@undp/data-viz 2.5.0 → 2.5.1
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/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.cjs.map +1 -1
- package/dist/BiVariateChoroplethMap.js +275 -272
- package/dist/BiVariateChoroplethMap.js.map +1 -1
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.cjs.map +1 -1
- package/dist/ChoroplethMap.js +321 -318
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.cjs.map +1 -1
- package/dist/DotDensityMap.js +268 -265
- package/dist/DotDensityMap.js.map +1 -1
- package/dist/{GraphEl-B7x5ku_y.cjs → GraphEl-BgkDbq50.cjs} +2 -2
- package/dist/GraphEl-BgkDbq50.cjs.map +1 -0
- package/dist/{GraphEl-B8tGXqWk.js → GraphEl-Ch0uAeZw.js} +2 -1
- package/dist/GraphEl-Ch0uAeZw.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/HybridMap.cjs +1 -1
- package/dist/HybridMap.cjs.map +1 -1
- package/dist/HybridMap.js +304 -301
- package/dist/HybridMap.js.map +1 -1
- package/dist/ImageDownloadButton.cjs +1 -1
- package/dist/ImageDownloadButton.js +1 -1
- package/dist/MultiGraphDashboard.d.ts +1 -0
- package/dist/MultiGraphDashboardFromConfig.d.ts +1 -0
- package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +1 -0
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +1 -0
- package/dist/PerformanceIntensiveScrollStory.d.ts +1 -0
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.cjs.map +1 -1
- package/dist/ScatterPlot.d.ts +2 -0
- package/dist/ScatterPlot.js +451 -449
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/ScrollStory.d.ts +1 -0
- 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/Types.d.ts +1 -0
- package/dist/{imageDownload-Diofs_vY.js → imageDownload-BYsNEtMS.js} +11 -11
- package/dist/{imageDownload-Diofs_vY.js.map → imageDownload-BYsNEtMS.js.map} +1 -1
- package/dist/{imageDownload-61q6jyJW.cjs → imageDownload-CkMwA7Cw.cjs} +4 -4
- package/dist/{imageDownload-61q6jyJW.cjs.map → imageDownload-CkMwA7Cw.cjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/package.json +1 -1
- package/dist/GraphEl-B7x5ku_y.cjs.map +0 -1
- package/dist/GraphEl-B8tGXqWk.js.map +0 -1
package/dist/ScatterPlot.js
CHANGED
|
@@ -1,384 +1,382 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { f as Ai, p as
|
|
3
|
-
import { useRef as
|
|
4
|
-
import { g as
|
|
5
|
-
import { i as
|
|
1
|
+
import { c as vi, j as l, m as fi } from "./index-CHPV5EwG-BzibaIRc.js";
|
|
2
|
+
import { f as Ai, p as Ci } from "./parse-Dv4of-PN.js";
|
|
3
|
+
import { useRef as ci, useState as Et, useEffect as ui } from "react";
|
|
4
|
+
import { g as $i, N as wi } from "./getSliderMarks-X-_goqH9.js";
|
|
5
|
+
import { i as xi } from "./index-Bwrro8-q.js";
|
|
6
6
|
import { o as Li } from "./index-BZQYSqar.js";
|
|
7
7
|
import { l as ji, a as Vi } from "./simple-statistics-flVzqVtt.js";
|
|
8
8
|
import { T as Di } from "./Tooltip-3EYDVa3w.js";
|
|
9
|
-
import { c as
|
|
10
|
-
import { Colors as
|
|
9
|
+
import { c as w } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
10
|
+
import { Colors as E } from "./Colors.js";
|
|
11
11
|
import { n as mi } from "./numberFormattingFunction-BUUV_luR.js";
|
|
12
|
-
import { g as
|
|
13
|
-
import { A as
|
|
14
|
-
import { A as
|
|
15
|
-
import { X as
|
|
16
|
-
import { R as
|
|
17
|
-
import { R as
|
|
18
|
-
import { Y as
|
|
19
|
-
import { a as
|
|
20
|
-
import { D as
|
|
21
|
-
import { s as
|
|
22
|
-
import { a as
|
|
23
|
-
import { D as
|
|
24
|
-
import { m as
|
|
25
|
-
import { u as
|
|
26
|
-
import { A as
|
|
27
|
-
import { GraphFooter as
|
|
28
|
-
import { GraphHeader as
|
|
29
|
-
import { ColorLegendWithMouseOver as
|
|
30
|
-
import { E as
|
|
31
|
-
import { P as
|
|
32
|
-
import { a as
|
|
33
|
-
import { u as
|
|
34
|
-
import { a as
|
|
35
|
-
function
|
|
36
|
-
const t =
|
|
12
|
+
import { g as ki, A as Mi, C as Ni } from "./customArea-D89lETG0.js";
|
|
13
|
+
import { A as pi } from "./Axis-CNZYWzH0.js";
|
|
14
|
+
import { A as di } from "./AxisTitle-CyLCqpW6.js";
|
|
15
|
+
import { X as Si } from "./XTicksAndGridLines-CkYwVshF.js";
|
|
16
|
+
import { R as Ti, a as Xi } from "./ReferenceLine-D41VuUhE.js";
|
|
17
|
+
import { R as Yi } from "./RegressionLine-CuwB42I6.js";
|
|
18
|
+
import { Y as Pi } from "./YTicksAndGridLines-BbujwxOB.js";
|
|
19
|
+
import { a as Ii } from "./index-DHVGV8Df.js";
|
|
20
|
+
import { D as Ri } from "./DetailsModal-GqEbGHY2.js";
|
|
21
|
+
import { s as Fi } from "./pow-BXYLJHCq.js";
|
|
22
|
+
import { a as gi } from "./linear-DNXM5Pdl.js";
|
|
23
|
+
import { D as Hi } from "./delaunay-C1uAf38t.js";
|
|
24
|
+
import { m as We } from "./proxy-BsxtcZKa.js";
|
|
25
|
+
import { u as Wi } from "./use-in-view-KOXq5Kmc.js";
|
|
26
|
+
import { A as hi } from "./index-Cv_5q6Rb.js";
|
|
27
|
+
import { GraphFooter as Ei } from "./GraphFooter.js";
|
|
28
|
+
import { GraphHeader as Gi } from "./GraphHeader.js";
|
|
29
|
+
import { ColorLegendWithMouseOver as Zi } from "./ColorLegendWithMouseOver.js";
|
|
30
|
+
import { E as qi } from "./EmptyState-CaxXCkiN.js";
|
|
31
|
+
import { P as Bi, e as zi } from "./index-ApTBN0kp.js";
|
|
32
|
+
import { a as Ui } from "./ensureCompleteData-CDIukSG6.js";
|
|
33
|
+
import { u as yi } from "./uniqBy-BHy4I8PK.js";
|
|
34
|
+
import { a as Ji, G as Ki } from "./GraphContainer-B8ZqOzKI.js";
|
|
35
|
+
function Qi(i) {
|
|
36
|
+
const t = vi.c(229), {
|
|
37
37
|
data: o,
|
|
38
|
-
width:
|
|
39
|
-
height:
|
|
40
|
-
showLabels:
|
|
41
|
-
colors:
|
|
42
|
-
colorDomain:
|
|
43
|
-
radius:
|
|
44
|
-
xAxisTitle:
|
|
45
|
-
yAxisTitle:
|
|
46
|
-
leftMargin:
|
|
47
|
-
rightMargin:
|
|
48
|
-
topMargin:
|
|
49
|
-
bottomMargin:
|
|
50
|
-
tooltip:
|
|
51
|
-
onSeriesMouseOver:
|
|
52
|
-
refXValues:
|
|
53
|
-
refYValues:
|
|
54
|
-
highlightAreaSettings:
|
|
55
|
-
selectedColor:
|
|
56
|
-
highlightedDataPoints:
|
|
57
|
-
maxRadiusValue:
|
|
58
|
-
maxXValue:
|
|
59
|
-
minXValue:
|
|
60
|
-
maxYValue:
|
|
61
|
-
minYValue:
|
|
38
|
+
width: rt,
|
|
39
|
+
height: L,
|
|
40
|
+
showLabels: Gt,
|
|
41
|
+
colors: r,
|
|
42
|
+
colorDomain: a,
|
|
43
|
+
radius: I,
|
|
44
|
+
xAxisTitle: O,
|
|
45
|
+
yAxisTitle: G,
|
|
46
|
+
leftMargin: R,
|
|
47
|
+
rightMargin: he,
|
|
48
|
+
topMargin: oe,
|
|
49
|
+
bottomMargin: Ye,
|
|
50
|
+
tooltip: se,
|
|
51
|
+
onSeriesMouseOver: Nt,
|
|
52
|
+
refXValues: ne,
|
|
53
|
+
refYValues: ye,
|
|
54
|
+
highlightAreaSettings: ve,
|
|
55
|
+
selectedColor: St,
|
|
56
|
+
highlightedDataPoints: Z,
|
|
57
|
+
maxRadiusValue: be,
|
|
58
|
+
maxXValue: le,
|
|
59
|
+
minXValue: D,
|
|
60
|
+
maxYValue: re,
|
|
61
|
+
minYValue: j,
|
|
62
62
|
onSeriesMouseClick: M,
|
|
63
|
-
rtl:
|
|
64
|
-
annotations:
|
|
65
|
-
customHighlightAreaSettings:
|
|
66
|
-
regressionLine:
|
|
67
|
-
resetSelectionOnDoubleClick:
|
|
63
|
+
rtl: at,
|
|
64
|
+
annotations: Oe,
|
|
65
|
+
customHighlightAreaSettings: Tt,
|
|
66
|
+
regressionLine: Zt,
|
|
67
|
+
resetSelectionOnDoubleClick: qt,
|
|
68
68
|
detailsOnClick: N,
|
|
69
|
-
noOfXTicks:
|
|
70
|
-
noOfYTicks:
|
|
71
|
-
labelColor:
|
|
69
|
+
noOfXTicks: Bt,
|
|
70
|
+
noOfYTicks: zt,
|
|
71
|
+
labelColor: q,
|
|
72
72
|
styles: s,
|
|
73
73
|
classNames: n,
|
|
74
|
-
animate:
|
|
74
|
+
animate: f,
|
|
75
75
|
dimmedOpacity: S,
|
|
76
|
-
showHighlightedDataPointsLabels:
|
|
77
|
-
customLayers:
|
|
78
|
-
showVoronoiTesselation:
|
|
79
|
-
useVoronoiInteraction:
|
|
80
|
-
xNumberDisplayOptions:
|
|
81
|
-
yNumberDisplayOptions: d
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
76
|
+
showHighlightedDataPointsLabels: Ae,
|
|
77
|
+
customLayers: B,
|
|
78
|
+
showVoronoiTesselation: Ce,
|
|
79
|
+
useVoronoiInteraction: Ut,
|
|
80
|
+
xNumberDisplayOptions: m,
|
|
81
|
+
yNumberDisplayOptions: d,
|
|
82
|
+
defaultColor: T
|
|
83
|
+
} = i, $e = ci(null);
|
|
84
|
+
let ae;
|
|
85
|
+
t[0] !== f.amount || t[1] !== f.once ? (ae = {
|
|
86
|
+
once: f.once,
|
|
87
|
+
amount: f.amount
|
|
88
|
+
}, t[0] = f.amount, t[1] = f.once, t[2] = ae) : ae = t[2];
|
|
89
|
+
const C = Wi($e, ae), [X, Xt] = Et(void 0), [F, h] = Et(void 0), [p, Yt] = Et(void 0), [ce, z] = Et(void 0), Jt = O ? Ye + 50 : Ye, we = G ? R + 30 : R;
|
|
90
|
+
let fe;
|
|
91
|
+
t[3] !== he || t[4] !== Jt || t[5] !== we || t[6] !== oe ? (fe = {
|
|
92
|
+
top: oe,
|
|
93
|
+
bottom: Jt,
|
|
94
|
+
left: we,
|
|
95
|
+
right: he
|
|
96
|
+
}, t[3] = he, t[4] = Jt, t[5] = we, t[6] = oe, t[7] = fe) : fe = t[7];
|
|
97
|
+
const y = fe;
|
|
98
|
+
let ct, ft, U, ut, xt, mt, H, pt, dt, gt, ht, J, yt, K, vt, Q, W, bt;
|
|
99
|
+
if (t[8] !== f || t[9] !== Oe || t[10] !== n?.graphObjectValues || t[11] !== n?.regLine || t[12] !== n?.xAxis?.axis || t[13] !== n?.xAxis?.gridLines || t[14] !== n?.xAxis?.labels || t[15] !== n?.xAxis?.title || t[16] !== n?.yAxis?.gridLines || t[17] !== n?.yAxis?.labels || t[18] !== n?.yAxis?.title || t[19] !== a || t[20] !== r || t[21] !== Tt || t[22] !== B || t[23] !== o || t[24] !== T || t[25] !== N || t[26] !== S || t[27] !== L || t[28] !== ve || t[29] !== Z || t[30] !== C || t[31] !== q || t[32] !== R || t[33] !== y.bottom || t[34] !== y.left || t[35] !== y.right || t[36] !== y.top || t[37] !== be || t[38] !== le || t[39] !== re || t[40] !== D || t[41] !== j || t[42] !== F || t[43] !== X || t[44] !== Bt || t[45] !== zt || t[46] !== M || t[47] !== Nt || t[48] !== I || t[49] !== ne || t[50] !== ye || t[51] !== Zt || t[52] !== qt || t[53] !== at || t[54] !== St || t[55] !== Ae || t[56] !== Gt || t[57] !== Ce || t[58] !== s?.graphObjectValues || t[59] !== s?.regLine || t[60] !== s?.xAxis?.axis || t[61] !== s?.xAxis?.gridLines || t[62] !== s?.xAxis?.labels || t[63] !== s?.xAxis?.title || t[64] !== s?.yAxis?.gridLines || t[65] !== s?.yAxis?.labels || t[66] !== s?.yAxis?.title || t[67] !== Ut || t[68] !== rt || t[69] !== O || t[70] !== m?.locale || t[71] !== m?.padZeros || t[72] !== m?.precision || t[73] !== m?.prefix || t[74] !== m?.suffix || t[75] !== G || t[76] !== d?.locale || t[77] !== d?.padZeros || t[78] !== d?.precision || t[79] !== d?.prefix || t[80] !== d?.suffix) {
|
|
100
|
+
const ue = o.map(Oo), $ = rt - y.left - y.right, A = L - y.top - y.bottom, b = o.filter(bo).length !== o.length ? Fi().domain([0, be]).range([0.25, I]).nice() : void 0, Kt = ue.filter(vo).length === 0 ? ue.filter(yo) : Li(ue.filter(ho), "radius", "desc"), u = gi().domain([D, le]).range([0, $]).nice(), g = gi().domain([j, re]).range([A, 0]).nice(), Le = u.ticks(Bt), xe = g.ticks(zt), Pe = Hi.from(Kt, (e) => u(e.x), (e) => g(e.y)).voronoi([0, 0, $ < 0 ? 0 : $, A < 0 ? 0 : A]), je = ji(o.filter(go).map((e) => [u(e.x), g(e.y)])), Ve = Vi(je);
|
|
101
|
+
ft = We.svg, pt = `${rt}px`, dt = `${L}px`, gt = `0 0 ${rt} ${L}`, ht = "ltr", J = $e, U = `translate(${y.left},${y.top})`;
|
|
102
|
+
let It;
|
|
103
|
+
t[99] !== f || t[100] !== Tt || t[101] !== C || t[102] !== u || t[103] !== g ? (It = /* @__PURE__ */ l.jsx(Ni, { areaSettings: Tt, scaleX: u, scaleY: g, animate: f, isInView: C }, "custom-area"), t[99] = f, t[100] = Tt, t[101] = C, t[102] = u, t[103] = g, t[104] = It) : It = t[104], ut = /* @__PURE__ */ l.jsxs(hi, { children: [
|
|
104
|
+
/* @__PURE__ */ l.jsx(Ii, { areaSettings: ve, width: $, height: A, scaleX: u, scaleY: g, animate: f, isInView: C }, "highlight-area"),
|
|
105
|
+
It
|
|
105
106
|
] });
|
|
106
|
-
const
|
|
107
|
-
let
|
|
108
|
-
t[
|
|
109
|
-
gridLines:
|
|
110
|
-
labels:
|
|
111
|
-
}, t[
|
|
112
|
-
const
|
|
113
|
-
let
|
|
114
|
-
t[
|
|
115
|
-
gridLines:
|
|
116
|
-
labels:
|
|
117
|
-
}, t[
|
|
118
|
-
const
|
|
119
|
-
let
|
|
120
|
-
t[
|
|
121
|
-
const
|
|
122
|
-
let
|
|
123
|
-
t[
|
|
107
|
+
const c = s?.yAxis?.gridLines, me = s?.yAxis?.labels;
|
|
108
|
+
let Qt;
|
|
109
|
+
t[105] !== c || t[106] !== me ? (Qt = {
|
|
110
|
+
gridLines: c,
|
|
111
|
+
labels: me
|
|
112
|
+
}, t[105] = c, t[106] = me, t[107] = Qt) : Qt = t[107];
|
|
113
|
+
const _t = n?.yAxis?.gridLines, Ie = n?.yAxis?.labels;
|
|
114
|
+
let Rt;
|
|
115
|
+
t[108] !== _t || t[109] !== Ie ? (Rt = {
|
|
116
|
+
gridLines: _t,
|
|
117
|
+
labels: Ie
|
|
118
|
+
}, t[108] = _t, t[109] = Ie, t[110] = Rt) : Rt = t[110];
|
|
119
|
+
const Re = g(j < 0 ? 0 : j), Y = g(j < 0 ? 0 : j), Fe = $ + y.right, Ft = j < 0 ? 0 : j, x = d?.precision ?? 2, P = d?.prefix || "", pe = d?.suffix || "", de = d?.locale || "en", He = d?.padZeros || !1;
|
|
120
|
+
let $t;
|
|
121
|
+
t[111] !== Ft || t[112] !== x || t[113] !== P || t[114] !== pe || t[115] !== de || t[116] !== He ? ($t = mi(Ft, void 0, x, P, pe, de, He), t[111] = Ft, t[112] = x, t[113] = P, t[114] = pe, t[115] = de, t[116] = He, t[117] = $t) : $t = t[117];
|
|
122
|
+
const De = g(j < 0 ? 0 : j);
|
|
123
|
+
let et;
|
|
124
|
+
t[118] !== De ? (et = {
|
|
124
125
|
x: 0,
|
|
125
|
-
y:
|
|
126
|
+
y: De,
|
|
126
127
|
dy: "0.33em",
|
|
127
128
|
dx: -4
|
|
128
|
-
}, t[
|
|
129
|
+
}, t[118] = De, t[119] = et) : et = t[119];
|
|
129
130
|
const te = n?.xAxis?.axis, ee = n?.yAxis?.labels;
|
|
130
|
-
let
|
|
131
|
-
t[
|
|
131
|
+
let it;
|
|
132
|
+
t[120] !== te || t[121] !== ee ? (it = {
|
|
132
133
|
axis: te,
|
|
133
134
|
label: ee
|
|
134
|
-
}, t[
|
|
135
|
-
const
|
|
136
|
-
let
|
|
137
|
-
t[
|
|
138
|
-
let
|
|
139
|
-
t[
|
|
135
|
+
}, t[120] = te, t[121] = ee, t[122] = it) : it = t[122];
|
|
136
|
+
const ge = s?.xAxis?.axis;
|
|
137
|
+
let ot;
|
|
138
|
+
t[123] !== s?.yAxis?.labels ? (ot = s?.yAxis?.labels || {}, t[123] = s?.yAxis?.labels, t[124] = ot) : ot = t[124];
|
|
139
|
+
let st;
|
|
140
|
+
t[125] !== ot ? (st = {
|
|
140
141
|
textAnchor: "end",
|
|
141
|
-
...
|
|
142
|
-
}, t[
|
|
142
|
+
...ot
|
|
143
|
+
}, t[125] = ot, t[126] = st) : st = t[126];
|
|
143
144
|
let wt;
|
|
144
|
-
t[
|
|
145
|
-
axis:
|
|
146
|
-
label:
|
|
147
|
-
}, t[
|
|
148
|
-
let
|
|
149
|
-
t[
|
|
150
|
-
const Lt = 0 -
|
|
151
|
-
let
|
|
152
|
-
t[
|
|
153
|
-
/* @__PURE__ */ l.jsx(
|
|
154
|
-
|
|
155
|
-
|
|
145
|
+
t[127] !== ge || t[128] !== st ? (wt = {
|
|
146
|
+
axis: ge,
|
|
147
|
+
label: st
|
|
148
|
+
}, t[127] = ge, t[128] = st, t[129] = wt) : wt = t[129];
|
|
149
|
+
let ie;
|
|
150
|
+
t[130] !== Re || t[131] !== Y || t[132] !== Fe || t[133] !== $t || t[134] !== et || t[135] !== it || t[136] !== wt ? (ie = /* @__PURE__ */ l.jsx(pi, { y1: Re, y2: Y, x1: 0, x2: Fe, label: $t, labelPos: et, classNames: it, styles: wt }), t[130] = Re, t[131] = Y, t[132] = Fe, t[133] = $t, t[134] = et, t[135] = it, t[136] = wt, t[137] = ie) : ie = t[137];
|
|
151
|
+
const Lt = 0 - R - 15, jt = A / 2, Vt = s?.yAxis?.title, Dt = n?.yAxis?.title;
|
|
152
|
+
let nt;
|
|
153
|
+
t[138] !== Lt || t[139] !== jt || t[140] !== Vt || t[141] !== Dt || t[142] !== G ? (nt = /* @__PURE__ */ l.jsx(di, { x: Lt, y: jt, style: Vt, className: Dt, text: G, rotate90: !0 }), t[138] = Lt, t[139] = jt, t[140] = Vt, t[141] = Dt, t[142] = G, t[143] = nt) : nt = t[143], xt = /* @__PURE__ */ l.jsxs("g", { children: [
|
|
154
|
+
/* @__PURE__ */ l.jsx(Pi, { values: xe.filter(po), y: xe.filter(mo).map((e) => g(e)), x1: 0, x2: $ + y.right, styles: Qt, classNames: Rt, labelType: "secondary", showGridLines: !0, labelPos: "side", suffix: d?.suffix || "", prefix: d?.prefix || "", precision: d?.precision ?? 2, locale: d?.locale || "en", padZeros: d?.padZeros || !1 }),
|
|
155
|
+
ie,
|
|
156
|
+
nt
|
|
156
157
|
] });
|
|
157
|
-
const
|
|
158
|
-
let
|
|
159
|
-
t[
|
|
160
|
-
gridLines:
|
|
161
|
-
labels:
|
|
162
|
-
}, t[
|
|
163
|
-
const
|
|
164
|
-
let
|
|
165
|
-
t[
|
|
166
|
-
gridLines:
|
|
167
|
-
labels:
|
|
168
|
-
}, t[
|
|
169
|
-
const
|
|
170
|
-
let $e;
|
|
171
|
-
t[149] !== Be || t[150] !== ze || t[151] !== Ue || t[152] !== Je || t[153] !== Ke || t[154] !== Qe ? ($e = mi(Be, void 0, ze, Ue, Je, Ke, Qe), t[149] = Be, t[150] = ze, t[151] = Ue, t[152] = Je, t[153] = Ke, t[154] = Qe, t[155] = $e) : $e = t[155];
|
|
172
|
-
const _e = c(V < 0 ? 0 : V);
|
|
158
|
+
const kt = s?.xAxis?.gridLines, Mt = s?.xAxis?.labels;
|
|
159
|
+
let Ht;
|
|
160
|
+
t[144] !== kt || t[145] !== Mt ? (Ht = {
|
|
161
|
+
gridLines: kt,
|
|
162
|
+
labels: Mt
|
|
163
|
+
}, t[144] = kt, t[145] = Mt, t[146] = Ht) : Ht = t[146];
|
|
164
|
+
const v = n?.xAxis?.gridLines, lt = n?.xAxis?.labels;
|
|
165
|
+
let Ee;
|
|
166
|
+
t[147] !== v || t[148] !== lt ? (Ee = {
|
|
167
|
+
gridLines: v,
|
|
168
|
+
labels: lt
|
|
169
|
+
}, t[147] = v, t[148] = lt, t[149] = Ee) : Ee = t[149];
|
|
170
|
+
const qe = u(D < 0 ? 0 : D), Be = u(D < 0 ? 0 : D), ze = D < 0 ? 0 : D, Ue = m?.precision ?? 2, Je = m?.prefix || "", Ke = m?.suffix || "", Qe = m?.locale || "en", _e = m?.padZeros || !1;
|
|
173
171
|
let ke;
|
|
174
|
-
t[
|
|
175
|
-
|
|
176
|
-
|
|
172
|
+
t[150] !== ze || t[151] !== Ue || t[152] !== Je || t[153] !== Ke || t[154] !== Qe || t[155] !== _e ? (ke = mi(ze, void 0, Ue, Je, Ke, Qe, _e), t[150] = ze, t[151] = Ue, t[152] = Je, t[153] = Ke, t[154] = Qe, t[155] = _e, t[156] = ke) : ke = t[156];
|
|
173
|
+
const ti = u(D < 0 ? 0 : D);
|
|
174
|
+
let Me;
|
|
175
|
+
t[157] !== A || t[158] !== ti ? (Me = {
|
|
176
|
+
x: ti,
|
|
177
|
+
y: A,
|
|
177
178
|
dy: "1em",
|
|
178
179
|
dx: 0
|
|
179
|
-
}, t[
|
|
180
|
-
const
|
|
181
|
-
let Me;
|
|
182
|
-
t[159] !== ti || t[160] !== ei ? (Me = {
|
|
183
|
-
axis: ti,
|
|
184
|
-
label: ei
|
|
185
|
-
}, t[159] = ti, t[160] = ei, t[161] = Me) : Me = t[161];
|
|
186
|
-
const ii = s?.xAxis?.axis;
|
|
180
|
+
}, t[157] = A, t[158] = ti, t[159] = Me) : Me = t[159];
|
|
181
|
+
const ei = n?.xAxis?.axis, ii = n?.yAxis?.labels;
|
|
187
182
|
let Ne;
|
|
188
|
-
t[
|
|
183
|
+
t[160] !== ei || t[161] !== ii ? (Ne = {
|
|
184
|
+
axis: ei,
|
|
185
|
+
label: ii
|
|
186
|
+
}, t[160] = ei, t[161] = ii, t[162] = Ne) : Ne = t[162];
|
|
187
|
+
const oi = s?.xAxis?.axis;
|
|
189
188
|
let Se;
|
|
190
|
-
t[
|
|
191
|
-
textAnchor: "middle",
|
|
192
|
-
...Ne
|
|
193
|
-
}, t[164] = Ne, t[165] = Se) : Se = t[165];
|
|
189
|
+
t[163] !== s?.yAxis?.labels ? (Se = s?.yAxis?.labels || {}, t[163] = s?.yAxis?.labels, t[164] = Se) : Se = t[164];
|
|
194
190
|
let Te;
|
|
195
|
-
t[
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
}, t[
|
|
199
|
-
let
|
|
200
|
-
t[
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
191
|
+
t[165] !== Se ? (Te = {
|
|
192
|
+
textAnchor: "middle",
|
|
193
|
+
...Se
|
|
194
|
+
}, t[165] = Se, t[166] = Te) : Te = t[166];
|
|
195
|
+
let Xe;
|
|
196
|
+
t[167] !== oi || t[168] !== Te ? (Xe = {
|
|
197
|
+
axis: oi,
|
|
198
|
+
label: Te
|
|
199
|
+
}, t[167] = oi, t[168] = Te, t[169] = Xe) : Xe = t[169];
|
|
200
|
+
let Ge;
|
|
201
|
+
t[170] !== A || t[171] !== qe || t[172] !== Be || t[173] !== ke || t[174] !== Me || t[175] !== Ne || t[176] !== Xe ? (Ge = /* @__PURE__ */ l.jsx(pi, { x1: qe, x2: Be, y1: 0, y2: A, label: ke, labelPos: Me, classNames: Ne, styles: Xe }), t[170] = A, t[171] = qe, t[172] = Be, t[173] = ke, t[174] = Me, t[175] = Ne, t[176] = Xe, t[177] = Ge) : Ge = t[177];
|
|
202
|
+
const si = $ / 2, ni = A + 30, li = s?.xAxis?.title, ri = n?.xAxis?.title;
|
|
203
|
+
let Ze;
|
|
204
|
+
t[178] !== si || t[179] !== ni || t[180] !== li || t[181] !== ri || t[182] !== O ? (Ze = /* @__PURE__ */ l.jsx(di, { x: si, y: ni, style: li, className: ri, text: O }), t[178] = si, t[179] = ni, t[180] = li, t[181] = ri, t[182] = O, t[183] = Ze) : Ze = t[183], mt = /* @__PURE__ */ l.jsxs("g", { children: [
|
|
205
|
+
/* @__PURE__ */ l.jsx(Si, { values: Le.filter(xo), x: Le.filter(uo).map((e) => u(e)), y1: 0, y2: A, styles: Ht, classNames: Ee, labelType: "primary", showGridLines: !0, suffix: m?.suffix || "", prefix: m?.prefix || "", precision: m?.precision ?? 2, locale: m?.locale || "en", padZeros: m?.padZeros || !1 }),
|
|
206
|
+
Ge,
|
|
207
|
+
Ze
|
|
208
|
+
] }), t[184] !== B ? (H = B.filter(fo).map(co), t[184] = B, t[185] = H) : H = t[185], ct = hi, yt = Ut && Kt.map((e, Wt) => /* @__PURE__ */ l.jsx("path", { d: Pe.renderCell(Kt.findIndex((V) => V.id === e.id)), opacity: Ce ? 1 : 0, className: "stroke-primary-gray-700 dark:stroke-primary-gray-300", style: {
|
|
208
209
|
fillOpacity: 0,
|
|
209
210
|
strokeWidth: 1
|
|
210
|
-
}, onMouseEnter: (
|
|
211
|
-
|
|
212
|
-
}, onMouseMove: (
|
|
213
|
-
|
|
211
|
+
}, onMouseEnter: (V) => {
|
|
212
|
+
Xt(e), z(V.clientY), Yt(V.clientX), Nt?.(e);
|
|
213
|
+
}, onMouseMove: (V) => {
|
|
214
|
+
Xt(e), z(V.clientY), Yt(V.clientX);
|
|
214
215
|
}, onMouseLeave: () => {
|
|
215
|
-
|
|
216
|
+
Xt(void 0), Yt(void 0), z(void 0), Nt?.(void 0);
|
|
216
217
|
}, onClick: () => {
|
|
217
|
-
(M || N) && (
|
|
218
|
-
} }, `tesselation_${e.label ||
|
|
218
|
+
(M || N) && (xi(F, e) && qt ? (h(void 0), M?.(void 0)) : (h(e), M?.(e)));
|
|
219
|
+
} }, `tesselation_${e.label || Wt}`)), K = Kt.map((e, Wt) => /* @__PURE__ */ l.jsxs(We.g, { variants: {
|
|
219
220
|
initial: {
|
|
220
|
-
x:
|
|
221
|
+
x: u(e.x),
|
|
221
222
|
y: g(e.y),
|
|
222
|
-
opacity:
|
|
223
|
+
opacity: St ? e.color && r[a.indexOf(`${e.color}`)] === St ? 1 : S : X ? X.id === e.id ? 1 : S : Z ? Z.indexOf(e.label || "") !== -1 ? 1 : S : 1
|
|
223
224
|
},
|
|
224
225
|
whileInView: {
|
|
225
|
-
x:
|
|
226
|
+
x: u(e.x),
|
|
226
227
|
y: g(e.y),
|
|
227
|
-
opacity:
|
|
228
|
+
opacity: St ? e.color && r[a.indexOf(`${e.color}`)] === St ? 1 : S : X ? X.id === e.id ? 1 : S : Z ? Z.indexOf(e.label || "") !== -1 ? 1 : S : 1,
|
|
228
229
|
transition: {
|
|
229
|
-
duration:
|
|
230
|
+
duration: f.duration
|
|
230
231
|
}
|
|
231
232
|
}
|
|
232
|
-
}, initial: "initial", animate:
|
|
233
|
+
}, initial: "initial", animate: C ? "whileInView" : "initial", exit: {
|
|
233
234
|
opacity: 0,
|
|
234
235
|
transition: {
|
|
235
|
-
duration:
|
|
236
|
+
duration: f.duration
|
|
236
237
|
}
|
|
237
|
-
}, onMouseEnter: (
|
|
238
|
-
|
|
239
|
-
}, onMouseMove: (
|
|
240
|
-
|
|
238
|
+
}, onMouseEnter: (V) => {
|
|
239
|
+
Xt(e), z(V.clientY), Yt(V.clientX), Nt?.(e);
|
|
240
|
+
}, onMouseMove: (V) => {
|
|
241
|
+
Xt(e), z(V.clientY), Yt(V.clientX);
|
|
241
242
|
}, onMouseLeave: () => {
|
|
242
|
-
|
|
243
|
+
Xt(void 0), Yt(void 0), z(void 0), Nt?.(void 0);
|
|
243
244
|
}, onClick: () => {
|
|
244
|
-
(M || N) && (
|
|
245
|
+
(M || N) && (xi(F, e) && qt ? (h(void 0), M?.(void 0)) : (h(e), M?.(e)));
|
|
245
246
|
}, children: [
|
|
246
|
-
/* @__PURE__ */ l.jsx(
|
|
247
|
+
/* @__PURE__ */ l.jsx(We.circle, { cx: 0, cy: 0, exit: {
|
|
247
248
|
r: 0,
|
|
248
249
|
transition: {
|
|
249
|
-
duration:
|
|
250
|
+
duration: f.duration
|
|
250
251
|
}
|
|
251
252
|
}, variants: {
|
|
252
253
|
initial: {
|
|
253
254
|
r: 0,
|
|
254
|
-
fill: o.filter(
|
|
255
|
-
stroke: o.filter(
|
|
255
|
+
fill: o.filter(ao).length === 0 ? r[0] : e.color ? a.indexOf(`${e.color}`) === -1 || a.indexOf(`${e.color}`) > r.length - 1 ? T : r[a.indexOf(`${e.color}`)] : E.gray,
|
|
256
|
+
stroke: o.filter(ro).length === 0 ? r[0] : e.color ? a.indexOf(`${e.color}`) === -1 || a.indexOf(`${e.color}`) > r.length - 1 ? T : r[a.indexOf(`${e.color}`)] : E.gray
|
|
256
257
|
},
|
|
257
258
|
whileInView: {
|
|
258
|
-
r:
|
|
259
|
-
fill: o.filter(
|
|
260
|
-
stroke: o.filter(
|
|
259
|
+
r: b ? b(e.radius || 0) : I,
|
|
260
|
+
fill: o.filter(lo).length === 0 ? r[0] : e.color ? a.indexOf(`${e.color}`) === -1 || a.indexOf(`${e.color}`) > r.length - 1 ? T : r[a.indexOf(`${e.color}`)] : E.gray,
|
|
261
|
+
stroke: o.filter(no).length === 0 ? r[0] : e.color ? a.indexOf(`${e.color}`) === -1 || a.indexOf(`${e.color}`) > r.length - 1 ? T : r[a.indexOf(`${e.color}`)] : E.gray,
|
|
261
262
|
transition: {
|
|
262
|
-
duration:
|
|
263
|
+
duration: f.duration
|
|
263
264
|
}
|
|
264
265
|
}
|
|
265
|
-
}, initial: "initial", animate:
|
|
266
|
+
}, initial: "initial", animate: C ? "whileInView" : "initial", style: {
|
|
266
267
|
fillOpacity: 0.6
|
|
267
268
|
} }),
|
|
268
|
-
|
|
269
|
+
Gt && !w(e.label) ? /* @__PURE__ */ l.jsx(We.text, { style: {
|
|
269
270
|
...s?.graphObjectValues || {}
|
|
270
|
-
}, className:
|
|
271
|
+
}, className: fi("graph-value text-sm", n?.graphObjectValues), y: 0, exit: {
|
|
271
272
|
opacity: 0,
|
|
272
273
|
transition: {
|
|
273
|
-
duration:
|
|
274
|
+
duration: f.duration
|
|
274
275
|
}
|
|
275
276
|
}, variants: {
|
|
276
277
|
initial: {
|
|
277
|
-
x:
|
|
278
|
+
x: b ? b(e.radius || 0) : I,
|
|
278
279
|
opacity: 0,
|
|
279
|
-
fill:
|
|
280
|
+
fill: q || (o.filter(so).length === 0 ? r[0] : e.color ? a.indexOf(`${e.color}`) === -1 || a.indexOf(`${e.color}`) > r.length - 1 ? T : r[a.indexOf(`${e.color}`)] : E.gray)
|
|
280
281
|
},
|
|
281
282
|
whileInView: {
|
|
282
|
-
x:
|
|
283
|
+
x: b ? b(e.radius || 0) : I,
|
|
283
284
|
opacity: 1,
|
|
284
|
-
fill:
|
|
285
|
+
fill: q || (o.filter(oo).length === 0 ? r[0] : e.color ? a.indexOf(`${e.color}`) === -1 || a.indexOf(`${e.color}`) > r.length - 1 ? T : r[a.indexOf(`${e.color}`)] : E.gray),
|
|
285
286
|
transition: {
|
|
286
|
-
duration:
|
|
287
|
+
duration: f.duration
|
|
287
288
|
}
|
|
288
289
|
}
|
|
289
|
-
}, initial: "initial", animate:
|
|
290
|
+
}, initial: "initial", animate: C ? "whileInView" : "initial", dy: "0.33em", dx: 3, children: e.label }) : Z && !w(e.label) && Ae && Z.indexOf(e.label) !== -1 ? /* @__PURE__ */ l.jsx(We.text, { style: {
|
|
290
291
|
...s?.graphObjectValues || {}
|
|
291
|
-
}, className:
|
|
292
|
+
}, className: fi("graph-value text-sm", n?.graphObjectValues), y: 0, exit: {
|
|
292
293
|
opacity: 0,
|
|
293
294
|
transition: {
|
|
294
|
-
duration:
|
|
295
|
+
duration: f.duration
|
|
295
296
|
}
|
|
296
297
|
}, variants: {
|
|
297
298
|
initial: {
|
|
298
|
-
x:
|
|
299
|
+
x: b ? b(e.radius || 0) : I,
|
|
299
300
|
opacity: 0,
|
|
300
|
-
fill:
|
|
301
|
+
fill: q || (o.filter(io).length === 0 ? r[0] : e.color ? a.indexOf(`${e.color}`) === -1 || a.indexOf(`${e.color}`) > r.length - 1 ? T : r[a.indexOf(`${e.color}`)] : E.gray)
|
|
301
302
|
},
|
|
302
303
|
whileInView: {
|
|
303
|
-
x:
|
|
304
|
+
x: b ? b(e.radius || 0) : I,
|
|
304
305
|
opacity: 1,
|
|
305
|
-
fill:
|
|
306
|
+
fill: q || (o.filter(eo).length === 0 ? r[0] : e.color ? a.indexOf(`${e.color}`) === -1 || a.indexOf(`${e.color}`) > r.length - 1 ? T : r[a.indexOf(`${e.color}`)] : E.gray),
|
|
306
307
|
transition: {
|
|
307
|
-
duration:
|
|
308
|
+
duration: f.duration
|
|
308
309
|
}
|
|
309
310
|
}
|
|
310
|
-
}, initial: "initial", animate:
|
|
311
|
-
] }, `${e.label ||
|
|
312
|
-
const
|
|
313
|
-
const
|
|
314
|
-
x: e.xCoordinate ?
|
|
311
|
+
}, initial: "initial", animate: C ? "whileInView" : "initial", dy: "0.33em", dx: 3, children: e.label }) : null
|
|
312
|
+
] }, `${e.label || Wt}`)), vt = ne.map((e, Wt) => /* @__PURE__ */ l.jsx(Ti, { text: e.text, color: e.color, x: u(e.value), y1: 0, y2: A, textSide: u(e.value) > $ * 0.75 || at ? "left" : "right", classNames: e.classNames, styles: e.styles, animate: f, isInView: C }, Wt)), Q = ye.map((e, Wt) => /* @__PURE__ */ l.jsx(Xi, { text: e.text, color: e.color, y: g(e.value), x1: 0, x2: $, classNames: e.classNames, styles: e.styles, animate: f, isInView: C }, Wt));
|
|
313
|
+
const ai = Oe.map((e, Wt) => {
|
|
314
|
+
const V = ki({
|
|
315
|
+
x: e.xCoordinate ? u(e.xCoordinate) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
|
|
315
316
|
y: e.yCoordinate ? g(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8
|
|
316
317
|
}, {
|
|
317
|
-
x: e.xCoordinate ?
|
|
318
|
+
x: e.xCoordinate ? u(e.xCoordinate) : 0,
|
|
318
319
|
y: e.yCoordinate ? g(e.yCoordinate) : 0
|
|
319
|
-
},
|
|
320
|
-
y1:
|
|
321
|
-
x1:
|
|
320
|
+
}, w(e.connectorRadius) ? 3.5 : e.connectorRadius), bi = e.showConnector ? {
|
|
321
|
+
y1: V.y,
|
|
322
|
+
x1: V.x,
|
|
322
323
|
y2: e.yCoordinate ? g(e.yCoordinate) + (e.yOffset || 0) : 0 + (e.yOffset || 0),
|
|
323
|
-
x2: e.xCoordinate ?
|
|
324
|
+
x2: e.xCoordinate ? u(e.xCoordinate) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
|
|
324
325
|
cy: e.yCoordinate ? g(e.yCoordinate) : 0,
|
|
325
|
-
cx: e.xCoordinate ?
|
|
326
|
-
circleRadius:
|
|
326
|
+
cx: e.xCoordinate ? u(e.xCoordinate) : 0,
|
|
327
|
+
circleRadius: w(e.connectorRadius) ? 3.5 : e.connectorRadius,
|
|
327
328
|
strokeWidth: e.showConnector === !0 ? 2 : Math.min(e.showConnector || 0, 1)
|
|
328
|
-
} : void 0,
|
|
329
|
+
} : void 0, Oi = {
|
|
329
330
|
y: e.yCoordinate ? g(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8,
|
|
330
|
-
x:
|
|
331
|
-
width:
|
|
331
|
+
x: at ? 0 : e.xCoordinate ? u(e.xCoordinate) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
|
|
332
|
+
width: at ? e.xCoordinate ? u(e.xCoordinate) + (e.xOffset || 0) : 0 + (e.xOffset || 0) : $ + y.right - (e.xCoordinate ? u(e.xCoordinate) + (e.xOffset || 0) : 0 + (e.xOffset || 0)),
|
|
332
333
|
maxWidth: e.maxWidth,
|
|
333
334
|
fontWeight: e.fontWeight,
|
|
334
335
|
align: e.align
|
|
335
336
|
};
|
|
336
|
-
return /* @__PURE__ */ l.jsx(
|
|
337
|
+
return /* @__PURE__ */ l.jsx(Mi, { color: e.color, connectorsSettings: bi, labelSettings: Oi, text: e.text, classNames: e.classNames, styles: e.styles, animate: f, isInView: C }, Wt);
|
|
337
338
|
});
|
|
338
|
-
t[
|
|
339
|
+
t[186] !== ai ? (W = /* @__PURE__ */ l.jsx("g", { children: ai }), t[186] = ai, t[187] = W) : W = t[187], bt = Zt ? /* @__PURE__ */ l.jsx(Yi, { x1: 0, x2: $, y1: Ve(0), y2: Ve($), graphHeight: A, graphWidth: $, className: n?.regLine, style: s?.regLine, color: typeof Zt == "string" ? Zt : void 0, animate: f, isInView: C }) : null, t[8] = f, t[9] = Oe, t[10] = n?.graphObjectValues, t[11] = n?.regLine, t[12] = n?.xAxis?.axis, t[13] = n?.xAxis?.gridLines, t[14] = n?.xAxis?.labels, t[15] = n?.xAxis?.title, t[16] = n?.yAxis?.gridLines, t[17] = n?.yAxis?.labels, t[18] = n?.yAxis?.title, t[19] = a, t[20] = r, t[21] = Tt, t[22] = B, t[23] = o, t[24] = T, t[25] = N, t[26] = S, t[27] = L, t[28] = ve, t[29] = Z, t[30] = C, t[31] = q, t[32] = R, t[33] = y.bottom, t[34] = y.left, t[35] = y.right, t[36] = y.top, t[37] = be, t[38] = le, t[39] = re, t[40] = D, t[41] = j, t[42] = F, t[43] = X, t[44] = Bt, t[45] = zt, t[46] = M, t[47] = Nt, t[48] = I, t[49] = ne, t[50] = ye, t[51] = Zt, t[52] = qt, t[53] = at, t[54] = St, t[55] = Ae, t[56] = Gt, t[57] = Ce, t[58] = s?.graphObjectValues, t[59] = s?.regLine, t[60] = s?.xAxis?.axis, t[61] = s?.xAxis?.gridLines, t[62] = s?.xAxis?.labels, t[63] = s?.xAxis?.title, t[64] = s?.yAxis?.gridLines, t[65] = s?.yAxis?.labels, t[66] = s?.yAxis?.title, t[67] = Ut, t[68] = rt, t[69] = O, t[70] = m?.locale, t[71] = m?.padZeros, t[72] = m?.precision, t[73] = m?.prefix, t[74] = m?.suffix, t[75] = G, t[76] = d?.locale, t[77] = d?.padZeros, t[78] = d?.precision, t[79] = d?.prefix, t[80] = d?.suffix, t[81] = ct, t[82] = ft, t[83] = U, t[84] = ut, t[85] = xt, t[86] = mt, t[87] = H, t[88] = pt, t[89] = dt, t[90] = gt, t[91] = ht, t[92] = J, t[93] = yt, t[94] = K, t[95] = vt, t[96] = Q, t[97] = W, t[98] = bt;
|
|
339
340
|
} else
|
|
340
|
-
|
|
341
|
-
let
|
|
342
|
-
t[
|
|
343
|
-
z,
|
|
344
|
-
ht,
|
|
345
|
-
U,
|
|
341
|
+
ct = t[81], ft = t[82], U = t[83], ut = t[84], xt = t[85], mt = t[86], H = t[87], pt = t[88], dt = t[89], gt = t[90], ht = t[91], J = t[92], yt = t[93], K = t[94], vt = t[95], Q = t[96], W = t[97], bt = t[98];
|
|
342
|
+
let Ot;
|
|
343
|
+
t[188] !== ct || t[189] !== yt || t[190] !== K || t[191] !== vt || t[192] !== Q || t[193] !== W || t[194] !== bt ? (Ot = /* @__PURE__ */ l.jsxs(ct, { children: [
|
|
346
344
|
yt,
|
|
347
|
-
|
|
348
|
-
vt
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
345
|
+
K,
|
|
346
|
+
vt,
|
|
347
|
+
Q,
|
|
348
|
+
W,
|
|
349
|
+
bt
|
|
350
|
+
] }), t[188] = ct, t[189] = yt, t[190] = K, t[191] = vt, t[192] = Q, t[193] = W, t[194] = bt, t[195] = Ot) : Ot = t[195];
|
|
351
|
+
let _;
|
|
352
|
+
t[196] !== B ? (_ = B.filter(to).map(_i), t[196] = B, t[197] = _) : _ = t[197];
|
|
353
|
+
let tt;
|
|
354
|
+
t[198] !== U || t[199] !== ut || t[200] !== xt || t[201] !== mt || t[202] !== H || t[203] !== Ot || t[204] !== _ ? (tt = /* @__PURE__ */ l.jsxs("g", { transform: U, children: [
|
|
355
355
|
ut,
|
|
356
|
+
xt,
|
|
356
357
|
mt,
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
] }), t[
|
|
361
|
-
let
|
|
362
|
-
t[
|
|
358
|
+
H,
|
|
359
|
+
Ot,
|
|
360
|
+
_
|
|
361
|
+
] }), t[198] = U, t[199] = ut, t[200] = xt, t[201] = mt, t[202] = H, t[203] = Ot, t[204] = _, t[205] = tt) : tt = t[205];
|
|
362
|
+
let k;
|
|
363
|
+
t[206] !== ft || t[207] !== pt || t[208] !== dt || t[209] !== gt || t[210] !== ht || t[211] !== J || t[212] !== tt ? (k = /* @__PURE__ */ l.jsx(ft, { width: pt, height: dt, viewBox: gt, direction: ht, ref: J, children: tt }), t[206] = ft, t[207] = pt, t[208] = dt, t[209] = gt, t[210] = ht, t[211] = J, t[212] = tt, t[213] = k) : k = t[213];
|
|
363
364
|
let At;
|
|
364
|
-
t[
|
|
365
|
-
let
|
|
366
|
-
t[
|
|
367
|
-
let
|
|
368
|
-
return t[
|
|
369
|
-
|
|
365
|
+
t[214] !== n?.tooltip || t[215] !== p || t[216] !== ce || t[217] !== X || t[218] !== s?.tooltip || t[219] !== se ? (At = X && se && p && ce ? /* @__PURE__ */ l.jsx(Di, { data: X, body: se, xPos: p, yPos: ce, backgroundStyle: s?.tooltip, className: n?.tooltip }) : null, t[214] = n?.tooltip, t[215] = p, t[216] = ce, t[217] = X, t[218] = s?.tooltip, t[219] = se, t[220] = At) : At = t[220];
|
|
366
|
+
let Ct;
|
|
367
|
+
t[221] !== n?.modal || t[222] !== N || t[223] !== F ? (Ct = N && F !== void 0 ? /* @__PURE__ */ l.jsx(Ri, { body: N, data: F, setData: h, className: n?.modal }) : null, t[221] = n?.modal, t[222] = N, t[223] = F, t[224] = Ct) : Ct = t[224];
|
|
368
|
+
let Pt;
|
|
369
|
+
return t[225] !== k || t[226] !== At || t[227] !== Ct ? (Pt = /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
370
|
+
k,
|
|
370
371
|
At,
|
|
371
|
-
|
|
372
|
-
] }), t[
|
|
373
|
-
}
|
|
374
|
-
function Qi(i) {
|
|
375
|
-
return i.layer;
|
|
372
|
+
Ct
|
|
373
|
+
] }), t[225] = k, t[226] = At, t[227] = Ct, t[228] = Pt) : Pt = t[228], Pt;
|
|
376
374
|
}
|
|
377
375
|
function _i(i) {
|
|
378
|
-
return i.
|
|
376
|
+
return i.layer;
|
|
379
377
|
}
|
|
380
378
|
function to(i) {
|
|
381
|
-
return i.
|
|
379
|
+
return i.position === "after";
|
|
382
380
|
}
|
|
383
381
|
function eo(i) {
|
|
384
382
|
return i.color;
|
|
@@ -402,220 +400,224 @@ function ro(i) {
|
|
|
402
400
|
return i.color;
|
|
403
401
|
}
|
|
404
402
|
function ao(i) {
|
|
405
|
-
return i.
|
|
403
|
+
return i.color;
|
|
406
404
|
}
|
|
407
405
|
function co(i) {
|
|
408
|
-
return i.
|
|
406
|
+
return i.layer;
|
|
409
407
|
}
|
|
410
408
|
function fo(i) {
|
|
411
|
-
return i
|
|
409
|
+
return i.position === "before";
|
|
412
410
|
}
|
|
413
411
|
function uo(i) {
|
|
414
412
|
return i !== 0;
|
|
415
413
|
}
|
|
416
|
-
function
|
|
414
|
+
function xo(i) {
|
|
417
415
|
return i !== 0;
|
|
418
416
|
}
|
|
419
|
-
function
|
|
417
|
+
function mo(i) {
|
|
420
418
|
return i !== 0;
|
|
421
419
|
}
|
|
422
420
|
function po(i) {
|
|
423
|
-
return
|
|
421
|
+
return i !== 0;
|
|
424
422
|
}
|
|
425
423
|
function go(i) {
|
|
426
|
-
return !
|
|
424
|
+
return !w(i.x) && !w(i.y);
|
|
427
425
|
}
|
|
428
426
|
function ho(i) {
|
|
429
|
-
return !
|
|
427
|
+
return !w(i.radius) && !w(i.x) && !w(i.y);
|
|
430
428
|
}
|
|
431
429
|
function yo(i) {
|
|
432
|
-
return !
|
|
430
|
+
return !w(i.x) && !w(i.y);
|
|
433
431
|
}
|
|
434
432
|
function vo(i) {
|
|
433
|
+
return !w(i.radius);
|
|
434
|
+
}
|
|
435
|
+
function bo(i) {
|
|
435
436
|
return i.radius === void 0 || i.radius === null;
|
|
436
437
|
}
|
|
437
|
-
function
|
|
438
|
+
function Oo(i, t) {
|
|
438
439
|
return {
|
|
439
440
|
...i,
|
|
440
441
|
id: `${t}`
|
|
441
442
|
};
|
|
442
443
|
}
|
|
443
|
-
function
|
|
444
|
-
const t =
|
|
444
|
+
function Ms(i) {
|
|
445
|
+
const t = vi.c(141), {
|
|
445
446
|
data: o,
|
|
446
|
-
graphTitle:
|
|
447
|
-
colors:
|
|
448
|
-
sources:
|
|
449
|
-
graphDescription:
|
|
450
|
-
showLabels:
|
|
451
|
-
height:
|
|
452
|
-
width:
|
|
453
|
-
footNote:
|
|
454
|
-
colorDomain:
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
447
|
+
graphTitle: rt,
|
|
448
|
+
colors: L,
|
|
449
|
+
sources: Gt,
|
|
450
|
+
graphDescription: r,
|
|
451
|
+
showLabels: a,
|
|
452
|
+
height: I,
|
|
453
|
+
width: O,
|
|
454
|
+
footNote: G,
|
|
455
|
+
colorDomain: R,
|
|
456
|
+
defaultColor: he,
|
|
457
|
+
colorLegendTitle: oe,
|
|
458
|
+
radius: Ye,
|
|
459
|
+
xAxisTitle: se,
|
|
460
|
+
yAxisTitle: Nt,
|
|
461
|
+
padding: ne,
|
|
462
|
+
backgroundColor: ye,
|
|
463
|
+
leftMargin: ve,
|
|
464
|
+
rightMargin: St,
|
|
465
|
+
topMargin: Z,
|
|
466
|
+
bottomMargin: be,
|
|
465
467
|
tooltip: le,
|
|
466
|
-
relativeHeight:
|
|
467
|
-
onSeriesMouseOver:
|
|
468
|
-
refXValues:
|
|
469
|
-
refYValues:
|
|
470
|
-
highlightAreaSettings:
|
|
471
|
-
showColorScale:
|
|
472
|
-
highlightedDataPoints:
|
|
473
|
-
showHighlightedDataPointsLabels:
|
|
474
|
-
graphID:
|
|
475
|
-
maxRadiusValue:
|
|
476
|
-
maxXValue:
|
|
477
|
-
minXValue:
|
|
478
|
-
maxYValue:
|
|
479
|
-
minYValue:
|
|
480
|
-
onSeriesMouseClick:
|
|
481
|
-
graphDownload:
|
|
482
|
-
dataDownload:
|
|
483
|
-
language:
|
|
484
|
-
showNAColor:
|
|
485
|
-
minHeight:
|
|
486
|
-
annotations:
|
|
487
|
-
customHighlightAreaSettings:
|
|
488
|
-
theme:
|
|
489
|
-
regressionLine:
|
|
490
|
-
ariaLabel:
|
|
491
|
-
resetSelectionOnDoubleClick:
|
|
492
|
-
detailsOnClick:
|
|
493
|
-
noOfXTicks:
|
|
494
|
-
noOfYTicks:
|
|
495
|
-
labelColor:
|
|
468
|
+
relativeHeight: D,
|
|
469
|
+
onSeriesMouseOver: re,
|
|
470
|
+
refXValues: j,
|
|
471
|
+
refYValues: M,
|
|
472
|
+
highlightAreaSettings: at,
|
|
473
|
+
showColorScale: Oe,
|
|
474
|
+
highlightedDataPoints: Tt,
|
|
475
|
+
showHighlightedDataPointsLabels: Zt,
|
|
476
|
+
graphID: qt,
|
|
477
|
+
maxRadiusValue: N,
|
|
478
|
+
maxXValue: Bt,
|
|
479
|
+
minXValue: zt,
|
|
480
|
+
maxYValue: q,
|
|
481
|
+
minYValue: s,
|
|
482
|
+
onSeriesMouseClick: n,
|
|
483
|
+
graphDownload: f,
|
|
484
|
+
dataDownload: S,
|
|
485
|
+
language: Ae,
|
|
486
|
+
showNAColor: B,
|
|
487
|
+
minHeight: Ce,
|
|
488
|
+
annotations: Ut,
|
|
489
|
+
customHighlightAreaSettings: m,
|
|
490
|
+
theme: d,
|
|
491
|
+
regressionLine: T,
|
|
492
|
+
ariaLabel: $e,
|
|
493
|
+
resetSelectionOnDoubleClick: ae,
|
|
494
|
+
detailsOnClick: C,
|
|
495
|
+
noOfXTicks: X,
|
|
496
|
+
noOfYTicks: Xt,
|
|
497
|
+
labelColor: F,
|
|
496
498
|
styles: h,
|
|
497
|
-
classNames:
|
|
498
|
-
animate:
|
|
499
|
-
dimmedOpacity:
|
|
500
|
-
customLayers:
|
|
501
|
-
timeline:
|
|
502
|
-
showVoronoiTesselation:
|
|
503
|
-
useVoronoiInteraction:
|
|
504
|
-
xNumberDisplayOptions:
|
|
505
|
-
yNumberDisplayOptions:
|
|
506
|
-
} = i,
|
|
507
|
-
let
|
|
508
|
-
t[0] !==
|
|
509
|
-
const
|
|
510
|
-
let
|
|
511
|
-
t[2] !==
|
|
512
|
-
const
|
|
513
|
-
let U;
|
|
514
|
-
t[4] !== M ? (U = M === void 0 ? [] : M, t[4] = M, t[5] = U) : U = t[5];
|
|
515
|
-
const yt = U, H = Wt === void 0 ? !0 : Wt, vt = Et === void 0 ? !1 : Et, J = n === void 0 ? !1 : n, K = a === void 0 ? !1 : a, $ = S === void 0 ? "en" : S, bt = Ce === void 0 ? !0 : Ce, At = Z === void 0 ? 0 : Z;
|
|
499
|
+
classNames: p,
|
|
500
|
+
animate: Yt,
|
|
501
|
+
dimmedOpacity: ce,
|
|
502
|
+
customLayers: z,
|
|
503
|
+
timeline: Jt,
|
|
504
|
+
showVoronoiTesselation: we,
|
|
505
|
+
useVoronoiInteraction: fe,
|
|
506
|
+
xNumberDisplayOptions: y,
|
|
507
|
+
yNumberDisplayOptions: ct
|
|
508
|
+
} = i, ft = a === void 0 ? !1 : a, U = he === void 0 ? E.gray : he, ut = Ye === void 0 ? 5 : Ye, xt = se === void 0 ? "X Axis" : se, mt = Nt === void 0 ? "Y Axis" : Nt, H = ye === void 0 ? !1 : ye, pt = ve === void 0 ? 0 : ve, dt = St === void 0 ? 10 : St, gt = Z === void 0 ? 20 : Z, ht = be === void 0 ? 50 : be;
|
|
509
|
+
let J;
|
|
510
|
+
t[0] !== j ? (J = j === void 0 ? [] : j, t[0] = j, t[1] = J) : J = t[1];
|
|
511
|
+
const yt = J;
|
|
512
|
+
let K;
|
|
513
|
+
t[2] !== M ? (K = M === void 0 ? [] : M, t[2] = M, t[3] = K) : K = t[3];
|
|
514
|
+
const vt = K;
|
|
516
515
|
let Q;
|
|
517
|
-
t[
|
|
518
|
-
const
|
|
519
|
-
let
|
|
520
|
-
t[
|
|
521
|
-
const
|
|
522
|
-
let
|
|
523
|
-
t[
|
|
524
|
-
const
|
|
525
|
-
let
|
|
526
|
-
t[
|
|
516
|
+
t[4] !== at ? (Q = at === void 0 ? [] : at, t[4] = at, t[5] = Q) : Q = t[5];
|
|
517
|
+
const W = Q, bt = Oe === void 0 ? !0 : Oe, Ot = Zt === void 0 ? !1 : Zt, _ = f === void 0 ? !1 : f, tt = S === void 0 ? !1 : S, k = Ae === void 0 ? "en" : Ae, At = B === void 0 ? !0 : B, Ct = Ce === void 0 ? 0 : Ce;
|
|
518
|
+
let Pt;
|
|
519
|
+
t[6] !== Ut ? (Pt = Ut === void 0 ? [] : Ut, t[6] = Ut, t[7] = Pt) : Pt = t[7];
|
|
520
|
+
const ue = Pt;
|
|
521
|
+
let $;
|
|
522
|
+
t[8] !== m ? ($ = m === void 0 ? [] : m, t[8] = m, t[9] = $) : $ = t[9];
|
|
523
|
+
const A = $, b = d === void 0 ? "light" : d, Kt = T === void 0 ? !1 : T, u = ae === void 0 ? !0 : ae, g = X === void 0 ? 5 : X, Le = Xt === void 0 ? 5 : Xt, xe = Yt === void 0 ? !1 : Yt, Pe = ce === void 0 ? 0.3 : ce;
|
|
524
|
+
let je;
|
|
525
|
+
t[10] !== z ? (je = z === void 0 ? [] : z, t[10] = z, t[11] = je) : je = t[11];
|
|
526
|
+
const Ve = je;
|
|
527
|
+
let It;
|
|
528
|
+
t[12] !== Jt ? (It = Jt === void 0 ? {
|
|
527
529
|
enabled: !1,
|
|
528
530
|
autoplay: !1,
|
|
529
531
|
showOnlyActiveDate: !0
|
|
530
|
-
} :
|
|
531
|
-
const
|
|
532
|
-
let
|
|
533
|
-
if (t[14] !== o || t[15] !==
|
|
534
|
-
let
|
|
535
|
-
t[17] !==
|
|
532
|
+
} : Jt, t[12] = Jt, t[13] = It) : It = t[13];
|
|
533
|
+
const c = It, me = we === void 0 ? !1 : we, Qt = fe === void 0 ? !0 : fe, [_t, Ie] = Et(0), [Rt, Re] = Et(0), [Y, Fe] = Et(c.autoplay);
|
|
534
|
+
let Ft;
|
|
535
|
+
if (t[14] !== o || t[15] !== c.dateFormat) {
|
|
536
|
+
let v;
|
|
537
|
+
t[17] !== c.dateFormat ? (v = (lt) => Ci(`${lt.date}`, c.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[17] = c.dateFormat, t[18] = v) : v = t[18], Ft = [...new Set(o.filter(Jo).map(v))], Ft.sort(Uo), t[14] = o, t[15] = c.dateFormat, t[16] = Ft;
|
|
536
538
|
} else
|
|
537
|
-
|
|
538
|
-
const
|
|
539
|
-
let
|
|
540
|
-
t[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
541
|
-
const
|
|
542
|
-
|
|
539
|
+
Ft = t[16];
|
|
540
|
+
const x = Ft, [P, pe] = Et(c.autoplay ? 0 : x.length - 1), [de, He] = Et(void 0), $t = ci(null), De = ci(null);
|
|
541
|
+
let et, te;
|
|
542
|
+
t[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (et = () => {
|
|
543
|
+
const v = new ResizeObserver((lt) => {
|
|
544
|
+
Ie(lt[0].target.clientWidth || 620), Re(lt[0].target.clientHeight || 480);
|
|
543
545
|
});
|
|
544
|
-
return
|
|
545
|
-
},
|
|
546
|
-
let
|
|
547
|
-
t[21] !==
|
|
548
|
-
const
|
|
549
|
-
|
|
550
|
-
}, (
|
|
551
|
-
return
|
|
552
|
-
},
|
|
553
|
-
const
|
|
554
|
-
let
|
|
555
|
-
t[26] !==
|
|
556
|
-
const
|
|
557
|
-
let
|
|
558
|
-
t[31] !==
|
|
546
|
+
return $t.current && v.observe($t.current), () => v.disconnect();
|
|
547
|
+
}, te = [], t[19] = et, t[20] = te) : (et = t[19], te = t[20]), ui(et, te);
|
|
548
|
+
let ee, it;
|
|
549
|
+
t[21] !== Y || t[22] !== c.speed || t[23] !== x ? (ee = () => {
|
|
550
|
+
const v = setInterval(() => {
|
|
551
|
+
pe((lt) => lt < x.length - 1 ? lt + 1 : 0);
|
|
552
|
+
}, (c.speed || 2) * 1e3);
|
|
553
|
+
return Y || clearInterval(v), () => clearInterval(v);
|
|
554
|
+
}, it = [x, Y, c.speed], t[21] = Y, t[22] = c.speed, t[23] = x, t[24] = ee, t[25] = it) : (ee = t[24], it = t[25]), ui(ee, it);
|
|
555
|
+
const ge = c.dateFormat || "yyyy";
|
|
556
|
+
let ot;
|
|
557
|
+
t[26] !== P || t[27] !== ge || t[28] !== c.showOnlyActiveDate || t[29] !== x ? (ot = $i(x, P, c.showOnlyActiveDate, ge), t[26] = P, t[27] = ge, t[28] = c.showOnlyActiveDate, t[29] = x, t[30] = ot) : ot = t[30];
|
|
558
|
+
const st = ot, wt = p?.graphContainer, ie = h?.graphContainer;
|
|
559
|
+
let Lt;
|
|
560
|
+
t[31] !== p?.description || t[32] !== p?.title || t[33] !== o || t[34] !== tt || t[35] !== r || t[36] !== _ || t[37] !== rt || t[38] !== h?.description || t[39] !== h?.title || t[40] !== O ? (Lt = rt || r || _ || tt ? /* @__PURE__ */ l.jsx(Gi, { styles: {
|
|
559
561
|
title: h?.title,
|
|
560
562
|
description: h?.description
|
|
561
563
|
}, classNames: {
|
|
562
|
-
title:
|
|
563
|
-
description:
|
|
564
|
-
}, graphTitle:
|
|
565
|
-
let
|
|
566
|
-
t[42] !==
|
|
564
|
+
title: p?.title,
|
|
565
|
+
description: p?.description
|
|
566
|
+
}, graphTitle: rt, graphDescription: r, width: O, graphDownload: _ ? De : void 0, dataDownload: tt ? o.map(zo).filter(Bo).length > 0 ? o.map(qo).filter(Zo) : o.filter(Go) : null }) : null, t[31] = p?.description, t[32] = p?.title, t[33] = o, t[34] = tt, t[35] = r, t[36] = _, t[37] = rt, t[38] = h?.description, t[39] = h?.title, t[40] = O, t[41] = Lt) : Lt = t[41];
|
|
567
|
+
let jt;
|
|
568
|
+
t[42] !== P || t[43] !== st || t[44] !== Y || t[45] !== c.enabled || t[46] !== x ? (jt = c.enabled && x.length > 0 && st ? /* @__PURE__ */ l.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
|
|
567
569
|
/* @__PURE__ */ l.jsx("button", { type: "button", onClick: () => {
|
|
568
|
-
|
|
569
|
-
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label":
|
|
570
|
-
/* @__PURE__ */ l.jsx(wi, { min:
|
|
571
|
-
|
|
572
|
-
}, onChange: (
|
|
573
|
-
|
|
570
|
+
Fe(!Y);
|
|
571
|
+
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": Y ? "Click to pause animation" : "Click to play animation", children: Y ? /* @__PURE__ */ l.jsx(Bi, {}) : /* @__PURE__ */ l.jsx(zi, {}) }),
|
|
572
|
+
/* @__PURE__ */ l.jsx(wi, { min: x[0], max: x[x.length - 1], marks: st, step: null, defaultValue: x[x.length - 1], value: x[P], onChangeComplete: (v) => {
|
|
573
|
+
pe(x.indexOf(v));
|
|
574
|
+
}, onChange: (v) => {
|
|
575
|
+
pe(x.indexOf(v));
|
|
574
576
|
}, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
|
|
575
|
-
] }) : null, t[42] =
|
|
576
|
-
let jt;
|
|
577
|
-
t[48] !== x?.colorLegend || t[49] !== I || t[50] !== se || t[51] !== D || t[52] !== o || t[53] !== H || t[54] !== bt || t[55] !== m || t[56] !== b ? (jt = H && o.filter(Wo).length !== 0 && o.length > 0 ? /* @__PURE__ */ l.jsx(Gi, { width: b, colorLegendTitle: se, colors: D || st[m].categoricalColors.colors, colorDomain: I || hi(o, "color", !0), setSelectedColor: Re, showNAColor: bt, className: x?.colorLegend }) : null, t[48] = x?.colorLegend, t[49] = I, t[50] = se, t[51] = D, t[52] = o, t[53] = H, t[54] = bt, t[55] = m, t[56] = b, t[57] = jt) : jt = t[57];
|
|
577
|
+
] }) : null, t[42] = P, t[43] = st, t[44] = Y, t[45] = c.enabled, t[46] = x, t[47] = jt) : jt = t[47];
|
|
578
578
|
let Vt;
|
|
579
|
-
t[
|
|
579
|
+
t[48] !== p?.colorLegend || t[49] !== R || t[50] !== oe || t[51] !== L || t[52] !== o || t[53] !== bt || t[54] !== At || t[55] !== b || t[56] !== O ? (Vt = bt && o.filter(Eo).length !== 0 && o.length > 0 ? /* @__PURE__ */ l.jsx(Zi, { width: O, colorLegendTitle: oe, colors: L || E[b].categoricalColors.colors, colorDomain: R || yi(o, "color", !0), setSelectedColor: He, showNAColor: At, className: p?.colorLegend }) : null, t[48] = p?.colorLegend, t[49] = R, t[50] = oe, t[51] = L, t[52] = o, t[53] = bt, t[54] = At, t[55] = b, t[56] = O, t[57] = Vt) : Vt = t[57];
|
|
580
580
|
let Dt;
|
|
581
|
-
t[
|
|
581
|
+
t[58] !== o.length ? (Dt = o.length === 0 && /* @__PURE__ */ l.jsx(qi, {}), t[58] = o.length, t[59] = Dt) : Dt = t[59];
|
|
582
|
+
let nt;
|
|
583
|
+
t[60] !== xe || t[61] !== ue || t[62] !== ht || t[63] !== p || t[64] !== R || t[65] !== L || t[66] !== A || t[67] !== Ve || t[68] !== o || t[69] !== U || t[70] !== C || t[71] !== Pe || t[72] !== W || t[73] !== Tt || t[74] !== P || t[75] !== F || t[76] !== k || t[77] !== pt || t[78] !== N || t[79] !== Bt || t[80] !== q || t[81] !== zt || t[82] !== s || t[83] !== g || t[84] !== Le || t[85] !== n || t[86] !== re || t[87] !== ut || t[88] !== yt || t[89] !== vt || t[90] !== Kt || t[91] !== u || t[92] !== dt || t[93] !== de || t[94] !== Ot || t[95] !== ft || t[96] !== me || t[97] !== h || t[98] !== Rt || t[99] !== _t || t[100] !== b || t[101] !== c.dateFormat || t[102] !== c.enabled || t[103] !== le || t[104] !== gt || t[105] !== x || t[106] !== Qt || t[107] !== xt || t[108] !== y || t[109] !== mt || t[110] !== ct ? (nt = _t && Rt && o.length > 0 ? /* @__PURE__ */ l.jsx(Qi, { data: Ui(o, c.dateFormat || "yyyy").filter((v) => c.enabled ? `${v.date}` === Ai(new Date(x[P]), c.dateFormat || "yyyy") : v), width: _t, height: Rt, colorDomain: o.filter(Wo).length === 0 ? [] : R || yi(o, "color", !0), colors: o.filter(Ho).length === 0 ? L ? typeof L == "string" ? [L] : [L[0]] : [U || E.primaryColors["blue-600"]] : L || E[b].categoricalColors.colors, xAxisTitle: xt, yAxisTitle: mt, refXValues: yt, refYValues: vt, showLabels: ft, radius: ut, leftMargin: pt, rightMargin: dt, topMargin: gt, bottomMargin: ht, tooltip: le, onSeriesMouseOver: re, highlightAreaSettings: W, showVoronoiTesselation: me, highlightedDataPoints: o.filter(Fo).length === 0 ? [] : Tt, showHighlightedDataPointsLabels: Ot, selectedColor: de, maxRadiusValue: w(N) ? Math.max(...o.map(Ro).filter(Io)) : N, maxXValue: w(Bt) ? Math.max(...o.map(Po).filter(Yo)) > 0 ? Math.max(...o.map(Xo).filter(To)) : 0 : Bt, minXValue: w(zt) ? Math.min(...o.map(So).filter(No)) > 0 ? 0 : Math.min(...o.map(Mo).filter(ko)) : zt, maxYValue: w(q) ? Math.max(...o.map(Do).filter(Vo)) > 0 ? Math.max(...o.map(jo).filter(Lo)) : 0 : q, minYValue: w(s) ? Math.min(...o.map(wo).filter($o)) > 0 ? 0 : Math.min(...o.map(Co).filter(Ao)) : s, onSeriesMouseClick: n, rtl: k === "he" || k === "ar", annotations: ue, customHighlightAreaSettings: A, regressionLine: Kt, resetSelectionOnDoubleClick: u, detailsOnClick: C, noOfXTicks: g, noOfYTicks: Le, labelColor: F, styles: h, classNames: p, animate: xe === !0 ? {
|
|
582
584
|
duration: 0.5,
|
|
583
585
|
once: !0,
|
|
584
586
|
amount: 0.5
|
|
585
|
-
} :
|
|
587
|
+
} : xe || {
|
|
586
588
|
duration: 0,
|
|
587
589
|
once: !0,
|
|
588
590
|
amount: 0
|
|
589
|
-
}, dimmedOpacity:
|
|
590
|
-
let
|
|
591
|
-
t[
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
] }), t[
|
|
595
|
-
let
|
|
596
|
-
t[
|
|
591
|
+
}, dimmedOpacity: Pe, customLayers: Ve, useVoronoiInteraction: Qt, xNumberDisplayOptions: y, yNumberDisplayOptions: ct, defaultColor: U }) : null, t[60] = xe, t[61] = ue, t[62] = ht, t[63] = p, t[64] = R, t[65] = L, t[66] = A, t[67] = Ve, t[68] = o, t[69] = U, t[70] = C, t[71] = Pe, t[72] = W, t[73] = Tt, t[74] = P, t[75] = F, t[76] = k, t[77] = pt, t[78] = N, t[79] = Bt, t[80] = q, t[81] = zt, t[82] = s, t[83] = g, t[84] = Le, t[85] = n, t[86] = re, t[87] = ut, t[88] = yt, t[89] = vt, t[90] = Kt, t[91] = u, t[92] = dt, t[93] = de, t[94] = Ot, t[95] = ft, t[96] = me, t[97] = h, t[98] = Rt, t[99] = _t, t[100] = b, t[101] = c.dateFormat, t[102] = c.enabled, t[103] = le, t[104] = gt, t[105] = x, t[106] = Qt, t[107] = xt, t[108] = y, t[109] = mt, t[110] = ct, t[111] = nt) : nt = t[111];
|
|
592
|
+
let kt;
|
|
593
|
+
t[112] !== Dt || t[113] !== nt ? (kt = /* @__PURE__ */ l.jsxs(Ji, { ref: $t, children: [
|
|
594
|
+
Dt,
|
|
595
|
+
nt
|
|
596
|
+
] }), t[112] = Dt, t[113] = nt, t[114] = kt) : kt = t[114];
|
|
597
|
+
let Mt;
|
|
598
|
+
t[115] !== p?.footnote || t[116] !== p?.source || t[117] !== G || t[118] !== Gt || t[119] !== h?.footnote || t[120] !== h?.source || t[121] !== O ? (Mt = Gt || G ? /* @__PURE__ */ l.jsx(Ei, { styles: {
|
|
597
599
|
footnote: h?.footnote,
|
|
598
600
|
source: h?.source
|
|
599
601
|
}, classNames: {
|
|
600
|
-
footnote:
|
|
601
|
-
source:
|
|
602
|
-
}, sources:
|
|
603
|
-
let
|
|
604
|
-
return t[
|
|
605
|
-
et,
|
|
602
|
+
footnote: p?.footnote,
|
|
603
|
+
source: p?.source
|
|
604
|
+
}, sources: Gt, footNote: G, width: O }) : null, t[115] = p?.footnote, t[116] = p?.source, t[117] = G, t[118] = Gt, t[119] = h?.footnote, t[120] = h?.source, t[121] = O, t[122] = Mt) : Mt = t[122];
|
|
605
|
+
let Ht;
|
|
606
|
+
return t[123] !== $e || t[124] !== H || t[125] !== qt || t[126] !== I || t[127] !== k || t[128] !== Ct || t[129] !== ne || t[130] !== D || t[131] !== wt || t[132] !== ie || t[133] !== Lt || t[134] !== jt || t[135] !== Vt || t[136] !== kt || t[137] !== Mt || t[138] !== b || t[139] !== O ? (Ht = /* @__PURE__ */ l.jsxs(Ki, { className: wt, style: ie, id: qt, ref: De, "aria-label": $e, backgroundColor: H, theme: b, language: k, minHeight: Ct, width: O, height: I, relativeHeight: D, padding: ne, children: [
|
|
606
607
|
Lt,
|
|
607
608
|
jt,
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
609
|
+
Vt,
|
|
610
|
+
kt,
|
|
611
|
+
Mt
|
|
612
|
+
] }), t[123] = $e, t[124] = H, t[125] = qt, t[126] = I, t[127] = k, t[128] = Ct, t[129] = ne, t[130] = D, t[131] = wt, t[132] = ie, t[133] = Lt, t[134] = jt, t[135] = Vt, t[136] = kt, t[137] = Mt, t[138] = b, t[139] = O, t[140] = Ht) : Ht = t[140], Ht;
|
|
611
613
|
}
|
|
612
614
|
function Ao(i) {
|
|
613
615
|
return i != null;
|
|
614
616
|
}
|
|
615
|
-
function
|
|
617
|
+
function Co(i) {
|
|
616
618
|
return i.y;
|
|
617
619
|
}
|
|
618
|
-
function
|
|
620
|
+
function $o(i) {
|
|
619
621
|
return i != null;
|
|
620
622
|
}
|
|
621
623
|
function wo(i) {
|
|
@@ -633,41 +635,38 @@ function Vo(i) {
|
|
|
633
635
|
function Do(i) {
|
|
634
636
|
return i.y;
|
|
635
637
|
}
|
|
636
|
-
function $o(i) {
|
|
637
|
-
return i != null;
|
|
638
|
-
}
|
|
639
638
|
function ko(i) {
|
|
640
|
-
return i
|
|
639
|
+
return i != null;
|
|
641
640
|
}
|
|
642
641
|
function Mo(i) {
|
|
643
|
-
return i
|
|
642
|
+
return i.x;
|
|
644
643
|
}
|
|
645
644
|
function No(i) {
|
|
646
|
-
return i
|
|
645
|
+
return i != null;
|
|
647
646
|
}
|
|
648
647
|
function So(i) {
|
|
649
|
-
return i
|
|
648
|
+
return i.x;
|
|
650
649
|
}
|
|
651
650
|
function To(i) {
|
|
652
|
-
return i
|
|
651
|
+
return i != null;
|
|
653
652
|
}
|
|
654
653
|
function Xo(i) {
|
|
655
|
-
return i
|
|
654
|
+
return i.x;
|
|
656
655
|
}
|
|
657
656
|
function Yo(i) {
|
|
658
|
-
return i
|
|
657
|
+
return i != null;
|
|
659
658
|
}
|
|
660
659
|
function Po(i) {
|
|
661
|
-
return i
|
|
660
|
+
return i.x;
|
|
662
661
|
}
|
|
663
662
|
function Io(i) {
|
|
664
|
-
return i
|
|
663
|
+
return i != null;
|
|
665
664
|
}
|
|
666
665
|
function Ro(i) {
|
|
667
|
-
return i.
|
|
666
|
+
return i.radius;
|
|
668
667
|
}
|
|
669
668
|
function Fo(i) {
|
|
670
|
-
return i.
|
|
669
|
+
return i.label;
|
|
671
670
|
}
|
|
672
671
|
function Ho(i) {
|
|
673
672
|
return i.color;
|
|
@@ -676,27 +675,30 @@ function Wo(i) {
|
|
|
676
675
|
return i.color;
|
|
677
676
|
}
|
|
678
677
|
function Eo(i) {
|
|
679
|
-
return i
|
|
678
|
+
return i.color;
|
|
680
679
|
}
|
|
681
680
|
function Go(i) {
|
|
682
681
|
return i !== void 0;
|
|
683
682
|
}
|
|
684
683
|
function Zo(i) {
|
|
685
|
-
return i
|
|
684
|
+
return i !== void 0;
|
|
686
685
|
}
|
|
687
686
|
function qo(i) {
|
|
688
|
-
return i
|
|
687
|
+
return i.data;
|
|
689
688
|
}
|
|
690
689
|
function Bo(i) {
|
|
690
|
+
return i !== void 0;
|
|
691
|
+
}
|
|
692
|
+
function zo(i) {
|
|
691
693
|
return i.data;
|
|
692
694
|
}
|
|
693
|
-
function
|
|
695
|
+
function Uo(i, t) {
|
|
694
696
|
return i - t;
|
|
695
697
|
}
|
|
696
|
-
function
|
|
698
|
+
function Jo(i) {
|
|
697
699
|
return i.date;
|
|
698
700
|
}
|
|
699
701
|
export {
|
|
700
|
-
|
|
702
|
+
Ms as ScatterPlot
|
|
701
703
|
};
|
|
702
704
|
//# sourceMappingURL=ScatterPlot.js.map
|