@alfadocs/ui-kit 1.113.0 → 1.115.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (369) hide show
  1. package/dist/_chunks/{actions-cell-renderer-BVn3vDTg.js → actions-cell-renderer-bI27uXXC.js} +2 -2
  2. package/dist/_chunks/{ai-permission-notice-BkgcGmu8.js → ai-permission-notice-C-xR2_iS.js} +2 -2
  3. package/dist/_chunks/{alia-sidebar-CKkg3gc8.js → alia-sidebar-BBxbMRmX.js} +2 -2
  4. package/dist/_chunks/{anamnesis-card-BzuluoD1.js → anamnesis-card-Ddnrdfx3.js} +2 -2
  5. package/dist/_chunks/{anamnesis-summary-card-DdTRdNrQ.js → anamnesis-summary-card-S1H_AARG.js} +2 -2
  6. package/dist/_chunks/{anamnesis-summary-rows-DfDulR_c.js → anamnesis-summary-rows-BZ36ULQk.js} +5 -5
  7. package/dist/_chunks/{antenatal-schedule-timeline-DmsY5g28.js → antenatal-schedule-timeline-va9zx7tJ.js} +12 -12
  8. package/dist/_chunks/{appointment-card-FKOnH1uJ.js → appointment-card-D_-aBrx5.js} +2 -2
  9. package/dist/_chunks/{appointment-timeline-eOi-y8m3.js → appointment-timeline-DxLu3afn.js} +3 -3
  10. package/dist/_chunks/{appointment-tray-C6oBvsG5.js → appointment-tray-BhXOJpIJ.js} +2 -2
  11. package/dist/_chunks/{ar-C4YQVTH6.js → ar-BFvUBJ_g.js} +10 -10
  12. package/dist/_chunks/{balance-badge-cell-BAZynD--.js → balance-badge-cell-CXHihM22.js} +28 -27
  13. package/dist/_chunks/{bishop-score-CnIft4eV.js → bishop-score-QJu-sM1y.js} +2 -2
  14. package/dist/_chunks/{bmi-calculator-NMkXc079.js → bmi-calculator-Ba4yoR31.js} +2 -2
  15. package/dist/_chunks/buildMatchPatternFn-jbaE1-W0.js +68 -0
  16. package/dist/_chunks/{calendar-appointment-editor-dialog-CaZm5wGR.js → calendar-appointment-editor-dialog-BVzFi4hH.js} +520 -532
  17. package/dist/_chunks/{card-C85_Ndhb.js → card-DVO3x8E-.js} +23 -19
  18. package/dist/_chunks/{care-plan-card-DMjlYlFc.js → care-plan-card-BA3MfdfZ.js} +2 -2
  19. package/dist/_chunks/{care-plan-entry-card-3hguBW45.js → care-plan-entry-card-CUtFZ813.js} +2 -2
  20. package/dist/_chunks/{chart-bddVIElM.js → chart-DebrFZ6L.js} +2 -2
  21. package/dist/_chunks/{chat-container-baxzy8k8.js → chat-container-B83b4hut.js} +2 -2
  22. package/dist/_chunks/checkbox-DV4sNDeB.js +282 -0
  23. package/dist/_chunks/{checkbox-group-eGdv9fZc.js → checkbox-group-EfinQS1h.js} +2 -2
  24. package/dist/_chunks/chevrons-up-down-CgiVAHb7.js +15 -0
  25. package/dist/_chunks/{clinical-note-card-BVkxGiGl.js → clinical-note-card-Zz5_GEz-.js} +2 -2
  26. package/dist/_chunks/compact-editor-fields-cP6yh7xv.js +21 -0
  27. package/dist/_chunks/{connection-status-CWSU3eiq.js → connection-status-DjarASoU.js} +2 -2
  28. package/dist/_chunks/{contact-card-CymtNvy3.js → contact-card-Cv-Nwvac.js} +2 -2
  29. package/dist/_chunks/{contact-profile-card-CAL66GaH.js → contact-profile-card-DMXWBBkU.js} +2 -2
  30. package/dist/_chunks/{cycle-calculator-ZMDvToIm.js → cycle-calculator-C68V9rdH.js} +6 -6
  31. package/dist/_chunks/data-grid-tabs-CsLbIv0h.js +365 -0
  32. package/dist/_chunks/data-table-DXaE2Ret.js +1693 -0
  33. package/dist/_chunks/data-table-tabs-NYLhD8_Z.js +242 -0
  34. package/dist/_chunks/date-locale-OG-MupVD.js +83 -0
  35. package/dist/_chunks/{date-picker-CdhXlgVI.js → date-picker-DBVTj6lO.js} +21 -20
  36. package/dist/_chunks/{date-picker-variants-Dt6UbonG.js → date-picker-variants-J1EeAhIH.js} +601 -678
  37. package/dist/_chunks/date-range-panel-CBFfkgmz.js +62 -0
  38. package/dist/_chunks/{date-range-picker-DCADIR8o.js → date-range-picker-PTRpDkXT.js} +72 -70
  39. package/dist/_chunks/{date-time-picker-CT2bC7-A.js → date-time-picker-CJnqiQoT.js} +22 -21
  40. package/dist/_chunks/{de-B1B3PIgY.js → de-i9wbjGPc.js} +2 -2
  41. package/dist/_chunks/{document-preview-5xs64jME.js → document-preview-WvJKHJOP.js} +2 -2
  42. package/dist/_chunks/{due-date-calculator-Dr2cDa64.js → due-date-calculator-C1UA5jpS.js} +7 -7
  43. package/dist/_chunks/{editable-currency-cell-renderer-BUdFMh67.js → editable-currency-cell-renderer-CtlMhLai.js} +3 -3
  44. package/dist/_chunks/{el-iLqGpapg.js → el-Cm-rWthb.js} +20 -20
  45. package/dist/_chunks/{en-GB-CxPRQbD6.js → en-GB-BHn82gW8.js} +11 -10
  46. package/dist/_chunks/en-US-C4QKhzhA.js +46 -0
  47. package/dist/_chunks/{entity-summary-BbqqYqF1.js → entity-summary-DGCBQDt1.js} +2 -2
  48. package/dist/_chunks/{es-Bg1oqwDs.js → es-B_6Z19UA.js} +4 -4
  49. package/dist/_chunks/{face-scheme-e2M2HJGz.js → face-scheme-DkoxiDCh.js} +3 -3
  50. package/dist/_chunks/{fetal-weight-CkIwJgiH.js → fetal-weight-DmZzMRzB.js} +2 -2
  51. package/dist/_chunks/{file-manager-LG7B_UHB.js → file-manager-DFFExyym.js} +4 -4
  52. package/dist/_chunks/{finished-terminal-DXVAfhRr.js → finished-terminal-BKTFUk3S.js} +2 -2
  53. package/dist/_chunks/{forgot-password-form-YQVzSskq.js → forgot-password-form-Bc_UPax6.js} +2 -2
  54. package/dist/_chunks/format-ql5WTsYT.js +846 -0
  55. package/dist/_chunks/{fr-DpGxyOGI.js → fr-gTba51QO.js} +7 -7
  56. package/dist/_chunks/funnel-DpPV3Qkd.js +20 -0
  57. package/dist/_chunks/{gestational-age-calculator-Dv3IePb-.js → gestational-age-calculator-60y1RyQL.js} +8 -8
  58. package/dist/_chunks/grid-context-AwsLJRhH.js +46 -0
  59. package/dist/_chunks/{hcg-doubling-DdyUt4gz.js → hcg-doubling-CC-dbKE8.js} +7 -6
  60. package/dist/_chunks/{heatmap-BiwC7Gdx.js → heatmap-eXdtmEoU.js} +4 -4
  61. package/dist/_chunks/{hi-3Dtsksrw.js → hi-BIHq9ncx.js} +10 -10
  62. package/dist/_chunks/icon-button-group-C9mPK-bX.js +442 -0
  63. package/dist/_chunks/{index-CJE9uQmb.js → index-Bze5jCG_.js} +2 -1
  64. package/dist/_chunks/{isSameWeek-DyVftHWi.js → isSameWeek-CZOtDcsd.js} +2 -2
  65. package/dist/_chunks/{it-Cp0CA13d.js → it-DaCPWJ9Y.js} +11 -11
  66. package/dist/_chunks/{ja-9FOyR1lb.js → ja-BRCpkD95.js} +26 -26
  67. package/dist/_chunks/{kit-extensions-BOsUgWnE.js → kit-extensions-CzG0RmhQ.js} +7 -7
  68. package/dist/_chunks/link-cell-renderer-Ditt5mvT.js +800 -0
  69. package/dist/_chunks/{login-dev-card-B6-zCFq3.js → login-dev-card-CPndtWdz.js} +3 -3
  70. package/dist/_chunks/map-view-Bny79cWa.js +856 -0
  71. package/dist/_chunks/{marketplace-app-shell-C-4QF6mp.js → marketplace-app-shell-CcEHJgDd.js} +3 -3
  72. package/dist/_chunks/match-BATShpSX.js +336 -0
  73. package/dist/_chunks/motion-is-off-BvAuNV5O.js +15 -0
  74. package/dist/_chunks/{nl-sfx-zJgR.js → nl-5tAwYo00.js} +6 -6
  75. package/dist/_chunks/normalizeDates-BBNNIR-v.js +36 -0
  76. package/dist/_chunks/{notes-panel-Cz621DWV.js → notes-panel-BVYG_MJE.js} +4 -4
  77. package/dist/_chunks/{operator-hero-BELhrv9o.js → operator-hero-BWayX73x.js} +71 -62
  78. package/dist/_chunks/{parse-B0s7bY4d.js → parse-BLBWPIgE.js} +63 -61
  79. package/dist/_chunks/{parseISO-DZZ5a-zK.js → parseISO-Dl4T9peU.js} +2 -2
  80. package/dist/_chunks/parts-Wz2LeGnH.js +1113 -0
  81. package/dist/_chunks/{patient-details-RsT3SaYh.js → patient-details-DlT-vpSe.js} +3 -3
  82. package/dist/_chunks/{patient-field-row-D9rb-QJH.js → patient-field-row-B54uzvu-.js} +3 -3
  83. package/dist/_chunks/{patient-search-CxuqVUTB.js → patient-search-DDRDCjZi.js} +439 -482
  84. package/dist/_chunks/{patient-summary-card-BjZErlbt.js → patient-summary-card-Dy9-CzON.js} +4 -4
  85. package/dist/_chunks/{payment-automation-upsell-u5EuFyCY.js → payment-automation-upsell-D7yaD4u1.js} +3 -3
  86. package/dist/_chunks/{payment-request-card-IR83TJax.js → payment-request-card-BmV2pLoM.js} +2 -2
  87. package/dist/_chunks/{periodontal-chart-DqdUEFxK.js → periodontal-chart-Bjz7O4wT.js} +2 -2
  88. package/dist/_chunks/{periodontal-chart-card-CCkzStlm.js → periodontal-chart-card-CxEXHl2x.js} +2 -2
  89. package/dist/_chunks/{periodontal-diagnosis-CF1d_0yl.js → periodontal-diagnosis-DnZuZD14.js} +3 -3
  90. package/dist/_chunks/{periodontal-risk-chart-D2zyID0H.js → periodontal-risk-chart-BBPB9wf1.js} +2 -2
  91. package/dist/_chunks/{permission-matrix-BJ6sg3Zp.js → permission-matrix-BXmhICzN.js} +3 -3
  92. package/dist/_chunks/{pl-BLh7KO-s.js → pl-mLYbfByR.js} +7 -7
  93. package/dist/_chunks/{practice-profile-hero-Bb4YyxHA.js → practice-profile-hero-Cw4NZp0A.js} +2 -2
  94. package/dist/_chunks/practice-results-BlxfBx-D.js +2181 -0
  95. package/dist/_chunks/{pregnancy-dating-Cs8xpZA8.js → pregnancy-dating-qZpw3zj8.js} +8 -8
  96. package/dist/_chunks/{pregnancy-weight-gain-B_Zldlzq.js → pregnancy-weight-gain-DQoOM8QV.js} +2 -2
  97. package/dist/_chunks/privacy-mask-BlJK51MD.js +78 -0
  98. package/dist/_chunks/privacy-mask-text-B8YfzB7L.js +7 -0
  99. package/dist/_chunks/{pt-CPKOrOLj.js → pt-CgaqtlD9.js} +6 -6
  100. package/dist/_chunks/{public-footer-DGjLTtNK.js → public-footer-CB7ruuLI.js} +295 -260
  101. package/dist/_chunks/{public-header.agent-_ArDD1Xr.js → public-header.agent-Db4wm6_S.js} +203 -193
  102. package/dist/_chunks/{radiograph-panel.agent-CXah49KM.js → radiograph-panel.agent-C1LGeX-G.js} +3 -3
  103. package/dist/_chunks/{registration-form-Cq5_OSIL.js → registration-form-DW-0X7S4.js} +3 -3
  104. package/dist/_chunks/{reserved.agent-BMkapgom.js → reserved.agent-6p3Hm4oH.js} +29 -39
  105. package/dist/_chunks/{reset-password-form-BVsL2fOJ.js → reset-password-form-C93SH0Tx.js} +2 -2
  106. package/dist/_chunks/{reviews-panel-B03auSpQ.js → reviews-panel-CfJPEkH7.js} +2 -2
  107. package/dist/_chunks/{rich-text-editor-BLS2cK-u.js → rich-text-editor-efaMWbYz.js} +3 -3
  108. package/dist/_chunks/{ro-Dc-oNqbF.js → ro-CpDg1-8v.js} +2 -2
  109. package/dist/_chunks/{ru-BtNpDZRR.js → ru-B7VMyjud.js} +9 -9
  110. package/dist/_chunks/saved-view-tabs-DLWm88Eq.js +932 -0
  111. package/dist/_chunks/{section-card-D1sV4Voz.js → section-card-DFr2wGal.js} +2 -2
  112. package/dist/_chunks/{send-registration-link-form-OgPomrZN.js → send-registration-link-form-DWxWa_cJ.js} +6 -6
  113. package/dist/_chunks/{sidebar-2VsPlNkZ.js → sidebar-D5DFYN5K.js} +326 -335
  114. package/dist/_chunks/{signed-out-frame-CPow3aCZ.js → signed-out-frame-bh7fn_Px.js} +2 -2
  115. package/dist/_chunks/{slot-grid-BhjaLJ0o.js → slot-grid-b4eZXokb.js} +3 -3
  116. package/dist/_chunks/{sq-D4c7olaV.js → sq-B0Ree_9P.js} +2 -2
  117. package/dist/_chunks/{stat-BFKZV50y.js → stat-WGLdn5Vn.js} +113 -107
  118. package/dist/_chunks/subDays-Bsoy023P.js +8 -0
  119. package/dist/_chunks/{sv-Bf_dHPvh.js → sv-D9fP66O7.js} +4 -4
  120. package/dist/_chunks/{tag-DOZGz0fT.js → tag-BNlcEJfE.js} +70 -67
  121. package/dist/_chunks/{task-card-TSJjuuDe.js → task-card-BNbkwIYM.js} +2 -2
  122. package/dist/_chunks/{task-editor-gqWF1jI6.js → task-editor-CSa6vQ9r.js} +377 -391
  123. package/dist/_chunks/{task-tray-DrXfMCuf.js → task-tray-Bmi9wCHq.js} +2 -2
  124. package/dist/_chunks/{tasks-panel-OuIaydK5.js → tasks-panel-CVjY1d7Q.js} +2 -2
  125. package/dist/_chunks/{theme-toggle-Czq3K9jB.js → theme-toggle-CObX2Ffa.js} +2 -2
  126. package/dist/_chunks/{timeline-CKUaBZOx.js → timeline-AMqE-c2T.js} +2 -2
  127. package/dist/_chunks/toolbar-Bc3pjfG5.js +9907 -0
  128. package/dist/_chunks/{tr-xqQ6cbGY.js → tr-Bcz5LCHZ.js} +2 -2
  129. package/dist/_chunks/{transcript-panel-A781Pkzr.js → transcript-panel-Wr8e4Zgi.js} +2 -2
  130. package/dist/_chunks/{treatment-receipt-pFqWFyD_.js → treatment-receipt-BydbojdD.js} +2 -2
  131. package/dist/_chunks/{use-appointment-details-read-DvK7Looa.js → use-appointment-details-read-BMAiQYo6.js} +6 -6
  132. package/dist/_chunks/{voice-control-panel-BGiX4sqB.js → voice-control-panel-Be_c0CQ0.js} +2 -2
  133. package/dist/_chunks/{workflow-map-DWk-rZse.js → workflow-map-B4XkcET0.js} +2 -2
  134. package/dist/_chunks/{workflow-webhook-action-DILFqAVd.js → workflow-webhook-action-DNSe65yd.js} +3 -3
  135. package/dist/_chunks/{zh-CN-C657DBCO.js → zh-CN-B7Ek17US.js} +11 -11
  136. package/dist/agent-catalog.json +722 -11
  137. package/dist/agent-i18n/en.json +52 -4
  138. package/dist/components/_shared/motion-is-off.d.ts +7 -0
  139. package/dist/components/_shared/privacy-mask-text.d.ts +4 -0
  140. package/dist/components/_shared/privacy-mask.d.ts +2 -4
  141. package/dist/components/_shared/saved-view-tabs/saved-tab.d.ts +54 -0
  142. package/dist/components/_shared/saved-view-tabs/saved-view-tabs.d.ts +93 -0
  143. package/dist/components/_shared/saved-view-tabs/use-saved-view-tabs.d.ts +59 -0
  144. package/dist/components/_shared/saved-view-tabs/view-adapter.d.ts +69 -0
  145. package/dist/components/_shared/table-filters/calendar-day.d.ts +27 -0
  146. package/dist/components/_shared/table-filters/predicates.d.ts +56 -0
  147. package/dist/components/_shared/table-toolbar/context.d.ts +28 -0
  148. package/dist/components/_shared/table-toolbar/describe-filter.d.ts +42 -0
  149. package/dist/components/_shared/table-toolbar/export-files.d.ts +47 -0
  150. package/dist/components/{data-table/xlsx-export.d.ts → _shared/table-toolbar/export-xlsx.d.ts} +2 -2
  151. package/dist/components/_shared/table-toolbar/parts.d.ts +125 -0
  152. package/dist/components/_shared/table-toolbar/seam.d.ts +261 -0
  153. package/dist/components/ai-permission-notice/index.js +1 -1
  154. package/dist/components/anamnesis-card/index.js +1 -1
  155. package/dist/components/anamnesis-summary-card/index.js +1 -1
  156. package/dist/components/appointment-card/index.js +2 -2
  157. package/dist/components/appointment-details-panel/index.js +1 -1
  158. package/dist/components/appointment-timeline/index.js +1 -1
  159. package/dist/components/bishop-score/index.js +1 -1
  160. package/dist/components/bmi-calculator/index.js +1 -1
  161. package/dist/components/booking/index.js +1 -1
  162. package/dist/components/booking/step-focus.d.ts +0 -6
  163. package/dist/components/card/index.js +1 -1
  164. package/dist/components/care-plan-card/index.js +1 -1
  165. package/dist/components/care-plan-entry-card/index.js +1 -1
  166. package/dist/components/chart/index.js +1 -1
  167. package/dist/components/chat-container/index.js +1 -1
  168. package/dist/components/checkbox/checkbox.d.ts +66 -6
  169. package/dist/components/checkbox/index.js +1 -1
  170. package/dist/components/checkbox-group/index.js +1 -1
  171. package/dist/components/clinical-note-card/index.js +1 -1
  172. package/dist/components/connection-status/index.js +1 -1
  173. package/dist/components/contact-card/index.js +1 -1
  174. package/dist/components/contact-profile-card/index.js +1 -1
  175. package/dist/components/cycle-calculator/index.js +1 -1
  176. package/dist/components/data-grid/announcer.d.ts +27 -0
  177. package/dist/components/data-grid/body.d.ts +95 -0
  178. package/dist/components/data-grid/columns.d.ts +96 -0
  179. package/dist/components/data-grid/data-grid.agent.d.ts +2 -1
  180. package/dist/components/data-grid/data-grid.d.ts +11 -27
  181. package/dist/components/data-grid/data-grid.variants.d.ts +118 -0
  182. package/dist/components/data-grid/editors.d.ts +8 -0
  183. package/dist/components/data-grid/export-snapshot.d.ts +3 -0
  184. package/dist/components/data-grid/features.d.ts +56 -0
  185. package/dist/components/data-grid/filter-fns.d.ts +23 -0
  186. package/dist/components/data-grid/filters/date-range-panel.d.ts +8 -0
  187. package/dist/components/data-grid/filters/filter-panels.d.ts +27 -0
  188. package/dist/components/data-grid/filters/filter-trigger.d.ts +7 -0
  189. package/dist/components/data-grid/footer.d.ts +10 -0
  190. package/dist/components/data-grid/grid-context.d.ts +18 -0
  191. package/dist/components/data-grid/handle.d.ts +60 -0
  192. package/dist/components/data-grid/header.d.ts +12 -0
  193. package/dist/components/data-grid/index.d.ts +3 -0
  194. package/dist/components/data-grid/index.js +10 -3
  195. package/dist/components/data-grid/keyboard.d.ts +76 -0
  196. package/dist/components/data-grid/pager.d.ts +18 -0
  197. package/dist/components/data-grid/persistence.d.ts +60 -0
  198. package/dist/components/data-grid/print.d.ts +10 -0
  199. package/dist/components/data-grid/responsive.d.ts +36 -0
  200. package/dist/components/data-grid/selection.d.ts +58 -0
  201. package/dist/components/data-grid/state.d.ts +119 -0
  202. package/dist/components/data-grid/states.d.ts +34 -0
  203. package/dist/components/data-grid/toolbar-seam.d.ts +7 -0
  204. package/dist/components/data-grid/toolbar.d.ts +41 -0
  205. package/dist/components/data-grid/types.d.ts +1346 -0
  206. package/dist/components/data-grid/use-data-grid-engine.d.ts +9 -0
  207. package/dist/components/data-grid/virtual-rows.d.ts +43 -0
  208. package/dist/components/data-grid-tabs/data-grid-tabs.agent.d.ts +9 -0
  209. package/dist/components/data-grid-tabs/data-grid-tabs.d.ts +4 -0
  210. package/dist/components/data-grid-tabs/grid-view-adapter.d.ts +15 -0
  211. package/dist/components/data-grid-tabs/index.d.ts +5 -0
  212. package/dist/components/data-grid-tabs/index.js +8 -0
  213. package/dist/components/data-grid-tabs/types.d.ts +220 -0
  214. package/dist/components/data-table/ag-toolbar-seam.d.ts +35 -0
  215. package/dist/components/data-table/calendar-day.d.ts +4 -21
  216. package/dist/components/data-table/data-table.d.ts +10 -6
  217. package/dist/components/data-table/filters/date-range-filter.d.ts +5 -9
  218. package/dist/components/data-table/filters/filter-kind.d.ts +6 -0
  219. package/dist/components/data-table/filters/number-filter.d.ts +6 -10
  220. package/dist/components/data-table/filters/select-filter.d.ts +2 -4
  221. package/dist/components/data-table/filters/text-filter.d.ts +2 -5
  222. package/dist/components/data-table/index.js +4 -4
  223. package/dist/components/data-table/toolbar.d.ts +25 -21
  224. package/dist/components/data-table-tabs/ag-view-adapter.d.ts +17 -0
  225. package/dist/components/data-table-tabs/data-table-tabs.d.ts +34 -33
  226. package/dist/components/data-table-tabs/index.js +1 -1
  227. package/dist/components/data-table-tabs/use-data-table-filter-tabs.d.ts +11 -66
  228. package/dist/components/date-picker/index.js +1 -1
  229. package/dist/components/date-range-picker/index.js +1 -1
  230. package/dist/components/date-time-picker/index.js +1 -1
  231. package/dist/components/document-preview/index.js +1 -1
  232. package/dist/components/due-date-calculator/index.js +2 -2
  233. package/dist/components/entity-summary/index.js +1 -1
  234. package/dist/components/face-scheme/index.js +1 -1
  235. package/dist/components/fetal-weight/index.js +1 -1
  236. package/dist/components/file-manager/index.js +1 -1
  237. package/dist/components/finished-terminal/index.js +1 -1
  238. package/dist/components/gestational-age-calculator/index.js +1 -1
  239. package/dist/components/hcg-doubling/index.js +1 -1
  240. package/dist/components/heatmap/index.js +1 -1
  241. package/dist/components/icon-button-group/icon-button-group.d.ts +19 -1
  242. package/dist/components/icon-button-group/index.d.ts +1 -1
  243. package/dist/components/icon-button-group/index.js +1 -1
  244. package/dist/components/index.d.ts +1 -0
  245. package/dist/components/map-view/index.js +1 -1
  246. package/dist/components/map-view/map-view.d.ts +16 -0
  247. package/dist/components/notes-panel/index.js +1 -1
  248. package/dist/components/operator-hero/index.js +1 -1
  249. package/dist/components/patient-details/index.js +1 -1
  250. package/dist/components/patient-search/index.js +1 -1
  251. package/dist/components/patient-search/patient-search.d.ts +6 -2
  252. package/dist/components/patient-summary-card/index.js +1 -1
  253. package/dist/components/patient-table/index.js +1 -1
  254. package/dist/components/payment-card/index.js +1 -1
  255. package/dist/components/periodontal-chart/index.js +1 -1
  256. package/dist/components/periodontal-chart-card/index.js +1 -1
  257. package/dist/components/periodontal-diagnosis/index.js +1 -1
  258. package/dist/components/periodontal-risk-chart/index.js +1 -1
  259. package/dist/components/permission-matrix/index.js +1 -1
  260. package/dist/components/practice-profile-hero/index.js +1 -1
  261. package/dist/components/practice-results/index.js +1 -1
  262. package/dist/components/practice-results/practice-results.d.ts +15 -2
  263. package/dist/components/pregnancy-dating/index.js +1 -1
  264. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  265. package/dist/components/public-footer/index.js +1 -1
  266. package/dist/components/public-footer/public-footer.d.ts +23 -0
  267. package/dist/components/public-header/index.js +1 -1
  268. package/dist/components/public-header/public-header.d.ts +7 -0
  269. package/dist/components/radiograph-panel/index.js +1 -1
  270. package/dist/components/reviews-panel/index.js +1 -1
  271. package/dist/components/rich-text-editor/index.js +2 -2
  272. package/dist/components/section-card/index.js +1 -1
  273. package/dist/components/sidebar/index.js +1 -1
  274. package/dist/components/slot-grid/index.js +1 -1
  275. package/dist/components/stat/index.js +1 -1
  276. package/dist/components/stat/stat.d.ts +7 -0
  277. package/dist/components/tag/index.js +1 -1
  278. package/dist/components/task-card/index.js +1 -1
  279. package/dist/components/task-editor/index.js +1 -1
  280. package/dist/components/task-tray/index.js +1 -1
  281. package/dist/components/tasks-panel/index.js +1 -1
  282. package/dist/components/theme-toggle/index.js +1 -1
  283. package/dist/components/timeline/index.js +1 -1
  284. package/dist/components/transcript-panel/index.js +1 -1
  285. package/dist/components/treatment-receipt/index.js +1 -1
  286. package/dist/components/voice-control-panel/index.js +1 -1
  287. package/dist/components/workflow/index.js +1 -1
  288. package/dist/core.css +1 -1
  289. package/dist/host-compat.css +36 -2
  290. package/dist/i18n/locales/ar.d.ts +95 -0
  291. package/dist/i18n/locales/ar.js +98 -3
  292. package/dist/i18n/locales/de.d.ts +95 -0
  293. package/dist/i18n/locales/de.js +98 -3
  294. package/dist/i18n/locales/el.d.ts +95 -0
  295. package/dist/i18n/locales/el.js +98 -3
  296. package/dist/i18n/locales/en.d.ts +95 -0
  297. package/dist/i18n/locales/en.js +98 -2
  298. package/dist/i18n/locales/es.d.ts +95 -0
  299. package/dist/i18n/locales/es.js +98 -3
  300. package/dist/i18n/locales/fr.d.ts +95 -0
  301. package/dist/i18n/locales/fr.js +98 -3
  302. package/dist/i18n/locales/hi.d.ts +95 -0
  303. package/dist/i18n/locales/hi.js +98 -3
  304. package/dist/i18n/locales/it.d.ts +95 -0
  305. package/dist/i18n/locales/it.js +98 -3
  306. package/dist/i18n/locales/ja.d.ts +95 -0
  307. package/dist/i18n/locales/ja.js +98 -3
  308. package/dist/i18n/locales/nl.d.ts +95 -0
  309. package/dist/i18n/locales/nl.js +98 -3
  310. package/dist/i18n/locales/pl.d.ts +95 -0
  311. package/dist/i18n/locales/pl.js +98 -3
  312. package/dist/i18n/locales/pt.d.ts +95 -0
  313. package/dist/i18n/locales/pt.js +98 -3
  314. package/dist/i18n/locales/ro.d.ts +95 -0
  315. package/dist/i18n/locales/ro.js +98 -3
  316. package/dist/i18n/locales/ru.d.ts +95 -0
  317. package/dist/i18n/locales/ru.js +98 -3
  318. package/dist/i18n/locales/sq.d.ts +95 -0
  319. package/dist/i18n/locales/sq.js +98 -3
  320. package/dist/i18n/locales/sv.d.ts +95 -0
  321. package/dist/i18n/locales/sv.js +98 -3
  322. package/dist/i18n/locales/tr.d.ts +95 -0
  323. package/dist/i18n/locales/tr.js +98 -3
  324. package/dist/i18n/locales/zh.d.ts +95 -0
  325. package/dist/i18n/locales/zh.js +98 -3
  326. package/dist/index.js +1048 -1036
  327. package/dist/locales/ar.json +98 -3
  328. package/dist/locales/de.json +98 -3
  329. package/dist/locales/el.json +98 -3
  330. package/dist/locales/en.json +97 -2
  331. package/dist/locales/es.json +98 -3
  332. package/dist/locales/fr.json +98 -3
  333. package/dist/locales/hi.json +98 -3
  334. package/dist/locales/it.json +98 -3
  335. package/dist/locales/ja.json +98 -3
  336. package/dist/locales/nl.json +98 -3
  337. package/dist/locales/pl.json +98 -3
  338. package/dist/locales/pt.json +98 -3
  339. package/dist/locales/ro.json +98 -3
  340. package/dist/locales/ru.json +98 -3
  341. package/dist/locales/sq.json +98 -3
  342. package/dist/locales/sv.json +98 -3
  343. package/dist/locales/tr.json +98 -3
  344. package/dist/locales/zh.json +98 -3
  345. package/dist/patterns/alia-assistant/index.js +1 -1
  346. package/dist/patterns/anamnesis/index.js +1 -1
  347. package/dist/patterns/calendar/index.js +1 -1
  348. package/dist/patterns/forgot-password-form/index.js +1 -1
  349. package/dist/patterns/login-form/index.js +1 -1
  350. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  351. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  352. package/dist/patterns/registration-form/index.js +1 -1
  353. package/dist/patterns/reset-password-form/index.js +1 -1
  354. package/dist/patterns/send-registration-link-form/index.js +1 -1
  355. package/dist/patterns/signed-out-frame/index.js +1 -1
  356. package/dist/patterns/workflow-webhook-action/index.js +1 -1
  357. package/dist/tokens.css +1 -1
  358. package/package.json +5 -1
  359. package/dist/_chunks/checkbox-a7Sh-dXb.js +0 -227
  360. package/dist/_chunks/data-grid.agent-CASyEAnb.js +0 -1773
  361. package/dist/_chunks/data-table-C9idMvs0.js +0 -2042
  362. package/dist/_chunks/data-table-tabs-Db7zToFD.js +0 -728
  363. package/dist/_chunks/format--x5jypvH.js +0 -1319
  364. package/dist/_chunks/icon-button-group-mXvYDaba.js +0 -427
  365. package/dist/_chunks/link-cell-renderer-_Fv3WEmb.js +0 -867
  366. package/dist/_chunks/map-view-Dn7aXZJw.js +0 -731
  367. package/dist/_chunks/practice-results-BByRCIuR.js +0 -1977
  368. package/dist/_chunks/privacy-mask-DbEKI-Jv.js +0 -81
  369. package/dist/_chunks/subDays-DKISP2nE.js +0 -8
