@kong-ui-public/analytics-chart 10.19.5 → 10.19.6-pr.3502.4476dba92.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vitals-chart.es.js +470 -470
- package/package.json +3 -3
package/dist/vitals-chart.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var km = Object.defineProperty;
|
|
2
2
|
var Om = (n, t, e) => t in n ? km(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
3
|
var P = (n, t, e) => Om(n, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
-
import { computed as N, getCurrentInstance as lc, onUnmounted as ii, shallowRef as Xe, onMounted as si, onBeforeUnmount as $h, watch as oe, inject as lr, nextTick as Yh, isRef as Cm, toRefs as Am, customRef as Pm, toValue as Dt, getCurrentScope as
|
|
4
|
+
import { computed as N, getCurrentInstance as lc, onUnmounted as ii, shallowRef as Xe, onMounted as si, onBeforeUnmount as $h, watch as oe, inject as lr, nextTick as Yh, isRef as Cm, toRefs as Am, customRef as Pm, toValue as Dt, getCurrentScope as Rm, onScopeDispose as Em, ref as qt, unref as Q, watchEffect as Kc, defineComponent as he, openBlock as Z, createElementBlock as ct, createElementVNode as ut, toDisplayString as dt, createVNode as Zt, Fragment as Yn, renderList as xi, normalizeClass as Fe, normalizeStyle as Ti, createBlock as Lt, createCommentVNode as Ft, resolveComponent as Ee, createSlots as jh, withCtx as Ht, useTemplateRef as Ji, reactive as cr, toRef as Mt, Teleport as Vh, h as Dl, toRaw as kl, version as Im, isProxy as qh, provide as Xc, createTextVNode as Ie, resolveDynamicComponent as Lm, renderSlot as ss, withKeys as Nm } from "vue";
|
|
5
5
|
import { createI18n as Fm, i18nTComponent as zm } from "@kong-ui-public/i18n";
|
|
6
6
|
import { CloseIcon as Um, DragIcon as Hm, WarningIcon as Bm, EqualIcon as Wm, InfoIcon as $m } from "@kong/icons";
|
|
7
7
|
import { buildDeltaMapping as Ym, calculateChange as jm, changePolarity as Vm, defineIcon as qm, metricChange as Zc, useTrendRange as Gm } from "@kong-ui-public/analytics-metric-provider";
|
|
@@ -443,7 +443,7 @@ function Pp(n, t, e) {
|
|
|
443
443
|
function Kh(n) {
|
|
444
444
|
return (n % 360 + 360) % 360;
|
|
445
445
|
}
|
|
446
|
-
function
|
|
446
|
+
function Rp(n) {
|
|
447
447
|
const t = Dp.exec(n);
|
|
448
448
|
let e = 255, i;
|
|
449
449
|
if (!t)
|
|
@@ -457,7 +457,7 @@ function Ep(n) {
|
|
|
457
457
|
a: e
|
|
458
458
|
};
|
|
459
459
|
}
|
|
460
|
-
function
|
|
460
|
+
function Ep(n, t) {
|
|
461
461
|
var e = cc(n);
|
|
462
462
|
e[0] = Kh(e[0] + t), e = dc(e), n.r = e[0], n.g = e[1], n.b = e[2];
|
|
463
463
|
}
|
|
@@ -710,7 +710,7 @@ function eu(n) {
|
|
|
710
710
|
return Array.isArray(n) ? n.length >= 3 && (t = { r: n[0], g: n[1], b: n[2], a: 255 }, n.length > 3 && (t.a = Xn(n[3]))) : (t = Xh(n, { r: 0, g: 0, b: 0, a: 1 }), t.a = Xn(t.a)), t;
|
|
711
711
|
}
|
|
712
712
|
function Bp(n) {
|
|
713
|
-
return n.charAt(0) === "r" ? zp(n) :
|
|
713
|
+
return n.charAt(0) === "r" ? zp(n) : Rp(n);
|
|
714
714
|
}
|
|
715
715
|
class ur {
|
|
716
716
|
constructor(t) {
|
|
@@ -786,7 +786,7 @@ class ur {
|
|
|
786
786
|
return Kr(this._rgb, 1, -t), this;
|
|
787
787
|
}
|
|
788
788
|
rotate(t) {
|
|
789
|
-
return
|
|
789
|
+
return Ep(this._rgb, t), this;
|
|
790
790
|
}
|
|
791
791
|
}
|
|
792
792
|
/*!
|
|
@@ -823,11 +823,11 @@ function ht(n, t) {
|
|
|
823
823
|
return typeof n > "u" ? t : n;
|
|
824
824
|
}
|
|
825
825
|
const $p = (n, t) => typeof n == "string" && n.endsWith("%") ? parseFloat(n) / 100 : +n / t, Zh = (n, t) => typeof n == "string" && n.endsWith("%") ? parseFloat(n) / 100 * t : +n;
|
|
826
|
-
function
|
|
826
|
+
function Rt(n, t, e) {
|
|
827
827
|
if (n && typeof n.call == "function")
|
|
828
828
|
return n.apply(e, t);
|
|
829
829
|
}
|
|
830
|
-
function
|
|
830
|
+
function Et(n, t, e, i) {
|
|
831
831
|
let s, r, a;
|
|
832
832
|
if (Ct(n))
|
|
833
833
|
for (r = n.length, s = 0; s < r; s++)
|
|
@@ -1732,7 +1732,7 @@ function bc(n, t = [
|
|
|
1732
1732
|
* A trap for getting property values.
|
|
1733
1733
|
*/
|
|
1734
1734
|
get(o, l) {
|
|
1735
|
-
return df(o, l, () =>
|
|
1735
|
+
return df(o, l, () => Ey(l, t, n, o));
|
|
1736
1736
|
},
|
|
1737
1737
|
/**
|
|
1738
1738
|
* A trap for Object.getOwnPropertyDescriptor.
|
|
@@ -1901,20 +1901,20 @@ function vc(n, t, e, i) {
|
|
|
1901
1901
|
let l = du(o, a, e, r || e, i);
|
|
1902
1902
|
return l === null || typeof r < "u" && r !== e && (l = du(o, a, r, l, i), l === null) ? !1 : bc(Array.from(o), [
|
|
1903
1903
|
""
|
|
1904
|
-
], s, r, () =>
|
|
1904
|
+
], s, r, () => Ry(t, e, i));
|
|
1905
1905
|
}
|
|
1906
1906
|
function du(n, t, e, i, s) {
|
|
1907
1907
|
for (; e; )
|
|
1908
1908
|
e = Py(n, t, e, i, s);
|
|
1909
1909
|
return e;
|
|
1910
1910
|
}
|
|
1911
|
-
function
|
|
1911
|
+
function Ry(n, t, e) {
|
|
1912
1912
|
const i = n._getTarget();
|
|
1913
1913
|
t in i || (i[t] = {});
|
|
1914
1914
|
const s = i[t];
|
|
1915
1915
|
return Ct(s) && xt(e) ? e : s || {};
|
|
1916
1916
|
}
|
|
1917
|
-
function
|
|
1917
|
+
function Ey(n, t, e, i) {
|
|
1918
1918
|
let s;
|
|
1919
1919
|
for (const r of t)
|
|
1920
1920
|
if (s = ff(Dy(r, n), e), typeof s < "u")
|
|
@@ -2242,7 +2242,7 @@ function _f(n, t, e) {
|
|
|
2242
2242
|
];
|
|
2243
2243
|
const { property: i, start: s, end: r } = e, a = t.length, { compare: o, between: l, normalize: c } = bf(i), { start: u, end: d, loop: h, style: f } = Jy(n, t, e), g = [];
|
|
2244
2244
|
let y = !1, v = null, w, S, D;
|
|
2245
|
-
const k = () => l(s, D, w) && o(s, D) !== 0,
|
|
2245
|
+
const k = () => l(s, D, w) && o(s, D) !== 0, R = () => o(r, w) === 0 || l(r, D, w), A = () => y || k(), O = () => !y || R();
|
|
2246
2246
|
for (let m = u, b = u; m <= d; ++m)
|
|
2247
2247
|
S = t[m % a], !S.skip && (w = c(S[i]), w !== D && (y = l(w, s, r), v === null && A() && (v = o(w, s) === 0 ? m : b), v !== null && O() && (g.push(mu({
|
|
2248
2248
|
start: v,
|
|
@@ -3370,8 +3370,8 @@ class tr extends rn {
|
|
|
3370
3370
|
let w = e.getPixelForValue(v);
|
|
3371
3371
|
if (this.chart.getDataVisibility(t) ? g = e.getPixelForValue(h + f) : g = w, y = g - w, Math.abs(y) < a) {
|
|
3372
3372
|
y = Mb(y, e, o) * a, d === o && (w -= y / 2);
|
|
3373
|
-
const S = e.getPixelForDecimal(0), D = e.getPixelForDecimal(1), k = Math.min(S, D),
|
|
3374
|
-
w = Math.max(Math.min(w,
|
|
3373
|
+
const S = e.getPixelForDecimal(0), D = e.getPixelForDecimal(1), k = Math.min(S, D), R = Math.max(S, D);
|
|
3374
|
+
w = Math.max(Math.min(w, R), k), g = w + y, i && !u && (l._stacks[e.axis]._visualValues[s] = e.getValueForPixel(g) - e.getValueForPixel(w));
|
|
3375
3375
|
}
|
|
3376
3376
|
if (w === e.getPixelForValue(o)) {
|
|
3377
3377
|
const S = fn(y) * e.getLineWidthForValue(o) / 2;
|
|
@@ -3528,7 +3528,7 @@ P(ua, "id", "bubble"), P(ua, "defaults", {
|
|
|
3528
3528
|
function Ab(n, t, e) {
|
|
3529
3529
|
let i = 1, s = 1, r = 0, a = 0;
|
|
3530
3530
|
if (t < Nt) {
|
|
3531
|
-
const o = n, l = o + t, c = Math.cos(o), u = Math.sin(o), d = Math.cos(l), h = Math.sin(l), f = (D, k,
|
|
3531
|
+
const o = n, l = o + t, c = Math.cos(o), u = Math.sin(o), d = Math.cos(l), h = Math.sin(l), f = (D, k, R) => hr(D, o, l, !0) ? 1 : Math.max(k, k * e, R, R * e), g = (D, k, R) => hr(D, o, l, !0) ? -1 : Math.min(k, k * e, R, R * e), y = f(0, c, d), v = f(zt, u, h), w = g(_t, c, d), S = g(_t + zt, u, h);
|
|
3532
3532
|
i = (y - w) / 2, s = (v - S) / 2, r = -(y + w) / 2, a = -(v + S) / 2;
|
|
3533
3533
|
}
|
|
3534
3534
|
return {
|
|
@@ -3578,8 +3578,8 @@ class An extends rn {
|
|
|
3578
3578
|
};
|
|
3579
3579
|
}
|
|
3580
3580
|
update(t) {
|
|
3581
|
-
const e = this.chart, { chartArea: i } = e, s = this._cachedMeta, r = s.data, a = this.getMaxBorderWidth() + this.getMaxOffset(r) + this.options.spacing, o = Math.max((Math.min(i.width, i.height) - a) / 2, 0), l = Math.min($p(this.options.cutout, o), 1), c = this._getRingWeight(this.index), { circumference: u, rotation: d } = this._getRotationExtents(), { ratioX: h, ratioY: f, offsetX: g, offsetY: y } = Ab(d, u, l), v = (i.width - a) / h, w = (i.height - a) / f, S = Math.max(Math.min(v, w) / 2, 0), D = Zh(this.options.radius, S), k = Math.max(D * l, 0),
|
|
3582
|
-
this.offsetX = g * D, this.offsetY = y * D, s.total = this.calculateTotal(), this.outerRadius = D -
|
|
3581
|
+
const e = this.chart, { chartArea: i } = e, s = this._cachedMeta, r = s.data, a = this.getMaxBorderWidth() + this.getMaxOffset(r) + this.options.spacing, o = Math.max((Math.min(i.width, i.height) - a) / 2, 0), l = Math.min($p(this.options.cutout, o), 1), c = this._getRingWeight(this.index), { circumference: u, rotation: d } = this._getRotationExtents(), { ratioX: h, ratioY: f, offsetX: g, offsetY: y } = Ab(d, u, l), v = (i.width - a) / h, w = (i.height - a) / f, S = Math.max(Math.min(v, w) / 2, 0), D = Zh(this.options.radius, S), k = Math.max(D * l, 0), R = (D - k) / this._getVisibleDatasetWeightTotal();
|
|
3582
|
+
this.offsetX = g * D, this.offsetY = y * D, s.total = this.calculateTotal(), this.outerRadius = D - R * this._getRingWeightOffset(this.index), this.innerRadius = Math.max(this.outerRadius - R * c, 0), this.updateElements(r, 0, r.length, t);
|
|
3583
3583
|
}
|
|
3584
3584
|
_circumference(t, e) {
|
|
3585
3585
|
const i = this.options, s = this._cachedMeta, r = this._getCircumference();
|
|
@@ -3591,7 +3591,7 @@ class An extends rn {
|
|
|
3591
3591
|
for (S = 0; S < e; ++S)
|
|
3592
3592
|
w += this._circumference(S, r);
|
|
3593
3593
|
for (S = e; S < e + i; ++S) {
|
|
3594
|
-
const D = this._circumference(S, r), k = t[S],
|
|
3594
|
+
const D = this._circumference(S, r), k = t[S], R = {
|
|
3595
3595
|
x: u + this.offsetX,
|
|
3596
3596
|
y: d + this.offsetY,
|
|
3597
3597
|
startAngle: w,
|
|
@@ -3600,7 +3600,7 @@ class An extends rn {
|
|
|
3600
3600
|
outerRadius: g,
|
|
3601
3601
|
innerRadius: f
|
|
3602
3602
|
};
|
|
3603
|
-
v && (
|
|
3603
|
+
v && (R.options = y || this.resolveDataElementOptions(S, k.active ? "active" : s)), w += D, this.updateElement(k, S, R, s);
|
|
3604
3604
|
}
|
|
3605
3605
|
}
|
|
3606
3606
|
calculateTotal() {
|
|
@@ -3744,14 +3744,14 @@ class er extends rn {
|
|
|
3744
3744
|
updateElements(t, e, i, s) {
|
|
3745
3745
|
const r = s === "reset", { iScale: a, vScale: o, _stacked: l, _dataset: c } = this._cachedMeta, { sharedOptions: u, includeOptions: d } = this._getSharedOptions(e, s), h = a.axis, f = o.axis, { spanGaps: g, segment: y } = this.options, v = ti(g) ? g : Number.POSITIVE_INFINITY, w = this.chart._animationsDisabled || r || s === "none", S = e + i, D = t.length;
|
|
3746
3746
|
let k = e > 0 && this.getParsed(e - 1);
|
|
3747
|
-
for (let
|
|
3748
|
-
const A = t[
|
|
3749
|
-
if (
|
|
3747
|
+
for (let R = 0; R < D; ++R) {
|
|
3748
|
+
const A = t[R], O = w ? A : {};
|
|
3749
|
+
if (R < e || R >= S) {
|
|
3750
3750
|
O.skip = !0;
|
|
3751
3751
|
continue;
|
|
3752
3752
|
}
|
|
3753
|
-
const m = this.getParsed(
|
|
3754
|
-
O.skip = isNaN(_) || isNaN(M) || b, O.stop =
|
|
3753
|
+
const m = this.getParsed(R), b = ft(m[f]), _ = O[h] = a.getPixelForValue(m[h], R), M = O[f] = r || b ? o.getBasePixel() : o.getPixelForValue(l ? this.applyStack(o, m, l) : m[f], R);
|
|
3754
|
+
O.skip = isNaN(_) || isNaN(M) || b, O.stop = R > 0 && Math.abs(m[h] - k[h]) > v, y && (O.parsed = m, O.raw = c.data[R]), d && (O.options = u || this.resolveDataElementOptions(R, A.active ? "active" : s)), w || this.updateElement(A, R, O, s), k = m;
|
|
3755
3755
|
}
|
|
3756
3756
|
}
|
|
3757
3757
|
getMaxOverflow() {
|
|
@@ -3915,9 +3915,9 @@ P(nr, "id", "polarArea"), P(nr, "defaults", {
|
|
|
3915
3915
|
}
|
|
3916
3916
|
}
|
|
3917
3917
|
});
|
|
3918
|
-
class
|
|
3918
|
+
class Rl extends An {
|
|
3919
3919
|
}
|
|
3920
|
-
P(
|
|
3920
|
+
P(Rl, "id", "pie"), P(Rl, "defaults", {
|
|
3921
3921
|
cutout: 0,
|
|
3922
3922
|
rotation: 0,
|
|
3923
3923
|
circumference: 360,
|
|
@@ -4011,8 +4011,8 @@ class ha extends rn {
|
|
|
4011
4011
|
const r = s === "reset", { iScale: a, vScale: o, _stacked: l, _dataset: c } = this._cachedMeta, u = this.resolveDataElementOptions(e, s), d = this.getSharedOptions(u), h = this.includeOptions(s, d), f = a.axis, g = o.axis, { spanGaps: y, segment: v } = this.options, w = ti(y) ? y : Number.POSITIVE_INFINITY, S = this.chart._animationsDisabled || r || s === "none";
|
|
4012
4012
|
let D = e > 0 && this.getParsed(e - 1);
|
|
4013
4013
|
for (let k = e; k < e + i; ++k) {
|
|
4014
|
-
const
|
|
4015
|
-
O.skip = isNaN(b) || isNaN(_) || m, O.stop = k > 0 && Math.abs(A[f] - D[f]) > w, v && (O.parsed = A, O.raw = c.data[k]), h && (O.options = d || this.resolveDataElementOptions(k,
|
|
4014
|
+
const R = t[k], A = this.getParsed(k), O = S ? R : {}, m = ft(A[g]), b = O[f] = a.getPixelForValue(A[f], k), _ = O[g] = r || m ? o.getBasePixel() : o.getPixelForValue(l ? this.applyStack(o, A, l) : A[g], k);
|
|
4015
|
+
O.skip = isNaN(b) || isNaN(_) || m, O.stop = k > 0 && Math.abs(A[f] - D[f]) > w, v && (O.parsed = A, O.raw = c.data[k]), h && (O.options = d || this.resolveDataElementOptions(k, R.active ? "active" : s)), S || this.updateElement(R, k, O, s), D = A;
|
|
4016
4016
|
}
|
|
4017
4017
|
this.updateSharedOptions(d, s, u);
|
|
4018
4018
|
}
|
|
@@ -4055,7 +4055,7 @@ var Pb = /* @__PURE__ */ Object.freeze({
|
|
|
4055
4055
|
BubbleController: ua,
|
|
4056
4056
|
DoughnutController: An,
|
|
4057
4057
|
LineController: er,
|
|
4058
|
-
PieController:
|
|
4058
|
+
PieController: Rl,
|
|
4059
4059
|
PolarAreaController: nr,
|
|
4060
4060
|
RadarController: da,
|
|
4061
4061
|
ScatterController: ha
|
|
@@ -4109,7 +4109,7 @@ class Tc {
|
|
|
4109
4109
|
var Tf = {
|
|
4110
4110
|
_date: Tc
|
|
4111
4111
|
};
|
|
4112
|
-
function
|
|
4112
|
+
function Rb(n, t, e, i) {
|
|
4113
4113
|
const { controller: s, data: r, _sorted: a } = n, o = s._cachedMeta.iScale, l = n.dataset && n.dataset.options ? n.dataset.options.spanGaps : null;
|
|
4114
4114
|
if (o && t === o.axis && t !== "r" && a && r.length) {
|
|
4115
4115
|
const c = o._reversePixels ? ey : On;
|
|
@@ -4143,14 +4143,14 @@ function Eb(n, t, e, i) {
|
|
|
4143
4143
|
function wr(n, t, e, i, s) {
|
|
4144
4144
|
const r = n.getSortedVisibleDatasetMetas(), a = e[t];
|
|
4145
4145
|
for (let o = 0, l = r.length; o < l; ++o) {
|
|
4146
|
-
const { index: c, data: u } = r[o], { lo: d, hi: h } =
|
|
4146
|
+
const { index: c, data: u } = r[o], { lo: d, hi: h } = Rb(r[o], t, a, s);
|
|
4147
4147
|
for (let f = d; f <= h; ++f) {
|
|
4148
4148
|
const g = u[f];
|
|
4149
4149
|
g.skip || i(g, c, f);
|
|
4150
4150
|
}
|
|
4151
4151
|
}
|
|
4152
4152
|
}
|
|
4153
|
-
function
|
|
4153
|
+
function Eb(n) {
|
|
4154
4154
|
const t = n.indexOf("x") !== -1, e = n.indexOf("y") !== -1;
|
|
4155
4155
|
return function(i, s) {
|
|
4156
4156
|
const r = t ? Math.abs(i.x - s.x) : 0, a = e ? Math.abs(i.y - s.y) : 0;
|
|
@@ -4187,7 +4187,7 @@ function Ib(n, t, e, i) {
|
|
|
4187
4187
|
}
|
|
4188
4188
|
function Lb(n, t, e, i, s, r) {
|
|
4189
4189
|
let a = [];
|
|
4190
|
-
const o =
|
|
4190
|
+
const o = Eb(e);
|
|
4191
4191
|
let l = Number.POSITIVE_INFINITY;
|
|
4192
4192
|
function c(u, d, h) {
|
|
4193
4193
|
const f = u.inRange(t.x, t.y, s);
|
|
@@ -4225,7 +4225,7 @@ function ku(n, t, e, i, s) {
|
|
|
4225
4225
|
}), o = o || l.inRange(t.x, t.y, s));
|
|
4226
4226
|
}), i && !o ? [] : r;
|
|
4227
4227
|
}
|
|
4228
|
-
var
|
|
4228
|
+
var El = {
|
|
4229
4229
|
evaluateInteractionItems: wr,
|
|
4230
4230
|
modes: {
|
|
4231
4231
|
index(n, t, e, i) {
|
|
@@ -4452,7 +4452,7 @@ var we = {
|
|
|
4452
4452
|
if (!n)
|
|
4453
4453
|
return;
|
|
4454
4454
|
const s = ee(n.options.layout.padding), r = Math.max(t - s.width, 0), a = Math.max(e - s.height, 0), o = Ub(n.boxes), l = o.vertical, c = o.horizontal;
|
|
4455
|
-
|
|
4455
|
+
Et(n.boxes, (y) => {
|
|
4456
4456
|
typeof y.beforeLayout == "function" && y.beforeLayout();
|
|
4457
4457
|
});
|
|
4458
4458
|
const u = l.reduce((y, v) => v.box.options && v.box.options.display === !1 ? y : y + 1, 0) || 1, d = Object.freeze({
|
|
@@ -4479,7 +4479,7 @@ var we = {
|
|
|
4479
4479
|
bottom: f.top + f.h,
|
|
4480
4480
|
height: f.h,
|
|
4481
4481
|
width: f.w
|
|
4482
|
-
},
|
|
4482
|
+
}, Et(o.chartArea, (y) => {
|
|
4483
4483
|
const v = y.box;
|
|
4484
4484
|
Object.assign(v, n.chartArea), v.update(f.w, f.h, {
|
|
4485
4485
|
left: 0,
|
|
@@ -4608,10 +4608,10 @@ function Xb(n, t, e) {
|
|
|
4608
4608
|
}), s;
|
|
4609
4609
|
}
|
|
4610
4610
|
const fr = /* @__PURE__ */ new Map();
|
|
4611
|
-
let
|
|
4611
|
+
let Ru = 0;
|
|
4612
4612
|
function Cf() {
|
|
4613
4613
|
const n = window.devicePixelRatio;
|
|
4614
|
-
n !==
|
|
4614
|
+
n !== Ru && (Ru = n, fr.forEach((t, e) => {
|
|
4615
4615
|
e.currentDevicePixelRatio !== n && t();
|
|
4616
4616
|
}));
|
|
4617
4617
|
}
|
|
@@ -4790,7 +4790,7 @@ function l0(n) {
|
|
|
4790
4790
|
return !1;
|
|
4791
4791
|
return i;
|
|
4792
4792
|
}
|
|
4793
|
-
const c0 = (n) => n === "left" ? "right" : n === "right" ? "left" : n,
|
|
4793
|
+
const c0 = (n) => n === "left" ? "right" : n === "right" ? "left" : n, Eu = (n, t, e) => t === "top" || t === "left" ? n[t] + e : n[t] - e, Iu = (n, t) => Math.min(t || n, n);
|
|
4794
4794
|
function Lu(n, t) {
|
|
4795
4795
|
const e = [], i = n.length / t, s = n.length;
|
|
4796
4796
|
let r = 0;
|
|
@@ -4805,7 +4805,7 @@ function u0(n, t, e) {
|
|
|
4805
4805
|
return l;
|
|
4806
4806
|
}
|
|
4807
4807
|
function d0(n, t) {
|
|
4808
|
-
|
|
4808
|
+
Et(n, (e) => {
|
|
4809
4809
|
const i = e.gc, s = i.length / 2;
|
|
4810
4810
|
let r;
|
|
4811
4811
|
if (s > t) {
|
|
@@ -4849,13 +4849,13 @@ function m0(n, t, e, i) {
|
|
|
4849
4849
|
if (f = ve(i, r, o), xt(e)) {
|
|
4850
4850
|
const w = Object.keys(e)[0], S = e[w];
|
|
4851
4851
|
g = u[w].getPixelForValue(S) + y - t;
|
|
4852
|
-
} else e === "center" ? g = (c.bottom + c.top) / 2 + y - t : g =
|
|
4852
|
+
} else e === "center" ? g = (c.bottom + c.top) / 2 + y - t : g = Eu(n, e, t);
|
|
4853
4853
|
h = o - r;
|
|
4854
4854
|
} else {
|
|
4855
4855
|
if (xt(e)) {
|
|
4856
4856
|
const w = Object.keys(e)[0], S = e[w];
|
|
4857
4857
|
f = u[w].getPixelForValue(S) - v + t;
|
|
4858
|
-
} else e === "center" ? f = (c.left + c.right) / 2 - v + t : f =
|
|
4858
|
+
} else e === "center" ? f = (c.left + c.right) / 2 - v + t : f = Eu(n, e, t);
|
|
4859
4859
|
g = ve(i, a, s), d = e === "left" ? -zt : zt;
|
|
4860
4860
|
}
|
|
4861
4861
|
return {
|
|
@@ -4926,7 +4926,7 @@ class Oi extends de {
|
|
|
4926
4926
|
this._cache = {}, this._dataLimitsCached = !1;
|
|
4927
4927
|
}
|
|
4928
4928
|
beforeUpdate() {
|
|
4929
|
-
|
|
4929
|
+
Rt(this.options.beforeUpdate, [
|
|
4930
4930
|
this
|
|
4931
4931
|
]);
|
|
4932
4932
|
}
|
|
@@ -4946,12 +4946,12 @@ class Oi extends de {
|
|
|
4946
4946
|
this.isHorizontal() ? (e = this.left, i = this.right) : (e = this.top, i = this.bottom, t = !t), this._startPixel = e, this._endPixel = i, this._reversePixels = t, this._length = i - e, this._alignToPixels = this.options.alignToPixels;
|
|
4947
4947
|
}
|
|
4948
4948
|
afterUpdate() {
|
|
4949
|
-
|
|
4949
|
+
Rt(this.options.afterUpdate, [
|
|
4950
4950
|
this
|
|
4951
4951
|
]);
|
|
4952
4952
|
}
|
|
4953
4953
|
beforeSetDimensions() {
|
|
4954
|
-
|
|
4954
|
+
Rt(this.options.beforeSetDimensions, [
|
|
4955
4955
|
this
|
|
4956
4956
|
]);
|
|
4957
4957
|
}
|
|
@@ -4959,12 +4959,12 @@ class Oi extends de {
|
|
|
4959
4959
|
this.isHorizontal() ? (this.width = this.maxWidth, this.left = 0, this.right = this.width) : (this.height = this.maxHeight, this.top = 0, this.bottom = this.height), this.paddingLeft = 0, this.paddingTop = 0, this.paddingRight = 0, this.paddingBottom = 0;
|
|
4960
4960
|
}
|
|
4961
4961
|
afterSetDimensions() {
|
|
4962
|
-
|
|
4962
|
+
Rt(this.options.afterSetDimensions, [
|
|
4963
4963
|
this
|
|
4964
4964
|
]);
|
|
4965
4965
|
}
|
|
4966
4966
|
_callHooks(t) {
|
|
4967
|
-
this.chart.notifyPlugins(t, this.getContext()),
|
|
4967
|
+
this.chart.notifyPlugins(t, this.getContext()), Rt(this.options[t], [
|
|
4968
4968
|
this
|
|
4969
4969
|
]);
|
|
4970
4970
|
}
|
|
@@ -4986,7 +4986,7 @@ class Oi extends de {
|
|
|
4986
4986
|
this._callHooks("afterBuildTicks");
|
|
4987
4987
|
}
|
|
4988
4988
|
beforeTickToLabelConversion() {
|
|
4989
|
-
|
|
4989
|
+
Rt(this.options.beforeTickToLabelConversion, [
|
|
4990
4990
|
this
|
|
4991
4991
|
]);
|
|
4992
4992
|
}
|
|
@@ -4994,19 +4994,19 @@ class Oi extends de {
|
|
|
4994
4994
|
const e = this.options.ticks;
|
|
4995
4995
|
let i, s, r;
|
|
4996
4996
|
for (i = 0, s = t.length; i < s; i++)
|
|
4997
|
-
r = t[i], r.label =
|
|
4997
|
+
r = t[i], r.label = Rt(e.callback, [
|
|
4998
4998
|
r.value,
|
|
4999
4999
|
i,
|
|
5000
5000
|
t
|
|
5001
5001
|
], this);
|
|
5002
5002
|
}
|
|
5003
5003
|
afterTickToLabelConversion() {
|
|
5004
|
-
|
|
5004
|
+
Rt(this.options.afterTickToLabelConversion, [
|
|
5005
5005
|
this
|
|
5006
5006
|
]);
|
|
5007
5007
|
}
|
|
5008
5008
|
beforeCalculateLabelRotation() {
|
|
5009
|
-
|
|
5009
|
+
Rt(this.options.beforeCalculateLabelRotation, [
|
|
5010
5010
|
this
|
|
5011
5011
|
]);
|
|
5012
5012
|
}
|
|
@@ -5021,14 +5021,14 @@ class Oi extends de {
|
|
|
5021
5021
|
o = t.offset ? this.maxWidth / i : f / (i - 1), d + 6 > o && (o = f / (i - (t.offset ? 0.5 : 1)), l = this.maxHeight - Ps(t.grid) - e.padding - Nu(t.title, this.chart.options.font), c = Math.sqrt(d * d + h * h), a = $a(Math.min(Math.asin(ue((u.highest.height + 6) / o, -1, 1)), Math.asin(ue(l / c, -1, 1)) - Math.asin(ue(h / c, -1, 1)))), a = Math.max(s, Math.min(r, a))), this.labelRotation = a;
|
|
5022
5022
|
}
|
|
5023
5023
|
afterCalculateLabelRotation() {
|
|
5024
|
-
|
|
5024
|
+
Rt(this.options.afterCalculateLabelRotation, [
|
|
5025
5025
|
this
|
|
5026
5026
|
]);
|
|
5027
5027
|
}
|
|
5028
5028
|
afterAutoSkip() {
|
|
5029
5029
|
}
|
|
5030
5030
|
beforeFit() {
|
|
5031
|
-
|
|
5031
|
+
Rt(this.options.beforeFit, [
|
|
5032
5032
|
this
|
|
5033
5033
|
]);
|
|
5034
5034
|
}
|
|
@@ -5068,7 +5068,7 @@ class Oi extends de {
|
|
|
5068
5068
|
this._margins && (this._margins.left = Math.max(this.paddingLeft, this._margins.left), this._margins.top = Math.max(this.paddingTop, this._margins.top), this._margins.right = Math.max(this.paddingRight, this._margins.right), this._margins.bottom = Math.max(this.paddingBottom, this._margins.bottom));
|
|
5069
5069
|
}
|
|
5070
5070
|
afterFit() {
|
|
5071
|
-
|
|
5071
|
+
Rt(this.options.afterFit, [
|
|
5072
5072
|
this
|
|
5073
5073
|
]);
|
|
5074
5074
|
}
|
|
@@ -5097,7 +5097,7 @@ class Oi extends de {
|
|
|
5097
5097
|
}
|
|
5098
5098
|
_computeLabelSizes(t, e, i) {
|
|
5099
5099
|
const { ctx: s, _longestTextCache: r } = this, a = [], o = [], l = Math.floor(e / Iu(e, i));
|
|
5100
|
-
let c = 0, u = 0, d, h, f, g, y, v, w, S, D, k,
|
|
5100
|
+
let c = 0, u = 0, d, h, f, g, y, v, w, S, D, k, R;
|
|
5101
5101
|
for (d = 0; d < e; d += l) {
|
|
5102
5102
|
if (g = t[d].label, y = this._resolveTickFontOptions(d), s.font = v = y.string, w = r[v] = r[v] || {
|
|
5103
5103
|
data: {},
|
|
@@ -5106,7 +5106,7 @@ class Oi extends de {
|
|
|
5106
5106
|
D = ka(s, w.data, w.gc, D, g), k = S;
|
|
5107
5107
|
else if (Ct(g))
|
|
5108
5108
|
for (h = 0, f = g.length; h < f; ++h)
|
|
5109
|
-
|
|
5109
|
+
R = g[h], !ft(R) && !Ct(R) && (D = ka(s, w.data, w.gc, D, R), k += S);
|
|
5110
5110
|
a.push(D), o.push(k), c = Math.max(D, c), u = Math.max(k, u);
|
|
5111
5111
|
}
|
|
5112
5112
|
d0(r, e);
|
|
@@ -5171,7 +5171,7 @@ class Oi extends de {
|
|
|
5171
5171
|
const e = this.axis, i = this.chart, s = this.options, { grid: r, position: a, border: o } = s, l = r.offset, c = this.isHorizontal(), d = this.ticks.length + (l ? 1 : 0), h = Ps(r), f = [], g = o.setContext(this.getContext()), y = g.display ? g.width : 0, v = y / 2, w = function(F) {
|
|
5172
5172
|
return gi(i, F, y);
|
|
5173
5173
|
};
|
|
5174
|
-
let S, D, k,
|
|
5174
|
+
let S, D, k, R, A, O, m, b, _, M, C, B;
|
|
5175
5175
|
if (a === "top")
|
|
5176
5176
|
S = w(this.bottom), O = this.bottom - h, b = S - v, M = w(t.top) + v, B = t.bottom;
|
|
5177
5177
|
else if (a === "bottom")
|
|
@@ -5199,8 +5199,8 @@ class Oi extends de {
|
|
|
5199
5199
|
}
|
|
5200
5200
|
const L = ht(s.ticks.maxTicksLimit, d), W = Math.max(1, Math.ceil(d / L));
|
|
5201
5201
|
for (D = 0; D < d; D += W) {
|
|
5202
|
-
const F = this.getContext(D), H = r.setContext(F), V = o.setContext(F), q = H.lineWidth, j = H.color,
|
|
5203
|
-
k = u0(this, D, l), k !== void 0 && (
|
|
5202
|
+
const F = this.getContext(D), H = r.setContext(F), V = o.setContext(F), q = H.lineWidth, j = H.color, E = V.dash || [], z = V.dashOffset, $ = H.tickWidth, at = H.tickColor, it = H.tickBorderDash || [], G = H.tickBorderDashOffset;
|
|
5203
|
+
k = u0(this, D, l), k !== void 0 && (R = gi(i, k, q), c ? A = m = _ = C = R : O = b = M = B = R, f.push({
|
|
5204
5204
|
tx1: A,
|
|
5205
5205
|
ty1: O,
|
|
5206
5206
|
tx2: m,
|
|
@@ -5211,7 +5211,7 @@ class Oi extends de {
|
|
|
5211
5211
|
y2: B,
|
|
5212
5212
|
width: q,
|
|
5213
5213
|
color: j,
|
|
5214
|
-
borderDash:
|
|
5214
|
+
borderDash: E,
|
|
5215
5215
|
borderDashOffset: z,
|
|
5216
5216
|
tickWidth: $,
|
|
5217
5217
|
tickColor: at,
|
|
@@ -5223,17 +5223,17 @@ class Oi extends de {
|
|
|
5223
5223
|
}
|
|
5224
5224
|
_computeLabelItems(t) {
|
|
5225
5225
|
const e = this.axis, i = this.options, { position: s, ticks: r } = i, a = this.isHorizontal(), o = this.ticks, { align: l, crossAlign: c, padding: u, mirror: d } = r, h = Ps(i.grid), f = h + u, g = d ? -u : f, y = -te(this.labelRotation), v = [];
|
|
5226
|
-
let w, S, D, k,
|
|
5226
|
+
let w, S, D, k, R, A, O, m, b, _, M, C, B = "middle";
|
|
5227
5227
|
if (s === "top")
|
|
5228
5228
|
A = this.bottom - g, O = this._getXAxisLabelAlignment();
|
|
5229
5229
|
else if (s === "bottom")
|
|
5230
5230
|
A = this.top + g, O = this._getXAxisLabelAlignment();
|
|
5231
5231
|
else if (s === "left") {
|
|
5232
5232
|
const W = this._getYAxisLabelAlignment(h);
|
|
5233
|
-
O = W.textAlign,
|
|
5233
|
+
O = W.textAlign, R = W.x;
|
|
5234
5234
|
} else if (s === "right") {
|
|
5235
5235
|
const W = this._getYAxisLabelAlignment(h);
|
|
5236
|
-
O = W.textAlign,
|
|
5236
|
+
O = W.textAlign, R = W.x;
|
|
5237
5237
|
} else if (e === "x") {
|
|
5238
5238
|
if (s === "center")
|
|
5239
5239
|
A = (t.top + t.bottom) / 2 + f;
|
|
@@ -5244,10 +5244,10 @@ class Oi extends de {
|
|
|
5244
5244
|
O = this._getXAxisLabelAlignment();
|
|
5245
5245
|
} else if (e === "y") {
|
|
5246
5246
|
if (s === "center")
|
|
5247
|
-
|
|
5247
|
+
R = (t.left + t.right) / 2 - f;
|
|
5248
5248
|
else if (xt(s)) {
|
|
5249
5249
|
const W = Object.keys(s)[0], F = s[W];
|
|
5250
|
-
|
|
5250
|
+
R = this.chart.scales[W].getPixelForValue(F);
|
|
5251
5251
|
}
|
|
5252
5252
|
O = this._getYAxisLabelAlignment(h).textAlign;
|
|
5253
5253
|
}
|
|
@@ -5259,8 +5259,8 @@ class Oi extends de {
|
|
|
5259
5259
|
m = this.getPixelForTick(w) + r.labelOffset, b = this._resolveTickFontOptions(w), _ = b.lineHeight, M = Ct(k) ? k.length : 1;
|
|
5260
5260
|
const F = M / 2, H = W.color, V = W.textStrokeColor, q = W.textStrokeWidth;
|
|
5261
5261
|
let j = O;
|
|
5262
|
-
a ? (
|
|
5263
|
-
let
|
|
5262
|
+
a ? (R = m, O === "inner" && (w === S - 1 ? j = this.options.reverse ? "left" : "right" : w === 0 ? j = this.options.reverse ? "right" : "left" : j = "center"), s === "top" ? c === "near" || y !== 0 ? C = -M * _ + _ / 2 : c === "center" ? C = -L.highest.height / 2 - F * _ + _ : C = -L.highest.height + _ / 2 : c === "near" || y !== 0 ? C = _ / 2 : c === "center" ? C = L.highest.height / 2 - F * _ : C = L.highest.height - M * _, d && (C *= -1), y !== 0 && !W.showLabelBackdrop && (R += _ / 2 * Math.sin(y))) : (A = m, C = (1 - M) * _ / 2);
|
|
5263
|
+
let E;
|
|
5264
5264
|
if (W.showLabelBackdrop) {
|
|
5265
5265
|
const z = ee(W.backdropPadding), $ = L.heights[w], at = L.widths[w];
|
|
5266
5266
|
let it = C - z.top, G = 0 - z.left;
|
|
@@ -5283,7 +5283,7 @@ class Oi extends de {
|
|
|
5283
5283
|
w === S - 1 ? G -= at : w > 0 && (G -= at / 2);
|
|
5284
5284
|
break;
|
|
5285
5285
|
}
|
|
5286
|
-
|
|
5286
|
+
E = {
|
|
5287
5287
|
left: G,
|
|
5288
5288
|
top: it,
|
|
5289
5289
|
width: at + z.width,
|
|
@@ -5303,10 +5303,10 @@ class Oi extends de {
|
|
|
5303
5303
|
textAlign: j,
|
|
5304
5304
|
textBaseline: B,
|
|
5305
5305
|
translation: [
|
|
5306
|
-
|
|
5306
|
+
R,
|
|
5307
5307
|
A
|
|
5308
5308
|
],
|
|
5309
|
-
backdrop:
|
|
5309
|
+
backdrop: E
|
|
5310
5310
|
}
|
|
5311
5311
|
});
|
|
5312
5312
|
}
|
|
@@ -5575,7 +5575,7 @@ class _0 {
|
|
|
5575
5575
|
...e
|
|
5576
5576
|
].forEach((s) => {
|
|
5577
5577
|
const r = i || this._getRegistryForType(s);
|
|
5578
|
-
i || r.isForType(s) || r === this.plugins && s.id ? this._exec(t, r, s) :
|
|
5578
|
+
i || r.isForType(s) || r === this.plugins && s.id ? this._exec(t, r, s) : Et(s, (a) => {
|
|
5579
5579
|
const o = i || this._getRegistryForType(a);
|
|
5580
5580
|
this._exec(t, o, a);
|
|
5581
5581
|
});
|
|
@@ -5583,7 +5583,7 @@ class _0 {
|
|
|
5583
5583
|
}
|
|
5584
5584
|
_exec(t, e, i) {
|
|
5585
5585
|
const s = hc(t);
|
|
5586
|
-
|
|
5586
|
+
Rt(i["before" + s], [], i), e[t](i), Rt(i["after" + s], [], i);
|
|
5587
5587
|
}
|
|
5588
5588
|
_getRegistryForType(t) {
|
|
5589
5589
|
for (let e = 0; e < this._typedRegistries.length; e++) {
|
|
@@ -5619,7 +5619,7 @@ class v0 {
|
|
|
5619
5619
|
s,
|
|
5620
5620
|
r.options
|
|
5621
5621
|
];
|
|
5622
|
-
if (
|
|
5622
|
+
if (Rt(o, l, a) === !1 && s.cancelable)
|
|
5623
5623
|
return !1;
|
|
5624
5624
|
}
|
|
5625
5625
|
return !0;
|
|
@@ -5777,12 +5777,12 @@ function Pf(n) {
|
|
|
5777
5777
|
function A0(n) {
|
|
5778
5778
|
return n = n || {}, n.data = Pf(n.data), Af(n), n;
|
|
5779
5779
|
}
|
|
5780
|
-
const Uu = /* @__PURE__ */ new Map(),
|
|
5780
|
+
const Uu = /* @__PURE__ */ new Map(), Rf = /* @__PURE__ */ new Set();
|
|
5781
5781
|
function na(n, t) {
|
|
5782
5782
|
let e = Uu.get(n);
|
|
5783
|
-
return e || (e = t(), Uu.set(n, e),
|
|
5783
|
+
return e || (e = t(), Uu.set(n, e), Rf.add(e)), e;
|
|
5784
5784
|
}
|
|
5785
|
-
const
|
|
5785
|
+
const Rs = (n, t, e) => {
|
|
5786
5786
|
const i = Jn(t, e);
|
|
5787
5787
|
i !== void 0 && n.add(i);
|
|
5788
5788
|
};
|
|
@@ -5871,10 +5871,10 @@ class P0 {
|
|
|
5871
5871
|
return o;
|
|
5872
5872
|
const l = /* @__PURE__ */ new Set();
|
|
5873
5873
|
e.forEach((u) => {
|
|
5874
|
-
t && (l.add(t), u.forEach((d) =>
|
|
5874
|
+
t && (l.add(t), u.forEach((d) => Rs(l, t, d))), u.forEach((d) => Rs(l, s, d)), u.forEach((d) => Rs(l, Mi[r] || {}, d)), u.forEach((d) => Rs(l, Ut, d)), u.forEach((d) => Rs(l, Al, d));
|
|
5875
5875
|
});
|
|
5876
5876
|
const c = Array.from(l);
|
|
5877
|
-
return c.length === 0 && c.push(/* @__PURE__ */ Object.create(null)),
|
|
5877
|
+
return c.length === 0 && c.push(/* @__PURE__ */ Object.create(null)), Rf.has(e) && a.set(e, c), c;
|
|
5878
5878
|
}
|
|
5879
5879
|
chartOptionScopes() {
|
|
5880
5880
|
const { options: t, type: e } = this;
|
|
@@ -5896,7 +5896,7 @@ class P0 {
|
|
|
5896
5896
|
$shared: !0
|
|
5897
5897
|
}, { resolver: a, subPrefixes: o } = Hu(this._resolverCache, t, s);
|
|
5898
5898
|
let l = a;
|
|
5899
|
-
if (
|
|
5899
|
+
if (E0(a, e)) {
|
|
5900
5900
|
r.$shared = !1, i = ze(i) ? i() : i;
|
|
5901
5901
|
const c = this.createResolver(t, i, o);
|
|
5902
5902
|
l = os(a, i, c);
|
|
@@ -5922,12 +5922,12 @@ function Hu(n, t, e) {
|
|
|
5922
5922
|
subPrefixes: e.filter((o) => !o.toLowerCase().includes("hover"))
|
|
5923
5923
|
}, i.set(s, r)), r;
|
|
5924
5924
|
}
|
|
5925
|
-
const
|
|
5926
|
-
function
|
|
5925
|
+
const R0 = (n) => xt(n) && Object.getOwnPropertyNames(n).some((t) => ze(n[t]));
|
|
5926
|
+
function E0(n, t) {
|
|
5927
5927
|
const { isScriptable: e, isIndexable: i } = uf(n);
|
|
5928
5928
|
for (const s of t) {
|
|
5929
5929
|
const r = e(s), a = i(s), o = (a || r) && n[s];
|
|
5930
|
-
if (r && (ze(o) ||
|
|
5930
|
+
if (r && (ze(o) || R0(o)) || a && Ct(o))
|
|
5931
5931
|
return !0;
|
|
5932
5932
|
}
|
|
5933
5933
|
return !1;
|
|
@@ -5950,21 +5950,21 @@ function Wu(n, t) {
|
|
|
5950
5950
|
}
|
|
5951
5951
|
function $u(n) {
|
|
5952
5952
|
const t = n.chart, e = t.options.animation;
|
|
5953
|
-
t.notifyPlugins("afterRender"),
|
|
5953
|
+
t.notifyPlugins("afterRender"), Rt(e && e.onComplete, [
|
|
5954
5954
|
n
|
|
5955
5955
|
], t);
|
|
5956
5956
|
}
|
|
5957
5957
|
function N0(n) {
|
|
5958
5958
|
const t = n.chart, e = t.options.animation;
|
|
5959
|
-
|
|
5959
|
+
Rt(e && e.onProgress, [
|
|
5960
5960
|
n
|
|
5961
5961
|
], t);
|
|
5962
5962
|
}
|
|
5963
|
-
function
|
|
5963
|
+
function Ef(n) {
|
|
5964
5964
|
return xc() && typeof n == "string" ? n = document.getElementById(n) : n && n.length && (n = n[0]), n && n.canvas && (n = n.canvas), n;
|
|
5965
5965
|
}
|
|
5966
5966
|
const ga = {}, Yu = (n) => {
|
|
5967
|
-
const t =
|
|
5967
|
+
const t = Ef(n);
|
|
5968
5968
|
return Object.values(ga).filter((e) => e.canvas === t).pop();
|
|
5969
5969
|
};
|
|
5970
5970
|
function F0(n, t, e) {
|
|
@@ -5989,7 +5989,7 @@ let Ue = (Bn = class {
|
|
|
5989
5989
|
un.remove(...t), ju();
|
|
5990
5990
|
}
|
|
5991
5991
|
constructor(t, e) {
|
|
5992
|
-
const i = this.config = new P0(e), s =
|
|
5992
|
+
const i = this.config = new P0(e), s = Ef(t), r = Yu(s);
|
|
5993
5993
|
if (r)
|
|
5994
5994
|
throw new Error("Canvas is already in use. Chart with ID '" + r.id + "' must be destroyed before the canvas with ID '" + r.canvas.id + "' can be reused.");
|
|
5995
5995
|
const a = i.createResolver(i.chartOptionScopes(), this.getContext());
|
|
@@ -6039,14 +6039,14 @@ let Ue = (Bn = class {
|
|
|
6039
6039
|
const i = this.options, s = this.canvas, r = i.maintainAspectRatio && this.aspectRatio, a = this.platform.getMaximumSize(s, t, e, r), o = i.devicePixelRatio || this.platform.getDevicePixelRatio(), l = this.width ? "resize" : "attach";
|
|
6040
6040
|
this.width = a.width, this.height = a.height, this._aspectRatio = this.aspectRatio, fu(this, o, !0) && (this.notifyPlugins("resize", {
|
|
6041
6041
|
size: a
|
|
6042
|
-
}),
|
|
6042
|
+
}), Rt(i.onResize, [
|
|
6043
6043
|
this,
|
|
6044
6044
|
a
|
|
6045
6045
|
], this), this.attached && this._doResize(l) && this.render());
|
|
6046
6046
|
}
|
|
6047
6047
|
ensureScalesHaveIDs() {
|
|
6048
6048
|
const e = this.options.scales || {};
|
|
6049
|
-
|
|
6049
|
+
Et(e, (i, s) => {
|
|
6050
6050
|
i.id = s;
|
|
6051
6051
|
});
|
|
6052
6052
|
}
|
|
@@ -6060,7 +6060,7 @@ let Ue = (Bn = class {
|
|
|
6060
6060
|
dposition: c ? "chartArea" : u ? "bottom" : "left",
|
|
6061
6061
|
dtype: c ? "radialLinear" : u ? "category" : "linear"
|
|
6062
6062
|
};
|
|
6063
|
-
}))),
|
|
6063
|
+
}))), Et(r, (a) => {
|
|
6064
6064
|
const o = a.options, l = o.id, c = Ll(l, o), u = ht(o.type, a.dtype);
|
|
6065
6065
|
(o.position === void 0 || Bu(o.position, c) !== Bu(a.dposition)) && (o.position = a.dposition), s[l] = !0;
|
|
6066
6066
|
let d = null;
|
|
@@ -6076,9 +6076,9 @@ let Ue = (Bn = class {
|
|
|
6076
6076
|
}), i[d.id] = d;
|
|
6077
6077
|
}
|
|
6078
6078
|
d.init(o, t);
|
|
6079
|
-
}),
|
|
6079
|
+
}), Et(s, (a, o) => {
|
|
6080
6080
|
a || delete i[o];
|
|
6081
|
-
}),
|
|
6081
|
+
}), Et(i, (a) => {
|
|
6082
6082
|
we.configure(this, a, a.options), we.addBox(this, a);
|
|
6083
6083
|
});
|
|
6084
6084
|
}
|
|
@@ -6117,7 +6117,7 @@ let Ue = (Bn = class {
|
|
|
6117
6117
|
return this._updateMetasets(), t;
|
|
6118
6118
|
}
|
|
6119
6119
|
_resetElements() {
|
|
6120
|
-
|
|
6120
|
+
Et(this.data.datasets, (t, e) => {
|
|
6121
6121
|
this.getDatasetMeta(e).controller.reset();
|
|
6122
6122
|
}, this);
|
|
6123
6123
|
}
|
|
@@ -6140,7 +6140,7 @@ let Ue = (Bn = class {
|
|
|
6140
6140
|
const { controller: d } = this.getDatasetMeta(c), h = !s && r.indexOf(d) === -1;
|
|
6141
6141
|
d.buildOrUpdateElements(h), a = Math.max(+d.getMaxOverflow(), a);
|
|
6142
6142
|
}
|
|
6143
|
-
a = this._minPadding = i.layout.autoPadding ? a : 0, this._updateLayout(a), s ||
|
|
6143
|
+
a = this._minPadding = i.layout.autoPadding ? a : 0, this._updateLayout(a), s || Et(r, (c) => {
|
|
6144
6144
|
c.reset();
|
|
6145
6145
|
}), this._updateDatasets(t), this.notifyPlugins("afterUpdate", {
|
|
6146
6146
|
mode: t
|
|
@@ -6149,7 +6149,7 @@ let Ue = (Bn = class {
|
|
|
6149
6149
|
l ? this._eventHandler(l, !0) : o.length && this._updateHoverStyles(o, o, !0), this.render();
|
|
6150
6150
|
}
|
|
6151
6151
|
_updateScales() {
|
|
6152
|
-
|
|
6152
|
+
Et(this.scales, (t) => {
|
|
6153
6153
|
we.removeBox(this, t);
|
|
6154
6154
|
}), this.ensureScalesHaveIDs(), this.buildOrUpdateScales();
|
|
6155
6155
|
}
|
|
@@ -6186,7 +6186,7 @@ let Ue = (Bn = class {
|
|
|
6186
6186
|
return;
|
|
6187
6187
|
we.update(this, this.width, this.height, t);
|
|
6188
6188
|
const e = this.chartArea, i = e.width <= 0 || e.height <= 0;
|
|
6189
|
-
this._layers = [],
|
|
6189
|
+
this._layers = [], Et(this.boxes, (s) => {
|
|
6190
6190
|
i && s.position === "chartArea" || (s.configure && s.configure(), this._layers.push(...s._layers()));
|
|
6191
6191
|
}, this), this._layers.forEach((s, r) => {
|
|
6192
6192
|
s._idx = r;
|
|
@@ -6275,7 +6275,7 @@ let Ue = (Bn = class {
|
|
|
6275
6275
|
return Cn(t, this.chartArea, this._minPadding);
|
|
6276
6276
|
}
|
|
6277
6277
|
getElementsAtEventForMode(t, e, i, s) {
|
|
6278
|
-
const r =
|
|
6278
|
+
const r = El.modes[e];
|
|
6279
6279
|
return typeof r == "function" ? r(this, t, i, s) : [];
|
|
6280
6280
|
}
|
|
6281
6281
|
getDatasetMeta(t) {
|
|
@@ -6360,7 +6360,7 @@ let Ue = (Bn = class {
|
|
|
6360
6360
|
}, s = (r, a, o) => {
|
|
6361
6361
|
r.offsetX = a, r.offsetY = o, this._eventHandler(r);
|
|
6362
6362
|
};
|
|
6363
|
-
|
|
6363
|
+
Et(this.options.events, (r) => i(r, s));
|
|
6364
6364
|
}
|
|
6365
6365
|
bindResponsiveEvents() {
|
|
6366
6366
|
this._responsiveListeners || (this._responsiveListeners = {});
|
|
@@ -6380,9 +6380,9 @@ let Ue = (Bn = class {
|
|
|
6380
6380
|
}, e.isAttached(this.canvas) ? o() : a();
|
|
6381
6381
|
}
|
|
6382
6382
|
unbindEvents() {
|
|
6383
|
-
|
|
6383
|
+
Et(this._listeners, (t, e) => {
|
|
6384
6384
|
this.platform.removeEventListener(this, e, t);
|
|
6385
|
-
}), this._listeners = {},
|
|
6385
|
+
}), this._listeners = {}, Et(this._responsiveListeners, (t, e) => {
|
|
6386
6386
|
this.platform.removeEventListener(this, e, t);
|
|
6387
6387
|
}), this._responsiveListeners = void 0;
|
|
6388
6388
|
}
|
|
@@ -6435,11 +6435,11 @@ let Ue = (Bn = class {
|
|
|
6435
6435
|
}
|
|
6436
6436
|
_handleEvent(t, e, i) {
|
|
6437
6437
|
const { _active: s = [], options: r } = this, a = e, o = this._getActiveElements(t, s, i, a), l = Gp(t), c = z0(t, this._lastEvent, i, l);
|
|
6438
|
-
i && (this._lastEvent = null,
|
|
6438
|
+
i && (this._lastEvent = null, Rt(r.onHover, [
|
|
6439
6439
|
t,
|
|
6440
6440
|
o,
|
|
6441
6441
|
this
|
|
6442
|
-
], this), l &&
|
|
6442
|
+
], this), l && Rt(r.onClick, [
|
|
6443
6443
|
t,
|
|
6444
6444
|
o,
|
|
6445
6445
|
this
|
|
@@ -6457,7 +6457,7 @@ let Ue = (Bn = class {
|
|
|
6457
6457
|
}
|
|
6458
6458
|
}, P(Bn, "defaults", Ut), P(Bn, "instances", ga), P(Bn, "overrides", Mi), P(Bn, "registry", un), P(Bn, "version", I0), P(Bn, "getChart", Yu), Bn);
|
|
6459
6459
|
function ju() {
|
|
6460
|
-
return
|
|
6460
|
+
return Et(Ue.instances, (n) => n._plugins.invalidate());
|
|
6461
6461
|
}
|
|
6462
6462
|
function U0(n, t, e) {
|
|
6463
6463
|
const { startAngle: i, x: s, y: r, outerRadius: a, innerRadius: o, options: l } = t, { borderWidth: c, borderJoinStyle: u } = l, d = Math.min(c / a, xe(i - e));
|
|
@@ -6514,7 +6514,7 @@ function Aa(n, t, e, i, s, r) {
|
|
|
6514
6514
|
const W = u > 0 ? u - i : 0, F = d > 0 ? d - i : 0, H = (W + F) / 2, V = H !== 0 ? g * H / (H + i) : g;
|
|
6515
6515
|
f = (g - V) / 2;
|
|
6516
6516
|
}
|
|
6517
|
-
const y = Math.max(1e-3, g * d - e / _t) / d, v = (g - y) / 2, w = l + v + f, S = s - v - f, { outerStart: D, outerEnd: k, innerStart:
|
|
6517
|
+
const y = Math.max(1e-3, g * d - e / _t) / d, v = (g - y) / 2, w = l + v + f, S = s - v - f, { outerStart: D, outerEnd: k, innerStart: R, innerEnd: A } = W0(t, h, d, S - w), O = d - D, m = d - k, b = w + D / O, _ = S - k / m, M = h + R, C = h + A, B = w + R / M, L = S - A / C;
|
|
6518
6518
|
if (n.beginPath(), r) {
|
|
6519
6519
|
const W = (b + _) / 2;
|
|
6520
6520
|
if (n.arc(a, o, d, b, W), n.arc(a, o, d, W, _), k > 0) {
|
|
@@ -6526,10 +6526,10 @@ function Aa(n, t, e, i, s, r) {
|
|
|
6526
6526
|
const q = Yi(C, L, a, o);
|
|
6527
6527
|
n.arc(q.x, q.y, A, S + zt, L + Math.PI);
|
|
6528
6528
|
}
|
|
6529
|
-
const H = (S - A / h + (w +
|
|
6530
|
-
if (n.arc(a, o, h, S - A / h, H, !0), n.arc(a, o, h, H, w +
|
|
6529
|
+
const H = (S - A / h + (w + R / h)) / 2;
|
|
6530
|
+
if (n.arc(a, o, h, S - A / h, H, !0), n.arc(a, o, h, H, w + R / h, !0), R > 0) {
|
|
6531
6531
|
const q = Yi(M, B, a, o);
|
|
6532
|
-
n.arc(q.x, q.y,
|
|
6532
|
+
n.arc(q.x, q.y, R, B + Math.PI, w - zt);
|
|
6533
6533
|
}
|
|
6534
6534
|
const V = Yi(O, w, a, o);
|
|
6535
6535
|
if (n.lineTo(V.x, V.y), D > 0) {
|
|
@@ -6679,8 +6679,8 @@ function G0(n, t, e, i) {
|
|
|
6679
6679
|
for (l && (f = s[S(0)], n.moveTo(f.x, f.y)), h = 0; h <= o; ++h) {
|
|
6680
6680
|
if (f = s[S(h)], f.skip)
|
|
6681
6681
|
continue;
|
|
6682
|
-
const k = f.x,
|
|
6683
|
-
A === g ? (
|
|
6682
|
+
const k = f.x, R = f.y, A = k | 0;
|
|
6683
|
+
A === g ? (R < y ? y = R : R > v && (v = R), u = (d * u + k) / ++d) : (D(), n.lineTo(k, R), g = A, d = 0, y = v = R), w = R;
|
|
6684
6684
|
}
|
|
6685
6685
|
D();
|
|
6686
6686
|
}
|
|
@@ -7069,10 +7069,10 @@ function f_(n, t, e, i, s) {
|
|
|
7069
7069
|
let u = t, d, h, f, g, y;
|
|
7070
7070
|
for (a[l++] = n[u], d = 0; d < r - 2; d++) {
|
|
7071
7071
|
let v = 0, w = 0, S;
|
|
7072
|
-
const D = Math.floor((d + 1) * o) + 1 + t, k = Math.min(Math.floor((d + 2) * o) + 1, e) + t,
|
|
7072
|
+
const D = Math.floor((d + 1) * o) + 1 + t, k = Math.min(Math.floor((d + 2) * o) + 1, e) + t, R = k - D;
|
|
7073
7073
|
for (S = D; S < k; S++)
|
|
7074
7074
|
v += n[S].x, w += n[S].y;
|
|
7075
|
-
v /=
|
|
7075
|
+
v /= R, w /= R;
|
|
7076
7076
|
const A = Math.floor(d * o) + 1 + t, O = Math.min(Math.floor((d + 1) * o) + 1, e) + t, { x: m, y: b } = n[u];
|
|
7077
7077
|
for (f = g = -1, S = A; S < O; S++)
|
|
7078
7078
|
g = 0.5 * Math.abs((m - v) * (n[S].y - b) - (m - n[S].x) * (w - b)), g > f && (f = g, h = n[S], y = S);
|
|
@@ -7085,8 +7085,8 @@ function g_(n, t, e, i) {
|
|
|
7085
7085
|
const v = [], w = t + e - 1, S = n[t].x, k = n[w].x - S;
|
|
7086
7086
|
for (a = t; a < t + e; ++a) {
|
|
7087
7087
|
o = n[a], l = (o.x - S) / k * i, c = o.y;
|
|
7088
|
-
const
|
|
7089
|
-
if (
|
|
7088
|
+
const R = l | 0;
|
|
7089
|
+
if (R === u)
|
|
7090
7090
|
c < g ? (g = c, d = a) : c > y && (y = c, h = a), s = (r * s + o.x) / ++r;
|
|
7091
7091
|
else {
|
|
7092
7092
|
const A = a - 1;
|
|
@@ -7100,7 +7100,7 @@ function g_(n, t, e, i) {
|
|
|
7100
7100
|
x: s
|
|
7101
7101
|
});
|
|
7102
7102
|
}
|
|
7103
|
-
a > 0 && A !== f && v.push(n[A]), v.push(o), u =
|
|
7103
|
+
a > 0 && A !== f && v.push(n[A]), v.push(o), u = R, r = 0, g = y = c, d = h = f = a;
|
|
7104
7104
|
}
|
|
7105
7105
|
}
|
|
7106
7106
|
return v;
|
|
@@ -7416,9 +7416,9 @@ function A_(n, t) {
|
|
|
7416
7416
|
return e && n.isDatasetVisible(t) ? e.dataset : null;
|
|
7417
7417
|
}
|
|
7418
7418
|
function P_(n) {
|
|
7419
|
-
return (n.scale || {}).getPointPositionForValue ?
|
|
7419
|
+
return (n.scale || {}).getPointPositionForValue ? E_(n) : R_(n);
|
|
7420
7420
|
}
|
|
7421
|
-
function
|
|
7421
|
+
function R_(n) {
|
|
7422
7422
|
const { scale: t = {}, fill: e } = n, i = w_(e, t);
|
|
7423
7423
|
if (Bt(i)) {
|
|
7424
7424
|
const s = t.isHorizontal();
|
|
@@ -7429,7 +7429,7 @@ function E_(n) {
|
|
|
7429
7429
|
}
|
|
7430
7430
|
return null;
|
|
7431
7431
|
}
|
|
7432
|
-
function
|
|
7432
|
+
function E_(n) {
|
|
7433
7433
|
const { scale: t, fill: e } = n, i = t.options, s = t.getLabels().length, r = i.reverse ? t.max : t.min, a = S_(e, t, r), o = [];
|
|
7434
7434
|
if (i.grid.circular) {
|
|
7435
7435
|
const l = t.getPointPositionForValue(0, r);
|
|
@@ -7599,7 +7599,7 @@ class nd extends de {
|
|
|
7599
7599
|
}
|
|
7600
7600
|
buildLabels() {
|
|
7601
7601
|
const t = this.options.labels || {};
|
|
7602
|
-
let e =
|
|
7602
|
+
let e = Rt(t.generateLabels, [
|
|
7603
7603
|
this.chart
|
|
7604
7604
|
], this) || [];
|
|
7605
7605
|
t.filter && (e = e.filter((i) => t.filter(i, this.chart.data))), t.sort && (e = e.sort((i, s) => t.sort(i, s, this.chart.data))), this.options.reverse && e.reverse(), this.legendItems = e;
|
|
@@ -7718,12 +7718,12 @@ class nd extends de {
|
|
|
7718
7718
|
y: ve(r, this.top + k + u, this.bottom - e[0].height),
|
|
7719
7719
|
line: 0
|
|
7720
7720
|
}, pf(this.ctx, t.textDirection);
|
|
7721
|
-
const
|
|
7721
|
+
const R = v + u;
|
|
7722
7722
|
this.legendItems.forEach((A, O) => {
|
|
7723
7723
|
s.strokeStyle = A.fontColor, s.fillStyle = A.fontColor;
|
|
7724
7724
|
const m = s.measureText(A.text).width, b = l.textAlign(A.textAlign || (A.textAlign = a.textAlign)), _ = g + h + m;
|
|
7725
7725
|
let M = f.x, C = f.y;
|
|
7726
|
-
l.setWidth(this.width), D ? O > 0 && M + _ + u > this.right && (C = f.y +=
|
|
7726
|
+
l.setWidth(this.width), D ? O > 0 && M + _ + u > this.right && (C = f.y += R, f.line++, M = f.x = ve(r, this.left + u, this.right - i[f.line])) : O > 0 && C + R > this.bottom && (M = f.x = M + e[f.line].width + u, f.line++, C = f.y = ve(r, this.top + k + u, this.bottom - e[f.line].height));
|
|
7727
7727
|
const B = l.x(M);
|
|
7728
7728
|
if (w(B, C, A), M = ry(b, M + g + h, D ? M + _ : this.right, t.rtl), S(l.x(M), C, A), D)
|
|
7729
7729
|
f.x += _ + u;
|
|
@@ -7731,7 +7731,7 @@ class nd extends de {
|
|
|
7731
7731
|
const L = c.lineHeight;
|
|
7732
7732
|
f.y += Wf(A, L) + u;
|
|
7733
7733
|
} else
|
|
7734
|
-
f.y +=
|
|
7734
|
+
f.y += R;
|
|
7735
7735
|
}), yf(this.ctx, t.textDirection);
|
|
7736
7736
|
}
|
|
7737
7737
|
drawTitle() {
|
|
@@ -7769,16 +7769,16 @@ class nd extends de {
|
|
|
7769
7769
|
const i = this._getLegendItemAt(t.x, t.y);
|
|
7770
7770
|
if (t.type === "mousemove" || t.type === "mouseout") {
|
|
7771
7771
|
const s = this._hoveredItem, r = F_(s, i);
|
|
7772
|
-
s && !r &&
|
|
7772
|
+
s && !r && Rt(e.onLeave, [
|
|
7773
7773
|
t,
|
|
7774
7774
|
s,
|
|
7775
7775
|
this
|
|
7776
|
-
], this), this._hoveredItem = i, i && !r &&
|
|
7776
|
+
], this), this._hoveredItem = i, i && !r && Rt(e.onHover, [
|
|
7777
7777
|
t,
|
|
7778
7778
|
i,
|
|
7779
7779
|
this
|
|
7780
7780
|
], this);
|
|
7781
|
-
} else i &&
|
|
7781
|
+
} else i && Rt(e.onClick, [
|
|
7782
7782
|
t,
|
|
7783
7783
|
i,
|
|
7784
7784
|
this
|
|
@@ -8083,7 +8083,7 @@ function V_(n, t) {
|
|
|
8083
8083
|
}
|
|
8084
8084
|
function id(n, t) {
|
|
8085
8085
|
const e = n.chart.ctx, { body: i, footer: s, title: r } = n, { boxWidth: a, boxHeight: o } = t, l = Wt(t.bodyFont), c = Wt(t.titleFont), u = Wt(t.footerFont), d = r.length, h = s.length, f = i.length, g = ee(t.padding);
|
|
8086
|
-
let y = g.height, v = 0, w = i.reduce((k,
|
|
8086
|
+
let y = g.height, v = 0, w = i.reduce((k, R) => k + R.before.length + R.lines.length + R.after.length, 0);
|
|
8087
8087
|
if (w += n.beforeBody.length + n.afterBody.length, d && (y += d * c.lineHeight + (d - 1) * t.titleSpacing + t.titleMarginBottom), w) {
|
|
8088
8088
|
const k = t.displayColors ? Math.max(o, l.lineHeight) : l.lineHeight;
|
|
8089
8089
|
y += f * k + (w - f) * l.lineHeight + (w - 1) * t.bodySpacing;
|
|
@@ -8093,9 +8093,9 @@ function id(n, t) {
|
|
|
8093
8093
|
const D = function(k) {
|
|
8094
8094
|
v = Math.max(v, e.measureText(k).width + S);
|
|
8095
8095
|
};
|
|
8096
|
-
return e.save(), e.font = c.string,
|
|
8097
|
-
|
|
8098
|
-
}), S = 0, e.font = u.string,
|
|
8096
|
+
return e.save(), e.font = c.string, Et(n.title, D), e.font = l.string, Et(n.beforeBody.concat(n.afterBody), D), S = t.displayColors ? a + 2 + t.boxPadding : 0, Et(i, (k) => {
|
|
8097
|
+
Et(k.before, D), Et(k.lines, D), Et(k.after, D);
|
|
8098
|
+
}), S = 0, e.font = u.string, Et(n.footer, D), e.restore(), v += g.width, {
|
|
8099
8099
|
width: v,
|
|
8100
8100
|
height: y
|
|
8101
8101
|
};
|
|
@@ -8208,7 +8208,7 @@ const $f = {
|
|
|
8208
8208
|
footer: Sn,
|
|
8209
8209
|
afterFooter: Sn
|
|
8210
8210
|
};
|
|
8211
|
-
function
|
|
8211
|
+
function Re(n, t, e, i) {
|
|
8212
8212
|
const s = n[t].call(e, i);
|
|
8213
8213
|
return typeof s > "u" ? $f[t].call(e, i) : s;
|
|
8214
8214
|
}
|
|
@@ -8230,29 +8230,29 @@ class Ul extends de {
|
|
|
8230
8230
|
return this.$context || (this.$context = Q_(this.chart.getContext(), this, this._tooltipItems));
|
|
8231
8231
|
}
|
|
8232
8232
|
getTitle(t, e) {
|
|
8233
|
-
const { callbacks: i } = e, s =
|
|
8233
|
+
const { callbacks: i } = e, s = Re(i, "beforeTitle", this, t), r = Re(i, "title", this, t), a = Re(i, "afterTitle", this, t);
|
|
8234
8234
|
let o = [];
|
|
8235
8235
|
return o = cn(o, Mn(s)), o = cn(o, Mn(r)), o = cn(o, Mn(a)), o;
|
|
8236
8236
|
}
|
|
8237
8237
|
getBeforeBody(t, e) {
|
|
8238
|
-
return ad(
|
|
8238
|
+
return ad(Re(e.callbacks, "beforeBody", this, t));
|
|
8239
8239
|
}
|
|
8240
8240
|
getBody(t, e) {
|
|
8241
8241
|
const { callbacks: i } = e, s = [];
|
|
8242
|
-
return
|
|
8242
|
+
return Et(t, (r) => {
|
|
8243
8243
|
const a = {
|
|
8244
8244
|
before: [],
|
|
8245
8245
|
lines: [],
|
|
8246
8246
|
after: []
|
|
8247
8247
|
}, o = od(i, r);
|
|
8248
|
-
cn(a.before, Mn(
|
|
8248
|
+
cn(a.before, Mn(Re(o, "beforeLabel", this, r))), cn(a.lines, Re(o, "label", this, r)), cn(a.after, Mn(Re(o, "afterLabel", this, r))), s.push(a);
|
|
8249
8249
|
}), s;
|
|
8250
8250
|
}
|
|
8251
8251
|
getAfterBody(t, e) {
|
|
8252
|
-
return ad(
|
|
8252
|
+
return ad(Re(e.callbacks, "afterBody", this, t));
|
|
8253
8253
|
}
|
|
8254
8254
|
getFooter(t, e) {
|
|
8255
|
-
const { callbacks: i } = e, s =
|
|
8255
|
+
const { callbacks: i } = e, s = Re(i, "beforeFooter", this, t), r = Re(i, "footer", this, t), a = Re(i, "afterFooter", this, t);
|
|
8256
8256
|
let o = [];
|
|
8257
8257
|
return o = cn(o, Mn(s)), o = cn(o, Mn(r)), o = cn(o, Mn(a)), o;
|
|
8258
8258
|
}
|
|
@@ -8261,9 +8261,9 @@ class Ul extends de {
|
|
|
8261
8261
|
let o = [], l, c;
|
|
8262
8262
|
for (l = 0, c = e.length; l < c; ++l)
|
|
8263
8263
|
o.push(V_(this.chart, e[l]));
|
|
8264
|
-
return t.filter && (o = o.filter((u, d, h) => t.filter(u, d, h, i))), t.itemSort && (o = o.sort((u, d) => t.itemSort(u, d, i))),
|
|
8264
|
+
return t.filter && (o = o.filter((u, d, h) => t.filter(u, d, h, i))), t.itemSort && (o = o.sort((u, d) => t.itemSort(u, d, i))), Et(o, (u) => {
|
|
8265
8265
|
const d = od(t.callbacks, u);
|
|
8266
|
-
s.push(
|
|
8266
|
+
s.push(Re(d, "labelColor", this, u)), r.push(Re(d, "labelPointStyle", this, u)), a.push(Re(d, "labelTextColor", this, u));
|
|
8267
8267
|
}), this.labelColors = s, this.labelPointStyles = r, this.labelTextColors = a, this.dataPoints = o, o;
|
|
8268
8268
|
}
|
|
8269
8269
|
update(t, e) {
|
|
@@ -8299,14 +8299,14 @@ class Ul extends de {
|
|
|
8299
8299
|
}
|
|
8300
8300
|
getCaretPosition(t, e, i) {
|
|
8301
8301
|
const { xAlign: s, yAlign: r } = this, { caretSize: a, cornerRadius: o } = i, { topLeft: l, topRight: c, bottomLeft: u, bottomRight: d } = Zn(o), { x: h, y: f } = t, { width: g, height: y } = e;
|
|
8302
|
-
let v, w, S, D, k,
|
|
8303
|
-
return r === "center" ? (k = f + y / 2, s === "left" ? (v = h, w = v - a, D = k + a,
|
|
8302
|
+
let v, w, S, D, k, R;
|
|
8303
|
+
return r === "center" ? (k = f + y / 2, s === "left" ? (v = h, w = v - a, D = k + a, R = k - a) : (v = h + g, w = v + a, D = k - a, R = k + a), S = v) : (s === "left" ? w = h + Math.max(l, u) + a : s === "right" ? w = h + g - Math.max(c, d) - a : w = this.caretX, r === "top" ? (D = f, k = D - a, v = w - a, S = w + a) : (D = f + y, k = D + a, v = w + a, S = w - a), R = D), {
|
|
8304
8304
|
x1: v,
|
|
8305
8305
|
x2: w,
|
|
8306
8306
|
x3: S,
|
|
8307
8307
|
y1: D,
|
|
8308
8308
|
y2: k,
|
|
8309
|
-
y3:
|
|
8309
|
+
y3: R
|
|
8310
8310
|
};
|
|
8311
8311
|
}
|
|
8312
8312
|
drawTitle(t, e, i) {
|
|
@@ -8353,13 +8353,13 @@ class Ul extends de {
|
|
|
8353
8353
|
const g = es(i.rtl, this.x, this.width), y = function(m) {
|
|
8354
8354
|
e.fillText(m, g.x(t.x + f), t.y + h / 2), t.y += h + r;
|
|
8355
8355
|
}, v = g.textAlign(a);
|
|
8356
|
-
let w, S, D, k,
|
|
8357
|
-
for (e.textAlign = a, e.textBaseline = "middle", e.font = d.string, t.x = sa(this, v, i), e.fillStyle = i.bodyColor,
|
|
8358
|
-
for (w = s[k], S = this.labelTextColors[k], e.fillStyle = S,
|
|
8359
|
-
y(D[
|
|
8360
|
-
|
|
8356
|
+
let w, S, D, k, R, A, O;
|
|
8357
|
+
for (e.textAlign = a, e.textBaseline = "middle", e.font = d.string, t.x = sa(this, v, i), e.fillStyle = i.bodyColor, Et(this.beforeBody, y), f = o && v !== "right" ? a === "center" ? c / 2 + u : c + 2 + u : 0, k = 0, A = s.length; k < A; ++k) {
|
|
8358
|
+
for (w = s[k], S = this.labelTextColors[k], e.fillStyle = S, Et(w.before, y), D = w.lines, o && D.length && (this._drawColorBox(e, t, k, g, i), h = Math.max(d.lineHeight, l)), R = 0, O = D.length; R < O; ++R)
|
|
8359
|
+
y(D[R]), h = d.lineHeight;
|
|
8360
|
+
Et(w.after, y);
|
|
8361
8361
|
}
|
|
8362
|
-
f = 0, h = d.lineHeight,
|
|
8362
|
+
f = 0, h = d.lineHeight, Et(this.afterBody, y), t.y -= r;
|
|
8363
8363
|
}
|
|
8364
8364
|
drawFooter(t, e, i) {
|
|
8365
8365
|
const s = this.footer, r = s.length;
|
|
@@ -8648,8 +8648,8 @@ P(Hl, "id", "category"), P(Hl, "defaults", {
|
|
|
8648
8648
|
});
|
|
8649
8649
|
function iv(n, t) {
|
|
8650
8650
|
const e = [], { bounds: s, step: r, min: a, max: o, precision: l, count: c, maxTicks: u, maxDigits: d, includeBounds: h } = n, f = r || 1, g = u - 1, { min: y, max: v } = t, w = !ft(a), S = !ft(o), D = !ft(c), k = (v - y) / (d + 1);
|
|
8651
|
-
let
|
|
8652
|
-
if (
|
|
8651
|
+
let R = su((v - y) / g / f) * f, A, O, m, b;
|
|
8652
|
+
if (R < 1e-14 && !w && !S)
|
|
8653
8653
|
return [
|
|
8654
8654
|
{
|
|
8655
8655
|
value: y
|
|
@@ -8658,14 +8658,14 @@ function iv(n, t) {
|
|
|
8658
8658
|
value: v
|
|
8659
8659
|
}
|
|
8660
8660
|
];
|
|
8661
|
-
b = Math.ceil(v /
|
|
8662
|
-
const _ = Math.max(ru(
|
|
8661
|
+
b = Math.ceil(v / R) - Math.floor(y / R), b > g && (R = su(b * R / g / f) * f), ft(l) || (A = Math.pow(10, l), R = Math.ceil(R * A) / A), s === "ticks" ? (O = Math.floor(y / R) * R, m = Math.ceil(v / R) * R) : (O = y, m = v), w && S && r && Qp((o - a) / r, R / 1e3) ? (b = Math.round(Math.min((o - a) / R, u)), R = (o - a) / b, O = a, m = o) : D ? (O = w ? a : O, m = S ? o : m, b = c - 1, R = (m - O) / b) : (b = (m - O) / R, Zs(b, Math.round(b), R / 1e3) ? b = Math.round(b) : b = Math.ceil(b));
|
|
8662
|
+
const _ = Math.max(ru(R), ru(O));
|
|
8663
8663
|
A = Math.pow(10, ft(l) ? _ : l), O = Math.round(O * A) / A, m = Math.round(m * A) / A;
|
|
8664
8664
|
let M = 0;
|
|
8665
8665
|
for (w && (h && O !== a ? (e.push({
|
|
8666
8666
|
value: a
|
|
8667
|
-
}), O < a && M++, Zs(Math.round((O + M *
|
|
8668
|
-
const C = Math.round((O + M *
|
|
8667
|
+
}), O < a && M++, Zs(Math.round((O + M * R) * A) / A, a, cd(a, k, n)) && M++) : O < a && M++); M < b; ++M) {
|
|
8668
|
+
const C = Math.round((O + M * R) * A) / A;
|
|
8669
8669
|
if (S && C > o)
|
|
8670
8670
|
break;
|
|
8671
8671
|
e.push({
|
|
@@ -9028,7 +9028,7 @@ class Vs extends Pa {
|
|
|
9028
9028
|
}
|
|
9029
9029
|
generateTickLabels(t) {
|
|
9030
9030
|
Pa.prototype.generateTickLabels.call(this, t), this._pointLabels = this.getLabels().map((e, i) => {
|
|
9031
|
-
const s =
|
|
9031
|
+
const s = Rt(this.options.pointLabels.callback, [
|
|
9032
9032
|
e,
|
|
9033
9033
|
i
|
|
9034
9034
|
], this);
|
|
@@ -9364,7 +9364,7 @@ class mr extends Oi {
|
|
|
9364
9364
|
_tickFormatFunction(t, e, i, s) {
|
|
9365
9365
|
const r = this.options, a = r.ticks.callback;
|
|
9366
9366
|
if (a)
|
|
9367
|
-
return
|
|
9367
|
+
return Rt(a, [
|
|
9368
9368
|
t,
|
|
9369
9369
|
e,
|
|
9370
9370
|
i
|
|
@@ -9568,7 +9568,7 @@ function Vf(n, t) {
|
|
|
9568
9568
|
const o = cs(a);
|
|
9569
9569
|
return e.getTime() >= r.getTime() ? i + 1 : e.getTime() >= o.getTime() ? i : i - 1;
|
|
9570
9570
|
}
|
|
9571
|
-
function
|
|
9571
|
+
function Ra(n) {
|
|
9572
9572
|
const t = pt(n), e = new Date(
|
|
9573
9573
|
Date.UTC(
|
|
9574
9574
|
t.getFullYear(),
|
|
@@ -9598,7 +9598,7 @@ function qf(n, t, e) {
|
|
|
9598
9598
|
e == null ? void 0 : e.in,
|
|
9599
9599
|
n,
|
|
9600
9600
|
t
|
|
9601
|
-
), r = jl(i), a = jl(s), o = +r -
|
|
9601
|
+
), r = jl(i), a = jl(s), o = +r - Ra(r), l = +a - Ra(a);
|
|
9602
9602
|
return Math.round((o - l) / Tv);
|
|
9603
9603
|
}
|
|
9604
9604
|
function Ov(n, t) {
|
|
@@ -9615,10 +9615,10 @@ function Av(n, t, e) {
|
|
|
9615
9615
|
function Pv(n, t, e) {
|
|
9616
9616
|
return kc(n, t * 1e3);
|
|
9617
9617
|
}
|
|
9618
|
-
function
|
|
9618
|
+
function Rv(n, t, e) {
|
|
9619
9619
|
return Ga(n, t * 7, e);
|
|
9620
9620
|
}
|
|
9621
|
-
function
|
|
9621
|
+
function Ev(n, t, e) {
|
|
9622
9622
|
return Dc(n, t * 12, e);
|
|
9623
9623
|
}
|
|
9624
9624
|
function ir(n, t) {
|
|
@@ -9880,7 +9880,7 @@ const tx = {
|
|
|
9880
9880
|
nextWeek: "eeee 'at' p",
|
|
9881
9881
|
other: "P"
|
|
9882
9882
|
}, rx = (n, t, e, i) => sx[n];
|
|
9883
|
-
function
|
|
9883
|
+
function Es(n) {
|
|
9884
9884
|
return (t, e) => {
|
|
9885
9885
|
const i = e != null && e.context ? String(e.context) : "standalone";
|
|
9886
9886
|
let s;
|
|
@@ -10022,24 +10022,24 @@ const ax = {
|
|
|
10022
10022
|
return e + "th";
|
|
10023
10023
|
}, fx = {
|
|
10024
10024
|
ordinalNumber: hx,
|
|
10025
|
-
era:
|
|
10025
|
+
era: Es({
|
|
10026
10026
|
values: ax,
|
|
10027
10027
|
defaultWidth: "wide"
|
|
10028
10028
|
}),
|
|
10029
|
-
quarter:
|
|
10029
|
+
quarter: Es({
|
|
10030
10030
|
values: ox,
|
|
10031
10031
|
defaultWidth: "wide",
|
|
10032
10032
|
argumentCallback: (n) => n - 1
|
|
10033
10033
|
}),
|
|
10034
|
-
month:
|
|
10034
|
+
month: Es({
|
|
10035
10035
|
values: lx,
|
|
10036
10036
|
defaultWidth: "wide"
|
|
10037
10037
|
}),
|
|
10038
|
-
day:
|
|
10038
|
+
day: Es({
|
|
10039
10039
|
values: cx,
|
|
10040
10040
|
defaultWidth: "wide"
|
|
10041
10041
|
}),
|
|
10042
|
-
dayPeriod:
|
|
10042
|
+
dayPeriod: Es({
|
|
10043
10043
|
values: ux,
|
|
10044
10044
|
defaultWidth: "wide",
|
|
10045
10045
|
formattingValues: dx,
|
|
@@ -10815,7 +10815,7 @@ const Sd = (n, t) => {
|
|
|
10815
10815
|
default:
|
|
10816
10816
|
return t.time({ width: "full" });
|
|
10817
10817
|
}
|
|
10818
|
-
},
|
|
10818
|
+
}, Rx = (n, t) => {
|
|
10819
10819
|
const e = n.match(/(P+)(p+)?/) || [], i = e[1], s = e[2];
|
|
10820
10820
|
if (!s)
|
|
10821
10821
|
return Sd(n, t);
|
|
@@ -10838,10 +10838,10 @@ const Sd = (n, t) => {
|
|
|
10838
10838
|
return r.replace("{{date}}", Sd(i, t)).replace("{{time}}", ng(s, t));
|
|
10839
10839
|
}, Vl = {
|
|
10840
10840
|
p: ng,
|
|
10841
|
-
P:
|
|
10842
|
-
},
|
|
10841
|
+
P: Rx
|
|
10842
|
+
}, Ex = /^D+$/, Ix = /^Y+$/, Lx = ["D", "DD", "YY", "YYYY"];
|
|
10843
10843
|
function ig(n) {
|
|
10844
|
-
return
|
|
10844
|
+
return Ex.test(n);
|
|
10845
10845
|
}
|
|
10846
10846
|
function sg(n) {
|
|
10847
10847
|
return Ix.test(n);
|
|
@@ -10855,7 +10855,7 @@ function Nx(n, t, e) {
|
|
|
10855
10855
|
return `Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${t}\`) for formatting ${i} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
10856
10856
|
}
|
|
10857
10857
|
const Fx = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, zx = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ux = /^'([^]*?)'?$/, Hx = /''/g, Bx = /[a-zA-Z]/;
|
|
10858
|
-
function
|
|
10858
|
+
function Ea(n, t, e) {
|
|
10859
10859
|
var u, d, h, f, g, y, v, w;
|
|
10860
10860
|
const i = Ci(), s = (e == null ? void 0 : e.locale) ?? i.locale ?? Jf, r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((d = (u = e == null ? void 0 : e.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((f = (h = i.locale) == null ? void 0 : h.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, a = (e == null ? void 0 : e.weekStartsOn) ?? ((y = (g = e == null ? void 0 : e.locale) == null ? void 0 : g.options) == null ? void 0 : y.weekStartsOn) ?? i.weekStartsOn ?? ((w = (v = i.locale) == null ? void 0 : v.options) == null ? void 0 : w.weekStartsOn) ?? 0, o = pt(n, e == null ? void 0 : e.in);
|
|
10861
10861
|
if (!Oc(o))
|
|
@@ -11694,7 +11694,7 @@ class dw extends kt {
|
|
|
11694
11694
|
return e.setMonth(0, s), e.setHours(0, 0, 0, 0), e;
|
|
11695
11695
|
}
|
|
11696
11696
|
}
|
|
11697
|
-
function
|
|
11697
|
+
function Rc(n, t, e) {
|
|
11698
11698
|
var d, h, f, g;
|
|
11699
11699
|
const i = Ci(), s = (e == null ? void 0 : e.weekStartsOn) ?? ((h = (d = e == null ? void 0 : e.locale) == null ? void 0 : d.options) == null ? void 0 : h.weekStartsOn) ?? i.weekStartsOn ?? ((g = (f = i.locale) == null ? void 0 : f.options) == null ? void 0 : g.weekStartsOn) ?? 0, r = pt(n, e == null ? void 0 : e.in), a = r.getDay(), l = (t % 7 + 7) % 7, c = 7 - s, u = t < 0 || t > 6 ? t - (a + c) % 7 : (l + c) % 7 - (a + c) % 7;
|
|
11700
11700
|
return Ga(r, u, e);
|
|
@@ -11733,7 +11733,7 @@ class hw extends kt {
|
|
|
11733
11733
|
return i >= 0 && i <= 6;
|
|
11734
11734
|
}
|
|
11735
11735
|
set(e, i, s, r) {
|
|
11736
|
-
return e =
|
|
11736
|
+
return e = Rc(e, s, r), e.setHours(0, 0, 0, 0), e;
|
|
11737
11737
|
}
|
|
11738
11738
|
}
|
|
11739
11739
|
class fw extends kt {
|
|
@@ -11798,7 +11798,7 @@ class fw extends kt {
|
|
|
11798
11798
|
return i >= 0 && i <= 6;
|
|
11799
11799
|
}
|
|
11800
11800
|
set(e, i, s, r) {
|
|
11801
|
-
return e =
|
|
11801
|
+
return e = Rc(e, s, r), e.setHours(0, 0, 0, 0), e;
|
|
11802
11802
|
}
|
|
11803
11803
|
}
|
|
11804
11804
|
class gw extends kt {
|
|
@@ -11863,7 +11863,7 @@ class gw extends kt {
|
|
|
11863
11863
|
return i >= 0 && i <= 6;
|
|
11864
11864
|
}
|
|
11865
11865
|
set(e, i, s, r) {
|
|
11866
|
-
return e =
|
|
11866
|
+
return e = Rc(e, s, r), e.setHours(0, 0, 0, 0), e;
|
|
11867
11867
|
}
|
|
11868
11868
|
}
|
|
11869
11869
|
function mw(n, t, e) {
|
|
@@ -12270,7 +12270,7 @@ class kw extends kt {
|
|
|
12270
12270
|
set(e, i, s) {
|
|
12271
12271
|
return i.timestampIsSet ? e : Gt(
|
|
12272
12272
|
e,
|
|
12273
|
-
e.getTime() -
|
|
12273
|
+
e.getTime() - Ra(e) - s
|
|
12274
12274
|
);
|
|
12275
12275
|
}
|
|
12276
12276
|
}
|
|
@@ -12307,7 +12307,7 @@ class Ow extends kt {
|
|
|
12307
12307
|
set(e, i, s) {
|
|
12308
12308
|
return i.timestampIsSet ? e : Gt(
|
|
12309
12309
|
e,
|
|
12310
|
-
e.getTime() -
|
|
12310
|
+
e.getTime() - Ra(e) - s
|
|
12311
12311
|
);
|
|
12312
12312
|
}
|
|
12313
12313
|
}
|
|
@@ -12369,24 +12369,24 @@ const Pw = {
|
|
|
12369
12369
|
x: new Ow(),
|
|
12370
12370
|
t: new Cw(),
|
|
12371
12371
|
T: new Aw()
|
|
12372
|
-
},
|
|
12372
|
+
}, Rw = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ew = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Iw = /^'([^]*?)'?$/, Lw = /''/g, Nw = /\S/, Fw = /[a-zA-Z]/;
|
|
12373
12373
|
function zw(n, t, e, i) {
|
|
12374
|
-
var v, w, S, D, k,
|
|
12375
|
-
const s = () => Gt((i == null ? void 0 : i.in) || e, NaN), r = rg(), a = (i == null ? void 0 : i.locale) ?? r.locale ?? Jf, o = (i == null ? void 0 : i.firstWeekContainsDate) ?? ((w = (v = i == null ? void 0 : i.locale) == null ? void 0 : v.options) == null ? void 0 : w.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((D = (S = r.locale) == null ? void 0 : S.options) == null ? void 0 : D.firstWeekContainsDate) ?? 1, l = (i == null ? void 0 : i.weekStartsOn) ?? ((
|
|
12374
|
+
var v, w, S, D, k, R, A, O;
|
|
12375
|
+
const s = () => Gt((i == null ? void 0 : i.in) || e, NaN), r = rg(), a = (i == null ? void 0 : i.locale) ?? r.locale ?? Jf, o = (i == null ? void 0 : i.firstWeekContainsDate) ?? ((w = (v = i == null ? void 0 : i.locale) == null ? void 0 : v.options) == null ? void 0 : w.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((D = (S = r.locale) == null ? void 0 : S.options) == null ? void 0 : D.firstWeekContainsDate) ?? 1, l = (i == null ? void 0 : i.weekStartsOn) ?? ((R = (k = i == null ? void 0 : i.locale) == null ? void 0 : k.options) == null ? void 0 : R.weekStartsOn) ?? r.weekStartsOn ?? ((O = (A = r.locale) == null ? void 0 : A.options) == null ? void 0 : O.weekStartsOn) ?? 0;
|
|
12376
12376
|
if (!t)
|
|
12377
12377
|
return n ? s() : pt(e, i == null ? void 0 : i.in);
|
|
12378
12378
|
const c = {
|
|
12379
12379
|
firstWeekContainsDate: o,
|
|
12380
12380
|
weekStartsOn: l,
|
|
12381
12381
|
locale: a
|
|
12382
|
-
}, u = [new Gx(i == null ? void 0 : i.in, e)], d = t.match(
|
|
12382
|
+
}, u = [new Gx(i == null ? void 0 : i.in, e)], d = t.match(Ew).map((m) => {
|
|
12383
12383
|
const b = m[0];
|
|
12384
12384
|
if (b in Vl) {
|
|
12385
12385
|
const _ = Vl[b];
|
|
12386
12386
|
return _(m, a.formatLong);
|
|
12387
12387
|
}
|
|
12388
12388
|
return m;
|
|
12389
|
-
}).join("").match(
|
|
12389
|
+
}).join("").match(Rw), h = [];
|
|
12390
12390
|
for (let m of d) {
|
|
12391
12391
|
!(i != null && i.useAdditionalWeekYearTokens) && sg(m) && ql(m, t, n), !(i != null && i.useAdditionalDayOfYearTokens) && ig(m) && ql(m, t, n);
|
|
12392
12392
|
const b = m[0], _ = Pw[b];
|
|
@@ -13282,7 +13282,7 @@ const k1 = {
|
|
|
13282
13282
|
evening: "evening",
|
|
13283
13283
|
night: "night"
|
|
13284
13284
|
}
|
|
13285
|
-
},
|
|
13285
|
+
}, R1 = {
|
|
13286
13286
|
narrow: {
|
|
13287
13287
|
am: "a",
|
|
13288
13288
|
pm: "p",
|
|
@@ -13313,7 +13313,7 @@ const k1 = {
|
|
|
13313
13313
|
evening: "in the evening",
|
|
13314
13314
|
night: "at night"
|
|
13315
13315
|
}
|
|
13316
|
-
},
|
|
13316
|
+
}, E1 = (n, t) => {
|
|
13317
13317
|
const e = Number(n), i = e % 100;
|
|
13318
13318
|
if (i > 20 || i < 10)
|
|
13319
13319
|
switch (i % 10) {
|
|
@@ -13326,7 +13326,7 @@ const k1 = {
|
|
|
13326
13326
|
}
|
|
13327
13327
|
return e + "th";
|
|
13328
13328
|
}, I1 = {
|
|
13329
|
-
ordinalNumber:
|
|
13329
|
+
ordinalNumber: E1,
|
|
13330
13330
|
era: Ns({
|
|
13331
13331
|
values: k1,
|
|
13332
13332
|
defaultWidth: "wide"
|
|
@@ -13347,7 +13347,7 @@ const k1 = {
|
|
|
13347
13347
|
dayPeriod: Ns({
|
|
13348
13348
|
values: P1,
|
|
13349
13349
|
defaultWidth: "wide",
|
|
13350
|
-
formattingValues:
|
|
13350
|
+
formattingValues: R1,
|
|
13351
13351
|
defaultFormattingWidth: "wide"
|
|
13352
13352
|
})
|
|
13353
13353
|
};
|
|
@@ -14329,15 +14329,15 @@ function Mg(n, t, e) {
|
|
|
14329
14329
|
}
|
|
14330
14330
|
function Pd(n, t, e) {
|
|
14331
14331
|
const i = AS(), s = IS(n, e.timeZone, e.locale ?? i.locale);
|
|
14332
|
-
return "formatToParts" in s ?
|
|
14332
|
+
return "formatToParts" in s ? RS(s, t) : ES(s, t);
|
|
14333
14333
|
}
|
|
14334
|
-
function
|
|
14334
|
+
function RS(n, t) {
|
|
14335
14335
|
const e = n.formatToParts(t);
|
|
14336
14336
|
for (let i = e.length - 1; i >= 0; --i)
|
|
14337
14337
|
if (e[i].type === "timeZoneName")
|
|
14338
14338
|
return e[i].value;
|
|
14339
14339
|
}
|
|
14340
|
-
function
|
|
14340
|
+
function ES(n, t) {
|
|
14341
14341
|
const e = n.format(t).replace(/\u200E/g, ""), i = / [\w-+ ]+$/.exec(e);
|
|
14342
14342
|
return i ? i[0].substr(1) : "";
|
|
14343
14343
|
}
|
|
@@ -14384,7 +14384,7 @@ function zS(n, t) {
|
|
|
14384
14384
|
parseInt(i[6], 10)
|
|
14385
14385
|
];
|
|
14386
14386
|
}
|
|
14387
|
-
const rl = {},
|
|
14387
|
+
const rl = {}, Rd = new Intl.DateTimeFormat("en-US", {
|
|
14388
14388
|
hourCycle: "h23",
|
|
14389
14389
|
timeZone: "America/New_York",
|
|
14390
14390
|
year: "numeric",
|
|
@@ -14393,7 +14393,7 @@ const rl = {}, Ed = new Intl.DateTimeFormat("en-US", {
|
|
|
14393
14393
|
hour: "2-digit",
|
|
14394
14394
|
minute: "2-digit",
|
|
14395
14395
|
second: "2-digit"
|
|
14396
|
-
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), US =
|
|
14396
|
+
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), US = Rd === "06/25/2014, 00:00:00" || Rd === "06/25/2014 00:00:00";
|
|
14397
14397
|
function HS(n) {
|
|
14398
14398
|
return rl[n] || (rl[n] = US ? new Intl.DateTimeFormat("en-US", {
|
|
14399
14399
|
hourCycle: "h23",
|
|
@@ -14415,11 +14415,11 @@ function HS(n) {
|
|
|
14415
14415
|
second: "2-digit"
|
|
14416
14416
|
})), rl[n];
|
|
14417
14417
|
}
|
|
14418
|
-
function
|
|
14418
|
+
function Ec(n, t, e, i, s, r, a) {
|
|
14419
14419
|
const o = /* @__PURE__ */ new Date(0);
|
|
14420
14420
|
return o.setUTCFullYear(n, t, e), o.setUTCHours(i, s, r, a), o;
|
|
14421
14421
|
}
|
|
14422
|
-
const
|
|
14422
|
+
const Ed = 36e5, BS = 6e4, al = {
|
|
14423
14423
|
timezoneZ: /^(Z)$/,
|
|
14424
14424
|
timezoneHH: /^([+-]\d{2})$/,
|
|
14425
14425
|
timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
|
|
@@ -14432,11 +14432,11 @@ function Dr(n, t, e) {
|
|
|
14432
14432
|
return 0;
|
|
14433
14433
|
let s, r;
|
|
14434
14434
|
if (i = al.timezoneHH.exec(n), i)
|
|
14435
|
-
return s = parseInt(i[1], 10), Id(s) ? -(s *
|
|
14435
|
+
return s = parseInt(i[1], 10), Id(s) ? -(s * Ed) : NaN;
|
|
14436
14436
|
if (i = al.timezoneHHMM.exec(n), i) {
|
|
14437
14437
|
s = parseInt(i[2], 10);
|
|
14438
14438
|
const a = parseInt(i[3], 10);
|
|
14439
|
-
return Id(s, a) ? (r = Math.abs(s) *
|
|
14439
|
+
return Id(s, a) ? (r = Math.abs(s) * Ed + a * BS, i[1] === "+" ? -r : r) : NaN;
|
|
14440
14440
|
}
|
|
14441
14441
|
if (YS(n)) {
|
|
14442
14442
|
t = new Date(t || Date.now());
|
|
@@ -14446,10 +14446,10 @@ function Dr(n, t, e) {
|
|
|
14446
14446
|
return NaN;
|
|
14447
14447
|
}
|
|
14448
14448
|
function WS(n) {
|
|
14449
|
-
return
|
|
14449
|
+
return Ec(n.getFullYear(), n.getMonth(), n.getDate(), n.getHours(), n.getMinutes(), n.getSeconds(), n.getMilliseconds());
|
|
14450
14450
|
}
|
|
14451
14451
|
function Gl(n, t) {
|
|
14452
|
-
const e = LS(n, t), i =
|
|
14452
|
+
const e = LS(n, t), i = Ec(e[0], e[1] - 1, e[2], e[3] % 24, e[4], e[5], 0).getTime();
|
|
14453
14453
|
let s = n.getTime();
|
|
14454
14454
|
const r = s % 1e3;
|
|
14455
14455
|
return s -= r >= 0 ? r : 1e3 + r, i - s;
|
|
@@ -14767,7 +14767,7 @@ function sT(n, t, e) {
|
|
|
14767
14767
|
if (typeof n == "string" && !n.match(Dg))
|
|
14768
14768
|
return Fa(n, { ...e, timeZone: t });
|
|
14769
14769
|
n = Fa(n, e);
|
|
14770
|
-
const i =
|
|
14770
|
+
const i = Ec(n.getFullYear(), n.getMonth(), n.getDate(), n.getHours(), n.getMinutes(), n.getSeconds(), n.getMilliseconds()).getTime(), s = Dr(t, new Date(i));
|
|
14771
14771
|
return new Date(i + s);
|
|
14772
14772
|
}
|
|
14773
14773
|
function rT(n, t) {
|
|
@@ -14823,9 +14823,9 @@ function ul(n) {
|
|
|
14823
14823
|
var la = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, za = { exports: {} };
|
|
14824
14824
|
za.exports;
|
|
14825
14825
|
(function(n, t) {
|
|
14826
|
-
var e = 200, i = "__lodash_hash_undefined__", s = 9007199254740991, r = "[object Arguments]", a = "[object Array]", o = "[object Boolean]", l = "[object Date]", c = "[object Error]", u = "[object Function]", d = "[object GeneratorFunction]", h = "[object Map]", f = "[object Number]", g = "[object Object]", y = "[object Promise]", v = "[object RegExp]", w = "[object Set]", S = "[object String]", D = "[object Symbol]", k = "[object WeakMap]",
|
|
14827
|
-
j[r] = j[a] = j[
|
|
14828
|
-
var
|
|
14826
|
+
var e = 200, i = "__lodash_hash_undefined__", s = 9007199254740991, r = "[object Arguments]", a = "[object Array]", o = "[object Boolean]", l = "[object Date]", c = "[object Error]", u = "[object Function]", d = "[object GeneratorFunction]", h = "[object Map]", f = "[object Number]", g = "[object Object]", y = "[object Promise]", v = "[object RegExp]", w = "[object Set]", S = "[object String]", D = "[object Symbol]", k = "[object WeakMap]", R = "[object ArrayBuffer]", A = "[object DataView]", O = "[object Float32Array]", m = "[object Float64Array]", b = "[object Int8Array]", _ = "[object Int16Array]", M = "[object Int32Array]", C = "[object Uint8Array]", B = "[object Uint8ClampedArray]", L = "[object Uint16Array]", W = "[object Uint32Array]", F = /[\\^$.*+?()[\]{}|]/g, H = /\w*$/, V = /^\[object .+?Constructor\]$/, q = /^(?:0|[1-9]\d*)$/, j = {};
|
|
14827
|
+
j[r] = j[a] = j[R] = j[A] = j[o] = j[l] = j[O] = j[m] = j[b] = j[_] = j[M] = j[h] = j[f] = j[g] = j[v] = j[w] = j[S] = j[D] = j[C] = j[B] = j[L] = j[W] = !0, j[c] = j[u] = j[k] = !1;
|
|
14828
|
+
var E = typeof la == "object" && la && la.Object === Object && la, z = typeof self == "object" && self && self.Object === Object && self, $ = E || z || Function("return this")(), at = t && !t.nodeType && t, it = at && !0 && n && !n.nodeType && n, G = it && it.exports === at;
|
|
14829
14829
|
function K(x, I) {
|
|
14830
14830
|
return x.set(I[0], I[1]), x;
|
|
14831
14831
|
}
|
|
@@ -14886,7 +14886,7 @@ za.exports;
|
|
|
14886
14886
|
return x ? "Symbol(src)_1." + x : "";
|
|
14887
14887
|
}(), an = Ot.toString, It = fe.hasOwnProperty, ge = fe.toString, Yt = RegExp(
|
|
14888
14888
|
"^" + an.call(It).replace(F, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
14889
|
-
), se = G ? $.Buffer : void 0, me = $.Symbol, on = $.Uint8Array, ai = yt(Object.getPrototypeOf, Object), tn = Object.create, jt = fe.propertyIsEnumerable, Oe = gt.splice, oi = Object.getOwnPropertySymbols, Ar = se ? se.isBuffer : void 0, Pr = yt(Object.keys, Object), ys = Ln($, "DataView"), li = Ln($, "Map"), bs = Ln($, "Promise"), ci = Ln($, "Set"), mn = Ln($, "WeakMap"), pn = Ln(Object, "create"), _s = be(ys), vs = be(li), ui = be(bs), so = be(ci), ro = be(mn),
|
|
14889
|
+
), se = G ? $.Buffer : void 0, me = $.Symbol, on = $.Uint8Array, ai = yt(Object.getPrototypeOf, Object), tn = Object.create, jt = fe.propertyIsEnumerable, Oe = gt.splice, oi = Object.getOwnPropertySymbols, Ar = se ? se.isBuffer : void 0, Pr = yt(Object.keys, Object), ys = Ln($, "DataView"), li = Ln($, "Map"), bs = Ln($, "Promise"), ci = Ln($, "Set"), mn = Ln($, "WeakMap"), pn = Ln(Object, "create"), _s = be(ys), vs = be(li), ui = be(bs), so = be(ci), ro = be(mn), Rr = me ? me.prototype : void 0, Er = Rr ? Rr.valueOf : void 0;
|
|
14890
14890
|
function yn(x) {
|
|
14891
14891
|
var I = -1, Y = x ? x.length : 0;
|
|
14892
14892
|
for (this.clear(); ++I < Y; ) {
|
|
@@ -14946,7 +14946,7 @@ za.exports;
|
|
|
14946
14946
|
return st < 0 ? Y.push([x, I]) : Y[st][1] = I, this;
|
|
14947
14947
|
}
|
|
14948
14948
|
en.prototype.clear = oo, en.prototype.delete = lo, en.prototype.get = co, en.prototype.has = nn, en.prototype.set = uo;
|
|
14949
|
-
function
|
|
14949
|
+
function En(x) {
|
|
14950
14950
|
var I = -1, Y = x ? x.length : 0;
|
|
14951
14951
|
for (this.clear(); ++I < Y; ) {
|
|
14952
14952
|
var st = x[I];
|
|
@@ -14972,7 +14972,7 @@ za.exports;
|
|
|
14972
14972
|
function mo(x, I) {
|
|
14973
14973
|
return Ui(this, x).set(x, I), this;
|
|
14974
14974
|
}
|
|
14975
|
-
|
|
14975
|
+
En.prototype.clear = ho, En.prototype.delete = fo, En.prototype.get = go, En.prototype.has = sn, En.prototype.set = mo;
|
|
14976
14976
|
function In(x) {
|
|
14977
14977
|
this.__data__ = new en(x);
|
|
14978
14978
|
}
|
|
@@ -14994,7 +14994,7 @@ za.exports;
|
|
|
14994
14994
|
var st = Y.__data__;
|
|
14995
14995
|
if (!li || st.length < e - 1)
|
|
14996
14996
|
return st.push([x, I]), this;
|
|
14997
|
-
Y = this.__data__ = new
|
|
14997
|
+
Y = this.__data__ = new En(st);
|
|
14998
14998
|
}
|
|
14999
14999
|
return Y.set(x, I), this;
|
|
15000
15000
|
}
|
|
@@ -15027,7 +15027,7 @@ za.exports;
|
|
|
15027
15027
|
var Wr = Ms(x);
|
|
15028
15028
|
if (Wr) {
|
|
15029
15029
|
if (le = Lo(x), !I)
|
|
15030
|
-
return
|
|
15030
|
+
return Ro(x, le);
|
|
15031
15031
|
} else {
|
|
15032
15032
|
var Nn = ln(x), $r = Nn == u || Nn == d;
|
|
15033
15033
|
if (Ur(x))
|
|
@@ -15036,7 +15036,7 @@ za.exports;
|
|
|
15036
15036
|
if (lt(x))
|
|
15037
15037
|
return re ? x : {};
|
|
15038
15038
|
if (le = Fr($r ? {} : x), !I)
|
|
15039
|
-
return
|
|
15039
|
+
return Eo(x, xo(le, x));
|
|
15040
15040
|
} else {
|
|
15041
15041
|
if (!j[Nn])
|
|
15042
15042
|
return re ? x : {};
|
|
@@ -15104,13 +15104,13 @@ za.exports;
|
|
|
15104
15104
|
return tt(st, J, new x.constructor());
|
|
15105
15105
|
}
|
|
15106
15106
|
function Ao(x) {
|
|
15107
|
-
return
|
|
15107
|
+
return Er ? Object(Er.call(x)) : {};
|
|
15108
15108
|
}
|
|
15109
15109
|
function Po(x, I) {
|
|
15110
15110
|
var Y = I ? zi(x.buffer) : x.buffer;
|
|
15111
15111
|
return new x.constructor(Y, x.byteOffset, x.length);
|
|
15112
15112
|
}
|
|
15113
|
-
function
|
|
15113
|
+
function Ro(x, I) {
|
|
15114
15114
|
var Y = -1, st = x.length;
|
|
15115
15115
|
for (I || (I = Array(st)); ++Y < st; )
|
|
15116
15116
|
I[Y] = x[Y];
|
|
@@ -15124,7 +15124,7 @@ za.exports;
|
|
|
15124
15124
|
}
|
|
15125
15125
|
return Y;
|
|
15126
15126
|
}
|
|
15127
|
-
function
|
|
15127
|
+
function Eo(x, I) {
|
|
15128
15128
|
return Lr(x, Nr(x), I);
|
|
15129
15129
|
}
|
|
15130
15130
|
function Io(x) {
|
|
@@ -15166,7 +15166,7 @@ za.exports;
|
|
|
15166
15166
|
function No(x, I, Y, st) {
|
|
15167
15167
|
var Xt = x.constructor;
|
|
15168
15168
|
switch (I) {
|
|
15169
|
-
case
|
|
15169
|
+
case R:
|
|
15170
15170
|
return zi(x);
|
|
15171
15171
|
case o:
|
|
15172
15172
|
case l:
|
|
@@ -15770,7 +15770,7 @@ const Ua = (n) => ["interactive", "zoom-interactive"].includes(n), Ag = (n, t, e
|
|
|
15770
15770
|
const r = n.y ?? 0;
|
|
15771
15771
|
return r < e ? r + t * 0.15 : r - t * 0.5;
|
|
15772
15772
|
};
|
|
15773
|
-
function
|
|
15773
|
+
function Rg(n, t) {
|
|
15774
15774
|
let e;
|
|
15775
15775
|
return (...i) => {
|
|
15776
15776
|
clearTimeout(e), e = window.setTimeout(() => {
|
|
@@ -15778,7 +15778,7 @@ function Eg(n, t) {
|
|
|
15778
15778
|
}, t);
|
|
15779
15779
|
};
|
|
15780
15780
|
}
|
|
15781
|
-
const
|
|
15781
|
+
const Eg = (n, t, e) => {
|
|
15782
15782
|
const i = n.data;
|
|
15783
15783
|
return n.options.plugins.legend.labels.generateLabels(n).filter((s) => {
|
|
15784
15784
|
var r;
|
|
@@ -15788,7 +15788,7 @@ const Rg = (n, t, e) => {
|
|
|
15788
15788
|
value: t && t[s.text],
|
|
15789
15789
|
isSegmentEmpty: i.datasets[r].isSegmentEmpty
|
|
15790
15790
|
})).sort(e);
|
|
15791
|
-
}, JP = 2, MT = 10, DT = 12, Xl = 10, kT = "#f1f0ff", OT = "#e0e4ea", Kd = "#6c7489", CT = "#afb7c5", AT = "#d60027", PT = "#ad000e", Lc = "#6c7489", Xd = "#52596e",
|
|
15791
|
+
}, JP = 2, MT = 10, DT = 12, Xl = 10, kT = "#f1f0ff", OT = "#e0e4ea", Kd = "#6c7489", CT = "#afb7c5", AT = "#d60027", PT = "#ad000e", Lc = "#6c7489", Xd = "#52596e", RT = "#007d60", ET = "#995c00", IT = "#ffc400", pr = "16px", LT = "20px", NT = "#bee2ff", FT = "#8fc1ff", zT = "#5f9aff", UT = "#306fff", HT = "#b5ffee", BT = "#00fabe", WT = "#00d6a4", $T = "#00a17b", YT = "#007d60", jT = "#005944", VT = "#b5ffee", qT = "#00fabe", GT = "#b5ffee", KT = "#00a17b", XT = "#fff296", ZT = "#ffe04b", QT = "#ffc400", JT = "#b37600", tM = "#995c00", eM = "#804400", nM = "#fff296", iM = "#ffe04b", sM = "#FFC2B3", rM = "#FF9877", aM = "#FF723C", oM = "#F75008", lM = "#D13500", cM = "#A31F00", uM = "#FFC2B3", dM = "#FF9877", hM = "#FF723C", fM = "#F75008", gM = "#D13500", mM = "#A31F00", pM = "#FFC2B3", yM = "#FF9877", bM = "#FF723C", _M = "#F75008", vM = "#D13500", xM = "#A31F00", wM = "#FFC2B3", SM = "#FF9877", TM = "#FF723C", MM = "#F75008", DM = "#D13500", kM = "#A31F00", OM = "#FFC2B3", CM = "#FF9877", AM = "#FF723C", PM = "#F75008", RM = "#D13500", EM = "#ffabab", IM = "#ff7272", LM = "#ff3954", NM = "#f50045", FM = "#d60027", zM = "#ad000e", UM = "#ffabab", HM = "#ff7272", BM = "#ff3954", WM = "#f50045", $M = "#d60027", YM = "#eefaff", jM = "#ecfffb", VM = "#fffce0", qM = "#FFF1EF", GM = "#ffe5e5", KM = "#5f9aff", XM = "#00d6a4", ZM = "#ffc400", QM = "#FF723C", JM = "#ff3954", tD = "'Inter', Roboto, Helvetica, sans-serif", ei = [
|
|
15792
15792
|
"#a86cd5",
|
|
15793
15793
|
"#6a86d2",
|
|
15794
15794
|
"#00bbf9",
|
|
@@ -15800,7 +15800,7 @@ const Rg = (n, t, e) => {
|
|
|
15800
15800
|
300: { background: "#fff1d5", text: "#a06027" },
|
|
15801
15801
|
400: { background: "#fee3b6", text: "#944d19" },
|
|
15802
15802
|
500: { background: "#fedada", text: "#852021" }
|
|
15803
|
-
},
|
|
15803
|
+
}, tR = (n) => {
|
|
15804
15804
|
var e;
|
|
15805
15805
|
const t = Math.floor(parseInt(n, 10) / 100) * 100;
|
|
15806
15806
|
return ((e = nD[t]) == null ? void 0 : e.background) || "#fafafa";
|
|
@@ -15887,8 +15887,8 @@ const Rg = (n, t, e) => {
|
|
|
15887
15887
|
428: CM,
|
|
15888
15888
|
429: AM,
|
|
15889
15889
|
431: PM,
|
|
15890
|
-
451:
|
|
15891
|
-
500:
|
|
15890
|
+
451: RM,
|
|
15891
|
+
500: EM,
|
|
15892
15892
|
501: IM,
|
|
15893
15893
|
502: LM,
|
|
15894
15894
|
503: NM,
|
|
@@ -16108,7 +16108,7 @@ const AD = 60 * 1e3, PD = {
|
|
|
16108
16108
|
case "O":
|
|
16109
16109
|
case "OO":
|
|
16110
16110
|
case "OOO":
|
|
16111
|
-
return "GMT" +
|
|
16111
|
+
return "GMT" + RD(i, ":");
|
|
16112
16112
|
case "OOOO":
|
|
16113
16113
|
default:
|
|
16114
16114
|
return "GMT" + Zi(i, ":");
|
|
@@ -16147,7 +16147,7 @@ function Zi(n, t = "") {
|
|
|
16147
16147
|
function ih(n, t) {
|
|
16148
16148
|
return n % 60 === 0 ? (n > 0 ? "-" : "+") + Ha(Math.abs(n) / 60, 2) : Zi(n, t);
|
|
16149
16149
|
}
|
|
16150
|
-
function
|
|
16150
|
+
function RD(n, t = "") {
|
|
16151
16151
|
const e = n > 0 ? "-" : "+", i = Math.abs(n), s = Math.floor(i / 60), r = i % 60;
|
|
16152
16152
|
return r === 0 ? e + String(s) : e + String(s) + t + Ha(r, 2);
|
|
16153
16153
|
}
|
|
@@ -16155,7 +16155,7 @@ function sh(n) {
|
|
|
16155
16155
|
const t = new Date(Date.UTC(n.getFullYear(), n.getMonth(), n.getDate(), n.getHours(), n.getMinutes(), n.getSeconds(), n.getMilliseconds()));
|
|
16156
16156
|
return t.setUTCFullYear(n.getFullYear()), +n - +t;
|
|
16157
16157
|
}
|
|
16158
|
-
const
|
|
16158
|
+
const ED = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, yl = 36e5, rh = 6e4, ID = 2, ke = {
|
|
16159
16159
|
dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
|
|
16160
16160
|
datePattern: /^([0-9W+-]+)(.*)/,
|
|
16161
16161
|
// year tokens
|
|
@@ -16187,7 +16187,7 @@ const RD = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)
|
|
|
16187
16187
|
HHMM: /^(\d{2}):?(\d{2}([.,]\d*)?)$/,
|
|
16188
16188
|
HHMMSS: /^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,
|
|
16189
16189
|
// time zone tokens (to identify the presence of a tz)
|
|
16190
|
-
timeZone:
|
|
16190
|
+
timeZone: ED
|
|
16191
16191
|
};
|
|
16192
16192
|
function Ng(n, t = {}) {
|
|
16193
16193
|
if (arguments.length < 1)
|
|
@@ -16341,7 +16341,7 @@ function Jl(n, t, e = {}) {
|
|
|
16341
16341
|
return l ? c.substring(0, o - 1) + c.substring(o + 1) : c;
|
|
16342
16342
|
}, t);
|
|
16343
16343
|
}
|
|
16344
|
-
return
|
|
16344
|
+
return Ea(n, t, e);
|
|
16345
16345
|
}
|
|
16346
16346
|
function $D(n, t, e) {
|
|
16347
16347
|
n = Ng(n, e);
|
|
@@ -16424,7 +16424,7 @@ const GD = ({
|
|
|
16424
16424
|
timezone: e,
|
|
16425
16425
|
tooltipMap: qD,
|
|
16426
16426
|
defaultFormat: "MMM dd, yyyy h:mm:ss a"
|
|
16427
|
-
}),
|
|
16427
|
+
}), eR = (n) => {
|
|
16428
16428
|
var e, i, s, r, a;
|
|
16429
16429
|
const { i18n: t } = vt.useI18n();
|
|
16430
16430
|
return (n == null ? void 0 : n.status) === 403 ? {
|
|
@@ -16477,9 +16477,9 @@ function XD(n) {
|
|
|
16477
16477
|
y: g - n.tooltipState.offsetY,
|
|
16478
16478
|
xAlign: y
|
|
16479
16479
|
};
|
|
16480
|
-
},
|
|
16480
|
+
}, El.modes.customInteractionMode = function(l, c) {
|
|
16481
16481
|
const u = $n(c, l), d = [];
|
|
16482
|
-
return
|
|
16482
|
+
return El.evaluateInteractionItems(l, l.options.indexAxis || "x", u, (h, f, g) => {
|
|
16483
16483
|
l.options.indexAxis === "y" && h.inYRange(u.y, !0) && l.data.datasets[f].data[g] && d.push({ element: h, datasetIndex: f, index: g }), l.options.indexAxis === "x" && u.x !== null && h.inXRange(u.x, !0) && l.data.datasets[f].data[g] && d.push({ element: h, datasetIndex: f, index: g });
|
|
16484
16484
|
}), d;
|
|
16485
16485
|
};
|
|
@@ -16928,7 +16928,7 @@ function rk(n, t) {
|
|
|
16928
16928
|
name: Kl(b.id) || b.name
|
|
16929
16929
|
}))), h !== "status_code" && h !== "status_code_grouped" && (D.sort((b, _) => v.indexOf(b.id) - v.indexOf(_.id)), k.sort((b, _) => v.indexOf(b.id) - v.indexOf(_.id))), !D || !k)
|
|
16930
16930
|
return { labels: [], datasets: [] };
|
|
16931
|
-
const
|
|
16931
|
+
const R = sk({
|
|
16932
16932
|
isMultiMetric: l,
|
|
16933
16933
|
hasDimensions: c,
|
|
16934
16934
|
metricNames: a,
|
|
@@ -16940,7 +16940,7 @@ function rk(n, t) {
|
|
|
16940
16940
|
}), A = c ? D.map((b) => e && e.te(`chartLabels.${b.name}`) && e.t(`chartLabels.${b.name}`) || b.name) : a.map((b) => e && e.te(`chartLabels.${b}`) && e.t(`chartLabels.${b}`) || b), O = D.map((b) => b.id === "empty");
|
|
16941
16941
|
return {
|
|
16942
16942
|
labels: A,
|
|
16943
|
-
datasets:
|
|
16943
|
+
datasets: R,
|
|
16944
16944
|
isLabelEmpty: O,
|
|
16945
16945
|
isMultiDimension: u
|
|
16946
16946
|
};
|
|
@@ -17000,7 +17000,7 @@ function ck(n, t) {
|
|
|
17000
17000
|
b[h] === M.id || _ === M.id ? (A[m][_] || (A[m][_] = {}), A[m][_][M.name] = Math.round(Number(b[_]) * 1e3) / 1e3) : d.length || (A[m][_] || (A[m][_] = {}), A[m][_][M.name] = Math.round(Number(b[M.id]) * 1e3) / 1e3);
|
|
17001
17001
|
});
|
|
17002
17002
|
return A;
|
|
17003
|
-
}, {}) : {},
|
|
17003
|
+
}, {}) : {}, R = [...a.length === 1 ? a.flatMap((A) => g.map((O) => [A, O.name, O.id === "empty"])) : g.map((A) => [A.name, A.name, A.id === "empty"])].map(([A, O, m], b) => {
|
|
17004
17004
|
const _ = w.map((L) => L in D && A in D[L] ? { x: L, y: D[L][A][O] || 0 } : { x: L, y: 0 });
|
|
17005
17005
|
let { colorPalette: M, fill: C } = n;
|
|
17006
17006
|
ft(M) && (M = ei);
|
|
@@ -17020,8 +17020,8 @@ function ck(n, t) {
|
|
|
17020
17020
|
isSegmentEmpty: m
|
|
17021
17021
|
};
|
|
17022
17022
|
});
|
|
17023
|
-
return h === "status_code" || h === "status_code_grouped" ?
|
|
17024
|
-
datasets:
|
|
17023
|
+
return h === "status_code" || h === "status_code_grouped" ? R.sort((A, O) => (A.label ?? "") < (O.label ?? "") ? -1 : 1) : R.sort((A, O) => Number(A.total) < Number(O.total) ? -1 : 1), {
|
|
17024
|
+
datasets: R
|
|
17025
17025
|
};
|
|
17026
17026
|
}
|
|
17027
17027
|
} catch (s) {
|
|
@@ -17061,7 +17061,7 @@ function fk() {
|
|
|
17061
17061
|
};
|
|
17062
17062
|
}
|
|
17063
17063
|
function Ug(n, t) {
|
|
17064
|
-
return
|
|
17064
|
+
return Rm() ? (Em(n, t), !0) : !1;
|
|
17065
17065
|
}
|
|
17066
17066
|
const Hg = typeof window < "u" && typeof document < "u";
|
|
17067
17067
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
@@ -17176,19 +17176,19 @@ function Sk(n) {
|
|
|
17176
17176
|
}
|
|
17177
17177
|
function Tk(n, t = {}) {
|
|
17178
17178
|
var e, i, s, r;
|
|
17179
|
-
const { pointerTypes: a, preventDefault: o, stopPropagation: l, exact: c, onMove: u, onEnd: d, onStart: h, initialValue: f, axis: g = "both", draggingElement: y = Ka, containerElement: v, handle: w = n, buttons: S = [0], restrictInView: D, autoScroll: k = !1 } = t,
|
|
17179
|
+
const { pointerTypes: a, preventDefault: o, stopPropagation: l, exact: c, onMove: u, onEnd: d, onStart: h, initialValue: f, axis: g = "both", draggingElement: y = Ka, containerElement: v, handle: w = n, buttons: S = [0], restrictInView: D, autoScroll: k = !1 } = t, R = qt((e = Dt(f)) !== null && e !== void 0 ? e : {
|
|
17180
17180
|
x: 0,
|
|
17181
17181
|
y: 0
|
|
17182
|
-
}), A = qt(), O = (
|
|
17183
|
-
Dt(o) &&
|
|
17182
|
+
}), A = qt(), O = (E) => a ? a.includes(E.pointerType) : !0, m = (E) => {
|
|
17183
|
+
Dt(o) && E.preventDefault(), Dt(l) && E.stopPropagation();
|
|
17184
17184
|
}, b = Dt(k), _ = typeof b == "object" ? {
|
|
17185
17185
|
speed: (i = Dt(b.speed)) !== null && i !== void 0 ? i : ca.speed,
|
|
17186
17186
|
margin: (s = Dt(b.margin)) !== null && s !== void 0 ? s : ca.margin,
|
|
17187
17187
|
direction: (r = b.direction) !== null && r !== void 0 ? r : ca.direction
|
|
17188
|
-
} : ca, M = (
|
|
17189
|
-
const { clientWidth: at, clientHeight: it, scrollLeft: G, scrollTop: K, scrollWidth: J, scrollHeight: nt } =
|
|
17188
|
+
} : ca, M = (E) => typeof E == "number" ? [E, E] : [E.x, E.y], C = (E, z, $) => {
|
|
17189
|
+
const { clientWidth: at, clientHeight: it, scrollLeft: G, scrollTop: K, scrollWidth: J, scrollHeight: nt } = E, [et, tt] = M(_.margin), [mt, Tt] = M(_.speed);
|
|
17190
17190
|
let lt = 0, wt = 0;
|
|
17191
|
-
(_.direction === "x" || _.direction === "both") && ($.x < et && G > 0 ? lt = -mt : $.x + z.width > at - et && G < J - at && (lt = mt)), (_.direction === "y" || _.direction === "both") && ($.y < tt && K > 0 ? wt = -Tt : $.y + z.height > it - tt && K < nt - it && (wt = Tt)), (lt || wt) &&
|
|
17191
|
+
(_.direction === "x" || _.direction === "both") && ($.x < et && G > 0 ? lt = -mt : $.x + z.width > at - et && G < J - at && (lt = mt)), (_.direction === "y" || _.direction === "both") && ($.y < tt && K > 0 ? wt = -Tt : $.y + z.height > it - tt && K < nt - it && (wt = Tt)), (lt || wt) && E.scrollBy({
|
|
17192
17192
|
left: lt,
|
|
17193
17193
|
top: wt,
|
|
17194
17194
|
behavior: "auto"
|
|
@@ -17196,45 +17196,45 @@ function Tk(n, t = {}) {
|
|
|
17196
17196
|
};
|
|
17197
17197
|
let B = null;
|
|
17198
17198
|
const L = () => {
|
|
17199
|
-
const
|
|
17200
|
-
|
|
17201
|
-
const z = Dt(n).getBoundingClientRect(), { x: $, y: at } =
|
|
17202
|
-
x: $ -
|
|
17203
|
-
y: at -
|
|
17199
|
+
const E = Dt(v);
|
|
17200
|
+
E && !B && (B = setInterval(() => {
|
|
17201
|
+
const z = Dt(n).getBoundingClientRect(), { x: $, y: at } = R.value, it = {
|
|
17202
|
+
x: $ - E.scrollLeft,
|
|
17203
|
+
y: at - E.scrollTop
|
|
17204
17204
|
};
|
|
17205
|
-
it.x >= 0 && it.y >= 0 && (C(
|
|
17205
|
+
it.x >= 0 && it.y >= 0 && (C(E, z, it), it.x += E.scrollLeft, it.y += E.scrollTop, R.value = it);
|
|
17206
17206
|
}, 1e3 / 60));
|
|
17207
17207
|
}, W = () => {
|
|
17208
17208
|
B && (clearInterval(B), B = null);
|
|
17209
|
-
}, F = (
|
|
17209
|
+
}, F = (E, z, $, at) => {
|
|
17210
17210
|
const [it, G] = typeof $ == "number" ? [$, $] : [$.x, $.y], { clientWidth: K, clientHeight: J } = z;
|
|
17211
|
-
return
|
|
17211
|
+
return E.x < it || E.x + at.width > K - it || E.y < G || E.y + at.height > J - G;
|
|
17212
17212
|
}, H = () => {
|
|
17213
17213
|
if (Dt(t.disabled) || !A.value) return;
|
|
17214
|
-
const
|
|
17215
|
-
if (!
|
|
17216
|
-
const z = Dt(n).getBoundingClientRect(), { x: $, y: at } =
|
|
17214
|
+
const E = Dt(v);
|
|
17215
|
+
if (!E) return;
|
|
17216
|
+
const z = Dt(n).getBoundingClientRect(), { x: $, y: at } = R.value;
|
|
17217
17217
|
F({
|
|
17218
|
-
x: $ -
|
|
17219
|
-
y: at -
|
|
17220
|
-
},
|
|
17218
|
+
x: $ - E.scrollLeft,
|
|
17219
|
+
y: at - E.scrollTop
|
|
17220
|
+
}, E, _.margin, z) ? L() : W();
|
|
17221
17221
|
};
|
|
17222
|
-
Dt(k) && oe(
|
|
17223
|
-
const V = (
|
|
17222
|
+
Dt(k) && oe(R, H);
|
|
17223
|
+
const V = (E) => {
|
|
17224
17224
|
var z;
|
|
17225
|
-
if (!Dt(S).includes(
|
|
17225
|
+
if (!Dt(S).includes(E.button) || Dt(t.disabled) || !O(E) || Dt(c) && E.target !== Dt(n)) return;
|
|
17226
17226
|
const $ = Dt(v), at = $ == null || (z = $.getBoundingClientRect) === null || z === void 0 ? void 0 : z.call($), it = Dt(n).getBoundingClientRect(), G = {
|
|
17227
|
-
x:
|
|
17228
|
-
y:
|
|
17227
|
+
x: E.clientX - ($ ? it.left - at.left + (k ? 0 : $.scrollLeft) : it.left),
|
|
17228
|
+
y: E.clientY - ($ ? it.top - at.top + (k ? 0 : $.scrollTop) : it.top)
|
|
17229
17229
|
};
|
|
17230
|
-
(h == null ? void 0 : h(G,
|
|
17231
|
-
}, q = (
|
|
17232
|
-
if (Dt(t.disabled) || !O(
|
|
17230
|
+
(h == null ? void 0 : h(G, E)) !== !1 && (A.value = G, m(E));
|
|
17231
|
+
}, q = (E) => {
|
|
17232
|
+
if (Dt(t.disabled) || !O(E) || !A.value) return;
|
|
17233
17233
|
const z = Dt(v);
|
|
17234
17234
|
z instanceof HTMLElement && Sk(z);
|
|
17235
17235
|
const $ = Dt(n).getBoundingClientRect();
|
|
17236
|
-
let { x: at, y: it } =
|
|
17237
|
-
if ((g === "x" || g === "both") && (at =
|
|
17236
|
+
let { x: at, y: it } = R.value;
|
|
17237
|
+
if ((g === "x" || g === "both") && (at = E.clientX - A.value.x, z && (at = Math.min(Math.max(0, at), z.scrollWidth - $.width))), (g === "y" || g === "both") && (it = E.clientY - A.value.y, z && (it = Math.min(Math.max(0, it), z.scrollHeight - $.height))), Dt(k) && z && (B === null && C(z, $, {
|
|
17238
17238
|
x: at,
|
|
17239
17239
|
y: it
|
|
17240
17240
|
}), at += z.scrollLeft, it += z.scrollTop), z && (D || k)) {
|
|
@@ -17247,30 +17247,30 @@ function Tk(n, t = {}) {
|
|
|
17247
17247
|
G < 0 ? it = z.scrollTop : G > z.clientHeight - $.height && (it = z.clientHeight - $.height + z.scrollTop);
|
|
17248
17248
|
}
|
|
17249
17249
|
}
|
|
17250
|
-
|
|
17250
|
+
R.value = {
|
|
17251
17251
|
x: at,
|
|
17252
17252
|
y: it
|
|
17253
|
-
}, u == null || u(
|
|
17254
|
-
}, j = (
|
|
17255
|
-
Dt(t.disabled) || !O(
|
|
17253
|
+
}, u == null || u(R.value, E), m(E);
|
|
17254
|
+
}, j = (E) => {
|
|
17255
|
+
Dt(t.disabled) || !O(E) || A.value && (A.value = void 0, k && W(), d == null || d(R.value, E), m(E));
|
|
17256
17256
|
};
|
|
17257
17257
|
if (Hg) {
|
|
17258
|
-
const
|
|
17258
|
+
const E = () => {
|
|
17259
17259
|
var z;
|
|
17260
17260
|
return {
|
|
17261
17261
|
capture: (z = t.capture) !== null && z !== void 0 ? z : !0,
|
|
17262
17262
|
passive: !Dt(o)
|
|
17263
17263
|
};
|
|
17264
17264
|
};
|
|
17265
|
-
ar(w, "pointerdown", V,
|
|
17265
|
+
ar(w, "pointerdown", V, E), ar(y, "pointermove", q, E), ar(y, "pointerup", j, E);
|
|
17266
17266
|
}
|
|
17267
17267
|
return {
|
|
17268
|
-
...bk(
|
|
17269
|
-
position:
|
|
17268
|
+
...bk(R),
|
|
17269
|
+
position: R,
|
|
17270
17270
|
isDragging: N(() => !!A.value),
|
|
17271
17271
|
style: N(() => `
|
|
17272
|
-
left: ${
|
|
17273
|
-
top: ${
|
|
17272
|
+
left: ${R.value.x}px;
|
|
17273
|
+
top: ${R.value.y}px;
|
|
17274
17274
|
${k ? "text-wrap: nowrap;" : ""}
|
|
17275
17275
|
`)
|
|
17276
17276
|
};
|
|
@@ -17403,7 +17403,7 @@ function Pk({
|
|
|
17403
17403
|
...(l === "sparkline_bar" || D.value) && M && { backgroundColor: M },
|
|
17404
17404
|
...l !== "sparkline_bar" && M && { borderColor: M },
|
|
17405
17405
|
...D.value && l !== "sparkline_bar" && { fill: !0 }
|
|
17406
|
-
}))),
|
|
17406
|
+
}))), R = N(() => {
|
|
17407
17407
|
var C, B;
|
|
17408
17408
|
const _ = ((B = (C = k.value[0]) == null ? void 0 : C.data) == null ? void 0 : B.length) ?? 0, M = [];
|
|
17409
17409
|
for (let L = 0; L < _; L++) {
|
|
@@ -17414,7 +17414,7 @@ function Pk({
|
|
|
17414
17414
|
}
|
|
17415
17415
|
return M;
|
|
17416
17416
|
}), A = N(() => {
|
|
17417
|
-
const _ =
|
|
17417
|
+
const _ = R.value.reduce((M, C) => Math.max(M, C), 0);
|
|
17418
17418
|
return Math.max(_, a ?? 0);
|
|
17419
17419
|
}), O = N(() => {
|
|
17420
17420
|
const _ = k.value.reduce((B, { data: L }) => [...B, ...L.map(({ y: W }) => W)], []), M = _.length ? _[0] : 0, C = _.reduce((B, L) => Math.min(B, L), M);
|
|
@@ -17508,23 +17508,23 @@ const gh = {
|
|
|
17508
17508
|
function Fc(n, t, e) {
|
|
17509
17509
|
return (gh.modes[e.mode] || gh.modes.nearest)(n, t, e);
|
|
17510
17510
|
}
|
|
17511
|
-
function
|
|
17511
|
+
function Rk(n, t, e) {
|
|
17512
17512
|
return e !== "x" && e !== "y" ? n.inRange(t.x, t.y, "x", !0) || n.inRange(t.x, t.y, "y", !0) : n.inRange(t.x, t.y, e, !0);
|
|
17513
17513
|
}
|
|
17514
|
-
function
|
|
17514
|
+
function Ek(n, t, e) {
|
|
17515
17515
|
return e === "x" ? { x: n.x, y: t.y } : e === "y" ? { x: t.x, y: n.y } : t;
|
|
17516
17516
|
}
|
|
17517
17517
|
function xa(n, t, e) {
|
|
17518
|
-
return n.filter((i) => e.intersect ? i.inRange(t.x, t.y) :
|
|
17518
|
+
return n.filter((i) => e.intersect ? i.inRange(t.x, t.y) : Rk(i, t, e.axis));
|
|
17519
17519
|
}
|
|
17520
17520
|
function Ik(n, t, e) {
|
|
17521
17521
|
let i = Number.POSITIVE_INFINITY;
|
|
17522
17522
|
return xa(n, t, e).reduce((s, r) => {
|
|
17523
|
-
const a = r.getCenterPoint(), o =
|
|
17523
|
+
const a = r.getCenterPoint(), o = Ek(t, a, e.axis), l = rs(t, o);
|
|
17524
17524
|
return l < i ? (s = [r], i = l) : l === i && s.push(r), s;
|
|
17525
17525
|
}, []).sort((s, r) => s._index - r._index).slice(0, 1);
|
|
17526
17526
|
}
|
|
17527
|
-
function
|
|
17527
|
+
function Ri(n, t, e) {
|
|
17528
17528
|
const i = Math.cos(e), s = Math.sin(e), r = t.x, a = t.y;
|
|
17529
17529
|
return {
|
|
17530
17530
|
x: r + i * (n.x - r) - s * (n.y - a),
|
|
@@ -17545,10 +17545,10 @@ function Yg(n, { x: t, y: e, x2: i, y2: s }, r, { borderWidth: a, hitTolerance:
|
|
|
17545
17545
|
return r === "x" ? c : (r === "y" || c) && u;
|
|
17546
17546
|
}
|
|
17547
17547
|
function jg(n, { rect: t, center: e }, i, { rotation: s, borderWidth: r, hitTolerance: a }) {
|
|
17548
|
-
const o =
|
|
17548
|
+
const o = Ri(n, e, te(-s));
|
|
17549
17549
|
return Yg(o, t, i, { borderWidth: r, hitTolerance: a });
|
|
17550
17550
|
}
|
|
17551
|
-
function
|
|
17551
|
+
function Ei(n, t) {
|
|
17552
17552
|
const { centerX: e, centerY: i } = n.getProps(["centerX", "centerY"], t);
|
|
17553
17553
|
return { x: e, y: i };
|
|
17554
17554
|
}
|
|
@@ -17641,7 +17641,7 @@ function tm(n, t) {
|
|
|
17641
17641
|
return Uk[e](n);
|
|
17642
17642
|
}
|
|
17643
17643
|
function Bk(n, t, e) {
|
|
17644
|
-
const i =
|
|
17644
|
+
const i = Rt(e.init, [{ chart: n, properties: t, options: e }]);
|
|
17645
17645
|
if (i === !0)
|
|
17646
17646
|
return tm(t, e);
|
|
17647
17647
|
if (xt(i))
|
|
@@ -17659,7 +17659,7 @@ function Za(n) {
|
|
|
17659
17659
|
function Qa(n, { x: t, y: e }, i) {
|
|
17660
17660
|
i && (n.translate(t, e), n.rotate(te(i)), n.translate(-t, -e));
|
|
17661
17661
|
}
|
|
17662
|
-
function
|
|
17662
|
+
function Rn(n, t) {
|
|
17663
17663
|
if (t && t.borderWidth)
|
|
17664
17664
|
return n.lineCap = t.borderCapStyle || "butt", n.setLineDash(t.borderDash), n.lineDashOffset = t.borderDashOffset, n.lineJoin = t.borderJoinStyle || "miter", n.lineWidth = t.borderWidth, n.strokeStyle = t.borderColor, !0;
|
|
17665
17665
|
}
|
|
@@ -17679,7 +17679,7 @@ function Ja(n, t) {
|
|
|
17679
17679
|
function em(n, t, e) {
|
|
17680
17680
|
const { x: i, y: s, width: r, height: a } = t;
|
|
17681
17681
|
n.save(), ms(n, e);
|
|
17682
|
-
const o =
|
|
17682
|
+
const o = Rn(n, e);
|
|
17683
17683
|
n.fillStyle = e.backgroundColor, n.beginPath(), as(n, {
|
|
17684
17684
|
x: i,
|
|
17685
17685
|
y: s,
|
|
@@ -17784,11 +17784,11 @@ function Zk(n, t) {
|
|
|
17784
17784
|
const { pointX: e, pointY: i, options: s } = t, r = s.callout, a = r && r.display && nO(t, r);
|
|
17785
17785
|
if (!a || sO(t, r, a))
|
|
17786
17786
|
return;
|
|
17787
|
-
if (n.save(), n.beginPath(), !
|
|
17787
|
+
if (n.save(), n.beginPath(), !Rn(n, r))
|
|
17788
17788
|
return n.restore();
|
|
17789
17789
|
const { separatorStart: l, separatorEnd: c } = Qk(t, a), { sideStart: u, sideEnd: d } = tO(t, a, l);
|
|
17790
17790
|
(r.margin > 0 || s.borderWidth === 0) && (n.moveTo(l.x, l.y), n.lineTo(c.x, c.y)), n.moveTo(u.x, u.y), n.lineTo(d.x, d.y);
|
|
17791
|
-
const h =
|
|
17791
|
+
const h = Ri({ x: e, y: i }, t.getCenterPoint(), te(-t.rotation));
|
|
17792
17792
|
n.lineTo(h.x, h.y), n.stroke(), n.restore();
|
|
17793
17793
|
}
|
|
17794
17794
|
function Qk(n, t) {
|
|
@@ -17816,13 +17816,13 @@ function nO(n, t) {
|
|
|
17816
17816
|
function iO(n, t) {
|
|
17817
17817
|
const { x: e, y: i, x2: s, y2: r, width: a, height: o, pointX: l, pointY: c, centerX: u, centerY: d, rotation: h } = n, f = { x: u, y: d }, g = t.start, y = ni(a, g), v = ni(o, g), w = [e, e + y, e + y, s], S = [i + v, r, i, r], D = [];
|
|
17818
17818
|
for (let k = 0; k < 4; k++) {
|
|
17819
|
-
const
|
|
17819
|
+
const R = Ri({ x: w[k], y: S[k] }, f, te(h));
|
|
17820
17820
|
D.push({
|
|
17821
17821
|
position: im[k],
|
|
17822
|
-
distance: rs(
|
|
17822
|
+
distance: rs(R, { x: l, y: c })
|
|
17823
17823
|
});
|
|
17824
17824
|
}
|
|
17825
|
-
return D.sort((k,
|
|
17825
|
+
return D.sort((k, R) => k.distance - R.distance)[0].position;
|
|
17826
17826
|
}
|
|
17827
17827
|
function sO(n, t, e) {
|
|
17828
17828
|
const { pointX: i, pointY: s } = n, r = t.margin;
|
|
@@ -18026,7 +18026,7 @@ function mO(n, t, e) {
|
|
|
18026
18026
|
return r;
|
|
18027
18027
|
}
|
|
18028
18028
|
function cm(n, t, e) {
|
|
18029
|
-
return
|
|
18029
|
+
return Rt(n, [t.$context, e]) === !0;
|
|
18030
18030
|
}
|
|
18031
18031
|
const Ba = ["afterDraw", "beforeDraw"];
|
|
18032
18032
|
function pO(n, t, e) {
|
|
@@ -18040,7 +18040,7 @@ function pO(n, t, e) {
|
|
|
18040
18040
|
function _h(n, t, e) {
|
|
18041
18041
|
if (n.hooked) {
|
|
18042
18042
|
const i = t.options[e] || n.hooks[e];
|
|
18043
|
-
return
|
|
18043
|
+
return Rt(i, [t.$context]);
|
|
18044
18044
|
}
|
|
18045
18045
|
}
|
|
18046
18046
|
function yO(n, t, e) {
|
|
@@ -18096,11 +18096,11 @@ function xh(n, t, e, i) {
|
|
|
18096
18096
|
}
|
|
18097
18097
|
class ps extends de {
|
|
18098
18098
|
inRange(t, e, i, s) {
|
|
18099
|
-
const { x: r, y: a } =
|
|
18099
|
+
const { x: r, y: a } = Ri({ x: t, y: e }, this.getCenterPoint(s), te(-this.options.rotation));
|
|
18100
18100
|
return Yg({ x: r, y: a }, this.getProps(["x", "y", "x2", "y2"], s), i, this.options);
|
|
18101
18101
|
}
|
|
18102
18102
|
getCenterPoint(t) {
|
|
18103
|
-
return
|
|
18103
|
+
return Ei(this, t);
|
|
18104
18104
|
}
|
|
18105
18105
|
draw(t) {
|
|
18106
18106
|
t.save(), Qa(t, this.getCenterPoint(), this.options.rotation), em(t, this, this.options), t.restore();
|
|
@@ -18188,7 +18188,7 @@ class to extends de {
|
|
|
18188
18188
|
);
|
|
18189
18189
|
}
|
|
18190
18190
|
getCenterPoint(t) {
|
|
18191
|
-
return
|
|
18191
|
+
return Ei(this, t);
|
|
18192
18192
|
}
|
|
18193
18193
|
draw(t) {
|
|
18194
18194
|
const e = this.options;
|
|
@@ -18307,7 +18307,7 @@ function kO(n, t, e, i) {
|
|
|
18307
18307
|
function OO(n, t) {
|
|
18308
18308
|
const { _centerX: e, _centerY: i, _radius: s, _startAngle: r, _endAngle: a, _counterclockwise: o, options: l } = t;
|
|
18309
18309
|
n.save();
|
|
18310
|
-
const c =
|
|
18310
|
+
const c = Rn(n, l);
|
|
18311
18311
|
n.fillStyle = l.backgroundColor, n.beginPath(), n.arc(e, i, s, r, a, o), n.closePath(), n.fill(), c && n.stroke(), n.restore();
|
|
18312
18312
|
}
|
|
18313
18313
|
class kr extends de {
|
|
@@ -18320,7 +18320,7 @@ class kr extends de {
|
|
|
18320
18320
|
);
|
|
18321
18321
|
}
|
|
18322
18322
|
getCenterPoint(t) {
|
|
18323
|
-
return
|
|
18323
|
+
return Ei(this, t);
|
|
18324
18324
|
}
|
|
18325
18325
|
draw(t) {
|
|
18326
18326
|
const e = this.options, i = !He(this._visible) || this._visible;
|
|
@@ -18424,7 +18424,7 @@ class Or extends de {
|
|
|
18424
18424
|
if (i !== "x" && i !== "y") {
|
|
18425
18425
|
const a = { mouseX: t, mouseY: e }, { path: o, ctx: l } = this;
|
|
18426
18426
|
if (o) {
|
|
18427
|
-
|
|
18427
|
+
Rn(l, this.options), l.lineWidth += this.options.hitTolerance;
|
|
18428
18428
|
const { chart: u } = this.$context, d = t * u.currentDevicePixelRatio, h = e * u.currentDevicePixelRatio, f = l.isPointInStroke(o, d, h) || ic(this, a, s);
|
|
18429
18429
|
return l.restore(), f;
|
|
18430
18430
|
}
|
|
@@ -18434,11 +18434,11 @@ class Or extends de {
|
|
|
18434
18434
|
return PO(this, { mouseX: t, mouseY: e }, i, { hitSize: r, useFinalPosition: s });
|
|
18435
18435
|
}
|
|
18436
18436
|
getCenterPoint(t) {
|
|
18437
|
-
return
|
|
18437
|
+
return Ei(this, t);
|
|
18438
18438
|
}
|
|
18439
18439
|
draw(t) {
|
|
18440
18440
|
const { x: e, y: i, x2: s, y2: r, cp: a, options: o } = this;
|
|
18441
|
-
if (t.save(), !
|
|
18441
|
+
if (t.save(), !Rn(t, o))
|
|
18442
18442
|
return t.restore();
|
|
18443
18443
|
ms(t, o);
|
|
18444
18444
|
const l = Math.sqrt(Math.pow(s - e, 2) + Math.pow(r - i, 2));
|
|
@@ -18451,7 +18451,7 @@ class Or extends de {
|
|
|
18451
18451
|
return this.elements && this.elements[0];
|
|
18452
18452
|
}
|
|
18453
18453
|
resolveElementProperties(t, e) {
|
|
18454
|
-
const i = rO(t, e), { x: s, y: r, x2: a, y2: o } = i, l =
|
|
18454
|
+
const i = rO(t, e), { x: s, y: r, x2: a, y2: o } = i, l = RO(i, t.chartArea), c = l ? EO({ x: s, y: r }, { x: a, y: o }, t.chartArea) : { x: s, y: r, x2: a, y2: o, width: Math.abs(a - s), height: Math.abs(o - r) };
|
|
18455
18455
|
if (c.centerX = (a + s) / 2, c.centerY = (o + r) / 2, c.initProperties = gs(t, c, e), e.curve) {
|
|
18456
18456
|
const d = { x: c.x, y: c.y }, h = { x: c.x2, y: c.y2 };
|
|
18457
18457
|
c.cp = BO(c, e, rs(d, h));
|
|
@@ -18575,13 +18575,13 @@ function PO(n, { mouseX: t, mouseY: e }, i, { hitSize: s, useFinalPosition: r })
|
|
|
18575
18575
|
const a = AO(t, e, n.getProps(["x", "y", "x2", "y2"], r), i);
|
|
18576
18576
|
return $g(a, s) || ic(n, { mouseX: t, mouseY: e }, r, i);
|
|
18577
18577
|
}
|
|
18578
|
-
function
|
|
18578
|
+
function RO({ x: n, y: t, x2: e, y2: i }, { top: s, right: r, bottom: a, left: o }) {
|
|
18579
18579
|
return !(n < o && e < o || n > r && e > r || t < s && i < s || t > a && i > a);
|
|
18580
18580
|
}
|
|
18581
18581
|
function kh({ x: n, y: t }, e, { top: i, right: s, bottom: r, left: a }) {
|
|
18582
18582
|
return n < a && (t = wh(a, { x: n, y: t }, e), n = a), n > s && (t = wh(s, { x: n, y: t }, e), n = s), t < i && (n = ec(i, { x: n, y: t }, e), t = i), t > r && (n = ec(r, { x: n, y: t }, e), t = r), { x: n, y: t };
|
|
18583
18583
|
}
|
|
18584
|
-
function
|
|
18584
|
+
function EO(n, t, e) {
|
|
18585
18585
|
const { x: i, y: s } = kh(n, t, e), { x: r, y: a } = kh(t, n, e);
|
|
18586
18586
|
return { x: i, y: s, x2: r, y2: a, width: Math.abs(r - i), height: Math.abs(a - s) };
|
|
18587
18587
|
}
|
|
@@ -18666,14 +18666,14 @@ function sc(n, t, e, i) {
|
|
|
18666
18666
|
if (!i || !i.display)
|
|
18667
18667
|
return;
|
|
18668
18668
|
const { length: s, width: r, fill: a, backgroundColor: o, borderColor: l } = i, c = Math.abs(t - s) + e;
|
|
18669
|
-
n.beginPath(), ms(n, i),
|
|
18669
|
+
n.beginPath(), ms(n, i), Rn(n, i), n.moveTo(c, -r), n.lineTo(t + e, 0), n.lineTo(c, r), a === !0 ? (n.fillStyle = o || l, n.closePath(), n.fill(), n.shadowColor = "transparent") : n.shadowColor = i.borderShadowColor, n.stroke();
|
|
18670
18670
|
}
|
|
18671
18671
|
function BO(n, t, e) {
|
|
18672
18672
|
const { x: i, y: s, x2: r, y2: a, centerX: o, centerY: l } = n, c = Math.atan2(a - s, r - i), u = Uc(t.controlPoint, 0), d = {
|
|
18673
18673
|
x: o + ni(e, u.x, !1),
|
|
18674
18674
|
y: l + ni(e, u.y, !1)
|
|
18675
18675
|
};
|
|
18676
|
-
return
|
|
18676
|
+
return Ri(d, { x: o, y: l }, c);
|
|
18677
18677
|
}
|
|
18678
18678
|
function Ph(n, { x: t, y: e }, { angle: i, adjust: s }, r) {
|
|
18679
18679
|
!r || !r.display || (n.save(), n.translate(t, e), n.rotate(i), sc(n, 0, -s, r), n.restore());
|
|
@@ -18687,16 +18687,16 @@ class Cr extends de {
|
|
|
18687
18687
|
const r = this.options.rotation, a = (this.options.borderWidth + this.options.hitTolerance) / 2;
|
|
18688
18688
|
if (i !== "x" && i !== "y")
|
|
18689
18689
|
return $O({ x: t, y: e }, this.getProps(["width", "height", "centerX", "centerY"], s), r, a);
|
|
18690
|
-
const { x: o, y: l, x2: c, y2: u } = this.getProps(["x", "y", "x2", "y2"], s), d = i === "y" ? { start: l, end: u } : { start: o, end: c }, h =
|
|
18690
|
+
const { x: o, y: l, x2: c, y2: u } = this.getProps(["x", "y", "x2", "y2"], s), d = i === "y" ? { start: l, end: u } : { start: o, end: c }, h = Ri({ x: t, y: e }, this.getCenterPoint(s), te(-r));
|
|
18691
18691
|
return h[i] >= d.start - a - wi && h[i] <= d.end + a + wi;
|
|
18692
18692
|
}
|
|
18693
18693
|
getCenterPoint(t) {
|
|
18694
|
-
return
|
|
18694
|
+
return Ei(this, t);
|
|
18695
18695
|
}
|
|
18696
18696
|
draw(t) {
|
|
18697
18697
|
const { width: e, height: i, centerX: s, centerY: r, options: a } = this;
|
|
18698
18698
|
t.save(), Qa(t, this.getCenterPoint(), a.rotation), ms(t, this.options), t.beginPath(), t.fillStyle = a.backgroundColor;
|
|
18699
|
-
const o =
|
|
18699
|
+
const o = Rn(t, a);
|
|
18700
18700
|
t.ellipse(s, r, i / 2, e / 2, _t / 2, 0, 2 * _t), t.fill(), o && (t.shadowColor = a.borderShadowColor, t.stroke()), t.restore();
|
|
18701
18701
|
}
|
|
18702
18702
|
get label() {
|
|
@@ -18752,14 +18752,14 @@ class eo extends de {
|
|
|
18752
18752
|
return i !== "x" && i !== "y" ? Fk({ x: t, y: e }, this.getCenterPoint(s), c / 2, u) : $g(i === "y" ? { start: a, end: l, value: e } : { start: r, end: o, value: t }, u);
|
|
18753
18753
|
}
|
|
18754
18754
|
getCenterPoint(t) {
|
|
18755
|
-
return
|
|
18755
|
+
return Ei(this, t);
|
|
18756
18756
|
}
|
|
18757
18757
|
draw(t) {
|
|
18758
18758
|
const e = this.options, i = e.borderWidth;
|
|
18759
18759
|
if (e.radius < 0.1)
|
|
18760
18760
|
return;
|
|
18761
18761
|
t.save(), t.fillStyle = e.backgroundColor, ms(t, e);
|
|
18762
|
-
const s =
|
|
18762
|
+
const s = Rn(t, e);
|
|
18763
18763
|
jk(t, this, this.centerX, this.centerY), s && !Za(e.pointStyle) && (t.shadowColor = e.borderShadowColor, t.stroke()), t.restore(), e.borderWidth = i;
|
|
18764
18764
|
}
|
|
18765
18765
|
resolveElementProperties(t, e) {
|
|
@@ -18804,16 +18804,16 @@ class no extends de {
|
|
|
18804
18804
|
inRange(t, e, i, s) {
|
|
18805
18805
|
if (i !== "x" && i !== "y")
|
|
18806
18806
|
return this.options.radius >= 0.1 && this.elements.length > 1 && jO(this.elements, t, e, s);
|
|
18807
|
-
const r =
|
|
18807
|
+
const r = Ri({ x: t, y: e }, this.getCenterPoint(s), te(-this.options.rotation)), a = this.elements.map((c) => i === "y" ? c.bY : c.bX), o = Math.min(...a), l = Math.max(...a);
|
|
18808
18808
|
return r[i] >= o && r[i] <= l;
|
|
18809
18809
|
}
|
|
18810
18810
|
getCenterPoint(t) {
|
|
18811
|
-
return
|
|
18811
|
+
return Ei(this, t);
|
|
18812
18812
|
}
|
|
18813
18813
|
draw(t) {
|
|
18814
18814
|
const { elements: e, options: i } = this;
|
|
18815
18815
|
t.save(), t.beginPath(), t.fillStyle = i.backgroundColor, ms(t, i);
|
|
18816
|
-
const s =
|
|
18816
|
+
const s = Rn(t, i);
|
|
18817
18817
|
let r = !0;
|
|
18818
18818
|
for (const a of e)
|
|
18819
18819
|
r ? (t.moveTo(a.x, a.y), r = !1) : t.lineTo(a.x, a.y);
|
|
@@ -18906,7 +18906,7 @@ Object.keys(Qn).forEach((n) => {
|
|
|
18906
18906
|
});
|
|
18907
18907
|
const VO = {
|
|
18908
18908
|
update: Object.assign
|
|
18909
|
-
}, qO = Bc.concat(Ba),
|
|
18909
|
+
}, qO = Bc.concat(Ba), Rh = (n, t) => xt(t) ? ac(n, t) : n, rc = (n) => n === "color" || n === "font";
|
|
18910
18910
|
function $c(n = "line") {
|
|
18911
18911
|
return Qn[n] ? n : (console.warn(`Unknown annotation type: '${n}', defaulting to 'line'`), "line");
|
|
18912
18912
|
}
|
|
@@ -18951,7 +18951,7 @@ function ac(n, t) {
|
|
|
18951
18951
|
const e = {};
|
|
18952
18952
|
for (const i of Object.keys(t)) {
|
|
18953
18953
|
const s = t[i], r = n[i];
|
|
18954
|
-
rc(i) && Ct(r) ? e[i] = r.map((a) =>
|
|
18954
|
+
rc(i) && Ct(r) ? e[i] = r.map((a) => Rh(a, s)) : e[i] = Rh(r, s);
|
|
18955
18955
|
}
|
|
18956
18956
|
return e;
|
|
18957
18957
|
}
|
|
@@ -18974,7 +18974,7 @@ function JO(n, t) {
|
|
|
18974
18974
|
return n;
|
|
18975
18975
|
}
|
|
18976
18976
|
var tC = "3.1.0";
|
|
18977
|
-
const Wn = /* @__PURE__ */ new Map(),
|
|
18977
|
+
const Wn = /* @__PURE__ */ new Map(), Eh = (n) => n.type !== "doughnutLabel", eC = Bc.concat(Ba);
|
|
18978
18978
|
var Ih = {
|
|
18979
18979
|
id: "annotation",
|
|
18980
18980
|
version: tC,
|
|
@@ -19006,11 +19006,11 @@ var Ih = {
|
|
|
19006
19006
|
xt(r) ? Object.keys(r).forEach((a) => {
|
|
19007
19007
|
const o = r[a];
|
|
19008
19008
|
xt(o) && (o.id = a, s.push(o));
|
|
19009
|
-
}) : Ct(r) && s.push(...r), bO(s.filter(
|
|
19009
|
+
}) : Ct(r) && s.push(...r), bO(s.filter(Eh), n.scales);
|
|
19010
19010
|
},
|
|
19011
19011
|
afterDataLimits(n, t) {
|
|
19012
19012
|
const e = Wn.get(n);
|
|
19013
|
-
yO(n, t.scale, e.annotations.filter(
|
|
19013
|
+
yO(n, t.scale, e.annotations.filter(Eh).filter((i) => i.display && i.adjustScaleRange));
|
|
19014
19014
|
},
|
|
19015
19015
|
afterUpdate(n, t, e) {
|
|
19016
19016
|
const i = Wn.get(n);
|
|
@@ -19130,7 +19130,7 @@ const sC = { class: "zoom-timerange-container" }, rC = { class: "zoom-timerange-
|
|
|
19130
19130
|
tickValue: t.end,
|
|
19131
19131
|
granularity: t.granularity
|
|
19132
19132
|
})), r = (a, o) => {
|
|
19133
|
-
|
|
19133
|
+
Rg(() => {
|
|
19134
19134
|
i.value = qs({
|
|
19135
19135
|
tickValue: a,
|
|
19136
19136
|
granularity: t.granularity
|
|
@@ -19276,7 +19276,7 @@ const sC = { class: "zoom-timerange-container" }, rC = { class: "zoom-timerange-
|
|
|
19276
19276
|
])) : Ft("", !0)
|
|
19277
19277
|
]),
|
|
19278
19278
|
ut("ul", SC, [
|
|
19279
|
-
(Z(!0), ct(Yn, null, xi(n.state.tooltipSeries, ({ backgroundColor: w, borderColor: S, label: D, value: k, isSegmentEmpty:
|
|
19279
|
+
(Z(!0), ct(Yn, null, xi(n.state.tooltipSeries, ({ backgroundColor: w, borderColor: S, label: D, value: k, isSegmentEmpty: R }, A) => (Z(), ct(Yn, {
|
|
19280
19280
|
key: D + A
|
|
19281
19281
|
}, [
|
|
19282
19282
|
n.state.tooltipSeries.length ? (Z(), ct("li", TC, [
|
|
@@ -19285,7 +19285,7 @@ const sC = { class: "zoom-timerange-container" }, rC = { class: "zoom-timerange-
|
|
|
19285
19285
|
style: Ti({ background: String(w), borderColor: String(S) })
|
|
19286
19286
|
}, null, 4),
|
|
19287
19287
|
ut("span", {
|
|
19288
|
-
class: Fe(["display-label", { empty:
|
|
19288
|
+
class: Fe(["display-label", { empty: R }])
|
|
19289
19289
|
}, dt(D), 3),
|
|
19290
19290
|
ut("span", MC, dt(k), 1)
|
|
19291
19291
|
])) : Ft("", !0)
|
|
@@ -19302,7 +19302,7 @@ const sC = { class: "zoom-timerange-container" }, rC = { class: "zoom-timerange-
|
|
|
19302
19302
|
}, OC = ["onClick"], CC = ["title"], AC = { class: "label truncate-label" }, PC = {
|
|
19303
19303
|
key: 0,
|
|
19304
19304
|
class: "sub-label"
|
|
19305
|
-
},
|
|
19305
|
+
}, RC = { class: "tooltip-content" }, EC = /* @__PURE__ */ he({
|
|
19306
19306
|
__name: "ChartLegend",
|
|
19307
19307
|
props: {
|
|
19308
19308
|
id: {
|
|
@@ -19332,7 +19332,7 @@ const sC = { class: "zoom-timerange-container" }, rC = { class: "zoom-timerange-
|
|
|
19332
19332
|
return c.getDatasetMeta(o).dataset || l === void 0 ? c.isDatasetVisible(o) : c.getDataVisibility(l);
|
|
19333
19333
|
};
|
|
19334
19334
|
return (o, l) => {
|
|
19335
|
-
const c =
|
|
19335
|
+
const c = Ee("KTooltip");
|
|
19336
19336
|
return Q(s) !== Q($e).Hidden ? (Z(), ct("ul", kC, [
|
|
19337
19337
|
(Z(!0), ct(Yn, null, xi(n.items, ({ fillStyle: u, strokeStyle: d, text: h, datasetIndex: f, index: g, value: y, isSegmentEmpty: v }) => (Z(), ct("li", {
|
|
19338
19338
|
key: h,
|
|
@@ -19357,7 +19357,7 @@ const sC = { class: "zoom-timerange-container" }, rC = { class: "zoom-timerange-
|
|
|
19357
19357
|
v ? {
|
|
19358
19358
|
name: "content",
|
|
19359
19359
|
fn: Ht(() => [
|
|
19360
|
-
ut("div",
|
|
19360
|
+
ut("div", RC, dt(Q(e).t("emptyEntityInfo")), 1)
|
|
19361
19361
|
]),
|
|
19362
19362
|
key: "0"
|
|
19363
19363
|
} : void 0
|
|
@@ -19366,7 +19366,7 @@ const sC = { class: "zoom-timerange-container" }, rC = { class: "zoom-timerange-
|
|
|
19366
19366
|
])) : Ft("", !0);
|
|
19367
19367
|
};
|
|
19368
19368
|
}
|
|
19369
|
-
}), Yc = /* @__PURE__ */ Ye(
|
|
19369
|
+
}), Yc = /* @__PURE__ */ Ye(EC, [["__scopeId", "data-v-e6664c85"]]), pe = [];
|
|
19370
19370
|
for (let n = 0; n < 256; ++n)
|
|
19371
19371
|
pe.push((n + 256).toString(16).slice(1));
|
|
19372
19372
|
function IC(n, t = 0) {
|
|
@@ -19505,7 +19505,7 @@ const zC = ["id"], UC = ["id"], HC = { class: "axis-tooltip-content" }, BC = "10
|
|
|
19505
19505
|
chartType: D.value ? "horizontal_bar" : "vertical_bar",
|
|
19506
19506
|
chartID: r,
|
|
19507
19507
|
chartTooltipSortFn: t.chartTooltipSortFn
|
|
19508
|
-
}), { tooltipAbsoluteLeft:
|
|
19508
|
+
}), { tooltipAbsoluteLeft: R, tooltipAbsoluteTop: A } = vt.useTooltipAbsolutePosition(
|
|
19509
19509
|
l,
|
|
19510
19510
|
k
|
|
19511
19511
|
), O = qt(0), m = () => {
|
|
@@ -19517,7 +19517,7 @@ const zC = ["id"], UC = ["id"], HC = { class: "axis-tooltip-content" }, BC = "10
|
|
|
19517
19517
|
}, b = {
|
|
19518
19518
|
id: f,
|
|
19519
19519
|
afterUpdate(G) {
|
|
19520
|
-
O.value += 1, y.value =
|
|
19520
|
+
O.value += 1, y.value = Eg(G, t.legendValues, t.chartLegendSortFn);
|
|
19521
19521
|
}
|
|
19522
19522
|
}, _ = {
|
|
19523
19523
|
id: g,
|
|
@@ -19545,7 +19545,7 @@ const zC = ["id"], UC = ["id"], HC = { class: "axis-tooltip-content" }, BC = "10
|
|
|
19545
19545
|
},
|
|
19546
19546
|
a,
|
|
19547
19547
|
...t.annotations ? [_] : []
|
|
19548
|
-
], B = N(() => t.chartData.labels && t.chartData.labels.length || 0), L = qt(0), W = qt(0), F = new ResizeObserver(
|
|
19548
|
+
], B = N(() => t.chartData.labels && t.chartData.labels.length || 0), L = qt(0), W = qt(0), F = new ResizeObserver(Rg((G) => {
|
|
19549
19549
|
L.value = G[0].contentRect.width, W.value = G[0].contentRect.height;
|
|
19550
19550
|
}, 100)), H = N(() => {
|
|
19551
19551
|
var K, J;
|
|
@@ -19591,7 +19591,7 @@ const zC = ["id"], UC = ["id"], HC = { class: "axis-tooltip-content" }, BC = "10
|
|
|
19591
19591
|
$h(() => {
|
|
19592
19592
|
Ue.unregister(Ih);
|
|
19593
19593
|
});
|
|
19594
|
-
const
|
|
19594
|
+
const E = {
|
|
19595
19595
|
[$e.Bottom]: "column"
|
|
19596
19596
|
}, z = N(() => {
|
|
19597
19597
|
if (h.value && j.value) {
|
|
@@ -19629,7 +19629,7 @@ const zC = ["id"], UC = ["id"], HC = { class: "axis-tooltip-content" }, BC = "10
|
|
|
19629
19629
|
};
|
|
19630
19630
|
return (G, K) => (Z(), ct("div", {
|
|
19631
19631
|
ref: "chartParent",
|
|
19632
|
-
class: Fe(["chart-parent",
|
|
19632
|
+
class: Fe(["chart-parent", E[Q(v)]])
|
|
19633
19633
|
}, [
|
|
19634
19634
|
ut("canvas", {
|
|
19635
19635
|
id: Q(s),
|
|
@@ -19663,7 +19663,7 @@ const zC = ["id"], UC = ["id"], HC = { class: "axis-tooltip-content" }, BC = "10
|
|
|
19663
19663
|
ut("div", HC, dt(w.text), 1)
|
|
19664
19664
|
], 4)) : Ft("", !0),
|
|
19665
19665
|
Zt(io, {
|
|
19666
|
-
"absolute-left": Q(
|
|
19666
|
+
"absolute-left": Q(R),
|
|
19667
19667
|
"absolute-top": Q(A),
|
|
19668
19668
|
"chart-parent-ref": l.value,
|
|
19669
19669
|
state: k,
|
|
@@ -19710,7 +19710,7 @@ Tf._date.override({
|
|
|
19710
19710
|
return e === "number" || n instanceof Date ? n = pt(n) : e === "string" && (typeof t == "string" ? n = zw(n, t, /* @__PURE__ */ new Date(), this.options) : n = ug(n, this.options)), Oc(n) ? n.getTime() : null;
|
|
19711
19711
|
},
|
|
19712
19712
|
format: function(n, t) {
|
|
19713
|
-
return
|
|
19713
|
+
return Ea(n, t, this.options);
|
|
19714
19714
|
},
|
|
19715
19715
|
add: function(n, t, e) {
|
|
19716
19716
|
switch (e) {
|
|
@@ -19725,13 +19725,13 @@ Tf._date.override({
|
|
|
19725
19725
|
case "day":
|
|
19726
19726
|
return Ga(n, t);
|
|
19727
19727
|
case "week":
|
|
19728
|
-
return
|
|
19728
|
+
return Rv(n, t);
|
|
19729
19729
|
case "month":
|
|
19730
19730
|
return Dc(n, t);
|
|
19731
19731
|
case "quarter":
|
|
19732
19732
|
return Av(n, t);
|
|
19733
19733
|
case "year":
|
|
19734
|
-
return
|
|
19734
|
+
return Ev(n, t);
|
|
19735
19735
|
default:
|
|
19736
19736
|
return n;
|
|
19737
19737
|
}
|
|
@@ -20031,7 +20031,7 @@ const bm = /* @__PURE__ */ jc("bar", tr), _m = /* @__PURE__ */ jc("doughnut", An
|
|
|
20031
20031
|
const { options: D } = vt.useDonutChartOptions({
|
|
20032
20032
|
tooltipState: l,
|
|
20033
20033
|
legendID: s
|
|
20034
|
-
}), k = qt(),
|
|
20034
|
+
}), k = qt(), R = (O) => ({
|
|
20035
20035
|
[$e.Bottom]: "column",
|
|
20036
20036
|
[$e.Hidden]: "hidden"
|
|
20037
20037
|
})[O], A = ({ width: O, height: m }) => {
|
|
@@ -20039,7 +20039,7 @@ const bm = /* @__PURE__ */ jc("bar", tr), _m = /* @__PURE__ */ jc("doughnut", An
|
|
|
20039
20039
|
};
|
|
20040
20040
|
return (O, m) => (Z(), ct("div", {
|
|
20041
20041
|
ref: "chartParent",
|
|
20042
|
-
class: Fe(["chart-parent",
|
|
20042
|
+
class: Fe(["chart-parent", R(n.legendPosition)]),
|
|
20043
20043
|
"data-testid": "donut-chart-parent"
|
|
20044
20044
|
}, [
|
|
20045
20045
|
ut("div", rA, [
|
|
@@ -20222,15 +20222,15 @@ class mA {
|
|
|
20222
20222
|
this._clearSelectionArea = !0, this._chart && this._chart.update();
|
|
20223
20223
|
}
|
|
20224
20224
|
}
|
|
20225
|
-
const
|
|
20225
|
+
const nR = ["hidden", "single", "full"];
|
|
20226
20226
|
var Qi = /* @__PURE__ */ ((n) => (n.String = "string", n.Number = "number", n.Boolean = "boolean", n.Object = "object", n.Undefined = "undefined", n))(Qi || {});
|
|
20227
|
-
const
|
|
20227
|
+
const iR = [
|
|
20228
20228
|
"donut",
|
|
20229
20229
|
"horizontal_bar",
|
|
20230
20230
|
"vertical_bar",
|
|
20231
20231
|
"timeseries_line",
|
|
20232
20232
|
"timeseries_bar"
|
|
20233
|
-
],
|
|
20233
|
+
], sR = [
|
|
20234
20234
|
"gauge",
|
|
20235
20235
|
"top_n",
|
|
20236
20236
|
"single_value"
|
|
@@ -20398,13 +20398,13 @@ const wA = /* @__PURE__ */ he({
|
|
|
20398
20398
|
}), { tooltipAbsoluteLeft: D, tooltipAbsoluteTop: k } = vt.useTooltipAbsolutePosition(
|
|
20399
20399
|
y,
|
|
20400
20400
|
S
|
|
20401
|
-
),
|
|
20401
|
+
), R = {
|
|
20402
20402
|
id: d,
|
|
20403
20403
|
afterUpdate(j) {
|
|
20404
|
-
f.value =
|
|
20404
|
+
f.value = Eg(j, e.legendValues, e.chartLegendSortFn);
|
|
20405
20405
|
}
|
|
20406
20406
|
}, A = N(() => [
|
|
20407
|
-
|
|
20407
|
+
R,
|
|
20408
20408
|
a,
|
|
20409
20409
|
...e.brush ? [o] : [],
|
|
20410
20410
|
...e.type === "timeseries_line" ? [r] : [],
|
|
@@ -20424,15 +20424,15 @@ const wA = /* @__PURE__ */ he({
|
|
|
20424
20424
|
const M = (j) => ({
|
|
20425
20425
|
[$e.Bottom]: "column",
|
|
20426
20426
|
[$e.Hidden]: "hidden"
|
|
20427
|
-
})[j], C = ({ width: j, height:
|
|
20428
|
-
S.width = j, S.height =
|
|
20427
|
+
})[j], C = ({ width: j, height: E }) => {
|
|
20428
|
+
S.width = j, S.height = E;
|
|
20429
20429
|
}, B = (j = !0) => {
|
|
20430
20430
|
S.interactionMode = "idle", S.showTooltip = !1, o.clearSelectionArea(), a.isPaused && a.resume(j), r.isPaused && r.resume();
|
|
20431
20431
|
}, L = () => {
|
|
20432
20432
|
S.interactionMode = "interactive";
|
|
20433
20433
|
}, W = () => {
|
|
20434
|
-
var j,
|
|
20435
|
-
!u.value || !((
|
|
20434
|
+
var j, E;
|
|
20435
|
+
!u.value || !((E = (j = u.value.chart.tooltip) == null ? void 0 : j.dataPoints) != null && E.length) || (S.interactionMode === "interactive" ? r.clickedSegment = u.value.chart.tooltip.dataPoints[0] : r.destroyClickedSegment());
|
|
20436
20436
|
}, F = () => {
|
|
20437
20437
|
if (w.value) {
|
|
20438
20438
|
w.value = !1;
|
|
@@ -20445,25 +20445,25 @@ const wA = /* @__PURE__ */ he({
|
|
|
20445
20445
|
});
|
|
20446
20446
|
const H = (j) => {
|
|
20447
20447
|
j.preventDefault(), j.stopPropagation();
|
|
20448
|
-
const { xStart:
|
|
20449
|
-
|
|
20450
|
-
start: new Date(
|
|
20448
|
+
const { xStart: E, xEnd: z } = j.detail;
|
|
20449
|
+
E && z && (v.value = {
|
|
20450
|
+
start: new Date(E),
|
|
20451
20451
|
end: new Date(z),
|
|
20452
20452
|
type: "absolute"
|
|
20453
20453
|
}, S.interactionMode = "zoom-interactive", i("select-chart-range", v.value));
|
|
20454
20454
|
}, V = (j) => {
|
|
20455
20455
|
S.interactionMode = "selecting-chart-area", w.value = !0, r.pause(), a.pause();
|
|
20456
|
-
const { xStart:
|
|
20457
|
-
|
|
20458
|
-
start: new Date(
|
|
20456
|
+
const { xStart: E, xEnd: z } = j.detail;
|
|
20457
|
+
E && z && (v.value = {
|
|
20458
|
+
start: new Date(E),
|
|
20459
20459
|
end: new Date(z),
|
|
20460
20460
|
type: "absolute"
|
|
20461
20461
|
});
|
|
20462
20462
|
}, q = (j) => {
|
|
20463
20463
|
if (!y.value || S.interactionMode === "idle")
|
|
20464
20464
|
return;
|
|
20465
|
-
const
|
|
20466
|
-
|
|
20465
|
+
const E = j.target;
|
|
20466
|
+
E && y.value.contains(E) || w.value || B(!1);
|
|
20467
20467
|
};
|
|
20468
20468
|
return oe(() => {
|
|
20469
20469
|
var j;
|
|
@@ -20476,14 +20476,14 @@ const wA = /* @__PURE__ */ he({
|
|
|
20476
20476
|
}), ii(() => {
|
|
20477
20477
|
var j;
|
|
20478
20478
|
(j = u.value) != null && j.chart && (u.value.chart.canvas.removeEventListener("dragSelect", H), u.value.chart.canvas.removeEventListener("dragSelectMove", V)), document.removeEventListener("click", q, !0);
|
|
20479
|
-
}), (j,
|
|
20479
|
+
}), (j, E) => (Z(), ct("div", {
|
|
20480
20480
|
ref: "chartParent",
|
|
20481
20481
|
class: Fe(["chart-parent", M(Q(g))]),
|
|
20482
20482
|
"data-testid": "line-chart-parent"
|
|
20483
20483
|
}, [
|
|
20484
20484
|
ut("div", {
|
|
20485
20485
|
class: "chart-container",
|
|
20486
|
-
onClick:
|
|
20486
|
+
onClick: E[0] || (E[0] = (z) => F())
|
|
20487
20487
|
}, [
|
|
20488
20488
|
n.type === "timeseries_line" ? (Z(), Lt(Q(vm), {
|
|
20489
20489
|
key: O.value,
|
|
@@ -20517,7 +20517,7 @@ const wA = /* @__PURE__ */ he({
|
|
|
20517
20517
|
"zoom-action-items": n.zoomActionItems,
|
|
20518
20518
|
"zoom-time-range": v.value,
|
|
20519
20519
|
onDimensions: C,
|
|
20520
|
-
onOnAction:
|
|
20520
|
+
onOnAction: E[1] || (E[1] = () => B(!1))
|
|
20521
20521
|
}, null, 8, ["absolute-left", "absolute-top", "granularity", "state", "tooltip-title", "zoom-action-items", "zoom-time-range"]),
|
|
20522
20522
|
Zt(Yc, {
|
|
20523
20523
|
id: Q(d),
|
|
@@ -20614,7 +20614,7 @@ const wA = /* @__PURE__ */ he({
|
|
|
20614
20614
|
return s.t("metricAxisTitles.size_in", { unit: s.t(`chartUnits.${W}`, { plural: "s" }) });
|
|
20615
20615
|
}
|
|
20616
20616
|
return s.te(`metricAxisTitles.${L}`) && (rr(W) || s.te(`chartUnits.${W}`)) ? rr(W) ? s.t(`metricAxisTitles.${L}`) || void 0 : s.t(`metricAxisTitles.${L}`, { unit: s.t(`chartUnits.${W}`, { plural: "s" }) }) || void 0 : L || void 0;
|
|
20617
|
-
}),
|
|
20617
|
+
}), R = N(() => {
|
|
20618
20618
|
var W;
|
|
20619
20619
|
if ((W = i.chartOptions) != null && W.dimensionAxesTitle)
|
|
20620
20620
|
return i.chartOptions.dimensionAxesTitle;
|
|
@@ -20647,7 +20647,7 @@ const wA = /* @__PURE__ */ he({
|
|
|
20647
20647
|
}] : []
|
|
20648
20648
|
]);
|
|
20649
20649
|
return Xc("showLegendValues", u), Xc("legendPosition", Mt(i, "legendPosition")), (L, W) => {
|
|
20650
|
-
const F =
|
|
20650
|
+
const F = Ee("KTooltip"), H = Ee("KEmptyState");
|
|
20651
20651
|
return Z(), ct("div", {
|
|
20652
20652
|
class: Fe(["analytics-chart-shell", {
|
|
20653
20653
|
"show-values": u.value
|
|
@@ -20664,7 +20664,7 @@ const wA = /* @__PURE__ */ he({
|
|
|
20664
20664
|
]),
|
|
20665
20665
|
default: Ht(() => [
|
|
20666
20666
|
Zt(Q(Bm), {
|
|
20667
|
-
color: `var(--kui-color-text-warning, ${Q(
|
|
20667
|
+
color: `var(--kui-color-text-warning, ${Q(ET)})`,
|
|
20668
20668
|
size: `var(--kui-icon-size-40, ${Q(LT)})`
|
|
20669
20669
|
}, null, 8, ["color", "size"])
|
|
20670
20670
|
]),
|
|
@@ -20701,7 +20701,7 @@ const wA = /* @__PURE__ */ he({
|
|
|
20701
20701
|
"chart-legend-sort-fn": M.value,
|
|
20702
20702
|
"chart-tooltip-sort-fn": C.value,
|
|
20703
20703
|
"data-testid": "bar-chart-container",
|
|
20704
|
-
"dimension-axes-title":
|
|
20704
|
+
"dimension-axes-title": R.value,
|
|
20705
20705
|
"legend-values": Q(d),
|
|
20706
20706
|
"metric-axes-title": k.value,
|
|
20707
20707
|
"metric-unit": l.value,
|
|
@@ -20720,7 +20720,7 @@ const wA = /* @__PURE__ */ he({
|
|
|
20720
20720
|
"metric-unit": l.value,
|
|
20721
20721
|
"show-center-metric": n.chartOptions.showCenterMetric,
|
|
20722
20722
|
"synthetics-data-key": n.syntheticsDataKey,
|
|
20723
|
-
"tooltip-dimension-display":
|
|
20723
|
+
"tooltip-dimension-display": R.value,
|
|
20724
20724
|
"tooltip-metric-display": D.value,
|
|
20725
20725
|
"tooltip-title": n.tooltipTitle
|
|
20726
20726
|
}, null, 8, ["chart-data", "dataset-colors", "legend-position", "legend-values", "metric-name", "metric-unit", "show-center-metric", "synthetics-data-key", "tooltip-dimension-display", "tooltip-metric-display", "tooltip-title"])) : Ft("", !0)
|
|
@@ -20741,7 +20741,7 @@ const wA = /* @__PURE__ */ he({
|
|
|
20741
20741
|
], 2);
|
|
20742
20742
|
};
|
|
20743
20743
|
}
|
|
20744
|
-
}),
|
|
20744
|
+
}), rR = /* @__PURE__ */ Ye(kA, [["__scopeId", "data-v-898ad6e9"]]), OA = {
|
|
20745
20745
|
class: "chart-parent",
|
|
20746
20746
|
"data-testid": "gauge-chart-parent"
|
|
20747
20747
|
}, CA = { class: "chart-totals-flex" }, AA = {
|
|
@@ -20840,7 +20840,7 @@ const wA = /* @__PURE__ */ he({
|
|
|
20840
20840
|
], 4)
|
|
20841
20841
|
]));
|
|
20842
20842
|
}
|
|
20843
|
-
}),
|
|
20843
|
+
}), RA = /* @__PURE__ */ Ye(PA, [["__scopeId", "data-v-c461b83f"]]), EA = {
|
|
20844
20844
|
key: 1,
|
|
20845
20845
|
class: "single-value-wrapper"
|
|
20846
20846
|
}, IA = { class: "single-value-metric" }, LA = { class: "name-unit-alignment" }, NA = {
|
|
@@ -20951,7 +20951,7 @@ const wA = /* @__PURE__ */ he({
|
|
|
20951
20951
|
return s.increaseIsBad ? 1 : -1;
|
|
20952
20952
|
}
|
|
20953
20953
|
return Vm(D.value, !0, s.increaseIsBad);
|
|
20954
|
-
}),
|
|
20954
|
+
}), R = N(() => qm(k.value, s.increaseIsBad)), A = N(() => {
|
|
20955
20955
|
var _, M, C, B;
|
|
20956
20956
|
if (s.showTrend && ((M = (_ = s.data) == null ? void 0 : _.data) == null ? void 0 : M.length) < 2) {
|
|
20957
20957
|
if (o.value === void 0)
|
|
@@ -20960,12 +20960,12 @@ const wA = /* @__PURE__ */ he({
|
|
|
20960
20960
|
return Zc(-1, !0, t.t("singleValue.trend.not_available"));
|
|
20961
20961
|
}
|
|
20962
20962
|
return Zc(D.value, ((B = (C = s.data) == null ? void 0 : C.data) == null ? void 0 : B.length) === 2, t.t("singleValue.trend.not_available"));
|
|
20963
|
-
}), O = Gm(N(() => s.showTrend), void 0, N(() => s.data.meta)), m = (_) => _ > 0 ? "positive" : _ < 0 ? "negative" : "neutral", b = (_) => _ > 0 ?
|
|
20963
|
+
}), O = Gm(N(() => s.showTrend), void 0, N(() => s.data.meta)), m = (_) => _ > 0 ? "positive" : _ < 0 ? "negative" : "neutral", b = (_) => _ > 0 ? RT : _ < 0 ? PT : Xd;
|
|
20964
20964
|
return si(() => {
|
|
20965
20965
|
var _, M, C, B;
|
|
20966
20966
|
!s.showTrend && ((M = (_ = s.data) == null ? void 0 : _.data) == null ? void 0 : M.length) > 1 ? console.warn("SingleValue chart should only be used with a single data point. Data length:", s.data.data.length) : s.showTrend && ((B = (C = s.data) == null ? void 0 : C.data) == null ? void 0 : B.length) > 2 && console.warn("SingleValue with trend expects 2 or fewer data points. Instead got:", s.data.data.length);
|
|
20967
20967
|
}), (_, M) => {
|
|
20968
|
-
const C =
|
|
20968
|
+
const C = Ee("KEmptyState");
|
|
20969
20969
|
return Z(), ct("div", {
|
|
20970
20970
|
class: Fe(["chart-parent", r.value]),
|
|
20971
20971
|
"data-testid": "single-value-parent"
|
|
@@ -20976,7 +20976,7 @@ const wA = /* @__PURE__ */ he({
|
|
|
20976
20976
|
"data-testid": "single-value-error",
|
|
20977
20977
|
"icon-variant": "error",
|
|
20978
20978
|
title: Q(t).t("singleValue.valueError")
|
|
20979
|
-
}, null, 8, ["title"])) : (Z(), ct("div",
|
|
20979
|
+
}, null, 8, ["title"])) : (Z(), ct("div", EA, [
|
|
20980
20980
|
ut("div", IA, [
|
|
20981
20981
|
ut("div", LA, [
|
|
20982
20982
|
ut("span", NA, dt(w.value), 1),
|
|
@@ -20989,7 +20989,7 @@ const wA = /* @__PURE__ */ he({
|
|
|
20989
20989
|
class: Fe(["trend-change", m(k.value)]),
|
|
20990
20990
|
"data-testid": "single-value-trend"
|
|
20991
20991
|
}, [
|
|
20992
|
-
S.value || k.value !== 0 ? (Z(), Lt(Lm(
|
|
20992
|
+
S.value || k.value !== 0 ? (Z(), Lt(Lm(R.value), {
|
|
20993
20993
|
key: 0,
|
|
20994
20994
|
color: b(k.value),
|
|
20995
20995
|
size: `var(--kui-icon-size-30, ${Q(pr)})`
|
|
@@ -21066,10 +21066,10 @@ const wA = /* @__PURE__ */ he({
|
|
|
21066
21066
|
return c;
|
|
21067
21067
|
});
|
|
21068
21068
|
return (c, u) => {
|
|
21069
|
-
const d =
|
|
21069
|
+
const d = Ee("KEmptyState");
|
|
21070
21070
|
return Z(), ct("div", $A, [
|
|
21071
21071
|
l.value ? (Z(), ct("div", YA, [
|
|
21072
|
-
r.value ? (Z(), Lt(
|
|
21072
|
+
r.value ? (Z(), Lt(RA, {
|
|
21073
21073
|
key: 0,
|
|
21074
21074
|
"chart-data": i.value,
|
|
21075
21075
|
"dataset-colors": n.chartOptions.chartDatasetColors,
|
|
@@ -21102,7 +21102,7 @@ const wA = /* @__PURE__ */ he({
|
|
|
21102
21102
|
]);
|
|
21103
21103
|
};
|
|
21104
21104
|
}
|
|
21105
|
-
}),
|
|
21105
|
+
}), aR = /* @__PURE__ */ Ye(jA, [["__scopeId", "data-v-23ca8c84"]]), VA = {
|
|
21106
21106
|
class: "top-n-card-title",
|
|
21107
21107
|
"data-testid": "top-n-card-title"
|
|
21108
21108
|
}, qA = {
|
|
@@ -21153,15 +21153,15 @@ const wA = /* @__PURE__ */ he({
|
|
|
21153
21153
|
const H = F.event;
|
|
21154
21154
|
return String(H[o.value]);
|
|
21155
21155
|
}, k = (F, H) => {
|
|
21156
|
-
var j,
|
|
21157
|
-
const V = String(F.event[H]), q = (z = (
|
|
21156
|
+
var j, E, z;
|
|
21157
|
+
const V = String(F.event[H]), q = (z = (E = (j = t.data.meta) == null ? void 0 : j.display) == null ? void 0 : E[H]) == null ? void 0 : z[V];
|
|
21158
21158
|
return {
|
|
21159
21159
|
dimension: H,
|
|
21160
21160
|
id: V,
|
|
21161
21161
|
name: (q == null ? void 0 : q.name) || "-",
|
|
21162
21162
|
deleted: !!(q != null && q.deleted)
|
|
21163
21163
|
};
|
|
21164
|
-
},
|
|
21164
|
+
}, R = (F) => {
|
|
21165
21165
|
const H = D(F), V = u.value && u.value[H];
|
|
21166
21166
|
return V ? V.name : "-";
|
|
21167
21167
|
}, A = (F) => {
|
|
@@ -21175,26 +21175,26 @@ const wA = /* @__PURE__ */ he({
|
|
|
21175
21175
|
const q = typeof V == "number" ? V : Number(V);
|
|
21176
21176
|
if (Number.isNaN(q))
|
|
21177
21177
|
return "–";
|
|
21178
|
-
const j = (($ = (z = t.data.meta) == null ? void 0 : z.metric_units) == null ? void 0 : $[H]) || "count",
|
|
21178
|
+
const j = (($ = (z = t.data.meta) == null ? void 0 : z.metric_units) == null ? void 0 : $[H]) || "count", E = ["count", "count/minute", "token count"].includes(j);
|
|
21179
21179
|
return i(q, j, {
|
|
21180
|
-
approximate:
|
|
21180
|
+
approximate: E,
|
|
21181
21181
|
isBytes1024: !0,
|
|
21182
21182
|
translateUnit: (at) => W(at, q)
|
|
21183
21183
|
});
|
|
21184
21184
|
}, m = (F) => h.value ? O(F, h.value) : "–", b = N(() => {
|
|
21185
21185
|
var F;
|
|
21186
21186
|
return (F = s.value) != null && F.length ? s.value.map((H) => {
|
|
21187
|
-
const V = a.value.map((z) => k(H, z)), q = V[0], j = (q == null ? void 0 : q.id) || D(H),
|
|
21187
|
+
const V = a.value.map((z) => k(H, z)), q = V[0], j = (q == null ? void 0 : q.id) || D(H), E = {
|
|
21188
21188
|
id: j,
|
|
21189
21189
|
rowKey: V.map((z) => `${z.dimension}:${z.id}`).join("|") || j,
|
|
21190
|
-
name: (q == null ? void 0 : q.name) ||
|
|
21190
|
+
name: (q == null ? void 0 : q.name) || R(H),
|
|
21191
21191
|
deleted: A(H),
|
|
21192
21192
|
dimensions: V,
|
|
21193
21193
|
original: H
|
|
21194
21194
|
};
|
|
21195
|
-
return h.value && (
|
|
21196
|
-
$ !== 0 && (
|
|
21197
|
-
}),
|
|
21195
|
+
return h.value && (E.value = m(H)), d.value.forEach((z, $) => {
|
|
21196
|
+
$ !== 0 && (E[z] = O(H, z));
|
|
21197
|
+
}), E;
|
|
21198
21198
|
}) : [];
|
|
21199
21199
|
}), _ = N(() => {
|
|
21200
21200
|
if (!r.value)
|
|
@@ -21229,7 +21229,7 @@ const wA = /* @__PURE__ */ he({
|
|
|
21229
21229
|
return e.te(`chartUnits.${F}`) ? e.t(`chartUnits.${F}`, { plural: V }) : F;
|
|
21230
21230
|
};
|
|
21231
21231
|
return (F, H) => {
|
|
21232
|
-
const V =
|
|
21232
|
+
const V = Ee("KEmptyState"), q = Ee("KSkeleton"), j = Ee("KCard");
|
|
21233
21233
|
return Z(), Lt(j, {
|
|
21234
21234
|
class: "kong-ui-public-top-n-table",
|
|
21235
21235
|
"title-tag": n.titleTag
|
|
@@ -21258,40 +21258,40 @@ const wA = /* @__PURE__ */ he({
|
|
|
21258
21258
|
}, [
|
|
21259
21259
|
ut("thead", KA, [
|
|
21260
21260
|
ut("tr", XA, [
|
|
21261
|
-
(Z(!0), ct(Yn, null, xi(g.value, (
|
|
21262
|
-
key:
|
|
21261
|
+
(Z(!0), ct(Yn, null, xi(g.value, (E) => (Z(), ct("th", {
|
|
21262
|
+
key: E.key,
|
|
21263
21263
|
class: Fe(["top-n-table-header-cell", {
|
|
21264
|
-
"top-n-table-header-cell-metric":
|
|
21265
|
-
"top-n-table-header-cell-dimension-compact": S(
|
|
21264
|
+
"top-n-table-header-cell-metric": E.type === "metric",
|
|
21265
|
+
"top-n-table-header-cell-dimension-compact": S(E)
|
|
21266
21266
|
}]),
|
|
21267
21267
|
"data-testid": "top-n-table-header-column"
|
|
21268
21268
|
}, [
|
|
21269
|
-
ut("span", ZA, dt(
|
|
21269
|
+
ut("span", ZA, dt(E.label), 1)
|
|
21270
21270
|
], 2))), 128))
|
|
21271
21271
|
])
|
|
21272
21272
|
]),
|
|
21273
21273
|
ut("tbody", null, [
|
|
21274
|
-
(Z(!0), ct(Yn, null, xi(b.value, (
|
|
21275
|
-
key:
|
|
21274
|
+
(Z(!0), ct(Yn, null, xi(b.value, (E) => (Z(), ct("tr", {
|
|
21275
|
+
key: E.rowKey,
|
|
21276
21276
|
class: "top-n-table-row"
|
|
21277
21277
|
}, [
|
|
21278
21278
|
ut("td", {
|
|
21279
21279
|
class: Fe(["top-n-table-cell top-n-table-cell--name", { "top-n-table-cell-dimension-compact": l.value }])
|
|
21280
21280
|
}, [
|
|
21281
21281
|
ut("span", {
|
|
21282
|
-
"data-testid": `row-${
|
|
21282
|
+
"data-testid": `row-${E.id}`
|
|
21283
21283
|
}, [
|
|
21284
21284
|
ss(F.$slots, "name", {
|
|
21285
21285
|
record: {
|
|
21286
|
-
id:
|
|
21287
|
-
name:
|
|
21288
|
-
deleted:
|
|
21286
|
+
id: E.id,
|
|
21287
|
+
name: E.name,
|
|
21288
|
+
deleted: E.deleted,
|
|
21289
21289
|
dimension: o.value,
|
|
21290
|
-
dimensions:
|
|
21291
|
-
isEmpty:
|
|
21290
|
+
dimensions: E.dimensions,
|
|
21291
|
+
isEmpty: E.id === "empty"
|
|
21292
21292
|
}
|
|
21293
21293
|
}, () => [
|
|
21294
|
-
Ie(dt(
|
|
21294
|
+
Ie(dt(E.name), 1)
|
|
21295
21295
|
], !0)
|
|
21296
21296
|
], 8, QA)
|
|
21297
21297
|
], 2),
|
|
@@ -21300,9 +21300,9 @@ const wA = /* @__PURE__ */ he({
|
|
|
21300
21300
|
class: Fe(["top-n-table-cell top-n-table-cell--dimension", { "top-n-table-cell-dimension-compact": !w(z) }])
|
|
21301
21301
|
}, [
|
|
21302
21302
|
ss(F.$slots, "name", {
|
|
21303
|
-
record: B(
|
|
21303
|
+
record: B(E, z.key)
|
|
21304
21304
|
}, () => [
|
|
21305
|
-
Ie(dt(C(
|
|
21305
|
+
Ie(dt(C(E, z.key)), 1)
|
|
21306
21306
|
], !0)
|
|
21307
21307
|
], 2))), 128)),
|
|
21308
21308
|
(Z(!0), ct(Yn, null, xi(y.value, (z) => (Z(), ct("td", {
|
|
@@ -21311,11 +21311,11 @@ const wA = /* @__PURE__ */ he({
|
|
|
21311
21311
|
}, [
|
|
21312
21312
|
z.key === "value" ? (Z(), ct("span", {
|
|
21313
21313
|
key: 0,
|
|
21314
|
-
"data-testid": `row-${
|
|
21315
|
-
}, dt(M(
|
|
21314
|
+
"data-testid": `row-${E.id}`
|
|
21315
|
+
}, dt(M(E, z.key)), 9, JA)) : (Z(), ct("span", {
|
|
21316
21316
|
key: 1,
|
|
21317
|
-
"data-testid": `row-${
|
|
21318
|
-
}, dt(M(
|
|
21317
|
+
"data-testid": `row-${E.id}-${z.key}`
|
|
21318
|
+
}, dt(M(E, z.key)), 9, tP))
|
|
21319
21319
|
]))), 128))
|
|
21320
21320
|
]))), 128))
|
|
21321
21321
|
])
|
|
@@ -21350,7 +21350,7 @@ const wA = /* @__PURE__ */ he({
|
|
|
21350
21350
|
]), 1032, ["title-tag"]);
|
|
21351
21351
|
};
|
|
21352
21352
|
}
|
|
21353
|
-
}),
|
|
21353
|
+
}), oR = /* @__PURE__ */ Ye(nP, [["__scopeId", "data-v-bd2cedcf"]]);
|
|
21354
21354
|
var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
21355
21355
|
function wm(n) {
|
|
21356
21356
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
@@ -21358,8 +21358,8 @@ function wm(n) {
|
|
|
21358
21358
|
var Wa = { exports: {} };
|
|
21359
21359
|
Wa.exports;
|
|
21360
21360
|
(function(n, t) {
|
|
21361
|
-
var e = 200, i = "Expected a function", s = "__lodash_hash_undefined__", r = 1, a = 2, o = 9007199254740991, l = "[object Arguments]", c = "[object Array]", u = "[object Boolean]", d = "[object Date]", h = "[object Error]", f = "[object Function]", g = "[object GeneratorFunction]", y = "[object Map]", v = "[object Number]", w = "[object Object]", S = "[object Promise]", D = "[object RegExp]", k = "[object Set]",
|
|
21362
|
-
K[_] = K[M] = K[C] = K[B] = K[L] = K[W] = K[F] = K[H] = K[V] = !0, K[l] = K[c] = K[m] = K[u] = K[b] = K[d] = K[h] = K[f] = K[y] = K[v] = K[w] = K[D] = K[k] = K[
|
|
21361
|
+
var e = 200, i = "Expected a function", s = "__lodash_hash_undefined__", r = 1, a = 2, o = 9007199254740991, l = "[object Arguments]", c = "[object Array]", u = "[object Boolean]", d = "[object Date]", h = "[object Error]", f = "[object Function]", g = "[object GeneratorFunction]", y = "[object Map]", v = "[object Number]", w = "[object Object]", S = "[object Promise]", D = "[object RegExp]", k = "[object Set]", R = "[object String]", A = "[object Symbol]", O = "[object WeakMap]", m = "[object ArrayBuffer]", b = "[object DataView]", _ = "[object Float32Array]", M = "[object Float64Array]", C = "[object Int8Array]", B = "[object Int16Array]", L = "[object Int32Array]", W = "[object Uint8Array]", F = "[object Uint8ClampedArray]", H = "[object Uint16Array]", V = "[object Uint32Array]", q = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, j = /^\w*$/, E = /^\./, z = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, $ = /[\\^$.*+?()[\]{}|]/g, at = /\\(\\)?/g, it = /^\[object .+?Constructor\]$/, G = /^(?:0|[1-9]\d*)$/, K = {};
|
|
21362
|
+
K[_] = K[M] = K[C] = K[B] = K[L] = K[W] = K[F] = K[H] = K[V] = !0, K[l] = K[c] = K[m] = K[u] = K[b] = K[d] = K[h] = K[f] = K[y] = K[v] = K[w] = K[D] = K[k] = K[R] = K[O] = !1;
|
|
21363
21363
|
var J = typeof Ne == "object" && Ne && Ne.Object === Object && Ne, nt = typeof self == "object" && self && self.Object === Object && self, et = J || nt || Function("return this")(), tt = t && !t.nodeType && t, mt = tt && !0 && n && !n.nodeType && n, Tt = mt && mt.exports === tt, lt = Tt && J.process, wt = function() {
|
|
21364
21364
|
try {
|
|
21365
21365
|
return lt && lt.binding("util");
|
|
@@ -21421,7 +21421,7 @@ Wa.exports;
|
|
|
21421
21421
|
return p ? "Symbol(src)_1." + p : "";
|
|
21422
21422
|
}(), tn = se.toString, jt = me.hasOwnProperty, Oe = me.toString, oi = RegExp(
|
|
21423
21423
|
"^" + tn.call(jt).replace($, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
21424
|
-
), Ar = et.Symbol, Pr = et.Uint8Array, ys = me.propertyIsEnumerable, li = Yt.splice, bs = It(Object.keys, Object), ci = _n(et, "DataView"), mn = _n(et, "Map"), pn = _n(et, "Promise"), _s = _n(et, "Set"), vs = _n(et, "WeakMap"), ui = _n(Object, "create"), so = xn(ci), ro = xn(mn),
|
|
21424
|
+
), Ar = et.Symbol, Pr = et.Uint8Array, ys = me.propertyIsEnumerable, li = Yt.splice, bs = It(Object.keys, Object), ci = _n(et, "DataView"), mn = _n(et, "Map"), pn = _n(et, "Promise"), _s = _n(et, "Set"), vs = _n(et, "WeakMap"), ui = _n(Object, "create"), so = xn(ci), ro = xn(mn), Rr = xn(pn), Er = xn(_s), yn = xn(vs), Ii = Ar ? Ar.prototype : void 0, xs = Ii ? Ii.valueOf : void 0, Ir = Ii ? Ii.toString : void 0;
|
|
21425
21425
|
function bn(p) {
|
|
21426
21426
|
var T = -1, U = p ? p.length : 0;
|
|
21427
21427
|
for (this.clear(); ++T < U; ) {
|
|
@@ -21462,7 +21462,7 @@ Wa.exports;
|
|
|
21462
21462
|
function uo() {
|
|
21463
21463
|
this.__data__ = [];
|
|
21464
21464
|
}
|
|
21465
|
-
function
|
|
21465
|
+
function En(p) {
|
|
21466
21466
|
var T = this.__data__, U = Fi(T, p);
|
|
21467
21467
|
if (U < 0)
|
|
21468
21468
|
return !1;
|
|
@@ -21480,7 +21480,7 @@ Wa.exports;
|
|
|
21480
21480
|
var U = this.__data__, X = Fi(U, p);
|
|
21481
21481
|
return X < 0 ? U.push([p, T]) : U[X][1] = T, this;
|
|
21482
21482
|
}
|
|
21483
|
-
nn.prototype.clear = uo, nn.prototype.delete =
|
|
21483
|
+
nn.prototype.clear = uo, nn.prototype.delete = En, nn.prototype.get = ho, nn.prototype.has = fo, nn.prototype.set = go;
|
|
21484
21484
|
function sn(p) {
|
|
21485
21485
|
var T = -1, U = p ? p.length : 0;
|
|
21486
21486
|
for (this.clear(); ++T < U; ) {
|
|
@@ -21621,13 +21621,13 @@ Wa.exports;
|
|
|
21621
21621
|
var T = st(p) || ie(p) ? oi : it;
|
|
21622
21622
|
return T.test(xn(p));
|
|
21623
21623
|
}
|
|
21624
|
-
function
|
|
21624
|
+
function Ro(p) {
|
|
21625
21625
|
return Ce(p) && Xt(p.length) && !!K[Oe.call(p)];
|
|
21626
21626
|
}
|
|
21627
21627
|
function Lr(p) {
|
|
21628
21628
|
return typeof p == "function" ? p : p == null ? Wi : typeof p == "object" ? x(p) ? Ui(p[0], p[1]) : Io(p) : Dm(p);
|
|
21629
21629
|
}
|
|
21630
|
-
function
|
|
21630
|
+
function Eo(p) {
|
|
21631
21631
|
if (!Ho(p))
|
|
21632
21632
|
return bs(p);
|
|
21633
21633
|
var T = [];
|
|
@@ -21721,7 +21721,7 @@ Wa.exports;
|
|
|
21721
21721
|
case h:
|
|
21722
21722
|
return p.name == T.name && p.message == T.message;
|
|
21723
21723
|
case D:
|
|
21724
|
-
case
|
|
21724
|
+
case R:
|
|
21725
21725
|
return p == T + "";
|
|
21726
21726
|
case y:
|
|
21727
21727
|
var ae = an;
|
|
@@ -21796,9 +21796,9 @@ Wa.exports;
|
|
|
21796
21796
|
return b;
|
|
21797
21797
|
case ro:
|
|
21798
21798
|
return y;
|
|
21799
|
-
case Er:
|
|
21800
|
-
return S;
|
|
21801
21799
|
case Rr:
|
|
21800
|
+
return S;
|
|
21801
|
+
case Er:
|
|
21802
21802
|
return k;
|
|
21803
21803
|
case yn:
|
|
21804
21804
|
return O;
|
|
@@ -21849,7 +21849,7 @@ Wa.exports;
|
|
|
21849
21849
|
var Bo = di(function(p) {
|
|
21850
21850
|
p = Nn(p);
|
|
21851
21851
|
var T = [];
|
|
21852
|
-
return
|
|
21852
|
+
return E.test(p) && T.push(""), p.replace(z, function(U, X, bt, ot) {
|
|
21853
21853
|
T.push(bt ? ot.replace(at, "$1") : X || U);
|
|
21854
21854
|
}), T;
|
|
21855
21855
|
});
|
|
@@ -21915,7 +21915,7 @@ Wa.exports;
|
|
|
21915
21915
|
function le(p) {
|
|
21916
21916
|
return typeof p == "symbol" || Ce(p) && Oe.call(p) == A;
|
|
21917
21917
|
}
|
|
21918
|
-
var Wr = yt ? fe(yt) :
|
|
21918
|
+
var Wr = yt ? fe(yt) : Ro;
|
|
21919
21919
|
function Nn(p) {
|
|
21920
21920
|
return p == null ? "" : Nr(p);
|
|
21921
21921
|
}
|
|
@@ -21927,7 +21927,7 @@ Wa.exports;
|
|
|
21927
21927
|
return p != null && Uo(p, T, Oo);
|
|
21928
21928
|
}
|
|
21929
21929
|
function hi(p) {
|
|
21930
|
-
return I(p) ? To(p) :
|
|
21930
|
+
return I(p) ? To(p) : Eo(p);
|
|
21931
21931
|
}
|
|
21932
21932
|
function ks(p, T) {
|
|
21933
21933
|
var U = {};
|
|
@@ -22036,10 +22036,10 @@ function Sm(n) {
|
|
|
22036
22036
|
function PP(n) {
|
|
22037
22037
|
return typeof n == "symbol" || Sm(n) && qc.call(n) == cP;
|
|
22038
22038
|
}
|
|
22039
|
-
var
|
|
22039
|
+
var RP = xP(function(n, t) {
|
|
22040
22040
|
return n == null ? {} : _P(n, gP(bP(t), SP));
|
|
22041
|
-
}),
|
|
22042
|
-
const IP = /* @__PURE__ */ wm(
|
|
22041
|
+
}), EP = RP;
|
|
22042
|
+
const IP = /* @__PURE__ */ wm(EP);
|
|
22043
22043
|
var Tm = { exports: {} };
|
|
22044
22044
|
(function(n, t) {
|
|
22045
22045
|
(function(e, i) {
|
|
@@ -22123,7 +22123,7 @@ License: MIT
|
|
|
22123
22123
|
var i = typeof self < "u" ? self : typeof window < "u" ? window : i !== void 0 ? i : {}, s, r = !i.document && !!i.postMessage, a = i.IS_PAPA_WORKER || !1, o = {}, l = 0, c = {};
|
|
22124
22124
|
function u(m) {
|
|
22125
22125
|
this._handle = null, this._finished = !1, this._completed = !1, this._halted = !1, this._input = null, this._baseIndex = 0, this._partialLine = "", this._rowCount = 0, this._start = 0, this._nextChunk = null, this.isFirstChunk = !0, this._completeResults = { data: [], errors: [], meta: {} }, (function(b) {
|
|
22126
|
-
var _ =
|
|
22126
|
+
var _ = R(b);
|
|
22127
22127
|
_.chunkSize = parseInt(_.chunkSize), b.step || b.chunk || (_.chunkSize = null), this._handle = new y(_), (this._handle.streamer = this)._config = _;
|
|
22128
22128
|
}).call(this, m), this.parseChunk = function(b, _) {
|
|
22129
22129
|
var M = parseInt(this._config.skipFirstNLines) || 0;
|
|
@@ -22229,7 +22229,7 @@ License: MIT
|
|
|
22229
22229
|
}, this);
|
|
22230
22230
|
}
|
|
22231
22231
|
function y(m) {
|
|
22232
|
-
var b, _, M, C, B = Math.pow(2, 53), L = -B, W = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, F = /^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/, H = this, V = 0, q = 0, j = !1,
|
|
22232
|
+
var b, _, M, C, B = Math.pow(2, 53), L = -B, W = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, F = /^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/, H = this, V = 0, q = 0, j = !1, E = !1, z = [], $ = { data: [], errors: [], meta: {} };
|
|
22233
22233
|
function at(J) {
|
|
22234
22234
|
return m.skipEmptyLines === "greedy" ? J.join("").trim() === "" : J.length === 1 && J[0].length === 0;
|
|
22235
22235
|
}
|
|
@@ -22275,7 +22275,7 @@ License: MIT
|
|
|
22275
22275
|
0 < se.data.length && (ge /= se.data.length - Yt), (gt === void 0 || It <= gt) && (fe === void 0 || fe < ge) && 1.99 < ge && (gt = It, ne = an, fe = ge);
|
|
22276
22276
|
}
|
|
22277
22277
|
return { successful: !!(m.delimiter = ne), bestDelimiter: ne };
|
|
22278
|
-
})(J, m.newline, m.skipEmptyLines, m.comments, m.delimitersToGuess)).successful ? m.delimiter = tt.bestDelimiter : (M = !0, m.delimiter = c.DefaultDelimiter), $.meta.delimiter = m.delimiter),
|
|
22278
|
+
})(J, m.newline, m.skipEmptyLines, m.comments, m.delimitersToGuess)).successful ? m.delimiter = tt.bestDelimiter : (M = !0, m.delimiter = c.DefaultDelimiter), $.meta.delimiter = m.delimiter), R(m));
|
|
22279
22279
|
return m.preview && m.header && tt.preview++, b = J, _ = new w(tt), $ = _.parse(b, nt, et), it(), j ? { meta: { paused: !0 } } : $ || { meta: { paused: !1 } };
|
|
22280
22280
|
}, this.paused = function() {
|
|
22281
22281
|
return j;
|
|
@@ -22284,9 +22284,9 @@ License: MIT
|
|
|
22284
22284
|
}, this.resume = function() {
|
|
22285
22285
|
H.streamer._halted ? (j = !1, H.streamer.parseChunk(b, !0)) : setTimeout(H.resume, 3);
|
|
22286
22286
|
}, this.aborted = function() {
|
|
22287
|
-
return
|
|
22287
|
+
return E;
|
|
22288
22288
|
}, this.abort = function() {
|
|
22289
|
-
|
|
22289
|
+
E = !0, _.abort(), $.meta.aborted = !0, O(m.complete) && m.complete($), b = "";
|
|
22290
22290
|
}, this.guessLineEndings = function(mt, tt) {
|
|
22291
22291
|
mt = mt.substring(0, 1048576);
|
|
22292
22292
|
var tt = new RegExp(v(tt) + "([^]*?)" + v(tt), "gm"), et = (mt = mt.replace(tt, "")).split("\r"), tt = mt.split(`
|
|
@@ -22310,12 +22310,12 @@ License: MIT
|
|
|
22310
22310
|
` && (_ = `
|
|
22311
22311
|
`);
|
|
22312
22312
|
var q = 0, j = !1;
|
|
22313
|
-
this.parse = function(
|
|
22314
|
-
if (typeof
|
|
22315
|
-
var at =
|
|
22316
|
-
if (!
|
|
22317
|
-
if (L || L !== !1 &&
|
|
22318
|
-
for (var Tt =
|
|
22313
|
+
this.parse = function(E, z, $) {
|
|
22314
|
+
if (typeof E != "string") throw new Error("Input must be a string");
|
|
22315
|
+
var at = E.length, it = b.length, G = _.length, K = M.length, J = O(C), nt = [], et = [], tt = [], mt = q = 0;
|
|
22316
|
+
if (!E) return It();
|
|
22317
|
+
if (L || L !== !1 && E.indexOf(H) === -1) {
|
|
22318
|
+
for (var Tt = E.split(_), lt = 0; lt < Tt.length; lt++) {
|
|
22319
22319
|
if (tt = Tt[lt], q += tt.length, lt !== Tt.length - 1) q += _.length;
|
|
22320
22320
|
else if ($) return It();
|
|
22321
22321
|
if (!M || tt.substring(0, K) !== M) {
|
|
@@ -22327,32 +22327,32 @@ License: MIT
|
|
|
22327
22327
|
}
|
|
22328
22328
|
return It();
|
|
22329
22329
|
}
|
|
22330
|
-
for (var wt =
|
|
22331
|
-
if ((gt =
|
|
22332
|
-
if (gt === at - 1) return ie(
|
|
22333
|
-
if (H === V &&
|
|
22334
|
-
else if (H === V || gt === 0 ||
|
|
22335
|
-
wt !== -1 && wt < gt + 1 && (wt =
|
|
22336
|
-
var Ot = ye((yt = yt !== -1 && yt < gt + 1 ?
|
|
22337
|
-
if (
|
|
22338
|
-
tt.push(
|
|
22330
|
+
for (var wt = E.indexOf(b, q), yt = E.indexOf(_, q), ne = new RegExp(v(V) + v(H), "g"), gt = E.indexOf(H, q); ; ) if (E[q] === H) for (gt = q, q++; ; ) {
|
|
22331
|
+
if ((gt = E.indexOf(H, gt + 1)) === -1) return $ || et.push({ type: "Quotes", code: "MissingQuotes", message: "Quoted field unterminated", row: nt.length, index: q }), ie();
|
|
22332
|
+
if (gt === at - 1) return ie(E.substring(q, gt).replace(ne, H));
|
|
22333
|
+
if (H === V && E[gt + 1] === V) gt++;
|
|
22334
|
+
else if (H === V || gt === 0 || E[gt - 1] !== V) {
|
|
22335
|
+
wt !== -1 && wt < gt + 1 && (wt = E.indexOf(b, gt + 1));
|
|
22336
|
+
var Ot = ye((yt = yt !== -1 && yt < gt + 1 ? E.indexOf(_, gt + 1) : yt) === -1 ? wt : Math.min(wt, yt));
|
|
22337
|
+
if (E.substr(gt + 1 + Ot, it) === b) {
|
|
22338
|
+
tt.push(E.substring(q, gt).replace(ne, H)), E[q = gt + 1 + Ot + it] !== H && (gt = E.indexOf(H, q)), wt = E.indexOf(b, q), yt = E.indexOf(_, q);
|
|
22339
22339
|
break;
|
|
22340
22340
|
}
|
|
22341
|
-
if (Ot = ye(yt),
|
|
22342
|
-
if (tt.push(
|
|
22341
|
+
if (Ot = ye(yt), E.substring(gt + 1 + Ot, gt + 1 + Ot + G) === _) {
|
|
22342
|
+
if (tt.push(E.substring(q, gt).replace(ne, H)), an(gt + 1 + Ot + G), wt = E.indexOf(b, q), gt = E.indexOf(H, q), J && (ge(), j)) return It();
|
|
22343
22343
|
if (B && nt.length >= B) return It(!0);
|
|
22344
22344
|
break;
|
|
22345
22345
|
}
|
|
22346
22346
|
et.push({ type: "Quotes", code: "InvalidQuotes", message: "Trailing quote on quoted field is malformed", row: nt.length, index: q }), gt++;
|
|
22347
22347
|
}
|
|
22348
22348
|
}
|
|
22349
|
-
else if (M && tt.length === 0 &&
|
|
22349
|
+
else if (M && tt.length === 0 && E.substring(q, q + K) === M) {
|
|
22350
22350
|
if (yt === -1) return It();
|
|
22351
|
-
q = yt + G, yt =
|
|
22352
|
-
} else if (wt !== -1 && (wt < yt || yt === -1)) tt.push(
|
|
22351
|
+
q = yt + G, yt = E.indexOf(_, q), wt = E.indexOf(b, q);
|
|
22352
|
+
} else if (wt !== -1 && (wt < yt || yt === -1)) tt.push(E.substring(q, wt)), q = wt + it, wt = E.indexOf(b, q);
|
|
22353
22353
|
else {
|
|
22354
22354
|
if (yt === -1) break;
|
|
22355
|
-
if (tt.push(
|
|
22355
|
+
if (tt.push(E.substring(q, yt)), an(yt + G), J && (ge(), j)) return It();
|
|
22356
22356
|
if (B && nt.length >= B) return It(!0);
|
|
22357
22357
|
}
|
|
22358
22358
|
return ie();
|
|
@@ -22361,13 +22361,13 @@ License: MIT
|
|
|
22361
22361
|
}
|
|
22362
22362
|
function ye(Yt) {
|
|
22363
22363
|
var se = 0;
|
|
22364
|
-
return se = Yt !== -1 && (Yt =
|
|
22364
|
+
return se = Yt !== -1 && (Yt = E.substring(gt + 1, Yt)) && Yt.trim() === "" ? Yt.length : se;
|
|
22365
22365
|
}
|
|
22366
22366
|
function ie(Yt) {
|
|
22367
|
-
return $ || (Yt === void 0 && (Yt =
|
|
22367
|
+
return $ || (Yt === void 0 && (Yt = E.substring(q)), tt.push(Yt), q = at, fe(tt), J && ge()), It();
|
|
22368
22368
|
}
|
|
22369
22369
|
function an(Yt) {
|
|
22370
|
-
q = Yt, fe(tt), tt = [], yt =
|
|
22370
|
+
q = Yt, fe(tt), tt = [], yt = E.indexOf(_, q);
|
|
22371
22371
|
}
|
|
22372
22372
|
function It(Yt) {
|
|
22373
22373
|
if (m.header && !z && nt.length && !F) {
|
|
@@ -22416,10 +22416,10 @@ License: MIT
|
|
|
22416
22416
|
function k() {
|
|
22417
22417
|
throw new Error("Not implemented.");
|
|
22418
22418
|
}
|
|
22419
|
-
function
|
|
22419
|
+
function R(m) {
|
|
22420
22420
|
if (typeof m != "object" || m === null) return m;
|
|
22421
22421
|
var b, _ = Array.isArray(m) ? [] : {};
|
|
22422
|
-
for (b in m) _[b] =
|
|
22422
|
+
for (b in m) _[b] = R(m[b]);
|
|
22423
22423
|
return _;
|
|
22424
22424
|
}
|
|
22425
22425
|
function A(m, b) {
|
|
@@ -22461,7 +22461,7 @@ License: MIT
|
|
|
22461
22461
|
function j(z, $, at) {
|
|
22462
22462
|
var it = "", G = (typeof z == "string" && (z = JSON.parse(z)), typeof $ == "string" && ($ = JSON.parse($)), Array.isArray(z) && 0 < z.length), K = !Array.isArray($[0]);
|
|
22463
22463
|
if (G && M) {
|
|
22464
|
-
for (var J = 0; J < z.length; J++) 0 < J && (it += C), it +=
|
|
22464
|
+
for (var J = 0; J < z.length; J++) 0 < J && (it += C), it += E(z[J], J);
|
|
22465
22465
|
0 < $.length && (it += B);
|
|
22466
22466
|
}
|
|
22467
22467
|
for (var nt = 0; nt < $.length; nt++) {
|
|
@@ -22477,14 +22477,14 @@ License: MIT
|
|
|
22477
22477
|
for (var yt = 0; yt < et; yt++) {
|
|
22478
22478
|
0 < yt && !mt && (it += C);
|
|
22479
22479
|
var ne = G && K ? z[yt] : yt;
|
|
22480
|
-
it +=
|
|
22480
|
+
it += E($[nt][ne], yt);
|
|
22481
22481
|
}
|
|
22482
22482
|
nt < $.length - 1 && (!at || 0 < et && !mt) && (it += B);
|
|
22483
22483
|
}
|
|
22484
22484
|
}
|
|
22485
22485
|
return it;
|
|
22486
22486
|
}
|
|
22487
|
-
function
|
|
22487
|
+
function E(z, $) {
|
|
22488
22488
|
var at, it;
|
|
22489
22489
|
return z == null ? "" : z.constructor === Date ? JSON.stringify(z).slice(1, 25) : (it = !1, V && typeof z == "string" && V.test(z) && (z = "'" + z, it = !0), at = z.toString().replace(q, W), (it = it || _ === !0 || typeof _ == "function" && _(z, $) || Array.isArray(_) && _[$] || ((G, K) => {
|
|
22490
22490
|
for (var J = 0; J < K.length; J++) if (-1 < G.indexOf(K[J])) return !0;
|
|
@@ -22659,7 +22659,7 @@ const FP = ["id"], zP = /* @__PURE__ */ he({
|
|
|
22659
22659
|
key: 4,
|
|
22660
22660
|
class: "text-muted",
|
|
22661
22661
|
tag: "span"
|
|
22662
|
-
}, Wh = 3,
|
|
22662
|
+
}, Wh = 3, lR = /* @__PURE__ */ he({
|
|
22663
22663
|
__name: "CsvExportModal",
|
|
22664
22664
|
props: {
|
|
22665
22665
|
exportState: {},
|
|
@@ -22678,8 +22678,8 @@ const FP = ["id"], zP = /* @__PURE__ */ he({
|
|
|
22678
22678
|
})), d = () => {
|
|
22679
22679
|
s("closeModal");
|
|
22680
22680
|
}, h = N(() => {
|
|
22681
|
-
var
|
|
22682
|
-
if (i.exportState.status !== "success" || !l.value || !((
|
|
22681
|
+
var R, A, O;
|
|
22682
|
+
if (i.exportState.status !== "success" || !l.value || !((R = i.exportState.chartData) != null && R.meta.metric_names))
|
|
22683
22683
|
return { headers: [], rows: [], csvHeaders: {} };
|
|
22684
22684
|
const g = i.exportState.chartData, y = g.data.some((m) => m.timestamp !== g.data[0].timestamp), v = g.data.map((m) => {
|
|
22685
22685
|
const b = new Date(m.timestamp);
|
|
@@ -22735,9 +22735,9 @@ const FP = ["id"], zP = /* @__PURE__ */ he({
|
|
|
22735
22735
|
return oe(h, () => {
|
|
22736
22736
|
a.value++;
|
|
22737
22737
|
}), (g, y) => {
|
|
22738
|
-
const v =
|
|
22738
|
+
const v = Ee("KSkeleton"), w = Ee("KEmptyState"), S = Ee("KTableData"), D = Ee("KTooltip"), k = Ee("KButton"), R = Ee("KModal");
|
|
22739
22739
|
return Z(), ct("div", HP, [
|
|
22740
|
-
Zt(
|
|
22740
|
+
Zt(R, {
|
|
22741
22741
|
class: "vitals-report",
|
|
22742
22742
|
"data-testid": "csv-export-modal",
|
|
22743
22743
|
"show-dismiss-icon": "",
|
|
@@ -22967,7 +22967,7 @@ const FP = ["id"], zP = /* @__PURE__ */ he({
|
|
|
22967
22967
|
contextFormatter: (M) => {
|
|
22968
22968
|
const C = M + i.value;
|
|
22969
22969
|
let B = "";
|
|
22970
|
-
return i.value > 24 * 60 * 60 * 1e3 ? B =
|
|
22970
|
+
return i.value > 24 * 60 * 60 * 1e3 ? B = Ea(new Date(C), "MMM dd, yyy hh:mm a") : B = Ea(new Date(C), "hh:mm a"), `${aT(M)} - ${B}`;
|
|
22971
22971
|
}
|
|
22972
22972
|
});
|
|
22973
22973
|
}
|
|
@@ -22996,13 +22996,13 @@ const FP = ["id"], zP = /* @__PURE__ */ he({
|
|
|
22996
22996
|
}
|
|
22997
22997
|
}
|
|
22998
22998
|
};
|
|
22999
|
-
}),
|
|
22999
|
+
}), R = qt("0"), A = qt("0");
|
|
23000
23000
|
return si(() => {
|
|
23001
23001
|
We.positioners[D] = function(O, m) {
|
|
23002
23002
|
if (!O.length || u.interactionMode === "interactive" || m.x === null)
|
|
23003
23003
|
return !1;
|
|
23004
23004
|
const b = 10, _ = this.chart.canvas.getBoundingClientRect(), M = u.width || this.width, C = u.height || this.height, B = _.top - C > 0, L = B ? _.top - C - b : _.top + _.height + b, W = _.left > M / 2 - m.x, F = Math.max(b, window.innerWidth - b - M), H = Math.min(F, W ? Math.floor(_.left - M / 2) + m.x : 0 + b);
|
|
23005
|
-
return
|
|
23005
|
+
return R.value = `${L}px`, A.value = `${H}px`, {
|
|
23006
23006
|
x: H,
|
|
23007
23007
|
y: L,
|
|
23008
23008
|
xAlign: "center",
|
|
@@ -23034,7 +23034,7 @@ const FP = ["id"], zP = /* @__PURE__ */ he({
|
|
|
23034
23034
|
n.disableTooltip ? Ft("", !0) : (Z(), Lt(io, {
|
|
23035
23035
|
key: 3,
|
|
23036
23036
|
"absolute-left": A.value,
|
|
23037
|
-
"absolute-top":
|
|
23037
|
+
"absolute-top": R.value,
|
|
23038
23038
|
class: "tooltip",
|
|
23039
23039
|
"data-testid": "sparkline-tooltip",
|
|
23040
23040
|
state: u,
|
|
@@ -23055,23 +23055,23 @@ const FP = ["id"], zP = /* @__PURE__ */ he({
|
|
|
23055
23055
|
], 8, jP)) : Ft("", !0)
|
|
23056
23056
|
]));
|
|
23057
23057
|
}
|
|
23058
|
-
}),
|
|
23058
|
+
}), cR = /* @__PURE__ */ Ye(VP, [["__scopeId", "data-v-ae8259b6"]]);
|
|
23059
23059
|
export {
|
|
23060
|
-
|
|
23060
|
+
rR as AnalyticsChart,
|
|
23061
23061
|
$e as ChartLegendPosition,
|
|
23062
|
-
|
|
23062
|
+
lR as CsvExportModal,
|
|
23063
23063
|
JP as DECIMAL_DISPLAY,
|
|
23064
23064
|
DT as FONT_SIZE_REGULAR,
|
|
23065
23065
|
MT as FONT_SIZE_SMALL,
|
|
23066
23066
|
Xl as MAX_LABEL_LENGTH,
|
|
23067
|
-
|
|
23068
|
-
|
|
23069
|
-
|
|
23067
|
+
aR as SimpleChart,
|
|
23068
|
+
cR as SparklineChart,
|
|
23069
|
+
oR as TopNTable,
|
|
23070
23070
|
Qi as ValidType,
|
|
23071
|
-
|
|
23072
|
-
|
|
23071
|
+
iR as chartTypes,
|
|
23072
|
+
eR as handleQueryError,
|
|
23073
23073
|
mD as lookupStatusCodeColor,
|
|
23074
|
-
|
|
23075
|
-
|
|
23076
|
-
|
|
23074
|
+
nR as simpleChartMetricDisplay,
|
|
23075
|
+
sR as simpleChartTypes,
|
|
23076
|
+
tR as statusCodeBadgeBackgroundColor
|
|
23077
23077
|
};
|