genus-ui 2.47.44 → 2.47.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -67,7 +67,7 @@ const Fr = D`
67
67
  font-family: var(--textarea-label-font-family, 'Sofia Pro Regular');
68
68
  font-size: var(--textarea-label-font-size, 1rem);
69
69
  }
70
- `, ct = D`
70
+ `, nt = D`
71
71
  :host
72
72
  {
73
73
  --java: #20bec7;
@@ -112,7 +112,7 @@ let Gt = class extends Z {
112
112
  );
113
113
  }
114
114
  };
115
- Gt.styles = [ct, Fr, Wr, Zr, Kr, Ur];
115
+ Gt.styles = [nt, Fr, Wr, Zr, Kr, Ur];
116
116
  Gt.formAssociated = !0;
117
117
  re([
118
118
  M({ attribute: "label-text" })
@@ -558,7 +558,7 @@ let tt = class extends Z {
558
558
  return this.renderInputControl(this.inputType);
559
559
  }
560
560
  };
561
- tt.styles = [ct, na, ea, ia, qr, _r, $r, ta];
561
+ tt.styles = [nt, na, ea, ia, qr, _r, $r, ta];
562
562
  tt.formAssociated = !0;
563
563
  At([
564
564
  M({ attribute: "label-text" })
@@ -1030,7 +1030,7 @@ let et = class extends Z {
1030
1030
  );
1031
1031
  }
1032
1032
  };
1033
- et.styles = [ct, Ma, ma, ba, ga, fa, pa, wa];
1033
+ et.styles = [nt, Ma, ma, ba, ga, fa, pa, wa];
1034
1034
  et.formAssociated = !0;
1035
1035
  ht([
1036
1036
  M({ attribute: "label-text" })
@@ -1300,7 +1300,7 @@ let vt = class extends Z {
1300
1300
  `;
1301
1301
  }
1302
1302
  };
1303
- vt.styles = [ct, xa, va, Ga, Ya, Ca, ya];
1303
+ vt.styles = [nt, xa, va, Ga, Ya, Ca, ya];
1304
1304
  ae([
1305
1305
  M({ attribute: "tab-names", type: Array })
1306
1306
  ], vt.prototype, "tabNames", 2);
@@ -1582,7 +1582,7 @@ let gt = class extends Z {
1582
1582
  `;
1583
1583
  }
1584
1584
  };
1585
- gt.styles = [ct, Lo, Oo, Pa, Ta];
1585
+ gt.styles = [nt, Lo, Oo, Pa, Ta];
1586
1586
  Et([
1587
1587
  M({ attribute: "current-step", type: Number })
1588
1588
  ], gt.prototype, "currentStep", 2);
@@ -1789,7 +1789,7 @@ let Yt = class extends Z {
1789
1789
  `;
1790
1790
  }
1791
1791
  };
1792
- Yt.styles = [ct, ja, Ra, Ha, Na, Va, Wa, Fa];
1792
+ Yt.styles = [nt, ja, Ra, Ha, Na, Va, Wa, Fa];
1793
1793
  Yt.formAssociated = !0;
1794
1794
  le([
1795
1795
  M({ attribute: "label-text" })
@@ -2050,7 +2050,7 @@ let Jt = class extends Z {
2050
2050
  );
2051
2051
  }
2052
2052
  };
2053
- Jt.styles = [ct, Ja, $a, qa, _a, tl];
2053
+ Jt.styles = [nt, Ja, $a, qa, _a, tl];
2054
2054
  Ce([
2055
2055
  M({ attribute: "card-title" })
2056
2056
  ], Jt.prototype, "dataCardTitle", 2);
@@ -2249,7 +2249,7 @@ let ri = class extends Z {
2249
2249
  `;
2250
2250
  }
2251
2251
  };
2252
- ri.styles = [ct, jo, So, cl, Al, Ro];
2252
+ ri.styles = [nt, jo, So, cl, Al, Ro];
2253
2253
  No([
2254
2254
  M({ attribute: "label-text" })
2255
2255
  ], ri.prototype, "labelText", 2);
@@ -2587,7 +2587,7 @@ var yl = Object.defineProperty, Il = Object.getOwnPropertyDescriptor, kt = (i, t
2587
2587
  (r = i[o]) && (s = (n ? r(t, e, s) : r(s)) || s);
2588
2588
  return n && s && yl(t, e, s), s;
2589
2589
  };
2590
- let lt = class extends Z {
2590
+ let ct = class extends Z {
2591
2591
  constructor() {
2592
2592
  super(), this.labelText = "", this.inputValue = "", this.inputName = "", this.placeholderText = "", this.searchPlaceholderText = "", this.withoutLabel = !1, this.withFilter = !1, this.displayPosition = "bottom", this.inputIconSrc = "", this._showOptionsCSS = "", this.selectOption = (i) => {
2593
2593
  let t = i.target.getAttribute("option-value");
@@ -2661,41 +2661,41 @@ let lt = class extends Z {
2661
2661
  return this.renderDropDownControl();
2662
2662
  }
2663
2663
  };
2664
- lt.styles = [Bl, xl, Gl, Vo, vl, Ho, Yl, Cl];
2665
- lt.formAssociated = !0;
2664
+ ct.styles = [nt, Bl, xl, Gl, Vo, vl, Ho, Yl, Cl];
2665
+ ct.formAssociated = !0;
2666
2666
  kt([
2667
2667
  M({ attribute: "label-text" })
2668
- ], lt.prototype, "labelText", 2);
2668
+ ], ct.prototype, "labelText", 2);
2669
2669
  kt([
2670
2670
  M({ attribute: "input-value" })
2671
- ], lt.prototype, "inputValue", 2);
2671
+ ], ct.prototype, "inputValue", 2);
2672
2672
  kt([
2673
2673
  M({ attribute: "name", reflect: !0 })
2674
- ], lt.prototype, "inputName", 2);
2674
+ ], ct.prototype, "inputName", 2);
2675
2675
  kt([
2676
2676
  M({ attribute: "placeholder-text" })
2677
- ], lt.prototype, "placeholderText", 2);
2677
+ ], ct.prototype, "placeholderText", 2);
2678
2678
  kt([
2679
2679
  M({ attribute: "search-placeholder-text" })
2680
- ], lt.prototype, "searchPlaceholderText", 2);
2680
+ ], ct.prototype, "searchPlaceholderText", 2);
2681
2681
  kt([
2682
2682
  M({ attribute: "without-label", type: Boolean })
2683
- ], lt.prototype, "withoutLabel", 2);
2683
+ ], ct.prototype, "withoutLabel", 2);
2684
2684
  kt([
2685
2685
  M({ attribute: "with-filter", type: Boolean })
2686
- ], lt.prototype, "withFilter", 2);
2686
+ ], ct.prototype, "withFilter", 2);
2687
2687
  kt([
2688
2688
  M({ attribute: "display-position" })
2689
- ], lt.prototype, "displayPosition", 2);
2689
+ ], ct.prototype, "displayPosition", 2);
2690
2690
  kt([
2691
2691
  M({ attribute: "dropdown-icon" })
2692
- ], lt.prototype, "inputIconSrc", 2);
2692
+ ], ct.prototype, "inputIconSrc", 2);
2693
2693
  kt([
2694
2694
  j()
2695
- ], lt.prototype, "_showOptionsCSS", 2);
2696
- lt = kt([
2695
+ ], ct.prototype, "_showOptionsCSS", 2);
2696
+ ct = kt([
2697
2697
  U("genus-dropdown")
2698
- ], lt);
2698
+ ], ct);
2699
2699
  var El = Object.defineProperty, kl = Object.getOwnPropertyDescriptor, Fo = (i, t, e, n) => {
2700
2700
  for (var s = n > 1 ? void 0 : n ? kl(t, e) : t, o = i.length - 1, r; o >= 0; o--)
2701
2701
  (r = i[o]) && (s = (n ? r(t, e, s) : r(s)) || s);
@@ -2713,7 +2713,7 @@ let ai = class extends Z {
2713
2713
  `;
2714
2714
  }