@@ -1,20 +1,22 @@
1
- import m, { useMemo as he, createContext as cn, useContext as un, useCallback as G, useRef as ke, useLayoutEffect as hn, useState as De, useEffect as lt } from "react";
2
- import { useTranslation as mn } from "react-i18next";
3
- import { f as yn } from "./intl-locale-FWh-Y5_3.js";
4
- import { t as B, c as R, n as Oe, u as gn, B as le, f as fe, k as ft, z as ct, y as ut, G as bn, d as vn, s as pn, x as Mn, b as kn, H as Dn } from "./format--x5jypvH.js";
5
- import { jsx as Le } from "react/jsx-runtime";
6
- import { C as On } from "./chevron-left-B8cOyH-V.js";
7
- import { C as wn } from "./chevron-right-I9AeSxH2.js";
1
+ import m, { useMemo as ce, createContext as on, useContext as an, useCallback as G, useRef as pe, useLayoutEffect as dn, useState as Pe, useEffect as ln } from "react";
2
+ import { useTranslation as fn } from "react-i18next";
3
+ import { f as un } from "./intl-locale-FWh-Y5_3.js";
4
+ import { enUS as le } from "./en-US-C4QKhzhA.js";
5
+ import { f as fe, d as ot, h as at, e as it, n as cn, a as hn, s as mn, c as gn, o as yn } from "./format-ql5WTsYT.js";
6
+ import { t as B, c as V, n as ke, g as bn, s as vn } from "./normalizeDates-BBNNIR-v.js";
7
+ import { jsx as Je } from "react/jsx-runtime";
8
+ import { C as pn } from "./chevron-left-B8cOyH-V.js";
9
+ import { C as kn } from "./chevron-right-I9AeSxH2.js";
8
10
  import { c as ne } from "./index-D2ZczOXr.js";
