@amateescu/portal-ui-components 0.0.34 → 0.0.37-beta0

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 (257) hide show
  1. package/README.md +113 -0
  2. package/dist/{Button-xgiLW4_3.js → Button-BM72-1G6.js} +107 -106
  3. package/dist/ButtonBase-D6nf3ymf.js +990 -0
  4. package/dist/{CircularProgress-Dq_bUtxt.js → CircularProgress-BlQFR6DW.js} +107 -80
  5. package/dist/Clear-BauR3cPE.js +8 -0
  6. package/dist/DefaultPropsProvider-BtPfTrMq.js +3449 -0
  7. package/dist/UserInfoDropdown-rBF0pwlq.js +23 -0
  8. package/dist/assets/PassportConfirmationModal.css +1 -0
  9. package/dist/assets/PassportErrorModal.css +1 -0
  10. package/dist/assets/PassportKpiCard.css +1 -0
  11. package/dist/assets/PassportTabHeader.css +1 -0
  12. package/dist/assets/index.css +1 -0
  13. package/dist/components/DebouncedPassportInput/DebouncedPassportInput.d.ts +3 -0
  14. package/dist/components/DebouncedPassportInput/DebouncedPassportInput.d.ts.map +1 -0
  15. package/dist/components/DebouncedPassportInput/DebouncedPassportInput.js +31 -0
  16. package/dist/components/DebouncedPassportInput/DebouncedPassportInput.stories.d.ts +23 -0
  17. package/dist/components/DebouncedPassportInput/DebouncedPassportInput.stories.d.ts.map +1 -0
  18. package/dist/components/DebouncedPassportInput/DebouncedPassportInput.types.d.ts +8 -0
  19. package/dist/components/DebouncedPassportInput/DebouncedPassportInput.types.d.ts.map +1 -0
  20. package/dist/components/InfoModal/InfoModal.d.ts +2 -1
  21. package/dist/components/InfoModal/InfoModal.d.ts.map +1 -0
  22. package/dist/components/InfoModal/InfoModal.js +26 -15
  23. package/dist/components/InfoModal/InfoModal.stories.d.ts +1 -0
  24. package/dist/components/InfoModal/InfoModal.stories.d.ts.map +1 -0
  25. package/dist/components/InfoModal/InfoModal.types.d.ts +1 -0
  26. package/dist/components/InfoModal/InfoModal.types.d.ts.map +1 -0
  27. package/dist/components/LoadingAnimation/LoadingAnimation.d.ts +1 -0
  28. package/dist/components/LoadingAnimation/LoadingAnimation.d.ts.map +1 -0
  29. package/dist/components/LoadingAnimation/LoadingAnimation.js +66 -6
  30. package/dist/components/LoadingAnimation/LoadingAnimation.stories.d.ts +1 -0
  31. package/dist/components/LoadingAnimation/LoadingAnimation.stories.d.ts.map +1 -0
  32. package/dist/components/Login/Login.d.ts +2 -1
  33. package/dist/components/Login/Login.d.ts.map +1 -0
  34. package/dist/components/Login/Login.js +43 -8870
  35. package/dist/components/Login/Login.stories.d.ts +3 -2
  36. package/dist/components/Login/Login.stories.d.ts.map +1 -0
  37. package/dist/components/Login/Login.types.d.ts +1 -0
  38. package/dist/components/Login/Login.types.d.ts.map +1 -0
  39. package/dist/components/PassportAutocomplete/PassportAutocomplete.d.ts +3 -0
  40. package/dist/components/PassportAutocomplete/PassportAutocomplete.d.ts.map +1 -0
  41. package/dist/components/PassportAutocomplete/PassportAutocomplete.js +41 -0
  42. package/dist/components/PassportAutocomplete/PassportAutocomplete.stories.d.ts +22 -0
  43. package/dist/components/PassportAutocomplete/PassportAutocomplete.stories.d.ts.map +1 -0
  44. package/dist/components/PassportAutocomplete/PassportAutocomplete.types.d.ts +14 -0
  45. package/dist/components/PassportAutocomplete/PassportAutocomplete.types.d.ts.map +1 -0
  46. package/dist/components/PassportButton/PassportButton.d.ts +4 -0
  47. package/dist/components/PassportButton/PassportButton.d.ts.map +1 -0
  48. package/dist/components/{CustomButton/CustomButton.js → PassportButton/PassportButton.js} +10 -6
  49. package/dist/components/{CustomButton/CustomButton.stories.d.ts → PassportButton/PassportButton.stories.d.ts} +2 -1
  50. package/dist/components/PassportButton/PassportButton.stories.d.ts.map +1 -0
  51. package/dist/components/PassportButton/PassportButton.types.d.ts +9 -0
  52. package/dist/components/PassportButton/PassportButton.types.d.ts.map +1 -0
  53. package/dist/components/PassportConfirmationModal/PassportConfirmationModal.d.ts +9 -0
  54. package/dist/components/PassportConfirmationModal/PassportConfirmationModal.d.ts.map +1 -0
  55. package/dist/components/PassportConfirmationModal/PassportConfirmationModal.js +108 -0
  56. package/dist/components/{ErrorModal/ErrorModal.stories.d.ts → PassportConfirmationModal/PassportConfirmationModal.stories.d.ts} +1 -0
  57. package/dist/components/PassportConfirmationModal/PassportConfirmationModal.stories.d.ts.map +1 -0
  58. package/dist/components/PassportDatePicker/PassportDatePicker.d.ts +3 -0
  59. package/dist/components/PassportDatePicker/PassportDatePicker.d.ts.map +1 -0
  60. package/dist/components/PassportDatePicker/PassportDatePicker.js +1514 -0
  61. package/dist/components/PassportDatePicker/PassportDatePicker.stories.d.ts +25 -0
  62. package/dist/components/PassportDatePicker/PassportDatePicker.stories.d.ts.map +1 -0
  63. package/dist/components/PassportDatePicker/PassportDatePicker.types.d.ts +15 -0
  64. package/dist/components/PassportDatePicker/PassportDatePicker.types.d.ts.map +1 -0
  65. package/dist/components/PassportDateTimePicker/PassportDateTimePicker.d.ts +3 -0
  66. package/dist/components/PassportDateTimePicker/PassportDateTimePicker.d.ts.map +1 -0
  67. package/dist/components/PassportDateTimePicker/PassportDateTimePicker.js +5419 -0
  68. package/dist/components/PassportDateTimePicker/PassportDateTimePicker.stories.d.ts +30 -0
  69. package/dist/components/PassportDateTimePicker/PassportDateTimePicker.stories.d.ts.map +1 -0
  70. package/dist/components/PassportDateTimePicker/PassportDateTimePicker.types.d.ts +16 -0
  71. package/dist/components/PassportDateTimePicker/PassportDateTimePicker.types.d.ts.map +1 -0
  72. package/dist/components/PassportDropdown/PassportDropdown.d.ts +3 -0
  73. package/dist/components/PassportDropdown/PassportDropdown.d.ts.map +1 -0
  74. package/dist/components/PassportDropdown/PassportDropdown.js +37 -0
  75. package/dist/components/PassportDropdown/PassportDropdown.stories.d.ts +25 -0
  76. package/dist/components/PassportDropdown/PassportDropdown.stories.d.ts.map +1 -0
  77. package/dist/components/PassportDropdown/PassportDropdown.types.d.ts +14 -0
  78. package/dist/components/PassportDropdown/PassportDropdown.types.d.ts.map +1 -0
  79. package/dist/components/PassportErrorModal/PassportErrorModal.d.ts +8 -0
  80. package/dist/components/PassportErrorModal/PassportErrorModal.d.ts.map +1 -0
  81. package/dist/components/PassportErrorModal/PassportErrorModal.js +68 -0
  82. package/dist/components/{ConfirmationModal/ConfirmationModal.stories.d.ts → PassportErrorModal/PassportErrorModal.stories.d.ts} +1 -0
  83. package/dist/components/PassportErrorModal/PassportErrorModal.stories.d.ts.map +1 -0
  84. package/dist/components/PassportFooter/PassportFooter.d.ts +3 -0
  85. package/dist/components/PassportFooter/PassportFooter.d.ts.map +1 -0
  86. package/dist/components/PassportFooter/PassportFooter.js +56 -0
  87. package/dist/components/{CustomFooter/CustomFooter.stories.d.ts → PassportFooter/PassportFooter.stories.d.ts} +1 -0
  88. package/dist/components/PassportFooter/PassportFooter.stories.d.ts.map +1 -0
  89. package/dist/components/{CustomFooter/CustomFooter.types.d.ts → PassportFooter/PassportFooter.types.d.ts} +3 -2
  90. package/dist/components/PassportFooter/PassportFooter.types.d.ts.map +1 -0
  91. package/dist/components/PassportInput/PassportInput.d.ts +3 -0
  92. package/dist/components/PassportInput/PassportInput.d.ts.map +1 -0
  93. package/dist/components/PassportInput/PassportInput.js +51 -0
  94. package/dist/components/PassportInput/PassportInput.stories.d.ts +24 -0
  95. package/dist/components/PassportInput/PassportInput.stories.d.ts.map +1 -0
  96. package/dist/components/PassportInput/PassportInput.types.d.ts +9 -0
  97. package/dist/components/PassportInput/PassportInput.types.d.ts.map +1 -0
  98. package/dist/components/PassportInput/PassportInput.types.js +1 -0
  99. package/dist/components/PassportKpiCard/PassportKpiCard.d.ts +3 -0
  100. package/dist/components/PassportKpiCard/PassportKpiCard.d.ts.map +1 -0
  101. package/dist/components/PassportKpiCard/PassportKpiCard.js +43 -0
  102. package/dist/components/{KpiCard/KpiCard.stories.d.ts → PassportKpiCard/PassportKpiCard.stories.d.ts} +3 -2
  103. package/dist/components/PassportKpiCard/PassportKpiCard.stories.d.ts.map +1 -0
  104. package/dist/components/PassportKpiCard/PassportKpiCard.types.d.ts +11 -0
  105. package/dist/components/PassportKpiCard/PassportKpiCard.types.d.ts.map +1 -0
  106. package/dist/components/PassportKpiCard/PassportKpiCard.types.js +1 -0
  107. package/dist/components/PassportKpiWrapper/PassportKpiWrapper.d.ts +3 -0
  108. package/dist/components/PassportKpiWrapper/PassportKpiWrapper.d.ts.map +1 -0
  109. package/dist/components/PassportKpiWrapper/PassportKpiWrapper.js +22 -0
  110. package/dist/components/{KpiWrapper/KpiWrapper.stories.d.ts → PassportKpiWrapper/PassportKpiWrapper.stories.d.ts} +6 -5
  111. package/dist/components/PassportKpiWrapper/PassportKpiWrapper.stories.d.ts.map +1 -0
  112. package/dist/components/{KpiWrapper/KpiWrapper.types.d.ts → PassportKpiWrapper/PassportKpiWrapper.types.d.ts} +2 -1
  113. package/dist/components/PassportKpiWrapper/PassportKpiWrapper.types.d.ts.map +1 -0
  114. package/dist/components/PassportKpiWrapper/PassportKpiWrapper.types.js +1 -0
  115. package/dist/components/PassportMultiSelect/PassportMultiSelect.d.ts +3 -0
  116. package/dist/components/PassportMultiSelect/PassportMultiSelect.d.ts.map +1 -0
  117. package/dist/components/PassportMultiSelect/PassportMultiSelect.js +72 -0
  118. package/dist/components/PassportMultiSelect/PassportMultiSelect.stories.d.ts +24 -0
  119. package/dist/components/PassportMultiSelect/PassportMultiSelect.stories.d.ts.map +1 -0
  120. package/dist/components/PassportMultiSelect/PassportMultiSelect.types.d.ts +12 -0
  121. package/dist/components/PassportMultiSelect/PassportMultiSelect.types.d.ts.map +1 -0
  122. package/dist/components/PassportMultiSelect/PassportMultiSelect.types.js +1 -0
  123. package/dist/components/PassportPagination/PassportPagination.d.ts +3 -0
  124. package/dist/components/PassportPagination/PassportPagination.d.ts.map +1 -0
  125. package/dist/components/{CustomPagination/CustomPagination.js → PassportPagination/PassportPagination.js} +215 -218
  126. package/dist/components/{CustomPagination/CustomPagination.stories.d.ts → PassportPagination/PassportPagination.stories.d.ts} +3 -2
  127. package/dist/components/PassportPagination/PassportPagination.stories.d.ts.map +1 -0
  128. package/dist/components/{CustomPagination/CustomPagination.types.d.ts → PassportPagination/PassportPagination.types.d.ts} +2 -1
  129. package/dist/components/PassportPagination/PassportPagination.types.d.ts.map +1 -0
  130. package/dist/components/PassportPagination/PassportPagination.types.js +1 -0
  131. package/dist/components/PassportTabHeader/PassportTabHeader.d.ts +7 -0
  132. package/dist/components/PassportTabHeader/PassportTabHeader.d.ts.map +1 -0
  133. package/dist/components/PassportTabHeader/PassportTabHeader.js +14 -0
  134. package/dist/components/PassportTabHeader/PassportTabHeader.stories.d.ts +21 -0
  135. package/dist/components/PassportTabHeader/PassportTabHeader.stories.d.ts.map +1 -0
  136. package/dist/components/PassportTextField/PassportTextField.d.ts +3 -0
  137. package/dist/components/PassportTextField/PassportTextField.d.ts.map +1 -0
  138. package/dist/components/PassportTextField/PassportTextField.js +23 -0
  139. package/dist/components/PassportTextField/PassportTextField.stories.d.ts +22 -0
  140. package/dist/components/PassportTextField/PassportTextField.stories.d.ts.map +1 -0
  141. package/dist/components/SideMenu/SideMenu.d.ts +1 -0
  142. package/dist/components/SideMenu/SideMenu.d.ts.map +1 -0
  143. package/dist/components/SideMenu/SideMenu.js +89 -41
  144. package/dist/components/SideMenu/SideMenu.stories.d.ts +1 -0
  145. package/dist/components/SideMenu/SideMenu.stories.d.ts.map +1 -0
  146. package/dist/components/SideMenu/SideMenu.types.d.ts +1 -0
  147. package/dist/components/SideMenu/SideMenu.types.d.ts.map +1 -0
  148. package/dist/components/TotalDataGrid/TotalDataGrid.d.ts +1 -0
  149. package/dist/components/TotalDataGrid/TotalDataGrid.d.ts.map +1 -0
  150. package/dist/components/TotalDataGrid/TotalDataGrid.js +3 -3
  151. package/dist/components/TotalDataGrid/TotalDataGrid.stories.d.ts +1 -0
  152. package/dist/components/TotalDataGrid/TotalDataGrid.stories.d.ts.map +1 -0
  153. package/dist/components/TotalDataGrid/TotalDataGrid.types.d.ts +1 -0
  154. package/dist/components/TotalDataGrid/TotalDataGrid.types.d.ts.map +1 -0
  155. package/dist/components/UserInfoDropdown/UserInfoDropdown.d.ts +1 -0
  156. package/dist/components/UserInfoDropdown/UserInfoDropdown.d.ts.map +1 -0
  157. package/dist/components/UserInfoDropdown/UserInfoDropdown.js +3 -2
  158. package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.d.ts +1 -0
  159. package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.d.ts.map +1 -0
  160. package/dist/components/UserInfoDropdown/UserInfoDropdown.types.d.ts +1 -0
  161. package/dist/components/UserInfoDropdown/UserInfoDropdown.types.d.ts.map +1 -0
  162. package/dist/components/index.d.ts +17 -7
  163. package/dist/components/index.d.ts.map +1 -0
  164. package/dist/components/index.js +45 -28
  165. package/dist/createSimplePaletteValueFilter-Bz8RuRaa.js +23 -0
  166. package/dist/{createSvgIcon-CgFXfzFk.js → createSvgIcon-B-eIQ7rU.js} +118 -124
  167. package/dist/extendSxProp-QNe1Nf_s.js +51 -0
  168. package/dist/main.d.ts +1 -0
  169. package/dist/main.d.ts.map +1 -0
  170. package/dist/main.js +63 -46
  171. package/dist/mock.d.ts +1 -0
  172. package/dist/mock.d.ts.map +1 -0
  173. package/dist/portal-utils/chunkArray.d.ts +1 -0
  174. package/dist/portal-utils/chunkArray.d.ts.map +1 -0
  175. package/dist/portal-utils/cn.d.ts +1 -0
  176. package/dist/portal-utils/cn.d.ts.map +1 -0
  177. package/dist/portal-utils/formatters.d.ts +1 -0
  178. package/dist/portal-utils/formatters.d.ts.map +1 -0
  179. package/dist/portal-utils/formatters.js +291 -334
  180. package/dist/portal-utils/index.d.ts +2 -1
  181. package/dist/portal-utils/index.d.ts.map +1 -0
  182. package/dist/portal-utils/loggerService.d.ts +1 -0
  183. package/dist/portal-utils/loggerService.d.ts.map +1 -0
  184. package/dist/portal-utils/pageCount.d.ts +1 -0
  185. package/dist/portal-utils/pageCount.d.ts.map +1 -0
  186. package/dist/types/BusinessDayRange.d.ts +1 -0
  187. package/dist/types/BusinessDayRange.d.ts.map +1 -0
  188. package/dist/types/Column.d.ts +1 -0
  189. package/dist/types/Column.d.ts.map +1 -0
  190. package/dist/types/CultureStore.d.ts +1 -0
  191. package/dist/types/CultureStore.d.ts.map +1 -0
  192. package/dist/types/CustomSvg.d.ts +1 -0
  193. package/dist/types/CustomSvg.d.ts.map +1 -0
  194. package/dist/types/LoginRequest.d.ts +1 -0
  195. package/dist/types/LoginRequest.d.ts.map +1 -0
  196. package/dist/types/index.d.ts +1 -0
  197. package/dist/types/index.d.ts.map +1 -0
  198. package/dist/useMobilePicker-hk2kq6ev.js +19662 -0
  199. package/dist/useSlot-CXnK24LX.js +189 -0
  200. package/package.json +43 -42
  201. package/dist/Box-D-aleOLf.js +0 -102
  202. package/dist/ButtonBase-DUKuDCWw.js +0 -966
  203. package/dist/EllipsisOutlined-CmR4hXJ_.js +0 -2467
  204. package/dist/InvencoGVR-qnTq-d6S.js +0 -5
  205. package/dist/PurePanel-CykVuv66.js +0 -2213
  206. package/dist/Skeleton-BBwDqRB3.js +0 -568
  207. package/dist/UserInfoDropdown-Bf6STdbW.js +0 -3790
  208. package/dist/VModalIcon-D7L4bQLO.js +0 -5
  209. package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
  210. package/dist/assets/ConfirmationModal.css +0 -1
  211. package/dist/assets/KpiCard.css +0 -1
  212. package/dist/assets/globals.css +0 -1
  213. package/dist/components/ConfirmationModal/ConfirmationModal.d.ts +0 -2
  214. package/dist/components/ConfirmationModal/ConfirmationModal.js +0 -51
  215. package/dist/components/ConfirmationModal/ConfirmationModal.stories.js +0 -36
  216. package/dist/components/ConfirmationModal/ConfirmationModal.types.d.ts +0 -11
  217. package/dist/components/CustomButton/CustomButton.d.ts +0 -3
  218. package/dist/components/CustomButton/CustomButton.stories.js +0 -42
  219. package/dist/components/CustomButton/CustomeButton.types.d.ts +0 -8
  220. package/dist/components/CustomFooter/CustomFooter.d.ts +0 -2
  221. package/dist/components/CustomFooter/CustomFooter.js +0 -32
  222. package/dist/components/CustomFooter/CustomFooter.stories.js +0 -40
  223. package/dist/components/CustomPagination/CustomPagination.d.ts +0 -3
  224. package/dist/components/CustomPagination/CustomPagination.stories.js +0 -25
  225. package/dist/components/ErrorModal/ErrorModal.d.ts +0 -2
  226. package/dist/components/ErrorModal/ErrorModal.js +0 -40
  227. package/dist/components/ErrorModal/ErrorModal.stories.js +0 -33
  228. package/dist/components/ErrorModal/ErrorModal.types.d.ts +0 -8
  229. package/dist/components/InfoModal/InfoModal.stories.js +0 -33
  230. package/dist/components/KpiCard/KpiCard.d.ts +0 -2
  231. package/dist/components/KpiCard/KpiCard.js +0 -2406
  232. package/dist/components/KpiCard/KpiCard.stories.js +0 -26
  233. package/dist/components/KpiCard/KpiCard.types.d.ts +0 -8
  234. package/dist/components/KpiWrapper/KpiWrapper.d.ts +0 -2
  235. package/dist/components/KpiWrapper/KpiWrapper.js +0 -11
  236. package/dist/components/KpiWrapper/KpiWrapper.stories.js +0 -56
  237. package/dist/components/LoadingAnimation/LoadingAnimation.stories.js +0 -14
  238. package/dist/components/Login/Login.stories.js +0 -24209
  239. package/dist/components/SideMenu/SideMenu.stories.js +0 -81
  240. package/dist/components/TotalDataGrid/TotalDataGrid.stories.js +0 -23
  241. package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.js +0 -36
  242. package/dist/context-4ttylmIf.js +0 -7356
  243. package/dist/createSimplePaletteValueFilter-evt-Xthj.js +0 -3444
  244. package/dist/index-BBBjHj3B.js +0 -411
  245. package/dist/index-Dz00OoV7.js +0 -1687
  246. package/dist/objectWithoutPropertiesLoose-BTau6TOn.js +0 -33
  247. package/dist/useSlot-Baxtq84W.js +0 -188
  248. /package/dist/assets/{ErrorModal.css → InfoModal.css} +0 -0
  249. /package/dist/assets/{CustomFooter.css → PassportFooter.css} +0 -0
  250. /package/dist/assets/{KpiWrapper.css → PassportKpiWrapper.css} +0 -0
  251. /package/dist/components/{ConfirmationModal/ConfirmationModal.types.js → DebouncedPassportInput/DebouncedPassportInput.types.js} +0 -0
  252. /package/dist/components/{CustomButton/CustomeButton.types.js → PassportAutocomplete/PassportAutocomplete.types.js} +0 -0
  253. /package/dist/components/{CustomFooter/CustomFooter.types.js → PassportButton/PassportButton.types.js} +0 -0
  254. /package/dist/components/{CustomPagination/CustomPagination.types.js → PassportDatePicker/PassportDatePicker.types.js} +0 -0
  255. /package/dist/components/{ErrorModal/ErrorModal.types.js → PassportDateTimePicker/PassportDateTimePicker.types.js} +0 -0
  256. /package/dist/components/{KpiCard/KpiCard.types.js → PassportDropdown/PassportDropdown.types.js} +0 -0
  257. /package/dist/components/{KpiWrapper/KpiWrapper.types.js → PassportFooter/PassportFooter.types.js} +0 -0