2715
2715
  };
2716
- ai.styles = [Vo, Ho];
2716
+ ai.styles = [nt, Vo, Ho];
2717
2717
  Fo([
2718
2718
  M({ attribute: "option-value" })
2719
2719
  ], ai.prototype, "optionValue", 2);
@@ -2723,7 +2723,7 @@ ai = Fo([
2723
2723
  const bf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2724
2724
  __proto__: null,
2725
2725
  get GenusDropDown() {
2726
- return lt;
2726
+ return ct;
2727
2727
  },
2728
2728
  get GenusDropDownOption() {
2729
2729
  return ai;
@@ -3432,11 +3432,11 @@ function Yn(i, t) {
3432
3432
  function fc(i, t) {
3433
3433
  return (i - t + Ac) % V - L;
3434
3434
  }
3435
- function ot(i) {
3435
+ function rt(i) {
3436
3436
  return (i % V + V) % V;
3437
3437
  }
3438
3438
  function hi(i, t, e, n) {
3439
- const s = ot(i), o = ot(t), r = ot(e), a = ot(o - s), l = ot(r - s), c = ot(s - o), A = ot(s - r);
3439
+ const s = rt(i), o = rt(t), r = rt(e), a = rt(o - s), l = rt(r - s), c = rt(s - o), A = rt(s - r);
3440
3440
  return s === o || s === r || n && o === r || a > l && c < A;
3441
3441
  }
3442
3442
  function $(i, t, e) {
@@ -3536,7 +3536,7 @@ function Mc(i, t) {
3536
3536
  return t ? (clearTimeout(e), e = setTimeout(i, t, n)) : i.apply(this, n), t;
3537
3537
  };
3538
3538
  }
3539
- const Un = (i) => i === "start" ? "left" : i === "end" ? "right" : "center", st = (i, t, e) => i === "start" ? t : i === "end" ? e : (t + e) / 2, Dc = (i, t, e, n) => i === (n ? "left" : "right") ? e : i === "center" ? (t + e) / 2 : t;
3539
+ const Un = (i) => i === "start" ? "left" : i === "end" ? "right" : "center", ot = (i, t, e) => i === "start" ? t : i === "end" ? e : (t + e) / 2, Dc = (i, t, e, n) => i === (n ? "left" : "right") ? e : i === "center" ? (t + e) / 2 : t;
3540
3540
  function ir(i, t, e) {
3541
3541
  const n = t.length;
3542
3542
  let s = 0, o = n;
@@ -4102,7 +4102,7 @@ function Be(i) {
4102
4102
  "bottomRight"
4103
4103
  ]);
4104
4104
  }
4105
- function at(i) {
4105
+ function lt(i) {
4106
4106
  const t = rr(i);
4107
4107
  return t.width = t.left + t.right, t.height = t.top + t.bottom, t;
4108
4108
  }
@@ -4639,7 +4639,7 @@ function fr(i) {
4639
4639
  return i === "angle" ? {
4640
4640
  between: hi,
4641
4641
  compare: fc,
4642
- normalize: ot
4642
+ normalize: rt
4643
4643
  } : {
4644
4644
  between: Ut,
4645
4645
  compare: (t, e) => t - e,
@@ -6860,7 +6860,7 @@ function Hs(i, t, e, n) {
6860
6860
  }
6861
6861
  t.x = o, t.y = r;
6862
6862
  }
6863
- var rt = {
6863
+ var at = {
6864
6864
  addBox(i, t) {
6865
6865
  i.boxes || (i.boxes = []), t.fullSize = t.fullSize || !1, t.position = t.position || "top", t.weight = t.weight || 0, t._layers = t._layers || function() {
6866
6866
  return [
@@ -6883,7 +6883,7 @@ var rt = {
6883
6883
  update(i, t, e, n) {
6884
6884
  if (!i)
6885
6885
  return;
6886
- const s = at(i.options.layout.padding), o = Math.max(t - s.width, 0), r = Math.max(e - s.height, 0), a = nh(i.boxes), l = a.vertical, c = a.horizontal;
6886
+ const s = lt(i.options.layout.padding), o = Math.max(t - s.width, 0), r = Math.max(e - s.height, 0), a = nh(i.boxes), l = a.vertical, c = a.horizontal;
6887
6887
  O(i.boxes, (f) => {
6888
6888
  typeof f.beforeLayout == "function" && f.beforeLayout();
6889
6889
  });
@@ -6896,7 +6896,7 @@ var rt = {
6896
6896
  vBoxMaxWidth: o / 2 / A,
6897
6897
  hBoxMaxHeight: r / 2
6898
6898
  }), d = Object.assign({}, s);
6899
- xr(d, at(n));
6899
+ xr(d, lt(n));
6900
6900
  const u = Object.assign({
6901
6901
  maxPadding: d,
6902
6902
  w: o,
@@ -7253,7 +7253,7 @@ function Ue(i) {
7253
7253
  function Xs(i, t) {
7254
7254
  if (!i.display)
7255
7255
  return 0;
7256
- const e = _(i.font, t), n = at(i.padding);
7256
+ const e = _(i.font, t), n = lt(i.padding);
7257
7257
  return (F(i.text) ? i.text.length : 1) * e.lineHeight + n.height;
7258
7258
  }
7259
7259
  function Eh(i, t) {
@@ -7278,7 +7278,7 @@ function Ph(i, t, e, n) {
7278
7278
  let h = 0, d, u, g;
7279
7279
  const f = r - s, p = a - o;
7280
7280
  if (i.isHorizontal()) {
7281
- if (u = st(n, o, a), T(e)) {
7281
+ if (u = ot(n, o, a), T(e)) {
7282
7282
  const w = Object.keys(e)[0], b = e[w];
7283
7283
  g = A[w].getPixelForValue(b) + f - t;
7284
7284
  } else e === "center" ? g = (c.bottom + c.top) / 2 + f - t : g = Zs(i, e, t);
@@ -7288,7 +7288,7 @@ function Ph(i, t, e, n) {
7288
7288
  const w = Object.keys(e)[0], b = e[w];
7289
7289
  u = A[w].getPixelForValue(b) - p + t;
7290
7290
  } else e === "center" ? u = (c.left + c.right) / 2 - p + t : u = Zs(i, e, t);
7291
- g = st(n, r, s), h = e === "left" ? -q : q;
7291
+ g = ot(n, r, s), h = e === "left" ? -q : q;
7292
7292
  }
7293
7293
  return {
7294
7294
  titleX: u,
@@ -7631,8 +7631,8 @@ class Ie extends yt {
7631
7631
  }
7632
7632
  const ft = E(s.ticks.maxTicksLimit, h), S = Math.max(1, Math.ceil(h / ft));
7633
7633
  for (G = 0; G < h; G += S) {
7634
- const H = this.getContext(G), J = o.setContext(H), Dt = a.setContext(H), nt = J.lineWidth, Ee = J.color, bi = Dt.dash || [], ke = Dt.dashOffset, Ne = J.tickWidth, ue = J.tickColor, Ve = J.tickBorderDash || [], ge = J.tickBorderDashOffset;
7635
- x = yh(this, G, l), x !== void 0 && (B = pe(n, x, nt), c ? Y = y = k = z = B : C = I = Q = it = B, u.push({
7634
+ const H = this.getContext(G), J = o.setContext(H), Dt = a.setContext(H), st = J.lineWidth, Ee = J.color, bi = Dt.dash || [], ke = Dt.dashOffset, Ne = J.tickWidth, ue = J.tickColor, Ve = J.tickBorderDash || [], ge = J.tickBorderDashOffset;
7635
+ x = yh(this, G, l), x !== void 0 && (B = pe(n, x, st), c ? Y = y = k = z = B : C = I = Q = it = B, u.push({
7636
7636
  tx1: Y,
7637
7637
  ty1: C,
7638
7638
  tx2: y,
@@ -7641,7 +7641,7 @@ class Ie extends yt {
7641
7641
  y1: Q,
7642
7642
  x2: z,
7643
7643
  y2: it,
7644
- width: nt,
7644
+ width: st,
7645
7645
  color: Ee,
7646
7646
  borderDash: bi,
7647
7647
  borderDashOffset: ke,
@@ -7689,12 +7689,12 @@ class Ie extends yt {
7689
7689
  G = a[w], x = G.label;
7690
7690
  const S = o.setContext(this.getContext(w));
7691
7691
  y = this.getPixelForTick(w) + o.labelOffset, I = this._resolveTickFontOptions(w), k = I.lineHeight, Q = F(x) ? x.length : 1;
7692
- const H = Q / 2, J = S.color, Dt = S.textStrokeColor, nt = S.textStrokeWidth;
7692
+ const H = Q / 2, J = S.color, Dt = S.textStrokeColor, st = S.textStrokeWidth;
7693
7693
  let Ee = C;
7694
7694
  r ? (B = y, C === "inner" && (w === b - 1 ? Ee = this.options.reverse ? "left" : "right" : w === 0 ? Ee = this.options.reverse ? "right" : "left" : Ee = "center"), s === "top" ? c === "near" || f !== 0 ? z = -Q * k + k / 2 : c === "center" ? z = -ft.highest.height / 2 - H * k + k : z = -ft.highest.height + k / 2 : c === "near" || f !== 0 ? z = k / 2 : c === "center" ? z = ft.highest.height / 2 - H * k : z = ft.highest.height - Q * k, h && (z *= -1), f !== 0 && !S.showLabelBackdrop && (B += k / 2 * Math.sin(f))) : (Y = y, z = (1 - Q) * k / 2);
7695
7695
  let bi;
7696
7696
  if (S.showLabelBackdrop) {
7697
- const ke = at(S.backdropPadding), Ne = ft.heights[w], ue = ft.widths[w];
7697
+ const ke = lt(S.backdropPadding), Ne = ft.heights[w], ue = ft.widths[w];
7698
7698
  let Ve = z - ke.top, ge = 0 - ke.left;
7699
7699
  switch (it) {
7700
7700
  case "middle":
@@ -7731,7 +7731,7 @@ class Ie extends yt {
7731
7731
  rotation: f,
7732
7732
  color: J,
7733
7733
  strokeColor: Dt,
7734
- strokeWidth: nt,
7734
+ strokeWidth: st,
7735
7735
  textAlign: Ee,
7736
7736
  textBaseline: it,
7737
7737
  translation: [
@@ -7842,7 +7842,7 @@ class Ie extends yt {
7842
7842
  const { ctx: t, options: { position: e, title: n, reverse: s } } = this;
7843
7843
  if (!n.display)
7844
7844
  return;
7845
- const o = _(n.font), r = at(n.padding), a = n.align;
7845
+ const o = _(n.font), r = lt(n.padding), a = n.align;
7846
7846
  let l = o.lineHeight / 2;
7847
7847
  e === "bottom" || e === "center" || T(e) ? (l += r.bottom, F(n.text) && (l += o.lineHeight * (n.text.length - 1))) : l += r.top;
7848
7848
  const { titleX: c, titleY: A, maxWidth: h, rotation: d } = Ph(this, l, e, a);
@@ -8509,7 +8509,7 @@ class Wt {
8509
8509
  }), O(s, (r, a) => {
8510
8510
  r || delete n[a];
8511
8511
  }), O(n, (r) => {
8512
- rt.configure(this, r, r.options), rt.addBox(this, r);
8512
+ at.configure(this, r, r.options), at.addBox(this, r);
8513
8513
  });
8514
8514
  }
8515
8515
  _updateMetasets() {
@@ -8580,7 +8580,7 @@ class Wt {
8580
8580
  }
8581
8581
  _updateScales() {
8582
8582
  O(this.scales, (t) => {
8583
- rt.removeBox(this, t);
8583
+ at.removeBox(this, t);
8584
8584
  }), this.ensureScalesHaveIDs(), this.buildOrUpdateScales();
8585
8585
  }
8586
8586
  _checkEventBindings() {
@@ -8614,7 +8614,7 @@ class Wt {
8614
8614
  cancelable: !0
8615
8615
  }) === !1)
8616
8616
  return;
8617
- rt.update(this, this.width, this.height, t);
8617
+ at.update(this, this.width, this.height, t);
8618
8618
  const e = this.chartArea, n = e.width <= 0 || e.height <= 0;
8619
8619
  this._layers = [], O(this.boxes, (s) => {
8620
8620
  n && s.position === "chartArea" || (s.configure && s.configure(), this._layers.push(...s._layers()));
@@ -8891,12 +8891,12 @@ function so() {
8891
8891
  return O(Wt.instances, (i) => i._plugins.invalidate());
8892
8892
  }
8893
8893
  function nd(i, t, e) {
8894
- const { startAngle: n, x: s, y: o, outerRadius: r, innerRadius: a, options: l } = t, { borderWidth: c, borderJoinStyle: A } = l, h = Math.min(c / r, ot(n - e));
8894
+ const { startAngle: n, x: s, y: o, outerRadius: r, innerRadius: a, options: l } = t, { borderWidth: c, borderJoinStyle: A } = l, h = Math.min(c / r, rt(n - e));
8895
8895
  if (i.beginPath(), i.arc(s, o, r - c / 2, n + h / 2, e - h / 2), a > 0) {
8896
- const d = Math.min(c / a, ot(n - e));
8896
+ const d = Math.min(c / a, rt(n - e));
8897
8897
  i.arc(s, o, a + c / 2, e - d / 2, n + d / 2, !0);
8898
8898
  } else {
8899
- const d = Math.min(c / 2, r * ot(n - e));
8899
+ const d = Math.min(c / 2, r * rt(n - e));
8900
8900
  if (A === "round")
8901
8901
  i.arc(s, o, d, e - L / 2, n + L / 2, !0);
8902
8902
  else if (A === "bevel") {
@@ -8949,23 +8949,23 @@ function _i(i, t, e, n, s, o) {
8949
8949
  if (i.beginPath(), o) {
8950
8950
  const S = (I + k) / 2;
8951
8951
  if (i.arc(r, a, h, I, S), i.arc(r, a, h, S, k), x > 0) {
8952
- const nt = Pe(y, k, r, a);
8953
- i.arc(nt.x, nt.y, x, k, b + q);
8952
+ const st = Pe(y, k, r, a);
8953
+ i.arc(st.x, st.y, x, k, b + q);
8954
8954
  }
8955
8955
  const H = Pe(z, b, r, a);
8956
8956
  if (i.lineTo(H.x, H.y), Y > 0) {
8957
- const nt = Pe(z, ft, r, a);
8958
- i.arc(nt.x, nt.y, Y, b + q, ft + Math.PI);
8957
+ const st = Pe(z, ft, r, a);
8958
+ i.arc(st.x, st.y, Y, b + q, ft + Math.PI);
8959
8959
  }
8960
8960
  const J = (b - Y / d + (w + B / d)) / 2;
8961
8961
  if (i.arc(r, a, d, b - Y / d, J, !0), i.arc(r, a, d, J, w + B / d, !0), B > 0) {
8962
- const nt = Pe(Q, it, r, a);
8963
- i.arc(nt.x, nt.y, B, it + Math.PI, w - q);
8962
+ const st = Pe(Q, it, r, a);
8963
+ i.arc(st.x, st.y, B, it + Math.PI, w - q);
8964
8964
  }
8965
8965
  const Dt = Pe(C, w, r, a);
8966
8966
  if (i.lineTo(Dt.x, Dt.y), G > 0) {
8967
- const nt = Pe(C, I, r, a);
8968
- i.arc(nt.x, nt.y, G, w - q, I);
8967
+ const st = Pe(C, I, r, a);
8968
+ i.arc(st.x, st.y, G, w - q, I);
8969
8969
  }
8970
8970
  } else {
8971
8971
  i.moveTo(r, a);
@@ -9654,7 +9654,7 @@ function Tn(i, t, e, n) {
9654
9654
  if (n)
9655
9655
  return;
9656
9656
  let s = t[i], o = e[i];
9657
- return i === "angle" && (s = ot(s), o = ot(o)), {
9657
+ return i === "angle" && (s = rt(s), o = rt(o)), {
9658
9658
  property: i,
9659
9659
  start: s,
9660
9660
  end: o
@@ -10088,13 +10088,13 @@ class po extends yt {
10088
10088
  return;
10089
10089
  const t = this._computeTitleHeight(), { legendHitBoxes: e, options: { align: n, labels: { padding: s }, rtl: o } } = this, r = Te(o, this.left, this.width);
10090
10090
  if (this.isHorizontal()) {
10091
- let a = 0, l = st(n, this.left + s, this.right - this.lineWidths[a]);
10091
+ let a = 0, l = ot(n, this.left + s, this.right - this.lineWidths[a]);
10092
10092
  for (const c of e)
10093
- a !== c.row && (a = c.row, l = st(n, this.left + s, this.right - this.lineWidths[a])), c.top += this.top + t + s, c.left = r.leftForLtr(r.x(l), c.width), l += c.width + s;
10093
+ a !== c.row && (a = c.row, l = ot(n, this.left + s, this.right - this.lineWidths[a])), c.top += this.top + t + s, c.left = r.leftForLtr(r.x(l), c.width), l += c.width + s;
10094
10094
  } else {
10095
- let a = 0, l = st(n, this.top + t + s, this.bottom - this.columnSizes[a].height);
10095
+ let a = 0, l = ot(n, this.top + t + s, this.bottom - this.columnSizes[a].height);
10096
10096
  for (const c of e)
10097
- c.col !== a && (a = c.col, l = st(n, this.top + t + s, this.bottom - this.columnSizes[a].height)), c.top = l, c.left += this.left + s, c.left = r.leftForLtr(r.x(c.left), c.width), l += c.height + s;
10097
+ c.col !== a && (a = c.col, l = ot(n, this.top + t + s, this.bottom - this.columnSizes[a].height)), c.top = l, c.left += this.left + s, c.left = r.leftForLtr(r.x(c.left), c.width), l += c.height + s;
10098
10098
  }
10099
10099
  }
10100
10100
  isHorizontal() {
@@ -10141,12 +10141,12 @@ class po extends yt {
10141
10141
  });
10142
10142
  }, G = this.isHorizontal(), x = this._computeTitleHeight();
10143
10143
  G ? u = {
10144
- x: st(o, this.left + A, this.right - n[0]),
10144
+ x: ot(o, this.left + A, this.right - n[0]),
10145
10145
  y: this.top + A + x,
10146
10146
  line: 0
10147
10147
  } : u = {
10148
10148
  x: this.left + A,
10149
- y: st(o, this.top + x + A, this.bottom - e[0].height),
10149
+ y: ot(o, this.top + x + A, this.bottom - e[0].height),
10150
10150
  line: 0
10151
10151
  }, ur(this.ctx, t.textDirection);
10152
10152
  const B = p + A;
@@ -10154,7 +10154,7 @@ class po extends yt {
10154
10154
  s.strokeStyle = Y.fontColor, s.fillStyle = Y.fontColor;
10155
10155
  const y = s.measureText(Y.text).width, I = l.textAlign(Y.textAlign || (Y.textAlign = r.textAlign)), k = g + d + y;
10156
10156
  let Q = u.x, z = u.y;
10157
- l.setWidth(this.width), G ? C > 0 && Q + k + A > this.right && (z = u.y += B, u.line++, Q = u.x = st(o, this.left + A, this.right - n[u.line])) : C > 0 && z + B > this.bottom && (Q = u.x = Q + e[u.line].width + A, u.line++, z = u.y = st(o, this.top + x + A, this.bottom - e[u.line].height));
10157
+ l.setWidth(this.width), G ? C > 0 && Q + k + A > this.right && (z = u.y += B, u.line++, Q = u.x = ot(o, this.left + A, this.right - n[u.line])) : C > 0 && z + B > this.bottom && (Q = u.x = Q + e[u.line].width + A, u.line++, z = u.y = ot(o, this.top + x + A, this.bottom - e[u.line].height));
10158
10158
  const it = l.x(Q);
10159
10159
  if (w(it, z, Y), Q = Dc(I, Q + g + d, G ? Q + k : this.right, t.rtl), b(l.x(Q), z, Y), G)
10160
10160
  u.x += k + A;
@@ -10166,22 +10166,22 @@ class po extends yt {
10166
10166
  }), gr(this.ctx, t.textDirection);
10167
10167
  }
10168
10168
  drawTitle() {
10169
- const t = this.options, e = t.title, n = _(e.font), s = at(e.padding);
10169
+ const t = this.options, e = t.title, n = _(e.font), s = lt(e.padding);
10170
10170
  if (!e.display)
10171
10171
  return;
10172
10172
  const o = Te(t.rtl, this.left, this.width), r = this.ctx, a = e.position, l = n.size / 2, c = s.top + l;
10173
10173
  let A, h = this.left, d = this.width;
10174
10174
  if (this.isHorizontal())
10175
- d = Math.max(...this.lineWidths), A = this.top + c, h = st(t.align, h, this.right - d);
10175
+ d = Math.max(...this.lineWidths), A = this.top + c, h = ot(t.align, h, this.right - d);
10176
10176
  else {
10177
10177
  const g = this.columnSizes.reduce((f, p) => Math.max(f, p.height), 0);
10178
- A = c + st(t.align, this.top, this.bottom - g - t.labels.padding - this._computeTitleHeight());
10178
+ A = c + ot(t.align, this.top, this.bottom - g - t.labels.padding - this._computeTitleHeight());
10179
10179
  }
10180
- const u = st(a, h, h + d);
10180
+ const u = ot(a, h, h + d);
10181
10181
  r.textAlign = o.textAlign(Un(a)), r.textBaseline = "middle", r.strokeStyle = e.color, r.fillStyle = e.color, r.font = n.string, ve(r, e.text, u, A, n);
10182
10182
  }
10183
10183
  _computeTitleHeight() {
10184
- const t = this.options.title, e = _(t.font), n = at(t.padding);
10184
+ const t = this.options.title, e = _(t.font), n = lt(t.padding);
10185
10185
  return t.display ? e.lineHeight + n.height : 0;
10186
10186
  }
10187
10187
  _getLegendItemAt(t, e) {
@@ -10247,14 +10247,14 @@ var ru = {
10247
10247
  options: e,
10248
10248
  chart: i
10249
10249
  });
10250
- rt.configure(i, n, e), rt.addBox(i, n);
10250
+ at.configure(i, n, e), at.addBox(i, n);
10251
10251
  },
10252
10252
  stop(i) {
10253
- rt.removeBox(i, i.legend), delete i.legend;
10253
+ at.removeBox(i, i.legend), delete i.legend;
10254
10254
  },
10255
10255
  beforeUpdate(i, t, e) {
10256
10256
  const n = i.legend;
10257
- rt.configure(i, n, e), n.options = e;
10257
+ at.configure(i, n, e), n.options = e;
10258
10258
  },
10259
10259
  afterUpdate(i) {
10260
10260
  const t = i.legend;
@@ -10283,7 +10283,7 @@ var ru = {
10283
10283
  generateLabels(i) {
10284
10284
  const t = i.data.datasets, { labels: { usePointStyle: e, pointStyle: n, textAlign: s, color: o, useBorderRadius: r, borderRadius: a } } = i.legend.options;
10285
10285
  return i._getSortedDatasetMetas().map((l) => {
10286
- const c = l.controller.getStyle(e ? 0 : void 0), A = at(c.borderWidth);
10286
+ const c = l.controller.getStyle(e ? 0 : void 0), A = lt(c.borderWidth);
10287
10287
  return {
10288
10288
  text: t[l.index].label,
10289
10289
  fillStyle: c.backgroundColor,
@@ -10334,7 +10334,7 @@ class is extends yt {
10334
10334
  }
10335
10335
  this.width = this.right = t, this.height = this.bottom = e;
10336
10336
  const s = F(n.text) ? n.text.length : 1;
10337
- this._padding = at(n.padding);
10337
+ this._padding = lt(n.padding);
10338
10338
  const o = s * _(n.font).lineHeight + this._padding.height;
10339
10339
  this.isHorizontal() ? this.height = o : this.width = o;
10340
10340
  }
@@ -10345,7 +10345,7 @@ class is extends yt {
10345
10345
  _drawArgs(t) {
10346
10346
  const { top: e, left: n, bottom: s, right: o, options: r } = this, a = r.align;
10347
10347
  let l = 0, c, A, h;
10348
- return this.isHorizontal() ? (A = st(a, n, o), h = e + t, c = o - n) : (r.position === "left" ? (A = n + t, h = st(a, s, e), l = L * -0.5) : (A = o - t, h = st(a, e, s), l = L * 0.5), c = s - e), {
10348
+ return this.isHorizontal() ? (A = ot(a, n, o), h = e + t, c = o - n) : (r.position === "left" ? (A = n + t, h = ot(a, s, e), l = L * -0.5) : (A = o - t, h = ot(a, e, s), l = L * 0.5), c = s - e), {
10349
10349
  titleX: A,
10350
10350
  titleY: h,
10351
10351
  maxWidth: c,
@@ -10376,7 +10376,7 @@ function au(i, t) {
10376
10376
  options: t,
10377
10377
  chart: i
10378
10378
  });
10379
- rt.configure(i, e, t), rt.addBox(i, e), i.titleBlock = e;
10379
+ at.configure(i, e, t), at.addBox(i, e), i.titleBlock = e;
10380
10380
  }
10381
10381
  var lu = {
10382
10382
  id: "title",
@@ -10386,11 +10386,11 @@ var lu = {
10386
10386
  },
10387
10387
  stop(i) {
10388
10388
  const t = i.titleBlock;
10389
- rt.removeBox(i, t), delete i.titleBlock;
10389
+ at.removeBox(i, t), delete i.titleBlock;
10390
10390
  },
10391
10391
  beforeUpdate(i, t, e) {
10392
10392
  const n = i.titleBlock;
10393
- rt.configure(i, n, e), n.options = e;
10393
+ at.configure(i, n, e), n.options = e;
10394
10394
  },
10395
10395
  defaults: {
10396
10396
  align: "center",
@@ -10421,14 +10421,14 @@ var cu = {
10421
10421
  options: e,
10422
10422
  chart: i
10423
10423
  });
10424
- rt.configure(i, n, e), rt.addBox(i, n), Qi.set(i, n);
10424
+ at.configure(i, n, e), at.addBox(i, n), Qi.set(i, n);
10425
10425
  },
10426
10426
  stop(i) {
10427
- rt.removeBox(i, Qi.get(i)), Qi.delete(i);
10427
+ at.removeBox(i, Qi.get(i)), Qi.delete(i);
10428
10428
  },
10429
10429
  beforeUpdate(i, t, e) {
10430
10430
  const n = Qi.get(i);
10431
- rt.configure(i, n, e), n.options = e;
10431
+ at.configure(i, n, e), n.options = e;
10432
10432
  },
10433
10433
  defaults: {
10434
10434
  align: "center",
@@ -10513,7 +10513,7 @@ function Au(i, t) {
10513
10513
  };
10514
10514
  }
10515
10515
  function wo(i, t) {
10516
- const e = i.chart.ctx, { body: n, footer: s, title: o } = i, { boxWidth: r, boxHeight: a } = t, l = _(t.bodyFont), c = _(t.titleFont), A = _(t.footerFont), h = o.length, d = s.length, u = n.length, g = at(t.padding);
10516
+ const e = i.chart.ctx, { body: n, footer: s, title: o } = i, { boxWidth: r, boxHeight: a } = t, l = _(t.bodyFont), c = _(t.titleFont), A = _(t.footerFont), h = o.length, d = s.length, u = n.length, g = lt(t.padding);
10517
10517
  let f = g.height, p = 0, w = n.reduce((x, B) => x + B.before.length + B.lines.length + B.after.length, 0);
10518
10518
  if (w += i.beforeBody.length + i.afterBody.length, h && (f += h * c.lineHeight + (h - 1) * t.titleSpacing + t.titleMarginBottom), w) {
10519
10519
  const x = t.displayColors ? Math.max(a, l.lineHeight) : l.lineHeight;
@@ -10570,7 +10570,7 @@ function bo(i, t, e, n) {
10570
10570
  };
10571
10571
  }
10572
10572
  function Pi(i, t, e) {
10573
- const n = at(e.padding);
10573
+ const n = lt(e.padding);
10574
10574
  return t === "center" ? i.x + i.width / 2 : t === "right" ? i.x + i.width - n.right : i.x + n.left;
10575
10575
  }
10576
10576
  function Mo(i) {
@@ -10832,7 +10832,7 @@ class zn extends yt {
10832
10832
  y: this.y
10833
10833
  };
10834
10834
  n = Math.abs(n) < 1e-3 ? 0 : n;
10835
- const r = at(e.padding), a = this.title.length || this.beforeBody.length || this.body.length || this.afterBody.length || this.footer.length;
10835
+ const r = lt(e.padding), a = this.title.length || this.beforeBody.length || this.body.length || this.afterBody.length || this.footer.length;
10836
10836
  e.enabled && a && (t.save(), t.globalAlpha = n, this.drawBackground(o, t, s, e), ur(t, e.textDirection), o.y += r.top, this.drawTitle(o, t, e), this.drawBody(o, t, e), this.drawFooter(o, t, e), gr(t, e.textDirection), t.restore());
10837
10837
  }
10838
10838
  getActiveElements() {
@@ -11289,7 +11289,7 @@ v(Sn, "id", "logarithmic"), v(Sn, "defaults", {
11289
11289
  function jn(i) {
11290
11290
  const t = i.ticks;
11291
11291
  if (t.display && i.display) {
11292
- const e = at(t.backdropPadding);
11292
+ const e = lt(t.backdropPadding);
11293
11293
  return E(t.font && t.font.size, W.font.size) + e.height;
11294
11294
  }
11295
11295
  return 0;
@@ -11326,7 +11326,7 @@ function Yu(i) {
11326
11326
  s[l] = c.padding;
11327
11327
  const A = i.getPointPosition(l, i.drawingArea + s[l], a), h = _(c.font), d = vu(i.ctx, h, i._pointLabels[l]);
11328
11328
  n[l] = d;
11329
- const u = ot(i.getIndexAngle(l) + a), g = Math.round(Wn(u)), f = Yo(g, A.x, d.w, 0, 180), p = Yo(g, A.y, d.h, 90, 270);
11329
+ const u = rt(i.getIndexAngle(l) + a), g = Math.round(Wn(u)), f = Yo(g, A.x, d.w, 0, 180), p = Yo(g, A.y, d.h, 90, 270);
11330
11330
  Cu(e, t, u, f, p);
11331
11331
  }
11332
11332
  i.setCenterPoint(t.l - e.l, e.r - t.r, t.t - e.t, e.b - t.b), i._pointLabelItems = Eu(i, n, s);
@@ -11337,7 +11337,7 @@ function Cu(i, t, e, n, s) {
11337
11337
  n.start < t.l ? (a = (t.l - n.start) / o, i.l = Math.min(i.l, t.l - a)) : n.end > t.r && (a = (n.end - t.r) / o, i.r = Math.max(i.r, t.r + a)), s.start < t.t ? (l = (t.t - s.start) / r, i.t = Math.min(i.t, t.t - l)) : s.end > t.b && (l = (s.end - t.b) / r, i.b = Math.max(i.b, t.b + l));
11338
11338
  }
11339
11339
  function yu(i, t, e) {
11340
- const n = i.drawingArea, { extra: s, additionalAngle: o, padding: r, size: a } = e, l = i.getPointPosition(t, n + s + r, o), c = Math.round(Wn(ot(l.angle + q))), A = Pu(l.y, a.h, c), h = ku(c), d = Qu(l.x, a.w, h);
11340
+ const n = i.drawingArea, { extra: s, additionalAngle: o, padding: r, size: a } = e, l = i.getPointPosition(t, n + s + r, o), c = Math.round(Wn(rt(l.angle + q))), A = Pu(l.y, a.h, c), h = ku(c), d = Qu(l.x, a.w, h);
11341
11341
  return {
11342
11342
  visible: !0,
11343
11343
  x: l.x,
@@ -11392,7 +11392,7 @@ function Pu(i, t, e) {
11392
11392
  function Tu(i, t, e) {
11393
11393
  const { left: n, top: s, right: o, bottom: r } = e, { backdropColor: a } = t;
11394
11394
  if (!P(a)) {
11395
- const l = Be(t.borderRadius), c = at(t.backdropPadding);
11395
+ const l = Be(t.borderRadius), c = lt(t.backdropPadding);
11396
11396
  i.fillStyle = a;
11397
11397
  const A = n - c.left, h = s - c.top, d = o - n + c.width, u = r - s + c.height;
11398
11398
  Object.values(l).some((g) => g !== 0) ? (i.beginPath(), di(i, {
@@ -11447,7 +11447,7 @@ class ti extends $i {
11447
11447
  super(t), this.xCenter = void 0, this.yCenter = void 0, this.drawingArea = void 0, this._pointLabels = [], this._pointLabelItems = [];
11448
11448
  }
11449
11449
  setDimensions() {
11450
- const t = this._padding = at(jn(this.options) / 2), e = this.width = this.maxWidth - t.width, n = this.height = this.maxHeight - t.height;
11450
+ const t = this._padding = lt(jn(this.options) / 2), e = this.width = this.maxWidth - t.width, n = this.height = this.maxHeight - t.height;
11451
11451
  this.xCenter = Math.floor(this.left + e / 2 + t.left), this.yCenter = Math.floor(this.top + n / 2 + t.top), this.drawingArea = Math.floor(Math.min(e, n) / 2);
11452
11452
  }
11453
11453
  determineDataLimits() {
@@ -11475,7 +11475,7 @@ class ti extends $i {
11475
11475
  }
11476
11476
  getIndexAngle(t) {
11477
11477
  const e = V / (this._pointLabels.length || 1), n = this.options.startAngle || 0;
11478
- return ot(t * e + Bt(n));
11478
+ return rt(t * e + Bt(n));
11479
11479
  }
11480
11480
  getDistanceFromCenterForValue(t) {
11481
11481
  if (P(t))
@@ -11557,7 +11557,7 @@ class ti extends $i {
11557
11557
  const c = n.setContext(this.getContext(l)), A = _(c.font);
11558
11558
  if (o = this.getDistanceFromCenterForValue(this.ticks[l].value), c.showLabelBackdrop) {
11559
11559
  t.font = A.string, r = t.measureText(a.label).width, t.fillStyle = c.backdropColor;
11560
- const h = at(c.backdropPadding);
11560
+ const h = lt(c.backdropPadding);
11561
11561
  t.fillRect(-r / 2 - h.left, -o - A.size / 2 - h.top, r + h.width, A.size + h.height);
11562
11562
  }
11563
11563
  ve(t, a.label, 0, -o, A, {
@@ -11991,7 +11991,7 @@ let It = class extends Z {
11991
11991
  `;
11992
11992
  }
11993
11993
  };
11994
- It.styles = [ct, Ql, Pl, Tl];
11994
+ It.styles = [nt, Ql, Pl, Tl];
11995
11995
  qt([
11996
11996
  M({ attribute: "chart-title" })
11997
11997
  ], It.prototype, "chartTitle", 2);
@@ -12593,7 +12593,7 @@ let N = class extends Z {
12593
12593
  `;
12594
12594
  }
12595
12595
  };
12596
- N.styles = [ct, Zu, Wu, Uu, Ku, Xu, Ju, qu];
12596
+ N.styles = [nt, Zu, Wu, Uu, Ku, Xu, Ju, qu];
12597
12597
  K([
12598
12598
  M({ attribute: "table-headers", type: Array })
12599
12599
  ], N.prototype, "tableHeaders", 2);
@@ -13035,7 +13035,7 @@ let Lt = class extends Z {
13035
13035
  return this.renderDataItem();
13036
13036
  }
13037
13037
  };
13038
- Lt.styles = [ct, ug, gg, fg, pg, wg];
13038
+ Lt.styles = [nt, ug, gg, fg, pg, wg];
13039
13039
  Ae([
13040
13040
  M({ attribute: "data-header" })
13041
13041
  ], Lt.prototype, "dataHeader", 2);
@@ -13179,7 +13179,7 @@ let Ot = class extends Z {
13179
13179
  return this.renderInputControl();
13180
13180
  }
13181
13181
  };
13182
- Ot.styles = [ct, xg, Bg, Dg, Gg, Mg];
13182
+ Ot.styles = [nt, xg, Bg, Dg, Gg, Mg];
13183
13183
  he([
13184
13184
  M({ attribute: "button-text" })
13185
13185
  ], Ot.prototype, "buttonText", 2);
@@ -13286,7 +13286,7 @@ let Ye = class extends Z {
13286
13286
  `;
13287
13287
  }
13288
13288
  };
13289
- Ye.styles = [ct, Cg, yg, Ig, Eg];
13289
+ Ye.styles = [nt, Cg, yg, Ig, Eg];
13290
13290
  mi([
13291
13291
  M({ attribute: "toggle-switch-values", type: Array })
13292
13292
  ], Ye.prototype, "toggleSwitchValues", 2);
@@ -13448,7 +13448,7 @@ let bt = class extends Z {
13448
13448
  `;
13449
13449
  }
13450
13450
  };
13451
- bt.styles = [ct, Pg, Tg, zg, Lg, Og, Sg];
13451
+ bt.styles = [nt, Pg, Tg, zg, Lg, Og, Sg];
13452
13452
  jt([
13453
13453
  M({ attribute: "label-text" })
13454
13454
  ], bt.prototype, "labelText", 2);
@@ -13934,7 +13934,7 @@ let oe = class extends Z {
13934
13934
  `;
13935
13935
  }
13936
13936
  };
13937
- oe.styles = [ct, rf, of, tf, nf, sf, ef];
13937
+ oe.styles = [nt, rf, of, tf, nf, sf, ef];
13938
13938
  Re([
13939
13939
  M({ attribute: "accordion-id" })
13940
13940
  ], oe.prototype, "accordionId", 2);