genus-ui 2.16.31 → 2.19.31

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
@@ -293,21 +293,21 @@ function sr({ input: i = "", template: t = "", disallowCharacters: e = [], isRep
293
293
  } }) {
294
294
  try {
295
295
  t = t.toLowerCase(), s == !0 && i.length > (0, Ye.letterCount)(t, "x") && (t = t.repeat(Math.ceil(i.length / (0, Ye.letterCount)(t, "x")))), o && t[0] !== "x" && (t = (0, Ye.setCharAt)(t, 0, "")), n && t[t.length - 1] !== "x" && (t = (0, Ye.setCharAt)(t, t.length - 1, ""));
296
- let a = t, r = 0, l = "", c = 0;
296
+ let a = t, r = 0, l = "", A = 0;
297
297
  for (; r < t.length; ) {
298
- if (c > i.length - 1) {
298
+ if (A > i.length - 1) {
299
299
  t = t.substring(0, r), a = a.substring(0, r);
300
300
  break;
301
301
  }
302
302
  if (t[r] == i[r]) {
303
- r++, c++;
303
+ r++, A++;
304
304
  continue;
305
305
  }
306
- if (e && (0, Ye.isCharExist)(i[c], e)) {
307
- c++;
306
+ if (e && (0, Ye.isCharExist)(i[A], e)) {
307
+ A++;
308
308
  continue;
309
309
  }
310
- t[r] == "x" && (t = (0, Ye.setCharAt)(t, r, i[c]), l = l + i[c], c++), r++;
310
+ t[r] == "x" && (t = (0, Ye.setCharAt)(t, r, i[A]), l = l + i[A], A++), r++;
311
311
  }
312
312
  return {
313
313
  template: a,
@@ -374,20 +374,12 @@ let $ = class extends J {
374
374
  },
375
375
  password: () => {
376
376
  let e;
377
- return this.withoutIcon ? e = b`
378
- <div class='form-field form-field--without-icon'>
379
- <label class='input-label'>${this.labelText}</label>
380
- <input class='input-control input-control--without-icon' type='${i}' @input=${this.getInputValue} name='${this.inputName}' placeholder=${this.placeholderText} />
381
- </div>
382
- ` : this.withoutLabel ? e = b`
377
+ return this.withoutLabel ? e = b`
383
378
  <div class='form-field form-field--without-label'>
384
379
  <input class='input-control' type='${i}' @input=${this.getInputValue} name='${this.inputName}' placeholder=${this.placeholderText} />
385
380
  <div class='icon-container'>
386
381
  <img class="component-icon" src='${this.inputIcon || Js}' />
387
382
  </div>
388
- </div>` : this.withoutLabelIcon ? e = b`
389
- <div class='form-field form-field--without-label-icon'>
390
- <input class='input-control input-control--without-icon' type='${i}' @input=${this.getInputValue} name='${this.inputName}' placeholder=${this.placeholderText} />
391
383
  </div>` : e = b`
392
384
  <div class='form-field'>
393
385
  <label class='input-label'>${this.labelText}</label>
@@ -570,7 +562,7 @@ const ar = B`
570
562
  }
571
563
 
572
564
  .year-change-icon { pointer-events: none; }
573
- `, cr = B`
565
+ `, Ar = B`
574
566
  input[type='text']
575
567
  {
576
568
  font-family: var(--input-font-family, 'Sofia Pro Regular');
@@ -621,7 +613,7 @@ const ar = B`
621
613
  .current-date { font-family: var(--current-date-font-family, 'Sofia Pro Semi'); }
622
614
 
623
615
  .date--selected { font-family: var(--current-date-font-family, 'Sofia Pro Semi'); }
624
- `, Ar = B`
616
+ `, cr = B`
625
617
  .form-field
626
618
  {
627
619
  display: grid;
@@ -821,7 +813,7 @@ const ar = B`
821
813
  cursor: pointer;
822
814
  }
823
815
  `, $s = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cstyle%3e%20%23Calendar%20{%20fill:%20%23203e70;%20}%20%3c/style%3e%3ctitle%3eIconly/Bold/Calendar%3c/title%3e%3cg%20id='Iconly/Bold/Calendar'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Calendar'%20transform='translate(3.000000,%202.000000)'%20fill='%23000000'%20fill-rule='nonzero'%3e%3cpath%20d='M12.6496583,2.25524422e-06%20C13.0742093,-0.000994978687%2013.4099008,0.32883983%2013.4108881,0.768619575%20L13.4108881,0.768619575%20L13.4118754,1.51824414%20C16.1665203,1.73413601%2017.9861656,3.61119592%2017.9891276,6.48975425%20L17.9891276,6.48975425%20L17.9999941,14.9155344%20C18.0039375,18.0539625%2016.0322437,19.9849954%2012.8718071,19.9899929%20L12.8718071,19.9899929%20L5.15189025,20.0000023%20C2.0112002,20.0039859%200.0148231956,18.0269761%200.010873884,14.8795524%20L0.010873884,14.8795524%20L6.62739655e-06,6.55272272%20C-0.00393603445,3.6551739%201.75153297,1.78311149%204.5061778,1.53023813%20L4.5061778,1.53023813%20L4.50519047,0.780613568%20C4.50420314,0.340833823%204.83002135,0.00999951493%205.26444563,0.00999951493%20C5.6988699,0.00900001551%206.02468811,0.338834824%206.02567543,0.778614569%20L6.02567543,0.778614569%20L6.02666276,1.47826416%20L11.8913905,1.47026817%20L11.8904031,0.770618574%20C11.8894158,0.330838829%2012.215234,0.00100402015%2012.6496583,2.25524422e-06%20Z%20M13.0524881,14.1918968%20L13.0426148,14.1918968%20C12.588444,14.2028913%2012.22412,14.5837006%2012.2339933,15.0434703%20C12.2349806,15.50324%2012.6012792,15.8820503%2013.0554501,15.8920453%20C13.5185068,15.8910458%2013.8936914,15.5102365%2013.8927061,15.0404718%20C13.8927061,14.5707071%2013.5165322,14.1918968%2013.0524881,14.1918968%20L13.0524881,14.1918968%20Z%20M4.91690621,14.1928941%20C4.46273537,14.2128863%204.10729733,14.5936956%204.10828261,15.0534653%20C4.12901854,15.513235%204.50420314,15.8730548%204.95837398,15.8520653%20C5.40365886,15.8320753%205.75810957,15.4512661%205.73737569,14.9914963%20C5.72750241,14.5417216%205.36120376,14.1918968%204.91690621,14.1928941%20Z%20M8.98469714,14.1878967%20C8.53052631,14.2088883%208.1760756,14.5886981%208.1760756,15.0484678%20C8.19680948,15.5082375%208.57199408,15.8670578%209.02616491,15.8470678%20C9.47046247,15.8260783%209.82590051,15.4462686%209.80516663,14.9854993%20C9.79529335,14.5367241%209.4289947,14.1868993%208.98469714,14.1878967%20Z%20M4.91196957,10.5946962%20C4.45779873,10.6146884%204.10334802,10.9954976%204.10433329,11.4552674%20C4.1240819,11.9150371%204.50025383,12.2748569%204.95442467,12.2538674%20C5.39872222,12.2338774%205.75317294,11.8530681%205.73243905,11.3932984%20C5.72256577,10.9435237%205.35725445,10.5936989%204.91196957,10.5946962%20Z%20M8.98074783,10.5597138%20C8.526577,10.5797059%208.17113896,10.9605152%208.17212423,11.4202849%20C8.19187284,11.8800546%208.56804477,12.2388749%209.0222156,12.2188849%20C9.46651316,12.1978954%209.82096387,11.8180857%209.80121731,11.3583159%20C9.79035671,10.9085412%209.42504539,10.5587164%208.98074783,10.5597138%20Z%20M13.0485388,10.5647113%20C12.5943679,10.5747084%2012.2389299,10.9445232%2012.2399152,11.4042929%20L12.2399152,11.4042929%20L12.2399152,11.4152874%20C12.2497905,11.8750571%2012.6249751,12.2238824%2013.0801333,12.2138874%20C13.5244308,12.2028929%2013.8788815,11.8220837%2013.8690083,11.3623139%20C13.8482744,10.9225342%2013.491849,10.5637139%2013.0485388,10.5647113%20Z%20M11.8933651,3.00949727%20L6.02863742,3.01749327%20L6.02962475,3.8260883%20C6.02962475,4.25687255%205.70479387,4.59670235%205.27036959,4.59670235%20C4.83594532,4.59770185%204.50913978,4.25887155%204.50913978,3.8280873%20L4.50913978,3.8280873%20L4.50815246,3.05847275%20C2.58286306,3.25137613%201.51753626,4.38280948%201.52049208,6.55072372%20L1.52049208,6.55072372%20L1.52148557,6.86156804%20L16.4696299,6.84157805%20L16.4696299,6.49175325%20C16.4271748,4.3428295%2015.3490128,3.21539415%2013.4138501,3.04747825%20L13.4138501,3.04747825%20L13.4148374,3.81709281%20C13.4148374,4.24687756%2013.0801333,4.58770686%2012.6555823,4.58770686%20C12.221158,4.58870636%2011.8943525,4.24887655%2011.8943525,3.8190918%20L11.8943525,3.8190918%20L11.8933651,3.00949727%20Z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", tn = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cstyle%3e%20%23Arrow---Left-2%20{%20stroke:%20%231e9dfc;%20}%20%3c/style%3e%3ctitle%3eIconly/Light/Arrow%20-%20Left%202%3c/title%3e%3cg%20id='Iconly/Light/Arrow---Left-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cg%20id='Arrow---Left-2'%20transform='translate(12.000000,%2012.000000)%20rotate(-270.000000)%20translate(-12.000000,%20-12.000000)%20translate(5.000000,%208.500000)'%20stroke='%23000000'%20stroke-width='1.5'%3e%3cpolyline%20id='Stroke-1'%20points='14%200%207%207%200%200'%3e%3c/polyline%3e%3c/g%3e%3c/g%3e%3c/svg%3e", en = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cstyle%3e%20%23Arrow---Right-2%20{%20stroke:%20%231e9dfc;%20}%20%3c/style%3e%3ctitle%3eIconly/Light/Arrow%20-%20Right%202%3c/title%3e%3cg%20id='Iconly/Light/Arrow---Right-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cg%20id='Arrow---Right-2'%20transform='translate(12.000000,%2012.000000)%20rotate(-90.000000)%20translate(-12.000000,%20-12.000000)%20translate(5.000000,%208.500000)'%20stroke='%23000000'%20stroke-width='1.5'%3e%3cpolyline%20id='Stroke-1'%20points='14%200%207%207%200%200'%3e%3c/polyline%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
824
- var gr = Object.defineProperty, ur = Object.getOwnPropertyDescriptor, ct = (i, t, e, s) => {
816
+ var gr = Object.defineProperty, ur = Object.getOwnPropertyDescriptor, At = (i, t, e, s) => {
825
817
  for (var n = s > 1 ? void 0 : s ? ur(t, e) : t, o = i.length - 1, a; o >= 0; o--)
826
818
  (a = i[o]) && (n = (s ? a(t, e, n) : a(n)) || n);
827
819
  return s && n && gr(t, e, n), n;
@@ -948,51 +940,51 @@ let et = class extends J {
948
940
  );
949
941
  }
950
942
  };
951
- et.styles = [dr, Ar, hr, ar, rr, lr, cr];
943
+ et.styles = [dr, cr, hr, ar, rr, lr, Ar];
952
944
  et.formAssociated = !0;
953
- ct([
945
+ At([
954
946
  M({ attribute: "label-text" })
955
947
  ], et.prototype, "labelText", 2);
956
- ct([
948
+ At([
957
949
  M({ attribute: "input-value" })
958
950
  ], et.prototype, "inputValue", 2);
959
- ct([
951
+ At([
960
952
  M({ attribute: "name", reflect: !0 })
961
953
  ], et.prototype, "inputName", 2);
962
- ct([
954
+ At([
963
955
  M({ attribute: "input-icon" })
964
956
  ], et.prototype, "inputIcon", 2);
965
- ct([
957
+ At([
966
958
  M({ attribute: "placeholder-text" })
967
959
  ], et.prototype, "placeholderText", 2);
968
- ct([
960
+ At([
969
961
  M({ attribute: "without-label", type: Boolean })
970
962
  ], et.prototype, "withoutLabel", 2);
971
- ct([
963
+ At([
972
964
  M({ attribute: "display-position" })
973
965
  ], et.prototype, "displayPosition", 2);
974
- ct([
966
+ At([
975
967
  F()
976
968
  ], et.prototype, "_currentMonth", 2);
977
- ct([
969
+ At([
978
970
  F()
979
971
  ], et.prototype, "_currentYear", 2);
980
- ct([
972
+ At([
981
973
  F()
982
974
  ], et.prototype, "_currentDate", 2);
983
- ct([
975
+ At([
984
976
  F()
985
977
  ], et.prototype, "_showMonthsCssClass", 2);
986
- ct([
978
+ At([
987
979
  F()
988
980
  ], et.prototype, "_showCalenderCssClass", 2);
989
- ct([
981
+ At([
990
982
  F()
991
983
  ], et.prototype, "generateDays", 2);
992
- ct([
984
+ At([
993
985
  F()
994
986
  ], et.prototype, "_targetInput", 2);
995
- et = ct([
987
+ et = At([
996
988
  q("genus-date-picker")
997
989
  ], et);
998
990
  const fr = B`
@@ -2112,7 +2104,7 @@ const ju = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2112
2104
  .genus-checkbox:checked + .genus-checkbox-label .checked-icon { display: block; }
2113
2105
 
2114
2106
  .genus-checkbox:checked + .genus-checkbox-label .unchecked-icon { display: none; }
2115
- `, cl = B`
2107
+ `, Al = B`
2116
2108
  icon
2117
2109
  {
2118
2110
  width: 1.5625rem;
@@ -2124,7 +2116,7 @@ const ju = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2124
2116
  .epr-icon { display: none; }
2125
2117
 
2126
2118
  .unchecked-icon { display: block; }
2127
- `, Al = B`
2119
+ `, cl = B`
2128
2120
  .label-text
2129
2121
  {
2130
2122
  font-family: var(--font-family, sans-serif);
@@ -2166,7 +2158,7 @@ let Ie = class extends J {
2166
2158
  `;
2167
2159
  }
2168
2160
  };
2169
- Ie.styles = [hl, rl, ll, cl, Al];
2161
+ Ie.styles = [hl, rl, ll, Al, cl];
2170
2162
  Ui([
2171
2163
  M({ attribute: "label-text" })
2172
2164
  ], Ie.prototype, "labelText", 2);
@@ -2617,21 +2609,21 @@ const Vu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2617
2609
  * (c) 2023 Jukka Kurkela
2618
2610
  * Released under the MIT License
2619
2611
  */
2620
- function ci(i) {
2612
+ function Ai(i) {
2621
2613
  return i + 0.5 | 0;
2622
2614
  }
2623
2615
  const Zt = (i, t, e) => Math.max(Math.min(i, e), t);
2624
2616
  function He(i) {
2625
- return Zt(ci(i * 2.55), 0, 255);
2617
+ return Zt(Ai(i * 2.55), 0, 255);
2626
2618
  }
2627
2619
  function qt(i) {
2628
- return Zt(ci(i * 255), 0, 255);
2620
+ return Zt(Ai(i * 255), 0, 255);
2629
2621
  }
2630
2622
  function zt(i) {
2631
- return Zt(ci(i / 2.55) / 100, 0, 1);
2623
+ return Zt(Ai(i / 2.55) / 100, 0, 1);
2632
2624
  }
2633
2625
  function sn(i) {
2634
- return Zt(ci(i * 100), 0, 100);
2626
+ return Zt(Ai(i * 100), 0, 100);
2635
2627
  }
2636
2628
  const wt = { 0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, A: 10, B: 11, C: 12, D: 13, E: 14, F: 15, a: 10, b: 11, c: 12, d: 13, e: 14, f: 15 }, us = [..."0123456789ABCDEF"], Il = (i) => us[i & 15], El = (i) => us[(i & 240) >> 4] + us[i & 15], pi = (i) => (i & 240) >> 4 === (i & 15), kl = (i) => pi(i.r) && pi(i.g) && pi(i.b) && pi(i.a);
2637
2629
  function Ql(i) {
@@ -2674,8 +2666,8 @@ function Tl(i, t, e, s, n) {
2674
2666
  }
2675
2667
  function ks(i) {
2676
2668
  const e = i.r / 255, s = i.g / 255, n = i.b / 255, o = Math.max(e, s, n), a = Math.min(e, s, n), r = (o + a) / 2;
2677
- let l, c, A;
2678
- return o !== a && (A = o - a, c = r > 0.5 ? A / (2 - o - a) : A / (o + a), l = Tl(e, s, n, A, o), l = l * 60 + 0.5), [l | 0, c || 0, r];
2669
+ let l, A, c;
2670
+ return o !== a && (c = o - a, A = r > 0.5 ? c / (2 - o - a) : c / (o + a), l = Tl(e, s, n, c, o), l = l * 60 + 0.5), [l | 0, A || 0, r];
2679
2671
  }
2680
2672
  function Qs(i, t, e, s) {
2681
2673
  return (Array.isArray(t) ? i(t[0], t[1], t[2]) : i(t, e, s)).map(qt);
@@ -2992,8 +2984,8 @@ class ei {
2992
2984
  if (t) {
2993
2985
  const s = this.rgb, n = t.rgb;
2994
2986
  let o;
2995
- const a = e === o ? 0.5 : e, r = 2 * a - 1, l = s.a - n.a, c = ((r * l === -1 ? r : (r + l) / (1 + r * l)) + 1) / 2;
2996
- o = 1 - c, s.r = 255 & c * s.r + o * n.r + 0.5, s.g = 255 & c * s.g + o * n.g + 0.5, s.b = 255 & c * s.b + o * n.b + 0.5, s.a = a * s.a + (1 - a) * n.a, this.rgb = s;
2987
+ const a = e === o ? 0.5 : e, r = 2 * a - 1, l = s.a - n.a, A = ((r * l === -1 ? r : (r + l) / (1 + r * l)) + 1) / 2;
2988
+ o = 1 - A, s.r = 255 & A * s.r + o * n.r + 0.5, s.g = 255 & A * s.g + o * n.g + 0.5, s.b = 255 & A * s.b + o * n.b + 0.5, s.a = a * s.a + (1 - a) * n.a, this.rgb = s;
2997
2989
  }
2998
2990
  return this;
2999
2991
  }
@@ -3011,7 +3003,7 @@ class ei {
3011
3003
  return e.a *= 1 - t, this;
3012
3004
  }
3013
3005
  greyscale() {
3014
- const t = this._rgb, e = ci(t.r * 0.3 + t.g * 0.59 + t.b * 0.11);
3006
+ const t = this._rgb, e = Ai(t.r * 0.3 + t.g * 0.59 + t.b * 0.11);
3015
3007
  return t.r = t.g = t.b = e, this;
3016
3008
  }
3017
3009
  opaquer(t) {
@@ -3136,17 +3128,17 @@ function ii(i, t, e) {
3136
3128
  if (a = s[r], !P(a))
3137
3129
  continue;
3138
3130
  const l = Object.keys(a);
3139
- for (let c = 0, A = l.length; c < A; ++c)
3140
- o(l[c], i, a, e);
3131
+ for (let A = 0, c = l.length; A < c; ++A)
3132
+ o(l[A], i, a, e);
3141
3133
  }
3142
3134
  return i;
3143
3135
  }
3144
3136
  function Ue(i, t) {
3145
3137
  return ii(i, t, {
3146
- merger: tc
3138
+ merger: tA
3147
3139
  });
3148
3140
  }
3149
- function tc(i, t, e) {
3141
+ function tA(i, t, e) {
3150
3142
  if (!Zo(i))
3151
3143
  return;
3152
3144
  const s = t[i], n = e[i];
@@ -3159,15 +3151,15 @@ const rn = {
3159
3151
  x: (i) => i.x,
3160
3152
  y: (i) => i.y
3161
3153
  };
3162
- function ec(i) {
3154
+ function eA(i) {
3163
3155
  const t = i.split("."), e = [];
3164
3156
  let s = "";
3165
3157
  for (const n of t)
3166
3158
  s += n, s.endsWith("\\") ? s = s.slice(0, -1) + "." : (e.push(s), s = "");
3167
3159
  return e;
3168
3160
  }
3169
- function ic(i) {
3170
- const t = ec(i);
3161
+ function iA(i) {
3162
+ const t = eA(i);
3171
3163
  return (e) => {
3172
3164
  for (const s of t) {
3173
3165
  if (s === "")
@@ -3178,7 +3170,7 @@ function ic(i) {
3178
3170
  };
3179
3171
  }
3180
3172
  function _t(i, t) {
3181
- return (rn[t] || (rn[t] = ic(t)))(i);
3173
+ return (rn[t] || (rn[t] = iA(t)))(i);
3182
3174
  }
3183
3175
  function Os(i) {
3184
3176
  return i.charAt(0).toUpperCase() + i.slice(1);
@@ -3191,20 +3183,20 @@ const si = (i) => typeof i < "u", $t = (i) => typeof i == "function", ln = (i, t
3191
3183
  return !1;
3192
3184
  return !0;
3193
3185
  };
3194
- function sc(i) {
3186
+ function sA(i) {
3195
3187
  return i.type === "mouseup" || i.type === "click" || i.type === "contextmenu";
3196
3188
  }
3197
- const H = Math.PI, V = 2 * H, nc = V + H, Hi = Number.POSITIVE_INFINITY, oc = H / 180, X = H / 2, oe = H / 4, cn = H * 2 / 3, Kt = Math.log10, Et = Math.sign;
3189
+ const H = Math.PI, V = 2 * H, nA = V + H, Hi = Number.POSITIVE_INFINITY, oA = H / 180, X = H / 2, oe = H / 4, An = H * 2 / 3, Kt = Math.log10, Et = Math.sign;
3198
3190
  function Xe(i, t, e) {
3199
3191
  return Math.abs(i - t) < e;
3200
3192
  }
3201
- function An(i) {
3193
+ function cn(i) {
3202
3194
  const t = Math.round(i);
3203
3195
  i = Xe(i, t, i / 1e3) ? t : i;
3204
3196
  const e = Math.pow(10, Math.floor(Kt(i))), s = i / e;
3205
3197
  return (s <= 1 ? 1 : s <= 2 ? 2 : s <= 5 ? 5 : 10) * e;
3206
3198
  }
3207
- function ac(i) {
3199
+ function aA(i) {
3208
3200
  const t = [], e = Math.sqrt(i);
3209
3201
  let s;
3210
3202
  for (s = 1; s < e; s++)
@@ -3214,7 +3206,7 @@ function ac(i) {
3214
3206
  function Ee(i) {
3215
3207
  return !isNaN(parseFloat(i)) && isFinite(i);
3216
3208
  }
3217
- function rc(i, t) {
3209
+ function rA(i, t) {
3218
3210
  const e = Math.round(i);
3219
3211
  return e - t <= i && e + t >= i;
3220
3212
  }
@@ -3248,20 +3240,20 @@ function Uo(i, t) {
3248
3240
  function fs(i, t) {
3249
3241
  return Math.sqrt(Math.pow(t.x - i.x, 2) + Math.pow(t.y - i.y, 2));
3250
3242
  }
3251
- function lc(i, t) {
3252
- return (i - t + nc) % V - H;
3243
+ function lA(i, t) {
3244
+ return (i - t + nA) % V - H;
3253
3245
  }
3254
3246
  function ft(i) {
3255
3247
  return (i % V + V) % V;
3256
3248
  }
3257
3249
  function ni(i, t, e, s) {
3258
- const n = ft(i), o = ft(t), a = ft(e), r = ft(o - n), l = ft(a - n), c = ft(n - o), A = ft(n - a);
3259
- return n === o || n === a || s && o === a || r > l && c < A;
3250
+ const n = ft(i), o = ft(t), a = ft(e), r = ft(o - n), l = ft(a - n), A = ft(n - o), c = ft(n - a);
3251
+ return n === o || n === a || s && o === a || r > l && A < c;
3260
3252
  }
3261
3253
  function tt(i, t, e) {
3262
3254
  return Math.max(t, Math.min(e, i));
3263
3255
  }
3264
- function cc(i) {
3256
+ function AA(i) {
3265
3257
  return tt(i, -32768, 32767);
3266
3258
  }
3267
3259
  function Tt(i, t, e, s = 1e-6) {
@@ -3280,8 +3272,8 @@ function Ls(i, t, e) {
3280
3272
  const Rt = (i, t, e, s) => Ls(i, e, s ? (n) => {
3281
3273
  const o = i[n][t];
3282
3274
  return o < e || o === e && i[n + 1][t] === e;
3283
- } : (n) => i[n][t] < e), Ac = (i, t, e) => Ls(i, e, (s) => i[s][t] >= e);
3284
- function hc(i, t, e) {
3275
+ } : (n) => i[n][t] < e), cA = (i, t, e) => Ls(i, e, (s) => i[s][t] >= e);
3276
+ function hA(i, t, e) {
3285
3277
  let s = 0, n = i.length;
3286
3278
  for (; s < n && i[s] < t; )
3287
3279
  s++;
@@ -3296,7 +3288,7 @@ const Xo = [
3296
3288
  "splice",
3297
3289
  "unshift"
3298
3290
  ];
3299
- function dc(i, t) {
3291
+ function dA(i, t) {
3300
3292
  if (i._chartjs) {
3301
3293
  i._chartjs.listeners.push(t);
3302
3294
  return;
@@ -3349,28 +3341,28 @@ function _o(i, t) {
3349
3341
  }));
3350
3342
  };
3351
3343
  }
3352
- function gc(i, t) {
3344
+ function gA(i, t) {
3353
3345
  let e;
3354
3346
  return function(...s) {
3355
3347
  return t ? (clearTimeout(e), e = setTimeout(i, t, s)) : i.apply(this, s), t;
3356
3348
  };
3357
3349
  }
3358
- const Ss = (i) => i === "start" ? "left" : i === "end" ? "right" : "center", nt = (i, t, e) => i === "start" ? t : i === "end" ? e : (t + e) / 2, uc = (i, t, e, s) => i === (s ? "left" : "right") ? e : i === "center" ? (t + e) / 2 : t;
3350
+ const Ss = (i) => i === "start" ? "left" : i === "end" ? "right" : "center", nt = (i, t, e) => i === "start" ? t : i === "end" ? e : (t + e) / 2, uA = (i, t, e, s) => i === (s ? "left" : "right") ? e : i === "center" ? (t + e) / 2 : t;
3359
3351
  function $o(i, t, e) {
3360
3352
  const s = t.length;
3361
3353
  let n = 0, o = s;
3362
3354
  if (i._sorted) {
3363
- const { iScale: a, _parsed: r } = i, l = a.axis, { min: c, max: A, minDefined: h, maxDefined: d } = a.getUserBounds();
3355
+ const { iScale: a, _parsed: r } = i, l = a.axis, { min: A, max: c, minDefined: h, maxDefined: d } = a.getUserBounds();
3364
3356
  h && (n = tt(Math.min(
3365
3357
  // @ts-expect-error Need to type _parsed
3366
- Rt(r, l, c).lo,
3358
+ Rt(r, l, A).lo,
3367
3359
  // @ts-expect-error Need to fix types on _lookupByKey
3368
- e ? s : Rt(t, l, a.getPixelForValue(c)).lo
3360
+ e ? s : Rt(t, l, a.getPixelForValue(A)).lo
3369
3361
  ), 0, s - 1)), d ? o = tt(Math.max(
3370
3362
  // @ts-expect-error Need to type _parsed
3371
- Rt(r, a.axis, A, !0).hi + 1,
3363
+ Rt(r, a.axis, c, !0).hi + 1,
3372
3364
  // @ts-expect-error Need to fix types on _lookupByKey
3373
- e ? 0 : Rt(t, l, a.getPixelForValue(A), !0).hi + 1
3365
+ e ? 0 : Rt(t, l, a.getPixelForValue(c), !0).hi + 1
3374
3366
  ), n, s) - n : o = s - n;
3375
3367
  }
3376
3368
  return {
@@ -3447,18 +3439,18 @@ function fn(i) {
3447
3439
  function is(i) {
3448
3440
  return Ts(i) ? i : new ei(i).saturate(0.5).darken(0.1).hexString();
3449
3441
  }
3450
- const fc = [
3442
+ const fA = [
3451
3443
  "x",
3452
3444
  "y",
3453
3445
  "borderWidth",
3454
3446
  "radius",
3455
3447
  "tension"
3456
- ], pc = [
3448
+ ], pA = [
3457
3449
  "color",
3458
3450
  "borderColor",
3459
3451
  "backgroundColor"
3460
3452
  ];
3461
- function wc(i) {
3453
+ function wA(i) {
3462
3454
  i.set("animation", {
3463
3455
  delay: void 0,
3464
3456
  duration: 1e3,
@@ -3475,11 +3467,11 @@ function wc(i) {
3475
3467
  }), i.set("animations", {
3476
3468
  colors: {
3477
3469
  type: "color",
3478
- properties: pc
3470
+ properties: pA
3479
3471
  },
3480
3472
  numbers: {
3481
3473
  type: "number",
3482
- properties: fc
3474
+ properties: fA
3483
3475
  }
3484
3476
  }), i.describe("animations", {
3485
3477
  _fallback: "animation"
@@ -3519,7 +3511,7 @@ function wc(i) {
3519
3511
  }
3520
3512
  });
3521
3513
  }
3522
- function mc(i) {
3514
+ function mA(i) {
3523
3515
  i.set("layout", {
3524
3516
  autoPadding: !0,
3525
3517
  padding: {
@@ -3531,14 +3523,14 @@ function mc(i) {
3531
3523
  });
3532
3524
  }
3533
3525
  const pn = /* @__PURE__ */ new Map();
3534
- function bc(i, t) {
3526
+ function bA(i, t) {
3535
3527
  t = t || {};
3536
3528
  const e = i + JSON.stringify(t);
3537
3529
  let s = pn.get(e);
3538
3530
  return s || (s = new Intl.NumberFormat(i, t), pn.set(e, s)), s;
3539
3531
  }
3540
- function Ai(i, t, e) {
3541
- return bc(t, e).format(i);
3532
+ function ci(i, t, e) {
3533
+ return bA(t, e).format(i);
3542
3534
  }
3543
3535
  const ea = {
3544
3536
  values(i) {
@@ -3550,15 +3542,15 @@ const ea = {
3550
3542
  const s = this.chart.options.locale;
3551
3543
  let n, o = i;
3552
3544
  if (e.length > 1) {
3553
- const c = Math.max(Math.abs(e[0].value), Math.abs(e[e.length - 1].value));
3554
- (c < 1e-4 || c > 1e15) && (n = "scientific"), o = Mc(i, e);
3545
+ const A = Math.max(Math.abs(e[0].value), Math.abs(e[e.length - 1].value));
3546
+ (A < 1e-4 || A > 1e15) && (n = "scientific"), o = MA(i, e);
3555
3547
  }
3556
3548
  const a = Kt(Math.abs(o)), r = isNaN(a) ? 1 : Math.max(Math.min(-1 * Math.floor(a), 20), 0), l = {
3557
3549
  notation: n,
3558
3550
  minimumFractionDigits: r,
3559
3551
  maximumFractionDigits: r
3560
3552
  };
3561
- return Object.assign(l, this.options.ticks.format), Ai(i, s, l);
3553
+ return Object.assign(l, this.options.ticks.format), ci(i, s, l);
3562
3554
  },
3563
3555
  logarithmic(i, t, e) {
3564
3556
  if (i === 0)
@@ -3574,14 +3566,14 @@ const ea = {
3574
3566
  ].includes(s) || t > 0.8 * e.length ? ea.numeric.call(this, i, t, e) : "";
3575
3567
  }
3576
3568
  };
3577
- function Mc(i, t) {
3569
+ function MA(i, t) {
3578
3570
  let e = t.length > 3 ? t[2].value - t[1].value : t[1].value - t[0].value;
3579
3571
  return Math.abs(e) >= 1 && i !== Math.floor(i) && (e = i - Math.floor(i)), e;
3580
3572
  }
3581
3573
  var Xi = {
3582
3574
  formatters: ea
3583
3575
  };
3584
- function Dc(i) {
3576
+ function DA(i) {
3585
3577
  i.set("scale", {
3586
3578
  display: !0,
3587
3579
  offset: !1,
@@ -3659,7 +3651,7 @@ function qe(i, t) {
3659
3651
  function ss(i, t, e) {
3660
3652
  return typeof t == "string" ? ii(qe(i, t), e) : ii(qe(i, ""), t);
3661
3653
  }
3662
- class Bc {
3654
+ class BA {
3663
3655
  constructor(t, e) {
3664
3656
  this.animation = void 0, this.backgroundColor = "rgba(0,0,0,0.1)", this.borderColor = "rgba(0,0,0,0.1)", this.color = "#666", this.datasets = {}, this.devicePixelRatio = (s) => s.chart.platform.getDevicePixelRatio(), this.elements = {}, this.events = [
3665
3657
  "mousemove",
@@ -3701,8 +3693,8 @@ class Bc {
3701
3693
  [e]: {
3702
3694
  enumerable: !0,
3703
3695
  get() {
3704
- const l = this[r], c = a[n];
3705
- return P(l) ? Object.assign({}, c, l) : E(l, c);
3696
+ const l = this[r], A = a[n];
3697
+ return P(l) ? Object.assign({}, A, l) : E(l, A);
3706
3698
  },
3707
3699
  set(l) {
3708
3700
  this[r] = l;
@@ -3714,7 +3706,7 @@ class Bc {
3714
3706
  t.forEach((e) => e(this));
3715
3707
  }
3716
3708
  }
3717
- var K = /* @__PURE__ */ new Bc({
3709
+ var K = /* @__PURE__ */ new BA({
3718
3710
  _scriptable: (i) => !i.startsWith("on"),
3719
3711
  _indexable: (i) => i !== "events",
3720
3712
  hover: {
@@ -3725,30 +3717,30 @@ var K = /* @__PURE__ */ new Bc({
3725
3717
  _indexable: !1
3726
3718
  }
3727
3719
  }, [
3728
- wc,
3729
- mc,
3730
- Dc
3720
+ wA,
3721
+ mA,
3722
+ DA
3731
3723
  ]);
3732
- function xc(i) {
3724
+ function xA(i) {
3733
3725
  return !i || z(i.size) || z(i.family) ? null : (i.style ? i.style + " " : "") + (i.weight ? i.weight + " " : "") + i.size + "px " + i.family;
3734
3726
  }
3735
3727
  function Fi(i, t, e, s, n) {
3736
3728
  let o = t[n];
3737
3729
  return o || (o = t[n] = i.measureText(n).width, e.push(n)), o > s && (s = o), s;
3738
3730
  }
3739
- function Gc(i, t, e, s) {
3731
+ function GA(i, t, e, s) {
3740
3732
  s = s || {};
3741
3733
  let n = s.data = s.data || {}, o = s.garbageCollect = s.garbageCollect || [];
3742
3734
  s.font !== t && (n = s.data = {}, o = s.garbageCollect = [], s.font = t), i.save(), i.font = t;
3743
3735
  let a = 0;
3744
3736
  const r = e.length;
3745
- let l, c, A, h, d;
3737
+ let l, A, c, h, d;
3746
3738
  for (l = 0; l < r; l++)
3747
3739
  if (h = e[l], h != null && !j(h))
3748
3740
  a = Fi(i, n, o, a, h);
3749
3741
  else if (j(h))
3750
- for (c = 0, A = h.length; c < A; c++)
3751
- d = h[c], d != null && !j(d) && (a = Fi(i, n, o, a, d));
3742
+ for (A = 0, c = h.length; A < c; A++)
3743
+ d = h[A], d != null && !j(d) && (a = Fi(i, n, o, a, d));
3752
3744
  i.restore();
3753
3745
  const g = o.length / 2;
3754
3746
  if (g > e.length) {
@@ -3769,9 +3761,9 @@ function ws(i, t, e, s) {
3769
3761
  ia(i, t, e, s, null);
3770
3762
  }
3771
3763
  function ia(i, t, e, s, n) {
3772
- let o, a, r, l, c, A, h, d;
3764
+ let o, a, r, l, A, c, h, d;
3773
3765
  const g = t.pointStyle, u = t.rotation, f = t.radius;
3774
- let p = (u || 0) * oc;
3766
+ let p = (u || 0) * oA;
3775
3767
  if (g && typeof g == "object" && (o = g.toString(), o === "[object HTMLImageElement]" || o === "[object HTMLCanvasElement]")) {
3776
3768
  i.save(), i.translate(e, s), i.rotate(p), i.drawImage(g, -g.width / 2, -g.height / 2, g.width, g.height), i.restore();
3777
3769
  return;
@@ -3782,14 +3774,14 @@ function ia(i, t, e, s, n) {
3782
3774
  n ? i.ellipse(e, s, n / 2, f, 0, 0, V) : i.arc(e, s, f, 0, V), i.closePath();
3783
3775
  break;
3784
3776
  case "triangle":
3785
- A = n ? n / 2 : f, i.moveTo(e + Math.sin(p) * A, s - Math.cos(p) * f), p += cn, i.lineTo(e + Math.sin(p) * A, s - Math.cos(p) * f), p += cn, i.lineTo(e + Math.sin(p) * A, s - Math.cos(p) * f), i.closePath();
3777
+ c = n ? n / 2 : f, i.moveTo(e + Math.sin(p) * c, s - Math.cos(p) * f), p += An, i.lineTo(e + Math.sin(p) * c, s - Math.cos(p) * f), p += An, i.lineTo(e + Math.sin(p) * c, s - Math.cos(p) * f), i.closePath();
3786
3778
  break;
3787
3779
  case "rectRounded":
3788
- c = f * 0.516, l = f - c, a = Math.cos(p + oe) * l, h = Math.cos(p + oe) * (n ? n / 2 - c : l), r = Math.sin(p + oe) * l, d = Math.sin(p + oe) * (n ? n / 2 - c : l), i.arc(e - h, s - r, c, p - H, p - X), i.arc(e + d, s - a, c, p - X, p), i.arc(e + h, s + r, c, p, p + X), i.arc(e - d, s + a, c, p + X, p + H), i.closePath();
3780
+ A = f * 0.516, l = f - A, a = Math.cos(p + oe) * l, h = Math.cos(p + oe) * (n ? n / 2 - A : l), r = Math.sin(p + oe) * l, d = Math.sin(p + oe) * (n ? n / 2 - A : l), i.arc(e - h, s - r, A, p - H, p - X), i.arc(e + d, s - a, A, p - X, p), i.arc(e + h, s + r, A, p, p + X), i.arc(e - d, s + a, A, p + X, p + H), i.closePath();
3789
3781
  break;
3790
3782
  case "rect":
3791
3783
  if (!u) {
3792
- l = Math.SQRT1_2 * f, A = n ? n / 2 : l, i.rect(e - A, s - l, 2 * A, 2 * l);
3784
+ l = Math.SQRT1_2 * f, c = n ? n / 2 : l, i.rect(e - c, s - l, 2 * c, 2 * l);
3793
3785
  break;
3794
3786
  }
3795
3787
  p += oe;
@@ -3826,7 +3818,7 @@ function Ji(i, t) {
3826
3818
  function qi(i) {
3827
3819
  i.restore();
3828
3820
  }
3829
- function Yc(i, t, e, s, n) {
3821
+ function YA(i, t, e, s, n) {
3830
3822
  if (!t)
3831
3823
  return i.lineTo(e.x, e.y);
3832
3824
  if (n === "middle") {
@@ -3836,21 +3828,21 @@ function Yc(i, t, e, s, n) {
3836
3828
  n === "after" != !!s ? i.lineTo(t.x, e.y) : i.lineTo(e.x, t.y);
3837
3829
  i.lineTo(e.x, e.y);
3838
3830
  }
3839
- function vc(i, t, e, s) {
3831
+ function vA(i, t, e, s) {
3840
3832
  if (!t)
3841
3833
  return i.lineTo(e.x, e.y);
3842
3834
  i.bezierCurveTo(s ? t.cp1x : t.cp2x, s ? t.cp1y : t.cp2y, s ? e.cp2x : e.cp1x, s ? e.cp2y : e.cp1y, e.x, e.y);
3843
3835
  }
3844
- function yc(i, t) {
3836
+ function yA(i, t) {
3845
3837
  t.translation && i.translate(t.translation[0], t.translation[1]), z(t.rotation) || i.rotate(t.rotation), t.color && (i.fillStyle = t.color), t.textAlign && (i.textAlign = t.textAlign), t.textBaseline && (i.textBaseline = t.textBaseline);
3846
3838
  }
3847
- function Cc(i, t, e, s, n) {
3839
+ function CA(i, t, e, s, n) {
3848
3840
  if (n.strikethrough || n.underline) {
3849
- const o = i.measureText(s), a = t - o.actualBoundingBoxLeft, r = t + o.actualBoundingBoxRight, l = e - o.actualBoundingBoxAscent, c = e + o.actualBoundingBoxDescent, A = n.strikethrough ? (l + c) / 2 : c;
3850
- i.strokeStyle = i.fillStyle, i.beginPath(), i.lineWidth = n.decorationWidth || 2, i.moveTo(a, A), i.lineTo(r, A), i.stroke();
3841
+ const o = i.measureText(s), a = t - o.actualBoundingBoxLeft, r = t + o.actualBoundingBoxRight, l = e - o.actualBoundingBoxAscent, A = e + o.actualBoundingBoxDescent, c = n.strikethrough ? (l + A) / 2 : A;
3842
+ i.strokeStyle = i.fillStyle, i.beginPath(), i.lineWidth = n.decorationWidth || 2, i.moveTo(a, c), i.lineTo(r, c), i.stroke();
3851
3843
  }
3852
3844
  }
3853
- function Ic(i, t) {
3845
+ function IA(i, t) {
3854
3846
  const e = i.fillStyle;
3855
3847
  i.fillStyle = t.color, i.fillRect(t.left, t.top, t.width, t.height), i.fillStyle = e;
3856
3848
  }
@@ -3858,18 +3850,18 @@ function fe(i, t, e, s, n, o = {}) {
3858
3850
  const a = j(t) ? t : [
3859
3851
  t
3860
3852
  ], r = o.strokeWidth > 0 && o.strokeColor !== "";
3861
- let l, c;
3862
- for (i.save(), i.font = n.string, yc(i, o), l = 0; l < a.length; ++l)
3863
- c = a[l], o.backdrop && Ic(i, o.backdrop), r && (o.strokeColor && (i.strokeStyle = o.strokeColor), z(o.strokeWidth) || (i.lineWidth = o.strokeWidth), i.strokeText(c, e, s, o.maxWidth)), i.fillText(c, e, s, o.maxWidth), Cc(i, e, s, c, o), s += Number(n.lineHeight);
3853
+ let l, A;
3854
+ for (i.save(), i.font = n.string, yA(i, o), l = 0; l < a.length; ++l)
3855
+ A = a[l], o.backdrop && IA(i, o.backdrop), r && (o.strokeColor && (i.strokeStyle = o.strokeColor), z(o.strokeWidth) || (i.lineWidth = o.strokeWidth), i.strokeText(A, e, s, o.maxWidth)), i.fillText(A, e, s, o.maxWidth), CA(i, e, s, A, o), s += Number(n.lineHeight);
3864
3856
  i.restore();
3865
3857
  }
3866
3858
  function oi(i, t) {
3867
3859
  const { x: e, y: s, w: n, h: o, radius: a } = t;
3868
3860
  i.arc(e + a.topLeft, s + a.topLeft, a.topLeft, 1.5 * H, H, !0), i.lineTo(e, s + o - a.bottomLeft), i.arc(e + a.bottomLeft, s + o - a.bottomLeft, a.bottomLeft, H, X, !0), i.lineTo(e + n - a.bottomRight, s + o), i.arc(e + n - a.bottomRight, s + o - a.bottomRight, a.bottomRight, X, 0, !0), i.lineTo(e + n, s + a.topRight), i.arc(e + n - a.topRight, s + a.topRight, a.topRight, 0, -X, !0), i.lineTo(e + a.topLeft, s);
3869
3861
  }
3870
- const Ec = /^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/, kc = /^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;
3871
- function Qc(i, t) {
3872
- const e = ("" + i).match(Ec);
3862
+ const EA = /^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/, kA = /^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;
3863
+ function QA(i, t) {
3864
+ const e = ("" + i).match(EA);
3873
3865
  if (!e || e[1] === "normal")
3874
3866
  return t * 1.2;
3875
3867
  switch (i = +e[2], e[3]) {
@@ -3881,11 +3873,11 @@ function Qc(i, t) {
3881
3873
  }
3882
3874
  return t * i;
3883
3875
  }
3884
- const Pc = (i) => +i || 0;
3876
+ const PA = (i) => +i || 0;
3885
3877
  function Rs(i, t) {
3886
3878
  const e = {}, s = P(t), n = s ? Object.keys(t) : t, o = P(i) ? s ? (a) => E(i[a], i[t[a]]) : (a) => i[a] : () => i;
3887
3879
  for (const a of n)
3888
- e[a] = Pc(o(a));
3880
+ e[a] = PA(o(a));
3889
3881
  return e;
3890
3882
  }
3891
3883
  function sa(i) {
@@ -3913,16 +3905,16 @@ function _(i, t) {
3913
3905
  let e = E(i.size, t.size);
3914
3906
  typeof e == "string" && (e = parseInt(e, 10));
3915
3907
  let s = E(i.style, t.style);
3916
- s && !("" + s).match(kc) && (console.warn('Invalid font style specified: "' + s + '"'), s = void 0);
3908
+ s && !("" + s).match(kA) && (console.warn('Invalid font style specified: "' + s + '"'), s = void 0);
3917
3909
  const n = {
3918
3910
  family: E(i.family, t.family),
3919
- lineHeight: Qc(E(i.lineHeight, t.lineHeight), e),
3911
+ lineHeight: QA(E(i.lineHeight, t.lineHeight), e),
3920
3912
  size: e,
3921
3913
  style: s,
3922
3914
  weight: E(i.weight, t.weight),
3923
3915
  string: ""
3924
3916
  };
3925
- return n.string = xc(n), n;
3917
+ return n.string = xA(n), n;
3926
3918
  }
3927
3919
  function Fe(i, t, e, s) {
3928
3920
  let n = !0, o, a, r;
@@ -3930,7 +3922,7 @@ function Fe(i, t, e, s) {
3930
3922
  if (r = i[o], r !== void 0 && (t !== void 0 && typeof r == "function" && (r = r(t), n = !1), e !== void 0 && j(r) && (r = r[e % r.length], n = !1), r !== void 0))
3931
3923
  return s && !n && (s.cacheable = !1), r;
3932
3924
  }
3933
- function Oc(i, t, e) {
3925
+ function OA(i, t, e) {
3934
3926
  const { min: s, max: n } = i, o = Wo(t, (n - s) / 2), a = (r, l) => e && r === 0 ? 0 : r + l;
3935
3927
  return {
3936
3928
  min: a(s, -Math.abs(o)),
@@ -3968,7 +3960,7 @@ function js(i, t = [
3968
3960
  * A trap for getting property values.
3969
3961
  */
3970
3962
  get(r, l) {
3971
- return oa(r, l, () => Hc(l, t, i, r));
3963
+ return oa(r, l, () => HA(l, t, i, r));
3972
3964
  },
3973
3965
  /**
3974
3966
  * A trap for Object.getOwnPropertyDescriptor.
@@ -3998,9 +3990,9 @@ function js(i, t = [
3998
3990
  /**
3999
3991
  * A trap for setting property values.
4000
3992
  */
4001
- set(r, l, c) {
4002
- const A = r._storage || (r._storage = n());
4003
- return r[l] = A[l] = c, delete r._keys, !0;
3993
+ set(r, l, A) {
3994
+ const c = r._storage || (r._storage = n());
3995
+ return r[l] = c[l] = A, delete r._keys, !0;
4004
3996
  }
4005
3997
  });
4006
3998
  }
@@ -4026,7 +4018,7 @@ function ke(i, t, e, s) {
4026
4018
  * A trap for getting property values.
4027
4019
  */
4028
4020
  get(o, a, r) {
4029
- return oa(o, a, () => Lc(o, a, r));
4021
+ return oa(o, a, () => LA(o, a, r));
4030
4022
  },
4031
4023
  /**
4032
4024
  * A trap for Object.getOwnPropertyDescriptor.
@@ -4077,19 +4069,19 @@ function na(i, t = {
4077
4069
  isIndexable: $t(s) ? s : () => s
4078
4070
  };
4079
4071
  }
4080
- const zc = (i, t) => i ? i + Os(t) : t, Vs = (i, t) => P(t) && i !== "adapters" && (Object.getPrototypeOf(t) === null || t.constructor === Object);
4072
+ const zA = (i, t) => i ? i + Os(t) : t, Vs = (i, t) => P(t) && i !== "adapters" && (Object.getPrototypeOf(t) === null || t.constructor === Object);
4081
4073
  function oa(i, t, e) {
4082
4074
  if (Object.prototype.hasOwnProperty.call(i, t) || t === "constructor")
4083
4075
  return i[t];
4084
4076
  const s = e();
4085
4077
  return i[t] = s, s;
4086
4078
  }
4087
- function Lc(i, t, e) {
4079
+ function LA(i, t, e) {
4088
4080
  const { _proxy: s, _context: n, _subProxy: o, _descriptors: a } = i;
4089
4081
  let r = s[t];
4090
- return $t(r) && a.isScriptable(t) && (r = Sc(t, r, i, e)), j(r) && r.length && (r = Tc(t, r, i, a.isIndexable)), Vs(t, r) && (r = ke(r, n, o && o[t], a)), r;
4082
+ return $t(r) && a.isScriptable(t) && (r = SA(t, r, i, e)), j(r) && r.length && (r = TA(t, r, i, a.isIndexable)), Vs(t, r) && (r = ke(r, n, o && o[t], a)), r;
4091
4083
  }
4092
- function Sc(i, t, e, s) {
4084
+ function SA(i, t, e, s) {
4093
4085
  const { _proxy: n, _context: o, _subProxy: a, _stack: r } = e;
4094
4086
  if (r.has(i))
4095
4087
  throw new Error("Recursion detected: " + Array.from(r).join("->") + "->" + i);
@@ -4097,15 +4089,15 @@ function Sc(i, t, e, s) {
4097
4089
  let l = t(o, a || s);
4098
4090
  return r.delete(i), Vs(i, l) && (l = Hs(n._scopes, n, i, l)), l;
4099
4091
  }
4100
- function Tc(i, t, e, s) {
4092
+ function TA(i, t, e, s) {
4101
4093
  const { _proxy: n, _context: o, _subProxy: a, _descriptors: r } = e;
4102
4094
  if (typeof o.index < "u" && s(i))
4103
4095
  return t[o.index % t.length];
4104
4096
  if (P(t[0])) {
4105
- const l = t, c = n._scopes.filter((A) => A !== l);
4097
+ const l = t, A = n._scopes.filter((c) => c !== l);
4106
4098
  t = [];
4107
- for (const A of l) {
4108
- const h = Hs(c, n, i, A);
4099
+ for (const c of l) {
4100
+ const h = Hs(A, n, i, c);
4109
4101
  t.push(ke(h, o, a && a[i], r));
4110
4102
  }
4111
4103
  }
@@ -4114,10 +4106,10 @@ function Tc(i, t, e, s) {
4114
4106
  function aa(i, t, e) {
4115
4107
  return $t(i) ? i(t, e) : i;
4116
4108
  }
4117
- const Rc = (i, t) => i === !0 ? t : typeof i == "string" ? _t(t, i) : void 0;
4118
- function jc(i, t, e, s, n) {
4109
+ const RA = (i, t) => i === !0 ? t : typeof i == "string" ? _t(t, i) : void 0;
4110
+ function jA(i, t, e, s, n) {
4119
4111
  for (const o of t) {
4120
- const a = Rc(e, o);
4112
+ const a = RA(e, o);
4121
4113
  if (a) {
4122
4114
  i.add(a);
4123
4115
  const r = aa(a._fallback, e, n);
@@ -4137,23 +4129,23 @@ function Hs(i, t, e, s) {
4137
4129
  let l = mn(r, a, e, o || e, s);
4138
4130
  return l === null || typeof o < "u" && o !== e && (l = mn(r, a, o, l, s), l === null) ? !1 : js(Array.from(r), [
4139
4131
  ""
4140
- ], n, o, () => Vc(t, e, s));
4132
+ ], n, o, () => VA(t, e, s));
4141
4133
  }
4142
4134
  function mn(i, t, e, s, n) {
4143
4135
  for (; e; )
4144
- e = jc(i, t, e, s, n);
4136
+ e = jA(i, t, e, s, n);
4145
4137
  return e;
4146
4138
  }
4147
- function Vc(i, t, e) {
4139
+ function VA(i, t, e) {
4148
4140
  const s = i._getTarget();
4149
4141
  t in s || (s[t] = {});
4150
4142
  const n = s[t];
4151
4143
  return j(n) && P(e) ? e : n || {};
4152
4144
  }
4153
- function Hc(i, t, e, s) {
4145
+ function HA(i, t, e, s) {
4154
4146
  let n;
4155
4147
  for (const o of t)
4156
- if (n = ra(zc(o, i), e), typeof n < "u")
4148
+ if (n = ra(zA(o, i), e), typeof n < "u")
4157
4149
  return Vs(i, n) ? Hs(e, s, i, n) : n;
4158
4150
  }
4159
4151
  function ra(i, t) {
@@ -4167,9 +4159,9 @@ function ra(i, t) {
4167
4159
  }
4168
4160
  function bn(i) {
4169
4161
  let t = i._keys;
4170
- return t || (t = i._keys = Fc(i._scopes)), t;
4162
+ return t || (t = i._keys = FA(i._scopes)), t;
4171
4163
  }
4172
- function Fc(i) {
4164
+ function FA(i) {
4173
4165
  const t = /* @__PURE__ */ new Set();
4174
4166
  for (const e of i)
4175
4167
  for (const s of Object.keys(e).filter((n) => !n.startsWith("_")))
@@ -4178,19 +4170,19 @@ function Fc(i) {
4178
4170
  }
4179
4171
  function la(i, t, e, s) {
4180
4172
  const { iScale: n } = i, { key: o = "r" } = this._parsing, a = new Array(s);
4181
- let r, l, c, A;
4173
+ let r, l, A, c;
4182
4174
  for (r = 0, l = s; r < l; ++r)
4183
- c = r + e, A = t[c], a[r] = {
4184
- r: n.parse(_t(A, o), c)
4175
+ A = r + e, c = t[A], a[r] = {
4176
+ r: n.parse(_t(c, o), A)
4185
4177
  };
4186
4178
  return a;
4187
4179
  }
4188
- const Nc = Number.EPSILON || 1e-14, Qe = (i, t) => t < i.length && !i[t].skip && i[t], ca = (i) => i === "x" ? "y" : "x";
4189
- function Wc(i, t, e, s) {
4180
+ const NA = Number.EPSILON || 1e-14, Qe = (i, t) => t < i.length && !i[t].skip && i[t], Aa = (i) => i === "x" ? "y" : "x";
4181
+ function WA(i, t, e, s) {
4190
4182
  const n = i.skip ? t : i, o = t, a = e.skip ? t : e, r = fs(o, n), l = fs(a, o);
4191
- let c = r / (r + l), A = l / (r + l);
4192
- c = isNaN(c) ? 0 : c, A = isNaN(A) ? 0 : A;
4193
- const h = s * c, d = s * A;
4183
+ let A = r / (r + l), c = l / (r + l);
4184
+ A = isNaN(A) ? 0 : A, c = isNaN(c) ? 0 : c;
4185
+ const h = s * A, d = s * c;
4194
4186
  return {
4195
4187
  previous: {
4196
4188
  x: o.x - h * (a.x - n.x),
@@ -4202,59 +4194,59 @@ function Wc(i, t, e, s) {
4202
4194
  }
4203
4195
  };
4204
4196
  }
4205
- function Zc(i, t, e) {
4197
+ function ZA(i, t, e) {
4206
4198
  const s = i.length;
4207
- let n, o, a, r, l, c = Qe(i, 0);
4208
- for (let A = 0; A < s - 1; ++A)
4209
- if (l = c, c = Qe(i, A + 1), !(!l || !c)) {
4210
- if (Xe(t[A], 0, Nc)) {
4211
- e[A] = e[A + 1] = 0;
4199
+ let n, o, a, r, l, A = Qe(i, 0);
4200
+ for (let c = 0; c < s - 1; ++c)
4201
+ if (l = A, A = Qe(i, c + 1), !(!l || !A)) {
4202
+ if (Xe(t[c], 0, NA)) {
4203
+ e[c] = e[c + 1] = 0;
4212
4204
  continue;
4213
4205
  }
4214
- n = e[A] / t[A], o = e[A + 1] / t[A], r = Math.pow(n, 2) + Math.pow(o, 2), !(r <= 9) && (a = 3 / Math.sqrt(r), e[A] = n * a * t[A], e[A + 1] = o * a * t[A]);
4206
+ n = e[c] / t[c], o = e[c + 1] / t[c], r = Math.pow(n, 2) + Math.pow(o, 2), !(r <= 9) && (a = 3 / Math.sqrt(r), e[c] = n * a * t[c], e[c + 1] = o * a * t[c]);
4215
4207
  }
4216
4208
  }
4217
- function Kc(i, t, e = "x") {
4218
- const s = ca(e), n = i.length;
4209
+ function KA(i, t, e = "x") {
4210
+ const s = Aa(e), n = i.length;
4219
4211
  let o, a, r, l = Qe(i, 0);
4220
- for (let c = 0; c < n; ++c) {
4221
- if (a = r, r = l, l = Qe(i, c + 1), !r)
4212
+ for (let A = 0; A < n; ++A) {
4213
+ if (a = r, r = l, l = Qe(i, A + 1), !r)
4222
4214
  continue;
4223
- const A = r[e], h = r[s];
4224
- a && (o = (A - a[e]) / 3, r[`cp1${e}`] = A - o, r[`cp1${s}`] = h - o * t[c]), l && (o = (l[e] - A) / 3, r[`cp2${e}`] = A + o, r[`cp2${s}`] = h + o * t[c]);
4215
+ const c = r[e], h = r[s];
4216
+ a && (o = (c - a[e]) / 3, r[`cp1${e}`] = c - o, r[`cp1${s}`] = h - o * t[A]), l && (o = (l[e] - c) / 3, r[`cp2${e}`] = c + o, r[`cp2${s}`] = h + o * t[A]);
4225
4217
  }
4226
4218
  }
4227
- function Uc(i, t = "x") {
4228
- const e = ca(t), s = i.length, n = Array(s).fill(0), o = Array(s);
4229
- let a, r, l, c = Qe(i, 0);
4219
+ function UA(i, t = "x") {
4220
+ const e = Aa(t), s = i.length, n = Array(s).fill(0), o = Array(s);
4221
+ let a, r, l, A = Qe(i, 0);
4230
4222
  for (a = 0; a < s; ++a)
4231
- if (r = l, l = c, c = Qe(i, a + 1), !!l) {
4232
- if (c) {
4233
- const A = c[t] - l[t];
4234
- n[a] = A !== 0 ? (c[e] - l[e]) / A : 0;
4223
+ if (r = l, l = A, A = Qe(i, a + 1), !!l) {
4224
+ if (A) {
4225
+ const c = A[t] - l[t];
4226
+ n[a] = c !== 0 ? (A[e] - l[e]) / c : 0;
4235
4227
  }
4236
- o[a] = r ? c ? Et(n[a - 1]) !== Et(n[a]) ? 0 : (n[a - 1] + n[a]) / 2 : n[a - 1] : n[a];
4228
+ o[a] = r ? A ? Et(n[a - 1]) !== Et(n[a]) ? 0 : (n[a - 1] + n[a]) / 2 : n[a - 1] : n[a];
4237
4229
  }
4238
- Zc(i, n, o), Kc(i, o, t);
4230
+ ZA(i, n, o), KA(i, o, t);
4239
4231
  }
4240
4232
  function Mi(i, t, e) {
4241
4233
  return Math.max(Math.min(i, e), t);
4242
4234
  }
4243
- function Xc(i, t) {
4235
+ function XA(i, t) {
4244
4236
  let e, s, n, o, a, r = jt(i[0], t);
4245
4237
  for (e = 0, s = i.length; e < s; ++e)
4246
4238
  a = o, o = r, r = e < s - 1 && jt(i[e + 1], t), o && (n = i[e], a && (n.cp1x = Mi(n.cp1x, t.left, t.right), n.cp1y = Mi(n.cp1y, t.top, t.bottom)), r && (n.cp2x = Mi(n.cp2x, t.left, t.right), n.cp2y = Mi(n.cp2y, t.top, t.bottom)));
4247
4239
  }
4248
- function Jc(i, t, e, s, n) {
4240
+ function JA(i, t, e, s, n) {
4249
4241
  let o, a, r, l;
4250
- if (t.spanGaps && (i = i.filter((c) => !c.skip)), t.cubicInterpolationMode === "monotone")
4251
- Uc(i, n);
4242
+ if (t.spanGaps && (i = i.filter((A) => !A.skip)), t.cubicInterpolationMode === "monotone")
4243
+ UA(i, n);
4252
4244
  else {
4253
- let c = s ? i[i.length - 1] : i[0];
4245
+ let A = s ? i[i.length - 1] : i[0];
4254
4246
  for (o = 0, a = i.length; o < a; ++o)
4255
- r = i[o], l = Wc(c, r, i[Math.min(o + 1, a - (s ? 0 : 1)) % a], t.tension), r.cp1x = l.previous.x, r.cp1y = l.previous.y, r.cp2x = l.next.x, r.cp2y = l.next.y, c = r;
4247
+ r = i[o], l = WA(A, r, i[Math.min(o + 1, a - (s ? 0 : 1)) % a], t.tension), r.cp1x = l.previous.x, r.cp1y = l.previous.y, r.cp2x = l.next.x, r.cp2y = l.next.y, A = r;
4256
4248
  }
4257
- t.capBezierPoints && Xc(i, e);
4249
+ t.capBezierPoints && XA(i, e);
4258
4250
  }
4259
4251
  function Fs() {
4260
4252
  return typeof window < "u" && typeof document < "u";
@@ -4268,10 +4260,10 @@ function Ni(i, t, e) {
4268
4260
  return typeof i == "string" ? (s = parseInt(i, 10), i.indexOf("%") !== -1 && (s = s / 100 * t.parentNode[e])) : s = i, s;
4269
4261
  }
4270
4262
  const _i = (i) => i.ownerDocument.defaultView.getComputedStyle(i, null);
4271
- function qc(i, t) {
4263
+ function qA(i, t) {
4272
4264
  return _i(i).getPropertyValue(t);
4273
4265
  }
4274
- const _c = [
4266
+ const _A = [
4275
4267
  "top",
4276
4268
  "right",
4277
4269
  "bottom",
@@ -4281,20 +4273,20 @@ function ge(i, t, e) {
4281
4273
  const s = {};
4282
4274
  e = e ? "-" + e : "";
4283
4275
  for (let n = 0; n < 4; n++) {
4284
- const o = _c[n];
4276
+ const o = _A[n];
4285
4277
  s[o] = parseFloat(i[t + "-" + o + e]) || 0;
4286
4278
  }
4287
4279
  return s.width = s.left + s.right, s.height = s.top + s.bottom, s;
4288
4280
  }
4289
- const $c = (i, t, e) => (i > 0 || t > 0) && (!e || !e.shadowRoot);
4290
- function tA(i, t) {
4281
+ const $A = (i, t, e) => (i > 0 || t > 0) && (!e || !e.shadowRoot);
4282
+ function tc(i, t) {
4291
4283
  const e = i.touches, s = e && e.length ? e[0] : i, { offsetX: n, offsetY: o } = s;
4292
4284
  let a = !1, r, l;
4293
- if ($c(n, o, i.target))
4285
+ if ($A(n, o, i.target))
4294
4286
  r = n, l = o;
4295
4287
  else {
4296
- const c = t.getBoundingClientRect();
4297
- r = s.clientX - c.left, l = s.clientY - c.top, a = !0;
4288
+ const A = t.getBoundingClientRect();
4289
+ r = s.clientX - A.left, l = s.clientY - A.top, a = !0;
4298
4290
  }
4299
4291
  return {
4300
4292
  x: r,
@@ -4302,25 +4294,25 @@ function tA(i, t) {
4302
4294
  box: a
4303
4295
  };
4304
4296
  }
4305
- function ce(i, t) {
4297
+ function Ae(i, t) {
4306
4298
  if ("native" in i)
4307
4299
  return i;
4308
- const { canvas: e, currentDevicePixelRatio: s } = t, n = _i(e), o = n.boxSizing === "border-box", a = ge(n, "padding"), r = ge(n, "border", "width"), { x: l, y: c, box: A } = tA(i, e), h = a.left + (A && r.left), d = a.top + (A && r.top);
4300
+ const { canvas: e, currentDevicePixelRatio: s } = t, n = _i(e), o = n.boxSizing === "border-box", a = ge(n, "padding"), r = ge(n, "border", "width"), { x: l, y: A, box: c } = tc(i, e), h = a.left + (c && r.left), d = a.top + (c && r.top);
4309
4301
  let { width: g, height: u } = t;
4310
4302
  return o && (g -= a.width + r.width, u -= a.height + r.height), {
4311
4303
  x: Math.round((l - h) / g * e.width / s),
4312
- y: Math.round((c - d) / u * e.height / s)
4304
+ y: Math.round((A - d) / u * e.height / s)
4313
4305
  };
4314
4306
  }
4315
- function eA(i, t, e) {
4307
+ function ec(i, t, e) {
4316
4308
  let s, n;
4317
4309
  if (t === void 0 || e === void 0) {
4318
4310
  const o = i && Ns(i);
4319
4311
  if (!o)
4320
4312
  t = i.clientWidth, e = i.clientHeight;
4321
4313
  else {
4322
- const a = o.getBoundingClientRect(), r = _i(o), l = ge(r, "border", "width"), c = ge(r, "padding");
4323
- t = a.width - c.width - l.width, e = a.height - c.height - l.height, s = Ni(r.maxWidth, o, "clientWidth"), n = Ni(r.maxHeight, o, "clientHeight");
4314
+ const a = o.getBoundingClientRect(), r = _i(o), l = ge(r, "border", "width"), A = ge(r, "padding");
4315
+ t = a.width - A.width - l.width, e = a.height - A.height - l.height, s = Ni(r.maxWidth, o, "clientWidth"), n = Ni(r.maxHeight, o, "clientHeight");
4324
4316
  }
4325
4317
  }
4326
4318
  return {
@@ -4331,16 +4323,16 @@ function eA(i, t, e) {
4331
4323
  };
4332
4324
  }
4333
4325
  const Di = (i) => Math.round(i * 10) / 10;
4334
- function iA(i, t, e, s) {
4335
- const n = _i(i), o = ge(n, "margin"), a = Ni(n.maxWidth, i, "clientWidth") || Hi, r = Ni(n.maxHeight, i, "clientHeight") || Hi, l = eA(i, t, e);
4336
- let { width: c, height: A } = l;
4326
+ function ic(i, t, e, s) {
4327
+ const n = _i(i), o = ge(n, "margin"), a = Ni(n.maxWidth, i, "clientWidth") || Hi, r = Ni(n.maxHeight, i, "clientHeight") || Hi, l = ec(i, t, e);
4328
+ let { width: A, height: c } = l;
4337
4329
  if (n.boxSizing === "content-box") {
4338
4330
  const d = ge(n, "border", "width"), g = ge(n, "padding");
4339
- c -= g.width + d.width, A -= g.height + d.height;
4331
+ A -= g.width + d.width, c -= g.height + d.height;
4340
4332
  }
4341
- return c = Math.max(0, c - o.width), A = Math.max(0, s ? c / s : A - o.height), c = Di(Math.min(c, a, l.maxWidth)), A = Di(Math.min(A, r, l.maxHeight)), c && !A && (A = Di(c / 2)), (t !== void 0 || e !== void 0) && s && l.height && A > l.height && (A = l.height, c = Di(Math.floor(A * s))), {
4342
- width: c,
4343
- height: A
4333
+ return A = Math.max(0, A - o.width), c = Math.max(0, s ? A / s : c - o.height), A = Di(Math.min(A, a, l.maxWidth)), c = Di(Math.min(c, r, l.maxHeight)), A && !c && (c = Di(A / 2)), (t !== void 0 || e !== void 0) && s && l.height && c > l.height && (c = l.height, A = Di(Math.floor(c * s))), {
4334
+ width: A,
4335
+ height: c
4344
4336
  };
4345
4337
  }
4346
4338
  function Mn(i, t, e) {
@@ -4349,7 +4341,7 @@ function Mn(i, t, e) {
4349
4341
  const a = i.canvas;
4350
4342
  return a.style && (e || !a.style.height && !a.style.width) && (a.style.height = `${i.height}px`, a.style.width = `${i.width}px`), i.currentDevicePixelRatio !== s || a.height !== n || a.width !== o ? (i.currentDevicePixelRatio = s, a.height = n, a.width = o, i.ctx.setTransform(s, 0, 0, s, 0, 0), !0) : !1;
4351
4343
  }
4352
- const sA = function() {
4344
+ const sc = function() {
4353
4345
  let i = !1;
4354
4346
  try {
4355
4347
  const t = {
@@ -4363,32 +4355,32 @@ const sA = function() {
4363
4355
  return i;
4364
4356
  }();
4365
4357
  function Dn(i, t) {
4366
- const e = qc(i, t), s = e && e.match(/^(\d+)(\.\d+)?px$/);
4358
+ const e = qA(i, t), s = e && e.match(/^(\d+)(\.\d+)?px$/);
4367
4359
  return s ? +s[1] : void 0;
4368
4360
  }
4369
- function Ae(i, t, e, s) {
4361
+ function ce(i, t, e, s) {
4370
4362
  return {
4371
4363
  x: i.x + e * (t.x - i.x),
4372
4364
  y: i.y + e * (t.y - i.y)
4373
4365
  };
4374
4366
  }
4375
- function nA(i, t, e, s) {
4367
+ function nc(i, t, e, s) {
4376
4368
  return {
4377
4369
  x: i.x + e * (t.x - i.x),
4378
4370
  y: s === "middle" ? e < 0.5 ? i.y : t.y : s === "after" ? e < 1 ? i.y : t.y : e > 0 ? t.y : i.y
4379
4371
  };
4380
4372
  }
4381
- function oA(i, t, e, s) {
4373
+ function oc(i, t, e, s) {
4382
4374
  const n = {
4383
4375
  x: i.cp2x,
4384
4376
  y: i.cp2y
4385
4377
  }, o = {
4386
4378
  x: t.cp1x,
4387
4379
  y: t.cp1y
4388
- }, a = Ae(i, n, e), r = Ae(n, o, e), l = Ae(o, t, e), c = Ae(a, r, e), A = Ae(r, l, e);
4389
- return Ae(c, A, e);
4380
+ }, a = ce(i, n, e), r = ce(n, o, e), l = ce(o, t, e), A = ce(a, r, e), c = ce(r, l, e);
4381
+ return ce(A, c, e);
4390
4382
  }
4391
- const aA = function(i, t) {
4383
+ const ac = function(i, t) {
4392
4384
  return {
4393
4385
  x(e) {
4394
4386
  return i + i + t - e;
@@ -4406,7 +4398,7 @@ const aA = function(i, t) {
4406
4398
  return e - s;
4407
4399
  }
4408
4400
  };
4409
- }, rA = function() {
4401
+ }, rc = function() {
4410
4402
  return {
4411
4403
  x(i) {
4412
4404
  return i;
@@ -4425,9 +4417,9 @@ const aA = function(i, t) {
4425
4417
  };
4426
4418
  };
4427
4419
  function Ce(i, t, e) {
4428
- return i ? aA(t, e) : rA();
4420
+ return i ? ac(t, e) : rc();
4429
4421
  }
4430
- function Aa(i, t) {
4422
+ function ca(i, t) {
4431
4423
  let e, s;
4432
4424
  (t === "ltr" || t === "rtl") && (e = i.canvas.style, s = [
4433
4425
  e.getPropertyValue("direction"),
@@ -4440,7 +4432,7 @@ function ha(i, t) {
4440
4432
  function da(i) {
4441
4433
  return i === "angle" ? {
4442
4434
  between: ni,
4443
- compare: lc,
4435
+ compare: lA,
4444
4436
  normalize: ft
4445
4437
  } : {
4446
4438
  between: Tt,
@@ -4456,17 +4448,17 @@ function Bn({ start: i, end: t, count: e, loop: s, style: n }) {
4456
4448
  style: n
4457
4449
  };
4458
4450
  }
4459
- function lA(i, t, e) {
4451
+ function lc(i, t, e) {
4460
4452
  const { property: s, start: n, end: o } = e, { between: a, normalize: r } = da(s), l = t.length;
4461
- let { start: c, end: A, loop: h } = i, d, g;
4453
+ let { start: A, end: c, loop: h } = i, d, g;
4462
4454
  if (h) {
4463
- for (c += l, A += l, d = 0, g = l; d < g && a(r(t[c % l][s]), n, o); ++d)
4464
- c--, A--;
4465
- c %= l, A %= l;
4455
+ for (A += l, c += l, d = 0, g = l; d < g && a(r(t[A % l][s]), n, o); ++d)
4456
+ A--, c--;
4457
+ A %= l, c %= l;
4466
4458
  }
4467
- return A < c && (A += l), {
4468
- start: c,
4469
- end: A,
4459
+ return c < A && (c += l), {
4460
+ start: A,
4461
+ end: c,
4470
4462
  loop: h,
4471
4463
  style: i.style
4472
4464
  };
@@ -4476,11 +4468,11 @@ function ga(i, t, e) {
4476
4468
  return [
4477
4469
  i
4478
4470
  ];
4479
- const { property: s, start: n, end: o } = e, a = t.length, { compare: r, between: l, normalize: c } = da(s), { start: A, end: h, loop: d, style: g } = lA(i, t, e), u = [];
4471
+ const { property: s, start: n, end: o } = e, a = t.length, { compare: r, between: l, normalize: A } = da(s), { start: c, end: h, loop: d, style: g } = lc(i, t, e), u = [];
4480
4472
  let f = !1, p = null, w, m, G;
4481
4473
  const x = () => l(n, G, w) && r(n, G) !== 0, D = () => r(o, w) === 0 || l(o, G, w), v = () => f || x(), y = () => !f || D();
4482
- for (let C = A, I = A; C <= h; ++C)
4483
- m = t[C % a], !m.skip && (w = c(m[s]), w !== G && (f = l(w, n, o), p === null && v() && (p = r(w, n) === 0 ? C : I), p !== null && y() && (u.push(Bn({
4474
+ for (let C = c, I = c; C <= h; ++C)
4475
+ m = t[C % a], !m.skip && (w = A(m[s]), w !== G && (f = l(w, n, o), p === null && v() && (p = r(w, n) === 0 ? C : I), p !== null && y() && (u.push(Bn({
4484
4476
  start: p,
4485
4477
  end: C,
4486
4478
  loop: d,
@@ -4503,7 +4495,7 @@ function ua(i, t) {
4503
4495
  }
4504
4496
  return e;
4505
4497
  }
4506
- function cA(i, t, e, s) {
4498
+ function Ac(i, t, e, s) {
4507
4499
  let n = 0, o = t - 1;
4508
4500
  if (e && !s)
4509
4501
  for (; n < t && !i[n].skip; )
@@ -4517,16 +4509,16 @@ function cA(i, t, e, s) {
4517
4509
  end: o
4518
4510
  };
4519
4511
  }
4520
- function AA(i, t, e, s) {
4512
+ function cc(i, t, e, s) {
4521
4513
  const n = i.length, o = [];
4522
4514
  let a = t, r = i[t], l;
4523
4515
  for (l = t + 1; l <= e; ++l) {
4524
- const c = i[l % n];
4525
- c.skip || c.stop ? r.skip || (s = !1, o.push({
4516
+ const A = i[l % n];
4517
+ A.skip || A.stop ? r.skip || (s = !1, o.push({
4526
4518
  start: t % n,
4527
4519
  end: (l - 1) % n,
4528
4520
  loop: s
4529
- }), t = a = c.stop ? l : null) : (a = l, r.skip && (t = l)), r = c;
4521
+ }), t = a = A.stop ? l : null) : (a = l, r.skip && (t = l)), r = A;
4530
4522
  }
4531
4523
  return a !== null && o.push({
4532
4524
  start: t % n,
@@ -4534,11 +4526,11 @@ function AA(i, t, e, s) {
4534
4526
  loop: s
4535
4527
  }), o;
4536
4528
  }
4537
- function hA(i, t) {
4529
+ function hc(i, t) {
4538
4530
  const e = i.points, s = i.options.spanGaps, n = e.length;
4539
4531
  if (!n)
4540
4532
  return [];
4541
- const o = !!i._loop, { start: a, end: r } = cA(e, n, o, s);
4533
+ const o = !!i._loop, { start: a, end: r } = Ac(e, n, o, s);
4542
4534
  if (s === !0)
4543
4535
  return xn(i, [
4544
4536
  {
@@ -4547,15 +4539,15 @@ function hA(i, t) {
4547
4539
  loop: o
4548
4540
  }
4549
4541
  ], e, t);
4550
- const l = r < a ? r + n : r, c = !!i._fullLoop && a === 0 && r === n - 1;
4551
- return xn(i, AA(e, a, l, c), e, t);
4542
+ const l = r < a ? r + n : r, A = !!i._fullLoop && a === 0 && r === n - 1;
4543
+ return xn(i, cc(e, a, l, A), e, t);
4552
4544
  }
4553
4545
  function xn(i, t, e, s) {
4554
- return !s || !s.setContext || !e ? t : dA(i, t, e, s);
4546
+ return !s || !s.setContext || !e ? t : dc(i, t, e, s);
4555
4547
  }
4556
- function dA(i, t, e, s) {
4557
- const n = i._chart.getContext(), o = Gn(i.options), { _datasetIndex: a, options: { spanGaps: r } } = i, l = e.length, c = [];
4558
- let A = o, h = t[0].start, d = h;
4548
+ function dc(i, t, e, s) {
4549
+ const n = i._chart.getContext(), o = Gn(i.options), { _datasetIndex: a, options: { spanGaps: r } } = i, l = e.length, A = [];
4550
+ let c = o, h = t[0].start, d = h;
4559
4551
  function g(u, f, p, w) {
4560
4552
  const m = r ? -1 : 1;
4561
4553
  if (u !== f) {
@@ -4563,12 +4555,12 @@ function dA(i, t, e, s) {
4563
4555
  u -= m;
4564
4556
  for (; e[f % l].skip; )
4565
4557
  f += m;
4566
- u % l !== f % l && (c.push({
4558
+ u % l !== f % l && (A.push({
4567
4559
  start: u % l,
4568
4560
  end: f % l,
4569
4561
  loop: p,
4570
4562
  style: w
4571
- }), A = w, h = f % l);
4563
+ }), c = w, h = f % l);
4572
4564
  }
4573
4565
  }
4574
4566
  for (const u of t) {
@@ -4583,11 +4575,11 @@ function dA(i, t, e, s) {
4583
4575
  p0DataIndex: (d - 1) % l,
4584
4576
  p1DataIndex: d % l,
4585
4577
  datasetIndex: a
4586
- }))), gA(p, A) && g(h, d - 1, u.loop, A), f = w, A = p;
4578
+ }))), gc(p, c) && g(h, d - 1, u.loop, c), f = w, c = p;
4587
4579
  }
4588
- h < d - 1 && g(h, d - 1, u.loop, A);
4580
+ h < d - 1 && g(h, d - 1, u.loop, c);
4589
4581
  }
4590
- return c;
4582
+ return A;
4591
4583
  }
4592
4584
  function Gn(i) {
4593
4585
  return {
@@ -4600,7 +4592,7 @@ function Gn(i) {
4600
4592
  borderColor: i.borderColor
4601
4593
  };
4602
4594
  }
4603
- function gA(i, t) {
4595
+ function gc(i, t) {
4604
4596
  if (!t)
4605
4597
  return !1;
4606
4598
  const e = [], s = function(n, o) {
@@ -4614,7 +4606,7 @@ function gA(i, t) {
4614
4606
  * (c) 2024 Chart.js Contributors
4615
4607
  * Released under the MIT License
4616
4608
  */
4617
- class uA {
4609
+ class uc {
4618
4610
  constructor() {
4619
4611
  this._request = null, this._charts = /* @__PURE__ */ new Map(), this._running = !1, this._lastDate = void 0;
4620
4612
  }
@@ -4690,8 +4682,8 @@ class uA {
4690
4682
  return this._charts.delete(t);
4691
4683
  }
4692
4684
  }
4693
- var Pt = /* @__PURE__ */ new uA();
4694
- const Yn = "transparent", fA = {
4685
+ var Pt = /* @__PURE__ */ new uc();
4686
+ const Yn = "transparent", fc = {
4695
4687
  boolean(i, t, e) {
4696
4688
  return e > 0.5 ? t : i;
4697
4689
  },
@@ -4703,7 +4695,7 @@ const Yn = "transparent", fA = {
4703
4695
  return i + (t - i) * e;
4704
4696
  }
4705
4697
  };
4706
- class pA {
4698
+ class pc {
4707
4699
  constructor(t, e, s, n) {
4708
4700
  const o = e[s];
4709
4701
  n = Fe([
@@ -4717,7 +4709,7 @@ class pA {
4717
4709
  o,
4718
4710
  n
4719
4711
  ]);
4720
- this._active = !0, this._fn = t.fn || fA[t.type || typeof a], this._easing = Je[t.easing] || Je.linear, this._start = Math.floor(Date.now() + (t.delay || 0)), this._duration = this._total = Math.floor(t.duration), this._loop = !!t.loop, this._target = e, this._prop = s, this._from = a, this._to = n, this._promises = void 0;
4712
+ this._active = !0, this._fn = t.fn || fc[t.type || typeof a], this._easing = Je[t.easing] || Je.linear, this._start = Math.floor(Date.now() + (t.delay || 0)), this._duration = this._total = Math.floor(t.duration), this._loop = !!t.loop, this._target = e, this._prop = s, this._from = a, this._to = n, this._promises = void 0;
4721
4713
  }
4722
4714
  active() {
4723
4715
  return this._active;
@@ -4792,11 +4784,11 @@ class fa {
4792
4784
  });
4793
4785
  }
4794
4786
  _animateOptions(t, e) {
4795
- const s = e.options, n = mA(t, s);
4787
+ const s = e.options, n = mc(t, s);
4796
4788
  if (!n)
4797
4789
  return [];
4798
4790
  const o = this._createAnimations(n, s);
4799
- return s.$shared && wA(t.options.$animations, s).then(() => {
4791
+ return s.$shared && wc(t.options.$animations, s).then(() => {
4800
4792
  t.options = s;
4801
4793
  }, () => {
4802
4794
  }), o;
@@ -4805,27 +4797,27 @@ class fa {
4805
4797
  const s = this._properties, n = [], o = t.$animations || (t.$animations = {}), a = Object.keys(e), r = Date.now();
4806
4798
  let l;
4807
4799
  for (l = a.length - 1; l >= 0; --l) {
4808
- const c = a[l];
4809
- if (c.charAt(0) === "$")
4800
+ const A = a[l];
4801
+ if (A.charAt(0) === "$")
4810
4802
  continue;
4811
- if (c === "options") {
4803
+ if (A === "options") {
4812
4804
  n.push(...this._animateOptions(t, e));
4813
4805
  continue;
4814
4806
  }
4815
- const A = e[c];
4816
- let h = o[c];
4817
- const d = s.get(c);
4807
+ const c = e[A];
4808
+ let h = o[A];
4809
+ const d = s.get(A);
4818
4810
  if (h)
4819
4811
  if (d && h.active()) {
4820
- h.update(d, A, r);
4812
+ h.update(d, c, r);
4821
4813
  continue;
4822
4814
  } else
4823
4815
  h.cancel();
4824
4816
  if (!d || !d.duration) {
4825
- t[c] = A;
4817
+ t[A] = c;
4826
4818
  continue;
4827
4819
  }
4828
- o[c] = h = new pA(d, t, c, A), n.push(h);
4820
+ o[A] = h = new pc(d, t, A, c), n.push(h);
4829
4821
  }
4830
4822
  return n;
4831
4823
  }
@@ -4839,7 +4831,7 @@ class fa {
4839
4831
  return Pt.add(this._chart, s), !0;
4840
4832
  }
4841
4833
  }
4842
- function wA(i, t) {
4834
+ function wc(i, t) {
4843
4835
  const e = [], s = Object.keys(t);
4844
4836
  for (let n = 0; n < s.length; n++) {
4845
4837
  const o = i[s[n]];
@@ -4847,7 +4839,7 @@ function wA(i, t) {
4847
4839
  }
4848
4840
  return Promise.all(e);
4849
4841
  }
4850
- function mA(i, t) {
4842
+ function mc(i, t) {
4851
4843
  if (!t)
4852
4844
  return;
4853
4845
  let e = i.options;
@@ -4867,7 +4859,7 @@ function vn(i, t) {
4867
4859
  end: s ? n : o
4868
4860
  };
4869
4861
  }
4870
- function bA(i, t, e) {
4862
+ function bc(i, t, e) {
4871
4863
  if (e === !1)
4872
4864
  return !1;
4873
4865
  const s = vn(i, e), n = vn(t, e);
@@ -4878,7 +4870,7 @@ function bA(i, t, e) {
4878
4870
  left: s.start
4879
4871
  };
4880
4872
  }
4881
- function MA(i) {
4873
+ function Mc(i) {
4882
4874
  let t, e, s, n;
4883
4875
  return P(i) ? (t = i.top, e = i.right, s = i.bottom, n = i.left) : t = e = s = n = i, {
4884
4876
  top: t,
@@ -4897,7 +4889,7 @@ function pa(i, t) {
4897
4889
  }
4898
4890
  function yn(i, t, e, s = {}) {
4899
4891
  const n = i.keys, o = s.mode === "single";
4900
- let a, r, l, c;
4892
+ let a, r, l, A;
4901
4893
  if (t !== null) {
4902
4894
  for (a = 0, r = n.length; a < r; ++a) {
4903
4895
  if (l = +n[a], l === e) {
@@ -4905,18 +4897,18 @@ function yn(i, t, e, s = {}) {
4905
4897
  continue;
4906
4898
  break;
4907
4899
  }
4908
- c = i.values[l], Z(c) && (o || t === 0 || Et(t) === Et(c)) && (t += c);
4900
+ A = i.values[l], Z(A) && (o || t === 0 || Et(t) === Et(A)) && (t += A);
4909
4901
  }
4910
4902
  return t;
4911
4903
  }
4912
4904
  }
4913
- function DA(i, t) {
4905
+ function Dc(i, t) {
4914
4906
  const { iScale: e, vScale: s } = t, n = e.axis === "x" ? "x" : "y", o = s.axis === "x" ? "x" : "y", a = Object.keys(i), r = new Array(a.length);
4915
- let l, c, A;
4916
- for (l = 0, c = a.length; l < c; ++l)
4917
- A = a[l], r[l] = {
4918
- [n]: A,
4919
- [o]: i[A]
4907
+ let l, A, c;
4908
+ for (l = 0, A = a.length; l < A; ++l)
4909
+ c = a[l], r[l] = {
4910
+ [n]: c,
4911
+ [o]: i[c]
4920
4912
  };
4921
4913
  return r;
4922
4914
  }
@@ -4924,17 +4916,17 @@ function Cn(i, t) {
4924
4916
  const e = i && i.options.stacked;
4925
4917
  return e || e === void 0 && t.stack !== void 0;
4926
4918
  }
4927
- function BA(i, t, e) {
4919
+ function Bc(i, t, e) {
4928
4920
  return `${i.id}.${t.id}.${e.stack || e.type}`;
4929
4921
  }
4930
- function xA(i) {
4922
+ function xc(i) {
4931
4923
  const { min: t, max: e, minDefined: s, maxDefined: n } = i.getUserBounds();
4932
4924
  return {
4933
4925
  min: s ? t : Number.NEGATIVE_INFINITY,
4934
4926
  max: n ? e : Number.POSITIVE_INFINITY
4935
4927
  };
4936
4928
  }
4937
- function GA(i, t, e) {
4929
+ function Gc(i, t, e) {
4938
4930
  const s = i[t] || (i[t] = {});
4939
4931
  return s[e] || (s[e] = {});
4940
4932
  }
@@ -4947,11 +4939,11 @@ function In(i, t, e, s) {
4947
4939
  return null;
4948
4940
  }
4949
4941
  function En(i, t) {
4950
- const { chart: e, _cachedMeta: s } = i, n = e._stacks || (e._stacks = {}), { iScale: o, vScale: a, index: r } = s, l = o.axis, c = a.axis, A = BA(o, a, s), h = t.length;
4942
+ const { chart: e, _cachedMeta: s } = i, n = e._stacks || (e._stacks = {}), { iScale: o, vScale: a, index: r } = s, l = o.axis, A = a.axis, c = Bc(o, a, s), h = t.length;
4951
4943
  let d;
4952
4944
  for (let g = 0; g < h; ++g) {
4953
- const u = t[g], { [l]: f, [c]: p } = u, w = u._stacks || (u._stacks = {});
4954
- d = w[c] = GA(n, A, f), d[r] = p, d._top = In(d, a, !0, s.type), d._bottom = In(d, a, !1, s.type);
4945
+ const u = t[g], { [l]: f, [A]: p } = u, w = u._stacks || (u._stacks = {});
4946
+ d = w[A] = Gc(n, c, f), d[r] = p, d._top = In(d, a, !0, s.type), d._bottom = In(d, a, !1, s.type);
4955
4947
  const m = d._visualValues || (d._visualValues = {});
4956
4948
  m[r] = p;
4957
4949
  }
@@ -4960,7 +4952,7 @@ function ns(i, t) {
4960
4952
  const e = i.scales;
4961
4953
  return Object.keys(e).filter((s) => e[s].axis === t).shift();
4962
4954
  }
4963
- function YA(i, t) {
4955
+ function Yc(i, t) {
4964
4956
  return ee(i, {
4965
4957
  active: !1,
4966
4958
  dataset: void 0,
@@ -4970,7 +4962,7 @@ function YA(i, t) {
4970
4962
  type: "dataset"
4971
4963
  });
4972
4964
  }
4973
- function vA(i, t, e) {
4965
+ function vc(i, t, e) {
4974
4966
  return ee(i, {
4975
4967
  active: !1,
4976
4968
  dataIndex: t,
@@ -4994,7 +4986,7 @@ function Se(i, t) {
4994
4986
  }
4995
4987
  }
4996
4988
  }
4997
- const os = (i) => i === "reset" || i === "none", kn = (i, t) => t ? i : Object.assign({}, i), yA = (i, t, e) => i && !t.hidden && t._stacked && {
4989
+ const os = (i) => i === "reset" || i === "none", kn = (i, t) => t ? i : Object.assign({}, i), yc = (i, t, e) => i && !t.hidden && t._stacked && {
4998
4990
  keys: pa(e, !0),
4999
4991
  values: null
5000
4992
  };
@@ -5010,8 +5002,8 @@ class Mt {
5010
5002
  this.index !== t && Se(this._cachedMeta), this.index = t;
5011
5003
  }
5012
5004
  linkScales() {
5013
- const t = this.chart, e = this._cachedMeta, s = this.getDataset(), n = (h, d, g, u) => h === "x" ? d : h === "r" ? u : g, o = e.xAxisID = E(s.xAxisID, ns(t, "x")), a = e.yAxisID = E(s.yAxisID, ns(t, "y")), r = e.rAxisID = E(s.rAxisID, ns(t, "r")), l = e.indexAxis, c = e.iAxisID = n(l, o, a, r), A = e.vAxisID = n(l, a, o, r);
5014
- e.xScale = this.getScaleForId(o), e.yScale = this.getScaleForId(a), e.rScale = this.getScaleForId(r), e.iScale = this.getScaleForId(c), e.vScale = this.getScaleForId(A);
5005
+ const t = this.chart, e = this._cachedMeta, s = this.getDataset(), n = (h, d, g, u) => h === "x" ? d : h === "r" ? u : g, o = e.xAxisID = E(s.xAxisID, ns(t, "x")), a = e.yAxisID = E(s.yAxisID, ns(t, "y")), r = e.rAxisID = E(s.rAxisID, ns(t, "r")), l = e.indexAxis, A = e.iAxisID = n(l, o, a, r), c = e.vAxisID = n(l, a, o, r);
5006
+ e.xScale = this.getScaleForId(o), e.yScale = this.getScaleForId(a), e.rScale = this.getScaleForId(r), e.iScale = this.getScaleForId(A), e.vScale = this.getScaleForId(c);
5015
5007
  }
5016
5008
  getDataset() {
5017
5009
  return this.chart.data.datasets[this.index];
@@ -5037,14 +5029,14 @@ class Mt {
5037
5029
  const t = this.getDataset(), e = t.data || (t.data = []), s = this._data;
5038
5030
  if (P(e)) {
5039
5031
  const n = this._cachedMeta;
5040
- this._data = DA(e, n);
5032
+ this._data = Dc(e, n);
5041
5033
  } else if (s !== e) {
5042
5034
  if (s) {
5043
5035
  dn(s, this);
5044
5036
  const n = this._cachedMeta;
5045
5037
  Se(n), n._parsed = [];
5046
5038
  }
5047
- e && Object.isExtensible(e) && dc(e, this), this._syncList = [], this._data = e;
5039
+ e && Object.isExtensible(e) && dA(e, this), this._syncList = [], this._data = e;
5048
5040
  }
5049
5041
  }
5050
5042
  addElements() {
@@ -5064,47 +5056,47 @@ class Mt {
5064
5056
  }
5065
5057
  parse(t, e) {
5066
5058
  const { _cachedMeta: s, _data: n } = this, { iScale: o, _stacked: a } = s, r = o.axis;
5067
- let l = t === 0 && e === n.length ? !0 : s._sorted, c = t > 0 && s._parsed[t - 1], A, h, d;
5059
+ let l = t === 0 && e === n.length ? !0 : s._sorted, A = t > 0 && s._parsed[t - 1], c, h, d;
5068
5060
  if (this._parsing === !1)
5069
5061
  s._parsed = n, s._sorted = !0, d = n;
5070
5062
  else {
5071
5063
  j(n[t]) ? d = this.parseArrayData(s, n, t, e) : P(n[t]) ? d = this.parseObjectData(s, n, t, e) : d = this.parsePrimitiveData(s, n, t, e);
5072
- const g = () => h[r] === null || c && h[r] < c[r];
5073
- for (A = 0; A < e; ++A)
5074
- s._parsed[A + t] = h = d[A], l && (g() && (l = !1), c = h);
5064
+ const g = () => h[r] === null || A && h[r] < A[r];
5065
+ for (c = 0; c < e; ++c)
5066
+ s._parsed[c + t] = h = d[c], l && (g() && (l = !1), A = h);
5075
5067
  s._sorted = l;
5076
5068
  }
5077
5069
  a && En(this, d);
5078
5070
  }
5079
5071
  parsePrimitiveData(t, e, s, n) {
5080
- const { iScale: o, vScale: a } = t, r = o.axis, l = a.axis, c = o.getLabels(), A = o === a, h = new Array(n);
5072
+ const { iScale: o, vScale: a } = t, r = o.axis, l = a.axis, A = o.getLabels(), c = o === a, h = new Array(n);
5081
5073
  let d, g, u;
5082
5074
  for (d = 0, g = n; d < g; ++d)
5083
5075
  u = d + s, h[d] = {
5084
- [r]: A || o.parse(c[u], u),
5076
+ [r]: c || o.parse(A[u], u),
5085
5077
  [l]: a.parse(e[u], u)
5086
5078
  };
5087
5079
  return h;
5088
5080
  }
5089
5081
  parseArrayData(t, e, s, n) {
5090
5082
  const { xScale: o, yScale: a } = t, r = new Array(n);
5091
- let l, c, A, h;
5092
- for (l = 0, c = n; l < c; ++l)
5093
- A = l + s, h = e[A], r[l] = {
5094
- x: o.parse(h[0], A),
5095
- y: a.parse(h[1], A)
5083
+ let l, A, c, h;
5084
+ for (l = 0, A = n; l < A; ++l)
5085
+ c = l + s, h = e[c], r[l] = {
5086
+ x: o.parse(h[0], c),
5087
+ y: a.parse(h[1], c)
5096
5088
  };
5097
5089
  return r;
5098
5090
  }
5099
5091
  parseObjectData(t, e, s, n) {
5100
- const { xScale: o, yScale: a } = t, { xAxisKey: r = "x", yAxisKey: l = "y" } = this._parsing, c = new Array(n);
5101
- let A, h, d, g;
5102
- for (A = 0, h = n; A < h; ++A)
5103
- d = A + s, g = e[d], c[A] = {
5092
+ const { xScale: o, yScale: a } = t, { xAxisKey: r = "x", yAxisKey: l = "y" } = this._parsing, A = new Array(n);
5093
+ let c, h, d, g;
5094
+ for (c = 0, h = n; c < h; ++c)
5095
+ d = c + s, g = e[d], A[c] = {
5104
5096
  x: o.parse(_t(g, r), d),
5105
5097
  y: a.parse(_t(g, l), d)
5106
5098
  };
5107
- return c;
5099
+ return A;
5108
5100
  }
5109
5101
  getParsed(t) {
5110
5102
  return this._cachedMeta._parsed[t];
@@ -5128,26 +5120,26 @@ class Mt {
5128
5120
  n && r && (n.values = r, a = yn(n, o, this._cachedMeta.index)), t.min = Math.min(t.min, a), t.max = Math.max(t.max, a);
5129
5121
  }
5130
5122
  getMinMax(t, e) {
5131
- const s = this._cachedMeta, n = s._parsed, o = s._sorted && t === s.iScale, a = n.length, r = this._getOtherScale(t), l = yA(e, s, this.chart), c = {
5123
+ const s = this._cachedMeta, n = s._parsed, o = s._sorted && t === s.iScale, a = n.length, r = this._getOtherScale(t), l = yc(e, s, this.chart), A = {
5132
5124
  min: Number.POSITIVE_INFINITY,
5133
5125
  max: Number.NEGATIVE_INFINITY
5134
- }, { min: A, max: h } = xA(r);
5126
+ }, { min: c, max: h } = xc(r);
5135
5127
  let d, g;
5136
5128
  function u() {
5137
5129
  g = n[d];
5138
5130
  const f = g[r.axis];
5139
- return !Z(g[t.axis]) || A > f || h < f;
5131
+ return !Z(g[t.axis]) || c > f || h < f;
5140
5132
  }
5141
- for (d = 0; d < a && !(!u() && (this.updateRangeFromParsed(c, t, g, l), o)); ++d)
5133
+ for (d = 0; d < a && !(!u() && (this.updateRangeFromParsed(A, t, g, l), o)); ++d)
5142
5134
  ;
5143
5135
  if (o) {
5144
5136
  for (d = a - 1; d >= 0; --d)
5145
5137
  if (!u()) {
5146
- this.updateRangeFromParsed(c, t, g, l);
5138
+ this.updateRangeFromParsed(A, t, g, l);
5147
5139
  break;
5148
5140
  }
5149
5141
  }
5150
- return c;
5142
+ return A;
5151
5143
  }
5152
5144
  getAllParsedValues(t) {
5153
5145
  const e = this._cachedMeta._parsed, s = [];
@@ -5168,19 +5160,19 @@ class Mt {
5168
5160
  }
5169
5161
  _update(t) {
5170
5162
  const e = this._cachedMeta;
5171
- this.update(t || "default"), e._clip = MA(E(this.options.clip, bA(e.xScale, e.yScale, this.getMaxOverflow())));
5163
+ this.update(t || "default"), e._clip = Mc(E(this.options.clip, bc(e.xScale, e.yScale, this.getMaxOverflow())));
5172
5164
  }
5173
5165
  update(t) {
5174
5166
  }
5175
5167
  draw() {
5176
- const t = this._ctx, e = this.chart, s = this._cachedMeta, n = s.data || [], o = e.chartArea, a = [], r = this._drawStart || 0, l = this._drawCount || n.length - r, c = this.options.drawActiveElementsOnTop;
5177
- let A;
5178
- for (s.dataset && s.dataset.draw(t, o, r, l), A = r; A < r + l; ++A) {
5179
- const h = n[A];
5180
- h.hidden || (h.active && c ? a.push(h) : h.draw(t, o));
5168
+ const t = this._ctx, e = this.chart, s = this._cachedMeta, n = s.data || [], o = e.chartArea, a = [], r = this._drawStart || 0, l = this._drawCount || n.length - r, A = this.options.drawActiveElementsOnTop;
5169
+ let c;
5170
+ for (s.dataset && s.dataset.draw(t, o, r, l), c = r; c < r + l; ++c) {
5171
+ const h = n[c];
5172
+ h.hidden || (h.active && A ? a.push(h) : h.draw(t, o));
5181
5173
  }
5182
- for (A = 0; A < a.length; ++A)
5183
- a[A].draw(t, o);
5174
+ for (c = 0; c < a.length; ++c)
5175
+ a[c].draw(t, o);
5184
5176
  }
5185
5177
  getStyle(t, e) {
5186
5178
  const s = e ? "active" : "default";
@@ -5191,9 +5183,9 @@ class Mt {
5191
5183
  let o;
5192
5184
  if (t >= 0 && t < this._cachedMeta.data.length) {
5193
5185
  const a = this._cachedMeta.data[t];
5194
- o = a.$context || (a.$context = vA(this.getContext(), t, a)), o.parsed = this.getParsed(t), o.raw = n.data[t], o.index = o.dataIndex = t;
5186
+ o = a.$context || (a.$context = vc(this.getContext(), t, a)), o.parsed = this.getParsed(t), o.raw = n.data[t], o.index = o.dataIndex = t;
5195
5187
  } else
5196
- o = this.$context || (this.$context = YA(this.chart.getContext(), this.index)), o.dataset = n, o.index = o.datasetIndex = this.index;
5188
+ o = this.$context || (this.$context = Yc(this.chart.getContext(), this.index)), o.dataset = n, o.index = o.datasetIndex = this.index;
5197
5189
  return o.active = !!e, o.mode = s, o;
5198
5190
  }
5199
5191
  resolveDatasetElementOptions(t) {
@@ -5206,7 +5198,7 @@ class Mt {
5206
5198
  const n = e === "active", o = this._cachedDataOpts, a = t + "-" + e, r = o[a], l = this.enableOptionSharing && si(s);
5207
5199
  if (r)
5208
5200
  return kn(r, l);
5209
- const c = this.chart.config, A = c.datasetElementScopeKeys(this._type, t), h = n ? [
5201
+ const A = this.chart.config, c = A.datasetElementScopeKeys(this._type, t), h = n ? [
5210
5202
  `${t}Hover`,
5211
5203
  "hover",
5212
5204
  t,
@@ -5214,7 +5206,7 @@ class Mt {
5214
5206
  ] : [
5215
5207
  t,
5216
5208
  ""
5217
- ], d = c.getOptionScopes(this.getDataset(), A), g = Object.keys(K.elements[t]), u = () => this.getContext(s, n, e), f = c.resolveNamedOptions(d, g, u, h);
5209
+ ], d = A.getOptionScopes(this.getDataset(), c), g = Object.keys(K.elements[t]), u = () => this.getContext(s, n, e), f = A.resolveNamedOptions(d, g, u, h);
5218
5210
  return f.$shared && (f.$shared = l, o[a] = Object.freeze(kn(f, l))), f;
5219
5211
  }
5220
5212
  _resolveAnimations(t, e, s) {
@@ -5223,11 +5215,11 @@ class Mt {
5223
5215
  return r;
5224
5216
  let l;
5225
5217
  if (n.options.animation !== !1) {
5226
- const A = this.chart.config, h = A.datasetAnimationScopeKeys(this._type, e), d = A.getOptionScopes(this.getDataset(), h);
5227
- l = A.createResolver(d, this.getContext(t, s, e));
5218
+ const c = this.chart.config, h = c.datasetAnimationScopeKeys(this._type, e), d = c.getOptionScopes(this.getDataset(), h);
5219
+ l = c.createResolver(d, this.getContext(t, s, e));
5228
5220
  }
5229
- const c = new fa(n, l && l.animations);
5230
- return l && l._cacheable && (o[a] = Object.freeze(c)), c;
5221
+ const A = new fa(n, l && l.animations);
5222
+ return l && l._cacheable && (o[a] = Object.freeze(A)), A;
5231
5223
  }
5232
5224
  getSharedOptions(t) {
5233
5225
  if (t.$shared)
@@ -5272,8 +5264,8 @@ class Mt {
5272
5264
  }
5273
5265
  _resyncElements(t) {
5274
5266
  const e = this._data, s = this._cachedMeta.data;
5275
- for (const [r, l, c] of this._syncList)
5276
- this[r](l, c);
5267
+ for (const [r, l, A] of this._syncList)
5268
+ this[r](l, A);
5277
5269
  this._syncList = [];
5278
5270
  const n = s.length, o = e.length, a = Math.min(o, n);
5279
5271
  a && this.parse(0, a), o > n ? this._insertElements(n, o - n, t) : o < n && this._removeElements(o, n - o);
@@ -5281,9 +5273,9 @@ class Mt {
5281
5273
  _insertElements(t, e, s = !0) {
5282
5274
  const n = this._cachedMeta, o = n.data, a = t + e;
5283
5275
  let r;
5284
- const l = (c) => {
5285
- for (c.length += e, r = c.length - 1; r >= a; r--)
5286
- c[r] = c[r - e];
5276
+ const l = (A) => {
5277
+ for (A.length += e, r = A.length - 1; r >= a; r--)
5278
+ A[r] = A[r - e];
5287
5279
  };
5288
5280
  for (l(o), r = t; r < a; ++r)
5289
5281
  o[r] = new this.dataElementType();
@@ -5355,7 +5347,7 @@ class Mt {
5355
5347
  }
5356
5348
  }
5357
5349
  Y(Mt, "defaults", {}), Y(Mt, "datasetElementType", null), Y(Mt, "dataElementType", null);
5358
- function CA(i, t) {
5350
+ function Cc(i, t) {
5359
5351
  if (!i._cache.$bar) {
5360
5352
  const e = i.getMatchingVisibleMetas(t);
5361
5353
  let s = [];
@@ -5365,8 +5357,8 @@ function CA(i, t) {
5365
5357
  }
5366
5358
  return i._cache.$bar;
5367
5359
  }
5368
- function IA(i) {
5369
- const t = i.iScale, e = CA(t, i.type);
5360
+ function Ic(i) {
5361
+ const t = i.iScale, e = Cc(t, i.type);
5370
5362
  let s = t._length, n, o, a, r;
5371
5363
  const l = () => {
5372
5364
  a === 32767 || a === -32768 || (si(r) && (s = Math.min(s, Math.abs(a - r) || s)), r = a);
@@ -5377,7 +5369,7 @@ function IA(i) {
5377
5369
  a = t.getPixelForTick(n), l();
5378
5370
  return s;
5379
5371
  }
5380
- function EA(i, t, e, s) {
5372
+ function Ec(i, t, e, s) {
5381
5373
  const n = e.barThickness;
5382
5374
  let o, a;
5383
5375
  return z(n) ? (o = t.min * e.categoryPercentage, a = e.barPercentage) : (o = n * s, a = 1), {
@@ -5386,24 +5378,24 @@ function EA(i, t, e, s) {
5386
5378
  start: t.pixels[i] - o / 2
5387
5379
  };
5388
5380
  }
5389
- function kA(i, t, e, s) {
5381
+ function kc(i, t, e, s) {
5390
5382
  const n = t.pixels, o = n[i];
5391
5383
  let a = i > 0 ? n[i - 1] : null, r = i < n.length - 1 ? n[i + 1] : null;
5392
5384
  const l = e.categoryPercentage;
5393
5385
  a === null && (a = o - (r === null ? t.end - t.start : r - o)), r === null && (r = o + o - a);
5394
- const c = o - (o - Math.min(a, r)) / 2 * l;
5386
+ const A = o - (o - Math.min(a, r)) / 2 * l;
5395
5387
  return {
5396
5388
  chunk: Math.abs(r - a) / 2 * l / s,
5397
5389
  ratio: e.barPercentage,
5398
- start: c
5390
+ start: A
5399
5391
  };
5400
5392
  }
5401
- function QA(i, t, e, s) {
5393
+ function Qc(i, t, e, s) {
5402
5394
  const n = e.parse(i[0], s), o = e.parse(i[1], s), a = Math.min(n, o), r = Math.max(n, o);
5403
- let l = a, c = r;
5404
- Math.abs(a) > Math.abs(r) && (l = r, c = a), t[e.axis] = c, t._custom = {
5395
+ let l = a, A = r;
5396
+ Math.abs(a) > Math.abs(r) && (l = r, A = a), t[e.axis] = A, t._custom = {
5405
5397
  barStart: l,
5406
- barEnd: c,
5398
+ barEnd: A,
5407
5399
  start: n,
5408
5400
  end: o,
5409
5401
  min: a,
@@ -5411,22 +5403,22 @@ function QA(i, t, e, s) {
5411
5403
  };
5412
5404
  }
5413
5405
  function wa(i, t, e, s) {
5414
- return j(i) ? QA(i, t, e, s) : t[e.axis] = e.parse(i, s), t;
5406
+ return j(i) ? Qc(i, t, e, s) : t[e.axis] = e.parse(i, s), t;
5415
5407
  }
5416
5408
  function Qn(i, t, e, s) {
5417
5409
  const n = i.iScale, o = i.vScale, a = n.getLabels(), r = n === o, l = [];
5418
- let c, A, h, d;
5419
- for (c = e, A = e + s; c < A; ++c)
5420
- d = t[c], h = {}, h[n.axis] = r || n.parse(a[c], c), l.push(wa(d, h, o, c));
5410
+ let A, c, h, d;
5411
+ for (A = e, c = e + s; A < c; ++A)
5412
+ d = t[A], h = {}, h[n.axis] = r || n.parse(a[A], A), l.push(wa(d, h, o, A));
5421
5413
  return l;
5422
5414
  }
5423
5415
  function as(i) {
5424
5416
  return i && i.barStart !== void 0 && i.barEnd !== void 0;
5425
5417
  }
5426
- function PA(i, t, e) {
5418
+ function Pc(i, t, e) {
5427
5419
  return i !== 0 ? Et(i) : (t.isHorizontal() ? 1 : -1) * (t.min >= e ? 1 : -1);
5428
5420
  }
5429
- function OA(i) {
5421
+ function Oc(i) {
5430
5422
  let t, e, s, n, o;
5431
5423
  return i.horizontal ? (t = i.base > i.x, e = "left", s = "right") : (t = i.base < i.y, e = "bottom", s = "top"), t ? (n = "end", o = "start") : (n = "start", o = "end"), {
5432
5424
  start: e,
@@ -5436,7 +5428,7 @@ function OA(i) {
5436
5428
  bottom: o
5437
5429
  };
5438
5430
  }
5439
- function zA(i, t, e, s) {
5431
+ function zc(i, t, e, s) {
5440
5432
  let n = t.borderSkipped;
5441
5433
  const o = {};
5442
5434
  if (!n) {
@@ -5452,19 +5444,19 @@ function zA(i, t, e, s) {
5452
5444
  };
5453
5445
  return;
5454
5446
  }
5455
- const { start: a, end: r, reverse: l, top: c, bottom: A } = OA(i);
5456
- n === "middle" && e && (i.enableBorderRadius = !0, (e._top || 0) === s ? n = c : (e._bottom || 0) === s ? n = A : (o[Pn(A, a, r, l)] = !0, n = c)), o[Pn(n, a, r, l)] = !0, i.borderSkipped = o;
5447
+ const { start: a, end: r, reverse: l, top: A, bottom: c } = Oc(i);
5448
+ n === "middle" && e && (i.enableBorderRadius = !0, (e._top || 0) === s ? n = A : (e._bottom || 0) === s ? n = c : (o[Pn(c, a, r, l)] = !0, n = A)), o[Pn(n, a, r, l)] = !0, i.borderSkipped = o;
5457
5449
  }
5458
5450
  function Pn(i, t, e, s) {
5459
- return s ? (i = LA(i, t, e), i = On(i, e, t)) : i = On(i, t, e), i;
5451
+ return s ? (i = Lc(i, t, e), i = On(i, e, t)) : i = On(i, t, e), i;
5460
5452
  }
5461
- function LA(i, t, e) {
5453
+ function Lc(i, t, e) {
5462
5454
  return i === t ? e : i === e ? t : i;
5463
5455
  }
5464
5456
  function On(i, t, e) {
5465
5457
  return i === "start" ? t : i === "end" ? e : i;
5466
5458
  }
5467
- function SA(i, { inflateAmount: t }, e) {
5459
+ function Sc(i, { inflateAmount: t }, e) {
5468
5460
  i.inflateAmount = t === "auto" ? e === 1 ? 0.33 : 0 : t;
5469
5461
  }
5470
5462
  class Ei extends Mt {
@@ -5475,10 +5467,10 @@ class Ei extends Mt {
5475
5467
  return Qn(t, e, s, n);
5476
5468
  }
5477
5469
  parseObjectData(t, e, s, n) {
5478
- const { iScale: o, vScale: a } = t, { xAxisKey: r = "x", yAxisKey: l = "y" } = this._parsing, c = o.axis === "x" ? r : l, A = a.axis === "x" ? r : l, h = [];
5470
+ const { iScale: o, vScale: a } = t, { xAxisKey: r = "x", yAxisKey: l = "y" } = this._parsing, A = o.axis === "x" ? r : l, c = a.axis === "x" ? r : l, h = [];
5479
5471
  let d, g, u, f;
5480
5472
  for (d = s, g = s + n; d < g; ++d)
5481
- f = e[d], u = {}, u[o.axis] = o.parse(_t(f, c), d), h.push(wa(_t(f, A), u, a, d));
5473
+ f = e[d], u = {}, u[o.axis] = o.parse(_t(f, A), d), h.push(wa(_t(f, c), u, a, d));
5482
5474
  return h;
5483
5475
  }
5484
5476
  updateRangeFromParsed(t, e, s, n) {
@@ -5506,29 +5498,29 @@ class Ei extends Mt {
5506
5498
  this.updateElements(e.data, 0, e.data.length, t);
5507
5499
  }
5508
5500
  updateElements(t, e, s, n) {
5509
- const o = n === "reset", { index: a, _cachedMeta: { vScale: r } } = this, l = r.getBasePixel(), c = r.isHorizontal(), A = this._getRuler(), { sharedOptions: h, includeOptions: d } = this._getSharedOptions(e, n);
5501
+ const o = n === "reset", { index: a, _cachedMeta: { vScale: r } } = this, l = r.getBasePixel(), A = r.isHorizontal(), c = this._getRuler(), { sharedOptions: h, includeOptions: d } = this._getSharedOptions(e, n);
5510
5502
  for (let g = e; g < e + s; g++) {
5511
5503
  const u = this.getParsed(g), f = o || z(u[r.axis]) ? {
5512
5504
  base: l,
5513
5505
  head: l
5514
- } : this._calculateBarValuePixels(g), p = this._calculateBarIndexPixels(g, A), w = (u._stacks || {})[r.axis], m = {
5515
- horizontal: c,
5506
+ } : this._calculateBarValuePixels(g), p = this._calculateBarIndexPixels(g, c), w = (u._stacks || {})[r.axis], m = {
5507
+ horizontal: A,
5516
5508
  base: f.base,
5517
5509
  enableBorderRadius: !w || as(u._custom) || a === w._top || a === w._bottom,
5518
- x: c ? f.head : p.center,
5519
- y: c ? p.center : f.head,
5520
- height: c ? p.size : Math.abs(f.size),
5521
- width: c ? Math.abs(f.size) : p.size
5510
+ x: A ? f.head : p.center,
5511
+ y: A ? p.center : f.head,
5512
+ height: A ? p.size : Math.abs(f.size),
5513
+ width: A ? Math.abs(f.size) : p.size
5522
5514
  };
5523
5515
  d && (m.options = h || this.resolveDataElementOptions(g, t[g].active ? "active" : n));
5524
5516
  const G = m.options || t[g].options;
5525
- zA(m, G, w, a), SA(m, G, A.ratio), this.updateElement(t[g], g, m, n);
5517
+ zc(m, G, w, a), Sc(m, G, c.ratio), this.updateElement(t[g], g, m, n);
5526
5518
  }
5527
5519
  }
5528
5520
  _getStacks(t, e) {
5529
5521
  const { iScale: s } = this._cachedMeta, n = s.getMatchingVisibleMetas(this._type).filter((l) => l.controller.options.grouped), o = s.options.stacked, a = [], r = (l) => {
5530
- const c = l.controller.getParsed(e), A = c && c[l.vScale.axis];
5531
- if (z(A) || isNaN(A))
5522
+ const A = l.controller.getParsed(e), c = A && A[l.vScale.axis];
5523
+ if (z(c) || isNaN(c))
5532
5524
  return !0;
5533
5525
  };
5534
5526
  for (const l of n)
@@ -5550,7 +5542,7 @@ class Ei extends Mt {
5550
5542
  n.push(s.getPixelForValue(this.getParsed(o)[s.axis], o));
5551
5543
  const r = t.barThickness;
5552
5544
  return {
5553
- min: r || IA(e),
5545
+ min: r || Ic(e),
5554
5546
  pixels: n,
5555
5547
  start: s._startPixel,
5556
5548
  end: s._endPixel,
@@ -5561,15 +5553,15 @@ class Ei extends Mt {
5561
5553
  };
5562
5554
  }
5563
5555
  _calculateBarValuePixels(t) {
5564
- const { _cachedMeta: { vScale: e, _stacked: s, index: n }, options: { base: o, minBarLength: a } } = this, r = o || 0, l = this.getParsed(t), c = l._custom, A = as(c);
5556
+ const { _cachedMeta: { vScale: e, _stacked: s, index: n }, options: { base: o, minBarLength: a } } = this, r = o || 0, l = this.getParsed(t), A = l._custom, c = as(A);
5565
5557
  let h = l[e.axis], d = 0, g = s ? this.applyStack(e, l, s) : h, u, f;
5566
- g !== h && (d = g - h, g = h), A && (h = c.barStart, g = c.barEnd - c.barStart, h !== 0 && Et(h) !== Et(c.barEnd) && (d = 0), d += h);
5567
- const p = !z(o) && !A ? o : d;
5558
+ g !== h && (d = g - h, g = h), c && (h = A.barStart, g = A.barEnd - A.barStart, h !== 0 && Et(h) !== Et(A.barEnd) && (d = 0), d += h);
5559
+ const p = !z(o) && !c ? o : d;
5568
5560
  let w = e.getPixelForValue(p);
5569
5561
  if (this.chart.getDataVisibility(t) ? u = e.getPixelForValue(d + g) : u = w, f = u - w, Math.abs(f) < a) {
5570
- f = PA(f, e, r) * a, h === r && (w -= f / 2);
5562
+ f = Pc(f, e, r) * a, h === r && (w -= f / 2);
5571
5563
  const m = e.getPixelForDecimal(0), G = e.getPixelForDecimal(1), x = Math.min(m, G), D = Math.max(m, G);
5572
- w = Math.max(Math.min(w, D), x), u = w + f, s && !A && (l._stacks[e.axis]._visualValues[n] = e.getValueForPixel(u) - e.getValueForPixel(w));
5564
+ w = Math.max(Math.min(w, D), x), u = w + f, s && !c && (l._stacks[e.axis]._visualValues[n] = e.getValueForPixel(u) - e.getValueForPixel(w));
5573
5565
  }
5574
5566
  if (w === e.getPixelForValue(r)) {
5575
5567
  const m = Et(f) * e.getLineWidthForValue(r) / 2;
@@ -5586,8 +5578,8 @@ class Ei extends Mt {
5586
5578
  const s = e.scale, n = this.options, o = n.skipNull, a = E(n.maxBarThickness, 1 / 0);
5587
5579
  let r, l;
5588
5580
  if (e.grouped) {
5589
- const c = o ? this._getStackCount(t) : e.stackCount, A = n.barThickness === "flex" ? kA(t, e, n, c) : EA(t, e, n, c), h = this._getStackIndex(this.index, this._cachedMeta.stack, o ? t : void 0);
5590
- r = A.start + A.chunk * h + A.chunk / 2, l = Math.min(a, A.chunk * A.ratio);
5581
+ const A = o ? this._getStackCount(t) : e.stackCount, c = n.barThickness === "flex" ? kc(t, e, n, A) : Ec(t, e, n, A), h = this._getStackIndex(this.index, this._cachedMeta.stack, o ? t : void 0);
5582
+ r = c.start + c.chunk * h + c.chunk / 2, l = Math.min(a, c.chunk * c.ratio);
5591
5583
  } else
5592
5584
  r = s.getPixelForValue(this.getParsed(t)[s.axis], t), l = Math.min(a, e.min * e.ratio);
5593
5585
  return {
@@ -5671,10 +5663,10 @@ class ki extends Mt {
5671
5663
  return e > 0 && e;
5672
5664
  }
5673
5665
  getLabelAndValue(t) {
5674
- const e = this._cachedMeta, s = this.chart.data.labels || [], { xScale: n, yScale: o } = e, a = this.getParsed(t), r = n.getLabelForValue(a.x), l = o.getLabelForValue(a.y), c = a._custom;
5666
+ const e = this._cachedMeta, s = this.chart.data.labels || [], { xScale: n, yScale: o } = e, a = this.getParsed(t), r = n.getLabelForValue(a.x), l = o.getLabelForValue(a.y), A = a._custom;
5675
5667
  return {
5676
5668
  label: s[t] || "",
5677
- value: "(" + r + ", " + l + (c ? ", " + c : "") + ")"
5669
+ value: "(" + r + ", " + l + (A ? ", " + A : "") + ")"
5678
5670
  };
5679
5671
  }
5680
5672
  update(t) {
@@ -5682,10 +5674,10 @@ class ki extends Mt {
5682
5674
  this.updateElements(e, 0, e.length, t);
5683
5675
  }
5684
5676
  updateElements(t, e, s, n) {
5685
- const o = n === "reset", { iScale: a, vScale: r } = this._cachedMeta, { sharedOptions: l, includeOptions: c } = this._getSharedOptions(e, n), A = a.axis, h = r.axis;
5677
+ const o = n === "reset", { iScale: a, vScale: r } = this._cachedMeta, { sharedOptions: l, includeOptions: A } = this._getSharedOptions(e, n), c = a.axis, h = r.axis;
5686
5678
  for (let d = e; d < e + s; d++) {
5687
- const g = t[d], u = !o && this.getParsed(d), f = {}, p = f[A] = o ? a.getPixelForDecimal(0.5) : a.getPixelForValue(u[A]), w = f[h] = o ? r.getBasePixel() : r.getPixelForValue(u[h]);
5688
- f.skip = isNaN(p) || isNaN(w), c && (f.options = l || this.resolveDataElementOptions(d, g.active ? "active" : n), o && (f.options.radius = 0)), this.updateElement(g, d, f, n);
5679
+ const g = t[d], u = !o && this.getParsed(d), f = {}, p = f[c] = o ? a.getPixelForDecimal(0.5) : a.getPixelForValue(u[c]), w = f[h] = o ? r.getBasePixel() : r.getPixelForValue(u[h]);
5680
+ f.skip = isNaN(p) || isNaN(w), A && (f.options = l || this.resolveDataElementOptions(d, g.active ? "active" : n), o && (f.options.radius = 0)), this.updateElement(g, d, f, n);
5689
5681
  }
5690
5682
  }
5691
5683
  resolveDataElementOptions(t, e) {
@@ -5722,10 +5714,10 @@ Y(ki, "id", "bubble"), Y(ki, "defaults", {
5722
5714
  }
5723
5715
  }
5724
5716
  });
5725
- function TA(i, t, e) {
5717
+ function Tc(i, t, e) {
5726
5718
  let s = 1, n = 1, o = 0, a = 0;
5727
5719
  if (t < V) {
5728
- const r = i, l = r + t, c = Math.cos(r), A = Math.sin(r), h = Math.cos(l), d = Math.sin(l), g = (G, x, D) => ni(G, r, l, !0) ? 1 : Math.max(x, x * e, D, D * e), u = (G, x, D) => ni(G, r, l, !0) ? -1 : Math.min(x, x * e, D, D * e), f = g(0, c, h), p = g(X, A, d), w = u(H, c, h), m = u(H + X, A, d);
5720
+ const r = i, l = r + t, A = Math.cos(r), c = Math.sin(r), h = Math.cos(l), d = Math.sin(l), g = (G, x, D) => ni(G, r, l, !0) ? 1 : Math.max(x, x * e, D, D * e), u = (G, x, D) => ni(G, r, l, !0) ? -1 : Math.min(x, x * e, D, D * e), f = g(0, A, h), p = g(X, c, d), w = u(H, A, h), m = u(H + X, c, d);
5729
5721
  s = (f - w) / 2, n = (p - m) / 2, o = -(f + w) / 2, a = -(p + m) / 2;
5730
5722
  }
5731
5723
  return {
@@ -5749,7 +5741,7 @@ class he extends Mt {
5749
5741
  let o = (l) => +s[l];
5750
5742
  if (P(s[t])) {
5751
5743
  const { key: l = "value" } = this._parsing;
5752
- o = (c) => +_t(s[c], l);
5744
+ o = (A) => +_t(s[A], l);
5753
5745
  }
5754
5746
  let a, r;
5755
5747
  for (a = t, r = t + e; a < r; ++a)
@@ -5775,21 +5767,21 @@ class he extends Mt {
5775
5767
  };
5776
5768
  }
5777
5769
  update(t) {
5778
- const e = this.chart, { chartArea: s } = e, n = this._cachedMeta, o = n.data, a = this.getMaxBorderWidth() + this.getMaxOffset(o) + this.options.spacing, r = Math.max((Math.min(s.width, s.height) - a) / 2, 0), l = Math.min(_l(this.options.cutout, r), 1), c = this._getRingWeight(this.index), { circumference: A, rotation: h } = this._getRotationExtents(), { ratioX: d, ratioY: g, offsetX: u, offsetY: f } = TA(h, A, l), p = (s.width - a) / d, w = (s.height - a) / g, m = Math.max(Math.min(p, w) / 2, 0), G = Wo(this.options.radius, m), x = Math.max(G * l, 0), D = (G - x) / this._getVisibleDatasetWeightTotal();
5779
- this.offsetX = u * G, this.offsetY = f * G, n.total = this.calculateTotal(), this.outerRadius = G - D * this._getRingWeightOffset(this.index), this.innerRadius = Math.max(this.outerRadius - D * c, 0), this.updateElements(o, 0, o.length, t);
5770
+ const e = this.chart, { chartArea: s } = e, n = this._cachedMeta, o = n.data, a = this.getMaxBorderWidth() + this.getMaxOffset(o) + this.options.spacing, r = Math.max((Math.min(s.width, s.height) - a) / 2, 0), l = Math.min(_l(this.options.cutout, r), 1), A = this._getRingWeight(this.index), { circumference: c, rotation: h } = this._getRotationExtents(), { ratioX: d, ratioY: g, offsetX: u, offsetY: f } = Tc(h, c, l), p = (s.width - a) / d, w = (s.height - a) / g, m = Math.max(Math.min(p, w) / 2, 0), G = Wo(this.options.radius, m), x = Math.max(G * l, 0), D = (G - x) / this._getVisibleDatasetWeightTotal();
5771
+ this.offsetX = u * G, this.offsetY = f * G, n.total = this.calculateTotal(), this.outerRadius = G - D * this._getRingWeightOffset(this.index), this.innerRadius = Math.max(this.outerRadius - D * A, 0), this.updateElements(o, 0, o.length, t);
5780
5772
  }
5781
5773
  _circumference(t, e) {
5782
5774
  const s = this.options, n = this._cachedMeta, o = this._getCircumference();
5783
5775
  return e && s.animation.animateRotate || !this.chart.getDataVisibility(t) || n._parsed[t] === null || n.data[t].hidden ? 0 : this.calculateCircumference(n._parsed[t] * o / V);
5784
5776
  }
5785
5777
  updateElements(t, e, s, n) {
5786
- const o = n === "reset", a = this.chart, r = a.chartArea, c = a.options.animation, A = (r.left + r.right) / 2, h = (r.top + r.bottom) / 2, d = o && c.animateScale, g = d ? 0 : this.innerRadius, u = d ? 0 : this.outerRadius, { sharedOptions: f, includeOptions: p } = this._getSharedOptions(e, n);
5778
+ const o = n === "reset", a = this.chart, r = a.chartArea, A = a.options.animation, c = (r.left + r.right) / 2, h = (r.top + r.bottom) / 2, d = o && A.animateScale, g = d ? 0 : this.innerRadius, u = d ? 0 : this.outerRadius, { sharedOptions: f, includeOptions: p } = this._getSharedOptions(e, n);
5787
5779
  let w = this._getRotation(), m;
5788
5780
  for (m = 0; m < e; ++m)
5789
5781
  w += this._circumference(m, o);
5790
5782
  for (m = e; m < e + s; ++m) {
5791
5783
  const G = this._circumference(m, o), x = t[m], D = {
5792
- x: A + this.offsetX,
5784
+ x: c + this.offsetX,
5793
5785
  y: h + this.offsetY,
5794
5786
  startAngle: w,
5795
5787
  endAngle: w + G,
@@ -5814,7 +5806,7 @@ class he extends Mt {
5814
5806
  return e > 0 && !isNaN(t) ? V * (Math.abs(t) / e) : 0;
5815
5807
  }
5816
5808
  getLabelAndValue(t) {
5817
- const e = this._cachedMeta, s = this.chart, n = s.data.labels || [], o = Ai(e._parsed[t], s.options.locale);
5809
+ const e = this._cachedMeta, s = this.chart, n = s.data.labels || [], o = ci(e._parsed[t], s.options.locale);
5818
5810
  return {
5819
5811
  label: n[t] || "",
5820
5812
  value: o
@@ -5931,14 +5923,14 @@ class Qi extends Mt {
5931
5923
  const e = this._cachedMeta, { dataset: s, data: n = [], _dataset: o } = e, a = this.chart._animationsDisabled;
5932
5924
  let { start: r, count: l } = $o(e, n, a);
5933
5925
  this._drawStart = r, this._drawCount = l, ta(e) && (r = 0, l = n.length), s._chart = this.chart, s._datasetIndex = this.index, s._decimated = !!o._decimated, s.points = n;
5934
- const c = this.resolveDatasetElementOptions(t);
5935
- this.options.showLine || (c.borderWidth = 0), c.segment = this.options.segment, this.updateElement(s, void 0, {
5926
+ const A = this.resolveDatasetElementOptions(t);
5927
+ this.options.showLine || (A.borderWidth = 0), A.segment = this.options.segment, this.updateElement(s, void 0, {
5936
5928
  animated: !a,
5937
- options: c
5929
+ options: A
5938
5930
  }, t), this.updateElements(n, r, l, t);
5939
5931
  }
5940
5932
  updateElements(t, e, s, n) {
5941
- const o = n === "reset", { iScale: a, vScale: r, _stacked: l, _dataset: c } = this._cachedMeta, { sharedOptions: A, includeOptions: h } = this._getSharedOptions(e, n), d = a.axis, g = r.axis, { spanGaps: u, segment: f } = this.options, p = Ee(u) ? u : Number.POSITIVE_INFINITY, w = this.chart._animationsDisabled || o || n === "none", m = e + s, G = t.length;
5933
+ const o = n === "reset", { iScale: a, vScale: r, _stacked: l, _dataset: A } = this._cachedMeta, { sharedOptions: c, includeOptions: h } = this._getSharedOptions(e, n), d = a.axis, g = r.axis, { spanGaps: u, segment: f } = this.options, p = Ee(u) ? u : Number.POSITIVE_INFINITY, w = this.chart._animationsDisabled || o || n === "none", m = e + s, G = t.length;
5942
5934
  let x = e > 0 && this.getParsed(e - 1);
5943
5935
  for (let D = 0; D < G; ++D) {
5944
5936
  const v = t[D], y = w ? v : {};
@@ -5947,7 +5939,7 @@ class Qi extends Mt {
5947
5939
  continue;
5948
5940
  }
5949
5941
  const C = this.getParsed(D), I = z(C[g]), k = y[d] = a.getPixelForValue(C[d], D), Q = y[g] = o || I ? r.getBasePixel() : r.getPixelForValue(l ? this.applyStack(r, C, l) : C[g], D);
5950
- y.skip = isNaN(k) || isNaN(Q) || I, y.stop = D > 0 && Math.abs(C[d] - x[d]) > p, f && (y.parsed = C, y.raw = c.data[D]), h && (y.options = A || this.resolveDataElementOptions(D, v.active ? "active" : n)), w || this.updateElement(v, D, y, n), x = C;
5942
+ y.skip = isNaN(k) || isNaN(Q) || I, y.stop = D > 0 && Math.abs(C[d] - x[d]) > p, f && (y.parsed = C, y.raw = A.data[D]), h && (y.options = c || this.resolveDataElementOptions(D, v.active ? "active" : n)), w || this.updateElement(v, D, y, n), x = C;
5951
5943
  }
5952
5944
  }
5953
5945
  getMaxOverflow() {
@@ -5982,7 +5974,7 @@ class _e extends Mt {
5982
5974
  super(t, e), this.innerRadius = void 0, this.outerRadius = void 0;
5983
5975
  }
5984
5976
  getLabelAndValue(t) {
5985
- const e = this._cachedMeta, s = this.chart, n = s.data.labels || [], o = Ai(e._parsed[t].r, s.options.locale);
5977
+ const e = this._cachedMeta, s = this.chart, n = s.data.labels || [], o = ci(e._parsed[t].r, s.options.locale);
5986
5978
  return {
5987
5979
  label: n[t] || "",
5988
5980
  value: o
@@ -6010,17 +6002,17 @@ class _e extends Mt {
6010
6002
  this.outerRadius = o - r * this.index, this.innerRadius = this.outerRadius - r;
6011
6003
  }
6012
6004
  updateElements(t, e, s, n) {
6013
- const o = n === "reset", a = this.chart, l = a.options.animation, c = this._cachedMeta.rScale, A = c.xCenter, h = c.yCenter, d = c.getIndexAngle(0) - 0.5 * H;
6005
+ const o = n === "reset", a = this.chart, l = a.options.animation, A = this._cachedMeta.rScale, c = A.xCenter, h = A.yCenter, d = A.getIndexAngle(0) - 0.5 * H;
6014
6006
  let g = d, u;
6015
6007
  const f = 360 / this.countVisibleElements();
6016
6008
  for (u = 0; u < e; ++u)
6017
6009
  g += this._computeAngle(u, n, f);
6018
6010
  for (u = e; u < e + s; u++) {
6019
6011
  const p = t[u];
6020
- let w = g, m = g + this._computeAngle(u, n, f), G = a.getDataVisibility(u) ? c.getDistanceFromCenterForValue(this.getParsed(u).r) : 0;
6012
+ let w = g, m = g + this._computeAngle(u, n, f), G = a.getDataVisibility(u) ? A.getDistanceFromCenterForValue(this.getParsed(u).r) : 0;
6021
6013
  g = m, o && (l.animateScale && (G = 0), l.animateRotate && (w = m = d));
6022
6014
  const x = {
6023
- x: A,
6015
+ x: c,
6024
6016
  y: h,
6025
6017
  innerRadius: 0,
6026
6018
  outerRadius: G,
@@ -6147,12 +6139,12 @@ class Pi extends Mt {
6147
6139
  updateElements(t, e, s, n) {
6148
6140
  const o = this._cachedMeta.rScale, a = n === "reset";
6149
6141
  for (let r = e; r < e + s; r++) {
6150
- const l = t[r], c = this.resolveDataElementOptions(r, l.active ? "active" : n), A = o.getPointPositionForValue(r, this.getParsed(r).r), h = a ? o.xCenter : A.x, d = a ? o.yCenter : A.y, g = {
6142
+ const l = t[r], A = this.resolveDataElementOptions(r, l.active ? "active" : n), c = o.getPointPositionForValue(r, this.getParsed(r).r), h = a ? o.xCenter : c.x, d = a ? o.yCenter : c.y, g = {
6151
6143
  x: h,
6152
6144
  y: d,
6153
- angle: A.angle,
6145
+ angle: c.angle,
6154
6146
  skip: isNaN(h) || isNaN(d),
6155
- options: c
6147
+ options: A
6156
6148
  };
6157
6149
  this.updateElement(l, r, g, n);
6158
6150
  }
@@ -6191,10 +6183,10 @@ class Oi extends Mt {
6191
6183
  this.datasetElementType || this.addElements();
6192
6184
  const { dataset: r, _dataset: l } = e;
6193
6185
  r._chart = this.chart, r._datasetIndex = this.index, r._decimated = !!l._decimated, r.points = s;
6194
- const c = this.resolveDatasetElementOptions(t);
6195
- c.segment = this.options.segment, this.updateElement(r, void 0, {
6186
+ const A = this.resolveDatasetElementOptions(t);
6187
+ A.segment = this.options.segment, this.updateElement(r, void 0, {
6196
6188
  animated: !n,
6197
- options: c
6189
+ options: A
6198
6190
  }, t);
6199
6191
  } else
6200
6192
  this.datasetElementType && (delete e.dataset, this.datasetElementType = !1);
@@ -6205,13 +6197,13 @@ class Oi extends Mt {
6205
6197
  !this.datasetElementType && t && (this.datasetElementType = this.chart.registry.getElement("line")), super.addElements();
6206
6198
  }
6207
6199
  updateElements(t, e, s, n) {
6208
- const o = n === "reset", { iScale: a, vScale: r, _stacked: l, _dataset: c } = this._cachedMeta, A = this.resolveDataElementOptions(e, n), h = this.getSharedOptions(A), d = this.includeOptions(n, h), g = a.axis, u = r.axis, { spanGaps: f, segment: p } = this.options, w = Ee(f) ? f : Number.POSITIVE_INFINITY, m = this.chart._animationsDisabled || o || n === "none";
6200
+ const o = n === "reset", { iScale: a, vScale: r, _stacked: l, _dataset: A } = this._cachedMeta, c = this.resolveDataElementOptions(e, n), h = this.getSharedOptions(c), d = this.includeOptions(n, h), g = a.axis, u = r.axis, { spanGaps: f, segment: p } = this.options, w = Ee(f) ? f : Number.POSITIVE_INFINITY, m = this.chart._animationsDisabled || o || n === "none";
6209
6201
  let G = e > 0 && this.getParsed(e - 1);
6210
6202
  for (let x = e; x < e + s; ++x) {
6211
6203
  const D = t[x], v = this.getParsed(x), y = m ? D : {}, C = z(v[u]), I = y[g] = a.getPixelForValue(v[g], x), k = y[u] = o || C ? r.getBasePixel() : r.getPixelForValue(l ? this.applyStack(r, v, l) : v[u], x);
6212
- y.skip = isNaN(I) || isNaN(k) || C, y.stop = x > 0 && Math.abs(v[g] - G[g]) > w, p && (y.parsed = v, y.raw = c.data[x]), d && (y.options = h || this.resolveDataElementOptions(x, D.active ? "active" : n)), m || this.updateElement(D, x, y, n), G = v;
6204
+ y.skip = isNaN(I) || isNaN(k) || C, y.stop = x > 0 && Math.abs(v[g] - G[g]) > w, p && (y.parsed = v, y.raw = A.data[x]), d && (y.options = h || this.resolveDataElementOptions(x, D.active ? "active" : n)), m || this.updateElement(D, x, y, n), G = v;
6213
6205
  }
6214
- this.updateSharedOptions(h, n, A);
6206
+ this.updateSharedOptions(h, n, c);
6215
6207
  }
6216
6208
  getMaxOverflow() {
6217
6209
  const t = this._cachedMeta, e = t.data || [];
@@ -6246,7 +6238,7 @@ Y(Oi, "id", "scatter"), Y(Oi, "defaults", {
6246
6238
  }
6247
6239
  }
6248
6240
  });
6249
- var RA = /* @__PURE__ */ Object.freeze({
6241
+ var Rc = /* @__PURE__ */ Object.freeze({
6250
6242
  __proto__: null,
6251
6243
  BarController: Ei,
6252
6244
  BubbleController: ki,
@@ -6303,18 +6295,18 @@ class Ws {
6303
6295
  return re();
6304
6296
  }
6305
6297
  }
6306
- var jA = {
6298
+ var jc = {
6307
6299
  _date: Ws
6308
6300
  };
6309
- function VA(i, t, e, s) {
6301
+ function Vc(i, t, e, s) {
6310
6302
  const { controller: n, data: o, _sorted: a } = i, r = n._cachedMeta.iScale;
6311
6303
  if (r && t === r.axis && t !== "r" && a && o.length) {
6312
- const l = r._reversePixels ? Ac : Rt;
6304
+ const l = r._reversePixels ? cA : Rt;
6313
6305
  if (s) {
6314
6306
  if (n._sharedOptions) {
6315
- const c = o[0], A = typeof c.getRange == "function" && c.getRange(t);
6316
- if (A) {
6317
- const h = l(o, t, e - A), d = l(o, t, e + A);
6307
+ const A = o[0], c = typeof A.getRange == "function" && A.getRange(t);
6308
+ if (c) {
6309
+ const h = l(o, t, e - c), d = l(o, t, e + c);
6318
6310
  return {
6319
6311
  lo: h.lo,
6320
6312
  hi: d.hi
@@ -6332,14 +6324,14 @@ function VA(i, t, e, s) {
6332
6324
  function hi(i, t, e, s, n) {
6333
6325
  const o = i.getSortedVisibleDatasetMetas(), a = e[t];
6334
6326
  for (let r = 0, l = o.length; r < l; ++r) {
6335
- const { index: c, data: A } = o[r], { lo: h, hi: d } = VA(o[r], t, a, n);
6327
+ const { index: A, data: c } = o[r], { lo: h, hi: d } = Vc(o[r], t, a, n);
6336
6328
  for (let g = h; g <= d; ++g) {
6337
- const u = A[g];
6338
- u.skip || s(u, c, g);
6329
+ const u = c[g];
6330
+ u.skip || s(u, A, g);
6339
6331
  }
6340
6332
  }
6341
6333
  }
6342
- function HA(i) {
6334
+ function Hc(i) {
6343
6335
  const t = i.indexOf("x") !== -1, e = i.indexOf("y") !== -1;
6344
6336
  return function(s, n) {
6345
6337
  const o = t ? Math.abs(s.x - n.x) : 0, a = e ? Math.abs(s.y - n.y) : 0;
@@ -6348,25 +6340,25 @@ function HA(i) {
6348
6340
  }
6349
6341
  function rs(i, t, e, s, n) {
6350
6342
  const o = [];
6351
- return !n && !i.isPointInArea(t) || hi(i, e, t, function(r, l, c) {
6343
+ return !n && !i.isPointInArea(t) || hi(i, e, t, function(r, l, A) {
6352
6344
  !n && !jt(r, i.chartArea, 0) || r.inRange(t.x, t.y, s) && o.push({
6353
6345
  element: r,
6354
6346
  datasetIndex: l,
6355
- index: c
6347
+ index: A
6356
6348
  });
6357
6349
  }, !0), o;
6358
6350
  }
6359
- function FA(i, t, e, s) {
6351
+ function Fc(i, t, e, s) {
6360
6352
  let n = [];
6361
6353
  function o(a, r, l) {
6362
- const { startAngle: c, endAngle: A } = a.getProps([
6354
+ const { startAngle: A, endAngle: c } = a.getProps([
6363
6355
  "startAngle",
6364
6356
  "endAngle"
6365
6357
  ], s), { angle: h } = Uo(a, {
6366
6358
  x: t.x,
6367
6359
  y: t.y
6368
6360
  });
6369
- ni(h, c, A) && n.push({
6361
+ ni(h, A, c) && n.push({
6370
6362
  element: a,
6371
6363
  datasetIndex: r,
6372
6364
  index: l
@@ -6374,89 +6366,89 @@ function FA(i, t, e, s) {
6374
6366
  }
6375
6367
  return hi(i, e, t, o), n;
6376
6368
  }
6377
- function NA(i, t, e, s, n, o) {
6369
+ function Nc(i, t, e, s, n, o) {
6378
6370
  let a = [];
6379
- const r = HA(e);
6371
+ const r = Hc(e);
6380
6372
  let l = Number.POSITIVE_INFINITY;
6381
- function c(A, h, d) {
6382
- const g = A.inRange(t.x, t.y, n);
6373
+ function A(c, h, d) {
6374
+ const g = c.inRange(t.x, t.y, n);
6383
6375
  if (s && !g)
6384
6376
  return;
6385
- const u = A.getCenterPoint(n);
6377
+ const u = c.getCenterPoint(n);
6386
6378
  if (!(!!o || i.isPointInArea(u)) && !g)
6387
6379
  return;
6388
6380
  const p = r(t, u);
6389
6381
  p < l ? (a = [
6390
6382
  {
6391
- element: A,
6383
+ element: c,
6392
6384
  datasetIndex: h,
6393
6385
  index: d
6394
6386
  }
6395
6387
  ], l = p) : p === l && a.push({
6396
- element: A,
6388
+ element: c,
6397
6389
  datasetIndex: h,
6398
6390
  index: d
6399
6391
  });
6400
6392
  }
6401
- return hi(i, e, t, c), a;
6393
+ return hi(i, e, t, A), a;
6402
6394
  }
6403
6395
  function ls(i, t, e, s, n, o) {
6404
- return !o && !i.isPointInArea(t) ? [] : e === "r" && !s ? FA(i, t, e, n) : NA(i, t, e, s, n, o);
6396
+ return !o && !i.isPointInArea(t) ? [] : e === "r" && !s ? Fc(i, t, e, n) : Nc(i, t, e, s, n, o);
6405
6397
  }
6406
6398
  function zn(i, t, e, s, n) {
6407
6399
  const o = [], a = e === "x" ? "inXRange" : "inYRange";
6408
6400
  let r = !1;
6409
- return hi(i, e, t, (l, c, A) => {
6401
+ return hi(i, e, t, (l, A, c) => {
6410
6402
  l[a](t[e], n) && (o.push({
6411
6403
  element: l,
6412
- datasetIndex: c,
6413
- index: A
6404
+ datasetIndex: A,
6405
+ index: c
6414
6406
  }), r = r || l.inRange(t.x, t.y, n));
6415
6407
  }), s && !r ? [] : o;
6416
6408
  }
6417
- var WA = {
6409
+ var Wc = {
6418
6410
  evaluateInteractionItems: hi,
6419
6411
  modes: {
6420
6412
  index(i, t, e, s) {
6421
- const n = ce(t, i), o = e.axis || "x", a = e.includeInvisible || !1, r = e.intersect ? rs(i, n, o, s, a) : ls(i, n, o, !1, s, a), l = [];
6422
- return r.length ? (i.getSortedVisibleDatasetMetas().forEach((c) => {
6423
- const A = r[0].index, h = c.data[A];
6413
+ const n = Ae(t, i), o = e.axis || "x", a = e.includeInvisible || !1, r = e.intersect ? rs(i, n, o, s, a) : ls(i, n, o, !1, s, a), l = [];
6414
+ return r.length ? (i.getSortedVisibleDatasetMetas().forEach((A) => {
6415
+ const c = r[0].index, h = A.data[c];
6424
6416
  h && !h.skip && l.push({
6425
6417
  element: h,
6426
- datasetIndex: c.index,
6427
- index: A
6418
+ datasetIndex: A.index,
6419
+ index: c
6428
6420
  });
6429
6421
  }), l) : [];
6430
6422
  },
6431
6423
  dataset(i, t, e, s) {
6432
- const n = ce(t, i), o = e.axis || "xy", a = e.includeInvisible || !1;
6424
+ const n = Ae(t, i), o = e.axis || "xy", a = e.includeInvisible || !1;
6433
6425
  let r = e.intersect ? rs(i, n, o, s, a) : ls(i, n, o, !1, s, a);
6434
6426
  if (r.length > 0) {
6435
- const l = r[0].datasetIndex, c = i.getDatasetMeta(l).data;
6427
+ const l = r[0].datasetIndex, A = i.getDatasetMeta(l).data;
6436
6428
  r = [];
6437
- for (let A = 0; A < c.length; ++A)
6429
+ for (let c = 0; c < A.length; ++c)
6438
6430
  r.push({
6439
- element: c[A],
6431
+ element: A[c],
6440
6432
  datasetIndex: l,
6441
- index: A
6433
+ index: c
6442
6434
  });
6443
6435
  }
6444
6436
  return r;
6445
6437
  },
6446
6438
  point(i, t, e, s) {
6447
- const n = ce(t, i), o = e.axis || "xy", a = e.includeInvisible || !1;
6439
+ const n = Ae(t, i), o = e.axis || "xy", a = e.includeInvisible || !1;
6448
6440
  return rs(i, n, o, s, a);
6449
6441
  },
6450
6442
  nearest(i, t, e, s) {
6451
- const n = ce(t, i), o = e.axis || "xy", a = e.includeInvisible || !1;
6443
+ const n = Ae(t, i), o = e.axis || "xy", a = e.includeInvisible || !1;
6452
6444
  return ls(i, n, o, e.intersect, s, a);
6453
6445
  },
6454
6446
  x(i, t, e, s) {
6455
- const n = ce(t, i);
6447
+ const n = Ae(t, i);
6456
6448
  return zn(i, n, "x", e.intersect, s);
6457
6449
  },
6458
6450
  y(i, t, e, s) {
6459
- const n = ce(t, i);
6451
+ const n = Ae(t, i);
6460
6452
  return zn(i, n, "y", e.intersect, s);
6461
6453
  }
6462
6454
  }
@@ -6479,7 +6471,7 @@ function Re(i, t) {
6479
6471
  return n.weight === o.weight ? n.index - o.index : n.weight - o.weight;
6480
6472
  });
6481
6473
  }
6482
- function ZA(i) {
6474
+ function Zc(i) {
6483
6475
  const t = [];
6484
6476
  let e, s, n, o, a, r;
6485
6477
  for (e = 0, s = (i || []).length; e < s; ++e)
@@ -6494,7 +6486,7 @@ function ZA(i) {
6494
6486
  });
6495
6487
  return t;
6496
6488
  }
6497
- function KA(i) {
6489
+ function Kc(i) {
6498
6490
  const t = {};
6499
6491
  for (const e of i) {
6500
6492
  const { stack: s, pos: n, stackWeight: o } = e;
@@ -6510,18 +6502,18 @@ function KA(i) {
6510
6502
  }
6511
6503
  return t;
6512
6504
  }
6513
- function UA(i, t) {
6514
- const e = KA(i), { vBoxMaxWidth: s, hBoxMaxHeight: n } = t;
6505
+ function Uc(i, t) {
6506
+ const e = Kc(i), { vBoxMaxWidth: s, hBoxMaxHeight: n } = t;
6515
6507
  let o, a, r;
6516
6508
  for (o = 0, a = i.length; o < a; ++o) {
6517
6509
  r = i[o];
6518
- const { fullSize: l } = r.box, c = e[r.stack], A = c && r.stackWeight / c.weight;
6519
- r.horizontal ? (r.width = A ? A * s : l && t.availableWidth, r.height = n) : (r.width = s, r.height = A ? A * n : l && t.availableHeight);
6510
+ const { fullSize: l } = r.box, A = e[r.stack], c = A && r.stackWeight / A.weight;
6511
+ r.horizontal ? (r.width = c ? c * s : l && t.availableWidth, r.height = n) : (r.width = s, r.height = c ? c * n : l && t.availableHeight);
6520
6512
  }
6521
6513
  return e;
6522
6514
  }
6523
- function XA(i) {
6524
- const t = ZA(i), e = Re(t.filter((c) => c.box.fullSize), !0), s = Re(Te(t, "left"), !0), n = Re(Te(t, "right")), o = Re(Te(t, "top"), !0), a = Re(Te(t, "bottom")), r = Ln(t, "x"), l = Ln(t, "y");
6515
+ function Xc(i) {
6516
+ const t = Zc(i), e = Re(t.filter((A) => A.box.fullSize), !0), s = Re(Te(t, "left"), !0), n = Re(Te(t, "right")), o = Re(Te(t, "top"), !0), a = Re(Te(t, "bottom")), r = Ln(t, "x"), l = Ln(t, "y");
6525
6517
  return {
6526
6518
  fullSize: e,
6527
6519
  leftAndTop: s.concat(o),
@@ -6537,7 +6529,7 @@ function Sn(i, t, e, s) {
6537
6529
  function ba(i, t) {
6538
6530
  i.top = Math.max(i.top, t.top), i.left = Math.max(i.left, t.left), i.bottom = Math.max(i.bottom, t.bottom), i.right = Math.max(i.right, t.right);
6539
6531
  }
6540
- function JA(i, t, e, s) {
6532
+ function Jc(i, t, e, s) {
6541
6533
  const { pos: n, box: o } = e, a = i.maxPadding;
6542
6534
  if (!P(n)) {
6543
6535
  e.size && (i[n] -= e.size);
@@ -6548,16 +6540,16 @@ function JA(i, t, e, s) {
6548
6540
  h.size = Math.max(h.size, e.horizontal ? o.height : o.width), e.size = h.size / h.count, i[n] += e.size;
6549
6541
  }
6550
6542
  o.getPadding && ba(a, o.getPadding());
6551
- const r = Math.max(0, t.outerWidth - Sn(a, i, "left", "right")), l = Math.max(0, t.outerHeight - Sn(a, i, "top", "bottom")), c = r !== i.w, A = l !== i.h;
6543
+ const r = Math.max(0, t.outerWidth - Sn(a, i, "left", "right")), l = Math.max(0, t.outerHeight - Sn(a, i, "top", "bottom")), A = r !== i.w, c = l !== i.h;
6552
6544
  return i.w = r, i.h = l, e.horizontal ? {
6553
- same: c,
6554
- other: A
6555
- } : {
6556
6545
  same: A,
6557
6546
  other: c
6547
+ } : {
6548
+ same: c,
6549
+ other: A
6558
6550
  };
6559
6551
  }
6560
- function qA(i) {
6552
+ function qc(i) {
6561
6553
  const t = i.maxPadding;
6562
6554
  function e(s) {
6563
6555
  const n = Math.max(t[s] - i[s], 0);
@@ -6565,7 +6557,7 @@ function qA(i) {
6565
6557
  }
6566
6558
  i.y += e("top"), i.x += e("left"), e("right"), e("bottom");
6567
6559
  }
6568
- function _A(i, t) {
6560
+ function _c(i, t) {
6569
6561
  const e = t.maxPadding;
6570
6562
  function s(n) {
6571
6563
  const o = {
@@ -6588,13 +6580,13 @@ function _A(i, t) {
6588
6580
  }
6589
6581
  function Ne(i, t, e, s) {
6590
6582
  const n = [];
6591
- let o, a, r, l, c, A;
6592
- for (o = 0, a = i.length, c = 0; o < a; ++o) {
6593
- r = i[o], l = r.box, l.update(r.width || t.w, r.height || t.h, _A(r.horizontal, t));
6594
- const { same: h, other: d } = JA(t, e, r, s);
6595
- c |= h && n.length, A = A || d, l.fullSize || n.push(r);
6583
+ let o, a, r, l, A, c;
6584
+ for (o = 0, a = i.length, A = 0; o < a; ++o) {
6585
+ r = i[o], l = r.box, l.update(r.width || t.w, r.height || t.h, _c(r.horizontal, t));
6586
+ const { same: h, other: d } = Jc(t, e, r, s);
6587
+ A |= h && n.length, c = c || d, l.fullSize || n.push(r);
6596
6588
  }
6597
- return c && Ne(n, t, e, s) || A;
6589
+ return A && Ne(n, t, e, s) || c;
6598
6590
  }
6599
6591
  function Bi(i, t, e, s, n) {
6600
6592
  i.top = e, i.left = t, i.right = t + s, i.bottom = e + n, i.width = s, i.height = n;
@@ -6603,17 +6595,17 @@ function Tn(i, t, e, s) {
6603
6595
  const n = e.padding;
6604
6596
  let { x: o, y: a } = t;
6605
6597
  for (const r of i) {
6606
- const l = r.box, c = s[r.stack] || {
6598
+ const l = r.box, A = s[r.stack] || {
6607
6599
  count: 1,
6608
6600
  placed: 0,
6609
6601
  weight: 1
6610
- }, A = r.stackWeight / c.weight || 1;
6602
+ }, c = r.stackWeight / A.weight || 1;
6611
6603
  if (r.horizontal) {
6612
- const h = t.w * A, d = c.size || l.height;
6613
- si(c.start) && (a = c.start), l.fullSize ? Bi(l, n.left, a, e.outerWidth - n.right - n.left, d) : Bi(l, t.left + c.placed, a, h, d), c.start = a, c.placed += h, a = l.bottom;
6604
+ const h = t.w * c, d = A.size || l.height;
6605
+ si(A.start) && (a = A.start), l.fullSize ? Bi(l, n.left, a, e.outerWidth - n.right - n.left, d) : Bi(l, t.left + A.placed, a, h, d), A.start = a, A.placed += h, a = l.bottom;
6614
6606
  } else {
6615
- const h = t.h * A, d = c.size || l.width;
6616
- si(c.start) && (o = c.start), l.fullSize ? Bi(l, o, n.top, d, e.outerHeight - n.bottom - n.top) : Bi(l, o, t.top + c.placed, d, h), c.start = o, c.placed += h, o = l.right;
6607
+ const h = t.h * c, d = A.size || l.width;
6608
+ si(A.start) && (o = A.start), l.fullSize ? Bi(l, o, n.top, d, e.outerHeight - n.bottom - n.top) : Bi(l, o, t.top + A.placed, d, h), A.start = o, A.placed += h, o = l.right;
6617
6609
  }
6618
6610
  }
6619
6611
  t.x = o, t.y = a;
@@ -6641,17 +6633,17 @@ var ot = {
6641
6633
  update(i, t, e, s) {
6642
6634
  if (!i)
6643
6635
  return;
6644
- const n = at(i.options.layout.padding), o = Math.max(t - n.width, 0), a = Math.max(e - n.height, 0), r = XA(i.boxes), l = r.vertical, c = r.horizontal;
6636
+ const n = at(i.options.layout.padding), o = Math.max(t - n.width, 0), a = Math.max(e - n.height, 0), r = Xc(i.boxes), l = r.vertical, A = r.horizontal;
6645
6637
  L(i.boxes, (f) => {
6646
6638
  typeof f.beforeLayout == "function" && f.beforeLayout();
6647
6639
  });
6648
- const A = l.reduce((f, p) => p.box.options && p.box.options.display === !1 ? f : f + 1, 0) || 1, h = Object.freeze({
6640
+ const c = l.reduce((f, p) => p.box.options && p.box.options.display === !1 ? f : f + 1, 0) || 1, h = Object.freeze({
6649
6641
  outerWidth: t,
6650
6642
  outerHeight: e,
6651
6643
  padding: n,
6652
6644
  availableWidth: o,
6653
6645
  availableHeight: a,
6654
- vBoxMaxWidth: o / 2 / A,
6646
+ vBoxMaxWidth: o / 2 / c,
6655
6647
  hBoxMaxHeight: a / 2
6656
6648
  }), d = Object.assign({}, n);
6657
6649
  ba(d, at(s));
@@ -6661,8 +6653,8 @@ var ot = {
6661
6653
  h: a,
6662
6654
  x: n.left,
6663
6655
  y: n.top
6664
- }, n), u = UA(l.concat(c), h);
6665
- Ne(r.fullSize, g, h, u), Ne(l, g, h, u), Ne(c, g, h, u) && Ne(l, g, h, u), qA(g), Tn(r.leftAndTop, g, h, u), g.x += g.w, g.y += g.h, Tn(r.rightAndBottom, g, h, u), i.chartArea = {
6656
+ }, n), u = Uc(l.concat(A), h);
6657
+ Ne(r.fullSize, g, h, u), Ne(l, g, h, u), Ne(A, g, h, u) && Ne(l, g, h, u), qc(g), Tn(r.leftAndTop, g, h, u), g.x += g.w, g.y += g.h, Tn(r.rightAndBottom, g, h, u), i.chartArea = {
6666
6658
  left: g.left,
6667
6659
  top: g.top,
6668
6660
  right: g.left + g.w,
@@ -6705,7 +6697,7 @@ class Ma {
6705
6697
  updateConfig(t) {
6706
6698
  }
6707
6699
  }
6708
- class $A extends Ma {
6700
+ class $c extends Ma {
6709
6701
  acquireContext(t) {
6710
6702
  return t && t.getContext && t.getContext("2d") || null;
6711
6703
  }
@@ -6749,7 +6741,7 @@ function eh(i, t) {
6749
6741
  }
6750
6742
  return i;
6751
6743
  }
6752
- const Da = sA ? {
6744
+ const Da = sc ? {
6753
6745
  passive: !0
6754
6746
  } : !1;
6755
6747
  function ih(i, t, e) {
@@ -6759,7 +6751,7 @@ function sh(i, t, e) {
6759
6751
  i && i.canvas && i.canvas.removeEventListener(t, e, Da);
6760
6752
  }
6761
6753
  function nh(i, t) {
6762
- const e = th[i.type] || i.type, { x: s, y: n } = ce(i, t);
6754
+ const e = th[i.type] || i.type, { x: s, y: n } = Ae(i, t);
6763
6755
  return {
6764
6756
  type: e,
6765
6757
  chart: t,
@@ -6811,23 +6803,23 @@ function rh(i, t) {
6811
6803
  function lh(i) {
6812
6804
  ai.delete(i), ai.size || window.removeEventListener("resize", Ba);
6813
6805
  }
6814
- function ch(i, t, e) {
6806
+ function Ah(i, t, e) {
6815
6807
  const s = i.canvas, n = s && Ns(s);
6816
6808
  if (!n)
6817
6809
  return;
6818
6810
  const o = _o((r, l) => {
6819
- const c = n.clientWidth;
6820
- e(r, l), c < n.clientWidth && e();
6811
+ const A = n.clientWidth;
6812
+ e(r, l), A < n.clientWidth && e();
6821
6813
  }, window), a = new ResizeObserver((r) => {
6822
- const l = r[0], c = l.contentRect.width, A = l.contentRect.height;
6823
- c === 0 && A === 0 || o(c, A);
6814
+ const l = r[0], A = l.contentRect.width, c = l.contentRect.height;
6815
+ A === 0 && c === 0 || o(A, c);
6824
6816
  });
6825
6817
  return a.observe(n), rh(i, o), a;
6826
6818
  }
6827
- function cs(i, t, e) {
6819
+ function As(i, t, e) {
6828
6820
  e && e.disconnect(), t === "resize" && lh(i);
6829
6821
  }
6830
- function Ah(i, t, e) {
6822
+ function ch(i, t, e) {
6831
6823
  const s = i.canvas, n = _o((o) => {
6832
6824
  i.ctx !== null && e(nh(o, i));
6833
6825
  }, i);
@@ -6860,8 +6852,8 @@ class hh extends Ma {
6860
6852
  const n = t.$proxies || (t.$proxies = {}), a = {
6861
6853
  attach: oh,
6862
6854
  detach: ah,
6863
- resize: ch
6864
- }[e] || Ah;
6855
+ resize: Ah
6856
+ }[e] || ch;
6865
6857
  n[e] = a(t, e, s);
6866
6858
  }
6867
6859
  removeEventListener(t, e) {
@@ -6869,16 +6861,16 @@ class hh extends Ma {
6869
6861
  if (!n)
6870
6862
  return;
6871
6863
  ({
6872
- attach: cs,
6873
- detach: cs,
6874
- resize: cs
6864
+ attach: As,
6865
+ detach: As,
6866
+ resize: As
6875
6867
  }[e] || sh)(t, e, n), s[e] = void 0;
6876
6868
  }
6877
6869
  getDevicePixelRatio() {
6878
6870
  return window.devicePixelRatio;
6879
6871
  }
6880
6872
  getMaximumSize(t, e, s, n) {
6881
- return iA(t, e, s, n);
6873
+ return ic(t, e, s, n);
6882
6874
  }
6883
6875
  isAttached(t) {
6884
6876
  const e = t && Ns(t);
@@ -6886,7 +6878,7 @@ class hh extends Ma {
6886
6878
  }
6887
6879
  }
6888
6880
  function dh(i) {
6889
- return !Fs() || typeof OffscreenCanvas < "u" && i instanceof OffscreenCanvas ? $A : hh;
6881
+ return !Fs() || typeof OffscreenCanvas < "u" && i instanceof OffscreenCanvas ? $c : hh;
6890
6882
  }
6891
6883
  class xt {
6892
6884
  constructor() {
@@ -6921,18 +6913,18 @@ class xt {
6921
6913
  }
6922
6914
  Y(xt, "defaults", {}), Y(xt, "defaultRoutes");
6923
6915
  function gh(i, t) {
6924
- const e = i.options.ticks, s = uh(i), n = Math.min(e.maxTicksLimit || s, s), o = e.major.enabled ? ph(t) : [], a = o.length, r = o[0], l = o[a - 1], c = [];
6916
+ const e = i.options.ticks, s = uh(i), n = Math.min(e.maxTicksLimit || s, s), o = e.major.enabled ? ph(t) : [], a = o.length, r = o[0], l = o[a - 1], A = [];
6925
6917
  if (a > n)
6926
- return wh(t, c, o, a / n), c;
6927
- const A = fh(o, t, n);
6918
+ return wh(t, A, o, a / n), A;
6919
+ const c = fh(o, t, n);
6928
6920
  if (a > 0) {
6929
6921
  let h, d;
6930
6922
  const g = a > 1 ? Math.round((l - r) / (a - 1)) : null;
6931
- for (xi(t, c, A, z(g) ? 0 : r - g, r), h = 0, d = a - 1; h < d; h++)
6932
- xi(t, c, A, o[h], o[h + 1]);
6933
- return xi(t, c, A, l, z(g) ? t.length : l + g), c;
6923
+ for (xi(t, A, c, z(g) ? 0 : r - g, r), h = 0, d = a - 1; h < d; h++)
6924
+ xi(t, A, c, o[h], o[h + 1]);
6925
+ return xi(t, A, c, l, z(g) ? t.length : l + g), A;
6934
6926
  }
6935
- return xi(t, c, A), c;
6927
+ return xi(t, A, c), A;
6936
6928
  }
6937
6929
  function uh(i) {
6938
6930
  const t = i.options.offset, e = i._tickSize(), s = i._length / e + (t ? 0 : 1), n = i._maxLength / e;
@@ -6942,7 +6934,7 @@ function fh(i, t, e) {
6942
6934
  const s = mh(i), n = t.length / e;
6943
6935
  if (!s)
6944
6936
  return Math.max(n, 1);
6945
- const o = ac(s);
6937
+ const o = aA(s);
6946
6938
  for (let a = 0, r = o.length - 1; a < r; a++) {
6947
6939
  const l = o[a];
6948
6940
  if (l > n)
@@ -6964,11 +6956,11 @@ function wh(i, t, e, s) {
6964
6956
  }
6965
6957
  function xi(i, t, e, s, n) {
6966
6958
  const o = E(s, 0), a = Math.min(E(n, i.length), i.length);
6967
- let r = 0, l, c, A;
6968
- for (e = Math.ceil(e), n && (l = n - s, e = l / Math.floor(l / e)), A = o; A < 0; )
6969
- r++, A = Math.round(o + r * e);
6970
- for (c = Math.max(o, 0); c < a; c++)
6971
- c === A && (t.push(i[c]), r++, A = Math.round(o + r * e));
6959
+ let r = 0, l, A, c;
6960
+ for (e = Math.ceil(e), n && (l = n - s, e = l / Math.floor(l / e)), c = o; c < 0; )
6961
+ r++, c = Math.round(o + r * e);
6962
+ for (A = Math.max(o, 0); A < a; A++)
6963
+ A === c && (t.push(i[A]), r++, c = Math.round(o + r * e));
6972
6964
  }
6973
6965
  function mh(i) {
6974
6966
  const t = i.length;
@@ -6990,8 +6982,8 @@ function Fn(i, t) {
6990
6982
  }
6991
6983
  function Mh(i, t, e) {
6992
6984
  const s = i.ticks.length, n = Math.min(t, s - 1), o = i._startPixel, a = i._endPixel, r = 1e-6;
6993
- let l = i.getPixelForTick(n), c;
6994
- if (!(e && (s === 1 ? c = Math.max(l - o, a - l) : t === 0 ? c = (i.getPixelForTick(1) - l) / 2 : c = (l - i.getPixelForTick(n - 1)) / 2, l += n < t ? c : -c, l < o - r || l > a + r)))
6985
+ let l = i.getPixelForTick(n), A;
6986
+ if (!(e && (s === 1 ? A = Math.max(l - o, a - l) : t === 0 ? A = (i.getPixelForTick(1) - l) / 2 : A = (l - i.getPixelForTick(n - 1)) / 2, l += n < t ? A : -A, l < o - r || l > a + r)))
6995
6987
  return l;
6996
6988
  }
6997
6989
  function Dh(i, t) {
@@ -7032,22 +7024,22 @@ function Gh(i, t, e) {
7032
7024
  return (e && t !== "right" || !e && t === "right") && (s = bh(s)), s;
7033
7025
  }
7034
7026
  function Yh(i, t, e, s) {
7035
- const { top: n, left: o, bottom: a, right: r, chart: l } = i, { chartArea: c, scales: A } = l;
7027
+ const { top: n, left: o, bottom: a, right: r, chart: l } = i, { chartArea: A, scales: c } = l;
7036
7028
  let h = 0, d, g, u;
7037
7029
  const f = a - n, p = r - o;
7038
7030
  if (i.isHorizontal()) {
7039
7031
  if (g = nt(s, o, r), P(e)) {
7040
7032
  const w = Object.keys(e)[0], m = e[w];
7041
- u = A[w].getPixelForValue(m) + f - t;
7033
+ u = c[w].getPixelForValue(m) + f - t;
7042
7034
  } else
7043
- e === "center" ? u = (c.bottom + c.top) / 2 + f - t : u = Vn(i, e, t);
7035
+ e === "center" ? u = (A.bottom + A.top) / 2 + f - t : u = Vn(i, e, t);
7044
7036
  d = r - o;
7045
7037
  } else {
7046
7038
  if (P(e)) {
7047
7039
  const w = Object.keys(e)[0], m = e[w];
7048
- g = A[w].getPixelForValue(m) - p + t;
7040
+ g = c[w].getPixelForValue(m) - p + t;
7049
7041
  } else
7050
- e === "center" ? g = (c.left + c.right) / 2 - p + t : g = Vn(i, e, t);
7042
+ e === "center" ? g = (A.left + A.right) / 2 - p + t : g = Vn(i, e, t);
7051
7043
  u = nt(s, a, n), h = e === "left" ? -X : X;
7052
7044
  }
7053
7045
  return {
@@ -7089,7 +7081,7 @@ class De extends xt {
7089
7081
  max: s
7090
7082
  };
7091
7083
  const r = this.getMatchingVisibleMetas();
7092
- for (let l = 0, c = r.length; l < c; ++l)
7084
+ for (let l = 0, A = r.length; l < A; ++l)
7093
7085
  a = r[l].controller.getMinMax(this, t), n || (e = Math.min(e, a.min)), o || (s = Math.max(s, a.max));
7094
7086
  return e = o && e > s ? s : e, s = n && e > s ? e : s, {
7095
7087
  min: ut(e, ut(s, e)),
@@ -7129,7 +7121,7 @@ class De extends xt {
7129
7121
  right: 0,
7130
7122
  top: 0,
7131
7123
  bottom: 0
7132
- }, s), this.ticks = null, this._labelSizes = null, this._gridLineItems = null, this._labelItems = null, this.beforeSetDimensions(), this.setDimensions(), this.afterSetDimensions(), this._maxLength = this.isHorizontal() ? this.width + s.left + s.right : this.height + s.top + s.bottom, this._dataLimitsCached || (this.beforeDataLimits(), this.determineDataLimits(), this.afterDataLimits(), this._range = Oc(this, o, n), this._dataLimitsCached = !0), this.beforeBuildTicks(), this.ticks = this.buildTicks() || [], this.afterBuildTicks();
7124
+ }, s), this.ticks = null, this._labelSizes = null, this._gridLineItems = null, this._labelItems = null, this.beforeSetDimensions(), this.setDimensions(), this.afterSetDimensions(), this._maxLength = this.isHorizontal() ? this.width + s.left + s.right : this.height + s.top + s.bottom, this._dataLimitsCached || (this.beforeDataLimits(), this.determineDataLimits(), this.afterDataLimits(), this._range = OA(this, o, n), this._dataLimitsCached = !0), this.beforeBuildTicks(), this.ticks = this.buildTicks() || [], this.afterBuildTicks();
7133
7125
  const l = r < this.ticks.length;
7134
7126
  this._convertTicksToLabels(l ? Fn(this.ticks, r) : this.ticks), this.configure(), this.beforeCalculateLabelRotation(), this.calculateLabelRotation(), this.afterCalculateLabelRotation(), a.display && (a.autoSkip || a.source === "auto") && (this.ticks = gh(this, this.ticks), this._labelSizes = null, this.afterAutoSkip()), l && this._convertTicksToLabels(this.ticks), this.beforeFit(), this.fit(), this.afterFit(), this.afterUpdate();
7135
7127
  }
@@ -7204,13 +7196,13 @@ class De extends xt {
7204
7196
  }
7205
7197
  calculateLabelRotation() {
7206
7198
  const t = this.options, e = t.ticks, s = Hn(this.ticks.length, t.ticks.maxTicksLimit), n = e.minRotation || 0, o = e.maxRotation;
7207
- let a = n, r, l, c;
7199
+ let a = n, r, l, A;
7208
7200
  if (!this._isVisible() || !e.display || n >= o || s <= 1 || !this.isHorizontal()) {
7209
7201
  this.labelRotation = n;
7210
7202
  return;
7211
7203
  }
7212
- const A = this._getLabelSizes(), h = A.widest.width, d = A.highest.height, g = tt(this.chart.width - h, 0, this.maxWidth);
7213
- r = t.offset ? this.maxWidth / s : g / (s - 1), h + 6 > r && (r = g / (s - (t.offset ? 0.5 : 1)), l = this.maxHeight - je(t.grid) - e.padding - Nn(t.title, this.chart.options.font), c = Math.sqrt(h * h + d * d), a = zs(Math.min(Math.asin(tt((A.highest.height + 6) / r, -1, 1)), Math.asin(tt(l / c, -1, 1)) - Math.asin(tt(d / c, -1, 1)))), a = Math.max(n, Math.min(o, a))), this.labelRotation = a;
7204
+ const c = this._getLabelSizes(), h = c.widest.width, d = c.highest.height, g = tt(this.chart.width - h, 0, this.maxWidth);
7205
+ r = t.offset ? this.maxWidth / s : g / (s - 1), h + 6 > r && (r = g / (s - (t.offset ? 0.5 : 1)), l = this.maxHeight - je(t.grid) - e.padding - Nn(t.title, this.chart.options.font), A = Math.sqrt(h * h + d * d), a = zs(Math.min(Math.asin(tt((c.highest.height + 6) / r, -1, 1)), Math.asin(tt(l / A, -1, 1)) - Math.asin(tt(d / A, -1, 1)))), a = Math.max(n, Math.min(o, a))), this.labelRotation = a;
7214
7206
  }
7215
7207
  afterCalculateLabelRotation() {
7216
7208
  R(this.options.afterCalculateLabelRotation, [
@@ -7232,7 +7224,7 @@ class De extends xt {
7232
7224
  if (a) {
7233
7225
  const l = Nn(n, e.options.font);
7234
7226
  if (r ? (t.width = this.maxWidth, t.height = je(o) + l) : (t.height = this.maxHeight, t.width = je(o) + l), s.display && this.ticks.length) {
7235
- const { first: c, last: A, widest: h, highest: d } = this._getLabelSizes(), g = s.padding * 2, u = bt(this.labelRotation), f = Math.cos(u), p = Math.sin(u);
7227
+ const { first: A, last: c, widest: h, highest: d } = this._getLabelSizes(), g = s.padding * 2, u = bt(this.labelRotation), f = Math.cos(u), p = Math.sin(u);
7236
7228
  if (r) {
7237
7229
  const w = s.mirror ? 0 : p * h.width + f * d.height;
7238
7230
  t.height = Math.min(this.maxHeight, t.height + w + g);
@@ -7240,20 +7232,20 @@ class De extends xt {
7240
7232
  const w = s.mirror ? 0 : f * h.width + p * d.height;
7241
7233
  t.width = Math.min(this.maxWidth, t.width + w + g);
7242
7234
  }
7243
- this._calculatePadding(c, A, p, f);
7235
+ this._calculatePadding(A, c, p, f);
7244
7236
  }
7245
7237
  }
7246
7238
  this._handleMargins(), r ? (this.width = this._length = e.width - this._margins.left - this._margins.right, this.height = t.height) : (this.width = t.width, this.height = this._length = e.height - this._margins.top - this._margins.bottom);
7247
7239
  }
7248
7240
  _calculatePadding(t, e, s, n) {
7249
- const { ticks: { align: o, padding: a }, position: r } = this.options, l = this.labelRotation !== 0, c = r !== "top" && this.axis === "x";
7241
+ const { ticks: { align: o, padding: a }, position: r } = this.options, l = this.labelRotation !== 0, A = r !== "top" && this.axis === "x";
7250
7242
  if (this.isHorizontal()) {
7251
- const A = this.getPixelForTick(0) - this.left, h = this.right - this.getPixelForTick(this.ticks.length - 1);
7243
+ const c = this.getPixelForTick(0) - this.left, h = this.right - this.getPixelForTick(this.ticks.length - 1);
7252
7244
  let d = 0, g = 0;
7253
- l ? c ? (d = n * t.width, g = s * e.height) : (d = s * t.height, g = n * e.width) : o === "start" ? g = e.width : o === "end" ? d = t.width : o !== "inner" && (d = t.width / 2, g = e.width / 2), this.paddingLeft = Math.max((d - A + a) * this.width / (this.width - A), 0), this.paddingRight = Math.max((g - h + a) * this.width / (this.width - h), 0);
7245
+ l ? A ? (d = n * t.width, g = s * e.height) : (d = s * t.height, g = n * e.width) : o === "start" ? g = e.width : o === "end" ? d = t.width : o !== "inner" && (d = t.width / 2, g = e.width / 2), this.paddingLeft = Math.max((d - c + a) * this.width / (this.width - c), 0), this.paddingRight = Math.max((g - h + a) * this.width / (this.width - h), 0);
7254
7246
  } else {
7255
- let A = e.height / 2, h = t.height / 2;
7256
- o === "start" ? (A = 0, h = t.height) : o === "end" && (A = e.height, h = 0), this.paddingTop = A + a, this.paddingBottom = h + a;
7247
+ let c = e.height / 2, h = t.height / 2;
7248
+ o === "start" ? (c = 0, h = t.height) : o === "end" && (c = e.height, h = 0), this.paddingTop = c + a, this.paddingBottom = h + a;
7257
7249
  }
7258
7250
  }
7259
7251
  _handleMargins() {
@@ -7289,7 +7281,7 @@ class De extends xt {
7289
7281
  }
7290
7282
  _computeLabelSizes(t, e, s) {
7291
7283
  const { ctx: n, _longestTextCache: o } = this, a = [], r = [], l = Math.floor(e / Hn(e, s));
7292
- let c = 0, A = 0, h, d, g, u, f, p, w, m, G, x, D;
7284
+ let A = 0, c = 0, h, d, g, u, f, p, w, m, G, x, D;
7293
7285
  for (h = 0; h < e; h += l) {
7294
7286
  if (u = t[h].label, f = this._resolveTickFontOptions(h), n.font = p = f.string, w = o[p] = o[p] || {
7295
7287
  data: {},
@@ -7299,10 +7291,10 @@ class De extends xt {
7299
7291
  else if (j(u))
7300
7292
  for (d = 0, g = u.length; d < g; ++d)
7301
7293
  D = u[d], !z(D) && !j(D) && (G = Fi(n, w.data, w.gc, G, D), x += m);
7302
- a.push(G), r.push(x), c = Math.max(G, c), A = Math.max(x, A);
7294
+ a.push(G), r.push(x), A = Math.max(G, A), c = Math.max(x, c);
7303
7295
  }
7304
7296
  Dh(o, e);
7305
- const v = a.indexOf(c), y = r.indexOf(A), C = (I) => ({
7297
+ const v = a.indexOf(A), y = r.indexOf(c), C = (I) => ({
7306
7298
  width: a[I] || 0,
7307
7299
  height: r[I] || 0
7308
7300
  });
@@ -7330,7 +7322,7 @@ class De extends xt {
7330
7322
  getPixelForDecimal(t) {
7331
7323
  this._reversePixels && (t = 1 - t);
7332
7324
  const e = this._startPixel + t * this._length;
7333
- return cc(this._alignToPixels ? ae(this.chart, e, 0) : e);
7325
+ return AA(this._alignToPixels ? ae(this.chart, e, 0) : e);
7334
7326
  }
7335
7327
  getDecimalForPixel(t) {
7336
7328
  const e = (t - this._startPixel) / this._length;
@@ -7360,7 +7352,7 @@ class De extends xt {
7360
7352
  return t !== "auto" ? !!t : this.getMatchingVisibleMetas().length > 0;
7361
7353
  }
7362
7354
  _computeGridLineItems(t) {
7363
- const e = this.axis, s = this.chart, n = this.options, { grid: o, position: a, border: r } = n, l = o.offset, c = this.isHorizontal(), h = this.ticks.length + (l ? 1 : 0), d = je(o), g = [], u = r.setContext(this.getContext()), f = u.display ? u.width : 0, p = f / 2, w = function(N) {
7355
+ const e = this.axis, s = this.chart, n = this.options, { grid: o, position: a, border: r } = n, l = o.offset, A = this.isHorizontal(), h = this.ticks.length + (l ? 1 : 0), d = je(o), g = [], u = r.setContext(this.getContext()), f = u.display ? u.width : 0, p = f / 2, w = function(N) {
7364
7356
  return ae(s, N, f);
7365
7357
  };
7366
7358
  let m, G, x, D, v, y, C, I, k, Q, O, it;
@@ -7392,7 +7384,7 @@ class De extends xt {
7392
7384
  const gt = E(n.ticks.maxTicksLimit, h), S = Math.max(1, Math.ceil(h / gt));
7393
7385
  for (G = 0; G < h; G += S) {
7394
7386
  const N = this.getContext(G), U = o.setContext(N), mt = r.setContext(N), st = U.lineWidth, xe = U.color, gi = mt.dash || [], Ge = mt.dashOffset, ze = U.tickWidth, se = U.tickColor, Le = U.tickBorderDash || [], ne = U.tickBorderDashOffset;
7395
- x = Mh(this, G, l), x !== void 0 && (D = ae(s, x, st), c ? v = C = k = O = D : y = I = Q = it = D, g.push({
7387
+ x = Mh(this, G, l), x !== void 0 && (D = ae(s, x, st), A ? v = C = k = O = D : y = I = Q = it = D, g.push({
7396
7388
  tx1: v,
7397
7389
  ty1: y,
7398
7390
  tx2: C,
@@ -7414,7 +7406,7 @@ class De extends xt {
7414
7406
  return this._ticksLength = h, this._borderValue = m, g;
7415
7407
  }
7416
7408
  _computeLabelItems(t) {
7417
- const e = this.axis, s = this.options, { position: n, ticks: o } = s, a = this.isHorizontal(), r = this.ticks, { align: l, crossAlign: c, padding: A, mirror: h } = o, d = je(s.grid), g = d + A, u = h ? -A : g, f = -bt(this.labelRotation), p = [];
7409
+ const e = this.axis, s = this.options, { position: n, ticks: o } = s, a = this.isHorizontal(), r = this.ticks, { align: l, crossAlign: A, padding: c, mirror: h } = o, d = je(s.grid), g = d + c, u = h ? -c : g, f = -bt(this.labelRotation), p = [];
7418
7410
  let w, m, G, x, D, v, y, C, I, k, Q, O, it = "middle";
7419
7411
  if (n === "top")
7420
7412
  v = this.bottom - u, y = this._getXAxisLabelAlignment();
@@ -7451,7 +7443,7 @@ class De extends xt {
7451
7443
  C = this.getPixelForTick(w) + o.labelOffset, I = this._resolveTickFontOptions(w), k = I.lineHeight, Q = j(x) ? x.length : 1;
7452
7444
  const N = Q / 2, U = S.color, mt = S.textStrokeColor, st = S.textStrokeWidth;
7453
7445
  let xe = y;
7454
- a ? (D = C, y === "inner" && (w === m - 1 ? xe = this.options.reverse ? "left" : "right" : w === 0 ? xe = this.options.reverse ? "right" : "left" : xe = "center"), n === "top" ? c === "near" || f !== 0 ? O = -Q * k + k / 2 : c === "center" ? O = -gt.highest.height / 2 - N * k + k : O = -gt.highest.height + k / 2 : c === "near" || f !== 0 ? O = k / 2 : c === "center" ? O = gt.highest.height / 2 - N * k : O = gt.highest.height - Q * k, h && (O *= -1), f !== 0 && !S.showLabelBackdrop && (D += k / 2 * Math.sin(f))) : (v = C, O = (1 - Q) * k / 2);
7446
+ a ? (D = C, y === "inner" && (w === m - 1 ? xe = this.options.reverse ? "left" : "right" : w === 0 ? xe = this.options.reverse ? "right" : "left" : xe = "center"), n === "top" ? A === "near" || f !== 0 ? O = -Q * k + k / 2 : A === "center" ? O = -gt.highest.height / 2 - N * k + k : O = -gt.highest.height + k / 2 : A === "near" || f !== 0 ? O = k / 2 : A === "center" ? O = gt.highest.height / 2 - N * k : O = gt.highest.height - Q * k, h && (O *= -1), f !== 0 && !S.showLabelBackdrop && (D += k / 2 * Math.sin(f))) : (v = C, O = (1 - Q) * k / 2);
7455
7447
  let gi;
7456
7448
  if (S.showLabelBackdrop) {
7457
7449
  const Ge = at(S.backdropPadding), ze = gt.heights[w], se = gt.widths[w];
@@ -7513,10 +7505,10 @@ class De extends xt {
7513
7505
  }
7514
7506
  _getYAxisLabelAlignment(t) {
7515
7507
  const { position: e, ticks: { crossAlign: s, mirror: n, padding: o } } = this.options, a = this._getLabelSizes(), r = t + o, l = a.widest.width;
7516
- let c, A;
7517
- return e === "left" ? n ? (A = this.right + o, s === "near" ? c = "left" : s === "center" ? (c = "center", A += l / 2) : (c = "right", A += l)) : (A = this.right - r, s === "near" ? c = "right" : s === "center" ? (c = "center", A -= l / 2) : (c = "left", A = this.left)) : e === "right" ? n ? (A = this.left + o, s === "near" ? c = "right" : s === "center" ? (c = "center", A -= l / 2) : (c = "left", A -= l)) : (A = this.left + r, s === "near" ? c = "left" : s === "center" ? (c = "center", A += l / 2) : (c = "right", A = this.right)) : c = "right", {
7518
- textAlign: c,
7519
- x: A
7508
+ let A, c;
7509
+ return e === "left" ? n ? (c = this.right + o, s === "near" ? A = "left" : s === "center" ? (A = "center", c += l / 2) : (A = "right", c += l)) : (c = this.right - r, s === "near" ? A = "right" : s === "center" ? (A = "center", c -= l / 2) : (A = "left", c = this.left)) : e === "right" ? n ? (c = this.left + o, s === "near" ? A = "right" : s === "center" ? (A = "center", c -= l / 2) : (A = "left", c -= l)) : (c = this.left + r, s === "near" ? A = "left" : s === "center" ? (A = "center", c += l / 2) : (A = "right", c = this.right)) : A = "right", {
7510
+ textAlign: A,
7511
+ x: c
7520
7512
  };
7521
7513
  }
7522
7514
  _computeLabelArea() {
@@ -7552,8 +7544,8 @@ class De extends xt {
7552
7544
  drawGrid(t) {
7553
7545
  const e = this.options.grid, s = this.ctx, n = this._gridLineItems || (this._gridLineItems = this._computeGridLineItems(t));
7554
7546
  let o, a;
7555
- const r = (l, c, A) => {
7556
- !A.width || !A.color || (s.save(), s.lineWidth = A.width, s.strokeStyle = A.color, s.setLineDash(A.borderDash || []), s.lineDashOffset = A.borderDashOffset, s.beginPath(), s.moveTo(l.x, l.y), s.lineTo(c.x, c.y), s.stroke(), s.restore());
7547
+ const r = (l, A, c) => {
7548
+ !c.width || !c.color || (s.save(), s.lineWidth = c.width, s.strokeStyle = c.color, s.setLineDash(c.borderDash || []), s.lineDashOffset = c.borderDashOffset, s.beginPath(), s.moveTo(l.x, l.y), s.lineTo(A.x, A.y), s.stroke(), s.restore());
7557
7549
  };
7558
7550
  if (e.display)
7559
7551
  for (o = 0, a = n.length; o < a; ++o) {
@@ -7583,8 +7575,8 @@ class De extends xt {
7583
7575
  if (!a)
7584
7576
  return;
7585
7577
  const r = n.setContext(this.getContext(0)).lineWidth, l = this._borderValue;
7586
- let c, A, h, d;
7587
- this.isHorizontal() ? (c = ae(t, this.left, a) - a / 2, A = ae(t, this.right, r) + r / 2, h = d = l) : (h = ae(t, this.top, a) - a / 2, d = ae(t, this.bottom, r) + r / 2, c = A = l), e.save(), e.lineWidth = o.width, e.strokeStyle = o.color, e.beginPath(), e.moveTo(c, h), e.lineTo(A, d), e.stroke(), e.restore();
7578
+ let A, c, h, d;
7579
+ this.isHorizontal() ? (A = ae(t, this.left, a) - a / 2, c = ae(t, this.right, r) + r / 2, h = d = l) : (h = ae(t, this.top, a) - a / 2, d = ae(t, this.bottom, r) + r / 2, A = c = l), e.save(), e.lineWidth = o.width, e.strokeStyle = o.color, e.beginPath(), e.moveTo(A, h), e.lineTo(c, d), e.stroke(), e.restore();
7588
7580
  }
7589
7581
  drawLabels(t) {
7590
7582
  if (!this.options.ticks.display)
@@ -7593,8 +7585,8 @@ class De extends xt {
7593
7585
  n && Ji(s, n);
7594
7586
  const o = this.getLabelItems(t);
7595
7587
  for (const a of o) {
7596
- const r = a.options, l = a.font, c = a.label, A = a.textOffset;
7597
- fe(s, c, 0, A, l, r);
7588
+ const r = a.options, l = a.font, A = a.label, c = a.textOffset;
7589
+ fe(s, A, 0, c, l, r);
7598
7590
  }
7599
7591
  n && qi(s);
7600
7592
  }
@@ -7605,7 +7597,7 @@ class De extends xt {
7605
7597
  const o = _(s.font), a = at(s.padding), r = s.align;
7606
7598
  let l = o.lineHeight / 2;
7607
7599
  e === "bottom" || e === "center" || P(e) ? (l += a.bottom, j(s.text) && (l += o.lineHeight * (s.text.length - 1))) : l += a.top;
7608
- const { titleX: c, titleY: A, maxWidth: h, rotation: d } = Yh(this, l, e, r);
7600
+ const { titleX: A, titleY: c, maxWidth: h, rotation: d } = Yh(this, l, e, r);
7609
7601
  fe(t, s.text, 0, 0, o, {
7610
7602
  color: s.color,
7611
7603
  maxWidth: h,
@@ -7613,8 +7605,8 @@ class De extends xt {
7613
7605
  textAlign: Gh(r, e, n),
7614
7606
  textBaseline: "middle",
7615
7607
  translation: [
7616
- c,
7617
- A
7608
+ A,
7609
+ c
7618
7610
  ]
7619
7611
  });
7620
7612
  }
@@ -7853,13 +7845,13 @@ function Qh(i, t) {
7853
7845
  function Ph(i, { plugins: t, localIds: e }, s, n) {
7854
7846
  const o = [], a = i.getContext();
7855
7847
  for (const r of t) {
7856
- const l = r.id, c = Qh(s[l], n);
7857
- c !== null && o.push({
7848
+ const l = r.id, A = Qh(s[l], n);
7849
+ A !== null && o.push({
7858
7850
  plugin: r,
7859
7851
  options: Oh(i.config, {
7860
7852
  plugin: r,
7861
7853
  local: e[l]
7862
- }, c, a)
7854
+ }, A, a)
7863
7855
  });
7864
7856
  }
7865
7857
  return o;
@@ -7929,25 +7921,25 @@ function Rh(i, t) {
7929
7921
  return console.error(`Invalid scale configuration for scale: ${a}`);
7930
7922
  if (r._proxy)
7931
7923
  return console.warn(`Ignoring resolver passed as options for scale: ${a}`);
7932
- const l = Ms(a, r, Th(a, i), K.scales[r.type]), c = Lh(l, n), A = e.scales || {};
7924
+ const l = Ms(a, r, Th(a, i), K.scales[r.type]), A = Lh(l, n), c = e.scales || {};
7933
7925
  o[a] = Ue(/* @__PURE__ */ Object.create(null), [
7934
7926
  {
7935
7927
  axis: l
7936
7928
  },
7937
7929
  r,
7938
- A[l],
7939
- A[c]
7930
+ c[l],
7931
+ c[A]
7940
7932
  ]);
7941
7933
  }), i.data.datasets.forEach((a) => {
7942
- const r = a.type || i.type, l = a.indexAxis || bs(r, t), A = (ue[r] || {}).scales || {};
7943
- Object.keys(A).forEach((h) => {
7934
+ const r = a.type || i.type, l = a.indexAxis || bs(r, t), c = (ue[r] || {}).scales || {};
7935
+ Object.keys(c).forEach((h) => {
7944
7936
  const d = zh(h, l), g = a[d + "AxisID"] || d;
7945
7937
  o[g] = o[g] || /* @__PURE__ */ Object.create(null), Ue(o[g], [
7946
7938
  {
7947
7939
  axis: d
7948
7940
  },
7949
7941
  s[g],
7950
- A[h]
7942
+ c[h]
7951
7943
  ]);
7952
7944
  });
7953
7945
  }), Object.keys(o).forEach((a) => {
@@ -8061,11 +8053,11 @@ class Vh {
8061
8053
  if (r)
8062
8054
  return r;
8063
8055
  const l = /* @__PURE__ */ new Set();
8064
- e.forEach((A) => {
8065
- t && (l.add(t), A.forEach((h) => Ve(l, t, h))), A.forEach((h) => Ve(l, n, h)), A.forEach((h) => Ve(l, ue[o] || {}, h)), A.forEach((h) => Ve(l, K, h)), A.forEach((h) => Ve(l, ps, h));
8056
+ e.forEach((c) => {
8057
+ t && (l.add(t), c.forEach((h) => Ve(l, t, h))), c.forEach((h) => Ve(l, n, h)), c.forEach((h) => Ve(l, ue[o] || {}, h)), c.forEach((h) => Ve(l, K, h)), c.forEach((h) => Ve(l, ps, h));
8066
8058
  });
8067
- const c = Array.from(l);
8068
- return c.length === 0 && c.push(/* @__PURE__ */ Object.create(null)), Ya.has(e) && a.set(e, c), c;
8059
+ const A = Array.from(l);
8060
+ return A.length === 0 && A.push(/* @__PURE__ */ Object.create(null)), Ya.has(e) && a.set(e, A), A;
8069
8061
  }
8070
8062
  chartOptionScopes() {
8071
8063
  const { options: t, type: e } = this;
@@ -8089,11 +8081,11 @@ class Vh {
8089
8081
  let l = a;
8090
8082
  if (Fh(a, e)) {
8091
8083
  o.$shared = !1, s = $t(s) ? s() : s;
8092
- const c = this.createResolver(t, s, r);
8093
- l = ke(a, s, c);
8084
+ const A = this.createResolver(t, s, r);
8085
+ l = ke(a, s, A);
8094
8086
  }
8095
- for (const c of e)
8096
- o[c] = l[c];
8087
+ for (const A of e)
8088
+ o[A] = l[A];
8097
8089
  return o;
8098
8090
  }
8099
8091
  createResolver(t, e, s = [
@@ -8196,8 +8188,8 @@ class Lt {
8196
8188
  throw new Error("Canvas is already in use. Chart with ID '" + o.id + "' must be destroyed before the canvas with ID '" + o.canvas.id + "' can be reused.");
8197
8189
  const a = s.createResolver(s.chartOptionScopes(), this.getContext());
8198
8190
  this.platform = new (s.platform || dh(n))(), this.platform.updateConfig(s);
8199
- const r = this.platform.acquireContext(n, a.aspectRatio), l = r && r.canvas, c = l && l.height, A = l && l.width;
8200
- if (this.id = ql(), this.ctx = r, this.canvas = l, this.width = A, this.height = c, this._options = a, this._aspectRatio = this.aspectRatio, this._layers = [], this._metasets = [], this._stacks = void 0, this.boxes = [], this.currentDevicePixelRatio = void 0, this.chartArea = void 0, this._active = [], this._lastEvent = void 0, this._listeners = {}, this._responsiveListeners = void 0, this._sortedMetasets = [], this.scales = {}, this._plugins = new Eh(), this.$proxies = {}, this._hiddenIndices = {}, this.attached = !1, this._animationsDisabled = void 0, this.$context = void 0, this._doResize = gc((h) => this.update(h), a.resizeDelay || 0), this._dataChanges = [], Li[this.id] = this, !r || !l) {
8191
+ const r = this.platform.acquireContext(n, a.aspectRatio), l = r && r.canvas, A = l && l.height, c = l && l.width;
8192
+ if (this.id = ql(), this.ctx = r, this.canvas = l, this.width = c, this.height = A, this._options = a, this._aspectRatio = this.aspectRatio, this._layers = [], this._metasets = [], this._stacks = void 0, this.boxes = [], this.currentDevicePixelRatio = void 0, this.chartArea = void 0, this._active = [], this._lastEvent = void 0, this._listeners = {}, this._responsiveListeners = void 0, this._sortedMetasets = [], this.scales = {}, this._plugins = new Eh(), this.$proxies = {}, this._hiddenIndices = {}, this.attached = !1, this._animationsDisabled = void 0, this.$context = void 0, this._doResize = gA((h) => this.update(h), a.resizeDelay || 0), this._dataChanges = [], Li[this.id] = this, !r || !l) {
8201
8193
  console.error("Failed to create chart: can't acquire context from the given item");
8202
8194
  return;
8203
8195
  }
@@ -8256,23 +8248,23 @@ class Lt {
8256
8248
  const t = this.options, e = t.scales, s = this.scales, n = Object.keys(s).reduce((a, r) => (a[r] = !1, a), {});
8257
8249
  let o = [];
8258
8250
  e && (o = o.concat(Object.keys(e).map((a) => {
8259
- const r = e[a], l = Ms(a, r), c = l === "r", A = l === "x";
8251
+ const r = e[a], l = Ms(a, r), A = l === "r", c = l === "x";
8260
8252
  return {
8261
8253
  options: r,
8262
- dposition: c ? "chartArea" : A ? "bottom" : "left",
8263
- dtype: c ? "radialLinear" : A ? "category" : "linear"
8254
+ dposition: A ? "chartArea" : c ? "bottom" : "left",
8255
+ dtype: A ? "radialLinear" : c ? "category" : "linear"
8264
8256
  };
8265
8257
  }))), L(o, (a) => {
8266
- const r = a.options, l = r.id, c = Ms(l, r), A = E(r.type, a.dtype);
8267
- (r.position === void 0 || Xn(r.position, c) !== Xn(a.dposition)) && (r.position = a.dposition), n[l] = !0;
8258
+ const r = a.options, l = r.id, A = Ms(l, r), c = E(r.type, a.dtype);
8259
+ (r.position === void 0 || Xn(r.position, A) !== Xn(a.dposition)) && (r.position = a.dposition), n[l] = !0;
8268
8260
  let h = null;
8269
- if (l in s && s[l].type === A)
8261
+ if (l in s && s[l].type === c)
8270
8262
  h = s[l];
8271
8263
  else {
8272
- const d = It.getScale(A);
8264
+ const d = It.getScale(c);
8273
8265
  h = new d({
8274
8266
  id: l,
8275
- type: A,
8267
+ type: c,
8276
8268
  ctx: this.ctx,
8277
8269
  chart: this
8278
8270
  }), s[h.id] = h;
@@ -8309,10 +8301,10 @@ class Lt {
8309
8301
  if (a.type && a.type !== r && (this._destroyDatasetMeta(s), a = this.getDatasetMeta(s)), a.type = r, a.indexAxis = o.indexAxis || bs(r, this.options), a.order = o.order || 0, a.index = s, a.label = "" + o.label, a.visible = this.isDatasetVisible(s), a.controller)
8310
8302
  a.controller.updateIndex(s), a.controller.linkScales();
8311
8303
  else {
8312
- const l = It.getController(r), { datasetElementType: c, dataElementType: A } = K.datasets[r];
8304
+ const l = It.getController(r), { datasetElementType: A, dataElementType: c } = K.datasets[r];
8313
8305
  Object.assign(l, {
8314
- dataElementType: It.getElement(A),
8315
- datasetElementType: c && It.getElement(c)
8306
+ dataElementType: It.getElement(c),
8307
+ datasetElementType: A && It.getElement(A)
8316
8308
  }), a.controller = new l(this, s), t.push(a.controller);
8317
8309
  }
8318
8310
  }
@@ -8338,12 +8330,12 @@ class Lt {
8338
8330
  const o = this.buildOrUpdateControllers();
8339
8331
  this.notifyPlugins("beforeElementsUpdate");
8340
8332
  let a = 0;
8341
- for (let c = 0, A = this.data.datasets.length; c < A; c++) {
8342
- const { controller: h } = this.getDatasetMeta(c), d = !n && o.indexOf(h) === -1;
8333
+ for (let A = 0, c = this.data.datasets.length; A < c; A++) {
8334
+ const { controller: h } = this.getDatasetMeta(A), d = !n && o.indexOf(h) === -1;
8343
8335
  h.buildOrUpdateElements(d), a = Math.max(+h.getMaxOverflow(), a);
8344
8336
  }
8345
- a = this._minPadding = s.layout.autoPadding ? a : 0, this._updateLayout(a), n || L(o, (c) => {
8346
- c.reset();
8337
+ a = this._minPadding = s.layout.autoPadding ? a : 0, this._updateLayout(a), n || L(o, (A) => {
8338
+ A.reset();
8347
8339
  }), this._updateDatasets(t), this.notifyPlugins("afterUpdate", {
8348
8340
  mode: t
8349
8341
  }), this._layers.sort(Jn("z", "_idx"));
@@ -8482,7 +8474,7 @@ class Lt {
8482
8474
  return jt(t, this.chartArea, this._minPadding);
8483
8475
  }
8484
8476
  getElementsAtEventForMode(t, e, s, n) {
8485
- const o = WA.modes[e];
8477
+ const o = Wc.modes[e];
8486
8478
  return typeof o == "function" ? o(this, t, s, n) : [];
8487
8479
  }
8488
8480
  getDatasetMeta(t) {
@@ -8571,12 +8563,12 @@ class Lt {
8571
8563
  }
8572
8564
  bindResponsiveEvents() {
8573
8565
  this._responsiveListeners || (this._responsiveListeners = {});
8574
- const t = this._responsiveListeners, e = this.platform, s = (l, c) => {
8575
- e.addEventListener(this, l, c), t[l] = c;
8576
- }, n = (l, c) => {
8577
- t[l] && (e.removeEventListener(this, l, c), delete t[l]);
8578
- }, o = (l, c) => {
8579
- this.canvas && this.resize(l, c);
8566
+ const t = this._responsiveListeners, e = this.platform, s = (l, A) => {
8567
+ e.addEventListener(this, l, A), t[l] = A;
8568
+ }, n = (l, A) => {
8569
+ t[l] && (e.removeEventListener(this, l, A), delete t[l]);
8570
+ }, o = (l, A) => {
8571
+ this.canvas && this.resize(l, A);
8580
8572
  };
8581
8573
  let a;
8582
8574
  const r = () => {
@@ -8598,8 +8590,8 @@ class Lt {
8598
8590
  let o, a, r, l;
8599
8591
  for (e === "dataset" && (o = this.getDatasetMeta(t[0].datasetIndex), o.controller["_" + n + "DatasetHoverStyle"]()), r = 0, l = t.length; r < l; ++r) {
8600
8592
  a = t[r];
8601
- const c = a && this.getDatasetMeta(a.datasetIndex).controller;
8602
- c && c[n + "HoverStyle"](a.element, a.datasetIndex, a.index);
8593
+ const A = a && this.getDatasetMeta(a.datasetIndex).controller;
8594
+ A && A[n + "HoverStyle"](a.element, a.datasetIndex, a.index);
8603
8595
  }
8604
8596
  }
8605
8597
  getActiveElements() {
@@ -8625,7 +8617,7 @@ class Lt {
8625
8617
  return this._plugins._cache.filter((e) => e.plugin.id === t).length === 1;
8626
8618
  }
8627
8619
  _updateHoverStyles(t, e, s) {
8628
- const n = this.options.hover, o = (l, c) => l.filter((A) => !c.some((h) => A.datasetIndex === h.datasetIndex && A.index === h.index)), a = o(e, t), r = s ? t : o(t, e);
8620
+ const n = this.options.hover, o = (l, A) => l.filter((c) => !A.some((h) => c.datasetIndex === h.datasetIndex && c.index === h.index)), a = o(e, t), r = s ? t : o(t, e);
8629
8621
  a.length && this.updateHoverStyle(a, n.mode, !1), r.length && n.mode && this.updateHoverStyle(r, n.mode, !0);
8630
8622
  }
8631
8623
  _eventHandler(t, e) {
@@ -8641,7 +8633,7 @@ class Lt {
8641
8633
  return s.cancelable = !1, this.notifyPlugins("afterEvent", s, n), (o || s.changed) && this.render(), this;
8642
8634
  }
8643
8635
  _handleEvent(t, e, s) {
8644
- const { _active: n = [], options: o } = this, a = e, r = this._getActiveElements(t, n, s, a), l = sc(t), c = Uh(t, this._lastEvent, s, l);
8636
+ const { _active: n = [], options: o } = this, a = e, r = this._getActiveElements(t, n, s, a), l = sA(t), A = Uh(t, this._lastEvent, s, l);
8645
8637
  s && (this._lastEvent = null, R(o.onHover, [
8646
8638
  t,
8647
8639
  r,
@@ -8651,8 +8643,8 @@ class Lt {
8651
8643
  r,
8652
8644
  this
8653
8645
  ], this));
8654
- const A = !ji(r, n);
8655
- return (A || e) && (this._active = r, this._updateHoverStyles(r, n, e)), this._lastEvent = c, A;
8646
+ const c = !ji(r, n);
8647
+ return (c || e) && (this._active = r, this._updateHoverStyles(r, n, e)), this._lastEvent = A, c;
8656
8648
  }
8657
8649
  _getActiveElements(t, e, s, n) {
8658
8650
  if (t.type === "mouseout")
@@ -8669,8 +8661,8 @@ function $n() {
8669
8661
  }
8670
8662
  function Jh(i, t, e) {
8671
8663
  const { startAngle: s, pixelMargin: n, x: o, y: a, outerRadius: r, innerRadius: l } = t;
8672
- let c = n / r;
8673
- i.beginPath(), i.arc(o, a, r, s - c, e + c), l > n ? (c = n / l, i.arc(o, a, l, e + c, s - c, !0)) : i.arc(o, a, n, e + X, s - X), i.closePath(), i.clip();
8664
+ let A = n / r;
8665
+ i.beginPath(), i.arc(o, a, r, s - A, e + A), l > n ? (A = n / l, i.arc(o, a, l, e + A, s - A, !0)) : i.arc(o, a, n, e + X, s - X), i.closePath(), i.clip();
8674
8666
  }
8675
8667
  function qh(i) {
8676
8668
  return Rs(i, [
@@ -8682,8 +8674,8 @@ function qh(i) {
8682
8674
  }
8683
8675
  function _h(i, t, e, s) {
8684
8676
  const n = qh(i.options.borderRadius), o = (e - t) / 2, a = Math.min(o, s * t / 2), r = (l) => {
8685
- const c = (e - Math.min(o, l)) * s / 2;
8686
- return tt(l, 0, Math.min(o, c));
8677
+ const A = (e - Math.min(o, l)) * s / 2;
8678
+ return tt(l, 0, Math.min(o, A));
8687
8679
  };
8688
8680
  return {
8689
8681
  outerStart: r(n.outerStart),
@@ -8699,11 +8691,11 @@ function ye(i, t, e, s) {
8699
8691
  };
8700
8692
  }
8701
8693
  function Zi(i, t, e, s, n, o) {
8702
- const { x: a, y: r, startAngle: l, pixelMargin: c, innerRadius: A } = t, h = Math.max(t.outerRadius + s + e - c, 0), d = A > 0 ? A + s + e + c : 0;
8694
+ const { x: a, y: r, startAngle: l, pixelMargin: A, innerRadius: c } = t, h = Math.max(t.outerRadius + s + e - A, 0), d = c > 0 ? c + s + e + A : 0;
8703
8695
  let g = 0;
8704
8696
  const u = n - l;
8705
8697
  if (s) {
8706
- const S = A > 0 ? A - s : 0, N = h > 0 ? h - s : 0, U = (S + N) / 2, mt = U !== 0 ? u * U / (U + s) : u;
8698
+ const S = c > 0 ? c - s : 0, N = h > 0 ? h - s : 0, U = (S + N) / 2, mt = U !== 0 ? u * U / (U + s) : u;
8707
8699
  g = (u - mt) / 2;
8708
8700
  }
8709
8701
  const f = Math.max(1e-3, u * h - e / H) / h, p = (u - f) / 2, w = l + p + g, m = n - p - g, { outerStart: G, outerEnd: x, innerStart: D, innerEnd: v } = _h(t, d, h, m - w), y = h - G, C = h - x, I = w + G / y, k = m - x / C, Q = d + D, O = d + v, it = w + D / Q, gt = m - v / O;
@@ -8742,17 +8734,17 @@ function $h(i, t, e, s, n) {
8742
8734
  let l = t.endAngle;
8743
8735
  if (o) {
8744
8736
  Zi(i, t, e, s, l, n);
8745
- for (let c = 0; c < o; ++c)
8737
+ for (let A = 0; A < o; ++A)
8746
8738
  i.fill();
8747
8739
  isNaN(r) || (l = a + (r % V || V));
8748
8740
  }
8749
8741
  return Zi(i, t, e, s, l, n), i.fill(), l;
8750
8742
  }
8751
8743
  function td(i, t, e, s, n) {
8752
- const { fullCircles: o, startAngle: a, circumference: r, options: l } = t, { borderWidth: c, borderJoinStyle: A, borderDash: h, borderDashOffset: d } = l, g = l.borderAlign === "inner";
8753
- if (!c)
8744
+ const { fullCircles: o, startAngle: a, circumference: r, options: l } = t, { borderWidth: A, borderJoinStyle: c, borderDash: h, borderDashOffset: d } = l, g = l.borderAlign === "inner";
8745
+ if (!A)
8754
8746
  return;
8755
- i.setLineDash(h || []), i.lineDashOffset = d, g ? (i.lineWidth = c * 2, i.lineJoin = A || "round") : (i.lineWidth = c, i.lineJoin = A || "bevel");
8747
+ i.setLineDash(h || []), i.lineDashOffset = d, g ? (i.lineWidth = A * 2, i.lineJoin = c || "round") : (i.lineWidth = A, i.lineJoin = c || "bevel");
8756
8748
  let u = t.endAngle;
8757
8749
  if (o) {
8758
8750
  Zi(i, t, e, s, u, n);
@@ -8781,13 +8773,13 @@ class We extends xt {
8781
8773
  ], n), { angle: a, distance: r } = Uo(o, {
8782
8774
  x: e,
8783
8775
  y: s
8784
- }), { startAngle: l, endAngle: c, innerRadius: A, outerRadius: h, circumference: d } = this.getProps([
8776
+ }), { startAngle: l, endAngle: A, innerRadius: c, outerRadius: h, circumference: d } = this.getProps([
8785
8777
  "startAngle",
8786
8778
  "endAngle",
8787
8779
  "innerRadius",
8788
8780
  "outerRadius",
8789
8781
  "circumference"
8790
- ], n), g = (this.options.spacing + this.options.borderWidth) / 2, f = E(d, c - l) >= V || ni(a, l, c), p = Tt(r, A + g, h + g);
8782
+ ], n), g = (this.options.spacing + this.options.borderWidth) / 2, f = E(d, A - l) >= V || ni(a, l, A), p = Tt(r, c + g, h + g);
8791
8783
  return f && p;
8792
8784
  }
8793
8785
  getCenterPoint(e) {
@@ -8798,7 +8790,7 @@ class We extends xt {
8798
8790
  "endAngle",
8799
8791
  "innerRadius",
8800
8792
  "outerRadius"
8801
- ], e), { offset: c, spacing: A } = this.options, h = (o + a) / 2, d = (r + l + A + c) / 2;
8793
+ ], e), { offset: A, spacing: c } = this.options, h = (o + a) / 2, d = (r + l + c + A) / 2;
8802
8794
  return {
8803
8795
  x: s + Math.cos(h) * d,
8804
8796
  y: n + Math.sin(h) * d
@@ -8814,8 +8806,8 @@ class We extends xt {
8814
8806
  e.save();
8815
8807
  const l = (this.startAngle + this.endAngle) / 2;
8816
8808
  e.translate(Math.cos(l) * o, Math.sin(l) * o);
8817
- const c = 1 - Math.sin(Math.min(H, n || 0)), A = o * c;
8818
- e.fillStyle = s.backgroundColor, e.strokeStyle = s.borderColor, $h(e, this, A, a, r), td(e, this, A, a, r), e.restore();
8809
+ const A = 1 - Math.sin(Math.min(H, n || 0)), c = o * A;
8810
+ e.fillStyle = s.backgroundColor, e.strokeStyle = s.borderColor, $h(e, this, c, a, r), td(e, this, c, a, r), e.restore();
8819
8811
  }
8820
8812
  }
8821
8813
  Y(We, "id", "arc"), Y(We, "defaults", {
@@ -8843,35 +8835,35 @@ function ed(i, t, e) {
8843
8835
  i.lineTo(e.x, e.y);
8844
8836
  }
8845
8837
  function id(i) {
8846
- return i.stepped ? Yc : i.tension || i.cubicInterpolationMode === "monotone" ? vc : ed;
8838
+ return i.stepped ? YA : i.tension || i.cubicInterpolationMode === "monotone" ? vA : ed;
8847
8839
  }
8848
8840
  function Ca(i, t, e = {}) {
8849
- const s = i.length, { start: n = 0, end: o = s - 1 } = e, { start: a, end: r } = t, l = Math.max(n, a), c = Math.min(o, r), A = n < a && o < a || n > r && o > r;
8841
+ const s = i.length, { start: n = 0, end: o = s - 1 } = e, { start: a, end: r } = t, l = Math.max(n, a), A = Math.min(o, r), c = n < a && o < a || n > r && o > r;
8850
8842
  return {
8851
8843
  count: s,
8852
8844
  start: l,
8853
8845
  loop: t.loop,
8854
- ilen: c < l && !A ? s + c - l : c - l
8846
+ ilen: A < l && !c ? s + A - l : A - l
8855
8847
  };
8856
8848
  }
8857
8849
  function sd(i, t, e, s) {
8858
- const { points: n, options: o } = t, { count: a, start: r, loop: l, ilen: c } = Ca(n, e, s), A = id(o);
8850
+ const { points: n, options: o } = t, { count: a, start: r, loop: l, ilen: A } = Ca(n, e, s), c = id(o);
8859
8851
  let { move: h = !0, reverse: d } = s || {}, g, u, f;
8860
- for (g = 0; g <= c; ++g)
8861
- u = n[(r + (d ? c - g : g)) % a], !u.skip && (h ? (i.moveTo(u.x, u.y), h = !1) : A(i, f, u, d, o.stepped), f = u);
8862
- return l && (u = n[(r + (d ? c : 0)) % a], A(i, f, u, d, o.stepped)), !!l;
8852
+ for (g = 0; g <= A; ++g)
8853
+ u = n[(r + (d ? A - g : g)) % a], !u.skip && (h ? (i.moveTo(u.x, u.y), h = !1) : c(i, f, u, d, o.stepped), f = u);
8854
+ return l && (u = n[(r + (d ? A : 0)) % a], c(i, f, u, d, o.stepped)), !!l;
8863
8855
  }
8864
8856
  function nd(i, t, e, s) {
8865
- const n = t.points, { count: o, start: a, ilen: r } = Ca(n, e, s), { move: l = !0, reverse: c } = s || {};
8866
- let A = 0, h = 0, d, g, u, f, p, w;
8867
- const m = (x) => (a + (c ? r - x : x)) % o, G = () => {
8868
- f !== p && (i.lineTo(A, p), i.lineTo(A, f), i.lineTo(A, w));
8857
+ const n = t.points, { count: o, start: a, ilen: r } = Ca(n, e, s), { move: l = !0, reverse: A } = s || {};
8858
+ let c = 0, h = 0, d, g, u, f, p, w;
8859
+ const m = (x) => (a + (A ? r - x : x)) % o, G = () => {
8860
+ f !== p && (i.lineTo(c, p), i.lineTo(c, f), i.lineTo(c, w));
8869
8861
  };
8870
8862
  for (l && (g = n[m(0)], i.moveTo(g.x, g.y)), d = 0; d <= r; ++d) {
8871
8863
  if (g = n[m(d)], g.skip)
8872
8864
  continue;
8873
8865
  const x = g.x, D = g.y, v = x | 0;
8874
- v === u ? (D < f ? f = D : D > p && (p = D), A = (h * A + x) / ++h) : (G(), i.lineTo(x, D), u = v, h = 0, f = p = D), w = D;
8866
+ v === u ? (D < f ? f = D : D > p && (p = D), c = (h * c + x) / ++h) : (G(), i.lineTo(x, D), u = v, h = 0, f = p = D), w = D;
8875
8867
  }
8876
8868
  G();
8877
8869
  }
@@ -8880,7 +8872,7 @@ function Ds(i) {
8880
8872
  return !i._decimated && !i._loop && !t.tension && t.cubicInterpolationMode !== "monotone" && !t.stepped && !e ? nd : sd;
8881
8873
  }
8882
8874
  function od(i) {
8883
- return i.stepped ? nA : i.tension || i.cubicInterpolationMode === "monotone" ? oA : Ae;
8875
+ return i.stepped ? nc : i.tension || i.cubicInterpolationMode === "monotone" ? oc : ce;
8884
8876
  }
8885
8877
  function ad(i, t, e, s) {
8886
8878
  let n = t._path;
@@ -8895,7 +8887,7 @@ function rd(i, t, e, s) {
8895
8887
  }) && i.closePath(), i.stroke();
8896
8888
  }
8897
8889
  const ld = typeof Path2D == "function";
8898
- function cd(i, t, e, s) {
8890
+ function Ad(i, t, e, s) {
8899
8891
  ld && !t.options.segment ? ad(i, t, e, s) : rd(i, t, e, s);
8900
8892
  }
8901
8893
  class Ut extends xt {
@@ -8906,7 +8898,7 @@ class Ut extends xt {
8906
8898
  const s = this.options;
8907
8899
  if ((s.tension || s.cubicInterpolationMode === "monotone") && !s.stepped && !this._pointsUpdated) {
8908
8900
  const n = s.spanGaps ? this._loop : this._fullLoop;
8909
- Jc(this._points, s, t, n, e), this._pointsUpdated = !0;
8901
+ JA(this._points, s, t, n, e), this._pointsUpdated = !0;
8910
8902
  }
8911
8903
  }
8912
8904
  set points(t) {
@@ -8916,7 +8908,7 @@ class Ut extends xt {
8916
8908
  return this._points;
8917
8909
  }
8918
8910
  get segments() {
8919
- return this._segments || (this._segments = hA(this, this.options.segment));
8911
+ return this._segments || (this._segments = hc(this, this.options.segment));
8920
8912
  }
8921
8913
  first() {
8922
8914
  const t = this.segments, e = this.points;
@@ -8935,9 +8927,9 @@ class Ut extends xt {
8935
8927
  if (!a.length)
8936
8928
  return;
8937
8929
  const r = [], l = od(s);
8938
- let c, A;
8939
- for (c = 0, A = a.length; c < A; ++c) {
8940
- const { start: h, end: d } = a[c], g = o[h], u = o[d];
8930
+ let A, c;
8931
+ for (A = 0, c = a.length; A < c; ++A) {
8932
+ const { start: h, end: d } = a[A], g = o[h], u = o[d];
8941
8933
  if (g === u) {
8942
8934
  r.push(g);
8943
8935
  continue;
@@ -8963,7 +8955,7 @@ class Ut extends xt {
8963
8955
  }
8964
8956
  draw(t, e, s, n) {
8965
8957
  const o = this.options || {};
8966
- (this.points || []).length && o.borderWidth && (t.save(), cd(t, this, s, n), t.restore()), this.animated && (this._pointsUpdated = !1, this._path = void 0);
8958
+ (this.points || []).length && o.borderWidth && (t.save(), Ad(t, this, s, n), t.restore()), this.animated && (this._pointsUpdated = !1, this._path = void 0);
8967
8959
  }
8968
8960
  }
8969
8961
  Y(Ut, "id", "line"), Y(Ut, "defaults", {
@@ -9064,18 +9056,18 @@ function Ia(i, t) {
9064
9056
  "width",
9065
9057
  "height"
9066
9058
  ], t);
9067
- let r, l, c, A, h;
9068
- return i.horizontal ? (h = a / 2, r = Math.min(e, n), l = Math.max(e, n), c = s - h, A = s + h) : (h = o / 2, r = e - h, l = e + h, c = Math.min(s, n), A = Math.max(s, n)), {
9059
+ let r, l, A, c, h;
9060
+ return i.horizontal ? (h = a / 2, r = Math.min(e, n), l = Math.max(e, n), A = s - h, c = s + h) : (h = o / 2, r = e - h, l = e + h, A = Math.min(s, n), c = Math.max(s, n)), {
9069
9061
  left: r,
9070
- top: c,
9062
+ top: A,
9071
9063
  right: l,
9072
- bottom: A
9064
+ bottom: c
9073
9065
  };
9074
9066
  }
9075
9067
  function Xt(i, t, e, s) {
9076
9068
  return i ? 0 : tt(t, e, s);
9077
9069
  }
9078
- function Ad(i, t, e) {
9070
+ function cd(i, t, e) {
9079
9071
  const s = i.options.borderWidth, n = i.borderSkipped, o = sa(s);
9080
9072
  return {
9081
9073
  t: Xt(n.top, o.top, 0, e),
@@ -9096,7 +9088,7 @@ function hd(i, t, e) {
9096
9088
  };
9097
9089
  }
9098
9090
  function dd(i) {
9099
- const t = Ia(i), e = t.right - t.left, s = t.bottom - t.top, n = Ad(i, e / 2, s / 2), o = hd(i, e / 2, s / 2);
9091
+ const t = Ia(i), e = t.right - t.left, s = t.bottom - t.top, n = cd(i, e / 2, s / 2), o = hd(i, e / 2, s / 2);
9100
9092
  return {
9101
9093
  outer: {
9102
9094
  x: t.left,
@@ -9119,7 +9111,7 @@ function dd(i) {
9119
9111
  }
9120
9112
  };
9121
9113
  }
9122
- function As(i, t, e, s) {
9114
+ function cs(i, t, e, s) {
9123
9115
  const n = t === null, o = e === null, r = i && !(n && o) && Ia(i, s);
9124
9116
  return r && (n || Tt(t, r.left, r.right)) && (o || Tt(e, r.top, r.bottom));
9125
9117
  }
@@ -9148,13 +9140,13 @@ class Ti extends xt {
9148
9140
  t.save(), (a.w !== o.w || a.h !== o.h) && (t.beginPath(), r(t, hs(a, e, o)), t.clip(), r(t, hs(o, -e, a)), t.fillStyle = s, t.fill("evenodd")), t.beginPath(), r(t, hs(o, e)), t.fillStyle = n, t.fill(), t.restore();
9149
9141
  }
9150
9142
  inRange(t, e, s) {
9151
- return As(this, t, e, s);
9143
+ return cs(this, t, e, s);
9152
9144
  }
9153
9145
  inXRange(t, e) {
9154
- return As(this, t, null, e);
9146
+ return cs(this, t, null, e);
9155
9147
  }
9156
9148
  inYRange(t, e) {
9157
- return As(this, null, t, e);
9149
+ return cs(this, null, t, e);
9158
9150
  }
9159
9151
  getCenterPoint(t) {
9160
9152
  const { x: e, y: s, base: n, horizontal: o } = this.getProps([
@@ -9253,29 +9245,29 @@ function Bd(i, t, e, s, n) {
9253
9245
  return i.slice(t, t + e);
9254
9246
  const a = [], r = (e - 2) / (o - 2);
9255
9247
  let l = 0;
9256
- const c = t + e - 1;
9257
- let A = t, h, d, g, u, f;
9258
- for (a[l++] = i[A], h = 0; h < o - 2; h++) {
9248
+ const A = t + e - 1;
9249
+ let c = t, h, d, g, u, f;
9250
+ for (a[l++] = i[c], h = 0; h < o - 2; h++) {
9259
9251
  let p = 0, w = 0, m;
9260
9252
  const G = Math.floor((h + 1) * r) + 1 + t, x = Math.min(Math.floor((h + 2) * r) + 1, e) + t, D = x - G;
9261
9253
  for (m = G; m < x; m++)
9262
9254
  p += i[m].x, w += i[m].y;
9263
9255
  p /= D, w /= D;
9264
- const v = Math.floor(h * r) + 1 + t, y = Math.min(Math.floor((h + 1) * r) + 1, e) + t, { x: C, y: I } = i[A];
9256
+ const v = Math.floor(h * r) + 1 + t, y = Math.min(Math.floor((h + 1) * r) + 1, e) + t, { x: C, y: I } = i[c];
9265
9257
  for (g = u = -1, m = v; m < y; m++)
9266
9258
  u = 0.5 * Math.abs((C - p) * (i[m].y - I) - (C - i[m].x) * (w - I)), u > g && (g = u, d = i[m], f = m);
9267
- a[l++] = d, A = f;
9259
+ a[l++] = d, c = f;
9268
9260
  }
9269
- return a[l++] = i[c], a;
9261
+ return a[l++] = i[A], a;
9270
9262
  }
9271
9263
  function xd(i, t, e, s) {
9272
- let n = 0, o = 0, a, r, l, c, A, h, d, g, u, f;
9264
+ let n = 0, o = 0, a, r, l, A, c, h, d, g, u, f;
9273
9265
  const p = [], w = t + e - 1, m = i[t].x, x = i[w].x - m;
9274
9266
  for (a = t; a < t + e; ++a) {
9275
- r = i[a], l = (r.x - m) / x * s, c = r.y;
9267
+ r = i[a], l = (r.x - m) / x * s, A = r.y;
9276
9268
  const D = l | 0;
9277
- if (D === A)
9278
- c < u ? (u = c, h = a) : c > f && (f = c, d = a), n = (o * n + r.x) / ++o;
9269
+ if (D === c)
9270
+ A < u ? (u = A, h = a) : A > f && (f = A, d = a), n = (o * n + r.x) / ++o;
9279
9271
  else {
9280
9272
  const v = a - 1;
9281
9273
  if (!z(h) && !z(d)) {
@@ -9288,7 +9280,7 @@ function xd(i, t, e, s) {
9288
9280
  x: n
9289
9281
  });
9290
9282
  }
9291
- a > 0 && v !== g && p.push(i[v]), p.push(r), A = D, o = 0, u = f = c, h = d = g = a;
9283
+ a > 0 && v !== g && p.push(i[v]), p.push(r), c = D, o = 0, u = f = A, h = d = g = a;
9292
9284
  }
9293
9285
  }
9294
9286
  return p;
@@ -9312,8 +9304,8 @@ function so(i) {
9312
9304
  function Gd(i, t) {
9313
9305
  const e = t.length;
9314
9306
  let s = 0, n;
9315
- const { iScale: o } = i, { min: a, max: r, minDefined: l, maxDefined: c } = o.getUserBounds();
9316
- return l && (s = tt(Rt(t, o.axis, a).lo, 0, e - 1)), c ? n = tt(Rt(t, o.axis, r).hi + 1, s, e) - s : n = e - s, {
9307
+ const { iScale: o } = i, { min: a, max: r, minDefined: l, maxDefined: A } = o.getUserBounds();
9308
+ return l && (s = tt(Rt(t, o.axis, a).lo, 0, e - 1)), A ? n = tt(Rt(t, o.axis, r).hi + 1, s, e) - s : n = e - s, {
9317
9309
  start: s,
9318
9310
  count: n
9319
9311
  };
@@ -9331,22 +9323,22 @@ var Yd = {
9331
9323
  }
9332
9324
  const s = i.width;
9333
9325
  i.data.datasets.forEach((n, o) => {
9334
- const { _data: a, indexAxis: r } = n, l = i.getDatasetMeta(o), c = a || n.data;
9326
+ const { _data: a, indexAxis: r } = n, l = i.getDatasetMeta(o), A = a || n.data;
9335
9327
  if (Fe([
9336
9328
  r,
9337
9329
  i.options.indexAxis
9338
9330
  ]) === "y" || !l.controller.supportsDecimation)
9339
9331
  return;
9340
- const A = i.scales[l.xAxisID];
9341
- if (A.type !== "linear" && A.type !== "time" || i.options.parsing)
9332
+ const c = i.scales[l.xAxisID];
9333
+ if (c.type !== "linear" && c.type !== "time" || i.options.parsing)
9342
9334
  return;
9343
- let { start: h, count: d } = Gd(l, c);
9335
+ let { start: h, count: d } = Gd(l, A);
9344
9336
  const g = e.threshold || 4 * s;
9345
9337
  if (d <= g) {
9346
9338
  Qa(n);
9347
9339
  return;
9348
9340
  }
9349
- z(a) && (n._data = c, delete n.data, Object.defineProperty(n, "data", {
9341
+ z(a) && (n._data = A, delete n.data, Object.defineProperty(n, "data", {
9350
9342
  configurable: !0,
9351
9343
  enumerable: !0,
9352
9344
  get: function() {
@@ -9359,10 +9351,10 @@ var Yd = {
9359
9351
  let u;
9360
9352
  switch (e.algorithm) {
9361
9353
  case "lttb":
9362
- u = Bd(c, h, d, s, e);
9354
+ u = Bd(A, h, d, s, e);
9363
9355
  break;
9364
9356
  case "min-max":
9365
- u = xd(c, h, d, s);
9357
+ u = xd(A, h, d, s);
9366
9358
  break;
9367
9359
  default:
9368
9360
  throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`);
@@ -9377,19 +9369,19 @@ var Yd = {
9377
9369
  function vd(i, t, e) {
9378
9370
  const s = i.segments, n = i.points, o = t.points, a = [];
9379
9371
  for (const r of s) {
9380
- let { start: l, end: c } = r;
9381
- c = Zs(l, c, n);
9382
- const A = xs(e, n[l], n[c], r.loop);
9372
+ let { start: l, end: A } = r;
9373
+ A = Zs(l, A, n);
9374
+ const c = xs(e, n[l], n[A], r.loop);
9383
9375
  if (!t.segments) {
9384
9376
  a.push({
9385
9377
  source: r,
9386
- target: A,
9378
+ target: c,
9387
9379
  start: n[l],
9388
- end: n[c]
9380
+ end: n[A]
9389
9381
  });
9390
9382
  continue;
9391
9383
  }
9392
- const h = ua(t, A);
9384
+ const h = ua(t, c);
9393
9385
  for (const d of h) {
9394
9386
  const g = xs(e, o[d.start], o[d.end], d.loop), u = ga(r, n, g);
9395
9387
  for (const f of u)
@@ -9397,10 +9389,10 @@ function vd(i, t, e) {
9397
9389
  source: f,
9398
9390
  target: d,
9399
9391
  start: {
9400
- [e]: no(A, g, "start", Math.max)
9392
+ [e]: no(c, g, "start", Math.max)
9401
9393
  },
9402
9394
  end: {
9403
- [e]: no(A, g, "end", Math.min)
9395
+ [e]: no(c, g, "end", Math.min)
9404
9396
  }
9405
9397
  });
9406
9398
  }
@@ -9421,19 +9413,19 @@ function yd(i, t) {
9421
9413
  const { x: e = null, y: s = null } = i || {}, n = t.points, o = [];
9422
9414
  return t.segments.forEach(({ start: a, end: r }) => {
9423
9415
  r = Zs(a, r, n);
9424
- const l = n[a], c = n[r];
9416
+ const l = n[a], A = n[r];
9425
9417
  s !== null ? (o.push({
9426
9418
  x: l.x,
9427
9419
  y: s
9428
9420
  }), o.push({
9429
- x: c.x,
9421
+ x: A.x,
9430
9422
  y: s
9431
9423
  })) : e !== null && (o.push({
9432
9424
  x: e,
9433
9425
  y: l.y
9434
9426
  }), o.push({
9435
9427
  x: e,
9436
- y: c.y
9428
+ y: A.y
9437
9429
  }));
9438
9430
  }), o;
9439
9431
  }
@@ -9517,9 +9509,9 @@ function Od(i) {
9517
9509
  y: t.bottom
9518
9510
  }, s));
9519
9511
  for (let l = 0; l < o.length; l++) {
9520
- const c = o[l];
9521
- for (let A = c.start; A <= c.end; A++)
9522
- Ld(n, a[A], r);
9512
+ const A = o[l];
9513
+ for (let c = A.start; c <= A.end; c++)
9514
+ Ld(n, a[c], r);
9523
9515
  }
9524
9516
  return new Ut({
9525
9517
  points: n,
@@ -9555,8 +9547,8 @@ function Sd(i, t, e) {
9555
9547
  return {};
9556
9548
  const n = s[e], o = i.segments, a = i.points;
9557
9549
  let r = !1, l = !1;
9558
- for (let c = 0; c < o.length; c++) {
9559
- const A = o[c], h = a[A.start][e], d = a[A.end][e];
9550
+ for (let A = 0; A < o.length; A++) {
9551
+ const c = o[A], h = a[c.start][e], d = a[c.end][e];
9560
9552
  if (Tt(n, h, d)) {
9561
9553
  r = n === h, l = n === d;
9562
9554
  break;
@@ -9632,11 +9624,11 @@ function Hd(i) {
9632
9624
  return r;
9633
9625
  }
9634
9626
  function ds(i, t, e) {
9635
- const s = Td(t), { line: n, scale: o, axis: a } = t, r = n.options, l = r.fill, c = r.backgroundColor, { above: A = c, below: h = c } = l || {};
9627
+ const s = Td(t), { line: n, scale: o, axis: a } = t, r = n.options, l = r.fill, A = r.backgroundColor, { above: c = A, below: h = A } = l || {};
9636
9628
  s && n.points.length && (Ji(i, e), Fd(i, {
9637
9629
  line: n,
9638
9630
  target: s,
9639
- above: A,
9631
+ above: c,
9640
9632
  below: h,
9641
9633
  area: e,
9642
9634
  scale: o,
@@ -9664,8 +9656,8 @@ function ao(i, t, e) {
9664
9656
  let o = !0, a = !1;
9665
9657
  i.beginPath();
9666
9658
  for (const r of s) {
9667
- const { start: l, end: c } = r, A = n[l], h = n[Zs(l, c, n)];
9668
- o ? (i.moveTo(A.x, A.y), o = !1) : (i.lineTo(A.x, e), i.lineTo(A.x, A.y)), a = !!t.pathSegment(i, r, {
9659
+ const { start: l, end: A } = r, c = n[l], h = n[Zs(l, A, n)];
9660
+ o ? (i.moveTo(c.x, c.y), o = !1) : (i.lineTo(c.x, e), i.lineTo(c.x, c.y)), a = !!t.pathSegment(i, r, {
9669
9661
  move: a
9670
9662
  }), a ? i.closePath() : i.lineTo(h.x, e);
9671
9663
  }
@@ -9673,18 +9665,18 @@ function ao(i, t, e) {
9673
9665
  }
9674
9666
  function ro(i, t) {
9675
9667
  const { line: e, target: s, property: n, color: o, scale: a } = t, r = vd(e, s, n);
9676
- for (const { source: l, target: c, start: A, end: h } of r) {
9668
+ for (const { source: l, target: A, start: c, end: h } of r) {
9677
9669
  const { style: { backgroundColor: d = o } = {} } = l, g = s !== !0;
9678
- i.save(), i.fillStyle = d, Nd(i, a, g && xs(n, A, h)), i.beginPath();
9670
+ i.save(), i.fillStyle = d, Nd(i, a, g && xs(n, c, h)), i.beginPath();
9679
9671
  const u = !!e.pathSegment(i, l);
9680
9672
  let f;
9681
9673
  if (g) {
9682
9674
  u ? i.closePath() : lo(i, s, h, n);
9683
- const p = !!s.pathSegment(i, c, {
9675
+ const p = !!s.pathSegment(i, A, {
9684
9676
  move: u,
9685
9677
  reverse: !0
9686
9678
  });
9687
- f = u && p, f || lo(i, s, A, n);
9679
+ f = u && p, f || lo(i, s, c, n);
9688
9680
  }
9689
9681
  i.closePath(), i.fill(f ? "evenodd" : "nonzero"), i.restore();
9690
9682
  }
@@ -9740,7 +9732,7 @@ var Wd = {
9740
9732
  drawTime: "beforeDatasetDraw"
9741
9733
  }
9742
9734
  };
9743
- const co = (i, t) => {
9735
+ const Ao = (i, t) => {
9744
9736
  let { boxHeight: e = t, boxWidth: s = t } = i;
9745
9737
  return i.usePointStyle && (e = Math.min(e, t), s = i.pointStyleWidth || Math.min(s, t)), {
9746
9738
  boxWidth: s,
@@ -9748,7 +9740,7 @@ const co = (i, t) => {
9748
9740
  itemHeight: Math.max(t, e)
9749
9741
  };
9750
9742
  }, Zd = (i, t) => i !== null && t !== null && i.datasetIndex === t.datasetIndex && i.index === t.index;
9751
- class Ao extends xt {
9743
+ class co extends xt {
9752
9744
  constructor(t) {
9753
9745
  super(), this._added = !1, this.legendHitBoxes = [], this._hoveredItem = null, this.doughnutMode = !1, this.chart = t.chart, this.options = t.options, this.ctx = t.ctx, this.legendItems = void 0, this.columnSizes = void 0, this.lineWidths = void 0, this.maxHeight = void 0, this.maxWidth = void 0, this.top = void 0, this.bottom = void 0, this.left = void 0, this.right = void 0, this.height = void 0, this.width = void 0, this._margins = void 0, this.position = void 0, this.weight = void 0, this.fullSize = void 0;
9754
9746
  }
@@ -9771,34 +9763,34 @@ class Ao extends xt {
9771
9763
  this.width = this.height = 0;
9772
9764
  return;
9773
9765
  }
9774
- const s = t.labels, n = _(s.font), o = n.size, a = this._computeTitleHeight(), { boxWidth: r, itemHeight: l } = co(s, o);
9775
- let c, A;
9776
- e.font = n.string, this.isHorizontal() ? (c = this.maxWidth, A = this._fitRows(a, o, r, l) + 10) : (A = this.maxHeight, c = this._fitCols(a, n, r, l) + 10), this.width = Math.min(c, t.maxWidth || this.maxWidth), this.height = Math.min(A, t.maxHeight || this.maxHeight);
9766
+ const s = t.labels, n = _(s.font), o = n.size, a = this._computeTitleHeight(), { boxWidth: r, itemHeight: l } = Ao(s, o);
9767
+ let A, c;
9768
+ e.font = n.string, this.isHorizontal() ? (A = this.maxWidth, c = this._fitRows(a, o, r, l) + 10) : (c = this.maxHeight, A = this._fitCols(a, n, r, l) + 10), this.width = Math.min(A, t.maxWidth || this.maxWidth), this.height = Math.min(c, t.maxHeight || this.maxHeight);
9777
9769
  }
9778
9770
  _fitRows(t, e, s, n) {
9779
- const { ctx: o, maxWidth: a, options: { labels: { padding: r } } } = this, l = this.legendHitBoxes = [], c = this.lineWidths = [
9771
+ const { ctx: o, maxWidth: a, options: { labels: { padding: r } } } = this, l = this.legendHitBoxes = [], A = this.lineWidths = [
9780
9772
  0
9781
- ], A = n + r;
9773
+ ], c = n + r;
9782
9774
  let h = t;
9783
9775
  o.textAlign = "left", o.textBaseline = "middle";
9784
- let d = -1, g = -A;
9776
+ let d = -1, g = -c;
9785
9777
  return this.legendItems.forEach((u, f) => {
9786
9778
  const p = s + e / 2 + o.measureText(u.text).width;
9787
- (f === 0 || c[c.length - 1] + p + 2 * r > a) && (h += A, c[c.length - (f > 0 ? 0 : 1)] = 0, g += A, d++), l[f] = {
9779
+ (f === 0 || A[A.length - 1] + p + 2 * r > a) && (h += c, A[A.length - (f > 0 ? 0 : 1)] = 0, g += c, d++), l[f] = {
9788
9780
  left: 0,
9789
9781
  top: g,
9790
9782
  row: d,
9791
9783
  width: p,
9792
9784
  height: n
9793
- }, c[c.length - 1] += p + r;
9785
+ }, A[A.length - 1] += p + r;
9794
9786
  }), h;
9795
9787
  }
9796
9788
  _fitCols(t, e, s, n) {
9797
- const { ctx: o, maxHeight: a, options: { labels: { padding: r } } } = this, l = this.legendHitBoxes = [], c = this.columnSizes = [], A = a - t;
9789
+ const { ctx: o, maxHeight: a, options: { labels: { padding: r } } } = this, l = this.legendHitBoxes = [], A = this.columnSizes = [], c = a - t;
9798
9790
  let h = r, d = 0, g = 0, u = 0, f = 0;
9799
9791
  return this.legendItems.forEach((p, w) => {
9800
9792
  const { itemWidth: m, itemHeight: G } = Kd(s, e, o, p, n);
9801
- w > 0 && g + G + 2 * r > A && (h += d + r, c.push({
9793
+ w > 0 && g + G + 2 * r > c && (h += d + r, A.push({
9802
9794
  width: d,
9803
9795
  height: g
9804
9796
  }), u += d + r, f++, d = g = 0), l[w] = {
@@ -9808,7 +9800,7 @@ class Ao extends xt {
9808
9800
  width: m,
9809
9801
  height: G
9810
9802
  }, d = Math.max(d, m), g += G + r;
9811
- }), h += d, c.push({
9803
+ }), h += d, A.push({
9812
9804
  width: d,
9813
9805
  height: g
9814
9806
  }), h;
@@ -9819,12 +9811,12 @@ class Ao extends xt {
9819
9811
  const t = this._computeTitleHeight(), { legendHitBoxes: e, options: { align: s, labels: { padding: n }, rtl: o } } = this, a = Ce(o, this.left, this.width);
9820
9812
  if (this.isHorizontal()) {
9821
9813
  let r = 0, l = nt(s, this.left + n, this.right - this.lineWidths[r]);
9822
- for (const c of e)
9823
- r !== c.row && (r = c.row, l = nt(s, this.left + n, this.right - this.lineWidths[r])), c.top += this.top + t + n, c.left = a.leftForLtr(a.x(l), c.width), l += c.width + n;
9814
+ for (const A of e)
9815
+ r !== A.row && (r = A.row, l = nt(s, this.left + n, this.right - this.lineWidths[r])), A.top += this.top + t + n, A.left = a.leftForLtr(a.x(l), A.width), l += A.width + n;
9824
9816
  } else {
9825
9817
  let r = 0, l = nt(s, this.top + t + n, this.bottom - this.columnSizes[r].height);
9826
- for (const c of e)
9827
- c.col !== r && (r = c.col, l = nt(s, this.top + t + n, this.bottom - this.columnSizes[r].height)), c.top = l, c.left += this.left + n, c.left = a.leftForLtr(a.x(c.left), c.width), l += c.height + n;
9818
+ for (const A of e)
9819
+ A.col !== r && (r = A.col, l = nt(s, this.top + t + n, this.bottom - this.columnSizes[r].height)), A.top = l, A.left += this.left + n, A.left = a.leftForLtr(a.x(A.left), A.width), l += A.height + n;
9828
9820
  }
9829
9821
  }
9830
9822
  isHorizontal() {
@@ -9837,10 +9829,10 @@ class Ao extends xt {
9837
9829
  }
9838
9830
  }
9839
9831
  _draw() {
9840
- const { options: t, columnSizes: e, lineWidths: s, ctx: n } = this, { align: o, labels: a } = t, r = K.color, l = Ce(t.rtl, this.left, this.width), c = _(a.font), { padding: A } = a, h = c.size, d = h / 2;
9832
+ const { options: t, columnSizes: e, lineWidths: s, ctx: n } = this, { align: o, labels: a } = t, r = K.color, l = Ce(t.rtl, this.left, this.width), A = _(a.font), { padding: c } = a, h = A.size, d = h / 2;
9841
9833
  let g;
9842
- this.drawTitle(), n.textAlign = l.textAlign("left"), n.textBaseline = "middle", n.lineWidth = 0.5, n.font = c.string;
9843
- const { boxWidth: u, boxHeight: f, itemHeight: p } = co(a, h), w = function(v, y, C) {
9834
+ this.drawTitle(), n.textAlign = l.textAlign("left"), n.textBaseline = "middle", n.lineWidth = 0.5, n.font = A.string;
9835
+ const { boxWidth: u, boxHeight: f, itemHeight: p } = Ao(a, h), w = function(v, y, C) {
9844
9836
  if (isNaN(u) || u <= 0 || isNaN(f) || f < 0)
9845
9837
  return;
9846
9838
  n.save();
@@ -9865,32 +9857,32 @@ class Ao extends xt {
9865
9857
  }
9866
9858
  n.restore();
9867
9859
  }, m = function(v, y, C) {
9868
- fe(n, C.text, v, y + p / 2, c, {
9860
+ fe(n, C.text, v, y + p / 2, A, {
9869
9861
  strikethrough: C.hidden,
9870
9862
  textAlign: l.textAlign(C.textAlign)
9871
9863
  });
9872
9864
  }, G = this.isHorizontal(), x = this._computeTitleHeight();
9873
9865
  G ? g = {
9874
- x: nt(o, this.left + A, this.right - s[0]),
9875
- y: this.top + A + x,
9866
+ x: nt(o, this.left + c, this.right - s[0]),
9867
+ y: this.top + c + x,
9876
9868
  line: 0
9877
9869
  } : g = {
9878
- x: this.left + A,
9879
- y: nt(o, this.top + x + A, this.bottom - e[0].height),
9870
+ x: this.left + c,
9871
+ y: nt(o, this.top + x + c, this.bottom - e[0].height),
9880
9872
  line: 0
9881
- }, Aa(this.ctx, t.textDirection);
9882
- const D = p + A;
9873
+ }, ca(this.ctx, t.textDirection);
9874
+ const D = p + c;
9883
9875
  this.legendItems.forEach((v, y) => {
9884
9876
  n.strokeStyle = v.fontColor, n.fillStyle = v.fontColor;
9885
9877
  const C = n.measureText(v.text).width, I = l.textAlign(v.textAlign || (v.textAlign = a.textAlign)), k = u + d + C;
9886
9878
  let Q = g.x, O = g.y;
9887
- l.setWidth(this.width), G ? y > 0 && Q + k + A > this.right && (O = g.y += D, g.line++, Q = g.x = nt(o, this.left + A, this.right - s[g.line])) : y > 0 && O + D > this.bottom && (Q = g.x = Q + e[g.line].width + A, g.line++, O = g.y = nt(o, this.top + x + A, this.bottom - e[g.line].height));
9879
+ l.setWidth(this.width), G ? y > 0 && Q + k + c > this.right && (O = g.y += D, g.line++, Q = g.x = nt(o, this.left + c, this.right - s[g.line])) : y > 0 && O + D > this.bottom && (Q = g.x = Q + e[g.line].width + c, g.line++, O = g.y = nt(o, this.top + x + c, this.bottom - e[g.line].height));
9888
9880
  const it = l.x(Q);
9889
- if (w(it, O, v), Q = uc(I, Q + u + d, G ? Q + k : this.right, t.rtl), m(l.x(Q), O, v), G)
9890
- g.x += k + A;
9881
+ if (w(it, O, v), Q = uA(I, Q + u + d, G ? Q + k : this.right, t.rtl), m(l.x(Q), O, v), G)
9882
+ g.x += k + c;
9891
9883
  else if (typeof v.text != "string") {
9892
- const gt = c.lineHeight;
9893
- g.y += za(v, gt) + A;
9884
+ const gt = A.lineHeight;
9885
+ g.y += za(v, gt) + c;
9894
9886
  } else
9895
9887
  g.y += D;
9896
9888
  }), ha(this.ctx, t.textDirection);
@@ -9899,16 +9891,16 @@ class Ao extends xt {
9899
9891
  const t = this.options, e = t.title, s = _(e.font), n = at(e.padding);
9900
9892
  if (!e.display)
9901
9893
  return;
9902
- const o = Ce(t.rtl, this.left, this.width), a = this.ctx, r = e.position, l = s.size / 2, c = n.top + l;
9903
- let A, h = this.left, d = this.width;
9894
+ const o = Ce(t.rtl, this.left, this.width), a = this.ctx, r = e.position, l = s.size / 2, A = n.top + l;
9895
+ let c, h = this.left, d = this.width;
9904
9896
  if (this.isHorizontal())
9905
- d = Math.max(...this.lineWidths), A = this.top + c, h = nt(t.align, h, this.right - d);
9897
+ d = Math.max(...this.lineWidths), c = this.top + A, h = nt(t.align, h, this.right - d);
9906
9898
  else {
9907
9899
  const u = this.columnSizes.reduce((f, p) => Math.max(f, p.height), 0);
9908
- A = c + nt(t.align, this.top, this.bottom - u - t.labels.padding - this._computeTitleHeight());
9900
+ c = A + nt(t.align, this.top, this.bottom - u - t.labels.padding - this._computeTitleHeight());
9909
9901
  }
9910
9902
  const g = nt(r, h, h + d);
9911
- a.textAlign = o.textAlign(Ss(r)), a.textBaseline = "middle", a.strokeStyle = e.color, a.fillStyle = e.color, a.font = s.string, fe(a, e.text, g, A, s);
9903
+ a.textAlign = o.textAlign(Ss(r)), a.textBaseline = "middle", a.strokeStyle = e.color, a.fillStyle = e.color, a.font = s.string, fe(a, e.text, g, c, s);
9912
9904
  }
9913
9905
  _computeTitleHeight() {
9914
9906
  const t = this.options.title, e = _(t.font), s = at(t.padding);
@@ -9971,9 +9963,9 @@ function Jd(i, t) {
9971
9963
  }
9972
9964
  var qd = {
9973
9965
  id: "legend",
9974
- _element: Ao,
9966
+ _element: co,
9975
9967
  start(i, t, e) {
9976
- const s = i.legend = new Ao({
9968
+ const s = i.legend = new co({
9977
9969
  ctx: i.ctx,
9978
9970
  options: e,
9979
9971
  chart: i
@@ -10014,22 +10006,22 @@ var qd = {
10014
10006
  generateLabels(i) {
10015
10007
  const t = i.data.datasets, { labels: { usePointStyle: e, pointStyle: s, textAlign: n, color: o, useBorderRadius: a, borderRadius: r } } = i.legend.options;
10016
10008
  return i._getSortedDatasetMetas().map((l) => {
10017
- const c = l.controller.getStyle(e ? 0 : void 0), A = at(c.borderWidth);
10009
+ const A = l.controller.getStyle(e ? 0 : void 0), c = at(A.borderWidth);
10018
10010
  return {
10019
10011
  text: t[l.index].label,
10020
- fillStyle: c.backgroundColor,
10012
+ fillStyle: A.backgroundColor,
10021
10013
  fontColor: o,
10022
10014
  hidden: !l.visible,
10023
- lineCap: c.borderCapStyle,
10024
- lineDash: c.borderDash,
10025
- lineDashOffset: c.borderDashOffset,
10026
- lineJoin: c.borderJoinStyle,
10027
- lineWidth: (A.width + A.height) / 4,
10028
- strokeStyle: c.borderColor,
10029
- pointStyle: s || c.pointStyle,
10030
- rotation: c.rotation,
10031
- textAlign: n || c.textAlign,
10032
- borderRadius: a && (r || c.borderRadius),
10015
+ lineCap: A.borderCapStyle,
10016
+ lineDash: A.borderDash,
10017
+ lineDashOffset: A.borderDashOffset,
10018
+ lineJoin: A.borderJoinStyle,
10019
+ lineWidth: (c.width + c.height) / 4,
10020
+ strokeStyle: A.borderColor,
10021
+ pointStyle: s || A.pointStyle,
10022
+ rotation: A.rotation,
10023
+ textAlign: n || A.textAlign,
10024
+ borderRadius: a && (r || A.borderRadius),
10033
10025
  datasetIndex: l.index
10034
10026
  };
10035
10027
  }, this);
@@ -10075,11 +10067,11 @@ class Ks extends xt {
10075
10067
  }
10076
10068
  _drawArgs(t) {
10077
10069
  const { top: e, left: s, bottom: n, right: o, options: a } = this, r = a.align;
10078
- let l = 0, c, A, h;
10079
- return this.isHorizontal() ? (A = nt(r, s, o), h = e + t, c = o - s) : (a.position === "left" ? (A = s + t, h = nt(r, n, e), l = H * -0.5) : (A = o - t, h = nt(r, e, n), l = H * 0.5), c = n - e), {
10080
- titleX: A,
10070
+ let l = 0, A, c, h;
10071
+ return this.isHorizontal() ? (c = nt(r, s, o), h = e + t, A = o - s) : (a.position === "left" ? (c = s + t, h = nt(r, n, e), l = H * -0.5) : (c = o - t, h = nt(r, e, n), l = H * 0.5), A = n - e), {
10072
+ titleX: c,
10081
10073
  titleY: h,
10082
- maxWidth: c,
10074
+ maxWidth: A,
10083
10075
  rotation: l
10084
10076
  };
10085
10077
  }
@@ -10087,11 +10079,11 @@ class Ks extends xt {
10087
10079
  const t = this.ctx, e = this.options;
10088
10080
  if (!e.display)
10089
10081
  return;
10090
- const s = _(e.font), o = s.lineHeight / 2 + this._padding.top, { titleX: a, titleY: r, maxWidth: l, rotation: c } = this._drawArgs(o);
10082
+ const s = _(e.font), o = s.lineHeight / 2 + this._padding.top, { titleX: a, titleY: r, maxWidth: l, rotation: A } = this._drawArgs(o);
10091
10083
  fe(t, e.text, 0, 0, s, {
10092
10084
  color: e.color,
10093
10085
  maxWidth: l,
10094
- rotation: c,
10086
+ rotation: A,
10095
10087
  textAlign: Ss(e.align),
10096
10088
  textBaseline: "middle",
10097
10089
  translation: [
@@ -10207,8 +10199,8 @@ const Ze = {
10207
10199
  for (o = 0, a = i.length; o < a; ++o) {
10208
10200
  const l = i[o].element;
10209
10201
  if (l && l.hasValue()) {
10210
- const c = l.getCenterPoint(), A = fs(t, c);
10211
- A < n && (n = A, r = l);
10202
+ const A = l.getCenterPoint(), c = fs(t, A);
10203
+ c < n && (n = c, r = l);
10212
10204
  }
10213
10205
  }
10214
10206
  if (r) {
@@ -10244,20 +10236,20 @@ function eg(i, t) {
10244
10236
  };
10245
10237
  }
10246
10238
  function ho(i, t) {
10247
- const e = i.chart.ctx, { body: s, footer: n, title: o } = i, { boxWidth: a, boxHeight: r } = t, l = _(t.bodyFont), c = _(t.titleFont), A = _(t.footerFont), h = o.length, d = n.length, g = s.length, u = at(t.padding);
10239
+ const e = i.chart.ctx, { body: s, footer: n, title: o } = i, { boxWidth: a, boxHeight: r } = t, l = _(t.bodyFont), A = _(t.titleFont), c = _(t.footerFont), h = o.length, d = n.length, g = s.length, u = at(t.padding);
10248
10240
  let f = u.height, p = 0, w = s.reduce((x, D) => x + D.before.length + D.lines.length + D.after.length, 0);
10249
- if (w += i.beforeBody.length + i.afterBody.length, h && (f += h * c.lineHeight + (h - 1) * t.titleSpacing + t.titleMarginBottom), w) {
10241
+ if (w += i.beforeBody.length + i.afterBody.length, h && (f += h * A.lineHeight + (h - 1) * t.titleSpacing + t.titleMarginBottom), w) {
10250
10242
  const x = t.displayColors ? Math.max(r, l.lineHeight) : l.lineHeight;
10251
10243
  f += g * x + (w - g) * l.lineHeight + (w - 1) * t.bodySpacing;
10252
10244
  }
10253
- d && (f += t.footerMarginTop + d * A.lineHeight + (d - 1) * t.footerSpacing);
10245
+ d && (f += t.footerMarginTop + d * c.lineHeight + (d - 1) * t.footerSpacing);
10254
10246
  let m = 0;
10255
10247
  const G = function(x) {
10256
10248
  p = Math.max(p, e.measureText(x).width + m);
10257
10249
  };
10258
- return e.save(), e.font = c.string, L(i.title, G), e.font = l.string, L(i.beforeBody.concat(i.afterBody), G), m = t.displayColors ? a + 2 + t.boxPadding : 0, L(s, (x) => {
10250
+ return e.save(), e.font = A.string, L(i.title, G), e.font = l.string, L(i.beforeBody.concat(i.afterBody), G), m = t.displayColors ? a + 2 + t.boxPadding : 0, L(s, (x) => {
10259
10251
  L(x.before, G), L(x.lines, G), L(x.after, G);
10260
- }), m = 0, e.font = A.string, L(i.footer, G), e.restore(), p += u.width, {
10252
+ }), m = 0, e.font = c.string, L(i.footer, G), e.restore(), p += u.width, {
10261
10253
  width: p,
10262
10254
  height: f
10263
10255
  };
@@ -10273,8 +10265,8 @@ function sg(i, t, e, s) {
10273
10265
  }
10274
10266
  function ng(i, t, e, s) {
10275
10267
  const { x: n, width: o } = e, { width: a, chartArea: { left: r, right: l } } = i;
10276
- let c = "center";
10277
- return s === "center" ? c = n <= (r + l) / 2 ? "left" : "right" : n <= o / 2 ? c = "left" : n >= a - o / 2 && (c = "right"), sg(c, i, t, e) && (c = "center"), c;
10268
+ let A = "center";
10269
+ return s === "center" ? A = n <= (r + l) / 2 ? "left" : "right" : n <= o / 2 ? A = "left" : n >= a - o / 2 && (A = "right"), sg(A, i, t, e) && (A = "center"), A;
10278
10270
  }
10279
10271
  function go(i, t, e) {
10280
10272
  const s = e.yAlign || t.yAlign || ig(i, e);
@@ -10292,10 +10284,10 @@ function ag(i, t, e) {
10292
10284
  return t === "top" ? s += e : t === "bottom" ? s -= n + e : s -= n / 2, s;
10293
10285
  }
10294
10286
  function uo(i, t, e, s) {
10295
- const { caretSize: n, caretPadding: o, cornerRadius: a } = i, { xAlign: r, yAlign: l } = e, c = n + o, { topLeft: A, topRight: h, bottomLeft: d, bottomRight: g } = de(a);
10287
+ const { caretSize: n, caretPadding: o, cornerRadius: a } = i, { xAlign: r, yAlign: l } = e, A = n + o, { topLeft: c, topRight: h, bottomLeft: d, bottomRight: g } = de(a);
10296
10288
  let u = og(t, r);
10297
- const f = ag(t, l, c);
10298
- return l === "center" ? r === "left" ? u += c : r === "right" && (u -= c) : r === "left" ? u -= Math.max(A, d) + n : r === "right" && (u += Math.max(h, g) + n), {
10289
+ const f = ag(t, l, A);
10290
+ return l === "center" ? r === "left" ? u += A : r === "right" && (u -= A) : r === "left" ? u -= Math.max(c, d) + n : r === "right" && (u += Math.max(h, g) + n), {
10299
10291
  x: tt(u, 0, s.width - t.width),
10300
10292
  y: tt(f, 0, s.height - t.height)
10301
10293
  };
@@ -10370,7 +10362,7 @@ const La = {
10370
10362
  footer: Qt,
10371
10363
  afterFooter: Qt
10372
10364
  };
10373
- function At(i, t, e, s) {
10365
+ function ct(i, t, e, s) {
10374
10366
  const n = i[t].call(e, s);
10375
10367
  return typeof n > "u" ? La[t].call(e, s) : n;
10376
10368
  }
@@ -10392,12 +10384,12 @@ class Gs extends xt {
10392
10384
  return this.$context || (this.$context = rg(this.chart.getContext(), this, this._tooltipItems));
10393
10385
  }
10394
10386
  getTitle(t, e) {
10395
- const { callbacks: s } = e, n = At(s, "beforeTitle", this, t), o = At(s, "title", this, t), a = At(s, "afterTitle", this, t);
10387
+ const { callbacks: s } = e, n = ct(s, "beforeTitle", this, t), o = ct(s, "title", this, t), a = ct(s, "afterTitle", this, t);
10396
10388
  let r = [];
10397
10389
  return r = Ct(r, Ot(n)), r = Ct(r, Ot(o)), r = Ct(r, Ot(a)), r;
10398
10390
  }
10399
10391
  getBeforeBody(t, e) {
10400
- return fo(At(e.callbacks, "beforeBody", this, t));
10392
+ return fo(ct(e.callbacks, "beforeBody", this, t));
10401
10393
  }
10402
10394
  getBody(t, e) {
10403
10395
  const { callbacks: s } = e, n = [];
@@ -10407,25 +10399,25 @@ class Gs extends xt {
10407
10399
  lines: [],
10408
10400
  after: []
10409
10401
  }, r = po(s, o);
10410
- Ct(a.before, Ot(At(r, "beforeLabel", this, o))), Ct(a.lines, At(r, "label", this, o)), Ct(a.after, Ot(At(r, "afterLabel", this, o))), n.push(a);
10402
+ Ct(a.before, Ot(ct(r, "beforeLabel", this, o))), Ct(a.lines, ct(r, "label", this, o)), Ct(a.after, Ot(ct(r, "afterLabel", this, o))), n.push(a);
10411
10403
  }), n;
10412
10404
  }
10413
10405
  getAfterBody(t, e) {
10414
- return fo(At(e.callbacks, "afterBody", this, t));
10406
+ return fo(ct(e.callbacks, "afterBody", this, t));
10415
10407
  }
10416
10408
  getFooter(t, e) {
10417
- const { callbacks: s } = e, n = At(s, "beforeFooter", this, t), o = At(s, "footer", this, t), a = At(s, "afterFooter", this, t);
10409
+ const { callbacks: s } = e, n = ct(s, "beforeFooter", this, t), o = ct(s, "footer", this, t), a = ct(s, "afterFooter", this, t);
10418
10410
  let r = [];
10419
10411
  return r = Ct(r, Ot(n)), r = Ct(r, Ot(o)), r = Ct(r, Ot(a)), r;
10420
10412
  }
10421
10413
  _createItems(t) {
10422
10414
  const e = this._active, s = this.chart.data, n = [], o = [], a = [];
10423
- let r = [], l, c;
10424
- for (l = 0, c = e.length; l < c; ++l)
10415
+ let r = [], l, A;
10416
+ for (l = 0, A = e.length; l < A; ++l)
10425
10417
  r.push(eg(this.chart, e[l]));
10426
- return t.filter && (r = r.filter((A, h, d) => t.filter(A, h, d, s))), t.itemSort && (r = r.sort((A, h) => t.itemSort(A, h, s))), L(r, (A) => {
10427
- const h = po(t.callbacks, A);
10428
- n.push(At(h, "labelColor", this, A)), o.push(At(h, "labelPointStyle", this, A)), a.push(At(h, "labelTextColor", this, A));
10418
+ return t.filter && (r = r.filter((c, h, d) => t.filter(c, h, d, s))), t.itemSort && (r = r.sort((c, h) => t.itemSort(c, h, s))), L(r, (c) => {
10419
+ const h = po(t.callbacks, c);
10420
+ n.push(ct(h, "labelColor", this, c)), o.push(ct(h, "labelPointStyle", this, c)), a.push(ct(h, "labelTextColor", this, c));
10429
10421
  }), this.labelColors = n, this.labelPointStyles = o, this.labelTextColors = a, this.dataPoints = r, r;
10430
10422
  }
10431
10423
  update(t, e) {
@@ -10438,8 +10430,8 @@ class Gs extends xt {
10438
10430
  else {
10439
10431
  const r = Ze[s.position].call(this, n, this._eventPosition);
10440
10432
  a = this._createItems(s), this.title = this.getTitle(a, s), this.beforeBody = this.getBeforeBody(a, s), this.body = this.getBody(a, s), this.afterBody = this.getAfterBody(a, s), this.footer = this.getFooter(a, s);
10441
- const l = this._size = ho(this, s), c = Object.assign({}, r, l), A = go(this.chart, s, c), h = uo(s, c, A, this.chart);
10442
- this.xAlign = A.xAlign, this.yAlign = A.yAlign, o = {
10433
+ const l = this._size = ho(this, s), A = Object.assign({}, r, l), c = go(this.chart, s, A), h = uo(s, A, c, this.chart);
10434
+ this.xAlign = c.xAlign, this.yAlign = c.yAlign, o = {
10443
10435
  opacity: 1,
10444
10436
  x: h.x,
10445
10437
  y: h.y,
@@ -10460,9 +10452,9 @@ class Gs extends xt {
10460
10452
  e.lineTo(o.x1, o.y1), e.lineTo(o.x2, o.y2), e.lineTo(o.x3, o.y3);
10461
10453
  }
10462
10454
  getCaretPosition(t, e, s) {
10463
- const { xAlign: n, yAlign: o } = this, { caretSize: a, cornerRadius: r } = s, { topLeft: l, topRight: c, bottomLeft: A, bottomRight: h } = de(r), { x: d, y: g } = t, { width: u, height: f } = e;
10455
+ const { xAlign: n, yAlign: o } = this, { caretSize: a, cornerRadius: r } = s, { topLeft: l, topRight: A, bottomLeft: c, bottomRight: h } = de(r), { x: d, y: g } = t, { width: u, height: f } = e;
10464
10456
  let p, w, m, G, x, D;
10465
- return o === "center" ? (x = g + f / 2, n === "left" ? (p = d, w = p - a, G = x + a, D = x - a) : (p = d + u, w = p + a, G = x - a, D = x + a), m = p) : (n === "left" ? w = d + Math.max(l, A) + a : n === "right" ? w = d + u - Math.max(c, h) - a : w = this.caretX, o === "top" ? (G = g, x = G - a, p = w - a, m = w + a) : (G = g + f, x = G + a, p = w + a, m = w - a), D = G), {
10457
+ return o === "center" ? (x = g + f / 2, n === "left" ? (p = d, w = p - a, G = x + a, D = x - a) : (p = d + u, w = p + a, G = x - a, D = x + a), m = p) : (n === "left" ? w = d + Math.max(l, c) + a : n === "right" ? w = d + u - Math.max(A, h) - a : w = this.caretX, o === "top" ? (G = g, x = G - a, p = w - a, m = w + a) : (G = g + f, x = G + a, p = w + a, m = w - a), D = G), {
10466
10458
  x1: p,
10467
10459
  x2: w,
10468
10460
  x3: m,
@@ -10475,48 +10467,48 @@ class Gs extends xt {
10475
10467
  const n = this.title, o = n.length;
10476
10468
  let a, r, l;
10477
10469
  if (o) {
10478
- const c = Ce(s.rtl, this.x, this.width);
10479
- for (t.x = Ci(this, s.titleAlign, s), e.textAlign = c.textAlign(s.titleAlign), e.textBaseline = "middle", a = _(s.titleFont), r = s.titleSpacing, e.fillStyle = s.titleColor, e.font = a.string, l = 0; l < o; ++l)
10480
- e.fillText(n[l], c.x(t.x), t.y + a.lineHeight / 2), t.y += a.lineHeight + r, l + 1 === o && (t.y += s.titleMarginBottom - r);
10470
+ const A = Ce(s.rtl, this.x, this.width);
10471
+ for (t.x = Ci(this, s.titleAlign, s), e.textAlign = A.textAlign(s.titleAlign), e.textBaseline = "middle", a = _(s.titleFont), r = s.titleSpacing, e.fillStyle = s.titleColor, e.font = a.string, l = 0; l < o; ++l)
10472
+ e.fillText(n[l], A.x(t.x), t.y + a.lineHeight / 2), t.y += a.lineHeight + r, l + 1 === o && (t.y += s.titleMarginBottom - r);
10481
10473
  }
10482
10474
  }
10483
10475
  _drawColorBox(t, e, s, n, o) {
10484
- const a = this.labelColors[s], r = this.labelPointStyles[s], { boxHeight: l, boxWidth: c } = o, A = _(o.bodyFont), h = Ci(this, "left", o), d = n.x(h), g = l < A.lineHeight ? (A.lineHeight - l) / 2 : 0, u = e.y + g;
10476
+ const a = this.labelColors[s], r = this.labelPointStyles[s], { boxHeight: l, boxWidth: A } = o, c = _(o.bodyFont), h = Ci(this, "left", o), d = n.x(h), g = l < c.lineHeight ? (c.lineHeight - l) / 2 : 0, u = e.y + g;
10485
10477
  if (o.usePointStyle) {
10486
10478
  const f = {
10487
- radius: Math.min(c, l) / 2,
10479
+ radius: Math.min(A, l) / 2,
10488
10480
  pointStyle: r.pointStyle,
10489
10481
  rotation: r.rotation,
10490
10482
  borderWidth: 1
10491
- }, p = n.leftForLtr(d, c) + c / 2, w = u + l / 2;
10483
+ }, p = n.leftForLtr(d, A) + A / 2, w = u + l / 2;
10492
10484
  t.strokeStyle = o.multiKeyBackground, t.fillStyle = o.multiKeyBackground, ws(t, f, p, w), t.strokeStyle = a.borderColor, t.fillStyle = a.backgroundColor, ws(t, f, p, w);
10493
10485
  } else {
10494
10486
  t.lineWidth = P(a.borderWidth) ? Math.max(...Object.values(a.borderWidth)) : a.borderWidth || 1, t.strokeStyle = a.borderColor, t.setLineDash(a.borderDash || []), t.lineDashOffset = a.borderDashOffset || 0;
10495
- const f = n.leftForLtr(d, c), p = n.leftForLtr(n.xPlus(d, 1), c - 2), w = de(a.borderRadius);
10487
+ const f = n.leftForLtr(d, A), p = n.leftForLtr(n.xPlus(d, 1), A - 2), w = de(a.borderRadius);
10496
10488
  Object.values(w).some((m) => m !== 0) ? (t.beginPath(), t.fillStyle = o.multiKeyBackground, oi(t, {
10497
10489
  x: f,
10498
10490
  y: u,
10499
- w: c,
10491
+ w: A,
10500
10492
  h: l,
10501
10493
  radius: w
10502
10494
  }), t.fill(), t.stroke(), t.fillStyle = a.backgroundColor, t.beginPath(), oi(t, {
10503
10495
  x: p,
10504
10496
  y: u + 1,
10505
- w: c - 2,
10497
+ w: A - 2,
10506
10498
  h: l - 2,
10507
10499
  radius: w
10508
- }), t.fill()) : (t.fillStyle = o.multiKeyBackground, t.fillRect(f, u, c, l), t.strokeRect(f, u, c, l), t.fillStyle = a.backgroundColor, t.fillRect(p, u + 1, c - 2, l - 2));
10500
+ }), t.fill()) : (t.fillStyle = o.multiKeyBackground, t.fillRect(f, u, A, l), t.strokeRect(f, u, A, l), t.fillStyle = a.backgroundColor, t.fillRect(p, u + 1, A - 2, l - 2));
10509
10501
  }
10510
10502
  t.fillStyle = this.labelTextColors[s];
10511
10503
  }
10512
10504
  drawBody(t, e, s) {
10513
- const { body: n } = this, { bodySpacing: o, bodyAlign: a, displayColors: r, boxHeight: l, boxWidth: c, boxPadding: A } = s, h = _(s.bodyFont);
10505
+ const { body: n } = this, { bodySpacing: o, bodyAlign: a, displayColors: r, boxHeight: l, boxWidth: A, boxPadding: c } = s, h = _(s.bodyFont);
10514
10506
  let d = h.lineHeight, g = 0;
10515
10507
  const u = Ce(s.rtl, this.x, this.width), f = function(C) {
10516
10508
  e.fillText(C, u.x(t.x + g), t.y + d / 2), t.y += d + o;
10517
10509
  }, p = u.textAlign(a);
10518
10510
  let w, m, G, x, D, v, y;
10519
- for (e.textAlign = a, e.textBaseline = "middle", e.font = h.string, t.x = Ci(this, p, s), e.fillStyle = s.bodyColor, L(this.beforeBody, f), g = r && p !== "right" ? a === "center" ? c / 2 + A : c + 2 + A : 0, x = 0, v = n.length; x < v; ++x) {
10511
+ for (e.textAlign = a, e.textBaseline = "middle", e.font = h.string, t.x = Ci(this, p, s), e.fillStyle = s.bodyColor, L(this.beforeBody, f), g = r && p !== "right" ? a === "center" ? A / 2 + c : A + 2 + c : 0, x = 0, v = n.length; x < v; ++x) {
10520
10512
  for (w = n[x], m = this.labelTextColors[x], e.fillStyle = m, L(w.before, f), G = w.lines, r && G.length && (this._drawColorBox(e, t, x, u, s), d = Math.max(h.lineHeight, l)), D = 0, y = G.length; D < y; ++D)
10521
10513
  f(G[D]), d = h.lineHeight;
10522
10514
  L(w.after, f);
@@ -10533,8 +10525,8 @@ class Gs extends xt {
10533
10525
  }
10534
10526
  }
10535
10527
  drawBackground(t, e, s, n) {
10536
- const { xAlign: o, yAlign: a } = this, { x: r, y: l } = t, { width: c, height: A } = s, { topLeft: h, topRight: d, bottomLeft: g, bottomRight: u } = de(n.cornerRadius);
10537
- e.fillStyle = n.backgroundColor, e.strokeStyle = n.borderColor, e.lineWidth = n.borderWidth, e.beginPath(), e.moveTo(r + h, l), a === "top" && this.drawCaret(t, e, s, n), e.lineTo(r + c - d, l), e.quadraticCurveTo(r + c, l, r + c, l + d), a === "center" && o === "right" && this.drawCaret(t, e, s, n), e.lineTo(r + c, l + A - u), e.quadraticCurveTo(r + c, l + A, r + c - u, l + A), a === "bottom" && this.drawCaret(t, e, s, n), e.lineTo(r + g, l + A), e.quadraticCurveTo(r, l + A, r, l + A - g), a === "center" && o === "left" && this.drawCaret(t, e, s, n), e.lineTo(r, l + h), e.quadraticCurveTo(r, l, r + h, l), e.closePath(), e.fill(), n.borderWidth > 0 && e.stroke();
10528
+ const { xAlign: o, yAlign: a } = this, { x: r, y: l } = t, { width: A, height: c } = s, { topLeft: h, topRight: d, bottomLeft: g, bottomRight: u } = de(n.cornerRadius);
10529
+ e.fillStyle = n.backgroundColor, e.strokeStyle = n.borderColor, e.lineWidth = n.borderWidth, e.beginPath(), e.moveTo(r + h, l), a === "top" && this.drawCaret(t, e, s, n), e.lineTo(r + A - d, l), e.quadraticCurveTo(r + A, l, r + A, l + d), a === "center" && o === "right" && this.drawCaret(t, e, s, n), e.lineTo(r + A, l + c - u), e.quadraticCurveTo(r + A, l + c, r + A - u, l + c), a === "bottom" && this.drawCaret(t, e, s, n), e.lineTo(r + g, l + c), e.quadraticCurveTo(r, l + c, r, l + c - g), a === "center" && o === "left" && this.drawCaret(t, e, s, n), e.lineTo(r, l + h), e.quadraticCurveTo(r, l, r + h, l), e.closePath(), e.fill(), n.borderWidth > 0 && e.stroke();
10538
10530
  }
10539
10531
  _updateAnimationTarget(t) {
10540
10532
  const e = this.chart, s = this.$animations, n = s && s.x, o = s && s.y;
@@ -10542,8 +10534,8 @@ class Gs extends xt {
10542
10534
  const a = Ze[t.position].call(this, this._active, this._eventPosition);
10543
10535
  if (!a)
10544
10536
  return;
10545
- const r = this._size = ho(this, t), l = Object.assign({}, a, this._size), c = go(e, t, l), A = uo(t, l, c, e);
10546
- (n._to !== A.x || o._to !== A.y) && (this.xAlign = c.xAlign, this.yAlign = c.yAlign, this.width = r.width, this.height = r.height, this.caretX = a.x, this.caretY = a.y, this._resolveAnimations().update(this, A));
10537
+ const r = this._size = ho(this, t), l = Object.assign({}, a, this._size), A = go(e, t, l), c = uo(t, l, A, e);
10538
+ (n._to !== c.x || o._to !== c.y) && (this.xAlign = A.xAlign, this.yAlign = A.yAlign, this.width = r.width, this.height = r.height, this.caretX = a.x, this.caretY = a.y, this._resolveAnimations().update(this, c));
10547
10539
  }
10548
10540
  }
10549
10541
  _willRender() {
@@ -10564,19 +10556,19 @@ class Gs extends xt {
10564
10556
  };
10565
10557
  s = Math.abs(s) < 1e-3 ? 0 : s;
10566
10558
  const a = at(e.padding), r = this.title.length || this.beforeBody.length || this.body.length || this.afterBody.length || this.footer.length;
10567
- e.enabled && r && (t.save(), t.globalAlpha = s, this.drawBackground(o, t, n, e), Aa(t, e.textDirection), o.y += a.top, this.drawTitle(o, t, e), this.drawBody(o, t, e), this.drawFooter(o, t, e), ha(t, e.textDirection), t.restore());
10559
+ e.enabled && r && (t.save(), t.globalAlpha = s, this.drawBackground(o, t, n, e), ca(t, e.textDirection), o.y += a.top, this.drawTitle(o, t, e), this.drawBody(o, t, e), this.drawFooter(o, t, e), ha(t, e.textDirection), t.restore());
10568
10560
  }
10569
10561
  getActiveElements() {
10570
10562
  return this._active || [];
10571
10563
  }
10572
10564
  setActiveElements(t, e) {
10573
10565
  const s = this._active, n = t.map(({ datasetIndex: r, index: l }) => {
10574
- const c = this.chart.getDatasetMeta(r);
10575
- if (!c)
10566
+ const A = this.chart.getDatasetMeta(r);
10567
+ if (!A)
10576
10568
  throw new Error("Cannot find a dataset at index " + r);
10577
10569
  return {
10578
10570
  datasetIndex: r,
10579
- element: c.data[l],
10571
+ element: A.data[l],
10580
10572
  index: l
10581
10573
  };
10582
10574
  }), o = !ji(s, n), a = this._positionChanged(n, e);
@@ -10722,7 +10714,7 @@ var lg = {
10722
10714
  additionalOptionScopes: [
10723
10715
  "interaction"
10724
10716
  ]
10725
- }, cg = /* @__PURE__ */ Object.freeze({
10717
+ }, Ag = /* @__PURE__ */ Object.freeze({
10726
10718
  __proto__: null,
10727
10719
  Colors: Dd,
10728
10720
  Decimation: Yd,
@@ -10732,14 +10724,14 @@ var lg = {
10732
10724
  Title: $d,
10733
10725
  Tooltip: lg
10734
10726
  });
10735
- const Ag = (i, t, e, s) => (typeof t == "string" ? (e = i.push(t) - 1, s.unshift({
10727
+ const cg = (i, t, e, s) => (typeof t == "string" ? (e = i.push(t) - 1, s.unshift({
10736
10728
  index: e,
10737
10729
  label: t
10738
10730
  })) : isNaN(t) && (e = null), e);
10739
10731
  function hg(i, t, e, s) {
10740
10732
  const n = i.indexOf(t);
10741
10733
  if (n === -1)
10742
- return Ag(i, t, e, s);
10734
+ return cg(i, t, e, s);
10743
10735
  const o = i.lastIndexOf(t);
10744
10736
  return n !== o ? e : n;
10745
10737
  }
@@ -10809,8 +10801,8 @@ Y(Ys, "id", "category"), Y(Ys, "defaults", {
10809
10801
  }
10810
10802
  });
10811
10803
  function gg(i, t) {
10812
- const e = [], { bounds: n, step: o, min: a, max: r, precision: l, count: c, maxTicks: A, maxDigits: h, includeBounds: d } = i, g = o || 1, u = A - 1, { min: f, max: p } = t, w = !z(a), m = !z(r), G = !z(c), x = (p - f) / (h + 1);
10813
- let D = An((p - f) / u / g) * g, v, y, C, I;
10804
+ const e = [], { bounds: n, step: o, min: a, max: r, precision: l, count: A, maxTicks: c, maxDigits: h, includeBounds: d } = i, g = o || 1, u = c - 1, { min: f, max: p } = t, w = !z(a), m = !z(r), G = !z(A), x = (p - f) / (h + 1);
10805
+ let D = cn((p - f) / u / g) * g, v, y, C, I;
10814
10806
  if (D < 1e-14 && !w && !m)
10815
10807
  return [
10816
10808
  {
@@ -10820,7 +10812,7 @@ function gg(i, t) {
10820
10812
  value: p
10821
10813
  }
10822
10814
  ];
10823
- I = Math.ceil(p / D) - Math.floor(f / D), I > u && (D = An(I * D / u / g) * g), z(l) || (v = Math.pow(10, l), D = Math.ceil(D * v) / v), n === "ticks" ? (y = Math.floor(f / D) * D, C = Math.ceil(p / D) * D) : (y = f, C = p), w && m && o && rc((r - a) / o, D / 1e3) ? (I = Math.round(Math.min((r - a) / D, A)), D = (r - a) / I, y = a, C = r) : G ? (y = w ? a : y, C = m ? r : C, I = c - 1, D = (C - y) / I) : (I = (C - y) / D, Xe(I, Math.round(I), D / 1e3) ? I = Math.round(I) : I = Math.ceil(I));
10815
+ I = Math.ceil(p / D) - Math.floor(f / D), I > u && (D = cn(I * D / u / g) * g), z(l) || (v = Math.pow(10, l), D = Math.ceil(D * v) / v), n === "ticks" ? (y = Math.floor(f / D) * D, C = Math.ceil(p / D) * D) : (y = f, C = p), w && m && o && rA((r - a) / o, D / 1e3) ? (I = Math.round(Math.min((r - a) / D, c)), D = (r - a) / I, y = a, C = r) : G ? (y = w ? a : y, C = m ? r : C, I = A - 1, D = (C - y) / I) : (I = (C - y) / D, Xe(I, Math.round(I), D / 1e3) ? I = Math.round(I) : I = Math.ceil(I));
10824
10816
  const k = Math.max(hn(D), hn(y));
10825
10817
  v = Math.pow(10, z(l) ? k : l), y = Math.round(y * v) / v, C = Math.round(C * v) / v;
10826
10818
  let Q = 0;
@@ -10856,8 +10848,8 @@ class Ki extends De {
10856
10848
  let { min: n, max: o } = this;
10857
10849
  const a = (l) => n = e ? n : l, r = (l) => o = s ? o : l;
10858
10850
  if (t) {
10859
- const l = Et(n), c = Et(o);
10860
- l < 0 && c < 0 ? r(0) : l > 0 && c > 0 && a(0);
10851
+ const l = Et(n), A = Et(o);
10852
+ l < 0 && A < 0 ? r(0) : l > 0 && A > 0 && a(0);
10861
10853
  }
10862
10854
  if (n === o) {
10863
10855
  let l = o === 0 ? 1 : Math.abs(o * 0.05);
@@ -10902,7 +10894,7 @@ class Ki extends De {
10902
10894
  this._startValue = e, this._endValue = s, this._valueRange = s - e;
10903
10895
  }
10904
10896
  getLabelForValue(t) {
10905
- return Ai(t, this.chart.options.locale, this.options.ticks.format);
10897
+ return ci(t, this.chart.options.locale, this.options.ticks.format);
10906
10898
  }
10907
10899
  }
10908
10900
  class vs extends Ki {
@@ -10947,14 +10939,14 @@ function fg(i, { min: t, max: e }) {
10947
10939
  t = ut(i.min, t);
10948
10940
  const s = [], n = ri(t);
10949
10941
  let o = ug(t, e), a = o < 0 ? Math.pow(10, Math.abs(o)) : 1;
10950
- const r = Math.pow(10, o), l = n > o ? Math.pow(10, n) : 0, c = Math.round((t - l) * a) / a, A = Math.floor((t - l) / r / 10) * r * 10;
10951
- let h = Math.floor((c - A) / Math.pow(10, o)), d = ut(i.min, Math.round((l + A + h * Math.pow(10, o)) * a) / a);
10942
+ const r = Math.pow(10, o), l = n > o ? Math.pow(10, n) : 0, A = Math.round((t - l) * a) / a, c = Math.floor((t - l) / r / 10) * r * 10;
10943
+ let h = Math.floor((A - c) / Math.pow(10, o)), d = ut(i.min, Math.round((l + c + h * Math.pow(10, o)) * a) / a);
10952
10944
  for (; d < e; )
10953
10945
  s.push({
10954
10946
  value: d,
10955
10947
  major: bo(d),
10956
10948
  significand: h
10957
- }), h >= 10 ? h = h < 15 ? 15 : 20 : h++, h >= 20 && (o++, h = 2, a = o >= 0 ? 1 : a), d = Math.round((l + A + h * Math.pow(10, o)) * a) / a;
10949
+ }), h >= 10 ? h = h < 15 ? 15 : 20 : h++, h >= 20 && (o++, h = 2, a = o >= 0 ? 1 : a), d = Math.round((l + c + h * Math.pow(10, o)) * a) / a;
10958
10950
  const g = ut(i.max, d);
10959
10951
  return s.push({
10960
10952
  value: g,
@@ -10995,7 +10987,7 @@ class ys extends De {
10995
10987
  return t.bounds === "ticks" && Ko(s, this, "value"), t.reverse ? (s.reverse(), this.start = this.max, this.end = this.min) : (this.start = this.min, this.end = this.max), s;
10996
10988
  }
10997
10989
  getLabelForValue(t) {
10998
- return t === void 0 ? "0" : Ai(t, this.chart.options.locale, this.options.ticks.format);
10990
+ return t === void 0 ? "0" : ci(t, this.chart.options.locale, this.options.ticks.format);
10999
10991
  }
11000
10992
  configure() {
11001
10993
  const t = this.min;
@@ -11029,7 +11021,7 @@ function pg(i, t, e) {
11029
11021
  return e = j(e) ? e : [
11030
11022
  e
11031
11023
  ], {
11032
- w: Gc(i, t.string, e),
11024
+ w: GA(i, t.string, e),
11033
11025
  h: e.length * t.lineHeight
11034
11026
  };
11035
11027
  }
@@ -11053,11 +11045,11 @@ function wg(i) {
11053
11045
  b: i.bottom - i._padding.bottom
11054
11046
  }, e = Object.assign({}, t), s = [], n = [], o = i._pointLabels.length, a = i.options.pointLabels, r = a.centerPointLabels ? H / o : 0;
11055
11047
  for (let l = 0; l < o; l++) {
11056
- const c = a.setContext(i.getPointLabelContext(l));
11057
- n[l] = c.padding;
11058
- const A = i.getPointPosition(l, i.drawingArea + n[l], r), h = _(c.font), d = pg(i.ctx, h, i._pointLabels[l]);
11048
+ const A = a.setContext(i.getPointLabelContext(l));
11049
+ n[l] = A.padding;
11050
+ const c = i.getPointPosition(l, i.drawingArea + n[l], r), h = _(A.font), d = pg(i.ctx, h, i._pointLabels[l]);
11059
11051
  s[l] = d;
11060
- const g = ft(i.getIndexAngle(l) + r), u = Math.round(zs(g)), f = Do(u, A.x, d.w, 0, 180), p = Do(u, A.y, d.h, 90, 270);
11052
+ const g = ft(i.getIndexAngle(l) + r), u = Math.round(zs(g)), f = Do(u, c.x, d.w, 0, 180), p = Do(u, c.y, d.h, 90, 270);
11061
11053
  mg(e, t, g, f, p);
11062
11054
  }
11063
11055
  i.setCenterPoint(t.l - e.l, e.r - t.r, t.t - e.t, e.b - t.b), i._pointLabelItems = Dg(i, s, n);
@@ -11068,16 +11060,16 @@ function mg(i, t, e, s, n) {
11068
11060
  s.start < t.l ? (r = (t.l - s.start) / o, i.l = Math.min(i.l, t.l - r)) : s.end > t.r && (r = (s.end - t.r) / o, i.r = Math.max(i.r, t.r + r)), n.start < t.t ? (l = (t.t - n.start) / a, i.t = Math.min(i.t, t.t - l)) : n.end > t.b && (l = (n.end - t.b) / a, i.b = Math.max(i.b, t.b + l));
11069
11061
  }
11070
11062
  function bg(i, t, e) {
11071
- const s = i.drawingArea, { extra: n, additionalAngle: o, padding: a, size: r } = e, l = i.getPointPosition(t, s + n + a, o), c = Math.round(zs(ft(l.angle + X))), A = Gg(l.y, r.h, c), h = Bg(c), d = xg(l.x, r.w, h);
11063
+ const s = i.drawingArea, { extra: n, additionalAngle: o, padding: a, size: r } = e, l = i.getPointPosition(t, s + n + a, o), A = Math.round(zs(ft(l.angle + X))), c = Gg(l.y, r.h, A), h = Bg(A), d = xg(l.x, r.w, h);
11072
11064
  return {
11073
11065
  visible: !0,
11074
11066
  x: l.x,
11075
- y: A,
11067
+ y: c,
11076
11068
  textAlign: h,
11077
11069
  left: d,
11078
- top: A,
11070
+ top: c,
11079
11071
  right: d + r.w,
11080
- bottom: A + r.h
11072
+ bottom: c + r.h
11081
11073
  };
11082
11074
  }
11083
11075
  function Mg(i, t) {
@@ -11103,11 +11095,11 @@ function Dg(i, t, e) {
11103
11095
  extra: Cs(o) / 2,
11104
11096
  additionalAngle: a ? H / n : 0
11105
11097
  };
11106
- let c;
11107
- for (let A = 0; A < n; A++) {
11108
- l.padding = e[A], l.size = t[A];
11109
- const h = bg(i, A, l);
11110
- s.push(h), r === "auto" && (h.visible = Mg(h, c), h.visible && (c = h));
11098
+ let A;
11099
+ for (let c = 0; c < n; c++) {
11100
+ l.padding = e[c], l.size = t[c];
11101
+ const h = bg(i, c, l);
11102
+ s.push(h), r === "auto" && (h.visible = Mg(h, A), h.visible && (A = h));
11111
11103
  }
11112
11104
  return s;
11113
11105
  }
@@ -11123,16 +11115,16 @@ function Gg(i, t, e) {
11123
11115
  function Yg(i, t, e) {
11124
11116
  const { left: s, top: n, right: o, bottom: a } = e, { backdropColor: r } = t;
11125
11117
  if (!z(r)) {
11126
- const l = de(t.borderRadius), c = at(t.backdropPadding);
11118
+ const l = de(t.borderRadius), A = at(t.backdropPadding);
11127
11119
  i.fillStyle = r;
11128
- const A = s - c.left, h = n - c.top, d = o - s + c.width, g = a - n + c.height;
11120
+ const c = s - A.left, h = n - A.top, d = o - s + A.width, g = a - n + A.height;
11129
11121
  Object.values(l).some((u) => u !== 0) ? (i.beginPath(), oi(i, {
11130
- x: A,
11122
+ x: c,
11131
11123
  y: h,
11132
11124
  w: d,
11133
11125
  h: g,
11134
11126
  radius: l
11135
- }), i.fill()) : i.fillRect(A, h, d, g);
11127
+ }), i.fill()) : i.fillRect(c, h, d, g);
11136
11128
  }
11137
11129
  }
11138
11130
  function vg(i, t) {
@@ -11143,10 +11135,10 @@ function vg(i, t) {
11143
11135
  continue;
11144
11136
  const a = s.setContext(i.getPointLabelContext(n));
11145
11137
  Yg(e, a, o);
11146
- const r = _(a.font), { x: l, y: c, textAlign: A } = o;
11147
- fe(e, i._pointLabels[n], l, c + r.lineHeight / 2, r, {
11138
+ const r = _(a.font), { x: l, y: A, textAlign: c } = o;
11139
+ fe(e, i._pointLabels[n], l, A + r.lineHeight / 2, r, {
11148
11140
  color: a.color,
11149
- textAlign: A,
11141
+ textAlign: c,
11150
11142
  textBaseline: "middle"
11151
11143
  });
11152
11144
  }
@@ -11259,17 +11251,17 @@ class Ke extends Ki {
11259
11251
  }
11260
11252
  drawGrid() {
11261
11253
  const t = this.ctx, e = this.options, { angleLines: s, grid: n, border: o } = e, a = this._pointLabels.length;
11262
- let r, l, c;
11263
- if (e.pointLabels.display && vg(this, a), n.display && this.ticks.forEach((A, h) => {
11254
+ let r, l, A;
11255
+ if (e.pointLabels.display && vg(this, a), n.display && this.ticks.forEach((c, h) => {
11264
11256
  if (h !== 0 || h === 0 && this.min < 0) {
11265
- l = this.getDistanceFromCenterForValue(A.value);
11257
+ l = this.getDistanceFromCenterForValue(c.value);
11266
11258
  const d = this.getContext(h), g = n.setContext(d), u = o.setContext(d);
11267
11259
  yg(this, g, l, a, u);
11268
11260
  }
11269
11261
  }), s.display) {
11270
11262
  for (t.save(), r = a - 1; r >= 0; r--) {
11271
- const A = s.setContext(this.getPointLabelContext(r)), { color: h, lineWidth: d } = A;
11272
- !d || !h || (t.lineWidth = d, t.strokeStyle = h, t.setLineDash(A.borderDash), t.lineDashOffset = A.borderDashOffset, l = this.getDistanceFromCenterForValue(e.ticks.reverse ? this.min : this.max), c = this.getPointPosition(r, l), t.beginPath(), t.moveTo(this.xCenter, this.yCenter), t.lineTo(c.x, c.y), t.stroke());
11263
+ const c = s.setContext(this.getPointLabelContext(r)), { color: h, lineWidth: d } = c;
11264
+ !d || !h || (t.lineWidth = d, t.strokeStyle = h, t.setLineDash(c.borderDash), t.lineDashOffset = c.borderDashOffset, l = this.getDistanceFromCenterForValue(e.ticks.reverse ? this.min : this.max), A = this.getPointPosition(r, l), t.beginPath(), t.moveTo(this.xCenter, this.yCenter), t.lineTo(A.x, A.y), t.stroke());
11273
11265
  }
11274
11266
  t.restore();
11275
11267
  }
@@ -11285,16 +11277,16 @@ class Ke extends Ki {
11285
11277
  t.save(), t.translate(this.xCenter, this.yCenter), t.rotate(n), t.textAlign = "center", t.textBaseline = "middle", this.ticks.forEach((r, l) => {
11286
11278
  if (l === 0 && this.min >= 0 && !e.reverse)
11287
11279
  return;
11288
- const c = s.setContext(this.getContext(l)), A = _(c.font);
11289
- if (o = this.getDistanceFromCenterForValue(this.ticks[l].value), c.showLabelBackdrop) {
11290
- t.font = A.string, a = t.measureText(r.label).width, t.fillStyle = c.backdropColor;
11291
- const h = at(c.backdropPadding);
11292
- t.fillRect(-a / 2 - h.left, -o - A.size / 2 - h.top, a + h.width, A.size + h.height);
11280
+ const A = s.setContext(this.getContext(l)), c = _(A.font);
11281
+ if (o = this.getDistanceFromCenterForValue(this.ticks[l].value), A.showLabelBackdrop) {
11282
+ t.font = c.string, a = t.measureText(r.label).width, t.fillStyle = A.backdropColor;
11283
+ const h = at(A.backdropPadding);
11284
+ t.fillRect(-a / 2 - h.left, -o - c.size / 2 - h.top, a + h.width, c.size + h.height);
11293
11285
  }
11294
- fe(t, r.label, 0, -o, A, {
11295
- color: c.color,
11296
- strokeColor: c.textStrokeColor,
11297
- strokeWidth: c.textStrokeWidth
11286
+ fe(t, r.label, 0, -o, c, {
11287
+ color: A.color,
11288
+ strokeColor: A.textStrokeColor,
11289
+ strokeWidth: A.textStrokeWidth
11298
11290
  });
11299
11291
  }), t.restore();
11300
11292
  }
@@ -11453,7 +11445,7 @@ class li extends De {
11453
11445
  }, this._unit = "day", this._majorUnit = void 0, this._offsets = {}, this._normalized = !1, this._parseOpts = void 0;
11454
11446
  }
11455
11447
  init(t, e = {}) {
11456
- const s = t.time || (t.time = {}), n = this._adapter = new jA._date(t.adapters.date);
11448
+ const s = t.time || (t.time = {}), n = this._adapter = new jc._date(t.adapters.date);
11457
11449
  n.init(e), Ue(s.displayFormats, n.formats()), this._parseOpts = {
11458
11450
  parser: s.parser,
11459
11451
  round: s.round,
@@ -11473,8 +11465,8 @@ class li extends De {
11473
11465
  determineDataLimits() {
11474
11466
  const t = this.options, e = this._adapter, s = t.time.unit || "day";
11475
11467
  let { min: n, max: o, minDefined: a, maxDefined: r } = this.getUserBounds();
11476
- function l(c) {
11477
- !a && !isNaN(c.min) && (n = Math.min(n, c.min)), !r && !isNaN(c.max) && (o = Math.max(o, c.max));
11468
+ function l(A) {
11469
+ !a && !isNaN(A.min) && (n = Math.min(n, A.min)), !r && !isNaN(A.max) && (o = Math.max(o, A.max));
11478
11470
  }
11479
11471
  (!a || !r) && (l(this._getLabelBounds()), (t.bounds !== "ticks" || t.ticks.source !== "labels") && l(this.getMinMax(!1))), n = Z(n) && !isNaN(n) ? n : +e.startOf(Date.now(), s), o = Z(o) && !isNaN(o) ? o : +e.endOf(Date.now(), s) + 1, this.min = Math.min(n, o - 1), this.max = Math.max(n + 1, o);
11480
11472
  }
@@ -11489,7 +11481,7 @@ class li extends De {
11489
11481
  buildTicks() {
11490
11482
  const t = this.options, e = t.time, s = t.ticks, n = s.source === "labels" ? this.getLabelTimestamps() : this._generate();
11491
11483
  t.bounds === "ticks" && n.length && (this.min = this._userMin || n[0], this.max = this._userMax || n[n.length - 1]);
11492
- const o = this.min, a = this.max, r = hc(n, o, a);
11484
+ const o = this.min, a = this.max, r = hA(n, o, a);
11493
11485
  return this._unit = e.unit || (s.autoSkip ? Go(e.minUnit, this.min, this.max, this._getLabelCapacity(o)) : Ig(this, r.length, e.minUnit, this.min, this.max)), this._majorUnit = !s.major.enabled || this._unit === "year" ? void 0 : Eg(this._unit), this.initOffsets(n), t.reverse && r.reverse(), vo(this, r, this._majorUnit);
11494
11486
  }
11495
11487
  afterAutoSkip() {
@@ -11506,14 +11498,14 @@ class li extends De {
11506
11498
  };
11507
11499
  }
11508
11500
  _generate() {
11509
- const t = this._adapter, e = this.min, s = this.max, n = this.options, o = n.time, a = o.unit || Go(o.minUnit, e, s, this._getLabelCapacity(e)), r = E(n.ticks.stepSize, 1), l = a === "week" ? o.isoWeekday : !1, c = Ee(l) || l === !0, A = {};
11501
+ const t = this._adapter, e = this.min, s = this.max, n = this.options, o = n.time, a = o.unit || Go(o.minUnit, e, s, this._getLabelCapacity(e)), r = E(n.ticks.stepSize, 1), l = a === "week" ? o.isoWeekday : !1, A = Ee(l) || l === !0, c = {};
11510
11502
  let h = e, d, g;
11511
- if (c && (h = +t.startOf(h, "isoWeek", l)), h = +t.startOf(h, c ? "day" : a), t.diff(s, e, a) > 1e5 * r)
11503
+ if (A && (h = +t.startOf(h, "isoWeek", l)), h = +t.startOf(h, A ? "day" : a), t.diff(s, e, a) > 1e5 * r)
11512
11504
  throw new Error(e + " and " + s + " are too far apart with stepSize of " + r + " " + a);
11513
11505
  const u = n.ticks.source === "data" && this.getDataTimestamps();
11514
11506
  for (d = h, g = 0; d < s; d = +t.add(d, r, a), g++)
11515
- Yo(A, d, u);
11516
- return (d === s || n.bounds === "ticks" || g === 1) && Yo(A, d, u), Object.keys(A).sort(Bo).map((f) => +f);
11507
+ Yo(c, d, u);
11508
+ return (d === s || n.bounds === "ticks" || g === 1) && Yo(c, d, u), Object.keys(c).sort(Bo).map((f) => +f);
11517
11509
  }
11518
11510
  getLabelForValue(t) {
11519
11511
  const e = this._adapter, s = this.options.time;
@@ -11531,8 +11523,8 @@ class li extends De {
11531
11523
  e,
11532
11524
  s
11533
11525
  ], this);
11534
- const r = o.time.displayFormats, l = this._unit, c = this._majorUnit, A = l && r[l], h = c && r[c], d = s[e], g = c && h && d && d.major;
11535
- return this._adapter.format(t, n || (g ? h : A));
11526
+ const r = o.time.displayFormats, l = this._unit, A = this._majorUnit, c = l && r[l], h = A && r[A], d = s[e], g = A && h && d && d.major;
11527
+ return this._adapter.format(t, n || (g ? h : c));
11536
11528
  }
11537
11529
  generateTickLabels(t) {
11538
11530
  let e, s, n;
@@ -11610,8 +11602,8 @@ Y(li, "id", "time"), Y(li, "defaults", {
11610
11602
  function Ii(i, t, e) {
11611
11603
  let s = 0, n = i.length - 1, o, a, r, l;
11612
11604
  e ? (t >= i[s].pos && t <= i[n].pos && ({ lo: s, hi: n } = Rt(i, "pos", t)), { pos: o, time: r } = i[s], { pos: a, time: l } = i[n]) : (t >= i[s].time && t <= i[n].time && ({ lo: s, hi: n } = Rt(i, "time", t)), { time: o, pos: r } = i[s], { time: a, pos: l } = i[n]);
11613
- const c = a - o;
11614
- return c ? r + (l - r) * (t - o) / c : r;
11605
+ const A = a - o;
11606
+ return A ? r + (l - r) * (t - o) / A : r;
11615
11607
  }
11616
11608
  class Is extends li {
11617
11609
  constructor(t) {
@@ -11623,9 +11615,9 @@ class Is extends li {
11623
11615
  }
11624
11616
  buildLookupTable(t) {
11625
11617
  const { min: e, max: s } = this, n = [], o = [];
11626
- let a, r, l, c, A;
11618
+ let a, r, l, A, c;
11627
11619
  for (a = 0, r = t.length; a < r; ++a)
11628
- c = t[a], c >= e && c <= s && n.push(c);
11620
+ A = t[a], A >= e && A <= s && n.push(A);
11629
11621
  if (n.length < 2)
11630
11622
  return [
11631
11623
  {
@@ -11638,8 +11630,8 @@ class Is extends li {
11638
11630
  }
11639
11631
  ];
11640
11632
  for (a = 0, r = n.length; a < r; ++a)
11641
- A = n[a + 1], l = n[a - 1], c = n[a], Math.round((A + l) / 2) !== c && o.push({
11642
- time: c,
11633
+ c = n[a + 1], l = n[a - 1], A = n[a], Math.round((c + l) / 2) !== A && o.push({
11634
+ time: A,
11643
11635
  pos: a / (r - 1)
11644
11636
  });
11645
11637
  return o;
@@ -11675,9 +11667,9 @@ var Qg = /* @__PURE__ */ Object.freeze({
11675
11667
  TimeSeriesScale: Is
11676
11668
  });
11677
11669
  const Pg = [
11678
- RA,
11670
+ Rc,
11679
11671
  fd,
11680
- cg,
11672
+ Ag,
11681
11673
  Qg
11682
11674
  ];
11683
11675
  Lt.register(...Pg);
@@ -12705,10 +12697,10 @@ const nu = B`
12705
12697
  height: var(--icon-height, 1.5625rem);
12706
12698
  }
12707
12699
  `;
12708
- var cu = Object.defineProperty, Au = Object.getOwnPropertyDescriptor, ie = (i, t, e, s) => {
12709
- for (var n = s > 1 ? void 0 : s ? Au(t, e) : t, o = i.length - 1, a; o >= 0; o--)
12700
+ var Au = Object.defineProperty, cu = Object.getOwnPropertyDescriptor, ie = (i, t, e, s) => {
12701
+ for (var n = s > 1 ? void 0 : s ? cu(t, e) : t, o = i.length - 1, a; o >= 0; o--)
12710
12702
  (a = i[o]) && (n = (s ? a(t, e, n) : a(n)) || n);
12711
- return s && n && cu(t, e, n), n;
12703
+ return s && n && Au(t, e, n), n;
12712
12704
  };
12713
12705
  let kt = class extends J {
12714
12706
  constructor() {