@spscommerce/ds-react-charts 8.12.0 → 8.12.2
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/lib/index.es.js +173 -327
- package/package.json +9 -9
package/lib/index.es.js
CHANGED
@@ -10,16 +10,14 @@ function Zt(e) {
|
|
10
10
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
11
11
|
}
|
12
12
|
function pt(e) {
|
13
|
-
if (e.__esModule)
|
14
|
-
return e;
|
13
|
+
if (e.__esModule) return e;
|
15
14
|
var t = e.default;
|
16
15
|
if (typeof t == "function") {
|
17
16
|
var n = function r() {
|
18
17
|
return this instanceof r ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments);
|
19
18
|
};
|
20
19
|
n.prototype = t.prototype;
|
21
|
-
} else
|
22
|
-
n = {};
|
20
|
+
} else n = {};
|
23
21
|
return Object.defineProperty(n, "__esModule", { value: !0 }), Object.keys(e).forEach(function(r) {
|
24
22
|
var i = Object.getOwnPropertyDescriptor(e, r);
|
25
23
|
Object.defineProperty(n, r, i.get ? i : {
|
@@ -41,8 +39,7 @@ var Qi = { exports: {} }, lr = { exports: {} }, ne = {};
|
|
41
39
|
*/
|
42
40
|
var Ys;
|
43
41
|
function Ld() {
|
44
|
-
if (Ys)
|
45
|
-
return ne;
|
42
|
+
if (Ys) return ne;
|
46
43
|
Ys = 1;
|
47
44
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, d = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117, g = e ? Symbol.for("react.responder") : 60118, m = e ? Symbol.for("react.scope") : 60119;
|
48
45
|
function x(_) {
|
@@ -209,8 +206,7 @@ object-assign
|
|
209
206
|
*/
|
210
207
|
var mi, Ks;
|
211
208
|
function Ad() {
|
212
|
-
if (Ks)
|
213
|
-
return mi;
|
209
|
+
if (Ks) return mi;
|
214
210
|
Ks = 1;
|
215
211
|
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
|
216
212
|
function r(a) {
|
@@ -256,8 +252,7 @@ function Ad() {
|
|
256
252
|
}
|
257
253
|
var gi, Xs;
|
258
254
|
function lo() {
|
259
|
-
if (Xs)
|
260
|
-
return gi;
|
255
|
+
if (Xs) return gi;
|
261
256
|
Xs = 1;
|
262
257
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
263
258
|
return gi = e, gi;
|
@@ -268,8 +263,7 @@ function nc() {
|
|
268
263
|
}
|
269
264
|
var bi, Qs;
|
270
265
|
function Nd() {
|
271
|
-
if (Qs)
|
272
|
-
return bi;
|
266
|
+
if (Qs) return bi;
|
273
267
|
Qs = 1;
|
274
268
|
var e = function() {
|
275
269
|
};
|
@@ -318,8 +312,7 @@ function Nd() {
|
|
318
312
|
}
|
319
313
|
var xi, Js;
|
320
314
|
function Dd() {
|
321
|
-
if (Js)
|
322
|
-
return xi;
|
315
|
+
if (Js) return xi;
|
323
316
|
Js = 1;
|
324
317
|
var e = tc(), t = Ad(), n = lo(), r = nc(), i = Nd(), a = function() {
|
325
318
|
};
|
@@ -640,8 +633,7 @@ Valid keys: ` + JSON.stringify(Object.keys(L), null, " ")
|
|
640
633
|
}
|
641
634
|
var _i, el;
|
642
635
|
function zd() {
|
643
|
-
if (el)
|
644
|
-
return _i;
|
636
|
+
if (el) return _i;
|
645
637
|
el = 1;
|
646
638
|
var e = lo();
|
647
639
|
function t() {
|
@@ -744,8 +736,7 @@ function Ji() {
|
|
744
736
|
}, Ji.apply(this, arguments);
|
745
737
|
}
|
746
738
|
function Wd(e, t) {
|
747
|
-
if (e == null)
|
748
|
-
return {};
|
739
|
+
if (e == null) return {};
|
749
740
|
var n = {}, r = Object.keys(e), i, a;
|
750
741
|
for (a = 0; a < r.length; a++)
|
751
742
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
@@ -795,23 +786,20 @@ na.prototype = Jt.prototype = {
|
|
795
786
|
arcTo: function(e, t, n, r, i) {
|
796
787
|
e = +e, t = +t, n = +n, r = +r, i = +i;
|
797
788
|
var a = this._x1, s = this._y1, o = n - e, l = r - t, u = a - e, c = s - t, f = u * u + c * c;
|
798
|
-
if (i < 0)
|
799
|
-
throw new Error("negative radius: " + i);
|
789
|
+
if (i < 0) throw new Error("negative radius: " + i);
|
800
790
|
if (this._x1 === null)
|
801
791
|
this._ += "M" + (this._x1 = e) + "," + (this._y1 = t);
|
802
|
-
else if (f > kt)
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
}
|
792
|
+
else if (f > kt) if (!(Math.abs(c * o - l * u) > kt) || !i)
|
793
|
+
this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
|
794
|
+
else {
|
795
|
+
var h = n - a, d = r - s, p = o * o + l * l, v = h * h + d * d, y = Math.sqrt(p), g = Math.sqrt(f), m = i * Math.tan((ea - Math.acos((p + f - v) / (2 * y * g))) / 2), x = m / g, T = m / y;
|
796
|
+
Math.abs(x - 1) > kt && (this._ += "L" + (e + x * u) + "," + (t + x * c)), this._ += "A" + i + "," + i + ",0,0," + +(c * h > u * d) + "," + (this._x1 = e + T * o) + "," + (this._y1 = t + T * l);
|
797
|
+
}
|
809
798
|
},
|
810
799
|
arc: function(e, t, n, r, i, a) {
|
811
800
|
e = +e, t = +t, n = +n, a = !!a;
|
812
801
|
var s = n * Math.cos(r), o = n * Math.sin(r), l = e + s, u = t + o, c = 1 ^ a, f = a ? r - i : i - r;
|
813
|
-
if (n < 0)
|
814
|
-
throw new Error("negative radius: " + n);
|
802
|
+
if (n < 0) throw new Error("negative radius: " + n);
|
815
803
|
this._x1 === null ? this._ += "M" + l + "," + u : (Math.abs(this._x1 - l) > kt || Math.abs(this._y1 - u) > kt) && (this._ += "L" + l + "," + u), n && (f < 0 && (f = f % ta + ta), f > Bd ? this._ += "A" + n + "," + n + ",0,1," + c + "," + (e - s) + "," + (t - o) + "A" + n + "," + n + ",0,1," + c + "," + (this._x1 = l) + "," + (this._y1 = u) : f > kt && (this._ += "A" + n + "," + n + ",0," + +(f >= ea) + "," + c + "," + (this._x1 = e + n * Math.cos(i)) + "," + (this._y1 = t + n * Math.sin(i))));
|
816
804
|
},
|
817
805
|
rect: function(e, t, n, r) {
|
@@ -868,8 +856,7 @@ function Zd() {
|
|
868
856
|
var e = qd, t = Yd, n = J(0), r = null, i = Vd, a = Gd, s = Kd, o = null;
|
869
857
|
function l() {
|
870
858
|
var u, c, f = +e.apply(this, arguments), h = +t.apply(this, arguments), d = i.apply(this, arguments) - yr, p = a.apply(this, arguments) - yr, v = tl(p - d), y = p > d;
|
871
|
-
if (o || (o = u = Jt()), h < f && (c = h, h = f, f = c), !(h > ge))
|
872
|
-
o.moveTo(0, 0);
|
859
|
+
if (o || (o = u = Jt()), h < f && (c = h, h = f, f = c), !(h > ge)) o.moveTo(0, 0);
|
873
860
|
else if (v > lt - ge)
|
874
861
|
o.moveTo(h * St(d), h * Ue(d)), o.arc(0, 0, h, d, p, !y), f > ge && (o.moveTo(f * St(p), f * Ue(p)), o.arc(0, 0, f, p, d, y));
|
875
862
|
else {
|
@@ -888,8 +875,7 @@ function Zd() {
|
|
888
875
|
}
|
889
876
|
w > ge ? C > ge ? (E = ur(j, I, H, Y, h, C, y), P = ur(L, N, X, G, h, C, y), o.moveTo(E.cx + E.x01, E.cy + E.y01), C < O ? o.arc(E.cx, E.cy, C, me(E.y01, E.x01), me(P.y01, P.x01), !y) : (o.arc(E.cx, E.cy, C, me(E.y01, E.x01), me(E.y11, E.x11), !y), o.arc(0, 0, h, me(E.cy + E.y11, E.cx + E.x11), me(P.cy + P.y11, P.cx + P.x11), !y), o.arc(P.cx, P.cy, C, me(P.y11, P.x11), me(P.y01, P.x01), !y))) : (o.moveTo(H, Y), o.arc(0, 0, h, g, m, !y)) : o.moveTo(H, Y), !(f > ge) || !(_ > ge) ? o.lineTo(X, G) : R > ge ? (E = ur(X, G, L, N, f, -R, y), P = ur(H, Y, j, I, f, -R, y), o.lineTo(E.cx + E.x01, E.cy + E.y01), R < O ? o.arc(E.cx, E.cy, R, me(E.y01, E.x01), me(P.y01, P.x01), !y) : (o.arc(E.cx, E.cy, R, me(E.y01, E.x01), me(E.y11, E.x11), !y), o.arc(0, 0, f, me(E.cy + E.y11, E.cx + E.x11), me(P.cy + P.y11, P.cx + P.x11), y), o.arc(P.cx, P.cy, R, me(P.y11, P.x11), me(P.y01, P.x01), !y))) : o.arc(0, 0, f, T, x, y);
|
890
877
|
}
|
891
|
-
if (o.closePath(), u)
|
892
|
-
return o = null, u + "" || null;
|
878
|
+
if (o.closePath(), u) return o = null, u + "" || null;
|
893
879
|
}
|
894
880
|
return l.centroid = function() {
|
895
881
|
var u = (+e.apply(this, arguments) + +t.apply(this, arguments)) / 2, c = (+i.apply(this, arguments) + +a.apply(this, arguments)) / 2 - ct / 2;
|
@@ -956,8 +942,7 @@ function fo() {
|
|
956
942
|
var l, u = o.length, c, f = !1, h;
|
957
943
|
for (r == null && (a = i(h = Jt())), l = 0; l <= u; ++l)
|
958
944
|
!(l < u && n(c = o[l], l, o)) === f && ((f = !f) ? a.lineStart() : a.lineEnd()), f && a.point(+e(c, l, o), +t(c, l, o));
|
959
|
-
if (h)
|
960
|
-
return a = null, h + "" || null;
|
945
|
+
if (h) return a = null, h + "" || null;
|
961
946
|
}
|
962
947
|
return s.x = function(o) {
|
963
948
|
return arguments.length ? (e = typeof o == "function" ? o : J(+o), s) : e;
|
@@ -986,8 +971,7 @@ function ac() {
|
|
986
971
|
}
|
987
972
|
y && (m[f] = +e(v, f, c), x[f] = +n(v, f, c), o.point(t ? +t(v, f, c) : m[f], r ? +r(v, f, c) : x[f]));
|
988
973
|
}
|
989
|
-
if (g)
|
990
|
-
return o = null, g + "" || null;
|
974
|
+
if (g) return o = null, g + "" || null;
|
991
975
|
}
|
992
976
|
function u() {
|
993
977
|
return fo().defined(i).curve(s).context(a);
|
@@ -1123,8 +1107,7 @@ function po(e) {
|
|
1123
1107
|
var t = tp, n = np, r = uo, i = co, a = null;
|
1124
1108
|
function s() {
|
1125
1109
|
var o, l = ra.call(arguments), u = t.apply(this, l), c = n.apply(this, l);
|
1126
|
-
if (a || (a = o = Jt()), e(a, +r.apply(this, (l[0] = u, l)), +i.apply(this, l), +r.apply(this, (l[0] = c, l)), +i.apply(this, l)), o)
|
1127
|
-
return a = null, o + "" || null;
|
1110
|
+
if (a || (a = o = Jt()), e(a, +r.apply(this, (l[0] = u, l)), +i.apply(this, l), +r.apply(this, (l[0] = c, l)), +i.apply(this, l)), o) return a = null, o + "" || null;
|
1128
1111
|
}
|
1129
1112
|
return s.source = function(o) {
|
1130
1113
|
return arguments.length ? (t = o, s) : t;
|
@@ -1220,8 +1203,7 @@ function vp() {
|
|
1220
1203
|
var e = J(vo), t = J(64), n = null;
|
1221
1204
|
function r() {
|
1222
1205
|
var i;
|
1223
|
-
if (n || (n = i = Jt()), e.apply(this, arguments).draw(n, +t.apply(this, arguments)), i)
|
1224
|
-
return n = null, i + "" || null;
|
1206
|
+
if (n || (n = i = Jt()), e.apply(this, arguments).draw(n, +t.apply(this, arguments)), i) return n = null, i + "" || null;
|
1225
1207
|
}
|
1226
1208
|
return r.type = function(i) {
|
1227
1209
|
return arguments.length ? (e = typeof i == "function" ? i : J(i), r) : e;
|
@@ -1861,14 +1843,10 @@ Tc.prototype = {
|
|
1861
1843
|
};
|
1862
1844
|
function ll(e) {
|
1863
1845
|
var t, n = e.length - 1, r, i = new Array(n), a = new Array(n), s = new Array(n);
|
1864
|
-
for (i[0] = 0, a[0] = 2, s[0] = e[0] + 2 * e[1], t = 1; t < n - 1; ++t)
|
1865
|
-
|
1866
|
-
for (i[n - 1] =
|
1867
|
-
|
1868
|
-
for (i[n - 1] = s[n - 1] / a[n - 1], t = n - 2; t >= 0; --t)
|
1869
|
-
i[t] = (s[t] - i[t + 1]) / a[t];
|
1870
|
-
for (a[n - 1] = (e[n] + i[n - 1]) / 2, t = 0; t < n - 1; ++t)
|
1871
|
-
a[t] = 2 * e[t + 1] - i[t + 1];
|
1846
|
+
for (i[0] = 0, a[0] = 2, s[0] = e[0] + 2 * e[1], t = 1; t < n - 1; ++t) i[t] = 1, a[t] = 4, s[t] = 4 * e[t] + 2 * e[t + 1];
|
1847
|
+
for (i[n - 1] = 2, a[n - 1] = 7, s[n - 1] = 8 * e[n - 1] + e[n], t = 1; t < n; ++t) r = i[t] / a[t - 1], a[t] -= r, s[t] -= r * s[t - 1];
|
1848
|
+
for (i[n - 1] = s[n - 1] / a[n - 1], t = n - 2; t >= 0; --t) i[t] = (s[t] - i[t + 1]) / a[t];
|
1849
|
+
for (a[n - 1] = (e[n] + i[n - 1]) / 2, t = 0; t < n - 1; ++t) a[t] = 2 * e[t + 1] - i[t + 1];
|
1872
1850
|
return [i, a];
|
1873
1851
|
}
|
1874
1852
|
function Ep(e) {
|
@@ -1926,8 +1904,7 @@ function Mt(e, t) {
|
|
1926
1904
|
a[r][1] += a[r][0] = isNaN(i[r][1]) ? i[r][0] : i[r][1];
|
1927
1905
|
}
|
1928
1906
|
function $t(e) {
|
1929
|
-
for (var t = e.length, n = new Array(t); --t >= 0; )
|
1930
|
-
n[t] = t;
|
1907
|
+
for (var t = e.length, n = new Array(t); --t >= 0; ) n[t] = t;
|
1931
1908
|
return n;
|
1932
1909
|
}
|
1933
1910
|
function Rp(e, t) {
|
@@ -1959,11 +1936,8 @@ function Oc() {
|
|
1959
1936
|
function Mc(e, t) {
|
1960
1937
|
if ((r = e.length) > 0) {
|
1961
1938
|
for (var n, r, i = 0, a = e[0].length, s; i < a; ++i) {
|
1962
|
-
for (s = n = 0; n < r; ++n)
|
1963
|
-
|
1964
|
-
if (s)
|
1965
|
-
for (n = 0; n < r; ++n)
|
1966
|
-
e[n][i][1] /= s;
|
1939
|
+
for (s = n = 0; n < r; ++n) s += e[n][i][1] || 0;
|
1940
|
+
if (s) for (n = 0; n < r; ++n) e[n][i][1] /= s;
|
1967
1941
|
}
|
1968
1942
|
Mt(e, t);
|
1969
1943
|
}
|
@@ -1977,8 +1951,7 @@ function $c(e, t) {
|
|
1977
1951
|
function Ec(e, t) {
|
1978
1952
|
if ((i = e.length) > 0) {
|
1979
1953
|
for (var n = 0, r = e[t[0]], i, a = r.length; n < a; ++n) {
|
1980
|
-
for (var s = 0, o = 0; s < i; ++s)
|
1981
|
-
o += e[s][n][1] || 0;
|
1954
|
+
for (var s = 0, o = 0; s < i; ++s) o += e[s][n][1] || 0;
|
1982
1955
|
r[n][1] += r[n][0] = -o / 2;
|
1983
1956
|
}
|
1984
1957
|
Mt(e, t);
|
@@ -2006,8 +1979,7 @@ function Pc(e) {
|
|
2006
1979
|
});
|
2007
1980
|
}
|
2008
1981
|
function Ap(e) {
|
2009
|
-
for (var t = -1, n = 0, r = e.length, i, a = -1 / 0; ++t < r; )
|
2010
|
-
(i = +e[t][1]) > a && (a = i, n = t);
|
1982
|
+
for (var t = -1, n = 0, r = e.length, i, a = -1 / 0; ++t < r; ) (i = +e[t][1]) > a && (a = i, n = t);
|
2011
1983
|
return n;
|
2012
1984
|
}
|
2013
1985
|
function xo(e) {
|
@@ -2017,8 +1989,7 @@ function xo(e) {
|
|
2017
1989
|
});
|
2018
1990
|
}
|
2019
1991
|
function Lc(e) {
|
2020
|
-
for (var t = 0, n = -1, r = e.length, i; ++n < r; )
|
2021
|
-
(i = +e[n][1]) && (t += i);
|
1992
|
+
for (var t = 0, n = -1, r = e.length, i; ++n < r; ) (i = +e[n][1]) && (t += i);
|
2022
1993
|
return t;
|
2023
1994
|
}
|
2024
1995
|
function Rc(e) {
|
@@ -2122,8 +2093,7 @@ function aa() {
|
|
2122
2093
|
}, aa.apply(this, arguments);
|
2123
2094
|
}
|
2124
2095
|
function Ip(e, t) {
|
2125
|
-
if (e == null)
|
2126
|
-
return {};
|
2096
|
+
if (e == null) return {};
|
2127
2097
|
var n = {}, r = Object.keys(e), i, a;
|
2128
2098
|
for (a = 0; a < r.length; a++)
|
2129
2099
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
@@ -2160,8 +2130,7 @@ function oa() {
|
|
2160
2130
|
}, oa.apply(this, arguments);
|
2161
2131
|
}
|
2162
2132
|
function Bp(e, t) {
|
2163
|
-
if (e == null)
|
2164
|
-
return {};
|
2133
|
+
if (e == null) return {};
|
2165
2134
|
var n = {}, r = Object.keys(e), i, a;
|
2166
2135
|
for (a = 0; a < r.length; a++)
|
2167
2136
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
@@ -2186,8 +2155,7 @@ function sa() {
|
|
2186
2155
|
}, sa.apply(this, arguments);
|
2187
2156
|
}
|
2188
2157
|
function qp(e, t) {
|
2189
|
-
if (e == null)
|
2190
|
-
return {};
|
2158
|
+
if (e == null) return {};
|
2191
2159
|
var n = {}, r = Object.keys(e), i, a;
|
2192
2160
|
for (a = 0; a < r.length; a++)
|
2193
2161
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
@@ -2257,8 +2225,7 @@ function la() {
|
|
2257
2225
|
}, la.apply(this, arguments);
|
2258
2226
|
}
|
2259
2227
|
function Zp(e, t) {
|
2260
|
-
if (e == null)
|
2261
|
-
return {};
|
2228
|
+
if (e == null) return {};
|
2262
2229
|
var n = {}, r = Object.keys(e), i, a;
|
2263
2230
|
for (a = 0; a < r.length; a++)
|
2264
2231
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
@@ -2352,19 +2319,15 @@ function fl(e, t) {
|
|
2352
2319
|
var ua = Math.sqrt(50), ca = Math.sqrt(10), fa = Math.sqrt(2);
|
2353
2320
|
function ha(e, t, n) {
|
2354
2321
|
var r, i = -1, a, s, o;
|
2355
|
-
if (t = +t, e = +e, n = +n, e === t && n > 0)
|
2356
|
-
|
2357
|
-
if ((r = t < e) && (a = e, e = t, t = a), (o = Ic(e, t, n)) === 0 || !isFinite(o))
|
2358
|
-
return [];
|
2322
|
+
if (t = +t, e = +e, n = +n, e === t && n > 0) return [e];
|
2323
|
+
if ((r = t < e) && (a = e, e = t, t = a), (o = Ic(e, t, n)) === 0 || !isFinite(o)) return [];
|
2359
2324
|
if (o > 0) {
|
2360
2325
|
let l = Math.round(e / o), u = Math.round(t / o);
|
2361
|
-
for (l * o < e && ++l, u * o > t && --u, s = new Array(a = u - l + 1); ++i < a; )
|
2362
|
-
s[i] = (l + i) * o;
|
2326
|
+
for (l * o < e && ++l, u * o > t && --u, s = new Array(a = u - l + 1); ++i < a; ) s[i] = (l + i) * o;
|
2363
2327
|
} else {
|
2364
2328
|
o = -o;
|
2365
2329
|
let l = Math.round(e * o), u = Math.round(t * o);
|
2366
|
-
for (l / o < e && ++l, u / o > t && --u, s = new Array(a = u - l + 1); ++i < a; )
|
2367
|
-
s[i] = (l + i) / o;
|
2330
|
+
for (l / o < e && ++l, u / o > t && --u, s = new Array(a = u - l + 1); ++i < a; ) s[i] = (l + i) / o;
|
2368
2331
|
}
|
2369
2332
|
return r && s.reverse(), s;
|
2370
2333
|
}
|
@@ -2397,10 +2360,8 @@ function Wc(e, t, n = 0, r = e.length - 1, i = Vn) {
|
|
2397
2360
|
const a = e[t];
|
2398
2361
|
let s = n, o = r;
|
2399
2362
|
for (mn(e, n, t), i(e[r], a) > 0 && mn(e, n, r); s < o; ) {
|
2400
|
-
for (mn(e, s, o), ++s, --o; i(e[s], a) < 0; )
|
2401
|
-
|
2402
|
-
for (; i(e[o], a) > 0; )
|
2403
|
-
--o;
|
2363
|
+
for (mn(e, s, o), ++s, --o; i(e[s], a) < 0; ) ++s;
|
2364
|
+
for (; i(e[o], a) > 0; ) --o;
|
2404
2365
|
}
|
2405
2366
|
i(e[n], a) === 0 ? mn(e, n, o) : (++o, mn(e, o, r)), o <= t && (n = o + 1), t <= o && (r = o - 1);
|
2406
2367
|
}
|
@@ -2412,20 +2373,16 @@ function mn(e, t, n) {
|
|
2412
2373
|
}
|
2413
2374
|
function nv(e, t, n) {
|
2414
2375
|
if (e = Float64Array.from(ev(e)), !!(r = e.length)) {
|
2415
|
-
if ((t = +t) <= 0 || r < 2)
|
2416
|
-
|
2417
|
-
if (t >= 1)
|
2418
|
-
return hl(e);
|
2376
|
+
if ((t = +t) <= 0 || r < 2) return dl(e);
|
2377
|
+
if (t >= 1) return hl(e);
|
2419
2378
|
var r, i = (r - 1) * t, a = Math.floor(i), s = hl(Wc(e, a).subarray(0, a + 1)), o = dl(e.subarray(a + 1));
|
2420
2379
|
return s + (o - s) * (i - a);
|
2421
2380
|
}
|
2422
2381
|
}
|
2423
2382
|
function rv(e, t, n = Fc) {
|
2424
2383
|
if (r = e.length) {
|
2425
|
-
if ((t = +t) <= 0 || r < 2)
|
2426
|
-
|
2427
|
-
if (t >= 1)
|
2428
|
-
return +n(e[r - 1], r - 1, e);
|
2384
|
+
if ((t = +t) <= 0 || r < 2) return +n(e[0], 0, e);
|
2385
|
+
if (t >= 1) return +n(e[r - 1], r - 1, e);
|
2429
2386
|
var r, i = (r - 1) * t, a = Math.floor(i), s = +n(e[a], a, e), o = +n(e[a + 1], a + 1, e);
|
2430
2387
|
return s + (o - s) * (i - a);
|
2431
2388
|
}
|
@@ -2470,15 +2427,13 @@ function Kn() {
|
|
2470
2427
|
function i(a) {
|
2471
2428
|
var s = a + "", o = e.get(s);
|
2472
2429
|
if (!o) {
|
2473
|
-
if (r !== pa)
|
2474
|
-
return r;
|
2430
|
+
if (r !== pa) return r;
|
2475
2431
|
e.set(s, o = t.push(a));
|
2476
2432
|
}
|
2477
2433
|
return n[(o - 1) % n.length];
|
2478
2434
|
}
|
2479
2435
|
return i.domain = function(a) {
|
2480
|
-
if (!arguments.length)
|
2481
|
-
return t.slice();
|
2436
|
+
if (!arguments.length) return t.slice();
|
2482
2437
|
t = [], e = /* @__PURE__ */ new Map();
|
2483
2438
|
for (const s of a) {
|
2484
2439
|
const o = s + "";
|
@@ -2542,8 +2497,7 @@ function en(e, t, n) {
|
|
2542
2497
|
}
|
2543
2498
|
function Zn(e, t) {
|
2544
2499
|
var n = Object.create(e.prototype);
|
2545
|
-
for (var r in t)
|
2546
|
-
n[r] = t[r];
|
2500
|
+
for (var r in t) n[r] = t[r];
|
2547
2501
|
return n;
|
2548
2502
|
}
|
2549
2503
|
function vt() {
|
@@ -2773,12 +2727,9 @@ function xl(e, t, n, r) {
|
|
2773
2727
|
return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new Ye(e, t, n, r);
|
2774
2728
|
}
|
2775
2729
|
function qc(e) {
|
2776
|
-
if (e instanceof Ye)
|
2777
|
-
|
2778
|
-
if (e instanceof
|
2779
|
-
return new Ye();
|
2780
|
-
if (e instanceof Ye)
|
2781
|
-
return e;
|
2730
|
+
if (e instanceof Ye) return new Ye(e.h, e.s, e.l, e.opacity);
|
2731
|
+
if (e instanceof vt || (e = In(e)), !e) return new Ye();
|
2732
|
+
if (e instanceof Ye) return e;
|
2782
2733
|
e = e.rgb();
|
2783
2734
|
var t = e.r / 255, n = e.g / 255, r = e.b / 255, i = Math.min(t, n, r), a = Math.max(t, n, r), s = NaN, o = a - i, l = (a + i) / 2;
|
2784
2735
|
return o ? (t === a ? s = (n - r) / o + (n < r) * 6 : n === a ? s = (r - t) / o + 2 : s = (t - n) / o + 4, o /= l < 0.5 ? a + i : 2 - a - i, s *= 60) : o = l > 0 && l < 1 ? 0 : s, new Ye(s, o, l, e.opacity);
|
@@ -2818,10 +2769,8 @@ function Oi(e, t, n) {
|
|
2818
2769
|
}
|
2819
2770
|
var Yc = Math.PI / 180, Vc = 180 / Math.PI, Sr = 18, Gc = 0.96422, Kc = 1, Xc = 0.82521, Zc = 4 / 29, Ut = 6 / 29, Qc = 3 * Ut * Ut, hv = Ut * Ut * Ut;
|
2820
2771
|
function Jc(e) {
|
2821
|
-
if (e instanceof Ge)
|
2822
|
-
|
2823
|
-
if (e instanceof Qe)
|
2824
|
-
return ef(e);
|
2772
|
+
if (e instanceof Ge) return new Ge(e.l, e.a, e.b, e.opacity);
|
2773
|
+
if (e instanceof Qe) return ef(e);
|
2825
2774
|
e instanceof ve || (e = _o(e));
|
2826
2775
|
var t = Ci(e.r), n = Ci(e.g), r = Ci(e.b), i = Mi((0.2225045 * t + 0.7168786 * n + 0.0606169 * r) / Kc), a, s;
|
2827
2776
|
return t === n && n === r ? a = s = i : (a = Mi((0.4360747 * t + 0.3850649 * n + 0.1430804 * r) / Gc), s = Mi((0.0139322 * t + 0.0971045 * n + 0.7141733 * r) / Xc)), new Ge(116 * i - 16, 500 * (a - i), 200 * (i - s), e.opacity);
|
@@ -2862,10 +2811,8 @@ function Ci(e) {
|
|
2862
2811
|
return (e /= 255) <= 0.04045 ? e / 12.92 : Math.pow((e + 0.055) / 1.055, 2.4);
|
2863
2812
|
}
|
2864
2813
|
function dv(e) {
|
2865
|
-
if (e instanceof Qe)
|
2866
|
-
|
2867
|
-
if (e instanceof Ge || (e = Jc(e)), e.a === 0 && e.b === 0)
|
2868
|
-
return new Qe(NaN, 0 < e.l && e.l < 100 ? 0 : NaN, e.l, e.opacity);
|
2814
|
+
if (e instanceof Qe) return new Qe(e.h, e.c, e.l, e.opacity);
|
2815
|
+
if (e instanceof Ge || (e = Jc(e)), e.a === 0 && e.b === 0) return new Qe(NaN, 0 < e.l && e.l < 100 ? 0 : NaN, e.l, e.opacity);
|
2869
2816
|
var t = Math.atan2(e.b, e.a) * Vc;
|
2870
2817
|
return new Qe(t < 0 ? t + 360 : t, Math.sqrt(e.a * e.a + e.b * e.b), e.l, e.opacity);
|
2871
2818
|
}
|
@@ -2876,8 +2823,7 @@ function Qe(e, t, n, r) {
|
|
2876
2823
|
this.h = +e, this.c = +t, this.l = +n, this.opacity = +r;
|
2877
2824
|
}
|
2878
2825
|
function ef(e) {
|
2879
|
-
if (isNaN(e.h))
|
2880
|
-
return new Ge(e.l, 0, 0, e.opacity);
|
2826
|
+
if (isNaN(e.h)) return new Ge(e.l, 0, 0, e.opacity);
|
2881
2827
|
var t = e.h * Yc;
|
2882
2828
|
return new Ge(e.l, Math.cos(t) * e.c, Math.sin(t) * e.c, e.opacity);
|
2883
2829
|
}
|
@@ -2894,8 +2840,7 @@ en(Qe, ga, Zn(vt, {
|
|
2894
2840
|
}));
|
2895
2841
|
var tf = -0.14861, wo = 1.78277, So = -0.29227, Gr = -0.90649, Wn = 1.97294, _l = Wn * Gr, wl = Wn * wo, Sl = wo * So - Gr * tf;
|
2896
2842
|
function pv(e) {
|
2897
|
-
if (e instanceof Ot)
|
2898
|
-
return new Ot(e.h, e.s, e.l, e.opacity);
|
2843
|
+
if (e instanceof Ot) return new Ot(e.h, e.s, e.l, e.opacity);
|
2899
2844
|
e instanceof ve || (e = _o(e));
|
2900
2845
|
var t = e.r / 255, n = e.g / 255, r = e.b / 255, i = (Sl * r + _l * t - wl * n) / (Sl + _l - wl), a = r - i, s = (Wn * (n - i) - So * a) / Gr, o = Math.sqrt(s * s + a * a) / (Wn * i * (1 - i)), l = o ? Math.atan2(s, a) * Vc - 120 : NaN;
|
2901
2846
|
return new Ot(l < 0 ? l + 360 : l, o, i, e.opacity);
|
@@ -2994,8 +2939,7 @@ function ko(e, t) {
|
|
2994
2939
|
t || (t = []);
|
2995
2940
|
var n = e ? Math.min(t.length, e.length) : 0, r = t.slice(), i;
|
2996
2941
|
return function(a) {
|
2997
|
-
for (i = 0; i < n; ++i)
|
2998
|
-
r[i] = e[i] * (1 - a) + t[i] * a;
|
2942
|
+
for (i = 0; i < n; ++i) r[i] = e[i] * (1 - a) + t[i] * a;
|
2999
2943
|
return r;
|
3000
2944
|
};
|
3001
2945
|
}
|
@@ -3007,13 +2951,10 @@ function bv(e, t) {
|
|
3007
2951
|
}
|
3008
2952
|
function uf(e, t) {
|
3009
2953
|
var n = t ? t.length : 0, r = e ? Math.min(n, e.length) : 0, i = new Array(r), a = new Array(n), s;
|
3010
|
-
for (s = 0; s < r; ++s)
|
3011
|
-
|
3012
|
-
for (; s < n; ++s)
|
3013
|
-
a[s] = t[s];
|
2954
|
+
for (s = 0; s < r; ++s) i[s] = tn(e[s], t[s]);
|
2955
|
+
for (; s < n; ++s) a[s] = t[s];
|
3014
2956
|
return function(o) {
|
3015
|
-
for (s = 0; s < r; ++s)
|
3016
|
-
a[s] = i[s](o);
|
2957
|
+
for (s = 0; s < r; ++s) a[s] = i[s](o);
|
3017
2958
|
return a;
|
3018
2959
|
};
|
3019
2960
|
}
|
@@ -3034,8 +2975,7 @@ function ff(e, t) {
|
|
3034
2975
|
for (i in t)
|
3035
2976
|
i in e ? n[i] = tn(e[i], t[i]) : r[i] = t[i];
|
3036
2977
|
return function(a) {
|
3037
|
-
for (i in n)
|
3038
|
-
r[i] = n[i](a);
|
2978
|
+
for (i in n) r[i] = n[i](a);
|
3039
2979
|
return r;
|
3040
2980
|
};
|
3041
2981
|
}
|
@@ -3055,8 +2995,7 @@ function hf(e, t) {
|
|
3055
2995
|
for (e = e + "", t = t + ""; (r = ba.exec(e)) && (i = Pi.exec(t)); )
|
3056
2996
|
(a = i.index) > n && (a = t.slice(n, a), o[s] ? o[s] += a : o[++s] = a), (r = r[0]) === (i = i[0]) ? o[s] ? o[s] += i : o[++s] = i : (o[++s] = null, l.push({ i: s, x: je(r, i) })), n = Pi.lastIndex;
|
3057
2997
|
return n < t.length && (a = t.slice(n), o[s] ? o[s] += a : o[++s] = a), o.length < 2 ? l[0] ? _v(l[0].x) : xv(t) : (t = l.length, function(u) {
|
3058
|
-
for (var c = 0, f; c < t; ++c)
|
3059
|
-
o[(f = l[c]).i] = f.x(u);
|
2998
|
+
for (var c = 0, f; c < t; ++c) o[(f = l[c]).i] = f.x(u);
|
3060
2999
|
return o.join("");
|
3061
3000
|
});
|
3062
3001
|
}
|
@@ -3116,8 +3055,7 @@ function pf(e, t, n, r) {
|
|
3116
3055
|
if (u !== f || c !== h) {
|
3117
3056
|
var v = d.push("translate(", null, t, null, n);
|
3118
3057
|
p.push({ i: v - 4, x: je(u, f) }, { i: v - 2, x: je(c, h) });
|
3119
|
-
} else
|
3120
|
-
(f || h) && d.push("translate(" + f + t + h + n);
|
3058
|
+
} else (f || h) && d.push("translate(" + f + t + h + n);
|
3121
3059
|
}
|
3122
3060
|
function s(u, c, f, h) {
|
3123
3061
|
u !== c ? (u - c > 180 ? c += 360 : c - u > 180 && (u += 360), h.push({ i: f.push(i(f) + "rotate(", null, r) - 2, x: je(u, c) })) : c && f.push(i(f) + "rotate(" + c + r);
|
@@ -3129,14 +3067,12 @@ function pf(e, t, n, r) {
|
|
3129
3067
|
if (u !== f || c !== h) {
|
3130
3068
|
var v = d.push(i(d) + "scale(", null, ",", null, ")");
|
3131
3069
|
p.push({ i: v - 4, x: je(u, f) }, { i: v - 2, x: je(c, h) });
|
3132
|
-
} else
|
3133
|
-
(f !== 1 || h !== 1) && d.push(i(d) + "scale(" + f + "," + h + ")");
|
3070
|
+
} else (f !== 1 || h !== 1) && d.push(i(d) + "scale(" + f + "," + h + ")");
|
3134
3071
|
}
|
3135
3072
|
return function(u, c) {
|
3136
3073
|
var f = [], h = [];
|
3137
3074
|
return u = e(u), c = e(c), a(u.translateX, u.translateY, c.translateX, c.translateY, f, h), s(u.rotate, c.rotate, f, h), o(u.skewX, c.skewX, f, h), l(u.scaleX, u.scaleY, c.scaleX, c.scaleY, f, h), u = c = null, function(d) {
|
3138
|
-
for (var p = -1, v = h.length, y; ++p < v; )
|
3139
|
-
f[(y = h[p]).i] = y.x(d);
|
3075
|
+
for (var p = -1, v = h.length, y; ++p < v; ) f[(y = h[p]).i] = y.x(d);
|
3140
3076
|
return f.join("");
|
3141
3077
|
};
|
3142
3078
|
};
|
@@ -3215,16 +3151,14 @@ function gf(e) {
|
|
3215
3151
|
const Co = gf(Xr);
|
3216
3152
|
var Po = gf(he);
|
3217
3153
|
function yf(e, t) {
|
3218
|
-
for (var n = 0, r = t.length - 1, i = t[0], a = new Array(r < 0 ? 0 : r); n < r; )
|
3219
|
-
a[n] = e(i, i = t[++n]);
|
3154
|
+
for (var n = 0, r = t.length - 1, i = t[0], a = new Array(r < 0 ? 0 : r); n < r; ) a[n] = e(i, i = t[++n]);
|
3220
3155
|
return function(s) {
|
3221
3156
|
var o = Math.max(0, Math.min(r - 1, Math.floor(s *= r)));
|
3222
3157
|
return a[o](s - o);
|
3223
3158
|
};
|
3224
3159
|
}
|
3225
3160
|
function Lv(e, t) {
|
3226
|
-
for (var n = new Array(t), r = 0; r < t; ++r)
|
3227
|
-
n[r] = e(r / (t - 1));
|
3161
|
+
for (var n = new Array(t), r = 0; r < t; ++r) n[r] = e(r / (t - 1));
|
3228
3162
|
return n;
|
3229
3163
|
}
|
3230
3164
|
const Rv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
@@ -3332,8 +3266,7 @@ function Fv(e) {
|
|
3332
3266
|
return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
|
3333
3267
|
}
|
3334
3268
|
function Tr(e, t) {
|
3335
|
-
if ((n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e")) < 0)
|
3336
|
-
return null;
|
3269
|
+
if ((n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e")) < 0) return null;
|
3337
3270
|
var n, r = e.slice(0, n);
|
3338
3271
|
return [
|
3339
3272
|
r.length > 1 ? r[0] + r.slice(2) : r,
|
@@ -3359,8 +3292,7 @@ function Iv(e) {
|
|
3359
3292
|
}
|
3360
3293
|
var Wv = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
3361
3294
|
function Or(e) {
|
3362
|
-
if (!(t = Wv.exec(e)))
|
3363
|
-
throw new Error("invalid format: " + e);
|
3295
|
+
if (!(t = Wv.exec(e))) throw new Error("invalid format: " + e);
|
3364
3296
|
var t;
|
3365
3297
|
return new Ro({
|
3366
3298
|
fill: t[1],
|
@@ -3383,35 +3315,31 @@ Ro.prototype.toString = function() {
|
|
3383
3315
|
return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
|
3384
3316
|
};
|
3385
3317
|
function Bv(e) {
|
3386
|
-
e:
|
3387
|
-
|
3388
|
-
|
3389
|
-
|
3390
|
-
|
3391
|
-
|
3392
|
-
|
3393
|
-
|
3394
|
-
|
3395
|
-
|
3396
|
-
|
3397
|
-
|
3398
|
-
|
3399
|
-
break;
|
3400
|
-
}
|
3318
|
+
e: for (var t = e.length, n = 1, r = -1, i; n < t; ++n)
|
3319
|
+
switch (e[n]) {
|
3320
|
+
case ".":
|
3321
|
+
r = i = n;
|
3322
|
+
break;
|
3323
|
+
case "0":
|
3324
|
+
r === 0 && (r = n), i = n;
|
3325
|
+
break;
|
3326
|
+
default:
|
3327
|
+
if (!+e[n]) break e;
|
3328
|
+
r > 0 && (r = 0);
|
3329
|
+
break;
|
3330
|
+
}
|
3401
3331
|
return r > 0 ? e.slice(0, r) + e.slice(i + 1) : e;
|
3402
3332
|
}
|
3403
3333
|
var bf;
|
3404
3334
|
function Hv(e, t) {
|
3405
3335
|
var n = Tr(e, t);
|
3406
|
-
if (!n)
|
3407
|
-
return e + "";
|
3336
|
+
if (!n) return e + "";
|
3408
3337
|
var r = n[0], i = n[1], a = i - (bf = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, s = r.length;
|
3409
3338
|
return a === s ? r : a > s ? r + new Array(a - s + 1).join("0") : a > 0 ? r.slice(0, a) + "." + r.slice(a) : "0." + new Array(1 - a).join("0") + Tr(e, Math.max(0, t + a - 1))[0];
|
3410
3339
|
}
|
3411
3340
|
function El(e, t) {
|
3412
3341
|
var n = Tr(e, t);
|
3413
|
-
if (!n)
|
3414
|
-
return e + "";
|
3342
|
+
if (!n) return e + "";
|
3415
3343
|
var r = n[0], i = n[1];
|
3416
3344
|
return i < 0 ? "0." + new Array(-i).join("0") + r : r.length > i + 1 ? r.slice(0, i + 1) + "." + r.slice(i + 1) : r + new Array(i - r.length + 2).join("0");
|
3417
3345
|
}
|
@@ -3628,25 +3556,21 @@ function No(e) {
|
|
3628
3556
|
for (; h <= d; ++h)
|
3629
3557
|
for (v = 1, p = a(h); v < r; ++v)
|
3630
3558
|
if (y = p * v, !(y < u)) {
|
3631
|
-
if (y > c)
|
3632
|
-
break;
|
3633
|
-
m.push(y);
|
3634
|
-
}
|
3635
|
-
} else
|
3636
|
-
for (; h <= d; ++h)
|
3637
|
-
for (v = r - 1, p = a(h); v >= 1; --v)
|
3638
|
-
if (y = p * v, !(y < u)) {
|
3639
|
-
if (y > c)
|
3640
|
-
break;
|
3559
|
+
if (y > c) break;
|
3641
3560
|
m.push(y);
|
3642
3561
|
}
|
3562
|
+
} else for (; h <= d; ++h)
|
3563
|
+
for (v = r - 1, p = a(h); v >= 1; --v)
|
3564
|
+
if (y = p * v, !(y < u)) {
|
3565
|
+
if (y > c) break;
|
3566
|
+
m.push(y);
|
3567
|
+
}
|
3643
3568
|
m.length * 2 < g && (m = ha(u, c, g));
|
3644
3569
|
} else
|
3645
3570
|
m = ha(h, d, Math.min(d - h, g)).map(a);
|
3646
3571
|
return f ? m.reverse() : m;
|
3647
3572
|
}, t.tickFormat = function(o, l) {
|
3648
|
-
if (l == null && (l = r === 10 ? ".0e" : ","), typeof l != "function" && (l = Ao(l)), o === 1 / 0)
|
3649
|
-
return l;
|
3573
|
+
if (l == null && (l = r === 10 ? ".0e" : ","), typeof l != "function" && (l = Ao(l)), o === 1 / 0) return l;
|
3650
3574
|
o == null && (o = 10);
|
3651
3575
|
var u = Math.max(1, r * o / t.ticks().length);
|
3652
3576
|
return function(c) {
|
@@ -3755,8 +3679,7 @@ function Wo() {
|
|
3755
3679
|
var e = [], t = [], n = [], r;
|
3756
3680
|
function i() {
|
3757
3681
|
var s = 0, o = Math.max(1, t.length);
|
3758
|
-
for (n = new Array(o - 1); ++s < o; )
|
3759
|
-
n[s - 1] = rv(e, s / o);
|
3682
|
+
for (n = new Array(o - 1); ++s < o; ) n[s - 1] = rv(e, s / o);
|
3760
3683
|
return a;
|
3761
3684
|
}
|
3762
3685
|
function a(s) {
|
@@ -3769,11 +3692,9 @@ function Wo() {
|
|
3769
3692
|
o < n.length ? n[o] : e[e.length - 1]
|
3770
3693
|
];
|
3771
3694
|
}, a.domain = function(s) {
|
3772
|
-
if (!arguments.length)
|
3773
|
-
return e.slice();
|
3695
|
+
if (!arguments.length) return e.slice();
|
3774
3696
|
e = [];
|
3775
|
-
for (let o of s)
|
3776
|
-
o != null && !isNaN(o = +o) && e.push(o);
|
3697
|
+
for (let o of s) o != null && !isNaN(o = +o) && e.push(o);
|
3777
3698
|
return e.sort(Vn), i();
|
3778
3699
|
}, a.range = function(s) {
|
3779
3700
|
return arguments.length ? (t = Array.from(s), i()) : t.slice();
|
@@ -3792,8 +3713,7 @@ function Bo() {
|
|
3792
3713
|
}
|
3793
3714
|
function o() {
|
3794
3715
|
var l = -1;
|
3795
|
-
for (r = new Array(n); ++l < n; )
|
3796
|
-
r[l] = ((l + 1) * t - (l - n) * e) / (n + 1);
|
3716
|
+
for (r = new Array(n); ++l < n; ) r[l] = ((l + 1) * t - (l - n) * e) / (n + 1);
|
3797
3717
|
return s;
|
3798
3718
|
}
|
3799
3719
|
return s.domain = function(l) {
|
@@ -3845,27 +3765,22 @@ function fe(e, t, n, r) {
|
|
3845
3765
|
return t(a = /* @__PURE__ */ new Date(+a), s == null ? 1 : Math.floor(s)), a;
|
3846
3766
|
}, i.range = function(a, s, o) {
|
3847
3767
|
var l = [], u;
|
3848
|
-
if (a = i.ceil(a), o = o == null ? 1 : Math.floor(o), !(a < s) || !(o > 0))
|
3849
|
-
return l;
|
3768
|
+
if (a = i.ceil(a), o = o == null ? 1 : Math.floor(o), !(a < s) || !(o > 0)) return l;
|
3850
3769
|
do
|
3851
3770
|
l.push(u = /* @__PURE__ */ new Date(+a)), t(a, o), e(a);
|
3852
3771
|
while (u < a && a < s);
|
3853
3772
|
return l;
|
3854
3773
|
}, i.filter = function(a) {
|
3855
3774
|
return fe(function(s) {
|
3856
|
-
if (s >= s)
|
3857
|
-
for (; e(s), !a(s); )
|
3858
|
-
s.setTime(s - 1);
|
3775
|
+
if (s >= s) for (; e(s), !a(s); ) s.setTime(s - 1);
|
3859
3776
|
}, function(s, o) {
|
3860
3777
|
if (s >= s)
|
3861
|
-
if (o < 0)
|
3862
|
-
for (;
|
3863
|
-
|
3864
|
-
|
3865
|
-
|
3866
|
-
|
3867
|
-
for (; t(s, 1), !a(s); )
|
3868
|
-
;
|
3778
|
+
if (o < 0) for (; ++o <= 0; )
|
3779
|
+
for (; t(s, -1), !a(s); )
|
3780
|
+
;
|
3781
|
+
else for (; --o >= 0; )
|
3782
|
+
for (; t(s, 1), !a(s); )
|
3783
|
+
;
|
3869
3784
|
});
|
3870
3785
|
}, n && (i.count = function(a, s) {
|
3871
3786
|
return Ai.setTime(+a), Ni.setTime(+s), e(Ai), e(Ni), Math.floor(n(Ai, Ni));
|
@@ -4045,10 +3960,8 @@ function Rf(e, t, n, r, i, a) {
|
|
4045
3960
|
}
|
4046
3961
|
function l(u, c, f) {
|
4047
3962
|
const h = Math.abs(c - u) / f, d = Vr(([, , y]) => y).right(s, h);
|
4048
|
-
if (d === s.length)
|
4049
|
-
|
4050
|
-
if (d === 0)
|
4051
|
-
return Kt.every(Math.max(da(u, c, f), 1));
|
3963
|
+
if (d === s.length) return e.every(da(u / Di, c / Di, f));
|
3964
|
+
if (d === 0) return Kt.every(Math.max(da(u, c, f), 1));
|
4052
3965
|
const [p, v] = s[h / s[d - 1][2] < s[d][2] / h ? d - 1 : d];
|
4053
3966
|
return p.every(v);
|
4054
3967
|
}
|
@@ -4252,28 +4165,21 @@ function Om(e) {
|
|
4252
4165
|
function b(A, F) {
|
4253
4166
|
return function(B) {
|
4254
4167
|
var k = bn(1900, void 0, 1), ae = M(k, A, B += "", 0), ee, ue;
|
4255
|
-
if (ae != B.length)
|
4256
|
-
|
4257
|
-
if ("
|
4258
|
-
return new Date(k.Q);
|
4259
|
-
if ("s" in k)
|
4260
|
-
return new Date(k.s * 1e3 + ("L" in k ? k.L : 0));
|
4168
|
+
if (ae != B.length) return null;
|
4169
|
+
if ("Q" in k) return new Date(k.Q);
|
4170
|
+
if ("s" in k) return new Date(k.s * 1e3 + ("L" in k ? k.L : 0));
|
4261
4171
|
if (F && !("Z" in k) && (k.Z = 0), "p" in k && (k.H = k.H % 12 + k.p * 12), k.m === void 0 && (k.m = "q" in k ? k.q : 0), "V" in k) {
|
4262
|
-
if (k.V < 1 || k.V > 53)
|
4263
|
-
return null;
|
4172
|
+
if (k.V < 1 || k.V > 53) return null;
|
4264
4173
|
"w" in k || (k.w = 1), "Z" in k ? (ee = Fi(bn(k.y, 0, 1)), ue = ee.getUTCDay(), ee = ue > 4 || ue === 0 ? Un.ceil(ee) : Un(ee), ee = yt.offset(ee, (k.V - 1) * 7), k.y = ee.getUTCFullYear(), k.m = ee.getUTCMonth(), k.d = ee.getUTCDate() + (k.w + 6) % 7) : (ee = zi(bn(k.y, 0, 1)), ue = ee.getDay(), ee = ue > 4 || ue === 0 ? Hn.ceil(ee) : Hn(ee), ee = gt.offset(ee, (k.V - 1) * 7), k.y = ee.getFullYear(), k.m = ee.getMonth(), k.d = ee.getDate() + (k.w + 6) % 7);
|
4265
|
-
} else
|
4266
|
-
("W" in k || "U" in k) && ("w" in k || (k.w = "u" in k ? k.u % 7 : "W" in k ? 1 : 0), ue = "Z" in k ? Fi(bn(k.y, 0, 1)).getUTCDay() : zi(bn(k.y, 0, 1)).getDay(), k.m = 0, k.d = "W" in k ? (k.w + 6) % 7 + k.W * 7 - (ue + 5) % 7 : k.w + k.U * 7 - (ue + 6) % 7);
|
4174
|
+
} else ("W" in k || "U" in k) && ("w" in k || (k.w = "u" in k ? k.u % 7 : "W" in k ? 1 : 0), ue = "Z" in k ? Fi(bn(k.y, 0, 1)).getUTCDay() : zi(bn(k.y, 0, 1)).getDay(), k.m = 0, k.d = "W" in k ? (k.w + 6) % 7 + k.W * 7 - (ue + 5) % 7 : k.w + k.U * 7 - (ue + 6) % 7);
|
4267
4175
|
return "Z" in k ? (k.H += k.Z / 100 | 0, k.M += k.Z % 100, Fi(k)) : zi(k);
|
4268
4176
|
};
|
4269
4177
|
}
|
4270
4178
|
function M(A, F, B, k) {
|
4271
4179
|
for (var ae = 0, ee = F.length, ue = B.length, ye, We; ae < ee; ) {
|
4272
|
-
if (k >= ue)
|
4273
|
-
return -1;
|
4180
|
+
if (k >= ue) return -1;
|
4274
4181
|
if (ye = F.charCodeAt(ae++), ye === 37) {
|
4275
|
-
if (ye = F.charAt(ae++), We = _[ye in Yl ? F.charAt(ae++) : ye], !We || (k = We(A, B, k)) < 0)
|
4276
|
-
return -1;
|
4182
|
+
if (ye = F.charAt(ae++), We = _[ye in Yl ? F.charAt(ae++) : ye], !We || (k = We(A, B, k)) < 0) return -1;
|
4277
4183
|
} else if (ye != B.charCodeAt(k++))
|
4278
4184
|
return -1;
|
4279
4185
|
}
|
@@ -4705,15 +4611,12 @@ function Eg() {
|
|
4705
4611
|
function Kf() {
|
4706
4612
|
var e = [], t = we;
|
4707
4613
|
function n(r) {
|
4708
|
-
if (r != null && !isNaN(r = +r))
|
4709
|
-
return t((Gn(e, r, 1) - 1) / (e.length - 1));
|
4614
|
+
if (r != null && !isNaN(r = +r)) return t((Gn(e, r, 1) - 1) / (e.length - 1));
|
4710
4615
|
}
|
4711
4616
|
return n.domain = function(r) {
|
4712
|
-
if (!arguments.length)
|
4713
|
-
return e.slice();
|
4617
|
+
if (!arguments.length) return e.slice();
|
4714
4618
|
e = [];
|
4715
|
-
for (let i of r)
|
4716
|
-
i != null && !isNaN(i = +i) && e.push(i);
|
4619
|
+
for (let i of r) i != null && !isNaN(i = +i) && e.push(i);
|
4717
4620
|
return e.sort(Vn), n;
|
4718
4621
|
}, n.interpolator = function(r) {
|
4719
4622
|
return arguments.length ? (t = r, n) : t;
|
@@ -4982,8 +4885,7 @@ function Jf(e) {
|
|
4982
4885
|
function Zo(e) {
|
4983
4886
|
if ((typeof e == "function" || typeof e == "object" && e) && "valueOf" in e) {
|
4984
4887
|
var t = e.valueOf();
|
4985
|
-
if (typeof t == "number")
|
4986
|
-
return t;
|
4888
|
+
if (typeof t == "number") return t;
|
4987
4889
|
}
|
4988
4890
|
return e;
|
4989
4891
|
}
|
@@ -5008,8 +4910,7 @@ function wa() {
|
|
5008
4910
|
}, wa.apply(this, arguments);
|
5009
4911
|
}
|
5010
4912
|
function r0(e, t) {
|
5011
|
-
if (e == null)
|
5012
|
-
return {};
|
4913
|
+
if (e == null) return {};
|
5013
4914
|
var n = {}, r = Object.keys(e), i, a;
|
5014
4915
|
for (a = 0; a < r.length; a++)
|
5015
4916
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
@@ -5177,8 +5078,7 @@ xe.math = {
|
|
5177
5078
|
return e / t;
|
5178
5079
|
},
|
5179
5080
|
fact: function(e) {
|
5180
|
-
if (e % 1 !== 0)
|
5181
|
-
return "NaN";
|
5081
|
+
if (e % 1 !== 0) return "NaN";
|
5182
5082
|
for (var t = 1, n = 2; n <= e; n++)
|
5183
5083
|
t *= n;
|
5184
5084
|
return t;
|
@@ -5439,8 +5339,7 @@ Z.addToken = function(e) {
|
|
5439
5339
|
};
|
5440
5340
|
function ah(e, t) {
|
5441
5341
|
for (var n = 0; n < t.length; n++)
|
5442
|
-
if (t[n].token === e)
|
5443
|
-
return n;
|
5342
|
+
if (t[n].token === e) return n;
|
5444
5343
|
return -1;
|
5445
5344
|
}
|
5446
5345
|
function p0(e) {
|
@@ -5520,8 +5419,7 @@ Z.lex = function(e, t) {
|
|
5520
5419
|
type: 1,
|
5521
5420
|
pre: 0
|
5522
5421
|
}, n.push(m)), a = h0, be(r, 1), o = Fe, m.value += v, m.hasDec = !0;
|
5523
|
-
} else
|
5524
|
-
p === 7 && (a = Ft, o = wn, be(r, 1), n.push(c));
|
5422
|
+
} else p === 7 && (a = Ft, o = wn, be(r, 1), n.push(c));
|
5525
5423
|
p === 8 ? (a = qe, o = Fe, be(r, h.numberOfArguments + 2), n.push(c), f[u + 1].type !== 4 && (n.push(Sn), r.push(h.numberOfArguments + 2))) : p === 9 ? (m.type === 9 ? m.value === Z.math.add ? (m.value = v, m.show = g, be(r, 1)) : m.value === Z.math.sub && g === "-" && (m.value = Z.math.add, m.show = "+", be(r, 1)) : m.type !== 5 && m.type !== 7 && m.type !== 1 && m.type !== 3 && m.type !== 13 ? d === "-" && (a = qe, o = Fe, be(r, 2).push(2), n.push(v0), n.push(Sn)) : (n.push(c), be(r, 2)), a = qe, o = Fe) : p === 10 ? (a = qe, o = Fe, be(r, 2), n.push(c)) : p === 11 ? (a = qe, o = Fe, n.push(c)) : p === 12 ? (a = qe, o = Fe, be(r, 6), n.push(c), f[u + 1].type !== 4 && (n.push(Sn), r.push(6))) : p === 13 && (a = Ft, o = wn, n.push(c)), be(r, -1), l = d;
|
5526
5424
|
}
|
5527
5425
|
for (x = r.length; x--; )
|
@@ -5549,8 +5447,7 @@ ka.prototype.toPostfix = function() {
|
|
5549
5447
|
} else {
|
5550
5448
|
t = o[l], i = t.pre, a = s[s.length - 1], r = a.pre;
|
5551
5449
|
var u = a.value == "Math.pow" && t.value == "Math.pow";
|
5552
|
-
if (i > r)
|
5553
|
-
s.push(t);
|
5450
|
+
if (i > r) s.push(t);
|
5554
5451
|
else {
|
5555
5452
|
for (; r >= i && !u || u && i < r; )
|
5556
5453
|
n = s.pop(), a = s[s.length - 1], e.push(n), r = a.pre, u = t.value == "Math.pow" && a.value == "Math.pow";
|
@@ -5575,8 +5472,7 @@ Pn.prototype.postfixEval = function(e) {
|
|
5575
5472
|
for (var l = [], u = 0; u < a[o].numberOfArguments; u++)
|
5576
5473
|
l.push(t.pop().value);
|
5577
5474
|
t.push({ type: 1, value: a[o].value.apply(a[o], l.reverse()) });
|
5578
|
-
} else
|
5579
|
-
a[o].type === 10 ? (n = t.pop(), r = t.pop(), typeof r.type > "u" ? (r.value = r.concat(n), r.value.push(a[o]), t.push(r)) : typeof n.type > "u" ? (n.unshift(r), n.push(a[o]), t.push(n)) : t.push({ type: 1, value: a[o].value(r.value, n.value) })) : a[o].type === 2 || a[o].type === 9 ? (n = t.pop(), r = t.pop(), typeof r.type > "u" ? (r = r.concat(n), r.push(a[o]), t.push(r)) : typeof n.type > "u" ? (n.unshift(r), n.push(a[o]), t.push(n)) : t.push({ type: 1, value: a[o].value(r.value, n.value) })) : a[o].type === 12 ? (n = t.pop(), typeof n.type < "u" && (n = [n]), r = t.pop(), i = t.pop(), t.push({ type: 1, value: a[o].value(i.value, r.value, new Pn(n)) })) : a[o].type === 13 && (s ? t.push({ value: e[a[o].value], type: 3 }) : t.push([a[o]]));
|
5475
|
+
} else a[o].type === 10 ? (n = t.pop(), r = t.pop(), typeof r.type > "u" ? (r.value = r.concat(n), r.value.push(a[o]), t.push(r)) : typeof n.type > "u" ? (n.unshift(r), n.push(a[o]), t.push(n)) : t.push({ type: 1, value: a[o].value(r.value, n.value) })) : a[o].type === 2 || a[o].type === 9 ? (n = t.pop(), r = t.pop(), typeof r.type > "u" ? (r = r.concat(n), r.push(a[o]), t.push(r)) : typeof n.type > "u" ? (n.unshift(r), n.push(a[o]), t.push(n)) : t.push({ type: 1, value: a[o].value(r.value, n.value) })) : a[o].type === 12 ? (n = t.pop(), typeof n.type < "u" && (n = [n]), r = t.pop(), i = t.pop(), t.push({ type: 1, value: a[o].value(i.value, r.value, new Pn(n)) })) : a[o].type === 13 && (s ? t.push({ value: e[a[o].value], type: 3 }) : t.push([a[o]]));
|
5580
5476
|
if (t.length > 1)
|
5581
5477
|
throw new Pn.Exception("Uncaught Syntax error");
|
5582
5478
|
return t[0].value > 1e15 ? "Infinity" : parseFloat(t[0].value.toFixed(15));
|
@@ -5878,8 +5774,7 @@ const pu = hh(s1, function(e, t) {
|
|
5878
5774
|
});
|
5879
5775
|
var l1 = ["verticalAnchor", "scaleToFit", "angle", "width", "lineHeight", "capHeight", "children", "style"];
|
5880
5776
|
function u1(e, t) {
|
5881
|
-
if (e == null)
|
5882
|
-
return {};
|
5777
|
+
if (e == null) return {};
|
5883
5778
|
var n = {}, r = Object.keys(e), i, a;
|
5884
5779
|
for (a = 0; a < r.length; a++)
|
5885
5780
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
@@ -5954,8 +5849,7 @@ function Ta() {
|
|
5954
5849
|
}, Ta.apply(this, arguments);
|
5955
5850
|
}
|
5956
5851
|
function h1(e, t) {
|
5957
|
-
if (e == null)
|
5958
|
-
return {};
|
5852
|
+
if (e == null) return {};
|
5959
5853
|
var n = {}, r = Object.keys(e), i, a;
|
5960
5854
|
for (a = 0; a < r.length; a++)
|
5961
5855
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
@@ -6171,8 +6065,7 @@ function $a() {
|
|
6171
6065
|
}, $a.apply(this, arguments);
|
6172
6066
|
}
|
6173
6067
|
function _1(e, t) {
|
6174
|
-
if (e == null)
|
6175
|
-
return {};
|
6068
|
+
if (e == null) return {};
|
6176
6069
|
var n = {}, r = Object.keys(e), i, a;
|
6177
6070
|
for (a = 0; a < r.length; a++)
|
6178
6071
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
@@ -6242,8 +6135,7 @@ function Ea() {
|
|
6242
6135
|
}, Ea.apply(this, arguments);
|
6243
6136
|
}
|
6244
6137
|
function S1(e, t) {
|
6245
|
-
if (e == null)
|
6246
|
-
return {};
|
6138
|
+
if (e == null) return {};
|
6247
6139
|
var n = {}, r = Object.keys(e), i, a;
|
6248
6140
|
for (a = 0; a < r.length; a++)
|
6249
6141
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
@@ -6281,8 +6173,7 @@ function Ca() {
|
|
6281
6173
|
}, Ca.apply(this, arguments);
|
6282
6174
|
}
|
6283
6175
|
function O1(e, t) {
|
6284
|
-
if (e == null)
|
6285
|
-
return {};
|
6176
|
+
if (e == null) return {};
|
6286
6177
|
var n = {}, r = Object.keys(e), i, a;
|
6287
6178
|
for (a = 0; a < r.length; a++)
|
6288
6179
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
@@ -6322,8 +6213,7 @@ function Pa() {
|
|
6322
6213
|
}, Pa.apply(this, arguments);
|
6323
6214
|
}
|
6324
6215
|
function P1(e, t) {
|
6325
|
-
if (e == null)
|
6326
|
-
return {};
|
6216
|
+
if (e == null) return {};
|
6327
6217
|
var n = {}, r = Object.keys(e), i, a;
|
6328
6218
|
for (a = 0; a < r.length; a++)
|
6329
6219
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
@@ -6363,8 +6253,7 @@ function La() {
|
|
6363
6253
|
}, La.apply(this, arguments);
|
6364
6254
|
}
|
6365
6255
|
function A1(e, t) {
|
6366
|
-
if (e == null)
|
6367
|
-
return {};
|
6256
|
+
if (e == null) return {};
|
6368
6257
|
var n = {}, r = Object.keys(e), i, a;
|
6369
6258
|
for (a = 0; a < r.length; a++)
|
6370
6259
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
@@ -6420,8 +6309,7 @@ function Ra() {
|
|
6420
6309
|
}, Ra.apply(this, arguments);
|
6421
6310
|
}
|
6422
6311
|
function D1(e, t) {
|
6423
|
-
if (e == null)
|
6424
|
-
return {};
|
6312
|
+
if (e == null) return {};
|
6425
6313
|
var n = {}, r = Object.keys(e), i, a;
|
6426
6314
|
for (a = 0; a < r.length; a++)
|
6427
6315
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
@@ -6842,20 +6730,13 @@ Object.assign(wh, {
|
|
6842
6730
|
});
|
6843
6731
|
function Sh(e) {
|
6844
6732
|
var t, n, r = "";
|
6845
|
-
if (typeof e == "string" || typeof e == "number")
|
6846
|
-
|
6847
|
-
else
|
6848
|
-
if (Array.isArray(e))
|
6849
|
-
for (t = 0; t < e.length; t++)
|
6850
|
-
e[t] && (n = Sh(e[t])) && (r && (r += " "), r += n);
|
6851
|
-
else
|
6852
|
-
for (t in e)
|
6853
|
-
e[t] && (r && (r += " "), r += t);
|
6733
|
+
if (typeof e == "string" || typeof e == "number") r += e;
|
6734
|
+
else if (typeof e == "object") if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (n = Sh(e[t])) && (r && (r += " "), r += n);
|
6735
|
+
else for (t in e) e[t] && (r && (r += " "), r += t);
|
6854
6736
|
return r;
|
6855
6737
|
}
|
6856
6738
|
function gu() {
|
6857
|
-
for (var e, t, n = 0, r = ""; n < arguments.length; )
|
6858
|
-
(e = arguments[n++]) && (t = Sh(e)) && (r && (r += " "), r += t);
|
6739
|
+
for (var e, t, n = 0, r = ""; n < arguments.length; ) (e = arguments[n++]) && (t = Sh(e)) && (r && (r += " "), r += t);
|
6859
6740
|
return r;
|
6860
6741
|
}
|
6861
6742
|
var I1 = ["flexDirection", "alignItems", "margin", "display", "children"];
|
@@ -6870,8 +6751,7 @@ function Aa() {
|
|
6870
6751
|
}, Aa.apply(this, arguments);
|
6871
6752
|
}
|
6872
6753
|
function W1(e, t) {
|
6873
|
-
if (e == null)
|
6874
|
-
return {};
|
6754
|
+
if (e == null) return {};
|
6875
6755
|
var n = {}, r = Object.keys(e), i, a;
|
6876
6756
|
for (a = 0; a < r.length; a++)
|
6877
6757
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
@@ -6907,8 +6787,7 @@ function Na() {
|
|
6907
6787
|
}, Na.apply(this, arguments);
|
6908
6788
|
}
|
6909
6789
|
function H1(e, t) {
|
6910
|
-
if (e == null)
|
6911
|
-
return {};
|
6790
|
+
if (e == null) return {};
|
6912
6791
|
var n = {}, r = Object.keys(e), i, a;
|
6913
6792
|
for (a = 0; a < r.length; a++)
|
6914
6793
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
@@ -7090,8 +6969,7 @@ function Nn() {
|
|
7090
6969
|
}, Nn.apply(this, arguments);
|
7091
6970
|
}
|
7092
6971
|
function V1(e, t) {
|
7093
|
-
if (e == null)
|
7094
|
-
return {};
|
6972
|
+
if (e == null) return {};
|
7095
6973
|
var n = {}, r = Object.keys(e), i, a;
|
7096
6974
|
for (a = 0; a < r.length; a++)
|
7097
6975
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
@@ -7409,8 +7287,7 @@ const xu = hh(Z1, function(e, t) {
|
|
7409
7287
|
return e + "_" + JSON.stringify(t);
|
7410
7288
|
});
|
7411
7289
|
function Q1(e, t) {
|
7412
|
-
if (e == null)
|
7413
|
-
return {};
|
7290
|
+
if (e == null) return {};
|
7414
7291
|
var n = {}, r = Object.keys(e), i, a;
|
7415
7292
|
for (a = 0; a < r.length; a++)
|
7416
7293
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
@@ -7484,8 +7361,7 @@ function za() {
|
|
7484
7361
|
}, za.apply(this, arguments);
|
7485
7362
|
}
|
7486
7363
|
function ex(e, t) {
|
7487
|
-
if (e == null)
|
7488
|
-
return {};
|
7364
|
+
if (e == null) return {};
|
7489
7365
|
var n = {}, r = Object.keys(e), i, a;
|
7490
7366
|
for (a = 0; a < r.length; a++)
|
7491
7367
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
@@ -7573,8 +7449,7 @@ function rx(e) {
|
|
7573
7449
|
tt(() => (f.current = !0, () => void (f.current = !1)));
|
7574
7450
|
const [h, d, p] = ce(() => {
|
7575
7451
|
const m = () => {
|
7576
|
-
if (!l.current.element)
|
7577
|
-
return;
|
7452
|
+
if (!l.current.element) return;
|
7578
7453
|
const {
|
7579
7454
|
left: x,
|
7580
7455
|
top: T,
|
@@ -7633,8 +7508,7 @@ function ax(e, t) {
|
|
7633
7508
|
}
|
7634
7509
|
function Ah(e) {
|
7635
7510
|
const t = [];
|
7636
|
-
if (!e || e === document.body)
|
7637
|
-
return t;
|
7511
|
+
if (!e || e === document.body) return t;
|
7638
7512
|
const {
|
7639
7513
|
overflow: n,
|
7640
7514
|
overflowX: r,
|
@@ -7701,8 +7575,7 @@ var qi = {
|
|
7701
7575
|
y: 0
|
7702
7576
|
};
|
7703
7577
|
function mx(e) {
|
7704
|
-
if (!e)
|
7705
|
-
return Dn({}, qi);
|
7578
|
+
if (!e) return Dn({}, qi);
|
7706
7579
|
if (dx(e))
|
7707
7580
|
return e.changedTouches.length > 0 ? {
|
7708
7581
|
x: e.changedTouches[0].clientX,
|
@@ -7720,8 +7593,7 @@ function mx(e) {
|
|
7720
7593
|
} : Dn({}, qi);
|
7721
7594
|
}
|
7722
7595
|
function ku(e, t) {
|
7723
|
-
if (!e || !t)
|
7724
|
-
return null;
|
7596
|
+
if (!e || !t) return null;
|
7725
7597
|
var n = mx(t), r = cx(e) ? e.ownerSVGElement : e, i = hx(r) ? r.getScreenCTM() : null;
|
7726
7598
|
if (fx(r) && i) {
|
7727
7599
|
var a = r.createSVGPoint();
|
@@ -7741,8 +7613,7 @@ function gx(e, t) {
|
|
7741
7613
|
return ku(e, t);
|
7742
7614
|
if (vx(e)) {
|
7743
7615
|
var n = e, r = n.target;
|
7744
|
-
if (r)
|
7745
|
-
return ku(r, n);
|
7616
|
+
if (r) return ku(r, n);
|
7746
7617
|
}
|
7747
7618
|
return null;
|
7748
7619
|
}
|
@@ -7757,8 +7628,7 @@ function ja() {
|
|
7757
7628
|
}, ja.apply(this, arguments);
|
7758
7629
|
}
|
7759
7630
|
function yx(e, t) {
|
7760
|
-
if (e == null)
|
7761
|
-
return {};
|
7631
|
+
if (e == null) return {};
|
7762
7632
|
var n = {}, r = Object.keys(e), i, a;
|
7763
7633
|
for (a = 0; a < r.length; a++)
|
7764
7634
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
@@ -7795,8 +7665,7 @@ function Ia() {
|
|
7795
7665
|
}, Ia.apply(this, arguments);
|
7796
7666
|
}
|
7797
7667
|
function xx(e, t) {
|
7798
|
-
if (e == null)
|
7799
|
-
return {};
|
7668
|
+
if (e == null) return {};
|
7800
7669
|
var n = {}, r = Object.keys(e), i, a;
|
7801
7670
|
for (a = 0; a < r.length; a++)
|
7802
7671
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
@@ -8079,8 +7948,7 @@ function n_(e) {
|
|
8079
7948
|
function Xh(e) {
|
8080
7949
|
if ((typeof e == "function" || typeof e == "object" && e) && "valueOf" in e) {
|
8081
7950
|
var t = e.valueOf();
|
8082
|
-
if (typeof t == "number")
|
8083
|
-
return t;
|
7951
|
+
if (typeof t == "number") return t;
|
8084
7952
|
}
|
8085
7953
|
return e;
|
8086
7954
|
}
|
@@ -8141,8 +8009,7 @@ function Er() {
|
|
8141
8009
|
}, Er.apply(this, arguments);
|
8142
8010
|
}
|
8143
8011
|
function a_(e, t) {
|
8144
|
-
if (e == null)
|
8145
|
-
return {};
|
8012
|
+
if (e == null) return {};
|
8146
8013
|
var n = {}, r = Object.keys(e), i, a;
|
8147
8014
|
for (a = 0; a < r.length; a++)
|
8148
8015
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
@@ -8194,8 +8061,7 @@ function Ua() {
|
|
8194
8061
|
}, Ua.apply(this, arguments);
|
8195
8062
|
}
|
8196
8063
|
function u_(e, t) {
|
8197
|
-
if (e == null)
|
8198
|
-
return {};
|
8064
|
+
if (e == null) return {};
|
8199
8065
|
var n = {}, r = Object.keys(e), i, a;
|
8200
8066
|
for (a = 0; a < r.length; a++)
|
8201
8067
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
@@ -8241,8 +8107,7 @@ function qa() {
|
|
8241
8107
|
}, qa.apply(this, arguments);
|
8242
8108
|
}
|
8243
8109
|
function g_(e, t) {
|
8244
|
-
if (e == null)
|
8245
|
-
return {};
|
8110
|
+
if (e == null) return {};
|
8246
8111
|
var n = {}, r = Object.keys(e), i, a;
|
8247
8112
|
for (a = 0; a < r.length; a++)
|
8248
8113
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
@@ -8300,8 +8165,7 @@ function Ya() {
|
|
8300
8165
|
}, Ya.apply(this, arguments);
|
8301
8166
|
}
|
8302
8167
|
function S_(e, t) {
|
8303
|
-
if (e == null)
|
8304
|
-
return {};
|
8168
|
+
if (e == null) return {};
|
8305
8169
|
var n = {}, r = Object.keys(e), i, a;
|
8306
8170
|
for (a = 0; a < r.length; a++)
|
8307
8171
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
@@ -8355,8 +8219,7 @@ function Cr() {
|
|
8355
8219
|
}, Cr.apply(this, arguments);
|
8356
8220
|
}
|
8357
8221
|
function k_(e, t) {
|
8358
|
-
if (e == null)
|
8359
|
-
return {};
|
8222
|
+
if (e == null) return {};
|
8360
8223
|
var n = {}, r = Object.keys(e), i, a;
|
8361
8224
|
for (a = 0; a < r.length; a++)
|
8362
8225
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
@@ -8529,8 +8392,7 @@ function Ga() {
|
|
8529
8392
|
}, Ga.apply(this, arguments);
|
8530
8393
|
}
|
8531
8394
|
function C_(e, t) {
|
8532
|
-
if (e == null)
|
8533
|
-
return {};
|
8395
|
+
if (e == null) return {};
|
8534
8396
|
var n = {}, r = Object.keys(e), i, a;
|
8535
8397
|
for (a = 0; a < r.length; a++)
|
8536
8398
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
@@ -8620,8 +8482,7 @@ function L_(e) {
|
|
8620
8482
|
}, e));
|
8621
8483
|
}
|
8622
8484
|
function R_(e, t) {
|
8623
|
-
if (e == null)
|
8624
|
-
return {};
|
8485
|
+
if (e == null) return {};
|
8625
8486
|
var n = {}, r = Object.keys(e), i, a;
|
8626
8487
|
for (a = 0; a < r.length; a++)
|
8627
8488
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
@@ -8710,8 +8571,7 @@ function Lr() {
|
|
8710
8571
|
}, Lr.apply(this, arguments);
|
8711
8572
|
}
|
8712
8573
|
function z_(e, t) {
|
8713
|
-
if (e == null)
|
8714
|
-
return {};
|
8574
|
+
if (e == null) return {};
|
8715
8575
|
var n = {}, r = Object.keys(e), i, a;
|
8716
8576
|
for (a = 0; a < r.length; a++)
|
8717
8577
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
@@ -8797,8 +8657,7 @@ function j_(e) {
|
|
8797
8657
|
return o.getRects();
|
8798
8658
|
});
|
8799
8659
|
}, a.getRects = function() {
|
8800
|
-
if (!this.node)
|
8801
|
-
return this.state;
|
8660
|
+
if (!this.node) return this.state;
|
8802
8661
|
var o = this.node, l = o.parentNode, u = o.getBoundingClientRect ? o.getBoundingClientRect() : Iu, c = l && l.getBoundingClientRect ? l.getBoundingClientRect() : Iu;
|
8803
8662
|
return {
|
8804
8663
|
rect: u,
|
@@ -8822,8 +8681,7 @@ function Rr() {
|
|
8822
8681
|
}, Rr.apply(this, arguments);
|
8823
8682
|
}
|
8824
8683
|
function I_(e, t) {
|
8825
|
-
if (e == null)
|
8826
|
-
return {};
|
8684
|
+
if (e == null) return {};
|
8827
8685
|
var n = {}, r = Object.keys(e), i, a;
|
8828
8686
|
for (a = 0; a < r.length; a++)
|
8829
8687
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
@@ -8869,8 +8727,7 @@ function Qa() {
|
|
8869
8727
|
}, Qa.apply(this, arguments);
|
8870
8728
|
}
|
8871
8729
|
function Wu(e, t) {
|
8872
|
-
if (e == null)
|
8873
|
-
return {};
|
8730
|
+
if (e == null) return {};
|
8874
8731
|
var n = {}, r = Object.keys(e), i, a;
|
8875
8732
|
for (a = 0; a < r.length; a++)
|
8876
8733
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
@@ -8897,8 +8754,7 @@ function H_(e) {
|
|
8897
8754
|
}
|
8898
8755
|
var tr = Qu(null);
|
8899
8756
|
function Bu(e, t) {
|
8900
|
-
if (e == null)
|
8901
|
-
return {};
|
8757
|
+
if (e == null) return {};
|
8902
8758
|
var n = {}, r = Object.keys(e), i, a;
|
8903
8759
|
for (a = 0; a < r.length; a++)
|
8904
8760
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
@@ -9481,8 +9337,7 @@ const Bw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9481
9337
|
}, Symbol.toStringTag, { value: "Module" })), Hw = /* @__PURE__ */ pt(Bw);
|
9482
9338
|
var Uw = gd, it = as(Hr), qw = as(cd), jt = Vw($), Yw = as(Hw);
|
9483
9339
|
function md() {
|
9484
|
-
if (typeof WeakMap != "function")
|
9485
|
-
return null;
|
9340
|
+
if (typeof WeakMap != "function") return null;
|
9486
9341
|
var e = /* @__PURE__ */ new WeakMap();
|
9487
9342
|
return md = function() {
|
9488
9343
|
return e;
|
@@ -9518,8 +9373,7 @@ function Dr() {
|
|
9518
9373
|
}, Dr.apply(this, arguments);
|
9519
9374
|
}
|
9520
9375
|
function Gw(e, t) {
|
9521
|
-
if (e == null)
|
9522
|
-
return {};
|
9376
|
+
if (e == null) return {};
|
9523
9377
|
var n = {}, r = Object.keys(e), i, a;
|
9524
9378
|
for (a = 0; a < r.length; a++)
|
9525
9379
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
@@ -10278,8 +10132,7 @@ function kd(e) {
|
|
10278
10132
|
s = i[T], o = T;
|
10279
10133
|
} else
|
10280
10134
|
return console.warn("[visx/xychart/findNearestDatum] encountered incompatible scale type, bailing"), null;
|
10281
|
-
if (s == null || o == null)
|
10282
|
-
return null;
|
10135
|
+
if (s == null || o == null) return null;
|
10283
10136
|
var _ = Math.abs(Number(a(n(s))) - r);
|
10284
10137
|
return {
|
10285
10138
|
datum: s,
|
@@ -10289,8 +10142,7 @@ function kd(e) {
|
|
10289
10142
|
}
|
10290
10143
|
function ek(e) {
|
10291
10144
|
var t = e.xScale, n = e.xAccessor, r = e.yScale, i = e.yAccessor, a = e.point, s = e.data;
|
10292
|
-
if (!a)
|
10293
|
-
return null;
|
10145
|
+
if (!a) return null;
|
10294
10146
|
var o = kd({
|
10295
10147
|
scale: t,
|
10296
10148
|
accessor: n,
|
@@ -10306,8 +10158,7 @@ function ek(e) {
|
|
10306
10158
|
}
|
10307
10159
|
function tk(e) {
|
10308
10160
|
var t = e.yScale, n = e.yAccessor, r = e.xScale, i = e.xAccessor, a = e.point, s = e.data;
|
10309
|
-
if (!a)
|
10310
|
-
return null;
|
10161
|
+
if (!a) return null;
|
10311
10162
|
var o = kd({
|
10312
10163
|
scale: t,
|
10313
10164
|
accessor: n,
|
@@ -10551,8 +10402,7 @@ function io() {
|
|
10551
10402
|
}, io.apply(this, arguments);
|
10552
10403
|
}
|
10553
10404
|
function xk(e, t) {
|
10554
|
-
if (e == null)
|
10555
|
-
return {};
|
10405
|
+
if (e == null) return {};
|
10556
10406
|
var n = {}, r = Object.keys(e), i, a;
|
10557
10407
|
for (a = 0; a < r.length; a++)
|
10558
10408
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
@@ -10601,8 +10451,7 @@ function Md(e) {
|
|
10601
10451
|
};
|
10602
10452
|
}, [c, r, i, a, s]);
|
10603
10453
|
var f = c == null ? void 0 : c.get(r);
|
10604
|
-
if (!l || !u || !f)
|
10605
|
-
return null;
|
10454
|
+
if (!l || !u || !f) return null;
|
10606
10455
|
var h = e;
|
10607
10456
|
return /* @__PURE__ */ $.createElement(h, ao({}, n, {
|
10608
10457
|
xScale: l,
|
@@ -10676,8 +10525,7 @@ function ks(e) {
|
|
10676
10525
|
}), W = ce(function() {
|
10677
10526
|
return a.map(function(Q, H) {
|
10678
10527
|
var Y, X = O(Q);
|
10679
|
-
if (!Oe(X))
|
10680
|
-
return null;
|
10528
|
+
if (!Oe(X)) return null;
|
10681
10529
|
var G = R(Q);
|
10682
10530
|
return Oe(G) ? {
|
10683
10531
|
key: "" + H,
|
@@ -10735,8 +10583,7 @@ function Wr() {
|
|
10735
10583
|
}, Wr.apply(this, arguments);
|
10736
10584
|
}
|
10737
10585
|
function Sk(e, t) {
|
10738
|
-
if (e == null)
|
10739
|
-
return {};
|
10586
|
+
if (e == null) return {};
|
10740
10587
|
var n = {}, r = Object.keys(e), i, a;
|
10741
10588
|
for (a = 0; a < r.length; a++)
|
10742
10589
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
@@ -10775,8 +10622,7 @@ function Fn() {
|
|
10775
10622
|
}, Fn.apply(this, arguments);
|
10776
10623
|
}
|
10777
10624
|
function Tk(e, t) {
|
10778
|
-
if (e == null)
|
10779
|
-
return {};
|
10625
|
+
if (e == null) return {};
|
10780
10626
|
var n = {}, r = Object.keys(e), i, a;
|
10781
10627
|
for (a = 0; a < r.length; a++)
|
10782
10628
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@spscommerce/ds-react-charts",
|
3
3
|
"description": "SPS Design System React Chart components",
|
4
|
-
"version": "8.12.
|
4
|
+
"version": "8.12.2",
|
5
5
|
"author": "SPS Commerce",
|
6
6
|
"license": "UNLICENSED",
|
7
7
|
"repository": "https://github.com/spscommerce/woodland/tree/main/packages/@spscommerce/ds-react-charts",
|
@@ -37,9 +37,9 @@
|
|
37
37
|
"@spscommerce/utils": "^7.0.0",
|
38
38
|
"react": "^16.9.0",
|
39
39
|
"react-dom": "^16.9.0",
|
40
|
-
"@spscommerce/ds-colors": "8.12.
|
41
|
-
"@spscommerce/ds-react": "8.12.
|
42
|
-
"@spscommerce/ds-shared": "8.12.
|
40
|
+
"@spscommerce/ds-colors": "8.12.2",
|
41
|
+
"@spscommerce/ds-react": "8.12.2",
|
42
|
+
"@spscommerce/ds-shared": "8.12.2"
|
43
43
|
},
|
44
44
|
"devDependencies": {
|
45
45
|
"@spscommerce/utils": "^7.0.0",
|
@@ -50,10 +50,10 @@
|
|
50
50
|
"prop-types": "^15.7.2",
|
51
51
|
"react": "^16.9.0",
|
52
52
|
"react-dom": "^16.9.0",
|
53
|
-
"@spscommerce/ds-colors": "8.12.
|
54
|
-
"@spscommerce/ds-react": "8.12.
|
55
|
-
"@spscommerce/ds-shared": "8.12.
|
56
|
-
"test": "8.12.
|
53
|
+
"@spscommerce/ds-colors": "8.12.2",
|
54
|
+
"@spscommerce/ds-react": "8.12.2",
|
55
|
+
"@spscommerce/ds-shared": "8.12.2",
|
56
|
+
"test": "8.12.2"
|
57
57
|
},
|
58
58
|
"scripts": {
|
59
59
|
"build": "pnpm run build:js && pnpm run build:types",
|
@@ -61,6 +61,6 @@
|
|
61
61
|
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir lib",
|
62
62
|
"watch": "vite build --watch",
|
63
63
|
"clean": "git clean -fdX",
|
64
|
-
"pub": "node ../../scripts/publish-package.
|
64
|
+
"pub": "node ../../scripts/publish-package.mjs"
|
65
65
|
}
|
66
66
|
}
|