@alfadocs/ui-kit 0.31.0 → 0.31.3

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 (291) hide show
  1. package/dist/_chunks/{accordion-CNcodXuO.js → accordion-bSU21uTV.js} +3 -3
  2. package/dist/_chunks/{agenda-card-DO9_yogb.js → agenda-card-UJA6Arbs.js} +3 -3
  3. package/dist/_chunks/{agenda-tray-WLbfMip6.js → agenda-tray-1fAxNOMz.js} +4 -4
  4. package/dist/_chunks/{ai-prompt-input-BXlwNnWe.js → ai-prompt-input-C6sCr1Vi.js} +11 -10
  5. package/dist/_chunks/{alia-sidebar-C-232sD7.js → alia-sidebar-BEoMl6UL.js} +9 -9
  6. package/dist/_chunks/ar-CEpIJtcO.js +399 -0
  7. package/dist/_chunks/{audio-recorder-DL800PE_.js → audio-recorder-C1rhKhSN.js} +114 -114
  8. package/dist/_chunks/audio-visualiser-l6zPd0AG.js +162 -0
  9. package/dist/_chunks/{autocomplete-CUh0f7Dj.js → autocomplete-DIgdhCGJ.js} +2 -2
  10. package/dist/_chunks/{avatar-D_H4emLo.js → avatar-BNQNhoyL.js} +19 -18
  11. package/dist/_chunks/{badge-CIjQ1Us1.js → badge-CptERaHx.js} +2 -2
  12. package/dist/_chunks/{booking-Bhk9IYm3.js → booking-A4o9xI2n.js} +160 -149
  13. package/dist/_chunks/{breadcrumb--YI7lcHA.js → breadcrumb-CLlhx7qo.js} +2 -2
  14. package/dist/_chunks/{button-group-Bh2g_Ng-.js → button-group-Ciq6J4IW.js} +15 -14
  15. package/dist/_chunks/{calendar-WWNx448i.js → calendar-YHFknAGv.js} +22 -22
  16. package/dist/_chunks/{carousel.agent-C2Icc9_T.js → carousel.agent-DrX96W-1.js} +2 -2
  17. package/dist/_chunks/{chart-BLvFl169.js → chart-DLkVn_ex.js} +2 -2
  18. package/dist/_chunks/{chat-container-izziXViv.js → chat-container-ogB4OskO.js} +24 -23
  19. package/dist/_chunks/{chat-input-cyl_y9bh.js → chat-input-CQe7nR_v.js} +132 -118
  20. package/dist/_chunks/{chat-message-fg221-yx.js → chat-message-D53_fH2w.js} +2 -2
  21. package/dist/_chunks/{checkbox-Dgp_cfUr.js → checkbox-DRcOdmXv.js} +3 -3
  22. package/dist/_chunks/{checkbox-group-eVowqKcT.js → checkbox-group-CpUwlHug.js} +3 -3
  23. package/dist/_chunks/{collapsible-hHiyZp0b.js → collapsible-CERONory.js} +2 -2
  24. package/dist/_chunks/{color-picker-Bm-gzpsh.js → color-picker-9tL7pz5y.js} +192 -181
  25. package/dist/_chunks/{combobox-Da9eq00i.js → combobox-BC-DFx8G.js} +31 -30
  26. package/dist/_chunks/{command-palette-11BieSNq.js → command-palette-BiPAAno-.js} +125 -123
  27. package/dist/_chunks/{copy-field-BAF4mt9h.js → copy-field-CCq7j6Zc.js} +2 -2
  28. package/dist/_chunks/{date-picker-D0Ry1dMz.js → date-picker-B94HAV4A.js} +4 -4
  29. package/dist/_chunks/{date-range-picker-DYgHzMOo.js → date-range-picker-D4dgDlLU.js} +73 -73
  30. package/dist/_chunks/{date-time-picker-CGmGtcyc.js → date-time-picker-D1GEzf8p.js} +5 -5
  31. package/dist/_chunks/de-Dfbeau59.js +477 -0
  32. package/dist/_chunks/{description-list-CWjnaDGn.js → description-list-BEbK2g93.js} +2 -2
  33. package/dist/_chunks/{dialog-C-lTGVkB.js → dialog-Cee13rHU.js} +3 -3
  34. package/dist/_chunks/{dropdown-menu-DZxwF23X.js → dropdown-menu-BC5ZdOMo.js} +3 -3
  35. package/dist/_chunks/{editable-currency-cell-renderer-Od3Q-Y8J.js → editable-currency-cell-renderer-BpicmolK.js} +314 -317
  36. package/dist/_chunks/el-Dro3J7CP.js +373 -0
  37. package/dist/_chunks/{email-input-DvJ_kPKL.js → email-input-lQivsFrw.js} +3 -3
  38. package/dist/_chunks/es-Dvg8u70B.js +373 -0
  39. package/dist/_chunks/{file-upload-DxAQprcU.js → file-upload-CdozCPct.js} +226 -233
  40. package/dist/_chunks/fr-VOGjBSPP.js +338 -0
  41. package/dist/_chunks/{freemium-paywall-B9c8Ylww.js → freemium-paywall-D1N02Oam.js} +4 -4
  42. package/dist/_chunks/{header-DDj7uGD-.js → header-CTZWX-tm.js} +2 -2
  43. package/dist/_chunks/hi-BSDxWU_y.js +433 -0
  44. package/dist/_chunks/{icon-button-DPEqBKBQ.js → icon-button-CKEOrN37.js} +2 -2
  45. package/dist/_chunks/{icon-button-group-DeV3FpNY.js → icon-button-group-C48khLE0.js} +23 -22
  46. package/dist/_chunks/{isSameDay-DHG8Xade.js → isSameDay-DUEiAT0G.js} +2 -2
  47. package/dist/_chunks/isSameWeek-Dfzu29cW.js +14 -0
  48. package/dist/_chunks/it-CuonvcI_.js +401 -0
  49. package/dist/_chunks/ja-DO57gIOT.js +366 -0
  50. package/dist/_chunks/{key-value-pair-BvDY3zuc.js → key-value-pair-C8DaR3Xs.js} +2 -2
  51. package/dist/_chunks/{list-BdvDctBz.js → list-BOwqwy03.js} +44 -43
  52. package/dist/_chunks/{locale-picker-CY89MChR.js → locale-picker-D99UyZVJ.js} +4 -4
  53. package/dist/_chunks/{map-view-DyB8tr6c.js → map-view-WEWqXzof.js} +569 -557
  54. package/dist/_chunks/{message-card-D6iyPacd.js → message-card-BbRhZkDI.js} +3 -3
  55. package/dist/_chunks/{message-tray-Bh-0ra-Y.js → message-tray-B762TKuv.js} +11 -10
  56. package/dist/_chunks/{multi-select-dSe6Xtc4.js → multi-select-DOLO3K_z.js} +26 -25
  57. package/dist/_chunks/{navigation-menu-CyS1fBJ7.js → navigation-menu-C6lBYVv9.js} +3 -3
  58. package/dist/_chunks/nl-DjPaaWaW.js +326 -0
  59. package/dist/_chunks/{notification-card-vaMaA7Wa.js → notification-card-DMdO4g54.js} +2 -2
  60. package/dist/_chunks/{notification-tray-Cnum6LwM.js → notification-tray-Dl3FTleW.js} +17 -16
  61. package/dist/_chunks/{number-input-BZXu6bPY.js → number-input-Dj5L3pXK.js} +2 -2
  62. package/dist/_chunks/{otp-input-BDF_iNpa.js → otp-input-BEg_sn8A.js} +2 -2
  63. package/dist/_chunks/{pagination-BWaXF7W0.js → pagination-DQOgnxxw.js} +2 -2
  64. package/dist/_chunks/{parseISO-Dk4xa7q6.js → parseISO-DEpUNwxZ.js} +2 -2
  65. package/dist/_chunks/{patient-search-ZpHN-pgJ.js → patient-search-hFiYbqcl.js} +8 -8
  66. package/dist/_chunks/{patient-shell-CYaNkbA1.js → patient-shell-CDvMw_Nk.js} +6 -6
  67. package/dist/_chunks/{payment-form-Ds3rxvad.js → payment-form-D5rgnZu7.js} +2 -2
  68. package/dist/_chunks/{pdf-viewer-CIuaocnq.js → pdf-viewer-DvtEHcEP.js} +347 -320
  69. package/dist/_chunks/{phone-input-DKSHX7NQ.js → phone-input-DfZbPPvh.js} +217 -201
  70. package/dist/_chunks/pl-Cl4lOx2N.js +514 -0
  71. package/dist/_chunks/{popover-BfHSBEKq.js → popover-Devce-tT.js} +3 -3
  72. package/dist/_chunks/practice-results-RPL64j8E.js +1582 -0
  73. package/dist/_chunks/{privacy-lock-C6Ra5m3p.js → privacy-lock-DD-wHxBg.js} +3 -3
  74. package/dist/_chunks/{progress-B-PSO5OS.js → progress-kzIRcdaq.js} +11 -10
  75. package/dist/_chunks/pt-D7qO5CzD.js +370 -0
  76. package/dist/_chunks/{public-footer.agent-Bc99tE5Z.js → public-footer.agent-Bh0rnx4i.js} +21 -14
  77. package/dist/_chunks/{public-header.agent-B-B0WDAi.js → public-header.agent-B2dDg2_d.js} +3 -3
  78. package/dist/_chunks/{radio-i4ogu3cq.js → radio-TWf9Q-mp.js} +2 -2
  79. package/dist/_chunks/{radio-group-CTlGc36r.js → radio-group-BcF92GEF.js} +4 -4
  80. package/dist/_chunks/{react-day-picker-D3yzgvDB.js → react-day-picker-DsjfS7uI.js} +662 -615
  81. package/dist/_chunks/recaptcha-widget-CFYyLSEX.js +221 -0
  82. package/dist/_chunks/registry-nPAVE19X.js +21 -0
  83. package/dist/_chunks/{resizable-COV-cnth.js → resizable-3vzqDlg6.js} +29 -28
  84. package/dist/_chunks/{reviews-panel-bKEUKSic.js → reviews-panel-yanuBZs-.js} +4 -4
  85. package/dist/_chunks/{rich-text-editor-J-wAz9eN.js → rich-text-editor-CHmr9Bz8.js} +2 -2
  86. package/dist/_chunks/ro-CP2-VJ_O.js +361 -0
  87. package/dist/_chunks/ru-RPn9_Lpq.js +561 -0
  88. package/dist/_chunks/{scroll-area-DEDU-lp-.js → scroll-area-BWqCkEGz.js} +2 -2
  89. package/dist/_chunks/{search-bar-BRMW1-WG.js → search-bar-CP6wUJFY.js} +3 -3
  90. package/dist/_chunks/{search-input-CIA6pPfn.js → search-input-C1C3jQpD.js} +24 -23
  91. package/dist/_chunks/{select-C92AT_OZ.js → select-hsCaJSX3.js} +3 -3
  92. package/dist/_chunks/{sheet-D8Yl0nKR.js → sheet-BV-yuLE2.js} +3 -3
  93. package/dist/_chunks/{sidebar-DkyC6GvS.js → sidebar-BbR8f6oe.js} +3 -3
  94. package/dist/_chunks/{signature-capture-DjMlFOzS.js → signature-capture-C-fF71xI.js} +213 -205
  95. package/dist/_chunks/{slider-CfEzeseL.js → slider-BHWzXdjt.js} +3 -3
  96. package/dist/_chunks/{slot-grid-Q94gVmhn.js → slot-grid-Dz13dH82.js} +4 -4
  97. package/dist/_chunks/{sparkline-B5Ms55PZ.js → sparkline-DEROcSl0.js} +2 -2
  98. package/dist/_chunks/sq-AQvefouo.js +355 -0
  99. package/dist/_chunks/{stepper-progress-jFY8BSf7.js → stepper-progress-DDjq5nei.js} +16 -15
  100. package/dist/_chunks/streaming-text-GH07yIYh.js +127 -0
  101. package/dist/_chunks/sv-zkx9eBtD.js +376 -0
  102. package/dist/_chunks/{switch-D916VW86.js → switch-BJ6HD3Mn.js} +2 -2
  103. package/dist/_chunks/{tabs-aEQfQV3x.js → tabs-BpPYVme_.js} +4 -4
  104. package/dist/_chunks/{tag-bBPAvXyh.js → tag-CyoaEmf_.js} +2 -2
  105. package/dist/_chunks/{task-tray-6NlryfMJ.js → task-tray-DRK0b0Qb.js} +3 -3
  106. package/dist/_chunks/{text-area-D5GAe8pV.js → text-area-BIx0tZ05.js} +27 -26
  107. package/dist/_chunks/{text-input-CakysYnD.js → text-input-BaClJL8Y.js} +2 -2
  108. package/dist/_chunks/{theme-toggle-JoeMs_ws.js → theme-toggle-DpC28kt5.js} +6 -6
  109. package/dist/_chunks/{time-picker-DeVZkIY2.js → time-picker-B5umYwfv.js} +2 -2
  110. package/dist/_chunks/{timeline-CR7HjZCK.js → timeline-D0Wo7v_o.js} +3 -3
  111. package/dist/_chunks/{toast.agent-DVpKt38p.js → toast.agent-WHHfw5VX.js} +322 -320
  112. package/dist/_chunks/{tooltip-ClJd0ciy.js → tooltip-DvmfrNvB.js} +29 -20
  113. package/dist/_chunks/{tooth-scheme-3mITSXiZ.js → tooth-scheme-CxlsLjfN.js} +2 -2
  114. package/dist/_chunks/tr-Dmr412Ac.js +378 -0
  115. package/dist/_chunks/{transcript-panel-QUQ9XJmf.js → transcript-panel-DyhTpAP7.js} +21 -20
  116. package/dist/_chunks/{use-direction-D6rvvG9G.js → use-direction-Dp8h70PP.js} +7 -6
  117. package/dist/_chunks/use-isomorphic-layout-effect-BGfaCOP1.js +6 -0
  118. package/dist/_chunks/use-media-query-CcAx5SMM.js +16 -0
  119. package/dist/_chunks/{use-password-requirements-E0sSfx5X.js → use-password-requirements-DsgduV1x.js} +3 -3
  120. package/dist/_chunks/use-scroll-to-first-error-4Za-u5Nw.js +43 -0
  121. package/dist/_chunks/{workflow-map-DlWBJJBt.js → workflow-map-BSvQS3be.js} +6 -6
  122. package/dist/_chunks/zh-CN-DxVt64Zk.js +388 -0
  123. package/dist/agent/registry.d.ts +1 -6
  124. package/dist/agent-catalog.json +1 -1
  125. package/dist/components/_shared/date-locale.d.ts +7 -2
  126. package/dist/components/_shared/index.d.ts +1 -1
  127. package/dist/components/accordion/index.js +1 -1
  128. package/dist/components/agenda-card/index.js +1 -1
  129. package/dist/components/agenda-tray/index.js +1 -1
  130. package/dist/components/ai-prompt-input/index.js +1 -1
  131. package/dist/components/audio-recorder/index.js +1 -1
  132. package/dist/components/audio-visualiser/index.js +1 -1
  133. package/dist/components/autocomplete/index.js +1 -1
  134. package/dist/components/avatar/index.js +1 -1
  135. package/dist/components/badge/index.js +1 -1
  136. package/dist/components/booking/index.js +1 -1
  137. package/dist/components/breadcrumb/index.js +1 -1
  138. package/dist/components/button/index.js +1 -1
  139. package/dist/components/button-group/index.js +1 -1
  140. package/dist/components/calendar/index.js +1 -1
  141. package/dist/components/carousel/index.js +1 -1
  142. package/dist/components/chart/index.js +1 -1
  143. package/dist/components/chat-container/index.js +1 -1
  144. package/dist/components/chat-input/index.js +1 -1
  145. package/dist/components/chat-message/index.js +1 -1
  146. package/dist/components/checkbox/index.js +1 -1
  147. package/dist/components/checkbox-group/index.js +1 -1
  148. package/dist/components/collapsible/index.js +1 -1
  149. package/dist/components/color-picker/index.js +1 -1
  150. package/dist/components/combobox/index.js +1 -1
  151. package/dist/components/command-palette/index.js +1 -1
  152. package/dist/components/copy-field/index.js +1 -1
  153. package/dist/components/data-table/index.js +1 -1
  154. package/dist/components/date-picker/index.js +1 -1
  155. package/dist/components/date-range-picker/index.js +1 -1
  156. package/dist/components/date-time-picker/index.js +1 -1
  157. package/dist/components/description-list/index.js +1 -1
  158. package/dist/components/dialog/index.js +1 -1
  159. package/dist/components/dropdown-menu/index.js +1 -1
  160. package/dist/components/email-input/index.js +1 -1
  161. package/dist/components/file-upload/index.js +1 -1
  162. package/dist/components/freemium-paywall/index.js +1 -1
  163. package/dist/components/header/index.js +1 -1
  164. package/dist/components/header-settings/index.js +6 -6
  165. package/dist/components/icon-button/index.js +1 -1
  166. package/dist/components/icon-button-group/index.js +1 -1
  167. package/dist/components/key-value-pair/index.js +1 -1
  168. package/dist/components/list/index.js +1 -1
  169. package/dist/components/locale-picker/index.js +1 -1
  170. package/dist/components/map-view/index.js +1 -1
  171. package/dist/components/map-view/map-view.d.ts +10 -0
  172. package/dist/components/message-card/index.js +1 -1
  173. package/dist/components/message-tray/index.js +1 -1
  174. package/dist/components/multi-select/index.js +1 -1
  175. package/dist/components/navigation-menu/index.js +1 -1
  176. package/dist/components/notification-card/index.js +1 -1
  177. package/dist/components/notification-tray/index.js +1 -1
  178. package/dist/components/number-input/index.js +1 -1
  179. package/dist/components/otp-input/index.js +1 -1
  180. package/dist/components/pagination/index.js +1 -1
  181. package/dist/components/password-input/index.js +1 -1
  182. package/dist/components/patient-search/index.js +1 -1
  183. package/dist/components/payment-form/index.js +1 -1
  184. package/dist/components/pdf-viewer/index.js +1 -1
  185. package/dist/components/phone-input/index.js +1 -1
  186. package/dist/components/popover/index.js +1 -1
  187. package/dist/components/practice-results/index.js +1 -1
  188. package/dist/components/practice-results/practice-results.d.ts +23 -1
  189. package/dist/components/privacy-lock/index.js +1 -1
  190. package/dist/components/progress/index.js +1 -1
  191. package/dist/components/public-footer/index.js +1 -1
  192. package/dist/components/public-header/index.js +1 -1
  193. package/dist/components/radio/index.js +1 -1
  194. package/dist/components/radio-group/index.js +2 -2
  195. package/dist/components/recaptcha-widget/index.js +1 -1
  196. package/dist/components/resizable/index.js +1 -1
  197. package/dist/components/reviews-panel/index.js +1 -1
  198. package/dist/components/rich-text-editor/index.js +1 -1
  199. package/dist/components/scroll-area/index.js +1 -1
  200. package/dist/components/search-bar/index.js +1 -1
  201. package/dist/components/search-input/index.js +1 -1
  202. package/dist/components/select/index.js +1 -1
  203. package/dist/components/sheet/index.js +1 -1
  204. package/dist/components/sidebar/index.js +1 -1
  205. package/dist/components/signature-capture/index.js +1 -1
  206. package/dist/components/slider/index.js +1 -1
  207. package/dist/components/slot-grid/index.js +1 -1
  208. package/dist/components/sparkline/index.js +1 -1
  209. package/dist/components/stepper-progress/index.js +1 -1
  210. package/dist/components/streaming-text/index.js +1 -1
  211. package/dist/components/switch/index.js +1 -1
  212. package/dist/components/tabs/index.js +1 -1
  213. package/dist/components/tag/index.js +1 -1
  214. package/dist/components/task-tray/index.js +1 -1
  215. package/dist/components/text-area/index.js +1 -1
  216. package/dist/components/text-input/index.js +1 -1
  217. package/dist/components/theme-toggle/index.js +1 -1
  218. package/dist/components/time-picker/index.js +1 -1
  219. package/dist/components/timeline/index.js +1 -1
  220. package/dist/components/toast/index.js +1 -1
  221. package/dist/components/tooltip/index.js +1 -1
  222. package/dist/components/tooth-scheme/index.js +1 -1
  223. package/dist/components/transcript-panel/index.js +1 -1
  224. package/dist/components/workflow/index.js +1 -1
  225. package/dist/hooks/index.js +69 -66
  226. package/dist/i18n/locales/ar.d.ts +92 -0
  227. package/dist/i18n/locales/ar.js +82 -0
  228. package/dist/i18n/locales/de.d.ts +92 -0
  229. package/dist/i18n/locales/de.js +81 -0
  230. package/dist/i18n/locales/el.d.ts +92 -0
  231. package/dist/i18n/locales/el.js +82 -0
  232. package/dist/i18n/locales/en.d.ts +27 -0
  233. package/dist/i18n/locales/en.js +27 -0
  234. package/dist/i18n/locales/es.d.ts +92 -0
  235. package/dist/i18n/locales/es.js +81 -0
  236. package/dist/i18n/locales/fr.d.ts +92 -0
  237. package/dist/i18n/locales/fr.js +81 -0
  238. package/dist/i18n/locales/hi.d.ts +92 -0
  239. package/dist/i18n/locales/hi.js +82 -0
  240. package/dist/i18n/locales/it.d.ts +92 -0
  241. package/dist/i18n/locales/it.js +81 -0
  242. package/dist/i18n/locales/ja.d.ts +92 -0
  243. package/dist/i18n/locales/ja.js +82 -0
  244. package/dist/i18n/locales/nl.d.ts +92 -0
  245. package/dist/i18n/locales/nl.js +81 -0
  246. package/dist/i18n/locales/pl.d.ts +92 -0
  247. package/dist/i18n/locales/pl.js +82 -0
  248. package/dist/i18n/locales/pt.d.ts +92 -0
  249. package/dist/i18n/locales/pt.js +83 -0
  250. package/dist/i18n/locales/ro.d.ts +92 -0
  251. package/dist/i18n/locales/ro.js +82 -0
  252. package/dist/i18n/locales/ru.d.ts +92 -0
  253. package/dist/i18n/locales/ru.js +82 -0
  254. package/dist/i18n/locales/sq.d.ts +92 -0
  255. package/dist/i18n/locales/sq.js +82 -0
  256. package/dist/i18n/locales/sv.d.ts +92 -0
  257. package/dist/i18n/locales/sv.js +82 -0
  258. package/dist/i18n/locales/tr.d.ts +92 -0
  259. package/dist/i18n/locales/tr.js +82 -0
  260. package/dist/i18n/locales/zh.d.ts +92 -0
  261. package/dist/i18n/locales/zh.js +82 -0
  262. package/dist/index.js +541 -540
  263. package/dist/locales/ar.json +92 -0
  264. package/dist/locales/de.json +92 -0
  265. package/dist/locales/el.json +92 -0
  266. package/dist/locales/en.json +27 -0
  267. package/dist/locales/es.json +92 -0
  268. package/dist/locales/fr.json +92 -0
  269. package/dist/locales/hi.json +92 -0
  270. package/dist/locales/it.json +92 -0
  271. package/dist/locales/ja.json +92 -0
  272. package/dist/locales/nl.json +92 -0
  273. package/dist/locales/pl.json +92 -0
  274. package/dist/locales/pt.json +92 -0
  275. package/dist/locales/ro.json +92 -0
  276. package/dist/locales/ru.json +92 -0
  277. package/dist/locales/sq.json +92 -0
  278. package/dist/locales/sv.json +92 -0
  279. package/dist/locales/tr.json +92 -0
  280. package/dist/locales/zh.json +92 -0
  281. package/dist/patterns/alia-assistant/index.js +1 -1
  282. package/dist/patterns/patient-shell/index.js +1 -1
  283. package/dist/tokens.css +1 -1
  284. package/package.json +2 -2
  285. package/dist/_chunks/audio-visualiser-I-T4Z7EU.js +0 -145
  286. package/dist/_chunks/practice-results-CEKjwsgS.js +0 -1441
  287. package/dist/_chunks/recaptcha-widget-BtBNb6tB.js +0 -192
  288. package/dist/_chunks/registry-C9nwlNyL.js +0 -21
  289. package/dist/_chunks/smile-BSYLAHy6.js +0 -17
  290. package/dist/_chunks/streaming-text-BgjCTVOw.js +0 -105
  291. package/dist/_chunks/use-scroll-to-first-error-BrK7dKB_.js +0 -55
