commerce-toolkit 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/dist/category-card-link-BqMAG9Op.js +211 -0
  2. package/dist/category-card-link-BqMAG9Op.js.map +1 -0
  3. package/dist/category-card-link-BwSFHFcd.cjs +2 -0
  4. package/dist/category-card-link-BwSFHFcd.cjs.map +1 -0
  5. package/dist/category-card.cjs +1 -1
  6. package/dist/category-card.cjs.map +1 -1
  7. package/dist/category-card.js +23 -218
  8. package/dist/category-card.js.map +1 -1
  9. package/dist/checkbox-indicator-GNoyS6OL.cjs +2 -0
  10. package/dist/checkbox-indicator-GNoyS6OL.cjs.map +1 -0
  11. package/dist/checkbox-indicator-os50dewx.js +18 -0
  12. package/dist/checkbox-indicator-os50dewx.js.map +1 -0
  13. package/dist/{checkbox-indicator-Cfw9uH_b.js → checkbox-root-B9W2Y8rY.js} +74 -85
  14. package/dist/checkbox-root-B9W2Y8rY.js.map +1 -0
  15. package/dist/checkbox-root-g9HcYZCP.cjs +2 -0
  16. package/dist/checkbox-root-g9HcYZCP.cjs.map +1 -0
  17. package/dist/checkbox.cjs +1 -1
  18. package/dist/checkbox.js +5 -4
  19. package/dist/checkbox.js.map +1 -1
  20. package/dist/compare-card-specs-empty-BMLUSqQL.js +281 -0
  21. package/dist/compare-card-specs-empty-BMLUSqQL.js.map +1 -0
  22. package/dist/compare-card-specs-empty-ar5CneZv.cjs +2 -0
  23. package/dist/compare-card-specs-empty-ar5CneZv.cjs.map +1 -0
  24. package/dist/compare-card.cjs +2 -0
  25. package/dist/compare-card.cjs.map +1 -0
  26. package/dist/compare-card.js +65 -0
  27. package/dist/compare-card.js.map +1 -0
  28. package/dist/components/accordion/index.d.ts.map +1 -1
  29. package/dist/components/alert/index.d.ts.map +1 -1
  30. package/dist/components/banner/index.d.ts.map +1 -1
  31. package/dist/components/blog-post-card/index.d.ts.map +1 -1
  32. package/dist/components/card/index.d.ts.map +1 -1
  33. package/dist/components/carousel/index.d.ts.map +1 -1
  34. package/dist/components/checkbox/index.d.ts.map +1 -1
  35. package/dist/components/chip/index.d.ts.map +1 -1
  36. package/dist/components/compare-card/compare-card.d.ts +45 -0
  37. package/dist/components/compare-card/compare-card.d.ts.map +1 -0
  38. package/dist/components/compare-card/index.d.ts +3 -0
  39. package/dist/components/compare-card/index.d.ts.map +1 -0
  40. package/dist/components/compare-card/primitives/compare-card-description-content.d.ts +4 -0
  41. package/dist/components/compare-card/primitives/compare-card-description-content.d.ts.map +1 -0
  42. package/dist/components/compare-card/primitives/compare-card-description-empty.d.ts +4 -0
  43. package/dist/components/compare-card/primitives/compare-card-description-empty.d.ts.map +1 -0
  44. package/dist/components/compare-card/primitives/compare-card-description-label.d.ts +4 -0
  45. package/dist/components/compare-card/primitives/compare-card-description-label.d.ts.map +1 -0
  46. package/dist/components/compare-card/primitives/compare-card-description.d.ts +4 -0
  47. package/dist/components/compare-card/primitives/compare-card-description.d.ts.map +1 -0
  48. package/dist/components/compare-card/primitives/compare-card-form-input.d.ts +4 -0
  49. package/dist/components/compare-card/primitives/compare-card-form-input.d.ts.map +1 -0
  50. package/dist/components/compare-card/primitives/compare-card-form.d.ts +4 -0
  51. package/dist/components/compare-card/primitives/compare-card-form.d.ts.map +1 -0
  52. package/dist/components/compare-card/primitives/compare-card-link.d.ts +5 -0
  53. package/dist/components/compare-card/primitives/compare-card-link.d.ts.map +1 -0
  54. package/dist/components/compare-card/primitives/compare-card-product.d.ts +4 -0
  55. package/dist/components/compare-card/primitives/compare-card-product.d.ts.map +1 -0
  56. package/dist/components/compare-card/primitives/compare-card-rating-empty.d.ts +4 -0
  57. package/dist/components/compare-card/primitives/compare-card-rating-empty.d.ts.map +1 -0
  58. package/dist/components/compare-card/primitives/compare-card-rating-label.d.ts +4 -0
  59. package/dist/components/compare-card/primitives/compare-card-rating-label.d.ts.map +1 -0
  60. package/dist/components/compare-card/primitives/compare-card-rating.d.ts +4 -0
  61. package/dist/components/compare-card/primitives/compare-card-rating.d.ts.map +1 -0
  62. package/dist/components/compare-card/primitives/compare-card-root.d.ts +4 -0
  63. package/dist/components/compare-card/primitives/compare-card-root.d.ts.map +1 -0
  64. package/dist/components/compare-card/primitives/compare-card-skeleton.d.ts +4 -0
  65. package/dist/components/compare-card/primitives/compare-card-skeleton.d.ts.map +1 -0
  66. package/dist/components/compare-card/primitives/compare-card-specs-definition.d.ts +4 -0
  67. package/dist/components/compare-card/primitives/compare-card-specs-definition.d.ts.map +1 -0
  68. package/dist/components/compare-card/primitives/compare-card-specs-empty.d.ts +4 -0
  69. package/dist/components/compare-card/primitives/compare-card-specs-empty.d.ts.map +1 -0
  70. package/dist/components/compare-card/primitives/compare-card-specs-label.d.ts +4 -0
  71. package/dist/components/compare-card/primitives/compare-card-specs-label.d.ts.map +1 -0
  72. package/dist/components/compare-card/primitives/compare-card-specs-list.d.ts +4 -0
  73. package/dist/components/compare-card/primitives/compare-card-specs-list.d.ts.map +1 -0
  74. package/dist/components/compare-card/primitives/compare-card-specs-term.d.ts +4 -0
  75. package/dist/components/compare-card/primitives/compare-card-specs-term.d.ts.map +1 -0
  76. package/dist/components/compare-card/primitives/compare-card-specs.d.ts +4 -0
  77. package/dist/components/compare-card/primitives/compare-card-specs.d.ts.map +1 -0
  78. package/dist/components/compare-card/primitives.d.ts +20 -0
  79. package/dist/components/compare-card/primitives.d.ts.map +1 -0
  80. package/dist/components/compare-drawer/index.d.ts.map +1 -1
  81. package/dist/components/cursor-pagination/index.d.ts +1 -1
  82. package/dist/components/cursor-pagination/index.d.ts.map +1 -1
  83. package/dist/components/dropdown-menu/index.d.ts.map +1 -1
  84. package/dist/components/favorite/index.d.ts.map +1 -1
  85. package/dist/components/icon/index.d.ts.map +1 -1
  86. package/dist/components/label/index.d.ts.map +1 -1
  87. package/dist/components/logo/index.d.ts.map +1 -1
  88. package/dist/components/modal/index.d.ts.map +1 -1
  89. package/dist/components/offset-pagination/index.d.ts +1 -1
  90. package/dist/components/offset-pagination/index.d.ts.map +1 -1
  91. package/dist/components/price/index.d.ts.map +1 -1
  92. package/dist/components/product-card/index.d.ts.map +1 -1
  93. package/dist/components/rating/index.d.ts.map +1 -1
  94. package/dist/components/reveal/index.d.ts.map +1 -1
  95. package/dist/components/scroll-area/index.d.ts.map +1 -1
  96. package/dist/components/skeleton/index.d.ts.map +1 -1
  97. package/dist/components/tabs/index.d.ts.map +1 -1
  98. package/dist/index.cjs +10 -5
  99. package/dist/index.cjs.map +1 -1
  100. package/dist/index.d.ts +26 -19
  101. package/dist/index.d.ts.map +1 -1
  102. package/dist/index.js +1274 -1132
  103. package/dist/index.js.map +1 -1
  104. package/dist/lib/index.d.ts.map +1 -1
  105. package/dist/offset-pagination-ellipsis-DWDhFCgW.js +79 -0
  106. package/dist/offset-pagination-ellipsis-DWDhFCgW.js.map +1 -0
  107. package/dist/offset-pagination-ellipsis-MCFHXB-5.cjs +2 -0
  108. package/dist/offset-pagination-ellipsis-MCFHXB-5.cjs.map +1 -0
  109. package/dist/offset-pagination.cjs +1 -1
  110. package/dist/offset-pagination.cjs.map +1 -1
  111. package/dist/offset-pagination.js +6 -76
  112. package/dist/offset-pagination.js.map +1 -1
  113. package/dist/product-card-label-CJmC9ICf.js +312 -0
  114. package/dist/product-card-label-CJmC9ICf.js.map +1 -0
  115. package/dist/product-card-label-D43AXtRL.cjs +2 -0
  116. package/dist/product-card-label-D43AXtRL.cjs.map +1 -0
  117. package/dist/product-card-root-4Xz4-pdL.js +43 -0
  118. package/dist/product-card-root-4Xz4-pdL.js.map +1 -0
  119. package/dist/product-card-root-BMTVhhFp.cjs +2 -0
  120. package/dist/product-card-root-BMTVhhFp.cjs.map +1 -0
  121. package/dist/product-card-skeleton-CCQkDMNl.cjs +2 -0
  122. package/dist/product-card-skeleton-CCQkDMNl.cjs.map +1 -0
  123. package/dist/product-card-skeleton-Dkqf-bfA.js +34 -0
  124. package/dist/product-card-skeleton-Dkqf-bfA.js.map +1 -0
  125. package/dist/product-card.cjs +1 -1
  126. package/dist/product-card.cjs.map +1 -1
  127. package/dist/product-card.js +25 -326
  128. package/dist/product-card.js.map +1 -1
  129. package/dist/side-panel-close-Bjcn4BEE.cjs +2 -0
  130. package/dist/side-panel-close-Bjcn4BEE.cjs.map +1 -0
  131. package/dist/side-panel-close-DVJwOxdM.js +86 -0
  132. package/dist/side-panel-close-DVJwOxdM.js.map +1 -0
  133. package/dist/side-panel.cjs +1 -1
  134. package/dist/side-panel.cjs.map +1 -1
  135. package/dist/side-panel.js +9 -82
  136. package/dist/side-panel.js.map +1 -1
  137. package/package.json +11 -1
  138. package/dist/arrow-up-right-Cfau6CiE.cjs +0 -7
  139. package/dist/arrow-up-right-Cfau6CiE.cjs.map +0 -1
  140. package/dist/arrow-up-right-D7smpXBs.js +0 -16
  141. package/dist/arrow-up-right-D7smpXBs.js.map +0 -1
  142. package/dist/checkbox-indicator-BgXRGvAh.cjs +0 -2
  143. package/dist/checkbox-indicator-BgXRGvAh.cjs.map +0 -1
  144. package/dist/checkbox-indicator-Cfw9uH_b.js.map +0 -1
  145. package/dist/price-BwaeTmkR.js +0 -53
  146. package/dist/price-BwaeTmkR.js.map +0 -1
  147. package/dist/price-CdK2ye4P.cjs +0 -2
  148. package/dist/price-CdK2ye4P.cjs.map +0 -1
  149. package/dist/primitives--2McVg9Z.js +0 -15
  150. package/dist/primitives--2McVg9Z.js.map +0 -1
  151. package/dist/primitives-DmqzDKi2.cjs +0 -2
  152. package/dist/primitives-DmqzDKi2.cjs.map +0 -1
