@brumaombra/ui-vintage 0.1.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 (297) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +78 -0
  3. package/dist/AlertDialogTitle.vue_vue_type_script_setup_true_lang-CWCr2erD.js +360 -0
  4. package/dist/AlertDialogTrigger.vue_vue_type_script_setup_true_lang-vNwxOYhM.js +158 -0
  5. package/dist/BackgroundGrid-Cxvbtefm.js +13 -0
  6. package/dist/Busy-B65Nd9ec.js +62 -0
  7. package/dist/BusyIndicator-CnWzSMDb.js +4 -0
  8. package/dist/BusyIndicator.vue_vue_type_script_setup_true_lang-CYeXMI_V.js +66 -0
  9. package/dist/CalendarPrevButton.vue_vue_type_script_setup_true_lang-C-WnFnvj.js +3805 -0
  10. package/dist/Card.vue_vue_type_script_setup_true_lang-6ol3rxy1.js +27 -0
  11. package/dist/CardTitle.vue_vue_type_script_setup_true_lang-DVAd7AWF.js +112 -0
  12. package/dist/Collection-CmOoLBo7.js +76 -0
  13. package/dist/ConfigProvider-D2O0Jles.js +6 -0
  14. package/dist/ConfirmDialog-DEsvF0b_.js +4 -0
  15. package/dist/ConfirmDialog.vue_vue_type_script_setup_true_lang-BAd1l1zF.js +230 -0
  16. package/dist/DashboardShell.vue_vue_type_script_setup_true_lang-CT2SQBXv.js +171 -0
  17. package/dist/DatePicker.vue_vue_type_script_setup_true_lang-D8mev2ha.js +92 -0
  18. package/dist/DialogClose-BNlqG4G2.js +36 -0
  19. package/dist/DialogTitle-DXj0nkXn.js +522 -0
  20. package/dist/DialogTitle.vue_vue_type_script_setup_true_lang-Bw40D4AK.js +174 -0
  21. package/dist/DialogTrigger-CpyKnu11.js +52 -0
  22. package/dist/DialogTrigger.vue_vue_type_script_setup_true_lang-DLrFiCsw.js +141 -0
  23. package/dist/FocusScope-C3mcVwsf.js +454 -0
  24. package/dist/Input.vue_vue_type_script_setup_true_lang-U778IWa0.js +37 -0
  25. package/dist/Label.vue_vue_type_script_setup_true_lang-B_fwvfJ-.js +65 -0
  26. package/dist/MessageDialog-BrowppID.js +4 -0
  27. package/dist/MessageDialog.vue_vue_type_script_setup_true_lang-Ddih5Isd.js +242 -0
  28. package/dist/NativeSelectOption.vue_vue_type_script_setup_true_lang-DS87OTLT.js +73 -0
  29. package/dist/PopoverAnchor.vue_vue_type_script_setup_true_lang-CsfybvZp.js +61 -0
  30. package/dist/PopoverTrigger.vue_vue_type_script_setup_true_lang-KTcg6Jnl.js +798 -0
  31. package/dist/PopperContent-BiM0YLO3.js +2144 -0
  32. package/dist/Primitive-D3IcFg81.js +61 -0
  33. package/dist/SelectValue.vue_vue_type_script_setup_true_lang-DGAI4hw5.js +2124 -0
  34. package/dist/Separator-CFm_M4pb.js +87 -0
  35. package/dist/Separator.vue_vue_type_script_setup_true_lang-COrZ60NR.js +29 -0
  36. package/dist/SheetTitle.vue_vue_type_script_setup_true_lang-DLoXGMbx.js +175 -0
  37. package/dist/SheetTrigger.vue_vue_type_script_setup_true_lang-CE2XJNHy.js +62 -0
  38. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-BSbVyZz7.js +20 -0
  39. package/dist/Slider.vue_vue_type_script_setup_true_lang-D-cAN-4Q.js +802 -0
  40. package/dist/SliderFormComponent.vue_vue_type_script_setup_true_lang-KPzC_Lmr.js +59 -0
  41. package/dist/Switch.vue_vue_type_script_setup_true_lang-BWKCycMm.js +226 -0
  42. package/dist/SwitchFormComponent.vue_vue_type_script_setup_true_lang-XOBEs3pa.js +39 -0
  43. package/dist/Teleport-CuUn4UkG.js +493 -0
  44. package/dist/TooltipProvider.vue_vue_type_script_setup_true_lang-DwIfCQjY.js +28 -0
  45. package/dist/TooltipTrigger.vue_vue_type_script_setup_true_lang-BRyHTWgw.js +1117 -0
  46. package/dist/VisuallyHidden-udQT2Fmo.js +60 -0
  47. package/dist/VisuallyHiddenInput-DLAsRwUw.js +142 -0
  48. package/dist/_plugin-vue_export-helper-1tPrXgE0.js +10 -0
  49. package/dist/alert-dialog.d.ts +2 -0
  50. package/dist/alert-dialog.js +13 -0
  51. package/dist/alert.d.ts +2 -0
  52. package/dist/alert.js +76 -0
  53. package/dist/background-grid.d.ts +6 -0
  54. package/dist/background-grid.js +5 -0
  55. package/dist/busy-indicator.d.ts +2 -0
  56. package/dist/busy-indicator.js +6 -0
  57. package/dist/busy.d.ts +2 -0
  58. package/dist/busy.js +4 -0
  59. package/dist/button.d.ts +2 -0
  60. package/dist/button.js +63 -0
  61. package/dist/calendar.d.ts +2 -0
  62. package/dist/calendar.js +15 -0
  63. package/dist/card.d.ts +2 -0
  64. package/dist/card.js +11 -0
  65. package/dist/check-iejznCzf.js +11 -0
  66. package/dist/chevron-down-DP-oz-sL.js +13 -0
  67. package/dist/clamp-D5Ye0kJT.js +6 -0
  68. package/dist/command.d.ts +2 -0
  69. package/dist/command.js +1122 -0
  70. package/dist/components/background-grid/BackgroundGrid.vue.d.ts +2 -0
  71. package/dist/components/background-grid/index.d.ts +2 -0
  72. package/dist/components/busy-indicator/BusyIndicator.vue.d.ts +2 -0
  73. package/dist/components/busy-indicator/busy-indicator-state.d.ts +15 -0
  74. package/dist/components/busy-indicator/index.d.ts +3 -0
  75. package/dist/components/confirm-dialog/ConfirmDialog.vue.d.ts +2 -0
  76. package/dist/components/confirm-dialog/confirm-dialog-state.d.ts +37 -0
  77. package/dist/components/confirm-dialog/index.d.ts +3 -0
  78. package/dist/components/dashboard-shell/DashboardShell.vue.d.ts +54 -0
  79. package/dist/components/dashboard-shell/index.d.ts +2 -0
  80. package/dist/components/message-dialog/MessageDialog.vue.d.ts +2 -0
  81. package/dist/components/message-dialog/index.d.ts +3 -0
  82. package/dist/components/message-dialog/message-dialog-state.d.ts +28 -0
  83. package/dist/components/slider-form-component/SliderFormComponent.vue.d.ts +23 -0
  84. package/dist/components/slider-form-component/index.d.ts +2 -0
  85. package/dist/components/switch-form-component/SwitchFormComponent.vue.d.ts +12 -0
  86. package/dist/components/switch-form-component/index.d.ts +2 -0
  87. package/dist/components/ui/alert/Alert.vue.d.ts +23 -0
  88. package/dist/components/ui/alert/AlertDescription.vue.d.ts +21 -0
  89. package/dist/components/ui/alert/AlertTitle.vue.d.ts +21 -0
  90. package/dist/components/ui/alert/index.d.ts +8 -0
  91. package/dist/components/ui/alert-dialog/AlertDialog.vue.d.ts +25 -0
  92. package/dist/components/ui/alert-dialog/AlertDialogAction.vue.d.ts +22 -0
  93. package/dist/components/ui/alert-dialog/AlertDialogCancel.vue.d.ts +22 -0
  94. package/dist/components/ui/alert-dialog/AlertDialogContent.vue.d.ts +36 -0
  95. package/dist/components/ui/alert-dialog/AlertDialogDescription.vue.d.ts +22 -0
  96. package/dist/components/ui/alert-dialog/AlertDialogFooter.vue.d.ts +21 -0
  97. package/dist/components/ui/alert-dialog/AlertDialogHeader.vue.d.ts +21 -0
  98. package/dist/components/ui/alert-dialog/AlertDialogTitle.vue.d.ts +22 -0
  99. package/dist/components/ui/alert-dialog/AlertDialogTrigger.vue.d.ts +18 -0
  100. package/dist/components/ui/alert-dialog/index.d.ts +9 -0
  101. package/dist/components/ui/busy/Busy.vue.d.ts +27 -0
  102. package/dist/components/ui/busy/index.d.ts +1 -0
  103. package/dist/components/ui/button/Button.vue.d.ts +27 -0
  104. package/dist/components/ui/button/index.d.ts +7 -0
  105. package/dist/components/ui/calendar/Calendar.vue.d.ts +44 -0
  106. package/dist/components/ui/calendar/CalendarCell.vue.d.ts +22 -0
  107. package/dist/components/ui/calendar/CalendarCellTrigger.vue.d.ts +24 -0
  108. package/dist/components/ui/calendar/CalendarGrid.vue.d.ts +22 -0
  109. package/dist/components/ui/calendar/CalendarGridBody.vue.d.ts +18 -0
  110. package/dist/components/ui/calendar/CalendarGridHead.vue.d.ts +22 -0
  111. package/dist/components/ui/calendar/CalendarGridRow.vue.d.ts +22 -0
  112. package/dist/components/ui/calendar/CalendarHeadCell.vue.d.ts +22 -0
  113. package/dist/components/ui/calendar/CalendarHeader.vue.d.ts +22 -0
  114. package/dist/components/ui/calendar/CalendarHeading.vue.d.ts +28 -0
  115. package/dist/components/ui/calendar/CalendarNextButton.vue.d.ts +22 -0
  116. package/dist/components/ui/calendar/CalendarPrevButton.vue.d.ts +22 -0
  117. package/dist/components/ui/calendar/index.d.ts +13 -0
  118. package/dist/components/ui/card/Card.vue.d.ts +21 -0
  119. package/dist/components/ui/card/CardAction.vue.d.ts +21 -0
  120. package/dist/components/ui/card/CardContent.vue.d.ts +21 -0
  121. package/dist/components/ui/card/CardDescription.vue.d.ts +21 -0
  122. package/dist/components/ui/card/CardFooter.vue.d.ts +21 -0
  123. package/dist/components/ui/card/CardHeader.vue.d.ts +21 -0
  124. package/dist/components/ui/card/CardTitle.vue.d.ts +21 -0
  125. package/dist/components/ui/card/index.d.ts +7 -0
  126. package/dist/components/ui/command/Command.vue.d.ts +40 -0
  127. package/dist/components/ui/command/CommandDialog.vue.d.ts +32 -0
  128. package/dist/components/ui/command/CommandEmpty.vue.d.ts +22 -0
  129. package/dist/components/ui/command/CommandGroup.vue.d.ts +23 -0
  130. package/dist/components/ui/command/CommandInput.vue.d.ts +7 -0
  131. package/dist/components/ui/command/CommandItem.vue.d.ts +30 -0
  132. package/dist/components/ui/command/CommandList.vue.d.ts +22 -0
  133. package/dist/components/ui/command/CommandSeparator.vue.d.ts +22 -0
  134. package/dist/components/ui/command/CommandShortcut.vue.d.ts +21 -0
  135. package/dist/components/ui/command/index.d.ts +90 -0
  136. package/dist/components/ui/date-picker/DatePicker.vue.d.ts +19 -0
  137. package/dist/components/ui/date-picker/index.d.ts +2 -0
  138. package/dist/components/ui/dialog/Dialog.vue.d.ts +25 -0
  139. package/dist/components/ui/dialog/DialogClose.vue.d.ts +18 -0
  140. package/dist/components/ui/dialog/DialogContent.vue.d.ts +39 -0
  141. package/dist/components/ui/dialog/DialogDescription.vue.d.ts +22 -0
  142. package/dist/components/ui/dialog/DialogFooter.vue.d.ts +24 -0
  143. package/dist/components/ui/dialog/DialogHeader.vue.d.ts +21 -0
  144. package/dist/components/ui/dialog/DialogOverlay.vue.d.ts +22 -0
  145. package/dist/components/ui/dialog/DialogScrollContent.vue.d.ts +36 -0
  146. package/dist/components/ui/dialog/DialogTitle.vue.d.ts +22 -0
  147. package/dist/components/ui/dialog/DialogTrigger.vue.d.ts +18 -0
  148. package/dist/components/ui/dialog/index.d.ts +10 -0
  149. package/dist/components/ui/field/Field.vue.d.ts +23 -0
  150. package/dist/components/ui/field/FieldContent.vue.d.ts +21 -0
  151. package/dist/components/ui/field/FieldDescription.vue.d.ts +21 -0
  152. package/dist/components/ui/field/FieldError.vue.d.ts +24 -0
  153. package/dist/components/ui/field/FieldGroup.vue.d.ts +21 -0
  154. package/dist/components/ui/field/FieldLabel.vue.d.ts +21 -0
  155. package/dist/components/ui/field/FieldLegend.vue.d.ts +22 -0
  156. package/dist/components/ui/field/FieldSeparator.vue.d.ts +21 -0
  157. package/dist/components/ui/field/FieldSet.vue.d.ts +21 -0
  158. package/dist/components/ui/field/FieldTitle.vue.d.ts +21 -0
  159. package/dist/components/ui/field/index.d.ts +15 -0
  160. package/dist/components/ui/input/Input.vue.d.ts +12 -0
  161. package/dist/components/ui/input/index.d.ts +1 -0
  162. package/dist/components/ui/label/Label.vue.d.ts +22 -0
  163. package/dist/components/ui/label/index.d.ts +1 -0
  164. package/dist/components/ui/native-select/NativeSelect.vue.d.ts +27 -0
  165. package/dist/components/ui/native-select/NativeSelectOptGroup.vue.d.ts +21 -0
  166. package/dist/components/ui/native-select/NativeSelectOption.vue.d.ts +21 -0
  167. package/dist/components/ui/native-select/index.d.ts +3 -0
  168. package/dist/components/ui/popover/Popover.vue.d.ts +25 -0
  169. package/dist/components/ui/popover/PopoverAnchor.vue.d.ts +18 -0
  170. package/dist/components/ui/popover/PopoverContent.vue.d.ts +39 -0
  171. package/dist/components/ui/popover/PopoverTrigger.vue.d.ts +18 -0
  172. package/dist/components/ui/popover/index.d.ts +4 -0
  173. package/dist/components/ui/select/Select.vue.d.ts +28 -0
  174. package/dist/components/ui/select/SelectContent.vue.d.ts +32 -0
  175. package/dist/components/ui/select/SelectGroup.vue.d.ts +18 -0
  176. package/dist/components/ui/select/SelectItem.vue.d.ts +24 -0
  177. package/dist/components/ui/select/SelectItemText.vue.d.ts +18 -0
  178. package/dist/components/ui/select/SelectLabel.vue.d.ts +22 -0
  179. package/dist/components/ui/select/SelectScrollDownButton.vue.d.ts +22 -0
  180. package/dist/components/ui/select/SelectScrollUpButton.vue.d.ts +22 -0
  181. package/dist/components/ui/select/SelectSeparator.vue.d.ts +7 -0
  182. package/dist/components/ui/select/SelectTrigger.vue.d.ts +25 -0
  183. package/dist/components/ui/select/SelectValue.vue.d.ts +18 -0
  184. package/dist/components/ui/select/index.d.ts +11 -0
  185. package/dist/components/ui/separator/Separator.vue.d.ts +10 -0
  186. package/dist/components/ui/separator/index.d.ts +1 -0
  187. package/dist/components/ui/sheet/Sheet.vue.d.ts +25 -0
  188. package/dist/components/ui/sheet/SheetClose.vue.d.ts +18 -0
  189. package/dist/components/ui/sheet/SheetContent.vue.d.ts +39 -0
  190. package/dist/components/ui/sheet/SheetDescription.vue.d.ts +22 -0
  191. package/dist/components/ui/sheet/SheetFooter.vue.d.ts +21 -0
  192. package/dist/components/ui/sheet/SheetHeader.vue.d.ts +21 -0
  193. package/dist/components/ui/sheet/SheetOverlay.vue.d.ts +22 -0
  194. package/dist/components/ui/sheet/SheetTitle.vue.d.ts +22 -0
  195. package/dist/components/ui/sheet/SheetTrigger.vue.d.ts +18 -0
  196. package/dist/components/ui/sheet/index.d.ts +8 -0
  197. package/dist/components/ui/sidebar/Sidebar.vue.d.ts +24 -0
  198. package/dist/components/ui/sidebar/SidebarContent.vue.d.ts +21 -0
  199. package/dist/components/ui/sidebar/SidebarFooter.vue.d.ts +21 -0
  200. package/dist/components/ui/sidebar/SidebarGroup.vue.d.ts +21 -0
  201. package/dist/components/ui/sidebar/SidebarGroupAction.vue.d.ts +22 -0
  202. package/dist/components/ui/sidebar/SidebarGroupContent.vue.d.ts +21 -0
  203. package/dist/components/ui/sidebar/SidebarGroupLabel.vue.d.ts +22 -0
  204. package/dist/components/ui/sidebar/SidebarHeader.vue.d.ts +21 -0
  205. package/dist/components/ui/sidebar/SidebarInput.vue.d.ts +21 -0
  206. package/dist/components/ui/sidebar/SidebarInset.vue.d.ts +21 -0
  207. package/dist/components/ui/sidebar/SidebarMenu.vue.d.ts +21 -0
  208. package/dist/components/ui/sidebar/SidebarMenuAction.vue.d.ts +25 -0
  209. package/dist/components/ui/sidebar/SidebarMenuBadge.vue.d.ts +21 -0
  210. package/dist/components/ui/sidebar/SidebarMenuButton.vue.d.ts +27 -0
  211. package/dist/components/ui/sidebar/SidebarMenuButtonChild.vue.d.ts +30 -0
  212. package/dist/components/ui/sidebar/SidebarMenuItem.vue.d.ts +21 -0
  213. package/dist/components/ui/sidebar/SidebarMenuSkeleton.vue.d.ts +7 -0
  214. package/dist/components/ui/sidebar/SidebarMenuSub.vue.d.ts +21 -0
  215. package/dist/components/ui/sidebar/SidebarMenuSubButton.vue.d.ts +27 -0
  216. package/dist/components/ui/sidebar/SidebarMenuSubItem.vue.d.ts +21 -0
  217. package/dist/components/ui/sidebar/SidebarProvider.vue.d.ts +30 -0
  218. package/dist/components/ui/sidebar/SidebarRail.vue.d.ts +21 -0
  219. package/dist/components/ui/sidebar/SidebarSeparator.vue.d.ts +21 -0
  220. package/dist/components/ui/sidebar/SidebarTrigger.vue.d.ts +6 -0
  221. package/dist/components/ui/sidebar/index.d.ts +37 -0
  222. package/dist/components/ui/sidebar/utils.d.ts +56 -0
  223. package/dist/components/ui/skeleton/Skeleton.vue.d.ts +6 -0
  224. package/dist/components/ui/skeleton/index.d.ts +1 -0
  225. package/dist/components/ui/slider/Slider.vue.d.ts +13 -0
  226. package/dist/components/ui/slider/index.d.ts +1 -0
  227. package/dist/components/ui/switch/Switch.vue.d.ts +29 -0
  228. package/dist/components/ui/switch/index.d.ts +1 -0
  229. package/dist/components/ui/tooltip/Tooltip.vue.d.ts +24 -0
  230. package/dist/components/ui/tooltip/TooltipContent.vue.d.ts +30 -0
  231. package/dist/components/ui/tooltip/TooltipProvider.vue.d.ts +20 -0
  232. package/dist/components/ui/tooltip/TooltipTrigger.vue.d.ts +18 -0
  233. package/dist/components/ui/tooltip/index.d.ts +4 -0
  234. package/dist/confirm-dialog.d.ts +2 -0
  235. package/dist/confirm-dialog.js +9 -0
  236. package/dist/createLucideIcon-CCMB2vDW.js +130 -0
  237. package/dist/dashboard-shell.d.ts +6 -0
  238. package/dist/dashboard-shell.js +5 -0
  239. package/dist/date-picker.d.ts +6 -0
  240. package/dist/date-picker.js +5 -0
  241. package/dist/dialog.d.ts +2 -0
  242. package/dist/dialog.js +14 -0
  243. package/dist/field.d.ts +2 -0
  244. package/dist/field.js +294 -0
  245. package/dist/index-C1_fxYhb.js +251 -0
  246. package/dist/index-Dfi5ESP2.js +299 -0
  247. package/dist/index-FpH8cK6B.js +44 -0
  248. package/dist/index.d.ts +28 -0
  249. package/dist/index.js +171 -0
  250. package/dist/info-DZrSmi42.js +15 -0
  251. package/dist/input.d.ts +2 -0
  252. package/dist/input.js +4 -0
  253. package/dist/label.d.ts +2 -0
  254. package/dist/label.js +4 -0
  255. package/dist/lib/utils.d.ts +2 -0
  256. package/dist/message-dialog.d.ts +2 -0
  257. package/dist/message-dialog.js +8 -0
  258. package/dist/native-select.d.ts +2 -0
  259. package/dist/native-select.js +25 -0
  260. package/dist/popover.d.ts +2 -0
  261. package/dist/popover.js +8 -0
  262. package/dist/select.d.ts +2 -0
  263. package/dist/select.js +14 -0
  264. package/dist/separator.d.ts +2 -0
  265. package/dist/separator.js +4 -0
  266. package/dist/sheet.d.ts +2 -0
  267. package/dist/sheet.js +12 -0
  268. package/dist/sidebar.d.ts +2 -0
  269. package/dist/sidebar.js +813 -0
  270. package/dist/skeleton.d.ts +2 -0
  271. package/dist/skeleton.js +4 -0
  272. package/dist/slider-form-component.d.ts +6 -0
  273. package/dist/slider-form-component.js +5 -0
  274. package/dist/slider.d.ts +2 -0
  275. package/dist/slider.js +4 -0
  276. package/dist/style.css +4021 -0
  277. package/dist/switch-form-component.d.ts +6 -0
  278. package/dist/switch-form-component.js +5 -0
  279. package/dist/switch.d.ts +2 -0
  280. package/dist/switch.js +4 -0
  281. package/dist/tooltip.d.ts +2 -0
  282. package/dist/tooltip.js +8 -0
  283. package/dist/useDirection-SIyEYNxv.js +12 -0
  284. package/dist/useFocusGuards-tgErlvMF.js +29 -0
  285. package/dist/useFormControl-7ytzz-r7.js +11 -0
  286. package/dist/useForwardExpose-CNVHwdF2.js +58 -0
  287. package/dist/useForwardPropsEmits-DmumnZO5.js +63 -0
  288. package/dist/useKbd-JjFOu4f7.js +41 -0
  289. package/dist/usePrimitiveElement-CijaRBgF.js +16 -0
  290. package/dist/useSize-DO9Z3wC4.js +51 -0
  291. package/dist/useTypeahead-Dqe1QXq1.js +159 -0
  292. package/dist/utils-Bz4m9VPB.js +3192 -0
  293. package/dist/utils-RRmyeqLm.js +16 -0
  294. package/dist/utils.d.ts +2 -0
  295. package/dist/utils.js +4 -0
  296. package/dist/x-2_VzbDS9.js +48 -0
  297. package/package.json +186 -0