@@ -1,23 +1,23 @@
1
- import { c as Nn } from "./createLucideIcon-CrFbzy84.js";
2
- import m, { createContext as Cn, useContext as pn, useCallback as $, useRef as Ce, useLayoutEffect as Yn, useState as Ve, useEffect as xn, useMemo as pe } from "react";
3
- import { t as P, c as I, n as be, s as Qe, d as Tn, e as vt, i as Pn } from "./isSameDay-DHG8Xade.js";
4
- import { jsx as ut } from "react/jsx-runtime";
5
- import { C as En } from "./chevron-left-CX1jqD2M.js";
6
- import { C as _n } from "./chevron-right-BrpYejk0.js";
7
- import { c as Ye } from "./index-D2ZczOXr.js";
1
+ import { c as Yn } from "./createLucideIcon-CrFbzy84.js";
2
+ import m, { createContext as xn, useContext as Tn, useCallback as $, useRef as Ce, useLayoutEffect as Pn, useState as Ye, useEffect as Wt, useMemo as Ne } from "react";
3
+ import { t as P, c as I, n as be, s as Qe, d as En, e as St, i as _n } from "./isSameDay-DUEiAT0G.js";
4
+ import { jsx as dt } from "react/jsx-runtime";
5
+ import { C as Fn } from "./chevron-left-CX1jqD2M.js";
6
+ import { C as Bn } from "./chevron-right-BrpYejk0.js";
7
+ import { c as xe } from "./index-D2ZczOXr.js";
8
8
  /**
9
9
  * @license lucide-react v1.8.0 - ISC
10
10
  *
11
11
  * This source code is licensed under the ISC license.
12
12
  * See the LICENSE file in the root directory of this source tree.
13
13
  */
