@easypost/easy-ui 1.0.0-alpha.55 → 1.0.0-alpha.57

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 (220) hide show
  1. package/Badge/index.js +14 -14
  2. package/Badge/index.mjs +14 -14
  3. package/Banner/index.js +5 -5
  4. package/Banner/index.mjs +5 -5
  5. package/Button/index.js +1 -1
  6. package/Button/index.mjs +1 -1
  7. package/CHANGELOG.md +15 -0
  8. package/Calendar/Calendar.d.ts +43 -33
  9. package/Calendar/Calendar.d.ts.map +1 -1
  10. package/Calendar/CalendarBase.d.ts +57 -0
  11. package/Calendar/CalendarBase.d.ts.map +1 -0
  12. package/Calendar/CalendarCell.d.ts +2 -2
  13. package/Calendar/CalendarCell.d.ts.map +1 -1
  14. package/Calendar/CalendarGrid.d.ts +2 -5
  15. package/Calendar/CalendarGrid.d.ts.map +1 -1
  16. package/Calendar/CalendarHeader.d.ts +1 -6
  17. package/Calendar/CalendarHeader.d.ts.map +1 -1
  18. package/Calendar/index.js +9 -3349
  19. package/Calendar/index.mjs +8 -3348
  20. package/Card/index.js +1 -1
  21. package/Card/index.mjs +1 -1
  22. package/Checkbox/index.js +1 -1
  23. package/Checkbox/index.mjs +1 -1
  24. package/CodeBlock/index.js +13 -13
  25. package/CodeBlock/index.mjs +16 -16
  26. package/CodeSnippet/index.js +1 -1
  27. package/CodeSnippet/index.mjs +1 -1
  28. package/DataGrid/index.js +58 -58
  29. package/DataGrid/index.mjs +72 -72
  30. package/Drawer/index.js +18 -18
  31. package/Drawer/index.mjs +21 -21
  32. package/DropdownButton/index.js +12 -12
  33. package/DropdownButton/index.mjs +13 -13
  34. package/EmptyStateCard/index.js +8 -8
  35. package/EmptyStateCard/index.mjs +8 -8
  36. package/FocusedProductLayout/index.js +23 -23
  37. package/FocusedProductLayout/index.mjs +23 -23
  38. package/FormLayout/index.js +5 -5
  39. package/FormLayout/index.mjs +5 -5
  40. package/HorizontalGrid/index.js +1 -1
  41. package/HorizontalGrid/index.mjs +1 -1
  42. package/HorizontalStack/index.js +1 -1
  43. package/HorizontalStack/index.mjs +1 -1
  44. package/Icon/index.js +1 -1
  45. package/Icon/index.mjs +1 -1
  46. package/IconButton/index.js +12 -12
  47. package/IconButton/index.mjs +13 -13
  48. package/InputField/InputField.d.ts +4 -0
  49. package/InputField/InputField.d.ts.map +1 -1
  50. package/InputField/index.js +1 -1
  51. package/InputField/index.mjs +1 -1
  52. package/InputField/inputText.d.ts +24 -0
  53. package/InputField/inputText.d.ts.map +1 -0
  54. package/InputField/utilities.d.ts +1 -1
  55. package/InputField/utilities.d.ts.map +1 -1
  56. package/KebabButton/index.js +1 -1
  57. package/KebabButton/index.mjs +1 -1
  58. package/Menu/index.js +1 -1
  59. package/Menu/index.mjs +1 -1
  60. package/Modal/index.js +19 -19
  61. package/Modal/index.mjs +22 -22
  62. package/NexusLayout/index.js +28 -28
  63. package/NexusLayout/index.mjs +32 -32
  64. package/Notification/index.js +1 -1
  65. package/Notification/index.mjs +1 -1
  66. package/Pagination/index.js +10 -10
  67. package/Pagination/index.mjs +9 -9
  68. package/PillGroup/index.js +7 -7
  69. package/PillGroup/index.mjs +22 -22
  70. package/ProductLayout/index.js +21 -21
  71. package/ProductLayout/index.mjs +25 -25
  72. package/Provider/index.js +1 -1
  73. package/Provider/index.mjs +2 -2
  74. package/RadioButtonGroup/index.js +2 -2
  75. package/RadioButtonGroup/index.mjs +8 -8
  76. package/RadioGroup/index.js +15 -15
  77. package/RadioGroup/index.mjs +25 -25
  78. package/RangeCalendar/RangeCalendar.d.ts +71 -0
  79. package/RangeCalendar/RangeCalendar.d.ts.map +1 -0
  80. package/RangeCalendar/RangeCalendar.stories.d.ts +15 -0
  81. package/RangeCalendar/RangeCalendar.stories.d.ts.map +1 -0
  82. package/RangeCalendar/RangeCalendar.test.d.ts +2 -0
  83. package/RangeCalendar/RangeCalendar.test.d.ts.map +1 -0
  84. package/RangeCalendar/index.d.ts +2 -0
  85. package/RangeCalendar/index.d.ts.map +1 -0
  86. package/RangeCalendar/index.js +228 -0
  87. package/RangeCalendar/index.mjs +228 -0
  88. package/SearchNav/index.js +29 -29
  89. package/SearchNav/index.mjs +30 -30
  90. package/SectionCard/index.js +9 -5497
  91. package/SectionCard/index.mjs +8 -5496
  92. package/Select/index.js +4 -4
  93. package/Select/index.mjs +5 -5
  94. package/SelectorErrorTooltip/index.js +1 -1
  95. package/SelectorErrorTooltip/index.mjs +1 -1
  96. package/Spinner/index.js +1 -1
  97. package/Spinner/index.mjs +1 -1
  98. package/SplitToggleCard/index.js +4 -4
  99. package/SplitToggleCard/index.mjs +4 -4
  100. package/Stepper/index.js +1 -1
  101. package/Stepper/index.mjs +1 -1
  102. package/TabNav/index.js +1 -1
  103. package/TabNav/index.mjs +1 -1
  104. package/TabPanels/index.js +2 -2
  105. package/TabPanels/index.mjs +7 -7
  106. package/Tabs/index.js +1 -1
  107. package/Tabs/index.mjs +1 -1
  108. package/Text/index.js +1 -1
  109. package/Text/index.mjs +1 -1
  110. package/TextField/TextField.stories.d.ts +1 -0
  111. package/TextField/TextField.stories.d.ts.map +1 -1
  112. package/TextField/index.js +1 -1
  113. package/TextField/index.mjs +1 -1
  114. package/Textarea/index.js +1 -1
  115. package/Textarea/index.mjs +1 -1
  116. package/Toggle/index.js +1 -1
  117. package/Toggle/index.mjs +1 -1
  118. package/ToggleCard/index.js +2 -2
  119. package/ToggleCard/index.mjs +2 -2
  120. package/Tooltip/index.js +1 -1
  121. package/Tooltip/index.mjs +1 -1
  122. package/UnstyledButton/index.mjs +1 -1
  123. package/VerticalNav/index.js +24 -24
  124. package/VerticalNav/index.mjs +26 -26
  125. package/VerticalStack/index.js +1 -1
  126. package/VerticalStack/index.mjs +1 -1
  127. package/__chunks__/{Button-Bg19kicX.js → Button-DXoSy3zj.js} +17 -17
  128. package/__chunks__/{Button-vppvnDZX.mjs → Button-gZA_VW7t.mjs} +18 -18
  129. package/__chunks__/CalendarBase-BE9ZXuNU.js +3410 -0
  130. package/__chunks__/CalendarBase-lJhsIoGb.mjs +3411 -0
  131. package/__chunks__/{Card-BL4ap8Im.mjs → Card-CaqAaP9M.mjs} +12 -12
  132. package/__chunks__/{Card-bN2Bjyiu.js → Card-oCF38dRM.js} +12 -12
  133. package/__chunks__/{Checkbox-D7PJfiLF.mjs → Checkbox-CPNUyyaQ.mjs} +24 -24
  134. package/__chunks__/{Checkbox-Bbhv57QW.js → Checkbox-_9mEf5j8.js} +19 -19
  135. package/__chunks__/{CodeSnippet-CT5SOnzT.mjs → CodeSnippet-BibgES4Z.mjs} +2 -2
  136. package/__chunks__/{CodeSnippet-DMxiG1lt.js → CodeSnippet-CFE2GaJ2.js} +2 -2
  137. package/__chunks__/{FocusScope-CMdrObui.mjs → FocusScope-CEeqhVmO.mjs} +3 -3
  138. package/__chunks__/{HelpMenu-Cz2v3GAo.mjs → HelpMenu-BRbEO3Ze.mjs} +7 -7
  139. package/__chunks__/{HelpMenu-C4Lgr_6O.js → HelpMenu-LuIjOYz2.js} +6 -6
  140. package/__chunks__/{HorizontalGrid-BV2_WP0d.mjs → HorizontalGrid-Dd92y3Kh.mjs} +1 -1
  141. package/__chunks__/{HorizontalGrid-sYdKXIX9.js → HorizontalGrid-MV4O5akl.js} +1 -1
  142. package/__chunks__/{HorizontalStack-Jdgb1NMD.js → HorizontalStack-BYjFVogz.js} +1 -1
  143. package/__chunks__/{HorizontalStack-DtOxexq4.mjs → HorizontalStack-Cm2RPfec.mjs} +1 -1
  144. package/__chunks__/{Icon-BdrQIZ7G.mjs → Icon-BBvP9A5e.mjs} +2 -2
  145. package/__chunks__/{Icon-ylOKybLj.js → Icon-BuiRCbBA.js} +2 -2
  146. package/__chunks__/{InputField-CmzPMEdU.mjs → InputField-BfGOYdX5.mjs} +36 -14
  147. package/__chunks__/{InputField-CDopP3qd.js → InputField-ClRUBF3T.js} +29 -7
  148. package/__chunks__/{InputIcon-C4kynRVv.mjs → InputIcon-B5dopBYO.mjs} +44 -27
  149. package/__chunks__/{InputIcon-DJjhAUG8.js → InputIcon-NC2haFw-.js} +44 -27
  150. package/__chunks__/{KebabButton-b1cJAu-k.mjs → KebabButton-Dc7S9JW3.mjs} +5 -5
  151. package/__chunks__/{KebabButton-Bct1ZWZ7.js → KebabButton-QYOAjHz2.js} +4 -4
  152. package/__chunks__/{Menu-Bi8Xblu3.mjs → Menu-DcYM5Xw7.mjs} +20 -20
  153. package/__chunks__/{Menu-DhjEsT6X.js → Menu-DhBaiElA.js} +14 -14
  154. package/__chunks__/{Notification-DgT-Srat.mjs → Notification-89cftfIG.mjs} +19 -19
  155. package/__chunks__/{Notification-B7cXFkbn.js → Notification-BbgRry-H.js} +14 -14
  156. package/__chunks__/{Overlay-C3rJpwIX.mjs → Overlay-CuhLUuXt.mjs} +2 -2
  157. package/__chunks__/{SelectOverlay-DRYndVx9.mjs → SelectOverlay-BfEs_osJ.mjs} +33 -33
  158. package/__chunks__/{SelectOverlay-QlG4R4EK.js → SelectOverlay-D_FXlFlT.js} +22 -22
  159. package/__chunks__/{SelectorErrorTooltip-Uuj_150A.js → SelectorErrorTooltip-BpTIeFfk.js} +4 -4
  160. package/__chunks__/{SelectorErrorTooltip-CpIinREp.mjs → SelectorErrorTooltip-CzboXZ17.mjs} +4 -4
  161. package/__chunks__/{Spinner-BHcblUXI.js → Spinner-Baquxz7j.js} +5 -5
  162. package/__chunks__/{Spinner-Cq8bw1nz.mjs → Spinner-BmlnOdPA.mjs} +8 -8
  163. package/__chunks__/{Stepper-RX4JamiX.js → Stepper-C4qgpGYm.js} +25 -25
  164. package/__chunks__/{Stepper-B7UuO2-U.mjs → Stepper-D_1c37D4.mjs} +28 -28
  165. package/__chunks__/{TabNav-Cr966uUR.js → TabNav-CrY7roYg.js} +1 -1
  166. package/__chunks__/{TabNav-BJEE3Rgt.mjs → TabNav-DbqEdKB2.mjs} +1 -1
  167. package/__chunks__/{Tabs-pX8dmtn1.js → Tabs-B3jZ0zO-.js} +17 -17
  168. package/__chunks__/{Tabs-BJTPGnZs.mjs → Tabs-B4GLceul.mjs} +19 -19
  169. package/__chunks__/{Text-hB1p7qnS.mjs → Text-BCY2taAk.mjs} +34 -34
  170. package/__chunks__/{Text-BP87eq_Y.js → Text-DjxTQAjU.js} +34 -34
  171. package/__chunks__/{Toggle-CLR23YhR.mjs → Toggle-ZJsaI7fk.mjs} +14 -14
  172. package/__chunks__/{Toggle-CBZgoM67.js → Toggle-sNte2miv.js} +11 -11
  173. package/__chunks__/{Tooltip-C1JxFbtW.mjs → Tooltip-BKa9QieQ.mjs} +13 -13
  174. package/__chunks__/{Tooltip-BckLAOT1.js → Tooltip-D8wkj76H.js} +8 -8
  175. package/__chunks__/{UnstyledButton-CO7FOpAq.mjs → UnstyledButton-6seSbTV1.mjs} +2 -2
  176. package/__chunks__/{VerticalStack-CkBHjLJD.mjs → VerticalStack-BTe0o39p.mjs} +3 -3
  177. package/__chunks__/{VerticalStack-CDoPLDw4.js → VerticalStack-loS6ZJn3.js} +3 -3
  178. package/__chunks__/{VisuallyHidden-BsBkcHpw.mjs → VisuallyHidden-BttNIgVC.mjs} +2 -2
  179. package/__chunks__/{ariaHideOutside-D-yj7DXL.mjs → ariaHideOutside-DcIkumuG.mjs} +5 -5
  180. package/__chunks__/{context-D3I6RuRU.mjs → context-DEwqildc.mjs} +1 -1
  181. package/__chunks__/{focusSafely-8R2xSTi2.mjs → focusSafely-Dw7K4rnX.mjs} +2 -2
  182. package/__chunks__/{isVirtualEvent-BPCuFO54.mjs → isVirtualEvent-BFRy7P_p.mjs} +2 -2
  183. package/__chunks__/lodash-Cu2-TIbX.mjs +5492 -0
  184. package/__chunks__/lodash-DfTCP3Dk.js +5491 -0
  185. package/__chunks__/{mergeProps-SJQ-f8LF.mjs → mergeProps-T961Q1yJ.mjs} +4 -4
  186. package/__chunks__/{scrollIntoView-C4vMSOYx.mjs → scrollIntoView-GfnXaOCE.mjs} +1 -1
  187. package/__chunks__/{useButton-s_sjr8Ix.mjs → useButton-DEhs-Rkj.mjs} +3 -3
  188. package/__chunks__/{useDialog-RxvhRzry.mjs → useDialog-DAYxqkKY.mjs} +4 -4
  189. package/__chunks__/{useEdgeInterceptors-B7c--t3K.js → useEdgeInterceptors-CCflfRiK.js} +5 -5
  190. package/__chunks__/{useEdgeInterceptors-D0t_4eZ3.mjs → useEdgeInterceptors-DiEyVe00.mjs} +5 -5
  191. package/__chunks__/useEvent-C5RCZjKr.mjs +23 -0
  192. package/__chunks__/useEvent-DY7dR7Mi.js +22 -0
  193. package/__chunks__/{useField-DPD-La1H.mjs → useField-DWmSslhe.mjs} +2 -2
  194. package/__chunks__/{useFocus-By3Cx-xz.mjs → useFocus-DDj4i8Xy.mjs} +2 -2
  195. package/__chunks__/{useFocusRing-dRPhwlpK.mjs → useFocusRing-BE_dgxH5.mjs} +3 -3
  196. package/__chunks__/{useFocusVisible-BbEmluTm.mjs → useFocusVisible-CXSIZSY_.mjs} +2 -2
  197. package/__chunks__/{useFocusWithin-krnNAgDY.mjs → useFocusWithin-CDX8m0Wu.mjs} +1 -1
  198. package/__chunks__/{useFocusable-CgTd-4A-.mjs → useFocusable-DD5dAIXt.mjs} +4 -4
  199. package/__chunks__/{useFormReset-CFhWic3i.mjs → useFormReset-CmXMJVpO.mjs} +1 -1
  200. package/__chunks__/{useFormValidation-DAScndBq.mjs → useFormValidation-gwcVryr8.mjs} +2 -2
  201. package/__chunks__/{useHasTabbableChild-BQnJycug.mjs → useHasTabbableChild-CRCY1COZ.mjs} +2 -2
  202. package/__chunks__/{useHighlightSelectionDescription-CPtYsCSQ.mjs → useHighlightSelectionDescription-DCgFgP4G.mjs} +3 -3
  203. package/__chunks__/{useLabel-BlM5Qwvq.mjs → useLabel-C0Q8946u.mjs} +2 -2
  204. package/__chunks__/{useLabels-DdXkBiwn.mjs → useLabels-Bly436JP.mjs} +1 -1
  205. package/__chunks__/{useLocalizedStringFormatter-DJWWtB78.mjs → useLocalizedStringFormatter-B5ons_mh.mjs} +1 -1
  206. package/__chunks__/{useOverlayPosition-CoEMr0ZL.mjs → useOverlayPosition-B31NgShQ.mjs} +4 -4
  207. package/__chunks__/{usePress-qBr44_1g.mjs → usePress-DV7a17gG.mjs} +3 -3
  208. package/__chunks__/{useSelectableItem-D7gxXSuA.mjs → useSelectableItem-BDZ5pN_C.mjs} +10 -27
  209. package/__chunks__/{useSelectableItem-Ca_8R3iv.js → useSelectableItem-BGvBbIwY.js} +3 -20
  210. package/__chunks__/{useSelectableList-CWMPIUPQ.mjs → useSelectableList-Bj35aLZH.mjs} +2 -2
  211. package/__chunks__/{useSelectableList-uSeYGnKL.js → useSelectableList-DlkRkps4.js} +1 -1
  212. package/__chunks__/{useSyncRef-Cp332icp.mjs → useSyncRef-CpaiKz0R.mjs} +1 -1
  213. package/__chunks__/{useToggle-D9D1ZDRl.mjs → useToggle-BfGkPrAg.mjs} +4 -4
  214. package/__chunks__/{useTriggerWidth-i06IegOT.mjs → useTriggerWidth-BC_zeUJ5.mjs} +7 -7
  215. package/__chunks__/{useTriggerWidth-ClsknzJh.js → useTriggerWidth-C7OT3WI9.js} +1 -1
  216. package/__chunks__/{utils-Dm-0qf_-.mjs → utils-XuD3IFpv.mjs} +1 -1
  217. package/package.json +2 -2
  218. package/style.css +1135 -1046
  219. package/__chunks__/{KeyboardDoubleArrowLeft-GpUjmD9o.mjs → KeyboardDoubleArrowRight-AAMLvGk-.mjs} +4 -4
  220. package/__chunks__/{KeyboardDoubleArrowLeft-BHR8vGMo.js → KeyboardDoubleArrowRight-Ber8mUIO.js} +4 -4