9
- function xs() {
10
- const { t: e, i18n: t } = mn("ui");
11
- return he(
12
- () => Wn(e, t.language),
11
+ function Ss() {
12
+ const { t: e, i18n: t } = fn("ui");
13
+ return ce(
14
+ () => Dn(e, t.language),
13
15
  [e, t.language]
14
16
  );
15
17
  }
16
- function Wn(e, t) {
17
- const r = yn(t), n = new Intl.DateTimeFormat(r, {
18
+ function Dn(e, t) {
19
+ const r = un(t), n = new Intl.DateTimeFormat(r, {
18
20
  calendar: "gregory",
19
21
  dateStyle: "full"
20
22
  }), s = new Intl.DateTimeFormat(r, {
@@ -42,7 +44,7 @@ function Wn(e, t) {
42
44
  labelWeekNumberHeader: () => e("inputs.datePicker.weekNumberHeader")
43
45
  };
44
46
  }
45
- function Nn(e, t, r = "long") {
47
+ function Mn(e, t, r = "long") {
46
48
  return new Intl.DateTimeFormat("en-US", {
47
49
  // Enforces engine to render the time. Without the option JavaScriptCore omits it.
48
50
  hour: "numeric",
@@ -50,29 +52,29 @@ function Nn(e, t, r = "long") {
50
52
  timeZoneName: r
51
53
  }).format(t).split(/\s/g).slice(2).join(" ");
52
54
  }
53
- const Ee = {}, ce = {};
55
+ const xe = {}, ue = {};
54
56
  function se(e, t) {
55
57
  try {
56
- const n = (Ee[e] || (Ee[e] = new Intl.DateTimeFormat("en-US", {
58
+ const n = (xe[e] || (xe[e] = new Intl.DateTimeFormat("en-US", {
57
59
  timeZone: e,
58
60
  timeZoneName: "longOffset"
59
61
  }).format))(t).split("GMT")[1];
60
- return n in ce ? ce[n] : et(n, n.split(":"));
62
+ return n in ue ? ue[n] : Qe(n, n.split(":"));
61
63
  } catch {
62
- if (e in ce) return ce[e];
63
- const r = e == null ? void 0 : e.match(Cn);
64
- return r ? et(e, r.slice(1)) : NaN;
64
+ if (e in ue) return ue[e];
65
+ const r = e == null ? void 0 : e.match(On);
66
+ return r ? Qe(e, r.slice(1)) : NaN;
65
67
  }
66
68
  }
67
- const Cn = /([+-]\d\d):?(\d\d)?/;
68
- function et(e, t) {
69
+ const On = /([+-]\d\d):?(\d\d)?/;
70
+ function Qe(e, t) {
69
71
  const r = +(t[0] || 0), n = +(t[1] || 0), s = +(t[2] || 0) / 60;
70
- return ce[e] = r * 60 + n > 0 ? r * 60 + n + s : r * 60 - n - s;
72
+ return ue[e] = r * 60 + n > 0 ? r * 60 + n + s : r * 60 - n - s;
71
73
  }
72
74
  class J extends Date {
73
75
  //#region static
74
76
  constructor(...t) {
75
- super(), t.length > 1 && typeof t[t.length - 1] == "string" && (this.timeZone = t.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(se(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)), ht(this), je(this)) : this.setTime(Date.now());
77
+ super(), t.length > 1 && typeof t[t.length - 1] == "string" && (this.timeZone = t.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(se(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)), dt(this), ze(this)) : this.setTime(Date.now());
76
78
  }
77
79
  static tz(t, ...r) {
78
80
  return r.length ? new J(...r, t) : new J(Date.now(), t);
@@ -89,7 +91,7 @@ class J extends Date {
89
91
  //#endregion
90
92
  //#region time
91
93
  setTime(t) {
92
- return Date.prototype.setTime.apply(this, arguments), je(this), +this;
94
+ return Date.prototype.setTime.apply(this, arguments), ze(this), +this;
93
95
  }
94
96
  //#endregion
95
97
  //#region date-fns integration
@@ -98,25 +100,25 @@ class J extends Date {
98
100
  }
99
101
  //#endregion
100
102
  }
101
- const tt = /^(get|set)(?!UTC)/;
103
+ const Xe = /^(get|set)(?!UTC)/;
102
104
  Object.getOwnPropertyNames(Date.prototype).forEach((e) => {
103
- if (!tt.test(e)) return;
104
- const t = e.replace(tt, "$1UTC");
105
+ if (!Xe.test(e)) return;
106
+ const t = e.replace(Xe, "$1UTC");
105
107
  J.prototype[t] && (e.startsWith("get") ? J.prototype[e] = function() {
106
108
  return this.internal[t]();
107
109
  } : (J.prototype[e] = function() {
108
- return Date.prototype[t].apply(this.internal, arguments), Sn(this), +this;
110
+ return Date.prototype[t].apply(this.internal, arguments), wn(this), +this;
109
111
  }, J.prototype[t] = function() {
110
- return Date.prototype[t].apply(this, arguments), je(this), +this;
112
+ return Date.prototype[t].apply(this, arguments), ze(this), +this;
111
113
  }));
112
114
  });
113
- function je(e) {
115
+ function ze(e) {
114
116
  e.internal.setTime(+e), e.internal.setUTCSeconds(e.internal.getUTCSeconds() - Math.round(-se(e.timeZone, e) * 60));
115
117
  }
116
- function Sn(e) {
117
- 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()), ht(e);
118
+ function wn(e) {
119
+ 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()), dt(e);
118
120
  }
119
- function ht(e) {
121
+ function dt(e) {
120
122
  const t = se(e.timeZone, e), r = t > 0 ? Math.floor(t) : Math.ceil(t), n = /* @__PURE__ */ new Date(+e);
121
123
  n.setUTCHours(n.getUTCHours() - 1);
122
124
  const s = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset(), o = -(/* @__PURE__ */ new Date(+n)).getTimezoneOffset(), a = s - o, i = Date.prototype.getHours.apply(e) !== e.internal.getUTCHours();
@@ -125,12 +127,12 @@ function ht(e) {
125
127
  d && Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + d);
126
128
  const l = /* @__PURE__ */ new Date(+e);
127
129
  l.setUTCSeconds(0);
128
- const f = s > 0 ? l.getSeconds() : (l.getSeconds() - 60) % 60, u = Math.round(-(se(e.timeZone, e) * 60)) % 60;
129
- (u || f) && (e.internal.setUTCSeconds(e.internal.getUTCSeconds() + u), Date.prototype.setUTCSeconds.call(e, Date.prototype.getUTCSeconds.call(e) + u + f));
130
- const y = se(e.timeZone, e), g = y > 0 ? Math.floor(y) : Math.ceil(y), W = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset() - g, k = g !== r, S = W - d;
131
- if (k && S) {
130
+ const f = s > 0 ? l.getSeconds() : (l.getSeconds() - 60) % 60, c = Math.round(-(se(e.timeZone, e) * 60)) % 60;
131
+ (c || f) && (e.internal.setUTCSeconds(e.internal.getUTCSeconds() + c), Date.prototype.setUTCSeconds.call(e, Date.prototype.getUTCSeconds.call(e) + c + f));
132
+ const g = se(e.timeZone, e), y = g > 0 ? Math.floor(g) : Math.ceil(g), W = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset() - y, D = y !== r, S = W - d;
133
+ if (D && S) {
132
134
  Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + S);
133
- const M = se(e.timeZone, e), v = M > 0 ? Math.floor(M) : Math.ceil(M), N = g - v;
135
+ const k = se(e.timeZone, e), v = k > 0 ? Math.floor(k) : Math.ceil(k), N = y - v;
134
136
  N && (e.internal.setUTCMinutes(e.internal.getUTCMinutes() + N), Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + N));
135
137
  }
136
138
  }
@@ -154,7 +156,7 @@ class F extends J {
154
156
  }
155
157
  toTimeString() {
156
158
  const t = this.internal.toUTCString().split(" ")[4], [r, n, s] = this.tzComponents();
157
- return `${t} GMT${r}${n}${s} (${Nn(this.timeZone, this)})`;
159
+ return `${t} GMT${r}${n}${s} (${Mn(this.timeZone, this)})`;
158
160
  }
159
161
  toLocaleString(t, r) {
160
162
  return Date.prototype.toLocaleString.call(this, t, {
@@ -190,16 +192,16 @@ class F extends J {
190
192
  }
191
193
  //#endregion
192
194
  }
193
- function mt(e, t, r) {
195
+ function lt(e, t, r) {
194
196
  const n = B(e, r == null ? void 0 : r.in);
195
- return isNaN(t) ? R((r == null ? void 0 : r.in) || e, NaN) : (t && n.setDate(n.getDate() + t), n);
197
+ return isNaN(t) ? V((r == null ? void 0 : r.in) || e, NaN) : (t && n.setDate(n.getDate() + t), n);
196
198
  }
197
- function yt(e, t, r) {
199
+ function ft(e, t, r) {
198
200
  const n = B(e, r == null ? void 0 : r.in);
199
- if (isNaN(t)) return R(e, NaN);
201
+ if (isNaN(t)) return V(e, NaN);
200
202
  if (!t)
201
203
  return n;
202
- const s = n.getDate(), o = R(e, n.getTime());
204
+ const s = n.getDate(), o = V(e, n.getTime());
203
205
  o.setMonth(n.getMonth() + t + 1, 0);
204
206
  const a = o.getDate();
205
207
  return s >= a ? o : (n.setFullYear(
@@ -208,138 +210,138 @@ function yt(e, t, r) {
208
210
  s
209
211
  ), n);
210
212
  }
211
- function _n(e, t, r) {
212
- return mt(e, t * 7, r);
213
+ function Wn(e, t, r) {
214
+ return lt(e, t * 7, r);
213
215
  }
214
- function xn(e, t, r) {
215
- return yt(e, t * 12, r);
216
+ function Nn(e, t, r) {
217
+ return ft(e, t * 12, r);
216
218
  }
217
- function Yn(e, t) {
219
+ function Cn(e, t) {
218
220
  let r, n = t == null ? void 0 : t.in;
219
221
  return e.forEach((s) => {
220
- !n && typeof s == "object" && (n = R.bind(null, s));
222
+ !n && typeof s == "object" && (n = V.bind(null, s));
221
223
  const o = B(s, n);
222
224
  (!r || r < o || isNaN(+o)) && (r = o);
223
- }), R(n, r || NaN);
225
+ }), V(n, r || NaN);
224
226
  }
225
- function Tn(e, t) {
227
+ function Sn(e, t) {
226
228
  let r, n = t == null ? void 0 : t.in;
227
229
  return e.forEach((s) => {
228
- !n && typeof s == "object" && (n = R.bind(null, s));
230
+ !n && typeof s == "object" && (n = V.bind(null, s));
229
231
  const o = B(s, n);
230
232
  (!r || r > o || isNaN(+o)) && (r = o);
231
- }), R(n, r || NaN);
233
+ }), V(n, r || NaN);
232
234
  }
233
- function gt(e, t, r) {
234
- const [n, s] = Oe(
235
+ function ut(e, t, r) {
236
+ const [n, s] = ke(
235
237
  r == null ? void 0 : r.in,
236
238
  e,
237
239
  t
238
240
  ), o = n.getFullYear() - s.getFullYear(), a = n.getMonth() - s.getMonth();
239
241
  return o * 12 + a;
240
242
  }
241
- function En(e, t) {
243
+ function _n(e, t) {
242
244
  const r = B(e, t == null ? void 0 : t.in), n = r.getMonth();
243
245
  return r.setFullYear(r.getFullYear(), n + 1, 0), r.setHours(23, 59, 59, 999), r;
244
246
  }
245
- function bt(e, t) {
246
- const [r, n] = Oe(e, t.start, t.end);
247
+ function ct(e, t) {
248
+ const [r, n] = ke(e, t.start, t.end);
247
249
  return { start: r, end: n };
248
250
  }
249
- function In(e, t) {
250
- const { start: r, end: n } = bt(t == null ? void 0 : t.in, e);
251
+ function xn(e, t) {
252
+ const { start: r, end: n } = ct(t == null ? void 0 : t.in, e);
251
253
  let s = +r > +n;
252
254
  const o = s ? +r : +n, a = s ? n : r;
253
255
  a.setHours(0, 0, 0, 0), a.setDate(1);
254
256
  let i = 1;
255
257
  const d = [];
256
258
  for (; +a <= o; )
257
- d.push(R(r, a)), a.setMonth(a.getMonth() + i);
259
+ d.push(V(r, a)), a.setMonth(a.getMonth() + i);
258
260
  return s ? d.reverse() : d;
259
261
  }
260
- function Bn(e, t) {
262
+ function Yn(e, t) {
261
263
  const r = B(e, t == null ? void 0 : t.in);
262
264
  return r.setDate(1), r.setHours(0, 0, 0, 0), r;
263
265
  }
264
- function Fn(e, t) {
266
+ function Tn(e, t) {
265
267
  const r = B(e, t == null ? void 0 : t.in), n = r.getFullYear();
266
268
  return r.setFullYear(n + 1, 0, 0), r.setHours(23, 59, 59, 999), r;
267
269
  }
268
- function zn(e, t) {
269
- const { start: r, end: n } = bt(t == null ? void 0 : t.in, e);
270
+ function En(e, t) {
271
+ const { start: r, end: n } = ct(t == null ? void 0 : t.in, e);
270
272
  let s = +r > +n;
271
273
  const o = s ? +r : +n, a = s ? n : r;
272
274
  a.setHours(0, 0, 0, 0), a.setMonth(0, 1);
273
275
  let i = 1;
274
276
  const d = [];
275
277
  for (; +a <= o; )
276
- d.push(R(r, a)), a.setFullYear(a.getFullYear() + i);
278
+ d.push(V(r, a)), a.setFullYear(a.getFullYear() + i);
277
279
  return s ? d.reverse() : d;
278
280
  }
279
- function vt(e, t) {
281
+ function ht(e, t) {
280
282
  var i, d, l, f;
281
- const r = gn(), n = (t == null ? void 0 : t.weekStartsOn) ?? ((d = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : d.weekStartsOn) ?? r.weekStartsOn ?? ((f = (l = r.locale) == null ? void 0 : l.options) == null ? void 0 : f.weekStartsOn) ?? 0, s = B(e, t == null ? void 0 : t.in), o = s.getDay(), a = (o < n ? -7 : 0) + 6 - (o - n);
283
+ const r = bn(), n = (t == null ? void 0 : t.weekStartsOn) ?? ((d = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : d.weekStartsOn) ?? r.weekStartsOn ?? ((f = (l = r.locale) == null ? void 0 : l.options) == null ? void 0 : f.weekStartsOn) ?? 0, s = B(e, t == null ? void 0 : t.in), o = s.getDay(), a = (o < n ? -7 : 0) + 6 - (o - n);
282
284
  return s.setDate(s.getDate() + a), s.setHours(23, 59, 59, 999), s;
283
285
  }
284
- function Pn(e, t) {
285
- return vt(e, { ...t, weekStartsOn: 1 });
286
+ function In(e, t) {
287
+ return ht(e, { ...t, weekStartsOn: 1 });
286
288
  }
287
- function An(e, t) {
288
- const r = B(e, t == null ? void 0 : t.in), n = r.getFullYear(), s = r.getMonth(), o = R(r, 0);
289
+ function Bn(e, t) {
290
+ const r = B(e, t == null ? void 0 : t.in), n = r.getFullYear(), s = r.getMonth(), o = V(r, 0);
289
291
  return o.setFullYear(n, s + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
290
292
  }
291
- function Hn(e, t) {
293
+ function Fn(e, t) {
292
294
  return B(e, t == null ? void 0 : t.in).getMonth();
293
295
  }
294
- function jn(e, t) {
296
+ function Pn(e, t) {
295
297
  return B(e, t == null ? void 0 : t.in).getFullYear();
296
298
  }
297
- function $n(e, t) {
299
+ function zn(e, t) {
298
300
  return +B(e) > +B(t);
299
301
  }
300
- function Gn(e, t) {
302
+ function An(e, t) {
301
303
  return +B(e) < +B(t);
302
304
  }
303
- function qn(e, t, r) {
304
- const [n, s] = Oe(
305
+ function Hn(e, t, r) {
306
+ const [n, s] = ke(
305
307
  r == null ? void 0 : r.in,
306
308
  e,
307
309
  t
308
310
  );
309
311
  return n.getFullYear() === s.getFullYear() && n.getMonth() === s.getMonth();
310
312
  }
311
- function Rn(e, t, r) {
312
- const [n, s] = Oe(
313
+ function jn(e, t, r) {
314
+ const [n, s] = ke(
313
315
  r == null ? void 0 : r.in,
314
316
  e,
315
317
  t
316
318
  );
317
319
  return n.getFullYear() === s.getFullYear();
318
320
  }
319
- function Vn(e, t, r) {
320
- const n = B(e, r == null ? void 0 : r.in), s = n.getFullYear(), o = n.getDate(), a = R(e, 0);
321
+ function $n(e, t, r) {
322
+ const n = B(e, r == null ? void 0 : r.in), s = n.getFullYear(), o = n.getDate(), a = V(e, 0);
321
323
  a.setFullYear(s, t, 15), a.setHours(0, 0, 0, 0);
322
- const i = An(a);
324
+ const i = Bn(a);
323
325
  return n.setMonth(t, Math.min(o, i)), n;
324
326
  }
325
- function Un(e, t, r) {
327
+ function Gn(e, t, r) {
326
328
  const n = B(e, r == null ? void 0 : r.in);
327
- return isNaN(+n) ? R(e, NaN) : (n.setFullYear(t), n);
329
+ return isNaN(+n) ? V(e, NaN) : (n.setFullYear(t), n);
328
330
  }
329
- const nt = 5, Kn = 4;
330
- function Zn(e, t) {
331
- const r = t.startOfMonth(e), n = r.getDay() > 0 ? r.getDay() : 7, s = t.addDays(e, -n + 1), o = t.addDays(s, nt * 7 - 1);
332
- return t.getMonth(e) === t.getMonth(o) ? nt : Kn;
331
+ const Le = 5, qn = 4;
332
+ function Vn(e, t) {
333
+ const r = t.startOfMonth(e), n = r.getDay() > 0 ? r.getDay() : 7, s = t.addDays(e, -n + 1), o = t.addDays(s, Le * 7 - 1);
334
+ return t.getMonth(e) === t.getMonth(o) ? Le : qn;
333
335
  }
334
- function pt(e, t) {
336
+ function mt(e, t) {
335
337
  const r = t.startOfMonth(e), n = r.getDay();
336
338
  return n === 1 ? r : n === 0 ? t.addDays(r, -6) : t.addDays(r, -1 * (n - 1));
337
339
  }
338
- function Jn(e, t) {
339
- const r = pt(e, t), n = Zn(e, t);
340
+ function Rn(e, t) {
341
+ const r = mt(e, t), n = Vn(e, t);
340
342
  return t.addDays(r, n * 7 - 1);
341
343
  }
342
- const Mt = {
344
+ const gt = {
343
345
  ...le,
344
346
  labels: {
345
347
  labelDayButton: (e, t, r, n) => {
@@ -387,28 +389,28 @@ class H {
387
389
  return (a = this.overrides) != null && a.newDate ? this.overrides.newDate(n, s, o) : this.options.timeZone ? new F(n, s, o, this.options.timeZone) : new Date(n, s, o);
388
390
  }, this.addDays = (n, s) => {
389
391
  var o;
390
- return (o = this.overrides) != null && o.addDays ? this.overrides.addDays(n, s) : mt(n, s);
392
+ return (o = this.overrides) != null && o.addDays ? this.overrides.addDays(n, s) : lt(n, s);
391
393
  }, this.addMonths = (n, s) => {
392
394
  var o;
393
- return (o = this.overrides) != null && o.addMonths ? this.overrides.addMonths(n, s) : yt(n, s);
395
+ return (o = this.overrides) != null && o.addMonths ? this.overrides.addMonths(n, s) : ft(n, s);
394
396
  }, this.addWeeks = (n, s) => {
395
397
  var o;
396
- return (o = this.overrides) != null && o.addWeeks ? this.overrides.addWeeks(n, s) : _n(n, s);
398
+ return (o = this.overrides) != null && o.addWeeks ? this.overrides.addWeeks(n, s) : Wn(n, s);
397
399
  }, this.addYears = (n, s) => {
398
400
  var o;
399
- return (o = this.overrides) != null && o.addYears ? this.overrides.addYears(n, s) : xn(n, s);
401
+ return (o = this.overrides) != null && o.addYears ? this.overrides.addYears(n, s) : Nn(n, s);
400
402
  }, this.differenceInCalendarDays = (n, s) => {
401
403
  var o;
402
- return (o = this.overrides) != null && o.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(n, s) : ft(n, s);
404
+ return (o = this.overrides) != null && o.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(n, s) : ot(n, s);
403
405
  }, this.differenceInCalendarMonths = (n, s) => {
404
406
  var o;
405
- return (o = this.overrides) != null && o.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(n, s) : gt(n, s);
407
+ return (o = this.overrides) != null && o.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(n, s) : ut(n, s);
406
408
  }, this.eachMonthOfInterval = (n) => {
407
409
  var s;
408
- return (s = this.overrides) != null && s.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(n) : In(n);
410
+ return (s = this.overrides) != null && s.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(n) : xn(n);
409
411
  }, this.eachYearOfInterval = (n) => {
410
412
  var i;
411
- const s = (i = this.overrides) != null && i.eachYearOfInterval ? this.overrides.eachYearOfInterval(n) : zn(n), o = new Set(s.map((d) => this.getYear(d)));
413
+ const s = (i = this.overrides) != null && i.eachYearOfInterval ? this.overrides.eachYearOfInterval(n) : En(n), o = new Set(s.map((d) => this.getYear(d)));
412
414
  if (o.size === s.length)
413
415
  return s;
414
416
  const a = [];
@@ -417,84 +419,84 @@ class H {
417
419
  }), a;
418
420
  }, this.endOfBroadcastWeek = (n) => {
419
421
  var s;
420
- return (s = this.overrides) != null && s.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(n) : Jn(n, this);
422
+ return (s = this.overrides) != null && s.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(n) : Rn(n, this);
421
423
  }, this.endOfISOWeek = (n) => {
422
424
  var s;
423
- return (s = this.overrides) != null && s.endOfISOWeek ? this.overrides.endOfISOWeek(n) : Pn(n);
425
+ return (s = this.overrides) != null && s.endOfISOWeek ? this.overrides.endOfISOWeek(n) : In(n);
424
426
  }, this.endOfMonth = (n) => {
425
427
  var s;
426
- return (s = this.overrides) != null && s.endOfMonth ? this.overrides.endOfMonth(n) : En(n);
428
+ return (s = this.overrides) != null && s.endOfMonth ? this.overrides.endOfMonth(n) : _n(n);
427
429
  }, this.endOfWeek = (n, s) => {
428
430
  var o;
429
- return (o = this.overrides) != null && o.endOfWeek ? this.overrides.endOfWeek(n, s) : vt(n, this.options);
431
+ return (o = this.overrides) != null && o.endOfWeek ? this.overrides.endOfWeek(n, s) : ht(n, this.options);
430
432
  }, this.endOfYear = (n) => {
431
433
  var s;
432
- return (s = this.overrides) != null && s.endOfYear ? this.overrides.endOfYear(n) : Fn(n);
434
+ return (s = this.overrides) != null && s.endOfYear ? this.overrides.endOfYear(n) : Tn(n);
433
435
  }, this.format = (n, s, o) => {
434
436
  var i;
435
437
  const a = (i = this.overrides) != null && i.format ? this.overrides.format(n, s, this.options) : fe(n, s, this.options);
436
438
  return this.options.numerals && this.options.numerals !== "latn" ? this.replaceDigits(a) : a;
437
439
  }, this.getISOWeek = (n) => {
438
440
  var s;
439
- return (s = this.overrides) != null && s.getISOWeek ? this.overrides.getISOWeek(n) : ct(n);
441
+ return (s = this.overrides) != null && s.getISOWeek ? this.overrides.getISOWeek(n) : at(n);
440
442
  }, this.getMonth = (n, s) => {
441
443
  var o;
442
- return (o = this.overrides) != null && o.getMonth ? this.overrides.getMonth(n, this.options) : Hn(n, this.options);
444
+ return (o = this.overrides) != null && o.getMonth ? this.overrides.getMonth(n, this.options) : Fn(n, this.options);
443
445
  }, this.getYear = (n, s) => {
444
446
  var o;
445
- return (o = this.overrides) != null && o.getYear ? this.overrides.getYear(n, this.options) : jn(n, this.options);
447
+ return (o = this.overrides) != null && o.getYear ? this.overrides.getYear(n, this.options) : Pn(n, this.options);
446
448
  }, this.getWeek = (n, s) => {
447
449
  var o;
448
- return (o = this.overrides) != null && o.getWeek ? this.overrides.getWeek(n, this.options) : ut(n, this.options);
450
+ return (o = this.overrides) != null && o.getWeek ? this.overrides.getWeek(n, this.options) : it(n, this.options);
449
451
  }, this.isAfter = (n, s) => {
450
452
  var o;
451
- return (o = this.overrides) != null && o.isAfter ? this.overrides.isAfter(n, s) : $n(n, s);
453
+ return (o = this.overrides) != null && o.isAfter ? this.overrides.isAfter(n, s) : zn(n, s);
452
454
  }, this.isBefore = (n, s) => {
453
455
  var o;
454
- return (o = this.overrides) != null && o.isBefore ? this.overrides.isBefore(n, s) : Gn(n, s);
456
+ return (o = this.overrides) != null && o.isBefore ? this.overrides.isBefore(n, s) : An(n, s);
455
457
  }, this.isDate = (n) => {
456
458
  var s;
457
- return (s = this.overrides) != null && s.isDate ? this.overrides.isDate(n) : bn(n);
459
+ return (s = this.overrides) != null && s.isDate ? this.overrides.isDate(n) : cn(n);
458
460
  }, this.isSameDay = (n, s) => {
459
461
  var o;
460
- return (o = this.overrides) != null && o.isSameDay ? this.overrides.isSameDay(n, s) : vn(n, s);
462
+ return (o = this.overrides) != null && o.isSameDay ? this.overrides.isSameDay(n, s) : hn(n, s);
461
463
  }, this.isSameMonth = (n, s) => {
462
464
  var o;
463
- return (o = this.overrides) != null && o.isSameMonth ? this.overrides.isSameMonth(n, s) : qn(n, s);
465
+ return (o = this.overrides) != null && o.isSameMonth ? this.overrides.isSameMonth(n, s) : Hn(n, s);
464
466
  }, this.isSameYear = (n, s) => {
465
467
  var o;
466
- return (o = this.overrides) != null && o.isSameYear ? this.overrides.isSameYear(n, s) : Rn(n, s);
468
+ return (o = this.overrides) != null && o.isSameYear ? this.overrides.isSameYear(n, s) : jn(n, s);
467
469
  }, this.max = (n) => {
468
470
  var s;
469
- return (s = this.overrides) != null && s.max ? this.overrides.max(n) : Yn(n);
471
+ return (s = this.overrides) != null && s.max ? this.overrides.max(n) : Cn(n);
470
472
  }, this.min = (n) => {
471
473
  var s;
472
- return (s = this.overrides) != null && s.min ? this.overrides.min(n) : Tn(n);
474
+ return (s = this.overrides) != null && s.min ? this.overrides.min(n) : Sn(n);
473
475
  }, this.setMonth = (n, s) => {
474
476
  var o;
475
- return (o = this.overrides) != null && o.setMonth ? this.overrides.setMonth(n, s) : Vn(n, s);
477
+ return (o = this.overrides) != null && o.setMonth ? this.overrides.setMonth(n, s) : $n(n, s);
476
478
  }, this.setYear = (n, s) => {
477
479
  var o;
478
- return (o = this.overrides) != null && o.setYear ? this.overrides.setYear(n, s) : Un(n, s);
480
+ return (o = this.overrides) != null && o.setYear ? this.overrides.setYear(n, s) : Gn(n, s);
479
481
  }, this.startOfBroadcastWeek = (n, s) => {
480
482
  var o;
481
- return (o = this.overrides) != null && o.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(n, this) : pt(n, this);
483
+ return (o = this.overrides) != null && o.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(n, this) : mt(n, this);
482
484
  }, this.startOfDay = (n) => {
483
485
  var s;
484
- return (s = this.overrides) != null && s.startOfDay ? this.overrides.startOfDay(n) : pn(n);
486
+ return (s = this.overrides) != null && s.startOfDay ? this.overrides.startOfDay(n) : mn(n);
485
487
  }, this.startOfISOWeek = (n) => {
486
488
  var s;
487
- return (s = this.overrides) != null && s.startOfISOWeek ? this.overrides.startOfISOWeek(n) : Mn(n);
489
+ return (s = this.overrides) != null && s.startOfISOWeek ? this.overrides.startOfISOWeek(n) : gn(n);
488
490
  }, this.startOfMonth = (n) => {
489
491
  var s;
490
- return (s = this.overrides) != null && s.startOfMonth ? this.overrides.startOfMonth(n) : Bn(n);
492
+ return (s = this.overrides) != null && s.startOfMonth ? this.overrides.startOfMonth(n) : Yn(n);
491
493
  }, this.startOfWeek = (n, s) => {
492
494
  var o;
493
- return (o = this.overrides) != null && o.startOfWeek ? this.overrides.startOfWeek(n, this.options) : kn(n, this.options);
495
+ return (o = this.overrides) != null && o.startOfWeek ? this.overrides.startOfWeek(n, this.options) : vn(n, this.options);
494
496
  }, this.startOfYear = (n) => {
495
497
  var s;
496
- return (s = this.overrides) != null && s.startOfYear ? this.overrides.startOfYear(n) : Dn(n);
497
- }, this.options = { locale: Mt, ...t }, this.overrides = r;
498
+ return (s = this.overrides) != null && s.startOfYear ? this.overrides.startOfYear(n) : yn(n);
499
+ }, this.options = { locale: gt, ...t }, this.overrides = r;
498
500
  }
499
501
  /**
500
502
  * Generates a mapping of Arabic digits (0-9) to the target numbering system
@@ -582,7 +584,7 @@ H.yearFirstLocales = /* @__PURE__ */ new Set([
582
584
  "zh-TW"
583
585
  ]);
584
586
  const Q = new H();
585
- class kt {
587
+ class yt {
586
588
  constructor(t, r, n = Q) {
587
589
  this.date = t, this.displayMonth = r, this.outside = !!(r && !n.isSameMonth(t, r)), this.dateLib = n, this.isoDate = n.format(t, "yyyy-MM-dd"), this.displayMonthId = n.format(r, "yyyy-MM"), this.dateMonthId = n.format(t, "yyyy-MM");
588
590
  }
@@ -597,23 +599,23 @@ class kt {
597
599
  return this.dateLib.isSameDay(t.date, this.date) && this.dateLib.isSameMonth(t.displayMonth, this.displayMonth);
598
600
  }
599
601
  }
600
- class Qn {
602
+ class Un {
601
603
  constructor(t, r) {
602
604
  this.date = t, this.weeks = r;
603
605
  }
604
606
  }
605
- class Xn {
607
+ class Kn {
606
608
  constructor(t, r) {
607
609
  this.days = r, this.weekNumber = t;
608
610
  }
609
611
  }
610
- function Ln(e) {
612
+ function Zn(e) {
611
613
  return m.createElement("button", { ...e });
612
614
  }
613
- function er(e) {
615
+ function Jn(e) {
614
616
  return m.createElement("span", { ...e });
615
617
  }
616
- function tr(e) {
618
+ function Qn(e) {
617
619
  const { size: t = 24, orientation: r = "left", className: n } = e;
618
620
  return (
619
621
  // biome-ignore lint/a11y/noSvgWithoutTitle: handled by the parent component
@@ -627,11 +629,11 @@ function tr(e) {
627
629
  )
628
630
  );
629
631
  }
630
- function nr(e) {
632
+ function Xn(e) {
631
633
  const { day: t, modifiers: r, ...n } = e;
632
634
  return m.createElement("td", { ...n });
633
635
  }
634
- function rr(e) {
636
+ function Ln(e) {
635
637
  const { day: t, modifiers: r, ...n } = e, s = m.useRef(null);
636
638
  return m.useEffect(() => {
637
639
  var o;
@@ -646,15 +648,15 @@ var Y;
646
648
  (function(e) {
647
649
  e.disabled = "disabled", e.hidden = "hidden", e.outside = "outside", e.focused = "focused", e.today = "today";
648
650
  })(Y || (Y = {}));
649
- var z;
651
+ var P;
650
652
  (function(e) {
651
653
  e.range_end = "range_end", e.range_middle = "range_middle", e.range_start = "range_start", e.selected = "selected";
652
- })(z || (z = {}));
654
+ })(P || (P = {}));
653
655
  var A;
654
656
  (function(e) {
655
657
  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";
656
658
  })(A || (A = {}));
657
- function sr(e) {
659
+ function er(e) {
658
660
  const { options: t, className: r, components: n, classNames: s, ...o } = e, a = [s[h.Dropdown], r].join(" "), i = t == null ? void 0 : t.find(({ value: d }) => d === o.value);
659
661
  return m.createElement(
660
662
  "span",
@@ -668,49 +670,49 @@ function sr(e) {
668
670
  )
669
671
  );
670
672
  }
671
- function or(e) {
673
+ function tr(e) {
672
674
  return m.createElement("div", { ...e });
673
675
  }
674
- function ar(e) {
676
+ function nr(e) {
675
677
  return m.createElement("div", { ...e });
676
678
  }
677
- function ir(e) {
679
+ function rr(e) {
678
680
  const { calendarMonth: t, displayIndex: r, ...n } = e;
679
681
  return m.createElement("div", { ...n }, e.children);
680
682
  }
681
- function dr(e) {
683
+ function sr(e) {
682
684
  const { calendarMonth: t, displayIndex: r, ...n } = e;
683
685
  return m.createElement("div", { ...n });
684
686
  }
685
- function lr(e) {
687
+ function or(e) {
686
688
  return m.createElement("table", { ...e });
687
689
  }
688
- function fr(e) {
690
+ function ar(e) {
689
691
  return m.createElement("div", { ...e });
690
692
  }
691
- const Dt = cn(void 0);
692
- function me() {
693
- const e = un(Dt);
693
+ const bt = on(void 0);
694
+ function he() {
695
+ const e = an(bt);
694
696
  if (e === void 0)
695
697
  throw new Error("useDayPicker() must be used within a custom component.");
696
698
  return e;
697
699
  }
698
- function cr(e) {
699
- const { components: t } = me();
700
+ function ir(e) {
701
+ const { components: t } = he();
700
702
  return m.createElement(t.Dropdown, { ...e });
701
703
  }
702
- function ur(e) {
703
- const { onPreviousClick: t, onNextClick: r, previousMonth: n, nextMonth: s, ...o } = e, { components: a, classNames: i, labels: { labelPrevious: d, labelNext: l } } = me(), f = G((y) => {
704
- s && (r == null || r(y));
705
- }, [s, r]), u = G((y) => {
706
- n && (t == null || t(y));
704
+ function dr(e) {
705
+ const { onPreviousClick: t, onNextClick: r, previousMonth: n, nextMonth: s, ...o } = e, { components: a, classNames: i, labels: { labelPrevious: d, labelNext: l } } = he(), f = G((g) => {
706
+ s && (r == null || r(g));
707
+ }, [s, r]), c = G((g) => {
708
+ n && (t == null || t(g));
707
709
  }, [n, t]);
708
710
  return m.createElement(
709
711
  "nav",
710
712
  { ...o },
711
713
  m.createElement(
712
714
  a.PreviousMonthButton,
713
- { type: "button", className: i[h.PreviousMonthButton], tabIndex: n ? void 0 : -1, "aria-disabled": n ? void 0 : !0, "aria-label": d(n), onClick: u },
715
+ { type: "button", className: i[h.PreviousMonthButton], tabIndex: n ? void 0 : -1, "aria-disabled": n ? void 0 : !0, "aria-label": d(n), onClick: c },
714
716
  m.createElement(a.Chevron, { disabled: n ? void 0 : !0, className: i[h.Chevron], orientation: "left" })
715
717
  ),
716
718
  m.createElement(
@@ -720,102 +722,102 @@ function ur(e) {
720
722
  )
721
723
  );
722
724
  }
723
- function hr(e) {
724
- const { components: t } = me();
725
+ function lr(e) {
726
+ const { components: t } = he();
725
727
  return m.createElement(t.Button, { ...e });
726
728
  }
727
- function mr(e) {
729
+ function fr(e) {
728
730
  return m.createElement("option", { ...e });
729
731
  }
730
- function yr(e) {
731
- const { components: t } = me();
732
+ function ur(e) {
733
+ const { components: t } = he();
732
734
  return m.createElement(t.Button, { ...e });
733
735
  }
734
- function gr(e) {
736
+ function cr(e) {
735
737
  const { rootRef: t, ...r } = e;
736
738
  return m.createElement("div", { ...r, ref: t });
737
739
  }
738
- function br(e) {
740
+ function hr(e) {
739
741
  return m.createElement("select", { ...e });
740
742
  }
741
- function vr(e) {
743
+ function mr(e) {
742
744
  const { week: t, ...r } = e;
743
745
  return m.createElement("tr", { ...r });
744
746
  }
745
- function pr(e) {
747
+ function gr(e) {
746
748
  return m.createElement("th", { ...e });
747
749
  }
748
- function Mr(e) {
750
+ function yr(e) {
749
751
  return m.createElement(
750
752
  "thead",
751
753
  { "aria-hidden": !0 },
752
754
  m.createElement("tr", { ...e })
753
755
  );
754
756
  }
755
- function kr(e) {
757
+ function br(e) {
756
758
  const { week: t, ...r } = e;
757
759
  return m.createElement("th", { ...r });
758
760
  }
759
- function Dr(e) {
761
+ function vr(e) {
760
762
  return m.createElement("th", { ...e });
761
763
  }
762
- function Or(e) {
764
+ function pr(e) {
763
765
  return m.createElement("tbody", { ...e });
764
766
  }
765
- function wr(e) {
766
- const { components: t } = me();
767
+ function kr(e) {
768
+ const { components: t } = he();
767
769
  return m.createElement(t.Dropdown, { ...e });
768
770
  }
769
- const Wr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
771
+ const Dr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
770
772
  __proto__: null,
771
- Button: Ln,
772
- CaptionLabel: er,
773
- Chevron: tr,
774
- Day: nr,
775
- DayButton: rr,
776
- Dropdown: sr,
777
- DropdownNav: or,
778
- Footer: ar,
779
- Month: ir,
780
- MonthCaption: dr,
781
- MonthGrid: lr,
782
- Months: fr,
783
- MonthsDropdown: cr,
784
- Nav: ur,
785
- NextMonthButton: hr,
786
- Option: mr,
787
- PreviousMonthButton: yr,
788
- Root: gr,
789
- Select: br,
790
- Week: vr,
791
- WeekNumber: kr,
792
- WeekNumberHeader: Dr,
793
- Weekday: pr,
794
- Weekdays: Mr,
795
- Weeks: Or,
796
- YearsDropdown: wr
773
+ Button: Zn,
774
+ CaptionLabel: Jn,
775
+ Chevron: Qn,
776
+ Day: Xn,
777
+ DayButton: Ln,
778
+ Dropdown: er,
779
+ DropdownNav: tr,
780
+ Footer: nr,
781
+ Month: rr,
782
+ MonthCaption: sr,
783
+ MonthGrid: or,
784
+ Months: ar,
785
+ MonthsDropdown: ir,
786
+ Nav: dr,
787
+ NextMonthButton: lr,
788
+ Option: fr,
789
+ PreviousMonthButton: ur,
790
+ Root: cr,
791
+ Select: hr,
792
+ Week: mr,
793
+ WeekNumber: br,
794
+ WeekNumberHeader: vr,
795
+ Weekday: gr,
796
+ Weekdays: yr,
797
+ Weeks: pr,
798
+ YearsDropdown: kr
797
799
  }, Symbol.toStringTag, { value: "Module" }));
798
800
  function ee(e, t, r = !1, n = Q) {
799
801
  let { from: s, to: o } = e;
800
802
  const { differenceInCalendarDays: a, isSameDay: i } = n;
801
803
  return s && o ? (a(o, s) < 0 && ([s, o] = [o, s]), a(t, s) >= (r ? 1 : 0) && a(o, t) >= (r ? 1 : 0)) : !r && o ? i(o, t) : !r && s ? i(s, t) : !1;
802
804
  }
803
- function $e(e) {
805
+ function Ae(e) {
804
806
  return !!(e && typeof e == "object" && "before" in e && "after" in e);
805
807
  }
806
- function we(e) {
808
+ function De(e) {
807
809
  return !!(e && typeof e == "object" && "from" in e);
808
810
  }
809
- function Ge(e) {
811
+ function He(e) {
810
812
  return !!(e && typeof e == "object" && "after" in e);
811
813
  }
812
- function qe(e) {
814
+ function je(e) {
813
815
  return !!(e && typeof e == "object" && "before" in e);
814
816
  }
815
- function Ot(e) {
817
+ function vt(e) {
816
818
  return !!(e && typeof e == "object" && "dayOfWeek" in e);
817
819
  }
818
- function wt(e, t) {
820
+ function pt(e, t) {
819
821
  return Array.isArray(e) && e.every(t.isDate);
820
822
  }
821
823
  function te(e, t, r = Q) {
@@ -825,21 +827,21 @@ function te(e, t, r = Q) {
825
827
  return i;
826
828
  if (r.isDate(i))
827
829
  return s(e, i);
828
- if (wt(i, r))
830
+ if (pt(i, r))
829
831
  return i.some((d) => s(e, d));
830
- if (we(i))
832
+ if (De(i))
831
833
  return ee(i, e, !1, r);
832
- if (Ot(i))
834
+ if (vt(i))
833
835
  return Array.isArray(i.dayOfWeek) ? i.dayOfWeek.includes(e.getDay()) : i.dayOfWeek === e.getDay();
834
- if ($e(i)) {
835
- const d = o(i.before, e), l = o(i.after, e), f = d > 0, u = l < 0;
836
- return a(i.before, i.after) ? u && f : f || u;
836
+ if (Ae(i)) {
837
+ const d = o(i.before, e), l = o(i.after, e), f = d > 0, c = l < 0;
838
+ return a(i.before, i.after) ? c && f : f || c;
837
839
  }
838
- return Ge(i) ? o(e, i.after) > 0 : qe(i) ? o(i.before, e) > 0 : typeof i == "function" ? i(e) : !1;
840
+ return He(i) ? o(e, i.after) > 0 : je(i) ? o(i.before, e) > 0 : typeof i == "function" ? i(e) : !1;
839
841
  });
840
842
  }
841
- function Nr(e, t, r, n, s) {
842
- const { disabled: o, hidden: a, modifiers: i, showOutsideDays: d, broadcastCalendar: l, today: f = s.today() } = t, { isSameDay: u, isSameMonth: y, startOfMonth: g, isBefore: O, endOfMonth: W, isAfter: k } = s, S = r && g(r), M = n && W(n), v = {
843
+ function Mr(e, t, r, n, s) {
844
+ const { disabled: o, hidden: a, modifiers: i, showOutsideDays: d, broadcastCalendar: l, today: f = s.today() } = t, { isSameDay: c, isSameMonth: g, startOfMonth: y, isBefore: O, endOfMonth: W, isAfter: D } = s, S = r && y(r), k = n && W(n), v = {
843
845
  [Y.focused]: [],
844
846
  [Y.outside]: [],
845
847
  [Y.disabled]: [],
@@ -847,15 +849,15 @@ function Nr(e, t, r, n, s) {
847
849
  [Y.today]: []
848
850
  }, N = {};
849
851
  for (const p of e) {
850
- const { date: c, displayMonth: w } = p, T = !!(w && !y(c, w)), I = !!(S && O(c, S)), E = !!(M && k(c, M)), j = !!(o && te(c, o, s)), re = !!(a && te(c, a, s)) || I || E || // Broadcast calendar will show outside days as default
851
- !l && !d && T || l && d === !1 && T, X = u(c, f);
852
+ const { date: u, displayMonth: w } = p, T = !!(w && !g(u, w)), I = !!(S && O(u, S)), E = !!(k && D(u, k)), j = !!(o && te(u, o, s)), re = !!(a && te(u, a, s)) || I || E || // Broadcast calendar will show outside days as default
853
+ !l && !d && T || l && d === !1 && T, X = c(u, f);
852
854
  T && v.outside.push(p), j && v.disabled.push(p), re && v.hidden.push(p), X && v.today.push(p), i && Object.keys(i).forEach(($) => {
853
855
  const oe = i == null ? void 0 : i[$];
854
- oe && te(c, oe, s) && (N[$] ? N[$].push(p) : N[$] = [p]);
856
+ oe && te(u, oe, s) && (N[$] ? N[$].push(p) : N[$] = [p]);
855
857
  });
856
858
  }
857
859
  return (p) => {
858
- const c = {
860
+ const u = {
859
861
  [Y.focused]: !1,
860
862
  [Y.disabled]: !1,
861
863
  [Y.hidden]: !1,
@@ -864,27 +866,27 @@ function Nr(e, t, r, n, s) {
864
866
  }, w = {};
865
867
  for (const T in v) {
866
868
  const I = v[T];
867
- c[T] = I.some((E) => E === p);
869
+ u[T] = I.some((E) => E === p);
868
870
  }
869
871
  for (const T in N)
870
872
  w[T] = N[T].some((I) => I === p);
871
873
  return {
872
- ...c,
874
+ ...u,
873
875
  // custom modifiers should override all the previous ones
874
876
  ...w
875
877
  };
876
878
  };
877
879
  }
878
- function Cr(e, t, r = {}) {
879
- return Object.entries(e).filter(([, s]) => s === !0).reduce((s, [o]) => (r[o] ? s.push(r[o]) : t[Y[o]] ? s.push(t[Y[o]]) : t[z[o]] && s.push(t[z[o]]), s), [t[h.Day]]);
880
+ function Or(e, t, r = {}) {
881
+ return Object.entries(e).filter(([, s]) => s === !0).reduce((s, [o]) => (r[o] ? s.push(r[o]) : t[Y[o]] ? s.push(t[Y[o]]) : t[P[o]] && s.push(t[P[o]]), s), [t[h.Day]]);
880
882
  }
881
- function Sr(e) {
883
+ function wr(e) {
882
884
  return {
883
- ...Wr,
885
+ ...Dr,
884
886
  ...e
885
887
  };
886
888
  }
887
- function _r(e) {
889
+ function Wr(e) {
888
890
  const t = {
889
891
  "data-mode": e.mode ?? void 0,
890
892
  "data-required": "required" in e ? e.required : void 0,
@@ -897,142 +899,142 @@ function _r(e) {
897
899
  r.startsWith("data-") && (t[r] = n);
898
900
  }), t;
899
901
  }
900
- function xr() {
902
+ function Nr() {
901
903
  const e = {};
902
904
  for (const t in h)
903
905
  e[h[t]] = `rdp-${h[t]}`;
904
906
  for (const t in Y)
905
907
  e[Y[t]] = `rdp-${Y[t]}`;
906
- for (const t in z)
907
- e[z[t]] = `rdp-${z[t]}`;
908
+ for (const t in P)
909
+ e[P[t]] = `rdp-${P[t]}`;
908
910
  for (const t in A)
909
911
  e[A[t]] = `rdp-${A[t]}`;
910
912
  return e;
911
913
  }
912
- function Wt(e, t, r) {
914
+ function kt(e, t, r) {
913
915
  return (r ?? new H(t)).formatMonthYear(e);
914
916
  }
915
- const Yr = Wt;
916
- function Tr(e, t, r) {
917
+ const Cr = kt;
918
+ function Sr(e, t, r) {
917
919
  return (r ?? new H(t)).format(e, "d");
918
920
  }
919
- function Er(e, t = Q) {
921
+ function _r(e, t = Q) {
920
922
  return t.format(e, "LLLL");
921
923
  }
922
- function Ir(e, t, r) {
924
+ function xr(e, t, r) {
923
925
  return (r ?? new H(t)).format(e, "cccccc");
924
926
  }
925
- function Br(e, t = Q) {
927
+ function Yr(e, t = Q) {
926
928
  return e < 10 ? t.formatNumber(`0${e.toLocaleString()}`) : t.formatNumber(`${e.toLocaleString()}`);
927
929
  }
928
- function Fr() {
930
+ function Tr() {
929
931
  return "";
930
932
  }
931
- function Nt(e, t = Q) {
933
+ function Dt(e, t = Q) {
932
934
  return t.format(e, "yyyy");
933
935
  }
934
- const zr = Nt, Pr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
936
+ const Er = Dt, Ir = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
935
937
  __proto__: null,
936
- formatCaption: Wt,
937
- formatDay: Tr,
938
- formatMonthCaption: Yr,
939
- formatMonthDropdown: Er,
940
- formatWeekNumber: Br,
941
- formatWeekNumberHeader: Fr,
942
- formatWeekdayName: Ir,
943
- formatYearCaption: zr,
944
- formatYearDropdown: Nt
938
+ formatCaption: kt,
939
+ formatDay: Sr,
940
+ formatMonthCaption: Cr,
941
+ formatMonthDropdown: _r,
942
+ formatWeekNumber: Yr,
943
+ formatWeekNumberHeader: Tr,
944
+ formatWeekdayName: xr,
945
+ formatYearCaption: Er,
946
+ formatYearDropdown: Dt
945
947
  }, Symbol.toStringTag, { value: "Module" }));
946
- function Ar(e) {
948
+ function Br(e) {
947
949
  return e != null && e.formatMonthCaption && !e.formatCaption && (e.formatCaption = e.formatMonthCaption), e != null && e.formatYearCaption && !e.formatYearDropdown && (e.formatYearDropdown = e.formatYearCaption), {
948
- ...Pr,
950
+ ...Ir,
949
951
  ...e
950
952
  };
951
953
  }
952
- function Re(e, t, r, n) {
954
+ function $e(e, t, r, n) {
953
955
  let s = (n ?? new H(r)).format(e, "PPPP");
954
956
  return t.today && (s = `Today, ${s}`), t.selected && (s = `${s}, selected`), s;
955
957
  }
956
- const Hr = Re;
957
- function Ve(e, t, r) {
958
+ const Fr = $e;
959
+ function Ge(e, t, r) {
958
960
  return (r ?? new H(t)).formatMonthYear(e);
959
961
  }
960
- const jr = Ve;
961
- function Ct(e, t, r, n) {
962
+ const Pr = Ge;
963
+ function Mt(e, t, r, n) {
962
964
  let s = (n ?? new H(r)).format(e, "PPPP");
963
965
  return t != null && t.today && (s = `Today, ${s}`), s;
964
966
  }
965
- function St(e) {
967
+ function Ot(e) {
966
968
  return "Choose the Month";
967
969
  }
968
- function _t() {
970
+ function wt() {
969
971
  return "";
970
972
  }
971
- const $r = "Go to the Next Month";
972
- function xt(e, t) {
973
- return $r;
973
+ const zr = "Go to the Next Month";
974
+ function Wt(e, t) {
975
+ return zr;
974
976
  }
975
- function Yt(e) {
977
+ function Nt(e) {
976
978
  return "Go to the Previous Month";
977
979
  }
978
- function Tt(e, t, r) {
980
+ function Ct(e, t, r) {
979
981
  return (r ?? new H(t)).format(e, "cccc");
980
982
  }
981
- function Et(e, t) {
983
+ function St(e, t) {
982
984
  return `Week ${e}`;
983
985
  }
984
- function It(e) {
986
+ function _t(e) {
985
987
  return "Week Number";
986
988
  }
987
- function Bt(e) {
989
+ function xt(e) {
988
990
  return "Choose the Year";
989
991
  }
990
- const Gr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
992
+ const Ar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
991
993
  __proto__: null,
992
- labelCaption: jr,
993
- labelDay: Hr,
994
- labelDayButton: Re,
995
- labelGrid: Ve,
996
- labelGridcell: Ct,
997
- labelMonthDropdown: St,
998
- labelNav: _t,
999
- labelNext: xt,
1000
- labelPrevious: Yt,
1001
- labelWeekNumber: Et,
1002
- labelWeekNumberHeader: It,
1003
- labelWeekday: Tt,
1004
- labelYearDropdown: Bt
994
+ labelCaption: Pr,
995
+ labelDay: Fr,
996
+ labelDayButton: $e,
997
+ labelGrid: Ge,
998
+ labelGridcell: Mt,
999
+ labelMonthDropdown: Ot,
1000
+ labelNav: wt,
1001
+ labelNext: Wt,
1002
+ labelPrevious: Nt,
1003
+ labelWeekNumber: St,
1004
+ labelWeekNumberHeader: _t,
1005
+ labelWeekday: Ct,
1006
+ labelYearDropdown: xt
1005
1007
  }, Symbol.toStringTag, { value: "Module" })), K = (e, t, r) => t || (r ? typeof r == "function" ? r : (...n) => r : e);
1006
- function qr(e, t) {
1008
+ function Hr(e, t) {
1007
1009
  var n;
1008
1010
  const r = ((n = t.locale) == null ? void 0 : n.labels) ?? {};
1009
1011
  return {
1010
- ...Gr,
1012
+ ...Ar,
1011
1013
  ...e ?? {},
1012
- labelDayButton: K(Re, e == null ? void 0 : e.labelDayButton, r.labelDayButton),
1013
- labelMonthDropdown: K(St, e == null ? void 0 : e.labelMonthDropdown, r.labelMonthDropdown),
1014
- labelNext: K(xt, e == null ? void 0 : e.labelNext, r.labelNext),
1015
- labelPrevious: K(Yt, e == null ? void 0 : e.labelPrevious, r.labelPrevious),
1016
- labelWeekNumber: K(Et, e == null ? void 0 : e.labelWeekNumber, r.labelWeekNumber),
1017
- labelYearDropdown: K(Bt, e == null ? void 0 : e.labelYearDropdown, r.labelYearDropdown),
1018
- labelGrid: K(Ve, e == null ? void 0 : e.labelGrid, r.labelGrid),
1019
- labelGridcell: K(Ct, e == null ? void 0 : e.labelGridcell, r.labelGridcell),
1020
- labelNav: K(_t, e == null ? void 0 : e.labelNav, r.labelNav),
1021
- labelWeekNumberHeader: K(It, e == null ? void 0 : e.labelWeekNumberHeader, r.labelWeekNumberHeader),
1022
- labelWeekday: K(Tt, e == null ? void 0 : e.labelWeekday, r.labelWeekday)
1014
+ labelDayButton: K($e, e == null ? void 0 : e.labelDayButton, r.labelDayButton),
1015
+ labelMonthDropdown: K(Ot, e == null ? void 0 : e.labelMonthDropdown, r.labelMonthDropdown),
1016
+ labelNext: K(Wt, e == null ? void 0 : e.labelNext, r.labelNext),
1017
+ labelPrevious: K(Nt, e == null ? void 0 : e.labelPrevious, r.labelPrevious),
1018
+ labelWeekNumber: K(St, e == null ? void 0 : e.labelWeekNumber, r.labelWeekNumber),
1019
+ labelYearDropdown: K(xt, e == null ? void 0 : e.labelYearDropdown, r.labelYearDropdown),
1020
+ labelGrid: K(Ge, e == null ? void 0 : e.labelGrid, r.labelGrid),
1021
+ labelGridcell: K(Mt, e == null ? void 0 : e.labelGridcell, r.labelGridcell),
1022
+ labelNav: K(wt, e == null ? void 0 : e.labelNav, r.labelNav),
1023
+ labelWeekNumberHeader: K(_t, e == null ? void 0 : e.labelWeekNumberHeader, r.labelWeekNumberHeader),
1024
+ labelWeekday: K(Ct, e == null ? void 0 : e.labelWeekday, r.labelWeekday)
1023
1025
  };
1024
1026
  }
1025
- function Rr(e, t, r, n, s) {
1027
+ function jr(e, t, r, n, s) {
1026
1028
  const { startOfMonth: o, startOfYear: a, endOfYear: i, eachMonthOfInterval: d, getMonth: l } = s;
1027
1029
  return d({
1028
1030
  start: a(e),
1029
1031
  end: i(e)
1030
- }).map((y) => {
1031
- const g = n.formatMonthDropdown(y, s), O = l(y), W = t && y < o(t) || r && y > o(r) || !1;
1032
- return { value: O, label: g, disabled: W };
1032
+ }).map((g) => {
1033
+ const y = n.formatMonthDropdown(g, s), O = l(g), W = t && g < o(t) || r && g > o(r) || !1;
1034
+ return { value: O, label: y, disabled: W };
1033
1035
  });
1034
1036
  }
1035
- function Vr(e, t = {}, r = {}) {
1037
+ function $r(e, t = {}, r = {}) {
1036
1038
  let n = { ...t == null ? void 0 : t[h.Day] };
1037
1039
  return Object.entries(e).filter(([, s]) => s === !0).forEach(([s]) => {
1038
1040
  n = {
@@ -1041,7 +1043,7 @@ function Vr(e, t = {}, r = {}) {
1041
1043
  };
1042
1044
  }), n;
1043
1045
  }
1044
- function Ur(e, t, r, n) {
1046
+ function Gr(e, t, r, n) {
1045
1047
  const s = n ?? e.today(), o = r ? e.startOfBroadcastWeek(s, e) : t ? e.startOfISOWeek(s) : e.startOfWeek(s), a = [];
1046
1048
  for (let i = 0; i < 7; i++) {
1047
1049
  const d = e.addDays(o, i);
@@ -1049,20 +1051,20 @@ function Ur(e, t, r, n) {
1049
1051
  }
1050
1052
  return a;
1051
1053
  }
1052
- function Kr(e, t, r, n, s = !1) {
1054
+ function qr(e, t, r, n, s = !1) {
1053
1055
  if (!e || !t)
1054
1056
  return;
1055
- const { startOfYear: o, endOfYear: a, eachYearOfInterval: i, getYear: d } = n, l = o(e), f = a(t), u = i({ start: l, end: f });
1056
- return s && u.reverse(), u.map((y) => {
1057
- const g = r.formatYearDropdown(y, n);
1057
+ const { startOfYear: o, endOfYear: a, eachYearOfInterval: i, getYear: d } = n, l = o(e), f = a(t), c = i({ start: l, end: f });
1058
+ return s && c.reverse(), c.map((g) => {
1059
+ const y = r.formatYearDropdown(g, n);
1058
1060
  return {
1059
- value: d(y),
1060
- label: g,
1061
+ value: d(g),
1062
+ label: y,
1061
1063
  disabled: !1
1062
1064
  };
1063
1065
  });
1064
1066
  }
1065
- function Zr(e, t = {}) {
1067
+ function Vr(e, t = {}) {
1066
1068
  var i;
1067
1069
  const { weekStartsOn: r, locale: n } = t, s = r ?? ((i = n == null ? void 0 : n.options) == null ? void 0 : i.weekStartsOn) ?? 0, o = (d) => {
1068
1070
  const l = typeof d == "number" || typeof d == "string" ? new Date(d) : d;
@@ -1076,8 +1078,8 @@ function Zr(e, t = {}) {
1076
1078
  newDate: (d, l, f) => new F(d, l, f, 12, 0, 0, e),
1077
1079
  startOfDay: (d) => o(d),
1078
1080
  startOfWeek: (d, l) => {
1079
- const f = o(d), u = (l == null ? void 0 : l.weekStartsOn) ?? s, y = (f.getDay() - u + 7) % 7;
1080
- return f.setDate(f.getDate() - y), f;
1081
+ const f = o(d), c = (l == null ? void 0 : l.weekStartsOn) ?? s, g = (f.getDay() - c + 7) % 7;
1082
+ return f.setDate(f.getDate() - g), f;
1081
1083
  },
1082
1084
  startOfISOWeek: (d) => {
1083
1085
  const l = o(d), f = (l.getDay() - 1 + 7) % 7;
@@ -1092,8 +1094,8 @@ function Zr(e, t = {}) {
1092
1094
  return l.setMonth(0, 1), l;
1093
1095
  },
1094
1096
  endOfWeek: (d, l) => {
1095
- const f = o(d), g = ((((l == null ? void 0 : l.weekStartsOn) ?? s) + 6) % 7 - f.getDay() + 7) % 7;
1096
- return f.setDate(f.getDate() + g), f;
1097
+ const f = o(d), y = ((((l == null ? void 0 : l.weekStartsOn) ?? s) + 6) % 7 - f.getDay() + 7) % 7;
1098
+ return f.setDate(f.getDate() + y), f;
1097
1099
  },
1098
1100
  endOfISOWeek: (d) => {
1099
1101
  const l = o(d), f = (7 - l.getDay()) % 7;
@@ -1108,10 +1110,10 @@ function Zr(e, t = {}) {
1108
1110
  return l.setMonth(11, 31), l;
1109
1111
  },
1110
1112
  eachMonthOfInterval: (d) => {
1111
- const l = o(d.start), f = o(d.end), u = [], y = new F(l.getFullYear(), l.getMonth(), 1, 12, 0, 0, e), g = f.getFullYear() * 12 + f.getMonth();
1112
- for (; y.getFullYear() * 12 + y.getMonth() <= g; )
1113
- u.push(new F(y, e)), y.setMonth(y.getMonth() + 1, 1);
1114
- return u;
1113
+ const l = o(d.start), f = o(d.end), c = [], g = new F(l.getFullYear(), l.getMonth(), 1, 12, 0, 0, e), y = f.getFullYear() * 12 + f.getMonth();
1114
+ for (; g.getFullYear() * 12 + g.getMonth() <= y; )
1115
+ c.push(new F(g, e)), g.setMonth(g.getMonth() + 1, 1);
1116
+ return c;
1115
1117
  },
1116
1118
  // Normalize to noon once before arithmetic (avoid DST/midnight edge cases),
1117
1119
  // mutate the same TZDate, and return it.
@@ -1132,86 +1134,86 @@ function Zr(e, t = {}) {
1132
1134
  return f.setFullYear(f.getFullYear() + l), f;
1133
1135
  },
1134
1136
  eachYearOfInterval: (d) => {
1135
- const l = o(d.start), f = o(d.end), u = [], y = new F(l.getFullYear(), 0, 1, 12, 0, 0, e);
1136
- for (; y.getFullYear() <= f.getFullYear(); )
1137
- u.push(new F(y, e)), y.setFullYear(y.getFullYear() + 1, 0, 1);
1138
- return u;
1137
+ const l = o(d.start), f = o(d.end), c = [], g = new F(l.getFullYear(), 0, 1, 12, 0, 0, e);
1138
+ for (; g.getFullYear() <= f.getFullYear(); )
1139
+ c.push(new F(g, e)), g.setFullYear(g.getFullYear() + 1, 0, 1);
1140
+ return c;
1139
1141
  },
1140
1142
  getWeek: (d, l) => {
1141
- var u;
1143
+ var c;
1142
1144
  const f = a(d);
1143
- return ut(f, {
1145
+ return it(f, {
1144
1146
  weekStartsOn: (l == null ? void 0 : l.weekStartsOn) ?? s,
1145
- firstWeekContainsDate: (l == null ? void 0 : l.firstWeekContainsDate) ?? ((u = n == null ? void 0 : n.options) == null ? void 0 : u.firstWeekContainsDate) ?? 1
1147
+ firstWeekContainsDate: (l == null ? void 0 : l.firstWeekContainsDate) ?? ((c = n == null ? void 0 : n.options) == null ? void 0 : c.firstWeekContainsDate) ?? 1
1146
1148
  });
1147
1149
  },
1148
1150
  getISOWeek: (d) => {
1149
1151
  const l = a(d);
1150
- return ct(l);
1152
+ return at(l);
1151
1153
  },
1152
1154
  differenceInCalendarDays: (d, l) => {
1153
- const f = a(d), u = a(l);
1154
- return ft(f, u);
1155
+ const f = a(d), c = a(l);
1156
+ return ot(f, c);
1155
1157
  },
1156
1158
  differenceInCalendarMonths: (d, l) => {
1157
- const f = a(d), u = a(l);
1158
- return gt(f, u);
1159
+ const f = a(d), c = a(l);
1160
+ return ut(f, c);
1159
1161
  }
1160
1162
  };
1161
1163
  }
1162
- const ye = (e) => e instanceof HTMLElement ? e : null, Ie = (e) => [
1164
+ const me = (e) => e instanceof HTMLElement ? e : null, Ye = (e) => [
1163
1165
  ...e.querySelectorAll("[data-animated-month]") ?? []
1164
- ], Jr = (e) => ye(e.querySelector("[data-animated-month]")), Be = (e) => ye(e.querySelector("[data-animated-caption]")), Fe = (e) => ye(e.querySelector("[data-animated-weeks]")), Qr = (e) => ye(e.querySelector("[data-animated-nav]")), Xr = (e) => ye(e.querySelector("[data-animated-weekdays]"));
1165
- function Lr(e, t, { classNames: r, months: n, focused: s, dateLib: o }) {
1166
- const a = ke(null), i = ke(n), d = ke(!1);
1167
- hn(() => {
1166
+ ], Rr = (e) => me(e.querySelector("[data-animated-month]")), Te = (e) => me(e.querySelector("[data-animated-caption]")), Ee = (e) => me(e.querySelector("[data-animated-weeks]")), Ur = (e) => me(e.querySelector("[data-animated-nav]")), Kr = (e) => me(e.querySelector("[data-animated-weekdays]"));
1167
+ function Zr(e, t, { classNames: r, months: n, focused: s, dateLib: o }) {
1168
+ const a = pe(null), i = pe(n), d = pe(!1);
1169
+ dn(() => {
1168
1170
  const l = i.current;
1169
1171
  if (i.current = n, !t || !e.current || // safety check because the ref can be set to anything by consumers
1170
1172
  !(e.current instanceof HTMLElement) || // validation required for the animation to work as expected
1171
1173
  n.length === 0 || l.length === 0 || n.length !== l.length)
1172
1174
  return;
1173
- const f = o.isSameMonth(n[0].date, l[0].date), u = o.isAfter(n[0].date, l[0].date), y = u ? r[A.caption_after_enter] : r[A.caption_before_enter], g = u ? r[A.weeks_after_enter] : r[A.weeks_before_enter], O = a.current, W = e.current.cloneNode(!0);
1174
- if (W instanceof HTMLElement ? (Ie(W).forEach((v) => {
1175
+ const f = o.isSameMonth(n[0].date, l[0].date), c = o.isAfter(n[0].date, l[0].date), g = c ? r[A.caption_after_enter] : r[A.caption_before_enter], y = c ? r[A.weeks_after_enter] : r[A.weeks_before_enter], O = a.current, W = e.current.cloneNode(!0);
1176
+ if (W instanceof HTMLElement ? (Ye(W).forEach((v) => {
1175
1177
  if (!(v instanceof HTMLElement))
1176
1178
  return;
1177
- const N = Jr(v);
1179
+ const N = Rr(v);
1178
1180
  N && v.contains(N) && v.removeChild(N);
1179
- const p = Be(v);
1180
- p && p.classList.remove(y);
1181
- const c = Fe(v);
1182
- c && c.classList.remove(g);
1181
+ const p = Te(v);
1182
+ p && p.classList.remove(g);
1183
+ const u = Ee(v);
1184
+ u && u.classList.remove(y);
1183
1185
  }), a.current = W) : a.current = null, d.current || f || // skip animation if a day is focused because it can cause issues to the animation and is better for a11y
1184
1186
  s)
1185
1187
  return;
1186
- const k = O instanceof HTMLElement ? Ie(O) : [], S = Ie(e.current);
1187
- if (S != null && S.every((M) => M instanceof HTMLElement) && k && k.every((M) => M instanceof HTMLElement)) {
1188
+ const D = O instanceof HTMLElement ? Ye(O) : [], S = Ye(e.current);
1189
+ if (S != null && S.every((k) => k instanceof HTMLElement) && D && D.every((k) => k instanceof HTMLElement)) {
1188
1190
  d.current = !0, e.current.style.isolation = "isolate";
1189
- const M = Qr(e.current);
1190
- M && (M.style.zIndex = "1"), S.forEach((v, N) => {
1191
- const p = k[N];
1191
+ const k = Ur(e.current);
1192
+ k && (k.style.zIndex = "1"), S.forEach((v, N) => {
1193
+ const p = D[N];
1192
1194
  if (!p)
1193
1195
  return;
1194
1196
  v.style.position = "relative", v.style.overflow = "hidden";
1195
- const c = Be(v);
1196
- c && c.classList.add(y);
1197
- const w = Fe(v);
1198
- w && w.classList.add(g);
1197
+ const u = Te(v);
1198
+ u && u.classList.add(g);
1199
+ const w = Ee(v);
1200
+ w && w.classList.add(y);
1199
1201
  const T = () => {
1200
- d.current = !1, e.current && (e.current.style.isolation = ""), M && (M.style.zIndex = ""), c && c.classList.remove(y), w && w.classList.remove(g), v.style.position = "", v.style.overflow = "", v.contains(p) && v.removeChild(p);
1202
+ d.current = !1, e.current && (e.current.style.isolation = ""), k && (k.style.zIndex = ""), u && u.classList.remove(g), w && w.classList.remove(y), v.style.position = "", v.style.overflow = "", v.contains(p) && v.removeChild(p);
1201
1203
  };
1202
1204
  p.style.pointerEvents = "none", p.style.position = "absolute", p.style.overflow = "hidden", p.setAttribute("aria-hidden", "true");
1203
- const I = Xr(p);
1205
+ const I = Kr(p);
1204
1206
  I && (I.style.opacity = "0");
1205
- const E = Be(p);
1206
- E && (E.classList.add(u ? r[A.caption_before_exit] : r[A.caption_after_exit]), E.addEventListener("animationend", T));
1207
- const j = Fe(p);
1208
- j && j.classList.add(u ? r[A.weeks_before_exit] : r[A.weeks_after_exit]), v.insertBefore(p, v.firstChild);
1207
+ const E = Te(p);
1208
+ E && (E.classList.add(c ? r[A.caption_before_exit] : r[A.caption_after_exit]), E.addEventListener("animationend", T));
1209
+ const j = Ee(p);
1210
+ j && j.classList.add(c ? r[A.weeks_before_exit] : r[A.weeks_after_exit]), v.insertBefore(p, v.firstChild);
1209
1211
  });
1210
1212
  }
1211
1213
  });
1212
1214
  }
1213
- function es(e, t, r, n) {
1214
- const s = e[0], o = e[e.length - 1], { ISOWeek: a, fixedWeeks: i, broadcastCalendar: d } = r ?? {}, { addDays: l, differenceInCalendarDays: f, differenceInCalendarMonths: u, endOfBroadcastWeek: y, endOfISOWeek: g, endOfMonth: O, endOfWeek: W, isAfter: k, startOfBroadcastWeek: S, startOfISOWeek: M, startOfWeek: v } = n, N = d ? S(s, n) : a ? M(s) : v(s), p = d ? y(o) : a ? g(O(o)) : W(O(o)), c = t && (d ? y(t) : a ? g(t) : W(t)), w = c && k(p, c) ? c : p, T = f(w, N), I = u(o, s) + 1, E = [];
1215
+ function Jr(e, t, r, n) {
1216
+ const s = e[0], o = e[e.length - 1], { ISOWeek: a, fixedWeeks: i, broadcastCalendar: d } = r ?? {}, { addDays: l, differenceInCalendarDays: f, differenceInCalendarMonths: c, endOfBroadcastWeek: g, endOfISOWeek: y, endOfMonth: O, endOfWeek: W, isAfter: D, startOfBroadcastWeek: S, startOfISOWeek: k, startOfWeek: v } = n, N = d ? S(s, n) : a ? k(s) : v(s), p = d ? g(o) : a ? y(O(o)) : W(O(o)), u = t && (d ? g(t) : a ? y(t) : W(t)), w = u && D(p, u) ? u : p, T = f(w, N), I = c(o, s) + 1, E = [];
1215
1217
  for (let X = 0; X <= T; X++) {
1216
1218
  const $ = l(N, X);
1217
1219
  E.push($);
@@ -1226,14 +1228,14 @@ function es(e, t, r, n) {
1226
1228
  }
1227
1229
  return E;
1228
1230
  }
1229
- function ts(e) {
1231
+ function Qr(e) {
1230
1232
  const t = [];
1231
1233
  return e.reduce((r, n) => {
1232
1234
  const s = n.weeks.reduce((o, a) => o.concat(a.days.slice()), t.slice());
1233
1235
  return r.concat(s.slice());
1234
1236
  }, t.slice());
1235
1237
  }
1236
- function ns(e, t, r, n) {
1238
+ function Xr(e, t, r, n) {
1237
1239
  const { numberOfMonths: s = 1 } = r, o = [];
1238
1240
  for (let a = 0; a < s; a++) {
1239
1241
  const i = n.addMonths(e, a);
@@ -1243,45 +1245,45 @@ function ns(e, t, r, n) {
1243
1245
  }
1244
1246
  return o;
1245
1247
  }
1246
- function rt(e, t, r, n) {
1248
+ function et(e, t, r, n) {
1247
1249
  const { month: s, defaultMonth: o, today: a = n.today(), numberOfMonths: i = 1 } = e;
1248
1250
  let d = s || o || a;
1249
- const { differenceInCalendarMonths: l, addMonths: f, startOfMonth: u } = n;
1251
+ const { differenceInCalendarMonths: l, addMonths: f, startOfMonth: c } = n;
1250
1252
  if (r && l(r, d) < i - 1) {
1251
- const y = -1 * (i - 1);
1252
- d = f(r, y);
1253
+ const g = -1 * (i - 1);
1254
+ d = f(r, g);
1253
1255
  }
1254
- return t && l(d, t) < 0 && (d = t), u(d);
1256
+ return t && l(d, t) < 0 && (d = t), c(d);
1255
1257
  }
1256
- function rs(e, t, r, n) {
1257
- const { addDays: s, endOfBroadcastWeek: o, endOfISOWeek: a, endOfMonth: i, endOfWeek: d, getISOWeek: l, getWeek: f, startOfBroadcastWeek: u, startOfISOWeek: y, startOfWeek: g } = n, O = e.reduce((W, k) => {
1258
- const S = r.broadcastCalendar ? u(k, n) : r.ISOWeek ? y(k) : g(k), M = r.broadcastCalendar ? o(k) : r.ISOWeek ? a(i(k)) : d(i(k)), v = t.filter((w) => w >= S && w <= M), N = r.broadcastCalendar ? 35 : 42;
1258
+ function Lr(e, t, r, n) {
1259
+ const { addDays: s, endOfBroadcastWeek: o, endOfISOWeek: a, endOfMonth: i, endOfWeek: d, getISOWeek: l, getWeek: f, startOfBroadcastWeek: c, startOfISOWeek: g, startOfWeek: y } = n, O = e.reduce((W, D) => {
1260
+ const S = r.broadcastCalendar ? c(D, n) : r.ISOWeek ? g(D) : y(D), k = r.broadcastCalendar ? o(D) : r.ISOWeek ? a(i(D)) : d(i(D)), v = t.filter((w) => w >= S && w <= k), N = r.broadcastCalendar ? 35 : 42;
1259
1261
  if (r.fixedWeeks && v.length < N) {
1260
1262
  const w = t.filter((T) => {
1261
1263
  const I = N - v.length;
1262
- return T > M && T <= s(M, I);
1264
+ return T > k && T <= s(k, I);
1263
1265
  });
1264
1266
  v.push(...w);
1265
1267
  }
1266
1268
  const p = v.reduce((w, T) => {
1267
- const I = r.ISOWeek ? l(T) : f(T), E = w.find((re) => re.weekNumber === I), j = new kt(T, k, n);
1268
- return E ? E.days.push(j) : w.push(new Xn(I, [j])), w;
1269
- }, []), c = new Qn(k, p);
1270
- return W.push(c), W;
1269
+ const I = r.ISOWeek ? l(T) : f(T), E = w.find((re) => re.weekNumber === I), j = new yt(T, D, n);
1270
+ return E ? E.days.push(j) : w.push(new Kn(I, [j])), w;
1271
+ }, []), u = new Un(D, p);
1272
+ return W.push(u), W;
1271
1273
  }, []);
1272
1274
  return r.reverseMonths ? O.reverse() : O;
1273
1275
  }
1274
- function ss(e, t) {
1276
+ function es(e, t) {
1275
1277
  let { startMonth: r, endMonth: n } = e;
1276
- const { startOfYear: s, startOfDay: o, startOfMonth: a, endOfMonth: i, addYears: d, endOfYear: l, newDate: f, today: u } = t, { fromYear: y, toYear: g, fromMonth: O, toMonth: W } = e;
1277
- !r && O && (r = O), !r && y && (r = t.newDate(y, 0, 1)), !n && W && (n = W), !n && g && (n = f(g, 11, 31));
1278
- const k = e.captionLayout === "dropdown" || e.captionLayout === "dropdown-years";
1279
- return r ? r = a(r) : y ? r = f(y, 0, 1) : !r && k && (r = s(d(e.today ?? u(), -100))), n ? n = i(n) : g ? n = f(g, 11, 31) : !n && k && (n = l(e.today ?? u())), [
1278
+ const { startOfYear: s, startOfDay: o, startOfMonth: a, endOfMonth: i, addYears: d, endOfYear: l, newDate: f, today: c } = t, { fromYear: g, toYear: y, fromMonth: O, toMonth: W } = e;
1279
+ !r && O && (r = O), !r && g && (r = t.newDate(g, 0, 1)), !n && W && (n = W), !n && y && (n = f(y, 11, 31));
1280
+ const D = e.captionLayout === "dropdown" || e.captionLayout === "dropdown-years";
1281
+ return r ? r = a(r) : g ? r = f(g, 0, 1) : !r && D && (r = s(d(e.today ?? c(), -100))), n ? n = i(n) : y ? n = f(y, 11, 31) : !n && D && (n = l(e.today ?? c())), [
1280
1282
  r && o(r),
1281
1283
  n && o(n)
1282
1284
  ];
1283
1285
  }
1284
- function os(e, t, r, n) {
1286
+ function ts(e, t, r, n) {
1285
1287
  if (r.disableNavigation)
1286
1288
  return;
1287
1289
  const { pagedNavigation: s, numberOfMonths: o = 1 } = r, { startOfMonth: a, addMonths: i, differenceInCalendarMonths: d } = n, l = s ? o : 1, f = a(e);
@@ -1290,7 +1292,7 @@ function os(e, t, r, n) {
1290
1292
  if (!(d(t, e) < o))
1291
1293
  return i(f, l);
1292
1294
  }
1293
- function as(e, t, r, n) {
1295
+ function ns(e, t, r, n) {
1294
1296
  if (r.disableNavigation)
1295
1297
  return;
1296
1298
  const { pagedNavigation: s, numberOfMonths: o } = r, { startOfMonth: a, addMonths: i, differenceInCalendarMonths: d } = n, l = s ? o ?? 1 : 1, f = a(e);
@@ -1299,36 +1301,36 @@ function as(e, t, r, n) {
1299
1301
  if (!(d(f, t) <= 0))
1300
1302
  return i(f, -l);
1301
1303
  }
1302
- function is(e) {
1304
+ function rs(e) {
1303
1305
  const t = [];
1304
1306
  return e.reduce((r, n) => r.concat(n.weeks.slice()), t.slice());
1305
1307
  }
1306
- function We(e, t) {
1307
- const [r, n] = De(e);
1308
+ function Me(e, t) {
1309
+ const [r, n] = Pe(e);
1308
1310
  return [t === void 0 ? r : t, n];
1309
1311
  }
1310
- function ds(e, t) {
1312
+ function ss(e, t) {
1311
1313
  var N;
1312
- const [r, n] = ss(e, t), { startOfMonth: s, endOfMonth: o } = t, a = rt(e, r, n, t), [i, d] = We(
1314
+ const [r, n] = es(e, t), { startOfMonth: s, endOfMonth: o } = t, a = et(e, r, n, t), [i, d] = Me(
1313
1315
  a,
1314
1316
  // initialMonth is always computed from props.month if provided
1315
1317
  e.month ? a : void 0
1316
1318
  );
1317
- lt(() => {
1318
- const p = rt(e, r, n, t);
1319
+ ln(() => {
1320
+ const p = et(e, r, n, t);
1319
1321
  d(p);
1320
1322
  }, [e.timeZone]);
1321
- const { months: l, weeks: f, days: u, previousMonth: y, nextMonth: g } = he(() => {
1322
- const p = ns(i, n, { numberOfMonths: e.numberOfMonths }, t), c = es(p, e.endMonth ? o(e.endMonth) : void 0, {
1323
+ const { months: l, weeks: f, days: c, previousMonth: g, nextMonth: y } = ce(() => {
1324
+ const p = Xr(i, n, { numberOfMonths: e.numberOfMonths }, t), u = Jr(p, e.endMonth ? o(e.endMonth) : void 0, {
1323
1325
  ISOWeek: e.ISOWeek,
1324
1326
  fixedWeeks: e.fixedWeeks,
1325
1327
  broadcastCalendar: e.broadcastCalendar
1326
- }, t), w = rs(p, c, {
1328
+ }, t), w = Lr(p, u, {
1327
1329
  broadcastCalendar: e.broadcastCalendar,
1328
1330
  fixedWeeks: e.fixedWeeks,
1329
1331
  ISOWeek: e.ISOWeek,
1330
1332
  reverseMonths: e.reverseMonths
1331
- }, t), T = is(w), I = ts(w), E = as(i, r, e, t), j = os(i, n, e, t);
1333
+ }, t), T = rs(w), I = Qr(w), E = ns(i, r, e, t), j = ts(i, n, e, t);
1332
1334
  return {
1333
1335
  months: w,
1334
1336
  weeks: T,
@@ -1349,23 +1351,23 @@ function ds(e, t) {
1349
1351
  e.numberOfMonths,
1350
1352
  e.pagedNavigation,
1351
1353
  e.reverseMonths
1352
- ]), { disableNavigation: O, onMonthChange: W } = e, k = (p) => f.some((c) => c.days.some((w) => w.isEqualTo(p))), S = (p) => {
1354
+ ]), { disableNavigation: O, onMonthChange: W } = e, D = (p) => f.some((u) => u.days.some((w) => w.isEqualTo(p))), S = (p) => {
1353
1355
  if (O)
1354
1356
  return;
1355
- let c = s(p);
1356
- r && c < s(r) && (c = s(r)), n && c > s(n) && (c = s(n)), d(c), W == null || W(c);
1357
+ let u = s(p);
1358
+ r && u < s(r) && (u = s(r)), n && u > s(n) && (u = s(n)), d(u), W == null || W(u);
1357
1359
  };
1358
1360
  return {
1359
1361
  months: l,
1360
1362
  weeks: f,
1361
- days: u,
1363
+ days: c,
1362
1364
  navStart: r,
1363
1365
  navEnd: n,
1364
- previousMonth: y,
1365
- nextMonth: g,
1366
+ previousMonth: g,
1367
+ nextMonth: y,
1366
1368
  goToMonth: S,
1367
1369
  goToDay: (p) => {
1368
- k(p) || S(p.date);
1370
+ D(p) || S(p.date);
1369
1371
  }
1370
1372
  };
1371
1373
  }
@@ -1373,37 +1375,37 @@ var Z;
1373
1375
  (function(e) {
1374
1376
  e[e.Today = 0] = "Today", e[e.Selected = 1] = "Selected", e[e.LastFocused = 2] = "LastFocused", e[e.FocusedModifier = 3] = "FocusedModifier";
1375
1377
  })(Z || (Z = {}));
1376
- function st(e) {
1378
+ function tt(e) {
1377
1379
  return !e[Y.disabled] && !e[Y.hidden] && !e[Y.outside];
1378
1380
  }
1379
- function ls(e, t, r, n) {
1381
+ function os(e, t, r, n) {
1380
1382
  let s, o = -1;
1381
1383
  for (const a of e) {
1382
1384
  const i = t(a);
1383
- st(i) && (i[Y.focused] && o < Z.FocusedModifier ? (s = a, o = Z.FocusedModifier) : n != null && n.isEqualTo(a) && o < Z.LastFocused ? (s = a, o = Z.LastFocused) : r(a.date) && o < Z.Selected ? (s = a, o = Z.Selected) : i[Y.today] && o < Z.Today && (s = a, o = Z.Today));
1385
+ tt(i) && (i[Y.focused] && o < Z.FocusedModifier ? (s = a, o = Z.FocusedModifier) : n != null && n.isEqualTo(a) && o < Z.LastFocused ? (s = a, o = Z.LastFocused) : r(a.date) && o < Z.Selected ? (s = a, o = Z.Selected) : i[Y.today] && o < Z.Today && (s = a, o = Z.Today));
1384
1386
  }
1385
- return s || (s = e.find((a) => st(t(a)))), s;
1387
+ return s || (s = e.find((a) => tt(t(a)))), s;
1386
1388
  }
1387
- function fs(e, t, r, n, s, o, a) {
1388
- const { ISOWeek: i, broadcastCalendar: d } = o, { addDays: l, addMonths: f, addWeeks: u, addYears: y, endOfBroadcastWeek: g, endOfISOWeek: O, endOfWeek: W, max: k, min: S, startOfBroadcastWeek: M, startOfISOWeek: v, startOfWeek: N } = a;
1389
- let c = {
1389
+ function as(e, t, r, n, s, o, a) {
1390
+ const { ISOWeek: i, broadcastCalendar: d } = o, { addDays: l, addMonths: f, addWeeks: c, addYears: g, endOfBroadcastWeek: y, endOfISOWeek: O, endOfWeek: W, max: D, min: S, startOfBroadcastWeek: k, startOfISOWeek: v, startOfWeek: N } = a;
1391
+ let u = {
1390
1392
  day: l,
1391
- week: u,
1393
+ week: c,
1392
1394
  month: f,
1393
- year: y,
1394
- startOfWeek: (w) => d ? M(w, a) : i ? v(w) : N(w),
1395
- endOfWeek: (w) => d ? g(w) : i ? O(w) : W(w)
1395
+ year: g,
1396
+ startOfWeek: (w) => d ? k(w, a) : i ? v(w) : N(w),
1397
+ endOfWeek: (w) => d ? y(w) : i ? O(w) : W(w)
1396
1398
  }[e](r, t === "after" ? 1 : -1);
1397
- return t === "before" && n ? c = k([n, c]) : t === "after" && s && (c = S([s, c])), c;
1399
+ return t === "before" && n ? u = D([n, u]) : t === "after" && s && (u = S([s, u])), u;
1398
1400
  }
1399
- function Ft(e, t, r, n, s, o, a, i = 0) {
1401
+ function Yt(e, t, r, n, s, o, a, i = 0) {
1400
1402
  if (i > 365)
1401
1403
  return;
1402
- const d = fs(e, t, r.date, n, s, o, a), l = !!(o.disabled && te(d, o.disabled, a)), f = !!(o.hidden && te(d, o.hidden, a)), u = d, y = new kt(d, u, a);
1403
- return !l && !f ? y : Ft(e, t, y, n, s, o, a, i + 1);
1404
+ const d = as(e, t, r.date, n, s, o, a), l = !!(o.disabled && te(d, o.disabled, a)), f = !!(o.hidden && te(d, o.hidden, a)), c = d, g = new yt(d, c, a);
1405
+ return !l && !f ? g : Yt(e, t, g, n, s, o, a, i + 1);
1404
1406
  }
1405
- function cs(e, t, r, n, s) {
1406
- const { autoFocus: o } = e, [a, i] = De(), d = ls(t.days, r, n || (() => !1), a), [l, f] = De(o ? d : void 0);
1407
+ function is(e, t, r, n, s) {
1408
+ const { autoFocus: o } = e, [a, i] = Pe(), d = os(t.days, r, n || (() => !1), a), [l, f] = Pe(o ? d : void 0);
1407
1409
  return {
1408
1410
  isFocusTarget: (W) => !!(d != null && d.isEqualTo(W)),
1409
1411
  setFocused: f,
@@ -1411,60 +1413,60 @@ function cs(e, t, r, n, s) {
1411
1413
  blur: () => {
1412
1414
  i(l), f(void 0);
1413
1415
  },
1414
- moveFocus: (W, k) => {
1416
+ moveFocus: (W, D) => {
1415
1417
  if (!l)
1416
1418
  return;
1417
- const S = Ft(W, k, l, t.navStart, t.navEnd, e, s);
1419
+ const S = Yt(W, D, l, t.navStart, t.navEnd, e, s);
1418
1420
  S && (e.disableNavigation && !t.days.some((v) => v.isEqualTo(S)) || (t.goToDay(S), f(S)));
1419
1421
  }
1420
1422
  };
1421
1423
  }
1422
- function us(e, t) {
1423
- const { selected: r, required: n, onSelect: s } = e, [o, a] = We(r, s ? r : void 0), i = s ? r : o, { isSameDay: d } = t, l = (g) => (i == null ? void 0 : i.some((O) => d(O, g))) ?? !1, { min: f, max: u } = e;
1424
+ function ds(e, t) {
1425
+ const { selected: r, required: n, onSelect: s } = e, [o, a] = Me(r, s ? r : void 0), i = s ? r : o, { isSameDay: d } = t, l = (y) => (i == null ? void 0 : i.some((O) => d(O, y))) ?? !1, { min: f, max: c } = e;
1424
1426
  return {
1425
1427
  selected: i,
1426
- select: (g, O, W) => {
1427
- let k = [...i ?? []];
1428
- if (l(g)) {
1428
+ select: (y, O, W) => {
1429
+ let D = [...i ?? []];
1430
+ if (l(y)) {
1429
1431
  if ((i == null ? void 0 : i.length) === f || n && (i == null ? void 0 : i.length) === 1)
1430
1432
  return;
1431
- k = i == null ? void 0 : i.filter((S) => !d(S, g));
1433
+ D = i == null ? void 0 : i.filter((S) => !d(S, y));
1432
1434
  } else
1433
- (i == null ? void 0 : i.length) === u ? k = [g] : k = [...k, g];
1434
- return s || a(k), s == null || s(k, g, O, W), k;
1435
+ (i == null ? void 0 : i.length) === c ? D = [y] : D = [...D, y];
1436
+ return s || a(D), s == null || s(D, y, O, W), D;
1435
1437
  },
1436
1438
  isSelected: l
1437
1439
  };
1438
1440
  }
1439
- function hs(e, t, r = 0, n = 0, s = !1, o = Q) {
1441
+ function ls(e, t, r = 0, n = 0, s = !1, o = Q) {
1440
1442
  const { from: a, to: i } = t || {}, { isSameDay: d, isAfter: l, isBefore: f } = o;
1441
- let u;
1443
+ let c;
1442
1444
  if (!a && !i)
1443
- u = { from: e, to: r > 0 ? void 0 : e };
1445
+ c = { from: e, to: r > 0 ? void 0 : e };
1444
1446
  else if (a && !i)
1445
- d(a, e) ? r === 0 ? u = { from: a, to: e } : s ? u = { from: a, to: void 0 } : u = void 0 : f(e, a) ? u = { from: e, to: a } : u = { from: a, to: e };
1447
+ d(a, e) ? r === 0 ? c = { from: a, to: e } : s ? c = { from: a, to: void 0 } : c = void 0 : f(e, a) ? c = { from: e, to: a } : c = { from: a, to: e };
1446
1448
  else if (a && i)
1447
1449
  if (d(a, e) && d(i, e))
1448
- s ? u = { from: a, to: i } : u = void 0;
1450
+ s ? c = { from: a, to: i } : c = void 0;
1449
1451
  else if (d(a, e))
1450
- u = { from: a, to: r > 0 ? void 0 : e };
1452
+ c = { from: a, to: r > 0 ? void 0 : e };
1451
1453
  else if (d(i, e))
1452
- u = { from: e, to: r > 0 ? void 0 : e };
1454
+ c = { from: e, to: r > 0 ? void 0 : e };
1453
1455
  else if (f(e, a))
1454
- u = { from: e, to: i };
1456
+ c = { from: e, to: i };
1455
1457
  else if (l(e, a))
1456
- u = { from: a, to: e };
1458
+ c = { from: a, to: e };
1457
1459
  else if (l(e, i))
1458
- u = { from: a, to: e };
1460
+ c = { from: a, to: e };
1459
1461
  else
1460
1462
  throw new Error("Invalid range");
1461
- if (u != null && u.from && (u != null && u.to)) {
1462
- const y = o.differenceInCalendarDays(u.to, u.from);
1463
- n > 0 && y > n ? u = { from: e, to: void 0 } : r > 1 && y < r && (u = { from: e, to: void 0 });
1463
+ if (c != null && c.from && (c != null && c.to)) {
1464
+ const g = o.differenceInCalendarDays(c.to, c.from);
1465
+ n > 0 && g > n ? c = { from: e, to: void 0 } : r > 1 && g < r && (c = { from: e, to: void 0 });
1464
1466
  }
1465
- return u;
1467
+ return c;
1466
1468
  }
1467
- function ms(e, t, r = Q) {
1469
+ function fs(e, t, r = Q) {
1468
1470
  const n = Array.isArray(t) ? t : [t];
1469
1471
  let s = e.from;
1470
1472
  const o = r.differenceInCalendarDays(e.to, e.from), a = Math.min(o, 6);
@@ -1475,15 +1477,15 @@ function ms(e, t, r = Q) {
1475
1477
  }
1476
1478
  return !1;
1477
1479
  }
1478
- function ot(e, t, r = Q) {
1480
+ function nt(e, t, r = Q) {
1479
1481
  return ee(e, t.from, !1, r) || ee(e, t.to, !1, r) || ee(t, e.from, !1, r) || ee(t, e.to, !1, r);
1480
1482
  }
1481
- function ys(e, t, r = Q) {
1483
+ function us(e, t, r = Q) {
1482
1484
  const n = Array.isArray(t) ? t : [t];
1483
- if (n.filter((i) => typeof i != "function").some((i) => typeof i == "boolean" ? i : r.isDate(i) ? ee(e, i, !1, r) : wt(i, r) ? i.some((d) => ee(e, d, !1, r)) : we(i) ? i.from && i.to ? ot(e, { from: i.from, to: i.to }, r) : !1 : Ot(i) ? ms(e, i.dayOfWeek, r) : $e(i) ? r.isAfter(i.before, i.after) ? ot(e, {
1485
+ if (n.filter((i) => typeof i != "function").some((i) => typeof i == "boolean" ? i : r.isDate(i) ? ee(e, i, !1, r) : pt(i, r) ? i.some((d) => ee(e, d, !1, r)) : De(i) ? i.from && i.to ? nt(e, { from: i.from, to: i.to }, r) : !1 : vt(i) ? fs(e, i.dayOfWeek, r) : Ae(i) ? r.isAfter(i.before, i.after) ? nt(e, {
1484
1486
  from: r.addDays(i.after, 1),
1485
1487
  to: r.addDays(i.before, -1)
1486
- }, r) : te(e.from, i, r) || te(e.to, i, r) : Ge(i) || qe(i) ? te(e.from, i, r) || te(e.to, i, r) : !1))
1488
+ }, r) : te(e.from, i, r) || te(e.to, i, r) : He(i) || je(i) ? te(e.from, i, r) || te(e.to, i, r) : !1))
1487
1489
  return !0;
1488
1490
  const a = n.filter((i) => typeof i == "function");
1489
1491
  if (a.length) {
@@ -1497,35 +1499,35 @@ function ys(e, t, r = Q) {
1497
1499
  }
1498
1500
  return !1;
1499
1501
  }
1500
- function gs(e, t) {
1501
- const { disabled: r, excludeDisabled: n, resetOnSelect: s, selected: o, required: a, onSelect: i } = e, [d, l] = We(o, i ? o : void 0), f = i ? o : d;
1502
+ function cs(e, t) {
1503
+ const { disabled: r, excludeDisabled: n, resetOnSelect: s, selected: o, required: a, onSelect: i } = e, [d, l] = Me(o, i ? o : void 0), f = i ? o : d;
1502
1504
  return {
1503
1505
  selected: f,
1504
- select: (g, O, W) => {
1505
- const { min: k, max: S } = e;
1506
- let M;
1507
- if (g) {
1508
- const v = f == null ? void 0 : f.from, N = f == null ? void 0 : f.to, p = !!v && !!N, c = !!v && !!N && t.isSameDay(v, N) && t.isSameDay(g, v);
1509
- s && (p || !(f != null && f.from)) ? !a && c ? M = void 0 : M = { from: g, to: void 0 } : M = hs(g, f, k, S, a, t);
1506
+ select: (y, O, W) => {
1507
+ const { min: D, max: S } = e;
1508
+ let k;
1509
+ if (y) {
1510
+ const v = f == null ? void 0 : f.from, N = f == null ? void 0 : f.to, p = !!v && !!N, u = !!v && !!N && t.isSameDay(v, N) && t.isSameDay(y, v);
1511
+ s && (p || !(f != null && f.from)) ? !a && u ? k = void 0 : k = { from: y, to: void 0 } : k = ls(y, f, D, S, a, t);
1510
1512
  }
1511
- return n && r && (M != null && M.from) && M.to && ys({ from: M.from, to: M.to }, r, t) && (M.from = g, M.to = void 0), i || l(M), i == null || i(M, g, O, W), M;
1513
+ return n && r && (k != null && k.from) && k.to && us({ from: k.from, to: k.to }, r, t) && (k.from = y, k.to = void 0), i || l(k), i == null || i(k, y, O, W), k;
1512
1514
  },
1513
- isSelected: (g) => f && ee(f, g, !1, t)
1515
+ isSelected: (y) => f && ee(f, y, !1, t)
1514
1516
  };
1515
1517
  }
1516
- function bs(e, t) {
1517
- const { selected: r, required: n, onSelect: s } = e, [o, a] = We(r, s ? r : void 0), i = s ? r : o, { isSameDay: d } = t;
1518
+ function hs(e, t) {
1519
+ const { selected: r, required: n, onSelect: s } = e, [o, a] = Me(r, s ? r : void 0), i = s ? r : o, { isSameDay: d } = t;
1518
1520
  return {
1519
1521
  selected: i,
1520
- select: (u, y, g) => {
1521
- let O = u;
1522
- return !n && i && i && d(u, i) && (O = void 0), s || a(O), s == null || s(O, u, y, g), O;
1522
+ select: (c, g, y) => {
1523
+ let O = c;
1524
+ return !n && i && i && d(c, i) && (O = void 0), s || a(O), s == null || s(O, c, g, y), O;
1523
1525
  },
1524
- isSelected: (u) => i ? d(i, u) : !1
1526
+ isSelected: (c) => i ? d(i, c) : !1
1525
1527
  };
1526
1528
  }
1527
- function vs(e, t) {
1528
- const r = bs(e, t), n = us(e, t), s = gs(e, t);
1529
+ function ms(e, t) {
1530
+ const r = hs(e, t), n = ds(e, t), s = cs(e, t);
1529
1531
  switch (e.mode) {
1530
1532
  case "single":
1531
1533
  return r;
@@ -1543,46 +1545,46 @@ function q(e, t) {
1543
1545
  function ae(e, t, r) {
1544
1546
  return q(e, t);
1545
1547
  }
1546
- function at(e, t, r) {
1547
- return typeof e == "boolean" || typeof e == "function" ? e : e instanceof Date ? ae(e, t) : Array.isArray(e) ? e.map((n) => n instanceof Date ? ae(n, t) : n) : we(e) ? {
1548
+ function rt(e, t, r) {
1549
+ return typeof e == "boolean" || typeof e == "function" ? e : e instanceof Date ? ae(e, t) : Array.isArray(e) ? e.map((n) => n instanceof Date ? ae(n, t) : n) : De(e) ? {
1548
1550
  ...e,
1549
1551
  from: e.from ? q(e.from, t) : e.from,
1550
1552
  to: e.to ? q(e.to, t) : e.to
1551
- } : $e(e) ? {
1553
+ } : Ae(e) ? {
1552
1554
  before: ae(e.before, t),
1553
1555
  after: ae(e.after, t)
1554
- } : Ge(e) ? {
1556
+ } : He(e) ? {
1555
1557
  after: ae(e.after, t)
1556
- } : qe(e) ? {
1558
+ } : je(e) ? {
1557
1559
  before: ae(e.before, t)
1558
1560
  } : e;
1559
1561
  }
1560
- function ze(e, t, r) {
1561
- return e && (Array.isArray(e) ? e.map((n) => at(n, t)) : at(e, t));
1562
+ function Ie(e, t, r) {
1563
+ return e && (Array.isArray(e) ? e.map((n) => rt(n, t)) : rt(e, t));
1562
1564
  }
1563
- function Ys(e) {
1564
- var Xe;
1565
+ function _s(e) {
1566
+ var Ze;
1565
1567
  let t = e;
1566
1568
  const r = t.timeZone;
1567
1569
  if (r && (t = {
1568
1570
  ...e,
1569
1571
  timeZone: r
1570
- }, t.today && (t.today = q(t.today, r)), t.month && (t.month = q(t.month, r)), t.defaultMonth && (t.defaultMonth = q(t.defaultMonth, r)), t.startMonth && (t.startMonth = q(t.startMonth, r)), t.endMonth && (t.endMonth = q(t.endMonth, r)), t.mode === "single" && t.selected ? t.selected = q(t.selected, r) : t.mode === "multiple" && t.selected ? t.selected = (Xe = t.selected) == null ? void 0 : Xe.map((D) => q(D, r)) : t.mode === "range" && t.selected && (t.selected = {
1572
+ }, t.today && (t.today = q(t.today, r)), t.month && (t.month = q(t.month, r)), t.defaultMonth && (t.defaultMonth = q(t.defaultMonth, r)), t.startMonth && (t.startMonth = q(t.startMonth, r)), t.endMonth && (t.endMonth = q(t.endMonth, r)), t.mode === "single" && t.selected ? t.selected = q(t.selected, r) : t.mode === "multiple" && t.selected ? t.selected = (Ze = t.selected) == null ? void 0 : Ze.map((M) => q(M, r)) : t.mode === "range" && t.selected && (t.selected = {
1571
1573
  from: t.selected.from ? q(t.selected.from, r) : t.selected.from,
1572
1574
  to: t.selected.to ? q(t.selected.to, r) : t.selected.to
1573
- }), t.disabled !== void 0 && (t.disabled = ze(t.disabled, r)), t.hidden !== void 0 && (t.hidden = ze(t.hidden, r)), t.modifiers)) {
1574
- const D = {};
1575
+ }), t.disabled !== void 0 && (t.disabled = Ie(t.disabled, r)), t.hidden !== void 0 && (t.hidden = Ie(t.hidden, r)), t.modifiers)) {
1576
+ const M = {};
1575
1577
  Object.keys(t.modifiers).forEach((x) => {
1576
1578
  var b;
1577
- D[x] = ze((b = t.modifiers) == null ? void 0 : b[x], r);
1578
- }), t.modifiers = D;
1579
+ M[x] = Ie((b = t.modifiers) == null ? void 0 : b[x], r);
1580
+ }), t.modifiers = M;
1579
1581
  }
1580
- const { components: n, formatters: s, labels: o, dateLib: a, locale: i, classNames: d } = he(() => {
1581
- const D = { ...Mt, ...t.locale }, x = t.broadcastCalendar ? 1 : t.weekStartsOn, b = t.noonSafe && t.timeZone ? Zr(t.timeZone, {
1582
+ const { components: n, formatters: s, labels: o, dateLib: a, locale: i, classNames: d } = ce(() => {
1583
+ const M = { ...gt, ...t.locale }, x = t.broadcastCalendar ? 1 : t.weekStartsOn, b = t.noonSafe && t.timeZone ? Vr(t.timeZone, {
1582
1584
  weekStartsOn: x,
1583
- locale: D
1584
- }) : void 0, _ = t.dateLib && b ? { ...b, ...t.dateLib } : t.dateLib ?? b, P = new H({
1585
- locale: D,
1585
+ locale: M
1586
+ }) : void 0, _ = t.dateLib && b ? { ...b, ...t.dateLib } : t.dateLib ?? b, z = new H({
1587
+ locale: M,
1586
1588
  weekStartsOn: x,
1587
1589
  firstWeekContainsDate: t.firstWeekContainsDate,
1588
1590
  useAdditionalWeekYearTokens: t.useAdditionalWeekYearTokens,
@@ -1591,12 +1593,12 @@ function Ys(e) {
1591
1593
  numerals: t.numerals
1592
1594
  }, _);
1593
1595
  return {
1594
- dateLib: P,
1595
- components: Sr(t.components),
1596
- formatters: Ar(t.formatters),
1597
- labels: qr(t.labels, P.options),
1598
- locale: D,
1599
- classNames: { ...xr(), ...t.classNames }
1596
+ dateLib: z,
1597
+ components: wr(t.components),
1598
+ formatters: Br(t.formatters),
1599
+ labels: Hr(t.labels, z.options),
1600
+ locale: M,
1601
+ classNames: { ...Nr(), ...t.classNames }
1600
1602
  };
1601
1603
  }, [
1602
1604
  t.locale,
@@ -1615,17 +1617,17 @@ function Ys(e) {
1615
1617
  t.classNames
1616
1618
  ]);
1617
1619
  t.today || (t = { ...t, today: a.today() });
1618
- const { captionLayout: l, mode: f, navLayout: u, numberOfMonths: y = 1, onDayBlur: g, onDayClick: O, onDayFocus: W, onDayKeyDown: k, onDayMouseEnter: S, onDayMouseLeave: M, onNextClick: v, onPrevClick: N, showWeekNumber: p, styles: c } = t, { formatCaption: w, formatDay: T, formatMonthDropdown: I, formatWeekNumber: E, formatWeekNumberHeader: j, formatWeekdayName: re, formatYearDropdown: X } = s, $ = ds(t, a), { days: oe, months: ge, navStart: Ne, navEnd: Ce, previousMonth: V, nextMonth: U, goToMonth: L } = $, Se = Nr(oe, t, Ne, Ce, a), { isSelected: ie, select: de, selected: be } = vs(t, a) ?? {}, { blur: Ue, focused: ve, isFocusTarget: zt, moveFocus: Ke, setFocused: pe } = cs(t, $, Se, ie ?? (() => !1), a), { labelDayButton: Pt, labelGridcell: At, labelGrid: Ht, labelMonthDropdown: jt, labelNav: Ze, labelPrevious: $t, labelNext: Gt, labelWeekday: qt, labelWeekNumber: Rt, labelWeekNumberHeader: Vt, labelYearDropdown: Ut } = o, Kt = he(() => Ur(a, t.ISOWeek, t.broadcastCalendar, t.today), [a, t.ISOWeek, t.broadcastCalendar, t.today]), Je = f !== void 0 || O !== void 0, _e = G(() => {
1619
- V && (L(V), N == null || N(V));
1620
- }, [V, L, N]), xe = G(() => {
1620
+ const { captionLayout: l, mode: f, navLayout: c, numberOfMonths: g = 1, onDayBlur: y, onDayClick: O, onDayFocus: W, onDayKeyDown: D, onDayMouseEnter: S, onDayMouseLeave: k, onNextClick: v, onPrevClick: N, showWeekNumber: p, styles: u } = t, { formatCaption: w, formatDay: T, formatMonthDropdown: I, formatWeekNumber: E, formatWeekNumberHeader: j, formatWeekdayName: re, formatYearDropdown: X } = s, $ = ss(t, a), { days: oe, months: ge, navStart: Oe, navEnd: we, previousMonth: R, nextMonth: U, goToMonth: L } = $, We = Mr(oe, t, Oe, we, a), { isSelected: ie, select: de, selected: ye } = ms(t, a) ?? {}, { blur: qe, focused: be, isFocusTarget: Tt, moveFocus: Ve, setFocused: ve } = is(t, $, We, ie ?? (() => !1), a), { labelDayButton: Et, labelGridcell: It, labelGrid: Bt, labelMonthDropdown: Ft, labelNav: Re, labelPrevious: Pt, labelNext: zt, labelWeekday: At, labelWeekNumber: Ht, labelWeekNumberHeader: jt, labelYearDropdown: $t } = o, Gt = ce(() => Gr(a, t.ISOWeek, t.broadcastCalendar, t.today), [a, t.ISOWeek, t.broadcastCalendar, t.today]), Ue = f !== void 0 || O !== void 0, Ne = G(() => {
1621
+ R && (L(R), N == null || N(R));
1622
+ }, [R, L, N]), Ce = G(() => {
1621
1623
  U && (L(U), v == null || v(U));
1622
- }, [L, U, v]), Zt = G((D, x) => (b) => {
1623
- b.preventDefault(), b.stopPropagation(), pe(D), !x.disabled && (de == null || de(D.date, x, b), O == null || O(D.date, x, b));
1624
- }, [de, O, pe]), Jt = G((D, x) => (b) => {
1625
- pe(D), W == null || W(D.date, x, b);
1626
- }, [W, pe]), Qt = G((D, x) => (b) => {
1627
- Ue(), g == null || g(D.date, x, b);
1628
- }, [Ue, g]), Xt = G((D, x) => (b) => {
1624
+ }, [L, U, v]), qt = G((M, x) => (b) => {
1625
+ b.preventDefault(), b.stopPropagation(), ve(M), !x.disabled && (de == null || de(M.date, x, b), O == null || O(M.date, x, b));
1626
+ }, [de, O, ve]), Vt = G((M, x) => (b) => {
1627
+ ve(M), W == null || W(M.date, x, b);
1628
+ }, [W, ve]), Rt = G((M, x) => (b) => {
1629
+ qe(), y == null || y(M.date, x, b);
1630
+ }, [qe, y]), Ut = G((M, x) => (b) => {
1629
1631
  const _ = {
1630
1632
  ArrowLeft: [
1631
1633
  b.shiftKey ? "month" : "day",
@@ -1644,77 +1646,77 @@ function Ys(e) {
1644
1646
  };
1645
1647
  if (_[b.key]) {
1646
1648
  b.preventDefault(), b.stopPropagation();
1647
- const [P, C] = _[b.key];
1648
- Ke(P, C);
1649
+ const [z, C] = _[b.key];
1650
+ Ve(z, C);
1649
1651
  }
1650
- k == null || k(D.date, x, b);
1651
- }, [Ke, k, t.dir]), Lt = G((D, x) => (b) => {
1652
- S == null || S(D.date, x, b);
1653
- }, [S]), en = G((D, x) => (b) => {
1654
- M == null || M(D.date, x, b);
1655
- }, [M]), tn = G((D) => (x) => {
1656
- const b = Number(x.target.value), _ = a.setMonth(a.startOfMonth(D), b);
1652
+ D == null || D(M.date, x, b);
1653
+ }, [Ve, D, t.dir]), Kt = G((M, x) => (b) => {
1654
+ S == null || S(M.date, x, b);
1655
+ }, [S]), Zt = G((M, x) => (b) => {
1656
+ k == null || k(M.date, x, b);
1657
+ }, [k]), Jt = G((M) => (x) => {
1658
+ const b = Number(x.target.value), _ = a.setMonth(a.startOfMonth(M), b);
1657
1659
  L(_);
1658
- }, [a, L]), nn = G((D) => (x) => {
1659
- const b = Number(x.target.value), _ = a.setYear(a.startOfMonth(D), b);
1660
+ }, [a, L]), Qt = G((M) => (x) => {
1661
+ const b = Number(x.target.value), _ = a.setYear(a.startOfMonth(M), b);
1660
1662
  L(_);
1661
- }, [a, L]), { className: rn, style: sn } = he(() => ({
1663
+ }, [a, L]), { className: Xt, style: Lt } = ce(() => ({
1662
1664
  className: [d[h.Root], t.className].filter(Boolean).join(" "),
1663
- style: { ...c == null ? void 0 : c[h.Root], ...t.style }
1664
- }), [d, t.className, t.style, c]), on = _r(t), Qe = ke(null);
1665
- Lr(Qe, !!t.animate, {
1665
+ style: { ...u == null ? void 0 : u[h.Root], ...t.style }
1666
+ }), [d, t.className, t.style, u]), en = Wr(t), Ke = pe(null);
1667
+ Zr(Ke, !!t.animate, {
1666
1668
  classNames: d,
1667
1669
  months: ge,
1668
- focused: ve,
1670
+ focused: be,
1669
1671
  dateLib: a
1670
1672
  });
1671
- const an = {
1673
+ const tn = {
1672
1674
  dayPickerProps: t,
1673
- selected: be,
1675
+ selected: ye,
1674
1676
  select: de,
1675
1677
  isSelected: ie,
1676
1678
  months: ge,
1677
1679
  nextMonth: U,
1678
- previousMonth: V,
1680
+ previousMonth: R,
1679
1681
  goToMonth: L,
1680
- getModifiers: Se,
1682
+ getModifiers: We,
1681
1683
  components: n,
1682
1684
  classNames: d,
1683
- styles: c,
1685
+ styles: u,
1684
1686
  labels: o,
1685
1687
  formatters: s
1686
1688
  };
1687
1689
  return m.createElement(
1688
- Dt.Provider,
1689
- { value: an },
1690
+ bt.Provider,
1691
+ { value: tn },
1690
1692
  m.createElement(
1691
1693
  n.Root,
1692
- { rootRef: t.animate ? Qe : void 0, className: rn, style: sn, 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"], ...on },
1694
+ { rootRef: t.animate ? Ke : void 0, className: Xt, style: Lt, 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"], ...en },
1693
1695
  m.createElement(
1694
1696
  n.Months,
1695
- { className: d[h.Months], style: c == null ? void 0 : c[h.Months] },
1696
- !t.hideNavigation && !u && m.createElement(n.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: d[h.Nav], style: c == null ? void 0 : c[h.Nav], "aria-label": Ze(), onPreviousClick: _e, onNextClick: xe, previousMonth: V, nextMonth: U }),
1697
- ge.map((D, x) => m.createElement(
1697
+ { className: d[h.Months], style: u == null ? void 0 : u[h.Months] },
1698
+ !t.hideNavigation && !c && m.createElement(n.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: d[h.Nav], style: u == null ? void 0 : u[h.Nav], "aria-label": Re(), onPreviousClick: Ne, onNextClick: Ce, previousMonth: R, nextMonth: U }),
1699
+ ge.map((M, x) => m.createElement(
1698
1700
  n.Month,
1699
1701
  {
1700
1702
  "data-animated-month": t.animate ? "true" : void 0,
1701
1703
  className: d[h.Month],
1702
- style: c == null ? void 0 : c[h.Month],
1704
+ style: u == null ? void 0 : u[h.Month],
1703
1705
  // biome-ignore lint/suspicious/noArrayIndexKey: breaks animation
1704
1706
  key: x,
1705
1707
  displayIndex: x,
1706
- calendarMonth: D
1708
+ calendarMonth: M
1707
1709
  },
1708
- u === "around" && !t.hideNavigation && x === 0 && m.createElement(
1710
+ c === "around" && !t.hideNavigation && x === 0 && m.createElement(
1709
1711
  n.PreviousMonthButton,
1710
- { type: "button", className: d[h.PreviousMonthButton], tabIndex: V ? void 0 : -1, "aria-disabled": V ? void 0 : !0, "aria-label": $t(V), onClick: _e, "data-animated-button": t.animate ? "true" : void 0 },
1711
- m.createElement(n.Chevron, { disabled: V ? void 0 : !0, className: d[h.Chevron], orientation: t.dir === "rtl" ? "right" : "left" })
1712
+ { type: "button", className: d[h.PreviousMonthButton], tabIndex: R ? void 0 : -1, "aria-disabled": R ? void 0 : !0, "aria-label": Pt(R), onClick: Ne, "data-animated-button": t.animate ? "true" : void 0 },
1713
+ m.createElement(n.Chevron, { disabled: R ? void 0 : !0, className: d[h.Chevron], orientation: t.dir === "rtl" ? "right" : "left" })
1712
1714
  ),
1713
- m.createElement(n.MonthCaption, { "data-animated-caption": t.animate ? "true" : void 0, className: d[h.MonthCaption], style: c == null ? void 0 : c[h.MonthCaption], calendarMonth: D, displayIndex: x }, l != null && l.startsWith("dropdown") ? m.createElement(
1715
+ m.createElement(n.MonthCaption, { "data-animated-caption": t.animate ? "true" : void 0, className: d[h.MonthCaption], style: u == null ? void 0 : u[h.MonthCaption], calendarMonth: M, displayIndex: x }, l != null && l.startsWith("dropdown") ? m.createElement(
1714
1716
  n.DropdownNav,
1715
- { className: d[h.Dropdowns], style: c == null ? void 0 : c[h.Dropdowns] },
1717
+ { className: d[h.Dropdowns], style: u == null ? void 0 : u[h.Dropdowns] },
1716
1718
  (() => {
1717
- const b = l === "dropdown" || l === "dropdown-months" ? m.createElement(n.MonthsDropdown, { key: "month", className: d[h.MonthsDropdown], "aria-label": jt(), classNames: d, components: n, disabled: !!t.disableNavigation, onChange: tn(D.date), options: Rr(D.date, Ne, Ce, s, a), style: c == null ? void 0 : c[h.Dropdown], value: a.getMonth(D.date) }) : m.createElement("span", { key: "month" }, I(D.date, a)), _ = l === "dropdown" || l === "dropdown-years" ? m.createElement(n.YearsDropdown, { key: "year", className: d[h.YearsDropdown], "aria-label": Ut(a.options), classNames: d, components: n, disabled: !!t.disableNavigation, onChange: nn(D.date), options: Kr(Ne, Ce, s, a, !!t.reverseYears), style: c == null ? void 0 : c[h.Dropdown], value: a.getYear(D.date) }) : m.createElement("span", { key: "year" }, X(D.date, a));
1719
+ const b = l === "dropdown" || l === "dropdown-months" ? m.createElement(n.MonthsDropdown, { key: "month", className: d[h.MonthsDropdown], "aria-label": Ft(), classNames: d, components: n, disabled: !!t.disableNavigation, onChange: Jt(M.date), options: jr(M.date, Oe, we, s, a), style: u == null ? void 0 : u[h.Dropdown], value: a.getMonth(M.date) }) : m.createElement("span", { key: "month" }, I(M.date, a)), _ = l === "dropdown" || l === "dropdown-years" ? m.createElement(n.YearsDropdown, { key: "year", className: d[h.YearsDropdown], "aria-label": $t(a.options), classNames: d, components: n, disabled: !!t.disableNavigation, onChange: Qt(M.date), options: qr(Oe, we, s, a, !!t.reverseYears), style: u == null ? void 0 : u[h.Dropdown], value: a.getYear(M.date) }) : m.createElement("span", { key: "year" }, X(M.date, a));
1718
1720
  return a.getMonthYearOrder() === "year-first" ? [_, b] : [b, _];
1719
1721
  })(),
1720
1722
  m.createElement("span", { role: "status", "aria-live": "polite", style: {
@@ -1728,131 +1730,54 @@ function Ys(e) {
1728
1730
  width: "1px",
1729
1731
  whiteSpace: "nowrap",
1730
1732
  wordWrap: "normal"
1731
- } }, w(D.date, a.options, a))
1732
- ) : m.createElement(n.CaptionLabel, { className: d[h.CaptionLabel], role: "status", "aria-live": "polite" }, w(D.date, a.options, a))),
1733
- u === "around" && !t.hideNavigation && x === y - 1 && m.createElement(
1733
+ } }, w(M.date, a.options, a))
1734
+ ) : m.createElement(n.CaptionLabel, { className: d[h.CaptionLabel], role: "status", "aria-live": "polite" }, w(M.date, a.options, a))),
1735
+ c === "around" && !t.hideNavigation && x === g - 1 && m.createElement(
1734
1736
  n.NextMonthButton,
1735
- { type: "button", className: d[h.NextMonthButton], tabIndex: U ? void 0 : -1, "aria-disabled": U ? void 0 : !0, "aria-label": Gt(U), onClick: xe, "data-animated-button": t.animate ? "true" : void 0 },
1737
+ { type: "button", className: d[h.NextMonthButton], tabIndex: U ? void 0 : -1, "aria-disabled": U ? void 0 : !0, "aria-label": zt(U), onClick: Ce, "data-animated-button": t.animate ? "true" : void 0 },
1736
1738
  m.createElement(n.Chevron, { disabled: U ? void 0 : !0, className: d[h.Chevron], orientation: t.dir === "rtl" ? "left" : "right" })
1737
1739
  ),
1738
- x === y - 1 && u === "after" && !t.hideNavigation && m.createElement(n.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: d[h.Nav], style: c == null ? void 0 : c[h.Nav], "aria-label": Ze(), onPreviousClick: _e, onNextClick: xe, previousMonth: V, nextMonth: U }),
1740
+ x === g - 1 && c === "after" && !t.hideNavigation && m.createElement(n.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: d[h.Nav], style: u == null ? void 0 : u[h.Nav], "aria-label": Re(), onPreviousClick: Ne, onNextClick: Ce, previousMonth: R, nextMonth: U }),
1739
1741
  m.createElement(
1740
1742
  n.MonthGrid,
1741
- { role: "grid", "aria-multiselectable": f === "multiple" || f === "range", "aria-label": Ht(D.date, a.options, a) || void 0, className: d[h.MonthGrid], style: c == null ? void 0 : c[h.MonthGrid] },
1743
+ { role: "grid", "aria-multiselectable": f === "multiple" || f === "range", "aria-label": Bt(M.date, a.options, a) || void 0, className: d[h.MonthGrid], style: u == null ? void 0 : u[h.MonthGrid] },
1742
1744
  !t.hideWeekdays && m.createElement(
1743
1745
  n.Weekdays,
1744
- { "data-animated-weekdays": t.animate ? "true" : void 0, className: d[h.Weekdays], style: c == null ? void 0 : c[h.Weekdays] },
1745
- p && m.createElement(n.WeekNumberHeader, { "aria-label": Vt(a.options), className: d[h.WeekNumberHeader], style: c == null ? void 0 : c[h.WeekNumberHeader], scope: "col" }, j()),
1746
- Kt.map((b) => m.createElement(n.Weekday, { "aria-label": qt(b, a.options, a), className: d[h.Weekday], key: String(b), style: c == null ? void 0 : c[h.Weekday], scope: "col" }, re(b, a.options, a)))
1746
+ { "data-animated-weekdays": t.animate ? "true" : void 0, className: d[h.Weekdays], style: u == null ? void 0 : u[h.Weekdays] },
1747
+ p && m.createElement(n.WeekNumberHeader, { "aria-label": jt(a.options), className: d[h.WeekNumberHeader], style: u == null ? void 0 : u[h.WeekNumberHeader], scope: "col" }, j()),
1748
+ Gt.map((b) => m.createElement(n.Weekday, { "aria-label": At(b, a.options, a), className: d[h.Weekday], key: String(b), style: u == null ? void 0 : u[h.Weekday], scope: "col" }, re(b, a.options, a)))
1747
1749
  ),
1748
- m.createElement(n.Weeks, { "data-animated-weeks": t.animate ? "true" : void 0, className: d[h.Weeks], style: c == null ? void 0 : c[h.Weeks] }, D.weeks.map((b) => m.createElement(
1750
+ m.createElement(n.Weeks, { "data-animated-weeks": t.animate ? "true" : void 0, className: d[h.Weeks], style: u == null ? void 0 : u[h.Weeks] }, M.weeks.map((b) => m.createElement(
1749
1751
  n.Week,
1750
- { className: d[h.Week], key: b.weekNumber, style: c == null ? void 0 : c[h.Week], week: b },
1751
- p && m.createElement(n.WeekNumber, { week: b, style: c == null ? void 0 : c[h.WeekNumber], "aria-label": Rt(b.weekNumber, {
1752
+ { className: d[h.Week], key: b.weekNumber, style: u == null ? void 0 : u[h.Week], week: b },
1753
+ p && m.createElement(n.WeekNumber, { week: b, style: u == null ? void 0 : u[h.WeekNumber], "aria-label": Ht(b.weekNumber, {
1752
1754
  locale: i
1753
1755
  }), className: d[h.WeekNumber], scope: "row", role: "rowheader" }, E(b.weekNumber, a)),
1754
1756
  b.days.map((_) => {
1755
- const { date: P } = _, C = Se(_);
1756
- if (C[Y.focused] = !C.hidden && !!(ve != null && ve.isEqualTo(_)), C[z.selected] = (ie == null ? void 0 : ie(P)) || C.selected, we(be)) {
1757
- const { from: Ye, to: Te } = be;
1758
- C[z.range_start] = !!(Ye && Te && a.isSameDay(P, Ye)), C[z.range_end] = !!(Ye && Te && a.isSameDay(P, Te)), C[z.range_middle] = ee(be, P, !0, a);
1757
+ const { date: z } = _, C = We(_);
1758
+ if (C[Y.focused] = !C.hidden && !!(be != null && be.isEqualTo(_)), C[P.selected] = (ie == null ? void 0 : ie(z)) || C.selected, De(ye)) {
1759
+ const { from: Se, to: _e } = ye;
1760
+ C[P.range_start] = !!(Se && _e && a.isSameDay(z, Se)), C[P.range_end] = !!(Se && _e && a.isSameDay(z, _e)), C[P.range_middle] = ee(ye, z, !0, a);
1759
1761
  }
1760
- const dn = Vr(C, c, t.modifiersStyles), ln = Cr(C, d, t.modifiersClassNames), fn = !Je && !C.hidden ? At(P, C, a.options, a) : void 0;
1761
- return m.createElement(n.Day, { key: `${_.isoDate}_${_.displayMonthId}`, day: _, modifiers: C, className: ln.join(" "), style: dn, role: "gridcell", "aria-selected": C.selected || void 0, "aria-label": fn, "data-day": _.isoDate, "data-month": _.outside ? _.dateMonthId : void 0, "data-selected": C.selected || void 0, "data-disabled": C.disabled || void 0, "data-hidden": C.hidden || void 0, "data-outside": _.outside || void 0, "data-focused": C.focused || void 0, "data-today": C.today || void 0 }, !C.hidden && Je ? m.createElement(n.DayButton, { className: d[h.DayButton], style: c == null ? void 0 : c[h.DayButton], type: "button", day: _, modifiers: C, disabled: !C.focused && C.disabled || void 0, "aria-disabled": C.focused && C.disabled || void 0, tabIndex: zt(_) ? 0 : -1, "aria-label": Pt(P, C, a.options, a), onClick: Zt(_, C), onBlur: Qt(_, C), onFocus: Jt(_, C), onKeyDown: Xt(_, C), onMouseEnter: Lt(_, C), onMouseLeave: en(_, C) }, T(P, a.options, a)) : !C.hidden && T(_.date, a.options, a));
1762
+ const nn = $r(C, u, t.modifiersStyles), rn = Or(C, d, t.modifiersClassNames), sn = !Ue && !C.hidden ? It(z, C, a.options, a) : void 0;
1763
+ return m.createElement(n.Day, { key: `${_.isoDate}_${_.displayMonthId}`, day: _, modifiers: C, className: rn.join(" "), style: nn, role: "gridcell", "aria-selected": C.selected || void 0, "aria-label": sn, "data-day": _.isoDate, "data-month": _.outside ? _.dateMonthId : void 0, "data-selected": C.selected || void 0, "data-disabled": C.disabled || void 0, "data-hidden": C.hidden || void 0, "data-outside": _.outside || void 0, "data-focused": C.focused || void 0, "data-today": C.today || void 0 }, !C.hidden && Ue ? m.createElement(n.DayButton, { className: d[h.DayButton], style: u == null ? void 0 : u[h.DayButton], type: "button", day: _, modifiers: C, disabled: !C.focused && C.disabled || void 0, "aria-disabled": C.focused && C.disabled || void 0, tabIndex: Tt(_) ? 0 : -1, "aria-label": Et(z, C, a.options, a), onClick: qt(_, C), onBlur: Rt(_, C), onFocus: Vt(_, C), onKeyDown: Ut(_, C), onMouseEnter: Kt(_, C), onMouseLeave: Zt(_, C) }, T(z, a.options, a)) : !C.hidden && T(_.date, a.options, a));
1762
1764
  })
1763
1765
  )))
1764
1766
  )
1765
1767
  ))
1766
1768
  ),
1767
- t.footer && m.createElement(n.Footer, { className: d[h.Footer], style: c == null ? void 0 : c[h.Footer], role: "status", "aria-live": "polite" }, t.footer)
1769
+ t.footer && m.createElement(n.Footer, { className: d[h.Footer], style: u == null ? void 0 : u[h.Footer], role: "status", "aria-live": "polite" }, t.footer)
1768
1770
  )
1769
1771
  );
1770
1772
  }
1771
- const ue = {
1772
- en: () => import("./en-GB-CxPRQbD6.js").then((e) => e.enGB),
1773
- "en-us": () => import("./format--x5jypvH.js").then((e) => e.I).then((e) => e.enUS),
1774
- it: () => import("./it-Cp0CA13d.js").then((e) => e.it),
1775
- de: () => import("./de-B1B3PIgY.js").then((e) => e.de),
1776
- es: () => import("./es-Bg1oqwDs.js").then((e) => e.es),
1777
- fr: () => import("./fr-DpGxyOGI.js").then((e) => e.fr),
1778
- pt: () => import("./pt-CPKOrOLj.js").then((e) => e.pt),
1779
- nl: () => import("./nl-sfx-zJgR.js").then((e) => e.nl),
1780
- pl: () => import("./pl-BLh7KO-s.js").then((e) => e.pl),
1781
- ro: () => import("./ro-Dc-oNqbF.js").then((e) => e.ro),
1782
- ru: () => import("./ru-BtNpDZRR.js").then((e) => e.ru),
1783
- sv: () => import("./sv-Bf_dHPvh.js").then((e) => e.sv),
1784
- el: () => import("./el-iLqGpapg.js").then((e) => e.el),
1785
- ja: () => import("./ja-9FOyR1lb.js").then((e) => e.ja),
1786
- zh: () => import("./zh-CN-C657DBCO.js").then((e) => e.zhCN),
1787
- hi: () => import("./hi-3Dtsksrw.js").then((e) => e.hi),
1788
- ar: () => import("./ar-C4YQVTH6.js").then((e) => e.ar),
1789
- tr: () => import("./tr-xqQ6cbGY.js").then((e) => e.tr),
1790
- sq: () => import("./sq-D4c7olaV.js").then((e) => e.sq)
1791
- };
1792
- async function it(e) {
1793
- const t = e.toLowerCase().replaceAll("_", "-"), r = Object.hasOwn(ue, t) ? t : t.split("-")[0];
1794
- return (Object.hasOwn(ue, r) ? ue[r] : ue.en)();
1795
- }
1796
- const Me = /* @__PURE__ */ new Map();
1797
- function Ts(e) {
1798
- const t = e.toLowerCase().replaceAll("_", "-"), r = Object.hasOwn(ue, t) ? t : t.split("-")[0], [n, s] = De(() => ({
1799
- key: r,
1800
- locale: Me.get(r)
1801
- }));
1802
- return lt(() => {
1803
- const o = Me.get(r);
1804
- if (o) {
1805
- s({ key: r, locale: o });
1806
- return;
1807
- }
1808
- let a = !1;
1809
- return it(r).then(
1810
- (i) => {
1811
- Me.set(r, i), a || s({ key: r, locale: i });
1812
- },
1813
- // A failed chunk shows English instead of an endless wait. It is not
1814
- // cached, so the next mount retries the language.
1815
- () => it("en").then((i) => {
1816
- a || s({ key: r, locale: i });
1817
- })
1818
- ), () => {
1819
- a = !0;
1820
- };
1821
- }, [r]), n.key === r ? n.locale : Me.get(r);
1822
- }
1823
- const Pe = {
1824
- en: "dd/MM/yyyy",
1825
- "en-us": "MM/dd/yyyy",
1826
- de: "dd.MM.yyyy",
1827
- fr: "dd/MM/yyyy",
1828
- es: "dd/MM/yyyy",
1829
- it: "dd/MM/yyyy",
1830
- pt: "dd/MM/yyyy",
1831
- nl: "dd-MM-yyyy",
1832
- pl: "dd.MM.yyyy",
1833
- cs: "dd.MM.yyyy",
1834
- da: "dd.MM.yyyy",
1835
- sv: "yyyy-MM-dd",
1836
- fi: "dd.MM.yyyy",
1837
- nb: "dd.MM.yyyy",
1838
- ja: "yyyy/MM/dd",
1839
- zh: "yyyy/MM/dd",
1840
- ko: "yyyy.MM.dd",
1841
- ar: "dd/MM/yyyy",
1842
- he: "dd.MM.yyyy"
1843
- };
1844
- function Es(e) {
1845
- const t = e.toLowerCase();
1846
- return Pe[t] ?? Pe[t.split("-")[0]] ?? Pe.en;
1847
- }
1848
- function Is(e, t, r) {
1773
+ function xs(e, t, r) {
1849
1774
  const n = [];
1850
1775
  return e && n.push({ before: e }), t && n.push({ after: t }), Array.isArray(r) ? n.push(...r) : typeof r == "function" && n.push(r), n.length === 1 ? n[0] : n;
1851
1776
  }
1852
- function Bs({ orientation: e }) {
1853
- return e === "left" ? /* @__PURE__ */ Le(On, { className: "ds:size-4 ds:rtl:-scale-x-100" }) : /* @__PURE__ */ Le(wn, { className: "ds:size-4 ds:rtl:-scale-x-100" });
1777
+ function Ys({ orientation: e }) {
1778
+ return e === "left" ? /* @__PURE__ */ Je(pn, { className: "ds:size-4 ds:rtl:-scale-x-100" }) : /* @__PURE__ */ Je(kn, { className: "ds:size-4 ds:rtl:-scale-x-100" });
1854
1779
  }
1855
- const Ae = "ds:bg-[var(--calendar-range-fill)]", ps = "ds:size-[var(--min-target-size)] ds:text-center ds:align-middle", Ms = [
1780
+ const Be = "ds:bg-[var(--calendar-range-fill)]", gs = "ds:size-[var(--min-target-size)] ds:text-center ds:align-middle", ys = [
1856
1781
  // `rdp-day_button` stays as a stable structural/test hook. Selection fills
1857
1782
  // target the descendant `button` instead: inside an arbitrary variant an
1858
1783
  // underscore reads as a SPACE, so `.rdp-day_button` would compile to the
@@ -1875,7 +1800,7 @@ const Ae = "ds:bg-[var(--calendar-range-fill)]", ps = "ds:size-[var(--min-target
1875
1800
  "ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
1876
1801
  "ds:forced-colors:focus-visible:outline-[Highlight]",
1877
1802
  "ds:disabled:cursor-default"
1878
- ].join(" "), ks = [
1803
+ ].join(" "), bs = [
1879
1804
  "rdp-today",
1880
1805
  "ds:[&_button]:font-semibold",
1881
1806
  "ds:[&_button]:after:content-['']",
@@ -1895,7 +1820,7 @@ const Ae = "ds:bg-[var(--calendar-range-fill)]", ps = "ds:size-[var(--min-target
1895
1820
  // pairing in every state without a separate (and previously wrong, because
1896
1821
  // it pinned CanvasText even on a Highlight cap) forced-colors override.
1897
1822
  "ds:[&_button]:after:bg-current"
1898
- ].join(" "), dt = [
1823
+ ].join(" "), st = [
1899
1824
  "ds:inline-flex ds:items-center ds:justify-center",
1900
1825
  "ds:size-[var(--min-target-size)] ds:rounded-[var(--radius-sm)]",
1901
1826
  "ds:cursor-pointer ds:bg-transparent ds:text-foreground",
@@ -1905,7 +1830,7 @@ const Ae = "ds:bg-[var(--calendar-range-fill)]", ps = "ds:size-[var(--min-target
1905
1830
  "ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
1906
1831
  "ds:disabled:opacity-50 ds:disabled:cursor-default",
1907
1832
  "ds:aria-disabled:opacity-50 ds:aria-disabled:cursor-default"
1908
- ].join(" "), Fs = {
1833
+ ].join(" "), Ts = {
1909
1834
  /* ---- Layout shell ---- */
1910
1835
  // `ds:font-sans` is Tailwind's DEFAULT stack (ui-sans-serif, system-ui …), not
1911
1836
  // the kit's face, so it overrode the correct font the portal root had already
@@ -1920,8 +1845,8 @@ const Ae = "ds:bg-[var(--calendar-range-fill)]", ps = "ds:size-[var(--min-target
1920
1845
  // `top-0` is the block-axis (RTL-agnostic) inset; `end-0` is the
1921
1846
  // inline-axis logical inset → `inset-inline-end: 0`, mirroring under RTL.
1922
1847
  [h.Nav]: "rdp-nav ds:absolute ds:top-0 ds:end-0 ds:flex ds:items-center ds:h-[var(--min-target-size)]",
1923
- [h.PreviousMonthButton]: `rdp-button_previous ${dt}`,
1924
- [h.NextMonthButton]: `rdp-button_next ${dt}`,
1848
+ [h.PreviousMonthButton]: `rdp-button_previous ${st}`,
1849
+ [h.NextMonthButton]: `rdp-button_next ${st}`,
1925
1850
  [h.Chevron]: "rdp-chevron ds:inline-block ds:fill-current",
1926
1851
  /* ---- Weekday header row ---- */
1927
1852
  [h.Weekdays]: "rdp-weekdays",
@@ -1931,8 +1856,8 @@ const Ae = "ds:bg-[var(--calendar-range-fill)]", ps = "ds:size-[var(--min-target
1931
1856
  /* ---- Week rows + day cells ---- */
1932
1857
  [h.Weeks]: "rdp-weeks",
1933
1858
  [h.Week]: "rdp-week",
1934
- [h.Day]: `rdp-day ${ps}`,
1935
- [h.DayButton]: Ms,
1859
+ [h.Day]: `rdp-day ${gs}`,
1860
+ [h.DayButton]: ys,
1936
1861
  [h.WeekNumber]: "rdp-week_number ds:text-muted-foreground ds:text-center ds:text-[length:var(--font-size-sm)] ds:size-[var(--min-target-size)]",
1937
1862
  /* ---- Day flags ----
1938
1863
  De-emphasised states now ride tokened colours with GUARANTEED contrast
@@ -1940,7 +1865,7 @@ const Ae = "ds:bg-[var(--calendar-range-fill)]", ps = "ds:size-[var(--min-target
1940
1865
  dodge the ratio). `today` is a shape marker (see TODAY_DOT) that survives
1941
1866
  inside a range and on a solid cap; `disabled` adds a `line-through`
1942
1867
  non-colour "unavailable" cue on top of the muted colour. */
1943
- [Y.today]: ks,
1868
+ [Y.today]: bs,
1944
1869
  [Y.outside]: "rdp-outside ds:text-muted-foreground",
1945
1870
  [Y.disabled]: "rdp-disabled ds:text-muted-foreground ds:[&_button]:line-through",
1946
1871
  [Y.hidden]: "rdp-hidden ds:invisible",
@@ -1948,21 +1873,21 @@ const Ae = "ds:bg-[var(--calendar-range-fill)]", ps = "ds:size-[var(--min-target
1948
1873
  The colour fill lives on the inner `.rdp-day_button` via descendant
1949
1874
  selectors so the cell padding stays transparent and the rounded
1950
1875
  button reads as the selected chip. */
1951
- [z.selected]: "rdp-selected ds:[&_button]:bg-primary ds:[&_button]:text-primary-foreground ds:[&_button]:border-primary ds:[&_button]:hover:bg-primary-hover ds:forced-colors:[&_button]:bg-[Highlight] ds:forced-colors:[&_button]:text-[HighlightText]",
1952
- [z.range_start]: `rdp-range_start ${Ae} ds:rounded-s-[var(--radius-sm)] ds:[&_button]:bg-primary ds:[&_button]:text-primary-foreground ds:[&_button]:border-primary ds:forced-colors:bg-[Highlight] ds:forced-colors:[&_button]:bg-[Highlight] ds:forced-colors:[&_button]:text-[HighlightText]`,
1876
+ [P.selected]: "rdp-selected ds:[&_button]:bg-primary ds:[&_button]:text-primary-foreground ds:[&_button]:border-primary ds:[&_button]:hover:bg-primary-hover ds:forced-colors:[&_button]:bg-[Highlight] ds:forced-colors:[&_button]:text-[HighlightText]",
1877
+ [P.range_start]: `rdp-range_start ${Be} ds:rounded-s-[var(--radius-sm)] ds:[&_button]:bg-primary ds:[&_button]:text-primary-foreground ds:[&_button]:border-primary ds:forced-colors:bg-[Highlight] ds:forced-colors:[&_button]:bg-[Highlight] ds:forced-colors:[&_button]:text-[HighlightText]`,
1953
1878
  // rdp applies BOTH `selected` and `range_middle` to a middle day. `selected`
1954
1879
  // fills the button (solid `--primary`, white text); `range_middle` must undo
1955
1880
  // that so the day reads as `--foreground` on the soft band, NOT white text on
1956
1881
  // it (≈1.3:1). The `bg`/`text` overrides use the compound `&.rdp-selected`
1957
1882
  // selector so they out-specify `selected`'s `[&_button]` rules deterministically
1958
1883
  // (Tailwind emits same-specificity utilities in an unstable order otherwise).
1959
- [z.range_middle]: `rdp-range_middle ${Ae} ds:[&.rdp-selected_button]:bg-transparent ds:[&_button]:border-transparent ds:[&.rdp-selected_button]:text-foreground ds:[&_button]:rounded-none ds:forced-colors:bg-[Highlight] ds:forced-colors:[&_button]:text-[HighlightText]`,
1960
- [z.range_end]: `rdp-range_end ${Ae} ds:rounded-e-[var(--radius-sm)] ds:[&_button]:bg-primary ds:[&_button]:text-primary-foreground ds:[&_button]:border-primary ds:forced-colors:bg-[Highlight] ds:forced-colors:[&_button]:bg-[Highlight] ds:forced-colors:[&_button]:text-[HighlightText]`
1961
- }, He = "ds:bg-[var(--calendar-compare-fill)] ds:border-b-2 ds:border-dashed ds:border-b-[var(--calendar-compare-edge)]", zs = {
1962
- compareStart: `rdp-compare_start ${He} ds:rounded-s-[var(--radius-sm)]`,
1963
- compareMiddle: `rdp-compare_middle ${He}`,
1964
- compareEnd: `rdp-compare_end ${He} ds:rounded-e-[var(--radius-sm)]`
1965
- }, Ps = ne(
1884
+ [P.range_middle]: `rdp-range_middle ${Be} ds:[&.rdp-selected_button]:bg-transparent ds:[&_button]:border-transparent ds:[&.rdp-selected_button]:text-foreground ds:[&_button]:rounded-none ds:forced-colors:bg-[Highlight] ds:forced-colors:[&_button]:text-[HighlightText]`,
1885
+ [P.range_end]: `rdp-range_end ${Be} ds:rounded-e-[var(--radius-sm)] ds:[&_button]:bg-primary ds:[&_button]:text-primary-foreground ds:[&_button]:border-primary ds:forced-colors:bg-[Highlight] ds:forced-colors:[&_button]:bg-[Highlight] ds:forced-colors:[&_button]:text-[HighlightText]`
1886
+ }, Fe = "ds:bg-[var(--calendar-compare-fill)] ds:border-b-2 ds:border-dashed ds:border-b-[var(--calendar-compare-edge)]", Es = {
1887
+ compareStart: `rdp-compare_start ${Fe} ds:rounded-s-[var(--radius-sm)]`,
1888
+ compareMiddle: `rdp-compare_middle ${Fe}`,
1889
+ compareEnd: `rdp-compare_end ${Fe} ds:rounded-e-[var(--radius-sm)]`
1890
+ }, Is = ne(
1966
1891
  [
1967
1892
  "ds:relative ds:flex ds:items-center ds:w-full",
1968
1893
  "ds:border ds:text-foreground",
@@ -2019,7 +1944,7 @@ const Ae = "ds:bg-[var(--calendar-range-fill)]", ps = "ds:size-[var(--min-target
2019
1944
  chrome: "input"
2020
1945
  }
2021
1946
  }
2022
- ), As = ne(
1947
+ ), Bs = ne(
2023
1948
  [
2024
1949
  "ds:w-full ds:min-w-0 ds:rounded-[var(--radius-sm)] ds:border ds:bg-input",
2025
1950
  "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:py-[var(--spacing-xs)]",
@@ -2039,7 +1964,7 @@ const Ae = "ds:bg-[var(--calendar-range-fill)]", ps = "ds:size-[var(--min-target
2039
1964
  },
2040
1965
  defaultVariants: { state: "default" }
2041
1966
  }
2042
- ), Hs = ne(
1967
+ ), Fs = ne(
2043
1968
  [
2044
1969
  "ds:inline-flex ds:items-center ds:justify-center ds:min-h-[var(--min-target-size)]",
2045
1970
  "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:rounded-[var(--radius-sm)]",
@@ -2058,9 +1983,9 @@ const Ae = "ds:bg-[var(--calendar-range-fill)]", ps = "ds:size-[var(--min-target
2058
1983
  },
2059
1984
  defaultVariants: { intent: "ghost" }
2060
1985
  }
2061
- ), js = ne(
1986
+ ), Ps = ne(
2062
1987
  "ds:inline-flex ds:items-center ds:rounded-[var(--radius-sm)] ds:border ds:border-border ds:bg-input ds:p-[2px]"
2063
- ), $s = ne(
1988
+ ), zs = ne(
2064
1989
  [
2065
1990
  "ds:inline-flex ds:items-center ds:justify-center ds:cursor-pointer",
2066
1991
  // Meet the kit touch-target rule (44px base / 48px accessible), matching
@@ -2074,9 +1999,9 @@ const Ae = "ds:bg-[var(--calendar-range-fill)]", ps = "ds:size-[var(--min-target
2074
1999
  "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
2075
2000
  "ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
2076
2001
  ].join(" ")
2077
- ), Gs = ne(
2002
+ ), As = ne(
2078
2003
  "ds:ps-[var(--spacing-sm)] ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-xs)] ds:text-[length:var(--font-size-xs)] ds:font-semibold ds:uppercase ds:tracking-wide ds:text-muted-foreground"
2079
- ), qs = ne(
2004
+ ), Hs = ne(
2080
2005
  "ds:absolute ds:inset-y-0 ds:end-0 ds:flex ds:items-center ds:pointer-events-none ds:text-muted-foreground",
2081
2006
  {
2082
2007
  variants: {
@@ -2088,13 +2013,13 @@ const Ae = "ds:bg-[var(--calendar-range-fill)]", ps = "ds:size-[var(--min-target
2088
2013
  },
2089
2014
  defaultVariants: { size: "md" }
2090
2015
  }
2091
- ), Rs = ne(
2016
+ ), js = ne(
2092
2017
  [
2093
2018
  "ds:z-[var(--z-popover)] ds:rounded-[var(--radius-md)]",
2094
2019
  "ds:border ds:border-border ds:bg-background ds:shadow-[var(--shadow-lg)]",
2095
2020
  "ds:p-[var(--spacing-md)]"
2096
2021
  ].join(" ")
2097
- ), Vs = ne(
2022
+ ), $s = ne(
2098
2023
  [
2099
2024
  // A flex row so an `active` preset can carry a trailing check icon and the
2100
2025
  // label still fills the width and truncates rather than wrapping.
@@ -2123,32 +2048,30 @@ const Ae = "ds:bg-[var(--calendar-range-fill)]", ps = "ds:size-[var(--min-target
2123
2048
  }
2124
2049
  );
2125
2050
  export {
2126
- Bs as C,
2127
- Ys as D,
2128
- $n as a,
2129
- mt as b,
2051
+ Ys as C,
2052
+ _s as D,
2053
+ zn as a,
2054
+ lt as b,
2130
2055
  xs as c,
2131
- Is as d,
2132
- qs as e,
2133
- Fs as f,
2134
- Es as g,
2135
- Rs as h,
2136
- Gn as i,
2137
- _n as j,
2138
- xn as k,
2139
- vt as l,
2140
- En as m,
2141
- $s as n,
2142
- js as o,
2143
- Vs as p,
2144
- Gs as q,
2145
- As as r,
2146
- Bn as s,
2147
- Ps as t,
2148
- Ts as u,
2149
- zs as v,
2150
- Hs as w,
2151
- yt as x,
2152
- qn as y
2056
+ Hs as d,
2057
+ Ts as e,
2058
+ js as f,
2059
+ Wn as g,
2060
+ Nn as h,
2061
+ An as i,
2062
+ ht as j,
2063
+ _n as k,
2064
+ zs as l,
2065
+ Ps as m,
2066
+ As as n,
2067
+ Es as o,
2068
+ $s as p,
2069
+ Fs as q,
2070
+ Bs as r,
2071
+ Yn as s,
2072
+ Is as t,
2073
+ Ss as u,
2074
+ ft as v,
2075
+ Hn as w
2153
2076
  };
2154
- //# sourceMappingURL=date-picker-variants-Dt6UbonG.js.map
2077
+ //# sourceMappingURL=date-picker-variants-J1EeAhIH.js.map