14
- const Fn = [
14
+ const In = [
15
15
  ["path", { d: "M8 2v4", key: "1cmpym" }],
16
16
  ["path", { d: "M16 2v4", key: "4m81vk" }],
17
17
  ["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
18
18
  ["path", { d: "M3 10h18", key: "8toen8" }]
19
- ], Fo = Nn("calendar", Fn);
20
- function Bn(e, t, n = "long") {
19
+ ], Ho = Yn("calendar", In);
20
+ function An(e, t, n = "long") {
21
21
  return new Intl.DateTimeFormat("en-US", {
22
22
  // Enforces engine to render the time. Without the option JavaScriptCore omits it.
23
23
  hour: "numeric",
@@ -25,29 +25,29 @@ function Bn(e, t, n = "long") {
25
25
  timeZoneName: n
26
26
  }).format(t).split(/\s/g).slice(2).join(" ");
27
27
  }
28
- const He = {}, ge = {};
28
+ const qe = {}, ge = {};
29
29
  function ie(e, t) {
30
30
  try {
31
- const r = (He[e] || (He[e] = new Intl.DateTimeFormat("en-US", {
31
+ const r = (qe[e] || (qe[e] = new Intl.DateTimeFormat("en-US", {
32
32
  timeZone: e,
33
33
  timeZoneName: "longOffset"
34
34
  }).format))(t).split("GMT")[1];
35
- return r in ge ? ge[r] : dt(r, r.split(":"));
35
+ return r in ge ? ge[r] : ft(r, r.split(":"));
36
36
  } catch {
37
37
  if (e in ge) return ge[e];
38
- const n = e == null ? void 0 : e.match(In);
39
- return n ? dt(e, n.slice(1)) : NaN;
38
+ const n = e == null ? void 0 : e.match(Hn);
39
+ return n ? ft(e, n.slice(1)) : NaN;
40
40
  }
41
41
  }
42
- const In = /([+-]\d\d):?(\d\d)?/;
43
- function dt(e, t) {
42
+ const Hn = /([+-]\d\d):?(\d\d)?/;
43
+ function ft(e, t) {
44
44
  const n = +(t[0] || 0), r = +(t[1] || 0), a = +(t[2] || 0) / 60;
45
45
  return ge[e] = n * 60 + r > 0 ? n * 60 + r + a : n * 60 - r - a;
46
46
  }
47
47
  class J extends Date {
48
48
  //#region static
49
49
  constructor(...t) {
50
- super(), t.length > 1 && typeof t[t.length - 1] == "string" && (this.timeZone = t.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(ie(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)), Ot(this), Xe(this)) : this.setTime(Date.now());
50
+ super(), t.length > 1 && typeof t[t.length - 1] == "string" && (this.timeZone = t.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(ie(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)), pt(this), Xe(this)) : this.setTime(Date.now());
51
51
  }
52
52
  static tz(t, ...n) {
53
53
  return n.length ? new J(...n, t) : new J(Date.now(), t);
@@ -73,14 +73,14 @@ class J extends Date {
73
73
  }
74
74
  //#endregion
75
75
  }
76
- const ft = /^(get|set)(?!UTC)/;
76
+ const lt = /^(get|set)(?!UTC)/;
77
77
  Object.getOwnPropertyNames(Date.prototype).forEach((e) => {
78
- if (!ft.test(e)) return;
79
- const t = e.replace(ft, "$1UTC");
78
+ if (!lt.test(e)) return;
79
+ const t = e.replace(lt, "$1UTC");
80
80
  J.prototype[t] && (e.startsWith("get") ? J.prototype[e] = function() {
81
81
  return this.internal[t]();
82
82
  } : (J.prototype[e] = function() {
83
- return Date.prototype[t].apply(this.internal, arguments), An(this), +this;
83
+ return Date.prototype[t].apply(this.internal, arguments), qn(this), +this;
84
84
  }, J.prototype[t] = function() {
85
85
  return Date.prototype[t].apply(this, arguments), Xe(this), +this;
86
86
  }));
@@ -88,10 +88,10 @@ Object.getOwnPropertyNames(Date.prototype).forEach((e) => {
88
88
  function Xe(e) {
89
89
  e.internal.setTime(+e), e.internal.setUTCSeconds(e.internal.getUTCSeconds() - Math.round(-ie(e.timeZone, e) * 60));
90
90
  }
91
- function An(e) {
92
- 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()), Ot(e);
91
+ function qn(e) {
92
+ 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()), pt(e);
93
93
  }
94
- function Ot(e) {
94
+ function pt(e) {
95
95
  const t = ie(e.timeZone, e), n = t > 0 ? Math.floor(t) : Math.ceil(t), r = /* @__PURE__ */ new Date(+e);
96
96
  r.setUTCHours(r.getUTCHours() - 1);
97
97
  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();
@@ -102,8 +102,8 @@ function Ot(e) {
102
102
  u.setUTCSeconds(0);
103
103
  const d = a > 0 ? u.getSeconds() : (u.getSeconds() - 60) % 60, f = Math.round(-(ie(e.timeZone, e) * 60)) % 60;
104
104
  (f || d) && (e.internal.setUTCSeconds(e.internal.getUTCSeconds() + f), Date.prototype.setUTCSeconds.call(e, Date.prototype.getUTCSeconds.call(e) + f + d));
105
- const h = ie(e.timeZone, e), y = h > 0 ? Math.floor(h) : Math.ceil(h), W = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset() - y, D = y !== n, C = W - c;
106
- if (D && C) {
105
+ const h = ie(e.timeZone, e), y = h > 0 ? Math.floor(h) : Math.ceil(h), W = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset() - y, v = y !== n, C = W - c;
106
+ if (v && C) {
107
107
  Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + C);
108
108
  const M = ie(e.timeZone, e), g = M > 0 ? Math.floor(M) : Math.ceil(M), S = y - g;
109
109
  S && (e.internal.setUTCMinutes(e.internal.getUTCMinutes() + S), Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + S));
@@ -129,7 +129,7 @@ class A extends J {
129
129
  }
130
130
  toTimeString() {
131
131
  const t = this.internal.toUTCString().split(" ")[4], [n, r, a] = this.tzComponents();
132
- return `${t} GMT${n}${r}${a} (${Bn(this.timeZone, this)})`;
132
+ return `${t} GMT${n}${r}${a} (${An(this.timeZone, this)})`;
133
133
  }
134
134
  toLocaleString(t, n) {
135
135
  return Date.prototype.toLocaleString.call(this, t, {
@@ -165,11 +165,11 @@ class A extends J {
165
165
  }
166
166
  //#endregion
167
167
  }
168
- function Wt(e, t, n) {
168
+ function Ct(e, t, n) {
169
169
  const r = P(e, n == null ? void 0 : n.in);
170
170
  return isNaN(t) ? I((n == null ? void 0 : n.in) || e, NaN) : (t && r.setDate(r.getDate() + t), r);
171
171
  }
172
- function St(e, t, n) {
172
+ function Nt(e, t, n) {
173
173
  const r = P(e, n == null ? void 0 : n.in);
174
174
  if (isNaN(t)) return I(e, NaN);
175
175
  if (!t)
@@ -183,9 +183,9 @@ function St(e, t, n) {
183
183
  a
184
184
  ), r);
185
185
  }
186
- let Hn = {};
186
+ let jn = {};
187
187
  function ke() {
188
- return Hn;
188
+ return jn;
189
189
  }
190
190
  function fe(e, t) {
191
191
  var i, c, u, d;
@@ -195,7 +195,7 @@ function fe(e, t) {
195
195
  function we(e, t) {
196
196
  return fe(e, { ...t, weekStartsOn: 1 });
197
197
  }
198
- function Nt(e, t) {
198
+ function Yt(e, t) {
199
199
  const n = P(e, t == null ? void 0 : t.in), r = n.getFullYear(), a = I(n, 0);
200
200
  a.setFullYear(r + 1, 0, 4), a.setHours(0, 0, 0, 0);
201
201
  const o = we(a), s = I(n, 0);
@@ -203,7 +203,7 @@ function Nt(e, t) {
203
203
  const i = we(s);
204
204
  return n.getTime() >= o.getTime() ? r + 1 : n.getTime() >= i.getTime() ? r : r - 1;
205
205
  }
206
- function lt(e) {
206
+ function ht(e) {
207
207
  const t = P(e), n = new Date(
208
208
  Date.UTC(
209
209
  t.getFullYear(),
@@ -217,25 +217,25 @@ function lt(e) {
217
217
  );
218
218
  return n.setUTCFullYear(t.getFullYear()), +e - +n;
219
219
  }
220
- function Ue(e, t, n) {
220
+ function Ke(e, t, n) {
221
221
  const [r, a] = be(
222
222
  n == null ? void 0 : n.in,
223
223
  e,
224
224
  t
225
- ), o = Qe(r), s = Qe(a), i = +o - lt(o), c = +s - lt(s);
226
- return Math.round((i - c) / Tn);
225
+ ), o = Qe(r), s = Qe(a), i = +o - ht(o), c = +s - ht(s);
226
+ return Math.round((i - c) / En);
227
227
  }
228
- function qn(e, t) {
229
- const n = Nt(e, t), r = I(e, 0);
228
+ function zn(e, t) {
229
+ const n = Yt(e, t), r = I(e, 0);
230
230
  return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), we(r);
231
231
  }
232
- function zn(e, t, n) {
233
- return Wt(e, t * 7, n);
232
+ function Gn(e, t, n) {
233
+ return Ct(e, t * 7, n);
234
234
  }
235
- function jn(e, t, n) {
236
- return St(e, t * 12, n);
235
+ function $n(e, t, n) {
236
+ return Nt(e, t * 12, n);
237
237
  }
238
- function Gn(e, t) {
238
+ function Rn(e, t) {
239
239
  let n, r = t == null ? void 0 : t.in;
240
240
  return e.forEach((a) => {
241
241
  !r && typeof a == "object" && (r = I.bind(null, a));
@@ -243,7 +243,7 @@ function Gn(e, t) {
243
243
  (!n || n < o || isNaN(+o)) && (n = o);
244
244
  }), I(r, n || NaN);
245
245
  }
246
- function $n(e, t) {
246
+ function Vn(e, t) {
247
247
  let n, r = t == null ? void 0 : t.in;
248
248
  return e.forEach((a) => {
249
249
  !r && typeof a == "object" && (r = I.bind(null, a));
@@ -251,13 +251,13 @@ function $n(e, t) {
251
251
  (!n || n > o || isNaN(+o)) && (n = o);
252
252
  }), I(r, n || NaN);
253
253
  }
254
- function Ct(e) {
254
+ function xt(e) {
255
255
  return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
256
256
  }
257
- function Rn(e) {
258
- return !(!Ct(e) && typeof e != "number" || isNaN(+P(e)));
257
+ function Un(e) {
258
+ return !(!xt(e) && typeof e != "number" || isNaN(+P(e)));
259
259
  }
260
- function pt(e, t, n) {
260
+ function Tt(e, t, n) {
261
261
  const [r, a] = be(
262
262
  n == null ? void 0 : n.in,
263
263
  e,
@@ -265,16 +265,16 @@ function pt(e, t, n) {
265
265
  ), o = r.getFullYear() - a.getFullYear(), s = r.getMonth() - a.getMonth();
266
266
  return o * 12 + s;
267
267
  }
268
- function Vn(e, t) {
268
+ function Qn(e, t) {
269
269
  const n = P(e, t == null ? void 0 : t.in), r = n.getMonth();
270
270
  return n.setFullYear(n.getFullYear(), r + 1, 0), n.setHours(23, 59, 59, 999), n;
271
271
  }
272
- function Yt(e, t) {
272
+ function Pt(e, t) {
273
273
  const [n, r] = be(e, t.start, t.end);
274
274
  return { start: n, end: r };
275
275
  }
276
- function Qn(e, t) {
277
- const { start: n, end: r } = Yt(t == null ? void 0 : t.in, e);
276
+ function Xn(e, t) {
277
+ const { start: n, end: r } = Pt(t == null ? void 0 : t.in, e);
278
278
  let a = +n > +r;
279
279
  const o = a ? +n : +r, s = a ? r : n;
280
280
  s.setHours(0, 0, 0, 0), s.setDate(1);
@@ -284,20 +284,20 @@ function Qn(e, t) {
284
284
  c.push(I(n, s)), s.setMonth(s.getMonth() + i);
285
285
  return a ? c.reverse() : c;
286
286
  }
287
- function Xn(e, t) {
287
+ function Kn(e, t) {
288
288
  const n = P(e, t == null ? void 0 : t.in);
289
289
  return n.setDate(1), n.setHours(0, 0, 0, 0), n;
290
290
  }
291
- function Un(e, t) {
291
+ function Jn(e, t) {
292
292
  const n = P(e, t == null ? void 0 : t.in), r = n.getFullYear();
293
293
  return n.setFullYear(r + 1, 0, 0), n.setHours(23, 59, 59, 999), n;
294
294
  }
295
- function xt(e, t) {
295
+ function Et(e, t) {
296
296
  const n = P(e, t == null ? void 0 : t.in);
297
297
  return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
298
298
  }
299
- function Kn(e, t) {
300
- const { start: n, end: r } = Yt(t == null ? void 0 : t.in, e);
299
+ function Zn(e, t) {
300
+ const { start: n, end: r } = Pt(t == null ? void 0 : t.in, e);
301
301
  let a = +n > +r;
302
302
  const o = a ? +n : +r, s = a ? r : n;
303
303
  s.setHours(0, 0, 0, 0), s.setMonth(0, 1);
@@ -307,15 +307,15 @@ function Kn(e, t) {
307
307
  c.push(I(n, s)), s.setFullYear(s.getFullYear() + i);
308
308
  return a ? c.reverse() : c;
309
309
  }
310
- function Tt(e, t) {
310
+ function _t(e, t) {
311
311
  var i, c, u, d;
312
312
  const n = ke(), 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 ?? ((d = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : d.weekStartsOn) ?? 0, a = P(e, t == null ? void 0 : t.in), o = a.getDay(), s = (o < r ? -7 : 0) + 6 - (o - r);
313
313
  return a.setDate(a.getDate() + s), a.setHours(23, 59, 59, 999), a;
314
314
  }
315
- function Jn(e, t) {
316
- return Tt(e, { ...t, weekStartsOn: 1 });
315
+ function Ln(e, t) {
316
+ return _t(e, { ...t, weekStartsOn: 1 });
317
317
  }
318
- const Zn = {
318
+ const er = {
319
319
  lessThanXSeconds: {
320
320
  one: "less than a second",
321
321
  other: "less than {{count}} seconds"
@@ -377,53 +377,53 @@ const Zn = {
377
377
  one: "almost 1 year",
378
378
  other: "almost {{count}} years"
379
379
  }
380
- }, Ln = (e, t, n) => {
380
+ }, tr = (e, t, n) => {
381
381
  let r;
382
- const a = Zn[e];
382
+ const a = er[e];
383
383
  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;
384
384
  };
385
- function qe(e) {
385
+ function je(e) {
386
386
  return (t = {}) => {
387
387
  const n = t.width ? String(t.width) : e.defaultWidth;
388
388
  return e.formats[n] || e.formats[e.defaultWidth];
389
389
  };
390
390
  }
391
- const er = {
391
+ const nr = {
392
392
  full: "EEEE, MMMM do, y",
393
393
  long: "MMMM do, y",
394
394
  medium: "MMM d, y",
395
395
  short: "MM/dd/yyyy"
396
- }, tr = {
396
+ }, rr = {
397
397
  full: "h:mm:ss a zzzz",
398
398
  long: "h:mm:ss a z",
399
399
  medium: "h:mm:ss a",
400
400
  short: "h:mm a"
401
- }, nr = {
401
+ }, ar = {
402
402
  full: "{{date}} 'at' {{time}}",
403
403
  long: "{{date}} 'at' {{time}}",
404
404
  medium: "{{date}}, {{time}}",
405
405
  short: "{{date}}, {{time}}"
406
- }, rr = {
407
- date: qe({
408
- formats: er,
406
+ }, or = {
407
+ date: je({
408
+ formats: nr,
409
409
  defaultWidth: "full"
410
410
  }),
411
- time: qe({
412
- formats: tr,
411
+ time: je({
412
+ formats: rr,
413
413
  defaultWidth: "full"
414
414
  }),
415
- dateTime: qe({
416
- formats: nr,
415
+ dateTime: je({
416
+ formats: ar,
417
417
  defaultWidth: "full"
418
418
  })
419
- }, ar = {
419
+ }, sr = {
420
420
  lastWeek: "'last' eeee 'at' p",
421
421
  yesterday: "'yesterday at' p",
422
422
  today: "'today at' p",
423
423
  tomorrow: "'tomorrow at' p",
424
424
  nextWeek: "eeee 'at' p",
425
425
  other: "P"
426
- }, or = (e, t, n, r) => ar[e];
426
+ }, ir = (e, t, n, r) => sr[e];
427
427
  function me(e) {
428
428
  return (t, n) => {
429
429
  const r = n != null && n.context ? String(n.context) : "standalone";
@@ -439,15 +439,15 @@ function me(e) {
439
439
  return a[o];
440
440
  };
441
441
  }
442
- const sr = {
442
+ const cr = {
443
443
  narrow: ["B", "A"],
444
444
  abbreviated: ["BC", "AD"],
445
445
  wide: ["Before Christ", "Anno Domini"]
446
- }, ir = {
446
+ }, ur = {
447
447
  narrow: ["1", "2", "3", "4"],
448
448
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
449
449
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
450
- }, cr = {
450
+ }, dr = {
451
451
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
452
452
  abbreviated: [
453
453
  "Jan",
@@ -477,7 +477,7 @@ const sr = {
477
477
  "November",
478
478
  "December"
479
479
  ]
480
- }, ur = {
480
+ }, fr = {
481
481
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
482
482
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
483
483
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
@@ -490,7 +490,7 @@ const sr = {
490
490
  "Friday",
491
491
  "Saturday"
492
492
  ]
493
- }, dr = {
493
+ }, lr = {
494
494
  narrow: {
495
495
  am: "a",
496
496
  pm: "p",
@@ -521,7 +521,7 @@ const sr = {
521
521
  evening: "evening",
522
522
  night: "night"
523
523
  }
524
- }, fr = {
524
+ }, hr = {
525
525
  narrow: {
526
526
  am: "a",
527
527
  pm: "p",
@@ -552,7 +552,7 @@ const sr = {
552
552
  evening: "in the evening",
553
553
  night: "at night"
554
554
  }
555
- }, lr = (e, t) => {
555
+ }, mr = (e, t) => {
556
556
  const n = Number(e), r = n % 100;
557
557
  if (r > 20 || r < 10)
558
558
  switch (r % 10) {
@@ -564,29 +564,29 @@ const sr = {
564
564
  return n + "rd";
565
565
  }
566
566
  return n + "th";
567
- }, hr = {
568
- ordinalNumber: lr,
567
+ }, yr = {
568
+ ordinalNumber: mr,
569
569
  era: me({
570
- values: sr,
570
+ values: cr,
571
571
  defaultWidth: "wide"
572
572
  }),
573
573
  quarter: me({
574
- values: ir,
574
+ values: ur,
575
575
  defaultWidth: "wide",
576
576
  argumentCallback: (e) => e - 1
577
577
  }),
578
578
  month: me({
579
- values: cr,
579
+ values: dr,
580
580
  defaultWidth: "wide"
581
581
  }),
582
582
  day: me({
583
- values: ur,
583
+ values: fr,
584
584
  defaultWidth: "wide"
585
585
  }),
586
586
  dayPeriod: me({
587
- values: dr,
587
+ values: lr,
588
588
  defaultWidth: "wide",
589
- formattingValues: fr,
589
+ formattingValues: hr,
590
590
  defaultFormattingWidth: "wide"
591
591
  })
592
592
  };
@@ -595,9 +595,9 @@ function ye(e) {
595
595
  const r = n.width, a = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], o = t.match(a);
596
596
  if (!o)
597
597
  return null;
598
- const s = o[0], i = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(i) ? yr(i, (f) => f.test(s)) : (
598
+ const s = o[0], i = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(i) ? Mr(i, (f) => f.test(s)) : (
599
599
  // [TODO] -- I challenge you to fix the type
600
- mr(i, (f) => f.test(s))
600
+ gr(i, (f) => f.test(s))
601
601
  );
602
602
  let u;
603
603
  u = e.valueCallback ? e.valueCallback(c) : c, u = n.valueCallback ? (
@@ -608,17 +608,17 @@ function ye(e) {
608
608
  return { value: u, rest: d };
609
609
  };
610
610
  }
611
- function mr(e, t) {
611
+ function gr(e, t) {
612
612
  for (const n in e)
613
613
  if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
614
614
  return n;
615
615
  }
616
- function yr(e, t) {
616
+ function Mr(e, t) {
617
617
  for (let n = 0; n < e.length; n++)
618
618
  if (t(e[n]))
619
619
  return n;
620
620
  }
621
- function gr(e) {
621
+ function wr(e) {
622
622
  return (t, n = {}) => {
623
623
  const r = t.match(e.matchPattern);
624
624
  if (!r) return null;
@@ -630,23 +630,23 @@ function gr(e) {
630
630
  return { value: s, rest: i };
631
631
  };
632
632
  }
633
- const Mr = /^(\d+)(th|st|nd|rd)?/i, wr = /\d+/i, br = {
633
+ const br = /^(\d+)(th|st|nd|rd)?/i, kr = /\d+/i, vr = {
634
634
  narrow: /^(b|a)/i,
635
635
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
636
636
  wide: /^(before christ|before common era|anno domini|common era)/i
637
- }, kr = {
638
- any: [/^b/i, /^(a|c)/i]
639
637
  }, Dr = {
638
+ any: [/^b/i, /^(a|c)/i]
639
+ }, Or = {
640
640
  narrow: /^[1234]/i,
641
641
  abbreviated: /^q[1234]/i,
642
642
  wide: /^[1234](th|st|nd|rd)? quarter/i
643
- }, vr = {
643
+ }, Wr = {
644
644
  any: [/1/i, /2/i, /3/i, /4/i]
645
- }, Or = {
645
+ }, Sr = {
646
646
  narrow: /^[jfmasond]/i,
647
647
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
648
648
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
649
- }, Wr = {
649
+ }, pr = {
650
650
  narrow: [
651
651
  /^j/i,
652
652
  /^f/i,
@@ -675,7 +675,7 @@ const Mr = /^(\d+)(th|st|nd|rd)?/i, wr = /\d+/i, br = {
675
675
  /^n/i,
676
676
  /^d/i
677
677
  ]
678
- }, Sr = {
678
+ }, Cr = {
679
679
  narrow: /^[smtwf]/i,
680
680
  short: /^(su|mo|tu|we|th|fr|sa)/i,
681
681
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
@@ -683,10 +683,10 @@ const Mr = /^(\d+)(th|st|nd|rd)?/i, wr = /\d+/i, br = {
683
683
  }, Nr = {
684
684
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
685
685
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
686
- }, Cr = {
686
+ }, Yr = {
687
687
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
688
688
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
689
- }, pr = {
689
+ }, xr = {
690
690
  any: {
691
691
  am: /^a/i,
692
692
  pm: /^p/i,
@@ -697,64 +697,67 @@ const Mr = /^(\d+)(th|st|nd|rd)?/i, wr = /\d+/i, br = {
697
697
  evening: /evening/i,
698
698
  night: /night/i
699
699
  }
700
- }, Yr = {
701
- ordinalNumber: gr({
702
- matchPattern: Mr,
703
- parsePattern: wr,
700
+ }, Tr = {
701
+ ordinalNumber: wr({
702
+ matchPattern: br,
703
+ parsePattern: kr,
704
704
  valueCallback: (e) => parseInt(e, 10)
705
705
  }),
706
706
  era: ye({
707
- matchPatterns: br,
707
+ matchPatterns: vr,
708
708
  defaultMatchWidth: "wide",
709
- parsePatterns: kr,
709
+ parsePatterns: Dr,
710
710
  defaultParseWidth: "any"
711
711
  }),
712
712
  quarter: ye({
713
- matchPatterns: Dr,
713
+ matchPatterns: Or,
714
714
  defaultMatchWidth: "wide",
715
- parsePatterns: vr,
715
+ parsePatterns: Wr,
716
716
  defaultParseWidth: "any",
717
717
  valueCallback: (e) => e + 1
718
718
  }),
719
719
  month: ye({
720
- matchPatterns: Or,
720
+ matchPatterns: Sr,
721
721
  defaultMatchWidth: "wide",
722
- parsePatterns: Wr,
722
+ parsePatterns: pr,
723
723
  defaultParseWidth: "any"
724
724
  }),
725
725
  day: ye({
726
- matchPatterns: Sr,
726
+ matchPatterns: Cr,
727
727
  defaultMatchWidth: "wide",
728
728
  parsePatterns: Nr,
729
729
  defaultParseWidth: "any"
730
730
  }),
731
731
  dayPeriod: ye({
732
- matchPatterns: Cr,
732
+ matchPatterns: Yr,
733
733
  defaultMatchWidth: "any",
734
- parsePatterns: pr,
734
+ parsePatterns: xr,
735
735
  defaultParseWidth: "any"
736
736
  })
737
737
  }, se = {
738
738
  code: "en-US",
739
- formatDistance: Ln,
740
- formatLong: rr,
741
- formatRelative: or,
742
- localize: hr,
743
- match: Yr,
739
+ formatDistance: tr,
740
+ formatLong: or,
741
+ formatRelative: ir,
742
+ localize: yr,
743
+ match: Tr,
744
744
  options: {
745
745
  weekStartsOn: 0,
746
746
  firstWeekContainsDate: 1
747
747
  }
748
- };
749
- function xr(e, t) {
748
+ }, Pr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
749
+ __proto__: null,
750
+ enUS: se
751
+ }, Symbol.toStringTag, { value: "Module" }));
752
+ function Er(e, t) {
750
753
  const n = P(e, t == null ? void 0 : t.in);
751
- return Ue(n, xt(n)) + 1;
754
+ return Ke(n, Et(n)) + 1;
752
755
  }
753
- function Ke(e, t) {
754
- const n = P(e, t == null ? void 0 : t.in), r = +we(n) - +qn(n);
755
- return Math.round(r / vt) + 1;
756
+ function Je(e, t) {
757
+ const n = P(e, t == null ? void 0 : t.in), r = +we(n) - +zn(n);
758
+ return Math.round(r / St) + 1;
756
759
  }
757
- function Pt(e, t) {
760
+ function Ft(e, t) {
758
761
  var d, f, h, y;
759
762
  const n = P(e, t == null ? void 0 : t.in), r = n.getFullYear(), a = ke(), o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((f = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((y = (h = a.locale) == null ? void 0 : h.options) == null ? void 0 : y.firstWeekContainsDate) ?? 1, s = I((t == null ? void 0 : t.in) || e, 0);
760
763
  s.setFullYear(r + 1, 0, o), s.setHours(0, 0, 0, 0);
@@ -763,14 +766,14 @@ function Pt(e, t) {
763
766
  const u = fe(c, t);
764
767
  return +n >= +i ? r + 1 : +n >= +u ? r : r - 1;
765
768
  }
766
- function Tr(e, t) {
769
+ function _r(e, t) {
767
770
  var i, c, u, d;
768
- const n = ke(), 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 ?? ((d = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, a = Pt(e, t), o = I((t == null ? void 0 : t.in) || e, 0);
771
+ const n = ke(), 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 ?? ((d = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, a = Ft(e, t), o = I((t == null ? void 0 : t.in) || e, 0);
769
772
  return o.setFullYear(a, 0, r), o.setHours(0, 0, 0, 0), fe(o, t);
770
773
  }
771
- function Je(e, t) {
772
- const n = P(e, t == null ? void 0 : t.in), r = +fe(n, t) - +Tr(n, t);
773
- return Math.round(r / vt) + 1;
774
+ function Ze(e, t) {
775
+ const n = P(e, t == null ? void 0 : t.in), r = +fe(n, t) - +_r(n, t);
776
+ return Math.round(r / St) + 1;
774
777
  }
775
778
  function T(e, t) {
776
779
  const n = e < 0 ? "-" : "", r = Math.abs(e).toString().padStart(t, "0");
@@ -837,7 +840,7 @@ const ae = {
837
840
  afternoon: "afternoon",
838
841
  evening: "evening",
839
842
  night: "night"
840
- }, ht = {
843
+ }, mt = {
841
844
  // Era
842
845
  G: function(e, t, n) {
843
846
  const r = e.getFullYear() > 0 ? 1 : 0;
@@ -866,7 +869,7 @@ const ae = {
866
869
  },
867
870
  // Local week-numbering year
868
871
  Y: function(e, t, n, r) {
869
- const a = Pt(e, r), o = a > 0 ? a : 1 - a;
872
+ const a = Ft(e, r), o = a > 0 ? a : 1 - a;
870
873
  if (t === "YY") {
871
874
  const s = o % 100;
872
875
  return T(s, 2);
@@ -875,7 +878,7 @@ const ae = {
875
878
  },
876
879
  // ISO week-numbering year
877
880
  R: function(e, t) {
878
- const n = Nt(e);
881
+ const n = Yt(e);
879
882
  return T(n, t.length);
880
883
  },
881
884
  // Extended year. This is a single number designating the year of this calendar system.
@@ -1020,12 +1023,12 @@ const ae = {
1020
1023
  },
1021
1024
  // Local week of year
1022
1025
  w: function(e, t, n, r) {
1023
- const a = Je(e, r);
1026
+ const a = Ze(e, r);
1024
1027
  return t === "wo" ? n.ordinalNumber(a, { unit: "week" }) : T(a, t.length);
1025
1028
  },
1026
1029
  // ISO week of year
1027
1030
  I: function(e, t, n) {
1028
- const r = Ke(e);
1031
+ const r = Je(e);
1029
1032
  return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : T(r, t.length);
1030
1033
  },
1031
1034
  // Day of the month
@@ -1034,7 +1037,7 @@ const ae = {
1034
1037
  },
1035
1038
  // Day of year
1036
1039
  D: function(e, t, n) {
1037
- const r = xr(e);
1040
+ const r = Er(e);
1038
1041
  return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : T(r, t.length);
1039
1042
  },
1040
1043
  // Day of week
@@ -1312,7 +1315,7 @@ const ae = {
1312
1315
  switch (t) {
1313
1316
  // Hours and optional minutes
1314
1317
  case "X":
1315
- return yt(r);
1318
+ return gt(r);
1316
1319
  // Hours, minutes and optional seconds without `:` delimiter
1317
1320
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1318
1321
  // so this token always has the same output as `XX`
@@ -1335,7 +1338,7 @@ const ae = {
1335
1338
  switch (t) {
1336
1339
  // Hours and optional minutes
1337
1340
  case "x":
1338
- return yt(r);
1341
+ return gt(r);
1339
1342
  // Hours, minutes and optional seconds without `:` delimiter
1340
1343
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1341
1344
  // so this token always has the same output as `xx`
@@ -1360,7 +1363,7 @@ const ae = {
1360
1363
  case "O":
1361
1364
  case "OO":
1362
1365
  case "OOO":
1363
- return "GMT" + mt(r, ":");
1366
+ return "GMT" + yt(r, ":");
1364
1367
  // Long
1365
1368
  case "OOOO":
1366
1369
  default:
@@ -1375,7 +1378,7 @@ const ae = {
1375
1378
  case "z":
1376
1379
  case "zz":
1377
1380
  case "zzz":
1378
- return "GMT" + mt(r, ":");
1381
+ return "GMT" + yt(r, ":");
1379
1382
  // Long
1380
1383
  case "zzzz":
1381
1384
  default:
@@ -1392,18 +1395,18 @@ const ae = {
1392
1395
  return T(+e, t.length);
1393
1396
  }
1394
1397
  };
1395
- function mt(e, t = "") {
1398
+ function yt(e, t = "") {
1396
1399
  const n = e > 0 ? "-" : "+", r = Math.abs(e), a = Math.trunc(r / 60), o = r % 60;
1397
1400
  return o === 0 ? n + String(a) : n + String(a) + t + T(o, 2);
1398
1401
  }
1399
- function yt(e, t) {
1402
+ function gt(e, t) {
1400
1403
  return e % 60 === 0 ? (e > 0 ? "-" : "+") + T(Math.abs(e) / 60, 2) : oe(e, t);
1401
1404
  }
1402
1405
  function oe(e, t = "") {
1403
1406
  const n = e > 0 ? "-" : "+", r = Math.abs(e), a = T(Math.trunc(r / 60), 2), o = T(r % 60, 2);
1404
1407
  return n + a + t + o;
1405
1408
  }
1406
- const gt = (e, t) => {
1409
+ const Mt = (e, t) => {
1407
1410
  switch (e) {
1408
1411
  case "P":
1409
1412
  return t.date({ width: "short" });
@@ -1415,7 +1418,7 @@ const gt = (e, t) => {
1415
1418
  default:
1416
1419
  return t.date({ width: "full" });
1417
1420
  }
1418
- }, Et = (e, t) => {
1421
+ }, Bt = (e, t) => {
1419
1422
  switch (e) {
1420
1423
  case "p":
1421
1424
  return t.time({ width: "short" });
@@ -1427,10 +1430,10 @@ const gt = (e, t) => {
1427
1430
  default:
1428
1431
  return t.time({ width: "full" });
1429
1432
  }
1430
- }, Pr = (e, t) => {
1433
+ }, Fr = (e, t) => {
1431
1434
  const n = e.match(/(P+)(p+)?/) || [], r = n[1], a = n[2];
1432
1435
  if (!a)
1433
- return gt(e, t);
1436
+ return Mt(e, t);
1434
1437
  let o;
1435
1438
  switch (r) {
1436
1439
  case "P":
@@ -1447,47 +1450,47 @@ const gt = (e, t) => {
1447
1450
  o = t.dateTime({ width: "full" });
1448
1451
  break;
1449
1452
  }
1450
- return o.replace("{{date}}", gt(r, t)).replace("{{time}}", Et(a, t));
1451
- }, Er = {
1452
- p: Et,
1453
- P: Pr
1454
- }, _r = /^D+$/, Fr = /^Y+$/, Br = ["D", "DD", "YY", "YYYY"];
1455
- function Ir(e) {
1456
- return _r.test(e);
1457
- }
1458
- function Ar(e) {
1459
- return Fr.test(e);
1460
- }
1461
- function Hr(e, t, n) {
1462
- const r = qr(e, t, n);
1463
- if (console.warn(r), Br.includes(e)) throw new RangeError(r);
1464
- }
1465
- function qr(e, t, n) {
1453
+ return o.replace("{{date}}", Mt(r, t)).replace("{{time}}", Bt(a, t));
1454
+ }, Br = {
1455
+ p: Bt,
1456
+ P: Fr
1457
+ }, Ir = /^D+$/, Ar = /^Y+$/, Hr = ["D", "DD", "YY", "YYYY"];
1458
+ function qr(e) {
1459
+ return Ir.test(e);
1460
+ }
1461
+ function jr(e) {
1462
+ return Ar.test(e);
1463
+ }
1464
+ function zr(e, t, n) {
1465
+ const r = Gr(e, t, n);
1466
+ if (console.warn(r), Hr.includes(e)) throw new RangeError(r);
1467
+ }
1468
+ function Gr(e, t, n) {
1466
1469
  const r = e[0] === "Y" ? "years" : "days of the month";
1467
1470
  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`;
1468
1471
  }
1469
- const zr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, jr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Gr = /^'([^]*?)'?$/, $r = /''/g, Rr = /[a-zA-Z]/;
1472
+ const $r = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Rr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Vr = /^'([^]*?)'?$/, Ur = /''/g, Qr = /[a-zA-Z]/;
1470
1473
  function Me(e, t, n) {
1471
- var d, f, h, y, v, W, D, C;
1472
- const r = ke(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? se, o = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((f = (d = n == null ? void 0 : n.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((y = (h = r.locale) == null ? void 0 : h.options) == null ? void 0 : y.firstWeekContainsDate) ?? 1, s = (n == null ? void 0 : n.weekStartsOn) ?? ((W = (v = n == null ? void 0 : n.locale) == null ? void 0 : v.options) == null ? void 0 : W.weekStartsOn) ?? r.weekStartsOn ?? ((C = (D = r.locale) == null ? void 0 : D.options) == null ? void 0 : C.weekStartsOn) ?? 0, i = P(e, n == null ? void 0 : n.in);
1473
- if (!Rn(i))
1474
+ var d, f, h, y, D, W, v, C;
1475
+ const r = ke(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? se, o = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((f = (d = n == null ? void 0 : n.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((y = (h = r.locale) == null ? void 0 : h.options) == null ? void 0 : y.firstWeekContainsDate) ?? 1, s = (n == null ? void 0 : n.weekStartsOn) ?? ((W = (D = n == null ? void 0 : n.locale) == null ? void 0 : D.options) == null ? void 0 : W.weekStartsOn) ?? r.weekStartsOn ?? ((C = (v = r.locale) == null ? void 0 : v.options) == null ? void 0 : C.weekStartsOn) ?? 0, i = P(e, n == null ? void 0 : n.in);
1476
+ if (!Un(i))
1474
1477
  throw new RangeError("Invalid time value");
1475
- let c = t.match(jr).map((M) => {
1478
+ let c = t.match(Rr).map((M) => {
1476
1479
  const g = M[0];
1477
1480
  if (g === "p" || g === "P") {
1478
- const S = Er[g];
1481
+ const S = Br[g];
1479
1482
  return S(M, a.formatLong);
1480
1483
  }
1481
1484
  return M;
1482
- }).join("").match(zr).map((M) => {
1485
+ }).join("").match($r).map((M) => {
1483
1486
  if (M === "''")
1484
1487
  return { isToken: !1, value: "'" };
1485
1488
  const g = M[0];
1486
1489
  if (g === "'")
1487
- return { isToken: !1, value: Vr(M) };
1488
- if (ht[g])
1490
+ return { isToken: !1, value: Xr(M) };
1491
+ if (mt[g])
1489
1492
  return { isToken: !0, value: M };
1490
- if (g.match(Rr))
1493
+ if (g.match(Qr))
1491
1494
  throw new RangeError(
1492
1495
  "Format string contains an unescaped latin alphabet character `" + g + "`"
1493
1496
  );
@@ -1502,32 +1505,32 @@ function Me(e, t, n) {
1502
1505
  return c.map((M) => {
1503
1506
  if (!M.isToken) return M.value;
1504
1507
  const g = M.value;
1505
- (!(n != null && n.useAdditionalWeekYearTokens) && Ar(g) || !(n != null && n.useAdditionalDayOfYearTokens) && Ir(g)) && Hr(g, t, String(e));
1506
- const S = ht[g[0]];
1508
+ (!(n != null && n.useAdditionalWeekYearTokens) && jr(g) || !(n != null && n.useAdditionalDayOfYearTokens) && qr(g)) && zr(g, t, String(e));
1509
+ const S = mt[g[0]];
1507
1510
  return S(i, g, a.localize, u);
1508
1511
  }).join("");
1509
1512
  }
1510
- function Vr(e) {
1511
- const t = e.match(Gr);
1512
- return t ? t[1].replace($r, "'") : e;
1513
+ function Xr(e) {
1514
+ const t = e.match(Vr);
1515
+ return t ? t[1].replace(Ur, "'") : e;
1513
1516
  }
1514
- function Qr(e, t) {
1517
+ function Kr(e, t) {
1515
1518
  const n = P(e, t == null ? void 0 : t.in), r = n.getFullYear(), a = n.getMonth(), o = I(n, 0);
1516
1519
  return o.setFullYear(r, a + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
1517
1520
  }
1518
- function Xr(e, t) {
1521
+ function Jr(e, t) {
1519
1522
  return P(e, t == null ? void 0 : t.in).getMonth();
1520
1523
  }
1521
- function Ur(e, t) {
1524
+ function Zr(e, t) {
1522
1525
  return P(e, t == null ? void 0 : t.in).getFullYear();
1523
1526
  }
1524
- function Kr(e, t) {
1527
+ function Lr(e, t) {
1525
1528
  return +P(e) > +P(t);
1526
1529
  }
1527
- function Jr(e, t) {
1530
+ function ea(e, t) {
1528
1531
  return +P(e) < +P(t);
1529
1532
  }
1530
- function Zr(e, t, n) {
1533
+ function ta(e, t, n) {
1531
1534
  const [r, a] = be(
1532
1535
  n == null ? void 0 : n.in,
1533
1536
  e,
@@ -1535,7 +1538,7 @@ function Zr(e, t, n) {
1535
1538
  );
1536
1539
  return r.getFullYear() === a.getFullYear() && r.getMonth() === a.getMonth();
1537
1540
  }
1538
- function Lr(e, t, n) {
1541
+ function na(e, t, n) {
1539
1542
  const [r, a] = be(
1540
1543
  n == null ? void 0 : n.in,
1541
1544
  e,
@@ -1543,30 +1546,30 @@ function Lr(e, t, n) {
1543
1546
  );
1544
1547
  return r.getFullYear() === a.getFullYear();
1545
1548
  }
1546
- function ea(e, t, n) {
1549
+ function ra(e, t, n) {
1547
1550
  const r = P(e, n == null ? void 0 : n.in), a = r.getFullYear(), o = r.getDate(), s = I(e, 0);
1548
1551
  s.setFullYear(a, t, 15), s.setHours(0, 0, 0, 0);
1549
- const i = Qr(s);
1552
+ const i = Kr(s);
1550
1553
  return r.setMonth(t, Math.min(o, i)), r;
1551
1554
  }
1552
- function ta(e, t, n) {
1555
+ function aa(e, t, n) {
1553
1556
  const r = P(e, n == null ? void 0 : n.in);
1554
1557
  return isNaN(+r) ? I(e, NaN) : (r.setFullYear(t), r);
1555
1558
  }
1556
- const Mt = 5, na = 4;
1557
- function ra(e, t) {
1558
- const n = t.startOfMonth(e), r = n.getDay() > 0 ? n.getDay() : 7, a = t.addDays(e, -r + 1), o = t.addDays(a, Mt * 7 - 1);
1559
- return t.getMonth(e) === t.getMonth(o) ? Mt : na;
1559
+ const wt = 5, oa = 4;
1560
+ function sa(e, t) {
1561
+ const n = t.startOfMonth(e), r = n.getDay() > 0 ? n.getDay() : 7, a = t.addDays(e, -r + 1), o = t.addDays(a, wt * 7 - 1);
1562
+ return t.getMonth(e) === t.getMonth(o) ? wt : oa;
1560
1563
  }
1561
- function _t(e, t) {
1564
+ function It(e, t) {
1562
1565
  const n = t.startOfMonth(e), r = n.getDay();
1563
1566
  return r === 1 ? n : r === 0 ? t.addDays(n, -6) : t.addDays(n, -1 * (r - 1));
1564
1567
  }
1565
- function aa(e, t) {
1566
- const n = _t(e, t), r = ra(e, t);
1568
+ function ia(e, t) {
1569
+ const n = It(e, t), r = sa(e, t);
1567
1570
  return t.addDays(n, r * 7 - 1);
1568
1571
  }
1569
- const Ft = {
1572
+ const At = {
1570
1573
  ...se,
1571
1574
  labels: {
1572
1575
  labelDayButton: (e, t, n, r) => {
@@ -1598,7 +1601,7 @@ const Ft = {
1598
1601
  }
1599
1602
  }
1600
1603
  };
1601
- class z {
1604
+ class j {
1602
1605
  /**
1603
1606
  * Creates an instance of `DateLib`.
1604
1607
  *
@@ -1614,28 +1617,28 @@ class z {
1614
1617
  return (s = this.overrides) != null && s.newDate ? this.overrides.newDate(r, a, o) : this.options.timeZone ? new A(r, a, o, this.options.timeZone) : new Date(r, a, o);
1615
1618
  }, this.addDays = (r, a) => {
1616
1619
  var o;
1617
- return (o = this.overrides) != null && o.addDays ? this.overrides.addDays(r, a) : Wt(r, a);
1620
+ return (o = this.overrides) != null && o.addDays ? this.overrides.addDays(r, a) : Ct(r, a);
1618
1621
  }, this.addMonths = (r, a) => {
1619
1622
  var o;
1620
- return (o = this.overrides) != null && o.addMonths ? this.overrides.addMonths(r, a) : St(r, a);
1623
+ return (o = this.overrides) != null && o.addMonths ? this.overrides.addMonths(r, a) : Nt(r, a);
1621
1624
  }, this.addWeeks = (r, a) => {
1622
1625
  var o;
1623
- return (o = this.overrides) != null && o.addWeeks ? this.overrides.addWeeks(r, a) : zn(r, a);
1626
+ return (o = this.overrides) != null && o.addWeeks ? this.overrides.addWeeks(r, a) : Gn(r, a);
1624
1627
  }, this.addYears = (r, a) => {
1625
1628
  var o;
1626
- return (o = this.overrides) != null && o.addYears ? this.overrides.addYears(r, a) : jn(r, a);
1629
+ return (o = this.overrides) != null && o.addYears ? this.overrides.addYears(r, a) : $n(r, a);
1627
1630
  }, this.differenceInCalendarDays = (r, a) => {
1628
1631
  var o;
1629
- return (o = this.overrides) != null && o.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(r, a) : Ue(r, a);
1632
+ return (o = this.overrides) != null && o.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(r, a) : Ke(r, a);
1630
1633
  }, this.differenceInCalendarMonths = (r, a) => {
1631
1634
  var o;
1632
- return (o = this.overrides) != null && o.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(r, a) : pt(r, a);
1635
+ return (o = this.overrides) != null && o.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(r, a) : Tt(r, a);
1633
1636
  }, this.eachMonthOfInterval = (r) => {
1634
1637
  var a;
1635
- return (a = this.overrides) != null && a.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(r) : Qn(r);
1638
+ return (a = this.overrides) != null && a.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(r) : Xn(r);
1636
1639
  }, this.eachYearOfInterval = (r) => {
1637
1640
  var i;
1638
- const a = (i = this.overrides) != null && i.eachYearOfInterval ? this.overrides.eachYearOfInterval(r) : Kn(r), o = new Set(a.map((c) => this.getYear(c)));
1641
+ const a = (i = this.overrides) != null && i.eachYearOfInterval ? this.overrides.eachYearOfInterval(r) : Zn(r), o = new Set(a.map((c) => this.getYear(c)));
1639
1642
  if (o.size === a.length)
1640
1643
  return a;
1641
1644
  const s = [];
@@ -1644,68 +1647,68 @@ class z {
1644
1647
  }), s;
1645
1648
  }, this.endOfBroadcastWeek = (r) => {
1646
1649
  var a;
1647
- return (a = this.overrides) != null && a.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(r) : aa(r, this);
1650
+ return (a = this.overrides) != null && a.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(r) : ia(r, this);
1648
1651
  }, this.endOfISOWeek = (r) => {
1649
1652
  var a;
1650
- return (a = this.overrides) != null && a.endOfISOWeek ? this.overrides.endOfISOWeek(r) : Jn(r);
1653
+ return (a = this.overrides) != null && a.endOfISOWeek ? this.overrides.endOfISOWeek(r) : Ln(r);
1651
1654
  }, this.endOfMonth = (r) => {
1652
1655
  var a;
1653
- return (a = this.overrides) != null && a.endOfMonth ? this.overrides.endOfMonth(r) : Vn(r);
1656
+ return (a = this.overrides) != null && a.endOfMonth ? this.overrides.endOfMonth(r) : Qn(r);
1654
1657
  }, this.endOfWeek = (r, a) => {
1655
1658
  var o;
1656
- return (o = this.overrides) != null && o.endOfWeek ? this.overrides.endOfWeek(r, a) : Tt(r, this.options);
1659
+ return (o = this.overrides) != null && o.endOfWeek ? this.overrides.endOfWeek(r, a) : _t(r, this.options);
1657
1660
  }, this.endOfYear = (r) => {
1658
1661
  var a;
1659
- return (a = this.overrides) != null && a.endOfYear ? this.overrides.endOfYear(r) : Un(r);
1662
+ return (a = this.overrides) != null && a.endOfYear ? this.overrides.endOfYear(r) : Jn(r);
1660
1663
  }, this.format = (r, a, o) => {
1661
1664
  var i;
1662
1665
  const s = (i = this.overrides) != null && i.format ? this.overrides.format(r, a, this.options) : Me(r, a, this.options);
1663
1666
  return this.options.numerals && this.options.numerals !== "latn" ? this.replaceDigits(s) : s;
1664
1667
  }, this.getISOWeek = (r) => {
1665
1668
  var a;
1666
- return (a = this.overrides) != null && a.getISOWeek ? this.overrides.getISOWeek(r) : Ke(r);
1669
+ return (a = this.overrides) != null && a.getISOWeek ? this.overrides.getISOWeek(r) : Je(r);
1667
1670
  }, this.getMonth = (r, a) => {
1668
1671
  var o;
1669
- return (o = this.overrides) != null && o.getMonth ? this.overrides.getMonth(r, this.options) : Xr(r, this.options);
1672
+ return (o = this.overrides) != null && o.getMonth ? this.overrides.getMonth(r, this.options) : Jr(r, this.options);
1670
1673
  }, this.getYear = (r, a) => {
1671
1674
  var o;
1672
- return (o = this.overrides) != null && o.getYear ? this.overrides.getYear(r, this.options) : Ur(r, this.options);
1675
+ return (o = this.overrides) != null && o.getYear ? this.overrides.getYear(r, this.options) : Zr(r, this.options);
1673
1676
  }, this.getWeek = (r, a) => {
1674
1677
  var o;
1675
- return (o = this.overrides) != null && o.getWeek ? this.overrides.getWeek(r, this.options) : Je(r, this.options);
1678
+ return (o = this.overrides) != null && o.getWeek ? this.overrides.getWeek(r, this.options) : Ze(r, this.options);
1676
1679
  }, this.isAfter = (r, a) => {
1677
1680
  var o;
1678
- return (o = this.overrides) != null && o.isAfter ? this.overrides.isAfter(r, a) : Kr(r, a);
1681
+ return (o = this.overrides) != null && o.isAfter ? this.overrides.isAfter(r, a) : Lr(r, a);
1679
1682
  }, this.isBefore = (r, a) => {
1680
1683
  var o;
1681
- return (o = this.overrides) != null && o.isBefore ? this.overrides.isBefore(r, a) : Jr(r, a);
1684
+ return (o = this.overrides) != null && o.isBefore ? this.overrides.isBefore(r, a) : ea(r, a);
1682
1685
  }, this.isDate = (r) => {
1683
1686
  var a;
1684
- return (a = this.overrides) != null && a.isDate ? this.overrides.isDate(r) : Ct(r);
1687
+ return (a = this.overrides) != null && a.isDate ? this.overrides.isDate(r) : xt(r);
1685
1688
  }, this.isSameDay = (r, a) => {
1686
1689
  var o;
1687
- return (o = this.overrides) != null && o.isSameDay ? this.overrides.isSameDay(r, a) : Pn(r, a);
1690
+ return (o = this.overrides) != null && o.isSameDay ? this.overrides.isSameDay(r, a) : _n(r, a);
1688
1691
  }, this.isSameMonth = (r, a) => {
1689
1692
  var o;
1690
- return (o = this.overrides) != null && o.isSameMonth ? this.overrides.isSameMonth(r, a) : Zr(r, a);
1693
+ return (o = this.overrides) != null && o.isSameMonth ? this.overrides.isSameMonth(r, a) : ta(r, a);
1691
1694
  }, this.isSameYear = (r, a) => {
1692
1695
  var o;
1693
- return (o = this.overrides) != null && o.isSameYear ? this.overrides.isSameYear(r, a) : Lr(r, a);
1696
+ return (o = this.overrides) != null && o.isSameYear ? this.overrides.isSameYear(r, a) : na(r, a);
1694
1697
  }, this.max = (r) => {
1695
1698
  var a;
1696
- return (a = this.overrides) != null && a.max ? this.overrides.max(r) : Gn(r);
1699
+ return (a = this.overrides) != null && a.max ? this.overrides.max(r) : Rn(r);
1697
1700
  }, this.min = (r) => {
1698
1701
  var a;
1699
- return (a = this.overrides) != null && a.min ? this.overrides.min(r) : $n(r);
1702
+ return (a = this.overrides) != null && a.min ? this.overrides.min(r) : Vn(r);
1700
1703
  }, this.setMonth = (r, a) => {
1701
1704
  var o;
1702
- return (o = this.overrides) != null && o.setMonth ? this.overrides.setMonth(r, a) : ea(r, a);
1705
+ return (o = this.overrides) != null && o.setMonth ? this.overrides.setMonth(r, a) : ra(r, a);
1703
1706
  }, this.setYear = (r, a) => {
1704
1707
  var o;
1705
- return (o = this.overrides) != null && o.setYear ? this.overrides.setYear(r, a) : ta(r, a);
1708
+ return (o = this.overrides) != null && o.setYear ? this.overrides.setYear(r, a) : aa(r, a);
1706
1709
  }, this.startOfBroadcastWeek = (r, a) => {
1707
1710
  var o;
1708
- return (o = this.overrides) != null && o.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(r, this) : _t(r, this);
1711
+ return (o = this.overrides) != null && o.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(r, this) : It(r, this);
1709
1712
  }, this.startOfDay = (r) => {
1710
1713
  var a;
1711
1714
  return (a = this.overrides) != null && a.startOfDay ? this.overrides.startOfDay(r) : Qe(r);
@@ -1714,14 +1717,14 @@ class z {
1714
1717
  return (a = this.overrides) != null && a.startOfISOWeek ? this.overrides.startOfISOWeek(r) : we(r);
1715
1718
  }, this.startOfMonth = (r) => {
1716
1719
  var a;
1717
- return (a = this.overrides) != null && a.startOfMonth ? this.overrides.startOfMonth(r) : Xn(r);
1720
+ return (a = this.overrides) != null && a.startOfMonth ? this.overrides.startOfMonth(r) : Kn(r);
1718
1721
  }, this.startOfWeek = (r, a) => {
1719
1722
  var o;
1720
1723
  return (o = this.overrides) != null && o.startOfWeek ? this.overrides.startOfWeek(r, this.options) : fe(r, this.options);
1721
1724
  }, this.startOfYear = (r) => {
1722
1725
  var a;
1723
- return (a = this.overrides) != null && a.startOfYear ? this.overrides.startOfYear(r) : xt(r);
1724
- }, this.options = { locale: Ft, ...t }, this.overrides = n;
1726
+ return (a = this.overrides) != null && a.startOfYear ? this.overrides.startOfYear(r) : Et(r);
1727
+ }, this.options = { locale: At, ...t }, this.overrides = n;
1725
1728
  }
1726
1729
  /**
1727
1730
  * Generates a mapping of Arabic digits (0-9) to the target numbering system
@@ -1766,7 +1769,7 @@ class z {
1766
1769
  getMonthYearOrder() {
1767
1770
  var n;
1768
1771
  const t = (n = this.options.locale) == null ? void 0 : n.code;
1769
- return t && z.yearFirstLocales.has(t) ? "year-first" : "month-first";
1772
+ return t && j.yearFirstLocales.has(t) ? "year-first" : "month-first";
1770
1773
  }
1771
1774
  /**
1772
1775
  * Formats the month/year pair respecting locale conventions.
@@ -1775,7 +1778,7 @@ class z {
1775
1778
  */
1776
1779
  formatMonthYear(t) {
1777
1780
  const { locale: n, timeZone: r, numerals: a } = this.options, o = n == null ? void 0 : n.code;
1778
- if (o && z.yearFirstLocales.has(o))
1781
+ if (o && j.yearFirstLocales.has(o))
1779
1782
  try {
1780
1783
  return new Intl.DateTimeFormat(o, {
1781
1784
  month: "long",
@@ -1789,7 +1792,7 @@ class z {
1789
1792
  return this.format(t, s);
1790
1793
  }
1791
1794
  }
1792
- z.yearFirstLocales = /* @__PURE__ */ new Set([
1795
+ j.yearFirstLocales = /* @__PURE__ */ new Set([
1793
1796
  "eu",
1794
1797
  "hu",
1795
1798
  "ja",
@@ -1808,8 +1811,8 @@ z.yearFirstLocales = /* @__PURE__ */ new Set([
1808
1811
  "zh-HK",
1809
1812
  "zh-TW"
1810
1813
  ]);
1811
- const Z = new z();
1812
- class Bt {
1814
+ const Z = new j();
1815
+ class Ht {
1813
1816
  constructor(t, n, r = Z) {
1814
1817
  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");
1815
1818
  }
@@ -1824,23 +1827,23 @@ class Bt {
1824
1827
  return this.dateLib.isSameDay(t.date, this.date) && this.dateLib.isSameMonth(t.displayMonth, this.displayMonth);
1825
1828
  }
1826
1829
  }
1827
- class oa {
1830
+ class ca {
1828
1831
  constructor(t, n) {
1829
1832
  this.date = t, this.weeks = n;
1830
1833
  }
1831
1834
  }
1832
- class sa {
1835
+ class ua {
1833
1836
  constructor(t, n) {
1834
1837
  this.days = n, this.weekNumber = t;
1835
1838
  }
1836
1839
  }
1837
- function ia(e) {
1840
+ function da(e) {
1838
1841
  return m.createElement("button", { ...e });
1839
1842
  }
1840
- function ca(e) {
1843
+ function fa(e) {
1841
1844
  return m.createElement("span", { ...e });
1842
1845
  }
1843
- function ua(e) {
1846
+ function la(e) {
1844
1847
  const { size: t = 24, orientation: n = "left", className: r } = e;
1845
1848
  return (
1846
1849
  // biome-ignore lint/a11y/noSvgWithoutTitle: handled by the parent component
@@ -1854,11 +1857,11 @@ function ua(e) {
1854
1857
  )
1855
1858
  );
1856
1859
  }
1857
- function da(e) {
1860
+ function ha(e) {
1858
1861
  const { day: t, modifiers: n, ...r } = e;
1859
1862
  return m.createElement("td", { ...r });
1860
1863
  }
1861
- function fa(e) {
1864
+ function ma(e) {
1862
1865
  const { day: t, modifiers: n, ...r } = e, a = m.useRef(null);
1863
1866
  return m.useEffect(() => {
1864
1867
  var o;
@@ -1873,15 +1876,15 @@ var _;
1873
1876
  (function(e) {
1874
1877
  e.disabled = "disabled", e.hidden = "hidden", e.outside = "outside", e.focused = "focused", e.today = "today";
1875
1878
  })(_ || (_ = {}));
1876
- var U;
1879
+ var X;
1877
1880
  (function(e) {
1878
1881
  e.range_end = "range_end", e.range_middle = "range_middle", e.range_start = "range_start", e.selected = "selected";
1879
- })(U || (U = {}));
1882
+ })(X || (X = {}));
1880
1883
  var q;
1881
1884
  (function(e) {
1882
1885
  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";
1883
1886
  })(q || (q = {}));
1884
- function la(e) {
1887
+ function ya(e) {
1885
1888
  const { options: t, className: n, components: r, classNames: a, ...o } = e, s = [a[w.Dropdown], n].join(" "), i = t == null ? void 0 : t.find(({ value: c }) => c === o.value);
1886
1889
  return m.createElement(
1887
1890
  "span",
@@ -1895,39 +1898,39 @@ function la(e) {
1895
1898
  )
1896
1899
  );
1897
1900
  }
1898
- function ha(e) {
1901
+ function ga(e) {
1899
1902
  return m.createElement("div", { ...e });
1900
1903
  }
1901
- function ma(e) {
1904
+ function Ma(e) {
1902
1905
  return m.createElement("div", { ...e });
1903
1906
  }
1904
- function ya(e) {
1907
+ function wa(e) {
1905
1908
  const { calendarMonth: t, displayIndex: n, ...r } = e;
1906
1909
  return m.createElement("div", { ...r }, e.children);
1907
1910
  }
1908
- function ga(e) {
1911
+ function ba(e) {
1909
1912
  const { calendarMonth: t, displayIndex: n, ...r } = e;
1910
1913
  return m.createElement("div", { ...r });
1911
1914
  }
1912
- function Ma(e) {
1915
+ function ka(e) {
1913
1916
  return m.createElement("table", { ...e });
1914
1917
  }
1915
- function wa(e) {
1918
+ function va(e) {
1916
1919
  return m.createElement("div", { ...e });
1917
1920
  }
1918
- const It = Cn(void 0);
1919
- function De() {
1920
- const e = pn(It);
1921
+ const qt = xn(void 0);
1922
+ function ve() {
1923
+ const e = Tn(qt);
1921
1924
  if (e === void 0)
1922
1925
  throw new Error("useDayPicker() must be used within a custom component.");
1923
1926
  return e;
1924
1927
  }
1925
- function ba(e) {
1926
- const { components: t } = De();
1928
+ function Da(e) {
1929
+ const { components: t } = ve();
1927
1930
  return m.createElement(t.Dropdown, { ...e });
1928
1931
  }
1929
- function ka(e) {
1930
- const { onPreviousClick: t, onNextClick: n, previousMonth: r, nextMonth: a, ...o } = e, { components: s, classNames: i, labels: { labelPrevious: c, labelNext: u } } = De(), d = $((h) => {
1932
+ function Oa(e) {
1933
+ const { onPreviousClick: t, onNextClick: n, previousMonth: r, nextMonth: a, ...o } = e, { components: s, classNames: i, labels: { labelPrevious: c, labelNext: u } } = ve(), d = $((h) => {
1931
1934
  a && (n == null || n(h));
1932
1935
  }, [a, n]), f = $((h) => {
1933
1936
  r && (t == null || t(h));
@@ -1947,102 +1950,102 @@ function ka(e) {
1947
1950
  )
1948
1951
  );
1949
1952
  }
1950
- function Da(e) {
1951
- const { components: t } = De();
1953
+ function Wa(e) {
1954
+ const { components: t } = ve();
1952
1955
  return m.createElement(t.Button, { ...e });
1953
1956
  }
1954
- function va(e) {
1957
+ function Sa(e) {
1955
1958
  return m.createElement("option", { ...e });
1956
1959
  }
1957
- function Oa(e) {
1958
- const { components: t } = De();
1960
+ function pa(e) {
1961
+ const { components: t } = ve();
1959
1962
  return m.createElement(t.Button, { ...e });
1960
1963
  }
1961
- function Wa(e) {
1964
+ function Ca(e) {
1962
1965
  const { rootRef: t, ...n } = e;
1963
1966
  return m.createElement("div", { ...n, ref: t });
1964
1967
  }
1965
- function Sa(e) {
1968
+ function Na(e) {
1966
1969
  return m.createElement("select", { ...e });
1967
1970
  }
1968
- function Na(e) {
1971
+ function Ya(e) {
1969
1972
  const { week: t, ...n } = e;
1970
1973
  return m.createElement("tr", { ...n });
1971
1974
  }
1972
- function Ca(e) {
1975
+ function xa(e) {
1973
1976
  return m.createElement("th", { ...e });
1974
1977
  }
1975
- function pa(e) {
1978
+ function Ta(e) {
1976
1979
  return m.createElement(
1977
1980
  "thead",
1978
1981
  { "aria-hidden": !0 },
1979
1982
  m.createElement("tr", { ...e })
1980
1983
  );
1981
1984
  }
1982
- function Ya(e) {
1985
+ function Pa(e) {
1983
1986
  const { week: t, ...n } = e;
1984
1987
  return m.createElement("th", { ...n });
1985
1988
  }
1986
- function xa(e) {
1989
+ function Ea(e) {
1987
1990
  return m.createElement("th", { ...e });
1988
1991
  }
1989
- function Ta(e) {
1992
+ function _a(e) {
1990
1993
  return m.createElement("tbody", { ...e });
1991
1994
  }
1992
- function Pa(e) {
1993
- const { components: t } = De();
1995
+ function Fa(e) {
1996
+ const { components: t } = ve();
1994
1997
  return m.createElement(t.Dropdown, { ...e });
1995
1998
  }
1996
- const Ea = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1999
+ const Ba = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1997
2000
  __proto__: null,
1998
- Button: ia,
1999
- CaptionLabel: ca,
2000
- Chevron: ua,
2001
- Day: da,
2002
- DayButton: fa,
2003
- Dropdown: la,
2004
- DropdownNav: ha,
2005
- Footer: ma,
2006
- Month: ya,
2007
- MonthCaption: ga,
2008
- MonthGrid: Ma,
2009
- Months: wa,
2010
- MonthsDropdown: ba,
2011
- Nav: ka,
2012
- NextMonthButton: Da,
2013
- Option: va,
2014
- PreviousMonthButton: Oa,
2015
- Root: Wa,
2016
- Select: Sa,
2017
- Week: Na,
2018
- WeekNumber: Ya,
2019
- WeekNumberHeader: xa,
2020
- Weekday: Ca,
2021
- Weekdays: pa,
2022
- Weeks: Ta,
2023
- YearsDropdown: Pa
2001
+ Button: da,
2002
+ CaptionLabel: fa,
2003
+ Chevron: la,
2004
+ Day: ha,
2005
+ DayButton: ma,
2006
+ Dropdown: ya,
2007
+ DropdownNav: ga,
2008
+ Footer: Ma,
2009
+ Month: wa,
2010
+ MonthCaption: ba,
2011
+ MonthGrid: ka,
2012
+ Months: va,
2013
+ MonthsDropdown: Da,
2014
+ Nav: Oa,
2015
+ NextMonthButton: Wa,
2016
+ Option: Sa,
2017
+ PreviousMonthButton: pa,
2018
+ Root: Ca,
2019
+ Select: Na,
2020
+ Week: Ya,
2021
+ WeekNumber: Pa,
2022
+ WeekNumberHeader: Ea,
2023
+ Weekday: xa,
2024
+ Weekdays: Ta,
2025
+ Weeks: _a,
2026
+ YearsDropdown: Fa
2024
2027
  }, Symbol.toStringTag, { value: "Module" }));
2025
2028
  function te(e, t, n = !1, r = Z) {
2026
2029
  let { from: a, to: o } = e;
2027
2030
  const { differenceInCalendarDays: s, isSameDay: i } = r;
2028
2031
  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;
2029
2032
  }
2030
- function Ze(e) {
2033
+ function Le(e) {
2031
2034
  return !!(e && typeof e == "object" && "before" in e && "after" in e);
2032
2035
  }
2033
- function xe(e) {
2036
+ function Te(e) {
2034
2037
  return !!(e && typeof e == "object" && "from" in e);
2035
2038
  }
2036
- function Le(e) {
2039
+ function et(e) {
2037
2040
  return !!(e && typeof e == "object" && "after" in e);
2038
2041
  }
2039
- function et(e) {
2042
+ function tt(e) {
2040
2043
  return !!(e && typeof e == "object" && "before" in e);
2041
2044
  }
2042
- function At(e) {
2045
+ function jt(e) {
2043
2046
  return !!(e && typeof e == "object" && "dayOfWeek" in e);
2044
2047
  }
2045
- function Ht(e, t) {
2048
+ function zt(e, t) {
2046
2049
  return Array.isArray(e) && e.every(t.isDate);
2047
2050
  }
2048
2051
  function ne(e, t, n = Z) {
@@ -2052,21 +2055,21 @@ function ne(e, t, n = Z) {
2052
2055
  return i;
2053
2056
  if (n.isDate(i))
2054
2057
  return a(e, i);
2055
- if (Ht(i, n))
2058
+ if (zt(i, n))
2056
2059
  return i.some((c) => a(e, c));
2057
- if (xe(i))
2060
+ if (Te(i))
2058
2061
  return te(i, e, !1, n);
2059
- if (At(i))
2062
+ if (jt(i))
2060
2063
  return Array.isArray(i.dayOfWeek) ? i.dayOfWeek.includes(e.getDay()) : i.dayOfWeek === e.getDay();
2061
- if (Ze(i)) {
2064
+ if (Le(i)) {
2062
2065
  const c = o(i.before, e), u = o(i.after, e), d = c > 0, f = u < 0;
2063
2066
  return s(i.before, i.after) ? f && d : d || f;
2064
2067
  }
2065
- return Le(i) ? o(e, i.after) > 0 : et(i) ? o(i.before, e) > 0 : typeof i == "function" ? i(e) : !1;
2068
+ return et(i) ? o(e, i.after) > 0 : tt(i) ? o(i.before, e) > 0 : typeof i == "function" ? i(e) : !1;
2066
2069
  });
2067
2070
  }
2068
- function _a(e, t, n, r, a) {
2069
- const { disabled: o, hidden: s, modifiers: i, showOutsideDays: c, broadcastCalendar: u, today: d = a.today() } = t, { isSameDay: f, isSameMonth: h, startOfMonth: y, isBefore: v, endOfMonth: W, isAfter: D } = a, C = n && y(n), M = r && W(r), g = {
2071
+ function Ia(e, t, n, r, a) {
2072
+ const { disabled: o, hidden: s, modifiers: i, showOutsideDays: c, broadcastCalendar: u, today: d = a.today() } = t, { isSameDay: f, isSameMonth: h, startOfMonth: y, isBefore: D, endOfMonth: W, isAfter: v } = a, C = n && y(n), M = r && W(r), g = {
2070
2073
  [_.focused]: [],
2071
2074
  [_.outside]: [],
2072
2075
  [_.disabled]: [],
@@ -2074,9 +2077,9 @@ function _a(e, t, n, r, a) {
2074
2077
  [_.today]: []
2075
2078
  }, S = {};
2076
2079
  for (const k of e) {
2077
- const { date: l, displayMonth: N } = k, E = !!(N && !h(l, N)), B = !!(C && v(l, C)), F = !!(M && D(l, M)), j = !!(o && ne(l, o, a)), re = !!(s && ne(l, s, a)) || B || F || // Broadcast calendar will show outside days as default
2080
+ const { date: l, displayMonth: p } = k, E = !!(p && !h(l, p)), B = !!(C && D(l, C)), F = !!(M && v(l, M)), z = !!(o && ne(l, o, a)), re = !!(s && ne(l, s, a)) || B || F || // Broadcast calendar will show outside days as default
2078
2081
  !u && !c && E || u && c === !1 && E, L = f(l, d);
2079
- E && g.outside.push(k), j && g.disabled.push(k), re && g.hidden.push(k), L && g.today.push(k), i && Object.keys(i).forEach((G) => {
2082
+ E && g.outside.push(k), z && g.disabled.push(k), re && g.hidden.push(k), L && g.today.push(k), i && Object.keys(i).forEach((G) => {
2080
2083
  const ce = i == null ? void 0 : i[G];
2081
2084
  ce && ne(l, ce, a) && (S[G] ? S[G].push(k) : S[G] = [k]);
2082
2085
  });
@@ -2088,30 +2091,30 @@ function _a(e, t, n, r, a) {
2088
2091
  [_.hidden]: !1,
2089
2092
  [_.outside]: !1,
2090
2093
  [_.today]: !1
2091
- }, N = {};
2094
+ }, p = {};
2092
2095
  for (const E in g) {
2093
2096
  const B = g[E];
2094
2097
  l[E] = B.some((F) => F === k);
2095
2098
  }
2096
2099
  for (const E in S)
2097
- N[E] = S[E].some((B) => B === k);
2100
+ p[E] = S[E].some((B) => B === k);
2098
2101
  return {
2099
2102
  ...l,
2100
2103
  // custom modifiers should override all the previous ones
2101
- ...N
2104
+ ...p
2102
2105
  };
2103
2106
  };
2104
2107
  }
2105
- function Fa(e, t, n = {}) {
2106
- return Object.entries(e).filter(([, a]) => a === !0).reduce((a, [o]) => (n[o] ? a.push(n[o]) : t[_[o]] ? a.push(t[_[o]]) : t[U[o]] && a.push(t[U[o]]), a), [t[w.Day]]);
2108
+ function Aa(e, t, n = {}) {
2109
+ return Object.entries(e).filter(([, a]) => a === !0).reduce((a, [o]) => (n[o] ? a.push(n[o]) : t[_[o]] ? a.push(t[_[o]]) : t[X[o]] && a.push(t[X[o]]), a), [t[w.Day]]);
2107
2110
  }
2108
- function Ba(e) {
2111
+ function Ha(e) {
2109
2112
  return {
2110
- ...Ea,
2113
+ ...Ba,
2111
2114
  ...e
2112
2115
  };
2113
2116
  }
2114
- function Ia(e) {
2117
+ function qa(e) {
2115
2118
  const t = {
2116
2119
  "data-mode": e.mode ?? void 0,
2117
2120
  "data-required": "required" in e ? e.required : void 0,
@@ -2124,142 +2127,142 @@ function Ia(e) {
2124
2127
  n.startsWith("data-") && (t[n] = r);
2125
2128
  }), t;
2126
2129
  }
2127
- function Aa() {
2130
+ function ja() {
2128
2131
  const e = {};
2129
2132
  for (const t in w)
2130
2133
  e[w[t]] = `rdp-${w[t]}`;
2131
2134
  for (const t in _)
2132
2135
  e[_[t]] = `rdp-${_[t]}`;
2133
- for (const t in U)
2134
- e[U[t]] = `rdp-${U[t]}`;
2136
+ for (const t in X)
2137
+ e[X[t]] = `rdp-${X[t]}`;
2135
2138
  for (const t in q)
2136
2139
  e[q[t]] = `rdp-${q[t]}`;
2137
2140
  return e;
2138
2141
  }
2139
- function qt(e, t, n) {
2140
- return (n ?? new z(t)).formatMonthYear(e);
2142
+ function Gt(e, t, n) {
2143
+ return (n ?? new j(t)).formatMonthYear(e);
2141
2144
  }
2142
- const Ha = qt;
2143
- function qa(e, t, n) {
2144
- return (n ?? new z(t)).format(e, "d");
2145
+ const za = Gt;
2146
+ function Ga(e, t, n) {
2147
+ return (n ?? new j(t)).format(e, "d");
2145
2148
  }
2146
- function za(e, t = Z) {
2149
+ function $a(e, t = Z) {
2147
2150
  return t.format(e, "LLLL");
2148
2151
  }
2149
- function ja(e, t, n) {
2150
- return (n ?? new z(t)).format(e, "cccccc");
2152
+ function Ra(e, t, n) {
2153
+ return (n ?? new j(t)).format(e, "cccccc");
2151
2154
  }
2152
- function Ga(e, t = Z) {
2155
+ function Va(e, t = Z) {
2153
2156
  return e < 10 ? t.formatNumber(`0${e.toLocaleString()}`) : t.formatNumber(`${e.toLocaleString()}`);
2154
2157
  }
2155
- function $a() {
2158
+ function Ua() {
2156
2159
  return "";
2157
2160
  }
2158
- function zt(e, t = Z) {
2161
+ function $t(e, t = Z) {
2159
2162
  return t.format(e, "yyyy");
2160
2163
  }
2161
- const Ra = zt, Va = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2164
+ const Qa = $t, Xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2162
2165
  __proto__: null,
2163
- formatCaption: qt,
2164
- formatDay: qa,
2165
- formatMonthCaption: Ha,
2166
- formatMonthDropdown: za,
2167
- formatWeekNumber: Ga,
2168
- formatWeekNumberHeader: $a,
2169
- formatWeekdayName: ja,
2170
- formatYearCaption: Ra,
2171
- formatYearDropdown: zt
2166
+ formatCaption: Gt,
2167
+ formatDay: Ga,
2168
+ formatMonthCaption: za,
2169
+ formatMonthDropdown: $a,
2170
+ formatWeekNumber: Va,
2171
+ formatWeekNumberHeader: Ua,
2172
+ formatWeekdayName: Ra,
2173
+ formatYearCaption: Qa,
2174
+ formatYearDropdown: $t
2172
2175
  }, Symbol.toStringTag, { value: "Module" }));
2173
- function Qa(e) {
2176
+ function Ka(e) {
2174
2177
  return e != null && e.formatMonthCaption && !e.formatCaption && (e.formatCaption = e.formatMonthCaption), e != null && e.formatYearCaption && !e.formatYearDropdown && (e.formatYearDropdown = e.formatYearCaption), {
2175
- ...Va,
2178
+ ...Xa,
2176
2179
  ...e
2177
2180
  };
2178
2181
  }
2179
- function tt(e, t, n, r) {
2180
- let a = (r ?? new z(n)).format(e, "PPPP");
2182
+ function nt(e, t, n, r) {
2183
+ let a = (r ?? new j(n)).format(e, "PPPP");
2181
2184
  return t.today && (a = `Today, ${a}`), t.selected && (a = `${a}, selected`), a;
2182
2185
  }
2183
- const Xa = tt;
2184
- function nt(e, t, n) {
2185
- return (n ?? new z(t)).formatMonthYear(e);
2186
+ const Ja = nt;
2187
+ function rt(e, t, n) {
2188
+ return (n ?? new j(t)).formatMonthYear(e);
2186
2189
  }
2187
- const Ua = nt;
2188
- function jt(e, t, n, r) {
2189
- let a = (r ?? new z(n)).format(e, "PPPP");
2190
+ const Za = rt;
2191
+ function Rt(e, t, n, r) {
2192
+ let a = (r ?? new j(n)).format(e, "PPPP");
2190
2193
  return t != null && t.today && (a = `Today, ${a}`), a;
2191
2194
  }
2192
- function Gt(e) {
2195
+ function Vt(e) {
2193
2196
  return "Choose the Month";
2194
2197
  }
2195
- function $t() {
2198
+ function Ut() {
2196
2199
  return "";
2197
2200
  }
2198
- const Ka = "Go to the Next Month";
2199
- function Rt(e, t) {
2200
- return Ka;
2201
+ const La = "Go to the Next Month";
2202
+ function Qt(e, t) {
2203
+ return La;
2201
2204
  }
2202
- function Vt(e) {
2205
+ function Xt(e) {
2203
2206
  return "Go to the Previous Month";
2204
2207
  }
2205
- function Qt(e, t, n) {
2206
- return (n ?? new z(t)).format(e, "cccc");
2208
+ function Kt(e, t, n) {
2209
+ return (n ?? new j(t)).format(e, "cccc");
2207
2210
  }
2208
- function Xt(e, t) {
2211
+ function Jt(e, t) {
2209
2212
  return `Week ${e}`;
2210
2213
  }
2211
- function Ut(e) {
2214
+ function Zt(e) {
2212
2215
  return "Week Number";
2213
2216
  }
2214
- function Kt(e) {
2217
+ function Lt(e) {
2215
2218
  return "Choose the Year";
2216
2219
  }
2217
- const Ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2220
+ const eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2218
2221
  __proto__: null,
2219
- labelCaption: Ua,
2220
- labelDay: Xa,
2221
- labelDayButton: tt,
2222
- labelGrid: nt,
2223
- labelGridcell: jt,
2224
- labelMonthDropdown: Gt,
2225
- labelNav: $t,
2226
- labelNext: Rt,
2227
- labelPrevious: Vt,
2228
- labelWeekNumber: Xt,
2229
- labelWeekNumberHeader: Ut,
2230
- labelWeekday: Qt,
2231
- labelYearDropdown: Kt
2232
- }, Symbol.toStringTag, { value: "Module" })), X = (e, t, n) => t || (n ? typeof n == "function" ? n : (...r) => n : e);
2233
- function Za(e, t) {
2222
+ labelCaption: Za,
2223
+ labelDay: Ja,
2224
+ labelDayButton: nt,
2225
+ labelGrid: rt,
2226
+ labelGridcell: Rt,
2227
+ labelMonthDropdown: Vt,
2228
+ labelNav: Ut,
2229
+ labelNext: Qt,
2230
+ labelPrevious: Xt,
2231
+ labelWeekNumber: Jt,
2232
+ labelWeekNumberHeader: Zt,
2233
+ labelWeekday: Kt,
2234
+ labelYearDropdown: Lt
2235
+ }, Symbol.toStringTag, { value: "Module" })), Q = (e, t, n) => t || (n ? typeof n == "function" ? n : (...r) => n : e);
2236
+ function to(e, t) {
2234
2237
  var r;
2235
2238
  const n = ((r = t.locale) == null ? void 0 : r.labels) ?? {};
2236
2239
  return {
2237
- ...Ja,
2240
+ ...eo,
2238
2241
  ...e ?? {},
2239
- labelDayButton: X(tt, e == null ? void 0 : e.labelDayButton, n.labelDayButton),
2240
- labelMonthDropdown: X(Gt, e == null ? void 0 : e.labelMonthDropdown, n.labelMonthDropdown),
2241
- labelNext: X(Rt, e == null ? void 0 : e.labelNext, n.labelNext),
2242
- labelPrevious: X(Vt, e == null ? void 0 : e.labelPrevious, n.labelPrevious),
2243
- labelWeekNumber: X(Xt, e == null ? void 0 : e.labelWeekNumber, n.labelWeekNumber),
2244
- labelYearDropdown: X(Kt, e == null ? void 0 : e.labelYearDropdown, n.labelYearDropdown),
2245
- labelGrid: X(nt, e == null ? void 0 : e.labelGrid, n.labelGrid),
2246
- labelGridcell: X(jt, e == null ? void 0 : e.labelGridcell, n.labelGridcell),
2247
- labelNav: X($t, e == null ? void 0 : e.labelNav, n.labelNav),
2248
- labelWeekNumberHeader: X(Ut, e == null ? void 0 : e.labelWeekNumberHeader, n.labelWeekNumberHeader),
2249
- labelWeekday: X(Qt, e == null ? void 0 : e.labelWeekday, n.labelWeekday)
2242
+ labelDayButton: Q(nt, e == null ? void 0 : e.labelDayButton, n.labelDayButton),
2243
+ labelMonthDropdown: Q(Vt, e == null ? void 0 : e.labelMonthDropdown, n.labelMonthDropdown),
2244
+ labelNext: Q(Qt, e == null ? void 0 : e.labelNext, n.labelNext),
2245
+ labelPrevious: Q(Xt, e == null ? void 0 : e.labelPrevious, n.labelPrevious),
2246
+ labelWeekNumber: Q(Jt, e == null ? void 0 : e.labelWeekNumber, n.labelWeekNumber),
2247
+ labelYearDropdown: Q(Lt, e == null ? void 0 : e.labelYearDropdown, n.labelYearDropdown),
2248
+ labelGrid: Q(rt, e == null ? void 0 : e.labelGrid, n.labelGrid),
2249
+ labelGridcell: Q(Rt, e == null ? void 0 : e.labelGridcell, n.labelGridcell),
2250
+ labelNav: Q(Ut, e == null ? void 0 : e.labelNav, n.labelNav),
2251
+ labelWeekNumberHeader: Q(Zt, e == null ? void 0 : e.labelWeekNumberHeader, n.labelWeekNumberHeader),
2252
+ labelWeekday: Q(Kt, e == null ? void 0 : e.labelWeekday, n.labelWeekday)
2250
2253
  };
2251
2254
  }
2252
- function La(e, t, n, r, a) {
2255
+ function no(e, t, n, r, a) {
2253
2256
  const { startOfMonth: o, startOfYear: s, endOfYear: i, eachMonthOfInterval: c, getMonth: u } = a;
2254
2257
  return c({
2255
2258
  start: s(e),
2256
2259
  end: i(e)
2257
2260
  }).map((h) => {
2258
- const y = r.formatMonthDropdown(h, a), v = u(h), W = t && h < o(t) || n && h > o(n) || !1;
2259
- return { value: v, label: y, disabled: W };
2261
+ const y = r.formatMonthDropdown(h, a), D = u(h), W = t && h < o(t) || n && h > o(n) || !1;
2262
+ return { value: D, label: y, disabled: W };
2260
2263
  });
2261
2264
  }
2262
- function eo(e, t = {}, n = {}) {
2265
+ function ro(e, t = {}, n = {}) {
2263
2266
  let r = { ...t == null ? void 0 : t[w.Day] };
2264
2267
  return Object.entries(e).filter(([, a]) => a === !0).forEach(([a]) => {
2265
2268
  r = {
@@ -2268,7 +2271,7 @@ function eo(e, t = {}, n = {}) {
2268
2271
  };
2269
2272
  }), r;
2270
2273
  }
2271
- function to(e, t, n, r) {
2274
+ function ao(e, t, n, r) {
2272
2275
  const a = r ?? e.today(), o = n ? e.startOfBroadcastWeek(a, e) : t ? e.startOfISOWeek(a) : e.startOfWeek(a), s = [];
2273
2276
  for (let i = 0; i < 7; i++) {
2274
2277
  const c = e.addDays(o, i);
@@ -2276,7 +2279,7 @@ function to(e, t, n, r) {
2276
2279
  }
2277
2280
  return s;
2278
2281
  }
2279
- function no(e, t, n, r, a = !1) {
2282
+ function oo(e, t, n, r, a = !1) {
2280
2283
  if (!e || !t)
2281
2284
  return;
2282
2285
  const { startOfYear: o, endOfYear: s, eachYearOfInterval: i, getYear: c } = r, u = o(e), d = s(t), f = i({ start: u, end: d });
@@ -2289,7 +2292,7 @@ function no(e, t, n, r, a = !1) {
2289
2292
  };
2290
2293
  });
2291
2294
  }
2292
- function ro(e, t = {}) {
2295
+ function so(e, t = {}) {
2293
2296
  var i;
2294
2297
  const { weekStartsOn: n, locale: r } = t, a = n ?? ((i = r == null ? void 0 : r.options) == null ? void 0 : i.weekStartsOn) ?? 0, o = (c) => {
2295
2298
  const u = typeof c == "number" || typeof c == "string" ? new Date(c) : c;
@@ -2367,78 +2370,78 @@ function ro(e, t = {}) {
2367
2370
  getWeek: (c, u) => {
2368
2371
  var f;
2369
2372
  const d = s(c);
2370
- return Je(d, {
2373
+ return Ze(d, {
2371
2374
  weekStartsOn: (u == null ? void 0 : u.weekStartsOn) ?? a,
2372
2375
  firstWeekContainsDate: (u == null ? void 0 : u.firstWeekContainsDate) ?? ((f = r == null ? void 0 : r.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1
2373
2376
  });
2374
2377
  },
2375
2378
  getISOWeek: (c) => {
2376
2379
  const u = s(c);
2377
- return Ke(u);
2380
+ return Je(u);
2378
2381
  },
2379
2382
  differenceInCalendarDays: (c, u) => {
2380
2383
  const d = s(c), f = s(u);
2381
- return Ue(d, f);
2384
+ return Ke(d, f);
2382
2385
  },
2383
2386
  differenceInCalendarMonths: (c, u) => {
2384
2387
  const d = s(c), f = s(u);
2385
- return pt(d, f);
2388
+ return Tt(d, f);
2386
2389
  }
2387
2390
  };
2388
2391
  }
2389
- const ve = (e) => e instanceof HTMLElement ? e : null, ze = (e) => [
2392
+ const De = (e) => e instanceof HTMLElement ? e : null, ze = (e) => [
2390
2393
  ...e.querySelectorAll("[data-animated-month]") ?? []
2391
- ], ao = (e) => ve(e.querySelector("[data-animated-month]")), je = (e) => ve(e.querySelector("[data-animated-caption]")), Ge = (e) => ve(e.querySelector("[data-animated-weeks]")), oo = (e) => ve(e.querySelector("[data-animated-nav]")), so = (e) => ve(e.querySelector("[data-animated-weekdays]"));
2392
- function io(e, t, { classNames: n, months: r, focused: a, dateLib: o }) {
2394
+ ], io = (e) => De(e.querySelector("[data-animated-month]")), Ge = (e) => De(e.querySelector("[data-animated-caption]")), $e = (e) => De(e.querySelector("[data-animated-weeks]")), co = (e) => De(e.querySelector("[data-animated-nav]")), uo = (e) => De(e.querySelector("[data-animated-weekdays]"));
2395
+ function fo(e, t, { classNames: n, months: r, focused: a, dateLib: o }) {
2393
2396
  const s = Ce(null), i = Ce(r), c = Ce(!1);
2394
- Yn(() => {
2397
+ Pn(() => {
2395
2398
  const u = i.current;
2396
2399
  if (i.current = r, !t || !e.current || // safety check because the ref can be set to anything by consumers
2397
2400
  !(e.current instanceof HTMLElement) || // validation required for the animation to work as expected
2398
2401
  r.length === 0 || u.length === 0 || r.length !== u.length)
2399
2402
  return;
2400
- const d = o.isSameMonth(r[0].date, u[0].date), f = o.isAfter(r[0].date, u[0].date), h = f ? n[q.caption_after_enter] : n[q.caption_before_enter], y = f ? n[q.weeks_after_enter] : n[q.weeks_before_enter], v = s.current, W = e.current.cloneNode(!0);
2403
+ const d = o.isSameMonth(r[0].date, u[0].date), f = o.isAfter(r[0].date, u[0].date), h = f ? n[q.caption_after_enter] : n[q.caption_before_enter], y = f ? n[q.weeks_after_enter] : n[q.weeks_before_enter], D = s.current, W = e.current.cloneNode(!0);
2401
2404
  if (W instanceof HTMLElement ? (ze(W).forEach((g) => {
2402
2405
  if (!(g instanceof HTMLElement))
2403
2406
  return;
2404
- const S = ao(g);
2407
+ const S = io(g);
2405
2408
  S && g.contains(S) && g.removeChild(S);
2406
- const k = je(g);
2409
+ const k = Ge(g);
2407
2410
  k && k.classList.remove(h);
2408
- const l = Ge(g);
2411
+ const l = $e(g);
2409
2412
  l && l.classList.remove(y);
2410
2413
  }), s.current = W) : s.current = null, c.current || d || // skip animation if a day is focused because it can cause issues to the animation and is better for a11y
2411
2414
  a)
2412
2415
  return;
2413
- const D = v instanceof HTMLElement ? ze(v) : [], C = ze(e.current);
2414
- if (C != null && C.every((M) => M instanceof HTMLElement) && D && D.every((M) => M instanceof HTMLElement)) {
2416
+ const v = D instanceof HTMLElement ? ze(D) : [], C = ze(e.current);
2417
+ if (C != null && C.every((M) => M instanceof HTMLElement) && v && v.every((M) => M instanceof HTMLElement)) {
2415
2418
  c.current = !0, e.current.style.isolation = "isolate";
2416
- const M = oo(e.current);
2419
+ const M = co(e.current);
2417
2420
  M && (M.style.zIndex = "1"), C.forEach((g, S) => {
2418
- const k = D[S];
2421
+ const k = v[S];
2419
2422
  if (!k)
2420
2423
  return;
2421
2424
  g.style.position = "relative", g.style.overflow = "hidden";
2422
- const l = je(g);
2425
+ const l = Ge(g);
2423
2426
  l && l.classList.add(h);
2424
- const N = Ge(g);
2425
- N && N.classList.add(y);
2427
+ const p = $e(g);
2428
+ p && p.classList.add(y);
2426
2429
  const E = () => {
2427
- c.current = !1, e.current && (e.current.style.isolation = ""), M && (M.style.zIndex = ""), l && l.classList.remove(h), N && N.classList.remove(y), g.style.position = "", g.style.overflow = "", g.contains(k) && g.removeChild(k);
2430
+ c.current = !1, e.current && (e.current.style.isolation = ""), M && (M.style.zIndex = ""), l && l.classList.remove(h), p && p.classList.remove(y), g.style.position = "", g.style.overflow = "", g.contains(k) && g.removeChild(k);
2428
2431
  };
2429
2432
  k.style.pointerEvents = "none", k.style.position = "absolute", k.style.overflow = "hidden", k.setAttribute("aria-hidden", "true");
2430
- const B = so(k);
2433
+ const B = uo(k);
2431
2434
  B && (B.style.opacity = "0");
2432
- const F = je(k);
2435
+ const F = Ge(k);
2433
2436
  F && (F.classList.add(f ? n[q.caption_before_exit] : n[q.caption_after_exit]), F.addEventListener("animationend", E));
2434
- const j = Ge(k);
2435
- j && j.classList.add(f ? n[q.weeks_before_exit] : n[q.weeks_after_exit]), g.insertBefore(k, g.firstChild);
2437
+ const z = $e(k);
2438
+ z && z.classList.add(f ? n[q.weeks_before_exit] : n[q.weeks_after_exit]), g.insertBefore(k, g.firstChild);
2436
2439
  });
2437
2440
  }
2438
2441
  });
2439
2442
  }
2440
- function co(e, t, n, r) {
2441
- const a = e[0], o = e[e.length - 1], { ISOWeek: s, fixedWeeks: i, broadcastCalendar: c } = n ?? {}, { addDays: u, differenceInCalendarDays: d, differenceInCalendarMonths: f, endOfBroadcastWeek: h, endOfISOWeek: y, endOfMonth: v, endOfWeek: W, isAfter: D, startOfBroadcastWeek: C, startOfISOWeek: M, startOfWeek: g } = r, S = c ? C(a, r) : s ? M(a) : g(a), k = c ? h(o) : s ? y(v(o)) : W(v(o)), l = t && (c ? h(t) : s ? y(t) : W(t)), N = l && D(k, l) ? l : k, E = d(N, S), B = f(o, a) + 1, F = [];
2443
+ function lo(e, t, n, r) {
2444
+ const a = e[0], o = e[e.length - 1], { ISOWeek: s, fixedWeeks: i, broadcastCalendar: c } = n ?? {}, { addDays: u, differenceInCalendarDays: d, differenceInCalendarMonths: f, endOfBroadcastWeek: h, endOfISOWeek: y, endOfMonth: D, endOfWeek: W, isAfter: v, startOfBroadcastWeek: C, startOfISOWeek: M, startOfWeek: g } = r, S = c ? C(a, r) : s ? M(a) : g(a), k = c ? h(o) : s ? y(D(o)) : W(D(o)), l = t && (c ? h(t) : s ? y(t) : W(t)), p = l && v(k, l) ? l : k, E = d(p, S), B = f(o, a) + 1, F = [];
2442
2445
  for (let L = 0; L <= E; L++) {
2443
2446
  const G = u(S, L);
2444
2447
  F.push(G);
@@ -2453,14 +2456,14 @@ function co(e, t, n, r) {
2453
2456
  }
2454
2457
  return F;
2455
2458
  }
2456
- function uo(e) {
2459
+ function ho(e) {
2457
2460
  const t = [];
2458
2461
  return e.reduce((n, r) => {
2459
2462
  const a = r.weeks.reduce((o, s) => o.concat(s.days.slice()), t.slice());
2460
2463
  return n.concat(a.slice());
2461
2464
  }, t.slice());
2462
2465
  }
2463
- function fo(e, t, n, r) {
2466
+ function mo(e, t, n, r) {
2464
2467
  const { numberOfMonths: a = 1 } = n, o = [];
2465
2468
  for (let s = 0; s < a; s++) {
2466
2469
  const i = r.addMonths(e, s);
@@ -2470,7 +2473,7 @@ function fo(e, t, n, r) {
2470
2473
  }
2471
2474
  return o;
2472
2475
  }
2473
- function wt(e, t, n, r) {
2476
+ function bt(e, t, n, r) {
2474
2477
  const { month: a, defaultMonth: o, today: s = r.today(), numberOfMonths: i = 1 } = e;
2475
2478
  let c = a || o || s;
2476
2479
  const { differenceInCalendarMonths: u, addMonths: d, startOfMonth: f } = r;
@@ -2480,35 +2483,35 @@ function wt(e, t, n, r) {
2480
2483
  }
2481
2484
  return t && u(c, t) < 0 && (c = t), f(c);
2482
2485
  }
2483
- function lo(e, t, n, r) {
2484
- const { addDays: a, endOfBroadcastWeek: o, endOfISOWeek: s, endOfMonth: i, endOfWeek: c, getISOWeek: u, getWeek: d, startOfBroadcastWeek: f, startOfISOWeek: h, startOfWeek: y } = r, v = e.reduce((W, D) => {
2485
- const C = n.broadcastCalendar ? f(D, r) : n.ISOWeek ? h(D) : y(D), M = n.broadcastCalendar ? o(D) : n.ISOWeek ? s(i(D)) : c(i(D)), g = t.filter((N) => N >= C && N <= M), S = n.broadcastCalendar ? 35 : 42;
2486
+ function yo(e, t, n, r) {
2487
+ const { addDays: a, endOfBroadcastWeek: o, endOfISOWeek: s, endOfMonth: i, endOfWeek: c, getISOWeek: u, getWeek: d, startOfBroadcastWeek: f, startOfISOWeek: h, startOfWeek: y } = r, D = e.reduce((W, v) => {
2488
+ const C = n.broadcastCalendar ? f(v, r) : n.ISOWeek ? h(v) : y(v), M = n.broadcastCalendar ? o(v) : n.ISOWeek ? s(i(v)) : c(i(v)), g = t.filter((p) => p >= C && p <= M), S = n.broadcastCalendar ? 35 : 42;
2486
2489
  if (n.fixedWeeks && g.length < S) {
2487
- const N = t.filter((E) => {
2490
+ const p = t.filter((E) => {
2488
2491
  const B = S - g.length;
2489
2492
  return E > M && E <= a(M, B);
2490
2493
  });
2491
- g.push(...N);
2494
+ g.push(...p);
2492
2495
  }
2493
- const k = g.reduce((N, E) => {
2494
- const B = n.ISOWeek ? u(E) : d(E), F = N.find((re) => re.weekNumber === B), j = new Bt(E, D, r);
2495
- return F ? F.days.push(j) : N.push(new sa(B, [j])), N;
2496
- }, []), l = new oa(D, k);
2496
+ const k = g.reduce((p, E) => {
2497
+ const B = n.ISOWeek ? u(E) : d(E), F = p.find((re) => re.weekNumber === B), z = new Ht(E, v, r);
2498
+ return F ? F.days.push(z) : p.push(new ua(B, [z])), p;
2499
+ }, []), l = new ca(v, k);
2497
2500
  return W.push(l), W;
2498
2501
  }, []);
2499
- return n.reverseMonths ? v.reverse() : v;
2502
+ return n.reverseMonths ? D.reverse() : D;
2500
2503
  }
2501
- function ho(e, t) {
2504
+ function go(e, t) {
2502
2505
  let { startMonth: n, endMonth: r } = e;
2503
- const { startOfYear: a, startOfDay: o, startOfMonth: s, endOfMonth: i, addYears: c, endOfYear: u, newDate: d, today: f } = t, { fromYear: h, toYear: y, fromMonth: v, toMonth: W } = e;
2504
- !n && v && (n = v), !n && h && (n = t.newDate(h, 0, 1)), !r && W && (r = W), !r && y && (r = d(y, 11, 31));
2505
- const D = e.captionLayout === "dropdown" || e.captionLayout === "dropdown-years";
2506
- return n ? n = s(n) : h ? n = d(h, 0, 1) : !n && D && (n = a(c(e.today ?? f(), -100))), r ? r = i(r) : y ? r = d(y, 11, 31) : !r && D && (r = u(e.today ?? f())), [
2506
+ const { startOfYear: a, startOfDay: o, startOfMonth: s, endOfMonth: i, addYears: c, endOfYear: u, newDate: d, today: f } = t, { fromYear: h, toYear: y, fromMonth: D, toMonth: W } = e;
2507
+ !n && D && (n = D), !n && h && (n = t.newDate(h, 0, 1)), !r && W && (r = W), !r && y && (r = d(y, 11, 31));
2508
+ const v = e.captionLayout === "dropdown" || e.captionLayout === "dropdown-years";
2509
+ return n ? n = s(n) : h ? n = d(h, 0, 1) : !n && v && (n = a(c(e.today ?? f(), -100))), r ? r = i(r) : y ? r = d(y, 11, 31) : !r && v && (r = u(e.today ?? f())), [
2507
2510
  n && o(n),
2508
2511
  r && o(r)
2509
2512
  ];
2510
2513
  }
2511
- function mo(e, t, n, r) {
2514
+ function Mo(e, t, n, r) {
2512
2515
  if (n.disableNavigation)
2513
2516
  return;
2514
2517
  const { pagedNavigation: a, numberOfMonths: o = 1 } = n, { startOfMonth: s, addMonths: i, differenceInCalendarMonths: c } = r, u = a ? o : 1, d = s(e);
@@ -2517,7 +2520,7 @@ function mo(e, t, n, r) {
2517
2520
  if (!(c(t, e) < o))
2518
2521
  return i(d, u);
2519
2522
  }
2520
- function yo(e, t, n, r) {
2523
+ function wo(e, t, n, r) {
2521
2524
  if (n.disableNavigation)
2522
2525
  return;
2523
2526
  const { pagedNavigation: a, numberOfMonths: o } = n, { startOfMonth: s, addMonths: i, differenceInCalendarMonths: c } = r, u = a ? o ?? 1 : 1, d = s(e);
@@ -2526,42 +2529,42 @@ function yo(e, t, n, r) {
2526
2529
  if (!(c(d, t) <= 0))
2527
2530
  return i(d, -u);
2528
2531
  }
2529
- function go(e) {
2532
+ function bo(e) {
2530
2533
  const t = [];
2531
2534
  return e.reduce((n, r) => n.concat(r.weeks.slice()), t.slice());
2532
2535
  }
2533
- function Te(e, t) {
2534
- const [n, r] = Ve(e);
2536
+ function Pe(e, t) {
2537
+ const [n, r] = Ye(e);
2535
2538
  return [t === void 0 ? n : t, r];
2536
2539
  }
2537
- function Mo(e, t) {
2540
+ function ko(e, t) {
2538
2541
  var S;
2539
- const [n, r] = ho(e, t), { startOfMonth: a, endOfMonth: o } = t, s = wt(e, n, r, t), [i, c] = Te(
2542
+ const [n, r] = go(e, t), { startOfMonth: a, endOfMonth: o } = t, s = bt(e, n, r, t), [i, c] = Pe(
2540
2543
  s,
2541
2544
  // initialMonth is always computed from props.month if provided
2542
2545
  e.month ? s : void 0
2543
2546
  );
2544
- xn(() => {
2545
- const k = wt(e, n, r, t);
2547
+ Wt(() => {
2548
+ const k = bt(e, n, r, t);
2546
2549
  c(k);
2547
2550
  }, [e.timeZone]);
2548
- const { months: u, weeks: d, days: f, previousMonth: h, nextMonth: y } = pe(() => {
2549
- const k = fo(i, r, { numberOfMonths: e.numberOfMonths }, t), l = co(k, e.endMonth ? o(e.endMonth) : void 0, {
2551
+ const { months: u, weeks: d, days: f, previousMonth: h, nextMonth: y } = Ne(() => {
2552
+ const k = mo(i, r, { numberOfMonths: e.numberOfMonths }, t), l = lo(k, e.endMonth ? o(e.endMonth) : void 0, {
2550
2553
  ISOWeek: e.ISOWeek,
2551
2554
  fixedWeeks: e.fixedWeeks,
2552
2555
  broadcastCalendar: e.broadcastCalendar
2553
- }, t), N = lo(k, l, {
2556
+ }, t), p = yo(k, l, {
2554
2557
  broadcastCalendar: e.broadcastCalendar,
2555
2558
  fixedWeeks: e.fixedWeeks,
2556
2559
  ISOWeek: e.ISOWeek,
2557
2560
  reverseMonths: e.reverseMonths
2558
- }, t), E = go(N), B = uo(N), F = yo(i, n, e, t), j = mo(i, r, e, t);
2561
+ }, t), E = bo(p), B = ho(p), F = wo(i, n, e, t), z = Mo(i, r, e, t);
2559
2562
  return {
2560
- months: N,
2563
+ months: p,
2561
2564
  weeks: E,
2562
2565
  days: B,
2563
2566
  previousMonth: F,
2564
- nextMonth: j
2567
+ nextMonth: z
2565
2568
  };
2566
2569
  }, [
2567
2570
  t,
@@ -2576,8 +2579,8 @@ function Mo(e, t) {
2576
2579
  e.numberOfMonths,
2577
2580
  e.pagedNavigation,
2578
2581
  e.reverseMonths
2579
- ]), { disableNavigation: v, onMonthChange: W } = e, D = (k) => d.some((l) => l.days.some((N) => N.isEqualTo(k))), C = (k) => {
2580
- if (v)
2582
+ ]), { disableNavigation: D, onMonthChange: W } = e, v = (k) => d.some((l) => l.days.some((p) => p.isEqualTo(k))), C = (k) => {
2583
+ if (D)
2581
2584
  return;
2582
2585
  let l = a(k);
2583
2586
  n && l < a(n) && (l = a(n)), r && l > a(r) && (l = a(r)), c(l), W == null || W(l);
@@ -2592,7 +2595,7 @@ function Mo(e, t) {
2592
2595
  nextMonth: y,
2593
2596
  goToMonth: C,
2594
2597
  goToDay: (k) => {
2595
- D(k) || C(k.date);
2598
+ v(k) || C(k.date);
2596
2599
  }
2597
2600
  };
2598
2601
  }
@@ -2600,37 +2603,37 @@ var K;
2600
2603
  (function(e) {
2601
2604
  e[e.Today = 0] = "Today", e[e.Selected = 1] = "Selected", e[e.LastFocused = 2] = "LastFocused", e[e.FocusedModifier = 3] = "FocusedModifier";
2602
2605
  })(K || (K = {}));
2603
- function bt(e) {
2606
+ function kt(e) {
2604
2607
  return !e[_.disabled] && !e[_.hidden] && !e[_.outside];
2605
2608
  }
2606
- function wo(e, t, n, r) {
2609
+ function vo(e, t, n, r) {
2607
2610
  let a, o = -1;
2608
2611
  for (const s of e) {
2609
2612
  const i = t(s);
2610
- bt(i) && (i[_.focused] && o < K.FocusedModifier ? (a = s, o = K.FocusedModifier) : r != null && r.isEqualTo(s) && o < K.LastFocused ? (a = s, o = K.LastFocused) : n(s.date) && o < K.Selected ? (a = s, o = K.Selected) : i[_.today] && o < K.Today && (a = s, o = K.Today));
2613
+ kt(i) && (i[_.focused] && o < K.FocusedModifier ? (a = s, o = K.FocusedModifier) : r != null && r.isEqualTo(s) && o < K.LastFocused ? (a = s, o = K.LastFocused) : n(s.date) && o < K.Selected ? (a = s, o = K.Selected) : i[_.today] && o < K.Today && (a = s, o = K.Today));
2611
2614
  }
2612
- return a || (a = e.find((s) => bt(t(s)))), a;
2615
+ return a || (a = e.find((s) => kt(t(s)))), a;
2613
2616
  }
2614
- function bo(e, t, n, r, a, o, s) {
2615
- const { ISOWeek: i, broadcastCalendar: c } = o, { addDays: u, addMonths: d, addWeeks: f, addYears: h, endOfBroadcastWeek: y, endOfISOWeek: v, endOfWeek: W, max: D, min: C, startOfBroadcastWeek: M, startOfISOWeek: g, startOfWeek: S } = s;
2617
+ function Do(e, t, n, r, a, o, s) {
2618
+ const { ISOWeek: i, broadcastCalendar: c } = o, { addDays: u, addMonths: d, addWeeks: f, addYears: h, endOfBroadcastWeek: y, endOfISOWeek: D, endOfWeek: W, max: v, min: C, startOfBroadcastWeek: M, startOfISOWeek: g, startOfWeek: S } = s;
2616
2619
  let l = {
2617
2620
  day: u,
2618
2621
  week: f,
2619
2622
  month: d,
2620
2623
  year: h,
2621
- startOfWeek: (N) => c ? M(N, s) : i ? g(N) : S(N),
2622
- endOfWeek: (N) => c ? y(N) : i ? v(N) : W(N)
2624
+ startOfWeek: (p) => c ? M(p, s) : i ? g(p) : S(p),
2625
+ endOfWeek: (p) => c ? y(p) : i ? D(p) : W(p)
2623
2626
  }[e](n, t === "after" ? 1 : -1);
2624
- return t === "before" && r ? l = D([r, l]) : t === "after" && a && (l = C([a, l])), l;
2627
+ return t === "before" && r ? l = v([r, l]) : t === "after" && a && (l = C([a, l])), l;
2625
2628
  }
2626
- function Jt(e, t, n, r, a, o, s, i = 0) {
2629
+ function en(e, t, n, r, a, o, s, i = 0) {
2627
2630
  if (i > 365)
2628
2631
  return;
2629
- const c = bo(e, t, n.date, r, a, o, s), u = !!(o.disabled && ne(c, o.disabled, s)), d = !!(o.hidden && ne(c, o.hidden, s)), f = c, h = new Bt(c, f, s);
2630
- return !u && !d ? h : Jt(e, t, h, r, a, o, s, i + 1);
2632
+ const c = Do(e, t, n.date, r, a, o, s), u = !!(o.disabled && ne(c, o.disabled, s)), d = !!(o.hidden && ne(c, o.hidden, s)), f = c, h = new Ht(c, f, s);
2633
+ return !u && !d ? h : en(e, t, h, r, a, o, s, i + 1);
2631
2634
  }
2632
- function ko(e, t, n, r, a) {
2633
- const { autoFocus: o } = e, [s, i] = Ve(), c = wo(t.days, n, r || (() => !1), s), [u, d] = Ve(o ? c : void 0);
2635
+ function Oo(e, t, n, r, a) {
2636
+ const { autoFocus: o } = e, [s, i] = Ye(), c = vo(t.days, n, r || (() => !1), s), [u, d] = Ye(o ? c : void 0);
2634
2637
  return {
2635
2638
  isFocusTarget: (W) => !!(c != null && c.isEqualTo(W)),
2636
2639
  setFocused: d,
@@ -2638,32 +2641,32 @@ function ko(e, t, n, r, a) {
2638
2641
  blur: () => {
2639
2642
  i(u), d(void 0);
2640
2643
  },
2641
- moveFocus: (W, D) => {
2644
+ moveFocus: (W, v) => {
2642
2645
  if (!u)
2643
2646
  return;
2644
- const C = Jt(W, D, u, t.navStart, t.navEnd, e, a);
2647
+ const C = en(W, v, u, t.navStart, t.navEnd, e, a);
2645
2648
  C && (e.disableNavigation && !t.days.some((g) => g.isEqualTo(C)) || (t.goToDay(C), d(C)));
2646
2649
  }
2647
2650
  };
2648
2651
  }
2649
- function Do(e, t) {
2650
- const { selected: n, required: r, onSelect: a } = e, [o, s] = Te(n, a ? n : void 0), i = a ? n : o, { isSameDay: c } = t, u = (y) => (i == null ? void 0 : i.some((v) => c(v, y))) ?? !1, { min: d, max: f } = e;
2652
+ function Wo(e, t) {
2653
+ const { selected: n, required: r, onSelect: a } = e, [o, s] = Pe(n, a ? n : void 0), i = a ? n : o, { isSameDay: c } = t, u = (y) => (i == null ? void 0 : i.some((D) => c(D, y))) ?? !1, { min: d, max: f } = e;
2651
2654
  return {
2652
2655
  selected: i,
2653
- select: (y, v, W) => {
2654
- let D = [...i ?? []];
2656
+ select: (y, D, W) => {
2657
+ let v = [...i ?? []];
2655
2658
  if (u(y)) {
2656
2659
  if ((i == null ? void 0 : i.length) === d || r && (i == null ? void 0 : i.length) === 1)
2657
2660
  return;
2658
- D = i == null ? void 0 : i.filter((C) => !c(C, y));
2661
+ v = i == null ? void 0 : i.filter((C) => !c(C, y));
2659
2662
  } else
2660
- (i == null ? void 0 : i.length) === f ? D = [y] : D = [...D, y];
2661
- return a || s(D), a == null || a(D, y, v, W), D;
2663
+ (i == null ? void 0 : i.length) === f ? v = [y] : v = [...v, y];
2664
+ return a || s(v), a == null || a(v, y, D, W), v;
2662
2665
  },
2663
2666
  isSelected: u
2664
2667
  };
2665
2668
  }
2666
- function vo(e, t, n = 0, r = 0, a = !1, o = Z) {
2669
+ function So(e, t, n = 0, r = 0, a = !1, o = Z) {
2667
2670
  const { from: s, to: i } = t || {}, { isSameDay: c, isAfter: u, isBefore: d } = o;
2668
2671
  let f;
2669
2672
  if (!s && !i)
@@ -2691,7 +2694,7 @@ function vo(e, t, n = 0, r = 0, a = !1, o = Z) {
2691
2694
  }
2692
2695
  return f;
2693
2696
  }
2694
- function Oo(e, t, n = Z) {
2697
+ function po(e, t, n = Z) {
2695
2698
  const r = Array.isArray(t) ? t : [t];
2696
2699
  let a = e.from;
2697
2700
  const o = n.differenceInCalendarDays(e.to, e.from), s = Math.min(o, 6);
@@ -2702,15 +2705,15 @@ function Oo(e, t, n = Z) {
2702
2705
  }
2703
2706
  return !1;
2704
2707
  }
2705
- function kt(e, t, n = Z) {
2708
+ function vt(e, t, n = Z) {
2706
2709
  return te(e, t.from, !1, n) || te(e, t.to, !1, n) || te(t, e.from, !1, n) || te(t, e.to, !1, n);
2707
2710
  }
2708
- function Wo(e, t, n = Z) {
2711
+ function Co(e, t, n = Z) {
2709
2712
  const r = Array.isArray(t) ? t : [t];
2710
- if (r.filter((i) => typeof i != "function").some((i) => typeof i == "boolean" ? i : n.isDate(i) ? te(e, i, !1, n) : Ht(i, n) ? i.some((c) => te(e, c, !1, n)) : xe(i) ? i.from && i.to ? kt(e, { from: i.from, to: i.to }, n) : !1 : At(i) ? Oo(e, i.dayOfWeek, n) : Ze(i) ? n.isAfter(i.before, i.after) ? kt(e, {
2713
+ if (r.filter((i) => typeof i != "function").some((i) => typeof i == "boolean" ? i : n.isDate(i) ? te(e, i, !1, n) : zt(i, n) ? i.some((c) => te(e, c, !1, n)) : Te(i) ? i.from && i.to ? vt(e, { from: i.from, to: i.to }, n) : !1 : jt(i) ? po(e, i.dayOfWeek, n) : Le(i) ? n.isAfter(i.before, i.after) ? vt(e, {
2711
2714
  from: n.addDays(i.after, 1),
2712
2715
  to: n.addDays(i.before, -1)
2713
- }, n) : ne(e.from, i, n) || ne(e.to, i, n) : Le(i) || et(i) ? ne(e.from, i, n) || ne(e.to, i, n) : !1))
2716
+ }, n) : ne(e.from, i, n) || ne(e.to, i, n) : et(i) || tt(i) ? ne(e.from, i, n) || ne(e.to, i, n) : !1))
2714
2717
  return !0;
2715
2718
  const s = r.filter((i) => typeof i == "function");
2716
2719
  if (s.length) {
@@ -2724,35 +2727,35 @@ function Wo(e, t, n = Z) {
2724
2727
  }
2725
2728
  return !1;
2726
2729
  }
2727
- function So(e, t) {
2728
- const { disabled: n, excludeDisabled: r, resetOnSelect: a, selected: o, required: s, onSelect: i } = e, [c, u] = Te(o, i ? o : void 0), d = i ? o : c;
2730
+ function No(e, t) {
2731
+ const { disabled: n, excludeDisabled: r, resetOnSelect: a, selected: o, required: s, onSelect: i } = e, [c, u] = Pe(o, i ? o : void 0), d = i ? o : c;
2729
2732
  return {
2730
2733
  selected: d,
2731
- select: (y, v, W) => {
2732
- const { min: D, max: C } = e;
2734
+ select: (y, D, W) => {
2735
+ const { min: v, max: C } = e;
2733
2736
  let M;
2734
2737
  if (y) {
2735
2738
  const g = d == null ? void 0 : d.from, S = d == null ? void 0 : d.to, k = !!g && !!S, l = !!g && !!S && t.isSameDay(g, S) && t.isSameDay(y, g);
2736
- a && (k || !(d != null && d.from)) ? !s && l ? M = void 0 : M = { from: y, to: void 0 } : M = vo(y, d, D, C, s, t);
2739
+ a && (k || !(d != null && d.from)) ? !s && l ? M = void 0 : M = { from: y, to: void 0 } : M = So(y, d, v, C, s, t);
2737
2740
  }
2738
- return r && n && (M != null && M.from) && M.to && Wo({ from: M.from, to: M.to }, n, t) && (M.from = y, M.to = void 0), i || u(M), i == null || i(M, y, v, W), M;
2741
+ return r && n && (M != null && M.from) && M.to && Co({ from: M.from, to: M.to }, n, t) && (M.from = y, M.to = void 0), i || u(M), i == null || i(M, y, D, W), M;
2739
2742
  },
2740
2743
  isSelected: (y) => d && te(d, y, !1, t)
2741
2744
  };
2742
2745
  }
2743
- function No(e, t) {
2744
- const { selected: n, required: r, onSelect: a } = e, [o, s] = Te(n, a ? n : void 0), i = a ? n : o, { isSameDay: c } = t;
2746
+ function Yo(e, t) {
2747
+ const { selected: n, required: r, onSelect: a } = e, [o, s] = Pe(n, a ? n : void 0), i = a ? n : o, { isSameDay: c } = t;
2745
2748
  return {
2746
2749
  selected: i,
2747
2750
  select: (f, h, y) => {
2748
- let v = f;
2749
- return !r && i && i && c(f, i) && (v = void 0), a || s(v), a == null || a(v, f, h, y), v;
2751
+ let D = f;
2752
+ return !r && i && i && c(f, i) && (D = void 0), a || s(D), a == null || a(D, f, h, y), D;
2750
2753
  },
2751
2754
  isSelected: (f) => i ? c(i, f) : !1
2752
2755
  };
2753
2756
  }
2754
- function Co(e, t) {
2755
- const n = No(e, t), r = Do(e, t), a = So(e, t);
2757
+ function xo(e, t) {
2758
+ const n = Yo(e, t), r = Wo(e, t), a = No(e, t);
2756
2759
  switch (e.mode) {
2757
2760
  case "single":
2758
2761
  return n;
@@ -2771,44 +2774,44 @@ function de(e, t, n) {
2771
2774
  return R(e, t);
2772
2775
  }
2773
2776
  function Dt(e, t, n) {
2774
- return typeof e == "boolean" || typeof e == "function" ? e : e instanceof Date ? de(e, t) : Array.isArray(e) ? e.map((r) => r instanceof Date ? de(r, t) : r) : xe(e) ? {
2777
+ return typeof e == "boolean" || typeof e == "function" ? e : e instanceof Date ? de(e, t) : Array.isArray(e) ? e.map((r) => r instanceof Date ? de(r, t) : r) : Te(e) ? {
2775
2778
  ...e,
2776
2779
  from: e.from ? R(e.from, t) : e.from,
2777
2780
  to: e.to ? R(e.to, t) : e.to
2778
- } : Ze(e) ? {
2779
- before: de(e.before, t),
2780
- after: de(e.after, t)
2781
2781
  } : Le(e) ? {
2782
+ before: de(e.before, t),
2782
2783
  after: de(e.after, t)
2783
2784
  } : et(e) ? {
2785
+ after: de(e.after, t)
2786
+ } : tt(e) ? {
2784
2787
  before: de(e.before, t)
2785
2788
  } : e;
2786
2789
  }
2787
- function $e(e, t, n) {
2790
+ function Re(e, t, n) {
2788
2791
  return e && (Array.isArray(e) ? e.map((r) => Dt(r, t)) : Dt(e, t));
2789
2792
  }
2790
- function Bo(e) {
2791
- var ct;
2793
+ function qo(e) {
2794
+ var ut;
2792
2795
  let t = e;
2793
2796
  const n = t.timeZone;
2794
2797
  if (n && (t = {
2795
2798
  ...e,
2796
2799
  timeZone: n
2797
- }, t.today && (t.today = R(t.today, n)), t.month && (t.month = R(t.month, n)), t.defaultMonth && (t.defaultMonth = R(t.defaultMonth, n)), t.startMonth && (t.startMonth = R(t.startMonth, n)), t.endMonth && (t.endMonth = R(t.endMonth, n)), t.mode === "single" && t.selected ? t.selected = R(t.selected, n) : t.mode === "multiple" && t.selected ? t.selected = (ct = t.selected) == null ? void 0 : ct.map((O) => R(O, n)) : t.mode === "range" && t.selected && (t.selected = {
2800
+ }, t.today && (t.today = R(t.today, n)), t.month && (t.month = R(t.month, n)), t.defaultMonth && (t.defaultMonth = R(t.defaultMonth, n)), t.startMonth && (t.startMonth = R(t.startMonth, n)), t.endMonth && (t.endMonth = R(t.endMonth, n)), t.mode === "single" && t.selected ? t.selected = R(t.selected, n) : t.mode === "multiple" && t.selected ? t.selected = (ut = t.selected) == null ? void 0 : ut.map((O) => R(O, n)) : t.mode === "range" && t.selected && (t.selected = {
2798
2801
  from: t.selected.from ? R(t.selected.from, n) : t.selected.from,
2799
2802
  to: t.selected.to ? R(t.selected.to, n) : t.selected.to
2800
- }), t.disabled !== void 0 && (t.disabled = $e(t.disabled, n)), t.hidden !== void 0 && (t.hidden = $e(t.hidden, n)), t.modifiers)) {
2803
+ }), t.disabled !== void 0 && (t.disabled = Re(t.disabled, n)), t.hidden !== void 0 && (t.hidden = Re(t.hidden, n)), t.modifiers)) {
2801
2804
  const O = {};
2802
2805
  Object.keys(t.modifiers).forEach((x) => {
2803
2806
  var b;
2804
- O[x] = $e((b = t.modifiers) == null ? void 0 : b[x], n);
2807
+ O[x] = Re((b = t.modifiers) == null ? void 0 : b[x], n);
2805
2808
  }), t.modifiers = O;
2806
2809
  }
2807
- const { components: r, formatters: a, labels: o, dateLib: s, locale: i, classNames: c } = pe(() => {
2808
- const O = { ...Ft, ...t.locale }, x = t.broadcastCalendar ? 1 : t.weekStartsOn, b = t.noonSafe && t.timeZone ? ro(t.timeZone, {
2810
+ const { components: r, formatters: a, labels: o, dateLib: s, locale: i, classNames: c } = Ne(() => {
2811
+ const O = { ...At, ...t.locale }, x = t.broadcastCalendar ? 1 : t.weekStartsOn, b = t.noonSafe && t.timeZone ? so(t.timeZone, {
2809
2812
  weekStartsOn: x,
2810
2813
  locale: O
2811
- }) : void 0, Y = t.dateLib && b ? { ...b, ...t.dateLib } : t.dateLib ?? b, H = new z({
2814
+ }) : void 0, Y = t.dateLib && b ? { ...b, ...t.dateLib } : t.dateLib ?? b, H = new j({
2812
2815
  locale: O,
2813
2816
  weekStartsOn: x,
2814
2817
  firstWeekContainsDate: t.firstWeekContainsDate,
@@ -2819,11 +2822,11 @@ function Bo(e) {
2819
2822
  }, Y);
2820
2823
  return {
2821
2824
  dateLib: H,
2822
- components: Ba(t.components),
2823
- formatters: Qa(t.formatters),
2824
- labels: Za(t.labels, H.options),
2825
+ components: Ha(t.components),
2826
+ formatters: Ka(t.formatters),
2827
+ labels: to(t.labels, H.options),
2825
2828
  locale: O,
2826
- classNames: { ...Aa(), ...t.classNames }
2829
+ classNames: { ...ja(), ...t.classNames }
2827
2830
  };
2828
2831
  }, [
2829
2832
  t.locale,
@@ -2842,17 +2845,17 @@ function Bo(e) {
2842
2845
  t.classNames
2843
2846
  ]);
2844
2847
  t.today || (t = { ...t, today: s.today() });
2845
- const { captionLayout: u, mode: d, navLayout: f, numberOfMonths: h = 1, onDayBlur: y, onDayClick: v, onDayFocus: W, onDayKeyDown: D, onDayMouseEnter: C, onDayMouseLeave: M, onNextClick: g, onPrevClick: S, showWeekNumber: k, styles: l } = t, { formatCaption: N, formatDay: E, formatMonthDropdown: B, formatWeekNumber: F, formatWeekNumberHeader: j, formatWeekdayName: re, formatYearDropdown: L } = a, G = Mo(t, s), { days: ce, months: Oe, navStart: Pe, navEnd: Ee, previousMonth: V, nextMonth: Q, goToMonth: ee } = G, _e = _a(ce, t, Pe, Ee, s), { isSelected: le, select: he, selected: We } = Co(t, s) ?? {}, { blur: rt, focused: Se, isFocusTarget: Zt, moveFocus: at, setFocused: Ne } = ko(t, G, _e, le ?? (() => !1), s), { labelDayButton: Lt, labelGridcell: en, labelGrid: tn, labelMonthDropdown: nn, labelNav: ot, labelPrevious: rn, labelNext: an, labelWeekday: on, labelWeekNumber: sn, labelWeekNumberHeader: cn, labelYearDropdown: un } = o, dn = pe(() => to(s, t.ISOWeek, t.broadcastCalendar, t.today), [s, t.ISOWeek, t.broadcastCalendar, t.today]), st = d !== void 0 || v !== void 0, Fe = $(() => {
2848
+ const { captionLayout: u, mode: d, navLayout: f, numberOfMonths: h = 1, onDayBlur: y, onDayClick: D, onDayFocus: W, onDayKeyDown: v, onDayMouseEnter: C, onDayMouseLeave: M, onNextClick: g, onPrevClick: S, showWeekNumber: k, styles: l } = t, { formatCaption: p, formatDay: E, formatMonthDropdown: B, formatWeekNumber: F, formatWeekNumberHeader: z, formatWeekdayName: re, formatYearDropdown: L } = a, G = ko(t, s), { days: ce, months: Oe, navStart: Ee, navEnd: _e, previousMonth: V, nextMonth: U, goToMonth: ee } = G, Fe = Ia(ce, t, Ee, _e, s), { isSelected: le, select: he, selected: We } = xo(t, s) ?? {}, { blur: at, focused: Se, isFocusTarget: tn, moveFocus: ot, setFocused: pe } = Oo(t, G, Fe, le ?? (() => !1), s), { labelDayButton: nn, labelGridcell: rn, labelGrid: an, labelMonthDropdown: on, labelNav: st, labelPrevious: sn, labelNext: cn, labelWeekday: un, labelWeekNumber: dn, labelWeekNumberHeader: fn, labelYearDropdown: ln } = o, hn = Ne(() => ao(s, t.ISOWeek, t.broadcastCalendar, t.today), [s, t.ISOWeek, t.broadcastCalendar, t.today]), it = d !== void 0 || D !== void 0, Be = $(() => {
2846
2849
  V && (ee(V), S == null || S(V));
2847
- }, [V, ee, S]), Be = $(() => {
2848
- Q && (ee(Q), g == null || g(Q));
2849
- }, [ee, Q, g]), fn = $((O, x) => (b) => {
2850
- b.preventDefault(), b.stopPropagation(), Ne(O), !x.disabled && (he == null || he(O.date, x, b), v == null || v(O.date, x, b));
2851
- }, [he, v, Ne]), ln = $((O, x) => (b) => {
2852
- Ne(O), W == null || W(O.date, x, b);
2853
- }, [W, Ne]), hn = $((O, x) => (b) => {
2854
- rt(), y == null || y(O.date, x, b);
2855
- }, [rt, y]), mn = $((O, x) => (b) => {
2850
+ }, [V, ee, S]), Ie = $(() => {
2851
+ U && (ee(U), g == null || g(U));
2852
+ }, [ee, U, g]), mn = $((O, x) => (b) => {
2853
+ b.preventDefault(), b.stopPropagation(), pe(O), !x.disabled && (he == null || he(O.date, x, b), D == null || D(O.date, x, b));
2854
+ }, [he, D, pe]), yn = $((O, x) => (b) => {
2855
+ pe(O), W == null || W(O.date, x, b);
2856
+ }, [W, pe]), gn = $((O, x) => (b) => {
2857
+ at(), y == null || y(O.date, x, b);
2858
+ }, [at, y]), Mn = $((O, x) => (b) => {
2856
2859
  const Y = {
2857
2860
  ArrowLeft: [
2858
2861
  b.shiftKey ? "month" : "day",
@@ -2871,40 +2874,40 @@ function Bo(e) {
2871
2874
  };
2872
2875
  if (Y[b.key]) {
2873
2876
  b.preventDefault(), b.stopPropagation();
2874
- const [H, p] = Y[b.key];
2875
- at(H, p);
2877
+ const [H, N] = Y[b.key];
2878
+ ot(H, N);
2876
2879
  }
2877
- D == null || D(O.date, x, b);
2878
- }, [at, D, t.dir]), yn = $((O, x) => (b) => {
2880
+ v == null || v(O.date, x, b);
2881
+ }, [ot, v, t.dir]), wn = $((O, x) => (b) => {
2879
2882
  C == null || C(O.date, x, b);
2880
- }, [C]), gn = $((O, x) => (b) => {
2883
+ }, [C]), bn = $((O, x) => (b) => {
2881
2884
  M == null || M(O.date, x, b);
2882
- }, [M]), Mn = $((O) => (x) => {
2885
+ }, [M]), kn = $((O) => (x) => {
2883
2886
  const b = Number(x.target.value), Y = s.setMonth(s.startOfMonth(O), b);
2884
2887
  ee(Y);
2885
- }, [s, ee]), wn = $((O) => (x) => {
2888
+ }, [s, ee]), vn = $((O) => (x) => {
2886
2889
  const b = Number(x.target.value), Y = s.setYear(s.startOfMonth(O), b);
2887
2890
  ee(Y);
2888
- }, [s, ee]), { className: bn, style: kn } = pe(() => ({
2891
+ }, [s, ee]), { className: Dn, style: On } = Ne(() => ({
2889
2892
  className: [c[w.Root], t.className].filter(Boolean).join(" "),
2890
2893
  style: { ...l == null ? void 0 : l[w.Root], ...t.style }
2891
- }), [c, t.className, t.style, l]), Dn = Ia(t), it = Ce(null);
2892
- io(it, !!t.animate, {
2894
+ }), [c, t.className, t.style, l]), Wn = qa(t), ct = Ce(null);
2895
+ fo(ct, !!t.animate, {
2893
2896
  classNames: c,
2894
2897
  months: Oe,
2895
2898
  focused: Se,
2896
2899
  dateLib: s
2897
2900
  });
2898
- const vn = {
2901
+ const Sn = {
2899
2902
  dayPickerProps: t,
2900
2903
  selected: We,
2901
2904
  select: he,
2902
2905
  isSelected: le,
2903
2906
  months: Oe,
2904
- nextMonth: Q,
2907
+ nextMonth: U,
2905
2908
  previousMonth: V,
2906
2909
  goToMonth: ee,
2907
- getModifiers: _e,
2910
+ getModifiers: Fe,
2908
2911
  components: r,
2909
2912
  classNames: c,
2910
2913
  styles: l,
@@ -2912,15 +2915,15 @@ function Bo(e) {
2912
2915
  formatters: a
2913
2916
  };
2914
2917
  return m.createElement(
2915
- It.Provider,
2916
- { value: vn },
2918
+ qt.Provider,
2919
+ { value: Sn },
2917
2920
  m.createElement(
2918
2921
  r.Root,
2919
- { rootRef: t.animate ? it : void 0, className: bn, style: kn, dir: t.dir, id: t.id, lang: t.lang ?? i.code, nonce: t.nonce, title: t.title, role: t.role, "aria-label": t["aria-label"], "aria-labelledby": t["aria-labelledby"], ...Dn },
2922
+ { rootRef: t.animate ? ct : void 0, className: Dn, style: On, dir: t.dir, id: t.id, lang: t.lang ?? i.code, nonce: t.nonce, title: t.title, role: t.role, "aria-label": t["aria-label"], "aria-labelledby": t["aria-labelledby"], ...Wn },
2920
2923
  m.createElement(
2921
2924
  r.Months,
2922
2925
  { className: c[w.Months], style: l == null ? void 0 : l[w.Months] },
2923
- !t.hideNavigation && !f && m.createElement(r.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: c[w.Nav], style: l == null ? void 0 : l[w.Nav], "aria-label": ot(), onPreviousClick: Fe, onNextClick: Be, previousMonth: V, nextMonth: Q }),
2926
+ !t.hideNavigation && !f && m.createElement(r.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: c[w.Nav], style: l == null ? void 0 : l[w.Nav], "aria-label": st(), onPreviousClick: Be, onNextClick: Ie, previousMonth: V, nextMonth: U }),
2924
2927
  Oe.map((O, x) => m.createElement(
2925
2928
  r.Month,
2926
2929
  {
@@ -2934,14 +2937,14 @@ function Bo(e) {
2934
2937
  },
2935
2938
  f === "around" && !t.hideNavigation && x === 0 && m.createElement(
2936
2939
  r.PreviousMonthButton,
2937
- { type: "button", className: c[w.PreviousMonthButton], tabIndex: V ? void 0 : -1, "aria-disabled": V ? void 0 : !0, "aria-label": rn(V), onClick: Fe, "data-animated-button": t.animate ? "true" : void 0 },
2940
+ { type: "button", className: c[w.PreviousMonthButton], tabIndex: V ? void 0 : -1, "aria-disabled": V ? void 0 : !0, "aria-label": sn(V), onClick: Be, "data-animated-button": t.animate ? "true" : void 0 },
2938
2941
  m.createElement(r.Chevron, { disabled: V ? void 0 : !0, className: c[w.Chevron], orientation: t.dir === "rtl" ? "right" : "left" })
2939
2942
  ),
2940
2943
  m.createElement(r.MonthCaption, { "data-animated-caption": t.animate ? "true" : void 0, className: c[w.MonthCaption], style: l == null ? void 0 : l[w.MonthCaption], calendarMonth: O, displayIndex: x }, u != null && u.startsWith("dropdown") ? m.createElement(
2941
2944
  r.DropdownNav,
2942
2945
  { className: c[w.Dropdowns], style: l == null ? void 0 : l[w.Dropdowns] },
2943
2946
  (() => {
2944
- const b = u === "dropdown" || u === "dropdown-months" ? m.createElement(r.MonthsDropdown, { key: "month", className: c[w.MonthsDropdown], "aria-label": nn(), classNames: c, components: r, disabled: !!t.disableNavigation, onChange: Mn(O.date), options: La(O.date, Pe, Ee, a, s), style: l == null ? void 0 : l[w.Dropdown], value: s.getMonth(O.date) }) : m.createElement("span", { key: "month" }, B(O.date, s)), Y = u === "dropdown" || u === "dropdown-years" ? m.createElement(r.YearsDropdown, { key: "year", className: c[w.YearsDropdown], "aria-label": un(s.options), classNames: c, components: r, disabled: !!t.disableNavigation, onChange: wn(O.date), options: no(Pe, Ee, a, s, !!t.reverseYears), style: l == null ? void 0 : l[w.Dropdown], value: s.getYear(O.date) }) : m.createElement("span", { key: "year" }, L(O.date, s));
2947
+ const b = u === "dropdown" || u === "dropdown-months" ? m.createElement(r.MonthsDropdown, { key: "month", className: c[w.MonthsDropdown], "aria-label": on(), classNames: c, components: r, disabled: !!t.disableNavigation, onChange: kn(O.date), options: no(O.date, Ee, _e, a, s), style: l == null ? void 0 : l[w.Dropdown], value: s.getMonth(O.date) }) : m.createElement("span", { key: "month" }, B(O.date, s)), Y = u === "dropdown" || u === "dropdown-years" ? m.createElement(r.YearsDropdown, { key: "year", className: c[w.YearsDropdown], "aria-label": ln(s.options), classNames: c, components: r, disabled: !!t.disableNavigation, onChange: vn(O.date), options: oo(Ee, _e, a, s, !!t.reverseYears), style: l == null ? void 0 : l[w.Dropdown], value: s.getYear(O.date) }) : m.createElement("span", { key: "year" }, L(O.date, s));
2945
2948
  return s.getMonthYearOrder() === "year-first" ? [Y, b] : [b, Y];
2946
2949
  })(),
2947
2950
  m.createElement("span", { role: "status", "aria-live": "polite", style: {
@@ -2955,37 +2958,37 @@ function Bo(e) {
2955
2958
  width: "1px",
2956
2959
  whiteSpace: "nowrap",
2957
2960
  wordWrap: "normal"
2958
- } }, N(O.date, s.options, s))
2959
- ) : m.createElement(r.CaptionLabel, { className: c[w.CaptionLabel], role: "status", "aria-live": "polite" }, N(O.date, s.options, s))),
2961
+ } }, p(O.date, s.options, s))
2962
+ ) : m.createElement(r.CaptionLabel, { className: c[w.CaptionLabel], role: "status", "aria-live": "polite" }, p(O.date, s.options, s))),
2960
2963
  f === "around" && !t.hideNavigation && x === h - 1 && m.createElement(
2961
2964
  r.NextMonthButton,
2962
- { type: "button", className: c[w.NextMonthButton], tabIndex: Q ? void 0 : -1, "aria-disabled": Q ? void 0 : !0, "aria-label": an(Q), onClick: Be, "data-animated-button": t.animate ? "true" : void 0 },
2963
- m.createElement(r.Chevron, { disabled: Q ? void 0 : !0, className: c[w.Chevron], orientation: t.dir === "rtl" ? "left" : "right" })
2965
+ { type: "button", className: c[w.NextMonthButton], tabIndex: U ? void 0 : -1, "aria-disabled": U ? void 0 : !0, "aria-label": cn(U), onClick: Ie, "data-animated-button": t.animate ? "true" : void 0 },
2966
+ m.createElement(r.Chevron, { disabled: U ? void 0 : !0, className: c[w.Chevron], orientation: t.dir === "rtl" ? "left" : "right" })
2964
2967
  ),
2965
- x === h - 1 && f === "after" && !t.hideNavigation && m.createElement(r.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: c[w.Nav], style: l == null ? void 0 : l[w.Nav], "aria-label": ot(), onPreviousClick: Fe, onNextClick: Be, previousMonth: V, nextMonth: Q }),
2968
+ x === h - 1 && f === "after" && !t.hideNavigation && m.createElement(r.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: c[w.Nav], style: l == null ? void 0 : l[w.Nav], "aria-label": st(), onPreviousClick: Be, onNextClick: Ie, previousMonth: V, nextMonth: U }),
2966
2969
  m.createElement(
2967
2970
  r.MonthGrid,
2968
- { role: "grid", "aria-multiselectable": d === "multiple" || d === "range", "aria-label": tn(O.date, s.options, s) || void 0, className: c[w.MonthGrid], style: l == null ? void 0 : l[w.MonthGrid] },
2971
+ { role: "grid", "aria-multiselectable": d === "multiple" || d === "range", "aria-label": an(O.date, s.options, s) || void 0, className: c[w.MonthGrid], style: l == null ? void 0 : l[w.MonthGrid] },
2969
2972
  !t.hideWeekdays && m.createElement(
2970
2973
  r.Weekdays,
2971
2974
  { "data-animated-weekdays": t.animate ? "true" : void 0, className: c[w.Weekdays], style: l == null ? void 0 : l[w.Weekdays] },
2972
- k && m.createElement(r.WeekNumberHeader, { "aria-label": cn(s.options), className: c[w.WeekNumberHeader], style: l == null ? void 0 : l[w.WeekNumberHeader], scope: "col" }, j()),
2973
- dn.map((b) => m.createElement(r.Weekday, { "aria-label": on(b, s.options, s), className: c[w.Weekday], key: String(b), style: l == null ? void 0 : l[w.Weekday], scope: "col" }, re(b, s.options, s)))
2975
+ k && m.createElement(r.WeekNumberHeader, { "aria-label": fn(s.options), className: c[w.WeekNumberHeader], style: l == null ? void 0 : l[w.WeekNumberHeader], scope: "col" }, z()),
2976
+ hn.map((b) => m.createElement(r.Weekday, { "aria-label": un(b, s.options, s), className: c[w.Weekday], key: String(b), style: l == null ? void 0 : l[w.Weekday], scope: "col" }, re(b, s.options, s)))
2974
2977
  ),
2975
2978
  m.createElement(r.Weeks, { "data-animated-weeks": t.animate ? "true" : void 0, className: c[w.Weeks], style: l == null ? void 0 : l[w.Weeks] }, O.weeks.map((b) => m.createElement(
2976
2979
  r.Week,
2977
2980
  { className: c[w.Week], key: b.weekNumber, style: l == null ? void 0 : l[w.Week], week: b },
2978
- k && m.createElement(r.WeekNumber, { week: b, style: l == null ? void 0 : l[w.WeekNumber], "aria-label": sn(b.weekNumber, {
2981
+ k && m.createElement(r.WeekNumber, { week: b, style: l == null ? void 0 : l[w.WeekNumber], "aria-label": dn(b.weekNumber, {
2979
2982
  locale: i
2980
2983
  }), className: c[w.WeekNumber], scope: "row", role: "rowheader" }, F(b.weekNumber, s)),
2981
2984
  b.days.map((Y) => {
2982
- const { date: H } = Y, p = _e(Y);
2983
- if (p[_.focused] = !p.hidden && !!(Se != null && Se.isEqualTo(Y)), p[U.selected] = (le == null ? void 0 : le(H)) || p.selected, xe(We)) {
2984
- const { from: Ie, to: Ae } = We;
2985
- p[U.range_start] = !!(Ie && Ae && s.isSameDay(H, Ie)), p[U.range_end] = !!(Ie && Ae && s.isSameDay(H, Ae)), p[U.range_middle] = te(We, H, !0, s);
2985
+ const { date: H } = Y, N = Fe(Y);
2986
+ if (N[_.focused] = !N.hidden && !!(Se != null && Se.isEqualTo(Y)), N[X.selected] = (le == null ? void 0 : le(H)) || N.selected, Te(We)) {
2987
+ const { from: Ae, to: He } = We;
2988
+ N[X.range_start] = !!(Ae && He && s.isSameDay(H, Ae)), N[X.range_end] = !!(Ae && He && s.isSameDay(H, He)), N[X.range_middle] = te(We, H, !0, s);
2986
2989
  }
2987
- const On = eo(p, l, t.modifiersStyles), Wn = Fa(p, c, t.modifiersClassNames), Sn = !st && !p.hidden ? en(H, p, s.options, s) : void 0;
2988
- return m.createElement(r.Day, { key: `${Y.isoDate}_${Y.displayMonthId}`, day: Y, modifiers: p, className: Wn.join(" "), style: On, role: "gridcell", "aria-selected": p.selected || void 0, "aria-label": Sn, "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 && st ? m.createElement(r.DayButton, { className: c[w.DayButton], style: l == null ? void 0 : l[w.DayButton], type: "button", day: Y, modifiers: p, disabled: !p.focused && p.disabled || void 0, "aria-disabled": p.focused && p.disabled || void 0, tabIndex: Zt(Y) ? 0 : -1, "aria-label": Lt(H, p, s.options, s), onClick: fn(Y, p), onBlur: hn(Y, p), onFocus: ln(Y, p), onKeyDown: mn(Y, p), onMouseEnter: yn(Y, p), onMouseLeave: gn(Y, p) }, E(H, s.options, s)) : !p.hidden && E(Y.date, s.options, s));
2990
+ const pn = ro(N, l, t.modifiersStyles), Cn = Aa(N, c, t.modifiersClassNames), Nn = !it && !N.hidden ? rn(H, N, s.options, s) : void 0;
2991
+ return m.createElement(r.Day, { key: `${Y.isoDate}_${Y.displayMonthId}`, day: Y, modifiers: N, className: Cn.join(" "), style: pn, role: "gridcell", "aria-selected": N.selected || void 0, "aria-label": Nn, "data-day": Y.isoDate, "data-month": Y.outside ? Y.dateMonthId : void 0, "data-selected": N.selected || void 0, "data-disabled": N.disabled || void 0, "data-hidden": N.hidden || void 0, "data-outside": Y.outside || void 0, "data-focused": N.focused || void 0, "data-today": N.today || void 0 }, !N.hidden && it ? m.createElement(r.DayButton, { className: c[w.DayButton], style: l == null ? void 0 : l[w.DayButton], type: "button", day: Y, modifiers: N, disabled: !N.focused && N.disabled || void 0, "aria-disabled": N.focused && N.disabled || void 0, tabIndex: tn(Y) ? 0 : -1, "aria-label": nn(H, N, s.options, s), onClick: mn(Y, N), onBlur: gn(Y, N), onFocus: yn(Y, N), onKeyDown: Mn(Y, N), onMouseEnter: wn(Y, N), onMouseLeave: bn(Y, N) }, E(H, s.options, s)) : !N.hidden && E(Y.date, s.options, s));
2989
2992
  })
2990
2993
  )))
2991
2994
  )
@@ -2995,10 +2998,50 @@ function Bo(e) {
2995
2998
  )
2996
2999
  );
2997
3000
  }
2998
- function Io(e) {
2999
- return se;
3001
+ const Ot = {
3002
+ en: () => Promise.resolve().then(() => Pr).then((e) => e.enUS),
3003
+ it: () => import("./it-CuonvcI_.js").then((e) => e.it),
3004
+ de: () => import("./de-Dfbeau59.js").then((e) => e.de),
3005
+ es: () => import("./es-Dvg8u70B.js").then((e) => e.es),
3006
+ fr: () => import("./fr-VOGjBSPP.js").then((e) => e.fr),
3007
+ pt: () => import("./pt-D7qO5CzD.js").then((e) => e.pt),
3008
+ nl: () => import("./nl-DjPaaWaW.js").then((e) => e.nl),
3009
+ pl: () => import("./pl-Cl4lOx2N.js").then((e) => e.pl),
3010
+ ro: () => import("./ro-CP2-VJ_O.js").then((e) => e.ro),
3011
+ ru: () => import("./ru-RPn9_Lpq.js").then((e) => e.ru),
3012
+ sv: () => import("./sv-zkx9eBtD.js").then((e) => e.sv),
3013
+ el: () => import("./el-Dro3J7CP.js").then((e) => e.el),
3014
+ ja: () => import("./ja-DO57gIOT.js").then((e) => e.ja),
3015
+ zh: () => import("./zh-CN-DxVt64Zk.js").then((e) => e.zhCN),
3016
+ hi: () => import("./hi-BSDxWU_y.js").then((e) => e.hi),
3017
+ ar: () => import("./ar-CEpIJtcO.js").then((e) => e.ar),
3018
+ tr: () => import("./tr-Dmr412Ac.js").then((e) => e.tr),
3019
+ sq: () => import("./sq-AQvefouo.js").then((e) => e.sq)
3020
+ };
3021
+ async function To(e) {
3022
+ const t = e.toLowerCase().split("-")[0];
3023
+ return (Ot[t] ?? Ot.en)();
3024
+ }
3025
+ const Ve = /* @__PURE__ */ new Map();
3026
+ function jo(e) {
3027
+ const t = e.toLowerCase().split("-")[0], [n, r] = Ye(
3028
+ () => Ve.get(t)
3029
+ );
3030
+ return Wt(() => {
3031
+ const a = Ve.get(t);
3032
+ if (a) {
3033
+ r(a);
3034
+ return;
3035
+ }
3036
+ let o = !1;
3037
+ return To(t).then((s) => {
3038
+ Ve.set(t, s), o || r(s);
3039
+ }), () => {
3040
+ o = !0;
3041
+ };
3042
+ }, [t]), n;
3000
3043
  }
3001
- const Re = {
3044
+ const Ue = {
3002
3045
  en: "dd/MM/yyyy",
3003
3046
  "en-us": "MM/dd/yyyy",
3004
3047
  de: "dd.MM.yyyy",
@@ -3019,18 +3062,18 @@ const Re = {
3019
3062
  ar: "dd/MM/yyyy",
3020
3063
  he: "dd.MM.yyyy"
3021
3064
  };
3022
- function Ao(e) {
3065
+ function zo(e) {
3023
3066
  const t = e.toLowerCase();
3024
- return Re[t] ?? Re[t.split("-")[0]] ?? Re.en;
3067
+ return Ue[t] ?? Ue[t.split("-")[0]] ?? Ue.en;
3025
3068
  }
3026
- function Ho(e, t, n) {
3069
+ function Go(e, t, n) {
3027
3070
  const r = [];
3028
3071
  return e && r.push({ before: e }), t && r.push({ after: t }), Array.isArray(n) ? r.push(...n) : typeof n == "function" && r.push(n), r.length === 1 ? r[0] : r;
3029
3072
  }
3030
- function qo({ orientation: e }) {
3031
- return e === "left" ? /* @__PURE__ */ ut(En, { className: "ds:size-4 ds:rtl:-scale-x-100" }) : /* @__PURE__ */ ut(_n, { className: "ds:size-4 ds:rtl:-scale-x-100" });
3073
+ function $o({ orientation: e }) {
3074
+ return e === "left" ? /* @__PURE__ */ dt(Fn, { className: "ds:size-4 ds:rtl:-scale-x-100" }) : /* @__PURE__ */ dt(Bn, { className: "ds:size-4 ds:rtl:-scale-x-100" });
3032
3075
  }
3033
- const zo = Ye(
3076
+ const Ro = xe(
3034
3077
  [
3035
3078
  "ds:relative ds:flex ds:items-center ds:w-full",
3036
3079
  // Soft-chrome look — matches `INPUT_SURFACE_CHROME` so the trigger
@@ -3060,7 +3103,7 @@ const zo = Ye(
3060
3103
  tone: "default"
3061
3104
  }
3062
3105
  }
3063
- ), jo = Ye(
3106
+ ), Vo = xe(
3064
3107
  "ds:absolute ds:inset-y-0 ds:end-0 ds:flex ds:items-center ds:pointer-events-none ds:text-muted-foreground",
3065
3108
  {
3066
3109
  variants: {
@@ -3072,13 +3115,13 @@ const zo = Ye(
3072
3115
  },
3073
3116
  defaultVariants: { size: "md" }
3074
3117
  }
3075
- ), Go = Ye(
3118
+ ), Uo = xe(
3076
3119
  [
3077
3120
  "ds:z-[var(--z-popover)] ds:rounded-[var(--radius-md)]",
3078
3121
  "ds:border ds:border-border ds:bg-background ds:shadow-[var(--shadow-lg)]",
3079
3122
  "ds:p-[var(--spacing-md)]"
3080
3123
  ].join(" ")
3081
- ), $o = Ye(
3124
+ ), Qo = xe(
3082
3125
  [
3083
3126
  "ds:w-full ds:text-start ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:py-[var(--spacing-xs)]",
3084
3127
  "ds:rounded-[var(--radius-sm)] ds:text-[length:var(--font-size-sm)] ds:text-foreground",
@@ -3089,39 +3132,43 @@ const zo = Ye(
3089
3132
  ].join(" ")
3090
3133
  );
3091
3134
  export {
3092
- Er as A,
3093
- Ar as B,
3094
- Fo as C,
3095
- Bo as D,
3096
- Hr as E,
3097
- Ir as F,
3098
- Ao as G,
3099
- Rn as H,
3100
- Wt as a,
3101
- zn as b,
3102
- Ho as c,
3103
- Vn as d,
3104
- Tt as e,
3105
- Xn as f,
3106
- Io as g,
3135
+ we as A,
3136
+ Ze as B,
3137
+ Ho as C,
3138
+ qo as D,
3139
+ Je as E,
3140
+ ht as F,
3141
+ se as G,
3142
+ Br as H,
3143
+ jr as I,
3144
+ zr as J,
3145
+ qr as K,
3146
+ Un as L,
3147
+ Ct as a,
3148
+ Gn as b,
3149
+ Go as c,
3150
+ Qn as d,
3151
+ _t as e,
3152
+ Kn as f,
3153
+ zo as g,
3107
3154
  Me as h,
3108
- Ue as i,
3109
- jo as j,
3110
- qo as k,
3111
- Go as l,
3112
- Jr as m,
3113
- Kr as n,
3114
- St as o,
3115
- $o as p,
3116
- Zr as q,
3117
- ke as r,
3155
+ Ke as i,
3156
+ Vo as j,
3157
+ $o as k,
3158
+ Uo as l,
3159
+ ea as m,
3160
+ Lr as n,
3161
+ je as o,
3162
+ Qo as p,
3163
+ me as q,
3164
+ ye as r,
3118
3165
  fe as s,
3119
- zo as t,
3120
- Pt as u,
3121
- we as v,
3122
- Je as w,
3123
- Ke as x,
3124
- lt as y,
3125
- se as z
3166
+ Ro as t,
3167
+ jo as u,
3168
+ wr as v,
3169
+ Nt as w,
3170
+ ta as x,
3171
+ ke as y,
3172
+ Ft as z
3126
3173
  };
3127
- //# sourceMappingURL=react-day-picker-D3yzgvDB.js.map
3174
+ //# sourceMappingURL=react-day-picker-DsjfS7uI.js.map