package/dist/index.js CHANGED
@@ -1,50 +1,85 @@
1
- import { jsx as d, jsxs as z } from "react/jsx-runtime";
2
- import { a as Ar, A as Rr, d as jr, g as Hr, e as Lr, f as $r, b as Vr, c as Gr } from "./accordion-trigger-DedSFrtg.js";
3
- import { A as Zr, a as Xr, b as Ur, c as Qr, d as Kr, e as Jr, f as to } from "./alert-dismiss-DA9LNmIE.js";
4
- import { R as eo, a as ro, b as oo, c as io } from "./reveal-trigger-C-dcymoc.js";
5
- import { A as oc } from "./reveal-trigger-C-dcymoc.js";
6
- import { B as nc, P as ac } from "./price-BwaeTmkR.js";
7
- import { B as no, a as ao, b as so, c as lo, d as co } from "./banner-dismiss-DTT0uoeG.js";
8
- import { B as mo, b as po, c as uo, a as fo, e as ho, f as go, g as bo, h as yo, i as wo, d as vo } from "./blog-post-card-author-CD_eplIv.js";
9
- import { B as ko } from "./button-BFVyxGhc.js";
10
- import { S as xo, a as Mo } from "./index-DD8W7cMj.js";
11
- import { c as st } from "./utils-BOGlfttm.js";
12
- import c, { createContext as Do, useContext as Oo, useCallback as ut, useRef as fe, useLayoutEffect as Co, useState as he, useEffect as ar, useMemo as Ce, forwardRef as So, createElement as Fe, isValidElement as No, cloneElement as Wo } from "react";
13
- import { c as Pe, I as To } from "./createLucideIcon-DU8bVqFn.js";
14
- import { C as Eo, a as qo } from "./card-link-COguZcAK.js";
15
- import { C as _o, a as Po, b as Yo, c as Bo, e as Io, d as Fo, f as zo, g as Ao, h as Ro } from "./carousel-next-H6-vbcKz.js";
16
- import { A as Ee, a as Jt, C as jo, b as Ho, c as ze, d as pe } from "./cursor-pagination-link-CkZ5dwLY.js";
17
- import { C as Lo, a as $o } from "./chip-button-BVG27Nve.js";
18
- import { C as Vo, a as Go, b as Zo, c as Xo, d as Uo, e as Qo, f as Ko, g as Jo, h as ti, i as ei, j as ri } from "./compare-drawer-remove-B6UNek1W.js";
19
- import oi from "./x-CyE7A75y.js";
20
- import { D as ii, a as ni, h as ai, b as si, i as li, e as ci, m as mi } from "./dropdown-menu-node-4Pe3uXjC.js";
21
- import { S as lc } from "./dropdown-menu-node-4Pe3uXjC.js";
22
- import { F as pi, a as di } from "./favorite-heart-DfzWBG3K.js";
23
- import { L as Ae, a as Re, b as ui } from "./logo-text-CK4vcNPY.js";
24
- import { M as fi, a as hi, b as gi, c as bi, d as yi, e as wi } from "./modal-title-MIH3Xsp2.js";
25
- import { R as vi, b as ki, c as xi } from "./rating-value-DBtmrorI.js";
26
- import { p as mc } from "./primitives--2McVg9Z.js";
27
- import { c as Mi, T as Di, a as Oi, b as Ci } from "./tabs-root-BmY1p2kY.js";
28
- import Si from "react-dom";
29
- function Pl({ className: t, colorScheme: e = "light", items: r, ...o }) {
30
- return /* @__PURE__ */ d(Ar, { className: t, colorScheme: e, ...o, children: r.map(({ content: i, title: n, value: l }) => /* @__PURE__ */ z(Rr, { value: l, children: [
31
- /* @__PURE__ */ d(jr, { children: /* @__PURE__ */ z(Hr, { children: [
32
- /* @__PURE__ */ d(Lr, { children: n }),
33
- /* @__PURE__ */ d($r, {})
1
+ import { jsx as m, jsxs as D } from "react/jsx-runtime";
2
+ import { a as Zr, A as Ur, d as Xr, g as Qr, e as Kr, f as Jr, b as to, c as eo } from "./accordion-trigger-DedSFrtg.js";
3
+ import c, { createContext as ro, useContext as oo, useCallback as ut, useRef as fe, useLayoutEffect as io, useState as he, useEffect as dr, useMemo as Se, Fragment as no, forwardRef as ao, createElement as Re, isValidElement as so, cloneElement as lo } from "react";
4
+ import { A as co, a as mo, b as po, c as uo, d as fo, e as ho, f as go } from "./alert-dismiss-DA9LNmIE.js";
5
+ import { B as Be } from "./button-BFVyxGhc.js";
6
+ import { R as bo, a as yo, b as wo, c as vo } from "./reveal-trigger-C-dcymoc.js";
7
+ import { A as Sm } from "./reveal-trigger-C-dcymoc.js";
8
+ import { P as ko, a as xo, b as Mo, d as Do, c as Co, e as Ae, f as Oo, g as So, h as No, i as To, j as Wo, k as Eo, l as _o, m as qo } from "./product-card-label-CJmC9ICf.js";
9
+ import { B as Tm, C as Wm, L as Em, n as _m } from "./product-card-label-CJmC9ICf.js";
10
+ import { B as Po, a as Yo, b as Bo, c as Io, d as Fo } from "./banner-dismiss-DTT0uoeG.js";
11
+ import { B as zo, b as Ro, c as Ao, a as jo, e as Ho, f as Lo, g as $o, h as Vo, i as Go, d as Zo } from "./blog-post-card-author-CD_eplIv.js";
12
+ import { S as Uo } from "./skeleton-root-DHW28LoV.js";
13
+ import { S as Xo } from "./skeleton-box-BSzQ5f9Y.js";
14
+ import { S as Qo } from "./skeleton-text-Dd4GbnEz.js";
15
+ import { S as Ko } from "./skeleton-icon-ThRjXhfU.js";
16
+ import { C as Jo, c as ti, a as ei, b as ri, B as _e, d as oi, e as ii, f as ni, g as ai, h as si, i as li, j as ci, k as mi, l as di, m as pi, n as ui, o as fi, p as hi } from "./compare-card-specs-empty-BMLUSqQL.js";
17
+ import { c as lt } from "./utils-BOGlfttm.js";
18
+ import { c as ge, I as gi } from "./createLucideIcon-DU8bVqFn.js";
19
+ import { C as bi, a as yi } from "./card-link-COguZcAK.js";
20
+ import { C as wi, a as vi, b as ki, c as xi, e as Mi, d as Di, f as Ci, g as Oi, h as Si } from "./carousel-next-H6-vbcKz.js";
21
+ import { A as qe, a as Jt, C as Ni, b as Ti, c as je, d as de } from "./cursor-pagination-link-CkZ5dwLY.js";
22
+ import { C as Wi, a as Ei, b as _i, c as qi, d as Pi, e as Yi, f as He, g as Bi } from "./category-card-link-BqMAG9Op.js";
23
+ import "./checkbox-root-B9W2Y8rY.js";
24
+ import { C as Ii, a as Fi } from "./chip-button-BVG27Nve.js";
25
+ import { P as zi } from "./product-card-root-4Xz4-pdL.js";
26
+ import { R as Ri, b as Ai, c as ji } from "./rating-value-DBtmrorI.js";
27
+ import { D as Hi, a as Li, h as $i, b as Vi, i as Gi, e as Zi, m as Ui, S as Xi } from "./dropdown-menu-node-4Pe3uXjC.js";
28
+ import "./scroll-area-corner-Bq7PB1XK.js";
29
+ import { c as Qi, T as Ki, a as Ji, b as tn } from "./tabs-root-BmY1p2kY.js";
30
+ import en from "react-dom";
31
+ import { C as rn, a as on, b as nn, c as an, d as sn, e as ln, f as cn, g as mn, h as dn, i as pn, j as un } from "./compare-drawer-remove-B6UNek1W.js";
32
+ import pr from "./x-CyE7A75y.js";
33
+ import { F as fn, a as hn } from "./favorite-heart-DfzWBG3K.js";
34
+ import { L as Le, a as $e, b as gn } from "./logo-text-CK4vcNPY.js";
35
+ import { M as bn, a as yn, b as wn, c as vn, d as kn, e as xn } from "./modal-title-MIH3Xsp2.js";
36
+ import { O as Mn, a as Dn, b as Ve, d as Cn, c as On } from "./offset-pagination-ellipsis-DWDhFCgW.js";
37
+ import { S as Sn, a as Nn, b as Tn, c as Wn, d as En, f as _n, g as qn, h as Pn, e as Yn } from "./side-panel-close-DVJwOxdM.js";
38
+ function em({ className: t, colorScheme: e = "light", items: r, ...o }) {
39
+ return /* @__PURE__ */ m(Zr, { className: t, colorScheme: e, ...o, children: r.map(({ content: i, title: n, value: l }) => /* @__PURE__ */ D(Ur, { value: l, children: [
40
+ /* @__PURE__ */ m(Xr, { children: /* @__PURE__ */ D(Qr, { children: [
41
+ /* @__PURE__ */ m(Kr, { children: n }),
42
+ /* @__PURE__ */ m(Jr, {})
34
43
  ] }) }),
35
- /* @__PURE__ */ d(Vr, { children: /* @__PURE__ */ d(Gr, { children: i }) })
44
+ /* @__PURE__ */ m(to, { children: /* @__PURE__ */ m(eo, { children: i }) })
36
45
  ] }, l)) });
37
46
  }
47
+ function pe({ className: t, variant: e, message: r, description: o, action: i, dismiss: n }) {
48
+ return /* @__PURE__ */ D(co, { action: i, className: t, dismiss: n, variant: e, children: [
49
+ /* @__PURE__ */ D(mo, { children: [
50
+ /* @__PURE__ */ m(po, { children: r }),
51
+ /* @__PURE__ */ m(uo, { children: o })
52
+ ] }),
53
+ /* @__PURE__ */ D(fo, { children: [
54
+ /* @__PURE__ */ m(ho, {}),
55
+ /* @__PURE__ */ m(go, {})
56
+ ] })
57
+ ] });
58
+ }
59
+ /**
60
+ * @license lucide-react v0.545.0 - ISC
61
+ *
62
+ * This source code is licensed under the ISC license.
63
+ * See the LICENSE file in the root directory of this source tree.
64
+ */
65
+ const ur = [
66
+ ["path", { d: "M7 7h10v10", key: "1tivn9" }],
67
+ ["path", { d: "M7 17 17 7", key: "1vkiza" }]
68
+ ], fr = ge("arrow-up-right", ur), Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
69
+ __proto__: null,
70
+ __iconNode: ur,
71
+ default: fr
72
+ }, Symbol.toStringTag, { value: "Module" }));
38
73
  /**
39
74
  * @license lucide-react v0.545.0 - ISC
40
75
  *
41
76
  * This source code is licensed under the ISC license.
42
77
  * See the LICENSE file in the root directory of this source tree.
43
78
  */
44
- const sr = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], lr = Pe("chevron-left", sr), Ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
79
+ const hr = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], gr = ge("chevron-left", hr), In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
45
80
  __proto__: null,
46
- __iconNode: sr,
47
- default: lr
81
+ __iconNode: hr,
82
+ default: gr
48
83
  }, Symbol.toStringTag, { value: "Module" }));
49
84
  /**
50
85
  * @license lucide-react v0.545.0 - ISC
@@ -52,14 +87,14 @@ const sr = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], lr = Pe("chevron-
52
87
  * This source code is licensed under the ISC license.
53
88
  * See the LICENSE file in the root directory of this source tree.
54
89
  */
55
- const cr = [
90
+ const br = [
56
91
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
57
92
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
58
93
  ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
59
- ], mr = Pe("circle-alert", cr), je = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
94
+ ], yr = ge("circle-alert", br), Ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
60
95
  __proto__: null,
61
- __iconNode: cr,
62
- default: mr
96
+ __iconNode: br,
97
+ default: yr
63
98
  }, Symbol.toStringTag, { value: "Module" }));
64
99
  /**
65
100
  * @license lucide-react v0.545.0 - ISC
@@ -67,38 +102,25 @@ const cr = [
67
102
  * This source code is licensed under the ISC license.
68
103
  * See the LICENSE file in the root directory of this source tree.
69
104
  */
70
- const pr = [
105
+ const wr = [
71
106
  ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
72
107
  ["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
73
108
  ["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
74
- ], dr = Pe("ellipsis", pr), He = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
109
+ ], vr = ge("ellipsis", wr), Ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
75
110
  __proto__: null,
76
- __iconNode: pr,
77
- default: dr
78
- }, Symbol.toStringTag, { value: "Module" }));
79
- function de({ className: t, variant: e, message: r, description: o, action: i, dismiss: n }) {
80
- return /* @__PURE__ */ z(Zr, { action: i, className: t, dismiss: n, variant: e, children: [
81
- /* @__PURE__ */ z(Xr, { children: [
82
- /* @__PURE__ */ d(Ur, { children: r }),
83
- /* @__PURE__ */ d(Qr, { children: o })
84
- ] }),
85
- /* @__PURE__ */ z(Kr, { children: [
86
- /* @__PURE__ */ d(Jr, {}),
87
- /* @__PURE__ */ d(to, {})
88
- ] })
89
- ] });
90
- }
91
- const Yl = ({
111
+ __iconNode: wr,
112
+ default: vr
113
+ }, Symbol.toStringTag, { value: "Module" })), rm = ({
92
114
  id: t,
93
115
  children: e,
94
116
  hideDismiss: r = !1,
95
117
  className: o,
96
118
  onDismiss: i
97
- }) => /* @__PURE__ */ d(no, { hideDismiss: r, id: t, onDismiss: i, children: /* @__PURE__ */ d(ao, { className: o, children: /* @__PURE__ */ z(so, { children: [
98
- /* @__PURE__ */ d(lo, { children: e }),
99
- /* @__PURE__ */ d(co, {})
119
+ }) => /* @__PURE__ */ m(Po, { hideDismiss: r, id: t, onDismiss: i, children: /* @__PURE__ */ m(Yo, { className: o, children: /* @__PURE__ */ D(Bo, { children: [
120
+ /* @__PURE__ */ m(Io, { children: e }),
121
+ /* @__PURE__ */ m(Fo, {})
100
122
  ] }) }) });
101
- function Bl({
123
+ function om({
102
124
  author: t,
103
125
  content: e,
104
126
  date: r,
@@ -107,73 +129,25 @@ function Bl({
107
129
  title: n,
108
130
  className: l
109
131
  }) {
110
- return /* @__PURE__ */ z(mo, { className: l, children: [
111
- /* @__PURE__ */ d(po, { children: i ? /* @__PURE__ */ d(uo, { alt: i.alt, src: i.src }) : /* @__PURE__ */ d(fo, { children: n }) }),
112
- /* @__PURE__ */ d(ho, { children: n }),
113
- /* @__PURE__ */ d(go, { children: e }),
114
- /* @__PURE__ */ z(bo, { children: [
115
- /* @__PURE__ */ d(yo, { children: r }),
116
- t !== void 0 && /* @__PURE__ */ d(wo, { children: t })
132
+ return /* @__PURE__ */ D(zo, { className: l, children: [
133
+ /* @__PURE__ */ m(Ro, { children: i ? /* @__PURE__ */ m(Ao, { alt: i.alt, src: i.src }) : /* @__PURE__ */ m(jo, { children: n }) }),
134
+ /* @__PURE__ */ m(Ho, { children: n }),
135
+ /* @__PURE__ */ m(Lo, { children: e }),
136
+ /* @__PURE__ */ D($o, { children: [
137
+ /* @__PURE__ */ m(Vo, { children: r }),
138
+ t !== void 0 && /* @__PURE__ */ m(Go, { children: t })
117
139
  ] }),
118
- /* @__PURE__ */ d(vo, { "aria-label": o.ariaLabel, href: o.href })
140
+ /* @__PURE__ */ m(Zo, { "aria-label": o.ariaLabel, href: o.href })
119
141
  ] });
120
142
  }
121
- function Le({
122
- variant: t = "primary",
123
- size: e = "large",
124
- shape: r = "pill",
125
- className: o,
126
- children: i,
127
- asChild: n = !1,
128
- ...l
129
- }) {
130
- return /* @__PURE__ */ d(
131
- n ? xo : "a",
132
- {
133
- className: st(
134
- "relative z-0 inline-flex h-fit select-none items-center justify-center overflow-hidden border text-center font-semibold leading-normal [font-family:var(--button-font-family,var(--font-family-body))] after:absolute after:inset-0 after:-z-10 after:-translate-x-[105%] after:transition after:duration-300 after:[animation-timing-function:cubic-bezier(0,0.25,0,1)] hover:after:translate-x-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--button-focus,hsl(var(--primary)))] focus-visible:ring-offset-2",
135
- {
136
- primary: "border-[var(--button-primary-border,hsl(var(--primary)))] bg-[var(--button-primary-background,hsl(var(--primary)))] text-[var(--button-primary-text,hsl(var(--foreground)))] after:bg-[var(--button-primary-background-hover,color-mix(in_oklab,hsl(var(--primary)),white_75%))]",
137
- secondary: "border-[var(--button-secondary-border,hsl(var(--foreground)))] bg-[var(--button-secondary-background,hsl(var(--foreground)))] text-[var(--button-secondary-text,hsl(var(--background)))] after:bg-[var(--button-secondary-background-hover,hsl(var(--background)))]",
138
- tertiary: "border-[var(--button-tertiary-border,hsl(var(--contrast-200)))] bg-[var(--button-tertiary-background,hsl(var(--background)))] text-[var(--button-tertiary-text,hsl(var(--foreground)))] after:bg-[var(--button-tertiary-background-hover,hsl(var(--contrast-100)))]",
139
- ghost: "border-[var(--button-ghost-border,transparent)] bg-[var(--button-ghost-background,transparent)] text-[var(--button-ghost-text,hsl(var(--foreground)))] after:bg-[var(--button-ghost-background-hover,color-mix(in_oklab,hsl(var(--foreground))_5%,transparent))]"
140
- }[t],
141
- {
142
- pill: "rounded-full after:rounded-full",
143
- rounded: "rounded-lg after:rounded-lg",
144
- square: "rounded-none after:rounded-none",
145
- circle: "rounded-full after:rounded-full"
146
- }[r],
147
- o
148
- ),
149
- ...l,
150
- children: /* @__PURE__ */ d(
151
- "span",
152
- {
153
- className: st(
154
- "inline-flex items-center justify-center",
155
- r === "circle" && "aspect-square",
156
- {
157
- "x-small": "min-h-8 text-xs",
158
- small: "min-h-10 text-sm",
159
- medium: "min-h-12 text-base",
160
- large: "min-h-14 text-base"
161
- }[e],
162
- r !== "circle" && {
163
- "x-small": "gap-x-2 px-3 py-1.5",
164
- small: "gap-x-2 px-4 py-2.5",
165
- medium: "gap-x-2.5 px-5 py-3",
166
- large: "gap-x-3 px-6 py-4"
167
- }[e],
168
- t === "secondary" && "mix-blend-difference"
169
- ),
170
- children: /* @__PURE__ */ d(Mo, { children: i })
171
- }
172
- )
173
- }
174
- );
175
- }
176
- function Wi(t, e, r = "long") {
143
+ const im = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
144
+ __proto__: null,
145
+ Box: Xo,
146
+ Icon: Ko,
147
+ Root: Uo,
148
+ Text: Qo
149
+ }, Symbol.toStringTag, { value: "Module" }));
150
+ function Fn(t, e, r = "long") {
177
151
  return new Intl.DateTimeFormat("en-US", {
178
152
  // Enforces engine to render the time. Without the option JavaScriptCore omits it.
179
153
  hour: "numeric",
@@ -181,29 +155,29 @@ function Wi(t, e, r = "long") {
181
155
  timeZoneName: r
182
156
  }).format(e).split(/\s/g).slice(2).join(" ");
183
157
  }
184
- const Ti = {}, Kt = {};
158
+ const zn = {}, Kt = {};
185
159
  function zt(t, e) {
186
160
  try {
187
- const o = (Ti[t] ||= new Intl.DateTimeFormat("en-US", {
161
+ const o = (zn[t] ||= new Intl.DateTimeFormat("en-US", {
188
162
  timeZone: t,
189
163
  timeZoneName: "longOffset"
190
164
  }).format)(e).split("GMT")[1];
191
- return o in Kt ? Kt[o] : $e(o, o.split(":"));
165
+ return o in Kt ? Kt[o] : Ue(o, o.split(":"));
192
166
  } catch {
193
167
  if (t in Kt) return Kt[t];
194
- const r = t?.match(Ei);
195
- return r ? $e(t, r.slice(1)) : NaN;
168
+ const r = t?.match(Rn);
169
+ return r ? Ue(t, r.slice(1)) : NaN;
196
170
  }
197
171
  }
198
- const Ei = /([+-]\d\d):?(\d\d)?/;
199
- function $e(t, e) {
172
+ const Rn = /([+-]\d\d):?(\d\d)?/;
173
+ function Ue(t, e) {
200
174
  const r = +(e[0] || 0), o = +(e[1] || 0), i = +(e[2] || 0) / 60;
201
175
  return Kt[t] = r * 60 + o > 0 ? r * 60 + o + i : r * 60 - o - i;
202
176
  }
203
177
  class Dt extends Date {
204
178
  //#region static
205
179
  constructor(...e) {
206
- super(), e.length > 1 && typeof e[e.length - 1] == "string" && (this.timeZone = e.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(zt(this.timeZone, this)) ? this.setTime(NaN) : e.length ? typeof e[0] == "number" && (e.length === 1 || e.length === 2 && typeof e[1] != "number") ? this.setTime(e[0]) : typeof e[0] == "string" ? this.setTime(+new Date(e[0])) : e[0] instanceof Date ? this.setTime(+e[0]) : (this.setTime(+new Date(...e)), ur(this), qe(this)) : this.setTime(Date.now());
180
+ super(), e.length > 1 && typeof e[e.length - 1] == "string" && (this.timeZone = e.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(zt(this.timeZone, this)) ? this.setTime(NaN) : e.length ? typeof e[0] == "number" && (e.length === 1 || e.length === 2 && typeof e[1] != "number") ? this.setTime(e[0]) : typeof e[0] == "string" ? this.setTime(+new Date(e[0])) : e[0] instanceof Date ? this.setTime(+e[0]) : (this.setTime(+new Date(...e)), kr(this), Pe(this)) : this.setTime(Date.now());
207
181
  }
208
182
  static tz(e, ...r) {
209
183
  return r.length ? new Dt(...r, e) : new Dt(Date.now(), e);
@@ -220,7 +194,7 @@ class Dt extends Date {
220
194
  //#endregion
221
195
  //#region time
222
196
  setTime(e) {
223
- return Date.prototype.setTime.apply(this, arguments), qe(this), +this;
197
+ return Date.prototype.setTime.apply(this, arguments), Pe(this), +this;
224
198
  }
225
199
  //#endregion
226
200
  //#region date-fns integration
@@ -229,39 +203,39 @@ class Dt extends Date {
229
203
  }
230
204
  //#endregion
231
205
  }
232
- const Ve = /^(get|set)(?!UTC)/;
206
+ const Xe = /^(get|set)(?!UTC)/;
233
207
  Object.getOwnPropertyNames(Date.prototype).forEach((t) => {
234
- if (!Ve.test(t)) return;
235
- const e = t.replace(Ve, "$1UTC");
208
+ if (!Xe.test(t)) return;
209
+ const e = t.replace(Xe, "$1UTC");
236
210
  Dt.prototype[e] && (t.startsWith("get") ? Dt.prototype[t] = function() {
237
211
  return this.internal[e]();
238
212
  } : (Dt.prototype[t] = function() {
239
- return Date.prototype[e].apply(this.internal, arguments), qi(this), +this;
213
+ return Date.prototype[e].apply(this.internal, arguments), An(this), +this;
240
214
  }, Dt.prototype[e] = function() {
241
- return Date.prototype[e].apply(this, arguments), qe(this), +this;
215
+ return Date.prototype[e].apply(this, arguments), Pe(this), +this;
242
216
  }));
243
217
  });
244
- function qe(t) {
218
+ function Pe(t) {
245
219
  t.internal.setTime(+t), t.internal.setUTCSeconds(t.internal.getUTCSeconds() - Math.round(-zt(t.timeZone, t) * 60));
246
220
  }
247
- function qi(t) {
248
- Date.prototype.setFullYear.call(t, t.internal.getUTCFullYear(), t.internal.getUTCMonth(), t.internal.getUTCDate()), Date.prototype.setHours.call(t, t.internal.getUTCHours(), t.internal.getUTCMinutes(), t.internal.getUTCSeconds(), t.internal.getUTCMilliseconds()), ur(t);
221
+ function An(t) {
222
+ Date.prototype.setFullYear.call(t, t.internal.getUTCFullYear(), t.internal.getUTCMonth(), t.internal.getUTCDate()), Date.prototype.setHours.call(t, t.internal.getUTCHours(), t.internal.getUTCMinutes(), t.internal.getUTCSeconds(), t.internal.getUTCMilliseconds()), kr(t);
249
223
  }
250
- function ur(t) {
224
+ function kr(t) {
251
225
  const e = zt(t.timeZone, t), r = e > 0 ? Math.floor(e) : Math.ceil(e), o = /* @__PURE__ */ new Date(+t);
252
226
  o.setUTCHours(o.getUTCHours() - 1);
253
227
  const i = -(/* @__PURE__ */ new Date(+t)).getTimezoneOffset(), n = -(/* @__PURE__ */ new Date(+o)).getTimezoneOffset(), l = i - n, s = Date.prototype.getHours.apply(t) !== t.internal.getUTCHours();
254
228
  l && s && t.internal.setUTCMinutes(t.internal.getUTCMinutes() + l);
255
- const m = i - r;
256
- m && Date.prototype.setUTCMinutes.call(t, Date.prototype.getUTCMinutes.call(t) + m);
229
+ const d = i - r;
230
+ d && Date.prototype.setUTCMinutes.call(t, Date.prototype.getUTCMinutes.call(t) + d);
257
231
  const p = /* @__PURE__ */ new Date(+t);
258
232
  p.setUTCSeconds(0);
259
233
  const u = i > 0 ? p.getSeconds() : (p.getSeconds() - 60) % 60, a = Math.round(-(zt(t.timeZone, t) * 60)) % 60;
260
234
  (a || u) && (t.internal.setUTCSeconds(t.internal.getUTCSeconds() + a), Date.prototype.setUTCSeconds.call(t, Date.prototype.getUTCSeconds.call(t) + a + u));
261
- const f = zt(t.timeZone, t), y = f > 0 ? Math.floor(f) : Math.ceil(f), W = -(/* @__PURE__ */ new Date(+t)).getTimezoneOffset() - y, x = y !== r, h = W - m;
235
+ const f = zt(t.timeZone, t), b = f > 0 ? Math.floor(f) : Math.ceil(f), N = -(/* @__PURE__ */ new Date(+t)).getTimezoneOffset() - b, x = b !== r, h = N - d;
262
236
  if (x && h) {
263
237
  Date.prototype.setUTCMinutes.call(t, Date.prototype.getUTCMinutes.call(t) + h);
264
- const T = zt(t.timeZone, t), v = T > 0 ? Math.floor(T) : Math.ceil(T), _ = y - v;
238
+ const W = zt(t.timeZone, t), v = W > 0 ? Math.floor(W) : Math.ceil(W), _ = b - v;
265
239
  _ && (t.internal.setUTCMinutes(t.internal.getUTCMinutes() + _), Date.prototype.setUTCMinutes.call(t, Date.prototype.getUTCMinutes.call(t) + _));
266
240
  }
267
241
  }
@@ -285,7 +259,7 @@ class nt extends Dt {
285
259
  }
286
260
  toTimeString() {
287
261
  const e = this.internal.toUTCString().split(" ")[4], [r, o, i] = this.tzComponents();
288
- return `${e} GMT${r}${o}${i} (${Wi(this.timeZone, this)})`;
262
+ return `${e} GMT${r}${o}${i} (${Fn(this.timeZone, this)})`;
289
263
  }
290
264
  toLocaleString(e, r) {
291
265
  return Date.prototype.toLocaleString.call(this, e, {
@@ -321,23 +295,23 @@ class nt extends Dt {
321
295
  }
322
296
  //#endregion
323
297
  }
324
- const fr = 6048e5, _i = 864e5, Ge = Symbol.for("constructDateFrom");
325
- function X(t, e) {
326
- return typeof t == "function" ? t(e) : t && typeof t == "object" && Ge in t ? t[Ge](e) : t instanceof Date ? new t.constructor(e) : new Date(e);
298
+ const xr = 6048e5, jn = 864e5, Qe = Symbol.for("constructDateFrom");
299
+ function U(t, e) {
300
+ return typeof t == "function" ? t(e) : t && typeof t == "object" && Qe in t ? t[Qe](e) : t instanceof Date ? new t.constructor(e) : new Date(e);
327
301
  }
328
- function I(t, e) {
329
- return X(e || t, t);
302
+ function F(t, e) {
303
+ return U(e || t, t);
330
304
  }
331
- function hr(t, e, r) {
332
- const o = I(t, r?.in);
333
- return isNaN(e) ? X(t, NaN) : (e && o.setDate(o.getDate() + e), o);
305
+ function Mr(t, e, r) {
306
+ const o = F(t, r?.in);
307
+ return isNaN(e) ? U(t, NaN) : (e && o.setDate(o.getDate() + e), o);
334
308
  }
335
- function gr(t, e, r) {
336
- const o = I(t, r?.in);
337
- if (isNaN(e)) return X(t, NaN);
309
+ function Dr(t, e, r) {
310
+ const o = F(t, r?.in);
311
+ if (isNaN(e)) return U(t, NaN);
338
312
  if (!e)
339
313
  return o;
340
- const i = o.getDate(), n = X(t, o.getTime());
314
+ const i = o.getDate(), n = U(t, o.getTime());
341
315
  n.setMonth(o.getMonth() + e + 1, 0);
342
316
  const l = n.getDate();
343
317
  return i >= l ? n : (o.setFullYear(
@@ -346,27 +320,27 @@ function gr(t, e, r) {
346
320
  i
347
321
  ), o);
348
322
  }
349
- let Pi = {};
323
+ let Hn = {};
350
324
  function re() {
351
- return Pi;
325
+ return Hn;
352
326
  }
353
327
  function $t(t, e) {
354
- const r = re(), o = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, i = I(t, e?.in), n = i.getDay(), l = (n < o ? 7 : 0) + n - o;
328
+ const r = re(), o = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, i = F(t, e?.in), n = i.getDay(), l = (n < o ? 7 : 0) + n - o;
355
329
  return i.setDate(i.getDate() - l), i.setHours(0, 0, 0, 0), i;
356
330
  }
357
331
  function te(t, e) {
358
332
  return $t(t, { ...e, weekStartsOn: 1 });
359
333
  }
360
- function br(t, e) {
361
- const r = I(t, e?.in), o = r.getFullYear(), i = X(r, 0);
334
+ function Cr(t, e) {
335
+ const r = F(t, e?.in), o = r.getFullYear(), i = U(r, 0);
362
336
  i.setFullYear(o + 1, 0, 4), i.setHours(0, 0, 0, 0);
363
- const n = te(i), l = X(r, 0);
337
+ const n = te(i), l = U(r, 0);
364
338
  l.setFullYear(o, 0, 4), l.setHours(0, 0, 0, 0);
365
339
  const s = te(l);
366
340
  return r.getTime() >= n.getTime() ? o + 1 : r.getTime() >= s.getTime() ? o : o - 1;
367
341
  }
368
- function Ze(t) {
369
- const e = I(t), r = new Date(
342
+ function Ke(t) {
343
+ const e = F(t), r = new Date(
370
344
  Date.UTC(
371
345
  e.getFullYear(),
372
346
  e.getMonth(),
@@ -380,51 +354,51 @@ function Ze(t) {
380
354
  return r.setUTCFullYear(e.getFullYear()), +t - +r;
381
355
  }
382
356
  function Vt(t, ...e) {
383
- const r = X.bind(
357
+ const r = U.bind(
384
358
  null,
385
359
  e.find((o) => typeof o == "object")
386
360
  );
387
361
  return e.map(r);
388
362
  }
389
363
  function ee(t, e) {
390
- const r = I(t, e?.in);
364
+ const r = F(t, e?.in);
391
365
  return r.setHours(0, 0, 0, 0), r;
392
366
  }
393
- function yr(t, e, r) {
367
+ function Or(t, e, r) {
394
368
  const [o, i] = Vt(
395
369
  r?.in,
396
370
  t,
397
371
  e
398
- ), n = ee(o), l = ee(i), s = +n - Ze(n), m = +l - Ze(l);
399
- return Math.round((s - m) / _i);
372
+ ), n = ee(o), l = ee(i), s = +n - Ke(n), d = +l - Ke(l);
373
+ return Math.round((s - d) / jn);
400
374
  }
401
- function Yi(t, e) {
402
- const r = br(t, e), o = X(t, 0);
375
+ function Ln(t, e) {
376
+ const r = Cr(t, e), o = U(t, 0);
403
377
  return o.setFullYear(r, 0, 4), o.setHours(0, 0, 0, 0), te(o);
404
378
  }
405
- function Bi(t, e, r) {
406
- return hr(t, e * 7, r);
379
+ function $n(t, e, r) {
380
+ return Mr(t, e * 7, r);
407
381
  }
408
- function Ii(t, e, r) {
409
- return gr(t, e * 12, r);
382
+ function Vn(t, e, r) {
383
+ return Dr(t, e * 12, r);
410
384
  }
411
- function Fi(t, e) {
385
+ function Gn(t, e) {
412
386
  let r, o = e?.in;
413
387
  return t.forEach((i) => {
414
- !o && typeof i == "object" && (o = X.bind(null, i));
415
- const n = I(i, o);
388
+ !o && typeof i == "object" && (o = U.bind(null, i));
389
+ const n = F(i, o);
416
390
  (!r || r < n || isNaN(+n)) && (r = n);
417
- }), X(o, r || NaN);
391
+ }), U(o, r || NaN);
418
392
  }
419
- function zi(t, e) {
393
+ function Zn(t, e) {
420
394
  let r, o = e?.in;
421
395
  return t.forEach((i) => {
422
- !o && typeof i == "object" && (o = X.bind(null, i));
423
- const n = I(i, o);
396
+ !o && typeof i == "object" && (o = U.bind(null, i));
397
+ const n = F(i, o);
424
398
  (!r || r > n || isNaN(+n)) && (r = n);
425
- }), X(o, r || NaN);
399
+ }), U(o, r || NaN);
426
400
  }
427
- function Ai(t, e, r) {
401
+ function Un(t, e, r) {
428
402
  const [o, i] = Vt(
429
403
  r?.in,
430
404
  t,
@@ -432,13 +406,13 @@ function Ai(t, e, r) {
432
406
  );
433
407
  return +ee(o) == +ee(i);
434
408
  }
435
- function wr(t) {
409
+ function Sr(t) {
436
410
  return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
437
411
  }
438
- function Ri(t) {
439
- return !(!wr(t) && typeof t != "number" || isNaN(+I(t)));
412
+ function Xn(t) {
413
+ return !(!Sr(t) && typeof t != "number" || isNaN(+F(t)));
440
414
  }
441
- function ji(t, e, r) {
415
+ function Qn(t, e, r) {
442
416
  const [o, i] = Vt(
443
417
  r?.in,
444
418
  t,
@@ -446,56 +420,56 @@ function ji(t, e, r) {
446
420
  ), n = o.getFullYear() - i.getFullYear(), l = o.getMonth() - i.getMonth();
447
421
  return n * 12 + l;
448
422
  }
449
- function Hi(t, e) {
450
- const r = I(t, e?.in), o = r.getMonth();
423
+ function Kn(t, e) {
424
+ const r = F(t, e?.in), o = r.getMonth();
451
425
  return r.setFullYear(r.getFullYear(), o + 1, 0), r.setHours(23, 59, 59, 999), r;
452
426
  }
453
- function vr(t, e) {
427
+ function Nr(t, e) {
454
428
  const [r, o] = Vt(t, e.start, e.end);
455
429
  return { start: r, end: o };
456
430
  }
457
- function Li(t, e) {
458
- const { start: r, end: o } = vr(e?.in, t);
431
+ function Jn(t, e) {
432
+ const { start: r, end: o } = Nr(e?.in, t);
459
433
  let i = +r > +o;
460
434
  const n = i ? +r : +o, l = i ? o : r;
461
435
  l.setHours(0, 0, 0, 0), l.setDate(1);
462
436
  let s = 1;
463
- const m = [];
437
+ const d = [];
464
438
  for (; +l <= n; )
465
- m.push(X(r, l)), l.setMonth(l.getMonth() + s);
466
- return i ? m.reverse() : m;
439
+ d.push(U(r, l)), l.setMonth(l.getMonth() + s);
440
+ return i ? d.reverse() : d;
467
441
  }
468
- function $i(t, e) {
469
- const r = I(t, e?.in);
442
+ function ta(t, e) {
443
+ const r = F(t, e?.in);
470
444
  return r.setDate(1), r.setHours(0, 0, 0, 0), r;
471
445
  }
472
- function Vi(t, e) {
473
- const r = I(t, e?.in), o = r.getFullYear();
446
+ function ea(t, e) {
447
+ const r = F(t, e?.in), o = r.getFullYear();
474
448
  return r.setFullYear(o + 1, 0, 0), r.setHours(23, 59, 59, 999), r;
475
449
  }
476
- function kr(t, e) {
477
- const r = I(t, e?.in);
450
+ function Tr(t, e) {
451
+ const r = F(t, e?.in);
478
452
  return r.setFullYear(r.getFullYear(), 0, 1), r.setHours(0, 0, 0, 0), r;
479
453
  }
480
- function Gi(t, e) {
481
- const { start: r, end: o } = vr(e?.in, t);
454
+ function ra(t, e) {
455
+ const { start: r, end: o } = Nr(e?.in, t);
482
456
  let i = +r > +o;
483
457
  const n = i ? +r : +o, l = i ? o : r;
484
458
  l.setHours(0, 0, 0, 0), l.setMonth(0, 1);
485
459
  let s = 1;
486
- const m = [];
460
+ const d = [];
487
461
  for (; +l <= n; )
488
- m.push(X(r, l)), l.setFullYear(l.getFullYear() + s);
489
- return i ? m.reverse() : m;
462
+ d.push(U(r, l)), l.setFullYear(l.getFullYear() + s);
463
+ return i ? d.reverse() : d;
490
464
  }
491
- function xr(t, e) {
492
- const r = re(), o = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, i = I(t, e?.in), n = i.getDay(), l = (n < o ? -7 : 0) + 6 - (n - o);
465
+ function Wr(t, e) {
466
+ const r = re(), o = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, i = F(t, e?.in), n = i.getDay(), l = (n < o ? -7 : 0) + 6 - (n - o);
493
467
  return i.setDate(i.getDate() + l), i.setHours(23, 59, 59, 999), i;
494
468
  }
495
- function Zi(t, e) {
496
- return xr(t, { ...e, weekStartsOn: 1 });
469
+ function oa(t, e) {
470
+ return Wr(t, { ...e, weekStartsOn: 1 });
497
471
  }
498
- const Xi = {
472
+ const ia = {
499
473
  lessThanXSeconds: {
500
474
  one: "less than a second",
501
475
  other: "less than {{count}} seconds"
@@ -557,54 +531,54 @@ const Xi = {
557
531
  one: "almost 1 year",
558
532
  other: "almost {{count}} years"
559
533
  }
560
- }, Ui = (t, e, r) => {
534
+ }, na = (t, e, r) => {
561
535
  let o;
562
- const i = Xi[t];
536
+ const i = ia[t];
563
537
  return typeof i == "string" ? o = i : e === 1 ? o = i.one : o = i.other.replace("{{count}}", e.toString()), r?.addSuffix ? r.comparison && r.comparison > 0 ? "in " + o : o + " ago" : o;
564
538
  };
565
- function Se(t) {
539
+ function Ne(t) {
566
540
  return (e = {}) => {
567
541
  const r = e.width ? String(e.width) : t.defaultWidth;
568
542
  return t.formats[r] || t.formats[t.defaultWidth];
569
543
  };
570
544
  }
571
- const Qi = {
545
+ const aa = {
572
546
  full: "EEEE, MMMM do, y",
573
547
  long: "MMMM do, y",
574
548
  medium: "MMM d, y",
575
549
  short: "MM/dd/yyyy"
576
- }, Ki = {
550
+ }, sa = {
577
551
  full: "h:mm:ss a zzzz",
578
552
  long: "h:mm:ss a z",
579
553
  medium: "h:mm:ss a",
580
554
  short: "h:mm a"
581
- }, Ji = {
555
+ }, la = {
582
556
  full: "{{date}} 'at' {{time}}",
583
557
  long: "{{date}} 'at' {{time}}",
584
558
  medium: "{{date}}, {{time}}",
585
559
  short: "{{date}}, {{time}}"
586
- }, tn = {
587
- date: Se({
588
- formats: Qi,
560
+ }, ca = {
561
+ date: Ne({
562
+ formats: aa,
589
563
  defaultWidth: "full"
590
564
  }),
591
- time: Se({
592
- formats: Ki,
565
+ time: Ne({
566
+ formats: sa,
593
567
  defaultWidth: "full"
594
568
  }),
595
- dateTime: Se({
596
- formats: Ji,
569
+ dateTime: Ne({
570
+ formats: la,
597
571
  defaultWidth: "full"
598
572
  })
599
- }, en = {
573
+ }, ma = {
600
574
  lastWeek: "'last' eeee 'at' p",
601
575
  yesterday: "'yesterday at' p",
602
576
  today: "'today at' p",
603
577
  tomorrow: "'tomorrow at' p",
604
578
  nextWeek: "eeee 'at' p",
605
579
  other: "P"
606
- }, rn = (t, e, r, o) => en[t];
607
- function Ut(t) {
580
+ }, da = (t, e, r, o) => ma[t];
581
+ function Xt(t) {
608
582
  return (e, r) => {
609
583
  const o = r?.context ? String(r.context) : "standalone";
610
584
  let i;
@@ -619,15 +593,15 @@ function Ut(t) {
619
593
  return i[n];
620
594
  };
621
595
  }
622
- const on = {
596
+ const pa = {
623
597
  narrow: ["B", "A"],
624
598
  abbreviated: ["BC", "AD"],
625
599
  wide: ["Before Christ", "Anno Domini"]
626
- }, nn = {
600
+ }, ua = {
627
601
  narrow: ["1", "2", "3", "4"],
628
602
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
629
603
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
630
- }, an = {
604
+ }, fa = {
631
605
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
632
606
  abbreviated: [
633
607
  "Jan",
@@ -657,7 +631,7 @@ const on = {
657
631
  "November",
658
632
  "December"
659
633
  ]
660
- }, sn = {
634
+ }, ha = {
661
635
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
662
636
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
663
637
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
@@ -670,7 +644,7 @@ const on = {
670
644
  "Friday",
671
645
  "Saturday"
672
646
  ]
673
- }, ln = {
647
+ }, ga = {
674
648
  narrow: {
675
649
  am: "a",
676
650
  pm: "p",
@@ -701,7 +675,7 @@ const on = {
701
675
  evening: "evening",
702
676
  night: "night"
703
677
  }
704
- }, cn = {
678
+ }, ba = {
705
679
  narrow: {
706
680
  am: "a",
707
681
  pm: "p",
@@ -732,7 +706,7 @@ const on = {
732
706
  evening: "in the evening",
733
707
  night: "at night"
734
708
  }
735
- }, mn = (t, e) => {
709
+ }, ya = (t, e) => {
736
710
  const r = Number(t), o = r % 100;
737
711
  if (o > 20 || o < 10)
738
712
  switch (o % 10) {
@@ -744,29 +718,29 @@ const on = {
744
718
  return r + "rd";
745
719
  }
746
720
  return r + "th";
747
- }, pn = {
748
- ordinalNumber: mn,
749
- era: Ut({
750
- values: on,
721
+ }, wa = {
722
+ ordinalNumber: ya,
723
+ era: Xt({
724
+ values: pa,
751
725
  defaultWidth: "wide"
752
726
  }),
753
- quarter: Ut({
754
- values: nn,
727
+ quarter: Xt({
728
+ values: ua,
755
729
  defaultWidth: "wide",
756
730
  argumentCallback: (t) => t - 1
757
731
  }),
758
- month: Ut({
759
- values: an,
732
+ month: Xt({
733
+ values: fa,
760
734
  defaultWidth: "wide"
761
735
  }),
762
- day: Ut({
763
- values: sn,
736
+ day: Xt({
737
+ values: ha,
764
738
  defaultWidth: "wide"
765
739
  }),
766
- dayPeriod: Ut({
767
- values: ln,
740
+ dayPeriod: Xt({
741
+ values: ga,
768
742
  defaultWidth: "wide",
769
- formattingValues: cn,
743
+ formattingValues: ba,
770
744
  defaultFormattingWidth: "wide"
771
745
  })
772
746
  };
@@ -775,12 +749,12 @@ function Qt(t) {
775
749
  const o = r.width, i = o && t.matchPatterns[o] || t.matchPatterns[t.defaultMatchWidth], n = e.match(i);
776
750
  if (!n)
777
751
  return null;
778
- const l = n[0], s = o && t.parsePatterns[o] || t.parsePatterns[t.defaultParseWidth], m = Array.isArray(s) ? un(s, (a) => a.test(l)) : (
752
+ const l = n[0], s = o && t.parsePatterns[o] || t.parsePatterns[t.defaultParseWidth], d = Array.isArray(s) ? ka(s, (a) => a.test(l)) : (
779
753
  // [TODO] -- I challenge you to fix the type
780
- dn(s, (a) => a.test(l))
754
+ va(s, (a) => a.test(l))
781
755
  );
782
756
  let p;
783
- p = t.valueCallback ? t.valueCallback(m) : m, p = r.valueCallback ? (
757
+ p = t.valueCallback ? t.valueCallback(d) : d, p = r.valueCallback ? (
784
758
  // [TODO] -- I challenge you to fix the type
785
759
  r.valueCallback(p)
786
760
  ) : p;
@@ -788,17 +762,17 @@ function Qt(t) {
788
762
  return { value: p, rest: u };
789
763
  };
790
764
  }
791
- function dn(t, e) {
765
+ function va(t, e) {
792
766
  for (const r in t)
793
767
  if (Object.prototype.hasOwnProperty.call(t, r) && e(t[r]))
794
768
  return r;
795
769
  }
796
- function un(t, e) {
770
+ function ka(t, e) {
797
771
  for (let r = 0; r < t.length; r++)
798
772
  if (e(t[r]))
799
773
  return r;
800
774
  }
801
- function fn(t) {
775
+ function xa(t) {
802
776
  return (e, r = {}) => {
803
777
  const o = e.match(t.matchPattern);
804
778
  if (!o) return null;
@@ -810,23 +784,23 @@ function fn(t) {
810
784
  return { value: l, rest: s };
811
785
  };
812
786
  }
813
- const hn = /^(\d+)(th|st|nd|rd)?/i, gn = /\d+/i, bn = {
787
+ const Ma = /^(\d+)(th|st|nd|rd)?/i, Da = /\d+/i, Ca = {
814
788
  narrow: /^(b|a)/i,
815
789
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
816
790
  wide: /^(before christ|before common era|anno domini|common era)/i
817
- }, yn = {
791
+ }, Oa = {
818
792
  any: [/^b/i, /^(a|c)/i]
819
- }, wn = {
793
+ }, Sa = {
820
794
  narrow: /^[1234]/i,
821
795
  abbreviated: /^q[1234]/i,
822
796
  wide: /^[1234](th|st|nd|rd)? quarter/i
823
- }, vn = {
797
+ }, Na = {
824
798
  any: [/1/i, /2/i, /3/i, /4/i]
825
- }, kn = {
799
+ }, Ta = {
826
800
  narrow: /^[jfmasond]/i,
827
801
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
828
802
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
829
- }, xn = {
803
+ }, Wa = {
830
804
  narrow: [
831
805
  /^j/i,
832
806
  /^f/i,
@@ -855,18 +829,18 @@ const hn = /^(\d+)(th|st|nd|rd)?/i, gn = /\d+/i, bn = {
855
829
  /^n/i,
856
830
  /^d/i
857
831
  ]
858
- }, Mn = {
832
+ }, Ea = {
859
833
  narrow: /^[smtwf]/i,
860
834
  short: /^(su|mo|tu|we|th|fr|sa)/i,
861
835
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
862
836
  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
863
- }, Dn = {
837
+ }, _a = {
864
838
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
865
839
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
866
- }, On = {
840
+ }, qa = {
867
841
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
868
842
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
869
- }, Cn = {
843
+ }, Pa = {
870
844
  any: {
871
845
  am: /^a/i,
872
846
  pm: /^p/i,
@@ -877,80 +851,80 @@ const hn = /^(\d+)(th|st|nd|rd)?/i, gn = /\d+/i, bn = {
877
851
  evening: /evening/i,
878
852
  night: /night/i
879
853
  }
880
- }, Sn = {
881
- ordinalNumber: fn({
882
- matchPattern: hn,
883
- parsePattern: gn,
854
+ }, Ya = {
855
+ ordinalNumber: xa({
856
+ matchPattern: Ma,
857
+ parsePattern: Da,
884
858
  valueCallback: (t) => parseInt(t, 10)
885
859
  }),
886
860
  era: Qt({
887
- matchPatterns: bn,
861
+ matchPatterns: Ca,
888
862
  defaultMatchWidth: "wide",
889
- parsePatterns: yn,
863
+ parsePatterns: Oa,
890
864
  defaultParseWidth: "any"
891
865
  }),
892
866
  quarter: Qt({
893
- matchPatterns: wn,
867
+ matchPatterns: Sa,
894
868
  defaultMatchWidth: "wide",
895
- parsePatterns: vn,
869
+ parsePatterns: Na,
896
870
  defaultParseWidth: "any",
897
871
  valueCallback: (t) => t + 1
898
872
  }),
899
873
  month: Qt({
900
- matchPatterns: kn,
874
+ matchPatterns: Ta,
901
875
  defaultMatchWidth: "wide",
902
- parsePatterns: xn,
876
+ parsePatterns: Wa,
903
877
  defaultParseWidth: "any"
904
878
  }),
905
879
  day: Qt({
906
- matchPatterns: Mn,
880
+ matchPatterns: Ea,
907
881
  defaultMatchWidth: "wide",
908
- parsePatterns: Dn,
882
+ parsePatterns: _a,
909
883
  defaultParseWidth: "any"
910
884
  }),
911
885
  dayPeriod: Qt({
912
- matchPatterns: On,
886
+ matchPatterns: qa,
913
887
  defaultMatchWidth: "any",
914
- parsePatterns: Cn,
888
+ parsePatterns: Pa,
915
889
  defaultParseWidth: "any"
916
890
  })
917
- }, Ye = {
891
+ }, Ie = {
918
892
  code: "en-US",
919
- formatDistance: Ui,
920
- formatLong: tn,
921
- formatRelative: rn,
922
- localize: pn,
923
- match: Sn,
893
+ formatDistance: na,
894
+ formatLong: ca,
895
+ formatRelative: da,
896
+ localize: wa,
897
+ match: Ya,
924
898
  options: {
925
899
  weekStartsOn: 0,
926
900
  firstWeekContainsDate: 1
927
901
  }
928
902
  };
929
- function Nn(t, e) {
930
- const r = I(t, e?.in);
931
- return yr(r, kr(r)) + 1;
903
+ function Ba(t, e) {
904
+ const r = F(t, e?.in);
905
+ return Or(r, Tr(r)) + 1;
932
906
  }
933
- function Mr(t, e) {
934
- const r = I(t, e?.in), o = +te(r) - +Yi(r);
935
- return Math.round(o / fr) + 1;
907
+ function Er(t, e) {
908
+ const r = F(t, e?.in), o = +te(r) - +Ln(r);
909
+ return Math.round(o / xr) + 1;
936
910
  }
937
- function Dr(t, e) {
938
- const r = I(t, e?.in), o = r.getFullYear(), i = re(), n = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, l = X(e?.in || t, 0);
911
+ function _r(t, e) {
912
+ const r = F(t, e?.in), o = r.getFullYear(), i = re(), n = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, l = U(e?.in || t, 0);
939
913
  l.setFullYear(o + 1, 0, n), l.setHours(0, 0, 0, 0);
940
- const s = $t(l, e), m = X(e?.in || t, 0);
941
- m.setFullYear(o, 0, n), m.setHours(0, 0, 0, 0);
942
- const p = $t(m, e);
914
+ const s = $t(l, e), d = U(e?.in || t, 0);
915
+ d.setFullYear(o, 0, n), d.setHours(0, 0, 0, 0);
916
+ const p = $t(d, e);
943
917
  return +r >= +s ? o + 1 : +r >= +p ? o : o - 1;
944
918
  }
945
- function Wn(t, e) {
946
- const r = re(), o = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, i = Dr(t, e), n = X(e?.in || t, 0);
919
+ function Ia(t, e) {
920
+ const r = re(), o = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, i = _r(t, e), n = U(e?.in || t, 0);
947
921
  return n.setFullYear(i, 0, o), n.setHours(0, 0, 0, 0), $t(n, e);
948
922
  }
949
- function Or(t, e) {
950
- const r = I(t, e?.in), o = +$t(r, e) - +Wn(r, e);
951
- return Math.round(o / fr) + 1;
923
+ function qr(t, e) {
924
+ const r = F(t, e?.in), o = +$t(r, e) - +Ia(r, e);
925
+ return Math.round(o / xr) + 1;
952
926
  }
953
- function Y(t, e) {
927
+ function B(t, e) {
954
928
  const r = t < 0 ? "-" : "", o = Math.abs(t).toString().padStart(e, "0");
955
929
  return r + o;
956
930
  }
@@ -958,16 +932,16 @@ const Pt = {
958
932
  // Year
959
933
  y(t, e) {
960
934
  const r = t.getFullYear(), o = r > 0 ? r : 1 - r;
961
- return Y(e === "yy" ? o % 100 : o, e.length);
935
+ return B(e === "yy" ? o % 100 : o, e.length);
962
936
  },
963
937
  // Month
964
938
  M(t, e) {
965
939
  const r = t.getMonth();
966
- return e === "M" ? String(r + 1) : Y(r + 1, 2);
940
+ return e === "M" ? String(r + 1) : B(r + 1, 2);
967
941
  },
968
942
  // Day of the month
969
943
  d(t, e) {
970
- return Y(t.getDate(), e.length);
944
+ return B(t.getDate(), e.length);
971
945
  },
972
946
  // AM or PM
973
947
  a(t, e) {
@@ -987,26 +961,26 @@ const Pt = {
987
961
  },
988
962
  // Hour [1-12]
989
963
  h(t, e) {
990
- return Y(t.getHours() % 12 || 12, e.length);
964
+ return B(t.getHours() % 12 || 12, e.length);
991
965
  },
992
966
  // Hour [0-23]
993
967
  H(t, e) {
994
- return Y(t.getHours(), e.length);
968
+ return B(t.getHours(), e.length);
995
969
  },
996
970
  // Minute
997
971
  m(t, e) {
998
- return Y(t.getMinutes(), e.length);
972
+ return B(t.getMinutes(), e.length);
999
973
  },
1000
974
  // Second
1001
975
  s(t, e) {
1002
- return Y(t.getSeconds(), e.length);
976
+ return B(t.getSeconds(), e.length);
1003
977
  },
1004
978
  // Fraction of second
1005
979
  S(t, e) {
1006
980
  const r = e.length, o = t.getMilliseconds(), i = Math.trunc(
1007
981
  o * Math.pow(10, r - 3)
1008
982
  );
1009
- return Y(i, e.length);
983
+ return B(i, e.length);
1010
984
  }
1011
985
  }, Lt = {
1012
986
  midnight: "midnight",
@@ -1015,7 +989,7 @@ const Pt = {
1015
989
  afternoon: "afternoon",
1016
990
  evening: "evening",
1017
991
  night: "night"
1018
- }, Xe = {
992
+ }, Je = {
1019
993
  // Era
1020
994
  G: function(t, e, r) {
1021
995
  const o = t.getFullYear() > 0 ? 1 : 0;
@@ -1044,17 +1018,17 @@ const Pt = {
1044
1018
  },
1045
1019
  // Local week-numbering year
1046
1020
  Y: function(t, e, r, o) {
1047
- const i = Dr(t, o), n = i > 0 ? i : 1 - i;
1021
+ const i = _r(t, o), n = i > 0 ? i : 1 - i;
1048
1022
  if (e === "YY") {
1049
1023
  const l = n % 100;
1050
- return Y(l, 2);
1024
+ return B(l, 2);
1051
1025
  }
1052
- return e === "Yo" ? r.ordinalNumber(n, { unit: "year" }) : Y(n, e.length);
1026
+ return e === "Yo" ? r.ordinalNumber(n, { unit: "year" }) : B(n, e.length);
1053
1027
  },
1054
1028
  // ISO week-numbering year
1055
1029
  R: function(t, e) {
1056
- const r = br(t);
1057
- return Y(r, e.length);
1030
+ const r = Cr(t);
1031
+ return B(r, e.length);
1058
1032
  },
1059
1033
  // Extended year. This is a single number designating the year of this calendar system.
1060
1034
  // The main difference between `y` and `u` localizers are B.C. years:
@@ -1067,7 +1041,7 @@ const Pt = {
1067
1041
  // while `uu` pads single digit years to 2 characters and returns other years unchanged.
1068
1042
  u: function(t, e) {
1069
1043
  const r = t.getFullYear();
1070
- return Y(r, e.length);
1044
+ return B(r, e.length);
1071
1045
  },
1072
1046
  // Quarter
1073
1047
  Q: function(t, e, r) {
@@ -1078,7 +1052,7 @@ const Pt = {
1078
1052
  return String(o);
1079
1053
  // 01, 02, 03, 04
1080
1054
  case "QQ":
1081
- return Y(o, 2);
1055
+ return B(o, 2);
1082
1056
  // 1st, 2nd, 3rd, 4th
1083
1057
  case "Qo":
1084
1058
  return r.ordinalNumber(o, { unit: "quarter" });
@@ -1112,7 +1086,7 @@ const Pt = {
1112
1086
  return String(o);
1113
1087
  // 01, 02, 03, 04
1114
1088
  case "qq":
1115
- return Y(o, 2);
1089
+ return B(o, 2);
1116
1090
  // 1st, 2nd, 3rd, 4th
1117
1091
  case "qo":
1118
1092
  return r.ordinalNumber(o, { unit: "quarter" });
@@ -1174,7 +1148,7 @@ const Pt = {
1174
1148
  return String(o + 1);
1175
1149
  // 01, 02, ..., 12
1176
1150
  case "LL":
1177
- return Y(o + 1, 2);
1151
+ return B(o + 1, 2);
1178
1152
  // 1st, 2nd, ..., 12th
1179
1153
  case "Lo":
1180
1154
  return r.ordinalNumber(o + 1, { unit: "month" });
@@ -1198,13 +1172,13 @@ const Pt = {
1198
1172
  },
1199
1173
  // Local week of year
1200
1174
  w: function(t, e, r, o) {
1201
- const i = Or(t, o);
1202
- return e === "wo" ? r.ordinalNumber(i, { unit: "week" }) : Y(i, e.length);
1175
+ const i = qr(t, o);
1176
+ return e === "wo" ? r.ordinalNumber(i, { unit: "week" }) : B(i, e.length);
1203
1177
  },
1204
1178
  // ISO week of year
1205
1179
  I: function(t, e, r) {
1206
- const o = Mr(t);
1207
- return e === "Io" ? r.ordinalNumber(o, { unit: "week" }) : Y(o, e.length);
1180
+ const o = Er(t);
1181
+ return e === "Io" ? r.ordinalNumber(o, { unit: "week" }) : B(o, e.length);
1208
1182
  },
1209
1183
  // Day of the month
1210
1184
  d: function(t, e, r) {
@@ -1212,8 +1186,8 @@ const Pt = {
1212
1186
  },
1213
1187
  // Day of year
1214
1188
  D: function(t, e, r) {
1215
- const o = Nn(t);
1216
- return e === "Do" ? r.ordinalNumber(o, { unit: "dayOfYear" }) : Y(o, e.length);
1189
+ const o = Ba(t);
1190
+ return e === "Do" ? r.ordinalNumber(o, { unit: "dayOfYear" }) : B(o, e.length);
1217
1191
  },
1218
1192
  // Day of week
1219
1193
  E: function(t, e, r) {
@@ -1257,7 +1231,7 @@ const Pt = {
1257
1231
  return String(n);
1258
1232
  // Padded numerical value
1259
1233
  case "ee":
1260
- return Y(n, 2);
1234
+ return B(n, 2);
1261
1235
  // 1st, 2nd, ..., 7th
1262
1236
  case "eo":
1263
1237
  return r.ordinalNumber(n, { unit: "day" });
@@ -1296,7 +1270,7 @@ const Pt = {
1296
1270
  return String(n);
1297
1271
  // Padded numerical value
1298
1272
  case "cc":
1299
- return Y(n, e.length);
1273
+ return B(n, e.length);
1300
1274
  // 1st, 2nd, ..., 7th
1301
1275
  case "co":
1302
1276
  return r.ordinalNumber(n, { unit: "day" });
@@ -1335,7 +1309,7 @@ const Pt = {
1335
1309
  return String(i);
1336
1310
  // 02
1337
1311
  case "ii":
1338
- return Y(i, e.length);
1312
+ return B(i, e.length);
1339
1313
  // 2nd
1340
1314
  case "io":
1341
1315
  return r.ordinalNumber(i, { unit: "day" });
@@ -1463,12 +1437,12 @@ const Pt = {
1463
1437
  // Hour [0-11]
1464
1438
  K: function(t, e, r) {
1465
1439
  const o = t.getHours() % 12;
1466
- return e === "Ko" ? r.ordinalNumber(o, { unit: "hour" }) : Y(o, e.length);
1440
+ return e === "Ko" ? r.ordinalNumber(o, { unit: "hour" }) : B(o, e.length);
1467
1441
  },
1468
1442
  // Hour [1-24]
1469
1443
  k: function(t, e, r) {
1470
1444
  let o = t.getHours();
1471
- return o === 0 && (o = 24), e === "ko" ? r.ordinalNumber(o, { unit: "hour" }) : Y(o, e.length);
1445
+ return o === 0 && (o = 24), e === "ko" ? r.ordinalNumber(o, { unit: "hour" }) : B(o, e.length);
1472
1446
  },
1473
1447
  // Minute
1474
1448
  m: function(t, e, r) {
@@ -1490,7 +1464,7 @@ const Pt = {
1490
1464
  switch (e) {
1491
1465
  // Hours and optional minutes
1492
1466
  case "X":
1493
- return Qe(o);
1467
+ return er(o);
1494
1468
  // Hours, minutes and optional seconds without `:` delimiter
1495
1469
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1496
1470
  // so this token always has the same output as `XX`
@@ -1513,7 +1487,7 @@ const Pt = {
1513
1487
  switch (e) {
1514
1488
  // Hours and optional minutes
1515
1489
  case "x":
1516
- return Qe(o);
1490
+ return er(o);
1517
1491
  // Hours, minutes and optional seconds without `:` delimiter
1518
1492
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1519
1493
  // so this token always has the same output as `xx`
@@ -1538,7 +1512,7 @@ const Pt = {
1538
1512
  case "O":
1539
1513
  case "OO":
1540
1514
  case "OOO":
1541
- return "GMT" + Ue(o, ":");
1515
+ return "GMT" + tr(o, ":");
1542
1516
  // Long
1543
1517
  case "OOOO":
1544
1518
  default:
@@ -1553,7 +1527,7 @@ const Pt = {
1553
1527
  case "z":
1554
1528
  case "zz":
1555
1529
  case "zzz":
1556
- return "GMT" + Ue(o, ":");
1530
+ return "GMT" + tr(o, ":");
1557
1531
  // Long
1558
1532
  case "zzzz":
1559
1533
  default:
@@ -1563,25 +1537,25 @@ const Pt = {
1563
1537
  // Seconds timestamp
1564
1538
  t: function(t, e, r) {
1565
1539
  const o = Math.trunc(+t / 1e3);
1566
- return Y(o, e.length);
1540
+ return B(o, e.length);
1567
1541
  },
1568
1542
  // Milliseconds timestamp
1569
1543
  T: function(t, e, r) {
1570
- return Y(+t, e.length);
1544
+ return B(+t, e.length);
1571
1545
  }
1572
1546
  };
1573
- function Ue(t, e = "") {
1547
+ function tr(t, e = "") {
1574
1548
  const r = t > 0 ? "-" : "+", o = Math.abs(t), i = Math.trunc(o / 60), n = o % 60;
1575
- return n === 0 ? r + String(i) : r + String(i) + e + Y(n, 2);
1549
+ return n === 0 ? r + String(i) : r + String(i) + e + B(n, 2);
1576
1550
  }
1577
- function Qe(t, e) {
1578
- return t % 60 === 0 ? (t > 0 ? "-" : "+") + Y(Math.abs(t) / 60, 2) : Ft(t, e);
1551
+ function er(t, e) {
1552
+ return t % 60 === 0 ? (t > 0 ? "-" : "+") + B(Math.abs(t) / 60, 2) : Ft(t, e);
1579
1553
  }
1580
1554
  function Ft(t, e = "") {
1581
- const r = t > 0 ? "-" : "+", o = Math.abs(t), i = Y(Math.trunc(o / 60), 2), n = Y(o % 60, 2);
1555
+ const r = t > 0 ? "-" : "+", o = Math.abs(t), i = B(Math.trunc(o / 60), 2), n = B(o % 60, 2);
1582
1556
  return r + i + e + n;
1583
1557
  }
1584
- const Ke = (t, e) => {
1558
+ const rr = (t, e) => {
1585
1559
  switch (t) {
1586
1560
  case "P":
1587
1561
  return e.date({ width: "short" });
@@ -1593,7 +1567,7 @@ const Ke = (t, e) => {
1593
1567
  default:
1594
1568
  return e.date({ width: "full" });
1595
1569
  }
1596
- }, Cr = (t, e) => {
1570
+ }, Pr = (t, e) => {
1597
1571
  switch (t) {
1598
1572
  case "p":
1599
1573
  return e.time({ width: "short" });
@@ -1605,10 +1579,10 @@ const Ke = (t, e) => {
1605
1579
  default:
1606
1580
  return e.time({ width: "full" });
1607
1581
  }
1608
- }, Tn = (t, e) => {
1582
+ }, Fa = (t, e) => {
1609
1583
  const r = t.match(/(P+)(p+)?/) || [], o = r[1], i = r[2];
1610
1584
  if (!i)
1611
- return Ke(t, e);
1585
+ return rr(t, e);
1612
1586
  let n;
1613
1587
  switch (o) {
1614
1588
  case "P":
@@ -1625,86 +1599,86 @@ const Ke = (t, e) => {
1625
1599
  n = e.dateTime({ width: "full" });
1626
1600
  break;
1627
1601
  }
1628
- return n.replace("{{date}}", Ke(o, e)).replace("{{time}}", Cr(i, e));
1629
- }, En = {
1630
- p: Cr,
1631
- P: Tn
1632
- }, qn = /^D+$/, _n = /^Y+$/, Pn = ["D", "DD", "YY", "YYYY"];
1633
- function Yn(t) {
1634
- return qn.test(t);
1635
- }
1636
- function Bn(t) {
1637
- return _n.test(t);
1638
- }
1639
- function In(t, e, r) {
1640
- const o = Fn(t, e, r);
1641
- if (console.warn(o), Pn.includes(t)) throw new RangeError(o);
1642
- }
1643
- function Fn(t, e, r) {
1602
+ return n.replace("{{date}}", rr(o, e)).replace("{{time}}", Pr(i, e));
1603
+ }, za = {
1604
+ p: Pr,
1605
+ P: Fa
1606
+ }, Ra = /^D+$/, Aa = /^Y+$/, ja = ["D", "DD", "YY", "YYYY"];
1607
+ function Ha(t) {
1608
+ return Ra.test(t);
1609
+ }
1610
+ function La(t) {
1611
+ return Aa.test(t);
1612
+ }
1613
+ function $a(t, e, r) {
1614
+ const o = Va(t, e, r);
1615
+ if (console.warn(o), ja.includes(t)) throw new RangeError(o);
1616
+ }
1617
+ function Va(t, e, r) {
1644
1618
  const o = t[0] === "Y" ? "years" : "days of the month";
1645
1619
  return `Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${o} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
1646
1620
  }
1647
- const zn = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, An = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Rn = /^'([^]*?)'?$/, jn = /''/g, Hn = /[a-zA-Z]/;
1648
- function Ln(t, e, r) {
1649
- const o = re(), i = r?.locale ?? o.locale ?? Ye, n = r?.firstWeekContainsDate ?? r?.locale?.options?.firstWeekContainsDate ?? o.firstWeekContainsDate ?? o.locale?.options?.firstWeekContainsDate ?? 1, l = r?.weekStartsOn ?? r?.locale?.options?.weekStartsOn ?? o.weekStartsOn ?? o.locale?.options?.weekStartsOn ?? 0, s = I(t, r?.in);
1650
- if (!Ri(s))
1621
+ const Ga = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Za = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ua = /^'([^]*?)'?$/, Xa = /''/g, Qa = /[a-zA-Z]/;
1622
+ function Ka(t, e, r) {
1623
+ const o = re(), i = r?.locale ?? o.locale ?? Ie, n = r?.firstWeekContainsDate ?? r?.locale?.options?.firstWeekContainsDate ?? o.firstWeekContainsDate ?? o.locale?.options?.firstWeekContainsDate ?? 1, l = r?.weekStartsOn ?? r?.locale?.options?.weekStartsOn ?? o.weekStartsOn ?? o.locale?.options?.weekStartsOn ?? 0, s = F(t, r?.in);
1624
+ if (!Xn(s))
1651
1625
  throw new RangeError("Invalid time value");
1652
- let m = e.match(An).map((u) => {
1626
+ let d = e.match(Za).map((u) => {
1653
1627
  const a = u[0];
1654
1628
  if (a === "p" || a === "P") {
1655
- const f = En[a];
1629
+ const f = za[a];
1656
1630
  return f(u, i.formatLong);
1657
1631
  }
1658
1632
  return u;
1659
- }).join("").match(zn).map((u) => {
1633
+ }).join("").match(Ga).map((u) => {
1660
1634
  if (u === "''")
1661
1635
  return { isToken: !1, value: "'" };
1662
1636
  const a = u[0];
1663
1637
  if (a === "'")
1664
- return { isToken: !1, value: $n(u) };
1665
- if (Xe[a])
1638
+ return { isToken: !1, value: Ja(u) };
1639
+ if (Je[a])
1666
1640
  return { isToken: !0, value: u };
1667
- if (a.match(Hn))
1641
+ if (a.match(Qa))
1668
1642
  throw new RangeError(
1669
1643
  "Format string contains an unescaped latin alphabet character `" + a + "`"
1670
1644
  );
1671
1645
  return { isToken: !1, value: u };
1672
1646
  });
1673
- i.localize.preprocessor && (m = i.localize.preprocessor(s, m));
1647
+ i.localize.preprocessor && (d = i.localize.preprocessor(s, d));
1674
1648
  const p = {
1675
1649
  firstWeekContainsDate: n,
1676
1650
  weekStartsOn: l,
1677
1651
  locale: i
1678
1652
  };
1679
- return m.map((u) => {
1653
+ return d.map((u) => {
1680
1654
  if (!u.isToken) return u.value;
1681
1655
  const a = u.value;
1682
- (!r?.useAdditionalWeekYearTokens && Bn(a) || !r?.useAdditionalDayOfYearTokens && Yn(a)) && In(a, e, String(t));
1683
- const f = Xe[a[0]];
1656
+ (!r?.useAdditionalWeekYearTokens && La(a) || !r?.useAdditionalDayOfYearTokens && Ha(a)) && $a(a, e, String(t));
1657
+ const f = Je[a[0]];
1684
1658
  return f(s, a, i.localize, p);
1685
1659
  }).join("");
1686
1660
  }
1687
- function $n(t) {
1688
- const e = t.match(Rn);
1689
- return e ? e[1].replace(jn, "'") : t;
1661
+ function Ja(t) {
1662
+ const e = t.match(Ua);
1663
+ return e ? e[1].replace(Xa, "'") : t;
1690
1664
  }
1691
- function Vn(t, e) {
1692
- const r = I(t, e?.in), o = r.getFullYear(), i = r.getMonth(), n = X(r, 0);
1665
+ function ts(t, e) {
1666
+ const r = F(t, e?.in), o = r.getFullYear(), i = r.getMonth(), n = U(r, 0);
1693
1667
  return n.setFullYear(o, i + 1, 0), n.setHours(0, 0, 0, 0), n.getDate();
1694
1668
  }
1695
- function Gn(t, e) {
1696
- return I(t, e?.in).getMonth();
1669
+ function es(t, e) {
1670
+ return F(t, e?.in).getMonth();
1697
1671
  }
1698
- function Zn(t, e) {
1699
- return I(t, e?.in).getFullYear();
1672
+ function rs(t, e) {
1673
+ return F(t, e?.in).getFullYear();
1700
1674
  }
1701
- function Xn(t, e) {
1702
- return +I(t) > +I(e);
1675
+ function os(t, e) {
1676
+ return +F(t) > +F(e);
1703
1677
  }
1704
- function Un(t, e) {
1705
- return +I(t) < +I(e);
1678
+ function is(t, e) {
1679
+ return +F(t) < +F(e);
1706
1680
  }
1707
- function Qn(t, e, r) {
1681
+ function ns(t, e, r) {
1708
1682
  const [o, i] = Vt(
1709
1683
  r?.in,
1710
1684
  t,
@@ -1712,7 +1686,7 @@ function Qn(t, e, r) {
1712
1686
  );
1713
1687
  return o.getFullYear() === i.getFullYear() && o.getMonth() === i.getMonth();
1714
1688
  }
1715
- function Kn(t, e, r) {
1689
+ function as(t, e, r) {
1716
1690
  const [o, i] = Vt(
1717
1691
  r?.in,
1718
1692
  t,
@@ -1720,27 +1694,27 @@ function Kn(t, e, r) {
1720
1694
  );
1721
1695
  return o.getFullYear() === i.getFullYear();
1722
1696
  }
1723
- function Jn(t, e, r) {
1724
- const o = I(t, r?.in), i = o.getFullYear(), n = o.getDate(), l = X(t, 0);
1697
+ function ss(t, e, r) {
1698
+ const o = F(t, r?.in), i = o.getFullYear(), n = o.getDate(), l = U(t, 0);
1725
1699
  l.setFullYear(i, e, 15), l.setHours(0, 0, 0, 0);
1726
- const s = Vn(l);
1700
+ const s = ts(l);
1727
1701
  return o.setMonth(e, Math.min(n, s)), o;
1728
1702
  }
1729
- function ta(t, e, r) {
1730
- const o = I(t, r?.in);
1731
- return isNaN(+o) ? X(t, NaN) : (o.setFullYear(e), o);
1703
+ function ls(t, e, r) {
1704
+ const o = F(t, r?.in);
1705
+ return isNaN(+o) ? U(t, NaN) : (o.setFullYear(e), o);
1732
1706
  }
1733
- const Je = 5, ea = 4;
1734
- function ra(t, e) {
1735
- const r = e.startOfMonth(t), o = r.getDay() > 0 ? r.getDay() : 7, i = e.addDays(t, -o + 1), n = e.addDays(i, Je * 7 - 1);
1736
- return e.getMonth(t) === e.getMonth(n) ? Je : ea;
1707
+ const or = 5, cs = 4;
1708
+ function ms(t, e) {
1709
+ const r = e.startOfMonth(t), o = r.getDay() > 0 ? r.getDay() : 7, i = e.addDays(t, -o + 1), n = e.addDays(i, or * 7 - 1);
1710
+ return e.getMonth(t) === e.getMonth(n) ? or : cs;
1737
1711
  }
1738
- function Sr(t, e) {
1712
+ function Yr(t, e) {
1739
1713
  const r = e.startOfMonth(t), o = r.getDay();
1740
1714
  return o === 1 ? r : o === 0 ? e.addDays(r, -6) : e.addDays(r, -1 * (o - 1));
1741
1715
  }
1742
- function oa(t, e) {
1743
- const r = Sr(t, e), o = ra(t, e);
1716
+ function ds(t, e) {
1717
+ const r = Yr(t, e), o = ms(t, e);
1744
1718
  return e.addDays(r, o * 7 - 1);
1745
1719
  }
1746
1720
  class mt {
@@ -1751,18 +1725,18 @@ class mt {
1751
1725
  * @param overrides Custom overrides for the date library functions.
1752
1726
  */
1753
1727
  constructor(e, r) {
1754
- this.Date = Date, this.today = () => this.overrides?.today ? this.overrides.today() : this.options.timeZone ? nt.tz(this.options.timeZone) : new this.Date(), this.newDate = (o, i, n) => this.overrides?.newDate ? this.overrides.newDate(o, i, n) : this.options.timeZone ? new nt(o, i, n, this.options.timeZone) : new Date(o, i, n), this.addDays = (o, i) => this.overrides?.addDays ? this.overrides.addDays(o, i) : hr(o, i), this.addMonths = (o, i) => this.overrides?.addMonths ? this.overrides.addMonths(o, i) : gr(o, i), this.addWeeks = (o, i) => this.overrides?.addWeeks ? this.overrides.addWeeks(o, i) : Bi(o, i), this.addYears = (o, i) => this.overrides?.addYears ? this.overrides.addYears(o, i) : Ii(o, i), this.differenceInCalendarDays = (o, i) => this.overrides?.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(o, i) : yr(o, i), this.differenceInCalendarMonths = (o, i) => this.overrides?.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(o, i) : ji(o, i), this.eachMonthOfInterval = (o) => this.overrides?.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(o) : Li(o), this.eachYearOfInterval = (o) => {
1755
- const i = this.overrides?.eachYearOfInterval ? this.overrides.eachYearOfInterval(o) : Gi(o), n = new Set(i.map((s) => this.getYear(s)));
1728
+ this.Date = Date, this.today = () => this.overrides?.today ? this.overrides.today() : this.options.timeZone ? nt.tz(this.options.timeZone) : new this.Date(), this.newDate = (o, i, n) => this.overrides?.newDate ? this.overrides.newDate(o, i, n) : this.options.timeZone ? new nt(o, i, n, this.options.timeZone) : new Date(o, i, n), this.addDays = (o, i) => this.overrides?.addDays ? this.overrides.addDays(o, i) : Mr(o, i), this.addMonths = (o, i) => this.overrides?.addMonths ? this.overrides.addMonths(o, i) : Dr(o, i), this.addWeeks = (o, i) => this.overrides?.addWeeks ? this.overrides.addWeeks(o, i) : $n(o, i), this.addYears = (o, i) => this.overrides?.addYears ? this.overrides.addYears(o, i) : Vn(o, i), this.differenceInCalendarDays = (o, i) => this.overrides?.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(o, i) : Or(o, i), this.differenceInCalendarMonths = (o, i) => this.overrides?.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(o, i) : Qn(o, i), this.eachMonthOfInterval = (o) => this.overrides?.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(o) : Jn(o), this.eachYearOfInterval = (o) => {
1729
+ const i = this.overrides?.eachYearOfInterval ? this.overrides.eachYearOfInterval(o) : ra(o), n = new Set(i.map((s) => this.getYear(s)));
1756
1730
  if (n.size === i.length)
1757
1731
  return i;
1758
1732
  const l = [];
1759
1733
  return n.forEach((s) => {
1760
1734
  l.push(new Date(s, 0, 1));
1761
1735
  }), l;
1762
- }, this.endOfBroadcastWeek = (o) => this.overrides?.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(o) : oa(o, this), this.endOfISOWeek = (o) => this.overrides?.endOfISOWeek ? this.overrides.endOfISOWeek(o) : Zi(o), this.endOfMonth = (o) => this.overrides?.endOfMonth ? this.overrides.endOfMonth(o) : Hi(o), this.endOfWeek = (o, i) => this.overrides?.endOfWeek ? this.overrides.endOfWeek(o, i) : xr(o, this.options), this.endOfYear = (o) => this.overrides?.endOfYear ? this.overrides.endOfYear(o) : Vi(o), this.format = (o, i, n) => {
1763
- const l = this.overrides?.format ? this.overrides.format(o, i, this.options) : Ln(o, i, this.options);
1736
+ }, this.endOfBroadcastWeek = (o) => this.overrides?.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(o) : ds(o, this), this.endOfISOWeek = (o) => this.overrides?.endOfISOWeek ? this.overrides.endOfISOWeek(o) : oa(o), this.endOfMonth = (o) => this.overrides?.endOfMonth ? this.overrides.endOfMonth(o) : Kn(o), this.endOfWeek = (o, i) => this.overrides?.endOfWeek ? this.overrides.endOfWeek(o, i) : Wr(o, this.options), this.endOfYear = (o) => this.overrides?.endOfYear ? this.overrides.endOfYear(o) : ea(o), this.format = (o, i, n) => {
1737
+ const l = this.overrides?.format ? this.overrides.format(o, i, this.options) : Ka(o, i, this.options);
1764
1738
  return this.options.numerals && this.options.numerals !== "latn" ? this.replaceDigits(l) : l;
1765
- }, this.getISOWeek = (o) => this.overrides?.getISOWeek ? this.overrides.getISOWeek(o) : Mr(o), this.getMonth = (o, i) => this.overrides?.getMonth ? this.overrides.getMonth(o, this.options) : Gn(o, this.options), this.getYear = (o, i) => this.overrides?.getYear ? this.overrides.getYear(o, this.options) : Zn(o, this.options), this.getWeek = (o, i) => this.overrides?.getWeek ? this.overrides.getWeek(o, this.options) : Or(o, this.options), this.isAfter = (o, i) => this.overrides?.isAfter ? this.overrides.isAfter(o, i) : Xn(o, i), this.isBefore = (o, i) => this.overrides?.isBefore ? this.overrides.isBefore(o, i) : Un(o, i), this.isDate = (o) => this.overrides?.isDate ? this.overrides.isDate(o) : wr(o), this.isSameDay = (o, i) => this.overrides?.isSameDay ? this.overrides.isSameDay(o, i) : Ai(o, i), this.isSameMonth = (o, i) => this.overrides?.isSameMonth ? this.overrides.isSameMonth(o, i) : Qn(o, i), this.isSameYear = (o, i) => this.overrides?.isSameYear ? this.overrides.isSameYear(o, i) : Kn(o, i), this.max = (o) => this.overrides?.max ? this.overrides.max(o) : Fi(o), this.min = (o) => this.overrides?.min ? this.overrides.min(o) : zi(o), this.setMonth = (o, i) => this.overrides?.setMonth ? this.overrides.setMonth(o, i) : Jn(o, i), this.setYear = (o, i) => this.overrides?.setYear ? this.overrides.setYear(o, i) : ta(o, i), this.startOfBroadcastWeek = (o, i) => this.overrides?.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(o, this) : Sr(o, this), this.startOfDay = (o) => this.overrides?.startOfDay ? this.overrides.startOfDay(o) : ee(o), this.startOfISOWeek = (o) => this.overrides?.startOfISOWeek ? this.overrides.startOfISOWeek(o) : te(o), this.startOfMonth = (o) => this.overrides?.startOfMonth ? this.overrides.startOfMonth(o) : $i(o), this.startOfWeek = (o, i) => this.overrides?.startOfWeek ? this.overrides.startOfWeek(o, this.options) : $t(o, this.options), this.startOfYear = (o) => this.overrides?.startOfYear ? this.overrides.startOfYear(o) : kr(o), this.options = { locale: Ye, ...e }, this.overrides = r;
1739
+ }, this.getISOWeek = (o) => this.overrides?.getISOWeek ? this.overrides.getISOWeek(o) : Er(o), this.getMonth = (o, i) => this.overrides?.getMonth ? this.overrides.getMonth(o, this.options) : es(o, this.options), this.getYear = (o, i) => this.overrides?.getYear ? this.overrides.getYear(o, this.options) : rs(o, this.options), this.getWeek = (o, i) => this.overrides?.getWeek ? this.overrides.getWeek(o, this.options) : qr(o, this.options), this.isAfter = (o, i) => this.overrides?.isAfter ? this.overrides.isAfter(o, i) : os(o, i), this.isBefore = (o, i) => this.overrides?.isBefore ? this.overrides.isBefore(o, i) : is(o, i), this.isDate = (o) => this.overrides?.isDate ? this.overrides.isDate(o) : Sr(o), this.isSameDay = (o, i) => this.overrides?.isSameDay ? this.overrides.isSameDay(o, i) : Un(o, i), this.isSameMonth = (o, i) => this.overrides?.isSameMonth ? this.overrides.isSameMonth(o, i) : ns(o, i), this.isSameYear = (o, i) => this.overrides?.isSameYear ? this.overrides.isSameYear(o, i) : as(o, i), this.max = (o) => this.overrides?.max ? this.overrides.max(o) : Gn(o), this.min = (o) => this.overrides?.min ? this.overrides.min(o) : Zn(o), this.setMonth = (o, i) => this.overrides?.setMonth ? this.overrides.setMonth(o, i) : ss(o, i), this.setYear = (o, i) => this.overrides?.setYear ? this.overrides.setYear(o, i) : ls(o, i), this.startOfBroadcastWeek = (o, i) => this.overrides?.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(o, this) : Yr(o, this), this.startOfDay = (o) => this.overrides?.startOfDay ? this.overrides.startOfDay(o) : ee(o), this.startOfISOWeek = (o) => this.overrides?.startOfISOWeek ? this.overrides.startOfISOWeek(o) : te(o), this.startOfMonth = (o) => this.overrides?.startOfMonth ? this.overrides.startOfMonth(o) : ta(o), this.startOfWeek = (o, i) => this.overrides?.startOfWeek ? this.overrides.startOfWeek(o, this.options) : $t(o, this.options), this.startOfYear = (o) => this.overrides?.startOfYear ? this.overrides.startOfYear(o) : Tr(o), this.options = { locale: Ie, ...e }, this.overrides = r;
1766
1740
  }
1767
1741
  /**
1768
1742
  * Generates a mapping of Arabic digits (0-9) to the target numbering system
@@ -1848,9 +1822,9 @@ mt.yearFirstLocales = /* @__PURE__ */ new Set([
1848
1822
  "zh-HK",
1849
1823
  "zh-TW"
1850
1824
  ]);
1851
- const Ot = new mt();
1852
- class Nr {
1853
- constructor(e, r, o = Ot) {
1825
+ const Ct = new mt();
1826
+ class Br {
1827
+ constructor(e, r, o = Ct) {
1854
1828
  this.date = e, this.displayMonth = r, this.outside = !!(r && !o.isSameMonth(e, r)), this.dateLib = o;
1855
1829
  }
1856
1830
  /**
@@ -1864,23 +1838,23 @@ class Nr {
1864
1838
  return this.dateLib.isSameDay(e.date, this.date) && this.dateLib.isSameMonth(e.displayMonth, this.displayMonth);
1865
1839
  }
1866
1840
  }
1867
- class ia {
1841
+ class ps {
1868
1842
  constructor(e, r) {
1869
1843
  this.date = e, this.weeks = r;
1870
1844
  }
1871
1845
  }
1872
- class na {
1846
+ class us {
1873
1847
  constructor(e, r) {
1874
1848
  this.days = r, this.weekNumber = e;
1875
1849
  }
1876
1850
  }
1877
- function aa(t) {
1851
+ function fs(t) {
1878
1852
  return c.createElement("button", { ...t });
1879
1853
  }
1880
- function sa(t) {
1854
+ function hs(t) {
1881
1855
  return c.createElement("span", { ...t });
1882
1856
  }
1883
- function la(t) {
1857
+ function gs(t) {
1884
1858
  const { size: e = 24, orientation: r = "left", className: o } = t;
1885
1859
  return (
1886
1860
  // biome-ignore lint/a11y/noSvgWithoutTitle: handled by the parent component
@@ -1894,20 +1868,20 @@ function la(t) {
1894
1868
  )
1895
1869
  );
1896
1870
  }
1897
- function ca(t) {
1871
+ function bs(t) {
1898
1872
  const { day: e, modifiers: r, ...o } = t;
1899
1873
  return c.createElement("td", { ...o });
1900
1874
  }
1901
- function ma(t) {
1875
+ function ys(t) {
1902
1876
  const { day: e, modifiers: r, ...o } = t, i = c.useRef(null);
1903
1877
  return c.useEffect(() => {
1904
1878
  r.focused && i.current?.focus();
1905
1879
  }, [r.focused]), c.createElement("button", { ref: i, ...o });
1906
1880
  }
1907
- var b;
1881
+ var y;
1908
1882
  (function(t) {
1909
1883
  t.Root = "root", t.Chevron = "chevron", t.Day = "day", t.DayButton = "day_button", t.CaptionLabel = "caption_label", t.Dropdowns = "dropdowns", t.Dropdown = "dropdown", t.DropdownRoot = "dropdown_root", t.Footer = "footer", t.MonthGrid = "month_grid", t.MonthCaption = "month_caption", t.MonthsDropdown = "months_dropdown", t.Month = "month", t.Months = "months", t.Nav = "nav", t.NextMonthButton = "button_next", t.PreviousMonthButton = "button_previous", t.Week = "week", t.Weeks = "weeks", t.Weekday = "weekday", t.Weekdays = "weekdays", t.WeekNumber = "week_number", t.WeekNumberHeader = "week_number_header", t.YearsDropdown = "years_dropdown";
1910
- })(b || (b = {}));
1884
+ })(y || (y = {}));
1911
1885
  var j;
1912
1886
  (function(t) {
1913
1887
  t.disabled = "disabled", t.hidden = "hidden", t.outside = "outside", t.focused = "focused", t.today = "today";
@@ -1920,53 +1894,53 @@ var ct;
1920
1894
  (function(t) {
1921
1895
  t.weeks_before_enter = "weeks_before_enter", t.weeks_before_exit = "weeks_before_exit", t.weeks_after_enter = "weeks_after_enter", t.weeks_after_exit = "weeks_after_exit", t.caption_after_enter = "caption_after_enter", t.caption_after_exit = "caption_after_exit", t.caption_before_enter = "caption_before_enter", t.caption_before_exit = "caption_before_exit";
1922
1896
  })(ct || (ct = {}));
1923
- function pa(t) {
1924
- const { options: e, className: r, components: o, classNames: i, ...n } = t, l = [i[b.Dropdown], r].join(" "), s = e?.find(({ value: m }) => m === n.value);
1897
+ function ws(t) {
1898
+ const { options: e, className: r, components: o, classNames: i, ...n } = t, l = [i[y.Dropdown], r].join(" "), s = e?.find(({ value: d }) => d === n.value);
1925
1899
  return c.createElement(
1926
1900
  "span",
1927
- { "data-disabled": n.disabled, className: i[b.DropdownRoot] },
1928
- c.createElement(o.Select, { className: l, ...n }, e?.map(({ value: m, label: p, disabled: u }) => c.createElement(o.Option, { key: m, value: m, disabled: u }, p))),
1901
+ { "data-disabled": n.disabled, className: i[y.DropdownRoot] },
1902
+ c.createElement(o.Select, { className: l, ...n }, e?.map(({ value: d, label: p, disabled: u }) => c.createElement(o.Option, { key: d, value: d, disabled: u }, p))),
1929
1903
  c.createElement(
1930
1904
  "span",
1931
- { className: i[b.CaptionLabel], "aria-hidden": !0 },
1905
+ { className: i[y.CaptionLabel], "aria-hidden": !0 },
1932
1906
  s?.label,
1933
- c.createElement(o.Chevron, { orientation: "down", size: 18, className: i[b.Chevron] })
1907
+ c.createElement(o.Chevron, { orientation: "down", size: 18, className: i[y.Chevron] })
1934
1908
  )
1935
1909
  );
1936
1910
  }
1937
- function da(t) {
1911
+ function vs(t) {
1938
1912
  return c.createElement("div", { ...t });
1939
1913
  }
1940
- function ua(t) {
1914
+ function ks(t) {
1941
1915
  return c.createElement("div", { ...t });
1942
1916
  }
1943
- function fa(t) {
1917
+ function xs(t) {
1944
1918
  const { calendarMonth: e, displayIndex: r, ...o } = t;
1945
1919
  return c.createElement("div", { ...o }, t.children);
1946
1920
  }
1947
- function ha(t) {
1921
+ function Ms(t) {
1948
1922
  const { calendarMonth: e, displayIndex: r, ...o } = t;
1949
1923
  return c.createElement("div", { ...o });
1950
1924
  }
1951
- function ga(t) {
1925
+ function Ds(t) {
1952
1926
  return c.createElement("table", { ...t });
1953
1927
  }
1954
- function ba(t) {
1928
+ function Cs(t) {
1955
1929
  return c.createElement("div", { ...t });
1956
1930
  }
1957
- const Wr = Do(void 0);
1931
+ const Ir = ro(void 0);
1958
1932
  function oe() {
1959
- const t = Oo(Wr);
1933
+ const t = oo(Ir);
1960
1934
  if (t === void 0)
1961
1935
  throw new Error("useDayPicker() must be used within a custom component.");
1962
1936
  return t;
1963
1937
  }
1964
- function ya(t) {
1938
+ function Os(t) {
1965
1939
  const { components: e } = oe();
1966
1940
  return c.createElement(e.Dropdown, { ...t });
1967
1941
  }
1968
- function wa(t) {
1969
- const { onPreviousClick: e, onNextClick: r, previousMonth: o, nextMonth: i, ...n } = t, { components: l, classNames: s, labels: { labelPrevious: m, labelNext: p } } = oe(), u = ut((f) => {
1942
+ function Ss(t) {
1943
+ const { onPreviousClick: e, onNextClick: r, previousMonth: o, nextMonth: i, ...n } = t, { components: l, classNames: s, labels: { labelPrevious: d, labelNext: p } } = oe(), u = ut((f) => {
1970
1944
  i && r?.(f);
1971
1945
  }, [i, r]), a = ut((f) => {
1972
1946
  o && e?.(f);
@@ -1976,136 +1950,136 @@ function wa(t) {
1976
1950
  { ...n },
1977
1951
  c.createElement(
1978
1952
  l.PreviousMonthButton,
1979
- { type: "button", className: s[b.PreviousMonthButton], tabIndex: o ? void 0 : -1, "aria-disabled": o ? void 0 : !0, "aria-label": m(o), onClick: a },
1980
- c.createElement(l.Chevron, { disabled: o ? void 0 : !0, className: s[b.Chevron], orientation: "left" })
1953
+ { type: "button", className: s[y.PreviousMonthButton], tabIndex: o ? void 0 : -1, "aria-disabled": o ? void 0 : !0, "aria-label": d(o), onClick: a },
1954
+ c.createElement(l.Chevron, { disabled: o ? void 0 : !0, className: s[y.Chevron], orientation: "left" })
1981
1955
  ),
1982
1956
  c.createElement(
1983
1957
  l.NextMonthButton,
1984
- { type: "button", className: s[b.NextMonthButton], tabIndex: i ? void 0 : -1, "aria-disabled": i ? void 0 : !0, "aria-label": p(i), onClick: u },
1985
- c.createElement(l.Chevron, { disabled: i ? void 0 : !0, orientation: "right", className: s[b.Chevron] })
1958
+ { type: "button", className: s[y.NextMonthButton], tabIndex: i ? void 0 : -1, "aria-disabled": i ? void 0 : !0, "aria-label": p(i), onClick: u },
1959
+ c.createElement(l.Chevron, { disabled: i ? void 0 : !0, orientation: "right", className: s[y.Chevron] })
1986
1960
  )
1987
1961
  );
1988
1962
  }
1989
- function va(t) {
1963
+ function Ns(t) {
1990
1964
  const { components: e } = oe();
1991
1965
  return c.createElement(e.Button, { ...t });
1992
1966
  }
1993
- function ka(t) {
1967
+ function Ts(t) {
1994
1968
  return c.createElement("option", { ...t });
1995
1969
  }
1996
- function xa(t) {
1970
+ function Ws(t) {
1997
1971
  const { components: e } = oe();
1998
1972
  return c.createElement(e.Button, { ...t });
1999
1973
  }
2000
- function Ma(t) {
1974
+ function Es(t) {
2001
1975
  const { rootRef: e, ...r } = t;
2002
1976
  return c.createElement("div", { ...r, ref: e });
2003
1977
  }
2004
- function Da(t) {
1978
+ function _s(t) {
2005
1979
  return c.createElement("select", { ...t });
2006
1980
  }
2007
- function Oa(t) {
1981
+ function qs(t) {
2008
1982
  const { week: e, ...r } = t;
2009
1983
  return c.createElement("tr", { ...r });
2010
1984
  }
2011
- function Ca(t) {
1985
+ function Ps(t) {
2012
1986
  return c.createElement("th", { ...t });
2013
1987
  }
2014
- function Sa(t) {
1988
+ function Ys(t) {
2015
1989
  return c.createElement(
2016
1990
  "thead",
2017
1991
  { "aria-hidden": !0 },
2018
1992
  c.createElement("tr", { ...t })
2019
1993
  );
2020
1994
  }
2021
- function Na(t) {
1995
+ function Bs(t) {
2022
1996
  const { week: e, ...r } = t;
2023
1997
  return c.createElement("th", { ...r });
2024
1998
  }
2025
- function Wa(t) {
1999
+ function Is(t) {
2026
2000
  return c.createElement("th", { ...t });
2027
2001
  }
2028
- function Ta(t) {
2002
+ function Fs(t) {
2029
2003
  return c.createElement("tbody", { ...t });
2030
2004
  }
2031
- function Ea(t) {
2005
+ function zs(t) {
2032
2006
  const { components: e } = oe();
2033
2007
  return c.createElement(e.Dropdown, { ...t });
2034
2008
  }
2035
- const qa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2009
+ const Rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2036
2010
  __proto__: null,
2037
- Button: aa,
2038
- CaptionLabel: sa,
2039
- Chevron: la,
2040
- Day: ca,
2041
- DayButton: ma,
2042
- Dropdown: pa,
2043
- DropdownNav: da,
2044
- Footer: ua,
2045
- Month: fa,
2046
- MonthCaption: ha,
2047
- MonthGrid: ga,
2048
- Months: ba,
2049
- MonthsDropdown: ya,
2050
- Nav: wa,
2051
- NextMonthButton: va,
2052
- Option: ka,
2053
- PreviousMonthButton: xa,
2054
- Root: Ma,
2055
- Select: Da,
2056
- Week: Oa,
2057
- WeekNumber: Na,
2058
- WeekNumberHeader: Wa,
2059
- Weekday: Ca,
2060
- Weekdays: Sa,
2061
- Weeks: Ta,
2062
- YearsDropdown: Ea
2011
+ Button: fs,
2012
+ CaptionLabel: hs,
2013
+ Chevron: gs,
2014
+ Day: bs,
2015
+ DayButton: ys,
2016
+ Dropdown: ws,
2017
+ DropdownNav: vs,
2018
+ Footer: ks,
2019
+ Month: xs,
2020
+ MonthCaption: Ms,
2021
+ MonthGrid: Ds,
2022
+ Months: Cs,
2023
+ MonthsDropdown: Os,
2024
+ Nav: Ss,
2025
+ NextMonthButton: Ns,
2026
+ Option: Ts,
2027
+ PreviousMonthButton: Ws,
2028
+ Root: Es,
2029
+ Select: _s,
2030
+ Week: qs,
2031
+ WeekNumber: Bs,
2032
+ WeekNumberHeader: Is,
2033
+ Weekday: Ps,
2034
+ Weekdays: Ys,
2035
+ Weeks: Fs,
2036
+ YearsDropdown: zs
2063
2037
  }, Symbol.toStringTag, { value: "Module" }));
2064
- function Ct(t, e, r = !1, o = Ot) {
2038
+ function Ot(t, e, r = !1, o = Ct) {
2065
2039
  let { from: i, to: n } = t;
2066
2040
  const { differenceInCalendarDays: l, isSameDay: s } = o;
2067
2041
  return i && n ? (l(n, i) < 0 && ([i, n] = [n, i]), l(e, i) >= (r ? 1 : 0) && l(n, e) >= (r ? 1 : 0)) : !r && n ? s(n, e) : !r && i ? s(i, e) : !1;
2068
2042
  }
2069
- function Tr(t) {
2043
+ function Fr(t) {
2070
2044
  return !!(t && typeof t == "object" && "before" in t && "after" in t);
2071
2045
  }
2072
- function Be(t) {
2046
+ function Fe(t) {
2073
2047
  return !!(t && typeof t == "object" && "from" in t);
2074
2048
  }
2075
- function Er(t) {
2049
+ function zr(t) {
2076
2050
  return !!(t && typeof t == "object" && "after" in t);
2077
2051
  }
2078
- function qr(t) {
2052
+ function Rr(t) {
2079
2053
  return !!(t && typeof t == "object" && "before" in t);
2080
2054
  }
2081
- function _r(t) {
2055
+ function Ar(t) {
2082
2056
  return !!(t && typeof t == "object" && "dayOfWeek" in t);
2083
2057
  }
2084
- function Pr(t, e) {
2058
+ function jr(t, e) {
2085
2059
  return Array.isArray(t) && t.every(e.isDate);
2086
2060
  }
2087
- function St(t, e, r = Ot) {
2061
+ function St(t, e, r = Ct) {
2088
2062
  const o = Array.isArray(e) ? e : [e], { isSameDay: i, differenceInCalendarDays: n, isAfter: l } = r;
2089
2063
  return o.some((s) => {
2090
2064
  if (typeof s == "boolean")
2091
2065
  return s;
2092
2066
  if (r.isDate(s))
2093
2067
  return i(t, s);
2094
- if (Pr(s, r))
2068
+ if (jr(s, r))
2095
2069
  return s.includes(t);
2096
- if (Be(s))
2097
- return Ct(s, t, !1, r);
2098
- if (_r(s))
2070
+ if (Fe(s))
2071
+ return Ot(s, t, !1, r);
2072
+ if (Ar(s))
2099
2073
  return Array.isArray(s.dayOfWeek) ? s.dayOfWeek.includes(t.getDay()) : s.dayOfWeek === t.getDay();
2100
- if (Tr(s)) {
2101
- const m = n(s.before, t), p = n(s.after, t), u = m > 0, a = p < 0;
2074
+ if (Fr(s)) {
2075
+ const d = n(s.before, t), p = n(s.after, t), u = d > 0, a = p < 0;
2102
2076
  return l(s.before, s.after) ? a && u : u || a;
2103
2077
  }
2104
- return Er(s) ? n(t, s.after) > 0 : qr(s) ? n(s.before, t) > 0 : typeof s == "function" ? s(t) : !1;
2078
+ return zr(s) ? n(t, s.after) > 0 : Rr(s) ? n(s.before, t) > 0 : typeof s == "function" ? s(t) : !1;
2105
2079
  });
2106
2080
  }
2107
- function _a(t, e, r, o, i) {
2108
- const { disabled: n, hidden: l, modifiers: s, showOutsideDays: m, broadcastCalendar: p, today: u } = e, { isSameDay: a, isSameMonth: f, startOfMonth: y, isBefore: w, endOfMonth: W, isAfter: x } = i, h = r && y(r), T = o && W(o), v = {
2081
+ function As(t, e, r, o, i) {
2082
+ const { disabled: n, hidden: l, modifiers: s, showOutsideDays: d, broadcastCalendar: p, today: u } = e, { isSameDay: a, isSameMonth: f, startOfMonth: b, isBefore: w, endOfMonth: N, isAfter: x } = i, h = r && b(r), W = o && N(o), v = {
2109
2083
  [j.focused]: [],
2110
2084
  [j.outside]: [],
2111
2085
  [j.disabled]: [],
@@ -2113,11 +2087,11 @@ function _a(t, e, r, o, i) {
2113
2087
  [j.today]: []
2114
2088
  }, _ = {};
2115
2089
  for (const g of t) {
2116
- const { date: k, displayMonth: M } = g, S = !!(M && !f(k, M)), $ = !!(h && w(k, h)), V = !!(T && x(k, T)), U = !!(n && St(k, n, i)), J = !!(l && St(k, l, i)) || $ || V || // Broadcast calendar will show outside days as default
2117
- !p && !m && S || p && m === !1 && S, tt = a(k, u ?? i.today());
2118
- S && v.outside.push(g), U && v.disabled.push(g), J && v.hidden.push(g), tt && v.today.push(g), s && Object.keys(s).forEach((ft) => {
2119
- const pt = s?.[ft];
2120
- pt && St(k, pt, i) && (_[ft] ? _[ft].push(g) : _[ft] = [g]);
2090
+ const { date: k, displayMonth: M } = g, T = !!(M && !f(k, M)), $ = !!(h && w(k, h)), V = !!(W && x(k, W)), X = !!(n && St(k, n, i)), J = !!(l && St(k, l, i)) || $ || V || // Broadcast calendar will show outside days as default
2091
+ !p && !d && T || p && d === !1 && T, tt = a(k, u ?? i.today());
2092
+ T && v.outside.push(g), X && v.disabled.push(g), J && v.hidden.push(g), tt && v.today.push(g), s && Object.keys(s).forEach((ft) => {
2093
+ const dt = s?.[ft];
2094
+ dt && St(k, dt, i) && (_[ft] ? _[ft].push(g) : _[ft] = [g]);
2121
2095
  });
2122
2096
  }
2123
2097
  return (g) => {
@@ -2128,12 +2102,12 @@ function _a(t, e, r, o, i) {
2128
2102
  [j.outside]: !1,
2129
2103
  [j.today]: !1
2130
2104
  }, M = {};
2131
- for (const S in v) {
2132
- const $ = v[S];
2133
- k[S] = $.some((V) => V === g);
2105
+ for (const T in v) {
2106
+ const $ = v[T];
2107
+ k[T] = $.some((V) => V === g);
2134
2108
  }
2135
- for (const S in _)
2136
- M[S] = _[S].some(($) => $ === g);
2109
+ for (const T in _)
2110
+ M[T] = _[T].some(($) => $ === g);
2137
2111
  return {
2138
2112
  ...k,
2139
2113
  // custom modifiers should override all the previous ones
@@ -2141,16 +2115,16 @@ function _a(t, e, r, o, i) {
2141
2115
  };
2142
2116
  };
2143
2117
  }
2144
- function Pa(t, e, r = {}) {
2145
- return Object.entries(t).filter(([, i]) => i === !0).reduce((i, [n]) => (r[n] ? i.push(r[n]) : e[j[n]] ? i.push(e[j[n]]) : e[vt[n]] && i.push(e[vt[n]]), i), [e[b.Day]]);
2118
+ function js(t, e, r = {}) {
2119
+ return Object.entries(t).filter(([, i]) => i === !0).reduce((i, [n]) => (r[n] ? i.push(r[n]) : e[j[n]] ? i.push(e[j[n]]) : e[vt[n]] && i.push(e[vt[n]]), i), [e[y.Day]]);
2146
2120
  }
2147
- function Ya(t) {
2121
+ function Hs(t) {
2148
2122
  return {
2149
- ...qa,
2123
+ ...Rs,
2150
2124
  ...t
2151
2125
  };
2152
2126
  }
2153
- function Ba(t) {
2127
+ function Ls(t) {
2154
2128
  const e = {
2155
2129
  "data-mode": t.mode ?? void 0,
2156
2130
  "data-required": "required" in t ? t.required : void 0,
@@ -2163,10 +2137,10 @@ function Ba(t) {
2163
2137
  r.startsWith("data-") && (e[r] = o);
2164
2138
  }), e;
2165
2139
  }
2166
- function Ia() {
2140
+ function $s() {
2167
2141
  const t = {};
2168
- for (const e in b)
2169
- t[b[e]] = `rdp-${b[e]}`;
2142
+ for (const e in y)
2143
+ t[y[e]] = `rdp-${y[e]}`;
2170
2144
  for (const e in j)
2171
2145
  t[j[e]] = `rdp-${j[e]}`;
2172
2146
  for (const e in vt)
@@ -2175,58 +2149,58 @@ function Ia() {
2175
2149
  t[ct[e]] = `rdp-${ct[e]}`;
2176
2150
  return t;
2177
2151
  }
2178
- function Yr(t, e, r) {
2152
+ function Hr(t, e, r) {
2179
2153
  return (r ?? new mt(e)).formatMonthYear(t);
2180
2154
  }
2181
- const Fa = Yr;
2182
- function za(t, e, r) {
2155
+ const Vs = Hr;
2156
+ function Gs(t, e, r) {
2183
2157
  return (r ?? new mt(e)).format(t, "d");
2184
2158
  }
2185
- function Aa(t, e = Ot) {
2159
+ function Zs(t, e = Ct) {
2186
2160
  return e.format(t, "LLLL");
2187
2161
  }
2188
- function Ra(t, e, r) {
2162
+ function Us(t, e, r) {
2189
2163
  return (r ?? new mt(e)).format(t, "cccccc");
2190
2164
  }
2191
- function ja(t, e = Ot) {
2165
+ function Xs(t, e = Ct) {
2192
2166
  return t < 10 ? e.formatNumber(`0${t.toLocaleString()}`) : e.formatNumber(`${t.toLocaleString()}`);
2193
2167
  }
2194
- function Ha() {
2168
+ function Qs() {
2195
2169
  return "";
2196
2170
  }
2197
- function Br(t, e = Ot) {
2171
+ function Lr(t, e = Ct) {
2198
2172
  return e.format(t, "yyyy");
2199
2173
  }
2200
- const La = Br, $a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2174
+ const Ks = Lr, Js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2201
2175
  __proto__: null,
2202
- formatCaption: Yr,
2203
- formatDay: za,
2204
- formatMonthCaption: Fa,
2205
- formatMonthDropdown: Aa,
2206
- formatWeekNumber: ja,
2207
- formatWeekNumberHeader: Ha,
2208
- formatWeekdayName: Ra,
2209
- formatYearCaption: La,
2210
- formatYearDropdown: Br
2176
+ formatCaption: Hr,
2177
+ formatDay: Gs,
2178
+ formatMonthCaption: Vs,
2179
+ formatMonthDropdown: Zs,
2180
+ formatWeekNumber: Xs,
2181
+ formatWeekNumberHeader: Qs,
2182
+ formatWeekdayName: Us,
2183
+ formatYearCaption: Ks,
2184
+ formatYearDropdown: Lr
2211
2185
  }, Symbol.toStringTag, { value: "Module" }));
2212
- function Va(t) {
2186
+ function tl(t) {
2213
2187
  return t?.formatMonthCaption && !t.formatCaption && (t.formatCaption = t.formatMonthCaption), t?.formatYearCaption && !t.formatYearDropdown && (t.formatYearDropdown = t.formatYearCaption), {
2214
- ...$a,
2188
+ ...Js,
2215
2189
  ...t
2216
2190
  };
2217
2191
  }
2218
- function Ga(t, e, r, o, i) {
2219
- const { startOfMonth: n, startOfYear: l, endOfYear: s, eachMonthOfInterval: m, getMonth: p } = i;
2220
- return m({
2192
+ function el(t, e, r, o, i) {
2193
+ const { startOfMonth: n, startOfYear: l, endOfYear: s, eachMonthOfInterval: d, getMonth: p } = i;
2194
+ return d({
2221
2195
  start: l(t),
2222
2196
  end: s(t)
2223
2197
  }).map((f) => {
2224
- const y = o.formatMonthDropdown(f, i), w = p(f), W = e && f < n(e) || r && f > n(r) || !1;
2225
- return { value: w, label: y, disabled: W };
2198
+ const b = o.formatMonthDropdown(f, i), w = p(f), N = e && f < n(e) || r && f > n(r) || !1;
2199
+ return { value: w, label: b, disabled: N };
2226
2200
  });
2227
2201
  }
2228
- function Za(t, e = {}, r = {}) {
2229
- let o = { ...e?.[b.Day] };
2202
+ function rl(t, e = {}, r = {}) {
2203
+ let o = { ...e?.[y.Day] };
2230
2204
  return Object.entries(t).filter(([, i]) => i === !0).forEach(([i]) => {
2231
2205
  o = {
2232
2206
  ...o,
@@ -2234,7 +2208,7 @@ function Za(t, e = {}, r = {}) {
2234
2208
  };
2235
2209
  }), o;
2236
2210
  }
2237
- function Xa(t, e, r) {
2211
+ function ol(t, e, r) {
2238
2212
  const o = t.today(), i = e ? t.startOfISOWeek(o) : t.startOfWeek(o), n = [];
2239
2213
  for (let l = 0; l < 7; l++) {
2240
2214
  const s = t.addDays(i, l);
@@ -2242,148 +2216,148 @@ function Xa(t, e, r) {
2242
2216
  }
2243
2217
  return n;
2244
2218
  }
2245
- function Ua(t, e, r, o, i = !1) {
2219
+ function il(t, e, r, o, i = !1) {
2246
2220
  if (!t || !e)
2247
2221
  return;
2248
- const { startOfYear: n, endOfYear: l, eachYearOfInterval: s, getYear: m } = o, p = n(t), u = l(e), a = s({ start: p, end: u });
2222
+ const { startOfYear: n, endOfYear: l, eachYearOfInterval: s, getYear: d } = o, p = n(t), u = l(e), a = s({ start: p, end: u });
2249
2223
  return i && a.reverse(), a.map((f) => {
2250
- const y = r.formatYearDropdown(f, o);
2224
+ const b = r.formatYearDropdown(f, o);
2251
2225
  return {
2252
- value: m(f),
2253
- label: y,
2226
+ value: d(f),
2227
+ label: b,
2254
2228
  disabled: !1
2255
2229
  };
2256
2230
  });
2257
2231
  }
2258
- function Ir(t, e, r, o) {
2232
+ function $r(t, e, r, o) {
2259
2233
  let i = (o ?? new mt(r)).format(t, "PPPP");
2260
2234
  return e.today && (i = `Today, ${i}`), e.selected && (i = `${i}, selected`), i;
2261
2235
  }
2262
- const Qa = Ir;
2263
- function Fr(t, e, r) {
2236
+ const nl = $r;
2237
+ function Vr(t, e, r) {
2264
2238
  return (r ?? new mt(e)).formatMonthYear(t);
2265
2239
  }
2266
- const Ka = Fr;
2267
- function Ja(t, e, r, o) {
2240
+ const al = Vr;
2241
+ function sl(t, e, r, o) {
2268
2242
  let i = (o ?? new mt(r)).format(t, "PPPP");
2269
2243
  return e?.today && (i = `Today, ${i}`), i;
2270
2244
  }
2271
- function ts(t) {
2245
+ function ll(t) {
2272
2246
  return "Choose the Month";
2273
2247
  }
2274
- function es() {
2248
+ function cl() {
2275
2249
  return "";
2276
2250
  }
2277
- function rs(t) {
2251
+ function ml(t) {
2278
2252
  return "Go to the Next Month";
2279
2253
  }
2280
- function os(t) {
2254
+ function dl(t) {
2281
2255
  return "Go to the Previous Month";
2282
2256
  }
2283
- function is(t, e, r) {
2257
+ function pl(t, e, r) {
2284
2258
  return (r ?? new mt(e)).format(t, "cccc");
2285
2259
  }
2286
- function ns(t, e) {
2260
+ function ul(t, e) {
2287
2261
  return `Week ${t}`;
2288
2262
  }
2289
- function as(t) {
2263
+ function fl(t) {
2290
2264
  return "Week Number";
2291
2265
  }
2292
- function ss(t) {
2266
+ function hl(t) {
2293
2267
  return "Choose the Year";
2294
2268
  }
2295
- const ls = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2269
+ const gl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2296
2270
  __proto__: null,
2297
- labelCaption: Ka,
2298
- labelDay: Qa,
2299
- labelDayButton: Ir,
2300
- labelGrid: Fr,
2301
- labelGridcell: Ja,
2302
- labelMonthDropdown: ts,
2303
- labelNav: es,
2304
- labelNext: rs,
2305
- labelPrevious: os,
2306
- labelWeekNumber: ns,
2307
- labelWeekNumberHeader: as,
2308
- labelWeekday: is,
2309
- labelYearDropdown: ss
2310
- }, Symbol.toStringTag, { value: "Module" })), ie = (t) => t instanceof HTMLElement ? t : null, Ne = (t) => [
2271
+ labelCaption: al,
2272
+ labelDay: nl,
2273
+ labelDayButton: $r,
2274
+ labelGrid: Vr,
2275
+ labelGridcell: sl,
2276
+ labelMonthDropdown: ll,
2277
+ labelNav: cl,
2278
+ labelNext: ml,
2279
+ labelPrevious: dl,
2280
+ labelWeekNumber: ul,
2281
+ labelWeekNumberHeader: fl,
2282
+ labelWeekday: pl,
2283
+ labelYearDropdown: hl
2284
+ }, Symbol.toStringTag, { value: "Module" })), ie = (t) => t instanceof HTMLElement ? t : null, Te = (t) => [
2311
2285
  ...t.querySelectorAll("[data-animated-month]") ?? []
2312
- ], cs = (t) => ie(t.querySelector("[data-animated-month]")), We = (t) => ie(t.querySelector("[data-animated-caption]")), Te = (t) => ie(t.querySelector("[data-animated-weeks]")), ms = (t) => ie(t.querySelector("[data-animated-nav]")), ps = (t) => ie(t.querySelector("[data-animated-weekdays]"));
2313
- function ds(t, e, { classNames: r, months: o, focused: i, dateLib: n }) {
2314
- const l = fe(null), s = fe(o), m = fe(!1);
2315
- Co(() => {
2286
+ ], bl = (t) => ie(t.querySelector("[data-animated-month]")), We = (t) => ie(t.querySelector("[data-animated-caption]")), Ee = (t) => ie(t.querySelector("[data-animated-weeks]")), yl = (t) => ie(t.querySelector("[data-animated-nav]")), wl = (t) => ie(t.querySelector("[data-animated-weekdays]"));
2287
+ function vl(t, e, { classNames: r, months: o, focused: i, dateLib: n }) {
2288
+ const l = fe(null), s = fe(o), d = fe(!1);
2289
+ io(() => {
2316
2290
  const p = s.current;
2317
2291
  if (s.current = o, !e || !t.current || // safety check because the ref can be set to anything by consumers
2318
2292
  !(t.current instanceof HTMLElement) || // validation required for the animation to work as expected
2319
2293
  o.length === 0 || p.length === 0 || o.length !== p.length)
2320
2294
  return;
2321
- const u = n.isSameMonth(o[0].date, p[0].date), a = n.isAfter(o[0].date, p[0].date), f = a ? r[ct.caption_after_enter] : r[ct.caption_before_enter], y = a ? r[ct.weeks_after_enter] : r[ct.weeks_before_enter], w = l.current, W = t.current.cloneNode(!0);
2322
- if (W instanceof HTMLElement ? (Ne(W).forEach((v) => {
2295
+ const u = n.isSameMonth(o[0].date, p[0].date), a = n.isAfter(o[0].date, p[0].date), f = a ? r[ct.caption_after_enter] : r[ct.caption_before_enter], b = a ? r[ct.weeks_after_enter] : r[ct.weeks_before_enter], w = l.current, N = t.current.cloneNode(!0);
2296
+ if (N instanceof HTMLElement ? (Te(N).forEach((v) => {
2323
2297
  if (!(v instanceof HTMLElement))
2324
2298
  return;
2325
- const _ = cs(v);
2299
+ const _ = bl(v);
2326
2300
  _ && v.contains(_) && v.removeChild(_);
2327
2301
  const g = We(v);
2328
2302
  g && g.classList.remove(f);
2329
- const k = Te(v);
2330
- k && k.classList.remove(y);
2331
- }), l.current = W) : l.current = null, m.current || u || // skip animation if a day is focused because it can cause issues to the animation and is better for a11y
2303
+ const k = Ee(v);
2304
+ k && k.classList.remove(b);
2305
+ }), l.current = N) : l.current = null, d.current || u || // skip animation if a day is focused because it can cause issues to the animation and is better for a11y
2332
2306
  i)
2333
2307
  return;
2334
- const x = w instanceof HTMLElement ? Ne(w) : [], h = Ne(t.current);
2335
- if (h?.every((T) => T instanceof HTMLElement) && x && x.every((T) => T instanceof HTMLElement)) {
2336
- m.current = !0, t.current.style.isolation = "isolate";
2337
- const T = ms(t.current);
2338
- T && (T.style.zIndex = "1"), h.forEach((v, _) => {
2308
+ const x = w instanceof HTMLElement ? Te(w) : [], h = Te(t.current);
2309
+ if (h?.every((W) => W instanceof HTMLElement) && x && x.every((W) => W instanceof HTMLElement)) {
2310
+ d.current = !0, t.current.style.isolation = "isolate";
2311
+ const W = yl(t.current);
2312
+ W && (W.style.zIndex = "1"), h.forEach((v, _) => {
2339
2313
  const g = x[_];
2340
2314
  if (!g)
2341
2315
  return;
2342
2316
  v.style.position = "relative", v.style.overflow = "hidden";
2343
2317
  const k = We(v);
2344
2318
  k && k.classList.add(f);
2345
- const M = Te(v);
2346
- M && M.classList.add(y);
2347
- const S = () => {
2348
- m.current = !1, t.current && (t.current.style.isolation = ""), T && (T.style.zIndex = ""), k && k.classList.remove(f), M && M.classList.remove(y), v.style.position = "", v.style.overflow = "", v.contains(g) && v.removeChild(g);
2319
+ const M = Ee(v);
2320
+ M && M.classList.add(b);
2321
+ const T = () => {
2322
+ d.current = !1, t.current && (t.current.style.isolation = ""), W && (W.style.zIndex = ""), k && k.classList.remove(f), M && M.classList.remove(b), v.style.position = "", v.style.overflow = "", v.contains(g) && v.removeChild(g);
2349
2323
  };
2350
2324
  g.style.pointerEvents = "none", g.style.position = "absolute", g.style.overflow = "hidden", g.setAttribute("aria-hidden", "true");
2351
- const $ = ps(g);
2325
+ const $ = wl(g);
2352
2326
  $ && ($.style.opacity = "0");
2353
2327
  const V = We(g);
2354
- V && (V.classList.add(a ? r[ct.caption_before_exit] : r[ct.caption_after_exit]), V.addEventListener("animationend", S));
2355
- const U = Te(g);
2356
- U && U.classList.add(a ? r[ct.weeks_before_exit] : r[ct.weeks_after_exit]), v.insertBefore(g, v.firstChild);
2328
+ V && (V.classList.add(a ? r[ct.caption_before_exit] : r[ct.caption_after_exit]), V.addEventListener("animationend", T));
2329
+ const X = Ee(g);
2330
+ X && X.classList.add(a ? r[ct.weeks_before_exit] : r[ct.weeks_after_exit]), v.insertBefore(g, v.firstChild);
2357
2331
  });
2358
2332
  }
2359
2333
  });
2360
2334
  }
2361
- function us(t, e, r, o) {
2362
- const i = t[0], n = t[t.length - 1], { ISOWeek: l, fixedWeeks: s, broadcastCalendar: m } = r ?? {}, { addDays: p, differenceInCalendarDays: u, differenceInCalendarMonths: a, endOfBroadcastWeek: f, endOfISOWeek: y, endOfMonth: w, endOfWeek: W, isAfter: x, startOfBroadcastWeek: h, startOfISOWeek: T, startOfWeek: v } = o, _ = m ? h(i, o) : l ? T(i) : v(i), g = m ? f(n) : l ? y(w(n)) : W(w(n)), k = u(g, _), M = a(n, i) + 1, S = [];
2363
- for (let U = 0; U <= k; U++) {
2364
- const J = p(_, U);
2335
+ function kl(t, e, r, o) {
2336
+ const i = t[0], n = t[t.length - 1], { ISOWeek: l, fixedWeeks: s, broadcastCalendar: d } = r ?? {}, { addDays: p, differenceInCalendarDays: u, differenceInCalendarMonths: a, endOfBroadcastWeek: f, endOfISOWeek: b, endOfMonth: w, endOfWeek: N, isAfter: x, startOfBroadcastWeek: h, startOfISOWeek: W, startOfWeek: v } = o, _ = d ? h(i, o) : l ? W(i) : v(i), g = d ? f(n) : l ? b(w(n)) : N(w(n)), k = u(g, _), M = a(n, i) + 1, T = [];
2337
+ for (let X = 0; X <= k; X++) {
2338
+ const J = p(_, X);
2365
2339
  if (e && x(J, e))
2366
2340
  break;
2367
- S.push(J);
2341
+ T.push(J);
2368
2342
  }
2369
- const V = (m ? 35 : 42) * M;
2370
- if (s && S.length < V) {
2371
- const U = V - S.length;
2372
- for (let J = 0; J < U; J++) {
2373
- const tt = p(S[S.length - 1], 1);
2374
- S.push(tt);
2343
+ const V = (d ? 35 : 42) * M;
2344
+ if (s && T.length < V) {
2345
+ const X = V - T.length;
2346
+ for (let J = 0; J < X; J++) {
2347
+ const tt = p(T[T.length - 1], 1);
2348
+ T.push(tt);
2375
2349
  }
2376
2350
  }
2377
- return S;
2351
+ return T;
2378
2352
  }
2379
- function fs(t) {
2353
+ function xl(t) {
2380
2354
  const e = [];
2381
2355
  return t.reduce((r, o) => {
2382
2356
  const i = o.weeks.reduce((n, l) => n.concat(l.days.slice()), e.slice());
2383
2357
  return r.concat(i.slice());
2384
2358
  }, e.slice());
2385
2359
  }
2386
- function hs(t, e, r, o) {
2360
+ function Ml(t, e, r, o) {
2387
2361
  const { numberOfMonths: i = 1 } = r, n = [];
2388
2362
  for (let l = 0; l < i; l++) {
2389
2363
  const s = o.addMonths(t, l);
@@ -2393,97 +2367,97 @@ function hs(t, e, r, o) {
2393
2367
  }
2394
2368
  return n;
2395
2369
  }
2396
- function tr(t, e, r, o) {
2370
+ function ir(t, e, r, o) {
2397
2371
  const { month: i, defaultMonth: n, today: l = o.today(), numberOfMonths: s = 1 } = t;
2398
- let m = i || n || l;
2372
+ let d = i || n || l;
2399
2373
  const { differenceInCalendarMonths: p, addMonths: u, startOfMonth: a } = o;
2400
- if (r && p(r, m) < s - 1) {
2374
+ if (r && p(r, d) < s - 1) {
2401
2375
  const f = -1 * (s - 1);
2402
- m = u(r, f);
2376
+ d = u(r, f);
2403
2377
  }
2404
- return e && p(m, e) < 0 && (m = e), a(m);
2378
+ return e && p(d, e) < 0 && (d = e), a(d);
2405
2379
  }
2406
- function gs(t, e, r, o) {
2407
- const { addDays: i, endOfBroadcastWeek: n, endOfISOWeek: l, endOfMonth: s, endOfWeek: m, getISOWeek: p, getWeek: u, startOfBroadcastWeek: a, startOfISOWeek: f, startOfWeek: y } = o, w = t.reduce((W, x) => {
2408
- const h = r.broadcastCalendar ? a(x, o) : r.ISOWeek ? f(x) : y(x), T = r.broadcastCalendar ? n(x) : r.ISOWeek ? l(s(x)) : m(s(x)), v = e.filter((M) => M >= h && M <= T), _ = r.broadcastCalendar ? 35 : 42;
2380
+ function Dl(t, e, r, o) {
2381
+ const { addDays: i, endOfBroadcastWeek: n, endOfISOWeek: l, endOfMonth: s, endOfWeek: d, getISOWeek: p, getWeek: u, startOfBroadcastWeek: a, startOfISOWeek: f, startOfWeek: b } = o, w = t.reduce((N, x) => {
2382
+ const h = r.broadcastCalendar ? a(x, o) : r.ISOWeek ? f(x) : b(x), W = r.broadcastCalendar ? n(x) : r.ISOWeek ? l(s(x)) : d(s(x)), v = e.filter((M) => M >= h && M <= W), _ = r.broadcastCalendar ? 35 : 42;
2409
2383
  if (r.fixedWeeks && v.length < _) {
2410
- const M = e.filter((S) => {
2384
+ const M = e.filter((T) => {
2411
2385
  const $ = _ - v.length;
2412
- return S > T && S <= i(T, $);
2386
+ return T > W && T <= i(W, $);
2413
2387
  });
2414
2388
  v.push(...M);
2415
2389
  }
2416
- const g = v.reduce((M, S) => {
2417
- const $ = r.ISOWeek ? p(S) : u(S), V = M.find((J) => J.weekNumber === $), U = new Nr(S, x, o);
2418
- return V ? V.days.push(U) : M.push(new na($, [U])), M;
2419
- }, []), k = new ia(x, g);
2420
- return W.push(k), W;
2390
+ const g = v.reduce((M, T) => {
2391
+ const $ = r.ISOWeek ? p(T) : u(T), V = M.find((J) => J.weekNumber === $), X = new Br(T, x, o);
2392
+ return V ? V.days.push(X) : M.push(new us($, [X])), M;
2393
+ }, []), k = new ps(x, g);
2394
+ return N.push(k), N;
2421
2395
  }, []);
2422
2396
  return r.reverseMonths ? w.reverse() : w;
2423
2397
  }
2424
- function bs(t, e) {
2398
+ function Cl(t, e) {
2425
2399
  let { startMonth: r, endMonth: o } = t;
2426
- const { startOfYear: i, startOfDay: n, startOfMonth: l, endOfMonth: s, addYears: m, endOfYear: p, newDate: u, today: a } = e, { fromYear: f, toYear: y, fromMonth: w, toMonth: W } = t;
2427
- !r && w && (r = w), !r && f && (r = e.newDate(f, 0, 1)), !o && W && (o = W), !o && y && (o = u(y, 11, 31));
2400
+ const { startOfYear: i, startOfDay: n, startOfMonth: l, endOfMonth: s, addYears: d, endOfYear: p, newDate: u, today: a } = e, { fromYear: f, toYear: b, fromMonth: w, toMonth: N } = t;
2401
+ !r && w && (r = w), !r && f && (r = e.newDate(f, 0, 1)), !o && N && (o = N), !o && b && (o = u(b, 11, 31));
2428
2402
  const x = t.captionLayout === "dropdown" || t.captionLayout === "dropdown-years";
2429
- return r ? r = l(r) : f ? r = u(f, 0, 1) : !r && x && (r = i(m(t.today ?? a(), -100))), o ? o = s(o) : y ? o = u(y, 11, 31) : !o && x && (o = p(t.today ?? a())), [
2403
+ return r ? r = l(r) : f ? r = u(f, 0, 1) : !r && x && (r = i(d(t.today ?? a(), -100))), o ? o = s(o) : b ? o = u(b, 11, 31) : !o && x && (o = p(t.today ?? a())), [
2430
2404
  r && n(r),
2431
2405
  o && n(o)
2432
2406
  ];
2433
2407
  }
2434
- function ys(t, e, r, o) {
2408
+ function Ol(t, e, r, o) {
2435
2409
  if (r.disableNavigation)
2436
2410
  return;
2437
- const { pagedNavigation: i, numberOfMonths: n = 1 } = r, { startOfMonth: l, addMonths: s, differenceInCalendarMonths: m } = o, p = i ? n : 1, u = l(t);
2411
+ const { pagedNavigation: i, numberOfMonths: n = 1 } = r, { startOfMonth: l, addMonths: s, differenceInCalendarMonths: d } = o, p = i ? n : 1, u = l(t);
2438
2412
  if (!e)
2439
2413
  return s(u, p);
2440
- if (!(m(e, t) < n))
2414
+ if (!(d(e, t) < n))
2441
2415
  return s(u, p);
2442
2416
  }
2443
- function ws(t, e, r, o) {
2417
+ function Sl(t, e, r, o) {
2444
2418
  if (r.disableNavigation)
2445
2419
  return;
2446
- const { pagedNavigation: i, numberOfMonths: n } = r, { startOfMonth: l, addMonths: s, differenceInCalendarMonths: m } = o, p = i ? n ?? 1 : 1, u = l(t);
2420
+ const { pagedNavigation: i, numberOfMonths: n } = r, { startOfMonth: l, addMonths: s, differenceInCalendarMonths: d } = o, p = i ? n ?? 1 : 1, u = l(t);
2447
2421
  if (!e)
2448
2422
  return s(u, -p);
2449
- if (!(m(u, e) <= 0))
2423
+ if (!(d(u, e) <= 0))
2450
2424
  return s(u, -p);
2451
2425
  }
2452
- function vs(t) {
2426
+ function Nl(t) {
2453
2427
  const e = [];
2454
2428
  return t.reduce((r, o) => r.concat(o.weeks.slice()), e.slice());
2455
2429
  }
2456
- function ge(t, e) {
2430
+ function be(t, e) {
2457
2431
  const [r, o] = he(t);
2458
2432
  return [e === void 0 ? r : e, o];
2459
2433
  }
2460
- function ks(t, e) {
2461
- const [r, o] = bs(t, e), { startOfMonth: i, endOfMonth: n } = e, l = tr(t, r, o, e), [s, m] = ge(
2434
+ function Tl(t, e) {
2435
+ const [r, o] = Cl(t, e), { startOfMonth: i, endOfMonth: n } = e, l = ir(t, r, o, e), [s, d] = be(
2462
2436
  l,
2463
2437
  // initialMonth is always computed from props.month if provided
2464
2438
  t.month ? l : void 0
2465
2439
  );
2466
- ar(() => {
2467
- const k = tr(t, r, o, e);
2468
- m(k);
2440
+ dr(() => {
2441
+ const k = ir(t, r, o, e);
2442
+ d(k);
2469
2443
  }, [t.timeZone]);
2470
- const p = hs(s, o, t, e), u = us(p, t.endMonth ? n(t.endMonth) : void 0, t, e), a = gs(p, u, t, e), f = vs(a), y = fs(a), w = ws(s, r, t, e), W = ys(s, o, t, e), { disableNavigation: x, onMonthChange: h } = t, T = (k) => f.some((M) => M.days.some((S) => S.isEqualTo(k))), v = (k) => {
2444
+ const p = Ml(s, o, t, e), u = kl(p, t.endMonth ? n(t.endMonth) : void 0, t, e), a = Dl(p, u, t, e), f = Nl(a), b = xl(a), w = Sl(s, r, t, e), N = Ol(s, o, t, e), { disableNavigation: x, onMonthChange: h } = t, W = (k) => f.some((M) => M.days.some((T) => T.isEqualTo(k))), v = (k) => {
2471
2445
  if (x)
2472
2446
  return;
2473
2447
  let M = i(k);
2474
- r && M < i(r) && (M = i(r)), o && M > i(o) && (M = i(o)), m(M), h?.(M);
2448
+ r && M < i(r) && (M = i(r)), o && M > i(o) && (M = i(o)), d(M), h?.(M);
2475
2449
  };
2476
2450
  return {
2477
2451
  months: a,
2478
2452
  weeks: f,
2479
- days: y,
2453
+ days: b,
2480
2454
  navStart: r,
2481
2455
  navEnd: o,
2482
2456
  previousMonth: w,
2483
- nextMonth: W,
2457
+ nextMonth: N,
2484
2458
  goToMonth: v,
2485
2459
  goToDay: (k) => {
2486
- T(k) || v(k.date);
2460
+ W(k) || v(k.date);
2487
2461
  }
2488
2462
  };
2489
2463
  }
@@ -2491,82 +2465,82 @@ var Mt;
2491
2465
  (function(t) {
2492
2466
  t[t.Today = 0] = "Today", t[t.Selected = 1] = "Selected", t[t.LastFocused = 2] = "LastFocused", t[t.FocusedModifier = 3] = "FocusedModifier";
2493
2467
  })(Mt || (Mt = {}));
2494
- function er(t) {
2468
+ function nr(t) {
2495
2469
  return !t[j.disabled] && !t[j.hidden] && !t[j.outside];
2496
2470
  }
2497
- function xs(t, e, r, o) {
2471
+ function Wl(t, e, r, o) {
2498
2472
  let i, n = -1;
2499
2473
  for (const l of t) {
2500
2474
  const s = e(l);
2501
- er(s) && (s[j.focused] && n < Mt.FocusedModifier ? (i = l, n = Mt.FocusedModifier) : o?.isEqualTo(l) && n < Mt.LastFocused ? (i = l, n = Mt.LastFocused) : r(l.date) && n < Mt.Selected ? (i = l, n = Mt.Selected) : s[j.today] && n < Mt.Today && (i = l, n = Mt.Today));
2475
+ nr(s) && (s[j.focused] && n < Mt.FocusedModifier ? (i = l, n = Mt.FocusedModifier) : o?.isEqualTo(l) && n < Mt.LastFocused ? (i = l, n = Mt.LastFocused) : r(l.date) && n < Mt.Selected ? (i = l, n = Mt.Selected) : s[j.today] && n < Mt.Today && (i = l, n = Mt.Today));
2502
2476
  }
2503
- return i || (i = t.find((l) => er(e(l)))), i;
2477
+ return i || (i = t.find((l) => nr(e(l)))), i;
2504
2478
  }
2505
- function Ms(t, e, r, o, i, n, l) {
2506
- const { ISOWeek: s, broadcastCalendar: m } = n, { addDays: p, addMonths: u, addWeeks: a, addYears: f, endOfBroadcastWeek: y, endOfISOWeek: w, endOfWeek: W, max: x, min: h, startOfBroadcastWeek: T, startOfISOWeek: v, startOfWeek: _ } = l;
2479
+ function El(t, e, r, o, i, n, l) {
2480
+ const { ISOWeek: s, broadcastCalendar: d } = n, { addDays: p, addMonths: u, addWeeks: a, addYears: f, endOfBroadcastWeek: b, endOfISOWeek: w, endOfWeek: N, max: x, min: h, startOfBroadcastWeek: W, startOfISOWeek: v, startOfWeek: _ } = l;
2507
2481
  let k = {
2508
2482
  day: p,
2509
2483
  week: a,
2510
2484
  month: u,
2511
2485
  year: f,
2512
- startOfWeek: (M) => m ? T(M, l) : s ? v(M) : _(M),
2513
- endOfWeek: (M) => m ? y(M) : s ? w(M) : W(M)
2486
+ startOfWeek: (M) => d ? W(M, l) : s ? v(M) : _(M),
2487
+ endOfWeek: (M) => d ? b(M) : s ? w(M) : N(M)
2514
2488
  }[t](r, e === "after" ? 1 : -1);
2515
2489
  return e === "before" && o ? k = x([o, k]) : e === "after" && i && (k = h([i, k])), k;
2516
2490
  }
2517
- function zr(t, e, r, o, i, n, l, s = 0) {
2491
+ function Gr(t, e, r, o, i, n, l, s = 0) {
2518
2492
  if (s > 365)
2519
2493
  return;
2520
- const m = Ms(t, e, r.date, o, i, n, l), p = !!(n.disabled && St(m, n.disabled, l)), u = !!(n.hidden && St(m, n.hidden, l)), a = m, f = new Nr(m, a, l);
2521
- return !p && !u ? f : zr(t, e, f, o, i, n, l, s + 1);
2494
+ const d = El(t, e, r.date, o, i, n, l), p = !!(n.disabled && St(d, n.disabled, l)), u = !!(n.hidden && St(d, n.hidden, l)), a = d, f = new Br(d, a, l);
2495
+ return !p && !u ? f : Gr(t, e, f, o, i, n, l, s + 1);
2522
2496
  }
2523
- function Ds(t, e, r, o, i) {
2524
- const { autoFocus: n } = t, [l, s] = he(), m = xs(e.days, r, o || (() => !1), l), [p, u] = he(n ? m : void 0);
2497
+ function _l(t, e, r, o, i) {
2498
+ const { autoFocus: n } = t, [l, s] = he(), d = Wl(e.days, r, o || (() => !1), l), [p, u] = he(n ? d : void 0);
2525
2499
  return {
2526
- isFocusTarget: (W) => !!m?.isEqualTo(W),
2500
+ isFocusTarget: (N) => !!d?.isEqualTo(N),
2527
2501
  setFocused: u,
2528
2502
  focused: p,
2529
2503
  blur: () => {
2530
2504
  s(p), u(void 0);
2531
2505
  },
2532
- moveFocus: (W, x) => {
2506
+ moveFocus: (N, x) => {
2533
2507
  if (!p)
2534
2508
  return;
2535
- const h = zr(W, x, p, e.navStart, e.navEnd, t, i);
2509
+ const h = Gr(N, x, p, e.navStart, e.navEnd, t, i);
2536
2510
  h && (t.disableNavigation && !e.days.some((v) => v.isEqualTo(h)) || (e.goToDay(h), u(h)));
2537
2511
  }
2538
2512
  };
2539
2513
  }
2540
- function Os(t, e) {
2541
- const { selected: r, required: o, onSelect: i } = t, [n, l] = ge(r, i ? r : void 0), s = i ? r : n, { isSameDay: m } = e, p = (y) => s?.some((w) => m(w, y)) ?? !1, { min: u, max: a } = t;
2514
+ function ql(t, e) {
2515
+ const { selected: r, required: o, onSelect: i } = t, [n, l] = be(r, i ? r : void 0), s = i ? r : n, { isSameDay: d } = e, p = (b) => s?.some((w) => d(w, b)) ?? !1, { min: u, max: a } = t;
2542
2516
  return {
2543
2517
  selected: s,
2544
- select: (y, w, W) => {
2518
+ select: (b, w, N) => {
2545
2519
  let x = [...s ?? []];
2546
- if (p(y)) {
2520
+ if (p(b)) {
2547
2521
  if (s?.length === u || o && s?.length === 1)
2548
2522
  return;
2549
- x = s?.filter((h) => !m(h, y));
2523
+ x = s?.filter((h) => !d(h, b));
2550
2524
  } else
2551
- s?.length === a ? x = [y] : x = [...x, y];
2552
- return i || l(x), i?.(x, y, w, W), x;
2525
+ s?.length === a ? x = [b] : x = [...x, b];
2526
+ return i || l(x), i?.(x, b, w, N), x;
2553
2527
  },
2554
2528
  isSelected: p
2555
2529
  };
2556
2530
  }
2557
- function Cs(t, e, r = 0, o = 0, i = !1, n = Ot) {
2558
- const { from: l, to: s } = e || {}, { isSameDay: m, isAfter: p, isBefore: u } = n;
2531
+ function Pl(t, e, r = 0, o = 0, i = !1, n = Ct) {
2532
+ const { from: l, to: s } = e || {}, { isSameDay: d, isAfter: p, isBefore: u } = n;
2559
2533
  let a;
2560
2534
  if (!l && !s)
2561
2535
  a = { from: t, to: r > 0 ? void 0 : t };
2562
2536
  else if (l && !s)
2563
- m(l, t) ? r === 0 ? a = { from: l, to: t } : i ? a = { from: l, to: void 0 } : a = void 0 : u(t, l) ? a = { from: t, to: l } : a = { from: l, to: t };
2537
+ d(l, t) ? r === 0 ? a = { from: l, to: t } : i ? a = { from: l, to: void 0 } : a = void 0 : u(t, l) ? a = { from: t, to: l } : a = { from: l, to: t };
2564
2538
  else if (l && s)
2565
- if (m(l, t) && m(s, t))
2539
+ if (d(l, t) && d(s, t))
2566
2540
  i ? a = { from: l, to: s } : a = void 0;
2567
- else if (m(l, t))
2541
+ else if (d(l, t))
2568
2542
  a = { from: l, to: r > 0 ? void 0 : t };
2569
- else if (m(s, t))
2543
+ else if (d(s, t))
2570
2544
  a = { from: t, to: r > 0 ? void 0 : t };
2571
2545
  else if (u(t, l))
2572
2546
  a = { from: t, to: s };
@@ -2582,7 +2556,7 @@ function Cs(t, e, r = 0, o = 0, i = !1, n = Ot) {
2582
2556
  }
2583
2557
  return a;
2584
2558
  }
2585
- function Ss(t, e, r = Ot) {
2559
+ function Yl(t, e, r = Ct) {
2586
2560
  const o = Array.isArray(e) ? e : [e];
2587
2561
  let i = t.from;
2588
2562
  const n = r.differenceInCalendarDays(t.to, t.from), l = Math.min(n, 6);
@@ -2593,21 +2567,21 @@ function Ss(t, e, r = Ot) {
2593
2567
  }
2594
2568
  return !1;
2595
2569
  }
2596
- function rr(t, e, r = Ot) {
2597
- return Ct(t, e.from, !1, r) || Ct(t, e.to, !1, r) || Ct(e, t.from, !1, r) || Ct(e, t.to, !1, r);
2570
+ function ar(t, e, r = Ct) {
2571
+ return Ot(t, e.from, !1, r) || Ot(t, e.to, !1, r) || Ot(e, t.from, !1, r) || Ot(e, t.to, !1, r);
2598
2572
  }
2599
- function Ns(t, e, r = Ot) {
2573
+ function Bl(t, e, r = Ct) {
2600
2574
  const o = Array.isArray(e) ? e : [e];
2601
- if (o.filter((s) => typeof s != "function").some((s) => typeof s == "boolean" ? s : r.isDate(s) ? Ct(t, s, !1, r) : Pr(s, r) ? s.some((m) => Ct(t, m, !1, r)) : Be(s) ? s.from && s.to ? rr(t, { from: s.from, to: s.to }, r) : !1 : _r(s) ? Ss(t, s.dayOfWeek, r) : Tr(s) ? r.isAfter(s.before, s.after) ? rr(t, {
2575
+ if (o.filter((s) => typeof s != "function").some((s) => typeof s == "boolean" ? s : r.isDate(s) ? Ot(t, s, !1, r) : jr(s, r) ? s.some((d) => Ot(t, d, !1, r)) : Fe(s) ? s.from && s.to ? ar(t, { from: s.from, to: s.to }, r) : !1 : Ar(s) ? Yl(t, s.dayOfWeek, r) : Fr(s) ? r.isAfter(s.before, s.after) ? ar(t, {
2602
2576
  from: r.addDays(s.after, 1),
2603
2577
  to: r.addDays(s.before, -1)
2604
- }, r) : St(t.from, s, r) || St(t.to, s, r) : Er(s) || qr(s) ? St(t.from, s, r) || St(t.to, s, r) : !1))
2578
+ }, r) : St(t.from, s, r) || St(t.to, s, r) : zr(s) || Rr(s) ? St(t.from, s, r) || St(t.to, s, r) : !1))
2605
2579
  return !0;
2606
2580
  const l = o.filter((s) => typeof s == "function");
2607
2581
  if (l.length) {
2608
2582
  let s = t.from;
2609
- const m = r.differenceInCalendarDays(t.to, t.from);
2610
- for (let p = 0; p <= m; p++) {
2583
+ const d = r.differenceInCalendarDays(t.to, t.from);
2584
+ for (let p = 0; p <= d; p++) {
2611
2585
  if (l.some((u) => u(s)))
2612
2586
  return !0;
2613
2587
  s = r.addDays(s, 1);
@@ -2615,30 +2589,30 @@ function Ns(t, e, r = Ot) {
2615
2589
  }
2616
2590
  return !1;
2617
2591
  }
2618
- function Ws(t, e) {
2619
- const { disabled: r, excludeDisabled: o, selected: i, required: n, onSelect: l } = t, [s, m] = ge(i, l ? i : void 0), p = l ? i : s;
2592
+ function Il(t, e) {
2593
+ const { disabled: r, excludeDisabled: o, selected: i, required: n, onSelect: l } = t, [s, d] = be(i, l ? i : void 0), p = l ? i : s;
2620
2594
  return {
2621
2595
  selected: p,
2622
- select: (f, y, w) => {
2623
- const { min: W, max: x } = t, h = f ? Cs(f, p, W, x, n, e) : void 0;
2624
- return o && r && h?.from && h.to && Ns({ from: h.from, to: h.to }, r, e) && (h.from = f, h.to = void 0), l || m(h), l?.(h, f, y, w), h;
2596
+ select: (f, b, w) => {
2597
+ const { min: N, max: x } = t, h = f ? Pl(f, p, N, x, n, e) : void 0;
2598
+ return o && r && h?.from && h.to && Bl({ from: h.from, to: h.to }, r, e) && (h.from = f, h.to = void 0), l || d(h), l?.(h, f, b, w), h;
2625
2599
  },
2626
- isSelected: (f) => p && Ct(p, f, !1, e)
2600
+ isSelected: (f) => p && Ot(p, f, !1, e)
2627
2601
  };
2628
2602
  }
2629
- function Ts(t, e) {
2630
- const { selected: r, required: o, onSelect: i } = t, [n, l] = ge(r, i ? r : void 0), s = i ? r : n, { isSameDay: m } = e;
2603
+ function Fl(t, e) {
2604
+ const { selected: r, required: o, onSelect: i } = t, [n, l] = be(r, i ? r : void 0), s = i ? r : n, { isSameDay: d } = e;
2631
2605
  return {
2632
2606
  selected: s,
2633
- select: (a, f, y) => {
2607
+ select: (a, f, b) => {
2634
2608
  let w = a;
2635
- return !o && s && s && m(a, s) && (w = void 0), i || l(w), i?.(w, a, f, y), w;
2609
+ return !o && s && s && d(a, s) && (w = void 0), i || l(w), i?.(w, a, f, b), w;
2636
2610
  },
2637
- isSelected: (a) => s ? m(s, a) : !1
2611
+ isSelected: (a) => s ? d(s, a) : !1
2638
2612
  };
2639
2613
  }
2640
- function Es(t, e) {
2641
- const r = Ts(t, e), o = Os(t, e), i = Ws(t, e);
2614
+ function zl(t, e) {
2615
+ const r = Fl(t, e), o = ql(t, e), i = Il(t, e);
2642
2616
  switch (t.mode) {
2643
2617
  case "single":
2644
2618
  return r;
@@ -2650,19 +2624,19 @@ function Es(t, e) {
2650
2624
  return;
2651
2625
  }
2652
2626
  }
2653
- function qs(t) {
2627
+ function Rl(t) {
2654
2628
  let e = t;
2655
2629
  e.timeZone && (e = {
2656
2630
  ...t
2657
- }, e.today && (e.today = new nt(e.today, e.timeZone)), e.month && (e.month = new nt(e.month, e.timeZone)), e.defaultMonth && (e.defaultMonth = new nt(e.defaultMonth, e.timeZone)), e.startMonth && (e.startMonth = new nt(e.startMonth, e.timeZone)), e.endMonth && (e.endMonth = new nt(e.endMonth, e.timeZone)), e.mode === "single" && e.selected ? e.selected = new nt(e.selected, e.timeZone) : e.mode === "multiple" && e.selected ? e.selected = e.selected?.map((C) => new nt(C, e.timeZone)) : e.mode === "range" && e.selected && (e.selected = {
2631
+ }, e.today && (e.today = new nt(e.today, e.timeZone)), e.month && (e.month = new nt(e.month, e.timeZone)), e.defaultMonth && (e.defaultMonth = new nt(e.defaultMonth, e.timeZone)), e.startMonth && (e.startMonth = new nt(e.startMonth, e.timeZone)), e.endMonth && (e.endMonth = new nt(e.endMonth, e.timeZone)), e.mode === "single" && e.selected ? e.selected = new nt(e.selected, e.timeZone) : e.mode === "multiple" && e.selected ? e.selected = e.selected?.map((S) => new nt(S, e.timeZone)) : e.mode === "range" && e.selected && (e.selected = {
2658
2632
  from: e.selected.from ? new nt(e.selected.from, e.timeZone) : void 0,
2659
2633
  to: e.selected.to ? new nt(e.selected.to, e.timeZone) : void 0
2660
2634
  }));
2661
- const { components: r, formatters: o, labels: i, dateLib: n, locale: l, classNames: s } = Ce(() => {
2662
- const C = { ...Ye, ...e.locale };
2635
+ const { components: r, formatters: o, labels: i, dateLib: n, locale: l, classNames: s } = Se(() => {
2636
+ const S = { ...Ie, ...e.locale };
2663
2637
  return {
2664
2638
  dateLib: new mt({
2665
- locale: C,
2639
+ locale: S,
2666
2640
  weekStartsOn: e.broadcastCalendar ? 1 : e.weekStartsOn,
2667
2641
  firstWeekContainsDate: e.firstWeekContainsDate,
2668
2642
  useAdditionalWeekYearTokens: e.useAdditionalWeekYearTokens,
@@ -2670,11 +2644,11 @@ function qs(t) {
2670
2644
  timeZone: e.timeZone,
2671
2645
  numerals: e.numerals
2672
2646
  }, e.dateLib),
2673
- components: Ya(e.components),
2674
- formatters: Va(e.formatters),
2675
- labels: { ...ls, ...e.labels },
2676
- locale: C,
2677
- classNames: { ...Ia(), ...e.classNames }
2647
+ components: Hs(e.components),
2648
+ formatters: tl(e.formatters),
2649
+ labels: { ...gl, ...e.labels },
2650
+ locale: S,
2651
+ classNames: { ...$s(), ...e.classNames }
2678
2652
  };
2679
2653
  }, [
2680
2654
  e.locale,
@@ -2690,65 +2664,65 @@ function qs(t) {
2690
2664
  e.formatters,
2691
2665
  e.labels,
2692
2666
  e.classNames
2693
- ]), { captionLayout: m, mode: p, navLayout: u, numberOfMonths: a = 1, onDayBlur: f, onDayClick: y, onDayFocus: w, onDayKeyDown: W, onDayMouseEnter: x, onDayMouseLeave: h, onNextClick: T, onPrevClick: v, showWeekNumber: _, styles: g } = e, { formatCaption: k, formatDay: M, formatMonthDropdown: S, formatWeekNumber: $, formatWeekNumberHeader: V, formatWeekdayName: U, formatYearDropdown: J } = o, tt = ks(e, n), { days: ft, months: pt, navStart: P, navEnd: H, previousMonth: G, nextMonth: Q, goToMonth: L } = tt, ht = _a(ft, e, P, H, n), { isSelected: Nt, select: N, selected: A } = Es(e, n) ?? {}, { blur: R, focused: at, isFocusTarget: Wt, moveFocus: F, setFocused: gt } = Ds(e, tt, ht, Nt ?? (() => !1), n), { labelDayButton: At, labelGridcell: Rt, labelGrid: Tt, labelMonthDropdown: be, labelNav: jt, labelPrevious: ye, labelNext: ne, labelWeekday: Bt, labelWeekNumber: ae, labelWeekNumberHeader: bt, labelYearDropdown: we } = i, ve = Ce(() => Xa(n, e.ISOWeek), [n, e.ISOWeek]), ot = p !== void 0 || y !== void 0, kt = ut(() => {
2667
+ ]), { captionLayout: d, mode: p, navLayout: u, numberOfMonths: a = 1, onDayBlur: f, onDayClick: b, onDayFocus: w, onDayKeyDown: N, onDayMouseEnter: x, onDayMouseLeave: h, onNextClick: W, onPrevClick: v, showWeekNumber: _, styles: g } = e, { formatCaption: k, formatDay: M, formatMonthDropdown: T, formatWeekNumber: $, formatWeekNumberHeader: V, formatWeekdayName: X, formatYearDropdown: J } = o, tt = Tl(e, n), { days: ft, months: dt, navStart: Y, navEnd: H, previousMonth: G, nextMonth: Q, goToMonth: L } = tt, ht = As(ft, e, Y, H, n), { isSelected: Nt, select: E, selected: R } = zl(e, n) ?? {}, { blur: A, focused: at, isFocusTarget: Tt, moveFocus: z, setFocused: gt } = _l(e, tt, ht, Nt ?? (() => !1), n), { labelDayButton: Rt, labelGridcell: At, labelGrid: Wt, labelMonthDropdown: ye, labelNav: jt, labelPrevious: we, labelNext: ne, labelWeekday: Bt, labelWeekNumber: ae, labelWeekNumberHeader: bt, labelYearDropdown: ve } = i, ke = Se(() => ol(n, e.ISOWeek), [n, e.ISOWeek]), ot = p !== void 0 || b !== void 0, kt = ut(() => {
2694
2668
  G && (L(G), v?.(G));
2695
2669
  }, [G, L, v]), Gt = ut(() => {
2696
- Q && (L(Q), T?.(Q));
2697
- }, [L, Q, T]), ke = ut((C, q) => (D) => {
2698
- D.preventDefault(), D.stopPropagation(), gt(C), N?.(C.date, q, D), y?.(C.date, q, D);
2699
- }, [N, y, gt]), Ht = ut((C, q) => (D) => {
2700
- gt(C), w?.(C.date, q, D);
2701
- }, [w, gt]), xe = ut((C, q) => (D) => {
2702
- R(), f?.(C.date, q, D);
2703
- }, [R, f]), se = ut((C, q) => (D) => {
2704
- const B = {
2670
+ Q && (L(Q), W?.(Q));
2671
+ }, [L, Q, W]), xe = ut((S, P) => (C) => {
2672
+ C.preventDefault(), C.stopPropagation(), gt(S), E?.(S.date, P, C), b?.(S.date, P, C);
2673
+ }, [E, b, gt]), Ht = ut((S, P) => (C) => {
2674
+ gt(S), w?.(S.date, P, C);
2675
+ }, [w, gt]), Me = ut((S, P) => (C) => {
2676
+ A(), f?.(S.date, P, C);
2677
+ }, [A, f]), se = ut((S, P) => (C) => {
2678
+ const I = {
2705
2679
  ArrowLeft: [
2706
- D.shiftKey ? "month" : "day",
2680
+ C.shiftKey ? "month" : "day",
2707
2681
  e.dir === "rtl" ? "after" : "before"
2708
2682
  ],
2709
2683
  ArrowRight: [
2710
- D.shiftKey ? "month" : "day",
2684
+ C.shiftKey ? "month" : "day",
2711
2685
  e.dir === "rtl" ? "before" : "after"
2712
2686
  ],
2713
- ArrowDown: [D.shiftKey ? "year" : "week", "after"],
2714
- ArrowUp: [D.shiftKey ? "year" : "week", "before"],
2715
- PageUp: [D.shiftKey ? "year" : "month", "before"],
2716
- PageDown: [D.shiftKey ? "year" : "month", "after"],
2687
+ ArrowDown: [C.shiftKey ? "year" : "week", "after"],
2688
+ ArrowUp: [C.shiftKey ? "year" : "week", "before"],
2689
+ PageUp: [C.shiftKey ? "year" : "month", "before"],
2690
+ PageDown: [C.shiftKey ? "year" : "month", "after"],
2717
2691
  Home: ["startOfWeek", "before"],
2718
2692
  End: ["endOfWeek", "after"]
2719
2693
  };
2720
- if (B[D.key]) {
2721
- D.preventDefault(), D.stopPropagation();
2722
- const [it, E] = B[D.key];
2723
- F(it, E);
2694
+ if (I[C.key]) {
2695
+ C.preventDefault(), C.stopPropagation();
2696
+ const [it, q] = I[C.key];
2697
+ z(it, q);
2724
2698
  }
2725
- W?.(C.date, q, D);
2726
- }, [F, W, e.dir]), Zt = ut((C, q) => (D) => {
2727
- x?.(C.date, q, D);
2728
- }, [x]), Et = ut((C, q) => (D) => {
2729
- h?.(C.date, q, D);
2730
- }, [h]), le = ut((C) => (q) => {
2731
- const D = Number(q.target.value), B = n.setMonth(n.startOfMonth(C), D);
2732
- L(B);
2733
- }, [n, L]), qt = ut((C) => (q) => {
2734
- const D = Number(q.target.value), B = n.setYear(n.startOfMonth(C), D);
2735
- L(B);
2736
- }, [n, L]), { className: Me, style: De } = Ce(() => ({
2737
- className: [s[b.Root], e.className].filter(Boolean).join(" "),
2738
- style: { ...g?.[b.Root], ...e.style }
2739
- }), [s, e.className, e.style, g]), ce = Ba(e), Xt = fe(null);
2740
- ds(Xt, !!e.animate, {
2699
+ N?.(S.date, P, C);
2700
+ }, [z, N, e.dir]), Zt = ut((S, P) => (C) => {
2701
+ x?.(S.date, P, C);
2702
+ }, [x]), Et = ut((S, P) => (C) => {
2703
+ h?.(S.date, P, C);
2704
+ }, [h]), le = ut((S) => (P) => {
2705
+ const C = Number(P.target.value), I = n.setMonth(n.startOfMonth(S), C);
2706
+ L(I);
2707
+ }, [n, L]), _t = ut((S) => (P) => {
2708
+ const C = Number(P.target.value), I = n.setYear(n.startOfMonth(S), C);
2709
+ L(I);
2710
+ }, [n, L]), { className: De, style: Ce } = Se(() => ({
2711
+ className: [s[y.Root], e.className].filter(Boolean).join(" "),
2712
+ style: { ...g?.[y.Root], ...e.style }
2713
+ }), [s, e.className, e.style, g]), ce = Ls(e), Ut = fe(null);
2714
+ vl(Ut, !!e.animate, {
2741
2715
  classNames: s,
2742
- months: pt,
2716
+ months: dt,
2743
2717
  focused: at,
2744
2718
  dateLib: n
2745
2719
  });
2746
2720
  const Oe = {
2747
2721
  dayPickerProps: e,
2748
- selected: A,
2749
- select: N,
2722
+ selected: R,
2723
+ select: E,
2750
2724
  isSelected: Nt,
2751
- months: pt,
2725
+ months: dt,
2752
2726
  nextMonth: Q,
2753
2727
  previousMonth: G,
2754
2728
  goToMonth: L,
@@ -2760,37 +2734,37 @@ function qs(t) {
2760
2734
  formatters: o
2761
2735
  };
2762
2736
  return c.createElement(
2763
- Wr.Provider,
2737
+ Ir.Provider,
2764
2738
  { value: Oe },
2765
2739
  c.createElement(
2766
2740
  r.Root,
2767
- { rootRef: e.animate ? Xt : void 0, className: Me, style: De, dir: e.dir, id: e.id, lang: e.lang, nonce: e.nonce, title: e.title, role: e.role, "aria-label": e["aria-label"], "aria-labelledby": e["aria-labelledby"], ...ce },
2741
+ { rootRef: e.animate ? Ut : void 0, className: De, style: Ce, dir: e.dir, id: e.id, lang: e.lang, nonce: e.nonce, title: e.title, role: e.role, "aria-label": e["aria-label"], "aria-labelledby": e["aria-labelledby"], ...ce },
2768
2742
  c.createElement(
2769
2743
  r.Months,
2770
- { className: s[b.Months], style: g?.[b.Months] },
2771
- !e.hideNavigation && !u && c.createElement(r.Nav, { "data-animated-nav": e.animate ? "true" : void 0, className: s[b.Nav], style: g?.[b.Nav], "aria-label": jt(), onPreviousClick: kt, onNextClick: Gt, previousMonth: G, nextMonth: Q }),
2772
- pt.map((C, q) => c.createElement(
2744
+ { className: s[y.Months], style: g?.[y.Months] },
2745
+ !e.hideNavigation && !u && c.createElement(r.Nav, { "data-animated-nav": e.animate ? "true" : void 0, className: s[y.Nav], style: g?.[y.Nav], "aria-label": jt(), onPreviousClick: kt, onNextClick: Gt, previousMonth: G, nextMonth: Q }),
2746
+ dt.map((S, P) => c.createElement(
2773
2747
  r.Month,
2774
2748
  {
2775
2749
  "data-animated-month": e.animate ? "true" : void 0,
2776
- className: s[b.Month],
2777
- style: g?.[b.Month],
2750
+ className: s[y.Month],
2751
+ style: g?.[y.Month],
2778
2752
  // biome-ignore lint/suspicious/noArrayIndexKey: breaks animation
2779
- key: q,
2780
- displayIndex: q,
2781
- calendarMonth: C
2753
+ key: P,
2754
+ displayIndex: P,
2755
+ calendarMonth: S
2782
2756
  },
2783
- u === "around" && !e.hideNavigation && q === 0 && c.createElement(
2757
+ u === "around" && !e.hideNavigation && P === 0 && c.createElement(
2784
2758
  r.PreviousMonthButton,
2785
- { type: "button", className: s[b.PreviousMonthButton], tabIndex: G ? void 0 : -1, "aria-disabled": G ? void 0 : !0, "aria-label": ye(G), onClick: kt, "data-animated-button": e.animate ? "true" : void 0 },
2786
- c.createElement(r.Chevron, { disabled: G ? void 0 : !0, className: s[b.Chevron], orientation: e.dir === "rtl" ? "right" : "left" })
2759
+ { type: "button", className: s[y.PreviousMonthButton], tabIndex: G ? void 0 : -1, "aria-disabled": G ? void 0 : !0, "aria-label": we(G), onClick: kt, "data-animated-button": e.animate ? "true" : void 0 },
2760
+ c.createElement(r.Chevron, { disabled: G ? void 0 : !0, className: s[y.Chevron], orientation: e.dir === "rtl" ? "right" : "left" })
2787
2761
  ),
2788
- c.createElement(r.MonthCaption, { "data-animated-caption": e.animate ? "true" : void 0, className: s[b.MonthCaption], style: g?.[b.MonthCaption], calendarMonth: C, displayIndex: q }, m?.startsWith("dropdown") ? c.createElement(
2762
+ c.createElement(r.MonthCaption, { "data-animated-caption": e.animate ? "true" : void 0, className: s[y.MonthCaption], style: g?.[y.MonthCaption], calendarMonth: S, displayIndex: P }, d?.startsWith("dropdown") ? c.createElement(
2789
2763
  r.DropdownNav,
2790
- { className: s[b.Dropdowns], style: g?.[b.Dropdowns] },
2764
+ { className: s[y.Dropdowns], style: g?.[y.Dropdowns] },
2791
2765
  (() => {
2792
- const D = m === "dropdown" || m === "dropdown-months" ? c.createElement(r.MonthsDropdown, { key: "month", className: s[b.MonthsDropdown], "aria-label": be(), classNames: s, components: r, disabled: !!e.disableNavigation, onChange: le(C.date), options: Ga(C.date, P, H, o, n), style: g?.[b.Dropdown], value: n.getMonth(C.date) }) : c.createElement("span", { key: "month" }, S(C.date, n)), B = m === "dropdown" || m === "dropdown-years" ? c.createElement(r.YearsDropdown, { key: "year", className: s[b.YearsDropdown], "aria-label": we(n.options), classNames: s, components: r, disabled: !!e.disableNavigation, onChange: qt(C.date), options: Ua(P, H, o, n, !!e.reverseYears), style: g?.[b.Dropdown], value: n.getYear(C.date) }) : c.createElement("span", { key: "year" }, J(C.date, n));
2793
- return n.getMonthYearOrder() === "year-first" ? [B, D] : [D, B];
2766
+ const C = d === "dropdown" || d === "dropdown-months" ? c.createElement(r.MonthsDropdown, { key: "month", className: s[y.MonthsDropdown], "aria-label": ye(), classNames: s, components: r, disabled: !!e.disableNavigation, onChange: le(S.date), options: el(S.date, Y, H, o, n), style: g?.[y.Dropdown], value: n.getMonth(S.date) }) : c.createElement("span", { key: "month" }, T(S.date, n)), I = d === "dropdown" || d === "dropdown-years" ? c.createElement(r.YearsDropdown, { key: "year", className: s[y.YearsDropdown], "aria-label": ve(n.options), classNames: s, components: r, disabled: !!e.disableNavigation, onChange: _t(S.date), options: il(Y, H, o, n, !!e.reverseYears), style: g?.[y.Dropdown], value: n.getYear(S.date) }) : c.createElement("span", { key: "year" }, J(S.date, n));
2767
+ return n.getMonthYearOrder() === "year-first" ? [I, C] : [C, I];
2794
2768
  })(),
2795
2769
  c.createElement("span", { role: "status", "aria-live": "polite", style: {
2796
2770
  border: 0,
@@ -2803,43 +2777,43 @@ function qs(t) {
2803
2777
  width: "1px",
2804
2778
  whiteSpace: "nowrap",
2805
2779
  wordWrap: "normal"
2806
- } }, k(C.date, n.options, n))
2780
+ } }, k(S.date, n.options, n))
2807
2781
  ) : (
2808
2782
  // biome-ignore lint/a11y/useSemanticElements: breaking change
2809
- c.createElement(r.CaptionLabel, { className: s[b.CaptionLabel], role: "status", "aria-live": "polite" }, k(C.date, n.options, n))
2783
+ c.createElement(r.CaptionLabel, { className: s[y.CaptionLabel], role: "status", "aria-live": "polite" }, k(S.date, n.options, n))
2810
2784
  )),
2811
- u === "around" && !e.hideNavigation && q === a - 1 && c.createElement(
2785
+ u === "around" && !e.hideNavigation && P === a - 1 && c.createElement(
2812
2786
  r.NextMonthButton,
2813
- { type: "button", className: s[b.NextMonthButton], tabIndex: Q ? void 0 : -1, "aria-disabled": Q ? void 0 : !0, "aria-label": ne(Q), onClick: Gt, "data-animated-button": e.animate ? "true" : void 0 },
2814
- c.createElement(r.Chevron, { disabled: Q ? void 0 : !0, className: s[b.Chevron], orientation: e.dir === "rtl" ? "left" : "right" })
2787
+ { type: "button", className: s[y.NextMonthButton], tabIndex: Q ? void 0 : -1, "aria-disabled": Q ? void 0 : !0, "aria-label": ne(Q), onClick: Gt, "data-animated-button": e.animate ? "true" : void 0 },
2788
+ c.createElement(r.Chevron, { disabled: Q ? void 0 : !0, className: s[y.Chevron], orientation: e.dir === "rtl" ? "left" : "right" })
2815
2789
  ),
2816
- q === a - 1 && u === "after" && !e.hideNavigation && c.createElement(r.Nav, { "data-animated-nav": e.animate ? "true" : void 0, className: s[b.Nav], style: g?.[b.Nav], "aria-label": jt(), onPreviousClick: kt, onNextClick: Gt, previousMonth: G, nextMonth: Q }),
2790
+ P === a - 1 && u === "after" && !e.hideNavigation && c.createElement(r.Nav, { "data-animated-nav": e.animate ? "true" : void 0, className: s[y.Nav], style: g?.[y.Nav], "aria-label": jt(), onPreviousClick: kt, onNextClick: Gt, previousMonth: G, nextMonth: Q }),
2817
2791
  c.createElement(
2818
2792
  r.MonthGrid,
2819
- { role: "grid", "aria-multiselectable": p === "multiple" || p === "range", "aria-label": Tt(C.date, n.options, n) || void 0, className: s[b.MonthGrid], style: g?.[b.MonthGrid] },
2793
+ { role: "grid", "aria-multiselectable": p === "multiple" || p === "range", "aria-label": Wt(S.date, n.options, n) || void 0, className: s[y.MonthGrid], style: g?.[y.MonthGrid] },
2820
2794
  !e.hideWeekdays && c.createElement(
2821
2795
  r.Weekdays,
2822
- { "data-animated-weekdays": e.animate ? "true" : void 0, className: s[b.Weekdays], style: g?.[b.Weekdays] },
2823
- _ && c.createElement(r.WeekNumberHeader, { "aria-label": bt(n.options), className: s[b.WeekNumberHeader], style: g?.[b.WeekNumberHeader], scope: "col" }, V()),
2824
- ve.map((D) => c.createElement(r.Weekday, { "aria-label": Bt(D, n.options, n), className: s[b.Weekday], key: String(D), style: g?.[b.Weekday], scope: "col" }, U(D, n.options, n)))
2796
+ { "data-animated-weekdays": e.animate ? "true" : void 0, className: s[y.Weekdays], style: g?.[y.Weekdays] },
2797
+ _ && c.createElement(r.WeekNumberHeader, { "aria-label": bt(n.options), className: s[y.WeekNumberHeader], style: g?.[y.WeekNumberHeader], scope: "col" }, V()),
2798
+ ke.map((C) => c.createElement(r.Weekday, { "aria-label": Bt(C, n.options, n), className: s[y.Weekday], key: String(C), style: g?.[y.Weekday], scope: "col" }, X(C, n.options, n)))
2825
2799
  ),
2826
- c.createElement(r.Weeks, { "data-animated-weeks": e.animate ? "true" : void 0, className: s[b.Weeks], style: g?.[b.Weeks] }, C.weeks.map((D) => c.createElement(
2800
+ c.createElement(r.Weeks, { "data-animated-weeks": e.animate ? "true" : void 0, className: s[y.Weeks], style: g?.[y.Weeks] }, S.weeks.map((C) => c.createElement(
2827
2801
  r.Week,
2828
- { className: s[b.Week], key: D.weekNumber, style: g?.[b.Week], week: D },
2802
+ { className: s[y.Week], key: C.weekNumber, style: g?.[y.Week], week: C },
2829
2803
  _ && // biome-ignore lint/a11y/useSemanticElements: react component
2830
- c.createElement(r.WeekNumber, { week: D, style: g?.[b.WeekNumber], "aria-label": ae(D.weekNumber, {
2804
+ c.createElement(r.WeekNumber, { week: C, style: g?.[y.WeekNumber], "aria-label": ae(C.weekNumber, {
2831
2805
  locale: l
2832
- }), className: s[b.WeekNumber], scope: "row", role: "rowheader" }, $(D.weekNumber, n)),
2833
- D.days.map((B) => {
2834
- const { date: it } = B, E = ht(B);
2835
- if (E[j.focused] = !E.hidden && !!at?.isEqualTo(B), E[vt.selected] = Nt?.(it) || E.selected, Be(A)) {
2836
- const { from: et, to: _t } = A;
2837
- E[vt.range_start] = !!(et && _t && n.isSameDay(it, et)), E[vt.range_end] = !!(et && _t && n.isSameDay(it, _t)), E[vt.range_middle] = Ct(A, it, !0, n);
2806
+ }), className: s[y.WeekNumber], scope: "row", role: "rowheader" }, $(C.weekNumber, n)),
2807
+ C.days.map((I) => {
2808
+ const { date: it } = I, q = ht(I);
2809
+ if (q[j.focused] = !q.hidden && !!at?.isEqualTo(I), q[vt.selected] = Nt?.(it) || q.selected, Fe(R)) {
2810
+ const { from: et, to: qt } = R;
2811
+ q[vt.range_start] = !!(et && qt && n.isSameDay(it, et)), q[vt.range_end] = !!(et && qt && n.isSameDay(it, qt)), q[vt.range_middle] = Ot(R, it, !0, n);
2838
2812
  }
2839
- const O = Za(E, g, e.modifiersStyles), Z = Pa(E, s, e.modifiersClassNames), K = !ot && !E.hidden ? Rt(it, E, n.options, n) : void 0;
2813
+ const O = rl(q, g, e.modifiersStyles), Z = js(q, s, e.modifiersClassNames), K = !ot && !q.hidden ? At(it, q, n.options, n) : void 0;
2840
2814
  return (
2841
2815
  // biome-ignore lint/a11y/useSemanticElements: react component
2842
- c.createElement(r.Day, { key: `${n.format(it, "yyyy-MM-dd")}_${n.format(B.displayMonth, "yyyy-MM")}`, day: B, modifiers: E, className: Z.join(" "), style: O, role: "gridcell", "aria-selected": E.selected || void 0, "aria-label": K, "data-day": n.format(it, "yyyy-MM-dd"), "data-month": B.outside ? n.format(it, "yyyy-MM") : void 0, "data-selected": E.selected || void 0, "data-disabled": E.disabled || void 0, "data-hidden": E.hidden || void 0, "data-outside": B.outside || void 0, "data-focused": E.focused || void 0, "data-today": E.today || void 0 }, !E.hidden && ot ? c.createElement(r.DayButton, { className: s[b.DayButton], style: g?.[b.DayButton], type: "button", day: B, modifiers: E, disabled: E.disabled || void 0, tabIndex: Wt(B) ? 0 : -1, "aria-label": At(it, E, n.options, n), onClick: ke(B, E), onBlur: xe(B, E), onFocus: Ht(B, E), onKeyDown: se(B, E), onMouseEnter: Zt(B, E), onMouseLeave: Et(B, E) }, M(it, n.options, n)) : !E.hidden && M(B.date, n.options, n))
2816
+ c.createElement(r.Day, { key: `${n.format(it, "yyyy-MM-dd")}_${n.format(I.displayMonth, "yyyy-MM")}`, day: I, modifiers: q, className: Z.join(" "), style: O, role: "gridcell", "aria-selected": q.selected || void 0, "aria-label": K, "data-day": n.format(it, "yyyy-MM-dd"), "data-month": I.outside ? n.format(it, "yyyy-MM") : void 0, "data-selected": q.selected || void 0, "data-disabled": q.disabled || void 0, "data-hidden": q.hidden || void 0, "data-outside": I.outside || void 0, "data-focused": q.focused || void 0, "data-today": q.today || void 0 }, !q.hidden && ot ? c.createElement(r.DayButton, { className: s[y.DayButton], style: g?.[y.DayButton], type: "button", day: I, modifiers: q, disabled: q.disabled || void 0, tabIndex: Tt(I) ? 0 : -1, "aria-label": Rt(it, q, n.options, n), onClick: xe(I, q), onBlur: Me(I, q), onFocus: Ht(I, q), onKeyDown: se(I, q), onMouseEnter: Zt(I, q), onMouseLeave: Et(I, q) }, M(it, n.options, n)) : !q.hidden && M(I.date, n.options, n))
2843
2817
  );
2844
2818
  })
2845
2819
  )))
@@ -2847,23 +2821,23 @@ function qs(t) {
2847
2821
  ))
2848
2822
  ),
2849
2823
  e.footer && // biome-ignore lint/a11y/useSemanticElements: react component
2850
- c.createElement(r.Footer, { className: s[b.Footer], style: g?.[b.Footer], role: "status", "aria-live": "polite" }, e.footer)
2824
+ c.createElement(r.Footer, { className: s[y.Footer], style: g?.[y.Footer], role: "status", "aria-live": "polite" }, e.footer)
2851
2825
  )
2852
2826
  );
2853
2827
  }
2854
- const _s = {
2855
- Chevron: () => /* @__PURE__ */ d(lr, { className: "h-5 w-5", strokeWidth: 1 })
2828
+ const Al = {
2829
+ Chevron: () => /* @__PURE__ */ m(gr, { className: "h-5 w-5", strokeWidth: 1 })
2856
2830
  };
2857
- function Il({
2831
+ function nm({
2858
2832
  className: t,
2859
2833
  colorScheme: e = "light",
2860
2834
  classNames: r,
2861
2835
  ...o
2862
2836
  }) {
2863
- return /* @__PURE__ */ d(
2864
- qs,
2837
+ return /* @__PURE__ */ m(
2838
+ Rl,
2865
2839
  {
2866
- className: st(
2840
+ className: lt(
2867
2841
  "box-content w-[280px] rounded-lg border p-3 font-[var(--calendar-font-family,var(--font-family-body))]",
2868
2842
  {
2869
2843
  light: "border-[var(--calendar-light-border,hsl(var(--contrast-100)))] bg-[var(--calendar-light-background,hsl(var(--background)))] text-[var(--calendar-light-text,hsl(var(--foreground)))]",
@@ -2875,14 +2849,14 @@ function Il({
2875
2849
  months: "relative",
2876
2850
  month_caption: "flex justify-center w-full font-medium pb-0.5",
2877
2851
  nav: "absolute flex justify-between w-full",
2878
- button_next: st(
2852
+ button_next: lt(
2879
2853
  "rotate-180 rounded-full focus-visible:outline-none focus-visible:ring-1",
2880
2854
  {
2881
2855
  light: "focus-visible:ring-[var(--calendar-light-focus,hsl(var(--foreground)))]",
2882
2856
  dark: "focus-visible:ring-[var(--calendar-dark-focus,hsl(var(--background)))]"
2883
2857
  }[e]
2884
2858
  ),
2885
- button_previous: st(
2859
+ button_previous: lt(
2886
2860
  "rounded-full focus-visible:outline-none focus-visible:ring-1",
2887
2861
  {
2888
2862
  light: "focus-visible:ring-[var(--calendar-light-focus,hsl(var(--foreground)))]",
@@ -2895,40 +2869,40 @@ function Il({
2895
2869
  weekday: "flex h-10 w-10 items-center justify-center text-xs font-medium",
2896
2870
  week: "flex",
2897
2871
  day: "h-10 w-10 flex text-xs font-medium group p-0",
2898
- day_button: st(
2872
+ day_button: lt(
2899
2873
  "flex h-full w-full items-center justify-center rounded-full focus-visible:outline-none focus-visible:ring-1 disabled:hover:border-none",
2900
2874
  {
2901
2875
  light: "hover:border hover:border-[var(--calendar-light-button-border-hover,hsl(var(--contrast-200)))] focus-visible:ring-[var(--calendar-light-focus,hsl(var(--foreground)))] group-data-[selected=true]/middle:bg-[var(--calendar-light-selected-middle-button-background,transparent)] group-data-[selected=true]:bg-[var(--calendar-light-selected-button-background,hsl(var(--primary)))] group-data-[selected=true]:text-[var(--calendar-light-selected-button-text,hsl(var(--foreground)))]",
2902
2876
  dark: "hover:border hover:border-[var(--calendar-dark-button-border-hover,hsl(var(--contrast-400)))] focus-visible:ring-[var(--calendar-dark-focus,hsl(var(--background)))] group-data-[selected=true]/middle:bg-[var(--calendar-dark-selected-middle-button-background,transparent)] group-data-[selected=true]:bg-[var(--calendar-dark-selected-button-background,hsl(var(--primary)))] group-data-[selected=true]:text-[var(--calendar-dark-selected-button-text,hsl(var(--foreground)))]"
2903
2877
  }[e]
2904
2878
  ),
2905
- disabled: st(
2879
+ disabled: lt(
2906
2880
  {
2907
2881
  light: "text-[var(--calendar-light-text-disabled,hsl(var(--contrast-300)))]",
2908
2882
  dark: "text-[var(--calendar-dark-text-disabled,hsl(var(--contrast-300)))]"
2909
2883
  }[e]
2910
2884
  ),
2911
- outside: st(
2885
+ outside: lt(
2912
2886
  {
2913
2887
  light: "text-[var(--calendar-light-text-disabled,hsl(var(--contrast-300)))]",
2914
2888
  dark: "text-[var(--calendar-dark-text-disabled,hsl(var(--contrast-300)))]"
2915
2889
  }[e]
2916
2890
  ),
2917
- range_start: st(
2891
+ range_start: lt(
2918
2892
  "bg-gradient-to-l",
2919
2893
  {
2920
2894
  light: "from-[var(--calendar-light-range-background,color-mix(in_oklab,hsl(var(--primary)),white_75%))]",
2921
2895
  dark: "from-[var(--calendar-dark-range-background,color-mix(in_oklab,hsl(var(--primary)),white_60%))]"
2922
2896
  }[e]
2923
2897
  ),
2924
- range_middle: st(
2898
+ range_middle: lt(
2925
2899
  "group/middle",
2926
2900
  {
2927
2901
  light: "bg-[var(--calendar-light-range-background,color-mix(in_oklab,hsl(var(--primary)),white_75%))]",
2928
2902
  dark: "bg-[var(--calendar-dark-range-background,color-mix(in_oklab,hsl(var(--primary)),white_60%))]"
2929
2903
  }[e]
2930
2904
  ),
2931
- range_end: st(
2905
+ range_end: lt(
2932
2906
  "bg-gradient-to-r",
2933
2907
  {
2934
2908
  light: "from-[var(--calendar-light-range-background,color-mix(in_oklab,hsl(var(--primary)),white_75%))]",
@@ -2937,42 +2911,181 @@ function Il({
2937
2911
  ),
2938
2912
  ...r
2939
2913
  },
2940
- components: _s,
2914
+ components: Al,
2941
2915
  ...o
2942
2916
  }
2943
2917
  );
2944
2918
  }
2945
- function Fl({ as: t, className: e, children: r, link: o, ...i }) {
2946
- return /* @__PURE__ */ z(Eo, { as: t, className: e, ...i, children: [
2919
+ function am({ as: t, className: e, children: r, link: o, ...i }) {
2920
+ return /* @__PURE__ */ D(bi, { as: t, className: e, ...i, children: [
2947
2921
  r,
2948
- o && /* @__PURE__ */ d(qo, { "aria-label": o.ariaLabel, href: o.href })
2922
+ o && /* @__PURE__ */ m(yi, { "aria-label": o.ariaLabel, href: o.href })
2949
2923
  ] });
2950
2924
  }
2951
- function zl({
2925
+ function sm({
2952
2926
  className: t,
2953
2927
  items: e,
2954
2928
  showScrollbar: r = !0,
2955
2929
  showNav: o = !0,
2956
2930
  ...i
2957
2931
  }) {
2958
- return /* @__PURE__ */ z(_o, { className: t, ...i, children: [
2959
- /* @__PURE__ */ d(Po, { children: /* @__PURE__ */ d(Yo, { children: e.map((n, l) => /* @__PURE__ */ d(Bo, { children: n }, l)) }) }),
2960
- /* @__PURE__ */ z(Io, { children: [
2961
- r && /* @__PURE__ */ d(Fo, {}),
2962
- o && /* @__PURE__ */ z(zo, { children: [
2963
- /* @__PURE__ */ d(Ao, { children: /* @__PURE__ */ d(Ee, { absoluteStrokeWidth: !0, className: "h-6 w-6", strokeWidth: 1.5 }) }),
2964
- /* @__PURE__ */ d(Ro, { children: /* @__PURE__ */ d(Jt, { absoluteStrokeWidth: !0, className: "h-6 w-6", strokeWidth: 1.5 }) })
2932
+ return /* @__PURE__ */ D(wi, { className: t, ...i, children: [
2933
+ /* @__PURE__ */ m(vi, { children: /* @__PURE__ */ m(ki, { children: e.map((n, l) => /* @__PURE__ */ m(xi, { children: n }, l)) }) }),
2934
+ /* @__PURE__ */ D(Mi, { children: [
2935
+ r && /* @__PURE__ */ m(Di, {}),
2936
+ o && /* @__PURE__ */ D(Ci, { children: [
2937
+ /* @__PURE__ */ m(Oi, { children: /* @__PURE__ */ m(qe, { absoluteStrokeWidth: !0, className: "h-6 w-6", strokeWidth: 1.5 }) }),
2938
+ /* @__PURE__ */ m(Si, { children: /* @__PURE__ */ m(Jt, { absoluteStrokeWidth: !0, className: "h-6 w-6", strokeWidth: 1.5 }) })
2965
2939
  ] })
2966
2940
  ] })
2967
2941
  ] });
2968
2942
  }
2969
- function Al({ className: t, children: e, removeLabel: r = "Remove", ...o }) {
2970
- return /* @__PURE__ */ z(Lo, { className: t, children: [
2943
+ function lm({
2944
+ className: t,
2945
+ title: e,
2946
+ image: r,
2947
+ link: o,
2948
+ textColorScheme: i = "light",
2949
+ iconColorScheme: n = "light",
2950
+ aspectRatio: l = "5:6",
2951
+ textPosition: s = "outside",
2952
+ textSize: d = "small",
2953
+ showOverlay: p = !0
2954
+ }) {
2955
+ return /* @__PURE__ */ D(
2956
+ Wi,
2957
+ {
2958
+ aspectRatio: l,
2959
+ className: t,
2960
+ iconColorScheme: n,
2961
+ showOverlay: p,
2962
+ textColorScheme: i,
2963
+ textSize: d,
2964
+ children: [
2965
+ /* @__PURE__ */ m(Ei, { children: /* @__PURE__ */ m(fr, { absoluteStrokeWidth: !0, strokeWidth: 1.5 }) }),
2966
+ /* @__PURE__ */ D(_i, { children: [
2967
+ r ? /* @__PURE__ */ m(qi, { alt: r.alt, src: r.src }) : /* @__PURE__ */ m(Pi, { children: e }),
2968
+ s === "inside" && /* @__PURE__ */ m(Yi, { children: /* @__PURE__ */ m(He, { children: e }) })
2969
+ ] }),
2970
+ s === "outside" && /* @__PURE__ */ m(He, { children: e }),
2971
+ /* @__PURE__ */ m(Bi, { "aria-label": o.ariaLabel, href: o.href })
2972
+ ]
2973
+ }
2974
+ );
2975
+ }
2976
+ function cm({ className: t, children: e, removeLabel: r = "Remove", ...o }) {
2977
+ return /* @__PURE__ */ D(Ii, { className: t, children: [
2971
2978
  e,
2972
- /* @__PURE__ */ d($o, { title: r, ...o })
2979
+ /* @__PURE__ */ m(Fi, { title: r, ...o })
2980
+ ] });
2981
+ }
2982
+ function jl({
2983
+ product: { title: t, subtitle: e, badge: r, price: o, image: i, link: n },
2984
+ colorScheme: l = "light",
2985
+ className: s,
2986
+ aspectRatio: d = "5:6",
2987
+ compareActions: p
2988
+ }) {
2989
+ return /* @__PURE__ */ D(
2990
+ zi,
2991
+ {
2992
+ aspectRatio: d,
2993
+ className: s,
2994
+ colorScheme: l,
2995
+ children: [
2996
+ /* @__PURE__ */ D(ko, { children: [
2997
+ /* @__PURE__ */ D(xo, { children: [
2998
+ i ? /* @__PURE__ */ m(Mo, { alt: i.alt, src: i.src }) : /* @__PURE__ */ m(Do, { children: t }),
2999
+ r != null && r !== "" && /* @__PURE__ */ m(Co, { children: r })
3000
+ ] }),
3001
+ /* @__PURE__ */ m(Ae, { "aria-label": n.ariaLabel, href: n.href })
3002
+ ] }),
3003
+ /* @__PURE__ */ D(Oo, { children: [
3004
+ /* @__PURE__ */ D(So, { children: [
3005
+ /* @__PURE__ */ m(No, { children: t }),
3006
+ e != null && e !== "" && /* @__PURE__ */ m(To, { children: e }),
3007
+ o && /* @__PURE__ */ m(Wo, { price: o }),
3008
+ /* @__PURE__ */ m(Ae, { "aria-label": n.ariaLabel, href: n.href })
3009
+ ] }),
3010
+ p && /* @__PURE__ */ D(Eo, { children: [
3011
+ /* @__PURE__ */ m(_o, { ...p }),
3012
+ /* @__PURE__ */ m(qo, { children: p.label })
3013
+ ] })
3014
+ ] })
3015
+ ]
3016
+ }
3017
+ );
3018
+ }
3019
+ function Hl({ showRating: t = !0, rating: e, className: r }) {
3020
+ return /* @__PURE__ */ D(Ri, { className: r, rating: e, showRating: t, children: [
3021
+ /* @__PURE__ */ m(Ai, {}),
3022
+ /* @__PURE__ */ m(ji, {})
2973
3023
  ] });
2974
3024
  }
2975
- function Rl({
3025
+ function mm({
3026
+ className: t,
3027
+ product: e,
3028
+ addToCartAction: r,
3029
+ addToCartLabel: o = "Add to cart",
3030
+ descriptionLabel: i = "Description",
3031
+ noDescriptionLabel: n = "There is no description available.",
3032
+ ratingLabel: l = "Rating",
3033
+ noRatingsLabel: s = "There are no reviews.",
3034
+ otherDetailsLabel: d = "Other details",
3035
+ noOtherDetailsLabel: p = "There are no other details.",
3036
+ viewOptionsLabel: u = "View options",
3037
+ preorderLabel: a = "Preorder",
3038
+ loading: f = !1
3039
+ }) {
3040
+ const {
3041
+ id: b,
3042
+ rating: w,
3043
+ description: N,
3044
+ specs: x,
3045
+ disabled: h,
3046
+ isPreorder: W,
3047
+ hasVariants: v,
3048
+ link: { href: _ }
3049
+ } = e;
3050
+ return /* @__PURE__ */ D(Jo, { className: t, children: [
3051
+ /* @__PURE__ */ D(ti, { children: [
3052
+ /* @__PURE__ */ m(jl, { product: e }),
3053
+ r != null && (v === !1 ? /* @__PURE__ */ D(ei, { action: r, children: [
3054
+ /* @__PURE__ */ m(ri, { name: "id", type: "hidden", value: b }),
3055
+ /* @__PURE__ */ m(
3056
+ Be,
3057
+ {
3058
+ className: "w-full",
3059
+ disabled: h,
3060
+ loading: f,
3061
+ size: "medium",
3062
+ type: "submit",
3063
+ children: W === !0 ? a : o
3064
+ }
3065
+ )
3066
+ ] }) : /* @__PURE__ */ m(_e, { className: "w-full", href: _, size: "medium", children: u }))
3067
+ ] }),
3068
+ /* @__PURE__ */ D(oi, { children: [
3069
+ /* @__PURE__ */ m(ii, { children: l }),
3070
+ w != null ? /* @__PURE__ */ m(Hl, { rating: w }) : /* @__PURE__ */ m(ni, { children: s })
3071
+ ] }),
3072
+ /* @__PURE__ */ D(ai, { children: [
3073
+ /* @__PURE__ */ m(si, { children: i }),
3074
+ N != null ? /* @__PURE__ */ m(lr, { children: /* @__PURE__ */ m(li, { children: N }) }) : /* @__PURE__ */ m(ci, { children: n })
3075
+ ] }),
3076
+ /* @__PURE__ */ D(mi, { children: [
3077
+ /* @__PURE__ */ m(di, { children: d }),
3078
+ x ? /* @__PURE__ */ m(lr, { children: /* @__PURE__ */ m(pi, { children: x.map(({ name: g, value: k }, M) => /* @__PURE__ */ D(no, { children: [
3079
+ /* @__PURE__ */ D(ui, { children: [
3080
+ g,
3081
+ ": "
3082
+ ] }),
3083
+ /* @__PURE__ */ m(fi, { children: k })
3084
+ ] }, M)) }) }) : /* @__PURE__ */ m(hi, { children: p })
3085
+ ] })
3086
+ ] });
3087
+ }
3088
+ function dm({
2976
3089
  items: t,
2977
3090
  container: e,
2978
3091
  submitHref: r,
@@ -2980,23 +3093,23 @@ function Rl({
2980
3093
  removeLabel: i = "Remove",
2981
3094
  onRemove: n
2982
3095
  }) {
2983
- return /* @__PURE__ */ d(Vo, { container: e, children: /* @__PURE__ */ d(Go, { children: /* @__PURE__ */ z(Zo, { children: [
2984
- /* @__PURE__ */ d(Xo, { children: t.map((l) => /* @__PURE__ */ z(Uo, { children: [
2985
- /* @__PURE__ */ z(Qo, { "aria-label": l.link.ariaLabel, href: l.link.href, children: [
2986
- /* @__PURE__ */ d(Ko, { children: l.image ? /* @__PURE__ */ d(Jo, { alt: l.image.alt, src: l.image.src }) : /* @__PURE__ */ d(ti, { children: l.title }) }),
2987
- /* @__PURE__ */ d(ei, { children: l.title })
3096
+ return /* @__PURE__ */ m(rn, { container: e, children: /* @__PURE__ */ m(on, { children: /* @__PURE__ */ D(nn, { children: [
3097
+ /* @__PURE__ */ m(an, { children: t.map((l) => /* @__PURE__ */ D(sn, { children: [
3098
+ /* @__PURE__ */ D(ln, { "aria-label": l.link.ariaLabel, href: l.link.href, children: [
3099
+ /* @__PURE__ */ m(cn, { children: l.image ? /* @__PURE__ */ m(mn, { alt: l.image.alt, src: l.image.src }) : /* @__PURE__ */ m(dn, { children: l.title }) }),
3100
+ /* @__PURE__ */ m(pn, { children: l.title })
2988
3101
  ] }),
2989
- /* @__PURE__ */ d(
2990
- ri,
3102
+ /* @__PURE__ */ m(
3103
+ un,
2991
3104
  {
2992
3105
  "aria-label": `${i} ${l.title}`,
2993
3106
  onClick: () => n?.(l.id),
2994
- children: /* @__PURE__ */ d(oi, { absoluteStrokeWidth: !0, size: 16, strokeWidth: 1.5 })
3107
+ children: /* @__PURE__ */ m(pr, { absoluteStrokeWidth: !0, size: 16, strokeWidth: 1.5 })
2995
3108
  }
2996
3109
  )
2997
3110
  ] }, l.id)) }),
2998
- /* @__PURE__ */ z(
2999
- Le,
3111
+ /* @__PURE__ */ D(
3112
+ _e,
3000
3113
  {
3001
3114
  className: "hidden @md:block",
3002
3115
  href: r,
@@ -3005,12 +3118,12 @@ function Rl({
3005
3118
  children: [
3006
3119
  o,
3007
3120
  " ",
3008
- /* @__PURE__ */ d(Jt, { absoluteStrokeWidth: !0, size: 20, strokeWidth: 1 })
3121
+ /* @__PURE__ */ m(Jt, { absoluteStrokeWidth: !0, size: 20, strokeWidth: 1 })
3009
3122
  ]
3010
3123
  }
3011
3124
  ),
3012
- /* @__PURE__ */ z(
3013
- Le,
3125
+ /* @__PURE__ */ D(
3126
+ _e,
3014
3127
  {
3015
3128
  className: "w-full @md:hidden",
3016
3129
  href: r,
@@ -3019,25 +3132,25 @@ function Rl({
3019
3132
  children: [
3020
3133
  o,
3021
3134
  " ",
3022
- /* @__PURE__ */ d(Jt, { absoluteStrokeWidth: !0, size: 16, strokeWidth: 1 })
3135
+ /* @__PURE__ */ m(Jt, { absoluteStrokeWidth: !0, size: 16, strokeWidth: 1 })
3023
3136
  ]
3024
3137
  }
3025
3138
  )
3026
3139
  ] }) }) });
3027
3140
  }
3028
- function jl({
3141
+ function pm({
3029
3142
  previousHref: t,
3030
3143
  nextHref: e,
3031
3144
  label: r = "pagination",
3032
3145
  previousLabel: o = "Go to previous page",
3033
3146
  nextLabel: i = "Go to next page"
3034
3147
  }) {
3035
- return /* @__PURE__ */ d(jo, { "aria-label": r, role: "navigation", children: /* @__PURE__ */ z(Ho, { children: [
3036
- /* @__PURE__ */ d(ze, { children: t != null ? /* @__PURE__ */ d(pe, { "aria-label": o, href: t, children: /* @__PURE__ */ d(Ee, { absoluteStrokeWidth: !0, size: 24, strokeWidth: 1 }) }) : /* @__PURE__ */ d(pe, { "aria-disabled": !0, "aria-label": o, children: /* @__PURE__ */ d(Ee, { absoluteStrokeWidth: !0, size: 24, strokeWidth: 1 }) }) }),
3037
- /* @__PURE__ */ d(ze, { children: e != null ? /* @__PURE__ */ d(pe, { "aria-label": i, href: e, children: /* @__PURE__ */ d(Jt, { absoluteStrokeWidth: !0, size: 24, strokeWidth: 1 }) }) : /* @__PURE__ */ d(pe, { "aria-disabled": !0, "aria-label": o, children: /* @__PURE__ */ d(Jt, { absoluteStrokeWidth: !0, size: 24, strokeWidth: 1 }) }) })
3148
+ return /* @__PURE__ */ m(Ni, { "aria-label": r, role: "navigation", children: /* @__PURE__ */ D(Ti, { children: [
3149
+ /* @__PURE__ */ m(je, { children: t != null ? /* @__PURE__ */ m(de, { "aria-label": o, href: t, children: /* @__PURE__ */ m(qe, { absoluteStrokeWidth: !0, size: 24, strokeWidth: 1 }) }) : /* @__PURE__ */ m(de, { "aria-disabled": !0, "aria-label": o, children: /* @__PURE__ */ m(qe, { absoluteStrokeWidth: !0, size: 24, strokeWidth: 1 }) }) }),
3150
+ /* @__PURE__ */ m(je, { children: e != null ? /* @__PURE__ */ m(de, { "aria-label": i, href: e, children: /* @__PURE__ */ m(Jt, { absoluteStrokeWidth: !0, size: 24, strokeWidth: 1 }) }) : /* @__PURE__ */ m(de, { "aria-disabled": !0, "aria-label": o, children: /* @__PURE__ */ m(Jt, { absoluteStrokeWidth: !0, size: 24, strokeWidth: 1 }) }) })
3038
3151
  ] }) });
3039
3152
  }
3040
- function Hl({
3153
+ function um({
3041
3154
  className: t,
3042
3155
  items: e,
3043
3156
  trigger: r,
@@ -3047,37 +3160,37 @@ function Hl({
3047
3160
  showScrollArea: l = !0,
3048
3161
  maxHeight: s = 320
3049
3162
  }) {
3050
- return /* @__PURE__ */ z(
3051
- ii,
3163
+ return /* @__PURE__ */ D(
3164
+ Hi,
3052
3165
  {
3053
3166
  align: o,
3054
3167
  maxHeight: s,
3055
3168
  showScrollArea: l,
3056
3169
  sideOffset: i,
3057
3170
  children: [
3058
- /* @__PURE__ */ d(ni, { asChild: !0, children: r !== void 0 ? r : /* @__PURE__ */ d(ko, { shape: "circle", size: "small", variant: "ghost", children: /* @__PURE__ */ d(dr, { size: 20 }) }) }),
3059
- /* @__PURE__ */ d(ai, { children: /* @__PURE__ */ d(si, { className: st(t), children: /* @__PURE__ */ z(li, { children: [
3060
- /* @__PURE__ */ d(ci, { children: n }),
3061
- e.map((m, p) => /* @__PURE__ */ d(mi, { menuKey: p, menuNode: m }, p))
3171
+ /* @__PURE__ */ m(Li, { asChild: !0, children: r !== void 0 ? r : /* @__PURE__ */ m(Be, { shape: "circle", size: "small", variant: "ghost", children: /* @__PURE__ */ m(vr, { size: 20 }) }) }),
3172
+ /* @__PURE__ */ m($i, { children: /* @__PURE__ */ m(Vi, { className: lt(t), children: /* @__PURE__ */ D(Gi, { children: [
3173
+ /* @__PURE__ */ m(Zi, { children: n }),
3174
+ e.map((d, p) => /* @__PURE__ */ m(Ui, { menuKey: p, menuNode: d }, p))
3062
3175
  ] }) }) })
3063
3176
  ]
3064
3177
  }
3065
3178
  );
3066
3179
  }
3067
- function Ll({ checked: t = !1, setChecked: e }) {
3068
- return /* @__PURE__ */ d(pi, { onPressedChange: e, pressed: t, children: /* @__PURE__ */ d(di, { filled: t }) });
3180
+ function fm({ checked: t = !1, setChecked: e }) {
3181
+ return /* @__PURE__ */ m(fn, { onPressedChange: e, pressed: t, children: /* @__PURE__ */ m(hn, { filled: t }) });
3069
3182
  }
3070
- function $l({ className: t, children: e, ...r }) {
3071
- return /* @__PURE__ */ z(
3183
+ function hm({ className: t, children: e, ...r }) {
3184
+ return /* @__PURE__ */ D(
3072
3185
  "div",
3073
3186
  {
3074
- className: st(
3187
+ className: lt(
3075
3188
  "flex items-center gap-1 text-xs text-[var(--field-error,hsl(var(--error)))]",
3076
3189
  t
3077
3190
  ),
3078
3191
  ...r,
3079
3192
  children: [
3080
- /* @__PURE__ */ d(mr, { size: 20, strokeWidth: 1.5 }),
3193
+ /* @__PURE__ */ m(yr, { size: 20, strokeWidth: 1.5 }),
3081
3194
  e
3082
3195
  ]
3083
3196
  }
@@ -3089,7 +3202,7 @@ function $l({ className: t, children: e, ...r }) {
3089
3202
  * This source code is licensed under the ISC license.
3090
3203
  * See the LICENSE file in the root directory of this source tree.
3091
3204
  */
3092
- const or = {
3205
+ const sr = {
3093
3206
  "a-arrow-down": () => import("./a-arrow-down-D3tCVmzX.js"),
3094
3207
  "a-arrow-up": () => import("./a-arrow-up-D5c408i-.js"),
3095
3208
  "a-large-small": () => import("./a-large-small-jdBVKWoz.js"),
@@ -3192,7 +3305,7 @@ const or = {
3192
3305
  "arrow-up-left": () => import("./arrow-up-left-Dc0wH3IL.js"),
3193
3306
  "arrow-up-narrow-wide": () => import("./arrow-up-narrow-wide-CsZbouk_.js"),
3194
3307
  "sort-asc": () => import("./arrow-up-narrow-wide-CsZbouk_.js"),
3195
- "arrow-up-right": () => import("./arrow-up-right-D7smpXBs.js"),
3308
+ "arrow-up-right": () => Promise.resolve().then(() => Bn),
3196
3309
  "arrow-up-to-line": () => import("./arrow-up-to-line-ClyTovyG.js"),
3197
3310
  "arrow-up-wide-narrow": () => import("./arrow-up-wide-narrow-D0SrwjqN.js"),
3198
3311
  "arrow-up-z-a": () => import("./arrow-up-z-a-C1zLgphx.js"),
@@ -3445,7 +3558,7 @@ const or = {
3445
3558
  "chevron-down": () => import("./chevron-down-CjW8zgR8.js"),
3446
3559
  "chevron-first": () => import("./chevron-first-B_WjookT.js"),
3447
3560
  "chevron-last": () => import("./chevron-last-C_QQ4FrF.js"),
3448
- "chevron-left": () => Promise.resolve().then(() => Ni),
3561
+ "chevron-left": () => Promise.resolve().then(() => In),
3449
3562
  "chevron-right": () => import("./dropdown-menu-node-4Pe3uXjC.js").then((t) => t.n),
3450
3563
  "chevron-up": () => import("./chevron-up-D1nhkius.js"),
3451
3564
  "chevrons-down-up": () => import("./chevrons-down-up-Bj04wTTb.js"),
@@ -3462,8 +3575,8 @@ const or = {
3462
3575
  church: () => import("./church-BjKc11_V.js"),
3463
3576
  "cigarette-off": () => import("./cigarette-off-CwxhR3DJ.js"),
3464
3577
  cigarette: () => import("./cigarette-lU0QUN7y.js"),
3465
- "circle-alert": () => Promise.resolve().then(() => je),
3466
- "alert-circle": () => Promise.resolve().then(() => je),
3578
+ "circle-alert": () => Promise.resolve().then(() => Ge),
3579
+ "alert-circle": () => Promise.resolve().then(() => Ge),
3467
3580
  "circle-arrow-down": () => import("./circle-arrow-down-DXDFgA7r.js"),
3468
3581
  "arrow-down-circle": () => import("./circle-arrow-down-DXDFgA7r.js"),
3469
3582
  "circle-arrow-left": () => import("./circle-arrow-left-DuaeA6t1.js"),
@@ -3717,8 +3830,8 @@ const or = {
3717
3830
  egg: () => import("./egg-rBgNeWeZ.js"),
3718
3831
  "ellipsis-vertical": () => import("./ellipsis-vertical-w8lB1LuS.js"),
3719
3832
  "more-vertical": () => import("./ellipsis-vertical-w8lB1LuS.js"),
3720
- ellipsis: () => Promise.resolve().then(() => He),
3721
- "more-horizontal": () => Promise.resolve().then(() => He),
3833
+ ellipsis: () => Promise.resolve().then(() => Ze),
3834
+ "more-horizontal": () => Promise.resolve().then(() => Ze),
3722
3835
  "equal-approximately": () => import("./equal-approximately-COVYqn-B.js"),
3723
3836
  "equal-not": () => import("./equal-not-hZy4vAP-.js"),
3724
3837
  equal: () => import("./equal-DezjzenD.js"),
@@ -4957,28 +5070,28 @@ const or = {
4957
5070
  "zoom-in": () => import("./zoom-in-CpTcw5K9.js"),
4958
5071
  "zoom-out": () => import("./zoom-out-Dxz7uBTZ.js")
4959
5072
  };
4960
- async function Ps(t) {
4961
- if (!(t in or))
5073
+ async function Ll(t) {
5074
+ if (!(t in sr))
4962
5075
  throw new Error("[lucide-react]: Name in Lucide DynamicIcon not found");
4963
- return (await or[t]()).__iconNode;
5076
+ return (await sr[t]()).__iconNode;
4964
5077
  }
4965
- const Ys = So(
5078
+ const $l = ao(
4966
5079
  ({ name: t, fallback: e, ...r }, o) => {
4967
5080
  const [i, n] = he();
4968
- return ar(() => {
4969
- Ps(t).then(n).catch((l) => {
5081
+ return dr(() => {
5082
+ Ll(t).then(n).catch((l) => {
4970
5083
  console.error(l);
4971
5084
  });
4972
- }, [t]), i == null ? e == null ? null : Fe(e) : Fe(To, {
5085
+ }, [t]), i == null ? e == null ? null : Re(e) : Re(gi, {
4973
5086
  ref: o,
4974
5087
  ...r,
4975
5088
  iconNode: i
4976
5089
  });
4977
5090
  }
4978
5091
  );
4979
- function Vl({ className: t, name: e, size: r = 24, strokeWidth: o = 1.5, ...i }) {
4980
- return /* @__PURE__ */ d(
4981
- Ys,
5092
+ function gm({ className: t, name: e, size: r = 24, strokeWidth: o = 1.5, ...i }) {
5093
+ return /* @__PURE__ */ m(
5094
+ $l,
4982
5095
  {
4983
5096
  className: t,
4984
5097
  name: e,
@@ -4988,29 +5101,39 @@ function Vl({ className: t, name: e, size: r = 24, strokeWidth: o = 1.5, ...i })
4988
5101
  }
4989
5102
  );
4990
5103
  }
4991
- function Gl({ className: t, logo: e, link: r }) {
5104
+ function bm({ className: t, logo: e, link: r }) {
4992
5105
  let o;
4993
- if (typeof e == "string" ? o = /* @__PURE__ */ d(ui, { children: e }) : "src" in e ? o = /* @__PURE__ */ d(Ae, { alt: e.alt, src: e.src }) : o = /* @__PURE__ */ d(Ae, { asChild: !0, children: e.children }), "href" in r)
4994
- return /* @__PURE__ */ d(Re, { "aria-label": r.ariaLabel, className: t, href: r.href, children: o });
4995
- const i = No(r.children) ? Wo(r.children, {}, o) : r.children;
4996
- return /* @__PURE__ */ d(Re, { asChild: !0, className: t, children: i });
4997
- }
4998
- function Zl({ className: t, children: e, isOpen: r, setOpen: o, title: i, trigger: n }) {
4999
- return /* @__PURE__ */ z(fi, { onOpenChange: o, open: r, children: [
5000
- /* @__PURE__ */ d(hi, { asChild: !0, children: n }),
5001
- /* @__PURE__ */ d(gi, { children: /* @__PURE__ */ d(bi, { children: /* @__PURE__ */ z(yi, { className: t, onOpenAutoFocus: (l) => l.preventDefault(), children: [
5002
- /* @__PURE__ */ d(wi, { children: i }),
5106
+ if (typeof e == "string" ? o = /* @__PURE__ */ m(gn, { children: e }) : "src" in e ? o = /* @__PURE__ */ m(Le, { alt: e.alt, src: e.src }) : o = /* @__PURE__ */ m(Le, { asChild: !0, children: e.children }), "href" in r)
5107
+ return /* @__PURE__ */ m($e, { "aria-label": r.ariaLabel, className: t, href: r.href, children: o });
5108
+ const i = so(r.children) ? lo(r.children, {}, o) : r.children;
5109
+ return /* @__PURE__ */ m($e, { asChild: !0, className: t, children: i });
5110
+ }
5111
+ function ym({ className: t, children: e, isOpen: r, setOpen: o, title: i, trigger: n }) {
5112
+ return /* @__PURE__ */ D(bn, { onOpenChange: o, open: r, children: [
5113
+ /* @__PURE__ */ m(yn, { asChild: !0, children: n }),
5114
+ /* @__PURE__ */ m(wn, { children: /* @__PURE__ */ m(vn, { children: /* @__PURE__ */ D(kn, { className: t, onOpenAutoFocus: (l) => l.preventDefault(), children: [
5115
+ /* @__PURE__ */ m(xn, { children: i }),
5003
5116
  e
5004
5117
  ] }) }) })
5005
5118
  ] });
5006
5119
  }
5007
- function Xl({ showRating: t = !0, rating: e, className: r }) {
5008
- return /* @__PURE__ */ z(vi, { className: r, rating: e, showRating: t, children: [
5009
- /* @__PURE__ */ d(ki, {}),
5010
- /* @__PURE__ */ d(xi, {})
5011
- ] });
5120
+ function wm({
5121
+ pages: t,
5122
+ currentPage: e,
5123
+ label: r = "pagination"
5124
+ }) {
5125
+ return /* @__PURE__ */ m(Mn, { "aria-label": r, role: "navigation", children: /* @__PURE__ */ m(Dn, { children: t.map(
5126
+ (o, i) => o === "ellipsis" ? /* @__PURE__ */ m(Ve, { children: /* @__PURE__ */ m(Cn, {}) }, `ellipsis-${i}`) : /* @__PURE__ */ m(Ve, { children: /* @__PURE__ */ m(
5127
+ On,
5128
+ {
5129
+ "aria-current": o.page === e ? "page" : void 0,
5130
+ href: o.href,
5131
+ children: o.page
5132
+ }
5133
+ ) }, o.page)
5134
+ ) }) });
5012
5135
  }
5013
- function Ul({
5136
+ function lr({
5014
5137
  className: t,
5015
5138
  variant: e = "underline",
5016
5139
  showLabel: r = "Show more",
@@ -5019,8 +5142,8 @@ function Ul({
5019
5142
  maxHeight: n = 160,
5020
5143
  children: l
5021
5144
  }) {
5022
- return /* @__PURE__ */ z(
5023
- eo,
5145
+ return /* @__PURE__ */ D(
5146
+ bo,
5024
5147
  {
5025
5148
  className: t,
5026
5149
  defaultOpen: i,
@@ -5029,18 +5152,30 @@ function Ul({
5029
5152
  showLabel: r,
5030
5153
  variant: e,
5031
5154
  children: [
5032
- /* @__PURE__ */ d(ro, { children: l }),
5033
- /* @__PURE__ */ d(oo, { children: /* @__PURE__ */ d(io, {}) })
5155
+ /* @__PURE__ */ m(yo, { children: l }),
5156
+ /* @__PURE__ */ m(wo, { children: /* @__PURE__ */ m(vo, {}) })
5034
5157
  ]
5035
5158
  }
5036
5159
  );
5037
5160
  }
5038
- function Ql({ className: t, size: e = "sm", ...r }) {
5039
- return /* @__PURE__ */ d(
5161
+ function vm({ title: t, children: e, trigger: r, container: o }) {
5162
+ return /* @__PURE__ */ D(Sn, { children: [
5163
+ /* @__PURE__ */ m(Nn, { asChild: !0, children: r }),
5164
+ /* @__PURE__ */ m(Tn, { container: o, children: /* @__PURE__ */ m(Wn, { children: /* @__PURE__ */ D(En, { forceMount: !0, children: [
5165
+ /* @__PURE__ */ D(_n, { children: [
5166
+ /* @__PURE__ */ m(qn, { children: t }),
5167
+ /* @__PURE__ */ m(Pn, { asChild: !0, children: /* @__PURE__ */ m(Be, { shape: "circle", size: "small", variant: "tertiary", children: /* @__PURE__ */ m(pr, { size: 20, strokeWidth: 1 }) }) })
5168
+ ] }),
5169
+ /* @__PURE__ */ m(Xi, { children: /* @__PURE__ */ m(Yn, { children: e }) })
5170
+ ] }) }) })
5171
+ ] });
5172
+ }
5173
+ function km({ className: t, size: e = "sm", ...r }) {
5174
+ return /* @__PURE__ */ m(
5040
5175
  "span",
5041
5176
  {
5042
5177
  "aria-label": "Loading...",
5043
- className: st(
5178
+ className: lt(
5044
5179
  "box-border inline-block animate-spin rounded-full border-[var(--spinner-base,hsl(var(--contrast-100)))] [border-bottom-color:var(--spinner-ring,color-mix(in_oklab,hsl(var(--primary)),black_75%))]",
5045
5180
  {
5046
5181
  xs: "h-5 w-5 border-2",
@@ -5055,31 +5190,31 @@ function Ql({ className: t, size: e = "sm", ...r }) {
5055
5190
  }
5056
5191
  );
5057
5192
  }
5058
- function Kl({ className: t, defaultValue: e, tabs: r, ...o }) {
5059
- return /* @__PURE__ */ z(Mi, { className: t, defaultValue: e, ...o, children: [
5060
- /* @__PURE__ */ d(Di, { children: r.map(({ label: i, value: n }) => /* @__PURE__ */ d(Oi, { value: n, children: i }, n)) }),
5061
- r.map(({ content: i, value: n }) => /* @__PURE__ */ d(Ci, { value: n, children: i }, n))
5193
+ function xm({ className: t, defaultValue: e, tabs: r, ...o }) {
5194
+ return /* @__PURE__ */ D(Qi, { className: t, defaultValue: e, ...o, children: [
5195
+ /* @__PURE__ */ m(Ki, { children: r.map(({ label: i, value: n }) => /* @__PURE__ */ m(Ji, { value: n, children: i }, n)) }),
5196
+ r.map(({ content: i, value: n }) => /* @__PURE__ */ m(tn, { value: n, children: i }, n))
5062
5197
  ] });
5063
5198
  }
5064
- function Bs(t) {
5199
+ function Vl(t) {
5065
5200
  if (typeof document > "u") return;
5066
5201
  let e = document.head || document.getElementsByTagName("head")[0], r = document.createElement("style");
5067
5202
  r.type = "text/css", e.appendChild(r), r.styleSheet ? r.styleSheet.cssText = t : r.appendChild(document.createTextNode(t));
5068
5203
  }
5069
- const Is = (t) => {
5204
+ const Gl = (t) => {
5070
5205
  switch (t) {
5071
5206
  case "success":
5072
- return As;
5207
+ return Xl;
5073
5208
  case "info":
5074
- return js;
5209
+ return Kl;
5075
5210
  case "warning":
5076
- return Rs;
5211
+ return Ql;
5077
5212
  case "error":
5078
- return Hs;
5213
+ return Jl;
5079
5214
  default:
5080
5215
  return null;
5081
5216
  }
5082
- }, Fs = Array(12).fill(0), zs = ({ visible: t, className: e }) => /* @__PURE__ */ c.createElement("div", {
5217
+ }, Zl = Array(12).fill(0), Ul = ({ visible: t, className: e }) => /* @__PURE__ */ c.createElement("div", {
5083
5218
  className: [
5084
5219
  "sonner-loading-wrapper",
5085
5220
  e
@@ -5087,10 +5222,10 @@ const Is = (t) => {
5087
5222
  "data-visible": t
5088
5223
  }, /* @__PURE__ */ c.createElement("div", {
5089
5224
  className: "sonner-spinner"
5090
- }, Fs.map((r, o) => /* @__PURE__ */ c.createElement("div", {
5225
+ }, Zl.map((r, o) => /* @__PURE__ */ c.createElement("div", {
5091
5226
  className: "sonner-loading-bar",
5092
5227
  key: `spinner-bar-${o}`
5093
- })))), As = /* @__PURE__ */ c.createElement("svg", {
5228
+ })))), Xl = /* @__PURE__ */ c.createElement("svg", {
5094
5229
  xmlns: "http://www.w3.org/2000/svg",
5095
5230
  viewBox: "0 0 20 20",
5096
5231
  fill: "currentColor",
@@ -5100,7 +5235,7 @@ const Is = (t) => {
5100
5235
  fillRule: "evenodd",
5101
5236
  d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",
5102
5237
  clipRule: "evenodd"
5103
- })), Rs = /* @__PURE__ */ c.createElement("svg", {
5238
+ })), Ql = /* @__PURE__ */ c.createElement("svg", {
5104
5239
  xmlns: "http://www.w3.org/2000/svg",
5105
5240
  viewBox: "0 0 24 24",
5106
5241
  fill: "currentColor",
@@ -5110,7 +5245,7 @@ const Is = (t) => {
5110
5245
  fillRule: "evenodd",
5111
5246
  d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
5112
5247
  clipRule: "evenodd"
5113
- })), js = /* @__PURE__ */ c.createElement("svg", {
5248
+ })), Kl = /* @__PURE__ */ c.createElement("svg", {
5114
5249
  xmlns: "http://www.w3.org/2000/svg",
5115
5250
  viewBox: "0 0 20 20",
5116
5251
  fill: "currentColor",
@@ -5120,7 +5255,7 @@ const Is = (t) => {
5120
5255
  fillRule: "evenodd",
5121
5256
  d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",
5122
5257
  clipRule: "evenodd"
5123
- })), Hs = /* @__PURE__ */ c.createElement("svg", {
5258
+ })), Jl = /* @__PURE__ */ c.createElement("svg", {
5124
5259
  xmlns: "http://www.w3.org/2000/svg",
5125
5260
  viewBox: "0 0 20 20",
5126
5261
  fill: "currentColor",
@@ -5130,7 +5265,7 @@ const Is = (t) => {
5130
5265
  fillRule: "evenodd",
5131
5266
  d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",
5132
5267
  clipRule: "evenodd"
5133
- })), Ls = /* @__PURE__ */ c.createElement("svg", {
5268
+ })), tc = /* @__PURE__ */ c.createElement("svg", {
5134
5269
  xmlns: "http://www.w3.org/2000/svg",
5135
5270
  width: "12",
5136
5271
  height: "12",
@@ -5150,7 +5285,7 @@ const Is = (t) => {
5150
5285
  y1: "6",
5151
5286
  x2: "18",
5152
5287
  y2: "18"
5153
- })), $s = () => {
5288
+ })), ec = () => {
5154
5289
  const [t, e] = c.useState(document.hidden);
5155
5290
  return c.useEffect(() => {
5156
5291
  const r = () => {
@@ -5159,8 +5294,8 @@ const Is = (t) => {
5159
5294
  return document.addEventListener("visibilitychange", r), () => window.removeEventListener("visibilitychange", r);
5160
5295
  }, []), t;
5161
5296
  };
5162
- let _e = 1;
5163
- class Vs {
5297
+ let Ye = 1;
5298
+ class rc {
5164
5299
  constructor() {
5165
5300
  this.subscribe = (e) => (this.subscribers.push(e), () => {
5166
5301
  const r = this.subscribers.indexOf(e);
@@ -5174,19 +5309,19 @@ class Vs {
5174
5309
  ];
5175
5310
  }, this.create = (e) => {
5176
5311
  var r;
5177
- const { message: o, ...i } = e, n = typeof e?.id == "number" || ((r = e.id) == null ? void 0 : r.length) > 0 ? e.id : _e++, l = this.toasts.find((m) => m.id === n), s = e.dismissible === void 0 ? !0 : e.dismissible;
5178
- return this.dismissedToasts.has(n) && this.dismissedToasts.delete(n), l ? this.toasts = this.toasts.map((m) => m.id === n ? (this.publish({
5179
- ...m,
5312
+ const { message: o, ...i } = e, n = typeof e?.id == "number" || ((r = e.id) == null ? void 0 : r.length) > 0 ? e.id : Ye++, l = this.toasts.find((d) => d.id === n), s = e.dismissible === void 0 ? !0 : e.dismissible;
5313
+ return this.dismissedToasts.has(n) && this.dismissedToasts.delete(n), l ? this.toasts = this.toasts.map((d) => d.id === n ? (this.publish({
5314
+ ...d,
5180
5315
  ...e,
5181
5316
  id: n,
5182
5317
  title: o
5183
5318
  }), {
5184
- ...m,
5319
+ ...d,
5185
5320
  ...e,
5186
5321
  id: n,
5187
5322
  dismissible: s,
5188
5323
  title: o
5189
- }) : m) : this.addToast({
5324
+ }) : d) : this.addToast({
5190
5325
  title: o,
5191
5326
  ...i,
5192
5327
  dismissible: s,
@@ -5246,7 +5381,7 @@ class Vs {
5246
5381
  type: "default",
5247
5382
  message: p
5248
5383
  });
5249
- else if (Zs(p) && !p.ok) {
5384
+ else if (ic(p) && !p.ok) {
5250
5385
  n = !1;
5251
5386
  const a = typeof r.error == "function" ? await r.error(`HTTP error! status: ${p.status}`) : r.error, f = typeof r.description == "function" ? await r.description(`HTTP error! status: ${p.status}`) : r.description, w = typeof a == "object" && !c.isValidElement(a) ? a : {
5252
5387
  message: a
@@ -5286,26 +5421,26 @@ class Vs {
5286
5421
  p
5287
5422
  ], r.error !== void 0) {
5288
5423
  n = !1;
5289
- const u = typeof r.error == "function" ? await r.error(p) : r.error, a = typeof r.description == "function" ? await r.description(p) : r.description, y = typeof u == "object" && !c.isValidElement(u) ? u : {
5424
+ const u = typeof r.error == "function" ? await r.error(p) : r.error, a = typeof r.description == "function" ? await r.description(p) : r.description, b = typeof u == "object" && !c.isValidElement(u) ? u : {
5290
5425
  message: u
5291
5426
  };
5292
5427
  this.create({
5293
5428
  id: o,
5294
5429
  type: "error",
5295
5430
  description: a,
5296
- ...y
5431
+ ...b
5297
5432
  });
5298
5433
  }
5299
5434
  }).finally(() => {
5300
5435
  n && (this.dismiss(o), o = void 0), r.finally == null || r.finally.call(r);
5301
- }), m = () => new Promise((p, u) => s.then(() => l[0] === "reject" ? u(l[1]) : p(l[1])).catch(u));
5436
+ }), d = () => new Promise((p, u) => s.then(() => l[0] === "reject" ? u(l[1]) : p(l[1])).catch(u));
5302
5437
  return typeof o != "string" && typeof o != "number" ? {
5303
- unwrap: m
5438
+ unwrap: d
5304
5439
  } : Object.assign(o, {
5305
- unwrap: m
5440
+ unwrap: d
5306
5441
  });
5307
5442
  }, this.custom = (e, r) => {
5308
- const o = r?.id || _e++;
5443
+ const o = r?.id || Ye++;
5309
5444
  return this.create({
5310
5445
  jsx: e(o),
5311
5446
  id: o,
@@ -5314,57 +5449,57 @@ class Vs {
5314
5449
  }, this.getActiveToasts = () => this.toasts.filter((e) => !this.dismissedToasts.has(e.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set();
5315
5450
  }
5316
5451
  }
5317
- const lt = new Vs(), Gs = (t, e) => {
5318
- const r = e?.id || _e++;
5319
- return lt.addToast({
5452
+ const st = new rc(), oc = (t, e) => {
5453
+ const r = e?.id || Ye++;
5454
+ return st.addToast({
5320
5455
  title: t,
5321
5456
  ...e,
5322
5457
  id: r
5323
5458
  }), r;
5324
- }, Zs = (t) => t && typeof t == "object" && "ok" in t && typeof t.ok == "boolean" && "status" in t && typeof t.status == "number", Xs = Gs, Us = () => lt.toasts, Qs = () => lt.getActiveToasts(), Yt = Object.assign(Xs, {
5325
- success: lt.success,
5326
- info: lt.info,
5327
- warning: lt.warning,
5328
- error: lt.error,
5329
- custom: lt.custom,
5330
- message: lt.message,
5331
- promise: lt.promise,
5332
- dismiss: lt.dismiss,
5333
- loading: lt.loading
5459
+ }, ic = (t) => t && typeof t == "object" && "ok" in t && typeof t.ok == "boolean" && "status" in t && typeof t.status == "number", nc = oc, ac = () => st.toasts, sc = () => st.getActiveToasts(), Yt = Object.assign(nc, {
5460
+ success: st.success,
5461
+ info: st.info,
5462
+ warning: st.warning,
5463
+ error: st.error,
5464
+ custom: st.custom,
5465
+ message: st.message,
5466
+ promise: st.promise,
5467
+ dismiss: st.dismiss,
5468
+ loading: st.loading
5334
5469
  }, {
5335
- getHistory: Us,
5336
- getToasts: Qs
5470
+ getHistory: ac,
5471
+ getToasts: sc
5337
5472
  });
5338
- Bs("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
5473
+ Vl("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
5339
5474
  function ue(t) {
5340
5475
  return t.label !== void 0;
5341
5476
  }
5342
- const Ks = 3, Js = "24px", tl = "16px", ir = 4e3, el = 356, rl = 14, ol = 45, il = 200;
5477
+ const lc = 3, cc = "24px", mc = "16px", cr = 4e3, dc = 356, pc = 14, uc = 45, fc = 200;
5343
5478
  function xt(...t) {
5344
5479
  return t.filter(Boolean).join(" ");
5345
5480
  }
5346
- function nl(t) {
5481
+ function hc(t) {
5347
5482
  const [e, r] = t.split("-"), o = [];
5348
5483
  return e && o.push(e), r && o.push(r), o;
5349
5484
  }
5350
- const al = (t) => {
5351
- var e, r, o, i, n, l, s, m, p;
5352
- const { invert: u, toast: a, unstyled: f, interacting: y, setHeights: w, visibleToasts: W, heights: x, index: h, toasts: T, expanded: v, removeToast: _, defaultRichColors: g, closeButton: k, style: M, cancelButtonStyle: S, actionButtonStyle: $, className: V = "", descriptionClassName: U = "", duration: J, position: tt, gap: ft, expandByDefault: pt, classNames: P, icons: H, closeButtonAriaLabel: G = "Close toast" } = t, [Q, L] = c.useState(null), [ht, Nt] = c.useState(null), [N, A] = c.useState(!1), [R, at] = c.useState(!1), [Wt, F] = c.useState(!1), [gt, At] = c.useState(!1), [Rt, Tt] = c.useState(!1), [be, jt] = c.useState(0), [ye, ne] = c.useState(0), Bt = c.useRef(a.duration || J || ir), ae = c.useRef(null), bt = c.useRef(null), we = h === 0, ve = h + 1 <= W, ot = a.type, kt = a.dismissible !== !1, Gt = a.className || "", ke = a.descriptionClassName || "", Ht = c.useMemo(() => x.findIndex((O) => O.toastId === a.id) || 0, [
5485
+ const gc = (t) => {
5486
+ var e, r, o, i, n, l, s, d, p;
5487
+ const { invert: u, toast: a, unstyled: f, interacting: b, setHeights: w, visibleToasts: N, heights: x, index: h, toasts: W, expanded: v, removeToast: _, defaultRichColors: g, closeButton: k, style: M, cancelButtonStyle: T, actionButtonStyle: $, className: V = "", descriptionClassName: X = "", duration: J, position: tt, gap: ft, expandByDefault: dt, classNames: Y, icons: H, closeButtonAriaLabel: G = "Close toast" } = t, [Q, L] = c.useState(null), [ht, Nt] = c.useState(null), [E, R] = c.useState(!1), [A, at] = c.useState(!1), [Tt, z] = c.useState(!1), [gt, Rt] = c.useState(!1), [At, Wt] = c.useState(!1), [ye, jt] = c.useState(0), [we, ne] = c.useState(0), Bt = c.useRef(a.duration || J || cr), ae = c.useRef(null), bt = c.useRef(null), ve = h === 0, ke = h + 1 <= N, ot = a.type, kt = a.dismissible !== !1, Gt = a.className || "", xe = a.descriptionClassName || "", Ht = c.useMemo(() => x.findIndex((O) => O.toastId === a.id) || 0, [
5353
5488
  x,
5354
5489
  a.id
5355
- ]), xe = c.useMemo(() => {
5490
+ ]), Me = c.useMemo(() => {
5356
5491
  var O;
5357
5492
  return (O = a.closeButton) != null ? O : k;
5358
5493
  }, [
5359
5494
  a.closeButton,
5360
5495
  k
5361
- ]), se = c.useMemo(() => a.duration || J || ir, [
5496
+ ]), se = c.useMemo(() => a.duration || J || cr, [
5362
5497
  a.duration,
5363
5498
  J
5364
- ]), Zt = c.useRef(0), Et = c.useRef(0), le = c.useRef(0), qt = c.useRef(null), [Me, De] = tt.split("-"), ce = c.useMemo(() => x.reduce((O, Z, K) => K >= Ht ? O : O + Z.height, 0), [
5499
+ ]), Zt = c.useRef(0), Et = c.useRef(0), le = c.useRef(0), _t = c.useRef(null), [De, Ce] = tt.split("-"), ce = c.useMemo(() => x.reduce((O, Z, K) => K >= Ht ? O : O + Z.height, 0), [
5365
5500
  x,
5366
5501
  Ht
5367
- ]), Xt = $s(), Oe = a.invert || u, C = ot === "loading";
5502
+ ]), Ut = ec(), Oe = a.invert || u, S = ot === "loading";
5368
5503
  Et.current = c.useMemo(() => Ht * ft + ce, [
5369
5504
  Ht,
5370
5505
  ce
@@ -5373,7 +5508,7 @@ const al = (t) => {
5373
5508
  }, [
5374
5509
  se
5375
5510
  ]), c.useEffect(() => {
5376
- A(!0);
5511
+ R(!0);
5377
5512
  }, []), c.useEffect(() => {
5378
5513
  const O = bt.current;
5379
5514
  if (O) {
@@ -5391,7 +5526,7 @@ const al = (t) => {
5391
5526
  w,
5392
5527
  a.id
5393
5528
  ]), c.useLayoutEffect(() => {
5394
- if (!N) return;
5529
+ if (!E) return;
5395
5530
  const O = bt.current, Z = O.style.height;
5396
5531
  O.style.height = "auto";
5397
5532
  const K = O.getBoundingClientRect().height;
@@ -5407,7 +5542,7 @@ const al = (t) => {
5407
5542
  ...et
5408
5543
  ]);
5409
5544
  }, [
5410
- N,
5545
+ E,
5411
5546
  a.title,
5412
5547
  a.description,
5413
5548
  w,
@@ -5416,10 +5551,10 @@ const al = (t) => {
5416
5551
  a.action,
5417
5552
  a.cancel
5418
5553
  ]);
5419
- const q = c.useCallback(() => {
5554
+ const P = c.useCallback(() => {
5420
5555
  at(!0), jt(Et.current), w((O) => O.filter((Z) => Z.toastId !== a.id)), setTimeout(() => {
5421
5556
  _(a);
5422
- }, il);
5557
+ }, fc);
5423
5558
  }, [
5424
5559
  a,
5425
5560
  _,
@@ -5429,7 +5564,7 @@ const al = (t) => {
5429
5564
  c.useEffect(() => {
5430
5565
  if (a.promise && ot === "loading" || a.duration === 1 / 0 || a.type === "loading") return;
5431
5566
  let O;
5432
- return v || y || Xt ? (() => {
5567
+ return v || b || Ut ? (() => {
5433
5568
  if (le.current < Zt.current) {
5434
5569
  const et = (/* @__PURE__ */ new Date()).getTime() - Zt.current;
5435
5570
  Bt.current = Bt.current - et;
@@ -5437,76 +5572,76 @@ const al = (t) => {
5437
5572
  le.current = (/* @__PURE__ */ new Date()).getTime();
5438
5573
  })() : (() => {
5439
5574
  Bt.current !== 1 / 0 && (Zt.current = (/* @__PURE__ */ new Date()).getTime(), O = setTimeout(() => {
5440
- a.onAutoClose == null || a.onAutoClose.call(a, a), q();
5575
+ a.onAutoClose == null || a.onAutoClose.call(a, a), P();
5441
5576
  }, Bt.current));
5442
5577
  })(), () => clearTimeout(O);
5443
5578
  }, [
5444
5579
  v,
5445
- y,
5580
+ b,
5446
5581
  a,
5447
5582
  ot,
5448
- Xt,
5449
- q
5583
+ Ut,
5584
+ P
5450
5585
  ]), c.useEffect(() => {
5451
- a.delete && (q(), a.onDismiss == null || a.onDismiss.call(a, a));
5586
+ a.delete && (P(), a.onDismiss == null || a.onDismiss.call(a, a));
5452
5587
  }, [
5453
- q,
5588
+ P,
5454
5589
  a.delete
5455
5590
  ]);
5456
- function D() {
5591
+ function C() {
5457
5592
  var O;
5458
5593
  if (H?.loading) {
5459
5594
  var Z;
5460
5595
  return /* @__PURE__ */ c.createElement("div", {
5461
- className: xt(P?.loader, a == null || (Z = a.classNames) == null ? void 0 : Z.loader, "sonner-loader"),
5596
+ className: xt(Y?.loader, a == null || (Z = a.classNames) == null ? void 0 : Z.loader, "sonner-loader"),
5462
5597
  "data-visible": ot === "loading"
5463
5598
  }, H.loading);
5464
5599
  }
5465
- return /* @__PURE__ */ c.createElement(zs, {
5466
- className: xt(P?.loader, a == null || (O = a.classNames) == null ? void 0 : O.loader),
5600
+ return /* @__PURE__ */ c.createElement(Ul, {
5601
+ className: xt(Y?.loader, a == null || (O = a.classNames) == null ? void 0 : O.loader),
5467
5602
  visible: ot === "loading"
5468
5603
  });
5469
5604
  }
5470
- const B = a.icon || H?.[ot] || Is(ot);
5471
- var it, E;
5605
+ const I = a.icon || H?.[ot] || Gl(ot);
5606
+ var it, q;
5472
5607
  return /* @__PURE__ */ c.createElement("li", {
5473
5608
  tabIndex: 0,
5474
5609
  ref: bt,
5475
- className: xt(V, Gt, P?.toast, a == null || (e = a.classNames) == null ? void 0 : e.toast, P?.default, P?.[ot], a == null || (r = a.classNames) == null ? void 0 : r[ot]),
5610
+ className: xt(V, Gt, Y?.toast, a == null || (e = a.classNames) == null ? void 0 : e.toast, Y?.default, Y?.[ot], a == null || (r = a.classNames) == null ? void 0 : r[ot]),
5476
5611
  "data-sonner-toast": "",
5477
5612
  "data-rich-colors": (it = a.richColors) != null ? it : g,
5478
5613
  "data-styled": !(a.jsx || a.unstyled || f),
5479
- "data-mounted": N,
5614
+ "data-mounted": E,
5480
5615
  "data-promise": !!a.promise,
5481
- "data-swiped": Rt,
5482
- "data-removed": R,
5483
- "data-visible": ve,
5484
- "data-y-position": Me,
5485
- "data-x-position": De,
5616
+ "data-swiped": At,
5617
+ "data-removed": A,
5618
+ "data-visible": ke,
5619
+ "data-y-position": De,
5620
+ "data-x-position": Ce,
5486
5621
  "data-index": h,
5487
- "data-front": we,
5488
- "data-swiping": Wt,
5622
+ "data-front": ve,
5623
+ "data-swiping": Tt,
5489
5624
  "data-dismissible": kt,
5490
5625
  "data-type": ot,
5491
5626
  "data-invert": Oe,
5492
5627
  "data-swipe-out": gt,
5493
5628
  "data-swipe-direction": ht,
5494
- "data-expanded": !!(v || pt && N),
5629
+ "data-expanded": !!(v || dt && E),
5495
5630
  "data-testid": a.testId,
5496
5631
  style: {
5497
5632
  "--index": h,
5498
5633
  "--toasts-before": h,
5499
- "--z-index": T.length - h,
5500
- "--offset": `${R ? be : Et.current}px`,
5501
- "--initial-height": pt ? "auto" : `${ye}px`,
5634
+ "--z-index": W.length - h,
5635
+ "--offset": `${A ? ye : Et.current}px`,
5636
+ "--initial-height": dt ? "auto" : `${we}px`,
5502
5637
  ...M,
5503
5638
  ...a.style
5504
5639
  },
5505
5640
  onDragEnd: () => {
5506
- F(!1), L(null), qt.current = null;
5641
+ z(!1), L(null), _t.current = null;
5507
5642
  },
5508
5643
  onPointerDown: (O) => {
5509
- O.button !== 2 && (C || !kt || (ae.current = /* @__PURE__ */ new Date(), jt(Et.current), O.target.setPointerCapture(O.pointerId), O.target.tagName !== "BUTTON" && (F(!0), qt.current = {
5644
+ O.button !== 2 && (S || !kt || (ae.current = /* @__PURE__ */ new Date(), jt(Et.current), O.target.setPointerCapture(O.pointerId), O.target.tagName !== "BUTTON" && (z(!0), _t.current = {
5510
5645
  x: O.clientX,
5511
5646
  y: O.clientY
5512
5647
  })));
@@ -5514,98 +5649,98 @@ const al = (t) => {
5514
5649
  onPointerUp: () => {
5515
5650
  var O, Z, K;
5516
5651
  if (gt || !kt) return;
5517
- qt.current = null;
5518
- const et = Number(((O = bt.current) == null ? void 0 : O.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), _t = Number(((Z = bt.current) == null ? void 0 : Z.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), rt = (/* @__PURE__ */ new Date()).getTime() - ((K = ae.current) == null ? void 0 : K.getTime()), dt = Q === "x" ? et : _t, me = Math.abs(dt) / rt;
5519
- if (Math.abs(dt) >= ol || me > 0.11) {
5520
- jt(Et.current), a.onDismiss == null || a.onDismiss.call(a, a), Nt(Q === "x" ? et > 0 ? "right" : "left" : _t > 0 ? "down" : "up"), q(), At(!0);
5652
+ _t.current = null;
5653
+ const et = Number(((O = bt.current) == null ? void 0 : O.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), qt = Number(((Z = bt.current) == null ? void 0 : Z.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), rt = (/* @__PURE__ */ new Date()).getTime() - ((K = ae.current) == null ? void 0 : K.getTime()), pt = Q === "x" ? et : qt, me = Math.abs(pt) / rt;
5654
+ if (Math.abs(pt) >= uc || me > 0.11) {
5655
+ jt(Et.current), a.onDismiss == null || a.onDismiss.call(a, a), Nt(Q === "x" ? et > 0 ? "right" : "left" : qt > 0 ? "down" : "up"), P(), Rt(!0);
5521
5656
  return;
5522
5657
  } else {
5523
5658
  var yt, wt;
5524
5659
  (yt = bt.current) == null || yt.style.setProperty("--swipe-amount-x", "0px"), (wt = bt.current) == null || wt.style.setProperty("--swipe-amount-y", "0px");
5525
5660
  }
5526
- Tt(!1), F(!1), L(null);
5661
+ Wt(!1), z(!1), L(null);
5527
5662
  },
5528
5663
  onPointerMove: (O) => {
5529
5664
  var Z, K, et;
5530
- if (!qt.current || !kt || ((Z = window.getSelection()) == null ? void 0 : Z.toString().length) > 0) return;
5531
- const rt = O.clientY - qt.current.y, dt = O.clientX - qt.current.x;
5665
+ if (!_t.current || !kt || ((Z = window.getSelection()) == null ? void 0 : Z.toString().length) > 0) return;
5666
+ const rt = O.clientY - _t.current.y, pt = O.clientX - _t.current.x;
5532
5667
  var me;
5533
- const yt = (me = t.swipeDirections) != null ? me : nl(tt);
5534
- !Q && (Math.abs(dt) > 1 || Math.abs(rt) > 1) && L(Math.abs(dt) > Math.abs(rt) ? "x" : "y");
5668
+ const yt = (me = t.swipeDirections) != null ? me : hc(tt);
5669
+ !Q && (Math.abs(pt) > 1 || Math.abs(rt) > 1) && L(Math.abs(pt) > Math.abs(rt) ? "x" : "y");
5535
5670
  let wt = {
5536
5671
  x: 0,
5537
5672
  y: 0
5538
5673
  };
5539
- const Ie = (It) => 1 / (1.5 + Math.abs(It) / 20);
5674
+ const ze = (It) => 1 / (1.5 + Math.abs(It) / 20);
5540
5675
  if (Q === "y") {
5541
5676
  if (yt.includes("top") || yt.includes("bottom"))
5542
5677
  if (yt.includes("top") && rt < 0 || yt.includes("bottom") && rt > 0)
5543
5678
  wt.y = rt;
5544
5679
  else {
5545
- const It = rt * Ie(rt);
5680
+ const It = rt * ze(rt);
5546
5681
  wt.y = Math.abs(It) < Math.abs(rt) ? It : rt;
5547
5682
  }
5548
5683
  } else if (Q === "x" && (yt.includes("left") || yt.includes("right")))
5549
- if (yt.includes("left") && dt < 0 || yt.includes("right") && dt > 0)
5550
- wt.x = dt;
5684
+ if (yt.includes("left") && pt < 0 || yt.includes("right") && pt > 0)
5685
+ wt.x = pt;
5551
5686
  else {
5552
- const It = dt * Ie(dt);
5553
- wt.x = Math.abs(It) < Math.abs(dt) ? It : dt;
5687
+ const It = pt * ze(pt);
5688
+ wt.x = Math.abs(It) < Math.abs(pt) ? It : pt;
5554
5689
  }
5555
- (Math.abs(wt.x) > 0 || Math.abs(wt.y) > 0) && Tt(!0), (K = bt.current) == null || K.style.setProperty("--swipe-amount-x", `${wt.x}px`), (et = bt.current) == null || et.style.setProperty("--swipe-amount-y", `${wt.y}px`);
5690
+ (Math.abs(wt.x) > 0 || Math.abs(wt.y) > 0) && Wt(!0), (K = bt.current) == null || K.style.setProperty("--swipe-amount-x", `${wt.x}px`), (et = bt.current) == null || et.style.setProperty("--swipe-amount-y", `${wt.y}px`);
5556
5691
  }
5557
- }, xe && !a.jsx && ot !== "loading" ? /* @__PURE__ */ c.createElement("button", {
5692
+ }, Me && !a.jsx && ot !== "loading" ? /* @__PURE__ */ c.createElement("button", {
5558
5693
  "aria-label": G,
5559
- "data-disabled": C,
5694
+ "data-disabled": S,
5560
5695
  "data-close-button": !0,
5561
- onClick: C || !kt ? () => {
5696
+ onClick: S || !kt ? () => {
5562
5697
  } : () => {
5563
- q(), a.onDismiss == null || a.onDismiss.call(a, a);
5698
+ P(), a.onDismiss == null || a.onDismiss.call(a, a);
5564
5699
  },
5565
- className: xt(P?.closeButton, a == null || (o = a.classNames) == null ? void 0 : o.closeButton)
5566
- }, (E = H?.close) != null ? E : Ls) : null, (ot || a.icon || a.promise) && a.icon !== null && (H?.[ot] !== null || a.icon) ? /* @__PURE__ */ c.createElement("div", {
5700
+ className: xt(Y?.closeButton, a == null || (o = a.classNames) == null ? void 0 : o.closeButton)
5701
+ }, (q = H?.close) != null ? q : tc) : null, (ot || a.icon || a.promise) && a.icon !== null && (H?.[ot] !== null || a.icon) ? /* @__PURE__ */ c.createElement("div", {
5567
5702
  "data-icon": "",
5568
- className: xt(P?.icon, a == null || (i = a.classNames) == null ? void 0 : i.icon)
5569
- }, a.promise || a.type === "loading" && !a.icon ? a.icon || D() : null, a.type !== "loading" ? B : null) : null, /* @__PURE__ */ c.createElement("div", {
5703
+ className: xt(Y?.icon, a == null || (i = a.classNames) == null ? void 0 : i.icon)
5704
+ }, a.promise || a.type === "loading" && !a.icon ? a.icon || C() : null, a.type !== "loading" ? I : null) : null, /* @__PURE__ */ c.createElement("div", {
5570
5705
  "data-content": "",
5571
- className: xt(P?.content, a == null || (n = a.classNames) == null ? void 0 : n.content)
5706
+ className: xt(Y?.content, a == null || (n = a.classNames) == null ? void 0 : n.content)
5572
5707
  }, /* @__PURE__ */ c.createElement("div", {
5573
5708
  "data-title": "",
5574
- className: xt(P?.title, a == null || (l = a.classNames) == null ? void 0 : l.title)
5709
+ className: xt(Y?.title, a == null || (l = a.classNames) == null ? void 0 : l.title)
5575
5710
  }, a.jsx ? a.jsx : typeof a.title == "function" ? a.title() : a.title), a.description ? /* @__PURE__ */ c.createElement("div", {
5576
5711
  "data-description": "",
5577
- className: xt(U, ke, P?.description, a == null || (s = a.classNames) == null ? void 0 : s.description)
5712
+ className: xt(X, xe, Y?.description, a == null || (s = a.classNames) == null ? void 0 : s.description)
5578
5713
  }, typeof a.description == "function" ? a.description() : a.description) : null), /* @__PURE__ */ c.isValidElement(a.cancel) ? a.cancel : a.cancel && ue(a.cancel) ? /* @__PURE__ */ c.createElement("button", {
5579
5714
  "data-button": !0,
5580
5715
  "data-cancel": !0,
5581
- style: a.cancelButtonStyle || S,
5716
+ style: a.cancelButtonStyle || T,
5582
5717
  onClick: (O) => {
5583
- ue(a.cancel) && kt && (a.cancel.onClick == null || a.cancel.onClick.call(a.cancel, O), q());
5718
+ ue(a.cancel) && kt && (a.cancel.onClick == null || a.cancel.onClick.call(a.cancel, O), P());
5584
5719
  },
5585
- className: xt(P?.cancelButton, a == null || (m = a.classNames) == null ? void 0 : m.cancelButton)
5720
+ className: xt(Y?.cancelButton, a == null || (d = a.classNames) == null ? void 0 : d.cancelButton)
5586
5721
  }, a.cancel.label) : null, /* @__PURE__ */ c.isValidElement(a.action) ? a.action : a.action && ue(a.action) ? /* @__PURE__ */ c.createElement("button", {
5587
5722
  "data-button": !0,
5588
5723
  "data-action": !0,
5589
5724
  style: a.actionButtonStyle || $,
5590
5725
  onClick: (O) => {
5591
- ue(a.action) && (a.action.onClick == null || a.action.onClick.call(a.action, O), !O.defaultPrevented && q());
5726
+ ue(a.action) && (a.action.onClick == null || a.action.onClick.call(a.action, O), !O.defaultPrevented && P());
5592
5727
  },
5593
- className: xt(P?.actionButton, a == null || (p = a.classNames) == null ? void 0 : p.actionButton)
5728
+ className: xt(Y?.actionButton, a == null || (p = a.classNames) == null ? void 0 : p.actionButton)
5594
5729
  }, a.action.label) : null);
5595
5730
  };
5596
- function nr() {
5731
+ function mr() {
5597
5732
  if (typeof window > "u" || typeof document > "u") return "ltr";
5598
5733
  const t = document.documentElement.getAttribute("dir");
5599
5734
  return t === "auto" || !t ? window.getComputedStyle(document.documentElement).direction : t;
5600
5735
  }
5601
- function sl(t, e) {
5736
+ function bc(t, e) {
5602
5737
  const r = {};
5603
5738
  return [
5604
5739
  t,
5605
5740
  e
5606
5741
  ].forEach((o, i) => {
5607
- const n = i === 1, l = n ? "--mobile-offset" : "--offset", s = n ? tl : Js;
5608
- function m(p) {
5742
+ const n = i === 1, l = n ? "--mobile-offset" : "--offset", s = n ? mc : cc;
5743
+ function d(p) {
5609
5744
  [
5610
5745
  "top",
5611
5746
  "right",
@@ -5615,58 +5750,58 @@ function sl(t, e) {
5615
5750
  r[`${l}-${u}`] = typeof p == "number" ? `${p}px` : p;
5616
5751
  });
5617
5752
  }
5618
- typeof o == "number" || typeof o == "string" ? m(o) : typeof o == "object" ? [
5753
+ typeof o == "number" || typeof o == "string" ? d(o) : typeof o == "object" ? [
5619
5754
  "top",
5620
5755
  "right",
5621
5756
  "bottom",
5622
5757
  "left"
5623
5758
  ].forEach((p) => {
5624
5759
  o[p] === void 0 ? r[`${l}-${p}`] = s : r[`${l}-${p}`] = typeof o[p] == "number" ? `${o[p]}px` : o[p];
5625
- }) : m(s);
5760
+ }) : d(s);
5626
5761
  }), r;
5627
5762
  }
5628
- const ll = /* @__PURE__ */ c.forwardRef(function(e, r) {
5763
+ const yc = /* @__PURE__ */ c.forwardRef(function(e, r) {
5629
5764
  const { id: o, invert: i, position: n = "bottom-right", hotkey: l = [
5630
5765
  "altKey",
5631
5766
  "KeyT"
5632
- ], expand: s, closeButton: m, className: p, offset: u, mobileOffset: a, theme: f = "light", richColors: y, duration: w, style: W, visibleToasts: x = Ks, toastOptions: h, dir: T = nr(), gap: v = rl, icons: _, containerAriaLabel: g = "Notifications" } = e, [k, M] = c.useState([]), S = c.useMemo(() => o ? k.filter((N) => N.toasterId === o) : k.filter((N) => !N.toasterId), [
5767
+ ], expand: s, closeButton: d, className: p, offset: u, mobileOffset: a, theme: f = "light", richColors: b, duration: w, style: N, visibleToasts: x = lc, toastOptions: h, dir: W = mr(), gap: v = pc, icons: _, containerAriaLabel: g = "Notifications" } = e, [k, M] = c.useState([]), T = c.useMemo(() => o ? k.filter((E) => E.toasterId === o) : k.filter((E) => !E.toasterId), [
5633
5768
  k,
5634
5769
  o
5635
5770
  ]), $ = c.useMemo(() => Array.from(new Set([
5636
5771
  n
5637
- ].concat(S.filter((N) => N.position).map((N) => N.position)))), [
5638
- S,
5772
+ ].concat(T.filter((E) => E.position).map((E) => E.position)))), [
5773
+ T,
5639
5774
  n
5640
- ]), [V, U] = c.useState([]), [J, tt] = c.useState(!1), [ft, pt] = c.useState(!1), [P, H] = c.useState(f !== "system" ? f : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), G = c.useRef(null), Q = l.join("+").replace(/Key/g, "").replace(/Digit/g, ""), L = c.useRef(null), ht = c.useRef(!1), Nt = c.useCallback((N) => {
5641
- M((A) => {
5642
- var R;
5643
- return (R = A.find((at) => at.id === N.id)) != null && R.delete || lt.dismiss(N.id), A.filter(({ id: at }) => at !== N.id);
5775
+ ]), [V, X] = c.useState([]), [J, tt] = c.useState(!1), [ft, dt] = c.useState(!1), [Y, H] = c.useState(f !== "system" ? f : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), G = c.useRef(null), Q = l.join("+").replace(/Key/g, "").replace(/Digit/g, ""), L = c.useRef(null), ht = c.useRef(!1), Nt = c.useCallback((E) => {
5776
+ M((R) => {
5777
+ var A;
5778
+ return (A = R.find((at) => at.id === E.id)) != null && A.delete || st.dismiss(E.id), R.filter(({ id: at }) => at !== E.id);
5644
5779
  });
5645
5780
  }, []);
5646
- return c.useEffect(() => lt.subscribe((N) => {
5647
- if (N.dismiss) {
5781
+ return c.useEffect(() => st.subscribe((E) => {
5782
+ if (E.dismiss) {
5648
5783
  requestAnimationFrame(() => {
5649
- M((A) => A.map((R) => R.id === N.id ? {
5650
- ...R,
5784
+ M((R) => R.map((A) => A.id === E.id ? {
5785
+ ...A,
5651
5786
  delete: !0
5652
- } : R));
5787
+ } : A));
5653
5788
  });
5654
5789
  return;
5655
5790
  }
5656
5791
  setTimeout(() => {
5657
- Si.flushSync(() => {
5658
- M((A) => {
5659
- const R = A.findIndex((at) => at.id === N.id);
5660
- return R !== -1 ? [
5661
- ...A.slice(0, R),
5792
+ en.flushSync(() => {
5793
+ M((R) => {
5794
+ const A = R.findIndex((at) => at.id === E.id);
5795
+ return A !== -1 ? [
5796
+ ...R.slice(0, A),
5662
5797
  {
5663
- ...A[R],
5664
- ...N
5798
+ ...R[A],
5799
+ ...E
5665
5800
  },
5666
- ...A.slice(R + 1)
5801
+ ...R.slice(A + 1)
5667
5802
  ] : [
5668
- N,
5669
- ...A
5803
+ E,
5804
+ ...R
5670
5805
  ];
5671
5806
  });
5672
5807
  });
@@ -5679,15 +5814,15 @@ const ll = /* @__PURE__ */ c.forwardRef(function(e, r) {
5679
5814
  return;
5680
5815
  }
5681
5816
  if (f === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? H("dark") : H("light")), typeof window > "u") return;
5682
- const N = window.matchMedia("(prefers-color-scheme: dark)");
5817
+ const E = window.matchMedia("(prefers-color-scheme: dark)");
5683
5818
  try {
5684
- N.addEventListener("change", ({ matches: A }) => {
5685
- H(A ? "dark" : "light");
5819
+ E.addEventListener("change", ({ matches: R }) => {
5820
+ H(R ? "dark" : "light");
5686
5821
  });
5687
5822
  } catch {
5688
- N.addListener(({ matches: R }) => {
5823
+ E.addListener(({ matches: A }) => {
5689
5824
  try {
5690
- H(R ? "dark" : "light");
5825
+ H(A ? "dark" : "light");
5691
5826
  } catch (at) {
5692
5827
  console.error(at);
5693
5828
  }
@@ -5700,15 +5835,15 @@ const ll = /* @__PURE__ */ c.forwardRef(function(e, r) {
5700
5835
  }, [
5701
5836
  k
5702
5837
  ]), c.useEffect(() => {
5703
- const N = (A) => {
5704
- var R;
5705
- if (l.every((F) => A[F] || A.code === F)) {
5706
- var Wt;
5707
- tt(!0), (Wt = G.current) == null || Wt.focus();
5838
+ const E = (R) => {
5839
+ var A;
5840
+ if (l.every((z) => R[z] || R.code === z)) {
5841
+ var Tt;
5842
+ tt(!0), (Tt = G.current) == null || Tt.focus();
5708
5843
  }
5709
- A.code === "Escape" && (document.activeElement === G.current || (R = G.current) != null && R.contains(document.activeElement)) && tt(!1);
5844
+ R.code === "Escape" && (document.activeElement === G.current || (A = G.current) != null && A.contains(document.activeElement)) && tt(!1);
5710
5845
  };
5711
- return document.addEventListener("keydown", N), () => document.removeEventListener("keydown", N);
5846
+ return document.addEventListener("keydown", E), () => document.removeEventListener("keydown", E);
5712
5847
  }, [
5713
5848
  l
5714
5849
  ]), c.useEffect(() => {
@@ -5729,33 +5864,33 @@ const ll = /* @__PURE__ */ c.forwardRef(function(e, r) {
5729
5864
  "aria-relevant": "additions text",
5730
5865
  "aria-atomic": "false",
5731
5866
  suppressHydrationWarning: !0
5732
- }, $.map((N, A) => {
5733
- var R;
5734
- const [at, Wt] = N.split("-");
5735
- return S.length ? /* @__PURE__ */ c.createElement("ol", {
5736
- key: N,
5737
- dir: T === "auto" ? nr() : T,
5867
+ }, $.map((E, R) => {
5868
+ var A;
5869
+ const [at, Tt] = E.split("-");
5870
+ return T.length ? /* @__PURE__ */ c.createElement("ol", {
5871
+ key: E,
5872
+ dir: W === "auto" ? mr() : W,
5738
5873
  tabIndex: -1,
5739
5874
  ref: G,
5740
5875
  className: p,
5741
5876
  "data-sonner-toaster": !0,
5742
- "data-sonner-theme": P,
5877
+ "data-sonner-theme": Y,
5743
5878
  "data-y-position": at,
5744
- "data-x-position": Wt,
5879
+ "data-x-position": Tt,
5745
5880
  style: {
5746
- "--front-toast-height": `${((R = V[0]) == null ? void 0 : R.height) || 0}px`,
5747
- "--width": `${el}px`,
5881
+ "--front-toast-height": `${((A = V[0]) == null ? void 0 : A.height) || 0}px`,
5882
+ "--width": `${dc}px`,
5748
5883
  "--gap": `${v}px`,
5749
- ...W,
5750
- ...sl(u, a)
5884
+ ...N,
5885
+ ...bc(u, a)
5751
5886
  },
5752
- onBlur: (F) => {
5753
- ht.current && !F.currentTarget.contains(F.relatedTarget) && (ht.current = !1, L.current && (L.current.focus({
5887
+ onBlur: (z) => {
5888
+ ht.current && !z.currentTarget.contains(z.relatedTarget) && (ht.current = !1, L.current && (L.current.focus({
5754
5889
  preventScroll: !0
5755
5890
  }), L.current = null));
5756
5891
  },
5757
- onFocus: (F) => {
5758
- F.target instanceof HTMLElement && F.target.dataset.dismissible === "false" || ht.current || (ht.current = !0, L.current = F.relatedTarget);
5892
+ onFocus: (z) => {
5893
+ z.target instanceof HTMLElement && z.target.dataset.dismissible === "false" || ht.current || (ht.current = !0, L.current = z.relatedTarget);
5759
5894
  },
5760
5895
  onMouseEnter: () => tt(!0),
5761
5896
  onMouseMove: () => tt(!0),
@@ -5763,26 +5898,26 @@ const ll = /* @__PURE__ */ c.forwardRef(function(e, r) {
5763
5898
  ft || tt(!1);
5764
5899
  },
5765
5900
  onDragEnd: () => tt(!1),
5766
- onPointerDown: (F) => {
5767
- F.target instanceof HTMLElement && F.target.dataset.dismissible === "false" || pt(!0);
5901
+ onPointerDown: (z) => {
5902
+ z.target instanceof HTMLElement && z.target.dataset.dismissible === "false" || dt(!0);
5768
5903
  },
5769
- onPointerUp: () => pt(!1)
5770
- }, S.filter((F) => !F.position && A === 0 || F.position === N).map((F, gt) => {
5771
- var At, Rt;
5772
- return /* @__PURE__ */ c.createElement(al, {
5773
- key: F.id,
5904
+ onPointerUp: () => dt(!1)
5905
+ }, T.filter((z) => !z.position && R === 0 || z.position === E).map((z, gt) => {
5906
+ var Rt, At;
5907
+ return /* @__PURE__ */ c.createElement(gc, {
5908
+ key: z.id,
5774
5909
  icons: _,
5775
5910
  index: gt,
5776
- toast: F,
5777
- defaultRichColors: y,
5778
- duration: (At = h?.duration) != null ? At : w,
5911
+ toast: z,
5912
+ defaultRichColors: b,
5913
+ duration: (Rt = h?.duration) != null ? Rt : w,
5779
5914
  className: h?.className,
5780
5915
  descriptionClassName: h?.descriptionClassName,
5781
5916
  invert: i,
5782
5917
  visibleToasts: x,
5783
- closeButton: (Rt = h?.closeButton) != null ? Rt : m,
5918
+ closeButton: (At = h?.closeButton) != null ? At : d,
5784
5919
  interacting: ft,
5785
- position: N,
5920
+ position: E,
5786
5921
  style: h?.style,
5787
5922
  unstyled: h?.unstyled,
5788
5923
  classNames: h?.classNames,
@@ -5790,9 +5925,9 @@ const ll = /* @__PURE__ */ c.forwardRef(function(e, r) {
5790
5925
  actionButtonStyle: h?.actionButtonStyle,
5791
5926
  closeButtonAriaLabel: h?.closeButtonAriaLabel,
5792
5927
  removeToast: Nt,
5793
- toasts: S.filter((Tt) => Tt.position == F.position),
5794
- heights: V.filter((Tt) => Tt.position == F.position),
5795
- setHeights: U,
5928
+ toasts: T.filter((Wt) => Wt.position == z.position),
5929
+ heights: V.filter((Wt) => Wt.position == z.position),
5930
+ setHeights: X,
5796
5931
  expandByDefault: s,
5797
5932
  gap: v,
5798
5933
  expanded: J,
@@ -5800,10 +5935,10 @@ const ll = /* @__PURE__ */ c.forwardRef(function(e, r) {
5800
5935
  });
5801
5936
  })) : null;
5802
5937
  }));
5803
- }), Jl = ({ className: t, ...e }) => /* @__PURE__ */ d(
5804
- ll,
5938
+ }), Mm = ({ className: t, ...e }) => /* @__PURE__ */ m(
5939
+ yc,
5805
5940
  {
5806
- className: st("flex w-full flex-col items-end", t),
5941
+ className: lt("flex w-full flex-col items-end", t),
5807
5942
  toastOptions: {
5808
5943
  unstyled: !0,
5809
5944
  classNames: {
@@ -5812,11 +5947,11 @@ const ll = /* @__PURE__ */ c.forwardRef(function(e, r) {
5812
5947
  },
5813
5948
  ...e
5814
5949
  }
5815
- ), tc = {
5950
+ ), Dm = {
5816
5951
  success: (t, e) => {
5817
5952
  const r = e?.position, o = Yt(
5818
- /* @__PURE__ */ d(
5819
- de,
5953
+ /* @__PURE__ */ m(
5954
+ pe,
5820
5955
  {
5821
5956
  dismiss: {
5822
5957
  label: e?.dismiss?.label ?? "Dismiss",
@@ -5832,8 +5967,8 @@ const ll = /* @__PURE__ */ c.forwardRef(function(e, r) {
5832
5967
  },
5833
5968
  error: (t, e) => {
5834
5969
  const r = e?.position, o = Yt(
5835
- /* @__PURE__ */ d(
5836
- de,
5970
+ /* @__PURE__ */ m(
5971
+ pe,
5837
5972
  {
5838
5973
  dismiss: {
5839
5974
  label: e?.dismiss?.label ?? "Dismiss",
@@ -5849,8 +5984,8 @@ const ll = /* @__PURE__ */ c.forwardRef(function(e, r) {
5849
5984
  },
5850
5985
  warning: (t, e) => {
5851
5986
  const r = e?.position, o = Yt(
5852
- /* @__PURE__ */ d(
5853
- de,
5987
+ /* @__PURE__ */ m(
5988
+ pe,
5854
5989
  {
5855
5990
  dismiss: {
5856
5991
  label: e?.dismiss?.label ?? "Dismiss",
@@ -5866,8 +6001,8 @@ const ll = /* @__PURE__ */ c.forwardRef(function(e, r) {
5866
6001
  },
5867
6002
  info: (t, e) => {
5868
6003
  const r = e?.position, o = Yt(
5869
- /* @__PURE__ */ d(
5870
- de,
6004
+ /* @__PURE__ */ m(
6005
+ pe,
5871
6006
  {
5872
6007
  dismiss: {
5873
6008
  label: e?.dismiss?.label ?? "Dismiss",
@@ -5883,34 +6018,41 @@ const ll = /* @__PURE__ */ c.forwardRef(function(e, r) {
5883
6018
  }
5884
6019
  };
5885
6020
  export {
5886
- Pl as Accordion,
5887
- de as Alert,
5888
- oc as AnimatedUnderline,
5889
- nc as Badge,
5890
- Yl as Banner,
5891
- Bl as BlogPostCard,
5892
- ko as Button,
5893
- Le as ButtonLink,
5894
- Il as Calendar,
5895
- Fl as Card,
5896
- zl as Carousel,
5897
- Al as Chip,
5898
- Rl as CompareDrawer,
5899
- jl as CursorPagination,
5900
- Hl as DropdownMenu,
5901
- Ll as Favorite,
5902
- $l as FieldError,
5903
- Vl as Icon,
5904
- Gl as Logo,
5905
- Zl as Modal,
5906
- ac as Price,
5907
- Xl as Rating,
5908
- Ul as Reveal,
5909
- lc as ScrollArea,
5910
- mc as Skeleton,
5911
- Ql as Spinner,
5912
- Kl as Tabs,
5913
- Jl as Toaster,
5914
- tc as toast
6021
+ em as Accordion,
6022
+ pe as Alert,
6023
+ Sm as AnimatedUnderline,
6024
+ Tm as Badge,
6025
+ rm as Banner,
6026
+ om as BlogPostCard,
6027
+ Be as Button,
6028
+ _e as ButtonLink,
6029
+ nm as Calendar,
6030
+ am as Card,
6031
+ sm as Carousel,
6032
+ lm as CategoryCard,
6033
+ Wm as Checkbox,
6034
+ cm as Chip,
6035
+ mm as CompareCard,
6036
+ dm as CompareDrawer,
6037
+ pm as CursorPagination,
6038
+ um as DropdownMenu,
6039
+ fm as Favorite,
6040
+ hm as FieldError,
6041
+ gm as Icon,
6042
+ Em as Label,
6043
+ bm as Logo,
6044
+ ym as Modal,
6045
+ wm as OffsetPagination,
6046
+ _m as Price,
6047
+ jl as ProductCard,
6048
+ Hl as Rating,
6049
+ lr as Reveal,
6050
+ Xi as ScrollArea,
6051
+ vm as SidePanel,
6052
+ im as Skeleton,
6053
+ km as Spinner,
6054
+ xm as Tabs,
6055
+ Mm as Toaster,
6056
+ Dm as toast
5915
6057
  };
5916
6058
  //# sourceMappingURL=index.js.map