@konstructio/ui 0.1.2-alpha.5 → 0.1.2-alpha.51

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.
Files changed (203) hide show
  1. package/dist/{Combination-VYaRRJBZ.js → Combination-BtmnusWq.js} +141 -138
  2. package/dist/DatePicker.css +1 -1
  3. package/dist/Modal-CjC-CIJ8.js +99 -0
  4. package/dist/assets/icons/index.js +7 -0
  5. package/dist/chevron-down-DgT-uSF9.js +5 -0
  6. package/dist/chevron-right-DYvXLeql.js +7 -0
  7. package/dist/chevron-up-DEfvgPCw.js +54 -0
  8. package/dist/chevron-up-DrQr2Fwd.js +5 -0
  9. package/dist/components/Alert/Alert.js +2 -2
  10. package/dist/components/AlertDialog/AlertDialog.js +81 -53
  11. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +3 -2
  12. package/dist/components/AlertDialog/components/index.js +1 -1
  13. package/dist/components/Badge/Badge.js +41 -44
  14. package/dist/components/Badge/Badge.variants.js +52 -13
  15. package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
  16. package/dist/components/Breadcrumb/Breadcrumb.variants.js +3 -3
  17. package/dist/components/Breadcrumb/components/Item/Item.js +22 -22
  18. package/dist/components/Breadcrumb/components/Item/Item.variants.js +25 -14
  19. package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
  20. package/dist/components/Button/Button.js +1 -1
  21. package/dist/components/Button/Button.variants.js +108 -98
  22. package/dist/components/Card/Card.variants.js +7 -12
  23. package/dist/components/Checkbox/Checkbox.js +108 -105
  24. package/dist/components/Checkbox/Checkbox.variants.js +34 -7
  25. package/dist/components/Command/Command.js +2 -2
  26. package/dist/components/Command/components/Command.js +1 -1
  27. package/dist/components/Command/components/CommandEmpty.js +1 -1
  28. package/dist/components/Command/components/CommandGroup.js +1 -1
  29. package/dist/components/Command/components/CommandInput.js +2 -2
  30. package/dist/components/Command/components/CommandItem.js +1 -1
  31. package/dist/components/Command/components/CommandList.js +1 -1
  32. package/dist/components/Command/components/CommandSeparator.js +1 -1
  33. package/dist/components/Command/components/DialogContent.js +2 -2
  34. package/dist/components/Command/components/DialogOverlay.js +1 -1
  35. package/dist/components/Counter/Counter.js +210 -0
  36. package/dist/components/Counter/Counter.variants.js +70 -0
  37. package/dist/components/Datepicker/DatePicker.js +1587 -1353
  38. package/dist/components/Divider/Divider.variants.js +1 -1
  39. package/dist/components/DropdownButton/DropdownButton.js +1 -1
  40. package/dist/components/Filter/Filter.js +1 -1
  41. package/dist/components/Filter/Filter.variants.js +8 -7
  42. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +71 -45
  43. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +2 -2
  44. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +76 -43
  45. package/dist/components/Filter/components/ResetButton/ResetButton.js +15 -12
  46. package/dist/components/Filter/events/index.js +3 -3
  47. package/dist/components/ImageUpload/ImageUpload.js +221 -0
  48. package/dist/components/ImageUpload/ImageUpload.variants.js +109 -0
  49. package/dist/components/Input/Input.js +185 -118
  50. package/dist/components/Input/Input.variants.js +24 -19
  51. package/dist/components/Loading/Loading.js +1 -7
  52. package/dist/components/Modal/Modal.js +2 -2
  53. package/dist/components/Modal/components/Body/Body.js +1 -1
  54. package/dist/components/Modal/components/Footer/Footer.js +1 -1
  55. package/dist/components/Modal/components/Header/Header.js +1 -1
  56. package/dist/components/Modal/components/Wrapper/Wrapper.js +4 -4
  57. package/dist/components/Modal/components/index.js +1 -1
  58. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +34 -0
  59. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.variants.js +30 -0
  60. package/dist/components/MultiSelectDropdown/components/Item/Item.js +30 -0
  61. package/dist/components/MultiSelectDropdown/components/Item/Item.variants.js +38 -0
  62. package/dist/components/MultiSelectDropdown/components/List/List.js +30 -0
  63. package/dist/components/MultiSelectDropdown/components/List/List.variants.js +25 -0
  64. package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +119 -0
  65. package/dist/components/MultiSelectDropdown/components/index.js +8 -0
  66. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.context.js +21 -0
  67. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.hook.js +13 -0
  68. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.provider.js +138 -0
  69. package/dist/components/MultiSelectDropdown/contexts/index.js +6 -0
  70. package/dist/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js +32 -0
  71. package/dist/components/PhoneNumberInput/PhoneNumberInput.js +8 -0
  72. package/dist/components/PhoneNumberInput/PhoneNumberInput.variants.js +46 -0
  73. package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +36 -0
  74. package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +690 -0
  75. package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +60 -0
  76. package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +45 -0
  77. package/dist/components/PhoneNumberInput/components/Wrapper.js +651 -0
  78. package/dist/components/PhoneNumberInput/components/index.js +6 -0
  79. package/dist/components/PhoneNumberInput/contexts/index.js +8 -0
  80. package/dist/components/PhoneNumberInput/contexts/phone-number.context.js +28 -0
  81. package/dist/components/PhoneNumberInput/contexts/phone-number.hook.js +13 -0
  82. package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +6144 -0
  83. package/dist/components/PhoneNumberInput/utils/index.js +11 -0
  84. package/dist/components/PieChart/PieChart.js +463 -482
  85. package/dist/components/Radio/Radio.js +47 -44
  86. package/dist/components/Radio/Radio.variants.js +12 -8
  87. package/dist/components/RadioCard/RadioCard.variants.js +1 -6
  88. package/dist/components/RadioGroup/RadioGroup.js +10 -10
  89. package/dist/components/Range/Range.js +1 -1
  90. package/dist/components/Select/Select.js +48 -0
  91. package/dist/components/{Dropdown/Dropdown.variants.js → Select/Select.variants.js} +17 -11
  92. package/dist/components/Select/components/List/List.js +172 -0
  93. package/dist/components/{Dropdown → Select}/components/List/List.variants.js +11 -8
  94. package/dist/components/Select/components/ListItem/ListItem.js +117 -0
  95. package/dist/components/{Dropdown → Select}/components/ListItem/ListItem.variants.js +5 -4
  96. package/dist/components/Select/components/Wrapper.js +226 -0
  97. package/dist/components/Select/constants/index.js +4 -0
  98. package/dist/components/Select/constants/pagination.js +4 -0
  99. package/dist/components/Select/contexts/index.js +6 -0
  100. package/dist/components/Select/contexts/select.context.js +36 -0
  101. package/dist/components/Select/contexts/select.hook.js +11 -0
  102. package/dist/components/Select/contexts/select.provider.js +58 -0
  103. package/dist/components/Select/hooks/useNavigationList.js +50 -0
  104. package/dist/components/Select/hooks/useSelect.js +103 -0
  105. package/dist/components/Sidebar/Sidebar.variants.js +2 -2
  106. package/dist/components/Slider/Slider.js +1 -1
  107. package/dist/components/Switch/Switch.js +156 -129
  108. package/dist/components/Switch/Switch.variants.js +19 -10
  109. package/dist/components/Tabs/Tabs.js +1 -1
  110. package/dist/components/Tabs/Tabs.variants.js +4 -3
  111. package/dist/components/Tabs/components/Content.js +1 -1
  112. package/dist/components/Tabs/components/List.js +1 -1
  113. package/dist/components/Tabs/components/Trigger.js +1 -1
  114. package/dist/components/Tag/Tag.js +1 -1
  115. package/dist/components/Tag/Tag.variants.js +1 -0
  116. package/dist/components/TagSelect/components/Wrapper/Wrapper.js +49 -98
  117. package/dist/components/TimePicker/TimePicker.js +1 -1
  118. package/dist/components/TimePicker/TimePicker.variants.js +26 -14
  119. package/dist/components/TimePicker/components/MeridianList/MeridianList.js +30 -20
  120. package/dist/components/TimePicker/components/Wrapper/Wrapper.js +57 -35
  121. package/dist/components/TimePicker/components/WrapperList/WrapperList.js +53 -45
  122. package/dist/components/Toast/Toast.js +283 -256
  123. package/dist/components/Toast/Toast.variants.js +37 -24
  124. package/dist/components/Tooltip/Tooltip.js +15 -14
  125. package/dist/components/Tooltip/Tooltip.variants.js +5 -4
  126. package/dist/components/Typography/Typography.js +23 -25
  127. package/dist/components/Typography/Typography.variants.js +55 -52
  128. package/dist/components/VirtualizedTable/VirtualizedTable.js +97 -71
  129. package/dist/components/VirtualizedTable/components/Actions/Actions.js +95 -33
  130. package/dist/components/VirtualizedTable/components/Body/Body.js +73 -21
  131. package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +94 -91
  132. package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +20 -20
  133. package/dist/components/VirtualizedTable/components/Filter/Filter.js +61 -44
  134. package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +33 -21
  135. package/dist/components/VirtualizedTable/components/Header/Header.js +61 -41
  136. package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +43 -22
  137. package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +106 -0
  138. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +22 -1858
  139. package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +27 -0
  140. package/dist/components/VirtualizedTable/components/index.js +8 -6
  141. package/dist/components/VirtualizedTable/contexts/table.context.js +1 -0
  142. package/dist/components/VirtualizedTable/contexts/table.provider.js +68 -761
  143. package/dist/components/index.js +94 -86
  144. package/dist/contexts/theme.provider.js +0 -1
  145. package/dist/{createLucideIcon-D2CN7Ma9.js → createLucideIcon-D4r5Phnh.js} +0 -24
  146. package/dist/ellipsis-vertical-BVPtjl5f.js +9 -0
  147. package/dist/{index-C1g_chDT.js → index-AV6ZtGhy.js} +2 -2
  148. package/dist/index-BG8O18ZY.js +93 -0
  149. package/dist/index-BKjcReYh.js +55 -0
  150. package/dist/{index-N2OStZoU.js → index-BOE_3f_Z.js} +4 -25
  151. package/dist/{index-Cd2vhaop.js → index-BlSRBdPy.js} +5 -6
  152. package/dist/index-BmVmDQGH.js +662 -0
  153. package/dist/index-BvoZGpli.js +60 -0
  154. package/dist/index-Byr10W8m.js +1873 -0
  155. package/dist/{index-Dx2grAuN.js → index-CSWGJT-v.js} +0 -20
  156. package/dist/index-CeZcoQDw.js +479 -0
  157. package/dist/index-D6KzX_ef.js +135 -0
  158. package/dist/{index-B7t8D14s.js → index-D9SSJ6om.js} +4 -4
  159. package/dist/index-DKfEnhKr.js +200 -0
  160. package/dist/index-DLcqcWxM.js +29 -0
  161. package/dist/{index-ti1b9kqV.js → index-DMb4KD0b.js} +4 -4
  162. package/dist/{index-BAEWsOG1.js → index-DtEcCIrM.js} +1 -1
  163. package/dist/{index-bwWKd82e.js → index-Dy59FQl5.js} +1 -1
  164. package/dist/{index-C84F4YyO.js → index-gSPwC-1I.js} +10 -11
  165. package/dist/{index-Bnb0ezr3.js → index-vcSp8YRZ.js} +11 -12
  166. package/dist/index.d.ts +2142 -99
  167. package/dist/index.js +116 -106
  168. package/dist/libphonenumber-FTwQ9nyV.js +11549 -0
  169. package/dist/loader-juvMSJ9L.js +5 -0
  170. package/dist/package.json +43 -33
  171. package/dist/styles.css +1 -1
  172. package/dist/ui/civo-theme.css +194 -168
  173. package/dist/ui/theme.css +27 -0
  174. package/dist/{useBreadcrumb-B8DnuqkR.js → useBreadcrumb-BAHbGQ_O.js} +0 -10
  175. package/dist/utils/index.js +534 -501
  176. package/dist/x-BXShoIAM.js +8 -0
  177. package/dist/{x-4F_5p77m.js → x-Eoa9FJjA.js} +1 -1
  178. package/package.json +43 -33
  179. package/dist/Modal-D-NOEWMX.js +0 -98
  180. package/dist/chevron-down-MZvQoT2F.js +0 -11
  181. package/dist/chevron-right-VYBOBhRt.js +0 -19
  182. package/dist/components/Dropdown/Dropdown.js +0 -42
  183. package/dist/components/Dropdown/components/List/List.js +0 -79
  184. package/dist/components/Dropdown/components/ListItem/ListItem.js +0 -67
  185. package/dist/components/Dropdown/components/Wrapper.js +0 -205
  186. package/dist/components/Dropdown/contexts/dropdown.context.js +0 -19
  187. package/dist/components/Dropdown/contexts/dropdown.hook.js +0 -13
  188. package/dist/components/Dropdown/contexts/dropdown.provider.js +0 -30
  189. package/dist/components/Dropdown/contexts/index.js +0 -6
  190. package/dist/components/Dropdown/hooks/useDropdown.js +0 -58
  191. package/dist/components/Dropdown/hooks/useNavigationList.js +0 -62
  192. package/dist/components/NumberInput/NumberInput.js +0 -179
  193. package/dist/components/NumberInput/NumberInput.variants.js +0 -50
  194. package/dist/components/TimePicker/components/WrapperList/WrapperList.variants.js +0 -16
  195. package/dist/index-BITvcJAz.js +0 -423
  196. package/dist/index-BfXxHr_2.js +0 -125
  197. package/dist/index-Cvx4lqTq.js +0 -47
  198. package/dist/index-DBbEcSUG.js +0 -31
  199. package/dist/index-DQH6odE9.js +0 -82
  200. package/dist/index-DzIBBMjs.js +0 -436
  201. package/dist/index-os7vysFS.js +0 -131
  202. /package/dist/components/{Dropdown → Select}/components/EmptyList.js +0 -0
  203. /package/dist/components/{Dropdown → Select}/components/index.js +0 -0
@@ -1,11 +1,5 @@
1
- import { jsx as ci } from "react/jsx-runtime";
2
- import Ds, { forwardRef as Cs, useRef as Re, useEffect as dt, useMemo as re } from "react";
3
- /*!
4
- * @kurkle/color v0.3.4
5
- * https://github.com/kurkle/color#readme
6
- * (c) 2024 Jukka Kurkela
7
- * Released under the MIT License
8
- */
1
+ import { jsx as ve } from "react/jsx-runtime";
2
+ import { forwardRef as Cs, useRef as Ie, useEffect as dt, useMemo as re } from "react";
9
3
  function It(e) {
10
4
  return e + 0.5 | 0;
11
5
  }
