@govbr-ds/webcomponents 2.1.0 → 2.1.2

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 (866) hide show
  1. package/README.md +0 -11
  2. package/cem/custom-elements.json +272 -71
  3. package/dist/cjs/app-globals-DcqHuMBv.js +9 -0
  4. package/dist/cjs/br-avatar.cjs.entry.js +248 -0
  5. package/dist/cjs/br-breadcrumb-item.cjs.entry.js +45 -0
  6. package/dist/cjs/br-breadcrumb.cjs.entry.js +443 -0
  7. package/dist/cjs/br-button_2.cjs.entry.js +280 -0
  8. package/dist/cjs/br-card.cjs.entry.js +111 -0
  9. package/dist/cjs/br-carousel-page.cjs.entry.js +80 -0
  10. package/dist/cjs/br-carousel.cjs.entry.js +565 -0
  11. package/dist/cjs/br-checkbox-group.cjs.entry.js +118 -0
  12. package/dist/cjs/br-checkbox.cjs.entry.js +288 -0
  13. package/dist/cjs/br-checkgroup.cjs.entry.js +20 -0
  14. package/dist/cjs/br-collapse_2.cjs.entry.js +683 -0
  15. package/dist/cjs/br-cookiebar-cookie.cjs.entry.js +83 -0
  16. package/dist/cjs/br-cookiebar-group.cjs.entry.js +309 -0
  17. package/dist/cjs/br-cookiebar-header.cjs.entry.js +39 -0
  18. package/dist/cjs/br-cookiebar-link.cjs.entry.js +55 -0
  19. package/dist/cjs/br-cookiebar-note-group.cjs.entry.js +70 -0
  20. package/dist/cjs/br-cookiebar-note.cjs.entry.js +25 -0
  21. package/dist/cjs/br-cookiebar.cjs.entry.js +758 -0
  22. package/dist/cjs/br-crumb.cjs.entry.js +51 -0
  23. package/dist/cjs/br-date-picker_3.cjs.entry.js +2447 -0
  24. package/dist/cjs/br-datetime-picker.cjs.entry.js +1886 -0
  25. package/dist/cjs/br-divider.cjs.entry.js +225 -0
  26. package/dist/cjs/br-dropdown_2.cjs.entry.js +2000 -0
  27. package/dist/cjs/br-footer-category.cjs.entry.js +102 -0
  28. package/dist/cjs/br-footer-item.cjs.entry.js +52 -0
  29. package/dist/cjs/br-footer-legal.cjs.entry.js +41 -0
  30. package/dist/cjs/br-footer-logo.cjs.entry.js +104 -0
  31. package/dist/cjs/br-footer-social.cjs.entry.js +71 -0
  32. package/dist/cjs/br-footer.cjs.entry.js +92 -0
  33. package/dist/cjs/br-header-function.cjs.entry.js +142 -0
  34. package/dist/cjs/br-header-link.cjs.entry.js +60 -0
  35. package/dist/cjs/br-header-list.cjs.entry.js +279 -0
  36. package/dist/cjs/br-header-logo.cjs.entry.js +178 -0
  37. package/dist/cjs/br-header.cjs.entry.js +642 -0
  38. package/dist/cjs/br-icon.cjs.entry.js +485 -0
  39. package/dist/cjs/br-input.cjs.entry.js +599 -0
  40. package/dist/cjs/br-item.cjs.entry.js +367 -0
  41. package/dist/cjs/br-link.cjs.entry.js +133 -0
  42. package/dist/cjs/br-loading.cjs.entry.js +505 -0
  43. package/dist/cjs/br-magic-button.cjs.entry.js +93 -0
  44. package/dist/cjs/br-menu-group.cjs.entry.js +23 -0
  45. package/dist/cjs/br-menu-header.cjs.entry.js +47 -0
  46. package/dist/cjs/br-menu-info.cjs.entry.js +38 -0
  47. package/dist/cjs/br-menu-item.cjs.entry.js +79 -0
  48. package/dist/cjs/br-menu-link.cjs.entry.js +56 -0
  49. package/dist/cjs/br-menu-list.cjs.entry.js +149 -0
  50. package/dist/cjs/br-menu-logo.cjs.entry.js +75 -0
  51. package/dist/cjs/br-menu-social.cjs.entry.js +65 -0
  52. package/dist/cjs/br-menu.cjs.entry.js +993 -0
  53. package/dist/cjs/br-modal.cjs.entry.js +496 -0
  54. package/dist/cjs/br-notification-body.cjs.entry.js +71 -0
  55. package/dist/cjs/br-notification-header.cjs.entry.js +48 -0
  56. package/dist/cjs/br-notification-item.cjs.entry.js +110 -0
  57. package/dist/cjs/br-notification.cjs.entry.js +334 -0
  58. package/dist/cjs/br-pagination.cjs.entry.js +884 -0
  59. package/dist/cjs/br-radio-group.cjs.entry.js +428 -0
  60. package/dist/cjs/br-radio.cjs.entry.js +357 -0
  61. package/dist/cjs/br-scrim.cjs.entry.js +1336 -0
  62. package/dist/cjs/br-select-input_3.cjs.entry.js +988 -0
  63. package/dist/cjs/br-sign-in.cjs.entry.js +126 -0
  64. package/dist/cjs/br-skip-link-item.cjs.entry.js +20 -0
  65. package/dist/cjs/br-skip-link.cjs.entry.js +362 -0
  66. package/dist/cjs/br-skiplink-item.cjs.entry.js +192 -0
  67. package/dist/cjs/br-slider.cjs.entry.js +687 -0
  68. package/dist/cjs/br-step_2.cjs.entry.js +628 -0
  69. package/dist/cjs/br-switch.cjs.entry.js +245 -0
  70. package/dist/cjs/br-tab-item.cjs.entry.js +185 -0
  71. package/dist/cjs/br-tab.cjs.entry.js +397 -0
  72. package/dist/cjs/br-table-body.cjs.entry.js +37 -0
  73. package/dist/cjs/br-table-cell.cjs.entry.js +184 -0
  74. package/dist/cjs/br-table-header-cell.cjs.entry.js +173 -0
  75. package/dist/cjs/br-table-header.cjs.entry.js +37 -0
  76. package/dist/cjs/br-table-row.cjs.entry.js +81 -0
  77. package/dist/cjs/br-table.cjs.entry.js +680 -0
  78. package/dist/cjs/br-tag.cjs.entry.js +493 -0
  79. package/dist/cjs/br-textarea.cjs.entry.js +306 -0
  80. package/dist/cjs/br-tooltip.cjs.entry.js +627 -0
  81. package/dist/cjs/br-upload.cjs.entry.js +581 -0
  82. package/dist/cjs/br-wizard-panel.cjs.entry.js +54 -0
  83. package/dist/cjs/br-wizard.cjs.entry.js +708 -0
  84. package/dist/cjs/breakpoint-observer-P8veqXg7.js +144 -0
  85. package/dist/cjs/clamp-Co_hWptd.js +25 -0
  86. package/dist/cjs/cookiebar.utils-CB1gQwZ4.js +18 -0
  87. package/dist/cjs/datetime-picker-constants-B5pWeOn1.js +3827 -0
  88. package/dist/cjs/event-CmVdNHxl.js +56 -0
  89. package/dist/cjs/floating-surface-dismiss-ccdiD0KF.js +63 -0
  90. package/dist/cjs/floating-ui-MBI1osio.js +136 -0
  91. package/dist/cjs/floating-ui.dom-BUSTaaxR.js +1715 -0
  92. package/dist/cjs/focus-DuywwJPR.js +30 -0
  93. package/dist/cjs/getNextElement-R9l3JtM9.js +31 -0
  94. package/dist/cjs/iconify-icon-DfODV9bf.js +2307 -0
  95. package/dist/cjs/id-CjRFMzf6.js +20 -0
  96. package/dist/cjs/index-C92n55ch.js +678 -0
  97. package/dist/cjs/index-CRdcutym.js +3287 -0
  98. package/dist/cjs/index.cjs.js +12 -0
  99. package/dist/cjs/isNil-DO5zWc3l.js +19 -0
  100. package/dist/cjs/isValid-Fu3kaWNn.js +3694 -0
  101. package/dist/cjs/loader.cjs.js +17 -0
  102. package/dist/cjs/native-dialog--Ewqm4w0.js +49 -0
  103. package/dist/cjs/navigation-AbzwcRCU.js +25 -0
  104. package/dist/cjs/parts-D5K3ae2C.js +19 -0
  105. package/dist/cjs/props-CScmBvKd.js +24 -0
  106. package/dist/cjs/raf-batcher-yc87a4dS.js +55 -0
  107. package/dist/cjs/slot-DAllytTj.js +48 -0
  108. package/dist/cjs/swipe-BU8_XE9f.js +345 -0
  109. package/dist/cjs/table-constants-BOPSay0B.js +183 -0
  110. package/dist/cjs/validator-CTCajtT9.js +123 -0
  111. package/dist/cjs/webcomponents.cjs.js +50 -0
  112. package/dist/collection/assets/icon-search.svg +6 -0
  113. package/dist/collection/assets/logo-negative.svg +1 -0
  114. package/dist/collection/assets/logo-positive.svg +1 -0
  115. package/dist/collection/assets/wc.svg +1 -0
  116. package/dist/collection/collection-manifest.json +113 -0
  117. package/dist/collection/components/avatar/avatar.css +1 -0
  118. package/dist/collection/components/avatar/avatar.js +589 -0
  119. package/dist/collection/components/avatar/avatar.types.js +1 -0
  120. package/dist/collection/components/breadcrumb/breadcrumb-item/breadcrumb-item.js +166 -0
  121. package/dist/collection/components/breadcrumb/breadcrumb.css +1 -0
  122. package/dist/collection/components/breadcrumb/breadcrumb.js +619 -0
  123. package/dist/collection/components/breadcrumb/breadcrumb.types.js +1 -0
  124. package/dist/collection/components/breadcrumb/crumb/crumb.js +175 -0
  125. package/dist/collection/components/button/button.css +1 -0
  126. package/dist/collection/components/button/button.js +546 -0
  127. package/dist/collection/components/button/button.types.js +1 -0
  128. package/dist/collection/components/card/card.css +1 -0
  129. package/dist/collection/components/card/card.js +225 -0
  130. package/dist/collection/components/carousel/carousel-page/carousel-page.css +1 -0
  131. package/dist/collection/components/carousel/carousel-page/carousel-page.js +195 -0
  132. package/dist/collection/components/carousel/carousel.css +1 -0
  133. package/dist/collection/components/carousel/carousel.js +1217 -0
  134. package/dist/collection/components/carousel/carousel.types.js +1 -0
  135. package/dist/collection/components/checkbox/checkbox.css +1 -0
  136. package/dist/collection/components/checkbox/checkbox.js +823 -0
  137. package/dist/collection/components/checkbox/checkbox.types.js +1 -0
  138. package/dist/collection/components/checkbox-group/checkbox-group.css +1 -0
  139. package/dist/collection/components/checkbox-group/checkbox-group.js +268 -0
  140. package/dist/collection/components/checkgroup/checkgroup.js +166 -0
  141. package/dist/collection/components/collapse/collapse.css +1 -0
  142. package/dist/collection/components/collapse/collapse.js +642 -0
  143. package/dist/collection/components/collapse/collapse.types.js +1 -0
  144. package/dist/collection/components/cookiebar/cookiebar-cookie/cookiebar-cookie.css +1 -0
  145. package/dist/collection/components/cookiebar/cookiebar-cookie/cookiebar-cookie.js +529 -0
  146. package/dist/collection/components/cookiebar/cookiebar-group/cookiebar-group.css +1 -0
  147. package/dist/collection/components/cookiebar/cookiebar-group/cookiebar-group.js +628 -0
  148. package/dist/collection/components/cookiebar/cookiebar-header/cookiebar-header.css +1 -0
  149. package/dist/collection/components/cookiebar/cookiebar-header/cookiebar-header.js +165 -0
  150. package/dist/collection/components/cookiebar/cookiebar-link/cookiebar-link.css +1 -0
  151. package/dist/collection/components/cookiebar/cookiebar-link/cookiebar-link.js +201 -0
  152. package/dist/collection/components/cookiebar/cookiebar-note/cookiebar-note.css +1 -0
  153. package/dist/collection/components/cookiebar/cookiebar-note/cookiebar-note.js +100 -0
  154. package/dist/collection/components/cookiebar/cookiebar-note-group/cookiebar-note-group.css +1 -0
  155. package/dist/collection/components/cookiebar/cookiebar-note-group/cookiebar-note-group.js +172 -0
  156. package/dist/collection/components/cookiebar/cookiebar.css +1 -0
  157. package/dist/collection/components/cookiebar/cookiebar.js +1419 -0
  158. package/dist/collection/components/cookiebar/cookiebar.types.js +1 -0
  159. package/dist/collection/components/cookiebar/cookiebar.utils.js +14 -0
  160. package/dist/collection/components/datetime-picker/date-picker/date-picker-locale.js +94 -0
  161. package/dist/collection/components/datetime-picker/date-picker/date-picker-props-validation.js +57 -0
  162. package/dist/collection/components/datetime-picker/date-picker/date-picker.css +1 -0
  163. package/dist/collection/components/datetime-picker/date-picker/date-picker.js +913 -0
  164. package/dist/collection/components/datetime-picker/datetime-input/datetime-input-props-validation.js +65 -0
  165. package/dist/collection/components/datetime-picker/datetime-input/datetime-input.css +1 -0
  166. package/dist/collection/components/datetime-picker/datetime-input/datetime-input.js +826 -0
  167. package/dist/collection/components/datetime-picker/datetime-picker-constants.js +36 -0
  168. package/dist/collection/components/datetime-picker/datetime-picker-form-associated.js +112 -0
  169. package/dist/collection/components/datetime-picker/datetime-picker-props-validation.js +202 -0
  170. package/dist/collection/components/datetime-picker/datetime-picker.css +1 -0
  171. package/dist/collection/components/datetime-picker/datetime-picker.js +1924 -0
  172. package/dist/collection/components/datetime-picker/datetime-picker.types.js +1 -0
  173. package/dist/collection/components/datetime-picker/datetime-picker.utils.js +250 -0
  174. package/dist/collection/components/datetime-picker/time-picker/time-picker-constants.js +13 -0
  175. package/dist/collection/components/datetime-picker/time-picker/time-picker.css +1 -0
  176. package/dist/collection/components/datetime-picker/time-picker/time-picker.js +456 -0
  177. package/dist/collection/components/divider/divider.css +1 -0
  178. package/dist/collection/components/divider/divider.js +537 -0
  179. package/dist/collection/components/divider/divider.types.js +1 -0
  180. package/dist/collection/components/dropdown/dropdown.css +1 -0
  181. package/dist/collection/components/dropdown/dropdown.js +939 -0
  182. package/dist/collection/components/dropdown/dropdown.types.js +1 -0
  183. package/dist/collection/components/footer/footer-category/footer-category.css +1 -0
  184. package/dist/collection/components/footer/footer-category/footer-category.js +160 -0
  185. package/dist/collection/components/footer/footer-item/footer-item.css +1 -0
  186. package/dist/collection/components/footer/footer-item/footer-item.js +154 -0
  187. package/dist/collection/components/footer/footer-legal/footer-legal.css +1 -0
  188. package/dist/collection/components/footer/footer-legal/footer-legal.js +75 -0
  189. package/dist/collection/components/footer/footer-logo/footer-logo.css +1 -0
  190. package/dist/collection/components/footer/footer-logo/footer-logo.js +342 -0
  191. package/dist/collection/components/footer/footer-logo/footer-logo.types.js +1 -0
  192. package/dist/collection/components/footer/footer-social/footer-social.css +1 -0
  193. package/dist/collection/components/footer/footer-social/footer-social.js +239 -0
  194. package/dist/collection/components/footer/footer.css +1 -0
  195. package/dist/collection/components/footer/footer.js +245 -0
  196. package/dist/collection/components/footer/footer.types.js +1 -0
  197. package/dist/collection/components/global.types.js +1 -0
  198. package/dist/collection/components/header/header-function/header-function.css +1 -0
  199. package/dist/collection/components/header/header-function/header-function.js +311 -0
  200. package/dist/collection/components/header/header-link/header-link.css +1 -0
  201. package/dist/collection/components/header/header-link/header-link.js +189 -0
  202. package/dist/collection/components/header/header-list/header-list.css +1 -0
  203. package/dist/collection/components/header/header-list/header-list.js +452 -0
  204. package/dist/collection/components/header/header-logo/header-logo.css +1 -0
  205. package/dist/collection/components/header/header-logo/header-logo.js +421 -0
  206. package/dist/collection/components/header/header.css +1 -0
  207. package/dist/collection/components/header/header.js +1131 -0
  208. package/dist/collection/components/header/header.types.js +1 -0
  209. package/dist/collection/components/icon/default-icons-cache.js +233 -0
  210. package/dist/collection/components/icon/icon.css +1 -0
  211. package/dist/collection/components/icon/icon.js +598 -0
  212. package/dist/collection/components/icon/icon.types.js +1 -0
  213. package/dist/collection/components/icon/icon.utils.js +33 -0
  214. package/dist/collection/components/input/input.css +1 -0
  215. package/dist/collection/components/input/input.js +1642 -0
  216. package/dist/collection/components/input/input.types.js +1 -0
  217. package/dist/collection/components/item/item.css +1 -0
  218. package/dist/collection/components/item/item.js +917 -0
  219. package/dist/collection/components/item/item.types.js +1 -0
  220. package/dist/collection/components/link/link.css +1 -0
  221. package/dist/collection/components/link/link.js +699 -0
  222. package/dist/collection/components/list/list.css +1 -0
  223. package/dist/collection/components/list/list.js +728 -0
  224. package/dist/collection/components/loading/loading.css +1 -0
  225. package/dist/collection/components/loading/loading.js +1169 -0
  226. package/dist/collection/components/loading/loading.types.js +1 -0
  227. package/dist/collection/components/magic-button/magic-button.css +1 -0
  228. package/dist/collection/components/magic-button/magic-button.js +238 -0
  229. package/dist/collection/components/menu/menu-group/menu-group.css +1 -0
  230. package/dist/collection/components/menu/menu-group/menu-group.js +77 -0
  231. package/dist/collection/components/menu/menu-header/menu-header.css +1 -0
  232. package/dist/collection/components/menu/menu-header/menu-header.js +161 -0
  233. package/dist/collection/components/menu/menu-info/menu-info.css +1 -0
  234. package/dist/collection/components/menu/menu-info/menu-info.js +94 -0
  235. package/dist/collection/components/menu/menu-item/menu-item.css +1 -0
  236. package/dist/collection/components/menu/menu-item/menu-item.js +306 -0
  237. package/dist/collection/components/menu/menu-item/menu-item.types.js +1 -0
  238. package/dist/collection/components/menu/menu-link/menu-link.css +1 -0
  239. package/dist/collection/components/menu/menu-link/menu-link.js +260 -0
  240. package/dist/collection/components/menu/menu-list/menu-list.css +1 -0
  241. package/dist/collection/components/menu/menu-list/menu-list.js +311 -0
  242. package/dist/collection/components/menu/menu-logo/menu-logo.css +1 -0
  243. package/dist/collection/components/menu/menu-logo/menu-logo.js +230 -0
  244. package/dist/collection/components/menu/menu-social/menu-social.css +1 -0
  245. package/dist/collection/components/menu/menu-social/menu-social.js +263 -0
  246. package/dist/collection/components/menu/menu.css +1 -0
  247. package/dist/collection/components/menu/menu.js +1372 -0
  248. package/dist/collection/components/menu/menu.types.js +1 -0
  249. package/dist/collection/components/menu/menu.utils.js +279 -0
  250. package/dist/collection/components/message/message.css +1 -0
  251. package/dist/collection/components/message/message.js +508 -0
  252. package/dist/collection/components/modal/modal.css +1 -0
  253. package/dist/collection/components/modal/modal.js +842 -0
  254. package/dist/collection/components/modal/modal.types.js +1 -0
  255. package/dist/collection/components/notification/notification-body/notification-body.css +1 -0
  256. package/dist/collection/components/notification/notification-body/notification-body.js +153 -0
  257. package/dist/collection/components/notification/notification-header/notification-header.css +1 -0
  258. package/dist/collection/components/notification/notification-header/notification-header.js +181 -0
  259. package/dist/collection/components/notification/notification-item/notification-item.css +1 -0
  260. package/dist/collection/components/notification/notification-item/notification-item.js +351 -0
  261. package/dist/collection/components/notification/notification-item/notification-item.types.js +1 -0
  262. package/dist/collection/components/notification/notification.css +1 -0
  263. package/dist/collection/components/notification/notification.js +838 -0
  264. package/dist/collection/components/notification/notification.types.js +1 -0
  265. package/dist/collection/components/pagination/pagination.css +1 -0
  266. package/dist/collection/components/pagination/pagination.js +1470 -0
  267. package/dist/collection/components/pagination/pagination.types.js +1 -0
  268. package/dist/collection/components/radio/radio.css +1 -0
  269. package/dist/collection/components/radio/radio.js +847 -0
  270. package/dist/collection/components/radio/radio.types.js +1 -0
  271. package/dist/collection/components/radio-group/radio-group.css +1 -0
  272. package/dist/collection/components/radio-group/radio-group.js +862 -0
  273. package/dist/collection/components/radio-group/radio-group.types.js +1 -0
  274. package/dist/collection/components/scrim/scrim.css +1 -0
  275. package/dist/collection/components/scrim/scrim.js +1825 -0
  276. package/dist/collection/components/scrim/scrim.types.js +1 -0
  277. package/dist/collection/components/scrim/scrim.utils.js +132 -0
  278. package/dist/collection/components/select/select-input/select-input.css +1 -0
  279. package/dist/collection/components/select/select-input/select-input.js +586 -0
  280. package/dist/collection/components/select/select-list/select-list.css +1 -0
  281. package/dist/collection/components/select/select-list/select-list.js +1159 -0
  282. package/dist/collection/components/select/select-option/select-option.css +1 -0
  283. package/dist/collection/components/select/select-option/select-option.js +564 -0
  284. package/dist/collection/components/select/select.constants.js +6 -0
  285. package/dist/collection/components/select/select.css +1 -0
  286. package/dist/collection/components/select/select.js +2692 -0
  287. package/dist/collection/components/select/select.types.js +1 -0
  288. package/dist/collection/components/select/select.utils.js +34 -0
  289. package/dist/collection/components/sign-in/sign-in.css +1 -0
  290. package/dist/collection/components/sign-in/sign-in.js +401 -0
  291. package/dist/collection/components/sign-in/sign-in.types.js +1 -0
  292. package/dist/collection/components/skip-link/skip-link-item/skip-link-item-alias.js +103 -0
  293. package/dist/collection/components/skip-link/skip-link-item/skip-link-item.css +1 -0
  294. package/dist/collection/components/skip-link/skip-link-item/skip-link-item.js +450 -0
  295. package/dist/collection/components/skip-link/skip-link.css +1 -0
  296. package/dist/collection/components/skip-link/skip-link.js +699 -0
  297. package/dist/collection/components/skip-link/skip-link.types.js +1 -0
  298. package/dist/collection/components/slider/slider.css +1 -0
  299. package/dist/collection/components/slider/slider.js +1324 -0
  300. package/dist/collection/components/slider/slider.types.js +1 -0
  301. package/dist/collection/components/step/step-item/step-item.css +1 -0
  302. package/dist/collection/components/step/step-item/step-item.js +604 -0
  303. package/dist/collection/components/step/step-item/step-item.types.js +1 -0
  304. package/dist/collection/components/step/step.css +1 -0
  305. package/dist/collection/components/step/step.js +896 -0
  306. package/dist/collection/components/step/step.types.js +1 -0
  307. package/dist/collection/components/switch/switch.css +1 -0
  308. package/dist/collection/components/switch/switch.js +715 -0
  309. package/dist/collection/components/switch/switch.types.js +1 -0
  310. package/dist/collection/components/tab/tab-item/tab-item.css +1 -0
  311. package/dist/collection/components/tab/tab-item/tab-item.js +425 -0
  312. package/dist/collection/components/tab/tab.css +1 -0
  313. package/dist/collection/components/tab/tab.js +724 -0
  314. package/dist/collection/components/tab/tab.types.js +1 -0
  315. package/dist/collection/components/table/table-body/table-body.css +1 -0
  316. package/dist/collection/components/table/table-body/table-body.js +51 -0
  317. package/dist/collection/components/table/table-cell/table-cell.css +1 -0
  318. package/dist/collection/components/table/table-cell/table-cell.js +373 -0
  319. package/dist/collection/components/table/table-constants.js +171 -0
  320. package/dist/collection/components/table/table-header/table-header.css +1 -0
  321. package/dist/collection/components/table/table-header/table-header.js +51 -0
  322. package/dist/collection/components/table/table-header-cell/table-header-cell.css +1 -0
  323. package/dist/collection/components/table/table-header-cell/table-header-cell.js +402 -0
  324. package/dist/collection/components/table/table-row/table-row.css +1 -0
  325. package/dist/collection/components/table/table-row/table-row.js +261 -0
  326. package/dist/collection/components/table/table-tokens.js +50 -0
  327. package/dist/collection/components/table/table-types.js +1 -0
  328. package/dist/collection/components/table/table-utils.js +44 -0
  329. package/dist/collection/components/table/table.css +1 -0
  330. package/dist/collection/components/table/table.js +1030 -0
  331. package/dist/collection/components/tag/tag.css +1 -0
  332. package/dist/collection/components/tag/tag.js +1152 -0
  333. package/dist/collection/components/tag/tag.types.js +1 -0
  334. package/dist/collection/components/textarea/textarea.css +1 -0
  335. package/dist/collection/components/textarea/textarea.js +985 -0
  336. package/dist/collection/components/textarea/textarea.types.js +1 -0
  337. package/dist/collection/components/tooltip/tooltip.css +1 -0
  338. package/dist/collection/components/tooltip/tooltip.js +1024 -0
  339. package/dist/collection/components/tooltip/tooltip.types.js +1 -0
  340. package/dist/collection/components/upload/upload.css +1 -0
  341. package/dist/collection/components/upload/upload.js +1314 -0
  342. package/dist/collection/components/upload/upload.types.js +1 -0
  343. package/dist/collection/components/wizard/wizard-panel/wizard-panel.css +1 -0
  344. package/dist/collection/components/wizard/wizard-panel/wizard-panel.js +167 -0
  345. package/dist/collection/components/wizard/wizard.css +1 -0
  346. package/dist/collection/components/wizard/wizard.js +1228 -0
  347. package/dist/collection/index.js +14 -0
  348. package/dist/collection/pages/components/cookiebar/index.js +26 -0
  349. package/dist/collection/pages/components/link/index.js +29 -0
  350. package/dist/collection/pages/components/pagination/index.js +12 -0
  351. package/dist/collection/pages/components/slider/index.js +18 -0
  352. package/dist/collection/pages/scripts/code-editor.js +101 -0
  353. package/dist/collection/pages/scripts/component-controls.js +600 -0
  354. package/dist/collection/pages/scripts/dev-event-console.js +47 -0
  355. package/dist/collection/pages/scripts/menu.js +192 -0
  356. package/dist/collection/pages/scripts/pageLoader.js +1422 -0
  357. package/dist/collection/shared/utils/assetsPath.js +75 -0
  358. package/dist/collection/shared/utils/breakpoint-observer.js +139 -0
  359. package/dist/collection/shared/utils/clamp.js +21 -0
  360. package/dist/collection/shared/utils/css-variables.js +12 -0
  361. package/dist/collection/shared/utils/cssVariables.js +37 -0
  362. package/dist/collection/shared/utils/date.js +405 -0
  363. package/dist/collection/shared/utils/debounce.js +39 -0
  364. package/dist/collection/shared/utils/event.js +55 -0
  365. package/dist/collection/shared/utils/floating-surface-dismiss.js +59 -0
  366. package/dist/collection/shared/utils/floating-ui.js +131 -0
  367. package/dist/collection/shared/utils/focus.js +24 -0
  368. package/dist/collection/shared/utils/form.js +82 -0
  369. package/dist/collection/shared/utils/format-bytes.js +20 -0
  370. package/dist/collection/shared/utils/getNextElement.js +30 -0
  371. package/dist/collection/shared/utils/getRandom.js +27 -0
  372. package/dist/collection/shared/utils/helpers.js +31 -0
  373. package/dist/collection/shared/utils/id.js +16 -0
  374. package/dist/collection/shared/utils/index.js +60 -0
  375. package/dist/collection/shared/utils/interfaces.js +1 -0
  376. package/dist/collection/shared/utils/isClient.js +14 -0
  377. package/dist/collection/shared/utils/isDefined.js +19 -0
  378. package/dist/collection/shared/utils/isEmpty.js +30 -0
  379. package/dist/collection/shared/utils/isHTMLElement.js +16 -0
  380. package/dist/collection/shared/utils/isNil.js +15 -0
  381. package/dist/collection/shared/utils/isString.js +20 -0
  382. package/dist/collection/shared/utils/native-dialog.js +44 -0
  383. package/dist/collection/shared/utils/navigation.js +21 -0
  384. package/dist/collection/shared/utils/parts.js +15 -0
  385. package/dist/collection/shared/utils/prop-warning.js +7 -0
  386. package/dist/collection/shared/utils/props.js +37 -0
  387. package/dist/collection/shared/utils/raf-batcher.js +51 -0
  388. package/dist/collection/shared/utils/scrollLock.js +141 -0
  389. package/dist/collection/shared/utils/setRafTimeout.js +38 -0
  390. package/dist/collection/shared/utils/slot.js +113 -0
  391. package/dist/collection/shared/utils/ssr-date.js +33 -0
  392. package/dist/collection/shared/utils/stringToArray.js +29 -0
  393. package/dist/collection/shared/utils/swipe.js +342 -0
  394. package/dist/collection/shared/utils/transition.js +127 -0
  395. package/dist/collection/shared/utils/types.js +1 -0
  396. package/dist/collection/shared/utils/validator.js +51 -0
  397. package/dist/collection/value-accessors/angular-value-accessor-config.js +41 -0
  398. package/dist/collection/value-accessors/index.js +6 -0
  399. package/dist/collection/value-accessors/vue-model-config.js +43 -0
  400. package/dist/components/br-avatar.d.ts +11 -0
  401. package/dist/components/br-avatar.js +5 -0
  402. package/dist/components/br-breadcrumb-item.d.ts +11 -0
  403. package/dist/components/br-breadcrumb-item.js +5 -0
  404. package/dist/components/br-breadcrumb.d.ts +11 -0
  405. package/dist/components/br-breadcrumb.js +5 -0
  406. package/dist/components/br-button.d.ts +11 -0
  407. package/dist/components/br-button.js +5 -0
  408. package/dist/components/br-card.d.ts +11 -0
  409. package/dist/components/br-card.js +5 -0
  410. package/dist/components/br-carousel-page.d.ts +11 -0
  411. package/dist/components/br-carousel-page.js +5 -0
  412. package/dist/components/br-carousel.d.ts +11 -0
  413. package/dist/components/br-carousel.js +5 -0
  414. package/dist/components/br-checkbox-group.d.ts +11 -0
  415. package/dist/components/br-checkbox-group.js +5 -0
  416. package/dist/components/br-checkbox.d.ts +11 -0
  417. package/dist/components/br-checkbox.js +5 -0
  418. package/dist/components/br-checkgroup.d.ts +11 -0
  419. package/dist/components/br-checkgroup.js +5 -0
  420. package/dist/components/br-collapse.d.ts +11 -0
  421. package/dist/components/br-collapse.js +5 -0
  422. package/dist/components/br-cookiebar-cookie.d.ts +11 -0
  423. package/dist/components/br-cookiebar-cookie.js +5 -0
  424. package/dist/components/br-cookiebar-group.d.ts +11 -0
  425. package/dist/components/br-cookiebar-group.js +5 -0
  426. package/dist/components/br-cookiebar-header.d.ts +11 -0
  427. package/dist/components/br-cookiebar-header.js +5 -0
  428. package/dist/components/br-cookiebar-link.d.ts +11 -0
  429. package/dist/components/br-cookiebar-link.js +5 -0
  430. package/dist/components/br-cookiebar-note-group.d.ts +11 -0
  431. package/dist/components/br-cookiebar-note-group.js +5 -0
  432. package/dist/components/br-cookiebar-note.d.ts +11 -0
  433. package/dist/components/br-cookiebar-note.js +5 -0
  434. package/dist/components/br-cookiebar.d.ts +11 -0
  435. package/dist/components/br-cookiebar.js +5 -0
  436. package/dist/components/br-crumb.d.ts +11 -0
  437. package/dist/components/br-crumb.js +5 -0
  438. package/dist/components/br-date-picker.d.ts +11 -0
  439. package/dist/components/br-date-picker.js +5 -0
  440. package/dist/components/br-datetime-input.d.ts +11 -0
  441. package/dist/components/br-datetime-input.js +5 -0
  442. package/dist/components/br-datetime-picker.d.ts +11 -0
  443. package/dist/components/br-datetime-picker.js +5 -0
  444. package/dist/components/br-divider.d.ts +11 -0
  445. package/dist/components/br-divider.js +5 -0
  446. package/dist/components/br-dropdown.d.ts +11 -0
  447. package/dist/components/br-dropdown.js +5 -0
  448. package/dist/components/br-footer-category.d.ts +11 -0
  449. package/dist/components/br-footer-category.js +5 -0
  450. package/dist/components/br-footer-item.d.ts +11 -0
  451. package/dist/components/br-footer-item.js +5 -0
  452. package/dist/components/br-footer-legal.d.ts +11 -0
  453. package/dist/components/br-footer-legal.js +5 -0
  454. package/dist/components/br-footer-logo.d.ts +11 -0
  455. package/dist/components/br-footer-logo.js +5 -0
  456. package/dist/components/br-footer-social.d.ts +11 -0
  457. package/dist/components/br-footer-social.js +5 -0
  458. package/dist/components/br-footer.d.ts +11 -0
  459. package/dist/components/br-footer.js +5 -0
  460. package/dist/components/br-header-function.d.ts +11 -0
  461. package/dist/components/br-header-function.js +5 -0
  462. package/dist/components/br-header-link.d.ts +11 -0
  463. package/dist/components/br-header-link.js +5 -0
  464. package/dist/components/br-header-list.d.ts +11 -0
  465. package/dist/components/br-header-list.js +5 -0
  466. package/dist/components/br-header-logo.d.ts +11 -0
  467. package/dist/components/br-header-logo.js +5 -0
  468. package/dist/components/br-header.d.ts +11 -0
  469. package/dist/components/br-header.js +5 -0
  470. package/dist/components/br-icon.d.ts +11 -0
  471. package/dist/components/br-icon.js +5 -0
  472. package/dist/components/br-input.d.ts +11 -0
  473. package/dist/components/br-input.js +5 -0
  474. package/dist/components/br-item.d.ts +11 -0
  475. package/dist/components/br-item.js +5 -0
  476. package/dist/components/br-link.d.ts +11 -0
  477. package/dist/components/br-link.js +5 -0
  478. package/dist/components/br-list.d.ts +11 -0
  479. package/dist/components/br-list.js +5 -0
  480. package/dist/components/br-loading.d.ts +11 -0
  481. package/dist/components/br-loading.js +5 -0
  482. package/dist/components/br-magic-button.d.ts +11 -0
  483. package/dist/components/br-magic-button.js +5 -0
  484. package/dist/components/br-menu-group.d.ts +11 -0
  485. package/dist/components/br-menu-group.js +5 -0
  486. package/dist/components/br-menu-header.d.ts +11 -0
  487. package/dist/components/br-menu-header.js +5 -0
  488. package/dist/components/br-menu-info.d.ts +11 -0
  489. package/dist/components/br-menu-info.js +5 -0
  490. package/dist/components/br-menu-item.d.ts +11 -0
  491. package/dist/components/br-menu-item.js +5 -0
  492. package/dist/components/br-menu-link.d.ts +11 -0
  493. package/dist/components/br-menu-link.js +5 -0
  494. package/dist/components/br-menu-list.d.ts +11 -0
  495. package/dist/components/br-menu-list.js +5 -0
  496. package/dist/components/br-menu-logo.d.ts +11 -0
  497. package/dist/components/br-menu-logo.js +5 -0
  498. package/dist/components/br-menu-social.d.ts +11 -0
  499. package/dist/components/br-menu-social.js +5 -0
  500. package/dist/components/br-menu.d.ts +11 -0
  501. package/dist/components/br-menu.js +5 -0
  502. package/dist/components/br-message.d.ts +11 -0
  503. package/dist/components/br-message.js +5 -0
  504. package/dist/components/br-modal.d.ts +11 -0
  505. package/dist/components/br-modal.js +5 -0
  506. package/dist/components/br-notification-body.d.ts +11 -0
  507. package/dist/components/br-notification-body.js +5 -0
  508. package/dist/components/br-notification-header.d.ts +11 -0
  509. package/dist/components/br-notification-header.js +5 -0
  510. package/dist/components/br-notification-item.d.ts +11 -0
  511. package/dist/components/br-notification-item.js +5 -0
  512. package/dist/components/br-notification.d.ts +11 -0
  513. package/dist/components/br-notification.js +5 -0
  514. package/dist/components/br-pagination.d.ts +11 -0
  515. package/dist/components/br-pagination.js +5 -0
  516. package/dist/components/br-radio-group.d.ts +11 -0
  517. package/dist/components/br-radio-group.js +5 -0
  518. package/dist/components/br-radio.d.ts +11 -0
  519. package/dist/components/br-radio.js +5 -0
  520. package/dist/components/br-scrim.d.ts +11 -0
  521. package/dist/components/br-scrim.js +5 -0
  522. package/dist/components/br-select-input.d.ts +11 -0
  523. package/dist/components/br-select-input.js +5 -0
  524. package/dist/components/br-select-list.d.ts +11 -0
  525. package/dist/components/br-select-list.js +5 -0
  526. package/dist/components/br-select-option.d.ts +11 -0
  527. package/dist/components/br-select-option.js +5 -0
  528. package/dist/components/br-select.d.ts +11 -0
  529. package/dist/components/br-select.js +5 -0
  530. package/dist/components/br-sign-in.d.ts +11 -0
  531. package/dist/components/br-sign-in.js +5 -0
  532. package/dist/components/br-skip-link-item.d.ts +11 -0
  533. package/dist/components/br-skip-link-item.js +5 -0
  534. package/dist/components/br-skip-link.d.ts +11 -0
  535. package/dist/components/br-skip-link.js +5 -0
  536. package/dist/components/br-skiplink-item.d.ts +11 -0
  537. package/dist/components/br-skiplink-item.js +5 -0
  538. package/dist/components/br-slider.d.ts +11 -0
  539. package/dist/components/br-slider.js +5 -0
  540. package/dist/components/br-step-item.d.ts +11 -0
  541. package/dist/components/br-step-item.js +5 -0
  542. package/dist/components/br-step.d.ts +11 -0
  543. package/dist/components/br-step.js +5 -0
  544. package/dist/components/br-switch.d.ts +11 -0
  545. package/dist/components/br-switch.js +5 -0
  546. package/dist/components/br-tab-item.d.ts +11 -0
  547. package/dist/components/br-tab-item.js +5 -0
  548. package/dist/components/br-tab.d.ts +11 -0
  549. package/dist/components/br-tab.js +5 -0
  550. package/dist/components/br-table-body.d.ts +11 -0
  551. package/dist/components/br-table-body.js +5 -0
  552. package/dist/components/br-table-cell.d.ts +11 -0
  553. package/dist/components/br-table-cell.js +5 -0
  554. package/dist/components/br-table-header-cell.d.ts +11 -0
  555. package/dist/components/br-table-header-cell.js +5 -0
  556. package/dist/components/br-table-header.d.ts +11 -0
  557. package/dist/components/br-table-header.js +5 -0
  558. package/dist/components/br-table-row.d.ts +11 -0
  559. package/dist/components/br-table-row.js +5 -0
  560. package/dist/components/br-table.d.ts +11 -0
  561. package/dist/components/br-table.js +5 -0
  562. package/dist/components/br-tag.d.ts +11 -0
  563. package/dist/components/br-tag.js +5 -0
  564. package/dist/components/br-textarea.d.ts +11 -0
  565. package/dist/components/br-textarea.js +5 -0
  566. package/dist/components/br-time-picker.d.ts +11 -0
  567. package/dist/components/br-time-picker.js +5 -0
  568. package/dist/components/br-tooltip.d.ts +11 -0
  569. package/dist/components/br-tooltip.js +5 -0
  570. package/dist/components/br-upload.d.ts +11 -0
  571. package/dist/components/br-upload.js +5 -0
  572. package/dist/components/br-wizard-panel.d.ts +11 -0
  573. package/dist/components/br-wizard-panel.js +5 -0
  574. package/dist/components/br-wizard.d.ts +11 -0
  575. package/dist/components/br-wizard.js +5 -0
  576. package/dist/components/index.d.ts +213 -0
  577. package/dist/components/index.js +5 -0
  578. package/dist/components/p-34Jfn-U-.js +5 -0
  579. package/dist/components/p-5z6jgH1D.js +5 -0
  580. package/dist/components/p-6OdfnwnK.js +5 -0
  581. package/dist/components/p-9S9bgUT0.js +5 -0
  582. package/dist/components/p-B-qLmYZC.js +5 -0
  583. package/dist/components/p-B55qsau4.js +5 -0
  584. package/dist/components/p-B7Amgxkp.js +5 -0
  585. package/dist/components/p-BC7f6MK8.js +5 -0
  586. package/dist/components/p-BKuMQJrQ.js +5 -0
  587. package/dist/components/p-BPJpHGOW.js +5 -0
  588. package/dist/components/p-BWXfdbQH.js +5 -0
  589. package/dist/components/p-Bb-nLtTG.js +5 -0
  590. package/dist/components/p-BeE7R9nu.js +5 -0
  591. package/dist/components/p-BkS6ujyf.js +5 -0
  592. package/dist/components/p-Bo0QYHJO.js +5 -0
  593. package/dist/components/p-C1yRmdso.js +5 -0
  594. package/dist/components/p-C2i2c_io.js +5 -0
  595. package/dist/components/p-C7v0lVlX.js +5 -0
  596. package/dist/components/p-CMBsvswx.js +5 -0
  597. package/dist/components/p-CRrimdz6.js +5 -0
  598. package/dist/components/p-CWORw84-.js +5 -0
  599. package/dist/components/p-CXMwM9m4.js +5 -0
  600. package/dist/components/p-CdDwqbBv.js +5 -0
  601. package/dist/components/p-CvUMXJCl.js +5 -0
  602. package/dist/components/p-D3usVJE2.js +16 -0
  603. package/dist/components/p-D6zroLx5.js +5 -0
  604. package/dist/components/p-DA5GS53D.js +5 -0
  605. package/dist/components/p-DBP6K_aq.js +5 -0
  606. package/dist/components/p-DBmwzG9E.js +5 -0
  607. package/dist/components/p-DCrVo-8T.js +5 -0
  608. package/dist/components/p-DFUKDNck.js +5 -0
  609. package/dist/components/p-DHicj0By.js +5 -0
  610. package/dist/components/p-DIK54tTj.js +5 -0
  611. package/dist/components/p-DQRSHR-D.js +5 -0
  612. package/dist/components/p-DRVMm1Py.js +5 -0
  613. package/dist/components/p-DWPmUV72.js +5 -0
  614. package/dist/components/p-DXjQyH6s.js +5 -0
  615. package/dist/components/p-DYA74R1r.js +5 -0
  616. package/dist/components/p-DmCxdB9P.js +5 -0
  617. package/dist/components/p-Dmfk7eEe.js +5 -0
  618. package/dist/components/p-Dp0xy_3n.js +5 -0
  619. package/dist/components/p-DxZJrIyL.js +5 -0
  620. package/dist/components/p-JAkkThgf.js +5 -0
  621. package/dist/components/p-Ud-WB0hx.js +5 -0
  622. package/dist/components/p-bhULC15U.js +5 -0
  623. package/dist/components/p-cF3ia5e9.js +5 -0
  624. package/dist/components/p-fpMNttbg.js +5 -0
  625. package/dist/components/p-gvnfuTjd.js +5 -0
  626. package/dist/components/p-qYONSNcf.js +5 -0
  627. package/dist/components/p-qhhHGJY1.js +5 -0
  628. package/dist/components/p-ttI0nvv_.js +5 -0
  629. package/dist/components/p-ukNmfGNP.js +5 -0
  630. package/dist/components/p-xa8e1kSW.js +5 -0
  631. package/dist/esm/app-globals-DVjNHTTs.js +7 -0
  632. package/dist/esm/br-avatar.entry.js +246 -0
  633. package/dist/esm/br-breadcrumb-item.entry.js +43 -0
  634. package/dist/esm/br-breadcrumb.entry.js +441 -0
  635. package/dist/esm/br-button_2.entry.js +277 -0
  636. package/dist/esm/br-card.entry.js +109 -0
  637. package/dist/esm/br-carousel-page.entry.js +78 -0
  638. package/dist/esm/br-carousel.entry.js +563 -0
  639. package/dist/esm/br-checkbox-group.entry.js +116 -0
  640. package/dist/esm/br-checkbox.entry.js +286 -0
  641. package/dist/esm/br-checkgroup.entry.js +18 -0
  642. package/dist/esm/br-collapse_2.entry.js +680 -0
  643. package/dist/esm/br-cookiebar-cookie.entry.js +81 -0
  644. package/dist/esm/br-cookiebar-group.entry.js +307 -0
  645. package/dist/esm/br-cookiebar-header.entry.js +37 -0
  646. package/dist/esm/br-cookiebar-link.entry.js +53 -0
  647. package/dist/esm/br-cookiebar-note-group.entry.js +68 -0
  648. package/dist/esm/br-cookiebar-note.entry.js +23 -0
  649. package/dist/esm/br-cookiebar.entry.js +756 -0
  650. package/dist/esm/br-crumb.entry.js +49 -0
  651. package/dist/esm/br-date-picker_3.entry.js +2443 -0
  652. package/dist/esm/br-datetime-picker.entry.js +1884 -0
  653. package/dist/esm/br-divider.entry.js +223 -0
  654. package/dist/esm/br-dropdown_2.entry.js +1997 -0
  655. package/dist/esm/br-footer-category.entry.js +100 -0
  656. package/dist/esm/br-footer-item.entry.js +50 -0
  657. package/dist/esm/br-footer-legal.entry.js +39 -0
  658. package/dist/esm/br-footer-logo.entry.js +102 -0
  659. package/dist/esm/br-footer-social.entry.js +69 -0
  660. package/dist/esm/br-footer.entry.js +90 -0
  661. package/dist/esm/br-header-function.entry.js +140 -0
  662. package/dist/esm/br-header-link.entry.js +58 -0
  663. package/dist/esm/br-header-list.entry.js +277 -0
  664. package/dist/esm/br-header-logo.entry.js +176 -0
  665. package/dist/esm/br-header.entry.js +640 -0
  666. package/dist/esm/br-icon.entry.js +483 -0
  667. package/dist/esm/br-input.entry.js +597 -0
  668. package/dist/esm/br-item.entry.js +365 -0
  669. package/dist/esm/br-link.entry.js +131 -0
  670. package/dist/esm/br-loading.entry.js +503 -0
  671. package/dist/esm/br-magic-button.entry.js +91 -0
  672. package/dist/esm/br-menu-group.entry.js +21 -0
  673. package/dist/esm/br-menu-header.entry.js +45 -0
  674. package/dist/esm/br-menu-info.entry.js +36 -0
  675. package/dist/esm/br-menu-item.entry.js +77 -0
  676. package/dist/esm/br-menu-link.entry.js +54 -0
  677. package/dist/esm/br-menu-list.entry.js +147 -0
  678. package/dist/esm/br-menu-logo.entry.js +73 -0
  679. package/dist/esm/br-menu-social.entry.js +63 -0
  680. package/dist/esm/br-menu.entry.js +991 -0
  681. package/dist/esm/br-modal.entry.js +494 -0
  682. package/dist/esm/br-notification-body.entry.js +69 -0
  683. package/dist/esm/br-notification-header.entry.js +46 -0
  684. package/dist/esm/br-notification-item.entry.js +108 -0
  685. package/dist/esm/br-notification.entry.js +332 -0
  686. package/dist/esm/br-pagination.entry.js +882 -0
  687. package/dist/esm/br-radio-group.entry.js +426 -0
  688. package/dist/esm/br-radio.entry.js +355 -0
  689. package/dist/esm/br-scrim.entry.js +1334 -0
  690. package/dist/esm/br-select-input_3.entry.js +984 -0
  691. package/dist/esm/br-sign-in.entry.js +124 -0
  692. package/dist/esm/br-skip-link-item.entry.js +18 -0
  693. package/dist/esm/br-skip-link.entry.js +360 -0
  694. package/dist/esm/br-skiplink-item.entry.js +190 -0
  695. package/dist/esm/br-slider.entry.js +685 -0
  696. package/dist/esm/br-step_2.entry.js +625 -0
  697. package/dist/esm/br-switch.entry.js +243 -0
  698. package/dist/esm/br-tab-item.entry.js +183 -0
  699. package/dist/esm/br-tab.entry.js +395 -0
  700. package/dist/esm/br-table-body.entry.js +35 -0
  701. package/dist/esm/br-table-cell.entry.js +182 -0
  702. package/dist/esm/br-table-header-cell.entry.js +171 -0
  703. package/dist/esm/br-table-header.entry.js +35 -0
  704. package/dist/esm/br-table-row.entry.js +79 -0
  705. package/dist/esm/br-table.entry.js +678 -0
  706. package/dist/esm/br-tag.entry.js +491 -0
  707. package/dist/esm/br-textarea.entry.js +304 -0
  708. package/dist/esm/br-tooltip.entry.js +625 -0
  709. package/dist/esm/br-upload.entry.js +579 -0
  710. package/dist/esm/br-wizard-panel.entry.js +52 -0
  711. package/dist/esm/br-wizard.entry.js +706 -0
  712. package/dist/esm/breakpoint-observer-DBmwzG9E.js +141 -0
  713. package/dist/esm/clamp-gvnfuTjd.js +23 -0
  714. package/dist/esm/cookiebar.utils-DYA74R1r.js +16 -0
  715. package/dist/esm/datetime-picker-constants-Bfm58jO6.js +3798 -0
  716. package/dist/esm/event-DFN_so7I.js +48 -0
  717. package/dist/esm/floating-surface-dismiss-BWXfdbQH.js +61 -0
  718. package/dist/esm/floating-ui-BavFwMnx.js +134 -0
  719. package/dist/esm/floating-ui.dom-DIK54tTj.js +1707 -0
  720. package/dist/esm/focus-DxZJrIyL.js +26 -0
  721. package/dist/esm/getNextElement-9S9bgUT0.js +28 -0
  722. package/dist/esm/iconify-icon-D3usVJE2.js +2303 -0
  723. package/dist/esm/id-BkS6ujyf.js +18 -0
  724. package/dist/esm/index-Bo-2igoO.js +671 -0
  725. package/dist/esm/index-C2RBydfd.js +3258 -0
  726. package/dist/esm/index.js +6 -0
  727. package/dist/esm/isNil-B-qLmYZC.js +17 -0
  728. package/dist/esm/isValid-DIUZX1qS.js +3684 -0
  729. package/dist/esm/loader.js +15 -0
  730. package/dist/esm/native-dialog-B55qsau4.js +46 -0
  731. package/dist/esm/navigation-bhULC15U.js +23 -0
  732. package/dist/esm/parts-Bb5vVlCC.js +17 -0
  733. package/dist/esm/props-DRVMm1Py.js +22 -0
  734. package/dist/esm/raf-batcher-cF3ia5e9.js +53 -0
  735. package/dist/esm/slot-BIG-yees.js +44 -0
  736. package/dist/esm/swipe-Dmfk7eEe.js +343 -0
  737. package/dist/esm/table-constants-CXMwM9m4.js +170 -0
  738. package/dist/esm/validator-D3tVP32U.js +113 -0
  739. package/dist/esm/webcomponents.js +46 -0
  740. package/dist/hydrate/index.d.ts +287 -0
  741. package/dist/hydrate/index.js +67516 -0
  742. package/dist/hydrate/index.mjs +67506 -0
  743. package/dist/hydrate/package.json +12 -0
  744. package/dist/index.cjs.js +1 -0
  745. package/dist/index.js +1 -0
  746. package/dist/loader/cdn.js +5 -0
  747. package/dist/loader/index.cjs.js +5 -0
  748. package/dist/loader/index.d.ts +24 -0
  749. package/dist/loader/index.es2017.js +5 -0
  750. package/dist/loader/index.js +6 -0
  751. package/dist/types/components/item/item.d.ts +1 -0
  752. package/dist/types/components/select/select-list/select-list.d.ts +1 -0
  753. package/dist/types/components/select/select-option/select-option.d.ts +1 -0
  754. package/dist/types/components/select/select.d.ts +14 -0
  755. package/dist/types/components/select/select.types.d.ts +2 -0
  756. package/dist/types/components/select/select.utils.d.ts +13 -0
  757. package/dist/webcomponents/index.esm.js +5 -0
  758. package/dist/webcomponents/p-0196804a.entry.js +5 -0
  759. package/dist/webcomponents/p-0410186a.entry.js +5 -0
  760. package/dist/webcomponents/p-0415ef22.entry.js +5 -0
  761. package/dist/webcomponents/p-0777c7b1.entry.js +5 -0
  762. package/dist/webcomponents/p-0caa4d12.entry.js +5 -0
  763. package/dist/webcomponents/p-0d4f718d.entry.js +5 -0
  764. package/dist/webcomponents/p-0e84c9e8.entry.js +5 -0
  765. package/dist/webcomponents/p-12286e73.entry.js +5 -0
  766. package/dist/webcomponents/p-147ac8d3.entry.js +5 -0
  767. package/dist/webcomponents/p-1580beee.entry.js +5 -0
  768. package/dist/webcomponents/p-18ee6175.entry.js +5 -0
  769. package/dist/webcomponents/p-1bca4499.entry.js +5 -0
  770. package/dist/webcomponents/p-1c303a4e.entry.js +5 -0
  771. package/dist/webcomponents/p-1d6b0b6f.entry.js +5 -0
  772. package/dist/webcomponents/p-1d8cb8fd.entry.js +5 -0
  773. package/dist/webcomponents/p-224daaac.entry.js +5 -0
  774. package/dist/webcomponents/p-28426d2a.entry.js +5 -0
  775. package/dist/webcomponents/p-2abd2da0.entry.js +5 -0
  776. package/dist/webcomponents/p-2fdc51ae.entry.js +5 -0
  777. package/dist/webcomponents/p-30c428b6.entry.js +5 -0
  778. package/dist/webcomponents/p-36bbea4e.entry.js +5 -0
  779. package/dist/webcomponents/p-3907ebfa.entry.js +5 -0
  780. package/dist/webcomponents/p-39a16f9d.entry.js +5 -0
  781. package/dist/webcomponents/p-3ebbd2f5.entry.js +5 -0
  782. package/dist/webcomponents/p-3ef7eac8.entry.js +5 -0
  783. package/dist/webcomponents/p-45356e9a.entry.js +5 -0
  784. package/dist/webcomponents/p-46513db4.entry.js +5 -0
  785. package/dist/webcomponents/p-4c13221a.entry.js +5 -0
  786. package/dist/webcomponents/p-51ce2c31.entry.js +5 -0
  787. package/dist/webcomponents/p-52df61cb.entry.js +5 -0
  788. package/dist/webcomponents/p-569134cf.entry.js +5 -0
  789. package/dist/webcomponents/p-5ce7db4a.entry.js +5 -0
  790. package/dist/webcomponents/p-5f373708.entry.js +5 -0
  791. package/dist/webcomponents/p-5f6afb79.entry.js +5 -0
  792. package/dist/webcomponents/p-5fc7ba4c.entry.js +5 -0
  793. package/dist/webcomponents/p-66006312.entry.js +5 -0
  794. package/dist/webcomponents/p-66b13fd9.entry.js +5 -0
  795. package/dist/webcomponents/p-6OdfnwnK.js +5 -0
  796. package/dist/webcomponents/p-750799b7.entry.js +5 -0
  797. package/dist/webcomponents/p-756ff2ad.entry.js +5 -0
  798. package/dist/webcomponents/p-765bfe27.entry.js +5 -0
  799. package/dist/webcomponents/p-7ab96c11.entry.js +5 -0
  800. package/dist/webcomponents/p-7c2ff8b4.entry.js +5 -0
  801. package/dist/webcomponents/p-7f7506f0.entry.js +5 -0
  802. package/dist/webcomponents/p-7fb03a49.entry.js +5 -0
  803. package/dist/webcomponents/p-82200563.entry.js +5 -0
  804. package/dist/webcomponents/p-83ff4579.entry.js +5 -0
  805. package/dist/webcomponents/p-85f8063b.entry.js +5 -0
  806. package/dist/webcomponents/p-8b558233.entry.js +5 -0
  807. package/dist/webcomponents/p-8e6c2767.entry.js +5 -0
  808. package/dist/webcomponents/p-8e819355.entry.js +5 -0
  809. package/dist/webcomponents/p-92a9b9c4.entry.js +5 -0
  810. package/dist/webcomponents/p-966ad32f.entry.js +5 -0
  811. package/dist/webcomponents/p-9679d230.entry.js +5 -0
  812. package/dist/webcomponents/p-96dd663b.entry.js +5 -0
  813. package/dist/webcomponents/p-98843fa3.entry.js +5 -0
  814. package/dist/webcomponents/p-9S9bgUT0.js +5 -0
  815. package/dist/webcomponents/p-9a375eff.entry.js +5 -0
  816. package/dist/webcomponents/p-9b358cff.entry.js +5 -0
  817. package/dist/webcomponents/p-9f7558c7.entry.js +5 -0
  818. package/dist/webcomponents/p-B-qLmYZC.js +5 -0
  819. package/dist/webcomponents/p-B55qsau4.js +5 -0
  820. package/dist/webcomponents/p-BIG-yees.js +5 -0
  821. package/dist/webcomponents/p-BWXfdbQH.js +5 -0
  822. package/dist/webcomponents/p-Bb5vVlCC.js +5 -0
  823. package/dist/webcomponents/p-Bfm58jO6.js +5 -0
  824. package/dist/webcomponents/p-BhMVJQ4-.js +5 -0
  825. package/dist/webcomponents/p-BkS6ujyf.js +5 -0
  826. package/dist/webcomponents/p-C2RBydfd.js +6 -0
  827. package/dist/webcomponents/p-CO5cOQQU.js +5 -0
  828. package/dist/webcomponents/p-CXMwM9m4.js +5 -0
  829. package/dist/webcomponents/p-D3tVP32U.js +5 -0
  830. package/dist/webcomponents/p-D3usVJE2.js +16 -0
  831. package/dist/webcomponents/p-DBmwzG9E.js +5 -0
  832. package/dist/webcomponents/p-DFN_so7I.js +5 -0
  833. package/dist/webcomponents/p-DIK54tTj.js +5 -0
  834. package/dist/webcomponents/p-DRVMm1Py.js +5 -0
  835. package/dist/webcomponents/p-DVjNHTTs.js +5 -0
  836. package/dist/webcomponents/p-DYA74R1r.js +5 -0
  837. package/dist/webcomponents/p-Dmfk7eEe.js +5 -0
  838. package/dist/webcomponents/p-DxZJrIyL.js +5 -0
  839. package/dist/webcomponents/p-a382e115.entry.js +5 -0
  840. package/dist/webcomponents/p-a4ae72e3.entry.js +5 -0
  841. package/dist/webcomponents/p-a994c190.entry.js +5 -0
  842. package/dist/webcomponents/p-a9ff7c25.entry.js +5 -0
  843. package/dist/webcomponents/p-bhULC15U.js +5 -0
  844. package/dist/webcomponents/p-c0b0f531.entry.js +5 -0
  845. package/dist/webcomponents/p-c211af17.entry.js +5 -0
  846. package/dist/webcomponents/p-c492d926.entry.js +5 -0
  847. package/dist/webcomponents/p-c4cfe599.entry.js +5 -0
  848. package/dist/webcomponents/p-c846e784.entry.js +5 -0
  849. package/dist/webcomponents/p-c949d993.entry.js +5 -0
  850. package/dist/webcomponents/p-cF3ia5e9.js +5 -0
  851. package/dist/webcomponents/p-d1e899cd.entry.js +5 -0
  852. package/dist/webcomponents/p-d38d82cc.entry.js +5 -0
  853. package/dist/webcomponents/p-e0ce536a.entry.js +5 -0
  854. package/dist/webcomponents/p-e1331288.entry.js +5 -0
  855. package/dist/webcomponents/p-e360a463.entry.js +5 -0
  856. package/dist/webcomponents/p-f078f972.entry.js +5 -0
  857. package/dist/webcomponents/p-f26038e2.entry.js +5 -0
  858. package/dist/webcomponents/p-f303f6b3.entry.js +5 -0
  859. package/dist/webcomponents/p-f6318e94.entry.js +5 -0
  860. package/dist/webcomponents/p-f85ee01c.entry.js +5 -0
  861. package/dist/webcomponents/p-fcd4ae48.entry.js +5 -0
  862. package/dist/webcomponents/p-ffe0241e.entry.js +5 -0
  863. package/dist/webcomponents/p-gvnfuTjd.js +5 -0
  864. package/dist/webcomponents/webcomponents.esm.js +5 -0
  865. package/package.json +3 -7
  866. package/cem/.gitkeep +0 -0