@@ -1,32 +1,31 @@
1
- const E = Symbol.for("constructDateFrom");
2
- function y(t, e) {
3
- return typeof t == "function" ? t(e) : t && typeof t == "object" && E in t ? t[E](e) : t instanceof Date ? new t.constructor(e) : new Date(e);
1
+ const W = /* @__PURE__ */ Symbol.for("constructDateFrom");
2
+ function g(t, e) {
3
+ return typeof t == "function" ? t(e) : t && typeof t == "object" && W in t ? t[W](e) : t instanceof Date ? new t.constructor(e) : new Date(e);
4
4
  }
5
- function l(t, e) {
6
- return y(e || t, t);
5
+ function f(t, e) {
6
+ return g(e || t, t);
7
7
  }
8
- let X = {};
9
- function F() {
10
- return X;
8
+ let L = {};
9
+ function S() {
10
+ return L;
11
11
  }
12
- function v(t, e) {
13
- var c, u, d, f;
14
- const n = F(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((u = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : u.weekStartsOn) ?? n.weekStartsOn ?? ((f = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : f.weekStartsOn) ?? 0, a = l(t, e == null ? void 0 : e.in), i = a.getDay(), s = (i < r ? 7 : 0) + i - r;
15
- return a.setDate(a.getDate() - s), a.setHours(0, 0, 0, 0), a;
12
+ function M(t, e) {
13
+ const n = S(), r = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, a = f(t, e?.in), i = a.getDay(), o = (i < r ? 7 : 0) + i - r;
14
+ return a.setDate(a.getDate() - o), a.setHours(0, 0, 0, 0), a;
16
15
  }
17
- function W(t, e) {
18
- return v(t, { ...e, weekStartsOn: 1 });
16
+ function D(t, e) {
17
+ return M(t, { ...e, weekStartsOn: 1 });
19
18
  }
20
- function G(t, e) {
21
- const n = l(t, e == null ? void 0 : e.in), r = n.getFullYear(), a = y(n, 0);
19
+ function C(t, e) {
20
+ const n = f(t, e?.in), r = n.getFullYear(), a = g(n, 0);
22
21
  a.setFullYear(r + 1, 0, 4), a.setHours(0, 0, 0, 0);
23
- const i = W(a), s = y(n, 0);
24
- s.setFullYear(r, 0, 4), s.setHours(0, 0, 0, 0);
25
- const c = W(s);
22
+ const i = D(a), o = g(n, 0);
23
+ o.setFullYear(r, 0, 4), o.setHours(0, 0, 0, 0);
24
+ const c = D(o);
26
25
  return n.getTime() >= i.getTime() ? r + 1 : n.getTime() >= c.getTime() ? r : r - 1;
27
26
  }
28
- function $(t) {
29
- const e = l(t), n = new Date(
27
+ function F(t) {
28
+ const e = f(t), n = new Date(
30
29
  Date.UTC(
31
30
  e.getFullYear(),
32
31
  e.getMonth(),
@@ -39,40 +38,40 @@ function $(t) {
39
38
  );
40
39
  return n.setUTCFullYear(e.getFullYear()), +t - +n;
41
40
  }
42
- function _(t, ...e) {
43
- const n = y.bind(
41
+ function G(t, ...e) {
42
+ const n = g.bind(
44
43
  null,
45
44
  e.find((r) => typeof r == "object")
46
45
  );
47
46
  return e.map(n);
48
47
  }
49
- function C(t, e) {
50
- const n = l(t, e == null ? void 0 : e.in);
48
+ function Y(t, e) {
49
+ const n = f(t, e?.in);
51
50
  return n.setHours(0, 0, 0, 0), n;
52
51
  }
53
- function I(t, e, n) {
54
- const [r, a] = _(
55
- n == null ? void 0 : n.in,
52
+ function Q(t, e, n) {
53
+ const [r, a] = G(
54
+ n?.in,
56
55
  t,
57
56
  e
58
- ), i = C(r), s = C(a), c = +i - $(i), u = +s - $(s);
59
- return Math.round((c - u) / 864e5);
57
+ ), i = Y(r), o = Y(a), c = +i - F(i), m = +o - F(o);
58
+ return Math.round((c - m) / 864e5);
60
59
  }
61
- function j(t, e) {
62
- const n = G(t, e), r = y(t, 0);
63
- return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), W(r);
60
+ function V(t, e) {
61
+ const n = C(t, e), r = g(t, 0);
62
+ return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), D(r);
64
63
  }
65
- function B(t) {
64
+ function X(t) {
66
65
  return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
67
66
  }
68
- function R(t) {
69
- return !(!B(t) && typeof t != "number" || isNaN(+l(t)));
67
+ function _(t) {
68
+ return !(!X(t) && typeof t != "number" || isNaN(+f(t)));
70
69
  }
71
- function A(t, e) {
72
- const n = l(t, e == null ? void 0 : e.in);
70
+ function I(t, e) {
71
+ const n = f(t, e?.in);
73
72
  return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
74
73
  }
75
- const J = {
74
+ const j = {
76
75
  lessThanXSeconds: {
77
76
  one: "less than a second",
78
77
  other: "less than {{count}} seconds"
@@ -134,77 +133,77 @@ const J = {
134
133
  one: "almost 1 year",
135
134
  other: "almost {{count}} years"
136
135
  }
137
- }, U = (t, e, n) => {
136
+ }, B = (t, e, n) => {
138
137
  let r;
139
- const a = J[t];
140
- return typeof a == "string" ? r = a : e === 1 ? r = a.one : r = a.other.replace("{{count}}", e.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
138
+ const a = j[t];
139
+ return typeof a == "string" ? r = a : e === 1 ? r = a.one : r = a.other.replace("{{count}}", e.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
141
140
  };
142
- function N(t) {
141
+ function v(t) {
143
142
  return (e = {}) => {
144
143
  const n = e.width ? String(e.width) : t.defaultWidth;
145
144
  return t.formats[n] || t.formats[t.defaultWidth];
146
145
  };
147
146
  }
148
- const z = {
147
+ const R = {
149
148
  full: "EEEE, MMMM do, y",
150
149
  long: "MMMM do, y",
151
150
  medium: "MMM d, y",
152
151
  short: "MM/dd/yyyy"
153
- }, K = {
152
+ }, A = {
154
153
  full: "h:mm:ss a zzzz",
155
154
  long: "h:mm:ss a z",
156
155
  medium: "h:mm:ss a",
157
156
  short: "h:mm a"
158
- }, Z = {
157
+ }, J = {
159
158
  full: "{{date}} 'at' {{time}}",
160
159
  long: "{{date}} 'at' {{time}}",
161
160
  medium: "{{date}}, {{time}}",
162
161
  short: "{{date}}, {{time}}"
163
- }, tt = {
164
- date: N({
165
- formats: z,
162
+ }, U = {
163
+ date: v({
164
+ formats: R,
166
165
  defaultWidth: "full"
167
166
  }),
168
- time: N({
169
- formats: K,
167
+ time: v({
168
+ formats: A,
170
169
  defaultWidth: "full"
171
170
  }),
172
- dateTime: N({
173
- formats: Z,
171
+ dateTime: v({
172
+ formats: J,
174
173
  defaultWidth: "full"
175
174
  })
176
- }, et = {
175
+ }, z = {
177
176
  lastWeek: "'last' eeee 'at' p",
178
177
  yesterday: "'yesterday at' p",
179
178
  today: "'today at' p",
180
179
  tomorrow: "'tomorrow at' p",
181
180
  nextWeek: "eeee 'at' p",
182
181
  other: "P"
183
- }, nt = (t, e, n, r) => et[t];
184
- function S(t) {
182
+ }, K = (t, e, n, r) => z[t];
183
+ function P(t) {
185
184
  return (e, n) => {
186
- const r = n != null && n.context ? String(n.context) : "standalone";
185
+ const r = n?.context ? String(n.context) : "standalone";
187
186
  let a;
188
187
  if (r === "formatting" && t.formattingValues) {
189
- const s = t.defaultFormattingWidth || t.defaultWidth, c = n != null && n.width ? String(n.width) : s;
190
- a = t.formattingValues[c] || t.formattingValues[s];
188
+ const o = t.defaultFormattingWidth || t.defaultWidth, c = n?.width ? String(n.width) : o;
189
+ a = t.formattingValues[c] || t.formattingValues[o];
191
190
  } else {
192
- const s = t.defaultWidth, c = n != null && n.width ? String(n.width) : t.defaultWidth;
193
- a = t.values[c] || t.values[s];
191
+ const o = t.defaultWidth, c = n?.width ? String(n.width) : t.defaultWidth;
192
+ a = t.values[c] || t.values[o];
194
193
  }
195
194
  const i = t.argumentCallback ? t.argumentCallback(e) : e;
196
195
  return a[i];
197
196
  };
198
197
  }
199
- const rt = {
198
+ const Z = {
200
199
  narrow: ["B", "A"],
201
200
  abbreviated: ["BC", "AD"],
202
201
  wide: ["Before Christ", "Anno Domini"]
203
- }, at = {
202
+ }, tt = {
204
203
  narrow: ["1", "2", "3", "4"],
205
204
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
206
205
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
207
- }, it = {
206
+ }, et = {
208
207
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
209
208
  abbreviated: [
210
209
  "Jan",
@@ -234,7 +233,7 @@ const rt = {
234
233
  "November",
235
234
  "December"
236
235
  ]
237
- }, st = {
236
+ }, nt = {
238
237
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
239
238
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
240
239
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
@@ -247,7 +246,7 @@ const rt = {
247
246
  "Friday",
248
247
  "Saturday"
249
248
  ]
250
- }, ot = {
249
+ }, rt = {
251
250
  narrow: {
252
251
  am: "a",
253
252
  pm: "p",
@@ -278,7 +277,7 @@ const rt = {
278
277
  evening: "evening",
279
278
  night: "night"
280
279
  }
281
- }, ct = {
280
+ }, at = {
282
281
  narrow: {
283
282
  am: "a",
284
283
  pm: "p",
@@ -309,7 +308,7 @@ const rt = {
309
308
  evening: "in the evening",
310
309
  night: "at night"
311
310
  }
312
- }, ut = (t, e) => {
311
+ }, it = (t, e) => {
313
312
  const n = Number(t), r = n % 100;
314
313
  if (r > 20 || r < 10)
315
314
  switch (r % 10) {
@@ -321,89 +320,89 @@ const rt = {
321
320
  return n + "rd";
322
321
  }
323
322
  return n + "th";
324
- }, dt = {
325
- ordinalNumber: ut,
326
- era: S({
327
- values: rt,
323
+ }, ot = {
324
+ ordinalNumber: it,
325
+ era: P({
326
+ values: Z,
328
327
  defaultWidth: "wide"
329
328
  }),
330
- quarter: S({
331
- values: at,
329
+ quarter: P({
330
+ values: tt,
332
331
  defaultWidth: "wide",
333
332
  argumentCallback: (t) => t - 1
334
333
  }),
335
- month: S({
336
- values: it,
334
+ month: P({
335
+ values: et,
337
336
  defaultWidth: "wide"
338
337
  }),
339
- day: S({
340
- values: st,
338
+ day: P({
339
+ values: nt,
341
340
  defaultWidth: "wide"
342
341
  }),
343
- dayPeriod: S({
344
- values: ot,
342
+ dayPeriod: P({
343
+ values: rt,
345
344
  defaultWidth: "wide",
346
- formattingValues: ct,
345
+ formattingValues: at,
347
346
  defaultFormattingWidth: "wide"
348
347
  })
349
348
  };
350
- function O(t) {
349
+ function p(t) {
351
350
  return (e, n = {}) => {
352
351
  const r = n.width, a = r && t.matchPatterns[r] || t.matchPatterns[t.defaultMatchWidth], i = e.match(a);
353
352
  if (!i)
354
353
  return null;
355
- const s = i[0], c = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], u = Array.isArray(c) ? ft(c, (g) => g.test(s)) : (
354
+ const o = i[0], c = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], m = Array.isArray(c) ? ct(c, (u) => u.test(o)) : (
356
355
  // [TODO] -- I challenge you to fix the type
357
- mt(c, (g) => g.test(s))
356
+ st(c, (u) => u.test(o))
358
357
  );
359
- let d;
360
- d = t.valueCallback ? t.valueCallback(u) : u, d = n.valueCallback ? (
358
+ let h;
359
+ h = t.valueCallback ? t.valueCallback(m) : m, h = n.valueCallback ? (
361
360
  // [TODO] -- I challenge you to fix the type
362
- n.valueCallback(d)
363
- ) : d;
364
- const f = e.slice(s.length);
365
- return { value: d, rest: f };
361
+ n.valueCallback(h)
362
+ ) : h;
363
+ const d = e.slice(o.length);
364
+ return { value: h, rest: d };
366
365
  };
367
366
  }
368
- function mt(t, e) {
367
+ function st(t, e) {
369
368
  for (const n in t)
370
369
  if (Object.prototype.hasOwnProperty.call(t, n) && e(t[n]))
371
370
  return n;
372
371
  }
373
- function ft(t, e) {
372
+ function ct(t, e) {
374
373
  for (let n = 0; n < t.length; n++)
375
374
  if (e(t[n]))
376
375
  return n;
377
376
  }
378
- function ht(t) {
377
+ function ut(t) {
379
378
  return (e, n = {}) => {
380
379
  const r = e.match(t.matchPattern);
381
380
  if (!r) return null;
382
381
  const a = r[0], i = e.match(t.parsePattern);
383
382
  if (!i) return null;
384
- let s = t.valueCallback ? t.valueCallback(i[0]) : i[0];
385
- s = n.valueCallback ? n.valueCallback(s) : s;
383
+ let o = t.valueCallback ? t.valueCallback(i[0]) : i[0];
384
+ o = n.valueCallback ? n.valueCallback(o) : o;
386
385
  const c = e.slice(a.length);
387
- return { value: s, rest: c };
386
+ return { value: o, rest: c };
388
387
  };
389
388
  }
390
- const lt = /^(\d+)(th|st|nd|rd)?/i, gt = /\d+/i, wt = {
389
+ const dt = /^(\d+)(th|st|nd|rd)?/i, mt = /\d+/i, ft = {
391
390
  narrow: /^(b|a)/i,
392
391
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
393
392
  wide: /^(before christ|before common era|anno domini|common era)/i
394
- }, yt = {
393
+ }, ht = {
395
394
  any: [/^b/i, /^(a|c)/i]
396
- }, bt = {
395
+ }, lt = {
397
396
  narrow: /^[1234]/i,
398
397
  abbreviated: /^q[1234]/i,
399
398
  wide: /^[1234](th|st|nd|rd)? quarter/i
400
- }, Pt = {
399
+ }, gt = {
401
400
  any: [/1/i, /2/i, /3/i, /4/i]
402
- }, Mt = {
401
+ }, wt = {
403
402
  narrow: /^[jfmasond]/i,
404
403
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
405
404
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
406
- }, xt = {
405
+ }, yt = {
407
406
  narrow: [
408
407
  /^j/i,
409
408
  /^f/i,
@@ -432,18 +431,18 @@ const lt = /^(\d+)(th|st|nd|rd)?/i, gt = /\d+/i, wt = {
432
431
  /^n/i,
433
432
  /^d/i
434
433
  ]
435
- }, Dt = {
434
+ }, bt = {
436
435
  narrow: /^[smtwf]/i,
437
436
  short: /^(su|mo|tu|we|th|fr|sa)/i,
438
437
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
439
438
  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
440
- }, St = {
439
+ }, Pt = {
441
440
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
442
441
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
443
- }, Ot = {
442
+ }, pt = {
444
443
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
445
444
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
446
- }, vt = {
445
+ }, Mt = {
447
446
  any: {
448
447
  am: /^a/i,
449
448
  pm: /^p/i,
@@ -454,99 +453,97 @@ const lt = /^(\d+)(th|st|nd|rd)?/i, gt = /\d+/i, wt = {
454
453
  evening: /evening/i,
455
454
  night: /night/i
456
455
  }
457
- }, kt = {
458
- ordinalNumber: ht({
459
- matchPattern: lt,
460
- parsePattern: gt,
456
+ }, xt = {
457
+ ordinalNumber: ut({
458
+ matchPattern: dt,
459
+ parsePattern: mt,
461
460
  valueCallback: (t) => parseInt(t, 10)
462
461
  }),
463
- era: O({
464
- matchPatterns: wt,
462
+ era: p({
463
+ matchPatterns: ft,
465
464
  defaultMatchWidth: "wide",
466
- parsePatterns: yt,
465
+ parsePatterns: ht,
467
466
  defaultParseWidth: "any"
468
467
  }),
469
- quarter: O({
470
- matchPatterns: bt,
468
+ quarter: p({
469
+ matchPatterns: lt,
471
470
  defaultMatchWidth: "wide",
472
- parsePatterns: Pt,
471
+ parsePatterns: gt,
473
472
  defaultParseWidth: "any",
474
473
  valueCallback: (t) => t + 1
475
474
  }),
476
- month: O({
477
- matchPatterns: Mt,
475
+ month: p({
476
+ matchPatterns: wt,
478
477
  defaultMatchWidth: "wide",
479
- parsePatterns: xt,
478
+ parsePatterns: yt,
480
479
  defaultParseWidth: "any"
481
480
  }),
482
- day: O({
483
- matchPatterns: Dt,
481
+ day: p({
482
+ matchPatterns: bt,
484
483
  defaultMatchWidth: "wide",
485
- parsePatterns: St,
484
+ parsePatterns: Pt,
486
485
  defaultParseWidth: "any"
487
486
  }),
488
- dayPeriod: O({
489
- matchPatterns: Ot,
487
+ dayPeriod: p({
488
+ matchPatterns: pt,
490
489
  defaultMatchWidth: "any",
491
- parsePatterns: vt,
490
+ parsePatterns: Mt,
492
491
  defaultParseWidth: "any"
493
492
  })
494
- }, Wt = {
493
+ }, Dt = {
495
494
  code: "en-US",
496
- formatDistance: U,
497
- formatLong: tt,
498
- formatRelative: nt,
499
- localize: dt,
500
- match: kt,
495
+ formatDistance: B,
496
+ formatLong: U,
497
+ formatRelative: K,
498
+ localize: ot,
499
+ match: xt,
501
500
  options: {
502
501
  weekStartsOn: 0,
503
502
  firstWeekContainsDate: 1
504
503
  }
505
504
  };
506
- function Ft(t, e) {
507
- const n = l(t, e == null ? void 0 : e.in);
508
- return I(n, A(n)) + 1;
505
+ function St(t, e) {
506
+ const n = f(t, e?.in);
507
+ return Q(n, I(n)) + 1;
509
508
  }
510
- function Yt(t, e) {
511
- const n = l(t, e == null ? void 0 : e.in), r = +W(n) - +j(n);
509
+ function Ot(t, e) {
510
+ const n = f(t, e?.in), r = +D(n) - +V(n);
512
511
  return Math.round(r / 6048e5) + 1;
513
512
  }
514
- function Q(t, e) {
515
- var f, g, x, D;
516
- const n = l(t, e == null ? void 0 : e.in), r = n.getFullYear(), a = F(), i = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((g = (f = e == null ? void 0 : e.locale) == null ? void 0 : f.options) == null ? void 0 : g.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((D = (x = a.locale) == null ? void 0 : x.options) == null ? void 0 : D.firstWeekContainsDate) ?? 1, s = y((e == null ? void 0 : e.in) || t, 0);
517
- s.setFullYear(r + 1, 0, i), s.setHours(0, 0, 0, 0);
518
- const c = v(s, e), u = y((e == null ? void 0 : e.in) || t, 0);
519
- u.setFullYear(r, 0, i), u.setHours(0, 0, 0, 0);
520
- const d = v(u, e);
521
- return +n >= +c ? r + 1 : +n >= +d ? r : r - 1;
513
+ function q(t, e) {
514
+ const n = f(t, e?.in), r = n.getFullYear(), a = S(), i = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, o = g(e?.in || t, 0);
515
+ o.setFullYear(r + 1, 0, i), o.setHours(0, 0, 0, 0);
516
+ const c = M(o, e), m = g(e?.in || t, 0);
517
+ m.setFullYear(r, 0, i), m.setHours(0, 0, 0, 0);
518
+ const h = M(m, e);
519
+ return +n >= +c ? r + 1 : +n >= +h ? r : r - 1;
522
520
  }
523
- function Nt(t, e) {
524
- var c, u, d, f;
525
- const n = F(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((u = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : u.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((f = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, a = Q(t, e), i = y((e == null ? void 0 : e.in) || t, 0);
526
- return i.setFullYear(a, 0, r), i.setHours(0, 0, 0, 0), v(i, e);
521
+ function vt(t, e) {
522
+ const n = S(), r = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, a = q(t, e), i = g(e?.in || t, 0);
523
+ return i.setFullYear(a, 0, r), i.setHours(0, 0, 0, 0), M(i, e);
527
524
  }
528
- function Tt(t, e) {
529
- const n = l(t, e == null ? void 0 : e.in), r = +v(n, e) - +Nt(n, e);
525
+ function kt(t, e) {
526
+ const n = f(t, e?.in), r = +M(n, e) - +vt(n, e);
530
527
  return Math.round(r / 6048e5) + 1;
531
528
  }
532
- function o(t, e) {
529
+ function s(t, e) {
533
530
  const n = t < 0 ? "-" : "", r = Math.abs(t).toString().padStart(e, "0");
534
531
  return n + r;
535
532
  }
536
- const w = {
533
+ const l = {
537
534
  // Year
538
535
  y(t, e) {
539
536
  const n = t.getFullYear(), r = n > 0 ? n : 1 - n;
540
- return o(e === "yy" ? r % 100 : r, e.length);
537
+ return s(e === "yy" ? r % 100 : r, e.length);
541
538
  },
542
539
  // Month
543
540
  M(t, e) {
544
541
  const n = t.getMonth();
545
- return e === "M" ? String(n + 1) : o(n + 1, 2);
542
+ return e === "M" ? String(n + 1) : s(n + 1, 2);
546
543
  },
547
544
  // Day of the month
548
545
  d(t, e) {
549
- return o(t.getDate(), e.length);
546
+ return s(t.getDate(), e.length);
550
547
  },
551
548
  // AM or PM
552
549
  a(t, e) {
@@ -559,42 +556,41 @@ const w = {
559
556
  return n;
560
557
  case "aaaaa":
561
558
  return n[0];
562
- case "aaaa":
563
559
  default:
564
560
  return n === "am" ? "a.m." : "p.m.";
565
561
  }
566
562
  },
567
563
  // Hour [1-12]
568
564
  h(t, e) {
569
- return o(t.getHours() % 12 || 12, e.length);
565
+ return s(t.getHours() % 12 || 12, e.length);
570
566
  },
571
567
  // Hour [0-23]
572
568
  H(t, e) {
573
- return o(t.getHours(), e.length);
569
+ return s(t.getHours(), e.length);
574
570
  },
575
571
  // Minute
576
572
  m(t, e) {
577
- return o(t.getMinutes(), e.length);
573
+ return s(t.getMinutes(), e.length);
578
574
  },
579
575
  // Second
580
576
  s(t, e) {
581
- return o(t.getSeconds(), e.length);
577
+ return s(t.getSeconds(), e.length);
582
578
  },
583
579
  // Fraction of second
584
580
  S(t, e) {
585
581
  const n = e.length, r = t.getMilliseconds(), a = Math.trunc(
586
582
  r * Math.pow(10, n - 3)
587
583
  );
588
- return o(a, e.length);
584
+ return s(a, e.length);
589
585
  }
590
- }, P = {
586
+ }, y = {
591
587
  midnight: "midnight",
592
588
  noon: "noon",
593
589
  morning: "morning",
594
590
  afternoon: "afternoon",
595
591
  evening: "evening",
596
592
  night: "night"
597
- }, q = {
593
+ }, N = {
598
594
  // Era
599
595
  G: function(t, e, n) {
600
596
  const r = t.getFullYear() > 0 ? 1 : 0;
@@ -607,8 +603,6 @@ const w = {
607
603
  // A, B
608
604
  case "GGGGG":
609
605
  return n.era(r, { width: "narrow" });
610
- // Anno Domini, Before Christ
611
- case "GGGG":
612
606
  default:
613
607
  return n.era(r, { width: "wide" });
614
608
  }
@@ -619,21 +613,21 @@ const w = {
619
613
  const r = t.getFullYear(), a = r > 0 ? r : 1 - r;
620
614
  return n.ordinalNumber(a, { unit: "year" });
621
615
  }
622
- return w.y(t, e);
616
+ return l.y(t, e);
623
617
  },
624
618
  // Local week-numbering year
625
619
  Y: function(t, e, n, r) {
626
- const a = Q(t, r), i = a > 0 ? a : 1 - a;
620
+ const a = q(t, r), i = a > 0 ? a : 1 - a;
627
621
  if (e === "YY") {
628
- const s = i % 100;
629
- return o(s, 2);
622
+ const o = i % 100;
623
+ return s(o, 2);
630
624
  }
631
- return e === "Yo" ? n.ordinalNumber(i, { unit: "year" }) : o(i, e.length);
625
+ return e === "Yo" ? n.ordinalNumber(i, { unit: "year" }) : s(i, e.length);
632
626
  },
633
627
  // ISO week-numbering year
634
628
  R: function(t, e) {
635
- const n = G(t);
636
- return o(n, e.length);
629
+ const n = C(t);
630
+ return s(n, e.length);
637
631
  },
638
632
  // Extended year. This is a single number designating the year of this calendar system.
639
633
  // The main difference between `y` and `u` localizers are B.C. years:
@@ -646,7 +640,7 @@ const w = {
646
640
  // while `uu` pads single digit years to 2 characters and returns other years unchanged.
647
641
  u: function(t, e) {
648
642
  const n = t.getFullYear();
649
- return o(n, e.length);
643
+ return s(n, e.length);
650
644
  },
651
645
  // Quarter
652
646
  Q: function(t, e, n) {
@@ -657,7 +651,7 @@ const w = {
657
651
  return String(r);
658
652
  // 01, 02, 03, 04
659
653
  case "QQ":
660
- return o(r, 2);
654
+ return s(r, 2);
661
655
  // 1st, 2nd, 3rd, 4th
662
656
  case "Qo":
663
657
  return n.ordinalNumber(r, { unit: "quarter" });
@@ -673,8 +667,6 @@ const w = {
673
667
  width: "narrow",
674
668
  context: "formatting"
675
669
  });
676
- // 1st quarter, 2nd quarter, ...
677
- case "QQQQ":
678
670
  default:
679
671
  return n.quarter(r, {
680
672
  width: "wide",
@@ -691,7 +683,7 @@ const w = {
691
683
  return String(r);
692
684
  // 01, 02, 03, 04
693
685
  case "qq":
694
- return o(r, 2);
686
+ return s(r, 2);
695
687
  // 1st, 2nd, 3rd, 4th
696
688
  case "qo":
697
689
  return n.ordinalNumber(r, { unit: "quarter" });
@@ -707,8 +699,6 @@ const w = {
707
699
  width: "narrow",
708
700
  context: "standalone"
709
701
  });
710
- // 1st quarter, 2nd quarter, ...
711
- case "qqqq":
712
702
  default:
713
703
  return n.quarter(r, {
714
704
  width: "wide",
@@ -722,7 +712,7 @@ const w = {
722
712
  switch (e) {
723
713
  case "M":
724
714
  case "MM":
725
- return w.M(t, e);
715
+ return l.M(t, e);
726
716
  // 1st, 2nd, ..., 12th
727
717
  case "Mo":
728
718
  return n.ordinalNumber(r + 1, { unit: "month" });
@@ -738,8 +728,6 @@ const w = {
738
728
  width: "narrow",
739
729
  context: "formatting"
740
730
  });
741
- // January, February, ..., December
742
- case "MMMM":
743
731
  default:
744
732
  return n.month(r, { width: "wide", context: "formatting" });
745
733
  }
@@ -753,7 +741,7 @@ const w = {
753
741
  return String(r + 1);
754
742
  // 01, 02, ..., 12
755
743
  case "LL":
756
- return o(r + 1, 2);
744
+ return s(r + 1, 2);
757
745
  // 1st, 2nd, ..., 12th
758
746
  case "Lo":
759
747
  return n.ordinalNumber(r + 1, { unit: "month" });
@@ -769,30 +757,28 @@ const w = {
769
757
  width: "narrow",
770
758
  context: "standalone"
771
759
  });
772
- // January, February, ..., December
773
- case "LLLL":
774
760
  default:
775
761
  return n.month(r, { width: "wide", context: "standalone" });
776
762
  }
777
763
  },
778
764
  // Local week of year
779
765
  w: function(t, e, n, r) {
780
- const a = Tt(t, r);
781
- return e === "wo" ? n.ordinalNumber(a, { unit: "week" }) : o(a, e.length);
766
+ const a = kt(t, r);
767
+ return e === "wo" ? n.ordinalNumber(a, { unit: "week" }) : s(a, e.length);
782
768
  },
783
769
  // ISO week of year
784
770
  I: function(t, e, n) {
785
- const r = Yt(t);
786
- return e === "Io" ? n.ordinalNumber(r, { unit: "week" }) : o(r, e.length);
771
+ const r = Ot(t);
772
+ return e === "Io" ? n.ordinalNumber(r, { unit: "week" }) : s(r, e.length);
787
773
  },
788
774
  // Day of the month
789
775
  d: function(t, e, n) {
790
- return e === "do" ? n.ordinalNumber(t.getDate(), { unit: "date" }) : w.d(t, e);
776
+ return e === "do" ? n.ordinalNumber(t.getDate(), { unit: "date" }) : l.d(t, e);
791
777
  },
792
778
  // Day of year
793
779
  D: function(t, e, n) {
794
- const r = Ft(t);
795
- return e === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : o(r, e.length);
780
+ const r = St(t);
781
+ return e === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : s(r, e.length);
796
782
  },
797
783
  // Day of week
798
784
  E: function(t, e, n) {
@@ -818,8 +804,6 @@ const w = {
818
804
  width: "short",
819
805
  context: "formatting"
820
806
  });
821
- // Tuesday
822
- case "EEEE":
823
807
  default:
824
808
  return n.day(r, {
825
809
  width: "wide",
@@ -836,7 +820,7 @@ const w = {
836
820
  return String(i);
837
821
  // Padded numerical value
838
822
  case "ee":
839
- return o(i, 2);
823
+ return s(i, 2);
840
824
  // 1st, 2nd, ..., 7th
841
825
  case "eo":
842
826
  return n.ordinalNumber(i, { unit: "day" });
@@ -857,8 +841,6 @@ const w = {
857
841
  width: "short",
858
842
  context: "formatting"
859
843
  });
860
- // Tuesday
861
- case "eeee":
862
844
  default:
863
845
  return n.day(a, {
864
846
  width: "wide",
@@ -875,7 +857,7 @@ const w = {
875
857
  return String(i);
876
858
  // Padded numerical value
877
859
  case "cc":
878
- return o(i, e.length);
860
+ return s(i, e.length);
879
861
  // 1st, 2nd, ..., 7th
880
862
  case "co":
881
863
  return n.ordinalNumber(i, { unit: "day" });
@@ -896,8 +878,6 @@ const w = {
896
878
  width: "short",
897
879
  context: "standalone"
898
880
  });
899
- // Tuesday
900
- case "cccc":
901
881
  default:
902
882
  return n.day(a, {
903
883
  width: "wide",
@@ -914,7 +894,7 @@ const w = {
914
894
  return String(a);
915
895
  // 02
916
896
  case "ii":
917
- return o(a, e.length);
897
+ return s(a, e.length);
918
898
  // 2nd
919
899
  case "io":
920
900
  return n.ordinalNumber(a, { unit: "day" });
@@ -936,8 +916,6 @@ const w = {
936
916
  width: "short",
937
917
  context: "formatting"
938
918
  });
939
- // Tuesday
940
- case "iiii":
941
919
  default:
942
920
  return n.day(r, {
943
921
  width: "wide",
@@ -965,7 +943,6 @@ const w = {
965
943
  width: "narrow",
966
944
  context: "formatting"
967
945
  });
968
- case "aaaa":
969
946
  default:
970
947
  return n.dayPeriod(a, {
971
948
  width: "wide",
@@ -977,7 +954,7 @@ const w = {
977
954
  b: function(t, e, n) {
978
955
  const r = t.getHours();
979
956
  let a;
980
- switch (r === 12 ? a = P.noon : r === 0 ? a = P.midnight : a = r / 12 >= 1 ? "pm" : "am", e) {
957
+ switch (r === 12 ? a = y.noon : r === 0 ? a = y.midnight : a = r / 12 >= 1 ? "pm" : "am", e) {
981
958
  case "b":
982
959
  case "bb":
983
960
  return n.dayPeriod(a, {
@@ -994,7 +971,6 @@ const w = {
994
971
  width: "narrow",
995
972
  context: "formatting"
996
973
  });
997
- case "bbbb":
998
974
  default:
999
975
  return n.dayPeriod(a, {
1000
976
  width: "wide",
@@ -1006,7 +982,7 @@ const w = {
1006
982
  B: function(t, e, n) {
1007
983
  const r = t.getHours();
1008
984
  let a;
1009
- switch (r >= 17 ? a = P.evening : r >= 12 ? a = P.afternoon : r >= 4 ? a = P.morning : a = P.night, e) {
985
+ switch (r >= 17 ? a = y.evening : r >= 12 ? a = y.afternoon : r >= 4 ? a = y.morning : a = y.night, e) {
1010
986
  case "B":
1011
987
  case "BB":
1012
988
  case "BBB":
@@ -1019,7 +995,6 @@ const w = {
1019
995
  width: "narrow",
1020
996
  context: "formatting"
1021
997
  });
1022
- case "BBBB":
1023
998
  default:
1024
999
  return n.dayPeriod(a, {
1025
1000
  width: "wide",
@@ -1033,33 +1008,33 @@ const w = {
1033
1008
  let r = t.getHours() % 12;
1034
1009
  return r === 0 && (r = 12), n.ordinalNumber(r, { unit: "hour" });
1035
1010
  }
1036
- return w.h(t, e);
1011
+ return l.h(t, e);
1037
1012
  },
1038
1013
  // Hour [0-23]
1039
1014
  H: function(t, e, n) {
1040
- return e === "Ho" ? n.ordinalNumber(t.getHours(), { unit: "hour" }) : w.H(t, e);
1015
+ return e === "Ho" ? n.ordinalNumber(t.getHours(), { unit: "hour" }) : l.H(t, e);
1041
1016
  },
1042
1017
  // Hour [0-11]
1043
1018
  K: function(t, e, n) {
1044
1019
  const r = t.getHours() % 12;
1045
- return e === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : o(r, e.length);
1020
+ return e === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : s(r, e.length);
1046
1021
  },
1047
1022
  // Hour [1-24]
1048
1023
  k: function(t, e, n) {
1049
1024
  let r = t.getHours();
1050
- return r === 0 && (r = 24), e === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : o(r, e.length);
1025
+ return r === 0 && (r = 24), e === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : s(r, e.length);
1051
1026
  },
1052
1027
  // Minute
1053
1028
  m: function(t, e, n) {
1054
- return e === "mo" ? n.ordinalNumber(t.getMinutes(), { unit: "minute" }) : w.m(t, e);
1029
+ return e === "mo" ? n.ordinalNumber(t.getMinutes(), { unit: "minute" }) : l.m(t, e);
1055
1030
  },
1056
1031
  // Second
1057
1032
  s: function(t, e, n) {
1058
- return e === "so" ? n.ordinalNumber(t.getSeconds(), { unit: "second" }) : w.s(t, e);
1033
+ return e === "so" ? n.ordinalNumber(t.getSeconds(), { unit: "second" }) : l.s(t, e);
1059
1034
  },
1060
1035
  // Fraction of second
1061
1036
  S: function(t, e) {
1062
- return w.S(t, e);
1037
+ return l.S(t, e);
1063
1038
  },
1064
1039
  // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
1065
1040
  X: function(t, e, n) {
@@ -1069,21 +1044,16 @@ const w = {
1069
1044
  switch (e) {
1070
1045
  // Hours and optional minutes
1071
1046
  case "X":
1072
- return H(r);
1047
+ return E(r);
1073
1048
  // Hours, minutes and optional seconds without `:` delimiter
1074
1049
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1075
1050
  // so this token always has the same output as `XX`
1076
1051
  case "XXXX":
1077
1052
  case "XX":
1078
- return b(r);
1079
- // Hours, minutes and optional seconds with `:` delimiter
1080
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1081
- // so this token always has the same output as `XXX`
1082
- case "XXXXX":
1083
- case "XXX":
1053
+ return w(r);
1084
1054
  // Hours and minutes with `:` delimiter
1085
1055
  default:
1086
- return b(r, ":");
1056
+ return w(r, ":");
1087
1057
  }
1088
1058
  },
1089
1059
  // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
@@ -1092,21 +1062,16 @@ const w = {
1092
1062
  switch (e) {
1093
1063
  // Hours and optional minutes
1094
1064
  case "x":
1095
- return H(r);
1065
+ return E(r);
1096
1066
  // Hours, minutes and optional seconds without `:` delimiter
1097
1067
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1098
1068
  // so this token always has the same output as `xx`
1099
1069
  case "xxxx":
1100
1070
  case "xx":
1101
- return b(r);
1102
- // Hours, minutes and optional seconds with `:` delimiter
1103
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1104
- // so this token always has the same output as `xxx`
1105
- case "xxxxx":
1106
- case "xxx":
1071
+ return w(r);
1107
1072
  // Hours and minutes with `:` delimiter
1108
1073
  default:
1109
- return b(r, ":");
1074
+ return w(r, ":");
1110
1075
  }
1111
1076
  },
1112
1077
  // Timezone (GMT)
@@ -1117,11 +1082,9 @@ const w = {
1117
1082
  case "O":
1118
1083
  case "OO":
1119
1084
  case "OOO":
1120
- return "GMT" + p(r, ":");
1121
- // Long
1122
- case "OOOO":
1085
+ return "GMT" + T(r, ":");
1123
1086
  default:
1124
- return "GMT" + b(r, ":");
1087
+ return "GMT" + w(r, ":");
1125
1088
  }
1126
1089
  },
1127
1090
  // Timezone (specific non-location)
@@ -1132,35 +1095,33 @@ const w = {
1132
1095
  case "z":
1133
1096
  case "zz":
1134
1097
  case "zzz":
1135
- return "GMT" + p(r, ":");
1136
- // Long
1137
- case "zzzz":
1098
+ return "GMT" + T(r, ":");
1138
1099
  default:
1139
- return "GMT" + b(r, ":");
1100
+ return "GMT" + w(r, ":");
1140
1101
  }
1141
1102
  },
1142
1103
  // Seconds timestamp
1143
1104
  t: function(t, e, n) {
1144
1105
  const r = Math.trunc(+t / 1e3);
1145
- return o(r, e.length);
1106
+ return s(r, e.length);
1146
1107
  },
1147
1108
  // Milliseconds timestamp
1148
1109
  T: function(t, e, n) {
1149
- return o(+t, e.length);
1110
+ return s(+t, e.length);
1150
1111
  }
1151
1112
  };
1152
- function p(t, e = "") {
1113
+ function T(t, e = "") {
1153
1114
  const n = t > 0 ? "-" : "+", r = Math.abs(t), a = Math.trunc(r / 60), i = r % 60;
1154
- return i === 0 ? n + String(a) : n + String(a) + e + o(i, 2);
1115
+ return i === 0 ? n + String(a) : n + String(a) + e + s(i, 2);
1155
1116
  }
1156
- function H(t, e) {
1157
- return t % 60 === 0 ? (t > 0 ? "-" : "+") + o(Math.abs(t) / 60, 2) : b(t, e);
1117
+ function E(t, e) {
1118
+ return t % 60 === 0 ? (t > 0 ? "-" : "+") + s(Math.abs(t) / 60, 2) : w(t, e);
1158
1119
  }
1159
- function b(t, e = "") {
1160
- const n = t > 0 ? "-" : "+", r = Math.abs(t), a = o(Math.trunc(r / 60), 2), i = o(r % 60, 2);
1120
+ function w(t, e = "") {
1121
+ const n = t > 0 ? "-" : "+", r = Math.abs(t), a = s(Math.trunc(r / 60), 2), i = s(r % 60, 2);
1161
1122
  return n + a + e + i;
1162
1123
  }
1163
- const L = (t, e) => {
1124
+ const $ = (t, e) => {
1164
1125
  switch (t) {
1165
1126
  case "P":
1166
1127
  return e.date({ width: "short" });
@@ -1168,11 +1129,10 @@ const L = (t, e) => {
1168
1129
  return e.date({ width: "medium" });
1169
1130
  case "PPP":
1170
1131
  return e.date({ width: "long" });
1171
- case "PPPP":
1172
1132
  default:
1173
1133
  return e.date({ width: "full" });
1174
1134
  }
1175
- }, V = (t, e) => {
1135
+ }, H = (t, e) => {
1176
1136
  switch (t) {
1177
1137
  case "p":
1178
1138
  return e.time({ width: "short" });
@@ -1180,14 +1140,13 @@ const L = (t, e) => {
1180
1140
  return e.time({ width: "medium" });
1181
1141
  case "ppp":
1182
1142
  return e.time({ width: "long" });
1183
- case "pppp":
1184
1143
  default:
1185
1144
  return e.time({ width: "full" });
1186
1145
  }
1187
- }, Et = (t, e) => {
1146
+ }, Wt = (t, e) => {
1188
1147
  const n = t.match(/(P+)(p+)?/) || [], r = n[1], a = n[2];
1189
1148
  if (!a)
1190
- return L(t, e);
1149
+ return $(t, e);
1191
1150
  let i;
1192
1151
  switch (r) {
1193
1152
  case "P":
@@ -1199,88 +1158,86 @@ const L = (t, e) => {
1199
1158
  case "PPP":
1200
1159
  i = e.dateTime({ width: "long" });
1201
1160
  break;
1202
- case "PPPP":
1203
1161
  default:
1204
1162
  i = e.dateTime({ width: "full" });
1205
1163
  break;
1206
1164
  }
1207
- return i.replace("{{date}}", L(r, e)).replace("{{time}}", V(a, e));
1208
- }, $t = {
1209
- p: V,
1210
- P: Et
1211
- }, Ct = /^D+$/, qt = /^Y+$/, pt = ["D", "DD", "YY", "YYYY"];
1212
- function Ht(t) {
1213
- return Ct.test(t);
1165
+ return i.replace("{{date}}", $(r, e)).replace("{{time}}", H(a, e));
1166
+ }, Ft = {
1167
+ p: H,
1168
+ P: Wt
1169
+ }, Yt = /^D+$/, Nt = /^Y+$/, Tt = ["D", "DD", "YY", "YYYY"];
1170
+ function Et(t) {
1171
+ return Yt.test(t);
1214
1172
  }
1215
- function Lt(t) {
1216
- return qt.test(t);
1173
+ function $t(t) {
1174
+ return Nt.test(t);
1217
1175
  }
1218
- function Gt(t, e, n) {
1219
- const r = Qt(t, e, n);
1220
- if (console.warn(r), pt.includes(t)) throw new RangeError(r);
1176
+ function Ct(t, e, n) {
1177
+ const r = qt(t, e, n);
1178
+ if (console.warn(r), Tt.includes(t)) throw new RangeError(r);
1221
1179
  }
1222
- function Qt(t, e, n) {
1180
+ function qt(t, e, n) {
1223
1181
  const r = t[0] === "Y" ? "years" : "days of the month";
1224
1182
  return `Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
1225
1183
  }
1226
- const Vt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Xt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, _t = /^'([^]*?)'?$/, It = /''/g, jt = /[a-zA-Z]/;
1227
- function T(t, e, n) {
1228
- var f, g, x, D;
1229
- const r = F(), a = r.locale ?? Wt, i = r.firstWeekContainsDate ?? ((g = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, s = r.weekStartsOn ?? ((D = (x = r.locale) == null ? void 0 : x.options) == null ? void 0 : D.weekStartsOn) ?? 0, c = l(t, n == null ? void 0 : n.in);
1230
- if (!R(c))
1184
+ const Ht = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Lt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Gt = /^'([^]*?)'?$/, Qt = /''/g, Vt = /[a-zA-Z]/;
1185
+ function k(t, e, n) {
1186
+ const r = S(), a = r.locale ?? Dt, i = r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, o = r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, c = f(t, n?.in);
1187
+ if (!_(c))
1231
1188
  throw new RangeError("Invalid time value");
1232
- let u = e.match(Xt).map((h) => {
1233
- const m = h[0];
1234
- if (m === "p" || m === "P") {
1235
- const Y = $t[m];
1236
- return Y(h, a.formatLong);
1189
+ let m = e.match(Lt).map((d) => {
1190
+ const u = d[0];
1191
+ if (u === "p" || u === "P") {
1192
+ const O = Ft[u];
1193
+ return O(d, a.formatLong);
1237
1194
  }
1238
- return h;
1239
- }).join("").match(Vt).map((h) => {
1240
- if (h === "''")
1195
+ return d;
1196
+ }).join("").match(Ht).map((d) => {
1197
+ if (d === "''")
1241
1198
  return { isToken: !1, value: "'" };
1242
- const m = h[0];
1243
- if (m === "'")
1244
- return { isToken: !1, value: Bt(h) };
1245
- if (q[m])
1246
- return { isToken: !0, value: h };
1247
- if (m.match(jt))
1199
+ const u = d[0];
1200
+ if (u === "'")
1201
+ return { isToken: !1, value: Xt(d) };
1202
+ if (N[u])
1203
+ return { isToken: !0, value: d };
1204
+ if (u.match(Vt))
1248
1205
  throw new RangeError(
1249
- "Format string contains an unescaped latin alphabet character `" + m + "`"
1206
+ "Format string contains an unescaped latin alphabet character `" + u + "`"
1250
1207
  );
1251
- return { isToken: !1, value: h };
1208
+ return { isToken: !1, value: d };
1252
1209
  });
1253
- a.localize.preprocessor && (u = a.localize.preprocessor(c, u));
1254
- const d = {
1210
+ a.localize.preprocessor && (m = a.localize.preprocessor(c, m));
1211
+ const h = {
1255
1212
  firstWeekContainsDate: i,
1256
- weekStartsOn: s,
1213
+ weekStartsOn: o,
1257
1214
  locale: a
1258
1215
  };
1259
- return u.map((h) => {
1260
- if (!h.isToken) return h.value;
1261
- const m = h.value;
1262
- (Lt(m) || Ht(m)) && Gt(m, e, String(t));
1263
- const Y = q[m[0]];
1264
- return Y(c, m, a.localize, d);
1216
+ return m.map((d) => {
1217
+ if (!d.isToken) return d.value;
1218
+ const u = d.value;
1219
+ ($t(u) || Et(u)) && Ct(u, e, String(t));
1220
+ const O = N[u[0]];
1221
+ return O(c, u, a.localize, h);
1265
1222
  }).join("");
1266
1223
  }
1267
- function Bt(t) {
1268
- const e = t.match(_t);
1269
- return e ? e[1].replace(It, "'") : t;
1224
+ function Xt(t) {
1225
+ const e = t.match(Gt);
1226
+ return e ? e[1].replace(Qt, "'") : t;
1270
1227
  }
1271
- const M = "en-US";
1272
- function Rt(t, e) {
1273
- let n = Math.abs(e).toLocaleString(M, {
1228
+ const b = "en-US";
1229
+ function _t(t, e) {
1230
+ let n = Math.abs(e).toLocaleString(b, {
1274
1231
  useGrouping: !1
1275
1232
  });
1276
- return e < 0 ? n = `${t.settings.numbersPrefixNegative}${n}${t.settings.numbersSuffixNegative}` : n = `${t.settings.numbersPrefixPositive}${n}${t.settings.numbersSuffixPositive}`, k(
1233
+ return e < 0 ? n = `${t.settings.numbersPrefixNegative}${n}${t.settings.numbersSuffixNegative}` : n = `${t.settings.numbersPrefixPositive}${n}${t.settings.numbersSuffixPositive}`, x(
1277
1234
  n,
1278
1235
  t.settings.decimalSeparator,
1279
1236
  t.settings.thousandsSeparator
1280
1237
  );
1281
1238
  }
1282
- function At(t, e) {
1283
- let n = Math.abs(e).toLocaleString(M, {
1239
+ function It(t, e) {
1240
+ let n = Math.abs(e).toLocaleString(b, {
1284
1241
  minimumFractionDigits: e < 0 ? t.settings.numbersDecimalPrecisionNegative : t.settings.numbersDecimalPrecisionPositive,
1285
1242
  maximumFractionDigits: e < 0 ? Math.max(
1286
1243
  t.settings.numbersDecimalPrecisionNegativeOptional,
@@ -1291,15 +1248,15 @@ function At(t, e) {
1291
1248
  ),
1292
1249
  useGrouping: !1
1293
1250
  });
1294
- return e < 0 ? n = `${t.settings.numbersPrefixNegative}${n}${t.settings.numbersSuffixNegative}` : n = `${t.settings.numbersPrefixPositive}${n}${t.settings.numbersSuffixPositive}`, k(
1251
+ return e < 0 ? n = `${t.settings.numbersPrefixNegative}${n}${t.settings.numbersSuffixNegative}` : n = `${t.settings.numbersPrefixPositive}${n}${t.settings.numbersSuffixPositive}`, x(
1295
1252
  n,
1296
1253
  t.settings.decimalSeparator,
1297
1254
  t.settings.thousandsSeparator
1298
1255
  );
1299
1256
  }
1300
- function Jt(t, e) {
1257
+ function jt(t, e) {
1301
1258
  if (isNaN(e)) return "";
1302
- let n = Math.abs(e).toLocaleString(M, {
1259
+ let n = Math.abs(e).toLocaleString(b, {
1303
1260
  minimumFractionDigits: e < 0 ? t.settings.currencyNegMinimumFractionDigits : t.settings.currencyMinimumFractionDigits,
1304
1261
  minimumIntegerDigits: e < 0 ? t.settings.currencyNegMinimumIntegerDigits : t.settings.currencyMinimumIntegerDigits,
1305
1262
  maximumFractionDigits: e < 0 ? Math.max(
@@ -1311,16 +1268,16 @@ function Jt(t, e) {
1311
1268
  ),
1312
1269
  useGrouping: !1
1313
1270
  });
1314
- return e < 0 ? n = `${t.settings.currencyPrefixNegative}${n}${t.settings.currencySuffixNegative}` : n = `${t.settings.currencyPrefixPositive}${n}${t.settings.currencySuffixPositive}`, k(
1271
+ return e < 0 ? n = `${t.settings.currencyPrefixNegative}${n}${t.settings.currencySuffixNegative}` : n = `${t.settings.currencyPrefixPositive}${n}${t.settings.currencySuffixPositive}`, x(
1315
1272
  n,
1316
1273
  t.settings.decimalSeparator,
1317
1274
  t.settings.thousandsSeparator
1318
1275
  );
1319
1276
  }
1320
- function Ut(t, e) {
1277
+ function Bt(t, e) {
1321
1278
  if (isNaN(e)) return "";
1322
- const n = k(
1323
- e.toLocaleString(M, {
1279
+ const n = x(
1280
+ e.toLocaleString(b, {
1324
1281
  style: "currency",
1325
1282
  currency: t.settings.currencyCode,
1326
1283
  minimumFractionDigits: t.settings.fuelUnitPriceDecimalPrecisionPositive,
@@ -1331,38 +1288,38 @@ function Ut(t, e) {
1331
1288
  );
1332
1289
  return `${t.settings.fuelUnitPricePrefixPositive}${n}${t.settings.fuelUnitPriceSuffixPositive}`;
1333
1290
  }
1334
- function zt(t) {
1335
- return isNaN(t) ? "" : t.toLocaleString(M, {
1291
+ function Rt(t) {
1292
+ return isNaN(t) ? "" : t.toLocaleString(b, {
1336
1293
  minimumFractionDigits: 0,
1337
1294
  maximumFractionDigits: 2,
1338
1295
  useGrouping: !1
1339
1296
  });
1340
1297
  }
1341
- function Kt(t, e, n) {
1298
+ function At(t, e, n) {
1342
1299
  if (isNaN(e) && (e = 0), e === 0) return "";
1343
- let r = Math.abs(e).toLocaleString(M, {
1300
+ let r = Math.abs(e).toLocaleString(b, {
1344
1301
  minimumFractionDigits: e < 0 ? t.settings.fuelVolumeDecimalPrecisionNegative : t.settings.fuelVolumeDecimalPrecisionPositive,
1345
1302
  useGrouping: !1
1346
1303
  });
1347
- return r = k(
1304
+ return r = x(
1348
1305
  r,
1349
1306
  t.settings.decimalSeparator,
1350
1307
  t.settings.thousandsSeparator
1351
1308
  ), r = `${e < 0 ? t.settings.fuelVolumePrefixNegative : t.settings.fuelVolumePrefixPositive}${r}${e < 0 ? t.settings.fuelVolumeSuffixNegative : t.settings.fuelVolumeSuffixPositive}`, r + (n ? "" : ` ${t.settings.fuelVolumeSign}`);
1352
1309
  }
1353
- function Zt(t, e) {
1310
+ function Jt(t, e) {
1354
1311
  const n = t.settings.dateFormat;
1355
- return T(new Date(e), n);
1312
+ return k(new Date(e), n);
1356
1313
  }
1357
- function te(t, e) {
1314
+ function Ut(t, e) {
1358
1315
  const n = t.settings.timeFormat;
1359
- return T(new Date(e), `${n}`);
1316
+ return k(new Date(e), `${n}`);
1360
1317
  }
1361
- function ee(t, e) {
1318
+ function zt(t, e) {
1362
1319
  const n = t.settings.dateFormat, r = t.settings.timeFormat;
1363
- return T(new Date(e), `${n} ${r}`);
1320
+ return k(new Date(e), `${n} ${r}`);
1364
1321
  }
1365
- function k(t, e = ".", n = ",") {
1322
+ function x(t, e = ".", n = ",") {
1366
1323
  const [r, a] = t.split("."), i = r.replace(
1367
1324
  /\B(?=(\d{3})+(?!\d))/g,
1368
1325
  n
@@ -1370,13 +1327,13 @@ function k(t, e = ".", n = ",") {
1370
1327
  return a ? `${i}${e}${a}` : i;
1371
1328
  }
1372
1329
  export {
1373
- Jt as currency,
1374
- Zt as date,
1375
- ee as datetime,
1376
- At as decimal,
1377
- Ut as fuelUnitPrice,
1378
- Kt as fuelVolume,
1379
- zt as hours,
1380
- Rt as number,
1381
- te as time
1330
+ jt as currency,
1331
+ Jt as date,
1332
+ zt as datetime,
1333
+ It as decimal,
1334
+ Bt as fuelUnitPrice,
1335
+ At as fuelVolume,
1336
+ Rt as hours,
1337
+ _t as number,
1338
+ Ut as time
1382
1339
  };