react-start-kit 1.0.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 (531) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +99 -0
  3. package/dist/accordion/index.cjs.js +2 -0
  4. package/dist/accordion/index.cjs.js.map +1 -0
  5. package/dist/accordion/index.es.js +287 -0
  6. package/dist/accordion/index.es.js.map +1 -0
  7. package/dist/alert/index.cjs.js +2 -0
  8. package/dist/alert/index.cjs.js.map +1 -0
  9. package/dist/alert/index.es.js +8 -0
  10. package/dist/alert/index.es.js.map +1 -0
  11. package/dist/alert-dialog/index.cjs.js +2 -0
  12. package/dist/alert-dialog/index.cjs.js.map +1 -0
  13. package/dist/alert-dialog/index.es.js +15 -0
  14. package/dist/alert-dialog/index.es.js.map +1 -0
  15. package/dist/avatar/index.cjs.js +2 -0
  16. package/dist/avatar/index.cjs.js.map +1 -0
  17. package/dist/avatar/index.es.js +8 -0
  18. package/dist/avatar/index.es.js.map +1 -0
  19. package/dist/badge/index.cjs.js +2 -0
  20. package/dist/badge/index.cjs.js.map +1 -0
  21. package/dist/badge/index.es.js +6 -0
  22. package/dist/badge/index.es.js.map +1 -0
  23. package/dist/breadcrumb/index.cjs.js +2 -0
  24. package/dist/breadcrumb/index.cjs.js.map +1 -0
  25. package/dist/breadcrumb/index.es.js +10 -0
  26. package/dist/breadcrumb/index.es.js.map +1 -0
  27. package/dist/button/index.cjs.js +2 -0
  28. package/dist/button/index.cjs.js.map +1 -0
  29. package/dist/button/index.es.js +11 -0
  30. package/dist/button/index.es.js.map +1 -0
  31. package/dist/calendar/index.cjs.js +2 -0
  32. package/dist/calendar/index.cjs.js.map +1 -0
  33. package/dist/calendar/index.es.js +11 -0
  34. package/dist/calendar/index.es.js.map +1 -0
  35. package/dist/card/index.cjs.js +2 -0
  36. package/dist/card/index.cjs.js.map +1 -0
  37. package/dist/card/index.es.js +10 -0
  38. package/dist/card/index.es.js.map +1 -0
  39. package/dist/carousel/index.cjs.js +12 -0
  40. package/dist/carousel/index.cjs.js.map +1 -0
  41. package/dist/carousel/index.es.js +1441 -0
  42. package/dist/carousel/index.es.js.map +1 -0
  43. package/dist/chunks/_commonjsHelpers-DKOUU3wS.cjs.js +2 -0
  44. package/dist/chunks/_commonjsHelpers-DKOUU3wS.cjs.js.map +1 -0
  45. package/dist/chunks/_commonjsHelpers-DaMA6jEr.es.js +9 -0
  46. package/dist/chunks/_commonjsHelpers-DaMA6jEr.es.js.map +1 -0
  47. package/dist/chunks/alert-B9rImkiX.es.js +53 -0
  48. package/dist/chunks/alert-B9rImkiX.es.js.map +1 -0
  49. package/dist/chunks/alert-BNcf_eJn.cjs.js +2 -0
  50. package/dist/chunks/alert-BNcf_eJn.cjs.js.map +1 -0
  51. package/dist/chunks/alert-dialog-BfBtlIHj.cjs.js +8 -0
  52. package/dist/chunks/alert-dialog-BfBtlIHj.cjs.js.map +1 -0
  53. package/dist/chunks/alert-dialog-BrCPhmhd.es.js +209 -0
  54. package/dist/chunks/alert-dialog-BrCPhmhd.es.js.map +1 -0
  55. package/dist/chunks/avatar-CQMWDnOM.cjs.js +18 -0
  56. package/dist/chunks/avatar-CQMWDnOM.cjs.js.map +1 -0
  57. package/dist/chunks/avatar-zl4cf4c2.es.js +333 -0
  58. package/dist/chunks/avatar-zl4cf4c2.es.js.map +1 -0
  59. package/dist/chunks/badge-1ocx6hox.cjs.js +2 -0
  60. package/dist/chunks/badge-1ocx6hox.cjs.js.map +1 -0
  61. package/dist/chunks/badge-CPzxgRrM.es.js +75 -0
  62. package/dist/chunks/badge-CPzxgRrM.es.js.map +1 -0
  63. package/dist/chunks/breadcrumb-BrMrkZfa.es.js +82 -0
  64. package/dist/chunks/breadcrumb-BrMrkZfa.es.js.map +1 -0
  65. package/dist/chunks/breadcrumb-iPT-f06l.cjs.js +2 -0
  66. package/dist/chunks/breadcrumb-iPT-f06l.cjs.js.map +1 -0
  67. package/dist/chunks/button-CpKtD3qG.cjs.js +2 -0
  68. package/dist/chunks/button-CpKtD3qG.cjs.js.map +1 -0
  69. package/dist/chunks/button-DTRIYqDb.es.js +50 -0
  70. package/dist/chunks/button-DTRIYqDb.es.js.map +1 -0
  71. package/dist/chunks/button-group-B4h4-5eB.es.js +76 -0
  72. package/dist/chunks/button-group-B4h4-5eB.es.js.map +1 -0
  73. package/dist/chunks/button-group-CaFYso6b.cjs.js +2 -0
  74. package/dist/chunks/button-group-CaFYso6b.cjs.js.map +1 -0
  75. package/dist/chunks/card-B1sx5mON.cjs.js +2 -0
  76. package/dist/chunks/card-B1sx5mON.cjs.js.map +1 -0
  77. package/dist/chunks/card-BJ0eqFqO.es.js +74 -0
  78. package/dist/chunks/card-BJ0eqFqO.es.js.map +1 -0
  79. package/dist/chunks/check-B6UTraXT.cjs.js +7 -0
  80. package/dist/chunks/check-B6UTraXT.cjs.js.map +1 -0
  81. package/dist/chunks/check-DFKaRaBZ.es.js +12 -0
  82. package/dist/chunks/check-DFKaRaBZ.es.js.map +1 -0
  83. package/dist/chunks/chevron-down-DDxUy1A2.es.js +12 -0
  84. package/dist/chunks/chevron-down-DDxUy1A2.es.js.map +1 -0
  85. package/dist/chunks/chevron-down-T-PkxHnH.cjs.js +7 -0
  86. package/dist/chunks/chevron-down-T-PkxHnH.cjs.js.map +1 -0
  87. package/dist/chunks/chevron-left-B_pqqZqr.cjs.js +7 -0
  88. package/dist/chunks/chevron-left-B_pqqZqr.cjs.js.map +1 -0
  89. package/dist/chunks/chevron-left-CfOUdNQ0.es.js +12 -0
  90. package/dist/chunks/chevron-left-CfOUdNQ0.es.js.map +1 -0
  91. package/dist/chunks/chevron-right-BNG-Ugyb.es.js +12 -0
  92. package/dist/chunks/chevron-right-BNG-Ugyb.es.js.map +1 -0
  93. package/dist/chunks/chevron-right-BxyusM7v.cjs.js +7 -0
  94. package/dist/chunks/chevron-right-BxyusM7v.cjs.js.map +1 -0
  95. package/dist/chunks/circle--GxygOe5.es.js +12 -0
  96. package/dist/chunks/circle--GxygOe5.es.js.map +1 -0
  97. package/dist/chunks/circle-DjcntFbc.cjs.js +7 -0
  98. package/dist/chunks/circle-DjcntFbc.cjs.js.map +1 -0
  99. package/dist/chunks/collapsible-CBOSWBKB.cjs.js +2 -0
  100. package/dist/chunks/collapsible-CBOSWBKB.cjs.js.map +1 -0
  101. package/dist/chunks/collapsible-Ddd6kxXS.es.js +35 -0
  102. package/dist/chunks/collapsible-Ddd6kxXS.es.js.map +1 -0
  103. package/dist/chunks/createLucideIcon-CyFYF6Ug.es.js +124 -0
  104. package/dist/chunks/createLucideIcon-CyFYF6Ug.es.js.map +1 -0
  105. package/dist/chunks/createLucideIcon-HtK0p34L.cjs.js +42 -0
  106. package/dist/chunks/createLucideIcon-HtK0p34L.cjs.js.map +1 -0
  107. package/dist/chunks/dialog-BWF5BkHj.cjs.js +2 -0
  108. package/dist/chunks/dialog-BWF5BkHj.cjs.js.map +1 -0
  109. package/dist/chunks/dialog-D9BMBoAJ.es.js +105 -0
  110. package/dist/chunks/dialog-D9BMBoAJ.es.js.map +1 -0
  111. package/dist/chunks/dropdown-menu-Bu9wADja.cjs.js +2 -0
  112. package/dist/chunks/dropdown-menu-Bu9wADja.cjs.js.map +1 -0
  113. package/dist/chunks/dropdown-menu-CcnxQ7Zj.es.js +980 -0
  114. package/dist/chunks/dropdown-menu-CcnxQ7Zj.es.js.map +1 -0
  115. package/dist/chunks/ellipsis-9FjKj8zv.es.js +16 -0
  116. package/dist/chunks/ellipsis-9FjKj8zv.es.js.map +1 -0
  117. package/dist/chunks/ellipsis-FJjSjEdP.cjs.js +7 -0
  118. package/dist/chunks/ellipsis-FJjSjEdP.cjs.js.map +1 -0
  119. package/dist/chunks/index-BKZjW6I1.es.js +692 -0
  120. package/dist/chunks/index-BKZjW6I1.es.js.map +1 -0
  121. package/dist/chunks/index-BVqmUhu5.es.js +221 -0
  122. package/dist/chunks/index-BVqmUhu5.es.js.map +1 -0
  123. package/dist/chunks/index-BdfbDt7y.es.js +64 -0
  124. package/dist/chunks/index-BdfbDt7y.es.js.map +1 -0
  125. package/dist/chunks/index-Bli6ZByj.es.js +1571 -0
  126. package/dist/chunks/index-Bli6ZByj.es.js.map +1 -0
  127. package/dist/chunks/index-Br4MVOGV.es.js +12 -0
  128. package/dist/chunks/index-Br4MVOGV.es.js.map +1 -0
  129. package/dist/chunks/index-BruMW80s.cjs.js +2 -0
  130. package/dist/chunks/index-BruMW80s.cjs.js.map +1 -0
  131. package/dist/chunks/index-C28jaZCP.cjs.js +2 -0
  132. package/dist/chunks/index-C28jaZCP.cjs.js.map +1 -0
  133. package/dist/chunks/index-C8ni3LLa.cjs.js +2 -0
  134. package/dist/chunks/index-C8ni3LLa.cjs.js.map +1 -0
  135. package/dist/chunks/index-CGLGXpw0.cjs.js +2 -0
  136. package/dist/chunks/index-CGLGXpw0.cjs.js.map +1 -0
  137. package/dist/chunks/index-CItoM52t.cjs.js +2 -0
  138. package/dist/chunks/index-CItoM52t.cjs.js.map +1 -0
  139. package/dist/chunks/index-CJ0fGifh.cjs.js +2 -0
  140. package/dist/chunks/index-CJ0fGifh.cjs.js.map +1 -0
  141. package/dist/chunks/index-CMEUY8i_.cjs.js +2 -0
  142. package/dist/chunks/index-CMEUY8i_.cjs.js.map +1 -0
  143. package/dist/chunks/index-CN4RxFxN.cjs.js +2 -0
  144. package/dist/chunks/index-CN4RxFxN.cjs.js.map +1 -0
  145. package/dist/chunks/index-CNbacFZ5.es.js +116 -0
  146. package/dist/chunks/index-CNbacFZ5.es.js.map +1 -0
  147. package/dist/chunks/index-CbjDVb-G.es.js +93 -0
  148. package/dist/chunks/index-CbjDVb-G.es.js.map +1 -0
  149. package/dist/chunks/index-ClNIHY-1.es.js +134 -0
  150. package/dist/chunks/index-ClNIHY-1.es.js.map +1 -0
  151. package/dist/chunks/index-Clo5BFLY.es.js +32 -0
  152. package/dist/chunks/index-Clo5BFLY.es.js.map +1 -0
  153. package/dist/chunks/index-CtCzh8NB.cjs.js +6 -0
  154. package/dist/chunks/index-CtCzh8NB.cjs.js.map +1 -0
  155. package/dist/chunks/index-D9zW9Tk7.cjs.js +2 -0
  156. package/dist/chunks/index-D9zW9Tk7.cjs.js.map +1 -0
  157. package/dist/chunks/index-DBXFJW5M.es.js +11 -0
  158. package/dist/chunks/index-DBXFJW5M.es.js.map +1 -0
  159. package/dist/chunks/index-DG15yxNP.cjs.js +42 -0
  160. package/dist/chunks/index-DG15yxNP.cjs.js.map +1 -0
  161. package/dist/chunks/index-DGEvZwN5.cjs.js +2 -0
  162. package/dist/chunks/index-DGEvZwN5.cjs.js.map +1 -0
  163. package/dist/chunks/index-DLcqcWxM.es.js +30 -0
  164. package/dist/chunks/index-DLcqcWxM.es.js.map +1 -0
  165. package/dist/chunks/index-DNQZbZsM.es.js +179 -0
  166. package/dist/chunks/index-DNQZbZsM.es.js.map +1 -0
  167. package/dist/chunks/index-DnRKXUWD.cjs.js +2 -0
  168. package/dist/chunks/index-DnRKXUWD.cjs.js.map +1 -0
  169. package/dist/chunks/index-Dt3MSLsk.es.js +7 -0
  170. package/dist/chunks/index-Dt3MSLsk.es.js.map +1 -0
  171. package/dist/chunks/index-DvGm4EwH.es.js +62 -0
  172. package/dist/chunks/index-DvGm4EwH.es.js.map +1 -0
  173. package/dist/chunks/index-DwYXX2sM.es.js +14 -0
  174. package/dist/chunks/index-DwYXX2sM.es.js.map +1 -0
  175. package/dist/chunks/index-is755vrc.cjs.js +2 -0
  176. package/dist/chunks/index-is755vrc.cjs.js.map +1 -0
  177. package/dist/chunks/index-jFOWwfD3.cjs.js +2 -0
  178. package/dist/chunks/index-jFOWwfD3.cjs.js.map +1 -0
  179. package/dist/chunks/index-pF_O2Ico.cjs.js +2 -0
  180. package/dist/chunks/index-pF_O2Ico.cjs.js.map +1 -0
  181. package/dist/chunks/index-pQxT4IlV.cjs.js +2 -0
  182. package/dist/chunks/index-pQxT4IlV.cjs.js.map +1 -0
  183. package/dist/chunks/index-rKs9bXHr.es.js +7 -0
  184. package/dist/chunks/index-rKs9bXHr.es.js.map +1 -0
  185. package/dist/chunks/index-xA4mlFw5.es.js +35 -0
  186. package/dist/chunks/index-xA4mlFw5.es.js.map +1 -0
  187. package/dist/chunks/index-x_Mxo00P.cjs.js +2 -0
  188. package/dist/chunks/index-x_Mxo00P.cjs.js.map +1 -0
  189. package/dist/chunks/index-xl-szYFX.es.js +290 -0
  190. package/dist/chunks/index-xl-szYFX.es.js.map +1 -0
  191. package/dist/chunks/pagination-DFYeehFF.es.js +113 -0
  192. package/dist/chunks/pagination-DFYeehFF.es.js.map +1 -0
  193. package/dist/chunks/pagination-LHTb7tXo.cjs.js +2 -0
  194. package/dist/chunks/pagination-LHTb7tXo.cjs.js.map +1 -0
  195. package/dist/chunks/popover-Bh6emR_J.cjs.js +2 -0
  196. package/dist/chunks/popover-Bh6emR_J.cjs.js.map +1 -0
  197. package/dist/chunks/popover-BredK0sg.es.js +285 -0
  198. package/dist/chunks/popover-BredK0sg.es.js.map +1 -0
  199. package/dist/chunks/scroll-area-CwWjTiks.es.js +555 -0
  200. package/dist/chunks/scroll-area-CwWjTiks.es.js.map +1 -0
  201. package/dist/chunks/scroll-area-Nj6J9MqV.cjs.js +2 -0
  202. package/dist/chunks/scroll-area-Nj6J9MqV.cjs.js.map +1 -0
  203. package/dist/chunks/select-BTgKkicD.es.js +1404 -0
  204. package/dist/chunks/select-BTgKkicD.es.js.map +1 -0
  205. package/dist/chunks/select-D703Xctn.cjs.js +7 -0
  206. package/dist/chunks/select-D703Xctn.cjs.js.map +1 -0
  207. package/dist/chunks/separator-CGvV-BlI.cjs.js +2 -0
  208. package/dist/chunks/separator-CGvV-BlI.cjs.js.map +1 -0
  209. package/dist/chunks/separator-CgP4OHOF.es.js +67 -0
  210. package/dist/chunks/separator-CgP4OHOF.es.js.map +1 -0
  211. package/dist/chunks/sheet-BL1AP0aU.cjs.js +2 -0
  212. package/dist/chunks/sheet-BL1AP0aU.cjs.js.map +1 -0
  213. package/dist/chunks/sheet-CKsRhiVy.es.js +136 -0
  214. package/dist/chunks/sheet-CKsRhiVy.es.js.map +1 -0
  215. package/dist/chunks/skeleton-C7pnV7bc.cjs.js +2 -0
  216. package/dist/chunks/skeleton-C7pnV7bc.cjs.js.map +1 -0
  217. package/dist/chunks/skeleton-DKbF2Fso.es.js +18 -0
  218. package/dist/chunks/skeleton-DKbF2Fso.es.js.map +1 -0
  219. package/dist/chunks/table-BTb0KUhR.es.js +90 -0
  220. package/dist/chunks/table-BTb0KUhR.es.js.map +1 -0
  221. package/dist/chunks/table-Dxainp0Z.cjs.js +2 -0
  222. package/dist/chunks/table-Dxainp0Z.cjs.js.map +1 -0
  223. package/dist/chunks/tabs-BnamvF0S.es.js +317 -0
  224. package/dist/chunks/tabs-BnamvF0S.es.js.map +1 -0
  225. package/dist/chunks/tabs-CDt2LiNL.cjs.js +6 -0
  226. package/dist/chunks/tabs-CDt2LiNL.cjs.js.map +1 -0
  227. package/dist/chunks/textarea-4zXXFdLZ.cjs.js +187 -0
  228. package/dist/chunks/textarea-4zXXFdLZ.cjs.js.map +1 -0
  229. package/dist/chunks/textarea-CBSWNU0D.es.js +17234 -0
  230. package/dist/chunks/textarea-CBSWNU0D.es.js.map +1 -0
  231. package/dist/chunks/timepicker-CVkum2UK.es.js +3394 -0
  232. package/dist/chunks/timepicker-CVkum2UK.es.js.map +1 -0
  233. package/dist/chunks/timepicker-nlKbDl_W.cjs.js +7 -0
  234. package/dist/chunks/timepicker-nlKbDl_W.cjs.js.map +1 -0
  235. package/dist/chunks/tooltip-CsZB0nVr.cjs.js +2 -0
  236. package/dist/chunks/tooltip-CsZB0nVr.cjs.js.map +1 -0
  237. package/dist/chunks/tooltip-Dtzkuphk.es.js +341 -0
  238. package/dist/chunks/tooltip-Dtzkuphk.es.js.map +1 -0
  239. package/dist/chunks/utils-C4d7Ql9-.cjs.js +2 -0
  240. package/dist/chunks/utils-C4d7Ql9-.cjs.js.map +1 -0
  241. package/dist/chunks/utils-CnvKSirc.es.js +2778 -0
  242. package/dist/chunks/utils-CnvKSirc.es.js.map +1 -0
  243. package/dist/chunks/x-8d8XBbXN.es.js +15 -0
  244. package/dist/chunks/x-8d8XBbXN.es.js.map +1 -0
  245. package/dist/chunks/x-Ev63aQi_.cjs.js +7 -0
  246. package/dist/chunks/x-Ev63aQi_.cjs.js.map +1 -0
  247. package/dist/collapsible/index.cjs.js +2 -0
  248. package/dist/collapsible/index.cjs.js.map +1 -0
  249. package/dist/collapsible/index.es.js +7 -0
  250. package/dist/collapsible/index.es.js.map +1 -0
  251. package/dist/dialog/index.cjs.js +2 -0
  252. package/dist/dialog/index.cjs.js.map +1 -0
  253. package/dist/dialog/index.es.js +14 -0
  254. package/dist/dialog/index.es.js.map +1 -0
  255. package/dist/dropdown/index.cjs.js +2 -0
  256. package/dist/dropdown/index.cjs.js.map +1 -0
  257. package/dist/dropdown/index.es.js +19 -0
  258. package/dist/dropdown/index.es.js.map +1 -0
  259. package/dist/form/index.cjs.js +2 -0
  260. package/dist/form/index.cjs.js.map +1 -0
  261. package/dist/form/index.es.js +36 -0
  262. package/dist/form/index.es.js.map +1 -0
  263. package/dist/index.cjs.js +2 -0
  264. package/dist/index.cjs.js.map +1 -0
  265. package/dist/index.es.js +171 -0
  266. package/dist/index.es.js.map +1 -0
  267. package/dist/pagination/index.cjs.js +2 -0
  268. package/dist/pagination/index.cjs.js.map +1 -0
  269. package/dist/pagination/index.es.js +11 -0
  270. package/dist/pagination/index.es.js.map +1 -0
  271. package/dist/popover/index.cjs.js +2 -0
  272. package/dist/popover/index.cjs.js.map +1 -0
  273. package/dist/popover/index.es.js +7 -0
  274. package/dist/popover/index.es.js.map +1 -0
  275. package/dist/progress/index.cjs.js +7 -0
  276. package/dist/progress/index.cjs.js.map +1 -0
  277. package/dist/progress/index.es.js +194 -0
  278. package/dist/progress/index.es.js.map +1 -0
  279. package/dist/scroll-area/index.cjs.js +2 -0
  280. package/dist/scroll-area/index.cjs.js.map +1 -0
  281. package/dist/scroll-area/index.es.js +6 -0
  282. package/dist/scroll-area/index.es.js.map +1 -0
  283. package/dist/separator/index.cjs.js +2 -0
  284. package/dist/separator/index.cjs.js.map +1 -0
  285. package/dist/separator/index.es.js +5 -0
  286. package/dist/separator/index.es.js.map +1 -0
  287. package/dist/sheet/index.cjs.js +2 -0
  288. package/dist/sheet/index.cjs.js.map +1 -0
  289. package/dist/sheet/index.es.js +12 -0
  290. package/dist/sheet/index.es.js.map +1 -0
  291. package/dist/skeleton/index.cjs.js +2 -0
  292. package/dist/skeleton/index.cjs.js.map +1 -0
  293. package/dist/skeleton/index.es.js +5 -0
  294. package/dist/skeleton/index.es.js.map +1 -0
  295. package/dist/styles.css +7 -0
  296. package/dist/tab/index.cjs.js +2 -0
  297. package/dist/tab/index.cjs.js.map +1 -0
  298. package/dist/tab/index.es.js +8 -0
  299. package/dist/tab/index.es.js.map +1 -0
  300. package/dist/table/index.cjs.js +2 -0
  301. package/dist/table/index.cjs.js.map +1 -0
  302. package/dist/table/index.es.js +12 -0
  303. package/dist/table/index.es.js.map +1 -0
  304. package/dist/tooltip/index.cjs.js +2 -0
  305. package/dist/tooltip/index.cjs.js.map +1 -0
  306. package/dist/tooltip/index.es.js +8 -0
  307. package/dist/tooltip/index.es.js.map +1 -0
  308. package/dist/types/App.d.ts +9 -0
  309. package/dist/types/App.d.ts.map +1 -0
  310. package/dist/types/hooks/use-mobile.d.ts +8 -0
  311. package/dist/types/hooks/use-mobile.d.ts.map +1 -0
  312. package/dist/types/index.d.ts +28 -0
  313. package/dist/types/index.d.ts.map +1 -0
  314. package/dist/types/lib/day.d.ts +7 -0
  315. package/dist/types/lib/day.d.ts.map +1 -0
  316. package/dist/types/lib/index.d.ts +6 -0
  317. package/dist/types/lib/index.d.ts.map +1 -0
  318. package/dist/types/lib/utils.d.ts +10 -0
  319. package/dist/types/lib/utils.d.ts.map +1 -0
  320. package/dist/types/main.d.ts +1 -0
  321. package/dist/types/main.d.ts.map +1 -0
  322. package/dist/types/stories/Accordion.stories.d.ts +17 -0
  323. package/dist/types/stories/Accordion.stories.d.ts.map +1 -0
  324. package/dist/types/stories/Alert.stories.d.ts +26 -0
  325. package/dist/types/stories/Alert.stories.d.ts.map +1 -0
  326. package/dist/types/stories/AlertDialog.stories.d.ts +18 -0
  327. package/dist/types/stories/AlertDialog.stories.d.ts.map +1 -0
  328. package/dist/types/stories/Avatar.stories.d.ts +27 -0
  329. package/dist/types/stories/Avatar.stories.d.ts.map +1 -0
  330. package/dist/types/stories/Badge.stories.d.ts +44 -0
  331. package/dist/types/stories/Badge.stories.d.ts.map +1 -0
  332. package/dist/types/stories/Breadcrumb.stories.d.ts +20 -0
  333. package/dist/types/stories/Breadcrumb.stories.d.ts.map +1 -0
  334. package/dist/types/stories/Button.stories.d.ts +48 -0
  335. package/dist/types/stories/Button.stories.d.ts.map +1 -0
  336. package/dist/types/stories/ButtonGroup.stories.d.ts +29 -0
  337. package/dist/types/stories/ButtonGroup.stories.d.ts.map +1 -0
  338. package/dist/types/stories/Calendar.stories.d.ts +35 -0
  339. package/dist/types/stories/Calendar.stories.d.ts.map +1 -0
  340. package/dist/types/stories/Card.stories.d.ts +17 -0
  341. package/dist/types/stories/Card.stories.d.ts.map +1 -0
  342. package/dist/types/stories/Carousel.stories.d.ts +23 -0
  343. package/dist/types/stories/Carousel.stories.d.ts.map +1 -0
  344. package/dist/types/stories/Checkbox.stories.d.ts +31 -0
  345. package/dist/types/stories/Checkbox.stories.d.ts.map +1 -0
  346. package/dist/types/stories/Collapsible.stories.d.ts +17 -0
  347. package/dist/types/stories/Collapsible.stories.d.ts.map +1 -0
  348. package/dist/types/stories/DatePicker.stories.d.ts +14 -0
  349. package/dist/types/stories/DatePicker.stories.d.ts.map +1 -0
  350. package/dist/types/stories/Dialog.stories.d.ts +18 -0
  351. package/dist/types/stories/Dialog.stories.d.ts.map +1 -0
  352. package/dist/types/stories/DropdownMenu.stories.d.ts +17 -0
  353. package/dist/types/stories/DropdownMenu.stories.d.ts.map +1 -0
  354. package/dist/types/stories/FilepondContainer.stories.d.ts +21 -0
  355. package/dist/types/stories/FilepondContainer.stories.d.ts.map +1 -0
  356. package/dist/types/stories/Form.stories.d.ts +15 -0
  357. package/dist/types/stories/Form.stories.d.ts.map +1 -0
  358. package/dist/types/stories/HtmlEditor.stories.d.ts +27 -0
  359. package/dist/types/stories/HtmlEditor.stories.d.ts.map +1 -0
  360. package/dist/types/stories/Input.stories.d.ts +40 -0
  361. package/dist/types/stories/Input.stories.d.ts.map +1 -0
  362. package/dist/types/stories/Label.stories.d.ts +19 -0
  363. package/dist/types/stories/Label.stories.d.ts.map +1 -0
  364. package/dist/types/stories/MaskInput.stories.d.ts +115 -0
  365. package/dist/types/stories/MaskInput.stories.d.ts.map +1 -0
  366. package/dist/types/stories/Pagination.stories.d.ts +21 -0
  367. package/dist/types/stories/Pagination.stories.d.ts.map +1 -0
  368. package/dist/types/stories/Popover.stories.d.ts +17 -0
  369. package/dist/types/stories/Popover.stories.d.ts.map +1 -0
  370. package/dist/types/stories/Progress.stories.d.ts +33 -0
  371. package/dist/types/stories/Progress.stories.d.ts.map +1 -0
  372. package/dist/types/stories/RadioGroup.stories.d.ts +18 -0
  373. package/dist/types/stories/RadioGroup.stories.d.ts.map +1 -0
  374. package/dist/types/stories/ReactSelect.stories.d.ts +39 -0
  375. package/dist/types/stories/ReactSelect.stories.d.ts.map +1 -0
  376. package/dist/types/stories/ScrollArea.stories.d.ts +18 -0
  377. package/dist/types/stories/ScrollArea.stories.d.ts.map +1 -0
  378. package/dist/types/stories/Select.stories.d.ts +18 -0
  379. package/dist/types/stories/Select.stories.d.ts.map +1 -0
  380. package/dist/types/stories/Separator.stories.d.ts +28 -0
  381. package/dist/types/stories/Separator.stories.d.ts.map +1 -0
  382. package/dist/types/stories/Sheet.stories.d.ts +21 -0
  383. package/dist/types/stories/Sheet.stories.d.ts.map +1 -0
  384. package/dist/types/stories/Skeleton.stories.d.ts +22 -0
  385. package/dist/types/stories/Skeleton.stories.d.ts.map +1 -0
  386. package/dist/types/stories/Switch.stories.d.ts +29 -0
  387. package/dist/types/stories/Switch.stories.d.ts.map +1 -0
  388. package/dist/types/stories/Table.stories.d.ts +17 -0
  389. package/dist/types/stories/Table.stories.d.ts.map +1 -0
  390. package/dist/types/stories/Tabs.stories.d.ts +19 -0
  391. package/dist/types/stories/Tabs.stories.d.ts.map +1 -0
  392. package/dist/types/stories/Textarea.stories.d.ts +34 -0
  393. package/dist/types/stories/Textarea.stories.d.ts.map +1 -0
  394. package/dist/types/stories/TimePicker.stories.d.ts +33 -0
  395. package/dist/types/stories/TimePicker.stories.d.ts.map +1 -0
  396. package/dist/types/stories/Tooltip.stories.d.ts +27 -0
  397. package/dist/types/stories/Tooltip.stories.d.ts.map +1 -0
  398. package/dist/types/types/element-data.type.d.ts +8 -0
  399. package/dist/types/types/element-data.type.d.ts.map +1 -0
  400. package/dist/types/types/index.d.ts +2 -0
  401. package/dist/types/types/index.d.ts.map +1 -0
  402. package/dist/types/ui/accordion/accordion.d.ts +69 -0
  403. package/dist/types/ui/accordion/accordion.d.ts.map +1 -0
  404. package/dist/types/ui/accordion/index.d.ts +2 -0
  405. package/dist/types/ui/accordion/index.d.ts.map +1 -0
  406. package/dist/types/ui/alert/alert.d.ts +31 -0
  407. package/dist/types/ui/alert/alert.d.ts.map +1 -0
  408. package/dist/types/ui/alert/index.d.ts +2 -0
  409. package/dist/types/ui/alert/index.d.ts.map +1 -0
  410. package/dist/types/ui/alert-dialog/alert-dialog.d.ts +62 -0
  411. package/dist/types/ui/alert-dialog/alert-dialog.d.ts.map +1 -0
  412. package/dist/types/ui/alert-dialog/index.d.ts +2 -0
  413. package/dist/types/ui/alert-dialog/index.d.ts.map +1 -0
  414. package/dist/types/ui/avatar/avatar.d.ts +86 -0
  415. package/dist/types/ui/avatar/avatar.d.ts.map +1 -0
  416. package/dist/types/ui/avatar/index.d.ts +2 -0
  417. package/dist/types/ui/avatar/index.d.ts.map +1 -0
  418. package/dist/types/ui/badge/badge.d.ts +45 -0
  419. package/dist/types/ui/badge/badge.d.ts.map +1 -0
  420. package/dist/types/ui/badge/index.d.ts +2 -0
  421. package/dist/types/ui/badge/index.d.ts.map +1 -0
  422. package/dist/types/ui/breadcrumb/breadcrumb.d.ts +60 -0
  423. package/dist/types/ui/breadcrumb/breadcrumb.d.ts.map +1 -0
  424. package/dist/types/ui/breadcrumb/index.d.ts +2 -0
  425. package/dist/types/ui/breadcrumb/index.d.ts.map +1 -0
  426. package/dist/types/ui/button/button-group.d.ts +43 -0
  427. package/dist/types/ui/button/button-group.d.ts.map +1 -0
  428. package/dist/types/ui/button/button.d.ts +42 -0
  429. package/dist/types/ui/button/button.d.ts.map +1 -0
  430. package/dist/types/ui/button/index.d.ts +3 -0
  431. package/dist/types/ui/button/index.d.ts.map +1 -0
  432. package/dist/types/ui/calendar/calendar.d.ts +84 -0
  433. package/dist/types/ui/calendar/calendar.d.ts.map +1 -0
  434. package/dist/types/ui/calendar/datepicker.d.ts +8 -0
  435. package/dist/types/ui/calendar/datepicker.d.ts.map +1 -0
  436. package/dist/types/ui/calendar/index.d.ts +4 -0
  437. package/dist/types/ui/calendar/index.d.ts.map +1 -0
  438. package/dist/types/ui/calendar/timepicker.d.ts +38 -0
  439. package/dist/types/ui/calendar/timepicker.d.ts.map +1 -0
  440. package/dist/types/ui/card/card.d.ts +39 -0
  441. package/dist/types/ui/card/card.d.ts.map +1 -0
  442. package/dist/types/ui/card/index.d.ts +2 -0
  443. package/dist/types/ui/card/index.d.ts.map +1 -0
  444. package/dist/types/ui/carousel/carousel.d.ts +73 -0
  445. package/dist/types/ui/carousel/carousel.d.ts.map +1 -0
  446. package/dist/types/ui/carousel/index.d.ts +2 -0
  447. package/dist/types/ui/carousel/index.d.ts.map +1 -0
  448. package/dist/types/ui/collapsible/collapsible.d.ts +18 -0
  449. package/dist/types/ui/collapsible/collapsible.d.ts.map +1 -0
  450. package/dist/types/ui/collapsible/index.d.ts +2 -0
  451. package/dist/types/ui/collapsible/index.d.ts.map +1 -0
  452. package/dist/types/ui/dialog/dialog.d.ts +76 -0
  453. package/dist/types/ui/dialog/dialog.d.ts.map +1 -0
  454. package/dist/types/ui/dialog/index.d.ts +2 -0
  455. package/dist/types/ui/dialog/index.d.ts.map +1 -0
  456. package/dist/types/ui/dropdown/dropdown-menu.d.ts +88 -0
  457. package/dist/types/ui/dropdown/dropdown-menu.d.ts.map +1 -0
  458. package/dist/types/ui/dropdown/index.d.ts +2 -0
  459. package/dist/types/ui/dropdown/index.d.ts.map +1 -0
  460. package/dist/types/ui/form/checkbox.d.ts +16 -0
  461. package/dist/types/ui/form/checkbox.d.ts.map +1 -0
  462. package/dist/types/ui/form/filepond-container.d.ts +25 -0
  463. package/dist/types/ui/form/filepond-container.d.ts.map +1 -0
  464. package/dist/types/ui/form/form.d.ts +68 -0
  465. package/dist/types/ui/form/form.d.ts.map +1 -0
  466. package/dist/types/ui/form/html-editor.d.ts +38 -0
  467. package/dist/types/ui/form/html-editor.d.ts.map +1 -0
  468. package/dist/types/ui/form/index.d.ts +13 -0
  469. package/dist/types/ui/form/index.d.ts.map +1 -0
  470. package/dist/types/ui/form/input-mask.d.ts +111 -0
  471. package/dist/types/ui/form/input-mask.d.ts.map +1 -0
  472. package/dist/types/ui/form/input.d.ts +33 -0
  473. package/dist/types/ui/form/input.d.ts.map +1 -0
  474. package/dist/types/ui/form/label.d.ts +11 -0
  475. package/dist/types/ui/form/label.d.ts.map +1 -0
  476. package/dist/types/ui/form/radio-group.d.ts +25 -0
  477. package/dist/types/ui/form/radio-group.d.ts.map +1 -0
  478. package/dist/types/ui/form/react-select.d.ts +40 -0
  479. package/dist/types/ui/form/react-select.d.ts.map +1 -0
  480. package/dist/types/ui/form/select.d.ts +100 -0
  481. package/dist/types/ui/form/select.d.ts.map +1 -0
  482. package/dist/types/ui/form/switch.d.ts +16 -0
  483. package/dist/types/ui/form/switch.d.ts.map +1 -0
  484. package/dist/types/ui/form/textarea.d.ts +19 -0
  485. package/dist/types/ui/form/textarea.d.ts.map +1 -0
  486. package/dist/types/ui/pagination/index.d.ts +2 -0
  487. package/dist/types/ui/pagination/index.d.ts.map +1 -0
  488. package/dist/types/ui/pagination/pagination.d.ts +78 -0
  489. package/dist/types/ui/pagination/pagination.d.ts.map +1 -0
  490. package/dist/types/ui/popover/index.d.ts +2 -0
  491. package/dist/types/ui/popover/index.d.ts.map +1 -0
  492. package/dist/types/ui/popover/popover.d.ts +29 -0
  493. package/dist/types/ui/popover/popover.d.ts.map +1 -0
  494. package/dist/types/ui/progress/index.d.ts +2 -0
  495. package/dist/types/ui/progress/index.d.ts.map +1 -0
  496. package/dist/types/ui/progress/progress.d.ts +14 -0
  497. package/dist/types/ui/progress/progress.d.ts.map +1 -0
  498. package/dist/types/ui/scroll-area/index.d.ts +2 -0
  499. package/dist/types/ui/scroll-area/index.d.ts.map +1 -0
  500. package/dist/types/ui/scroll-area/scroll-area.d.ts +20 -0
  501. package/dist/types/ui/scroll-area/scroll-area.d.ts.map +1 -0
  502. package/dist/types/ui/separator/index.d.ts +2 -0
  503. package/dist/types/ui/separator/index.d.ts.map +1 -0
  504. package/dist/types/ui/separator/separator.d.ts +13 -0
  505. package/dist/types/ui/separator/separator.d.ts.map +1 -0
  506. package/dist/types/ui/sheet/index.d.ts +2 -0
  507. package/dist/types/ui/sheet/index.d.ts.map +1 -0
  508. package/dist/types/ui/sheet/sheet.d.ts +61 -0
  509. package/dist/types/ui/sheet/sheet.d.ts.map +1 -0
  510. package/dist/types/ui/skeleton/index.d.ts +2 -0
  511. package/dist/types/ui/skeleton/index.d.ts.map +1 -0
  512. package/dist/types/ui/skeleton/skeleton.d.ts +8 -0
  513. package/dist/types/ui/skeleton/skeleton.d.ts.map +1 -0
  514. package/dist/types/ui/tab/index.d.ts +2 -0
  515. package/dist/types/ui/tab/index.d.ts.map +1 -0
  516. package/dist/types/ui/tab/tabs.d.ts +50 -0
  517. package/dist/types/ui/tab/tabs.d.ts.map +1 -0
  518. package/dist/types/ui/table/index.d.ts +2 -0
  519. package/dist/types/ui/table/index.d.ts.map +1 -0
  520. package/dist/types/ui/table/table.d.ts +43 -0
  521. package/dist/types/ui/table/table.d.ts.map +1 -0
  522. package/dist/types/ui/tooltip/index.d.ts +2 -0
  523. package/dist/types/ui/tooltip/index.d.ts.map +1 -0
  524. package/dist/types/ui/tooltip/tooltip.d.ts +15 -0
  525. package/dist/types/ui/tooltip/tooltip.d.ts.map +1 -0
  526. package/dist/types/vite-env.d.ts +1 -0
  527. package/dist/utils/index.cjs.js +2 -0
  528. package/dist/utils/index.cjs.js.map +1 -0
  529. package/dist/utils/index.es.js +287 -0
  530. package/dist/utils/index.es.js.map +1 -0
  531. package/package.json +366 -0