@@ -0,0 +1,3798 @@
1
+ /*!
2
+ * Construído por SERPRO
3
+ * © https://serpro.gov.br/ - MIT License.
4
+ */
5
+ var addDays = {};
6
+
7
+ var constructFrom = {};
8
+
9
+ var constants = {};
10
+
11
+ var hasRequiredConstants;
12
+
13
+ function requireConstants () {
14
+ if (hasRequiredConstants) return constants;
15
+ hasRequiredConstants = 1;
16
+ constants.secondsInYear =
17
+ constants.secondsInWeek =
18
+ constants.secondsInQuarter =
19
+ constants.secondsInMonth =
20
+ constants.secondsInMinute =
21
+ constants.secondsInHour =
22
+ constants.secondsInDay =
23
+ constants.quartersInYear =
24
+ constants.monthsInYear =
25
+ constants.monthsInQuarter =
26
+ constants.minutesInYear =
27
+ constants.minutesInMonth =
28
+ constants.minutesInHour =
29
+ constants.minutesInDay =
30
+ constants.minTime =
31
+ constants.millisecondsInWeek =
32
+ constants.millisecondsInSecond =
33
+ constants.millisecondsInMinute =
34
+ constants.millisecondsInHour =
35
+ constants.millisecondsInDay =
36
+ constants.maxTime =
37
+ constants.daysInYear =
38
+ constants.daysInWeek =
39
+ constants.constructFromSymbol =
40
+ void 0; /**
41
+ * @module constants
42
+ * @summary Useful constants
43
+ * @description
44
+ * Collection of useful date constants.
45
+ *
46
+ * The constants could be imported from `date-fns/constants`:
47
+ *
48
+ * ```ts
49
+ * import { maxTime, minTime } from "date-fns/constants";
50
+ *
51
+ * function isAllowedTime(time) {
52
+ * return time <= maxTime && time >= minTime;
53
+ * }
54
+ * ```
55
+ */
56
+
57
+ /**
58
+ * @constant
59
+ * @name daysInWeek
60
+ * @summary Days in 1 week.
61
+ */
62
+ (constants.daysInWeek = 7);
63
+
64
+ /**
65
+ * @constant
66
+ * @name daysInYear
67
+ * @summary Days in 1 year.
68
+ *
69
+ * @description
70
+ * How many days in a year.
71
+ *
72
+ * One years equals 365.2425 days according to the formula:
73
+ *
74
+ * > Leap year occurs every 4 years, except for years that are divisible by 100 and not divisible by 400.
75
+ * > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days
76
+ */
77
+ const daysInYear = (constants.daysInYear = 365.2425);
78
+
79
+ /**
80
+ * @constant
81
+ * @name maxTime
82
+ * @summary Maximum allowed time.
83
+ *
84
+ * @example
85
+ * import { maxTime } from "date-fns/constants";
86
+ *
87
+ * const isValid = 8640000000000001 <= maxTime;
88
+ * //=> false
89
+ *
90
+ * new Date(8640000000000001);
91
+ * //=> Invalid Date
92
+ */
93
+ const maxTime = (constants.maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1000);
94
+
95
+ /**
96
+ * @constant
97
+ * @name minTime
98
+ * @summary Minimum allowed time.
99
+ *
100
+ * @example
101
+ * import { minTime } from "date-fns/constants";
102
+ *
103
+ * const isValid = -8640000000000001 >= minTime;
104
+ * //=> false
105
+ *
106
+ * new Date(-8640000000000001)
107
+ * //=> Invalid Date
108
+ */
109
+ (constants.minTime = -maxTime);
110
+
111
+ /**
112
+ * @constant
113
+ * @name millisecondsInWeek
114
+ * @summary Milliseconds in 1 week.
115
+ */
116
+ (constants.millisecondsInWeek = 604800000);
117
+
118
+ /**
119
+ * @constant
120
+ * @name millisecondsInDay
121
+ * @summary Milliseconds in 1 day.
122
+ */
123
+ (constants.millisecondsInDay = 86400000);
124
+
125
+ /**
126
+ * @constant
127
+ * @name millisecondsInMinute
128
+ * @summary Milliseconds in 1 minute
129
+ */
130
+ (constants.millisecondsInMinute = 60000);
131
+
132
+ /**
133
+ * @constant
134
+ * @name millisecondsInHour
135
+ * @summary Milliseconds in 1 hour
136
+ */
137
+ (constants.millisecondsInHour = 3600000);
138
+
139
+ /**
140
+ * @constant
141
+ * @name millisecondsInSecond
142
+ * @summary Milliseconds in 1 second
143
+ */
144
+ (constants.millisecondsInSecond = 1000);
145
+
146
+ /**
147
+ * @constant
148
+ * @name minutesInYear
149
+ * @summary Minutes in 1 year.
150
+ */
151
+ (constants.minutesInYear = 525600);
152
+
153
+ /**
154
+ * @constant
155
+ * @name minutesInMonth
156
+ * @summary Minutes in 1 month.
157
+ */
158
+ (constants.minutesInMonth = 43200);
159
+
160
+ /**
161
+ * @constant
162
+ * @name minutesInDay
163
+ * @summary Minutes in 1 day.
164
+ */
165
+ (constants.minutesInDay = 1440);
166
+
167
+ /**
168
+ * @constant
169
+ * @name minutesInHour
170
+ * @summary Minutes in 1 hour.
171
+ */
172
+ (constants.minutesInHour = 60);
173
+
174
+ /**
175
+ * @constant
176
+ * @name monthsInQuarter
177
+ * @summary Months in 1 quarter.
178
+ */
179
+ (constants.monthsInQuarter = 3);
180
+
181
+ /**
182
+ * @constant
183
+ * @name monthsInYear
184
+ * @summary Months in 1 year.
185
+ */
186
+ (constants.monthsInYear = 12);
187
+
188
+ /**
189
+ * @constant
190
+ * @name quartersInYear
191
+ * @summary Quarters in 1 year
192
+ */
193
+ (constants.quartersInYear = 4);
194
+
195
+ /**
196
+ * @constant
197
+ * @name secondsInHour
198
+ * @summary Seconds in 1 hour.
199
+ */
200
+ const secondsInHour = (constants.secondsInHour = 3600);
201
+
202
+ /**
203
+ * @constant
204
+ * @name secondsInMinute
205
+ * @summary Seconds in 1 minute.
206
+ */
207
+ (constants.secondsInMinute = 60);
208
+
209
+ /**
210
+ * @constant
211
+ * @name secondsInDay
212
+ * @summary Seconds in 1 day.
213
+ */
214
+ const secondsInDay = (constants.secondsInDay = secondsInHour * 24);
215
+
216
+ /**
217
+ * @constant
218
+ * @name secondsInWeek
219
+ * @summary Seconds in 1 week.
220
+ */
221
+ (constants.secondsInWeek = secondsInDay * 7);
222
+
223
+ /**
224
+ * @constant
225
+ * @name secondsInYear
226
+ * @summary Seconds in 1 year.
227
+ */
228
+ const secondsInYear = (constants.secondsInYear = secondsInDay * daysInYear);
229
+
230
+ /**
231
+ * @constant
232
+ * @name secondsInMonth
233
+ * @summary Seconds in 1 month
234
+ */
235
+ const secondsInMonth = (constants.secondsInMonth = secondsInYear / 12);
236
+
237
+ /**
238
+ * @constant
239
+ * @name secondsInQuarter
240
+ * @summary Seconds in 1 quarter.
241
+ */
242
+ (constants.secondsInQuarter = secondsInMonth * 3);
243
+
244
+ /**
245
+ * @constant
246
+ * @name constructFromSymbol
247
+ * @summary Symbol enabling Date extensions to inherit properties from the reference date.
248
+ *
249
+ * The symbol is used to enable the `constructFrom` function to construct a date
250
+ * using a reference date and a value. It allows to transfer extra properties
251
+ * from the reference date to the new date. It's useful for extensions like
252
+ * [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as
253
+ * a constructor argument.
254
+ */
255
+ (constants.constructFromSymbol =
256
+ Symbol.for("constructDateFrom"));
257
+ return constants;
258
+ }
259
+
260
+ var hasRequiredConstructFrom;
261
+
262
+ function requireConstructFrom () {
263
+ if (hasRequiredConstructFrom) return constructFrom;
264
+ hasRequiredConstructFrom = 1;
265
+ constructFrom.constructFrom = constructFrom$1;
266
+ var _index = /*@__PURE__*/ requireConstants();
267
+
268
+ /**
269
+ * @name constructFrom
270
+ * @category Generic Helpers
271
+ * @summary Constructs a date using the reference date and the value
272
+ *
273
+ * @description
274
+ * The function constructs a new date using the constructor from the reference
275
+ * date and the given value. It helps to build generic functions that accept
276
+ * date extensions.
277
+ *
278
+ * It defaults to `Date` if the passed reference date is a number or a string.
279
+ *
280
+ * Starting from v3.7.0, it allows to construct a date using `[Symbol.for("constructDateFrom")]`
281
+ * enabling to transfer extra properties from the reference date to the new date.
282
+ * It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz)
283
+ * that accept a time zone as a constructor argument.
284
+ *
285
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
286
+ *
287
+ * @param date - The reference date to take constructor from
288
+ * @param value - The value to create the date
289
+ *
290
+ * @returns Date initialized using the given date and value
291
+ *
292
+ * @example
293
+ * import { constructFrom } from "date-fns";
294
+ *
295
+ * // A function that clones a date preserving the original type
296
+ * function cloneDate<DateType extends Date>(date: DateType): DateType {
297
+ * return constructFrom(
298
+ * date, // Use constructor from the given date
299
+ * date.getTime() // Use the date value to create a new date
300
+ * );
301
+ * }
302
+ */
303
+ function constructFrom$1(date, value) {
304
+ if (typeof date === "function") return date(value);
305
+
306
+ if (date && typeof date === "object" && _index.constructFromSymbol in date)
307
+ return date[_index.constructFromSymbol](value);
308
+
309
+ if (date instanceof Date) return new date.constructor(value);
310
+
311
+ return new Date(value);
312
+ }
313
+ return constructFrom;
314
+ }
315
+
316
+ var toDate = {};
317
+
318
+ var hasRequiredToDate;
319
+
320
+ function requireToDate () {
321
+ if (hasRequiredToDate) return toDate;
322
+ hasRequiredToDate = 1;
323
+ toDate.toDate = toDate$1;
324
+ var _index = /*@__PURE__*/ requireConstructFrom();
325
+
326
+ /**
327
+ * @name toDate
328
+ * @category Common Helpers
329
+ * @summary Convert the given argument to an instance of Date.
330
+ *
331
+ * @description
332
+ * Convert the given argument to an instance of Date.
333
+ *
334
+ * If the argument is an instance of Date, the function returns its clone.
335
+ *
336
+ * If the argument is a number, it is treated as a timestamp.
337
+ *
338
+ * If the argument is none of the above, the function returns Invalid Date.
339
+ *
340
+ * Starting from v3.7.0, it clones a date using `[Symbol.for("constructDateFrom")]`
341
+ * enabling to transfer extra properties from the reference date to the new date.
342
+ * It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz)
343
+ * that accept a time zone as a constructor argument.
344
+ *
345
+ * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.
346
+ *
347
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
348
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
349
+ *
350
+ * @param argument - The value to convert
351
+ *
352
+ * @returns The parsed date in the local time zone
353
+ *
354
+ * @example
355
+ * // Clone the date:
356
+ * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))
357
+ * //=> Tue Feb 11 2014 11:30:30
358
+ *
359
+ * @example
360
+ * // Convert the timestamp to date:
361
+ * const result = toDate(1392098430000)
362
+ * //=> Tue Feb 11 2014 11:30:30
363
+ */
364
+ function toDate$1(argument, context) {
365
+ // [TODO] Get rid of `toDate` or `constructFrom`?
366
+ return (0, _index.constructFrom)(context || argument, argument);
367
+ }
368
+ return toDate;
369
+ }
370
+
371
+ var hasRequiredAddDays;
372
+
373
+ function requireAddDays () {
374
+ if (hasRequiredAddDays) return addDays;
375
+ hasRequiredAddDays = 1;
376
+ addDays.addDays = addDays$1;
377
+ var _index = /*@__PURE__*/ requireConstructFrom();
378
+ var _index2 = /*@__PURE__*/ requireToDate();
379
+
380
+ /**
381
+ * The {@link addDays} function options.
382
+ */
383
+
384
+ /**
385
+ * @name addDays
386
+ * @category Day Helpers
387
+ * @summary Add the specified number of days to the given date.
388
+ *
389
+ * @description
390
+ * Add the specified number of days to the given date.
391
+ *
392
+ * **You don't need date-fns\***:
393
+ *
394
+ * Temporal has a built-in `add` method on all its classes:
395
+ *
396
+ * - [`Temporal.Instant.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/Instant/add)
397
+ * - [`Temporal.PlainDate.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDate/add)
398
+ * - [`Temporal.PlainDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDateTime/add)
399
+ * - [`Temporal.PlainTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainTime/add)
400
+ * - [`Temporal.PlainYearMonth.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainYearMonth/add)
401
+ * - [`Temporal.ZonedDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/ZonedDateTime/add)
402
+ *
403
+ * \* **Not really**, see: https://date-fns.org/you-dont-need-date-fns
404
+ *
405
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
406
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
407
+ *
408
+ * @param date - The date to be changed
409
+ * @param amount - The amount of days to be added.
410
+ * @param options - An object with options
411
+ *
412
+ * @returns The new date with the days added
413
+ *
414
+ * @example
415
+ * // Add 10 days to 1 September 2014:
416
+ * const result = addDays(new Date(2014, 8, 1), 10)
417
+ * //=> Thu Sep 11 2014 00:00:00
418
+ *
419
+ * @example
420
+ * // Using Temporal:
421
+ * // Add 10 days to 1 September 2014:
422
+ * Temporal.PlainDate.from("2014-09-01").add({ days: 10 }).toString();
423
+ * //=> "2014-09-11"
424
+ */
425
+ function addDays$1(date, amount, options) {
426
+ const _date = (0, _index2.toDate)(date, options?.in);
427
+ if (isNaN(amount)) return (0, _index.constructFrom)(options?.in || date, NaN);
428
+
429
+ // If 0 days, no-op to avoid changing times in the hour before end of DST
430
+ if (!amount) return _date;
431
+
432
+ _date.setDate(_date.getDate() + amount);
433
+ return _date;
434
+ }
435
+ return addDays;
436
+ }
437
+
438
+ var format = {};
439
+
440
+ var defaultLocale = {};
441
+
442
+ var enUS = {};
443
+
444
+ var formatDistance = {};
445
+
446
+ var hasRequiredFormatDistance;
447
+
448
+ function requireFormatDistance () {
449
+ if (hasRequiredFormatDistance) return formatDistance;
450
+ hasRequiredFormatDistance = 1;
451
+ formatDistance.formatDistance = void 0;
452
+
453
+ const formatDistanceLocale = {
454
+ lessThanXSeconds: {
455
+ one: "less than a second",
456
+ other: "less than {{count}} seconds",
457
+ },
458
+
459
+ xSeconds: {
460
+ one: "1 second",
461
+ other: "{{count}} seconds",
462
+ },
463
+
464
+ halfAMinute: "half a minute",
465
+
466
+ lessThanXMinutes: {
467
+ one: "less than a minute",
468
+ other: "less than {{count}} minutes",
469
+ },
470
+
471
+ xMinutes: {
472
+ one: "1 minute",
473
+ other: "{{count}} minutes",
474
+ },
475
+
476
+ aboutXHours: {
477
+ one: "about 1 hour",
478
+ other: "about {{count}} hours",
479
+ },
480
+
481
+ xHours: {
482
+ one: "1 hour",
483
+ other: "{{count}} hours",
484
+ },
485
+
486
+ xDays: {
487
+ one: "1 day",
488
+ other: "{{count}} days",
489
+ },
490
+
491
+ aboutXWeeks: {
492
+ one: "about 1 week",
493
+ other: "about {{count}} weeks",
494
+ },
495
+
496
+ xWeeks: {
497
+ one: "1 week",
498
+ other: "{{count}} weeks",
499
+ },
500
+
501
+ aboutXMonths: {
502
+ one: "about 1 month",
503
+ other: "about {{count}} months",
504
+ },
505
+
506
+ xMonths: {
507
+ one: "1 month",
508
+ other: "{{count}} months",
509
+ },
510
+
511
+ aboutXYears: {
512
+ one: "about 1 year",
513
+ other: "about {{count}} years",
514
+ },
515
+
516
+ xYears: {
517
+ one: "1 year",
518
+ other: "{{count}} years",
519
+ },
520
+
521
+ overXYears: {
522
+ one: "over 1 year",
523
+ other: "over {{count}} years",
524
+ },
525
+
526
+ almostXYears: {
527
+ one: "almost 1 year",
528
+ other: "almost {{count}} years",
529
+ },
530
+ };
531
+
532
+ const formatDistance$1 = (token, count, options) => {
533
+ let result;
534
+
535
+ const tokenValue = formatDistanceLocale[token];
536
+ if (typeof tokenValue === "string") {
537
+ result = tokenValue;
538
+ } else if (count === 1) {
539
+ result = tokenValue.one;
540
+ } else {
541
+ result = tokenValue.other.replace("{{count}}", count.toString());
542
+ }
543
+
544
+ if (options?.addSuffix) {
545
+ if (options.comparison && options.comparison > 0) {
546
+ return "in " + result;
547
+ } else {
548
+ return result + " ago";
549
+ }
550
+ }
551
+
552
+ return result;
553
+ };
554
+ formatDistance.formatDistance = formatDistance$1;
555
+ return formatDistance;
556
+ }
557
+
558
+ var formatLong = {};
559
+
560
+ var buildFormatLongFn = {};
561
+
562
+ var hasRequiredBuildFormatLongFn;
563
+
564
+ function requireBuildFormatLongFn () {
565
+ if (hasRequiredBuildFormatLongFn) return buildFormatLongFn;
566
+ hasRequiredBuildFormatLongFn = 1;
567
+ buildFormatLongFn.buildFormatLongFn = buildFormatLongFn$1;
568
+
569
+ function buildFormatLongFn$1(args) {
570
+ return (options = {}) => {
571
+ // TODO: Remove String()
572
+ const width = options.width ? String(options.width) : args.defaultWidth;
573
+ const format = args.formats[width] || args.formats[args.defaultWidth];
574
+ return format;
575
+ };
576
+ }
577
+ return buildFormatLongFn;
578
+ }
579
+
580
+ var hasRequiredFormatLong;
581
+
582
+ function requireFormatLong () {
583
+ if (hasRequiredFormatLong) return formatLong;
584
+ hasRequiredFormatLong = 1;
585
+ formatLong.formatLong = void 0;
586
+ var _index = /*@__PURE__*/ requireBuildFormatLongFn();
587
+
588
+ const dateFormats = {
589
+ full: "EEEE, MMMM do, y",
590
+ long: "MMMM do, y",
591
+ medium: "MMM d, y",
592
+ short: "MM/dd/yyyy",
593
+ };
594
+
595
+ const timeFormats = {
596
+ full: "h:mm:ss a zzzz",
597
+ long: "h:mm:ss a z",
598
+ medium: "h:mm:ss a",
599
+ short: "h:mm a",
600
+ };
601
+
602
+ const dateTimeFormats = {
603
+ full: "{{date}} 'at' {{time}}",
604
+ long: "{{date}} 'at' {{time}}",
605
+ medium: "{{date}}, {{time}}",
606
+ short: "{{date}}, {{time}}",
607
+ };
608
+
609
+ (formatLong.formatLong = {
610
+ date: (0, _index.buildFormatLongFn)({
611
+ formats: dateFormats,
612
+ defaultWidth: "full",
613
+ }),
614
+
615
+ time: (0, _index.buildFormatLongFn)({
616
+ formats: timeFormats,
617
+ defaultWidth: "full",
618
+ }),
619
+
620
+ dateTime: (0, _index.buildFormatLongFn)({
621
+ formats: dateTimeFormats,
622
+ defaultWidth: "full",
623
+ }),
624
+ });
625
+ return formatLong;
626
+ }
627
+
628
+ var formatRelative = {};
629
+
630
+ var hasRequiredFormatRelative;
631
+
632
+ function requireFormatRelative () {
633
+ if (hasRequiredFormatRelative) return formatRelative;
634
+ hasRequiredFormatRelative = 1;
635
+ formatRelative.formatRelative = void 0;
636
+
637
+ const formatRelativeLocale = {
638
+ lastWeek: "'last' eeee 'at' p",
639
+ yesterday: "'yesterday at' p",
640
+ today: "'today at' p",
641
+ tomorrow: "'tomorrow at' p",
642
+ nextWeek: "eeee 'at' p",
643
+ other: "P",
644
+ };
645
+
646
+ const formatRelative$1 = (token, _date, _baseDate, _options) =>
647
+ formatRelativeLocale[token];
648
+ formatRelative.formatRelative = formatRelative$1;
649
+ return formatRelative;
650
+ }
651
+
652
+ var localize = {};
653
+
654
+ var buildLocalizeFn = {};
655
+
656
+ var hasRequiredBuildLocalizeFn;
657
+
658
+ function requireBuildLocalizeFn () {
659
+ if (hasRequiredBuildLocalizeFn) return buildLocalizeFn;
660
+ hasRequiredBuildLocalizeFn = 1;
661
+ buildLocalizeFn.buildLocalizeFn = buildLocalizeFn$1;
662
+
663
+ /**
664
+ * The localize function argument callback which allows to convert raw value to
665
+ * the actual type.
666
+ *
667
+ * @param value - The value to convert
668
+ *
669
+ * @returns The converted value
670
+ */
671
+
672
+ /**
673
+ * The map of localized values for each width.
674
+ */
675
+
676
+ /**
677
+ * The index type of the locale unit value. It types conversion of units of
678
+ * values that don't start at 0 (i.e. quarters).
679
+ */
680
+
681
+ /**
682
+ * Converts the unit value to the tuple of values.
683
+ */
684
+
685
+ /**
686
+ * The tuple of localized era values. The first element represents BC,
687
+ * the second element represents AD.
688
+ */
689
+
690
+ /**
691
+ * The tuple of localized quarter values. The first element represents Q1.
692
+ */
693
+
694
+ /**
695
+ * The tuple of localized day values. The first element represents Sunday.
696
+ */
697
+
698
+ /**
699
+ * The tuple of localized month values. The first element represents January.
700
+ */
701
+
702
+ function buildLocalizeFn$1(args) {
703
+ return (value, options) => {
704
+ const context = options?.context ? String(options.context) : "standalone";
705
+
706
+ let valuesArray;
707
+ if (context === "formatting" && args.formattingValues) {
708
+ const defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
709
+ const width = options?.width ? String(options.width) : defaultWidth;
710
+
711
+ valuesArray =
712
+ args.formattingValues[width] || args.formattingValues[defaultWidth];
713
+ } else {
714
+ const defaultWidth = args.defaultWidth;
715
+ const width = options?.width ? String(options.width) : args.defaultWidth;
716
+
717
+ valuesArray = args.values[width] || args.values[defaultWidth];
718
+ }
719
+ const index = args.argumentCallback ? args.argumentCallback(value) : value;
720
+
721
+ // @ts-expect-error - For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!
722
+ return valuesArray[index];
723
+ };
724
+ }
725
+ return buildLocalizeFn;
726
+ }
727
+
728
+ var hasRequiredLocalize;
729
+
730
+ function requireLocalize () {
731
+ if (hasRequiredLocalize) return localize;
732
+ hasRequiredLocalize = 1;
733
+ localize.localize = void 0;
734
+ var _index = /*@__PURE__*/ requireBuildLocalizeFn();
735
+
736
+ const eraValues = {
737
+ narrow: ["B", "A"],
738
+ abbreviated: ["BC", "AD"],
739
+ wide: ["Before Christ", "Anno Domini"],
740
+ };
741
+
742
+ const quarterValues = {
743
+ narrow: ["1", "2", "3", "4"],
744
+ abbreviated: ["Q1", "Q2", "Q3", "Q4"],
745
+ wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"],
746
+ };
747
+
748
+ // Note: in English, the names of days of the week and months are capitalized.
749
+ // If you are making a new locale based on this one, check if the same is true for the language you're working on.
750
+ // Generally, formatted dates should look like they are in the middle of a sentence,
751
+ // e.g. in Spanish language the weekdays and months should be in the lowercase.
752
+ const monthValues = {
753
+ narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
754
+ abbreviated: [
755
+ "Jan",
756
+ "Feb",
757
+ "Mar",
758
+ "Apr",
759
+ "May",
760
+ "Jun",
761
+ "Jul",
762
+ "Aug",
763
+ "Sep",
764
+ "Oct",
765
+ "Nov",
766
+ "Dec",
767
+ ],
768
+
769
+ wide: [
770
+ "January",
771
+ "February",
772
+ "March",
773
+ "April",
774
+ "May",
775
+ "June",
776
+ "July",
777
+ "August",
778
+ "September",
779
+ "October",
780
+ "November",
781
+ "December",
782
+ ],
783
+ };
784
+
785
+ const dayValues = {
786
+ narrow: ["S", "M", "T", "W", "T", "F", "S"],
787
+ short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
788
+ abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
789
+ wide: [
790
+ "Sunday",
791
+ "Monday",
792
+ "Tuesday",
793
+ "Wednesday",
794
+ "Thursday",
795
+ "Friday",
796
+ "Saturday",
797
+ ],
798
+ };
799
+
800
+ const dayPeriodValues = {
801
+ narrow: {
802
+ am: "a",
803
+ pm: "p",
804
+ midnight: "mi",
805
+ noon: "n",
806
+ morning: "morning",
807
+ afternoon: "afternoon",
808
+ evening: "evening",
809
+ night: "night",
810
+ },
811
+ abbreviated: {
812
+ am: "AM",
813
+ pm: "PM",
814
+ midnight: "midnight",
815
+ noon: "noon",
816
+ morning: "morning",
817
+ afternoon: "afternoon",
818
+ evening: "evening",
819
+ night: "night",
820
+ },
821
+ wide: {
822
+ am: "a.m.",
823
+ pm: "p.m.",
824
+ midnight: "midnight",
825
+ noon: "noon",
826
+ morning: "morning",
827
+ afternoon: "afternoon",
828
+ evening: "evening",
829
+ night: "night",
830
+ },
831
+ };
832
+
833
+ const formattingDayPeriodValues = {
834
+ narrow: {
835
+ am: "a",
836
+ pm: "p",
837
+ midnight: "mi",
838
+ noon: "n",
839
+ morning: "in the morning",
840
+ afternoon: "in the afternoon",
841
+ evening: "in the evening",
842
+ night: "at night",
843
+ },
844
+ abbreviated: {
845
+ am: "AM",
846
+ pm: "PM",
847
+ midnight: "midnight",
848
+ noon: "noon",
849
+ morning: "in the morning",
850
+ afternoon: "in the afternoon",
851
+ evening: "in the evening",
852
+ night: "at night",
853
+ },
854
+ wide: {
855
+ am: "a.m.",
856
+ pm: "p.m.",
857
+ midnight: "midnight",
858
+ noon: "noon",
859
+ morning: "in the morning",
860
+ afternoon: "in the afternoon",
861
+ evening: "in the evening",
862
+ night: "at night",
863
+ },
864
+ };
865
+
866
+ const ordinalNumber = (dirtyNumber, _options) => {
867
+ const number = Number(dirtyNumber);
868
+
869
+ // If ordinal numbers depend on context, for example,
870
+ // if they are different for different grammatical genders,
871
+ // use `options.unit`.
872
+ //
873
+ // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
874
+ // 'day', 'hour', 'minute', 'second'.
875
+
876
+ const rem100 = number % 100;
877
+ if (rem100 > 20 || rem100 < 10) {
878
+ switch (rem100 % 10) {
879
+ case 1:
880
+ return number + "st";
881
+ case 2:
882
+ return number + "nd";
883
+ case 3:
884
+ return number + "rd";
885
+ }
886
+ }
887
+ return number + "th";
888
+ };
889
+
890
+ (localize.localize = {
891
+ ordinalNumber,
892
+
893
+ era: (0, _index.buildLocalizeFn)({
894
+ values: eraValues,
895
+ defaultWidth: "wide",
896
+ }),
897
+
898
+ quarter: (0, _index.buildLocalizeFn)({
899
+ values: quarterValues,
900
+ defaultWidth: "wide",
901
+ argumentCallback: (quarter) => quarter - 1,
902
+ }),
903
+
904
+ month: (0, _index.buildLocalizeFn)({
905
+ values: monthValues,
906
+ defaultWidth: "wide",
907
+ }),
908
+
909
+ day: (0, _index.buildLocalizeFn)({
910
+ values: dayValues,
911
+ defaultWidth: "wide",
912
+ }),
913
+
914
+ dayPeriod: (0, _index.buildLocalizeFn)({
915
+ values: dayPeriodValues,
916
+ defaultWidth: "wide",
917
+ formattingValues: formattingDayPeriodValues,
918
+ defaultFormattingWidth: "wide",
919
+ }),
920
+ });
921
+ return localize;
922
+ }
923
+
924
+ var match = {};
925
+
926
+ var buildMatchFn = {};
927
+
928
+ var hasRequiredBuildMatchFn;
929
+
930
+ function requireBuildMatchFn () {
931
+ if (hasRequiredBuildMatchFn) return buildMatchFn;
932
+ hasRequiredBuildMatchFn = 1;
933
+ buildMatchFn.buildMatchFn = buildMatchFn$1;
934
+
935
+ function buildMatchFn$1(args) {
936
+ return (string, options = {}) => {
937
+ const width = options.width;
938
+
939
+ const matchPattern =
940
+ (width && args.matchPatterns[width]) ||
941
+ args.matchPatterns[args.defaultMatchWidth];
942
+ const matchResult = string.match(matchPattern);
943
+
944
+ if (!matchResult) {
945
+ return null;
946
+ }
947
+ const matchedString = matchResult[0];
948
+
949
+ const parsePatterns =
950
+ (width && args.parsePatterns[width]) ||
951
+ args.parsePatterns[args.defaultParseWidth];
952
+
953
+ const key = Array.isArray(parsePatterns)
954
+ ? findIndex(parsePatterns, (pattern) => pattern.test(matchedString))
955
+ : // [TODO] -- I challenge you to fix the type
956
+ findKey(parsePatterns, (pattern) => pattern.test(matchedString));
957
+
958
+ let value;
959
+
960
+ value = args.valueCallback ? args.valueCallback(key) : key;
961
+ value = options.valueCallback
962
+ ? // [TODO] -- I challenge you to fix the type
963
+ options.valueCallback(value)
964
+ : value;
965
+
966
+ const rest = string.slice(matchedString.length);
967
+
968
+ return { value, rest };
969
+ };
970
+ }
971
+
972
+ function findKey(object, predicate) {
973
+ for (const key in object) {
974
+ if (
975
+ Object.prototype.hasOwnProperty.call(object, key) &&
976
+ predicate(object[key])
977
+ ) {
978
+ return key;
979
+ }
980
+ }
981
+ return undefined;
982
+ }
983
+
984
+ function findIndex(array, predicate) {
985
+ for (let key = 0; key < array.length; key++) {
986
+ if (predicate(array[key])) {
987
+ return key;
988
+ }
989
+ }
990
+ return undefined;
991
+ }
992
+ return buildMatchFn;
993
+ }
994
+
995
+ var buildMatchPatternFn = {};
996
+
997
+ var hasRequiredBuildMatchPatternFn;
998
+
999
+ function requireBuildMatchPatternFn () {
1000
+ if (hasRequiredBuildMatchPatternFn) return buildMatchPatternFn;
1001
+ hasRequiredBuildMatchPatternFn = 1;
1002
+ buildMatchPatternFn.buildMatchPatternFn = buildMatchPatternFn$1;
1003
+
1004
+ function buildMatchPatternFn$1(args) {
1005
+ return (string, options = {}) => {
1006
+ const matchResult = string.match(args.matchPattern);
1007
+ if (!matchResult) return null;
1008
+ const matchedString = matchResult[0];
1009
+
1010
+ const parseResult = string.match(args.parsePattern);
1011
+ if (!parseResult) return null;
1012
+ let value = args.valueCallback
1013
+ ? args.valueCallback(parseResult[0])
1014
+ : parseResult[0];
1015
+
1016
+ // [TODO] I challenge you to fix the type
1017
+ value = options.valueCallback ? options.valueCallback(value) : value;
1018
+
1019
+ const rest = string.slice(matchedString.length);
1020
+
1021
+ return { value, rest };
1022
+ };
1023
+ }
1024
+ return buildMatchPatternFn;
1025
+ }
1026
+
1027
+ var hasRequiredMatch;
1028
+
1029
+ function requireMatch () {
1030
+ if (hasRequiredMatch) return match;
1031
+ hasRequiredMatch = 1;
1032
+ match.match = void 0;
1033
+
1034
+ var _index = /*@__PURE__*/ requireBuildMatchFn();
1035
+ var _index2 = /*@__PURE__*/ requireBuildMatchPatternFn();
1036
+
1037
+ const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
1038
+ const parseOrdinalNumberPattern = /\d+/i;
1039
+
1040
+ const matchEraPatterns = {
1041
+ narrow: /^(b|a)/i,
1042
+ abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
1043
+ wide: /^(before christ|before common era|anno domini|common era)/i,
1044
+ };
1045
+ const parseEraPatterns = {
1046
+ any: [/^b/i, /^(a|c)/i],
1047
+ };
1048
+
1049
+ const matchQuarterPatterns = {
1050
+ narrow: /^[1234]/i,
1051
+ abbreviated: /^q[1234]/i,
1052
+ wide: /^[1234](th|st|nd|rd)? quarter/i,
1053
+ };
1054
+ const parseQuarterPatterns = {
1055
+ any: [/1/i, /2/i, /3/i, /4/i],
1056
+ };
1057
+
1058
+ const matchMonthPatterns = {
1059
+ narrow: /^[jfmasond]/i,
1060
+ abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
1061
+ wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i,
1062
+ };
1063
+ const parseMonthPatterns = {
1064
+ narrow: [
1065
+ /^j/i,
1066
+ /^f/i,
1067
+ /^m/i,
1068
+ /^a/i,
1069
+ /^m/i,
1070
+ /^j/i,
1071
+ /^j/i,
1072
+ /^a/i,
1073
+ /^s/i,
1074
+ /^o/i,
1075
+ /^n/i,
1076
+ /^d/i,
1077
+ ],
1078
+
1079
+ any: [
1080
+ /^ja/i,
1081
+ /^f/i,
1082
+ /^mar/i,
1083
+ /^ap/i,
1084
+ /^may/i,
1085
+ /^jun/i,
1086
+ /^jul/i,
1087
+ /^au/i,
1088
+ /^s/i,
1089
+ /^o/i,
1090
+ /^n/i,
1091
+ /^d/i,
1092
+ ],
1093
+ };
1094
+
1095
+ const matchDayPatterns = {
1096
+ narrow: /^[smtwf]/i,
1097
+ short: /^(su|mo|tu|we|th|fr|sa)/i,
1098
+ abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
1099
+ wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i,
1100
+ };
1101
+ const parseDayPatterns = {
1102
+ narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
1103
+ any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i],
1104
+ };
1105
+
1106
+ const matchDayPeriodPatterns = {
1107
+ narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
1108
+ any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i,
1109
+ };
1110
+ const parseDayPeriodPatterns = {
1111
+ any: {
1112
+ am: /^a/i,
1113
+ pm: /^p/i,
1114
+ midnight: /^mi/i,
1115
+ noon: /^no/i,
1116
+ morning: /morning/i,
1117
+ afternoon: /afternoon/i,
1118
+ evening: /evening/i,
1119
+ night: /night/i,
1120
+ },
1121
+ };
1122
+
1123
+ (match.match = {
1124
+ ordinalNumber: (0, _index2.buildMatchPatternFn)({
1125
+ matchPattern: matchOrdinalNumberPattern,
1126
+ parsePattern: parseOrdinalNumberPattern,
1127
+ valueCallback: (value) => parseInt(value, 10),
1128
+ }),
1129
+
1130
+ era: (0, _index.buildMatchFn)({
1131
+ matchPatterns: matchEraPatterns,
1132
+ defaultMatchWidth: "wide",
1133
+ parsePatterns: parseEraPatterns,
1134
+ defaultParseWidth: "any",
1135
+ }),
1136
+
1137
+ quarter: (0, _index.buildMatchFn)({
1138
+ matchPatterns: matchQuarterPatterns,
1139
+ defaultMatchWidth: "wide",
1140
+ parsePatterns: parseQuarterPatterns,
1141
+ defaultParseWidth: "any",
1142
+ valueCallback: (index) => index + 1,
1143
+ }),
1144
+
1145
+ month: (0, _index.buildMatchFn)({
1146
+ matchPatterns: matchMonthPatterns,
1147
+ defaultMatchWidth: "wide",
1148
+ parsePatterns: parseMonthPatterns,
1149
+ defaultParseWidth: "any",
1150
+ }),
1151
+
1152
+ day: (0, _index.buildMatchFn)({
1153
+ matchPatterns: matchDayPatterns,
1154
+ defaultMatchWidth: "wide",
1155
+ parsePatterns: parseDayPatterns,
1156
+ defaultParseWidth: "any",
1157
+ }),
1158
+
1159
+ dayPeriod: (0, _index.buildMatchFn)({
1160
+ matchPatterns: matchDayPeriodPatterns,
1161
+ defaultMatchWidth: "any",
1162
+ parsePatterns: parseDayPeriodPatterns,
1163
+ defaultParseWidth: "any",
1164
+ }),
1165
+ });
1166
+ return match;
1167
+ }
1168
+
1169
+ var hasRequiredEnUS;
1170
+
1171
+ function requireEnUS () {
1172
+ if (hasRequiredEnUS) return enUS;
1173
+ hasRequiredEnUS = 1;
1174
+ enUS.enUS = void 0;
1175
+ var _index = /*@__PURE__*/ requireFormatDistance();
1176
+ var _index2 = /*@__PURE__*/ requireFormatLong();
1177
+ var _index3 = /*@__PURE__*/ requireFormatRelative();
1178
+ var _index4 = /*@__PURE__*/ requireLocalize();
1179
+ var _index5 = /*@__PURE__*/ requireMatch();
1180
+
1181
+ /**
1182
+ * @category Locales
1183
+ * @summary English locale (United States).
1184
+ * @language English
1185
+ * @iso-639-2 eng
1186
+ * @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp)
1187
+ * @author Lesha Koss [@leshakoss](https://github.com/leshakoss)
1188
+ */
1189
+ (enUS.enUS = {
1190
+ code: "en-US",
1191
+ formatDistance: _index.formatDistance,
1192
+ formatLong: _index2.formatLong,
1193
+ formatRelative: _index3.formatRelative,
1194
+ localize: _index4.localize,
1195
+ match: _index5.match,
1196
+ options: {
1197
+ weekStartsOn: 0 /* Sunday */,
1198
+ firstWeekContainsDate: 1,
1199
+ },
1200
+ });
1201
+ return enUS;
1202
+ }
1203
+
1204
+ var hasRequiredDefaultLocale;
1205
+
1206
+ function requireDefaultLocale () {
1207
+ if (hasRequiredDefaultLocale) return defaultLocale;
1208
+ hasRequiredDefaultLocale = 1;
1209
+ (function (exports) {
1210
+ Object.defineProperty(exports, "defaultLocale", {
1211
+ enumerable: true,
1212
+ get: function () {
1213
+ return _index.enUS;
1214
+ },
1215
+ });
1216
+ var _index = /*@__PURE__*/ requireEnUS();
1217
+ } (defaultLocale));
1218
+ return defaultLocale;
1219
+ }
1220
+
1221
+ var defaultOptions = {};
1222
+
1223
+ var hasRequiredDefaultOptions;
1224
+
1225
+ function requireDefaultOptions () {
1226
+ if (hasRequiredDefaultOptions) return defaultOptions;
1227
+ hasRequiredDefaultOptions = 1;
1228
+ defaultOptions.getDefaultOptions = getDefaultOptions;
1229
+ defaultOptions.setDefaultOptions = setDefaultOptions;
1230
+
1231
+ let defaultOptions$1 = {};
1232
+
1233
+ function getDefaultOptions() {
1234
+ return defaultOptions$1;
1235
+ }
1236
+
1237
+ function setDefaultOptions(newOptions) {
1238
+ defaultOptions$1 = newOptions;
1239
+ }
1240
+ return defaultOptions;
1241
+ }
1242
+
1243
+ var formatters = {};
1244
+
1245
+ var getDayOfYear = {};
1246
+
1247
+ var differenceInCalendarDays = {};
1248
+
1249
+ var getTimezoneOffsetInMilliseconds = {};
1250
+
1251
+ var hasRequiredGetTimezoneOffsetInMilliseconds;
1252
+
1253
+ function requireGetTimezoneOffsetInMilliseconds () {
1254
+ if (hasRequiredGetTimezoneOffsetInMilliseconds) return getTimezoneOffsetInMilliseconds;
1255
+ hasRequiredGetTimezoneOffsetInMilliseconds = 1;
1256
+ getTimezoneOffsetInMilliseconds.getTimezoneOffsetInMilliseconds = getTimezoneOffsetInMilliseconds$1;
1257
+ var _index = /*@__PURE__*/ requireToDate();
1258
+
1259
+ /**
1260
+ * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.
1261
+ * They usually appear for dates that denote time before the timezones were introduced
1262
+ * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891
1263
+ * and GMT+01:00:00 after that date)
1264
+ *
1265
+ * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above,
1266
+ * which would lead to incorrect calculations.
1267
+ *
1268
+ * This function returns the timezone offset in milliseconds that takes seconds in account.
1269
+ */
1270
+ function getTimezoneOffsetInMilliseconds$1(date) {
1271
+ const _date = (0, _index.toDate)(date);
1272
+ const utcDate = new Date(
1273
+ Date.UTC(
1274
+ _date.getFullYear(),
1275
+ _date.getMonth(),
1276
+ _date.getDate(),
1277
+ _date.getHours(),
1278
+ _date.getMinutes(),
1279
+ _date.getSeconds(),
1280
+ _date.getMilliseconds(),
1281
+ ),
1282
+ );
1283
+ utcDate.setUTCFullYear(_date.getFullYear());
1284
+ return +date - +utcDate;
1285
+ }
1286
+ return getTimezoneOffsetInMilliseconds;
1287
+ }
1288
+
1289
+ var normalizeDates = {};
1290
+
1291
+ var hasRequiredNormalizeDates;
1292
+
1293
+ function requireNormalizeDates () {
1294
+ if (hasRequiredNormalizeDates) return normalizeDates;
1295
+ hasRequiredNormalizeDates = 1;
1296
+ normalizeDates.normalizeDates = normalizeDates$1;
1297
+ var _index = /*@__PURE__*/ requireConstructFrom();
1298
+
1299
+ function normalizeDates$1(context, ...dates) {
1300
+ const normalize = _index.constructFrom.bind(
1301
+ null,
1302
+ context || dates.find((date) => typeof date === "object"),
1303
+ );
1304
+ return dates.map(normalize);
1305
+ }
1306
+ return normalizeDates;
1307
+ }
1308
+
1309
+ var startOfDay = {};
1310
+
1311
+ var hasRequiredStartOfDay;
1312
+
1313
+ function requireStartOfDay () {
1314
+ if (hasRequiredStartOfDay) return startOfDay;
1315
+ hasRequiredStartOfDay = 1;
1316
+ startOfDay.startOfDay = startOfDay$1;
1317
+ var _index = /*@__PURE__*/ requireToDate();
1318
+
1319
+ /**
1320
+ * The {@link startOfDay} function options.
1321
+ */
1322
+
1323
+ /**
1324
+ * @name startOfDay
1325
+ * @category Day Helpers
1326
+ * @summary Return the start of a day for the given date.
1327
+ *
1328
+ * @description
1329
+ * Return the start of a day for the given date.
1330
+ * The result will be in the local timezone.
1331
+ *
1332
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
1333
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
1334
+ *
1335
+ * @param date - The original date
1336
+ * @param options - The options
1337
+ *
1338
+ * @returns The start of a day
1339
+ *
1340
+ * @example
1341
+ * // The start of a day for 2 September 2014 11:55:00:
1342
+ * const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))
1343
+ * //=> Tue Sep 02 2014 00:00:00
1344
+ */
1345
+ function startOfDay$1(date, options) {
1346
+ const _date = (0, _index.toDate)(date, options?.in);
1347
+ _date.setHours(0, 0, 0, 0);
1348
+ return _date;
1349
+ }
1350
+ return startOfDay;
1351
+ }
1352
+
1353
+ var hasRequiredDifferenceInCalendarDays;
1354
+
1355
+ function requireDifferenceInCalendarDays () {
1356
+ if (hasRequiredDifferenceInCalendarDays) return differenceInCalendarDays;
1357
+ hasRequiredDifferenceInCalendarDays = 1;
1358
+ differenceInCalendarDays.differenceInCalendarDays = differenceInCalendarDays$1;
1359
+ var _index = /*@__PURE__*/ requireGetTimezoneOffsetInMilliseconds();
1360
+ var _index2 = /*@__PURE__*/ requireNormalizeDates();
1361
+ var _index3 = /*@__PURE__*/ requireConstants();
1362
+ var _index4 = /*@__PURE__*/ requireStartOfDay();
1363
+
1364
+ /**
1365
+ * The {@link differenceInCalendarDays} function options.
1366
+ */
1367
+
1368
+ /**
1369
+ * @name differenceInCalendarDays
1370
+ * @category Day Helpers
1371
+ * @summary Get the number of calendar days between the given dates.
1372
+ *
1373
+ * @description
1374
+ * Get the number of calendar days between the given dates. This means that the times are removed
1375
+ * from the dates and then the difference in days is calculated.
1376
+ *
1377
+ * @param laterDate - The later date
1378
+ * @param earlierDate - The earlier date
1379
+ * @param options - The options object
1380
+ *
1381
+ * @returns The number of calendar days
1382
+ *
1383
+ * @example
1384
+ * // How many calendar days are between
1385
+ * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00?
1386
+ * const result = differenceInCalendarDays(
1387
+ * new Date(2012, 6, 2, 0, 0),
1388
+ * new Date(2011, 6, 2, 23, 0)
1389
+ * )
1390
+ * //=> 366
1391
+ * // How many calendar days are between
1392
+ * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00?
1393
+ * const result = differenceInCalendarDays(
1394
+ * new Date(2011, 6, 3, 0, 1),
1395
+ * new Date(2011, 6, 2, 23, 59)
1396
+ * )
1397
+ * //=> 1
1398
+ */
1399
+ function differenceInCalendarDays$1(laterDate, earlierDate, options) {
1400
+ const [laterDate_, earlierDate_] = (0, _index2.normalizeDates)(
1401
+ options?.in,
1402
+ laterDate,
1403
+ earlierDate,
1404
+ );
1405
+
1406
+ const laterStartOfDay = (0, _index4.startOfDay)(laterDate_);
1407
+ const earlierStartOfDay = (0, _index4.startOfDay)(earlierDate_);
1408
+
1409
+ const laterTimestamp =
1410
+ +laterStartOfDay -
1411
+ (0, _index.getTimezoneOffsetInMilliseconds)(laterStartOfDay);
1412
+ const earlierTimestamp =
1413
+ +earlierStartOfDay -
1414
+ (0, _index.getTimezoneOffsetInMilliseconds)(earlierStartOfDay);
1415
+
1416
+ // Round the number of days to the nearest integer because the number of
1417
+ // milliseconds in a day is not constant (e.g. it's different in the week of
1418
+ // the daylight saving time clock shift).
1419
+ return Math.round(
1420
+ (laterTimestamp - earlierTimestamp) / _index3.millisecondsInDay,
1421
+ );
1422
+ }
1423
+ return differenceInCalendarDays;
1424
+ }
1425
+
1426
+ var startOfYear = {};
1427
+
1428
+ var hasRequiredStartOfYear;
1429
+
1430
+ function requireStartOfYear () {
1431
+ if (hasRequiredStartOfYear) return startOfYear;
1432
+ hasRequiredStartOfYear = 1;
1433
+ startOfYear.startOfYear = startOfYear$1;
1434
+ var _index = /*@__PURE__*/ requireToDate();
1435
+
1436
+ /**
1437
+ * The {@link startOfYear} function options.
1438
+ */
1439
+
1440
+ /**
1441
+ * @name startOfYear
1442
+ * @category Year Helpers
1443
+ * @summary Return the start of a year for the given date.
1444
+ *
1445
+ * @description
1446
+ * Return the start of a year for the given date.
1447
+ * The result will be in the local timezone.
1448
+ *
1449
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
1450
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
1451
+ *
1452
+ * @param date - The original date
1453
+ * @param options - The options
1454
+ *
1455
+ * @returns The start of a year
1456
+ *
1457
+ * @example
1458
+ * // The start of a year for 2 September 2014 11:55:00:
1459
+ * const result = startOfYear(new Date(2014, 8, 2, 11, 55, 00))
1460
+ * //=> Wed Jan 01 2014 00:00:00
1461
+ */
1462
+ function startOfYear$1(date, options) {
1463
+ const date_ = (0, _index.toDate)(date, options?.in);
1464
+ date_.setFullYear(date_.getFullYear(), 0, 1);
1465
+ date_.setHours(0, 0, 0, 0);
1466
+ return date_;
1467
+ }
1468
+ return startOfYear;
1469
+ }
1470
+
1471
+ var hasRequiredGetDayOfYear;
1472
+
1473
+ function requireGetDayOfYear () {
1474
+ if (hasRequiredGetDayOfYear) return getDayOfYear;
1475
+ hasRequiredGetDayOfYear = 1;
1476
+ getDayOfYear.getDayOfYear = getDayOfYear$1;
1477
+ var _index = /*@__PURE__*/ requireDifferenceInCalendarDays();
1478
+ var _index2 = /*@__PURE__*/ requireStartOfYear();
1479
+ var _index3 = /*@__PURE__*/ requireToDate();
1480
+
1481
+ /**
1482
+ * The {@link getDayOfYear} function options.
1483
+ */
1484
+
1485
+ /**
1486
+ * @name getDayOfYear
1487
+ * @category Day Helpers
1488
+ * @summary Get the day of the year of the given date.
1489
+ *
1490
+ * @description
1491
+ * Get the day of the year of the given date.
1492
+ *
1493
+ * @param date - The given date
1494
+ * @param options - The options
1495
+ *
1496
+ * @returns The day of year
1497
+ *
1498
+ * @example
1499
+ * // Which day of the year is 2 July 2014?
1500
+ * const result = getDayOfYear(new Date(2014, 6, 2))
1501
+ * //=> 183
1502
+ */
1503
+ function getDayOfYear$1(date, options) {
1504
+ const _date = (0, _index3.toDate)(date, options?.in);
1505
+ const diff = (0, _index.differenceInCalendarDays)(
1506
+ _date,
1507
+ (0, _index2.startOfYear)(_date),
1508
+ );
1509
+ const dayOfYear = diff + 1;
1510
+ return dayOfYear;
1511
+ }
1512
+ return getDayOfYear;
1513
+ }
1514
+
1515
+ var getISOWeek = {};
1516
+
1517
+ var startOfISOWeek = {};
1518
+
1519
+ var startOfWeek = {};
1520
+
1521
+ var hasRequiredStartOfWeek;
1522
+
1523
+ function requireStartOfWeek () {
1524
+ if (hasRequiredStartOfWeek) return startOfWeek;
1525
+ hasRequiredStartOfWeek = 1;
1526
+ startOfWeek.startOfWeek = startOfWeek$1;
1527
+ var _index = /*@__PURE__*/ requireDefaultOptions();
1528
+ var _index2 = /*@__PURE__*/ requireToDate();
1529
+
1530
+ /**
1531
+ * The {@link startOfWeek} function options.
1532
+ */
1533
+
1534
+ /**
1535
+ * @name startOfWeek
1536
+ * @category Week Helpers
1537
+ * @summary Return the start of a week for the given date.
1538
+ *
1539
+ * @description
1540
+ * Return the start of a week for the given date.
1541
+ * The result will be in the local timezone.
1542
+ *
1543
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
1544
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
1545
+ *
1546
+ * @param date - The original date
1547
+ * @param options - An object with options
1548
+ *
1549
+ * @returns The start of a week
1550
+ *
1551
+ * @example
1552
+ * // The start of a week for 2 September 2014 11:55:00:
1553
+ * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0))
1554
+ * //=> Sun Aug 31 2014 00:00:00
1555
+ *
1556
+ * @example
1557
+ * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00:
1558
+ * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
1559
+ * //=> Mon Sep 01 2014 00:00:00
1560
+ */
1561
+ function startOfWeek$1(date, options) {
1562
+ const defaultOptions = (0, _index.getDefaultOptions)();
1563
+ const weekStartsOn =
1564
+ options?.weekStartsOn ??
1565
+ options?.locale?.options?.weekStartsOn ??
1566
+ defaultOptions.weekStartsOn ??
1567
+ defaultOptions.locale?.options?.weekStartsOn ??
1568
+ 0;
1569
+
1570
+ const _date = (0, _index2.toDate)(date, options?.in);
1571
+ const day = _date.getDay();
1572
+ const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
1573
+
1574
+ _date.setDate(_date.getDate() - diff);
1575
+ _date.setHours(0, 0, 0, 0);
1576
+ return _date;
1577
+ }
1578
+ return startOfWeek;
1579
+ }
1580
+
1581
+ var hasRequiredStartOfISOWeek;
1582
+
1583
+ function requireStartOfISOWeek () {
1584
+ if (hasRequiredStartOfISOWeek) return startOfISOWeek;
1585
+ hasRequiredStartOfISOWeek = 1;
1586
+ startOfISOWeek.startOfISOWeek = startOfISOWeek$1;
1587
+ var _index = /*@__PURE__*/ requireStartOfWeek();
1588
+
1589
+ /**
1590
+ * The {@link startOfISOWeek} function options.
1591
+ */
1592
+
1593
+ /**
1594
+ * @name startOfISOWeek
1595
+ * @category ISO Week Helpers
1596
+ * @summary Return the start of an ISO week for the given date.
1597
+ *
1598
+ * @description
1599
+ * Return the start of an ISO week for the given date.
1600
+ * The result will be in the local timezone.
1601
+ *
1602
+ * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
1603
+ *
1604
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
1605
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
1606
+ *
1607
+ * @param date - The original date
1608
+ * @param options - An object with options
1609
+ *
1610
+ * @returns The start of an ISO week
1611
+ *
1612
+ * @example
1613
+ * // The start of an ISO week for 2 September 2014 11:55:00:
1614
+ * const result = startOfISOWeek(new Date(2014, 8, 2, 11, 55, 0))
1615
+ * //=> Mon Sep 01 2014 00:00:00
1616
+ */
1617
+ function startOfISOWeek$1(date, options) {
1618
+ return (0, _index.startOfWeek)(date, { ...options, weekStartsOn: 1 });
1619
+ }
1620
+ return startOfISOWeek;
1621
+ }
1622
+
1623
+ var startOfISOWeekYear = {};
1624
+
1625
+ var getISOWeekYear = {};
1626
+
1627
+ var hasRequiredGetISOWeekYear;
1628
+
1629
+ function requireGetISOWeekYear () {
1630
+ if (hasRequiredGetISOWeekYear) return getISOWeekYear;
1631
+ hasRequiredGetISOWeekYear = 1;
1632
+ getISOWeekYear.getISOWeekYear = getISOWeekYear$1;
1633
+ var _index = /*@__PURE__*/ requireConstructFrom();
1634
+ var _index2 = /*@__PURE__*/ requireStartOfISOWeek();
1635
+ var _index3 = /*@__PURE__*/ requireToDate();
1636
+
1637
+ /**
1638
+ * The {@link getISOWeekYear} function options.
1639
+ */
1640
+
1641
+ /**
1642
+ * @name getISOWeekYear
1643
+ * @category ISO Week-Numbering Year Helpers
1644
+ * @summary Get the ISO week-numbering year of the given date.
1645
+ *
1646
+ * @description
1647
+ * Get the ISO week-numbering year of the given date,
1648
+ * which always starts 3 days before the year's first Thursday.
1649
+ *
1650
+ * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
1651
+ *
1652
+ * @param date - The given date
1653
+ *
1654
+ * @returns The ISO week-numbering year
1655
+ *
1656
+ * @example
1657
+ * // Which ISO-week numbering year is 2 January 2005?
1658
+ * const result = getISOWeekYear(new Date(2005, 0, 2))
1659
+ * //=> 2004
1660
+ */
1661
+ function getISOWeekYear$1(date, options) {
1662
+ const _date = (0, _index3.toDate)(date, options?.in);
1663
+ const year = _date.getFullYear();
1664
+
1665
+ const fourthOfJanuaryOfNextYear = (0, _index.constructFrom)(_date, 0);
1666
+ fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4);
1667
+ fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0);
1668
+ const startOfNextYear = (0, _index2.startOfISOWeek)(
1669
+ fourthOfJanuaryOfNextYear,
1670
+ );
1671
+
1672
+ const fourthOfJanuaryOfThisYear = (0, _index.constructFrom)(_date, 0);
1673
+ fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4);
1674
+ fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0);
1675
+ const startOfThisYear = (0, _index2.startOfISOWeek)(
1676
+ fourthOfJanuaryOfThisYear,
1677
+ );
1678
+
1679
+ if (_date.getTime() >= startOfNextYear.getTime()) {
1680
+ return year + 1;
1681
+ } else if (_date.getTime() >= startOfThisYear.getTime()) {
1682
+ return year;
1683
+ } else {
1684
+ return year - 1;
1685
+ }
1686
+ }
1687
+ return getISOWeekYear;
1688
+ }
1689
+
1690
+ var hasRequiredStartOfISOWeekYear;
1691
+
1692
+ function requireStartOfISOWeekYear () {
1693
+ if (hasRequiredStartOfISOWeekYear) return startOfISOWeekYear;
1694
+ hasRequiredStartOfISOWeekYear = 1;
1695
+ startOfISOWeekYear.startOfISOWeekYear = startOfISOWeekYear$1;
1696
+ var _index = /*@__PURE__*/ requireConstructFrom();
1697
+ var _index2 = /*@__PURE__*/ requireGetISOWeekYear();
1698
+ var _index3 = /*@__PURE__*/ requireStartOfISOWeek();
1699
+
1700
+ /**
1701
+ * The {@link startOfISOWeekYear} function options.
1702
+ */
1703
+
1704
+ /**
1705
+ * @name startOfISOWeekYear
1706
+ * @category ISO Week-Numbering Year Helpers
1707
+ * @summary Return the start of an ISO week-numbering year for the given date.
1708
+ *
1709
+ * @description
1710
+ * Return the start of an ISO week-numbering year,
1711
+ * which always starts 3 days before the year's first Thursday.
1712
+ * The result will be in the local timezone.
1713
+ *
1714
+ * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
1715
+ *
1716
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
1717
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
1718
+ *
1719
+ * @param date - The original date
1720
+ * @param options - An object with options
1721
+ *
1722
+ * @returns The start of an ISO week-numbering year
1723
+ *
1724
+ * @example
1725
+ * // The start of an ISO week-numbering year for 2 July 2005:
1726
+ * const result = startOfISOWeekYear(new Date(2005, 6, 2))
1727
+ * //=> Mon Jan 03 2005 00:00:00
1728
+ */
1729
+ function startOfISOWeekYear$1(date, options) {
1730
+ const year = (0, _index2.getISOWeekYear)(date, options);
1731
+ const fourthOfJanuary = (0, _index.constructFrom)(options?.in || date, 0);
1732
+ fourthOfJanuary.setFullYear(year, 0, 4);
1733
+ fourthOfJanuary.setHours(0, 0, 0, 0);
1734
+ return (0, _index3.startOfISOWeek)(fourthOfJanuary);
1735
+ }
1736
+ return startOfISOWeekYear;
1737
+ }
1738
+
1739
+ var hasRequiredGetISOWeek;
1740
+
1741
+ function requireGetISOWeek () {
1742
+ if (hasRequiredGetISOWeek) return getISOWeek;
1743
+ hasRequiredGetISOWeek = 1;
1744
+ getISOWeek.getISOWeek = getISOWeek$1;
1745
+ var _index = /*@__PURE__*/ requireConstants();
1746
+ var _index2 = /*@__PURE__*/ requireStartOfISOWeek();
1747
+ var _index3 = /*@__PURE__*/ requireStartOfISOWeekYear();
1748
+ var _index4 = /*@__PURE__*/ requireToDate();
1749
+
1750
+ /**
1751
+ * The {@link getISOWeek} function options.
1752
+ */
1753
+
1754
+ /**
1755
+ * @name getISOWeek
1756
+ * @category ISO Week Helpers
1757
+ * @summary Get the ISO week of the given date.
1758
+ *
1759
+ * @description
1760
+ * Get the ISO week of the given date.
1761
+ *
1762
+ * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
1763
+ *
1764
+ * @param date - The given date
1765
+ * @param options - The options
1766
+ *
1767
+ * @returns The ISO week
1768
+ *
1769
+ * @example
1770
+ * // Which week of the ISO-week numbering year is 2 January 2005?
1771
+ * const result = getISOWeek(new Date(2005, 0, 2))
1772
+ * //=> 53
1773
+ */
1774
+ function getISOWeek$1(date, options) {
1775
+ const _date = (0, _index4.toDate)(date, options?.in);
1776
+ const diff =
1777
+ +(0, _index2.startOfISOWeek)(_date) -
1778
+ +(0, _index3.startOfISOWeekYear)(_date);
1779
+
1780
+ // Round the number of weeks to the nearest integer because the number of
1781
+ // milliseconds in a week is not constant (e.g. it's different in the week of
1782
+ // the daylight saving time clock shift).
1783
+ return Math.round(diff / _index.millisecondsInWeek) + 1;
1784
+ }
1785
+ return getISOWeek;
1786
+ }
1787
+
1788
+ var getWeek = {};
1789
+
1790
+ var startOfWeekYear = {};
1791
+
1792
+ var getWeekYear = {};
1793
+
1794
+ var hasRequiredGetWeekYear;
1795
+
1796
+ function requireGetWeekYear () {
1797
+ if (hasRequiredGetWeekYear) return getWeekYear;
1798
+ hasRequiredGetWeekYear = 1;
1799
+ getWeekYear.getWeekYear = getWeekYear$1;
1800
+ var _index = /*@__PURE__*/ requireDefaultOptions();
1801
+ var _index2 = /*@__PURE__*/ requireConstructFrom();
1802
+ var _index3 = /*@__PURE__*/ requireStartOfWeek();
1803
+ var _index4 = /*@__PURE__*/ requireToDate();
1804
+
1805
+ /**
1806
+ * The {@link getWeekYear} function options.
1807
+ */
1808
+
1809
+ /**
1810
+ * @name getWeekYear
1811
+ * @category Week-Numbering Year Helpers
1812
+ * @summary Get the local week-numbering year of the given date.
1813
+ *
1814
+ * @description
1815
+ * Get the local week-numbering year of the given date.
1816
+ * The exact calculation depends on the values of
1817
+ * `options.weekStartsOn` (which is the index of the first day of the week)
1818
+ * and `options.firstWeekContainsDate` (which is the day of January, which is always in
1819
+ * the first week of the week-numbering year)
1820
+ *
1821
+ * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
1822
+ *
1823
+ * @param date - The given date
1824
+ * @param options - An object with options.
1825
+ *
1826
+ * @returns The local week-numbering year
1827
+ *
1828
+ * @example
1829
+ * // Which week numbering year is 26 December 2004 with the default settings?
1830
+ * const result = getWeekYear(new Date(2004, 11, 26))
1831
+ * //=> 2005
1832
+ *
1833
+ * @example
1834
+ * // Which week numbering year is 26 December 2004 if week starts on Saturday?
1835
+ * const result = getWeekYear(new Date(2004, 11, 26), { weekStartsOn: 6 })
1836
+ * //=> 2004
1837
+ *
1838
+ * @example
1839
+ * // Which week numbering year is 26 December 2004 if the first week contains 4 January?
1840
+ * const result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 })
1841
+ * //=> 2004
1842
+ */
1843
+ function getWeekYear$1(date, options) {
1844
+ const _date = (0, _index4.toDate)(date, options?.in);
1845
+ const year = _date.getFullYear();
1846
+
1847
+ const defaultOptions = (0, _index.getDefaultOptions)();
1848
+ const firstWeekContainsDate =
1849
+ options?.firstWeekContainsDate ??
1850
+ options?.locale?.options?.firstWeekContainsDate ??
1851
+ defaultOptions.firstWeekContainsDate ??
1852
+ defaultOptions.locale?.options?.firstWeekContainsDate ??
1853
+ 1;
1854
+
1855
+ const firstWeekOfNextYear = (0, _index2.constructFrom)(
1856
+ options?.in || date,
1857
+ 0,
1858
+ );
1859
+ firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);
1860
+ firstWeekOfNextYear.setHours(0, 0, 0, 0);
1861
+ const startOfNextYear = (0, _index3.startOfWeek)(
1862
+ firstWeekOfNextYear,
1863
+ options,
1864
+ );
1865
+
1866
+ const firstWeekOfThisYear = (0, _index2.constructFrom)(
1867
+ options?.in || date,
1868
+ 0,
1869
+ );
1870
+ firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate);
1871
+ firstWeekOfThisYear.setHours(0, 0, 0, 0);
1872
+ const startOfThisYear = (0, _index3.startOfWeek)(
1873
+ firstWeekOfThisYear,
1874
+ options,
1875
+ );
1876
+
1877
+ if (+_date >= +startOfNextYear) {
1878
+ return year + 1;
1879
+ } else if (+_date >= +startOfThisYear) {
1880
+ return year;
1881
+ } else {
1882
+ return year - 1;
1883
+ }
1884
+ }
1885
+ return getWeekYear;
1886
+ }
1887
+
1888
+ var hasRequiredStartOfWeekYear;
1889
+
1890
+ function requireStartOfWeekYear () {
1891
+ if (hasRequiredStartOfWeekYear) return startOfWeekYear;
1892
+ hasRequiredStartOfWeekYear = 1;
1893
+ startOfWeekYear.startOfWeekYear = startOfWeekYear$1;
1894
+ var _index = /*@__PURE__*/ requireDefaultOptions();
1895
+ var _index2 = /*@__PURE__*/ requireConstructFrom();
1896
+ var _index3 = /*@__PURE__*/ requireGetWeekYear();
1897
+ var _index4 = /*@__PURE__*/ requireStartOfWeek();
1898
+
1899
+ /**
1900
+ * The {@link startOfWeekYear} function options.
1901
+ */
1902
+
1903
+ /**
1904
+ * @name startOfWeekYear
1905
+ * @category Week-Numbering Year Helpers
1906
+ * @summary Return the start of a local week-numbering year for the given date.
1907
+ *
1908
+ * @description
1909
+ * Return the start of a local week-numbering year.
1910
+ * The exact calculation depends on the values of
1911
+ * `options.weekStartsOn` (which is the index of the first day of the week)
1912
+ * and `options.firstWeekContainsDate` (which is the day of January, which is always in
1913
+ * the first week of the week-numbering year)
1914
+ *
1915
+ * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
1916
+ *
1917
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
1918
+ * @typeParam ResultDate - The result `Date` type.
1919
+ *
1920
+ * @param date - The original date
1921
+ * @param options - An object with options
1922
+ *
1923
+ * @returns The start of a week-numbering year
1924
+ *
1925
+ * @example
1926
+ * // The start of an a week-numbering year for 2 July 2005 with default settings:
1927
+ * const result = startOfWeekYear(new Date(2005, 6, 2))
1928
+ * //=> Sun Dec 26 2004 00:00:00
1929
+ *
1930
+ * @example
1931
+ * // The start of a week-numbering year for 2 July 2005
1932
+ * // if Monday is the first day of week
1933
+ * // and 4 January is always in the first week of the year:
1934
+ * const result = startOfWeekYear(new Date(2005, 6, 2), {
1935
+ * weekStartsOn: 1,
1936
+ * firstWeekContainsDate: 4
1937
+ * })
1938
+ * //=> Mon Jan 03 2005 00:00:00
1939
+ */
1940
+ function startOfWeekYear$1(date, options) {
1941
+ const defaultOptions = (0, _index.getDefaultOptions)();
1942
+ const firstWeekContainsDate =
1943
+ options?.firstWeekContainsDate ??
1944
+ options?.locale?.options?.firstWeekContainsDate ??
1945
+ defaultOptions.firstWeekContainsDate ??
1946
+ defaultOptions.locale?.options?.firstWeekContainsDate ??
1947
+ 1;
1948
+
1949
+ const year = (0, _index3.getWeekYear)(date, options);
1950
+ const firstWeek = (0, _index2.constructFrom)(options?.in || date, 0);
1951
+ firstWeek.setFullYear(year, 0, firstWeekContainsDate);
1952
+ firstWeek.setHours(0, 0, 0, 0);
1953
+ const _date = (0, _index4.startOfWeek)(firstWeek, options);
1954
+ return _date;
1955
+ }
1956
+ return startOfWeekYear;
1957
+ }
1958
+
1959
+ var hasRequiredGetWeek;
1960
+
1961
+ function requireGetWeek () {
1962
+ if (hasRequiredGetWeek) return getWeek;
1963
+ hasRequiredGetWeek = 1;
1964
+ getWeek.getWeek = getWeek$1;
1965
+ var _index = /*@__PURE__*/ requireConstants();
1966
+ var _index2 = /*@__PURE__*/ requireStartOfWeek();
1967
+ var _index3 = /*@__PURE__*/ requireStartOfWeekYear();
1968
+ var _index4 = /*@__PURE__*/ requireToDate();
1969
+
1970
+ /**
1971
+ * The {@link getWeek} function options.
1972
+ */
1973
+
1974
+ /**
1975
+ * @name getWeek
1976
+ * @category Week Helpers
1977
+ * @summary Get the local week index of the given date.
1978
+ *
1979
+ * @description
1980
+ * Get the local week index of the given date.
1981
+ * The exact calculation depends on the values of
1982
+ * `options.weekStartsOn` (which is the index of the first day of the week)
1983
+ * and `options.firstWeekContainsDate` (which is the day of January, which is always in
1984
+ * the first week of the week-numbering year)
1985
+ *
1986
+ * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
1987
+ *
1988
+ * @param date - The given date
1989
+ * @param options - An object with options
1990
+ *
1991
+ * @returns The week
1992
+ *
1993
+ * @example
1994
+ * // Which week of the local week numbering year is 2 January 2005 with default options?
1995
+ * const result = getWeek(new Date(2005, 0, 2))
1996
+ * //=> 2
1997
+ *
1998
+ * @example
1999
+ * // Which week of the local week numbering year is 2 January 2005,
2000
+ * // if Monday is the first day of the week,
2001
+ * // and the first week of the year always contains 4 January?
2002
+ * const result = getWeek(new Date(2005, 0, 2), {
2003
+ * weekStartsOn: 1,
2004
+ * firstWeekContainsDate: 4
2005
+ * })
2006
+ * //=> 53
2007
+ */
2008
+ function getWeek$1(date, options) {
2009
+ const _date = (0, _index4.toDate)(date, options?.in);
2010
+ const diff =
2011
+ +(0, _index2.startOfWeek)(_date, options) -
2012
+ +(0, _index3.startOfWeekYear)(_date, options);
2013
+
2014
+ // Round the number of weeks to the nearest integer because the number of
2015
+ // milliseconds in a week is not constant (e.g. it's different in the week of
2016
+ // the daylight saving time clock shift).
2017
+ return Math.round(diff / _index.millisecondsInWeek) + 1;
2018
+ }
2019
+ return getWeek;
2020
+ }
2021
+
2022
+ var addLeadingZeros = {};
2023
+
2024
+ var hasRequiredAddLeadingZeros;
2025
+
2026
+ function requireAddLeadingZeros () {
2027
+ if (hasRequiredAddLeadingZeros) return addLeadingZeros;
2028
+ hasRequiredAddLeadingZeros = 1;
2029
+ addLeadingZeros.addLeadingZeros = addLeadingZeros$1;
2030
+ function addLeadingZeros$1(number, targetLength) {
2031
+ const sign = number < 0 ? "-" : "";
2032
+ const output = Math.abs(number).toString().padStart(targetLength, "0");
2033
+ return sign + output;
2034
+ }
2035
+ return addLeadingZeros;
2036
+ }
2037
+
2038
+ var lightFormatters = {};
2039
+
2040
+ var hasRequiredLightFormatters;
2041
+
2042
+ function requireLightFormatters () {
2043
+ if (hasRequiredLightFormatters) return lightFormatters;
2044
+ hasRequiredLightFormatters = 1;
2045
+ lightFormatters.lightFormatters = void 0;
2046
+ var _index = /*@__PURE__*/ requireAddLeadingZeros();
2047
+
2048
+ /*
2049
+ * | | Unit | | Unit |
2050
+ * |-----|--------------------------------|-----|--------------------------------|
2051
+ * | a | AM, PM | A* | |
2052
+ * | d | Day of month | D | |
2053
+ * | h | Hour [1-12] | H | Hour [0-23] |
2054
+ * | m | Minute | M | Month |
2055
+ * | s | Second | S | Fraction of second |
2056
+ * | y | Year (abs) | Y | |
2057
+ *
2058
+ * Letters marked by * are not implemented but reserved by Unicode standard.
2059
+ */
2060
+
2061
+ (lightFormatters.lightFormatters = {
2062
+ // Year
2063
+ y(date, token) {
2064
+ // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens
2065
+ // | Year | y | yy | yyy | yyyy | yyyyy |
2066
+ // |----------|-------|----|-------|-------|-------|
2067
+ // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
2068
+ // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
2069
+ // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
2070
+ // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
2071
+ // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
2072
+
2073
+ const signedYear = date.getFullYear();
2074
+ // Returns 1 for 1 BC (which is year 0 in JavaScript)
2075
+ const year = signedYear > 0 ? signedYear : 1 - signedYear;
2076
+ return (0, _index.addLeadingZeros)(
2077
+ token === "yy" ? year % 100 : year,
2078
+ token.length,
2079
+ );
2080
+ },
2081
+
2082
+ // Month
2083
+ M(date, token) {
2084
+ const month = date.getMonth();
2085
+ return token === "M"
2086
+ ? String(month + 1)
2087
+ : (0, _index.addLeadingZeros)(month + 1, 2);
2088
+ },
2089
+
2090
+ // Day of the month
2091
+ d(date, token) {
2092
+ return (0, _index.addLeadingZeros)(date.getDate(), token.length);
2093
+ },
2094
+
2095
+ // AM or PM
2096
+ a(date, token) {
2097
+ const dayPeriodEnumValue = date.getHours() / 12 >= 1 ? "pm" : "am";
2098
+
2099
+ switch (token) {
2100
+ case "a":
2101
+ case "aa":
2102
+ return dayPeriodEnumValue.toUpperCase();
2103
+ case "aaa":
2104
+ return dayPeriodEnumValue;
2105
+ case "aaaaa":
2106
+ return dayPeriodEnumValue[0];
2107
+ case "aaaa":
2108
+ default:
2109
+ return dayPeriodEnumValue === "am" ? "a.m." : "p.m.";
2110
+ }
2111
+ },
2112
+
2113
+ // Hour [1-12]
2114
+ h(date, token) {
2115
+ return (0, _index.addLeadingZeros)(
2116
+ date.getHours() % 12 || 12,
2117
+ token.length,
2118
+ );
2119
+ },
2120
+
2121
+ // Hour [0-23]
2122
+ H(date, token) {
2123
+ return (0, _index.addLeadingZeros)(date.getHours(), token.length);
2124
+ },
2125
+
2126
+ // Minute
2127
+ m(date, token) {
2128
+ return (0, _index.addLeadingZeros)(date.getMinutes(), token.length);
2129
+ },
2130
+
2131
+ // Second
2132
+ s(date, token) {
2133
+ return (0, _index.addLeadingZeros)(date.getSeconds(), token.length);
2134
+ },
2135
+
2136
+ // Fraction of second
2137
+ S(date, token) {
2138
+ const numberOfDigits = token.length;
2139
+ const milliseconds = date.getMilliseconds();
2140
+ const fractionalSeconds = Math.trunc(
2141
+ milliseconds * Math.pow(10, numberOfDigits - 3),
2142
+ );
2143
+ return (0, _index.addLeadingZeros)(fractionalSeconds, token.length);
2144
+ },
2145
+ });
2146
+ return lightFormatters;
2147
+ }
2148
+
2149
+ var hasRequiredFormatters;
2150
+
2151
+ function requireFormatters () {
2152
+ if (hasRequiredFormatters) return formatters;
2153
+ hasRequiredFormatters = 1;
2154
+ formatters.formatters = void 0;
2155
+ var _index = /*@__PURE__*/ requireGetDayOfYear();
2156
+ var _index2 = /*@__PURE__*/ requireGetISOWeek();
2157
+ var _index3 = /*@__PURE__*/ requireGetISOWeekYear();
2158
+ var _index4 = /*@__PURE__*/ requireGetWeek();
2159
+ var _index5 = /*@__PURE__*/ requireGetWeekYear();
2160
+
2161
+ var _index6 = /*@__PURE__*/ requireAddLeadingZeros();
2162
+ var _index7 = /*@__PURE__*/ requireLightFormatters();
2163
+
2164
+ const dayPeriodEnum = {
2165
+ midnight: "midnight",
2166
+ noon: "noon",
2167
+ morning: "morning",
2168
+ afternoon: "afternoon",
2169
+ evening: "evening",
2170
+ night: "night",
2171
+ };
2172
+
2173
+ /*
2174
+ * | | Unit | | Unit |
2175
+ * |-----|--------------------------------|-----|--------------------------------|
2176
+ * | a | AM, PM | A* | Milliseconds in day |
2177
+ * | b | AM, PM, noon, midnight | B | Flexible day period |
2178
+ * | c | Stand-alone local day of week | C* | Localized hour w/ day period |
2179
+ * | d | Day of month | D | Day of year |
2180
+ * | e | Local day of week | E | Day of week |
2181
+ * | f | | F* | Day of week in month |
2182
+ * | g* | Modified Julian day | G | Era |
2183
+ * | h | Hour [1-12] | H | Hour [0-23] |
2184
+ * | i! | ISO day of week | I! | ISO week of year |
2185
+ * | j* | Localized hour w/ day period | J* | Localized hour w/o day period |
2186
+ * | k | Hour [1-24] | K | Hour [0-11] |
2187
+ * | l* | (deprecated) | L | Stand-alone month |
2188
+ * | m | Minute | M | Month |
2189
+ * | n | | N | |
2190
+ * | o! | Ordinal number modifier | O | Timezone (GMT) |
2191
+ * | p! | Long localized time | P! | Long localized date |
2192
+ * | q | Stand-alone quarter | Q | Quarter |
2193
+ * | r* | Related Gregorian year | R! | ISO week-numbering year |
2194
+ * | s | Second | S | Fraction of second |
2195
+ * | t! | Seconds timestamp | T! | Milliseconds timestamp |
2196
+ * | u | Extended year | U* | Cyclic year |
2197
+ * | v* | Timezone (generic non-locat.) | V* | Timezone (location) |
2198
+ * | w | Local week of year | W* | Week of month |
2199
+ * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |
2200
+ * | y | Year (abs) | Y | Local week-numbering year |
2201
+ * | z | Timezone (specific non-locat.) | Z* | Timezone (aliases) |
2202
+ *
2203
+ * Letters marked by * are not implemented but reserved by Unicode standard.
2204
+ *
2205
+ * Letters marked by ! are non-standard, but implemented by date-fns:
2206
+ * - `o` modifies the previous token to turn it into an ordinal (see `format` docs)
2207
+ * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,
2208
+ * i.e. 7 for Sunday, 1 for Monday, etc.
2209
+ * - `I` is ISO week of year, as opposed to `w` which is local week of year.
2210
+ * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.
2211
+ * `R` is supposed to be used in conjunction with `I` and `i`
2212
+ * for universal ISO week-numbering date, whereas
2213
+ * `Y` is supposed to be used in conjunction with `w` and `e`
2214
+ * for week-numbering date specific to the locale.
2215
+ * - `P` is long localized date format
2216
+ * - `p` is long localized time format
2217
+ */
2218
+
2219
+ (formatters.formatters = {
2220
+ // Era
2221
+ G: function (date, token, localize) {
2222
+ const era = date.getFullYear() > 0 ? 1 : 0;
2223
+ switch (token) {
2224
+ // AD, BC
2225
+ case "G":
2226
+ case "GG":
2227
+ case "GGG":
2228
+ return localize.era(era, { width: "abbreviated" });
2229
+ // A, B
2230
+ case "GGGGG":
2231
+ return localize.era(era, { width: "narrow" });
2232
+ // Anno Domini, Before Christ
2233
+ case "GGGG":
2234
+ default:
2235
+ return localize.era(era, { width: "wide" });
2236
+ }
2237
+ },
2238
+
2239
+ // Year
2240
+ y: function (date, token, localize) {
2241
+ // Ordinal number
2242
+ if (token === "yo") {
2243
+ const signedYear = date.getFullYear();
2244
+ // Returns 1 for 1 BC (which is year 0 in JavaScript)
2245
+ const year = signedYear > 0 ? signedYear : 1 - signedYear;
2246
+ return localize.ordinalNumber(year, { unit: "year" });
2247
+ }
2248
+
2249
+ return _index7.lightFormatters.y(date, token);
2250
+ },
2251
+
2252
+ // Local week-numbering year
2253
+ Y: function (date, token, localize, options) {
2254
+ const signedWeekYear = (0, _index5.getWeekYear)(date, options);
2255
+ // Returns 1 for 1 BC (which is year 0 in JavaScript)
2256
+ const weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear;
2257
+
2258
+ // Two digit year
2259
+ if (token === "YY") {
2260
+ const twoDigitYear = weekYear % 100;
2261
+ return (0, _index6.addLeadingZeros)(twoDigitYear, 2);
2262
+ }
2263
+
2264
+ // Ordinal number
2265
+ if (token === "Yo") {
2266
+ return localize.ordinalNumber(weekYear, { unit: "year" });
2267
+ }
2268
+
2269
+ // Padding
2270
+ return (0, _index6.addLeadingZeros)(weekYear, token.length);
2271
+ },
2272
+
2273
+ // ISO week-numbering year
2274
+ R: function (date, token) {
2275
+ const isoWeekYear = (0, _index3.getISOWeekYear)(date);
2276
+
2277
+ // Padding
2278
+ return (0, _index6.addLeadingZeros)(isoWeekYear, token.length);
2279
+ },
2280
+
2281
+ // Extended year. This is a single number designating the year of this calendar system.
2282
+ // The main difference between `y` and `u` localizers are B.C. years:
2283
+ // | Year | `y` | `u` |
2284
+ // |------|-----|-----|
2285
+ // | AC 1 | 1 | 1 |
2286
+ // | BC 1 | 1 | 0 |
2287
+ // | BC 2 | 2 | -1 |
2288
+ // Also `yy` always returns the last two digits of a year,
2289
+ // while `uu` pads single digit years to 2 characters and returns other years unchanged.
2290
+ u: function (date, token) {
2291
+ const year = date.getFullYear();
2292
+ return (0, _index6.addLeadingZeros)(year, token.length);
2293
+ },
2294
+
2295
+ // Quarter
2296
+ Q: function (date, token, localize) {
2297
+ const quarter = Math.ceil((date.getMonth() + 1) / 3);
2298
+ switch (token) {
2299
+ // 1, 2, 3, 4
2300
+ case "Q":
2301
+ return String(quarter);
2302
+ // 01, 02, 03, 04
2303
+ case "QQ":
2304
+ return (0, _index6.addLeadingZeros)(quarter, 2);
2305
+ // 1st, 2nd, 3rd, 4th
2306
+ case "Qo":
2307
+ return localize.ordinalNumber(quarter, { unit: "quarter" });
2308
+ // Q1, Q2, Q3, Q4
2309
+ case "QQQ":
2310
+ return localize.quarter(quarter, {
2311
+ width: "abbreviated",
2312
+ context: "formatting",
2313
+ });
2314
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
2315
+ case "QQQQQ":
2316
+ return localize.quarter(quarter, {
2317
+ width: "narrow",
2318
+ context: "formatting",
2319
+ });
2320
+ // 1st quarter, 2nd quarter, ...
2321
+ case "QQQQ":
2322
+ default:
2323
+ return localize.quarter(quarter, {
2324
+ width: "wide",
2325
+ context: "formatting",
2326
+ });
2327
+ }
2328
+ },
2329
+
2330
+ // Stand-alone quarter
2331
+ q: function (date, token, localize) {
2332
+ const quarter = Math.ceil((date.getMonth() + 1) / 3);
2333
+ switch (token) {
2334
+ // 1, 2, 3, 4
2335
+ case "q":
2336
+ return String(quarter);
2337
+ // 01, 02, 03, 04
2338
+ case "qq":
2339
+ return (0, _index6.addLeadingZeros)(quarter, 2);
2340
+ // 1st, 2nd, 3rd, 4th
2341
+ case "qo":
2342
+ return localize.ordinalNumber(quarter, { unit: "quarter" });
2343
+ // Q1, Q2, Q3, Q4
2344
+ case "qqq":
2345
+ return localize.quarter(quarter, {
2346
+ width: "abbreviated",
2347
+ context: "standalone",
2348
+ });
2349
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
2350
+ case "qqqqq":
2351
+ return localize.quarter(quarter, {
2352
+ width: "narrow",
2353
+ context: "standalone",
2354
+ });
2355
+ // 1st quarter, 2nd quarter, ...
2356
+ case "qqqq":
2357
+ default:
2358
+ return localize.quarter(quarter, {
2359
+ width: "wide",
2360
+ context: "standalone",
2361
+ });
2362
+ }
2363
+ },
2364
+
2365
+ // Month
2366
+ M: function (date, token, localize) {
2367
+ const month = date.getMonth();
2368
+ switch (token) {
2369
+ case "M":
2370
+ case "MM":
2371
+ return _index7.lightFormatters.M(date, token);
2372
+ // 1st, 2nd, ..., 12th
2373
+ case "Mo":
2374
+ return localize.ordinalNumber(month + 1, { unit: "month" });
2375
+ // Jan, Feb, ..., Dec
2376
+ case "MMM":
2377
+ return localize.month(month, {
2378
+ width: "abbreviated",
2379
+ context: "formatting",
2380
+ });
2381
+ // J, F, ..., D
2382
+ case "MMMMM":
2383
+ return localize.month(month, {
2384
+ width: "narrow",
2385
+ context: "formatting",
2386
+ });
2387
+ // January, February, ..., December
2388
+ case "MMMM":
2389
+ default:
2390
+ return localize.month(month, { width: "wide", context: "formatting" });
2391
+ }
2392
+ },
2393
+
2394
+ // Stand-alone month
2395
+ L: function (date, token, localize) {
2396
+ const month = date.getMonth();
2397
+ switch (token) {
2398
+ // 1, 2, ..., 12
2399
+ case "L":
2400
+ return String(month + 1);
2401
+ // 01, 02, ..., 12
2402
+ case "LL":
2403
+ return (0, _index6.addLeadingZeros)(month + 1, 2);
2404
+ // 1st, 2nd, ..., 12th
2405
+ case "Lo":
2406
+ return localize.ordinalNumber(month + 1, { unit: "month" });
2407
+ // Jan, Feb, ..., Dec
2408
+ case "LLL":
2409
+ return localize.month(month, {
2410
+ width: "abbreviated",
2411
+ context: "standalone",
2412
+ });
2413
+ // J, F, ..., D
2414
+ case "LLLLL":
2415
+ return localize.month(month, {
2416
+ width: "narrow",
2417
+ context: "standalone",
2418
+ });
2419
+ // January, February, ..., December
2420
+ case "LLLL":
2421
+ default:
2422
+ return localize.month(month, { width: "wide", context: "standalone" });
2423
+ }
2424
+ },
2425
+
2426
+ // Local week of year
2427
+ w: function (date, token, localize, options) {
2428
+ const week = (0, _index4.getWeek)(date, options);
2429
+
2430
+ if (token === "wo") {
2431
+ return localize.ordinalNumber(week, { unit: "week" });
2432
+ }
2433
+
2434
+ return (0, _index6.addLeadingZeros)(week, token.length);
2435
+ },
2436
+
2437
+ // ISO week of year
2438
+ I: function (date, token, localize) {
2439
+ const isoWeek = (0, _index2.getISOWeek)(date);
2440
+
2441
+ if (token === "Io") {
2442
+ return localize.ordinalNumber(isoWeek, { unit: "week" });
2443
+ }
2444
+
2445
+ return (0, _index6.addLeadingZeros)(isoWeek, token.length);
2446
+ },
2447
+
2448
+ // Day of the month
2449
+ d: function (date, token, localize) {
2450
+ if (token === "do") {
2451
+ return localize.ordinalNumber(date.getDate(), { unit: "date" });
2452
+ }
2453
+
2454
+ return _index7.lightFormatters.d(date, token);
2455
+ },
2456
+
2457
+ // Day of year
2458
+ D: function (date, token, localize) {
2459
+ const dayOfYear = (0, _index.getDayOfYear)(date);
2460
+
2461
+ if (token === "Do") {
2462
+ return localize.ordinalNumber(dayOfYear, { unit: "dayOfYear" });
2463
+ }
2464
+
2465
+ return (0, _index6.addLeadingZeros)(dayOfYear, token.length);
2466
+ },
2467
+
2468
+ // Day of week
2469
+ E: function (date, token, localize) {
2470
+ const dayOfWeek = date.getDay();
2471
+ switch (token) {
2472
+ // Tue
2473
+ case "E":
2474
+ case "EE":
2475
+ case "EEE":
2476
+ return localize.day(dayOfWeek, {
2477
+ width: "abbreviated",
2478
+ context: "formatting",
2479
+ });
2480
+ // T
2481
+ case "EEEEE":
2482
+ return localize.day(dayOfWeek, {
2483
+ width: "narrow",
2484
+ context: "formatting",
2485
+ });
2486
+ // Tu
2487
+ case "EEEEEE":
2488
+ return localize.day(dayOfWeek, {
2489
+ width: "short",
2490
+ context: "formatting",
2491
+ });
2492
+ // Tuesday
2493
+ case "EEEE":
2494
+ default:
2495
+ return localize.day(dayOfWeek, {
2496
+ width: "wide",
2497
+ context: "formatting",
2498
+ });
2499
+ }
2500
+ },
2501
+
2502
+ // Local day of week
2503
+ e: function (date, token, localize, options) {
2504
+ const dayOfWeek = date.getDay();
2505
+ const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
2506
+ switch (token) {
2507
+ // Numerical value (Nth day of week with current locale or weekStartsOn)
2508
+ case "e":
2509
+ return String(localDayOfWeek);
2510
+ // Padded numerical value
2511
+ case "ee":
2512
+ return (0, _index6.addLeadingZeros)(localDayOfWeek, 2);
2513
+ // 1st, 2nd, ..., 7th
2514
+ case "eo":
2515
+ return localize.ordinalNumber(localDayOfWeek, { unit: "day" });
2516
+ case "eee":
2517
+ return localize.day(dayOfWeek, {
2518
+ width: "abbreviated",
2519
+ context: "formatting",
2520
+ });
2521
+ // T
2522
+ case "eeeee":
2523
+ return localize.day(dayOfWeek, {
2524
+ width: "narrow",
2525
+ context: "formatting",
2526
+ });
2527
+ // Tu
2528
+ case "eeeeee":
2529
+ return localize.day(dayOfWeek, {
2530
+ width: "short",
2531
+ context: "formatting",
2532
+ });
2533
+ // Tuesday
2534
+ case "eeee":
2535
+ default:
2536
+ return localize.day(dayOfWeek, {
2537
+ width: "wide",
2538
+ context: "formatting",
2539
+ });
2540
+ }
2541
+ },
2542
+
2543
+ // Stand-alone local day of week
2544
+ c: function (date, token, localize, options) {
2545
+ const dayOfWeek = date.getDay();
2546
+ const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
2547
+ switch (token) {
2548
+ // Numerical value (same as in `e`)
2549
+ case "c":
2550
+ return String(localDayOfWeek);
2551
+ // Padded numerical value
2552
+ case "cc":
2553
+ return (0, _index6.addLeadingZeros)(localDayOfWeek, token.length);
2554
+ // 1st, 2nd, ..., 7th
2555
+ case "co":
2556
+ return localize.ordinalNumber(localDayOfWeek, { unit: "day" });
2557
+ case "ccc":
2558
+ return localize.day(dayOfWeek, {
2559
+ width: "abbreviated",
2560
+ context: "standalone",
2561
+ });
2562
+ // T
2563
+ case "ccccc":
2564
+ return localize.day(dayOfWeek, {
2565
+ width: "narrow",
2566
+ context: "standalone",
2567
+ });
2568
+ // Tu
2569
+ case "cccccc":
2570
+ return localize.day(dayOfWeek, {
2571
+ width: "short",
2572
+ context: "standalone",
2573
+ });
2574
+ // Tuesday
2575
+ case "cccc":
2576
+ default:
2577
+ return localize.day(dayOfWeek, {
2578
+ width: "wide",
2579
+ context: "standalone",
2580
+ });
2581
+ }
2582
+ },
2583
+
2584
+ // ISO day of week
2585
+ i: function (date, token, localize) {
2586
+ const dayOfWeek = date.getDay();
2587
+ const isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;
2588
+ switch (token) {
2589
+ // 2
2590
+ case "i":
2591
+ return String(isoDayOfWeek);
2592
+ // 02
2593
+ case "ii":
2594
+ return (0, _index6.addLeadingZeros)(isoDayOfWeek, token.length);
2595
+ // 2nd
2596
+ case "io":
2597
+ return localize.ordinalNumber(isoDayOfWeek, { unit: "day" });
2598
+ // Tue
2599
+ case "iii":
2600
+ return localize.day(dayOfWeek, {
2601
+ width: "abbreviated",
2602
+ context: "formatting",
2603
+ });
2604
+ // T
2605
+ case "iiiii":
2606
+ return localize.day(dayOfWeek, {
2607
+ width: "narrow",
2608
+ context: "formatting",
2609
+ });
2610
+ // Tu
2611
+ case "iiiiii":
2612
+ return localize.day(dayOfWeek, {
2613
+ width: "short",
2614
+ context: "formatting",
2615
+ });
2616
+ // Tuesday
2617
+ case "iiii":
2618
+ default:
2619
+ return localize.day(dayOfWeek, {
2620
+ width: "wide",
2621
+ context: "formatting",
2622
+ });
2623
+ }
2624
+ },
2625
+
2626
+ // AM or PM
2627
+ a: function (date, token, localize) {
2628
+ const hours = date.getHours();
2629
+ const dayPeriodEnumValue = hours / 12 >= 1 ? "pm" : "am";
2630
+
2631
+ switch (token) {
2632
+ case "a":
2633
+ case "aa":
2634
+ return localize.dayPeriod(dayPeriodEnumValue, {
2635
+ width: "abbreviated",
2636
+ context: "formatting",
2637
+ });
2638
+ case "aaa":
2639
+ return localize
2640
+ .dayPeriod(dayPeriodEnumValue, {
2641
+ width: "abbreviated",
2642
+ context: "formatting",
2643
+ })
2644
+ .toLowerCase();
2645
+ case "aaaaa":
2646
+ return localize.dayPeriod(dayPeriodEnumValue, {
2647
+ width: "narrow",
2648
+ context: "formatting",
2649
+ });
2650
+ case "aaaa":
2651
+ default:
2652
+ return localize.dayPeriod(dayPeriodEnumValue, {
2653
+ width: "wide",
2654
+ context: "formatting",
2655
+ });
2656
+ }
2657
+ },
2658
+
2659
+ // AM, PM, midnight, noon
2660
+ b: function (date, token, localize) {
2661
+ const hours = date.getHours();
2662
+ let dayPeriodEnumValue;
2663
+ if (hours === 12) {
2664
+ dayPeriodEnumValue = dayPeriodEnum.noon;
2665
+ } else if (hours === 0) {
2666
+ dayPeriodEnumValue = dayPeriodEnum.midnight;
2667
+ } else {
2668
+ dayPeriodEnumValue = hours / 12 >= 1 ? "pm" : "am";
2669
+ }
2670
+
2671
+ switch (token) {
2672
+ case "b":
2673
+ case "bb":
2674
+ return localize.dayPeriod(dayPeriodEnumValue, {
2675
+ width: "abbreviated",
2676
+ context: "formatting",
2677
+ });
2678
+ case "bbb":
2679
+ return localize
2680
+ .dayPeriod(dayPeriodEnumValue, {
2681
+ width: "abbreviated",
2682
+ context: "formatting",
2683
+ })
2684
+ .toLowerCase();
2685
+ case "bbbbb":
2686
+ return localize.dayPeriod(dayPeriodEnumValue, {
2687
+ width: "narrow",
2688
+ context: "formatting",
2689
+ });
2690
+ case "bbbb":
2691
+ default:
2692
+ return localize.dayPeriod(dayPeriodEnumValue, {
2693
+ width: "wide",
2694
+ context: "formatting",
2695
+ });
2696
+ }
2697
+ },
2698
+
2699
+ // in the morning, in the afternoon, in the evening, at night
2700
+ B: function (date, token, localize) {
2701
+ const hours = date.getHours();
2702
+ let dayPeriodEnumValue;
2703
+ if (hours >= 17) {
2704
+ dayPeriodEnumValue = dayPeriodEnum.evening;
2705
+ } else if (hours >= 12) {
2706
+ dayPeriodEnumValue = dayPeriodEnum.afternoon;
2707
+ } else if (hours >= 4) {
2708
+ dayPeriodEnumValue = dayPeriodEnum.morning;
2709
+ } else {
2710
+ dayPeriodEnumValue = dayPeriodEnum.night;
2711
+ }
2712
+
2713
+ switch (token) {
2714
+ case "B":
2715
+ case "BB":
2716
+ case "BBB":
2717
+ return localize.dayPeriod(dayPeriodEnumValue, {
2718
+ width: "abbreviated",
2719
+ context: "formatting",
2720
+ });
2721
+ case "BBBBB":
2722
+ return localize.dayPeriod(dayPeriodEnumValue, {
2723
+ width: "narrow",
2724
+ context: "formatting",
2725
+ });
2726
+ case "BBBB":
2727
+ default:
2728
+ return localize.dayPeriod(dayPeriodEnumValue, {
2729
+ width: "wide",
2730
+ context: "formatting",
2731
+ });
2732
+ }
2733
+ },
2734
+
2735
+ // Hour [1-12]
2736
+ h: function (date, token, localize) {
2737
+ if (token === "ho") {
2738
+ let hours = date.getHours() % 12;
2739
+ if (hours === 0) hours = 12;
2740
+ return localize.ordinalNumber(hours, { unit: "hour" });
2741
+ }
2742
+
2743
+ return _index7.lightFormatters.h(date, token);
2744
+ },
2745
+
2746
+ // Hour [0-23]
2747
+ H: function (date, token, localize) {
2748
+ if (token === "Ho") {
2749
+ return localize.ordinalNumber(date.getHours(), { unit: "hour" });
2750
+ }
2751
+
2752
+ return _index7.lightFormatters.H(date, token);
2753
+ },
2754
+
2755
+ // Hour [0-11]
2756
+ K: function (date, token, localize) {
2757
+ const hours = date.getHours() % 12;
2758
+
2759
+ if (token === "Ko") {
2760
+ return localize.ordinalNumber(hours, { unit: "hour" });
2761
+ }
2762
+
2763
+ return (0, _index6.addLeadingZeros)(hours, token.length);
2764
+ },
2765
+
2766
+ // Hour [1-24]
2767
+ k: function (date, token, localize) {
2768
+ let hours = date.getHours();
2769
+ if (hours === 0) hours = 24;
2770
+
2771
+ if (token === "ko") {
2772
+ return localize.ordinalNumber(hours, { unit: "hour" });
2773
+ }
2774
+
2775
+ return (0, _index6.addLeadingZeros)(hours, token.length);
2776
+ },
2777
+
2778
+ // Minute
2779
+ m: function (date, token, localize) {
2780
+ if (token === "mo") {
2781
+ return localize.ordinalNumber(date.getMinutes(), { unit: "minute" });
2782
+ }
2783
+
2784
+ return _index7.lightFormatters.m(date, token);
2785
+ },
2786
+
2787
+ // Second
2788
+ s: function (date, token, localize) {
2789
+ if (token === "so") {
2790
+ return localize.ordinalNumber(date.getSeconds(), { unit: "second" });
2791
+ }
2792
+
2793
+ return _index7.lightFormatters.s(date, token);
2794
+ },
2795
+
2796
+ // Fraction of second
2797
+ S: function (date, token) {
2798
+ return _index7.lightFormatters.S(date, token);
2799
+ },
2800
+
2801
+ // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
2802
+ X: function (date, token, _localize) {
2803
+ const timezoneOffset = date.getTimezoneOffset();
2804
+
2805
+ if (timezoneOffset === 0) {
2806
+ return "Z";
2807
+ }
2808
+
2809
+ switch (token) {
2810
+ // Hours and optional minutes
2811
+ case "X":
2812
+ return formatTimezoneWithOptionalMinutes(timezoneOffset);
2813
+
2814
+ // Hours, minutes and optional seconds without `:` delimiter
2815
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
2816
+ // so this token always has the same output as `XX`
2817
+ case "XXXX":
2818
+ case "XX": // Hours and minutes without `:` delimiter
2819
+ return formatTimezone(timezoneOffset);
2820
+
2821
+ // Hours, minutes and optional seconds with `:` delimiter
2822
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
2823
+ // so this token always has the same output as `XXX`
2824
+ case "XXXXX":
2825
+ case "XXX": // Hours and minutes with `:` delimiter
2826
+ default:
2827
+ return formatTimezone(timezoneOffset, ":");
2828
+ }
2829
+ },
2830
+
2831
+ // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
2832
+ x: function (date, token, _localize) {
2833
+ const timezoneOffset = date.getTimezoneOffset();
2834
+
2835
+ switch (token) {
2836
+ // Hours and optional minutes
2837
+ case "x":
2838
+ return formatTimezoneWithOptionalMinutes(timezoneOffset);
2839
+
2840
+ // Hours, minutes and optional seconds without `:` delimiter
2841
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
2842
+ // so this token always has the same output as `xx`
2843
+ case "xxxx":
2844
+ case "xx": // Hours and minutes without `:` delimiter
2845
+ return formatTimezone(timezoneOffset);
2846
+
2847
+ // Hours, minutes and optional seconds with `:` delimiter
2848
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
2849
+ // so this token always has the same output as `xxx`
2850
+ case "xxxxx":
2851
+ case "xxx": // Hours and minutes with `:` delimiter
2852
+ default:
2853
+ return formatTimezone(timezoneOffset, ":");
2854
+ }
2855
+ },
2856
+
2857
+ // Timezone (GMT)
2858
+ O: function (date, token, _localize) {
2859
+ const timezoneOffset = date.getTimezoneOffset();
2860
+
2861
+ switch (token) {
2862
+ // Short
2863
+ case "O":
2864
+ case "OO":
2865
+ case "OOO":
2866
+ return "GMT" + formatTimezoneShort(timezoneOffset, ":");
2867
+ // Long
2868
+ case "OOOO":
2869
+ default:
2870
+ return "GMT" + formatTimezone(timezoneOffset, ":");
2871
+ }
2872
+ },
2873
+
2874
+ // Timezone (specific non-location)
2875
+ z: function (date, token, _localize) {
2876
+ const timezoneOffset = date.getTimezoneOffset();
2877
+
2878
+ switch (token) {
2879
+ // Short
2880
+ case "z":
2881
+ case "zz":
2882
+ case "zzz":
2883
+ return "GMT" + formatTimezoneShort(timezoneOffset, ":");
2884
+ // Long
2885
+ case "zzzz":
2886
+ default:
2887
+ return "GMT" + formatTimezone(timezoneOffset, ":");
2888
+ }
2889
+ },
2890
+
2891
+ // Seconds timestamp
2892
+ t: function (date, token, _localize) {
2893
+ const timestamp = Math.trunc(+date / 1000);
2894
+ return (0, _index6.addLeadingZeros)(timestamp, token.length);
2895
+ },
2896
+
2897
+ // Milliseconds timestamp
2898
+ T: function (date, token, _localize) {
2899
+ return (0, _index6.addLeadingZeros)(+date, token.length);
2900
+ },
2901
+ });
2902
+
2903
+ function formatTimezoneShort(offset, delimiter = "") {
2904
+ const sign = offset > 0 ? "-" : "+";
2905
+ const absOffset = Math.abs(offset);
2906
+ const hours = Math.trunc(absOffset / 60);
2907
+ const minutes = absOffset % 60;
2908
+ if (minutes === 0) {
2909
+ return sign + String(hours);
2910
+ }
2911
+ return (
2912
+ sign + String(hours) + delimiter + (0, _index6.addLeadingZeros)(minutes, 2)
2913
+ );
2914
+ }
2915
+
2916
+ function formatTimezoneWithOptionalMinutes(offset, delimiter) {
2917
+ if (offset % 60 === 0) {
2918
+ const sign = offset > 0 ? "-" : "+";
2919
+ return sign + (0, _index6.addLeadingZeros)(Math.abs(offset) / 60, 2);
2920
+ }
2921
+ return formatTimezone(offset, delimiter);
2922
+ }
2923
+
2924
+ function formatTimezone(offset, delimiter = "") {
2925
+ const sign = offset > 0 ? "-" : "+";
2926
+ const absOffset = Math.abs(offset);
2927
+ const hours = (0, _index6.addLeadingZeros)(Math.trunc(absOffset / 60), 2);
2928
+ const minutes = (0, _index6.addLeadingZeros)(absOffset % 60, 2);
2929
+ return sign + hours + delimiter + minutes;
2930
+ }
2931
+ return formatters;
2932
+ }
2933
+
2934
+ var longFormatters = {};
2935
+
2936
+ var hasRequiredLongFormatters;
2937
+
2938
+ function requireLongFormatters () {
2939
+ if (hasRequiredLongFormatters) return longFormatters;
2940
+ hasRequiredLongFormatters = 1;
2941
+ longFormatters.longFormatters = void 0;
2942
+
2943
+ const dateLongFormatter = (pattern, formatLong) => {
2944
+ switch (pattern) {
2945
+ case "P":
2946
+ return formatLong.date({ width: "short" });
2947
+ case "PP":
2948
+ return formatLong.date({ width: "medium" });
2949
+ case "PPP":
2950
+ return formatLong.date({ width: "long" });
2951
+ case "PPPP":
2952
+ default:
2953
+ return formatLong.date({ width: "full" });
2954
+ }
2955
+ };
2956
+
2957
+ const timeLongFormatter = (pattern, formatLong) => {
2958
+ switch (pattern) {
2959
+ case "p":
2960
+ return formatLong.time({ width: "short" });
2961
+ case "pp":
2962
+ return formatLong.time({ width: "medium" });
2963
+ case "ppp":
2964
+ return formatLong.time({ width: "long" });
2965
+ case "pppp":
2966
+ default:
2967
+ return formatLong.time({ width: "full" });
2968
+ }
2969
+ };
2970
+
2971
+ const dateTimeLongFormatter = (pattern, formatLong) => {
2972
+ const matchResult = pattern.match(/(P+)(p+)?/) || [];
2973
+ const datePattern = matchResult[1];
2974
+ const timePattern = matchResult[2];
2975
+
2976
+ if (!timePattern) {
2977
+ return dateLongFormatter(pattern, formatLong);
2978
+ }
2979
+
2980
+ let dateTimeFormat;
2981
+
2982
+ switch (datePattern) {
2983
+ case "P":
2984
+ dateTimeFormat = formatLong.dateTime({ width: "short" });
2985
+ break;
2986
+ case "PP":
2987
+ dateTimeFormat = formatLong.dateTime({ width: "medium" });
2988
+ break;
2989
+ case "PPP":
2990
+ dateTimeFormat = formatLong.dateTime({ width: "long" });
2991
+ break;
2992
+ case "PPPP":
2993
+ default:
2994
+ dateTimeFormat = formatLong.dateTime({ width: "full" });
2995
+ break;
2996
+ }
2997
+
2998
+ return dateTimeFormat
2999
+ .replace("{{date}}", dateLongFormatter(datePattern, formatLong))
3000
+ .replace("{{time}}", timeLongFormatter(timePattern, formatLong));
3001
+ };
3002
+
3003
+ (longFormatters.longFormatters = {
3004
+ p: timeLongFormatter,
3005
+ P: dateTimeLongFormatter,
3006
+ });
3007
+ return longFormatters;
3008
+ }
3009
+
3010
+ var protectedTokens = {};
3011
+
3012
+ var hasRequiredProtectedTokens;
3013
+
3014
+ function requireProtectedTokens () {
3015
+ if (hasRequiredProtectedTokens) return protectedTokens;
3016
+ hasRequiredProtectedTokens = 1;
3017
+ protectedTokens.isProtectedDayOfYearToken = isProtectedDayOfYearToken;
3018
+ protectedTokens.isProtectedWeekYearToken = isProtectedWeekYearToken;
3019
+ protectedTokens.warnOrThrowProtectedError = warnOrThrowProtectedError;
3020
+ const dayOfYearTokenRE = /^D+$/;
3021
+ const weekYearTokenRE = /^Y+$/;
3022
+
3023
+ const throwTokens = ["D", "DD", "YY", "YYYY"];
3024
+
3025
+ function isProtectedDayOfYearToken(token) {
3026
+ return dayOfYearTokenRE.test(token);
3027
+ }
3028
+
3029
+ function isProtectedWeekYearToken(token) {
3030
+ return weekYearTokenRE.test(token);
3031
+ }
3032
+
3033
+ function warnOrThrowProtectedError(token, format, input) {
3034
+ const _message = message(token, format, input);
3035
+ console.warn(_message);
3036
+ if (throwTokens.includes(token)) throw new RangeError(_message);
3037
+ }
3038
+
3039
+ function message(token, format, input) {
3040
+ const subject = token[0] === "Y" ? "years" : "days of the month";
3041
+ return `Use \`${token.toLowerCase()}\` instead of \`${token}\` (in \`${format}\`) for formatting ${subject} to the input \`${input}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
3042
+ }
3043
+ return protectedTokens;
3044
+ }
3045
+
3046
+ var isValid = {};
3047
+
3048
+ var isDate = {};
3049
+
3050
+ var hasRequiredIsDate;
3051
+
3052
+ function requireIsDate () {
3053
+ if (hasRequiredIsDate) return isDate;
3054
+ hasRequiredIsDate = 1;
3055
+ isDate.isDate = isDate$1; /**
3056
+ * @name isDate
3057
+ * @category Common Helpers
3058
+ * @summary Is the given value a date?
3059
+ *
3060
+ * @description
3061
+ * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.
3062
+ *
3063
+ * @param value - The value to check
3064
+ *
3065
+ * @returns True if the given value is a date
3066
+ *
3067
+ * @example
3068
+ * // For a valid date:
3069
+ * const result = isDate(new Date())
3070
+ * //=> true
3071
+ *
3072
+ * @example
3073
+ * // For an invalid date:
3074
+ * const result = isDate(new Date(NaN))
3075
+ * //=> true
3076
+ *
3077
+ * @example
3078
+ * // For some value:
3079
+ * const result = isDate('2014-02-31')
3080
+ * //=> false
3081
+ *
3082
+ * @example
3083
+ * // For an object:
3084
+ * const result = isDate({})
3085
+ * //=> false
3086
+ */
3087
+ function isDate$1(value) {
3088
+ return (
3089
+ value instanceof Date ||
3090
+ (typeof value === "object" &&
3091
+ Object.prototype.toString.call(value) === "[object Date]")
3092
+ );
3093
+ }
3094
+ return isDate;
3095
+ }
3096
+
3097
+ var hasRequiredIsValid;
3098
+
3099
+ function requireIsValid () {
3100
+ if (hasRequiredIsValid) return isValid;
3101
+ hasRequiredIsValid = 1;
3102
+ isValid.isValid = isValid$1;
3103
+ var _index = /*@__PURE__*/ requireIsDate();
3104
+ var _index2 = /*@__PURE__*/ requireToDate();
3105
+
3106
+ /**
3107
+ * @name isValid
3108
+ * @category Common Helpers
3109
+ * @summary Is the given date valid?
3110
+ *
3111
+ * @description
3112
+ * Returns false if argument is Invalid Date and true otherwise.
3113
+ * Argument is converted to Date using `toDate`. See [toDate](https://date-fns.org/docs/toDate)
3114
+ * Invalid Date is a Date, whose time value is NaN.
3115
+ *
3116
+ * Time value of Date: http://es5.github.io/#x15.9.1.1
3117
+ *
3118
+ * @param date - The date to check
3119
+ *
3120
+ * @returns The date is valid
3121
+ *
3122
+ * @example
3123
+ * // For the valid date:
3124
+ * const result = isValid(new Date(2014, 1, 31))
3125
+ * //=> true
3126
+ *
3127
+ * @example
3128
+ * // For the value, convertible into a date:
3129
+ * const result = isValid(1393804800000)
3130
+ * //=> true
3131
+ *
3132
+ * @example
3133
+ * // For the invalid date:
3134
+ * const result = isValid(new Date(''))
3135
+ * //=> false
3136
+ */
3137
+ function isValid$1(date) {
3138
+ return !(
3139
+ (!(0, _index.isDate)(date) && typeof date !== "number") ||
3140
+ isNaN(+(0, _index2.toDate)(date))
3141
+ );
3142
+ }
3143
+ return isValid;
3144
+ }
3145
+
3146
+ var hasRequiredFormat;
3147
+
3148
+ function requireFormat () {
3149
+ if (hasRequiredFormat) return format;
3150
+ hasRequiredFormat = 1;
3151
+ (function (exports) {
3152
+ exports.format = exports.formatDate = format;
3153
+ Object.defineProperty(exports, "formatters", {
3154
+ enumerable: true,
3155
+ get: function () {
3156
+ return _index3.formatters;
3157
+ },
3158
+ });
3159
+ Object.defineProperty(exports, "longFormatters", {
3160
+ enumerable: true,
3161
+ get: function () {
3162
+ return _index4.longFormatters;
3163
+ },
3164
+ });
3165
+ var _index = /*@__PURE__*/ requireDefaultLocale();
3166
+ var _index2 = /*@__PURE__*/ requireDefaultOptions();
3167
+ var _index3 = /*@__PURE__*/ requireFormatters();
3168
+ var _index4 = /*@__PURE__*/ requireLongFormatters();
3169
+ var _index5 = /*@__PURE__*/ requireProtectedTokens();
3170
+
3171
+ var _index6 = /*@__PURE__*/ requireIsValid();
3172
+ var _index7 = /*@__PURE__*/ requireToDate();
3173
+
3174
+ // Rexports of internal for libraries to use.
3175
+ // See: https://github.com/date-fns/date-fns/issues/3638#issuecomment-1877082874
3176
+
3177
+ // This RegExp consists of three parts separated by `|`:
3178
+ // - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token
3179
+ // (one of the certain letters followed by `o`)
3180
+ // - (\w)\1* matches any sequences of the same letter
3181
+ // - '' matches two quote characters in a row
3182
+ // - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),
3183
+ // except a single quote symbol, which ends the sequence.
3184
+ // Two quote characters do not end the sequence.
3185
+ // If there is no matching single quote
3186
+ // then the sequence will continue until the end of the string.
3187
+ // - . matches any single character unmatched by previous parts of the RegExps
3188
+ const formattingTokensRegExp =
3189
+ /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g;
3190
+
3191
+ // This RegExp catches symbols escaped by quotes, and also
3192
+ // sequences of symbols P, p, and the combinations like `PPPPPPPppppp`
3193
+ const longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
3194
+
3195
+ const escapedStringRegExp = /^'([^]*?)'?$/;
3196
+ const doubleQuoteRegExp = /''/g;
3197
+ const unescapedLatinCharacterRegExp = /[a-zA-Z]/;
3198
+
3199
+ /**
3200
+ * The {@link format} function options.
3201
+ */
3202
+
3203
+ /**
3204
+ * @name format
3205
+ * @alias formatDate
3206
+ * @category Common Helpers
3207
+ * @summary Format the date.
3208
+ *
3209
+ * @description
3210
+ * Return the formatted date string in the given format. The result may vary by locale.
3211
+ *
3212
+ * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.
3213
+ * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
3214
+ *
3215
+ * The characters wrapped between two single quotes characters (') are escaped.
3216
+ * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.
3217
+ * (see the last example)
3218
+ *
3219
+ * Format of the string is based on Unicode Technical Standard #35:
3220
+ * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
3221
+ * with a few additions (see note 7 below the table).
3222
+ *
3223
+ * Accepted patterns:
3224
+ * | Unit | Pattern | Result examples | Notes |
3225
+ * |---------------------------------|---------|-----------------------------------|-------|
3226
+ * | Era | G..GGG | AD, BC | |
3227
+ * | | GGGG | Anno Domini, Before Christ | 2 |
3228
+ * | | GGGGG | A, B | |
3229
+ * | Calendar year | y | 44, 1, 1900, 2017 | 5 |
3230
+ * | | yo | 44th, 1st, 0th, 17th | 5,7 |
3231
+ * | | yy | 44, 01, 00, 17 | 5 |
3232
+ * | | yyy | 044, 001, 1900, 2017 | 5 |
3233
+ * | | yyyy | 0044, 0001, 1900, 2017 | 5 |
3234
+ * | | yyyyy | ... | 3,5 |
3235
+ * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 |
3236
+ * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 |
3237
+ * | | YY | 44, 01, 00, 17 | 5,8 |
3238
+ * | | YYY | 044, 001, 1900, 2017 | 5 |
3239
+ * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 |
3240
+ * | | YYYYY | ... | 3,5 |
3241
+ * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 |
3242
+ * | | RR | -43, 00, 01, 1900, 2017 | 5,7 |
3243
+ * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 |
3244
+ * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 |
3245
+ * | | RRRRR | ... | 3,5,7 |
3246
+ * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 |
3247
+ * | | uu | -43, 01, 1900, 2017 | 5 |
3248
+ * | | uuu | -043, 001, 1900, 2017 | 5 |
3249
+ * | | uuuu | -0043, 0001, 1900, 2017 | 5 |
3250
+ * | | uuuuu | ... | 3,5 |
3251
+ * | Quarter (formatting) | Q | 1, 2, 3, 4 | |
3252
+ * | | Qo | 1st, 2nd, 3rd, 4th | 7 |
3253
+ * | | QQ | 01, 02, 03, 04 | |
3254
+ * | | QQQ | Q1, Q2, Q3, Q4 | |
3255
+ * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |
3256
+ * | | QQQQQ | 1, 2, 3, 4 | 4 |
3257
+ * | Quarter (stand-alone) | q | 1, 2, 3, 4 | |
3258
+ * | | qo | 1st, 2nd, 3rd, 4th | 7 |
3259
+ * | | qq | 01, 02, 03, 04 | |
3260
+ * | | qqq | Q1, Q2, Q3, Q4 | |
3261
+ * | | qqqq | 1st quarter, 2nd quarter, ... | 2 |
3262
+ * | | qqqqq | 1, 2, 3, 4 | 4 |
3263
+ * | Month (formatting) | M | 1, 2, ..., 12 | |
3264
+ * | | Mo | 1st, 2nd, ..., 12th | 7 |
3265
+ * | | MM | 01, 02, ..., 12 | |
3266
+ * | | MMM | Jan, Feb, ..., Dec | |
3267
+ * | | MMMM | January, February, ..., December | 2 |
3268
+ * | | MMMMM | J, F, ..., D | |
3269
+ * | Month (stand-alone) | L | 1, 2, ..., 12 | |
3270
+ * | | Lo | 1st, 2nd, ..., 12th | 7 |
3271
+ * | | LL | 01, 02, ..., 12 | |
3272
+ * | | LLL | Jan, Feb, ..., Dec | |
3273
+ * | | LLLL | January, February, ..., December | 2 |
3274
+ * | | LLLLL | J, F, ..., D | |
3275
+ * | Local week of year | w | 1, 2, ..., 53 | |
3276
+ * | | wo | 1st, 2nd, ..., 53th | 7 |
3277
+ * | | ww | 01, 02, ..., 53 | |
3278
+ * | ISO week of year | I | 1, 2, ..., 53 | 7 |
3279
+ * | | Io | 1st, 2nd, ..., 53th | 7 |
3280
+ * | | II | 01, 02, ..., 53 | 7 |
3281
+ * | Day of month | d | 1, 2, ..., 31 | |
3282
+ * | | do | 1st, 2nd, ..., 31st | 7 |
3283
+ * | | dd | 01, 02, ..., 31 | |
3284
+ * | Day of year | D | 1, 2, ..., 365, 366 | 9 |
3285
+ * | | Do | 1st, 2nd, ..., 365th, 366th | 7 |
3286
+ * | | DD | 01, 02, ..., 365, 366 | 9 |
3287
+ * | | DDD | 001, 002, ..., 365, 366 | |
3288
+ * | | DDDD | ... | 3 |
3289
+ * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | |
3290
+ * | | EEEE | Monday, Tuesday, ..., Sunday | 2 |
3291
+ * | | EEEEE | M, T, W, T, F, S, S | |
3292
+ * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |
3293
+ * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 |
3294
+ * | | io | 1st, 2nd, ..., 7th | 7 |
3295
+ * | | ii | 01, 02, ..., 07 | 7 |
3296
+ * | | iii | Mon, Tue, Wed, ..., Sun | 7 |
3297
+ * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 |
3298
+ * | | iiiii | M, T, W, T, F, S, S | 7 |
3299
+ * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 |
3300
+ * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | |
3301
+ * | | eo | 2nd, 3rd, ..., 1st | 7 |
3302
+ * | | ee | 02, 03, ..., 01 | |
3303
+ * | | eee | Mon, Tue, Wed, ..., Sun | |
3304
+ * | | eeee | Monday, Tuesday, ..., Sunday | 2 |
3305
+ * | | eeeee | M, T, W, T, F, S, S | |
3306
+ * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |
3307
+ * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | |
3308
+ * | | co | 2nd, 3rd, ..., 1st | 7 |
3309
+ * | | cc | 02, 03, ..., 01 | |
3310
+ * | | ccc | Mon, Tue, Wed, ..., Sun | |
3311
+ * | | cccc | Monday, Tuesday, ..., Sunday | 2 |
3312
+ * | | ccccc | M, T, W, T, F, S, S | |
3313
+ * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |
3314
+ * | AM, PM | a..aa | AM, PM | |
3315
+ * | | aaa | am, pm | |
3316
+ * | | aaaa | a.m., p.m. | 2 |
3317
+ * | | aaaaa | a, p | |
3318
+ * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | |
3319
+ * | | bbb | am, pm, noon, midnight | |
3320
+ * | | bbbb | a.m., p.m., noon, midnight | 2 |
3321
+ * | | bbbbb | a, p, n, mi | |
3322
+ * | Flexible day period | B..BBB | at night, in the morning, ... | |
3323
+ * | | BBBB | at night, in the morning, ... | 2 |
3324
+ * | | BBBBB | at night, in the morning, ... | |
3325
+ * | Hour [1-12] | h | 1, 2, ..., 11, 12 | |
3326
+ * | | ho | 1st, 2nd, ..., 11th, 12th | 7 |
3327
+ * | | hh | 01, 02, ..., 11, 12 | |
3328
+ * | Hour [0-23] | H | 0, 1, 2, ..., 23 | |
3329
+ * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 |
3330
+ * | | HH | 00, 01, 02, ..., 23 | |
3331
+ * | Hour [0-11] | K | 1, 2, ..., 11, 0 | |
3332
+ * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 |
3333
+ * | | KK | 01, 02, ..., 11, 00 | |
3334
+ * | Hour [1-24] | k | 24, 1, 2, ..., 23 | |
3335
+ * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 |
3336
+ * | | kk | 24, 01, 02, ..., 23 | |
3337
+ * | Minute | m | 0, 1, ..., 59 | |
3338
+ * | | mo | 0th, 1st, ..., 59th | 7 |
3339
+ * | | mm | 00, 01, ..., 59 | |
3340
+ * | Second | s | 0, 1, ..., 59 | |
3341
+ * | | so | 0th, 1st, ..., 59th | 7 |
3342
+ * | | ss | 00, 01, ..., 59 | |
3343
+ * | Fraction of second | S | 0, 1, ..., 9 | |
3344
+ * | | SS | 00, 01, ..., 99 | |
3345
+ * | | SSS | 000, 001, ..., 999 | |
3346
+ * | | SSSS | ... | 3 |
3347
+ * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | |
3348
+ * | | XX | -0800, +0530, Z | |
3349
+ * | | XXX | -08:00, +05:30, Z | |
3350
+ * | | XXXX | -0800, +0530, Z, +123456 | 2 |
3351
+ * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |
3352
+ * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | |
3353
+ * | | xx | -0800, +0530, +0000 | |
3354
+ * | | xxx | -08:00, +05:30, +00:00 | 2 |
3355
+ * | | xxxx | -0800, +0530, +0000, +123456 | |
3356
+ * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |
3357
+ * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | |
3358
+ * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 |
3359
+ * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 |
3360
+ * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 |
3361
+ * | Seconds timestamp | t | 512969520 | 7 |
3362
+ * | | tt | ... | 3,7 |
3363
+ * | Milliseconds timestamp | T | 512969520900 | 7 |
3364
+ * | | TT | ... | 3,7 |
3365
+ * | Long localized date | P | 04/29/1453 | 7 |
3366
+ * | | PP | Apr 29, 1453 | 7 |
3367
+ * | | PPP | April 29th, 1453 | 7 |
3368
+ * | | PPPP | Friday, April 29th, 1453 | 2,7 |
3369
+ * | Long localized time | p | 12:00 AM | 7 |
3370
+ * | | pp | 12:00:00 AM | 7 |
3371
+ * | | ppp | 12:00:00 AM GMT+2 | 7 |
3372
+ * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 |
3373
+ * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 |
3374
+ * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 |
3375
+ * | | PPPppp | April 29th, 1453 at ... | 7 |
3376
+ * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 |
3377
+ * Notes:
3378
+ * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale
3379
+ * are the same as "stand-alone" units, but are different in some languages.
3380
+ * "Formatting" units are declined according to the rules of the language
3381
+ * in the context of a date. "Stand-alone" units are always nominative singular:
3382
+ *
3383
+ * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`
3384
+ *
3385
+ * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`
3386
+ *
3387
+ * 2. Any sequence of the identical letters is a pattern, unless it is escaped by
3388
+ * the single quote characters (see below).
3389
+ * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`)
3390
+ * the output will be the same as default pattern for this unit, usually
3391
+ * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units
3392
+ * are marked with "2" in the last column of the table.
3393
+ *
3394
+ * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'`
3395
+ *
3396
+ * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'`
3397
+ *
3398
+ * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'`
3399
+ *
3400
+ * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'`
3401
+ *
3402
+ * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'`
3403
+ *
3404
+ * 3. Some patterns could be unlimited length (such as `yyyyyyyy`).
3405
+ * The output will be padded with zeros to match the length of the pattern.
3406
+ *
3407
+ * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'`
3408
+ *
3409
+ * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.
3410
+ * These tokens represent the shortest form of the quarter.
3411
+ *
3412
+ * 5. The main difference between `y` and `u` patterns are B.C. years:
3413
+ *
3414
+ * | Year | `y` | `u` |
3415
+ * |------|-----|-----|
3416
+ * | AC 1 | 1 | 1 |
3417
+ * | BC 1 | 1 | 0 |
3418
+ * | BC 2 | 2 | -1 |
3419
+ *
3420
+ * Also `yy` always returns the last two digits of a year,
3421
+ * while `uu` pads single digit years to 2 characters and returns other years unchanged:
3422
+ *
3423
+ * | Year | `yy` | `uu` |
3424
+ * |------|------|------|
3425
+ * | 1 | 01 | 01 |
3426
+ * | 14 | 14 | 14 |
3427
+ * | 376 | 76 | 376 |
3428
+ * | 1453 | 53 | 1453 |
3429
+ *
3430
+ * The same difference is true for local and ISO week-numbering years (`Y` and `R`),
3431
+ * except local week-numbering years are dependent on `options.weekStartsOn`
3432
+ * and `options.firstWeekContainsDate` (compare [getISOWeekYear](https://date-fns.org/docs/getISOWeekYear)
3433
+ * and [getWeekYear](https://date-fns.org/docs/getWeekYear)).
3434
+ *
3435
+ * 6. Specific non-location timezones are currently unavailable in `date-fns`,
3436
+ * so right now these tokens fall back to GMT timezones.
3437
+ *
3438
+ * 7. These patterns are not in the Unicode Technical Standard #35:
3439
+ * - `i`: ISO day of week
3440
+ * - `I`: ISO week of year
3441
+ * - `R`: ISO week-numbering year
3442
+ * - `t`: seconds timestamp
3443
+ * - `T`: milliseconds timestamp
3444
+ * - `o`: ordinal number modifier
3445
+ * - `P`: long localized date
3446
+ * - `p`: long localized time
3447
+ *
3448
+ * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.
3449
+ * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
3450
+ *
3451
+ * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.
3452
+ * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
3453
+ *
3454
+ * @param date - The original date
3455
+ * @param format - The string of tokens
3456
+ * @param options - An object with options
3457
+ *
3458
+ * @returns The formatted date string
3459
+ *
3460
+ * @throws `date` must not be Invalid Date
3461
+ * @throws `options.locale` must contain `localize` property
3462
+ * @throws `options.locale` must contain `formatLong` property
3463
+ * @throws use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
3464
+ * @throws use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
3465
+ * @throws use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
3466
+ * @throws use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
3467
+ * @throws format string contains an unescaped latin alphabet character
3468
+ *
3469
+ * @example
3470
+ * // Represent 11 February 2014 in middle-endian format:
3471
+ * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')
3472
+ * //=> '02/11/2014'
3473
+ *
3474
+ * @example
3475
+ * // Represent 2 July 2014 in Esperanto:
3476
+ * import { eoLocale } from 'date-fns/locale/eo'
3477
+ * const result = format(new Date(2014, 6, 2), "do 'de' MMMM yyyy", {
3478
+ * locale: eoLocale
3479
+ * })
3480
+ * //=> '2-a de julio 2014'
3481
+ *
3482
+ * @example
3483
+ * // Escape string by single quote characters:
3484
+ * const result = format(new Date(2014, 6, 2, 15), "h 'o''clock'")
3485
+ * //=> "3 o'clock"
3486
+ */
3487
+ function format(date, formatStr, options) {
3488
+ const defaultOptions = (0, _index2.getDefaultOptions)();
3489
+ const locale =
3490
+ options?.locale ?? defaultOptions.locale ?? _index.defaultLocale;
3491
+
3492
+ const firstWeekContainsDate =
3493
+ options?.firstWeekContainsDate ??
3494
+ options?.locale?.options?.firstWeekContainsDate ??
3495
+ defaultOptions.firstWeekContainsDate ??
3496
+ defaultOptions.locale?.options?.firstWeekContainsDate ??
3497
+ 1;
3498
+
3499
+ const weekStartsOn =
3500
+ options?.weekStartsOn ??
3501
+ options?.locale?.options?.weekStartsOn ??
3502
+ defaultOptions.weekStartsOn ??
3503
+ defaultOptions.locale?.options?.weekStartsOn ??
3504
+ 0;
3505
+
3506
+ const originalDate = (0, _index7.toDate)(date, options?.in);
3507
+
3508
+ if (!(0, _index6.isValid)(originalDate)) {
3509
+ throw new RangeError("Invalid time value");
3510
+ }
3511
+
3512
+ let parts = formatStr
3513
+ .match(longFormattingTokensRegExp)
3514
+ .map((substring) => {
3515
+ const firstCharacter = substring[0];
3516
+ if (firstCharacter === "p" || firstCharacter === "P") {
3517
+ const longFormatter = _index4.longFormatters[firstCharacter];
3518
+ return longFormatter(substring, locale.formatLong);
3519
+ }
3520
+ return substring;
3521
+ })
3522
+ .join("")
3523
+ .match(formattingTokensRegExp)
3524
+ .map((substring) => {
3525
+ // Replace two single quote characters with one single quote character
3526
+ if (substring === "''") {
3527
+ return { isToken: false, value: "'" };
3528
+ }
3529
+
3530
+ const firstCharacter = substring[0];
3531
+ if (firstCharacter === "'") {
3532
+ return { isToken: false, value: cleanEscapedString(substring) };
3533
+ }
3534
+
3535
+ if (_index3.formatters[firstCharacter]) {
3536
+ return { isToken: true, value: substring };
3537
+ }
3538
+
3539
+ if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
3540
+ throw new RangeError(
3541
+ "Format string contains an unescaped latin alphabet character `" +
3542
+ firstCharacter +
3543
+ "`",
3544
+ );
3545
+ }
3546
+
3547
+ return { isToken: false, value: substring };
3548
+ });
3549
+
3550
+ // invoke localize preprocessor (only for french locales at the moment)
3551
+ if (locale.localize.preprocessor) {
3552
+ parts = locale.localize.preprocessor(originalDate, parts);
3553
+ }
3554
+
3555
+ const formatterOptions = {
3556
+ firstWeekContainsDate,
3557
+ weekStartsOn,
3558
+ locale,
3559
+ };
3560
+
3561
+ return parts
3562
+ .map((part) => {
3563
+ if (!part.isToken) return part.value;
3564
+
3565
+ const token = part.value;
3566
+
3567
+ if (
3568
+ (!options?.useAdditionalWeekYearTokens &&
3569
+ (0, _index5.isProtectedWeekYearToken)(token)) ||
3570
+ (!options?.useAdditionalDayOfYearTokens &&
3571
+ (0, _index5.isProtectedDayOfYearToken)(token))
3572
+ ) {
3573
+ (0, _index5.warnOrThrowProtectedError)(token, formatStr, String(date));
3574
+ }
3575
+
3576
+ const formatter = _index3.formatters[token[0]];
3577
+ return formatter(originalDate, token, locale.localize, formatterOptions);
3578
+ })
3579
+ .join("");
3580
+ }
3581
+
3582
+ function cleanEscapedString(input) {
3583
+ const matched = input.match(escapedStringRegExp);
3584
+
3585
+ if (!matched) {
3586
+ return input;
3587
+ }
3588
+
3589
+ return matched[1].replace(doubleQuoteRegExp, "'");
3590
+ }
3591
+ } (format));
3592
+ return format;
3593
+ }
3594
+
3595
+ var formatExports = /*@__PURE__*/ requireFormat();
3596
+
3597
+ var setDay = {};
3598
+
3599
+ var hasRequiredSetDay;
3600
+
3601
+ function requireSetDay () {
3602
+ if (hasRequiredSetDay) return setDay;
3603
+ hasRequiredSetDay = 1;
3604
+ setDay.setDay = setDay$1;
3605
+ var _index = /*@__PURE__*/ requireDefaultOptions();
3606
+ var _index2 = /*@__PURE__*/ requireAddDays();
3607
+ var _index3 = /*@__PURE__*/ requireToDate();
3608
+
3609
+ /**
3610
+ * The {@link setDay} function options.
3611
+ */
3612
+
3613
+ /**
3614
+ * @name setDay
3615
+ * @category Weekday Helpers
3616
+ * @summary Set the day of the week to the given date.
3617
+ *
3618
+ * @description
3619
+ * Set the day of the week to the given date.
3620
+ *
3621
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
3622
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
3623
+ *
3624
+ * @param date - The date to be changed
3625
+ * @param day - The day of the week of the new date
3626
+ * @param options - An object with options.
3627
+ *
3628
+ * @returns The new date with the day of the week set
3629
+ *
3630
+ * @example
3631
+ * // Set week day to Sunday, with the default weekStartsOn of Sunday:
3632
+ * const result = setDay(new Date(2014, 8, 1), 0)
3633
+ * //=> Sun Aug 31 2014 00:00:00
3634
+ *
3635
+ * @example
3636
+ * // Set week day to Sunday, with a weekStartsOn of Monday:
3637
+ * const result = setDay(new Date(2014, 8, 1), 0, { weekStartsOn: 1 })
3638
+ * //=> Sun Sep 07 2014 00:00:00
3639
+ */
3640
+ function setDay$1(date, day, options) {
3641
+ const defaultOptions = (0, _index.getDefaultOptions)();
3642
+ const weekStartsOn =
3643
+ options?.weekStartsOn ??
3644
+ options?.locale?.options?.weekStartsOn ??
3645
+ defaultOptions.weekStartsOn ??
3646
+ defaultOptions.locale?.options?.weekStartsOn ??
3647
+ 0;
3648
+
3649
+ const date_ = (0, _index3.toDate)(date, options?.in);
3650
+ const currentDay = date_.getDay();
3651
+
3652
+ const remainder = day % 7;
3653
+ const dayIndex = (remainder + 7) % 7;
3654
+
3655
+ const delta = 7 - weekStartsOn;
3656
+ const diff =
3657
+ day < 0 || day > 6
3658
+ ? day - ((currentDay + delta) % 7)
3659
+ : ((dayIndex + delta) % 7) - ((currentDay + delta) % 7);
3660
+ return (0, _index2.addDays)(date_, diff, options);
3661
+ }
3662
+ return setDay;
3663
+ }
3664
+
3665
+ var setMonth = {};
3666
+
3667
+ var getDaysInMonth = {};
3668
+
3669
+ var hasRequiredGetDaysInMonth;
3670
+
3671
+ function requireGetDaysInMonth () {
3672
+ if (hasRequiredGetDaysInMonth) return getDaysInMonth;
3673
+ hasRequiredGetDaysInMonth = 1;
3674
+ getDaysInMonth.getDaysInMonth = getDaysInMonth$1;
3675
+ var _index = /*@__PURE__*/ requireConstructFrom();
3676
+ var _index2 = /*@__PURE__*/ requireToDate();
3677
+
3678
+ /**
3679
+ * The {@link getDaysInMonth} function options.
3680
+ */
3681
+
3682
+ /**
3683
+ * @name getDaysInMonth
3684
+ * @category Month Helpers
3685
+ * @summary Get the number of days in a month of the given date.
3686
+ *
3687
+ * @description
3688
+ * Get the number of days in a month of the given date, considering the context if provided.
3689
+ *
3690
+ * @param date - The given date
3691
+ * @param options - An object with options
3692
+ *
3693
+ * @returns The number of days in a month
3694
+ *
3695
+ * @example
3696
+ * // How many days are in February 2000?
3697
+ * const result = getDaysInMonth(new Date(2000, 1))
3698
+ * //=> 29
3699
+ */
3700
+ function getDaysInMonth$1(date, options) {
3701
+ const _date = (0, _index2.toDate)(date, options?.in);
3702
+ const year = _date.getFullYear();
3703
+ const monthIndex = _date.getMonth();
3704
+ const lastDayOfMonth = (0, _index.constructFrom)(_date, 0);
3705
+ lastDayOfMonth.setFullYear(year, monthIndex + 1, 0);
3706
+ lastDayOfMonth.setHours(0, 0, 0, 0);
3707
+ return lastDayOfMonth.getDate();
3708
+ }
3709
+ return getDaysInMonth;
3710
+ }
3711
+
3712
+ var hasRequiredSetMonth;
3713
+
3714
+ function requireSetMonth () {
3715
+ if (hasRequiredSetMonth) return setMonth;
3716
+ hasRequiredSetMonth = 1;
3717
+ setMonth.setMonth = setMonth$1;
3718
+ var _index = /*@__PURE__*/ requireConstructFrom();
3719
+ var _index2 = /*@__PURE__*/ requireGetDaysInMonth();
3720
+ var _index3 = /*@__PURE__*/ requireToDate();
3721
+
3722
+ /**
3723
+ * The {@link setMonth} function options.
3724
+ */
3725
+
3726
+ /**
3727
+ * @name setMonth
3728
+ * @category Month Helpers
3729
+ * @summary Set the month to the given date.
3730
+ *
3731
+ * @description
3732
+ * Set the month to the given date.
3733
+ *
3734
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
3735
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
3736
+ *
3737
+ * @param date - The date to be changed
3738
+ * @param month - The month index to set (0-11)
3739
+ * @param options - The options
3740
+ *
3741
+ * @returns The new date with the month set
3742
+ *
3743
+ * @example
3744
+ * // Set February to 1 September 2014:
3745
+ * const result = setMonth(new Date(2014, 8, 1), 1)
3746
+ * //=> Sat Feb 01 2014 00:00:00
3747
+ */
3748
+ function setMonth$1(date, month, options) {
3749
+ const _date = (0, _index3.toDate)(date, options?.in);
3750
+ const year = _date.getFullYear();
3751
+ const day = _date.getDate();
3752
+
3753
+ const midMonth = (0, _index.constructFrom)(options?.in || date, 0);
3754
+ midMonth.setFullYear(year, month, 15);
3755
+ midMonth.setHours(0, 0, 0, 0);
3756
+ const daysInMonth = (0, _index2.getDaysInMonth)(midMonth);
3757
+
3758
+ // Set the earlier date, allows to wrap Jan 31 to Feb 28
3759
+ _date.setMonth(month, Math.min(day, daysInMonth));
3760
+ return _date;
3761
+ }
3762
+ return setMonth;
3763
+ }
3764
+
3765
+ /**
3766
+ * Conjunto de modos suportados pelo datetime picker.
3767
+ *
3768
+ * `DEFAULT` define o modo aplicado quando o consumidor não informa um valor válido.
3769
+ */
3770
+ const DATETIME_PICKER_MODE = {
3771
+ DATE: 'date',
3772
+ TIME: 'time',
3773
+ DATETIME: 'datetime',
3774
+ DEFAULT: 'datetime',
3775
+ };
3776
+ /**
3777
+ * Valores de locale aceitos pelo componente.
3778
+ *
3779
+ * `DEFAULT` representa o locale padrão do design system.
3780
+ */
3781
+ const DATETIME_PICKER_LOCALE = {
3782
+ DEFAULT: 'pt-BR',
3783
+ };
3784
+ /**
3785
+ * Ações de navegação emitidas pelos controles do calendário e do relógio.
3786
+ *
3787
+ * Os nomes são usados como contrato entre os componentes que compartilham a navegação.
3788
+ */
3789
+ const NAVIGATION_ACTION = {
3790
+ PREVIOUS_HOUR: 'previous-hour',
3791
+ PREVIOUS_MINUTE: 'previous-minute',
3792
+ PREVIOUS_MONTH: 'previous-month',
3793
+ NEXT_HOUR: 'next-hour',
3794
+ NEXT_MINUTE: 'next-minute',
3795
+ NEXT_MONTH: 'next-month',
3796
+ };
3797
+
3798
+ export { DATETIME_PICKER_MODE as D, NAVIGATION_ACTION as N, requireConstructFrom as a, requireToDate as b, requireConstants as c, DATETIME_PICKER_LOCALE as d, requireDefaultOptions as e, formatExports as f, requireNormalizeDates as g, requireAddLeadingZeros as h, requireStartOfDay as i, requireGetWeekYear as j, requireStartOfWeek as k, requireStartOfISOWeek as l, requireGetWeek as m, requireGetISOWeek as n, requireSetDay as o, requireAddDays as p, requireGetTimezoneOffsetInMilliseconds as q, requireIsValid as r, requireLongFormatters as s, requireDefaultLocale as t, requireProtectedTokens as u, requireSetMonth as v, requireBuildFormatLongFn as w, requireBuildLocalizeFn as x, requireBuildMatchFn as y, requireBuildMatchPatternFn as z };