@undp/data-viz 2.1.2 → 2.1.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.
- package/dist/AreaChart.cjs +1 -1
- package/dist/AreaChart.cjs.map +1 -1
- package/dist/AreaChart.js +281 -274
- package/dist/AreaChart.js.map +1 -1
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.cjs.map +1 -1
- package/dist/BarGraph.d.ts +2 -0
- package/dist/BarGraph.js +1795 -1724
- package/dist/BarGraph.js.map +1 -1
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.cjs.map +1 -1
- package/dist/BeeSwarmChart.js +312 -305
- package/dist/BeeSwarmChart.js.map +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.cjs.map +1 -1
- package/dist/BulletChart.js +367 -356
- package/dist/BulletChart.js.map +1 -1
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.cjs.map +1 -1
- package/dist/ButterflyChart.js +224 -217
- package/dist/ButterflyChart.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.js +2 -2
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.cjs.map +1 -1
- package/dist/DifferenceLineChart.js +406 -399
- package/dist/DifferenceLineChart.js.map +1 -1
- package/dist/DonutChart.cjs +1 -1
- package/dist/DonutChart.cjs.map +1 -1
- package/dist/DonutChart.d.ts +10 -0
- package/dist/DonutChart.js +232 -263
- package/dist/DonutChart.js.map +1 -1
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.cjs.map +1 -1
- package/dist/DualAxisLineChart.js +320 -313
- package/dist/DualAxisLineChart.js.map +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.cjs.map +1 -1
- package/dist/DumbbellChart.js +298 -291
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/{EmptyState-BZo1BbAn.js → EmptyState-C7ZXkZWd.js} +4 -4
- package/dist/EmptyState-C7ZXkZWd.js.map +1 -0
- package/dist/EmptyState-gLDRXBHm.cjs +2 -0
- package/dist/EmptyState-gLDRXBHm.cjs.map +1 -0
- package/dist/GraphEl-C2Fgg8PA.cjs +2 -0
- package/dist/GraphEl-C2Fgg8PA.cjs.map +1 -0
- package/dist/{GraphEl-sVZvlyWe.js → GraphEl-oZwZiTHI.js} +6 -3
- package/dist/GraphEl-oZwZiTHI.js.map +1 -0
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.d.ts +1 -0
- package/dist/GriddedGraphs.js +1 -1
- package/dist/GriddedGraphsFromConfig.d.ts +1 -0
- package/dist/HeatMap.cjs +1 -1
- package/dist/HeatMap.cjs.map +1 -1
- package/dist/HeatMap.js +179 -172
- package/dist/HeatMap.js.map +1 -1
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.js +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
- package/dist/LineChartWithConfidenceInterval.js +370 -363
- package/dist/LineChartWithConfidenceInterval.js.map +1 -1
- package/dist/MultiGraphDashboard.d.ts +1 -0
- package/dist/MultiGraphDashboardFromConfig.d.ts +1 -0
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.cjs.map +1 -1
- package/dist/MultiLineAltChart.js +328 -321
- package/dist/MultiLineAltChart.js.map +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.cjs.map +1 -1
- package/dist/MultiLineChart.js +375 -368
- package/dist/MultiLineChart.js.map +1 -1
- package/dist/ParetoChart.cjs +1 -1
- package/dist/ParetoChart.cjs.map +1 -1
- package/dist/ParetoChart.js +385 -378
- package/dist/ParetoChart.js.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +1 -0
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +1 -0
- package/dist/PerformanceIntensiveScrollStory.d.ts +1 -0
- package/dist/RadarChart.cjs +1 -1
- package/dist/RadarChart.cjs.map +1 -1
- package/dist/RadarChart.js +35 -34
- package/dist/RadarChart.js.map +1 -1
- package/dist/SankeyChart.cjs +1 -1
- package/dist/SankeyChart.cjs.map +1 -1
- package/dist/SankeyChart.js +176 -169
- package/dist/SankeyChart.js.map +1 -1
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.cjs.map +1 -1
- package/dist/ScatterPlot.js +367 -360
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/ScrollStory.d.ts +1 -0
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.cjs.map +1 -1
- package/dist/SimpleLineChart.js +286 -279
- package/dist/SimpleLineChart.js.map +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.d.ts +1 -0
- package/dist/SingleGraphDashboard.js +1 -1
- package/dist/SingleGraphDashboardFromConfig.d.ts +1 -0
- package/dist/SingleGraphDashboardGeoHubMaps.d.ts +1 -0
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +1 -0
- package/dist/SingleGraphDashboardThreeDGraphs.d.ts +1 -0
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +1 -0
- package/dist/SlopeChart.cjs +1 -1
- package/dist/SlopeChart.cjs.map +1 -1
- package/dist/SlopeChart.js +243 -236
- package/dist/SlopeChart.js.map +1 -1
- package/dist/SparkLine.cjs +1 -1
- package/dist/SparkLine.js +2 -2
- package/dist/StripChart.cjs +1 -1
- package/dist/StripChart.cjs.map +1 -1
- package/dist/StripChart.js +293 -286
- package/dist/StripChart.js.map +1 -1
- package/dist/TreeMapGraph.cjs +1 -1
- package/dist/TreeMapGraph.cjs.map +1 -1
- package/dist/TreeMapGraph.js +222 -215
- package/dist/TreeMapGraph.js.map +1 -1
- package/dist/Types.d.ts +1 -0
- package/dist/{area-BE2wo7fv.js → area-B6r7cv2o.js} +5 -5
- package/dist/{area-BE2wo7fv.js.map → area-B6r7cv2o.js.map} +1 -1
- package/dist/area-C1gxfNGD.cjs +2 -0
- package/dist/{area-D3Qx7k7K.cjs.map → area-C1gxfNGD.cjs.map} +1 -1
- package/dist/array-DMyR1sql.cjs +2 -0
- package/dist/array-DMyR1sql.cjs.map +1 -0
- package/dist/array-USo-Szhp.js +13 -0
- package/dist/array-USo-Szhp.js.map +1 -0
- package/dist/{ensureCompleteData-DS7gCvVd.js → ensureCompleteData-DH5c52Ub.js} +6 -6
- package/dist/{ensureCompleteData-DS7gCvVd.js.map → ensureCompleteData-DH5c52Ub.js.map} +1 -1
- package/dist/{ensureCompleteData-Oib-vGb0.cjs → ensureCompleteData-pZ9QO6kB.cjs} +2 -2
- package/dist/{ensureCompleteData-Oib-vGb0.cjs.map → ensureCompleteData-pZ9QO6kB.cjs.map} +1 -1
- package/dist/index-Blvf-Q3U.cjs +2 -0
- package/dist/{index-CF5hnGvG.cjs.map → index-Blvf-Q3U.cjs.map} +1 -1
- package/dist/index-D1RrKgK6.js +337 -0
- package/dist/index-D1RrKgK6.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.js +1 -1
- package/dist/line-DFlZsxI1.js +144 -0
- package/dist/line-DFlZsxI1.js.map +1 -0
- package/dist/line-DaEMhXmx.cjs +2 -0
- package/dist/line-DaEMhXmx.cjs.map +1 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/EmptyState-BZo1BbAn.js.map +0 -1
- package/dist/EmptyState-sAEZ_5rU.cjs +0 -2
- package/dist/EmptyState-sAEZ_5rU.cjs.map +0 -1
- package/dist/GraphEl-YKUlz-37.cjs +0 -2
- package/dist/GraphEl-YKUlz-37.cjs.map +0 -1
- package/dist/GraphEl-sVZvlyWe.js.map +0 -1
- package/dist/area-D3Qx7k7K.cjs +0 -2
- package/dist/array-B7TkkRH0.js +0 -89
- package/dist/array-B7TkkRH0.js.map +0 -1
- package/dist/array-DKbXV8lR.cjs +0 -2
- package/dist/array-DKbXV8lR.cjs.map +0 -1
- package/dist/index-CF5hnGvG.cjs +0 -2
- package/dist/index-DPGq3eIL.js +0 -330
- package/dist/index-DPGq3eIL.js.map +0 -1
- package/dist/line-CPfhohvF.js +0 -68
- package/dist/line-CPfhohvF.js.map +0 -1
- package/dist/line-DHV4JwCR.cjs +0 -2
- package/dist/line-DHV4JwCR.cjs.map +0 -1
package/dist/BarGraph.js
CHANGED
|
@@ -1,966 +1,997 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { g as
|
|
4
|
-
import { f as
|
|
5
|
-
import { o as
|
|
6
|
-
import { s as
|
|
7
|
-
import { i as
|
|
8
|
-
import { n as
|
|
9
|
-
import { T as
|
|
10
|
-
import { c as
|
|
11
|
-
import { Y as
|
|
12
|
-
import { A as
|
|
13
|
-
import { A as
|
|
14
|
-
import { X as
|
|
15
|
-
import { R as
|
|
16
|
-
import { Y as
|
|
17
|
-
import { X as
|
|
18
|
-
import { D as
|
|
19
|
-
import { u as
|
|
20
|
-
import { a as
|
|
21
|
-
import { b as
|
|
22
|
-
import { A as
|
|
1
|
+
import { c as we, j as i, m as $e } from "./index-CHPV5EwG-Curnpaqc.js";
|
|
2
|
+
import { useRef as ve, useState as te, useEffect as De } from "react";
|
|
3
|
+
import { g as Xe, N as Ye } from "./getSliderMarks-HIDJ0_Cd.js";
|
|
4
|
+
import { f as Me, p as Ee } from "./parse-DlCRUFh_.js";
|
|
5
|
+
import { o as Pe } from "./index-BZQYSqar.js";
|
|
6
|
+
import { s as he } from "./index-CeVNqhMO.js";
|
|
7
|
+
import { i as Le } from "./index-Bwrro8-q.js";
|
|
8
|
+
import { n as be } from "./numberFormattingFunction-14YCbkN2.js";
|
|
9
|
+
import { T as Ie } from "./Tooltip-Dj5eVppQ.js";
|
|
10
|
+
import { c as le } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
11
|
+
import { Y as Ge } from "./YAxesLabels-a57ZRv-0.js";
|
|
12
|
+
import { A as Ne } from "./Axis-CRyfcLjc.js";
|
|
13
|
+
import { A as je } from "./AxisTitle-jeI7am8o.js";
|
|
14
|
+
import { X as Re } from "./XTicksAndGridLines-CObVFSm4.js";
|
|
15
|
+
import { R as qe, a as Ue } from "./ReferenceLine-2XCwHXQ4.js";
|
|
16
|
+
import { Y as Je } from "./YTicksAndGridLines-Blepl7XF.js";
|
|
17
|
+
import { X as Ke } from "./XAxesLabels-Dy8E1SEo.js";
|
|
18
|
+
import { D as Te } from "./DetailsModal-0Ry5nXiC.js";
|
|
19
|
+
import { u as Se } from "./use-in-view-Cxa7y1TH.js";
|
|
20
|
+
import { a as Be } from "./linear-BqltdMeF.js";
|
|
21
|
+
import { b as Oe } from "./band-DHUZ2X7J.js";
|
|
22
|
+
import { A as Fe } from "./index-BqfRwk1n.js";
|
|
23
23
|
import { m as ee } from "./proxy-BxkFHwUw.js";
|
|
24
|
-
import { GraphHeader as
|
|
25
|
-
import { GraphFooter as
|
|
26
|
-
import { ColorLegendWithMouseOver as
|
|
27
|
-
import { Colors as
|
|
28
|
-
import { E as
|
|
29
|
-
import { P as
|
|
30
|
-
import { d as
|
|
31
|
-
import { a as
|
|
32
|
-
import { u as
|
|
33
|
-
import { g as
|
|
34
|
-
function
|
|
35
|
-
const t =
|
|
36
|
-
data:
|
|
37
|
-
leftMargin:
|
|
38
|
-
rightMargin:
|
|
39
|
-
topMargin:
|
|
40
|
-
bottomMargin:
|
|
24
|
+
import { GraphHeader as Qe } from "./GraphHeader.js";
|
|
25
|
+
import { GraphFooter as Ze } from "./GraphFooter.js";
|
|
26
|
+
import { ColorLegendWithMouseOver as _e } from "./ColorLegendWithMouseOver.js";
|
|
27
|
+
import { Colors as ge } from "./Colors.js";
|
|
28
|
+
import { E as ti } from "./EmptyState-C7ZXkZWd.js";
|
|
29
|
+
import { P as ei, e as ii } from "./index-D491FEn1.js";
|
|
30
|
+
import { d as ze, f as ai } from "./ensureCompleteData-DH5c52Ub.js";
|
|
31
|
+
import { a as li, G as si } from "./GraphContainer-CRqzdKu2.js";
|
|
32
|
+
import { u as ni } from "./uniqBy-BHy4I8PK.js";
|
|
33
|
+
import { g as We } from "./getTextColorBasedOnBgColor-CDY808zi.js";
|
|
34
|
+
function oi(e) {
|
|
35
|
+
const t = we.c(130), {
|
|
36
|
+
data: s,
|
|
37
|
+
leftMargin: X,
|
|
38
|
+
rightMargin: Ut,
|
|
39
|
+
topMargin: Kt,
|
|
40
|
+
bottomMargin: Lt,
|
|
41
41
|
barColors: Ot,
|
|
42
42
|
barPadding: Tt,
|
|
43
|
-
showTicks:
|
|
44
|
-
truncateBy:
|
|
45
|
-
width:
|
|
46
|
-
height:
|
|
47
|
-
suffix:
|
|
48
|
-
prefix:
|
|
49
|
-
showValues:
|
|
50
|
-
showLabels:
|
|
43
|
+
showTicks: P,
|
|
44
|
+
truncateBy: K,
|
|
45
|
+
width: y,
|
|
46
|
+
height: st,
|
|
47
|
+
suffix: ht,
|
|
48
|
+
prefix: it,
|
|
49
|
+
showValues: Jt,
|
|
50
|
+
showLabels: Y,
|
|
51
51
|
tooltip: at,
|
|
52
52
|
onSeriesMouseOver: Mt,
|
|
53
53
|
refValues: kt,
|
|
54
|
-
maxValue:
|
|
55
|
-
minValue:
|
|
56
|
-
onSeriesMouseClick:
|
|
57
|
-
selectedColor:
|
|
58
|
-
rtl:
|
|
59
|
-
labelOrder:
|
|
60
|
-
maxBarThickness:
|
|
61
|
-
resetSelectionOnDoubleClick:
|
|
62
|
-
detailsOnClick:
|
|
63
|
-
barAxisTitle:
|
|
64
|
-
valueColor:
|
|
65
|
-
noOfTicks:
|
|
66
|
-
styles:
|
|
67
|
-
classNames:
|
|
68
|
-
animate:
|
|
69
|
-
colorDomain:
|
|
70
|
-
precision:
|
|
71
|
-
customLayers:
|
|
72
|
-
naLabel:
|
|
73
|
-
} = e,
|
|
74
|
-
let
|
|
75
|
-
t[0] !==
|
|
76
|
-
once:
|
|
77
|
-
amount:
|
|
78
|
-
}, t[0] =
|
|
79
|
-
const
|
|
80
|
-
let
|
|
81
|
-
t[3] !==
|
|
82
|
-
top:
|
|
83
|
-
bottom:
|
|
84
|
-
left:
|
|
85
|
-
right:
|
|
86
|
-
}, t[3] =
|
|
87
|
-
const
|
|
88
|
-
let
|
|
89
|
-
if (t[8] !==
|
|
90
|
-
const
|
|
91
|
-
const
|
|
92
|
-
return
|
|
93
|
-
...
|
|
94
|
-
id:
|
|
54
|
+
maxValue: Gt,
|
|
55
|
+
minValue: w,
|
|
56
|
+
onSeriesMouseClick: Q,
|
|
57
|
+
selectedColor: E,
|
|
58
|
+
rtl: T,
|
|
59
|
+
labelOrder: rt,
|
|
60
|
+
maxBarThickness: Z,
|
|
61
|
+
resetSelectionOnDoubleClick: ft,
|
|
62
|
+
detailsOnClick: B,
|
|
63
|
+
barAxisTitle: _,
|
|
64
|
+
valueColor: lt,
|
|
65
|
+
noOfTicks: r,
|
|
66
|
+
styles: l,
|
|
67
|
+
classNames: n,
|
|
68
|
+
animate: u,
|
|
69
|
+
colorDomain: c,
|
|
70
|
+
precision: f,
|
|
71
|
+
customLayers: d,
|
|
72
|
+
naLabel: V
|
|
73
|
+
} = e, ct = X === void 0 ? 100 : X, tt = Ut === void 0 ? 40 : Ut, Ft = Kt === void 0 ? 25 : Kt, Pt = Lt === void 0 ? 10 : Lt, Et = ve(null);
|
|
74
|
+
let q;
|
|
75
|
+
t[0] !== u.amount || t[1] !== u.once ? (q = {
|
|
76
|
+
once: u.once,
|
|
77
|
+
amount: u.amount
|
|
78
|
+
}, t[0] = u.amount, t[1] = u.once, t[2] = q) : q = t[2];
|
|
79
|
+
const pt = Se(Et, q), Rt = _ ? Ft + 25 : Ft;
|
|
80
|
+
let m;
|
|
81
|
+
t[3] !== Pt || t[4] !== ct || t[5] !== tt || t[6] !== Rt ? (m = {
|
|
82
|
+
top: Rt,
|
|
83
|
+
bottom: Pt,
|
|
84
|
+
left: ct,
|
|
85
|
+
right: tt
|
|
86
|
+
}, t[3] = Pt, t[4] = ct, t[5] = tt, t[6] = Rt, t[7] = m) : m = t[7];
|
|
87
|
+
const o = m, [I, O] = te(void 0), [z, L] = te(void 0), [N, Ct] = te(void 0), [It, nt] = te(void 0), Nt = y - o.left - o.right, H = st - o.top - o.bottom;
|
|
88
|
+
let G;
|
|
89
|
+
if (t[8] !== s || t[9] !== rt) {
|
|
90
|
+
const p = /* @__PURE__ */ new Set(), xt = s.map((h, x) => {
|
|
91
|
+
const Yt = rt ? `${h.label}` : `${x}`;
|
|
92
|
+
return p.add(Yt), {
|
|
93
|
+
...h,
|
|
94
|
+
id: Yt
|
|
95
95
|
};
|
|
96
|
-
}),
|
|
97
|
-
let
|
|
98
|
-
t[11] !==
|
|
99
|
-
id:
|
|
100
|
-
label:
|
|
101
|
-
size: Array(
|
|
102
|
-
}), t[11] =
|
|
96
|
+
}), Xt = rt ? rt.filter((h) => !p.has(h)) : [];
|
|
97
|
+
let A;
|
|
98
|
+
t[11] !== s[0].size.length ? (A = (h) => ({
|
|
99
|
+
id: h,
|
|
100
|
+
label: h,
|
|
101
|
+
size: Array(s[0].size.length).fill(null)
|
|
102
|
+
}), t[11] = s[0].size.length, t[12] = A) : A = t[12], G = [...xt, ...Xt.map(A)], t[8] = s, t[9] = rt, t[10] = G;
|
|
103
103
|
} else
|
|
104
|
-
|
|
105
|
-
const
|
|
106
|
-
let
|
|
107
|
-
t[13] !==
|
|
108
|
-
const
|
|
109
|
-
let
|
|
110
|
-
if (t[16] !==
|
|
111
|
-
const
|
|
112
|
-
|
|
113
|
-
gridLines: s?.xAxis?.gridLines,
|
|
114
|
-
labels: s?.xAxis?.labels
|
|
115
|
-
}, classNames: {
|
|
104
|
+
G = t[10];
|
|
105
|
+
const $ = G;
|
|
106
|
+
let Ht;
|
|
107
|
+
t[13] !== $ || t[14] !== rt ? (Ht = rt ?? $.map(fi), t[13] = $, t[14] = rt, t[15] = Ht) : Ht = t[15];
|
|
108
|
+
const bt = Ht;
|
|
109
|
+
let gt, dt, Wt, jt, Vt, et, S, j, zt, yt, ot, ut, mt, U;
|
|
110
|
+
if (t[16] !== u || t[17] !== _ || t[18] !== Ot || t[19] !== bt || t[20] !== Tt || t[21] !== n?.graphObjectValues || t[22] !== n?.xAxis?.gridLines || t[23] !== n?.xAxis?.labels || t[24] !== n?.xAxis?.title || t[25] !== n?.yAxis?.axis || t[26] !== n?.yAxis?.labels || t[27] !== c || t[28] !== d || t[29] !== s[0].size || t[30] !== $ || t[31] !== B || t[32] !== H || t[33] !== Nt || t[34] !== st || t[35] !== pt || t[36] !== o.bottom || t[37] !== o.left || t[38] !== o.top || t[39] !== Z || t[40] !== Gt || t[41] !== w || t[42] !== z || t[43] !== V || t[44] !== r || t[45] !== Q || t[46] !== Mt || t[47] !== f || t[48] !== it || t[49] !== kt || t[50] !== ft || t[51] !== T || t[52] !== E || t[53] !== Y || t[54] !== P || t[55] !== Jt || t[56] !== l?.graphObjectValues || t[57] !== l?.xAxis?.gridLines || t[58] !== l?.xAxis?.labels || t[59] !== l?.xAxis?.title || t[60] !== l?.yAxis?.axis || t[61] !== l?.yAxis?.labels || t[62] !== ht || t[63] !== Ft || t[64] !== K || t[65] !== lt || t[66] !== y) {
|
|
111
|
+
const p = Be().domain([w, Gt]).range([0, Nt]).nice(), xt = Oe().domain(bt).range([0, Z ? Math.min(H, Z * bt.length) : H]).paddingInner(Tt), Xt = Oe().domain(s[0].size.map(hi)).range([0, xt.bandwidth()]).paddingInner(0.1), A = p.ticks(r);
|
|
112
|
+
dt = ee.svg, zt = Et, yt = `${y}px`, ot = `${st}px`, ut = `0 0 ${y} ${st}`, mt = "ltr", Vt = `translate(${o.left},${o.top})`, et = P ? /* @__PURE__ */ i.jsx(Re, { values: A.filter(xi), x: A.filter(mi).map((R) => p(R)), y1: 0 - Ft, y2: H + o.bottom, styles: {
|
|
116
113
|
gridLines: l?.xAxis?.gridLines,
|
|
117
114
|
labels: l?.xAxis?.labels
|
|
118
|
-
},
|
|
119
|
-
|
|
120
|
-
|
|
115
|
+
}, classNames: {
|
|
116
|
+
gridLines: n?.xAxis?.gridLines,
|
|
117
|
+
labels: n?.xAxis?.labels
|
|
118
|
+
}, suffix: ht, prefix: it, labelType: "secondary", showGridLines: !0, precision: f }) : null;
|
|
119
|
+
const h = Nt / 2, x = 0 - o.top + 15, Yt = l?.xAxis?.title, Zt = n?.xAxis?.title;
|
|
120
|
+
t[81] !== _ || t[82] !== h || t[83] !== x || t[84] !== Yt || t[85] !== Zt ? (S = /* @__PURE__ */ i.jsx(je, { x: h, y: x, style: Yt, className: Zt, text: _ }), t[81] = _, t[82] = h, t[83] = x, t[84] = Yt, t[85] = Zt, t[86] = S) : S = t[86], t[87] !== d ? (j = d.filter(ui).map(di), t[87] = d, t[88] = j) : j = t[88], gt = Fe, U = $.map((R) => le(xt(R.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { variants: {
|
|
121
121
|
initial: {
|
|
122
122
|
x: 0,
|
|
123
|
-
y:
|
|
123
|
+
y: xt(`${R.id}`)
|
|
124
124
|
},
|
|
125
125
|
whileInView: {
|
|
126
126
|
x: 0,
|
|
127
|
-
y:
|
|
127
|
+
y: xt(`${R.id}`),
|
|
128
128
|
transition: {
|
|
129
|
-
duration:
|
|
129
|
+
duration: u.duration
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
}, initial: "initial", animate:
|
|
132
|
+
}, initial: "initial", animate: pt ? "whileInView" : "initial", exit: {
|
|
133
133
|
opacity: 0,
|
|
134
134
|
transition: {
|
|
135
|
-
duration:
|
|
135
|
+
duration: u.duration
|
|
136
136
|
}
|
|
137
137
|
}, children: [
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
...
|
|
141
|
-
sizeIndex:
|
|
142
|
-
}),
|
|
143
|
-
...
|
|
144
|
-
sizeIndex:
|
|
138
|
+
R.size.map((D, St) => /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-g-with-hover", opacity: E ? Ot[St] === E ? 1 : 0.3 : 0.85, onMouseEnter: (a) => {
|
|
139
|
+
O({
|
|
140
|
+
...R,
|
|
141
|
+
sizeIndex: St
|
|
142
|
+
}), nt(a.clientY), Ct(a.clientX), Mt?.({
|
|
143
|
+
...R,
|
|
144
|
+
sizeIndex: St
|
|
145
145
|
});
|
|
146
|
-
}, onMouseMove: (
|
|
147
|
-
|
|
148
|
-
...
|
|
149
|
-
sizeIndex:
|
|
150
|
-
}),
|
|
146
|
+
}, onMouseMove: (a) => {
|
|
147
|
+
O({
|
|
148
|
+
...R,
|
|
149
|
+
sizeIndex: St
|
|
150
|
+
}), nt(a.clientY), Ct(a.clientX);
|
|
151
151
|
}, onMouseLeave: () => {
|
|
152
|
-
|
|
152
|
+
O(void 0), Ct(void 0), nt(void 0), Mt?.(void 0);
|
|
153
153
|
}, onClick: () => {
|
|
154
|
-
(
|
|
155
|
-
...
|
|
156
|
-
sizeIndex:
|
|
157
|
-
}) &&
|
|
158
|
-
...
|
|
159
|
-
sizeIndex:
|
|
160
|
-
}),
|
|
161
|
-
...
|
|
162
|
-
sizeIndex:
|
|
154
|
+
(Q || B) && (Le(z, {
|
|
155
|
+
...R,
|
|
156
|
+
sizeIndex: St
|
|
157
|
+
}) && ft ? (L(void 0), Q?.(void 0)) : (L({
|
|
158
|
+
...R,
|
|
159
|
+
sizeIndex: St
|
|
160
|
+
}), Q && Q({
|
|
161
|
+
...R,
|
|
162
|
+
sizeIndex: St
|
|
163
163
|
})));
|
|
164
164
|
}, children: [
|
|
165
|
-
|
|
165
|
+
le(D) ? null : /* @__PURE__ */ i.jsx(ee.rect, { y: Xt(`${St}`), variants: {
|
|
166
166
|
initial: {
|
|
167
167
|
width: 0,
|
|
168
|
-
x:
|
|
169
|
-
fill: Ot[
|
|
168
|
+
x: p(0),
|
|
169
|
+
fill: Ot[St]
|
|
170
170
|
},
|
|
171
171
|
whileInView: {
|
|
172
|
-
width:
|
|
173
|
-
x:
|
|
174
|
-
fill: Ot[
|
|
172
|
+
width: le(D) ? 0 : D >= 0 ? p(D) - p(0) : p(0) - p(D),
|
|
173
|
+
x: D >= 0 ? p(0) : p(D),
|
|
174
|
+
fill: Ot[St],
|
|
175
175
|
transition: {
|
|
176
|
-
duration:
|
|
176
|
+
duration: u.duration
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
}, exit: {
|
|
180
180
|
width: 0,
|
|
181
|
-
x:
|
|
181
|
+
x: p(0),
|
|
182
182
|
transition: {
|
|
183
|
-
duration:
|
|
183
|
+
duration: u.duration
|
|
184
184
|
}
|
|
185
|
-
}, height:
|
|
186
|
-
|
|
187
|
-
textAnchor:
|
|
188
|
-
...
|
|
189
|
-
}, className:
|
|
185
|
+
}, height: Xt.bandwidth(), initial: "initial", animate: pt ? "whileInView" : "initial" }),
|
|
186
|
+
Jt ? /* @__PURE__ */ i.jsx(ee.text, { y: Xt(`${St}`) + Xt.bandwidth() / 2, style: {
|
|
187
|
+
textAnchor: D && D < 0 ? "end" : "start",
|
|
188
|
+
...l?.graphObjectValues || {}
|
|
189
|
+
}, className: $e("graph-value text-sm", n?.graphObjectValues), dx: D && D < 0 ? -5 : 5, dy: "0.33em", variants: {
|
|
190
190
|
initial: {
|
|
191
|
-
x:
|
|
191
|
+
x: p(0),
|
|
192
192
|
opacity: 0,
|
|
193
|
-
fill:
|
|
193
|
+
fill: lt || Ot[St]
|
|
194
194
|
},
|
|
195
195
|
whileInView: {
|
|
196
|
-
x:
|
|
196
|
+
x: p(D || 0),
|
|
197
197
|
opacity: 1,
|
|
198
|
-
fill:
|
|
198
|
+
fill: lt || Ot[St],
|
|
199
199
|
transition: {
|
|
200
|
-
duration:
|
|
200
|
+
duration: u.duration
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
|
-
}, initial: "initial", animate:
|
|
203
|
+
}, initial: "initial", animate: pt ? "whileInView" : "initial", exit: {
|
|
204
204
|
opacity: 0,
|
|
205
205
|
transition: {
|
|
206
|
-
duration:
|
|
206
|
+
duration: u.duration
|
|
207
207
|
}
|
|
208
|
-
}, children:
|
|
209
|
-
] }, `${
|
|
210
|
-
|
|
211
|
-
] },
|
|
212
|
-
const
|
|
213
|
-
let
|
|
214
|
-
t[89] !==
|
|
215
|
-
axis:
|
|
216
|
-
}, t[89] =
|
|
217
|
-
const
|
|
218
|
-
let
|
|
219
|
-
t[91] !==
|
|
220
|
-
axis:
|
|
221
|
-
}, t[91] =
|
|
208
|
+
}, children: be(D, V, f, it, ht) }) : null
|
|
209
|
+
] }, `${R.label}-${c[St] || St}`)),
|
|
210
|
+
Y ? /* @__PURE__ */ i.jsx(Ge, { value: `${R.label}`.length < K ? `${R.label}` : `${`${R.label}`.substring(0, K)}...`, y: 0, x: 0 - o.left, width: p(w < 0 ? 0 : w) + o.left, height: xt.bandwidth(), style: l?.yAxis?.labels, className: n?.yAxis?.labels, animate: u, isInView: pt }) : null
|
|
211
|
+
] }, R.label));
|
|
212
|
+
const F = n?.yAxis?.axis;
|
|
213
|
+
let M;
|
|
214
|
+
t[89] !== F ? (M = {
|
|
215
|
+
axis: F
|
|
216
|
+
}, t[89] = F, t[90] = M) : M = t[90];
|
|
217
|
+
const _t = l?.yAxis?.axis;
|
|
218
|
+
let W;
|
|
219
|
+
t[91] !== _t ? (W = {
|
|
220
|
+
axis: _t
|
|
221
|
+
}, t[91] = _t, t[92] = W) : W = t[92], Wt = /* @__PURE__ */ i.jsx(Ne, { x1: p(w < 0 ? 0 : w), x2: p(w < 0 ? 0 : w), y1: -2.5, y2: H + o.bottom, classNames: M, styles: W }), jt = kt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: kt.map((R, D) => /* @__PURE__ */ i.jsx(qe, { text: R.text, color: R.color, x: p(R.value), y1: 0 - o.top, y2: H + o.bottom, textSide: p(R.value) > Nt * 0.75 || T ? "left" : "right", classNames: R.classNames, styles: R.styles, animate: u, isInView: pt }, D)) }) : null, t[16] = u, t[17] = _, t[18] = Ot, t[19] = bt, t[20] = Tt, t[21] = n?.graphObjectValues, t[22] = n?.xAxis?.gridLines, t[23] = n?.xAxis?.labels, t[24] = n?.xAxis?.title, t[25] = n?.yAxis?.axis, t[26] = n?.yAxis?.labels, t[27] = c, t[28] = d, t[29] = s[0].size, t[30] = $, t[31] = B, t[32] = H, t[33] = Nt, t[34] = st, t[35] = pt, t[36] = o.bottom, t[37] = o.left, t[38] = o.top, t[39] = Z, t[40] = Gt, t[41] = w, t[42] = z, t[43] = V, t[44] = r, t[45] = Q, t[46] = Mt, t[47] = f, t[48] = it, t[49] = kt, t[50] = ft, t[51] = T, t[52] = E, t[53] = Y, t[54] = P, t[55] = Jt, t[56] = l?.graphObjectValues, t[57] = l?.xAxis?.gridLines, t[58] = l?.xAxis?.labels, t[59] = l?.xAxis?.title, t[60] = l?.yAxis?.axis, t[61] = l?.yAxis?.labels, t[62] = ht, t[63] = Ft, t[64] = K, t[65] = lt, t[66] = y, t[67] = gt, t[68] = dt, t[69] = Wt, t[70] = jt, t[71] = Vt, t[72] = et, t[73] = S, t[74] = j, t[75] = zt, t[76] = yt, t[77] = ot, t[78] = ut, t[79] = mt, t[80] = U;
|
|
222
222
|
} else
|
|
223
|
-
|
|
223
|
+
gt = t[67], dt = t[68], Wt = t[69], jt = t[70], Vt = t[71], et = t[72], S = t[73], j = t[74], zt = t[75], yt = t[76], ot = t[77], ut = t[78], mt = t[79], U = t[80];
|
|
224
|
+
let vt;
|
|
225
|
+
t[93] !== gt || t[94] !== Wt || t[95] !== jt || t[96] !== U ? (vt = /* @__PURE__ */ i.jsxs(gt, { children: [
|
|
226
|
+
U,
|
|
227
|
+
Wt,
|
|
228
|
+
jt
|
|
229
|
+
] }), t[93] = gt, t[94] = Wt, t[95] = jt, t[96] = U, t[97] = vt) : vt = t[97];
|
|
224
230
|
let wt;
|
|
225
|
-
t[
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
231
|
+
t[98] !== d ? (wt = d.filter(ci).map(ri), t[98] = d, t[99] = wt) : wt = t[99];
|
|
232
|
+
let J;
|
|
233
|
+
t[100] !== Vt || t[101] !== et || t[102] !== S || t[103] !== j || t[104] !== vt || t[105] !== wt ? (J = /* @__PURE__ */ i.jsxs("g", { transform: Vt, children: [
|
|
234
|
+
et,
|
|
235
|
+
S,
|
|
236
|
+
j,
|
|
237
|
+
vt,
|
|
238
|
+
wt
|
|
239
|
+
] }), t[100] = Vt, t[101] = et, t[102] = S, t[103] = j, t[104] = vt, t[105] = wt, t[106] = J) : J = t[106];
|
|
232
240
|
let At;
|
|
233
|
-
t[
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
z,
|
|
237
|
-
wt,
|
|
238
|
-
st
|
|
239
|
-
] }), t[100] = zt, t[101] = G, t[102] = I, t[103] = z, t[104] = wt, t[105] = st, t[106] = At) : At = t[106];
|
|
240
|
-
let $t;
|
|
241
|
-
t[107] !== Ft || t[108] !== ht || t[109] !== ot || t[110] !== dt || t[111] !== vt || t[112] !== _ || t[113] !== At ? ($t = /* @__PURE__ */ i.jsx(Ft, { ref: ht, width: ot, height: dt, viewBox: vt, direction: _, children: At }), t[107] = Ft, t[108] = ht, t[109] = ot, t[110] = dt, t[111] = vt, t[112] = _, t[113] = At, t[114] = $t) : $t = t[114];
|
|
241
|
+
t[107] !== dt || t[108] !== zt || t[109] !== yt || t[110] !== ot || t[111] !== ut || t[112] !== mt || t[113] !== J ? (At = /* @__PURE__ */ i.jsx(dt, { ref: zt, width: yt, height: ot, viewBox: ut, direction: mt, children: J }), t[107] = dt, t[108] = zt, t[109] = yt, t[110] = ot, t[111] = ut, t[112] = mt, t[113] = J, t[114] = At) : At = t[114];
|
|
242
|
+
let g;
|
|
243
|
+
t[115] !== n?.tooltip || t[116] !== N || t[117] !== It || t[118] !== I || t[119] !== l?.tooltip || t[120] !== at ? (g = I && at && N && It ? /* @__PURE__ */ i.jsx(Ie, { data: I, body: at, xPos: N, yPos: It, backgroundStyle: l?.tooltip, className: n?.tooltip }) : null, t[115] = n?.tooltip, t[116] = N, t[117] = It, t[118] = I, t[119] = l?.tooltip, t[120] = at, t[121] = g) : g = t[121];
|
|
242
244
|
let b;
|
|
243
|
-
t[
|
|
244
|
-
let
|
|
245
|
-
t[
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
$
|
|
251
|
-
] }), t[126] = $t, t[127] = b, t[128] = $, t[129] = O) : O = t[129], O;
|
|
245
|
+
t[122] !== n?.modal || t[123] !== B || t[124] !== z ? (b = B && z !== void 0 ? /* @__PURE__ */ i.jsx(Te, { body: B, data: z, setData: L, className: n?.modal }) : null, t[122] = n?.modal, t[123] = B, t[124] = z, t[125] = b) : b = t[125];
|
|
246
|
+
let v;
|
|
247
|
+
return t[126] !== At || t[127] !== g || t[128] !== b ? (v = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
248
|
+
At,
|
|
249
|
+
g,
|
|
250
|
+
b
|
|
251
|
+
] }), t[126] = At, t[127] = g, t[128] = b, t[129] = v) : v = t[129], v;
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function ri(e) {
|
|
254
254
|
return e.layer;
|
|
255
255
|
}
|
|
256
|
-
function
|
|
256
|
+
function ci(e) {
|
|
257
257
|
return e.position === "after";
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function di(e) {
|
|
260
260
|
return e.layer;
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function ui(e) {
|
|
263
263
|
return e.position === "before";
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function mi(e) {
|
|
266
266
|
return e !== 0;
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function xi(e) {
|
|
269
269
|
return e !== 0;
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function hi(e, t) {
|
|
272
272
|
return `${t}`;
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function fi(e) {
|
|
275
275
|
return `${e.id}`;
|
|
276
276
|
}
|
|
277
|
-
function
|
|
278
|
-
const t =
|
|
279
|
-
data:
|
|
280
|
-
leftMargin:
|
|
281
|
-
rightMargin:
|
|
282
|
-
topMargin:
|
|
283
|
-
bottomMargin:
|
|
277
|
+
function pi(e) {
|
|
278
|
+
const t = we.c(138), {
|
|
279
|
+
data: s,
|
|
280
|
+
leftMargin: X,
|
|
281
|
+
rightMargin: Ut,
|
|
282
|
+
topMargin: Kt,
|
|
283
|
+
bottomMargin: Lt,
|
|
284
284
|
width: Ot,
|
|
285
285
|
height: Tt,
|
|
286
|
-
barColors:
|
|
287
|
-
suffix:
|
|
288
|
-
prefix:
|
|
289
|
-
barPadding:
|
|
290
|
-
showLabels:
|
|
291
|
-
showValues:
|
|
292
|
-
showTicks:
|
|
293
|
-
truncateBy:
|
|
286
|
+
barColors: P,
|
|
287
|
+
suffix: K,
|
|
288
|
+
prefix: y,
|
|
289
|
+
barPadding: st,
|
|
290
|
+
showLabels: ht,
|
|
291
|
+
showValues: it,
|
|
292
|
+
showTicks: Jt,
|
|
293
|
+
truncateBy: Y,
|
|
294
294
|
tooltip: at,
|
|
295
295
|
onSeriesMouseOver: Mt,
|
|
296
296
|
refValues: kt,
|
|
297
|
-
maxValue:
|
|
298
|
-
minValue:
|
|
299
|
-
onSeriesMouseClick:
|
|
300
|
-
selectedColor:
|
|
301
|
-
labelOrder:
|
|
302
|
-
maxBarThickness:
|
|
303
|
-
resetSelectionOnDoubleClick:
|
|
304
|
-
detailsOnClick:
|
|
305
|
-
barAxisTitle:
|
|
306
|
-
valueColor:
|
|
307
|
-
noOfTicks:
|
|
308
|
-
styles:
|
|
309
|
-
classNames:
|
|
310
|
-
animate:
|
|
311
|
-
colorDomain:
|
|
312
|
-
precision:
|
|
313
|
-
customLayers:
|
|
314
|
-
naLabel:
|
|
315
|
-
} = e,
|
|
316
|
-
let
|
|
317
|
-
t[0] !==
|
|
318
|
-
once:
|
|
319
|
-
amount:
|
|
320
|
-
}, t[0] =
|
|
321
|
-
const
|
|
322
|
-
let
|
|
323
|
-
t[3] !==
|
|
324
|
-
top:
|
|
325
|
-
bottom:
|
|
326
|
-
left:
|
|
327
|
-
right:
|
|
328
|
-
}, t[3] =
|
|
329
|
-
const
|
|
330
|
-
let
|
|
331
|
-
if (t[8] !==
|
|
332
|
-
const
|
|
333
|
-
const
|
|
334
|
-
return
|
|
335
|
-
...
|
|
336
|
-
id:
|
|
297
|
+
maxValue: Gt,
|
|
298
|
+
minValue: w,
|
|
299
|
+
onSeriesMouseClick: Q,
|
|
300
|
+
selectedColor: E,
|
|
301
|
+
labelOrder: T,
|
|
302
|
+
maxBarThickness: rt,
|
|
303
|
+
resetSelectionOnDoubleClick: Z,
|
|
304
|
+
detailsOnClick: ft,
|
|
305
|
+
barAxisTitle: B,
|
|
306
|
+
valueColor: _,
|
|
307
|
+
noOfTicks: lt,
|
|
308
|
+
styles: r,
|
|
309
|
+
classNames: l,
|
|
310
|
+
animate: n,
|
|
311
|
+
colorDomain: u,
|
|
312
|
+
precision: c,
|
|
313
|
+
customLayers: f,
|
|
314
|
+
naLabel: d
|
|
315
|
+
} = e, V = X === void 0 ? 20 : X, ct = Ut === void 0 ? 20 : Ut, tt = Kt === void 0 ? 20 : Kt, Ft = Lt === void 0 ? 25 : Lt, Pt = ve(null);
|
|
316
|
+
let Et;
|
|
317
|
+
t[0] !== n.amount || t[1] !== n.once ? (Et = {
|
|
318
|
+
once: n.once,
|
|
319
|
+
amount: n.amount
|
|
320
|
+
}, t[0] = n.amount, t[1] = n.once, t[2] = Et) : Et = t[2];
|
|
321
|
+
const q = Se(Pt, Et), pt = B ? V + 30 : V;
|
|
322
|
+
let Rt;
|
|
323
|
+
t[3] !== Ft || t[4] !== ct || t[5] !== pt || t[6] !== tt ? (Rt = {
|
|
324
|
+
top: tt,
|
|
325
|
+
bottom: Ft,
|
|
326
|
+
left: pt,
|
|
327
|
+
right: ct
|
|
328
|
+
}, t[3] = Ft, t[4] = ct, t[5] = pt, t[6] = tt, t[7] = Rt) : Rt = t[7];
|
|
329
|
+
const m = Rt, [o, I] = te(void 0), [O, z] = te(void 0), [L, N] = te(void 0), [Ct, It] = te(void 0), nt = Ot - m.left - m.right, Nt = Tt - m.top - m.bottom;
|
|
330
|
+
let H;
|
|
331
|
+
if (t[8] !== s || t[9] !== T) {
|
|
332
|
+
const v = /* @__PURE__ */ new Set(), p = s.map((A, h) => {
|
|
333
|
+
const x = T ? `${A.label}` : `${h}`;
|
|
334
|
+
return v.add(x), {
|
|
335
|
+
...A,
|
|
336
|
+
id: x
|
|
337
337
|
};
|
|
338
|
-
}),
|
|
339
|
-
let
|
|
340
|
-
t[11] !==
|
|
341
|
-
id:
|
|
342
|
-
label:
|
|
343
|
-
size: Array(
|
|
344
|
-
}), t[11] =
|
|
338
|
+
}), xt = T ? T.filter((A) => !v.has(A)) : [];
|
|
339
|
+
let Xt;
|
|
340
|
+
t[11] !== s[0].size.length ? (Xt = (A) => ({
|
|
341
|
+
id: A,
|
|
342
|
+
label: A,
|
|
343
|
+
size: Array(s[0].size.length).fill(null)
|
|
344
|
+
}), t[11] = s[0].size.length, t[12] = Xt) : Xt = t[12], H = [...p, ...xt.map(Xt)], t[8] = s, t[9] = T, t[10] = H;
|
|
345
345
|
} else
|
|
346
|
-
|
|
347
|
-
const
|
|
348
|
-
let
|
|
349
|
-
t[13] !==
|
|
350
|
-
const
|
|
351
|
-
let
|
|
352
|
-
if (t[16] !==
|
|
353
|
-
const
|
|
354
|
-
|
|
355
|
-
const
|
|
356
|
-
let
|
|
357
|
-
t[81] !==
|
|
358
|
-
const
|
|
359
|
-
let
|
|
360
|
-
t[87] !==
|
|
361
|
-
axis:
|
|
362
|
-
label:
|
|
363
|
-
}, t[87] =
|
|
364
|
-
const
|
|
365
|
-
let
|
|
366
|
-
t[90] !==
|
|
367
|
-
axis:
|
|
368
|
-
label:
|
|
369
|
-
}, t[90] =
|
|
370
|
-
x: 0 -
|
|
346
|
+
H = t[10];
|
|
347
|
+
const G = H;
|
|
348
|
+
let $;
|
|
349
|
+
t[13] !== G || t[14] !== T ? ($ = T ?? G.map(Oi), t[13] = G, t[14] = T, t[15] = $) : $ = t[15];
|
|
350
|
+
const Ht = $;
|
|
351
|
+
let bt, gt, dt, Wt, jt, Vt, et, S, j, zt, yt, ot, ut, mt;
|
|
352
|
+
if (t[16] !== n || t[17] !== B || t[18] !== P || t[19] !== Ht || t[20] !== st || t[21] !== l?.graphObjectValues || t[22] !== l?.xAxis?.axis || t[23] !== l?.xAxis?.labels || t[24] !== l?.yAxis?.gridLines || t[25] !== l?.yAxis?.labels || t[26] !== l?.yAxis?.title || t[27] !== u || t[28] !== f || t[29] !== s[0].size || t[30] !== G || t[31] !== ft || t[32] !== Nt || t[33] !== nt || t[34] !== Tt || t[35] !== q || t[36] !== V || t[37] !== m.bottom || t[38] !== m.left || t[39] !== m.right || t[40] !== m.top || t[41] !== rt || t[42] !== Gt || t[43] !== w || t[44] !== O || t[45] !== d || t[46] !== lt || t[47] !== Q || t[48] !== Mt || t[49] !== c || t[50] !== y || t[51] !== kt || t[52] !== Z || t[53] !== E || t[54] !== ht || t[55] !== Jt || t[56] !== it || t[57] !== r?.graphObjectValues || t[58] !== r?.xAxis?.axis || t[59] !== r?.xAxis?.labels || t[60] !== r?.yAxis?.gridLines || t[61] !== r?.yAxis?.labels || t[62] !== r?.yAxis?.title || t[63] !== K || t[64] !== Y || t[65] !== _ || t[66] !== Ot) {
|
|
353
|
+
const v = Be().domain([w, Gt]).range([Nt, 0]).nice(), p = Oe().domain(Ht).range([0, rt ? Math.min(nt, rt * Ht.length) : nt]).paddingInner(st), xt = Oe().domain(s[0].size.map($i)).range([0, p.bandwidth()]).paddingInner(0.1), Xt = v.ticks(lt);
|
|
354
|
+
gt = ee.svg, j = `${Ot}px`, zt = `${Tt}px`, yt = `0 0 ${Ot} ${Tt}`, ot = "ltr", ut = Pt, Wt = `translate(${m.left},${m.top})`;
|
|
355
|
+
const A = v(w < 0 ? 0 : w), h = v(w < 0 ? 0 : w), x = w < 0 ? 0 : w;
|
|
356
|
+
let Yt;
|
|
357
|
+
t[81] !== d || t[82] !== c || t[83] !== y || t[84] !== K || t[85] !== x ? (Yt = be(x, d, c, y, K), t[81] = d, t[82] = c, t[83] = y, t[84] = K, t[85] = x, t[86] = Yt) : Yt = t[86];
|
|
358
|
+
const Zt = l?.xAxis?.axis, F = l?.yAxis?.labels;
|
|
359
|
+
let M;
|
|
360
|
+
t[87] !== Zt || t[88] !== F ? (M = {
|
|
361
|
+
axis: Zt,
|
|
362
|
+
label: F
|
|
363
|
+
}, t[87] = Zt, t[88] = F, t[89] = M) : M = t[89];
|
|
364
|
+
const _t = r?.xAxis?.axis, W = r?.yAxis?.labels;
|
|
365
|
+
let R;
|
|
366
|
+
t[90] !== _t || t[91] !== W ? (R = {
|
|
367
|
+
axis: _t,
|
|
368
|
+
label: W
|
|
369
|
+
}, t[90] = _t, t[91] = W, t[92] = R) : R = t[92], jt = /* @__PURE__ */ i.jsx(Ne, { y1: A, y2: h, x1: 0 - V, x2: nt + m.right, label: Yt, labelPos: {
|
|
370
|
+
x: 0 - V,
|
|
371
371
|
dx: 0,
|
|
372
|
-
dy:
|
|
373
|
-
y:
|
|
374
|
-
}, classNames:
|
|
375
|
-
gridLines:
|
|
376
|
-
labels:
|
|
372
|
+
dy: Gt < 0 ? "1em" : -5,
|
|
373
|
+
y: v(w < 0 ? 0 : w)
|
|
374
|
+
}, classNames: M, styles: R }), Vt = Jt ? /* @__PURE__ */ i.jsx(Je, { values: Xt.filter(Ai), y: Xt.filter(wi).map((k) => v(k)), x1: 0 - V, x2: nt + m.right, styles: {
|
|
375
|
+
gridLines: r?.yAxis?.gridLines,
|
|
376
|
+
labels: r?.yAxis?.labels
|
|
377
377
|
}, classNames: {
|
|
378
|
-
gridLines:
|
|
379
|
-
labels:
|
|
380
|
-
}, suffix:
|
|
381
|
-
const
|
|
382
|
-
t[93] !==
|
|
378
|
+
gridLines: l?.yAxis?.gridLines,
|
|
379
|
+
labels: l?.yAxis?.labels
|
|
380
|
+
}, suffix: K, prefix: y, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: c }) : null;
|
|
381
|
+
const D = 0 - V - 15, St = Nt / 2, a = r?.yAxis?.title, $t = l?.yAxis?.title;
|
|
382
|
+
t[93] !== B || t[94] !== D || t[95] !== St || t[96] !== a || t[97] !== $t ? (et = /* @__PURE__ */ i.jsx(je, { x: D, y: St, style: a, className: $t, text: B, rotate90: !0 }), t[93] = B, t[94] = D, t[95] = St, t[96] = a, t[97] = $t, t[98] = et) : et = t[98], t[99] !== f ? (S = f.filter(vi).map(bi), t[99] = f, t[100] = S) : S = t[100], bt = Fe, mt = G.map((k) => le(p(k.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { variants: {
|
|
383
383
|
initial: {
|
|
384
|
-
x:
|
|
384
|
+
x: p(`${k.id}`),
|
|
385
385
|
y: 0
|
|
386
386
|
},
|
|
387
387
|
whileInView: {
|
|
388
|
-
x:
|
|
388
|
+
x: p(`${k.id}`),
|
|
389
389
|
y: 0,
|
|
390
390
|
transition: {
|
|
391
|
-
duration:
|
|
391
|
+
duration: n.duration
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
|
-
}, initial: "initial", animate:
|
|
394
|
+
}, initial: "initial", animate: q ? "whileInView" : "initial", exit: {
|
|
395
395
|
opacity: 0,
|
|
396
396
|
transition: {
|
|
397
|
-
duration:
|
|
397
|
+
duration: n.duration
|
|
398
398
|
}
|
|
399
399
|
}, children: [
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
...
|
|
403
|
-
sizeIndex:
|
|
404
|
-
}),
|
|
405
|
-
...
|
|
406
|
-
sizeIndex:
|
|
400
|
+
k.size.map((Bt, qt) => /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-g-with-hover", opacity: E ? P[qt] === E ? 1 : 0.3 : 0.85, onMouseEnter: (C) => {
|
|
401
|
+
I({
|
|
402
|
+
...k,
|
|
403
|
+
sizeIndex: qt
|
|
404
|
+
}), It(C.clientY), N(C.clientX), Mt?.({
|
|
405
|
+
...k,
|
|
406
|
+
sizeIndex: qt
|
|
407
407
|
});
|
|
408
|
-
}, onMouseMove: (
|
|
409
|
-
|
|
410
|
-
...
|
|
411
|
-
sizeIndex:
|
|
412
|
-
}),
|
|
408
|
+
}, onMouseMove: (C) => {
|
|
409
|
+
I({
|
|
410
|
+
...k,
|
|
411
|
+
sizeIndex: qt
|
|
412
|
+
}), It(C.clientY), N(C.clientX);
|
|
413
413
|
}, onMouseLeave: () => {
|
|
414
|
-
|
|
414
|
+
I(void 0), N(void 0), It(void 0), Mt?.(void 0);
|
|
415
415
|
}, onClick: () => {
|
|
416
|
-
(
|
|
417
|
-
...
|
|
418
|
-
sizeIndex:
|
|
419
|
-
}) &&
|
|
420
|
-
...
|
|
421
|
-
sizeIndex:
|
|
422
|
-
}),
|
|
423
|
-
...
|
|
424
|
-
sizeIndex:
|
|
416
|
+
(Q || ft) && (Le(O, {
|
|
417
|
+
...k,
|
|
418
|
+
sizeIndex: qt
|
|
419
|
+
}) && Z ? (z(void 0), Q?.(void 0)) : (z({
|
|
420
|
+
...k,
|
|
421
|
+
sizeIndex: qt
|
|
422
|
+
}), Q && Q({
|
|
423
|
+
...k,
|
|
424
|
+
sizeIndex: qt
|
|
425
425
|
})));
|
|
426
426
|
}, children: [
|
|
427
|
-
/* @__PURE__ */ i.jsx(ee.rect, { x:
|
|
427
|
+
/* @__PURE__ */ i.jsx(ee.rect, { x: xt(`${qt}`), width: xt.bandwidth(), variants: {
|
|
428
428
|
initial: {
|
|
429
429
|
height: 0,
|
|
430
|
-
y:
|
|
431
|
-
fill:
|
|
430
|
+
y: v(0),
|
|
431
|
+
fill: P[qt]
|
|
432
432
|
},
|
|
433
433
|
whileInView: {
|
|
434
|
-
height:
|
|
435
|
-
y:
|
|
436
|
-
fill:
|
|
434
|
+
height: le(Bt) ? 0 : Math.abs(v(Bt) - v(0)),
|
|
435
|
+
y: le(Bt) ? v(0) : Bt > 0 ? v(Bt) : v(0),
|
|
436
|
+
fill: P[qt],
|
|
437
437
|
transition: {
|
|
438
|
-
duration:
|
|
438
|
+
duration: n.duration
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
441
|
}, exit: {
|
|
442
442
|
height: 0,
|
|
443
|
-
y:
|
|
443
|
+
y: v(0),
|
|
444
444
|
transition: {
|
|
445
|
-
duration:
|
|
445
|
+
duration: n.duration
|
|
446
446
|
}
|
|
447
|
-
}, initial: "initial", animate:
|
|
448
|
-
|
|
447
|
+
}, initial: "initial", animate: q ? "whileInView" : "initial" }),
|
|
448
|
+
it ? /* @__PURE__ */ i.jsx(ee.text, { x: xt(`${qt}`) + xt.bandwidth() / 2, style: {
|
|
449
449
|
textAnchor: "middle",
|
|
450
|
-
...
|
|
451
|
-
}, className:
|
|
450
|
+
...r?.graphObjectValues || {}
|
|
451
|
+
}, className: $e("graph-value text-sm", l?.graphObjectValues), dy: Bt ? Bt >= 0 ? "-5px" : "1em" : "-5px", variants: {
|
|
452
452
|
initial: {
|
|
453
|
-
y:
|
|
453
|
+
y: v(0),
|
|
454
454
|
opacity: 0,
|
|
455
|
-
fill:
|
|
455
|
+
fill: _ || P[qt]
|
|
456
456
|
},
|
|
457
457
|
whileInView: {
|
|
458
|
-
y:
|
|
458
|
+
y: v(Bt || 0),
|
|
459
459
|
opacity: 1,
|
|
460
|
-
fill:
|
|
460
|
+
fill: _ || P[qt],
|
|
461
461
|
transition: {
|
|
462
|
-
duration:
|
|
462
|
+
duration: n.duration
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
|
-
}, initial: "initial", animate:
|
|
465
|
+
}, initial: "initial", animate: q ? "whileInView" : "initial", exit: {
|
|
466
466
|
opacity: 0,
|
|
467
467
|
transition: {
|
|
468
|
-
duration:
|
|
468
|
+
duration: n.duration
|
|
469
469
|
}
|
|
470
|
-
}, children:
|
|
471
|
-
] }, `${
|
|
472
|
-
|
|
473
|
-
] },
|
|
470
|
+
}, children: be(Bt, d, c, y, K) }) : null
|
|
471
|
+
] }, `${k.label}-${u[qt] || qt}`)),
|
|
472
|
+
ht ? /* @__PURE__ */ i.jsx(Ke, { value: `${k.label}`.length < Y ? `${k.label}` : `${`${k.label}`.substring(0, Y)}...`, y: v(0) + 5, x: 0, width: p.bandwidth(), height: m.bottom, style: r?.xAxis?.labels, className: l?.xAxis?.labels, alignment: "top", animate: n, isInView: q }) : null
|
|
473
|
+
] }, k.label)), dt = kt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: kt.map((k, Bt) => /* @__PURE__ */ i.jsx(Ue, { text: k.text, color: k.color, y: v(k.value), x1: 0 - V, x2: nt + m.right, classNames: k.classNames, styles: k.styles, animate: n, isInView: q }, Bt)) }) : null, t[16] = n, t[17] = B, t[18] = P, t[19] = Ht, t[20] = st, t[21] = l?.graphObjectValues, t[22] = l?.xAxis?.axis, t[23] = l?.xAxis?.labels, t[24] = l?.yAxis?.gridLines, t[25] = l?.yAxis?.labels, t[26] = l?.yAxis?.title, t[27] = u, t[28] = f, t[29] = s[0].size, t[30] = G, t[31] = ft, t[32] = Nt, t[33] = nt, t[34] = Tt, t[35] = q, t[36] = V, t[37] = m.bottom, t[38] = m.left, t[39] = m.right, t[40] = m.top, t[41] = rt, t[42] = Gt, t[43] = w, t[44] = O, t[45] = d, t[46] = lt, t[47] = Q, t[48] = Mt, t[49] = c, t[50] = y, t[51] = kt, t[52] = Z, t[53] = E, t[54] = ht, t[55] = Jt, t[56] = it, t[57] = r?.graphObjectValues, t[58] = r?.xAxis?.axis, t[59] = r?.xAxis?.labels, t[60] = r?.yAxis?.gridLines, t[61] = r?.yAxis?.labels, t[62] = r?.yAxis?.title, t[63] = K, t[64] = Y, t[65] = _, t[66] = Ot, t[67] = bt, t[68] = gt, t[69] = dt, t[70] = Wt, t[71] = jt, t[72] = Vt, t[73] = et, t[74] = S, t[75] = j, t[76] = zt, t[77] = yt, t[78] = ot, t[79] = ut, t[80] = mt;
|
|
474
474
|
} else
|
|
475
|
-
|
|
476
|
-
let
|
|
477
|
-
t[101] !==
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
] }), t[101] =
|
|
475
|
+
bt = t[67], gt = t[68], dt = t[69], Wt = t[70], jt = t[71], Vt = t[72], et = t[73], S = t[74], j = t[75], zt = t[76], yt = t[77], ot = t[78], ut = t[79], mt = t[80];
|
|
476
|
+
let U;
|
|
477
|
+
t[101] !== bt || t[102] !== dt || t[103] !== mt ? (U = /* @__PURE__ */ i.jsxs(bt, { children: [
|
|
478
|
+
mt,
|
|
479
|
+
dt
|
|
480
|
+
] }), t[101] = bt, t[102] = dt, t[103] = mt, t[104] = U) : U = t[104];
|
|
481
|
+
let vt;
|
|
482
|
+
t[105] !== f ? (vt = f.filter(yi).map(gi), t[105] = f, t[106] = vt) : vt = t[106];
|
|
481
483
|
let wt;
|
|
482
|
-
t[
|
|
483
|
-
|
|
484
|
-
t[107] !== Nt || t[108] !== Vt || t[109] !== zt || t[110] !== G || t[111] !== I || t[112] !== ut || t[113] !== wt ? (st = /* @__PURE__ */ i.jsxs("g", { transform: Nt, children: [
|
|
484
|
+
t[107] !== Wt || t[108] !== jt || t[109] !== Vt || t[110] !== et || t[111] !== S || t[112] !== U || t[113] !== vt ? (wt = /* @__PURE__ */ i.jsxs("g", { transform: Wt, children: [
|
|
485
|
+
jt,
|
|
485
486
|
Vt,
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
487
|
+
et,
|
|
488
|
+
S,
|
|
489
|
+
U,
|
|
490
|
+
vt
|
|
491
|
+
] }), t[107] = Wt, t[108] = jt, t[109] = Vt, t[110] = et, t[111] = S, t[112] = U, t[113] = vt, t[114] = wt) : wt = t[114];
|
|
492
|
+
let J;
|
|
493
|
+
t[115] !== gt || t[116] !== j || t[117] !== zt || t[118] !== yt || t[119] !== ot || t[120] !== ut || t[121] !== wt ? (J = /* @__PURE__ */ i.jsx(gt, { width: j, height: zt, viewBox: yt, direction: ot, ref: ut, children: wt }), t[115] = gt, t[116] = j, t[117] = zt, t[118] = yt, t[119] = ot, t[120] = ut, t[121] = wt, t[122] = J) : J = t[122];
|
|
492
494
|
let At;
|
|
493
|
-
t[
|
|
494
|
-
let
|
|
495
|
-
t[
|
|
495
|
+
t[123] !== l?.tooltip || t[124] !== L || t[125] !== Ct || t[126] !== o || t[127] !== r?.tooltip || t[128] !== at ? (At = o && at && L && Ct ? /* @__PURE__ */ i.jsx(Ie, { data: o, body: at, xPos: L, yPos: Ct, backgroundStyle: r?.tooltip, className: l?.tooltip }) : null, t[123] = l?.tooltip, t[124] = L, t[125] = Ct, t[126] = o, t[127] = r?.tooltip, t[128] = at, t[129] = At) : At = t[129];
|
|
496
|
+
let g;
|
|
497
|
+
t[130] !== l?.modal || t[131] !== ft || t[132] !== O ? (g = ft && O !== void 0 ? /* @__PURE__ */ i.jsx(Te, { body: ft, data: O, setData: z, className: l?.modal }) : null, t[130] = l?.modal, t[131] = ft, t[132] = O, t[133] = g) : g = t[133];
|
|
496
498
|
let b;
|
|
497
|
-
t[
|
|
498
|
-
|
|
499
|
-
return t[134] !== At || t[135] !== $t || t[136] !== b ? ($ = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
499
|
+
return t[134] !== J || t[135] !== At || t[136] !== g ? (b = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
500
|
+
J,
|
|
500
501
|
At,
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
] }), t[134] = At, t[135] = $t, t[136] = b, t[137] = $) : $ = t[137], $;
|
|
502
|
+
g
|
|
503
|
+
] }), t[134] = J, t[135] = At, t[136] = g, t[137] = b) : b = t[137], b;
|
|
504
504
|
}
|
|
505
|
-
function
|
|
505
|
+
function gi(e) {
|
|
506
506
|
return e.layer;
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function yi(e) {
|
|
509
509
|
return e.position === "after";
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function bi(e) {
|
|
512
512
|
return e.layer;
|
|
513
513
|
}
|
|
514
|
-
function
|
|
514
|
+
function vi(e) {
|
|
515
515
|
return e.position === "before";
|
|
516
516
|
}
|
|
517
|
-
function
|
|
517
|
+
function wi(e) {
|
|
518
518
|
return e !== 0;
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function Ai(e) {
|
|
521
521
|
return e !== 0;
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function $i(e, t) {
|
|
524
524
|
return `${t}`;
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function Oi(e) {
|
|
527
527
|
return `${e.id}`;
|
|
528
528
|
}
|
|
529
|
-
function
|
|
530
|
-
const t =
|
|
531
|
-
data:
|
|
532
|
-
graphTitle:
|
|
533
|
-
colors:
|
|
534
|
-
sources:
|
|
535
|
-
graphDescription:
|
|
529
|
+
function Mi(e) {
|
|
530
|
+
const t = we.c(125), {
|
|
531
|
+
data: s,
|
|
532
|
+
graphTitle: X,
|
|
533
|
+
colors: Ut,
|
|
534
|
+
sources: Kt,
|
|
535
|
+
graphDescription: Lt,
|
|
536
536
|
barPadding: Ot,
|
|
537
537
|
showTicks: Tt,
|
|
538
|
-
truncateBy:
|
|
539
|
-
height:
|
|
540
|
-
width:
|
|
541
|
-
footNote:
|
|
542
|
-
colorDomain:
|
|
543
|
-
colorLegendTitle:
|
|
544
|
-
suffix:
|
|
545
|
-
prefix:
|
|
538
|
+
truncateBy: P,
|
|
539
|
+
height: K,
|
|
540
|
+
width: y,
|
|
541
|
+
footNote: st,
|
|
542
|
+
colorDomain: ht,
|
|
543
|
+
colorLegendTitle: it,
|
|
544
|
+
suffix: Jt,
|
|
545
|
+
prefix: Y,
|
|
546
546
|
showValues: at,
|
|
547
547
|
showColorScale: Mt,
|
|
548
548
|
padding: kt,
|
|
549
|
-
backgroundColor:
|
|
550
|
-
leftMargin:
|
|
551
|
-
rightMargin:
|
|
552
|
-
topMargin:
|
|
553
|
-
bottomMargin:
|
|
554
|
-
showLabels:
|
|
555
|
-
relativeHeight:
|
|
556
|
-
tooltip:
|
|
557
|
-
onSeriesMouseOver:
|
|
558
|
-
refValues:
|
|
559
|
-
graphID:
|
|
560
|
-
maxValue:
|
|
561
|
-
minValue:
|
|
562
|
-
onSeriesMouseClick:
|
|
563
|
-
graphDownload:
|
|
564
|
-
dataDownload:
|
|
565
|
-
language:
|
|
566
|
-
labelOrder:
|
|
567
|
-
minHeight:
|
|
568
|
-
theme:
|
|
569
|
-
maxBarThickness:
|
|
570
|
-
ariaLabel:
|
|
571
|
-
resetSelectionOnDoubleClick:
|
|
572
|
-
detailsOnClick:
|
|
573
|
-
barAxisTitle:
|
|
574
|
-
noOfTicks:
|
|
575
|
-
valueColor:
|
|
576
|
-
styles:
|
|
577
|
-
classNames:
|
|
578
|
-
filterNA:
|
|
579
|
-
animate:
|
|
580
|
-
precision:
|
|
581
|
-
customLayers:
|
|
582
|
-
timeline:
|
|
583
|
-
naLabel:
|
|
584
|
-
sortParameter:
|
|
585
|
-
sortData:
|
|
586
|
-
orientation:
|
|
587
|
-
} = e,
|
|
588
|
-
let
|
|
589
|
-
t[0] !==
|
|
590
|
-
const
|
|
591
|
-
let
|
|
592
|
-
t[2] !==
|
|
549
|
+
backgroundColor: Gt,
|
|
550
|
+
leftMargin: w,
|
|
551
|
+
rightMargin: Q,
|
|
552
|
+
topMargin: E,
|
|
553
|
+
bottomMargin: T,
|
|
554
|
+
showLabels: rt,
|
|
555
|
+
relativeHeight: Z,
|
|
556
|
+
tooltip: ft,
|
|
557
|
+
onSeriesMouseOver: B,
|
|
558
|
+
refValues: _,
|
|
559
|
+
graphID: lt,
|
|
560
|
+
maxValue: r,
|
|
561
|
+
minValue: l,
|
|
562
|
+
onSeriesMouseClick: n,
|
|
563
|
+
graphDownload: u,
|
|
564
|
+
dataDownload: c,
|
|
565
|
+
language: f,
|
|
566
|
+
labelOrder: d,
|
|
567
|
+
minHeight: V,
|
|
568
|
+
theme: ct,
|
|
569
|
+
maxBarThickness: tt,
|
|
570
|
+
ariaLabel: Ft,
|
|
571
|
+
resetSelectionOnDoubleClick: Pt,
|
|
572
|
+
detailsOnClick: Et,
|
|
573
|
+
barAxisTitle: q,
|
|
574
|
+
noOfTicks: pt,
|
|
575
|
+
valueColor: Rt,
|
|
576
|
+
styles: m,
|
|
577
|
+
classNames: o,
|
|
578
|
+
filterNA: I,
|
|
579
|
+
animate: O,
|
|
580
|
+
precision: z,
|
|
581
|
+
customLayers: L,
|
|
582
|
+
timeline: N,
|
|
583
|
+
naLabel: Ct,
|
|
584
|
+
sortParameter: It,
|
|
585
|
+
sortData: nt,
|
|
586
|
+
orientation: Nt
|
|
587
|
+
} = e, H = Ut === void 0 ? ge.light.categoricalColors.colors : Ut, G = Ot === void 0 ? 0.25 : Ot, $ = Tt === void 0 ? !0 : Tt, Ht = P === void 0 ? 999 : P, bt = Jt === void 0 ? "" : Jt, gt = Y === void 0 ? "" : Y, dt = at === void 0 ? !0 : at, Wt = Mt === void 0 ? !0 : Mt, jt = Gt === void 0 ? !1 : Gt, Vt = rt === void 0 ? !0 : rt, et = u === void 0 ? !1 : u, S = c === void 0 ? !1 : c, j = f === void 0 ? "en" : f, zt = V === void 0 ? 0 : V, yt = ct === void 0 ? "light" : ct, ot = Pt === void 0 ? !0 : Pt, ut = pt === void 0 ? 5 : pt, mt = I === void 0 ? !0 : I, U = O === void 0 ? !1 : O, vt = z === void 0 ? 2 : z;
|
|
588
|
+
let wt;
|
|
589
|
+
t[0] !== L ? (wt = L === void 0 ? [] : L, t[0] = L, t[1] = wt) : wt = t[1];
|
|
590
|
+
const J = wt;
|
|
591
|
+
let At;
|
|
592
|
+
t[2] !== N ? (At = N === void 0 ? {
|
|
593
593
|
enabled: !1,
|
|
594
594
|
autoplay: !1,
|
|
595
595
|
showOnlyActiveDate: !0
|
|
596
|
-
} :
|
|
597
|
-
const
|
|
598
|
-
let
|
|
599
|
-
if (t[4] !==
|
|
596
|
+
} : N, t[2] = N, t[3] = At) : At = t[3];
|
|
597
|
+
const g = At, b = Ct === void 0 ? "NA" : Ct, p = (Nt === void 0 ? "vertical" : Nt) === "horizontal" ? oi : pi, [xt, Xt] = te(0), [A, h] = te(0), [x, Yt] = te(g.autoplay);
|
|
598
|
+
let Zt;
|
|
599
|
+
if (t[4] !== s || t[5] !== g.dateFormat) {
|
|
600
600
|
let Qt;
|
|
601
|
-
t[7] !==
|
|
601
|
+
t[7] !== g.dateFormat ? (Qt = (Dt) => Ee(`${Dt.date}`, g.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[7] = g.dateFormat, t[8] = Qt) : Qt = t[8], Zt = [...new Set(s.filter(Gi).map(Qt))], Zt.sort(Ei), t[4] = s, t[5] = g.dateFormat, t[6] = Zt;
|
|
602
602
|
} else
|
|
603
|
-
|
|
604
|
-
const
|
|
605
|
-
let
|
|
606
|
-
t[9] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
607
|
-
const Qt = new ResizeObserver((
|
|
608
|
-
|
|
603
|
+
Zt = t[6];
|
|
604
|
+
const F = Zt, [M, _t] = te(g.autoplay ? 0 : F.length - 1), [W, R] = te(void 0), D = ve(null), St = ve(null);
|
|
605
|
+
let a, $t;
|
|
606
|
+
t[9] === Symbol.for("react.memo_cache_sentinel") ? (a = () => {
|
|
607
|
+
const Qt = new ResizeObserver((Dt) => {
|
|
608
|
+
Xt(Dt[0].target.clientWidth || 620), h(Dt[0].target.clientHeight || 480);
|
|
609
609
|
});
|
|
610
|
-
return
|
|
611
|
-
},
|
|
612
|
-
let
|
|
613
|
-
t[11] !==
|
|
610
|
+
return D.current && Qt.observe(D.current), () => Qt.disconnect();
|
|
611
|
+
}, $t = [], t[9] = a, t[10] = $t) : (a = t[9], $t = t[10]), De(a, $t);
|
|
612
|
+
let k, Bt;
|
|
613
|
+
t[11] !== x || t[12] !== g.speed || t[13] !== F ? (k = () => {
|
|
614
614
|
const Qt = setInterval(() => {
|
|
615
|
-
|
|
616
|
-
}, (
|
|
617
|
-
return
|
|
618
|
-
}, Bt = [
|
|
619
|
-
const
|
|
620
|
-
let
|
|
621
|
-
t[16] !==
|
|
622
|
-
const
|
|
623
|
-
let
|
|
624
|
-
t[21] !==
|
|
625
|
-
title:
|
|
626
|
-
description:
|
|
615
|
+
_t((Dt) => Dt < F.length - 1 ? Dt + 1 : 0);
|
|
616
|
+
}, (g.speed || 2) * 1e3);
|
|
617
|
+
return x || clearInterval(Qt), () => clearInterval(Qt);
|
|
618
|
+
}, Bt = [F, x, g.speed], t[11] = x, t[12] = g.speed, t[13] = F, t[14] = k, t[15] = Bt) : (k = t[14], Bt = t[15]), De(k, Bt);
|
|
619
|
+
const qt = g.dateFormat || "yyyy";
|
|
620
|
+
let C;
|
|
621
|
+
t[16] !== M || t[17] !== qt || t[18] !== g.showOnlyActiveDate || t[19] !== F ? (C = Xe(F, M, g.showOnlyActiveDate, qt), t[16] = M, t[17] = qt, t[18] = g.showOnlyActiveDate, t[19] = F, t[20] = C) : C = t[20];
|
|
622
|
+
const fe = C, de = o?.graphContainer, ye = m?.graphContainer;
|
|
623
|
+
let pe;
|
|
624
|
+
t[21] !== o?.description || t[22] !== o?.title || t[23] !== s || t[24] !== S || t[25] !== Lt || t[26] !== et || t[27] !== X || t[28] !== m?.description || t[29] !== m?.title || t[30] !== y ? (pe = X || Lt || et || S ? /* @__PURE__ */ i.jsx(Qe, { styles: {
|
|
625
|
+
title: m?.title,
|
|
626
|
+
description: m?.description
|
|
627
627
|
}, classNames: {
|
|
628
|
-
title:
|
|
629
|
-
description:
|
|
630
|
-
}, graphTitle:
|
|
631
|
-
let
|
|
632
|
-
t[32] !==
|
|
628
|
+
title: o?.title,
|
|
629
|
+
description: o?.description
|
|
630
|
+
}, graphTitle: X, graphDescription: Lt, width: y, graphDownload: et ? St : void 0, dataDownload: S ? s.map(Yi).filter(Xi).length > 0 ? s.map(Wi).filter(Hi) : s.filter(Pi) : null }) : null, t[21] = o?.description, t[22] = o?.title, t[23] = s, t[24] = S, t[25] = Lt, t[26] = et, t[27] = X, t[28] = m?.description, t[29] = m?.title, t[30] = y, t[31] = pe) : pe = t[31];
|
|
631
|
+
let ae;
|
|
632
|
+
t[32] !== M || t[33] !== fe || t[34] !== x || t[35] !== g.enabled || t[36] !== F ? (ae = g.enabled && F.length > 0 && fe ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
|
|
633
633
|
/* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
|
|
634
|
-
|
|
635
|
-
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label":
|
|
636
|
-
/* @__PURE__ */ i.jsx(
|
|
637
|
-
|
|
634
|
+
Yt(!x);
|
|
635
|
+
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": x ? "Click to pause animation" : "Click to play animation", children: x ? /* @__PURE__ */ i.jsx(ei, {}) : /* @__PURE__ */ i.jsx(ii, {}) }),
|
|
636
|
+
/* @__PURE__ */ i.jsx(Ye, { min: F[0], max: F[F.length - 1], marks: fe, step: null, defaultValue: F[F.length - 1], value: F[M], onChangeComplete: (Qt) => {
|
|
637
|
+
_t(F.indexOf(Qt));
|
|
638
638
|
}, onChange: (Qt) => {
|
|
639
|
-
|
|
639
|
+
_t(F.indexOf(Qt));
|
|
640
640
|
}, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
|
|
641
|
-
] }) : null, t[32] =
|
|
642
|
-
let re;
|
|
643
|
-
t[38] !== v || t[39] !== ut || t[40] !== Y || t[41] !== w || t[42] !== D || t[43] !== n || t[44] !== St || t[45] !== tt || t[46] !== E || t[47] !== At || t[48] !== a || t[49] !== Gt || t[50] !== _ || t[51] !== T || t[52] !== x || t[53] !== z || t[54] !== M || t[55] !== Z || t[56] !== c || t[57] !== s || t[58] !== $ || t[59] !== vt || t[60] !== l || t[61] !== L || t[62] !== wt || t[63] !== ct || t[64] !== Q || t[65] !== dt || t[66] !== J || t[67] !== X || t[68] !== Nt || t[69] !== zt || t[70] !== bt || t[71] !== Ft || t[72] !== xt || t[73] !== yt || t[74] !== r || t[75] !== jt || t[76] !== p || t[77] !== ft || t[78] !== b.dateFormat || t[79] !== b.enabled || t[80] !== mt || t[81] !== H || t[82] !== Wt || t[83] !== N || t[84] !== Ht || t[85] !== A ? (re = /* @__PURE__ */ i.jsx("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: a.length === 0 ? /* @__PURE__ */ i.jsx(Ke, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
644
|
-
Nt ? /* @__PURE__ */ i.jsx(Je, { width: A, colorDomain: St, colors: E, colorLegendTitle: tt, setSelectedColor: V, showNAColor: !1, className: n?.colorLegend }) : null,
|
|
645
|
-
/* @__PURE__ */ i.jsx(_e, { ref: R, children: ft && p ? /* @__PURE__ */ i.jsx(v, { data: yt !== void 0 ? yt === "total" ? Te(Me(a, b.dateFormat || "yyyy").filter((Qt) => b.enabled ? Qt.date === we(new Date(N[T]), b.dateFormat || "yyyy") : Qt).filter((Qt) => _ ? !Qt.size.every(Ni) : Qt), Ii, [xt || "asc"]) : Te(Me(a, b.dateFormat || "yyyy").filter((Qt) => b.enabled ? Qt.date === we(new Date(N[T]), b.dateFormat || "yyyy") : Qt).filter((Qt) => _ ? !Qt.size.every(Li) : Qt), (Qt) => ie(Qt.size[yt]) ? -1 / 0 : Qt.size[yt], [xt || "asc"]) : Me(a, b.dateFormat || "yyyy").filter((Qt) => _ ? !Qt.size.every(Di) : Qt), barColors: E, width: ft, height: p, suffix: jt, prefix: ct, showValues: Ft, barPadding: w, showTicks: bt, leftMargin: M, rightMargin: J, topMargin: H, bottomMargin: D, truncateBy: Wt, showLabels: zt, tooltip: mt, onSeriesMouseOver: L, refValues: Q, maxValue: ie(c) ? Math.max(...a.map(Vi)) < 0 ? 0 : Math.max(...a.map(ki)) : c, minValue: ie(s) ? Math.min(...a.map(Oi)) >= 0 ? 0 : Math.min(...a.map(Ai)) : s, onSeriesMouseClick: l, selectedColor: X, labelOrder: x, rtl: z === "he" || z === "ar", maxBarThickness: Z, resetSelectionOnDoubleClick: dt, detailsOnClick: Gt, barAxisTitle: Y, noOfTicks: vt, valueColor: Ht, styles: r, classNames: n, colorDomain: St, animate: ut === !0 ? {
|
|
646
|
-
duration: 0.5,
|
|
647
|
-
once: !0,
|
|
648
|
-
amount: 0.5
|
|
649
|
-
} : ut || {
|
|
650
|
-
duration: 0,
|
|
651
|
-
once: !0,
|
|
652
|
-
amount: 0
|
|
653
|
-
}, precision: wt, customLayers: At, naLabel: $ }) : null })
|
|
654
|
-
] }) }), t[38] = v, t[39] = ut, t[40] = Y, t[41] = w, t[42] = D, t[43] = n, t[44] = St, t[45] = tt, t[46] = E, t[47] = At, t[48] = a, t[49] = Gt, t[50] = _, t[51] = T, t[52] = x, t[53] = z, t[54] = M, t[55] = Z, t[56] = c, t[57] = s, t[58] = $, t[59] = vt, t[60] = l, t[61] = L, t[62] = wt, t[63] = ct, t[64] = Q, t[65] = dt, t[66] = J, t[67] = X, t[68] = Nt, t[69] = zt, t[70] = bt, t[71] = Ft, t[72] = xt, t[73] = yt, t[74] = r, t[75] = jt, t[76] = p, t[77] = ft, t[78] = b.dateFormat, t[79] = b.enabled, t[80] = mt, t[81] = H, t[82] = Wt, t[83] = N, t[84] = Ht, t[85] = A, t[86] = re) : re = t[86];
|
|
641
|
+
] }) : null, t[32] = M, t[33] = fe, t[34] = x, t[35] = g.enabled, t[36] = F, t[37] = ae) : ae = t[37];
|
|
655
642
|
let ne;
|
|
656
|
-
t[
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
643
|
+
t[38] !== o?.colorLegend || t[39] !== ht || t[40] !== it || t[41] !== H || t[42] !== s.length || t[43] !== Wt || t[44] !== y ? (ne = Wt && s.length > 0 ? /* @__PURE__ */ i.jsx(_e, { width: y, colorDomain: ht, colors: H, colorLegendTitle: it, setSelectedColor: R, showNAColor: !1, className: o?.colorLegend }) : null, t[38] = o?.colorLegend, t[39] = ht, t[40] = it, t[41] = H, t[42] = s.length, t[43] = Wt, t[44] = y, t[45] = ne) : ne = t[45];
|
|
644
|
+
let ue;
|
|
645
|
+
t[46] !== s.length ? (ue = s.length === 0 && /* @__PURE__ */ i.jsx(ti, {}), t[46] = s.length, t[47] = ue) : ue = t[47];
|
|
646
|
+
let oe;
|
|
647
|
+
t[48] !== p || t[49] !== U || t[50] !== q || t[51] !== G || t[52] !== T || t[53] !== o || t[54] !== ht || t[55] !== H || t[56] !== J || t[57] !== s || t[58] !== Et || t[59] !== mt || t[60] !== M || t[61] !== d || t[62] !== j || t[63] !== w || t[64] !== tt || t[65] !== r || t[66] !== l || t[67] !== b || t[68] !== ut || t[69] !== n || t[70] !== B || t[71] !== vt || t[72] !== gt || t[73] !== _ || t[74] !== ot || t[75] !== Q || t[76] !== W || t[77] !== Vt || t[78] !== $ || t[79] !== dt || t[80] !== nt || t[81] !== It || t[82] !== m || t[83] !== bt || t[84] !== A || t[85] !== xt || t[86] !== g.dateFormat || t[87] !== g.enabled || t[88] !== ft || t[89] !== E || t[90] !== Ht || t[91] !== F || t[92] !== Rt ? (oe = xt && A && s.length > 0 ? /* @__PURE__ */ i.jsx(p, { data: It !== void 0 ? It === "total" ? Pe(ze(s, g.dateFormat || "yyyy").filter((Qt) => g.enabled ? Qt.date === Me(new Date(F[M]), g.dateFormat || "yyyy") : Qt).filter((Qt) => mt ? !Qt.size.every(Fi) : Qt), Si, [nt || "asc"]) : Pe(ze(s, g.dateFormat || "yyyy").filter((Qt) => g.enabled ? Qt.date === Me(new Date(F[M]), g.dateFormat || "yyyy") : Qt).filter((Qt) => mt ? !Qt.size.every(Ti) : Qt), (Qt) => le(Qt.size[It]) ? -1 / 0 : Qt.size[It], [nt || "asc"]) : ze(s, g.dateFormat || "yyyy").filter((Qt) => mt ? !Qt.size.every(ji) : Qt), barColors: H, width: xt, height: A, suffix: bt, prefix: gt, showValues: dt, barPadding: G, showTicks: $, leftMargin: w, rightMargin: Q, topMargin: E, bottomMargin: T, truncateBy: Ht, showLabels: Vt, tooltip: ft, onSeriesMouseOver: B, refValues: _, maxValue: le(r) ? Math.max(...s.map(Ii)) < 0 ? 0 : Math.max(...s.map(Di)) : r, minValue: le(l) ? Math.min(...s.map(Vi)) >= 0 ? 0 : Math.min(...s.map(ki)) : l, onSeriesMouseClick: n, selectedColor: W, labelOrder: d, rtl: j === "he" || j === "ar", maxBarThickness: tt, resetSelectionOnDoubleClick: ot, detailsOnClick: Et, barAxisTitle: q, noOfTicks: ut, valueColor: Rt, styles: m, classNames: o, colorDomain: ht, animate: U === !0 ? {
|
|
648
|
+
duration: 0.5,
|
|
649
|
+
once: !0,
|
|
650
|
+
amount: 0.5
|
|
651
|
+
} : U || {
|
|
652
|
+
duration: 0,
|
|
653
|
+
once: !0,
|
|
654
|
+
amount: 0
|
|
655
|
+
}, precision: vt, customLayers: J, naLabel: b }) : null, t[48] = p, t[49] = U, t[50] = q, t[51] = G, t[52] = T, t[53] = o, t[54] = ht, t[55] = H, t[56] = J, t[57] = s, t[58] = Et, t[59] = mt, t[60] = M, t[61] = d, t[62] = j, t[63] = w, t[64] = tt, t[65] = r, t[66] = l, t[67] = b, t[68] = ut, t[69] = n, t[70] = B, t[71] = vt, t[72] = gt, t[73] = _, t[74] = ot, t[75] = Q, t[76] = W, t[77] = Vt, t[78] = $, t[79] = dt, t[80] = nt, t[81] = It, t[82] = m, t[83] = bt, t[84] = A, t[85] = xt, t[86] = g.dateFormat, t[87] = g.enabled, t[88] = ft, t[89] = E, t[90] = Ht, t[91] = F, t[92] = Rt, t[93] = oe) : oe = t[93];
|
|
656
|
+
let re;
|
|
657
|
+
t[94] !== ue || t[95] !== oe ? (re = /* @__PURE__ */ i.jsxs(li, { ref: D, children: [
|
|
665
658
|
ue,
|
|
666
|
-
oe
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
659
|
+
oe
|
|
660
|
+
] }), t[94] = ue, t[95] = oe, t[96] = re) : re = t[96];
|
|
661
|
+
let me;
|
|
662
|
+
t[97] !== ne || t[98] !== re ? (me = /* @__PURE__ */ i.jsxs("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: [
|
|
663
|
+
ne,
|
|
664
|
+
re
|
|
665
|
+
] }), t[97] = ne, t[98] = re, t[99] = me) : me = t[99];
|
|
666
|
+
let xe;
|
|
667
|
+
t[100] !== o?.footnote || t[101] !== o?.source || t[102] !== st || t[103] !== Kt || t[104] !== m?.footnote || t[105] !== m?.source || t[106] !== y ? (xe = Kt || st ? /* @__PURE__ */ i.jsx(Ze, { styles: {
|
|
668
|
+
footnote: m?.footnote,
|
|
669
|
+
source: m?.source
|
|
670
|
+
}, classNames: {
|
|
671
|
+
footnote: o?.footnote,
|
|
672
|
+
source: o?.source
|
|
673
|
+
}, sources: Kt, footNote: st, width: y }) : null, t[100] = o?.footnote, t[101] = o?.source, t[102] = st, t[103] = Kt, t[104] = m?.footnote, t[105] = m?.source, t[106] = y, t[107] = xe) : xe = t[107];
|
|
674
|
+
let ce;
|
|
675
|
+
return t[108] !== Ft || t[109] !== jt || t[110] !== lt || t[111] !== K || t[112] !== j || t[113] !== zt || t[114] !== kt || t[115] !== Z || t[116] !== de || t[117] !== ye || t[118] !== pe || t[119] !== ae || t[120] !== me || t[121] !== xe || t[122] !== yt || t[123] !== y ? (ce = /* @__PURE__ */ i.jsxs(si, { className: de, style: ye, id: lt, ref: St, "aria-label": Ft, backgroundColor: jt, theme: yt, language: j, minHeight: zt, width: y, height: K, relativeHeight: Z, padding: kt, children: [
|
|
676
|
+
pe,
|
|
677
|
+
ae,
|
|
678
|
+
me,
|
|
679
|
+
xe
|
|
680
|
+
] }), t[108] = Ft, t[109] = jt, t[110] = lt, t[111] = K, t[112] = j, t[113] = zt, t[114] = kt, t[115] = Z, t[116] = de, t[117] = ye, t[118] = pe, t[119] = ae, t[120] = me, t[121] = xe, t[122] = yt, t[123] = y, t[124] = ce) : ce = t[124], ce;
|
|
682
681
|
}
|
|
683
682
|
function ki(e) {
|
|
684
|
-
return Math.
|
|
683
|
+
return Math.min(...e.size.filter(Ci));
|
|
685
684
|
}
|
|
686
685
|
function Ci(e) {
|
|
687
|
-
return !
|
|
686
|
+
return !le(e);
|
|
688
687
|
}
|
|
689
688
|
function Vi(e) {
|
|
690
|
-
return Math.
|
|
689
|
+
return Math.min(...e.size.filter(zi));
|
|
691
690
|
}
|
|
692
691
|
function zi(e) {
|
|
693
|
-
return !
|
|
692
|
+
return !le(e);
|
|
694
693
|
}
|
|
695
694
|
function Di(e) {
|
|
696
|
-
return e
|
|
695
|
+
return Math.max(...e.size.filter(Li));
|
|
697
696
|
}
|
|
698
697
|
function Li(e) {
|
|
699
|
-
return e
|
|
698
|
+
return !le(e);
|
|
700
699
|
}
|
|
701
700
|
function Ii(e) {
|
|
702
|
-
return
|
|
703
|
-
}
|
|
704
|
-
function ji(e) {
|
|
705
|
-
return !ie(e);
|
|
701
|
+
return Math.max(...e.size.filter(Ni));
|
|
706
702
|
}
|
|
707
703
|
function Ni(e) {
|
|
704
|
+
return !le(e);
|
|
705
|
+
}
|
|
706
|
+
function ji(e) {
|
|
708
707
|
return e == null;
|
|
709
708
|
}
|
|
710
709
|
function Ti(e) {
|
|
711
|
-
return e
|
|
710
|
+
return e == null;
|
|
712
711
|
}
|
|
713
712
|
function Si(e) {
|
|
714
|
-
return e
|
|
713
|
+
return he(e.size.filter(Bi));
|
|
715
714
|
}
|
|
716
715
|
function Bi(e) {
|
|
717
|
-
return e
|
|
716
|
+
return !le(e);
|
|
718
717
|
}
|
|
719
718
|
function Fi(e) {
|
|
720
|
-
return e
|
|
719
|
+
return e == null;
|
|
721
720
|
}
|
|
722
721
|
function Pi(e) {
|
|
722
|
+
return e !== void 0;
|
|
723
|
+
}
|
|
724
|
+
function Hi(e) {
|
|
725
|
+
return e !== void 0;
|
|
726
|
+
}
|
|
727
|
+
function Wi(e) {
|
|
723
728
|
return e.data;
|
|
724
729
|
}
|
|
725
|
-
function
|
|
730
|
+
function Xi(e) {
|
|
731
|
+
return e !== void 0;
|
|
732
|
+
}
|
|
733
|
+
function Yi(e) {
|
|
734
|
+
return e.data;
|
|
735
|
+
}
|
|
736
|
+
function Ei(e, t) {
|
|
726
737
|
return e - t;
|
|
727
738
|
}
|
|
728
|
-
function
|
|
739
|
+
function Gi(e) {
|
|
729
740
|
return e.date;
|
|
730
741
|
}
|
|
731
|
-
function
|
|
732
|
-
const t =
|
|
733
|
-
data:
|
|
734
|
-
barColor:
|
|
735
|
-
suffix:
|
|
736
|
-
prefix:
|
|
737
|
-
barPadding:
|
|
742
|
+
function Ri(e) {
|
|
743
|
+
const t = we.c(132), {
|
|
744
|
+
data: s,
|
|
745
|
+
barColor: X,
|
|
746
|
+
suffix: Ut,
|
|
747
|
+
prefix: Kt,
|
|
748
|
+
barPadding: Lt,
|
|
738
749
|
showValues: Ot,
|
|
739
750
|
showTicks: Tt,
|
|
740
|
-
truncateBy:
|
|
741
|
-
width:
|
|
742
|
-
height:
|
|
743
|
-
colorDomain:
|
|
744
|
-
topMargin:
|
|
745
|
-
bottomMargin:
|
|
746
|
-
leftMargin:
|
|
747
|
-
rightMargin:
|
|
751
|
+
truncateBy: P,
|
|
752
|
+
width: K,
|
|
753
|
+
height: y,
|
|
754
|
+
colorDomain: st,
|
|
755
|
+
topMargin: ht,
|
|
756
|
+
bottomMargin: it,
|
|
757
|
+
leftMargin: Jt,
|
|
758
|
+
rightMargin: Y,
|
|
748
759
|
showLabels: at,
|
|
749
760
|
tooltip: Mt,
|
|
750
761
|
onSeriesMouseOver: kt,
|
|
751
|
-
refValues:
|
|
752
|
-
selectedColor:
|
|
753
|
-
highlightedDataPoints:
|
|
754
|
-
maxValue:
|
|
755
|
-
minValue:
|
|
756
|
-
onSeriesMouseClick:
|
|
757
|
-
labelOrder:
|
|
758
|
-
rtl:
|
|
759
|
-
maxBarThickness:
|
|
760
|
-
minBarThickness:
|
|
761
|
-
resetSelectionOnDoubleClick:
|
|
762
|
-
detailsOnClick:
|
|
763
|
-
barAxisTitle:
|
|
764
|
-
valueColor:
|
|
765
|
-
noOfTicks:
|
|
766
|
-
styles:
|
|
767
|
-
classNames:
|
|
768
|
-
animate:
|
|
769
|
-
dimmedOpacity:
|
|
770
|
-
precision:
|
|
771
|
-
customLayers:
|
|
772
|
-
naLabel:
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
762
|
+
refValues: Gt,
|
|
763
|
+
selectedColor: w,
|
|
764
|
+
highlightedDataPoints: Q,
|
|
765
|
+
maxValue: E,
|
|
766
|
+
minValue: T,
|
|
767
|
+
onSeriesMouseClick: rt,
|
|
768
|
+
labelOrder: Z,
|
|
769
|
+
rtl: ft,
|
|
770
|
+
maxBarThickness: B,
|
|
771
|
+
minBarThickness: _,
|
|
772
|
+
resetSelectionOnDoubleClick: lt,
|
|
773
|
+
detailsOnClick: r,
|
|
774
|
+
barAxisTitle: l,
|
|
775
|
+
valueColor: n,
|
|
776
|
+
noOfTicks: u,
|
|
777
|
+
styles: c,
|
|
778
|
+
classNames: f,
|
|
779
|
+
animate: d,
|
|
780
|
+
dimmedOpacity: V,
|
|
781
|
+
precision: ct,
|
|
782
|
+
customLayers: tt,
|
|
783
|
+
naLabel: Ft,
|
|
784
|
+
trackColor: Pt
|
|
785
|
+
} = e, Et = ht === void 0 ? 25 : ht, q = it === void 0 ? 10 : it, pt = Jt === void 0 ? 100 : Jt, Rt = Y === void 0 ? 40 : Y, m = ve(null);
|
|
786
|
+
let o;
|
|
787
|
+
t[0] !== d.amount || t[1] !== d.once ? (o = {
|
|
788
|
+
once: d.once,
|
|
789
|
+
amount: d.amount
|
|
790
|
+
}, t[0] = d.amount, t[1] = d.once, t[2] = o) : o = t[2];
|
|
791
|
+
const I = Se(m, o), [O, z] = te(void 0), [L, N] = te(void 0), [Ct, It] = te(void 0), [nt, Nt] = te(void 0), H = l ? Et + 25 : Et;
|
|
792
|
+
let G;
|
|
793
|
+
t[3] !== q || t[4] !== pt || t[5] !== Rt || t[6] !== H ? (G = {
|
|
794
|
+
top: H,
|
|
795
|
+
bottom: q,
|
|
796
|
+
left: pt,
|
|
797
|
+
right: Rt
|
|
798
|
+
}, t[3] = q, t[4] = pt, t[5] = Rt, t[6] = H, t[7] = G) : G = t[7];
|
|
799
|
+
const $ = G, Ht = K - $.left - $.right, bt = y - $.top - $.bottom;
|
|
800
|
+
let gt;
|
|
801
|
+
if (t[8] !== s || t[9] !== Z) {
|
|
802
|
+
const h = /* @__PURE__ */ new Set(), x = s.map((Zt, F) => {
|
|
803
|
+
const M = Z ? `${Zt.label}` : `${F}`;
|
|
804
|
+
return h.add(M), {
|
|
805
|
+
...Zt,
|
|
806
|
+
id: M
|
|
795
807
|
};
|
|
796
|
-
}),
|
|
797
|
-
|
|
808
|
+
}), Yt = Z ? Z.filter((Zt) => !h.has(Zt)) : [];
|
|
809
|
+
gt = [...x, ...Yt.map(sl)], t[8] = s, t[9] = Z, t[10] = gt;
|
|
798
810
|
} else
|
|
799
|
-
|
|
800
|
-
const
|
|
801
|
-
let
|
|
802
|
-
t[11] !==
|
|
803
|
-
const
|
|
804
|
-
let Vt,
|
|
805
|
-
if (t[14] !==
|
|
806
|
-
const
|
|
807
|
-
|
|
808
|
-
gridLines:
|
|
809
|
-
labels:
|
|
811
|
+
gt = t[10];
|
|
812
|
+
const dt = gt;
|
|
813
|
+
let Wt;
|
|
814
|
+
t[11] !== dt || t[12] !== Z ? (Wt = Z ?? dt.map(ll), t[11] = dt, t[12] = Z, t[13] = Wt) : Wt = t[13];
|
|
815
|
+
const jt = Wt;
|
|
816
|
+
let Vt, et, S, j, zt, yt, ot, ut, mt, U, vt, wt, J, At;
|
|
817
|
+
if (t[14] !== d || t[15] !== l || t[16] !== X || t[17] !== jt || t[18] !== Lt || t[19] !== f?.graphObjectValues || t[20] !== f?.xAxis?.gridLines || t[21] !== f?.xAxis?.labels || t[22] !== f?.xAxis?.title || t[23] !== f?.yAxis?.axis || t[24] !== f?.yAxis?.labels || t[25] !== st || t[26] !== tt || t[27] !== s || t[28] !== dt || t[29] !== r || t[30] !== V || t[31] !== bt || t[32] !== Ht || t[33] !== y || t[34] !== Q || t[35] !== I || t[36] !== $.bottom || t[37] !== $.left || t[38] !== $.top || t[39] !== B || t[40] !== E || t[41] !== _ || t[42] !== T || t[43] !== L || t[44] !== Ft || t[45] !== u || t[46] !== rt || t[47] !== kt || t[48] !== ct || t[49] !== Kt || t[50] !== Gt || t[51] !== lt || t[52] !== ft || t[53] !== w || t[54] !== at || t[55] !== Tt || t[56] !== Ot || t[57] !== c?.graphObjectValues || t[58] !== c?.xAxis?.gridLines || t[59] !== c?.xAxis?.labels || t[60] !== c?.xAxis?.title || t[61] !== c?.yAxis?.axis || t[62] !== c?.yAxis?.labels || t[63] !== Ut || t[64] !== Et || t[65] !== Pt || t[66] !== P || t[67] !== n || t[68] !== K) {
|
|
818
|
+
const h = Be().domain([T, E]).range([0, Ht]).nice(), x = Oe().domain(jt).range([0, _ ? Math.max(bt, _ * jt.length) : B ? Math.min(bt, B * jt.length) : bt]).paddingInner(Lt), Yt = h.ticks(u);
|
|
819
|
+
et = ee.svg, mt = m, U = `${K}px`, vt = `${y}px`, wt = `0 0 ${K} ${y}`, J = "ltr", zt = `translate(${$.left},${$.top})`, yt = Tt ? /* @__PURE__ */ i.jsx(Re, { values: Yt.filter(il), x: Yt.filter(el).map((a) => h(a)), y1: 0 - Et, y2: bt + $.bottom, styles: {
|
|
820
|
+
gridLines: c?.xAxis?.gridLines,
|
|
821
|
+
labels: c?.xAxis?.labels
|
|
810
822
|
}, classNames: {
|
|
811
|
-
gridLines:
|
|
812
|
-
labels:
|
|
813
|
-
}, suffix:
|
|
814
|
-
const
|
|
815
|
-
t[
|
|
823
|
+
gridLines: f?.xAxis?.gridLines,
|
|
824
|
+
labels: f?.xAxis?.labels
|
|
825
|
+
}, suffix: Ut, prefix: Kt, labelType: "secondary", showGridLines: !0, precision: ct }) : null;
|
|
826
|
+
const Zt = Ht / 2, F = 0 - $.top + 15, M = c?.xAxis?.title, _t = f?.xAxis?.title;
|
|
827
|
+
t[83] !== l || t[84] !== Zt || t[85] !== F || t[86] !== M || t[87] !== _t ? (ot = /* @__PURE__ */ i.jsx(je, { x: Zt, y: F, style: M, className: _t, text: l }), t[83] = l, t[84] = Zt, t[85] = F, t[86] = M, t[87] = _t, t[88] = ot) : ot = t[88], t[89] !== tt ? (ut = tt.filter(tl).map(_i), t[89] = tt, t[90] = ut) : ut = t[90], Vt = Fe, At = dt.map((a) => le(x(a.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-g-with-hover", variants: {
|
|
816
828
|
initial: {
|
|
817
|
-
opacity:
|
|
829
|
+
opacity: w ? a.color && X[st.indexOf(a.color)] === w ? 1 : V : Q.length !== 0 ? Q.indexOf(a.label) !== -1 ? 0.85 : V : 0.85
|
|
818
830
|
},
|
|
819
831
|
whileInView: {
|
|
820
|
-
opacity:
|
|
832
|
+
opacity: w ? a.color && X[st.indexOf(a.color)] === w ? 1 : V : Q.length !== 0 ? Q.indexOf(a.label) !== -1 ? 0.85 : V : 0.85,
|
|
821
833
|
transition: {
|
|
822
|
-
duration:
|
|
834
|
+
duration: d.duration
|
|
823
835
|
}
|
|
824
836
|
}
|
|
825
|
-
}, initial: "initial", animate:
|
|
837
|
+
}, initial: "initial", animate: I ? "whileInView" : "initial", exit: {
|
|
826
838
|
opacity: 0,
|
|
827
839
|
transition: {
|
|
828
|
-
duration:
|
|
840
|
+
duration: d.duration
|
|
829
841
|
}
|
|
830
|
-
}, onMouseEnter: (
|
|
831
|
-
|
|
842
|
+
}, onMouseEnter: ($t) => {
|
|
843
|
+
z(a), Nt($t.clientY), It($t.clientX), kt?.(a);
|
|
832
844
|
}, onClick: () => {
|
|
833
|
-
(
|
|
834
|
-
}, onMouseMove: (
|
|
835
|
-
|
|
845
|
+
(rt || r) && (Le(L, a) && lt ? (N(void 0), rt?.(void 0)) : (N(a), rt?.(a)));
|
|
846
|
+
}, onMouseMove: ($t) => {
|
|
847
|
+
z(a), Nt($t.clientY), It($t.clientX);
|
|
836
848
|
}, onMouseLeave: () => {
|
|
837
|
-
|
|
849
|
+
z(void 0), It(void 0), Nt(void 0), kt?.(void 0);
|
|
838
850
|
}, children: [
|
|
839
|
-
|
|
851
|
+
Pt && /* @__PURE__ */ i.jsx(ee.rect, { height: x.bandwidth(), variants: {
|
|
852
|
+
initial: {
|
|
853
|
+
width: Ht,
|
|
854
|
+
x: 0,
|
|
855
|
+
y: x(`${a.id}`),
|
|
856
|
+
fill: Pt
|
|
857
|
+
},
|
|
858
|
+
whileInView: {
|
|
859
|
+
width: Ht,
|
|
860
|
+
x: 0,
|
|
861
|
+
y: x(`${a.id}`),
|
|
862
|
+
fill: Pt
|
|
863
|
+
}
|
|
864
|
+
}, initial: "initial", animate: I ? "whileInView" : "initial", exit: {
|
|
865
|
+
opacity: 0,
|
|
866
|
+
transition: {
|
|
867
|
+
duration: d.duration
|
|
868
|
+
}
|
|
869
|
+
} }),
|
|
870
|
+
a.size ? /* @__PURE__ */ i.jsx(ee.rect, { variants: {
|
|
840
871
|
initial: {
|
|
841
872
|
width: 0,
|
|
842
|
-
x:
|
|
843
|
-
y:
|
|
844
|
-
fill:
|
|
873
|
+
x: h(0),
|
|
874
|
+
y: x(`${a.id}`),
|
|
875
|
+
fill: s.filter(Zi).length === 0 ? X[0] : a.color ? X[st.indexOf(a.color)] : ge.gray
|
|
845
876
|
},
|
|
846
877
|
whileInView: {
|
|
847
|
-
width:
|
|
848
|
-
x:
|
|
849
|
-
y:
|
|
850
|
-
fill:
|
|
878
|
+
width: a.size >= 0 ? h(a.size) - h(0) : h(0) - h(a.size),
|
|
879
|
+
x: a.size >= 0 ? h(0) : h(a.size),
|
|
880
|
+
y: x(`${a.id}`),
|
|
881
|
+
fill: s.filter(Qi).length === 0 ? X[0] : a.color ? X[st.indexOf(a.color)] : ge.gray,
|
|
851
882
|
transition: {
|
|
852
|
-
duration:
|
|
883
|
+
duration: d.duration
|
|
853
884
|
}
|
|
854
885
|
}
|
|
855
|
-
}, initial: "initial", animate:
|
|
886
|
+
}, initial: "initial", animate: I ? "whileInView" : "initial", exit: {
|
|
856
887
|
width: 0,
|
|
857
|
-
x:
|
|
888
|
+
x: h(0),
|
|
858
889
|
transition: {
|
|
859
|
-
duration:
|
|
890
|
+
duration: d.duration
|
|
860
891
|
}
|
|
861
|
-
}, height:
|
|
862
|
-
at ? /* @__PURE__ */ i.jsx(
|
|
892
|
+
}, height: x.bandwidth() }) : null,
|
|
893
|
+
at ? /* @__PURE__ */ i.jsx(Ge, { value: `${a.label}`.length < P ? `${a.label}` : `${`${a.label}`.substring(0, P)}...`, y: x(a.id) || 0, x: (a.size || 0) < 0 ? h(0) : 0 - $.left, width: (a.size || 0) < 0 ? K - h(0) : h(0) + $.left, height: x.bandwidth(), alignment: a.size && a.size < 0 ? "left" : "right", style: c?.yAxis?.labels, className: f?.yAxis?.labels, animate: d, isInView: I }) : null,
|
|
863
894
|
Ot ? /* @__PURE__ */ i.jsx(ee.text, { style: {
|
|
864
|
-
textAnchor:
|
|
865
|
-
...
|
|
866
|
-
}, className:
|
|
895
|
+
textAnchor: a.size && a.size < 0 ? "end" : "start",
|
|
896
|
+
...c?.graphObjectValues || {}
|
|
897
|
+
}, className: $e("graph-value text-sm", !n && X.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", f?.graphObjectValues), dx: a.size && a.size < 0 ? -5 : 5, dy: "0.33em", variants: {
|
|
867
898
|
initial: {
|
|
868
|
-
x:
|
|
869
|
-
y:
|
|
899
|
+
x: h(0),
|
|
900
|
+
y: x(`${a.id}`) + x.bandwidth() / 2,
|
|
870
901
|
opacity: 0,
|
|
871
|
-
fill:
|
|
902
|
+
fill: n || (s.filter(Ki).length === 0 ? X[0] : a.color ? X[st.indexOf(a.color)] : ge.gray)
|
|
872
903
|
},
|
|
873
904
|
whileInView: {
|
|
874
|
-
x:
|
|
905
|
+
x: a.size ? h(a.size) : h(0),
|
|
875
906
|
opacity: 1,
|
|
876
|
-
y:
|
|
877
|
-
fill:
|
|
907
|
+
y: x(`${a.id}`) + x.bandwidth() / 2,
|
|
908
|
+
fill: n || (s.filter(Ji).length === 0 ? X[0] : a.color ? X[st.indexOf(a.color)] : ge.gray),
|
|
878
909
|
transition: {
|
|
879
|
-
duration:
|
|
910
|
+
duration: d.duration
|
|
880
911
|
}
|
|
881
912
|
}
|
|
882
|
-
}, initial: "initial", animate:
|
|
913
|
+
}, initial: "initial", animate: I ? "whileInView" : "initial", exit: {
|
|
883
914
|
opacity: 0,
|
|
884
915
|
transition: {
|
|
885
|
-
duration:
|
|
916
|
+
duration: d.duration
|
|
886
917
|
}
|
|
887
|
-
}, children:
|
|
888
|
-
] },
|
|
889
|
-
const
|
|
890
|
-
let X;
|
|
891
|
-
t[90] !== Rt ? (X = {
|
|
892
|
-
axis: Rt
|
|
893
|
-
}, t[90] = Rt, t[91] = X) : X = t[91];
|
|
894
|
-
const V = d?.yAxis?.axis;
|
|
918
|
+
}, children: be(a.size, Ft, ct, Kt, Ut) }) : null
|
|
919
|
+
] }, a.label));
|
|
920
|
+
const W = f?.yAxis?.axis;
|
|
895
921
|
let R;
|
|
896
|
-
t[
|
|
897
|
-
axis:
|
|
898
|
-
}, t[
|
|
922
|
+
t[91] !== W ? (R = {
|
|
923
|
+
axis: W
|
|
924
|
+
}, t[91] = W, t[92] = R) : R = t[92];
|
|
925
|
+
const D = c?.yAxis?.axis;
|
|
926
|
+
let St;
|
|
927
|
+
t[93] !== D ? (St = {
|
|
928
|
+
axis: D
|
|
929
|
+
}, t[93] = D, t[94] = St) : St = t[94], S = /* @__PURE__ */ i.jsx(Ne, { x1: h(T < 0 ? 0 : T), x2: h(T < 0 ? 0 : T), y1: -2.5, y2: bt + $.bottom, classNames: R, styles: St }), j = Gt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Gt.map((a, $t) => /* @__PURE__ */ i.jsx(qe, { text: a.text, color: a.color, x: h(a.value), y1: 0 - $.top, y2: bt + $.bottom, textSide: h(a.value) > Ht * 0.75 || ft ? "left" : "right", classNames: a.classNames, styles: a.styles, animate: d, isInView: I }, $t)) }) : null, t[14] = d, t[15] = l, t[16] = X, t[17] = jt, t[18] = Lt, t[19] = f?.graphObjectValues, t[20] = f?.xAxis?.gridLines, t[21] = f?.xAxis?.labels, t[22] = f?.xAxis?.title, t[23] = f?.yAxis?.axis, t[24] = f?.yAxis?.labels, t[25] = st, t[26] = tt, t[27] = s, t[28] = dt, t[29] = r, t[30] = V, t[31] = bt, t[32] = Ht, t[33] = y, t[34] = Q, t[35] = I, t[36] = $.bottom, t[37] = $.left, t[38] = $.top, t[39] = B, t[40] = E, t[41] = _, t[42] = T, t[43] = L, t[44] = Ft, t[45] = u, t[46] = rt, t[47] = kt, t[48] = ct, t[49] = Kt, t[50] = Gt, t[51] = lt, t[52] = ft, t[53] = w, t[54] = at, t[55] = Tt, t[56] = Ot, t[57] = c?.graphObjectValues, t[58] = c?.xAxis?.gridLines, t[59] = c?.xAxis?.labels, t[60] = c?.xAxis?.title, t[61] = c?.yAxis?.axis, t[62] = c?.yAxis?.labels, t[63] = Ut, t[64] = Et, t[65] = Pt, t[66] = P, t[67] = n, t[68] = K, t[69] = Vt, t[70] = et, t[71] = S, t[72] = j, t[73] = zt, t[74] = yt, t[75] = ot, t[76] = ut, t[77] = mt, t[78] = U, t[79] = vt, t[80] = wt, t[81] = J, t[82] = At;
|
|
899
930
|
} else
|
|
900
|
-
Vt = t[
|
|
901
|
-
let
|
|
902
|
-
t[
|
|
931
|
+
Vt = t[69], et = t[70], S = t[71], j = t[72], zt = t[73], yt = t[74], ot = t[75], ut = t[76], mt = t[77], U = t[78], vt = t[79], wt = t[80], J = t[81], At = t[82];
|
|
932
|
+
let g;
|
|
933
|
+
t[95] !== Vt || t[96] !== S || t[97] !== j || t[98] !== At ? (g = /* @__PURE__ */ i.jsxs(Vt, { children: [
|
|
903
934
|
At,
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
] }), t[
|
|
935
|
+
S,
|
|
936
|
+
j
|
|
937
|
+
] }), t[95] = Vt, t[96] = S, t[97] = j, t[98] = At, t[99] = g) : g = t[99];
|
|
907
938
|
let b;
|
|
908
|
-
t[
|
|
909
|
-
let
|
|
910
|
-
t[
|
|
911
|
-
|
|
939
|
+
t[100] !== tt ? (b = tt.filter(Ui).map(qi), t[100] = tt, t[101] = b) : b = t[101];
|
|
940
|
+
let v;
|
|
941
|
+
t[102] !== zt || t[103] !== yt || t[104] !== ot || t[105] !== ut || t[106] !== g || t[107] !== b ? (v = /* @__PURE__ */ i.jsxs("g", { transform: zt, children: [
|
|
942
|
+
yt,
|
|
912
943
|
ot,
|
|
913
|
-
|
|
914
|
-
|
|
944
|
+
ut,
|
|
945
|
+
g,
|
|
915
946
|
b
|
|
916
|
-
] }), t[
|
|
917
|
-
let
|
|
918
|
-
t[
|
|
919
|
-
let
|
|
920
|
-
t[
|
|
921
|
-
let
|
|
922
|
-
t[
|
|
923
|
-
let
|
|
924
|
-
return t[
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
] }), t[
|
|
947
|
+
] }), t[102] = zt, t[103] = yt, t[104] = ot, t[105] = ut, t[106] = g, t[107] = b, t[108] = v) : v = t[108];
|
|
948
|
+
let p;
|
|
949
|
+
t[109] !== et || t[110] !== mt || t[111] !== U || t[112] !== vt || t[113] !== wt || t[114] !== J || t[115] !== v ? (p = /* @__PURE__ */ i.jsx(et, { ref: mt, width: U, height: vt, viewBox: wt, direction: J, children: v }), t[109] = et, t[110] = mt, t[111] = U, t[112] = vt, t[113] = wt, t[114] = J, t[115] = v, t[116] = p) : p = t[116];
|
|
950
|
+
let xt;
|
|
951
|
+
t[117] !== f?.tooltip || t[118] !== Ct || t[119] !== nt || t[120] !== O || t[121] !== c?.tooltip || t[122] !== Mt ? (xt = O && Mt && Ct && nt ? /* @__PURE__ */ i.jsx(Ie, { data: O, body: Mt, xPos: Ct, yPos: nt, backgroundStyle: c?.tooltip, className: f?.tooltip }) : null, t[117] = f?.tooltip, t[118] = Ct, t[119] = nt, t[120] = O, t[121] = c?.tooltip, t[122] = Mt, t[123] = xt) : xt = t[123];
|
|
952
|
+
let Xt;
|
|
953
|
+
t[124] !== f?.modal || t[125] !== r || t[126] !== L ? (Xt = r && L !== void 0 ? /* @__PURE__ */ i.jsx(Te, { body: r, data: L, setData: N, className: f?.modal }) : null, t[124] = f?.modal, t[125] = r, t[126] = L, t[127] = Xt) : Xt = t[127];
|
|
954
|
+
let A;
|
|
955
|
+
return t[128] !== p || t[129] !== xt || t[130] !== Xt ? (A = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
956
|
+
p,
|
|
957
|
+
xt,
|
|
958
|
+
Xt
|
|
959
|
+
] }), t[128] = p, t[129] = xt, t[130] = Xt, t[131] = A) : A = t[131], A;
|
|
929
960
|
}
|
|
930
|
-
function
|
|
961
|
+
function qi(e) {
|
|
931
962
|
return e.layer;
|
|
932
963
|
}
|
|
933
|
-
function
|
|
964
|
+
function Ui(e) {
|
|
934
965
|
return e.position === "after";
|
|
935
966
|
}
|
|
936
|
-
function
|
|
967
|
+
function Ji(e) {
|
|
937
968
|
return e.color;
|
|
938
969
|
}
|
|
939
|
-
function
|
|
970
|
+
function Ki(e) {
|
|
940
971
|
return e.color;
|
|
941
972
|
}
|
|
942
|
-
function
|
|
973
|
+
function Qi(e) {
|
|
943
974
|
return e.color;
|
|
944
975
|
}
|
|
945
|
-
function
|
|
976
|
+
function Zi(e) {
|
|
946
977
|
return e.color;
|
|
947
978
|
}
|
|
948
|
-
function
|
|
979
|
+
function _i(e) {
|
|
949
980
|
return e.layer;
|
|
950
981
|
}
|
|
951
|
-
function
|
|
982
|
+
function tl(e) {
|
|
952
983
|
return e.position === "before";
|
|
953
984
|
}
|
|
954
|
-
function
|
|
985
|
+
function el(e) {
|
|
955
986
|
return e !== 0;
|
|
956
987
|
}
|
|
957
|
-
function
|
|
988
|
+
function il(e) {
|
|
958
989
|
return e !== 0;
|
|
959
990
|
}
|
|
960
|
-
function
|
|
991
|
+
function ll(e) {
|
|
961
992
|
return `${e.id}`;
|
|
962
993
|
}
|
|
963
|
-
function
|
|
994
|
+
function sl(e) {
|
|
964
995
|
return {
|
|
965
996
|
id: e,
|
|
966
997
|
label: e,
|
|
@@ -968,248 +999,268 @@ function ts(e) {
|
|
|
968
999
|
size: null
|
|
969
1000
|
};
|
|
970
1001
|
}
|
|
971
|
-
function
|
|
972
|
-
const t =
|
|
973
|
-
leftMargin:
|
|
974
|
-
rightMargin:
|
|
975
|
-
topMargin:
|
|
976
|
-
bottomMargin:
|
|
977
|
-
data:
|
|
1002
|
+
function al(e) {
|
|
1003
|
+
const t = we.c(140), {
|
|
1004
|
+
leftMargin: s,
|
|
1005
|
+
rightMargin: X,
|
|
1006
|
+
topMargin: Ut,
|
|
1007
|
+
bottomMargin: Kt,
|
|
1008
|
+
data: Lt,
|
|
978
1009
|
width: Ot,
|
|
979
1010
|
height: Tt,
|
|
980
|
-
barColor:
|
|
981
|
-
suffix:
|
|
982
|
-
prefix:
|
|
983
|
-
barPadding:
|
|
984
|
-
showLabels:
|
|
985
|
-
showValues:
|
|
986
|
-
showTicks:
|
|
987
|
-
colorDomain:
|
|
1011
|
+
barColor: P,
|
|
1012
|
+
suffix: K,
|
|
1013
|
+
prefix: y,
|
|
1014
|
+
barPadding: st,
|
|
1015
|
+
showLabels: ht,
|
|
1016
|
+
showValues: it,
|
|
1017
|
+
showTicks: Jt,
|
|
1018
|
+
colorDomain: Y,
|
|
988
1019
|
truncateBy: at,
|
|
989
1020
|
tooltip: Mt,
|
|
990
1021
|
onSeriesMouseOver: kt,
|
|
991
|
-
refValues:
|
|
992
|
-
selectedColor:
|
|
993
|
-
maxValue:
|
|
994
|
-
minValue:
|
|
995
|
-
highlightedDataPoints:
|
|
996
|
-
onSeriesMouseClick:
|
|
997
|
-
labelOrder:
|
|
998
|
-
maxBarThickness:
|
|
999
|
-
minBarThickness:
|
|
1000
|
-
resetSelectionOnDoubleClick:
|
|
1001
|
-
detailsOnClick:
|
|
1002
|
-
barAxisTitle:
|
|
1003
|
-
valueColor:
|
|
1004
|
-
noOfTicks:
|
|
1005
|
-
styles:
|
|
1006
|
-
classNames:
|
|
1007
|
-
dimmedOpacity:
|
|
1008
|
-
animate:
|
|
1009
|
-
precision:
|
|
1010
|
-
customLayers:
|
|
1011
|
-
naLabel:
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1022
|
+
refValues: Gt,
|
|
1023
|
+
selectedColor: w,
|
|
1024
|
+
maxValue: Q,
|
|
1025
|
+
minValue: E,
|
|
1026
|
+
highlightedDataPoints: T,
|
|
1027
|
+
onSeriesMouseClick: rt,
|
|
1028
|
+
labelOrder: Z,
|
|
1029
|
+
maxBarThickness: ft,
|
|
1030
|
+
minBarThickness: B,
|
|
1031
|
+
resetSelectionOnDoubleClick: _,
|
|
1032
|
+
detailsOnClick: lt,
|
|
1033
|
+
barAxisTitle: r,
|
|
1034
|
+
valueColor: l,
|
|
1035
|
+
noOfTicks: n,
|
|
1036
|
+
styles: u,
|
|
1037
|
+
classNames: c,
|
|
1038
|
+
dimmedOpacity: f,
|
|
1039
|
+
animate: d,
|
|
1040
|
+
precision: V,
|
|
1041
|
+
customLayers: ct,
|
|
1042
|
+
naLabel: tt,
|
|
1043
|
+
trackColor: Ft
|
|
1044
|
+
} = e, Pt = s === void 0 ? 20 : s, Et = X === void 0 ? 20 : X, q = Ut === void 0 ? 20 : Ut, pt = Kt === void 0 ? 25 : Kt, Rt = ve(null);
|
|
1045
|
+
let m;
|
|
1046
|
+
t[0] !== d.amount || t[1] !== d.once ? (m = {
|
|
1047
|
+
once: d.once,
|
|
1048
|
+
amount: d.amount
|
|
1049
|
+
}, t[0] = d.amount, t[1] = d.once, t[2] = m) : m = t[2];
|
|
1050
|
+
const o = Se(Rt, m), I = r ? Pt + 30 : Pt;
|
|
1051
|
+
let O;
|
|
1052
|
+
t[3] !== pt || t[4] !== Et || t[5] !== I || t[6] !== q ? (O = {
|
|
1053
|
+
top: q,
|
|
1054
|
+
bottom: pt,
|
|
1055
|
+
left: I,
|
|
1056
|
+
right: Et
|
|
1057
|
+
}, t[3] = pt, t[4] = Et, t[5] = I, t[6] = q, t[7] = O) : O = t[7];
|
|
1058
|
+
const z = O, [L, N] = te(void 0), [Ct, It] = te(void 0), [nt, Nt] = te(void 0), [H, G] = te(void 0), $ = Ot - z.left - z.right, Ht = Tt - z.top - z.bottom;
|
|
1059
|
+
let bt;
|
|
1060
|
+
if (t[8] !== Lt || t[9] !== Z) {
|
|
1061
|
+
const A = /* @__PURE__ */ new Set(), h = Lt.map((Yt, Zt) => {
|
|
1062
|
+
const F = Z ? `${Yt.label}` : `${Zt}`;
|
|
1063
|
+
return A.add(F), {
|
|
1064
|
+
...Yt,
|
|
1065
|
+
id: F
|
|
1034
1066
|
};
|
|
1035
|
-
}),
|
|
1036
|
-
|
|
1067
|
+
}), x = Z ? Z.filter((Yt) => !A.has(Yt)) : [];
|
|
1068
|
+
bt = [...h, ...x.map(gl)], t[8] = Lt, t[9] = Z, t[10] = bt;
|
|
1037
1069
|
} else
|
|
1038
|
-
|
|
1039
|
-
const
|
|
1040
|
-
let
|
|
1041
|
-
t[11] !==
|
|
1042
|
-
const
|
|
1043
|
-
let
|
|
1044
|
-
if (t[14] !==
|
|
1045
|
-
const
|
|
1046
|
-
Vt = ee.svg,
|
|
1047
|
-
const
|
|
1048
|
-
let
|
|
1049
|
-
t[
|
|
1050
|
-
const
|
|
1051
|
-
let
|
|
1052
|
-
t[
|
|
1053
|
-
axis:
|
|
1054
|
-
label:
|
|
1055
|
-
}, t[
|
|
1056
|
-
const
|
|
1057
|
-
let
|
|
1058
|
-
t[
|
|
1059
|
-
axis:
|
|
1060
|
-
label:
|
|
1061
|
-
}, t[
|
|
1062
|
-
x: 0 -
|
|
1070
|
+
bt = t[10];
|
|
1071
|
+
const gt = bt;
|
|
1072
|
+
let dt;
|
|
1073
|
+
t[11] !== gt || t[12] !== Z ? (dt = Z ?? gt.map(pl), t[11] = gt, t[12] = Z, t[13] = dt) : dt = t[13];
|
|
1074
|
+
const Wt = dt;
|
|
1075
|
+
let jt, Vt, et, S, j, zt, yt, ot, ut, mt, U, vt, wt, J;
|
|
1076
|
+
if (t[14] !== d || t[15] !== r || t[16] !== P || t[17] !== Wt || t[18] !== st || t[19] !== c?.graphObjectValues || t[20] !== c?.xAxis?.axis || t[21] !== c?.xAxis?.labels || t[22] !== c?.yAxis?.gridLines || t[23] !== c?.yAxis?.labels || t[24] !== c?.yAxis?.title || t[25] !== Y || t[26] !== ct || t[27] !== Lt || t[28] !== gt || t[29] !== lt || t[30] !== f || t[31] !== Ht || t[32] !== $ || t[33] !== Tt || t[34] !== T || t[35] !== o || t[36] !== Pt || t[37] !== z.bottom || t[38] !== z.left || t[39] !== z.right || t[40] !== z.top || t[41] !== ft || t[42] !== Q || t[43] !== B || t[44] !== E || t[45] !== Ct || t[46] !== tt || t[47] !== n || t[48] !== rt || t[49] !== kt || t[50] !== V || t[51] !== y || t[52] !== Gt || t[53] !== _ || t[54] !== w || t[55] !== ht || t[56] !== Jt || t[57] !== it || t[58] !== u?.graphObjectValues || t[59] !== u?.xAxis?.axis || t[60] !== u?.xAxis?.labels || t[61] !== u?.yAxis?.gridLines || t[62] !== u?.yAxis?.labels || t[63] !== u?.yAxis?.title || t[64] !== K || t[65] !== Ft || t[66] !== at || t[67] !== l || t[68] !== Ot) {
|
|
1077
|
+
const A = Be().domain([E, Q]).range([Ht, 0]).nice(), h = Oe().domain(Wt).range([0, B ? Math.max($, B * Wt.length) : ft ? Math.min($, ft * Wt.length) : $]).paddingInner(st), x = A.ticks(n);
|
|
1078
|
+
Vt = ee.svg, ut = Rt, mt = `${Ot}px`, U = `${Tt}px`, vt = `0 0 ${Ot} ${Tt}`, wt = "ltr", S = `translate(${z.left},${z.top})`;
|
|
1079
|
+
const Yt = A(E < 0 ? 0 : E), Zt = A(E < 0 ? 0 : E), F = E < 0 ? 0 : E;
|
|
1080
|
+
let M;
|
|
1081
|
+
t[83] !== tt || t[84] !== V || t[85] !== y || t[86] !== K || t[87] !== F ? (M = be(F, tt, V, y, K), t[83] = tt, t[84] = V, t[85] = y, t[86] = K, t[87] = F, t[88] = M) : M = t[88];
|
|
1082
|
+
const _t = c?.xAxis?.axis, W = c?.yAxis?.labels;
|
|
1083
|
+
let R;
|
|
1084
|
+
t[89] !== _t || t[90] !== W ? (R = {
|
|
1085
|
+
axis: _t,
|
|
1086
|
+
label: W
|
|
1087
|
+
}, t[89] = _t, t[90] = W, t[91] = R) : R = t[91];
|
|
1088
|
+
const D = u?.xAxis?.axis, St = u?.yAxis?.labels;
|
|
1089
|
+
let a;
|
|
1090
|
+
t[92] !== D || t[93] !== St ? (a = {
|
|
1091
|
+
axis: D,
|
|
1092
|
+
label: St
|
|
1093
|
+
}, t[92] = D, t[93] = St, t[94] = a) : a = t[94], j = /* @__PURE__ */ i.jsx(Ne, { y1: Yt, y2: Zt, x1: 0 - Pt, x2: $ + z.right, label: M, labelPos: {
|
|
1094
|
+
x: 0 - Pt,
|
|
1063
1095
|
dx: 0,
|
|
1064
|
-
dy:
|
|
1065
|
-
y:
|
|
1066
|
-
}, classNames:
|
|
1067
|
-
gridLines:
|
|
1068
|
-
labels:
|
|
1096
|
+
dy: Q < 0 ? "1em" : -5,
|
|
1097
|
+
y: A(E < 0 ? 0 : E)
|
|
1098
|
+
}, classNames: R, styles: a }), zt = Jt ? /* @__PURE__ */ i.jsx(Je, { values: x.filter(fl), y: x.filter(hl).map((C) => A(C)), x1: 0 - Pt, x2: $ + z.right, styles: {
|
|
1099
|
+
gridLines: u?.yAxis?.gridLines,
|
|
1100
|
+
labels: u?.yAxis?.labels
|
|
1069
1101
|
}, classNames: {
|
|
1070
|
-
gridLines:
|
|
1071
|
-
labels:
|
|
1072
|
-
}, suffix:
|
|
1073
|
-
const
|
|
1074
|
-
t[
|
|
1102
|
+
gridLines: c?.yAxis?.gridLines,
|
|
1103
|
+
labels: c?.yAxis?.labels
|
|
1104
|
+
}, suffix: K, prefix: y, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: V }) : null;
|
|
1105
|
+
const $t = 0 - Pt - 15, k = Ht / 2, Bt = u?.yAxis?.title, qt = c?.yAxis?.title;
|
|
1106
|
+
t[95] !== r || t[96] !== $t || t[97] !== k || t[98] !== Bt || t[99] !== qt ? (yt = /* @__PURE__ */ i.jsx(je, { x: $t, y: k, style: Bt, className: qt, text: r, rotate90: !0 }), t[95] = r, t[96] = $t, t[97] = k, t[98] = Bt, t[99] = qt, t[100] = yt) : yt = t[100], t[101] !== ct ? (ot = ct.filter(xl).map(ml), t[101] = ct, t[102] = ot) : ot = t[102], jt = Fe, J = gt.map((C, fe) => le(h(C.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-g-with-hover", initial: "initial", animate: o ? "whileInView" : "initial", variants: {
|
|
1075
1107
|
initial: {
|
|
1076
|
-
opacity:
|
|
1108
|
+
opacity: w ? C.color && P[Y.indexOf(C.color)] === w ? 1 : f : T.length !== 0 ? T.indexOf(C.label) !== -1 ? 0.85 : f : 0.85
|
|
1077
1109
|
},
|
|
1078
1110
|
whileInView: {
|
|
1079
|
-
opacity:
|
|
1111
|
+
opacity: w ? C.color && P[Y.indexOf(C.color)] === w ? 1 : f : T.length !== 0 ? T.indexOf(C.label) !== -1 ? 0.85 : f : 0.85,
|
|
1080
1112
|
transition: {
|
|
1081
|
-
duration:
|
|
1113
|
+
duration: d.duration
|
|
1082
1114
|
}
|
|
1083
1115
|
}
|
|
1084
1116
|
}, exit: {
|
|
1085
1117
|
opacity: 0,
|
|
1086
1118
|
transition: {
|
|
1087
|
-
duration:
|
|
1119
|
+
duration: d.duration
|
|
1088
1120
|
}
|
|
1089
|
-
}, onMouseEnter: (
|
|
1090
|
-
|
|
1121
|
+
}, onMouseEnter: (de) => {
|
|
1122
|
+
N(C), G(de.clientY), Nt(de.clientX), kt?.(C);
|
|
1091
1123
|
}, onClick: () => {
|
|
1092
|
-
(
|
|
1093
|
-
}, onMouseMove: (
|
|
1094
|
-
|
|
1124
|
+
(rt || lt) && (Le(Ct, C) && _ ? (It(void 0), rt?.(void 0)) : (It(C), rt?.(C)));
|
|
1125
|
+
}, onMouseMove: (de) => {
|
|
1126
|
+
N(C), G(de.clientY), Nt(de.clientX);
|
|
1095
1127
|
}, onMouseLeave: () => {
|
|
1096
|
-
|
|
1128
|
+
N(void 0), Nt(void 0), G(void 0), kt?.(void 0);
|
|
1097
1129
|
}, children: [
|
|
1098
|
-
|
|
1130
|
+
Ft && /* @__PURE__ */ i.jsx(ee.rect, { width: h.bandwidth(), variants: {
|
|
1131
|
+
initial: {
|
|
1132
|
+
height: Ht,
|
|
1133
|
+
y: 0,
|
|
1134
|
+
x: h(`${C.id}`),
|
|
1135
|
+
fill: Ft
|
|
1136
|
+
},
|
|
1137
|
+
whileInView: {
|
|
1138
|
+
height: Ht,
|
|
1139
|
+
y: 0,
|
|
1140
|
+
x: h(`${C.id}`),
|
|
1141
|
+
fill: Ft
|
|
1142
|
+
}
|
|
1143
|
+
}, initial: "initial", animate: o ? "whileInView" : "initial", exit: {
|
|
1144
|
+
opacity: 0,
|
|
1145
|
+
transition: {
|
|
1146
|
+
duration: d.duration
|
|
1147
|
+
}
|
|
1148
|
+
} }),
|
|
1149
|
+
C.size ? /* @__PURE__ */ i.jsx(ee.rect, { width: h.bandwidth(), initial: "initial", animate: o ? "whileInView" : "initial", variants: {
|
|
1099
1150
|
initial: {
|
|
1100
1151
|
height: 0,
|
|
1101
|
-
x:
|
|
1102
|
-
y:
|
|
1103
|
-
fill:
|
|
1152
|
+
x: h(`${C.id}`),
|
|
1153
|
+
y: A(0),
|
|
1154
|
+
fill: Lt.filter(ul).length === 0 ? P[0] : C.color ? P[Y.indexOf(C.color)] : ge.gray
|
|
1104
1155
|
},
|
|
1105
1156
|
whileInView: {
|
|
1106
|
-
height:
|
|
1107
|
-
y:
|
|
1108
|
-
x:
|
|
1109
|
-
fill:
|
|
1157
|
+
height: C.size ? Math.abs(A(C.size) - A(0)) : 0,
|
|
1158
|
+
y: C.size && C.size > 0 ? A(C.size) : A(0),
|
|
1159
|
+
x: h(`${C.id}`),
|
|
1160
|
+
fill: Lt.filter(dl).length === 0 ? P[0] : C.color ? P[Y.indexOf(C.color)] : ge.gray,
|
|
1110
1161
|
transition: {
|
|
1111
|
-
duration:
|
|
1162
|
+
duration: d.duration
|
|
1112
1163
|
}
|
|
1113
1164
|
}
|
|
1114
1165
|
}, exit: {
|
|
1115
1166
|
height: 0,
|
|
1116
|
-
y:
|
|
1167
|
+
y: A(0),
|
|
1117
1168
|
transition: {
|
|
1118
|
-
duration:
|
|
1169
|
+
duration: d.duration
|
|
1119
1170
|
}
|
|
1120
1171
|
} }) : null,
|
|
1121
|
-
|
|
1122
|
-
|
|
1172
|
+
ht ? /* @__PURE__ */ i.jsx(Ke, { value: `${C.label}`.length < at ? `${C.label}` : `${`${C.label}`.substring(0, at)}...`, y: (C.size || 0) < 0 ? 0 : A(0) + 5, x: h(`${C.id}`), width: h.bandwidth(), height: (C.size || 0) < 0 ? A(0) - 5 : z.bottom, style: u?.xAxis?.labels, className: c?.xAxis?.labels, alignment: (C.size || 0) < 0 ? "bottom" : "top", animate: d, isInView: o }) : null,
|
|
1173
|
+
it ? /* @__PURE__ */ i.jsx(ee.text, { style: {
|
|
1123
1174
|
textAnchor: "middle",
|
|
1124
|
-
...
|
|
1125
|
-
}, className:
|
|
1175
|
+
...u?.graphObjectValues || {}
|
|
1176
|
+
}, className: $e("graph-value text-sm", !l && P.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", c?.graphObjectValues), dy: C.size ? C.size >= 0 ? "-5px" : "1em" : "-5px", variants: {
|
|
1126
1177
|
initial: {
|
|
1127
|
-
x:
|
|
1128
|
-
y:
|
|
1178
|
+
x: h(`${C.id}`) + h.bandwidth() / 2,
|
|
1179
|
+
y: A(0),
|
|
1129
1180
|
opacity: 0,
|
|
1130
|
-
fill:
|
|
1181
|
+
fill: l || (Lt.filter(cl).length === 0 ? P[0] : C.color ? P[Y.indexOf(C.color)] : ge.gray)
|
|
1131
1182
|
},
|
|
1132
1183
|
whileInView: {
|
|
1133
|
-
x:
|
|
1134
|
-
y:
|
|
1135
|
-
fill:
|
|
1184
|
+
x: h(`${C.id}`) + h.bandwidth() / 2,
|
|
1185
|
+
y: A(C.size || 0),
|
|
1186
|
+
fill: l || (Lt.filter(rl).length === 0 ? P[0] : C.color ? P[Y.indexOf(C.color)] : ge.gray),
|
|
1136
1187
|
opacity: 1,
|
|
1137
1188
|
transition: {
|
|
1138
|
-
duration:
|
|
1189
|
+
duration: d.duration
|
|
1139
1190
|
}
|
|
1140
1191
|
}
|
|
1141
|
-
}, initial: "initial", animate:
|
|
1192
|
+
}, initial: "initial", animate: o ? "whileInView" : "initial", exit: {
|
|
1142
1193
|
opacity: 0,
|
|
1143
1194
|
transition: {
|
|
1144
|
-
duration:
|
|
1195
|
+
duration: d.duration
|
|
1145
1196
|
}
|
|
1146
|
-
}, children:
|
|
1147
|
-
] },
|
|
1197
|
+
}, children: be(C.size, tt, V, y, K) }) : null
|
|
1198
|
+
] }, C.label)), et = Gt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Gt.map((C, fe) => /* @__PURE__ */ i.jsx(Ue, { text: C.text, color: C.color, y: A(C.value), x1: 0 - Pt, x2: $ + z.right, classNames: C.classNames, styles: C.styles, animate: d, isInView: o }, fe)) }) : null, t[14] = d, t[15] = r, t[16] = P, t[17] = Wt, t[18] = st, t[19] = c?.graphObjectValues, t[20] = c?.xAxis?.axis, t[21] = c?.xAxis?.labels, t[22] = c?.yAxis?.gridLines, t[23] = c?.yAxis?.labels, t[24] = c?.yAxis?.title, t[25] = Y, t[26] = ct, t[27] = Lt, t[28] = gt, t[29] = lt, t[30] = f, t[31] = Ht, t[32] = $, t[33] = Tt, t[34] = T, t[35] = o, t[36] = Pt, t[37] = z.bottom, t[38] = z.left, t[39] = z.right, t[40] = z.top, t[41] = ft, t[42] = Q, t[43] = B, t[44] = E, t[45] = Ct, t[46] = tt, t[47] = n, t[48] = rt, t[49] = kt, t[50] = V, t[51] = y, t[52] = Gt, t[53] = _, t[54] = w, t[55] = ht, t[56] = Jt, t[57] = it, t[58] = u?.graphObjectValues, t[59] = u?.xAxis?.axis, t[60] = u?.xAxis?.labels, t[61] = u?.yAxis?.gridLines, t[62] = u?.yAxis?.labels, t[63] = u?.yAxis?.title, t[64] = K, t[65] = Ft, t[66] = at, t[67] = l, t[68] = Ot, t[69] = jt, t[70] = Vt, t[71] = et, t[72] = S, t[73] = j, t[74] = zt, t[75] = yt, t[76] = ot, t[77] = ut, t[78] = mt, t[79] = U, t[80] = vt, t[81] = wt, t[82] = J;
|
|
1148
1199
|
} else
|
|
1149
|
-
|
|
1200
|
+
jt = t[69], Vt = t[70], et = t[71], S = t[72], j = t[73], zt = t[74], yt = t[75], ot = t[76], ut = t[77], mt = t[78], U = t[79], vt = t[80], wt = t[81], J = t[82];
|
|
1150
1201
|
let At;
|
|
1151
|
-
t[
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
] }), t[
|
|
1155
|
-
let
|
|
1156
|
-
t[
|
|
1202
|
+
t[103] !== jt || t[104] !== et || t[105] !== J ? (At = /* @__PURE__ */ i.jsxs(jt, { children: [
|
|
1203
|
+
J,
|
|
1204
|
+
et
|
|
1205
|
+
] }), t[103] = jt, t[104] = et, t[105] = J, t[106] = At) : At = t[106];
|
|
1206
|
+
let g;
|
|
1207
|
+
t[107] !== ct ? (g = ct.filter(ol).map(nl), t[107] = ct, t[108] = g) : g = t[108];
|
|
1157
1208
|
let b;
|
|
1158
|
-
t[
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1209
|
+
t[109] !== S || t[110] !== j || t[111] !== zt || t[112] !== yt || t[113] !== ot || t[114] !== At || t[115] !== g ? (b = /* @__PURE__ */ i.jsxs("g", { transform: S, children: [
|
|
1210
|
+
j,
|
|
1211
|
+
zt,
|
|
1212
|
+
yt,
|
|
1162
1213
|
ot,
|
|
1163
1214
|
At,
|
|
1164
|
-
|
|
1165
|
-
] }), t[
|
|
1166
|
-
let $;
|
|
1167
|
-
t[116] !== Vt || t[117] !== dt || t[118] !== vt || t[119] !== _ || t[120] !== ut || t[121] !== wt || t[122] !== b ? ($ = /* @__PURE__ */ i.jsx(Vt, { ref: dt, width: vt, height: _, viewBox: ut, direction: wt, children: b }), t[116] = Vt, t[117] = dt, t[118] = vt, t[119] = _, t[120] = ut, t[121] = wt, t[122] = b, t[123] = $) : $ = t[123];
|
|
1168
|
-
let O;
|
|
1169
|
-
t[124] !== d?.tooltip || t[125] !== yt || t[126] !== Ct || t[127] !== it || t[128] !== m?.tooltip || t[129] !== Mt ? (O = it && Mt && yt && Ct ? /* @__PURE__ */ i.jsx(Ve, { data: it, body: Mt, xPos: yt, yPos: Ct, backgroundStyle: m?.tooltip, className: d?.tooltip }) : null, t[124] = d?.tooltip, t[125] = yt, t[126] = Ct, t[127] = it, t[128] = m?.tooltip, t[129] = Mt, t[130] = O) : O = t[130];
|
|
1215
|
+
g
|
|
1216
|
+
] }), t[109] = S, t[110] = j, t[111] = zt, t[112] = yt, t[113] = ot, t[114] = At, t[115] = g, t[116] = b) : b = t[116];
|
|
1170
1217
|
let v;
|
|
1171
|
-
t[
|
|
1172
|
-
let
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1218
|
+
t[117] !== Vt || t[118] !== ut || t[119] !== mt || t[120] !== U || t[121] !== vt || t[122] !== wt || t[123] !== b ? (v = /* @__PURE__ */ i.jsx(Vt, { ref: ut, width: mt, height: U, viewBox: vt, direction: wt, children: b }), t[117] = Vt, t[118] = ut, t[119] = mt, t[120] = U, t[121] = vt, t[122] = wt, t[123] = b, t[124] = v) : v = t[124];
|
|
1219
|
+
let p;
|
|
1220
|
+
t[125] !== c?.tooltip || t[126] !== nt || t[127] !== H || t[128] !== L || t[129] !== u?.tooltip || t[130] !== Mt ? (p = L && Mt && nt && H ? /* @__PURE__ */ i.jsx(Ie, { data: L, body: Mt, xPos: nt, yPos: H, backgroundStyle: u?.tooltip, className: c?.tooltip }) : null, t[125] = c?.tooltip, t[126] = nt, t[127] = H, t[128] = L, t[129] = u?.tooltip, t[130] = Mt, t[131] = p) : p = t[131];
|
|
1221
|
+
let xt;
|
|
1222
|
+
t[132] !== c?.modal || t[133] !== lt || t[134] !== Ct ? (xt = lt && Ct !== void 0 ? /* @__PURE__ */ i.jsx(Te, { body: lt, data: Ct, setData: It, className: c?.modal }) : null, t[132] = c?.modal, t[133] = lt, t[134] = Ct, t[135] = xt) : xt = t[135];
|
|
1223
|
+
let Xt;
|
|
1224
|
+
return t[136] !== v || t[137] !== p || t[138] !== xt ? (Xt = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
1225
|
+
v,
|
|
1226
|
+
p,
|
|
1227
|
+
xt
|
|
1228
|
+
] }), t[136] = v, t[137] = p, t[138] = xt, t[139] = Xt) : Xt = t[139], Xt;
|
|
1178
1229
|
}
|
|
1179
|
-
function
|
|
1230
|
+
function nl(e) {
|
|
1180
1231
|
return e.layer;
|
|
1181
1232
|
}
|
|
1182
|
-
function
|
|
1233
|
+
function ol(e) {
|
|
1183
1234
|
return e.position === "after";
|
|
1184
1235
|
}
|
|
1185
|
-
function
|
|
1236
|
+
function rl(e) {
|
|
1186
1237
|
return e.color;
|
|
1187
1238
|
}
|
|
1188
|
-
function
|
|
1239
|
+
function cl(e) {
|
|
1189
1240
|
return e.color;
|
|
1190
1241
|
}
|
|
1191
|
-
function
|
|
1242
|
+
function dl(e) {
|
|
1192
1243
|
return e.color;
|
|
1193
1244
|
}
|
|
1194
|
-
function
|
|
1245
|
+
function ul(e) {
|
|
1195
1246
|
return e.color;
|
|
1196
1247
|
}
|
|
1197
|
-
function
|
|
1248
|
+
function ml(e) {
|
|
1198
1249
|
return e.layer;
|
|
1199
1250
|
}
|
|
1200
|
-
function
|
|
1251
|
+
function xl(e) {
|
|
1201
1252
|
return e.position === "before";
|
|
1202
1253
|
}
|
|
1203
|
-
function
|
|
1254
|
+
function hl(e) {
|
|
1204
1255
|
return e !== 0;
|
|
1205
1256
|
}
|
|
1206
|
-
function
|
|
1257
|
+
function fl(e) {
|
|
1207
1258
|
return e !== 0;
|
|
1208
1259
|
}
|
|
1209
|
-
function
|
|
1260
|
+
function pl(e) {
|
|
1210
1261
|
return `${e.id}`;
|
|
1211
1262
|
}
|
|
1212
|
-
function
|
|
1263
|
+
function gl(e) {
|
|
1213
1264
|
return {
|
|
1214
1265
|
id: e,
|
|
1215
1266
|
label: e,
|
|
@@ -1217,1150 +1268,1170 @@ function xs(e) {
|
|
|
1217
1268
|
size: null
|
|
1218
1269
|
};
|
|
1219
1270
|
}
|
|
1220
|
-
function
|
|
1221
|
-
const t =
|
|
1222
|
-
data:
|
|
1223
|
-
graphTitle:
|
|
1224
|
-
colors:
|
|
1225
|
-
suffix:
|
|
1226
|
-
sources:
|
|
1271
|
+
function yl(e) {
|
|
1272
|
+
const t = we.c(133), {
|
|
1273
|
+
data: s,
|
|
1274
|
+
graphTitle: X,
|
|
1275
|
+
colors: Ut,
|
|
1276
|
+
suffix: Kt,
|
|
1277
|
+
sources: Lt,
|
|
1227
1278
|
prefix: Ot,
|
|
1228
1279
|
graphDescription: Tt,
|
|
1229
|
-
barPadding:
|
|
1230
|
-
showValues:
|
|
1231
|
-
showTicks:
|
|
1232
|
-
truncateBy:
|
|
1233
|
-
height:
|
|
1234
|
-
width:
|
|
1235
|
-
footNote:
|
|
1236
|
-
colorDomain:
|
|
1280
|
+
barPadding: P,
|
|
1281
|
+
showValues: K,
|
|
1282
|
+
showTicks: y,
|
|
1283
|
+
truncateBy: st,
|
|
1284
|
+
height: ht,
|
|
1285
|
+
width: it,
|
|
1286
|
+
footNote: Jt,
|
|
1287
|
+
colorDomain: Y,
|
|
1237
1288
|
colorLegendTitle: at,
|
|
1238
1289
|
highlightedDataPoints: Mt,
|
|
1239
1290
|
padding: kt,
|
|
1240
|
-
backgroundColor:
|
|
1241
|
-
topMargin:
|
|
1242
|
-
bottomMargin:
|
|
1243
|
-
leftMargin:
|
|
1244
|
-
rightMargin:
|
|
1245
|
-
showLabels:
|
|
1246
|
-
relativeHeight:
|
|
1247
|
-
tooltip:
|
|
1248
|
-
onSeriesMouseOver:
|
|
1249
|
-
refValues:
|
|
1250
|
-
showColorScale:
|
|
1251
|
-
graphID:
|
|
1252
|
-
maxValue:
|
|
1253
|
-
minValue:
|
|
1254
|
-
onSeriesMouseClick:
|
|
1255
|
-
graphDownload:
|
|
1256
|
-
dataDownload:
|
|
1257
|
-
sortData:
|
|
1258
|
-
labelOrder:
|
|
1259
|
-
language:
|
|
1260
|
-
showNAColor:
|
|
1261
|
-
minHeight:
|
|
1262
|
-
theme:
|
|
1263
|
-
maxBarThickness:
|
|
1264
|
-
maxNumberOfBars:
|
|
1265
|
-
minBarThickness:
|
|
1266
|
-
ariaLabel:
|
|
1267
|
-
resetSelectionOnDoubleClick:
|
|
1268
|
-
detailsOnClick:
|
|
1269
|
-
barAxisTitle:
|
|
1270
|
-
noOfTicks:
|
|
1271
|
-
valueColor:
|
|
1272
|
-
styles:
|
|
1273
|
-
classNames:
|
|
1274
|
-
filterNA:
|
|
1275
|
-
animate:
|
|
1276
|
-
dimmedOpacity:
|
|
1277
|
-
precision:
|
|
1278
|
-
customLayers:
|
|
1279
|
-
timeline:
|
|
1280
|
-
naLabel:
|
|
1281
|
-
orientation:
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
+
backgroundColor: Gt,
|
|
1292
|
+
topMargin: w,
|
|
1293
|
+
bottomMargin: Q,
|
|
1294
|
+
leftMargin: E,
|
|
1295
|
+
rightMargin: T,
|
|
1296
|
+
showLabels: rt,
|
|
1297
|
+
relativeHeight: Z,
|
|
1298
|
+
tooltip: ft,
|
|
1299
|
+
onSeriesMouseOver: B,
|
|
1300
|
+
refValues: _,
|
|
1301
|
+
showColorScale: lt,
|
|
1302
|
+
graphID: r,
|
|
1303
|
+
maxValue: l,
|
|
1304
|
+
minValue: n,
|
|
1305
|
+
onSeriesMouseClick: u,
|
|
1306
|
+
graphDownload: c,
|
|
1307
|
+
dataDownload: f,
|
|
1308
|
+
sortData: d,
|
|
1309
|
+
labelOrder: V,
|
|
1310
|
+
language: ct,
|
|
1311
|
+
showNAColor: tt,
|
|
1312
|
+
minHeight: Ft,
|
|
1313
|
+
theme: Pt,
|
|
1314
|
+
maxBarThickness: Et,
|
|
1315
|
+
maxNumberOfBars: q,
|
|
1316
|
+
minBarThickness: pt,
|
|
1317
|
+
ariaLabel: Rt,
|
|
1318
|
+
resetSelectionOnDoubleClick: m,
|
|
1319
|
+
detailsOnClick: o,
|
|
1320
|
+
barAxisTitle: I,
|
|
1321
|
+
noOfTicks: O,
|
|
1322
|
+
valueColor: z,
|
|
1323
|
+
styles: L,
|
|
1324
|
+
classNames: N,
|
|
1325
|
+
filterNA: Ct,
|
|
1326
|
+
animate: It,
|
|
1327
|
+
dimmedOpacity: nt,
|
|
1328
|
+
precision: Nt,
|
|
1329
|
+
customLayers: H,
|
|
1330
|
+
timeline: G,
|
|
1331
|
+
naLabel: $,
|
|
1332
|
+
orientation: Ht,
|
|
1333
|
+
trackColor: bt
|
|
1334
|
+
} = e, gt = Kt === void 0 ? "" : Kt, dt = Ot === void 0 ? "" : Ot, Wt = P === void 0 ? 0.25 : P, jt = K === void 0 ? !0 : K, Vt = y === void 0 ? !0 : y, et = st === void 0 ? 999 : st;
|
|
1335
|
+
let S;
|
|
1336
|
+
t[0] !== Mt ? (S = Mt === void 0 ? [] : Mt, t[0] = Mt, t[1] = S) : S = t[1];
|
|
1337
|
+
const j = S, zt = Gt === void 0 ? !1 : Gt, yt = rt === void 0 ? !0 : rt, ot = lt === void 0 ? !0 : lt, ut = c === void 0 ? !1 : c, mt = f === void 0 ? !1 : f, U = ct === void 0 ? "en" : ct, vt = tt === void 0 ? !0 : tt, wt = Ft === void 0 ? 0 : Ft, J = Pt === void 0 ? "light" : Pt, At = m === void 0 ? !0 : m, g = O === void 0 ? 5 : O, b = Ct === void 0 ? !0 : Ct, v = It === void 0 ? !1 : It, p = nt === void 0 ? 0.3 : nt, xt = Nt === void 0 ? 2 : Nt;
|
|
1338
|
+
let Xt;
|
|
1339
|
+
t[2] !== H ? (Xt = H === void 0 ? [] : H, t[2] = H, t[3] = Xt) : Xt = t[3];
|
|
1340
|
+
const A = Xt;
|
|
1341
|
+
let h;
|
|
1342
|
+
t[4] !== G ? (h = G === void 0 ? {
|
|
1291
1343
|
enabled: !1,
|
|
1292
1344
|
autoplay: !1,
|
|
1293
1345
|
showOnlyActiveDate: !0
|
|
1294
|
-
} :
|
|
1295
|
-
const
|
|
1296
|
-
let
|
|
1297
|
-
if (t[6] !==
|
|
1298
|
-
let
|
|
1299
|
-
t[9] !==
|
|
1346
|
+
} : G, t[4] = G, t[5] = h) : h = t[5];
|
|
1347
|
+
const x = h, Yt = $ === void 0 ? "NA" : $, Zt = Ht === void 0 ? "vertical" : Ht, F = Zt === "horizontal" ? Ri : al, [M, _t] = te(0), [W, R] = te(0), [D, St] = te(x.autoplay);
|
|
1348
|
+
let a;
|
|
1349
|
+
if (t[6] !== s || t[7] !== x.dateFormat) {
|
|
1350
|
+
let ie;
|
|
1351
|
+
t[9] !== x.dateFormat ? (ie = (Ae) => Ee(`${Ae.date}`, x.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[9] = x.dateFormat, t[10] = ie) : ie = t[10], a = [...new Set(s.filter(Sl).map(ie))], a.sort(Tl), t[6] = s, t[7] = x.dateFormat, t[8] = a;
|
|
1300
1352
|
} else
|
|
1301
|
-
|
|
1302
|
-
const
|
|
1303
|
-
let
|
|
1304
|
-
t[11] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
1305
|
-
const
|
|
1306
|
-
|
|
1353
|
+
a = t[8];
|
|
1354
|
+
const $t = a, [k, Bt] = te(x.autoplay ? 0 : $t.length - 1), [qt, C] = te(void 0), fe = ve(null), de = ve(null);
|
|
1355
|
+
let ye, pe;
|
|
1356
|
+
t[11] === Symbol.for("react.memo_cache_sentinel") ? (ye = () => {
|
|
1357
|
+
const ie = new ResizeObserver((Ae) => {
|
|
1358
|
+
_t(Ae[0].target.clientWidth || 620), R(Ae[0].target.clientHeight || 480);
|
|
1307
1359
|
});
|
|
1308
|
-
return
|
|
1309
|
-
},
|
|
1310
|
-
let
|
|
1311
|
-
t[13] !==
|
|
1312
|
-
const
|
|
1313
|
-
|
|
1314
|
-
}, (
|
|
1315
|
-
return
|
|
1316
|
-
},
|
|
1317
|
-
const
|
|
1318
|
-
let
|
|
1319
|
-
t[18] !==
|
|
1320
|
-
const
|
|
1321
|
-
let
|
|
1322
|
-
t[23] !==
|
|
1323
|
-
title:
|
|
1324
|
-
description:
|
|
1360
|
+
return fe.current && ie.observe(fe.current), () => ie.disconnect();
|
|
1361
|
+
}, pe = [], t[11] = ye, t[12] = pe) : (ye = t[11], pe = t[12]), De(ye, pe);
|
|
1362
|
+
let ae, ne;
|
|
1363
|
+
t[13] !== D || t[14] !== x.speed || t[15] !== $t ? (ae = () => {
|
|
1364
|
+
const ie = setInterval(() => {
|
|
1365
|
+
Bt((Ae) => Ae < $t.length - 1 ? Ae + 1 : 0);
|
|
1366
|
+
}, (x.speed || 2) * 1e3);
|
|
1367
|
+
return D || clearInterval(ie), () => clearInterval(ie);
|
|
1368
|
+
}, ne = [$t, D, x.speed], t[13] = D, t[14] = x.speed, t[15] = $t, t[16] = ae, t[17] = ne) : (ae = t[16], ne = t[17]), De(ae, ne);
|
|
1369
|
+
const ue = x.dateFormat || "yyyy";
|
|
1370
|
+
let oe;
|
|
1371
|
+
t[18] !== k || t[19] !== ue || t[20] !== x.showOnlyActiveDate || t[21] !== $t ? (oe = Xe($t, k, x.showOnlyActiveDate, ue), t[18] = k, t[19] = ue, t[20] = x.showOnlyActiveDate, t[21] = $t, t[22] = oe) : oe = t[22];
|
|
1372
|
+
const re = oe, me = N?.graphContainer, xe = L?.graphContainer;
|
|
1373
|
+
let ce;
|
|
1374
|
+
t[23] !== N?.description || t[24] !== N?.title || t[25] !== s || t[26] !== mt || t[27] !== Tt || t[28] !== ut || t[29] !== X || t[30] !== L?.description || t[31] !== L?.title || t[32] !== it ? (ce = X || Tt || ut || mt ? /* @__PURE__ */ i.jsx(Qe, { styles: {
|
|
1375
|
+
title: L?.title,
|
|
1376
|
+
description: L?.description
|
|
1325
1377
|
}, classNames: {
|
|
1326
|
-
title:
|
|
1327
|
-
description:
|
|
1328
|
-
}, graphTitle:
|
|
1329
|
-
let
|
|
1330
|
-
t[34] !==
|
|
1378
|
+
title: N?.title,
|
|
1379
|
+
description: N?.description
|
|
1380
|
+
}, graphTitle: X, graphDescription: Tt, width: it, graphDownload: ut ? de : void 0, dataDownload: mt ? s.map(jl).filter(Nl).length > 0 ? s.map(Il).filter(Ll) : s.filter(Dl) : null }) : null, t[23] = N?.description, t[24] = N?.title, t[25] = s, t[26] = mt, t[27] = Tt, t[28] = ut, t[29] = X, t[30] = L?.description, t[31] = L?.title, t[32] = it, t[33] = ce) : ce = t[33];
|
|
1381
|
+
let Qt;
|
|
1382
|
+
t[34] !== k || t[35] !== re || t[36] !== D || t[37] !== x.enabled || t[38] !== $t ? (Qt = x.enabled && $t.length > 0 && re ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center pb-4", dir: "ltr", children: [
|
|
1331
1383
|
/* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
|
|
1332
|
-
|
|
1333
|
-
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label":
|
|
1334
|
-
/* @__PURE__ */ i.jsx(
|
|
1335
|
-
|
|
1336
|
-
}, onChange: (
|
|
1337
|
-
|
|
1384
|
+
St(!D);
|
|
1385
|
+
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": D ? "Click to pause animation" : "Click to play animation", children: D ? /* @__PURE__ */ i.jsx(ei, {}) : /* @__PURE__ */ i.jsx(ii, {}) }),
|
|
1386
|
+
/* @__PURE__ */ i.jsx(Ye, { min: $t[0], max: $t[$t.length - 1], marks: re, step: null, defaultValue: $t[$t.length - 1], value: $t[k], onChangeComplete: (ie) => {
|
|
1387
|
+
Bt($t.indexOf(ie));
|
|
1388
|
+
}, onChange: (ie) => {
|
|
1389
|
+
Bt($t.indexOf(ie));
|
|
1338
1390
|
}, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
|
|
1339
|
-
] }) : null, t[34] =
|
|
1340
|
-
let
|
|
1341
|
-
t[40] !==
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1391
|
+
] }) : null, t[34] = k, t[35] = re, t[36] = D, t[37] = x.enabled, t[38] = $t, t[39] = Qt) : Qt = t[39];
|
|
1392
|
+
let Dt;
|
|
1393
|
+
t[40] !== N?.colorLegend || t[41] !== Y || t[42] !== at || t[43] !== Ut || t[44] !== s || t[45] !== ot || t[46] !== vt || t[47] !== J || t[48] !== it ? (Dt = ot && s.filter(zl).length !== 0 && s.length > 0 ? /* @__PURE__ */ i.jsx(_e, { width: it, colorLegendTitle: at, colors: Ut || ge[J].categoricalColors.colors, colorDomain: Y || ni(s, "color", !0), setSelectedColor: C, showNAColor: vt, className: N?.colorLegend }) : null, t[40] = N?.colorLegend, t[41] = Y, t[42] = at, t[43] = Ut, t[44] = s, t[45] = ot, t[46] = vt, t[47] = J, t[48] = it, t[49] = Dt) : Dt = t[49];
|
|
1394
|
+
let se;
|
|
1395
|
+
t[50] !== s.length ? (se = s.length === 0 && /* @__PURE__ */ i.jsx(ti, {}), t[50] = s.length, t[51] = se) : se = t[51];
|
|
1396
|
+
let ke;
|
|
1397
|
+
t[52] !== F || t[53] !== v || t[54] !== I || t[55] !== Wt || t[56] !== Q || t[57] !== N || t[58] !== Y || t[59] !== Ut || t[60] !== A || t[61] !== s || t[62] !== o || t[63] !== p || t[64] !== b || t[65] !== j || t[66] !== k || t[67] !== V || t[68] !== U || t[69] !== E || t[70] !== Et || t[71] !== q || t[72] !== l || t[73] !== pt || t[74] !== n || t[75] !== Yt || t[76] !== g || t[77] !== u || t[78] !== B || t[79] !== Zt || t[80] !== xt || t[81] !== dt || t[82] !== _ || t[83] !== At || t[84] !== T || t[85] !== qt || t[86] !== yt || t[87] !== Vt || t[88] !== jt || t[89] !== d || t[90] !== L || t[91] !== gt || t[92] !== W || t[93] !== M || t[94] !== J || t[95] !== x.dateFormat || t[96] !== x.enabled || t[97] !== ft || t[98] !== w || t[99] !== bt || t[100] !== et || t[101] !== $t || t[102] !== z ? (ke = M && W && s.length > 0 ? /* @__PURE__ */ i.jsx(F, { data: d ? Pe(ai(s, x.dateFormat || "yyyy").filter((ie) => x.enabled ? ie.date === Me(new Date($t[k]), x.dateFormat || "yyyy") : ie).filter((ie) => b ? !le(ie.size) : ie), [(ie) => ie.size === void 0 ? d === "asc" ? (Zt === "horizontal" ? 1 : -1) * (1 / 0) : (Zt === "horizontal" ? -1 : 1) * (1 / 0) : ie.size], [d]).filter((ie, Ae) => q ? Ae < q : !0) : ai(s, x.dateFormat || "yyyy").filter((ie) => x.enabled ? ie.date === Me(new Date($t[k]), x.dateFormat || "yyyy") : ie).filter((ie) => b ? !le(ie.size) : ie).filter((ie, Ae) => q ? Ae < q : !0), barColor: s.filter(Vl).length === 0 ? Ut ? [Ut] : [ge.primaryColors["blue-600"]] : Ut || ge[J].categoricalColors.colors, colorDomain: s.filter(Cl).length === 0 ? [] : Y || ni(s, "color", !0), selectedColor: qt, trackColor: bt, width: M, height: W, suffix: gt, prefix: dt, barPadding: Wt, showValues: jt, showTicks: Vt, leftMargin: E, rightMargin: T, topMargin: w, bottomMargin: Q, truncateBy: et, showLabels: yt, tooltip: ft, onSeriesMouseOver: B, refValues: _, maxValue: le(l) ? Math.max(...s.filter(kl).map(Ml)) < 0 ? 0 : Math.max(...s.filter(Ol).map($l)) : l, minValue: le(n) ? Math.min(...s.filter(Al).map(wl)) >= 0 ? 0 : Math.min(...s.filter(vl).map(bl)) : n, highlightedDataPoints: j, onSeriesMouseClick: u, labelOrder: V, rtl: U === "he" || U === "ar", maxBarThickness: Et, minBarThickness: pt, resetSelectionOnDoubleClick: At, detailsOnClick: o, barAxisTitle: I, noOfTicks: g, valueColor: z, classNames: N, styles: L, animate: v === !0 ? {
|
|
1398
|
+
duration: 0.5,
|
|
1399
|
+
once: !0,
|
|
1400
|
+
amount: 0.5
|
|
1401
|
+
} : v || {
|
|
1402
|
+
duration: 0,
|
|
1403
|
+
once: !0,
|
|
1404
|
+
amount: 0
|
|
1405
|
+
}, dimmedOpacity: p, precision: xt, customLayers: A, naLabel: Yt }) : null, t[52] = F, t[53] = v, t[54] = I, t[55] = Wt, t[56] = Q, t[57] = N, t[58] = Y, t[59] = Ut, t[60] = A, t[61] = s, t[62] = o, t[63] = p, t[64] = b, t[65] = j, t[66] = k, t[67] = V, t[68] = U, t[69] = E, t[70] = Et, t[71] = q, t[72] = l, t[73] = pt, t[74] = n, t[75] = Yt, t[76] = g, t[77] = u, t[78] = B, t[79] = Zt, t[80] = xt, t[81] = dt, t[82] = _, t[83] = At, t[84] = T, t[85] = qt, t[86] = yt, t[87] = Vt, t[88] = jt, t[89] = d, t[90] = L, t[91] = gt, t[92] = W, t[93] = M, t[94] = J, t[95] = x.dateFormat, t[96] = x.enabled, t[97] = ft, t[98] = w, t[99] = bt, t[100] = et, t[101] = $t, t[102] = z, t[103] = ke) : ke = t[103];
|
|
1406
|
+
let Ce;
|
|
1407
|
+
t[104] !== se || t[105] !== ke ? (Ce = /* @__PURE__ */ i.jsxs(li, { ref: fe, children: [
|
|
1408
|
+
se,
|
|
1409
|
+
ke
|
|
1410
|
+
] }), t[104] = se, t[105] = ke, t[106] = Ce) : Ce = t[106];
|
|
1411
|
+
let Ve;
|
|
1412
|
+
t[107] !== N?.footnote || t[108] !== N?.source || t[109] !== Jt || t[110] !== Lt || t[111] !== L?.footnote || t[112] !== L?.source || t[113] !== it ? (Ve = Lt || Jt ? /* @__PURE__ */ i.jsx(Ze, { sources: Lt, footNote: Jt, width: it, styles: {
|
|
1413
|
+
footnote: L?.footnote,
|
|
1414
|
+
source: L?.source
|
|
1357
1415
|
}, classNames: {
|
|
1358
|
-
footnote:
|
|
1359
|
-
source:
|
|
1360
|
-
} }) : null, t[
|
|
1361
|
-
let
|
|
1362
|
-
return t[
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
}
|
|
1369
|
-
|
|
1416
|
+
footnote: N?.footnote,
|
|
1417
|
+
source: N?.source
|
|
1418
|
+
} }) : null, t[107] = N?.footnote, t[108] = N?.source, t[109] = Jt, t[110] = Lt, t[111] = L?.footnote, t[112] = L?.source, t[113] = it, t[114] = Ve) : Ve = t[114];
|
|
1419
|
+
let He;
|
|
1420
|
+
return t[115] !== Rt || t[116] !== zt || t[117] !== r || t[118] !== ht || t[119] !== U || t[120] !== wt || t[121] !== kt || t[122] !== Z || t[123] !== me || t[124] !== xe || t[125] !== ce || t[126] !== Qt || t[127] !== Dt || t[128] !== Ce || t[129] !== Ve || t[130] !== J || t[131] !== it ? (He = /* @__PURE__ */ i.jsxs(si, { className: me, style: xe, id: r, ref: de, "aria-label": Rt, backgroundColor: zt, theme: J, language: U, minHeight: wt, width: it, height: ht, relativeHeight: Z, padding: kt, children: [
|
|
1421
|
+
ce,
|
|
1422
|
+
Qt,
|
|
1423
|
+
Dt,
|
|
1424
|
+
Ce,
|
|
1425
|
+
Ve
|
|
1426
|
+
] }), t[115] = Rt, t[116] = zt, t[117] = r, t[118] = ht, t[119] = U, t[120] = wt, t[121] = kt, t[122] = Z, t[123] = me, t[124] = xe, t[125] = ce, t[126] = Qt, t[127] = Dt, t[128] = Ce, t[129] = Ve, t[130] = J, t[131] = it, t[132] = He) : He = t[132], He;
|
|
1427
|
+
}
|
|
1428
|
+
function bl(e) {
|
|
1370
1429
|
return e.size;
|
|
1371
1430
|
}
|
|
1372
|
-
function
|
|
1373
|
-
return !
|
|
1431
|
+
function vl(e) {
|
|
1432
|
+
return !le(e.size);
|
|
1374
1433
|
}
|
|
1375
|
-
function
|
|
1434
|
+
function wl(e) {
|
|
1376
1435
|
return e.size;
|
|
1377
1436
|
}
|
|
1378
|
-
function
|
|
1379
|
-
return !
|
|
1437
|
+
function Al(e) {
|
|
1438
|
+
return !le(e.size);
|
|
1380
1439
|
}
|
|
1381
|
-
function
|
|
1440
|
+
function $l(e) {
|
|
1382
1441
|
return e.size;
|
|
1383
1442
|
}
|
|
1384
|
-
function
|
|
1385
|
-
return !
|
|
1443
|
+
function Ol(e) {
|
|
1444
|
+
return !le(e.size);
|
|
1386
1445
|
}
|
|
1387
|
-
function
|
|
1446
|
+
function Ml(e) {
|
|
1388
1447
|
return e.size;
|
|
1389
1448
|
}
|
|
1390
|
-
function
|
|
1391
|
-
return !
|
|
1449
|
+
function kl(e) {
|
|
1450
|
+
return !le(e.size);
|
|
1392
1451
|
}
|
|
1393
|
-
function
|
|
1452
|
+
function Cl(e) {
|
|
1394
1453
|
return e.color;
|
|
1395
1454
|
}
|
|
1396
|
-
function
|
|
1455
|
+
function Vl(e) {
|
|
1397
1456
|
return e.color;
|
|
1398
1457
|
}
|
|
1399
|
-
function
|
|
1458
|
+
function zl(e) {
|
|
1400
1459
|
return e.color;
|
|
1401
1460
|
}
|
|
1402
|
-
function
|
|
1461
|
+
function Dl(e) {
|
|
1403
1462
|
return e !== void 0;
|
|
1404
1463
|
}
|
|
1405
|
-
function
|
|
1464
|
+
function Ll(e) {
|
|
1406
1465
|
return e !== void 0;
|
|
1407
1466
|
}
|
|
1408
|
-
function
|
|
1467
|
+
function Il(e) {
|
|
1409
1468
|
return e.data;
|
|
1410
1469
|
}
|
|
1411
|
-
function
|
|
1470
|
+
function Nl(e) {
|
|
1412
1471
|
return e !== void 0;
|
|
1413
1472
|
}
|
|
1414
|
-
function
|
|
1473
|
+
function jl(e) {
|
|
1415
1474
|
return e.data;
|
|
1416
1475
|
}
|
|
1417
|
-
function
|
|
1476
|
+
function Tl(e, t) {
|
|
1418
1477
|
return e - t;
|
|
1419
1478
|
}
|
|
1420
|
-
function
|
|
1479
|
+
function Sl(e) {
|
|
1421
1480
|
return e.date;
|
|
1422
1481
|
}
|
|
1423
|
-
function
|
|
1424
|
-
const t =
|
|
1425
|
-
data:
|
|
1426
|
-
barColors:
|
|
1427
|
-
barPadding:
|
|
1428
|
-
showTicks:
|
|
1429
|
-
topMargin:
|
|
1482
|
+
function Bl(e) {
|
|
1483
|
+
const t = we.c(129), {
|
|
1484
|
+
data: s,
|
|
1485
|
+
barColors: X,
|
|
1486
|
+
barPadding: Ut,
|
|
1487
|
+
showTicks: Kt,
|
|
1488
|
+
topMargin: Lt,
|
|
1430
1489
|
bottomMargin: Ot,
|
|
1431
1490
|
leftMargin: Tt,
|
|
1432
|
-
rightMargin:
|
|
1433
|
-
truncateBy:
|
|
1434
|
-
width:
|
|
1435
|
-
height:
|
|
1436
|
-
tooltip:
|
|
1437
|
-
onSeriesMouseOver:
|
|
1438
|
-
showLabels:
|
|
1439
|
-
suffix:
|
|
1491
|
+
rightMargin: P,
|
|
1492
|
+
truncateBy: K,
|
|
1493
|
+
width: y,
|
|
1494
|
+
height: st,
|
|
1495
|
+
tooltip: ht,
|
|
1496
|
+
onSeriesMouseOver: it,
|
|
1497
|
+
showLabels: Jt,
|
|
1498
|
+
suffix: Y,
|
|
1440
1499
|
prefix: at,
|
|
1441
1500
|
showValues: Mt,
|
|
1442
1501
|
refValues: kt,
|
|
1443
|
-
maxValue:
|
|
1444
|
-
onSeriesMouseClick:
|
|
1445
|
-
selectedColor:
|
|
1446
|
-
rtl:
|
|
1447
|
-
labelOrder:
|
|
1448
|
-
maxBarThickness:
|
|
1449
|
-
minBarThickness:
|
|
1450
|
-
resetSelectionOnDoubleClick:
|
|
1451
|
-
detailsOnClick:
|
|
1452
|
-
barAxisTitle:
|
|
1453
|
-
valueColor:
|
|
1454
|
-
noOfTicks:
|
|
1455
|
-
styles:
|
|
1456
|
-
classNames:
|
|
1457
|
-
animate:
|
|
1458
|
-
colorDomain:
|
|
1459
|
-
precision:
|
|
1460
|
-
customLayers:
|
|
1461
|
-
naLabel:
|
|
1462
|
-
} = e,
|
|
1463
|
-
let
|
|
1464
|
-
t[0] !==
|
|
1465
|
-
once:
|
|
1466
|
-
amount:
|
|
1467
|
-
}, t[0] =
|
|
1468
|
-
const
|
|
1469
|
-
let
|
|
1470
|
-
t[3] !==
|
|
1471
|
-
top:
|
|
1472
|
-
bottom:
|
|
1473
|
-
left:
|
|
1474
|
-
right:
|
|
1475
|
-
}, t[3] =
|
|
1476
|
-
const
|
|
1477
|
-
let
|
|
1478
|
-
if (t[8] !==
|
|
1479
|
-
const
|
|
1480
|
-
const
|
|
1481
|
-
return
|
|
1482
|
-
...
|
|
1483
|
-
id:
|
|
1502
|
+
maxValue: Gt,
|
|
1503
|
+
onSeriesMouseClick: w,
|
|
1504
|
+
selectedColor: Q,
|
|
1505
|
+
rtl: E,
|
|
1506
|
+
labelOrder: T,
|
|
1507
|
+
maxBarThickness: rt,
|
|
1508
|
+
minBarThickness: Z,
|
|
1509
|
+
resetSelectionOnDoubleClick: ft,
|
|
1510
|
+
detailsOnClick: B,
|
|
1511
|
+
barAxisTitle: _,
|
|
1512
|
+
valueColor: lt,
|
|
1513
|
+
noOfTicks: r,
|
|
1514
|
+
styles: l,
|
|
1515
|
+
classNames: n,
|
|
1516
|
+
animate: u,
|
|
1517
|
+
colorDomain: c,
|
|
1518
|
+
precision: f,
|
|
1519
|
+
customLayers: d,
|
|
1520
|
+
naLabel: V
|
|
1521
|
+
} = e, ct = Lt === void 0 ? 25 : Lt, tt = Ot === void 0 ? 10 : Ot, Ft = Tt === void 0 ? 100 : Tt, Pt = P === void 0 ? 40 : P, Et = ve(null);
|
|
1522
|
+
let q;
|
|
1523
|
+
t[0] !== u.amount || t[1] !== u.once ? (q = {
|
|
1524
|
+
once: u.once,
|
|
1525
|
+
amount: u.amount
|
|
1526
|
+
}, t[0] = u.amount, t[1] = u.once, t[2] = q) : q = t[2];
|
|
1527
|
+
const pt = Se(Et, q), Rt = _ ? ct + 25 : ct;
|
|
1528
|
+
let m;
|
|
1529
|
+
t[3] !== tt || t[4] !== Ft || t[5] !== Pt || t[6] !== Rt ? (m = {
|
|
1530
|
+
top: Rt,
|
|
1531
|
+
bottom: tt,
|
|
1532
|
+
left: Ft,
|
|
1533
|
+
right: Pt
|
|
1534
|
+
}, t[3] = tt, t[4] = Ft, t[5] = Pt, t[6] = Rt, t[7] = m) : m = t[7];
|
|
1535
|
+
const o = m, [I, O] = te(void 0), [z, L] = te(void 0), [N, Ct] = te(void 0), [It, nt] = te(void 0), Nt = y - o.left - o.right, H = st - o.top - o.bottom;
|
|
1536
|
+
let G;
|
|
1537
|
+
if (t[8] !== s || t[9] !== T) {
|
|
1538
|
+
const p = /* @__PURE__ */ new Set(), xt = s.map((h, x) => {
|
|
1539
|
+
const Yt = T ? `${h.label}` : `${x}`;
|
|
1540
|
+
return p.add(Yt), {
|
|
1541
|
+
...h,
|
|
1542
|
+
id: Yt
|
|
1484
1543
|
};
|
|
1485
|
-
}),
|
|
1486
|
-
let
|
|
1487
|
-
t[11] !==
|
|
1488
|
-
id:
|
|
1489
|
-
label:
|
|
1490
|
-
size: Array(
|
|
1491
|
-
}), t[11] =
|
|
1544
|
+
}), Xt = T ? T.filter((h) => !p.has(h)) : [];
|
|
1545
|
+
let A;
|
|
1546
|
+
t[11] !== s[0] ? (A = (h) => ({
|
|
1547
|
+
id: h,
|
|
1548
|
+
label: h,
|
|
1549
|
+
size: Array(s[0].size.length).fill(null)
|
|
1550
|
+
}), t[11] = s[0], t[12] = A) : A = t[12], G = [...xt, ...Xt.map(A)], t[8] = s, t[9] = T, t[10] = G;
|
|
1492
1551
|
} else
|
|
1493
|
-
|
|
1494
|
-
const
|
|
1495
|
-
let
|
|
1496
|
-
t[13] !==
|
|
1497
|
-
const
|
|
1498
|
-
let
|
|
1499
|
-
if (t[16] !==
|
|
1500
|
-
const
|
|
1501
|
-
|
|
1502
|
-
gridLines: s?.xAxis?.gridLines,
|
|
1503
|
-
labels: s?.xAxis?.labels
|
|
1504
|
-
}, classNames: {
|
|
1552
|
+
G = t[10];
|
|
1553
|
+
const $ = G;
|
|
1554
|
+
let Ht;
|
|
1555
|
+
t[13] !== $ || t[14] !== T ? (Ht = T ?? $.map(Rl), t[13] = $, t[14] = T, t[15] = Ht) : Ht = t[15];
|
|
1556
|
+
const bt = Ht;
|
|
1557
|
+
let gt, dt, Wt, jt, Vt, et, S, j, zt, yt, ot, ut, mt, U;
|
|
1558
|
+
if (t[16] !== u || t[17] !== _ || t[18] !== X || t[19] !== bt || t[20] !== Ut || t[21] !== n?.graphObjectValues || t[22] !== n?.xAxis?.gridLines || t[23] !== n?.xAxis?.labels || t[24] !== n?.xAxis?.title || t[25] !== n?.yAxis?.axis || t[26] !== n?.yAxis?.labels || t[27] !== c || t[28] !== d || t[29] !== $ || t[30] !== B || t[31] !== H || t[32] !== Nt || t[33] !== st || t[34] !== pt || t[35] !== o.bottom || t[36] !== o.left || t[37] !== o.top || t[38] !== rt || t[39] !== Gt || t[40] !== Z || t[41] !== z || t[42] !== V || t[43] !== r || t[44] !== w || t[45] !== it || t[46] !== f || t[47] !== at || t[48] !== kt || t[49] !== ft || t[50] !== E || t[51] !== Q || t[52] !== Jt || t[53] !== Kt || t[54] !== Mt || t[55] !== l?.graphObjectValues || t[56] !== l?.xAxis?.gridLines || t[57] !== l?.xAxis?.labels || t[58] !== l?.xAxis?.title || t[59] !== l?.yAxis?.axis || t[60] !== l?.yAxis?.labels || t[61] !== Y || t[62] !== ct || t[63] !== K || t[64] !== lt || t[65] !== y) {
|
|
1559
|
+
const p = Be().domain([0, Gt]).range([0, Nt]).nice(), xt = Oe().domain(bt).range([0, Z ? Math.max(H, Z * bt.length) : rt ? Math.min(H, rt * bt.length) : H]).paddingInner(Ut), Xt = p.ticks(r);
|
|
1560
|
+
dt = ee.svg, zt = Et, yt = `${y}px`, ot = `${st}px`, ut = `0 0 ${y} ${st}`, mt = "ltr", Vt = `translate(${o.left},${o.top})`, et = Kt ? /* @__PURE__ */ i.jsx(Re, { values: Xt.filter(Gl), x: Xt.filter(El).map((W) => p(W)), y1: 0 - ct, y2: H + o.bottom, styles: {
|
|
1505
1561
|
gridLines: l?.xAxis?.gridLines,
|
|
1506
1562
|
labels: l?.xAxis?.labels
|
|
1507
|
-
},
|
|
1508
|
-
|
|
1509
|
-
|
|
1563
|
+
}, classNames: {
|
|
1564
|
+
gridLines: n?.xAxis?.gridLines,
|
|
1565
|
+
labels: n?.xAxis?.labels
|
|
1566
|
+
}, suffix: Y, prefix: at, labelType: "secondary", showGridLines: !0, precision: f }) : null;
|
|
1567
|
+
const A = Nt / 2, h = 0 - o.top + 15, x = l?.xAxis?.title, Yt = n?.xAxis?.title;
|
|
1568
|
+
t[80] !== _ || t[81] !== A || t[82] !== h || t[83] !== x || t[84] !== Yt ? (S = /* @__PURE__ */ i.jsx(je, { x: A, y: h, style: x, className: Yt, text: _ }), t[80] = _, t[81] = A, t[82] = h, t[83] = x, t[84] = Yt, t[85] = S) : S = t[85], t[86] !== d ? (j = d.filter(Yl).map(Xl), t[86] = d, t[87] = j) : j = t[87], gt = Fe, U = $.map((W) => le(xt(W.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
|
|
1510
1569
|
initial: {
|
|
1511
1570
|
x: 0,
|
|
1512
|
-
y:
|
|
1571
|
+
y: xt(`${W.id}`)
|
|
1513
1572
|
},
|
|
1514
1573
|
whileInView: {
|
|
1515
1574
|
x: 0,
|
|
1516
|
-
y:
|
|
1575
|
+
y: xt(`${W.id}`),
|
|
1517
1576
|
transition: {
|
|
1518
|
-
duration:
|
|
1577
|
+
duration: u.duration
|
|
1519
1578
|
}
|
|
1520
1579
|
}
|
|
1521
|
-
}, initial: "initial", animate:
|
|
1580
|
+
}, initial: "initial", animate: pt ? "whileInView" : "initial", exit: {
|
|
1522
1581
|
opacity: 0,
|
|
1523
1582
|
transition: {
|
|
1524
|
-
duration:
|
|
1583
|
+
duration: u.duration
|
|
1525
1584
|
}
|
|
1526
1585
|
}, children: [
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
...
|
|
1530
|
-
sizeIndex:
|
|
1531
|
-
}),
|
|
1532
|
-
...
|
|
1533
|
-
sizeIndex:
|
|
1586
|
+
W.size.map((R, D) => /* @__PURE__ */ i.jsxs(ee.g, { opacity: Q ? X[D] === Q ? 1 : 0.3 : 1, onMouseEnter: (St) => {
|
|
1587
|
+
O({
|
|
1588
|
+
...W,
|
|
1589
|
+
sizeIndex: D
|
|
1590
|
+
}), nt(St.clientY), Ct(St.clientX), it?.({
|
|
1591
|
+
...W,
|
|
1592
|
+
sizeIndex: D
|
|
1534
1593
|
});
|
|
1535
|
-
}, onMouseMove: (
|
|
1536
|
-
|
|
1537
|
-
...
|
|
1538
|
-
sizeIndex:
|
|
1539
|
-
}),
|
|
1594
|
+
}, onMouseMove: (St) => {
|
|
1595
|
+
O({
|
|
1596
|
+
...W,
|
|
1597
|
+
sizeIndex: D
|
|
1598
|
+
}), nt(St.clientY), Ct(St.clientX);
|
|
1540
1599
|
}, onMouseLeave: () => {
|
|
1541
|
-
|
|
1600
|
+
O(void 0), Ct(void 0), nt(void 0), it?.(void 0);
|
|
1542
1601
|
}, onClick: () => {
|
|
1543
|
-
(
|
|
1544
|
-
...
|
|
1545
|
-
sizeIndex:
|
|
1546
|
-
}) &&
|
|
1547
|
-
...
|
|
1548
|
-
sizeIndex:
|
|
1549
|
-
}),
|
|
1550
|
-
...
|
|
1551
|
-
sizeIndex:
|
|
1602
|
+
(w || B) && (Le(z, {
|
|
1603
|
+
...W,
|
|
1604
|
+
sizeIndex: D
|
|
1605
|
+
}) && ft ? (L(void 0), w?.(void 0)) : (L({
|
|
1606
|
+
...W,
|
|
1607
|
+
sizeIndex: D
|
|
1608
|
+
}), w && w({
|
|
1609
|
+
...W,
|
|
1610
|
+
sizeIndex: D
|
|
1552
1611
|
})));
|
|
1553
1612
|
}, children: [
|
|
1554
|
-
|
|
1555
|
-
fill:
|
|
1556
|
-
}, height:
|
|
1613
|
+
R ? /* @__PURE__ */ i.jsx(ee.rect, { y: 0, style: {
|
|
1614
|
+
fill: X[D]
|
|
1615
|
+
}, height: xt.bandwidth(), exit: {
|
|
1557
1616
|
width: 0,
|
|
1558
|
-
x:
|
|
1617
|
+
x: p(0),
|
|
1559
1618
|
transition: {
|
|
1560
|
-
duration:
|
|
1619
|
+
duration: u.duration
|
|
1561
1620
|
}
|
|
1562
1621
|
}, variants: {
|
|
1563
1622
|
initial: {
|
|
1564
1623
|
width: 0,
|
|
1565
|
-
x:
|
|
1566
|
-
fill:
|
|
1624
|
+
x: p(0),
|
|
1625
|
+
fill: X[D]
|
|
1567
1626
|
},
|
|
1568
1627
|
whileInView: {
|
|
1569
|
-
width:
|
|
1570
|
-
x:
|
|
1571
|
-
fill:
|
|
1628
|
+
width: p(R || 0),
|
|
1629
|
+
x: p(D === 0 ? 0 : he(W.size.filter((St, a) => a < D && St))),
|
|
1630
|
+
fill: X[D],
|
|
1572
1631
|
transition: {
|
|
1573
|
-
duration:
|
|
1632
|
+
duration: u.duration
|
|
1574
1633
|
}
|
|
1575
1634
|
}
|
|
1576
|
-
}, initial: "initial", animate:
|
|
1577
|
-
Mt ? /* @__PURE__ */ i.jsx(ee.text, { y:
|
|
1635
|
+
}, initial: "initial", animate: pt ? "whileInView" : "initial" }, D) : null,
|
|
1636
|
+
Mt ? /* @__PURE__ */ i.jsx(ee.text, { y: xt.bandwidth() / 2, style: {
|
|
1578
1637
|
textAnchor: "middle",
|
|
1579
|
-
...
|
|
1580
|
-
}, dy: "0.33em", className:
|
|
1638
|
+
...l?.graphObjectValues || {}
|
|
1639
|
+
}, dy: "0.33em", className: $e("graph-value text-sm", n?.graphObjectValues), exit: {
|
|
1581
1640
|
opacity: 0,
|
|
1582
1641
|
transition: {
|
|
1583
|
-
duration:
|
|
1642
|
+
duration: u.duration
|
|
1584
1643
|
}
|
|
1585
1644
|
}, variants: {
|
|
1586
1645
|
initial: {
|
|
1587
|
-
x:
|
|
1646
|
+
x: p(0),
|
|
1588
1647
|
opacity: 0,
|
|
1589
|
-
fill:
|
|
1648
|
+
fill: We(X[D])
|
|
1590
1649
|
},
|
|
1591
1650
|
whileInView: {
|
|
1592
|
-
x:
|
|
1593
|
-
opacity:
|
|
1594
|
-
fill:
|
|
1651
|
+
x: p(D === 0 ? 0 : he(W.size.filter((St, a) => a < D && St))) + p(R || 0) / 2,
|
|
1652
|
+
opacity: R && p(R) / be(R, V, f, at, Y).length > 12 ? 1 : 0,
|
|
1653
|
+
fill: We(X[D]),
|
|
1595
1654
|
transition: {
|
|
1596
|
-
duration:
|
|
1655
|
+
duration: u.duration
|
|
1597
1656
|
}
|
|
1598
1657
|
}
|
|
1599
|
-
}, initial: "initial", animate:
|
|
1600
|
-
] }, `${
|
|
1601
|
-
|
|
1602
|
-
Mt ? /* @__PURE__ */ i.jsx(ee.text, { className:
|
|
1603
|
-
...
|
|
1604
|
-
fill:
|
|
1658
|
+
}, initial: "initial", animate: pt ? "whileInView" : "initial", children: be(R, V, f, at, Y) }) : null
|
|
1659
|
+
] }, `${W.label}-${c[D] || D}`)),
|
|
1660
|
+
Jt ? /* @__PURE__ */ i.jsx(Ge, { value: `${W.label}`.length < K ? `${W.label}` : `${`${W.label}`.substring(0, K)}...`, y: 0, x: 0 - o.left, width: 0 + o.left, height: xt.bandwidth(), style: l?.yAxis?.labels, className: n?.yAxis?.labels, animate: u, isInView: pt }) : null,
|
|
1661
|
+
Mt ? /* @__PURE__ */ i.jsx(ee.text, { className: $e("graph-value graph-value-total text-sm", lt ? "" : " fill-primary-gray-700 dark:fill-primary-gray-300", n?.graphObjectValues), style: {
|
|
1662
|
+
...lt ? {
|
|
1663
|
+
fill: lt
|
|
1605
1664
|
} : {},
|
|
1606
1665
|
textAnchor: "start",
|
|
1607
|
-
...
|
|
1608
|
-
}, y:
|
|
1666
|
+
...l?.graphObjectValues || {}
|
|
1667
|
+
}, y: xt.bandwidth() / 2, dx: 5, dy: "0.33em", variants: {
|
|
1609
1668
|
initial: {
|
|
1610
|
-
x:
|
|
1669
|
+
x: p(0),
|
|
1611
1670
|
opacity: 0,
|
|
1612
|
-
...
|
|
1613
|
-
fill:
|
|
1671
|
+
...lt ? {
|
|
1672
|
+
fill: lt
|
|
1614
1673
|
} : {}
|
|
1615
1674
|
},
|
|
1616
1675
|
whileInView: {
|
|
1617
|
-
x:
|
|
1676
|
+
x: p(he(W.size.map(Wl))),
|
|
1618
1677
|
opacity: 1,
|
|
1619
|
-
...
|
|
1620
|
-
fill:
|
|
1678
|
+
...lt ? {
|
|
1679
|
+
fill: lt
|
|
1621
1680
|
} : {},
|
|
1622
1681
|
transition: {
|
|
1623
|
-
duration:
|
|
1682
|
+
duration: u.duration
|
|
1624
1683
|
}
|
|
1625
1684
|
}
|
|
1626
1685
|
}, exit: {
|
|
1627
1686
|
opacity: 0,
|
|
1628
1687
|
transition: {
|
|
1629
|
-
duration:
|
|
1688
|
+
duration: u.duration
|
|
1630
1689
|
}
|
|
1631
|
-
}, initial: "initial", animate:
|
|
1632
|
-
] },
|
|
1633
|
-
const
|
|
1634
|
-
let
|
|
1635
|
-
t[88] !==
|
|
1636
|
-
axis:
|
|
1637
|
-
}, t[88] =
|
|
1638
|
-
const
|
|
1639
|
-
let
|
|
1640
|
-
t[90] !==
|
|
1641
|
-
axis:
|
|
1642
|
-
}, t[90] =
|
|
1690
|
+
}, initial: "initial", animate: pt ? "whileInView" : "initial", children: be(he(W.size.filter(Hl)), V, f, at, Y) }) : null
|
|
1691
|
+
] }, W.label));
|
|
1692
|
+
const Zt = n?.yAxis?.axis;
|
|
1693
|
+
let F;
|
|
1694
|
+
t[88] !== Zt ? (F = {
|
|
1695
|
+
axis: Zt
|
|
1696
|
+
}, t[88] = Zt, t[89] = F) : F = t[89];
|
|
1697
|
+
const M = l?.yAxis?.axis;
|
|
1698
|
+
let _t;
|
|
1699
|
+
t[90] !== M ? (_t = {
|
|
1700
|
+
axis: M
|
|
1701
|
+
}, t[90] = M, t[91] = _t) : _t = t[91], Wt = /* @__PURE__ */ i.jsx(Ne, { x1: p(0), x2: p(0), y1: -2.5, y2: H + o.bottom, classNames: F, styles: _t }), jt = kt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: kt.map((W, R) => /* @__PURE__ */ i.jsx(qe, { text: W.text, color: W.color, x: p(W.value), y1: 0 - o.top, y2: H + o.bottom, textSide: p(W.value) > Nt * 0.75 || E ? "left" : "right", classNames: W.classNames, styles: W.styles, animate: u, isInView: pt }, R)) }) : null, t[16] = u, t[17] = _, t[18] = X, t[19] = bt, t[20] = Ut, t[21] = n?.graphObjectValues, t[22] = n?.xAxis?.gridLines, t[23] = n?.xAxis?.labels, t[24] = n?.xAxis?.title, t[25] = n?.yAxis?.axis, t[26] = n?.yAxis?.labels, t[27] = c, t[28] = d, t[29] = $, t[30] = B, t[31] = H, t[32] = Nt, t[33] = st, t[34] = pt, t[35] = o.bottom, t[36] = o.left, t[37] = o.top, t[38] = rt, t[39] = Gt, t[40] = Z, t[41] = z, t[42] = V, t[43] = r, t[44] = w, t[45] = it, t[46] = f, t[47] = at, t[48] = kt, t[49] = ft, t[50] = E, t[51] = Q, t[52] = Jt, t[53] = Kt, t[54] = Mt, t[55] = l?.graphObjectValues, t[56] = l?.xAxis?.gridLines, t[57] = l?.xAxis?.labels, t[58] = l?.xAxis?.title, t[59] = l?.yAxis?.axis, t[60] = l?.yAxis?.labels, t[61] = Y, t[62] = ct, t[63] = K, t[64] = lt, t[65] = y, t[66] = gt, t[67] = dt, t[68] = Wt, t[69] = jt, t[70] = Vt, t[71] = et, t[72] = S, t[73] = j, t[74] = zt, t[75] = yt, t[76] = ot, t[77] = ut, t[78] = mt, t[79] = U;
|
|
1643
1702
|
} else
|
|
1644
|
-
|
|
1703
|
+
gt = t[66], dt = t[67], Wt = t[68], jt = t[69], Vt = t[70], et = t[71], S = t[72], j = t[73], zt = t[74], yt = t[75], ot = t[76], ut = t[77], mt = t[78], U = t[79];
|
|
1704
|
+
let vt;
|
|
1705
|
+
t[92] !== gt || t[93] !== Wt || t[94] !== jt || t[95] !== U ? (vt = /* @__PURE__ */ i.jsxs(gt, { children: [
|
|
1706
|
+
U,
|
|
1707
|
+
Wt,
|
|
1708
|
+
jt
|
|
1709
|
+
] }), t[92] = gt, t[93] = Wt, t[94] = jt, t[95] = U, t[96] = vt) : vt = t[96];
|
|
1645
1710
|
let wt;
|
|
1646
|
-
t[
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1711
|
+
t[97] !== d ? (wt = d.filter(Pl).map(Fl), t[97] = d, t[98] = wt) : wt = t[98];
|
|
1712
|
+
let J;
|
|
1713
|
+
t[99] !== Vt || t[100] !== et || t[101] !== S || t[102] !== j || t[103] !== vt || t[104] !== wt ? (J = /* @__PURE__ */ i.jsxs("g", { transform: Vt, children: [
|
|
1714
|
+
et,
|
|
1715
|
+
S,
|
|
1716
|
+
j,
|
|
1717
|
+
vt,
|
|
1718
|
+
wt
|
|
1719
|
+
] }), t[99] = Vt, t[100] = et, t[101] = S, t[102] = j, t[103] = vt, t[104] = wt, t[105] = J) : J = t[105];
|
|
1653
1720
|
let At;
|
|
1654
|
-
t[
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
z,
|
|
1658
|
-
wt,
|
|
1659
|
-
st
|
|
1660
|
-
] }), t[99] = zt, t[100] = G, t[101] = I, t[102] = z, t[103] = wt, t[104] = st, t[105] = At) : At = t[105];
|
|
1661
|
-
let $t;
|
|
1662
|
-
t[106] !== Ft || t[107] !== ht || t[108] !== ot || t[109] !== dt || t[110] !== vt || t[111] !== _ || t[112] !== At ? ($t = /* @__PURE__ */ i.jsx(Ft, { ref: ht, width: ot, height: dt, viewBox: vt, direction: _, children: At }), t[106] = Ft, t[107] = ht, t[108] = ot, t[109] = dt, t[110] = vt, t[111] = _, t[112] = At, t[113] = $t) : $t = t[113];
|
|
1721
|
+
t[106] !== dt || t[107] !== zt || t[108] !== yt || t[109] !== ot || t[110] !== ut || t[111] !== mt || t[112] !== J ? (At = /* @__PURE__ */ i.jsx(dt, { ref: zt, width: yt, height: ot, viewBox: ut, direction: mt, children: J }), t[106] = dt, t[107] = zt, t[108] = yt, t[109] = ot, t[110] = ut, t[111] = mt, t[112] = J, t[113] = At) : At = t[113];
|
|
1722
|
+
let g;
|
|
1723
|
+
t[114] !== n?.tooltip || t[115] !== N || t[116] !== It || t[117] !== I || t[118] !== l?.tooltip || t[119] !== ht ? (g = I && ht && N && It ? /* @__PURE__ */ i.jsx(Ie, { data: I, body: ht, xPos: N, yPos: It, backgroundStyle: l?.tooltip, className: n?.tooltip }) : null, t[114] = n?.tooltip, t[115] = N, t[116] = It, t[117] = I, t[118] = l?.tooltip, t[119] = ht, t[120] = g) : g = t[120];
|
|
1663
1724
|
let b;
|
|
1664
|
-
t[
|
|
1665
|
-
let
|
|
1666
|
-
t[
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
$
|
|
1672
|
-
] }), t[125] = $t, t[126] = b, t[127] = $, t[128] = O) : O = t[128], O;
|
|
1725
|
+
t[121] !== n?.modal || t[122] !== B || t[123] !== z ? (b = B && z !== void 0 ? /* @__PURE__ */ i.jsx(Te, { body: B, data: z, setData: L, className: n?.modal }) : null, t[121] = n?.modal, t[122] = B, t[123] = z, t[124] = b) : b = t[124];
|
|
1726
|
+
let v;
|
|
1727
|
+
return t[125] !== At || t[126] !== g || t[127] !== b ? (v = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
1728
|
+
At,
|
|
1729
|
+
g,
|
|
1730
|
+
b
|
|
1731
|
+
] }), t[125] = At, t[126] = g, t[127] = b, t[128] = v) : v = t[128], v;
|
|
1673
1732
|
}
|
|
1674
|
-
function
|
|
1733
|
+
function Fl(e) {
|
|
1675
1734
|
return e.layer;
|
|
1676
1735
|
}
|
|
1677
|
-
function
|
|
1736
|
+
function Pl(e) {
|
|
1678
1737
|
return e.position === "after";
|
|
1679
1738
|
}
|
|
1680
|
-
function
|
|
1739
|
+
function Hl(e) {
|
|
1681
1740
|
return e;
|
|
1682
1741
|
}
|
|
1683
|
-
function
|
|
1742
|
+
function Wl(e) {
|
|
1684
1743
|
return e || 0;
|
|
1685
1744
|
}
|
|
1686
|
-
function
|
|
1745
|
+
function Xl(e) {
|
|
1687
1746
|
return e.layer;
|
|
1688
1747
|
}
|
|
1689
|
-
function
|
|
1748
|
+
function Yl(e) {
|
|
1690
1749
|
return e.position === "before";
|
|
1691
1750
|
}
|
|
1692
|
-
function
|
|
1751
|
+
function El(e) {
|
|
1693
1752
|
return e !== 0;
|
|
1694
1753
|
}
|
|
1695
|
-
function
|
|
1754
|
+
function Gl(e) {
|
|
1696
1755
|
return e !== 0;
|
|
1697
1756
|
}
|
|
1698
|
-
function
|
|
1757
|
+
function Rl(e) {
|
|
1699
1758
|
return `${e.id}`;
|
|
1700
1759
|
}
|
|
1701
|
-
function
|
|
1702
|
-
const t =
|
|
1703
|
-
data:
|
|
1704
|
-
leftMargin:
|
|
1705
|
-
rightMargin:
|
|
1706
|
-
topMargin:
|
|
1707
|
-
bottomMargin:
|
|
1760
|
+
function ql(e) {
|
|
1761
|
+
const t = we.c(136), {
|
|
1762
|
+
data: s,
|
|
1763
|
+
leftMargin: X,
|
|
1764
|
+
rightMargin: Ut,
|
|
1765
|
+
topMargin: Kt,
|
|
1766
|
+
bottomMargin: Lt,
|
|
1708
1767
|
width: Ot,
|
|
1709
1768
|
height: Tt,
|
|
1710
|
-
barColors:
|
|
1711
|
-
barPadding:
|
|
1712
|
-
showLabels:
|
|
1713
|
-
showTicks:
|
|
1714
|
-
truncateBy:
|
|
1715
|
-
tooltip:
|
|
1716
|
-
onSeriesMouseOver:
|
|
1717
|
-
suffix:
|
|
1769
|
+
barColors: P,
|
|
1770
|
+
barPadding: K,
|
|
1771
|
+
showLabels: y,
|
|
1772
|
+
showTicks: st,
|
|
1773
|
+
truncateBy: ht,
|
|
1774
|
+
tooltip: it,
|
|
1775
|
+
onSeriesMouseOver: Jt,
|
|
1776
|
+
suffix: Y,
|
|
1718
1777
|
prefix: at,
|
|
1719
1778
|
showValues: Mt,
|
|
1720
1779
|
refValues: kt,
|
|
1721
|
-
maxValue:
|
|
1722
|
-
onSeriesMouseClick:
|
|
1723
|
-
selectedColor:
|
|
1724
|
-
labelOrder:
|
|
1725
|
-
maxBarThickness:
|
|
1726
|
-
minBarThickness:
|
|
1727
|
-
resetSelectionOnDoubleClick:
|
|
1728
|
-
detailsOnClick:
|
|
1729
|
-
barAxisTitle:
|
|
1730
|
-
valueColor:
|
|
1731
|
-
noOfTicks:
|
|
1732
|
-
styles:
|
|
1733
|
-
classNames:
|
|
1734
|
-
animate:
|
|
1735
|
-
colorDomain:
|
|
1736
|
-
precision:
|
|
1737
|
-
customLayers:
|
|
1738
|
-
naLabel:
|
|
1739
|
-
} = e,
|
|
1740
|
-
let
|
|
1741
|
-
t[0] !==
|
|
1742
|
-
once:
|
|
1743
|
-
amount:
|
|
1744
|
-
}, t[0] =
|
|
1745
|
-
const
|
|
1746
|
-
let
|
|
1747
|
-
t[3] !==
|
|
1748
|
-
top:
|
|
1749
|
-
bottom:
|
|
1750
|
-
left:
|
|
1751
|
-
right:
|
|
1752
|
-
}, t[3] =
|
|
1753
|
-
const
|
|
1754
|
-
let
|
|
1755
|
-
if (t[8] !==
|
|
1756
|
-
const
|
|
1757
|
-
const
|
|
1758
|
-
return
|
|
1759
|
-
...
|
|
1760
|
-
id:
|
|
1780
|
+
maxValue: Gt,
|
|
1781
|
+
onSeriesMouseClick: w,
|
|
1782
|
+
selectedColor: Q,
|
|
1783
|
+
labelOrder: E,
|
|
1784
|
+
maxBarThickness: T,
|
|
1785
|
+
minBarThickness: rt,
|
|
1786
|
+
resetSelectionOnDoubleClick: Z,
|
|
1787
|
+
detailsOnClick: ft,
|
|
1788
|
+
barAxisTitle: B,
|
|
1789
|
+
valueColor: _,
|
|
1790
|
+
noOfTicks: lt,
|
|
1791
|
+
styles: r,
|
|
1792
|
+
classNames: l,
|
|
1793
|
+
animate: n,
|
|
1794
|
+
colorDomain: u,
|
|
1795
|
+
precision: c,
|
|
1796
|
+
customLayers: f,
|
|
1797
|
+
naLabel: d
|
|
1798
|
+
} = e, V = X === void 0 ? 20 : X, ct = Ut === void 0 ? 20 : Ut, tt = Kt === void 0 ? 20 : Kt, Ft = Lt === void 0 ? 25 : Lt, Pt = ve(null);
|
|
1799
|
+
let Et;
|
|
1800
|
+
t[0] !== n.amount || t[1] !== n.once ? (Et = {
|
|
1801
|
+
once: n.once,
|
|
1802
|
+
amount: n.amount
|
|
1803
|
+
}, t[0] = n.amount, t[1] = n.once, t[2] = Et) : Et = t[2];
|
|
1804
|
+
const q = Se(Pt, Et), pt = B ? V + 30 : V;
|
|
1805
|
+
let Rt;
|
|
1806
|
+
t[3] !== Ft || t[4] !== ct || t[5] !== pt || t[6] !== tt ? (Rt = {
|
|
1807
|
+
top: tt,
|
|
1808
|
+
bottom: Ft,
|
|
1809
|
+
left: pt,
|
|
1810
|
+
right: ct
|
|
1811
|
+
}, t[3] = Ft, t[4] = ct, t[5] = pt, t[6] = tt, t[7] = Rt) : Rt = t[7];
|
|
1812
|
+
const m = Rt, [o, I] = te(void 0), [O, z] = te(void 0), [L, N] = te(void 0), [Ct, It] = te(void 0), nt = Ot - m.left - m.right, Nt = Tt - m.top - m.bottom;
|
|
1813
|
+
let H;
|
|
1814
|
+
if (t[8] !== s || t[9] !== E) {
|
|
1815
|
+
const v = /* @__PURE__ */ new Set(), p = s.map((A, h) => {
|
|
1816
|
+
const x = E ? `${A.label}` : `${h}`;
|
|
1817
|
+
return v.add(x), {
|
|
1818
|
+
...A,
|
|
1819
|
+
id: x
|
|
1761
1820
|
};
|
|
1762
|
-
}),
|
|
1763
|
-
let
|
|
1764
|
-
t[11] !==
|
|
1765
|
-
id:
|
|
1766
|
-
label:
|
|
1767
|
-
size: Array(
|
|
1768
|
-
}), t[11] =
|
|
1821
|
+
}), xt = E ? E.filter((A) => !v.has(A)) : [];
|
|
1822
|
+
let Xt;
|
|
1823
|
+
t[11] !== s[0] ? (Xt = (A) => ({
|
|
1824
|
+
id: A,
|
|
1825
|
+
label: A,
|
|
1826
|
+
size: Array(s[0].size.length).fill(null)
|
|
1827
|
+
}), t[11] = s[0], t[12] = Xt) : Xt = t[12], H = [...p, ...xt.map(Xt)], t[8] = s, t[9] = E, t[10] = H;
|
|
1769
1828
|
} else
|
|
1770
|
-
|
|
1771
|
-
const
|
|
1772
|
-
let
|
|
1773
|
-
t[13] !==
|
|
1774
|
-
const
|
|
1775
|
-
let
|
|
1776
|
-
if (t[16] !==
|
|
1777
|
-
const
|
|
1778
|
-
|
|
1779
|
-
const
|
|
1780
|
-
let
|
|
1781
|
-
t[80] !==
|
|
1782
|
-
const
|
|
1783
|
-
let
|
|
1784
|
-
t[85] !==
|
|
1785
|
-
axis:
|
|
1786
|
-
label:
|
|
1787
|
-
}, t[85] =
|
|
1788
|
-
const
|
|
1789
|
-
let
|
|
1790
|
-
t[88] !==
|
|
1791
|
-
axis:
|
|
1792
|
-
label:
|
|
1793
|
-
}, t[88] =
|
|
1794
|
-
x: 0 -
|
|
1795
|
-
y:
|
|
1829
|
+
H = t[10];
|
|
1830
|
+
const G = H;
|
|
1831
|
+
let $;
|
|
1832
|
+
t[13] !== G || t[14] !== E ? ($ = E ?? G.map(is), t[13] = G, t[14] = E, t[15] = $) : $ = t[15];
|
|
1833
|
+
const Ht = $;
|
|
1834
|
+
let bt, gt, dt, Wt, jt, Vt, et, S, j, zt, yt, ot, ut, mt;
|
|
1835
|
+
if (t[16] !== n || t[17] !== B || t[18] !== P || t[19] !== Ht || t[20] !== K || t[21] !== l?.graphObjectValues || t[22] !== l?.xAxis?.axis || t[23] !== l?.xAxis?.labels || t[24] !== l?.yAxis?.gridLines || t[25] !== l?.yAxis?.labels || t[26] !== l?.yAxis?.title || t[27] !== u || t[28] !== f || t[29] !== G || t[30] !== ft || t[31] !== Nt || t[32] !== nt || t[33] !== Tt || t[34] !== q || t[35] !== V || t[36] !== m.bottom || t[37] !== m.left || t[38] !== m.right || t[39] !== m.top || t[40] !== T || t[41] !== Gt || t[42] !== rt || t[43] !== O || t[44] !== d || t[45] !== lt || t[46] !== w || t[47] !== Jt || t[48] !== c || t[49] !== at || t[50] !== kt || t[51] !== Z || t[52] !== Q || t[53] !== y || t[54] !== st || t[55] !== Mt || t[56] !== r?.graphObjectValues || t[57] !== r?.xAxis?.axis || t[58] !== r?.xAxis?.labels || t[59] !== r?.yAxis?.gridLines || t[60] !== r?.yAxis?.labels || t[61] !== r?.yAxis?.title || t[62] !== Y || t[63] !== ht || t[64] !== _ || t[65] !== Ot) {
|
|
1836
|
+
const v = Be().domain([0, Gt]).range([Nt, 0]).nice(), p = Oe().domain(Ht).range([0, rt ? Math.max(nt, rt * Ht.length) : T ? Math.min(nt, T * Ht.length) : nt]).paddingInner(K), xt = v.ticks(lt);
|
|
1837
|
+
gt = ee.svg, j = `${Ot}px`, zt = `${Tt}px`, yt = `0 0 ${Ot} ${Tt}`, ot = "ltr", ut = Pt, Wt = `translate(${m.left},${m.top})`;
|
|
1838
|
+
const Xt = v(0), A = v(0);
|
|
1839
|
+
let h;
|
|
1840
|
+
t[80] !== d || t[81] !== c || t[82] !== at || t[83] !== Y ? (h = be(0, d, c, at, Y), t[80] = d, t[81] = c, t[82] = at, t[83] = Y, t[84] = h) : h = t[84];
|
|
1841
|
+
const x = l?.xAxis?.axis, Yt = l?.yAxis?.labels;
|
|
1842
|
+
let Zt;
|
|
1843
|
+
t[85] !== x || t[86] !== Yt ? (Zt = {
|
|
1844
|
+
axis: x,
|
|
1845
|
+
label: Yt
|
|
1846
|
+
}, t[85] = x, t[86] = Yt, t[87] = Zt) : Zt = t[87];
|
|
1847
|
+
const F = r?.xAxis?.axis, M = r?.yAxis?.labels;
|
|
1848
|
+
let _t;
|
|
1849
|
+
t[88] !== F || t[89] !== M ? (_t = {
|
|
1850
|
+
axis: F,
|
|
1851
|
+
label: M
|
|
1852
|
+
}, t[88] = F, t[89] = M, t[90] = _t) : _t = t[90], jt = /* @__PURE__ */ i.jsx(Ne, { y1: Xt, y2: A, x1: 0 - V, x2: nt + m.right, label: h, labelPos: {
|
|
1853
|
+
x: 0 - V,
|
|
1854
|
+
y: v(0),
|
|
1796
1855
|
dx: 0,
|
|
1797
1856
|
dy: -5
|
|
1798
|
-
}, classNames:
|
|
1799
|
-
gridLines:
|
|
1800
|
-
labels:
|
|
1857
|
+
}, classNames: Zt, styles: _t }), Vt = st ? /* @__PURE__ */ i.jsx(Je, { values: xt.filter(es), y: xt.filter(ts).map((a) => v(a)), x1: 0 - V, x2: nt + m.right, styles: {
|
|
1858
|
+
gridLines: r?.yAxis?.gridLines,
|
|
1859
|
+
labels: r?.yAxis?.labels
|
|
1801
1860
|
}, classNames: {
|
|
1802
|
-
gridLines:
|
|
1803
|
-
labels:
|
|
1804
|
-
}, suffix:
|
|
1805
|
-
const
|
|
1806
|
-
t[91] !==
|
|
1861
|
+
gridLines: l?.yAxis?.gridLines,
|
|
1862
|
+
labels: l?.yAxis?.labels
|
|
1863
|
+
}, suffix: Y, prefix: at, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: c }) : null;
|
|
1864
|
+
const W = 0 - V - 15, R = Nt / 2, D = r?.yAxis?.title, St = l?.yAxis?.title;
|
|
1865
|
+
t[91] !== B || t[92] !== W || t[93] !== R || t[94] !== D || t[95] !== St ? (et = /* @__PURE__ */ i.jsx(je, { x: W, y: R, style: D, className: St, text: B, rotate90: !0 }), t[91] = B, t[92] = W, t[93] = R, t[94] = D, t[95] = St, t[96] = et) : et = t[96], t[97] !== f ? (S = f.filter(_l).map(Zl), t[97] = f, t[98] = S) : S = t[98], bt = Fe, mt = G.map((a) => le(p(a.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
|
|
1807
1866
|
initial: {
|
|
1808
|
-
x:
|
|
1867
|
+
x: p(`${a.id}`),
|
|
1809
1868
|
y: 0
|
|
1810
1869
|
},
|
|
1811
1870
|
whileInView: {
|
|
1812
|
-
x:
|
|
1871
|
+
x: p(`${a.id}`),
|
|
1813
1872
|
y: 0,
|
|
1814
1873
|
transition: {
|
|
1815
|
-
duration:
|
|
1874
|
+
duration: n.duration
|
|
1816
1875
|
}
|
|
1817
1876
|
}
|
|
1818
1877
|
}, transition: {
|
|
1819
|
-
duration:
|
|
1820
|
-
}, initial: "initial", animate:
|
|
1878
|
+
duration: n.duration
|
|
1879
|
+
}, initial: "initial", animate: q ? "whileInView" : "initial", exit: {
|
|
1821
1880
|
opacity: 0,
|
|
1822
1881
|
transition: {
|
|
1823
|
-
duration:
|
|
1882
|
+
duration: n.duration
|
|
1824
1883
|
}
|
|
1825
1884
|
}, children: [
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
...
|
|
1829
|
-
sizeIndex:
|
|
1830
|
-
}),
|
|
1831
|
-
...
|
|
1832
|
-
sizeIndex:
|
|
1885
|
+
a.size.map(($t, k) => /* @__PURE__ */ i.jsxs(ee.g, { opacity: Q ? P[k] === Q ? 1 : 0.3 : 1, onMouseEnter: (Bt) => {
|
|
1886
|
+
I({
|
|
1887
|
+
...a,
|
|
1888
|
+
sizeIndex: k
|
|
1889
|
+
}), It(Bt.clientY), N(Bt.clientX), Jt?.({
|
|
1890
|
+
...a,
|
|
1891
|
+
sizeIndex: k
|
|
1833
1892
|
});
|
|
1834
1893
|
}, onMouseMove: (Bt) => {
|
|
1835
|
-
|
|
1836
|
-
...
|
|
1837
|
-
sizeIndex:
|
|
1838
|
-
}),
|
|
1894
|
+
I({
|
|
1895
|
+
...a,
|
|
1896
|
+
sizeIndex: k
|
|
1897
|
+
}), It(Bt.clientY), N(Bt.clientX);
|
|
1839
1898
|
}, onMouseLeave: () => {
|
|
1840
|
-
|
|
1899
|
+
I(void 0), N(void 0), It(void 0), Jt?.(void 0);
|
|
1841
1900
|
}, onClick: () => {
|
|
1842
|
-
(
|
|
1843
|
-
...
|
|
1844
|
-
sizeIndex:
|
|
1845
|
-
}) &&
|
|
1846
|
-
...
|
|
1847
|
-
sizeIndex:
|
|
1848
|
-
}),
|
|
1849
|
-
...
|
|
1850
|
-
sizeIndex:
|
|
1901
|
+
(w || ft) && (Le(O, {
|
|
1902
|
+
...a,
|
|
1903
|
+
sizeIndex: k
|
|
1904
|
+
}) && Z ? (z(void 0), w?.(void 0)) : (z({
|
|
1905
|
+
...a,
|
|
1906
|
+
sizeIndex: k
|
|
1907
|
+
}), w && w({
|
|
1908
|
+
...a,
|
|
1909
|
+
sizeIndex: k
|
|
1851
1910
|
})));
|
|
1852
1911
|
}, children: [
|
|
1853
|
-
/* @__PURE__ */ i.jsx(ee.rect, { x: 0, width:
|
|
1912
|
+
/* @__PURE__ */ i.jsx(ee.rect, { x: 0, width: p.bandwidth(), variants: {
|
|
1854
1913
|
initial: {
|
|
1855
1914
|
height: 0,
|
|
1856
|
-
fill:
|
|
1857
|
-
y:
|
|
1915
|
+
fill: P[k],
|
|
1916
|
+
y: v(0)
|
|
1858
1917
|
},
|
|
1859
1918
|
whileInView: {
|
|
1860
|
-
height: Math.abs(
|
|
1861
|
-
y:
|
|
1862
|
-
fill:
|
|
1919
|
+
height: Math.abs(v(he(a.size.filter((Bt, qt) => qt <= k && Bt))) - v(he(a.size.filter((Bt, qt) => qt < k && Bt)))),
|
|
1920
|
+
y: v(he(a.size.filter((Bt, qt) => qt <= k && Bt))),
|
|
1921
|
+
fill: P[k],
|
|
1863
1922
|
transition: {
|
|
1864
|
-
duration:
|
|
1923
|
+
duration: n.duration
|
|
1865
1924
|
}
|
|
1866
1925
|
}
|
|
1867
|
-
}, initial: "initial", animate:
|
|
1926
|
+
}, initial: "initial", animate: q ? "whileInView" : "initial", exit: {
|
|
1868
1927
|
height: 0,
|
|
1869
|
-
y:
|
|
1928
|
+
y: v(0),
|
|
1870
1929
|
transition: {
|
|
1871
|
-
duration:
|
|
1930
|
+
duration: n.duration
|
|
1872
1931
|
}
|
|
1873
1932
|
} }),
|
|
1874
|
-
Mt ? /* @__PURE__ */ i.jsx(ee.text, { x:
|
|
1933
|
+
Mt ? /* @__PURE__ */ i.jsx(ee.text, { x: p.bandwidth() / 2, style: {
|
|
1875
1934
|
textAnchor: "middle",
|
|
1876
|
-
...
|
|
1877
|
-
}, className:
|
|
1935
|
+
...r?.graphObjectValues || {}
|
|
1936
|
+
}, className: $e("graph-value text-sm", l?.graphObjectValues), dy: "0.33em", variants: {
|
|
1878
1937
|
initial: {
|
|
1879
|
-
y:
|
|
1938
|
+
y: v(0),
|
|
1880
1939
|
opacity: 0,
|
|
1881
|
-
fill:
|
|
1940
|
+
fill: We(P[k])
|
|
1882
1941
|
},
|
|
1883
1942
|
whileInView: {
|
|
1884
|
-
y:
|
|
1885
|
-
opacity:
|
|
1886
|
-
fill:
|
|
1943
|
+
y: v(he(a.size.filter((Bt, qt) => qt <= k && Bt))) + Math.abs(v(he(a.size.filter((Bt, qt) => qt <= k && Bt))) - v(he(a.size.filter((Bt, qt) => qt < k && Bt)))) / 2,
|
|
1944
|
+
opacity: $t && Math.abs(v(he(a.size.filter((Bt, qt) => qt <= k && Bt))) - v(he(a.size.filter((Bt, qt) => qt < k && Bt)))) > 20 ? 1 : 0,
|
|
1945
|
+
fill: We(P[k]),
|
|
1887
1946
|
transition: {
|
|
1888
|
-
duration:
|
|
1947
|
+
duration: n.duration
|
|
1889
1948
|
}
|
|
1890
1949
|
}
|
|
1891
|
-
}, initial: "initial", animate:
|
|
1950
|
+
}, initial: "initial", animate: q ? "whileInView" : "initial", exit: {
|
|
1892
1951
|
opacity: 0,
|
|
1893
1952
|
transition: {
|
|
1894
|
-
duration:
|
|
1953
|
+
duration: n.duration
|
|
1895
1954
|
}
|
|
1896
|
-
}, children:
|
|
1897
|
-
] }, `${
|
|
1898
|
-
|
|
1955
|
+
}, children: be($t, d, c, at, Y) }) : null
|
|
1956
|
+
] }, `${a.label}-${u[k] || k}`)),
|
|
1957
|
+
y ? /* @__PURE__ */ i.jsx(Ke, { value: `${a.label}`.length < ht ? `${a.label}` : `${`${a.label}`.substring(0, ht)}...`, y: v(0) + 5, x: 0, width: p.bandwidth(), height: m.bottom, style: r?.xAxis?.labels, className: l?.xAxis?.labels, alignment: "top", animate: n, isInView: q }) : null,
|
|
1899
1958
|
Mt ? /* @__PURE__ */ i.jsx(ee.text, { style: {
|
|
1900
1959
|
textAnchor: "middle",
|
|
1901
|
-
...
|
|
1902
|
-
}, x:
|
|
1960
|
+
...r?.graphObjectValues || {}
|
|
1961
|
+
}, x: p.bandwidth() / 2, dy: -10, className: $e("graph-value graph-value-total", _ ? "text-sm" : "fill-primary-gray-700 dark:fill-primary-gray-300 text-sm", l?.graphObjectValues), variants: {
|
|
1903
1962
|
initial: {
|
|
1904
|
-
y:
|
|
1963
|
+
y: v(0),
|
|
1905
1964
|
opacity: 0,
|
|
1906
|
-
...
|
|
1907
|
-
fill:
|
|
1965
|
+
..._ && {
|
|
1966
|
+
fill: _
|
|
1908
1967
|
}
|
|
1909
1968
|
},
|
|
1910
1969
|
whileInView: {
|
|
1911
|
-
y:
|
|
1970
|
+
y: v(he(a.size.map(Ql))),
|
|
1912
1971
|
opacity: 1,
|
|
1913
|
-
...
|
|
1914
|
-
fill:
|
|
1972
|
+
..._ && {
|
|
1973
|
+
fill: _
|
|
1915
1974
|
},
|
|
1916
1975
|
transition: {
|
|
1917
|
-
duration:
|
|
1976
|
+
duration: n.duration
|
|
1918
1977
|
}
|
|
1919
1978
|
}
|
|
1920
1979
|
}, exit: {
|
|
1921
1980
|
opacity: 0,
|
|
1922
1981
|
transition: {
|
|
1923
|
-
duration:
|
|
1982
|
+
duration: n.duration
|
|
1924
1983
|
}
|
|
1925
|
-
}, initial: "initial", animate:
|
|
1926
|
-
] },
|
|
1984
|
+
}, initial: "initial", animate: q ? "whileInView" : "initial", children: be(he(a.size.filter(Kl)), d, c, at, Y) }) : null
|
|
1985
|
+
] }, a.label)), dt = kt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: kt.map((a, $t) => /* @__PURE__ */ i.jsx(Ue, { text: a.text, color: a.color, y: v(a.value), x1: 0 - V, x2: nt + m.right, classNames: a.classNames, styles: a.styles, animate: n, isInView: q }, $t)) }) : null, t[16] = n, t[17] = B, t[18] = P, t[19] = Ht, t[20] = K, t[21] = l?.graphObjectValues, t[22] = l?.xAxis?.axis, t[23] = l?.xAxis?.labels, t[24] = l?.yAxis?.gridLines, t[25] = l?.yAxis?.labels, t[26] = l?.yAxis?.title, t[27] = u, t[28] = f, t[29] = G, t[30] = ft, t[31] = Nt, t[32] = nt, t[33] = Tt, t[34] = q, t[35] = V, t[36] = m.bottom, t[37] = m.left, t[38] = m.right, t[39] = m.top, t[40] = T, t[41] = Gt, t[42] = rt, t[43] = O, t[44] = d, t[45] = lt, t[46] = w, t[47] = Jt, t[48] = c, t[49] = at, t[50] = kt, t[51] = Z, t[52] = Q, t[53] = y, t[54] = st, t[55] = Mt, t[56] = r?.graphObjectValues, t[57] = r?.xAxis?.axis, t[58] = r?.xAxis?.labels, t[59] = r?.yAxis?.gridLines, t[60] = r?.yAxis?.labels, t[61] = r?.yAxis?.title, t[62] = Y, t[63] = ht, t[64] = _, t[65] = Ot, t[66] = bt, t[67] = gt, t[68] = dt, t[69] = Wt, t[70] = jt, t[71] = Vt, t[72] = et, t[73] = S, t[74] = j, t[75] = zt, t[76] = yt, t[77] = ot, t[78] = ut, t[79] = mt;
|
|
1927
1986
|
} else
|
|
1928
|
-
|
|
1929
|
-
let
|
|
1930
|
-
t[99] !==
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
] }), t[99] =
|
|
1987
|
+
bt = t[66], gt = t[67], dt = t[68], Wt = t[69], jt = t[70], Vt = t[71], et = t[72], S = t[73], j = t[74], zt = t[75], yt = t[76], ot = t[77], ut = t[78], mt = t[79];
|
|
1988
|
+
let U;
|
|
1989
|
+
t[99] !== bt || t[100] !== dt || t[101] !== mt ? (U = /* @__PURE__ */ i.jsxs(bt, { children: [
|
|
1990
|
+
mt,
|
|
1991
|
+
dt
|
|
1992
|
+
] }), t[99] = bt, t[100] = dt, t[101] = mt, t[102] = U) : U = t[102];
|
|
1993
|
+
let vt;
|
|
1994
|
+
t[103] !== f ? (vt = f.filter(Jl).map(Ul), t[103] = f, t[104] = vt) : vt = t[104];
|
|
1934
1995
|
let wt;
|
|
1935
|
-
t[
|
|
1936
|
-
|
|
1937
|
-
t[105] !== Nt || t[106] !== Vt || t[107] !== zt || t[108] !== G || t[109] !== I || t[110] !== ut || t[111] !== wt ? (st = /* @__PURE__ */ i.jsxs("g", { transform: Nt, children: [
|
|
1996
|
+
t[105] !== Wt || t[106] !== jt || t[107] !== Vt || t[108] !== et || t[109] !== S || t[110] !== U || t[111] !== vt ? (wt = /* @__PURE__ */ i.jsxs("g", { transform: Wt, children: [
|
|
1997
|
+
jt,
|
|
1938
1998
|
Vt,
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1999
|
+
et,
|
|
2000
|
+
S,
|
|
2001
|
+
U,
|
|
2002
|
+
vt
|
|
2003
|
+
] }), t[105] = Wt, t[106] = jt, t[107] = Vt, t[108] = et, t[109] = S, t[110] = U, t[111] = vt, t[112] = wt) : wt = t[112];
|
|
2004
|
+
let J;
|
|
2005
|
+
t[113] !== gt || t[114] !== j || t[115] !== zt || t[116] !== yt || t[117] !== ot || t[118] !== ut || t[119] !== wt ? (J = /* @__PURE__ */ i.jsx(gt, { width: j, height: zt, viewBox: yt, direction: ot, ref: ut, children: wt }), t[113] = gt, t[114] = j, t[115] = zt, t[116] = yt, t[117] = ot, t[118] = ut, t[119] = wt, t[120] = J) : J = t[120];
|
|
1945
2006
|
let At;
|
|
1946
|
-
t[
|
|
1947
|
-
let
|
|
1948
|
-
t[
|
|
2007
|
+
t[121] !== l?.tooltip || t[122] !== L || t[123] !== Ct || t[124] !== o || t[125] !== r?.tooltip || t[126] !== it ? (At = o && it && L && Ct ? /* @__PURE__ */ i.jsx(Ie, { data: o, body: it, xPos: L, yPos: Ct, backgroundStyle: r?.tooltip, className: l?.tooltip }) : null, t[121] = l?.tooltip, t[122] = L, t[123] = Ct, t[124] = o, t[125] = r?.tooltip, t[126] = it, t[127] = At) : At = t[127];
|
|
2008
|
+
let g;
|
|
2009
|
+
t[128] !== l?.modal || t[129] !== ft || t[130] !== O ? (g = ft && O !== void 0 ? /* @__PURE__ */ i.jsx(Te, { body: ft, data: O, setData: z, className: l?.modal }) : null, t[128] = l?.modal, t[129] = ft, t[130] = O, t[131] = g) : g = t[131];
|
|
1949
2010
|
let b;
|
|
1950
|
-
t[
|
|
1951
|
-
|
|
1952
|
-
return t[132] !== At || t[133] !== $t || t[134] !== b ? ($ = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
2011
|
+
return t[132] !== J || t[133] !== At || t[134] !== g ? (b = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
2012
|
+
J,
|
|
1953
2013
|
At,
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
] }), t[132] = At, t[133] = $t, t[134] = b, t[135] = $) : $ = t[135], $;
|
|
2014
|
+
g
|
|
2015
|
+
] }), t[132] = J, t[133] = At, t[134] = g, t[135] = b) : b = t[135], b;
|
|
1957
2016
|
}
|
|
1958
|
-
function
|
|
2017
|
+
function Ul(e) {
|
|
1959
2018
|
return e.layer;
|
|
1960
2019
|
}
|
|
1961
|
-
function
|
|
2020
|
+
function Jl(e) {
|
|
1962
2021
|
return e.position === "after";
|
|
1963
2022
|
}
|
|
1964
|
-
function
|
|
2023
|
+
function Kl(e) {
|
|
1965
2024
|
return e;
|
|
1966
2025
|
}
|
|
1967
|
-
function
|
|
2026
|
+
function Ql(e) {
|
|
1968
2027
|
return e || 0;
|
|
1969
2028
|
}
|
|
1970
|
-
function
|
|
2029
|
+
function Zl(e) {
|
|
1971
2030
|
return e.layer;
|
|
1972
2031
|
}
|
|
1973
|
-
function
|
|
2032
|
+
function _l(e) {
|
|
1974
2033
|
return e.position === "before";
|
|
1975
2034
|
}
|
|
1976
|
-
function
|
|
2035
|
+
function ts(e) {
|
|
1977
2036
|
return e !== 0;
|
|
1978
2037
|
}
|
|
1979
|
-
function
|
|
2038
|
+
function es(e) {
|
|
1980
2039
|
return e !== 0;
|
|
1981
2040
|
}
|
|
1982
|
-
function
|
|
2041
|
+
function is(e) {
|
|
1983
2042
|
return `${e.id}`;
|
|
1984
2043
|
}
|
|
1985
|
-
function
|
|
1986
|
-
const t =
|
|
1987
|
-
data:
|
|
1988
|
-
graphTitle:
|
|
1989
|
-
colors:
|
|
1990
|
-
sources:
|
|
1991
|
-
graphDescription:
|
|
2044
|
+
function ls(e) {
|
|
2045
|
+
const t = we.c(126), {
|
|
2046
|
+
data: s,
|
|
2047
|
+
graphTitle: X,
|
|
2048
|
+
colors: Ut,
|
|
2049
|
+
sources: Kt,
|
|
2050
|
+
graphDescription: Lt,
|
|
1992
2051
|
barPadding: Ot,
|
|
1993
2052
|
showTicks: Tt,
|
|
1994
|
-
truncateBy:
|
|
1995
|
-
height:
|
|
1996
|
-
width:
|
|
1997
|
-
footNote:
|
|
1998
|
-
colorDomain:
|
|
1999
|
-
colorLegendTitle:
|
|
2000
|
-
padding:
|
|
2001
|
-
backgroundColor:
|
|
2053
|
+
truncateBy: P,
|
|
2054
|
+
height: K,
|
|
2055
|
+
width: y,
|
|
2056
|
+
footNote: st,
|
|
2057
|
+
colorDomain: ht,
|
|
2058
|
+
colorLegendTitle: it,
|
|
2059
|
+
padding: Jt,
|
|
2060
|
+
backgroundColor: Y,
|
|
2002
2061
|
topMargin: at,
|
|
2003
2062
|
bottomMargin: Mt,
|
|
2004
2063
|
leftMargin: kt,
|
|
2005
|
-
rightMargin:
|
|
2006
|
-
tooltip:
|
|
2007
|
-
onSeriesMouseOver:
|
|
2008
|
-
suffix:
|
|
2009
|
-
prefix:
|
|
2010
|
-
showLabels:
|
|
2011
|
-
relativeHeight:
|
|
2012
|
-
showValues:
|
|
2013
|
-
refValues:
|
|
2014
|
-
graphID:
|
|
2015
|
-
maxValue:
|
|
2016
|
-
onSeriesMouseClick:
|
|
2017
|
-
graphDownload:
|
|
2018
|
-
dataDownload:
|
|
2019
|
-
language:
|
|
2020
|
-
labelOrder:
|
|
2021
|
-
minHeight:
|
|
2022
|
-
theme:
|
|
2023
|
-
maxBarThickness:
|
|
2024
|
-
sortParameter:
|
|
2025
|
-
maxNumberOfBars:
|
|
2026
|
-
minBarThickness:
|
|
2027
|
-
showColorScale:
|
|
2028
|
-
ariaLabel:
|
|
2029
|
-
resetSelectionOnDoubleClick:
|
|
2030
|
-
detailsOnClick:
|
|
2031
|
-
barAxisTitle:
|
|
2032
|
-
noOfTicks:
|
|
2033
|
-
valueColor:
|
|
2034
|
-
styles:
|
|
2035
|
-
classNames:
|
|
2036
|
-
filterNA:
|
|
2037
|
-
animate:
|
|
2038
|
-
precision:
|
|
2039
|
-
customLayers:
|
|
2040
|
-
timeline:
|
|
2041
|
-
naLabel:
|
|
2042
|
-
sortData:
|
|
2043
|
-
orientation:
|
|
2044
|
-
} = e,
|
|
2045
|
-
let
|
|
2046
|
-
t[0] !==
|
|
2047
|
-
const
|
|
2048
|
-
let
|
|
2049
|
-
t[2] !==
|
|
2064
|
+
rightMargin: Gt,
|
|
2065
|
+
tooltip: w,
|
|
2066
|
+
onSeriesMouseOver: Q,
|
|
2067
|
+
suffix: E,
|
|
2068
|
+
prefix: T,
|
|
2069
|
+
showLabels: rt,
|
|
2070
|
+
relativeHeight: Z,
|
|
2071
|
+
showValues: ft,
|
|
2072
|
+
refValues: B,
|
|
2073
|
+
graphID: _,
|
|
2074
|
+
maxValue: lt,
|
|
2075
|
+
onSeriesMouseClick: r,
|
|
2076
|
+
graphDownload: l,
|
|
2077
|
+
dataDownload: n,
|
|
2078
|
+
language: u,
|
|
2079
|
+
labelOrder: c,
|
|
2080
|
+
minHeight: f,
|
|
2081
|
+
theme: d,
|
|
2082
|
+
maxBarThickness: V,
|
|
2083
|
+
sortParameter: ct,
|
|
2084
|
+
maxNumberOfBars: tt,
|
|
2085
|
+
minBarThickness: Ft,
|
|
2086
|
+
showColorScale: Pt,
|
|
2087
|
+
ariaLabel: Et,
|
|
2088
|
+
resetSelectionOnDoubleClick: q,
|
|
2089
|
+
detailsOnClick: pt,
|
|
2090
|
+
barAxisTitle: Rt,
|
|
2091
|
+
noOfTicks: m,
|
|
2092
|
+
valueColor: o,
|
|
2093
|
+
styles: I,
|
|
2094
|
+
classNames: O,
|
|
2095
|
+
filterNA: z,
|
|
2096
|
+
animate: L,
|
|
2097
|
+
precision: N,
|
|
2098
|
+
customLayers: Ct,
|
|
2099
|
+
timeline: It,
|
|
2100
|
+
naLabel: nt,
|
|
2101
|
+
sortData: Nt,
|
|
2102
|
+
orientation: H
|
|
2103
|
+
} = e, G = Ut === void 0 ? ge.light.categoricalColors.colors : Ut, $ = Ot === void 0 ? 0.25 : Ot, Ht = Tt === void 0 ? !0 : Tt, bt = P === void 0 ? 999 : P, gt = Y === void 0 ? !1 : Y, dt = E === void 0 ? "" : E, Wt = T === void 0 ? "" : T, jt = rt === void 0 ? !0 : rt, Vt = ft === void 0 ? !0 : ft, et = l === void 0 ? !1 : l, S = n === void 0 ? !1 : n, j = u === void 0 ? "en" : u, zt = f === void 0 ? 0 : f, yt = d === void 0 ? "light" : d, ot = Pt === void 0 ? !0 : Pt, ut = q === void 0 ? !0 : q, mt = m === void 0 ? 5 : m, U = z === void 0 ? !0 : z, vt = L === void 0 ? !1 : L, wt = N === void 0 ? 2 : N;
|
|
2104
|
+
let J;
|
|
2105
|
+
t[0] !== Ct ? (J = Ct === void 0 ? [] : Ct, t[0] = Ct, t[1] = J) : J = t[1];
|
|
2106
|
+
const At = J;
|
|
2107
|
+
let g;
|
|
2108
|
+
t[2] !== It ? (g = It === void 0 ? {
|
|
2050
2109
|
enabled: !1,
|
|
2051
2110
|
autoplay: !1,
|
|
2052
2111
|
showOnlyActiveDate: !0
|
|
2053
|
-
} :
|
|
2054
|
-
const
|
|
2055
|
-
let
|
|
2056
|
-
if (t[4] !==
|
|
2057
|
-
let
|
|
2058
|
-
t[7] !==
|
|
2112
|
+
} : It, t[2] = It, t[3] = g) : g = t[3];
|
|
2113
|
+
const b = g, v = nt === void 0 ? "NA" : nt, xt = (H === void 0 ? "vertical" : H) === "horizontal" ? Bl : ql, [Xt, A] = te(0), [h, x] = te(0), [Yt, Zt] = te(b.autoplay);
|
|
2114
|
+
let F;
|
|
2115
|
+
if (t[4] !== s || t[5] !== b.dateFormat) {
|
|
2116
|
+
let Dt;
|
|
2117
|
+
t[7] !== b.dateFormat ? (Dt = (se) => Ee(`${se.date}`, b.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[7] = b.dateFormat, t[8] = Dt) : Dt = t[8], F = [...new Set(s.filter(gs).map(Dt))], F.sort(ps), t[4] = s, t[5] = b.dateFormat, t[6] = F;
|
|
2059
2118
|
} else
|
|
2060
|
-
|
|
2061
|
-
const
|
|
2062
|
-
let
|
|
2063
|
-
t[9] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
2064
|
-
const
|
|
2065
|
-
|
|
2119
|
+
F = t[6];
|
|
2120
|
+
const M = F, [_t, W] = te(b.autoplay ? 0 : M.length - 1), [R, D] = te(void 0), St = ve(null), a = ve(null);
|
|
2121
|
+
let $t, k;
|
|
2122
|
+
t[9] === Symbol.for("react.memo_cache_sentinel") ? ($t = () => {
|
|
2123
|
+
const Dt = new ResizeObserver((se) => {
|
|
2124
|
+
A(se[0].target.clientWidth || 620), x(se[0].target.clientHeight || 480);
|
|
2066
2125
|
});
|
|
2067
|
-
return
|
|
2068
|
-
},
|
|
2069
|
-
let Bt,
|
|
2070
|
-
t[11] !==
|
|
2071
|
-
const
|
|
2072
|
-
|
|
2073
|
-
}, (
|
|
2074
|
-
return
|
|
2075
|
-
},
|
|
2076
|
-
const
|
|
2126
|
+
return St.current && Dt.observe(St.current), () => Dt.disconnect();
|
|
2127
|
+
}, k = [], t[9] = $t, t[10] = k) : ($t = t[9], k = t[10]), De($t, k);
|
|
2128
|
+
let Bt, qt;
|
|
2129
|
+
t[11] !== Yt || t[12] !== b.speed || t[13] !== M ? (Bt = () => {
|
|
2130
|
+
const Dt = setInterval(() => {
|
|
2131
|
+
W((se) => se < M.length - 1 ? se + 1 : 0);
|
|
2132
|
+
}, (b.speed || 2) * 1e3);
|
|
2133
|
+
return Yt || clearInterval(Dt), () => clearInterval(Dt);
|
|
2134
|
+
}, qt = [M, Yt, b.speed], t[11] = Yt, t[12] = b.speed, t[13] = M, t[14] = Bt, t[15] = qt) : (Bt = t[14], qt = t[15]), De(Bt, qt);
|
|
2135
|
+
const C = b.dateFormat || "yyyy";
|
|
2136
|
+
let fe;
|
|
2137
|
+
t[16] !== _t || t[17] !== C || t[18] !== b.showOnlyActiveDate || t[19] !== M ? (fe = Xe(M, _t, b.showOnlyActiveDate, C), t[16] = _t, t[17] = C, t[18] = b.showOnlyActiveDate, t[19] = M, t[20] = fe) : fe = t[20];
|
|
2138
|
+
const de = fe, ye = O?.graphContainer, pe = I?.graphContainer;
|
|
2077
2139
|
let ae;
|
|
2078
|
-
t[
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
t[21] !== y?.description || t[22] !== y?.title || t[23] !== a || t[24] !== I || t[25] !== It || t[26] !== G || t[27] !== P || t[28] !== F?.description || t[29] !== F?.title || t[30] !== A ? (oe = P || It || G || I ? /* @__PURE__ */ i.jsx(qe, { styles: {
|
|
2082
|
-
title: F?.title,
|
|
2083
|
-
description: F?.description
|
|
2140
|
+
t[21] !== O?.description || t[22] !== O?.title || t[23] !== s || t[24] !== S || t[25] !== Lt || t[26] !== et || t[27] !== X || t[28] !== I?.description || t[29] !== I?.title || t[30] !== y ? (ae = X || Lt || et || S ? /* @__PURE__ */ i.jsx(Qe, { styles: {
|
|
2141
|
+
title: I?.title,
|
|
2142
|
+
description: I?.description
|
|
2084
2143
|
}, classNames: {
|
|
2085
|
-
title:
|
|
2086
|
-
description:
|
|
2087
|
-
}, graphTitle:
|
|
2088
|
-
let
|
|
2089
|
-
t[32] !==
|
|
2144
|
+
title: O?.title,
|
|
2145
|
+
description: O?.description
|
|
2146
|
+
}, graphTitle: X, graphDescription: Lt, width: y, graphDownload: et ? a : void 0, dataDownload: S ? s.map(fs).filter(hs).length > 0 ? s.map(xs).filter(ms) : s.filter(us) : null }) : null, t[21] = O?.description, t[22] = O?.title, t[23] = s, t[24] = S, t[25] = Lt, t[26] = et, t[27] = X, t[28] = I?.description, t[29] = I?.title, t[30] = y, t[31] = ae) : ae = t[31];
|
|
2147
|
+
let ne;
|
|
2148
|
+
t[32] !== _t || t[33] !== de || t[34] !== Yt || t[35] !== b.enabled || t[36] !== M ? (ne = b.enabled && M.length > 0 && de ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
|
|
2090
2149
|
/* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
|
|
2091
|
-
|
|
2092
|
-
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label":
|
|
2093
|
-
/* @__PURE__ */ i.jsx(
|
|
2094
|
-
|
|
2095
|
-
}, onChange: (
|
|
2096
|
-
|
|
2150
|
+
Zt(!Yt);
|
|
2151
|
+
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": Yt ? "Click to pause animation" : "Click to play animation", children: Yt ? /* @__PURE__ */ i.jsx(ei, {}) : /* @__PURE__ */ i.jsx(ii, {}) }),
|
|
2152
|
+
/* @__PURE__ */ i.jsx(Ye, { min: M[0], max: M[M.length - 1], marks: de, step: null, defaultValue: M[M.length - 1], value: M[_t], onChangeComplete: (Dt) => {
|
|
2153
|
+
W(M.indexOf(Dt));
|
|
2154
|
+
}, onChange: (Dt) => {
|
|
2155
|
+
W(M.indexOf(Dt));
|
|
2097
2156
|
}, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
|
|
2098
|
-
] }) : null, t[32] =
|
|
2099
|
-
let
|
|
2100
|
-
t[38] !==
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2157
|
+
] }) : null, t[32] = _t, t[33] = de, t[34] = Yt, t[35] = b.enabled, t[36] = M, t[37] = ne) : ne = t[37];
|
|
2158
|
+
let ue;
|
|
2159
|
+
t[38] !== O?.colorLegend || t[39] !== ht || t[40] !== it || t[41] !== G || t[42] !== s.length || t[43] !== ot || t[44] !== y ? (ue = ot && s.length > 0 ? /* @__PURE__ */ i.jsx(_e, { width: y, colorDomain: ht, colors: G, colorLegendTitle: it, setSelectedColor: D, showNAColor: !1, className: O?.colorLegend }) : null, t[38] = O?.colorLegend, t[39] = ht, t[40] = it, t[41] = G, t[42] = s.length, t[43] = ot, t[44] = y, t[45] = ue) : ue = t[45];
|
|
2160
|
+
let oe;
|
|
2161
|
+
t[46] !== s.length ? (oe = s.length === 0 && /* @__PURE__ */ i.jsx(ti, {}), t[46] = s.length, t[47] = oe) : oe = t[47];
|
|
2162
|
+
let re;
|
|
2163
|
+
t[48] !== xt || t[49] !== vt || t[50] !== Rt || t[51] !== $ || t[52] !== Mt || t[53] !== O || t[54] !== ht || t[55] !== G || t[56] !== At || t[57] !== s || t[58] !== pt || t[59] !== U || t[60] !== _t || t[61] !== c || t[62] !== j || t[63] !== kt || t[64] !== V || t[65] !== tt || t[66] !== lt || t[67] !== Ft || t[68] !== v || t[69] !== mt || t[70] !== r || t[71] !== Q || t[72] !== wt || t[73] !== Wt || t[74] !== B || t[75] !== ut || t[76] !== Gt || t[77] !== R || t[78] !== jt || t[79] !== Ht || t[80] !== Vt || t[81] !== Nt || t[82] !== ct || t[83] !== I || t[84] !== dt || t[85] !== h || t[86] !== Xt || t[87] !== b.dateFormat || t[88] !== b.enabled || t[89] !== w || t[90] !== at || t[91] !== bt || t[92] !== M || t[93] !== o ? (re = Xt && h && s.length > 0 ? /* @__PURE__ */ i.jsx(xt, { data: ct !== void 0 ? ct === "total" ? Pe(ze(s, b.dateFormat || "yyyy").filter((Dt) => b.enabled ? Dt.date === Me(new Date(M[_t]), b.dateFormat || "yyyy") : Dt).filter((Dt) => U ? !Dt.size.every(ds) : Dt), rs, [Nt || "asc"]).filter((Dt, se) => tt ? se < tt : !0) : Pe(ze(s, b.dateFormat || "yyyy").filter((Dt) => b.enabled ? Dt.date === Me(new Date(M[_t]), b.dateFormat || "yyyy") : Dt).filter((Dt) => U ? !Dt.size.every(os) : Dt), (Dt) => le(Dt.size[ct]) ? -1 / 0 : Dt.size[ct], [Nt || "asc"]).filter((Dt, se) => tt ? se < tt : !0) : ze(s, b.dateFormat || "yyyy").filter((Dt) => b.enabled ? Dt.date === Me(new Date(M[_t]), b.dateFormat || "yyyy") : Dt).filter((Dt) => U ? !Dt.size.every(ns) : Dt).filter((Dt, se) => tt ? se < tt : !0), barColors: G, width: Xt, height: h, barPadding: $, showTicks: Ht, leftMargin: kt, rightMargin: Gt, topMargin: at, bottomMargin: Mt, truncateBy: bt, showLabels: jt, tooltip: w, onSeriesMouseOver: Q, showValues: Vt, suffix: dt, prefix: Wt, refValues: B, maxValue: le(lt) ? Math.max(...s.map(ss)) : lt, onSeriesMouseClick: r, selectedColor: R, rtl: j === "he" || j === "ar", labelOrder: c, maxBarThickness: V, minBarThickness: Ft, resetSelectionOnDoubleClick: ut, detailsOnClick: pt, barAxisTitle: Rt, noOfTicks: mt, valueColor: o, classNames: O, styles: I, animate: vt === !0 ? {
|
|
2164
|
+
duration: 0.5,
|
|
2165
|
+
once: !0,
|
|
2166
|
+
amount: 0.5
|
|
2167
|
+
} : vt || {
|
|
2168
|
+
duration: 0,
|
|
2169
|
+
once: !0,
|
|
2170
|
+
amount: 0
|
|
2171
|
+
}, colorDomain: ht, precision: wt, customLayers: At, naLabel: v }) : null, t[48] = xt, t[49] = vt, t[50] = Rt, t[51] = $, t[52] = Mt, t[53] = O, t[54] = ht, t[55] = G, t[56] = At, t[57] = s, t[58] = pt, t[59] = U, t[60] = _t, t[61] = c, t[62] = j, t[63] = kt, t[64] = V, t[65] = tt, t[66] = lt, t[67] = Ft, t[68] = v, t[69] = mt, t[70] = r, t[71] = Q, t[72] = wt, t[73] = Wt, t[74] = B, t[75] = ut, t[76] = Gt, t[77] = R, t[78] = jt, t[79] = Ht, t[80] = Vt, t[81] = Nt, t[82] = ct, t[83] = I, t[84] = dt, t[85] = h, t[86] = Xt, t[87] = b.dateFormat, t[88] = b.enabled, t[89] = w, t[90] = at, t[91] = bt, t[92] = M, t[93] = o, t[94] = re) : re = t[94];
|
|
2172
|
+
let me;
|
|
2173
|
+
t[95] !== oe || t[96] !== re ? (me = /* @__PURE__ */ i.jsxs(li, { ref: St, children: [
|
|
2174
|
+
oe,
|
|
2175
|
+
re
|
|
2176
|
+
] }), t[95] = oe, t[96] = re, t[97] = me) : me = t[97];
|
|
2177
|
+
let xe;
|
|
2178
|
+
t[98] !== ue || t[99] !== me ? (xe = /* @__PURE__ */ i.jsxs("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: [
|
|
2179
|
+
ue,
|
|
2180
|
+
me
|
|
2181
|
+
] }), t[98] = ue, t[99] = me, t[100] = xe) : xe = t[100];
|
|
2182
|
+
let ce;
|
|
2183
|
+
t[101] !== O?.footnote || t[102] !== O?.source || t[103] !== st || t[104] !== Kt || t[105] !== I?.footnote || t[106] !== I?.source || t[107] !== y ? (ce = Kt || st ? /* @__PURE__ */ i.jsx(Ze, { styles: {
|
|
2184
|
+
footnote: I?.footnote,
|
|
2185
|
+
source: I?.source
|
|
2116
2186
|
}, classNames: {
|
|
2117
|
-
footnote:
|
|
2118
|
-
source:
|
|
2119
|
-
}, sources:
|
|
2187
|
+
footnote: O?.footnote,
|
|
2188
|
+
source: O?.source
|
|
2189
|
+
}, sources: Kt, footNote: st, width: y }) : null, t[101] = O?.footnote, t[102] = O?.source, t[103] = st, t[104] = Kt, t[105] = I?.footnote, t[106] = I?.source, t[107] = y, t[108] = ce) : ce = t[108];
|
|
2120
2190
|
let Qt;
|
|
2121
|
-
return t[
|
|
2122
|
-
|
|
2123
|
-
re,
|
|
2191
|
+
return t[109] !== Et || t[110] !== gt || t[111] !== _ || t[112] !== K || t[113] !== j || t[114] !== zt || t[115] !== Jt || t[116] !== Z || t[117] !== ye || t[118] !== pe || t[119] !== ae || t[120] !== ne || t[121] !== xe || t[122] !== ce || t[123] !== yt || t[124] !== y ? (Qt = /* @__PURE__ */ i.jsxs(si, { className: ye, style: pe, id: _, ref: a, "aria-label": Et, backgroundColor: gt, theme: yt, language: j, minHeight: zt, width: y, height: K, relativeHeight: Z, padding: Jt, children: [
|
|
2192
|
+
ae,
|
|
2124
2193
|
ne,
|
|
2125
|
-
|
|
2126
|
-
|
|
2194
|
+
xe,
|
|
2195
|
+
ce
|
|
2196
|
+
] }), t[109] = Et, t[110] = gt, t[111] = _, t[112] = K, t[113] = j, t[114] = zt, t[115] = Jt, t[116] = Z, t[117] = ye, t[118] = pe, t[119] = ae, t[120] = ne, t[121] = xe, t[122] = ce, t[123] = yt, t[124] = y, t[125] = Qt) : Qt = t[125], Qt;
|
|
2127
2197
|
}
|
|
2128
|
-
function
|
|
2129
|
-
return
|
|
2198
|
+
function ss(e) {
|
|
2199
|
+
return he(e.size.filter(as)) || 0;
|
|
2130
2200
|
}
|
|
2131
|
-
function
|
|
2132
|
-
return !
|
|
2201
|
+
function as(e) {
|
|
2202
|
+
return !le(e);
|
|
2133
2203
|
}
|
|
2134
|
-
function
|
|
2204
|
+
function ns(e) {
|
|
2135
2205
|
return e == null;
|
|
2136
2206
|
}
|
|
2137
|
-
function
|
|
2207
|
+
function os(e) {
|
|
2138
2208
|
return e == null;
|
|
2139
2209
|
}
|
|
2140
|
-
function
|
|
2141
|
-
return
|
|
2210
|
+
function rs(e) {
|
|
2211
|
+
return he(e.size.filter(cs));
|
|
2142
2212
|
}
|
|
2143
|
-
function
|
|
2144
|
-
return !
|
|
2213
|
+
function cs(e) {
|
|
2214
|
+
return !le(e);
|
|
2145
2215
|
}
|
|
2146
|
-
function
|
|
2216
|
+
function ds(e) {
|
|
2147
2217
|
return e == null;
|
|
2148
2218
|
}
|
|
2149
|
-
function
|
|
2219
|
+
function us(e) {
|
|
2150
2220
|
return e !== void 0;
|
|
2151
2221
|
}
|
|
2152
|
-
function
|
|
2222
|
+
function ms(e) {
|
|
2153
2223
|
return e !== void 0;
|
|
2154
2224
|
}
|
|
2155
|
-
function
|
|
2225
|
+
function xs(e) {
|
|
2156
2226
|
return e.data;
|
|
2157
2227
|
}
|
|
2158
|
-
function
|
|
2228
|
+
function hs(e) {
|
|
2159
2229
|
return e !== void 0;
|
|
2160
2230
|
}
|
|
2161
|
-
function
|
|
2231
|
+
function fs(e) {
|
|
2162
2232
|
return e.data;
|
|
2163
2233
|
}
|
|
2164
|
-
function
|
|
2234
|
+
function ps(e, t) {
|
|
2165
2235
|
return e - t;
|
|
2166
2236
|
}
|
|
2167
|
-
function
|
|
2237
|
+
function gs(e) {
|
|
2168
2238
|
return e.date;
|
|
2169
2239
|
}
|
|
2170
|
-
function
|
|
2171
|
-
const t =
|
|
2172
|
-
data:
|
|
2173
|
-
graphTitle:
|
|
2174
|
-
colors:
|
|
2175
|
-
barPadding:
|
|
2176
|
-
showTicks:
|
|
2240
|
+
function Qs(e) {
|
|
2241
|
+
const t = we.c(62), {
|
|
2242
|
+
data: s,
|
|
2243
|
+
graphTitle: X,
|
|
2244
|
+
colors: Ut,
|
|
2245
|
+
barPadding: Kt,
|
|
2246
|
+
showTicks: Lt,
|
|
2177
2247
|
leftMargin: Ot,
|
|
2178
2248
|
rightMargin: Tt,
|
|
2179
|
-
topMargin:
|
|
2180
|
-
bottomMargin:
|
|
2181
|
-
truncateBy:
|
|
2182
|
-
showLabels:
|
|
2183
|
-
showValues:
|
|
2184
|
-
backgroundColor:
|
|
2185
|
-
suffix:
|
|
2186
|
-
prefix:
|
|
2249
|
+
topMargin: P,
|
|
2250
|
+
bottomMargin: K,
|
|
2251
|
+
truncateBy: y,
|
|
2252
|
+
showLabels: st,
|
|
2253
|
+
showValues: ht,
|
|
2254
|
+
backgroundColor: it,
|
|
2255
|
+
suffix: Jt,
|
|
2256
|
+
prefix: Y,
|
|
2187
2257
|
sources: at,
|
|
2188
2258
|
graphDescription: Mt,
|
|
2189
2259
|
height: kt,
|
|
2190
|
-
width:
|
|
2191
|
-
footNote:
|
|
2192
|
-
colorDomain:
|
|
2193
|
-
colorLegendTitle:
|
|
2194
|
-
padding:
|
|
2195
|
-
relativeHeight:
|
|
2196
|
-
tooltip:
|
|
2197
|
-
onSeriesMouseOver:
|
|
2198
|
-
refValues:
|
|
2199
|
-
showColorScale:
|
|
2200
|
-
graphID:
|
|
2201
|
-
maxValue:
|
|
2202
|
-
minValue:
|
|
2203
|
-
highlightedDataPoints:
|
|
2204
|
-
onSeriesMouseClick:
|
|
2205
|
-
graphDownload:
|
|
2206
|
-
dataDownload:
|
|
2207
|
-
language:
|
|
2208
|
-
theme:
|
|
2209
|
-
sortData:
|
|
2210
|
-
labelOrder:
|
|
2211
|
-
showNAColor:
|
|
2212
|
-
minHeight:
|
|
2213
|
-
maxBarThickness:
|
|
2214
|
-
maxNumberOfBars:
|
|
2215
|
-
minBarThickness:
|
|
2216
|
-
ariaLabel:
|
|
2217
|
-
resetSelectionOnDoubleClick:
|
|
2218
|
-
detailsOnClick:
|
|
2219
|
-
barAxisTitle:
|
|
2220
|
-
noOfTicks:
|
|
2221
|
-
valueColor:
|
|
2222
|
-
orientation:
|
|
2223
|
-
styles:
|
|
2224
|
-
classNames:
|
|
2225
|
-
filterNA:
|
|
2226
|
-
animate:
|
|
2227
|
-
dimmedOpacity:
|
|
2228
|
-
precision:
|
|
2229
|
-
customLayers:
|
|
2230
|
-
timeline:
|
|
2231
|
-
naLabel:
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2260
|
+
width: Gt,
|
|
2261
|
+
footNote: w,
|
|
2262
|
+
colorDomain: Q,
|
|
2263
|
+
colorLegendTitle: E,
|
|
2264
|
+
padding: T,
|
|
2265
|
+
relativeHeight: rt,
|
|
2266
|
+
tooltip: Z,
|
|
2267
|
+
onSeriesMouseOver: ft,
|
|
2268
|
+
refValues: B,
|
|
2269
|
+
showColorScale: _,
|
|
2270
|
+
graphID: lt,
|
|
2271
|
+
maxValue: r,
|
|
2272
|
+
minValue: l,
|
|
2273
|
+
highlightedDataPoints: n,
|
|
2274
|
+
onSeriesMouseClick: u,
|
|
2275
|
+
graphDownload: c,
|
|
2276
|
+
dataDownload: f,
|
|
2277
|
+
language: d,
|
|
2278
|
+
theme: V,
|
|
2279
|
+
sortData: ct,
|
|
2280
|
+
labelOrder: tt,
|
|
2281
|
+
showNAColor: Ft,
|
|
2282
|
+
minHeight: Pt,
|
|
2283
|
+
maxBarThickness: Et,
|
|
2284
|
+
maxNumberOfBars: q,
|
|
2285
|
+
minBarThickness: pt,
|
|
2286
|
+
ariaLabel: Rt,
|
|
2287
|
+
resetSelectionOnDoubleClick: m,
|
|
2288
|
+
detailsOnClick: o,
|
|
2289
|
+
barAxisTitle: I,
|
|
2290
|
+
noOfTicks: O,
|
|
2291
|
+
valueColor: z,
|
|
2292
|
+
orientation: L,
|
|
2293
|
+
styles: N,
|
|
2294
|
+
classNames: Ct,
|
|
2295
|
+
filterNA: It,
|
|
2296
|
+
animate: nt,
|
|
2297
|
+
dimmedOpacity: Nt,
|
|
2298
|
+
precision: H,
|
|
2299
|
+
customLayers: G,
|
|
2300
|
+
timeline: $,
|
|
2301
|
+
naLabel: Ht,
|
|
2302
|
+
trackColor: bt
|
|
2303
|
+
} = e, gt = L === void 0 ? "vertical" : L;
|
|
2304
|
+
let dt;
|
|
2305
|
+
return t[0] !== nt || t[1] !== Rt || t[2] !== it || t[3] !== I || t[4] !== Kt || t[5] !== K || t[6] !== Ct || t[7] !== Q || t[8] !== E || t[9] !== Ut || t[10] !== G || t[11] !== s || t[12] !== f || t[13] !== o || t[14] !== Nt || t[15] !== It || t[16] !== w || t[17] !== Mt || t[18] !== c || t[19] !== lt || t[20] !== X || t[21] !== kt || t[22] !== n || t[23] !== tt || t[24] !== d || t[25] !== Ot || t[26] !== Et || t[27] !== q || t[28] !== r || t[29] !== pt || t[30] !== Pt || t[31] !== l || t[32] !== Ht || t[33] !== O || t[34] !== u || t[35] !== ft || t[36] !== gt || t[37] !== T || t[38] !== H || t[39] !== Y || t[40] !== B || t[41] !== rt || t[42] !== m || t[43] !== Tt || t[44] !== _ || t[45] !== st || t[46] !== Ft || t[47] !== Lt || t[48] !== ht || t[49] !== ct || t[50] !== at || t[51] !== N || t[52] !== Jt || t[53] !== V || t[54] !== $ || t[55] !== Z || t[56] !== P || t[57] !== bt || t[58] !== y || t[59] !== z || t[60] !== Gt ? (dt = /* @__PURE__ */ i.jsx(yl, { data: s, graphTitle: X, colors: Ut, barPadding: Kt, showTicks: Lt, leftMargin: Ot, rightMargin: Tt, topMargin: P, bottomMargin: K, truncateBy: y, showLabels: st, showValues: ht, backgroundColor: it, suffix: Jt, prefix: Y, sources: at, graphDescription: Mt, height: kt, width: Gt, footNote: w, colorDomain: Q, colorLegendTitle: E, padding: T, relativeHeight: rt, tooltip: Z, onSeriesMouseOver: ft, refValues: B, showColorScale: _, graphID: lt, maxValue: r, minValue: l, highlightedDataPoints: n, onSeriesMouseClick: u, graphDownload: c, dataDownload: f, language: d, theme: V, sortData: ct, labelOrder: tt, showNAColor: Ft, minHeight: Pt, maxBarThickness: Et, maxNumberOfBars: q, minBarThickness: pt, ariaLabel: Rt, resetSelectionOnDoubleClick: m, styles: N, detailsOnClick: o, barAxisTitle: I, noOfTicks: O, valueColor: z, classNames: Ct, filterNA: It, animate: nt, dimmedOpacity: Nt, precision: H, customLayers: G, timeline: $, naLabel: Ht, orientation: gt, trackColor: bt }), t[0] = nt, t[1] = Rt, t[2] = it, t[3] = I, t[4] = Kt, t[5] = K, t[6] = Ct, t[7] = Q, t[8] = E, t[9] = Ut, t[10] = G, t[11] = s, t[12] = f, t[13] = o, t[14] = Nt, t[15] = It, t[16] = w, t[17] = Mt, t[18] = c, t[19] = lt, t[20] = X, t[21] = kt, t[22] = n, t[23] = tt, t[24] = d, t[25] = Ot, t[26] = Et, t[27] = q, t[28] = r, t[29] = pt, t[30] = Pt, t[31] = l, t[32] = Ht, t[33] = O, t[34] = u, t[35] = ft, t[36] = gt, t[37] = T, t[38] = H, t[39] = Y, t[40] = B, t[41] = rt, t[42] = m, t[43] = Tt, t[44] = _, t[45] = st, t[46] = Ft, t[47] = Lt, t[48] = ht, t[49] = ct, t[50] = at, t[51] = N, t[52] = Jt, t[53] = V, t[54] = $, t[55] = Z, t[56] = P, t[57] = bt, t[58] = y, t[59] = z, t[60] = Gt, t[61] = dt) : dt = t[61], dt;
|
|
2235
2306
|
}
|
|
2236
|
-
function
|
|
2237
|
-
const t =
|
|
2238
|
-
data:
|
|
2239
|
-
graphTitle:
|
|
2240
|
-
colors:
|
|
2241
|
-
sources:
|
|
2242
|
-
graphDescription:
|
|
2307
|
+
function Zs(e) {
|
|
2308
|
+
const t = we.c(57), {
|
|
2309
|
+
data: s,
|
|
2310
|
+
graphTitle: X,
|
|
2311
|
+
colors: Ut,
|
|
2312
|
+
sources: Kt,
|
|
2313
|
+
graphDescription: Lt,
|
|
2243
2314
|
barPadding: Ot,
|
|
2244
2315
|
showTicks: Tt,
|
|
2245
|
-
truncateBy:
|
|
2246
|
-
height:
|
|
2247
|
-
width:
|
|
2248
|
-
footNote:
|
|
2249
|
-
colorDomain:
|
|
2250
|
-
colorLegendTitle:
|
|
2251
|
-
suffix:
|
|
2252
|
-
prefix:
|
|
2316
|
+
truncateBy: P,
|
|
2317
|
+
height: K,
|
|
2318
|
+
width: y,
|
|
2319
|
+
footNote: st,
|
|
2320
|
+
colorDomain: ht,
|
|
2321
|
+
colorLegendTitle: it,
|
|
2322
|
+
suffix: Jt,
|
|
2323
|
+
prefix: Y,
|
|
2253
2324
|
showValues: at,
|
|
2254
2325
|
padding: Mt,
|
|
2255
2326
|
backgroundColor: kt,
|
|
2256
|
-
leftMargin:
|
|
2257
|
-
rightMargin:
|
|
2258
|
-
topMargin:
|
|
2259
|
-
bottomMargin:
|
|
2260
|
-
showLabels:
|
|
2261
|
-
relativeHeight:
|
|
2262
|
-
tooltip:
|
|
2263
|
-
onSeriesMouseOver:
|
|
2264
|
-
refValues:
|
|
2265
|
-
graphID:
|
|
2266
|
-
maxValue:
|
|
2267
|
-
minValue:
|
|
2268
|
-
onSeriesMouseClick:
|
|
2269
|
-
graphDownload:
|
|
2270
|
-
dataDownload:
|
|
2271
|
-
language:
|
|
2272
|
-
labelOrder:
|
|
2273
|
-
minHeight:
|
|
2274
|
-
theme:
|
|
2275
|
-
sortParameter:
|
|
2276
|
-
sortData:
|
|
2277
|
-
maxBarThickness:
|
|
2278
|
-
ariaLabel:
|
|
2279
|
-
resetSelectionOnDoubleClick:
|
|
2280
|
-
detailsOnClick:
|
|
2281
|
-
barAxisTitle:
|
|
2282
|
-
noOfTicks:
|
|
2283
|
-
valueColor:
|
|
2284
|
-
orientation:
|
|
2285
|
-
styles:
|
|
2286
|
-
classNames:
|
|
2287
|
-
filterNA:
|
|
2288
|
-
animate:
|
|
2289
|
-
precision:
|
|
2290
|
-
customLayers:
|
|
2291
|
-
showColorScale:
|
|
2292
|
-
timeline:
|
|
2293
|
-
naLabel:
|
|
2294
|
-
} = e,
|
|
2295
|
-
let
|
|
2296
|
-
return t[0] !==
|
|
2327
|
+
leftMargin: Gt,
|
|
2328
|
+
rightMargin: w,
|
|
2329
|
+
topMargin: Q,
|
|
2330
|
+
bottomMargin: E,
|
|
2331
|
+
showLabels: T,
|
|
2332
|
+
relativeHeight: rt,
|
|
2333
|
+
tooltip: Z,
|
|
2334
|
+
onSeriesMouseOver: ft,
|
|
2335
|
+
refValues: B,
|
|
2336
|
+
graphID: _,
|
|
2337
|
+
maxValue: lt,
|
|
2338
|
+
minValue: r,
|
|
2339
|
+
onSeriesMouseClick: l,
|
|
2340
|
+
graphDownload: n,
|
|
2341
|
+
dataDownload: u,
|
|
2342
|
+
language: c,
|
|
2343
|
+
labelOrder: f,
|
|
2344
|
+
minHeight: d,
|
|
2345
|
+
theme: V,
|
|
2346
|
+
sortParameter: ct,
|
|
2347
|
+
sortData: tt,
|
|
2348
|
+
maxBarThickness: Ft,
|
|
2349
|
+
ariaLabel: Pt,
|
|
2350
|
+
resetSelectionOnDoubleClick: Et,
|
|
2351
|
+
detailsOnClick: q,
|
|
2352
|
+
barAxisTitle: pt,
|
|
2353
|
+
noOfTicks: Rt,
|
|
2354
|
+
valueColor: m,
|
|
2355
|
+
orientation: o,
|
|
2356
|
+
styles: I,
|
|
2357
|
+
classNames: O,
|
|
2358
|
+
filterNA: z,
|
|
2359
|
+
animate: L,
|
|
2360
|
+
precision: N,
|
|
2361
|
+
customLayers: Ct,
|
|
2362
|
+
showColorScale: It,
|
|
2363
|
+
timeline: nt,
|
|
2364
|
+
naLabel: Nt
|
|
2365
|
+
} = e, H = o === void 0 ? "vertical" : o;
|
|
2366
|
+
let G;
|
|
2367
|
+
return t[0] !== L || t[1] !== Pt || t[2] !== kt || t[3] !== pt || t[4] !== Ot || t[5] !== E || t[6] !== O || t[7] !== ht || t[8] !== it || t[9] !== Ut || t[10] !== Ct || t[11] !== s || t[12] !== u || t[13] !== q || t[14] !== z || t[15] !== st || t[16] !== Lt || t[17] !== n || t[18] !== _ || t[19] !== X || t[20] !== K || t[21] !== f || t[22] !== c || t[23] !== Gt || t[24] !== Ft || t[25] !== lt || t[26] !== d || t[27] !== r || t[28] !== Nt || t[29] !== Rt || t[30] !== l || t[31] !== ft || t[32] !== H || t[33] !== Mt || t[34] !== N || t[35] !== Y || t[36] !== B || t[37] !== rt || t[38] !== Et || t[39] !== w || t[40] !== It || t[41] !== T || t[42] !== Tt || t[43] !== at || t[44] !== tt || t[45] !== ct || t[46] !== Kt || t[47] !== I || t[48] !== Jt || t[49] !== V || t[50] !== nt || t[51] !== Z || t[52] !== Q || t[53] !== P || t[54] !== m || t[55] !== y ? (G = /* @__PURE__ */ i.jsx(Mi, { orientation: H, data: s, graphTitle: X, colors: Ut, sources: Kt, graphDescription: Lt, barPadding: Ot, showTicks: Tt, truncateBy: P, height: K, width: y, footNote: st, colorDomain: ht, colorLegendTitle: it, suffix: Jt, prefix: Y, showValues: at, padding: Mt, backgroundColor: kt, leftMargin: Gt, rightMargin: w, sortParameter: ct, sortData: tt, topMargin: Q, bottomMargin: E, showLabels: T, relativeHeight: rt, tooltip: Z, onSeriesMouseOver: ft, refValues: B, graphID: _, maxValue: lt, minValue: r, onSeriesMouseClick: l, graphDownload: n, dataDownload: u, language: c, labelOrder: f, minHeight: d, theme: V, maxBarThickness: Ft, ariaLabel: Pt, resetSelectionOnDoubleClick: Et, styles: I, detailsOnClick: q, barAxisTitle: pt, noOfTicks: Rt, valueColor: m, classNames: O, filterNA: z, animate: L, precision: N, customLayers: Ct, showColorScale: It, timeline: nt, naLabel: Nt }), t[0] = L, t[1] = Pt, t[2] = kt, t[3] = pt, t[4] = Ot, t[5] = E, t[6] = O, t[7] = ht, t[8] = it, t[9] = Ut, t[10] = Ct, t[11] = s, t[12] = u, t[13] = q, t[14] = z, t[15] = st, t[16] = Lt, t[17] = n, t[18] = _, t[19] = X, t[20] = K, t[21] = f, t[22] = c, t[23] = Gt, t[24] = Ft, t[25] = lt, t[26] = d, t[27] = r, t[28] = Nt, t[29] = Rt, t[30] = l, t[31] = ft, t[32] = H, t[33] = Mt, t[34] = N, t[35] = Y, t[36] = B, t[37] = rt, t[38] = Et, t[39] = w, t[40] = It, t[41] = T, t[42] = Tt, t[43] = at, t[44] = tt, t[45] = ct, t[46] = Kt, t[47] = I, t[48] = Jt, t[49] = V, t[50] = nt, t[51] = Z, t[52] = Q, t[53] = P, t[54] = m, t[55] = y, t[56] = G) : G = t[56], G;
|
|
2297
2368
|
}
|
|
2298
|
-
function
|
|
2299
|
-
const t =
|
|
2300
|
-
data:
|
|
2301
|
-
graphTitle:
|
|
2302
|
-
colors:
|
|
2303
|
-
sources:
|
|
2304
|
-
graphDescription:
|
|
2369
|
+
function _s(e) {
|
|
2370
|
+
const t = we.c(58), {
|
|
2371
|
+
data: s,
|
|
2372
|
+
graphTitle: X,
|
|
2373
|
+
colors: Ut,
|
|
2374
|
+
sources: Kt,
|
|
2375
|
+
graphDescription: Lt,
|
|
2305
2376
|
barPadding: Ot,
|
|
2306
2377
|
showTicks: Tt,
|
|
2307
|
-
leftMargin:
|
|
2308
|
-
rightMargin:
|
|
2309
|
-
topMargin:
|
|
2310
|
-
bottomMargin:
|
|
2311
|
-
truncateBy:
|
|
2312
|
-
showLabels:
|
|
2313
|
-
showValues:
|
|
2314
|
-
backgroundColor:
|
|
2378
|
+
leftMargin: P,
|
|
2379
|
+
rightMargin: K,
|
|
2380
|
+
topMargin: y,
|
|
2381
|
+
bottomMargin: st,
|
|
2382
|
+
truncateBy: ht,
|
|
2383
|
+
showLabels: it,
|
|
2384
|
+
showValues: Jt,
|
|
2385
|
+
backgroundColor: Y,
|
|
2315
2386
|
suffix: at,
|
|
2316
2387
|
prefix: Mt,
|
|
2317
2388
|
height: kt,
|
|
2318
|
-
width:
|
|
2319
|
-
footNote:
|
|
2320
|
-
colorDomain:
|
|
2321
|
-
colorLegendTitle:
|
|
2322
|
-
padding:
|
|
2323
|
-
tooltip:
|
|
2324
|
-
onSeriesMouseOver:
|
|
2325
|
-
relativeHeight:
|
|
2326
|
-
refValues:
|
|
2327
|
-
graphID:
|
|
2328
|
-
maxValue:
|
|
2329
|
-
onSeriesMouseClick:
|
|
2330
|
-
graphDownload:
|
|
2331
|
-
dataDownload:
|
|
2332
|
-
language:
|
|
2333
|
-
theme:
|
|
2334
|
-
labelOrder:
|
|
2335
|
-
minHeight:
|
|
2336
|
-
maxBarThickness:
|
|
2337
|
-
sortParameter:
|
|
2338
|
-
sortData:
|
|
2339
|
-
maxNumberOfBars:
|
|
2340
|
-
minBarThickness:
|
|
2341
|
-
ariaLabel:
|
|
2342
|
-
resetSelectionOnDoubleClick:
|
|
2343
|
-
detailsOnClick:
|
|
2344
|
-
barAxisTitle:
|
|
2345
|
-
noOfTicks:
|
|
2346
|
-
valueColor:
|
|
2347
|
-
orientation:
|
|
2348
|
-
styles:
|
|
2349
|
-
classNames:
|
|
2350
|
-
filterNA:
|
|
2351
|
-
animate:
|
|
2352
|
-
precision:
|
|
2353
|
-
customLayers:
|
|
2354
|
-
showColorScale:
|
|
2355
|
-
timeline:
|
|
2356
|
-
naLabel:
|
|
2357
|
-
} = e,
|
|
2358
|
-
let
|
|
2359
|
-
return t[0] !==
|
|
2389
|
+
width: Gt,
|
|
2390
|
+
footNote: w,
|
|
2391
|
+
colorDomain: Q,
|
|
2392
|
+
colorLegendTitle: E,
|
|
2393
|
+
padding: T,
|
|
2394
|
+
tooltip: rt,
|
|
2395
|
+
onSeriesMouseOver: Z,
|
|
2396
|
+
relativeHeight: ft,
|
|
2397
|
+
refValues: B,
|
|
2398
|
+
graphID: _,
|
|
2399
|
+
maxValue: lt,
|
|
2400
|
+
onSeriesMouseClick: r,
|
|
2401
|
+
graphDownload: l,
|
|
2402
|
+
dataDownload: n,
|
|
2403
|
+
language: u,
|
|
2404
|
+
theme: c,
|
|
2405
|
+
labelOrder: f,
|
|
2406
|
+
minHeight: d,
|
|
2407
|
+
maxBarThickness: V,
|
|
2408
|
+
sortParameter: ct,
|
|
2409
|
+
sortData: tt,
|
|
2410
|
+
maxNumberOfBars: Ft,
|
|
2411
|
+
minBarThickness: Pt,
|
|
2412
|
+
ariaLabel: Et,
|
|
2413
|
+
resetSelectionOnDoubleClick: q,
|
|
2414
|
+
detailsOnClick: pt,
|
|
2415
|
+
barAxisTitle: Rt,
|
|
2416
|
+
noOfTicks: m,
|
|
2417
|
+
valueColor: o,
|
|
2418
|
+
orientation: I,
|
|
2419
|
+
styles: O,
|
|
2420
|
+
classNames: z,
|
|
2421
|
+
filterNA: L,
|
|
2422
|
+
animate: N,
|
|
2423
|
+
precision: Ct,
|
|
2424
|
+
customLayers: It,
|
|
2425
|
+
showColorScale: nt,
|
|
2426
|
+
timeline: Nt,
|
|
2427
|
+
naLabel: H
|
|
2428
|
+
} = e, G = I === void 0 ? "vertical" : I;
|
|
2429
|
+
let $;
|
|
2430
|
+
return t[0] !== N || t[1] !== Et || t[2] !== Y || t[3] !== Rt || t[4] !== Ot || t[5] !== st || t[6] !== z || t[7] !== Q || t[8] !== E || t[9] !== Ut || t[10] !== It || t[11] !== s || t[12] !== n || t[13] !== pt || t[14] !== L || t[15] !== w || t[16] !== Lt || t[17] !== l || t[18] !== _ || t[19] !== X || t[20] !== kt || t[21] !== f || t[22] !== u || t[23] !== P || t[24] !== V || t[25] !== Ft || t[26] !== lt || t[27] !== Pt || t[28] !== d || t[29] !== H || t[30] !== m || t[31] !== r || t[32] !== Z || t[33] !== G || t[34] !== T || t[35] !== Ct || t[36] !== Mt || t[37] !== B || t[38] !== ft || t[39] !== q || t[40] !== K || t[41] !== nt || t[42] !== it || t[43] !== Tt || t[44] !== Jt || t[45] !== tt || t[46] !== ct || t[47] !== Kt || t[48] !== O || t[49] !== at || t[50] !== c || t[51] !== Nt || t[52] !== rt || t[53] !== y || t[54] !== ht || t[55] !== o || t[56] !== Gt ? ($ = /* @__PURE__ */ i.jsx(ls, { data: s, graphTitle: X, colors: Ut, sources: Kt, graphDescription: Lt, barPadding: Ot, showTicks: Tt, leftMargin: P, rightMargin: K, topMargin: y, bottomMargin: st, truncateBy: ht, showLabels: it, showValues: Jt, backgroundColor: Y, suffix: at, prefix: Mt, height: kt, width: Gt, footNote: w, colorDomain: Q, colorLegendTitle: E, padding: T, tooltip: rt, onSeriesMouseOver: Z, relativeHeight: ft, refValues: B, graphID: _, maxValue: lt, onSeriesMouseClick: r, graphDownload: l, dataDownload: n, language: u, theme: c, labelOrder: f, minHeight: d, maxBarThickness: V, sortParameter: ct, sortData: tt, maxNumberOfBars: Ft, minBarThickness: Pt, ariaLabel: Et, resetSelectionOnDoubleClick: q, styles: O, detailsOnClick: pt, barAxisTitle: Rt, noOfTicks: m, valueColor: o, classNames: z, filterNA: L, animate: N, precision: Ct, customLayers: It, showColorScale: nt, timeline: Nt, naLabel: H, orientation: G }), t[0] = N, t[1] = Et, t[2] = Y, t[3] = Rt, t[4] = Ot, t[5] = st, t[6] = z, t[7] = Q, t[8] = E, t[9] = Ut, t[10] = It, t[11] = s, t[12] = n, t[13] = pt, t[14] = L, t[15] = w, t[16] = Lt, t[17] = l, t[18] = _, t[19] = X, t[20] = kt, t[21] = f, t[22] = u, t[23] = P, t[24] = V, t[25] = Ft, t[26] = lt, t[27] = Pt, t[28] = d, t[29] = H, t[30] = m, t[31] = r, t[32] = Z, t[33] = G, t[34] = T, t[35] = Ct, t[36] = Mt, t[37] = B, t[38] = ft, t[39] = q, t[40] = K, t[41] = nt, t[42] = it, t[43] = Tt, t[44] = Jt, t[45] = tt, t[46] = ct, t[47] = Kt, t[48] = O, t[49] = at, t[50] = c, t[51] = Nt, t[52] = rt, t[53] = y, t[54] = ht, t[55] = o, t[56] = Gt, t[57] = $) : $ = t[57], $;
|
|
2360
2431
|
}
|
|
2361
2432
|
export {
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2433
|
+
Zs as GroupedBarGraph,
|
|
2434
|
+
Qs as SimpleBarGraph,
|
|
2435
|
+
_s as StackedBarGraph
|
|
2365
2436
|
};
|
|
2366
2437
|
//# sourceMappingURL=BarGraph.js.map
|