@graphysdk/react 1.9.0-beta.1791986576442 → 1.9.0-beta.1792062305376
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/editable.browser.mjs +19787 -19489
- package/dist/index.browser.mjs +265 -262
- package/package.json +6 -6
package/dist/index.browser.mjs
CHANGED
|
@@ -2449,7 +2449,7 @@ function U2(e) {
|
|
|
2449
2449
|
function z2(e) {
|
|
2450
2450
|
return e[O.yBand] ?? e[O.y];
|
|
2451
2451
|
}
|
|
2452
|
-
function
|
|
2452
|
+
function er(e) {
|
|
2453
2453
|
return e[O.xMin];
|
|
2454
2454
|
}
|
|
2455
2455
|
function Ot(e) {
|
|
@@ -2473,7 +2473,7 @@ var Y2 = {
|
|
|
2473
2473
|
yMin: 0,
|
|
2474
2474
|
yMax: 1
|
|
2475
2475
|
}, x1 = (e, t) => {
|
|
2476
|
-
const r =
|
|
2476
|
+
const r = er(e) ?? xe(e), n = Ot(e) ?? xe(e), i = Nt(e) ?? pe(e), o = ot(e) ?? pe(e);
|
|
2477
2477
|
return !Oe(r) || !Oe(n) || !Oe(i) || !Oe(o) ? null : t.type !== "polar" ? {
|
|
2478
2478
|
xMin: r,
|
|
2479
2479
|
xMax: n,
|
|
@@ -4410,14 +4410,14 @@ function sy(e, t) {
|
|
|
4410
4410
|
function ni(e) {
|
|
4411
4411
|
return e.type === "cartesian" ? e.mainAxis : "x";
|
|
4412
4412
|
}
|
|
4413
|
-
var
|
|
4413
|
+
var tr = (e) => e[we.group], yV = (e) => {
|
|
4414
4414
|
const t = pu(e), r = T1(e), n = M1(e) && t !== we.group;
|
|
4415
4415
|
return (i) => {
|
|
4416
4416
|
const o = i[t] ?? null;
|
|
4417
4417
|
if (o === null) return null;
|
|
4418
4418
|
const a = r === null ? null : r(i);
|
|
4419
4419
|
if (r !== null && a === null) return null;
|
|
4420
|
-
const s = n ?
|
|
4420
|
+
const s = n ? tr(i) ?? null : null;
|
|
4421
4421
|
return {
|
|
4422
4422
|
layerId: e.id,
|
|
4423
4423
|
anchorValue: o,
|
|
@@ -4604,7 +4604,7 @@ function DS(e, t) {
|
|
|
4604
4604
|
}
|
|
4605
4605
|
var IV = (e) => {
|
|
4606
4606
|
const t = pu(e), r = T1(e), n = M1(e);
|
|
4607
|
-
return (i, o) => !Sr(i[t] ?? null, o.anchorValue) || !(r === null || o.crossValue === void 0 || Sr(r(i), o.crossValue)) ? !1 : !n || o.groupValue === void 0 ? !0 : Sr(
|
|
4607
|
+
return (i, o) => !Sr(i[t] ?? null, o.anchorValue) || !(r === null || o.crossValue === void 0 || Sr(r(i), o.crossValue)) ? !1 : !n || o.groupValue === void 0 ? !0 : Sr(tr(i), o.groupValue);
|
|
4608
4608
|
}, RV = (e) => {
|
|
4609
4609
|
const t = K(e.mapping.y), r = Ys(e);
|
|
4610
4610
|
return (n, i) => t !== null && i === t ? r(n) : n[i] ?? null;
|
|
@@ -6262,7 +6262,7 @@ _c.every = function(e) {
|
|
|
6262
6262
|
return (r - t) / e;
|
|
6263
6263
|
}) : _c;
|
|
6264
6264
|
};
|
|
6265
|
-
var Pme = _c.range, pn = 1e3,
|
|
6265
|
+
var Pme = _c.range, pn = 1e3, lr = pn * 60, gn = lr * 60, Gi = gn * 24, Hm = Gi * 7, py = Gi * 30, Ld = Gi * 365, Mo = pt(function(e) {
|
|
6266
6266
|
e.setTime(e - e.getMilliseconds());
|
|
6267
6267
|
}, function(e, t) {
|
|
6268
6268
|
e.setTime(+e + t * pn);
|
|
@@ -6273,27 +6273,27 @@ var Pme = _c.range, pn = 1e3, sr = pn * 60, gn = sr * 60, Gi = gn * 24, Hm = Gi
|
|
|
6273
6273
|
}), _me = Mo.range, zS = pt(function(e) {
|
|
6274
6274
|
e.setTime(e - e.getMilliseconds() - e.getSeconds() * pn);
|
|
6275
6275
|
}, function(e, t) {
|
|
6276
|
-
e.setTime(+e + t *
|
|
6276
|
+
e.setTime(+e + t * lr);
|
|
6277
6277
|
}, function(e, t) {
|
|
6278
|
-
return (t - e) /
|
|
6278
|
+
return (t - e) / lr;
|
|
6279
6279
|
}, function(e) {
|
|
6280
6280
|
return e.getMinutes();
|
|
6281
6281
|
}), Cme = zS.range, YS = pt(function(e) {
|
|
6282
|
-
e.setTime(e - e.getMilliseconds() - e.getSeconds() * pn - e.getMinutes() *
|
|
6282
|
+
e.setTime(e - e.getMilliseconds() - e.getSeconds() * pn - e.getMinutes() * lr);
|
|
6283
6283
|
}, function(e, t) {
|
|
6284
6284
|
e.setTime(+e + t * gn);
|
|
6285
6285
|
}, function(e, t) {
|
|
6286
6286
|
return (t - e) / gn;
|
|
6287
6287
|
}, function(e) {
|
|
6288
6288
|
return e.getHours();
|
|
6289
|
-
}), Ime = YS.range, ku = pt((e) => e.setHours(0, 0, 0, 0), (e, t) => e.setDate(e.getDate() + t), (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) *
|
|
6289
|
+
}), Ime = YS.range, ku = pt((e) => e.setHours(0, 0, 0, 0), (e, t) => e.setDate(e.getDate() + t), (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * lr) / Gi, (e) => e.getDate() - 1), Rme = ku.range;
|
|
6290
6290
|
function to(e) {
|
|
6291
6291
|
return pt(function(t) {
|
|
6292
6292
|
t.setDate(t.getDate() - (t.getDay() + 7 - e) % 7), t.setHours(0, 0, 0, 0);
|
|
6293
6293
|
}, function(t, r) {
|
|
6294
6294
|
t.setDate(t.getDate() + r * 7);
|
|
6295
6295
|
}, function(t, r) {
|
|
6296
|
-
return (r - t - (r.getTimezoneOffset() - t.getTimezoneOffset()) *
|
|
6296
|
+
return (r - t - (r.getTimezoneOffset() - t.getTimezoneOffset()) * lr) / Hm;
|
|
6297
6297
|
});
|
|
6298
6298
|
}
|
|
6299
6299
|
var Gm = to(0), Cc = to(1), sH = to(2), lH = to(3), Qo = to(4), cH = to(5), uH = to(6), Lme = Gm.range, Dme = Cc.range, Ome = sH.range, Nme = lH.range, Bme = Qo.range, Vme = cH.range, Fme = uH.range, KS = pt(function(e) {
|
|
@@ -6323,9 +6323,9 @@ qn.every = function(e) {
|
|
|
6323
6323
|
var Gme = qn.range, $m = pt(function(e) {
|
|
6324
6324
|
e.setUTCSeconds(0, 0);
|
|
6325
6325
|
}, function(e, t) {
|
|
6326
|
-
e.setTime(+e + t *
|
|
6326
|
+
e.setTime(+e + t * lr);
|
|
6327
6327
|
}, function(e, t) {
|
|
6328
|
-
return (t - e) /
|
|
6328
|
+
return (t - e) / lr;
|
|
6329
6329
|
}, function(e) {
|
|
6330
6330
|
return e.getUTCMinutes();
|
|
6331
6331
|
}), $me = $m.range, Pu = pt(function(e) {
|
|
@@ -6504,22 +6504,22 @@ function JS(e, t, r, n, i, o) {
|
|
|
6504
6504
|
[
|
|
6505
6505
|
o,
|
|
6506
6506
|
1,
|
|
6507
|
-
|
|
6507
|
+
lr
|
|
6508
6508
|
],
|
|
6509
6509
|
[
|
|
6510
6510
|
o,
|
|
6511
6511
|
5,
|
|
6512
|
-
5 *
|
|
6512
|
+
5 * lr
|
|
6513
6513
|
],
|
|
6514
6514
|
[
|
|
6515
6515
|
o,
|
|
6516
6516
|
15,
|
|
6517
|
-
15 *
|
|
6517
|
+
15 * lr
|
|
6518
6518
|
],
|
|
6519
6519
|
[
|
|
6520
6520
|
o,
|
|
6521
6521
|
30,
|
|
6522
|
-
30 *
|
|
6522
|
+
30 * lr
|
|
6523
6523
|
],
|
|
6524
6524
|
[
|
|
6525
6525
|
i,
|
|
@@ -7447,7 +7447,7 @@ function F5(e) {
|
|
|
7447
7447
|
return e.data.groupBy(we.group).forEach((r) => {
|
|
7448
7448
|
const n = r.findLast((l) => H(ot(l)) || H(pe(l)));
|
|
7449
7449
|
if (!n) return;
|
|
7450
|
-
const i =
|
|
7450
|
+
const i = tr(n);
|
|
7451
7451
|
if (!H(i)) return;
|
|
7452
7452
|
const o = Nt(n), a = ot(n) ?? pe(n);
|
|
7453
7453
|
if (!H(a)) return;
|
|
@@ -7505,7 +7505,7 @@ var H5 = class extends ri {
|
|
|
7505
7505
|
}, $5 = (e) => {
|
|
7506
7506
|
const t = w1(e);
|
|
7507
7507
|
return t === "" ? null : t;
|
|
7508
|
-
}, W5 = (e) => Ae([
|
|
7508
|
+
}, W5 = (e) => Ae([tr(e)]), Um = (e, t) => Ae([t !== null ? e[t] ?? null : null]);
|
|
7509
7509
|
function j5(e) {
|
|
7510
7510
|
return e === null ? null : {
|
|
7511
7511
|
strategy: e,
|
|
@@ -9832,7 +9832,7 @@ var P3 = (e) => e.observation?.aesthetics ?? Pe.geom.aesthetics, AT = (e) => e.o
|
|
|
9832
9832
|
height: i - n
|
|
9833
9833
|
};
|
|
9834
9834
|
}, ET = (e, t) => {
|
|
9835
|
-
const r =
|
|
9835
|
+
const r = er(t), n = Ot(t), i = Nt(t), o = ot(t) ?? pe(t);
|
|
9836
9836
|
return r === null || n === null || i === null || o === null ? null : MT(e, r, n, i, o);
|
|
9837
9837
|
}, U3 = (e, t) => {
|
|
9838
9838
|
const { xMin: r, xMax: n, yMin: i, yMax: o } = t.anchor;
|
|
@@ -10267,7 +10267,7 @@ var tG = " · ", mn = 2, rG = (e) => {
|
|
|
10267
10267
|
purpose: i
|
|
10268
10268
|
};
|
|
10269
10269
|
if (r.mainAxis === "x") {
|
|
10270
|
-
const d =
|
|
10270
|
+
const d = er(t), h = Ot(t), f = Wy({
|
|
10271
10271
|
lowerBound: Nt(t),
|
|
10272
10272
|
upperBound: ot(t) ?? pe(t),
|
|
10273
10273
|
options: s
|
|
@@ -10278,7 +10278,7 @@ var tG = " · ", mn = 2, rG = (e) => {
|
|
|
10278
10278
|
};
|
|
10279
10279
|
}
|
|
10280
10280
|
const l = Nt(t), c = ot(t), u = Wy({
|
|
10281
|
-
lowerBound:
|
|
10281
|
+
lowerBound: er(t),
|
|
10282
10282
|
upperBound: Ot(t) ?? xe(t),
|
|
10283
10283
|
options: s
|
|
10284
10284
|
});
|
|
@@ -10322,7 +10322,7 @@ var tG = " · ", mn = 2, rG = (e) => {
|
|
|
10322
10322
|
}), n;
|
|
10323
10323
|
}
|
|
10324
10324
|
}, $y = ({ width: e }, t) => e !== void 0 ? e : t === "polar" ? 1 : B3, cG = (e) => {
|
|
10325
|
-
const t =
|
|
10325
|
+
const t = er(e), r = Ot(e), n = Nt(e), i = ot(e);
|
|
10326
10326
|
return t === null || r === null || n === null || i === null ? null : Si((t + r) / 2, (n + i) / 2);
|
|
10327
10327
|
}, uG = (e) => {
|
|
10328
10328
|
const t = b1(e);
|
|
@@ -10697,7 +10697,7 @@ function _T(e) {
|
|
|
10697
10697
|
return e[An.lineType];
|
|
10698
10698
|
}
|
|
10699
10699
|
var bG = (e) => {
|
|
10700
|
-
const t =
|
|
10700
|
+
const t = er(e), r = Ot(e), n = Nt(e), i = ot(e);
|
|
10701
10701
|
if (t === null || r === null || n === null || i === null) return null;
|
|
10702
10702
|
const o = Math.min(t, r), a = Math.abs(r - t), s = Math.max(n, i), l = Math.abs(i - n);
|
|
10703
10703
|
return {
|
|
@@ -10815,7 +10815,7 @@ var bG = (e) => {
|
|
|
10815
10815
|
hideGridX: !0,
|
|
10816
10816
|
hideGridY: !0
|
|
10817
10817
|
} }, this.legend = { suppressWhenSingleItem: !1 }, this.dataLabels = { cartesian: { showDataLabels: !0 } }, this.dataLabelCoordTypes = ["cartesian"], this.highlightStrategy = "observation-rerender", this.spatialKind = "cells", this.identityKey = "x-y", this.tooltip = [{ aes: "color" }], this.resolveValueSource = AG, this.resolveAnchorPosition = (t) => {
|
|
10818
|
-
const r =
|
|
10818
|
+
const r = er(t), n = Ot(t), i = Nt(t), o = ot(t);
|
|
10819
10819
|
return r === null || n === null || i === null || o === null ? null : {
|
|
10820
10820
|
x: (r + n) / 2,
|
|
10821
10821
|
y: (i + o) / 2
|
|
@@ -11074,9 +11074,9 @@ var bG = (e) => {
|
|
|
11074
11074
|
function C(E) {
|
|
11075
11075
|
for (var k = n(s(E, M, L, !0), 4), _ = k[0], j = k[1], X = k[2], ee = k[3], ne = _.length, oe = Math.max(2, ~~(N * ne)), te = new Float64Array(ne), ae = new Float64Array(ne), ie = new Float64Array(ne).fill(1), se = -1; ++se <= y; ) {
|
|
11076
11076
|
for (var $ = [0, oe - 1], Y = 0; Y < ne; ++Y) {
|
|
11077
|
-
for (var q = _[Y], F = $[0], le = $[1], J = q - _[F] > _[le] - q ? F : le, Se = 0, Te = 0, qe = 0, at = 0, st = 0,
|
|
11078
|
-
var ht = _[lt], Ce = j[lt], Pt = S(Math.abs(q - ht) *
|
|
11079
|
-
Se += Pt, Te +=
|
|
11077
|
+
for (var q = _[Y], F = $[0], le = $[1], J = q - _[F] > _[le] - q ? F : le, Se = 0, Te = 0, qe = 0, at = 0, st = 0, nr = 1 / Math.abs(_[J] - q || 1), lt = F; lt <= le; ++lt) {
|
|
11078
|
+
var ht = _[lt], Ce = j[lt], Pt = S(Math.abs(q - ht) * nr) * ie[lt], zt = ht * Pt;
|
|
11079
|
+
Se += Pt, Te += zt, qe += Ce * Pt, at += Ce * zt, st += ht * zt;
|
|
11080
11080
|
}
|
|
11081
11081
|
var Ml = n(f(Te / Se, qe / Se, at / Se, st / Se), 2);
|
|
11082
11082
|
te[Y] = Ml[0] + Ml[1] * q, ae[Y] = Math.abs(j[Y] - te[Y]), P(_, Y + 1, $);
|
|
@@ -11149,13 +11149,13 @@ var bG = (e) => {
|
|
|
11149
11149
|
for ($ = 0; $ < ne; )
|
|
11150
11150
|
Y = _[$], q = j[$++], F = Y * Y, oe += (F - oe) / $, te += (F * Y - te) / $, ae += (F * F - ae) / $, ie += (Y * q - ie) / $, se += (F * q - se) / $;
|
|
11151
11151
|
var le = 0, J = 0, Se = N ? +N[0] : 1 / 0, Te = N ? +N[1] : -1 / 0;
|
|
11152
|
-
l(E, M, L, function(Pt,
|
|
11153
|
-
J++, le += (
|
|
11152
|
+
l(E, M, L, function(Pt, zt) {
|
|
11153
|
+
J++, le += (zt - le) / J, N || (Pt < Se && (Se = Pt), Pt > Te && (Te = Pt));
|
|
11154
11154
|
});
|
|
11155
|
-
var qe = ae - oe * oe, at = oe * qe - te * te, st = (se * oe - ie * te) / at,
|
|
11156
|
-
return
|
|
11155
|
+
var qe = ae - oe * oe, at = oe * qe - te * te, st = (se * oe - ie * te) / at, nr = (ie * qe - se * te) / at, lt = -st * oe, ht = function(zt) {
|
|
11156
|
+
return zt = zt - X, st * zt * zt + nr * zt + lt + ee;
|
|
11157
11157
|
}, Ce = h(Se, Te, ht);
|
|
11158
|
-
return Ce.a = st, Ce.b =
|
|
11158
|
+
return Ce.a = st, Ce.b = nr - 2 * st * X, Ce.c = lt - nr * X + st * X * X + ee, Ce.predict = ht, Ce.rSquared = c(E, M, L, le, ht), Ce;
|
|
11159
11159
|
}
|
|
11160
11160
|
return C.domain = function(E) {
|
|
11161
11161
|
return arguments.length ? (N = E, C) : N;
|
|
@@ -11198,13 +11198,13 @@ var bG = (e) => {
|
|
|
11198
11198
|
se.push(at);
|
|
11199
11199
|
}
|
|
11200
11200
|
se.push(ie);
|
|
11201
|
-
var st = I(se),
|
|
11201
|
+
var st = I(se), nr = function(Ce) {
|
|
11202
11202
|
Ce -= oe;
|
|
11203
11203
|
var Pt = te + st[0] + st[1] * Ce + st[2] * Ce * Ce;
|
|
11204
11204
|
for (J = 3; J < $; ++J) Pt += st[J] * Math.pow(Ce, J);
|
|
11205
11205
|
return Pt;
|
|
11206
|
-
}, lt = h(F, le,
|
|
11207
|
-
return lt.coefficients = R($, st, -oe, te), lt.predict =
|
|
11206
|
+
}, lt = h(F, le, nr);
|
|
11207
|
+
return lt.coefficients = R($, st, -oe, te), lt.predict = nr, lt.rSquared = c(k, M, L, Y, nr), lt;
|
|
11208
11208
|
}
|
|
11209
11209
|
return E.domain = function(k) {
|
|
11210
11210
|
return arguments.length ? (C = k, E) : C;
|
|
@@ -14323,7 +14323,7 @@ function sc(e, t = {}) {
|
|
|
14323
14323
|
clamp: t.clamp
|
|
14324
14324
|
};
|
|
14325
14325
|
}
|
|
14326
|
-
function
|
|
14326
|
+
function Xt(e, t = {}) {
|
|
14327
14327
|
return {
|
|
14328
14328
|
type: "scale",
|
|
14329
14329
|
scaledAesthetic: e,
|
|
@@ -14470,7 +14470,7 @@ function p6(e, t) {
|
|
|
14470
14470
|
scaleType: t.scaleType
|
|
14471
14471
|
},
|
|
14472
14472
|
suggestion: `Declare '${t.scaledAesthetic}' as a discrete scale, or omit it and let the geom's band be inferred.`
|
|
14473
|
-
}),
|
|
14473
|
+
}), Xt(t.scaledAesthetic, { ..."reverse" in t && t.reverse !== void 0 && { reverse: t.reverse } }));
|
|
14474
14474
|
}
|
|
14475
14475
|
function g6(e, t) {
|
|
14476
14476
|
return t.scaleType === "inferred" || t.scaledAesthetic !== e.demands.categorySpanAxis ? t : t.scaleType === "continuous" ? {
|
|
@@ -14501,7 +14501,7 @@ function y6({ data: e, layers: t, mapping: r, demands: n }, i) {
|
|
|
14501
14501
|
nice: u?.nice ?? !1
|
|
14502
14502
|
});
|
|
14503
14503
|
}
|
|
14504
|
-
if (i.scaledAesthetic === n.discreteAxis || i.scaledAesthetic === n.discreteCrossAxis) return
|
|
14504
|
+
if (i.scaledAesthetic === n.discreteAxis || i.scaledAesthetic === n.discreteCrossAxis) return Xt(i.scaledAesthetic, i.options);
|
|
14505
14505
|
const a = n.zeroAxes[i.scaledAesthetic];
|
|
14506
14506
|
if (a !== void 0) {
|
|
14507
14507
|
const u = i.options;
|
|
@@ -14515,7 +14515,7 @@ function y6({ data: e, layers: t, mapping: r, demands: n }, i) {
|
|
|
14515
14515
|
const l = e.getType(s), c = AM[i.scaledAesthetic];
|
|
14516
14516
|
switch (h6[l][c]) {
|
|
14517
14517
|
case "discrete":
|
|
14518
|
-
return
|
|
14518
|
+
return Xt(i.scaledAesthetic, i.options);
|
|
14519
14519
|
case "datetime":
|
|
14520
14520
|
return sc(i.scaledAesthetic, i.options);
|
|
14521
14521
|
case "continuous":
|
|
@@ -14539,7 +14539,7 @@ function w6(e, t) {
|
|
|
14539
14539
|
return !t.some((r) => r.yScaleType === "secondary") || e.some((r) => r.scaledAesthetic === "ySecondary") ? e : [...e, is("ySecondary")];
|
|
14540
14540
|
}
|
|
14541
14541
|
function A6(e, t) {
|
|
14542
|
-
return e.some((r) => r.scaledAesthetic === "color") ? e : [...e, t.inferredColor ? is("color") :
|
|
14542
|
+
return e.some((r) => r.scaledAesthetic === "color") ? e : [...e, t.inferredColor ? is("color") : Xt("color")];
|
|
14543
14543
|
}
|
|
14544
14544
|
var MM = class extends ri {
|
|
14545
14545
|
constructor(e) {
|
|
@@ -15403,11 +15403,11 @@ function dp(e) {
|
|
|
15403
15403
|
declarations: i
|
|
15404
15404
|
}), t);
|
|
15405
15405
|
}
|
|
15406
|
-
var
|
|
15407
|
-
arrow:
|
|
15408
|
-
differenceArrow:
|
|
15409
|
-
pinnedNumber:
|
|
15410
|
-
comment:
|
|
15406
|
+
var cr = (e) => Object.keys(e.children ?? {}), yj = cr(Pe.dataLabel), cpe = cr(Pe.panelBorder), upe = cr(Pe.tooltip), dpe = cr(Pe.source), hpe = cr(Pe.heading), fpe = cr(Pe.editOutline), mpe = cr(Pe.legendItem), ppe = cr(Pe.annotation), gpe = {
|
|
15407
|
+
arrow: cr(Pe.annotation.children.arrow),
|
|
15408
|
+
differenceArrow: cr(Pe.annotation.children.differenceArrow),
|
|
15409
|
+
pinnedNumber: cr(Pe.annotation.children.pinnedNumber),
|
|
15410
|
+
comment: cr(Pe.annotation.children.comment)
|
|
15411
15411
|
}, hp = (e, t) => {
|
|
15412
15412
|
const r = [], n = /* @__PURE__ */ new Set(), i = (o) => {
|
|
15413
15413
|
const a = o.select[t];
|
|
@@ -16132,7 +16132,7 @@ var Sj = class extends eo {
|
|
|
16132
16132
|
if (r === null || !e.data.hasVariable(O.yMin) || !e.data.hasVariable(O.yMax)) return;
|
|
16133
16133
|
const n = (s) => t === "y" ? s.xMax : s.yMax, i = (s) => t === "y" ? s.xMin : s.yMin, o = /* @__PURE__ */ new Map();
|
|
16134
16134
|
for (const s of e.data) {
|
|
16135
|
-
const l = s[r], c = Nt(s), u = ot(s), d =
|
|
16135
|
+
const l = s[r], c = Nt(s), u = ot(s), d = er(s), h = Ot(s), f = b1(s);
|
|
16136
16136
|
if (!H(l) || !H(c) || !H(u) || !H(d) || !H(h) || !H(f)) continue;
|
|
16137
16137
|
const m = f >= 0;
|
|
16138
16138
|
if (Math.abs(f) === 0) continue;
|
|
@@ -16543,7 +16543,7 @@ function hU(e) {
|
|
|
16543
16543
|
var fU = {
|
|
16544
16544
|
x: Object.assign((e) => is("x", e), {
|
|
16545
16545
|
continuous: (e) => ft("x", e),
|
|
16546
|
-
discrete: (e) =>
|
|
16546
|
+
discrete: (e) => Xt("x", e),
|
|
16547
16547
|
datetime: (e) => sc("x", e),
|
|
16548
16548
|
log: (e) => ft("x", {
|
|
16549
16549
|
...e,
|
|
@@ -16556,7 +16556,7 @@ var fU = {
|
|
|
16556
16556
|
}),
|
|
16557
16557
|
y: Object.assign((e) => is("y", e), {
|
|
16558
16558
|
continuous: (e) => ft("y", e),
|
|
16559
|
-
discrete: (e) =>
|
|
16559
|
+
discrete: (e) => Xt("y", e),
|
|
16560
16560
|
datetime: (e) => sc("y", e),
|
|
16561
16561
|
log: (e) => ft("y", {
|
|
16562
16562
|
...e,
|
|
@@ -16569,7 +16569,7 @@ var fU = {
|
|
|
16569
16569
|
}),
|
|
16570
16570
|
ySecondary: Object.assign((e) => is("ySecondary", e), {
|
|
16571
16571
|
continuous: (e) => ft("ySecondary", e),
|
|
16572
|
-
discrete: (e) =>
|
|
16572
|
+
discrete: (e) => Xt("ySecondary", e),
|
|
16573
16573
|
datetime: (e) => sc("ySecondary", e),
|
|
16574
16574
|
log: (e) => ft("ySecondary", {
|
|
16575
16575
|
...e,
|
|
@@ -16582,25 +16582,25 @@ var fU = {
|
|
|
16582
16582
|
}),
|
|
16583
16583
|
color: {
|
|
16584
16584
|
continuous: (e) => ft("color", e),
|
|
16585
|
-
discrete: (e) =>
|
|
16585
|
+
discrete: (e) => Xt("color", e)
|
|
16586
16586
|
},
|
|
16587
16587
|
size: {
|
|
16588
16588
|
continuous: (e) => ft("size", e),
|
|
16589
|
-
discrete: (e) =>
|
|
16589
|
+
discrete: (e) => Xt("size", e),
|
|
16590
16590
|
identity: (e) => Ya("size", e)
|
|
16591
16591
|
},
|
|
16592
16592
|
alpha: {
|
|
16593
16593
|
continuous: (e) => ft("alpha", e),
|
|
16594
|
-
discrete: (e) =>
|
|
16594
|
+
discrete: (e) => Xt("alpha", e),
|
|
16595
16595
|
identity: (e) => Ya("alpha", e)
|
|
16596
16596
|
},
|
|
16597
16597
|
strokeWidth: {
|
|
16598
16598
|
continuous: (e) => ft("strokeWidth", e),
|
|
16599
|
-
discrete: (e) =>
|
|
16599
|
+
discrete: (e) => Xt("strokeWidth", e),
|
|
16600
16600
|
identity: (e) => Ya("strokeWidth", e)
|
|
16601
16601
|
},
|
|
16602
16602
|
lineType: {
|
|
16603
|
-
discrete: (e) =>
|
|
16603
|
+
discrete: (e) => Xt("lineType", e),
|
|
16604
16604
|
identity: (e) => Ya("lineType", e)
|
|
16605
16605
|
}
|
|
16606
16606
|
};
|
|
@@ -18157,7 +18157,7 @@ var g8 = (e, t) => {
|
|
|
18157
18157
|
read: zs(e, t),
|
|
18158
18158
|
variable: r
|
|
18159
18159
|
} : {
|
|
18160
|
-
read:
|
|
18160
|
+
read: tr,
|
|
18161
18161
|
variable: we.group
|
|
18162
18162
|
};
|
|
18163
18163
|
}, lE = ({ layer: e, coordSystem: t, axes: r, numberFormat: n, panelRect: i, measureDataLabel: o, readers: a, formattingLocale: s, percentageValueStrategy: l }) => {
|
|
@@ -18226,7 +18226,7 @@ var g8 = (e, t) => {
|
|
|
18226
18226
|
return s === void 0 ? null : s.total;
|
|
18227
18227
|
};
|
|
18228
18228
|
}, x8 = (e, t) => {
|
|
18229
|
-
const r = t ?
|
|
18229
|
+
const r = t ? er : Nt, n = t ? Ot : ot, i = Ys(e);
|
|
18230
18230
|
return (o) => {
|
|
18231
18231
|
const a = r(o), s = n(o);
|
|
18232
18232
|
if (!Oe(a) || !Oe(s)) return null;
|
|
@@ -19737,7 +19737,7 @@ var Z = (e) => `${Number.parseFloat((e * 100).toFixed(4))}%`, Jn = (e, t) => {
|
|
|
19737
19737
|
if (!t(n)) return [n];
|
|
19738
19738
|
const i = r(n);
|
|
19739
19739
|
return i === null ? [] : [i];
|
|
19740
|
-
}) : e, Lz = (e) => e.shapes.some((t) => t.region.defer !== void 0) || e.images.some((t) => t.region.defer !== void 0) || e.arrows.some((t) => t.start.defer !== void 0 || t.end.defer !== void 0) || e.textAnnotations.some((t) => t.at.defer !== void 0) || e.stickers.some((t) => t.at.defer !== void 0),
|
|
19740
|
+
}) : e, Lz = (e) => e.shapes.some((t) => t.region.defer !== void 0) || e.images.some((t) => t.region.defer !== void 0) || e.arrows.some((t) => t.start.defer !== void 0 || t.end.defer !== void 0) || e.textAnnotations.some((t) => t.at.defer !== void 0) || e.stickers.some((t) => t.at.defer !== void 0), Ut = (e, t) => {
|
|
19741
19741
|
if (!(e === void 0 || e.length === 0 || t <= 0))
|
|
19742
19742
|
return e.map((r) => r * t).join(" ");
|
|
19743
19743
|
}, Dz = (e) => e === void 0 || e.length === 0 ? "solid" : (e[0] ?? 0) <= 1 ? "dotted" : "dashed", Oz = (e, t) => e === t ? !0 : e === void 0 || t === void 0 || e.length !== t.length ? !1 : e.every((r, n) => r === t[n]), Nz = 800, ub = 400, Bz = 0.75, Vz = 0.875, Fz = 4, Hz = (e) => Math.max(1, (e - ub) / (Nz - ub) + 1), Gz = (e, t) => {
|
|
@@ -19766,7 +19766,7 @@ var Z = (e) => `${Number.parseFloat((e * 100).toFixed(4))}%`, Jn = (e, t) => {
|
|
|
19766
19766
|
startArrowheadPath: u ? db("start", o, c) : "",
|
|
19767
19767
|
endArrowheadPath: d ? db("end", o, c) : "",
|
|
19768
19768
|
strokeWidth: a,
|
|
19769
|
-
dashArray:
|
|
19769
|
+
dashArray: Ut(t.dashArray, a) ?? null,
|
|
19770
19770
|
startX: o.start.x,
|
|
19771
19771
|
startY: o.start.y,
|
|
19772
19772
|
endX: o.end.x,
|
|
@@ -20412,9 +20412,9 @@ var LE = { draw(e, t) {
|
|
|
20412
20412
|
} }, eh = Rr(3), q7 = { draw(e, t) {
|
|
20413
20413
|
const r = -Rr(t / (eh * 3));
|
|
20414
20414
|
e.moveTo(0, r * 2), e.lineTo(-eh * r, -r), e.lineTo(eh * r, -r), e.closePath();
|
|
20415
|
-
} },
|
|
20415
|
+
} }, ir = -0.5, or = Rr(3) / 2, wf = 1 / Rr(12), Q7 = (wf / 2 + 1) * 3, J7 = { draw(e, t) {
|
|
20416
20416
|
const r = Rr(t / Q7), n = r / 2, i = r * wf, o = n, a = r * wf + r, s = -o, l = a;
|
|
20417
|
-
e.moveTo(n, i), e.lineTo(o, a), e.lineTo(s, l), e.lineTo(
|
|
20417
|
+
e.moveTo(n, i), e.lineTo(o, a), e.lineTo(s, l), e.lineTo(ir * n - or * i, or * n + ir * i), e.lineTo(ir * o - or * a, or * o + ir * a), e.lineTo(ir * s - or * l, or * s + ir * l), e.lineTo(ir * n + or * i, ir * i - or * n), e.lineTo(ir * o + or * a, ir * a - or * o), e.lineTo(ir * s + or * l, ir * l - or * s), e.closePath();
|
|
20418
20418
|
} };
|
|
20419
20419
|
function NE(e, t) {
|
|
20420
20420
|
let r = null, n = Lp(i);
|
|
@@ -20550,7 +20550,7 @@ var eY = (function e(t) {
|
|
|
20550
20550
|
})(0.5), Bp = (e) => e === "smooth" ? eY : Dp, Vp = (e, t) => {
|
|
20551
20551
|
const r = Bp(t.curve), n = RE().curve(r), i = Op().curve(r);
|
|
20552
20552
|
if (e.mainAxis === "y") {
|
|
20553
|
-
const o = (l) => Tr(pe(l) ?? 0), a = (l) =>
|
|
20553
|
+
const o = (l) => Tr(pe(l) ?? 0), a = (l) => er(l) ?? 0, s = (l) => Ot(l) ?? xe(l) ?? 0;
|
|
20554
20554
|
n.y(o).x0(a).x1(s), i.y(o).x(s);
|
|
20555
20555
|
} else {
|
|
20556
20556
|
const o = (l) => xe(l) ?? 0, a = (l) => Tr(Nt(l) ?? 0), s = (l) => Tr(ot(l) ?? pe(l) ?? 0);
|
|
@@ -20586,7 +20586,7 @@ var eY = (function e(t) {
|
|
|
20586
20586
|
separatorWidth: e,
|
|
20587
20587
|
insetOffset: e / 2
|
|
20588
20588
|
}), al = (e, t) => FE(e, {
|
|
20589
|
-
xMin:
|
|
20589
|
+
xMin: er(t),
|
|
20590
20590
|
xMax: Ot(t),
|
|
20591
20591
|
yMin: Nt(t),
|
|
20592
20592
|
yMax: ot(t),
|
|
@@ -20699,7 +20699,7 @@ var eY = (function e(t) {
|
|
|
20699
20699
|
centerY: 0,
|
|
20700
20700
|
radius: 1,
|
|
20701
20701
|
digits: 8
|
|
20702
|
-
}, uY = 200,
|
|
20702
|
+
}, uY = 200, sr = 1e-12, dY = Math.PI / 2, hY = (e, t) => {
|
|
20703
20703
|
if (e === "full") return Math.max(0, t) / 2;
|
|
20704
20704
|
const r = e ?? "sm";
|
|
20705
20705
|
return (typeof r == "number" ? Math.max(0, r) : VE[r]) / uY;
|
|
@@ -20715,7 +20715,7 @@ var eY = (function e(t) {
|
|
|
20715
20715
|
};
|
|
20716
20716
|
}, $i = (e, t = cY) => {
|
|
20717
20717
|
const r = bY(t), n = mY(e);
|
|
20718
|
-
if (!(n.outer >
|
|
20718
|
+
if (!(n.outer > sr)) return `M${r.writePoint(0, 0)}Z`;
|
|
20719
20719
|
const { slice: i } = e, o = i === void 0 ? null : fY(i, i.axis === "radius" ? [n.inner, n.outer] : [n.start, n.end]);
|
|
20720
20720
|
if (o !== void 0) {
|
|
20721
20721
|
if (Bi(n.start, n.end)) {
|
|
@@ -20741,18 +20741,18 @@ var eY = (function e(t) {
|
|
|
20741
20741
|
innerCorner: null,
|
|
20742
20742
|
outerCorner: null
|
|
20743
20743
|
};
|
|
20744
|
-
if (!(u >
|
|
20744
|
+
if (!(u > sr) || Bi(o, a)) return d;
|
|
20745
20745
|
let h = u, f = u;
|
|
20746
20746
|
if (c < Math.PI) {
|
|
20747
20747
|
const m = (l - s) ** 2 * Math.sin(c);
|
|
20748
|
-
if (m * m <
|
|
20748
|
+
if (m * m < sr) return d;
|
|
20749
20749
|
const p = Math.sin(c / 2);
|
|
20750
20750
|
h = Math.min(u, s * p / (1 - p)), f = Math.min(u, l * p / (1 + p));
|
|
20751
20751
|
}
|
|
20752
20752
|
return {
|
|
20753
20753
|
...d,
|
|
20754
|
-
innerCorner: s >
|
|
20755
|
-
outerCorner: f >
|
|
20754
|
+
innerCorner: s > sr && h > sr ? yb(h, s + h, c) : null,
|
|
20755
|
+
outerCorner: f > sr ? yb(f, l - f, c) : null
|
|
20756
20756
|
};
|
|
20757
20757
|
}, yb = (e, t, r) => ({
|
|
20758
20758
|
radius: e,
|
|
@@ -20766,7 +20766,7 @@ var eY = (function e(t) {
|
|
|
20766
20766
|
return `M${n.writePoint(t, Fc(i, t))}` + Hc(i, t, r, "angle", n) + `L${n.writePoint(r, Fc(o, r))}` + Hc(o, r, t, "angle", n) + "Z";
|
|
20767
20767
|
}, gY = (e, t, r, n) => {
|
|
20768
20768
|
const i = `M${n.writePoint(e, r)}${Rs(r, e, e - zr, n)}Z`;
|
|
20769
|
-
return t >
|
|
20769
|
+
return t > sr ? `${i}M${n.writePoint(e, t)}${Rs(t, e, e + zr, n)}Z` : i;
|
|
20770
20770
|
}, xb = (e, t) => {
|
|
20771
20771
|
const r = t === "start" ? e.start : e.end, n = t === "start" ? 1 : -1, i = (l) => {
|
|
20772
20772
|
const c = r + n * l.offset;
|
|
@@ -20818,7 +20818,7 @@ var eY = (function e(t) {
|
|
|
20818
20818
|
}
|
|
20819
20819
|
];
|
|
20820
20820
|
}, Ab = (e) => e.centerRadius * Math.cos(e.offset), vY = ({ radius: e, centerRadius: t }, r) => {
|
|
20821
|
-
if (!(r >
|
|
20821
|
+
if (!(r > sr)) return 0;
|
|
20822
20822
|
const n = (t ** 2 + r ** 2 - e ** 2) / (2 * t * r);
|
|
20823
20823
|
return Math.acos(Math.max(-1, Math.min(1, n)));
|
|
20824
20824
|
}, yY = ({ radius: e, centerRadius: t }, r, n) => {
|
|
@@ -20832,7 +20832,7 @@ var eY = (function e(t) {
|
|
|
20832
20832
|
let l = "";
|
|
20833
20833
|
for (const c of o ? e : [...e].reverse()) {
|
|
20834
20834
|
const u = Math.max(c.from, a), d = Math.min(c.to, s);
|
|
20835
|
-
if (d - u <=
|
|
20835
|
+
if (d - u <= sr) continue;
|
|
20836
20836
|
const [h, f] = o ? [u, d] : [d, u], m = n === "radius" ? i.writePoint(c.at(f), f) : i.writePoint(f, c.at(f));
|
|
20837
20837
|
if (c.corner !== null) {
|
|
20838
20838
|
const p = i.scaleLength(c.corner.radius);
|
|
@@ -20841,8 +20841,8 @@ var eY = (function e(t) {
|
|
|
20841
20841
|
}
|
|
20842
20842
|
return l;
|
|
20843
20843
|
}, Rs = (e, t, r, n) => {
|
|
20844
|
-
if (!(e >
|
|
20845
|
-
const i = Math.max(1, Math.ceil(Math.abs(r - t) / dY -
|
|
20844
|
+
if (!(e > sr) || Math.abs(r - t) <= sr) return "";
|
|
20845
|
+
const i = Math.max(1, Math.ceil(Math.abs(r - t) / dY - sr)), o = n.scaleLength(e), a = r > t ? 1 : 0;
|
|
20846
20846
|
let s = "";
|
|
20847
20847
|
for (let l = 1; l <= i; l++) s += `A${o},${o} 0 0 ${a} ${n.writePoint(t + (r - t) * l / i, e)}`;
|
|
20848
20848
|
return s;
|
|
@@ -20865,10 +20865,10 @@ var eY = (function e(t) {
|
|
|
20865
20865
|
}, xY = (e) => e.state === void 0 && e.part === void 0, wY = (e, t, r) => e === void 0 ? !0 : t === null || r === void 0 ? !1 : ts(e).every((n) => n === t) && zE(e, r), zE = (e, t) => "eq" in e ? Sr(e.eq, t) : "and" in e ? e.and.every((r) => zE(r, t)) : !1, AY = (e, t, r) => {
|
|
20866
20866
|
const n = e[t], i = Xs(n) ? Hn(n, r) : n;
|
|
20867
20867
|
return typeof i == "string" && !TE(i) ? i : void 0;
|
|
20868
|
-
},
|
|
20868
|
+
}, rr = (e, t, r) => {
|
|
20869
20869
|
const n = zs(e, t);
|
|
20870
20870
|
return (i) => {
|
|
20871
|
-
const o =
|
|
20871
|
+
const o = tr(i) ?? "default", a = n(i);
|
|
20872
20872
|
return `${r}-${o}${a !== null && a !== "" ? `-${a}` : ""}`;
|
|
20873
20873
|
};
|
|
20874
20874
|
}, Tpe = (e, t, r) => {
|
|
@@ -20963,7 +20963,7 @@ function Yu(e, t, r) {
|
|
|
20963
20963
|
function Er(e, t, r) {
|
|
20964
20964
|
return e < t ? t - e : e > r ? e - r : 0;
|
|
20965
20965
|
}
|
|
20966
|
-
function
|
|
20966
|
+
function hr(e, t, { shortCircuitOnZero: r = !1 } = {}) {
|
|
20967
20967
|
let n = e[0], i = t(n);
|
|
20968
20968
|
if (r && i === 0) return n;
|
|
20969
20969
|
for (let o = 1; o < e.length; o += 1) {
|
|
@@ -22354,10 +22354,10 @@ function _9(e, t, r, n) {
|
|
|
22354
22354
|
}
|
|
22355
22355
|
function C9(e, t, r) {
|
|
22356
22356
|
const n = Yn(r, t);
|
|
22357
|
-
return
|
|
22357
|
+
return hr(e, (o) => R9(o, r, n), { shortCircuitOnZero: !0 });
|
|
22358
22358
|
}
|
|
22359
22359
|
function I9(e, t, r) {
|
|
22360
|
-
return
|
|
22360
|
+
return hr(e, (i) => uk(i, t, r));
|
|
22361
22361
|
}
|
|
22362
22362
|
function uk(e, t, r) {
|
|
22363
22363
|
return Yu(Er(t.x, e.xMin, e.xMax), Er(t.y, e.yMin, e.yMax), r);
|
|
@@ -22379,7 +22379,7 @@ function D9(e, t, r) {
|
|
|
22379
22379
|
crossAtCursor: N9(e, p, n)
|
|
22380
22380
|
}));
|
|
22381
22381
|
if (!Zr(s)) return null;
|
|
22382
|
-
const l = fk(s.filter((p) => V9(e, p.entry, n, i)), (p) => p.entry), { entry: c } = l ??
|
|
22382
|
+
const l = fk(s.filter((p) => V9(e, p.entry, n, i)), (p) => p.entry), { entry: c } = l ?? hr(s, (p) => Math.abs(p.crossAtCursor - i)), u = Yu(c.x - t.x, c.y - t.y, r), d = (p) => ({
|
|
22383
22383
|
x: p.x * r,
|
|
22384
22384
|
y: p.y
|
|
22385
22385
|
}), h = Ku(e, c).map(d), f = hk(d(t), d(c), h, u), m = jp(e.mainAxis, Vt(e.mainAxis, c) - n, dk(a.span, Yn(e.mainAxis, c), i), r);
|
|
@@ -22402,7 +22402,7 @@ function D9(e, t, r) {
|
|
|
22402
22402
|
};
|
|
22403
22403
|
}
|
|
22404
22404
|
function O9(e, t, r) {
|
|
22405
|
-
return
|
|
22405
|
+
return hr(e, (i) => Math.abs(Yn(r, i) - t));
|
|
22406
22406
|
}
|
|
22407
22407
|
function dk(e, t, r) {
|
|
22408
22408
|
return e !== void 0 ? Er(r, e.min, e.max) : Math.abs(t - r);
|
|
@@ -22450,7 +22450,7 @@ function H9(e, t, r, n) {
|
|
|
22450
22450
|
entries: e,
|
|
22451
22451
|
span: t
|
|
22452
22452
|
};
|
|
22453
|
-
const i = (s) => Vt(r, s), o = i(
|
|
22453
|
+
const i = (s) => Vt(r, s), o = i(hr(e, (s) => Math.abs(i(s) - n))), a = e.filter((s) => Math.abs(i(s) - o) <= zY);
|
|
22454
22454
|
return a.length === e.length ? {
|
|
22455
22455
|
entries: e,
|
|
22456
22456
|
span: t
|
|
@@ -22520,13 +22520,13 @@ function j9(e, t, { angle: r, radius: n }) {
|
|
|
22520
22520
|
};
|
|
22521
22521
|
}
|
|
22522
22522
|
function U9(e, t) {
|
|
22523
|
-
return Zr(e) ?
|
|
22523
|
+
return Zr(e) ? hr(e, (r) => jn(t, r.mainMid)) : null;
|
|
22524
22524
|
}
|
|
22525
22525
|
function z9(e, t) {
|
|
22526
|
-
return
|
|
22526
|
+
return hr(e, (r) => Er(t, r.yMin, r.yMax), { shortCircuitOnZero: !0 });
|
|
22527
22527
|
}
|
|
22528
22528
|
function Y9(e, t) {
|
|
22529
|
-
return
|
|
22529
|
+
return hr(e, (r) => $c(t, r.xMin, r.xMax), { shortCircuitOnZero: !0 });
|
|
22530
22530
|
}
|
|
22531
22531
|
var Lb = 1e-9;
|
|
22532
22532
|
function K9(e, t, r) {
|
|
@@ -22557,7 +22557,7 @@ function Db(e) {
|
|
|
22557
22557
|
return Yr(e.x, e.y);
|
|
22558
22558
|
}
|
|
22559
22559
|
function X9(e, t) {
|
|
22560
|
-
return Zr(e) ?
|
|
22560
|
+
return Zr(e) ? hr(e, (r) => jn(r.main, t)) : null;
|
|
22561
22561
|
}
|
|
22562
22562
|
function q9(e, t, r, n) {
|
|
22563
22563
|
const i = Q9(e, t, r);
|
|
@@ -22608,7 +22608,7 @@ function J9(e, t, r, n = !1) {
|
|
|
22608
22608
|
if (!n) return null;
|
|
22609
22609
|
const a = e.cells.filter((c) => Ac(i, c.xMin, c.xMax));
|
|
22610
22610
|
if (!Zr(a)) return null;
|
|
22611
|
-
const s = (c) => Er(o, c.yMin, c.yMax), l =
|
|
22611
|
+
const s = (c) => Er(o, c.yMin, c.yMax), l = hr(a, s);
|
|
22612
22612
|
return Bb(e, l, s(l));
|
|
22613
22613
|
}
|
|
22614
22614
|
function Bb(e, t, r) {
|
|
@@ -22629,10 +22629,10 @@ function Bb(e, t, r) {
|
|
|
22629
22629
|
}
|
|
22630
22630
|
function Z9(e, t, r, n) {
|
|
22631
22631
|
if (!Zr(e.points)) return null;
|
|
22632
|
-
const i = Am(t, r), o = Vb(e,
|
|
22632
|
+
const i = Am(t, r), o = Vb(e, hr(e.points, (s) => pk(s, i)), i);
|
|
22633
22633
|
if (n === void 0 || sl(o.distance, n) || Ls(o, n)) return o;
|
|
22634
22634
|
const a = e.points.map((s) => Vb(e, s, i)).filter((s) => Ls(s, n));
|
|
22635
|
-
return Zr(a) ?
|
|
22635
|
+
return Zr(a) ? hr(a, (s) => s.crossDistance) : o;
|
|
22636
22636
|
}
|
|
22637
22637
|
function Vb(e, t, r) {
|
|
22638
22638
|
const { angle: n, radius: i } = wm(r.x, r.y);
|
|
@@ -22824,17 +22824,17 @@ function lK(e, t, r) {
|
|
|
22824
22824
|
const o = e.byKey.get(i.key);
|
|
22825
22825
|
return o ? { hit: ck(e.layerId, o) } : null;
|
|
22826
22826
|
}
|
|
22827
|
-
var
|
|
22827
|
+
var ar = {
|
|
22828
22828
|
primary: null,
|
|
22829
22829
|
group: [],
|
|
22830
22830
|
related: /* @__PURE__ */ new Map()
|
|
22831
22831
|
}, cK = class {
|
|
22832
22832
|
constructor({ layers: e, coordSystem: t }) {
|
|
22833
|
-
this.layerIndexes = [], this.layerRefs = [], this.viewport = null, this.aspectRatio = uK, this.isAspectStale = !1, this.warmStarts = /* @__PURE__ */ new Map(), this.cachedState =
|
|
22833
|
+
this.layerIndexes = [], this.layerRefs = [], this.viewport = null, this.aspectRatio = uK, this.isAspectStale = !1, this.warmStarts = /* @__PURE__ */ new Map(), this.cachedState = ar, this.cachedKey = null, this.hoverLayers = {
|
|
22834
22834
|
interactive: [],
|
|
22835
22835
|
standalone: [],
|
|
22836
22836
|
attached: []
|
|
22837
|
-
}, this.hitTesters = /* @__PURE__ */ new Map(), this.cachedByKeyId = null, this.cachedByKeyState =
|
|
22837
|
+
}, this.hitTesters = /* @__PURE__ */ new Map(), this.cachedByKeyId = null, this.cachedByKeyState = ar, this.layerIndexes = e.map((r) => Rb(r, t, this.aspectRatio)), this.layerRefs = e.map((r) => Hb(r, t)), this.hoverLayers = Gb(e, this.layerIndexes);
|
|
22838
22838
|
}
|
|
22839
22839
|
update({ layers: e, coordSystem: t }) {
|
|
22840
22840
|
const r = /* @__PURE__ */ new Map();
|
|
@@ -22864,7 +22864,7 @@ var or = {
|
|
|
22864
22864
|
t !== this.aspectRatio && (this.aspectRatio = t, this.isAspectStale = !0);
|
|
22865
22865
|
}
|
|
22866
22866
|
query(e, { tolerance: t, viewport: r, includeAttached: n = !1 } = {}) {
|
|
22867
|
-
if (this.layerIndexes.length === 0) return
|
|
22867
|
+
if (this.layerIndexes.length === 0) return ar;
|
|
22868
22868
|
this.reindexForAspect();
|
|
22869
22869
|
const i = r ?? this.viewport, o = t !== void 0 && i !== null ? kY(t, i) : void 0, a = (f) => tK({
|
|
22870
22870
|
layers: f,
|
|
@@ -22875,7 +22875,7 @@ var or = {
|
|
|
22875
22875
|
tolerance: o
|
|
22876
22876
|
}), s = a(this.hoverLayers.standalone) ?? (n ? a(this.hoverLayers.attached) : null);
|
|
22877
22877
|
if (!s)
|
|
22878
|
-
return this.invalidateCache(),
|
|
22878
|
+
return this.invalidateCache(), ar;
|
|
22879
22879
|
const l = s.match.hit;
|
|
22880
22880
|
this.warmStarts.set(l.layerId, l.pointIndex);
|
|
22881
22881
|
const c = o === void 0 ? void 0 : rK(s, o), u = dK(l, c);
|
|
@@ -22900,9 +22900,9 @@ var or = {
|
|
|
22900
22900
|
}
|
|
22901
22901
|
resolveHoverByKey(e, t) {
|
|
22902
22902
|
const r = this.hoverLayers.standalone.find((o) => o.layerId === e);
|
|
22903
|
-
if (!r || r.kind !== "render-hit-test") return
|
|
22903
|
+
if (!r || r.kind !== "render-hit-test") return ar;
|
|
22904
22904
|
const n = r.byKey.get(t);
|
|
22905
|
-
if (!n) return
|
|
22905
|
+
if (!n) return ar;
|
|
22906
22906
|
const i = `${e}:${t}`;
|
|
22907
22907
|
return this.cachedByKeyId === i ? this.cachedByKeyState : (this.cachedByKeyId = i, this.cachedByKeyState = {
|
|
22908
22908
|
primary: ck(e, n),
|
|
@@ -22911,7 +22911,7 @@ var or = {
|
|
|
22911
22911
|
}, this.cachedByKeyState);
|
|
22912
22912
|
}
|
|
22913
22913
|
invalidateCache() {
|
|
22914
|
-
this.cachedKey = null, this.cachedState =
|
|
22914
|
+
this.cachedKey = null, this.cachedState = ar, this.cachedByKeyId = null, this.cachedByKeyState = ar;
|
|
22915
22915
|
}
|
|
22916
22916
|
reindexForAspect() {
|
|
22917
22917
|
if (this.isAspectStale) {
|
|
@@ -22988,7 +22988,7 @@ function pK(e, t, r) {
|
|
|
22988
22988
|
function gK(e, t) {
|
|
22989
22989
|
if (e.bandAxis === null) return null;
|
|
22990
22990
|
if (e.bandAxis === "x") {
|
|
22991
|
-
const i =
|
|
22991
|
+
const i = er(t.observation), o = Ot(t.observation);
|
|
22992
22992
|
return i === null || o === null ? null : {
|
|
22993
22993
|
startAngle: i,
|
|
22994
22994
|
endAngle: o,
|
|
@@ -23005,7 +23005,7 @@ function gK(e, t) {
|
|
|
23005
23005
|
};
|
|
23006
23006
|
}
|
|
23007
23007
|
function vK(e) {
|
|
23008
|
-
const t =
|
|
23008
|
+
const t = er(e.observation), r = Ot(e.observation);
|
|
23009
23009
|
return t === null || r === null ? null : r - t;
|
|
23010
23010
|
}
|
|
23011
23011
|
function yK(e) {
|
|
@@ -23052,7 +23052,7 @@ var Xu = 0.5, wK = 0.3, AK = 0.4, SK = 10, TK = ({ layer: e, coordSystem: t, sca
|
|
|
23052
23052
|
durationSeconds: Xu * r.durationScale,
|
|
23053
23053
|
axis: t.mainAxis
|
|
23054
23054
|
}), IK = (e, t, r) => {
|
|
23055
|
-
const n =
|
|
23055
|
+
const n = rr(e.data, e.mapping, e.id), i = /* @__PURE__ */ new Map();
|
|
23056
23056
|
for (const o of e.data) {
|
|
23057
23057
|
const a = al(t, o);
|
|
23058
23058
|
if (!a) continue;
|
|
@@ -23064,7 +23064,7 @@ var Xu = 0.5, wK = 0.3, AK = 0.4, SK = 10, TK = ({ layer: e, coordSystem: t, sca
|
|
|
23064
23064
|
}
|
|
23065
23065
|
return zp([...i.values()], r);
|
|
23066
23066
|
}, RK = (e, t) => {
|
|
23067
|
-
const r =
|
|
23067
|
+
const r = rr(e.data, e.mapping, e.id), n = [];
|
|
23068
23068
|
for (const i of e.data) {
|
|
23069
23069
|
const o = LK(i, t.staggerOrder);
|
|
23070
23070
|
o !== null && n.push({
|
|
@@ -23078,7 +23078,7 @@ var Xu = 0.5, wK = 0.3, AK = 0.4, SK = 10, TK = ({ layer: e, coordSystem: t, sca
|
|
|
23078
23078
|
const r = tp(e) ?? xe(e);
|
|
23079
23079
|
return r === null ? null : t === "value-descending" ? -r : r;
|
|
23080
23080
|
}, DK = (e, t, r) => {
|
|
23081
|
-
const n =
|
|
23081
|
+
const n = rr(e.data, e.mapping, e.id), i = /* @__PURE__ */ new Map();
|
|
23082
23082
|
for (const o of e.data) {
|
|
23083
23083
|
const { startAngle: a, endAngle: s } = Zm(o), { innerRadius: l, outerRadius: c } = Ru(o);
|
|
23084
23084
|
if (a === null || s === null || l === null || c === null) continue;
|
|
@@ -23736,7 +23736,7 @@ var lX = (e, t) => ({
|
|
|
23736
23736
|
}), uX = (e) => ({
|
|
23737
23737
|
...Ym,
|
|
23738
23738
|
...e.graph().get("padding")
|
|
23739
|
-
}),
|
|
23739
|
+
}), Yt = (e) => {
|
|
23740
23740
|
let t = {
|
|
23741
23741
|
top: 0,
|
|
23742
23742
|
right: 0,
|
|
@@ -23749,24 +23749,24 @@ var lX = (e, t) => ({
|
|
|
23749
23749
|
};
|
|
23750
23750
|
return t;
|
|
23751
23751
|
}, dX = (e) => ({
|
|
23752
|
-
header:
|
|
23753
|
-
footer:
|
|
23754
|
-
headline:
|
|
23752
|
+
header: Yt(e.header()),
|
|
23753
|
+
footer: Yt(e.footer()),
|
|
23754
|
+
headline: Yt(e.headline()),
|
|
23755
23755
|
legend: {
|
|
23756
|
-
top:
|
|
23757
|
-
right:
|
|
23758
|
-
bottom:
|
|
23759
|
-
left:
|
|
23756
|
+
top: Yt(e.legend.top()),
|
|
23757
|
+
right: Yt(e.legend.right()),
|
|
23758
|
+
bottom: Yt(e.legend.bottom()),
|
|
23759
|
+
left: Yt(e.legend.left())
|
|
23760
23760
|
},
|
|
23761
23761
|
axisLabel: {
|
|
23762
|
-
top:
|
|
23763
|
-
bottom:
|
|
23762
|
+
top: Yt(e.axisLabel.top("x")),
|
|
23763
|
+
bottom: Yt(e.axisLabel.bottom("x"))
|
|
23764
23764
|
},
|
|
23765
23765
|
tickLabel: {
|
|
23766
|
-
top:
|
|
23767
|
-
right:
|
|
23768
|
-
bottom:
|
|
23769
|
-
left:
|
|
23766
|
+
top: Yt(e.tickLabel.top("x")),
|
|
23767
|
+
right: Yt(e.tickLabel.right("y")),
|
|
23768
|
+
bottom: Yt(e.tickLabel.bottom("x")),
|
|
23769
|
+
left: Yt(e.tickLabel.left("y"))
|
|
23770
23770
|
}
|
|
23771
23771
|
}), hX = {
|
|
23772
23772
|
color: PT,
|
|
@@ -24695,7 +24695,7 @@ var Qp = He(null), vt = () => {
|
|
|
24695
24695
|
x: r,
|
|
24696
24696
|
y: r
|
|
24697
24697
|
};
|
|
24698
|
-
},
|
|
24698
|
+
}, fr = (e, t, r = nq) => {
|
|
24699
24699
|
const n = Yr(e, t);
|
|
24700
24700
|
return {
|
|
24701
24701
|
x: r.centerX + n.x * r.radius,
|
|
@@ -24705,7 +24705,7 @@ var Qp = He(null), vt = () => {
|
|
|
24705
24705
|
x: e,
|
|
24706
24706
|
y: Tr(t)
|
|
24707
24707
|
}), kr = (e, t) => {
|
|
24708
|
-
const r =
|
|
24708
|
+
const r = fr(e, t);
|
|
24709
24709
|
return {
|
|
24710
24710
|
x: (r.x + 1) / 2,
|
|
24711
24711
|
y: (r.y + 1) / 2
|
|
@@ -24735,7 +24735,7 @@ function $k(e) {
|
|
|
24735
24735
|
let t;
|
|
24736
24736
|
return () => (t === void 0 && (t = e()), t);
|
|
24737
24737
|
}
|
|
24738
|
-
var
|
|
24738
|
+
var dr = /* @__NO_SIDE_EFFECTS__ */ (e) => e, iq = (e, t) => (r) => t(e(r)), cl = (...e) => e.reduce(iq), ia = /* @__NO_SIDE_EFFECTS__ */ (e, t, r) => {
|
|
24739
24739
|
const n = t - e;
|
|
24740
24740
|
return n === 0 ? 1 : (r - e) / n;
|
|
24741
24741
|
}, eg = class {
|
|
@@ -24760,7 +24760,7 @@ var ur = /* @__NO_SIDE_EFFECTS__ */ (e) => e, iq = (e, t) => (r) => t(e(r)), cl
|
|
|
24760
24760
|
clear() {
|
|
24761
24761
|
this.subscriptions.length = 0;
|
|
24762
24762
|
}
|
|
24763
|
-
},
|
|
24763
|
+
}, Qt = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, ur = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3;
|
|
24764
24764
|
function Wk(e, t) {
|
|
24765
24765
|
return t ? e * (1e3 / t) : 0;
|
|
24766
24766
|
}
|
|
@@ -24776,7 +24776,7 @@ function lq(e, t, r, n, i) {
|
|
|
24776
24776
|
return a;
|
|
24777
24777
|
}
|
|
24778
24778
|
function ul(e, t, r, n) {
|
|
24779
|
-
if (e === t && r === n) return
|
|
24779
|
+
if (e === t && r === n) return dr;
|
|
24780
24780
|
const i = (o) => lq(o, 0, 1, e, r);
|
|
24781
24781
|
return (o) => o === 0 || o === 1 ? o : jk(i(o), t, n);
|
|
24782
24782
|
}
|
|
@@ -24785,7 +24785,7 @@ function eP(e, t) {
|
|
|
24785
24785
|
return Zk(e) ? e[oq(0, e.length, t)] : e;
|
|
24786
24786
|
}
|
|
24787
24787
|
var tP = (e) => Array.isArray(e) && typeof e[0] == "number", nx = {
|
|
24788
|
-
linear:
|
|
24788
|
+
linear: dr,
|
|
24789
24789
|
easeIn: cq,
|
|
24790
24790
|
easeInOut: Jk,
|
|
24791
24791
|
easeOut: uq,
|
|
@@ -24871,7 +24871,7 @@ function rP(e, t) {
|
|
|
24871
24871
|
steps: a
|
|
24872
24872
|
};
|
|
24873
24873
|
}
|
|
24874
|
-
var { schedule: Ne, cancel: kn, state: yt, steps: nh } = /* @__PURE__ */ rP(typeof requestAnimationFrame < "u" ? requestAnimationFrame :
|
|
24874
|
+
var { schedule: Ne, cancel: kn, state: yt, steps: nh } = /* @__PURE__ */ rP(typeof requestAnimationFrame < "u" ? requestAnimationFrame : dr, !0), uc;
|
|
24875
24875
|
function mq() {
|
|
24876
24876
|
uc = void 0;
|
|
24877
24877
|
}
|
|
@@ -25113,7 +25113,7 @@ function mP(e, t = 100, r) {
|
|
|
25113
25113
|
return {
|
|
25114
25114
|
type: "keyframes",
|
|
25115
25115
|
ease: (o) => n.next(i * o).value / t,
|
|
25116
|
-
duration:
|
|
25116
|
+
duration: ur(i)
|
|
25117
25117
|
};
|
|
25118
25118
|
}
|
|
25119
25119
|
var Fq = 5;
|
|
@@ -25144,9 +25144,9 @@ var Ue = {
|
|
|
25144
25144
|
}, ux = 1e-3;
|
|
25145
25145
|
function Hq({ duration: e = Ue.duration, bounce: t = Ue.bounce, velocity: r = Ue.velocity, mass: n = Ue.mass }) {
|
|
25146
25146
|
let i, o;
|
|
25147
|
-
Qu(e <=
|
|
25147
|
+
Qu(e <= Qt(Ue.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
|
|
25148
25148
|
let a = 1 - t;
|
|
25149
|
-
a = rn(Ue.minDamping, Ue.maxDamping, a), e = rn(Ue.minDuration, Ue.maxDuration,
|
|
25149
|
+
a = rn(Ue.minDamping, Ue.maxDamping, a), e = rn(Ue.minDuration, Ue.maxDuration, ur(e)), a < 1 ? (i = (c) => {
|
|
25150
25150
|
const u = c * a, d = u * e, h = u - r, f = Cf(c, a), m = Math.exp(-d);
|
|
25151
25151
|
return ux - h / f * m;
|
|
25152
25152
|
}, o = (c) => {
|
|
@@ -25154,7 +25154,7 @@ function Hq({ duration: e = Ue.duration, bounce: t = Ue.bounce, velocity: r = Ue
|
|
|
25154
25154
|
return (-i(c) + ux > 0 ? -1 : 1) * ((d - h) * f) / m;
|
|
25155
25155
|
}) : (i = (c) => -1e-3 + Math.exp(-c * e) * ((c - r) * e + 1), o = (c) => Math.exp(-c * e) * ((r - c) * (e * e)));
|
|
25156
25156
|
const s = 5 / e, l = $q(i, o, s);
|
|
25157
|
-
if (e =
|
|
25157
|
+
if (e = Qt(e), isNaN(l)) return {
|
|
25158
25158
|
stiffness: Ue.stiffness,
|
|
25159
25159
|
damping: Ue.damping,
|
|
25160
25160
|
duration: e
|
|
@@ -25224,8 +25224,8 @@ function Bs(e = Ue.visualDuration, t = Ue.bounce) {
|
|
|
25224
25224
|
value: o
|
|
25225
25225
|
}, { stiffness: l, damping: c, mass: u, duration: d, velocity: h, isResolvedFromDuration: f } = Uq({
|
|
25226
25226
|
...r,
|
|
25227
|
-
velocity: -
|
|
25228
|
-
}), m = h || 0, p = c / (2 * Math.sqrt(l * u)), v = a - o, y =
|
|
25227
|
+
velocity: -ur(r.velocity || 0)
|
|
25228
|
+
}), m = h || 0, p = c / (2 * Math.sqrt(l * u)), v = a - o, y = ur(Math.sqrt(l / u)), x = Math.abs(v) < 5;
|
|
25229
25229
|
n || (n = x ? Ue.restSpeed.granular : Ue.restSpeed.default), i || (i = x ? Ue.restDelta.granular : Ue.restDelta.default);
|
|
25230
25230
|
let w;
|
|
25231
25231
|
if (p < 1) {
|
|
@@ -25250,7 +25250,7 @@ function Bs(e = Ue.visualDuration, t = Ue.bounce) {
|
|
|
25250
25250
|
s.done = P >= d;
|
|
25251
25251
|
else {
|
|
25252
25252
|
let D = P === 0 ? m : 0;
|
|
25253
|
-
p < 1 && (D = P === 0 ?
|
|
25253
|
+
p < 1 && (D = P === 0 ? Qt(m) : pP(w, P, A));
|
|
25254
25254
|
const b = Math.abs(D) <= n, T = Math.abs(a - A) <= i;
|
|
25255
25255
|
s.done = b && T;
|
|
25256
25256
|
}
|
|
@@ -25267,7 +25267,7 @@ function Bs(e = Ue.visualDuration, t = Ue.bounce) {
|
|
|
25267
25267
|
}
|
|
25268
25268
|
Bs.applyToOptions = (e) => {
|
|
25269
25269
|
const t = mP(e, 100, Bs);
|
|
25270
|
-
return e.ease = t.ease, e.duration =
|
|
25270
|
+
return e.ease = t.ease, e.duration = Qt(t.duration), e.type = "keyframes", e;
|
|
25271
25271
|
};
|
|
25272
25272
|
function If({ keyframes: e, velocity: t = 0, power: r = 0.8, timeConstant: n = 325, bounceDamping: i = 10, bounceStiffness: o = 500, modifyTarget: a, min: s, max: l, restDelta: c = 0.5, restSpeed: u }) {
|
|
25273
25273
|
const d = e[0], h = {
|
|
@@ -25304,7 +25304,7 @@ function zq(e, t, r) {
|
|
|
25304
25304
|
const n = [], i = r || En.mix || dP, o = e.length - 1;
|
|
25305
25305
|
for (let a = 0; a < o; a++) {
|
|
25306
25306
|
let s = i(e[a], e[a + 1]);
|
|
25307
|
-
t && (s = cl(Array.isArray(t) ? t[a] ||
|
|
25307
|
+
t && (s = cl(Array.isArray(t) ? t[a] || dr : t, s)), n.push(s);
|
|
25308
25308
|
}
|
|
25309
25309
|
return n;
|
|
25310
25310
|
}
|
|
@@ -25441,17 +25441,17 @@ var cg = class {
|
|
|
25441
25441
|
return this.finished.then(e, t);
|
|
25442
25442
|
}
|
|
25443
25443
|
get duration() {
|
|
25444
|
-
return
|
|
25444
|
+
return ur(this.calculatedDuration);
|
|
25445
25445
|
}
|
|
25446
25446
|
get iterationDuration() {
|
|
25447
25447
|
const { delay: e = 0 } = this.options || {};
|
|
25448
|
-
return this.duration +
|
|
25448
|
+
return this.duration + ur(e);
|
|
25449
25449
|
}
|
|
25450
25450
|
get time() {
|
|
25451
|
-
return
|
|
25451
|
+
return ur(this.currentTime);
|
|
25452
25452
|
}
|
|
25453
25453
|
set time(e) {
|
|
25454
|
-
e =
|
|
25454
|
+
e = Qt(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver?.start(!1);
|
|
25455
25455
|
}
|
|
25456
25456
|
get speed() {
|
|
25457
25457
|
return this.playbackSpeed;
|
|
@@ -25459,7 +25459,7 @@ var cg = class {
|
|
|
25459
25459
|
set speed(e) {
|
|
25460
25460
|
this.updateTime(Rt.now());
|
|
25461
25461
|
const t = this.playbackSpeed !== e;
|
|
25462
|
-
this.playbackSpeed = e, t && (this.time =
|
|
25462
|
+
this.playbackSpeed = e, t && (this.time = ur(this.currentTime));
|
|
25463
25463
|
}
|
|
25464
25464
|
play() {
|
|
25465
25465
|
if (this.isStopped) return;
|
|
@@ -25776,17 +25776,17 @@ var MP = class extends cg {
|
|
|
25776
25776
|
}
|
|
25777
25777
|
get duration() {
|
|
25778
25778
|
const e = this.animation.effect?.getComputedTiming?.().duration || 0;
|
|
25779
|
-
return
|
|
25779
|
+
return ur(Number(e));
|
|
25780
25780
|
}
|
|
25781
25781
|
get iterationDuration() {
|
|
25782
25782
|
const { delay: e = 0 } = this.options || {};
|
|
25783
|
-
return this.duration +
|
|
25783
|
+
return this.duration + ur(e);
|
|
25784
25784
|
}
|
|
25785
25785
|
get time() {
|
|
25786
|
-
return
|
|
25786
|
+
return ur(Number(this.animation.currentTime) || 0);
|
|
25787
25787
|
}
|
|
25788
25788
|
set time(e) {
|
|
25789
|
-
this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime =
|
|
25789
|
+
this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = Qt(e);
|
|
25790
25790
|
}
|
|
25791
25791
|
get speed() {
|
|
25792
25792
|
return this.animation.playbackRate;
|
|
@@ -25804,7 +25804,7 @@ var MP = class extends cg {
|
|
|
25804
25804
|
this.manualStartTime = this.animation.startTime = e;
|
|
25805
25805
|
}
|
|
25806
25806
|
attachTimeline({ timeline: e, observe: t }) {
|
|
25807
|
-
return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && uQ() ? (this.animation.timeline = e,
|
|
25807
|
+
return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && uQ() ? (this.animation.timeline = e, dr) : t(this);
|
|
25808
25808
|
}
|
|
25809
25809
|
}, EP = {
|
|
25810
25810
|
anticipate: Xk,
|
|
@@ -25896,7 +25896,7 @@ var wQ = 40, AQ = class extends cg {
|
|
|
25896
25896
|
}) : new ug(u);
|
|
25897
25897
|
f.finished.then(() => {
|
|
25898
25898
|
this.notifyFinished();
|
|
25899
|
-
}).catch(
|
|
25899
|
+
}).catch(dr), this.pendingTimeline && (this.stopTimeline = f.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = f;
|
|
25900
25900
|
}
|
|
25901
25901
|
get finished() {
|
|
25902
25902
|
return this._animation ? this.animation.finished : this._finished;
|
|
@@ -26092,7 +26092,7 @@ function OQ({ when: e, delay: t, delayChildren: r, staggerChildren: n, staggerDi
|
|
|
26092
26092
|
var mg = (e, t, r, n = {}, i, o) => (a) => {
|
|
26093
26093
|
const s = fg(n, e) || {}, l = s.delay || n.delay || 0;
|
|
26094
26094
|
let { elapsed: c = 0 } = n;
|
|
26095
|
-
c = c -
|
|
26095
|
+
c = c - Qt(l);
|
|
26096
26096
|
const u = {
|
|
26097
26097
|
keyframes: Array.isArray(r) ? r : [null, r],
|
|
26098
26098
|
ease: "easeOut",
|
|
@@ -26109,7 +26109,7 @@ var mg = (e, t, r, n = {}, i, o) => (a) => {
|
|
|
26109
26109
|
motionValue: t,
|
|
26110
26110
|
element: o ? void 0 : i
|
|
26111
26111
|
};
|
|
26112
|
-
OQ(s) || Object.assign(u, RQ(e, u)), u.duration && (u.duration =
|
|
26112
|
+
OQ(s) || Object.assign(u, RQ(e, u)), u.duration && (u.duration = Qt(u.duration)), u.repeatDelay && (u.repeatDelay = Qt(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
|
|
26113
26113
|
let d = !1;
|
|
26114
26114
|
if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (Ff(u), u.delay === 0 && (d = !0)), (En.instantAnimations || En.skipAnimations || i?.shouldSkipAnimations) && (d = !0, Ff(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !o && t.get() !== void 0) {
|
|
26115
26115
|
const h = DQ(u.keyframes, s);
|
|
@@ -26895,7 +26895,7 @@ var zP = class {
|
|
|
26895
26895
|
keyframes: a,
|
|
26896
26896
|
times: s,
|
|
26897
26897
|
ease: l,
|
|
26898
|
-
duration:
|
|
26898
|
+
duration: Qt(c)
|
|
26899
26899
|
}), d = o(u);
|
|
26900
26900
|
this.valueSubscriptions.set(e, () => {
|
|
26901
26901
|
d(), u.cancel();
|
|
@@ -27640,7 +27640,7 @@ function lZ(e, t, r, n, i, o) {
|
|
|
27640
27640
|
function Jx(e, t) {
|
|
27641
27641
|
return e[t] !== void 0 ? e[t] : e.borderRadius;
|
|
27642
27642
|
}
|
|
27643
|
-
var cZ = /* @__PURE__ */ d_(0, 0.5, qk), uZ = /* @__PURE__ */ d_(0.5, 0.95,
|
|
27643
|
+
var cZ = /* @__PURE__ */ d_(0, 0.5, qk), uZ = /* @__PURE__ */ d_(0.5, 0.95, dr);
|
|
27644
27644
|
function d_(e, t, r) {
|
|
27645
27645
|
return (n) => n < e ? 0 : n > t ? 1 : r(ia(e, t, n));
|
|
27646
27646
|
}
|
|
@@ -28282,7 +28282,7 @@ var _Z = {
|
|
|
28282
28282
|
0.1,
|
|
28283
28283
|
1
|
|
28284
28284
|
]
|
|
28285
|
-
}, iw = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), ow = iw("applewebkit/") && !iw("chrome/") ? Math.round :
|
|
28285
|
+
}, iw = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), ow = iw("applewebkit/") && !iw("chrome/") ? Math.round : dr;
|
|
28286
28286
|
function aw(e) {
|
|
28287
28287
|
e.min = ow(e.min), e.max = ow(e.max);
|
|
28288
28288
|
}
|
|
@@ -28895,14 +28895,14 @@ function gee(e, t) {
|
|
|
28895
28895
|
};
|
|
28896
28896
|
let r = e.length - 1, n = null;
|
|
28897
28897
|
const i = k_(e);
|
|
28898
|
-
for (; r >= 0 && (n = e[r], !(i.timestamp - n.timestamp >
|
|
28898
|
+
for (; r >= 0 && (n = e[r], !(i.timestamp - n.timestamp > Qt(t))); )
|
|
28899
28899
|
r--;
|
|
28900
28900
|
if (!n) return {
|
|
28901
28901
|
x: 0,
|
|
28902
28902
|
y: 0
|
|
28903
28903
|
};
|
|
28904
|
-
n === e[0] && e.length > 2 && i.timestamp - n.timestamp >
|
|
28905
|
-
const o =
|
|
28904
|
+
n === e[0] && e.length > 2 && i.timestamp - n.timestamp > Qt(t) * 2 && (n = e[1]);
|
|
28905
|
+
const o = ur(i.timestamp - n.timestamp);
|
|
28906
28906
|
if (o === 0) return {
|
|
28907
28907
|
x: 0,
|
|
28908
28908
|
y: 0
|
|
@@ -29206,11 +29206,11 @@ function Eee(e, t = 10) {
|
|
|
29206
29206
|
}
|
|
29207
29207
|
var kee = class extends oi {
|
|
29208
29208
|
constructor(e) {
|
|
29209
|
-
super(e), this.removeGroupControls =
|
|
29209
|
+
super(e), this.removeGroupControls = dr, this.removeListeners = dr, this.controls = new Tee(e);
|
|
29210
29210
|
}
|
|
29211
29211
|
mount() {
|
|
29212
29212
|
const { dragControls: e } = this.node.getProps();
|
|
29213
|
-
e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() ||
|
|
29213
|
+
e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || dr;
|
|
29214
29214
|
}
|
|
29215
29215
|
update() {
|
|
29216
29216
|
const { dragControls: e } = this.node.getProps(), { dragControls: t } = this.node.prevProps || {};
|
|
@@ -29223,7 +29223,7 @@ var kee = class extends oi {
|
|
|
29223
29223
|
e && Ne.update(() => e(t, r), !1, !0);
|
|
29224
29224
|
}, Pee = class extends oi {
|
|
29225
29225
|
constructor() {
|
|
29226
|
-
super(...arguments), this.removePointerDownListener =
|
|
29226
|
+
super(...arguments), this.removePointerDownListener = dr;
|
|
29227
29227
|
}
|
|
29228
29228
|
onPointerDown(e) {
|
|
29229
29229
|
this.session = new E_(e, this.createPanHandlers(), {
|
|
@@ -29552,7 +29552,7 @@ function ete(e, { defaultTransition: t = {}, ...r } = {}, n, i) {
|
|
|
29552
29552
|
...t,
|
|
29553
29553
|
...C
|
|
29554
29554
|
};
|
|
29555
|
-
k !== void 0 && (ae.duration =
|
|
29555
|
+
k !== void 0 && (ae.duration = Qt(k));
|
|
29556
29556
|
const ie = mP(ae, te, X);
|
|
29557
29557
|
E = ie.ease, k = ie.duration;
|
|
29558
29558
|
}
|
|
@@ -30357,13 +30357,13 @@ var Zc = (e, t, r) => {
|
|
|
30357
30357
|
children: /* @__PURE__ */ g("svg", { ...t })
|
|
30358
30358
|
}), Bte = Cr(function({ layer: t, coordSystem: r, shouldAnimateTransitions: n, intro: i }) {
|
|
30359
30359
|
const o = i?.type === "wipe" ? i : null, { lineGenerator: a, areaGenerator: s } = G(() => Vp(r, t.params), [t.params, r]), l = Be(t), c = G(() => {
|
|
30360
|
-
const u =
|
|
30360
|
+
const u = rr(t.data, t.mapping, t.id), d = [];
|
|
30361
30361
|
return t.data.groupBy(we.group).forEach((h) => {
|
|
30362
30362
|
const f = Fp([...h], t.params.missingValues), m = s(f), p = a(f);
|
|
30363
30363
|
if (!m || !p) return;
|
|
30364
30364
|
const v = f[0];
|
|
30365
30365
|
if (!v) return;
|
|
30366
|
-
const y = Fe(l.get("fill", v)), x = l.get("stroke", v) ?? y, w = l.get("strokeWidth", v), S =
|
|
30366
|
+
const y = Fe(l.get("fill", v)), x = l.get("stroke", v) ?? y, w = l.get("strokeWidth", v), S = Ut(l.get("dashArray", v), l.get("strokeWidth", v)), P = l.get("lineCap", v), A = l.get("lineJoin", v);
|
|
30367
30367
|
d.push({
|
|
30368
30368
|
key: u(v),
|
|
30369
30369
|
areaPath: m,
|
|
@@ -30459,7 +30459,7 @@ var Zc = (e, t, r) => {
|
|
|
30459
30459
|
ringWidth: r
|
|
30460
30460
|
};
|
|
30461
30461
|
}, zte = ({ layer: e, coordSystem: t, primary: r, companions: n }) => {
|
|
30462
|
-
const i = Be(e), o =
|
|
30462
|
+
const i = Be(e), o = tr(r.observation), a = G(() => Fp([...e.data.filter(we.group, "eq", o)], e.params.missingValues), [
|
|
30463
30463
|
e.data,
|
|
30464
30464
|
e.params.missingValues,
|
|
30465
30465
|
o
|
|
@@ -30475,7 +30475,7 @@ var Zc = (e, t, r) => {
|
|
|
30475
30475
|
a
|
|
30476
30476
|
]);
|
|
30477
30477
|
if (!s || !l) return null;
|
|
30478
|
-
const c = Fe(i.get("fill", r.observation, "hovered")), u = i.get("stroke", r.observation, "hovered") ?? c, d = i.get("alpha", r.observation, "hovered"), h = i.get("fillAlpha", r.observation, "hovered") * d, f = i.get("strokeAlpha", r.observation, "hovered") * d, m = i.get("strokeWidth", r.observation, "hovered"), p =
|
|
30478
|
+
const c = Fe(i.get("fill", r.observation, "hovered")), u = i.get("stroke", r.observation, "hovered") ?? c, d = i.get("alpha", r.observation, "hovered"), h = i.get("fillAlpha", r.observation, "hovered") * d, f = i.get("strokeAlpha", r.observation, "hovered") * d, m = i.get("strokeWidth", r.observation, "hovered"), p = Ut(i.get("dashArray", r.observation, "hovered"), m), v = i.get("lineCap", r.observation, "hovered"), y = i.get("lineJoin", r.observation, "hovered");
|
|
30479
30479
|
return /* @__PURE__ */ W("g", {
|
|
30480
30480
|
"data-testid": "hovered-area",
|
|
30481
30481
|
children: [
|
|
@@ -30888,7 +30888,7 @@ var Xte = 1 / 3, qte = {
|
|
|
30888
30888
|
]), { paints: a, paintAt: s } = fl(e, i), { fillFor: l, defs: c } = mr({
|
|
30889
30889
|
paints: a,
|
|
30890
30890
|
origin: Dg(t, r)
|
|
30891
|
-
}), u =
|
|
30891
|
+
}), u = rr(e.data, e.mapping, e.id), d = [];
|
|
30892
30892
|
let h = -1;
|
|
30893
30893
|
for (const f of e.data) {
|
|
30894
30894
|
h += 1;
|
|
@@ -30991,7 +30991,7 @@ var Xte = 1 / 3, qte = {
|
|
|
30991
30991
|
origin: Dg(t, r)
|
|
30992
30992
|
});
|
|
30993
30993
|
return /* @__PURE__ */ W(he, { children: [d, G(() => {
|
|
30994
|
-
const h =
|
|
30994
|
+
const h = rr(t.data, t.mapping, t.id);
|
|
30995
30995
|
return [...W_(t, r.mainAxis, a, (f, m, p) => ({
|
|
30996
30996
|
key: h(f),
|
|
30997
30997
|
...m,
|
|
@@ -31336,7 +31336,7 @@ var bh = 3, bre = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
31336
31336
|
const d = R_(i, c, o);
|
|
31337
31337
|
d !== "" && a.push({
|
|
31338
31338
|
kind: "stroke",
|
|
31339
|
-
key: String(
|
|
31339
|
+
key: String(tr(u)),
|
|
31340
31340
|
pathData: d,
|
|
31341
31341
|
width: r.get("strokeWidth", u),
|
|
31342
31342
|
shouldAnimateTransitions: n
|
|
@@ -31351,13 +31351,13 @@ var bh = 3, bre = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
31351
31351
|
return r === null || n === null ? null : Qc(Wi(r, n), t);
|
|
31352
31352
|
}, Sre = Cr(function({ layer: t, shouldAnimateTransitions: r, intro: n }) {
|
|
31353
31353
|
const i = n?.type === "wipe" ? n : null, o = G(() => Hp(t.params), [t.params]), a = G(() => iY(t.params), [t.params]), s = Be(t), l = G(() => {
|
|
31354
|
-
const c =
|
|
31354
|
+
const c = rr(t.data, t.mapping, t.id), u = [];
|
|
31355
31355
|
return t.data.groupBy(we.group).forEach((d) => {
|
|
31356
31356
|
const h = Gp([...d], t.params.missingValues), f = o(h);
|
|
31357
31357
|
if (!f) return;
|
|
31358
31358
|
const m = h[0];
|
|
31359
31359
|
if (!m) return;
|
|
31360
|
-
const p = s.get("fillAlpha", m), v = p === void 0 ? void 0 : a(h) ?? void 0, y = s.get("stroke", m), x = s.get("fill", m), w = x === void 0 ? y : Fe(x), S = s.get("strokeWidth", m), P =
|
|
31360
|
+
const p = s.get("fillAlpha", m), v = p === void 0 ? void 0 : a(h) ?? void 0, y = s.get("stroke", m), x = s.get("fill", m), w = x === void 0 ? y : Fe(x), S = s.get("strokeWidth", m), P = Ut(s.get("dashArray", m), s.get("strokeWidth", m)), A = s.get("lineCap", m), D = s.get("lineJoin", m);
|
|
31361
31361
|
u.push({
|
|
31362
31362
|
key: c(m),
|
|
31363
31363
|
pathData: f,
|
|
@@ -31491,13 +31491,13 @@ var bh = 3, bre = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
31491
31491
|
vectorEffect: "non-scaling-stroke"
|
|
31492
31492
|
});
|
|
31493
31493
|
}, kre = ({ layer: e, primary: t, companions: r }) => {
|
|
31494
|
-
const n = Be(e), i =
|
|
31494
|
+
const n = Be(e), i = tr(t.observation), o = G(() => Gp([...e.data.filter(we.group, "eq", i)], e.params.missingValues), [
|
|
31495
31495
|
e.data,
|
|
31496
31496
|
e.params.missingValues,
|
|
31497
31497
|
i
|
|
31498
31498
|
]), a = G(() => Hp(e.params)(o), [e.params, o]);
|
|
31499
31499
|
if (!a) return null;
|
|
31500
|
-
const s = n.get("stroke", t.observation, "hovered"), l = n.get("alpha", t.observation, "hovered"), c = n.get("strokeAlpha", t.observation, "hovered"), u = n.get("strokeWidth", t.observation, "hovered"), d =
|
|
31500
|
+
const s = n.get("stroke", t.observation, "hovered"), l = n.get("alpha", t.observation, "hovered"), c = n.get("strokeAlpha", t.observation, "hovered"), u = n.get("strokeWidth", t.observation, "hovered"), d = Ut(n.get("dashArray", t.observation, "hovered"), u), h = n.get("lineCap", t.observation, "hovered"), f = n.get("lineJoin", t.observation, "hovered");
|
|
31501
31501
|
return /* @__PURE__ */ W("g", {
|
|
31502
31502
|
"data-testid": "hovered-line",
|
|
31503
31503
|
children: [
|
|
@@ -31592,7 +31592,7 @@ var bh = 3, bre = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
|
31592
31592
|
}, _re = Cr(function({ layer: t, shouldAnimateTransitions: r, intro: n }) {
|
|
31593
31593
|
const i = Be(t), o = id(n?.type === "grow" && n.growAxis === "size" ? n : null, r);
|
|
31594
31594
|
return G(() => {
|
|
31595
|
-
const a = o.activeIntro ?
|
|
31595
|
+
const a = o.activeIntro ? rr(t.data, t.mapping, t.id) : null, s = [];
|
|
31596
31596
|
let l = 0;
|
|
31597
31597
|
for (const c of t.data) s.push(/* @__PURE__ */ g(Y_, {
|
|
31598
31598
|
observation: c,
|
|
@@ -31897,7 +31897,7 @@ var Ga = "var(--graphy-editor-font-family, var(--graphy-font-family))", B = {
|
|
|
31897
31897
|
fontEditorControlValue: Ie(B.fontWeightMedium, B.fontSizeSm, B.fontLineHeightSm, Ga),
|
|
31898
31898
|
fontEditorSectionTitle: Ie(B.fontWeightSemibold, B.fontSizeSm, B.fontLineHeightSm, Ga),
|
|
31899
31899
|
fontEditorCaption: Ie(B.fontWeightMedium, B.fontSizeXxs, B.fontLineHeightXxs, Ga)
|
|
31900
|
-
}, Dre = (e, t) => ({ familyDefault: xh(t) ?? xh(e.fontFamily) ?? xh(od) ?? "" }), xh = (e) => e === void 0 || e.includes("var(") ? null : e.replace(/\s+/g, " ").trim(),
|
|
31900
|
+
}, Dre = (e, t) => ({ familyDefault: xh(t) ?? xh(e.fontFamily) ?? xh(od) ?? "" }), xh = (e) => e === void 0 || e.includes("var(") ? null : e.replace(/\s+/g, " ").trim(), qt = (e, t) => `color-mix(in srgb, transparent, ${e} ${t * 100}%)`, Ore = (e, t) => `hsl(from ${e} h s calc(l * ${1 - t}))`, Sve = (e, t) => `hsl(from ${e} h s calc(l * ${1 + t}))`, Nre = (e) => `${e}px`, Z_ = { editorControlHeight: Nre(32) }, qa = {
|
|
31901
31901
|
editOutline: 1,
|
|
31902
31902
|
panelOverlay: 5,
|
|
31903
31903
|
textToolbar: 10,
|
|
@@ -31958,14 +31958,14 @@ var Ga = "var(--graphy-editor-font-family, var(--graphy-font-family))", B = {
|
|
|
31958
31958
|
grayGradient80: "linear-gradient(to top, #222429, #31353f)"
|
|
31959
31959
|
}, Fre = {
|
|
31960
31960
|
textPrimary: B.gray0,
|
|
31961
|
-
textSecondary:
|
|
31962
|
-
textDisabled:
|
|
31961
|
+
textSecondary: qt(B.textPrimary, 0.8),
|
|
31962
|
+
textDisabled: qt(B.textPrimary, 0.5),
|
|
31963
31963
|
iconPrimary: "currentColor",
|
|
31964
|
-
iconSecondary:
|
|
31964
|
+
iconSecondary: qt(B.textPrimary, 0.6),
|
|
31965
31965
|
iconStickerBackground: B.gray70,
|
|
31966
31966
|
border100: B.gray0,
|
|
31967
|
-
border50:
|
|
31968
|
-
border10:
|
|
31967
|
+
border50: qt(B.gray0, 0.5),
|
|
31968
|
+
border10: qt(B.gray0, 0.1),
|
|
31969
31969
|
brand: B.purple50,
|
|
31970
31970
|
success: B.green50,
|
|
31971
31971
|
warning: B.amber50,
|
|
@@ -32040,18 +32040,18 @@ var Ga = "var(--graphy-editor-font-family, var(--graphy-font-family))", B = {
|
|
|
32040
32040
|
grayGradient80: "linear-gradient(to top, #F0F0F1, #F9F9FF)"
|
|
32041
32041
|
}, jre = {
|
|
32042
32042
|
textPrimary: B.black,
|
|
32043
|
-
textSecondary:
|
|
32044
|
-
textDisabled:
|
|
32043
|
+
textSecondary: qt(B.textPrimary, 0.6),
|
|
32044
|
+
textDisabled: qt(B.textPrimary, 0.5),
|
|
32045
32045
|
iconPrimary: "currentColor",
|
|
32046
|
-
iconSecondary:
|
|
32046
|
+
iconSecondary: qt(B.textPrimary, 0.6),
|
|
32047
32047
|
iconStickerBackground: B.gray100,
|
|
32048
32048
|
brand: B.purple50,
|
|
32049
32049
|
success: B.green50,
|
|
32050
32050
|
warning: B.amber50,
|
|
32051
32051
|
alert: B.red50,
|
|
32052
32052
|
border100: B.gray0,
|
|
32053
|
-
border50:
|
|
32054
|
-
border10:
|
|
32053
|
+
border50: qt(B.gray0, 0.5),
|
|
32054
|
+
border10: qt(B.gray0, 0.1),
|
|
32055
32055
|
sunkenBackground: B.gray90,
|
|
32056
32056
|
defaultBackground: B.gray100,
|
|
32057
32057
|
raisedBackground: B.gray85,
|
|
@@ -32230,7 +32230,7 @@ var Ga = "var(--graphy-editor-font-family, var(--graphy-font-family))", B = {
|
|
|
32230
32230
|
y2: "100%"
|
|
32231
32231
|
};
|
|
32232
32232
|
}, hne = (e, t, r, n) => {
|
|
32233
|
-
const i =
|
|
32233
|
+
const i = Ut(e, t), o = {
|
|
32234
32234
|
...r === void 0 ? {} : { strokeLinecap: r },
|
|
32235
32235
|
...n === void 0 ? {} : { strokeLinejoin: n }
|
|
32236
32236
|
};
|
|
@@ -32856,20 +32856,20 @@ var Bne = pR((() => {
|
|
|
32856
32856
|
}, Zne = (e) => ({
|
|
32857
32857
|
...ya(e),
|
|
32858
32858
|
digits: 2
|
|
32859
|
-
}), vC = (e, t, r) =>
|
|
32859
|
+
}), vC = (e, t, r) => fr(e, t, ya(r)), Zf = (e) => {
|
|
32860
32860
|
const [t, ...r] = e;
|
|
32861
32861
|
if (!t) return "";
|
|
32862
32862
|
const n = r.map((i) => `L ${i.x} ${i.y}`).join(" ");
|
|
32863
32863
|
return `M ${t.x} ${t.y} ${n} Z`;
|
|
32864
32864
|
}, eie = Cr(function({ layer: t, panelRect: r }) {
|
|
32865
32865
|
const n = Be(t), i = G(() => {
|
|
32866
|
-
const s =
|
|
32866
|
+
const s = rr(t.data, t.mapping, t.id), l = [];
|
|
32867
32867
|
return t.data.groupBy(we.group).forEach((c) => {
|
|
32868
32868
|
const u = [...c], d = yC(u);
|
|
32869
32869
|
if (!d) return;
|
|
32870
32870
|
const h = u[0];
|
|
32871
32871
|
if (!h) return;
|
|
32872
|
-
const f = n.get("fill", h);
|
|
32872
|
+
const f = n.get("fill", h), m = n.get("strokeWidth", h);
|
|
32873
32873
|
l.push({
|
|
32874
32874
|
key: s(h),
|
|
32875
32875
|
fillPath: d.fillPath,
|
|
@@ -32878,7 +32878,8 @@ var Bne = pR((() => {
|
|
|
32878
32878
|
stroke: n.get("stroke", h) ?? Fe(f),
|
|
32879
32879
|
fillOpacity: n.get("fillAlpha", h) * n.get("alpha", h),
|
|
32880
32880
|
strokeOpacity: n.get("strokeAlpha", h) * n.get("alpha", h),
|
|
32881
|
-
strokeWidth:
|
|
32881
|
+
strokeWidth: m,
|
|
32882
|
+
strokeDasharray: Ut(n.get("dashArray", h), m)
|
|
32882
32883
|
});
|
|
32883
32884
|
}), l;
|
|
32884
32885
|
}, [
|
|
@@ -32908,6 +32909,7 @@ var Bne = pR((() => {
|
|
|
32908
32909
|
fill: "none",
|
|
32909
32910
|
stroke: s.stroke,
|
|
32910
32911
|
strokeWidth: s.strokeWidth,
|
|
32912
|
+
strokeDasharray: s.strokeDasharray,
|
|
32911
32913
|
opacity: s.strokeOpacity,
|
|
32912
32914
|
vectorEffect: "non-scaling-stroke"
|
|
32913
32915
|
})] }, s.key))]
|
|
@@ -32926,8 +32928,8 @@ var Bne = pR((() => {
|
|
|
32926
32928
|
const o = xe(i), { innerRadius: a, outerRadius: s } = Ru(i);
|
|
32927
32929
|
o === null || a === null || s === null || t.push({
|
|
32928
32930
|
angle: o,
|
|
32929
|
-
outer:
|
|
32930
|
-
inner:
|
|
32931
|
+
outer: fr(o, s),
|
|
32932
|
+
inner: fr(o, a)
|
|
32931
32933
|
});
|
|
32932
32934
|
}
|
|
32933
32935
|
if (t.length === 0) return null;
|
|
@@ -32952,7 +32954,7 @@ var Bne = pR((() => {
|
|
|
32952
32954
|
const c = l.hole === null ? "" : qf(l.hole, r);
|
|
32953
32955
|
n.push({
|
|
32954
32956
|
kind: "region",
|
|
32955
|
-
key: String(
|
|
32957
|
+
key: String(tr(s)),
|
|
32956
32958
|
pathData: qf(l.outer, r) + c,
|
|
32957
32959
|
fillRule: "evenodd"
|
|
32958
32960
|
});
|
|
@@ -32962,12 +32964,12 @@ var Bne = pR((() => {
|
|
|
32962
32964
|
size: 8
|
|
32963
32965
|
}), n;
|
|
32964
32966
|
}, rie = ({ layer: e, primary: t, companions: r, panelRect: n }) => {
|
|
32965
|
-
const i = Be(e), o =
|
|
32967
|
+
const i = Be(e), o = tr(t.observation), a = i.get("fill", t.observation, "hovered"), { fillFor: s, defs: l } = mr({
|
|
32966
32968
|
paints: [a],
|
|
32967
32969
|
unitsPerPixel: ll(n)
|
|
32968
32970
|
}), c = G(() => yC([...e.data.filter(we.group, "eq", o)]), [e.data, o]);
|
|
32969
32971
|
if (!c) return null;
|
|
32970
|
-
const u = i.get("stroke", t.observation, "hovered") ?? Fe(a), d = i.get("alpha", t.observation, "hovered"), h = i.get("fillAlpha", t.observation, "hovered") * d, f = i.get("strokeAlpha", t.observation, "hovered") * d, m = i.get("strokeWidth", t.observation, "hovered");
|
|
32972
|
+
const u = i.get("stroke", t.observation, "hovered") ?? Fe(a), d = i.get("alpha", t.observation, "hovered"), h = i.get("fillAlpha", t.observation, "hovered") * d, f = i.get("strokeAlpha", t.observation, "hovered") * d, m = i.get("strokeWidth", t.observation, "hovered"), p = Ut(i.get("dashArray", t.observation, "hovered"), m);
|
|
32971
32973
|
return /* @__PURE__ */ W(he, { children: [
|
|
32972
32974
|
/* @__PURE__ */ W(sn, {
|
|
32973
32975
|
viewBox: "-1 -1 2 2",
|
|
@@ -32992,16 +32994,17 @@ var Bne = pR((() => {
|
|
|
32992
32994
|
fill: "none",
|
|
32993
32995
|
stroke: u,
|
|
32994
32996
|
strokeWidth: m,
|
|
32997
|
+
strokeDasharray: p,
|
|
32995
32998
|
opacity: f,
|
|
32996
32999
|
vectorEffect: "non-scaling-stroke",
|
|
32997
33000
|
"data-testid": "hovered-area-edge"
|
|
32998
33001
|
})
|
|
32999
33002
|
]
|
|
33000
33003
|
}),
|
|
33001
|
-
r.map((
|
|
33002
|
-
hit:
|
|
33004
|
+
r.map((v) => /* @__PURE__ */ g(ai, {
|
|
33005
|
+
hit: v,
|
|
33003
33006
|
project: kr
|
|
33004
|
-
}, `companion-${
|
|
33007
|
+
}, `companion-${v.layerId}-${v.pointIndex}`)),
|
|
33005
33008
|
/* @__PURE__ */ g(Aa, {
|
|
33006
33009
|
hit: t,
|
|
33007
33010
|
project: kr,
|
|
@@ -33107,7 +33110,7 @@ var Bne = pR((() => {
|
|
|
33107
33110
|
paints: u,
|
|
33108
33111
|
unitsPerPixel: ll(o)
|
|
33109
33112
|
}), m = G(() => {
|
|
33110
|
-
const p =
|
|
33113
|
+
const p = rr(t.data, t.mapping, t.id);
|
|
33111
33114
|
return [...xC(t, r.bandAxis, c, (v, y, x) => ({
|
|
33112
33115
|
key: p(v),
|
|
33113
33116
|
...y,
|
|
@@ -33337,7 +33340,7 @@ var Bne = pR((() => {
|
|
|
33337
33340
|
]), { paints: a, paintAt: s } = fl(e, i), { fillFor: l, defs: c } = mr({
|
|
33338
33341
|
paints: a,
|
|
33339
33342
|
unitsPerPixel: ll(n)
|
|
33340
|
-
}), u =
|
|
33343
|
+
}), u = rr(e.data, e.mapping, e.id), d = [];
|
|
33341
33344
|
let h = -1;
|
|
33342
33345
|
for (const f of e.data)
|
|
33343
33346
|
h += 1, d.push(/* @__PURE__ */ g(SC, {
|
|
@@ -33357,7 +33360,7 @@ var Bne = pR((() => {
|
|
|
33357
33360
|
children: [c, d]
|
|
33358
33361
|
});
|
|
33359
33362
|
}, ds = (e, t) => {
|
|
33360
|
-
const r =
|
|
33363
|
+
const r = fr(t, e);
|
|
33361
33364
|
return `${r.x},${r.y}`;
|
|
33362
33365
|
}, Uw = (e, t, r) => {
|
|
33363
33366
|
if (e <= 0) return "";
|
|
@@ -33433,7 +33436,7 @@ var Bne = pR((() => {
|
|
|
33433
33436
|
getEditOutlineShapes: aie
|
|
33434
33437
|
}, gie = Cr(function({ layer: t }) {
|
|
33435
33438
|
const r = Be(t), n = G(() => {
|
|
33436
|
-
const i =
|
|
33439
|
+
const i = rr(t.data, t.mapping, t.id), o = [];
|
|
33437
33440
|
return t.data.groupBy(we.group).forEach((a) => {
|
|
33438
33441
|
const s = [...a], l = TC(s);
|
|
33439
33442
|
if (!l) return;
|
|
@@ -33447,7 +33450,7 @@ var Bne = pR((() => {
|
|
|
33447
33450
|
strokeWidth: r.get("strokeWidth", c),
|
|
33448
33451
|
lineCap: r.get("lineCap", c),
|
|
33449
33452
|
lineJoin: r.get("lineJoin", c),
|
|
33450
|
-
strokeDasharray:
|
|
33453
|
+
strokeDasharray: Ut(r.get("dashArray", c), r.get("strokeWidth", c))
|
|
33451
33454
|
});
|
|
33452
33455
|
}), o;
|
|
33453
33456
|
}, [
|
|
@@ -33486,7 +33489,7 @@ var Bne = pR((() => {
|
|
|
33486
33489
|
const n = xe(r), i = pe(r);
|
|
33487
33490
|
n === null || i === null || t.push({
|
|
33488
33491
|
angle: n,
|
|
33489
|
-
point:
|
|
33492
|
+
point: fr(n, i)
|
|
33490
33493
|
});
|
|
33491
33494
|
}
|
|
33492
33495
|
return t.sort((r, n) => r.angle - n.angle), t.map((r) => r.point);
|
|
@@ -33503,7 +33506,7 @@ var Bne = pR((() => {
|
|
|
33503
33506
|
const c = qf(MC(s), n);
|
|
33504
33507
|
c !== "" && i.push({
|
|
33505
33508
|
kind: "stroke",
|
|
33506
|
-
key: String(
|
|
33509
|
+
key: String(tr(l)),
|
|
33507
33510
|
pathData: c,
|
|
33508
33511
|
width: r.get("strokeWidth", l)
|
|
33509
33512
|
});
|
|
@@ -33513,9 +33516,9 @@ var Bne = pR((() => {
|
|
|
33513
33516
|
size: 8
|
|
33514
33517
|
}), i;
|
|
33515
33518
|
}, yie = ({ layer: e, primary: t, companions: r }) => {
|
|
33516
|
-
const n = Be(e), i =
|
|
33519
|
+
const n = Be(e), i = tr(t.observation), o = G(() => TC([...e.data.filter(we.group, "eq", i)]), [e.data, i]);
|
|
33517
33520
|
if (!o) return null;
|
|
33518
|
-
const a = n.get("stroke", t.observation, "hovered"), s = n.get("alpha", t.observation, "hovered"), l = n.get("strokeAlpha", t.observation, "hovered"), c = n.get("strokeWidth", t.observation, "hovered"), u =
|
|
33521
|
+
const a = n.get("stroke", t.observation, "hovered"), s = n.get("alpha", t.observation, "hovered"), l = n.get("strokeAlpha", t.observation, "hovered"), c = n.get("strokeWidth", t.observation, "hovered"), u = Ut(n.get("dashArray", t.observation, "hovered"), c), d = n.get("lineCap", t.observation, "hovered"), h = n.get("lineJoin", t.observation, "hovered");
|
|
33519
33522
|
return /* @__PURE__ */ W(he, { children: [
|
|
33520
33523
|
/* @__PURE__ */ g(sn, {
|
|
33521
33524
|
viewBox: "-1 -1 2 2",
|
|
@@ -33575,7 +33578,7 @@ var Bne = pR((() => {
|
|
|
33575
33578
|
}, xie = Cr(function({ layer: t, shouldAnimateTransitions: r, intro: n }) {
|
|
33576
33579
|
const i = Be(t), o = id(n?.type === "grow" && n.growAxis === "size" ? n : null, r);
|
|
33577
33580
|
return G(() => {
|
|
33578
|
-
const a = o.activeIntro ?
|
|
33581
|
+
const a = o.activeIntro ? rr(t.data, t.mapping, t.id) : null, s = [];
|
|
33579
33582
|
let l = 0;
|
|
33580
33583
|
for (const c of t.data) s.push(/* @__PURE__ */ g(Y_, {
|
|
33581
33584
|
observation: c,
|
|
@@ -34161,7 +34164,7 @@ function Kie({ theme: e, ...t } = {}) {
|
|
|
34161
34164
|
var Xie = () => {
|
|
34162
34165
|
const e = /* @__PURE__ */ new Map();
|
|
34163
34166
|
return pa((t) => ({
|
|
34164
|
-
hover:
|
|
34167
|
+
hover: ar,
|
|
34165
34168
|
tooltipAnchor: null,
|
|
34166
34169
|
pointerRegions: [],
|
|
34167
34170
|
isPointerSuspended: !1,
|
|
@@ -34326,9 +34329,9 @@ function soe() {
|
|
|
34326
34329
|
function loe(e) {
|
|
34327
34330
|
const { engine: t, store: r } = so();
|
|
34328
34331
|
return Le((n, i) => {
|
|
34329
|
-
const { hover: o, setHoverState: a, setTooltipAnchor: s } = r.getState(), l = n === null ?
|
|
34332
|
+
const { hover: o, setHoverState: a, setTooltipAnchor: s } = r.getState(), l = n === null ? ar : t.resolveHoverByKey(e, n);
|
|
34330
34333
|
if (l.primary === null) {
|
|
34331
|
-
o.primary?.layerId === e && (a(
|
|
34334
|
+
o.primary?.layerId === e && (a(ar), s(null));
|
|
34332
34335
|
return;
|
|
34333
34336
|
}
|
|
34334
34337
|
a(l), s(i ? {
|
|
@@ -34464,7 +34467,7 @@ function NC(e) {
|
|
|
34464
34467
|
} else for (r in e) e[r] && (n && (n += " "), n += r);
|
|
34465
34468
|
return n;
|
|
34466
34469
|
}
|
|
34467
|
-
function
|
|
34470
|
+
function Jt() {
|
|
34468
34471
|
for (var e, t, r = 0, n = "", i = arguments.length; r < i; r++) (e = arguments[r]) && (t = NC(e)) && (n && (n += " "), n += t);
|
|
34469
34472
|
return n;
|
|
34470
34473
|
}
|
|
@@ -34493,7 +34496,7 @@ var _oe = "dev-tools-panel_theadRow__58flceh", Coe = "dev-tools-panel_historyHea
|
|
|
34493
34496
|
});
|
|
34494
34497
|
};
|
|
34495
34498
|
return /* @__PURE__ */ W("div", {
|
|
34496
|
-
className:
|
|
34499
|
+
className: Jt(Toe, r),
|
|
34497
34500
|
style: {
|
|
34498
34501
|
width: e,
|
|
34499
34502
|
...t
|
|
@@ -36878,13 +36881,13 @@ var ci = /* @__PURE__ */ (function(e) {
|
|
|
36878
36881
|
constructor(e, t) {
|
|
36879
36882
|
super(`The intl string context variable "${e}" was not provided to the string "${t}"`, ci.MISSING_VALUE, t);
|
|
36880
36883
|
}
|
|
36881
|
-
},
|
|
36884
|
+
}, Kt = /* @__PURE__ */ (function(e) {
|
|
36882
36885
|
return e[e.literal = 0] = "literal", e[e.object = 1] = "object", e;
|
|
36883
36886
|
})({});
|
|
36884
36887
|
function xae(e) {
|
|
36885
36888
|
return e.length < 2 ? e : e.reduce((t, r) => {
|
|
36886
36889
|
const n = t[t.length - 1];
|
|
36887
|
-
return !n || n.type !==
|
|
36890
|
+
return !n || n.type !== Kt.literal || r.type !== Kt.literal ? t.push(r) : n.value += r.value, t;
|
|
36888
36891
|
}, []);
|
|
36889
36892
|
}
|
|
36890
36893
|
function QC(e) {
|
|
@@ -36892,21 +36895,21 @@ function QC(e) {
|
|
|
36892
36895
|
}
|
|
36893
36896
|
function vc(e, t, r, n, i, o, a) {
|
|
36894
36897
|
if (e.length === 1 && tA(e[0])) return [{
|
|
36895
|
-
type:
|
|
36898
|
+
type: Kt.literal,
|
|
36896
36899
|
value: e[0].value
|
|
36897
36900
|
}];
|
|
36898
36901
|
const s = [];
|
|
36899
36902
|
for (const l of e) {
|
|
36900
36903
|
if (tA(l)) {
|
|
36901
36904
|
s.push({
|
|
36902
|
-
type:
|
|
36905
|
+
type: Kt.literal,
|
|
36903
36906
|
value: l.value
|
|
36904
36907
|
});
|
|
36905
36908
|
continue;
|
|
36906
36909
|
}
|
|
36907
36910
|
if (rae(l)) {
|
|
36908
36911
|
typeof o == "number" && s.push({
|
|
36909
|
-
type:
|
|
36912
|
+
type: Kt.literal,
|
|
36910
36913
|
value: r.getNumberFormat(t).format(o)
|
|
36911
36914
|
});
|
|
36912
36915
|
continue;
|
|
@@ -36916,7 +36919,7 @@ function vc(e, t, r, n, i, o, a) {
|
|
|
36916
36919
|
let u = i[c];
|
|
36917
36920
|
if (tae(l)) {
|
|
36918
36921
|
(!u || typeof u == "string" || typeof u == "number" || typeof u == "bigint") && (u = typeof u == "string" || typeof u == "number" || typeof u == "bigint" ? String(u) : ""), s.push({
|
|
36919
|
-
type: typeof u == "string" ?
|
|
36922
|
+
type: typeof u == "string" ? Kt.literal : Kt.object,
|
|
36920
36923
|
value: u
|
|
36921
36924
|
});
|
|
36922
36925
|
continue;
|
|
@@ -36924,7 +36927,7 @@ function vc(e, t, r, n, i, o, a) {
|
|
|
36924
36927
|
if (jC(l)) {
|
|
36925
36928
|
const d = typeof l.style == "string" ? n.date[l.style] : rm(l.style) ? l.style.parsedOptions : void 0;
|
|
36926
36929
|
s.push({
|
|
36927
|
-
type:
|
|
36930
|
+
type: Kt.literal,
|
|
36928
36931
|
value: r.getDateTimeFormat(t, d).format(u)
|
|
36929
36932
|
});
|
|
36930
36933
|
continue;
|
|
@@ -36932,7 +36935,7 @@ function vc(e, t, r, n, i, o, a) {
|
|
|
36932
36935
|
if (UC(l)) {
|
|
36933
36936
|
const d = typeof l.style == "string" ? n.time[l.style] : rm(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
36934
36937
|
s.push({
|
|
36935
|
-
type:
|
|
36938
|
+
type: Kt.literal,
|
|
36936
36939
|
value: r.getDateTimeFormat(t, d).format(u)
|
|
36937
36940
|
});
|
|
36938
36941
|
continue;
|
|
@@ -36947,7 +36950,7 @@ function vc(e, t, r, n, i, o, a) {
|
|
|
36947
36950
|
} else u = u * h;
|
|
36948
36951
|
}
|
|
36949
36952
|
s.push({
|
|
36950
|
-
type:
|
|
36953
|
+
type: Kt.literal,
|
|
36951
36954
|
value: r.getNumberFormat(t, d).format(u)
|
|
36952
36955
|
});
|
|
36953
36956
|
continue;
|
|
@@ -36957,7 +36960,7 @@ function vc(e, t, r, n, i, o, a) {
|
|
|
36957
36960
|
if (!QC(f)) throw new yae(h, "function", a);
|
|
36958
36961
|
let m = f(vc(d, t, r, n, i, o).map((p) => p.value));
|
|
36959
36962
|
Array.isArray(m) || (m = [m]), s.push(...m.map((p) => ({
|
|
36960
|
-
type: typeof p == "string" ?
|
|
36963
|
+
type: typeof p == "string" ? Kt.literal : Kt.object,
|
|
36961
36964
|
value: p
|
|
36962
36965
|
})));
|
|
36963
36966
|
}
|
|
@@ -37039,7 +37042,7 @@ var Ma = class dn {
|
|
|
37039
37042
|
}), U(this, "format", (o) => {
|
|
37040
37043
|
const a = this.formatToParts(o);
|
|
37041
37044
|
if (a.length === 1) return a[0].value;
|
|
37042
|
-
const s = a.reduce((l, c) => (!l.length || c.type !==
|
|
37045
|
+
const s = a.reduce((l, c) => (!l.length || c.type !== Kt.literal || typeof l[l.length - 1] != "string" ? l.push(c.value) : l[l.length - 1] += c.value, l), []);
|
|
37043
37046
|
return s.length <= 1 ? s[0] || "" : s;
|
|
37044
37047
|
}), U(this, "formatToParts", (o) => vc(this.ast, this.locales, this.formatters, this.formats, o, void 0, this.message)), U(this, "resolvedOptions", () => ({ locale: this.resolvedLocale?.toString() || Intl.NumberFormat.supportedLocalesOf(this.locales)[0] })), U(this, "getAst", () => this.ast), this.locales = r, this.resolvedLocale = dn.resolveLocale(r), typeof t == "string") {
|
|
37045
37048
|
if (this.message = t, !dn.__parse) throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
@@ -38339,7 +38342,7 @@ function md() {
|
|
|
38339
38342
|
function ka(e) {
|
|
38340
38343
|
return dI(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
38341
38344
|
}
|
|
38342
|
-
function
|
|
38345
|
+
function Zt(e) {
|
|
38343
38346
|
var t;
|
|
38344
38347
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
38345
38348
|
}
|
|
@@ -38348,16 +38351,16 @@ function Cn(e) {
|
|
|
38348
38351
|
return (t = (dI(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
38349
38352
|
}
|
|
38350
38353
|
function dI(e) {
|
|
38351
|
-
return md() ? e instanceof Node || e instanceof
|
|
38354
|
+
return md() ? e instanceof Node || e instanceof Zt(e).Node : !1;
|
|
38352
38355
|
}
|
|
38353
38356
|
function Pr(e) {
|
|
38354
|
-
return md() ? e instanceof Element || e instanceof
|
|
38357
|
+
return md() ? e instanceof Element || e instanceof Zt(e).Element : !1;
|
|
38355
38358
|
}
|
|
38356
38359
|
function In(e) {
|
|
38357
|
-
return md() ? e instanceof HTMLElement || e instanceof
|
|
38360
|
+
return md() ? e instanceof HTMLElement || e instanceof Zt(e).HTMLElement : !1;
|
|
38358
38361
|
}
|
|
38359
38362
|
function gA(e) {
|
|
38360
|
-
return !md() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof
|
|
38363
|
+
return !md() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Zt(e).ShadowRoot;
|
|
38361
38364
|
}
|
|
38362
38365
|
function xl(e) {
|
|
38363
38366
|
const { overflow: t, overflowX: r, overflowY: n, display: i } = _r(e);
|
|
@@ -38398,7 +38401,7 @@ function oa(e) {
|
|
|
38398
38401
|
return /^(html|body|#document)$/.test(ka(e));
|
|
38399
38402
|
}
|
|
38400
38403
|
function _r(e) {
|
|
38401
|
-
return
|
|
38404
|
+
return Zt(e).getComputedStyle(e);
|
|
38402
38405
|
}
|
|
38403
38406
|
function gd(e) {
|
|
38404
38407
|
return Pr(e) ? {
|
|
@@ -38421,7 +38424,7 @@ function hI(e) {
|
|
|
38421
38424
|
function lm(e, t, r) {
|
|
38422
38425
|
var n;
|
|
38423
38426
|
t === void 0 && (t = []), r === void 0 && (r = !0);
|
|
38424
|
-
const i = hI(e), o = i === ((n = e.ownerDocument) == null ? void 0 : n.body), a =
|
|
38427
|
+
const i = hI(e), o = i === ((n = e.ownerDocument) == null ? void 0 : n.body), a = Zt(i);
|
|
38425
38428
|
if (o) {
|
|
38426
38429
|
const s = cm(a);
|
|
38427
38430
|
return t.concat(a, a.visualViewport || [], xl(i) ? i : [], s && r ? lm(s) : []);
|
|
@@ -38455,14 +38458,14 @@ function $o(e) {
|
|
|
38455
38458
|
}
|
|
38456
38459
|
var jse = /* @__PURE__ */ Jr(0);
|
|
38457
38460
|
function pI(e) {
|
|
38458
|
-
const t =
|
|
38461
|
+
const t = Zt(e);
|
|
38459
38462
|
return !Kg() || !t.visualViewport ? jse : {
|
|
38460
38463
|
x: t.visualViewport.offsetLeft,
|
|
38461
38464
|
y: t.visualViewport.offsetTop
|
|
38462
38465
|
};
|
|
38463
38466
|
}
|
|
38464
38467
|
function Use(e, t, r) {
|
|
38465
|
-
return t === void 0 && (t = !1), !r || t && r !==
|
|
38468
|
+
return t === void 0 && (t = !1), !r || t && r !== Zt(e) ? !1 : t;
|
|
38466
38469
|
}
|
|
38467
38470
|
function Gs(e, t, r, n) {
|
|
38468
38471
|
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
|
@@ -38472,11 +38475,11 @@ function Gs(e, t, r, n) {
|
|
|
38472
38475
|
const s = Use(o, r, n) ? pI(o) : Jr(0);
|
|
38473
38476
|
let l = (i.left + s.x) / a.x, c = (i.top + s.y) / a.y, u = i.width / a.x, d = i.height / a.y;
|
|
38474
38477
|
if (o) {
|
|
38475
|
-
const h =
|
|
38478
|
+
const h = Zt(o), f = n && Pr(n) ? Zt(n) : n;
|
|
38476
38479
|
let m = h, p = cm(m);
|
|
38477
38480
|
for (; p && n && f !== m; ) {
|
|
38478
38481
|
const v = $o(p), y = p.getBoundingClientRect(), x = _r(p), w = y.left + (p.clientLeft + parseFloat(x.paddingLeft)) * v.x, S = y.top + (p.clientTop + parseFloat(x.paddingTop)) * v.y;
|
|
38479
|
-
l *= v.x, c *= v.y, u *= v.x, d *= v.y, l += w, c += S, m =
|
|
38482
|
+
l *= v.x, c *= v.y, u *= v.x, d *= v.y, l += w, c += S, m = Zt(p), p = cm(m);
|
|
38480
38483
|
}
|
|
38481
38484
|
}
|
|
38482
38485
|
return au({
|
|
@@ -38534,7 +38537,7 @@ function Kse(e) {
|
|
|
38534
38537
|
}
|
|
38535
38538
|
var vA = 25;
|
|
38536
38539
|
function Xse(e, t) {
|
|
38537
|
-
const r =
|
|
38540
|
+
const r = Zt(e), n = Cn(e), i = r.visualViewport;
|
|
38538
38541
|
let o = n.clientWidth, a = n.clientHeight, s = 0, l = 0;
|
|
38539
38542
|
if (i) {
|
|
38540
38543
|
o = i.width, a = i.height;
|
|
@@ -38650,7 +38653,7 @@ function bA(e, t) {
|
|
|
38650
38653
|
return Cn(e) === r && (r = r.ownerDocument.body), r;
|
|
38651
38654
|
}
|
|
38652
38655
|
function yI(e, t) {
|
|
38653
|
-
const r =
|
|
38656
|
+
const r = Zt(e);
|
|
38654
38657
|
if (pd(e)) return r;
|
|
38655
38658
|
if (!In(e)) {
|
|
38656
38659
|
let i = ti(e);
|
|
@@ -38984,7 +38987,7 @@ var um = (e, t) => {
|
|
|
38984
38987
|
}, ble = ({ children: e, className: t, style: r }) => {
|
|
38985
38988
|
const { colorScheme: n, themeClass: i, inlineVarsStyle: o } = Qg();
|
|
38986
38989
|
return /* @__PURE__ */ g("div", {
|
|
38987
|
-
className:
|
|
38990
|
+
className: Jt(i, fle, t),
|
|
38988
38991
|
style: {
|
|
38989
38992
|
...o,
|
|
38990
38993
|
...r
|
|
@@ -39894,7 +39897,7 @@ var Kce = "brand-mark_glyph__mjr3u52", Xce = "brand-mark_label__mjr3u53", qce =
|
|
|
39894
39897
|
}), oue = (e, t, r = "full") => !e || t.width < 120 || t.height < 80 ? "hidden" : t.width < 200 || r === "mini" ? "mini" : "full", HI = ({ visual: e, placement: t }) => {
|
|
39895
39898
|
const r = Jce(Fe(ke().graph().get("fill")));
|
|
39896
39899
|
return /* @__PURE__ */ W("a", {
|
|
39897
|
-
className:
|
|
39900
|
+
className: Jt(Yce, e === "mini" && "brand-mark_miniRoot__mjr3u51", t === "footer" ? qce : Qce),
|
|
39898
39901
|
href: Uce,
|
|
39899
39902
|
target: "_blank",
|
|
39900
39903
|
rel: "noopener noreferrer",
|
|
@@ -39980,7 +39983,7 @@ var yue = 22, bue = ({ ref: e, headerRect: t, mode: r = wn.readonly, title: n, i
|
|
|
39980
39983
|
const { Title: u } = tv(), d = li[$g(r)].inlineTextEditing ? u : null, h = d !== null, f = i && (h || n !== null), m = a && (h || o !== null), p = c !== "hidden";
|
|
39981
39984
|
return !f && !m && !p ? null : /* @__PURE__ */ W("div", {
|
|
39982
39985
|
ref: e,
|
|
39983
|
-
className:
|
|
39986
|
+
className: Jt(vue, p && "header.renderer_withBrandMark__1y52e9e1"),
|
|
39984
39987
|
style: {
|
|
39985
39988
|
left: t.x,
|
|
39986
39989
|
top: t.y,
|
|
@@ -40083,10 +40086,10 @@ var Due = ({ segment: e, itemStyle: t }) => {
|
|
|
40083
40086
|
if (e.kind === "trendArrow") {
|
|
40084
40087
|
const i = WI(t, e.direction);
|
|
40085
40088
|
return /* @__PURE__ */ g("div", {
|
|
40086
|
-
className:
|
|
40089
|
+
className: Jt(Lue, e.direction === "down" && "headline-segment_trendArrowDown__1gz17pz3"),
|
|
40087
40090
|
style: {
|
|
40088
40091
|
color: i,
|
|
40089
|
-
backgroundColor: e.direction === "flat" ?
|
|
40092
|
+
backgroundColor: e.direction === "flat" ? qt(B.textPrimary, 0.1) : qt(i, 0.2)
|
|
40090
40093
|
},
|
|
40091
40094
|
children: e.direction === "flat" ? /* @__PURE__ */ g(Cue, {
|
|
40092
40095
|
size: "xs",
|
|
@@ -40246,7 +40249,7 @@ var Que = "direct-labels_item__1a6kdls2";
|
|
|
40246
40249
|
var Jue = 8, Zue = 16, ede = 2, tde = ({ indexedLegends: e, containerRect: t }) => {
|
|
40247
40250
|
const r = ce(mE, ke()), n = Qn(r), { placements: i, hasOverlap: o } = rde(e, t, n), a = di(), s = St(r);
|
|
40248
40251
|
if (i.length === 0) return null;
|
|
40249
|
-
const l = o ? Zue : Jue, c = l - ede, u =
|
|
40252
|
+
const l = o ? Zue : Jue, c = l - ede, u = Ut(r.dashArray, r.strokeWidth);
|
|
40250
40253
|
return /* @__PURE__ */ W(iv, {
|
|
40251
40254
|
as: "div",
|
|
40252
40255
|
className: que,
|
|
@@ -40264,7 +40267,7 @@ var Jue = 8, Zue = 16, ede = 2, tde = ({ indexedLegends: e, containerRect: t })
|
|
|
40264
40267
|
dashArray: u
|
|
40265
40268
|
}, d.payload.key))
|
|
40266
40269
|
}), i.map((d) => /* @__PURE__ */ g("span", {
|
|
40267
|
-
className:
|
|
40270
|
+
className: Jt(Que, a && "direct-labels_hitTestableItem__1a6kdls3"),
|
|
40268
40271
|
style: {
|
|
40269
40272
|
...s,
|
|
40270
40273
|
left: l,
|
|
@@ -40451,10 +40454,10 @@ var pde = "pill-content_bubble__1rqnt0m0", kh = "\0", gde = (e, t) => {
|
|
|
40451
40454
|
const v = t === "left" || t === "right", y = h === null ? [] : Array.from({ length: h }, (x, w) => h - w);
|
|
40452
40455
|
return /* @__PURE__ */ W(he, { children: [/* @__PURE__ */ W("div", {
|
|
40453
40456
|
ref: m.setReference,
|
|
40454
|
-
className:
|
|
40457
|
+
className: Jt(lde, h !== null && v && ude[h], h !== null && !v && cde[h]),
|
|
40455
40458
|
...DA,
|
|
40456
40459
|
children: [h !== null && y.map((x) => /* @__PURE__ */ g("span", {
|
|
40457
|
-
className:
|
|
40460
|
+
className: Jt("legend-overflow_triggerGhost__h68bv36", v ? hde[h] : dde[h]),
|
|
40458
40461
|
style: {
|
|
40459
40462
|
...f,
|
|
40460
40463
|
...Sde(x, v)
|
|
@@ -40489,7 +40492,7 @@ var pde = "pill-content_bubble__1rqnt0m0", kh = "\0", gde = (e, t) => {
|
|
|
40489
40492
|
children: /* @__PURE__ */ g("ul", {
|
|
40490
40493
|
className: "legend-overflow_popoverList__h68bv3e",
|
|
40491
40494
|
children: e.map((x) => /* @__PURE__ */ g("li", {
|
|
40492
|
-
className:
|
|
40495
|
+
className: Jt("legend-overflow_popoverItem__h68bv3f", l && "legend-overflow_hitTestablePopoverItem__h68bv3g"),
|
|
40493
40496
|
style: { gap: a.item.gap },
|
|
40494
40497
|
...l ? nv(x.address) : void 0,
|
|
40495
40498
|
children: /* @__PURE__ */ g(ZI, { pill: x })
|
|
@@ -40558,14 +40561,14 @@ var Cde = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }
|
|
|
40558
40561
|
if (h.length === 0) return null;
|
|
40559
40562
|
const x = h.slice(0, v.visibleCount), w = h.slice(v.visibleCount), S = v.hasOverflow && w.length > 0, P = qI(l.item, y(l.item.fill));
|
|
40560
40563
|
return /* @__PURE__ */ W("div", {
|
|
40561
|
-
className:
|
|
40564
|
+
className: Jt(kde[p], Tde, {
|
|
40562
40565
|
[Ede]: f,
|
|
40563
40566
|
[Mde]: !f,
|
|
40564
40567
|
[Pde[e === "left" ? "left" : "right"]]: f
|
|
40565
40568
|
}),
|
|
40566
40569
|
style: { gap: s.gap },
|
|
40567
40570
|
children: [x.map((A) => /* @__PURE__ */ g("div", {
|
|
40568
|
-
className:
|
|
40571
|
+
className: Jt(_de, d && "pill-legends_hitTestableItem__1unrqh49"),
|
|
40569
40572
|
style: {
|
|
40570
40573
|
...P,
|
|
40571
40574
|
gap: l.item.gap
|
|
@@ -40655,7 +40658,7 @@ var Cde = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }
|
|
|
40655
40658
|
}) });
|
|
40656
40659
|
}), Bde = (e, t, r) => {
|
|
40657
40660
|
if (e.type === "cartesian") return mK(e, t);
|
|
40658
|
-
const n = ya(r), i =
|
|
40661
|
+
const n = ya(r), i = fr(t.x, e.innerRadius, n), o = fr(t.x, 1, n);
|
|
40659
40662
|
return {
|
|
40660
40663
|
x1: i.x,
|
|
40661
40664
|
y1: i.y,
|
|
@@ -40856,7 +40859,7 @@ var Cde = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }
|
|
|
40856
40859
|
y.setHoverState(t.query(w, { tolerance: n })), y.setTooltipAnchor(null);
|
|
40857
40860
|
}, c = () => {
|
|
40858
40861
|
const m = r.getState();
|
|
40859
|
-
m.hover.primary === null && m.tooltipAnchor === null || (m.setHoverState(
|
|
40862
|
+
m.hover.primary === null && m.tooltipAnchor === null || (m.setHoverState(ar), m.setTooltipAnchor(null));
|
|
40860
40863
|
}, u = (m) => {
|
|
40861
40864
|
const p = r.getState();
|
|
40862
40865
|
if (p.pointerRegions.length === 0) return !1;
|
|
@@ -41255,7 +41258,7 @@ var Cde = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }
|
|
|
41255
41258
|
};
|
|
41256
41259
|
}, khe = (e) => {
|
|
41257
41260
|
if (e.fill === "transparent") return {};
|
|
41258
|
-
const t = Fe(e.fill), r = e.fillAlpha < 1 ?
|
|
41261
|
+
const t = Fe(e.fill), r = e.fillAlpha < 1 ? qt(t, e.fillAlpha) : t;
|
|
41259
41262
|
if (e.strokeWidth <= 0) return { backgroundColor: r };
|
|
41260
41263
|
const n = e.stroke ?? Ore(t, She);
|
|
41261
41264
|
return {
|
|
@@ -41867,7 +41870,7 @@ var Nhe = (e, t, r, n) => t !== "comment" ? r : gp(r, 140, (i) => e.measureText(
|
|
|
41867
41870
|
...p,
|
|
41868
41871
|
stroke: a.stroke,
|
|
41869
41872
|
strokeWidth: a.strokeWidth,
|
|
41870
|
-
strokeDasharray:
|
|
41873
|
+
strokeDasharray: Ut(a.dashArray, a.strokeWidth),
|
|
41871
41874
|
pointerEvents: s ? "none" : void 0
|
|
41872
41875
|
}), /* @__PURE__ */ g(hfe, {
|
|
41873
41876
|
edge: e.position,
|
|
@@ -41964,7 +41967,7 @@ var Nhe = (e, t, r, n) => t !== "comment" ? r : gp(r, 140, (i) => e.measureText(
|
|
|
41964
41967
|
if (u.geometry !== "linear" || !u.gridVisible) return null;
|
|
41965
41968
|
const d = Xe(u.scaleAestheticKey) === "x" ? a : s;
|
|
41966
41969
|
if (d.strokeWidth <= 0) return null;
|
|
41967
|
-
const h = u.position === "bottom" || u.position === "top", f = xfe(d), m =
|
|
41970
|
+
const h = u.position === "bottom" || u.position === "top", f = xfe(d), m = Ut(d.dashArray, f);
|
|
41968
41971
|
return /* @__PURE__ */ g("g", { children: u.ticks.map((p, v) => {
|
|
41969
41972
|
const y = Afe(h, p.position);
|
|
41970
41973
|
if (y !== null && t[y] > 0) return null;
|
|
@@ -42027,7 +42030,7 @@ var Nhe = (e, t, r, n) => t !== "comment" ? r : gp(r, 140, (i) => e.measureText(
|
|
|
42027
42030
|
d: Tfe(o.segments),
|
|
42028
42031
|
fill: "none",
|
|
42029
42032
|
stroke: o.stroke,
|
|
42030
|
-
strokeDasharray:
|
|
42033
|
+
strokeDasharray: Ut(o.dashArray, o.strokeWidth),
|
|
42031
42034
|
strokeWidth: o.strokeWidth,
|
|
42032
42035
|
...nR
|
|
42033
42036
|
}, a))
|
|
@@ -42075,13 +42078,13 @@ var iR = (e, t) => {
|
|
|
42075
42078
|
children: [s?.isVisible && d.map(({ tick: f, tickIndex: m, radiusNorm: p }) => /* @__PURE__ */ g($A, {
|
|
42076
42079
|
scaleAestheticKey: s.scaleAestheticKey,
|
|
42077
42080
|
tickIndex: m,
|
|
42078
|
-
placement: WA(
|
|
42081
|
+
placement: WA(fr(l, p, o), "middle"),
|
|
42079
42082
|
label: f.formattedLabel,
|
|
42080
42083
|
labelStyle: h(s),
|
|
42081
42084
|
isHitTestable: n
|
|
42082
42085
|
}, `radial-label-${m}`)), a.isVisible && a.ticks.map((f, m) => {
|
|
42083
42086
|
if (f.position >= 1 - 1e-9) return null;
|
|
42084
|
-
const p = c(f.position), v =
|
|
42087
|
+
const p = c(f.position), v = fr(p, (o.radius + 8) / o.radius, o);
|
|
42085
42088
|
return /* @__PURE__ */ g($A, {
|
|
42086
42089
|
scaleAestheticKey: a.scaleAestheticKey,
|
|
42087
42090
|
tickIndex: m,
|
|
@@ -42169,7 +42172,7 @@ var iR = (e, t) => {
|
|
|
42169
42172
|
}),
|
|
42170
42173
|
l.gridVisible && l.ticks.map((f, m) => {
|
|
42171
42174
|
if (f.position >= 1 - 1e-9) return null;
|
|
42172
|
-
const p = d(f.position), v =
|
|
42175
|
+
const p = d(f.position), v = fr(p, u, s), y = fr(p, 1, s);
|
|
42173
42176
|
return /* @__PURE__ */ g(_h, {
|
|
42174
42177
|
axis: Xe(l.scaleAestheticKey),
|
|
42175
42178
|
lineStyle: o,
|
|
@@ -42747,14 +42750,14 @@ var ime = [], ome = ({ graphChrome: e, isEditable: t, mode: r, style: n, content
|
|
|
42747
42750
|
]), D = t && p === "transparent";
|
|
42748
42751
|
return /* @__PURE__ */ g("div", {
|
|
42749
42752
|
"data-testid": "graph-wrapper",
|
|
42750
|
-
className:
|
|
42753
|
+
className: Jt(hle, a),
|
|
42751
42754
|
style: S,
|
|
42752
42755
|
children: /* @__PURE__ */ W("div", {
|
|
42753
42756
|
ref: i,
|
|
42754
42757
|
"data-testid": "graph-inner",
|
|
42755
42758
|
"data-graph-mode": r,
|
|
42756
42759
|
tabIndex: t ? 0 : void 0,
|
|
42757
|
-
className:
|
|
42760
|
+
className: Jt(mle, {
|
|
42758
42761
|
[ple]: t,
|
|
42759
42762
|
[gle]: D,
|
|
42760
42763
|
[nme]: w
|
|
@@ -42853,7 +42856,7 @@ var ime = [], ome = ({ graphChrome: e, isEditable: t, mode: r, style: n, content
|
|
|
42853
42856
|
textMeasurer: j,
|
|
42854
42857
|
metrics: le,
|
|
42855
42858
|
overrides: yne()
|
|
42856
|
-
}),
|
|
42859
|
+
}), nr = G(() => VK(ne), [ne]), lt = gce({
|
|
42857
42860
|
measurer: st,
|
|
42858
42861
|
axes: s,
|
|
42859
42862
|
numberFormat: u,
|
|
@@ -42867,7 +42870,7 @@ var ime = [], ome = ({ graphChrome: e, isEditable: t, mode: r, style: n, content
|
|
|
42867
42870
|
layers: c,
|
|
42868
42871
|
coordSystem: f,
|
|
42869
42872
|
overflowStrategy: y,
|
|
42870
|
-
panelBorder:
|
|
42873
|
+
panelBorder: nr,
|
|
42871
42874
|
padding: ce(uX, X),
|
|
42872
42875
|
margins: ce(dX, X)
|
|
42873
42876
|
}), ht = G(() => !lt || !at || !st ? null : yz({
|
|
@@ -42884,7 +42887,7 @@ var ime = [], ome = ({ graphChrome: e, isEditable: t, mode: r, style: n, content
|
|
|
42884
42887
|
oe.gap
|
|
42885
42888
|
]);
|
|
42886
42889
|
if (!lt) return null;
|
|
42887
|
-
const { layout: Ce, formattedAxes: Pt, plotBottomY:
|
|
42890
|
+
const { layout: Ce, formattedAxes: Pt, plotBottomY: zt } = lt, Ml = Ce.footer.height > 0;
|
|
42888
42891
|
return /* @__PURE__ */ g(KI.Provider, {
|
|
42889
42892
|
value: a,
|
|
42890
42893
|
children: /* @__PURE__ */ g(yle, {
|
|
@@ -42925,14 +42928,14 @@ var ime = [], ome = ({ graphChrome: e, isEditable: t, mode: r, style: n, content
|
|
|
42925
42928
|
/* @__PURE__ */ g(Kfe, {
|
|
42926
42929
|
formattedAxes: Pt,
|
|
42927
42930
|
plotRect: Ce.plot,
|
|
42928
|
-
panelBorder:
|
|
42931
|
+
panelBorder: nr,
|
|
42929
42932
|
panelFrameRect: Ce.panelFrame,
|
|
42930
42933
|
panelRect: Ce.panel,
|
|
42931
42934
|
axisRects: Ce.axes,
|
|
42932
42935
|
axisLabelRects: Ce.axisLabels,
|
|
42933
42936
|
shouldAnimateTransitions: w,
|
|
42934
42937
|
formattingLocale: D ?? d,
|
|
42935
|
-
plotBottomY:
|
|
42938
|
+
plotBottomY: zt,
|
|
42936
42939
|
isFooterChromeReserved: Ml,
|
|
42937
42940
|
isEditable: R,
|
|
42938
42941
|
showAnnotations: T.annotations
|
|
@@ -43123,7 +43126,7 @@ export {
|
|
|
43123
43126
|
mU as createSpec,
|
|
43124
43127
|
Tpe as createStableBandKeyGenerator,
|
|
43125
43128
|
SY as createStableCellKeyGenerator,
|
|
43126
|
-
|
|
43129
|
+
rr as createStableKeyGenerator,
|
|
43127
43130
|
kk as createStyleResolver,
|
|
43128
43131
|
dt as createValueFormatter,
|
|
43129
43132
|
vle as darkTheme,
|
|
@@ -43135,7 +43138,7 @@ export {
|
|
|
43135
43138
|
Zm as getAngleExtent,
|
|
43136
43139
|
al as getBarRectBounds,
|
|
43137
43140
|
PT as getColor,
|
|
43138
|
-
|
|
43141
|
+
tr as getGroup,
|
|
43139
43142
|
Zi as getGroupVariables,
|
|
43140
43143
|
_T as getLineType,
|
|
43141
43144
|
Lu as getPaintedTileRect,
|
|
@@ -43148,7 +43151,7 @@ export {
|
|
|
43148
43151
|
xe as getX,
|
|
43149
43152
|
U2 as getXBand,
|
|
43150
43153
|
Ot as getXMax,
|
|
43151
|
-
|
|
43154
|
+
er as getXMin,
|
|
43152
43155
|
pe as getY,
|
|
43153
43156
|
z2 as getYBand,
|
|
43154
43157
|
ot as getYMax,
|
|
@@ -43180,7 +43183,7 @@ export {
|
|
|
43180
43183
|
IM as styles,
|
|
43181
43184
|
Fe as toPaintColor,
|
|
43182
43185
|
Z as toPercent,
|
|
43183
|
-
|
|
43186
|
+
Ut as toStrokeDasharray,
|
|
43184
43187
|
xpe as toViewBoxX,
|
|
43185
43188
|
Tr as toViewBoxY,
|
|
43186
43189
|
re as token,
|