@@ -0,0 +1,3805 @@
1
+ import { ref, computed, watch, defineComponent, toRefs, onMounted, openBlock, createBlock, unref, withCtx, renderSlot, createElementVNode, toDisplayString, withKeys, withModifiers, createTextVNode, nextTick, mergeProps, normalizeProps, guardReactiveProps, toRaw, createElementBlock, Fragment, createVNode, renderList, isRef } from "vue";
2
+ import { u as useVModel, i as createReusableTemplate } from "./index-C1_fxYhb.js";
3
+ import { c as createContext, u as useForwardPropsEmits, a as useForwardProps } from "./useForwardPropsEmits-DmumnZO5.js";
4
+ import { c as cn } from "./utils-Bz4m9VPB.js";
5
+ import { _ as _sfc_main$c, a as _sfc_main$d } from "./NativeSelectOption.vue_vue_type_script_setup_true_lang-DS87OTLT.js";
6
+ import { r as reactiveOmit } from "./index-Dfi5ESP2.js";
7
+ import { buttonVariants } from "./button.js";
8
+ import { P as Primitive } from "./Primitive-D3IcFg81.js";
9
+ import { u as useKbd } from "./useKbd-JjFOu4f7.js";
10
+ import { u as usePrimitiveElement } from "./usePrimitiveElement-CijaRBgF.js";
11
+ import { c as createLucideIcon } from "./createLucideIcon-CCMB2vDW.js";
12
+ import { u as useDirection } from "./useDirection-SIyEYNxv.js";
13
+ import { i as injectConfigProviderContext } from "./ConfigProvider-D2O0Jles.js";
14
+ function $2b4dce13dd5a17fa$export$842a2cf37af977e1(amount, numerator) {
15
+ return amount - numerator * Math.floor(amount / numerator);
16
+ }
17
+ const $3b62074eb05584b2$var$EPOCH = 1721426;
18
+ function $3b62074eb05584b2$export$f297eb839006d339(era, year, month, day) {
19
+ year = $3b62074eb05584b2$export$c36e0ecb2d4fa69d(era, year);
20
+ let y1 = year - 1;
21
+ let monthOffset = -2;
22
+ if (month <= 2) monthOffset = 0;
23
+ else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year)) monthOffset = -1;
24
+ return $3b62074eb05584b2$var$EPOCH - 1 + 365 * y1 + Math.floor(y1 / 4) - Math.floor(y1 / 100) + Math.floor(y1 / 400) + Math.floor((367 * month - 362) / 12 + monthOffset + day);
25
+ }
26
+ function $3b62074eb05584b2$export$553d7fa8e3805fc0(year) {
27
+ return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
28
+ }
29
+ function $3b62074eb05584b2$export$c36e0ecb2d4fa69d(era, year) {
30
+ return era === "BC" ? 1 - year : year;
31
+ }
32
+ function $3b62074eb05584b2$export$4475b7e617eb123c(year) {
33
+ let era = "AD";
34
+ if (year <= 0) {
35
+ era = "BC";
36
+ year = 1 - year;
37
+ }
38
+ return [
39
+ era,
40
+ year
41
+ ];
42
+ }
43
+ const $3b62074eb05584b2$var$daysInMonth = {
44
+ standard: [
45
+ 31,
46
+ 28,
47
+ 31,
48
+ 30,
49
+ 31,
50
+ 30,
51
+ 31,
52
+ 31,
53
+ 30,
54
+ 31,
55
+ 30,
56
+ 31
57
+ ],
58
+ leapyear: [
59
+ 31,
60
+ 29,
61
+ 31,
62
+ 30,
63
+ 31,
64
+ 30,
65
+ 31,
66
+ 31,
67
+ 30,
68
+ 31,
69
+ 30,
70
+ 31
71
+ ]
72
+ };
73
+ class $3b62074eb05584b2$export$80ee6245ec4f29ec {
74
+ fromJulianDay(jd) {
75
+ let jd0 = jd;
76
+ let depoch = jd0 - $3b62074eb05584b2$var$EPOCH;
77
+ let quadricent = Math.floor(depoch / 146097);
78
+ let dqc = $2b4dce13dd5a17fa$export$842a2cf37af977e1(depoch, 146097);
79
+ let cent = Math.floor(dqc / 36524);
80
+ let dcent = $2b4dce13dd5a17fa$export$842a2cf37af977e1(dqc, 36524);
81
+ let quad = Math.floor(dcent / 1461);
82
+ let dquad = $2b4dce13dd5a17fa$export$842a2cf37af977e1(dcent, 1461);
83
+ let yindex = Math.floor(dquad / 365);
84
+ let extendedYear = quadricent * 400 + cent * 100 + quad * 4 + yindex + (cent !== 4 && yindex !== 4 ? 1 : 0);
85
+ let [era, year] = $3b62074eb05584b2$export$4475b7e617eb123c(extendedYear);
86
+ let yearDay = jd0 - $3b62074eb05584b2$export$f297eb839006d339(era, year, 1, 1);
87
+ let leapAdj = 2;
88
+ if (jd0 < $3b62074eb05584b2$export$f297eb839006d339(era, year, 3, 1)) leapAdj = 0;
89
+ else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year)) leapAdj = 1;
90
+ let month = Math.floor(((yearDay + leapAdj) * 12 + 373) / 367);
91
+ let day = jd0 - $3b62074eb05584b2$export$f297eb839006d339(era, year, month, 1) + 1;
92
+ return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(era, year, month, day);
93
+ }
94
+ toJulianDay(date) {
95
+ return $3b62074eb05584b2$export$f297eb839006d339(date.era, date.year, date.month, date.day);
96
+ }
97
+ getDaysInMonth(date) {
98
+ return $3b62074eb05584b2$var$daysInMonth[$3b62074eb05584b2$export$553d7fa8e3805fc0(date.year) ? "leapyear" : "standard"][date.month - 1];
99
+ }
100
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
101
+ getMonthsInYear(date) {
102
+ return 12;
103
+ }
104
+ getDaysInYear(date) {
105
+ return $3b62074eb05584b2$export$553d7fa8e3805fc0(date.year) ? 366 : 365;
106
+ }
107
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
108
+ getYearsInEra(date) {
109
+ return 9999;
110
+ }
111
+ getEras() {
112
+ return [
113
+ "BC",
114
+ "AD"
115
+ ];
116
+ }
117
+ isInverseEra(date) {
118
+ return date.era === "BC";
119
+ }
120
+ balanceDate(date) {
121
+ if (date.year <= 0) {
122
+ date.era = date.era === "BC" ? "AD" : "BC";
123
+ date.year = 1 - date.year;
124
+ }
125
+ }
126
+ constructor() {
127
+ this.identifier = "gregory";
128
+ }
129
+ }
130
+ const $2fe286d2fb449abb$export$7a5acbd77d414bd9 = {
131
+ "001": 1,
132
+ AD: 1,
133
+ AE: 6,
134
+ AF: 6,
135
+ AI: 1,
136
+ AL: 1,
137
+ AM: 1,
138
+ AN: 1,
139
+ AR: 1,
140
+ AT: 1,
141
+ AU: 1,
142
+ AX: 1,
143
+ AZ: 1,
144
+ BA: 1,
145
+ BE: 1,
146
+ BG: 1,
147
+ BH: 6,
148
+ BM: 1,
149
+ BN: 1,
150
+ BY: 1,
151
+ CH: 1,
152
+ CL: 1,
153
+ CM: 1,
154
+ CN: 1,
155
+ CR: 1,
156
+ CY: 1,
157
+ CZ: 1,
158
+ DE: 1,
159
+ DJ: 6,
160
+ DK: 1,
161
+ DZ: 6,
162
+ EC: 1,
163
+ EE: 1,
164
+ EG: 6,
165
+ ES: 1,
166
+ FI: 1,
167
+ FJ: 1,
168
+ FO: 1,
169
+ FR: 1,
170
+ GB: 1,
171
+ GE: 1,
172
+ GF: 1,
173
+ GP: 1,
174
+ GR: 1,
175
+ HR: 1,
176
+ HU: 1,
177
+ IE: 1,
178
+ IQ: 6,
179
+ IR: 6,
180
+ IS: 1,
181
+ IT: 1,
182
+ JO: 6,
183
+ KG: 1,
184
+ KW: 6,
185
+ KZ: 1,
186
+ LB: 1,
187
+ LI: 1,
188
+ LK: 1,
189
+ LT: 1,
190
+ LU: 1,
191
+ LV: 1,
192
+ LY: 6,
193
+ MC: 1,
194
+ MD: 1,
195
+ ME: 1,
196
+ MK: 1,
197
+ MN: 1,
198
+ MQ: 1,
199
+ MV: 5,
200
+ MY: 1,
201
+ NL: 1,
202
+ NO: 1,
203
+ NZ: 1,
204
+ OM: 6,
205
+ PL: 1,
206
+ QA: 6,
207
+ RE: 1,
208
+ RO: 1,
209
+ RS: 1,
210
+ RU: 1,
211
+ SD: 6,
212
+ SE: 1,
213
+ SI: 1,
214
+ SK: 1,
215
+ SM: 1,
216
+ SY: 6,
217
+ TJ: 1,
218
+ TM: 1,
219
+ TR: 1,
220
+ UA: 1,
221
+ UY: 1,
222
+ UZ: 1,
223
+ VA: 1,
224
+ VN: 1,
225
+ XK: 1
226
+ };
227
+ function $14e0f24ef4ac5c92$export$ea39ec197993aef0(a, b) {
228
+ b = $11d87f3f76e88657$export$b4a036af3fc0b032(b, a.calendar);
229
+ return a.era === b.era && a.year === b.year && a.month === b.month && a.day === b.day;
230
+ }
231
+ function $14e0f24ef4ac5c92$export$a18c89cbd24170ff(a, b) {
232
+ b = $11d87f3f76e88657$export$b4a036af3fc0b032(b, a.calendar);
233
+ a = $14e0f24ef4ac5c92$export$a5a3b454ada2268e(a);
234
+ b = $14e0f24ef4ac5c92$export$a5a3b454ada2268e(b);
235
+ return a.era === b.era && a.year === b.year && a.month === b.month;
236
+ }
237
+ function $14e0f24ef4ac5c92$export$91b62ebf2ba703ee(a, b) {
238
+ return $14e0f24ef4ac5c92$export$dbc69fd56b53d5e(a.calendar, b.calendar) && $14e0f24ef4ac5c92$export$ea39ec197993aef0(a, b);
239
+ }
240
+ function $14e0f24ef4ac5c92$export$5a8da0c44a3afdf2(a, b) {
241
+ return $14e0f24ef4ac5c92$export$dbc69fd56b53d5e(a.calendar, b.calendar) && $14e0f24ef4ac5c92$export$a18c89cbd24170ff(a, b);
242
+ }
243
+ function $14e0f24ef4ac5c92$export$dbc69fd56b53d5e(a, b) {
244
+ var _a_isEqual, _b_isEqual;
245
+ var _a_isEqual1, _ref;
246
+ return (_ref = (_a_isEqual1 = (_a_isEqual = a.isEqual) === null || _a_isEqual === void 0 ? void 0 : _a_isEqual.call(a, b)) !== null && _a_isEqual1 !== void 0 ? _a_isEqual1 : (_b_isEqual = b.isEqual) === null || _b_isEqual === void 0 ? void 0 : _b_isEqual.call(b, a)) !== null && _ref !== void 0 ? _ref : a.identifier === b.identifier;
247
+ }
248
+ function $14e0f24ef4ac5c92$export$629b0a497aa65267(date, timeZone) {
249
+ return $14e0f24ef4ac5c92$export$ea39ec197993aef0(date, $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(timeZone));
250
+ }
251
+ const $14e0f24ef4ac5c92$var$DAY_MAP = {
252
+ sun: 0,
253
+ mon: 1,
254
+ tue: 2,
255
+ wed: 3,
256
+ thu: 4,
257
+ fri: 5,
258
+ sat: 6
259
+ };
260
+ function $14e0f24ef4ac5c92$export$2061056d06d7cdf7(date, locale, firstDayOfWeek) {
261
+ let julian = date.calendar.toJulianDay(date);
262
+ let weekStart = firstDayOfWeek ? $14e0f24ef4ac5c92$var$DAY_MAP[firstDayOfWeek] : $14e0f24ef4ac5c92$var$getWeekStart(locale);
263
+ let dayOfWeek = Math.ceil(julian + 1 - weekStart) % 7;
264
+ if (dayOfWeek < 0) dayOfWeek += 7;
265
+ return dayOfWeek;
266
+ }
267
+ function $14e0f24ef4ac5c92$export$461939dd4422153(timeZone) {
268
+ return $11d87f3f76e88657$export$1b96692a1ba042ac(Date.now(), timeZone);
269
+ }
270
+ function $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(timeZone) {
271
+ return $11d87f3f76e88657$export$93522d1a439f3617($14e0f24ef4ac5c92$export$461939dd4422153(timeZone));
272
+ }
273
+ function $14e0f24ef4ac5c92$export$68781ddf31c0090f(a, b) {
274
+ return a.calendar.toJulianDay(a) - b.calendar.toJulianDay(b);
275
+ }
276
+ function $14e0f24ef4ac5c92$export$c19a80a9721b80f6(a, b) {
277
+ return $14e0f24ef4ac5c92$var$timeToMs(a) - $14e0f24ef4ac5c92$var$timeToMs(b);
278
+ }
279
+ function $14e0f24ef4ac5c92$var$timeToMs(a) {
280
+ return a.hour * 36e5 + a.minute * 6e4 + a.second * 1e3 + a.millisecond;
281
+ }
282
+ let $14e0f24ef4ac5c92$var$localTimeZone = null;
283
+ function $14e0f24ef4ac5c92$export$aa8b41735afcabd2() {
284
+ if ($14e0f24ef4ac5c92$var$localTimeZone == null) $14e0f24ef4ac5c92$var$localTimeZone = new Intl.DateTimeFormat().resolvedOptions().timeZone;
285
+ return $14e0f24ef4ac5c92$var$localTimeZone;
286
+ }
287
+ function $14e0f24ef4ac5c92$export$a5a3b454ada2268e(date) {
288
+ return date.subtract({
289
+ days: date.day - 1
290
+ });
291
+ }
292
+ function $14e0f24ef4ac5c92$export$a2258d9c4118825c(date) {
293
+ return date.add({
294
+ days: date.calendar.getDaysInMonth(date) - date.day
295
+ });
296
+ }
297
+ function $14e0f24ef4ac5c92$export$f91e89d3d0406102(date) {
298
+ return $14e0f24ef4ac5c92$export$a5a3b454ada2268e(date.subtract({
299
+ months: date.month - 1
300
+ }));
301
+ }
302
+ const $14e0f24ef4ac5c92$var$cachedRegions = /* @__PURE__ */ new Map();
303
+ const $14e0f24ef4ac5c92$var$cachedWeekInfo = /* @__PURE__ */ new Map();
304
+ function $14e0f24ef4ac5c92$var$getRegion(locale) {
305
+ if (Intl.Locale) {
306
+ let region = $14e0f24ef4ac5c92$var$cachedRegions.get(locale);
307
+ if (!region) {
308
+ region = new Intl.Locale(locale).maximize().region;
309
+ if (region) $14e0f24ef4ac5c92$var$cachedRegions.set(locale, region);
310
+ }
311
+ return region;
312
+ }
313
+ let part = locale.split("-")[1];
314
+ return part === "u" ? void 0 : part;
315
+ }
316
+ function $14e0f24ef4ac5c92$var$getWeekStart(locale) {
317
+ let weekInfo = $14e0f24ef4ac5c92$var$cachedWeekInfo.get(locale);
318
+ if (!weekInfo) {
319
+ if (Intl.Locale) {
320
+ let localeInst = new Intl.Locale(locale);
321
+ if ("getWeekInfo" in localeInst) {
322
+ weekInfo = localeInst.getWeekInfo();
323
+ if (weekInfo) {
324
+ $14e0f24ef4ac5c92$var$cachedWeekInfo.set(locale, weekInfo);
325
+ return weekInfo.firstDay;
326
+ }
327
+ }
328
+ }
329
+ let region = $14e0f24ef4ac5c92$var$getRegion(locale);
330
+ if (locale.includes("-fw-")) {
331
+ let day = locale.split("-fw-")[1].split("-")[0];
332
+ if (day === "mon") weekInfo = {
333
+ firstDay: 1
334
+ };
335
+ else if (day === "tue") weekInfo = {
336
+ firstDay: 2
337
+ };
338
+ else if (day === "wed") weekInfo = {
339
+ firstDay: 3
340
+ };
341
+ else if (day === "thu") weekInfo = {
342
+ firstDay: 4
343
+ };
344
+ else if (day === "fri") weekInfo = {
345
+ firstDay: 5
346
+ };
347
+ else if (day === "sat") weekInfo = {
348
+ firstDay: 6
349
+ };
350
+ else weekInfo = {
351
+ firstDay: 0
352
+ };
353
+ } else if (locale.includes("-ca-iso8601")) weekInfo = {
354
+ firstDay: 1
355
+ };
356
+ else weekInfo = {
357
+ firstDay: region ? $2fe286d2fb449abb$export$7a5acbd77d414bd9[region] || 0 : 0
358
+ };
359
+ $14e0f24ef4ac5c92$var$cachedWeekInfo.set(locale, weekInfo);
360
+ }
361
+ return weekInfo.firstDay;
362
+ }
363
+ function $11d87f3f76e88657$export$bd4fb2bc8bb06fb(date) {
364
+ date = $11d87f3f76e88657$export$b4a036af3fc0b032(date, new $3b62074eb05584b2$export$80ee6245ec4f29ec());
365
+ let year = $3b62074eb05584b2$export$c36e0ecb2d4fa69d(date.era, date.year);
366
+ return $11d87f3f76e88657$var$epochFromParts(year, date.month, date.day, date.hour, date.minute, date.second, date.millisecond);
367
+ }
368
+ function $11d87f3f76e88657$var$epochFromParts(year, month, day, hour, minute, second, millisecond) {
369
+ let date = /* @__PURE__ */ new Date();
370
+ date.setUTCHours(hour, minute, second, millisecond);
371
+ date.setUTCFullYear(year, month - 1, day);
372
+ return date.getTime();
373
+ }
374
+ function $11d87f3f76e88657$export$59c99f3515d3493f(ms, timeZone) {
375
+ if (timeZone === "UTC") return 0;
376
+ if (ms > 0 && timeZone === $14e0f24ef4ac5c92$export$aa8b41735afcabd2()) return new Date(ms).getTimezoneOffset() * -6e4;
377
+ let { year, month, day, hour, minute, second } = $11d87f3f76e88657$var$getTimeZoneParts(ms, timeZone);
378
+ let utc = $11d87f3f76e88657$var$epochFromParts(year, month, day, hour, minute, second, 0);
379
+ return utc - Math.floor(ms / 1e3) * 1e3;
380
+ }
381
+ const $11d87f3f76e88657$var$formattersByTimeZone = /* @__PURE__ */ new Map();
382
+ function $11d87f3f76e88657$var$getTimeZoneParts(ms, timeZone) {
383
+ let formatter = $11d87f3f76e88657$var$formattersByTimeZone.get(timeZone);
384
+ if (!formatter) {
385
+ formatter = new Intl.DateTimeFormat("en-US", {
386
+ timeZone,
387
+ hour12: false,
388
+ era: "short",
389
+ year: "numeric",
390
+ month: "numeric",
391
+ day: "numeric",
392
+ hour: "numeric",
393
+ minute: "numeric",
394
+ second: "numeric"
395
+ });
396
+ $11d87f3f76e88657$var$formattersByTimeZone.set(timeZone, formatter);
397
+ }
398
+ let parts = formatter.formatToParts(new Date(ms));
399
+ let namedParts = {};
400
+ for (let part of parts) if (part.type !== "literal") namedParts[part.type] = part.value;
401
+ return {
402
+ // Firefox returns B instead of BC... https://bugzilla.mozilla.org/show_bug.cgi?id=1752253
403
+ year: namedParts.era === "BC" || namedParts.era === "B" ? -namedParts.year + 1 : +namedParts.year,
404
+ month: +namedParts.month,
405
+ day: +namedParts.day,
406
+ hour: namedParts.hour === "24" ? 0 : +namedParts.hour,
407
+ minute: +namedParts.minute,
408
+ second: +namedParts.second
409
+ };
410
+ }
411
+ const $11d87f3f76e88657$var$DAYMILLIS = 864e5;
412
+ function $11d87f3f76e88657$var$getValidWallTimes(date, timeZone, earlier, later) {
413
+ let found = earlier === later ? [
414
+ earlier
415
+ ] : [
416
+ earlier,
417
+ later
418
+ ];
419
+ return found.filter((absolute) => $11d87f3f76e88657$var$isValidWallTime(date, timeZone, absolute));
420
+ }
421
+ function $11d87f3f76e88657$var$isValidWallTime(date, timeZone, absolute) {
422
+ let parts = $11d87f3f76e88657$var$getTimeZoneParts(absolute, timeZone);
423
+ return date.year === parts.year && date.month === parts.month && date.day === parts.day && date.hour === parts.hour && date.minute === parts.minute && date.second === parts.second;
424
+ }
425
+ function $11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguation = "compatible") {
426
+ let dateTime = $11d87f3f76e88657$export$b21e0b124e224484(date);
427
+ if (timeZone === "UTC") return $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime);
428
+ if (timeZone === $14e0f24ef4ac5c92$export$aa8b41735afcabd2() && disambiguation === "compatible") {
429
+ dateTime = $11d87f3f76e88657$export$b4a036af3fc0b032(dateTime, new $3b62074eb05584b2$export$80ee6245ec4f29ec());
430
+ let date2 = /* @__PURE__ */ new Date();
431
+ let year = $3b62074eb05584b2$export$c36e0ecb2d4fa69d(dateTime.era, dateTime.year);
432
+ date2.setFullYear(year, dateTime.month - 1, dateTime.day);
433
+ date2.setHours(dateTime.hour, dateTime.minute, dateTime.second, dateTime.millisecond);
434
+ return date2.getTime();
435
+ }
436
+ let ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime);
437
+ let offsetBefore = $11d87f3f76e88657$export$59c99f3515d3493f(ms - $11d87f3f76e88657$var$DAYMILLIS, timeZone);
438
+ let offsetAfter = $11d87f3f76e88657$export$59c99f3515d3493f(ms + $11d87f3f76e88657$var$DAYMILLIS, timeZone);
439
+ let valid = $11d87f3f76e88657$var$getValidWallTimes(dateTime, timeZone, ms - offsetBefore, ms - offsetAfter);
440
+ if (valid.length === 1) return valid[0];
441
+ if (valid.length > 1) switch (disambiguation) {
442
+ case "compatible":
443
+ case "earlier":
444
+ return valid[0];
445
+ case "later":
446
+ return valid[valid.length - 1];
447
+ case "reject":
448
+ throw new RangeError("Multiple possible absolute times found");
449
+ }
450
+ switch (disambiguation) {
451
+ case "earlier":
452
+ return Math.min(ms - offsetBefore, ms - offsetAfter);
453
+ case "compatible":
454
+ case "later":
455
+ return Math.max(ms - offsetBefore, ms - offsetAfter);
456
+ case "reject":
457
+ throw new RangeError("No such absolute time found");
458
+ }
459
+ }
460
+ function $11d87f3f76e88657$export$e67a095c620b86fe(dateTime, timeZone, disambiguation = "compatible") {
461
+ return new Date($11d87f3f76e88657$export$5107c82f94518f5c(dateTime, timeZone, disambiguation));
462
+ }
463
+ function $11d87f3f76e88657$export$1b96692a1ba042ac(ms, timeZone) {
464
+ let offset = $11d87f3f76e88657$export$59c99f3515d3493f(ms, timeZone);
465
+ let date = new Date(ms + offset);
466
+ let year = date.getUTCFullYear();
467
+ let month = date.getUTCMonth() + 1;
468
+ let day = date.getUTCDate();
469
+ let hour = date.getUTCHours();
470
+ let minute = date.getUTCMinutes();
471
+ let second = date.getUTCSeconds();
472
+ let millisecond = date.getUTCMilliseconds();
473
+ return new $35ea8db9cb2ccb90$export$d3b7288e7994edea(year < 1 ? "BC" : "AD", year < 1 ? -year + 1 : year, month, day, timeZone, offset, hour, minute, second, millisecond);
474
+ }
475
+ function $11d87f3f76e88657$export$93522d1a439f3617(dateTime) {
476
+ return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(dateTime.calendar, dateTime.era, dateTime.year, dateTime.month, dateTime.day);
477
+ }
478
+ function $11d87f3f76e88657$export$b21e0b124e224484(date, time) {
479
+ let hour = 0, minute = 0, second = 0, millisecond = 0;
480
+ if ("timeZone" in date) ({ hour, minute, second, millisecond } = date);
481
+ else if ("hour" in date && !time) return date;
482
+ if (time) ({ hour, minute, second, millisecond } = time);
483
+ return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(date.calendar, date.era, date.year, date.month, date.day, hour, minute, second, millisecond);
484
+ }
485
+ function $11d87f3f76e88657$export$b4a036af3fc0b032(date, calendar) {
486
+ if ($14e0f24ef4ac5c92$export$dbc69fd56b53d5e(date.calendar, calendar)) return date;
487
+ let calendarDate = calendar.fromJulianDay(date.calendar.toJulianDay(date));
488
+ let copy = date.copy();
489
+ copy.calendar = calendar;
490
+ copy.era = calendarDate.era;
491
+ copy.year = calendarDate.year;
492
+ copy.month = calendarDate.month;
493
+ copy.day = calendarDate.day;
494
+ $735220c2d4774dd3$export$c4e2ecac49351ef2(copy);
495
+ return copy;
496
+ }
497
+ function $11d87f3f76e88657$export$84c95a83c799e074(date, timeZone, disambiguation) {
498
+ if (date instanceof $35ea8db9cb2ccb90$export$d3b7288e7994edea) {
499
+ if (date.timeZone === timeZone) return date;
500
+ return $11d87f3f76e88657$export$538b00033cc11c75(date, timeZone);
501
+ }
502
+ let ms = $11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguation);
503
+ return $11d87f3f76e88657$export$1b96692a1ba042ac(ms, timeZone);
504
+ }
505
+ function $11d87f3f76e88657$export$83aac07b4c37b25(date) {
506
+ let ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(date) - date.offset;
507
+ return new Date(ms);
508
+ }
509
+ function $11d87f3f76e88657$export$538b00033cc11c75(date, timeZone) {
510
+ let ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(date) - date.offset;
511
+ return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac(ms, timeZone), date.calendar);
512
+ }
513
+ const $735220c2d4774dd3$var$ONE_HOUR = 36e5;
514
+ function $735220c2d4774dd3$export$e16d8520af44a096(date, duration) {
515
+ let mutableDate = date.copy();
516
+ let days = "hour" in mutableDate ? $735220c2d4774dd3$var$addTimeFields(mutableDate, duration) : 0;
517
+ $735220c2d4774dd3$var$addYears(mutableDate, duration.years || 0);
518
+ if (mutableDate.calendar.balanceYearMonth) mutableDate.calendar.balanceYearMonth(mutableDate, date);
519
+ mutableDate.month += duration.months || 0;
520
+ $735220c2d4774dd3$var$balanceYearMonth(mutableDate);
521
+ $735220c2d4774dd3$var$constrainMonthDay(mutableDate);
522
+ mutableDate.day += (duration.weeks || 0) * 7;
523
+ mutableDate.day += duration.days || 0;
524
+ mutableDate.day += days;
525
+ $735220c2d4774dd3$var$balanceDay(mutableDate);
526
+ if (mutableDate.calendar.balanceDate) mutableDate.calendar.balanceDate(mutableDate);
527
+ if (mutableDate.year < 1) {
528
+ mutableDate.year = 1;
529
+ mutableDate.month = 1;
530
+ mutableDate.day = 1;
531
+ }
532
+ let maxYear = mutableDate.calendar.getYearsInEra(mutableDate);
533
+ if (mutableDate.year > maxYear) {
534
+ var _mutableDate_calendar_isInverseEra, _mutableDate_calendar;
535
+ let isInverseEra = (_mutableDate_calendar_isInverseEra = (_mutableDate_calendar = mutableDate.calendar).isInverseEra) === null || _mutableDate_calendar_isInverseEra === void 0 ? void 0 : _mutableDate_calendar_isInverseEra.call(_mutableDate_calendar, mutableDate);
536
+ mutableDate.year = maxYear;
537
+ mutableDate.month = isInverseEra ? 1 : mutableDate.calendar.getMonthsInYear(mutableDate);
538
+ mutableDate.day = isInverseEra ? 1 : mutableDate.calendar.getDaysInMonth(mutableDate);
539
+ }
540
+ if (mutableDate.month < 1) {
541
+ mutableDate.month = 1;
542
+ mutableDate.day = 1;
543
+ }
544
+ let maxMonth = mutableDate.calendar.getMonthsInYear(mutableDate);
545
+ if (mutableDate.month > maxMonth) {
546
+ mutableDate.month = maxMonth;
547
+ mutableDate.day = mutableDate.calendar.getDaysInMonth(mutableDate);
548
+ }
549
+ mutableDate.day = Math.max(1, Math.min(mutableDate.calendar.getDaysInMonth(mutableDate), mutableDate.day));
550
+ return mutableDate;
551
+ }
552
+ function $735220c2d4774dd3$var$addYears(date, years) {
553
+ var _date_calendar_isInverseEra, _date_calendar;
554
+ if ((_date_calendar_isInverseEra = (_date_calendar = date.calendar).isInverseEra) === null || _date_calendar_isInverseEra === void 0 ? void 0 : _date_calendar_isInverseEra.call(_date_calendar, date)) years = -years;
555
+ date.year += years;
556
+ }
557
+ function $735220c2d4774dd3$var$balanceYearMonth(date) {
558
+ while (date.month < 1) {
559
+ $735220c2d4774dd3$var$addYears(date, -1);
560
+ date.month += date.calendar.getMonthsInYear(date);
561
+ }
562
+ let monthsInYear = 0;
563
+ while (date.month > (monthsInYear = date.calendar.getMonthsInYear(date))) {
564
+ date.month -= monthsInYear;
565
+ $735220c2d4774dd3$var$addYears(date, 1);
566
+ }
567
+ }
568
+ function $735220c2d4774dd3$var$balanceDay(date) {
569
+ while (date.day < 1) {
570
+ date.month--;
571
+ $735220c2d4774dd3$var$balanceYearMonth(date);
572
+ date.day += date.calendar.getDaysInMonth(date);
573
+ }
574
+ while (date.day > date.calendar.getDaysInMonth(date)) {
575
+ date.day -= date.calendar.getDaysInMonth(date);
576
+ date.month++;
577
+ $735220c2d4774dd3$var$balanceYearMonth(date);
578
+ }
579
+ }
580
+ function $735220c2d4774dd3$var$constrainMonthDay(date) {
581
+ date.month = Math.max(1, Math.min(date.calendar.getMonthsInYear(date), date.month));
582
+ date.day = Math.max(1, Math.min(date.calendar.getDaysInMonth(date), date.day));
583
+ }
584
+ function $735220c2d4774dd3$export$c4e2ecac49351ef2(date) {
585
+ if (date.calendar.constrainDate) date.calendar.constrainDate(date);
586
+ date.year = Math.max(1, Math.min(date.calendar.getYearsInEra(date), date.year));
587
+ $735220c2d4774dd3$var$constrainMonthDay(date);
588
+ }
589
+ function $735220c2d4774dd3$export$3e2544e88a25bff8(duration) {
590
+ let inverseDuration = {};
591
+ for (let key in duration) if (typeof duration[key] === "number") inverseDuration[key] = -duration[key];
592
+ return inverseDuration;
593
+ }
594
+ function $735220c2d4774dd3$export$4e2d2ead65e5f7e3(date, duration) {
595
+ return $735220c2d4774dd3$export$e16d8520af44a096(date, $735220c2d4774dd3$export$3e2544e88a25bff8(duration));
596
+ }
597
+ function $735220c2d4774dd3$export$adaa4cf7ef1b65be(date, fields) {
598
+ let mutableDate = date.copy();
599
+ if (fields.era != null) mutableDate.era = fields.era;
600
+ if (fields.year != null) mutableDate.year = fields.year;
601
+ if (fields.month != null) mutableDate.month = fields.month;
602
+ if (fields.day != null) mutableDate.day = fields.day;
603
+ $735220c2d4774dd3$export$c4e2ecac49351ef2(mutableDate);
604
+ return mutableDate;
605
+ }
606
+ function $735220c2d4774dd3$export$e5d5e1c1822b6e56(value, fields) {
607
+ let mutableValue = value.copy();
608
+ if (fields.hour != null) mutableValue.hour = fields.hour;
609
+ if (fields.minute != null) mutableValue.minute = fields.minute;
610
+ if (fields.second != null) mutableValue.second = fields.second;
611
+ if (fields.millisecond != null) mutableValue.millisecond = fields.millisecond;
612
+ $735220c2d4774dd3$export$7555de1e070510cb(mutableValue);
613
+ return mutableValue;
614
+ }
615
+ function $735220c2d4774dd3$var$balanceTime(time) {
616
+ time.second += Math.floor(time.millisecond / 1e3);
617
+ time.millisecond = $735220c2d4774dd3$var$nonNegativeMod(time.millisecond, 1e3);
618
+ time.minute += Math.floor(time.second / 60);
619
+ time.second = $735220c2d4774dd3$var$nonNegativeMod(time.second, 60);
620
+ time.hour += Math.floor(time.minute / 60);
621
+ time.minute = $735220c2d4774dd3$var$nonNegativeMod(time.minute, 60);
622
+ let days = Math.floor(time.hour / 24);
623
+ time.hour = $735220c2d4774dd3$var$nonNegativeMod(time.hour, 24);
624
+ return days;
625
+ }
626
+ function $735220c2d4774dd3$export$7555de1e070510cb(time) {
627
+ time.millisecond = Math.max(0, Math.min(time.millisecond, 1e3));
628
+ time.second = Math.max(0, Math.min(time.second, 59));
629
+ time.minute = Math.max(0, Math.min(time.minute, 59));
630
+ time.hour = Math.max(0, Math.min(time.hour, 23));
631
+ }
632
+ function $735220c2d4774dd3$var$nonNegativeMod(a, b) {
633
+ let result = a % b;
634
+ if (result < 0) result += b;
635
+ return result;
636
+ }
637
+ function $735220c2d4774dd3$var$addTimeFields(time, duration) {
638
+ time.hour += duration.hours || 0;
639
+ time.minute += duration.minutes || 0;
640
+ time.second += duration.seconds || 0;
641
+ time.millisecond += duration.milliseconds || 0;
642
+ return $735220c2d4774dd3$var$balanceTime(time);
643
+ }
644
+ function $735220c2d4774dd3$export$d52ced6badfb9a4c(value, field, amount, options) {
645
+ let mutable = value.copy();
646
+ switch (field) {
647
+ case "era": {
648
+ let eras = value.calendar.getEras();
649
+ let eraIndex = eras.indexOf(value.era);
650
+ if (eraIndex < 0) throw new Error("Invalid era: " + value.era);
651
+ eraIndex = $735220c2d4774dd3$var$cycleValue(eraIndex, amount, 0, eras.length - 1, options === null || options === void 0 ? void 0 : options.round);
652
+ mutable.era = eras[eraIndex];
653
+ $735220c2d4774dd3$export$c4e2ecac49351ef2(mutable);
654
+ break;
655
+ }
656
+ case "year":
657
+ var _mutable_calendar_isInverseEra, _mutable_calendar;
658
+ if ((_mutable_calendar_isInverseEra = (_mutable_calendar = mutable.calendar).isInverseEra) === null || _mutable_calendar_isInverseEra === void 0 ? void 0 : _mutable_calendar_isInverseEra.call(_mutable_calendar, mutable)) amount = -amount;
659
+ mutable.year = $735220c2d4774dd3$var$cycleValue(value.year, amount, -Infinity, 9999, options === null || options === void 0 ? void 0 : options.round);
660
+ if (mutable.year === -Infinity) mutable.year = 1;
661
+ if (mutable.calendar.balanceYearMonth) mutable.calendar.balanceYearMonth(mutable, value);
662
+ break;
663
+ case "month":
664
+ mutable.month = $735220c2d4774dd3$var$cycleValue(value.month, amount, 1, value.calendar.getMonthsInYear(value), options === null || options === void 0 ? void 0 : options.round);
665
+ break;
666
+ case "day":
667
+ mutable.day = $735220c2d4774dd3$var$cycleValue(value.day, amount, 1, value.calendar.getDaysInMonth(value), options === null || options === void 0 ? void 0 : options.round);
668
+ break;
669
+ default:
670
+ throw new Error("Unsupported field " + field);
671
+ }
672
+ if (value.calendar.balanceDate) value.calendar.balanceDate(mutable);
673
+ $735220c2d4774dd3$export$c4e2ecac49351ef2(mutable);
674
+ return mutable;
675
+ }
676
+ function $735220c2d4774dd3$export$dd02b3e0007dfe28(value, field, amount, options) {
677
+ let mutable = value.copy();
678
+ switch (field) {
679
+ case "hour": {
680
+ let hours = value.hour;
681
+ let min = 0;
682
+ let max = 23;
683
+ if ((options === null || options === void 0 ? void 0 : options.hourCycle) === 12) {
684
+ let isPM = hours >= 12;
685
+ min = isPM ? 12 : 0;
686
+ max = isPM ? 23 : 11;
687
+ }
688
+ mutable.hour = $735220c2d4774dd3$var$cycleValue(hours, amount, min, max, options === null || options === void 0 ? void 0 : options.round);
689
+ break;
690
+ }
691
+ case "minute":
692
+ mutable.minute = $735220c2d4774dd3$var$cycleValue(value.minute, amount, 0, 59, options === null || options === void 0 ? void 0 : options.round);
693
+ break;
694
+ case "second":
695
+ mutable.second = $735220c2d4774dd3$var$cycleValue(value.second, amount, 0, 59, options === null || options === void 0 ? void 0 : options.round);
696
+ break;
697
+ case "millisecond":
698
+ mutable.millisecond = $735220c2d4774dd3$var$cycleValue(value.millisecond, amount, 0, 999, options === null || options === void 0 ? void 0 : options.round);
699
+ break;
700
+ default:
701
+ throw new Error("Unsupported field " + field);
702
+ }
703
+ return mutable;
704
+ }
705
+ function $735220c2d4774dd3$var$cycleValue(value, amount, min, max, round = false) {
706
+ if (round) {
707
+ value += Math.sign(amount);
708
+ if (value < min) value = max;
709
+ let div = Math.abs(amount);
710
+ if (amount > 0) value = Math.ceil(value / div) * div;
711
+ else value = Math.floor(value / div) * div;
712
+ if (value > max) value = min;
713
+ } else {
714
+ value += amount;
715
+ if (value < min) value = max - (min - value - 1);
716
+ else if (value > max) value = min + (value - max - 1);
717
+ }
718
+ return value;
719
+ }
720
+ function $735220c2d4774dd3$export$96b1d28349274637(dateTime, duration) {
721
+ let ms;
722
+ if (duration.years != null && duration.years !== 0 || duration.months != null && duration.months !== 0 || duration.weeks != null && duration.weeks !== 0 || duration.days != null && duration.days !== 0) {
723
+ let res2 = $735220c2d4774dd3$export$e16d8520af44a096($11d87f3f76e88657$export$b21e0b124e224484(dateTime), {
724
+ years: duration.years,
725
+ months: duration.months,
726
+ weeks: duration.weeks,
727
+ days: duration.days
728
+ });
729
+ ms = $11d87f3f76e88657$export$5107c82f94518f5c(res2, dateTime.timeZone);
730
+ } else
731
+ ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime) - dateTime.offset;
732
+ ms += duration.milliseconds || 0;
733
+ ms += (duration.seconds || 0) * 1e3;
734
+ ms += (duration.minutes || 0) * 6e4;
735
+ ms += (duration.hours || 0) * 36e5;
736
+ let res = $11d87f3f76e88657$export$1b96692a1ba042ac(ms, dateTime.timeZone);
737
+ return $11d87f3f76e88657$export$b4a036af3fc0b032(res, dateTime.calendar);
738
+ }
739
+ function $735220c2d4774dd3$export$6814caac34ca03c7(dateTime, duration) {
740
+ return $735220c2d4774dd3$export$96b1d28349274637(dateTime, $735220c2d4774dd3$export$3e2544e88a25bff8(duration));
741
+ }
742
+ function $735220c2d4774dd3$export$9a297d111fc86b79(dateTime, field, amount, options) {
743
+ switch (field) {
744
+ case "hour": {
745
+ let min = 0;
746
+ let max = 23;
747
+ if ((options === null || options === void 0 ? void 0 : options.hourCycle) === 12) {
748
+ let isPM = dateTime.hour >= 12;
749
+ min = isPM ? 12 : 0;
750
+ max = isPM ? 23 : 11;
751
+ }
752
+ let plainDateTime = $11d87f3f76e88657$export$b21e0b124e224484(dateTime);
753
+ let minDate = $11d87f3f76e88657$export$b4a036af3fc0b032($735220c2d4774dd3$export$e5d5e1c1822b6e56(plainDateTime, {
754
+ hour: min
755
+ }), new $3b62074eb05584b2$export$80ee6245ec4f29ec());
756
+ let minAbsolute = [
757
+ $11d87f3f76e88657$export$5107c82f94518f5c(minDate, dateTime.timeZone, "earlier"),
758
+ $11d87f3f76e88657$export$5107c82f94518f5c(minDate, dateTime.timeZone, "later")
759
+ ].filter((ms2) => $11d87f3f76e88657$export$1b96692a1ba042ac(ms2, dateTime.timeZone).day === minDate.day)[0];
760
+ let maxDate = $11d87f3f76e88657$export$b4a036af3fc0b032($735220c2d4774dd3$export$e5d5e1c1822b6e56(plainDateTime, {
761
+ hour: max
762
+ }), new $3b62074eb05584b2$export$80ee6245ec4f29ec());
763
+ let maxAbsolute = [
764
+ $11d87f3f76e88657$export$5107c82f94518f5c(maxDate, dateTime.timeZone, "earlier"),
765
+ $11d87f3f76e88657$export$5107c82f94518f5c(maxDate, dateTime.timeZone, "later")
766
+ ].filter((ms2) => $11d87f3f76e88657$export$1b96692a1ba042ac(ms2, dateTime.timeZone).day === maxDate.day).pop();
767
+ let ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime) - dateTime.offset;
768
+ let hours = Math.floor(ms / $735220c2d4774dd3$var$ONE_HOUR);
769
+ let remainder = ms % $735220c2d4774dd3$var$ONE_HOUR;
770
+ ms = $735220c2d4774dd3$var$cycleValue(hours, amount, Math.floor(minAbsolute / $735220c2d4774dd3$var$ONE_HOUR), Math.floor(maxAbsolute / $735220c2d4774dd3$var$ONE_HOUR), options === null || options === void 0 ? void 0 : options.round) * $735220c2d4774dd3$var$ONE_HOUR + remainder;
771
+ return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac(ms, dateTime.timeZone), dateTime.calendar);
772
+ }
773
+ case "minute":
774
+ case "second":
775
+ case "millisecond":
776
+ return $735220c2d4774dd3$export$dd02b3e0007dfe28(dateTime, field, amount, options);
777
+ case "era":
778
+ case "year":
779
+ case "month":
780
+ case "day": {
781
+ let res = $735220c2d4774dd3$export$d52ced6badfb9a4c($11d87f3f76e88657$export$b21e0b124e224484(dateTime), field, amount, options);
782
+ let ms = $11d87f3f76e88657$export$5107c82f94518f5c(res, dateTime.timeZone);
783
+ return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac(ms, dateTime.timeZone), dateTime.calendar);
784
+ }
785
+ default:
786
+ throw new Error("Unsupported field " + field);
787
+ }
788
+ }
789
+ function $735220c2d4774dd3$export$31b5430eb18be4f8(dateTime, fields, disambiguation) {
790
+ let plainDateTime = $11d87f3f76e88657$export$b21e0b124e224484(dateTime);
791
+ let res = $735220c2d4774dd3$export$e5d5e1c1822b6e56($735220c2d4774dd3$export$adaa4cf7ef1b65be(plainDateTime, fields), fields);
792
+ if (res.compare(plainDateTime) === 0) return dateTime;
793
+ let ms = $11d87f3f76e88657$export$5107c82f94518f5c(res, dateTime.timeZone, disambiguation);
794
+ return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac(ms, dateTime.timeZone), dateTime.calendar);
795
+ }
796
+ function $fae977aafc393c5c$export$f59dee82248f5ad4(time) {
797
+ return `${String(time.hour).padStart(2, "0")}:${String(time.minute).padStart(2, "0")}:${String(time.second).padStart(2, "0")}${time.millisecond ? String(time.millisecond / 1e3).slice(1) : ""}`;
798
+ }
799
+ function $fae977aafc393c5c$export$60dfd74aa96791bd(date) {
800
+ let gregorianDate = $11d87f3f76e88657$export$b4a036af3fc0b032(date, new $3b62074eb05584b2$export$80ee6245ec4f29ec());
801
+ let year;
802
+ if (gregorianDate.era === "BC") year = gregorianDate.year === 1 ? "0000" : "-" + String(Math.abs(1 - gregorianDate.year)).padStart(6, "00");
803
+ else year = String(gregorianDate.year).padStart(4, "0");
804
+ return `${year}-${String(gregorianDate.month).padStart(2, "0")}-${String(gregorianDate.day).padStart(2, "0")}`;
805
+ }
806
+ function $fae977aafc393c5c$export$4223de14708adc63(date) {
807
+ return `${$fae977aafc393c5c$export$60dfd74aa96791bd(date)}T${$fae977aafc393c5c$export$f59dee82248f5ad4(date)}`;
808
+ }
809
+ function $fae977aafc393c5c$var$offsetToString(offset) {
810
+ let sign = Math.sign(offset) < 0 ? "-" : "+";
811
+ offset = Math.abs(offset);
812
+ let offsetHours = Math.floor(offset / 36e5);
813
+ let offsetMinutes = Math.floor(offset % 36e5 / 6e4);
814
+ let offsetSeconds = Math.floor(offset % 36e5 % 6e4 / 1e3);
815
+ let stringOffset = `${sign}${String(offsetHours).padStart(2, "0")}:${String(offsetMinutes).padStart(2, "0")}`;
816
+ if (offsetSeconds !== 0) stringOffset += `:${String(offsetSeconds).padStart(2, "0")}`;
817
+ return stringOffset;
818
+ }
819
+ function $fae977aafc393c5c$export$bf79f1ebf4b18792(date) {
820
+ return `${$fae977aafc393c5c$export$4223de14708adc63(date)}${$fae977aafc393c5c$var$offsetToString(date.offset)}[${date.timeZone}]`;
821
+ }
822
+ function _check_private_redeclaration(obj, privateCollection) {
823
+ if (privateCollection.has(obj)) {
824
+ throw new TypeError("Cannot initialize the same private elements twice on an object");
825
+ }
826
+ }
827
+ function _class_private_field_init(obj, privateMap, value) {
828
+ _check_private_redeclaration(obj, privateMap);
829
+ privateMap.set(obj, value);
830
+ }
831
+ function $35ea8db9cb2ccb90$var$shiftArgs(args) {
832
+ let calendar = typeof args[0] === "object" ? args.shift() : new $3b62074eb05584b2$export$80ee6245ec4f29ec();
833
+ let era;
834
+ if (typeof args[0] === "string") era = args.shift();
835
+ else {
836
+ let eras = calendar.getEras();
837
+ era = eras[eras.length - 1];
838
+ }
839
+ let year = args.shift();
840
+ let month = args.shift();
841
+ let day = args.shift();
842
+ return [
843
+ calendar,
844
+ era,
845
+ year,
846
+ month,
847
+ day
848
+ ];
849
+ }
850
+ var $35ea8db9cb2ccb90$var$_type = /* @__PURE__ */ new WeakMap();
851
+ class $35ea8db9cb2ccb90$export$99faa760c7908e4f {
852
+ /** Returns a copy of this date. */
853
+ copy() {
854
+ if (this.era) return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this.calendar, this.era, this.year, this.month, this.day);
855
+ else return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this.calendar, this.year, this.month, this.day);
856
+ }
857
+ /** Returns a new `CalendarDate` with the given duration added to it. */
858
+ add(duration) {
859
+ return $735220c2d4774dd3$export$e16d8520af44a096(this, duration);
860
+ }
861
+ /** Returns a new `CalendarDate` with the given duration subtracted from it. */
862
+ subtract(duration) {
863
+ return $735220c2d4774dd3$export$4e2d2ead65e5f7e3(this, duration);
864
+ }
865
+ /** Returns a new `CalendarDate` with the given fields set to the provided values. Other fields will be constrained accordingly. */
866
+ set(fields) {
867
+ return $735220c2d4774dd3$export$adaa4cf7ef1b65be(this, fields);
868
+ }
869
+ /**
870
+ * Returns a new `CalendarDate` with the given field adjusted by a specified amount.
871
+ * When the resulting value reaches the limits of the field, it wraps around.
872
+ */
873
+ cycle(field, amount, options) {
874
+ return $735220c2d4774dd3$export$d52ced6badfb9a4c(this, field, amount, options);
875
+ }
876
+ /** Converts the date to a native JavaScript Date object, with the time set to midnight in the given time zone. */
877
+ toDate(timeZone) {
878
+ return $11d87f3f76e88657$export$e67a095c620b86fe(this, timeZone);
879
+ }
880
+ /** Converts the date to an ISO 8601 formatted string. */
881
+ toString() {
882
+ return $fae977aafc393c5c$export$60dfd74aa96791bd(this);
883
+ }
884
+ /** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */
885
+ compare(b) {
886
+ return $14e0f24ef4ac5c92$export$68781ddf31c0090f(this, b);
887
+ }
888
+ constructor(...args) {
889
+ _class_private_field_init(this, $35ea8db9cb2ccb90$var$_type, {
890
+ writable: true,
891
+ value: void 0
892
+ });
893
+ let [calendar, era, year, month, day] = $35ea8db9cb2ccb90$var$shiftArgs(args);
894
+ this.calendar = calendar;
895
+ this.era = era;
896
+ this.year = year;
897
+ this.month = month;
898
+ this.day = day;
899
+ $735220c2d4774dd3$export$c4e2ecac49351ef2(this);
900
+ }
901
+ }
902
+ var $35ea8db9cb2ccb90$var$_type2 = /* @__PURE__ */ new WeakMap();
903
+ class $35ea8db9cb2ccb90$export$ca871e8dbb80966f {
904
+ /** Returns a copy of this date. */
905
+ copy() {
906
+ if (this.era) return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(this.calendar, this.era, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
907
+ else return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(this.calendar, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
908
+ }
909
+ /** Returns a new `CalendarDateTime` with the given duration added to it. */
910
+ add(duration) {
911
+ return $735220c2d4774dd3$export$e16d8520af44a096(this, duration);
912
+ }
913
+ /** Returns a new `CalendarDateTime` with the given duration subtracted from it. */
914
+ subtract(duration) {
915
+ return $735220c2d4774dd3$export$4e2d2ead65e5f7e3(this, duration);
916
+ }
917
+ /** Returns a new `CalendarDateTime` with the given fields set to the provided values. Other fields will be constrained accordingly. */
918
+ set(fields) {
919
+ return $735220c2d4774dd3$export$adaa4cf7ef1b65be($735220c2d4774dd3$export$e5d5e1c1822b6e56(this, fields), fields);
920
+ }
921
+ /**
922
+ * Returns a new `CalendarDateTime` with the given field adjusted by a specified amount.
923
+ * When the resulting value reaches the limits of the field, it wraps around.
924
+ */
925
+ cycle(field, amount, options) {
926
+ switch (field) {
927
+ case "era":
928
+ case "year":
929
+ case "month":
930
+ case "day":
931
+ return $735220c2d4774dd3$export$d52ced6badfb9a4c(this, field, amount, options);
932
+ default:
933
+ return $735220c2d4774dd3$export$dd02b3e0007dfe28(this, field, amount, options);
934
+ }
935
+ }
936
+ /** Converts the date to a native JavaScript Date object in the given time zone. */
937
+ toDate(timeZone, disambiguation) {
938
+ return $11d87f3f76e88657$export$e67a095c620b86fe(this, timeZone, disambiguation);
939
+ }
940
+ /** Converts the date to an ISO 8601 formatted string. */
941
+ toString() {
942
+ return $fae977aafc393c5c$export$4223de14708adc63(this);
943
+ }
944
+ /** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */
945
+ compare(b) {
946
+ let res = $14e0f24ef4ac5c92$export$68781ddf31c0090f(this, b);
947
+ if (res === 0) return $14e0f24ef4ac5c92$export$c19a80a9721b80f6(this, $11d87f3f76e88657$export$b21e0b124e224484(b));
948
+ return res;
949
+ }
950
+ constructor(...args) {
951
+ _class_private_field_init(this, $35ea8db9cb2ccb90$var$_type2, {
952
+ writable: true,
953
+ value: void 0
954
+ });
955
+ let [calendar, era, year, month, day] = $35ea8db9cb2ccb90$var$shiftArgs(args);
956
+ this.calendar = calendar;
957
+ this.era = era;
958
+ this.year = year;
959
+ this.month = month;
960
+ this.day = day;
961
+ this.hour = args.shift() || 0;
962
+ this.minute = args.shift() || 0;
963
+ this.second = args.shift() || 0;
964
+ this.millisecond = args.shift() || 0;
965
+ $735220c2d4774dd3$export$c4e2ecac49351ef2(this);
966
+ }
967
+ }
968
+ var $35ea8db9cb2ccb90$var$_type3 = /* @__PURE__ */ new WeakMap();
969
+ class $35ea8db9cb2ccb90$export$d3b7288e7994edea {
970
+ /** Returns a copy of this date. */
971
+ copy() {
972
+ if (this.era) return new $35ea8db9cb2ccb90$export$d3b7288e7994edea(this.calendar, this.era, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);
973
+ else return new $35ea8db9cb2ccb90$export$d3b7288e7994edea(this.calendar, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);
974
+ }
975
+ /** Returns a new `ZonedDateTime` with the given duration added to it. */
976
+ add(duration) {
977
+ return $735220c2d4774dd3$export$96b1d28349274637(this, duration);
978
+ }
979
+ /** Returns a new `ZonedDateTime` with the given duration subtracted from it. */
980
+ subtract(duration) {
981
+ return $735220c2d4774dd3$export$6814caac34ca03c7(this, duration);
982
+ }
983
+ /** Returns a new `ZonedDateTime` with the given fields set to the provided values. Other fields will be constrained accordingly. */
984
+ set(fields, disambiguation) {
985
+ return $735220c2d4774dd3$export$31b5430eb18be4f8(this, fields, disambiguation);
986
+ }
987
+ /**
988
+ * Returns a new `ZonedDateTime` with the given field adjusted by a specified amount.
989
+ * When the resulting value reaches the limits of the field, it wraps around.
990
+ */
991
+ cycle(field, amount, options) {
992
+ return $735220c2d4774dd3$export$9a297d111fc86b79(this, field, amount, options);
993
+ }
994
+ /** Converts the date to a native JavaScript Date object. */
995
+ toDate() {
996
+ return $11d87f3f76e88657$export$83aac07b4c37b25(this);
997
+ }
998
+ /** Converts the date to an ISO 8601 formatted string, including the UTC offset and time zone identifier. */
999
+ toString() {
1000
+ return $fae977aafc393c5c$export$bf79f1ebf4b18792(this);
1001
+ }
1002
+ /** Converts the date to an ISO 8601 formatted string in UTC. */
1003
+ toAbsoluteString() {
1004
+ return this.toDate().toISOString();
1005
+ }
1006
+ /** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */
1007
+ compare(b) {
1008
+ return this.toDate().getTime() - $11d87f3f76e88657$export$84c95a83c799e074(b, this.timeZone).toDate().getTime();
1009
+ }
1010
+ constructor(...args) {
1011
+ _class_private_field_init(this, $35ea8db9cb2ccb90$var$_type3, {
1012
+ writable: true,
1013
+ value: void 0
1014
+ });
1015
+ let [calendar, era, year, month, day] = $35ea8db9cb2ccb90$var$shiftArgs(args);
1016
+ let timeZone = args.shift();
1017
+ let offset = args.shift();
1018
+ this.calendar = calendar;
1019
+ this.era = era;
1020
+ this.year = year;
1021
+ this.month = month;
1022
+ this.day = day;
1023
+ this.timeZone = timeZone;
1024
+ this.offset = offset;
1025
+ this.hour = args.shift() || 0;
1026
+ this.minute = args.shift() || 0;
1027
+ this.second = args.shift() || 0;
1028
+ this.millisecond = args.shift() || 0;
1029
+ $735220c2d4774dd3$export$c4e2ecac49351ef2(this);
1030
+ }
1031
+ }
1032
+ const $62225008020f0a13$var$ERA_START_DATES = [
1033
+ [
1034
+ 1868,
1035
+ 9,
1036
+ 8
1037
+ ],
1038
+ [
1039
+ 1912,
1040
+ 7,
1041
+ 30
1042
+ ],
1043
+ [
1044
+ 1926,
1045
+ 12,
1046
+ 25
1047
+ ],
1048
+ [
1049
+ 1989,
1050
+ 1,
1051
+ 8
1052
+ ],
1053
+ [
1054
+ 2019,
1055
+ 5,
1056
+ 1
1057
+ ]
1058
+ ];
1059
+ const $62225008020f0a13$var$ERA_END_DATES = [
1060
+ [
1061
+ 1912,
1062
+ 7,
1063
+ 29
1064
+ ],
1065
+ [
1066
+ 1926,
1067
+ 12,
1068
+ 24
1069
+ ],
1070
+ [
1071
+ 1989,
1072
+ 1,
1073
+ 7
1074
+ ],
1075
+ [
1076
+ 2019,
1077
+ 4,
1078
+ 30
1079
+ ]
1080
+ ];
1081
+ const $62225008020f0a13$var$ERA_ADDENDS = [
1082
+ 1867,
1083
+ 1911,
1084
+ 1925,
1085
+ 1988,
1086
+ 2018
1087
+ ];
1088
+ const $62225008020f0a13$var$ERA_NAMES = [
1089
+ "meiji",
1090
+ "taisho",
1091
+ "showa",
1092
+ "heisei",
1093
+ "reiwa"
1094
+ ];
1095
+ function $62225008020f0a13$var$findEraFromGregorianDate(date) {
1096
+ const idx = $62225008020f0a13$var$ERA_START_DATES.findIndex(([year, month, day]) => {
1097
+ if (date.year < year) return true;
1098
+ if (date.year === year && date.month < month) return true;
1099
+ if (date.year === year && date.month === month && date.day < day) return true;
1100
+ return false;
1101
+ });
1102
+ if (idx === -1) return $62225008020f0a13$var$ERA_START_DATES.length - 1;
1103
+ if (idx === 0) return 0;
1104
+ return idx - 1;
1105
+ }
1106
+ function $62225008020f0a13$var$toGregorian(date) {
1107
+ let eraAddend = $62225008020f0a13$var$ERA_ADDENDS[$62225008020f0a13$var$ERA_NAMES.indexOf(date.era)];
1108
+ if (!eraAddend) throw new Error("Unknown era: " + date.era);
1109
+ return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(date.year + eraAddend, date.month, date.day);
1110
+ }
1111
+ class $62225008020f0a13$export$b746ab2b60cdffbf extends $3b62074eb05584b2$export$80ee6245ec4f29ec {
1112
+ fromJulianDay(jd) {
1113
+ let date = super.fromJulianDay(jd);
1114
+ let era = $62225008020f0a13$var$findEraFromGregorianDate(date);
1115
+ return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, $62225008020f0a13$var$ERA_NAMES[era], date.year - $62225008020f0a13$var$ERA_ADDENDS[era], date.month, date.day);
1116
+ }
1117
+ toJulianDay(date) {
1118
+ return super.toJulianDay($62225008020f0a13$var$toGregorian(date));
1119
+ }
1120
+ balanceDate(date) {
1121
+ let gregorianDate = $62225008020f0a13$var$toGregorian(date);
1122
+ let era = $62225008020f0a13$var$findEraFromGregorianDate(gregorianDate);
1123
+ if ($62225008020f0a13$var$ERA_NAMES[era] !== date.era) {
1124
+ date.era = $62225008020f0a13$var$ERA_NAMES[era];
1125
+ date.year = gregorianDate.year - $62225008020f0a13$var$ERA_ADDENDS[era];
1126
+ }
1127
+ this.constrainDate(date);
1128
+ }
1129
+ constrainDate(date) {
1130
+ let idx = $62225008020f0a13$var$ERA_NAMES.indexOf(date.era);
1131
+ let end = $62225008020f0a13$var$ERA_END_DATES[idx];
1132
+ if (end != null) {
1133
+ let [endYear, endMonth, endDay] = end;
1134
+ let maxYear = endYear - $62225008020f0a13$var$ERA_ADDENDS[idx];
1135
+ date.year = Math.max(1, Math.min(maxYear, date.year));
1136
+ if (date.year === maxYear) {
1137
+ date.month = Math.min(endMonth, date.month);
1138
+ if (date.month === endMonth) date.day = Math.min(endDay, date.day);
1139
+ }
1140
+ }
1141
+ if (date.year === 1 && idx >= 0) {
1142
+ let [, startMonth, startDay] = $62225008020f0a13$var$ERA_START_DATES[idx];
1143
+ date.month = Math.max(startMonth, date.month);
1144
+ if (date.month === startMonth) date.day = Math.max(startDay, date.day);
1145
+ }
1146
+ }
1147
+ getEras() {
1148
+ return $62225008020f0a13$var$ERA_NAMES;
1149
+ }
1150
+ getYearsInEra(date) {
1151
+ let era = $62225008020f0a13$var$ERA_NAMES.indexOf(date.era);
1152
+ let cur = $62225008020f0a13$var$ERA_START_DATES[era];
1153
+ let next = $62225008020f0a13$var$ERA_START_DATES[era + 1];
1154
+ if (next == null)
1155
+ return 9999 - cur[0] + 1;
1156
+ let years = next[0] - cur[0];
1157
+ if (date.month < next[1] || date.month === next[1] && date.day < next[2]) years++;
1158
+ return years;
1159
+ }
1160
+ getDaysInMonth(date) {
1161
+ return super.getDaysInMonth($62225008020f0a13$var$toGregorian(date));
1162
+ }
1163
+ getMinimumMonthInYear(date) {
1164
+ let start = $62225008020f0a13$var$getMinimums(date);
1165
+ return start ? start[1] : 1;
1166
+ }
1167
+ getMinimumDayInMonth(date) {
1168
+ let start = $62225008020f0a13$var$getMinimums(date);
1169
+ return start && date.month === start[1] ? start[2] : 1;
1170
+ }
1171
+ constructor(...args) {
1172
+ super(...args), this.identifier = "japanese";
1173
+ }
1174
+ }
1175
+ function $62225008020f0a13$var$getMinimums(date) {
1176
+ if (date.year === 1) {
1177
+ let idx = $62225008020f0a13$var$ERA_NAMES.indexOf(date.era);
1178
+ return $62225008020f0a13$var$ERA_START_DATES[idx];
1179
+ }
1180
+ }
1181
+ const $8d73d47422ca7302$var$BUDDHIST_ERA_START = -543;
1182
+ class $8d73d47422ca7302$export$42d20a78301dee44 extends $3b62074eb05584b2$export$80ee6245ec4f29ec {
1183
+ fromJulianDay(jd) {
1184
+ let gregorianDate = super.fromJulianDay(jd);
1185
+ let year = $3b62074eb05584b2$export$c36e0ecb2d4fa69d(gregorianDate.era, gregorianDate.year);
1186
+ return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, year - $8d73d47422ca7302$var$BUDDHIST_ERA_START, gregorianDate.month, gregorianDate.day);
1187
+ }
1188
+ toJulianDay(date) {
1189
+ return super.toJulianDay($8d73d47422ca7302$var$toGregorian(date));
1190
+ }
1191
+ getEras() {
1192
+ return [
1193
+ "BE"
1194
+ ];
1195
+ }
1196
+ getDaysInMonth(date) {
1197
+ return super.getDaysInMonth($8d73d47422ca7302$var$toGregorian(date));
1198
+ }
1199
+ balanceDate() {
1200
+ }
1201
+ constructor(...args) {
1202
+ super(...args), this.identifier = "buddhist";
1203
+ }
1204
+ }
1205
+ function $8d73d47422ca7302$var$toGregorian(date) {
1206
+ let [era, year] = $3b62074eb05584b2$export$4475b7e617eb123c(date.year + $8d73d47422ca7302$var$BUDDHIST_ERA_START);
1207
+ return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(era, year, date.month, date.day);
1208
+ }
1209
+ const $5f31bd6f0c8940b2$var$TAIWAN_ERA_START = 1911;
1210
+ function $5f31bd6f0c8940b2$var$gregorianYear(date) {
1211
+ return date.era === "minguo" ? date.year + $5f31bd6f0c8940b2$var$TAIWAN_ERA_START : 1 - date.year + $5f31bd6f0c8940b2$var$TAIWAN_ERA_START;
1212
+ }
1213
+ function $5f31bd6f0c8940b2$var$gregorianToTaiwan(year) {
1214
+ let y = year - $5f31bd6f0c8940b2$var$TAIWAN_ERA_START;
1215
+ if (y > 0) return [
1216
+ "minguo",
1217
+ y
1218
+ ];
1219
+ else return [
1220
+ "before_minguo",
1221
+ 1 - y
1222
+ ];
1223
+ }
1224
+ class $5f31bd6f0c8940b2$export$65e01080afcb0799 extends $3b62074eb05584b2$export$80ee6245ec4f29ec {
1225
+ fromJulianDay(jd) {
1226
+ let date = super.fromJulianDay(jd);
1227
+ let extendedYear = $3b62074eb05584b2$export$c36e0ecb2d4fa69d(date.era, date.year);
1228
+ let [era, year] = $5f31bd6f0c8940b2$var$gregorianToTaiwan(extendedYear);
1229
+ return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, era, year, date.month, date.day);
1230
+ }
1231
+ toJulianDay(date) {
1232
+ return super.toJulianDay($5f31bd6f0c8940b2$var$toGregorian(date));
1233
+ }
1234
+ getEras() {
1235
+ return [
1236
+ "before_minguo",
1237
+ "minguo"
1238
+ ];
1239
+ }
1240
+ balanceDate(date) {
1241
+ let [era, year] = $5f31bd6f0c8940b2$var$gregorianToTaiwan($5f31bd6f0c8940b2$var$gregorianYear(date));
1242
+ date.era = era;
1243
+ date.year = year;
1244
+ }
1245
+ isInverseEra(date) {
1246
+ return date.era === "before_minguo";
1247
+ }
1248
+ getDaysInMonth(date) {
1249
+ return super.getDaysInMonth($5f31bd6f0c8940b2$var$toGregorian(date));
1250
+ }
1251
+ getYearsInEra(date) {
1252
+ return date.era === "before_minguo" ? 9999 : 9999 - $5f31bd6f0c8940b2$var$TAIWAN_ERA_START;
1253
+ }
1254
+ constructor(...args) {
1255
+ super(...args), this.identifier = "roc";
1256
+ }
1257
+ }
1258
+ function $5f31bd6f0c8940b2$var$toGregorian(date) {
1259
+ let [era, year] = $3b62074eb05584b2$export$4475b7e617eb123c($5f31bd6f0c8940b2$var$gregorianYear(date));
1260
+ return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(era, year, date.month, date.day);
1261
+ }
1262
+ const $f3ed2e4472ae7e25$var$PERSIAN_EPOCH = 1948320;
1263
+ const $f3ed2e4472ae7e25$var$MONTH_START = [
1264
+ 0,
1265
+ 31,
1266
+ 62,
1267
+ 93,
1268
+ 124,
1269
+ 155,
1270
+ 186,
1271
+ 216,
1272
+ 246,
1273
+ 276,
1274
+ 306,
1275
+ 336
1276
+ // Esfand
1277
+ ];
1278
+ class $f3ed2e4472ae7e25$export$37fccdbfd14c5939 {
1279
+ fromJulianDay(jd) {
1280
+ let daysSinceEpoch = jd - $f3ed2e4472ae7e25$var$PERSIAN_EPOCH;
1281
+ let year = 1 + Math.floor((33 * daysSinceEpoch + 3) / 12053);
1282
+ let farvardin1 = 365 * (year - 1) + Math.floor((8 * year + 21) / 33);
1283
+ let dayOfYear = daysSinceEpoch - farvardin1;
1284
+ let month = dayOfYear < 216 ? Math.floor(dayOfYear / 31) : Math.floor((dayOfYear - 6) / 30);
1285
+ let day = dayOfYear - $f3ed2e4472ae7e25$var$MONTH_START[month] + 1;
1286
+ return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, year, month + 1, day);
1287
+ }
1288
+ toJulianDay(date) {
1289
+ let jd = $f3ed2e4472ae7e25$var$PERSIAN_EPOCH - 1 + 365 * (date.year - 1) + Math.floor((8 * date.year + 21) / 33);
1290
+ jd += $f3ed2e4472ae7e25$var$MONTH_START[date.month - 1];
1291
+ jd += date.day;
1292
+ return jd;
1293
+ }
1294
+ getMonthsInYear() {
1295
+ return 12;
1296
+ }
1297
+ getDaysInMonth(date) {
1298
+ if (date.month <= 6) return 31;
1299
+ if (date.month <= 11) return 30;
1300
+ let isLeapYear = $2b4dce13dd5a17fa$export$842a2cf37af977e1(25 * date.year + 11, 33) < 8;
1301
+ return isLeapYear ? 30 : 29;
1302
+ }
1303
+ getEras() {
1304
+ return [
1305
+ "AP"
1306
+ ];
1307
+ }
1308
+ getYearsInEra() {
1309
+ return 9377;
1310
+ }
1311
+ constructor() {
1312
+ this.identifier = "persian";
1313
+ }
1314
+ }
1315
+ const $82c358003bdda0a8$var$INDIAN_ERA_START = 78;
1316
+ const $82c358003bdda0a8$var$INDIAN_YEAR_START = 80;
1317
+ class $82c358003bdda0a8$export$39f31c639fa15726 extends $3b62074eb05584b2$export$80ee6245ec4f29ec {
1318
+ fromJulianDay(jd) {
1319
+ let date = super.fromJulianDay(jd);
1320
+ let indianYear = date.year - $82c358003bdda0a8$var$INDIAN_ERA_START;
1321
+ let yDay = jd - $3b62074eb05584b2$export$f297eb839006d339(date.era, date.year, 1, 1);
1322
+ let leapMonth;
1323
+ if (yDay < $82c358003bdda0a8$var$INDIAN_YEAR_START) {
1324
+ indianYear--;
1325
+ leapMonth = $3b62074eb05584b2$export$553d7fa8e3805fc0(date.year - 1) ? 31 : 30;
1326
+ yDay += leapMonth + 155 + 90 + 10;
1327
+ } else {
1328
+ leapMonth = $3b62074eb05584b2$export$553d7fa8e3805fc0(date.year) ? 31 : 30;
1329
+ yDay -= $82c358003bdda0a8$var$INDIAN_YEAR_START;
1330
+ }
1331
+ let indianMonth;
1332
+ let indianDay;
1333
+ if (yDay < leapMonth) {
1334
+ indianMonth = 1;
1335
+ indianDay = yDay + 1;
1336
+ } else {
1337
+ let mDay = yDay - leapMonth;
1338
+ if (mDay < 155) {
1339
+ indianMonth = Math.floor(mDay / 31) + 2;
1340
+ indianDay = mDay % 31 + 1;
1341
+ } else {
1342
+ mDay -= 155;
1343
+ indianMonth = Math.floor(mDay / 30) + 7;
1344
+ indianDay = mDay % 30 + 1;
1345
+ }
1346
+ }
1347
+ return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, indianYear, indianMonth, indianDay);
1348
+ }
1349
+ toJulianDay(date) {
1350
+ let extendedYear = date.year + $82c358003bdda0a8$var$INDIAN_ERA_START;
1351
+ let [era, year] = $3b62074eb05584b2$export$4475b7e617eb123c(extendedYear);
1352
+ let leapMonth;
1353
+ let jd;
1354
+ if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year)) {
1355
+ leapMonth = 31;
1356
+ jd = $3b62074eb05584b2$export$f297eb839006d339(era, year, 3, 21);
1357
+ } else {
1358
+ leapMonth = 30;
1359
+ jd = $3b62074eb05584b2$export$f297eb839006d339(era, year, 3, 22);
1360
+ }
1361
+ if (date.month === 1) return jd + date.day - 1;
1362
+ jd += leapMonth + Math.min(date.month - 2, 5) * 31;
1363
+ if (date.month >= 8) jd += (date.month - 7) * 30;
1364
+ jd += date.day - 1;
1365
+ return jd;
1366
+ }
1367
+ getDaysInMonth(date) {
1368
+ if (date.month === 1 && $3b62074eb05584b2$export$553d7fa8e3805fc0(date.year + $82c358003bdda0a8$var$INDIAN_ERA_START)) return 31;
1369
+ if (date.month >= 2 && date.month <= 6) return 31;
1370
+ return 30;
1371
+ }
1372
+ getYearsInEra() {
1373
+ return 9919;
1374
+ }
1375
+ getEras() {
1376
+ return [
1377
+ "saka"
1378
+ ];
1379
+ }
1380
+ balanceDate() {
1381
+ }
1382
+ constructor(...args) {
1383
+ super(...args), this.identifier = "indian";
1384
+ }
1385
+ }
1386
+ const $f2f3e0e3a817edbd$var$CIVIL_EPOC = 1948440;
1387
+ const $f2f3e0e3a817edbd$var$ASTRONOMICAL_EPOC = 1948439;
1388
+ const $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START = 1300;
1389
+ const $f2f3e0e3a817edbd$var$UMALQURA_YEAR_END = 1600;
1390
+ const $f2f3e0e3a817edbd$var$UMALQURA_START_DAYS = 460322;
1391
+ function $f2f3e0e3a817edbd$var$islamicToJulianDay(epoch, year, month, day) {
1392
+ return day + Math.ceil(29.5 * (month - 1)) + (year - 1) * 354 + Math.floor((3 + 11 * year) / 30) + epoch - 1;
1393
+ }
1394
+ function $f2f3e0e3a817edbd$var$julianDayToIslamic(calendar, epoch, jd) {
1395
+ let year = Math.floor((30 * (jd - epoch) + 10646) / 10631);
1396
+ let month = Math.min(12, Math.ceil((jd - (29 + $f2f3e0e3a817edbd$var$islamicToJulianDay(epoch, year, 1, 1))) / 29.5) + 1);
1397
+ let day = jd - $f2f3e0e3a817edbd$var$islamicToJulianDay(epoch, year, month, 1) + 1;
1398
+ return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(calendar, year, month, day);
1399
+ }
1400
+ function $f2f3e0e3a817edbd$var$isLeapYear(year) {
1401
+ return (14 + 11 * year) % 30 < 11;
1402
+ }
1403
+ class $f2f3e0e3a817edbd$export$2066795aadd37bfc {
1404
+ fromJulianDay(jd) {
1405
+ return $f2f3e0e3a817edbd$var$julianDayToIslamic(this, $f2f3e0e3a817edbd$var$CIVIL_EPOC, jd);
1406
+ }
1407
+ toJulianDay(date) {
1408
+ return $f2f3e0e3a817edbd$var$islamicToJulianDay($f2f3e0e3a817edbd$var$CIVIL_EPOC, date.year, date.month, date.day);
1409
+ }
1410
+ getDaysInMonth(date) {
1411
+ let length = 29 + date.month % 2;
1412
+ if (date.month === 12 && $f2f3e0e3a817edbd$var$isLeapYear(date.year)) length++;
1413
+ return length;
1414
+ }
1415
+ getMonthsInYear() {
1416
+ return 12;
1417
+ }
1418
+ getDaysInYear(date) {
1419
+ return $f2f3e0e3a817edbd$var$isLeapYear(date.year) ? 355 : 354;
1420
+ }
1421
+ getYearsInEra() {
1422
+ return 9665;
1423
+ }
1424
+ getEras() {
1425
+ return [
1426
+ "AH"
1427
+ ];
1428
+ }
1429
+ constructor() {
1430
+ this.identifier = "islamic-civil";
1431
+ }
1432
+ }
1433
+ class $f2f3e0e3a817edbd$export$37f0887f2f9d22f7 extends $f2f3e0e3a817edbd$export$2066795aadd37bfc {
1434
+ fromJulianDay(jd) {
1435
+ return $f2f3e0e3a817edbd$var$julianDayToIslamic(this, $f2f3e0e3a817edbd$var$ASTRONOMICAL_EPOC, jd);
1436
+ }
1437
+ toJulianDay(date) {
1438
+ return $f2f3e0e3a817edbd$var$islamicToJulianDay($f2f3e0e3a817edbd$var$ASTRONOMICAL_EPOC, date.year, date.month, date.day);
1439
+ }
1440
+ constructor(...args) {
1441
+ super(...args), this.identifier = "islamic-tbla";
1442
+ }
1443
+ }
1444
+ const $f2f3e0e3a817edbd$var$UMALQURA_DATA = "qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";
1445
+ let $f2f3e0e3a817edbd$var$UMALQURA_MONTHLENGTH;
1446
+ let $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE;
1447
+ function $f2f3e0e3a817edbd$var$umalquraYearStart(year) {
1448
+ return $f2f3e0e3a817edbd$var$UMALQURA_START_DAYS + $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE[year - $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START];
1449
+ }
1450
+ function $f2f3e0e3a817edbd$var$umalquraMonthLength(year, month) {
1451
+ let idx = year - $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START;
1452
+ let mask = 1 << 11 - (month - 1);
1453
+ if (($f2f3e0e3a817edbd$var$UMALQURA_MONTHLENGTH[idx] & mask) === 0) return 29;
1454
+ else return 30;
1455
+ }
1456
+ function $f2f3e0e3a817edbd$var$umalquraMonthStart(year, month) {
1457
+ let day = $f2f3e0e3a817edbd$var$umalquraYearStart(year);
1458
+ for (let i = 1; i < month; i++) day += $f2f3e0e3a817edbd$var$umalquraMonthLength(year, i);
1459
+ return day;
1460
+ }
1461
+ function $f2f3e0e3a817edbd$var$umalquraYearLength(year) {
1462
+ return $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE[year + 1 - $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START] - $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE[year - $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START];
1463
+ }
1464
+ class $f2f3e0e3a817edbd$export$5baab4758c231076 extends $f2f3e0e3a817edbd$export$2066795aadd37bfc {
1465
+ fromJulianDay(jd) {
1466
+ let days = jd - $f2f3e0e3a817edbd$var$CIVIL_EPOC;
1467
+ let startDays = $f2f3e0e3a817edbd$var$umalquraYearStart($f2f3e0e3a817edbd$var$UMALQURA_YEAR_START);
1468
+ let endDays = $f2f3e0e3a817edbd$var$umalquraYearStart($f2f3e0e3a817edbd$var$UMALQURA_YEAR_END);
1469
+ if (days < startDays || days > endDays) return super.fromJulianDay(jd);
1470
+ else {
1471
+ let y = $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START - 1;
1472
+ let m = 1;
1473
+ let d = 1;
1474
+ while (d > 0) {
1475
+ y++;
1476
+ d = days - $f2f3e0e3a817edbd$var$umalquraYearStart(y) + 1;
1477
+ let yearLength = $f2f3e0e3a817edbd$var$umalquraYearLength(y);
1478
+ if (d === yearLength) {
1479
+ m = 12;
1480
+ break;
1481
+ } else if (d < yearLength) {
1482
+ let monthLength = $f2f3e0e3a817edbd$var$umalquraMonthLength(y, m);
1483
+ m = 1;
1484
+ while (d > monthLength) {
1485
+ d -= monthLength;
1486
+ m++;
1487
+ monthLength = $f2f3e0e3a817edbd$var$umalquraMonthLength(y, m);
1488
+ }
1489
+ break;
1490
+ }
1491
+ }
1492
+ return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, y, m, days - $f2f3e0e3a817edbd$var$umalquraMonthStart(y, m) + 1);
1493
+ }
1494
+ }
1495
+ toJulianDay(date) {
1496
+ if (date.year < $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START || date.year > $f2f3e0e3a817edbd$var$UMALQURA_YEAR_END) return super.toJulianDay(date);
1497
+ return $f2f3e0e3a817edbd$var$CIVIL_EPOC + $f2f3e0e3a817edbd$var$umalquraMonthStart(date.year, date.month) + (date.day - 1);
1498
+ }
1499
+ getDaysInMonth(date) {
1500
+ if (date.year < $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START || date.year > $f2f3e0e3a817edbd$var$UMALQURA_YEAR_END) return super.getDaysInMonth(date);
1501
+ return $f2f3e0e3a817edbd$var$umalquraMonthLength(date.year, date.month);
1502
+ }
1503
+ getDaysInYear(date) {
1504
+ if (date.year < $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START || date.year > $f2f3e0e3a817edbd$var$UMALQURA_YEAR_END) return super.getDaysInYear(date);
1505
+ return $f2f3e0e3a817edbd$var$umalquraYearLength(date.year);
1506
+ }
1507
+ constructor() {
1508
+ super(), this.identifier = "islamic-umalqura";
1509
+ if (!$f2f3e0e3a817edbd$var$UMALQURA_MONTHLENGTH) $f2f3e0e3a817edbd$var$UMALQURA_MONTHLENGTH = new Uint16Array(Uint8Array.from(atob($f2f3e0e3a817edbd$var$UMALQURA_DATA), (c) => c.charCodeAt(0)).buffer);
1510
+ if (!$f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE) {
1511
+ $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE = new Uint32Array($f2f3e0e3a817edbd$var$UMALQURA_YEAR_END - $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START + 1);
1512
+ let yearStart = 0;
1513
+ for (let year = $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START; year <= $f2f3e0e3a817edbd$var$UMALQURA_YEAR_END; year++) {
1514
+ $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE[year - $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START] = yearStart;
1515
+ for (let i = 1; i <= 12; i++) yearStart += $f2f3e0e3a817edbd$var$umalquraMonthLength(year, i);
1516
+ }
1517
+ }
1518
+ }
1519
+ }
1520
+ const $7c5f6fbf42389787$var$HEBREW_EPOCH = 347997;
1521
+ const $7c5f6fbf42389787$var$HOUR_PARTS = 1080;
1522
+ const $7c5f6fbf42389787$var$DAY_PARTS = 24 * $7c5f6fbf42389787$var$HOUR_PARTS;
1523
+ const $7c5f6fbf42389787$var$MONTH_DAYS = 29;
1524
+ const $7c5f6fbf42389787$var$MONTH_FRACT = 12 * $7c5f6fbf42389787$var$HOUR_PARTS + 793;
1525
+ const $7c5f6fbf42389787$var$MONTH_PARTS = $7c5f6fbf42389787$var$MONTH_DAYS * $7c5f6fbf42389787$var$DAY_PARTS + $7c5f6fbf42389787$var$MONTH_FRACT;
1526
+ function $7c5f6fbf42389787$var$isLeapYear(year) {
1527
+ return $2b4dce13dd5a17fa$export$842a2cf37af977e1(year * 7 + 1, 19) < 7;
1528
+ }
1529
+ function $7c5f6fbf42389787$var$hebrewDelay1(year) {
1530
+ let months = Math.floor((235 * year - 234) / 19);
1531
+ let parts = 12084 + 13753 * months;
1532
+ let day = months * 29 + Math.floor(parts / 25920);
1533
+ if ($2b4dce13dd5a17fa$export$842a2cf37af977e1(3 * (day + 1), 7) < 3) day += 1;
1534
+ return day;
1535
+ }
1536
+ function $7c5f6fbf42389787$var$hebrewDelay2(year) {
1537
+ let last = $7c5f6fbf42389787$var$hebrewDelay1(year - 1);
1538
+ let present = $7c5f6fbf42389787$var$hebrewDelay1(year);
1539
+ let next = $7c5f6fbf42389787$var$hebrewDelay1(year + 1);
1540
+ if (next - present === 356) return 2;
1541
+ if (present - last === 382) return 1;
1542
+ return 0;
1543
+ }
1544
+ function $7c5f6fbf42389787$var$startOfYear(year) {
1545
+ return $7c5f6fbf42389787$var$hebrewDelay1(year) + $7c5f6fbf42389787$var$hebrewDelay2(year);
1546
+ }
1547
+ function $7c5f6fbf42389787$var$getDaysInYear(year) {
1548
+ return $7c5f6fbf42389787$var$startOfYear(year + 1) - $7c5f6fbf42389787$var$startOfYear(year);
1549
+ }
1550
+ function $7c5f6fbf42389787$var$getYearType(year) {
1551
+ let yearLength = $7c5f6fbf42389787$var$getDaysInYear(year);
1552
+ if (yearLength > 380) yearLength -= 30;
1553
+ switch (yearLength) {
1554
+ case 353:
1555
+ return 0;
1556
+ case 354:
1557
+ return 1;
1558
+ case 355:
1559
+ return 2;
1560
+ }
1561
+ }
1562
+ function $7c5f6fbf42389787$var$getDaysInMonth(year, month) {
1563
+ if (month >= 6 && !$7c5f6fbf42389787$var$isLeapYear(year)) month++;
1564
+ if (month === 4 || month === 7 || month === 9 || month === 11 || month === 13) return 29;
1565
+ let yearType = $7c5f6fbf42389787$var$getYearType(year);
1566
+ if (month === 2) return yearType === 2 ? 30 : 29;
1567
+ if (month === 3) return yearType === 0 ? 29 : 30;
1568
+ if (month === 6) return $7c5f6fbf42389787$var$isLeapYear(year) ? 30 : 0;
1569
+ return 30;
1570
+ }
1571
+ class $7c5f6fbf42389787$export$ca405048b8fb5af {
1572
+ fromJulianDay(jd) {
1573
+ let d = jd - $7c5f6fbf42389787$var$HEBREW_EPOCH;
1574
+ let m = d * $7c5f6fbf42389787$var$DAY_PARTS / $7c5f6fbf42389787$var$MONTH_PARTS;
1575
+ let year = Math.floor((19 * m + 234) / 235) + 1;
1576
+ let ys = $7c5f6fbf42389787$var$startOfYear(year);
1577
+ let dayOfYear = Math.floor(d - ys);
1578
+ while (dayOfYear < 1) {
1579
+ year--;
1580
+ ys = $7c5f6fbf42389787$var$startOfYear(year);
1581
+ dayOfYear = Math.floor(d - ys);
1582
+ }
1583
+ let month = 1;
1584
+ let monthStart = 0;
1585
+ while (monthStart < dayOfYear) {
1586
+ monthStart += $7c5f6fbf42389787$var$getDaysInMonth(year, month);
1587
+ month++;
1588
+ }
1589
+ month--;
1590
+ monthStart -= $7c5f6fbf42389787$var$getDaysInMonth(year, month);
1591
+ let day = dayOfYear - monthStart;
1592
+ return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, year, month, day);
1593
+ }
1594
+ toJulianDay(date) {
1595
+ let jd = $7c5f6fbf42389787$var$startOfYear(date.year);
1596
+ for (let month = 1; month < date.month; month++) jd += $7c5f6fbf42389787$var$getDaysInMonth(date.year, month);
1597
+ return jd + date.day + $7c5f6fbf42389787$var$HEBREW_EPOCH;
1598
+ }
1599
+ getDaysInMonth(date) {
1600
+ return $7c5f6fbf42389787$var$getDaysInMonth(date.year, date.month);
1601
+ }
1602
+ getMonthsInYear(date) {
1603
+ return $7c5f6fbf42389787$var$isLeapYear(date.year) ? 13 : 12;
1604
+ }
1605
+ getDaysInYear(date) {
1606
+ return $7c5f6fbf42389787$var$getDaysInYear(date.year);
1607
+ }
1608
+ getYearsInEra() {
1609
+ return 9999;
1610
+ }
1611
+ getEras() {
1612
+ return [
1613
+ "AM"
1614
+ ];
1615
+ }
1616
+ balanceYearMonth(date, previousDate) {
1617
+ if (previousDate.year !== date.year) {
1618
+ if ($7c5f6fbf42389787$var$isLeapYear(previousDate.year) && !$7c5f6fbf42389787$var$isLeapYear(date.year) && previousDate.month > 6) date.month--;
1619
+ else if (!$7c5f6fbf42389787$var$isLeapYear(previousDate.year) && $7c5f6fbf42389787$var$isLeapYear(date.year) && previousDate.month > 6) date.month++;
1620
+ }
1621
+ }
1622
+ constructor() {
1623
+ this.identifier = "hebrew";
1624
+ }
1625
+ }
1626
+ const $b956b2d7a6cf451f$var$ETHIOPIC_EPOCH = 1723856;
1627
+ const $b956b2d7a6cf451f$var$COPTIC_EPOCH = 1824665;
1628
+ const $b956b2d7a6cf451f$var$AMETE_MIHRET_DELTA = 5500;
1629
+ function $b956b2d7a6cf451f$var$ceToJulianDay(epoch, year, month, day) {
1630
+ return epoch + 365 * year + Math.floor(year / 4) + 30 * (month - 1) + day - 1;
1631
+ }
1632
+ function $b956b2d7a6cf451f$var$julianDayToCE(epoch, jd) {
1633
+ let year = Math.floor(4 * (jd - epoch) / 1461);
1634
+ let month = 1 + Math.floor((jd - $b956b2d7a6cf451f$var$ceToJulianDay(epoch, year, 1, 1)) / 30);
1635
+ let day = jd + 1 - $b956b2d7a6cf451f$var$ceToJulianDay(epoch, year, month, 1);
1636
+ return [
1637
+ year,
1638
+ month,
1639
+ day
1640
+ ];
1641
+ }
1642
+ function $b956b2d7a6cf451f$var$getLeapDay(year) {
1643
+ return Math.floor(year % 4 / 3);
1644
+ }
1645
+ function $b956b2d7a6cf451f$var$getDaysInMonth(year, month) {
1646
+ if (month % 13 !== 0)
1647
+ return 30;
1648
+ else
1649
+ return $b956b2d7a6cf451f$var$getLeapDay(year) + 5;
1650
+ }
1651
+ class $b956b2d7a6cf451f$export$26ba6eab5e20cd7d {
1652
+ fromJulianDay(jd) {
1653
+ let [year, month, day] = $b956b2d7a6cf451f$var$julianDayToCE($b956b2d7a6cf451f$var$ETHIOPIC_EPOCH, jd);
1654
+ let era = "AM";
1655
+ if (year <= 0) {
1656
+ era = "AA";
1657
+ year += $b956b2d7a6cf451f$var$AMETE_MIHRET_DELTA;
1658
+ }
1659
+ return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, era, year, month, day);
1660
+ }
1661
+ toJulianDay(date) {
1662
+ let year = date.year;
1663
+ if (date.era === "AA") year -= $b956b2d7a6cf451f$var$AMETE_MIHRET_DELTA;
1664
+ return $b956b2d7a6cf451f$var$ceToJulianDay($b956b2d7a6cf451f$var$ETHIOPIC_EPOCH, year, date.month, date.day);
1665
+ }
1666
+ getDaysInMonth(date) {
1667
+ return $b956b2d7a6cf451f$var$getDaysInMonth(date.year, date.month);
1668
+ }
1669
+ getMonthsInYear() {
1670
+ return 13;
1671
+ }
1672
+ getDaysInYear(date) {
1673
+ return 365 + $b956b2d7a6cf451f$var$getLeapDay(date.year);
1674
+ }
1675
+ getYearsInEra(date) {
1676
+ return date.era === "AA" ? 9999 : 9991;
1677
+ }
1678
+ getEras() {
1679
+ return [
1680
+ "AA",
1681
+ "AM"
1682
+ ];
1683
+ }
1684
+ constructor() {
1685
+ this.identifier = "ethiopic";
1686
+ }
1687
+ }
1688
+ class $b956b2d7a6cf451f$export$d72e0c37005a4914 extends $b956b2d7a6cf451f$export$26ba6eab5e20cd7d {
1689
+ fromJulianDay(jd) {
1690
+ let [year, month, day] = $b956b2d7a6cf451f$var$julianDayToCE($b956b2d7a6cf451f$var$ETHIOPIC_EPOCH, jd);
1691
+ year += $b956b2d7a6cf451f$var$AMETE_MIHRET_DELTA;
1692
+ return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, "AA", year, month, day);
1693
+ }
1694
+ getEras() {
1695
+ return [
1696
+ "AA"
1697
+ ];
1698
+ }
1699
+ getYearsInEra() {
1700
+ return 9999;
1701
+ }
1702
+ constructor(...args) {
1703
+ super(...args), this.identifier = "ethioaa";
1704
+ }
1705
+ }
1706
+ class $b956b2d7a6cf451f$export$fe6243cbe1a4b7c1 extends $b956b2d7a6cf451f$export$26ba6eab5e20cd7d {
1707
+ fromJulianDay(jd) {
1708
+ let [year, month, day] = $b956b2d7a6cf451f$var$julianDayToCE($b956b2d7a6cf451f$var$COPTIC_EPOCH, jd);
1709
+ let era = "CE";
1710
+ if (year <= 0) {
1711
+ era = "BCE";
1712
+ year = 1 - year;
1713
+ }
1714
+ return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, era, year, month, day);
1715
+ }
1716
+ toJulianDay(date) {
1717
+ let year = date.year;
1718
+ if (date.era === "BCE") year = 1 - year;
1719
+ return $b956b2d7a6cf451f$var$ceToJulianDay($b956b2d7a6cf451f$var$COPTIC_EPOCH, year, date.month, date.day);
1720
+ }
1721
+ getDaysInMonth(date) {
1722
+ let year = date.year;
1723
+ if (date.era === "BCE") year = 1 - year;
1724
+ return $b956b2d7a6cf451f$var$getDaysInMonth(year, date.month);
1725
+ }
1726
+ isInverseEra(date) {
1727
+ return date.era === "BCE";
1728
+ }
1729
+ balanceDate(date) {
1730
+ if (date.year <= 0) {
1731
+ date.era = date.era === "BCE" ? "CE" : "BCE";
1732
+ date.year = 1 - date.year;
1733
+ }
1734
+ }
1735
+ getEras() {
1736
+ return [
1737
+ "BCE",
1738
+ "CE"
1739
+ ];
1740
+ }
1741
+ getYearsInEra(date) {
1742
+ return date.era === "BCE" ? 9999 : 9715;
1743
+ }
1744
+ constructor(...args) {
1745
+ super(...args), this.identifier = "coptic";
1746
+ }
1747
+ }
1748
+ function $64244302c3013299$export$dd0bbc9b26defe37(name) {
1749
+ switch (name) {
1750
+ case "buddhist":
1751
+ return new $8d73d47422ca7302$export$42d20a78301dee44();
1752
+ case "ethiopic":
1753
+ return new $b956b2d7a6cf451f$export$26ba6eab5e20cd7d();
1754
+ case "ethioaa":
1755
+ return new $b956b2d7a6cf451f$export$d72e0c37005a4914();
1756
+ case "coptic":
1757
+ return new $b956b2d7a6cf451f$export$fe6243cbe1a4b7c1();
1758
+ case "hebrew":
1759
+ return new $7c5f6fbf42389787$export$ca405048b8fb5af();
1760
+ case "indian":
1761
+ return new $82c358003bdda0a8$export$39f31c639fa15726();
1762
+ case "islamic-civil":
1763
+ return new $f2f3e0e3a817edbd$export$2066795aadd37bfc();
1764
+ case "islamic-tbla":
1765
+ return new $f2f3e0e3a817edbd$export$37f0887f2f9d22f7();
1766
+ case "islamic-umalqura":
1767
+ return new $f2f3e0e3a817edbd$export$5baab4758c231076();
1768
+ case "japanese":
1769
+ return new $62225008020f0a13$export$b746ab2b60cdffbf();
1770
+ case "persian":
1771
+ return new $f3ed2e4472ae7e25$export$37fccdbfd14c5939();
1772
+ case "roc":
1773
+ return new $5f31bd6f0c8940b2$export$65e01080afcb0799();
1774
+ case "gregory":
1775
+ default:
1776
+ return new $3b62074eb05584b2$export$80ee6245ec4f29ec();
1777
+ }
1778
+ }
1779
+ let $fb18d541ea1ad717$var$formatterCache = /* @__PURE__ */ new Map();
1780
+ class $fb18d541ea1ad717$export$ad991b66133851cf {
1781
+ /** Formats a date as a string according to the locale and format options passed to the constructor. */
1782
+ format(value) {
1783
+ return this.formatter.format(value);
1784
+ }
1785
+ /** Formats a date to an array of parts such as separators, numbers, punctuation, and more. */
1786
+ formatToParts(value) {
1787
+ return this.formatter.formatToParts(value);
1788
+ }
1789
+ /** Formats a date range as a string. */
1790
+ formatRange(start, end) {
1791
+ if (typeof this.formatter.formatRange === "function")
1792
+ return this.formatter.formatRange(start, end);
1793
+ if (end < start) throw new RangeError("End date must be >= start date");
1794
+ return `${this.formatter.format(start)} – ${this.formatter.format(end)}`;
1795
+ }
1796
+ /** Formats a date range as an array of parts. */
1797
+ formatRangeToParts(start, end) {
1798
+ if (typeof this.formatter.formatRangeToParts === "function")
1799
+ return this.formatter.formatRangeToParts(start, end);
1800
+ if (end < start) throw new RangeError("End date must be >= start date");
1801
+ let startParts = this.formatter.formatToParts(start);
1802
+ let endParts = this.formatter.formatToParts(end);
1803
+ return [
1804
+ ...startParts.map((p) => ({
1805
+ ...p,
1806
+ source: "startRange"
1807
+ })),
1808
+ {
1809
+ type: "literal",
1810
+ value: " – ",
1811
+ source: "shared"
1812
+ },
1813
+ ...endParts.map((p) => ({
1814
+ ...p,
1815
+ source: "endRange"
1816
+ }))
1817
+ ];
1818
+ }
1819
+ /** Returns the resolved formatting options based on the values passed to the constructor. */
1820
+ resolvedOptions() {
1821
+ let resolvedOptions = this.formatter.resolvedOptions();
1822
+ if ($fb18d541ea1ad717$var$hasBuggyResolvedHourCycle()) {
1823
+ if (!this.resolvedHourCycle) this.resolvedHourCycle = $fb18d541ea1ad717$var$getResolvedHourCycle(resolvedOptions.locale, this.options);
1824
+ resolvedOptions.hourCycle = this.resolvedHourCycle;
1825
+ resolvedOptions.hour12 = this.resolvedHourCycle === "h11" || this.resolvedHourCycle === "h12";
1826
+ }
1827
+ if (resolvedOptions.calendar === "ethiopic-amete-alem") resolvedOptions.calendar = "ethioaa";
1828
+ return resolvedOptions;
1829
+ }
1830
+ constructor(locale, options = {}) {
1831
+ this.formatter = $fb18d541ea1ad717$var$getCachedDateFormatter(locale, options);
1832
+ this.options = options;
1833
+ }
1834
+ }
1835
+ const $fb18d541ea1ad717$var$hour12Preferences = {
1836
+ true: {
1837
+ // Only Japanese uses the h11 style for 12 hour time. All others use h12.
1838
+ ja: "h11"
1839
+ },
1840
+ false: {}
1841
+ };
1842
+ function $fb18d541ea1ad717$var$getCachedDateFormatter(locale, options = {}) {
1843
+ if (typeof options.hour12 === "boolean" && $fb18d541ea1ad717$var$hasBuggyHour12Behavior()) {
1844
+ options = {
1845
+ ...options
1846
+ };
1847
+ let pref = $fb18d541ea1ad717$var$hour12Preferences[String(options.hour12)][locale.split("-")[0]];
1848
+ let defaultHourCycle = options.hour12 ? "h12" : "h23";
1849
+ options.hourCycle = pref !== null && pref !== void 0 ? pref : defaultHourCycle;
1850
+ delete options.hour12;
1851
+ }
1852
+ let cacheKey = locale + (options ? Object.entries(options).sort((a, b) => a[0] < b[0] ? -1 : 1).join() : "");
1853
+ if ($fb18d541ea1ad717$var$formatterCache.has(cacheKey)) return $fb18d541ea1ad717$var$formatterCache.get(cacheKey);
1854
+ let numberFormatter = new Intl.DateTimeFormat(locale, options);
1855
+ $fb18d541ea1ad717$var$formatterCache.set(cacheKey, numberFormatter);
1856
+ return numberFormatter;
1857
+ }
1858
+ let $fb18d541ea1ad717$var$_hasBuggyHour12Behavior = null;
1859
+ function $fb18d541ea1ad717$var$hasBuggyHour12Behavior() {
1860
+ if ($fb18d541ea1ad717$var$_hasBuggyHour12Behavior == null) $fb18d541ea1ad717$var$_hasBuggyHour12Behavior = new Intl.DateTimeFormat("en-US", {
1861
+ hour: "numeric",
1862
+ hour12: false
1863
+ }).format(new Date(2020, 2, 3, 0)) === "24";
1864
+ return $fb18d541ea1ad717$var$_hasBuggyHour12Behavior;
1865
+ }
1866
+ let $fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle = null;
1867
+ function $fb18d541ea1ad717$var$hasBuggyResolvedHourCycle() {
1868
+ if ($fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle == null) $fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle = new Intl.DateTimeFormat("fr", {
1869
+ hour: "numeric",
1870
+ hour12: false
1871
+ }).resolvedOptions().hourCycle === "h12";
1872
+ return $fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle;
1873
+ }
1874
+ function $fb18d541ea1ad717$var$getResolvedHourCycle(locale, options) {
1875
+ if (!options.timeStyle && !options.hour) return void 0;
1876
+ locale = locale.replace(/(-u-)?-nu-[a-zA-Z0-9]+/, "");
1877
+ locale += (locale.includes("-u-") ? "" : "-u") + "-nu-latn";
1878
+ let formatter = $fb18d541ea1ad717$var$getCachedDateFormatter(locale, {
1879
+ ...options,
1880
+ timeZone: void 0
1881
+ // use local timezone
1882
+ });
1883
+ let min = parseInt(formatter.formatToParts(new Date(2020, 2, 3, 0)).find((p) => p.type === "hour").value, 10);
1884
+ let max = parseInt(formatter.formatToParts(new Date(2020, 2, 3, 23)).find((p) => p.type === "hour").value, 10);
1885
+ if (min === 0 && max === 23) return "h23";
1886
+ if (min === 24 && max === 23) return "h24";
1887
+ if (min === 0 && max === 11) return "h11";
1888
+ if (min === 12 && max === 11) return "h12";
1889
+ throw new Error("Unexpected hour cycle result");
1890
+ }
1891
+ function toDate(dateValue, tz = $14e0f24ef4ac5c92$export$aa8b41735afcabd2()) {
1892
+ if (isZonedDateTime(dateValue)) return dateValue.toDate();
1893
+ else return dateValue.toDate(tz);
1894
+ }
1895
+ function isCalendarDateTime(dateValue) {
1896
+ return dateValue instanceof $35ea8db9cb2ccb90$export$ca871e8dbb80966f;
1897
+ }
1898
+ function isZonedDateTime(dateValue) {
1899
+ return dateValue instanceof $35ea8db9cb2ccb90$export$d3b7288e7994edea;
1900
+ }
1901
+ function hasTime(dateValue) {
1902
+ return isCalendarDateTime(dateValue) || isZonedDateTime(dateValue);
1903
+ }
1904
+ function getDaysInMonth(date) {
1905
+ if (date instanceof Date) {
1906
+ const year = date.getFullYear();
1907
+ const month = date.getMonth() + 1;
1908
+ return new Date(year, month, 0).getDate();
1909
+ } else return date.set({ day: 100 }).day;
1910
+ }
1911
+ function isBefore(dateToCompare, referenceDate) {
1912
+ return dateToCompare.compare(referenceDate) < 0;
1913
+ }
1914
+ function isAfter(dateToCompare, referenceDate) {
1915
+ return dateToCompare.compare(referenceDate) > 0;
1916
+ }
1917
+ function getLastFirstDayOfWeek(date, firstDayOfWeek, locale) {
1918
+ const day = $14e0f24ef4ac5c92$export$2061056d06d7cdf7(date, locale, "sun");
1919
+ if (firstDayOfWeek > day) return date.subtract({ days: day + 7 - firstDayOfWeek });
1920
+ if (firstDayOfWeek === day) return date;
1921
+ return date.subtract({ days: day - firstDayOfWeek });
1922
+ }
1923
+ function getNextLastDayOfWeek(date, firstDayOfWeek, locale) {
1924
+ const day = $14e0f24ef4ac5c92$export$2061056d06d7cdf7(date, locale, "sun");
1925
+ const lastDayOfWeek = firstDayOfWeek === 0 ? 6 : firstDayOfWeek - 1;
1926
+ if (day === lastDayOfWeek) return date;
1927
+ if (day > lastDayOfWeek) return date.add({ days: 7 - day + lastDayOfWeek });
1928
+ return date.add({ days: lastDayOfWeek - day });
1929
+ }
1930
+ function getDefaultDate(props) {
1931
+ const { defaultValue, defaultPlaceholder, granularity = "day", locale = "en" } = props;
1932
+ if (Array.isArray(defaultValue) && defaultValue.length) return defaultValue.at(-1).copy();
1933
+ if (defaultValue && !Array.isArray(defaultValue)) return defaultValue.copy();
1934
+ if (defaultPlaceholder) return defaultPlaceholder.copy();
1935
+ const date = /* @__PURE__ */ new Date();
1936
+ const year = date.getFullYear();
1937
+ const month = date.getMonth() + 1;
1938
+ const day = date.getDate();
1939
+ const calendarDateTimeGranularities = [
1940
+ "hour",
1941
+ "minute",
1942
+ "second"
1943
+ ];
1944
+ const defaultFormatter = new $fb18d541ea1ad717$export$ad991b66133851cf(locale);
1945
+ const calendar = $64244302c3013299$export$dd0bbc9b26defe37(defaultFormatter.resolvedOptions().calendar);
1946
+ if (calendarDateTimeGranularities.includes(granularity ?? "day")) return $11d87f3f76e88657$export$b4a036af3fc0b032(new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(year, month, day, 0, 0, 0), calendar);
1947
+ return $11d87f3f76e88657$export$b4a036af3fc0b032(new $35ea8db9cb2ccb90$export$99faa760c7908e4f(year, month, day), calendar);
1948
+ }
1949
+ function chunk(arr, size) {
1950
+ const result = [];
1951
+ for (let i = 0; i < arr.length; i += size) result.push(arr.slice(i, i + size));
1952
+ return result;
1953
+ }
1954
+ function handleCalendarInitialFocus(calendar) {
1955
+ const selectedDay = calendar.querySelector("[data-selected]");
1956
+ if (selectedDay) return selectedDay.focus();
1957
+ const today = calendar.querySelector("[data-today]");
1958
+ if (today) return today.focus();
1959
+ const firstDay = calendar.querySelector("[data-reka-calendar-day]");
1960
+ if (firstDay) return firstDay.focus();
1961
+ }
1962
+ function getDaysBetween(start, end) {
1963
+ const days = [];
1964
+ let dCurrent = start.add({ days: 1 });
1965
+ const dEnd = end;
1966
+ while (dCurrent.compare(dEnd) < 0) {
1967
+ days.push(dCurrent);
1968
+ dCurrent = dCurrent.add({ days: 1 });
1969
+ }
1970
+ return days;
1971
+ }
1972
+ function createMonth(props) {
1973
+ const { dateObj, weekStartsOn, fixedWeeks, locale } = props;
1974
+ const daysInMonth = getDaysInMonth(dateObj);
1975
+ const datesArray = Array.from({ length: daysInMonth }, (_, i) => dateObj.set({ day: i + 1 }));
1976
+ const firstDayOfMonth = $14e0f24ef4ac5c92$export$a5a3b454ada2268e(dateObj);
1977
+ const lastDayOfMonth = $14e0f24ef4ac5c92$export$a2258d9c4118825c(dateObj);
1978
+ const lastSunday = getLastFirstDayOfWeek(firstDayOfMonth, weekStartsOn, locale);
1979
+ const nextSaturday = getNextLastDayOfWeek(lastDayOfMonth, weekStartsOn, locale);
1980
+ const lastMonthDays = getDaysBetween(lastSunday.subtract({ days: 1 }), firstDayOfMonth);
1981
+ const nextMonthDays = getDaysBetween(lastDayOfMonth, nextSaturday.add({ days: 1 }));
1982
+ const totalDays = lastMonthDays.length + datesArray.length + nextMonthDays.length;
1983
+ if (fixedWeeks && totalDays < 42) {
1984
+ const extraDays = 42 - totalDays;
1985
+ let startFrom = nextMonthDays[nextMonthDays.length - 1];
1986
+ if (!startFrom) startFrom = $14e0f24ef4ac5c92$export$a2258d9c4118825c(dateObj);
1987
+ const extraDaysArray = Array.from({ length: extraDays }, (_, i) => {
1988
+ const incr = i + 1;
1989
+ return startFrom.add({ days: incr });
1990
+ });
1991
+ nextMonthDays.push(...extraDaysArray);
1992
+ }
1993
+ const allDays = lastMonthDays.concat(datesArray, nextMonthDays);
1994
+ const weeks = chunk(allDays, 7);
1995
+ return {
1996
+ value: dateObj,
1997
+ cells: allDays,
1998
+ rows: weeks
1999
+ };
2000
+ }
2001
+ function createYear(props) {
2002
+ const { dateObj, numberOfMonths = 1, pagedNavigation = false } = props;
2003
+ if (numberOfMonths && pagedNavigation) {
2004
+ const monthsArray$1 = Array.from({ length: Math.floor(12 / numberOfMonths) }, (_, i) => $14e0f24ef4ac5c92$export$a5a3b454ada2268e(dateObj.set({ month: i * numberOfMonths + 1 })));
2005
+ return monthsArray$1;
2006
+ }
2007
+ const monthsArray = Array.from({ length: 12 }, (_, i) => $14e0f24ef4ac5c92$export$a5a3b454ada2268e(dateObj.set({ month: i + 1 })));
2008
+ return monthsArray;
2009
+ }
2010
+ function createMonths(props) {
2011
+ const { numberOfMonths, dateObj, ...monthProps } = props;
2012
+ const months = [];
2013
+ if (!numberOfMonths || numberOfMonths === 1) {
2014
+ months.push(createMonth({
2015
+ ...monthProps,
2016
+ dateObj
2017
+ }));
2018
+ return months;
2019
+ }
2020
+ months.push(createMonth({
2021
+ ...monthProps,
2022
+ dateObj
2023
+ }));
2024
+ for (let i = 1; i < numberOfMonths; i++) {
2025
+ const nextMonth = dateObj.add({ months: i });
2026
+ months.push(createMonth({
2027
+ ...monthProps,
2028
+ dateObj: nextMonth
2029
+ }));
2030
+ }
2031
+ return months;
2032
+ }
2033
+ function createYearRange({ start, end }) {
2034
+ const years = [];
2035
+ if (!start || !end) return years;
2036
+ let current = $14e0f24ef4ac5c92$export$f91e89d3d0406102(start);
2037
+ while (current.compare(end) <= 0) {
2038
+ years.push(current);
2039
+ current = $14e0f24ef4ac5c92$export$f91e89d3d0406102(current.add({ years: 1 }));
2040
+ }
2041
+ return years;
2042
+ }
2043
+ function getWeekStartsOn(locale) {
2044
+ const monday = new $35ea8db9cb2ccb90$export$99faa760c7908e4f(2025, 1, 6);
2045
+ const dayOfWeek = $14e0f24ef4ac5c92$export$2061056d06d7cdf7(monday, locale);
2046
+ return (1 - dayOfWeek + 7) % 7;
2047
+ }
2048
+ function useDateFormatter(initialLocale, opts = {}) {
2049
+ const locale = ref(initialLocale);
2050
+ function getLocale() {
2051
+ return locale.value;
2052
+ }
2053
+ function setLocale(newLocale) {
2054
+ locale.value = newLocale;
2055
+ }
2056
+ function custom(date, options) {
2057
+ return new $fb18d541ea1ad717$export$ad991b66133851cf(locale.value, {
2058
+ ...opts,
2059
+ ...options
2060
+ }).format(date);
2061
+ }
2062
+ function selectedDate(date, includeTime = true) {
2063
+ if (hasTime(date) && includeTime) return custom(toDate(date), {
2064
+ dateStyle: "long",
2065
+ timeStyle: "long"
2066
+ });
2067
+ else return custom(toDate(date), { dateStyle: "long" });
2068
+ }
2069
+ function fullMonthAndYear(date, options = {}) {
2070
+ return new $fb18d541ea1ad717$export$ad991b66133851cf(locale.value, {
2071
+ ...opts,
2072
+ month: "long",
2073
+ year: "numeric",
2074
+ ...options
2075
+ }).format(date);
2076
+ }
2077
+ function fullMonth(date, options = {}) {
2078
+ return new $fb18d541ea1ad717$export$ad991b66133851cf(locale.value, {
2079
+ ...opts,
2080
+ month: "long",
2081
+ ...options
2082
+ }).format(date);
2083
+ }
2084
+ function getMonths() {
2085
+ const defaultDate = $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3($14e0f24ef4ac5c92$export$aa8b41735afcabd2());
2086
+ const months = [
2087
+ 1,
2088
+ 2,
2089
+ 3,
2090
+ 4,
2091
+ 5,
2092
+ 6,
2093
+ 7,
2094
+ 8,
2095
+ 9,
2096
+ 10,
2097
+ 11,
2098
+ 12
2099
+ ];
2100
+ return months.map((item) => ({
2101
+ label: fullMonth(toDate(defaultDate.set({ month: item }))),
2102
+ value: item
2103
+ }));
2104
+ }
2105
+ function fullYear(date, options = {}) {
2106
+ return new $fb18d541ea1ad717$export$ad991b66133851cf(locale.value, {
2107
+ ...opts,
2108
+ year: "numeric",
2109
+ ...options
2110
+ }).format(date);
2111
+ }
2112
+ function toParts(date, options) {
2113
+ if (isZonedDateTime(date)) return new $fb18d541ea1ad717$export$ad991b66133851cf(locale.value, {
2114
+ ...opts,
2115
+ ...options,
2116
+ timeZone: date.timeZone
2117
+ }).formatToParts(toDate(date));
2118
+ else return new $fb18d541ea1ad717$export$ad991b66133851cf(locale.value, {
2119
+ ...opts,
2120
+ ...options
2121
+ }).formatToParts(toDate(date));
2122
+ }
2123
+ function dayOfWeek(date, length = "narrow") {
2124
+ return new $fb18d541ea1ad717$export$ad991b66133851cf(locale.value, {
2125
+ ...opts,
2126
+ weekday: length
2127
+ }).format(date);
2128
+ }
2129
+ function dayPeriod(date) {
2130
+ var _a;
2131
+ const parts = new $fb18d541ea1ad717$export$ad991b66133851cf(locale.value, {
2132
+ ...opts,
2133
+ hour: "numeric",
2134
+ minute: "numeric"
2135
+ }).formatToParts(date);
2136
+ const value = (_a = parts.find((p) => p.type === "dayPeriod")) == null ? void 0 : _a.value;
2137
+ if (value === "PM" || value === "pm" || value === "p.m.") return "PM";
2138
+ return "AM";
2139
+ }
2140
+ const defaultPartOptions = {
2141
+ year: "numeric",
2142
+ month: "numeric",
2143
+ day: "numeric",
2144
+ hour: "numeric",
2145
+ minute: "numeric",
2146
+ second: "numeric"
2147
+ };
2148
+ function part(dateObj, type, options = {}) {
2149
+ const opts$1 = {
2150
+ ...defaultPartOptions,
2151
+ ...options
2152
+ };
2153
+ const parts = toParts(dateObj, opts$1);
2154
+ const part$1 = parts.find((p) => p.type === type);
2155
+ return part$1 ? part$1.value : "";
2156
+ }
2157
+ return {
2158
+ setLocale,
2159
+ getLocale,
2160
+ fullMonth,
2161
+ fullYear,
2162
+ fullMonthAndYear,
2163
+ toParts,
2164
+ custom,
2165
+ part,
2166
+ dayPeriod,
2167
+ selectedDate,
2168
+ dayOfWeek,
2169
+ getMonths
2170
+ };
2171
+ }
2172
+ function useLocale(locale) {
2173
+ const context = injectConfigProviderContext({ locale: ref("en") });
2174
+ return computed(() => {
2175
+ var _a;
2176
+ return (locale == null ? void 0 : locale.value) || ((_a = context.locale) == null ? void 0 : _a.value) || "en";
2177
+ });
2178
+ }
2179
+ function useCalendarState(props) {
2180
+ function isDateSelected(dateObj) {
2181
+ if (Array.isArray(props.date.value)) return props.date.value.some((d) => $14e0f24ef4ac5c92$export$ea39ec197993aef0(d, dateObj));
2182
+ else if (!props.date.value) return false;
2183
+ else return $14e0f24ef4ac5c92$export$ea39ec197993aef0(props.date.value, dateObj);
2184
+ }
2185
+ const isInvalid = computed(() => {
2186
+ var _a, _b, _c, _d;
2187
+ if (Array.isArray(props.date.value)) {
2188
+ if (!props.date.value.length) return false;
2189
+ for (const dateObj of props.date.value) {
2190
+ if ((_a = props.isDateDisabled) == null ? void 0 : _a.call(props, dateObj)) return true;
2191
+ if ((_b = props.isDateUnavailable) == null ? void 0 : _b.call(props, dateObj)) return true;
2192
+ }
2193
+ } else {
2194
+ if (!props.date.value) return false;
2195
+ if ((_c = props.isDateDisabled) == null ? void 0 : _c.call(props, props.date.value)) return true;
2196
+ if ((_d = props.isDateUnavailable) == null ? void 0 : _d.call(props, props.date.value)) return true;
2197
+ }
2198
+ return false;
2199
+ });
2200
+ const hasSelectedDate = computed(() => {
2201
+ return Array.isArray(props.date.value) ? props.date.value.length > 0 : !!props.date.value;
2202
+ });
2203
+ const isSelectedDateDisabled = computed(() => {
2204
+ var _a;
2205
+ if (Array.isArray(props.date.value)) {
2206
+ if (!props.date.value.length) return false;
2207
+ return props.date.value.some((dateObj) => {
2208
+ var _a2;
2209
+ return (_a2 = props.isDateDisabled) == null ? void 0 : _a2.call(props, dateObj);
2210
+ });
2211
+ }
2212
+ if (!props.date.value) return false;
2213
+ return !!((_a = props.isDateDisabled) == null ? void 0 : _a.call(props, props.date.value));
2214
+ });
2215
+ return {
2216
+ isDateSelected,
2217
+ isInvalid,
2218
+ hasSelectedDate,
2219
+ isSelectedDateDisabled
2220
+ };
2221
+ }
2222
+ function handleNextDisabled(lastPeriodInView, nextPageFunc) {
2223
+ const firstPeriodOfNextPage = nextPageFunc(lastPeriodInView);
2224
+ const diff = firstPeriodOfNextPage.compare(lastPeriodInView);
2225
+ const duration = {};
2226
+ if (diff >= 7) duration.day = 1;
2227
+ if (diff >= getDaysInMonth(lastPeriodInView)) duration.month = 1;
2228
+ return firstPeriodOfNextPage.set({ ...duration });
2229
+ }
2230
+ function handlePrevDisabled(firstPeriodInView, prevPageFunc) {
2231
+ const lastPeriodOfPrevPage = prevPageFunc(firstPeriodInView);
2232
+ const diff = firstPeriodInView.compare(lastPeriodOfPrevPage);
2233
+ const duration = {};
2234
+ if (diff >= 7) duration.day = 35;
2235
+ if (diff >= getDaysInMonth(firstPeriodInView)) duration.month = 13;
2236
+ return lastPeriodOfPrevPage.set({ ...duration });
2237
+ }
2238
+ function handleNextPage(date, nextPageFunc) {
2239
+ return nextPageFunc(date);
2240
+ }
2241
+ function handlePrevPage(date, prevPageFunc) {
2242
+ return prevPageFunc(date);
2243
+ }
2244
+ function useCalendar(props) {
2245
+ const formatter = useDateFormatter(props.locale.value);
2246
+ const headingFormatOptions = computed(() => {
2247
+ const options = { calendar: props.placeholder.value.calendar.identifier };
2248
+ if (props.placeholder.value.calendar.identifier === "gregory" && props.placeholder.value.era === "BC") options.era = "short";
2249
+ return options;
2250
+ });
2251
+ const grid = ref(createMonths({
2252
+ dateObj: props.placeholder.value,
2253
+ weekStartsOn: props.weekStartsOn.value,
2254
+ locale: props.locale.value,
2255
+ fixedWeeks: props.fixedWeeks.value,
2256
+ numberOfMonths: props.numberOfMonths.value
2257
+ }));
2258
+ const visibleView = computed(() => {
2259
+ return grid.value.map((month) => month.value);
2260
+ });
2261
+ function isOutsideVisibleView(date) {
2262
+ return !visibleView.value.some((month) => $14e0f24ef4ac5c92$export$5a8da0c44a3afdf2(date, month));
2263
+ }
2264
+ const isNextButtonDisabled = (nextPageFunc) => {
2265
+ if (!props.maxValue.value || !grid.value.length) return false;
2266
+ if (props.disabled.value) return true;
2267
+ const lastPeriodInView = grid.value[grid.value.length - 1].value;
2268
+ if (!nextPageFunc && !props.nextPage.value) {
2269
+ const firstPeriodOfNextPage$1 = lastPeriodInView.add({ months: 1 }).set({ day: 1 });
2270
+ return isAfter(firstPeriodOfNextPage$1, props.maxValue.value);
2271
+ }
2272
+ const firstPeriodOfNextPage = handleNextDisabled(lastPeriodInView, nextPageFunc || props.nextPage.value);
2273
+ return isAfter(firstPeriodOfNextPage, props.maxValue.value);
2274
+ };
2275
+ const isPrevButtonDisabled = (prevPageFunc) => {
2276
+ if (!props.minValue.value || !grid.value.length) return false;
2277
+ if (props.disabled.value) return true;
2278
+ const firstPeriodInView = grid.value[0].value;
2279
+ if (!prevPageFunc && !props.prevPage.value) {
2280
+ const lastPeriodOfPrevPage$1 = firstPeriodInView.subtract({ months: 1 }).set({ day: 35 });
2281
+ return isBefore(lastPeriodOfPrevPage$1, props.minValue.value);
2282
+ }
2283
+ const lastPeriodOfPrevPage = handlePrevDisabled(firstPeriodInView, prevPageFunc || props.prevPage.value);
2284
+ return isBefore(lastPeriodOfPrevPage, props.minValue.value);
2285
+ };
2286
+ function isDateDisabled(dateObj) {
2287
+ var _a;
2288
+ if (((_a = props.isDateDisabled) == null ? void 0 : _a.call(props, dateObj)) || props.disabled.value) return true;
2289
+ if (props.maxValue.value && isAfter(dateObj, props.maxValue.value)) return true;
2290
+ if (props.minValue.value && isBefore(dateObj, props.minValue.value)) return true;
2291
+ return false;
2292
+ }
2293
+ const isDateUnavailable = (date) => {
2294
+ var _a;
2295
+ if ((_a = props.isDateUnavailable) == null ? void 0 : _a.call(props, date)) return true;
2296
+ return false;
2297
+ };
2298
+ const weekdays = computed(() => {
2299
+ if (!grid.value.length) return [];
2300
+ return grid.value[0].rows[0].map((date) => {
2301
+ return formatter.dayOfWeek(toDate(date), props.weekdayFormat.value);
2302
+ });
2303
+ });
2304
+ const nextPage = (nextPageFunc) => {
2305
+ const firstDate = grid.value[0].value;
2306
+ if (!nextPageFunc && !props.nextPage.value) {
2307
+ const newDate$1 = firstDate.add({ months: props.pagedNavigation.value ? props.numberOfMonths.value : 1 });
2308
+ const newGrid$1 = createMonths({
2309
+ dateObj: newDate$1,
2310
+ weekStartsOn: props.weekStartsOn.value,
2311
+ locale: props.locale.value,
2312
+ fixedWeeks: props.fixedWeeks.value,
2313
+ numberOfMonths: props.numberOfMonths.value
2314
+ });
2315
+ grid.value = newGrid$1;
2316
+ props.placeholder.value = newGrid$1[0].value.set({ day: 1 });
2317
+ return;
2318
+ }
2319
+ const newDate = handleNextPage(firstDate, nextPageFunc || props.nextPage.value);
2320
+ const newGrid = createMonths({
2321
+ dateObj: newDate,
2322
+ weekStartsOn: props.weekStartsOn.value,
2323
+ locale: props.locale.value,
2324
+ fixedWeeks: props.fixedWeeks.value,
2325
+ numberOfMonths: props.numberOfMonths.value
2326
+ });
2327
+ grid.value = newGrid;
2328
+ const duration = {};
2329
+ if (!nextPageFunc) {
2330
+ const diff = newGrid[0].value.compare(firstDate);
2331
+ if (diff >= getDaysInMonth(firstDate)) duration.day = 1;
2332
+ if (diff >= 365) duration.month = 1;
2333
+ }
2334
+ props.placeholder.value = newGrid[0].value.set({ ...duration });
2335
+ };
2336
+ const prevPage = (prevPageFunc) => {
2337
+ const firstDate = grid.value[0].value;
2338
+ if (!prevPageFunc && !props.prevPage.value) {
2339
+ const newDate$1 = firstDate.subtract({ months: props.pagedNavigation.value ? props.numberOfMonths.value : 1 });
2340
+ const newGrid$1 = createMonths({
2341
+ dateObj: newDate$1,
2342
+ weekStartsOn: props.weekStartsOn.value,
2343
+ locale: props.locale.value,
2344
+ fixedWeeks: props.fixedWeeks.value,
2345
+ numberOfMonths: props.numberOfMonths.value
2346
+ });
2347
+ grid.value = newGrid$1;
2348
+ props.placeholder.value = newGrid$1[0].value.set({ day: 1 });
2349
+ return;
2350
+ }
2351
+ const newDate = handlePrevPage(firstDate, prevPageFunc || props.prevPage.value);
2352
+ const newGrid = createMonths({
2353
+ dateObj: newDate,
2354
+ weekStartsOn: props.weekStartsOn.value,
2355
+ locale: props.locale.value,
2356
+ fixedWeeks: props.fixedWeeks.value,
2357
+ numberOfMonths: props.numberOfMonths.value
2358
+ });
2359
+ grid.value = newGrid;
2360
+ const duration = {};
2361
+ if (!prevPageFunc) {
2362
+ const diff = firstDate.compare(newGrid[0].value);
2363
+ if (diff >= getDaysInMonth(firstDate)) duration.day = 1;
2364
+ if (diff >= 365) duration.month = 1;
2365
+ }
2366
+ props.placeholder.value = newGrid[0].value.set({ ...duration });
2367
+ };
2368
+ watch(props.placeholder, (value) => {
2369
+ if (visibleView.value.some((month) => $14e0f24ef4ac5c92$export$5a8da0c44a3afdf2(month, value))) return;
2370
+ grid.value = createMonths({
2371
+ dateObj: value,
2372
+ weekStartsOn: props.weekStartsOn.value,
2373
+ locale: props.locale.value,
2374
+ fixedWeeks: props.fixedWeeks.value,
2375
+ numberOfMonths: props.numberOfMonths.value
2376
+ });
2377
+ });
2378
+ watch([
2379
+ props.locale,
2380
+ props.weekStartsOn,
2381
+ props.fixedWeeks,
2382
+ props.numberOfMonths
2383
+ ], () => {
2384
+ grid.value = createMonths({
2385
+ dateObj: props.placeholder.value,
2386
+ weekStartsOn: props.weekStartsOn.value,
2387
+ locale: props.locale.value,
2388
+ fixedWeeks: props.fixedWeeks.value,
2389
+ numberOfMonths: props.numberOfMonths.value
2390
+ });
2391
+ });
2392
+ const headingValue = computed(() => {
2393
+ if (!grid.value.length) return "";
2394
+ if (props.locale.value !== formatter.getLocale()) formatter.setLocale(props.locale.value);
2395
+ if (grid.value.length === 1) {
2396
+ const month = grid.value[0].value;
2397
+ return `${formatter.fullMonthAndYear(toDate(month), headingFormatOptions.value)}`;
2398
+ }
2399
+ const startMonth = toDate(grid.value[0].value);
2400
+ const endMonth = toDate(grid.value[grid.value.length - 1].value);
2401
+ const startMonthName = formatter.fullMonth(startMonth, headingFormatOptions.value);
2402
+ const endMonthName = formatter.fullMonth(endMonth, headingFormatOptions.value);
2403
+ const startMonthYear = formatter.fullYear(startMonth, headingFormatOptions.value);
2404
+ const endMonthYear = formatter.fullYear(endMonth, headingFormatOptions.value);
2405
+ const content = startMonthYear === endMonthYear ? `${startMonthName} - ${endMonthName} ${endMonthYear}` : `${startMonthName} ${startMonthYear} - ${endMonthName} ${endMonthYear}`;
2406
+ return content;
2407
+ });
2408
+ const fullCalendarLabel = computed(() => `${props.calendarLabel.value ?? "Event Date"}, ${headingValue.value}`);
2409
+ const isPlaceholderFocusable = computed(() => {
2410
+ return !(isDateDisabled(props.placeholder.value) || isDateUnavailable(props.placeholder.value) || isOutsideVisibleView(props.placeholder.value));
2411
+ });
2412
+ const firstFocusableDate = computed(() => {
2413
+ for (const month of grid.value) {
2414
+ if (props.minValue.value && isBefore(month.value, props.minValue.value)) continue;
2415
+ const daysInMonth = getDaysInMonth(month.value);
2416
+ const startDay = props.minValue.value && $14e0f24ef4ac5c92$export$a18c89cbd24170ff(props.minValue.value, month.value) ? props.minValue.value.day : 1;
2417
+ for (let day = startDay; day <= daysInMonth; day++) {
2418
+ const date = month.value.set({ day });
2419
+ if (isDateDisabled(date) || isDateUnavailable(date)) continue;
2420
+ return date;
2421
+ }
2422
+ }
2423
+ });
2424
+ return {
2425
+ isDateDisabled,
2426
+ isDateUnavailable,
2427
+ isNextButtonDisabled,
2428
+ isPrevButtonDisabled,
2429
+ grid,
2430
+ weekdays,
2431
+ visibleView,
2432
+ isOutsideVisibleView,
2433
+ formatter,
2434
+ nextPage,
2435
+ prevPage,
2436
+ headingValue,
2437
+ fullCalendarLabel,
2438
+ isPlaceholderFocusable,
2439
+ firstFocusableDate
2440
+ };
2441
+ }
2442
+ const _hoisted_1$1 = { style: {
2443
+ "border": "0px",
2444
+ "clip": "rect(0px, 0px, 0px, 0px)",
2445
+ "clip-path": "inset(50%)",
2446
+ "height": "1px",
2447
+ "margin": "-1px",
2448
+ "overflow": "hidden",
2449
+ "padding": "0px",
2450
+ "position": "absolute",
2451
+ "white-space": "nowrap",
2452
+ "width": "1px"
2453
+ } };
2454
+ const _hoisted_2$1 = {
2455
+ role: "heading",
2456
+ "aria-level": "2"
2457
+ };
2458
+ const [injectCalendarRootContext, provideCalendarRootContext] = createContext("CalendarRoot");
2459
+ var CalendarRoot_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
2460
+ __name: "CalendarRoot",
2461
+ props: {
2462
+ defaultValue: {
2463
+ type: null,
2464
+ required: false,
2465
+ default: void 0
2466
+ },
2467
+ defaultPlaceholder: {
2468
+ type: null,
2469
+ required: false
2470
+ },
2471
+ placeholder: {
2472
+ type: null,
2473
+ required: false,
2474
+ default: void 0
2475
+ },
2476
+ pagedNavigation: {
2477
+ type: Boolean,
2478
+ required: false,
2479
+ default: false
2480
+ },
2481
+ preventDeselect: {
2482
+ type: Boolean,
2483
+ required: false,
2484
+ default: false
2485
+ },
2486
+ weekStartsOn: {
2487
+ type: Number,
2488
+ required: false
2489
+ },
2490
+ weekdayFormat: {
2491
+ type: String,
2492
+ required: false,
2493
+ default: "narrow"
2494
+ },
2495
+ calendarLabel: {
2496
+ type: String,
2497
+ required: false
2498
+ },
2499
+ fixedWeeks: {
2500
+ type: Boolean,
2501
+ required: false,
2502
+ default: false
2503
+ },
2504
+ maxValue: {
2505
+ type: null,
2506
+ required: false
2507
+ },
2508
+ minValue: {
2509
+ type: null,
2510
+ required: false
2511
+ },
2512
+ locale: {
2513
+ type: String,
2514
+ required: false
2515
+ },
2516
+ numberOfMonths: {
2517
+ type: Number,
2518
+ required: false,
2519
+ default: 1
2520
+ },
2521
+ disabled: {
2522
+ type: Boolean,
2523
+ required: false,
2524
+ default: false
2525
+ },
2526
+ readonly: {
2527
+ type: Boolean,
2528
+ required: false,
2529
+ default: false
2530
+ },
2531
+ initialFocus: {
2532
+ type: Boolean,
2533
+ required: false,
2534
+ default: false
2535
+ },
2536
+ isDateDisabled: {
2537
+ type: Function,
2538
+ required: false,
2539
+ default: void 0
2540
+ },
2541
+ isDateUnavailable: {
2542
+ type: Function,
2543
+ required: false,
2544
+ default: void 0
2545
+ },
2546
+ dir: {
2547
+ type: String,
2548
+ required: false
2549
+ },
2550
+ nextPage: {
2551
+ type: Function,
2552
+ required: false
2553
+ },
2554
+ prevPage: {
2555
+ type: Function,
2556
+ required: false
2557
+ },
2558
+ modelValue: {
2559
+ type: null,
2560
+ required: false
2561
+ },
2562
+ multiple: {
2563
+ type: Boolean,
2564
+ required: false,
2565
+ default: false
2566
+ },
2567
+ disableDaysOutsideCurrentView: {
2568
+ type: Boolean,
2569
+ required: false,
2570
+ default: false
2571
+ },
2572
+ asChild: {
2573
+ type: Boolean,
2574
+ required: false
2575
+ },
2576
+ as: {
2577
+ type: null,
2578
+ required: false,
2579
+ default: "div"
2580
+ }
2581
+ },
2582
+ emits: ["update:modelValue", "update:placeholder"],
2583
+ setup(__props, { emit: __emit }) {
2584
+ const props = __props;
2585
+ const emits = __emit;
2586
+ const { disabled, readonly, initialFocus, pagedNavigation, weekdayFormat, fixedWeeks, multiple, minValue, maxValue, numberOfMonths, preventDeselect, isDateDisabled: propsIsDateDisabled, isDateUnavailable: propsIsDateUnavailable, calendarLabel, defaultValue, nextPage: propsNextPage, prevPage: propsPrevPage, dir: propDir, locale: propLocale, disableDaysOutsideCurrentView } = toRefs(props);
2587
+ const { primitiveElement, currentElement: parentElement } = usePrimitiveElement();
2588
+ const locale = useLocale(propLocale);
2589
+ const dir = useDirection(propDir);
2590
+ const weekStartsOn = computed(() => props.weekStartsOn ?? getWeekStartsOn(locale.value));
2591
+ const modelValue = useVModel(props, "modelValue", emits, {
2592
+ defaultValue: defaultValue.value,
2593
+ passive: props.modelValue === void 0
2594
+ });
2595
+ const defaultDate = getDefaultDate({
2596
+ defaultPlaceholder: props.placeholder,
2597
+ defaultValue: modelValue.value,
2598
+ locale: props.locale
2599
+ });
2600
+ const placeholder = useVModel(props, "placeholder", emits, {
2601
+ defaultValue: props.defaultPlaceholder ?? defaultDate.copy(),
2602
+ passive: props.placeholder === void 0
2603
+ });
2604
+ function onPlaceholderChange(value) {
2605
+ placeholder.value = value.copy();
2606
+ }
2607
+ const { fullCalendarLabel, headingValue, isDateDisabled, isDateUnavailable, isNextButtonDisabled, isPrevButtonDisabled, weekdays, isOutsideVisibleView, nextPage, prevPage, formatter, grid, isPlaceholderFocusable, firstFocusableDate } = useCalendar({
2608
+ locale,
2609
+ placeholder,
2610
+ weekStartsOn,
2611
+ fixedWeeks,
2612
+ numberOfMonths,
2613
+ minValue,
2614
+ maxValue,
2615
+ disabled,
2616
+ weekdayFormat,
2617
+ pagedNavigation,
2618
+ isDateDisabled: propsIsDateDisabled.value,
2619
+ isDateUnavailable: propsIsDateUnavailable.value,
2620
+ calendarLabel,
2621
+ nextPage: propsNextPage,
2622
+ prevPage: propsPrevPage
2623
+ });
2624
+ const { isInvalid, isDateSelected, hasSelectedDate, isSelectedDateDisabled } = useCalendarState({
2625
+ date: modelValue,
2626
+ isDateDisabled,
2627
+ isDateUnavailable
2628
+ });
2629
+ watch(modelValue, (_modelValue) => {
2630
+ if (Array.isArray(_modelValue) && _modelValue.length) {
2631
+ const lastValue = _modelValue[_modelValue.length - 1];
2632
+ if (lastValue && !$14e0f24ef4ac5c92$export$91b62ebf2ba703ee(placeholder.value, lastValue)) onPlaceholderChange(lastValue);
2633
+ } else if (!Array.isArray(_modelValue) && _modelValue && !$14e0f24ef4ac5c92$export$91b62ebf2ba703ee(placeholder.value, _modelValue)) onPlaceholderChange(_modelValue);
2634
+ });
2635
+ function onDateChange(value) {
2636
+ if (!multiple.value) {
2637
+ if (!modelValue.value) {
2638
+ modelValue.value = value.copy();
2639
+ return;
2640
+ }
2641
+ if (!preventDeselect.value && $14e0f24ef4ac5c92$export$91b62ebf2ba703ee(modelValue.value, value)) {
2642
+ placeholder.value = value.copy();
2643
+ modelValue.value = void 0;
2644
+ } else modelValue.value = value.copy();
2645
+ } else if (!modelValue.value) modelValue.value = [value.copy()];
2646
+ else if (Array.isArray(modelValue.value)) {
2647
+ const index = modelValue.value.findIndex((date) => $14e0f24ef4ac5c92$export$ea39ec197993aef0(date, value));
2648
+ if (index === -1) modelValue.value = [...modelValue.value, value];
2649
+ else if (!preventDeselect.value) {
2650
+ const next = modelValue.value.filter((date) => !$14e0f24ef4ac5c92$export$ea39ec197993aef0(date, value));
2651
+ if (!next.length) {
2652
+ placeholder.value = value.copy();
2653
+ modelValue.value = void 0;
2654
+ return;
2655
+ }
2656
+ modelValue.value = next.map((date) => date.copy());
2657
+ }
2658
+ }
2659
+ }
2660
+ onMounted(() => {
2661
+ if (initialFocus.value) handleCalendarInitialFocus(parentElement.value);
2662
+ });
2663
+ provideCalendarRootContext({
2664
+ isDateUnavailable,
2665
+ dir,
2666
+ isDateDisabled,
2667
+ locale,
2668
+ formatter,
2669
+ modelValue,
2670
+ placeholder,
2671
+ disabled,
2672
+ initialFocus,
2673
+ pagedNavigation,
2674
+ grid,
2675
+ weekDays: weekdays,
2676
+ weekStartsOn,
2677
+ weekdayFormat,
2678
+ fixedWeeks,
2679
+ multiple,
2680
+ numberOfMonths,
2681
+ readonly,
2682
+ preventDeselect,
2683
+ fullCalendarLabel,
2684
+ headingValue,
2685
+ isInvalid,
2686
+ isDateSelected,
2687
+ isNextButtonDisabled,
2688
+ isPrevButtonDisabled,
2689
+ isOutsideVisibleView,
2690
+ nextPage,
2691
+ prevPage,
2692
+ parentElement,
2693
+ onPlaceholderChange,
2694
+ onDateChange,
2695
+ disableDaysOutsideCurrentView,
2696
+ minValue,
2697
+ maxValue,
2698
+ isPlaceholderFocusable,
2699
+ firstFocusableDate,
2700
+ hasSelectedDate,
2701
+ isSelectedDateDisabled
2702
+ });
2703
+ return (_ctx, _cache) => {
2704
+ return openBlock(), createBlock(unref(Primitive), {
2705
+ ref_key: "primitiveElement",
2706
+ ref: primitiveElement,
2707
+ as: _ctx.as,
2708
+ "as-child": _ctx.asChild,
2709
+ "aria-label": unref(fullCalendarLabel),
2710
+ "data-readonly": unref(readonly) ? "" : void 0,
2711
+ "data-disabled": unref(disabled) ? "" : void 0,
2712
+ "data-invalid": unref(isInvalid) ? "" : void 0,
2713
+ dir: unref(dir)
2714
+ }, {
2715
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default", {
2716
+ date: unref(placeholder),
2717
+ grid: unref(grid),
2718
+ weekDays: unref(weekdays),
2719
+ weekStartsOn: weekStartsOn.value,
2720
+ locale: unref(locale),
2721
+ fixedWeeks: unref(fixedWeeks),
2722
+ modelValue: unref(modelValue)
2723
+ }), createElementVNode("div", _hoisted_1$1, [createElementVNode("div", _hoisted_2$1, toDisplayString(unref(fullCalendarLabel)), 1)])]),
2724
+ _: 3
2725
+ }, 8, [
2726
+ "as",
2727
+ "as-child",
2728
+ "aria-label",
2729
+ "data-readonly",
2730
+ "data-disabled",
2731
+ "data-invalid",
2732
+ "dir"
2733
+ ]);
2734
+ };
2735
+ }
2736
+ });
2737
+ var CalendarRoot_default = CalendarRoot_vue_vue_type_script_setup_true_lang_default;
2738
+ var CalendarCell_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
2739
+ __name: "CalendarCell",
2740
+ props: {
2741
+ date: {
2742
+ type: null,
2743
+ required: true
2744
+ },
2745
+ asChild: {
2746
+ type: Boolean,
2747
+ required: false
2748
+ },
2749
+ as: {
2750
+ type: null,
2751
+ required: false,
2752
+ default: "td"
2753
+ }
2754
+ },
2755
+ setup(__props) {
2756
+ const rootContext = injectCalendarRootContext();
2757
+ return (_ctx, _cache) => {
2758
+ var _a, _b;
2759
+ return openBlock(), createBlock(unref(Primitive), {
2760
+ as: _ctx.as,
2761
+ "as-child": _ctx.asChild,
2762
+ role: "gridcell",
2763
+ "aria-selected": unref(rootContext).isDateSelected(_ctx.date) ? true : void 0,
2764
+ "aria-disabled": unref(rootContext).isDateDisabled(_ctx.date) || ((_b = (_a = unref(rootContext)).isDateUnavailable) == null ? void 0 : _b.call(_a, _ctx.date)) || unref(rootContext).disableDaysOutsideCurrentView.value,
2765
+ "data-disabled": unref(rootContext).isDateDisabled(_ctx.date) || unref(rootContext).disableDaysOutsideCurrentView.value ? "" : void 0
2766
+ }, {
2767
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
2768
+ _: 3
2769
+ }, 8, [
2770
+ "as",
2771
+ "as-child",
2772
+ "aria-selected",
2773
+ "aria-disabled",
2774
+ "data-disabled"
2775
+ ]);
2776
+ };
2777
+ }
2778
+ });
2779
+ var CalendarCell_default = CalendarCell_vue_vue_type_script_setup_true_lang_default;
2780
+ var CalendarCellTrigger_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
2781
+ __name: "CalendarCellTrigger",
2782
+ props: {
2783
+ day: {
2784
+ type: null,
2785
+ required: true
2786
+ },
2787
+ month: {
2788
+ type: null,
2789
+ required: true
2790
+ },
2791
+ asChild: {
2792
+ type: Boolean,
2793
+ required: false
2794
+ },
2795
+ as: {
2796
+ type: null,
2797
+ required: false,
2798
+ default: "div"
2799
+ }
2800
+ },
2801
+ setup(__props) {
2802
+ const props = __props;
2803
+ const kbd = useKbd();
2804
+ const rootContext = injectCalendarRootContext();
2805
+ const { primitiveElement } = usePrimitiveElement();
2806
+ const dayValue = computed(() => props.day.day.toLocaleString(rootContext.locale.value));
2807
+ const labelText = computed(() => {
2808
+ return rootContext.formatter.custom(toDate(props.day), {
2809
+ weekday: "long",
2810
+ month: "long",
2811
+ day: "numeric",
2812
+ year: "numeric"
2813
+ });
2814
+ });
2815
+ const isUnavailable = computed(() => {
2816
+ var _a;
2817
+ return ((_a = rootContext.isDateUnavailable) == null ? void 0 : _a.call(rootContext, props.day)) ?? false;
2818
+ });
2819
+ const isDateToday = computed(() => {
2820
+ return $14e0f24ef4ac5c92$export$629b0a497aa65267(props.day, $14e0f24ef4ac5c92$export$aa8b41735afcabd2());
2821
+ });
2822
+ const isOutsideView = computed(() => {
2823
+ return !$14e0f24ef4ac5c92$export$a18c89cbd24170ff(props.day, props.month);
2824
+ });
2825
+ const isOutsideVisibleView = computed(() => rootContext.isOutsideVisibleView(props.day));
2826
+ const isDisabled = computed(() => rootContext.isDateDisabled(props.day) || rootContext.disableDaysOutsideCurrentView.value && isOutsideView.value);
2827
+ const isFocusedDate = computed(() => {
2828
+ if (isOutsideView.value || isDisabled.value) return false;
2829
+ if (!rootContext.disabled.value && rootContext.isPlaceholderFocusable.value && $14e0f24ef4ac5c92$export$ea39ec197993aef0(props.day, rootContext.placeholder.value)) return true;
2830
+ if ((!rootContext.hasSelectedDate.value || rootContext.isSelectedDateDisabled.value) && !rootContext.isPlaceholderFocusable.value) return rootContext.firstFocusableDate.value && $14e0f24ef4ac5c92$export$ea39ec197993aef0(props.day, rootContext.firstFocusableDate.value);
2831
+ return false;
2832
+ });
2833
+ const isSelectedDate = computed(() => rootContext.isDateSelected(props.day));
2834
+ function changeDate(date) {
2835
+ var _a;
2836
+ if (rootContext.readonly.value) return;
2837
+ if (rootContext.isDateDisabled(date) || ((_a = rootContext.isDateUnavailable) == null ? void 0 : _a.call(rootContext, date))) return;
2838
+ rootContext.onDateChange(date);
2839
+ }
2840
+ function handleClick() {
2841
+ if (isDisabled.value) return;
2842
+ changeDate(props.day);
2843
+ }
2844
+ function handleArrowKey(e) {
2845
+ if (isDisabled.value) return;
2846
+ e.preventDefault();
2847
+ e.stopPropagation();
2848
+ const parentElement = rootContext.parentElement.value;
2849
+ const indexIncrementation = 7;
2850
+ const sign = rootContext.dir.value === "rtl" ? -1 : 1;
2851
+ switch (e.code) {
2852
+ case kbd.ARROW_RIGHT:
2853
+ shiftFocus(props.day, sign);
2854
+ break;
2855
+ case kbd.ARROW_LEFT:
2856
+ shiftFocus(props.day, -sign);
2857
+ break;
2858
+ case kbd.ARROW_UP:
2859
+ shiftFocus(props.day, -indexIncrementation);
2860
+ break;
2861
+ case kbd.ARROW_DOWN:
2862
+ shiftFocus(props.day, indexIncrementation);
2863
+ break;
2864
+ case kbd.ENTER:
2865
+ case kbd.SPACE_CODE:
2866
+ changeDate(props.day);
2867
+ }
2868
+ function shiftFocus(day, add) {
2869
+ const candidateDayValue = day.add({ days: add });
2870
+ if (rootContext.minValue.value && candidateDayValue.compare(rootContext.minValue.value) < 0 || rootContext.maxValue.value && candidateDayValue.compare(rootContext.maxValue.value) > 0) return;
2871
+ const candidateDay = parentElement.querySelector(`[data-value='${candidateDayValue.toString()}']:not([data-outside-view])`);
2872
+ if (!candidateDay) {
2873
+ if (add > 0) {
2874
+ if (rootContext.isNextButtonDisabled()) return;
2875
+ rootContext.nextPage();
2876
+ } else {
2877
+ if (rootContext.isPrevButtonDisabled()) return;
2878
+ rootContext.prevPage();
2879
+ }
2880
+ nextTick(() => {
2881
+ shiftFocus(day, add);
2882
+ });
2883
+ return;
2884
+ }
2885
+ if (candidateDay && candidateDay.hasAttribute("data-disabled")) return shiftFocus(candidateDayValue, add);
2886
+ rootContext.onPlaceholderChange(candidateDayValue);
2887
+ candidateDay == null ? void 0 : candidateDay.focus();
2888
+ }
2889
+ }
2890
+ return (_ctx, _cache) => {
2891
+ return openBlock(), createBlock(unref(Primitive), {
2892
+ ref_key: "primitiveElement",
2893
+ ref: primitiveElement,
2894
+ as: props.as,
2895
+ "as-child": props.asChild,
2896
+ role: "button",
2897
+ "aria-label": labelText.value,
2898
+ "data-reka-calendar-cell-trigger": "",
2899
+ "aria-disabled": isDisabled.value || isUnavailable.value ? true : void 0,
2900
+ "data-selected": isSelectedDate.value ? true : void 0,
2901
+ "data-value": _ctx.day.toString(),
2902
+ "data-disabled": isDisabled.value ? "" : void 0,
2903
+ "data-unavailable": isUnavailable.value ? "" : void 0,
2904
+ "data-today": isDateToday.value ? "" : void 0,
2905
+ "data-outside-view": isOutsideView.value ? "" : void 0,
2906
+ "data-outside-visible-view": isOutsideVisibleView.value ? "" : void 0,
2907
+ "data-focused": isFocusedDate.value ? "" : void 0,
2908
+ tabindex: isFocusedDate.value ? 0 : isOutsideView.value || isDisabled.value ? void 0 : -1,
2909
+ onClick: handleClick,
2910
+ onKeydown: [withKeys(handleArrowKey, [
2911
+ "up",
2912
+ "down",
2913
+ "left",
2914
+ "right",
2915
+ "space",
2916
+ "enter"
2917
+ ]), _cache[0] || (_cache[0] = withKeys(withModifiers(() => {
2918
+ }, ["prevent"]), ["enter"]))]
2919
+ }, {
2920
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default", {
2921
+ dayValue: dayValue.value,
2922
+ disabled: isDisabled.value,
2923
+ today: isDateToday.value,
2924
+ selected: isSelectedDate.value,
2925
+ outsideView: isOutsideView.value,
2926
+ outsideVisibleView: isOutsideVisibleView.value,
2927
+ unavailable: isUnavailable.value
2928
+ }, () => [createTextVNode(toDisplayString(dayValue.value), 1)])]),
2929
+ _: 3
2930
+ }, 8, [
2931
+ "as",
2932
+ "as-child",
2933
+ "aria-label",
2934
+ "aria-disabled",
2935
+ "data-selected",
2936
+ "data-value",
2937
+ "data-disabled",
2938
+ "data-unavailable",
2939
+ "data-today",
2940
+ "data-outside-view",
2941
+ "data-outside-visible-view",
2942
+ "data-focused",
2943
+ "tabindex"
2944
+ ]);
2945
+ };
2946
+ }
2947
+ });
2948
+ var CalendarCellTrigger_default = CalendarCellTrigger_vue_vue_type_script_setup_true_lang_default;
2949
+ var CalendarGrid_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
2950
+ __name: "CalendarGrid",
2951
+ props: {
2952
+ asChild: {
2953
+ type: Boolean,
2954
+ required: false
2955
+ },
2956
+ as: {
2957
+ type: null,
2958
+ required: false,
2959
+ default: "table"
2960
+ }
2961
+ },
2962
+ setup(__props) {
2963
+ const props = __props;
2964
+ const rootContext = injectCalendarRootContext();
2965
+ const disabled = computed(() => rootContext.disabled.value ? true : void 0);
2966
+ const readonly = computed(() => rootContext.readonly.value ? true : void 0);
2967
+ return (_ctx, _cache) => {
2968
+ return openBlock(), createBlock(unref(Primitive), mergeProps(props, {
2969
+ tabindex: "-1",
2970
+ role: "application",
2971
+ "aria-readonly": readonly.value,
2972
+ "aria-disabled": disabled.value,
2973
+ "data-readonly": readonly.value && "",
2974
+ "data-disabled": disabled.value && ""
2975
+ }), {
2976
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
2977
+ _: 3
2978
+ }, 16, [
2979
+ "aria-readonly",
2980
+ "aria-disabled",
2981
+ "data-readonly",
2982
+ "data-disabled"
2983
+ ]);
2984
+ };
2985
+ }
2986
+ });
2987
+ var CalendarGrid_default = CalendarGrid_vue_vue_type_script_setup_true_lang_default;
2988
+ var CalendarGridBody_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
2989
+ __name: "CalendarGridBody",
2990
+ props: {
2991
+ asChild: {
2992
+ type: Boolean,
2993
+ required: false
2994
+ },
2995
+ as: {
2996
+ type: null,
2997
+ required: false,
2998
+ default: "tbody"
2999
+ }
3000
+ },
3001
+ setup(__props) {
3002
+ const props = __props;
3003
+ return (_ctx, _cache) => {
3004
+ return openBlock(), createBlock(unref(Primitive), normalizeProps(guardReactiveProps(props)), {
3005
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
3006
+ _: 3
3007
+ }, 16);
3008
+ };
3009
+ }
3010
+ });
3011
+ var CalendarGridBody_default = CalendarGridBody_vue_vue_type_script_setup_true_lang_default;
3012
+ var CalendarGridHead_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
3013
+ __name: "CalendarGridHead",
3014
+ props: {
3015
+ asChild: {
3016
+ type: Boolean,
3017
+ required: false
3018
+ },
3019
+ as: {
3020
+ type: null,
3021
+ required: false,
3022
+ default: "thead"
3023
+ }
3024
+ },
3025
+ setup(__props) {
3026
+ const props = __props;
3027
+ return (_ctx, _cache) => {
3028
+ return openBlock(), createBlock(unref(Primitive), mergeProps(props, { "aria-hidden": "true" }), {
3029
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
3030
+ _: 3
3031
+ }, 16);
3032
+ };
3033
+ }
3034
+ });
3035
+ var CalendarGridHead_default = CalendarGridHead_vue_vue_type_script_setup_true_lang_default;
3036
+ var CalendarGridRow_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
3037
+ __name: "CalendarGridRow",
3038
+ props: {
3039
+ asChild: {
3040
+ type: Boolean,
3041
+ required: false
3042
+ },
3043
+ as: {
3044
+ type: null,
3045
+ required: false,
3046
+ default: "tr"
3047
+ }
3048
+ },
3049
+ setup(__props) {
3050
+ const props = __props;
3051
+ return (_ctx, _cache) => {
3052
+ return openBlock(), createBlock(unref(Primitive), normalizeProps(guardReactiveProps(props)), {
3053
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
3054
+ _: 3
3055
+ }, 16);
3056
+ };
3057
+ }
3058
+ });
3059
+ var CalendarGridRow_default = CalendarGridRow_vue_vue_type_script_setup_true_lang_default;
3060
+ var CalendarHeadCell_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
3061
+ __name: "CalendarHeadCell",
3062
+ props: {
3063
+ asChild: {
3064
+ type: Boolean,
3065
+ required: false
3066
+ },
3067
+ as: {
3068
+ type: null,
3069
+ required: false,
3070
+ default: "th"
3071
+ }
3072
+ },
3073
+ setup(__props) {
3074
+ const props = __props;
3075
+ return (_ctx, _cache) => {
3076
+ return openBlock(), createBlock(unref(Primitive), normalizeProps(guardReactiveProps(props)), {
3077
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
3078
+ _: 3
3079
+ }, 16);
3080
+ };
3081
+ }
3082
+ });
3083
+ var CalendarHeadCell_default = CalendarHeadCell_vue_vue_type_script_setup_true_lang_default;
3084
+ var CalendarHeader_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
3085
+ __name: "CalendarHeader",
3086
+ props: {
3087
+ asChild: {
3088
+ type: Boolean,
3089
+ required: false
3090
+ },
3091
+ as: {
3092
+ type: null,
3093
+ required: false,
3094
+ default: "div"
3095
+ }
3096
+ },
3097
+ setup(__props) {
3098
+ const props = __props;
3099
+ return (_ctx, _cache) => {
3100
+ return openBlock(), createBlock(unref(Primitive), normalizeProps(guardReactiveProps(props)), {
3101
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
3102
+ _: 3
3103
+ }, 16);
3104
+ };
3105
+ }
3106
+ });
3107
+ var CalendarHeader_default = CalendarHeader_vue_vue_type_script_setup_true_lang_default;
3108
+ var CalendarHeading_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
3109
+ __name: "CalendarHeading",
3110
+ props: {
3111
+ asChild: {
3112
+ type: Boolean,
3113
+ required: false
3114
+ },
3115
+ as: {
3116
+ type: null,
3117
+ required: false,
3118
+ default: "div"
3119
+ }
3120
+ },
3121
+ setup(__props) {
3122
+ const props = __props;
3123
+ const rootContext = injectCalendarRootContext();
3124
+ return (_ctx, _cache) => {
3125
+ return openBlock(), createBlock(unref(Primitive), mergeProps(props, { "data-disabled": unref(rootContext).disabled.value ? "" : void 0 }), {
3126
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default", { headingValue: unref(rootContext).headingValue.value }, () => [createTextVNode(toDisplayString(unref(rootContext).headingValue.value), 1)])]),
3127
+ _: 3
3128
+ }, 16, ["data-disabled"]);
3129
+ };
3130
+ }
3131
+ });
3132
+ var CalendarHeading_default = CalendarHeading_vue_vue_type_script_setup_true_lang_default;
3133
+ var CalendarNext_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
3134
+ __name: "CalendarNext",
3135
+ props: {
3136
+ nextPage: {
3137
+ type: Function,
3138
+ required: false
3139
+ },
3140
+ asChild: {
3141
+ type: Boolean,
3142
+ required: false
3143
+ },
3144
+ as: {
3145
+ type: null,
3146
+ required: false,
3147
+ default: "button"
3148
+ }
3149
+ },
3150
+ setup(__props) {
3151
+ const props = __props;
3152
+ const disabled = computed(() => rootContext.disabled.value || rootContext.isNextButtonDisabled(props.nextPage));
3153
+ const rootContext = injectCalendarRootContext();
3154
+ function handleClick() {
3155
+ if (disabled.value) return;
3156
+ rootContext.nextPage(props.nextPage);
3157
+ }
3158
+ return (_ctx, _cache) => {
3159
+ return openBlock(), createBlock(unref(Primitive), {
3160
+ as: props.as,
3161
+ "as-child": props.asChild,
3162
+ "aria-label": "Next page",
3163
+ type: props.as === "button" ? "button" : void 0,
3164
+ "aria-disabled": disabled.value || void 0,
3165
+ "data-disabled": disabled.value || void 0,
3166
+ disabled: disabled.value,
3167
+ onClick: handleClick
3168
+ }, {
3169
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default", { disabled: disabled.value }, () => [_cache[0] || (_cache[0] = createTextVNode(" Next page "))])]),
3170
+ _: 3
3171
+ }, 8, [
3172
+ "as",
3173
+ "as-child",
3174
+ "type",
3175
+ "aria-disabled",
3176
+ "data-disabled",
3177
+ "disabled"
3178
+ ]);
3179
+ };
3180
+ }
3181
+ });
3182
+ var CalendarNext_default = CalendarNext_vue_vue_type_script_setup_true_lang_default;
3183
+ var CalendarPrev_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
3184
+ __name: "CalendarPrev",
3185
+ props: {
3186
+ prevPage: {
3187
+ type: Function,
3188
+ required: false
3189
+ },
3190
+ asChild: {
3191
+ type: Boolean,
3192
+ required: false
3193
+ },
3194
+ as: {
3195
+ type: null,
3196
+ required: false,
3197
+ default: "button"
3198
+ }
3199
+ },
3200
+ setup(__props) {
3201
+ const props = __props;
3202
+ const disabled = computed(() => rootContext.disabled.value || rootContext.isPrevButtonDisabled(props.prevPage));
3203
+ const rootContext = injectCalendarRootContext();
3204
+ function handleClick() {
3205
+ if (disabled.value) return;
3206
+ rootContext.prevPage(props.prevPage);
3207
+ }
3208
+ return (_ctx, _cache) => {
3209
+ return openBlock(), createBlock(unref(Primitive), {
3210
+ "aria-label": "Previous page",
3211
+ as: props.as,
3212
+ "as-child": props.asChild,
3213
+ type: props.as === "button" ? "button" : void 0,
3214
+ "aria-disabled": disabled.value || void 0,
3215
+ "data-disabled": disabled.value || void 0,
3216
+ disabled: disabled.value,
3217
+ onClick: handleClick
3218
+ }, {
3219
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default", { disabled: disabled.value }, () => [_cache[0] || (_cache[0] = createTextVNode(" Prev page "))])]),
3220
+ _: 3
3221
+ }, 8, [
3222
+ "as",
3223
+ "as-child",
3224
+ "type",
3225
+ "aria-disabled",
3226
+ "data-disabled",
3227
+ "disabled"
3228
+ ]);
3229
+ };
3230
+ }
3231
+ });
3232
+ var CalendarPrev_default = CalendarPrev_vue_vue_type_script_setup_true_lang_default;
3233
+ /**
3234
+ * @license lucide-vue-next v1.0.0 - ISC
3235
+ *
3236
+ * This source code is licensed under the ISC license.
3237
+ * See the LICENSE file in the root directory of this source tree.
3238
+ */
3239
+ const ChevronLeft = createLucideIcon("chevron-left", [
3240
+ ["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]
3241
+ ]);
3242
+ /**
3243
+ * @license lucide-vue-next v1.0.0 - ISC
3244
+ *
3245
+ * This source code is licensed under the ISC license.
3246
+ * See the LICENSE file in the root directory of this source tree.
3247
+ */
3248
+ const ChevronRight = createLucideIcon("chevron-right", [
3249
+ ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
3250
+ ]);
3251
+ const _hoisted_1 = { class: "**:data-[slot=native-select-icon]:right-1" };
3252
+ const _hoisted_2 = { class: "relative rounded border border-(--border-light) bg-(--button-secondary-light) transition-all duration-300 ease-in-out dark:border-(--border-dark) dark:bg-(--button-secondary-dark)" };
3253
+ const _hoisted_3 = { class: "absolute inset-0 z-10 flex h-full items-center text-sm pl-2 pointer-events-none" };
3254
+ const _hoisted_4 = { class: "**:data-[slot=native-select-icon]:right-1" };
3255
+ const _hoisted_5 = { class: "relative rounded border border-(--border-light) bg-(--button-secondary-light) transition-all duration-300 ease-in-out dark:border-(--border-dark) dark:bg-(--button-secondary-dark)" };
3256
+ const _hoisted_6 = { class: "absolute inset-0 z-10 flex h-full items-center text-sm pl-2 pointer-events-none" };
3257
+ const _hoisted_7 = { class: "flex items-center gap-1 absolute top-0 inset-x-0 justify-between" };
3258
+ const _hoisted_8 = {
3259
+ key: 0,
3260
+ class: "flex items-center justify-center gap-1"
3261
+ };
3262
+ const _hoisted_9 = {
3263
+ key: 1,
3264
+ class: "flex items-center justify-center gap-1"
3265
+ };
3266
+ const _hoisted_10 = {
3267
+ key: 2,
3268
+ class: "flex items-center justify-center gap-1"
3269
+ };
3270
+ const _hoisted_11 = { class: "flex flex-col gap-y-4 mt-4 sm:flex-row sm:gap-x-4 sm:gap-y-0" };
3271
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
3272
+ __name: "Calendar",
3273
+ props: {
3274
+ defaultValue: {},
3275
+ defaultPlaceholder: {},
3276
+ placeholder: {},
3277
+ pagedNavigation: { type: Boolean },
3278
+ preventDeselect: { type: Boolean },
3279
+ weekStartsOn: {},
3280
+ weekdayFormat: {},
3281
+ calendarLabel: {},
3282
+ fixedWeeks: { type: Boolean },
3283
+ maxValue: {},
3284
+ minValue: {},
3285
+ locale: {},
3286
+ numberOfMonths: {},
3287
+ disabled: { type: Boolean },
3288
+ readonly: { type: Boolean },
3289
+ initialFocus: { type: Boolean },
3290
+ isDateDisabled: {},
3291
+ isDateUnavailable: {},
3292
+ dir: {},
3293
+ nextPage: {},
3294
+ prevPage: {},
3295
+ modelValue: { default: void 0 },
3296
+ multiple: { type: Boolean },
3297
+ disableDaysOutsideCurrentView: { type: Boolean },
3298
+ asChild: { type: Boolean },
3299
+ as: {},
3300
+ class: {},
3301
+ layout: { default: void 0 },
3302
+ yearRange: {}
3303
+ },
3304
+ emits: ["update:modelValue", "update:placeholder"],
3305
+ setup(__props, { emit: __emit }) {
3306
+ const props = __props;
3307
+ const emits = __emit;
3308
+ const delegatedProps = reactiveOmit(props, "class", "layout", "placeholder");
3309
+ const placeholder = useVModel(props, "placeholder", emits, {
3310
+ passive: true,
3311
+ defaultValue: props.defaultPlaceholder ?? $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3($14e0f24ef4ac5c92$export$aa8b41735afcabd2())
3312
+ });
3313
+ const formatter = useDateFormatter(props.locale ?? "en");
3314
+ const yearRange = computed(() => {
3315
+ return props.yearRange ?? createYearRange({
3316
+ start: (props == null ? void 0 : props.minValue) ?? (toRaw(props.placeholder) ?? props.defaultPlaceholder ?? $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3($14e0f24ef4ac5c92$export$aa8b41735afcabd2())).cycle("year", -100),
3317
+ end: (props == null ? void 0 : props.maxValue) ?? (toRaw(props.placeholder) ?? props.defaultPlaceholder ?? $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3($14e0f24ef4ac5c92$export$aa8b41735afcabd2())).cycle("year", 10)
3318
+ });
3319
+ });
3320
+ const [DefineMonthTemplate, ReuseMonthTemplate] = createReusableTemplate();
3321
+ const [DefineYearTemplate, ReuseYearTemplate] = createReusableTemplate();
3322
+ const forwarded = useForwardPropsEmits(delegatedProps, emits);
3323
+ return (_ctx, _cache) => {
3324
+ return openBlock(), createElementBlock(Fragment, null, [
3325
+ createVNode(unref(DefineMonthTemplate), null, {
3326
+ default: withCtx(({ date }) => [
3327
+ createElementVNode("div", _hoisted_1, [
3328
+ createElementVNode("div", _hoisted_2, [
3329
+ createElementVNode("div", _hoisted_3, toDisplayString(unref(formatter).custom(unref(toDate)(date), { month: "short" })), 1),
3330
+ createVNode(unref(_sfc_main$c), {
3331
+ class: "relative z-20 h-8 w-[92px] rounded-none border-0 bg-transparent pl-2 pr-6 text-xs font-medium text-transparent shadow-none transition-all duration-300 ease-in-out outline-none ring-0 focus-visible:border-0 focus-visible:ring-0 dark:bg-transparent sm:text-sm",
3332
+ "model-value": date.month,
3333
+ onChange: _cache[0] || (_cache[0] = (e) => {
3334
+ var _a;
3335
+ placeholder.value = unref(placeholder).set({
3336
+ month: Number((_a = e == null ? void 0 : e.target) == null ? void 0 : _a.value)
3337
+ });
3338
+ })
3339
+ }, {
3340
+ default: withCtx(() => [
3341
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(createYear)({ dateObj: date }), (month) => {
3342
+ return openBlock(), createBlock(unref(_sfc_main$d), {
3343
+ key: month.toString(),
3344
+ value: month.month,
3345
+ selected: date.month === month.month
3346
+ }, {
3347
+ default: withCtx(() => [
3348
+ createTextVNode(toDisplayString(unref(formatter).custom(unref(toDate)(month), { month: "short" })), 1)
3349
+ ]),
3350
+ _: 2
3351
+ }, 1032, ["value", "selected"]);
3352
+ }), 128))
3353
+ ]),
3354
+ _: 2
3355
+ }, 1032, ["model-value"])
3356
+ ])
3357
+ ])
3358
+ ]),
3359
+ _: 1
3360
+ }),
3361
+ createVNode(unref(DefineYearTemplate), null, {
3362
+ default: withCtx(({ date }) => [
3363
+ createElementVNode("div", _hoisted_4, [
3364
+ createElementVNode("div", _hoisted_5, [
3365
+ createElementVNode("div", _hoisted_6, toDisplayString(unref(formatter).custom(unref(toDate)(date), { year: "numeric" })), 1),
3366
+ createVNode(unref(_sfc_main$c), {
3367
+ class: "relative z-20 h-8 w-[96px] rounded-none border-0 bg-transparent pl-2 pr-6 text-xs font-medium text-transparent shadow-none transition-all duration-300 ease-in-out outline-none ring-0 focus-visible:border-0 focus-visible:ring-0 dark:bg-transparent sm:text-sm",
3368
+ "model-value": date.year,
3369
+ onChange: _cache[1] || (_cache[1] = (e) => {
3370
+ var _a;
3371
+ placeholder.value = unref(placeholder).set({
3372
+ year: Number((_a = e == null ? void 0 : e.target) == null ? void 0 : _a.value)
3373
+ });
3374
+ })
3375
+ }, {
3376
+ default: withCtx(() => [
3377
+ (openBlock(true), createElementBlock(Fragment, null, renderList(yearRange.value, (year) => {
3378
+ return openBlock(), createBlock(unref(_sfc_main$d), {
3379
+ key: year.toString(),
3380
+ value: year.year,
3381
+ selected: date.year === year.year
3382
+ }, {
3383
+ default: withCtx(() => [
3384
+ createTextVNode(toDisplayString(unref(formatter).custom(unref(toDate)(year), { year: "numeric" })), 1)
3385
+ ]),
3386
+ _: 2
3387
+ }, 1032, ["value", "selected"]);
3388
+ }), 128))
3389
+ ]),
3390
+ _: 2
3391
+ }, 1032, ["model-value"])
3392
+ ])
3393
+ ])
3394
+ ]),
3395
+ _: 1
3396
+ }),
3397
+ createVNode(unref(CalendarRoot_default), mergeProps(unref(forwarded), {
3398
+ placeholder: unref(placeholder),
3399
+ "onUpdate:placeholder": _cache[2] || (_cache[2] = ($event) => isRef(placeholder) ? placeholder.value = $event : null),
3400
+ "data-slot": "calendar",
3401
+ class: unref(cn)("p-3", props.class)
3402
+ }), {
3403
+ default: withCtx(({ grid, weekDays, date }) => [
3404
+ createVNode(unref(_sfc_main$3), { class: "pt-0" }, {
3405
+ default: withCtx(() => [
3406
+ createElementVNode("nav", _hoisted_7, [
3407
+ createVNode(unref(_sfc_main), null, {
3408
+ default: withCtx(() => [
3409
+ renderSlot(_ctx.$slots, "calendar-prev-icon")
3410
+ ]),
3411
+ _: 3
3412
+ }),
3413
+ createVNode(unref(_sfc_main$1), null, {
3414
+ default: withCtx(() => [
3415
+ renderSlot(_ctx.$slots, "calendar-next-icon")
3416
+ ]),
3417
+ _: 3
3418
+ })
3419
+ ]),
3420
+ renderSlot(_ctx.$slots, "calendar-heading", {
3421
+ date,
3422
+ month: unref(ReuseMonthTemplate),
3423
+ year: unref(ReuseYearTemplate)
3424
+ }, () => [
3425
+ _ctx.layout === "month-and-year" ? (openBlock(), createElementBlock("div", _hoisted_8, [
3426
+ createVNode(unref(ReuseMonthTemplate), { date }, null, 8, ["date"]),
3427
+ createVNode(unref(ReuseYearTemplate), { date }, null, 8, ["date"])
3428
+ ])) : _ctx.layout === "month-only" ? (openBlock(), createElementBlock("div", _hoisted_9, [
3429
+ createVNode(unref(ReuseMonthTemplate), { date }, null, 8, ["date"]),
3430
+ createTextVNode(" " + toDisplayString(unref(formatter).custom(unref(toDate)(date), { year: "numeric" })), 1)
3431
+ ])) : _ctx.layout === "year-only" ? (openBlock(), createElementBlock("div", _hoisted_10, [
3432
+ createTextVNode(toDisplayString(unref(formatter).custom(unref(toDate)(date), { month: "short" })) + " ", 1),
3433
+ createVNode(unref(ReuseYearTemplate), { date }, null, 8, ["date"])
3434
+ ])) : (openBlock(), createBlock(unref(_sfc_main$2), { key: 3 }))
3435
+ ])
3436
+ ]),
3437
+ _: 2
3438
+ }, 1024),
3439
+ createElementVNode("div", _hoisted_11, [
3440
+ (openBlock(true), createElementBlock(Fragment, null, renderList(grid, (month) => {
3441
+ return openBlock(), createBlock(unref(_sfc_main$8), {
3442
+ key: month.value.toString()
3443
+ }, {
3444
+ default: withCtx(() => [
3445
+ createVNode(unref(_sfc_main$6), null, {
3446
+ default: withCtx(() => [
3447
+ createVNode(unref(_sfc_main$5), null, {
3448
+ default: withCtx(() => [
3449
+ (openBlock(true), createElementBlock(Fragment, null, renderList(weekDays, (day) => {
3450
+ return openBlock(), createBlock(unref(_sfc_main$4), { key: day }, {
3451
+ default: withCtx(() => [
3452
+ createTextVNode(toDisplayString(day), 1)
3453
+ ]),
3454
+ _: 2
3455
+ }, 1024);
3456
+ }), 128))
3457
+ ]),
3458
+ _: 2
3459
+ }, 1024)
3460
+ ]),
3461
+ _: 2
3462
+ }, 1024),
3463
+ createVNode(unref(_sfc_main$7), null, {
3464
+ default: withCtx(() => [
3465
+ (openBlock(true), createElementBlock(Fragment, null, renderList(month.rows, (weekDates, index) => {
3466
+ return openBlock(), createBlock(unref(_sfc_main$5), {
3467
+ key: `weekDate-${index}`,
3468
+ class: "mt-2 w-full"
3469
+ }, {
3470
+ default: withCtx(() => [
3471
+ (openBlock(true), createElementBlock(Fragment, null, renderList(weekDates, (weekDate) => {
3472
+ return openBlock(), createBlock(unref(_sfc_main$a), {
3473
+ key: weekDate.toString(),
3474
+ date: weekDate
3475
+ }, {
3476
+ default: withCtx(() => [
3477
+ createVNode(unref(_sfc_main$9), {
3478
+ day: weekDate,
3479
+ month: month.value
3480
+ }, null, 8, ["day", "month"])
3481
+ ]),
3482
+ _: 2
3483
+ }, 1032, ["date"]);
3484
+ }), 128))
3485
+ ]),
3486
+ _: 2
3487
+ }, 1024);
3488
+ }), 128))
3489
+ ]),
3490
+ _: 2
3491
+ }, 1024)
3492
+ ]),
3493
+ _: 2
3494
+ }, 1024);
3495
+ }), 128))
3496
+ ])
3497
+ ]),
3498
+ _: 3
3499
+ }, 16, ["placeholder", "class"])
3500
+ ], 64);
3501
+ };
3502
+ }
3503
+ });
3504
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
3505
+ __name: "CalendarCell",
3506
+ props: {
3507
+ date: {},
3508
+ asChild: { type: Boolean },
3509
+ as: {},
3510
+ class: {}
3511
+ },
3512
+ setup(__props) {
3513
+ const props = __props;
3514
+ const delegatedProps = reactiveOmit(props, "class");
3515
+ const forwardedProps = useForwardProps(delegatedProps);
3516
+ return (_ctx, _cache) => {
3517
+ return openBlock(), createBlock(unref(CalendarCell_default), mergeProps({
3518
+ "data-slot": "calendar-cell",
3519
+ class: unref(cn)("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 flex-1 [&:has([data-selected])]:rounded-md [&:has([data-selected])]:bg-accent", props.class)
3520
+ }, unref(forwardedProps)), {
3521
+ default: withCtx(() => [
3522
+ renderSlot(_ctx.$slots, "default")
3523
+ ]),
3524
+ _: 3
3525
+ }, 16, ["class"]);
3526
+ };
3527
+ }
3528
+ });
3529
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
3530
+ __name: "CalendarCellTrigger",
3531
+ props: {
3532
+ day: {},
3533
+ month: {},
3534
+ asChild: { type: Boolean },
3535
+ as: { default: "button" },
3536
+ class: {}
3537
+ },
3538
+ setup(__props) {
3539
+ const props = __props;
3540
+ const delegatedProps = reactiveOmit(props, "class");
3541
+ const forwardedProps = useForwardProps(delegatedProps);
3542
+ return (_ctx, _cache) => {
3543
+ return openBlock(), createBlock(unref(CalendarCellTrigger_default), mergeProps({
3544
+ "data-slot": "calendar-cell-trigger",
3545
+ class: unref(cn)(
3546
+ unref(buttonVariants)({ variant: "ghost" }),
3547
+ "size-8 p-0 font-normal aria-selected:opacity-100 cursor-default",
3548
+ "[&[data-today]:not([data-selected])]:bg-accent [&[data-today]:not([data-selected])]:text-accent-foreground",
3549
+ // Selected
3550
+ "data-[selected]:bg-primary data-[selected]:text-primary-foreground data-[selected]:opacity-100 [&[data-selected]:hover]:bg-primary data-[selected]:hover:text-primary-foreground data-[selected]:focus:bg-primary data-[selected]:focus:text-primary-foreground",
3551
+ // Disabled
3552
+ "data-[disabled]:text-muted-foreground data-[disabled]:opacity-50",
3553
+ // Unavailable
3554
+ "data-[unavailable]:text-destructive-foreground data-[unavailable]:line-through",
3555
+ // Outside months
3556
+ "data-[outside-view]:text-muted-foreground",
3557
+ props.class
3558
+ )
3559
+ }, unref(forwardedProps)), {
3560
+ default: withCtx(() => [
3561
+ renderSlot(_ctx.$slots, "default")
3562
+ ]),
3563
+ _: 3
3564
+ }, 16, ["class"]);
3565
+ };
3566
+ }
3567
+ });
3568
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
3569
+ __name: "CalendarGrid",
3570
+ props: {
3571
+ asChild: { type: Boolean },
3572
+ as: {},
3573
+ class: {}
3574
+ },
3575
+ setup(__props) {
3576
+ const props = __props;
3577
+ const delegatedProps = reactiveOmit(props, "class");
3578
+ const forwardedProps = useForwardProps(delegatedProps);
3579
+ return (_ctx, _cache) => {
3580
+ return openBlock(), createBlock(unref(CalendarGrid_default), mergeProps({
3581
+ "data-slot": "calendar-grid",
3582
+ class: unref(cn)("w-full border-collapse space-x-1", props.class)
3583
+ }, unref(forwardedProps)), {
3584
+ default: withCtx(() => [
3585
+ renderSlot(_ctx.$slots, "default")
3586
+ ]),
3587
+ _: 3
3588
+ }, 16, ["class"]);
3589
+ };
3590
+ }
3591
+ });
3592
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
3593
+ __name: "CalendarGridBody",
3594
+ props: {
3595
+ asChild: { type: Boolean },
3596
+ as: {}
3597
+ },
3598
+ setup(__props) {
3599
+ const props = __props;
3600
+ return (_ctx, _cache) => {
3601
+ return openBlock(), createBlock(unref(CalendarGridBody_default), mergeProps({ "data-slot": "calendar-grid-body" }, props), {
3602
+ default: withCtx(() => [
3603
+ renderSlot(_ctx.$slots, "default")
3604
+ ]),
3605
+ _: 3
3606
+ }, 16);
3607
+ };
3608
+ }
3609
+ });
3610
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
3611
+ __name: "CalendarGridHead",
3612
+ props: {
3613
+ asChild: { type: Boolean },
3614
+ as: {},
3615
+ class: {}
3616
+ },
3617
+ setup(__props) {
3618
+ const props = __props;
3619
+ return (_ctx, _cache) => {
3620
+ return openBlock(), createBlock(unref(CalendarGridHead_default), mergeProps({ "data-slot": "calendar-grid-head" }, props), {
3621
+ default: withCtx(() => [
3622
+ renderSlot(_ctx.$slots, "default")
3623
+ ]),
3624
+ _: 3
3625
+ }, 16);
3626
+ };
3627
+ }
3628
+ });
3629
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3630
+ __name: "CalendarGridRow",
3631
+ props: {
3632
+ asChild: { type: Boolean },
3633
+ as: {},
3634
+ class: {}
3635
+ },
3636
+ setup(__props) {
3637
+ const props = __props;
3638
+ const delegatedProps = reactiveOmit(props, "class");
3639
+ const forwardedProps = useForwardProps(delegatedProps);
3640
+ return (_ctx, _cache) => {
3641
+ return openBlock(), createBlock(unref(CalendarGridRow_default), mergeProps({
3642
+ "data-slot": "calendar-grid-row",
3643
+ class: unref(cn)("flex", props.class)
3644
+ }, unref(forwardedProps)), {
3645
+ default: withCtx(() => [
3646
+ renderSlot(_ctx.$slots, "default")
3647
+ ]),
3648
+ _: 3
3649
+ }, 16, ["class"]);
3650
+ };
3651
+ }
3652
+ });
3653
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3654
+ __name: "CalendarHeadCell",
3655
+ props: {
3656
+ asChild: { type: Boolean },
3657
+ as: {},
3658
+ class: {}
3659
+ },
3660
+ setup(__props) {
3661
+ const props = __props;
3662
+ const delegatedProps = reactiveOmit(props, "class");
3663
+ const forwardedProps = useForwardProps(delegatedProps);
3664
+ return (_ctx, _cache) => {
3665
+ return openBlock(), createBlock(unref(CalendarHeadCell_default), mergeProps({
3666
+ "data-slot": "calendar-head-cell",
3667
+ class: unref(cn)("text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem]", props.class)
3668
+ }, unref(forwardedProps)), {
3669
+ default: withCtx(() => [
3670
+ renderSlot(_ctx.$slots, "default")
3671
+ ]),
3672
+ _: 3
3673
+ }, 16, ["class"]);
3674
+ };
3675
+ }
3676
+ });
3677
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
3678
+ __name: "CalendarHeader",
3679
+ props: {
3680
+ asChild: { type: Boolean },
3681
+ as: {},
3682
+ class: {}
3683
+ },
3684
+ setup(__props) {
3685
+ const props = __props;
3686
+ const delegatedProps = reactiveOmit(props, "class");
3687
+ const forwardedProps = useForwardProps(delegatedProps);
3688
+ return (_ctx, _cache) => {
3689
+ return openBlock(), createBlock(unref(CalendarHeader_default), mergeProps({
3690
+ "data-slot": "calendar-header",
3691
+ class: unref(cn)("flex justify-center pt-1 relative items-center w-full px-8", props.class)
3692
+ }, unref(forwardedProps)), {
3693
+ default: withCtx(() => [
3694
+ renderSlot(_ctx.$slots, "default")
3695
+ ]),
3696
+ _: 3
3697
+ }, 16, ["class"]);
3698
+ };
3699
+ }
3700
+ });
3701
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
3702
+ __name: "CalendarHeading",
3703
+ props: {
3704
+ asChild: { type: Boolean },
3705
+ as: {},
3706
+ class: {}
3707
+ },
3708
+ setup(__props) {
3709
+ const props = __props;
3710
+ const delegatedProps = reactiveOmit(props, "class");
3711
+ const forwardedProps = useForwardProps(delegatedProps);
3712
+ return (_ctx, _cache) => {
3713
+ return openBlock(), createBlock(unref(CalendarHeading_default), mergeProps({
3714
+ "data-slot": "calendar-heading",
3715
+ class: unref(cn)("text-sm font-medium", props.class)
3716
+ }, unref(forwardedProps)), {
3717
+ default: withCtx(({ headingValue }) => [
3718
+ renderSlot(_ctx.$slots, "default", { headingValue }, () => [
3719
+ createTextVNode(toDisplayString(headingValue), 1)
3720
+ ])
3721
+ ]),
3722
+ _: 3
3723
+ }, 16, ["class"]);
3724
+ };
3725
+ }
3726
+ });
3727
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
3728
+ __name: "CalendarNextButton",
3729
+ props: {
3730
+ nextPage: { type: Function },
3731
+ asChild: { type: Boolean },
3732
+ as: {},
3733
+ class: {}
3734
+ },
3735
+ setup(__props) {
3736
+ const props = __props;
3737
+ const delegatedProps = reactiveOmit(props, "class");
3738
+ const forwardedProps = useForwardProps(delegatedProps);
3739
+ return (_ctx, _cache) => {
3740
+ return openBlock(), createBlock(unref(CalendarNext_default), mergeProps({
3741
+ "data-slot": "calendar-next-button",
3742
+ class: unref(cn)(
3743
+ unref(buttonVariants)({ variant: "outline" }),
3744
+ "size-7 bg-transparent p-0 opacity-50 hover:opacity-100",
3745
+ props.class
3746
+ )
3747
+ }, unref(forwardedProps)), {
3748
+ default: withCtx(() => [
3749
+ renderSlot(_ctx.$slots, "default", {}, () => [
3750
+ createVNode(unref(ChevronRight), { class: "size-4" })
3751
+ ])
3752
+ ]),
3753
+ _: 3
3754
+ }, 16, ["class"]);
3755
+ };
3756
+ }
3757
+ });
3758
+ const _sfc_main = /* @__PURE__ */ defineComponent({
3759
+ __name: "CalendarPrevButton",
3760
+ props: {
3761
+ prevPage: { type: Function },
3762
+ asChild: { type: Boolean },
3763
+ as: {},
3764
+ class: {}
3765
+ },
3766
+ setup(__props) {
3767
+ const props = __props;
3768
+ const delegatedProps = reactiveOmit(props, "class");
3769
+ const forwardedProps = useForwardProps(delegatedProps);
3770
+ return (_ctx, _cache) => {
3771
+ return openBlock(), createBlock(unref(CalendarPrev_default), mergeProps({
3772
+ "data-slot": "calendar-prev-button",
3773
+ class: unref(cn)(
3774
+ unref(buttonVariants)({ variant: "outline" }),
3775
+ "size-7 bg-transparent p-0 opacity-50 hover:opacity-100",
3776
+ props.class
3777
+ )
3778
+ }, unref(forwardedProps)), {
3779
+ default: withCtx(() => [
3780
+ renderSlot(_ctx.$slots, "default", {}, () => [
3781
+ createVNode(unref(ChevronLeft), { class: "size-4" })
3782
+ ])
3783
+ ]),
3784
+ _: 3
3785
+ }, 16, ["class"]);
3786
+ };
3787
+ }
3788
+ });
3789
+ export {
3790
+ $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3 as $,
3791
+ _sfc_main$b as _,
3792
+ _sfc_main$a as a,
3793
+ _sfc_main$9 as b,
3794
+ _sfc_main$8 as c,
3795
+ _sfc_main$7 as d,
3796
+ _sfc_main$6 as e,
3797
+ _sfc_main$5 as f,
3798
+ _sfc_main$4 as g,
3799
+ _sfc_main$3 as h,
3800
+ _sfc_main$2 as i,
3801
+ _sfc_main$1 as j,
3802
+ _sfc_main as k,
3803
+ $14e0f24ef4ac5c92$export$aa8b41735afcabd2 as l,
3804
+ $fb18d541ea1ad717$export$ad991b66133851cf as m
3805
+ };