@@ -19,11 +13,11 @@ function et(e) {
19
13
  function G(e) {
20
14
  return Q(It(e / 2.55) / 100, 0, 1);
21
15
  }
22
- function Ie(e) {
16
+ function Te(e) {
23
17
  return Q(It(e * 100), 0, 100);
24
18
  }
25
- const N = { 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 }, me = [..."0123456789ABCDEF"], li = (e) => me[e & 15], hi = (e) => me[(e & 240) >> 4] + me[e & 15], zt = (e) => (e & 240) >> 4 === (e & 15), di = (e) => zt(e.r) && zt(e.g) && zt(e.b) && zt(e.a);
26
- function fi(e) {
19
+ const N = { 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 }, me = [..."0123456789ABCDEF"], ci = (e) => me[e & 15], li = (e) => me[(e & 240) >> 4] + me[e & 15], zt = (e) => (e & 240) >> 4 === (e & 15), hi = (e) => zt(e.r) && zt(e.g) && zt(e.b) && zt(e.a);
20
+ function di(e) {
27
21
  var t = e.length, s;
28
22
  return e[0] === "#" && (t === 4 || t === 5 ? s = {
29
23
  r: 255 & N[e[1]] * 17,
@@ -37,75 +31,75 @@ function fi(e) {
37
31
  a: t === 9 ? N[e[7]] << 4 | N[e[8]] : 255
38
32
  })), s;
39
33
  }
40
- const ui = (e, t) => e < 255 ? t(e) : "";
41
- function gi(e) {
42
- var t = di(e) ? li : hi;
43
- return e ? "#" + t(e.r) + t(e.g) + t(e.b) + ui(e.a, t) : void 0;
34
+ const fi = (e, t) => e < 255 ? t(e) : "";
35
+ function ui(e) {
36
+ var t = hi(e) ? ci : li;
37
+ return e ? "#" + t(e.r) + t(e.g) + t(e.b) + fi(e.a, t) : void 0;
44
38
  }
45
- const pi = /^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;
39
+ const gi = /^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;
46
40
  function As(e, t, s) {
47
41
  const i = t * Math.min(s, 1 - s), n = (o, r = (o + e / 30) % 12) => s - i * Math.max(Math.min(r - 3, 9 - r, 1), -1);
48
42
  return [n(0), n(8), n(4)];
49
43
  }
50
- function mi(e, t, s) {
44
+ function pi(e, t, s) {
51
45
  const i = (n, o = (n + e / 60) % 6) => s - s * t * Math.max(Math.min(o, 4 - o, 1), 0);
52
46
  return [i(5), i(3), i(1)];
53
47
  }
54
- function _i(e, t, s) {
48
+ function mi(e, t, s) {
55
49
  const i = As(e, 1, 0.5);
56
50
  let n;
57
51
  for (t + s > 1 && (n = 1 / (t + s), t *= n, s *= n), n = 0; n < 3; n++)
58
52
  i[n] *= 1 - t - s, i[n] += t;
59
53
  return i;
60
54
  }
61
- function bi(e, t, s, i, n) {
55
+ function _i(e, t, s, i, n) {
62
56
  return e === n ? (t - s) / i + (t < s ? 6 : 0) : t === n ? (s - e) / i + 2 : (e - t) / i + 4;
63
57
  }
64
- function ve(e) {
58
+ function we(e) {
65
59
  const s = e.r / 255, i = e.g / 255, n = e.b / 255, o = Math.max(s, i, n), r = Math.min(s, i, n), a = (o + r) / 2;
66
60
  let c, l, h;
67
- return o !== r && (h = o - r, l = a > 0.5 ? h / (2 - o - r) : h / (o + r), c = bi(s, i, n, h, o), c = c * 60 + 0.5), [c | 0, l || 0, a];
61
+ return o !== r && (h = o - r, l = a > 0.5 ? h / (2 - o - r) : h / (o + r), c = _i(s, i, n, h, o), c = c * 60 + 0.5), [c | 0, l || 0, a];
68
62
  }
69
- function we(e, t, s, i) {
63
+ function Me(e, t, s, i) {
70
64
  return (Array.isArray(t) ? e(t[0], t[1], t[2]) : e(t, s, i)).map(et);
71
65
  }
72
- function Me(e, t, s) {
73
- return we(As, e, t, s);
66
+ function ke(e, t, s) {
67
+ return Me(As, e, t, s);
74
68
  }
75
- function xi(e, t, s) {
76
- return we(_i, e, t, s);
69
+ function bi(e, t, s) {
70
+ return Me(mi, e, t, s);
77
71
  }
78
- function yi(e, t, s) {
79
- return we(mi, e, t, s);
72
+ function xi(e, t, s) {
73
+ return Me(pi, e, t, s);
80
74
  }
81
75
  function Ps(e) {
82
76
  return (e % 360 + 360) % 360;
83
77
  }
84
- function vi(e) {
85
- const t = pi.exec(e);
78
+ function yi(e) {
79
+ const t = gi.exec(e);
86
80
  let s = 255, i;
87
81
  if (!t)
88
82
  return;
89
83
  t[5] !== i && (s = t[6] ? kt(+t[5]) : et(+t[5]));
90
84
  const n = Ps(+t[2]), o = +t[3] / 100, r = +t[4] / 100;
91
- return t[1] === "hwb" ? i = xi(n, o, r) : t[1] === "hsv" ? i = yi(n, o, r) : i = Me(n, o, r), {
85
+ return t[1] === "hwb" ? i = bi(n, o, r) : t[1] === "hsv" ? i = xi(n, o, r) : i = ke(n, o, r), {
92
86
  r: i[0],
93
87
  g: i[1],
94
88
  b: i[2],
95
89
  a: s
96
90
  };
97
91
  }
98
- function wi(e, t) {
99
- var s = ve(e);
100
- s[0] = Ps(s[0] + t), s = Me(s), e.r = s[0], e.g = s[1], e.b = s[2];
92
+ function vi(e, t) {
93
+ var s = we(e);
94
+ s[0] = Ps(s[0] + t), s = ke(s), e.r = s[0], e.g = s[1], e.b = s[2];
101
95
  }
102
- function Mi(e) {
96
+ function wi(e) {
103
97
  if (!e)
104
98
  return;
105
- const t = ve(e), s = t[0], i = Ie(t[1]), n = Ie(t[2]);
99
+ const t = we(e), s = t[0], i = Te(t[1]), n = Te(t[2]);
106
100
  return e.a < 255 ? `hsla(${s}, ${i}%, ${n}%, ${G(e.a)})` : `hsl(${s}, ${i}%, ${n}%)`;
107
101
  }
108
- const Te = {
102
+ const Le = {
109
103
  x: "dark",
110
104
  Z: "light",
111
105
  Y: "re",
@@ -133,7 +127,7 @@ const Te = {
133
127
  H: "ea",
134
128
  I: "ightg",
135
129
  J: "wh"
136
- }, Le = {
130
+ }, ze = {
137
131
  OiceXe: "f0f8ff",
138
132
  antiquewEte: "faebd7",
139
133
  aqua: "ffff",
@@ -283,19 +277,19 @@ const Te = {
283
277
  Lw: "ffff00",
284
278
  LwgYF: "9acd32"
285
279
  };
286
- function ki() {
287
- const e = {}, t = Object.keys(Le), s = Object.keys(Te);
280
+ function Mi() {
281
+ const e = {}, t = Object.keys(ze), s = Object.keys(Le);
288
282
  let i, n, o, r, a;
289
283
  for (i = 0; i < t.length; i++) {
290
284
  for (r = a = t[i], n = 0; n < s.length; n++)
291
- o = s[n], a = a.replace(o, Te[o]);
292
- o = parseInt(Le[r], 16), e[a] = [o >> 16 & 255, o >> 8 & 255, o & 255];
285
+ o = s[n], a = a.replace(o, Le[o]);
286
+ o = parseInt(ze[r], 16), e[a] = [o >> 16 & 255, o >> 8 & 255, o & 255];
293
287
  }
294
288
  return e;
295
289
  }
296
290
  let Ft;
297
- function Si(e) {
298
- Ft || (Ft = ki(), Ft.transparent = [0, 0, 0, 0]);
291
+ function ki(e) {
292
+ Ft || (Ft = Mi(), Ft.transparent = [0, 0, 0, 0]);
299
293
  const t = Ft[e.toLowerCase()];
300
294
  return t && {
301
295
  r: t[0],
@@ -304,9 +298,9 @@ function Si(e) {
304
298
  a: t.length === 4 ? t[3] : 255
305
299
  };
306
300
  }
307
- const Oi = /^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;
308
- function Di(e) {
309
- const t = Oi.exec(e);
301
+ const Si = /^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;
302
+ function Oi(e) {
303
+ const t = Si.exec(e);
310
304
  let s = 255, i, n, o;
311
305
  if (t) {
312
306
  if (t[7] !== i) {
@@ -321,11 +315,11 @@ function Di(e) {
321
315
  };
322
316
  }
323
317
  }
324
- function Ci(e) {
318
+ function Di(e) {
325
319
  return e && (e.a < 255 ? `rgba(${e.r}, ${e.g}, ${e.b}, ${G(e.a)})` : `rgb(${e.r}, ${e.g}, ${e.b})`);
326
320
  }
327
321
  const ae = (e) => e <= 31308e-7 ? e * 12.92 : Math.pow(e, 1 / 2.4) * 1.055 - 0.055, ft = (e) => e <= 0.04045 ? e / 12.92 : Math.pow((e + 0.055) / 1.055, 2.4);
328
- function Ai(e, t, s) {
322
+ function Ci(e, t, s) {
329
323
  const i = ft(G(e.r)), n = ft(G(e.g)), o = ft(G(e.b));
330
324
  return {
331
325
  r: et(ae(i + s * (ft(G(t.r)) - i))),
@@ -336,19 +330,19 @@ function Ai(e, t, s) {
336
330
  }
337
331
  function jt(e, t, s) {
338
332
  if (e) {
339
- let i = ve(e);
340
- i[t] = Math.max(0, Math.min(i[t] + i[t] * s, t === 0 ? 360 : 1)), i = Me(i), e.r = i[0], e.g = i[1], e.b = i[2];
333
+ let i = we(e);
334
+ i[t] = Math.max(0, Math.min(i[t] + i[t] * s, t === 0 ? 360 : 1)), i = ke(i), e.r = i[0], e.g = i[1], e.b = i[2];
341
335
  }
342
336
  }
343
337
  function Es(e, t) {
344
338
  return e && Object.assign(t || {}, e);
345
339
  }
346
- function ze(e) {
340
+ function Fe(e) {
347
341
  var t = { r: 0, g: 0, b: 0, a: 255 };
348
342
  return Array.isArray(e) ? e.length >= 3 && (t = { r: e[0], g: e[1], b: e[2], a: 255 }, e.length > 3 && (t.a = et(e[3]))) : (t = Es(e, { r: 0, g: 0, b: 0, a: 1 }), t.a = et(t.a)), t;
349
343
  }
350
- function Pi(e) {
351
- return e.charAt(0) === "r" ? Di(e) : vi(e);
344
+ function Ai(e) {
345
+ return e.charAt(0) === "r" ? Oi(e) : yi(e);
352
346
  }
353
347
  class Ct {
354
348
  constructor(t) {
@@ -356,7 +350,7 @@ class Ct {
356
350
  return t;
357
351
  const s = typeof t;
358
352
  let i;
359
- s === "object" ? i = ze(t) : s === "string" && (i = fi(t) || Si(t) || Pi(t)), this._rgb = i, this._valid = !!i;
353
+ s === "object" ? i = Fe(t) : s === "string" && (i = di(t) || ki(t) || Ai(t)), this._rgb = i, this._valid = !!i;
360
354
  }
361
355
  get valid() {
362
356
  return this._valid;
@@ -366,16 +360,16 @@ class Ct {
366
360
  return t && (t.a = G(t.a)), t;
367
361
  }
368
362
  set rgb(t) {
369
- this._rgb = ze(t);
363
+ this._rgb = Fe(t);
370
364
  }
371
365
  rgbString() {
372
- return this._valid ? Ci(this._rgb) : void 0;
366
+ return this._valid ? Di(this._rgb) : void 0;
373
367
  }
374
368
  hexString() {
375
- return this._valid ? gi(this._rgb) : void 0;
369
+ return this._valid ? ui(this._rgb) : void 0;
376
370
  }
377
371
  hslString() {
378
- return this._valid ? Mi(this._rgb) : void 0;
372
+ return this._valid ? wi(this._rgb) : void 0;
379
373
  }
380
374
  mix(t, s) {
381
375
  if (t) {
@@ -387,7 +381,7 @@ class Ct {
387
381
  return this;
388
382
  }
389
383
  interpolate(t, s) {
390
- return t && (this._rgb = Ai(this._rgb, t._rgb, s)), this;
384
+ return t && (this._rgb = Ci(this._rgb, t._rgb, s)), this;
391
385
  }
392
386
  clone() {
393
387
  return new Ct(this.rgb);
@@ -424,16 +418,10 @@ class Ct {
424
418
  return jt(this._rgb, 1, -t), this;
425
419
  }
426
420
  rotate(t) {
427
- return wi(this._rgb, t), this;
421
+ return vi(this._rgb, t), this;
428
422
  }
429
423
  }
430
- /*!
431
- * Chart.js v4.5.1
432
- * https://www.chartjs.org
433
- * (c) 2025 Chart.js Contributors
434
- * Released under the MIT License
435
- */
436
- const Ei = /* @__PURE__ */ (() => {
424
+ const Pi = /* @__PURE__ */ (() => {
437
425
  let e = 0;
438
426
  return () => e++;
439
427
  })();
@@ -458,7 +446,7 @@ function K(e, t) {
458
446
  function A(e, t) {
459
447
  return typeof e > "u" ? t : e;
460
448
  }
461
- const Ri = (e, t) => typeof e == "string" && e.endsWith("%") ? parseFloat(e) / 100 : +e / t, Rs = (e, t) => typeof e == "string" && e.endsWith("%") ? parseFloat(e) / 100 * t : +e;
449
+ const Ei = (e, t) => typeof e == "string" && e.endsWith("%") ? parseFloat(e) / 100 : +e / t, Rs = (e, t) => typeof e == "string" && e.endsWith("%") ? parseFloat(e) / 100 * t : +e;
462
450
  function E(e, t, s) {
463
451
  if (e && typeof e.call == "function")
464
452
  return e.apply(s, t);
@@ -472,7 +460,7 @@ function j(e, t, s, i) {
472
460
  for (r = Object.keys(e), o = r.length, n = 0; n < o; n++)
473
461
  t.call(s, e[r[n]], r[n]);
474
462
  }
475
- function Fe(e, t) {
463
+ function je(e, t) {
476
464
  let s, i, n, o;
477
465
  if (!e || !t || e.length !== t.length)
478
466
  return !1;
@@ -500,7 +488,7 @@ function Is(e) {
500
488
  "constructor"
501
489
  ].indexOf(e) === -1;
502
490
  }
503
- function Ii(e, t, s, i) {
491
+ function Ri(e, t, s, i) {
504
492
  if (!Is(e))
505
493
  return;
506
494
  const n = t[e], o = s[e];
@@ -513,7 +501,7 @@ function At(e, t, s) {
513
501
  if (!w(e))
514
502
  return e;
515
503
  s = s || {};
516
- const o = s.merger || Ii;
504
+ const o = s.merger || Ri;
517
505
  let r;
518
506
  for (let a = 0; a < n; ++a) {
519
507
  if (r = i[a], !w(r))
@@ -526,31 +514,31 @@ function At(e, t, s) {
526
514
  }
527
515
  function Kt(e, t) {
528
516
  return At(e, t, {
529
- merger: Ti
517
+ merger: Ii
530
518
  });
531
519
  }
532
- function Ti(e, t, s) {
520
+ function Ii(e, t, s) {
533
521
  if (!Is(e))
534
522
  return;
535
523
  const i = t[e], n = s[e];
536
524
  w(i) && w(n) ? Kt(i, n) : Object.prototype.hasOwnProperty.call(t, e) || (t[e] = Zt(n));
537
525
  }
538
- const je = {
526
+ const Be = {
539
527
  // Chart.helpers.core resolveObjectKey should resolve empty key to root object
540
528
  "": (e) => e,
541
529
  // default resolvers
542
530
  x: (e) => e.x,
543
531
  y: (e) => e.y
544
532
  };
545
- function Li(e) {
533
+ function Ti(e) {
546
534
  const t = e.split("."), s = [];
547
535
  let i = "";
548
536
  for (const n of t)
549
537
  i += n, i.endsWith("\\") ? i = i.slice(0, -1) + "." : (s.push(i), i = "");
550
538
  return s;
551
539
  }
552
- function zi(e) {
553
- const t = Li(e);
540
+ function Li(e) {
541
+ const t = Ti(e);
554
542
  return (s) => {
555
543
  for (const i of t) {
556
544
  if (i === "")
@@ -561,12 +549,12 @@ function zi(e) {
561
549
  };
562
550
  }
563
551
  function Pt(e, t) {
564
- return (je[t] || (je[t] = zi(t)))(e);
552
+ return (Be[t] || (Be[t] = Li(t)))(e);
565
553
  }
566
- function ke(e) {
554
+ function Se(e) {
567
555
  return e.charAt(0).toUpperCase() + e.slice(1);
568
556
  }
569
- const Gt = (e) => typeof e < "u", st = (e) => typeof e == "function", Be = (e, t) => {
557
+ const Gt = (e) => typeof e < "u", st = (e) => typeof e == "function", He = (e, t) => {
570
558
  if (e.size !== t.size)
571
559
  return !1;
572
560
  for (const s of e)
@@ -574,27 +562,27 @@ const Gt = (e) => typeof e < "u", st = (e) => typeof e == "function", Be = (e, t
574
562
  return !1;
575
563
  return !0;
576
564
  };
577
- function Fi(e) {
565
+ function zi(e) {
578
566
  return e.type === "mouseup" || e.type === "click" || e.type === "contextmenu";
579
567
  }
580
- const z = Math.PI, T = 2 * z, Qt = Number.POSITIVE_INFINITY, $ = z / 2, He = Math.sign;
581
- function ji(e) {
568
+ const z = Math.PI, T = 2 * z, Qt = Number.POSITIVE_INFINITY, $ = z / 2, We = Math.sign;
569
+ function Fi(e) {
582
570
  const t = [], s = Math.sqrt(e);
583
571
  let i;
584
572
  for (i = 1; i < s; i++)
585
573
  e % i === 0 && (t.push(i), t.push(e / i));
586
574
  return s === (s | 0) && t.push(s), t.sort((n, o) => n - o).pop(), t;
587
575
  }
588
- function Bi(e) {
576
+ function ji(e) {
589
577
  return typeof e == "symbol" || typeof e == "object" && e !== null && !(Symbol.toPrimitive in e || "toString" in e || "valueOf" in e);
590
578
  }
591
- function We(e) {
592
- return !Bi(e) && !isNaN(parseFloat(e)) && isFinite(e);
579
+ function Ve(e) {
580
+ return !ji(e) && !isNaN(parseFloat(e)) && isFinite(e);
593
581
  }
594
582
  function gt(e) {
595
583
  return e * (z / 180);
596
584
  }
597
- function Hi(e) {
585
+ function Bi(e) {
598
586
  return e * (180 / z);
599
587
  }
600
588
  function Ts(e, t) {
@@ -615,10 +603,10 @@ function Jt(e, t, s, i) {
615
603
  function J(e, t, s) {
616
604
  return Math.max(t, Math.min(s, e));
617
605
  }
618
- function Wi(e) {
606
+ function Hi(e) {
619
607
  return J(e, -32768, 32767);
620
608
  }
621
- function Vi(e, t, s, i = 1e-6) {
609
+ function Wi(e, t, s, i = 1e-6) {
622
610
  return e >= Math.min(t, s) - i && e <= Math.max(t, s) + i;
623
611
  }
624
612
  function Ls(e, t, s) {
@@ -631,17 +619,17 @@ function Ls(e, t, s) {
631
619
  hi: i
632
620
  };
633
621
  }
634
- const Ni = (e, t, s, i) => Ls(e, s, i ? (n) => {
622
+ const Vi = (e, t, s, i) => Ls(e, s, i ? (n) => {
635
623
  const o = e[n][t];
636
624
  return o < s || o === s && e[n + 1][t] === s;
637
- } : (n) => e[n][t] < s), $i = (e, t, s) => Ls(e, s, (i) => e[i][t] >= s), zs = [
625
+ } : (n) => e[n][t] < s), Ni = (e, t, s) => Ls(e, s, (i) => e[i][t] >= s), zs = [
638
626
  "push",
639
627
  "pop",
640
628
  "shift",
641
629
  "splice",
642
630
  "unshift"
643
631
  ];
644
- function Yi(e, t) {
632
+ function $i(e, t) {
645
633
  if (e._chartjs) {
646
634
  e._chartjs.listeners.push(t);
647
635
  return;
@@ -655,7 +643,7 @@ function Yi(e, t) {
655
643
  ]
656
644
  }
657
645
  }), zs.forEach((s) => {
658
- const i = "_onData" + ke(s), n = e[s];
646
+ const i = "_onData" + Se(s), n = e[s];
659
647
  Object.defineProperty(e, s, {
660
648
  configurable: !0,
661
649
  enumerable: !1,
@@ -668,7 +656,7 @@ function Yi(e, t) {
668
656
  });
669
657
  });
670
658
  }
671
- function Ve(e, t) {
659
+ function Ne(e, t) {
672
660
  const s = e._chartjs;
673
661
  if (!s)
674
662
  return;
@@ -677,11 +665,11 @@ function Ve(e, t) {
677
665
  delete e[o];
678
666
  }), delete e._chartjs);
679
667
  }
680
- const Fs = function() {
668
+ const Fs = (function() {
681
669
  return typeof window > "u" ? function(e) {
682
670
  return e();
683
671
  } : window.requestAnimationFrame;
684
- }();
672
+ })();
685
673
  function js(e, t) {
686
674
  let s = [], i = !1;
687
675
  return function(...n) {
@@ -690,13 +678,13 @@ function js(e, t) {
690
678
  }));
691
679
  };
692
680
  }
693
- function Xi(e, t) {
681
+ function Yi(e, t) {
694
682
  let s;
695
683
  return function(...i) {
696
684
  return t ? (clearTimeout(s), s = setTimeout(e, t, i)) : e.apply(this, i), t;
697
685
  };
698
686
  }
699
- const Ki = (e) => e === "start" ? "left" : e === "end" ? "right" : "center", Ne = (e, t, s) => e === "start" ? t : e === "end" ? s : (t + s) / 2, Bt = (e) => e === 0 || e === 1, $e = (e, t, s) => -(Math.pow(2, 10 * (e -= 1)) * Math.sin((e - t) * T / s)), Ye = (e, t, s) => Math.pow(2, -10 * e) * Math.sin((e - t) * T / s) + 1, Ot = {
687
+ const Xi = (e) => e === "start" ? "left" : e === "end" ? "right" : "center", $e = (e, t, s) => e === "start" ? t : e === "end" ? s : (t + s) / 2, Bt = (e) => e === 0 || e === 1, Ye = (e, t, s) => -(Math.pow(2, 10 * (e -= 1)) * Math.sin((e - t) * T / s)), Xe = (e, t, s) => Math.pow(2, -10 * e) * Math.sin((e - t) * T / s) + 1, Ot = {
700
688
  linear: (e) => e,
701
689
  easeInQuad: (e) => e * e,
702
690
  easeOutQuad: (e) => -e * (e - 2),
@@ -719,10 +707,10 @@ const Ki = (e) => e === "start" ? "left" : e === "end" ? "right" : "center", Ne
719
707
  easeInCirc: (e) => e >= 1 ? e : -(Math.sqrt(1 - e * e) - 1),
720
708
  easeOutCirc: (e) => Math.sqrt(1 - (e -= 1) * e),
721
709
  easeInOutCirc: (e) => (e /= 0.5) < 1 ? -0.5 * (Math.sqrt(1 - e * e) - 1) : 0.5 * (Math.sqrt(1 - (e -= 2) * e) + 1),
722
- easeInElastic: (e) => Bt(e) ? e : $e(e, 0.075, 0.3),
723
- easeOutElastic: (e) => Bt(e) ? e : Ye(e, 0.075, 0.3),
710
+ easeInElastic: (e) => Bt(e) ? e : Ye(e, 0.075, 0.3),
711
+ easeOutElastic: (e) => Bt(e) ? e : Xe(e, 0.075, 0.3),
724
712
  easeInOutElastic(e) {
725
- return Bt(e) ? e : e < 0.5 ? 0.5 * $e(e * 2, 0.1125, 0.45) : 0.5 + 0.5 * Ye(e * 2 - 1, 0.1125, 0.45);
713
+ return Bt(e) ? e : e < 0.5 ? 0.5 * Ye(e * 2, 0.1125, 0.45) : 0.5 + 0.5 * Xe(e * 2 - 1, 0.1125, 0.45);
726
714
  },
727
715
  easeInBack(e) {
728
716
  return e * e * ((1.70158 + 1) * e - 1.70158);
@@ -747,24 +735,24 @@ function Bs(e) {
747
735
  }
748
736
  return !1;
749
737
  }
750
- function Xe(e) {
738
+ function Ke(e) {
751
739
  return Bs(e) ? e : new Ct(e);
752
740
  }
753
741
  function ce(e) {
754
742
  return Bs(e) ? e : new Ct(e).saturate(0.5).darken(0.1).hexString();
755
743
  }
756
- const Ui = [
744
+ const Ki = [
757
745
  "x",
758
746
  "y",
759
747
  "borderWidth",
760
748
  "radius",
761
749
  "tension"
762
- ], qi = [
750
+ ], Ui = [
763
751
  "color",
764
752
  "borderColor",
765
753
  "backgroundColor"
766
754
  ];
767
- function Zi(e) {
755
+ function qi(e) {
768
756
  e.set("animation", {
769
757
  delay: void 0,
770
758
  duration: 1e3,
@@ -781,11 +769,11 @@ function Zi(e) {
781
769
  }), e.set("animations", {
782
770
  colors: {
783
771
  type: "color",
784
- properties: qi
772
+ properties: Ui
785
773
  },
786
774
  numbers: {
787
775
  type: "number",
788
- properties: Ui
776
+ properties: Ki
789
777
  }
790
778
  }), e.describe("animations", {
791
779
  _fallback: "animation"
@@ -825,7 +813,7 @@ function Zi(e) {
825
813
  }
826
814
  });
827
815
  }
828
- function Gi(e) {
816
+ function Zi(e) {
829
817
  e.set("layout", {
830
818
  autoPadding: !0,
831
819
  padding: {
@@ -836,25 +824,25 @@ function Gi(e) {
836
824
  }
837
825
  });
838
826
  }
839
- const Ke = /* @__PURE__ */ new Map();
840
- function Qi(e, t) {
827
+ const Ue = /* @__PURE__ */ new Map();
828
+ function Gi(e, t) {
841
829
  t = t || {};
842
830
  const s = e + JSON.stringify(t);
843
- let i = Ke.get(s);
844
- return i || (i = new Intl.NumberFormat(e, t), Ke.set(s, i)), i;
831
+ let i = Ue.get(s);
832
+ return i || (i = new Intl.NumberFormat(e, t), Ue.set(s, i)), i;
845
833
  }
846
- function Ji(e, t, s) {
847
- return Qi(t, s).format(e);
834
+ function Qi(e, t, s) {
835
+ return Gi(t, s).format(e);
848
836
  }
849
- const tn = {
837
+ const Ji = {
850
838
  values(e) {
851
839
  return B(e) ? e : "" + e;
852
840
  }
853
841
  };
854
- var en = {
855
- formatters: tn
842
+ var tn = {
843
+ formatters: Ji
856
844
  };
857
- function sn(e) {
845
+ function en(e) {
858
846
  e.set("scale", {
859
847
  display: !0,
860
848
  offset: !1,
@@ -898,7 +886,7 @@ function sn(e) {
898
886
  autoSkip: !0,
899
887
  autoSkipPadding: 3,
900
888
  labelOffset: 0,
901
- callback: en.formatters.values,
889
+ callback: tn.formatters.values,
902
890
  minor: {},
903
891
  major: {},
904
892
  align: "center",
@@ -932,7 +920,7 @@ function Dt(e, t) {
932
920
  function le(e, t, s) {
933
921
  return typeof t == "string" ? At(Dt(e, t), s) : At(Dt(e, ""), t);
934
922
  }
935
- class nn {
923
+ class sn {
936
924
  constructor(t, s) {
937
925
  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 = (i) => i.chart.platform.getDevicePixelRatio(), this.elements = {}, this.events = [
938
926
  "mousemove",
@@ -987,7 +975,7 @@ class nn {
987
975
  t.forEach((s) => s(this));
988
976
  }
989
977
  }
990
- var R = /* @__PURE__ */ new nn({
978
+ var R = /* @__PURE__ */ new sn({
991
979
  _scriptable: (e) => !e.startsWith("on"),
992
980
  _indexable: (e) => e !== "events",
993
981
  hover: {
@@ -998,14 +986,14 @@ var R = /* @__PURE__ */ new nn({
998
986
  _indexable: !1
999
987
  }
1000
988
  }, [
989
+ qi,
1001
990
  Zi,
1002
- Gi,
1003
- sn
991
+ en
1004
992
  ]);
1005
- function on(e) {
993
+ function nn(e) {
1006
994
  return !e || W(e.size) || W(e.family) ? null : (e.style ? e.style + " " : "") + (e.weight ? e.weight + " " : "") + e.size + "px " + e.family;
1007
995
  }
1008
- function Ue(e, t, s, i, n) {
996
+ function qe(e, t, s, i, n) {
1009
997
  let o = t[n];
1010
998
  return o || (o = t[n] = e.measureText(n).width, s.push(n)), o > i && (i = o), i;
1011
999
  }
@@ -1013,7 +1001,7 @@ function ot(e, t, s) {
1013
1001
  const i = e.currentDevicePixelRatio, n = s !== 0 ? Math.max(s / 2, 0.5) : 0;
1014
1002
  return Math.round((t - n) * i) / i + n;
1015
1003
  }
1016
- function qe(e, t) {
1004
+ function Ze(e, t) {
1017
1005
  !t && !e || (t = t || e.getContext("2d"), t.save(), t.resetTransform(), t.clearRect(0, 0, e.width, e.height), t.restore());
1018
1006
  }
1019
1007
  function Hs(e, t, s) {
@@ -1025,31 +1013,31 @@ function Ws(e, t) {
1025
1013
  function Vs(e) {
1026
1014
  e.restore();
1027
1015
  }
1028
- function rn(e, t) {
1016
+ function on(e, t) {
1029
1017
  t.translation && e.translate(t.translation[0], t.translation[1]), W(t.rotation) || e.rotate(t.rotation), t.color && (e.fillStyle = t.color), t.textAlign && (e.textAlign = t.textAlign), t.textBaseline && (e.textBaseline = t.textBaseline);
1030
1018
  }
1031
- function an(e, t, s, i, n) {
1019
+ function rn(e, t, s, i, n) {
1032
1020
  if (n.strikethrough || n.underline) {
1033
1021
  const o = e.measureText(i), r = t - o.actualBoundingBoxLeft, a = t + o.actualBoundingBoxRight, c = s - o.actualBoundingBoxAscent, l = s + o.actualBoundingBoxDescent, h = n.strikethrough ? (c + l) / 2 : l;
1034
1022
  e.strokeStyle = e.fillStyle, e.beginPath(), e.lineWidth = n.decorationWidth || 2, e.moveTo(r, h), e.lineTo(a, h), e.stroke();
1035
1023
  }
1036
1024
  }
1037
- function cn(e, t) {
1025
+ function an(e, t) {
1038
1026
  const s = e.fillStyle;
1039
1027
  e.fillStyle = t.color, e.fillRect(t.left, t.top, t.width, t.height), e.fillStyle = s;
1040
1028
  }
1041
- function Ze(e, t, s, i, n, o = {}) {
1029
+ function Ge(e, t, s, i, n, o = {}) {
1042
1030
  const r = B(t) ? t : [
1043
1031
  t
1044
1032
  ], a = o.strokeWidth > 0 && o.strokeColor !== "";
1045
1033
  let c, l;
1046
- for (e.save(), e.font = n.string, rn(e, o), c = 0; c < r.length; ++c)
1047
- l = r[c], o.backdrop && cn(e, o.backdrop), a && (o.strokeColor && (e.strokeStyle = o.strokeColor), W(o.strokeWidth) || (e.lineWidth = o.strokeWidth), e.strokeText(l, s, i, o.maxWidth)), e.fillText(l, s, i, o.maxWidth), an(e, s, i, l, o), i += Number(n.lineHeight);
1034
+ for (e.save(), e.font = n.string, on(e, o), c = 0; c < r.length; ++c)
1035
+ l = r[c], o.backdrop && an(e, o.backdrop), a && (o.strokeColor && (e.strokeStyle = o.strokeColor), W(o.strokeWidth) || (e.lineWidth = o.strokeWidth), e.strokeText(l, s, i, o.maxWidth)), e.fillText(l, s, i, o.maxWidth), rn(e, s, i, l, o), i += Number(n.lineHeight);
1048
1036
  e.restore();
1049
1037
  }
1050
- const ln = /^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/, hn = /^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;
1051
- function dn(e, t) {
1052
- const s = ("" + e).match(ln);
1038
+ const cn = /^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/, ln = /^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;
1039
+ function hn(e, t) {
1040
+ const s = ("" + e).match(cn);
1053
1041
  if (!s || s[1] === "normal")
1054
1042
  return t * 1.2;
1055
1043
  switch (e = +s[2], s[3]) {
@@ -1061,14 +1049,14 @@ function dn(e, t) {
1061
1049
  }
1062
1050
  return t * e;
1063
1051
  }
1064
- const fn = (e) => +e || 0;
1052
+ const dn = (e) => +e || 0;
1065
1053
  function Ns(e, t) {
1066
1054
  const s = {}, i = w(t), n = i ? Object.keys(t) : t, o = w(e) ? i ? (r) => A(e[r], e[t[r]]) : (r) => e[r] : () => e;
1067
1055
  for (const r of n)
1068
- s[r] = fn(o(r));
1056
+ s[r] = dn(o(r));
1069
1057
  return s;
1070
1058
  }
1071
- function un(e) {
1059
+ function fn(e) {
1072
1060
  return Ns(e, {
1073
1061
  top: "y",
1074
1062
  right: "x",
@@ -1077,7 +1065,7 @@ function un(e) {
1077
1065
  });
1078
1066
  }
1079
1067
  function Et(e) {
1080
- const t = un(e);
1068
+ const t = fn(e);
1081
1069
  return t.width = t.left + t.right, t.height = t.top + t.bottom, t;
1082
1070
  }
1083
1071
  function be(e, t) {
@@ -1085,16 +1073,16 @@ function be(e, t) {
1085
1073
  let s = A(e.size, t.size);
1086
1074
  typeof s == "string" && (s = parseInt(s, 10));
1087
1075
  let i = A(e.style, t.style);
1088
- i && !("" + i).match(hn) && (console.warn('Invalid font style specified: "' + i + '"'), i = void 0);
1076
+ i && !("" + i).match(ln) && (console.warn('Invalid font style specified: "' + i + '"'), i = void 0);
1089
1077
  const n = {
1090
1078
  family: A(e.family, t.family),
1091
- lineHeight: dn(A(e.lineHeight, t.lineHeight), s),
1079
+ lineHeight: hn(A(e.lineHeight, t.lineHeight), s),
1092
1080
  size: s,
1093
1081
  style: i,
1094
1082
  weight: A(e.weight, t.weight),
1095
1083
  string: ""
1096
1084
  };
1097
- return n.string = on(n), n;
1085
+ return n.string = nn(n), n;
1098
1086
  }
1099
1087
  function Ht(e, t, s, i) {
1100
1088
  let n, o, r;
@@ -1102,7 +1090,7 @@ function Ht(e, t, s, i) {
1102
1090
  if (r = e[n], r !== void 0 && r !== void 0)
1103
1091
  return r;
1104
1092
  }
1105
- function gn(e, t, s) {
1093
+ function un(e, t, s) {
1106
1094
  const { min: i, max: n } = e, o = Rs(t, (n - i) / 2), r = (a, c) => s && a === 0 ? 0 : a + c;
1107
1095
  return {
1108
1096
  min: r(i, -Math.abs(o)),
@@ -1112,7 +1100,7 @@ function gn(e, t, s) {
1112
1100
  function Tt(e, t) {
1113
1101
  return Object.assign(Object.create(e), t);
1114
1102
  }
1115
- function Se(e, t = [
1103
+ function Oe(e, t = [
1116
1104
  ""
1117
1105
  ], s, i, n = () => e[0]) {
1118
1106
  const o = s || e;
@@ -1124,7 +1112,7 @@ function Se(e, t = [
1124
1112
  _rootScopes: o,
1125
1113
  _fallback: i,
1126
1114
  _getTarget: n,
1127
- override: (a) => Se([
1115
+ override: (a) => Oe([
1128
1116
  a,
1129
1117
  ...e
1130
1118
  ], t, o, i)
@@ -1140,7 +1128,7 @@ function Se(e, t = [
1140
1128
  * A trap for getting property values.
1141
1129
  */
1142
1130
  get(a, c) {
1143
- return Ys(a, c, () => wn(c, t, e, a));
1131
+ return Ys(a, c, () => vn(c, t, e, a));
1144
1132
  },
1145
1133
  /**
1146
1134
  * A trap for Object.getOwnPropertyDescriptor.
@@ -1159,13 +1147,13 @@ function Se(e, t = [
1159
1147
  * A trap for the in operator.
1160
1148
  */
1161
1149
  has(a, c) {
1162
- return Qe(a).includes(c);
1150
+ return Je(a).includes(c);
1163
1151
  },
1164
1152
  /**
1165
1153
  * A trap for Object.getOwnPropertyNames and Object.getOwnPropertySymbols.
1166
1154
  */
1167
1155
  ownKeys(a) {
1168
- return Qe(a);
1156
+ return Je(a);
1169
1157
  },
1170
1158
  /**
1171
1159
  * A trap for setting property values.
@@ -1198,7 +1186,7 @@ function mt(e, t, s, i) {
1198
1186
  * A trap for getting property values.
1199
1187
  */
1200
1188
  get(o, r, a) {
1201
- return Ys(o, r, () => mn(o, r, a));
1189
+ return Ys(o, r, () => pn(o, r, a));
1202
1190
  },
1203
1191
  /**
1204
1192
  * A trap for Object.getOwnPropertyDescriptor.
@@ -1249,27 +1237,27 @@ function $s(e, t = {
1249
1237
  isIndexable: st(i) ? i : () => i
1250
1238
  };
1251
1239
  }
1252
- const pn = (e, t) => e ? e + ke(t) : t, Oe = (e, t) => w(t) && e !== "adapters" && (Object.getPrototypeOf(t) === null || t.constructor === Object);
1240
+ const gn = (e, t) => e ? e + Se(t) : t, De = (e, t) => w(t) && e !== "adapters" && (Object.getPrototypeOf(t) === null || t.constructor === Object);
1253
1241
  function Ys(e, t, s) {
1254
1242
  if (Object.prototype.hasOwnProperty.call(e, t) || t === "constructor")
1255
1243
  return e[t];
1256
1244
  const i = s();
1257
1245
  return e[t] = i, i;
1258
1246
  }
1259
- function mn(e, t, s) {
1247
+ function pn(e, t, s) {
1260
1248
  const { _proxy: i, _context: n, _subProxy: o, _descriptors: r } = e;
1261
1249
  let a = i[t];
1262
- return st(a) && r.isScriptable(t) && (a = _n(t, a, e, s)), B(a) && a.length && (a = bn(t, a, e, r.isIndexable)), Oe(t, a) && (a = mt(a, n, o && o[t], r)), a;
1250
+ return st(a) && r.isScriptable(t) && (a = mn(t, a, e, s)), B(a) && a.length && (a = _n(t, a, e, r.isIndexable)), De(t, a) && (a = mt(a, n, o && o[t], r)), a;
1263
1251
  }
1264
- function _n(e, t, s, i) {
1252
+ function mn(e, t, s, i) {
1265
1253
  const { _proxy: n, _context: o, _subProxy: r, _stack: a } = s;
1266
1254
  if (a.has(e))
1267
1255
  throw new Error("Recursion detected: " + Array.from(a).join("->") + "->" + e);
1268
1256
  a.add(e);
1269
1257
  let c = t(o, r || i);
1270
- return a.delete(e), Oe(e, c) && (c = De(n._scopes, n, e, c)), c;
1258
+ return a.delete(e), De(e, c) && (c = Ce(n._scopes, n, e, c)), c;
1271
1259
  }
1272
- function bn(e, t, s, i) {
1260
+ function _n(e, t, s, i) {
1273
1261
  const { _proxy: n, _context: o, _subProxy: r, _descriptors: a } = s;
1274
1262
  if (typeof o.index < "u" && i(e))
1275
1263
  return t[o.index % t.length];
@@ -1277,7 +1265,7 @@ function bn(e, t, s, i) {
1277
1265
  const c = t, l = n._scopes.filter((h) => h !== c);
1278
1266
  t = [];
1279
1267
  for (const h of c) {
1280
- const d = De(l, n, e, h);
1268
+ const d = Ce(l, n, e, h);
1281
1269
  t.push(mt(d, o, r && r[e], a));
1282
1270
  }
1283
1271
  }
@@ -1286,10 +1274,10 @@ function bn(e, t, s, i) {
1286
1274
  function Xs(e, t, s) {
1287
1275
  return st(e) ? e(t, s) : e;
1288
1276
  }
1289
- const xn = (e, t) => e === !0 ? t : typeof e == "string" ? Pt(t, e) : void 0;
1290
- function yn(e, t, s, i, n) {
1277
+ const bn = (e, t) => e === !0 ? t : typeof e == "string" ? Pt(t, e) : void 0;
1278
+ function xn(e, t, s, i, n) {
1291
1279
  for (const o of t) {
1292
- const r = xn(s, o);
1280
+ const r = bn(s, o);
1293
1281
  if (r) {
1294
1282
  e.add(r);
1295
1283
  const a = Xs(r._fallback, s, n);
@@ -1300,33 +1288,33 @@ function yn(e, t, s, i, n) {
1300
1288
  }
1301
1289
  return !1;
1302
1290
  }
1303
- function De(e, t, s, i) {
1291
+ function Ce(e, t, s, i) {
1304
1292
  const n = t._rootScopes, o = Xs(t._fallback, s, i), r = [
1305
1293
  ...e,
1306
1294
  ...n
1307
1295
  ], a = /* @__PURE__ */ new Set();
1308
1296
  a.add(i);
1309
- let c = Ge(a, r, s, o || s, i);
1310
- return c === null || typeof o < "u" && o !== s && (c = Ge(a, r, o, c, i), c === null) ? !1 : Se(Array.from(a), [
1297
+ let c = Qe(a, r, s, o || s, i);
1298
+ return c === null || typeof o < "u" && o !== s && (c = Qe(a, r, o, c, i), c === null) ? !1 : Oe(Array.from(a), [
1311
1299
  ""
1312
- ], n, o, () => vn(t, s, i));
1300
+ ], n, o, () => yn(t, s, i));
1313
1301
  }
1314
- function Ge(e, t, s, i, n) {
1302
+ function Qe(e, t, s, i, n) {
1315
1303
  for (; s; )
1316
- s = yn(e, t, s, i, n);
1304
+ s = xn(e, t, s, i, n);
1317
1305
  return s;
1318
1306
  }
1319
- function vn(e, t, s) {
1307
+ function yn(e, t, s) {
1320
1308
  const i = e._getTarget();
1321
1309
  t in i || (i[t] = {});
1322
1310
  const n = i[t];
1323
1311
  return B(n) && w(s) ? s : n || {};
1324
1312
  }
1325
- function wn(e, t, s, i) {
1313
+ function vn(e, t, s, i) {
1326
1314
  let n;
1327
1315
  for (const o of t)
1328
- if (n = Ks(pn(o, e), s), typeof n < "u")
1329
- return Oe(e, n) ? De(s, i, e, n) : n;
1316
+ if (n = Ks(gn(o, e), s), typeof n < "u")
1317
+ return De(e, n) ? Ce(s, i, e, n) : n;
1330
1318
  }
1331
1319
  function Ks(e, t) {
1332
1320
  for (const s of t) {
@@ -1337,21 +1325,21 @@ function Ks(e, t) {
1337
1325
  return i;
1338
1326
  }
1339
1327
  }
1340
- function Qe(e) {
1328
+ function Je(e) {
1341
1329
  let t = e._keys;
1342
- return t || (t = e._keys = Mn(e._scopes)), t;
1330
+ return t || (t = e._keys = wn(e._scopes)), t;
1343
1331
  }
1344
- function Mn(e) {
1332
+ function wn(e) {
1345
1333
  const t = /* @__PURE__ */ new Set();
1346
1334
  for (const s of e)
1347
1335
  for (const i of Object.keys(s).filter((n) => !n.startsWith("_")))
1348
1336
  t.add(i);
1349
1337
  return Array.from(t);
1350
1338
  }
1351
- function Ce() {
1339
+ function Ae() {
1352
1340
  return typeof window < "u" && typeof document < "u";
1353
1341
  }
1354
- function Ae(e) {
1342
+ function Pe(e) {
1355
1343
  let t = e.parentNode;
1356
1344
  return t && t.toString() === "[object ShadowRoot]" && (t = t.host), t;
1357
1345
  }
@@ -1360,10 +1348,10 @@ function te(e, t, s) {
1360
1348
  return typeof e == "string" ? (i = parseInt(e, 10), e.indexOf("%") !== -1 && (i = i / 100 * t.parentNode[s])) : i = e, i;
1361
1349
  }
1362
1350
  const ie = (e) => e.ownerDocument.defaultView.getComputedStyle(e, null);
1363
- function kn(e, t) {
1351
+ function Mn(e, t) {
1364
1352
  return ie(e).getPropertyValue(t);
1365
1353
  }
1366
- const Sn = [
1354
+ const kn = [
1367
1355
  "top",
1368
1356
  "right",
1369
1357
  "bottom",
@@ -1373,16 +1361,16 @@ function at(e, t, s) {
1373
1361
  const i = {};
1374
1362
  s = s ? "-" + s : "";
1375
1363
  for (let n = 0; n < 4; n++) {
1376
- const o = Sn[n];
1364
+ const o = kn[n];
1377
1365
  i[o] = parseFloat(e[t + "-" + o + s]) || 0;
1378
1366
  }
1379
1367
  return i.width = i.left + i.right, i.height = i.top + i.bottom, i;
1380
1368
  }
1381
- const On = (e, t, s) => (e > 0 || t > 0) && (!s || !s.shadowRoot);
1382
- function Dn(e, t) {
1369
+ const Sn = (e, t, s) => (e > 0 || t > 0) && (!s || !s.shadowRoot);
1370
+ function On(e, t) {
1383
1371
  const s = e.touches, i = s && s.length ? s[0] : e, { offsetX: n, offsetY: o } = i;
1384
1372
  let r = !1, a, c;
1385
- if (On(n, o, e.target))
1373
+ if (Sn(n, o, e.target))
1386
1374
  a = n, c = o;
1387
1375
  else {
1388
1376
  const l = t.getBoundingClientRect();
@@ -1397,17 +1385,17 @@ function Dn(e, t) {
1397
1385
  function rt(e, t) {
1398
1386
  if ("native" in e)
1399
1387
  return e;
1400
- const { canvas: s, currentDevicePixelRatio: i } = t, n = ie(s), o = n.boxSizing === "border-box", r = at(n, "padding"), a = at(n, "border", "width"), { x: c, y: l, box: h } = Dn(e, s), d = r.left + (h && a.left), f = r.top + (h && a.top);
1388
+ const { canvas: s, currentDevicePixelRatio: i } = t, n = ie(s), o = n.boxSizing === "border-box", r = at(n, "padding"), a = at(n, "border", "width"), { x: c, y: l, box: h } = On(e, s), d = r.left + (h && a.left), f = r.top + (h && a.top);
1401
1389
  let { width: u, height: g } = t;
1402
1390
  return o && (u -= r.width + a.width, g -= r.height + a.height), {
1403
1391
  x: Math.round((c - d) / u * s.width / i),
1404
1392
  y: Math.round((l - f) / g * s.height / i)
1405
1393
  };
1406
1394
  }
1407
- function Cn(e, t, s) {
1395
+ function Dn(e, t, s) {
1408
1396
  let i, n;
1409
1397
  if (t === void 0 || s === void 0) {
1410
- const o = e && Ae(e);
1398
+ const o = e && Pe(e);
1411
1399
  if (!o)
1412
1400
  t = e.clientWidth, s = e.clientHeight;
1413
1401
  else {
@@ -1423,8 +1411,8 @@ function Cn(e, t, s) {
1423
1411
  };
1424
1412
  }
1425
1413
  const tt = (e) => Math.round(e * 10) / 10;
1426
- function An(e, t, s, i) {
1427
- const n = ie(e), o = at(n, "margin"), r = te(n.maxWidth, e, "clientWidth") || Qt, a = te(n.maxHeight, e, "clientHeight") || Qt, c = Cn(e, t, s);
1414
+ function Cn(e, t, s, i) {
1415
+ const n = ie(e), o = at(n, "margin"), r = te(n.maxWidth, e, "clientWidth") || Qt, a = te(n.maxHeight, e, "clientHeight") || Qt, c = Dn(e, t, s);
1428
1416
  let { width: l, height: h } = c;
1429
1417
  if (n.boxSizing === "content-box") {
1430
1418
  const f = at(n, "border", "width"), u = at(n, "padding");
@@ -1435,13 +1423,13 @@ function An(e, t, s, i) {
1435
1423
  height: h
1436
1424
  };
1437
1425
  }
1438
- function Je(e, t, s) {
1426
+ function ts(e, t, s) {
1439
1427
  const i = t || 1, n = tt(e.height * i), o = tt(e.width * i);
1440
1428
  e.height = tt(e.height), e.width = tt(e.width);
1441
1429
  const r = e.canvas;
1442
1430
  return r.style && (s || !r.style.height && !r.style.width) && (r.style.height = `${e.height}px`, r.style.width = `${e.width}px`), e.currentDevicePixelRatio !== i || r.height !== n || r.width !== o ? (e.currentDevicePixelRatio = i, r.height = n, r.width = o, e.ctx.setTransform(i, 0, 0, i, 0, 0), !0) : !1;
1443
1431
  }
1444
- const Pn = function() {
1432
+ const An = (function() {
1445
1433
  let e = !1;
1446
1434
  try {
1447
1435
  const t = {
@@ -1449,19 +1437,19 @@ const Pn = function() {
1449
1437
  return e = !0, !1;
1450
1438
  }
1451
1439
  };
1452
- Ce() && (window.addEventListener("test", null, t), window.removeEventListener("test", null, t));
1440
+ Ae() && (window.addEventListener("test", null, t), window.removeEventListener("test", null, t));
1453
1441
  } catch {
1454
1442
  }
1455
1443
  return e;
1456
- }();
1457
- function ts(e, t) {
1458
- const s = kn(e, t), i = s && s.match(/^(\d+)(\.\d+)?px$/);
1444
+ })();
1445
+ function es(e, t) {
1446
+ const s = Mn(e, t), i = s && s.match(/^(\d+)(\.\d+)?px$/);
1459
1447
  return i ? +i[1] : void 0;
1460
1448
  }
1461
1449
  function Wt(e, t, s) {
1462
1450
  return e.options.clip ? e[s] : t[s];
1463
1451
  }
1464
- function En(e, t) {
1452
+ function Pn(e, t) {
1465
1453
  const { xScale: s, yScale: i } = e;
1466
1454
  return s && i ? {
1467
1455
  left: Wt(s, t, "left"),
@@ -1470,11 +1458,11 @@ function En(e, t) {
1470
1458
  bottom: Wt(i, t, "bottom")
1471
1459
  } : t;
1472
1460
  }
1473
- function Rn(e, t) {
1461
+ function En(e, t) {
1474
1462
  const s = t._clip;
1475
1463
  if (s.disabled)
1476
1464
  return !1;
1477
- const i = En(t, e.chartArea);
1465
+ const i = Pn(t, e.chartArea);
1478
1466
  return {
1479
1467
  left: s.left === !1 ? 0 : i.left - (s.left === !0 ? 0 : s.left),
1480
1468
  right: s.right === !1 ? e.width : i.right + (s.right === !0 ? 0 : s.right),
@@ -1482,13 +1470,7 @@ function Rn(e, t) {
1482
1470
  bottom: s.bottom === !1 ? e.height : i.bottom + (s.bottom === !0 ? 0 : s.bottom)
1483
1471
  };
1484
1472
  }
1485
- /*!
1486
- * Chart.js v4.5.1
1487
- * https://www.chartjs.org
1488
- * (c) 2025 Chart.js Contributors
1489
- * Released under the MIT License
1490
- */
1491
- class In {
1473
+ class Rn {
1492
1474
  constructor() {
1493
1475
  this._request = null, this._charts = /* @__PURE__ */ new Map(), this._running = !1, this._lastDate = void 0;
1494
1476
  }
@@ -1564,20 +1546,20 @@ class In {
1564
1546
  return this._charts.delete(t);
1565
1547
  }
1566
1548
  }
1567
- var Z = /* @__PURE__ */ new In();
1568
- const es = "transparent", Tn = {
1549
+ var Z = /* @__PURE__ */ new Rn();
1550
+ const ss = "transparent", In = {
1569
1551
  boolean(e, t, s) {
1570
1552
  return s > 0.5 ? t : e;
1571
1553
  },
1572
1554
  color(e, t, s) {
1573
- const i = Xe(e || es), n = i.valid && Xe(t || es);
1555
+ const i = Ke(e || ss), n = i.valid && Ke(t || ss);
1574
1556
  return n && n.valid ? n.mix(i, s).hexString() : t;
1575
1557
  },
1576
1558
  number(e, t, s) {
1577
1559
  return e + (t - e) * s;
1578
1560
  }
1579
1561
  };
1580
- class Ln {
1562
+ class Tn {
1581
1563
  constructor(t, s, i, n) {
1582
1564
  const o = s[i];
1583
1565
  n = Ht([
@@ -1591,7 +1573,7 @@ class Ln {
1591
1573
  o,
1592
1574
  n
1593
1575
  ]);
1594
- this._active = !0, this._fn = t.fn || Tn[t.type || typeof r], this._easing = Ot[t.easing] || Ot.linear, this._start = Math.floor(Date.now() + (t.delay || 0)), this._duration = this._total = Math.floor(t.duration), this._loop = !!t.loop, this._target = s, this._prop = i, this._from = r, this._to = n, this._promises = void 0;
1576
+ this._active = !0, this._fn = t.fn || In[t.type || typeof r], this._easing = Ot[t.easing] || Ot.linear, this._start = Math.floor(Date.now() + (t.delay || 0)), this._duration = this._total = Math.floor(t.duration), this._loop = !!t.loop, this._target = s, this._prop = i, this._from = r, this._to = n, this._promises = void 0;
1595
1577
  }
1596
1578
  active() {
1597
1579
  return this._active;
@@ -1643,7 +1625,7 @@ class Ln {
1643
1625
  i[n][s]();
1644
1626
  }
1645
1627
  }
1646
- class zn {
1628
+ class Ln {
1647
1629
  constructor(t, s) {
1648
1630
  this._chart = t, this._properties = /* @__PURE__ */ new Map(), this.configure(s);
1649
1631
  }
@@ -1666,11 +1648,11 @@ class zn {
1666
1648
  });
1667
1649
  }
1668
1650
  _animateOptions(t, s) {
1669
- const i = s.options, n = jn(t, i);
1651
+ const i = s.options, n = Fn(t, i);
1670
1652
  if (!n)
1671
1653
  return [];
1672
1654
  const o = this._createAnimations(n, i);
1673
- return i.$shared && Fn(t.options.$animations, i).then(() => {
1655
+ return i.$shared && zn(t.options.$animations, i).then(() => {
1674
1656
  t.options = i;
1675
1657
  }, () => {
1676
1658
  }), o;
@@ -1699,7 +1681,7 @@ class zn {
1699
1681
  t[l] = h;
1700
1682
  continue;
1701
1683
  }
1702
- o[l] = d = new Ln(f, t, l, h), n.push(d);
1684
+ o[l] = d = new Tn(f, t, l, h), n.push(d);
1703
1685
  }
1704
1686
  return n;
1705
1687
  }
@@ -1713,7 +1695,7 @@ class zn {
1713
1695
  return Z.add(this._chart, i), !0;
1714
1696
  }
1715
1697
  }
1716
- function Fn(e, t) {
1698
+ function zn(e, t) {
1717
1699
  const s = [], i = Object.keys(t);
1718
1700
  for (let n = 0; n < i.length; n++) {
1719
1701
  const o = e[i[n]];
@@ -1721,7 +1703,7 @@ function Fn(e, t) {
1721
1703
  }
1722
1704
  return Promise.all(s);
1723
1705
  }
1724
- function jn(e, t) {
1706
+ function Fn(e, t) {
1725
1707
  if (!t)
1726
1708
  return;
1727
1709
  let s = e.options;
@@ -1734,17 +1716,17 @@ function jn(e, t) {
1734
1716
  $animations: {}
1735
1717
  })), s;
1736
1718
  }
1737
- function ss(e, t) {
1719
+ function is(e, t) {
1738
1720
  const s = e && e.options || {}, i = s.reverse, n = s.min === void 0 ? t : 0, o = s.max === void 0 ? t : 0;
1739
1721
  return {
1740
1722
  start: i ? o : n,
1741
1723
  end: i ? n : o
1742
1724
  };
1743
1725
  }
1744
- function Bn(e, t, s) {
1726
+ function jn(e, t, s) {
1745
1727
  if (s === !1)
1746
1728
  return !1;
1747
- const i = ss(e, s), n = ss(t, s);
1729
+ const i = is(e, s), n = is(t, s);
1748
1730
  return {
1749
1731
  top: n.end,
1750
1732
  right: i.end,
@@ -1752,7 +1734,7 @@ function Bn(e, t, s) {
1752
1734
  left: i.start
1753
1735
  };
1754
1736
  }
1755
- function Hn(e) {
1737
+ function Bn(e) {
1756
1738
  let t, s, i, n;
1757
1739
  return w(e) ? (t = e.top, s = e.right, i = e.bottom, n = e.left) : t = s = i = n = e, {
1758
1740
  top: t,
@@ -1769,7 +1751,7 @@ function Us(e, t) {
1769
1751
  s.push(i[n].index);
1770
1752
  return s;
1771
1753
  }
1772
- function is(e, t, s, i = {}) {
1754
+ function ns(e, t, s, i = {}) {
1773
1755
  const n = e.keys, o = i.mode === "single";
1774
1756
  let r, a, c, l;
1775
1757
  if (t === null)
@@ -1781,11 +1763,11 @@ function is(e, t, s, i = {}) {
1781
1763
  continue;
1782
1764
  break;
1783
1765
  }
1784
- l = e.values[c], pt(l) && (o || t === 0 || He(t) === He(l)) && (t += l);
1766
+ l = e.values[c], pt(l) && (o || t === 0 || We(t) === We(l)) && (t += l);
1785
1767
  }
1786
1768
  return !h && !i.all ? 0 : t;
1787
1769
  }
1788
- function Wn(e, t) {
1770
+ function Hn(e, t) {
1789
1771
  const { iScale: s, vScale: i } = t, n = s.axis === "x" ? "x" : "y", o = i.axis === "x" ? "x" : "y", r = Object.keys(e), a = new Array(r.length);
1790
1772
  let c, l, h;
1791
1773
  for (c = 0, l = r.length; c < l; ++c)
@@ -1799,21 +1781,21 @@ function he(e, t) {
1799
1781
  const s = e && e.options.stacked;
1800
1782
  return s || s === void 0 && t.stack !== void 0;
1801
1783
  }
1802
- function Vn(e, t, s) {
1784
+ function Wn(e, t, s) {
1803
1785
  return `${e.id}.${t.id}.${s.stack || s.type}`;
1804
1786
  }
1805
- function Nn(e) {
1787
+ function Vn(e) {
1806
1788
  const { min: t, max: s, minDefined: i, maxDefined: n } = e.getUserBounds();
1807
1789
  return {
1808
1790
  min: i ? t : Number.NEGATIVE_INFINITY,
1809
1791
  max: n ? s : Number.POSITIVE_INFINITY
1810
1792
  };
1811
1793
  }
1812
- function $n(e, t, s) {
1794
+ function Nn(e, t, s) {
1813
1795
  const i = e[t] || (e[t] = {});
1814
1796
  return i[s] || (i[s] = {});
1815
1797
  }
1816
- function ns(e, t, s, i) {
1798
+ function os(e, t, s, i) {
1817
1799
  for (const n of t.getMatchingVisibleMetas(i).reverse()) {
1818
1800
  const o = e[n.index];
1819
1801
  if (s && o > 0 || !s && o < 0)
@@ -1821,12 +1803,12 @@ function ns(e, t, s, i) {
1821
1803
  }
1822
1804
  return null;
1823
1805
  }
1824
- function os(e, t) {
1825
- const { chart: s, _cachedMeta: i } = e, n = s._stacks || (s._stacks = {}), { iScale: o, vScale: r, index: a } = i, c = o.axis, l = r.axis, h = Vn(o, r, i), d = t.length;
1806
+ function rs(e, t) {
1807
+ const { chart: s, _cachedMeta: i } = e, n = s._stacks || (s._stacks = {}), { iScale: o, vScale: r, index: a } = i, c = o.axis, l = r.axis, h = Wn(o, r, i), d = t.length;
1826
1808
  let f;
1827
1809
  for (let u = 0; u < d; ++u) {
1828
1810
  const g = t[u], { [c]: m, [l]: b } = g, p = g._stacks || (g._stacks = {});
1829
- f = p[l] = $n(n, h, m), f[a] = b, f._top = ns(f, r, !0, i.type), f._bottom = ns(f, r, !1, i.type);
1811
+ f = p[l] = Nn(n, h, m), f[a] = b, f._top = os(f, r, !0, i.type), f._bottom = os(f, r, !1, i.type);
1830
1812
  const _ = f._visualValues || (f._visualValues = {});
1831
1813
  _[a] = b;
1832
1814
  }
@@ -1835,7 +1817,7 @@ function de(e, t) {
1835
1817
  const s = e.scales;
1836
1818
  return Object.keys(s).filter((i) => s[i].axis === t).shift();
1837
1819
  }
1838
- function Yn(e, t) {
1820
+ function $n(e, t) {
1839
1821
  return Tt(e, {
1840
1822
  active: !1,
1841
1823
  dataset: void 0,
@@ -1845,7 +1827,7 @@ function Yn(e, t) {
1845
1827
  type: "dataset"
1846
1828
  });
1847
1829
  }
1848
- function Xn(e, t, s) {
1830
+ function Yn(e, t, s) {
1849
1831
  return Tt(e, {
1850
1832
  active: !1,
1851
1833
  dataIndex: t,
@@ -1869,7 +1851,7 @@ function xt(e, t) {
1869
1851
  }
1870
1852
  }
1871
1853
  }
1872
- const fe = (e) => e === "reset" || e === "none", rs = (e, t) => t ? e : Object.assign({}, e), Kn = (e, t, s) => e && !t.hidden && t._stacked && {
1854
+ const fe = (e) => e === "reset" || e === "none", as = (e, t) => t ? e : Object.assign({}, e), Xn = (e, t, s) => e && !t.hidden && t._stacked && {
1873
1855
  keys: Us(s, !0),
1874
1856
  values: null
1875
1857
  };
@@ -1909,20 +1891,20 @@ class qs {
1909
1891
  }
1910
1892
  _destroy() {
1911
1893
  const t = this._cachedMeta;
1912
- this._data && Ve(this._data, this), t._stacked && xt(t);
1894
+ this._data && Ne(this._data, this), t._stacked && xt(t);
1913
1895
  }
1914
1896
  _dataCheck() {
1915
1897
  const t = this.getDataset(), s = t.data || (t.data = []), i = this._data;
1916
1898
  if (w(s)) {
1917
1899
  const n = this._cachedMeta;
1918
- this._data = Wn(s, n);
1900
+ this._data = Hn(s, n);
1919
1901
  } else if (i !== s) {
1920
1902
  if (i) {
1921
- Ve(i, this);
1903
+ Ne(i, this);
1922
1904
  const n = this._cachedMeta;
1923
1905
  xt(n), n._parsed = [];
1924
1906
  }
1925
- s && Object.isExtensible(s) && Yi(s, this), this._syncList = [], this._data = s;
1907
+ s && Object.isExtensible(s) && $i(s, this), this._syncList = [], this._data = s;
1926
1908
  }
1927
1909
  }
1928
1910
  addElements() {
@@ -1934,7 +1916,7 @@ class qs {
1934
1916
  let n = !1;
1935
1917
  this._dataCheck();
1936
1918
  const o = s._stacked;
1937
- s._stacked = he(s.vScale, s), s.stack !== i.stack && (n = !0, xt(s), s.stack = i.stack), this._resyncElements(t), (n || o !== s._stacked) && (os(this, s._parsed), s._stacked = he(s.vScale, s));
1919
+ s._stacked = he(s.vScale, s), s.stack !== i.stack && (n = !0, xt(s), s.stack = i.stack), this._resyncElements(t), (n || o !== s._stacked) && (rs(this, s._parsed), s._stacked = he(s.vScale, s));
1938
1920
  }
1939
1921
  configure() {
1940
1922
  const t = this.chart.config, s = t.datasetScopeKeys(this._type), i = t.getOptionScopes(this.getDataset(), s, !0);
@@ -1952,7 +1934,7 @@ class qs {
1952
1934
  i._parsed[h + t] = d = f[h], c && (u() && (c = !1), l = d);
1953
1935
  i._sorted = c;
1954
1936
  }
1955
- r && os(this, f);
1937
+ r && rs(this, f);
1956
1938
  }
1957
1939
  parsePrimitiveData(t, s, i, n) {
1958
1940
  const { iScale: o, vScale: r } = t, a = o.axis, c = r.axis, l = o.getLabels(), h = o === r, d = new Array(n);
@@ -1995,7 +1977,7 @@ class qs {
1995
1977
  keys: Us(n, !0),
1996
1978
  values: s._stacks[t.axis]._visualValues
1997
1979
  };
1998
- return is(a, r, o.index, {
1980
+ return ns(a, r, o.index, {
1999
1981
  mode: i
2000
1982
  });
2001
1983
  }
@@ -2003,13 +1985,13 @@ class qs {
2003
1985
  const o = i[s.axis];
2004
1986
  let r = o === null ? NaN : o;
2005
1987
  const a = n && i._stacks[s.axis];
2006
- n && a && (n.values = a, r = is(n, o, this._cachedMeta.index)), t.min = Math.min(t.min, r), t.max = Math.max(t.max, r);
1988
+ n && a && (n.values = a, r = ns(n, o, this._cachedMeta.index)), t.min = Math.min(t.min, r), t.max = Math.max(t.max, r);
2007
1989
  }
2008
1990
  getMinMax(t, s) {
2009
- const i = this._cachedMeta, n = i._parsed, o = i._sorted && t === i.iScale, r = n.length, a = this._getOtherScale(t), c = Kn(s, i, this.chart), l = {
1991
+ const i = this._cachedMeta, n = i._parsed, o = i._sorted && t === i.iScale, r = n.length, a = this._getOtherScale(t), c = Xn(s, i, this.chart), l = {
2010
1992
  min: Number.POSITIVE_INFINITY,
2011
1993
  max: Number.NEGATIVE_INFINITY
2012
- }, { min: h, max: d } = Nn(a);
1994
+ }, { min: h, max: d } = Vn(a);
2013
1995
  let f, u;
2014
1996
  function g() {
2015
1997
  u = n[f];
@@ -2046,7 +2028,7 @@ class qs {
2046
2028
  }
2047
2029
  _update(t) {
2048
2030
  const s = this._cachedMeta;
2049
- this.update(t || "default"), s._clip = Hn(A(this.options.clip, Bn(s.xScale, s.yScale, this.getMaxOverflow())));
2031
+ this.update(t || "default"), s._clip = Bn(A(this.options.clip, jn(s.xScale, s.yScale, this.getMaxOverflow())));
2050
2032
  }
2051
2033
  update(t) {
2052
2034
  }
@@ -2069,9 +2051,9 @@ class qs {
2069
2051
  let o;
2070
2052
  if (t >= 0 && t < this._cachedMeta.data.length) {
2071
2053
  const r = this._cachedMeta.data[t];
2072
- o = r.$context || (r.$context = Xn(this.getContext(), t, r)), o.parsed = this.getParsed(t), o.raw = n.data[t], o.index = o.dataIndex = t;
2054
+ o = r.$context || (r.$context = Yn(this.getContext(), t, r)), o.parsed = this.getParsed(t), o.raw = n.data[t], o.index = o.dataIndex = t;
2073
2055
  } else
2074
- o = this.$context || (this.$context = Yn(this.chart.getContext(), this.index)), o.dataset = n, o.index = o.datasetIndex = this.index;
2056
+ o = this.$context || (this.$context = $n(this.chart.getContext(), this.index)), o.dataset = n, o.index = o.datasetIndex = this.index;
2075
2057
  return o.active = !!s, o.mode = i, o;
2076
2058
  }
2077
2059
  resolveDatasetElementOptions(t) {
@@ -2083,7 +2065,7 @@ class qs {
2083
2065
  _resolveElementOptions(t, s = "default", i) {
2084
2066
  const n = s === "active", o = this._cachedDataOpts, r = t + "-" + s, a = o[r], c = this.enableOptionSharing && Gt(i);
2085
2067
  if (a)
2086
- return rs(a, c);
2068
+ return as(a, c);
2087
2069
  const l = this.chart.config, h = l.datasetElementScopeKeys(this._type, t), d = n ? [
2088
2070
  `${t}Hover`,
2089
2071
  "hover",
@@ -2093,7 +2075,7 @@ class qs {
2093
2075
  t,
2094
2076
  ""
2095
2077
  ], f = l.getOptionScopes(this.getDataset(), h), u = Object.keys(R.elements[t]), g = () => this.getContext(i, n, s), m = l.resolveNamedOptions(f, u, g, d);
2096
- return m.$shared && (m.$shared = c, o[r] = Object.freeze(rs(m, c))), m;
2078
+ return m.$shared && (m.$shared = c, o[r] = Object.freeze(as(m, c))), m;
2097
2079
  }
2098
2080
  _resolveAnimations(t, s, i) {
2099
2081
  const n = this.chart, o = this._cachedDataOpts, r = `animation-${s}`, a = o[r];
@@ -2104,7 +2086,7 @@ class qs {
2104
2086
  const h = this.chart.config, d = h.datasetAnimationScopeKeys(this._type, s), f = h.getOptionScopes(this.getDataset(), d);
2105
2087
  c = h.createResolver(f, this.getContext(t, i, s));
2106
2088
  }
2107
- const l = new zn(n, c && c.animations);
2089
+ const l = new Ln(n, c && c.animations);
2108
2090
  return c && c._cacheable && (o[r] = Object.freeze(l)), l;
2109
2091
  }
2110
2092
  getSharedOptions(t) {
@@ -2232,7 +2214,7 @@ class qs {
2232
2214
  ]);
2233
2215
  }
2234
2216
  }
2235
- function Un(e, t, s) {
2217
+ function Kn(e, t, s) {
2236
2218
  let i = 1, n = 1, o = 0, r = 0;
2237
2219
  if (t < T) {
2238
2220
  const a = e, c = a + t, l = Math.cos(a), h = Math.sin(a), d = Math.cos(c), f = Math.sin(c), u = (x, v, y) => Jt(x, a, c, !0) ? 1 : Math.max(v, v * s, y, y * s), g = (x, v, y) => Jt(x, a, c, !0) ? -1 : Math.min(v, v * s, y, y * s), m = u(0, l, d), b = u($, h, f), p = g(z, l, d), _ = g(z + $, h, f);
@@ -2245,7 +2227,7 @@ function Un(e, t, s) {
2245
2227
  offsetY: r
2246
2228
  };
2247
2229
  }
2248
- class qn extends qs {
2230
+ class Un extends qs {
2249
2231
  static id = "doughnut";
2250
2232
  static defaults = {
2251
2233
  datasetElementType: !1,
@@ -2354,7 +2336,7 @@ class qn extends qs {
2354
2336
  };
2355
2337
  }
2356
2338
  update(t) {
2357
- const s = this.chart, { chartArea: i } = s, n = this._cachedMeta, o = n.data, r = this.getMaxBorderWidth() + this.getMaxOffset(o) + this.options.spacing, a = Math.max((Math.min(i.width, i.height) - r) / 2, 0), c = Math.min(Ri(this.options.cutout, a), 1), l = this._getRingWeight(this.index), { circumference: h, rotation: d } = this._getRotationExtents(), { ratioX: f, ratioY: u, offsetX: g, offsetY: m } = Un(d, h, c), b = (i.width - r) / f, p = (i.height - r) / u, _ = Math.max(Math.min(b, p) / 2, 0), x = Rs(this.options.radius, _), v = Math.max(x * c, 0), y = (x - v) / this._getVisibleDatasetWeightTotal();
2339
+ const s = this.chart, { chartArea: i } = s, n = this._cachedMeta, o = n.data, r = this.getMaxBorderWidth() + this.getMaxOffset(o) + this.options.spacing, a = Math.max((Math.min(i.width, i.height) - r) / 2, 0), c = Math.min(Ei(this.options.cutout, a), 1), l = this._getRingWeight(this.index), { circumference: h, rotation: d } = this._getRotationExtents(), { ratioX: f, ratioY: u, offsetX: g, offsetY: m } = Kn(d, h, c), b = (i.width - r) / f, p = (i.height - r) / u, _ = Math.max(Math.min(b, p) / 2, 0), x = Rs(this.options.radius, _), v = Math.max(x * c, 0), y = (x - v) / this._getVisibleDatasetWeightTotal();
2358
2340
  this.offsetX = g * x, this.offsetY = m * x, n.total = this.calculateTotal(), this.outerRadius = x - y * this._getRingWeightOffset(this.index), this.innerRadius = Math.max(this.outerRadius - y * l, 0), this.updateElements(o, 0, o.length, t);
2359
2341
  }
2360
2342
  _circumference(t, s) {
@@ -2393,7 +2375,7 @@ class qn extends qs {
2393
2375
  return s > 0 && !isNaN(t) ? T * (Math.abs(t) / s) : 0;
2394
2376
  }
2395
2377
  getLabelAndValue(t) {
2396
- const s = this._cachedMeta, i = this.chart, n = i.data.labels || [], o = Ji(s._parsed[t], i.options.locale);
2378
+ const s = this._cachedMeta, i = this.chart, n = i.data.labels || [], o = Qi(s._parsed[t], i.options.locale);
2397
2379
  return {
2398
2380
  label: n[t] || "",
2399
2381
  value: o
@@ -2437,10 +2419,10 @@ class qn extends qs {
2437
2419
  return this._getRingWeightOffset(this.chart.data.datasets.length) || 1;
2438
2420
  }
2439
2421
  }
2440
- function Zn(e, t, s, i) {
2422
+ function qn(e, t, s, i) {
2441
2423
  const { controller: n, data: o, _sorted: r } = e, a = n._cachedMeta.iScale, c = e.dataset && e.dataset.options ? e.dataset.options.spanGaps : null;
2442
2424
  if (a && t === a.axis && t !== "r" && r && o.length) {
2443
- const l = a._reversePixels ? $i : Ni;
2425
+ const l = a._reversePixels ? Ni : Vi;
2444
2426
  if (i) {
2445
2427
  if (n._sharedOptions) {
2446
2428
  const h = o[0], d = typeof h.getRange == "function" && h.getRange(t);
@@ -2471,14 +2453,14 @@ function Zn(e, t, s, i) {
2471
2453
  function ne(e, t, s, i, n) {
2472
2454
  const o = e.getSortedVisibleDatasetMetas(), r = s[t];
2473
2455
  for (let a = 0, c = o.length; a < c; ++a) {
2474
- const { index: l, data: h } = o[a], { lo: d, hi: f } = Zn(o[a], t, r, n);
2456
+ const { index: l, data: h } = o[a], { lo: d, hi: f } = qn(o[a], t, r, n);
2475
2457
  for (let u = d; u <= f; ++u) {
2476
2458
  const g = h[u];
2477
2459
  g.skip || i(g, l, u);
2478
2460
  }
2479
2461
  }
2480
2462
  }
2481
- function Gn(e) {
2463
+ function Zn(e) {
2482
2464
  const t = e.indexOf("x") !== -1, s = e.indexOf("y") !== -1;
2483
2465
  return function(i, n) {
2484
2466
  const o = t ? Math.abs(i.x - n.x) : 0, r = s ? Math.abs(i.y - n.y) : 0;
@@ -2495,7 +2477,7 @@ function ue(e, t, s, i, n) {
2495
2477
  });
2496
2478
  }, !0), o;
2497
2479
  }
2498
- function Qn(e, t, s, i) {
2480
+ function Gn(e, t, s, i) {
2499
2481
  let n = [];
2500
2482
  function o(r, a, c) {
2501
2483
  const { startAngle: l, endAngle: h } = r.getProps([
@@ -2513,9 +2495,9 @@ function Qn(e, t, s, i) {
2513
2495
  }
2514
2496
  return ne(e, s, t, o), n;
2515
2497
  }
2516
- function Jn(e, t, s, i, n, o) {
2498
+ function Qn(e, t, s, i, n, o) {
2517
2499
  let r = [];
2518
- const a = Gn(s);
2500
+ const a = Zn(s);
2519
2501
  let c = Number.POSITIVE_INFINITY;
2520
2502
  function l(h, d, f) {
2521
2503
  const u = h.inRange(t.x, t.y, n);
@@ -2540,9 +2522,9 @@ function Jn(e, t, s, i, n, o) {
2540
2522
  return ne(e, s, t, l), r;
2541
2523
  }
2542
2524
  function ge(e, t, s, i, n, o) {
2543
- return !o && !e.isPointInArea(t) ? [] : s === "r" && !i ? Qn(e, t, s, n) : Jn(e, t, s, i, n, o);
2525
+ return !o && !e.isPointInArea(t) ? [] : s === "r" && !i ? Gn(e, t, s, n) : Qn(e, t, s, i, n, o);
2544
2526
  }
2545
- function as(e, t, s, i, n) {
2527
+ function cs(e, t, s, i, n) {
2546
2528
  const o = [], r = s === "x" ? "inXRange" : "inYRange";
2547
2529
  let a = !1;
2548
2530
  return ne(e, s, t, (c, l, h) => {
@@ -2553,7 +2535,7 @@ function as(e, t, s, i, n) {
2553
2535
  }), a = a || c.inRange(t.x, t.y, n));
2554
2536
  }), i && !a ? [] : o;
2555
2537
  }
2556
- var to = {
2538
+ var Jn = {
2557
2539
  modes: {
2558
2540
  index(e, t, s, i) {
2559
2541
  const n = rt(t, e), o = s.axis || "x", r = s.includeInvisible || !1, a = s.intersect ? ue(e, n, o, i, r) : ge(e, n, o, !1, i, r), c = [];
@@ -2591,11 +2573,11 @@ var to = {
2591
2573
  },
2592
2574
  x(e, t, s, i) {
2593
2575
  const n = rt(t, e);
2594
- return as(e, n, "x", s.intersect, i);
2576
+ return cs(e, n, "x", s.intersect, i);
2595
2577
  },
2596
2578
  y(e, t, s, i) {
2597
2579
  const n = rt(t, e);
2598
- return as(e, n, "y", s.intersect, i);
2580
+ return cs(e, n, "y", s.intersect, i);
2599
2581
  }
2600
2582
  }
2601
2583
  };
@@ -2608,7 +2590,7 @@ const Zs = [
2608
2590
  function yt(e, t) {
2609
2591
  return e.filter((s) => s.pos === t);
2610
2592
  }
2611
- function cs(e, t) {
2593
+ function ls(e, t) {
2612
2594
  return e.filter((s) => Zs.indexOf(s.pos) === -1 && s.box.axis === t);
2613
2595
  }
2614
2596
  function vt(e, t) {
@@ -2617,7 +2599,7 @@ function vt(e, t) {
2617
2599
  return n.weight === o.weight ? n.index - o.index : n.weight - o.weight;
2618
2600
  });
2619
2601
  }
2620
- function eo(e) {
2602
+ function to(e) {
2621
2603
  const t = [];
2622
2604
  let s, i, n, o, r, a;
2623
2605
  for (s = 0, i = (e || []).length; s < i; ++s)
@@ -2632,7 +2614,7 @@ function eo(e) {
2632
2614
  });
2633
2615
  return t;
2634
2616
  }
2635
- function so(e) {
2617
+ function eo(e) {
2636
2618
  const t = {};
2637
2619
  for (const s of e) {
2638
2620
  const { stack: i, pos: n, stackWeight: o } = s;
@@ -2648,8 +2630,8 @@ function so(e) {
2648
2630
  }
2649
2631
  return t;
2650
2632
  }
2651
- function io(e, t) {
2652
- const s = so(e), { vBoxMaxWidth: i, hBoxMaxHeight: n } = t;
2633
+ function so(e, t) {
2634
+ const s = eo(e), { vBoxMaxWidth: i, hBoxMaxHeight: n } = t;
2653
2635
  let o, r, a;
2654
2636
  for (o = 0, r = e.length; o < r; ++o) {
2655
2637
  a = e[o];
@@ -2658,8 +2640,8 @@ function io(e, t) {
2658
2640
  }
2659
2641
  return s;
2660
2642
  }
2661
- function no(e) {
2662
- const t = eo(e), s = vt(t.filter((l) => l.box.fullSize), !0), i = vt(yt(t, "left"), !0), n = vt(yt(t, "right")), o = vt(yt(t, "top"), !0), r = vt(yt(t, "bottom")), a = cs(t, "x"), c = cs(t, "y");
2643
+ function io(e) {
2644
+ const t = to(e), s = vt(t.filter((l) => l.box.fullSize), !0), i = vt(yt(t, "left"), !0), n = vt(yt(t, "right")), o = vt(yt(t, "top"), !0), r = vt(yt(t, "bottom")), a = ls(t, "x"), c = ls(t, "y");
2663
2645
  return {
2664
2646
  fullSize: s,
2665
2647
  leftAndTop: i.concat(o),
@@ -2669,13 +2651,13 @@ function no(e) {
2669
2651
  horizontal: o.concat(r).concat(a)
2670
2652
  };
2671
2653
  }
2672
- function ls(e, t, s, i) {
2654
+ function hs(e, t, s, i) {
2673
2655
  return Math.max(e[s], t[s]) + Math.max(e[i], t[i]);
2674
2656
  }
2675
2657
  function Gs(e, t) {
2676
2658
  e.top = Math.max(e.top, t.top), e.left = Math.max(e.left, t.left), e.bottom = Math.max(e.bottom, t.bottom), e.right = Math.max(e.right, t.right);
2677
2659
  }
2678
- function oo(e, t, s, i) {
2660
+ function no(e, t, s, i) {
2679
2661
  const { pos: n, box: o } = s, r = e.maxPadding;
2680
2662
  if (!w(n)) {
2681
2663
  s.size && (e[n] -= s.size);
@@ -2686,7 +2668,7 @@ function oo(e, t, s, i) {
2686
2668
  d.size = Math.max(d.size, s.horizontal ? o.height : o.width), s.size = d.size / d.count, e[n] += s.size;
2687
2669
  }
2688
2670
  o.getPadding && Gs(r, o.getPadding());
2689
- const a = Math.max(0, t.outerWidth - ls(r, e, "left", "right")), c = Math.max(0, t.outerHeight - ls(r, e, "top", "bottom")), l = a !== e.w, h = c !== e.h;
2671
+ const a = Math.max(0, t.outerWidth - hs(r, e, "left", "right")), c = Math.max(0, t.outerHeight - hs(r, e, "top", "bottom")), l = a !== e.w, h = c !== e.h;
2690
2672
  return e.w = a, e.h = c, s.horizontal ? {
2691
2673
  same: l,
2692
2674
  other: h
@@ -2695,7 +2677,7 @@ function oo(e, t, s, i) {
2695
2677
  other: l
2696
2678
  };
2697
2679
  }
2698
- function ro(e) {
2680
+ function oo(e) {
2699
2681
  const t = e.maxPadding;
2700
2682
  function s(i) {
2701
2683
  const n = Math.max(t[i] - e[i], 0);
@@ -2703,7 +2685,7 @@ function ro(e) {
2703
2685
  }
2704
2686
  e.y += s("top"), e.x += s("left"), s("right"), s("bottom");
2705
2687
  }
2706
- function ao(e, t) {
2688
+ function ro(e, t) {
2707
2689
  const s = t.maxPadding;
2708
2690
  function i(n) {
2709
2691
  const o = {
@@ -2728,8 +2710,8 @@ function St(e, t, s, i) {
2728
2710
  const n = [];
2729
2711
  let o, r, a, c, l, h;
2730
2712
  for (o = 0, r = e.length, l = 0; o < r; ++o) {
2731
- a = e[o], c = a.box, c.update(a.width || t.w, a.height || t.h, ao(a.horizontal, t));
2732
- const { same: d, other: f } = oo(t, s, a, i);
2713
+ a = e[o], c = a.box, c.update(a.width || t.w, a.height || t.h, ro(a.horizontal, t));
2714
+ const { same: d, other: f } = no(t, s, a, i);
2733
2715
  l |= d && n.length, h = h || f, c.fullSize || n.push(a);
2734
2716
  }
2735
2717
  return l && St(n, t, s, i) || h;
@@ -2737,7 +2719,7 @@ function St(e, t, s, i) {
2737
2719
  function Vt(e, t, s, i, n) {
2738
2720
  e.top = s, e.left = t, e.right = t + i, e.bottom = s + n, e.width = i, e.height = n;
2739
2721
  }
2740
- function hs(e, t, s, i) {
2722
+ function ds(e, t, s, i) {
2741
2723
  const n = s.padding;
2742
2724
  let { x: o, y: r } = t;
2743
2725
  for (const a of e) {
@@ -2778,7 +2760,7 @@ var Nt = {
2778
2760
  update(e, t, s, i) {
2779
2761
  if (!e)
2780
2762
  return;
2781
- const n = Et(e.options.layout.padding), o = Math.max(t - n.width, 0), r = Math.max(s - n.height, 0), a = no(e.boxes), c = a.vertical, l = a.horizontal;
2763
+ const n = Et(e.options.layout.padding), o = Math.max(t - n.width, 0), r = Math.max(s - n.height, 0), a = io(e.boxes), c = a.vertical, l = a.horizontal;
2782
2764
  j(e.boxes, (m) => {
2783
2765
  typeof m.beforeLayout == "function" && m.beforeLayout();
2784
2766
  });
@@ -2798,8 +2780,8 @@ var Nt = {
2798
2780
  h: r,
2799
2781
  x: n.left,
2800
2782
  y: n.top
2801
- }, n), g = io(c.concat(l), d);
2802
- St(a.fullSize, u, d, g), St(c, u, d, g), St(l, u, d, g) && St(c, u, d, g), ro(u), hs(a.leftAndTop, u, d, g), u.x += u.w, u.y += u.h, hs(a.rightAndBottom, u, d, g), e.chartArea = {
2783
+ }, n), g = so(c.concat(l), d);
2784
+ St(a.fullSize, u, d, g), St(c, u, d, g), St(l, u, d, g) && St(c, u, d, g), oo(u), ds(a.leftAndTop, u, d, g), u.x += u.w, u.y += u.h, ds(a.rightAndBottom, u, d, g), e.chartArea = {
2803
2785
  left: u.left,
2804
2786
  top: u.top,
2805
2787
  right: u.left + u.w,
@@ -2842,7 +2824,7 @@ class Qs {
2842
2824
  updateConfig(t) {
2843
2825
  }
2844
2826
  }
2845
- class co extends Qs {
2827
+ class ao extends Qs {
2846
2828
  acquireContext(t) {
2847
2829
  return t && t.getContext && t.getContext("2d") || null;
2848
2830
  }
@@ -2850,7 +2832,7 @@ class co extends Qs {
2850
2832
  t.options.animation = !1;
2851
2833
  }
2852
2834
  }
2853
- const Ut = "$chartjs", lo = {
2835
+ const Ut = "$chartjs", co = {
2854
2836
  touchstart: "mousedown",
2855
2837
  touchmove: "mousemove",
2856
2838
  touchend: "mouseup",
@@ -2860,8 +2842,8 @@ const Ut = "$chartjs", lo = {
2860
2842
  pointerup: "mouseup",
2861
2843
  pointerleave: "mouseout",
2862
2844
  pointerout: "mouseout"
2863
- }, ds = (e) => e === null || e === "";
2864
- function ho(e, t) {
2845
+ }, fs = (e) => e === null || e === "";
2846
+ function lo(e, t) {
2865
2847
  const s = e.style, i = e.getAttribute("height"), n = e.getAttribute("width");
2866
2848
  if (e[Ut] = {
2867
2849
  initial: {
@@ -2873,30 +2855,30 @@ function ho(e, t) {
2873
2855
  width: s.width
2874
2856
  }
2875
2857
  }
2876
- }, s.display = s.display || "block", s.boxSizing = s.boxSizing || "border-box", ds(n)) {
2877
- const o = ts(e, "width");
2858
+ }, s.display = s.display || "block", s.boxSizing = s.boxSizing || "border-box", fs(n)) {
2859
+ const o = es(e, "width");
2878
2860
  o !== void 0 && (e.width = o);
2879
2861
  }
2880
- if (ds(i))
2862
+ if (fs(i))
2881
2863
  if (e.style.height === "")
2882
2864
  e.height = e.width / (t || 2);
2883
2865
  else {
2884
- const o = ts(e, "height");
2866
+ const o = es(e, "height");
2885
2867
  o !== void 0 && (e.height = o);
2886
2868
  }
2887
2869
  return e;
2888
2870
  }
2889
- const Js = Pn ? {
2871
+ const Js = An ? {
2890
2872
  passive: !0
2891
2873
  } : !1;
2892
- function fo(e, t, s) {
2874
+ function ho(e, t, s) {
2893
2875
  e && e.addEventListener(t, s, Js);
2894
2876
  }
2895
- function uo(e, t, s) {
2877
+ function fo(e, t, s) {
2896
2878
  e && e.canvas && e.canvas.removeEventListener(t, s, Js);
2897
2879
  }
2898
- function go(e, t) {
2899
- const s = lo[e.type] || e.type, { x: i, y: n } = rt(e, t);
2880
+ function uo(e, t) {
2881
+ const s = co[e.type] || e.type, { x: i, y: n } = rt(e, t);
2900
2882
  return {
2901
2883
  type: s,
2902
2884
  chart: t,
@@ -2910,7 +2892,7 @@ function ee(e, t) {
2910
2892
  if (s === t || s.contains(t))
2911
2893
  return !0;
2912
2894
  }
2913
- function po(e, t, s) {
2895
+ function go(e, t, s) {
2914
2896
  const i = e.canvas, n = new MutationObserver((o) => {
2915
2897
  let r = !1;
2916
2898
  for (const a of o)
@@ -2922,7 +2904,7 @@ function po(e, t, s) {
2922
2904
  subtree: !0
2923
2905
  }), n;
2924
2906
  }
2925
- function mo(e, t, s) {
2907
+ function po(e, t, s) {
2926
2908
  const i = e.canvas, n = new MutationObserver((o) => {
2927
2909
  let r = !1;
2928
2910
  for (const a of o)
@@ -2935,21 +2917,21 @@ function mo(e, t, s) {
2935
2917
  }), n;
2936
2918
  }
2937
2919
  const Rt = /* @__PURE__ */ new Map();
2938
- let fs = 0;
2920
+ let us = 0;
2939
2921
  function ti() {
2940
2922
  const e = window.devicePixelRatio;
2941
- e !== fs && (fs = e, Rt.forEach((t, s) => {
2923
+ e !== us && (us = e, Rt.forEach((t, s) => {
2942
2924
  s.currentDevicePixelRatio !== e && t();
2943
2925
  }));
2944
2926
  }
2945
- function _o(e, t) {
2927
+ function mo(e, t) {
2946
2928
  Rt.size || window.addEventListener("resize", ti), Rt.set(e, t);
2947
2929
  }
2948
- function bo(e) {
2930
+ function _o(e) {
2949
2931
  Rt.delete(e), Rt.size || window.removeEventListener("resize", ti);
2950
2932
  }
2951
- function xo(e, t, s) {
2952
- const i = e.canvas, n = i && Ae(i);
2933
+ function bo(e, t, s) {
2934
+ const i = e.canvas, n = i && Pe(i);
2953
2935
  if (!n)
2954
2936
  return;
2955
2937
  const o = js((a, c) => {
@@ -2959,21 +2941,21 @@ function xo(e, t, s) {
2959
2941
  const c = a[0], l = c.contentRect.width, h = c.contentRect.height;
2960
2942
  l === 0 && h === 0 || o(l, h);
2961
2943
  });
2962
- return r.observe(n), _o(e, o), r;
2944
+ return r.observe(n), mo(e, o), r;
2963
2945
  }
2964
2946
  function pe(e, t, s) {
2965
- s && s.disconnect(), t === "resize" && bo(e);
2947
+ s && s.disconnect(), t === "resize" && _o(e);
2966
2948
  }
2967
- function yo(e, t, s) {
2949
+ function xo(e, t, s) {
2968
2950
  const i = e.canvas, n = js((o) => {
2969
- e.ctx !== null && s(go(o, e));
2951
+ e.ctx !== null && s(uo(o, e));
2970
2952
  }, e);
2971
- return fo(i, t, n), n;
2953
+ return ho(i, t, n), n;
2972
2954
  }
2973
- class vo extends Qs {
2955
+ class yo extends Qs {
2974
2956
  acquireContext(t, s) {
2975
2957
  const i = t && t.getContext && t.getContext("2d");
2976
- return i && i.canvas === t ? (ho(t, s), i) : null;
2958
+ return i && i.canvas === t ? (lo(t, s), i) : null;
2977
2959
  }
2978
2960
  releaseContext(t) {
2979
2961
  const s = t.canvas;
@@ -2995,10 +2977,10 @@ class vo extends Qs {
2995
2977
  addEventListener(t, s, i) {
2996
2978
  this.removeEventListener(t, s);
2997
2979
  const n = t.$proxies || (t.$proxies = {}), r = {
2998
- attach: po,
2999
- detach: mo,
3000
- resize: xo
3001
- }[s] || yo;
2980
+ attach: go,
2981
+ detach: po,
2982
+ resize: bo
2983
+ }[s] || xo;
3002
2984
  n[s] = r(t, s, i);
3003
2985
  }
3004
2986
  removeEventListener(t, s) {
@@ -3009,23 +2991,23 @@ class vo extends Qs {
3009
2991
  attach: pe,
3010
2992
  detach: pe,
3011
2993
  resize: pe
3012
- }[s] || uo)(t, s, n), i[s] = void 0;
2994
+ }[s] || fo)(t, s, n), i[s] = void 0;
3013
2995
  }
3014
2996
  getDevicePixelRatio() {
3015
2997
  return window.devicePixelRatio;
3016
2998
  }
3017
2999
  getMaximumSize(t, s, i, n) {
3018
- return An(t, s, i, n);
3000
+ return Cn(t, s, i, n);
3019
3001
  }
3020
3002
  isAttached(t) {
3021
- const s = t && Ae(t);
3003
+ const s = t && Pe(t);
3022
3004
  return !!(s && s.isConnected);
3023
3005
  }
3024
3006
  }
3025
- function wo(e) {
3026
- return !Ce() || typeof OffscreenCanvas < "u" && e instanceof OffscreenCanvas ? co : vo;
3007
+ function vo(e) {
3008
+ return !Ae() || typeof OffscreenCanvas < "u" && e instanceof OffscreenCanvas ? ao : yo;
3027
3009
  }
3028
- class Pe {
3010
+ class Ee {
3029
3011
  static defaults = {};
3030
3012
  static defaultRoutes = void 0;
3031
3013
  x;
@@ -3044,7 +3026,7 @@ class Pe {
3044
3026
  };
3045
3027
  }
3046
3028
  hasValue() {
3047
- return We(this.x) && We(this.y);
3029
+ return Ve(this.x) && Ve(this.y);
3048
3030
  }
3049
3031
  getProps(t, s) {
3050
3032
  const i = this.$animations;
@@ -3056,11 +3038,11 @@ class Pe {
3056
3038
  }), n;
3057
3039
  }
3058
3040
  }
3059
- function Mo(e, t) {
3060
- const s = e.options.ticks, i = ko(e), n = Math.min(s.maxTicksLimit || i, i), o = s.major.enabled ? Oo(t) : [], r = o.length, a = o[0], c = o[r - 1], l = [];
3041
+ function wo(e, t) {
3042
+ const s = e.options.ticks, i = Mo(e), n = Math.min(s.maxTicksLimit || i, i), o = s.major.enabled ? So(t) : [], r = o.length, a = o[0], c = o[r - 1], l = [];
3061
3043
  if (r > n)
3062
- return Do(t, l, o, r / n), l;
3063
- const h = So(o, t, n);
3044
+ return Oo(t, l, o, r / n), l;
3045
+ const h = ko(o, t, n);
3064
3046
  if (r > 0) {
3065
3047
  let d, f;
3066
3048
  const u = r > 1 ? Math.round((c - a) / (r - 1)) : null;
@@ -3070,15 +3052,15 @@ function Mo(e, t) {
3070
3052
  }
3071
3053
  return $t(t, l, h), l;
3072
3054
  }
3073
- function ko(e) {
3055
+ function Mo(e) {
3074
3056
  const t = e.options.offset, s = e._tickSize(), i = e._length / s + (t ? 0 : 1), n = e._maxLength / s;
3075
3057
  return Math.floor(Math.min(i, n));
3076
3058
  }
3077
- function So(e, t, s) {
3078
- const i = Co(e), n = t.length / s;
3059
+ function ko(e, t, s) {
3060
+ const i = Do(e), n = t.length / s;
3079
3061
  if (!i)
3080
3062
  return Math.max(n, 1);
3081
- const o = ji(i);
3063
+ const o = Fi(i);
3082
3064
  for (let r = 0, a = o.length - 1; r < a; r++) {
3083
3065
  const c = o[r];
3084
3066
  if (c > n)
@@ -3086,14 +3068,14 @@ function So(e, t, s) {
3086
3068
  }
3087
3069
  return Math.max(n, 1);
3088
3070
  }
3089
- function Oo(e) {
3071
+ function So(e) {
3090
3072
  const t = [];
3091
3073
  let s, i;
3092
3074
  for (s = 0, i = e.length; s < i; s++)
3093
3075
  e[s].major && t.push(s);
3094
3076
  return t;
3095
3077
  }
3096
- function Do(e, t, s, i) {
3078
+ function Oo(e, t, s, i) {
3097
3079
  let n = 0, o = s[0], r;
3098
3080
  for (i = Math.ceil(i), r = 0; r < e.length; r++)
3099
3081
  r === o && (t.push(e[r]), n++, o = s[n * i]);
@@ -3106,7 +3088,7 @@ function $t(e, t, s, i, n) {
3106
3088
  for (l = Math.max(o, 0); l < r; l++)
3107
3089
  l === h && (t.push(e[l]), a++, h = Math.round(o + a * s));
3108
3090
  }
3109
- function Co(e) {
3091
+ function Do(e) {
3110
3092
  const t = e.length;
3111
3093
  let s, i;
3112
3094
  if (t < 2)
@@ -3116,21 +3098,21 @@ function Co(e) {
3116
3098
  return !1;
3117
3099
  return i;
3118
3100
  }
3119
- const Ao = (e) => e === "left" ? "right" : e === "right" ? "left" : e, us = (e, t, s) => t === "top" || t === "left" ? e[t] + s : e[t] - s, gs = (e, t) => Math.min(t || e, e);
3120
- function ps(e, t) {
3101
+ const Co = (e) => e === "left" ? "right" : e === "right" ? "left" : e, gs = (e, t, s) => t === "top" || t === "left" ? e[t] + s : e[t] - s, ps = (e, t) => Math.min(t || e, e);
3102
+ function ms(e, t) {
3121
3103
  const s = [], i = e.length / t, n = e.length;
3122
3104
  let o = 0;
3123
3105
  for (; o < n; o += i)
3124
3106
  s.push(e[Math.floor(o)]);
3125
3107
  return s;
3126
3108
  }
3127
- function Po(e, t, s) {
3109
+ function Ao(e, t, s) {
3128
3110
  const i = e.ticks.length, n = Math.min(t, i - 1), o = e._startPixel, r = e._endPixel, a = 1e-6;
3129
3111
  let c = e.getPixelForTick(n), l;
3130
3112
  if (!(s && (i === 1 ? l = Math.max(c - o, r - c) : t === 0 ? l = (e.getPixelForTick(1) - c) / 2 : l = (c - e.getPixelForTick(n - 1)) / 2, c += n < t ? l : -l, c < o - a || c > r + a)))
3131
3113
  return c;
3132
3114
  }
3133
- function Eo(e, t) {
3115
+ function Po(e, t) {
3134
3116
  j(e, (s) => {
3135
3117
  const i = s.gc, n = i.length / 2;
3136
3118
  let o;
@@ -3144,45 +3126,45 @@ function Eo(e, t) {
3144
3126
  function wt(e) {
3145
3127
  return e.drawTicks ? e.tickLength : 0;
3146
3128
  }
3147
- function ms(e, t) {
3129
+ function _s(e, t) {
3148
3130
  if (!e.display)
3149
3131
  return 0;
3150
3132
  const s = be(e.font, t), i = Et(e.padding);
3151
3133
  return (B(e.text) ? e.text.length : 1) * s.lineHeight + i.height;
3152
3134
  }
3153
- function Ro(e, t) {
3135
+ function Eo(e, t) {
3154
3136
  return Tt(e, {
3155
3137
  scale: t,
3156
3138
  type: "scale"
3157
3139
  });
3158
3140
  }
3159
- function Io(e, t, s) {
3141
+ function Ro(e, t, s) {
3160
3142
  return Tt(e, {
3161
3143
  tick: s,
3162
3144
  index: t,
3163
3145
  type: "tick"
3164
3146
  });
3165
3147
  }
3166
- function To(e, t, s) {
3167
- let i = Ki(e);
3168
- return (s && t !== "right" || !s && t === "right") && (i = Ao(i)), i;
3148
+ function Io(e, t, s) {
3149
+ let i = Xi(e);
3150
+ return (s && t !== "right" || !s && t === "right") && (i = Co(i)), i;
3169
3151
  }
3170
- function Lo(e, t, s, i) {
3152
+ function To(e, t, s, i) {
3171
3153
  const { top: n, left: o, bottom: r, right: a, chart: c } = e, { chartArea: l, scales: h } = c;
3172
3154
  let d = 0, f, u, g;
3173
3155
  const m = r - n, b = a - o;
3174
3156
  if (e.isHorizontal()) {
3175
- if (u = Ne(i, o, a), w(s)) {
3157
+ if (u = $e(i, o, a), w(s)) {
3176
3158
  const p = Object.keys(s)[0], _ = s[p];
3177
3159
  g = h[p].getPixelForValue(_) + m - t;
3178
- } else s === "center" ? g = (l.bottom + l.top) / 2 + m - t : g = us(e, s, t);
3160
+ } else s === "center" ? g = (l.bottom + l.top) / 2 + m - t : g = gs(e, s, t);
3179
3161
  f = a - o;
3180
3162
  } else {
3181
3163
  if (w(s)) {
3182
3164
  const p = Object.keys(s)[0], _ = s[p];
3183
3165
  u = h[p].getPixelForValue(_) - b + t;
3184
- } else s === "center" ? u = (l.left + l.right) / 2 - b + t : u = us(e, s, t);
3185
- g = Ne(i, r, n), d = s === "left" ? -$ : $;
3166
+ } else s === "center" ? u = (l.left + l.right) / 2 - b + t : u = gs(e, s, t);
3167
+ g = $e(i, r, n), d = s === "left" ? -$ : $;
3186
3168
  }
3187
3169
  return {
3188
3170
  titleX: u,
@@ -3191,7 +3173,7 @@ function Lo(e, t, s, i) {
3191
3173
  rotation: d
3192
3174
  };
3193
3175
  }
3194
- class Ee extends Pe {
3176
+ class Re extends Ee {
3195
3177
  constructor(t) {
3196
3178
  super(), this.id = t.id, this.type = t.type, this.options = void 0, this.ctx = t.ctx, this.chart = t.chart, this.top = void 0, this.bottom = void 0, this.left = void 0, this.right = void 0, this.width = void 0, this.height = void 0, this._margins = {
3197
3179
  left: 0,
@@ -3263,9 +3245,9 @@ class Ee extends Pe {
3263
3245
  right: 0,
3264
3246
  top: 0,
3265
3247
  bottom: 0
3266
- }, i), this.ticks = null, this._labelSizes = null, this._gridLineItems = null, this._labelItems = null, this.beforeSetDimensions(), this.setDimensions(), this.afterSetDimensions(), this._maxLength = this.isHorizontal() ? this.width + i.left + i.right : this.height + i.top + i.bottom, this._dataLimitsCached || (this.beforeDataLimits(), this.determineDataLimits(), this.afterDataLimits(), this._range = gn(this, o, n), this._dataLimitsCached = !0), this.beforeBuildTicks(), this.ticks = this.buildTicks() || [], this.afterBuildTicks();
3248
+ }, i), this.ticks = null, this._labelSizes = null, this._gridLineItems = null, this._labelItems = null, this.beforeSetDimensions(), this.setDimensions(), this.afterSetDimensions(), this._maxLength = this.isHorizontal() ? this.width + i.left + i.right : this.height + i.top + i.bottom, this._dataLimitsCached || (this.beforeDataLimits(), this.determineDataLimits(), this.afterDataLimits(), this._range = un(this, o, n), this._dataLimitsCached = !0), this.beforeBuildTicks(), this.ticks = this.buildTicks() || [], this.afterBuildTicks();
3267
3249
  const c = a < this.ticks.length;
3268
- this._convertTicksToLabels(c ? ps(this.ticks, a) : this.ticks), this.configure(), this.beforeCalculateLabelRotation(), this.calculateLabelRotation(), this.afterCalculateLabelRotation(), r.display && (r.autoSkip || r.source === "auto") && (this.ticks = Mo(this, this.ticks), this._labelSizes = null, this.afterAutoSkip()), c && this._convertTicksToLabels(this.ticks), this.beforeFit(), this.fit(), this.afterFit(), this.afterUpdate();
3250
+ this._convertTicksToLabels(c ? ms(this.ticks, a) : this.ticks), this.configure(), this.beforeCalculateLabelRotation(), this.calculateLabelRotation(), this.afterCalculateLabelRotation(), r.display && (r.autoSkip || r.source === "auto") && (this.ticks = wo(this, this.ticks), this._labelSizes = null, this.afterAutoSkip()), c && this._convertTicksToLabels(this.ticks), this.beforeFit(), this.fit(), this.afterFit(), this.afterUpdate();
3269
3251
  }
3270
3252
  configure() {
3271
3253
  let t = this.options.reverse, s, i;
@@ -3337,14 +3319,14 @@ class Ee extends Pe {
3337
3319
  ]);
3338
3320
  }
3339
3321
  calculateLabelRotation() {
3340
- const t = this.options, s = t.ticks, i = gs(this.ticks.length, t.ticks.maxTicksLimit), n = s.minRotation || 0, o = s.maxRotation;
3322
+ const t = this.options, s = t.ticks, i = ps(this.ticks.length, t.ticks.maxTicksLimit), n = s.minRotation || 0, o = s.maxRotation;
3341
3323
  let r = n, a, c, l;
3342
3324
  if (!this._isVisible() || !s.display || n >= o || i <= 1 || !this.isHorizontal()) {
3343
3325
  this.labelRotation = n;
3344
3326
  return;
3345
3327
  }
3346
3328
  const h = this._getLabelSizes(), d = h.widest.width, f = h.highest.height, u = J(this.chart.width - d, 0, this.maxWidth);
3347
- a = t.offset ? this.maxWidth / i : u / (i - 1), d + 6 > a && (a = u / (i - (t.offset ? 0.5 : 1)), c = this.maxHeight - wt(t.grid) - s.padding - ms(t.title, this.chart.options.font), l = Math.sqrt(d * d + f * f), r = Hi(Math.min(Math.asin(J((h.highest.height + 6) / a, -1, 1)), Math.asin(J(c / l, -1, 1)) - Math.asin(J(f / l, -1, 1)))), r = Math.max(n, Math.min(o, r))), this.labelRotation = r;
3329
+ a = t.offset ? this.maxWidth / i : u / (i - 1), d + 6 > a && (a = u / (i - (t.offset ? 0.5 : 1)), c = this.maxHeight - wt(t.grid) - s.padding - _s(t.title, this.chart.options.font), l = Math.sqrt(d * d + f * f), r = Bi(Math.min(Math.asin(J((h.highest.height + 6) / a, -1, 1)), Math.asin(J(c / l, -1, 1)) - Math.asin(J(f / l, -1, 1)))), r = Math.max(n, Math.min(o, r))), this.labelRotation = r;
3348
3330
  }
3349
3331
  afterCalculateLabelRotation() {
3350
3332
  E(this.options.afterCalculateLabelRotation, [
@@ -3364,7 +3346,7 @@ class Ee extends Pe {
3364
3346
  height: 0
3365
3347
  }, { chart: s, options: { ticks: i, title: n, grid: o } } = this, r = this._isVisible(), a = this.isHorizontal();
3366
3348
  if (r) {
3367
- const c = ms(n, s.options.font);
3349
+ const c = _s(n, s.options.font);
3368
3350
  if (a ? (t.width = this.maxWidth, t.height = wt(o) + c) : (t.height = this.maxHeight, t.width = wt(o) + c), i.display && this.ticks.length) {
3369
3351
  const { first: l, last: h, widest: d, highest: f } = this._getLabelSizes(), u = i.padding * 2, g = gt(this.labelRotation), m = Math.cos(g), b = Math.sin(g);
3370
3352
  if (a) {
@@ -3417,25 +3399,25 @@ class Ee extends Pe {
3417
3399
  if (!t) {
3418
3400
  const s = this.options.ticks.sampleSize;
3419
3401
  let i = this.ticks;
3420
- s < i.length && (i = ps(i, s)), this._labelSizes = t = this._computeLabelSizes(i, i.length, this.options.ticks.maxTicksLimit);
3402
+ s < i.length && (i = ms(i, s)), this._labelSizes = t = this._computeLabelSizes(i, i.length, this.options.ticks.maxTicksLimit);
3421
3403
  }
3422
3404
  return t;
3423
3405
  }
3424
3406
  _computeLabelSizes(t, s, i) {
3425
- const { ctx: n, _longestTextCache: o } = this, r = [], a = [], c = Math.floor(s / gs(s, i));
3407
+ const { ctx: n, _longestTextCache: o } = this, r = [], a = [], c = Math.floor(s / ps(s, i));
3426
3408
  let l = 0, h = 0, d, f, u, g, m, b, p, _, x, v, y;
3427
3409
  for (d = 0; d < s; d += c) {
3428
3410
  if (g = t[d].label, m = this._resolveTickFontOptions(d), n.font = b = m.string, p = o[b] = o[b] || {
3429
3411
  data: {},
3430
3412
  gc: []
3431
3413
  }, _ = m.lineHeight, x = v = 0, !W(g) && !B(g))
3432
- x = Ue(n, p.data, p.gc, x, g), v = _;
3414
+ x = qe(n, p.data, p.gc, x, g), v = _;
3433
3415
  else if (B(g))
3434
3416
  for (f = 0, u = g.length; f < u; ++f)
3435
- y = g[f], !W(y) && !B(y) && (x = Ue(n, p.data, p.gc, x, y), v += _);
3417
+ y = g[f], !W(y) && !B(y) && (x = qe(n, p.data, p.gc, x, y), v += _);
3436
3418
  r.push(x), a.push(v), l = Math.max(x, l), h = Math.max(v, h);
3437
3419
  }
3438
- Eo(o, s);
3420
+ Po(o, s);
3439
3421
  const O = r.indexOf(l), D = a.indexOf(h), L = (I) => ({
3440
3422
  width: r[I] || 0,
3441
3423
  height: a[I] || 0
@@ -3464,7 +3446,7 @@ class Ee extends Pe {
3464
3446
  getPixelForDecimal(t) {
3465
3447
  this._reversePixels && (t = 1 - t);
3466
3448
  const s = this._startPixel + t * this._length;
3467
- return Wi(this._alignToPixels ? ot(this.chart, s, 0) : s);
3449
+ return Hi(this._alignToPixels ? ot(this.chart, s, 0) : s);
3468
3450
  }
3469
3451
  getDecimalForPixel(t) {
3470
3452
  const s = (t - this._startPixel) / this._length;
@@ -3481,9 +3463,9 @@ class Ee extends Pe {
3481
3463
  const s = this.ticks || [];
3482
3464
  if (t >= 0 && t < s.length) {
3483
3465
  const i = s[t];
3484
- return i.$context || (i.$context = Io(this.getContext(), t, i));
3466
+ return i.$context || (i.$context = Ro(this.getContext(), t, i));
3485
3467
  }
3486
- return this.$context || (this.$context = Ro(this.chart.getContext(), this));
3468
+ return this.$context || (this.$context = Eo(this.chart.getContext(), this));
3487
3469
  }
3488
3470
  _tickSize() {
3489
3471
  const t = this.options.ticks, s = gt(this.labelRotation), i = Math.abs(Math.cos(s)), n = Math.abs(Math.sin(s)), o = this._getLabelSizes(), r = t.autoSkipPadding || 0, a = o ? o.widest.width + r : 0, c = o ? o.highest.height + r : 0;
@@ -3526,7 +3508,7 @@ class Ee extends Pe {
3526
3508
  const Y = A(n.ticks.maxTicksLimit, d), M = Math.max(1, Math.ceil(d / Y));
3527
3509
  for (x = 0; x < d; x += M) {
3528
3510
  const S = this.getContext(x), C = o.setContext(S), X = a.setContext(S), F = C.lineWidth, lt = C.color, Lt = X.dash || [], ht = X.dashOffset, _t = C.tickWidth, it = C.tickColor, bt = C.tickBorderDash || [], nt = C.tickBorderDashOffset;
3529
- v = Po(this, x, c), v !== void 0 && (y = ot(i, v, F), l ? O = L = k = P = y : D = I = H = V = y, u.push({
3511
+ v = Ao(this, x, c), v !== void 0 && (y = ot(i, v, F), l ? O = L = k = P = y : D = I = H = V = y, u.push({
3530
3512
  tx1: O,
3531
3513
  ty1: D,
3532
3514
  tx2: L,
@@ -3728,7 +3710,7 @@ class Ee extends Pe {
3728
3710
  const o = this.getLabelItems(t);
3729
3711
  for (const r of o) {
3730
3712
  const a = r.options, c = r.font, l = r.label, h = r.textOffset;
3731
- Ze(i, l, 0, h, c, a);
3713
+ Ge(i, l, 0, h, c, a);
3732
3714
  }
3733
3715
  n && Vs(i);
3734
3716
  }
@@ -3739,12 +3721,12 @@ class Ee extends Pe {
3739
3721
  const o = be(i.font), r = Et(i.padding), a = i.align;
3740
3722
  let c = o.lineHeight / 2;
3741
3723
  s === "bottom" || s === "center" || w(s) ? (c += r.bottom, B(i.text) && (c += o.lineHeight * (i.text.length - 1))) : c += r.top;
3742
- const { titleX: l, titleY: h, maxWidth: d, rotation: f } = Lo(this, c, s, a);
3743
- Ze(t, i.text, 0, 0, o, {
3724
+ const { titleX: l, titleY: h, maxWidth: d, rotation: f } = To(this, c, s, a);
3725
+ Ge(t, i.text, 0, 0, o, {
3744
3726
  color: i.color,
3745
3727
  maxWidth: d,
3746
3728
  rotation: f,
3747
- textAlign: To(a, s, n),
3729
+ textAlign: Io(a, s, n),
3748
3730
  textBaseline: "middle",
3749
3731
  translation: [
3750
3732
  l,
@@ -3757,7 +3739,7 @@ class Ee extends Pe {
3757
3739
  }
3758
3740
  _layers() {
3759
3741
  const t = this.options, s = t.ticks && t.ticks.z || 0, i = A(t.grid && t.grid.z, -1), n = A(t.border && t.border.z, 0);
3760
- return !this._isVisible() || this.draw !== Ee.prototype.draw ? [
3742
+ return !this._isVisible() || this.draw !== Re.prototype.draw ? [
3761
3743
  {
3762
3744
  z: s,
3763
3745
  draw: (o) => {
@@ -3813,11 +3795,11 @@ class Yt {
3813
3795
  register(t) {
3814
3796
  const s = Object.getPrototypeOf(t);
3815
3797
  let i;
3816
- jo(s) && (i = this.register(s));
3798
+ Fo(s) && (i = this.register(s));
3817
3799
  const n = this.items, o = t.id, r = this.scope + "." + o;
3818
3800
  if (!o)
3819
3801
  throw new Error("class does not have id: " + t);
3820
- return o in n || (n[o] = t, zo(t, r, i), this.override && R.override(t.id, t.overrides)), r;
3802
+ return o in n || (n[o] = t, Lo(t, r, i), this.override && R.override(t.id, t.overrides)), r;
3821
3803
  }
3822
3804
  get(t) {
3823
3805
  return this.items[t];
@@ -3827,15 +3809,15 @@ class Yt {
3827
3809
  i in s && delete s[i], n && i in R[n] && (delete R[n][i], this.override && delete ct[i]);
3828
3810
  }
3829
3811
  }
3830
- function zo(e, t, s) {
3812
+ function Lo(e, t, s) {
3831
3813
  const i = At(/* @__PURE__ */ Object.create(null), [
3832
3814
  s ? R.get(s) : {},
3833
3815
  R.get(t),
3834
3816
  e.defaults
3835
3817
  ]);
3836
- R.set(t, i), e.defaultRoutes && Fo(t, e.defaultRoutes), e.descriptors && R.describe(t, e.descriptors);
3818
+ R.set(t, i), e.defaultRoutes && zo(t, e.defaultRoutes), e.descriptors && R.describe(t, e.descriptors);
3837
3819
  }
3838
- function Fo(e, t) {
3820
+ function zo(e, t) {
3839
3821
  Object.keys(t).forEach((s) => {
3840
3822
  const i = s.split("."), n = i.pop(), o = [
3841
3823
  e
@@ -3843,12 +3825,12 @@ function Fo(e, t) {
3843
3825
  R.route(o, n, c, a);
3844
3826
  });
3845
3827
  }
3846
- function jo(e) {
3828
+ function Fo(e) {
3847
3829
  return "id" in e && "defaults" in e;
3848
3830
  }
3849
- class Bo {
3831
+ class jo {
3850
3832
  constructor() {
3851
- this.controllers = new Yt(qs, "datasets", !0), this.elements = new Yt(Pe, "elements"), this.plugins = new Yt(Object, "plugins"), this.scales = new Yt(Ee, "scales"), this._typedRegistries = [
3833
+ this.controllers = new Yt(qs, "datasets", !0), this.elements = new Yt(Ee, "elements"), this.plugins = new Yt(Object, "plugins"), this.scales = new Yt(Re, "scales"), this._typedRegistries = [
3852
3834
  this.controllers,
3853
3835
  this.scales,
3854
3836
  this.elements
@@ -3908,7 +3890,7 @@ class Bo {
3908
3890
  });
3909
3891
  }
3910
3892
  _exec(t, s, i) {
3911
- const n = ke(t);
3893
+ const n = Se(t);
3912
3894
  E(i["before" + n], [], i), s[t](i), E(i["after" + n], [], i);
3913
3895
  }
3914
3896
  _getRegistryForType(t) {
@@ -3926,8 +3908,8 @@ class Bo {
3926
3908
  return n;
3927
3909
  }
3928
3910
  }
3929
- var U = /* @__PURE__ */ new Bo();
3930
- class Ho {
3911
+ var U = /* @__PURE__ */ new jo();
3912
+ class Bo {
3931
3913
  constructor() {
3932
3914
  this._init = void 0;
3933
3915
  }
@@ -3960,15 +3942,15 @@ class Ho {
3960
3942
  return this._notifyStateChanges(t), s;
3961
3943
  }
3962
3944
  _createDescriptors(t, s) {
3963
- const i = t && t.config, n = A(i.options && i.options.plugins, {}), o = Wo(i);
3964
- return n === !1 && !s ? [] : No(t, o, n, s);
3945
+ const i = t && t.config, n = A(i.options && i.options.plugins, {}), o = Ho(i);
3946
+ return n === !1 && !s ? [] : Vo(t, o, n, s);
3965
3947
  }
3966
3948
  _notifyStateChanges(t) {
3967
3949
  const s = this._oldCache || [], i = this._cache, n = (o, r) => o.filter((a) => !r.some((c) => a.plugin.id === c.plugin.id));
3968
3950
  this._notify(n(s, i), t, "stop"), this._notify(n(i, s), t, "start");
3969
3951
  }
3970
3952
  }
3971
- function Wo(e) {
3953
+ function Ho(e) {
3972
3954
  const t = {}, s = [], i = Object.keys(U.plugins.items);
3973
3955
  for (let o = 0; o < i.length; o++)
3974
3956
  s.push(U.getPlugin(i[o]));
@@ -3982,16 +3964,16 @@ function Wo(e) {
3982
3964
  localIds: t
3983
3965
  };
3984
3966
  }
3985
- function Vo(e, t) {
3967
+ function Wo(e, t) {
3986
3968
  return !t && e === !1 ? null : e === !0 ? {} : e;
3987
3969
  }
3988
- function No(e, { plugins: t, localIds: s }, i, n) {
3970
+ function Vo(e, { plugins: t, localIds: s }, i, n) {
3989
3971
  const o = [], r = e.getContext();
3990
3972
  for (const a of t) {
3991
- const c = a.id, l = Vo(i[c], n);
3973
+ const c = a.id, l = Wo(i[c], n);
3992
3974
  l !== null && o.push({
3993
3975
  plugin: a,
3994
- options: $o(e.config, {
3976
+ options: No(e.config, {
3995
3977
  plugin: a,
3996
3978
  local: s[c]
3997
3979
  }, l, r)
@@ -3999,7 +3981,7 @@ function No(e, { plugins: t, localIds: s }, i, n) {
3999
3981
  }
4000
3982
  return o;
4001
3983
  }
4002
- function $o(e, { plugin: t, local: s }, i, n) {
3984
+ function No(e, { plugin: t, local: s }, i, n) {
4003
3985
  const o = e.pluginScopeKeys(t), r = e.getOptionScopes(i, o);
4004
3986
  return s && t.defaults && r.push(t.defaults), e.createResolver(r, n, [
4005
3987
  ""
@@ -4013,48 +3995,48 @@ function xe(e, t) {
4013
3995
  const s = R.datasets[e] || {};
4014
3996
  return ((t.datasets || {})[e] || {}).indexAxis || t.indexAxis || s.indexAxis || "x";
4015
3997
  }
4016
- function Yo(e, t) {
3998
+ function $o(e, t) {
4017
3999
  let s = e;
4018
4000
  return e === "_index_" ? s = t : e === "_value_" && (s = t === "x" ? "y" : "x"), s;
4019
4001
  }
4020
- function Xo(e, t) {
4002
+ function Yo(e, t) {
4021
4003
  return e === t ? "_index_" : "_value_";
4022
4004
  }
4023
- function _s(e) {
4005
+ function bs(e) {
4024
4006
  if (e === "x" || e === "y" || e === "r")
4025
4007
  return e;
4026
4008
  }
4027
- function Ko(e) {
4009
+ function Xo(e) {
4028
4010
  if (e === "top" || e === "bottom")
4029
4011
  return "x";
4030
4012
  if (e === "left" || e === "right")
4031
4013
  return "y";
4032
4014
  }
4033
4015
  function ye(e, ...t) {
4034
- if (_s(e))
4016
+ if (bs(e))
4035
4017
  return e;
4036
4018
  for (const s of t) {
4037
- const i = s.axis || Ko(s.position) || e.length > 1 && _s(e[0].toLowerCase());
4019
+ const i = s.axis || Xo(s.position) || e.length > 1 && bs(e[0].toLowerCase());
4038
4020
  if (i)
4039
4021
  return i;
4040
4022
  }
4041
4023
  throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`);
4042
4024
  }
4043
- function bs(e, t, s) {
4025
+ function xs(e, t, s) {
4044
4026
  if (s[t + "AxisID"] === e)
4045
4027
  return {
4046
4028
  axis: t
4047
4029
  };
4048
4030
  }
4049
- function Uo(e, t) {
4031
+ function Ko(e, t) {
4050
4032
  if (t.data && t.data.datasets) {
4051
4033
  const s = t.data.datasets.filter((i) => i.xAxisID === e || i.yAxisID === e);
4052
4034
  if (s.length)
4053
- return bs(e, "x", s[0]) || bs(e, "y", s[0]);
4035
+ return xs(e, "x", s[0]) || xs(e, "y", s[0]);
4054
4036
  }
4055
4037
  return {};
4056
4038
  }
4057
- function qo(e, t) {
4039
+ function Uo(e, t) {
4058
4040
  const s = ct[e.type] || {
4059
4041
  scales: {}
4060
4042
  }, i = t.scales || {}, n = xe(e.type, t), o = /* @__PURE__ */ Object.create(null);
@@ -4064,7 +4046,7 @@ function qo(e, t) {
4064
4046
  return console.error(`Invalid scale configuration for scale: ${r}`);
4065
4047
  if (a._proxy)
4066
4048
  return console.warn(`Ignoring resolver passed as options for scale: ${r}`);
4067
- const c = ye(r, a, Uo(r, e), R.scales[a.type]), l = Xo(c, n), h = s.scales || {};
4049
+ const c = ye(r, a, Ko(r, e), R.scales[a.type]), l = Yo(c, n), h = s.scales || {};
4068
4050
  o[r] = Kt(/* @__PURE__ */ Object.create(null), [
4069
4051
  {
4070
4052
  axis: c
@@ -4076,7 +4058,7 @@ function qo(e, t) {
4076
4058
  }), e.data.datasets.forEach((r) => {
4077
4059
  const a = r.type || e.type, c = r.indexAxis || xe(a, t), h = (ct[a] || {}).scales || {};
4078
4060
  Object.keys(h).forEach((d) => {
4079
- const f = Yo(d, c), u = r[f + "AxisID"] || f;
4061
+ const f = $o(d, c), u = r[f + "AxisID"] || f;
4080
4062
  o[u] = o[u] || /* @__PURE__ */ Object.create(null), Kt(o[u], [
4081
4063
  {
4082
4064
  axis: f
@@ -4095,26 +4077,26 @@ function qo(e, t) {
4095
4077
  }
4096
4078
  function ei(e) {
4097
4079
  const t = e.options || (e.options = {});
4098
- t.plugins = A(t.plugins, {}), t.scales = qo(e, t);
4080
+ t.plugins = A(t.plugins, {}), t.scales = Uo(e, t);
4099
4081
  }
4100
4082
  function si(e) {
4101
4083
  return e = e || {}, e.datasets = e.datasets || [], e.labels = e.labels || [], e;
4102
4084
  }
4103
- function Zo(e) {
4085
+ function qo(e) {
4104
4086
  return e = e || {}, e.data = si(e.data), ei(e), e;
4105
4087
  }
4106
- const xs = /* @__PURE__ */ new Map(), ii = /* @__PURE__ */ new Set();
4088
+ const ys = /* @__PURE__ */ new Map(), ii = /* @__PURE__ */ new Set();
4107
4089
  function Xt(e, t) {
4108
- let s = xs.get(e);
4109
- return s || (s = t(), xs.set(e, s), ii.add(s)), s;
4090
+ let s = ys.get(e);
4091
+ return s || (s = t(), ys.set(e, s), ii.add(s)), s;
4110
4092
  }
4111
4093
  const Mt = (e, t, s) => {
4112
4094
  const i = Pt(t, s);
4113
4095
  i !== void 0 && e.add(i);
4114
4096
  };
4115
- class Go {
4097
+ class Zo {
4116
4098
  constructor(t) {
4117
- this._config = Zo(t), this._scopeCache = /* @__PURE__ */ new Map(), this._resolverCache = /* @__PURE__ */ new Map();
4099
+ this._config = qo(t), this._scopeCache = /* @__PURE__ */ new Map(), this._resolverCache = /* @__PURE__ */ new Map();
4118
4100
  }
4119
4101
  get platform() {
4120
4102
  return this._config.platform;
@@ -4220,9 +4202,9 @@ class Go {
4220
4202
  ]) {
4221
4203
  const o = {
4222
4204
  $shared: !0
4223
- }, { resolver: r, subPrefixes: a } = ys(this._resolverCache, t, n);
4205
+ }, { resolver: r, subPrefixes: a } = vs(this._resolverCache, t, n);
4224
4206
  let c = r;
4225
- if (Jo(r, s)) {
4207
+ if (Qo(r, s)) {
4226
4208
  o.$shared = !1, i = st(i) ? i() : i;
4227
4209
  const l = this.createResolver(t, i, a);
4228
4210
  c = mt(r, i, l);
@@ -4234,66 +4216,66 @@ class Go {
4234
4216
  createResolver(t, s, i = [
4235
4217
  ""
4236
4218
  ], n) {
4237
- const { resolver: o } = ys(this._resolverCache, t, i);
4219
+ const { resolver: o } = vs(this._resolverCache, t, i);
4238
4220
  return w(s) ? mt(o, s, void 0, n) : o;
4239
4221
  }
4240
4222
  }
4241
- function ys(e, t, s) {
4223
+ function vs(e, t, s) {
4242
4224
  let i = e.get(t);
4243
4225
  i || (i = /* @__PURE__ */ new Map(), e.set(t, i));
4244
4226
  const n = s.join();
4245
4227
  let o = i.get(n);
4246
4228
  return o || (o = {
4247
- resolver: Se(t, s),
4229
+ resolver: Oe(t, s),
4248
4230
  subPrefixes: s.filter((a) => !a.toLowerCase().includes("hover"))
4249
4231
  }, i.set(n, o)), o;
4250
4232
  }
4251
- const Qo = (e) => w(e) && Object.getOwnPropertyNames(e).some((t) => st(e[t]));
4252
- function Jo(e, t) {
4233
+ const Go = (e) => w(e) && Object.getOwnPropertyNames(e).some((t) => st(e[t]));
4234
+ function Qo(e, t) {
4253
4235
  const { isScriptable: s, isIndexable: i } = $s(e);
4254
4236
  for (const n of t) {
4255
4237
  const o = s(n), r = i(n), a = (r || o) && e[n];
4256
- if (o && (st(a) || Qo(a)) || r && B(a))
4238
+ if (o && (st(a) || Go(a)) || r && B(a))
4257
4239
  return !0;
4258
4240
  }
4259
4241
  return !1;
4260
4242
  }
4261
- var tr = "4.5.1";
4262
- const er = [
4243
+ var Jo = "4.5.1";
4244
+ const tr = [
4263
4245
  "top",
4264
4246
  "bottom",
4265
4247
  "left",
4266
4248
  "right",
4267
4249
  "chartArea"
4268
4250
  ];
4269
- function vs(e, t) {
4270
- return e === "top" || e === "bottom" || er.indexOf(e) === -1 && t === "x";
4271
- }
4272
4251
  function ws(e, t) {
4252
+ return e === "top" || e === "bottom" || tr.indexOf(e) === -1 && t === "x";
4253
+ }
4254
+ function Ms(e, t) {
4273
4255
  return function(s, i) {
4274
4256
  return s[e] === i[e] ? s[t] - i[t] : s[e] - i[e];
4275
4257
  };
4276
4258
  }
4277
- function Ms(e) {
4259
+ function ks(e) {
4278
4260
  const t = e.chart, s = t.options.animation;
4279
4261
  t.notifyPlugins("afterRender"), E(s && s.onComplete, [
4280
4262
  e
4281
4263
  ], t);
4282
4264
  }
4283
- function sr(e) {
4265
+ function er(e) {
4284
4266
  const t = e.chart, s = t.options.animation;
4285
4267
  E(s && s.onProgress, [
4286
4268
  e
4287
4269
  ], t);
4288
4270
  }
4289
4271
  function ni(e) {
4290
- return Ce() && typeof e == "string" ? e = document.getElementById(e) : e && e.length && (e = e[0]), e && e.canvas && (e = e.canvas), e;
4272
+ return Ae() && typeof e == "string" ? e = document.getElementById(e) : e && e.length && (e = e[0]), e && e.canvas && (e = e.canvas), e;
4291
4273
  }
4292
- const qt = {}, ks = (e) => {
4274
+ const qt = {}, Ss = (e) => {
4293
4275
  const t = ni(e);
4294
4276
  return Object.values(qt).filter((s) => s.canvas === t).pop();
4295
4277
  };
4296
- function ir(e, t, s) {
4278
+ function sr(e, t, s) {
4297
4279
  const i = Object.keys(e);
4298
4280
  for (const n of i) {
4299
4281
  const o = +n;
@@ -4303,7 +4285,7 @@ function ir(e, t, s) {
4303
4285
  }
4304
4286
  }
4305
4287
  }
4306
- function nr(e, t, s, i) {
4288
+ function ir(e, t, s, i) {
4307
4289
  return !s || e.type === "mouseout" ? null : i ? t : e;
4308
4290
  }
4309
4291
  let oe = class {
@@ -4311,26 +4293,26 @@ let oe = class {
4311
4293
  static instances = qt;
4312
4294
  static overrides = ct;
4313
4295
  static registry = U;
4314
- static version = tr;
4315
- static getChart = ks;
4296
+ static version = Jo;
4297
+ static getChart = Ss;
4316
4298
  static register(...t) {
4317
- U.add(...t), Ss();
4299
+ U.add(...t), Os();
4318
4300
  }
4319
4301
  static unregister(...t) {
4320
- U.remove(...t), Ss();
4302
+ U.remove(...t), Os();
4321
4303
  }
4322
4304
  constructor(t, s) {
4323
- const i = this.config = new Go(s), n = ni(t), o = ks(n);
4305
+ const i = this.config = new Zo(s), n = ni(t), o = Ss(n);
4324
4306
  if (o)
4325
4307
  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.");
4326
4308
  const r = i.createResolver(i.chartOptionScopes(), this.getContext());
4327
- this.platform = new (i.platform || wo(n))(), this.platform.updateConfig(i);
4309
+ this.platform = new (i.platform || vo(n))(), this.platform.updateConfig(i);
4328
4310
  const a = this.platform.acquireContext(n, r.aspectRatio), c = a && a.canvas, l = c && c.height, h = c && c.width;
4329
- if (this.id = Ei(), this.ctx = a, this.canvas = c, this.width = h, this.height = l, this._options = r, 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 Ho(), this.$proxies = {}, this._hiddenIndices = {}, this.attached = !1, this._animationsDisabled = void 0, this.$context = void 0, this._doResize = Xi((d) => this.update(d), r.resizeDelay || 0), this._dataChanges = [], qt[this.id] = this, !a || !c) {
4311
+ if (this.id = Pi(), this.ctx = a, this.canvas = c, this.width = h, this.height = l, this._options = r, 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 Bo(), this.$proxies = {}, this._hiddenIndices = {}, this.attached = !1, this._animationsDisabled = void 0, this.$context = void 0, this._doResize = Yi((d) => this.update(d), r.resizeDelay || 0), this._dataChanges = [], qt[this.id] = this, !a || !c) {
4330
4312
  console.error("Failed to create chart: can't acquire context from the given item");
4331
4313
  return;
4332
4314
  }
4333
- Z.listen(this, "complete", Ms), Z.listen(this, "progress", sr), this._initialize(), this.attached && this.update();
4315
+ Z.listen(this, "complete", ks), Z.listen(this, "progress", er), this._initialize(), this.attached && this.update();
4334
4316
  }
4335
4317
  get aspectRatio() {
4336
4318
  const { options: { aspectRatio: t, maintainAspectRatio: s }, width: i, height: n, _aspectRatio: o } = this;
@@ -4352,10 +4334,10 @@ let oe = class {
4352
4334
  return U;
4353
4335
  }
4354
4336
  _initialize() {
4355
- return this.notifyPlugins("beforeInit"), this.options.responsive ? this.resize() : Je(this, this.options.devicePixelRatio), this.bindEvents(), this.notifyPlugins("afterInit"), this;
4337
+ return this.notifyPlugins("beforeInit"), this.options.responsive ? this.resize() : ts(this, this.options.devicePixelRatio), this.bindEvents(), this.notifyPlugins("afterInit"), this;
4356
4338
  }
4357
4339
  clear() {
4358
- return qe(this.canvas, this.ctx), this;
4340
+ return Ze(this.canvas, this.ctx), this;
4359
4341
  }
4360
4342
  stop() {
4361
4343
  return Z.stop(this), this;
@@ -4368,7 +4350,7 @@ let oe = class {
4368
4350
  }
4369
4351
  _resize(t, s) {
4370
4352
  const i = this.options, n = this.canvas, o = i.maintainAspectRatio && this.aspectRatio, r = this.platform.getMaximumSize(n, t, s, o), a = i.devicePixelRatio || this.platform.getDevicePixelRatio(), c = this.width ? "resize" : "attach";
4371
- this.width = r.width, this.height = r.height, this._aspectRatio = this.aspectRatio, Je(this, a, !0) && (this.notifyPlugins("resize", {
4353
+ this.width = r.width, this.height = r.height, this._aspectRatio = this.aspectRatio, ts(this, a, !0) && (this.notifyPlugins("resize", {
4372
4354
  size: r
4373
4355
  }), E(i.onResize, [
4374
4356
  this,
@@ -4393,7 +4375,7 @@ let oe = class {
4393
4375
  };
4394
4376
  }))), j(o, (r) => {
4395
4377
  const a = r.options, c = a.id, l = ye(c, a), h = A(a.type, r.dtype);
4396
- (a.position === void 0 || vs(a.position, l) !== vs(r.dposition)) && (a.position = r.dposition), n[c] = !0;
4378
+ (a.position === void 0 || ws(a.position, l) !== ws(r.dposition)) && (a.position = r.dposition), n[c] = !0;
4397
4379
  let d = null;
4398
4380
  if (c in i && i[c].type === h)
4399
4381
  d = i[c];
@@ -4420,7 +4402,7 @@ let oe = class {
4420
4402
  this._destroyDatasetMeta(n);
4421
4403
  t.splice(s, i - s);
4422
4404
  }
4423
- this._sortedMetasets = t.slice(0).sort(ws("order", "index"));
4405
+ this._sortedMetasets = t.slice(0).sort(Ms("order", "index"));
4424
4406
  }
4425
4407
  _removeUnreferencedMetasets() {
4426
4408
  const { _metasets: t, data: { datasets: s } } = this;
@@ -4475,7 +4457,7 @@ let oe = class {
4475
4457
  l.reset();
4476
4458
  }), this._updateDatasets(t), this.notifyPlugins("afterUpdate", {
4477
4459
  mode: t
4478
- }), this._layers.sort(ws("z", "_idx"));
4460
+ }), this._layers.sort(Ms("z", "_idx"));
4479
4461
  const { _active: a, _lastEvent: c } = this;
4480
4462
  c ? this._eventHandler(c, !0) : a.length && this._updateHoverStyles(a, a, !0), this.render();
4481
4463
  }
@@ -4486,13 +4468,13 @@ let oe = class {
4486
4468
  }
4487
4469
  _checkEventBindings() {
4488
4470
  const t = this.options, s = new Set(Object.keys(this._listeners)), i = new Set(t.events);
4489
- (!Be(s, i) || !!this._responsiveListeners !== t.responsive) && (this.unbindEvents(), this.bindEvents());
4471
+ (!He(s, i) || !!this._responsiveListeners !== t.responsive) && (this.unbindEvents(), this.bindEvents());
4490
4472
  }
4491
4473
  _updateHiddenIndices() {
4492
4474
  const { _hiddenIndices: t } = this, s = this._getUniformDataChanges() || [];
4493
4475
  for (const { method: i, start: n, count: o } of s) {
4494
4476
  const r = i === "_removeElements" ? -o : o;
4495
- ir(t, n, r);
4477
+ sr(t, n, r);
4496
4478
  }
4497
4479
  }
4498
4480
  _getUniformDataChanges() {
@@ -4502,7 +4484,7 @@ let oe = class {
4502
4484
  this._dataChanges = [];
4503
4485
  const s = this.data.datasets.length, i = (o) => new Set(t.filter((r) => r[0] === o).map((r, a) => a + "," + r.splice(1).join(","))), n = i(0);
4504
4486
  for (let o = 1; o < s; o++)
4505
- if (!Be(n, i(o)))
4487
+ if (!He(n, i(o)))
4506
4488
  return;
4507
4489
  return Array.from(n).map((o) => o.split(",")).map((o) => ({
4508
4490
  method: o[1],
@@ -4551,7 +4533,7 @@ let oe = class {
4551
4533
  render() {
4552
4534
  this.notifyPlugins("beforeRender", {
4553
4535
  cancelable: !0
4554
- }) !== !1 && (Z.has(this) ? this.attached && !Z.running(this) && Z.start(this) : (this.draw(), Ms({
4536
+ }) !== !1 && (Z.has(this) ? this.attached && !Z.running(this) && Z.start(this) : (this.draw(), ks({
4555
4537
  chart: this
4556
4538
  })));
4557
4539
  }
@@ -4599,14 +4581,14 @@ let oe = class {
4599
4581
  meta: t,
4600
4582
  index: t.index,
4601
4583
  cancelable: !0
4602
- }, n = Rn(this, t);
4584
+ }, n = En(this, t);
4603
4585
  this.notifyPlugins("beforeDatasetDraw", i) !== !1 && (n && Ws(s, n), t.controller.draw(), n && Vs(s), i.cancelable = !1, this.notifyPlugins("afterDatasetDraw", i));
4604
4586
  }
4605
4587
  isPointInArea(t) {
4606
4588
  return Hs(t, this.chartArea, this._minPadding);
4607
4589
  }
4608
4590
  getElementsAtEventForMode(t, s, i, n) {
4609
- const o = to.modes[s];
4591
+ const o = Jn.modes[s];
4610
4592
  return typeof o == "function" ? o(this, t, i, n) : [];
4611
4593
  }
4612
4594
  getDatasetMeta(t) {
@@ -4677,7 +4659,7 @@ let oe = class {
4677
4659
  destroy() {
4678
4660
  this.notifyPlugins("beforeDestroy");
4679
4661
  const { canvas: t, ctx: s } = this;
4680
- this._stop(), this.config.clearCache(), t && (this.unbindEvents(), qe(t, s), this.platform.releaseContext(s), this.canvas = null, this.ctx = null), delete qt[this.id], this.notifyPlugins("afterDestroy");
4662
+ this._stop(), this.config.clearCache(), t && (this.unbindEvents(), Ze(t, s), this.platform.releaseContext(s), this.canvas = null, this.ctx = null), delete qt[this.id], this.notifyPlugins("afterDestroy");
4681
4663
  }
4682
4664
  toBase64Image(...t) {
4683
4665
  return this.canvas.toDataURL(...t);
@@ -4740,7 +4722,7 @@ let oe = class {
4740
4722
  index: r
4741
4723
  };
4742
4724
  });
4743
- !Fe(i, s) && (this._active = i, this._lastEvent = null, this._updateHoverStyles(i, s));
4725
+ !je(i, s) && (this._active = i, this._lastEvent = null, this._updateHoverStyles(i, s));
4744
4726
  }
4745
4727
  notifyPlugins(t, s, i) {
4746
4728
  return this._plugins.notify(this, t, s, i);
@@ -4765,7 +4747,7 @@ let oe = class {
4765
4747
  return i.cancelable = !1, this.notifyPlugins("afterEvent", i, n), (o || i.changed) && this.render(), this;
4766
4748
  }
4767
4749
  _handleEvent(t, s, i) {
4768
- const { _active: n = [], options: o } = this, r = s, a = this._getActiveElements(t, n, i, r), c = Fi(t), l = nr(t, this._lastEvent, i, c);
4750
+ const { _active: n = [], options: o } = this, r = s, a = this._getActiveElements(t, n, i, r), c = zi(t), l = ir(t, this._lastEvent, i, c);
4769
4751
  i && (this._lastEvent = null, E(o.onHover, [
4770
4752
  t,
4771
4753
  a,
@@ -4775,7 +4757,7 @@ let oe = class {
4775
4757
  a,
4776
4758
  this
4777
4759
  ], this));
4778
- const h = !Fe(a, n);
4760
+ const h = !je(a, n);
4779
4761
  return (h || s) && (this._active = a, this._updateHoverStyles(a, n, s)), this._lastEvent = l, h;
4780
4762
  }
4781
4763
  _getActiveElements(t, s, i, n) {
@@ -4787,10 +4769,10 @@ let oe = class {
4787
4769
  return this.getElementsAtEventForMode(t, o.mode, o, n);
4788
4770
  }
4789
4771
  };
4790
- function Ss() {
4772
+ function Os() {
4791
4773
  return j(oe.instances, (e) => e._plugins.invalidate());
4792
4774
  }
4793
- function or(e, t, s) {
4775
+ function nr(e, t, s) {
4794
4776
  const { startAngle: i, x: n, y: o, outerRadius: r, innerRadius: a, options: c } = t, { borderWidth: l, borderJoinStyle: h } = c, d = Math.min(l / r, q(i - s));
4795
4777
  if (e.beginPath(), e.arc(n, o, r - l / 2, i + d / 2, s - d / 2), a > 0) {
4796
4778
  const f = Math.min(l / a, q(i - s));
@@ -4806,12 +4788,12 @@ function or(e, t, s) {
4806
4788
  }
4807
4789
  e.closePath(), e.moveTo(0, 0), e.rect(0, 0, e.canvas.width, e.canvas.height), e.clip("evenodd");
4808
4790
  }
4809
- function rr(e, t, s) {
4791
+ function or(e, t, s) {
4810
4792
  const { startAngle: i, pixelMargin: n, x: o, y: r, outerRadius: a, innerRadius: c } = t;
4811
4793
  let l = n / a;
4812
4794
  e.beginPath(), e.arc(o, r, a, i - l, s + l), c > n ? (l = n / c, e.arc(o, r, c, s + l, i - l, !0)) : e.arc(o, r, n, s + $, i - $), e.closePath(), e.clip();
4813
4795
  }
4814
- function ar(e) {
4796
+ function rr(e) {
4815
4797
  return Ns(e, [
4816
4798
  "outerStart",
4817
4799
  "outerEnd",
@@ -4819,8 +4801,8 @@ function ar(e) {
4819
4801
  "innerEnd"
4820
4802
  ]);
4821
4803
  }
4822
- function cr(e, t, s, i) {
4823
- const n = ar(e.options.borderRadius), o = (s - t) / 2, r = Math.min(o, i * t / 2), a = (c) => {
4804
+ function ar(e, t, s, i) {
4805
+ const n = rr(e.options.borderRadius), o = (s - t) / 2, r = Math.min(o, i * t / 2), a = (c) => {
4824
4806
  const l = (s - Math.min(o, c)) * i / 2;
4825
4807
  return J(c, 0, Math.min(o, l));
4826
4808
  };
@@ -4845,7 +4827,7 @@ function se(e, t, s, i, n, o) {
4845
4827
  const M = h > 0 ? h - i : 0, S = d > 0 ? d - i : 0, C = (M + S) / 2, X = C !== 0 ? g * C / (C + i) : g;
4846
4828
  u = (g - X) / 2;
4847
4829
  }
4848
- const m = Math.max(1e-3, g * d - s / z) / d, b = (g - m) / 2, p = c + b + u, _ = n - b - u, { outerStart: x, outerEnd: v, innerStart: y, innerEnd: O } = cr(t, f, d, _ - p), D = d - x, L = d - v, I = p + x / D, k = _ - v / L, H = f + y, P = f + O, V = p + y / H, Y = _ - O / P;
4830
+ const m = Math.max(1e-3, g * d - s / z) / d, b = (g - m) / 2, p = c + b + u, _ = n - b - u, { outerStart: x, outerEnd: v, innerStart: y, innerEnd: O } = ar(t, f, d, _ - p), D = d - x, L = d - v, I = p + x / D, k = _ - v / L, H = f + y, P = f + O, V = p + y / H, Y = _ - O / P;
4849
4831
  if (e.beginPath(), o) {
4850
4832
  const M = (I + k) / 2;
4851
4833
  if (e.arc(r, a, d, I, M), e.arc(r, a, d, M, k), v > 0) {
@@ -4876,7 +4858,7 @@ function se(e, t, s, i, n, o) {
4876
4858
  }
4877
4859
  e.closePath();
4878
4860
  }
4879
- function lr(e, t, s, i, n) {
4861
+ function cr(e, t, s, i, n) {
4880
4862
  const { fullCircles: o, startAngle: r, circumference: a } = t;
4881
4863
  let c = t.endAngle;
4882
4864
  if (o) {
@@ -4887,7 +4869,7 @@ function lr(e, t, s, i, n) {
4887
4869
  }
4888
4870
  return se(e, t, s, i, c, n), e.fill(), c;
4889
4871
  }
4890
- function hr(e, t, s, i, n) {
4872
+ function lr(e, t, s, i, n) {
4891
4873
  const { fullCircles: o, startAngle: r, circumference: a, options: c } = t, { borderWidth: l, borderJoinStyle: h, borderDash: d, borderDashOffset: f, borderRadius: u } = c, g = c.borderAlign === "inner";
4892
4874
  if (!l)
4893
4875
  return;
@@ -4899,9 +4881,9 @@ function hr(e, t, s, i, n) {
4899
4881
  e.stroke();
4900
4882
  isNaN(a) || (m = r + (a % T || T));
4901
4883
  }
4902
- g && rr(e, t, m), c.selfJoin && m - r >= z && u === 0 && h !== "miter" && or(e, t, m), o || (se(e, t, s, i, m, n), e.stroke());
4884
+ g && or(e, t, m), c.selfJoin && m - r >= z && u === 0 && h !== "miter" && nr(e, t, m), o || (se(e, t, s, i, m, n), e.stroke());
4903
4885
  }
4904
- class dr extends Pe {
4886
+ class hr extends Ee {
4905
4887
  static id = "arc";
4906
4888
  static defaults = {
4907
4889
  borderAlign: "center",
@@ -4947,7 +4929,7 @@ class dr extends Pe {
4947
4929
  "innerRadius",
4948
4930
  "outerRadius",
4949
4931
  "circumference"
4950
- ], i), f = (this.options.spacing + this.options.borderWidth) / 2, u = A(d, c - a), g = Jt(o, a, c) && a !== c, m = u >= T || g, b = Vi(r, l + f, h + f);
4932
+ ], i), f = (this.options.spacing + this.options.borderWidth) / 2, u = A(d, c - a), g = Jt(o, a, c) && a !== c, m = u >= T || g, b = Wi(r, l + f, h + f);
4951
4933
  return m && b;
4952
4934
  }
4953
4935
  getCenterPoint(t) {
@@ -4975,22 +4957,21 @@ class dr extends Pe {
4975
4957
  const a = (this.startAngle + this.endAngle) / 2;
4976
4958
  t.translate(Math.cos(a) * n, Math.sin(a) * n);
4977
4959
  const c = 1 - Math.sin(Math.min(z, i || 0)), l = n * c;
4978
- t.fillStyle = s.backgroundColor, t.strokeStyle = s.borderColor, lr(t, this, l, o, r), hr(t, this, l, o, r), t.restore();
4960
+ t.fillStyle = s.backgroundColor, t.strokeStyle = s.borderColor, cr(t, this, l, o, r), lr(t, this, l, o, r), t.restore();
4979
4961
  }
4980
4962
  }
4981
4963
  const oi = "label";
4982
- function Os(e, t) {
4964
+ function Ds(e, t) {
4983
4965
  typeof e == "function" ? e(t) : e && (e.current = t);
4984
4966
  }
4985
- function fr(e, t) {
4967
+ function dr(e, t) {
4986
4968
  const s = e.options;
4987
4969
  s && t && Object.assign(s, t);
4988
4970
  }
4989
4971
  function ri(e, t) {
4990
4972
  e.labels = t;
4991
4973
  }
4992
- function ai(e, t) {
4993
- let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : oi;
4974
+ function ai(e, t, s = oi) {
4994
4975
  const i = [];
4995
4976
  e.datasets = t.map((n) => {
4996
4977
  const o = e.datasets.find((r) => r[s] === n[s]);
@@ -4999,29 +4980,28 @@ function ai(e, t) {
4999
4980
  } : (i.push(o), Object.assign(o, n), o);
5000
4981
  });
5001
4982
  }
5002
- function ur(e) {
5003
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : oi;
4983
+ function fr(e, t = oi) {
5004
4984
  const s = {
5005
4985
  labels: [],
5006
4986
  datasets: []
5007
4987
  };
5008
4988
  return ri(s, e.labels), ai(s, e.datasets, t), s;
5009
4989
  }
5010
- function gr(e, t) {
5011
- const { height: s = 150, width: i = 300, redraw: n = !1, datasetIdKey: o, type: r, data: a, options: c, plugins: l = [], fallbackContent: h, updateMode: d, ...f } = e, u = Re(null), g = Re(null), m = () => {
4990
+ function ur(e, t) {
4991
+ const { height: s = 150, width: i = 300, redraw: n = !1, datasetIdKey: o, type: r, data: a, options: c, plugins: l = [], fallbackContent: h, updateMode: d, ...f } = e, u = Ie(null), g = Ie(null), m = () => {
5012
4992
  u.current && (g.current = new oe(u.current, {
5013
4993
  type: r,
5014
- data: ur(a, o),
4994
+ data: fr(a, o),
5015
4995
  options: c && {
5016
4996
  ...c
5017
4997
  },
5018
4998
  plugins: l
5019
- }), Os(t, g.current));
4999
+ }), Ds(t, g.current));
5020
5000
  }, b = () => {
5021
- Os(t, null), g.current && (g.current.destroy(), g.current = null);
5001
+ Ds(t, null), g.current && (g.current.destroy(), g.current = null);
5022
5002
  };
5023
5003
  return dt(() => {
5024
- !n && g.current && c && fr(g.current, c);
5004
+ !n && g.current && c && dr(g.current, c);
5025
5005
  }, [
5026
5006
  n,
5027
5007
  c
@@ -5047,25 +5027,26 @@ function gr(e, t) {
5047
5027
  g.current && (b(), setTimeout(m));
5048
5028
  }, [
5049
5029
  r
5050
- ]), dt(() => (m(), () => b()), []), /* @__PURE__ */ Ds.createElement("canvas", {
5030
+ ]), dt(() => (m(), () => b()), []), /* @__PURE__ */ ve("canvas", {
5051
5031
  ref: u,
5052
5032
  role: "img",
5053
5033
  height: s,
5054
5034
  width: i,
5055
- ...f
5056
- }, h);
5035
+ ...f,
5036
+ children: h
5037
+ });
5057
5038
  }
5058
- const pr = /* @__PURE__ */ Cs(gr);
5059
- function mr(e, t) {
5060
- return oe.register(t), /* @__PURE__ */ Cs((s, i) => /* @__PURE__ */ Ds.createElement(pr, {
5039
+ const gr = /* @__PURE__ */ Cs(ur);
5040
+ function pr(e, t) {
5041
+ return oe.register(t), /* @__PURE__ */ Cs((s, i) => /* @__PURE__ */ ve(gr, {
5061
5042
  ...s,
5062
5043
  ref: i,
5063
5044
  type: e
5064
5045
  }));
5065
5046
  }
5066
- const _r = /* @__PURE__ */ mr("doughnut", qn);
5067
- oe.register(dr);
5068
- const vr = ({
5047
+ const mr = /* @__PURE__ */ pr("doughnut", Un);
5048
+ oe.register(hr);
5049
+ const yr = ({
5069
5050
  values: e,
5070
5051
  colors: t = ["#525252", "#00D492"],
5071
5052
  borderColors: s = ["#FFFFFF", "#FFFFFF"],
@@ -5133,8 +5114,8 @@ const vr = ({
5133
5114
  a,
5134
5115
  d
5135
5116
  ]);
5136
- return /* @__PURE__ */ ci(_r, { data: g, options: m, plugins: b, redraw: u });
5117
+ return /* @__PURE__ */ ve(mr, { data: g, options: m, plugins: b, redraw: u });
5137
5118
  };
5138
5119
  export {
5139
- vr as PieChart
5120
+ yr as PieChart
5140
5121
  };