@@ -0,0 +1,3411 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ var __objRest = (source, exclude) => {
21
+ var target = {};
22
+ for (var prop in source)
23
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
24
+ target[prop] = source[prop];
25
+ if (source != null && __getOwnPropSymbols)
26
+ for (var prop of __getOwnPropSymbols(source)) {
27
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
28
+ target[prop] = source[prop];
29
+ }
30
+ return target;
31
+ };
32
+ import { $ as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useControlledState-CFWhSD5C.mjs";
33
+ import React__default, { useMemo, useState, useRef, useEffect } from "react";
34
+ import { $ as $4f58c5f72bcf79f7$export$496315a1608d9602, a as $319e236875307eab$export$a9b970dcc4ae71a9 } from "./LiveAnnouncer-UhhG0KqR.mjs";
35
+ import { c as $bdb11010cef70236$export$b4cc09c592e8fdb8, $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-T961Q1yJ.mjs";
36
+ import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.mjs";
37
+ import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-Bly436JP.mjs";
38
+ import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-B5ons_mh.mjs";
39
+ import { V as VerticalStack } from "./VerticalStack-BTe0o39p.mjs";
40
+ import { T as Text } from "./Text-BCY2taAk.mjs";
41
+ import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-DEwqildc.mjs";
42
+ import { I as Icon } from "./Icon-BBvP9A5e.mjs";
43
+ import { H as HorizontalStack } from "./HorizontalStack-Cm2RPfec.mjs";
44
+ import { K as KeyboardDoubleArrowLeft, a as KeyboardDoubleArrowRight } from "./KeyboardDoubleArrowRight-AAMLvGk-.mjs";
45
+ import { a as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "./VisuallyHidden-BttNIgVC.mjs";
46
+ import { U as UnstyledButton } from "./UnstyledButton-6seSbTV1.mjs";
47
+ import { _ as _class_private_field_init, $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-DV7a17gG.mjs";
48
+ import { l as lodashExports } from "./lodash-Cu2-TIbX.mjs";
49
+ import { classNames } from "../utilities/css.mjs";
50
+ import { a as $7215afc6de606d6b$export$de79e2c695e052f3 } from "./context-CgOWZch5.mjs";
51
+ import { $ as $62d8ded9296f3872$export$cfa2225e87938781 } from "./getScrollParent-B5CCP-yO.mjs";
52
+ import { $ as $ef06256079686ba0$export$f8aeda7b10753fa1, b as $2f04cbc44ee30ce0$export$c826860796309d1b } from "./scrollIntoView-GfnXaOCE.mjs";
53
+ import { $ as $507fabe10e71c6fb$export$630ff653c5ada6a9 } from "./useFocusVisible-CXSIZSY_.mjs";
54
+ function $2b4dce13dd5a17fa$export$842a2cf37af977e1(amount, numerator) {
55
+ return amount - numerator * Math.floor(amount / numerator);
56
+ }
57
+ const $3b62074eb05584b2$var$EPOCH = 1721426;
58
+ function $3b62074eb05584b2$export$f297eb839006d339(era, year, month, day) {
59
+ year = $3b62074eb05584b2$export$c36e0ecb2d4fa69d(era, year);
60
+ let y1 = year - 1;
61
+ let monthOffset = -2;
62
+ if (month <= 2) monthOffset = 0;
63
+ else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year)) monthOffset = -1;
64
+ 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);
65
+ }
66
+ function $3b62074eb05584b2$export$553d7fa8e3805fc0(year) {
67
+ return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
68
+ }
69
+ function $3b62074eb05584b2$export$c36e0ecb2d4fa69d(era, year) {
70
+ return era === "BC" ? 1 - year : year;
71
+ }
72
+ function $3b62074eb05584b2$export$4475b7e617eb123c(year) {
73
+ let era = "AD";
74
+ if (year <= 0) {
75
+ era = "BC";
76
+ year = 1 - year;
77
+ }
78
+ return [
79
+ era,
80
+ year
81
+ ];
82
+ }
83
+ const $3b62074eb05584b2$var$daysInMonth = {
84
+ standard: [
85
+ 31,
86
+ 28,
87
+ 31,
88
+ 30,
89
+ 31,
90
+ 30,
91
+ 31,
92
+ 31,
93
+ 30,
94
+ 31,
95
+ 30,
96
+ 31
97
+ ],
98
+ leapyear: [
99
+ 31,
100
+ 29,
101
+ 31,
102
+ 30,
103
+ 31,
104
+ 30,
105
+ 31,
106
+ 31,
107
+ 30,
108
+ 31,
109
+ 30,
110
+ 31
111
+ ]
112
+ };
113
+ class $3b62074eb05584b2$export$80ee6245ec4f29ec {
114
+ fromJulianDay(jd) {
115
+ let jd0 = jd;
116
+ let depoch = jd0 - $3b62074eb05584b2$var$EPOCH;
117
+ let quadricent = Math.floor(depoch / 146097);
118
+ let dqc = $2b4dce13dd5a17fa$export$842a2cf37af977e1(depoch, 146097);
119
+ let cent = Math.floor(dqc / 36524);
120
+ let dcent = $2b4dce13dd5a17fa$export$842a2cf37af977e1(dqc, 36524);
121
+ let quad = Math.floor(dcent / 1461);
122
+ let dquad = $2b4dce13dd5a17fa$export$842a2cf37af977e1(dcent, 1461);
123
+ let yindex = Math.floor(dquad / 365);
124
+ let extendedYear = quadricent * 400 + cent * 100 + quad * 4 + yindex + (cent !== 4 && yindex !== 4 ? 1 : 0);
125
+ let [era, year] = $3b62074eb05584b2$export$4475b7e617eb123c(extendedYear);
126
+ let yearDay = jd0 - $3b62074eb05584b2$export$f297eb839006d339(era, year, 1, 1);
127
+ let leapAdj = 2;
128
+ if (jd0 < $3b62074eb05584b2$export$f297eb839006d339(era, year, 3, 1)) leapAdj = 0;
129
+ else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year)) leapAdj = 1;
130
+ let month = Math.floor(((yearDay + leapAdj) * 12 + 373) / 367);
131
+ let day = jd0 - $3b62074eb05584b2$export$f297eb839006d339(era, year, month, 1) + 1;
132
+ return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(era, year, month, day);
133
+ }
134
+ toJulianDay(date) {
135
+ return $3b62074eb05584b2$export$f297eb839006d339(date.era, date.year, date.month, date.day);
136
+ }
137
+ getDaysInMonth(date) {
138
+ return $3b62074eb05584b2$var$daysInMonth[$3b62074eb05584b2$export$553d7fa8e3805fc0(date.year) ? "leapyear" : "standard"][date.month - 1];
139
+ }
140
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
141
+ getMonthsInYear(date) {
142
+ return 12;
143
+ }
144
+ getDaysInYear(date) {
145
+ return $3b62074eb05584b2$export$553d7fa8e3805fc0(date.year) ? 366 : 365;
146
+ }
147
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
148
+ getYearsInEra(date) {
149
+ return 9999;
150
+ }
151
+ getEras() {
152
+ return [
153
+ "BC",
154
+ "AD"
155
+ ];
156
+ }
157
+ isInverseEra(date) {
158
+ return date.era === "BC";
159
+ }
160
+ balanceDate(date) {
161
+ if (date.year <= 0) {
162
+ date.era = date.era === "BC" ? "AD" : "BC";
163
+ date.year = 1 - date.year;
164
+ }
165
+ }
166
+ constructor() {
167
+ this.identifier = "gregory";
168
+ }
169
+ }
170
+ const $2fe286d2fb449abb$export$7a5acbd77d414bd9 = {
171
+ "001": 1,
172
+ AD: 1,
173
+ AE: 6,
174
+ AF: 6,
175
+ AI: 1,
176
+ AL: 1,
177
+ AM: 1,
178
+ AN: 1,
179
+ AR: 1,
180
+ AT: 1,
181
+ AU: 1,
182
+ AX: 1,
183
+ AZ: 1,
184
+ BA: 1,
185
+ BE: 1,
186
+ BG: 1,
187
+ BH: 6,
188
+ BM: 1,
189
+ BN: 1,
190
+ BY: 1,
191
+ CH: 1,
192
+ CL: 1,
193
+ CM: 1,
194
+ CN: 1,
195
+ CR: 1,
196
+ CY: 1,
197
+ CZ: 1,
198
+ DE: 1,
199
+ DJ: 6,
200
+ DK: 1,
201
+ DZ: 6,
202
+ EC: 1,
203
+ EE: 1,
204
+ EG: 6,
205
+ ES: 1,
206
+ FI: 1,
207
+ FJ: 1,
208
+ FO: 1,
209
+ FR: 1,
210
+ GB: 1,
211
+ GE: 1,
212
+ GF: 1,
213
+ GP: 1,
214
+ GR: 1,
215
+ HR: 1,
216
+ HU: 1,
217
+ IE: 1,
218
+ IQ: 6,
219
+ IR: 6,
220
+ IS: 1,
221
+ IT: 1,
222
+ JO: 6,
223
+ KG: 1,
224
+ KW: 6,
225
+ KZ: 1,
226
+ LB: 1,
227
+ LI: 1,
228
+ LK: 1,
229
+ LT: 1,
230
+ LU: 1,
231
+ LV: 1,
232
+ LY: 6,
233
+ MC: 1,
234
+ MD: 1,
235
+ ME: 1,
236
+ MK: 1,
237
+ MN: 1,
238
+ MQ: 1,
239
+ MV: 5,
240
+ MY: 1,
241
+ NL: 1,
242
+ NO: 1,
243
+ NZ: 1,
244
+ OM: 6,
245
+ PL: 1,
246
+ QA: 6,
247
+ RE: 1,
248
+ RO: 1,
249
+ RS: 1,
250
+ RU: 1,
251
+ SD: 6,
252
+ SE: 1,
253
+ SI: 1,
254
+ SK: 1,
255
+ SM: 1,
256
+ SY: 6,
257
+ TJ: 1,
258
+ TM: 1,
259
+ TR: 1,
260
+ UA: 1,
261
+ UY: 1,
262
+ UZ: 1,
263
+ VA: 1,
264
+ VN: 1,
265
+ XK: 1
266
+ };
267
+ function $14e0f24ef4ac5c92$export$ea39ec197993aef0(a, b) {
268
+ b = $11d87f3f76e88657$export$b4a036af3fc0b032(b, a.calendar);
269
+ return a.era === b.era && a.year === b.year && a.month === b.month && a.day === b.day;
270
+ }
271
+ function $14e0f24ef4ac5c92$export$a18c89cbd24170ff(a, b) {
272
+ b = $11d87f3f76e88657$export$b4a036af3fc0b032(b, a.calendar);
273
+ a = $14e0f24ef4ac5c92$export$a5a3b454ada2268e(a);
274
+ b = $14e0f24ef4ac5c92$export$a5a3b454ada2268e(b);
275
+ return a.era === b.era && a.year === b.year && a.month === b.month;
276
+ }
277
+ function $14e0f24ef4ac5c92$export$91b62ebf2ba703ee(a, b) {
278
+ return a.calendar.identifier === b.calendar.identifier && a.era === b.era && a.year === b.year && a.month === b.month && a.day === b.day;
279
+ }
280
+ function $14e0f24ef4ac5c92$export$629b0a497aa65267(date, timeZone) {
281
+ return $14e0f24ef4ac5c92$export$ea39ec197993aef0(date, $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(timeZone));
282
+ }
283
+ function $14e0f24ef4ac5c92$export$2061056d06d7cdf7(date, locale) {
284
+ let julian = date.calendar.toJulianDay(date);
285
+ let dayOfWeek = Math.ceil(julian + 1 - $14e0f24ef4ac5c92$var$getWeekStart(locale)) % 7;
286
+ if (dayOfWeek < 0) dayOfWeek += 7;
287
+ return dayOfWeek;
288
+ }
289
+ function $14e0f24ef4ac5c92$export$461939dd4422153(timeZone) {
290
+ return $11d87f3f76e88657$export$1b96692a1ba042ac(Date.now(), timeZone);
291
+ }
292
+ function $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(timeZone) {
293
+ return $11d87f3f76e88657$export$93522d1a439f3617($14e0f24ef4ac5c92$export$461939dd4422153(timeZone));
294
+ }
295
+ function $14e0f24ef4ac5c92$export$68781ddf31c0090f(a, b) {
296
+ return a.calendar.toJulianDay(a) - b.calendar.toJulianDay(b);
297
+ }
298
+ function $14e0f24ef4ac5c92$export$c19a80a9721b80f6(a, b) {
299
+ return $14e0f24ef4ac5c92$var$timeToMs(a) - $14e0f24ef4ac5c92$var$timeToMs(b);
300
+ }
301
+ function $14e0f24ef4ac5c92$var$timeToMs(a) {
302
+ return a.hour * 36e5 + a.minute * 6e4 + a.second * 1e3 + a.millisecond;
303
+ }
304
+ let $14e0f24ef4ac5c92$var$localTimeZone = null;
305
+ function $14e0f24ef4ac5c92$export$aa8b41735afcabd2() {
306
+ if ($14e0f24ef4ac5c92$var$localTimeZone == null) $14e0f24ef4ac5c92$var$localTimeZone = new Intl.DateTimeFormat().resolvedOptions().timeZone;
307
+ return $14e0f24ef4ac5c92$var$localTimeZone;
308
+ }
309
+ function $14e0f24ef4ac5c92$export$a5a3b454ada2268e(date) {
310
+ return date.subtract({
311
+ days: date.day - 1
312
+ });
313
+ }
314
+ function $14e0f24ef4ac5c92$export$a2258d9c4118825c(date) {
315
+ return date.add({
316
+ days: date.calendar.getDaysInMonth(date) - date.day
317
+ });
318
+ }
319
+ function $14e0f24ef4ac5c92$export$f91e89d3d0406102(date) {
320
+ return $14e0f24ef4ac5c92$export$a5a3b454ada2268e(date.subtract({
321
+ months: date.month - 1
322
+ }));
323
+ }
324
+ function $14e0f24ef4ac5c92$export$42c81a444fbfb5d4(date, locale) {
325
+ let dayOfWeek = $14e0f24ef4ac5c92$export$2061056d06d7cdf7(date, locale);
326
+ return date.subtract({
327
+ days: dayOfWeek
328
+ });
329
+ }
330
+ function $14e0f24ef4ac5c92$export$ef8b6d9133084f4e(date, locale) {
331
+ return $14e0f24ef4ac5c92$export$42c81a444fbfb5d4(date, locale).add({
332
+ days: 6
333
+ });
334
+ }
335
+ const $14e0f24ef4ac5c92$var$cachedRegions = /* @__PURE__ */ new Map();
336
+ function $14e0f24ef4ac5c92$var$getRegion(locale) {
337
+ if (Intl.Locale) {
338
+ let region = $14e0f24ef4ac5c92$var$cachedRegions.get(locale);
339
+ if (!region) {
340
+ region = new Intl.Locale(locale).maximize().region;
341
+ if (region) $14e0f24ef4ac5c92$var$cachedRegions.set(locale, region);
342
+ }
343
+ return region;
344
+ }
345
+ let part = locale.split("-")[1];
346
+ return part === "u" ? void 0 : part;
347
+ }
348
+ function $14e0f24ef4ac5c92$var$getWeekStart(locale) {
349
+ let region = $14e0f24ef4ac5c92$var$getRegion(locale);
350
+ return region ? $2fe286d2fb449abb$export$7a5acbd77d414bd9[region] || 0 : 0;
351
+ }
352
+ function $14e0f24ef4ac5c92$export$ccc1b2479e7dd654(date, locale) {
353
+ let days = date.calendar.getDaysInMonth(date);
354
+ return Math.ceil(($14e0f24ef4ac5c92$export$2061056d06d7cdf7($14e0f24ef4ac5c92$export$a5a3b454ada2268e(date), locale) + days) / 7);
355
+ }
356
+ function $14e0f24ef4ac5c92$export$5c333a116e949cdd(a, b) {
357
+ if (a && b) return a.compare(b) <= 0 ? a : b;
358
+ return a || b;
359
+ }
360
+ function $14e0f24ef4ac5c92$export$a75f2bff57811055(a, b) {
361
+ if (a && b) return a.compare(b) >= 0 ? a : b;
362
+ return a || b;
363
+ }
364
+ function $11d87f3f76e88657$export$bd4fb2bc8bb06fb(date) {
365
+ date = $11d87f3f76e88657$export$b4a036af3fc0b032(date, new $3b62074eb05584b2$export$80ee6245ec4f29ec());
366
+ let year = $3b62074eb05584b2$export$c36e0ecb2d4fa69d(date.era, date.year);
367
+ return $11d87f3f76e88657$var$epochFromParts(year, date.month, date.day, date.hour, date.minute, date.second, date.millisecond);
368
+ }
369
+ function $11d87f3f76e88657$var$epochFromParts(year, month, day, hour, minute, second, millisecond) {
370
+ let date = /* @__PURE__ */ new Date();
371
+ date.setUTCHours(hour, minute, second, millisecond);
372
+ date.setUTCFullYear(year, month - 1, day);
373
+ return date.getTime();
374
+ }
375
+ function $11d87f3f76e88657$export$59c99f3515d3493f(ms, timeZone) {
376
+ if (timeZone === "UTC") return 0;
377
+ if (ms > 0 && timeZone === $14e0f24ef4ac5c92$export$aa8b41735afcabd2()) return new Date(ms).getTimezoneOffset() * -6e4;
378
+ let { year, month, day, hour, minute, second } = $11d87f3f76e88657$var$getTimeZoneParts(ms, timeZone);
379
+ let utc = $11d87f3f76e88657$var$epochFromParts(year, month, day, hour, minute, second, 0);
380
+ return utc - Math.floor(ms / 1e3) * 1e3;
381
+ }
382
+ const $11d87f3f76e88657$var$formattersByTimeZone = /* @__PURE__ */ new Map();
383
+ function $11d87f3f76e88657$var$getTimeZoneParts(ms, timeZone) {
384
+ let formatter = $11d87f3f76e88657$var$formattersByTimeZone.get(timeZone);
385
+ if (!formatter) {
386
+ formatter = new Intl.DateTimeFormat("en-US", {
387
+ timeZone,
388
+ hour12: false,
389
+ era: "short",
390
+ year: "numeric",
391
+ month: "numeric",
392
+ day: "numeric",
393
+ hour: "numeric",
394
+ minute: "numeric",
395
+ second: "numeric"
396
+ });
397
+ $11d87f3f76e88657$var$formattersByTimeZone.set(timeZone, formatter);
398
+ }
399
+ let parts = formatter.formatToParts(new Date(ms));
400
+ let namedParts = {};
401
+ for (let part of parts) if (part.type !== "literal") namedParts[part.type] = part.value;
402
+ return {
403
+ // Firefox returns B instead of BC... https://bugzilla.mozilla.org/show_bug.cgi?id=1752253
404
+ year: namedParts.era === "BC" || namedParts.era === "B" ? -namedParts.year + 1 : +namedParts.year,
405
+ month: +namedParts.month,
406
+ day: +namedParts.day,
407
+ hour: namedParts.hour === "24" ? 0 : +namedParts.hour,
408
+ minute: +namedParts.minute,
409
+ second: +namedParts.second
410
+ };
411
+ }
412
+ const $11d87f3f76e88657$var$DAYMILLIS = 864e5;
413
+ function $11d87f3f76e88657$var$getValidWallTimes(date, timeZone, earlier, later) {
414
+ let found = earlier === later ? [
415
+ earlier
416
+ ] : [
417
+ earlier,
418
+ later
419
+ ];
420
+ return found.filter((absolute) => $11d87f3f76e88657$var$isValidWallTime(date, timeZone, absolute));
421
+ }
422
+ function $11d87f3f76e88657$var$isValidWallTime(date, timeZone, absolute) {
423
+ let parts = $11d87f3f76e88657$var$getTimeZoneParts(absolute, timeZone);
424
+ 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;
425
+ }
426
+ function $11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguation = "compatible") {
427
+ let dateTime = $11d87f3f76e88657$export$b21e0b124e224484(date);
428
+ if (timeZone === "UTC") return $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime);
429
+ if (timeZone === $14e0f24ef4ac5c92$export$aa8b41735afcabd2() && disambiguation === "compatible") {
430
+ dateTime = $11d87f3f76e88657$export$b4a036af3fc0b032(dateTime, new $3b62074eb05584b2$export$80ee6245ec4f29ec());
431
+ let date2 = /* @__PURE__ */ new Date();
432
+ let year = $3b62074eb05584b2$export$c36e0ecb2d4fa69d(dateTime.era, dateTime.year);
433
+ date2.setFullYear(year, dateTime.month - 1, dateTime.day);
434
+ date2.setHours(dateTime.hour, dateTime.minute, dateTime.second, dateTime.millisecond);
435
+ return date2.getTime();
436
+ }
437
+ let ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime);
438
+ let offsetBefore = $11d87f3f76e88657$export$59c99f3515d3493f(ms - $11d87f3f76e88657$var$DAYMILLIS, timeZone);
439
+ let offsetAfter = $11d87f3f76e88657$export$59c99f3515d3493f(ms + $11d87f3f76e88657$var$DAYMILLIS, timeZone);
440
+ let valid = $11d87f3f76e88657$var$getValidWallTimes(dateTime, timeZone, ms - offsetBefore, ms - offsetAfter);
441
+ if (valid.length === 1) return valid[0];
442
+ if (valid.length > 1) switch (disambiguation) {
443
+ // 'compatible' means 'earlier' for "fall back" transitions
444
+ case "compatible":
445
+ case "earlier":
446
+ return valid[0];
447
+ case "later":
448
+ return valid[valid.length - 1];
449
+ case "reject":
450
+ throw new RangeError("Multiple possible absolute times found");
451
+ }
452
+ switch (disambiguation) {
453
+ case "earlier":
454
+ return Math.min(ms - offsetBefore, ms - offsetAfter);
455
+ // 'compatible' means 'later' for "spring forward" transitions
456
+ case "compatible":
457
+ case "later":
458
+ return Math.max(ms - offsetBefore, ms - offsetAfter);
459
+ case "reject":
460
+ throw new RangeError("No such absolute time found");
461
+ }
462
+ }
463
+ function $11d87f3f76e88657$export$e67a095c620b86fe(dateTime, timeZone, disambiguation = "compatible") {
464
+ return new Date($11d87f3f76e88657$export$5107c82f94518f5c(dateTime, timeZone, disambiguation));
465
+ }
466
+ function $11d87f3f76e88657$export$1b96692a1ba042ac(ms, timeZone) {
467
+ let offset = $11d87f3f76e88657$export$59c99f3515d3493f(ms, timeZone);
468
+ let date = new Date(ms + offset);
469
+ let year = date.getUTCFullYear();
470
+ let month = date.getUTCMonth() + 1;
471
+ let day = date.getUTCDate();
472
+ let hour = date.getUTCHours();
473
+ let minute = date.getUTCMinutes();
474
+ let second = date.getUTCSeconds();
475
+ let millisecond = date.getUTCMilliseconds();
476
+ return new $35ea8db9cb2ccb90$export$d3b7288e7994edea(year < 1 ? "BC" : "AD", year < 1 ? -year + 1 : year, month, day, timeZone, offset, hour, minute, second, millisecond);
477
+ }
478
+ function $11d87f3f76e88657$export$93522d1a439f3617(dateTime) {
479
+ return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(dateTime.calendar, dateTime.era, dateTime.year, dateTime.month, dateTime.day);
480
+ }
481
+ function $11d87f3f76e88657$export$b21e0b124e224484(date, time) {
482
+ let hour = 0, minute = 0, second = 0, millisecond = 0;
483
+ if ("timeZone" in date) ({ hour, minute, second, millisecond } = date);
484
+ else if ("hour" in date && !time) return date;
485
+ if (time) ({ hour, minute, second, millisecond } = time);
486
+ return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(date.calendar, date.era, date.year, date.month, date.day, hour, minute, second, millisecond);
487
+ }
488
+ function $11d87f3f76e88657$export$b4a036af3fc0b032(date, calendar) {
489
+ if (date.calendar.identifier === calendar.identifier) return date;
490
+ let calendarDate = calendar.fromJulianDay(date.calendar.toJulianDay(date));
491
+ let copy = date.copy();
492
+ copy.calendar = calendar;
493
+ copy.era = calendarDate.era;
494
+ copy.year = calendarDate.year;
495
+ copy.month = calendarDate.month;
496
+ copy.day = calendarDate.day;
497
+ $735220c2d4774dd3$export$c4e2ecac49351ef2(copy);
498
+ return copy;
499
+ }
500
+ function $11d87f3f76e88657$export$84c95a83c799e074(date, timeZone, disambiguation) {
501
+ if (date instanceof $35ea8db9cb2ccb90$export$d3b7288e7994edea) {
502
+ if (date.timeZone === timeZone) return date;
503
+ return $11d87f3f76e88657$export$538b00033cc11c75(date, timeZone);
504
+ }
505
+ let ms = $11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguation);
506
+ return $11d87f3f76e88657$export$1b96692a1ba042ac(ms, timeZone);
507
+ }
508
+ function $11d87f3f76e88657$export$83aac07b4c37b25(date) {
509
+ let ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(date) - date.offset;
510
+ return new Date(ms);
511
+ }
512
+ function $11d87f3f76e88657$export$538b00033cc11c75(date, timeZone) {
513
+ let ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(date) - date.offset;
514
+ return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac(ms, timeZone), date.calendar);
515
+ }
516
+ const $735220c2d4774dd3$var$ONE_HOUR = 36e5;
517
+ function $735220c2d4774dd3$export$e16d8520af44a096(date, duration) {
518
+ let mutableDate = date.copy();
519
+ let days = "hour" in mutableDate ? $735220c2d4774dd3$var$addTimeFields(mutableDate, duration) : 0;
520
+ $735220c2d4774dd3$var$addYears(mutableDate, duration.years || 0);
521
+ if (mutableDate.calendar.balanceYearMonth) mutableDate.calendar.balanceYearMonth(mutableDate, date);
522
+ mutableDate.month += duration.months || 0;
523
+ $735220c2d4774dd3$var$balanceYearMonth(mutableDate);
524
+ $735220c2d4774dd3$var$constrainMonthDay(mutableDate);
525
+ mutableDate.day += (duration.weeks || 0) * 7;
526
+ mutableDate.day += duration.days || 0;
527
+ mutableDate.day += days;
528
+ $735220c2d4774dd3$var$balanceDay(mutableDate);
529
+ if (mutableDate.calendar.balanceDate) mutableDate.calendar.balanceDate(mutableDate);
530
+ if (mutableDate.year < 1) {
531
+ mutableDate.year = 1;
532
+ mutableDate.month = 1;
533
+ mutableDate.day = 1;
534
+ }
535
+ let maxYear = mutableDate.calendar.getYearsInEra(mutableDate);
536
+ if (mutableDate.year > maxYear) {
537
+ var _mutableDate_calendar_isInverseEra, _mutableDate_calendar;
538
+ 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);
539
+ mutableDate.year = maxYear;
540
+ mutableDate.month = isInverseEra ? 1 : mutableDate.calendar.getMonthsInYear(mutableDate);
541
+ mutableDate.day = isInverseEra ? 1 : mutableDate.calendar.getDaysInMonth(mutableDate);
542
+ }
543
+ if (mutableDate.month < 1) {
544
+ mutableDate.month = 1;
545
+ mutableDate.day = 1;
546
+ }
547
+ let maxMonth = mutableDate.calendar.getMonthsInYear(mutableDate);
548
+ if (mutableDate.month > maxMonth) {
549
+ mutableDate.month = maxMonth;
550
+ mutableDate.day = mutableDate.calendar.getDaysInMonth(mutableDate);
551
+ }
552
+ mutableDate.day = Math.max(1, Math.min(mutableDate.calendar.getDaysInMonth(mutableDate), mutableDate.day));
553
+ return mutableDate;
554
+ }
555
+ function $735220c2d4774dd3$var$addYears(date, years) {
556
+ var _date_calendar_isInverseEra, _date_calendar;
557
+ 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;
558
+ date.year += years;
559
+ }
560
+ function $735220c2d4774dd3$var$balanceYearMonth(date) {
561
+ while (date.month < 1) {
562
+ $735220c2d4774dd3$var$addYears(date, -1);
563
+ date.month += date.calendar.getMonthsInYear(date);
564
+ }
565
+ let monthsInYear = 0;
566
+ while (date.month > (monthsInYear = date.calendar.getMonthsInYear(date))) {
567
+ date.month -= monthsInYear;
568
+ $735220c2d4774dd3$var$addYears(date, 1);
569
+ }
570
+ }
571
+ function $735220c2d4774dd3$var$balanceDay(date) {
572
+ while (date.day < 1) {
573
+ date.month--;
574
+ $735220c2d4774dd3$var$balanceYearMonth(date);
575
+ date.day += date.calendar.getDaysInMonth(date);
576
+ }
577
+ while (date.day > date.calendar.getDaysInMonth(date)) {
578
+ date.day -= date.calendar.getDaysInMonth(date);
579
+ date.month++;
580
+ $735220c2d4774dd3$var$balanceYearMonth(date);
581
+ }
582
+ }
583
+ function $735220c2d4774dd3$var$constrainMonthDay(date) {
584
+ date.month = Math.max(1, Math.min(date.calendar.getMonthsInYear(date), date.month));
585
+ date.day = Math.max(1, Math.min(date.calendar.getDaysInMonth(date), date.day));
586
+ }
587
+ function $735220c2d4774dd3$export$c4e2ecac49351ef2(date) {
588
+ if (date.calendar.constrainDate) date.calendar.constrainDate(date);
589
+ date.year = Math.max(1, Math.min(date.calendar.getYearsInEra(date), date.year));
590
+ $735220c2d4774dd3$var$constrainMonthDay(date);
591
+ }
592
+ function $735220c2d4774dd3$export$3e2544e88a25bff8(duration) {
593
+ let inverseDuration = {};
594
+ for (let key in duration) if (typeof duration[key] === "number") inverseDuration[key] = -duration[key];
595
+ return inverseDuration;
596
+ }
597
+ function $735220c2d4774dd3$export$4e2d2ead65e5f7e3(date, duration) {
598
+ return $735220c2d4774dd3$export$e16d8520af44a096(date, $735220c2d4774dd3$export$3e2544e88a25bff8(duration));
599
+ }
600
+ function $735220c2d4774dd3$export$adaa4cf7ef1b65be(date, fields) {
601
+ let mutableDate = date.copy();
602
+ if (fields.era != null) mutableDate.era = fields.era;
603
+ if (fields.year != null) mutableDate.year = fields.year;
604
+ if (fields.month != null) mutableDate.month = fields.month;
605
+ if (fields.day != null) mutableDate.day = fields.day;
606
+ $735220c2d4774dd3$export$c4e2ecac49351ef2(mutableDate);
607
+ return mutableDate;
608
+ }
609
+ function $735220c2d4774dd3$export$e5d5e1c1822b6e56(value, fields) {
610
+ let mutableValue = value.copy();
611
+ if (fields.hour != null) mutableValue.hour = fields.hour;
612
+ if (fields.minute != null) mutableValue.minute = fields.minute;
613
+ if (fields.second != null) mutableValue.second = fields.second;
614
+ if (fields.millisecond != null) mutableValue.millisecond = fields.millisecond;
615
+ $735220c2d4774dd3$export$7555de1e070510cb(mutableValue);
616
+ return mutableValue;
617
+ }
618
+ function $735220c2d4774dd3$var$balanceTime(time) {
619
+ time.second += Math.floor(time.millisecond / 1e3);
620
+ time.millisecond = $735220c2d4774dd3$var$nonNegativeMod(time.millisecond, 1e3);
621
+ time.minute += Math.floor(time.second / 60);
622
+ time.second = $735220c2d4774dd3$var$nonNegativeMod(time.second, 60);
623
+ time.hour += Math.floor(time.minute / 60);
624
+ time.minute = $735220c2d4774dd3$var$nonNegativeMod(time.minute, 60);
625
+ let days = Math.floor(time.hour / 24);
626
+ time.hour = $735220c2d4774dd3$var$nonNegativeMod(time.hour, 24);
627
+ return days;
628
+ }
629
+ function $735220c2d4774dd3$export$7555de1e070510cb(time) {
630
+ time.millisecond = Math.max(0, Math.min(time.millisecond, 1e3));
631
+ time.second = Math.max(0, Math.min(time.second, 59));
632
+ time.minute = Math.max(0, Math.min(time.minute, 59));
633
+ time.hour = Math.max(0, Math.min(time.hour, 23));
634
+ }
635
+ function $735220c2d4774dd3$var$nonNegativeMod(a, b) {
636
+ let result = a % b;
637
+ if (result < 0) result += b;
638
+ return result;
639
+ }
640
+ function $735220c2d4774dd3$var$addTimeFields(time, duration) {
641
+ time.hour += duration.hours || 0;
642
+ time.minute += duration.minutes || 0;
643
+ time.second += duration.seconds || 0;
644
+ time.millisecond += duration.milliseconds || 0;
645
+ return $735220c2d4774dd3$var$balanceTime(time);
646
+ }
647
+ function $735220c2d4774dd3$export$d52ced6badfb9a4c(value, field, amount, options) {
648
+ let mutable = value.copy();
649
+ switch (field) {
650
+ case "era": {
651
+ let eras = value.calendar.getEras();
652
+ let eraIndex = eras.indexOf(value.era);
653
+ if (eraIndex < 0) throw new Error("Invalid era: " + value.era);
654
+ eraIndex = $735220c2d4774dd3$var$cycleValue(eraIndex, amount, 0, eras.length - 1, options === null || options === void 0 ? void 0 : options.round);
655
+ mutable.era = eras[eraIndex];
656
+ $735220c2d4774dd3$export$c4e2ecac49351ef2(mutable);
657
+ break;
658
+ }
659
+ case "year":
660
+ var _mutable_calendar_isInverseEra, _mutable_calendar;
661
+ 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;
662
+ mutable.year = $735220c2d4774dd3$var$cycleValue(value.year, amount, -Infinity, 9999, options === null || options === void 0 ? void 0 : options.round);
663
+ if (mutable.year === -Infinity) mutable.year = 1;
664
+ if (mutable.calendar.balanceYearMonth) mutable.calendar.balanceYearMonth(mutable, value);
665
+ break;
666
+ case "month":
667
+ mutable.month = $735220c2d4774dd3$var$cycleValue(value.month, amount, 1, value.calendar.getMonthsInYear(value), options === null || options === void 0 ? void 0 : options.round);
668
+ break;
669
+ case "day":
670
+ mutable.day = $735220c2d4774dd3$var$cycleValue(value.day, amount, 1, value.calendar.getDaysInMonth(value), options === null || options === void 0 ? void 0 : options.round);
671
+ break;
672
+ default:
673
+ throw new Error("Unsupported field " + field);
674
+ }
675
+ if (value.calendar.balanceDate) value.calendar.balanceDate(mutable);
676
+ $735220c2d4774dd3$export$c4e2ecac49351ef2(mutable);
677
+ return mutable;
678
+ }
679
+ function $735220c2d4774dd3$export$dd02b3e0007dfe28(value, field, amount, options) {
680
+ let mutable = value.copy();
681
+ switch (field) {
682
+ case "hour": {
683
+ let hours = value.hour;
684
+ let min = 0;
685
+ let max = 23;
686
+ if ((options === null || options === void 0 ? void 0 : options.hourCycle) === 12) {
687
+ let isPM = hours >= 12;
688
+ min = isPM ? 12 : 0;
689
+ max = isPM ? 23 : 11;
690
+ }
691
+ mutable.hour = $735220c2d4774dd3$var$cycleValue(hours, amount, min, max, options === null || options === void 0 ? void 0 : options.round);
692
+ break;
693
+ }
694
+ case "minute":
695
+ mutable.minute = $735220c2d4774dd3$var$cycleValue(value.minute, amount, 0, 59, options === null || options === void 0 ? void 0 : options.round);
696
+ break;
697
+ case "second":
698
+ mutable.second = $735220c2d4774dd3$var$cycleValue(value.second, amount, 0, 59, options === null || options === void 0 ? void 0 : options.round);
699
+ break;
700
+ case "millisecond":
701
+ mutable.millisecond = $735220c2d4774dd3$var$cycleValue(value.millisecond, amount, 0, 999, options === null || options === void 0 ? void 0 : options.round);
702
+ break;
703
+ default:
704
+ throw new Error("Unsupported field " + field);
705
+ }
706
+ return mutable;
707
+ }
708
+ function $735220c2d4774dd3$var$cycleValue(value, amount, min, max, round = false) {
709
+ if (round) {
710
+ value += Math.sign(amount);
711
+ if (value < min) value = max;
712
+ let div = Math.abs(amount);
713
+ if (amount > 0) value = Math.ceil(value / div) * div;
714
+ else value = Math.floor(value / div) * div;
715
+ if (value > max) value = min;
716
+ } else {
717
+ value += amount;
718
+ if (value < min) value = max - (min - value - 1);
719
+ else if (value > max) value = min + (value - max - 1);
720
+ }
721
+ return value;
722
+ }
723
+ function $735220c2d4774dd3$export$96b1d28349274637(dateTime, duration) {
724
+ let ms;
725
+ 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) {
726
+ let res2 = $735220c2d4774dd3$export$e16d8520af44a096($11d87f3f76e88657$export$b21e0b124e224484(dateTime), {
727
+ years: duration.years,
728
+ months: duration.months,
729
+ weeks: duration.weeks,
730
+ days: duration.days
731
+ });
732
+ ms = $11d87f3f76e88657$export$5107c82f94518f5c(res2, dateTime.timeZone);
733
+ } else
734
+ ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime) - dateTime.offset;
735
+ ms += duration.milliseconds || 0;
736
+ ms += (duration.seconds || 0) * 1e3;
737
+ ms += (duration.minutes || 0) * 6e4;
738
+ ms += (duration.hours || 0) * 36e5;
739
+ let res = $11d87f3f76e88657$export$1b96692a1ba042ac(ms, dateTime.timeZone);
740
+ return $11d87f3f76e88657$export$b4a036af3fc0b032(res, dateTime.calendar);
741
+ }
742
+ function $735220c2d4774dd3$export$6814caac34ca03c7(dateTime, duration) {
743
+ return $735220c2d4774dd3$export$96b1d28349274637(dateTime, $735220c2d4774dd3$export$3e2544e88a25bff8(duration));
744
+ }
745
+ function $735220c2d4774dd3$export$9a297d111fc86b79(dateTime, field, amount, options) {
746
+ switch (field) {
747
+ case "hour": {
748
+ let min = 0;
749
+ let max = 23;
750
+ if ((options === null || options === void 0 ? void 0 : options.hourCycle) === 12) {
751
+ let isPM = dateTime.hour >= 12;
752
+ min = isPM ? 12 : 0;
753
+ max = isPM ? 23 : 11;
754
+ }
755
+ let plainDateTime = $11d87f3f76e88657$export$b21e0b124e224484(dateTime);
756
+ let minDate = $11d87f3f76e88657$export$b4a036af3fc0b032($735220c2d4774dd3$export$e5d5e1c1822b6e56(plainDateTime, {
757
+ hour: min
758
+ }), new $3b62074eb05584b2$export$80ee6245ec4f29ec());
759
+ let minAbsolute = [
760
+ $11d87f3f76e88657$export$5107c82f94518f5c(minDate, dateTime.timeZone, "earlier"),
761
+ $11d87f3f76e88657$export$5107c82f94518f5c(minDate, dateTime.timeZone, "later")
762
+ ].filter((ms2) => $11d87f3f76e88657$export$1b96692a1ba042ac(ms2, dateTime.timeZone).day === minDate.day)[0];
763
+ let maxDate = $11d87f3f76e88657$export$b4a036af3fc0b032($735220c2d4774dd3$export$e5d5e1c1822b6e56(plainDateTime, {
764
+ hour: max
765
+ }), new $3b62074eb05584b2$export$80ee6245ec4f29ec());
766
+ let maxAbsolute = [
767
+ $11d87f3f76e88657$export$5107c82f94518f5c(maxDate, dateTime.timeZone, "earlier"),
768
+ $11d87f3f76e88657$export$5107c82f94518f5c(maxDate, dateTime.timeZone, "later")
769
+ ].filter((ms2) => $11d87f3f76e88657$export$1b96692a1ba042ac(ms2, dateTime.timeZone).day === maxDate.day).pop();
770
+ let ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime) - dateTime.offset;
771
+ let hours = Math.floor(ms / $735220c2d4774dd3$var$ONE_HOUR);
772
+ let remainder = ms % $735220c2d4774dd3$var$ONE_HOUR;
773
+ 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;
774
+ return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac(ms, dateTime.timeZone), dateTime.calendar);
775
+ }
776
+ case "minute":
777
+ case "second":
778
+ case "millisecond":
779
+ return $735220c2d4774dd3$export$dd02b3e0007dfe28(dateTime, field, amount, options);
780
+ case "era":
781
+ case "year":
782
+ case "month":
783
+ case "day": {
784
+ let res = $735220c2d4774dd3$export$d52ced6badfb9a4c($11d87f3f76e88657$export$b21e0b124e224484(dateTime), field, amount, options);
785
+ let ms = $11d87f3f76e88657$export$5107c82f94518f5c(res, dateTime.timeZone);
786
+ return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac(ms, dateTime.timeZone), dateTime.calendar);
787
+ }
788
+ default:
789
+ throw new Error("Unsupported field " + field);
790
+ }
791
+ }
792
+ function $735220c2d4774dd3$export$31b5430eb18be4f8(dateTime, fields, disambiguation) {
793
+ let plainDateTime = $11d87f3f76e88657$export$b21e0b124e224484(dateTime);
794
+ let res = $735220c2d4774dd3$export$e5d5e1c1822b6e56($735220c2d4774dd3$export$adaa4cf7ef1b65be(plainDateTime, fields), fields);
795
+ if (res.compare(plainDateTime) === 0) return dateTime;
796
+ let ms = $11d87f3f76e88657$export$5107c82f94518f5c(res, dateTime.timeZone, disambiguation);
797
+ return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac(ms, dateTime.timeZone), dateTime.calendar);
798
+ }
799
+ function $fae977aafc393c5c$export$f59dee82248f5ad4(time) {
800
+ 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) : ""}`;
801
+ }
802
+ function $fae977aafc393c5c$export$60dfd74aa96791bd(date) {
803
+ let gregorianDate = $11d87f3f76e88657$export$b4a036af3fc0b032(date, new $3b62074eb05584b2$export$80ee6245ec4f29ec());
804
+ let year;
805
+ if (gregorianDate.era === "BC") year = gregorianDate.year === 1 ? "0000" : "-" + String(Math.abs(1 - gregorianDate.year)).padStart(6, "00");
806
+ else year = String(gregorianDate.year).padStart(4, "0");
807
+ return `${year}-${String(gregorianDate.month).padStart(2, "0")}-${String(gregorianDate.day).padStart(2, "0")}`;
808
+ }
809
+ function $fae977aafc393c5c$export$4223de14708adc63(date) {
810
+ return `${$fae977aafc393c5c$export$60dfd74aa96791bd(date)}T${$fae977aafc393c5c$export$f59dee82248f5ad4(date)}`;
811
+ }
812
+ function $fae977aafc393c5c$var$offsetToString(offset) {
813
+ let sign = Math.sign(offset) < 0 ? "-" : "+";
814
+ offset = Math.abs(offset);
815
+ let offsetHours = Math.floor(offset / 36e5);
816
+ let offsetMinutes = offset % 36e5 / 6e4;
817
+ return `${sign}${String(offsetHours).padStart(2, "0")}:${String(offsetMinutes).padStart(2, "0")}`;
818
+ }
819
+ function $fae977aafc393c5c$export$bf79f1ebf4b18792(date) {
820
+ return `${$fae977aafc393c5c$export$4223de14708adc63(date)}${$fae977aafc393c5c$var$offsetToString(date.offset)}[${date.timeZone}]`;
821
+ }
822
+ function $35ea8db9cb2ccb90$var$shiftArgs(args) {
823
+ let calendar = typeof args[0] === "object" ? args.shift() : new $3b62074eb05584b2$export$80ee6245ec4f29ec();
824
+ let era;
825
+ if (typeof args[0] === "string") era = args.shift();
826
+ else {
827
+ let eras = calendar.getEras();
828
+ era = eras[eras.length - 1];
829
+ }
830
+ let year = args.shift();
831
+ let month = args.shift();
832
+ let day = args.shift();
833
+ return [
834
+ calendar,
835
+ era,
836
+ year,
837
+ month,
838
+ day
839
+ ];
840
+ }
841
+ var $35ea8db9cb2ccb90$var$_type = /* @__PURE__ */ new WeakMap();
842
+ class $35ea8db9cb2ccb90$export$99faa760c7908e4f {
843
+ /** Returns a copy of this date. */
844
+ copy() {
845
+ if (this.era) return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this.calendar, this.era, this.year, this.month, this.day);
846
+ else return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this.calendar, this.year, this.month, this.day);
847
+ }
848
+ /** Returns a new `CalendarDate` with the given duration added to it. */
849
+ add(duration) {
850
+ return $735220c2d4774dd3$export$e16d8520af44a096(this, duration);
851
+ }
852
+ /** Returns a new `CalendarDate` with the given duration subtracted from it. */
853
+ subtract(duration) {
854
+ return $735220c2d4774dd3$export$4e2d2ead65e5f7e3(this, duration);
855
+ }
856
+ /** Returns a new `CalendarDate` with the given fields set to the provided values. Other fields will be constrained accordingly. */
857
+ set(fields) {
858
+ return $735220c2d4774dd3$export$adaa4cf7ef1b65be(this, fields);
859
+ }
860
+ /**
861
+ * Returns a new `CalendarDate` with the given field adjusted by a specified amount.
862
+ * When the resulting value reaches the limits of the field, it wraps around.
863
+ */
864
+ cycle(field, amount, options) {
865
+ return $735220c2d4774dd3$export$d52ced6badfb9a4c(this, field, amount, options);
866
+ }
867
+ /** Converts the date to a native JavaScript Date object, with the time set to midnight in the given time zone. */
868
+ toDate(timeZone) {
869
+ return $11d87f3f76e88657$export$e67a095c620b86fe(this, timeZone);
870
+ }
871
+ /** Converts the date to an ISO 8601 formatted string. */
872
+ toString() {
873
+ return $fae977aafc393c5c$export$60dfd74aa96791bd(this);
874
+ }
875
+ /** 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. */
876
+ compare(b) {
877
+ return $14e0f24ef4ac5c92$export$68781ddf31c0090f(this, b);
878
+ }
879
+ constructor(...args) {
880
+ _class_private_field_init(this, $35ea8db9cb2ccb90$var$_type, {
881
+ writable: true,
882
+ value: void 0
883
+ });
884
+ let [calendar, era, year, month, day] = $35ea8db9cb2ccb90$var$shiftArgs(args);
885
+ this.calendar = calendar;
886
+ this.era = era;
887
+ this.year = year;
888
+ this.month = month;
889
+ this.day = day;
890
+ $735220c2d4774dd3$export$c4e2ecac49351ef2(this);
891
+ }
892
+ }
893
+ var $35ea8db9cb2ccb90$var$_type2 = /* @__PURE__ */ new WeakMap();
894
+ class $35ea8db9cb2ccb90$export$ca871e8dbb80966f {
895
+ /** Returns a copy of this date. */
896
+ copy() {
897
+ 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);
898
+ else return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(this.calendar, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
899
+ }
900
+ /** Returns a new `CalendarDateTime` with the given duration added to it. */
901
+ add(duration) {
902
+ return $735220c2d4774dd3$export$e16d8520af44a096(this, duration);
903
+ }
904
+ /** Returns a new `CalendarDateTime` with the given duration subtracted from it. */
905
+ subtract(duration) {
906
+ return $735220c2d4774dd3$export$4e2d2ead65e5f7e3(this, duration);
907
+ }
908
+ /** Returns a new `CalendarDateTime` with the given fields set to the provided values. Other fields will be constrained accordingly. */
909
+ set(fields) {
910
+ return $735220c2d4774dd3$export$adaa4cf7ef1b65be($735220c2d4774dd3$export$e5d5e1c1822b6e56(this, fields), fields);
911
+ }
912
+ /**
913
+ * Returns a new `CalendarDateTime` with the given field adjusted by a specified amount.
914
+ * When the resulting value reaches the limits of the field, it wraps around.
915
+ */
916
+ cycle(field, amount, options) {
917
+ switch (field) {
918
+ case "era":
919
+ case "year":
920
+ case "month":
921
+ case "day":
922
+ return $735220c2d4774dd3$export$d52ced6badfb9a4c(this, field, amount, options);
923
+ default:
924
+ return $735220c2d4774dd3$export$dd02b3e0007dfe28(this, field, amount, options);
925
+ }
926
+ }
927
+ /** Converts the date to a native JavaScript Date object in the given time zone. */
928
+ toDate(timeZone, disambiguation) {
929
+ return $11d87f3f76e88657$export$e67a095c620b86fe(this, timeZone, disambiguation);
930
+ }
931
+ /** Converts the date to an ISO 8601 formatted string. */
932
+ toString() {
933
+ return $fae977aafc393c5c$export$4223de14708adc63(this);
934
+ }
935
+ /** 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. */
936
+ compare(b) {
937
+ let res = $14e0f24ef4ac5c92$export$68781ddf31c0090f(this, b);
938
+ if (res === 0) return $14e0f24ef4ac5c92$export$c19a80a9721b80f6(this, $11d87f3f76e88657$export$b21e0b124e224484(b));
939
+ return res;
940
+ }
941
+ constructor(...args) {
942
+ _class_private_field_init(this, $35ea8db9cb2ccb90$var$_type2, {
943
+ writable: true,
944
+ value: void 0
945
+ });
946
+ let [calendar, era, year, month, day] = $35ea8db9cb2ccb90$var$shiftArgs(args);
947
+ this.calendar = calendar;
948
+ this.era = era;
949
+ this.year = year;
950
+ this.month = month;
951
+ this.day = day;
952
+ this.hour = args.shift() || 0;
953
+ this.minute = args.shift() || 0;
954
+ this.second = args.shift() || 0;
955
+ this.millisecond = args.shift() || 0;
956
+ $735220c2d4774dd3$export$c4e2ecac49351ef2(this);
957
+ }
958
+ }
959
+ var $35ea8db9cb2ccb90$var$_type3 = /* @__PURE__ */ new WeakMap();
960
+ class $35ea8db9cb2ccb90$export$d3b7288e7994edea {
961
+ /** Returns a copy of this date. */
962
+ copy() {
963
+ 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);
964
+ 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);
965
+ }
966
+ /** Returns a new `ZonedDateTime` with the given duration added to it. */
967
+ add(duration) {
968
+ return $735220c2d4774dd3$export$96b1d28349274637(this, duration);
969
+ }
970
+ /** Returns a new `ZonedDateTime` with the given duration subtracted from it. */
971
+ subtract(duration) {
972
+ return $735220c2d4774dd3$export$6814caac34ca03c7(this, duration);
973
+ }
974
+ /** Returns a new `ZonedDateTime` with the given fields set to the provided values. Other fields will be constrained accordingly. */
975
+ set(fields, disambiguation) {
976
+ return $735220c2d4774dd3$export$31b5430eb18be4f8(this, fields, disambiguation);
977
+ }
978
+ /**
979
+ * Returns a new `ZonedDateTime` with the given field adjusted by a specified amount.
980
+ * When the resulting value reaches the limits of the field, it wraps around.
981
+ */
982
+ cycle(field, amount, options) {
983
+ return $735220c2d4774dd3$export$9a297d111fc86b79(this, field, amount, options);
984
+ }
985
+ /** Converts the date to a native JavaScript Date object. */
986
+ toDate() {
987
+ return $11d87f3f76e88657$export$83aac07b4c37b25(this);
988
+ }
989
+ /** Converts the date to an ISO 8601 formatted string, including the UTC offset and time zone identifier. */
990
+ toString() {
991
+ return $fae977aafc393c5c$export$bf79f1ebf4b18792(this);
992
+ }
993
+ /** Converts the date to an ISO 8601 formatted string in UTC. */
994
+ toAbsoluteString() {
995
+ return this.toDate().toISOString();
996
+ }
997
+ /** 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. */
998
+ compare(b) {
999
+ return this.toDate().getTime() - $11d87f3f76e88657$export$84c95a83c799e074(b, this.timeZone).toDate().getTime();
1000
+ }
1001
+ constructor(...args) {
1002
+ _class_private_field_init(this, $35ea8db9cb2ccb90$var$_type3, {
1003
+ writable: true,
1004
+ value: void 0
1005
+ });
1006
+ let [calendar, era, year, month, day] = $35ea8db9cb2ccb90$var$shiftArgs(args);
1007
+ let timeZone = args.shift();
1008
+ let offset = args.shift();
1009
+ this.calendar = calendar;
1010
+ this.era = era;
1011
+ this.year = year;
1012
+ this.month = month;
1013
+ this.day = day;
1014
+ this.timeZone = timeZone;
1015
+ this.offset = offset;
1016
+ this.hour = args.shift() || 0;
1017
+ this.minute = args.shift() || 0;
1018
+ this.second = args.shift() || 0;
1019
+ this.millisecond = args.shift() || 0;
1020
+ $735220c2d4774dd3$export$c4e2ecac49351ef2(this);
1021
+ }
1022
+ }
1023
+ const $62225008020f0a13$var$ERA_START_DATES = [
1024
+ [
1025
+ 1868,
1026
+ 9,
1027
+ 8
1028
+ ],
1029
+ [
1030
+ 1912,
1031
+ 7,
1032
+ 30
1033
+ ],
1034
+ [
1035
+ 1926,
1036
+ 12,
1037
+ 25
1038
+ ],
1039
+ [
1040
+ 1989,
1041
+ 1,
1042
+ 8
1043
+ ],
1044
+ [
1045
+ 2019,
1046
+ 5,
1047
+ 1
1048
+ ]
1049
+ ];
1050
+ const $62225008020f0a13$var$ERA_END_DATES = [
1051
+ [
1052
+ 1912,
1053
+ 7,
1054
+ 29
1055
+ ],
1056
+ [
1057
+ 1926,
1058
+ 12,
1059
+ 24
1060
+ ],
1061
+ [
1062
+ 1989,
1063
+ 1,
1064
+ 7
1065
+ ],
1066
+ [
1067
+ 2019,
1068
+ 4,
1069
+ 30
1070
+ ]
1071
+ ];
1072
+ const $62225008020f0a13$var$ERA_ADDENDS = [
1073
+ 1867,
1074
+ 1911,
1075
+ 1925,
1076
+ 1988,
1077
+ 2018
1078
+ ];
1079
+ const $62225008020f0a13$var$ERA_NAMES = [
1080
+ "meiji",
1081
+ "taisho",
1082
+ "showa",
1083
+ "heisei",
1084
+ "reiwa"
1085
+ ];
1086
+ function $62225008020f0a13$var$findEraFromGregorianDate(date) {
1087
+ const idx = $62225008020f0a13$var$ERA_START_DATES.findIndex(([year, month, day]) => {
1088
+ if (date.year < year) return true;
1089
+ if (date.year === year && date.month < month) return true;
1090
+ if (date.year === year && date.month === month && date.day < day) return true;
1091
+ return false;
1092
+ });
1093
+ if (idx === -1) return $62225008020f0a13$var$ERA_START_DATES.length - 1;
1094
+ if (idx === 0) return 0;
1095
+ return idx - 1;
1096
+ }
1097
+ function $62225008020f0a13$var$toGregorian(date) {
1098
+ let eraAddend = $62225008020f0a13$var$ERA_ADDENDS[$62225008020f0a13$var$ERA_NAMES.indexOf(date.era)];
1099
+ if (!eraAddend) throw new Error("Unknown era: " + date.era);
1100
+ return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(date.year + eraAddend, date.month, date.day);
1101
+ }
1102
+ class $62225008020f0a13$export$b746ab2b60cdffbf extends $3b62074eb05584b2$export$80ee6245ec4f29ec {
1103
+ fromJulianDay(jd) {
1104
+ let date = super.fromJulianDay(jd);
1105
+ let era = $62225008020f0a13$var$findEraFromGregorianDate(date);
1106
+ return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, $62225008020f0a13$var$ERA_NAMES[era], date.year - $62225008020f0a13$var$ERA_ADDENDS[era], date.month, date.day);
1107
+ }
1108
+ toJulianDay(date) {
1109
+ return super.toJulianDay($62225008020f0a13$var$toGregorian(date));
1110
+ }
1111
+ balanceDate(date) {
1112
+ let gregorianDate = $62225008020f0a13$var$toGregorian(date);
1113
+ let era = $62225008020f0a13$var$findEraFromGregorianDate(gregorianDate);
1114
+ if ($62225008020f0a13$var$ERA_NAMES[era] !== date.era) {
1115
+ date.era = $62225008020f0a13$var$ERA_NAMES[era];
1116
+ date.year = gregorianDate.year - $62225008020f0a13$var$ERA_ADDENDS[era];
1117
+ }
1118
+ this.constrainDate(date);
1119
+ }
1120
+ constrainDate(date) {
1121
+ let idx = $62225008020f0a13$var$ERA_NAMES.indexOf(date.era);
1122
+ let end = $62225008020f0a13$var$ERA_END_DATES[idx];
1123
+ if (end != null) {
1124
+ let [endYear, endMonth, endDay] = end;
1125
+ let maxYear = endYear - $62225008020f0a13$var$ERA_ADDENDS[idx];
1126
+ date.year = Math.max(1, Math.min(maxYear, date.year));
1127
+ if (date.year === maxYear) {
1128
+ date.month = Math.min(endMonth, date.month);
1129
+ if (date.month === endMonth) date.day = Math.min(endDay, date.day);
1130
+ }
1131
+ }
1132
+ if (date.year === 1 && idx >= 0) {
1133
+ let [, startMonth, startDay] = $62225008020f0a13$var$ERA_START_DATES[idx];
1134
+ date.month = Math.max(startMonth, date.month);
1135
+ if (date.month === startMonth) date.day = Math.max(startDay, date.day);
1136
+ }
1137
+ }
1138
+ getEras() {
1139
+ return $62225008020f0a13$var$ERA_NAMES;
1140
+ }
1141
+ getYearsInEra(date) {
1142
+ let era = $62225008020f0a13$var$ERA_NAMES.indexOf(date.era);
1143
+ let cur = $62225008020f0a13$var$ERA_START_DATES[era];
1144
+ let next = $62225008020f0a13$var$ERA_START_DATES[era + 1];
1145
+ if (next == null)
1146
+ return 9999 - cur[0] + 1;
1147
+ let years = next[0] - cur[0];
1148
+ if (date.month < next[1] || date.month === next[1] && date.day < next[2]) years++;
1149
+ return years;
1150
+ }
1151
+ getDaysInMonth(date) {
1152
+ return super.getDaysInMonth($62225008020f0a13$var$toGregorian(date));
1153
+ }
1154
+ getMinimumMonthInYear(date) {
1155
+ let start = $62225008020f0a13$var$getMinimums(date);
1156
+ return start ? start[1] : 1;
1157
+ }
1158
+ getMinimumDayInMonth(date) {
1159
+ let start = $62225008020f0a13$var$getMinimums(date);
1160
+ return start && date.month === start[1] ? start[2] : 1;
1161
+ }
1162
+ constructor(...args) {
1163
+ super(...args), this.identifier = "japanese";
1164
+ }
1165
+ }
1166
+ function $62225008020f0a13$var$getMinimums(date) {
1167
+ if (date.year === 1) {
1168
+ let idx = $62225008020f0a13$var$ERA_NAMES.indexOf(date.era);
1169
+ return $62225008020f0a13$var$ERA_START_DATES[idx];
1170
+ }
1171
+ }
1172
+ const $8d73d47422ca7302$var$BUDDHIST_ERA_START = -543;
1173
+ class $8d73d47422ca7302$export$42d20a78301dee44 extends $3b62074eb05584b2$export$80ee6245ec4f29ec {
1174
+ fromJulianDay(jd) {
1175
+ let gregorianDate = super.fromJulianDay(jd);
1176
+ let year = $3b62074eb05584b2$export$c36e0ecb2d4fa69d(gregorianDate.era, gregorianDate.year);
1177
+ return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, year - $8d73d47422ca7302$var$BUDDHIST_ERA_START, gregorianDate.month, gregorianDate.day);
1178
+ }
1179
+ toJulianDay(date) {
1180
+ return super.toJulianDay($8d73d47422ca7302$var$toGregorian(date));
1181
+ }
1182
+ getEras() {
1183
+ return [
1184
+ "BE"
1185
+ ];
1186
+ }
1187
+ getDaysInMonth(date) {
1188
+ return super.getDaysInMonth($8d73d47422ca7302$var$toGregorian(date));
1189
+ }
1190
+ balanceDate() {
1191
+ }
1192
+ constructor(...args) {
1193
+ super(...args), this.identifier = "buddhist";
1194
+ }
1195
+ }
1196
+ function $8d73d47422ca7302$var$toGregorian(date) {
1197
+ let [era, year] = $3b62074eb05584b2$export$4475b7e617eb123c(date.year + $8d73d47422ca7302$var$BUDDHIST_ERA_START);
1198
+ return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(era, year, date.month, date.day);
1199
+ }
1200
+ const $5f31bd6f0c8940b2$var$TAIWAN_ERA_START = 1911;
1201
+ function $5f31bd6f0c8940b2$var$gregorianYear(date) {
1202
+ return date.era === "minguo" ? date.year + $5f31bd6f0c8940b2$var$TAIWAN_ERA_START : 1 - date.year + $5f31bd6f0c8940b2$var$TAIWAN_ERA_START;
1203
+ }
1204
+ function $5f31bd6f0c8940b2$var$gregorianToTaiwan(year) {
1205
+ let y = year - $5f31bd6f0c8940b2$var$TAIWAN_ERA_START;
1206
+ if (y > 0) return [
1207
+ "minguo",
1208
+ y
1209
+ ];
1210
+ else return [
1211
+ "before_minguo",
1212
+ 1 - y
1213
+ ];
1214
+ }
1215
+ class $5f31bd6f0c8940b2$export$65e01080afcb0799 extends $3b62074eb05584b2$export$80ee6245ec4f29ec {
1216
+ fromJulianDay(jd) {
1217
+ let date = super.fromJulianDay(jd);
1218
+ let extendedYear = $3b62074eb05584b2$export$c36e0ecb2d4fa69d(date.era, date.year);
1219
+ let [era, year] = $5f31bd6f0c8940b2$var$gregorianToTaiwan(extendedYear);
1220
+ return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, era, year, date.month, date.day);
1221
+ }
1222
+ toJulianDay(date) {
1223
+ return super.toJulianDay($5f31bd6f0c8940b2$var$toGregorian(date));
1224
+ }
1225
+ getEras() {
1226
+ return [
1227
+ "before_minguo",
1228
+ "minguo"
1229
+ ];
1230
+ }
1231
+ balanceDate(date) {
1232
+ let [era, year] = $5f31bd6f0c8940b2$var$gregorianToTaiwan($5f31bd6f0c8940b2$var$gregorianYear(date));
1233
+ date.era = era;
1234
+ date.year = year;
1235
+ }
1236
+ isInverseEra(date) {
1237
+ return date.era === "before_minguo";
1238
+ }
1239
+ getDaysInMonth(date) {
1240
+ return super.getDaysInMonth($5f31bd6f0c8940b2$var$toGregorian(date));
1241
+ }
1242
+ getYearsInEra(date) {
1243
+ return date.era === "before_minguo" ? 9999 : 9999 - $5f31bd6f0c8940b2$var$TAIWAN_ERA_START;
1244
+ }
1245
+ constructor(...args) {
1246
+ super(...args), this.identifier = "roc";
1247
+ }
1248
+ }
1249
+ function $5f31bd6f0c8940b2$var$toGregorian(date) {
1250
+ let [era, year] = $3b62074eb05584b2$export$4475b7e617eb123c($5f31bd6f0c8940b2$var$gregorianYear(date));
1251
+ return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(era, year, date.month, date.day);
1252
+ }
1253
+ const $f3ed2e4472ae7e25$var$PERSIAN_EPOCH = 1948320;
1254
+ const $f3ed2e4472ae7e25$var$MONTH_START = [
1255
+ 0,
1256
+ 31,
1257
+ 62,
1258
+ 93,
1259
+ 124,
1260
+ 155,
1261
+ 186,
1262
+ 216,
1263
+ 246,
1264
+ 276,
1265
+ 306,
1266
+ 336
1267
+ // Esfand
1268
+ ];
1269
+ class $f3ed2e4472ae7e25$export$37fccdbfd14c5939 {
1270
+ fromJulianDay(jd) {
1271
+ let daysSinceEpoch = jd - $f3ed2e4472ae7e25$var$PERSIAN_EPOCH;
1272
+ let year = 1 + Math.floor((33 * daysSinceEpoch + 3) / 12053);
1273
+ let farvardin1 = 365 * (year - 1) + Math.floor((8 * year + 21) / 33);
1274
+ let dayOfYear = daysSinceEpoch - farvardin1;
1275
+ let month = dayOfYear < 216 ? Math.floor(dayOfYear / 31) : Math.floor((dayOfYear - 6) / 30);
1276
+ let day = dayOfYear - $f3ed2e4472ae7e25$var$MONTH_START[month] + 1;
1277
+ return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, year, month + 1, day);
1278
+ }
1279
+ toJulianDay(date) {
1280
+ let jd = $f3ed2e4472ae7e25$var$PERSIAN_EPOCH - 1 + 365 * (date.year - 1) + Math.floor((8 * date.year + 21) / 33);
1281
+ jd += $f3ed2e4472ae7e25$var$MONTH_START[date.month - 1];
1282
+ jd += date.day;
1283
+ return jd;
1284
+ }
1285
+ getMonthsInYear() {
1286
+ return 12;
1287
+ }
1288
+ getDaysInMonth(date) {
1289
+ if (date.month <= 6) return 31;
1290
+ if (date.month <= 11) return 30;
1291
+ let isLeapYear = $2b4dce13dd5a17fa$export$842a2cf37af977e1(25 * date.year + 11, 33) < 8;
1292
+ return isLeapYear ? 30 : 29;
1293
+ }
1294
+ getEras() {
1295
+ return [
1296
+ "AP"
1297
+ ];
1298
+ }
1299
+ getYearsInEra() {
1300
+ return 9377;
1301
+ }
1302
+ constructor() {
1303
+ this.identifier = "persian";
1304
+ }
1305
+ }
1306
+ const $82c358003bdda0a8$var$INDIAN_ERA_START = 78;
1307
+ const $82c358003bdda0a8$var$INDIAN_YEAR_START = 80;
1308
+ class $82c358003bdda0a8$export$39f31c639fa15726 extends $3b62074eb05584b2$export$80ee6245ec4f29ec {
1309
+ fromJulianDay(jd) {
1310
+ let date = super.fromJulianDay(jd);
1311
+ let indianYear = date.year - $82c358003bdda0a8$var$INDIAN_ERA_START;
1312
+ let yDay = jd - $3b62074eb05584b2$export$f297eb839006d339(date.era, date.year, 1, 1);
1313
+ let leapMonth;
1314
+ if (yDay < $82c358003bdda0a8$var$INDIAN_YEAR_START) {
1315
+ indianYear--;
1316
+ leapMonth = $3b62074eb05584b2$export$553d7fa8e3805fc0(date.year - 1) ? 31 : 30;
1317
+ yDay += leapMonth + 155 + 90 + 10;
1318
+ } else {
1319
+ leapMonth = $3b62074eb05584b2$export$553d7fa8e3805fc0(date.year) ? 31 : 30;
1320
+ yDay -= $82c358003bdda0a8$var$INDIAN_YEAR_START;
1321
+ }
1322
+ let indianMonth;
1323
+ let indianDay;
1324
+ if (yDay < leapMonth) {
1325
+ indianMonth = 1;
1326
+ indianDay = yDay + 1;
1327
+ } else {
1328
+ let mDay = yDay - leapMonth;
1329
+ if (mDay < 155) {
1330
+ indianMonth = Math.floor(mDay / 31) + 2;
1331
+ indianDay = mDay % 31 + 1;
1332
+ } else {
1333
+ mDay -= 155;
1334
+ indianMonth = Math.floor(mDay / 30) + 7;
1335
+ indianDay = mDay % 30 + 1;
1336
+ }
1337
+ }
1338
+ return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, indianYear, indianMonth, indianDay);
1339
+ }
1340
+ toJulianDay(date) {
1341
+ let extendedYear = date.year + $82c358003bdda0a8$var$INDIAN_ERA_START;
1342
+ let [era, year] = $3b62074eb05584b2$export$4475b7e617eb123c(extendedYear);
1343
+ let leapMonth;
1344
+ let jd;
1345
+ if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year)) {
1346
+ leapMonth = 31;
1347
+ jd = $3b62074eb05584b2$export$f297eb839006d339(era, year, 3, 21);
1348
+ } else {
1349
+ leapMonth = 30;
1350
+ jd = $3b62074eb05584b2$export$f297eb839006d339(era, year, 3, 22);
1351
+ }
1352
+ if (date.month === 1) return jd + date.day - 1;
1353
+ jd += leapMonth + Math.min(date.month - 2, 5) * 31;
1354
+ if (date.month >= 8) jd += (date.month - 7) * 30;
1355
+ jd += date.day - 1;
1356
+ return jd;
1357
+ }
1358
+ getDaysInMonth(date) {
1359
+ if (date.month === 1 && $3b62074eb05584b2$export$553d7fa8e3805fc0(date.year + $82c358003bdda0a8$var$INDIAN_ERA_START)) return 31;
1360
+ if (date.month >= 2 && date.month <= 6) return 31;
1361
+ return 30;
1362
+ }
1363
+ getYearsInEra() {
1364
+ return 9919;
1365
+ }
1366
+ getEras() {
1367
+ return [
1368
+ "saka"
1369
+ ];
1370
+ }
1371
+ balanceDate() {
1372
+ }
1373
+ constructor(...args) {
1374
+ super(...args), this.identifier = "indian";
1375
+ }
1376
+ }
1377
+ const $f2f3e0e3a817edbd$var$CIVIL_EPOC = 1948440;
1378
+ const $f2f3e0e3a817edbd$var$ASTRONOMICAL_EPOC = 1948439;
1379
+ const $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START = 1300;
1380
+ const $f2f3e0e3a817edbd$var$UMALQURA_YEAR_END = 1600;
1381
+ const $f2f3e0e3a817edbd$var$UMALQURA_START_DAYS = 460322;
1382
+ function $f2f3e0e3a817edbd$var$islamicToJulianDay(epoch, year, month, day) {
1383
+ return day + Math.ceil(29.5 * (month - 1)) + (year - 1) * 354 + Math.floor((3 + 11 * year) / 30) + epoch - 1;
1384
+ }
1385
+ function $f2f3e0e3a817edbd$var$julianDayToIslamic(calendar, epoch, jd) {
1386
+ let year = Math.floor((30 * (jd - epoch) + 10646) / 10631);
1387
+ let month = Math.min(12, Math.ceil((jd - (29 + $f2f3e0e3a817edbd$var$islamicToJulianDay(epoch, year, 1, 1))) / 29.5) + 1);
1388
+ let day = jd - $f2f3e0e3a817edbd$var$islamicToJulianDay(epoch, year, month, 1) + 1;
1389
+ return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(calendar, year, month, day);
1390
+ }
1391
+ function $f2f3e0e3a817edbd$var$isLeapYear(year) {
1392
+ return (14 + 11 * year) % 30 < 11;
1393
+ }
1394
+ class $f2f3e0e3a817edbd$export$2066795aadd37bfc {
1395
+ fromJulianDay(jd) {
1396
+ return $f2f3e0e3a817edbd$var$julianDayToIslamic(this, $f2f3e0e3a817edbd$var$CIVIL_EPOC, jd);
1397
+ }
1398
+ toJulianDay(date) {
1399
+ return $f2f3e0e3a817edbd$var$islamicToJulianDay($f2f3e0e3a817edbd$var$CIVIL_EPOC, date.year, date.month, date.day);
1400
+ }
1401
+ getDaysInMonth(date) {
1402
+ let length = 29 + date.month % 2;
1403
+ if (date.month === 12 && $f2f3e0e3a817edbd$var$isLeapYear(date.year)) length++;
1404
+ return length;
1405
+ }
1406
+ getMonthsInYear() {
1407
+ return 12;
1408
+ }
1409
+ getDaysInYear(date) {
1410
+ return $f2f3e0e3a817edbd$var$isLeapYear(date.year) ? 355 : 354;
1411
+ }
1412
+ getYearsInEra() {
1413
+ return 9665;
1414
+ }
1415
+ getEras() {
1416
+ return [
1417
+ "AH"
1418
+ ];
1419
+ }
1420
+ constructor() {
1421
+ this.identifier = "islamic-civil";
1422
+ }
1423
+ }
1424
+ class $f2f3e0e3a817edbd$export$37f0887f2f9d22f7 extends $f2f3e0e3a817edbd$export$2066795aadd37bfc {
1425
+ fromJulianDay(jd) {
1426
+ return $f2f3e0e3a817edbd$var$julianDayToIslamic(this, $f2f3e0e3a817edbd$var$ASTRONOMICAL_EPOC, jd);
1427
+ }
1428
+ toJulianDay(date) {
1429
+ return $f2f3e0e3a817edbd$var$islamicToJulianDay($f2f3e0e3a817edbd$var$ASTRONOMICAL_EPOC, date.year, date.month, date.day);
1430
+ }
1431
+ constructor(...args) {
1432
+ super(...args), this.identifier = "islamic-tbla";
1433
+ }
1434
+ }
1435
+ const $f2f3e0e3a817edbd$var$UMALQURA_DATA = "qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";
1436
+ let $f2f3e0e3a817edbd$var$UMALQURA_MONTHLENGTH;
1437
+ let $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE;
1438
+ function $f2f3e0e3a817edbd$var$umalquraYearStart(year) {
1439
+ return $f2f3e0e3a817edbd$var$UMALQURA_START_DAYS + $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE[year - $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START];
1440
+ }
1441
+ function $f2f3e0e3a817edbd$var$umalquraMonthLength(year, month) {
1442
+ let idx = year - $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START;
1443
+ let mask = 1 << 11 - (month - 1);
1444
+ if (($f2f3e0e3a817edbd$var$UMALQURA_MONTHLENGTH[idx] & mask) === 0) return 29;
1445
+ else return 30;
1446
+ }
1447
+ function $f2f3e0e3a817edbd$var$umalquraMonthStart(year, month) {
1448
+ let day = $f2f3e0e3a817edbd$var$umalquraYearStart(year);
1449
+ for (let i = 1; i < month; i++) day += $f2f3e0e3a817edbd$var$umalquraMonthLength(year, i);
1450
+ return day;
1451
+ }
1452
+ function $f2f3e0e3a817edbd$var$umalquraYearLength(year) {
1453
+ 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];
1454
+ }
1455
+ class $f2f3e0e3a817edbd$export$5baab4758c231076 extends $f2f3e0e3a817edbd$export$2066795aadd37bfc {
1456
+ fromJulianDay(jd) {
1457
+ let days = jd - $f2f3e0e3a817edbd$var$CIVIL_EPOC;
1458
+ let startDays = $f2f3e0e3a817edbd$var$umalquraYearStart($f2f3e0e3a817edbd$var$UMALQURA_YEAR_START);
1459
+ let endDays = $f2f3e0e3a817edbd$var$umalquraYearStart($f2f3e0e3a817edbd$var$UMALQURA_YEAR_END);
1460
+ if (days < startDays || days > endDays) return super.fromJulianDay(jd);
1461
+ else {
1462
+ let y = $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START - 1;
1463
+ let m = 1;
1464
+ let d = 1;
1465
+ while (d > 0) {
1466
+ y++;
1467
+ d = days - $f2f3e0e3a817edbd$var$umalquraYearStart(y) + 1;
1468
+ let yearLength = $f2f3e0e3a817edbd$var$umalquraYearLength(y);
1469
+ if (d === yearLength) {
1470
+ m = 12;
1471
+ break;
1472
+ } else if (d < yearLength) {
1473
+ let monthLength = $f2f3e0e3a817edbd$var$umalquraMonthLength(y, m);
1474
+ m = 1;
1475
+ while (d > monthLength) {
1476
+ d -= monthLength;
1477
+ m++;
1478
+ monthLength = $f2f3e0e3a817edbd$var$umalquraMonthLength(y, m);
1479
+ }
1480
+ break;
1481
+ }
1482
+ }
1483
+ return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, y, m, days - $f2f3e0e3a817edbd$var$umalquraMonthStart(y, m) + 1);
1484
+ }
1485
+ }
1486
+ toJulianDay(date) {
1487
+ if (date.year < $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START || date.year > $f2f3e0e3a817edbd$var$UMALQURA_YEAR_END) return super.toJulianDay(date);
1488
+ return $f2f3e0e3a817edbd$var$CIVIL_EPOC + $f2f3e0e3a817edbd$var$umalquraMonthStart(date.year, date.month) + (date.day - 1);
1489
+ }
1490
+ getDaysInMonth(date) {
1491
+ if (date.year < $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START || date.year > $f2f3e0e3a817edbd$var$UMALQURA_YEAR_END) return super.getDaysInMonth(date);
1492
+ return $f2f3e0e3a817edbd$var$umalquraMonthLength(date.year, date.month);
1493
+ }
1494
+ getDaysInYear(date) {
1495
+ if (date.year < $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START || date.year > $f2f3e0e3a817edbd$var$UMALQURA_YEAR_END) return super.getDaysInYear(date);
1496
+ return $f2f3e0e3a817edbd$var$umalquraYearLength(date.year);
1497
+ }
1498
+ constructor() {
1499
+ super(), this.identifier = "islamic-umalqura";
1500
+ if (!$f2f3e0e3a817edbd$var$UMALQURA_MONTHLENGTH) $f2f3e0e3a817edbd$var$UMALQURA_MONTHLENGTH = new Uint16Array(Uint8Array.from(atob($f2f3e0e3a817edbd$var$UMALQURA_DATA), (c) => c.charCodeAt(0)).buffer);
1501
+ if (!$f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE) {
1502
+ $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE = new Uint32Array($f2f3e0e3a817edbd$var$UMALQURA_YEAR_END - $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START + 1);
1503
+ let yearStart = 0;
1504
+ for (let year = $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START; year <= $f2f3e0e3a817edbd$var$UMALQURA_YEAR_END; year++) {
1505
+ $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE[year - $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START] = yearStart;
1506
+ for (let i = 1; i <= 12; i++) yearStart += $f2f3e0e3a817edbd$var$umalquraMonthLength(year, i);
1507
+ }
1508
+ }
1509
+ }
1510
+ }
1511
+ const $7c5f6fbf42389787$var$HEBREW_EPOCH = 347997;
1512
+ const $7c5f6fbf42389787$var$HOUR_PARTS = 1080;
1513
+ const $7c5f6fbf42389787$var$DAY_PARTS = 24 * $7c5f6fbf42389787$var$HOUR_PARTS;
1514
+ const $7c5f6fbf42389787$var$MONTH_DAYS = 29;
1515
+ const $7c5f6fbf42389787$var$MONTH_FRACT = 12 * $7c5f6fbf42389787$var$HOUR_PARTS + 793;
1516
+ const $7c5f6fbf42389787$var$MONTH_PARTS = $7c5f6fbf42389787$var$MONTH_DAYS * $7c5f6fbf42389787$var$DAY_PARTS + $7c5f6fbf42389787$var$MONTH_FRACT;
1517
+ function $7c5f6fbf42389787$var$isLeapYear(year) {
1518
+ return $2b4dce13dd5a17fa$export$842a2cf37af977e1(year * 7 + 1, 19) < 7;
1519
+ }
1520
+ function $7c5f6fbf42389787$var$hebrewDelay1(year) {
1521
+ let months = Math.floor((235 * year - 234) / 19);
1522
+ let parts = 12084 + 13753 * months;
1523
+ let day = months * 29 + Math.floor(parts / 25920);
1524
+ if ($2b4dce13dd5a17fa$export$842a2cf37af977e1(3 * (day + 1), 7) < 3) day += 1;
1525
+ return day;
1526
+ }
1527
+ function $7c5f6fbf42389787$var$hebrewDelay2(year) {
1528
+ let last = $7c5f6fbf42389787$var$hebrewDelay1(year - 1);
1529
+ let present = $7c5f6fbf42389787$var$hebrewDelay1(year);
1530
+ let next = $7c5f6fbf42389787$var$hebrewDelay1(year + 1);
1531
+ if (next - present === 356) return 2;
1532
+ if (present - last === 382) return 1;
1533
+ return 0;
1534
+ }
1535
+ function $7c5f6fbf42389787$var$startOfYear(year) {
1536
+ return $7c5f6fbf42389787$var$hebrewDelay1(year) + $7c5f6fbf42389787$var$hebrewDelay2(year);
1537
+ }
1538
+ function $7c5f6fbf42389787$var$getDaysInYear(year) {
1539
+ return $7c5f6fbf42389787$var$startOfYear(year + 1) - $7c5f6fbf42389787$var$startOfYear(year);
1540
+ }
1541
+ function $7c5f6fbf42389787$var$getYearType(year) {
1542
+ let yearLength = $7c5f6fbf42389787$var$getDaysInYear(year);
1543
+ if (yearLength > 380) yearLength -= 30;
1544
+ switch (yearLength) {
1545
+ case 353:
1546
+ return 0;
1547
+ // deficient
1548
+ case 354:
1549
+ return 1;
1550
+ // normal
1551
+ case 355:
1552
+ return 2;
1553
+ }
1554
+ }
1555
+ function $7c5f6fbf42389787$var$getDaysInMonth(year, month) {
1556
+ if (month >= 6 && !$7c5f6fbf42389787$var$isLeapYear(year)) month++;
1557
+ if (month === 4 || month === 7 || month === 9 || month === 11 || month === 13) return 29;
1558
+ let yearType = $7c5f6fbf42389787$var$getYearType(year);
1559
+ if (month === 2) return yearType === 2 ? 30 : 29;
1560
+ if (month === 3) return yearType === 0 ? 29 : 30;
1561
+ if (month === 6) return $7c5f6fbf42389787$var$isLeapYear(year) ? 30 : 0;
1562
+ return 30;
1563
+ }
1564
+ class $7c5f6fbf42389787$export$ca405048b8fb5af {
1565
+ fromJulianDay(jd) {
1566
+ let d = jd - $7c5f6fbf42389787$var$HEBREW_EPOCH;
1567
+ let m = d * $7c5f6fbf42389787$var$DAY_PARTS / $7c5f6fbf42389787$var$MONTH_PARTS;
1568
+ let year = Math.floor((19 * m + 234) / 235) + 1;
1569
+ let ys = $7c5f6fbf42389787$var$startOfYear(year);
1570
+ let dayOfYear = Math.floor(d - ys);
1571
+ while (dayOfYear < 1) {
1572
+ year--;
1573
+ ys = $7c5f6fbf42389787$var$startOfYear(year);
1574
+ dayOfYear = Math.floor(d - ys);
1575
+ }
1576
+ let month = 1;
1577
+ let monthStart = 0;
1578
+ while (monthStart < dayOfYear) {
1579
+ monthStart += $7c5f6fbf42389787$var$getDaysInMonth(year, month);
1580
+ month++;
1581
+ }
1582
+ month--;
1583
+ monthStart -= $7c5f6fbf42389787$var$getDaysInMonth(year, month);
1584
+ let day = dayOfYear - monthStart;
1585
+ return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, year, month, day);
1586
+ }
1587
+ toJulianDay(date) {
1588
+ let jd = $7c5f6fbf42389787$var$startOfYear(date.year);
1589
+ for (let month = 1; month < date.month; month++) jd += $7c5f6fbf42389787$var$getDaysInMonth(date.year, month);
1590
+ return jd + date.day + $7c5f6fbf42389787$var$HEBREW_EPOCH;
1591
+ }
1592
+ getDaysInMonth(date) {
1593
+ return $7c5f6fbf42389787$var$getDaysInMonth(date.year, date.month);
1594
+ }
1595
+ getMonthsInYear(date) {
1596
+ return $7c5f6fbf42389787$var$isLeapYear(date.year) ? 13 : 12;
1597
+ }
1598
+ getDaysInYear(date) {
1599
+ return $7c5f6fbf42389787$var$getDaysInYear(date.year);
1600
+ }
1601
+ getYearsInEra() {
1602
+ return 9999;
1603
+ }
1604
+ getEras() {
1605
+ return [
1606
+ "AM"
1607
+ ];
1608
+ }
1609
+ balanceYearMonth(date, previousDate) {
1610
+ if (previousDate.year !== date.year) {
1611
+ if ($7c5f6fbf42389787$var$isLeapYear(previousDate.year) && !$7c5f6fbf42389787$var$isLeapYear(date.year) && previousDate.month > 6) date.month--;
1612
+ else if (!$7c5f6fbf42389787$var$isLeapYear(previousDate.year) && $7c5f6fbf42389787$var$isLeapYear(date.year) && previousDate.month > 6) date.month++;
1613
+ }
1614
+ }
1615
+ constructor() {
1616
+ this.identifier = "hebrew";
1617
+ }
1618
+ }
1619
+ const $b956b2d7a6cf451f$var$ETHIOPIC_EPOCH = 1723856;
1620
+ const $b956b2d7a6cf451f$var$COPTIC_EPOCH = 1824665;
1621
+ const $b956b2d7a6cf451f$var$AMETE_MIHRET_DELTA = 5500;
1622
+ function $b956b2d7a6cf451f$var$ceToJulianDay(epoch, year, month, day) {
1623
+ return epoch + 365 * year + Math.floor(year / 4) + 30 * (month - 1) + day - 1;
1624
+ }
1625
+ function $b956b2d7a6cf451f$var$julianDayToCE(epoch, jd) {
1626
+ let year = Math.floor(4 * (jd - epoch) / 1461);
1627
+ let month = 1 + Math.floor((jd - $b956b2d7a6cf451f$var$ceToJulianDay(epoch, year, 1, 1)) / 30);
1628
+ let day = jd + 1 - $b956b2d7a6cf451f$var$ceToJulianDay(epoch, year, month, 1);
1629
+ return [
1630
+ year,
1631
+ month,
1632
+ day
1633
+ ];
1634
+ }
1635
+ function $b956b2d7a6cf451f$var$getLeapDay(year) {
1636
+ return Math.floor(year % 4 / 3);
1637
+ }
1638
+ function $b956b2d7a6cf451f$var$getDaysInMonth(year, month) {
1639
+ if (month % 13 !== 0)
1640
+ return 30;
1641
+ else
1642
+ return $b956b2d7a6cf451f$var$getLeapDay(year) + 5;
1643
+ }
1644
+ class $b956b2d7a6cf451f$export$26ba6eab5e20cd7d {
1645
+ fromJulianDay(jd) {
1646
+ let [year, month, day] = $b956b2d7a6cf451f$var$julianDayToCE($b956b2d7a6cf451f$var$ETHIOPIC_EPOCH, jd);
1647
+ let era = "AM";
1648
+ if (year <= 0) {
1649
+ era = "AA";
1650
+ year += $b956b2d7a6cf451f$var$AMETE_MIHRET_DELTA;
1651
+ }
1652
+ return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, era, year, month, day);
1653
+ }
1654
+ toJulianDay(date) {
1655
+ let year = date.year;
1656
+ if (date.era === "AA") year -= $b956b2d7a6cf451f$var$AMETE_MIHRET_DELTA;
1657
+ return $b956b2d7a6cf451f$var$ceToJulianDay($b956b2d7a6cf451f$var$ETHIOPIC_EPOCH, year, date.month, date.day);
1658
+ }
1659
+ getDaysInMonth(date) {
1660
+ return $b956b2d7a6cf451f$var$getDaysInMonth(date.year, date.month);
1661
+ }
1662
+ getMonthsInYear() {
1663
+ return 13;
1664
+ }
1665
+ getDaysInYear(date) {
1666
+ return 365 + $b956b2d7a6cf451f$var$getLeapDay(date.year);
1667
+ }
1668
+ getYearsInEra(date) {
1669
+ return date.era === "AA" ? 9999 : 9991;
1670
+ }
1671
+ getEras() {
1672
+ return [
1673
+ "AA",
1674
+ "AM"
1675
+ ];
1676
+ }
1677
+ constructor() {
1678
+ this.identifier = "ethiopic";
1679
+ }
1680
+ }
1681
+ class $b956b2d7a6cf451f$export$d72e0c37005a4914 extends $b956b2d7a6cf451f$export$26ba6eab5e20cd7d {
1682
+ fromJulianDay(jd) {
1683
+ let [year, month, day] = $b956b2d7a6cf451f$var$julianDayToCE($b956b2d7a6cf451f$var$ETHIOPIC_EPOCH, jd);
1684
+ year += $b956b2d7a6cf451f$var$AMETE_MIHRET_DELTA;
1685
+ return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, "AA", year, month, day);
1686
+ }
1687
+ getEras() {
1688
+ return [
1689
+ "AA"
1690
+ ];
1691
+ }
1692
+ getYearsInEra() {
1693
+ return 9999;
1694
+ }
1695
+ constructor(...args) {
1696
+ super(...args), this.identifier = "ethioaa";
1697
+ }
1698
+ }
1699
+ class $b956b2d7a6cf451f$export$fe6243cbe1a4b7c1 extends $b956b2d7a6cf451f$export$26ba6eab5e20cd7d {
1700
+ fromJulianDay(jd) {
1701
+ let [year, month, day] = $b956b2d7a6cf451f$var$julianDayToCE($b956b2d7a6cf451f$var$COPTIC_EPOCH, jd);
1702
+ let era = "CE";
1703
+ if (year <= 0) {
1704
+ era = "BCE";
1705
+ year = 1 - year;
1706
+ }
1707
+ return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, era, year, month, day);
1708
+ }
1709
+ toJulianDay(date) {
1710
+ let year = date.year;
1711
+ if (date.era === "BCE") year = 1 - year;
1712
+ return $b956b2d7a6cf451f$var$ceToJulianDay($b956b2d7a6cf451f$var$COPTIC_EPOCH, year, date.month, date.day);
1713
+ }
1714
+ getDaysInMonth(date) {
1715
+ let year = date.year;
1716
+ if (date.era === "BCE") year = 1 - year;
1717
+ return $b956b2d7a6cf451f$var$getDaysInMonth(year, date.month);
1718
+ }
1719
+ isInverseEra(date) {
1720
+ return date.era === "BCE";
1721
+ }
1722
+ balanceDate(date) {
1723
+ if (date.year <= 0) {
1724
+ date.era = date.era === "BCE" ? "CE" : "BCE";
1725
+ date.year = 1 - date.year;
1726
+ }
1727
+ }
1728
+ getEras() {
1729
+ return [
1730
+ "BCE",
1731
+ "CE"
1732
+ ];
1733
+ }
1734
+ getYearsInEra(date) {
1735
+ return date.era === "BCE" ? 9999 : 9715;
1736
+ }
1737
+ constructor(...args) {
1738
+ super(...args), this.identifier = "coptic";
1739
+ }
1740
+ }
1741
+ function $64244302c3013299$export$dd0bbc9b26defe37(name) {
1742
+ switch (name) {
1743
+ case "buddhist":
1744
+ return new $8d73d47422ca7302$export$42d20a78301dee44();
1745
+ case "ethiopic":
1746
+ return new $b956b2d7a6cf451f$export$26ba6eab5e20cd7d();
1747
+ case "ethioaa":
1748
+ return new $b956b2d7a6cf451f$export$d72e0c37005a4914();
1749
+ case "coptic":
1750
+ return new $b956b2d7a6cf451f$export$fe6243cbe1a4b7c1();
1751
+ case "hebrew":
1752
+ return new $7c5f6fbf42389787$export$ca405048b8fb5af();
1753
+ case "indian":
1754
+ return new $82c358003bdda0a8$export$39f31c639fa15726();
1755
+ case "islamic-civil":
1756
+ return new $f2f3e0e3a817edbd$export$2066795aadd37bfc();
1757
+ case "islamic-tbla":
1758
+ return new $f2f3e0e3a817edbd$export$37f0887f2f9d22f7();
1759
+ case "islamic-umalqura":
1760
+ return new $f2f3e0e3a817edbd$export$5baab4758c231076();
1761
+ case "japanese":
1762
+ return new $62225008020f0a13$export$b746ab2b60cdffbf();
1763
+ case "persian":
1764
+ return new $f3ed2e4472ae7e25$export$37fccdbfd14c5939();
1765
+ case "roc":
1766
+ return new $5f31bd6f0c8940b2$export$65e01080afcb0799();
1767
+ case "gregory":
1768
+ default:
1769
+ return new $3b62074eb05584b2$export$80ee6245ec4f29ec();
1770
+ }
1771
+ }
1772
+ let $fb18d541ea1ad717$var$formatterCache = /* @__PURE__ */ new Map();
1773
+ class $fb18d541ea1ad717$export$ad991b66133851cf {
1774
+ /** Formats a date as a string according to the locale and format options passed to the constructor. */
1775
+ format(value) {
1776
+ return this.formatter.format(value);
1777
+ }
1778
+ /** Formats a date to an array of parts such as separators, numbers, punctuation, and more. */
1779
+ formatToParts(value) {
1780
+ return this.formatter.formatToParts(value);
1781
+ }
1782
+ /** Formats a date range as a string. */
1783
+ formatRange(start, end) {
1784
+ if (typeof this.formatter.formatRange === "function")
1785
+ return this.formatter.formatRange(start, end);
1786
+ if (end < start) throw new RangeError("End date must be >= start date");
1787
+ return `${this.formatter.format(start)} – ${this.formatter.format(end)}`;
1788
+ }
1789
+ /** Formats a date range as an array of parts. */
1790
+ formatRangeToParts(start, end) {
1791
+ if (typeof this.formatter.formatRangeToParts === "function")
1792
+ return this.formatter.formatRangeToParts(start, end);
1793
+ if (end < start) throw new RangeError("End date must be >= start date");
1794
+ let startParts = this.formatter.formatToParts(start);
1795
+ let endParts = this.formatter.formatToParts(end);
1796
+ return [
1797
+ ...startParts.map((p) => __spreadProps(__spreadValues({}, p), {
1798
+ source: "startRange"
1799
+ })),
1800
+ {
1801
+ type: "literal",
1802
+ value: " – ",
1803
+ source: "shared"
1804
+ },
1805
+ ...endParts.map((p) => __spreadProps(__spreadValues({}, p), {
1806
+ source: "endRange"
1807
+ }))
1808
+ ];
1809
+ }
1810
+ /** Returns the resolved formatting options based on the values passed to the constructor. */
1811
+ resolvedOptions() {
1812
+ let resolvedOptions = this.formatter.resolvedOptions();
1813
+ if ($fb18d541ea1ad717$var$hasBuggyResolvedHourCycle()) {
1814
+ if (!this.resolvedHourCycle) this.resolvedHourCycle = $fb18d541ea1ad717$var$getResolvedHourCycle(resolvedOptions.locale, this.options);
1815
+ resolvedOptions.hourCycle = this.resolvedHourCycle;
1816
+ resolvedOptions.hour12 = this.resolvedHourCycle === "h11" || this.resolvedHourCycle === "h12";
1817
+ }
1818
+ if (resolvedOptions.calendar === "ethiopic-amete-alem") resolvedOptions.calendar = "ethioaa";
1819
+ return resolvedOptions;
1820
+ }
1821
+ constructor(locale, options = {}) {
1822
+ this.formatter = $fb18d541ea1ad717$var$getCachedDateFormatter(locale, options);
1823
+ this.options = options;
1824
+ }
1825
+ }
1826
+ const $fb18d541ea1ad717$var$hour12Preferences = {
1827
+ true: {
1828
+ // Only Japanese uses the h11 style for 12 hour time. All others use h12.
1829
+ ja: "h11"
1830
+ },
1831
+ false: {}
1832
+ };
1833
+ function $fb18d541ea1ad717$var$getCachedDateFormatter(locale, options = {}) {
1834
+ if (typeof options.hour12 === "boolean" && $fb18d541ea1ad717$var$hasBuggyHour12Behavior()) {
1835
+ options = __spreadValues({}, options);
1836
+ let pref = $fb18d541ea1ad717$var$hour12Preferences[String(options.hour12)][locale.split("-")[0]];
1837
+ let defaultHourCycle = options.hour12 ? "h12" : "h23";
1838
+ options.hourCycle = pref !== null && pref !== void 0 ? pref : defaultHourCycle;
1839
+ delete options.hour12;
1840
+ }
1841
+ let cacheKey = locale + (options ? Object.entries(options).sort((a, b) => a[0] < b[0] ? -1 : 1).join() : "");
1842
+ if ($fb18d541ea1ad717$var$formatterCache.has(cacheKey)) return $fb18d541ea1ad717$var$formatterCache.get(cacheKey);
1843
+ let numberFormatter = new Intl.DateTimeFormat(locale, options);
1844
+ $fb18d541ea1ad717$var$formatterCache.set(cacheKey, numberFormatter);
1845
+ return numberFormatter;
1846
+ }
1847
+ let $fb18d541ea1ad717$var$_hasBuggyHour12Behavior = null;
1848
+ function $fb18d541ea1ad717$var$hasBuggyHour12Behavior() {
1849
+ if ($fb18d541ea1ad717$var$_hasBuggyHour12Behavior == null) $fb18d541ea1ad717$var$_hasBuggyHour12Behavior = new Intl.DateTimeFormat("en-US", {
1850
+ hour: "numeric",
1851
+ hour12: false
1852
+ }).format(new Date(2020, 2, 3, 0)) === "24";
1853
+ return $fb18d541ea1ad717$var$_hasBuggyHour12Behavior;
1854
+ }
1855
+ let $fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle = null;
1856
+ function $fb18d541ea1ad717$var$hasBuggyResolvedHourCycle() {
1857
+ if ($fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle == null) $fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle = new Intl.DateTimeFormat("fr", {
1858
+ hour: "numeric",
1859
+ hour12: false
1860
+ }).resolvedOptions().hourCycle === "h12";
1861
+ return $fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle;
1862
+ }
1863
+ function $fb18d541ea1ad717$var$getResolvedHourCycle(locale, options) {
1864
+ if (!options.timeStyle && !options.hour) return void 0;
1865
+ locale = locale.replace(/(-u-)?-nu-[a-zA-Z0-9]+/, "");
1866
+ locale += (locale.includes("-u-") ? "" : "-u") + "-nu-latn";
1867
+ let formatter = $fb18d541ea1ad717$var$getCachedDateFormatter(locale, __spreadProps(__spreadValues({}, options), {
1868
+ timeZone: void 0
1869
+ // use local timezone
1870
+ }));
1871
+ let min = parseInt(formatter.formatToParts(new Date(2020, 2, 3, 0)).find((p) => p.type === "hour").value, 10);
1872
+ let max = parseInt(formatter.formatToParts(new Date(2020, 2, 3, 23)).find((p) => p.type === "hour").value, 10);
1873
+ if (min === 0 && max === 23) return "h23";
1874
+ if (min === 24 && max === 23) return "h24";
1875
+ if (min === 0 && max === 11) return "h11";
1876
+ if (min === 12 && max === 11) return "h12";
1877
+ throw new Error("Unexpected hour cycle result");
1878
+ }
1879
+ function $f62d864046160412$export$eac50920cf2fd59a(date, minValue, maxValue) {
1880
+ return minValue != null && date.compare(minValue) < 0 || maxValue != null && date.compare(maxValue) > 0;
1881
+ }
1882
+ function $f62d864046160412$export$f4a51ff076cc9a09(date, duration, locale, minValue, maxValue) {
1883
+ let halfDuration = {};
1884
+ for (let key in duration) {
1885
+ halfDuration[key] = Math.floor(duration[key] / 2);
1886
+ if (halfDuration[key] > 0 && duration[key] % 2 === 0) halfDuration[key]--;
1887
+ }
1888
+ let aligned = $f62d864046160412$export$144a00ba6044eb9(date, duration, locale).subtract(halfDuration);
1889
+ return $f62d864046160412$export$5bb865b12696a77d(date, aligned, duration, locale, minValue, maxValue);
1890
+ }
1891
+ function $f62d864046160412$export$144a00ba6044eb9(date, duration, locale, minValue, maxValue) {
1892
+ let aligned = date;
1893
+ if (duration.years) aligned = $14e0f24ef4ac5c92$export$f91e89d3d0406102(date);
1894
+ else if (duration.months) aligned = $14e0f24ef4ac5c92$export$a5a3b454ada2268e(date);
1895
+ else if (duration.weeks) aligned = $14e0f24ef4ac5c92$export$42c81a444fbfb5d4(date, locale);
1896
+ return $f62d864046160412$export$5bb865b12696a77d(date, aligned, duration, locale, minValue, maxValue);
1897
+ }
1898
+ function $f62d864046160412$export$530edbfc915b2b04(date, duration, locale, minValue, maxValue) {
1899
+ let d = __spreadValues({}, duration);
1900
+ if (d.days) d.days--;
1901
+ else if (d.weeks) d.weeks--;
1902
+ else if (d.months) d.months--;
1903
+ else if (d.years) d.years--;
1904
+ let aligned = $f62d864046160412$export$144a00ba6044eb9(date, duration, locale).subtract(d);
1905
+ return $f62d864046160412$export$5bb865b12696a77d(date, aligned, duration, locale, minValue, maxValue);
1906
+ }
1907
+ function $f62d864046160412$export$5bb865b12696a77d(date, aligned, duration, locale, minValue, maxValue) {
1908
+ if (minValue && date.compare(minValue) >= 0) {
1909
+ let newDate = $14e0f24ef4ac5c92$export$a75f2bff57811055(aligned, $f62d864046160412$export$144a00ba6044eb9($11d87f3f76e88657$export$93522d1a439f3617(minValue), duration, locale));
1910
+ if (newDate) aligned = newDate;
1911
+ }
1912
+ if (maxValue && date.compare(maxValue) <= 0) {
1913
+ let newDate = $14e0f24ef4ac5c92$export$5c333a116e949cdd(aligned, $f62d864046160412$export$530edbfc915b2b04($11d87f3f76e88657$export$93522d1a439f3617(maxValue), duration, locale));
1914
+ if (newDate) aligned = newDate;
1915
+ }
1916
+ return aligned;
1917
+ }
1918
+ function $f62d864046160412$export$4f5203c0d889109e(date, minValue, maxValue) {
1919
+ if (minValue) {
1920
+ let newDate = $14e0f24ef4ac5c92$export$a75f2bff57811055(date, $11d87f3f76e88657$export$93522d1a439f3617(minValue));
1921
+ if (newDate) date = newDate;
1922
+ }
1923
+ if (maxValue) {
1924
+ let newDate = $14e0f24ef4ac5c92$export$5c333a116e949cdd(date, $11d87f3f76e88657$export$93522d1a439f3617(maxValue));
1925
+ if (newDate) date = newDate;
1926
+ }
1927
+ return date;
1928
+ }
1929
+ function $f62d864046160412$export$a1d3911297b952d7(date, minValue, isDateUnavailable) {
1930
+ if (!isDateUnavailable) return date;
1931
+ while (date.compare(minValue) >= 0 && isDateUnavailable(date)) date = date.subtract({
1932
+ days: 1
1933
+ });
1934
+ if (date.compare(minValue) >= 0) return date;
1935
+ return null;
1936
+ }
1937
+ function $131cf43a05231e1e$export$6d095e787d2b5e1f(props) {
1938
+ let defaultFormatter = useMemo(() => new $fb18d541ea1ad717$export$ad991b66133851cf(props.locale), [
1939
+ props.locale
1940
+ ]);
1941
+ let resolvedOptions = useMemo(() => defaultFormatter.resolvedOptions(), [
1942
+ defaultFormatter
1943
+ ]);
1944
+ let { locale, createCalendar, visibleDuration = {
1945
+ months: 1
1946
+ }, minValue, maxValue, selectionAlignment, isDateUnavailable, pageBehavior = "visible" } = props;
1947
+ let calendar = useMemo(() => createCalendar(resolvedOptions.calendar), [
1948
+ createCalendar,
1949
+ resolvedOptions.calendar
1950
+ ]);
1951
+ var _props_defaultValue;
1952
+ let [value, setControlledValue] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(props.value, (_props_defaultValue = props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : null, props.onChange);
1953
+ let calendarDateValue = useMemo(() => value ? $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$93522d1a439f3617(value), calendar) : null, [
1954
+ value,
1955
+ calendar
1956
+ ]);
1957
+ let timeZone = useMemo(() => value && "timeZone" in value ? value.timeZone : resolvedOptions.timeZone, [
1958
+ value,
1959
+ resolvedOptions.timeZone
1960
+ ]);
1961
+ let focusedCalendarDate = useMemo(() => props.focusedValue ? $f62d864046160412$export$4f5203c0d889109e($11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$93522d1a439f3617(props.focusedValue), calendar), minValue, maxValue) : void 0, [
1962
+ props.focusedValue,
1963
+ calendar,
1964
+ minValue,
1965
+ maxValue
1966
+ ]);
1967
+ let defaultFocusedCalendarDate = useMemo(() => $f62d864046160412$export$4f5203c0d889109e(props.defaultFocusedValue ? $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$93522d1a439f3617(props.defaultFocusedValue), calendar) : calendarDateValue || $11d87f3f76e88657$export$b4a036af3fc0b032($14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(timeZone), calendar), minValue, maxValue), [
1968
+ props.defaultFocusedValue,
1969
+ calendarDateValue,
1970
+ timeZone,
1971
+ calendar,
1972
+ minValue,
1973
+ maxValue
1974
+ ]);
1975
+ let [focusedDate, setFocusedDate] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(focusedCalendarDate, defaultFocusedCalendarDate, props.onFocusChange);
1976
+ let [startDate, setStartDate] = useState(() => {
1977
+ switch (selectionAlignment) {
1978
+ case "start":
1979
+ return $f62d864046160412$export$144a00ba6044eb9(focusedDate, visibleDuration, locale, minValue, maxValue);
1980
+ case "end":
1981
+ return $f62d864046160412$export$530edbfc915b2b04(focusedDate, visibleDuration, locale, minValue, maxValue);
1982
+ case "center":
1983
+ default:
1984
+ return $f62d864046160412$export$f4a51ff076cc9a09(focusedDate, visibleDuration, locale, minValue, maxValue);
1985
+ }
1986
+ });
1987
+ let [isFocused, setFocused] = useState(props.autoFocus || false);
1988
+ let endDate = useMemo(() => {
1989
+ let duration = __spreadValues({}, visibleDuration);
1990
+ if (duration.days) duration.days--;
1991
+ else duration.days = -1;
1992
+ return startDate.add(duration);
1993
+ }, [
1994
+ startDate,
1995
+ visibleDuration
1996
+ ]);
1997
+ let [lastCalendarIdentifier, setLastCalendarIdentifier] = useState(calendar.identifier);
1998
+ if (calendar.identifier !== lastCalendarIdentifier) {
1999
+ let newFocusedDate = $11d87f3f76e88657$export$b4a036af3fc0b032(focusedDate, calendar);
2000
+ setStartDate($f62d864046160412$export$f4a51ff076cc9a09(newFocusedDate, visibleDuration, locale, minValue, maxValue));
2001
+ setFocusedDate(newFocusedDate);
2002
+ setLastCalendarIdentifier(calendar.identifier);
2003
+ }
2004
+ if ($f62d864046160412$export$eac50920cf2fd59a(focusedDate, minValue, maxValue))
2005
+ setFocusedDate($f62d864046160412$export$4f5203c0d889109e(focusedDate, minValue, maxValue));
2006
+ else if (focusedDate.compare(startDate) < 0) setStartDate($f62d864046160412$export$530edbfc915b2b04(focusedDate, visibleDuration, locale, minValue, maxValue));
2007
+ else if (focusedDate.compare(endDate) > 0) setStartDate($f62d864046160412$export$144a00ba6044eb9(focusedDate, visibleDuration, locale, minValue, maxValue));
2008
+ function focusCell(date) {
2009
+ date = $f62d864046160412$export$4f5203c0d889109e(date, minValue, maxValue);
2010
+ setFocusedDate(date);
2011
+ }
2012
+ function setValue(newValue) {
2013
+ if (!props.isDisabled && !props.isReadOnly) {
2014
+ let localValue = newValue;
2015
+ if (localValue === null) {
2016
+ setControlledValue(null);
2017
+ return;
2018
+ }
2019
+ localValue = $f62d864046160412$export$4f5203c0d889109e(localValue, minValue, maxValue);
2020
+ localValue = $f62d864046160412$export$a1d3911297b952d7(localValue, startDate, isDateUnavailable);
2021
+ if (!localValue) return;
2022
+ localValue = $11d87f3f76e88657$export$b4a036af3fc0b032(localValue, (value === null || value === void 0 ? void 0 : value.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
2023
+ if (value && "hour" in value) setControlledValue(value.set(localValue));
2024
+ else setControlledValue(localValue);
2025
+ }
2026
+ }
2027
+ let isUnavailable2 = useMemo(() => {
2028
+ if (!calendarDateValue) return false;
2029
+ if (isDateUnavailable && isDateUnavailable(calendarDateValue)) return true;
2030
+ return $f62d864046160412$export$eac50920cf2fd59a(calendarDateValue, minValue, maxValue);
2031
+ }, [
2032
+ calendarDateValue,
2033
+ isDateUnavailable,
2034
+ minValue,
2035
+ maxValue
2036
+ ]);
2037
+ let isValueInvalid = props.isInvalid || props.validationState === "invalid" || isUnavailable2;
2038
+ let validationState = isValueInvalid ? "invalid" : null;
2039
+ let pageDuration = useMemo(() => {
2040
+ if (pageBehavior === "visible") return visibleDuration;
2041
+ return $131cf43a05231e1e$var$unitDuration(visibleDuration);
2042
+ }, [
2043
+ pageBehavior,
2044
+ visibleDuration
2045
+ ]);
2046
+ var _props_isDisabled, _props_isReadOnly;
2047
+ return {
2048
+ isDisabled: (_props_isDisabled = props.isDisabled) !== null && _props_isDisabled !== void 0 ? _props_isDisabled : false,
2049
+ isReadOnly: (_props_isReadOnly = props.isReadOnly) !== null && _props_isReadOnly !== void 0 ? _props_isReadOnly : false,
2050
+ value: calendarDateValue,
2051
+ setValue,
2052
+ visibleRange: {
2053
+ start: startDate,
2054
+ end: endDate
2055
+ },
2056
+ minValue,
2057
+ maxValue,
2058
+ focusedDate,
2059
+ timeZone,
2060
+ validationState,
2061
+ isValueInvalid,
2062
+ setFocusedDate(date) {
2063
+ focusCell(date);
2064
+ setFocused(true);
2065
+ },
2066
+ focusNextDay() {
2067
+ focusCell(focusedDate.add({
2068
+ days: 1
2069
+ }));
2070
+ },
2071
+ focusPreviousDay() {
2072
+ focusCell(focusedDate.subtract({
2073
+ days: 1
2074
+ }));
2075
+ },
2076
+ focusNextRow() {
2077
+ if (visibleDuration.days) this.focusNextPage();
2078
+ else if (visibleDuration.weeks || visibleDuration.months || visibleDuration.years) focusCell(focusedDate.add({
2079
+ weeks: 1
2080
+ }));
2081
+ },
2082
+ focusPreviousRow() {
2083
+ if (visibleDuration.days) this.focusPreviousPage();
2084
+ else if (visibleDuration.weeks || visibleDuration.months || visibleDuration.years) focusCell(focusedDate.subtract({
2085
+ weeks: 1
2086
+ }));
2087
+ },
2088
+ focusNextPage() {
2089
+ let start = startDate.add(pageDuration);
2090
+ setFocusedDate($f62d864046160412$export$4f5203c0d889109e(focusedDate.add(pageDuration), minValue, maxValue));
2091
+ setStartDate($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(focusedDate, start, pageDuration, locale, minValue, maxValue), pageDuration, locale));
2092
+ },
2093
+ focusPreviousPage() {
2094
+ let start = startDate.subtract(pageDuration);
2095
+ setFocusedDate($f62d864046160412$export$4f5203c0d889109e(focusedDate.subtract(pageDuration), minValue, maxValue));
2096
+ setStartDate($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(focusedDate, start, pageDuration, locale, minValue, maxValue), pageDuration, locale));
2097
+ },
2098
+ focusSectionStart() {
2099
+ if (visibleDuration.days) focusCell(startDate);
2100
+ else if (visibleDuration.weeks) focusCell($14e0f24ef4ac5c92$export$42c81a444fbfb5d4(focusedDate, locale));
2101
+ else if (visibleDuration.months || visibleDuration.years) focusCell($14e0f24ef4ac5c92$export$a5a3b454ada2268e(focusedDate));
2102
+ },
2103
+ focusSectionEnd() {
2104
+ if (visibleDuration.days) focusCell(endDate);
2105
+ else if (visibleDuration.weeks) focusCell($14e0f24ef4ac5c92$export$ef8b6d9133084f4e(focusedDate, locale));
2106
+ else if (visibleDuration.months || visibleDuration.years) focusCell($14e0f24ef4ac5c92$export$a2258d9c4118825c(focusedDate));
2107
+ },
2108
+ focusNextSection(larger) {
2109
+ if (!larger && !visibleDuration.days) {
2110
+ focusCell(focusedDate.add($131cf43a05231e1e$var$unitDuration(visibleDuration)));
2111
+ return;
2112
+ }
2113
+ if (visibleDuration.days) this.focusNextPage();
2114
+ else if (visibleDuration.weeks) focusCell(focusedDate.add({
2115
+ months: 1
2116
+ }));
2117
+ else if (visibleDuration.months || visibleDuration.years) focusCell(focusedDate.add({
2118
+ years: 1
2119
+ }));
2120
+ },
2121
+ focusPreviousSection(larger) {
2122
+ if (!larger && !visibleDuration.days) {
2123
+ focusCell(focusedDate.subtract($131cf43a05231e1e$var$unitDuration(visibleDuration)));
2124
+ return;
2125
+ }
2126
+ if (visibleDuration.days) this.focusPreviousPage();
2127
+ else if (visibleDuration.weeks) focusCell(focusedDate.subtract({
2128
+ months: 1
2129
+ }));
2130
+ else if (visibleDuration.months || visibleDuration.years) focusCell(focusedDate.subtract({
2131
+ years: 1
2132
+ }));
2133
+ },
2134
+ selectFocusedDate() {
2135
+ setValue(focusedDate);
2136
+ },
2137
+ selectDate(date) {
2138
+ setValue(date);
2139
+ },
2140
+ isFocused,
2141
+ setFocused,
2142
+ isInvalid(date) {
2143
+ return $f62d864046160412$export$eac50920cf2fd59a(date, minValue, maxValue);
2144
+ },
2145
+ isSelected(date) {
2146
+ return calendarDateValue != null && $14e0f24ef4ac5c92$export$ea39ec197993aef0(date, calendarDateValue) && !this.isCellDisabled(date) && !this.isCellUnavailable(date);
2147
+ },
2148
+ isCellFocused(date) {
2149
+ return isFocused && focusedDate && $14e0f24ef4ac5c92$export$ea39ec197993aef0(date, focusedDate);
2150
+ },
2151
+ isCellDisabled(date) {
2152
+ return props.isDisabled || date.compare(startDate) < 0 || date.compare(endDate) > 0 || this.isInvalid(date);
2153
+ },
2154
+ isCellUnavailable(date) {
2155
+ return props.isDateUnavailable ? props.isDateUnavailable(date) : false;
2156
+ },
2157
+ isPreviousVisibleRangeInvalid() {
2158
+ let prev = startDate.subtract({
2159
+ days: 1
2160
+ });
2161
+ return $14e0f24ef4ac5c92$export$ea39ec197993aef0(prev, startDate) || this.isInvalid(prev);
2162
+ },
2163
+ isNextVisibleRangeInvalid() {
2164
+ let next = endDate.add({
2165
+ days: 1
2166
+ });
2167
+ return $14e0f24ef4ac5c92$export$ea39ec197993aef0(next, endDate) || this.isInvalid(next);
2168
+ },
2169
+ getDatesInWeek(weekIndex, from = startDate) {
2170
+ let date = from.add({
2171
+ weeks: weekIndex
2172
+ });
2173
+ let dates = [];
2174
+ date = $14e0f24ef4ac5c92$export$42c81a444fbfb5d4(date, locale);
2175
+ let dayOfWeek = $14e0f24ef4ac5c92$export$2061056d06d7cdf7(date, locale);
2176
+ for (let i = 0; i < dayOfWeek; i++) dates.push(null);
2177
+ while (dates.length < 7) {
2178
+ dates.push(date);
2179
+ let nextDate = date.add({
2180
+ days: 1
2181
+ });
2182
+ if ($14e0f24ef4ac5c92$export$ea39ec197993aef0(date, nextDate)) break;
2183
+ date = nextDate;
2184
+ }
2185
+ while (dates.length < 7) dates.push(null);
2186
+ return dates;
2187
+ }
2188
+ };
2189
+ }
2190
+ function $131cf43a05231e1e$var$unitDuration(duration) {
2191
+ let unit = __spreadValues({}, duration);
2192
+ for (let key in duration) unit[key] = 1;
2193
+ return unit;
2194
+ }
2195
+ function $5a387cc49350e6db$export$722debc0e56fea39(value, isEqual) {
2196
+ let lastValue = useRef(null);
2197
+ if (value && lastValue.current && isEqual(value, lastValue.current)) value = lastValue.current;
2198
+ lastValue.current = value;
2199
+ return value;
2200
+ }
2201
+ function $896ba0a80a8f4d36$export$85fd5fdf27bacc79(options) {
2202
+ options = $5a387cc49350e6db$export$722debc0e56fea39(options !== null && options !== void 0 ? options : {}, $896ba0a80a8f4d36$var$isEqual);
2203
+ let { locale } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
2204
+ return useMemo(() => new $fb18d541ea1ad717$export$ad991b66133851cf(locale, options), [
2205
+ locale,
2206
+ options
2207
+ ]);
2208
+ }
2209
+ function $896ba0a80a8f4d36$var$isEqual(a, b) {
2210
+ if (a === b) return true;
2211
+ let aKeys = Object.keys(a);
2212
+ let bKeys = Object.keys(b);
2213
+ if (aKeys.length !== bKeys.length) return false;
2214
+ for (let key of aKeys) {
2215
+ if (b[key] !== a[key]) return false;
2216
+ }
2217
+ return true;
2218
+ }
2219
+ var $39324ace0d945f59$exports = {};
2220
+ $39324ace0d945f59$exports = {
2221
+ "dateRange": (args) => `${args.startDate} إلى ${args.endDate}`,
2222
+ "dateSelected": (args) => `${args.date} المحدد`,
2223
+ "finishRangeSelectionPrompt": `انقر لإنهاء عملية تحديد نطاق التاريخ`,
2224
+ "maximumDate": `آخر تاريخ متاح`,
2225
+ "minimumDate": `أول تاريخ متاح`,
2226
+ "next": `التالي`,
2227
+ "previous": `السابق`,
2228
+ "selectedDateDescription": (args) => `تاريخ محدد: ${args.date}`,
2229
+ "selectedRangeDescription": (args) => `المدى الزمني المحدد: ${args.dateRange}`,
2230
+ "startRangeSelectionPrompt": `انقر لبدء عملية تحديد نطاق التاريخ`,
2231
+ "todayDate": (args) => `اليوم، ${args.date}`,
2232
+ "todayDateSelected": (args) => `اليوم، ${args.date} محدد`
2233
+ };
2234
+ var $1830a539e98c7baf$exports = {};
2235
+ $1830a539e98c7baf$exports = {
2236
+ "dateRange": (args) => `${args.startDate} до ${args.endDate}`,
2237
+ "dateSelected": (args) => `Избрано е ${args.date}`,
2238
+ "finishRangeSelectionPrompt": `Натиснете, за да довършите избора на времеви интервал`,
2239
+ "maximumDate": `Последна налична дата`,
2240
+ "minimumDate": `Първа налична дата`,
2241
+ "next": `Напред`,
2242
+ "previous": `Назад`,
2243
+ "selectedDateDescription": (args) => `Избрана дата: ${args.date}`,
2244
+ "selectedRangeDescription": (args) => `Избран диапазон: ${args.dateRange}`,
2245
+ "startRangeSelectionPrompt": `Натиснете, за да пристъпите към избора на времеви интервал`,
2246
+ "todayDate": (args) => `Днес, ${args.date}`,
2247
+ "todayDateSelected": (args) => `Днес, ${args.date} са избрани`
2248
+ };
2249
+ var $f4b92528965aab97$exports = {};
2250
+ $f4b92528965aab97$exports = {
2251
+ "dateRange": (args) => `${args.startDate} až ${args.endDate}`,
2252
+ "dateSelected": (args) => `Vybráno ${args.date}`,
2253
+ "finishRangeSelectionPrompt": `Kliknutím dokončíte výběr rozsahu dat`,
2254
+ "maximumDate": `Poslední dostupné datum`,
2255
+ "minimumDate": `První dostupné datum`,
2256
+ "next": `Další`,
2257
+ "previous": `Předchozí`,
2258
+ "selectedDateDescription": (args) => `Vybrané datum: ${args.date}`,
2259
+ "selectedRangeDescription": (args) => `Vybrané období: ${args.dateRange}`,
2260
+ "startRangeSelectionPrompt": `Kliknutím zahájíte výběr rozsahu dat`,
2261
+ "todayDate": (args) => `Dnes, ${args.date}`,
2262
+ "todayDateSelected": (args) => `Dnes, vybráno ${args.date}`
2263
+ };
2264
+ var $1cd578ef0547c8f1$exports = {};
2265
+ $1cd578ef0547c8f1$exports = {
2266
+ "dateRange": (args) => `${args.startDate} til ${args.endDate}`,
2267
+ "dateSelected": (args) => `${args.date} valgt`,
2268
+ "finishRangeSelectionPrompt": `Klik for at fuldføre valg af datoområde`,
2269
+ "maximumDate": `Sidste ledige dato`,
2270
+ "minimumDate": `Første ledige dato`,
2271
+ "next": `Næste`,
2272
+ "previous": `Forrige`,
2273
+ "selectedDateDescription": (args) => `Valgt dato: ${args.date}`,
2274
+ "selectedRangeDescription": (args) => `Valgt interval: ${args.dateRange}`,
2275
+ "startRangeSelectionPrompt": `Klik for at starte valg af datoområde`,
2276
+ "todayDate": (args) => `I dag, ${args.date}`,
2277
+ "todayDateSelected": (args) => `I dag, ${args.date} valgt`
2278
+ };
2279
+ var $db55a8973925d619$exports = {};
2280
+ $db55a8973925d619$exports = {
2281
+ "dateRange": (args) => `${args.startDate} bis ${args.endDate}`,
2282
+ "dateSelected": (args) => `${args.date} ausgewählt`,
2283
+ "finishRangeSelectionPrompt": `Klicken, um die Auswahl des Datumsbereichs zu beenden`,
2284
+ "maximumDate": `Letztes verfügbares Datum`,
2285
+ "minimumDate": `Erstes verfügbares Datum`,
2286
+ "next": `Weiter`,
2287
+ "previous": `Zurück`,
2288
+ "selectedDateDescription": (args) => `Ausgewähltes Datum: ${args.date}`,
2289
+ "selectedRangeDescription": (args) => `Ausgewählter Bereich: ${args.dateRange}`,
2290
+ "startRangeSelectionPrompt": `Klicken, um die Auswahl des Datumsbereichs zu beginnen`,
2291
+ "todayDate": (args) => `Heute, ${args.date}`,
2292
+ "todayDateSelected": (args) => `Heute, ${args.date} ausgewählt`
2293
+ };
2294
+ var $ec6937d58566d443$exports = {};
2295
+ $ec6937d58566d443$exports = {
2296
+ "dateRange": (args) => `${args.startDate} έως ${args.endDate}`,
2297
+ "dateSelected": (args) => `Επιλέχθηκε ${args.date}`,
2298
+ "finishRangeSelectionPrompt": `Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών`,
2299
+ "maximumDate": `Τελευταία διαθέσιμη ημερομηνία`,
2300
+ "minimumDate": `Πρώτη διαθέσιμη ημερομηνία`,
2301
+ "next": `Επόμενο`,
2302
+ "previous": `Προηγούμενο`,
2303
+ "selectedDateDescription": (args) => `Επιλεγμένη ημερομηνία: ${args.date}`,
2304
+ "selectedRangeDescription": (args) => `Επιλεγμένο εύρος: ${args.dateRange}`,
2305
+ "startRangeSelectionPrompt": `Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών`,
2306
+ "todayDate": (args) => `Σήμερα, ${args.date}`,
2307
+ "todayDateSelected": (args) => `Σήμερα, επιλέχτηκε ${args.date}`
2308
+ };
2309
+ var $1f5cea0742dc284a$exports = {};
2310
+ $1f5cea0742dc284a$exports = {
2311
+ "previous": `Previous`,
2312
+ "next": `Next`,
2313
+ "selectedDateDescription": (args) => `Selected Date: ${args.date}`,
2314
+ "selectedRangeDescription": (args) => `Selected Range: ${args.dateRange}`,
2315
+ "todayDate": (args) => `Today, ${args.date}`,
2316
+ "todayDateSelected": (args) => `Today, ${args.date} selected`,
2317
+ "dateSelected": (args) => `${args.date} selected`,
2318
+ "startRangeSelectionPrompt": `Click to start selecting date range`,
2319
+ "finishRangeSelectionPrompt": `Click to finish selecting date range`,
2320
+ "minimumDate": `First available date`,
2321
+ "maximumDate": `Last available date`,
2322
+ "dateRange": (args) => `${args.startDate} to ${args.endDate}`
2323
+ };
2324
+ var $2ca7ea366384817b$exports = {};
2325
+ $2ca7ea366384817b$exports = {
2326
+ "dateRange": (args) => `${args.startDate} a ${args.endDate}`,
2327
+ "dateSelected": (args) => `${args.date} seleccionado`,
2328
+ "finishRangeSelectionPrompt": `Haga clic para terminar de seleccionar rango de fechas`,
2329
+ "maximumDate": `Última fecha disponible`,
2330
+ "minimumDate": `Primera fecha disponible`,
2331
+ "next": `Siguiente`,
2332
+ "previous": `Anterior`,
2333
+ "selectedDateDescription": (args) => `Fecha seleccionada: ${args.date}`,
2334
+ "selectedRangeDescription": (args) => `Intervalo seleccionado: ${args.dateRange}`,
2335
+ "startRangeSelectionPrompt": `Haga clic para comenzar a seleccionar un rango de fechas`,
2336
+ "todayDate": (args) => `Hoy, ${args.date}`,
2337
+ "todayDateSelected": (args) => `Hoy, ${args.date} seleccionado`
2338
+ };
2339
+ var $97874a7fe9cd091f$exports = {};
2340
+ $97874a7fe9cd091f$exports = {
2341
+ "dateRange": (args) => `${args.startDate} kuni ${args.endDate}`,
2342
+ "dateSelected": (args) => `${args.date} valitud`,
2343
+ "finishRangeSelectionPrompt": `Klõpsake kuupäevavahemiku valimise lõpetamiseks`,
2344
+ "maximumDate": `Viimane saadaolev kuupäev`,
2345
+ "minimumDate": `Esimene saadaolev kuupäev`,
2346
+ "next": `Järgmine`,
2347
+ "previous": `Eelmine`,
2348
+ "selectedDateDescription": (args) => `Valitud kuupäev: ${args.date}`,
2349
+ "selectedRangeDescription": (args) => `Valitud vahemik: ${args.dateRange}`,
2350
+ "startRangeSelectionPrompt": `Klõpsake kuupäevavahemiku valimiseks`,
2351
+ "todayDate": (args) => `Täna, ${args.date}`,
2352
+ "todayDateSelected": (args) => `Täna, ${args.date} valitud`
2353
+ };
2354
+ var $5d376b7fce1a45b2$exports = {};
2355
+ $5d376b7fce1a45b2$exports = {
2356
+ "dateRange": (args) => `${args.startDate} – ${args.endDate}`,
2357
+ "dateSelected": (args) => `${args.date} valittu`,
2358
+ "finishRangeSelectionPrompt": `Lopeta päivämääräalueen valinta napsauttamalla tätä.`,
2359
+ "maximumDate": `Viimeinen varattavissa oleva päivämäärä`,
2360
+ "minimumDate": `Ensimmäinen varattavissa oleva päivämäärä`,
2361
+ "next": `Seuraava`,
2362
+ "previous": `Edellinen`,
2363
+ "selectedDateDescription": (args) => `Valittu päivämäärä: ${args.date}`,
2364
+ "selectedRangeDescription": (args) => `Valittu aikaväli: ${args.dateRange}`,
2365
+ "startRangeSelectionPrompt": `Aloita päivämääräalueen valinta napsauttamalla tätä.`,
2366
+ "todayDate": (args) => `Tänään, ${args.date}`,
2367
+ "todayDateSelected": (args) => `Tänään, ${args.date} valittu`
2368
+ };
2369
+ var $3bf722b362aaf54d$exports = {};
2370
+ $3bf722b362aaf54d$exports = {
2371
+ "dateRange": (args) => `${args.startDate} à ${args.endDate}`,
2372
+ "dateSelected": (args) => `${args.date} sélectionné`,
2373
+ "finishRangeSelectionPrompt": `Cliquer pour finir de sélectionner la plage de dates`,
2374
+ "maximumDate": `Dernière date disponible`,
2375
+ "minimumDate": `Première date disponible`,
2376
+ "next": `Suivant`,
2377
+ "previous": `Précédent`,
2378
+ "selectedDateDescription": (args) => `Date sélectionnée : ${args.date}`,
2379
+ "selectedRangeDescription": (args) => `Plage sélectionnée : ${args.dateRange}`,
2380
+ "startRangeSelectionPrompt": `Cliquer pour commencer à sélectionner la plage de dates`,
2381
+ "todayDate": (args) => `Aujourd'hui, ${args.date}`,
2382
+ "todayDateSelected": (args) => `Aujourd’hui, ${args.date} sélectionné`
2383
+ };
2384
+ var $38c43f8322316031$exports = {};
2385
+ $38c43f8322316031$exports = {
2386
+ "dateRange": (args) => `${args.startDate} עד ${args.endDate}`,
2387
+ "dateSelected": (args) => `${args.date} נבחר`,
2388
+ "finishRangeSelectionPrompt": `חץ כדי לסיים את בחירת טווח התאריכים`,
2389
+ "maximumDate": `תאריך פנוי אחרון`,
2390
+ "minimumDate": `תאריך פנוי ראשון`,
2391
+ "next": `הבא`,
2392
+ "previous": `הקודם`,
2393
+ "selectedDateDescription": (args) => `תאריך נבחר: ${args.date}`,
2394
+ "selectedRangeDescription": (args) => `טווח נבחר: ${args.dateRange}`,
2395
+ "startRangeSelectionPrompt": `לחץ כדי להתחיל בבחירת טווח התאריכים`,
2396
+ "todayDate": (args) => `היום, ${args.date}`,
2397
+ "todayDateSelected": (args) => `היום, ${args.date} נבחר`
2398
+ };
2399
+ var $c90e0f32b44630bf$exports = {};
2400
+ $c90e0f32b44630bf$exports = {
2401
+ "dateRange": (args) => `${args.startDate} do ${args.endDate}`,
2402
+ "dateSelected": (args) => `${args.date} odabran`,
2403
+ "finishRangeSelectionPrompt": `Kliknite da dovršite raspon odabranih datuma`,
2404
+ "maximumDate": `Posljednji raspoloživi datum`,
2405
+ "minimumDate": `Prvi raspoloživi datum`,
2406
+ "next": `Sljedeći`,
2407
+ "previous": `Prethodni`,
2408
+ "selectedDateDescription": (args) => `Odabrani datum: ${args.date}`,
2409
+ "selectedRangeDescription": (args) => `Odabrani raspon: ${args.dateRange}`,
2410
+ "startRangeSelectionPrompt": `Kliknite da započnete raspon odabranih datuma`,
2411
+ "todayDate": (args) => `Danas, ${args.date}`,
2412
+ "todayDateSelected": (args) => `Danas, odabran ${args.date}`
2413
+ };
2414
+ var $715875e6e7a338f4$exports = {};
2415
+ $715875e6e7a338f4$exports = {
2416
+ "dateRange": (args) => `${args.startDate}–${args.endDate}`,
2417
+ "dateSelected": (args) => `${args.date} kiválasztva`,
2418
+ "finishRangeSelectionPrompt": `Kattintson a dátumtartomány kijelölésének befejezéséhez`,
2419
+ "maximumDate": `Utolsó elérhető dátum`,
2420
+ "minimumDate": `Az első elérhető dátum`,
2421
+ "next": `Következő`,
2422
+ "previous": `Előző`,
2423
+ "selectedDateDescription": (args) => `Kijelölt dátum: ${args.date}`,
2424
+ "selectedRangeDescription": (args) => `Kijelölt tartomány: ${args.dateRange}`,
2425
+ "startRangeSelectionPrompt": `Kattintson a dátumtartomány kijelölésének indításához`,
2426
+ "todayDate": (args) => `Ma, ${args.date}`,
2427
+ "todayDateSelected": (args) => `Ma, ${args.date} kijelölve`
2428
+ };
2429
+ var $37d77c66e34daccf$exports = {};
2430
+ $37d77c66e34daccf$exports = {
2431
+ "dateRange": (args) => `Da ${args.startDate} a ${args.endDate}`,
2432
+ "dateSelected": (args) => `${args.date} selezionata`,
2433
+ "finishRangeSelectionPrompt": `Fai clic per completare la selezione dell’intervallo di date`,
2434
+ "maximumDate": `Ultima data disponibile`,
2435
+ "minimumDate": `Prima data disponibile`,
2436
+ "next": `Successivo`,
2437
+ "previous": `Precedente`,
2438
+ "selectedDateDescription": (args) => `Data selezionata: ${args.date}`,
2439
+ "selectedRangeDescription": (args) => `Intervallo selezionato: ${args.dateRange}`,
2440
+ "startRangeSelectionPrompt": `Fai clic per selezionare l’intervallo di date`,
2441
+ "todayDate": (args) => `Oggi, ${args.date}`,
2442
+ "todayDateSelected": (args) => `Oggi, ${args.date} selezionata`
2443
+ };
2444
+ var $542f39aee29303c3$exports = {};
2445
+ $542f39aee29303c3$exports = {
2446
+ "dateRange": (args) => `${args.startDate} から ${args.endDate}`,
2447
+ "dateSelected": (args) => `${args.date} を選択`,
2448
+ "finishRangeSelectionPrompt": `クリックして日付範囲の選択を終了`,
2449
+ "maximumDate": `最終利用可能日`,
2450
+ "minimumDate": `最初の利用可能日`,
2451
+ "next": `次へ`,
2452
+ "previous": `前へ`,
2453
+ "selectedDateDescription": (args) => `選択した日付 : ${args.date}`,
2454
+ "selectedRangeDescription": (args) => `選択範囲 : ${args.dateRange}`,
2455
+ "startRangeSelectionPrompt": `クリックして日付範囲の選択を開始`,
2456
+ "todayDate": (args) => `本日、${args.date}`,
2457
+ "todayDateSelected": (args) => `本日、${args.date} を選択`
2458
+ };
2459
+ var $22a5f0623ea73e4f$exports = {};
2460
+ $22a5f0623ea73e4f$exports = {
2461
+ "dateRange": (args) => `${args.startDate} ~ ${args.endDate}`,
2462
+ "dateSelected": (args) => `${args.date} 선택됨`,
2463
+ "finishRangeSelectionPrompt": `날짜 범위 선택을 완료하려면 클릭하십시오.`,
2464
+ "maximumDate": `마지막으로 사용 가능한 일자`,
2465
+ "minimumDate": `처음으로 사용 가능한 일자`,
2466
+ "next": `다음`,
2467
+ "previous": `이전`,
2468
+ "selectedDateDescription": (args) => `선택 일자: ${args.date}`,
2469
+ "selectedRangeDescription": (args) => `선택 범위: ${args.dateRange}`,
2470
+ "startRangeSelectionPrompt": `날짜 범위 선택을 시작하려면 클릭하십시오.`,
2471
+ "todayDate": (args) => `오늘, ${args.date}`,
2472
+ "todayDateSelected": (args) => `오늘, ${args.date} 선택됨`
2473
+ };
2474
+ var $522380d13d62cba0$exports = {};
2475
+ $522380d13d62cba0$exports = {
2476
+ "dateRange": (args) => `Nuo ${args.startDate} iki ${args.endDate}`,
2477
+ "dateSelected": (args) => `Pasirinkta ${args.date}`,
2478
+ "finishRangeSelectionPrompt": `Spustelėkite, kad baigtumėte pasirinkti datų intervalą`,
2479
+ "maximumDate": `Paskutinė galima data`,
2480
+ "minimumDate": `Pirmoji galima data`,
2481
+ "next": `Paskesnis`,
2482
+ "previous": `Ankstesnis`,
2483
+ "selectedDateDescription": (args) => `Pasirinkta data: ${args.date}`,
2484
+ "selectedRangeDescription": (args) => `Pasirinktas intervalas: ${args.dateRange}`,
2485
+ "startRangeSelectionPrompt": `Spustelėkite, kad pradėtumėte pasirinkti datų intervalą`,
2486
+ "todayDate": (args) => `Šiandien, ${args.date}`,
2487
+ "todayDateSelected": (args) => `Šiandien, pasirinkta ${args.date}`
2488
+ };
2489
+ var $8a7bc830b2fe6485$exports = {};
2490
+ $8a7bc830b2fe6485$exports = {
2491
+ "dateRange": (args) => `No ${args.startDate} līdz ${args.endDate}`,
2492
+ "dateSelected": (args) => `Atlasīts: ${args.date}`,
2493
+ "finishRangeSelectionPrompt": `Noklikšķiniet, lai pabeigtu datumu diapazona atlasi`,
2494
+ "maximumDate": `Pēdējais pieejamais datums`,
2495
+ "minimumDate": `Pirmais pieejamais datums`,
2496
+ "next": `Tālāk`,
2497
+ "previous": `Atpakaļ`,
2498
+ "selectedDateDescription": (args) => `Atlasītais datums: ${args.date}`,
2499
+ "selectedRangeDescription": (args) => `Atlasītais diapazons: ${args.dateRange}`,
2500
+ "startRangeSelectionPrompt": `Noklikšķiniet, lai sāktu datumu diapazona atlasi`,
2501
+ "todayDate": (args) => `Šodien, ${args.date}`,
2502
+ "todayDateSelected": (args) => `Atlasīta šodiena, ${args.date}`
2503
+ };
2504
+ var $9fac9c044470683b$exports = {};
2505
+ $9fac9c044470683b$exports = {
2506
+ "dateRange": (args) => `${args.startDate} til ${args.endDate}`,
2507
+ "dateSelected": (args) => `${args.date} valgt`,
2508
+ "finishRangeSelectionPrompt": `Klikk for å fullføre valg av datoområde`,
2509
+ "maximumDate": `Siste tilgjengelige dato`,
2510
+ "minimumDate": `Første tilgjengelige dato`,
2511
+ "next": `Neste`,
2512
+ "previous": `Forrige`,
2513
+ "selectedDateDescription": (args) => `Valgt dato: ${args.date}`,
2514
+ "selectedRangeDescription": (args) => `Valgt område: ${args.dateRange}`,
2515
+ "startRangeSelectionPrompt": `Klikk for å starte valg av datoområde`,
2516
+ "todayDate": (args) => `I dag, ${args.date}`,
2517
+ "todayDateSelected": (args) => `I dag, ${args.date} valgt`
2518
+ };
2519
+ var $b127d3569efb1449$exports = {};
2520
+ $b127d3569efb1449$exports = {
2521
+ "dateRange": (args) => `${args.startDate} tot ${args.endDate}`,
2522
+ "dateSelected": (args) => `${args.date} geselecteerd`,
2523
+ "finishRangeSelectionPrompt": `Klik om de selectie van het datumbereik te voltooien`,
2524
+ "maximumDate": `Laatste beschikbare datum`,
2525
+ "minimumDate": `Eerste beschikbare datum`,
2526
+ "next": `Volgende`,
2527
+ "previous": `Vorige`,
2528
+ "selectedDateDescription": (args) => `Geselecteerde datum: ${args.date}`,
2529
+ "selectedRangeDescription": (args) => `Geselecteerd bereik: ${args.dateRange}`,
2530
+ "startRangeSelectionPrompt": `Klik om het datumbereik te selecteren`,
2531
+ "todayDate": (args) => `Vandaag, ${args.date}`,
2532
+ "todayDateSelected": (args) => `Vandaag, ${args.date} geselecteerd`
2533
+ };
2534
+ var $51404a4090633490$exports = {};
2535
+ $51404a4090633490$exports = {
2536
+ "dateRange": (args) => `${args.startDate} do ${args.endDate}`,
2537
+ "dateSelected": (args) => `Wybrano ${args.date}`,
2538
+ "finishRangeSelectionPrompt": `Kliknij, aby zakończyć wybór zakresu dat`,
2539
+ "maximumDate": `Ostatnia dostępna data`,
2540
+ "minimumDate": `Pierwsza dostępna data`,
2541
+ "next": `Dalej`,
2542
+ "previous": `Wstecz`,
2543
+ "selectedDateDescription": (args) => `Wybrana data: ${args.date}`,
2544
+ "selectedRangeDescription": (args) => `Wybrany zakres: ${args.dateRange}`,
2545
+ "startRangeSelectionPrompt": `Kliknij, aby rozpocząć wybór zakresu dat`,
2546
+ "todayDate": (args) => `Dzisiaj, ${args.date}`,
2547
+ "todayDateSelected": (args) => `Dzisiaj wybrano ${args.date}`
2548
+ };
2549
+ var $e5e6a3fe3b4527df$exports = {};
2550
+ $e5e6a3fe3b4527df$exports = {
2551
+ "dateRange": (args) => `${args.startDate} a ${args.endDate}`,
2552
+ "dateSelected": (args) => `${args.date} selecionado`,
2553
+ "finishRangeSelectionPrompt": `Clique para concluir a seleção do intervalo de datas`,
2554
+ "maximumDate": `Última data disponível`,
2555
+ "minimumDate": `Primeira data disponível`,
2556
+ "next": `Próximo`,
2557
+ "previous": `Anterior`,
2558
+ "selectedDateDescription": (args) => `Data selecionada: ${args.date}`,
2559
+ "selectedRangeDescription": (args) => `Intervalo selecionado: ${args.dateRange}`,
2560
+ "startRangeSelectionPrompt": `Clique para iniciar a seleção do intervalo de datas`,
2561
+ "todayDate": (args) => `Hoje, ${args.date}`,
2562
+ "todayDateSelected": (args) => `Hoje, ${args.date} selecionado`
2563
+ };
2564
+ var $c519dcadcbb1ee47$exports = {};
2565
+ $c519dcadcbb1ee47$exports = {
2566
+ "dateRange": (args) => `${args.startDate} a ${args.endDate}`,
2567
+ "dateSelected": (args) => `${args.date} selecionado`,
2568
+ "finishRangeSelectionPrompt": `Clique para terminar de selecionar o intervalo de datas`,
2569
+ "maximumDate": `Última data disponível`,
2570
+ "minimumDate": `Primeira data disponível`,
2571
+ "next": `Próximo`,
2572
+ "previous": `Anterior`,
2573
+ "selectedDateDescription": (args) => `Data selecionada: ${args.date}`,
2574
+ "selectedRangeDescription": (args) => `Intervalo selecionado: ${args.dateRange}`,
2575
+ "startRangeSelectionPrompt": `Clique para começar a selecionar o intervalo de datas`,
2576
+ "todayDate": (args) => `Hoje, ${args.date}`,
2577
+ "todayDateSelected": (args) => `Hoje, ${args.date} selecionado`
2578
+ };
2579
+ var $e5aa0186ca7889c6$exports = {};
2580
+ $e5aa0186ca7889c6$exports = {
2581
+ "dateRange": (args) => `De la ${args.startDate} până la ${args.endDate}`,
2582
+ "dateSelected": (args) => `${args.date} selectată`,
2583
+ "finishRangeSelectionPrompt": `Apăsaţi pentru a finaliza selecţia razei pentru dată`,
2584
+ "maximumDate": `Ultima dată disponibilă`,
2585
+ "minimumDate": `Prima dată disponibilă`,
2586
+ "next": `Următorul`,
2587
+ "previous": `Înainte`,
2588
+ "selectedDateDescription": (args) => `Dată selectată: ${args.date}`,
2589
+ "selectedRangeDescription": (args) => `Interval selectat: ${args.dateRange}`,
2590
+ "startRangeSelectionPrompt": `Apăsaţi pentru a începe selecţia razei pentru dată`,
2591
+ "todayDate": (args) => `Astăzi, ${args.date}`,
2592
+ "todayDateSelected": (args) => `Azi, ${args.date} selectată`
2593
+ };
2594
+ var $5b907f5fa3eee652$exports = {};
2595
+ $5b907f5fa3eee652$exports = {
2596
+ "dateRange": (args) => `С ${args.startDate} по ${args.endDate}`,
2597
+ "dateSelected": (args) => `Выбрано ${args.date}`,
2598
+ "finishRangeSelectionPrompt": `Щелкните, чтобы завершить выбор диапазона дат`,
2599
+ "maximumDate": `Последняя доступная дата`,
2600
+ "minimumDate": `Первая доступная дата`,
2601
+ "next": `Далее`,
2602
+ "previous": `Назад`,
2603
+ "selectedDateDescription": (args) => `Выбранная дата: ${args.date}`,
2604
+ "selectedRangeDescription": (args) => `Выбранный диапазон: ${args.dateRange}`,
2605
+ "startRangeSelectionPrompt": `Щелкните, чтобы начать выбор диапазона дат`,
2606
+ "todayDate": (args) => `Сегодня, ${args.date}`,
2607
+ "todayDateSelected": (args) => `Сегодня, выбрано ${args.date}`
2608
+ };
2609
+ var $1b4c51359c99cf79$exports = {};
2610
+ $1b4c51359c99cf79$exports = {
2611
+ "dateRange": (args) => `Od ${args.startDate} do ${args.endDate}`,
2612
+ "dateSelected": (args) => `Vybratý dátum ${args.date}`,
2613
+ "finishRangeSelectionPrompt": `Kliknutím dokončíte výber rozsahu dátumov`,
2614
+ "maximumDate": `Posledný dostupný dátum`,
2615
+ "minimumDate": `Prvý dostupný dátum`,
2616
+ "next": `Nasledujúce`,
2617
+ "previous": `Predchádzajúce`,
2618
+ "selectedDateDescription": (args) => `Vybratý dátum: ${args.date}`,
2619
+ "selectedRangeDescription": (args) => `Vybratý rozsah: ${args.dateRange}`,
2620
+ "startRangeSelectionPrompt": `Kliknutím spustíte výber rozsahu dátumov`,
2621
+ "todayDate": (args) => `Dnes ${args.date}`,
2622
+ "todayDateSelected": (args) => `Vybratý dnešný dátum ${args.date}`
2623
+ };
2624
+ var $02e4e6a4608cc6f3$exports = {};
2625
+ $02e4e6a4608cc6f3$exports = {
2626
+ "dateRange": (args) => `${args.startDate} do ${args.endDate}`,
2627
+ "dateSelected": (args) => `${args.date} izbrano`,
2628
+ "finishRangeSelectionPrompt": `Kliknite za dokončanje izbire datumskega obsega`,
2629
+ "maximumDate": `Zadnji razpoložljivi datum`,
2630
+ "minimumDate": `Prvi razpoložljivi datum`,
2631
+ "next": `Naprej`,
2632
+ "previous": `Nazaj`,
2633
+ "selectedDateDescription": (args) => `Izbrani datum: ${args.date}`,
2634
+ "selectedRangeDescription": (args) => `Izbrano območje: ${args.dateRange}`,
2635
+ "startRangeSelectionPrompt": `Kliknite za začetek izbire datumskega obsega`,
2636
+ "todayDate": (args) => `Danes, ${args.date}`,
2637
+ "todayDateSelected": (args) => `Danes, ${args.date} izbrano`
2638
+ };
2639
+ var $6dd2fbaad93b6878$exports = {};
2640
+ $6dd2fbaad93b6878$exports = {
2641
+ "dateRange": (args) => `${args.startDate} do ${args.endDate}`,
2642
+ "dateSelected": (args) => `${args.date} izabran`,
2643
+ "finishRangeSelectionPrompt": `Kliknite da dovršite opseg izabranih datuma`,
2644
+ "maximumDate": `Zadnji raspoloživi datum`,
2645
+ "minimumDate": `Prvi raspoloživi datum`,
2646
+ "next": `Sledeći`,
2647
+ "previous": `Prethodni`,
2648
+ "selectedDateDescription": (args) => `Izabrani datum: ${args.date}`,
2649
+ "selectedRangeDescription": (args) => `Izabrani period: ${args.dateRange}`,
2650
+ "startRangeSelectionPrompt": `Kliknite da započnete opseg izabranih datuma`,
2651
+ "todayDate": (args) => `Danas, ${args.date}`,
2652
+ "todayDateSelected": (args) => `Danas, izabran ${args.date}`
2653
+ };
2654
+ var $33ea59bfe6e804e0$exports = {};
2655
+ $33ea59bfe6e804e0$exports = {
2656
+ "dateRange": (args) => `${args.startDate} till ${args.endDate}`,
2657
+ "dateSelected": (args) => `${args.date} har valts`,
2658
+ "finishRangeSelectionPrompt": `Klicka för att avsluta val av datumintervall`,
2659
+ "maximumDate": `Sista tillgängliga datum`,
2660
+ "minimumDate": `Första tillgängliga datum`,
2661
+ "next": `Nästa`,
2662
+ "previous": `Föregående`,
2663
+ "selectedDateDescription": (args) => `Valt datum: ${args.date}`,
2664
+ "selectedRangeDescription": (args) => `Valt intervall: ${args.dateRange}`,
2665
+ "startRangeSelectionPrompt": `Klicka för att välja datumintervall`,
2666
+ "todayDate": (args) => `Idag, ${args.date}`,
2667
+ "todayDateSelected": (args) => `Idag, ${args.date} har valts`
2668
+ };
2669
+ var $4603b0d0246969b2$exports = {};
2670
+ $4603b0d0246969b2$exports = {
2671
+ "dateRange": (args) => `${args.startDate} - ${args.endDate}`,
2672
+ "dateSelected": (args) => `${args.date} seçildi`,
2673
+ "finishRangeSelectionPrompt": `Tarih aralığı seçimini tamamlamak için tıklayın`,
2674
+ "maximumDate": `Son müsait tarih`,
2675
+ "minimumDate": `İlk müsait tarih`,
2676
+ "next": `Sonraki`,
2677
+ "previous": `Önceki`,
2678
+ "selectedDateDescription": (args) => `Seçilen Tarih: ${args.date}`,
2679
+ "selectedRangeDescription": (args) => `Seçilen Aralık: ${args.dateRange}`,
2680
+ "startRangeSelectionPrompt": `Tarih aralığı seçimini başlatmak için tıklayın`,
2681
+ "todayDate": (args) => `Bugün, ${args.date}`,
2682
+ "todayDateSelected": (args) => `Bugün, ${args.date} seçildi`
2683
+ };
2684
+ var $82649816f530bb1b$exports = {};
2685
+ $82649816f530bb1b$exports = {
2686
+ "dateRange": (args) => `${args.startDate} — ${args.endDate}`,
2687
+ "dateSelected": (args) => `Вибрано ${args.date}`,
2688
+ "finishRangeSelectionPrompt": `Натисніть, щоб завершити вибір діапазону дат`,
2689
+ "maximumDate": `Остання доступна дата`,
2690
+ "minimumDate": `Перша доступна дата`,
2691
+ "next": `Наступний`,
2692
+ "previous": `Попередній`,
2693
+ "selectedDateDescription": (args) => `Вибрана дата: ${args.date}`,
2694
+ "selectedRangeDescription": (args) => `Вибраний діапазон: ${args.dateRange}`,
2695
+ "startRangeSelectionPrompt": `Натисніть, щоб почати вибір діапазону дат`,
2696
+ "todayDate": (args) => `Сьогодні, ${args.date}`,
2697
+ "todayDateSelected": (args) => `Сьогодні, вибрано ${args.date}`
2698
+ };
2699
+ var $628e140a43dfb330$exports = {};
2700
+ $628e140a43dfb330$exports = {
2701
+ "dateRange": (args) => `${args.startDate} 至 ${args.endDate}`,
2702
+ "dateSelected": (args) => `已选择 ${args.date}`,
2703
+ "finishRangeSelectionPrompt": `单击以完成选择日期范围`,
2704
+ "maximumDate": `最后一个可用日期`,
2705
+ "minimumDate": `第一个可用日期`,
2706
+ "next": `下一页`,
2707
+ "previous": `上一页`,
2708
+ "selectedDateDescription": (args) => `选定的日期:${args.date}`,
2709
+ "selectedRangeDescription": (args) => `选定的范围:${args.dateRange}`,
2710
+ "startRangeSelectionPrompt": `单击以开始选择日期范围`,
2711
+ "todayDate": (args) => `今天,即 ${args.date}`,
2712
+ "todayDateSelected": (args) => `已选择今天,即 ${args.date}`
2713
+ };
2714
+ var $745937250cd4679c$exports = {};
2715
+ $745937250cd4679c$exports = {
2716
+ "dateRange": (args) => `${args.startDate} 至 ${args.endDate}`,
2717
+ "dateSelected": (args) => `已選取 ${args.date}`,
2718
+ "finishRangeSelectionPrompt": `按一下以完成選取日期範圍`,
2719
+ "maximumDate": `最後一個可用日期`,
2720
+ "minimumDate": `第一個可用日期`,
2721
+ "next": `下一頁`,
2722
+ "previous": `上一頁`,
2723
+ "selectedDateDescription": (args) => `選定的日期:${args.date}`,
2724
+ "selectedRangeDescription": (args) => `選定的範圍:${args.dateRange}`,
2725
+ "startRangeSelectionPrompt": `按一下以開始選取日期範圍`,
2726
+ "todayDate": (args) => `今天,${args.date}`,
2727
+ "todayDateSelected": (args) => `已選取今天,${args.date}`
2728
+ };
2729
+ var $3904726b442bd9b2$exports = {};
2730
+ $3904726b442bd9b2$exports = {
2731
+ "ar-AE": $39324ace0d945f59$exports,
2732
+ "bg-BG": $1830a539e98c7baf$exports,
2733
+ "cs-CZ": $f4b92528965aab97$exports,
2734
+ "da-DK": $1cd578ef0547c8f1$exports,
2735
+ "de-DE": $db55a8973925d619$exports,
2736
+ "el-GR": $ec6937d58566d443$exports,
2737
+ "en-US": $1f5cea0742dc284a$exports,
2738
+ "es-ES": $2ca7ea366384817b$exports,
2739
+ "et-EE": $97874a7fe9cd091f$exports,
2740
+ "fi-FI": $5d376b7fce1a45b2$exports,
2741
+ "fr-FR": $3bf722b362aaf54d$exports,
2742
+ "he-IL": $38c43f8322316031$exports,
2743
+ "hr-HR": $c90e0f32b44630bf$exports,
2744
+ "hu-HU": $715875e6e7a338f4$exports,
2745
+ "it-IT": $37d77c66e34daccf$exports,
2746
+ "ja-JP": $542f39aee29303c3$exports,
2747
+ "ko-KR": $22a5f0623ea73e4f$exports,
2748
+ "lt-LT": $522380d13d62cba0$exports,
2749
+ "lv-LV": $8a7bc830b2fe6485$exports,
2750
+ "nb-NO": $9fac9c044470683b$exports,
2751
+ "nl-NL": $b127d3569efb1449$exports,
2752
+ "pl-PL": $51404a4090633490$exports,
2753
+ "pt-BR": $e5e6a3fe3b4527df$exports,
2754
+ "pt-PT": $c519dcadcbb1ee47$exports,
2755
+ "ro-RO": $e5aa0186ca7889c6$exports,
2756
+ "ru-RU": $5b907f5fa3eee652$exports,
2757
+ "sk-SK": $1b4c51359c99cf79$exports,
2758
+ "sl-SI": $02e4e6a4608cc6f3$exports,
2759
+ "sr-SP": $6dd2fbaad93b6878$exports,
2760
+ "sv-SE": $33ea59bfe6e804e0$exports,
2761
+ "tr-TR": $4603b0d0246969b2$exports,
2762
+ "uk-UA": $82649816f530bb1b$exports,
2763
+ "zh-CN": $628e140a43dfb330$exports,
2764
+ "zh-TW": $745937250cd4679c$exports
2765
+ };
2766
+ function $parcel$interopDefault$2(a) {
2767
+ return a && a.__esModule ? a.default : a;
2768
+ }
2769
+ const $a074e1e2d0f0a665$export$653eddfc964b0f8a = /* @__PURE__ */ new WeakMap();
2770
+ function $a074e1e2d0f0a665$export$134cbb7fb09a9522(date) {
2771
+ return (date === null || date === void 0 ? void 0 : date.calendar.identifier) === "gregory" && date.era === "BC" ? "short" : void 0;
2772
+ }
2773
+ function $a074e1e2d0f0a665$export$b6df97c887c38e1a(state) {
2774
+ let stringFormatter = $fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault$2($3904726b442bd9b2$exports), "@react-aria/calendar");
2775
+ let start, end;
2776
+ var _state_value;
2777
+ if ("highlightedRange" in state) ({ start, end } = state.highlightedRange || {});
2778
+ else start = end = (_state_value = state.value) !== null && _state_value !== void 0 ? _state_value : void 0;
2779
+ let dateFormatter = $896ba0a80a8f4d36$export$85fd5fdf27bacc79({
2780
+ weekday: "long",
2781
+ month: "long",
2782
+ year: "numeric",
2783
+ day: "numeric",
2784
+ era: $a074e1e2d0f0a665$export$134cbb7fb09a9522(start) || $a074e1e2d0f0a665$export$134cbb7fb09a9522(end),
2785
+ timeZone: state.timeZone
2786
+ });
2787
+ let anchorDate = "anchorDate" in state ? state.anchorDate : null;
2788
+ return useMemo(() => {
2789
+ if (!anchorDate && start && end) {
2790
+ if ($14e0f24ef4ac5c92$export$ea39ec197993aef0(start, end)) {
2791
+ let date = dateFormatter.format(start.toDate(state.timeZone));
2792
+ return stringFormatter.format("selectedDateDescription", {
2793
+ date
2794
+ });
2795
+ } else {
2796
+ let dateRange = $a074e1e2d0f0a665$var$formatRange(dateFormatter, stringFormatter, start, end, state.timeZone);
2797
+ return stringFormatter.format("selectedRangeDescription", {
2798
+ dateRange
2799
+ });
2800
+ }
2801
+ }
2802
+ return "";
2803
+ }, [
2804
+ start,
2805
+ end,
2806
+ anchorDate,
2807
+ state.timeZone,
2808
+ stringFormatter,
2809
+ dateFormatter
2810
+ ]);
2811
+ }
2812
+ function $a074e1e2d0f0a665$export$31afe65d91ef6e8(startDate, endDate, timeZone, isAria) {
2813
+ let stringFormatter = $fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault$2($3904726b442bd9b2$exports), "@react-aria/calendar");
2814
+ let era = $a074e1e2d0f0a665$export$134cbb7fb09a9522(startDate) || $a074e1e2d0f0a665$export$134cbb7fb09a9522(endDate);
2815
+ let monthFormatter = $896ba0a80a8f4d36$export$85fd5fdf27bacc79({
2816
+ month: "long",
2817
+ year: "numeric",
2818
+ era,
2819
+ calendar: startDate.calendar.identifier,
2820
+ timeZone
2821
+ });
2822
+ let dateFormatter = $896ba0a80a8f4d36$export$85fd5fdf27bacc79({
2823
+ month: "long",
2824
+ year: "numeric",
2825
+ day: "numeric",
2826
+ era,
2827
+ calendar: startDate.calendar.identifier,
2828
+ timeZone
2829
+ });
2830
+ return useMemo(() => {
2831
+ if ($14e0f24ef4ac5c92$export$ea39ec197993aef0(startDate, $14e0f24ef4ac5c92$export$a5a3b454ada2268e(startDate))) {
2832
+ if ($14e0f24ef4ac5c92$export$ea39ec197993aef0(endDate, $14e0f24ef4ac5c92$export$a2258d9c4118825c(startDate))) return monthFormatter.format(startDate.toDate(timeZone));
2833
+ else if ($14e0f24ef4ac5c92$export$ea39ec197993aef0(endDate, $14e0f24ef4ac5c92$export$a2258d9c4118825c(endDate))) return isAria ? $a074e1e2d0f0a665$var$formatRange(monthFormatter, stringFormatter, startDate, endDate, timeZone) : monthFormatter.formatRange(startDate.toDate(timeZone), endDate.toDate(timeZone));
2834
+ }
2835
+ return isAria ? $a074e1e2d0f0a665$var$formatRange(dateFormatter, stringFormatter, startDate, endDate, timeZone) : dateFormatter.formatRange(startDate.toDate(timeZone), endDate.toDate(timeZone));
2836
+ }, [
2837
+ startDate,
2838
+ endDate,
2839
+ monthFormatter,
2840
+ dateFormatter,
2841
+ stringFormatter,
2842
+ timeZone,
2843
+ isAria
2844
+ ]);
2845
+ }
2846
+ function $a074e1e2d0f0a665$var$formatRange(dateFormatter, stringFormatter, start, end, timeZone) {
2847
+ let parts = dateFormatter.formatRangeToParts(start.toDate(timeZone), end.toDate(timeZone));
2848
+ let separatorIndex = -1;
2849
+ for (let i = 0; i < parts.length; i++) {
2850
+ let part = parts[i];
2851
+ if (part.source === "shared" && part.type === "literal") separatorIndex = i;
2852
+ else if (part.source === "endRange") break;
2853
+ }
2854
+ let startValue = "";
2855
+ let endValue = "";
2856
+ for (let i = 0; i < parts.length; i++) {
2857
+ if (i < separatorIndex) startValue += parts[i].value;
2858
+ else if (i > separatorIndex) endValue += parts[i].value;
2859
+ }
2860
+ return stringFormatter.format("dateRange", {
2861
+ startDate: startValue,
2862
+ endDate: endValue
2863
+ });
2864
+ }
2865
+ function $parcel$interopDefault$1(a) {
2866
+ return a && a.__esModule ? a.default : a;
2867
+ }
2868
+ function $c4acc1de3ab169cf$export$d652b3ea2d672d5b(props, state) {
2869
+ let stringFormatter = $fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault$1($3904726b442bd9b2$exports), "@react-aria/calendar");
2870
+ let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props);
2871
+ let title = $a074e1e2d0f0a665$export$31afe65d91ef6e8(state.visibleRange.start, state.visibleRange.end, state.timeZone, false);
2872
+ let visibleRangeDescription = $a074e1e2d0f0a665$export$31afe65d91ef6e8(state.visibleRange.start, state.visibleRange.end, state.timeZone, true);
2873
+ $4f58c5f72bcf79f7$export$496315a1608d9602(() => {
2874
+ if (!state.isFocused) $319e236875307eab$export$a9b970dcc4ae71a9(visibleRangeDescription);
2875
+ }, [
2876
+ visibleRangeDescription
2877
+ ]);
2878
+ let selectedDateDescription = $a074e1e2d0f0a665$export$b6df97c887c38e1a(state);
2879
+ $4f58c5f72bcf79f7$export$496315a1608d9602(() => {
2880
+ if (selectedDateDescription) $319e236875307eab$export$a9b970dcc4ae71a9(selectedDateDescription, "polite", 4e3);
2881
+ }, [
2882
+ selectedDateDescription
2883
+ ]);
2884
+ let errorMessageId = $bdb11010cef70236$export$b4cc09c592e8fdb8([
2885
+ Boolean(props.errorMessage),
2886
+ props.isInvalid,
2887
+ props.validationState
2888
+ ]);
2889
+ $a074e1e2d0f0a665$export$653eddfc964b0f8a.set(state, {
2890
+ ariaLabel: props["aria-label"],
2891
+ ariaLabelledBy: props["aria-labelledby"],
2892
+ errorMessageId,
2893
+ selectedDateDescription
2894
+ });
2895
+ let [nextFocused, setNextFocused] = useState(false);
2896
+ let nextDisabled = props.isDisabled || state.isNextVisibleRangeInvalid();
2897
+ if (nextDisabled && nextFocused) {
2898
+ setNextFocused(false);
2899
+ state.setFocused(true);
2900
+ }
2901
+ let [previousFocused, setPreviousFocused] = useState(false);
2902
+ let previousDisabled = props.isDisabled || state.isPreviousVisibleRangeInvalid();
2903
+ if (previousDisabled && previousFocused) {
2904
+ setPreviousFocused(false);
2905
+ state.setFocused(true);
2906
+ }
2907
+ let labelProps = $313b98861ee5dd6c$export$d6875122194c7b44({
2908
+ id: props["id"],
2909
+ "aria-label": [
2910
+ props["aria-label"],
2911
+ visibleRangeDescription
2912
+ ].filter(Boolean).join(", "),
2913
+ "aria-labelledby": props["aria-labelledby"]
2914
+ });
2915
+ return {
2916
+ calendarProps: $3ef42575df84b30b$export$9d1611c77c2fe928(domProps, labelProps, {
2917
+ role: "application",
2918
+ "aria-describedby": props["aria-describedby"] || void 0
2919
+ }),
2920
+ nextButtonProps: {
2921
+ onPress: () => state.focusNextPage(),
2922
+ "aria-label": stringFormatter.format("next"),
2923
+ isDisabled: nextDisabled,
2924
+ onFocusChange: setNextFocused
2925
+ },
2926
+ prevButtonProps: {
2927
+ onPress: () => state.focusPreviousPage(),
2928
+ "aria-label": stringFormatter.format("previous"),
2929
+ isDisabled: previousDisabled,
2930
+ onFocusChange: setPreviousFocused
2931
+ },
2932
+ errorMessageProps: {
2933
+ id: errorMessageId
2934
+ },
2935
+ title
2936
+ };
2937
+ }
2938
+ function $e3031d1f8c9d64eb$export$cb95147730a423f5(props, state) {
2939
+ let { startDate = state.visibleRange.start, endDate = state.visibleRange.end } = props;
2940
+ let { direction } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
2941
+ let onKeyDown = (e) => {
2942
+ switch (e.key) {
2943
+ case "Enter":
2944
+ case " ":
2945
+ e.preventDefault();
2946
+ state.selectFocusedDate();
2947
+ break;
2948
+ case "PageUp":
2949
+ e.preventDefault();
2950
+ e.stopPropagation();
2951
+ state.focusPreviousSection(e.shiftKey);
2952
+ break;
2953
+ case "PageDown":
2954
+ e.preventDefault();
2955
+ e.stopPropagation();
2956
+ state.focusNextSection(e.shiftKey);
2957
+ break;
2958
+ case "End":
2959
+ e.preventDefault();
2960
+ e.stopPropagation();
2961
+ state.focusSectionEnd();
2962
+ break;
2963
+ case "Home":
2964
+ e.preventDefault();
2965
+ e.stopPropagation();
2966
+ state.focusSectionStart();
2967
+ break;
2968
+ case "ArrowLeft":
2969
+ e.preventDefault();
2970
+ e.stopPropagation();
2971
+ if (direction === "rtl") state.focusNextDay();
2972
+ else state.focusPreviousDay();
2973
+ break;
2974
+ case "ArrowUp":
2975
+ e.preventDefault();
2976
+ e.stopPropagation();
2977
+ state.focusPreviousRow();
2978
+ break;
2979
+ case "ArrowRight":
2980
+ e.preventDefault();
2981
+ e.stopPropagation();
2982
+ if (direction === "rtl") state.focusPreviousDay();
2983
+ else state.focusNextDay();
2984
+ break;
2985
+ case "ArrowDown":
2986
+ e.preventDefault();
2987
+ e.stopPropagation();
2988
+ state.focusNextRow();
2989
+ break;
2990
+ case "Escape":
2991
+ if ("setAnchorDate" in state) {
2992
+ e.preventDefault();
2993
+ state.setAnchorDate(null);
2994
+ }
2995
+ break;
2996
+ }
2997
+ };
2998
+ let visibleRangeDescription = $a074e1e2d0f0a665$export$31afe65d91ef6e8(startDate, endDate, state.timeZone, true);
2999
+ let { ariaLabel, ariaLabelledBy } = $a074e1e2d0f0a665$export$653eddfc964b0f8a.get(state);
3000
+ let labelProps = $313b98861ee5dd6c$export$d6875122194c7b44({
3001
+ "aria-label": [
3002
+ ariaLabel,
3003
+ visibleRangeDescription
3004
+ ].filter(Boolean).join(", "),
3005
+ "aria-labelledby": ariaLabelledBy
3006
+ });
3007
+ let dayFormatter = $896ba0a80a8f4d36$export$85fd5fdf27bacc79({
3008
+ weekday: props.weekdayStyle || "narrow",
3009
+ timeZone: state.timeZone
3010
+ });
3011
+ let { locale } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
3012
+ let weekDays = useMemo(() => {
3013
+ let weekStart = $14e0f24ef4ac5c92$export$42c81a444fbfb5d4($14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(state.timeZone), locale);
3014
+ return [
3015
+ ...new Array(7).keys()
3016
+ ].map((index) => {
3017
+ let date = weekStart.add({
3018
+ days: index
3019
+ });
3020
+ let dateDay = date.toDate(state.timeZone);
3021
+ return dayFormatter.format(dateDay);
3022
+ });
3023
+ }, [
3024
+ locale,
3025
+ state.timeZone,
3026
+ dayFormatter
3027
+ ]);
3028
+ return {
3029
+ gridProps: $3ef42575df84b30b$export$9d1611c77c2fe928(labelProps, {
3030
+ role: "grid",
3031
+ "aria-readonly": state.isReadOnly || void 0,
3032
+ "aria-disabled": state.isDisabled || void 0,
3033
+ "aria-multiselectable": "highlightedRange" in state || void 0,
3034
+ onKeyDown,
3035
+ onFocus: () => state.setFocused(true),
3036
+ onBlur: () => state.setFocused(false)
3037
+ }),
3038
+ headerProps: {
3039
+ // Column headers are hidden to screen readers to make navigating with a touch screen reader easier.
3040
+ // The day names are already included in the label of each cell, so there's no need to announce them twice.
3041
+ "aria-hidden": true
3042
+ },
3043
+ weekDays
3044
+ };
3045
+ }
3046
+ function $parcel$interopDefault(a) {
3047
+ return a && a.__esModule ? a.default : a;
3048
+ }
3049
+ function $36a0ac60f04457c5$export$136073280381448e(props, state, ref) {
3050
+ let { date, isDisabled: isDisabled2 } = props;
3051
+ let { errorMessageId, selectedDateDescription } = $a074e1e2d0f0a665$export$653eddfc964b0f8a.get(state);
3052
+ let stringFormatter = $fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault($3904726b442bd9b2$exports), "@react-aria/calendar");
3053
+ let dateFormatter = $896ba0a80a8f4d36$export$85fd5fdf27bacc79({
3054
+ weekday: "long",
3055
+ day: "numeric",
3056
+ month: "long",
3057
+ year: "numeric",
3058
+ era: $a074e1e2d0f0a665$export$134cbb7fb09a9522(date),
3059
+ timeZone: state.timeZone
3060
+ });
3061
+ let isSelected2 = state.isSelected(date);
3062
+ let isFocused = state.isCellFocused(date);
3063
+ isDisabled2 = isDisabled2 || state.isCellDisabled(date);
3064
+ let isUnavailable2 = state.isCellUnavailable(date);
3065
+ let isSelectable = !isDisabled2 && !isUnavailable2;
3066
+ let isInvalid = state.isValueInvalid && Boolean("highlightedRange" in state ? !state.anchorDate && state.highlightedRange && date.compare(state.highlightedRange.start) >= 0 && date.compare(state.highlightedRange.end) <= 0 : state.value && $14e0f24ef4ac5c92$export$ea39ec197993aef0(state.value, date));
3067
+ if (isInvalid) isSelected2 = true;
3068
+ date = $5a387cc49350e6db$export$722debc0e56fea39(date, $14e0f24ef4ac5c92$export$91b62ebf2ba703ee);
3069
+ let nativeDate = useMemo(() => date.toDate(state.timeZone), [
3070
+ date,
3071
+ state.timeZone
3072
+ ]);
3073
+ let isDateToday = $14e0f24ef4ac5c92$export$629b0a497aa65267(date, state.timeZone);
3074
+ let label = useMemo(() => {
3075
+ let label2 = "";
3076
+ if ("highlightedRange" in state && state.value && !state.anchorDate && ($14e0f24ef4ac5c92$export$ea39ec197993aef0(date, state.value.start) || $14e0f24ef4ac5c92$export$ea39ec197993aef0(date, state.value.end))) label2 = selectedDateDescription + ", ";
3077
+ label2 += dateFormatter.format(nativeDate);
3078
+ if (isDateToday)
3079
+ label2 = stringFormatter.format(isSelected2 ? "todayDateSelected" : "todayDate", {
3080
+ date: label2
3081
+ });
3082
+ else if (isSelected2)
3083
+ label2 = stringFormatter.format("dateSelected", {
3084
+ date: label2
3085
+ });
3086
+ if (state.minValue && $14e0f24ef4ac5c92$export$ea39ec197993aef0(date, state.minValue)) label2 += ", " + stringFormatter.format("minimumDate");
3087
+ else if (state.maxValue && $14e0f24ef4ac5c92$export$ea39ec197993aef0(date, state.maxValue)) label2 += ", " + stringFormatter.format("maximumDate");
3088
+ return label2;
3089
+ }, [
3090
+ dateFormatter,
3091
+ nativeDate,
3092
+ stringFormatter,
3093
+ isSelected2,
3094
+ isDateToday,
3095
+ date,
3096
+ state,
3097
+ selectedDateDescription
3098
+ ]);
3099
+ let rangeSelectionPrompt = "";
3100
+ if ("anchorDate" in state && isFocused && !state.isReadOnly && isSelectable) {
3101
+ if (state.anchorDate) rangeSelectionPrompt = stringFormatter.format("finishRangeSelectionPrompt");
3102
+ else rangeSelectionPrompt = stringFormatter.format("startRangeSelectionPrompt");
3103
+ }
3104
+ let descriptionProps = $ef06256079686ba0$export$f8aeda7b10753fa1(rangeSelectionPrompt);
3105
+ let isAnchorPressed = useRef(false);
3106
+ let isRangeBoundaryPressed = useRef(false);
3107
+ let touchDragTimerRef = useRef(void 0);
3108
+ let { pressProps, isPressed } = $f6c31cce2adf654f$export$45712eceda6fad21({
3109
+ // When dragging to select a range, we don't want dragging over the original anchor
3110
+ // again to trigger onPressStart. Cancel presses immediately when the pointer exits.
3111
+ shouldCancelOnPointerExit: "anchorDate" in state && !!state.anchorDate,
3112
+ preventFocusOnPress: true,
3113
+ isDisabled: !isSelectable || state.isReadOnly,
3114
+ onPressStart(e) {
3115
+ if (state.isReadOnly) {
3116
+ state.setFocusedDate(date);
3117
+ return;
3118
+ }
3119
+ if ("highlightedRange" in state && !state.anchorDate && (e.pointerType === "mouse" || e.pointerType === "touch")) {
3120
+ if (state.highlightedRange && !isInvalid) {
3121
+ if ($14e0f24ef4ac5c92$export$ea39ec197993aef0(date, state.highlightedRange.start)) {
3122
+ state.setAnchorDate(state.highlightedRange.end);
3123
+ state.setFocusedDate(date);
3124
+ state.setDragging(true);
3125
+ isRangeBoundaryPressed.current = true;
3126
+ return;
3127
+ } else if ($14e0f24ef4ac5c92$export$ea39ec197993aef0(date, state.highlightedRange.end)) {
3128
+ state.setAnchorDate(state.highlightedRange.start);
3129
+ state.setFocusedDate(date);
3130
+ state.setDragging(true);
3131
+ isRangeBoundaryPressed.current = true;
3132
+ return;
3133
+ }
3134
+ }
3135
+ let startDragging = () => {
3136
+ state.setDragging(true);
3137
+ touchDragTimerRef.current = void 0;
3138
+ state.selectDate(date);
3139
+ state.setFocusedDate(date);
3140
+ isAnchorPressed.current = true;
3141
+ };
3142
+ if (e.pointerType === "touch") touchDragTimerRef.current = setTimeout(startDragging, 200);
3143
+ else startDragging();
3144
+ }
3145
+ },
3146
+ onPressEnd() {
3147
+ isRangeBoundaryPressed.current = false;
3148
+ isAnchorPressed.current = false;
3149
+ clearTimeout(touchDragTimerRef.current);
3150
+ touchDragTimerRef.current = void 0;
3151
+ },
3152
+ onPress() {
3153
+ if (!("anchorDate" in state) && !state.isReadOnly) {
3154
+ state.selectDate(date);
3155
+ state.setFocusedDate(date);
3156
+ }
3157
+ },
3158
+ onPressUp(e) {
3159
+ if (state.isReadOnly) return;
3160
+ if ("anchorDate" in state && touchDragTimerRef.current) {
3161
+ state.selectDate(date);
3162
+ state.setFocusedDate(date);
3163
+ }
3164
+ if ("anchorDate" in state) {
3165
+ if (isRangeBoundaryPressed.current)
3166
+ state.setAnchorDate(date);
3167
+ else if (state.anchorDate && !isAnchorPressed.current) {
3168
+ state.selectDate(date);
3169
+ state.setFocusedDate(date);
3170
+ } else if (e.pointerType === "keyboard" && !state.anchorDate) {
3171
+ state.selectDate(date);
3172
+ let nextDay = date.add({
3173
+ days: 1
3174
+ });
3175
+ if (state.isInvalid(nextDay)) nextDay = date.subtract({
3176
+ days: 1
3177
+ });
3178
+ if (!state.isInvalid(nextDay)) state.setFocusedDate(nextDay);
3179
+ } else if (e.pointerType === "virtual") {
3180
+ state.selectDate(date);
3181
+ state.setFocusedDate(date);
3182
+ }
3183
+ }
3184
+ }
3185
+ });
3186
+ let tabIndex = void 0;
3187
+ if (!isDisabled2) tabIndex = $14e0f24ef4ac5c92$export$ea39ec197993aef0(date, state.focusedDate) ? 0 : -1;
3188
+ useEffect(() => {
3189
+ if (isFocused && ref.current) {
3190
+ $7215afc6de606d6b$export$de79e2c695e052f3(ref.current);
3191
+ if ($507fabe10e71c6fb$export$630ff653c5ada6a9() !== "pointer" && document.activeElement === ref.current) $2f04cbc44ee30ce0$export$c826860796309d1b(ref.current, {
3192
+ containingElement: $62d8ded9296f3872$export$cfa2225e87938781(ref.current)
3193
+ });
3194
+ }
3195
+ }, [
3196
+ isFocused,
3197
+ ref
3198
+ ]);
3199
+ let cellDateFormatter = $896ba0a80a8f4d36$export$85fd5fdf27bacc79({
3200
+ day: "numeric",
3201
+ timeZone: state.timeZone,
3202
+ calendar: date.calendar.identifier
3203
+ });
3204
+ let formattedDate = useMemo(() => cellDateFormatter.formatToParts(nativeDate).find((part) => part.type === "day").value, [
3205
+ cellDateFormatter,
3206
+ nativeDate
3207
+ ]);
3208
+ return {
3209
+ cellProps: {
3210
+ role: "gridcell",
3211
+ "aria-disabled": !isSelectable || void 0,
3212
+ "aria-selected": isSelected2 || void 0,
3213
+ "aria-invalid": isInvalid || void 0
3214
+ },
3215
+ buttonProps: $3ef42575df84b30b$export$9d1611c77c2fe928(pressProps, {
3216
+ onFocus() {
3217
+ if (!isDisabled2) state.setFocusedDate(date);
3218
+ },
3219
+ tabIndex,
3220
+ role: "button",
3221
+ "aria-disabled": !isSelectable || void 0,
3222
+ "aria-label": label,
3223
+ "aria-invalid": isInvalid || void 0,
3224
+ "aria-describedby": [
3225
+ isInvalid ? errorMessageId : void 0,
3226
+ descriptionProps["aria-describedby"]
3227
+ ].filter(Boolean).join(" ") || void 0,
3228
+ onPointerEnter(e) {
3229
+ if ("highlightDate" in state && (e.pointerType !== "touch" || state.isDragging) && isSelectable) state.highlightDate(date);
3230
+ },
3231
+ onPointerDown(e) {
3232
+ if ("releasePointerCapture" in e.target) e.target.releasePointerCapture(e.pointerId);
3233
+ },
3234
+ onContextMenu(e) {
3235
+ e.preventDefault();
3236
+ }
3237
+ }),
3238
+ isPressed,
3239
+ isFocused,
3240
+ isSelected: isSelected2,
3241
+ isDisabled: isDisabled2,
3242
+ isUnavailable: isUnavailable2,
3243
+ isOutsideVisibleRange: date.compare(state.visibleRange.start) < 0 || date.compare(state.visibleRange.end) > 0,
3244
+ isInvalid,
3245
+ formattedDate
3246
+ };
3247
+ }
3248
+ const CalendarHeader$1 = "_CalendarHeader_aeb2w_5";
3249
+ const styles$3 = {
3250
+ CalendarHeader: CalendarHeader$1
3251
+ };
3252
+ function CalendarHeader(_a) {
3253
+ var _b = _a, { state, calendarProps, prevButtonProps: _c } = _b, _d = _c, { onFocusChange: _onFocusChangePrevButton } = _d, restPrevButtonProps = __objRest(_d, ["onFocusChange"]), { nextButtonProps: _e } = _b, _f = _e, { onFocusChange: _onFocusChangeNextButton } = _f, restNextButtonProps = __objRest(_f, ["onFocusChange"]);
3254
+ const monthDateFormatter = $896ba0a80a8f4d36$export$85fd5fdf27bacc79({
3255
+ month: "long",
3256
+ year: "numeric",
3257
+ timeZone: state.timeZone
3258
+ });
3259
+ const title = monthDateFormatter.format(state.visibleRange.start.toDate(state.timeZone));
3260
+ return React__default.createElement("div", {
3261
+ className: styles$3.CalendarHeader
3262
+ }, React__default.createElement($5c3e21d68f1c4674$export$439d29a4e110a164, null, React__default.createElement("h2", null, calendarProps["aria-label"])), React__default.createElement(HorizontalStack, {
3263
+ align: "space-between",
3264
+ blockAlign: "center"
3265
+ }, React__default.createElement(UnstyledButton, __spreadValues({}, restPrevButtonProps), React__default.createElement(Icon, {
3266
+ symbol: KeyboardDoubleArrowLeft,
3267
+ color: "neutral.000"
3268
+ })), React__default.createElement(Text, {
3269
+ variant: "subtitle2",
3270
+ color: "neutral.000"
3271
+ }, title), React__default.createElement(UnstyledButton, __spreadValues({}, restNextButtonProps), React__default.createElement(Icon, {
3272
+ symbol: KeyboardDoubleArrowRight,
3273
+ color: "neutral.000"
3274
+ }))));
3275
+ }
3276
+ const CellContainer = "_CellContainer_189gc_5";
3277
+ const rangeSelectionStart = "_rangeSelectionStart_189gc_8";
3278
+ const CalendarCell$1 = "_CalendarCell_189gc_28";
3279
+ const isUnavailable = "_isUnavailable_189gc_54";
3280
+ const isSelected = "_isSelected_189gc_54";
3281
+ const isDisabled = "_isDisabled_189gc_54";
3282
+ const isReadOnly = "_isReadOnly_189gc_54";
3283
+ const isOutsideCurrentMonth = "_isOutsideCurrentMonth_189gc_57";
3284
+ const rangeSelection = "_rangeSelection_189gc_8";
3285
+ const roundedRight = "_roundedRight_189gc_95";
3286
+ const styles$2 = {
3287
+ CellContainer,
3288
+ rangeSelectionStart,
3289
+ CalendarCell: CalendarCell$1,
3290
+ isUnavailable,
3291
+ isSelected,
3292
+ isDisabled,
3293
+ isReadOnly,
3294
+ isOutsideCurrentMonth,
3295
+ rangeSelection,
3296
+ roundedRight
3297
+ };
3298
+ function CalendarCell({ state, date }) {
3299
+ const ref = React__default.useRef(null);
3300
+ const { locale } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
3301
+ const { cellProps, buttonProps, isSelected: isSelected2, isOutsideVisibleRange, isDisabled: isDisabled2, isUnavailable: isUnavailable2, formattedDate } = $36a0ac60f04457c5$export$136073280381448e({
3302
+ date
3303
+ }, state, ref);
3304
+ const isRangeCalendar = lodashExports.has(state, "highlightedRange");
3305
+ const rangeState = state;
3306
+ const singleState = state;
3307
+ const isNextMonth = date.compare(state.visibleRange.end) > 0;
3308
+ const isPreviousMonth = date.compare(state.visibleRange.start) < 0;
3309
+ const handleMonthNavigation = () => {
3310
+ if (state.isDisabled || isUnavailable2 || state.isReadOnly) return;
3311
+ if (isNextMonth && !isUnavailable2) {
3312
+ state.focusNextPage();
3313
+ }
3314
+ if (isPreviousMonth && !isUnavailable2) {
3315
+ state.focusPreviousPage();
3316
+ }
3317
+ if (!state.isInvalid(date)) {
3318
+ if (isRangeCalendar) {
3319
+ rangeState.setValue(rangeState.highlightedRange);
3320
+ } else {
3321
+ singleState.setValue(date);
3322
+ }
3323
+ }
3324
+ };
3325
+ const isSelectionStart = rangeState.highlightedRange ? $14e0f24ef4ac5c92$export$ea39ec197993aef0(date, rangeState.highlightedRange.start) : isSelected2;
3326
+ const isSelectionEnd = rangeState.highlightedRange ? $14e0f24ef4ac5c92$export$ea39ec197993aef0(date, rangeState.highlightedRange.end) : isSelected2;
3327
+ const isRangeSelection = isSelected2 && isRangeCalendar && !isSelectionStart && !isSelectionEnd;
3328
+ const dayOfWeek = $14e0f24ef4ac5c92$export$2061056d06d7cdf7(date, locale);
3329
+ const isRoundedRight = isSelected2 && (isSelectionEnd || dayOfWeek === 6 || date.day === date.calendar.getDaysInMonth(date));
3330
+ return React__default.createElement("td", __spreadProps(__spreadValues({}, cellProps), {
3331
+ className: styles$2.CellContainer
3332
+ }), React__default.createElement("div", __spreadProps(__spreadValues({}, buttonProps), {
3333
+ ref,
3334
+ className: classNames(styles$2.CalendarCell, isSelected2 && styles$2.isSelected, (state.isDisabled || isDisabled2) && styles$2.isDisabled, isUnavailable2 && styles$2.isUnavailable, state.isReadOnly && styles$2.isReadOnly, isOutsideVisibleRange && styles$2.isOutsideCurrentMonth, isSelectionStart && !isDisabled2 && styles$2.rangeSelectionStart, isRangeSelection && styles$2.rangeSelection, isRoundedRight && styles$2.roundedRight),
3335
+ onClick: handleMonthNavigation
3336
+ }), React__default.createElement(Text, {
3337
+ variant: "body1"
3338
+ }, formattedDate)));
3339
+ }
3340
+ const CalendarGrid$1 = "_CalendarGrid_1wb52_5";
3341
+ const CalendarGridHeader = "_CalendarGridHeader_1wb52_9";
3342
+ const styles$1 = {
3343
+ CalendarGrid: CalendarGrid$1,
3344
+ CalendarGridHeader
3345
+ };
3346
+ function CalendarGrid(_g) {
3347
+ var _h = _g, { state } = _h, props = __objRest(_h, ["state"]);
3348
+ const { locale } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
3349
+ const { showDaysOutsideCurrentMonth } = props;
3350
+ const visibleStartDate = state.visibleRange.start;
3351
+ const { gridProps, headerProps, weekDays } = $e3031d1f8c9d64eb$export$cb95147730a423f5(props, state);
3352
+ const weeksInMonth = $14e0f24ef4ac5c92$export$ccc1b2479e7dd654(visibleStartDate, locale);
3353
+ return React__default.createElement("table", __spreadProps(__spreadValues({}, gridProps), {
3354
+ className: styles$1.CalendarGrid
3355
+ }), React__default.createElement("thead", __spreadProps(__spreadValues({}, headerProps), {
3356
+ className: styles$1.CalendarGridHeader
3357
+ }), React__default.createElement("tr", null, weekDays.map((day, index) => React__default.createElement("th", {
3358
+ key: index
3359
+ }, React__default.createElement(Text, {
3360
+ variant: "overline",
3361
+ color: "neutral.000"
3362
+ }, day))))), React__default.createElement("tbody", null, [...new Array(weeksInMonth).keys()].map((weekIndex) => React__default.createElement("tr", {
3363
+ key: weekIndex
3364
+ }, state.getDatesInWeek(weekIndex).map((date, i) => date && ($14e0f24ef4ac5c92$export$a18c89cbd24170ff(visibleStartDate, date) || showDaysOutsideCurrentMonth) ? React__default.createElement(CalendarCell, {
3365
+ key: i,
3366
+ state,
3367
+ date
3368
+ }) : React__default.createElement("td", {
3369
+ key: i
3370
+ }))))));
3371
+ }
3372
+ const Calendar = "_Calendar_m36ye_5";
3373
+ const styles = {
3374
+ Calendar
3375
+ };
3376
+ function CalendarBase(props) {
3377
+ const _a = props, { state, isInvalid, errorMessage, calendarProps, nextButtonProps, prevButtonProps, calendarRef, showDaysOutsideCurrentMonth } = _a, restProps = __objRest(_a, ["state", "isInvalid", "errorMessage", "calendarProps", "nextButtonProps", "prevButtonProps", "calendarRef", "showDaysOutsideCurrentMonth"]);
3378
+ return React__default.createElement(VerticalStack, {
3379
+ gap: "1"
3380
+ }, React__default.createElement("div", __spreadProps(__spreadValues({}, calendarProps), {
3381
+ className: styles.Calendar,
3382
+ ref: calendarRef
3383
+ }), React__default.createElement(CalendarHeader, {
3384
+ state,
3385
+ calendarProps,
3386
+ prevButtonProps,
3387
+ nextButtonProps
3388
+ }), React__default.createElement(CalendarGrid, __spreadValues({
3389
+ state,
3390
+ showDaysOutsideCurrentMonth
3391
+ }, restProps))), isInvalid && React__default.createElement(Text, {
3392
+ color: "negative.500",
3393
+ variant: "caption"
3394
+ }, errorMessage));
3395
+ }
3396
+ export {
3397
+ $c4acc1de3ab169cf$export$d652b3ea2d672d5b as $,
3398
+ CalendarBase as C,
3399
+ $131cf43a05231e1e$export$6d095e787d2b5e1f as a,
3400
+ $64244302c3013299$export$dd0bbc9b26defe37 as b,
3401
+ $f62d864046160412$export$f4a51ff076cc9a09 as c,
3402
+ $11d87f3f76e88657$export$93522d1a439f3617 as d,
3403
+ $14e0f24ef4ac5c92$export$a75f2bff57811055 as e,
3404
+ $14e0f24ef4ac5c92$export$5c333a116e949cdd as f,
3405
+ $14e0f24ef4ac5c92$export$91b62ebf2ba703ee as g,
3406
+ $f62d864046160412$export$eac50920cf2fd59a as h,
3407
+ $f62d864046160412$export$4f5203c0d889109e as i,
3408
+ $f62d864046160412$export$a1d3911297b952d7 as j,
3409
+ $11d87f3f76e88657$export$b4a036af3fc0b032 as k,
3410
+ $3b62074eb05584b2$export$80ee6245ec4f29ec as l
3411
+ };