@kong-ui-public/analytics-chart 10.19.3-pr.3498.e2f73f72b.0 → 10.19.3
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 +400 -434
- package/dist/vitals-chart.umd.js +1 -1
- package/package.json +5 -5
package/dist/vitals-chart.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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
|
|
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 Em, onScopeDispose as Rm, 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 Re, 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
|
-
import { CloseIcon as Um, DragIcon as Hm, WarningIcon as Bm, EqualIcon as Wm, InfoIcon as
|
|
7
|
-
import { buildDeltaMapping as
|
|
6
|
+
import { CloseIcon as Um, DragIcon as Hm, WarningIcon as Bm, EqualIcon as Wm, InfoIcon as $m } from "@kong/icons";
|
|
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";
|
|
8
8
|
const Km = "No data in the current time frame", Xm = "Once there is traffic, it will display here", Zm = "Grouped value limit exceeded, showing the top {maxReturned}", Qm = "no-name", Jm = "debug", tp = "Total", ep = "Open in explorer", np = "More actions", ip = "Requests that do not have a value for the selected group", sp = {
|
|
9
9
|
ms: "ms",
|
|
10
10
|
bytes: "Byte{plural}",
|
|
@@ -686,13 +686,13 @@ function zp(n) {
|
|
|
686
686
|
function Up(n) {
|
|
687
687
|
return n && (n.a < 255 ? `rgba(${n.r}, ${n.g}, ${n.b}, ${Dn(n.a)})` : `rgb(${n.r}, ${n.g}, ${n.b})`);
|
|
688
688
|
}
|
|
689
|
-
const Wo = (n) => n <= 31308e-7 ? n * 12.92 : Math.pow(n, 1 / 2.4) * 1.055 - 0.055,
|
|
689
|
+
const Wo = (n) => n <= 31308e-7 ? n * 12.92 : Math.pow(n, 1 / 2.4) * 1.055 - 0.055, $i = (n) => n <= 0.04045 ? n / 12.92 : Math.pow((n + 0.055) / 1.055, 2.4);
|
|
690
690
|
function Hp(n, t, e) {
|
|
691
|
-
const i =
|
|
691
|
+
const i = $i(Dn(n.r)), s = $i(Dn(n.g)), r = $i(Dn(n.b));
|
|
692
692
|
return {
|
|
693
|
-
r: Xn(Wo(i + e * (
|
|
694
|
-
g: Xn(Wo(s + e * (
|
|
695
|
-
b: Xn(Wo(r + e * (
|
|
693
|
+
r: Xn(Wo(i + e * ($i(Dn(t.r)) - i))),
|
|
694
|
+
g: Xn(Wo(s + e * ($i(Dn(t.g)) - s))),
|
|
695
|
+
b: Xn(Wo(r + e * ($i(Dn(t.b)) - r))),
|
|
696
696
|
a: n.a + e * (t.a - n.a)
|
|
697
697
|
};
|
|
698
698
|
}
|
|
@@ -822,7 +822,7 @@ function Be(n, t) {
|
|
|
822
822
|
function ht(n, t) {
|
|
823
823
|
return typeof n > "u" ? t : n;
|
|
824
824
|
}
|
|
825
|
-
const
|
|
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
826
|
function Et(n, t, e) {
|
|
827
827
|
if (n && typeof n.call == "function")
|
|
828
828
|
return n.apply(e, t);
|
|
@@ -864,7 +864,7 @@ function Qh(n) {
|
|
|
864
864
|
"constructor"
|
|
865
865
|
].indexOf(n) === -1;
|
|
866
866
|
}
|
|
867
|
-
function
|
|
867
|
+
function Yp(n, t, e, i) {
|
|
868
868
|
if (!Qh(n))
|
|
869
869
|
return;
|
|
870
870
|
const s = t[n], r = e[n];
|
|
@@ -877,7 +877,7 @@ function dr(n, t, e) {
|
|
|
877
877
|
if (!xt(n))
|
|
878
878
|
return n;
|
|
879
879
|
e = e || {};
|
|
880
|
-
const r = e.merger ||
|
|
880
|
+
const r = e.merger || Yp;
|
|
881
881
|
let a;
|
|
882
882
|
for (let o = 0; o < s; ++o) {
|
|
883
883
|
if (a = i[o], !xt(a))
|
|
@@ -976,7 +976,7 @@ function Jh(n, t, e) {
|
|
|
976
976
|
function te(n) {
|
|
977
977
|
return n * (_t / 180);
|
|
978
978
|
}
|
|
979
|
-
function
|
|
979
|
+
function $a(n) {
|
|
980
980
|
return n * (180 / _t);
|
|
981
981
|
}
|
|
982
982
|
function ru(n) {
|
|
@@ -1209,7 +1209,7 @@ function pc(n) {
|
|
|
1209
1209
|
function Cl(n) {
|
|
1210
1210
|
return pc(n) ? n : new ur(n);
|
|
1211
1211
|
}
|
|
1212
|
-
function
|
|
1212
|
+
function $o(n) {
|
|
1213
1213
|
return pc(n) ? n : new ur(n).saturate(0.5).darken(0.1).hexString();
|
|
1214
1214
|
}
|
|
1215
1215
|
const ay = [
|
|
@@ -1343,7 +1343,7 @@ function dy(n, t) {
|
|
|
1343
1343
|
let e = t.length > 3 ? t[2].value - t[1].value : t[1].value - t[0].value;
|
|
1344
1344
|
return Math.abs(e) >= 1 && n !== Math.floor(n) && (e = n - Math.floor(n)), e;
|
|
1345
1345
|
}
|
|
1346
|
-
var
|
|
1346
|
+
var Ya = {
|
|
1347
1347
|
formatters: of
|
|
1348
1348
|
};
|
|
1349
1349
|
function hy(n) {
|
|
@@ -1390,7 +1390,7 @@ function hy(n) {
|
|
|
1390
1390
|
autoSkip: !0,
|
|
1391
1391
|
autoSkipPadding: 3,
|
|
1392
1392
|
labelOffset: 0,
|
|
1393
|
-
callback:
|
|
1393
|
+
callback: Ya.formatters.values,
|
|
1394
1394
|
minor: {},
|
|
1395
1395
|
major: {},
|
|
1396
1396
|
align: "center",
|
|
@@ -1421,7 +1421,7 @@ function Js(n, t) {
|
|
|
1421
1421
|
}
|
|
1422
1422
|
return n;
|
|
1423
1423
|
}
|
|
1424
|
-
function
|
|
1424
|
+
function Yo(n, t, e) {
|
|
1425
1425
|
return typeof t == "string" ? dr(Js(n, t), e) : dr(Js(n, ""), t);
|
|
1426
1426
|
}
|
|
1427
1427
|
class fy {
|
|
@@ -1438,23 +1438,23 @@ class fy {
|
|
|
1438
1438
|
style: "normal",
|
|
1439
1439
|
lineHeight: 1.2,
|
|
1440
1440
|
weight: null
|
|
1441
|
-
}, this.hover = {}, this.hoverBackgroundColor = (i, s) =>
|
|
1441
|
+
}, this.hover = {}, this.hoverBackgroundColor = (i, s) => $o(s.backgroundColor), this.hoverBorderColor = (i, s) => $o(s.borderColor), this.hoverColor = (i, s) => $o(s.color), this.indexAxis = "x", this.interaction = {
|
|
1442
1442
|
mode: "nearest",
|
|
1443
1443
|
intersect: !0,
|
|
1444
1444
|
includeInvisible: !1
|
|
1445
1445
|
}, this.maintainAspectRatio = !0, this.onHover = null, this.onClick = null, this.parsing = !0, this.plugins = {}, this.responsive = !0, this.scale = void 0, this.scales = {}, this.showLine = !0, this.drawActiveElementsOnTop = !0, this.describe(t), this.apply(e);
|
|
1446
1446
|
}
|
|
1447
1447
|
set(t, e) {
|
|
1448
|
-
return
|
|
1448
|
+
return Yo(this, t, e);
|
|
1449
1449
|
}
|
|
1450
1450
|
get(t) {
|
|
1451
1451
|
return Js(this, t);
|
|
1452
1452
|
}
|
|
1453
1453
|
describe(t, e) {
|
|
1454
|
-
return
|
|
1454
|
+
return Yo(Al, t, e);
|
|
1455
1455
|
}
|
|
1456
1456
|
override(t, e) {
|
|
1457
|
-
return
|
|
1457
|
+
return Yo(Mi, t, e);
|
|
1458
1458
|
}
|
|
1459
1459
|
route(t, e, i, s) {
|
|
1460
1460
|
const r = Js(this, t), a = Js(this, i), o = "_" + e;
|
|
@@ -2035,7 +2035,7 @@ const ja = (n) => n.ownerDocument.defaultView.getComputedStyle(n, null);
|
|
|
2035
2035
|
function Wy(n, t) {
|
|
2036
2036
|
return ja(n).getPropertyValue(t);
|
|
2037
2037
|
}
|
|
2038
|
-
const
|
|
2038
|
+
const $y = [
|
|
2039
2039
|
"top",
|
|
2040
2040
|
"right",
|
|
2041
2041
|
"bottom",
|
|
@@ -2045,16 +2045,16 @@ function Si(n, t, e) {
|
|
|
2045
2045
|
const i = {};
|
|
2046
2046
|
e = e ? "-" + e : "";
|
|
2047
2047
|
for (let s = 0; s < 4; s++) {
|
|
2048
|
-
const r =
|
|
2048
|
+
const r = $y[s];
|
|
2049
2049
|
i[r] = parseFloat(n[t + "-" + r + e]) || 0;
|
|
2050
2050
|
}
|
|
2051
2051
|
return i.width = i.left + i.right, i.height = i.top + i.bottom, i;
|
|
2052
2052
|
}
|
|
2053
|
-
const
|
|
2053
|
+
const Yy = (n, t, e) => (n > 0 || t > 0) && (!e || !e.shadowRoot);
|
|
2054
2054
|
function jy(n, t) {
|
|
2055
2055
|
const e = n.touches, i = e && e.length ? e[0] : n, { offsetX: s, offsetY: r } = i;
|
|
2056
2056
|
let a = !1, o, l;
|
|
2057
|
-
if (
|
|
2057
|
+
if (Yy(s, r, n.target))
|
|
2058
2058
|
o = s, l = r;
|
|
2059
2059
|
else {
|
|
2060
2060
|
const c = t.getBoundingClientRect();
|
|
@@ -2066,7 +2066,7 @@ function jy(n, t) {
|
|
|
2066
2066
|
box: a
|
|
2067
2067
|
};
|
|
2068
2068
|
}
|
|
2069
|
-
function
|
|
2069
|
+
function $n(n, t) {
|
|
2070
2070
|
if ("native" in n)
|
|
2071
2071
|
return n;
|
|
2072
2072
|
const { canvas: e, currentDevicePixelRatio: i } = t, s = ja(e), r = s.boxSizing === "border-box", a = Si(s, "padding"), o = Si(s, "border", "width"), { x: l, y: c, box: u } = jy(n, e), d = a.left + (u && o.left), h = a.top + (u && o.top);
|
|
@@ -3578,7 +3578,7 @@ 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(
|
|
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), E = (D - k) / this._getVisibleDatasetWeightTotal();
|
|
3582
3582
|
this.offsetX = g * D, this.offsetY = y * D, s.total = this.calculateTotal(), this.outerRadius = D - E * this._getRingWeightOffset(this.index), this.innerRadius = Math.max(this.outerRadius - E * c, 0), this.updateElements(r, 0, r.length, t);
|
|
3583
3583
|
}
|
|
3584
3584
|
_circumference(t, e) {
|
|
@@ -4229,7 +4229,7 @@ var Rl = {
|
|
|
4229
4229
|
evaluateInteractionItems: wr,
|
|
4230
4230
|
modes: {
|
|
4231
4231
|
index(n, t, e, i) {
|
|
4232
|
-
const s =
|
|
4232
|
+
const s = $n(t, n), r = e.axis || "x", a = e.includeInvisible || !1, o = e.intersect ? Ko(n, s, r, i, a) : Xo(n, s, r, !1, i, a), l = [];
|
|
4233
4233
|
return o.length ? (n.getSortedVisibleDatasetMetas().forEach((c) => {
|
|
4234
4234
|
const u = o[0].index, d = c.data[u];
|
|
4235
4235
|
d && !d.skip && l.push({
|
|
@@ -4240,7 +4240,7 @@ var Rl = {
|
|
|
4240
4240
|
}), l) : [];
|
|
4241
4241
|
},
|
|
4242
4242
|
dataset(n, t, e, i) {
|
|
4243
|
-
const s =
|
|
4243
|
+
const s = $n(t, n), r = e.axis || "xy", a = e.includeInvisible || !1;
|
|
4244
4244
|
let o = e.intersect ? Ko(n, s, r, i, a) : Xo(n, s, r, !1, i, a);
|
|
4245
4245
|
if (o.length > 0) {
|
|
4246
4246
|
const l = o[0].datasetIndex, c = n.getDatasetMeta(l).data;
|
|
@@ -4255,19 +4255,19 @@ var Rl = {
|
|
|
4255
4255
|
return o;
|
|
4256
4256
|
},
|
|
4257
4257
|
point(n, t, e, i) {
|
|
4258
|
-
const s =
|
|
4258
|
+
const s = $n(t, n), r = e.axis || "xy", a = e.includeInvisible || !1;
|
|
4259
4259
|
return Ko(n, s, r, i, a);
|
|
4260
4260
|
},
|
|
4261
4261
|
nearest(n, t, e, i) {
|
|
4262
|
-
const s =
|
|
4262
|
+
const s = $n(t, n), r = e.axis || "xy", a = e.includeInvisible || !1;
|
|
4263
4263
|
return Xo(n, s, r, e.intersect, i, a);
|
|
4264
4264
|
},
|
|
4265
4265
|
x(n, t, e, i) {
|
|
4266
|
-
const s =
|
|
4266
|
+
const s = $n(t, n);
|
|
4267
4267
|
return ku(n, s, "x", e.intersect, i);
|
|
4268
4268
|
},
|
|
4269
4269
|
y(n, t, e, i) {
|
|
4270
|
-
const s =
|
|
4270
|
+
const s = $n(t, n);
|
|
4271
4271
|
return ku(n, s, "y", e.intersect, i);
|
|
4272
4272
|
}
|
|
4273
4273
|
}
|
|
@@ -4397,7 +4397,7 @@ function Wb(n, t) {
|
|
|
4397
4397
|
"bottom"
|
|
4398
4398
|
]);
|
|
4399
4399
|
}
|
|
4400
|
-
function
|
|
4400
|
+
function $s(n, t, e, i) {
|
|
4401
4401
|
const s = [];
|
|
4402
4402
|
let r, a, o, l, c, u;
|
|
4403
4403
|
for (r = 0, a = n.length, c = 0; r < a; ++r) {
|
|
@@ -4405,7 +4405,7 @@ function Ys(n, t, e, i) {
|
|
|
4405
4405
|
const { same: d, other: h } = Hb(t, e, o, i);
|
|
4406
4406
|
c |= d && s.length, u = u || h, l.fullSize || s.push(o);
|
|
4407
4407
|
}
|
|
4408
|
-
return c &&
|
|
4408
|
+
return c && $s(s, t, e, i) || u;
|
|
4409
4409
|
}
|
|
4410
4410
|
function Jr(n, t, e, i, s) {
|
|
4411
4411
|
n.top = e, n.left = t, n.right = t + i, n.bottom = e + s, n.width = i, n.height = s;
|
|
@@ -4472,7 +4472,7 @@ var we = {
|
|
|
4472
4472
|
x: s.left,
|
|
4473
4473
|
y: s.top
|
|
4474
4474
|
}, s), g = zb(l.concat(c), d);
|
|
4475
|
-
|
|
4475
|
+
$s(o.fullSize, f, d, g), $s(l, f, d, g), $s(c, f, d, g) && $s(l, f, d, g), Bb(f), Au(o.leftAndTop, f, d, g), f.x += f.w, f.y += f.h, Au(o.rightAndBottom, f, d, g), n.chartArea = {
|
|
4476
4476
|
left: f.left,
|
|
4477
4477
|
top: f.top,
|
|
4478
4478
|
right: f.left + f.w,
|
|
@@ -4515,7 +4515,7 @@ class kf {
|
|
|
4515
4515
|
updateConfig(t) {
|
|
4516
4516
|
}
|
|
4517
4517
|
}
|
|
4518
|
-
class
|
|
4518
|
+
class $b extends kf {
|
|
4519
4519
|
acquireContext(t) {
|
|
4520
4520
|
return t && t.getContext && t.getContext("2d") || null;
|
|
4521
4521
|
}
|
|
@@ -4523,7 +4523,7 @@ class Yb extends kf {
|
|
|
4523
4523
|
t.options.animation = !1;
|
|
4524
4524
|
}
|
|
4525
4525
|
}
|
|
4526
|
-
const fa = "$chartjs",
|
|
4526
|
+
const fa = "$chartjs", Yb = {
|
|
4527
4527
|
touchstart: "mousedown",
|
|
4528
4528
|
touchmove: "mousemove",
|
|
4529
4529
|
touchend: "mouseup",
|
|
@@ -4569,7 +4569,7 @@ function qb(n, t, e) {
|
|
|
4569
4569
|
n && n.canvas && n.canvas.removeEventListener(t, e, Of);
|
|
4570
4570
|
}
|
|
4571
4571
|
function Gb(n, t) {
|
|
4572
|
-
const e =
|
|
4572
|
+
const e = Yb[n.type] || n.type, { x: i, y: s } = $n(n, t);
|
|
4573
4573
|
return {
|
|
4574
4574
|
type: e,
|
|
4575
4575
|
chart: t,
|
|
@@ -4696,7 +4696,7 @@ class e0 extends kf {
|
|
|
4696
4696
|
}
|
|
4697
4697
|
}
|
|
4698
4698
|
function n0(n) {
|
|
4699
|
-
return !xc() || typeof OffscreenCanvas < "u" && n instanceof OffscreenCanvas ?
|
|
4699
|
+
return !xc() || typeof OffscreenCanvas < "u" && n instanceof OffscreenCanvas ? $b : e0;
|
|
4700
4700
|
}
|
|
4701
4701
|
class de {
|
|
4702
4702
|
constructor() {
|
|
@@ -5018,7 +5018,7 @@ class Oi extends de {
|
|
|
5018
5018
|
return;
|
|
5019
5019
|
}
|
|
5020
5020
|
const u = this._getLabelSizes(), d = u.widest.width, h = u.highest.height, f = ue(this.chart.width - d, 0, this.maxWidth);
|
|
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 =
|
|
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
|
Et(this.options.afterCalculateLabelRotation, [
|
|
@@ -5199,7 +5199,7 @@ 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, R = V.dash || [], z = V.dashOffset,
|
|
5202
|
+
const F = this.getContext(D), H = r.setContext(F), V = o.setContext(F), q = H.lineWidth, j = H.color, R = V.dash || [], z = V.dashOffset, $ = H.tickWidth, at = H.tickColor, it = H.tickBorderDash || [], G = H.tickBorderDashOffset;
|
|
5203
5203
|
k = u0(this, D, l), k !== void 0 && (E = gi(i, k, q), c ? A = m = _ = C = E : O = b = M = B = E, f.push({
|
|
5204
5204
|
tx1: A,
|
|
5205
5205
|
ty1: O,
|
|
@@ -5213,7 +5213,7 @@ class Oi extends de {
|
|
|
5213
5213
|
color: j,
|
|
5214
5214
|
borderDash: R,
|
|
5215
5215
|
borderDashOffset: z,
|
|
5216
|
-
tickWidth:
|
|
5216
|
+
tickWidth: $,
|
|
5217
5217
|
tickColor: at,
|
|
5218
5218
|
tickBorderDash: it,
|
|
5219
5219
|
tickBorderDashOffset: G
|
|
@@ -5262,14 +5262,14 @@ class Oi extends de {
|
|
|
5262
5262
|
a ? (E = 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 && (E += _ / 2 * Math.sin(y))) : (A = m, C = (1 - M) * _ / 2);
|
|
5263
5263
|
let R;
|
|
5264
5264
|
if (W.showLabelBackdrop) {
|
|
5265
|
-
const z = ee(W.backdropPadding),
|
|
5265
|
+
const z = ee(W.backdropPadding), $ = L.heights[w], at = L.widths[w];
|
|
5266
5266
|
let it = C - z.top, G = 0 - z.left;
|
|
5267
5267
|
switch (B) {
|
|
5268
5268
|
case "middle":
|
|
5269
|
-
it -=
|
|
5269
|
+
it -= $ / 2;
|
|
5270
5270
|
break;
|
|
5271
5271
|
case "bottom":
|
|
5272
|
-
it -=
|
|
5272
|
+
it -= $;
|
|
5273
5273
|
break;
|
|
5274
5274
|
}
|
|
5275
5275
|
switch (O) {
|
|
@@ -5287,7 +5287,7 @@ class Oi extends de {
|
|
|
5287
5287
|
left: G,
|
|
5288
5288
|
top: it,
|
|
5289
5289
|
width: at + z.width,
|
|
5290
|
-
height:
|
|
5290
|
+
height: $ + z.height,
|
|
5291
5291
|
color: W.backdropColor
|
|
5292
5292
|
};
|
|
5293
5293
|
}
|
|
@@ -5948,7 +5948,7 @@ function Wu(n, t) {
|
|
|
5948
5948
|
return e[n] === i[n] ? e[t] - i[t] : e[n] - i[n];
|
|
5949
5949
|
};
|
|
5950
5950
|
}
|
|
5951
|
-
function
|
|
5951
|
+
function $u(n) {
|
|
5952
5952
|
const t = n.chart, e = t.options.animation;
|
|
5953
5953
|
t.notifyPlugins("afterRender"), Et(e && e.onComplete, [
|
|
5954
5954
|
n
|
|
@@ -5963,7 +5963,7 @@ function N0(n) {
|
|
|
5963
5963
|
function Rf(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
|
-
const ga = {},
|
|
5966
|
+
const ga = {}, Yu = (n) => {
|
|
5967
5967
|
const t = Rf(n);
|
|
5968
5968
|
return Object.values(ga).filter((e) => e.canvas === t).pop();
|
|
5969
5969
|
};
|
|
@@ -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 = Rf(t), r =
|
|
5992
|
+
const i = this.config = new P0(e), s = Rf(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());
|
|
@@ -5999,7 +5999,7 @@ let Ue = (Bn = class {
|
|
|
5999
5999
|
console.error("Failed to create chart: can't acquire context from the given item");
|
|
6000
6000
|
return;
|
|
6001
6001
|
}
|
|
6002
|
-
Tn.listen(this, "complete",
|
|
6002
|
+
Tn.listen(this, "complete", $u), Tn.listen(this, "progress", N0), this._initialize(), this.attached && this.update();
|
|
6003
6003
|
}
|
|
6004
6004
|
get aspectRatio() {
|
|
6005
6005
|
const { options: { aspectRatio: t, maintainAspectRatio: e }, width: i, height: s, _aspectRatio: r } = this;
|
|
@@ -6220,7 +6220,7 @@ let Ue = (Bn = class {
|
|
|
6220
6220
|
render() {
|
|
6221
6221
|
this.notifyPlugins("beforeRender", {
|
|
6222
6222
|
cancelable: !0
|
|
6223
|
-
}) !== !1 && (Tn.has(this) ? this.attached && !Tn.running(this) && Tn.start(this) : (this.draw(),
|
|
6223
|
+
}) !== !1 && (Tn.has(this) ? this.attached && !Tn.running(this) && Tn.start(this) : (this.draw(), $u({
|
|
6224
6224
|
chart: this
|
|
6225
6225
|
})));
|
|
6226
6226
|
}
|
|
@@ -6455,7 +6455,7 @@ let Ue = (Bn = class {
|
|
|
6455
6455
|
const r = this.options.hover;
|
|
6456
6456
|
return this.getElementsAtEventForMode(t, r.mode, r, s);
|
|
6457
6457
|
}
|
|
6458
|
-
}, P(Bn, "defaults", Ut), P(Bn, "instances", ga), P(Bn, "overrides", Mi), P(Bn, "registry", un), P(Bn, "version", I0), P(Bn, "getChart",
|
|
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
6460
|
return Rt(Ue.instances, (n) => n._plugins.invalidate());
|
|
6461
6461
|
}
|
|
@@ -6500,7 +6500,7 @@ function W0(n, t, e, i) {
|
|
|
6500
6500
|
innerEnd: ue(s.innerEnd, 0, a)
|
|
6501
6501
|
};
|
|
6502
6502
|
}
|
|
6503
|
-
function
|
|
6503
|
+
function Yi(n, t, e, i) {
|
|
6504
6504
|
return {
|
|
6505
6505
|
x: e + n * Math.cos(t),
|
|
6506
6506
|
y: i + n * Math.sin(t)
|
|
@@ -6518,22 +6518,22 @@ function Aa(n, t, e, i, s, r) {
|
|
|
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) {
|
|
6521
|
-
const q =
|
|
6521
|
+
const q = Yi(m, _, a, o);
|
|
6522
6522
|
n.arc(q.x, q.y, k, _, S + zt);
|
|
6523
6523
|
}
|
|
6524
|
-
const F =
|
|
6524
|
+
const F = Yi(C, S, a, o);
|
|
6525
6525
|
if (n.lineTo(F.x, F.y), A > 0) {
|
|
6526
|
-
const q =
|
|
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
6529
|
const H = (S - A / h + (w + E / h)) / 2;
|
|
6530
6530
|
if (n.arc(a, o, h, S - A / h, H, !0), n.arc(a, o, h, H, w + E / h, !0), E > 0) {
|
|
6531
|
-
const q =
|
|
6531
|
+
const q = Yi(M, B, a, o);
|
|
6532
6532
|
n.arc(q.x, q.y, E, B + Math.PI, w - zt);
|
|
6533
6533
|
}
|
|
6534
|
-
const V =
|
|
6534
|
+
const V = Yi(O, w, a, o);
|
|
6535
6535
|
if (n.lineTo(V.x, V.y), D > 0) {
|
|
6536
|
-
const q =
|
|
6536
|
+
const q = Yi(O, b, a, o);
|
|
6537
6537
|
n.arc(q.x, q.y, D, w - zt, b);
|
|
6538
6538
|
}
|
|
6539
6539
|
} else {
|
|
@@ -6545,7 +6545,7 @@ function Aa(n, t, e, i, s, r) {
|
|
|
6545
6545
|
}
|
|
6546
6546
|
n.closePath();
|
|
6547
6547
|
}
|
|
6548
|
-
function
|
|
6548
|
+
function $0(n, t, e, i, s) {
|
|
6549
6549
|
const { fullCircles: r, startAngle: a, circumference: o } = t;
|
|
6550
6550
|
let l = t.endAngle;
|
|
6551
6551
|
if (r) {
|
|
@@ -6556,7 +6556,7 @@ function Y0(n, t, e, i, s) {
|
|
|
6556
6556
|
}
|
|
6557
6557
|
return Aa(n, t, e, i, l, s), n.fill(), l;
|
|
6558
6558
|
}
|
|
6559
|
-
function
|
|
6559
|
+
function Y0(n, t, e, i, s) {
|
|
6560
6560
|
const { fullCircles: r, startAngle: a, circumference: o, options: l } = t, { borderWidth: c, borderJoinStyle: u, borderDash: d, borderDashOffset: h, borderRadius: f } = l, g = l.borderAlign === "inner";
|
|
6561
6561
|
if (!c)
|
|
6562
6562
|
return;
|
|
@@ -6570,7 +6570,7 @@ function $0(n, t, e, i, s) {
|
|
|
6570
6570
|
}
|
|
6571
6571
|
g && H0(n, t, y), l.selfJoin && y - a >= _t && f === 0 && u !== "miter" && U0(n, t, y), r || (Aa(n, t, e, i, y, s), n.stroke());
|
|
6572
6572
|
}
|
|
6573
|
-
class
|
|
6573
|
+
class Ys extends de {
|
|
6574
6574
|
constructor(e) {
|
|
6575
6575
|
super();
|
|
6576
6576
|
P(this, "circumference");
|
|
@@ -6623,10 +6623,10 @@ class $s extends de {
|
|
|
6623
6623
|
const l = (this.startAngle + this.endAngle) / 2;
|
|
6624
6624
|
e.translate(Math.cos(l) * r, Math.sin(l) * r);
|
|
6625
6625
|
const c = 1 - Math.sin(Math.min(_t, s || 0)), u = r * c;
|
|
6626
|
-
e.fillStyle = i.backgroundColor, e.strokeStyle = i.borderColor,
|
|
6626
|
+
e.fillStyle = i.backgroundColor, e.strokeStyle = i.borderColor, $0(e, this, u, a, o), Y0(e, this, u, a, o), e.restore();
|
|
6627
6627
|
}
|
|
6628
6628
|
}
|
|
6629
|
-
P(
|
|
6629
|
+
P(Ys, "id", "arc"), P(Ys, "defaults", {
|
|
6630
6630
|
borderAlign: "center",
|
|
6631
6631
|
borderColor: "#fff",
|
|
6632
6632
|
borderDash: [],
|
|
@@ -6639,9 +6639,9 @@ P($s, "id", "arc"), P($s, "defaults", {
|
|
|
6639
6639
|
angle: void 0,
|
|
6640
6640
|
circular: !0,
|
|
6641
6641
|
selfJoin: !1
|
|
6642
|
-
}), P(
|
|
6642
|
+
}), P(Ys, "defaultRoutes", {
|
|
6643
6643
|
backgroundColor: "backgroundColor"
|
|
6644
|
-
}), P(
|
|
6644
|
+
}), P(Ys, "descriptors", {
|
|
6645
6645
|
_scriptable: !0,
|
|
6646
6646
|
_indexable: (e) => e !== "borderDash"
|
|
6647
6647
|
});
|
|
@@ -6993,7 +6993,7 @@ P(pa, "id", "bar"), P(pa, "defaults", {
|
|
|
6993
6993
|
});
|
|
6994
6994
|
var r_ = /* @__PURE__ */ Object.freeze({
|
|
6995
6995
|
__proto__: null,
|
|
6996
|
-
ArcElement:
|
|
6996
|
+
ArcElement: Ys,
|
|
6997
6997
|
BarElement: pa,
|
|
6998
6998
|
LineElement: Gn,
|
|
6999
6999
|
PointElement: ma
|
|
@@ -7939,7 +7939,7 @@ class Mc extends de {
|
|
|
7939
7939
|
});
|
|
7940
7940
|
}
|
|
7941
7941
|
}
|
|
7942
|
-
function
|
|
7942
|
+
function $_(n, t) {
|
|
7943
7943
|
const e = new Mc({
|
|
7944
7944
|
ctx: n.ctx,
|
|
7945
7945
|
options: t,
|
|
@@ -7947,11 +7947,11 @@ function Y_(n, t) {
|
|
|
7947
7947
|
});
|
|
7948
7948
|
we.configure(n, e, t), we.addBox(n, e), n.titleBlock = e;
|
|
7949
7949
|
}
|
|
7950
|
-
var
|
|
7950
|
+
var Y_ = {
|
|
7951
7951
|
id: "title",
|
|
7952
7952
|
_element: Mc,
|
|
7953
7953
|
start(n, t, e) {
|
|
7954
|
-
|
|
7954
|
+
$_(n, e);
|
|
7955
7955
|
},
|
|
7956
7956
|
stop(n) {
|
|
7957
7957
|
const t = n.titleBlock;
|
|
@@ -8156,7 +8156,7 @@ function od(n, t) {
|
|
|
8156
8156
|
const e = t && t.dataset && t.dataset.tooltip && t.dataset.tooltip.callbacks;
|
|
8157
8157
|
return e ? n.override(e) : n;
|
|
8158
8158
|
}
|
|
8159
|
-
const
|
|
8159
|
+
const $f = {
|
|
8160
8160
|
beforeTitle: Sn,
|
|
8161
8161
|
title(n) {
|
|
8162
8162
|
if (n.length > 0) {
|
|
@@ -8210,7 +8210,7 @@ const Yf = {
|
|
|
8210
8210
|
};
|
|
8211
8211
|
function Ee(n, t, e, i) {
|
|
8212
8212
|
const s = n[t].call(e, i);
|
|
8213
|
-
return typeof s > "u" ?
|
|
8213
|
+
return typeof s > "u" ? $f[t].call(e, i) : s;
|
|
8214
8214
|
}
|
|
8215
8215
|
class Ul extends de {
|
|
8216
8216
|
constructor(t) {
|
|
@@ -8536,7 +8536,7 @@ var We = {
|
|
|
8536
8536
|
duration: 200
|
|
8537
8537
|
}
|
|
8538
8538
|
},
|
|
8539
|
-
callbacks:
|
|
8539
|
+
callbacks: $f
|
|
8540
8540
|
},
|
|
8541
8541
|
defaultRoutes: {
|
|
8542
8542
|
bodyFont: "font",
|
|
@@ -8567,7 +8567,7 @@ var We = {
|
|
|
8567
8567
|
Filler: N_,
|
|
8568
8568
|
Legend: W_,
|
|
8569
8569
|
SubTitle: j_,
|
|
8570
|
-
Title:
|
|
8570
|
+
Title: Y_,
|
|
8571
8571
|
Tooltip: We
|
|
8572
8572
|
});
|
|
8573
8573
|
const tv = (n, t, e, i) => (typeof t == "string" ? (e = n.push(t) - 1, i.unshift({
|
|
@@ -8761,7 +8761,7 @@ class Bl extends Pa {
|
|
|
8761
8761
|
}
|
|
8762
8762
|
P(Bl, "id", "linear"), P(Bl, "defaults", {
|
|
8763
8763
|
ticks: {
|
|
8764
|
-
callback:
|
|
8764
|
+
callback: Ya.formatters.numeric
|
|
8765
8765
|
}
|
|
8766
8766
|
});
|
|
8767
8767
|
const gr = (n) => Math.floor(Vn(n)), pi = (n, t) => Math.pow(10, gr(n) + t);
|
|
@@ -8849,13 +8849,13 @@ class Wl extends Oi {
|
|
|
8849
8849
|
}
|
|
8850
8850
|
P(Wl, "id", "logarithmic"), P(Wl, "defaults", {
|
|
8851
8851
|
ticks: {
|
|
8852
|
-
callback:
|
|
8852
|
+
callback: Ya.formatters.logarithmic,
|
|
8853
8853
|
major: {
|
|
8854
8854
|
enabled: !0
|
|
8855
8855
|
}
|
|
8856
8856
|
}
|
|
8857
8857
|
});
|
|
8858
|
-
function
|
|
8858
|
+
function $l(n) {
|
|
8859
8859
|
const t = n.ticks;
|
|
8860
8860
|
if (t.display && n.display) {
|
|
8861
8861
|
const e = ee(t.backdropPadding);
|
|
@@ -8895,7 +8895,7 @@ function ov(n) {
|
|
|
8895
8895
|
s[l] = c.padding;
|
|
8896
8896
|
const u = n.getPointPosition(l, n.drawingArea + s[l], o), d = Wt(c.font), h = av(n.ctx, d, n._pointLabels[l]);
|
|
8897
8897
|
i[l] = h;
|
|
8898
|
-
const f = xe(n.getIndexAngle(l) + o), g = Math.round(
|
|
8898
|
+
const f = xe(n.getIndexAngle(l) + o), g = Math.round($a(f)), y = hd(g, u.x, h.w, 0, 180), v = hd(g, u.y, h.h, 90, 270);
|
|
8899
8899
|
lv(e, t, f, y, v);
|
|
8900
8900
|
}
|
|
8901
8901
|
n.setCenterPoint(t.l - e.l, e.r - t.r, t.t - e.t, e.b - t.b), n._pointLabelItems = dv(n, i, s);
|
|
@@ -8906,7 +8906,7 @@ function lv(n, t, e, i, s) {
|
|
|
8906
8906
|
i.start < t.l ? (o = (t.l - i.start) / r, n.l = Math.min(n.l, t.l - o)) : i.end > t.r && (o = (i.end - t.r) / r, n.r = Math.max(n.r, t.r + o)), s.start < t.t ? (l = (t.t - s.start) / a, n.t = Math.min(n.t, t.t - l)) : s.end > t.b && (l = (s.end - t.b) / a, n.b = Math.max(n.b, t.b + l));
|
|
8907
8907
|
}
|
|
8908
8908
|
function cv(n, t, e) {
|
|
8909
|
-
const i = n.drawingArea, { extra: s, additionalAngle: r, padding: a, size: o } = e, l = n.getPointPosition(t, i + s + a, r), c = Math.round(
|
|
8909
|
+
const i = n.drawingArea, { extra: s, additionalAngle: r, padding: a, size: o } = e, l = n.getPointPosition(t, i + s + a, r), c = Math.round($a(xe(l.angle + zt))), u = gv(l.y, o.h, c), d = hv(c), h = fv(l.x, o.w, d);
|
|
8910
8910
|
return {
|
|
8911
8911
|
visible: !0,
|
|
8912
8912
|
x: l.x,
|
|
@@ -8938,7 +8938,7 @@ function uv(n, t) {
|
|
|
8938
8938
|
}
|
|
8939
8939
|
function dv(n, t, e) {
|
|
8940
8940
|
const i = [], s = n._pointLabels.length, r = n.options, { centerPointLabels: a, display: o } = r.pointLabels, l = {
|
|
8941
|
-
extra:
|
|
8941
|
+
extra: $l(r) / 2,
|
|
8942
8942
|
additionalAngle: a ? _t / s : 0
|
|
8943
8943
|
};
|
|
8944
8944
|
let c;
|
|
@@ -8989,7 +8989,7 @@ function pv(n, t) {
|
|
|
8989
8989
|
});
|
|
8990
8990
|
}
|
|
8991
8991
|
}
|
|
8992
|
-
function
|
|
8992
|
+
function Yf(n, t, e, i) {
|
|
8993
8993
|
const { ctx: s } = n;
|
|
8994
8994
|
if (e)
|
|
8995
8995
|
s.arc(n.xCenter, n.yCenter, t, 0, Nt);
|
|
@@ -9002,7 +9002,7 @@ function $f(n, t, e, i) {
|
|
|
9002
9002
|
}
|
|
9003
9003
|
function yv(n, t, e, i, s) {
|
|
9004
9004
|
const r = n.ctx, a = t.circular, { color: o, lineWidth: l } = t;
|
|
9005
|
-
!a && !i || !o || !l || e < 0 || (r.save(), r.strokeStyle = o, r.lineWidth = l, r.setLineDash(s.dash || []), r.lineDashOffset = s.dashOffset, r.beginPath(),
|
|
9005
|
+
!a && !i || !o || !l || e < 0 || (r.save(), r.strokeStyle = o, r.lineWidth = l, r.setLineDash(s.dash || []), r.lineDashOffset = s.dashOffset, r.beginPath(), Yf(n, e, a, i), r.closePath(), r.stroke(), r.restore());
|
|
9006
9006
|
}
|
|
9007
9007
|
function bv(n, t, e) {
|
|
9008
9008
|
return ri(n, {
|
|
@@ -9016,7 +9016,7 @@ class Vs extends Pa {
|
|
|
9016
9016
|
super(t), this.xCenter = void 0, this.yCenter = void 0, this.drawingArea = void 0, this._pointLabels = [], this._pointLabelItems = [];
|
|
9017
9017
|
}
|
|
9018
9018
|
setDimensions() {
|
|
9019
|
-
const t = this._padding = ee(
|
|
9019
|
+
const t = this._padding = ee($l(this.options) / 2), e = this.width = this.maxWidth - t.width, i = this.height = this.maxHeight - t.height;
|
|
9020
9020
|
this.xCenter = Math.floor(this.left + e / 2 + t.left), this.yCenter = Math.floor(this.top + i / 2 + t.top), this.drawingArea = Math.floor(Math.min(e, i) / 2);
|
|
9021
9021
|
}
|
|
9022
9022
|
determineDataLimits() {
|
|
@@ -9024,7 +9024,7 @@ class Vs extends Pa {
|
|
|
9024
9024
|
this.min = Bt(t) && !isNaN(t) ? t : 0, this.max = Bt(e) && !isNaN(e) ? e : 0, this.handleTickRangeOptions();
|
|
9025
9025
|
}
|
|
9026
9026
|
computeTickLimit() {
|
|
9027
|
-
return Math.ceil(this.drawingArea /
|
|
9027
|
+
return Math.ceil(this.drawingArea / $l(this.options));
|
|
9028
9028
|
}
|
|
9029
9029
|
generateTickLabels(t) {
|
|
9030
9030
|
Pa.prototype.generateTickLabels.call(this, t), this._pointLabels = this.getLabels().map((e, i) => {
|
|
@@ -9092,7 +9092,7 @@ class Vs extends Pa {
|
|
|
9092
9092
|
const { backgroundColor: t, grid: { circular: e } } = this.options;
|
|
9093
9093
|
if (t) {
|
|
9094
9094
|
const i = this.ctx;
|
|
9095
|
-
i.save(), i.beginPath(),
|
|
9095
|
+
i.save(), i.beginPath(), Yf(this, this.getDistanceFromCenterForValue(this._endValue), e, this._pointLabels.length), i.closePath(), i.fillStyle = t, i.fill(), i.restore();
|
|
9096
9096
|
}
|
|
9097
9097
|
}
|
|
9098
9098
|
drawGrid() {
|
|
@@ -9155,7 +9155,7 @@ P(Vs, "id", "radialLinear"), P(Vs, "defaults", {
|
|
|
9155
9155
|
startAngle: 0,
|
|
9156
9156
|
ticks: {
|
|
9157
9157
|
showLabelBackdrop: !0,
|
|
9158
|
-
callback:
|
|
9158
|
+
callback: Ya.formatters.numeric
|
|
9159
9159
|
},
|
|
9160
9160
|
pointLabels: {
|
|
9161
9161
|
backdropColor: void 0,
|
|
@@ -9451,7 +9451,7 @@ function ra(n, t, e) {
|
|
|
9451
9451
|
const c = a - r;
|
|
9452
9452
|
return c ? o + (l - o) * (t - r) / c : o;
|
|
9453
9453
|
}
|
|
9454
|
-
class
|
|
9454
|
+
class Yl extends mr {
|
|
9455
9455
|
constructor(t) {
|
|
9456
9456
|
super(t), this._table = [], this._minPos = void 0, this._tableRange = void 0;
|
|
9457
9457
|
}
|
|
@@ -9502,7 +9502,7 @@ class $l extends mr {
|
|
|
9502
9502
|
return ra(this._table, i * this._tableRange + this._minPos, !0);
|
|
9503
9503
|
}
|
|
9504
9504
|
}
|
|
9505
|
-
P(
|
|
9505
|
+
P(Yl, "id", "timeseries"), P(Yl, "defaults", mr.defaults);
|
|
9506
9506
|
var wv = /* @__PURE__ */ Object.freeze({
|
|
9507
9507
|
__proto__: null,
|
|
9508
9508
|
CategoryScale: Hl,
|
|
@@ -9510,7 +9510,7 @@ var wv = /* @__PURE__ */ Object.freeze({
|
|
|
9510
9510
|
LogarithmicScale: Wl,
|
|
9511
9511
|
RadialLinearScale: Vs,
|
|
9512
9512
|
TimeScale: mr,
|
|
9513
|
-
TimeSeriesScale:
|
|
9513
|
+
TimeSeriesScale: Yl
|
|
9514
9514
|
});
|
|
9515
9515
|
const Sv = [
|
|
9516
9516
|
Pb,
|
|
@@ -9724,7 +9724,7 @@ function Wv(n, t, e) {
|
|
|
9724
9724
|
const i = Gf(n, t, e) / 7;
|
|
9725
9725
|
return Tr(e == null ? void 0 : e.roundingMethod)(i);
|
|
9726
9726
|
}
|
|
9727
|
-
function
|
|
9727
|
+
function $v(n, t, e) {
|
|
9728
9728
|
const [i, s] = Ai(
|
|
9729
9729
|
e == null ? void 0 : e.in,
|
|
9730
9730
|
n,
|
|
@@ -9734,7 +9734,7 @@ function Yv(n, t, e) {
|
|
|
9734
9734
|
const o = ir(i, s) === -r, l = r * (a - +o);
|
|
9735
9735
|
return l === 0 ? 0 : l;
|
|
9736
9736
|
}
|
|
9737
|
-
function
|
|
9737
|
+
function Yv(n, t) {
|
|
9738
9738
|
const e = pt(n, t == null ? void 0 : t.in), i = e.getMonth(), s = i - i % 3;
|
|
9739
9739
|
return e.setMonth(s, 1), e.setHours(0, 0, 0, 0), e;
|
|
9740
9740
|
}
|
|
@@ -10902,11 +10902,11 @@ function Wx(n) {
|
|
|
10902
10902
|
function rg() {
|
|
10903
10903
|
return Object.assign({}, Ci());
|
|
10904
10904
|
}
|
|
10905
|
-
function
|
|
10905
|
+
function $x(n, t) {
|
|
10906
10906
|
const e = pt(n, t == null ? void 0 : t.in).getDay();
|
|
10907
10907
|
return e === 0 ? 7 : e;
|
|
10908
10908
|
}
|
|
10909
|
-
function
|
|
10909
|
+
function Yx(n, t) {
|
|
10910
10910
|
const e = jx(t) ? new t(0) : Gt(t, 0);
|
|
10911
10911
|
return e.setFullYear(n.getFullYear(), n.getMonth(), n.getDate()), e.setHours(
|
|
10912
10912
|
n.getHours(),
|
|
@@ -10947,7 +10947,7 @@ class Gx extends ag {
|
|
|
10947
10947
|
this.context = e || ((s) => Gt(i, s));
|
|
10948
10948
|
}
|
|
10949
10949
|
set(e, i) {
|
|
10950
|
-
return i.timestampIsSet ? e : Gt(e,
|
|
10950
|
+
return i.timestampIsSet ? e : Gt(e, Yx(e, this.context));
|
|
10951
10951
|
}
|
|
10952
10952
|
}
|
|
10953
10953
|
class kt {
|
|
@@ -11042,7 +11042,7 @@ function Jt(n, t) {
|
|
|
11042
11042
|
rest: n.rest
|
|
11043
11043
|
};
|
|
11044
11044
|
}
|
|
11045
|
-
function
|
|
11045
|
+
function $t(n, t) {
|
|
11046
11046
|
const e = t.match(n);
|
|
11047
11047
|
return e ? {
|
|
11048
11048
|
value: parseInt(e[0], 10),
|
|
@@ -11065,34 +11065,34 @@ function hn(n, t) {
|
|
|
11065
11065
|
};
|
|
11066
11066
|
}
|
|
11067
11067
|
function og(n) {
|
|
11068
|
-
return
|
|
11068
|
+
return $t(Qt.anyDigitsSigned, n);
|
|
11069
11069
|
}
|
|
11070
11070
|
function Kt(n, t) {
|
|
11071
11071
|
switch (n) {
|
|
11072
11072
|
case 1:
|
|
11073
|
-
return
|
|
11073
|
+
return $t(Qt.singleDigit, t);
|
|
11074
11074
|
case 2:
|
|
11075
|
-
return
|
|
11075
|
+
return $t(Qt.twoDigits, t);
|
|
11076
11076
|
case 3:
|
|
11077
|
-
return
|
|
11077
|
+
return $t(Qt.threeDigits, t);
|
|
11078
11078
|
case 4:
|
|
11079
|
-
return
|
|
11079
|
+
return $t(Qt.fourDigits, t);
|
|
11080
11080
|
default:
|
|
11081
|
-
return
|
|
11081
|
+
return $t(new RegExp("^\\d{1," + n + "}"), t);
|
|
11082
11082
|
}
|
|
11083
11083
|
}
|
|
11084
11084
|
function Ia(n, t) {
|
|
11085
11085
|
switch (n) {
|
|
11086
11086
|
case 1:
|
|
11087
|
-
return
|
|
11087
|
+
return $t(Qt.singleDigitSigned, t);
|
|
11088
11088
|
case 2:
|
|
11089
|
-
return
|
|
11089
|
+
return $t(Qt.twoDigitsSigned, t);
|
|
11090
11090
|
case 3:
|
|
11091
|
-
return
|
|
11091
|
+
return $t(Qt.threeDigitsSigned, t);
|
|
11092
11092
|
case 4:
|
|
11093
|
-
return
|
|
11093
|
+
return $t(Qt.fourDigitsSigned, t);
|
|
11094
11094
|
default:
|
|
11095
|
-
return
|
|
11095
|
+
return $t(new RegExp("^-?\\d{1," + n + "}"), t);
|
|
11096
11096
|
}
|
|
11097
11097
|
}
|
|
11098
11098
|
function Pc(n) {
|
|
@@ -11418,7 +11418,7 @@ class nw extends kt {
|
|
|
11418
11418
|
switch (i) {
|
|
11419
11419
|
case "M":
|
|
11420
11420
|
return Jt(
|
|
11421
|
-
|
|
11421
|
+
$t(Qt.month, e),
|
|
11422
11422
|
r
|
|
11423
11423
|
);
|
|
11424
11424
|
case "MM":
|
|
@@ -11480,7 +11480,7 @@ class iw extends kt {
|
|
|
11480
11480
|
switch (i) {
|
|
11481
11481
|
case "L":
|
|
11482
11482
|
return Jt(
|
|
11483
|
-
|
|
11483
|
+
$t(Qt.month, e),
|
|
11484
11484
|
r
|
|
11485
11485
|
);
|
|
11486
11486
|
case "LL":
|
|
@@ -11544,7 +11544,7 @@ class rw extends kt {
|
|
|
11544
11544
|
parse(e, i, s) {
|
|
11545
11545
|
switch (i) {
|
|
11546
11546
|
case "w":
|
|
11547
|
-
return
|
|
11547
|
+
return $t(Qt.week, e);
|
|
11548
11548
|
case "wo":
|
|
11549
11549
|
return s.ordinalNumber(e, { unit: "week" });
|
|
11550
11550
|
default:
|
|
@@ -11586,7 +11586,7 @@ class ow extends kt {
|
|
|
11586
11586
|
parse(e, i, s) {
|
|
11587
11587
|
switch (i) {
|
|
11588
11588
|
case "I":
|
|
11589
|
-
return
|
|
11589
|
+
return $t(Qt.week, e);
|
|
11590
11590
|
case "Io":
|
|
11591
11591
|
return s.ordinalNumber(e, { unit: "week" });
|
|
11592
11592
|
default:
|
|
@@ -11637,7 +11637,7 @@ class uw extends kt {
|
|
|
11637
11637
|
parse(e, i, s) {
|
|
11638
11638
|
switch (i) {
|
|
11639
11639
|
case "d":
|
|
11640
|
-
return
|
|
11640
|
+
return $t(Qt.date, e);
|
|
11641
11641
|
case "do":
|
|
11642
11642
|
return s.ordinalNumber(e, { unit: "date" });
|
|
11643
11643
|
default:
|
|
@@ -11679,7 +11679,7 @@ class dw extends kt {
|
|
|
11679
11679
|
switch (i) {
|
|
11680
11680
|
case "D":
|
|
11681
11681
|
case "DD":
|
|
11682
|
-
return
|
|
11682
|
+
return $t(Qt.dayOfYear, e);
|
|
11683
11683
|
case "Do":
|
|
11684
11684
|
return s.ordinalNumber(e, { unit: "date" });
|
|
11685
11685
|
default:
|
|
@@ -11867,7 +11867,7 @@ class gw extends kt {
|
|
|
11867
11867
|
}
|
|
11868
11868
|
}
|
|
11869
11869
|
function mw(n, t, e) {
|
|
11870
|
-
const i = pt(n, e == null ? void 0 : e.in), s =
|
|
11870
|
+
const i = pt(n, e == null ? void 0 : e.in), s = $x(i, e), r = t - s;
|
|
11871
11871
|
return Ga(i, r, e);
|
|
11872
11872
|
}
|
|
11873
11873
|
class pw extends kt {
|
|
@@ -12092,7 +12092,7 @@ class vw extends kt {
|
|
|
12092
12092
|
parse(e, i, s) {
|
|
12093
12093
|
switch (i) {
|
|
12094
12094
|
case "h":
|
|
12095
|
-
return
|
|
12095
|
+
return $t(Qt.hour12h, e);
|
|
12096
12096
|
case "ho":
|
|
12097
12097
|
return s.ordinalNumber(e, { unit: "hour" });
|
|
12098
12098
|
default:
|
|
@@ -12116,7 +12116,7 @@ class xw extends kt {
|
|
|
12116
12116
|
parse(e, i, s) {
|
|
12117
12117
|
switch (i) {
|
|
12118
12118
|
case "H":
|
|
12119
|
-
return
|
|
12119
|
+
return $t(Qt.hour23h, e);
|
|
12120
12120
|
case "Ho":
|
|
12121
12121
|
return s.ordinalNumber(e, { unit: "hour" });
|
|
12122
12122
|
default:
|
|
@@ -12139,7 +12139,7 @@ class ww extends kt {
|
|
|
12139
12139
|
parse(e, i, s) {
|
|
12140
12140
|
switch (i) {
|
|
12141
12141
|
case "K":
|
|
12142
|
-
return
|
|
12142
|
+
return $t(Qt.hour11h, e);
|
|
12143
12143
|
case "Ko":
|
|
12144
12144
|
return s.ordinalNumber(e, { unit: "hour" });
|
|
12145
12145
|
default:
|
|
@@ -12162,7 +12162,7 @@ class Sw extends kt {
|
|
|
12162
12162
|
parse(e, i, s) {
|
|
12163
12163
|
switch (i) {
|
|
12164
12164
|
case "k":
|
|
12165
|
-
return
|
|
12165
|
+
return $t(Qt.hour24h, e);
|
|
12166
12166
|
case "ko":
|
|
12167
12167
|
return s.ordinalNumber(e, { unit: "hour" });
|
|
12168
12168
|
default:
|
|
@@ -12186,7 +12186,7 @@ class Tw extends kt {
|
|
|
12186
12186
|
parse(e, i, s) {
|
|
12187
12187
|
switch (i) {
|
|
12188
12188
|
case "m":
|
|
12189
|
-
return
|
|
12189
|
+
return $t(Qt.minute, e);
|
|
12190
12190
|
case "mo":
|
|
12191
12191
|
return s.ordinalNumber(e, { unit: "minute" });
|
|
12192
12192
|
default:
|
|
@@ -12209,7 +12209,7 @@ class Mw extends kt {
|
|
|
12209
12209
|
parse(e, i, s) {
|
|
12210
12210
|
switch (i) {
|
|
12211
12211
|
case "s":
|
|
12212
|
-
return
|
|
12212
|
+
return $t(Qt.second, e);
|
|
12213
12213
|
case "so":
|
|
12214
12214
|
return s.ordinalNumber(e, { unit: "second" });
|
|
12215
12215
|
default:
|
|
@@ -12456,7 +12456,7 @@ function Ww(n, t) {
|
|
|
12456
12456
|
const e = pt(n, t == null ? void 0 : t.in);
|
|
12457
12457
|
return e.setMilliseconds(0), e;
|
|
12458
12458
|
}
|
|
12459
|
-
function
|
|
12459
|
+
function $w(n) {
|
|
12460
12460
|
const t = n / hs;
|
|
12461
12461
|
return Math.trunc(t);
|
|
12462
12462
|
}
|
|
@@ -12493,7 +12493,7 @@ const aa = {
|
|
|
12493
12493
|
dateTimeDelimiter: /[T ]/,
|
|
12494
12494
|
timeZoneDelimiter: /[Z ]/i,
|
|
12495
12495
|
timezone: /([Z+-].*)$/
|
|
12496
|
-
},
|
|
12496
|
+
}, Yw = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, jw = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, Vw = /^([+-])(\d{2})(?::?(\d{2}))?$/;
|
|
12497
12497
|
function qw(n) {
|
|
12498
12498
|
const t = {}, e = n.split(aa.dateTimeDelimiter);
|
|
12499
12499
|
let i;
|
|
@@ -12521,7 +12521,7 @@ function Gw(n, t) {
|
|
|
12521
12521
|
}
|
|
12522
12522
|
function Kw(n, t) {
|
|
12523
12523
|
if (t === null) return /* @__PURE__ */ new Date(NaN);
|
|
12524
|
-
const e = n.match(
|
|
12524
|
+
const e = n.match(Yw);
|
|
12525
12525
|
if (!e) return /* @__PURE__ */ new Date(NaN);
|
|
12526
12526
|
const i = !!e[4], s = Ls(e[1]), r = Ls(e[2]) - 1, a = Ls(e[3]), o = Ls(e[4]), l = Ls(e[5]) - 1;
|
|
12527
12527
|
if (i)
|
|
@@ -13053,63 +13053,29 @@ const y1 = (n) => ({
|
|
|
13053
13053
|
}
|
|
13054
13054
|
]
|
|
13055
13055
|
}
|
|
13056
|
-
}), b1 =
|
|
13057
|
-
|
|
13058
|
-
|
|
13059
|
-
|
|
13060
|
-
|
|
13061
|
-
|
|
13062
|
-
|
|
13063
|
-
|
|
13064
|
-
|
|
13065
|
-
|
|
13066
|
-
|
|
13067
|
-
|
|
13068
|
-
|
|
13069
|
-
|
|
13070
|
-
},
|
|
13071
|
-
value: {
|
|
13072
|
-
type: "array",
|
|
13073
|
-
items: {
|
|
13074
|
-
type: ["string", "number", "null"]
|
|
13075
|
-
}
|
|
13076
|
-
}
|
|
13077
|
-
},
|
|
13078
|
-
required: [
|
|
13079
|
-
"field",
|
|
13080
|
-
"operator",
|
|
13081
|
-
"value"
|
|
13082
|
-
],
|
|
13083
|
-
additionalProperties: !1
|
|
13084
|
-
},
|
|
13085
|
-
{
|
|
13086
|
-
type: "object",
|
|
13087
|
-
description: "Empty filter",
|
|
13088
|
-
properties: {
|
|
13089
|
-
field: {
|
|
13090
|
-
type: "string"
|
|
13091
|
-
},
|
|
13092
|
-
operator: {
|
|
13093
|
-
type: "string"
|
|
13094
|
-
}
|
|
13095
|
-
},
|
|
13096
|
-
required: [
|
|
13097
|
-
"field",
|
|
13098
|
-
"operator"
|
|
13099
|
-
],
|
|
13100
|
-
additionalProperties: !1
|
|
13101
|
-
}
|
|
13102
|
-
]
|
|
13103
|
-
}
|
|
13104
|
-
});
|
|
13056
|
+
}), b1 = [
|
|
13057
|
+
"control_plane",
|
|
13058
|
+
"gateway_service",
|
|
13059
|
+
"realm",
|
|
13060
|
+
"route",
|
|
13061
|
+
"plugin",
|
|
13062
|
+
"plugin_name",
|
|
13063
|
+
"plugin_scope",
|
|
13064
|
+
"data_plane_node_version",
|
|
13065
|
+
"env",
|
|
13066
|
+
"team",
|
|
13067
|
+
"region",
|
|
13068
|
+
"hostname"
|
|
13069
|
+
];
|
|
13105
13070
|
y1([
|
|
13106
13071
|
.../* @__PURE__ */ new Set([
|
|
13107
13072
|
...mg,
|
|
13108
13073
|
...fg,
|
|
13109
13074
|
...pg,
|
|
13110
|
-
...yg
|
|
13075
|
+
...yg,
|
|
13076
|
+
...b1
|
|
13111
13077
|
])
|
|
13112
|
-
])
|
|
13078
|
+
]);
|
|
13113
13079
|
const _1 = {
|
|
13114
13080
|
lessThanXSeconds: {
|
|
13115
13081
|
one: "less than a second",
|
|
@@ -13435,9 +13401,9 @@ const z1 = /^(\d+)(th|st|nd|rd)?/i, U1 = /\d+/i, H1 = {
|
|
|
13435
13401
|
narrow: /^[1234]/i,
|
|
13436
13402
|
abbreviated: /^q[1234]/i,
|
|
13437
13403
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
13438
|
-
}, Y1 = {
|
|
13439
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
13440
13404
|
}, $1 = {
|
|
13405
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
13406
|
+
}, Y1 = {
|
|
13441
13407
|
narrow: /^[jfmasond]/i,
|
|
13442
13408
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
13443
13409
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
@@ -13507,12 +13473,12 @@ const z1 = /^(\d+)(th|st|nd|rd)?/i, U1 = /\d+/i, H1 = {
|
|
|
13507
13473
|
quarter: Fs({
|
|
13508
13474
|
matchPatterns: W1,
|
|
13509
13475
|
defaultMatchWidth: "wide",
|
|
13510
|
-
parsePatterns:
|
|
13476
|
+
parsePatterns: $1,
|
|
13511
13477
|
defaultParseWidth: "any",
|
|
13512
13478
|
valueCallback: (n) => n + 1
|
|
13513
13479
|
}),
|
|
13514
13480
|
month: Fs({
|
|
13515
|
-
matchPatterns:
|
|
13481
|
+
matchPatterns: Y1,
|
|
13516
13482
|
defaultMatchWidth: "wide",
|
|
13517
13483
|
parsePatterns: j1,
|
|
13518
13484
|
defaultParseWidth: "any"
|
|
@@ -14472,10 +14438,10 @@ function Dr(n, t, e) {
|
|
|
14472
14438
|
const a = parseInt(i[3], 10);
|
|
14473
14439
|
return Id(s, a) ? (r = Math.abs(s) * Rd + a * BS, i[1] === "+" ? -r : r) : NaN;
|
|
14474
14440
|
}
|
|
14475
|
-
if (
|
|
14441
|
+
if (YS(n)) {
|
|
14476
14442
|
t = new Date(t || Date.now());
|
|
14477
14443
|
const a = e ? t : WS(t), o = Gl(a, n);
|
|
14478
|
-
return -(e ? o :
|
|
14444
|
+
return -(e ? o : $S(t, o, n));
|
|
14479
14445
|
}
|
|
14480
14446
|
return NaN;
|
|
14481
14447
|
}
|
|
@@ -14488,7 +14454,7 @@ function Gl(n, t) {
|
|
|
14488
14454
|
const r = s % 1e3;
|
|
14489
14455
|
return s -= r >= 0 ? r : 1e3 + r, i - s;
|
|
14490
14456
|
}
|
|
14491
|
-
function
|
|
14457
|
+
function $S(n, t, e) {
|
|
14492
14458
|
let i = n.getTime() - t;
|
|
14493
14459
|
const s = Gl(new Date(i), e);
|
|
14494
14460
|
if (t === s)
|
|
@@ -14501,7 +14467,7 @@ function Id(n, t) {
|
|
|
14501
14467
|
return -23 <= n && n <= 23 && (t == null || 0 <= t && t <= 59);
|
|
14502
14468
|
}
|
|
14503
14469
|
const Ld = {};
|
|
14504
|
-
function
|
|
14470
|
+
function YS(n) {
|
|
14505
14471
|
if (Ld[n])
|
|
14506
14472
|
return !0;
|
|
14507
14473
|
try {
|
|
@@ -14859,7 +14825,7 @@ za.exports;
|
|
|
14859
14825
|
(function(n, t) {
|
|
14860
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]", E = "[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 = {};
|
|
14861
14827
|
j[r] = j[a] = j[E] = 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;
|
|
14862
|
-
var R = typeof la == "object" && la && la.Object === Object && la, z = typeof self == "object" && self && self.Object === Object && self,
|
|
14828
|
+
var R = typeof la == "object" && la && la.Object === Object && la, z = typeof self == "object" && self && self.Object === Object && self, $ = R || z || Function("return this")(), at = t && !t.nodeType && t, it = at && !0 && n && !n.nodeType && n, G = it && it.exports === at;
|
|
14863
14829
|
function K(x, I) {
|
|
14864
14830
|
return x.set(I[0], I[1]), x;
|
|
14865
14831
|
}
|
|
@@ -14867,23 +14833,23 @@ za.exports;
|
|
|
14867
14833
|
return x.add(I), x;
|
|
14868
14834
|
}
|
|
14869
14835
|
function nt(x, I) {
|
|
14870
|
-
for (var
|
|
14836
|
+
for (var Y = -1, st = x ? x.length : 0; ++Y < st && I(x[Y], Y, x) !== !1; )
|
|
14871
14837
|
;
|
|
14872
14838
|
return x;
|
|
14873
14839
|
}
|
|
14874
14840
|
function et(x, I) {
|
|
14875
|
-
for (var
|
|
14876
|
-
x[Xt +
|
|
14841
|
+
for (var Y = -1, st = I.length, Xt = x.length; ++Y < st; )
|
|
14842
|
+
x[Xt + Y] = I[Y];
|
|
14877
14843
|
return x;
|
|
14878
14844
|
}
|
|
14879
|
-
function tt(x, I,
|
|
14845
|
+
function tt(x, I, Y, st) {
|
|
14880
14846
|
for (var Xt = -1, re = x ? x.length : 0; ++Xt < re; )
|
|
14881
|
-
|
|
14882
|
-
return
|
|
14847
|
+
Y = I(Y, x[Xt], Xt, x);
|
|
14848
|
+
return Y;
|
|
14883
14849
|
}
|
|
14884
14850
|
function mt(x, I) {
|
|
14885
|
-
for (var
|
|
14886
|
-
st[
|
|
14851
|
+
for (var Y = -1, st = Array(x); ++Y < x; )
|
|
14852
|
+
st[Y] = I(Y);
|
|
14887
14853
|
return st;
|
|
14888
14854
|
}
|
|
14889
14855
|
function Tt(x, I) {
|
|
@@ -14899,31 +14865,31 @@ za.exports;
|
|
|
14899
14865
|
return I;
|
|
14900
14866
|
}
|
|
14901
14867
|
function wt(x) {
|
|
14902
|
-
var I = -1,
|
|
14868
|
+
var I = -1, Y = Array(x.size);
|
|
14903
14869
|
return x.forEach(function(st, Xt) {
|
|
14904
|
-
|
|
14905
|
-
}),
|
|
14870
|
+
Y[++I] = [Xt, st];
|
|
14871
|
+
}), Y;
|
|
14906
14872
|
}
|
|
14907
14873
|
function yt(x, I) {
|
|
14908
|
-
return function(
|
|
14909
|
-
return x(I(
|
|
14874
|
+
return function(Y) {
|
|
14875
|
+
return x(I(Y));
|
|
14910
14876
|
};
|
|
14911
14877
|
}
|
|
14912
14878
|
function ne(x) {
|
|
14913
|
-
var I = -1,
|
|
14879
|
+
var I = -1, Y = Array(x.size);
|
|
14914
14880
|
return x.forEach(function(st) {
|
|
14915
|
-
|
|
14916
|
-
}),
|
|
14881
|
+
Y[++I] = st;
|
|
14882
|
+
}), Y;
|
|
14917
14883
|
}
|
|
14918
|
-
var gt = Array.prototype, Ot = Function.prototype, fe = Object.prototype, ye =
|
|
14884
|
+
var gt = Array.prototype, Ot = Function.prototype, fe = Object.prototype, ye = $["__core-js_shared__"], ie = function() {
|
|
14919
14885
|
var x = /[^.]+$/.exec(ye && ye.keys && ye.keys.IE_PROTO || "");
|
|
14920
14886
|
return x ? "Symbol(src)_1." + x : "";
|
|
14921
|
-
}(), an = Ot.toString, It = fe.hasOwnProperty, ge = fe.toString,
|
|
14887
|
+
}(), an = Ot.toString, It = fe.hasOwnProperty, ge = fe.toString, Yt = RegExp(
|
|
14922
14888
|
"^" + an.call(It).replace(F, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
14923
|
-
), se = G ?
|
|
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), Er = me ? me.prototype : void 0, Rr = Er ? Er.valueOf : void 0;
|
|
14924
14890
|
function yn(x) {
|
|
14925
|
-
var I = -1,
|
|
14926
|
-
for (this.clear(); ++I <
|
|
14891
|
+
var I = -1, Y = x ? x.length : 0;
|
|
14892
|
+
for (this.clear(); ++I < Y; ) {
|
|
14927
14893
|
var st = x[I];
|
|
14928
14894
|
this.set(st[0], st[1]);
|
|
14929
14895
|
}
|
|
@@ -14937,8 +14903,8 @@ za.exports;
|
|
|
14937
14903
|
function Ir(x) {
|
|
14938
14904
|
var I = this.__data__;
|
|
14939
14905
|
if (pn) {
|
|
14940
|
-
var
|
|
14941
|
-
return
|
|
14906
|
+
var Y = I[x];
|
|
14907
|
+
return Y === i ? void 0 : Y;
|
|
14942
14908
|
}
|
|
14943
14909
|
return It.call(I, x) ? I[x] : void 0;
|
|
14944
14910
|
}
|
|
@@ -14947,13 +14913,13 @@ za.exports;
|
|
|
14947
14913
|
return pn ? I[x] !== void 0 : It.call(I, x);
|
|
14948
14914
|
}
|
|
14949
14915
|
function ao(x, I) {
|
|
14950
|
-
var
|
|
14951
|
-
return
|
|
14916
|
+
var Y = this.__data__;
|
|
14917
|
+
return Y[x] = pn && I === void 0 ? i : I, this;
|
|
14952
14918
|
}
|
|
14953
14919
|
yn.prototype.clear = Ii, yn.prototype.delete = xs, yn.prototype.get = Ir, yn.prototype.has = bn, yn.prototype.set = ao;
|
|
14954
14920
|
function en(x) {
|
|
14955
|
-
var I = -1,
|
|
14956
|
-
for (this.clear(); ++I <
|
|
14921
|
+
var I = -1, Y = x ? x.length : 0;
|
|
14922
|
+
for (this.clear(); ++I < Y; ) {
|
|
14957
14923
|
var st = x[I];
|
|
14958
14924
|
this.set(st[0], st[1]);
|
|
14959
14925
|
}
|
|
@@ -14962,27 +14928,27 @@ za.exports;
|
|
|
14962
14928
|
this.__data__ = [];
|
|
14963
14929
|
}
|
|
14964
14930
|
function lo(x) {
|
|
14965
|
-
var I = this.__data__,
|
|
14966
|
-
if (
|
|
14931
|
+
var I = this.__data__, Y = Ni(I, x);
|
|
14932
|
+
if (Y < 0)
|
|
14967
14933
|
return !1;
|
|
14968
14934
|
var st = I.length - 1;
|
|
14969
|
-
return
|
|
14935
|
+
return Y == st ? I.pop() : Oe.call(I, Y, 1), !0;
|
|
14970
14936
|
}
|
|
14971
14937
|
function co(x) {
|
|
14972
|
-
var I = this.__data__,
|
|
14973
|
-
return
|
|
14938
|
+
var I = this.__data__, Y = Ni(I, x);
|
|
14939
|
+
return Y < 0 ? void 0 : I[Y][1];
|
|
14974
14940
|
}
|
|
14975
14941
|
function nn(x) {
|
|
14976
14942
|
return Ni(this.__data__, x) > -1;
|
|
14977
14943
|
}
|
|
14978
14944
|
function uo(x, I) {
|
|
14979
|
-
var
|
|
14980
|
-
return st < 0 ?
|
|
14945
|
+
var Y = this.__data__, st = Ni(Y, x);
|
|
14946
|
+
return st < 0 ? Y.push([x, I]) : Y[st][1] = I, this;
|
|
14981
14947
|
}
|
|
14982
14948
|
en.prototype.clear = oo, en.prototype.delete = lo, en.prototype.get = co, en.prototype.has = nn, en.prototype.set = uo;
|
|
14983
14949
|
function Rn(x) {
|
|
14984
|
-
var I = -1,
|
|
14985
|
-
for (this.clear(); ++I <
|
|
14950
|
+
var I = -1, Y = x ? x.length : 0;
|
|
14951
|
+
for (this.clear(); ++I < Y; ) {
|
|
14986
14952
|
var st = x[I];
|
|
14987
14953
|
this.set(st[0], st[1]);
|
|
14988
14954
|
}
|
|
@@ -15023,36 +14989,36 @@ za.exports;
|
|
|
15023
14989
|
return this.__data__.has(x);
|
|
15024
14990
|
}
|
|
15025
14991
|
function _o(x, I) {
|
|
15026
|
-
var
|
|
15027
|
-
if (
|
|
15028
|
-
var st =
|
|
14992
|
+
var Y = this.__data__;
|
|
14993
|
+
if (Y instanceof en) {
|
|
14994
|
+
var st = Y.__data__;
|
|
15029
14995
|
if (!li || st.length < e - 1)
|
|
15030
14996
|
return st.push([x, I]), this;
|
|
15031
|
-
|
|
14997
|
+
Y = this.__data__ = new Rn(st);
|
|
15032
14998
|
}
|
|
15033
|
-
return
|
|
14999
|
+
return Y.set(x, I), this;
|
|
15034
15000
|
}
|
|
15035
15001
|
In.prototype.clear = po, In.prototype.delete = yo, In.prototype.get = bo, In.prototype.has = Li, In.prototype.set = _o;
|
|
15036
15002
|
function vo(x, I) {
|
|
15037
|
-
var
|
|
15003
|
+
var Y = Ms(x) || Bi(x) ? mt(x.length, String) : [], st = Y.length, Xt = !!st;
|
|
15038
15004
|
for (var re in x)
|
|
15039
|
-
It.call(x, re) && !(Xt && (re == "length" || Fo(re, st))) &&
|
|
15040
|
-
return
|
|
15005
|
+
It.call(x, re) && !(Xt && (re == "length" || Fo(re, st))) && Y.push(re);
|
|
15006
|
+
return Y;
|
|
15041
15007
|
}
|
|
15042
|
-
function je(x, I,
|
|
15008
|
+
function je(x, I, Y) {
|
|
15043
15009
|
var st = x[I];
|
|
15044
|
-
(!(It.call(x, I) && Ts(st,
|
|
15010
|
+
(!(It.call(x, I) && Ts(st, Y)) || Y === void 0 && !(I in x)) && (x[I] = Y);
|
|
15045
15011
|
}
|
|
15046
15012
|
function Ni(x, I) {
|
|
15047
|
-
for (var
|
|
15048
|
-
if (Ts(x[
|
|
15049
|
-
return
|
|
15013
|
+
for (var Y = x.length; Y--; )
|
|
15014
|
+
if (Ts(x[Y][0], I))
|
|
15015
|
+
return Y;
|
|
15050
15016
|
return -1;
|
|
15051
15017
|
}
|
|
15052
15018
|
function xo(x, I) {
|
|
15053
15019
|
return x && Lr(I, di(I), x);
|
|
15054
15020
|
}
|
|
15055
|
-
function ws(x, I,
|
|
15021
|
+
function ws(x, I, Y, st, Xt, re, Ce) {
|
|
15056
15022
|
var le;
|
|
15057
15023
|
if (st && (le = re ? st(x, Xt, re, Ce) : st(x)), le !== void 0)
|
|
15058
15024
|
return le;
|
|
@@ -15063,13 +15029,13 @@ za.exports;
|
|
|
15063
15029
|
if (le = Lo(x), !I)
|
|
15064
15030
|
return Eo(x, le);
|
|
15065
15031
|
} else {
|
|
15066
|
-
var Nn = ln(x),
|
|
15032
|
+
var Nn = ln(x), $r = Nn == u || Nn == d;
|
|
15067
15033
|
if (Ur(x))
|
|
15068
15034
|
return Do(x, I);
|
|
15069
|
-
if (Nn == g || Nn == r ||
|
|
15035
|
+
if (Nn == g || Nn == r || $r && !re) {
|
|
15070
15036
|
if (lt(x))
|
|
15071
15037
|
return re ? x : {};
|
|
15072
|
-
if (le = Fr(
|
|
15038
|
+
if (le = Fr($r ? {} : x), !I)
|
|
15073
15039
|
return Ro(x, xo(le, x));
|
|
15074
15040
|
} else {
|
|
15075
15041
|
if (!j[Nn])
|
|
@@ -15078,21 +15044,21 @@ za.exports;
|
|
|
15078
15044
|
}
|
|
15079
15045
|
}
|
|
15080
15046
|
Ce || (Ce = new In());
|
|
15081
|
-
var
|
|
15082
|
-
if (
|
|
15083
|
-
return
|
|
15047
|
+
var Yr = Ce.get(x);
|
|
15048
|
+
if (Yr)
|
|
15049
|
+
return Yr;
|
|
15084
15050
|
if (Ce.set(x, le), !Wr)
|
|
15085
|
-
var hi =
|
|
15051
|
+
var hi = Y ? Io(x) : di(x);
|
|
15086
15052
|
return nt(hi || x, function(ks, Wi) {
|
|
15087
|
-
hi && (Wi = ks, ks = x[Wi]), je(le, Wi, ws(ks, I,
|
|
15053
|
+
hi && (Wi = ks, ks = x[Wi]), je(le, Wi, ws(ks, I, Y, st, Wi, x, Ce));
|
|
15088
15054
|
}), le;
|
|
15089
15055
|
}
|
|
15090
15056
|
function wo(x) {
|
|
15091
15057
|
return vn(x) ? tn(x) : {};
|
|
15092
15058
|
}
|
|
15093
|
-
function So(x, I,
|
|
15059
|
+
function So(x, I, Y) {
|
|
15094
15060
|
var st = I(x);
|
|
15095
|
-
return Ms(x) ? st : et(st,
|
|
15061
|
+
return Ms(x) ? st : et(st, Y(x));
|
|
15096
15062
|
}
|
|
15097
15063
|
function To(x) {
|
|
15098
15064
|
return ge.call(x);
|
|
@@ -15100,63 +15066,63 @@ za.exports;
|
|
|
15100
15066
|
function Fi(x) {
|
|
15101
15067
|
if (!vn(x) || zo(x))
|
|
15102
15068
|
return !1;
|
|
15103
|
-
var I = Ds(x) || lt(x) ?
|
|
15069
|
+
var I = Ds(x) || lt(x) ? Yt : V;
|
|
15104
15070
|
return I.test(be(x));
|
|
15105
15071
|
}
|
|
15106
15072
|
function Mo(x) {
|
|
15107
15073
|
if (!_n(x))
|
|
15108
15074
|
return Pr(x);
|
|
15109
15075
|
var I = [];
|
|
15110
|
-
for (var
|
|
15111
|
-
It.call(x,
|
|
15076
|
+
for (var Y in Object(x))
|
|
15077
|
+
It.call(x, Y) && Y != "constructor" && I.push(Y);
|
|
15112
15078
|
return I;
|
|
15113
15079
|
}
|
|
15114
15080
|
function Do(x, I) {
|
|
15115
15081
|
if (I)
|
|
15116
15082
|
return x.slice();
|
|
15117
|
-
var
|
|
15118
|
-
return x.copy(
|
|
15083
|
+
var Y = new x.constructor(x.length);
|
|
15084
|
+
return x.copy(Y), Y;
|
|
15119
15085
|
}
|
|
15120
15086
|
function zi(x) {
|
|
15121
15087
|
var I = new x.constructor(x.byteLength);
|
|
15122
15088
|
return new on(I).set(new on(x)), I;
|
|
15123
15089
|
}
|
|
15124
15090
|
function ko(x, I) {
|
|
15125
|
-
var
|
|
15126
|
-
return new x.constructor(
|
|
15091
|
+
var Y = I ? zi(x.buffer) : x.buffer;
|
|
15092
|
+
return new x.constructor(Y, x.byteOffset, x.byteLength);
|
|
15127
15093
|
}
|
|
15128
|
-
function Oo(x, I,
|
|
15129
|
-
var st = I ?
|
|
15094
|
+
function Oo(x, I, Y) {
|
|
15095
|
+
var st = I ? Y(wt(x), !0) : wt(x);
|
|
15130
15096
|
return tt(st, K, new x.constructor());
|
|
15131
15097
|
}
|
|
15132
15098
|
function Ss(x) {
|
|
15133
15099
|
var I = new x.constructor(x.source, H.exec(x));
|
|
15134
15100
|
return I.lastIndex = x.lastIndex, I;
|
|
15135
15101
|
}
|
|
15136
|
-
function Co(x, I,
|
|
15137
|
-
var st = I ?
|
|
15102
|
+
function Co(x, I, Y) {
|
|
15103
|
+
var st = I ? Y(ne(x), !0) : ne(x);
|
|
15138
15104
|
return tt(st, J, new x.constructor());
|
|
15139
15105
|
}
|
|
15140
15106
|
function Ao(x) {
|
|
15141
15107
|
return Rr ? Object(Rr.call(x)) : {};
|
|
15142
15108
|
}
|
|
15143
15109
|
function Po(x, I) {
|
|
15144
|
-
var
|
|
15145
|
-
return new x.constructor(
|
|
15110
|
+
var Y = I ? zi(x.buffer) : x.buffer;
|
|
15111
|
+
return new x.constructor(Y, x.byteOffset, x.length);
|
|
15146
15112
|
}
|
|
15147
15113
|
function Eo(x, I) {
|
|
15148
|
-
var
|
|
15149
|
-
for (I || (I = Array(st));
|
|
15150
|
-
I[
|
|
15114
|
+
var Y = -1, st = x.length;
|
|
15115
|
+
for (I || (I = Array(st)); ++Y < st; )
|
|
15116
|
+
I[Y] = x[Y];
|
|
15151
15117
|
return I;
|
|
15152
15118
|
}
|
|
15153
|
-
function Lr(x, I,
|
|
15154
|
-
|
|
15119
|
+
function Lr(x, I, Y, st) {
|
|
15120
|
+
Y || (Y = {});
|
|
15155
15121
|
for (var Xt = -1, re = I.length; ++Xt < re; ) {
|
|
15156
15122
|
var Ce = I[Xt], le = void 0;
|
|
15157
|
-
je(
|
|
15123
|
+
je(Y, Ce, le === void 0 ? x[Ce] : le);
|
|
15158
15124
|
}
|
|
15159
|
-
return
|
|
15125
|
+
return Y;
|
|
15160
15126
|
}
|
|
15161
15127
|
function Ro(x, I) {
|
|
15162
15128
|
return Lr(x, Nr(x), I);
|
|
@@ -15165,16 +15131,16 @@ za.exports;
|
|
|
15165
15131
|
return So(x, di, Nr);
|
|
15166
15132
|
}
|
|
15167
15133
|
function Ui(x, I) {
|
|
15168
|
-
var
|
|
15169
|
-
return Hi(I) ?
|
|
15134
|
+
var Y = x.__data__;
|
|
15135
|
+
return Hi(I) ? Y[typeof I == "string" ? "string" : "hash"] : Y.map;
|
|
15170
15136
|
}
|
|
15171
15137
|
function Ln(x, I) {
|
|
15172
|
-
var
|
|
15173
|
-
return Fi(
|
|
15138
|
+
var Y = Tt(x, I);
|
|
15139
|
+
return Fi(Y) ? Y : void 0;
|
|
15174
15140
|
}
|
|
15175
15141
|
var Nr = oi ? yt(oi, Object) : Hr, ln = To;
|
|
15176
15142
|
(ys && ln(new ys(new ArrayBuffer(1))) != A || li && ln(new li()) != h || bs && ln(bs.resolve()) != y || ci && ln(new ci()) != w || mn && ln(new mn()) != k) && (ln = function(x) {
|
|
15177
|
-
var I = ge.call(x),
|
|
15143
|
+
var I = ge.call(x), Y = I == g ? x.constructor : void 0, st = Y ? be(Y) : void 0;
|
|
15178
15144
|
if (st)
|
|
15179
15145
|
switch (st) {
|
|
15180
15146
|
case _s:
|
|
@@ -15191,13 +15157,13 @@ za.exports;
|
|
|
15191
15157
|
return I;
|
|
15192
15158
|
});
|
|
15193
15159
|
function Lo(x) {
|
|
15194
|
-
var I = x.length,
|
|
15195
|
-
return I && typeof x[0] == "string" && It.call(x, "index") && (
|
|
15160
|
+
var I = x.length, Y = x.constructor(I);
|
|
15161
|
+
return I && typeof x[0] == "string" && It.call(x, "index") && (Y.index = x.index, Y.input = x.input), Y;
|
|
15196
15162
|
}
|
|
15197
15163
|
function Fr(x) {
|
|
15198
15164
|
return typeof x.constructor == "function" && !_n(x) ? wo(ai(x)) : {};
|
|
15199
15165
|
}
|
|
15200
|
-
function No(x, I,
|
|
15166
|
+
function No(x, I, Y, st) {
|
|
15201
15167
|
var Xt = x.constructor;
|
|
15202
15168
|
switch (I) {
|
|
15203
15169
|
case E:
|
|
@@ -15218,14 +15184,14 @@ za.exports;
|
|
|
15218
15184
|
case W:
|
|
15219
15185
|
return Po(x, st);
|
|
15220
15186
|
case h:
|
|
15221
|
-
return Oo(x, st,
|
|
15187
|
+
return Oo(x, st, Y);
|
|
15222
15188
|
case f:
|
|
15223
15189
|
case S:
|
|
15224
15190
|
return new Xt(x);
|
|
15225
15191
|
case v:
|
|
15226
15192
|
return Ss(x);
|
|
15227
15193
|
case w:
|
|
15228
|
-
return Co(x, st,
|
|
15194
|
+
return Co(x, st, Y);
|
|
15229
15195
|
case D:
|
|
15230
15196
|
return Ao(x);
|
|
15231
15197
|
}
|
|
@@ -15241,8 +15207,8 @@ za.exports;
|
|
|
15241
15207
|
return !!ie && ie in x;
|
|
15242
15208
|
}
|
|
15243
15209
|
function _n(x) {
|
|
15244
|
-
var I = x && x.constructor,
|
|
15245
|
-
return x ===
|
|
15210
|
+
var I = x && x.constructor, Y = typeof I == "function" && I.prototype || fe;
|
|
15211
|
+
return x === Y;
|
|
15246
15212
|
}
|
|
15247
15213
|
function be(x) {
|
|
15248
15214
|
if (x != null) {
|
|
@@ -15609,7 +15575,7 @@ rt.FIFTEEN_MIN, new ce({
|
|
|
15609
15575
|
timeframeLength: () => {
|
|
15610
15576
|
let n = 0;
|
|
15611
15577
|
const t = is(/* @__PURE__ */ new Date()), e = is(Tg(/* @__PURE__ */ new Date()));
|
|
15612
|
-
return t.getTimezoneOffset() !== e.getTimezoneOffset() && (n =
|
|
15578
|
+
return t.getTimezoneOffset() !== e.getTimezoneOffset() && (n = $d(t, e)), 60 * 60 * 24 * CS((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 1)) + Ad(n);
|
|
15613
15579
|
},
|
|
15614
15580
|
defaultResponseGranularity: "daily",
|
|
15615
15581
|
dataGranularity: "daily",
|
|
@@ -15634,21 +15600,21 @@ rt.FIFTEEN_MIN, new ce({
|
|
|
15634
15600
|
timeframeLength: () => {
|
|
15635
15601
|
const n = new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1), t = new Date((/* @__PURE__ */ new Date()).getFullYear() - 1, 0, 1);
|
|
15636
15602
|
let e = 0;
|
|
15637
|
-
return n.getTimezoneOffset() !== t.getTimezoneOffset() && (e =
|
|
15603
|
+
return n.getTimezoneOffset() !== t.getTimezoneOffset() && (e = $d(n, t)), 60 * 60 * 24 * (365 + (t.getFullYear() % 4 === 0 ? 1 : 0)) + Ad(e);
|
|
15638
15604
|
},
|
|
15639
15605
|
defaultResponseGranularity: "daily",
|
|
15640
15606
|
dataGranularity: "daily",
|
|
15641
15607
|
isRelative: !1,
|
|
15642
15608
|
allowedTiers: ["plus", "enterprise"]
|
|
15643
15609
|
});
|
|
15644
|
-
function
|
|
15610
|
+
function $d(n, t) {
|
|
15645
15611
|
return PS(n.getTimezoneOffset() - t.getTimezoneOffset());
|
|
15646
15612
|
}
|
|
15647
15613
|
rt.FIFTEEN_MIN, rt.ONE_HOUR, rt.SIX_HOUR, rt.TWELVE_HOUR, rt.ONE_DAY, rt.SEVEN_DAY, rt.FIFTEEN_MIN, rt.ONE_HOUR, rt.SIX_HOUR, rt.TWELVE_HOUR, rt.ONE_DAY, rt.SEVEN_DAY, rt.THIRTY_DAY, rt.NINETY_DAY, rt.ONE_HUNDRED_EIGHTY_DAY, rt.ONE_YEAR, rt.CURRENT_WEEK, rt.CURRENT_MONTH, rt.CURRENT_QUARTER, rt.CURRENT_YEAR, rt.PREVIOUS_WEEK, rt.PREVIOUS_MONTH, rt.PREVIOUS_QUARTER, rt.PREVIOUS_YEAR;
|
|
15648
15614
|
const pT = new Map(bg.map((n) => [n.code, { code: n.code, name: n.name }])), Kl = (n) => {
|
|
15649
15615
|
var t;
|
|
15650
15616
|
return ((t = pT.get(n)) == null ? void 0 : t.name) || n;
|
|
15651
|
-
},
|
|
15617
|
+
}, Yd = 1e3, yT = 1e4, jd = 1e6, Vd = 1e9, qd = 1e12, ya = (n, t) => {
|
|
15652
15618
|
if (t.separator === !1 || n < 1e3)
|
|
15653
15619
|
return n.toString();
|
|
15654
15620
|
const e = typeof t.separator == "string" ? t.separator : ",", i = [];
|
|
@@ -15668,8 +15634,8 @@ function ba(n, t = {}) {
|
|
|
15668
15634
|
let e;
|
|
15669
15635
|
const i = n < 0;
|
|
15670
15636
|
i && (n = Math.abs(n)), t.precision && (n = parseFloat(n.toPrecision(t.precision)));
|
|
15671
|
-
const s = t.min10k ? yT :
|
|
15672
|
-
return n < s || t.precision && t.precision > Math.log10(n) ? e = ya(zs(n, 1, t), t) : n < jd ? e = `${zs(n,
|
|
15637
|
+
const s = t.min10k ? yT : Yd;
|
|
15638
|
+
return n < s || t.precision && t.precision > Math.log10(n) ? e = ya(zs(n, 1, t), t) : n < jd ? e = `${zs(n, Yd, t)}k` : n < Vd ? e = `${zs(n, jd, t)}m` : n < qd ? e = `${ya(zs(n, Vd, t), t)}b` : e = `${ya(zs(n, qd, t), t)}t`, i && (e = `-${e}`), t.capital && (e = e.toUpperCase()), t.prefix && (e = `${t.prefix}${e}`), t.suffix && (e = `${e}${t.suffix}`), e;
|
|
15673
15639
|
}
|
|
15674
15640
|
ba.addCommas = ya;
|
|
15675
15641
|
var Gd;
|
|
@@ -15822,7 +15788,7 @@ const Rg = (n, t, e) => {
|
|
|
15822
15788
|
value: t && t[s.text],
|
|
15823
15789
|
isSegmentEmpty: i.datasets[r].isSegmentEmpty
|
|
15824
15790
|
})).sort(e);
|
|
15825
|
-
}, JP = 2, MT = 10, DT = 12, Xl = 10, kT = "#f1f0ff", OT = "#e0e4ea", Kd = "#6c7489", CT = "#afb7c5", AT = "#d60027", PT = "#ad000e", Lc = "#6c7489", Xd = "#52596e", ET = "#007d60", RT = "#995c00", IT = "#ffc400", pr = "16px", LT = "20px", NT = "#bee2ff", FT = "#8fc1ff", zT = "#5f9aff", UT = "#306fff", HT = "#b5ffee", BT = "#00fabe", WT = "#00d6a4",
|
|
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", ET = "#007d60", RT = "#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", EM = "#D13500", RM = "#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 = [
|
|
15826
15792
|
"#a86cd5",
|
|
15827
15793
|
"#6a86d2",
|
|
15828
15794
|
"#00bbf9",
|
|
@@ -15878,8 +15844,8 @@ const Rg = (n, t, e) => {
|
|
|
15878
15844
|
200: HT,
|
|
15879
15845
|
201: BT,
|
|
15880
15846
|
202: WT,
|
|
15881
|
-
203:
|
|
15882
|
-
204:
|
|
15847
|
+
203: $T,
|
|
15848
|
+
204: YT,
|
|
15883
15849
|
205: jT,
|
|
15884
15850
|
206: VT,
|
|
15885
15851
|
207: qT,
|
|
@@ -15932,9 +15898,9 @@ const Rg = (n, t, e) => {
|
|
|
15932
15898
|
507: HM,
|
|
15933
15899
|
508: BM,
|
|
15934
15900
|
510: WM,
|
|
15935
|
-
511:
|
|
15901
|
+
511: $M
|
|
15936
15902
|
}, fD = {
|
|
15937
|
-
100:
|
|
15903
|
+
100: YM,
|
|
15938
15904
|
200: jM,
|
|
15939
15905
|
300: VM,
|
|
15940
15906
|
400: qM,
|
|
@@ -16377,7 +16343,7 @@ function Jl(n, t, e = {}) {
|
|
|
16377
16343
|
}
|
|
16378
16344
|
return Ra(n, t, e);
|
|
16379
16345
|
}
|
|
16380
|
-
function
|
|
16346
|
+
function $D(n, t, e) {
|
|
16381
16347
|
n = Ng(n, e);
|
|
16382
16348
|
const i = Nc(t, n, !0), s = new Date(n.getTime() - i), r = /* @__PURE__ */ new Date(0);
|
|
16383
16349
|
return r.setFullYear(s.getUTCFullYear(), s.getUTCMonth(), s.getUTCDate()), r.setHours(s.getUTCHours(), s.getUTCMinutes(), s.getUTCSeconds(), s.getUTCMilliseconds()), r;
|
|
@@ -16387,9 +16353,9 @@ function sr(n, t, e, i) {
|
|
|
16387
16353
|
...i,
|
|
16388
16354
|
timeZone: t,
|
|
16389
16355
|
originalDate: n
|
|
16390
|
-
}, Jl(
|
|
16356
|
+
}, Jl($D(n, t, { timeZone: i.timeZone }), e, i);
|
|
16391
16357
|
}
|
|
16392
|
-
const
|
|
16358
|
+
const YD = (n, t) => `${sr(n, t, "yyyy")} W${sr(n, t, "II")}`, _l = "yyyy-MM-dd h:mm:ss a", vl = "h:mm:ss a", yi = "yyyy-MM-dd h:mm a", qi = "h:mm a", jD = "yyyy-MM-dd", xl = "MMM dd, yyyy h:mm:ss a", Hn = "MMM dd, yyyy h:mm a", VD = {
|
|
16393
16359
|
secondly: (n) => n ? _l : vl,
|
|
16394
16360
|
tenSecondly: (n) => n ? _l : vl,
|
|
16395
16361
|
thirtySecondly: (n) => n ? _l : vl,
|
|
@@ -16425,7 +16391,7 @@ function zg({
|
|
|
16425
16391
|
}) {
|
|
16426
16392
|
const o = e || Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
16427
16393
|
if (t === "weekly")
|
|
16428
|
-
return
|
|
16394
|
+
return YD(n, o);
|
|
16429
16395
|
if (s && s[t]) {
|
|
16430
16396
|
const l = s[t](i);
|
|
16431
16397
|
return sr(n, o, l);
|
|
@@ -16512,7 +16478,7 @@ function XD(n) {
|
|
|
16512
16478
|
xAlign: y
|
|
16513
16479
|
};
|
|
16514
16480
|
}, Rl.modes.customInteractionMode = function(l, c) {
|
|
16515
|
-
const u =
|
|
16481
|
+
const u = $n(c, l), d = [];
|
|
16516
16482
|
return Rl.evaluateInteractionItems(l, l.options.indexAxis || "x", u, (h, f, g) => {
|
|
16517
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 });
|
|
16518
16484
|
}), d;
|
|
@@ -16632,7 +16598,7 @@ function QD(n, t, e, i, s) {
|
|
|
16632
16598
|
};
|
|
16633
16599
|
return si(() => {
|
|
16634
16600
|
r.value = a(e.value, s.value);
|
|
16635
|
-
}),
|
|
16601
|
+
}), $h(() => {
|
|
16636
16602
|
ft(r.value) || r.value.destroy();
|
|
16637
16603
|
}), oe(e, (o, l) => {
|
|
16638
16604
|
if (ZD(l, o) && !ft(r.value)) {
|
|
@@ -16843,7 +16809,7 @@ function ik(n) {
|
|
|
16843
16809
|
};
|
|
16844
16810
|
const a = N(() => {
|
|
16845
16811
|
const l = Number(n.timeRangeMs.value), c = /* @__PURE__ */ new Date(), u = new Date(c.getTime() - l);
|
|
16846
|
-
return
|
|
16812
|
+
return $w(l) > 24 || u.getDate() !== c.getDate();
|
|
16847
16813
|
}), o = N(() => {
|
|
16848
16814
|
var l, c;
|
|
16849
16815
|
return {
|
|
@@ -17131,7 +17097,7 @@ function bk(n, t = {}) {
|
|
|
17131
17097
|
return e;
|
|
17132
17098
|
}
|
|
17133
17099
|
function _k(n, t = !0, e) {
|
|
17134
|
-
yk() ? si(n, e) : t ? n() :
|
|
17100
|
+
yk() ? si(n, e) : t ? n() : Yh(n);
|
|
17135
17101
|
}
|
|
17136
17102
|
function vk(n, t, e) {
|
|
17137
17103
|
return oe(n, t, {
|
|
@@ -17219,10 +17185,10 @@ function Tk(n, t = {}) {
|
|
|
17219
17185
|
speed: (i = Dt(b.speed)) !== null && i !== void 0 ? i : ca.speed,
|
|
17220
17186
|
margin: (s = Dt(b.margin)) !== null && s !== void 0 ? s : ca.margin,
|
|
17221
17187
|
direction: (r = b.direction) !== null && r !== void 0 ? r : ca.direction
|
|
17222
|
-
} : ca, M = (R) => typeof R == "number" ? [R, R] : [R.x, R.y], C = (R, z,
|
|
17188
|
+
} : ca, M = (R) => typeof R == "number" ? [R, R] : [R.x, R.y], C = (R, z, $) => {
|
|
17223
17189
|
const { clientWidth: at, clientHeight: it, scrollLeft: G, scrollTop: K, scrollWidth: J, scrollHeight: nt } = R, [et, tt] = M(_.margin), [mt, Tt] = M(_.speed);
|
|
17224
17190
|
let lt = 0, wt = 0;
|
|
17225
|
-
(_.direction === "x" || _.direction === "both") && (
|
|
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) && R.scrollBy({
|
|
17226
17192
|
left: lt,
|
|
17227
17193
|
top: wt,
|
|
17228
17194
|
behavior: "auto"
|
|
@@ -17232,24 +17198,24 @@ function Tk(n, t = {}) {
|
|
|
17232
17198
|
const L = () => {
|
|
17233
17199
|
const R = Dt(v);
|
|
17234
17200
|
R && !B && (B = setInterval(() => {
|
|
17235
|
-
const z = Dt(n).getBoundingClientRect(), { x:
|
|
17236
|
-
x:
|
|
17201
|
+
const z = Dt(n).getBoundingClientRect(), { x: $, y: at } = E.value, it = {
|
|
17202
|
+
x: $ - R.scrollLeft,
|
|
17237
17203
|
y: at - R.scrollTop
|
|
17238
17204
|
};
|
|
17239
17205
|
it.x >= 0 && it.y >= 0 && (C(R, z, it), it.x += R.scrollLeft, it.y += R.scrollTop, E.value = it);
|
|
17240
17206
|
}, 1e3 / 60));
|
|
17241
17207
|
}, W = () => {
|
|
17242
17208
|
B && (clearInterval(B), B = null);
|
|
17243
|
-
}, F = (R, z,
|
|
17244
|
-
const [it, G] = typeof
|
|
17209
|
+
}, F = (R, z, $, at) => {
|
|
17210
|
+
const [it, G] = typeof $ == "number" ? [$, $] : [$.x, $.y], { clientWidth: K, clientHeight: J } = z;
|
|
17245
17211
|
return R.x < it || R.x + at.width > K - it || R.y < G || R.y + at.height > J - G;
|
|
17246
17212
|
}, H = () => {
|
|
17247
17213
|
if (Dt(t.disabled) || !A.value) return;
|
|
17248
17214
|
const R = Dt(v);
|
|
17249
17215
|
if (!R) return;
|
|
17250
|
-
const z = Dt(n).getBoundingClientRect(), { x:
|
|
17216
|
+
const z = Dt(n).getBoundingClientRect(), { x: $, y: at } = E.value;
|
|
17251
17217
|
F({
|
|
17252
|
-
x:
|
|
17218
|
+
x: $ - R.scrollLeft,
|
|
17253
17219
|
y: at - R.scrollTop
|
|
17254
17220
|
}, R, _.margin, z) ? L() : W();
|
|
17255
17221
|
};
|
|
@@ -17257,28 +17223,28 @@ function Tk(n, t = {}) {
|
|
|
17257
17223
|
const V = (R) => {
|
|
17258
17224
|
var z;
|
|
17259
17225
|
if (!Dt(S).includes(R.button) || Dt(t.disabled) || !O(R) || Dt(c) && R.target !== Dt(n)) return;
|
|
17260
|
-
const
|
|
17261
|
-
x: R.clientX - (
|
|
17262
|
-
y: R.clientY - (
|
|
17226
|
+
const $ = Dt(v), at = $ == null || (z = $.getBoundingClientRect) === null || z === void 0 ? void 0 : z.call($), it = Dt(n).getBoundingClientRect(), G = {
|
|
17227
|
+
x: R.clientX - ($ ? it.left - at.left + (k ? 0 : $.scrollLeft) : it.left),
|
|
17228
|
+
y: R.clientY - ($ ? it.top - at.top + (k ? 0 : $.scrollTop) : it.top)
|
|
17263
17229
|
};
|
|
17264
17230
|
(h == null ? void 0 : h(G, R)) !== !1 && (A.value = G, m(R));
|
|
17265
17231
|
}, q = (R) => {
|
|
17266
17232
|
if (Dt(t.disabled) || !O(R) || !A.value) return;
|
|
17267
17233
|
const z = Dt(v);
|
|
17268
17234
|
z instanceof HTMLElement && Sk(z);
|
|
17269
|
-
const
|
|
17235
|
+
const $ = Dt(n).getBoundingClientRect();
|
|
17270
17236
|
let { x: at, y: it } = E.value;
|
|
17271
|
-
if ((g === "x" || g === "both") && (at = R.clientX - A.value.x, z && (at = Math.min(Math.max(0, at), z.scrollWidth -
|
|
17237
|
+
if ((g === "x" || g === "both") && (at = R.clientX - A.value.x, z && (at = Math.min(Math.max(0, at), z.scrollWidth - $.width))), (g === "y" || g === "both") && (it = R.clientY - A.value.y, z && (it = Math.min(Math.max(0, it), z.scrollHeight - $.height))), Dt(k) && z && (B === null && C(z, $, {
|
|
17272
17238
|
x: at,
|
|
17273
17239
|
y: it
|
|
17274
17240
|
}), at += z.scrollLeft, it += z.scrollTop), z && (D || k)) {
|
|
17275
17241
|
if (g !== "y") {
|
|
17276
17242
|
const G = at - z.scrollLeft;
|
|
17277
|
-
G < 0 ? at = z.scrollLeft : G > z.clientWidth -
|
|
17243
|
+
G < 0 ? at = z.scrollLeft : G > z.clientWidth - $.width && (at = z.clientWidth - $.width + z.scrollLeft);
|
|
17278
17244
|
}
|
|
17279
17245
|
if (g !== "x") {
|
|
17280
17246
|
const G = it - z.scrollTop;
|
|
17281
|
-
G < 0 ? it = z.scrollTop : G > z.clientHeight -
|
|
17247
|
+
G < 0 ? it = z.scrollTop : G > z.clientHeight - $.height && (it = z.clientHeight - $.height + z.scrollTop);
|
|
17282
17248
|
}
|
|
17283
17249
|
}
|
|
17284
17250
|
E.value = {
|
|
@@ -17489,7 +17455,7 @@ const vt = {
|
|
|
17489
17455
|
useTooltipAbsolutePosition: kk,
|
|
17490
17456
|
useSparklineSync: Pk
|
|
17491
17457
|
};
|
|
17492
|
-
var
|
|
17458
|
+
var $e = /* @__PURE__ */ ((n) => (n.Hidden = "hidden", n.Bottom = "bottom", n))($e || {});
|
|
17493
17459
|
/*!
|
|
17494
17460
|
* chartjs-plugin-annotation v3.1.0
|
|
17495
17461
|
* https://www.chartjs.org/chartjs-plugin-annotation/index
|
|
@@ -17565,7 +17531,7 @@ function Ei(n, t, e) {
|
|
|
17565
17531
|
y: a + s * (n.x - r) + i * (n.y - a)
|
|
17566
17532
|
};
|
|
17567
17533
|
}
|
|
17568
|
-
const Lk = (n, t) => t > n || n.length > t.length && n.slice(0, t.length) === t, wi = 1e-3, Xa = (n, t, e) => Math.min(e, Math.max(t, n)),
|
|
17534
|
+
const Lk = (n, t) => t > n || n.length > t.length && n.slice(0, t.length) === t, wi = 1e-3, Xa = (n, t, e) => Math.min(e, Math.max(t, n)), $g = (n, t) => n.value >= n.start - t && n.value <= n.end + t;
|
|
17569
17535
|
function Nk(n, t, e) {
|
|
17570
17536
|
for (const i of Object.keys(n))
|
|
17571
17537
|
n[i] = Xa(n[i], t, e);
|
|
@@ -17574,13 +17540,13 @@ function Nk(n, t, e) {
|
|
|
17574
17540
|
function Fk(n, t, e, i) {
|
|
17575
17541
|
return !n || !t || e <= 0 ? !1 : Math.pow(n.x - t.x, 2) + Math.pow(n.y - t.y, 2) <= Math.pow(e + i, 2);
|
|
17576
17542
|
}
|
|
17577
|
-
function
|
|
17543
|
+
function Yg(n, { x: t, y: e, x2: i, y2: s }, r, { borderWidth: a, hitTolerance: o }) {
|
|
17578
17544
|
const l = (a + o) / 2, c = n.x >= t - l - wi && n.x <= i + l + wi, u = n.y >= e - l - wi && n.y <= s + l + wi;
|
|
17579
17545
|
return r === "x" ? c : (r === "y" || c) && u;
|
|
17580
17546
|
}
|
|
17581
17547
|
function jg(n, { rect: t, center: e }, i, { rotation: s, borderWidth: r, hitTolerance: a }) {
|
|
17582
17548
|
const o = Ei(n, e, te(-s));
|
|
17583
|
-
return
|
|
17549
|
+
return Yg(o, t, i, { borderWidth: r, hitTolerance: a });
|
|
17584
17550
|
}
|
|
17585
17551
|
function Ri(n, t) {
|
|
17586
17552
|
const { centerX: e, centerY: i } = n.getProps(["centerX", "centerY"], t);
|
|
@@ -17681,7 +17647,7 @@ function Bk(n, t, e) {
|
|
|
17681
17647
|
if (xt(i))
|
|
17682
17648
|
return i;
|
|
17683
17649
|
}
|
|
17684
|
-
const wl = /* @__PURE__ */ new Map(), Wk = (n) => isNaN(n) || n <= 0,
|
|
17650
|
+
const wl = /* @__PURE__ */ new Map(), Wk = (n) => isNaN(n) || n <= 0, $k = (n) => n.reduce(function(t, e) {
|
|
17685
17651
|
return t += e.string, t;
|
|
17686
17652
|
}, "");
|
|
17687
17653
|
function Za(n) {
|
|
@@ -17707,7 +17673,7 @@ function Ja(n, t) {
|
|
|
17707
17673
|
width: ni(e.width, t.width),
|
|
17708
17674
|
height: ni(e.height, t.height)
|
|
17709
17675
|
};
|
|
17710
|
-
const i = Zg(t), s = t.textStrokeWidth, r = Ct(e) ? e : [e], a = r.join() +
|
|
17676
|
+
const i = Zg(t), s = t.textStrokeWidth, r = Ct(e) ? e : [e], a = r.join() + $k(i) + s + (n._measureText ? "-spriting" : "");
|
|
17711
17677
|
return wl.has(a) || wl.set(a, qk(n, r, i, s)), wl.get(a);
|
|
17712
17678
|
}
|
|
17713
17679
|
function em(n, t, e) {
|
|
@@ -17729,9 +17695,9 @@ function nm(n, t, e, i) {
|
|
|
17729
17695
|
return;
|
|
17730
17696
|
}
|
|
17731
17697
|
const r = Ct(s) ? s : [s], a = Zg(e, i), o = e.color, l = Ct(o) ? o : [o], c = Hk(t, e), u = t.y + e.textStrokeWidth / 2;
|
|
17732
|
-
n.save(), n.textBaseline = "middle", n.textAlign = e.textAlign,
|
|
17698
|
+
n.save(), n.textBaseline = "middle", n.textAlign = e.textAlign, Yk(n, e) && Gk(n, { x: c, y: u }, r, a), Kk(n, { x: c, y: u }, r, { fonts: a, colors: l }), n.restore();
|
|
17733
17699
|
}
|
|
17734
|
-
function
|
|
17700
|
+
function Yk(n, t) {
|
|
17735
17701
|
if (t.textStrokeWidth > 0)
|
|
17736
17702
|
return n.lineJoin = "round", n.miterLimit = 2, n.lineWidth = t.textStrokeWidth, n.strokeStyle = t.textStrokeColor, !0;
|
|
17737
17703
|
}
|
|
@@ -18131,7 +18097,7 @@ function xh(n, t, e, i) {
|
|
|
18131
18097
|
class ps extends de {
|
|
18132
18098
|
inRange(t, e, i, s) {
|
|
18133
18099
|
const { x: r, y: a } = Ei({ x: t, y: e }, this.getCenterPoint(s), te(-this.options.rotation));
|
|
18134
|
-
return
|
|
18100
|
+
return Yg({ x: r, y: a }, this.getProps(["x", "y", "x2", "y2"], s), i, this.options);
|
|
18135
18101
|
}
|
|
18136
18102
|
getCenterPoint(t) {
|
|
18137
18103
|
return Ri(this, t);
|
|
@@ -18607,7 +18573,7 @@ Or.defaultRoutes = {
|
|
|
18607
18573
|
};
|
|
18608
18574
|
function PO(n, { mouseX: t, mouseY: e }, i, { hitSize: s, useFinalPosition: r }) {
|
|
18609
18575
|
const a = AO(t, e, n.getProps(["x", "y", "x2", "y2"], r), i);
|
|
18610
|
-
return
|
|
18576
|
+
return $g(a, s) || ic(n, { mouseX: t, mouseY: e }, r, i);
|
|
18611
18577
|
}
|
|
18612
18578
|
function EO({ x: n, y: t, x2: e, y2: i }, { top: s, right: r, bottom: a, left: o }) {
|
|
18613
18579
|
return !(n < o && e < o || n > r && e > r || t < s && i < s || t > a && i > a);
|
|
@@ -18649,7 +18615,7 @@ function FO(n, t, e, i) {
|
|
|
18649
18615
|
pointY: g.y,
|
|
18650
18616
|
width: s,
|
|
18651
18617
|
height: r,
|
|
18652
|
-
rotation:
|
|
18618
|
+
rotation: $a(d)
|
|
18653
18619
|
};
|
|
18654
18620
|
}
|
|
18655
18621
|
function zO(n, t, e) {
|
|
@@ -18720,7 +18686,7 @@ class Cr extends de {
|
|
|
18720
18686
|
inRange(t, e, i, s) {
|
|
18721
18687
|
const r = this.options.rotation, a = (this.options.borderWidth + this.options.hitTolerance) / 2;
|
|
18722
18688
|
if (i !== "x" && i !== "y")
|
|
18723
|
-
return
|
|
18689
|
+
return $O({ x: t, y: e }, this.getProps(["width", "height", "centerX", "centerY"], s), r, a);
|
|
18724
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 = Ei({ x: t, y: e }, this.getCenterPoint(s), te(-r));
|
|
18725
18691
|
return h[i] >= d.start - a - wi && h[i] <= d.end + a + wi;
|
|
18726
18692
|
}
|
|
@@ -18773,7 +18739,7 @@ Cr.descriptors = {
|
|
|
18773
18739
|
_fallback: !0
|
|
18774
18740
|
}
|
|
18775
18741
|
};
|
|
18776
|
-
function
|
|
18742
|
+
function $O(n, t, e, i) {
|
|
18777
18743
|
const { width: s, height: r, centerX: a, centerY: o } = t, l = s / 2, c = r / 2;
|
|
18778
18744
|
if (l <= 0 || c <= 0)
|
|
18779
18745
|
return !1;
|
|
@@ -18783,7 +18749,7 @@ function YO(n, t, e, i) {
|
|
|
18783
18749
|
class eo extends de {
|
|
18784
18750
|
inRange(t, e, i, s) {
|
|
18785
18751
|
const { x: r, y: a, x2: o, y2: l, width: c } = this.getProps(["x", "y", "x2", "y2", "width"], s), u = (this.options.borderWidth + this.options.hitTolerance) / 2;
|
|
18786
|
-
return i !== "x" && i !== "y" ? Fk({ x: t, y: e }, this.getCenterPoint(s), c / 2, u) :
|
|
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);
|
|
18787
18753
|
}
|
|
18788
18754
|
getCenterPoint(t) {
|
|
18789
18755
|
return Ri(this, t);
|
|
@@ -18857,7 +18823,7 @@ class no extends de {
|
|
|
18857
18823
|
const i = am(t, e), { sides: s, rotation: r } = e, a = [], o = 2 * _t / s;
|
|
18858
18824
|
let l = r * fc;
|
|
18859
18825
|
for (let c = 0; c < s; c++, l += o) {
|
|
18860
|
-
const u =
|
|
18826
|
+
const u = YO(i, e, l);
|
|
18861
18827
|
u.initProperties = gs(t, i, e), a.push(u);
|
|
18862
18828
|
}
|
|
18863
18829
|
return i.elements = a, i;
|
|
@@ -18901,7 +18867,7 @@ no.defaultRoutes = {
|
|
|
18901
18867
|
borderColor: "color",
|
|
18902
18868
|
backgroundColor: "color"
|
|
18903
18869
|
};
|
|
18904
|
-
function
|
|
18870
|
+
function YO({ centerX: n, centerY: t }, { radius: e, borderWidth: i, hitTolerance: s }, r) {
|
|
18905
18871
|
const a = (i + s) / 2, o = Math.sin(r), l = Math.cos(r), c = { x: n + o * e, y: t - l * e };
|
|
18906
18872
|
return {
|
|
18907
18873
|
type: "point",
|
|
@@ -18941,7 +18907,7 @@ Object.keys(Qn).forEach((n) => {
|
|
|
18941
18907
|
const VO = {
|
|
18942
18908
|
update: Object.assign
|
|
18943
18909
|
}, qO = Bc.concat(Ba), Eh = (n, t) => xt(t) ? ac(n, t) : n, rc = (n) => n === "color" || n === "font";
|
|
18944
|
-
function
|
|
18910
|
+
function $c(n = "line") {
|
|
18945
18911
|
return Qn[n] ? n : (console.warn(`Unknown annotation type: '${n}', defaulting to 'line'`), "line");
|
|
18946
18912
|
}
|
|
18947
18913
|
function GO(n, t, e, i) {
|
|
@@ -18966,12 +18932,12 @@ function ZO(n, t, e, i) {
|
|
|
18966
18932
|
}
|
|
18967
18933
|
}
|
|
18968
18934
|
function dm(n, t, e, i) {
|
|
18969
|
-
const s = Qn[
|
|
18935
|
+
const s = Qn[$c(e)];
|
|
18970
18936
|
let r = n[t];
|
|
18971
18937
|
return (!r || !(r instanceof s)) && (r = n[t] = new s(), Object.assign(r, i)), r;
|
|
18972
18938
|
}
|
|
18973
18939
|
function hm(n) {
|
|
18974
|
-
const t = Qn[
|
|
18940
|
+
const t = Qn[$c(n.type)], e = {};
|
|
18975
18941
|
e.id = n.id, e.type = n.type, e.drawTime = n.drawTime, Object.assign(
|
|
18976
18942
|
e,
|
|
18977
18943
|
ac(n, t.defaults),
|
|
@@ -19108,7 +19074,7 @@ var Ih = {
|
|
|
19108
19074
|
_scriptable: (n) => !eC.includes(n) && n !== "init",
|
|
19109
19075
|
annotations: {
|
|
19110
19076
|
_allKeys: !1,
|
|
19111
|
-
_fallback: (n, t) => `elements.${Qn[
|
|
19077
|
+
_fallback: (n, t) => `elements.${Qn[$c(t.type)].id}`
|
|
19112
19078
|
},
|
|
19113
19079
|
interaction: {
|
|
19114
19080
|
_fallback: !0
|
|
@@ -19185,12 +19151,12 @@ const sC = { class: "zoom-timerange-container" }, rC = { class: "zoom-timerange-
|
|
|
19185
19151
|
])
|
|
19186
19152
|
]));
|
|
19187
19153
|
}
|
|
19188
|
-
}),
|
|
19154
|
+
}), Ye = (n, t) => {
|
|
19189
19155
|
const e = n.__vccOpts || n;
|
|
19190
19156
|
for (const [i, s] of t)
|
|
19191
19157
|
e[i] = s;
|
|
19192
19158
|
return e;
|
|
19193
|
-
}, fm = /* @__PURE__ */
|
|
19159
|
+
}, fm = /* @__PURE__ */ Ye(lC, [["__scopeId", "data-v-4fa681cf"]]), cC = { class: "zoom-actions-container" }, uC = { class: "zoom-actions-heading" }, dC = { class: "zoom-action-select" }, hC = ["data-testid"], fC = ["aria-disabled", "href"], gC = ["onClick"], mC = /* @__PURE__ */ he({
|
|
19194
19160
|
__name: "ZoomActions",
|
|
19195
19161
|
props: {
|
|
19196
19162
|
zoomActionItems: {},
|
|
@@ -19218,7 +19184,7 @@ const sC = { class: "zoom-timerange-container" }, rC = { class: "zoom-timerange-
|
|
|
19218
19184
|
]),
|
|
19219
19185
|
a[2] || (a[2] = ut("div", { class: "zoom-actions-heading-divider" }, null, -1)),
|
|
19220
19186
|
ut("div", dC, [
|
|
19221
|
-
(Z(!0), ct(
|
|
19187
|
+
(Z(!0), ct(Yn, null, xi(n.zoomActionItems, (o) => (Z(), ct("div", {
|
|
19222
19188
|
key: o.key,
|
|
19223
19189
|
class: Fe(["zoom-action-item", { disabled: o.disabled }]),
|
|
19224
19190
|
"data-testid": `zoom-action-item-${o.key}`
|
|
@@ -19237,7 +19203,7 @@ const sC = { class: "zoom-timerange-container" }, rC = { class: "zoom-timerange-
|
|
|
19237
19203
|
])
|
|
19238
19204
|
]));
|
|
19239
19205
|
}
|
|
19240
|
-
}), pC = /* @__PURE__ */
|
|
19206
|
+
}), pC = /* @__PURE__ */ Ye(mC, [["__scopeId", "data-v-79ba72f8"]]), yC = { key: 2 }, bC = { class: "tooltip-title" }, _C = { class: "title" }, vC = {
|
|
19241
19207
|
key: 0,
|
|
19242
19208
|
class: "subtitle"
|
|
19243
19209
|
}, xC = { class: "context" }, wC = { class: "metric" }, SC = { class: "tooltip" }, TC = { key: 0 }, MC = { class: "display-value" }, DC = /* @__PURE__ */ he({
|
|
@@ -19310,7 +19276,7 @@ const sC = { class: "zoom-timerange-container" }, rC = { class: "zoom-timerange-
|
|
|
19310
19276
|
])) : Ft("", !0)
|
|
19311
19277
|
]),
|
|
19312
19278
|
ut("ul", SC, [
|
|
19313
|
-
(Z(!0), ct(
|
|
19279
|
+
(Z(!0), ct(Yn, null, xi(n.state.tooltipSeries, ({ backgroundColor: w, borderColor: S, label: D, value: k, isSegmentEmpty: E }, A) => (Z(), ct(Yn, {
|
|
19314
19280
|
key: D + A
|
|
19315
19281
|
}, [
|
|
19316
19282
|
n.state.tooltipSeries.length ? (Z(), ct("li", TC, [
|
|
@@ -19329,7 +19295,7 @@ const sC = { class: "zoom-timerange-container" }, rC = { class: "zoom-timerange-
|
|
|
19329
19295
|
], 6)) : Ft("", !0);
|
|
19330
19296
|
};
|
|
19331
19297
|
}
|
|
19332
|
-
}), io = /* @__PURE__ */
|
|
19298
|
+
}), io = /* @__PURE__ */ Ye(DC, [["__scopeId", "data-v-34c60646"]]), kC = {
|
|
19333
19299
|
key: 0,
|
|
19334
19300
|
class: "legend-container",
|
|
19335
19301
|
"data-testid": "legend"
|
|
@@ -19354,7 +19320,7 @@ const sC = { class: "zoom-timerange-container" }, rC = { class: "zoom-timerange-
|
|
|
19354
19320
|
}
|
|
19355
19321
|
},
|
|
19356
19322
|
setup(n) {
|
|
19357
|
-
const t = n, { i18n: e } = vt.useI18n(), i = lr("showLegendValues", !1), s = lr("legendPosition", qt(
|
|
19323
|
+
const t = n, { i18n: e } = vt.useI18n(), i = lr("showLegendValues", !1), s = lr("legendPosition", qt($e.Bottom)), r = (o = 0, l) => {
|
|
19358
19324
|
if (t.chartInstance === null)
|
|
19359
19325
|
return;
|
|
19360
19326
|
const c = t.chartInstance instanceof Ue ? t.chartInstance : t.chartInstance.chart;
|
|
@@ -19367,8 +19333,8 @@ const sC = { class: "zoom-timerange-container" }, rC = { class: "zoom-timerange-
|
|
|
19367
19333
|
};
|
|
19368
19334
|
return (o, l) => {
|
|
19369
19335
|
const c = Re("KTooltip");
|
|
19370
|
-
return Q(s) !== Q(
|
|
19371
|
-
(Z(!0), ct(
|
|
19336
|
+
return Q(s) !== Q($e).Hidden ? (Z(), ct("ul", kC, [
|
|
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", {
|
|
19372
19338
|
key: h,
|
|
19373
19339
|
onClick: (w) => r(f, g)
|
|
19374
19340
|
}, [
|
|
@@ -19400,7 +19366,7 @@ const sC = { class: "zoom-timerange-container" }, rC = { class: "zoom-timerange-
|
|
|
19400
19366
|
])) : Ft("", !0);
|
|
19401
19367
|
};
|
|
19402
19368
|
}
|
|
19403
|
-
}),
|
|
19369
|
+
}), Yc = /* @__PURE__ */ Ye(RC, [["__scopeId", "data-v-e6664c85"]]), pe = [];
|
|
19404
19370
|
for (let n = 0; n < 256; ++n)
|
|
19405
19371
|
pe.push((n + 256).toString(16).slice(1));
|
|
19406
19372
|
function IC(n, t = 0) {
|
|
@@ -19462,7 +19428,7 @@ class gm {
|
|
|
19462
19428
|
this._pause = !1, t && (this._suppressNextClick = !0);
|
|
19463
19429
|
}
|
|
19464
19430
|
}
|
|
19465
|
-
const zC = ["id"], UC = ["id"], HC = { class: "axis-tooltip-content" }, BC = "100%", WC = "100%",
|
|
19431
|
+
const zC = ["id"], UC = ["id"], HC = { class: "axis-tooltip-content" }, BC = "100%", WC = "100%", $C = 20, YC = 20, Nh = 6, jC = 0, VC = 10, qC = 10, GC = 1, KC = /* @__PURE__ */ he({
|
|
19466
19432
|
__name: "StackedBarChart",
|
|
19467
19433
|
props: {
|
|
19468
19434
|
chartData: {},
|
|
@@ -19513,7 +19479,7 @@ const zC = ["id"], UC = ["id"], HC = { class: "axis-tooltip-content" }, BC = "10
|
|
|
19513
19479
|
[`${K}-value`]: mt,
|
|
19514
19480
|
[`${K}-percent`]: Tt
|
|
19515
19481
|
};
|
|
19516
|
-
}, d = Ji("canvas"), h = Ji("axis"), f = oc(), g = oc(), y = qt([]), v = lr("legendPosition",
|
|
19482
|
+
}, d = Ji("canvas"), h = Ji("axis"), f = oc(), g = oc(), y = qt([]), v = lr("legendPosition", $e.Bottom), w = cr({
|
|
19517
19483
|
show: !1,
|
|
19518
19484
|
top: "0px",
|
|
19519
19485
|
left: "0px",
|
|
@@ -19584,11 +19550,11 @@ const zC = ["id"], UC = ["id"], HC = { class: "axis-tooltip-content" }, BC = "10
|
|
|
19584
19550
|
}, 100)), H = N(() => {
|
|
19585
19551
|
var K, J;
|
|
19586
19552
|
const G = (J = (K = t.chartData) == null ? void 0 : K.labels) == null ? void 0 : J.length;
|
|
19587
|
-
return d.value && G && !D.value ? `${Math.max(G * (
|
|
19553
|
+
return d.value && G && !D.value ? `${Math.max(G * ($C + Nh), L.value)}px` : BC;
|
|
19588
19554
|
}), V = N(() => {
|
|
19589
19555
|
var K, J;
|
|
19590
19556
|
const G = (J = (K = t.chartData) == null ? void 0 : K.labels) == null ? void 0 : J.length;
|
|
19591
|
-
return d.value && G && D.value ? `${Math.max(G * (
|
|
19557
|
+
return d.value && G && D.value ? `${Math.max(G * (YC + Nh), W.value)}px` : WC;
|
|
19592
19558
|
});
|
|
19593
19559
|
vt.useReportChartDataForSynthetics(Mt(t, "chartData"), Mt(t, "syntheticsDataKey")), si(() => {
|
|
19594
19560
|
t.annotations && Ue.register(Ih), o.value && (L.value = o.value.offsetWidth, W.value = o.value.offsetHeight, F.observe(o.value));
|
|
@@ -19622,11 +19588,11 @@ const zC = ["id"], UC = ["id"], HC = { class: "axis-tooltip-content" }, BC = "10
|
|
|
19622
19588
|
C,
|
|
19623
19589
|
q
|
|
19624
19590
|
);
|
|
19625
|
-
|
|
19591
|
+
$h(() => {
|
|
19626
19592
|
Ue.unregister(Ih);
|
|
19627
19593
|
});
|
|
19628
19594
|
const R = {
|
|
19629
|
-
[
|
|
19595
|
+
[$e.Bottom]: "column"
|
|
19630
19596
|
}, z = N(() => {
|
|
19631
19597
|
if (h.value && j.value) {
|
|
19632
19598
|
const G = window.devicePixelRatio, K = j.value, J = K.scales.y.width * G + GC, nt = (K.scales.y.height + K.scales.y.top + K.scales.x.height) * G, et = h.value.getContext("2d");
|
|
@@ -19638,7 +19604,7 @@ const zC = ["id"], UC = ["id"], HC = { class: "axis-tooltip-content" }, BC = "10
|
|
|
19638
19604
|
};
|
|
19639
19605
|
}
|
|
19640
19606
|
return null;
|
|
19641
|
-
}),
|
|
19607
|
+
}), $ = (G) => {
|
|
19642
19608
|
const K = G.target;
|
|
19643
19609
|
if (z.value && j.value && !D.value) {
|
|
19644
19610
|
const J = z.value.scale, nt = z.value.targetCtx, et = z.value.width, tt = z.value.height, mt = j.value, Tt = mt.canvas;
|
|
@@ -19674,7 +19640,7 @@ const zC = ["id"], UC = ["id"], HC = { class: "axis-tooltip-content" }, BC = "10
|
|
|
19674
19640
|
ref: "chartContainer",
|
|
19675
19641
|
class: "chart-container",
|
|
19676
19642
|
onClick: K[0] || (K[0] = (J) => it()),
|
|
19677
|
-
onScroll:
|
|
19643
|
+
onScroll: $
|
|
19678
19644
|
}, [
|
|
19679
19645
|
ut("div", {
|
|
19680
19646
|
class: "chart-body",
|
|
@@ -19705,14 +19671,14 @@ const zC = ["id"], UC = ["id"], HC = { class: "axis-tooltip-content" }, BC = "10
|
|
|
19705
19671
|
onDimensions: at
|
|
19706
19672
|
}, null, 8, ["absolute-left", "absolute-top", "chart-parent-ref", "state", "tooltip-title"])
|
|
19707
19673
|
])),
|
|
19708
|
-
Zt(
|
|
19674
|
+
Zt(Yc, {
|
|
19709
19675
|
id: Q(f),
|
|
19710
19676
|
"chart-instance": Q(j),
|
|
19711
19677
|
items: y.value
|
|
19712
19678
|
}, null, 8, ["id", "chart-instance", "items"])
|
|
19713
19679
|
], 2));
|
|
19714
19680
|
}
|
|
19715
|
-
}), XC = /* @__PURE__ */
|
|
19681
|
+
}), XC = /* @__PURE__ */ Ye(KC, [["__scopeId", "data-v-60e5a1a7"]]);
|
|
19716
19682
|
/*!
|
|
19717
19683
|
* chartjs-adapter-date-fns v3.0.0
|
|
19718
19684
|
* https://www.chartjs.org
|
|
@@ -19789,7 +19755,7 @@ Tf._date.override({
|
|
|
19789
19755
|
case "quarter":
|
|
19790
19756
|
return Hv(n, t);
|
|
19791
19757
|
case "year":
|
|
19792
|
-
return
|
|
19758
|
+
return $v(n, t);
|
|
19793
19759
|
default:
|
|
19794
19760
|
return 0;
|
|
19795
19761
|
}
|
|
@@ -19811,7 +19777,7 @@ Tf._date.override({
|
|
|
19811
19777
|
case "month":
|
|
19812
19778
|
return jv(n);
|
|
19813
19779
|
case "quarter":
|
|
19814
|
-
return
|
|
19780
|
+
return Yv(n);
|
|
19815
19781
|
case "year":
|
|
19816
19782
|
return Qf(n);
|
|
19817
19783
|
default:
|
|
@@ -19958,7 +19924,7 @@ const sA = he({
|
|
|
19958
19924
|
const w = Ki(h.labels), S = Ki(g.labels), D = Ki(h.datasets), k = Ki(g.datasets);
|
|
19959
19925
|
w !== S && (pm(y.config.data, w), v = !0), D && D !== k && (ym(y.config.data, D, n.datasetIdKey), v = !0);
|
|
19960
19926
|
}
|
|
19961
|
-
v &&
|
|
19927
|
+
v && Yh(() => {
|
|
19962
19928
|
l(y);
|
|
19963
19929
|
});
|
|
19964
19930
|
}, {
|
|
@@ -20007,7 +19973,7 @@ const bm = /* @__PURE__ */ jc("bar", tr), _m = /* @__PURE__ */ jc("doughnut", An
|
|
|
20007
19973
|
tooltipTitle: {},
|
|
20008
19974
|
metricUnit: { default: "" },
|
|
20009
19975
|
metricName: { default: "" },
|
|
20010
|
-
legendPosition: { default:
|
|
19976
|
+
legendPosition: { default: $e.Bottom },
|
|
20011
19977
|
legendValues: { default: void 0 },
|
|
20012
19978
|
syntheticsDataKey: { default: "" },
|
|
20013
19979
|
datasetColors: { default: () => ei },
|
|
@@ -20066,8 +20032,8 @@ const bm = /* @__PURE__ */ jc("bar", tr), _m = /* @__PURE__ */ jc("doughnut", An
|
|
|
20066
20032
|
tooltipState: l,
|
|
20067
20033
|
legendID: s
|
|
20068
20034
|
}), k = qt(), E = (O) => ({
|
|
20069
|
-
[
|
|
20070
|
-
[
|
|
20035
|
+
[$e.Bottom]: "column",
|
|
20036
|
+
[$e.Hidden]: "hidden"
|
|
20071
20037
|
})[O], A = ({ width: O, height: m }) => {
|
|
20072
20038
|
l.width = O, l.height = m;
|
|
20073
20039
|
};
|
|
@@ -20100,7 +20066,7 @@ const bm = /* @__PURE__ */ jc("bar", tr), _m = /* @__PURE__ */ jc("doughnut", An
|
|
|
20100
20066
|
}, null, 8, ["absolute-left", "absolute-top", "state", "tooltip-title", "unit"])
|
|
20101
20067
|
]))
|
|
20102
20068
|
]),
|
|
20103
|
-
Zt(
|
|
20069
|
+
Zt(Yc, {
|
|
20104
20070
|
id: Q(s),
|
|
20105
20071
|
"chart-instance": k.value,
|
|
20106
20072
|
items: a.value,
|
|
@@ -20108,7 +20074,7 @@ const bm = /* @__PURE__ */ jc("bar", tr), _m = /* @__PURE__ */ jc("doughnut", An
|
|
|
20108
20074
|
}, null, 8, ["id", "chart-instance", "items", "position"])
|
|
20109
20075
|
], 2));
|
|
20110
20076
|
}
|
|
20111
|
-
}), uA = /* @__PURE__ */
|
|
20077
|
+
}), uA = /* @__PURE__ */ Ye(cA, [["__scopeId", "data-v-48b16272"]]), Sl = (n, t, e, i, s = "#0275d8") => {
|
|
20112
20078
|
n.save(), n.beginPath(), n.moveTo(t, e), n.lineTo(t, i), n.lineWidth = 1, n.strokeStyle = s, n.stroke(), n.restore();
|
|
20113
20079
|
}, Me = {}, dA = () => {
|
|
20114
20080
|
Me.x = void 0, Me.chart = void 0, Me.strategy = void 0, Me.group = void 0;
|
|
@@ -20411,7 +20377,7 @@ const wA = /* @__PURE__ */ he({
|
|
|
20411
20377
|
},
|
|
20412
20378
|
emits: ["zoom-time-range", "select-chart-range"],
|
|
20413
20379
|
setup(n, { emit: t }) {
|
|
20414
|
-
const e = n, i = t, { i18n: s } = vt.useI18n(), r = new xm(), a = new gm(), o = new mA(), l = new xA(s), { translateUnit: c } = vt.useTranslatedUnits(), u = qt(), d = crypto.randomUUID(), h = crypto.randomUUID(), f = qt([]), g = lr("legendPosition",
|
|
20380
|
+
const e = n, i = t, { i18n: s } = vt.useI18n(), r = new xm(), a = new gm(), o = new mA(), l = new xA(s), { translateUnit: c } = vt.useTranslatedUnits(), u = qt(), d = crypto.randomUUID(), h = crypto.randomUUID(), f = qt([]), g = lr("legendPosition", $e.Bottom), y = Ji("chartParent"), v = qt(void 0), w = qt(!1), S = cr({
|
|
20415
20381
|
showTooltip: !1,
|
|
20416
20382
|
tooltipContext: 0,
|
|
20417
20383
|
// Set in lineChartTooltipBehavior
|
|
@@ -20456,8 +20422,8 @@ const wA = /* @__PURE__ */ he({
|
|
|
20456
20422
|
});
|
|
20457
20423
|
vt.useReportChartDataForSynthetics(Mt(e, "chartData"), Mt(e, "syntheticsDataKey"));
|
|
20458
20424
|
const M = (j) => ({
|
|
20459
|
-
[
|
|
20460
|
-
[
|
|
20425
|
+
[$e.Bottom]: "column",
|
|
20426
|
+
[$e.Hidden]: "hidden"
|
|
20461
20427
|
})[j], C = ({ width: j, height: R }) => {
|
|
20462
20428
|
S.width = j, S.height = R;
|
|
20463
20429
|
}, B = (j = !0) => {
|
|
@@ -20553,7 +20519,7 @@ const wA = /* @__PURE__ */ he({
|
|
|
20553
20519
|
onDimensions: C,
|
|
20554
20520
|
onOnAction: R[1] || (R[1] = () => B(!1))
|
|
20555
20521
|
}, null, 8, ["absolute-left", "absolute-top", "granularity", "state", "tooltip-title", "zoom-action-items", "zoom-time-range"]),
|
|
20556
|
-
Zt(
|
|
20522
|
+
Zt(Yc, {
|
|
20557
20523
|
id: Q(d),
|
|
20558
20524
|
"chart-instance": u.value,
|
|
20559
20525
|
"data-testid": "legend",
|
|
@@ -20561,7 +20527,7 @@ const wA = /* @__PURE__ */ he({
|
|
|
20561
20527
|
}, null, 8, ["id", "chart-instance", "items"])
|
|
20562
20528
|
], 2));
|
|
20563
20529
|
}
|
|
20564
|
-
}), SA = /* @__PURE__ */
|
|
20530
|
+
}), SA = /* @__PURE__ */ Ye(wA, [["__scopeId", "data-v-ac6e8bbc"]]), TA = {
|
|
20565
20531
|
key: 0,
|
|
20566
20532
|
class: "chart-truncation-warning",
|
|
20567
20533
|
"data-testid": "truncation-warning"
|
|
@@ -20576,7 +20542,7 @@ const wA = /* @__PURE__ */ he({
|
|
|
20576
20542
|
tooltipTitle: { default: "" },
|
|
20577
20543
|
emptyStateTitle: { default: "" },
|
|
20578
20544
|
emptyStateDescription: { default: "" },
|
|
20579
|
-
legendPosition: { default:
|
|
20545
|
+
legendPosition: { default: $e.Bottom },
|
|
20580
20546
|
syntheticsDataKey: { default: "" },
|
|
20581
20547
|
showLegendValues: { type: Boolean, default: !1 },
|
|
20582
20548
|
showAnnotations: { type: Boolean, default: !0 },
|
|
@@ -20612,7 +20578,7 @@ const wA = /* @__PURE__ */ he({
|
|
|
20612
20578
|
}), c = N(() => {
|
|
20613
20579
|
var L;
|
|
20614
20580
|
return (L = i.chartData.meta) != null && L.metric_units ? Object.keys(i.chartData.meta.metric_units)[0] ?? "" : "";
|
|
20615
|
-
}), u = N(() => i.showLegendValues && i.legendPosition !==
|
|
20581
|
+
}), u = N(() => i.showLegendValues && i.legendPosition !== $e.Hidden), { legendValues: d } = vt.useChartLegendValues(r, i.chartOptions.type, l), h = N(() => {
|
|
20616
20582
|
var L, W, F;
|
|
20617
20583
|
return ((F = (W = (L = i.chartData) == null ? void 0 : L.meta) == null ? void 0 : W.limit) == null ? void 0 : F.toString()) || null;
|
|
20618
20584
|
}), f = N(() => {
|
|
@@ -20775,7 +20741,7 @@ const wA = /* @__PURE__ */ he({
|
|
|
20775
20741
|
], 2);
|
|
20776
20742
|
};
|
|
20777
20743
|
}
|
|
20778
|
-
}), rE = /* @__PURE__ */
|
|
20744
|
+
}), rE = /* @__PURE__ */ Ye(kA, [["__scopeId", "data-v-78174cba"]]), OA = {
|
|
20779
20745
|
class: "chart-parent",
|
|
20780
20746
|
"data-testid": "gauge-chart-parent"
|
|
20781
20747
|
}, CA = { class: "chart-totals-flex" }, AA = {
|
|
@@ -20874,7 +20840,7 @@ const wA = /* @__PURE__ */ he({
|
|
|
20874
20840
|
], 4)
|
|
20875
20841
|
]));
|
|
20876
20842
|
}
|
|
20877
|
-
}), EA = /* @__PURE__ */
|
|
20843
|
+
}), EA = /* @__PURE__ */ Ye(PA, [["__scopeId", "data-v-c461b83f"]]), RA = {
|
|
20878
20844
|
key: 1,
|
|
20879
20845
|
class: "single-value-wrapper"
|
|
20880
20846
|
}, IA = { class: "single-value-metric" }, LA = { class: "name-unit-alignment" }, NA = {
|
|
@@ -20922,7 +20888,7 @@ const wA = /* @__PURE__ */ he({
|
|
|
20922
20888
|
}
|
|
20923
20889
|
},
|
|
20924
20890
|
setup(n) {
|
|
20925
|
-
const { i18n: t } = vt.useI18n(), { formatBytes: e, formatCost: i } = Pi({ i18n: t }), s = n, r = N(() => `align-${s.leftAlign ? "left" : s.alignX}`), a = N(() =>
|
|
20891
|
+
const { i18n: t } = vt.useI18n(), { formatBytes: e, formatCost: i } = Pi({ i18n: t }), s = n, r = N(() => `align-${s.leftAlign ? "left" : s.alignX}`), a = N(() => Ym(s.data, s.showTrend, { topLevelKey: Tl, secondLevelKey: Ml })), o = N(() => {
|
|
20926
20892
|
var _, M, C;
|
|
20927
20893
|
return (C = (M = (_ = a.value) == null ? void 0 : _.previous) == null ? void 0 : M[Tl]) == null ? void 0 : C[Ml];
|
|
20928
20894
|
}), l = N(() => {
|
|
@@ -21040,7 +21006,7 @@ const wA = /* @__PURE__ */ he({
|
|
|
21040
21006
|
], 2);
|
|
21041
21007
|
};
|
|
21042
21008
|
}
|
|
21043
|
-
}), WA = /* @__PURE__ */
|
|
21009
|
+
}), WA = /* @__PURE__ */ Ye(BA, [["__scopeId", "data-v-0203459f"]]), $A = { class: "simple-chart-shell" }, YA = {
|
|
21044
21010
|
key: 1,
|
|
21045
21011
|
class: "analytics-chart-parent"
|
|
21046
21012
|
}, jA = /* @__PURE__ */ he({
|
|
@@ -21101,8 +21067,8 @@ const wA = /* @__PURE__ */ he({
|
|
|
21101
21067
|
});
|
|
21102
21068
|
return (c, u) => {
|
|
21103
21069
|
const d = Re("KEmptyState");
|
|
21104
|
-
return Z(), ct("div",
|
|
21105
|
-
l.value ? (Z(), ct("div",
|
|
21070
|
+
return Z(), ct("div", $A, [
|
|
21071
|
+
l.value ? (Z(), ct("div", YA, [
|
|
21106
21072
|
r.value ? (Z(), Lt(EA, {
|
|
21107
21073
|
key: 0,
|
|
21108
21074
|
"chart-data": i.value,
|
|
@@ -21136,7 +21102,7 @@ const wA = /* @__PURE__ */ he({
|
|
|
21136
21102
|
]);
|
|
21137
21103
|
};
|
|
21138
21104
|
}
|
|
21139
|
-
}), aE = /* @__PURE__ */
|
|
21105
|
+
}), aE = /* @__PURE__ */ Ye(jA, [["__scopeId", "data-v-23ca8c84"]]), VA = {
|
|
21140
21106
|
class: "top-n-card-title",
|
|
21141
21107
|
"data-testid": "top-n-card-title"
|
|
21142
21108
|
}, qA = {
|
|
@@ -21202,14 +21168,14 @@ const wA = /* @__PURE__ */ he({
|
|
|
21202
21168
|
const H = D(F), V = u.value && u.value[H];
|
|
21203
21169
|
return V ? !!V.deleted : !1;
|
|
21204
21170
|
}, O = (F, H) => {
|
|
21205
|
-
var z,
|
|
21171
|
+
var z, $;
|
|
21206
21172
|
const V = F.event[H];
|
|
21207
21173
|
if (V == null)
|
|
21208
21174
|
return "–";
|
|
21209
21175
|
const q = typeof V == "number" ? V : Number(V);
|
|
21210
21176
|
if (Number.isNaN(q))
|
|
21211
21177
|
return "–";
|
|
21212
|
-
const j = ((
|
|
21178
|
+
const j = (($ = (z = t.data.meta) == null ? void 0 : z.metric_units) == null ? void 0 : $[H]) || "count", R = ["count", "count/minute", "token count"].includes(j);
|
|
21213
21179
|
return i(q, j, {
|
|
21214
21180
|
approximate: R,
|
|
21215
21181
|
isBytes1024: !0,
|
|
@@ -21226,8 +21192,8 @@ const wA = /* @__PURE__ */ he({
|
|
|
21226
21192
|
dimensions: V,
|
|
21227
21193
|
original: H
|
|
21228
21194
|
};
|
|
21229
|
-
return h.value && (R.value = m(H)), d.value.forEach((z,
|
|
21230
|
-
|
|
21195
|
+
return h.value && (R.value = m(H)), d.value.forEach((z, $) => {
|
|
21196
|
+
$ !== 0 && (R[z] = O(H, z));
|
|
21231
21197
|
}), R;
|
|
21232
21198
|
}) : [];
|
|
21233
21199
|
}), _ = N(() => {
|
|
@@ -21292,7 +21258,7 @@ const wA = /* @__PURE__ */ he({
|
|
|
21292
21258
|
}, [
|
|
21293
21259
|
ut("thead", KA, [
|
|
21294
21260
|
ut("tr", XA, [
|
|
21295
|
-
(Z(!0), ct(
|
|
21261
|
+
(Z(!0), ct(Yn, null, xi(g.value, (R) => (Z(), ct("th", {
|
|
21296
21262
|
key: R.key,
|
|
21297
21263
|
class: Fe(["top-n-table-header-cell", {
|
|
21298
21264
|
"top-n-table-header-cell-metric": R.type === "metric",
|
|
@@ -21305,7 +21271,7 @@ const wA = /* @__PURE__ */ he({
|
|
|
21305
21271
|
])
|
|
21306
21272
|
]),
|
|
21307
21273
|
ut("tbody", null, [
|
|
21308
|
-
(Z(!0), ct(
|
|
21274
|
+
(Z(!0), ct(Yn, null, xi(b.value, (R) => (Z(), ct("tr", {
|
|
21309
21275
|
key: R.rowKey,
|
|
21310
21276
|
class: "top-n-table-row"
|
|
21311
21277
|
}, [
|
|
@@ -21329,7 +21295,7 @@ const wA = /* @__PURE__ */ he({
|
|
|
21329
21295
|
], !0)
|
|
21330
21296
|
], 8, QA)
|
|
21331
21297
|
], 2),
|
|
21332
|
-
(Z(!0), ct(
|
|
21298
|
+
(Z(!0), ct(Yn, null, xi(v.value, (z) => (Z(), ct("td", {
|
|
21333
21299
|
key: z.key,
|
|
21334
21300
|
class: Fe(["top-n-table-cell top-n-table-cell--dimension", { "top-n-table-cell-dimension-compact": !w(z) }])
|
|
21335
21301
|
}, [
|
|
@@ -21339,7 +21305,7 @@ const wA = /* @__PURE__ */ he({
|
|
|
21339
21305
|
Ie(dt(C(R, z.key)), 1)
|
|
21340
21306
|
], !0)
|
|
21341
21307
|
], 2))), 128)),
|
|
21342
|
-
(Z(!0), ct(
|
|
21308
|
+
(Z(!0), ct(Yn, null, xi(y.value, (z) => (Z(), ct("td", {
|
|
21343
21309
|
key: z.key,
|
|
21344
21310
|
class: "top-n-table-cell top-n-table-cell-metric"
|
|
21345
21311
|
}, [
|
|
@@ -21384,7 +21350,7 @@ const wA = /* @__PURE__ */ he({
|
|
|
21384
21350
|
]), 1032, ["title-tag"]);
|
|
21385
21351
|
};
|
|
21386
21352
|
}
|
|
21387
|
-
}), oE = /* @__PURE__ */
|
|
21353
|
+
}), oE = /* @__PURE__ */ Ye(nP, [["__scopeId", "data-v-bd2cedcf"]]);
|
|
21388
21354
|
var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
21389
21355
|
function wm(n) {
|
|
21390
21356
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
@@ -21392,7 +21358,7 @@ function wm(n) {
|
|
|
21392
21358
|
var Wa = { exports: {} };
|
|
21393
21359
|
Wa.exports;
|
|
21394
21360
|
(function(n, t) {
|
|
21395
|
-
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]", E = "[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*$/, R = /^\./, z = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,
|
|
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]", E = "[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*$/, R = /^\./, z = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, $ = /[\\^$.*+?()[\]{}|]/g, at = /\\(\\)?/g, it = /^\[object .+?Constructor\]$/, G = /^(?:0|[1-9]\d*)$/, K = {};
|
|
21396
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[E] = K[O] = !1;
|
|
21397
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() {
|
|
21398
21364
|
try {
|
|
@@ -21450,12 +21416,12 @@ Wa.exports;
|
|
|
21450
21416
|
U[++T] = X;
|
|
21451
21417
|
}), U;
|
|
21452
21418
|
}
|
|
21453
|
-
var
|
|
21419
|
+
var Yt = Array.prototype, se = Function.prototype, me = Object.prototype, on = et["__core-js_shared__"], ai = function() {
|
|
21454
21420
|
var p = /[^.]+$/.exec(on && on.keys && on.keys.IE_PROTO || "");
|
|
21455
21421
|
return p ? "Symbol(src)_1." + p : "";
|
|
21456
21422
|
}(), tn = se.toString, jt = me.hasOwnProperty, Oe = me.toString, oi = RegExp(
|
|
21457
|
-
"^" + tn.call(jt).replace(
|
|
21458
|
-
), Ar = et.Symbol, Pr = et.Uint8Array, ys = me.propertyIsEnumerable, li =
|
|
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), Er = xn(pn), Rr = xn(_s), yn = xn(vs), Ii = Ar ? Ar.prototype : void 0, xs = Ii ? Ii.valueOf : void 0, Ir = Ii ? Ii.toString : void 0;
|
|
21459
21425
|
function bn(p) {
|
|
21460
21426
|
var T = -1, U = p ? p.length : 0;
|
|
21461
21427
|
for (this.clear(); ++T < U; ) {
|
|
@@ -21677,8 +21643,8 @@ Wa.exports;
|
|
|
21677
21643
|
}
|
|
21678
21644
|
function Ui(p, T) {
|
|
21679
21645
|
return Bi(p) && Ur(T) ? Ds(vn(p), T) : function(U) {
|
|
21680
|
-
var X =
|
|
21681
|
-
return X === void 0 && X === T ?
|
|
21646
|
+
var X = $r(U, p);
|
|
21647
|
+
return X === void 0 && X === T ? Yr(U, p) : Ss(T, X, void 0, r | a);
|
|
21682
21648
|
};
|
|
21683
21649
|
}
|
|
21684
21650
|
function Ln(p) {
|
|
@@ -21923,13 +21889,13 @@ Wa.exports;
|
|
|
21923
21889
|
return p === T || p !== p && T !== T;
|
|
21924
21890
|
}
|
|
21925
21891
|
function Br(p) {
|
|
21926
|
-
return
|
|
21892
|
+
return Y(p) && jt.call(p, "callee") && (!ys.call(p, "callee") || Oe.call(p) == l);
|
|
21927
21893
|
}
|
|
21928
21894
|
var x = Array.isArray;
|
|
21929
21895
|
function I(p) {
|
|
21930
21896
|
return p != null && Xt(p.length) && !st(p);
|
|
21931
21897
|
}
|
|
21932
|
-
function
|
|
21898
|
+
function Y(p) {
|
|
21933
21899
|
return Ce(p) && I(p);
|
|
21934
21900
|
}
|
|
21935
21901
|
function st(p) {
|
|
@@ -21953,11 +21919,11 @@ Wa.exports;
|
|
|
21953
21919
|
function Nn(p) {
|
|
21954
21920
|
return p == null ? "" : Nr(p);
|
|
21955
21921
|
}
|
|
21956
|
-
function
|
|
21922
|
+
function $r(p, T, U) {
|
|
21957
21923
|
var X = p == null ? void 0 : zi(p, T);
|
|
21958
21924
|
return X === void 0 ? U : X;
|
|
21959
21925
|
}
|
|
21960
|
-
function
|
|
21926
|
+
function Yr(p, T) {
|
|
21961
21927
|
return p != null && Uo(p, T, Oo);
|
|
21962
21928
|
}
|
|
21963
21929
|
function hi(p) {
|
|
@@ -22263,21 +22229,21 @@ License: MIT
|
|
|
22263
22229
|
}, this);
|
|
22264
22230
|
}
|
|
22265
22231
|
function y(m) {
|
|
22266
|
-
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, R = !1, z = [],
|
|
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, R = !1, z = [], $ = { data: [], errors: [], meta: {} };
|
|
22267
22233
|
function at(J) {
|
|
22268
22234
|
return m.skipEmptyLines === "greedy" ? J.join("").trim() === "" : J.length === 1 && J[0].length === 0;
|
|
22269
22235
|
}
|
|
22270
22236
|
function it() {
|
|
22271
|
-
if (
|
|
22237
|
+
if ($ && M && (K("Delimiter", "UndetectableDelimiter", "Unable to auto-detect delimiting character; defaulted to '" + c.DefaultDelimiter + "'"), M = !1), m.skipEmptyLines && ($.data = $.data.filter(function(tt) {
|
|
22272
22238
|
return !at(tt);
|
|
22273
22239
|
})), G()) {
|
|
22274
22240
|
let tt = function(mt, Tt) {
|
|
22275
22241
|
O(m.transformHeader) && (mt = m.transformHeader(mt, Tt)), z.push(mt);
|
|
22276
22242
|
};
|
|
22277
|
-
if (
|
|
22278
|
-
for (var J = 0; G() && J <
|
|
22279
|
-
|
|
22280
|
-
} else
|
|
22243
|
+
if ($) if (Array.isArray($.data[0])) {
|
|
22244
|
+
for (var J = 0; G() && J < $.data.length; J++) $.data[J].forEach(tt);
|
|
22245
|
+
$.data.splice(0, 1);
|
|
22246
|
+
} else $.data.forEach(tt);
|
|
22281
22247
|
}
|
|
22282
22248
|
function nt(tt, mt) {
|
|
22283
22249
|
for (var Tt = m.header ? {} : [], lt = 0; lt < tt.length; lt++) {
|
|
@@ -22290,27 +22256,27 @@ License: MIT
|
|
|
22290
22256
|
return m.header && (lt > z.length ? K("FieldMismatch", "TooManyFields", "Too many fields: expected " + z.length + " fields but parsed " + lt, q + mt) : lt < z.length && K("FieldMismatch", "TooFewFields", "Too few fields: expected " + z.length + " fields but parsed " + lt, q + mt)), Tt;
|
|
22291
22257
|
}
|
|
22292
22258
|
var et;
|
|
22293
|
-
|
|
22259
|
+
$ && (m.header || m.dynamicTyping || m.transform) && (et = 1, !$.data.length || Array.isArray($.data[0]) ? ($.data = $.data.map(nt), et = $.data.length) : $.data = nt($.data, 0), m.header && $.meta && ($.meta.fields = z), q += et);
|
|
22294
22260
|
}
|
|
22295
22261
|
function G() {
|
|
22296
22262
|
return m.header && z.length === 0;
|
|
22297
22263
|
}
|
|
22298
22264
|
function K(J, nt, et, tt) {
|
|
22299
|
-
J = { type: J, code: nt, message: et }, tt !== void 0 && (J.row = tt),
|
|
22265
|
+
J = { type: J, code: nt, message: et }, tt !== void 0 && (J.row = tt), $.errors.push(J);
|
|
22300
22266
|
}
|
|
22301
22267
|
O(m.step) && (C = m.step, m.step = function(J) {
|
|
22302
|
-
|
|
22268
|
+
$ = J, G() ? it() : (it(), $.data.length !== 0 && (V += J.data.length, m.preview && V > m.preview ? _.abort() : ($.data = $.data[0], C($, H))));
|
|
22303
22269
|
}), this.parse = function(J, nt, et) {
|
|
22304
|
-
var tt = m.quoteChar || '"', tt = (m.newline || (m.newline = this.guessLineEndings(J, tt)), M = !1, m.delimiter ? O(m.delimiter) && (m.delimiter = m.delimiter(J),
|
|
22270
|
+
var tt = m.quoteChar || '"', tt = (m.newline || (m.newline = this.guessLineEndings(J, tt)), M = !1, m.delimiter ? O(m.delimiter) && (m.delimiter = m.delimiter(J), $.meta.delimiter = m.delimiter) : ((tt = ((mt, Tt, lt, wt, yt) => {
|
|
22305
22271
|
var ne, gt, Ot, fe;
|
|
22306
22272
|
yt = yt || [",", " ", "|", ";", c.RECORD_SEP, c.UNIT_SEP];
|
|
22307
22273
|
for (var ye = 0; ye < yt.length; ye++) {
|
|
22308
|
-
for (var ie, an = yt[ye], It = 0, ge = 0,
|
|
22309
|
-
0 < se.data.length && (ge /= se.data.length -
|
|
22274
|
+
for (var ie, an = yt[ye], It = 0, ge = 0, Yt = 0, se = (Ot = void 0, new w({ comments: wt, delimiter: an, newline: Tt, preview: 10 }).parse(mt)), me = 0; me < se.data.length; me++) lt && at(se.data[me]) ? Yt++ : (ie = se.data[me].length, ge += ie, Ot === void 0 ? Ot = ie : 0 < ie && (It += Math.abs(ie - Ot), Ot = ie));
|
|
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);
|
|
22310
22276
|
}
|
|
22311
22277
|
return { successful: !!(m.delimiter = ne), bestDelimiter: ne };
|
|
22312
|
-
})(J, m.newline, m.skipEmptyLines, m.comments, m.delimitersToGuess)).successful ? m.delimiter = tt.bestDelimiter : (M = !0, m.delimiter = c.DefaultDelimiter),
|
|
22313
|
-
return m.preview && m.header && tt.preview++, b = J, _ = new w(tt),
|
|
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), E(m));
|
|
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 } };
|
|
22314
22280
|
}, this.paused = function() {
|
|
22315
22281
|
return j;
|
|
22316
22282
|
}, this.pause = function() {
|
|
@@ -22320,7 +22286,7 @@ License: MIT
|
|
|
22320
22286
|
}, this.aborted = function() {
|
|
22321
22287
|
return R;
|
|
22322
22288
|
}, this.abort = function() {
|
|
22323
|
-
R = !0, _.abort(),
|
|
22289
|
+
R = !0, _.abort(), $.meta.aborted = !0, O(m.complete) && m.complete($), b = "";
|
|
22324
22290
|
}, this.guessLineEndings = function(mt, tt) {
|
|
22325
22291
|
mt = mt.substring(0, 1048576);
|
|
22326
22292
|
var tt = new RegExp(v(tt) + "([^]*?)" + v(tt), "gm"), et = (mt = mt.replace(tt, "")).split("\r"), tt = mt.split(`
|
|
@@ -22344,14 +22310,14 @@ License: MIT
|
|
|
22344
22310
|
` && (_ = `
|
|
22345
22311
|
`);
|
|
22346
22312
|
var q = 0, j = !1;
|
|
22347
|
-
this.parse = function(R, z,
|
|
22313
|
+
this.parse = function(R, z, $) {
|
|
22348
22314
|
if (typeof R != "string") throw new Error("Input must be a string");
|
|
22349
22315
|
var at = R.length, it = b.length, G = _.length, K = M.length, J = O(C), nt = [], et = [], tt = [], mt = q = 0;
|
|
22350
22316
|
if (!R) return It();
|
|
22351
22317
|
if (L || L !== !1 && R.indexOf(H) === -1) {
|
|
22352
22318
|
for (var Tt = R.split(_), lt = 0; lt < Tt.length; lt++) {
|
|
22353
22319
|
if (tt = Tt[lt], q += tt.length, lt !== Tt.length - 1) q += _.length;
|
|
22354
|
-
else if (
|
|
22320
|
+
else if ($) return It();
|
|
22355
22321
|
if (!M || tt.substring(0, K) !== M) {
|
|
22356
22322
|
if (J) {
|
|
22357
22323
|
if (nt = [], fe(tt.split(b)), ge(), j) return It();
|
|
@@ -22362,7 +22328,7 @@ License: MIT
|
|
|
22362
22328
|
return It();
|
|
22363
22329
|
}
|
|
22364
22330
|
for (var wt = R.indexOf(b, q), yt = R.indexOf(_, q), ne = new RegExp(v(V) + v(H), "g"), gt = R.indexOf(H, q); ; ) if (R[q] === H) for (gt = q, q++; ; ) {
|
|
22365
|
-
if ((gt = R.indexOf(H, gt + 1)) === -1) return
|
|
22331
|
+
if ((gt = R.indexOf(H, gt + 1)) === -1) return $ || et.push({ type: "Quotes", code: "MissingQuotes", message: "Quoted field unterminated", row: nt.length, index: q }), ie();
|
|
22366
22332
|
if (gt === at - 1) return ie(R.substring(q, gt).replace(ne, H));
|
|
22367
22333
|
if (H === V && R[gt + 1] === V) gt++;
|
|
22368
22334
|
else if (H === V || gt === 0 || R[gt - 1] !== V) {
|
|
@@ -22390,20 +22356,20 @@ License: MIT
|
|
|
22390
22356
|
if (B && nt.length >= B) return It(!0);
|
|
22391
22357
|
}
|
|
22392
22358
|
return ie();
|
|
22393
|
-
function fe(
|
|
22394
|
-
nt.push(
|
|
22359
|
+
function fe(Yt) {
|
|
22360
|
+
nt.push(Yt), mt = q;
|
|
22395
22361
|
}
|
|
22396
|
-
function ye(
|
|
22362
|
+
function ye(Yt) {
|
|
22397
22363
|
var se = 0;
|
|
22398
|
-
return se =
|
|
22364
|
+
return se = Yt !== -1 && (Yt = R.substring(gt + 1, Yt)) && Yt.trim() === "" ? Yt.length : se;
|
|
22399
22365
|
}
|
|
22400
|
-
function ie(
|
|
22401
|
-
return
|
|
22366
|
+
function ie(Yt) {
|
|
22367
|
+
return $ || (Yt === void 0 && (Yt = R.substring(q)), tt.push(Yt), q = at, fe(tt), J && ge()), It();
|
|
22402
22368
|
}
|
|
22403
|
-
function an(
|
|
22404
|
-
q =
|
|
22369
|
+
function an(Yt) {
|
|
22370
|
+
q = Yt, fe(tt), tt = [], yt = R.indexOf(_, q);
|
|
22405
22371
|
}
|
|
22406
|
-
function It(
|
|
22372
|
+
function It(Yt) {
|
|
22407
22373
|
if (m.header && !z && nt.length && !F) {
|
|
22408
22374
|
var se = nt[0], me = /* @__PURE__ */ Object.create(null), on = new Set(se);
|
|
22409
22375
|
let ai = !1;
|
|
@@ -22418,7 +22384,7 @@ License: MIT
|
|
|
22418
22384
|
}
|
|
22419
22385
|
ai && console.warn("Duplicate headers found and renamed."), F = !0;
|
|
22420
22386
|
}
|
|
22421
|
-
return { data: nt, errors: et, meta: { delimiter: b, linebreak: _, aborted: j, truncated:
|
|
22387
|
+
return { data: nt, errors: et, meta: { delimiter: b, linebreak: _, aborted: j, truncated: !!Yt, cursor: mt + (z || 0), renamedHeaders: W } };
|
|
22422
22388
|
}
|
|
22423
22389
|
function ge() {
|
|
22424
22390
|
C(It()), nt = [], et = [];
|
|
@@ -22492,18 +22458,18 @@ License: MIT
|
|
|
22492
22458
|
if (typeof m[0] == "object") return j(H || Object.keys(m[0]), m, F);
|
|
22493
22459
|
} else if (typeof m == "object") return typeof m.data == "string" && (m.data = JSON.parse(m.data)), Array.isArray(m.data) && (m.fields || (m.fields = m.meta && m.meta.fields || H), m.fields || (m.fields = Array.isArray(m.data[0]) ? m.fields : typeof m.data[0] == "object" ? Object.keys(m.data[0]) : []), Array.isArray(m.data[0]) || typeof m.data[0] == "object" || (m.data = [m.data])), j(m.fields || [], m.data || [], F);
|
|
22494
22460
|
throw new Error("Unable to serialize unrecognized input");
|
|
22495
|
-
function j(z,
|
|
22496
|
-
var it = "", G = (typeof z == "string" && (z = JSON.parse(z)), typeof
|
|
22461
|
+
function j(z, $, at) {
|
|
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]);
|
|
22497
22463
|
if (G && M) {
|
|
22498
22464
|
for (var J = 0; J < z.length; J++) 0 < J && (it += C), it += R(z[J], J);
|
|
22499
|
-
0 <
|
|
22465
|
+
0 < $.length && (it += B);
|
|
22500
22466
|
}
|
|
22501
|
-
for (var nt = 0; nt <
|
|
22502
|
-
var et = (G ? z :
|
|
22503
|
-
if (at && !G && (tt = at === "greedy" ?
|
|
22467
|
+
for (var nt = 0; nt < $.length; nt++) {
|
|
22468
|
+
var et = (G ? z : $[nt]).length, tt = !1, mt = G ? Object.keys($[nt]).length === 0 : $[nt].length === 0;
|
|
22469
|
+
if (at && !G && (tt = at === "greedy" ? $[nt].join("").trim() === "" : $[nt].length === 1 && $[nt][0].length === 0), at === "greedy" && G) {
|
|
22504
22470
|
for (var Tt = [], lt = 0; lt < et; lt++) {
|
|
22505
22471
|
var wt = K ? z[lt] : lt;
|
|
22506
|
-
Tt.push(
|
|
22472
|
+
Tt.push($[nt][wt]);
|
|
22507
22473
|
}
|
|
22508
22474
|
tt = Tt.join("").trim() === "";
|
|
22509
22475
|
}
|
|
@@ -22511,16 +22477,16 @@ License: MIT
|
|
|
22511
22477
|
for (var yt = 0; yt < et; yt++) {
|
|
22512
22478
|
0 < yt && !mt && (it += C);
|
|
22513
22479
|
var ne = G && K ? z[yt] : yt;
|
|
22514
|
-
it += R(
|
|
22480
|
+
it += R($[nt][ne], yt);
|
|
22515
22481
|
}
|
|
22516
|
-
nt <
|
|
22482
|
+
nt < $.length - 1 && (!at || 0 < et && !mt) && (it += B);
|
|
22517
22483
|
}
|
|
22518
22484
|
}
|
|
22519
22485
|
return it;
|
|
22520
22486
|
}
|
|
22521
|
-
function R(z,
|
|
22487
|
+
function R(z, $) {
|
|
22522
22488
|
var at, it;
|
|
22523
|
-
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,
|
|
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) => {
|
|
22524
22490
|
for (var J = 0; J < K.length; J++) if (-1 < G.indexOf(K[J])) return !0;
|
|
22525
22491
|
return !1;
|
|
22526
22492
|
})(at, c.BAD_DELIMITERS) || -1 < at.indexOf(C) || at.charAt(0) === " " || at.charAt(at.length - 1) === " ") ? L + at + L : at);
|
|
@@ -22831,7 +22797,7 @@ const FP = ["id"], zP = /* @__PURE__ */ he({
|
|
|
22831
22797
|
text: Q(e).t("csvExport.maximumRecordAmount", { value: Q(o1) })
|
|
22832
22798
|
}, {
|
|
22833
22799
|
default: Ht(() => [
|
|
22834
|
-
Zt(Q(
|
|
22800
|
+
Zt(Q($m), {
|
|
22835
22801
|
color: `var(--kui-color-text-neutral, ${Q(Lc)})`,
|
|
22836
22802
|
size: `var(--kui-icon-size-30, ${Q(pr)})`
|
|
22837
22803
|
}, null, 8, ["color", "size"])
|
|
@@ -22879,7 +22845,7 @@ const FP = ["id"], zP = /* @__PURE__ */ he({
|
|
|
22879
22845
|
]);
|
|
22880
22846
|
};
|
|
22881
22847
|
}
|
|
22882
|
-
}),
|
|
22848
|
+
}), $P = { class: "container" }, YP = {
|
|
22883
22849
|
key: 0,
|
|
22884
22850
|
class: "no-data",
|
|
22885
22851
|
"data-testid": "sparkline-empty"
|
|
@@ -23045,7 +23011,7 @@ const FP = ["id"], zP = /* @__PURE__ */ he({
|
|
|
23045
23011
|
};
|
|
23046
23012
|
}), ii(() => {
|
|
23047
23013
|
We.positioners[D] && delete We.positioners[D];
|
|
23048
|
-
}), (O, m) => (Z(), ct("div",
|
|
23014
|
+
}), (O, m) => (Z(), ct("div", $P, [
|
|
23049
23015
|
v.value ? n.type === "sparkline_bar" ? (Z(), Lt(Q(bm), {
|
|
23050
23016
|
key: 1,
|
|
23051
23017
|
"chart-id": Q(t),
|
|
@@ -23060,7 +23026,7 @@ const FP = ["id"], zP = /* @__PURE__ */ he({
|
|
|
23060
23026
|
"data-testid": n.type === "sparkline_line" ? "sparkline-line" : "sparkline-step",
|
|
23061
23027
|
options: k.value,
|
|
23062
23028
|
plugins: h.value
|
|
23063
|
-
}, null, 8, ["chart-id", "data", "data-testid", "options", "plugins"])) : Ft("", !0) : (Z(), ct("div",
|
|
23029
|
+
}, null, 8, ["chart-id", "data", "data-testid", "options", "plugins"])) : Ft("", !0) : (Z(), ct("div", YP, [
|
|
23064
23030
|
ss(O.$slots, "empty", {}, () => [
|
|
23065
23031
|
Ie(dt(Q(e).t("sparkline_no_data")), 1)
|
|
23066
23032
|
], !0)
|
|
@@ -23089,10 +23055,10 @@ const FP = ["id"], zP = /* @__PURE__ */ he({
|
|
|
23089
23055
|
], 8, jP)) : Ft("", !0)
|
|
23090
23056
|
]));
|
|
23091
23057
|
}
|
|
23092
|
-
}), cE = /* @__PURE__ */
|
|
23058
|
+
}), cE = /* @__PURE__ */ Ye(VP, [["__scopeId", "data-v-ae8259b6"]]);
|
|
23093
23059
|
export {
|
|
23094
23060
|
rE as AnalyticsChart,
|
|
23095
|
-
|
|
23061
|
+
$e as ChartLegendPosition,
|
|
23096
23062
|
lE as CsvExportModal,
|
|
23097
23063
|
JP as DECIMAL_DISPLAY,
|
|
23098
23064
|
DT as FONT_SIZE_REGULAR,
|