@kong-ui-public/analytics-chart 6.0.3 → 6.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
1
  var kg = Object.defineProperty;
2
2
  var Tg = (n, t, e) => t in n ? kg(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
3
  var T = (n, t, e) => Tg(n, typeof t != "symbol" ? t + "" : t, e);
4
- import { computed as Y, shallowRef as so, onMounted as Mr, onBeforeUnmount as ro, watch as be, inject as ts, defineComponent as le, ref as st, openBlock as Z, createElementBlock as dt, normalizeClass as vn, normalizeStyle as Un, createElementVNode as ut, toDisplayString as ct, createBlock as oe, unref as rt, createCommentVNode as $t, Fragment as es, renderList as ao, useCssVars as Cg, resolveComponent as Ee, createVNode as Gt, createSlots as nd, withCtx as Lt, toRef as Mt, reactive as oo, onUnmounted as lo, version as Pg, toRaw as Sa, nextTick as Og, h as Da, isProxy as id, renderSlot as co, createTextVNode as Ae, withKeys as Eg, withModifiers as Ag, provide as fl } from "vue";
4
+ import { computed as Y, shallowRef as so, onMounted as Mr, onBeforeUnmount as ro, watch as be, inject as ts, defineComponent as le, ref as st, openBlock as Z, createElementBlock as dt, normalizeClass as vn, normalizeStyle as qn, createElementVNode as ut, toDisplayString as ct, createBlock as oe, unref as rt, createCommentVNode as $t, Fragment as es, renderList as ao, useCssVars as Cg, resolveComponent as Ee, createVNode as Gt, createSlots as nd, withCtx as Lt, toRef as Mt, reactive as oo, onUnmounted as lo, version as Pg, toRaw as Sa, nextTick as Og, h as Da, isProxy as id, renderSlot as co, createTextVNode as Ae, withKeys as Eg, withModifiers as Ag, provide as fl } from "vue";
5
5
  import { createI18n as Rg, i18nTComponent as Lg } from "@kong-ui-public/i18n";
6
6
  import { DragIcon as Ig, WarningIcon as Fg } from "@kong/icons";
7
- const Ng = "No data in the current time frame", zg = "Once there is traffic, it will display here", Hg = "Not all data is shown in the below report. Reports are currently limited to a maximum of {maxReturned} entities.", Wg = "no-name", Bg = "debug", Yg = "Total", jg = "Open in Explorer", $g = "More actions", Ug = "Requests that do not have a value for the selected group", qg = {
7
+ const Ng = "No data in the current time frame", zg = "Once there is traffic, it will display here", Hg = "Not all data is shown in the below report. Reports are currently limited to a maximum of {maxReturned} entities.", Wg = "no-name", Bg = "debug", Yg = "Total", jg = "Open in Explorer", $g = "More actions", qg = "Requests that do not have a value for the selected group", Ug = {
8
8
  ms: "ms",
9
9
  bytes: "Byte{plural}",
10
10
  count: "request{plural}",
@@ -50,9 +50,13 @@ const Ng = "No data in the current time frame", zg = "Once there is traffic, it
50
50
  response_size_p99: "Response Size (p99)",
51
51
  response_size_p95: "Response Size (p95)",
52
52
  response_size_p50: "Response Size (p50)",
53
+ response_size_average: "Response Size (avg)",
54
+ response_size_sum: "Response Size (sum)",
53
55
  request_size_p99: "Request Size (p99)",
54
56
  request_size_p95: "Request Size (p95)",
55
57
  request_size_p50: "Request Size (p50)",
58
+ request_size_average: "Request Size (avg)",
59
+ request_size_sum: "Request Size (sum)",
56
60
  control_plane: "Control Plane",
57
61
  api_product: "API Product",
58
62
  api_product_version: "API Product Version",
@@ -222,8 +226,8 @@ const Ng = "No data in the current time frame", zg = "Once there is traffic, it
222
226
  total: Yg,
223
227
  jumpToExplore: jg,
224
228
  more_actions: $g,
225
- emptyEntityInfo: Ug,
226
- chartUnits: qg,
229
+ emptyEntityInfo: qg,
230
+ chartUnits: Ug,
227
231
  csvExport: Vg,
228
232
  legend: Xg,
229
233
  chartLabels: Gg,
@@ -563,13 +567,13 @@ function xp(n) {
563
567
  function _p(n) {
564
568
  return n && (n.a < 255 ? `rgba(${n.r}, ${n.g}, ${n.b}, ${en(n.a)})` : `rgb(${n.r}, ${n.g}, ${n.b})`);
565
569
  }
566
- const qr = (n) => n <= 31308e-7 ? n * 12.92 : Math.pow(n, 1 / 2.4) * 1.055 - 0.055, ni = (n) => n <= 0.04045 ? n / 12.92 : Math.pow((n + 0.055) / 1.055, 2.4);
570
+ const Ur = (n) => n <= 31308e-7 ? n * 12.92 : Math.pow(n, 1 / 2.4) * 1.055 - 0.055, ni = (n) => n <= 0.04045 ? n / 12.92 : Math.pow((n + 0.055) / 1.055, 2.4);
567
571
  function wp(n, t, e) {
568
572
  const i = ni(en(n.r)), s = ni(en(n.g)), r = ni(en(n.b));
569
573
  return {
570
- r: Mn(qr(i + e * (ni(en(t.r)) - i))),
571
- g: Mn(qr(s + e * (ni(en(t.g)) - s))),
572
- b: Mn(qr(r + e * (ni(en(t.b)) - r))),
574
+ r: Mn(Ur(i + e * (ni(en(t.r)) - i))),
575
+ g: Mn(Ur(s + e * (ni(en(t.g)) - s))),
576
+ b: Mn(Ur(r + e * (ni(en(t.b)) - r))),
573
577
  a: n.a + e * (t.a - n.a)
574
578
  };
575
579
  }
@@ -765,7 +769,7 @@ function is(n, t, e) {
765
769
  }
766
770
  return n;
767
771
  }
768
- function qi(n, t) {
772
+ function Ui(n, t) {
769
773
  return is(n, t, {
770
774
  merger: kp
771
775
  });
@@ -774,7 +778,7 @@ function kp(n, t, e) {
774
778
  if (!ld(n))
775
779
  return;
776
780
  const i = t[n], s = e[n];
777
- nt(i) && nt(s) ? qi(i, s) : Object.prototype.hasOwnProperty.call(t, n) || (t[n] = rr(s));
781
+ nt(i) && nt(s) ? Ui(i, s) : Object.prototype.hasOwnProperty.call(t, n) || (t[n] = rr(s));
778
782
  }
779
783
  const bl = {
780
784
  // Chart.helpers.core resolveObjectKey should resolve empty key to root object
@@ -847,7 +851,7 @@ function cd(n, t, e) {
847
851
  for (i = 0, s = n.length; i < s; i++)
848
852
  r = n[i][e], isNaN(r) || (t.min = Math.min(t.min, r), t.max = Math.max(t.max, r));
849
853
  }
850
- function Ut(n) {
854
+ function qt(n) {
851
855
  return n * (lt / 180);
852
856
  }
853
857
  function Sr(n) {
@@ -1175,7 +1179,7 @@ const md = {
1175
1179
  let s, r = n;
1176
1180
  if (e.length > 1) {
1177
1181
  const c = Math.max(Math.abs(e[0].value), Math.abs(e[e.length - 1].value));
1178
- (c < 1e-4 || c > 1e15) && (s = "scientific"), r = Up(n, e);
1182
+ (c < 1e-4 || c > 1e15) && (s = "scientific"), r = qp(n, e);
1179
1183
  }
1180
1184
  const a = xn(Math.abs(r)), o = isNaN(a) ? 1 : Math.max(Math.min(-1 * Math.floor(a), 20), 0), l = {
1181
1185
  notation: s,
@@ -1198,14 +1202,14 @@ const md = {
1198
1202
  ].includes(i) || t > 0.8 * e.length ? md.numeric.call(this, n, t, e) : "";
1199
1203
  }
1200
1204
  };
1201
- function Up(n, t) {
1205
+ function qp(n, t) {
1202
1206
  let e = t.length > 3 ? t[2].value - t[1].value : t[1].value - t[0].value;
1203
1207
  return Math.abs(e) >= 1 && n !== Math.floor(n) && (e = n - Math.floor(n)), e;
1204
1208
  }
1205
1209
  var Dr = {
1206
1210
  formatters: md
1207
1211
  };
1208
- function qp(n) {
1212
+ function Up(n) {
1209
1213
  n.set("scale", {
1210
1214
  display: !0,
1211
1215
  offset: !1,
@@ -1269,7 +1273,7 @@ function qp(n) {
1269
1273
  _indexable: (t) => t !== "backdropPadding"
1270
1274
  });
1271
1275
  }
1272
- const qn = /* @__PURE__ */ Object.create(null), Ta = /* @__PURE__ */ Object.create(null);
1276
+ const Un = /* @__PURE__ */ Object.create(null), Ta = /* @__PURE__ */ Object.create(null);
1273
1277
  function Gi(n, t) {
1274
1278
  if (!t)
1275
1279
  return n;
@@ -1313,7 +1317,7 @@ class Vp {
1313
1317
  return Xr(Ta, t, e);
1314
1318
  }
1315
1319
  override(t, e) {
1316
- return Xr(qn, t, e);
1320
+ return Xr(Un, t, e);
1317
1321
  }
1318
1322
  route(t, e, i, s) {
1319
1323
  const r = Gi(this, t), a = Gi(this, i), o = "_" + e;
@@ -1351,7 +1355,7 @@ var Ct = /* @__PURE__ */ new Vp({
1351
1355
  }, [
1352
1356
  Yp,
1353
1357
  jp,
1354
- qp
1358
+ Up
1355
1359
  ]);
1356
1360
  function Xp(n) {
1357
1361
  return !n || J(n.size) || J(n.family) ? null : (n.style ? n.style + " " : "") + (n.weight ? n.weight + " " : "") + n.size + "px " + n.family;
@@ -1527,7 +1531,7 @@ function Sn(n) {
1527
1531
  "bottomRight"
1528
1532
  ]);
1529
1533
  }
1530
- function qt(n) {
1534
+ function Ut(n) {
1531
1535
  const t = bd(n);
1532
1536
  return t.width = t.left + t.right, t.height = t.top + t.bottom, t;
1533
1537
  }
@@ -2501,7 +2505,7 @@ function $m(n, t, e) {
2501
2505
  left: i.start
2502
2506
  };
2503
2507
  }
2504
- function Um(n) {
2508
+ function qm(n) {
2505
2509
  let t, e, i, s;
2506
2510
  return nt(n) ? (t = n.top, e = n.right, i = n.bottom, s = n.left) : t = e = i = s = n, {
2507
2511
  top: t,
@@ -2533,7 +2537,7 @@ function Nl(n, t, e, i = {}) {
2533
2537
  return t;
2534
2538
  }
2535
2539
  }
2536
- function qm(n, t) {
2540
+ function Um(n, t) {
2537
2541
  const { iScale: e, vScale: i } = t, s = e.axis === "x" ? "x" : "y", r = i.axis === "x" ? "x" : "y", a = Object.keys(n), o = new Array(a.length);
2538
2542
  let l, c, u;
2539
2543
  for (l = 0, c = a.length; l < c; ++l)
@@ -2660,7 +2664,7 @@ class He {
2660
2664
  const t = this.getDataset(), e = t.data || (t.data = []), i = this._data;
2661
2665
  if (nt(e)) {
2662
2666
  const s = this._cachedMeta;
2663
- this._data = qm(e, s);
2667
+ this._data = Um(e, s);
2664
2668
  } else if (i !== e) {
2665
2669
  if (i) {
2666
2670
  vl(i, this);
@@ -2791,7 +2795,7 @@ class He {
2791
2795
  }
2792
2796
  _update(t) {
2793
2797
  const e = this._cachedMeta;
2794
- this.update(t || "default"), e._clip = Um(Q(this.options.clip, $m(e.xScale, e.yScale, this.getMaxOverflow())));
2798
+ this.update(t || "default"), e._clip = qm(Q(this.options.clip, $m(e.xScale, e.yScale, this.getMaxOverflow())));
2795
2799
  }
2796
2800
  update(t) {
2797
2801
  }
@@ -3380,10 +3384,10 @@ class an extends He {
3380
3384
  }
3381
3385
  }
3382
3386
  _getRotation() {
3383
- return Ut(this.options.rotation - 90);
3387
+ return qt(this.options.rotation - 90);
3384
3388
  }
3385
3389
  _getCircumference() {
3386
- return Ut(this.options.circumference);
3390
+ return qt(this.options.circumference);
3387
3391
  }
3388
3392
  _getRotationExtents() {
3389
3393
  let t = St, e = -St;
@@ -3662,7 +3666,7 @@ class Qi extends He {
3662
3666
  }), e;
3663
3667
  }
3664
3668
  _computeAngle(t, e, i) {
3665
- return this.chart.getDataVisibility(t) ? Ut(this.resolveDataElementOptions(t, e).angle || i) : 0;
3669
+ return this.chart.getDataVisibility(t) ? qt(this.resolveDataElementOptions(t, e).angle || i) : 0;
3666
3670
  }
3667
3671
  }
3668
3672
  T(Qi, "id", "polarArea"), T(Qi, "defaults", {
@@ -4091,7 +4095,7 @@ const Rd = [
4091
4095
  function ki(n, t) {
4092
4096
  return n.filter((e) => e.pos === t);
4093
4097
  }
4094
- function Ul(n, t) {
4098
+ function ql(n, t) {
4095
4099
  return n.filter((e) => Rd.indexOf(e.pos) === -1 && e.box.axis === t);
4096
4100
  }
4097
4101
  function Ti(n, t) {
@@ -4142,7 +4146,7 @@ function yy(n, t) {
4142
4146
  return e;
4143
4147
  }
4144
4148
  function by(n) {
4145
- const t = py(n), e = Ti(t.filter((c) => c.box.fullSize), !0), i = Ti(ki(t, "left"), !0), s = Ti(ki(t, "right")), r = Ti(ki(t, "top"), !0), a = Ti(ki(t, "bottom")), o = Ul(t, "x"), l = Ul(t, "y");
4149
+ const t = py(n), e = Ti(t.filter((c) => c.box.fullSize), !0), i = Ti(ki(t, "left"), !0), s = Ti(ki(t, "right")), r = Ti(ki(t, "top"), !0), a = Ti(ki(t, "bottom")), o = ql(t, "x"), l = ql(t, "y");
4146
4150
  return {
4147
4151
  fullSize: e,
4148
4152
  leftAndTop: i.concat(r),
@@ -4152,7 +4156,7 @@ function by(n) {
4152
4156
  horizontal: r.concat(a).concat(o)
4153
4157
  };
4154
4158
  }
4155
- function ql(n, t, e, i) {
4159
+ function Ul(n, t, e, i) {
4156
4160
  return Math.max(n[e], t[e]) + Math.max(n[i], t[i]);
4157
4161
  }
4158
4162
  function Ld(n, t) {
@@ -4169,7 +4173,7 @@ function xy(n, t, e, i) {
4169
4173
  d.size = Math.max(d.size, e.horizontal ? r.height : r.width), e.size = d.size / d.count, n[s] += e.size;
4170
4174
  }
4171
4175
  r.getPadding && Ld(a, r.getPadding());
4172
- const o = Math.max(0, t.outerWidth - ql(a, n, "left", "right")), l = Math.max(0, t.outerHeight - ql(a, n, "top", "bottom")), c = o !== n.w, u = l !== n.h;
4176
+ const o = Math.max(0, t.outerWidth - Ul(a, n, "left", "right")), l = Math.max(0, t.outerHeight - Ul(a, n, "top", "bottom")), c = o !== n.w, u = l !== n.h;
4173
4177
  return n.w = o, n.h = l, e.horizontal ? {
4174
4178
  same: c,
4175
4179
  other: u
@@ -4262,7 +4266,7 @@ var ne = {
4262
4266
  update(n, t, e, i) {
4263
4267
  if (!n)
4264
4268
  return;
4265
- const s = qt(n.options.layout.padding), r = Math.max(t - s.width, 0), a = Math.max(e - s.height, 0), o = by(n.boxes), l = o.vertical, c = o.horizontal;
4269
+ const s = Ut(n.options.layout.padding), r = Math.max(t - s.width, 0), a = Math.max(e - s.height, 0), o = by(n.boxes), l = o.vertical, c = o.horizontal;
4266
4270
  wt(n.boxes, (y) => {
4267
4271
  typeof y.beforeLayout == "function" && y.beforeLayout();
4268
4272
  });
@@ -4275,7 +4279,7 @@ var ne = {
4275
4279
  vBoxMaxWidth: r / 2 / u,
4276
4280
  hBoxMaxHeight: a / 2
4277
4281
  }), h = Object.assign({}, s);
4278
- Ld(h, qt(i));
4282
+ Ld(h, Ut(i));
4279
4283
  const f = Object.assign({
4280
4284
  maxPadding: h,
4281
4285
  w: r,
@@ -4632,16 +4636,16 @@ function Ci(n) {
4632
4636
  function Jl(n, t) {
4633
4637
  if (!n.display)
4634
4638
  return 0;
4635
- const e = At(n.font, t), i = qt(n.padding);
4639
+ const e = At(n.font, t), i = Ut(n.padding);
4636
4640
  return (mt(n.text) ? n.text.length : 1) * e.lineHeight + i.height;
4637
4641
  }
4638
- function Uy(n, t) {
4642
+ function qy(n, t) {
4639
4643
  return En(n, {
4640
4644
  scale: t,
4641
4645
  type: "scale"
4642
4646
  });
4643
4647
  }
4644
- function qy(n, t, e) {
4648
+ function Uy(n, t, e) {
4645
4649
  return En(n, {
4646
4650
  tick: e,
4647
4651
  index: t,
@@ -4851,7 +4855,7 @@ class Gn extends Zt {
4851
4855
  if (a) {
4852
4856
  const l = Jl(s, e.options.font);
4853
4857
  if (o ? (t.width = this.maxWidth, t.height = Ci(r) + l) : (t.height = this.maxHeight, t.width = Ci(r) + l), i.display && this.ticks.length) {
4854
- const { first: c, last: u, widest: d, highest: h } = this._getLabelSizes(), f = i.padding * 2, p = Ut(this.labelRotation), y = Math.cos(p), x = Math.sin(p);
4858
+ const { first: c, last: u, widest: d, highest: h } = this._getLabelSizes(), f = i.padding * 2, p = qt(this.labelRotation), y = Math.cos(p), x = Math.sin(p);
4855
4859
  if (o) {
4856
4860
  const _ = i.mirror ? 0 : x * d.width + y * h.height;
4857
4861
  t.height = Math.min(this.maxHeight, t.height + _ + f);
@@ -4966,12 +4970,12 @@ class Gn extends Zt {
4966
4970
  const e = this.ticks || [];
4967
4971
  if (t >= 0 && t < e.length) {
4968
4972
  const i = e[t];
4969
- return i.$context || (i.$context = qy(this.getContext(), t, i));
4973
+ return i.$context || (i.$context = Uy(this.getContext(), t, i));
4970
4974
  }
4971
- return this.$context || (this.$context = Uy(this.chart.getContext(), this));
4975
+ return this.$context || (this.$context = qy(this.chart.getContext(), this));
4972
4976
  }
4973
4977
  _tickSize() {
4974
- const t = this.options.ticks, e = Ut(this.labelRotation), i = Math.abs(Math.cos(e)), s = Math.abs(Math.sin(e)), r = this._getLabelSizes(), a = t.autoSkipPadding || 0, o = r ? r.widest.width + a : 0, l = r ? r.highest.height + a : 0;
4978
+ const t = this.options.ticks, e = qt(this.labelRotation), i = Math.abs(Math.cos(e)), s = Math.abs(Math.sin(e)), r = this._getLabelSizes(), a = t.autoSkipPadding || 0, o = r ? r.widest.width + a : 0, l = r ? r.highest.height + a : 0;
4975
4979
  return this.isHorizontal() ? l * i > o * s ? o / i : l / s : l * s < o * i ? l / i : o / s;
4976
4980
  }
4977
4981
  _isVisible() {
@@ -5008,9 +5012,9 @@ class Gn extends Zt {
5008
5012
  }
5009
5013
  P = v - x, g = P - h, k = t.left, A = t.right;
5010
5014
  }
5011
- const F = Q(s.ticks.maxTicksLimit, d), q = Math.max(1, Math.ceil(d / F));
5012
- for (S = 0; S < d; S += q) {
5013
- const j = this.getContext(S), I = r.setContext(j), at = o.setContext(j), z = I.lineWidth, Ft = I.color, Dt = at.dash || [], B = at.dashOffset, L = I.tickWidth, W = I.tickColor, U = I.tickBorderDash || [], X = I.tickBorderDashOffset;
5015
+ const F = Q(s.ticks.maxTicksLimit, d), U = Math.max(1, Math.ceil(d / F));
5016
+ for (S = 0; S < d; S += U) {
5017
+ const j = this.getContext(S), I = r.setContext(j), at = o.setContext(j), z = I.lineWidth, Ft = I.color, Dt = at.dash || [], B = at.dashOffset, L = I.tickWidth, W = I.tickColor, q = I.tickBorderDash || [], X = I.tickBorderDashOffset;
5014
5018
  M = jy(this, S, l), M !== void 0 && (D = Fn(i, M, z), c ? P = g = k = A = D : C = b = O = R = D, f.push({
5015
5019
  tx1: P,
5016
5020
  ty1: C,
@@ -5026,39 +5030,39 @@ class Gn extends Zt {
5026
5030
  borderDashOffset: B,
5027
5031
  tickWidth: L,
5028
5032
  tickColor: W,
5029
- tickBorderDash: U,
5033
+ tickBorderDash: q,
5030
5034
  tickBorderDashOffset: X
5031
5035
  }));
5032
5036
  }
5033
5037
  return this._ticksLength = d, this._borderValue = v, f;
5034
5038
  }
5035
5039
  _computeLabelItems(t) {
5036
- const e = this.axis, i = this.options, { position: s, ticks: r } = i, a = this.isHorizontal(), o = this.ticks, { align: l, crossAlign: c, padding: u, mirror: d } = r, h = Ci(i.grid), f = h + u, p = d ? -u : f, y = -Ut(this.labelRotation), x = [];
5040
+ const e = this.axis, i = this.options, { position: s, ticks: r } = i, a = this.isHorizontal(), o = this.ticks, { align: l, crossAlign: c, padding: u, mirror: d } = r, h = Ci(i.grid), f = h + u, p = d ? -u : f, y = -qt(this.labelRotation), x = [];
5037
5041
  let _, v, S, M, D, P, C, g, b, k, O, A, R = "middle";
5038
5042
  if (s === "top")
5039
5043
  P = this.bottom - p, C = this._getXAxisLabelAlignment();
5040
5044
  else if (s === "bottom")
5041
5045
  P = this.top + p, C = this._getXAxisLabelAlignment();
5042
5046
  else if (s === "left") {
5043
- const q = this._getYAxisLabelAlignment(h);
5044
- C = q.textAlign, D = q.x;
5047
+ const U = this._getYAxisLabelAlignment(h);
5048
+ C = U.textAlign, D = U.x;
5045
5049
  } else if (s === "right") {
5046
- const q = this._getYAxisLabelAlignment(h);
5047
- C = q.textAlign, D = q.x;
5050
+ const U = this._getYAxisLabelAlignment(h);
5051
+ C = U.textAlign, D = U.x;
5048
5052
  } else if (e === "x") {
5049
5053
  if (s === "center")
5050
5054
  P = (t.top + t.bottom) / 2 + f;
5051
5055
  else if (nt(s)) {
5052
- const q = Object.keys(s)[0], j = s[q];
5053
- P = this.chart.scales[q].getPixelForValue(j) + f;
5056
+ const U = Object.keys(s)[0], j = s[U];
5057
+ P = this.chart.scales[U].getPixelForValue(j) + f;
5054
5058
  }
5055
5059
  C = this._getXAxisLabelAlignment();
5056
5060
  } else if (e === "y") {
5057
5061
  if (s === "center")
5058
5062
  D = (t.left + t.right) / 2 - f;
5059
5063
  else if (nt(s)) {
5060
- const q = Object.keys(s)[0], j = s[q];
5061
- D = this.chart.scales[q].getPixelForValue(j);
5064
+ const U = Object.keys(s)[0], j = s[U];
5065
+ D = this.chart.scales[U].getPixelForValue(j);
5062
5066
  }
5063
5067
  C = this._getYAxisLabelAlignment(h).textAlign;
5064
5068
  }
@@ -5066,21 +5070,21 @@ class Gn extends Zt {
5066
5070
  const F = this._getLabelSizes();
5067
5071
  for (_ = 0, v = o.length; _ < v; ++_) {
5068
5072
  S = o[_], M = S.label;
5069
- const q = r.setContext(this.getContext(_));
5073
+ const U = r.setContext(this.getContext(_));
5070
5074
  g = this.getPixelForTick(_) + r.labelOffset, b = this._resolveTickFontOptions(_), k = b.lineHeight, O = mt(M) ? M.length : 1;
5071
- const j = O / 2, I = q.color, at = q.textStrokeColor, z = q.textStrokeWidth;
5075
+ const j = O / 2, I = U.color, at = U.textStrokeColor, z = U.textStrokeWidth;
5072
5076
  let Ft = C;
5073
- a ? (D = g, C === "inner" && (_ === v - 1 ? Ft = this.options.reverse ? "left" : "right" : _ === 0 ? Ft = this.options.reverse ? "right" : "left" : Ft = "center"), s === "top" ? c === "near" || y !== 0 ? A = -O * k + k / 2 : c === "center" ? A = -F.highest.height / 2 - j * k + k : A = -F.highest.height + k / 2 : c === "near" || y !== 0 ? A = k / 2 : c === "center" ? A = F.highest.height / 2 - j * k : A = F.highest.height - O * k, d && (A *= -1), y !== 0 && !q.showLabelBackdrop && (D += k / 2 * Math.sin(y))) : (P = g, A = (1 - O) * k / 2);
5077
+ a ? (D = g, C === "inner" && (_ === v - 1 ? Ft = this.options.reverse ? "left" : "right" : _ === 0 ? Ft = this.options.reverse ? "right" : "left" : Ft = "center"), s === "top" ? c === "near" || y !== 0 ? A = -O * k + k / 2 : c === "center" ? A = -F.highest.height / 2 - j * k + k : A = -F.highest.height + k / 2 : c === "near" || y !== 0 ? A = k / 2 : c === "center" ? A = F.highest.height / 2 - j * k : A = F.highest.height - O * k, d && (A *= -1), y !== 0 && !U.showLabelBackdrop && (D += k / 2 * Math.sin(y))) : (P = g, A = (1 - O) * k / 2);
5074
5078
  let Dt;
5075
- if (q.showLabelBackdrop) {
5076
- const B = qt(q.backdropPadding), L = F.heights[_], W = F.widths[_];
5077
- let U = A - B.top, X = 0 - B.left;
5079
+ if (U.showLabelBackdrop) {
5080
+ const B = Ut(U.backdropPadding), L = F.heights[_], W = F.widths[_];
5081
+ let q = A - B.top, X = 0 - B.left;
5078
5082
  switch (R) {
5079
5083
  case "middle":
5080
- U -= L / 2;
5084
+ q -= L / 2;
5081
5085
  break;
5082
5086
  case "bottom":
5083
- U -= L;
5087
+ q -= L;
5084
5088
  break;
5085
5089
  }
5086
5090
  switch (C) {
@@ -5096,10 +5100,10 @@ class Gn extends Zt {
5096
5100
  }
5097
5101
  Dt = {
5098
5102
  left: X,
5099
- top: U,
5103
+ top: q,
5100
5104
  width: W + B.width,
5101
5105
  height: L + B.height,
5102
- color: q.backdropColor
5106
+ color: U.backdropColor
5103
5107
  };
5104
5108
  }
5105
5109
  x.push({
@@ -5125,7 +5129,7 @@ class Gn extends Zt {
5125
5129
  }
5126
5130
  _getXAxisLabelAlignment() {
5127
5131
  const { position: t, ticks: e } = this.options;
5128
- if (-Ut(this.labelRotation))
5132
+ if (-qt(this.labelRotation))
5129
5133
  return t === "top" ? "left" : "right";
5130
5134
  let s = "center";
5131
5135
  return e.align === "start" ? s = "left" : e.align === "end" ? s = "right" : e.align === "inner" && (s = "inner"), s;
@@ -5221,7 +5225,7 @@ class Gn extends Zt {
5221
5225
  const { ctx: t, options: { position: e, title: i, reverse: s } } = this;
5222
5226
  if (!i.display)
5223
5227
  return;
5224
- const r = At(i.font), a = qt(i.padding), o = i.align;
5228
+ const r = At(i.font), a = Ut(i.padding), o = i.align;
5225
5229
  let l = r.lineHeight / 2;
5226
5230
  e === "bottom" || e === "center" || nt(e) ? (l += a.bottom, mt(i.text) && (l += r.lineHeight * (i.text.length - 1))) : l += a.top;
5227
5231
  const { titleX: c, titleY: u, maxWidth: d, rotation: h } = Xy(this, l, e, o);
@@ -5309,7 +5313,7 @@ class Ys {
5309
5313
  }
5310
5314
  unregister(t) {
5311
5315
  const e = this.items, i = t.id, s = this.scope;
5312
- i in e && delete e[i], s && i in Ct[s] && (delete Ct[s][i], this.override && delete qn[i]);
5316
+ i in e && delete e[i], s && i in Ct[s] && (delete Ct[s][i], this.override && delete Un[i]);
5313
5317
  }
5314
5318
  }
5315
5319
  function Gy(n, t, e) {
@@ -5539,7 +5543,7 @@ function ob(n, t) {
5539
5543
  return {};
5540
5544
  }
5541
5545
  function lb(n, t) {
5542
- const e = qn[n.type] || {
5546
+ const e = Un[n.type] || {
5543
5547
  scales: {}
5544
5548
  }, i = t.scales || {}, s = Ea(n.type, t), r = /* @__PURE__ */ Object.create(null);
5545
5549
  return Object.keys(i).forEach((a) => {
@@ -5549,7 +5553,7 @@ function lb(n, t) {
5549
5553
  if (o._proxy)
5550
5554
  return console.warn(`Ignoring resolver passed as options for scale: ${a}`);
5551
5555
  const l = Aa(a, o, ob(a, n), Ct.scales[o.type]), c = rb(l, s), u = e.scales || {};
5552
- r[a] = qi(/* @__PURE__ */ Object.create(null), [
5556
+ r[a] = Ui(/* @__PURE__ */ Object.create(null), [
5553
5557
  {
5554
5558
  axis: l
5555
5559
  },
@@ -5558,10 +5562,10 @@ function lb(n, t) {
5558
5562
  u[c]
5559
5563
  ]);
5560
5564
  }), n.data.datasets.forEach((a) => {
5561
- const o = a.type || n.type, l = a.indexAxis || Ea(o, t), u = (qn[o] || {}).scales || {};
5565
+ const o = a.type || n.type, l = a.indexAxis || Ea(o, t), u = (Un[o] || {}).scales || {};
5562
5566
  Object.keys(u).forEach((d) => {
5563
5567
  const h = sb(d, l), f = a[h + "AxisID"] || h;
5564
- r[f] = r[f] || /* @__PURE__ */ Object.create(null), qi(r[f], [
5568
+ r[f] = r[f] || /* @__PURE__ */ Object.create(null), Ui(r[f], [
5565
5569
  {
5566
5570
  axis: h
5567
5571
  },
@@ -5571,7 +5575,7 @@ function lb(n, t) {
5571
5575
  });
5572
5576
  }), Object.keys(r).forEach((a) => {
5573
5577
  const o = r[a];
5574
- qi(o, [
5578
+ Ui(o, [
5575
5579
  Ct.scales[o.type],
5576
5580
  Ct.scale
5577
5581
  ]);
@@ -5681,7 +5685,7 @@ class ub {
5681
5685
  return o;
5682
5686
  const l = /* @__PURE__ */ new Set();
5683
5687
  e.forEach((u) => {
5684
- t && (l.add(t), u.forEach((d) => Pi(l, t, d))), u.forEach((d) => Pi(l, s, d)), u.forEach((d) => Pi(l, qn[r] || {}, d)), u.forEach((d) => Pi(l, Ct, d)), u.forEach((d) => Pi(l, Ta, d));
5688
+ t && (l.add(t), u.forEach((d) => Pi(l, t, d))), u.forEach((d) => Pi(l, s, d)), u.forEach((d) => Pi(l, Un[r] || {}, d)), u.forEach((d) => Pi(l, Ct, d)), u.forEach((d) => Pi(l, Ta, d));
5685
5689
  });
5686
5690
  const c = Array.from(l);
5687
5691
  return c.length === 0 && c.push(/* @__PURE__ */ Object.create(null)), Wd.has(e) && a.set(e, c), c;
@@ -5690,7 +5694,7 @@ class ub {
5690
5694
  const { options: t, type: e } = this;
5691
5695
  return [
5692
5696
  t,
5693
- qn[e] || {},
5697
+ Un[e] || {},
5694
5698
  Ct.datasets[e] || {},
5695
5699
  {
5696
5700
  type: e
@@ -6282,7 +6286,7 @@ let Re = (pn = class {
6282
6286
  const r = this.options.hover;
6283
6287
  return this.getElementsAtEventForMode(t, r.mode, r, s);
6284
6288
  }
6285
- }, T(pn, "defaults", Ct), T(pn, "instances", tr), T(pn, "overrides", qn), T(pn, "registry", Be), T(pn, "version", fb), T(pn, "getChart", oc), pn);
6289
+ }, T(pn, "defaults", Ct), T(pn, "instances", tr), T(pn, "overrides", Un), T(pn, "registry", Be), T(pn, "version", fb), T(pn, "getChart", oc), pn);
6286
6290
  function lc() {
6287
6291
  return wt(Re.instances, (n) => n._plugins.invalidate());
6288
6292
  }
@@ -6322,13 +6326,13 @@ function hr(n, t, e, i, s, r) {
6322
6326
  let f = 0;
6323
6327
  const p = s - l;
6324
6328
  if (i) {
6325
- const q = u > 0 ? u - i : 0, j = d > 0 ? d - i : 0, I = (q + j) / 2, at = I !== 0 ? p * I / (I + i) : p;
6329
+ const U = u > 0 ? u - i : 0, j = d > 0 ? d - i : 0, I = (U + j) / 2, at = I !== 0 ? p * I / (I + i) : p;
6326
6330
  f = (p - at) / 2;
6327
6331
  }
6328
6332
  const y = Math.max(1e-3, p * d - e / lt) / d, x = (p - y) / 2, _ = l + x + f, v = s - x - f, { outerStart: S, outerEnd: M, innerStart: D, innerEnd: P } = wb(t, h, d, v - _), C = d - S, g = d - M, b = _ + S / C, k = v - M / g, O = h + D, A = h + P, R = _ + D / O, F = v - P / A;
6329
6333
  if (n.beginPath(), r) {
6330
- const q = (b + k) / 2;
6331
- if (n.arc(a, o, d, b, q), n.arc(a, o, d, q, k), M > 0) {
6334
+ const U = (b + k) / 2;
6335
+ if (n.arc(a, o, d, b, U), n.arc(a, o, d, U, k), M > 0) {
6332
6336
  const z = ii(g, k, a, o);
6333
6337
  n.arc(z.x, z.y, M, k, v + Tt);
6334
6338
  }
@@ -6349,8 +6353,8 @@ function hr(n, t, e, i, s, r) {
6349
6353
  }
6350
6354
  } else {
6351
6355
  n.moveTo(a, o);
6352
- const q = Math.cos(b) * d + a, j = Math.sin(b) * d + o;
6353
- n.lineTo(q, j);
6356
+ const U = Math.cos(b) * d + a, j = Math.sin(b) * d + o;
6357
+ n.lineTo(U, j);
6354
6358
  const I = Math.cos(k) * d + a, at = Math.sin(k) * d + o;
6355
6359
  n.lineTo(I, at);
6356
6360
  }
@@ -6818,20 +6822,20 @@ const La = [
6818
6822
  "rgb(201, 203, 207)"
6819
6823
  // grey
6820
6824
  ], uc = /* @__PURE__ */ La.map((n) => n.replace("rgb(", "rgba(").replace(")", ", 0.5)"));
6821
- function Ud(n) {
6825
+ function qd(n) {
6822
6826
  return La[n % La.length];
6823
6827
  }
6824
- function qd(n) {
6828
+ function Ud(n) {
6825
6829
  return uc[n % uc.length];
6826
6830
  }
6827
6831
  function Hb(n, t) {
6828
- return n.borderColor = Ud(t), n.backgroundColor = qd(t), ++t;
6832
+ return n.borderColor = qd(t), n.backgroundColor = Ud(t), ++t;
6829
6833
  }
6830
6834
  function Wb(n, t) {
6831
- return n.backgroundColor = n.data.map(() => Ud(t++)), t;
6835
+ return n.backgroundColor = n.data.map(() => qd(t++)), t;
6832
6836
  }
6833
6837
  function Bb(n, t) {
6834
- return n.backgroundColor = n.data.map(() => qd(t++)), t;
6838
+ return n.backgroundColor = n.data.map(() => Ud(t++)), t;
6835
6839
  }
6836
6840
  function Yb(n) {
6837
6841
  let t = 0;
@@ -6853,7 +6857,7 @@ function jb(n) {
6853
6857
  function $b() {
6854
6858
  return Ct.borderColor !== "rgba(0,0,0,0.1)" || Ct.backgroundColor !== "rgba(0,0,0,0.1)";
6855
6859
  }
6856
- var Ub = {
6860
+ var qb = {
6857
6861
  id: "colors",
6858
6862
  defaults: {
6859
6863
  enabled: !0,
@@ -6869,7 +6873,7 @@ var Ub = {
6869
6873
  i.forEach(o);
6870
6874
  }
6871
6875
  };
6872
- function qb(n, t, e, i, s) {
6876
+ function Ub(n, t, e, i, s) {
6873
6877
  const r = s.samples || i;
6874
6878
  if (r >= e)
6875
6879
  return n.slice(t, t + e);
@@ -6981,7 +6985,7 @@ var Gb = {
6981
6985
  let p;
6982
6986
  switch (e.algorithm) {
6983
6987
  case "lttb":
6984
- p = qb(c, d, h, i, e);
6988
+ p = Ub(c, d, h, i, e);
6985
6989
  break;
6986
6990
  case "min-max":
6987
6991
  p = Vb(c, d, h, i);
@@ -7518,7 +7522,7 @@ class xc extends Zt {
7518
7522
  }), kd(this.ctx, t.textDirection);
7519
7523
  }
7520
7524
  drawTitle() {
7521
- const t = this.options, e = t.title, i = At(e.font), s = qt(e.padding);
7525
+ const t = this.options, e = t.title, i = At(e.font), s = Ut(e.padding);
7522
7526
  if (!e.display)
7523
7527
  return;
7524
7528
  const r = ui(t.rtl, this.left, this.width), a = this.ctx, o = e.position, l = i.size / 2, c = s.top + l;
@@ -7533,7 +7537,7 @@ class xc extends Zt {
7533
7537
  a.textAlign = r.textAlign(yo(o)), a.textBaseline = "middle", a.strokeStyle = e.color, a.fillStyle = e.color, a.font = i.string, Vn(a, e.text, f, u, i);
7534
7538
  }
7535
7539
  _computeTitleHeight() {
7536
- const t = this.options.title, e = At(t.font), i = qt(t.padding);
7540
+ const t = this.options.title, e = At(t.font), i = Ut(t.padding);
7537
7541
  return t.display ? e.lineHeight + i.height : 0;
7538
7542
  }
7539
7543
  _getLegendItemAt(t, e) {
@@ -7635,7 +7639,7 @@ var w0 = {
7635
7639
  generateLabels(n) {
7636
7640
  const t = n.data.datasets, { labels: { usePointStyle: e, pointStyle: i, textAlign: s, color: r, useBorderRadius: a, borderRadius: o } } = n.legend.options;
7637
7641
  return n._getSortedDatasetMetas().map((l) => {
7638
- const c = l.controller.getStyle(e ? 0 : void 0), u = qt(c.borderWidth);
7642
+ const c = l.controller.getStyle(e ? 0 : void 0), u = Ut(c.borderWidth);
7639
7643
  return {
7640
7644
  text: t[l.index].label,
7641
7645
  fillStyle: c.backgroundColor,
@@ -7686,7 +7690,7 @@ class Co extends Zt {
7686
7690
  }
7687
7691
  this.width = this.right = t, this.height = this.bottom = e;
7688
7692
  const s = mt(i.text) ? i.text.length : 1;
7689
- this._padding = qt(i.padding);
7693
+ this._padding = Ut(i.padding);
7690
7694
  const r = s * At(i.font).lineHeight + this._padding.height;
7691
7695
  this.isHorizontal() ? this.height = r : this.width = r;
7692
7696
  }
@@ -7764,7 +7768,7 @@ var M0 = {
7764
7768
  _indexable: !1
7765
7769
  }
7766
7770
  };
7767
- const Us = /* @__PURE__ */ new WeakMap();
7771
+ const qs = /* @__PURE__ */ new WeakMap();
7768
7772
  var S0 = {
7769
7773
  id: "subtitle",
7770
7774
  start(n, t, e) {
@@ -7773,13 +7777,13 @@ var S0 = {
7773
7777
  options: e,
7774
7778
  chart: n
7775
7779
  });
7776
- ne.configure(n, i, e), ne.addBox(n, i), Us.set(n, i);
7780
+ ne.configure(n, i, e), ne.addBox(n, i), qs.set(n, i);
7777
7781
  },
7778
7782
  stop(n) {
7779
- ne.removeBox(n, Us.get(n)), Us.delete(n);
7783
+ ne.removeBox(n, qs.get(n)), qs.delete(n);
7780
7784
  },
7781
7785
  beforeUpdate(n, t, e) {
7782
- const i = Us.get(n);
7786
+ const i = qs.get(n);
7783
7787
  ne.configure(n, i, e), i.options = e;
7784
7788
  },
7785
7789
  defaults: {
@@ -7865,7 +7869,7 @@ function D0(n, t) {
7865
7869
  };
7866
7870
  }
7867
7871
  function _c(n, t) {
7868
- const e = n.chart.ctx, { body: i, footer: s, title: r } = n, { boxWidth: a, boxHeight: o } = t, l = At(t.bodyFont), c = At(t.titleFont), u = At(t.footerFont), d = r.length, h = s.length, f = i.length, p = qt(t.padding);
7872
+ const e = n.chart.ctx, { body: i, footer: s, title: r } = n, { boxWidth: a, boxHeight: o } = t, l = At(t.bodyFont), c = At(t.titleFont), u = At(t.footerFont), d = r.length, h = s.length, f = i.length, p = Ut(t.padding);
7869
7873
  let y = p.height, x = 0, _ = i.reduce((M, D) => M + D.before.length + D.lines.length + D.after.length, 0);
7870
7874
  if (_ += n.beforeBody.length + n.afterBody.length, d && (y += d * c.lineHeight + (d - 1) * t.titleSpacing + t.titleMarginBottom), _) {
7871
7875
  const M = t.displayColors ? Math.max(o, l.lineHeight) : l.lineHeight;
@@ -7921,8 +7925,8 @@ function vc(n, t, e, i) {
7921
7925
  y: Kt(y, 0, i.height - t.height)
7922
7926
  };
7923
7927
  }
7924
- function qs(n, t, e) {
7925
- const i = qt(e.padding);
7928
+ function Us(n, t, e) {
7929
+ const i = Ut(e.padding);
7926
7930
  return t === "center" ? n.x + n.width / 2 : t === "right" ? n.x + n.width - i.right : n.x + i.left;
7927
7931
  }
7928
7932
  function Mc(n) {
@@ -8097,12 +8101,12 @@ class Fa extends Zt {
8097
8101
  let a, o, l;
8098
8102
  if (r) {
8099
8103
  const c = ui(i.rtl, this.x, this.width);
8100
- for (t.x = qs(this, i.titleAlign, i), e.textAlign = c.textAlign(i.titleAlign), e.textBaseline = "middle", a = At(i.titleFont), o = i.titleSpacing, e.fillStyle = i.titleColor, e.font = a.string, l = 0; l < r; ++l)
8104
+ for (t.x = Us(this, i.titleAlign, i), e.textAlign = c.textAlign(i.titleAlign), e.textBaseline = "middle", a = At(i.titleFont), o = i.titleSpacing, e.fillStyle = i.titleColor, e.font = a.string, l = 0; l < r; ++l)
8101
8105
  e.fillText(s[l], c.x(t.x), t.y + a.lineHeight / 2), t.y += a.lineHeight + o, l + 1 === r && (t.y += i.titleMarginBottom - o);
8102
8106
  }
8103
8107
  }
8104
8108
  _drawColorBox(t, e, i, s, r) {
8105
- const a = this.labelColors[i], o = this.labelPointStyles[i], { boxHeight: l, boxWidth: c } = r, u = At(r.bodyFont), d = qs(this, "left", r), h = s.x(d), f = l < u.lineHeight ? (u.lineHeight - l) / 2 : 0, p = e.y + f;
8109
+ const a = this.labelColors[i], o = this.labelPointStyles[i], { boxHeight: l, boxWidth: c } = r, u = At(r.bodyFont), d = Us(this, "left", r), h = s.x(d), f = l < u.lineHeight ? (u.lineHeight - l) / 2 : 0, p = e.y + f;
8106
8110
  if (r.usePointStyle) {
8107
8111
  const y = {
8108
8112
  radius: Math.min(c, l) / 2,
@@ -8137,7 +8141,7 @@ class Fa extends Zt {
8137
8141
  e.fillText(g, p.x(t.x + f), t.y + h / 2), t.y += h + r;
8138
8142
  }, x = p.textAlign(a);
8139
8143
  let _, v, S, M, D, P, C;
8140
- for (e.textAlign = a, e.textBaseline = "middle", e.font = d.string, t.x = qs(this, x, i), e.fillStyle = i.bodyColor, wt(this.beforeBody, y), f = o && x !== "right" ? a === "center" ? c / 2 + u : c + 2 + u : 0, M = 0, P = s.length; M < P; ++M) {
8144
+ for (e.textAlign = a, e.textBaseline = "middle", e.font = d.string, t.x = Us(this, x, i), e.fillStyle = i.bodyColor, wt(this.beforeBody, y), f = o && x !== "right" ? a === "center" ? c / 2 + u : c + 2 + u : 0, M = 0, P = s.length; M < P; ++M) {
8141
8145
  for (_ = s[M], v = this.labelTextColors[M], e.fillStyle = v, wt(_.before, y), S = _.lines, o && S.length && (this._drawColorBox(e, t, M, p, i), h = Math.max(d.lineHeight, l)), D = 0, C = S.length; D < C; ++D)
8142
8146
  y(S[D]), h = d.lineHeight;
8143
8147
  wt(_.after, y);
@@ -8149,7 +8153,7 @@ class Fa extends Zt {
8149
8153
  let a, o;
8150
8154
  if (r) {
8151
8155
  const l = ui(i.rtl, this.x, this.width);
8152
- for (t.x = qs(this, i.footerAlign, i), t.y += i.footerMarginTop, e.textAlign = l.textAlign(i.footerAlign), e.textBaseline = "middle", a = At(i.footerFont), e.fillStyle = i.footerColor, e.font = a.string, o = 0; o < r; ++o)
8156
+ for (t.x = Us(this, i.footerAlign, i), t.y += i.footerMarginTop, e.textAlign = l.textAlign(i.footerAlign), e.textBaseline = "middle", a = At(i.footerFont), e.fillStyle = i.footerColor, e.font = a.string, o = 0; o < r; ++o)
8153
8157
  e.fillText(s[o], l.x(t.x), t.y + a.lineHeight / 2), t.y += a.lineHeight + i.footerSpacing;
8154
8158
  }
8155
8159
  }
@@ -8184,7 +8188,7 @@ class Fa extends Zt {
8184
8188
  y: this.y
8185
8189
  };
8186
8190
  i = Math.abs(i) < 1e-3 ? 0 : i;
8187
- const a = qt(e.padding), o = this.title.length || this.beforeBody.length || this.body.length || this.afterBody.length || this.footer.length;
8191
+ const a = Ut(e.padding), o = this.title.length || this.beforeBody.length || this.body.length || this.afterBody.length || this.footer.length;
8188
8192
  e.enabled && o && (t.save(), t.globalAlpha = i, this.drawBackground(r, t, s, e), Dd(t, e.textDirection), r.y += a.top, this.drawTitle(r, t, e), this.drawBody(r, t, e), this.drawFooter(r, t, e), kd(t, e.textDirection), t.restore());
8189
8193
  }
8190
8194
  getActiveElements() {
@@ -8345,7 +8349,7 @@ var Tr = {
8345
8349
  ]
8346
8350
  }, A0 = /* @__PURE__ */ Object.freeze({
8347
8351
  __proto__: null,
8348
- Colors: Ub,
8352
+ Colors: qb,
8349
8353
  Decimation: Gb,
8350
8354
  Filler: p0,
8351
8355
  Legend: w0,
@@ -8462,7 +8466,7 @@ function F0(n, t) {
8462
8466
  }), e;
8463
8467
  }
8464
8468
  function kc(n, t, { horizontal: e, minRotation: i }) {
8465
- const s = Ut(i), r = (e ? Math.sin(s) : Math.cos(s)) || 1e-3, a = 0.75 * t * ("" + n).length;
8469
+ const s = qt(i), r = (e ? Math.sin(s) : Math.cos(s)) || 1e-3, a = 0.75 * t * ("" + n).length;
8466
8470
  return Math.min(t / r, a);
8467
8471
  }
8468
8472
  class fr extends Gn {
@@ -8532,7 +8536,7 @@ class za extends fr {
8532
8536
  this.min = Et(t) ? t : 0, this.max = Et(e) ? e : 1, this.handleTickRangeOptions();
8533
8537
  }
8534
8538
  computeTickLimit() {
8535
- const t = this.isHorizontal(), e = t ? this.width : this.height, i = Ut(this.options.ticks.minRotation), s = (t ? Math.sin(i) : Math.cos(i)) || 1e-3, r = this._resolveTickFontOptions(0);
8539
+ const t = this.isHorizontal(), e = t ? this.width : this.height, i = qt(this.options.ticks.minRotation), s = (t ? Math.sin(i) : Math.cos(i)) || 1e-3, r = this._resolveTickFontOptions(0);
8536
8540
  return Math.ceil(e / Math.min(40, r.lineHeight / s));
8537
8541
  }
8538
8542
  getPixelForValue(t) {
@@ -8641,7 +8645,7 @@ T(Ha, "id", "logarithmic"), T(Ha, "defaults", {
8641
8645
  function Wa(n) {
8642
8646
  const t = n.ticks;
8643
8647
  if (t.display && n.display) {
8644
- const e = qt(t.backdropPadding);
8648
+ const e = Ut(t.backdropPadding);
8645
8649
  return Q(t.font && t.font.size, Ct.font.size) + e.height;
8646
8650
  }
8647
8651
  return 0;
@@ -8689,7 +8693,7 @@ function B0(n, t, e, i, s) {
8689
8693
  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));
8690
8694
  }
8691
8695
  function Y0(n, t, e) {
8692
- const i = n.drawingArea, { extra: s, additionalAngle: r, padding: a, size: o } = e, l = n.getPointPosition(t, i + s + a, r), c = Math.round(Sr(Me(l.angle + Tt))), u = V0(l.y, o.h, c), d = U0(c), h = q0(l.x, o.w, d);
8696
+ const i = n.drawingArea, { extra: s, additionalAngle: r, padding: a, size: o } = e, l = n.getPointPosition(t, i + s + a, r), c = Math.round(Sr(Me(l.angle + Tt))), u = V0(l.y, o.h, c), d = q0(c), h = U0(l.x, o.w, d);
8693
8697
  return {
8694
8698
  visible: !0,
8695
8699
  x: l.x,
@@ -8732,10 +8736,10 @@ function $0(n, t, e) {
8732
8736
  }
8733
8737
  return i;
8734
8738
  }
8735
- function U0(n) {
8739
+ function q0(n) {
8736
8740
  return n === 0 || n === 180 ? "center" : n < 180 ? "left" : "right";
8737
8741
  }
8738
- function q0(n, t, e) {
8742
+ function U0(n, t, e) {
8739
8743
  return e === "right" ? n -= t : e === "center" && (n -= t / 2), n;
8740
8744
  }
8741
8745
  function V0(n, t, e) {
@@ -8744,7 +8748,7 @@ function V0(n, t, e) {
8744
8748
  function X0(n, t, e) {
8745
8749
  const { left: i, top: s, right: r, bottom: a } = e, { backdropColor: o } = t;
8746
8750
  if (!J(o)) {
8747
- const l = Sn(t.borderRadius), c = qt(t.backdropPadding);
8751
+ const l = Sn(t.borderRadius), c = Ut(t.backdropPadding);
8748
8752
  n.fillStyle = o;
8749
8753
  const u = i - c.left, d = s - c.top, h = r - i + c.width, f = a - s + c.height;
8750
8754
  Object.values(l).some((p) => p !== 0) ? (n.beginPath(), fi(n, {
@@ -8799,7 +8803,7 @@ class $i extends fr {
8799
8803
  super(t), this.xCenter = void 0, this.yCenter = void 0, this.drawingArea = void 0, this._pointLabels = [], this._pointLabelItems = [];
8800
8804
  }
8801
8805
  setDimensions() {
8802
- const t = this._padding = qt(Wa(this.options) / 2), e = this.width = this.maxWidth - t.width, i = this.height = this.maxHeight - t.height;
8806
+ const t = this._padding = Ut(Wa(this.options) / 2), e = this.width = this.maxWidth - t.width, i = this.height = this.maxHeight - t.height;
8803
8807
  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);
8804
8808
  }
8805
8809
  determineDataLimits() {
@@ -8827,7 +8831,7 @@ class $i extends fr {
8827
8831
  }
8828
8832
  getIndexAngle(t) {
8829
8833
  const e = St / (this._pointLabels.length || 1), i = this.options.startAngle || 0;
8830
- return Me(t * e + Ut(i));
8834
+ return Me(t * e + qt(i));
8831
8835
  }
8832
8836
  getDistanceFromCenterForValue(t) {
8833
8837
  if (J(t))
@@ -8909,7 +8913,7 @@ class $i extends fr {
8909
8913
  const c = i.setContext(this.getContext(l)), u = At(c.font);
8910
8914
  if (r = this.getDistanceFromCenterForValue(this.ticks[l].value), c.showLabelBackdrop) {
8911
8915
  t.font = u.string, a = t.measureText(o.label).width, t.fillStyle = c.backdropColor;
8912
- const d = qt(c.backdropPadding);
8916
+ const d = Ut(c.backdropPadding);
8913
8917
  t.fillRect(-a / 2 - d.left, -r - u.size / 2 - d.top, a + d.width, u.size + d.height);
8914
8918
  }
8915
8919
  Vn(t, o.label, 0, -r, u, {
@@ -9075,7 +9079,7 @@ class os extends Gn {
9075
9079
  }
9076
9080
  init(t, e = {}) {
9077
9081
  const i = t.time || (t.time = {}), s = this._adapter = new Ad._date(t.adapters.date);
9078
- s.init(e), qi(i.displayFormats, s.formats()), this._parseOpts = {
9082
+ s.init(e), Ui(i.displayFormats, s.formats()), this._parseOpts = {
9079
9083
  parser: i.parser,
9080
9084
  round: i.round,
9081
9085
  isoWeekday: i.isoWeekday
@@ -9172,7 +9176,7 @@ class os extends Gn {
9172
9176
  return this.min + i * (this.max - this.min);
9173
9177
  }
9174
9178
  _getLabelSize(t) {
9175
- const e = this.options.ticks, i = this.ctx.measureText(t).width, s = Ut(this.isHorizontal() ? e.maxRotation : e.minRotation), r = Math.cos(s), a = Math.sin(s), o = this._resolveTickFontOptions(0).size;
9179
+ const e = this.options.ticks, i = this.ctx.measureText(t).width, s = qt(this.isHorizontal() ? e.maxRotation : e.minRotation), r = Math.cos(s), a = Math.sin(s), o = this._resolveTickFontOptions(0).size;
9176
9180
  return {
9177
9181
  w: i * r + o * a,
9178
9182
  h: i * a + o * r
@@ -9403,13 +9407,13 @@ let ux = {};
9403
9407
  function Kn() {
9404
9408
  return ux;
9405
9409
  }
9406
- function Ue(n, t) {
9410
+ function qe(n, t) {
9407
9411
  var o, l, c, u;
9408
9412
  const e = Kn(), i = (t == null ? void 0 : t.weekStartsOn) ?? ((l = (o = t == null ? void 0 : t.locale) == null ? void 0 : o.options) == null ? void 0 : l.weekStartsOn) ?? e.weekStartsOn ?? ((u = (c = e.locale) == null ? void 0 : c.options) == null ? void 0 : u.weekStartsOn) ?? 0, s = tt(n, t == null ? void 0 : t.in), r = s.getDay(), a = (r < i ? 7 : 0) + r - i;
9409
9413
  return s.setDate(s.getDate() - a), s.setHours(0, 0, 0, 0), s;
9410
9414
  }
9411
9415
  function mi(n, t) {
9412
- return Ue(n, { ...t, weekStartsOn: 1 });
9416
+ return qe(n, { ...t, weekStartsOn: 1 });
9413
9417
  }
9414
9418
  function th(n, t) {
9415
9419
  const e = tt(n, t == null ? void 0 : t.in), i = e.getFullYear(), s = Ht(e, 0);
@@ -9754,7 +9758,7 @@ const jx = {
9754
9758
  narrow: ["1", "2", "3", "4"],
9755
9759
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
9756
9760
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
9757
- }, Ux = {
9761
+ }, qx = {
9758
9762
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
9759
9763
  abbreviated: [
9760
9764
  "Jan",
@@ -9784,7 +9788,7 @@ const jx = {
9784
9788
  "November",
9785
9789
  "December"
9786
9790
  ]
9787
- }, qx = {
9791
+ }, Ux = {
9788
9792
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
9789
9793
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
9790
9794
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
@@ -9883,11 +9887,11 @@ const jx = {
9883
9887
  argumentCallback: (n) => n - 1
9884
9888
  }),
9885
9889
  month: Oi({
9886
- values: Ux,
9890
+ values: qx,
9887
9891
  defaultWidth: "wide"
9888
9892
  }),
9889
9893
  day: Oi({
9890
- values: qx,
9894
+ values: Ux,
9891
9895
  defaultWidth: "wide"
9892
9896
  }),
9893
9897
  dayPeriod: Oi({
@@ -10065,18 +10069,18 @@ function Lo(n, t) {
10065
10069
  var u, d, h, f;
10066
10070
  const e = tt(n, t == null ? void 0 : t.in), i = e.getFullYear(), s = Kn(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((d = (u = t == null ? void 0 : t.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? s.firstWeekContainsDate ?? ((f = (h = s.locale) == null ? void 0 : h.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, a = Ht((t == null ? void 0 : t.in) || n, 0);
10067
10071
  a.setFullYear(i + 1, 0, r), a.setHours(0, 0, 0, 0);
10068
- const o = Ue(a, t), l = Ht((t == null ? void 0 : t.in) || n, 0);
10072
+ const o = qe(a, t), l = Ht((t == null ? void 0 : t.in) || n, 0);
10069
10073
  l.setFullYear(i, 0, r), l.setHours(0, 0, 0, 0);
10070
- const c = Ue(l, t);
10074
+ const c = qe(l, t);
10071
10075
  return +e >= +o ? i + 1 : +e >= +c ? i : i - 1;
10072
10076
  }
10073
10077
  function g_(n, t) {
10074
10078
  var o, l, c, u;
10075
10079
  const e = Kn(), i = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((l = (o = t == null ? void 0 : t.locale) == null ? void 0 : o.options) == null ? void 0 : l.firstWeekContainsDate) ?? e.firstWeekContainsDate ?? ((u = (c = e.locale) == null ? void 0 : c.options) == null ? void 0 : u.firstWeekContainsDate) ?? 1, s = Lo(n, t), r = Ht((t == null ? void 0 : t.in) || n, 0);
10076
- return r.setFullYear(s, 0, i), r.setHours(0, 0, 0, 0), Ue(r, t);
10080
+ return r.setFullYear(s, 0, i), r.setHours(0, 0, 0, 0), qe(r, t);
10077
10081
  }
10078
10082
  function ch(n, t) {
10079
- const e = tt(n, t == null ? void 0 : t.in), i = +Ue(e, t) - +g_(e, t);
10083
+ const e = tt(n, t == null ? void 0 : t.in), i = +qe(e, t) - +g_(e, t);
10080
10084
  return Math.round(i / Jd) + 1;
10081
10085
  }
10082
10086
  function bt(n, t) {
@@ -11073,10 +11077,10 @@ class L_ extends gt {
11073
11077
  l,
11074
11078
  0,
11075
11079
  r.firstWeekContainsDate
11076
- ), e.setHours(0, 0, 0, 0), Ue(e, r);
11080
+ ), e.setHours(0, 0, 0, 0), qe(e, r);
11077
11081
  }
11078
11082
  const o = !("era" in i) || i.era === 1 ? s.year : 1 - s.year;
11079
- return e.setFullYear(o, 0, r.firstWeekContainsDate), e.setHours(0, 0, 0, 0), Ue(e, r);
11083
+ return e.setFullYear(o, 0, r.firstWeekContainsDate), e.setHours(0, 0, 0, 0), qe(e, r);
11080
11084
  }
11081
11085
  }
11082
11086
  class I_ extends gt {
@@ -11408,7 +11412,7 @@ class Y_ extends gt {
11408
11412
  return i >= 1 && i <= 53;
11409
11413
  }
11410
11414
  set(e, i, s, r) {
11411
- return Ue(B_(e, s, r), r);
11415
+ return qe(B_(e, s, r), r);
11412
11416
  }
11413
11417
  }
11414
11418
  function j_(n, t, e) {
@@ -11453,7 +11457,7 @@ class $_ extends gt {
11453
11457
  return mi(j_(e, s));
11454
11458
  }
11455
11459
  }
11456
- const U_ = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], q_ = [
11460
+ const q_ = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], U_ = [
11457
11461
  31,
11458
11462
  29,
11459
11463
  31,
@@ -11499,7 +11503,7 @@ class V_ extends gt {
11499
11503
  }
11500
11504
  validate(e, i) {
11501
11505
  const s = e.getFullYear(), r = bh(s), a = e.getMonth();
11502
- return r ? i >= 1 && i <= q_[a] : i >= 1 && i <= U_[a];
11506
+ return r ? i >= 1 && i <= U_[a] : i >= 1 && i <= q_[a];
11503
11507
  }
11504
11508
  set(e, i, s) {
11505
11509
  return e.setDate(s), e.setHours(0, 0, 0, 0), e;
@@ -12445,7 +12449,7 @@ const No = (n, t) => {
12445
12449
  f = isNaN(h) ? h : Po(h);
12446
12450
  else {
12447
12451
  const y = n.translateUnit(n.units, h);
12448
- f = `${n.units === "usd" ? "$" : ""}${h % 1 === 0 ? Ua.format(h) : Ua.format(Number(h.toFixed(Xw)))} ${y}`;
12452
+ f = `${n.units === "usd" ? "$" : ""}${h % 1 === 0 ? qa.format(h) : qa.format(Number(h.toFixed(Xw)))} ${y}`;
12449
12453
  }
12450
12454
  let p;
12451
12455
  return l && u.dataset.label !== u.label ? p = u.dataset.label : c ? p = u.dataset.labels[u.dataIndex] : p = u.dataset.label, {
@@ -12458,7 +12462,7 @@ const No = (n, t) => {
12458
12462
  };
12459
12463
  }).sort(i), n.left = `${e.x}px`, n.top = `${e.y}px`, n.showTooltip = !0;
12460
12464
  }
12461
- }, Yw = (n) => n && n.datasets && n.datasets.length, jw = (n) => Yw(n) && n.datasets.some((t) => t.data.length), $w = (n) => jw(n) && n.datasets.some((t) => t.data.length > 1), Uw = (n) => $w(n) && n.datasets.some((t) => t.data[0] && Ao(t.data[0].x)), qw = (n) => Uw(n) && n.datasets.some(
12465
+ }, Yw = (n) => n && n.datasets && n.datasets.length, jw = (n) => Yw(n) && n.datasets.some((t) => t.data.length), $w = (n) => jw(n) && n.datasets.some((t) => t.data.length > 1), qw = (n) => $w(n) && n.datasets.some((t) => t.data[0] && Ao(t.data[0].x)), Uw = (n) => qw(n) && n.datasets.some(
12462
12466
  (t) => t.data[0] && t.data[0].x.toString().length >= 13
12463
12467
  ), zo = (n, t, e) => {
12464
12468
  const s = Math.min(t / 1150, 1);
@@ -12484,7 +12488,7 @@ const vh = (n, t, e) => {
12484
12488
  })).sort(e);
12485
12489
  }, Xw = 2, Gw = 10, Kw = 12;
12486
12490
  var ed;
12487
- const Ua = new Intl.NumberFormat(((ed = document == null ? void 0 : document.documentElement) == null ? void 0 : ed.lang) || "en-US"), qa = 10, Yc = {
12491
+ const qa = new Intl.NumberFormat(((ed = document == null ? void 0 : document.documentElement) == null ? void 0 : ed.lang) || "en-US"), Ua = 10, Yc = {
12488
12492
  "1XXCount|1XX|1[0-9][0-9]": { solid: "#0072E5", light: "#4DA6FF", description: "Informational" },
12489
12493
  "SuccessfulRequests|2XXCount|2XX|2[0-9][0-9]|SUCCESS": { solid: "#0BB652", light: "#6FCC83", description: "Success" },
12490
12494
  "3XXCount|3XX|3[0-9][0-9]": { solid: "#FDC53B", light: "#FFD982", description: "Redirection" },
@@ -12544,7 +12548,7 @@ const Ua = new Intl.NumberFormat(((ed = document == null ? void 0 : document.doc
12544
12548
  pointBorderWidth: 1.2,
12545
12549
  borderJoinStyle: "round",
12546
12550
  fill: !0
12547
- }, nv = 2, iv = 0, oa = /* @__PURE__ */ new Map(), la = (n, t) => t === "bytes" ? Po(n) : t === "count/minute" ? n.toFixed(2) : Ua.format(n), jc = (n) => {
12551
+ }, nv = 2, iv = 0, oa = /* @__PURE__ */ new Map(), la = (n, t) => t === "bytes" ? Po(n) : t === "count/minute" ? n.toFixed(2) : qa.format(n), jc = (n) => {
12548
12552
  const e = document.createElement("canvas").getContext("2d"), i = At({});
12549
12553
  return e.font = i.string, e.measureText(n).width;
12550
12554
  }, sv = () => {
@@ -12557,7 +12561,7 @@ const Ua = new Intl.NumberFormat(((ed = document == null ? void 0 : document.doc
12557
12561
  }, rv = (n) => n.datasets.reduce(
12558
12562
  (t, e) => t + e.data.reduce((i, s) => isNaN(s) ? i : i + s, 0),
12559
12563
  0
12560
- ), $c = (n, t) => t.datasets.reduce((e, i, s) => n.isDatasetVisible(s) ? e + i.data.reduce((r, a) => isNaN(a) ? r : r + a, 0) : e, 0), Uc = (n, t) => t === 0 ? " (0.0%)" : ` (${(n / t * 100).toFixed(1)}%)`, qc = "#e0e4ea", av = {
12564
+ ), $c = (n, t) => t.datasets.reduce((e, i, s) => n.isDatasetVisible(s) ? e + i.data.reduce((r, a) => isNaN(a) ? r : r + a, 0) : e, 0), qc = (n, t) => t === 0 ? " (0.0%)" : ` (${(n / t * 100).toFixed(1)}%)`, Uc = "#e0e4ea", av = {
12561
12565
  100: ["#c8e2fd", "#80bfff", "#4da6ff", "#1a8cff", "#0072e5", "#0059b2"],
12562
12566
  200: ["#ceedd2", "#9edca6", "#89d595", "#6fcc83", "#44c26b", "#0bb652", "#0ca84a", "#169643", "#196e33", "#1b572a"],
12563
12567
  300: ["#fff4db", "#ffe9b8", "#ffe2a1", "#ffd982", "#ffd062", "#fdc53b", "#f4bb1e", "#e8b00b", "#d9a30f", "#c89407"],
@@ -12607,7 +12611,7 @@ const Ua = new Intl.NumberFormat(((ed = document == null ? void 0 : document.doc
12607
12611
  [500, Ri("500", [500, 501, 502, 503, 504, 505, 506, 507, 508, 510, 511])]
12608
12612
  ]), Sh = (n) => {
12609
12613
  const t = parseInt(n, 10), e = Math.floor(t / 100) * 100, i = ov.get(e);
12610
- return i === void 0 ? qc : i.get(t) ?? i.get(-1) ?? qc;
12614
+ return i === void 0 ? Uc : i.get(t) ?? i.get(-1) ?? Uc;
12611
12615
  }, tC = (n) => {
12612
12616
  const t = Sh(n);
12613
12617
  return { solid: t, light: t };
@@ -13092,7 +13096,7 @@ function Nv(n) {
13092
13096
  size: e,
13093
13097
  style: (c = l == null ? void 0 : l.isLabelEmpty) != null && c[o] ? "italic" : "normal"
13094
13098
  };
13095
- }, s = (a, o, l) => a.chart.options.indexAxis === a.axis ? (o = a.getLabelForValue(l), o && o.length > qa ? o.slice(0, qa) + "..." : o) : a.getLabelForValue(Number(o));
13099
+ }, s = (a, o, l) => a.chart.options.indexAxis === a.axis ? (o = a.getLabelForValue(l), o && o.length > Ua ? o.slice(0, Ua) + "..." : o) : a.getLabelForValue(Number(o));
13096
13100
  return Y(() => {
13097
13101
  var a, o, l, c, u, d, h, f;
13098
13102
  return {
@@ -13291,7 +13295,7 @@ const $v = [
13291
13295
  "status_code",
13292
13296
  "status_code_grouped",
13293
13297
  "time"
13294
- ], Uv = ms(Oh), qv = [
13298
+ ], qv = ms(Oh), Uv = [
13295
13299
  ...Oh,
13296
13300
  "application",
13297
13301
  "consumer",
@@ -13301,7 +13305,7 @@ const $v = [
13301
13305
  "upstream_status_code_grouped",
13302
13306
  "response_source",
13303
13307
  "data_plane_node_version"
13304
- ], Vv = ms(qv), Xv = [
13308
+ ], Vv = ms(Uv), Xv = [
13305
13309
  "control_plane",
13306
13310
  "control_plane_group",
13307
13311
  "gateway_service",
@@ -13361,7 +13365,7 @@ const Zv = [
13361
13365
  "upstream_status_code"
13362
13366
  ];
13363
13367
  ms(Zv);
13364
- new Set(Uv), new Set(Vv), new Set(Gv);
13368
+ new Set(qv), new Set(Vv), new Set(Gv);
13365
13369
  const Eh = 6048e5, Qv = 864e5, Jv = 60, t1 = 3600, su = Symbol.for("constructDateFrom");
13366
13370
  function Le(n, t) {
13367
13371
  return typeof n == "function" ? n(t) : n && typeof n == "object" && su in n ? n[su](t) : n instanceof Date ? new n.constructor(t) : new Date(t);
@@ -13909,7 +13913,7 @@ function $1(n, t) {
13909
13913
  const a = ys(), o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((i = (e = t == null ? void 0 : t.locale) == null ? void 0 : e.options) == null ? void 0 : i.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((r = (s = a.locale) == null ? void 0 : s.options) == null ? void 0 : r.firstWeekContainsDate) ?? 1, l = Rh(n, t), c = Le((t == null ? void 0 : t.in) || n, 0);
13910
13914
  return c.setFullYear(l, 0, o), c.setHours(0, 0, 0, 0), on(c, t);
13911
13915
  }
13912
- function U1(n, t) {
13916
+ function q1(n, t) {
13913
13917
  const e = ce(n, t == null ? void 0 : t.in), i = +on(e, t) - +$1(e, t);
13914
13918
  return Math.round(i / Eh) + 1;
13915
13919
  }
@@ -14138,7 +14142,7 @@ const gn = {
14138
14142
  },
14139
14143
  // Local week of year
14140
14144
  w: function(n, t, e, i) {
14141
- const s = U1(n, i);
14145
+ const s = q1(n, i);
14142
14146
  return t === "wo" ? e.ordinalNumber(s, { unit: "week" }) : xt(s, t.length);
14143
14147
  },
14144
14148
  // ISO week of year
@@ -14502,7 +14506,7 @@ const uu = (n, t) => {
14502
14506
  default:
14503
14507
  return t.time({ width: "full" });
14504
14508
  }
14505
- }, q1 = (n, t) => {
14509
+ }, U1 = (n, t) => {
14506
14510
  const e = n.match(/(P+)(p+)?/) || [], i = e[1], s = e[2];
14507
14511
  if (!s)
14508
14512
  return uu(n, t);
@@ -14525,7 +14529,7 @@ const uu = (n, t) => {
14525
14529
  return r.replace("{{date}}", uu(i, t)).replace("{{time}}", Lh(s, t));
14526
14530
  }, V1 = {
14527
14531
  p: Lh,
14528
- P: q1
14532
+ P: U1
14529
14533
  }, X1 = /^D+$/, G1 = /^Y+$/, K1 = ["D", "DD", "YY", "YYYY"];
14530
14534
  function Z1(n) {
14531
14535
  return X1.test(n);
@@ -15164,7 +15168,7 @@ class $M extends ze {
15164
15168
  return t && (i = yi(i, t)), i;
15165
15169
  }
15166
15170
  }
15167
- class UM extends ze {
15171
+ class qM extends ze {
15168
15172
  rawEnd(t) {
15169
15173
  let e = di(this.tzAdjustedDate(t));
15170
15174
  return t && (e = yi(e, t)), e;
@@ -15288,21 +15292,21 @@ Rt.FIFTEEN_MIN, new ze({
15288
15292
  fineGrainedDefaultGranularity: "twoHourly",
15289
15293
  allowedTiers: ["plus", "enterprise"],
15290
15294
  allowedGranularitiesOverride: ["thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily"]
15291
- }), Rt.PREVIOUS_MONTH, new UM({
15295
+ }), Rt.PREVIOUS_MONTH, new qM({
15292
15296
  key: Rt.PREVIOUS_MONTH,
15293
15297
  display: "Previous month",
15294
15298
  timeframeText: "Month",
15295
15299
  timeframeLength: () => {
15296
15300
  let n = 0;
15297
15301
  const t = di(/* @__PURE__ */ new Date()), e = di(Ih(/* @__PURE__ */ new Date(), 1));
15298
- return t.getTimezoneOffset() !== e.getTimezoneOffset() && (n = qM(t, e)), 60 * 60 * 24 * lM((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 1)) + uM(n);
15302
+ return t.getTimezoneOffset() !== e.getTimezoneOffset() && (n = UM(t, e)), 60 * 60 * 24 * lM((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 1)) + uM(n);
15299
15303
  },
15300
15304
  defaultResponseGranularity: "daily",
15301
15305
  dataGranularity: "daily",
15302
15306
  isRelative: !1,
15303
15307
  allowedTiers: ["plus", "enterprise"]
15304
15308
  });
15305
- function qM(n, t) {
15309
+ function UM(n, t) {
15306
15310
  return dM(n.getTimezoneOffset() - t.getTimezoneOffset());
15307
15311
  }
15308
15312
  function VM(n) {
@@ -15779,7 +15783,7 @@ function Wh(n, { x: t, y: e, x2: i, y2: s }, r, { borderWidth: a, hitTolerance:
15779
15783
  return r === "x" ? c : (r === "y" || c) && u;
15780
15784
  }
15781
15785
  function Bh(n, { rect: t, center: e }, i, { rotation: s, borderWidth: r, hitTolerance: a }) {
15782
- const o = Qn(n, e, Ut(-s));
15786
+ const o = Qn(n, e, qt(-s));
15783
15787
  return Wh(o, t, i, { borderWidth: r, hitTolerance: a });
15784
15788
  }
15785
15789
  function Jn(n, t) {
@@ -15820,7 +15824,7 @@ function _S(n, t) {
15820
15824
  const { x: e, width: i } = n, s = t.textAlign;
15821
15825
  return s === "center" ? e + i / 2 : s === "end" || s === "right" ? e + i : e;
15822
15826
  }
15823
- function Uh(n, t, { borderWidth: e, position: i, xAdjust: s, yAdjust: r }, a) {
15827
+ function qh(n, t, { borderWidth: e, position: i, xAdjust: s, yAdjust: r }, a) {
15824
15828
  const o = nt(a), l = t.width + (o ? a.width : 0) + e, c = t.height + (o ? a.height : 0) + e, u = $o(i), d = Du(n.x, l, s, u.x), h = Du(n.y, c, r, u.y);
15825
15829
  return {
15826
15830
  x: d,
@@ -15842,10 +15846,10 @@ function $o(n, t = "center") {
15842
15846
  y: n
15843
15847
  });
15844
15848
  }
15845
- const qh = (n, t) => n && n.autoFit && t < 1;
15849
+ const Uh = (n, t) => n && n.autoFit && t < 1;
15846
15850
  function Vh(n, t) {
15847
15851
  const e = n.font, i = mt(e) ? e : [e];
15848
- return qh(n, t) ? i.map(function(s) {
15852
+ return Uh(n, t) ? i.map(function(s) {
15849
15853
  const r = At(s);
15850
15854
  return r.size = Math.floor(s.size * t), r.lineHeight = s.lineHeight, At(r);
15851
15855
  }) : i.map((s) => At(s));
@@ -15891,7 +15895,7 @@ function Er(n) {
15891
15895
  }
15892
15896
  }
15893
15897
  function Ar(n, { x: t, y: e }, i) {
15894
- i && (n.translate(t, e), n.rotate(Ut(i)), n.translate(-t, -e));
15898
+ i && (n.translate(t, e), n.rotate(qt(i)), n.translate(-t, -e));
15895
15899
  }
15896
15900
  function ln(n, t) {
15897
15901
  if (t && t.borderWidth)
@@ -16022,7 +16026,7 @@ function ES(n, t) {
16022
16026
  return n.restore();
16023
16027
  const { separatorStart: l, separatorEnd: c } = AS(t, a), { sideStart: u, sideEnd: d } = LS(t, a, l);
16024
16028
  (r.margin > 0 || s.borderWidth === 0) && (n.moveTo(l.x, l.y), n.lineTo(c.x, c.y)), n.moveTo(u.x, u.y), n.lineTo(d.x, d.y);
16025
- const h = Qn({ x: e, y: i }, t.getCenterPoint(), Ut(-t.rotation));
16029
+ const h = Qn({ x: e, y: i }, t.getCenterPoint(), qt(-t.rotation));
16026
16030
  n.lineTo(h.x, h.y), n.stroke(), n.restore();
16027
16031
  }
16028
16032
  function AS(n, t) {
@@ -16050,7 +16054,7 @@ function FS(n, t) {
16050
16054
  function NS(n, t) {
16051
16055
  const { x: e, y: i, x2: s, y2: r, width: a, height: o, pointX: l, pointY: c, centerX: u, centerY: d, rotation: h } = n, f = { x: u, y: d }, p = t.start, y = On(a, p), x = On(o, p), _ = [e, e + y, e + y, s], v = [i + x, r, i, r], S = [];
16052
16056
  for (let M = 0; M < 4; M++) {
16053
- const D = Qn({ x: _[M], y: v[M] }, f, Ut(h));
16057
+ const D = Qn({ x: _[M], y: v[M] }, f, qt(h));
16054
16058
  S.push({
16055
16059
  position: Jh[M],
16056
16060
  distance: hi(D, { x: l, y: c })
@@ -16091,7 +16095,7 @@ function ef(n, t) {
16091
16095
  let a = e.width / 2, o = e.height / 2;
16092
16096
  return s && (a = bi(s, t.xValue, s.left + s.width / 2)), r && (o = bi(r, t.yValue, r.top + r.height / 2)), { x: a, y: o };
16093
16097
  }
16094
- function Uo(n, t) {
16098
+ function qo(n, t) {
16095
16099
  const e = n.scales, i = e[Xn(e, t, "xScaleID")], s = e[Xn(e, t, "yScaleID")];
16096
16100
  if (!i && !s)
16097
16101
  return {};
@@ -16112,7 +16116,7 @@ function Uo(n, t) {
16112
16116
  }
16113
16117
  function nf(n, t) {
16114
16118
  if (!Xh(t)) {
16115
- const e = Uo(n, t);
16119
+ const e = qo(n, t);
16116
16120
  let i = t.radius;
16117
16121
  (!i || isNaN(i)) && (i = Math.min(e.width, e.height) / 2, t.radius = i);
16118
16122
  const s = i * 2, r = e.centerX + t.xAdjust, a = e.centerY + t.yAdjust;
@@ -16135,11 +16139,11 @@ function HS(n, t) {
16135
16139
  return s ? BS(s, r, t) : YS(e, r, t), r;
16136
16140
  }
16137
16141
  function sf(n, t) {
16138
- const e = Uo(n, t);
16142
+ const e = qo(n, t);
16139
16143
  return e.initProperties = _i(n, e, t), e.elements = [{
16140
16144
  type: "label",
16141
16145
  optionScope: "label",
16142
- properties: US(n, e, t),
16146
+ properties: qS(n, e, t),
16143
16147
  initProperties: e.initProperties
16144
16148
  }], e;
16145
16149
  }
@@ -16199,10 +16203,10 @@ function rf(n, t) {
16199
16203
  const { start: e, end: i, borderWidth: s } = n, { position: r, padding: { start: a, end: o }, adjust: l } = t, c = i - s - e - a - o - t.size;
16200
16204
  return e + s / 2 + l + jo(c, r);
16201
16205
  }
16202
- function US(n, t, e) {
16206
+ function qS(n, t, e) {
16203
16207
  const i = e.label;
16204
16208
  i.backgroundColor = "transparent", i.callout.display = !1;
16205
- const s = $o(i.position), r = qt(i.padding), a = Rr(n.ctx, i), o = jS({ properties: t, options: e }, a, s, r), l = $S({ properties: t, options: e }, a, s, r), c = a.width + r.width, u = a.height + r.height;
16209
+ const s = $o(i.position), r = Ut(i.padding), a = Rr(n.ctx, i), o = jS({ properties: t, options: e }, a, s, r), l = $S({ properties: t, options: e }, a, s, r), c = a.width + r.width, u = a.height + r.height;
16206
16210
  return {
16207
16211
  x: o,
16208
16212
  y: l,
@@ -16215,9 +16219,9 @@ function US(n, t, e) {
16215
16219
  rotation: i.rotation
16216
16220
  };
16217
16221
  }
16218
- const Za = ["enter", "leave"], qo = Za.concat("click");
16219
- function qS(n, t, e) {
16220
- t.listened = Gh(e, qo, t.listeners), t.moveListened = !1, Za.forEach((i) => {
16222
+ const Za = ["enter", "leave"], Uo = Za.concat("click");
16223
+ function US(n, t, e) {
16224
+ t.listened = Gh(e, Uo, t.listeners), t.moveListened = !1, Za.forEach((i) => {
16221
16225
  xe(e[i]) && (t.moveListened = !0);
16222
16226
  }), (!t.listened || !t.moveListened) && t.annotations.forEach((i) => {
16223
16227
  !t.listened && xe(i.click) && (t.listened = !0), t.moveListened || Za.forEach((s) => {
@@ -16330,7 +16334,7 @@ function Eu(n, t, e, i) {
16330
16334
  }
16331
16335
  class vi extends Zt {
16332
16336
  inRange(t, e, i, s) {
16333
- const { x: r, y: a } = Qn({ x: t, y: e }, this.getCenterPoint(s), Ut(-this.options.rotation));
16337
+ const { x: r, y: a } = Qn({ x: t, y: e }, this.getCenterPoint(s), qt(-this.options.rotation));
16334
16338
  return Wh({ x: r, y: a }, this.getProps(["x", "y", "x2", "y2"], s), i, this.options);
16335
16339
  }
16336
16340
  getCenterPoint(t) {
@@ -16435,8 +16439,8 @@ class Lr extends Zt {
16435
16439
  const { controllerMeta: s, point: r, radius: a } = rD(t, e, i);
16436
16440
  let o = Rr(t.ctx, e);
16437
16441
  const l = aD(o, a);
16438
- qh(e, l) && (o = { width: o.width * l, height: o.height * l });
16439
- const { position: c, xAdjust: u, yAdjust: d } = e, h = Uh(r, o, { borderWidth: 0, position: c, xAdjust: u, yAdjust: d });
16442
+ Uh(e, l) && (o = { width: o.width * l, height: o.height * l });
16443
+ const { position: c, xAdjust: u, yAdjust: d } = e, h = qh(r, o, { borderWidth: 0, position: c, xAdjust: u, yAdjust: d });
16440
16444
  return {
16441
16445
  initProperties: _i(t, h, e),
16442
16446
  ...h,
@@ -16565,10 +16569,10 @@ class xs extends Zt {
16565
16569
  if (Xh(e))
16566
16570
  i = ef(t, e);
16567
16571
  else {
16568
- const { centerX: o, centerY: l } = Uo(t, e);
16572
+ const { centerX: o, centerY: l } = qo(t, e);
16569
16573
  i = { x: o, y: l };
16570
16574
  }
16571
- const s = qt(e.padding), r = Rr(t.ctx, e), a = Uh(i, r, e, s);
16575
+ const s = Ut(e.padding), r = Rr(t.ctx, e), a = qh(i, r, e, s);
16572
16576
  return {
16573
16577
  initProperties: _i(t, a, e),
16574
16578
  pointX: i.x,
@@ -16643,7 +16647,7 @@ xs.defaultRoutes = {
16643
16647
  borderColor: "color"
16644
16648
  };
16645
16649
  function cD({ x: n, y: t, width: e, height: i, options: s }) {
16646
- const r = s.borderWidth / 2, a = qt(s.padding);
16650
+ const r = s.borderWidth / 2, a = Ut(s.padding);
16647
16651
  return {
16648
16652
  x: n + a.left + r,
16649
16653
  y: t + a.top + r,
@@ -16651,7 +16655,7 @@ function cD({ x: n, y: t, width: e, height: i, options: s }) {
16651
16655
  height: i - a.top - a.bottom - s.borderWidth
16652
16656
  };
16653
16657
  }
16654
- const Vo = (n, t, e) => ({ x: n.x + e * (t.x - n.x), y: n.y + e * (t.y - n.y) }), Qa = (n, t, e) => Vo(t, e, Math.abs((n - t.y) / (e.y - t.y))).x, Au = (n, t, e) => Vo(t, e, Math.abs((n - t.x) / (e.x - t.x))).y, Ui = (n) => n * n, uD = (n, t, { x: e, y: i, x2: s, y2: r }, a) => a === "y" ? { start: Math.min(i, r), end: Math.max(i, r), value: t } : { start: Math.min(e, s), end: Math.max(e, s), value: n }, Ru = (n, t, e, i) => (1 - i) * (1 - i) * n + 2 * (1 - i) * i * t + i * i * e, Ja = (n, t, e, i) => ({ x: Ru(n.x, t.x, e.x, i), y: Ru(n.y, t.y, e.y, i) }), Lu = (n, t, e, i) => 2 * (1 - i) * (t - n) + 2 * i * (e - t), Iu = (n, t, e, i) => -Math.atan2(Lu(n.x, t.x, e.x, i), Lu(n.y, t.y, e.y, i)) + 0.5 * lt;
16658
+ const Vo = (n, t, e) => ({ x: n.x + e * (t.x - n.x), y: n.y + e * (t.y - n.y) }), Qa = (n, t, e) => Vo(t, e, Math.abs((n - t.y) / (e.y - t.y))).x, Au = (n, t, e) => Vo(t, e, Math.abs((n - t.x) / (e.x - t.x))).y, qi = (n) => n * n, uD = (n, t, { x: e, y: i, x2: s, y2: r }, a) => a === "y" ? { start: Math.min(i, r), end: Math.max(i, r), value: t } : { start: Math.min(e, s), end: Math.max(e, s), value: n }, Ru = (n, t, e, i) => (1 - i) * (1 - i) * n + 2 * (1 - i) * i * t + i * i * e, Ja = (n, t, e, i) => ({ x: Ru(n.x, t.x, e.x, i), y: Ru(n.y, t.y, e.y, i) }), Lu = (n, t, e, i) => 2 * (1 - i) * (t - n) + 2 * i * (e - t), Iu = (n, t, e, i) => -Math.atan2(Lu(n.x, t.x, e.x, i), Lu(n.y, t.y, e.y, i)) + 0.5 * lt;
16655
16659
  class _s extends Zt {
16656
16660
  inRange(t, e, i, s) {
16657
16661
  const r = (this.options.borderWidth + this.options.hitTolerance) / 2;
@@ -16662,7 +16666,7 @@ class _s extends Zt {
16662
16666
  const { chart: u } = this.$context, d = t * u.currentDevicePixelRatio, h = e * u.currentDevicePixelRatio, f = l.isPointInStroke(o, d, h) || to(this, a, s);
16663
16667
  return l.restore(), f;
16664
16668
  }
16665
- const c = Ui(r);
16669
+ const c = qi(r);
16666
16670
  return gD(this, a, c, s) || to(this, a, s);
16667
16671
  }
16668
16672
  return dD(this, { mouseX: t, mouseY: e }, i, { hitSize: r, useFinalPosition: s });
@@ -16820,16 +16824,16 @@ function fD(n, t, e) {
16820
16824
  return { x: i, y: s, x2: r, y2: a, width: Math.abs(r - i), height: Math.abs(a - s) };
16821
16825
  }
16822
16826
  function gD(n, { mouseX: t, mouseY: e }, i = jn, s) {
16823
- const { x: r, y: a, x2: o, y2: l } = n.getProps(["x", "y", "x2", "y2"], s), c = o - r, u = l - a, d = Ui(c) + Ui(u), h = d === 0 ? -1 : ((t - r) * c + (e - a) * u) / d;
16827
+ const { x: r, y: a, x2: o, y2: l } = n.getProps(["x", "y", "x2", "y2"], s), c = o - r, u = l - a, d = qi(c) + qi(u), h = d === 0 ? -1 : ((t - r) * c + (e - a) * u) / d;
16824
16828
  let f, p;
16825
- return h < 0 ? (f = r, p = a) : h > 1 ? (f = o, p = l) : (f = r + h * c, p = a + h * u), Ui(t - f) + Ui(e - p) <= i;
16829
+ return h < 0 ? (f = r, p = a) : h > 1 ? (f = o, p = l) : (f = r + h * c, p = a + h * u), qi(t - f) + qi(e - p) <= i;
16826
16830
  }
16827
16831
  function to(n, { mouseX: t, mouseY: e }, i, s) {
16828
16832
  const r = n.label;
16829
16833
  return r.options.display && r.inRange(t, e, s, i);
16830
16834
  }
16831
16835
  function pD(n, t, e) {
16832
- const i = e.borderWidth, s = qt(e.padding), r = Rr(n.ctx, e), a = r.width + s.width + i, o = r.height + s.height + i;
16836
+ const i = e.borderWidth, s = Ut(e.padding), r = Rr(n.ctx, e), a = r.width + s.width + i, o = r.height + s.height + i;
16833
16837
  return yD(t, e, { width: a, height: o, padding: s }, n.chartArea);
16834
16838
  }
16835
16839
  function mD(n) {
@@ -16837,7 +16841,7 @@ function mD(n) {
16837
16841
  return r > lt / 2 ? r - lt : r < lt / -2 ? r + lt : r;
16838
16842
  }
16839
16843
  function yD(n, t, e, i) {
16840
- const { width: s, height: r, padding: a } = e, { xAdjust: o, yAdjust: l } = t, c = { x: n.x, y: n.y }, u = { x: n.x2, y: n.y2 }, d = t.rotation === "auto" ? mD(n) : Ut(t.rotation), h = bD(s, r, d), f = xD(n, t, { labelSize: h, padding: a }, i), p = n.cp ? Ja(c, n.cp, u, f) : Vo(c, u, f), y = { size: h.w, min: i.left, max: i.right, padding: a.left }, x = { size: h.h, min: i.top, max: i.bottom, padding: a.top }, _ = Hu(p.x, y) + o, v = Hu(p.y, x) + l;
16844
+ const { width: s, height: r, padding: a } = e, { xAdjust: o, yAdjust: l } = t, c = { x: n.x, y: n.y }, u = { x: n.x2, y: n.y2 }, d = t.rotation === "auto" ? mD(n) : qt(t.rotation), h = bD(s, r, d), f = xD(n, t, { labelSize: h, padding: a }, i), p = n.cp ? Ja(c, n.cp, u, f) : Vo(c, u, f), y = { size: h.w, min: i.left, max: i.right, padding: a.left }, x = { size: h.h, min: i.top, max: i.bottom, padding: a.top }, _ = Hu(p.x, y) + o, v = Hu(p.y, x) + l;
16841
16845
  return {
16842
16846
  x: _ - s / 2,
16843
16847
  y: v - r / 2,
@@ -16921,7 +16925,7 @@ class ws extends Zt {
16921
16925
  const r = this.options.rotation, a = (this.options.borderWidth + this.options.hitTolerance) / 2;
16922
16926
  if (i !== "x" && i !== "y")
16923
16927
  return MD({ x: t, y: e }, this.getProps(["width", "height", "centerX", "centerY"], s), r, a);
16924
- 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 = Qn({ x: t, y: e }, this.getCenterPoint(s), Ut(-r));
16928
+ 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 = Qn({ x: t, y: e }, this.getCenterPoint(s), qt(-r));
16925
16929
  return h[i] >= d.start - a - jn && h[i] <= d.end + a + jn;
16926
16930
  }
16927
16931
  getCenterPoint(t) {
@@ -16977,7 +16981,7 @@ function MD(n, t, e, i) {
16977
16981
  const { width: s, height: r, centerX: a, centerY: o } = t, l = s / 2, c = r / 2;
16978
16982
  if (l <= 0 || c <= 0)
16979
16983
  return !1;
16980
- const u = Ut(e || 0), d = Math.cos(u), h = Math.sin(u), f = Math.pow(d * (n.x - a) + h * (n.y - o), 2), p = Math.pow(h * (n.x - a) - d * (n.y - o), 2);
16984
+ const u = qt(e || 0), d = Math.cos(u), h = Math.sin(u), f = Math.pow(d * (n.x - a) + h * (n.y - o), 2), p = Math.pow(h * (n.x - a) - d * (n.y - o), 2);
16981
16985
  return f / Math.pow(l + i, 2) + p / Math.pow(c + i, 2) <= 1.0001;
16982
16986
  }
16983
16987
  class Ir extends Zt {
@@ -17038,7 +17042,7 @@ class Fr extends Zt {
17038
17042
  inRange(t, e, i, s) {
17039
17043
  if (i !== "x" && i !== "y")
17040
17044
  return this.options.radius >= 0.1 && this.elements.length > 1 && DD(this.elements, t, e, s);
17041
- const r = Qn({ x: t, y: e }, this.getCenterPoint(s), Ut(-this.options.rotation)), a = this.elements.map((c) => i === "y" ? c.bY : c.bX), o = Math.min(...a), l = Math.max(...a);
17045
+ const r = Qn({ x: t, y: e }, this.getCenterPoint(s), qt(-this.options.rotation)), a = this.elements.map((c) => i === "y" ? c.bY : c.bX), o = Math.min(...a), l = Math.max(...a);
17042
17046
  return r[i] >= o && r[i] <= l;
17043
17047
  }
17044
17048
  getCenterPoint(t) {
@@ -17140,7 +17144,7 @@ Object.keys(Dn).forEach((n) => {
17140
17144
  });
17141
17145
  const kD = {
17142
17146
  update: Object.assign
17143
- }, TD = qo.concat(wr), Yu = (n, t) => nt(t) ? io(n, t) : n, no = (n) => n === "color" || n === "font";
17147
+ }, TD = Uo.concat(wr), Yu = (n, t) => nt(t) ? io(n, t) : n, no = (n) => n === "color" || n === "font";
17144
17148
  function Xo(n = "line") {
17145
17149
  return Dn[n] ? n : (console.warn(`Unknown annotation type: '${n}', defaulting to 'line'`), "line");
17146
17150
  }
@@ -17208,7 +17212,7 @@ function RD(n, t) {
17208
17212
  return n;
17209
17213
  }
17210
17214
  var LD = "3.1.0";
17211
- const mn = /* @__PURE__ */ new Map(), ju = (n) => n.type !== "doughnutLabel", ID = qo.concat(wr);
17215
+ const mn = /* @__PURE__ */ new Map(), ju = (n) => n.type !== "doughnutLabel", ID = Uo.concat(wr);
17212
17216
  var $u = {
17213
17217
  id: "annotation",
17214
17218
  version: LD,
@@ -17248,7 +17252,7 @@ var $u = {
17248
17252
  },
17249
17253
  afterUpdate(n, t, e) {
17250
17254
  const i = mn.get(n);
17251
- qS(n, i, e), CD(n, i, e, t.mode), i.visibleElements = i.elements.filter((s) => !s.skip && s.options.display), KS(n, i, e);
17255
+ US(n, i, e), CD(n, i, e, t.mode), i.visibleElements = i.elements.filter((s) => !s.skip && s.options.display), KS(n, i, e);
17252
17256
  },
17253
17257
  beforeDatasetsDraw(n, t, e) {
17254
17258
  Ni(n, "beforeDatasetsDraw", e.clip);
@@ -17437,7 +17441,7 @@ const zD = { class: "tooltip-title" }, HD = { class: "title font-bold" }, WD = {
17437
17441
  ref_key: "tooltipEl",
17438
17442
  ref: s,
17439
17443
  class: vn(["tooltip-container", { locked: n.locked }]),
17440
- style: Un({
17444
+ style: qn({
17441
17445
  transform: n.locked ? `translate(${l.value.left}, ${l.value.top})` : `translate(${n.left}, ${n.top})`,
17442
17446
  left: "0",
17443
17447
  top: "0",
@@ -17459,7 +17463,7 @@ const zD = { class: "tooltip-title" }, HD = { class: "title font-bold" }, WD = {
17459
17463
  n.series.length ? (Z(), dt("li", YD, [
17460
17464
  ut("div", {
17461
17465
  class: "square-marker",
17462
- style: Un({ background: y, "border-color": x })
17466
+ style: qn({ background: y, "border-color": x })
17463
17467
  }, null, 4),
17464
17468
  ut("span", {
17465
17469
  class: vn(["display-label", { empty: S }])
@@ -17475,7 +17479,7 @@ const zD = { class: "tooltip-title" }, HD = { class: "title font-bold" }, WD = {
17475
17479
  for (const [i, s] of t)
17476
17480
  e[i] = s;
17477
17481
  return e;
17478
- }, Go = /* @__PURE__ */ cn($D, [["__scopeId", "data-v-fcce9589"]]), UD = ["onClick"], qD = {
17482
+ }, Go = /* @__PURE__ */ cn($D, [["__scopeId", "data-v-fcce9589"]]), qD = ["onClick"], UD = {
17479
17483
  key: 0,
17480
17484
  class: "sub-label"
17481
17485
  }, VD = { class: "tooltip-content" }, XD = /* @__PURE__ */ le({
@@ -17578,7 +17582,7 @@ const zD = { class: "tooltip-title" }, HD = { class: "title font-bold" }, WD = {
17578
17582
  }, [
17579
17583
  ut("div", {
17580
17584
  class: "square-marker",
17581
- style: Un({ background: C, "border-color": g })
17585
+ style: qn({ background: C, "border-color": g })
17582
17586
  }, null, 4),
17583
17587
  Gt(P, null, nd({
17584
17588
  default: Lt(() => [
@@ -17588,7 +17592,7 @@ const zD = { class: "tooltip-title" }, HD = { class: "title font-bold" }, WD = {
17588
17592
  ut("div", {
17589
17593
  class: vn(["label", { "truncate-label": u.value, empty: R }])
17590
17594
  }, ct(b), 3),
17591
- A && rt(r) ? (Z(), dt("div", qD, ct(A.formatted), 1)) : $t("", !0)
17595
+ A && rt(r) ? (Z(), dt("div", UD, ct(A.formatted), 1)) : $t("", !0)
17592
17596
  ], 2)
17593
17597
  ]),
17594
17598
  _: 2
@@ -17601,7 +17605,7 @@ const zD = { class: "tooltip-title" }, HD = { class: "title font-bold" }, WD = {
17601
17605
  key: "0"
17602
17606
  } : void 0
17603
17607
  ]), 1024)
17604
- ], 8, UD))), 128))
17608
+ ], 8, qD))), 128))
17605
17609
  ], 2)) : $t("", !0);
17606
17610
  };
17607
17611
  }
@@ -17619,24 +17623,24 @@ function ZD() {
17619
17623
  return Gs(KD);
17620
17624
  }
17621
17625
  var QD = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
17622
- const Uu = {
17626
+ const qu = {
17623
17627
  randomUUID: QD
17624
17628
  };
17625
17629
  function kn(n, t, e) {
17626
- if (Uu.randomUUID && !t && !n)
17627
- return Uu.randomUUID();
17630
+ if (qu.randomUUID && !t && !n)
17631
+ return qu.randomUUID();
17628
17632
  n = n || {};
17629
17633
  var i = n.random || (n.rng || ZD)();
17630
17634
  return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, GD(i);
17631
17635
  }
17632
- const qu = (n, t) => {
17636
+ const Uu = (n, t) => {
17633
17637
  const e = n.ctx, i = n.scales.y, s = n.scales.x, r = t[t.length - 1].element;
17634
17638
  e.save(), e.strokeStyle = "rgba(100, 100, 100, 1)", e.lineWidth = 3, n.options.indexAxis === "x" ? e.strokeRect(r.x - r.width / 2, r.y, r.width, i.bottom - r.y) : e.strokeRect(s.left, r.y - r.height / 2, r.x - s.left, r.height), e.restore();
17635
17639
  }, uf = {
17636
17640
  id: "highlightPlugin",
17637
17641
  clicked: !1,
17638
17642
  afterDatasetsDraw: function(n) {
17639
- this.clickedElements && this.clickedElements.length && qu(n, this.clickedElements);
17643
+ this.clickedElements && this.clickedElements.length && Uu(n, this.clickedElements);
17640
17644
  },
17641
17645
  afterEvent: function(n, { event: t }) {
17642
17646
  var s;
@@ -17644,7 +17648,7 @@ const qu = (n, t) => {
17644
17648
  return;
17645
17649
  this.clicked = !this.clicked;
17646
17650
  const e = ((s = n.options.interaction) == null ? void 0 : s.mode) || "index", i = n.getElementsAtEventForMode(t.native, e, { intersect: !1 }, !0);
17647
- i.length && this.clicked ? (this.clickedElements = i, qu(n, this.clickedElements), this.previousHoverOption = n.options.hover, n.options.hover = { mode: null }) : (delete this.clickedElements, n.options.hover = this.previousHoverOption || n.options.hover, this.clicked = !1);
17651
+ i.length && this.clicked ? (this.clickedElements = i, Uu(n, this.clickedElements), this.previousHoverOption = n.options.hover, n.options.hover = { mode: null }) : (delete this.clickedElements, n.options.hover = this.previousHoverOption || n.options.hover, this.clicked = !1);
17648
17652
  },
17649
17653
  beforeDestroy(n) {
17650
17654
  delete this.clickedElements, n.options.hover = this.previousHoverOption || n.options.hover, this.clicked = !1;
@@ -17717,15 +17721,15 @@ const qu = (n, t) => {
17717
17721
  setup(n) {
17718
17722
  const t = n, { i18n: e } = ft.useI18n(), { translateUnit: i } = ft.useTranslatedUnits(), s = st(null), r = ({ chart: L }, W) => {
17719
17723
  var G;
17720
- const U = L.data, X = (G = U.labels) == null ? void 0 : G.indexOf(W);
17721
- return U.datasets.reduce(($, H, it) => {
17724
+ const q = L.data, X = (G = q.labels) == null ? void 0 : G.indexOf(W);
17725
+ return q.datasets.reduce(($, H, it) => {
17722
17726
  if (L.isDatasetVisible(it)) {
17723
17727
  const K = H.data[X];
17724
17728
  return isNaN(K) ? $ : $ + K;
17725
17729
  } else
17726
17730
  return $;
17727
17731
  }, 0);
17728
- }, a = (L, W, U, X) => {
17732
+ }, a = (L, W, q, X) => {
17729
17733
  const G = X === "horizontal";
17730
17734
  W === null && (W = e.t("entityNoName"));
17731
17735
  const $ = {
@@ -17736,12 +17740,12 @@ const qu = (n, t) => {
17736
17740
  ...$,
17737
17741
  position: G ? { x: "start", y: "center" } : { x: "center", y: "end" },
17738
17742
  yAdjust: () => G ? 0 : -Math.abs(sv()),
17739
- content: (K) => la(r(K, W), U)
17743
+ content: (K) => la(r(K, W), q)
17740
17744
  }, it = {
17741
17745
  ...$,
17742
- content: (K) => Uc(r(K, W), $c(K.chart, L)),
17746
+ content: (K) => qc(r(K, W), $c(K.chart, L)),
17743
17747
  position: G ? { x: "start", y: "center" } : { x: "center", y: "end" },
17744
- xAdjust: (K) => G ? jc(la(r(K, W), U)) : 0,
17748
+ xAdjust: (K) => G ? jc(la(r(K, W), q)) : 0,
17745
17749
  color: Qw
17746
17750
  };
17747
17751
  return {
@@ -17773,7 +17777,7 @@ const qu = (n, t) => {
17773
17777
  }), v = st(0), S = () => {
17774
17778
  var L;
17775
17779
  return t.annotations && ((L = t.chartData.labels) == null ? void 0 : L.reduce(
17776
- (W, U) => Object.assign(W, a(t.chartData, U, y.value, t.orientation)),
17780
+ (W, q) => Object.assign(W, a(t.chartData, q, y.value, t.orientation)),
17777
17781
  {}
17778
17782
  ));
17779
17783
  }, M = {
@@ -17793,13 +17797,13 @@ const qu = (n, t) => {
17793
17797
  // args any because it is not typed by chartjs
17794
17798
  // https://www.chartjs.org/docs/latest/api/interfaces/Plugin.html#parameters
17795
17799
  afterEvent(L, W) {
17796
- var U;
17800
+ var q;
17797
17801
  if (p.value.show = !1, W.event.type === "mousemove") {
17798
- const X = W.event, G = L.options.indexAxis, $ = L.scales, H = L.scales[G].getLabelForValue(Number(L.scales[G].getValueForPixel(X[G]))), K = L.scales[G].getLabels().indexOf(H), Pt = (U = t.chartData.isLabelEmpty) == null ? void 0 : U[K];
17802
+ const X = W.event, G = L.options.indexAxis, $ = L.scales, H = L.scales[G].getLabelForValue(Number(L.scales[G].getValueForPixel(X[G]))), K = L.scales[G].getLabels().indexOf(H), Pt = (q = t.chartData.isLabelEmpty) == null ? void 0 : q[K];
17799
17803
  if (((Bt) => Bt === "x" ? X.y > $.x.top : X.x < $.y.right)(G)) {
17800
17804
  _.locked || (_.showTooltip = !1);
17801
17805
  const vt = L.canvas.getContext("2d").measureText(H).width, ht = Math.abs(Math.round(X.x - vt * 0.5)), Jt = Math.round(X.x + vt * 0.5);
17802
- p.value.left = G === "x" ? `${(ht > 0 ? ht : Jt) - p.value.offset}px` : `${X.x - vt * 0.5 - p.value.offset}px`, p.value.top = `${X.y - 50}px`, H.length > qa ? (p.value.show = !0, p.value.text = H) : Pt ? (p.value.text = e.t("emptyEntityInfo"), p.value.show = !0) : p.value.show = !1;
17806
+ p.value.left = G === "x" ? `${(ht > 0 ? ht : Jt) - p.value.offset}px` : `${X.x - vt * 0.5 - p.value.offset}px`, p.value.top = `${X.y - 50}px`, H.length > Ua ? (p.value.show = !0, p.value.text = H) : Pt ? (p.value.text = e.t("emptyEntityInfo"), p.value.show = !0) : p.value.show = !1;
17803
17807
  } else
17804
17808
  p.value.show = !1;
17805
17809
  }
@@ -17816,12 +17820,12 @@ const qu = (n, t) => {
17816
17820
  ], b = Y(() => t.chartData.labels && t.chartData.labels.length || 0), k = st(0), O = st(0), A = new ResizeObserver(wh((L) => {
17817
17821
  k.value = L[0].contentRect.width, O.value = L[0].contentRect.height;
17818
17822
  }, 100)), R = Y(() => {
17819
- var W, U;
17820
- const L = (U = (W = t.chartData) == null ? void 0 : W.labels) == null ? void 0 : U.length;
17823
+ var W, q;
17824
+ const L = (q = (W = t.chartData) == null ? void 0 : W.labels) == null ? void 0 : q.length;
17821
17825
  return o.value && L && !x.value ? `${Math.max(L * (nk + Xu), k.value)}px` : tk;
17822
17826
  }), F = Y(() => {
17823
- var W, U;
17824
- const L = (U = (W = t.chartData) == null ? void 0 : W.labels) == null ? void 0 : U.length;
17827
+ var W, q;
17828
+ const L = (q = (W = t.chartData) == null ? void 0 : W.labels) == null ? void 0 : q.length;
17825
17829
  return o.value && L && x.value ? `${Math.max(L * (ik + Xu), O.value)}px` : ek;
17826
17830
  });
17827
17831
  ft.useReportChartDataForSynthetics(Mt(t, "chartData"), Mt(t, "syntheticsDataKey")), Mr(() => {
@@ -17829,7 +17833,7 @@ const qu = (n, t) => {
17829
17833
  }), lo(() => {
17830
17834
  s.value && A.unobserve(s.value);
17831
17835
  });
17832
- const q = Y(() => {
17836
+ const U = Y(() => {
17833
17837
  const L = ft.useBarChartOptions({
17834
17838
  tooltipState: _,
17835
17839
  legendID: c.value,
@@ -17862,11 +17866,11 @@ const qu = (n, t) => {
17862
17866
  o,
17863
17867
  Mt(t, "chartData"),
17864
17868
  g,
17865
- q
17869
+ U
17866
17870
  ), I = Y(() => {
17867
17871
  v.value;
17868
- const L = t.chartData.labels, W = t.chartData.datasets, U = L.map(($, H) => W.reduce((it, K) => isNaN(Number(K.data[H])) ? it : it + Number(K.data[H]), 0)), X = j.value ? $c(j.value, t.chartData) : rv(t.chartData);
17869
- return U.map(($) => jc(la($, y.value) + Uc($, X))).reduce(($, H) => Math.max($, H), 0) + Vu;
17872
+ const L = t.chartData.labels, W = t.chartData.datasets, q = L.map(($, H) => W.reduce((it, K) => isNaN(Number(K.data[H])) ? it : it + Number(K.data[H]), 0)), X = j.value ? $c(j.value, t.chartData) : rv(t.chartData);
17873
+ return q.map(($) => jc(la($, y.value) + qc($, X))).reduce(($, H) => Math.max($, H), 0) + Vu;
17870
17874
  });
17871
17875
  ro(() => {
17872
17876
  Re.unregister($u);
@@ -17876,10 +17880,10 @@ const qu = (n, t) => {
17876
17880
  [zt.Bottom]: "column"
17877
17881
  }, z = Y(() => {
17878
17882
  if (l.value && j.value) {
17879
- const L = window.devicePixelRatio, W = j.value, U = W.scales.y.width * L + ok, X = (W.scales.y.height + W.scales.y.top + W.scales.x.height) * L, G = l.value.getContext("2d");
17880
- return G.scale(L, L), G.canvas.width = U, G.canvas.height = X, G.canvas.style.width = `${U / L}px`, G.canvas.style.height = `${X / L}px`, {
17883
+ const L = window.devicePixelRatio, W = j.value, q = W.scales.y.width * L + ok, X = (W.scales.y.height + W.scales.y.top + W.scales.x.height) * L, G = l.value.getContext("2d");
17884
+ return G.scale(L, L), G.canvas.width = q, G.canvas.height = X, G.canvas.style.width = `${q / L}px`, G.canvas.style.height = `${X / L}px`, {
17881
17885
  scale: L,
17882
- width: U * L,
17886
+ width: q * L,
17883
17887
  height: X * L,
17884
17888
  targetCtx: G
17885
17889
  };
@@ -17888,8 +17892,8 @@ const qu = (n, t) => {
17888
17892
  }), Ft = (L) => {
17889
17893
  const W = L.target;
17890
17894
  if (z.value && j.value && !x.value) {
17891
- const U = z.value.scale, X = z.value.targetCtx, G = z.value.width, $ = z.value.height, H = j.value, it = H.canvas;
17892
- X.fillStyle = "white", W.scrollLeft >= sk && W.scrollLeft <= rk ? (X.globalCompositeOperation = "source-over", X.clearRect(0, 0, G, $), X.drawImage(it, 0, 0, G, $, 0, 0, G, $), X.globalCompositeOperation = "destination-over", X.fillRect(0, 0, G, $)) : (X.globalCompositeOperation = "source-over", X.fillRect(0, (H.scales.y.height + H.scales.y.top + ak) * U, G, H.scales.x.height * U));
17895
+ const q = z.value.scale, X = z.value.targetCtx, G = z.value.width, $ = z.value.height, H = j.value, it = H.canvas;
17896
+ X.fillStyle = "white", W.scrollLeft >= sk && W.scrollLeft <= rk ? (X.globalCompositeOperation = "source-over", X.clearRect(0, 0, G, $), X.drawImage(it, 0, 0, G, $, 0, 0, G, $), X.globalCompositeOperation = "destination-over", X.fillRect(0, 0, G, $)) : (X.globalCompositeOperation = "source-over", X.fillRect(0, (H.scales.y.height + H.scales.y.top + ak) * q, G, H.scales.x.height * q));
17893
17897
  }
17894
17898
  _.offsetY = W.scrollTop, _.offsetX = W.scrollLeft, p.value.offset = W.scrollLeft;
17895
17899
  }, Dt = ({ width: L, height: W }) => {
@@ -17898,8 +17902,8 @@ const qu = (n, t) => {
17898
17902
  be(() => t.orientation, () => {
17899
17903
  var L;
17900
17904
  if (l.value && z.value) {
17901
- const W = z.value.width, U = z.value.height;
17902
- ((L = l.value) == null ? void 0 : L.getContext("2d")).clearRect(0, 0, W, U);
17905
+ const W = z.value.width, q = z.value.height;
17906
+ ((L = l.value) == null ? void 0 : L.getContext("2d")).clearRect(0, 0, W, q);
17903
17907
  }
17904
17908
  _.showTooltip = !1, _.locked = !1;
17905
17909
  }), be(() => t.annotations, (L) => {
@@ -17921,11 +17925,11 @@ const qu = (n, t) => {
17921
17925
  ref: s,
17922
17926
  class: "chart-container",
17923
17927
  "on:scroll": Ft,
17924
- onClick: W[0] || (W[0] = (U) => B())
17928
+ onClick: W[0] || (W[0] = (q) => B())
17925
17929
  }, [
17926
17930
  ut("div", {
17927
17931
  class: "chart-body",
17928
- style: Un({ width: R.value, height: F.value })
17932
+ style: qn({ width: R.value, height: F.value })
17929
17933
  }, [
17930
17934
  ut("canvas", {
17931
17935
  ref_key: "canvas",
@@ -17937,7 +17941,7 @@ const qu = (n, t) => {
17937
17941
  p.value.show ? (Z(), dt("div", {
17938
17942
  key: 0,
17939
17943
  class: "axis-tooltip",
17940
- style: Un({ top: p.value.top, left: p.value.left }),
17944
+ style: qn({ top: p.value.top, left: p.value.left }),
17941
17945
  width: "auto"
17942
17946
  }, [
17943
17947
  ut("div", JD, ct(p.value.text), 1)
@@ -18052,9 +18056,9 @@ Ad._date.override({
18052
18056
  case "day":
18053
18057
  return Ya(n);
18054
18058
  case "week":
18055
- return Ue(n);
18059
+ return qe(n);
18056
18060
  case "isoWeek":
18057
- return Ue(n, { weekStartsOn: +e });
18061
+ return qe(n, { weekStartsOn: +e });
18058
18062
  case "month":
18059
18063
  return Cx(n);
18060
18064
  case "quarter":
@@ -18614,8 +18618,8 @@ const nC = [
18614
18618
  var vr = { exports: {} };
18615
18619
  vr.exports;
18616
18620
  (function(n, t) {
18617
- var e = 200, i = "Expected a function", s = "__lodash_hash_undefined__", r = 1, a = 2, o = 1 / 0, l = 9007199254740991, c = "[object Arguments]", u = "[object Array]", d = "[object Boolean]", h = "[object Date]", f = "[object Error]", p = "[object Function]", y = "[object GeneratorFunction]", x = "[object Map]", _ = "[object Number]", v = "[object Object]", S = "[object Promise]", M = "[object RegExp]", D = "[object Set]", P = "[object String]", C = "[object Symbol]", g = "[object WeakMap]", b = "[object ArrayBuffer]", k = "[object DataView]", O = "[object Float32Array]", A = "[object Float64Array]", R = "[object Int8Array]", F = "[object Int16Array]", q = "[object Int32Array]", j = "[object Uint8Array]", I = "[object Uint8ClampedArray]", at = "[object Uint16Array]", z = "[object Uint32Array]", Ft = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Dt = /^\w*$/, B = /^\./, L = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, W = /[\\^$.*+?()[\]{}|]/g, U = /\\(\\)?/g, X = /^\[object .+?Constructor\]$/, G = /^(?:0|[1-9]\d*)$/, $ = {};
18618
- $[O] = $[A] = $[R] = $[F] = $[q] = $[j] = $[I] = $[at] = $[z] = !0, $[c] = $[u] = $[b] = $[d] = $[k] = $[h] = $[f] = $[p] = $[x] = $[_] = $[v] = $[M] = $[D] = $[P] = $[g] = !1;
18621
+ var e = 200, i = "Expected a function", s = "__lodash_hash_undefined__", r = 1, a = 2, o = 1 / 0, l = 9007199254740991, c = "[object Arguments]", u = "[object Array]", d = "[object Boolean]", h = "[object Date]", f = "[object Error]", p = "[object Function]", y = "[object GeneratorFunction]", x = "[object Map]", _ = "[object Number]", v = "[object Object]", S = "[object Promise]", M = "[object RegExp]", D = "[object Set]", P = "[object String]", C = "[object Symbol]", g = "[object WeakMap]", b = "[object ArrayBuffer]", k = "[object DataView]", O = "[object Float32Array]", A = "[object Float64Array]", R = "[object Int8Array]", F = "[object Int16Array]", U = "[object Int32Array]", j = "[object Uint8Array]", I = "[object Uint8ClampedArray]", at = "[object Uint16Array]", z = "[object Uint32Array]", Ft = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Dt = /^\w*$/, B = /^\./, L = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, W = /[\\^$.*+?()[\]{}|]/g, q = /\\(\\)?/g, X = /^\[object .+?Constructor\]$/, G = /^(?:0|[1-9]\d*)$/, $ = {};
18622
+ $[O] = $[A] = $[R] = $[F] = $[U] = $[j] = $[I] = $[at] = $[z] = !0, $[c] = $[u] = $[b] = $[d] = $[k] = $[h] = $[f] = $[p] = $[x] = $[_] = $[v] = $[M] = $[D] = $[P] = $[g] = !1;
18619
18623
  var H = typeof ye == "object" && ye && ye.Object === Object && ye, it = typeof self == "object" && self && self.Object === Object && self, K = H || it || Function("return this")(), Pt = t && !t.nodeType && t, pt = Pt && !0 && n && !n.nodeType && n, Bt = pt && pt.exports === Pt, vt = Bt && H.process, ht = function() {
18620
18624
  try {
18621
18625
  return vt && vt.binding("util");
@@ -18655,7 +18659,7 @@ vr.exports;
18655
18659
  }
18656
18660
  return w;
18657
18661
  }
18658
- function qe(m) {
18662
+ function Ue(m) {
18659
18663
  var w = -1, E = Array(m.size);
18660
18664
  return m.forEach(function(N, et) {
18661
18665
  E[++w] = [et, N];
@@ -18785,10 +18789,10 @@ vr.exports;
18785
18789
  function $f(m) {
18786
18790
  return this.__data__.delete(m);
18787
18791
  }
18788
- function Uf(m) {
18792
+ function qf(m) {
18789
18793
  return this.__data__.get(m);
18790
18794
  }
18791
- function qf(m) {
18795
+ function Uf(m) {
18792
18796
  return this.__data__.has(m);
18793
18797
  }
18794
18798
  function Vf(m, w) {
@@ -18801,7 +18805,7 @@ vr.exports;
18801
18805
  }
18802
18806
  return E.set(m, w), this;
18803
18807
  }
18804
- Ke.prototype.clear = jf, Ke.prototype.delete = $f, Ke.prototype.get = Uf, Ke.prototype.has = qf, Ke.prototype.set = Vf;
18808
+ Ke.prototype.clear = jf, Ke.prototype.delete = $f, Ke.prototype.get = qf, Ke.prototype.has = Uf, Ke.prototype.set = Vf;
18805
18809
  function Xf(m, w) {
18806
18810
  var E = Ln(m) || cl(m) ? Ie(m.length, String) : [], N = E.length, et = !!N;
18807
18811
  for (var V in m)
@@ -18911,7 +18915,7 @@ vr.exports;
18911
18915
  function lg(m) {
18912
18916
  if (typeof m == "string")
18913
18917
  return m;
18914
- if (Ur(m))
18918
+ if (qr(m))
18915
18919
  return el ? el.call(m) : "";
18916
18920
  var w = m + "";
18917
18921
  return w == "0" && 1 / m == -o ? "-0" : w;
@@ -18980,7 +18984,7 @@ vr.exports;
18980
18984
  case P:
18981
18985
  return m == w + "";
18982
18986
  case x:
18983
- var Xt = qe;
18987
+ var Xt = Ue;
18984
18988
  case D:
18985
18989
  var Nt = V & a;
18986
18990
  if (Xt || (Xt = un), m.size != w.size && !Nt)
@@ -19081,7 +19085,7 @@ vr.exports;
19081
19085
  if (Ln(m))
19082
19086
  return !1;
19083
19087
  var E = typeof m;
19084
- return E == "number" || E == "symbol" || E == "boolean" || m == null || Ur(m) ? !0 : Dt.test(m) || !Ft.test(m) || w != null && m in Object(w);
19088
+ return E == "number" || E == "symbol" || E == "boolean" || m == null || qr(m) ? !0 : Dt.test(m) || !Ft.test(m) || w != null && m in Object(w);
19085
19089
  }
19086
19090
  function gg(m) {
19087
19091
  var w = typeof m;
@@ -19106,11 +19110,11 @@ vr.exports;
19106
19110
  m = _g(m);
19107
19111
  var w = [];
19108
19112
  return B.test(m) && w.push(""), m.replace(L, function(E, N, et, V) {
19109
- w.push(et ? V.replace(U, "$1") : N || E);
19113
+ w.push(et ? V.replace(q, "$1") : N || E);
19110
19114
  }), w;
19111
19115
  });
19112
19116
  function Cs(m) {
19113
- if (typeof m == "string" || Ur(m))
19117
+ if (typeof m == "string" || qr(m))
19114
19118
  return m;
19115
19119
  var w = m + "";
19116
19120
  return w == "0" && 1 / m == -o ? "-0" : w;
@@ -19168,7 +19172,7 @@ vr.exports;
19168
19172
  function Os(m) {
19169
19173
  return !!m && typeof m == "object";
19170
19174
  }
19171
- function Ur(m) {
19175
+ function qr(m) {
19172
19176
  return typeof m == "symbol" || Os(m) && Vt.call(m) == C;
19173
19177
  }
19174
19178
  var xg = Jt ? de(Jt) : ng;
@@ -19235,18 +19239,18 @@ function jk(n, t, e, i, s) {
19235
19239
  return s;
19236
19240
  }
19237
19241
  function $k(n, t) {
19238
- return n = Object(n), Uk(n, t, function(e, i) {
19242
+ return n = Object(n), qk(n, t, function(e, i) {
19239
19243
  return i in n;
19240
19244
  });
19241
19245
  }
19242
- function Uk(n, t, e) {
19246
+ function qk(n, t, e) {
19243
19247
  for (var i = -1, s = t.length, r = {}; ++i < s; ) {
19244
19248
  var a = t[i], o = n[a];
19245
19249
  e(o, a) && (r[a] = o);
19246
19250
  }
19247
19251
  return r;
19248
19252
  }
19249
- function qk(n, t) {
19253
+ function Uk(n, t) {
19250
19254
  return t = Ju(t === void 0 ? n.length - 1 : t, 0), function() {
19251
19255
  for (var e = arguments, i = -1, s = Ju(e.length - t, 0), r = Array(s); ++i < s; )
19252
19256
  r[i] = e[t + i];
@@ -19292,7 +19296,7 @@ function pf(n) {
19292
19296
  function nT(n) {
19293
19297
  return typeof n == "symbol" || pf(n) && Jo.call(n) == Lk;
19294
19298
  }
19295
- var iT = qk(function(n, t) {
19299
+ var iT = Uk(function(n, t) {
19296
19300
  return n == null ? {} : $k(n, Hk(jk(t), Xk));
19297
19301
  }), sT = iT;
19298
19302
  const rT = /* @__PURE__ */ Wo(sT);
@@ -19381,7 +19385,7 @@ License: MIT
19381
19385
  if (C(k) && (b.dynamicTypingFunction = k, k = {}), b.dynamicTyping = k, b.transform = !!C(b.transform) && b.transform, b.worker && l.WORKERS_SUPPORTED) {
19382
19386
  var O = function() {
19383
19387
  if (!l.WORKERS_SUPPORTED) return !1;
19384
- var R = (q = i.URL || i.webkitURL || null, j = e.toString(), l.BLOB_URL || (l.BLOB_URL = q.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ", "(", j, ")();"], { type: "text/javascript" })))), F = new i.Worker(R), q, j;
19388
+ var R = (U = i.URL || i.webkitURL || null, j = e.toString(), l.BLOB_URL || (l.BLOB_URL = U.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ", "(", j, ")();"], { type: "text/javascript" })))), F = new i.Worker(R), U, j;
19385
19389
  return F.onmessage = v, F.id = o++, a[F.id] = F;
19386
19390
  }();
19387
19391
  return O.userStep = b.step, O.userChunk = b.chunk, O.userComplete = b.complete, O.userError = b.error, b.step = C(b.step), b.chunk = C(b.chunk), b.complete = C(b.complete), b.error = C(b.error), delete b.worker, void O.postMessage({ input: g, config: b, workerId: O.id });
@@ -19392,7 +19396,7 @@ License: MIT
19392
19396
  }(g), A = b.download ? new d(b) : new f(b)) : g.readable === !0 && C(g.read) && C(g.on) ? A = new p(b) : (i.File && g instanceof File || g instanceof Object) && (A = new h(b)), A.stream(g);
19393
19397
  }, unparse: function(g, b) {
19394
19398
  var k = !1, O = !0, A = ",", R = `\r
19395
- `, F = '"', q = F + F, j = !1, I = null, at = !1;
19399
+ `, F = '"', U = F + F, j = !1, I = null, at = !1;
19396
19400
  (function() {
19397
19401
  if (typeof b == "object") {
19398
19402
  if (typeof b.delimiter != "string" || l.BAD_DELIMITERS.filter(function(B) {
@@ -19401,7 +19405,7 @@ License: MIT
19401
19405
  if (b.columns.length === 0) throw new Error("Option columns is empty");
19402
19406
  I = b.columns;
19403
19407
  }
19404
- b.escapeChar !== void 0 && (q = b.escapeChar + F), (typeof b.escapeFormulae == "boolean" || b.escapeFormulae instanceof RegExp) && (at = b.escapeFormulae instanceof RegExp ? b.escapeFormulae : /^[=+\-@\t\r].*$/);
19408
+ b.escapeChar !== void 0 && (U = b.escapeChar + F), (typeof b.escapeFormulae == "boolean" || b.escapeFormulae instanceof RegExp) && (at = b.escapeFormulae instanceof RegExp ? b.escapeFormulae : /^[=+\-@\t\r].*$/);
19405
19409
  }
19406
19410
  })();
19407
19411
  var z = new RegExp(x(F), "g");
@@ -19411,12 +19415,12 @@ License: MIT
19411
19415
  } else if (typeof g == "object") return typeof g.data == "string" && (g.data = JSON.parse(g.data)), Array.isArray(g.data) && (g.fields || (g.fields = g.meta && g.meta.fields || I), g.fields || (g.fields = Array.isArray(g.data[0]) ? g.fields : typeof g.data[0] == "object" ? Object.keys(g.data[0]) : []), Array.isArray(g.data[0]) || typeof g.data[0] == "object" || (g.data = [g.data])), Ft(g.fields || [], g.data || [], j);
19412
19416
  throw new Error("Unable to serialize unrecognized input");
19413
19417
  function Ft(B, L, W) {
19414
- var U = "";
19418
+ var q = "";
19415
19419
  typeof B == "string" && (B = JSON.parse(B)), typeof L == "string" && (L = JSON.parse(L));
19416
19420
  var X = Array.isArray(B) && 0 < B.length, G = !Array.isArray(L[0]);
19417
19421
  if (X && O) {
19418
- for (var $ = 0; $ < B.length; $++) 0 < $ && (U += A), U += Dt(B[$], $);
19419
- 0 < L.length && (U += R);
19422
+ for (var $ = 0; $ < B.length; $++) 0 < $ && (q += A), q += Dt(B[$], $);
19423
+ 0 < L.length && (q += R);
19420
19424
  }
19421
19425
  for (var H = 0; H < L.length; H++) {
19422
19426
  var it = X ? B.length : L[H].length, K = !1, Pt = X ? Object.keys(L[H]).length === 0 : L[H].length === 0;
@@ -19429,25 +19433,25 @@ License: MIT
19429
19433
  }
19430
19434
  if (!K) {
19431
19435
  for (var ht = 0; ht < it; ht++) {
19432
- 0 < ht && !Pt && (U += A);
19436
+ 0 < ht && !Pt && (q += A);
19433
19437
  var Jt = X && G ? B[ht] : ht;
19434
- U += Dt(L[H][Jt], ht);
19438
+ q += Dt(L[H][Jt], ht);
19435
19439
  }
19436
- H < L.length - 1 && (!W || 0 < it && !Pt) && (U += R);
19440
+ H < L.length - 1 && (!W || 0 < it && !Pt) && (q += R);
19437
19441
  }
19438
19442
  }
19439
- return U;
19443
+ return q;
19440
19444
  }
19441
19445
  function Dt(B, L) {
19442
19446
  if (B == null) return "";
19443
19447
  if (B.constructor === Date) return JSON.stringify(B).slice(1, 25);
19444
19448
  var W = !1;
19445
19449
  at && typeof B == "string" && at.test(B) && (B = "'" + B, W = !0);
19446
- var U = B.toString().replace(z, q);
19450
+ var q = B.toString().replace(z, U);
19447
19451
  return (W = W || k === !0 || typeof k == "function" && k(B, L) || Array.isArray(k) && k[L] || function(X, G) {
19448
19452
  for (var $ = 0; $ < G.length; $++) if (-1 < X.indexOf(G[$])) return !0;
19449
19453
  return !1;
19450
- }(U, l.BAD_DELIMITERS) || -1 < U.indexOf(A) || U.charAt(0) === " " || U.charAt(U.length - 1) === " ") ? F + U + F : U;
19454
+ }(q, l.BAD_DELIMITERS) || -1 < q.indexOf(A) || q.charAt(0) === " " || q.charAt(q.length - 1) === " ") ? F + q + F : q;
19451
19455
  }
19452
19456
  } };
19453
19457
  if (l.RECORD_SEP = "", l.UNIT_SEP = "", l.BYTE_ORDER_MARK = "\uFEFF", l.BAD_DELIMITERS = ["\r", `
@@ -19461,11 +19465,11 @@ License: MIT
19461
19465
  }), O(), this;
19462
19466
  function O() {
19463
19467
  if (k.length !== 0) {
19464
- var R, F, q, j, I = k[0];
19468
+ var R, F, U, j, I = k[0];
19465
19469
  if (C(g.before)) {
19466
19470
  var at = g.before(I.file, I.inputElem);
19467
19471
  if (typeof at == "object") {
19468
- if (at.action === "abort") return R = "AbortError", F = I.file, q = I.inputElem, j = at.reason, void (C(g.error) && g.error({ name: R }, F, q, j));
19472
+ if (at.action === "abort") return R = "AbortError", F = I.file, U = I.inputElem, j = at.reason, void (C(g.error) && g.error({ name: R }, F, U, j));
19469
19473
  if (at.action === "skip") return void A();
19470
19474
  typeof at.config == "object" && (I.instanceConfig = c.extend(I.instanceConfig, at.config));
19471
19475
  } else if (at === "skip") return void A();
@@ -19497,13 +19501,13 @@ License: MIT
19497
19501
  if (!this._handle.paused() && !this._handle.aborted()) {
19498
19502
  var F = R.meta.cursor;
19499
19503
  this._finished || (this._partialLine = A.substring(F - this._baseIndex), this._baseIndex = F), R && R.data && (this._rowCount += R.data.length);
19500
- var q = this._finished || this._config.preview && this._rowCount >= this._config.preview;
19501
- if (r) i.postMessage({ results: R, workerId: l.WORKER_ID, finished: q });
19504
+ var U = this._finished || this._config.preview && this._rowCount >= this._config.preview;
19505
+ if (r) i.postMessage({ results: R, workerId: l.WORKER_ID, finished: U });
19502
19506
  else if (C(this._config.chunk) && !k) {
19503
19507
  if (this._config.chunk(R, this._handle), this._handle.paused() || this._handle.aborted()) return void (this._halted = !0);
19504
19508
  R = void 0, this._completeResults = void 0;
19505
19509
  }
19506
- return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(R.data), this._completeResults.errors = this._completeResults.errors.concat(R.errors), this._completeResults.meta = R.meta), this._completed || !q || !C(this._config.complete) || R && R.meta.aborted || (this._config.complete(this._completeResults, this._input), this._completed = !0), q || R && R.meta.paused || this._nextChunk(), R;
19510
+ return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(R.data), this._completeResults.errors = this._completeResults.errors.concat(R.errors), this._completeResults.meta = R.meta), this._completed || !U || !C(this._config.complete) || R && R.meta.aborted || (this._config.complete(this._completeResults, this._input), this._completed = !0), U || R && R.meta.paused || this._nextChunk(), R;
19507
19511
  }
19508
19512
  this._halted = !0;
19509
19513
  }, this._sendError = function(b) {
@@ -19607,13 +19611,13 @@ License: MIT
19607
19611
  }, this);
19608
19612
  }
19609
19613
  function y(g) {
19610
- var b, k, O, A = Math.pow(2, 53), R = -A, F = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, q = /^((\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)))$/, j = this, I = 0, at = 0, z = !1, Ft = !1, Dt = [], B = { data: [], errors: [], meta: {} };
19614
+ var b, k, O, A = Math.pow(2, 53), R = -A, F = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, U = /^((\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)))$/, j = this, I = 0, at = 0, z = !1, Ft = !1, Dt = [], B = { data: [], errors: [], meta: {} };
19611
19615
  if (C(g.step)) {
19612
19616
  var L = g.step;
19613
19617
  g.step = function(H) {
19614
- if (B = H, X()) U();
19618
+ if (B = H, X()) q();
19615
19619
  else {
19616
- if (U(), B.data.length === 0) return;
19620
+ if (q(), B.data.length === 0) return;
19617
19621
  I += H.data.length, g.preview && I > g.preview ? k.abort() : (B.data = B.data[0], L(B, j));
19618
19622
  }
19619
19623
  };
@@ -19621,7 +19625,7 @@ License: MIT
19621
19625
  function W(H) {
19622
19626
  return g.skipEmptyLines === "greedy" ? H.join("").trim() === "" : H.length === 1 && H[0].length === 0;
19623
19627
  }
19624
- function U() {
19628
+ function q() {
19625
19629
  return B && O && ($("Delimiter", "UndetectableDelimiter", "Unable to auto-detect delimiting character; defaulted to '" + l.DefaultDelimiter + "'"), O = !1), g.skipEmptyLines && (B.data = B.data.filter(function(H) {
19626
19630
  return !W(H);
19627
19631
  })), X() && function() {
@@ -19657,7 +19661,7 @@ License: MIT
19657
19661
  if (R < pt && pt < A) return !0;
19658
19662
  }
19659
19663
  return !1;
19660
- }(it) ? parseFloat(it) : q.test(it) ? new Date(it) : it === "" ? null : it) : it;
19664
+ }(it) ? parseFloat(it) : U.test(it) ? new Date(it) : it === "" ? null : it) : it;
19661
19665
  var K;
19662
19666
  }
19663
19667
  function $(H, it, K, Pt) {
@@ -19681,8 +19685,8 @@ License: MIT
19681
19685
  var pt = function(vt, ht, Jt, ue, Se) {
19682
19686
  var Ie, de, kt, Ot;
19683
19687
  Se = Se || [",", " ", "|", ";", l.RECORD_SEP, l.UNIT_SEP];
19684
- for (var qe = 0; qe < Se.length; qe++) {
19685
- var yt = Se[qe], un = 0, Fe = 0, Ve = 0;
19688
+ for (var Ue = 0; Ue < Se.length; Ue++) {
19689
+ var yt = Se[Ue], un = 0, Fe = 0, Ve = 0;
19686
19690
  kt = void 0;
19687
19691
  for (var we = new _({ comments: ue, delimiter: yt, newline: ht, preview: 10 }).parse(vt), De = 0; De < we.data.length; De++) if (Jt && W(we.data[De])) Ve++;
19688
19692
  else {
@@ -19696,7 +19700,7 @@ License: MIT
19696
19700
  pt.successful ? g.delimiter = pt.bestDelimiter : (O = !0, g.delimiter = l.DefaultDelimiter), B.meta.delimiter = g.delimiter;
19697
19701
  }
19698
19702
  var Bt = D(g);
19699
- return g.preview && g.header && Bt.preview++, b = H, k = new _(Bt), B = k.parse(b, it, K), U(), z ? { meta: { paused: !0 } } : B || { meta: { paused: !1 } };
19703
+ return g.preview && g.header && Bt.preview++, b = H, k = new _(Bt), B = k.parse(b, it, K), q(), z ? { meta: { paused: !0 } } : B || { meta: { paused: !1 } };
19700
19704
  }, this.paused = function() {
19701
19705
  return z;
19702
19706
  }, this.pause = function() {
@@ -19713,7 +19717,7 @@ License: MIT
19713
19717
  return g.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
19714
19718
  }
19715
19719
  function _(g) {
19716
- var b, k = (g = g || {}).delimiter, O = g.newline, A = g.comments, R = g.step, F = g.preview, q = g.fastMode, j = b = g.quoteChar === void 0 || g.quoteChar === null ? '"' : g.quoteChar;
19720
+ var b, k = (g = g || {}).delimiter, O = g.newline, A = g.comments, R = g.step, F = g.preview, U = g.fastMode, j = b = g.quoteChar === void 0 || g.quoteChar === null ? '"' : g.quoteChar;
19717
19721
  if (g.escapeChar !== void 0 && (j = g.escapeChar), (typeof k != "string" || -1 < l.BAD_DELIMITERS.indexOf(k)) && (k = ","), A === k) throw new Error("Comment character same as delimiter");
19718
19722
  A === !0 ? A = "#" : (typeof A != "string" || -1 < l.BAD_DELIMITERS.indexOf(A)) && (A = !1), O !== `
19719
19723
  ` && O !== "\r" && O !== `\r
@@ -19722,7 +19726,7 @@ License: MIT
19722
19726
  var I = 0, at = !1;
19723
19727
  this.parse = function(z, Ft, Dt) {
19724
19728
  if (typeof z != "string") throw new Error("Input must be a string");
19725
- var B = z.length, L = k.length, W = O.length, U = A.length, X = C(R), G = [], $ = [], H = [], it = I = 0;
19729
+ var B = z.length, L = k.length, W = O.length, q = A.length, X = C(R), G = [], $ = [], H = [], it = I = 0;
19726
19730
  if (!z) return ie();
19727
19731
  if (g.header && !Ft) {
19728
19732
  var K = z.split(O)[0].split(k), Pt = [], pt = {}, Bt = !1;
@@ -19738,11 +19742,11 @@ License: MIT
19738
19742
  Se[0] = Pt.join(k), z = Se.join(O);
19739
19743
  }
19740
19744
  }
19741
- if (q || q !== !1 && z.indexOf(b) === -1) {
19745
+ if (U || U !== !1 && z.indexOf(b) === -1) {
19742
19746
  for (var Ie = z.split(O), de = 0; de < Ie.length; de++) {
19743
19747
  if (H = Ie[de], I += H.length, de !== Ie.length - 1) I += O.length;
19744
19748
  else if (Dt) return ie();
19745
- if (!A || H.substring(0, U) !== A) {
19749
+ if (!A || H.substring(0, q) !== A) {
19746
19750
  if (X) {
19747
19751
  if (G = [], Ve(H.split(k)), he(), at) return ie();
19748
19752
  } else Ve(H.split(k));
@@ -19751,7 +19755,7 @@ License: MIT
19751
19755
  }
19752
19756
  return ie();
19753
19757
  }
19754
- for (var kt = z.indexOf(k, I), Ot = z.indexOf(O, I), qe = new RegExp(x(j) + x(b), "g"), yt = z.indexOf(b, I); ; ) if (z[I] !== b) if (A && H.length === 0 && z.substring(I, I + U) === A) {
19758
+ for (var kt = z.indexOf(k, I), Ot = z.indexOf(O, I), Ue = new RegExp(x(j) + x(b), "g"), yt = z.indexOf(b, I); ; ) if (z[I] !== b) if (A && H.length === 0 && z.substring(I, I + q) === A) {
19755
19759
  if (Ot === -1) return ie();
19756
19760
  I = Ot + W, Ot = z.indexOf(O, I), kt = z.indexOf(k, I);
19757
19761
  } else if (kt !== -1 && (kt < Ot || Ot === -1)) H.push(z.substring(I, kt)), I = kt + L, kt = z.indexOf(k, I);
@@ -19762,18 +19766,18 @@ License: MIT
19762
19766
  }
19763
19767
  else for (yt = I, I++; ; ) {
19764
19768
  if ((yt = z.indexOf(b, yt + 1)) === -1) return Dt || $.push({ type: "Quotes", code: "MissingQuotes", message: "Quoted field unterminated", row: G.length, index: I }), De();
19765
- if (yt === B - 1) return De(z.substring(I, yt).replace(qe, b));
19769
+ if (yt === B - 1) return De(z.substring(I, yt).replace(Ue, b));
19766
19770
  if (b !== j || z[yt + 1] !== j) {
19767
19771
  if (b === j || yt === 0 || z[yt - 1] !== j) {
19768
19772
  kt !== -1 && kt < yt + 1 && (kt = z.indexOf(k, yt + 1)), Ot !== -1 && Ot < yt + 1 && (Ot = z.indexOf(O, yt + 1));
19769
19773
  var un = we(Ot === -1 ? kt : Math.min(kt, Ot));
19770
19774
  if (z.substr(yt + 1 + un, L) === k) {
19771
- H.push(z.substring(I, yt).replace(qe, b)), z[I = yt + 1 + un + L] !== b && (yt = z.indexOf(b, I)), kt = z.indexOf(k, I), Ot = z.indexOf(O, I);
19775
+ H.push(z.substring(I, yt).replace(Ue, b)), z[I = yt + 1 + un + L] !== b && (yt = z.indexOf(b, I)), kt = z.indexOf(k, I), Ot = z.indexOf(O, I);
19772
19776
  break;
19773
19777
  }
19774
19778
  var Fe = we(Ot);
19775
19779
  if (z.substring(yt + 1 + Fe, yt + 1 + Fe + W) === O) {
19776
- if (H.push(z.substring(I, yt).replace(qe, b)), Ne(yt + 1 + Fe + W), kt = z.indexOf(k, I), yt = z.indexOf(b, I), X && (he(), at)) return ie();
19780
+ if (H.push(z.substring(I, yt).replace(Ue, b)), Ne(yt + 1 + Fe + W), kt = z.indexOf(k, I), yt = z.indexOf(b, I), X && (he(), at)) return ie();
19777
19781
  if (F && G.length >= F) return ie(!0);
19778
19782
  break;
19779
19783
  }
@@ -20305,8 +20309,8 @@ const lT = ["id"], cT = /* @__PURE__ */ le({
20305
20309
  var R;
20306
20310
  return (R = e.chartData.meta) != null && R.metric_units ? Object.values(e.chartData.meta.metric_units)[0] : "";
20307
20311
  }), d = Y(() => e.showLegendValues && e.legendPosition !== zt.Bottom), { legendValues: h } = ft.useChartLegendValues(l, e.chartOptions.type, u), f = Y(() => {
20308
- var R, F, q;
20309
- return ((q = (F = (R = e.chartData) == null ? void 0 : R.meta) == null ? void 0 : F.limit) == null ? void 0 : q.toString()) || null;
20312
+ var R, F, U;
20313
+ return ((U = (F = (R = e.chartData) == null ? void 0 : R.meta) == null ? void 0 : F.limit) == null ? void 0 : U.toString()) || null;
20310
20314
  }), p = Y(() => {
20311
20315
  var R, F;
20312
20316
  return ((F = (R = e.chartData) == null ? void 0 : R.meta) == null ? void 0 : F.truncated) || !1;
@@ -20314,8 +20318,8 @@ const lT = ["id"], cT = /* @__PURE__ */ le({
20314
20318
  "vertical_bar",
20315
20319
  "horizontal_bar"
20316
20320
  ].includes(e.chartOptions.type)), _ = Y(() => ["timeseries_bar", "timeseries_line"].some((R) => R === e.chartOptions.type)), v = Y(() => e.chartOptions.type === "doughnut"), S = Y(() => e.chartOptions.type.includes("vertical") ? "vertical" : "horizontal"), M = Y(() => {
20317
- var q, j, I;
20318
- if (!((q = e.chartData) != null && q.meta.metric_names) || !((j = e.chartData) != null && j.meta.metric_units))
20321
+ var U, j, I;
20322
+ if (!((U = e.chartData) != null && U.meta.metric_names) || !((j = e.chartData) != null && j.meta.metric_units))
20319
20323
  return;
20320
20324
  const R = e.chartData.meta.metric_names[0], F = e.chartData.meta.metric_units[R];
20321
20325
  if (e.chartData.meta.metric_names.length > 1) {
@@ -20334,11 +20338,11 @@ const lT = ["id"], cT = /* @__PURE__ */ le({
20334
20338
  }), P = Y(() => {
20335
20339
  const R = wa(Number(e.chartData.meta.granularity_ms));
20336
20340
  return s.t(`granularityAxisTitles.${R}`);
20337
- }), C = Y(() => e.emptyStateTitle || s.t("noDataAvailableTitle")), g = Y(() => e.emptyStateDescription || s.t("noDataAvailableDescription")), b = Y(() => _.value ? qw(l.value) : e.chartData && e.chartData.meta && e.chartData.data.length), k = Y(() => e.chartData.meta.granularity_ms ? wa(e.chartData.meta.granularity_ms) || "hourly" : wa(
20341
+ }), C = Y(() => e.emptyStateTitle || s.t("noDataAvailableTitle")), g = Y(() => e.emptyStateDescription || s.t("noDataAvailableDescription")), b = Y(() => _.value ? Uw(l.value) : e.chartData && e.chartData.meta && e.chartData.data.length), k = Y(() => e.chartData.meta.granularity_ms ? wa(e.chartData.meta.granularity_ms) || "hourly" : wa(
20338
20342
  new Date(e.chartData.data[1].timestamp).getTime() - new Date(e.chartData.data[0].timestamp).getTime()
20339
20343
  ) || "hourly"), O = Y(() => e.chartOptions.chartLegendSortFn ? e.chartOptions.chartLegendSortFn : (R, F) => R.text === s.t("chartLabels.____OTHER____") ? 1 : F.text === s.t("chartLabels.____OTHER____") ? -1 : !isNaN(parseInt(R.text, 10)) && !isNaN(parseInt(F.text, 10)) ? R.text < F.text ? -1 : 1 : R.value && F.value ? F.value.raw - R.value.raw : 0), A = Y(() => e.chartOptions.chartTooltipSortFn ? e.chartOptions.chartTooltipSortFn : (R, F) => R.label === s.t("chartLabels.____OTHER____") ? 1 : F.label === s.t("chartLabels.____OTHER____") ? -1 : !isNaN(parseInt(R.label, 10)) && !isNaN(parseInt(F.label, 10)) ? R.label < F.label ? -1 : 1 : R.value && F.value ? F.rawValue - R.rawValue : 0);
20340
20344
  return fl("showLegendValues", d), fl("legendPosition", Mt(e, "legendPosition")), (R, F) => {
20341
- const q = Ee("KTooltip"), j = Ee("KEmptyState");
20345
+ const U = Ee("KTooltip"), j = Ee("KEmptyState");
20342
20346
  return Z(), dt("div", mT, [
20343
20347
  b.value && p.value && f.value || !rt(a) && (n.allowCsvExport || e.chartTitle) ? (Z(), dt("div", yT, [
20344
20348
  n.chartTitle ? (Z(), dt("div", {
@@ -20347,7 +20351,7 @@ const lT = ["id"], cT = /* @__PURE__ */ le({
20347
20351
  title: n.chartTitle
20348
20352
  }, ct(n.chartTitle), 9, bT)) : $t("", !0),
20349
20353
  b.value && p.value && f.value ? (Z(), dt("div", xT, [
20350
- Gt(q, {
20354
+ Gt(U, {
20351
20355
  class: "tooltip",
20352
20356
  "max-width": "500",
20353
20357
  placement: "right"
@@ -20517,13 +20521,13 @@ const lT = ["id"], cT = /* @__PURE__ */ le({
20517
20521
  key: 0,
20518
20522
  class: "metric-large",
20519
20523
  "data-testid": "doughnut-chart-metric",
20520
- style: Un(u.value)
20524
+ style: qn(u.value)
20521
20525
  }, ct(l.value), 5)) : $t("", !0),
20522
20526
  h.value ? (Z(), dt("div", DT, ct(rt(e).t("total")) + ": " + ct(c.value), 1)) : $t("", !0)
20523
20527
  ]),
20524
20528
  ut("div", {
20525
20529
  class: "chart-container",
20526
- style: Un({ height: n.height, width: n.width })
20530
+ style: qn({ height: n.height, width: n.width })
20527
20531
  }, [
20528
20532
  Gt(rt(gf), {
20529
20533
  ref_key: "chartInstance",
@@ -20783,7 +20787,7 @@ export {
20783
20787
  tv as EMPTY_COLOR,
20784
20788
  Kw as FONT_SIZE_REGULAR,
20785
20789
  Gw as FONT_SIZE_SMALL,
20786
- qa as MAX_LABEL_LENGTH,
20790
+ Ua as MAX_LABEL_LENGTH,
20787
20791
  QT as OTHERS_COLOR,
20788
20792
  rC as SimpleChart,
20789
20793
  aC as TopNTable,
@@ -20798,12 +20802,12 @@ export {
20798
20802
  Mh as determineBaseColor,
20799
20803
  KT as errorRateColors,
20800
20804
  ZT as latencyColors,
20801
- qc as lightGrey,
20805
+ Uc as lightGrey,
20802
20806
  JT as lookupColor,
20803
20807
  Va as lookupDatavisColor,
20804
20808
  tC as lookupStatusCodeCategoryColor,
20805
20809
  Sh as lookupStatusCodeColor,
20806
- Ua as numberFormatter,
20810
+ qa as numberFormatter,
20807
20811
  eC as simpleChartMetricDisplay,
20808
20812
  iC as simpleChartTypes,
20809
20813
  XT as statusCodeBadgeBackgroundColor,