@@ -0,0 +1,3394 @@
1
+ import { jsx as C, jsxs as se } from "react/jsx-runtime";
2
+ import y, { createContext as jn, useContext as zn, useCallback as I, useRef as Fe, useLayoutEffect as $n, useState as ee, useEffect as Ze, useMemo as he, forwardRef as Gn } from "react";
3
+ import { useTranslation as Le } from "react-i18next";
4
+ import { dayjs as j } from "../utils/index.es.js";
5
+ import { t as Rn, c as L } from "./utils-CnvKSirc.es.js";
6
+ import { B as oe, b as mt } from "./button-DTRIYqDb.es.js";
7
+ import { P as Vn, b as Qn, a as Un } from "./popover-BredK0sg.es.js";
8
+ import { J as _t, r as Et, g as Xn } from "./index-Br4MVOGV.es.js";
9
+ import { c as Kn } from "./createLucideIcon-CyFYF6Ug.es.js";
10
+ import { S as yt, h as gt, i as bt, a as wt, c as Mt } from "./select-BTgKkicD.es.js";
11
+ /**
12
+ * @license lucide-react v0.563.0 - ISC
13
+ *
14
+ * This source code is licensed under the ISC license.
15
+ * See the LICENSE file in the root directory of this source tree.
16
+ */
17
+ const Jn = [
18
+ ["path", { d: "M8 2v4", key: "1cmpym" }],
19
+ ["path", { d: "M16 2v4", key: "4m81vk" }],
20
+ ["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
21
+ ["path", { d: "M3 10h18", key: "8toen8" }]
22
+ ], Zn = Kn("calendar", Jn);
23
+ function Ln(e, t, n = "long") {
24
+ return new Intl.DateTimeFormat("en-US", {
25
+ // Enforces engine to render the time. Without the option JavaScriptCore omits it.
26
+ hour: "numeric",
27
+ timeZone: e,
28
+ timeZoneName: n
29
+ }).format(t).split(/\s/g).slice(2).join(" ");
30
+ }
31
+ const Re = {}, We = {};
32
+ function fe(e, t) {
33
+ try {
34
+ const r = (Re[e] || (Re[e] = new Intl.DateTimeFormat("en-US", {
35
+ timeZone: e,
36
+ timeZoneName: "longOffset"
37
+ }).format))(t).split("GMT")[1];
38
+ return r in We ? We[r] : kt(r, r.split(":"));
39
+ } catch {
40
+ if (e in We) return We[e];
41
+ const n = e == null ? void 0 : e.match(er);
42
+ return n ? kt(e, n.slice(1)) : NaN;
43
+ }
44
+ }
45
+ const er = /([+-]\d\d):?(\d\d)?/;
46
+ function kt(e, t) {
47
+ const n = +(t[0] || 0), r = +(t[1] || 0), a = +(t[2] || 0) / 60;
48
+ return We[e] = n * 60 + r > 0 ? n * 60 + r + a : n * 60 - r - a;
49
+ }
50
+ class te extends Date {
51
+ //#region static
52
+ constructor(...t) {
53
+ super(), t.length > 1 && typeof t[t.length - 1] == "string" && (this.timeZone = t.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(fe(this.timeZone, this)) ? this.setTime(NaN) : t.length ? typeof t[0] == "number" && (t.length === 1 || t.length === 2 && typeof t[1] != "number") ? this.setTime(t[0]) : typeof t[0] == "string" ? this.setTime(+new Date(t[0])) : t[0] instanceof Date ? this.setTime(+t[0]) : (this.setTime(+new Date(...t)), Ft(this), Je(this)) : this.setTime(Date.now());
54
+ }
55
+ static tz(t, ...n) {
56
+ return n.length ? new te(...n, t) : new te(Date.now(), t);
57
+ }
58
+ //#endregion
59
+ //#region time zone
60
+ withTimeZone(t) {
61
+ return new te(+this, t);
62
+ }
63
+ getTimezoneOffset() {
64
+ const t = -fe(this.timeZone, this);
65
+ return t > 0 ? Math.floor(t) : Math.ceil(t);
66
+ }
67
+ //#endregion
68
+ //#region time
69
+ setTime(t) {
70
+ return Date.prototype.setTime.apply(this, arguments), Je(this), +this;
71
+ }
72
+ //#endregion
73
+ //#region date-fns integration
74
+ [Symbol.for("constructDateFrom")](t) {
75
+ return new te(+new Date(t), this.timeZone);
76
+ }
77
+ //#endregion
78
+ }
79
+ const Dt = /^(get|set)(?!UTC)/;
80
+ Object.getOwnPropertyNames(Date.prototype).forEach((e) => {
81
+ if (!Dt.test(e)) return;
82
+ const t = e.replace(Dt, "$1UTC");
83
+ te.prototype[t] && (e.startsWith("get") ? te.prototype[e] = function() {
84
+ return this.internal[t]();
85
+ } : (te.prototype[e] = function() {
86
+ return Date.prototype[t].apply(this.internal, arguments), tr(this), +this;
87
+ }, te.prototype[t] = function() {
88
+ return Date.prototype[t].apply(this, arguments), Je(this), +this;
89
+ }));
90
+ });
91
+ function Je(e) {
92
+ e.internal.setTime(+e), e.internal.setUTCSeconds(e.internal.getUTCSeconds() - Math.round(-fe(e.timeZone, e) * 60));
93
+ }
94
+ function tr(e) {
95
+ Date.prototype.setFullYear.call(e, e.internal.getUTCFullYear(), e.internal.getUTCMonth(), e.internal.getUTCDate()), Date.prototype.setHours.call(e, e.internal.getUTCHours(), e.internal.getUTCMinutes(), e.internal.getUTCSeconds(), e.internal.getUTCMilliseconds()), Ft(e);
96
+ }
97
+ function Ft(e) {
98
+ const t = fe(e.timeZone, e), n = t > 0 ? Math.floor(t) : Math.ceil(t), r = /* @__PURE__ */ new Date(+e);
99
+ r.setUTCHours(r.getUTCHours() - 1);
100
+ const a = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset(), o = -(/* @__PURE__ */ new Date(+r)).getTimezoneOffset(), s = a - o, i = Date.prototype.getHours.apply(e) !== e.internal.getUTCHours();
101
+ s && i && e.internal.setUTCMinutes(e.internal.getUTCMinutes() + s);
102
+ const c = a - n;
103
+ c && Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + c);
104
+ const u = /* @__PURE__ */ new Date(+e);
105
+ u.setUTCSeconds(0);
106
+ const l = a > 0 ? u.getSeconds() : (u.getSeconds() - 60) % 60, d = Math.round(-(fe(e.timeZone, e) * 60)) % 60;
107
+ (d || l) && (e.internal.setUTCSeconds(e.internal.getUTCSeconds() + d), Date.prototype.setUTCSeconds.call(e, Date.prototype.getUTCSeconds.call(e) + d + l));
108
+ const h = fe(e.timeZone, e), b = h > 0 ? Math.floor(h) : Math.ceil(h), D = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset() - b, M = b !== n, v = D - c;
109
+ if (M && v) {
110
+ Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + v);
111
+ const g = fe(e.timeZone, e), w = g > 0 ? Math.floor(g) : Math.ceil(g), N = b - w;
112
+ N && (e.internal.setUTCMinutes(e.internal.getUTCMinutes() + N), Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + N));
113
+ }
114
+ }
115
+ class q extends te {
116
+ //#region static
117
+ static tz(t, ...n) {
118
+ return n.length ? new q(...n, t) : new q(Date.now(), t);
119
+ }
120
+ //#endregion
121
+ //#region representation
122
+ toISOString() {
123
+ const [t, n, r] = this.tzComponents(), a = `${t}${n}:${r}`;
124
+ return this.internal.toISOString().slice(0, -1) + a;
125
+ }
126
+ toString() {
127
+ return `${this.toDateString()} ${this.toTimeString()}`;
128
+ }
129
+ toDateString() {
130
+ const [t, n, r, a] = this.internal.toUTCString().split(" ");
131
+ return `${t == null ? void 0 : t.slice(0, -1)} ${r} ${n} ${a}`;
132
+ }
133
+ toTimeString() {
134
+ const t = this.internal.toUTCString().split(" ")[4], [n, r, a] = this.tzComponents();
135
+ return `${t} GMT${n}${r}${a} (${Ln(this.timeZone, this)})`;
136
+ }
137
+ toLocaleString(t, n) {
138
+ return Date.prototype.toLocaleString.call(this, t, {
139
+ ...n,
140
+ timeZone: (n == null ? void 0 : n.timeZone) || this.timeZone
141
+ });
142
+ }
143
+ toLocaleDateString(t, n) {
144
+ return Date.prototype.toLocaleDateString.call(this, t, {
145
+ ...n,
146
+ timeZone: (n == null ? void 0 : n.timeZone) || this.timeZone
147
+ });
148
+ }
149
+ toLocaleTimeString(t, n) {
150
+ return Date.prototype.toLocaleTimeString.call(this, t, {
151
+ ...n,
152
+ timeZone: (n == null ? void 0 : n.timeZone) || this.timeZone
153
+ });
154
+ }
155
+ //#endregion
156
+ //#region private
157
+ tzComponents() {
158
+ const t = this.getTimezoneOffset(), n = t > 0 ? "-" : "+", r = String(Math.floor(Math.abs(t) / 60)).padStart(2, "0"), a = String(Math.abs(t) % 60).padStart(2, "0");
159
+ return [n, r, a];
160
+ }
161
+ //#endregion
162
+ withTimeZone(t) {
163
+ return new q(+this, t);
164
+ }
165
+ //#region date-fns integration
166
+ [Symbol.for("constructDateFrom")](t) {
167
+ return new q(+new Date(t), this.timeZone);
168
+ }
169
+ //#endregion
170
+ }
171
+ const Bt = 6048e5, nr = 864e5, vt = Symbol.for("constructDateFrom");
172
+ function H(e, t) {
173
+ return typeof e == "function" ? e(t) : e && typeof e == "object" && vt in e ? e[vt](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
174
+ }
175
+ function _(e, t) {
176
+ return H(t || e, e);
177
+ }
178
+ function It(e, t, n) {
179
+ const r = _(e, n == null ? void 0 : n.in);
180
+ return isNaN(t) ? H(e, NaN) : (t && r.setDate(r.getDate() + t), r);
181
+ }
182
+ function Ht(e, t, n) {
183
+ const r = _(e, n == null ? void 0 : n.in);
184
+ if (isNaN(t)) return H(e, NaN);
185
+ if (!t)
186
+ return r;
187
+ const a = r.getDate(), o = H(e, r.getTime());
188
+ o.setMonth(r.getMonth() + t + 1, 0);
189
+ const s = o.getDate();
190
+ return a >= s ? o : (r.setFullYear(
191
+ o.getFullYear(),
192
+ o.getMonth(),
193
+ a
194
+ ), r);
195
+ }
196
+ let rr = {};
197
+ function Ce() {
198
+ return rr;
199
+ }
200
+ function we(e, t) {
201
+ var i, c, u, l;
202
+ const n = Ce(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((c = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : c.weekStartsOn) ?? n.weekStartsOn ?? ((l = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : l.weekStartsOn) ?? 0, a = _(e, t == null ? void 0 : t.in), o = a.getDay(), s = (o < r ? 7 : 0) + o - r;
203
+ return a.setDate(a.getDate() - s), a.setHours(0, 0, 0, 0), a;
204
+ }
205
+ function Ne(e, t) {
206
+ return we(e, { ...t, weekStartsOn: 1 });
207
+ }
208
+ function At(e, t) {
209
+ const n = _(e, t == null ? void 0 : t.in), r = n.getFullYear(), a = H(n, 0);
210
+ a.setFullYear(r + 1, 0, 4), a.setHours(0, 0, 0, 0);
211
+ const o = Ne(a), s = H(n, 0);
212
+ s.setFullYear(r, 0, 4), s.setHours(0, 0, 0, 0);
213
+ const i = Ne(s);
214
+ return n.getTime() >= o.getTime() ? r + 1 : n.getTime() >= i.getTime() ? r : r - 1;
215
+ }
216
+ function Ot(e) {
217
+ const t = _(e), n = new Date(
218
+ Date.UTC(
219
+ t.getFullYear(),
220
+ t.getMonth(),
221
+ t.getDate(),
222
+ t.getHours(),
223
+ t.getMinutes(),
224
+ t.getSeconds(),
225
+ t.getMilliseconds()
226
+ )
227
+ );
228
+ return n.setUTCFullYear(t.getFullYear()), +e - +n;
229
+ }
230
+ function Me(e, ...t) {
231
+ const n = H.bind(
232
+ null,
233
+ t.find((r) => typeof r == "object")
234
+ );
235
+ return t.map(n);
236
+ }
237
+ function xe(e, t) {
238
+ const n = _(e, t == null ? void 0 : t.in);
239
+ return n.setHours(0, 0, 0, 0), n;
240
+ }
241
+ function et(e, t, n) {
242
+ const [r, a] = Me(
243
+ n == null ? void 0 : n.in,
244
+ e,
245
+ t
246
+ ), o = xe(r), s = xe(a), i = +o - Ot(o), c = +s - Ot(s);
247
+ return Math.round((i - c) / nr);
248
+ }
249
+ function ar(e, t) {
250
+ const n = At(e, t), r = H(e, 0);
251
+ return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), Ne(r);
252
+ }
253
+ function or(e, t, n) {
254
+ return It(e, t * 7, n);
255
+ }
256
+ function sr(e, t, n) {
257
+ return Ht(e, t * 12, n);
258
+ }
259
+ function ir(e, t) {
260
+ let n, r = t == null ? void 0 : t.in;
261
+ return e.forEach((a) => {
262
+ !r && typeof a == "object" && (r = H.bind(null, a));
263
+ const o = _(a, r);
264
+ (!n || n < o || isNaN(+o)) && (n = o);
265
+ }), H(r, n || NaN);
266
+ }
267
+ function cr(e, t) {
268
+ let n, r = t == null ? void 0 : t.in;
269
+ return e.forEach((a) => {
270
+ !r && typeof a == "object" && (r = H.bind(null, a));
271
+ const o = _(a, r);
272
+ (!n || n > o || isNaN(+o)) && (n = o);
273
+ }), H(r, n || NaN);
274
+ }
275
+ function ur(e, t, n) {
276
+ const [r, a] = Me(
277
+ n == null ? void 0 : n.in,
278
+ e,
279
+ t
280
+ );
281
+ return +xe(r) == +xe(a);
282
+ }
283
+ function qt(e) {
284
+ return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
285
+ }
286
+ function lr(e) {
287
+ return !(!qt(e) && typeof e != "number" || isNaN(+_(e)));
288
+ }
289
+ function jt(e, t, n) {
290
+ const [r, a] = Me(
291
+ n == null ? void 0 : n.in,
292
+ e,
293
+ t
294
+ ), o = r.getFullYear() - a.getFullYear(), s = r.getMonth() - a.getMonth();
295
+ return o * 12 + s;
296
+ }
297
+ function dr(e, t) {
298
+ const n = _(e, t == null ? void 0 : t.in), r = n.getMonth();
299
+ return n.setFullYear(n.getFullYear(), r + 1, 0), n.setHours(23, 59, 59, 999), n;
300
+ }
301
+ function zt(e, t) {
302
+ const [n, r] = Me(e, t.start, t.end);
303
+ return { start: n, end: r };
304
+ }
305
+ function fr(e, t) {
306
+ const { start: n, end: r } = zt(t == null ? void 0 : t.in, e);
307
+ let a = +n > +r;
308
+ const o = a ? +n : +r, s = a ? r : n;
309
+ s.setHours(0, 0, 0, 0), s.setDate(1);
310
+ let i = 1;
311
+ const c = [];
312
+ for (; +s <= o; )
313
+ c.push(H(n, s)), s.setMonth(s.getMonth() + i);
314
+ return a ? c.reverse() : c;
315
+ }
316
+ function hr(e, t) {
317
+ const n = _(e, t == null ? void 0 : t.in);
318
+ return n.setDate(1), n.setHours(0, 0, 0, 0), n;
319
+ }
320
+ function mr(e, t) {
321
+ const n = _(e, t == null ? void 0 : t.in), r = n.getFullYear();
322
+ return n.setFullYear(r + 1, 0, 0), n.setHours(23, 59, 59, 999), n;
323
+ }
324
+ function $t(e, t) {
325
+ const n = _(e, t == null ? void 0 : t.in);
326
+ return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
327
+ }
328
+ function yr(e, t) {
329
+ const { start: n, end: r } = zt(t == null ? void 0 : t.in, e);
330
+ let a = +n > +r;
331
+ const o = a ? +n : +r, s = a ? r : n;
332
+ s.setHours(0, 0, 0, 0), s.setMonth(0, 1);
333
+ let i = 1;
334
+ const c = [];
335
+ for (; +s <= o; )
336
+ c.push(H(n, s)), s.setFullYear(s.getFullYear() + i);
337
+ return a ? c.reverse() : c;
338
+ }
339
+ function Gt(e, t) {
340
+ var i, c, u, l;
341
+ const n = Ce(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((c = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : c.weekStartsOn) ?? n.weekStartsOn ?? ((l = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : l.weekStartsOn) ?? 0, a = _(e, t == null ? void 0 : t.in), o = a.getDay(), s = (o < r ? -7 : 0) + 6 - (o - r);
342
+ return a.setDate(a.getDate() + s), a.setHours(23, 59, 59, 999), a;
343
+ }
344
+ function gr(e, t) {
345
+ return Gt(e, { ...t, weekStartsOn: 1 });
346
+ }
347
+ const br = {
348
+ lessThanXSeconds: {
349
+ one: "less than a second",
350
+ other: "less than {{count}} seconds"
351
+ },
352
+ xSeconds: {
353
+ one: "1 second",
354
+ other: "{{count}} seconds"
355
+ },
356
+ halfAMinute: "half a minute",
357
+ lessThanXMinutes: {
358
+ one: "less than a minute",
359
+ other: "less than {{count}} minutes"
360
+ },
361
+ xMinutes: {
362
+ one: "1 minute",
363
+ other: "{{count}} minutes"
364
+ },
365
+ aboutXHours: {
366
+ one: "about 1 hour",
367
+ other: "about {{count}} hours"
368
+ },
369
+ xHours: {
370
+ one: "1 hour",
371
+ other: "{{count}} hours"
372
+ },
373
+ xDays: {
374
+ one: "1 day",
375
+ other: "{{count}} days"
376
+ },
377
+ aboutXWeeks: {
378
+ one: "about 1 week",
379
+ other: "about {{count}} weeks"
380
+ },
381
+ xWeeks: {
382
+ one: "1 week",
383
+ other: "{{count}} weeks"
384
+ },
385
+ aboutXMonths: {
386
+ one: "about 1 month",
387
+ other: "about {{count}} months"
388
+ },
389
+ xMonths: {
390
+ one: "1 month",
391
+ other: "{{count}} months"
392
+ },
393
+ aboutXYears: {
394
+ one: "about 1 year",
395
+ other: "about {{count}} years"
396
+ },
397
+ xYears: {
398
+ one: "1 year",
399
+ other: "{{count}} years"
400
+ },
401
+ overXYears: {
402
+ one: "over 1 year",
403
+ other: "over {{count}} years"
404
+ },
405
+ almostXYears: {
406
+ one: "almost 1 year",
407
+ other: "almost {{count}} years"
408
+ }
409
+ }, wr = (e, t, n) => {
410
+ let r;
411
+ const a = br[e];
412
+ return typeof a == "string" ? r = a : t === 1 ? r = a.one : r = a.other.replace("{{count}}", t.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
413
+ };
414
+ function Ve(e) {
415
+ return (t = {}) => {
416
+ const n = t.width ? String(t.width) : e.defaultWidth;
417
+ return e.formats[n] || e.formats[e.defaultWidth];
418
+ };
419
+ }
420
+ const Mr = {
421
+ full: "EEEE, MMMM do, y",
422
+ long: "MMMM do, y",
423
+ medium: "MMM d, y",
424
+ short: "MM/dd/yyyy"
425
+ }, kr = {
426
+ full: "h:mm:ss a zzzz",
427
+ long: "h:mm:ss a z",
428
+ medium: "h:mm:ss a",
429
+ short: "h:mm a"
430
+ }, Dr = {
431
+ full: "{{date}} 'at' {{time}}",
432
+ long: "{{date}} 'at' {{time}}",
433
+ medium: "{{date}}, {{time}}",
434
+ short: "{{date}}, {{time}}"
435
+ }, vr = {
436
+ date: Ve({
437
+ formats: Mr,
438
+ defaultWidth: "full"
439
+ }),
440
+ time: Ve({
441
+ formats: kr,
442
+ defaultWidth: "full"
443
+ }),
444
+ dateTime: Ve({
445
+ formats: Dr,
446
+ defaultWidth: "full"
447
+ })
448
+ }, Or = {
449
+ lastWeek: "'last' eeee 'at' p",
450
+ yesterday: "'yesterday at' p",
451
+ today: "'today at' p",
452
+ tomorrow: "'tomorrow at' p",
453
+ nextWeek: "eeee 'at' p",
454
+ other: "P"
455
+ }, Wr = (e, t, n, r) => Or[e];
456
+ function ve(e) {
457
+ return (t, n) => {
458
+ const r = n != null && n.context ? String(n.context) : "standalone";
459
+ let a;
460
+ if (r === "formatting" && e.formattingValues) {
461
+ const s = e.defaultFormattingWidth || e.defaultWidth, i = n != null && n.width ? String(n.width) : s;
462
+ a = e.formattingValues[i] || e.formattingValues[s];
463
+ } else {
464
+ const s = e.defaultWidth, i = n != null && n.width ? String(n.width) : e.defaultWidth;
465
+ a = e.values[i] || e.values[s];
466
+ }
467
+ const o = e.argumentCallback ? e.argumentCallback(t) : t;
468
+ return a[o];
469
+ };
470
+ }
471
+ const Sr = {
472
+ narrow: ["B", "A"],
473
+ abbreviated: ["BC", "AD"],
474
+ wide: ["Before Christ", "Anno Domini"]
475
+ }, Nr = {
476
+ narrow: ["1", "2", "3", "4"],
477
+ abbreviated: ["Q1", "Q2", "Q3", "Q4"],
478
+ wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
479
+ }, xr = {
480
+ narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
481
+ abbreviated: [
482
+ "Jan",
483
+ "Feb",
484
+ "Mar",
485
+ "Apr",
486
+ "May",
487
+ "Jun",
488
+ "Jul",
489
+ "Aug",
490
+ "Sep",
491
+ "Oct",
492
+ "Nov",
493
+ "Dec"
494
+ ],
495
+ wide: [
496
+ "January",
497
+ "February",
498
+ "March",
499
+ "April",
500
+ "May",
501
+ "June",
502
+ "July",
503
+ "August",
504
+ "September",
505
+ "October",
506
+ "November",
507
+ "December"
508
+ ]
509
+ }, Cr = {
510
+ narrow: ["S", "M", "T", "W", "T", "F", "S"],
511
+ short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
512
+ abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
513
+ wide: [
514
+ "Sunday",
515
+ "Monday",
516
+ "Tuesday",
517
+ "Wednesday",
518
+ "Thursday",
519
+ "Friday",
520
+ "Saturday"
521
+ ]
522
+ }, pr = {
523
+ narrow: {
524
+ am: "a",
525
+ pm: "p",
526
+ midnight: "mi",
527
+ noon: "n",
528
+ morning: "morning",
529
+ afternoon: "afternoon",
530
+ evening: "evening",
531
+ night: "night"
532
+ },
533
+ abbreviated: {
534
+ am: "AM",
535
+ pm: "PM",
536
+ midnight: "midnight",
537
+ noon: "noon",
538
+ morning: "morning",
539
+ afternoon: "afternoon",
540
+ evening: "evening",
541
+ night: "night"
542
+ },
543
+ wide: {
544
+ am: "a.m.",
545
+ pm: "p.m.",
546
+ midnight: "midnight",
547
+ noon: "noon",
548
+ morning: "morning",
549
+ afternoon: "afternoon",
550
+ evening: "evening",
551
+ night: "night"
552
+ }
553
+ }, Yr = {
554
+ narrow: {
555
+ am: "a",
556
+ pm: "p",
557
+ midnight: "mi",
558
+ noon: "n",
559
+ morning: "in the morning",
560
+ afternoon: "in the afternoon",
561
+ evening: "in the evening",
562
+ night: "at night"
563
+ },
564
+ abbreviated: {
565
+ am: "AM",
566
+ pm: "PM",
567
+ midnight: "midnight",
568
+ noon: "noon",
569
+ morning: "in the morning",
570
+ afternoon: "in the afternoon",
571
+ evening: "in the evening",
572
+ night: "at night"
573
+ },
574
+ wide: {
575
+ am: "a.m.",
576
+ pm: "p.m.",
577
+ midnight: "midnight",
578
+ noon: "noon",
579
+ morning: "in the morning",
580
+ afternoon: "in the afternoon",
581
+ evening: "in the evening",
582
+ night: "at night"
583
+ }
584
+ }, Tr = (e, t) => {
585
+ const n = Number(e), r = n % 100;
586
+ if (r > 20 || r < 10)
587
+ switch (r % 10) {
588
+ case 1:
589
+ return n + "st";
590
+ case 2:
591
+ return n + "nd";
592
+ case 3:
593
+ return n + "rd";
594
+ }
595
+ return n + "th";
596
+ }, Pr = {
597
+ ordinalNumber: Tr,
598
+ era: ve({
599
+ values: Sr,
600
+ defaultWidth: "wide"
601
+ }),
602
+ quarter: ve({
603
+ values: Nr,
604
+ defaultWidth: "wide",
605
+ argumentCallback: (e) => e - 1
606
+ }),
607
+ month: ve({
608
+ values: xr,
609
+ defaultWidth: "wide"
610
+ }),
611
+ day: ve({
612
+ values: Cr,
613
+ defaultWidth: "wide"
614
+ }),
615
+ dayPeriod: ve({
616
+ values: pr,
617
+ defaultWidth: "wide",
618
+ formattingValues: Yr,
619
+ defaultFormattingWidth: "wide"
620
+ })
621
+ };
622
+ function Oe(e) {
623
+ return (t, n = {}) => {
624
+ const r = n.width, a = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], o = t.match(a);
625
+ if (!o)
626
+ return null;
627
+ const s = o[0], i = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(i) ? Er(i, (d) => d.test(s)) : (
628
+ // [TODO] -- I challenge you to fix the type
629
+ _r(i, (d) => d.test(s))
630
+ );
631
+ let u;
632
+ u = e.valueCallback ? e.valueCallback(c) : c, u = n.valueCallback ? (
633
+ // [TODO] -- I challenge you to fix the type
634
+ n.valueCallback(u)
635
+ ) : u;
636
+ const l = t.slice(s.length);
637
+ return { value: u, rest: l };
638
+ };
639
+ }
640
+ function _r(e, t) {
641
+ for (const n in e)
642
+ if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
643
+ return n;
644
+ }
645
+ function Er(e, t) {
646
+ for (let n = 0; n < e.length; n++)
647
+ if (t(e[n]))
648
+ return n;
649
+ }
650
+ function Fr(e) {
651
+ return (t, n = {}) => {
652
+ const r = t.match(e.matchPattern);
653
+ if (!r) return null;
654
+ const a = r[0], o = t.match(e.parsePattern);
655
+ if (!o) return null;
656
+ let s = e.valueCallback ? e.valueCallback(o[0]) : o[0];
657
+ s = n.valueCallback ? n.valueCallback(s) : s;
658
+ const i = t.slice(a.length);
659
+ return { value: s, rest: i };
660
+ };
661
+ }
662
+ const Br = /^(\d+)(th|st|nd|rd)?/i, Ir = /\d+/i, Hr = {
663
+ narrow: /^(b|a)/i,
664
+ abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
665
+ wide: /^(before christ|before common era|anno domini|common era)/i
666
+ }, Ar = {
667
+ any: [/^b/i, /^(a|c)/i]
668
+ }, qr = {
669
+ narrow: /^[1234]/i,
670
+ abbreviated: /^q[1234]/i,
671
+ wide: /^[1234](th|st|nd|rd)? quarter/i
672
+ }, jr = {
673
+ any: [/1/i, /2/i, /3/i, /4/i]
674
+ }, zr = {
675
+ narrow: /^[jfmasond]/i,
676
+ abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
677
+ wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
678
+ }, $r = {
679
+ narrow: [
680
+ /^j/i,
681
+ /^f/i,
682
+ /^m/i,
683
+ /^a/i,
684
+ /^m/i,
685
+ /^j/i,
686
+ /^j/i,
687
+ /^a/i,
688
+ /^s/i,
689
+ /^o/i,
690
+ /^n/i,
691
+ /^d/i
692
+ ],
693
+ any: [
694
+ /^ja/i,
695
+ /^f/i,
696
+ /^mar/i,
697
+ /^ap/i,
698
+ /^may/i,
699
+ /^jun/i,
700
+ /^jul/i,
701
+ /^au/i,
702
+ /^s/i,
703
+ /^o/i,
704
+ /^n/i,
705
+ /^d/i
706
+ ]
707
+ }, Gr = {
708
+ narrow: /^[smtwf]/i,
709
+ short: /^(su|mo|tu|we|th|fr|sa)/i,
710
+ abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
711
+ wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
712
+ }, Rr = {
713
+ narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
714
+ any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
715
+ }, Vr = {
716
+ narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
717
+ any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
718
+ }, Qr = {
719
+ any: {
720
+ am: /^a/i,
721
+ pm: /^p/i,
722
+ midnight: /^mi/i,
723
+ noon: /^no/i,
724
+ morning: /morning/i,
725
+ afternoon: /afternoon/i,
726
+ evening: /evening/i,
727
+ night: /night/i
728
+ }
729
+ }, Ur = {
730
+ ordinalNumber: Fr({
731
+ matchPattern: Br,
732
+ parsePattern: Ir,
733
+ valueCallback: (e) => parseInt(e, 10)
734
+ }),
735
+ era: Oe({
736
+ matchPatterns: Hr,
737
+ defaultMatchWidth: "wide",
738
+ parsePatterns: Ar,
739
+ defaultParseWidth: "any"
740
+ }),
741
+ quarter: Oe({
742
+ matchPatterns: qr,
743
+ defaultMatchWidth: "wide",
744
+ parsePatterns: jr,
745
+ defaultParseWidth: "any",
746
+ valueCallback: (e) => e + 1
747
+ }),
748
+ month: Oe({
749
+ matchPatterns: zr,
750
+ defaultMatchWidth: "wide",
751
+ parsePatterns: $r,
752
+ defaultParseWidth: "any"
753
+ }),
754
+ day: Oe({
755
+ matchPatterns: Gr,
756
+ defaultMatchWidth: "wide",
757
+ parsePatterns: Rr,
758
+ defaultParseWidth: "any"
759
+ }),
760
+ dayPeriod: Oe({
761
+ matchPatterns: Vr,
762
+ defaultMatchWidth: "any",
763
+ parsePatterns: Qr,
764
+ defaultParseWidth: "any"
765
+ })
766
+ }, be = {
767
+ code: "en-US",
768
+ formatDistance: wr,
769
+ formatLong: vr,
770
+ formatRelative: Wr,
771
+ localize: Pr,
772
+ match: Ur,
773
+ options: {
774
+ weekStartsOn: 0,
775
+ firstWeekContainsDate: 1
776
+ }
777
+ };
778
+ function Xr(e, t) {
779
+ const n = _(e, t == null ? void 0 : t.in);
780
+ return et(n, $t(n)) + 1;
781
+ }
782
+ function tt(e, t) {
783
+ const n = _(e, t == null ? void 0 : t.in), r = +Ne(n) - +ar(n);
784
+ return Math.round(r / Bt) + 1;
785
+ }
786
+ function Rt(e, t) {
787
+ var l, d, h, b;
788
+ const n = _(e, t == null ? void 0 : t.in), r = n.getFullYear(), a = Ce(), o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((d = (l = t == null ? void 0 : t.locale) == null ? void 0 : l.options) == null ? void 0 : d.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((b = (h = a.locale) == null ? void 0 : h.options) == null ? void 0 : b.firstWeekContainsDate) ?? 1, s = H((t == null ? void 0 : t.in) || e, 0);
789
+ s.setFullYear(r + 1, 0, o), s.setHours(0, 0, 0, 0);
790
+ const i = we(s, t), c = H((t == null ? void 0 : t.in) || e, 0);
791
+ c.setFullYear(r, 0, o), c.setHours(0, 0, 0, 0);
792
+ const u = we(c, t);
793
+ return +n >= +i ? r + 1 : +n >= +u ? r : r - 1;
794
+ }
795
+ function Kr(e, t) {
796
+ var i, c, u, l;
797
+ const n = Ce(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((c = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : c.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((l = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : l.firstWeekContainsDate) ?? 1, a = Rt(e, t), o = H((t == null ? void 0 : t.in) || e, 0);
798
+ return o.setFullYear(a, 0, r), o.setHours(0, 0, 0, 0), we(o, t);
799
+ }
800
+ function nt(e, t) {
801
+ const n = _(e, t == null ? void 0 : t.in), r = +we(n, t) - +Kr(n, t);
802
+ return Math.round(r / Bt) + 1;
803
+ }
804
+ function P(e, t) {
805
+ const n = e < 0 ? "-" : "", r = Math.abs(e).toString().padStart(t, "0");
806
+ return n + r;
807
+ }
808
+ const le = {
809
+ // Year
810
+ y(e, t) {
811
+ const n = e.getFullYear(), r = n > 0 ? n : 1 - n;
812
+ return P(t === "yy" ? r % 100 : r, t.length);
813
+ },
814
+ // Month
815
+ M(e, t) {
816
+ const n = e.getMonth();
817
+ return t === "M" ? String(n + 1) : P(n + 1, 2);
818
+ },
819
+ // Day of the month
820
+ d(e, t) {
821
+ return P(e.getDate(), t.length);
822
+ },
823
+ // AM or PM
824
+ a(e, t) {
825
+ const n = e.getHours() / 12 >= 1 ? "pm" : "am";
826
+ switch (t) {
827
+ case "a":
828
+ case "aa":
829
+ return n.toUpperCase();
830
+ case "aaa":
831
+ return n;
832
+ case "aaaaa":
833
+ return n[0];
834
+ case "aaaa":
835
+ default:
836
+ return n === "am" ? "a.m." : "p.m.";
837
+ }
838
+ },
839
+ // Hour [1-12]
840
+ h(e, t) {
841
+ return P(e.getHours() % 12 || 12, t.length);
842
+ },
843
+ // Hour [0-23]
844
+ H(e, t) {
845
+ return P(e.getHours(), t.length);
846
+ },
847
+ // Minute
848
+ m(e, t) {
849
+ return P(e.getMinutes(), t.length);
850
+ },
851
+ // Second
852
+ s(e, t) {
853
+ return P(e.getSeconds(), t.length);
854
+ },
855
+ // Fraction of second
856
+ S(e, t) {
857
+ const n = t.length, r = e.getMilliseconds(), a = Math.trunc(
858
+ r * Math.pow(10, n - 3)
859
+ );
860
+ return P(a, t.length);
861
+ }
862
+ }, ye = {
863
+ midnight: "midnight",
864
+ noon: "noon",
865
+ morning: "morning",
866
+ afternoon: "afternoon",
867
+ evening: "evening",
868
+ night: "night"
869
+ }, Wt = {
870
+ // Era
871
+ G: function(e, t, n) {
872
+ const r = e.getFullYear() > 0 ? 1 : 0;
873
+ switch (t) {
874
+ // AD, BC
875
+ case "G":
876
+ case "GG":
877
+ case "GGG":
878
+ return n.era(r, { width: "abbreviated" });
879
+ // A, B
880
+ case "GGGGG":
881
+ return n.era(r, { width: "narrow" });
882
+ // Anno Domini, Before Christ
883
+ case "GGGG":
884
+ default:
885
+ return n.era(r, { width: "wide" });
886
+ }
887
+ },
888
+ // Year
889
+ y: function(e, t, n) {
890
+ if (t === "yo") {
891
+ const r = e.getFullYear(), a = r > 0 ? r : 1 - r;
892
+ return n.ordinalNumber(a, { unit: "year" });
893
+ }
894
+ return le.y(e, t);
895
+ },
896
+ // Local week-numbering year
897
+ Y: function(e, t, n, r) {
898
+ const a = Rt(e, r), o = a > 0 ? a : 1 - a;
899
+ if (t === "YY") {
900
+ const s = o % 100;
901
+ return P(s, 2);
902
+ }
903
+ return t === "Yo" ? n.ordinalNumber(o, { unit: "year" }) : P(o, t.length);
904
+ },
905
+ // ISO week-numbering year
906
+ R: function(e, t) {
907
+ const n = At(e);
908
+ return P(n, t.length);
909
+ },
910
+ // Extended year. This is a single number designating the year of this calendar system.
911
+ // The main difference between `y` and `u` localizers are B.C. years:
912
+ // | Year | `y` | `u` |
913
+ // |------|-----|-----|
914
+ // | AC 1 | 1 | 1 |
915
+ // | BC 1 | 1 | 0 |
916
+ // | BC 2 | 2 | -1 |
917
+ // Also `yy` always returns the last two digits of a year,
918
+ // while `uu` pads single digit years to 2 characters and returns other years unchanged.
919
+ u: function(e, t) {
920
+ const n = e.getFullYear();
921
+ return P(n, t.length);
922
+ },
923
+ // Quarter
924
+ Q: function(e, t, n) {
925
+ const r = Math.ceil((e.getMonth() + 1) / 3);
926
+ switch (t) {
927
+ // 1, 2, 3, 4
928
+ case "Q":
929
+ return String(r);
930
+ // 01, 02, 03, 04
931
+ case "QQ":
932
+ return P(r, 2);
933
+ // 1st, 2nd, 3rd, 4th
934
+ case "Qo":
935
+ return n.ordinalNumber(r, { unit: "quarter" });
936
+ // Q1, Q2, Q3, Q4
937
+ case "QQQ":
938
+ return n.quarter(r, {
939
+ width: "abbreviated",
940
+ context: "formatting"
941
+ });
942
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
943
+ case "QQQQQ":
944
+ return n.quarter(r, {
945
+ width: "narrow",
946
+ context: "formatting"
947
+ });
948
+ // 1st quarter, 2nd quarter, ...
949
+ case "QQQQ":
950
+ default:
951
+ return n.quarter(r, {
952
+ width: "wide",
953
+ context: "formatting"
954
+ });
955
+ }
956
+ },
957
+ // Stand-alone quarter
958
+ q: function(e, t, n) {
959
+ const r = Math.ceil((e.getMonth() + 1) / 3);
960
+ switch (t) {
961
+ // 1, 2, 3, 4
962
+ case "q":
963
+ return String(r);
964
+ // 01, 02, 03, 04
965
+ case "qq":
966
+ return P(r, 2);
967
+ // 1st, 2nd, 3rd, 4th
968
+ case "qo":
969
+ return n.ordinalNumber(r, { unit: "quarter" });
970
+ // Q1, Q2, Q3, Q4
971
+ case "qqq":
972
+ return n.quarter(r, {
973
+ width: "abbreviated",
974
+ context: "standalone"
975
+ });
976
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
977
+ case "qqqqq":
978
+ return n.quarter(r, {
979
+ width: "narrow",
980
+ context: "standalone"
981
+ });
982
+ // 1st quarter, 2nd quarter, ...
983
+ case "qqqq":
984
+ default:
985
+ return n.quarter(r, {
986
+ width: "wide",
987
+ context: "standalone"
988
+ });
989
+ }
990
+ },
991
+ // Month
992
+ M: function(e, t, n) {
993
+ const r = e.getMonth();
994
+ switch (t) {
995
+ case "M":
996
+ case "MM":
997
+ return le.M(e, t);
998
+ // 1st, 2nd, ..., 12th
999
+ case "Mo":
1000
+ return n.ordinalNumber(r + 1, { unit: "month" });
1001
+ // Jan, Feb, ..., Dec
1002
+ case "MMM":
1003
+ return n.month(r, {
1004
+ width: "abbreviated",
1005
+ context: "formatting"
1006
+ });
1007
+ // J, F, ..., D
1008
+ case "MMMMM":
1009
+ return n.month(r, {
1010
+ width: "narrow",
1011
+ context: "formatting"
1012
+ });
1013
+ // January, February, ..., December
1014
+ case "MMMM":
1015
+ default:
1016
+ return n.month(r, { width: "wide", context: "formatting" });
1017
+ }
1018
+ },
1019
+ // Stand-alone month
1020
+ L: function(e, t, n) {
1021
+ const r = e.getMonth();
1022
+ switch (t) {
1023
+ // 1, 2, ..., 12
1024
+ case "L":
1025
+ return String(r + 1);
1026
+ // 01, 02, ..., 12
1027
+ case "LL":
1028
+ return P(r + 1, 2);
1029
+ // 1st, 2nd, ..., 12th
1030
+ case "Lo":
1031
+ return n.ordinalNumber(r + 1, { unit: "month" });
1032
+ // Jan, Feb, ..., Dec
1033
+ case "LLL":
1034
+ return n.month(r, {
1035
+ width: "abbreviated",
1036
+ context: "standalone"
1037
+ });
1038
+ // J, F, ..., D
1039
+ case "LLLLL":
1040
+ return n.month(r, {
1041
+ width: "narrow",
1042
+ context: "standalone"
1043
+ });
1044
+ // January, February, ..., December
1045
+ case "LLLL":
1046
+ default:
1047
+ return n.month(r, { width: "wide", context: "standalone" });
1048
+ }
1049
+ },
1050
+ // Local week of year
1051
+ w: function(e, t, n, r) {
1052
+ const a = nt(e, r);
1053
+ return t === "wo" ? n.ordinalNumber(a, { unit: "week" }) : P(a, t.length);
1054
+ },
1055
+ // ISO week of year
1056
+ I: function(e, t, n) {
1057
+ const r = tt(e);
1058
+ return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : P(r, t.length);
1059
+ },
1060
+ // Day of the month
1061
+ d: function(e, t, n) {
1062
+ return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : le.d(e, t);
1063
+ },
1064
+ // Day of year
1065
+ D: function(e, t, n) {
1066
+ const r = Xr(e);
1067
+ return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : P(r, t.length);
1068
+ },
1069
+ // Day of week
1070
+ E: function(e, t, n) {
1071
+ const r = e.getDay();
1072
+ switch (t) {
1073
+ // Tue
1074
+ case "E":
1075
+ case "EE":
1076
+ case "EEE":
1077
+ return n.day(r, {
1078
+ width: "abbreviated",
1079
+ context: "formatting"
1080
+ });
1081
+ // T
1082
+ case "EEEEE":
1083
+ return n.day(r, {
1084
+ width: "narrow",
1085
+ context: "formatting"
1086
+ });
1087
+ // Tu
1088
+ case "EEEEEE":
1089
+ return n.day(r, {
1090
+ width: "short",
1091
+ context: "formatting"
1092
+ });
1093
+ // Tuesday
1094
+ case "EEEE":
1095
+ default:
1096
+ return n.day(r, {
1097
+ width: "wide",
1098
+ context: "formatting"
1099
+ });
1100
+ }
1101
+ },
1102
+ // Local day of week
1103
+ e: function(e, t, n, r) {
1104
+ const a = e.getDay(), o = (a - r.weekStartsOn + 8) % 7 || 7;
1105
+ switch (t) {
1106
+ // Numerical value (Nth day of week with current locale or weekStartsOn)
1107
+ case "e":
1108
+ return String(o);
1109
+ // Padded numerical value
1110
+ case "ee":
1111
+ return P(o, 2);
1112
+ // 1st, 2nd, ..., 7th
1113
+ case "eo":
1114
+ return n.ordinalNumber(o, { unit: "day" });
1115
+ case "eee":
1116
+ return n.day(a, {
1117
+ width: "abbreviated",
1118
+ context: "formatting"
1119
+ });
1120
+ // T
1121
+ case "eeeee":
1122
+ return n.day(a, {
1123
+ width: "narrow",
1124
+ context: "formatting"
1125
+ });
1126
+ // Tu
1127
+ case "eeeeee":
1128
+ return n.day(a, {
1129
+ width: "short",
1130
+ context: "formatting"
1131
+ });
1132
+ // Tuesday
1133
+ case "eeee":
1134
+ default:
1135
+ return n.day(a, {
1136
+ width: "wide",
1137
+ context: "formatting"
1138
+ });
1139
+ }
1140
+ },
1141
+ // Stand-alone local day of week
1142
+ c: function(e, t, n, r) {
1143
+ const a = e.getDay(), o = (a - r.weekStartsOn + 8) % 7 || 7;
1144
+ switch (t) {
1145
+ // Numerical value (same as in `e`)
1146
+ case "c":
1147
+ return String(o);
1148
+ // Padded numerical value
1149
+ case "cc":
1150
+ return P(o, t.length);
1151
+ // 1st, 2nd, ..., 7th
1152
+ case "co":
1153
+ return n.ordinalNumber(o, { unit: "day" });
1154
+ case "ccc":
1155
+ return n.day(a, {
1156
+ width: "abbreviated",
1157
+ context: "standalone"
1158
+ });
1159
+ // T
1160
+ case "ccccc":
1161
+ return n.day(a, {
1162
+ width: "narrow",
1163
+ context: "standalone"
1164
+ });
1165
+ // Tu
1166
+ case "cccccc":
1167
+ return n.day(a, {
1168
+ width: "short",
1169
+ context: "standalone"
1170
+ });
1171
+ // Tuesday
1172
+ case "cccc":
1173
+ default:
1174
+ return n.day(a, {
1175
+ width: "wide",
1176
+ context: "standalone"
1177
+ });
1178
+ }
1179
+ },
1180
+ // ISO day of week
1181
+ i: function(e, t, n) {
1182
+ const r = e.getDay(), a = r === 0 ? 7 : r;
1183
+ switch (t) {
1184
+ // 2
1185
+ case "i":
1186
+ return String(a);
1187
+ // 02
1188
+ case "ii":
1189
+ return P(a, t.length);
1190
+ // 2nd
1191
+ case "io":
1192
+ return n.ordinalNumber(a, { unit: "day" });
1193
+ // Tue
1194
+ case "iii":
1195
+ return n.day(r, {
1196
+ width: "abbreviated",
1197
+ context: "formatting"
1198
+ });
1199
+ // T
1200
+ case "iiiii":
1201
+ return n.day(r, {
1202
+ width: "narrow",
1203
+ context: "formatting"
1204
+ });
1205
+ // Tu
1206
+ case "iiiiii":
1207
+ return n.day(r, {
1208
+ width: "short",
1209
+ context: "formatting"
1210
+ });
1211
+ // Tuesday
1212
+ case "iiii":
1213
+ default:
1214
+ return n.day(r, {
1215
+ width: "wide",
1216
+ context: "formatting"
1217
+ });
1218
+ }
1219
+ },
1220
+ // AM or PM
1221
+ a: function(e, t, n) {
1222
+ const a = e.getHours() / 12 >= 1 ? "pm" : "am";
1223
+ switch (t) {
1224
+ case "a":
1225
+ case "aa":
1226
+ return n.dayPeriod(a, {
1227
+ width: "abbreviated",
1228
+ context: "formatting"
1229
+ });
1230
+ case "aaa":
1231
+ return n.dayPeriod(a, {
1232
+ width: "abbreviated",
1233
+ context: "formatting"
1234
+ }).toLowerCase();
1235
+ case "aaaaa":
1236
+ return n.dayPeriod(a, {
1237
+ width: "narrow",
1238
+ context: "formatting"
1239
+ });
1240
+ case "aaaa":
1241
+ default:
1242
+ return n.dayPeriod(a, {
1243
+ width: "wide",
1244
+ context: "formatting"
1245
+ });
1246
+ }
1247
+ },
1248
+ // AM, PM, midnight, noon
1249
+ b: function(e, t, n) {
1250
+ const r = e.getHours();
1251
+ let a;
1252
+ switch (r === 12 ? a = ye.noon : r === 0 ? a = ye.midnight : a = r / 12 >= 1 ? "pm" : "am", t) {
1253
+ case "b":
1254
+ case "bb":
1255
+ return n.dayPeriod(a, {
1256
+ width: "abbreviated",
1257
+ context: "formatting"
1258
+ });
1259
+ case "bbb":
1260
+ return n.dayPeriod(a, {
1261
+ width: "abbreviated",
1262
+ context: "formatting"
1263
+ }).toLowerCase();
1264
+ case "bbbbb":
1265
+ return n.dayPeriod(a, {
1266
+ width: "narrow",
1267
+ context: "formatting"
1268
+ });
1269
+ case "bbbb":
1270
+ default:
1271
+ return n.dayPeriod(a, {
1272
+ width: "wide",
1273
+ context: "formatting"
1274
+ });
1275
+ }
1276
+ },
1277
+ // in the morning, in the afternoon, in the evening, at night
1278
+ B: function(e, t, n) {
1279
+ const r = e.getHours();
1280
+ let a;
1281
+ switch (r >= 17 ? a = ye.evening : r >= 12 ? a = ye.afternoon : r >= 4 ? a = ye.morning : a = ye.night, t) {
1282
+ case "B":
1283
+ case "BB":
1284
+ case "BBB":
1285
+ return n.dayPeriod(a, {
1286
+ width: "abbreviated",
1287
+ context: "formatting"
1288
+ });
1289
+ case "BBBBB":
1290
+ return n.dayPeriod(a, {
1291
+ width: "narrow",
1292
+ context: "formatting"
1293
+ });
1294
+ case "BBBB":
1295
+ default:
1296
+ return n.dayPeriod(a, {
1297
+ width: "wide",
1298
+ context: "formatting"
1299
+ });
1300
+ }
1301
+ },
1302
+ // Hour [1-12]
1303
+ h: function(e, t, n) {
1304
+ if (t === "ho") {
1305
+ let r = e.getHours() % 12;
1306
+ return r === 0 && (r = 12), n.ordinalNumber(r, { unit: "hour" });
1307
+ }
1308
+ return le.h(e, t);
1309
+ },
1310
+ // Hour [0-23]
1311
+ H: function(e, t, n) {
1312
+ return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : le.H(e, t);
1313
+ },
1314
+ // Hour [0-11]
1315
+ K: function(e, t, n) {
1316
+ const r = e.getHours() % 12;
1317
+ return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : P(r, t.length);
1318
+ },
1319
+ // Hour [1-24]
1320
+ k: function(e, t, n) {
1321
+ let r = e.getHours();
1322
+ return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : P(r, t.length);
1323
+ },
1324
+ // Minute
1325
+ m: function(e, t, n) {
1326
+ return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : le.m(e, t);
1327
+ },
1328
+ // Second
1329
+ s: function(e, t, n) {
1330
+ return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : le.s(e, t);
1331
+ },
1332
+ // Fraction of second
1333
+ S: function(e, t) {
1334
+ return le.S(e, t);
1335
+ },
1336
+ // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
1337
+ X: function(e, t, n) {
1338
+ const r = e.getTimezoneOffset();
1339
+ if (r === 0)
1340
+ return "Z";
1341
+ switch (t) {
1342
+ // Hours and optional minutes
1343
+ case "X":
1344
+ return Nt(r);
1345
+ // Hours, minutes and optional seconds without `:` delimiter
1346
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1347
+ // so this token always has the same output as `XX`
1348
+ case "XXXX":
1349
+ case "XX":
1350
+ return de(r);
1351
+ // Hours, minutes and optional seconds with `:` delimiter
1352
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1353
+ // so this token always has the same output as `XXX`
1354
+ case "XXXXX":
1355
+ case "XXX":
1356
+ // Hours and minutes with `:` delimiter
1357
+ default:
1358
+ return de(r, ":");
1359
+ }
1360
+ },
1361
+ // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
1362
+ x: function(e, t, n) {
1363
+ const r = e.getTimezoneOffset();
1364
+ switch (t) {
1365
+ // Hours and optional minutes
1366
+ case "x":
1367
+ return Nt(r);
1368
+ // Hours, minutes and optional seconds without `:` delimiter
1369
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1370
+ // so this token always has the same output as `xx`
1371
+ case "xxxx":
1372
+ case "xx":
1373
+ return de(r);
1374
+ // Hours, minutes and optional seconds with `:` delimiter
1375
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1376
+ // so this token always has the same output as `xxx`
1377
+ case "xxxxx":
1378
+ case "xxx":
1379
+ // Hours and minutes with `:` delimiter
1380
+ default:
1381
+ return de(r, ":");
1382
+ }
1383
+ },
1384
+ // Timezone (GMT)
1385
+ O: function(e, t, n) {
1386
+ const r = e.getTimezoneOffset();
1387
+ switch (t) {
1388
+ // Short
1389
+ case "O":
1390
+ case "OO":
1391
+ case "OOO":
1392
+ return "GMT" + St(r, ":");
1393
+ // Long
1394
+ case "OOOO":
1395
+ default:
1396
+ return "GMT" + de(r, ":");
1397
+ }
1398
+ },
1399
+ // Timezone (specific non-location)
1400
+ z: function(e, t, n) {
1401
+ const r = e.getTimezoneOffset();
1402
+ switch (t) {
1403
+ // Short
1404
+ case "z":
1405
+ case "zz":
1406
+ case "zzz":
1407
+ return "GMT" + St(r, ":");
1408
+ // Long
1409
+ case "zzzz":
1410
+ default:
1411
+ return "GMT" + de(r, ":");
1412
+ }
1413
+ },
1414
+ // Seconds timestamp
1415
+ t: function(e, t, n) {
1416
+ const r = Math.trunc(+e / 1e3);
1417
+ return P(r, t.length);
1418
+ },
1419
+ // Milliseconds timestamp
1420
+ T: function(e, t, n) {
1421
+ return P(+e, t.length);
1422
+ }
1423
+ };
1424
+ function St(e, t = "") {
1425
+ const n = e > 0 ? "-" : "+", r = Math.abs(e), a = Math.trunc(r / 60), o = r % 60;
1426
+ return o === 0 ? n + String(a) : n + String(a) + t + P(o, 2);
1427
+ }
1428
+ function Nt(e, t) {
1429
+ return e % 60 === 0 ? (e > 0 ? "-" : "+") + P(Math.abs(e) / 60, 2) : de(e, t);
1430
+ }
1431
+ function de(e, t = "") {
1432
+ const n = e > 0 ? "-" : "+", r = Math.abs(e), a = P(Math.trunc(r / 60), 2), o = P(r % 60, 2);
1433
+ return n + a + t + o;
1434
+ }
1435
+ const xt = (e, t) => {
1436
+ switch (e) {
1437
+ case "P":
1438
+ return t.date({ width: "short" });
1439
+ case "PP":
1440
+ return t.date({ width: "medium" });
1441
+ case "PPP":
1442
+ return t.date({ width: "long" });
1443
+ case "PPPP":
1444
+ default:
1445
+ return t.date({ width: "full" });
1446
+ }
1447
+ }, Vt = (e, t) => {
1448
+ switch (e) {
1449
+ case "p":
1450
+ return t.time({ width: "short" });
1451
+ case "pp":
1452
+ return t.time({ width: "medium" });
1453
+ case "ppp":
1454
+ return t.time({ width: "long" });
1455
+ case "pppp":
1456
+ default:
1457
+ return t.time({ width: "full" });
1458
+ }
1459
+ }, Jr = (e, t) => {
1460
+ const n = e.match(/(P+)(p+)?/) || [], r = n[1], a = n[2];
1461
+ if (!a)
1462
+ return xt(e, t);
1463
+ let o;
1464
+ switch (r) {
1465
+ case "P":
1466
+ o = t.dateTime({ width: "short" });
1467
+ break;
1468
+ case "PP":
1469
+ o = t.dateTime({ width: "medium" });
1470
+ break;
1471
+ case "PPP":
1472
+ o = t.dateTime({ width: "long" });
1473
+ break;
1474
+ case "PPPP":
1475
+ default:
1476
+ o = t.dateTime({ width: "full" });
1477
+ break;
1478
+ }
1479
+ return o.replace("{{date}}", xt(r, t)).replace("{{time}}", Vt(a, t));
1480
+ }, Zr = {
1481
+ p: Vt,
1482
+ P: Jr
1483
+ }, Lr = /^D+$/, ea = /^Y+$/, ta = ["D", "DD", "YY", "YYYY"];
1484
+ function na(e) {
1485
+ return Lr.test(e);
1486
+ }
1487
+ function ra(e) {
1488
+ return ea.test(e);
1489
+ }
1490
+ function aa(e, t, n) {
1491
+ const r = oa(e, t, n);
1492
+ if (console.warn(r), ta.includes(e)) throw new RangeError(r);
1493
+ }
1494
+ function oa(e, t, n) {
1495
+ const r = e[0] === "Y" ? "years" : "days of the month";
1496
+ return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
1497
+ }
1498
+ const sa = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ia = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ca = /^'([^]*?)'?$/, ua = /''/g, la = /[a-zA-Z]/;
1499
+ function Se(e, t, n) {
1500
+ var l, d, h, b, m, D, M, v;
1501
+ const r = Ce(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? be, o = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((d = (l = n == null ? void 0 : n.locale) == null ? void 0 : l.options) == null ? void 0 : d.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((b = (h = r.locale) == null ? void 0 : h.options) == null ? void 0 : b.firstWeekContainsDate) ?? 1, s = (n == null ? void 0 : n.weekStartsOn) ?? ((D = (m = n == null ? void 0 : n.locale) == null ? void 0 : m.options) == null ? void 0 : D.weekStartsOn) ?? r.weekStartsOn ?? ((v = (M = r.locale) == null ? void 0 : M.options) == null ? void 0 : v.weekStartsOn) ?? 0, i = _(e, n == null ? void 0 : n.in);
1502
+ if (!lr(i))
1503
+ throw new RangeError("Invalid time value");
1504
+ let c = t.match(ia).map((g) => {
1505
+ const w = g[0];
1506
+ if (w === "p" || w === "P") {
1507
+ const N = Zr[w];
1508
+ return N(g, a.formatLong);
1509
+ }
1510
+ return g;
1511
+ }).join("").match(sa).map((g) => {
1512
+ if (g === "''")
1513
+ return { isToken: !1, value: "'" };
1514
+ const w = g[0];
1515
+ if (w === "'")
1516
+ return { isToken: !1, value: da(g) };
1517
+ if (Wt[w])
1518
+ return { isToken: !0, value: g };
1519
+ if (w.match(la))
1520
+ throw new RangeError(
1521
+ "Format string contains an unescaped latin alphabet character `" + w + "`"
1522
+ );
1523
+ return { isToken: !1, value: g };
1524
+ });
1525
+ a.localize.preprocessor && (c = a.localize.preprocessor(i, c));
1526
+ const u = {
1527
+ firstWeekContainsDate: o,
1528
+ weekStartsOn: s,
1529
+ locale: a
1530
+ };
1531
+ return c.map((g) => {
1532
+ if (!g.isToken) return g.value;
1533
+ const w = g.value;
1534
+ (!(n != null && n.useAdditionalWeekYearTokens) && ra(w) || !(n != null && n.useAdditionalDayOfYearTokens) && na(w)) && aa(w, t, String(e));
1535
+ const N = Wt[w[0]];
1536
+ return N(i, w, a.localize, u);
1537
+ }).join("");
1538
+ }
1539
+ function da(e) {
1540
+ const t = e.match(ca);
1541
+ return t ? t[1].replace(ua, "'") : e;
1542
+ }
1543
+ function fa(e, t) {
1544
+ const n = _(e, t == null ? void 0 : t.in), r = n.getFullYear(), a = n.getMonth(), o = H(n, 0);
1545
+ return o.setFullYear(r, a + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
1546
+ }
1547
+ function ha(e, t) {
1548
+ return _(e, t == null ? void 0 : t.in).getMonth();
1549
+ }
1550
+ function ma(e, t) {
1551
+ return _(e, t == null ? void 0 : t.in).getFullYear();
1552
+ }
1553
+ function ya(e, t) {
1554
+ return +_(e) > +_(t);
1555
+ }
1556
+ function ga(e, t) {
1557
+ return +_(e) < +_(t);
1558
+ }
1559
+ function ba(e, t, n) {
1560
+ const [r, a] = Me(
1561
+ n == null ? void 0 : n.in,
1562
+ e,
1563
+ t
1564
+ );
1565
+ return r.getFullYear() === a.getFullYear() && r.getMonth() === a.getMonth();
1566
+ }
1567
+ function wa(e, t, n) {
1568
+ const [r, a] = Me(
1569
+ n == null ? void 0 : n.in,
1570
+ e,
1571
+ t
1572
+ );
1573
+ return r.getFullYear() === a.getFullYear();
1574
+ }
1575
+ function Ma(e, t, n) {
1576
+ const r = _(e, n == null ? void 0 : n.in), a = r.getFullYear(), o = r.getDate(), s = H(e, 0);
1577
+ s.setFullYear(a, t, 15), s.setHours(0, 0, 0, 0);
1578
+ const i = fa(s);
1579
+ return r.setMonth(t, Math.min(o, i)), r;
1580
+ }
1581
+ function ka(e, t, n) {
1582
+ const r = _(e, n == null ? void 0 : n.in);
1583
+ return isNaN(+r) ? H(e, NaN) : (r.setFullYear(t), r);
1584
+ }
1585
+ const Ct = 5, Da = 4;
1586
+ function va(e, t) {
1587
+ const n = t.startOfMonth(e), r = n.getDay() > 0 ? n.getDay() : 7, a = t.addDays(e, -r + 1), o = t.addDays(a, Ct * 7 - 1);
1588
+ return t.getMonth(e) === t.getMonth(o) ? Ct : Da;
1589
+ }
1590
+ function Qt(e, t) {
1591
+ const n = t.startOfMonth(e), r = n.getDay();
1592
+ return r === 1 ? n : r === 0 ? t.addDays(n, -6) : t.addDays(n, -1 * (r - 1));
1593
+ }
1594
+ function Oa(e, t) {
1595
+ const n = Qt(e, t), r = va(e, t);
1596
+ return t.addDays(n, r * 7 - 1);
1597
+ }
1598
+ const Ut = {
1599
+ ...be,
1600
+ labels: {
1601
+ labelDayButton: (e, t, n, r) => {
1602
+ let a;
1603
+ r && typeof r.format == "function" ? a = r.format.bind(r) : a = (s, i) => Se(s, i, { locale: be, ...n });
1604
+ let o = a(e, "PPPP");
1605
+ return t.today && (o = `Today, ${o}`), t.selected && (o = `${o}, selected`), o;
1606
+ },
1607
+ labelMonthDropdown: "Choose the Month",
1608
+ labelNext: "Go to the Next Month",
1609
+ labelPrevious: "Go to the Previous Month",
1610
+ labelWeekNumber: (e) => `Week ${e}`,
1611
+ labelYearDropdown: "Choose the Year",
1612
+ labelGrid: (e, t, n) => {
1613
+ let r;
1614
+ return n && typeof n.format == "function" ? r = n.format.bind(n) : r = (a, o) => Se(a, o, { locale: be, ...t }), r(e, "LLLL yyyy");
1615
+ },
1616
+ labelGridcell: (e, t, n, r) => {
1617
+ let a;
1618
+ r && typeof r.format == "function" ? a = r.format.bind(r) : a = (s, i) => Se(s, i, { locale: be, ...n });
1619
+ let o = a(e, "PPPP");
1620
+ return t != null && t.today && (o = `Today, ${o}`), o;
1621
+ },
1622
+ labelNav: "Navigation bar",
1623
+ labelWeekNumberHeader: "Week Number",
1624
+ labelWeekday: (e, t, n) => {
1625
+ let r;
1626
+ return n && typeof n.format == "function" ? r = n.format.bind(n) : r = (a, o) => Se(a, o, { locale: be, ...t }), r(e, "cccc");
1627
+ }
1628
+ }
1629
+ };
1630
+ class G {
1631
+ /**
1632
+ * Creates an instance of `DateLib`.
1633
+ *
1634
+ * @param options Configuration options for the date library.
1635
+ * @param overrides Custom overrides for the date library functions.
1636
+ */
1637
+ constructor(t, n) {
1638
+ this.Date = Date, this.today = () => {
1639
+ var r;
1640
+ return (r = this.overrides) != null && r.today ? this.overrides.today() : this.options.timeZone ? q.tz(this.options.timeZone) : new this.Date();
1641
+ }, this.newDate = (r, a, o) => {
1642
+ var s;
1643
+ return (s = this.overrides) != null && s.newDate ? this.overrides.newDate(r, a, o) : this.options.timeZone ? new q(r, a, o, this.options.timeZone) : new Date(r, a, o);
1644
+ }, this.addDays = (r, a) => {
1645
+ var o;
1646
+ return (o = this.overrides) != null && o.addDays ? this.overrides.addDays(r, a) : It(r, a);
1647
+ }, this.addMonths = (r, a) => {
1648
+ var o;
1649
+ return (o = this.overrides) != null && o.addMonths ? this.overrides.addMonths(r, a) : Ht(r, a);
1650
+ }, this.addWeeks = (r, a) => {
1651
+ var o;
1652
+ return (o = this.overrides) != null && o.addWeeks ? this.overrides.addWeeks(r, a) : or(r, a);
1653
+ }, this.addYears = (r, a) => {
1654
+ var o;
1655
+ return (o = this.overrides) != null && o.addYears ? this.overrides.addYears(r, a) : sr(r, a);
1656
+ }, this.differenceInCalendarDays = (r, a) => {
1657
+ var o;
1658
+ return (o = this.overrides) != null && o.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(r, a) : et(r, a);
1659
+ }, this.differenceInCalendarMonths = (r, a) => {
1660
+ var o;
1661
+ return (o = this.overrides) != null && o.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(r, a) : jt(r, a);
1662
+ }, this.eachMonthOfInterval = (r) => {
1663
+ var a;
1664
+ return (a = this.overrides) != null && a.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(r) : fr(r);
1665
+ }, this.eachYearOfInterval = (r) => {
1666
+ var i;
1667
+ const a = (i = this.overrides) != null && i.eachYearOfInterval ? this.overrides.eachYearOfInterval(r) : yr(r), o = new Set(a.map((c) => this.getYear(c)));
1668
+ if (o.size === a.length)
1669
+ return a;
1670
+ const s = [];
1671
+ return o.forEach((c) => {
1672
+ s.push(new Date(c, 0, 1));
1673
+ }), s;
1674
+ }, this.endOfBroadcastWeek = (r) => {
1675
+ var a;
1676
+ return (a = this.overrides) != null && a.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(r) : Oa(r, this);
1677
+ }, this.endOfISOWeek = (r) => {
1678
+ var a;
1679
+ return (a = this.overrides) != null && a.endOfISOWeek ? this.overrides.endOfISOWeek(r) : gr(r);
1680
+ }, this.endOfMonth = (r) => {
1681
+ var a;
1682
+ return (a = this.overrides) != null && a.endOfMonth ? this.overrides.endOfMonth(r) : dr(r);
1683
+ }, this.endOfWeek = (r, a) => {
1684
+ var o;
1685
+ return (o = this.overrides) != null && o.endOfWeek ? this.overrides.endOfWeek(r, a) : Gt(r, this.options);
1686
+ }, this.endOfYear = (r) => {
1687
+ var a;
1688
+ return (a = this.overrides) != null && a.endOfYear ? this.overrides.endOfYear(r) : mr(r);
1689
+ }, this.format = (r, a, o) => {
1690
+ var i;
1691
+ const s = (i = this.overrides) != null && i.format ? this.overrides.format(r, a, this.options) : Se(r, a, this.options);
1692
+ return this.options.numerals && this.options.numerals !== "latn" ? this.replaceDigits(s) : s;
1693
+ }, this.getISOWeek = (r) => {
1694
+ var a;
1695
+ return (a = this.overrides) != null && a.getISOWeek ? this.overrides.getISOWeek(r) : tt(r);
1696
+ }, this.getMonth = (r, a) => {
1697
+ var o;
1698
+ return (o = this.overrides) != null && o.getMonth ? this.overrides.getMonth(r, this.options) : ha(r, this.options);
1699
+ }, this.getYear = (r, a) => {
1700
+ var o;
1701
+ return (o = this.overrides) != null && o.getYear ? this.overrides.getYear(r, this.options) : ma(r, this.options);
1702
+ }, this.getWeek = (r, a) => {
1703
+ var o;
1704
+ return (o = this.overrides) != null && o.getWeek ? this.overrides.getWeek(r, this.options) : nt(r, this.options);
1705
+ }, this.isAfter = (r, a) => {
1706
+ var o;
1707
+ return (o = this.overrides) != null && o.isAfter ? this.overrides.isAfter(r, a) : ya(r, a);
1708
+ }, this.isBefore = (r, a) => {
1709
+ var o;
1710
+ return (o = this.overrides) != null && o.isBefore ? this.overrides.isBefore(r, a) : ga(r, a);
1711
+ }, this.isDate = (r) => {
1712
+ var a;
1713
+ return (a = this.overrides) != null && a.isDate ? this.overrides.isDate(r) : qt(r);
1714
+ }, this.isSameDay = (r, a) => {
1715
+ var o;
1716
+ return (o = this.overrides) != null && o.isSameDay ? this.overrides.isSameDay(r, a) : ur(r, a);
1717
+ }, this.isSameMonth = (r, a) => {
1718
+ var o;
1719
+ return (o = this.overrides) != null && o.isSameMonth ? this.overrides.isSameMonth(r, a) : ba(r, a);
1720
+ }, this.isSameYear = (r, a) => {
1721
+ var o;
1722
+ return (o = this.overrides) != null && o.isSameYear ? this.overrides.isSameYear(r, a) : wa(r, a);
1723
+ }, this.max = (r) => {
1724
+ var a;
1725
+ return (a = this.overrides) != null && a.max ? this.overrides.max(r) : ir(r);
1726
+ }, this.min = (r) => {
1727
+ var a;
1728
+ return (a = this.overrides) != null && a.min ? this.overrides.min(r) : cr(r);
1729
+ }, this.setMonth = (r, a) => {
1730
+ var o;
1731
+ return (o = this.overrides) != null && o.setMonth ? this.overrides.setMonth(r, a) : Ma(r, a);
1732
+ }, this.setYear = (r, a) => {
1733
+ var o;
1734
+ return (o = this.overrides) != null && o.setYear ? this.overrides.setYear(r, a) : ka(r, a);
1735
+ }, this.startOfBroadcastWeek = (r, a) => {
1736
+ var o;
1737
+ return (o = this.overrides) != null && o.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(r, this) : Qt(r, this);
1738
+ }, this.startOfDay = (r) => {
1739
+ var a;
1740
+ return (a = this.overrides) != null && a.startOfDay ? this.overrides.startOfDay(r) : xe(r);
1741
+ }, this.startOfISOWeek = (r) => {
1742
+ var a;
1743
+ return (a = this.overrides) != null && a.startOfISOWeek ? this.overrides.startOfISOWeek(r) : Ne(r);
1744
+ }, this.startOfMonth = (r) => {
1745
+ var a;
1746
+ return (a = this.overrides) != null && a.startOfMonth ? this.overrides.startOfMonth(r) : hr(r);
1747
+ }, this.startOfWeek = (r, a) => {
1748
+ var o;
1749
+ return (o = this.overrides) != null && o.startOfWeek ? this.overrides.startOfWeek(r, this.options) : we(r, this.options);
1750
+ }, this.startOfYear = (r) => {
1751
+ var a;
1752
+ return (a = this.overrides) != null && a.startOfYear ? this.overrides.startOfYear(r) : $t(r);
1753
+ }, this.options = { locale: Ut, ...t }, this.overrides = n;
1754
+ }
1755
+ /**
1756
+ * Generates a mapping of Arabic digits (0-9) to the target numbering system
1757
+ * digits.
1758
+ *
1759
+ * @since 9.5.0
1760
+ * @returns A record mapping Arabic digits to the target numerals.
1761
+ */
1762
+ getDigitMap() {
1763
+ const { numerals: t = "latn" } = this.options, n = new Intl.NumberFormat("en-US", {
1764
+ numberingSystem: t
1765
+ }), r = {};
1766
+ for (let a = 0; a < 10; a++)
1767
+ r[a.toString()] = n.format(a);
1768
+ return r;
1769
+ }
1770
+ /**
1771
+ * Replaces Arabic digits in a string with the target numbering system digits.
1772
+ *
1773
+ * @since 9.5.0
1774
+ * @param input The string containing Arabic digits.
1775
+ * @returns The string with digits replaced.
1776
+ */
1777
+ replaceDigits(t) {
1778
+ const n = this.getDigitMap();
1779
+ return t.replace(/\d/g, (r) => n[r] || r);
1780
+ }
1781
+ /**
1782
+ * Formats a number using the configured numbering system.
1783
+ *
1784
+ * @since 9.5.0
1785
+ * @param value The number to format.
1786
+ * @returns The formatted number as a string.
1787
+ */
1788
+ formatNumber(t) {
1789
+ return this.replaceDigits(t.toString());
1790
+ }
1791
+ /**
1792
+ * Returns the preferred ordering for month and year labels for the current
1793
+ * locale.
1794
+ */
1795
+ getMonthYearOrder() {
1796
+ var n;
1797
+ const t = (n = this.options.locale) == null ? void 0 : n.code;
1798
+ return t && G.yearFirstLocales.has(t) ? "year-first" : "month-first";
1799
+ }
1800
+ /**
1801
+ * Formats the month/year pair respecting locale conventions.
1802
+ *
1803
+ * @since 9.11.0
1804
+ */
1805
+ formatMonthYear(t) {
1806
+ const { locale: n, timeZone: r, numerals: a } = this.options, o = n == null ? void 0 : n.code;
1807
+ if (o && G.yearFirstLocales.has(o))
1808
+ try {
1809
+ return new Intl.DateTimeFormat(o, {
1810
+ month: "long",
1811
+ year: "numeric",
1812
+ timeZone: r,
1813
+ numberingSystem: a
1814
+ }).format(t);
1815
+ } catch {
1816
+ }
1817
+ const s = this.getMonthYearOrder() === "year-first" ? "y LLLL" : "LLLL y";
1818
+ return this.format(t, s);
1819
+ }
1820
+ }
1821
+ G.yearFirstLocales = /* @__PURE__ */ new Set([
1822
+ "eu",
1823
+ "hu",
1824
+ "ja",
1825
+ "ja-Hira",
1826
+ "ja-JP",
1827
+ "ko",
1828
+ "ko-KR",
1829
+ "lt",
1830
+ "lt-LT",
1831
+ "lv",
1832
+ "lv-LV",
1833
+ "mn",
1834
+ "mn-MN",
1835
+ "zh",
1836
+ "zh-CN",
1837
+ "zh-HK",
1838
+ "zh-TW"
1839
+ ]);
1840
+ const ne = new G();
1841
+ class Xt {
1842
+ constructor(t, n, r = ne) {
1843
+ this.date = t, this.displayMonth = n, this.outside = !!(n && !r.isSameMonth(t, n)), this.dateLib = r, this.isoDate = r.format(t, "yyyy-MM-dd"), this.displayMonthId = r.format(n, "yyyy-MM"), this.dateMonthId = r.format(t, "yyyy-MM");
1844
+ }
1845
+ /**
1846
+ * Checks if this day is equal to another `CalendarDay`, considering both the
1847
+ * date and the displayed month.
1848
+ *
1849
+ * @param day The `CalendarDay` to compare with.
1850
+ * @returns `true` if the days are equal, otherwise `false`.
1851
+ */
1852
+ isEqualTo(t) {
1853
+ return this.dateLib.isSameDay(t.date, this.date) && this.dateLib.isSameMonth(t.displayMonth, this.displayMonth);
1854
+ }
1855
+ }
1856
+ class Wa {
1857
+ constructor(t, n) {
1858
+ this.date = t, this.weeks = n;
1859
+ }
1860
+ }
1861
+ class Sa {
1862
+ constructor(t, n) {
1863
+ this.days = n, this.weekNumber = t;
1864
+ }
1865
+ }
1866
+ function Na(e) {
1867
+ return y.createElement("button", { ...e });
1868
+ }
1869
+ function xa(e) {
1870
+ return y.createElement("span", { ...e });
1871
+ }
1872
+ function Ca(e) {
1873
+ const { size: t = 24, orientation: n = "left", className: r } = e;
1874
+ return (
1875
+ // biome-ignore lint/a11y/noSvgWithoutTitle: handled by the parent component
1876
+ y.createElement(
1877
+ "svg",
1878
+ { className: r, width: t, height: t, viewBox: "0 0 24 24" },
1879
+ n === "up" && y.createElement("polygon", { points: "6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28" }),
1880
+ n === "down" && y.createElement("polygon", { points: "6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72" }),
1881
+ n === "left" && y.createElement("polygon", { points: "16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20" }),
1882
+ n === "right" && y.createElement("polygon", { points: "8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20" })
1883
+ )
1884
+ );
1885
+ }
1886
+ function pa(e) {
1887
+ const { day: t, modifiers: n, ...r } = e;
1888
+ return y.createElement("td", { ...r });
1889
+ }
1890
+ function Kt(e) {
1891
+ const { day: t, modifiers: n, ...r } = e, a = y.useRef(null);
1892
+ return y.useEffect(() => {
1893
+ var o;
1894
+ n.focused && ((o = a.current) == null || o.focus());
1895
+ }, [n.focused]), y.createElement("button", { ref: a, ...r });
1896
+ }
1897
+ var k;
1898
+ (function(e) {
1899
+ e.Root = "root", e.Chevron = "chevron", e.Day = "day", e.DayButton = "day_button", e.CaptionLabel = "caption_label", e.Dropdowns = "dropdowns", e.Dropdown = "dropdown", e.DropdownRoot = "dropdown_root", e.Footer = "footer", e.MonthGrid = "month_grid", e.MonthCaption = "month_caption", e.MonthsDropdown = "months_dropdown", e.Month = "month", e.Months = "months", e.Nav = "nav", e.NextMonthButton = "button_next", e.PreviousMonthButton = "button_previous", e.Week = "week", e.Weeks = "weeks", e.Weekday = "weekday", e.Weekdays = "weekdays", e.WeekNumber = "week_number", e.WeekNumberHeader = "week_number_header", e.YearsDropdown = "years_dropdown";
1900
+ })(k || (k = {}));
1901
+ var F;
1902
+ (function(e) {
1903
+ e.disabled = "disabled", e.hidden = "hidden", e.outside = "outside", e.focused = "focused", e.today = "today";
1904
+ })(F || (F = {}));
1905
+ var J;
1906
+ (function(e) {
1907
+ e.range_end = "range_end", e.range_middle = "range_middle", e.range_start = "range_start", e.selected = "selected";
1908
+ })(J || (J = {}));
1909
+ var $;
1910
+ (function(e) {
1911
+ e.weeks_before_enter = "weeks_before_enter", e.weeks_before_exit = "weeks_before_exit", e.weeks_after_enter = "weeks_after_enter", e.weeks_after_exit = "weeks_after_exit", e.caption_after_enter = "caption_after_enter", e.caption_after_exit = "caption_after_exit", e.caption_before_enter = "caption_before_enter", e.caption_before_exit = "caption_before_exit";
1912
+ })($ || ($ = {}));
1913
+ function Ya(e) {
1914
+ const { options: t, className: n, components: r, classNames: a, ...o } = e, s = [a[k.Dropdown], n].join(" "), i = t == null ? void 0 : t.find(({ value: c }) => c === o.value);
1915
+ return y.createElement(
1916
+ "span",
1917
+ { "data-disabled": o.disabled, className: a[k.DropdownRoot] },
1918
+ y.createElement(r.Select, { className: s, ...o }, t == null ? void 0 : t.map(({ value: c, label: u, disabled: l }) => y.createElement(r.Option, { key: c, value: c, disabled: l }, u))),
1919
+ y.createElement(
1920
+ "span",
1921
+ { className: a[k.CaptionLabel], "aria-hidden": !0 },
1922
+ i == null ? void 0 : i.label,
1923
+ y.createElement(r.Chevron, { orientation: "down", size: 18, className: a[k.Chevron] })
1924
+ )
1925
+ );
1926
+ }
1927
+ function Ta(e) {
1928
+ return y.createElement("div", { ...e });
1929
+ }
1930
+ function Pa(e) {
1931
+ return y.createElement("div", { ...e });
1932
+ }
1933
+ function _a(e) {
1934
+ const { calendarMonth: t, displayIndex: n, ...r } = e;
1935
+ return y.createElement("div", { ...r }, e.children);
1936
+ }
1937
+ function Ea(e) {
1938
+ const { calendarMonth: t, displayIndex: n, ...r } = e;
1939
+ return y.createElement("div", { ...r });
1940
+ }
1941
+ function Fa(e) {
1942
+ return y.createElement("table", { ...e });
1943
+ }
1944
+ function Ba(e) {
1945
+ return y.createElement("div", { ...e });
1946
+ }
1947
+ const Jt = jn(void 0);
1948
+ function pe() {
1949
+ const e = zn(Jt);
1950
+ if (e === void 0)
1951
+ throw new Error("useDayPicker() must be used within a custom component.");
1952
+ return e;
1953
+ }
1954
+ function Ia(e) {
1955
+ const { components: t } = pe();
1956
+ return y.createElement(t.Dropdown, { ...e });
1957
+ }
1958
+ function Ha(e) {
1959
+ const { onPreviousClick: t, onNextClick: n, previousMonth: r, nextMonth: a, ...o } = e, { components: s, classNames: i, labels: { labelPrevious: c, labelNext: u } } = pe(), l = I((h) => {
1960
+ a && (n == null || n(h));
1961
+ }, [a, n]), d = I((h) => {
1962
+ r && (t == null || t(h));
1963
+ }, [r, t]);
1964
+ return y.createElement(
1965
+ "nav",
1966
+ { ...o },
1967
+ y.createElement(
1968
+ s.PreviousMonthButton,
1969
+ { type: "button", className: i[k.PreviousMonthButton], tabIndex: r ? void 0 : -1, "aria-disabled": r ? void 0 : !0, "aria-label": c(r), onClick: d },
1970
+ y.createElement(s.Chevron, { disabled: r ? void 0 : !0, className: i[k.Chevron], orientation: "left" })
1971
+ ),
1972
+ y.createElement(
1973
+ s.NextMonthButton,
1974
+ { type: "button", className: i[k.NextMonthButton], tabIndex: a ? void 0 : -1, "aria-disabled": a ? void 0 : !0, "aria-label": u(a), onClick: l },
1975
+ y.createElement(s.Chevron, { disabled: a ? void 0 : !0, orientation: "right", className: i[k.Chevron] })
1976
+ )
1977
+ );
1978
+ }
1979
+ function Aa(e) {
1980
+ const { components: t } = pe();
1981
+ return y.createElement(t.Button, { ...e });
1982
+ }
1983
+ function qa(e) {
1984
+ return y.createElement("option", { ...e });
1985
+ }
1986
+ function ja(e) {
1987
+ const { components: t } = pe();
1988
+ return y.createElement(t.Button, { ...e });
1989
+ }
1990
+ function za(e) {
1991
+ const { rootRef: t, ...n } = e;
1992
+ return y.createElement("div", { ...n, ref: t });
1993
+ }
1994
+ function $a(e) {
1995
+ return y.createElement("select", { ...e });
1996
+ }
1997
+ function Ga(e) {
1998
+ const { week: t, ...n } = e;
1999
+ return y.createElement("tr", { ...n });
2000
+ }
2001
+ function Zt(e) {
2002
+ return y.createElement("th", { ...e });
2003
+ }
2004
+ function Ra(e) {
2005
+ return y.createElement(
2006
+ "thead",
2007
+ { "aria-hidden": !0 },
2008
+ y.createElement("tr", { ...e })
2009
+ );
2010
+ }
2011
+ function Va(e) {
2012
+ const { week: t, ...n } = e;
2013
+ return y.createElement("th", { ...n });
2014
+ }
2015
+ function Qa(e) {
2016
+ return y.createElement("th", { ...e });
2017
+ }
2018
+ function Ua(e) {
2019
+ return y.createElement("tbody", { ...e });
2020
+ }
2021
+ function Xa(e) {
2022
+ const { components: t } = pe();
2023
+ return y.createElement(t.Dropdown, { ...e });
2024
+ }
2025
+ const Ka = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2026
+ __proto__: null,
2027
+ Button: Na,
2028
+ CaptionLabel: xa,
2029
+ Chevron: Ca,
2030
+ Day: pa,
2031
+ DayButton: Kt,
2032
+ Dropdown: Ya,
2033
+ DropdownNav: Ta,
2034
+ Footer: Pa,
2035
+ Month: _a,
2036
+ MonthCaption: Ea,
2037
+ MonthGrid: Fa,
2038
+ Months: Ba,
2039
+ MonthsDropdown: Ia,
2040
+ Nav: Ha,
2041
+ NextMonthButton: Aa,
2042
+ Option: qa,
2043
+ PreviousMonthButton: ja,
2044
+ Root: za,
2045
+ Select: $a,
2046
+ Week: Ga,
2047
+ WeekNumber: Va,
2048
+ WeekNumberHeader: Qa,
2049
+ Weekday: Zt,
2050
+ Weekdays: Ra,
2051
+ Weeks: Ua,
2052
+ YearsDropdown: Xa
2053
+ }, Symbol.toStringTag, { value: "Module" }));
2054
+ function ie(e, t, n = !1, r = ne) {
2055
+ let { from: a, to: o } = e;
2056
+ const { differenceInCalendarDays: s, isSameDay: i } = r;
2057
+ return a && o ? (s(o, a) < 0 && ([a, o] = [o, a]), s(t, a) >= (n ? 1 : 0) && s(o, t) >= (n ? 1 : 0)) : !n && o ? i(o, t) : !n && a ? i(a, t) : !1;
2058
+ }
2059
+ function rt(e) {
2060
+ return !!(e && typeof e == "object" && "before" in e && "after" in e);
2061
+ }
2062
+ function Be(e) {
2063
+ return !!(e && typeof e == "object" && "from" in e);
2064
+ }
2065
+ function at(e) {
2066
+ return !!(e && typeof e == "object" && "after" in e);
2067
+ }
2068
+ function ot(e) {
2069
+ return !!(e && typeof e == "object" && "before" in e);
2070
+ }
2071
+ function Lt(e) {
2072
+ return !!(e && typeof e == "object" && "dayOfWeek" in e);
2073
+ }
2074
+ function en(e, t) {
2075
+ return Array.isArray(e) && e.every(t.isDate);
2076
+ }
2077
+ function ce(e, t, n = ne) {
2078
+ const r = Array.isArray(t) ? t : [t], { isSameDay: a, differenceInCalendarDays: o, isAfter: s } = n;
2079
+ return r.some((i) => {
2080
+ if (typeof i == "boolean")
2081
+ return i;
2082
+ if (n.isDate(i))
2083
+ return a(e, i);
2084
+ if (en(i, n))
2085
+ return i.some((c) => a(e, c));
2086
+ if (Be(i))
2087
+ return ie(i, e, !1, n);
2088
+ if (Lt(i))
2089
+ return Array.isArray(i.dayOfWeek) ? i.dayOfWeek.includes(e.getDay()) : i.dayOfWeek === e.getDay();
2090
+ if (rt(i)) {
2091
+ const c = o(i.before, e), u = o(i.after, e), l = c > 0, d = u < 0;
2092
+ return s(i.before, i.after) ? d && l : l || d;
2093
+ }
2094
+ return at(i) ? o(e, i.after) > 0 : ot(i) ? o(i.before, e) > 0 : typeof i == "function" ? i(e) : !1;
2095
+ });
2096
+ }
2097
+ function Ja(e, t, n, r, a) {
2098
+ const { disabled: o, hidden: s, modifiers: i, showOutsideDays: c, broadcastCalendar: u, today: l = a.today() } = t, { isSameDay: d, isSameMonth: h, startOfMonth: b, isBefore: m, endOfMonth: D, isAfter: M } = a, v = n && b(n), g = r && D(r), w = {
2099
+ [F.focused]: [],
2100
+ [F.outside]: [],
2101
+ [F.disabled]: [],
2102
+ [F.hidden]: [],
2103
+ [F.today]: []
2104
+ }, N = {};
2105
+ for (const W of e) {
2106
+ const { date: f, displayMonth: x } = W, E = !!(x && !h(f, x)), A = !!(v && m(f, v)), B = !!(g && M(f, g)), R = !!(o && ce(f, o, a)), ue = !!(s && ce(f, s, a)) || A || B || // Broadcast calendar will show outside days as default
2107
+ !u && !c && E || u && c === !1 && E, re = d(f, l);
2108
+ E && w.outside.push(W), R && w.disabled.push(W), ue && w.hidden.push(W), re && w.today.push(W), i && Object.keys(i).forEach((V) => {
2109
+ const me = i == null ? void 0 : i[V];
2110
+ me && ce(f, me, a) && (N[V] ? N[V].push(W) : N[V] = [W]);
2111
+ });
2112
+ }
2113
+ return (W) => {
2114
+ const f = {
2115
+ [F.focused]: !1,
2116
+ [F.disabled]: !1,
2117
+ [F.hidden]: !1,
2118
+ [F.outside]: !1,
2119
+ [F.today]: !1
2120
+ }, x = {};
2121
+ for (const E in w) {
2122
+ const A = w[E];
2123
+ f[E] = A.some((B) => B === W);
2124
+ }
2125
+ for (const E in N)
2126
+ x[E] = N[E].some((A) => A === W);
2127
+ return {
2128
+ ...f,
2129
+ // custom modifiers should override all the previous ones
2130
+ ...x
2131
+ };
2132
+ };
2133
+ }
2134
+ function Za(e, t, n = {}) {
2135
+ return Object.entries(e).filter(([, a]) => a === !0).reduce((a, [o]) => (n[o] ? a.push(n[o]) : t[F[o]] ? a.push(t[F[o]]) : t[J[o]] && a.push(t[J[o]]), a), [t[k.Day]]);
2136
+ }
2137
+ function La(e) {
2138
+ return {
2139
+ ...Ka,
2140
+ ...e
2141
+ };
2142
+ }
2143
+ function eo(e) {
2144
+ const t = {
2145
+ "data-mode": e.mode ?? void 0,
2146
+ "data-required": "required" in e ? e.required : void 0,
2147
+ "data-multiple-months": e.numberOfMonths && e.numberOfMonths > 1 || void 0,
2148
+ "data-week-numbers": e.showWeekNumber || void 0,
2149
+ "data-broadcast-calendar": e.broadcastCalendar || void 0,
2150
+ "data-nav-layout": e.navLayout || void 0
2151
+ };
2152
+ return Object.entries(e).forEach(([n, r]) => {
2153
+ n.startsWith("data-") && (t[n] = r);
2154
+ }), t;
2155
+ }
2156
+ function to() {
2157
+ const e = {};
2158
+ for (const t in k)
2159
+ e[k[t]] = `rdp-${k[t]}`;
2160
+ for (const t in F)
2161
+ e[F[t]] = `rdp-${F[t]}`;
2162
+ for (const t in J)
2163
+ e[J[t]] = `rdp-${J[t]}`;
2164
+ for (const t in $)
2165
+ e[$[t]] = `rdp-${$[t]}`;
2166
+ return e;
2167
+ }
2168
+ function tn(e, t, n) {
2169
+ return (n ?? new G(t)).formatMonthYear(e);
2170
+ }
2171
+ const no = tn;
2172
+ function ro(e, t, n) {
2173
+ return (n ?? new G(t)).format(e, "d");
2174
+ }
2175
+ function ao(e, t = ne) {
2176
+ return t.format(e, "LLLL");
2177
+ }
2178
+ function oo(e, t, n) {
2179
+ return (n ?? new G(t)).format(e, "cccccc");
2180
+ }
2181
+ function so(e, t = ne) {
2182
+ return e < 10 ? t.formatNumber(`0${e.toLocaleString()}`) : t.formatNumber(`${e.toLocaleString()}`);
2183
+ }
2184
+ function io() {
2185
+ return "";
2186
+ }
2187
+ function nn(e, t = ne) {
2188
+ return t.format(e, "yyyy");
2189
+ }
2190
+ const co = nn, uo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2191
+ __proto__: null,
2192
+ formatCaption: tn,
2193
+ formatDay: ro,
2194
+ formatMonthCaption: no,
2195
+ formatMonthDropdown: ao,
2196
+ formatWeekNumber: so,
2197
+ formatWeekNumberHeader: io,
2198
+ formatWeekdayName: oo,
2199
+ formatYearCaption: co,
2200
+ formatYearDropdown: nn
2201
+ }, Symbol.toStringTag, { value: "Module" }));
2202
+ function lo(e) {
2203
+ return e != null && e.formatMonthCaption && !e.formatCaption && (e.formatCaption = e.formatMonthCaption), e != null && e.formatYearCaption && !e.formatYearDropdown && (e.formatYearDropdown = e.formatYearCaption), {
2204
+ ...uo,
2205
+ ...e
2206
+ };
2207
+ }
2208
+ function st(e, t, n, r) {
2209
+ let a = (r ?? new G(n)).format(e, "PPPP");
2210
+ return t.today && (a = `Today, ${a}`), t.selected && (a = `${a}, selected`), a;
2211
+ }
2212
+ const fo = st;
2213
+ function it(e, t, n) {
2214
+ return (n ?? new G(t)).formatMonthYear(e);
2215
+ }
2216
+ const ho = it;
2217
+ function rn(e, t, n, r) {
2218
+ let a = (r ?? new G(n)).format(e, "PPPP");
2219
+ return t != null && t.today && (a = `Today, ${a}`), a;
2220
+ }
2221
+ function an(e) {
2222
+ return "Choose the Month";
2223
+ }
2224
+ function on() {
2225
+ return "";
2226
+ }
2227
+ const mo = "Go to the Next Month";
2228
+ function sn(e, t) {
2229
+ return mo;
2230
+ }
2231
+ function cn(e) {
2232
+ return "Go to the Previous Month";
2233
+ }
2234
+ function un(e, t, n) {
2235
+ return (n ?? new G(t)).format(e, "cccc");
2236
+ }
2237
+ function ln(e, t) {
2238
+ return `Week ${e}`;
2239
+ }
2240
+ function dn(e) {
2241
+ return "Week Number";
2242
+ }
2243
+ function fn(e) {
2244
+ return "Choose the Year";
2245
+ }
2246
+ const yo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2247
+ __proto__: null,
2248
+ labelCaption: ho,
2249
+ labelDay: fo,
2250
+ labelDayButton: st,
2251
+ labelGrid: it,
2252
+ labelGridcell: rn,
2253
+ labelMonthDropdown: an,
2254
+ labelNav: on,
2255
+ labelNext: sn,
2256
+ labelPrevious: cn,
2257
+ labelWeekNumber: ln,
2258
+ labelWeekNumberHeader: dn,
2259
+ labelWeekday: un,
2260
+ labelYearDropdown: fn
2261
+ }, Symbol.toStringTag, { value: "Module" })), K = (e, t, n) => t || (n ? typeof n == "function" ? n : (...r) => n : e);
2262
+ function go(e, t) {
2263
+ var r;
2264
+ const n = ((r = t.locale) == null ? void 0 : r.labels) ?? {};
2265
+ return {
2266
+ ...yo,
2267
+ ...e ?? {},
2268
+ labelDayButton: K(st, e == null ? void 0 : e.labelDayButton, n.labelDayButton),
2269
+ labelMonthDropdown: K(an, e == null ? void 0 : e.labelMonthDropdown, n.labelMonthDropdown),
2270
+ labelNext: K(sn, e == null ? void 0 : e.labelNext, n.labelNext),
2271
+ labelPrevious: K(cn, e == null ? void 0 : e.labelPrevious, n.labelPrevious),
2272
+ labelWeekNumber: K(ln, e == null ? void 0 : e.labelWeekNumber, n.labelWeekNumber),
2273
+ labelYearDropdown: K(fn, e == null ? void 0 : e.labelYearDropdown, n.labelYearDropdown),
2274
+ labelGrid: K(it, e == null ? void 0 : e.labelGrid, n.labelGrid),
2275
+ labelGridcell: K(rn, e == null ? void 0 : e.labelGridcell, n.labelGridcell),
2276
+ labelNav: K(on, e == null ? void 0 : e.labelNav, n.labelNav),
2277
+ labelWeekNumberHeader: K(dn, e == null ? void 0 : e.labelWeekNumberHeader, n.labelWeekNumberHeader),
2278
+ labelWeekday: K(un, e == null ? void 0 : e.labelWeekday, n.labelWeekday)
2279
+ };
2280
+ }
2281
+ function bo(e, t, n, r, a) {
2282
+ const { startOfMonth: o, startOfYear: s, endOfYear: i, eachMonthOfInterval: c, getMonth: u } = a;
2283
+ return c({
2284
+ start: s(e),
2285
+ end: i(e)
2286
+ }).map((h) => {
2287
+ const b = r.formatMonthDropdown(h, a), m = u(h), D = t && h < o(t) || n && h > o(n) || !1;
2288
+ return { value: m, label: b, disabled: D };
2289
+ });
2290
+ }
2291
+ function wo(e, t = {}, n = {}) {
2292
+ let r = { ...t == null ? void 0 : t[k.Day] };
2293
+ return Object.entries(e).filter(([, a]) => a === !0).forEach(([a]) => {
2294
+ r = {
2295
+ ...r,
2296
+ ...n == null ? void 0 : n[a]
2297
+ };
2298
+ }), r;
2299
+ }
2300
+ function Mo(e, t, n, r) {
2301
+ const a = r ?? e.today(), o = n ? e.startOfBroadcastWeek(a, e) : t ? e.startOfISOWeek(a) : e.startOfWeek(a), s = [];
2302
+ for (let i = 0; i < 7; i++) {
2303
+ const c = e.addDays(o, i);
2304
+ s.push(c);
2305
+ }
2306
+ return s;
2307
+ }
2308
+ function ko(e, t, n, r, a = !1) {
2309
+ if (!e || !t)
2310
+ return;
2311
+ const { startOfYear: o, endOfYear: s, eachYearOfInterval: i, getYear: c } = r, u = o(e), l = s(t), d = i({ start: u, end: l });
2312
+ return a && d.reverse(), d.map((h) => {
2313
+ const b = n.formatYearDropdown(h, r);
2314
+ return {
2315
+ value: c(h),
2316
+ label: b,
2317
+ disabled: !1
2318
+ };
2319
+ });
2320
+ }
2321
+ function Do(e, t = {}) {
2322
+ var i;
2323
+ const { weekStartsOn: n, locale: r } = t, a = n ?? ((i = r == null ? void 0 : r.options) == null ? void 0 : i.weekStartsOn) ?? 0, o = (c) => {
2324
+ const u = typeof c == "number" || typeof c == "string" ? new Date(c) : c;
2325
+ return new q(u.getFullYear(), u.getMonth(), u.getDate(), 12, 0, 0, e);
2326
+ }, s = (c) => {
2327
+ const u = o(c);
2328
+ return new Date(u.getFullYear(), u.getMonth(), u.getDate(), 0, 0, 0, 0);
2329
+ };
2330
+ return {
2331
+ today: () => o(q.tz(e)),
2332
+ newDate: (c, u, l) => new q(c, u, l, 12, 0, 0, e),
2333
+ startOfDay: (c) => o(c),
2334
+ startOfWeek: (c, u) => {
2335
+ const l = o(c), d = (u == null ? void 0 : u.weekStartsOn) ?? a, h = (l.getDay() - d + 7) % 7;
2336
+ return l.setDate(l.getDate() - h), l;
2337
+ },
2338
+ startOfISOWeek: (c) => {
2339
+ const u = o(c), l = (u.getDay() - 1 + 7) % 7;
2340
+ return u.setDate(u.getDate() - l), u;
2341
+ },
2342
+ startOfMonth: (c) => {
2343
+ const u = o(c);
2344
+ return u.setDate(1), u;
2345
+ },
2346
+ startOfYear: (c) => {
2347
+ const u = o(c);
2348
+ return u.setMonth(0, 1), u;
2349
+ },
2350
+ endOfWeek: (c, u) => {
2351
+ const l = o(c), b = ((((u == null ? void 0 : u.weekStartsOn) ?? a) + 6) % 7 - l.getDay() + 7) % 7;
2352
+ return l.setDate(l.getDate() + b), l;
2353
+ },
2354
+ endOfISOWeek: (c) => {
2355
+ const u = o(c), l = (7 - u.getDay()) % 7;
2356
+ return u.setDate(u.getDate() + l), u;
2357
+ },
2358
+ endOfMonth: (c) => {
2359
+ const u = o(c);
2360
+ return u.setMonth(u.getMonth() + 1, 0), u;
2361
+ },
2362
+ endOfYear: (c) => {
2363
+ const u = o(c);
2364
+ return u.setMonth(11, 31), u;
2365
+ },
2366
+ eachMonthOfInterval: (c) => {
2367
+ const u = o(c.start), l = o(c.end), d = [], h = new q(u.getFullYear(), u.getMonth(), 1, 12, 0, 0, e), b = l.getFullYear() * 12 + l.getMonth();
2368
+ for (; h.getFullYear() * 12 + h.getMonth() <= b; )
2369
+ d.push(new q(h, e)), h.setMonth(h.getMonth() + 1, 1);
2370
+ return d;
2371
+ },
2372
+ // Normalize to noon once before arithmetic (avoid DST/midnight edge cases),
2373
+ // mutate the same TZDate, and return it.
2374
+ addDays: (c, u) => {
2375
+ const l = o(c);
2376
+ return l.setDate(l.getDate() + u), l;
2377
+ },
2378
+ addWeeks: (c, u) => {
2379
+ const l = o(c);
2380
+ return l.setDate(l.getDate() + u * 7), l;
2381
+ },
2382
+ addMonths: (c, u) => {
2383
+ const l = o(c);
2384
+ return l.setMonth(l.getMonth() + u), l;
2385
+ },
2386
+ addYears: (c, u) => {
2387
+ const l = o(c);
2388
+ return l.setFullYear(l.getFullYear() + u), l;
2389
+ },
2390
+ eachYearOfInterval: (c) => {
2391
+ const u = o(c.start), l = o(c.end), d = [], h = new q(u.getFullYear(), 0, 1, 12, 0, 0, e);
2392
+ for (; h.getFullYear() <= l.getFullYear(); )
2393
+ d.push(new q(h, e)), h.setFullYear(h.getFullYear() + 1, 0, 1);
2394
+ return d;
2395
+ },
2396
+ getWeek: (c, u) => {
2397
+ var d;
2398
+ const l = s(c);
2399
+ return nt(l, {
2400
+ weekStartsOn: (u == null ? void 0 : u.weekStartsOn) ?? a,
2401
+ firstWeekContainsDate: (u == null ? void 0 : u.firstWeekContainsDate) ?? ((d = r == null ? void 0 : r.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1
2402
+ });
2403
+ },
2404
+ getISOWeek: (c) => {
2405
+ const u = s(c);
2406
+ return tt(u);
2407
+ },
2408
+ differenceInCalendarDays: (c, u) => {
2409
+ const l = s(c), d = s(u);
2410
+ return et(l, d);
2411
+ },
2412
+ differenceInCalendarMonths: (c, u) => {
2413
+ const l = s(c), d = s(u);
2414
+ return jt(l, d);
2415
+ }
2416
+ };
2417
+ }
2418
+ const Ye = (e) => e instanceof HTMLElement ? e : null, Qe = (e) => [
2419
+ ...e.querySelectorAll("[data-animated-month]") ?? []
2420
+ ], vo = (e) => Ye(e.querySelector("[data-animated-month]")), Ue = (e) => Ye(e.querySelector("[data-animated-caption]")), Xe = (e) => Ye(e.querySelector("[data-animated-weeks]")), Oo = (e) => Ye(e.querySelector("[data-animated-nav]")), Wo = (e) => Ye(e.querySelector("[data-animated-weekdays]"));
2421
+ function So(e, t, { classNames: n, months: r, focused: a, dateLib: o }) {
2422
+ const s = Fe(null), i = Fe(r), c = Fe(!1);
2423
+ $n(() => {
2424
+ const u = i.current;
2425
+ if (i.current = r, !t || !e.current || // safety check because the ref can be set to anything by consumers
2426
+ !(e.current instanceof HTMLElement) || // validation required for the animation to work as expected
2427
+ r.length === 0 || u.length === 0 || r.length !== u.length)
2428
+ return;
2429
+ const l = o.isSameMonth(r[0].date, u[0].date), d = o.isAfter(r[0].date, u[0].date), h = d ? n[$.caption_after_enter] : n[$.caption_before_enter], b = d ? n[$.weeks_after_enter] : n[$.weeks_before_enter], m = s.current, D = e.current.cloneNode(!0);
2430
+ if (D instanceof HTMLElement ? (Qe(D).forEach((w) => {
2431
+ if (!(w instanceof HTMLElement))
2432
+ return;
2433
+ const N = vo(w);
2434
+ N && w.contains(N) && w.removeChild(N);
2435
+ const W = Ue(w);
2436
+ W && W.classList.remove(h);
2437
+ const f = Xe(w);
2438
+ f && f.classList.remove(b);
2439
+ }), s.current = D) : s.current = null, c.current || l || // skip animation if a day is focused because it can cause issues to the animation and is better for a11y
2440
+ a)
2441
+ return;
2442
+ const M = m instanceof HTMLElement ? Qe(m) : [], v = Qe(e.current);
2443
+ if (v != null && v.every((g) => g instanceof HTMLElement) && M && M.every((g) => g instanceof HTMLElement)) {
2444
+ c.current = !0, e.current.style.isolation = "isolate";
2445
+ const g = Oo(e.current);
2446
+ g && (g.style.zIndex = "1"), v.forEach((w, N) => {
2447
+ const W = M[N];
2448
+ if (!W)
2449
+ return;
2450
+ w.style.position = "relative", w.style.overflow = "hidden";
2451
+ const f = Ue(w);
2452
+ f && f.classList.add(h);
2453
+ const x = Xe(w);
2454
+ x && x.classList.add(b);
2455
+ const E = () => {
2456
+ c.current = !1, e.current && (e.current.style.isolation = ""), g && (g.style.zIndex = ""), f && f.classList.remove(h), x && x.classList.remove(b), w.style.position = "", w.style.overflow = "", w.contains(W) && w.removeChild(W);
2457
+ };
2458
+ W.style.pointerEvents = "none", W.style.position = "absolute", W.style.overflow = "hidden", W.setAttribute("aria-hidden", "true");
2459
+ const A = Wo(W);
2460
+ A && (A.style.opacity = "0");
2461
+ const B = Ue(W);
2462
+ B && (B.classList.add(d ? n[$.caption_before_exit] : n[$.caption_after_exit]), B.addEventListener("animationend", E));
2463
+ const R = Xe(W);
2464
+ R && R.classList.add(d ? n[$.weeks_before_exit] : n[$.weeks_after_exit]), w.insertBefore(W, w.firstChild);
2465
+ });
2466
+ }
2467
+ });
2468
+ }
2469
+ function No(e, t, n, r) {
2470
+ const a = e[0], o = e[e.length - 1], { ISOWeek: s, fixedWeeks: i, broadcastCalendar: c } = n ?? {}, { addDays: u, differenceInCalendarDays: l, differenceInCalendarMonths: d, endOfBroadcastWeek: h, endOfISOWeek: b, endOfMonth: m, endOfWeek: D, isAfter: M, startOfBroadcastWeek: v, startOfISOWeek: g, startOfWeek: w } = r, N = c ? v(a, r) : s ? g(a) : w(a), W = c ? h(o) : s ? b(m(o)) : D(m(o)), f = t && (c ? h(t) : s ? b(t) : D(t)), x = f && M(W, f) ? f : W, E = l(x, N), A = d(o, a) + 1, B = [];
2471
+ for (let re = 0; re <= E; re++) {
2472
+ const V = u(N, re);
2473
+ B.push(V);
2474
+ }
2475
+ const ue = (c ? 35 : 42) * A;
2476
+ if (i && B.length < ue) {
2477
+ const re = ue - B.length;
2478
+ for (let V = 0; V < re; V++) {
2479
+ const me = u(B[B.length - 1], 1);
2480
+ B.push(me);
2481
+ }
2482
+ }
2483
+ return B;
2484
+ }
2485
+ function xo(e) {
2486
+ const t = [];
2487
+ return e.reduce((n, r) => {
2488
+ const a = r.weeks.reduce((o, s) => o.concat(s.days.slice()), t.slice());
2489
+ return n.concat(a.slice());
2490
+ }, t.slice());
2491
+ }
2492
+ function Co(e, t, n, r) {
2493
+ const { numberOfMonths: a = 1 } = n, o = [];
2494
+ for (let s = 0; s < a; s++) {
2495
+ const i = r.addMonths(e, s);
2496
+ if (t && i > t)
2497
+ break;
2498
+ o.push(i);
2499
+ }
2500
+ return o;
2501
+ }
2502
+ function pt(e, t, n, r) {
2503
+ const { month: a, defaultMonth: o, today: s = r.today(), numberOfMonths: i = 1 } = e;
2504
+ let c = a || o || s;
2505
+ const { differenceInCalendarMonths: u, addMonths: l, startOfMonth: d } = r;
2506
+ if (n && u(n, c) < i - 1) {
2507
+ const h = -1 * (i - 1);
2508
+ c = l(n, h);
2509
+ }
2510
+ return t && u(c, t) < 0 && (c = t), d(c);
2511
+ }
2512
+ function po(e, t, n, r) {
2513
+ const { addDays: a, endOfBroadcastWeek: o, endOfISOWeek: s, endOfMonth: i, endOfWeek: c, getISOWeek: u, getWeek: l, startOfBroadcastWeek: d, startOfISOWeek: h, startOfWeek: b } = r, m = e.reduce((D, M) => {
2514
+ const v = n.broadcastCalendar ? d(M, r) : n.ISOWeek ? h(M) : b(M), g = n.broadcastCalendar ? o(M) : n.ISOWeek ? s(i(M)) : c(i(M)), w = t.filter((x) => x >= v && x <= g), N = n.broadcastCalendar ? 35 : 42;
2515
+ if (n.fixedWeeks && w.length < N) {
2516
+ const x = t.filter((E) => {
2517
+ const A = N - w.length;
2518
+ return E > g && E <= a(g, A);
2519
+ });
2520
+ w.push(...x);
2521
+ }
2522
+ const W = w.reduce((x, E) => {
2523
+ const A = n.ISOWeek ? u(E) : l(E), B = x.find((ue) => ue.weekNumber === A), R = new Xt(E, M, r);
2524
+ return B ? B.days.push(R) : x.push(new Sa(A, [R])), x;
2525
+ }, []), f = new Wa(M, W);
2526
+ return D.push(f), D;
2527
+ }, []);
2528
+ return n.reverseMonths ? m.reverse() : m;
2529
+ }
2530
+ function Yo(e, t) {
2531
+ let { startMonth: n, endMonth: r } = e;
2532
+ const { startOfYear: a, startOfDay: o, startOfMonth: s, endOfMonth: i, addYears: c, endOfYear: u, newDate: l, today: d } = t, { fromYear: h, toYear: b, fromMonth: m, toMonth: D } = e;
2533
+ !n && m && (n = m), !n && h && (n = t.newDate(h, 0, 1)), !r && D && (r = D), !r && b && (r = l(b, 11, 31));
2534
+ const M = e.captionLayout === "dropdown" || e.captionLayout === "dropdown-years";
2535
+ return n ? n = s(n) : h ? n = l(h, 0, 1) : !n && M && (n = a(c(e.today ?? d(), -100))), r ? r = i(r) : b ? r = l(b, 11, 31) : !r && M && (r = u(e.today ?? d())), [
2536
+ n && o(n),
2537
+ r && o(r)
2538
+ ];
2539
+ }
2540
+ function To(e, t, n, r) {
2541
+ if (n.disableNavigation)
2542
+ return;
2543
+ const { pagedNavigation: a, numberOfMonths: o = 1 } = n, { startOfMonth: s, addMonths: i, differenceInCalendarMonths: c } = r, u = a ? o : 1, l = s(e);
2544
+ if (!t)
2545
+ return i(l, u);
2546
+ if (!(c(t, e) < o))
2547
+ return i(l, u);
2548
+ }
2549
+ function Po(e, t, n, r) {
2550
+ if (n.disableNavigation)
2551
+ return;
2552
+ const { pagedNavigation: a, numberOfMonths: o } = n, { startOfMonth: s, addMonths: i, differenceInCalendarMonths: c } = r, u = a ? o ?? 1 : 1, l = s(e);
2553
+ if (!t)
2554
+ return i(l, -u);
2555
+ if (!(c(l, t) <= 0))
2556
+ return i(l, -u);
2557
+ }
2558
+ function _o(e) {
2559
+ const t = [];
2560
+ return e.reduce((n, r) => n.concat(r.weeks.slice()), t.slice());
2561
+ }
2562
+ function Ie(e, t) {
2563
+ const [n, r] = ee(e);
2564
+ return [t === void 0 ? n : t, r];
2565
+ }
2566
+ function Eo(e, t) {
2567
+ var N;
2568
+ const [n, r] = Yo(e, t), { startOfMonth: a, endOfMonth: o } = t, s = pt(e, n, r, t), [i, c] = Ie(
2569
+ s,
2570
+ // initialMonth is always computed from props.month if provided
2571
+ e.month ? s : void 0
2572
+ );
2573
+ Ze(() => {
2574
+ const W = pt(e, n, r, t);
2575
+ c(W);
2576
+ }, [e.timeZone]);
2577
+ const { months: u, weeks: l, days: d, previousMonth: h, nextMonth: b } = he(() => {
2578
+ const W = Co(i, r, { numberOfMonths: e.numberOfMonths }, t), f = No(W, e.endMonth ? o(e.endMonth) : void 0, {
2579
+ ISOWeek: e.ISOWeek,
2580
+ fixedWeeks: e.fixedWeeks,
2581
+ broadcastCalendar: e.broadcastCalendar
2582
+ }, t), x = po(W, f, {
2583
+ broadcastCalendar: e.broadcastCalendar,
2584
+ fixedWeeks: e.fixedWeeks,
2585
+ ISOWeek: e.ISOWeek,
2586
+ reverseMonths: e.reverseMonths
2587
+ }, t), E = _o(x), A = xo(x), B = Po(i, n, e, t), R = To(i, r, e, t);
2588
+ return {
2589
+ months: x,
2590
+ weeks: E,
2591
+ days: A,
2592
+ previousMonth: B,
2593
+ nextMonth: R
2594
+ };
2595
+ }, [
2596
+ t,
2597
+ i.getTime(),
2598
+ r == null ? void 0 : r.getTime(),
2599
+ n == null ? void 0 : n.getTime(),
2600
+ e.disableNavigation,
2601
+ e.broadcastCalendar,
2602
+ (N = e.endMonth) == null ? void 0 : N.getTime(),
2603
+ e.fixedWeeks,
2604
+ e.ISOWeek,
2605
+ e.numberOfMonths,
2606
+ e.pagedNavigation,
2607
+ e.reverseMonths
2608
+ ]), { disableNavigation: m, onMonthChange: D } = e, M = (W) => l.some((f) => f.days.some((x) => x.isEqualTo(W))), v = (W) => {
2609
+ if (m)
2610
+ return;
2611
+ let f = a(W);
2612
+ n && f < a(n) && (f = a(n)), r && f > a(r) && (f = a(r)), c(f), D == null || D(f);
2613
+ };
2614
+ return {
2615
+ months: u,
2616
+ weeks: l,
2617
+ days: d,
2618
+ navStart: n,
2619
+ navEnd: r,
2620
+ previousMonth: h,
2621
+ nextMonth: b,
2622
+ goToMonth: v,
2623
+ goToDay: (W) => {
2624
+ M(W) || v(W.date);
2625
+ }
2626
+ };
2627
+ }
2628
+ var Z;
2629
+ (function(e) {
2630
+ e[e.Today = 0] = "Today", e[e.Selected = 1] = "Selected", e[e.LastFocused = 2] = "LastFocused", e[e.FocusedModifier = 3] = "FocusedModifier";
2631
+ })(Z || (Z = {}));
2632
+ function Yt(e) {
2633
+ return !e[F.disabled] && !e[F.hidden] && !e[F.outside];
2634
+ }
2635
+ function Fo(e, t, n, r) {
2636
+ let a, o = -1;
2637
+ for (const s of e) {
2638
+ const i = t(s);
2639
+ Yt(i) && (i[F.focused] && o < Z.FocusedModifier ? (a = s, o = Z.FocusedModifier) : r != null && r.isEqualTo(s) && o < Z.LastFocused ? (a = s, o = Z.LastFocused) : n(s.date) && o < Z.Selected ? (a = s, o = Z.Selected) : i[F.today] && o < Z.Today && (a = s, o = Z.Today));
2640
+ }
2641
+ return a || (a = e.find((s) => Yt(t(s)))), a;
2642
+ }
2643
+ function Bo(e, t, n, r, a, o, s) {
2644
+ const { ISOWeek: i, broadcastCalendar: c } = o, { addDays: u, addMonths: l, addWeeks: d, addYears: h, endOfBroadcastWeek: b, endOfISOWeek: m, endOfWeek: D, max: M, min: v, startOfBroadcastWeek: g, startOfISOWeek: w, startOfWeek: N } = s;
2645
+ let f = {
2646
+ day: u,
2647
+ week: d,
2648
+ month: l,
2649
+ year: h,
2650
+ startOfWeek: (x) => c ? g(x, s) : i ? w(x) : N(x),
2651
+ endOfWeek: (x) => c ? b(x) : i ? m(x) : D(x)
2652
+ }[e](n, t === "after" ? 1 : -1);
2653
+ return t === "before" && r ? f = M([r, f]) : t === "after" && a && (f = v([a, f])), f;
2654
+ }
2655
+ function hn(e, t, n, r, a, o, s, i = 0) {
2656
+ if (i > 365)
2657
+ return;
2658
+ const c = Bo(e, t, n.date, r, a, o, s), u = !!(o.disabled && ce(c, o.disabled, s)), l = !!(o.hidden && ce(c, o.hidden, s)), d = c, h = new Xt(c, d, s);
2659
+ return !u && !l ? h : hn(e, t, h, r, a, o, s, i + 1);
2660
+ }
2661
+ function Io(e, t, n, r, a) {
2662
+ const { autoFocus: o } = e, [s, i] = ee(), c = Fo(t.days, n, r || (() => !1), s), [u, l] = ee(o ? c : void 0);
2663
+ return {
2664
+ isFocusTarget: (D) => !!(c != null && c.isEqualTo(D)),
2665
+ setFocused: l,
2666
+ focused: u,
2667
+ blur: () => {
2668
+ i(u), l(void 0);
2669
+ },
2670
+ moveFocus: (D, M) => {
2671
+ if (!u)
2672
+ return;
2673
+ const v = hn(D, M, u, t.navStart, t.navEnd, e, a);
2674
+ v && (e.disableNavigation && !t.days.some((w) => w.isEqualTo(v)) || (t.goToDay(v), l(v)));
2675
+ }
2676
+ };
2677
+ }
2678
+ function Ho(e, t) {
2679
+ const { selected: n, required: r, onSelect: a } = e, [o, s] = Ie(n, a ? n : void 0), i = a ? n : o, { isSameDay: c } = t, u = (b) => (i == null ? void 0 : i.some((m) => c(m, b))) ?? !1, { min: l, max: d } = e;
2680
+ return {
2681
+ selected: i,
2682
+ select: (b, m, D) => {
2683
+ let M = [...i ?? []];
2684
+ if (u(b)) {
2685
+ if ((i == null ? void 0 : i.length) === l || r && (i == null ? void 0 : i.length) === 1)
2686
+ return;
2687
+ M = i == null ? void 0 : i.filter((v) => !c(v, b));
2688
+ } else
2689
+ (i == null ? void 0 : i.length) === d ? M = [b] : M = [...M, b];
2690
+ return a || s(M), a == null || a(M, b, m, D), M;
2691
+ },
2692
+ isSelected: u
2693
+ };
2694
+ }
2695
+ function Ao(e, t, n = 0, r = 0, a = !1, o = ne) {
2696
+ const { from: s, to: i } = t || {}, { isSameDay: c, isAfter: u, isBefore: l } = o;
2697
+ let d;
2698
+ if (!s && !i)
2699
+ d = { from: e, to: n > 0 ? void 0 : e };
2700
+ else if (s && !i)
2701
+ c(s, e) ? n === 0 ? d = { from: s, to: e } : a ? d = { from: s, to: void 0 } : d = void 0 : l(e, s) ? d = { from: e, to: s } : d = { from: s, to: e };
2702
+ else if (s && i)
2703
+ if (c(s, e) && c(i, e))
2704
+ a ? d = { from: s, to: i } : d = void 0;
2705
+ else if (c(s, e))
2706
+ d = { from: s, to: n > 0 ? void 0 : e };
2707
+ else if (c(i, e))
2708
+ d = { from: e, to: n > 0 ? void 0 : e };
2709
+ else if (l(e, s))
2710
+ d = { from: e, to: i };
2711
+ else if (u(e, s))
2712
+ d = { from: s, to: e };
2713
+ else if (u(e, i))
2714
+ d = { from: s, to: e };
2715
+ else
2716
+ throw new Error("Invalid range");
2717
+ if (d != null && d.from && (d != null && d.to)) {
2718
+ const h = o.differenceInCalendarDays(d.to, d.from);
2719
+ r > 0 && h > r ? d = { from: e, to: void 0 } : n > 1 && h < n && (d = { from: e, to: void 0 });
2720
+ }
2721
+ return d;
2722
+ }
2723
+ function qo(e, t, n = ne) {
2724
+ const r = Array.isArray(t) ? t : [t];
2725
+ let a = e.from;
2726
+ const o = n.differenceInCalendarDays(e.to, e.from), s = Math.min(o, 6);
2727
+ for (let i = 0; i <= s; i++) {
2728
+ if (r.includes(a.getDay()))
2729
+ return !0;
2730
+ a = n.addDays(a, 1);
2731
+ }
2732
+ return !1;
2733
+ }
2734
+ function Tt(e, t, n = ne) {
2735
+ return ie(e, t.from, !1, n) || ie(e, t.to, !1, n) || ie(t, e.from, !1, n) || ie(t, e.to, !1, n);
2736
+ }
2737
+ function jo(e, t, n = ne) {
2738
+ const r = Array.isArray(t) ? t : [t];
2739
+ if (r.filter((i) => typeof i != "function").some((i) => typeof i == "boolean" ? i : n.isDate(i) ? ie(e, i, !1, n) : en(i, n) ? i.some((c) => ie(e, c, !1, n)) : Be(i) ? i.from && i.to ? Tt(e, { from: i.from, to: i.to }, n) : !1 : Lt(i) ? qo(e, i.dayOfWeek, n) : rt(i) ? n.isAfter(i.before, i.after) ? Tt(e, {
2740
+ from: n.addDays(i.after, 1),
2741
+ to: n.addDays(i.before, -1)
2742
+ }, n) : ce(e.from, i, n) || ce(e.to, i, n) : at(i) || ot(i) ? ce(e.from, i, n) || ce(e.to, i, n) : !1))
2743
+ return !0;
2744
+ const s = r.filter((i) => typeof i == "function");
2745
+ if (s.length) {
2746
+ let i = e.from;
2747
+ const c = n.differenceInCalendarDays(e.to, e.from);
2748
+ for (let u = 0; u <= c; u++) {
2749
+ if (s.some((l) => l(i)))
2750
+ return !0;
2751
+ i = n.addDays(i, 1);
2752
+ }
2753
+ }
2754
+ return !1;
2755
+ }
2756
+ function zo(e, t) {
2757
+ const { disabled: n, excludeDisabled: r, selected: a, required: o, onSelect: s } = e, [i, c] = Ie(a, s ? a : void 0), u = s ? a : i;
2758
+ return {
2759
+ selected: u,
2760
+ select: (h, b, m) => {
2761
+ const { min: D, max: M } = e, v = h ? Ao(h, u, D, M, o, t) : void 0;
2762
+ return r && n && (v != null && v.from) && v.to && jo({ from: v.from, to: v.to }, n, t) && (v.from = h, v.to = void 0), s || c(v), s == null || s(v, h, b, m), v;
2763
+ },
2764
+ isSelected: (h) => u && ie(u, h, !1, t)
2765
+ };
2766
+ }
2767
+ function $o(e, t) {
2768
+ const { selected: n, required: r, onSelect: a } = e, [o, s] = Ie(n, a ? n : void 0), i = a ? n : o, { isSameDay: c } = t;
2769
+ return {
2770
+ selected: i,
2771
+ select: (d, h, b) => {
2772
+ let m = d;
2773
+ return !r && i && i && c(d, i) && (m = void 0), a || s(m), a == null || a(m, d, h, b), m;
2774
+ },
2775
+ isSelected: (d) => i ? c(i, d) : !1
2776
+ };
2777
+ }
2778
+ function Go(e, t) {
2779
+ const n = $o(e, t), r = Ho(e, t), a = zo(e, t);
2780
+ switch (e.mode) {
2781
+ case "single":
2782
+ return n;
2783
+ case "multiple":
2784
+ return r;
2785
+ case "range":
2786
+ return a;
2787
+ default:
2788
+ return;
2789
+ }
2790
+ }
2791
+ function Q(e, t) {
2792
+ return e instanceof q && e.timeZone === t ? e : new q(e, t);
2793
+ }
2794
+ function ge(e, t, n) {
2795
+ return Q(e, t);
2796
+ }
2797
+ function Pt(e, t, n) {
2798
+ return typeof e == "boolean" || typeof e == "function" ? e : e instanceof Date ? ge(e, t) : Array.isArray(e) ? e.map((r) => r instanceof Date ? ge(r, t) : r) : Be(e) ? {
2799
+ ...e,
2800
+ from: e.from ? Q(e.from, t) : e.from,
2801
+ to: e.to ? Q(e.to, t) : e.to
2802
+ } : rt(e) ? {
2803
+ before: ge(e.before, t),
2804
+ after: ge(e.after, t)
2805
+ } : at(e) ? {
2806
+ after: ge(e.after, t)
2807
+ } : ot(e) ? {
2808
+ before: ge(e.before, t)
2809
+ } : e;
2810
+ }
2811
+ function Ke(e, t, n) {
2812
+ return e && (Array.isArray(e) ? e.map((r) => Pt(r, t)) : Pt(e, t));
2813
+ }
2814
+ function Ro(e) {
2815
+ var ht;
2816
+ let t = e;
2817
+ const n = t.timeZone;
2818
+ if (n && (t = {
2819
+ ...e,
2820
+ timeZone: n
2821
+ }, t.today && (t.today = Q(t.today, n)), t.month && (t.month = Q(t.month, n)), t.defaultMonth && (t.defaultMonth = Q(t.defaultMonth, n)), t.startMonth && (t.startMonth = Q(t.startMonth, n)), t.endMonth && (t.endMonth = Q(t.endMonth, n)), t.mode === "single" && t.selected ? t.selected = Q(t.selected, n) : t.mode === "multiple" && t.selected ? t.selected = (ht = t.selected) == null ? void 0 : ht.map((S) => Q(S, n)) : t.mode === "range" && t.selected && (t.selected = {
2822
+ from: t.selected.from ? Q(t.selected.from, n) : t.selected.from,
2823
+ to: t.selected.to ? Q(t.selected.to, n) : t.selected.to
2824
+ }), t.disabled !== void 0 && (t.disabled = Ke(t.disabled, n)), t.hidden !== void 0 && (t.hidden = Ke(t.hidden, n)), t.modifiers)) {
2825
+ const S = {};
2826
+ Object.keys(t.modifiers).forEach((T) => {
2827
+ var O;
2828
+ S[T] = Ke((O = t.modifiers) == null ? void 0 : O[T], n);
2829
+ }), t.modifiers = S;
2830
+ }
2831
+ const { components: r, formatters: a, labels: o, dateLib: s, locale: i, classNames: c } = he(() => {
2832
+ const S = { ...Ut, ...t.locale }, T = t.broadcastCalendar ? 1 : t.weekStartsOn, O = t.noonSafe && t.timeZone ? Do(t.timeZone, {
2833
+ weekStartsOn: T,
2834
+ locale: S
2835
+ }) : void 0, Y = t.dateLib && O ? { ...O, ...t.dateLib } : t.dateLib ?? O, z = new G({
2836
+ locale: S,
2837
+ weekStartsOn: T,
2838
+ firstWeekContainsDate: t.firstWeekContainsDate,
2839
+ useAdditionalWeekYearTokens: t.useAdditionalWeekYearTokens,
2840
+ useAdditionalDayOfYearTokens: t.useAdditionalDayOfYearTokens,
2841
+ timeZone: t.timeZone,
2842
+ numerals: t.numerals
2843
+ }, Y);
2844
+ return {
2845
+ dateLib: z,
2846
+ components: La(t.components),
2847
+ formatters: lo(t.formatters),
2848
+ labels: go(t.labels, z.options),
2849
+ locale: S,
2850
+ classNames: { ...to(), ...t.classNames }
2851
+ };
2852
+ }, [
2853
+ t.locale,
2854
+ t.broadcastCalendar,
2855
+ t.weekStartsOn,
2856
+ t.firstWeekContainsDate,
2857
+ t.useAdditionalWeekYearTokens,
2858
+ t.useAdditionalDayOfYearTokens,
2859
+ t.timeZone,
2860
+ t.numerals,
2861
+ t.dateLib,
2862
+ t.noonSafe,
2863
+ t.components,
2864
+ t.formatters,
2865
+ t.labels,
2866
+ t.classNames
2867
+ ]);
2868
+ t.today || (t = { ...t, today: s.today() });
2869
+ const { captionLayout: u, mode: l, navLayout: d, numberOfMonths: h = 1, onDayBlur: b, onDayClick: m, onDayFocus: D, onDayKeyDown: M, onDayMouseEnter: v, onDayMouseLeave: g, onNextClick: w, onPrevClick: N, showWeekNumber: W, styles: f } = t, { formatCaption: x, formatDay: E, formatMonthDropdown: A, formatWeekNumber: B, formatWeekNumberHeader: R, formatWeekdayName: ue, formatYearDropdown: re } = a, V = Eo(t, s), { days: me, months: Te, navStart: He, navEnd: Ae, previousMonth: U, nextMonth: X, goToMonth: ae } = V, qe = Ja(me, t, He, Ae, s), { isSelected: ke, select: De, selected: Pe } = Go(t, s) ?? {}, { blur: ct, focused: _e, isFocusTarget: mn, moveFocus: ut, setFocused: Ee } = Io(t, V, qe, ke ?? (() => !1), s), { labelDayButton: yn, labelGridcell: gn, labelGrid: bn, labelMonthDropdown: wn, labelNav: lt, labelPrevious: Mn, labelNext: kn, labelWeekday: Dn, labelWeekNumber: vn, labelWeekNumberHeader: On, labelYearDropdown: Wn } = o, Sn = he(() => Mo(s, t.ISOWeek, t.broadcastCalendar, t.today), [s, t.ISOWeek, t.broadcastCalendar, t.today]), dt = l !== void 0 || m !== void 0, je = I(() => {
2870
+ U && (ae(U), N == null || N(U));
2871
+ }, [U, ae, N]), ze = I(() => {
2872
+ X && (ae(X), w == null || w(X));
2873
+ }, [ae, X, w]), Nn = I((S, T) => (O) => {
2874
+ O.preventDefault(), O.stopPropagation(), Ee(S), !T.disabled && (De == null || De(S.date, T, O), m == null || m(S.date, T, O));
2875
+ }, [De, m, Ee]), xn = I((S, T) => (O) => {
2876
+ Ee(S), D == null || D(S.date, T, O);
2877
+ }, [D, Ee]), Cn = I((S, T) => (O) => {
2878
+ ct(), b == null || b(S.date, T, O);
2879
+ }, [ct, b]), pn = I((S, T) => (O) => {
2880
+ const Y = {
2881
+ ArrowLeft: [
2882
+ O.shiftKey ? "month" : "day",
2883
+ t.dir === "rtl" ? "after" : "before"
2884
+ ],
2885
+ ArrowRight: [
2886
+ O.shiftKey ? "month" : "day",
2887
+ t.dir === "rtl" ? "before" : "after"
2888
+ ],
2889
+ ArrowDown: [O.shiftKey ? "year" : "week", "after"],
2890
+ ArrowUp: [O.shiftKey ? "year" : "week", "before"],
2891
+ PageUp: [O.shiftKey ? "year" : "month", "before"],
2892
+ PageDown: [O.shiftKey ? "year" : "month", "after"],
2893
+ Home: ["startOfWeek", "before"],
2894
+ End: ["endOfWeek", "after"]
2895
+ };
2896
+ if (Y[O.key]) {
2897
+ O.preventDefault(), O.stopPropagation();
2898
+ const [z, p] = Y[O.key];
2899
+ ut(z, p);
2900
+ }
2901
+ M == null || M(S.date, T, O);
2902
+ }, [ut, M, t.dir]), Yn = I((S, T) => (O) => {
2903
+ v == null || v(S.date, T, O);
2904
+ }, [v]), Tn = I((S, T) => (O) => {
2905
+ g == null || g(S.date, T, O);
2906
+ }, [g]), Pn = I((S) => (T) => {
2907
+ const O = Number(T.target.value), Y = s.setMonth(s.startOfMonth(S), O);
2908
+ ae(Y);
2909
+ }, [s, ae]), _n = I((S) => (T) => {
2910
+ const O = Number(T.target.value), Y = s.setYear(s.startOfMonth(S), O);
2911
+ ae(Y);
2912
+ }, [s, ae]), { className: En, style: Fn } = he(() => ({
2913
+ className: [c[k.Root], t.className].filter(Boolean).join(" "),
2914
+ style: { ...f == null ? void 0 : f[k.Root], ...t.style }
2915
+ }), [c, t.className, t.style, f]), Bn = eo(t), ft = Fe(null);
2916
+ So(ft, !!t.animate, {
2917
+ classNames: c,
2918
+ months: Te,
2919
+ focused: _e,
2920
+ dateLib: s
2921
+ });
2922
+ const In = {
2923
+ dayPickerProps: t,
2924
+ selected: Pe,
2925
+ select: De,
2926
+ isSelected: ke,
2927
+ months: Te,
2928
+ nextMonth: X,
2929
+ previousMonth: U,
2930
+ goToMonth: ae,
2931
+ getModifiers: qe,
2932
+ components: r,
2933
+ classNames: c,
2934
+ styles: f,
2935
+ labels: o,
2936
+ formatters: a
2937
+ };
2938
+ return y.createElement(
2939
+ Jt.Provider,
2940
+ { value: In },
2941
+ y.createElement(
2942
+ r.Root,
2943
+ { rootRef: t.animate ? ft : void 0, className: En, style: Fn, dir: t.dir, id: t.id, lang: t.lang, nonce: t.nonce, title: t.title, role: t.role, "aria-label": t["aria-label"], "aria-labelledby": t["aria-labelledby"], ...Bn },
2944
+ y.createElement(
2945
+ r.Months,
2946
+ { className: c[k.Months], style: f == null ? void 0 : f[k.Months] },
2947
+ !t.hideNavigation && !d && y.createElement(r.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: c[k.Nav], style: f == null ? void 0 : f[k.Nav], "aria-label": lt(), onPreviousClick: je, onNextClick: ze, previousMonth: U, nextMonth: X }),
2948
+ Te.map((S, T) => y.createElement(
2949
+ r.Month,
2950
+ {
2951
+ "data-animated-month": t.animate ? "true" : void 0,
2952
+ className: c[k.Month],
2953
+ style: f == null ? void 0 : f[k.Month],
2954
+ // biome-ignore lint/suspicious/noArrayIndexKey: breaks animation
2955
+ key: T,
2956
+ displayIndex: T,
2957
+ calendarMonth: S
2958
+ },
2959
+ d === "around" && !t.hideNavigation && T === 0 && y.createElement(
2960
+ r.PreviousMonthButton,
2961
+ { type: "button", className: c[k.PreviousMonthButton], tabIndex: U ? void 0 : -1, "aria-disabled": U ? void 0 : !0, "aria-label": Mn(U), onClick: je, "data-animated-button": t.animate ? "true" : void 0 },
2962
+ y.createElement(r.Chevron, { disabled: U ? void 0 : !0, className: c[k.Chevron], orientation: t.dir === "rtl" ? "right" : "left" })
2963
+ ),
2964
+ y.createElement(r.MonthCaption, { "data-animated-caption": t.animate ? "true" : void 0, className: c[k.MonthCaption], style: f == null ? void 0 : f[k.MonthCaption], calendarMonth: S, displayIndex: T }, u != null && u.startsWith("dropdown") ? y.createElement(
2965
+ r.DropdownNav,
2966
+ { className: c[k.Dropdowns], style: f == null ? void 0 : f[k.Dropdowns] },
2967
+ (() => {
2968
+ const O = u === "dropdown" || u === "dropdown-months" ? y.createElement(r.MonthsDropdown, { key: "month", className: c[k.MonthsDropdown], "aria-label": wn(), classNames: c, components: r, disabled: !!t.disableNavigation, onChange: Pn(S.date), options: bo(S.date, He, Ae, a, s), style: f == null ? void 0 : f[k.Dropdown], value: s.getMonth(S.date) }) : y.createElement("span", { key: "month" }, A(S.date, s)), Y = u === "dropdown" || u === "dropdown-years" ? y.createElement(r.YearsDropdown, { key: "year", className: c[k.YearsDropdown], "aria-label": Wn(s.options), classNames: c, components: r, disabled: !!t.disableNavigation, onChange: _n(S.date), options: ko(He, Ae, a, s, !!t.reverseYears), style: f == null ? void 0 : f[k.Dropdown], value: s.getYear(S.date) }) : y.createElement("span", { key: "year" }, re(S.date, s));
2969
+ return s.getMonthYearOrder() === "year-first" ? [Y, O] : [O, Y];
2970
+ })(),
2971
+ y.createElement("span", { role: "status", "aria-live": "polite", style: {
2972
+ border: 0,
2973
+ clip: "rect(0 0 0 0)",
2974
+ height: "1px",
2975
+ margin: "-1px",
2976
+ overflow: "hidden",
2977
+ padding: 0,
2978
+ position: "absolute",
2979
+ width: "1px",
2980
+ whiteSpace: "nowrap",
2981
+ wordWrap: "normal"
2982
+ } }, x(S.date, s.options, s))
2983
+ ) : y.createElement(r.CaptionLabel, { className: c[k.CaptionLabel], role: "status", "aria-live": "polite" }, x(S.date, s.options, s))),
2984
+ d === "around" && !t.hideNavigation && T === h - 1 && y.createElement(
2985
+ r.NextMonthButton,
2986
+ { type: "button", className: c[k.NextMonthButton], tabIndex: X ? void 0 : -1, "aria-disabled": X ? void 0 : !0, "aria-label": kn(X), onClick: ze, "data-animated-button": t.animate ? "true" : void 0 },
2987
+ y.createElement(r.Chevron, { disabled: X ? void 0 : !0, className: c[k.Chevron], orientation: t.dir === "rtl" ? "left" : "right" })
2988
+ ),
2989
+ T === h - 1 && d === "after" && !t.hideNavigation && y.createElement(r.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: c[k.Nav], style: f == null ? void 0 : f[k.Nav], "aria-label": lt(), onPreviousClick: je, onNextClick: ze, previousMonth: U, nextMonth: X }),
2990
+ y.createElement(
2991
+ r.MonthGrid,
2992
+ { role: "grid", "aria-multiselectable": l === "multiple" || l === "range", "aria-label": bn(S.date, s.options, s) || void 0, className: c[k.MonthGrid], style: f == null ? void 0 : f[k.MonthGrid] },
2993
+ !t.hideWeekdays && y.createElement(
2994
+ r.Weekdays,
2995
+ { "data-animated-weekdays": t.animate ? "true" : void 0, className: c[k.Weekdays], style: f == null ? void 0 : f[k.Weekdays] },
2996
+ W && y.createElement(r.WeekNumberHeader, { "aria-label": On(s.options), className: c[k.WeekNumberHeader], style: f == null ? void 0 : f[k.WeekNumberHeader], scope: "col" }, R()),
2997
+ Sn.map((O) => y.createElement(r.Weekday, { "aria-label": Dn(O, s.options, s), className: c[k.Weekday], key: String(O), style: f == null ? void 0 : f[k.Weekday], scope: "col" }, ue(O, s.options, s)))
2998
+ ),
2999
+ y.createElement(r.Weeks, { "data-animated-weeks": t.animate ? "true" : void 0, className: c[k.Weeks], style: f == null ? void 0 : f[k.Weeks] }, S.weeks.map((O) => y.createElement(
3000
+ r.Week,
3001
+ { className: c[k.Week], key: O.weekNumber, style: f == null ? void 0 : f[k.Week], week: O },
3002
+ W && y.createElement(r.WeekNumber, { week: O, style: f == null ? void 0 : f[k.WeekNumber], "aria-label": vn(O.weekNumber, {
3003
+ locale: i
3004
+ }), className: c[k.WeekNumber], scope: "row", role: "rowheader" }, B(O.weekNumber, s)),
3005
+ O.days.map((Y) => {
3006
+ const { date: z } = Y, p = qe(Y);
3007
+ if (p[F.focused] = !p.hidden && !!(_e != null && _e.isEqualTo(Y)), p[J.selected] = (ke == null ? void 0 : ke(z)) || p.selected, Be(Pe)) {
3008
+ const { from: $e, to: Ge } = Pe;
3009
+ p[J.range_start] = !!($e && Ge && s.isSameDay(z, $e)), p[J.range_end] = !!($e && Ge && s.isSameDay(z, Ge)), p[J.range_middle] = ie(Pe, z, !0, s);
3010
+ }
3011
+ const Hn = wo(p, f, t.modifiersStyles), An = Za(p, c, t.modifiersClassNames), qn = !dt && !p.hidden ? gn(z, p, s.options, s) : void 0;
3012
+ return y.createElement(r.Day, { key: `${Y.isoDate}_${Y.displayMonthId}`, day: Y, modifiers: p, className: An.join(" "), style: Hn, role: "gridcell", "aria-selected": p.selected || void 0, "aria-label": qn, "data-day": Y.isoDate, "data-month": Y.outside ? Y.dateMonthId : void 0, "data-selected": p.selected || void 0, "data-disabled": p.disabled || void 0, "data-hidden": p.hidden || void 0, "data-outside": Y.outside || void 0, "data-focused": p.focused || void 0, "data-today": p.today || void 0 }, !p.hidden && dt ? y.createElement(r.DayButton, { className: c[k.DayButton], style: f == null ? void 0 : f[k.DayButton], type: "button", day: Y, modifiers: p, disabled: !p.focused && p.disabled || void 0, "aria-disabled": p.focused && p.disabled || void 0, tabIndex: mn(Y) ? 0 : -1, "aria-label": yn(z, p, s.options, s), onClick: Nn(Y, p), onBlur: Cn(Y, p), onFocus: xn(Y, p), onKeyDown: pn(Y, p), onMouseEnter: Yn(Y, p), onMouseLeave: Tn(Y, p) }, E(z, s.options, s)) : !p.hidden && E(Y.date, s.options, s));
3013
+ })
3014
+ )))
3015
+ )
3016
+ ))
3017
+ ),
3018
+ t.footer && y.createElement(r.Footer, { className: c[k.Footer], style: f == null ? void 0 : f[k.Footer], role: "status", "aria-live": "polite" }, t.footer)
3019
+ )
3020
+ );
3021
+ }
3022
+ const is = "DD.MM.YYYY", Vo = ({ calendarMonth: e, setMonth: t }) => {
3023
+ const { t: n } = Le(), r = j(e.date), [a, o] = ee(!1), [s, i] = ee(!1), [c] = ee(20), [u, l] = ee(0), d = I(
3024
+ (b) => {
3025
+ o(!1), t(j(r).month(parseInt(b)).toDate());
3026
+ },
3027
+ [r, t]
3028
+ ), h = I(
3029
+ (b) => {
3030
+ i(!1), t(j(r).year(parseInt(b)).toDate());
3031
+ },
3032
+ [r, t]
3033
+ );
3034
+ return /* @__PURE__ */ se("div", { className: "z-10 mx-auto flex justify-center gap-1", children: [
3035
+ /* @__PURE__ */ C(
3036
+ oe,
3037
+ {
3038
+ size: "xs",
3039
+ variant: "secondary",
3040
+ className: "max-h-6 max-w-[60px]",
3041
+ onClick: () => o(!0),
3042
+ children: n(r.format("MMM"))
3043
+ }
3044
+ ),
3045
+ a && /* @__PURE__ */ se(
3046
+ "div",
3047
+ {
3048
+ className: "bg-bg absolute -inset-1 flex flex-col items-center gap-2",
3049
+ children: [
3050
+ /* @__PURE__ */ C("div", { className: "flex items-center justify-between gap-2", children: /* @__PURE__ */ C("span", { children: n("Month") }) }),
3051
+ /* @__PURE__ */ C("div", { className: "grid grid-cols-3 gap-2", children: Array.from({ length: 12 }, (b, m) => /* @__PURE__ */ C(
3052
+ oe,
3053
+ {
3054
+ onClick: () => d(m.toString()),
3055
+ size: "sm",
3056
+ variant: m === r.month() ? "default" : "secondary",
3057
+ children: n(j().month(m).format("MMMM"))
3058
+ },
3059
+ m
3060
+ )) })
3061
+ ]
3062
+ }
3063
+ ),
3064
+ /* @__PURE__ */ C(
3065
+ oe,
3066
+ {
3067
+ size: "xs",
3068
+ variant: "secondary",
3069
+ className: "max-h-6 max-w-[60px]",
3070
+ onClick: () => i(!0),
3071
+ children: r.format("YYYY")
3072
+ }
3073
+ ),
3074
+ s && /* @__PURE__ */ se("div", { className: "bg-bg absolute -inset-1 flex flex-col gap-2", children: [
3075
+ /* @__PURE__ */ se("div", { className: "flex items-center justify-between gap-2", children: [
3076
+ /* @__PURE__ */ C(
3077
+ oe,
3078
+ {
3079
+ size: "xs",
3080
+ variant: "secondary",
3081
+ onClick: () => l(u - 1),
3082
+ children: /* @__PURE__ */ C(_t, {})
3083
+ }
3084
+ ),
3085
+ /* @__PURE__ */ C("span", { children: n("Year") }),
3086
+ /* @__PURE__ */ C(
3087
+ oe,
3088
+ {
3089
+ size: "xs",
3090
+ variant: "secondary",
3091
+ onClick: () => l(u + 1),
3092
+ children: /* @__PURE__ */ C(Et, {})
3093
+ }
3094
+ )
3095
+ ] }),
3096
+ /* @__PURE__ */ C("div", { className: "grid w-full grid-cols-4 gap-2", children: Array.from({ length: c }, (b, m) => {
3097
+ const D = Math.floor(r.year() / c) * c + u * c + m;
3098
+ return /* @__PURE__ */ C(
3099
+ oe,
3100
+ {
3101
+ onClick: () => h(D.toString()),
3102
+ size: "xs",
3103
+ variant: D === r.year() ? "default" : "secondary",
3104
+ children: j().year(D).format("YYYY")
3105
+ },
3106
+ m
3107
+ );
3108
+ }) })
3109
+ ] })
3110
+ ] });
3111
+ };
3112
+ function Qo({
3113
+ className: e,
3114
+ classNames: t,
3115
+ showOutsideDays: n = !0,
3116
+ selectedToDate: r,
3117
+ selectedFromDate: a,
3118
+ format: o,
3119
+ ...s
3120
+ }) {
3121
+ const { t: i } = Le(), [c, u] = ee(j().startOf("month").toDate()), l = I(
3122
+ (g) => /* @__PURE__ */ C(
3123
+ Zt,
3124
+ {
3125
+ ...g,
3126
+ className: "text-body-xs-black text-tertiary dark:text-primary",
3127
+ children: i(g.children)
3128
+ }
3129
+ ),
3130
+ [i]
3131
+ ), d = I(
3132
+ (g) => /* @__PURE__ */ C(
3133
+ Vo,
3134
+ {
3135
+ calendarMonth: g.calendarMonth,
3136
+ setMonth: u
3137
+ }
3138
+ ),
3139
+ []
3140
+ // Fixed dependency array
3141
+ ), h = I(
3142
+ (g) => {
3143
+ const { day: w, modifiers: N, ...W } = g;
3144
+ return /* @__PURE__ */ C(
3145
+ Kt,
3146
+ {
3147
+ day: w,
3148
+ modifiers: N,
3149
+ ...W,
3150
+ className: Rn(
3151
+ "size-7 cursor-pointer rounded-sm",
3152
+ (N.today || a && a <= w.date && r && r >= w.date) && "bg-item-tertiary text-item-primary",
3153
+ N.selected && "bg-item-primary dark:text-primary text-white",
3154
+ N.disabled && "pointer-events-none opacity-50"
3155
+ )
3156
+ }
3157
+ );
3158
+ },
3159
+ [a, r]
3160
+ ), b = I(
3161
+ () => u((g) => j(g).subtract(1, "M").toDate()),
3162
+ []
3163
+ ), m = I(
3164
+ () => u((g) => j(g).add(1, "M").toDate()),
3165
+ []
3166
+ ), D = I(
3167
+ ({ className: g, ...w }) => /* @__PURE__ */ C(
3168
+ oe,
3169
+ {
3170
+ variant: "ghost",
3171
+ className: L("size-6", g),
3172
+ ...w,
3173
+ onClick: b,
3174
+ children: /* @__PURE__ */ C(_t, {})
3175
+ }
3176
+ ),
3177
+ [b]
3178
+ ), M = I(
3179
+ ({ className: g, ...w }) => /* @__PURE__ */ C(
3180
+ oe,
3181
+ {
3182
+ variant: "ghost",
3183
+ className: L("size-6", g),
3184
+ ...w,
3185
+ onClick: m,
3186
+ children: /* @__PURE__ */ C(Et, {})
3187
+ }
3188
+ ),
3189
+ [m]
3190
+ ), v = he(
3191
+ () => ({
3192
+ Weekday: l,
3193
+ DayButton: h,
3194
+ MonthCaption: d,
3195
+ NextMonthButton: M,
3196
+ PreviousMonthButton: D
3197
+ }),
3198
+ [
3199
+ l,
3200
+ h,
3201
+ d,
3202
+ M,
3203
+ D
3204
+ ]
3205
+ );
3206
+ return Ze(() => {
3207
+ const g = s.selected;
3208
+ u(g ? o ? j(g, o).startOf("month").toDate() : j(g).startOf("month").toDate() : j().startOf("month").toDate());
3209
+ }, [s.selected, o]), /* @__PURE__ */ C(
3210
+ Ro,
3211
+ {
3212
+ showOutsideDays: n,
3213
+ className: L("pointer-events-auto relative p-3", e),
3214
+ classNames: {
3215
+ years_dropdown: "flex",
3216
+ months: "flex relative gap-2",
3217
+ month: "flex flex-col gap-4 text-center",
3218
+ caption: "flex justify-center pt-1 relative items-center w-full",
3219
+ caption_label: "text-sm font-medium",
3220
+ nav: "flex items-center gap-1 w-full absolute justify-between border-b pb-2",
3221
+ nav_button: L(
3222
+ mt({ variant: "ghost" }),
3223
+ "size-7 bg-transparent p-0 opacity-50 hover:opacity-100"
3224
+ ),
3225
+ nav_button_previous: "absolute left-1",
3226
+ nav_button_next: "absolute right-1",
3227
+ table: "w-full border-collapse space-x-1",
3228
+ head_row: "flex",
3229
+ head_cell: "text-neutral-500 rounded-md w-8 font-normal text-[0.8rem] dark:text-neutral-400 ",
3230
+ row: "flex w-full mt-2",
3231
+ cell: L(
3232
+ "relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-neutral-100 [&:has([aria-selected].day-range-end)]:rounded-r-md dark:[&:has([aria-selected])]:bg-neutral-800"
3233
+ ),
3234
+ day: L(
3235
+ mt({ variant: "ghost" }),
3236
+ "table-cell size-8 p-0 font-normal aria-selected:opacity-100"
3237
+ ),
3238
+ day_range_start: "day-range-start aria-selected:bg-neutral-900 aria-selected:text-neutral-50 dark:aria-selected:bg-neutral-50 dark:aria-selected:text-neutral-900",
3239
+ day_range_end: "day-range-end aria-selected:bg-neutral-900 aria-selected:text-neutral-50 dark:aria-selected:bg-neutral-50 dark:aria-selected:text-neutral-900",
3240
+ day_selected: "bg-neutral-900 text-neutral-50 hover:bg-neutral-900 hover:text-neutral-50 focus:bg-neutral-900 focus:text-neutral-50 dark:bg-neutral-50 dark:text-neutral-900 dark:hover:bg-neutral-50 dark:hover:text-neutral-900 dark:focus:bg-neutral-50 dark:focus:text-neutral-900",
3241
+ day_today: "bg-neutral-100 text-red-900 dark:bg-neutral-800 dark:text-neutral-50",
3242
+ day_outside: "day-outside text-neutral-500 aria-selected:text-neutral-500 dark:text-neutral-400 dark:aria-selected:text-neutral-400",
3243
+ day_disabled: "text-neutral-500 opacity-50 dark:text-neutral-400",
3244
+ day_range_middle: "aria-selected:bg-neutral-100 aria-selected:text-neutral-900 dark:aria-selected:bg-neutral-800 dark:aria-selected:text-neutral-50",
3245
+ day_hidden: "invisible",
3246
+ ...t
3247
+ },
3248
+ components: v,
3249
+ ...s,
3250
+ mode: "single",
3251
+ onSelect: (g) => {
3252
+ g && s.onSelect && (o ? s.onSelect(j(g).format(o)) : s.onSelect(g));
3253
+ },
3254
+ selected: j(s.selected, o).toDate(),
3255
+ month: c
3256
+ }
3257
+ );
3258
+ }
3259
+ function cs() {
3260
+ const { t: e } = Le(), [t, n] = ee(/* @__PURE__ */ new Date());
3261
+ return /* @__PURE__ */ se(Vn, { children: [
3262
+ /* @__PURE__ */ C(Qn, { asChild: !0, children: /* @__PURE__ */ se(
3263
+ oe,
3264
+ {
3265
+ variant: "tertiary",
3266
+ className: L(
3267
+ "w-[280px] justify-start text-left font-normal",
3268
+ !t && "text-muted-foreground"
3269
+ ),
3270
+ children: [
3271
+ /* @__PURE__ */ C(Zn, { className: "mr-2 h-4 w-4" }),
3272
+ t ? j(t).format("DD-MM-YYYY") : /* @__PURE__ */ C("span", { children: e("Pick a date") })
3273
+ ]
3274
+ }
3275
+ ) }),
3276
+ /* @__PURE__ */ C(Un, { className: "w-auto p-0", children: /* @__PURE__ */ C(
3277
+ Qo,
3278
+ {
3279
+ mode: "single",
3280
+ selected: t,
3281
+ onSelect: (r) => n(r)
3282
+ }
3283
+ ) })
3284
+ ] });
3285
+ }
3286
+ const Uo = "HH", Xo = "mm", us = `${Uo}:${Xo}`, Ko = Gn(
3287
+ ({ value: e, onChange: t, disabled: n = !1, className: r, error: a, icon: o, ...s }, i) => {
3288
+ const c = (m) => {
3289
+ if (typeof m == "string") {
3290
+ const D = /^([0-1]?[0-9]|2[0-3]):([0-5][0-9])$/, M = m.match(D);
3291
+ if (M)
3292
+ return {
3293
+ hour: M[1].padStart(2, "0"),
3294
+ minute: M[2]
3295
+ };
3296
+ }
3297
+ }, [u, l] = ee({
3298
+ hour: "",
3299
+ minute: ""
3300
+ });
3301
+ Ze(() => {
3302
+ const m = c(e);
3303
+ m && l(m);
3304
+ }, [e]);
3305
+ const d = (m, D) => {
3306
+ const M = { ...u, [D]: m };
3307
+ l(M);
3308
+ const v = `${M.hour}:${M.minute}`;
3309
+ t && t(v);
3310
+ }, h = he(
3311
+ () => Array.from({ length: 24 }, (m, D) => {
3312
+ const M = String(D).padStart(2, "0");
3313
+ return { value: M, label: M };
3314
+ }),
3315
+ []
3316
+ ), b = he(
3317
+ () => Array.from({ length: 60 }, (m, D) => {
3318
+ const M = String(D).padStart(2, "0");
3319
+ return { value: M, label: M };
3320
+ }),
3321
+ []
3322
+ );
3323
+ return /* @__PURE__ */ se(
3324
+ "div",
3325
+ {
3326
+ ...s,
3327
+ className: L("flex items-center gap-2", r),
3328
+ ref: i,
3329
+ children: [
3330
+ /* @__PURE__ */ C(
3331
+ "span",
3332
+ {
3333
+ className: L(
3334
+ "shrink-0 [&>svg]:size-5",
3335
+ a && "[&>svg]:text-item-destructive"
3336
+ ),
3337
+ children: o || /* @__PURE__ */ C(Xn, {})
3338
+ }
3339
+ ),
3340
+ /* @__PURE__ */ se(
3341
+ yt,
3342
+ {
3343
+ onValueChange: (m) => d(`${m}`, "hour"),
3344
+ value: u.hour,
3345
+ disabled: n,
3346
+ children: [
3347
+ /* @__PURE__ */ C(
3348
+ gt,
3349
+ {
3350
+ className: "grow",
3351
+ variant: a ? "failure" : "default",
3352
+ children: /* @__PURE__ */ C(bt, { placeholder: "HH", children: u.hour })
3353
+ }
3354
+ ),
3355
+ /* @__PURE__ */ C(wt, { className: "max-h-96 max-w-10", children: h.map((m) => /* @__PURE__ */ C(Mt, { value: m.value, children: m.label }, m.value)) })
3356
+ ]
3357
+ }
3358
+ ),
3359
+ /* @__PURE__ */ C("span", { className: L("text-lg", a && "text-item-destructive"), children: ":" }),
3360
+ /* @__PURE__ */ se(
3361
+ yt,
3362
+ {
3363
+ onValueChange: (m) => d(`${m}`, "minute"),
3364
+ value: u.minute,
3365
+ disabled: n,
3366
+ children: [
3367
+ /* @__PURE__ */ C(
3368
+ gt,
3369
+ {
3370
+ className: "grow",
3371
+ variant: a ? "failure" : "default",
3372
+ children: /* @__PURE__ */ C(bt, { placeholder: "mm", children: u.minute })
3373
+ }
3374
+ ),
3375
+ /* @__PURE__ */ C(wt, { className: "max-h-96 max-w-10", children: b.map((m) => /* @__PURE__ */ C(Mt, { value: m.value, children: m.label }, m.value)) })
3376
+ ]
3377
+ }
3378
+ )
3379
+ ]
3380
+ }
3381
+ );
3382
+ }
3383
+ );
3384
+ Ko.displayName = "TimePicker";
3385
+ export {
3386
+ Qo as C,
3387
+ is as D,
3388
+ Uo as H,
3389
+ Xo as M,
3390
+ us as T,
3391
+ cs as a,
3392
+ Ko as b
3393
+ };
3394
+ //# sourceMappingURL=timepicker-CVkum2UK.es.js.map