@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,3694 @@
1
+ /*!
2
+ * Construído por SERPRO
3
+ * © https://serpro.gov.br/ - MIT License.
4
+ */
5
+ 'use strict';
6
+
7
+ var datetimePickerConstants = require('./datetime-picker-constants-B5pWeOn1.js');
8
+
9
+ var eachDayOfInterval = {};
10
+
11
+ var normalizeInterval = {};
12
+
13
+ var hasRequiredNormalizeInterval;
14
+
15
+ function requireNormalizeInterval () {
16
+ if (hasRequiredNormalizeInterval) return normalizeInterval;
17
+ hasRequiredNormalizeInterval = 1;
18
+ normalizeInterval.normalizeInterval = normalizeInterval$1;
19
+ var _index = /*@__PURE__*/ datetimePickerConstants.requireNormalizeDates();
20
+
21
+ function normalizeInterval$1(context, interval) {
22
+ const [start, end] = (0, _index.normalizeDates)(
23
+ context,
24
+ interval.start,
25
+ interval.end,
26
+ );
27
+ return { start, end };
28
+ }
29
+ return normalizeInterval;
30
+ }
31
+
32
+ var hasRequiredEachDayOfInterval;
33
+
34
+ function requireEachDayOfInterval () {
35
+ if (hasRequiredEachDayOfInterval) return eachDayOfInterval;
36
+ hasRequiredEachDayOfInterval = 1;
37
+ eachDayOfInterval.eachDayOfInterval = eachDayOfInterval$1;
38
+ var _index = /*@__PURE__*/ requireNormalizeInterval();
39
+ var _index2 = /*@__PURE__*/ datetimePickerConstants.requireConstructFrom();
40
+
41
+ /**
42
+ * The {@link eachDayOfInterval} function options.
43
+ */
44
+
45
+ /**
46
+ * The {@link eachDayOfInterval} function result type. It resolves the proper data type.
47
+ * It uses the first argument date object type, starting from the date argument,
48
+ * then the start interval date, and finally the end interval date. If
49
+ * a context function is passed, it uses the context function return type.
50
+ */
51
+
52
+ /**
53
+ * @name eachDayOfInterval
54
+ * @category Interval Helpers
55
+ * @summary Return the array of dates within the specified time interval.
56
+ *
57
+ * @description
58
+ * Return the array of dates within the specified time interval.
59
+ *
60
+ * @typeParam IntervalType - Interval type.
61
+ * @typeParam Options - Options type.
62
+ *
63
+ * @param interval - The interval.
64
+ * @param options - An object with options.
65
+ *
66
+ * @returns The array with starts of days from the day of the interval start to the day of the interval end
67
+ *
68
+ * @example
69
+ * // Each day between 6 October 2014 and 10 October 2014:
70
+ * const result = eachDayOfInterval({
71
+ * start: new Date(2014, 9, 6),
72
+ * end: new Date(2014, 9, 10)
73
+ * })
74
+ * //=> [
75
+ * // Mon Oct 06 2014 00:00:00,
76
+ * // Tue Oct 07 2014 00:00:00,
77
+ * // Wed Oct 08 2014 00:00:00,
78
+ * // Thu Oct 09 2014 00:00:00,
79
+ * // Fri Oct 10 2014 00:00:00
80
+ * // ]
81
+ */
82
+ function eachDayOfInterval$1(interval, options) {
83
+ const { start, end } = (0, _index.normalizeInterval)(options?.in, interval);
84
+
85
+ let reversed = +start > +end;
86
+ const endTime = reversed ? +start : +end;
87
+ const date = reversed ? end : start;
88
+ date.setHours(0, 0, 0, 0);
89
+
90
+ let step = options?.step ?? 1;
91
+ if (!step) return [];
92
+ if (step < 0) {
93
+ step = -step;
94
+ reversed = !reversed;
95
+ }
96
+
97
+ const dates = [];
98
+
99
+ while (+date <= endTime) {
100
+ dates.push((0, _index2.constructFrom)(start, date));
101
+ date.setDate(date.getDate() + step);
102
+ date.setHours(0, 0, 0, 0);
103
+ }
104
+
105
+ return reversed ? dates.reverse() : dates;
106
+ }
107
+ return eachDayOfInterval;
108
+ }
109
+
110
+ var eachDayOfIntervalExports = /*@__PURE__*/ requireEachDayOfInterval();
111
+
112
+ var isSameDay = {};
113
+
114
+ var hasRequiredIsSameDay;
115
+
116
+ function requireIsSameDay () {
117
+ if (hasRequiredIsSameDay) return isSameDay;
118
+ hasRequiredIsSameDay = 1;
119
+ isSameDay.isSameDay = isSameDay$1;
120
+ var _index = /*@__PURE__*/ datetimePickerConstants.requireNormalizeDates();
121
+ var _index2 = /*@__PURE__*/ datetimePickerConstants.requireStartOfDay();
122
+
123
+ /**
124
+ * The {@link isSameDay} function options.
125
+ */
126
+
127
+ /**
128
+ * @name isSameDay
129
+ * @category Day Helpers
130
+ * @summary Are the given dates in the same day (and year and month)?
131
+ *
132
+ * @description
133
+ * Are the given dates in the same day (and year and month)?
134
+ *
135
+ * @param laterDate - The first date to check
136
+ * @param earlierDate - The second date to check
137
+ * @param options - An object with options
138
+ *
139
+ * @returns The dates are in the same day (and year and month)
140
+ *
141
+ * @example
142
+ * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day?
143
+ * const result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0))
144
+ * //=> true
145
+ *
146
+ * @example
147
+ * // Are 4 September and 4 October in the same day?
148
+ * const result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4))
149
+ * //=> false
150
+ *
151
+ * @example
152
+ * // Are 4 September, 2014 and 4 September, 2015 in the same day?
153
+ * const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4))
154
+ * //=> false
155
+ */
156
+ function isSameDay$1(laterDate, earlierDate, options) {
157
+ const [dateLeft_, dateRight_] = (0, _index.normalizeDates)(
158
+ options?.in,
159
+ laterDate,
160
+ earlierDate,
161
+ );
162
+ return (
163
+ +(0, _index2.startOfDay)(dateLeft_) === +(0, _index2.startOfDay)(dateRight_)
164
+ );
165
+ }
166
+ return isSameDay;
167
+ }
168
+
169
+ var isSameDayExports = /*@__PURE__*/ requireIsSameDay();
170
+
171
+ var parse = {};
172
+
173
+ var getDefaultOptions = {};
174
+
175
+ var hasRequiredGetDefaultOptions;
176
+
177
+ function requireGetDefaultOptions () {
178
+ if (hasRequiredGetDefaultOptions) return getDefaultOptions;
179
+ hasRequiredGetDefaultOptions = 1;
180
+ getDefaultOptions.getDefaultOptions = getDefaultOptions$1;
181
+ var _index = /*@__PURE__*/ datetimePickerConstants.requireDefaultOptions();
182
+
183
+ /**
184
+ * @name getDefaultOptions
185
+ * @category Common Helpers
186
+ * @summary Get default options.
187
+ * @pure false
188
+ *
189
+ * @description
190
+ * Returns an object that contains defaults for
191
+ * `options.locale`, `options.weekStartsOn` and `options.firstWeekContainsDate`
192
+ * arguments for all functions.
193
+ *
194
+ * You can change these with [setDefaultOptions](https://date-fns.org/docs/setDefaultOptions).
195
+ *
196
+ * @returns The default options
197
+ *
198
+ * @example
199
+ * const result = getDefaultOptions()
200
+ * //=> {}
201
+ *
202
+ * @example
203
+ * setDefaultOptions({ weekStarsOn: 1, firstWeekContainsDate: 4 })
204
+ * const result = getDefaultOptions()
205
+ * //=> { weekStarsOn: 1, firstWeekContainsDate: 4 }
206
+ */
207
+ function getDefaultOptions$1() {
208
+ return Object.assign({}, (0, _index.getDefaultOptions)());
209
+ }
210
+ return getDefaultOptions;
211
+ }
212
+
213
+ var Setter = {};
214
+
215
+ var transpose = {};
216
+
217
+ var hasRequiredTranspose;
218
+
219
+ function requireTranspose () {
220
+ if (hasRequiredTranspose) return transpose;
221
+ hasRequiredTranspose = 1;
222
+ transpose.transpose = transpose$1;
223
+ var _index = /*@__PURE__*/ datetimePickerConstants.requireConstructFrom();
224
+
225
+ /**
226
+ * @name transpose
227
+ * @category Generic Helpers
228
+ * @summary Transpose the date to the given constructor.
229
+ *
230
+ * @description
231
+ * The function transposes the date to the given constructor. It helps you
232
+ * to transpose the date in the system time zone to say `UTCDate` or any other
233
+ * date extension.
234
+ *
235
+ * @typeParam InputDate - The input `Date` type derived from the passed argument.
236
+ * @typeParam ResultDate - The result `Date` type derived from the passed constructor.
237
+ *
238
+ * @param date - The date to use values from
239
+ * @param constructor - The date constructor to use
240
+ *
241
+ * @returns Date transposed to the given constructor
242
+ *
243
+ * @example
244
+ * // Create July 10, 2022 00:00 in locale time zone
245
+ * const date = new Date(2022, 6, 10)
246
+ * //=> 'Sun Jul 10 2022 00:00:00 GMT+0800 (Singapore Standard Time)'
247
+ *
248
+ * @example
249
+ * // Transpose the date to July 10, 2022 00:00 in UTC
250
+ * transpose(date, UTCDate)
251
+ * //=> 'Sun Jul 10 2022 00:00:00 GMT+0000 (Coordinated Universal Time)'
252
+ */
253
+ function transpose$1(date, constructor) {
254
+ const date_ = isConstructor(constructor)
255
+ ? new constructor(0)
256
+ : (0, _index.constructFrom)(constructor, 0);
257
+ date_.setFullYear(date.getFullYear(), date.getMonth(), date.getDate());
258
+ date_.setHours(
259
+ date.getHours(),
260
+ date.getMinutes(),
261
+ date.getSeconds(),
262
+ date.getMilliseconds(),
263
+ );
264
+ return date_;
265
+ }
266
+
267
+ function isConstructor(constructor) {
268
+ return (
269
+ typeof constructor === "function" &&
270
+ constructor.prototype?.constructor === constructor
271
+ );
272
+ }
273
+ return transpose;
274
+ }
275
+
276
+ var hasRequiredSetter;
277
+
278
+ function requireSetter () {
279
+ if (hasRequiredSetter) return Setter;
280
+ hasRequiredSetter = 1;
281
+ Setter.ValueSetter = Setter.Setter = Setter.DateTimezoneSetter = void 0;
282
+ var _index = /*@__PURE__*/ datetimePickerConstants.requireConstructFrom();
283
+ var _index2 = /*@__PURE__*/ requireTranspose();
284
+
285
+ const TIMEZONE_UNIT_PRIORITY = 10;
286
+
287
+ let Setter$1 = class Setter {
288
+ subPriority = 0;
289
+
290
+ validate(_utcDate, _options) {
291
+ return true;
292
+ }
293
+ };
294
+ Setter.Setter = Setter$1;
295
+
296
+ class ValueSetter extends Setter$1 {
297
+ constructor(
298
+ value,
299
+ validateValue,
300
+
301
+ setValue,
302
+
303
+ priority,
304
+ subPriority,
305
+ ) {
306
+ super();
307
+ this.value = value;
308
+ this.validateValue = validateValue;
309
+ this.setValue = setValue;
310
+ this.priority = priority;
311
+ if (subPriority) {
312
+ this.subPriority = subPriority;
313
+ }
314
+ }
315
+
316
+ validate(date, options) {
317
+ return this.validateValue(date, this.value, options);
318
+ }
319
+
320
+ set(date, flags, options) {
321
+ return this.setValue(date, flags, this.value, options);
322
+ }
323
+ }
324
+ Setter.ValueSetter = ValueSetter;
325
+
326
+ class DateTimezoneSetter extends Setter$1 {
327
+ priority = TIMEZONE_UNIT_PRIORITY;
328
+ subPriority = -1;
329
+
330
+ constructor(context, reference) {
331
+ super();
332
+ this.context =
333
+ context || ((date) => (0, _index.constructFrom)(reference, date));
334
+ }
335
+
336
+ set(date, flags) {
337
+ if (flags.timestampIsSet) return date;
338
+ return (0, _index.constructFrom)(
339
+ date,
340
+ (0, _index2.transpose)(date, this.context),
341
+ );
342
+ }
343
+ }
344
+ Setter.DateTimezoneSetter = DateTimezoneSetter;
345
+ return Setter;
346
+ }
347
+
348
+ var parsers = {};
349
+
350
+ var EraParser = {};
351
+
352
+ var Parser = {};
353
+
354
+ var hasRequiredParser;
355
+
356
+ function requireParser () {
357
+ if (hasRequiredParser) return Parser;
358
+ hasRequiredParser = 1;
359
+ Parser.Parser = void 0;
360
+ var _Setter = /*@__PURE__*/ requireSetter();
361
+
362
+ let Parser$1 = class Parser {
363
+ run(dateString, token, match, options) {
364
+ const result = this.parse(dateString, token, match, options);
365
+ if (!result) {
366
+ return null;
367
+ }
368
+
369
+ return {
370
+ setter: new _Setter.ValueSetter(
371
+ result.value,
372
+ this.validate,
373
+ this.set,
374
+ this.priority,
375
+ this.subPriority,
376
+ ),
377
+ rest: result.rest,
378
+ };
379
+ }
380
+
381
+ validate(_utcDate, _value, _options) {
382
+ return true;
383
+ }
384
+ };
385
+ Parser.Parser = Parser$1;
386
+ return Parser;
387
+ }
388
+
389
+ var hasRequiredEraParser;
390
+
391
+ function requireEraParser () {
392
+ if (hasRequiredEraParser) return EraParser;
393
+ hasRequiredEraParser = 1;
394
+ EraParser.EraParser = void 0;
395
+
396
+ var _Parser = /*@__PURE__*/ requireParser();
397
+
398
+ let EraParser$1 = class EraParser extends _Parser.Parser {
399
+ priority = 140;
400
+
401
+ parse(dateString, token, match) {
402
+ switch (token) {
403
+ // AD, BC
404
+ case "G":
405
+ case "GG":
406
+ case "GGG":
407
+ return (
408
+ match.era(dateString, { width: "abbreviated" }) ||
409
+ match.era(dateString, { width: "narrow" })
410
+ );
411
+
412
+ // A, B
413
+ case "GGGGG":
414
+ return match.era(dateString, { width: "narrow" });
415
+ // Anno Domini, Before Christ
416
+ case "GGGG":
417
+ default:
418
+ return (
419
+ match.era(dateString, { width: "wide" }) ||
420
+ match.era(dateString, { width: "abbreviated" }) ||
421
+ match.era(dateString, { width: "narrow" })
422
+ );
423
+ }
424
+ }
425
+
426
+ set(date, flags, value) {
427
+ flags.era = value;
428
+ date.setFullYear(value, 0, 1);
429
+ date.setHours(0, 0, 0, 0);
430
+ return date;
431
+ }
432
+
433
+ incompatibleTokens = ["R", "u", "t", "T"];
434
+ };
435
+ EraParser.EraParser = EraParser$1;
436
+ return EraParser;
437
+ }
438
+
439
+ var YearParser = {};
440
+
441
+ var utils = {};
442
+
443
+ var constants = {};
444
+
445
+ var hasRequiredConstants;
446
+
447
+ function requireConstants () {
448
+ if (hasRequiredConstants) return constants;
449
+ hasRequiredConstants = 1;
450
+ constants.timezonePatterns = constants.numericPatterns = void 0;
451
+ (constants.numericPatterns = {
452
+ month: /^(1[0-2]|0?\d)/, // 0 to 12
453
+ date: /^(3[0-1]|[0-2]?\d)/, // 0 to 31
454
+ dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/, // 0 to 366
455
+ week: /^(5[0-3]|[0-4]?\d)/, // 0 to 53
456
+ hour23h: /^(2[0-3]|[0-1]?\d)/, // 0 to 23
457
+ hour24h: /^(2[0-4]|[0-1]?\d)/, // 0 to 24
458
+ hour11h: /^(1[0-1]|0?\d)/, // 0 to 11
459
+ hour12h: /^(1[0-2]|0?\d)/, // 0 to 12
460
+ minute: /^[0-5]?\d/, // 0 to 59
461
+ second: /^[0-5]?\d/, // 0 to 59
462
+
463
+ singleDigit: /^\d/, // 0 to 9
464
+ twoDigits: /^\d{1,2}/, // 0 to 99
465
+ threeDigits: /^\d{1,3}/, // 0 to 999
466
+ fourDigits: /^\d{1,4}/, // 0 to 9999
467
+
468
+ anyDigitsSigned: /^-?\d+/,
469
+ singleDigitSigned: /^-?\d/, // 0 to 9, -0 to -9
470
+ twoDigitsSigned: /^-?\d{1,2}/, // 0 to 99, -0 to -99
471
+ threeDigitsSigned: /^-?\d{1,3}/, // 0 to 999, -0 to -999
472
+ fourDigitsSigned: /^-?\d{1,4}/, // 0 to 9999, -0 to -9999
473
+ });
474
+
475
+ (constants.timezonePatterns = {
476
+ basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
477
+ basic: /^([+-])(\d{2})(\d{2})|Z/,
478
+ basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
479
+ extended: /^([+-])(\d{2}):(\d{2})|Z/,
480
+ extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/,
481
+ });
482
+ return constants;
483
+ }
484
+
485
+ var hasRequiredUtils;
486
+
487
+ function requireUtils () {
488
+ if (hasRequiredUtils) return utils;
489
+ hasRequiredUtils = 1;
490
+ utils.dayPeriodEnumToHours = dayPeriodEnumToHours;
491
+ utils.isLeapYearIndex = isLeapYearIndex;
492
+ utils.mapValue = mapValue;
493
+ utils.normalizeTwoDigitYear = normalizeTwoDigitYear;
494
+ utils.parseAnyDigitsSigned = parseAnyDigitsSigned;
495
+ utils.parseNDigits = parseNDigits;
496
+ utils.parseNDigitsSigned = parseNDigitsSigned;
497
+ utils.parseNumericPattern = parseNumericPattern;
498
+ utils.parseTimezonePattern = parseTimezonePattern;
499
+ var _index = /*@__PURE__*/ datetimePickerConstants.requireConstants();
500
+
501
+ var _constants = /*@__PURE__*/ requireConstants();
502
+
503
+ function mapValue(parseFnResult, mapFn) {
504
+ if (!parseFnResult) {
505
+ return parseFnResult;
506
+ }
507
+
508
+ return {
509
+ value: mapFn(parseFnResult.value),
510
+ rest: parseFnResult.rest,
511
+ };
512
+ }
513
+
514
+ function parseNumericPattern(pattern, dateString) {
515
+ const matchResult = dateString.match(pattern);
516
+
517
+ if (!matchResult) {
518
+ return null;
519
+ }
520
+
521
+ return {
522
+ value: parseInt(matchResult[0], 10),
523
+ rest: dateString.slice(matchResult[0].length),
524
+ };
525
+ }
526
+
527
+ function parseTimezonePattern(pattern, dateString) {
528
+ const matchResult = dateString.match(pattern);
529
+
530
+ if (!matchResult) {
531
+ return null;
532
+ }
533
+
534
+ // Input is 'Z'
535
+ if (matchResult[0] === "Z") {
536
+ return {
537
+ value: 0,
538
+ rest: dateString.slice(1),
539
+ };
540
+ }
541
+
542
+ const sign = matchResult[1] === "+" ? 1 : -1;
543
+ const hours = matchResult[2] ? parseInt(matchResult[2], 10) : 0;
544
+ const minutes = matchResult[3] ? parseInt(matchResult[3], 10) : 0;
545
+ const seconds = matchResult[5] ? parseInt(matchResult[5], 10) : 0;
546
+
547
+ return {
548
+ value:
549
+ sign *
550
+ (hours * _index.millisecondsInHour +
551
+ minutes * _index.millisecondsInMinute +
552
+ seconds * _index.millisecondsInSecond),
553
+ rest: dateString.slice(matchResult[0].length),
554
+ };
555
+ }
556
+
557
+ function parseAnyDigitsSigned(dateString) {
558
+ return parseNumericPattern(
559
+ _constants.numericPatterns.anyDigitsSigned,
560
+ dateString,
561
+ );
562
+ }
563
+
564
+ function parseNDigits(n, dateString) {
565
+ switch (n) {
566
+ case 1:
567
+ return parseNumericPattern(
568
+ _constants.numericPatterns.singleDigit,
569
+ dateString,
570
+ );
571
+ case 2:
572
+ return parseNumericPattern(
573
+ _constants.numericPatterns.twoDigits,
574
+ dateString,
575
+ );
576
+ case 3:
577
+ return parseNumericPattern(
578
+ _constants.numericPatterns.threeDigits,
579
+ dateString,
580
+ );
581
+ case 4:
582
+ return parseNumericPattern(
583
+ _constants.numericPatterns.fourDigits,
584
+ dateString,
585
+ );
586
+ default:
587
+ return parseNumericPattern(new RegExp("^\\d{1," + n + "}"), dateString);
588
+ }
589
+ }
590
+
591
+ function parseNDigitsSigned(n, dateString) {
592
+ switch (n) {
593
+ case 1:
594
+ return parseNumericPattern(
595
+ _constants.numericPatterns.singleDigitSigned,
596
+ dateString,
597
+ );
598
+ case 2:
599
+ return parseNumericPattern(
600
+ _constants.numericPatterns.twoDigitsSigned,
601
+ dateString,
602
+ );
603
+ case 3:
604
+ return parseNumericPattern(
605
+ _constants.numericPatterns.threeDigitsSigned,
606
+ dateString,
607
+ );
608
+ case 4:
609
+ return parseNumericPattern(
610
+ _constants.numericPatterns.fourDigitsSigned,
611
+ dateString,
612
+ );
613
+ default:
614
+ return parseNumericPattern(new RegExp("^-?\\d{1," + n + "}"), dateString);
615
+ }
616
+ }
617
+
618
+ function dayPeriodEnumToHours(dayPeriod) {
619
+ switch (dayPeriod) {
620
+ case "morning":
621
+ return 4;
622
+ case "evening":
623
+ return 17;
624
+ case "pm":
625
+ case "noon":
626
+ case "afternoon":
627
+ return 12;
628
+ case "am":
629
+ case "midnight":
630
+ case "night":
631
+ default:
632
+ return 0;
633
+ }
634
+ }
635
+
636
+ function normalizeTwoDigitYear(twoDigitYear, currentYear) {
637
+ const isCommonEra = currentYear > 0;
638
+ // Absolute number of the current year:
639
+ // 1 -> 1 AC
640
+ // 0 -> 1 BC
641
+ // -1 -> 2 BC
642
+ const absCurrentYear = isCommonEra ? currentYear : 1 - currentYear;
643
+
644
+ let result;
645
+ if (absCurrentYear <= 50) {
646
+ result = twoDigitYear || 100;
647
+ } else {
648
+ const rangeEnd = absCurrentYear + 50;
649
+ const rangeEndCentury = Math.trunc(rangeEnd / 100) * 100;
650
+ const isPreviousCentury = twoDigitYear >= rangeEnd % 100;
651
+ result = twoDigitYear + rangeEndCentury - (isPreviousCentury ? 100 : 0);
652
+ }
653
+
654
+ return isCommonEra ? result : 1 - result;
655
+ }
656
+
657
+ function isLeapYearIndex(year) {
658
+ return year % 400 === 0 || (year % 4 === 0 && year % 100 !== 0);
659
+ }
660
+ return utils;
661
+ }
662
+
663
+ var hasRequiredYearParser;
664
+
665
+ function requireYearParser () {
666
+ if (hasRequiredYearParser) return YearParser;
667
+ hasRequiredYearParser = 1;
668
+ YearParser.YearParser = void 0;
669
+ var _Parser = /*@__PURE__*/ requireParser();
670
+
671
+ var _utils = /*@__PURE__*/ requireUtils();
672
+
673
+ // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns
674
+ // | Year | y | yy | yyy | yyyy | yyyyy |
675
+ // |----------|-------|----|-------|-------|-------|
676
+ // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
677
+ // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
678
+ // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
679
+ // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
680
+ // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
681
+ let YearParser$1 = class YearParser extends _Parser.Parser {
682
+ priority = 130;
683
+ incompatibleTokens = ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"];
684
+
685
+ parse(dateString, token, match) {
686
+ const valueCallback = (year) => ({
687
+ year,
688
+ isTwoDigitYear: token === "yy",
689
+ });
690
+
691
+ switch (token) {
692
+ case "y":
693
+ return (0, _utils.mapValue)(
694
+ (0, _utils.parseNDigits)(4, dateString),
695
+ valueCallback,
696
+ );
697
+ case "yo":
698
+ return (0, _utils.mapValue)(
699
+ match.ordinalNumber(dateString, {
700
+ unit: "year",
701
+ }),
702
+ valueCallback,
703
+ );
704
+ default:
705
+ return (0, _utils.mapValue)(
706
+ (0, _utils.parseNDigits)(token.length, dateString),
707
+ valueCallback,
708
+ );
709
+ }
710
+ }
711
+
712
+ validate(_date, value) {
713
+ return value.isTwoDigitYear || value.year > 0;
714
+ }
715
+
716
+ set(date, flags, value) {
717
+ const currentYear = date.getFullYear();
718
+
719
+ if (value.isTwoDigitYear) {
720
+ const normalizedTwoDigitYear = (0, _utils.normalizeTwoDigitYear)(
721
+ value.year,
722
+ currentYear,
723
+ );
724
+ date.setFullYear(normalizedTwoDigitYear, 0, 1);
725
+ date.setHours(0, 0, 0, 0);
726
+ return date;
727
+ }
728
+
729
+ const year =
730
+ !("era" in flags) || flags.era === 1 ? value.year : 1 - value.year;
731
+ date.setFullYear(year, 0, 1);
732
+ date.setHours(0, 0, 0, 0);
733
+ return date;
734
+ }
735
+ };
736
+ YearParser.YearParser = YearParser$1;
737
+ return YearParser;
738
+ }
739
+
740
+ var LocalWeekYearParser = {};
741
+
742
+ var hasRequiredLocalWeekYearParser;
743
+
744
+ function requireLocalWeekYearParser () {
745
+ if (hasRequiredLocalWeekYearParser) return LocalWeekYearParser;
746
+ hasRequiredLocalWeekYearParser = 1;
747
+ LocalWeekYearParser.LocalWeekYearParser = void 0;
748
+ var _index = /*@__PURE__*/ datetimePickerConstants.requireGetWeekYear();
749
+
750
+ var _index2 = /*@__PURE__*/ datetimePickerConstants.requireStartOfWeek();
751
+ var _Parser = /*@__PURE__*/ requireParser();
752
+
753
+ var _utils = /*@__PURE__*/ requireUtils();
754
+
755
+ // Local week-numbering year
756
+ let LocalWeekYearParser$1 = class LocalWeekYearParser extends _Parser.Parser {
757
+ priority = 130;
758
+
759
+ parse(dateString, token, match) {
760
+ const valueCallback = (year) => ({
761
+ year,
762
+ isTwoDigitYear: token === "YY",
763
+ });
764
+
765
+ switch (token) {
766
+ case "Y":
767
+ return (0, _utils.mapValue)(
768
+ (0, _utils.parseNDigits)(4, dateString),
769
+ valueCallback,
770
+ );
771
+ case "Yo":
772
+ return (0, _utils.mapValue)(
773
+ match.ordinalNumber(dateString, {
774
+ unit: "year",
775
+ }),
776
+ valueCallback,
777
+ );
778
+ default:
779
+ return (0, _utils.mapValue)(
780
+ (0, _utils.parseNDigits)(token.length, dateString),
781
+ valueCallback,
782
+ );
783
+ }
784
+ }
785
+
786
+ validate(_date, value) {
787
+ return value.isTwoDigitYear || value.year > 0;
788
+ }
789
+
790
+ set(date, flags, value, options) {
791
+ const currentYear = (0, _index.getWeekYear)(date, options);
792
+
793
+ if (value.isTwoDigitYear) {
794
+ const normalizedTwoDigitYear = (0, _utils.normalizeTwoDigitYear)(
795
+ value.year,
796
+ currentYear,
797
+ );
798
+ date.setFullYear(
799
+ normalizedTwoDigitYear,
800
+ 0,
801
+ options.firstWeekContainsDate,
802
+ );
803
+ date.setHours(0, 0, 0, 0);
804
+ return (0, _index2.startOfWeek)(date, options);
805
+ }
806
+
807
+ const year =
808
+ !("era" in flags) || flags.era === 1 ? value.year : 1 - value.year;
809
+ date.setFullYear(year, 0, options.firstWeekContainsDate);
810
+ date.setHours(0, 0, 0, 0);
811
+ return (0, _index2.startOfWeek)(date, options);
812
+ }
813
+
814
+ incompatibleTokens = [
815
+ "y",
816
+ "R",
817
+ "u",
818
+ "Q",
819
+ "q",
820
+ "M",
821
+ "L",
822
+ "I",
823
+ "d",
824
+ "D",
825
+ "i",
826
+ "t",
827
+ "T",
828
+ ];
829
+ };
830
+ LocalWeekYearParser.LocalWeekYearParser = LocalWeekYearParser$1;
831
+ return LocalWeekYearParser;
832
+ }
833
+
834
+ var ISOWeekYearParser = {};
835
+
836
+ var hasRequiredISOWeekYearParser;
837
+
838
+ function requireISOWeekYearParser () {
839
+ if (hasRequiredISOWeekYearParser) return ISOWeekYearParser;
840
+ hasRequiredISOWeekYearParser = 1;
841
+ ISOWeekYearParser.ISOWeekYearParser = void 0;
842
+ var _index = /*@__PURE__*/ datetimePickerConstants.requireStartOfISOWeek();
843
+ var _index2 = /*@__PURE__*/ datetimePickerConstants.requireConstructFrom();
844
+ var _Parser = /*@__PURE__*/ requireParser();
845
+
846
+ var _utils = /*@__PURE__*/ requireUtils();
847
+
848
+ // ISO week-numbering year
849
+ let ISOWeekYearParser$1 = class ISOWeekYearParser extends _Parser.Parser {
850
+ priority = 130;
851
+
852
+ parse(dateString, token) {
853
+ if (token === "R") {
854
+ return (0, _utils.parseNDigitsSigned)(4, dateString);
855
+ }
856
+
857
+ return (0, _utils.parseNDigitsSigned)(token.length, dateString);
858
+ }
859
+
860
+ set(date, _flags, value) {
861
+ const firstWeekOfYear = (0, _index2.constructFrom)(date, 0);
862
+ firstWeekOfYear.setFullYear(value, 0, 4);
863
+ firstWeekOfYear.setHours(0, 0, 0, 0);
864
+ return (0, _index.startOfISOWeek)(firstWeekOfYear);
865
+ }
866
+
867
+ incompatibleTokens = [
868
+ "G",
869
+ "y",
870
+ "Y",
871
+ "u",
872
+ "Q",
873
+ "q",
874
+ "M",
875
+ "L",
876
+ "w",
877
+ "d",
878
+ "D",
879
+ "e",
880
+ "c",
881
+ "t",
882
+ "T",
883
+ ];
884
+ };
885
+ ISOWeekYearParser.ISOWeekYearParser = ISOWeekYearParser$1;
886
+ return ISOWeekYearParser;
887
+ }
888
+
889
+ var ExtendedYearParser = {};
890
+
891
+ var hasRequiredExtendedYearParser;
892
+
893
+ function requireExtendedYearParser () {
894
+ if (hasRequiredExtendedYearParser) return ExtendedYearParser;
895
+ hasRequiredExtendedYearParser = 1;
896
+ ExtendedYearParser.ExtendedYearParser = void 0;
897
+ var _Parser = /*@__PURE__*/ requireParser();
898
+
899
+ var _utils = /*@__PURE__*/ requireUtils();
900
+
901
+ let ExtendedYearParser$1 = class ExtendedYearParser extends _Parser.Parser {
902
+ priority = 130;
903
+
904
+ parse(dateString, token) {
905
+ if (token === "u") {
906
+ return (0, _utils.parseNDigitsSigned)(4, dateString);
907
+ }
908
+
909
+ return (0, _utils.parseNDigitsSigned)(token.length, dateString);
910
+ }
911
+
912
+ set(date, _flags, value) {
913
+ date.setFullYear(value, 0, 1);
914
+ date.setHours(0, 0, 0, 0);
915
+ return date;
916
+ }
917
+
918
+ incompatibleTokens = ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"];
919
+ };
920
+ ExtendedYearParser.ExtendedYearParser = ExtendedYearParser$1;
921
+ return ExtendedYearParser;
922
+ }
923
+
924
+ var QuarterParser = {};
925
+
926
+ var hasRequiredQuarterParser;
927
+
928
+ function requireQuarterParser () {
929
+ if (hasRequiredQuarterParser) return QuarterParser;
930
+ hasRequiredQuarterParser = 1;
931
+ QuarterParser.QuarterParser = void 0;
932
+ var _Parser = /*@__PURE__*/ requireParser();
933
+
934
+ var _utils = /*@__PURE__*/ requireUtils();
935
+
936
+ let QuarterParser$1 = class QuarterParser extends _Parser.Parser {
937
+ priority = 120;
938
+
939
+ parse(dateString, token, match) {
940
+ switch (token) {
941
+ // 1, 2, 3, 4
942
+ case "Q":
943
+ case "QQ": // 01, 02, 03, 04
944
+ return (0, _utils.parseNDigits)(token.length, dateString);
945
+ // 1st, 2nd, 3rd, 4th
946
+ case "Qo":
947
+ return match.ordinalNumber(dateString, { unit: "quarter" });
948
+ // Q1, Q2, Q3, Q4
949
+ case "QQQ":
950
+ return (
951
+ match.quarter(dateString, {
952
+ width: "abbreviated",
953
+ context: "formatting",
954
+ }) ||
955
+ match.quarter(dateString, {
956
+ width: "narrow",
957
+ context: "formatting",
958
+ })
959
+ );
960
+
961
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
962
+ case "QQQQQ":
963
+ return match.quarter(dateString, {
964
+ width: "narrow",
965
+ context: "formatting",
966
+ });
967
+ // 1st quarter, 2nd quarter, ...
968
+ case "QQQQ":
969
+ default:
970
+ return (
971
+ match.quarter(dateString, {
972
+ width: "wide",
973
+ context: "formatting",
974
+ }) ||
975
+ match.quarter(dateString, {
976
+ width: "abbreviated",
977
+ context: "formatting",
978
+ }) ||
979
+ match.quarter(dateString, {
980
+ width: "narrow",
981
+ context: "formatting",
982
+ })
983
+ );
984
+ }
985
+ }
986
+
987
+ validate(_date, value) {
988
+ return value >= 1 && value <= 4;
989
+ }
990
+
991
+ set(date, _flags, value) {
992
+ date.setMonth((value - 1) * 3, 1);
993
+ date.setHours(0, 0, 0, 0);
994
+ return date;
995
+ }
996
+
997
+ incompatibleTokens = [
998
+ "Y",
999
+ "R",
1000
+ "q",
1001
+ "M",
1002
+ "L",
1003
+ "w",
1004
+ "I",
1005
+ "d",
1006
+ "D",
1007
+ "i",
1008
+ "e",
1009
+ "c",
1010
+ "t",
1011
+ "T",
1012
+ ];
1013
+ };
1014
+ QuarterParser.QuarterParser = QuarterParser$1;
1015
+ return QuarterParser;
1016
+ }
1017
+
1018
+ var StandAloneQuarterParser = {};
1019
+
1020
+ var hasRequiredStandAloneQuarterParser;
1021
+
1022
+ function requireStandAloneQuarterParser () {
1023
+ if (hasRequiredStandAloneQuarterParser) return StandAloneQuarterParser;
1024
+ hasRequiredStandAloneQuarterParser = 1;
1025
+ StandAloneQuarterParser.StandAloneQuarterParser = void 0;
1026
+ var _Parser = /*@__PURE__*/ requireParser();
1027
+
1028
+ var _utils = /*@__PURE__*/ requireUtils();
1029
+
1030
+ let StandAloneQuarterParser$1 = class StandAloneQuarterParser extends _Parser.Parser {
1031
+ priority = 120;
1032
+
1033
+ parse(dateString, token, match) {
1034
+ switch (token) {
1035
+ // 1, 2, 3, 4
1036
+ case "q":
1037
+ case "qq": // 01, 02, 03, 04
1038
+ return (0, _utils.parseNDigits)(token.length, dateString);
1039
+ // 1st, 2nd, 3rd, 4th
1040
+ case "qo":
1041
+ return match.ordinalNumber(dateString, { unit: "quarter" });
1042
+ // Q1, Q2, Q3, Q4
1043
+ case "qqq":
1044
+ return (
1045
+ match.quarter(dateString, {
1046
+ width: "abbreviated",
1047
+ context: "standalone",
1048
+ }) ||
1049
+ match.quarter(dateString, {
1050
+ width: "narrow",
1051
+ context: "standalone",
1052
+ })
1053
+ );
1054
+
1055
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
1056
+ case "qqqqq":
1057
+ return match.quarter(dateString, {
1058
+ width: "narrow",
1059
+ context: "standalone",
1060
+ });
1061
+ // 1st quarter, 2nd quarter, ...
1062
+ case "qqqq":
1063
+ default:
1064
+ return (
1065
+ match.quarter(dateString, {
1066
+ width: "wide",
1067
+ context: "standalone",
1068
+ }) ||
1069
+ match.quarter(dateString, {
1070
+ width: "abbreviated",
1071
+ context: "standalone",
1072
+ }) ||
1073
+ match.quarter(dateString, {
1074
+ width: "narrow",
1075
+ context: "standalone",
1076
+ })
1077
+ );
1078
+ }
1079
+ }
1080
+
1081
+ validate(_date, value) {
1082
+ return value >= 1 && value <= 4;
1083
+ }
1084
+
1085
+ set(date, _flags, value) {
1086
+ date.setMonth((value - 1) * 3, 1);
1087
+ date.setHours(0, 0, 0, 0);
1088
+ return date;
1089
+ }
1090
+
1091
+ incompatibleTokens = [
1092
+ "Y",
1093
+ "R",
1094
+ "Q",
1095
+ "M",
1096
+ "L",
1097
+ "w",
1098
+ "I",
1099
+ "d",
1100
+ "D",
1101
+ "i",
1102
+ "e",
1103
+ "c",
1104
+ "t",
1105
+ "T",
1106
+ ];
1107
+ };
1108
+ StandAloneQuarterParser.StandAloneQuarterParser = StandAloneQuarterParser$1;
1109
+ return StandAloneQuarterParser;
1110
+ }
1111
+
1112
+ var MonthParser = {};
1113
+
1114
+ var hasRequiredMonthParser;
1115
+
1116
+ function requireMonthParser () {
1117
+ if (hasRequiredMonthParser) return MonthParser;
1118
+ hasRequiredMonthParser = 1;
1119
+ MonthParser.MonthParser = void 0;
1120
+ var _constants = /*@__PURE__*/ requireConstants();
1121
+ var _Parser = /*@__PURE__*/ requireParser();
1122
+
1123
+ var _utils = /*@__PURE__*/ requireUtils();
1124
+
1125
+ let MonthParser$1 = class MonthParser extends _Parser.Parser {
1126
+ incompatibleTokens = [
1127
+ "Y",
1128
+ "R",
1129
+ "q",
1130
+ "Q",
1131
+ "L",
1132
+ "w",
1133
+ "I",
1134
+ "D",
1135
+ "i",
1136
+ "e",
1137
+ "c",
1138
+ "t",
1139
+ "T",
1140
+ ];
1141
+
1142
+ priority = 110;
1143
+
1144
+ parse(dateString, token, match) {
1145
+ const valueCallback = (value) => value - 1;
1146
+
1147
+ switch (token) {
1148
+ // 1, 2, ..., 12
1149
+ case "M":
1150
+ return (0, _utils.mapValue)(
1151
+ (0, _utils.parseNumericPattern)(
1152
+ _constants.numericPatterns.month,
1153
+ dateString,
1154
+ ),
1155
+ valueCallback,
1156
+ );
1157
+ // 01, 02, ..., 12
1158
+ case "MM":
1159
+ return (0, _utils.mapValue)(
1160
+ (0, _utils.parseNDigits)(2, dateString),
1161
+ valueCallback,
1162
+ );
1163
+ // 1st, 2nd, ..., 12th
1164
+ case "Mo":
1165
+ return (0, _utils.mapValue)(
1166
+ match.ordinalNumber(dateString, {
1167
+ unit: "month",
1168
+ }),
1169
+ valueCallback,
1170
+ );
1171
+ // Jan, Feb, ..., Dec
1172
+ case "MMM":
1173
+ return (
1174
+ match.month(dateString, {
1175
+ width: "abbreviated",
1176
+ context: "formatting",
1177
+ }) ||
1178
+ match.month(dateString, { width: "narrow", context: "formatting" })
1179
+ );
1180
+
1181
+ // J, F, ..., D
1182
+ case "MMMMM":
1183
+ return match.month(dateString, {
1184
+ width: "narrow",
1185
+ context: "formatting",
1186
+ });
1187
+ // January, February, ..., December
1188
+ case "MMMM":
1189
+ default:
1190
+ return (
1191
+ match.month(dateString, { width: "wide", context: "formatting" }) ||
1192
+ match.month(dateString, {
1193
+ width: "abbreviated",
1194
+ context: "formatting",
1195
+ }) ||
1196
+ match.month(dateString, { width: "narrow", context: "formatting" })
1197
+ );
1198
+ }
1199
+ }
1200
+
1201
+ validate(_date, value) {
1202
+ return value >= 0 && value <= 11;
1203
+ }
1204
+
1205
+ set(date, _flags, value) {
1206
+ date.setMonth(value, 1);
1207
+ date.setHours(0, 0, 0, 0);
1208
+ return date;
1209
+ }
1210
+ };
1211
+ MonthParser.MonthParser = MonthParser$1;
1212
+ return MonthParser;
1213
+ }
1214
+
1215
+ var StandAloneMonthParser = {};
1216
+
1217
+ var hasRequiredStandAloneMonthParser;
1218
+
1219
+ function requireStandAloneMonthParser () {
1220
+ if (hasRequiredStandAloneMonthParser) return StandAloneMonthParser;
1221
+ hasRequiredStandAloneMonthParser = 1;
1222
+ StandAloneMonthParser.StandAloneMonthParser = void 0;
1223
+ var _constants = /*@__PURE__*/ requireConstants();
1224
+ var _Parser = /*@__PURE__*/ requireParser();
1225
+
1226
+ var _utils = /*@__PURE__*/ requireUtils();
1227
+
1228
+ let StandAloneMonthParser$1 = class StandAloneMonthParser extends _Parser.Parser {
1229
+ priority = 110;
1230
+
1231
+ parse(dateString, token, match) {
1232
+ const valueCallback = (value) => value - 1;
1233
+
1234
+ switch (token) {
1235
+ // 1, 2, ..., 12
1236
+ case "L":
1237
+ return (0, _utils.mapValue)(
1238
+ (0, _utils.parseNumericPattern)(
1239
+ _constants.numericPatterns.month,
1240
+ dateString,
1241
+ ),
1242
+ valueCallback,
1243
+ );
1244
+ // 01, 02, ..., 12
1245
+ case "LL":
1246
+ return (0, _utils.mapValue)(
1247
+ (0, _utils.parseNDigits)(2, dateString),
1248
+ valueCallback,
1249
+ );
1250
+ // 1st, 2nd, ..., 12th
1251
+ case "Lo":
1252
+ return (0, _utils.mapValue)(
1253
+ match.ordinalNumber(dateString, {
1254
+ unit: "month",
1255
+ }),
1256
+ valueCallback,
1257
+ );
1258
+ // Jan, Feb, ..., Dec
1259
+ case "LLL":
1260
+ return (
1261
+ match.month(dateString, {
1262
+ width: "abbreviated",
1263
+ context: "standalone",
1264
+ }) ||
1265
+ match.month(dateString, { width: "narrow", context: "standalone" })
1266
+ );
1267
+
1268
+ // J, F, ..., D
1269
+ case "LLLLL":
1270
+ return match.month(dateString, {
1271
+ width: "narrow",
1272
+ context: "standalone",
1273
+ });
1274
+ // January, February, ..., December
1275
+ case "LLLL":
1276
+ default:
1277
+ return (
1278
+ match.month(dateString, { width: "wide", context: "standalone" }) ||
1279
+ match.month(dateString, {
1280
+ width: "abbreviated",
1281
+ context: "standalone",
1282
+ }) ||
1283
+ match.month(dateString, { width: "narrow", context: "standalone" })
1284
+ );
1285
+ }
1286
+ }
1287
+
1288
+ validate(_date, value) {
1289
+ return value >= 0 && value <= 11;
1290
+ }
1291
+
1292
+ set(date, _flags, value) {
1293
+ date.setMonth(value, 1);
1294
+ date.setHours(0, 0, 0, 0);
1295
+ return date;
1296
+ }
1297
+
1298
+ incompatibleTokens = [
1299
+ "Y",
1300
+ "R",
1301
+ "q",
1302
+ "Q",
1303
+ "M",
1304
+ "w",
1305
+ "I",
1306
+ "D",
1307
+ "i",
1308
+ "e",
1309
+ "c",
1310
+ "t",
1311
+ "T",
1312
+ ];
1313
+ };
1314
+ StandAloneMonthParser.StandAloneMonthParser = StandAloneMonthParser$1;
1315
+ return StandAloneMonthParser;
1316
+ }
1317
+
1318
+ var LocalWeekParser = {};
1319
+
1320
+ var setWeek = {};
1321
+
1322
+ var hasRequiredSetWeek;
1323
+
1324
+ function requireSetWeek () {
1325
+ if (hasRequiredSetWeek) return setWeek;
1326
+ hasRequiredSetWeek = 1;
1327
+ setWeek.setWeek = setWeek$1;
1328
+ var _index = /*@__PURE__*/ datetimePickerConstants.requireGetWeek();
1329
+ var _index2 = /*@__PURE__*/ datetimePickerConstants.requireToDate();
1330
+
1331
+ /**
1332
+ * The {@link setWeek} function options.
1333
+ */
1334
+
1335
+ /**
1336
+ * @name setWeek
1337
+ * @category Week Helpers
1338
+ * @summary Set the local week to the given date.
1339
+ *
1340
+ * @description
1341
+ * Set the local week to the given date, saving the weekday number.
1342
+ * The exact calculation depends on the values of
1343
+ * `options.weekStartsOn` (which is the index of the first day of the week)
1344
+ * and `options.firstWeekContainsDate` (which is the day of January, which is always in
1345
+ * the first week of the week-numbering year)
1346
+ *
1347
+ * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
1348
+ *
1349
+ * @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).
1350
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
1351
+ *
1352
+ * @param date - The date to be changed
1353
+ * @param week - The week of the new date
1354
+ * @param options - An object with options
1355
+ *
1356
+ * @returns The new date with the local week set
1357
+ *
1358
+ * @example
1359
+ * // Set the 1st week to 2 January 2005 with default options:
1360
+ * const result = setWeek(new Date(2005, 0, 2), 1)
1361
+ * //=> Sun Dec 26 2004 00:00:00
1362
+ *
1363
+ * @example
1364
+ * // Set the 1st week to 2 January 2005,
1365
+ * // if Monday is the first day of the week,
1366
+ * // and the first week of the year always contains 4 January:
1367
+ * const result = setWeek(new Date(2005, 0, 2), 1, {
1368
+ * weekStartsOn: 1,
1369
+ * firstWeekContainsDate: 4
1370
+ * })
1371
+ * //=> Sun Jan 4 2004 00:00:00
1372
+ */
1373
+ function setWeek$1(date, week, options) {
1374
+ const date_ = (0, _index2.toDate)(date, options?.in);
1375
+ const diff = (0, _index.getWeek)(date_, options) - week;
1376
+ date_.setDate(date_.getDate() - diff * 7);
1377
+ return (0, _index2.toDate)(date_, options?.in);
1378
+ }
1379
+ return setWeek;
1380
+ }
1381
+
1382
+ var hasRequiredLocalWeekParser;
1383
+
1384
+ function requireLocalWeekParser () {
1385
+ if (hasRequiredLocalWeekParser) return LocalWeekParser;
1386
+ hasRequiredLocalWeekParser = 1;
1387
+ LocalWeekParser.LocalWeekParser = void 0;
1388
+ var _index = /*@__PURE__*/ requireSetWeek();
1389
+ var _index2 = /*@__PURE__*/ datetimePickerConstants.requireStartOfWeek();
1390
+ var _constants = /*@__PURE__*/ requireConstants();
1391
+ var _Parser = /*@__PURE__*/ requireParser();
1392
+
1393
+ var _utils = /*@__PURE__*/ requireUtils();
1394
+
1395
+ // Local week of year
1396
+ let LocalWeekParser$1 = class LocalWeekParser extends _Parser.Parser {
1397
+ priority = 100;
1398
+
1399
+ parse(dateString, token, match) {
1400
+ switch (token) {
1401
+ case "w":
1402
+ return (0, _utils.parseNumericPattern)(
1403
+ _constants.numericPatterns.week,
1404
+ dateString,
1405
+ );
1406
+ case "wo":
1407
+ return match.ordinalNumber(dateString, { unit: "week" });
1408
+ default:
1409
+ return (0, _utils.parseNDigits)(token.length, dateString);
1410
+ }
1411
+ }
1412
+
1413
+ validate(_date, value) {
1414
+ return value >= 1 && value <= 53;
1415
+ }
1416
+
1417
+ set(date, _flags, value, options) {
1418
+ return (0, _index2.startOfWeek)(
1419
+ (0, _index.setWeek)(date, value, options),
1420
+ options,
1421
+ );
1422
+ }
1423
+
1424
+ incompatibleTokens = [
1425
+ "y",
1426
+ "R",
1427
+ "u",
1428
+ "q",
1429
+ "Q",
1430
+ "M",
1431
+ "L",
1432
+ "I",
1433
+ "d",
1434
+ "D",
1435
+ "i",
1436
+ "t",
1437
+ "T",
1438
+ ];
1439
+ };
1440
+ LocalWeekParser.LocalWeekParser = LocalWeekParser$1;
1441
+ return LocalWeekParser;
1442
+ }
1443
+
1444
+ var ISOWeekParser = {};
1445
+
1446
+ var setISOWeek = {};
1447
+
1448
+ var hasRequiredSetISOWeek;
1449
+
1450
+ function requireSetISOWeek () {
1451
+ if (hasRequiredSetISOWeek) return setISOWeek;
1452
+ hasRequiredSetISOWeek = 1;
1453
+ setISOWeek.setISOWeek = setISOWeek$1;
1454
+ var _index = /*@__PURE__*/ datetimePickerConstants.requireGetISOWeek();
1455
+ var _index2 = /*@__PURE__*/ datetimePickerConstants.requireToDate();
1456
+
1457
+ /**
1458
+ * The {@link setISOWeek} function options.
1459
+ */
1460
+
1461
+ /**
1462
+ * @name setISOWeek
1463
+ * @category ISO Week Helpers
1464
+ * @summary Set the ISO week to the given date.
1465
+ *
1466
+ * @description
1467
+ * Set the ISO week to the given date, saving the weekday number.
1468
+ *
1469
+ * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
1470
+ *
1471
+ * @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).
1472
+ * @typeParam ResultDate - The `Date` type of the context function.
1473
+ *
1474
+ * @param date - The date to be changed
1475
+ * @param week - The ISO week of the new date
1476
+ * @param options - An object with options
1477
+ *
1478
+ * @returns The new date with the ISO week set
1479
+ *
1480
+ * @example
1481
+ * // Set the 53rd ISO week to 7 August 2004:
1482
+ * const result = setISOWeek(new Date(2004, 7, 7), 53)
1483
+ * //=> Sat Jan 01 2005 00:00:00
1484
+ */
1485
+ function setISOWeek$1(date, week, options) {
1486
+ const _date = (0, _index2.toDate)(date, options?.in);
1487
+ const diff = (0, _index.getISOWeek)(_date, options) - week;
1488
+ _date.setDate(_date.getDate() - diff * 7);
1489
+ return _date;
1490
+ }
1491
+ return setISOWeek;
1492
+ }
1493
+
1494
+ var hasRequiredISOWeekParser;
1495
+
1496
+ function requireISOWeekParser () {
1497
+ if (hasRequiredISOWeekParser) return ISOWeekParser;
1498
+ hasRequiredISOWeekParser = 1;
1499
+ ISOWeekParser.ISOWeekParser = void 0;
1500
+ var _index = /*@__PURE__*/ requireSetISOWeek();
1501
+ var _index2 = /*@__PURE__*/ datetimePickerConstants.requireStartOfISOWeek();
1502
+ var _constants = /*@__PURE__*/ requireConstants();
1503
+ var _Parser = /*@__PURE__*/ requireParser();
1504
+
1505
+ var _utils = /*@__PURE__*/ requireUtils();
1506
+
1507
+ // ISO week of year
1508
+ let ISOWeekParser$1 = class ISOWeekParser extends _Parser.Parser {
1509
+ priority = 100;
1510
+
1511
+ parse(dateString, token, match) {
1512
+ switch (token) {
1513
+ case "I":
1514
+ return (0, _utils.parseNumericPattern)(
1515
+ _constants.numericPatterns.week,
1516
+ dateString,
1517
+ );
1518
+ case "Io":
1519
+ return match.ordinalNumber(dateString, { unit: "week" });
1520
+ default:
1521
+ return (0, _utils.parseNDigits)(token.length, dateString);
1522
+ }
1523
+ }
1524
+
1525
+ validate(_date, value) {
1526
+ return value >= 1 && value <= 53;
1527
+ }
1528
+
1529
+ set(date, _flags, value) {
1530
+ return (0, _index2.startOfISOWeek)((0, _index.setISOWeek)(date, value));
1531
+ }
1532
+
1533
+ incompatibleTokens = [
1534
+ "y",
1535
+ "Y",
1536
+ "u",
1537
+ "q",
1538
+ "Q",
1539
+ "M",
1540
+ "L",
1541
+ "w",
1542
+ "d",
1543
+ "D",
1544
+ "e",
1545
+ "c",
1546
+ "t",
1547
+ "T",
1548
+ ];
1549
+ };
1550
+ ISOWeekParser.ISOWeekParser = ISOWeekParser$1;
1551
+ return ISOWeekParser;
1552
+ }
1553
+
1554
+ var DateParser = {};
1555
+
1556
+ var hasRequiredDateParser;
1557
+
1558
+ function requireDateParser () {
1559
+ if (hasRequiredDateParser) return DateParser;
1560
+ hasRequiredDateParser = 1;
1561
+ DateParser.DateParser = void 0;
1562
+ var _constants = /*@__PURE__*/ requireConstants();
1563
+ var _Parser = /*@__PURE__*/ requireParser();
1564
+
1565
+ var _utils = /*@__PURE__*/ requireUtils();
1566
+
1567
+ const DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
1568
+ const DAYS_IN_MONTH_LEAP_YEAR = [
1569
+ 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31,
1570
+ ];
1571
+
1572
+ // Day of the month
1573
+ let DateParser$1 = class DateParser extends _Parser.Parser {
1574
+ priority = 90;
1575
+ subPriority = 1;
1576
+
1577
+ parse(dateString, token, match) {
1578
+ switch (token) {
1579
+ case "d":
1580
+ return (0, _utils.parseNumericPattern)(
1581
+ _constants.numericPatterns.date,
1582
+ dateString,
1583
+ );
1584
+ case "do":
1585
+ return match.ordinalNumber(dateString, { unit: "date" });
1586
+ default:
1587
+ return (0, _utils.parseNDigits)(token.length, dateString);
1588
+ }
1589
+ }
1590
+
1591
+ validate(date, value) {
1592
+ const year = date.getFullYear();
1593
+ const isLeapYear = (0, _utils.isLeapYearIndex)(year);
1594
+ const month = date.getMonth();
1595
+ if (isLeapYear) {
1596
+ return value >= 1 && value <= DAYS_IN_MONTH_LEAP_YEAR[month];
1597
+ } else {
1598
+ return value >= 1 && value <= DAYS_IN_MONTH[month];
1599
+ }
1600
+ }
1601
+
1602
+ set(date, _flags, value) {
1603
+ date.setDate(value);
1604
+ date.setHours(0, 0, 0, 0);
1605
+ return date;
1606
+ }
1607
+
1608
+ incompatibleTokens = [
1609
+ "Y",
1610
+ "R",
1611
+ "q",
1612
+ "Q",
1613
+ "w",
1614
+ "I",
1615
+ "D",
1616
+ "i",
1617
+ "e",
1618
+ "c",
1619
+ "t",
1620
+ "T",
1621
+ ];
1622
+ };
1623
+ DateParser.DateParser = DateParser$1;
1624
+ return DateParser;
1625
+ }
1626
+
1627
+ var DayOfYearParser = {};
1628
+
1629
+ var hasRequiredDayOfYearParser;
1630
+
1631
+ function requireDayOfYearParser () {
1632
+ if (hasRequiredDayOfYearParser) return DayOfYearParser;
1633
+ hasRequiredDayOfYearParser = 1;
1634
+ DayOfYearParser.DayOfYearParser = void 0;
1635
+ var _constants = /*@__PURE__*/ requireConstants();
1636
+ var _Parser = /*@__PURE__*/ requireParser();
1637
+
1638
+ var _utils = /*@__PURE__*/ requireUtils();
1639
+
1640
+ let DayOfYearParser$1 = class DayOfYearParser extends _Parser.Parser {
1641
+ priority = 90;
1642
+
1643
+ subpriority = 1;
1644
+
1645
+ parse(dateString, token, match) {
1646
+ switch (token) {
1647
+ case "D":
1648
+ case "DD":
1649
+ return (0, _utils.parseNumericPattern)(
1650
+ _constants.numericPatterns.dayOfYear,
1651
+ dateString,
1652
+ );
1653
+ case "Do":
1654
+ return match.ordinalNumber(dateString, { unit: "date" });
1655
+ default:
1656
+ return (0, _utils.parseNDigits)(token.length, dateString);
1657
+ }
1658
+ }
1659
+
1660
+ validate(date, value) {
1661
+ const year = date.getFullYear();
1662
+ const isLeapYear = (0, _utils.isLeapYearIndex)(year);
1663
+ if (isLeapYear) {
1664
+ return value >= 1 && value <= 366;
1665
+ } else {
1666
+ return value >= 1 && value <= 365;
1667
+ }
1668
+ }
1669
+
1670
+ set(date, _flags, value) {
1671
+ date.setMonth(0, value);
1672
+ date.setHours(0, 0, 0, 0);
1673
+ return date;
1674
+ }
1675
+
1676
+ incompatibleTokens = [
1677
+ "Y",
1678
+ "R",
1679
+ "q",
1680
+ "Q",
1681
+ "M",
1682
+ "L",
1683
+ "w",
1684
+ "I",
1685
+ "d",
1686
+ "E",
1687
+ "i",
1688
+ "e",
1689
+ "c",
1690
+ "t",
1691
+ "T",
1692
+ ];
1693
+ };
1694
+ DayOfYearParser.DayOfYearParser = DayOfYearParser$1;
1695
+ return DayOfYearParser;
1696
+ }
1697
+
1698
+ var DayParser = {};
1699
+
1700
+ var hasRequiredDayParser;
1701
+
1702
+ function requireDayParser () {
1703
+ if (hasRequiredDayParser) return DayParser;
1704
+ hasRequiredDayParser = 1;
1705
+ DayParser.DayParser = void 0;
1706
+ var _index = /*@__PURE__*/ datetimePickerConstants.requireSetDay();
1707
+ var _Parser = /*@__PURE__*/ requireParser();
1708
+
1709
+ // Day of week
1710
+ let DayParser$1 = class DayParser extends _Parser.Parser {
1711
+ priority = 90;
1712
+
1713
+ parse(dateString, token, match) {
1714
+ switch (token) {
1715
+ // Tue
1716
+ case "E":
1717
+ case "EE":
1718
+ case "EEE":
1719
+ return (
1720
+ match.day(dateString, {
1721
+ width: "abbreviated",
1722
+ context: "formatting",
1723
+ }) ||
1724
+ match.day(dateString, { width: "short", context: "formatting" }) ||
1725
+ match.day(dateString, { width: "narrow", context: "formatting" })
1726
+ );
1727
+
1728
+ // T
1729
+ case "EEEEE":
1730
+ return match.day(dateString, {
1731
+ width: "narrow",
1732
+ context: "formatting",
1733
+ });
1734
+ // Tu
1735
+ case "EEEEEE":
1736
+ return (
1737
+ match.day(dateString, { width: "short", context: "formatting" }) ||
1738
+ match.day(dateString, { width: "narrow", context: "formatting" })
1739
+ );
1740
+
1741
+ // Tuesday
1742
+ case "EEEE":
1743
+ default:
1744
+ return (
1745
+ match.day(dateString, { width: "wide", context: "formatting" }) ||
1746
+ match.day(dateString, {
1747
+ width: "abbreviated",
1748
+ context: "formatting",
1749
+ }) ||
1750
+ match.day(dateString, { width: "short", context: "formatting" }) ||
1751
+ match.day(dateString, { width: "narrow", context: "formatting" })
1752
+ );
1753
+ }
1754
+ }
1755
+
1756
+ validate(_date, value) {
1757
+ return value >= 0 && value <= 6;
1758
+ }
1759
+
1760
+ set(date, _flags, value, options) {
1761
+ date = (0, _index.setDay)(date, value, options);
1762
+ date.setHours(0, 0, 0, 0);
1763
+ return date;
1764
+ }
1765
+
1766
+ incompatibleTokens = ["D", "i", "e", "c", "t", "T"];
1767
+ };
1768
+ DayParser.DayParser = DayParser$1;
1769
+ return DayParser;
1770
+ }
1771
+
1772
+ var LocalDayParser = {};
1773
+
1774
+ var hasRequiredLocalDayParser;
1775
+
1776
+ function requireLocalDayParser () {
1777
+ if (hasRequiredLocalDayParser) return LocalDayParser;
1778
+ hasRequiredLocalDayParser = 1;
1779
+ LocalDayParser.LocalDayParser = void 0;
1780
+ var _index = /*@__PURE__*/ datetimePickerConstants.requireSetDay();
1781
+ var _Parser = /*@__PURE__*/ requireParser();
1782
+
1783
+ var _utils = /*@__PURE__*/ requireUtils();
1784
+
1785
+ // Local day of week
1786
+ let LocalDayParser$1 = class LocalDayParser extends _Parser.Parser {
1787
+ priority = 90;
1788
+ parse(dateString, token, match, options) {
1789
+ const valueCallback = (value) => {
1790
+ // We want here floor instead of trunc, so we get -7 for value 0 instead of 0
1791
+ const wholeWeekDays = Math.floor((value - 1) / 7) * 7;
1792
+ return ((value + options.weekStartsOn + 6) % 7) + wholeWeekDays;
1793
+ };
1794
+
1795
+ switch (token) {
1796
+ // 3
1797
+ case "e":
1798
+ case "ee": // 03
1799
+ return (0, _utils.mapValue)(
1800
+ (0, _utils.parseNDigits)(token.length, dateString),
1801
+ valueCallback,
1802
+ );
1803
+ // 3rd
1804
+ case "eo":
1805
+ return (0, _utils.mapValue)(
1806
+ match.ordinalNumber(dateString, {
1807
+ unit: "day",
1808
+ }),
1809
+ valueCallback,
1810
+ );
1811
+ // Tue
1812
+ case "eee":
1813
+ return (
1814
+ match.day(dateString, {
1815
+ width: "abbreviated",
1816
+ context: "formatting",
1817
+ }) ||
1818
+ match.day(dateString, { width: "short", context: "formatting" }) ||
1819
+ match.day(dateString, { width: "narrow", context: "formatting" })
1820
+ );
1821
+
1822
+ // T
1823
+ case "eeeee":
1824
+ return match.day(dateString, {
1825
+ width: "narrow",
1826
+ context: "formatting",
1827
+ });
1828
+ // Tu
1829
+ case "eeeeee":
1830
+ return (
1831
+ match.day(dateString, { width: "short", context: "formatting" }) ||
1832
+ match.day(dateString, { width: "narrow", context: "formatting" })
1833
+ );
1834
+
1835
+ // Tuesday
1836
+ case "eeee":
1837
+ default:
1838
+ return (
1839
+ match.day(dateString, { width: "wide", context: "formatting" }) ||
1840
+ match.day(dateString, {
1841
+ width: "abbreviated",
1842
+ context: "formatting",
1843
+ }) ||
1844
+ match.day(dateString, { width: "short", context: "formatting" }) ||
1845
+ match.day(dateString, { width: "narrow", context: "formatting" })
1846
+ );
1847
+ }
1848
+ }
1849
+
1850
+ validate(_date, value) {
1851
+ return value >= 0 && value <= 6;
1852
+ }
1853
+
1854
+ set(date, _flags, value, options) {
1855
+ date = (0, _index.setDay)(date, value, options);
1856
+ date.setHours(0, 0, 0, 0);
1857
+ return date;
1858
+ }
1859
+
1860
+ incompatibleTokens = [
1861
+ "y",
1862
+ "R",
1863
+ "u",
1864
+ "q",
1865
+ "Q",
1866
+ "M",
1867
+ "L",
1868
+ "I",
1869
+ "d",
1870
+ "D",
1871
+ "E",
1872
+ "i",
1873
+ "c",
1874
+ "t",
1875
+ "T",
1876
+ ];
1877
+ };
1878
+ LocalDayParser.LocalDayParser = LocalDayParser$1;
1879
+ return LocalDayParser;
1880
+ }
1881
+
1882
+ var StandAloneLocalDayParser = {};
1883
+
1884
+ var hasRequiredStandAloneLocalDayParser;
1885
+
1886
+ function requireStandAloneLocalDayParser () {
1887
+ if (hasRequiredStandAloneLocalDayParser) return StandAloneLocalDayParser;
1888
+ hasRequiredStandAloneLocalDayParser = 1;
1889
+ StandAloneLocalDayParser.StandAloneLocalDayParser = void 0;
1890
+ var _index = /*@__PURE__*/ datetimePickerConstants.requireSetDay();
1891
+ var _Parser = /*@__PURE__*/ requireParser();
1892
+
1893
+ var _utils = /*@__PURE__*/ requireUtils();
1894
+
1895
+ // Stand-alone local day of week
1896
+ let StandAloneLocalDayParser$1 = class StandAloneLocalDayParser extends _Parser.Parser {
1897
+ priority = 90;
1898
+
1899
+ parse(dateString, token, match, options) {
1900
+ const valueCallback = (value) => {
1901
+ // We want here floor instead of trunc, so we get -7 for value 0 instead of 0
1902
+ const wholeWeekDays = Math.floor((value - 1) / 7) * 7;
1903
+ return ((value + options.weekStartsOn + 6) % 7) + wholeWeekDays;
1904
+ };
1905
+
1906
+ switch (token) {
1907
+ // 3
1908
+ case "c":
1909
+ case "cc": // 03
1910
+ return (0, _utils.mapValue)(
1911
+ (0, _utils.parseNDigits)(token.length, dateString),
1912
+ valueCallback,
1913
+ );
1914
+ // 3rd
1915
+ case "co":
1916
+ return (0, _utils.mapValue)(
1917
+ match.ordinalNumber(dateString, {
1918
+ unit: "day",
1919
+ }),
1920
+ valueCallback,
1921
+ );
1922
+ // Tue
1923
+ case "ccc":
1924
+ return (
1925
+ match.day(dateString, {
1926
+ width: "abbreviated",
1927
+ context: "standalone",
1928
+ }) ||
1929
+ match.day(dateString, { width: "short", context: "standalone" }) ||
1930
+ match.day(dateString, { width: "narrow", context: "standalone" })
1931
+ );
1932
+
1933
+ // T
1934
+ case "ccccc":
1935
+ return match.day(dateString, {
1936
+ width: "narrow",
1937
+ context: "standalone",
1938
+ });
1939
+ // Tu
1940
+ case "cccccc":
1941
+ return (
1942
+ match.day(dateString, { width: "short", context: "standalone" }) ||
1943
+ match.day(dateString, { width: "narrow", context: "standalone" })
1944
+ );
1945
+
1946
+ // Tuesday
1947
+ case "cccc":
1948
+ default:
1949
+ return (
1950
+ match.day(dateString, { width: "wide", context: "standalone" }) ||
1951
+ match.day(dateString, {
1952
+ width: "abbreviated",
1953
+ context: "standalone",
1954
+ }) ||
1955
+ match.day(dateString, { width: "short", context: "standalone" }) ||
1956
+ match.day(dateString, { width: "narrow", context: "standalone" })
1957
+ );
1958
+ }
1959
+ }
1960
+
1961
+ validate(_date, value) {
1962
+ return value >= 0 && value <= 6;
1963
+ }
1964
+
1965
+ set(date, _flags, value, options) {
1966
+ date = (0, _index.setDay)(date, value, options);
1967
+ date.setHours(0, 0, 0, 0);
1968
+ return date;
1969
+ }
1970
+
1971
+ incompatibleTokens = [
1972
+ "y",
1973
+ "R",
1974
+ "u",
1975
+ "q",
1976
+ "Q",
1977
+ "M",
1978
+ "L",
1979
+ "I",
1980
+ "d",
1981
+ "D",
1982
+ "E",
1983
+ "i",
1984
+ "e",
1985
+ "t",
1986
+ "T",
1987
+ ];
1988
+ };
1989
+ StandAloneLocalDayParser.StandAloneLocalDayParser = StandAloneLocalDayParser$1;
1990
+ return StandAloneLocalDayParser;
1991
+ }
1992
+
1993
+ var ISODayParser = {};
1994
+
1995
+ var setISODay = {};
1996
+
1997
+ var getISODay = {};
1998
+
1999
+ var hasRequiredGetISODay;
2000
+
2001
+ function requireGetISODay () {
2002
+ if (hasRequiredGetISODay) return getISODay;
2003
+ hasRequiredGetISODay = 1;
2004
+ getISODay.getISODay = getISODay$1;
2005
+ var _index = /*@__PURE__*/ datetimePickerConstants.requireToDate();
2006
+
2007
+ /**
2008
+ * The {@link getISODay} function options.
2009
+ */
2010
+
2011
+ /**
2012
+ * @name getISODay
2013
+ * @category Weekday Helpers
2014
+ * @summary Get the day of the ISO week of the given date.
2015
+ *
2016
+ * @description
2017
+ * Get the day of the ISO week of the given date,
2018
+ * which is 7 for Sunday, 1 for Monday etc.
2019
+ *
2020
+ * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
2021
+ *
2022
+ * @param date - The given date
2023
+ * @param options - An object with options
2024
+ *
2025
+ * @returns The day of ISO week
2026
+ *
2027
+ * @example
2028
+ * // Which day of the ISO week is 26 February 2012?
2029
+ * const result = getISODay(new Date(2012, 1, 26))
2030
+ * //=> 7
2031
+ */
2032
+ function getISODay$1(date, options) {
2033
+ const day = (0, _index.toDate)(date, options?.in).getDay();
2034
+ return day === 0 ? 7 : day;
2035
+ }
2036
+ return getISODay;
2037
+ }
2038
+
2039
+ var hasRequiredSetISODay;
2040
+
2041
+ function requireSetISODay () {
2042
+ if (hasRequiredSetISODay) return setISODay;
2043
+ hasRequiredSetISODay = 1;
2044
+ setISODay.setISODay = setISODay$1;
2045
+ var _index = /*@__PURE__*/ datetimePickerConstants.requireAddDays();
2046
+ var _index2 = /*@__PURE__*/ requireGetISODay();
2047
+ var _index3 = /*@__PURE__*/ datetimePickerConstants.requireToDate();
2048
+
2049
+ /**
2050
+ * The {@link setISODay} function options.
2051
+ */
2052
+
2053
+ /**
2054
+ * @name setISODay
2055
+ * @category Weekday Helpers
2056
+ * @summary Set the day of the ISO week to the given date.
2057
+ *
2058
+ * @description
2059
+ * Set the day of the ISO week to the given date.
2060
+ * ISO week starts with Monday.
2061
+ * 7 is the index of Sunday, 1 is the index of Monday, etc.
2062
+ *
2063
+ * @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).
2064
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
2065
+ *
2066
+ * @param date - The date to be changed
2067
+ * @param day - The day of the ISO week of the new date
2068
+ * @param options - An object with options
2069
+ *
2070
+ * @returns The new date with the day of the ISO week set
2071
+ *
2072
+ * @example
2073
+ * // Set Sunday to 1 September 2014:
2074
+ * const result = setISODay(new Date(2014, 8, 1), 7)
2075
+ * //=> Sun Sep 07 2014 00:00:00
2076
+ */
2077
+ function setISODay$1(date, day, options) {
2078
+ const date_ = (0, _index3.toDate)(date, options?.in);
2079
+ const currentDay = (0, _index2.getISODay)(date_, options);
2080
+ const diff = day - currentDay;
2081
+ return (0, _index.addDays)(date_, diff, options);
2082
+ }
2083
+ return setISODay;
2084
+ }
2085
+
2086
+ var hasRequiredISODayParser;
2087
+
2088
+ function requireISODayParser () {
2089
+ if (hasRequiredISODayParser) return ISODayParser;
2090
+ hasRequiredISODayParser = 1;
2091
+ ISODayParser.ISODayParser = void 0;
2092
+ var _index = /*@__PURE__*/ requireSetISODay();
2093
+ var _Parser = /*@__PURE__*/ requireParser();
2094
+
2095
+ var _utils = /*@__PURE__*/ requireUtils();
2096
+
2097
+ // ISO day of week
2098
+ let ISODayParser$1 = class ISODayParser extends _Parser.Parser {
2099
+ priority = 90;
2100
+
2101
+ parse(dateString, token, match) {
2102
+ const valueCallback = (value) => {
2103
+ if (value === 0) {
2104
+ return 7;
2105
+ }
2106
+ return value;
2107
+ };
2108
+
2109
+ switch (token) {
2110
+ // 2
2111
+ case "i":
2112
+ case "ii": // 02
2113
+ return (0, _utils.parseNDigits)(token.length, dateString);
2114
+ // 2nd
2115
+ case "io":
2116
+ return match.ordinalNumber(dateString, { unit: "day" });
2117
+ // Tue
2118
+ case "iii":
2119
+ return (0, _utils.mapValue)(
2120
+ match.day(dateString, {
2121
+ width: "abbreviated",
2122
+ context: "formatting",
2123
+ }) ||
2124
+ match.day(dateString, {
2125
+ width: "short",
2126
+ context: "formatting",
2127
+ }) ||
2128
+ match.day(dateString, {
2129
+ width: "narrow",
2130
+ context: "formatting",
2131
+ }),
2132
+ valueCallback,
2133
+ );
2134
+ // T
2135
+ case "iiiii":
2136
+ return (0, _utils.mapValue)(
2137
+ match.day(dateString, {
2138
+ width: "narrow",
2139
+ context: "formatting",
2140
+ }),
2141
+ valueCallback,
2142
+ );
2143
+ // Tu
2144
+ case "iiiiii":
2145
+ return (0, _utils.mapValue)(
2146
+ match.day(dateString, {
2147
+ width: "short",
2148
+ context: "formatting",
2149
+ }) ||
2150
+ match.day(dateString, {
2151
+ width: "narrow",
2152
+ context: "formatting",
2153
+ }),
2154
+ valueCallback,
2155
+ );
2156
+ // Tuesday
2157
+ case "iiii":
2158
+ default:
2159
+ return (0, _utils.mapValue)(
2160
+ match.day(dateString, {
2161
+ width: "wide",
2162
+ context: "formatting",
2163
+ }) ||
2164
+ match.day(dateString, {
2165
+ width: "abbreviated",
2166
+ context: "formatting",
2167
+ }) ||
2168
+ match.day(dateString, {
2169
+ width: "short",
2170
+ context: "formatting",
2171
+ }) ||
2172
+ match.day(dateString, {
2173
+ width: "narrow",
2174
+ context: "formatting",
2175
+ }),
2176
+ valueCallback,
2177
+ );
2178
+ }
2179
+ }
2180
+
2181
+ validate(_date, value) {
2182
+ return value >= 1 && value <= 7;
2183
+ }
2184
+
2185
+ set(date, _flags, value) {
2186
+ date = (0, _index.setISODay)(date, value);
2187
+ date.setHours(0, 0, 0, 0);
2188
+ return date;
2189
+ }
2190
+
2191
+ incompatibleTokens = [
2192
+ "y",
2193
+ "Y",
2194
+ "u",
2195
+ "q",
2196
+ "Q",
2197
+ "M",
2198
+ "L",
2199
+ "w",
2200
+ "d",
2201
+ "D",
2202
+ "E",
2203
+ "e",
2204
+ "c",
2205
+ "t",
2206
+ "T",
2207
+ ];
2208
+ };
2209
+ ISODayParser.ISODayParser = ISODayParser$1;
2210
+ return ISODayParser;
2211
+ }
2212
+
2213
+ var AMPMParser = {};
2214
+
2215
+ var hasRequiredAMPMParser;
2216
+
2217
+ function requireAMPMParser () {
2218
+ if (hasRequiredAMPMParser) return AMPMParser;
2219
+ hasRequiredAMPMParser = 1;
2220
+ AMPMParser.AMPMParser = void 0;
2221
+ var _Parser = /*@__PURE__*/ requireParser();
2222
+
2223
+ var _utils = /*@__PURE__*/ requireUtils();
2224
+
2225
+ let AMPMParser$1 = class AMPMParser extends _Parser.Parser {
2226
+ priority = 80;
2227
+
2228
+ parse(dateString, token, match) {
2229
+ switch (token) {
2230
+ case "a":
2231
+ case "aa":
2232
+ case "aaa":
2233
+ return (
2234
+ match.dayPeriod(dateString, {
2235
+ width: "abbreviated",
2236
+ context: "formatting",
2237
+ }) ||
2238
+ match.dayPeriod(dateString, {
2239
+ width: "narrow",
2240
+ context: "formatting",
2241
+ })
2242
+ );
2243
+
2244
+ case "aaaaa":
2245
+ return match.dayPeriod(dateString, {
2246
+ width: "narrow",
2247
+ context: "formatting",
2248
+ });
2249
+ case "aaaa":
2250
+ default:
2251
+ return (
2252
+ match.dayPeriod(dateString, {
2253
+ width: "wide",
2254
+ context: "formatting",
2255
+ }) ||
2256
+ match.dayPeriod(dateString, {
2257
+ width: "abbreviated",
2258
+ context: "formatting",
2259
+ }) ||
2260
+ match.dayPeriod(dateString, {
2261
+ width: "narrow",
2262
+ context: "formatting",
2263
+ })
2264
+ );
2265
+ }
2266
+ }
2267
+
2268
+ set(date, _flags, value) {
2269
+ date.setHours((0, _utils.dayPeriodEnumToHours)(value), 0, 0, 0);
2270
+ return date;
2271
+ }
2272
+
2273
+ incompatibleTokens = ["b", "B", "H", "k", "t", "T"];
2274
+ };
2275
+ AMPMParser.AMPMParser = AMPMParser$1;
2276
+ return AMPMParser;
2277
+ }
2278
+
2279
+ var AMPMMidnightParser = {};
2280
+
2281
+ var hasRequiredAMPMMidnightParser;
2282
+
2283
+ function requireAMPMMidnightParser () {
2284
+ if (hasRequiredAMPMMidnightParser) return AMPMMidnightParser;
2285
+ hasRequiredAMPMMidnightParser = 1;
2286
+ AMPMMidnightParser.AMPMMidnightParser = void 0;
2287
+ var _Parser = /*@__PURE__*/ requireParser();
2288
+
2289
+ var _utils = /*@__PURE__*/ requireUtils();
2290
+
2291
+ let AMPMMidnightParser$1 = class AMPMMidnightParser extends _Parser.Parser {
2292
+ priority = 80;
2293
+
2294
+ parse(dateString, token, match) {
2295
+ switch (token) {
2296
+ case "b":
2297
+ case "bb":
2298
+ case "bbb":
2299
+ return (
2300
+ match.dayPeriod(dateString, {
2301
+ width: "abbreviated",
2302
+ context: "formatting",
2303
+ }) ||
2304
+ match.dayPeriod(dateString, {
2305
+ width: "narrow",
2306
+ context: "formatting",
2307
+ })
2308
+ );
2309
+
2310
+ case "bbbbb":
2311
+ return match.dayPeriod(dateString, {
2312
+ width: "narrow",
2313
+ context: "formatting",
2314
+ });
2315
+ case "bbbb":
2316
+ default:
2317
+ return (
2318
+ match.dayPeriod(dateString, {
2319
+ width: "wide",
2320
+ context: "formatting",
2321
+ }) ||
2322
+ match.dayPeriod(dateString, {
2323
+ width: "abbreviated",
2324
+ context: "formatting",
2325
+ }) ||
2326
+ match.dayPeriod(dateString, {
2327
+ width: "narrow",
2328
+ context: "formatting",
2329
+ })
2330
+ );
2331
+ }
2332
+ }
2333
+
2334
+ set(date, _flags, value) {
2335
+ date.setHours((0, _utils.dayPeriodEnumToHours)(value), 0, 0, 0);
2336
+ return date;
2337
+ }
2338
+
2339
+ incompatibleTokens = ["a", "B", "H", "k", "t", "T"];
2340
+ };
2341
+ AMPMMidnightParser.AMPMMidnightParser = AMPMMidnightParser$1;
2342
+ return AMPMMidnightParser;
2343
+ }
2344
+
2345
+ var DayPeriodParser = {};
2346
+
2347
+ var hasRequiredDayPeriodParser;
2348
+
2349
+ function requireDayPeriodParser () {
2350
+ if (hasRequiredDayPeriodParser) return DayPeriodParser;
2351
+ hasRequiredDayPeriodParser = 1;
2352
+ DayPeriodParser.DayPeriodParser = void 0;
2353
+ var _Parser = /*@__PURE__*/ requireParser();
2354
+
2355
+ var _utils = /*@__PURE__*/ requireUtils();
2356
+
2357
+ // in the morning, in the afternoon, in the evening, at night
2358
+ let DayPeriodParser$1 = class DayPeriodParser extends _Parser.Parser {
2359
+ priority = 80;
2360
+
2361
+ parse(dateString, token, match) {
2362
+ switch (token) {
2363
+ case "B":
2364
+ case "BB":
2365
+ case "BBB":
2366
+ return (
2367
+ match.dayPeriod(dateString, {
2368
+ width: "abbreviated",
2369
+ context: "formatting",
2370
+ }) ||
2371
+ match.dayPeriod(dateString, {
2372
+ width: "narrow",
2373
+ context: "formatting",
2374
+ })
2375
+ );
2376
+
2377
+ case "BBBBB":
2378
+ return match.dayPeriod(dateString, {
2379
+ width: "narrow",
2380
+ context: "formatting",
2381
+ });
2382
+ case "BBBB":
2383
+ default:
2384
+ return (
2385
+ match.dayPeriod(dateString, {
2386
+ width: "wide",
2387
+ context: "formatting",
2388
+ }) ||
2389
+ match.dayPeriod(dateString, {
2390
+ width: "abbreviated",
2391
+ context: "formatting",
2392
+ }) ||
2393
+ match.dayPeriod(dateString, {
2394
+ width: "narrow",
2395
+ context: "formatting",
2396
+ })
2397
+ );
2398
+ }
2399
+ }
2400
+
2401
+ set(date, _flags, value) {
2402
+ date.setHours((0, _utils.dayPeriodEnumToHours)(value), 0, 0, 0);
2403
+ return date;
2404
+ }
2405
+
2406
+ incompatibleTokens = ["a", "b", "t", "T"];
2407
+ };
2408
+ DayPeriodParser.DayPeriodParser = DayPeriodParser$1;
2409
+ return DayPeriodParser;
2410
+ }
2411
+
2412
+ var Hour1to12Parser = {};
2413
+
2414
+ var hasRequiredHour1to12Parser;
2415
+
2416
+ function requireHour1to12Parser () {
2417
+ if (hasRequiredHour1to12Parser) return Hour1to12Parser;
2418
+ hasRequiredHour1to12Parser = 1;
2419
+ Hour1to12Parser.Hour1to12Parser = void 0;
2420
+ var _constants = /*@__PURE__*/ requireConstants();
2421
+ var _Parser = /*@__PURE__*/ requireParser();
2422
+
2423
+ var _utils = /*@__PURE__*/ requireUtils();
2424
+
2425
+ let Hour1to12Parser$1 = class Hour1to12Parser extends _Parser.Parser {
2426
+ priority = 70;
2427
+
2428
+ parse(dateString, token, match) {
2429
+ switch (token) {
2430
+ case "h":
2431
+ return (0, _utils.parseNumericPattern)(
2432
+ _constants.numericPatterns.hour12h,
2433
+ dateString,
2434
+ );
2435
+ case "ho":
2436
+ return match.ordinalNumber(dateString, { unit: "hour" });
2437
+ default:
2438
+ return (0, _utils.parseNDigits)(token.length, dateString);
2439
+ }
2440
+ }
2441
+
2442
+ validate(_date, value) {
2443
+ return value >= 1 && value <= 12;
2444
+ }
2445
+
2446
+ set(date, _flags, value) {
2447
+ const isPM = date.getHours() >= 12;
2448
+ if (isPM && value < 12) {
2449
+ date.setHours(value + 12, 0, 0, 0);
2450
+ } else if (!isPM && value === 12) {
2451
+ date.setHours(0, 0, 0, 0);
2452
+ } else {
2453
+ date.setHours(value, 0, 0, 0);
2454
+ }
2455
+ return date;
2456
+ }
2457
+
2458
+ incompatibleTokens = ["H", "K", "k", "t", "T"];
2459
+ };
2460
+ Hour1to12Parser.Hour1to12Parser = Hour1to12Parser$1;
2461
+ return Hour1to12Parser;
2462
+ }
2463
+
2464
+ var Hour0to23Parser = {};
2465
+
2466
+ var hasRequiredHour0to23Parser;
2467
+
2468
+ function requireHour0to23Parser () {
2469
+ if (hasRequiredHour0to23Parser) return Hour0to23Parser;
2470
+ hasRequiredHour0to23Parser = 1;
2471
+ Hour0to23Parser.Hour0to23Parser = void 0;
2472
+ var _constants = /*@__PURE__*/ requireConstants();
2473
+ var _Parser = /*@__PURE__*/ requireParser();
2474
+
2475
+ var _utils = /*@__PURE__*/ requireUtils();
2476
+
2477
+ let Hour0to23Parser$1 = class Hour0to23Parser extends _Parser.Parser {
2478
+ priority = 70;
2479
+
2480
+ parse(dateString, token, match) {
2481
+ switch (token) {
2482
+ case "H":
2483
+ return (0, _utils.parseNumericPattern)(
2484
+ _constants.numericPatterns.hour23h,
2485
+ dateString,
2486
+ );
2487
+ case "Ho":
2488
+ return match.ordinalNumber(dateString, { unit: "hour" });
2489
+ default:
2490
+ return (0, _utils.parseNDigits)(token.length, dateString);
2491
+ }
2492
+ }
2493
+
2494
+ validate(_date, value) {
2495
+ return value >= 0 && value <= 23;
2496
+ }
2497
+
2498
+ set(date, _flags, value) {
2499
+ date.setHours(value, 0, 0, 0);
2500
+ return date;
2501
+ }
2502
+
2503
+ incompatibleTokens = ["a", "b", "h", "K", "k", "t", "T"];
2504
+ };
2505
+ Hour0to23Parser.Hour0to23Parser = Hour0to23Parser$1;
2506
+ return Hour0to23Parser;
2507
+ }
2508
+
2509
+ var Hour0To11Parser = {};
2510
+
2511
+ var hasRequiredHour0To11Parser;
2512
+
2513
+ function requireHour0To11Parser () {
2514
+ if (hasRequiredHour0To11Parser) return Hour0To11Parser;
2515
+ hasRequiredHour0To11Parser = 1;
2516
+ Hour0To11Parser.Hour0To11Parser = void 0;
2517
+ var _constants = /*@__PURE__*/ requireConstants();
2518
+ var _Parser = /*@__PURE__*/ requireParser();
2519
+
2520
+ var _utils = /*@__PURE__*/ requireUtils();
2521
+
2522
+ let Hour0To11Parser$1 = class Hour0To11Parser extends _Parser.Parser {
2523
+ priority = 70;
2524
+
2525
+ parse(dateString, token, match) {
2526
+ switch (token) {
2527
+ case "K":
2528
+ return (0, _utils.parseNumericPattern)(
2529
+ _constants.numericPatterns.hour11h,
2530
+ dateString,
2531
+ );
2532
+ case "Ko":
2533
+ return match.ordinalNumber(dateString, { unit: "hour" });
2534
+ default:
2535
+ return (0, _utils.parseNDigits)(token.length, dateString);
2536
+ }
2537
+ }
2538
+
2539
+ validate(_date, value) {
2540
+ return value >= 0 && value <= 11;
2541
+ }
2542
+
2543
+ set(date, _flags, value) {
2544
+ const isPM = date.getHours() >= 12;
2545
+ if (isPM && value < 12) {
2546
+ date.setHours(value + 12, 0, 0, 0);
2547
+ } else {
2548
+ date.setHours(value, 0, 0, 0);
2549
+ }
2550
+ return date;
2551
+ }
2552
+
2553
+ incompatibleTokens = ["h", "H", "k", "t", "T"];
2554
+ };
2555
+ Hour0To11Parser.Hour0To11Parser = Hour0To11Parser$1;
2556
+ return Hour0To11Parser;
2557
+ }
2558
+
2559
+ var Hour1To24Parser = {};
2560
+
2561
+ var hasRequiredHour1To24Parser;
2562
+
2563
+ function requireHour1To24Parser () {
2564
+ if (hasRequiredHour1To24Parser) return Hour1To24Parser;
2565
+ hasRequiredHour1To24Parser = 1;
2566
+ Hour1To24Parser.Hour1To24Parser = void 0;
2567
+ var _constants = /*@__PURE__*/ requireConstants();
2568
+ var _Parser = /*@__PURE__*/ requireParser();
2569
+
2570
+ var _utils = /*@__PURE__*/ requireUtils();
2571
+
2572
+ let Hour1To24Parser$1 = class Hour1To24Parser extends _Parser.Parser {
2573
+ priority = 70;
2574
+
2575
+ parse(dateString, token, match) {
2576
+ switch (token) {
2577
+ case "k":
2578
+ return (0, _utils.parseNumericPattern)(
2579
+ _constants.numericPatterns.hour24h,
2580
+ dateString,
2581
+ );
2582
+ case "ko":
2583
+ return match.ordinalNumber(dateString, { unit: "hour" });
2584
+ default:
2585
+ return (0, _utils.parseNDigits)(token.length, dateString);
2586
+ }
2587
+ }
2588
+
2589
+ validate(_date, value) {
2590
+ return value >= 1 && value <= 24;
2591
+ }
2592
+
2593
+ set(date, _flags, value) {
2594
+ const hours = value <= 24 ? value % 24 : value;
2595
+ date.setHours(hours, 0, 0, 0);
2596
+ return date;
2597
+ }
2598
+
2599
+ incompatibleTokens = ["a", "b", "h", "H", "K", "t", "T"];
2600
+ };
2601
+ Hour1To24Parser.Hour1To24Parser = Hour1To24Parser$1;
2602
+ return Hour1To24Parser;
2603
+ }
2604
+
2605
+ var MinuteParser = {};
2606
+
2607
+ var hasRequiredMinuteParser;
2608
+
2609
+ function requireMinuteParser () {
2610
+ if (hasRequiredMinuteParser) return MinuteParser;
2611
+ hasRequiredMinuteParser = 1;
2612
+ MinuteParser.MinuteParser = void 0;
2613
+ var _constants = /*@__PURE__*/ requireConstants();
2614
+ var _Parser = /*@__PURE__*/ requireParser();
2615
+
2616
+ var _utils = /*@__PURE__*/ requireUtils();
2617
+
2618
+ let MinuteParser$1 = class MinuteParser extends _Parser.Parser {
2619
+ priority = 60;
2620
+
2621
+ parse(dateString, token, match) {
2622
+ switch (token) {
2623
+ case "m":
2624
+ return (0, _utils.parseNumericPattern)(
2625
+ _constants.numericPatterns.minute,
2626
+ dateString,
2627
+ );
2628
+ case "mo":
2629
+ return match.ordinalNumber(dateString, { unit: "minute" });
2630
+ default:
2631
+ return (0, _utils.parseNDigits)(token.length, dateString);
2632
+ }
2633
+ }
2634
+
2635
+ validate(_date, value) {
2636
+ return value >= 0 && value <= 59;
2637
+ }
2638
+
2639
+ set(date, _flags, value) {
2640
+ date.setMinutes(value, 0, 0);
2641
+ return date;
2642
+ }
2643
+
2644
+ incompatibleTokens = ["t", "T"];
2645
+ };
2646
+ MinuteParser.MinuteParser = MinuteParser$1;
2647
+ return MinuteParser;
2648
+ }
2649
+
2650
+ var SecondParser = {};
2651
+
2652
+ var hasRequiredSecondParser;
2653
+
2654
+ function requireSecondParser () {
2655
+ if (hasRequiredSecondParser) return SecondParser;
2656
+ hasRequiredSecondParser = 1;
2657
+ SecondParser.SecondParser = void 0;
2658
+ var _constants = /*@__PURE__*/ requireConstants();
2659
+ var _Parser = /*@__PURE__*/ requireParser();
2660
+
2661
+ var _utils = /*@__PURE__*/ requireUtils();
2662
+
2663
+ let SecondParser$1 = class SecondParser extends _Parser.Parser {
2664
+ priority = 50;
2665
+
2666
+ parse(dateString, token, match) {
2667
+ switch (token) {
2668
+ case "s":
2669
+ return (0, _utils.parseNumericPattern)(
2670
+ _constants.numericPatterns.second,
2671
+ dateString,
2672
+ );
2673
+ case "so":
2674
+ return match.ordinalNumber(dateString, { unit: "second" });
2675
+ default:
2676
+ return (0, _utils.parseNDigits)(token.length, dateString);
2677
+ }
2678
+ }
2679
+
2680
+ validate(_date, value) {
2681
+ return value >= 0 && value <= 59;
2682
+ }
2683
+
2684
+ set(date, _flags, value) {
2685
+ date.setSeconds(value, 0);
2686
+ return date;
2687
+ }
2688
+
2689
+ incompatibleTokens = ["t", "T"];
2690
+ };
2691
+ SecondParser.SecondParser = SecondParser$1;
2692
+ return SecondParser;
2693
+ }
2694
+
2695
+ var FractionOfSecondParser = {};
2696
+
2697
+ var hasRequiredFractionOfSecondParser;
2698
+
2699
+ function requireFractionOfSecondParser () {
2700
+ if (hasRequiredFractionOfSecondParser) return FractionOfSecondParser;
2701
+ hasRequiredFractionOfSecondParser = 1;
2702
+ FractionOfSecondParser.FractionOfSecondParser = void 0;
2703
+ var _Parser = /*@__PURE__*/ requireParser();
2704
+
2705
+ var _utils = /*@__PURE__*/ requireUtils();
2706
+
2707
+ let FractionOfSecondParser$1 = class FractionOfSecondParser extends _Parser.Parser {
2708
+ priority = 30;
2709
+
2710
+ parse(dateString, token) {
2711
+ const valueCallback = (value) =>
2712
+ Math.trunc(value * Math.pow(10, -token.length + 3));
2713
+ return (0, _utils.mapValue)(
2714
+ (0, _utils.parseNDigits)(token.length, dateString),
2715
+ valueCallback,
2716
+ );
2717
+ }
2718
+
2719
+ set(date, _flags, value) {
2720
+ date.setMilliseconds(value);
2721
+ return date;
2722
+ }
2723
+
2724
+ incompatibleTokens = ["t", "T"];
2725
+ };
2726
+ FractionOfSecondParser.FractionOfSecondParser = FractionOfSecondParser$1;
2727
+ return FractionOfSecondParser;
2728
+ }
2729
+
2730
+ var ISOTimezoneWithZParser = {};
2731
+
2732
+ var hasRequiredISOTimezoneWithZParser;
2733
+
2734
+ function requireISOTimezoneWithZParser () {
2735
+ if (hasRequiredISOTimezoneWithZParser) return ISOTimezoneWithZParser;
2736
+ hasRequiredISOTimezoneWithZParser = 1;
2737
+ ISOTimezoneWithZParser.ISOTimezoneWithZParser = void 0;
2738
+ var _index = /*@__PURE__*/ datetimePickerConstants.requireConstructFrom();
2739
+ var _index2 = /*@__PURE__*/ datetimePickerConstants.requireGetTimezoneOffsetInMilliseconds();
2740
+ var _constants = /*@__PURE__*/ requireConstants();
2741
+ var _Parser = /*@__PURE__*/ requireParser();
2742
+
2743
+ var _utils = /*@__PURE__*/ requireUtils();
2744
+
2745
+ // Timezone (ISO-8601. +00:00 is `'Z'`)
2746
+ let ISOTimezoneWithZParser$1 = class ISOTimezoneWithZParser extends _Parser.Parser {
2747
+ priority = 10;
2748
+
2749
+ parse(dateString, token) {
2750
+ switch (token) {
2751
+ case "X":
2752
+ return (0, _utils.parseTimezonePattern)(
2753
+ _constants.timezonePatterns.basicOptionalMinutes,
2754
+ dateString,
2755
+ );
2756
+ case "XX":
2757
+ return (0, _utils.parseTimezonePattern)(
2758
+ _constants.timezonePatterns.basic,
2759
+ dateString,
2760
+ );
2761
+ case "XXXX":
2762
+ return (0, _utils.parseTimezonePattern)(
2763
+ _constants.timezonePatterns.basicOptionalSeconds,
2764
+ dateString,
2765
+ );
2766
+ case "XXXXX":
2767
+ return (0, _utils.parseTimezonePattern)(
2768
+ _constants.timezonePatterns.extendedOptionalSeconds,
2769
+ dateString,
2770
+ );
2771
+ case "XXX":
2772
+ default:
2773
+ return (0, _utils.parseTimezonePattern)(
2774
+ _constants.timezonePatterns.extended,
2775
+ dateString,
2776
+ );
2777
+ }
2778
+ }
2779
+
2780
+ set(date, flags, value) {
2781
+ if (flags.timestampIsSet) return date;
2782
+ return (0, _index.constructFrom)(
2783
+ date,
2784
+ date.getTime() -
2785
+ (0, _index2.getTimezoneOffsetInMilliseconds)(date) -
2786
+ value,
2787
+ );
2788
+ }
2789
+
2790
+ incompatibleTokens = ["t", "T", "x"];
2791
+ };
2792
+ ISOTimezoneWithZParser.ISOTimezoneWithZParser = ISOTimezoneWithZParser$1;
2793
+ return ISOTimezoneWithZParser;
2794
+ }
2795
+
2796
+ var ISOTimezoneParser = {};
2797
+
2798
+ var hasRequiredISOTimezoneParser;
2799
+
2800
+ function requireISOTimezoneParser () {
2801
+ if (hasRequiredISOTimezoneParser) return ISOTimezoneParser;
2802
+ hasRequiredISOTimezoneParser = 1;
2803
+ ISOTimezoneParser.ISOTimezoneParser = void 0;
2804
+ var _index = /*@__PURE__*/ datetimePickerConstants.requireConstructFrom();
2805
+ var _index2 = /*@__PURE__*/ datetimePickerConstants.requireGetTimezoneOffsetInMilliseconds();
2806
+ var _constants = /*@__PURE__*/ requireConstants();
2807
+ var _Parser = /*@__PURE__*/ requireParser();
2808
+
2809
+ var _utils = /*@__PURE__*/ requireUtils();
2810
+
2811
+ // Timezone (ISO-8601)
2812
+ let ISOTimezoneParser$1 = class ISOTimezoneParser extends _Parser.Parser {
2813
+ priority = 10;
2814
+
2815
+ parse(dateString, token) {
2816
+ switch (token) {
2817
+ case "x":
2818
+ return (0, _utils.parseTimezonePattern)(
2819
+ _constants.timezonePatterns.basicOptionalMinutes,
2820
+ dateString,
2821
+ );
2822
+ case "xx":
2823
+ return (0, _utils.parseTimezonePattern)(
2824
+ _constants.timezonePatterns.basic,
2825
+ dateString,
2826
+ );
2827
+ case "xxxx":
2828
+ return (0, _utils.parseTimezonePattern)(
2829
+ _constants.timezonePatterns.basicOptionalSeconds,
2830
+ dateString,
2831
+ );
2832
+ case "xxxxx":
2833
+ return (0, _utils.parseTimezonePattern)(
2834
+ _constants.timezonePatterns.extendedOptionalSeconds,
2835
+ dateString,
2836
+ );
2837
+ case "xxx":
2838
+ default:
2839
+ return (0, _utils.parseTimezonePattern)(
2840
+ _constants.timezonePatterns.extended,
2841
+ dateString,
2842
+ );
2843
+ }
2844
+ }
2845
+
2846
+ set(date, flags, value) {
2847
+ if (flags.timestampIsSet) return date;
2848
+ return (0, _index.constructFrom)(
2849
+ date,
2850
+ date.getTime() -
2851
+ (0, _index2.getTimezoneOffsetInMilliseconds)(date) -
2852
+ value,
2853
+ );
2854
+ }
2855
+
2856
+ incompatibleTokens = ["t", "T", "X"];
2857
+ };
2858
+ ISOTimezoneParser.ISOTimezoneParser = ISOTimezoneParser$1;
2859
+ return ISOTimezoneParser;
2860
+ }
2861
+
2862
+ var TimestampSecondsParser = {};
2863
+
2864
+ var hasRequiredTimestampSecondsParser;
2865
+
2866
+ function requireTimestampSecondsParser () {
2867
+ if (hasRequiredTimestampSecondsParser) return TimestampSecondsParser;
2868
+ hasRequiredTimestampSecondsParser = 1;
2869
+ TimestampSecondsParser.TimestampSecondsParser = void 0;
2870
+ var _index = /*@__PURE__*/ datetimePickerConstants.requireConstructFrom();
2871
+ var _Parser = /*@__PURE__*/ requireParser();
2872
+
2873
+ var _utils = /*@__PURE__*/ requireUtils();
2874
+
2875
+ let TimestampSecondsParser$1 = class TimestampSecondsParser extends _Parser.Parser {
2876
+ priority = 40;
2877
+
2878
+ parse(dateString) {
2879
+ return (0, _utils.parseAnyDigitsSigned)(dateString);
2880
+ }
2881
+
2882
+ set(date, _flags, value) {
2883
+ return [
2884
+ (0, _index.constructFrom)(date, value * 1000),
2885
+ { timestampIsSet: true },
2886
+ ];
2887
+ }
2888
+
2889
+ incompatibleTokens = "*";
2890
+ };
2891
+ TimestampSecondsParser.TimestampSecondsParser = TimestampSecondsParser$1;
2892
+ return TimestampSecondsParser;
2893
+ }
2894
+
2895
+ var TimestampMillisecondsParser = {};
2896
+
2897
+ var hasRequiredTimestampMillisecondsParser;
2898
+
2899
+ function requireTimestampMillisecondsParser () {
2900
+ if (hasRequiredTimestampMillisecondsParser) return TimestampMillisecondsParser;
2901
+ hasRequiredTimestampMillisecondsParser = 1;
2902
+ TimestampMillisecondsParser.TimestampMillisecondsParser = void 0;
2903
+ var _index = /*@__PURE__*/ datetimePickerConstants.requireConstructFrom();
2904
+ var _Parser = /*@__PURE__*/ requireParser();
2905
+
2906
+ var _utils = /*@__PURE__*/ requireUtils();
2907
+
2908
+ let TimestampMillisecondsParser$1 = class TimestampMillisecondsParser extends _Parser.Parser {
2909
+ priority = 20;
2910
+
2911
+ parse(dateString) {
2912
+ return (0, _utils.parseAnyDigitsSigned)(dateString);
2913
+ }
2914
+
2915
+ set(date, _flags, value) {
2916
+ return [(0, _index.constructFrom)(date, value), { timestampIsSet: true }];
2917
+ }
2918
+
2919
+ incompatibleTokens = "*";
2920
+ };
2921
+ TimestampMillisecondsParser.TimestampMillisecondsParser = TimestampMillisecondsParser$1;
2922
+ return TimestampMillisecondsParser;
2923
+ }
2924
+
2925
+ var hasRequiredParsers;
2926
+
2927
+ function requireParsers () {
2928
+ if (hasRequiredParsers) return parsers;
2929
+ hasRequiredParsers = 1;
2930
+ parsers.parsers = void 0;
2931
+ var _EraParser = /*@__PURE__*/ requireEraParser();
2932
+ var _YearParser = /*@__PURE__*/ requireYearParser();
2933
+ var _LocalWeekYearParser = /*@__PURE__*/ requireLocalWeekYearParser();
2934
+ var _ISOWeekYearParser = /*@__PURE__*/ requireISOWeekYearParser();
2935
+ var _ExtendedYearParser = /*@__PURE__*/ requireExtendedYearParser();
2936
+ var _QuarterParser = /*@__PURE__*/ requireQuarterParser();
2937
+ var _StandAloneQuarterParser = /*@__PURE__*/ requireStandAloneQuarterParser();
2938
+ var _MonthParser = /*@__PURE__*/ requireMonthParser();
2939
+ var _StandAloneMonthParser = /*@__PURE__*/ requireStandAloneMonthParser();
2940
+ var _LocalWeekParser = /*@__PURE__*/ requireLocalWeekParser();
2941
+ var _ISOWeekParser = /*@__PURE__*/ requireISOWeekParser();
2942
+ var _DateParser = /*@__PURE__*/ requireDateParser();
2943
+ var _DayOfYearParser = /*@__PURE__*/ requireDayOfYearParser();
2944
+ var _DayParser = /*@__PURE__*/ requireDayParser();
2945
+ var _LocalDayParser = /*@__PURE__*/ requireLocalDayParser();
2946
+ var _StandAloneLocalDayParser = /*@__PURE__*/ requireStandAloneLocalDayParser();
2947
+ var _ISODayParser = /*@__PURE__*/ requireISODayParser();
2948
+ var _AMPMParser = /*@__PURE__*/ requireAMPMParser();
2949
+ var _AMPMMidnightParser = /*@__PURE__*/ requireAMPMMidnightParser();
2950
+ var _DayPeriodParser = /*@__PURE__*/ requireDayPeriodParser();
2951
+ var _Hour1to12Parser = /*@__PURE__*/ requireHour1to12Parser();
2952
+ var _Hour0to23Parser = /*@__PURE__*/ requireHour0to23Parser();
2953
+ var _Hour0To11Parser = /*@__PURE__*/ requireHour0To11Parser();
2954
+ var _Hour1To24Parser = /*@__PURE__*/ requireHour1To24Parser();
2955
+ var _MinuteParser = /*@__PURE__*/ requireMinuteParser();
2956
+ var _SecondParser = /*@__PURE__*/ requireSecondParser();
2957
+ var _FractionOfSecondParser = /*@__PURE__*/ requireFractionOfSecondParser();
2958
+ var _ISOTimezoneWithZParser = /*@__PURE__*/ requireISOTimezoneWithZParser();
2959
+ var _ISOTimezoneParser = /*@__PURE__*/ requireISOTimezoneParser();
2960
+ var _TimestampSecondsParser = /*@__PURE__*/ requireTimestampSecondsParser();
2961
+ var _TimestampMillisecondsParser = /*@__PURE__*/ requireTimestampMillisecondsParser();
2962
+
2963
+ /*
2964
+ * | | Unit | | Unit |
2965
+ * |-----|--------------------------------|-----|--------------------------------|
2966
+ * | a | AM, PM | A* | Milliseconds in day |
2967
+ * | b | AM, PM, noon, midnight | B | Flexible day period |
2968
+ * | c | Stand-alone local day of week | C* | Localized hour w/ day period |
2969
+ * | d | Day of month | D | Day of year |
2970
+ * | e | Local day of week | E | Day of week |
2971
+ * | f | | F* | Day of week in month |
2972
+ * | g* | Modified Julian day | G | Era |
2973
+ * | h | Hour [1-12] | H | Hour [0-23] |
2974
+ * | i! | ISO day of week | I! | ISO week of year |
2975
+ * | j* | Localized hour w/ day period | J* | Localized hour w/o day period |
2976
+ * | k | Hour [1-24] | K | Hour [0-11] |
2977
+ * | l* | (deprecated) | L | Stand-alone month |
2978
+ * | m | Minute | M | Month |
2979
+ * | n | | N | |
2980
+ * | o! | Ordinal number modifier | O* | Timezone (GMT) |
2981
+ * | p | | P | |
2982
+ * | q | Stand-alone quarter | Q | Quarter |
2983
+ * | r* | Related Gregorian year | R! | ISO week-numbering year |
2984
+ * | s | Second | S | Fraction of second |
2985
+ * | t! | Seconds timestamp | T! | Milliseconds timestamp |
2986
+ * | u | Extended year | U* | Cyclic year |
2987
+ * | v* | Timezone (generic non-locat.) | V* | Timezone (location) |
2988
+ * | w | Local week of year | W* | Week of month |
2989
+ * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |
2990
+ * | y | Year (abs) | Y | Local week-numbering year |
2991
+ * | z* | Timezone (specific non-locat.) | Z* | Timezone (aliases) |
2992
+ *
2993
+ * Letters marked by * are not implemented but reserved by Unicode standard.
2994
+ *
2995
+ * Letters marked by ! are non-standard, but implemented by date-fns:
2996
+ * - `o` modifies the previous token to turn it into an ordinal (see `parse` docs)
2997
+ * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,
2998
+ * i.e. 7 for Sunday, 1 for Monday, etc.
2999
+ * - `I` is ISO week of year, as opposed to `w` which is local week of year.
3000
+ * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.
3001
+ * `R` is supposed to be used in conjunction with `I` and `i`
3002
+ * for universal ISO week-numbering date, whereas
3003
+ * `Y` is supposed to be used in conjunction with `w` and `e`
3004
+ * for week-numbering date specific to the locale.
3005
+ */
3006
+ (parsers.parsers = {
3007
+ G: new _EraParser.EraParser(),
3008
+ y: new _YearParser.YearParser(),
3009
+ Y: new _LocalWeekYearParser.LocalWeekYearParser(),
3010
+ R: new _ISOWeekYearParser.ISOWeekYearParser(),
3011
+ u: new _ExtendedYearParser.ExtendedYearParser(),
3012
+ Q: new _QuarterParser.QuarterParser(),
3013
+ q: new _StandAloneQuarterParser.StandAloneQuarterParser(),
3014
+ M: new _MonthParser.MonthParser(),
3015
+ L: new _StandAloneMonthParser.StandAloneMonthParser(),
3016
+ w: new _LocalWeekParser.LocalWeekParser(),
3017
+ I: new _ISOWeekParser.ISOWeekParser(),
3018
+ d: new _DateParser.DateParser(),
3019
+ D: new _DayOfYearParser.DayOfYearParser(),
3020
+ E: new _DayParser.DayParser(),
3021
+ e: new _LocalDayParser.LocalDayParser(),
3022
+ c: new _StandAloneLocalDayParser.StandAloneLocalDayParser(),
3023
+ i: new _ISODayParser.ISODayParser(),
3024
+ a: new _AMPMParser.AMPMParser(),
3025
+ b: new _AMPMMidnightParser.AMPMMidnightParser(),
3026
+ B: new _DayPeriodParser.DayPeriodParser(),
3027
+ h: new _Hour1to12Parser.Hour1to12Parser(),
3028
+ H: new _Hour0to23Parser.Hour0to23Parser(),
3029
+ K: new _Hour0To11Parser.Hour0To11Parser(),
3030
+ k: new _Hour1To24Parser.Hour1To24Parser(),
3031
+ m: new _MinuteParser.MinuteParser(),
3032
+ s: new _SecondParser.SecondParser(),
3033
+ S: new _FractionOfSecondParser.FractionOfSecondParser(),
3034
+ X: new _ISOTimezoneWithZParser.ISOTimezoneWithZParser(),
3035
+ x: new _ISOTimezoneParser.ISOTimezoneParser(),
3036
+ t: new _TimestampSecondsParser.TimestampSecondsParser(),
3037
+ T: new _TimestampMillisecondsParser.TimestampMillisecondsParser(),
3038
+ });
3039
+ return parsers;
3040
+ }
3041
+
3042
+ var hasRequiredParse;
3043
+
3044
+ function requireParse () {
3045
+ if (hasRequiredParse) return parse;
3046
+ hasRequiredParse = 1;
3047
+ (function (exports) {
3048
+ Object.defineProperty(exports, "longFormatters", {
3049
+ enumerable: true,
3050
+ get: function () {
3051
+ return _index2.longFormatters;
3052
+ },
3053
+ });
3054
+ exports.parse = parse;
3055
+ Object.defineProperty(exports, "parsers", {
3056
+ enumerable: true,
3057
+ get: function () {
3058
+ return _index7.parsers;
3059
+ },
3060
+ });
3061
+ var _index = /*@__PURE__*/ datetimePickerConstants.requireDefaultLocale();
3062
+ var _index2 = /*@__PURE__*/ datetimePickerConstants.requireLongFormatters();
3063
+ var _index3 = /*@__PURE__*/ datetimePickerConstants.requireProtectedTokens();
3064
+
3065
+ var _index4 = /*@__PURE__*/ datetimePickerConstants.requireConstructFrom();
3066
+ var _index5 = /*@__PURE__*/ requireGetDefaultOptions();
3067
+ var _index6 = /*@__PURE__*/ datetimePickerConstants.requireToDate();
3068
+
3069
+ var _Setter = /*@__PURE__*/ requireSetter();
3070
+ var _index7 = /*@__PURE__*/ requireParsers();
3071
+
3072
+ // Rexports of internal for libraries to use.
3073
+ // See: https://github.com/date-fns/date-fns/issues/3638#issuecomment-1877082874
3074
+
3075
+ /**
3076
+ * The {@link parse} function options.
3077
+ */
3078
+
3079
+ // This RegExp consists of three parts separated by `|`:
3080
+ // - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token
3081
+ // (one of the certain letters followed by `o`)
3082
+ // - (\w)\1* matches any sequences of the same letter
3083
+ // - '' matches two quote characters in a row
3084
+ // - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),
3085
+ // except a single quote symbol, which ends the sequence.
3086
+ // Two quote characters do not end the sequence.
3087
+ // If there is no matching single quote
3088
+ // then the sequence will continue until the end of the string.
3089
+ // - . matches any single character unmatched by previous parts of the RegExps
3090
+ const formattingTokensRegExp =
3091
+ /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g;
3092
+
3093
+ // This RegExp catches symbols escaped by quotes, and also
3094
+ // sequences of symbols P, p, and the combinations like `PPPPPPPppppp`
3095
+ const longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
3096
+
3097
+ const escapedStringRegExp = /^'([^]*?)'?$/;
3098
+ const doubleQuoteRegExp = /''/g;
3099
+
3100
+ const notWhitespaceRegExp = /\S/;
3101
+ const unescapedLatinCharacterRegExp = /[a-zA-Z]/;
3102
+
3103
+ /**
3104
+ * @name parse
3105
+ * @category Common Helpers
3106
+ * @summary Parse the date.
3107
+ *
3108
+ * @description
3109
+ * Return the date parsed from string using the given format string.
3110
+ *
3111
+ * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.
3112
+ * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
3113
+ *
3114
+ * The characters in the format string wrapped between two single quotes characters (') are escaped.
3115
+ * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.
3116
+ *
3117
+ * Format of the format string is based on Unicode Technical Standard #35:
3118
+ * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
3119
+ * with a few additions (see note 5 below the table).
3120
+ *
3121
+ * Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited
3122
+ * and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception:
3123
+ *
3124
+ * ```javascript
3125
+ * parse('23 AM', 'HH a', new Date())
3126
+ * //=> RangeError: The format string mustn't contain `HH` and `a` at the same time
3127
+ * ```
3128
+ *
3129
+ * See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true
3130
+ *
3131
+ * Accepted format string patterns:
3132
+ * | Unit |Prior| Pattern | Result examples | Notes |
3133
+ * |---------------------------------|-----|---------|-----------------------------------|-------|
3134
+ * | Era | 140 | G..GGG | AD, BC | |
3135
+ * | | | GGGG | Anno Domini, Before Christ | 2 |
3136
+ * | | | GGGGG | A, B | |
3137
+ * | Calendar year | 130 | y | 44, 1, 1900, 2017, 9999 | 4 |
3138
+ * | | | yo | 44th, 1st, 1900th, 9999999th | 4,5 |
3139
+ * | | | yy | 44, 01, 00, 17 | 4 |
3140
+ * | | | yyy | 044, 001, 123, 999 | 4 |
3141
+ * | | | yyyy | 0044, 0001, 1900, 2017 | 4 |
3142
+ * | | | yyyyy | ... | 2,4 |
3143
+ * | Local week-numbering year | 130 | Y | 44, 1, 1900, 2017, 9000 | 4 |
3144
+ * | | | Yo | 44th, 1st, 1900th, 9999999th | 4,5 |
3145
+ * | | | YY | 44, 01, 00, 17 | 4,6 |
3146
+ * | | | YYY | 044, 001, 123, 999 | 4 |
3147
+ * | | | YYYY | 0044, 0001, 1900, 2017 | 4,6 |
3148
+ * | | | YYYYY | ... | 2,4 |
3149
+ * | ISO week-numbering year | 130 | R | -43, 1, 1900, 2017, 9999, -9999 | 4,5 |
3150
+ * | | | RR | -43, 01, 00, 17 | 4,5 |
3151
+ * | | | RRR | -043, 001, 123, 999, -999 | 4,5 |
3152
+ * | | | RRRR | -0043, 0001, 2017, 9999, -9999 | 4,5 |
3153
+ * | | | RRRRR | ... | 2,4,5 |
3154
+ * | Extended year | 130 | u | -43, 1, 1900, 2017, 9999, -999 | 4 |
3155
+ * | | | uu | -43, 01, 99, -99 | 4 |
3156
+ * | | | uuu | -043, 001, 123, 999, -999 | 4 |
3157
+ * | | | uuuu | -0043, 0001, 2017, 9999, -9999 | 4 |
3158
+ * | | | uuuuu | ... | 2,4 |
3159
+ * | Quarter (formatting) | 120 | Q | 1, 2, 3, 4 | |
3160
+ * | | | Qo | 1st, 2nd, 3rd, 4th | 5 |
3161
+ * | | | QQ | 01, 02, 03, 04 | |
3162
+ * | | | QQQ | Q1, Q2, Q3, Q4 | |
3163
+ * | | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |
3164
+ * | | | QQQQQ | 1, 2, 3, 4 | 4 |
3165
+ * | Quarter (stand-alone) | 120 | q | 1, 2, 3, 4 | |
3166
+ * | | | qo | 1st, 2nd, 3rd, 4th | 5 |
3167
+ * | | | qq | 01, 02, 03, 04 | |
3168
+ * | | | qqq | Q1, Q2, Q3, Q4 | |
3169
+ * | | | qqqq | 1st quarter, 2nd quarter, ... | 2 |
3170
+ * | | | qqqqq | 1, 2, 3, 4 | 3 |
3171
+ * | Month (formatting) | 110 | M | 1, 2, ..., 12 | |
3172
+ * | | | Mo | 1st, 2nd, ..., 12th | 5 |
3173
+ * | | | MM | 01, 02, ..., 12 | |
3174
+ * | | | MMM | Jan, Feb, ..., Dec | |
3175
+ * | | | MMMM | January, February, ..., December | 2 |
3176
+ * | | | MMMMM | J, F, ..., D | |
3177
+ * | Month (stand-alone) | 110 | L | 1, 2, ..., 12 | |
3178
+ * | | | Lo | 1st, 2nd, ..., 12th | 5 |
3179
+ * | | | LL | 01, 02, ..., 12 | |
3180
+ * | | | LLL | Jan, Feb, ..., Dec | |
3181
+ * | | | LLLL | January, February, ..., December | 2 |
3182
+ * | | | LLLLL | J, F, ..., D | |
3183
+ * | Local week of year | 100 | w | 1, 2, ..., 53 | |
3184
+ * | | | wo | 1st, 2nd, ..., 53th | 5 |
3185
+ * | | | ww | 01, 02, ..., 53 | |
3186
+ * | ISO week of year | 100 | I | 1, 2, ..., 53 | 5 |
3187
+ * | | | Io | 1st, 2nd, ..., 53th | 5 |
3188
+ * | | | II | 01, 02, ..., 53 | 5 |
3189
+ * | Day of month | 90 | d | 1, 2, ..., 31 | |
3190
+ * | | | do | 1st, 2nd, ..., 31st | 5 |
3191
+ * | | | dd | 01, 02, ..., 31 | |
3192
+ * | Day of year | 90 | D | 1, 2, ..., 365, 366 | 7 |
3193
+ * | | | Do | 1st, 2nd, ..., 365th, 366th | 5 |
3194
+ * | | | DD | 01, 02, ..., 365, 366 | 7 |
3195
+ * | | | DDD | 001, 002, ..., 365, 366 | |
3196
+ * | | | DDDD | ... | 2 |
3197
+ * | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Sun | |
3198
+ * | | | EEEE | Monday, Tuesday, ..., Sunday | 2 |
3199
+ * | | | EEEEE | M, T, W, T, F, S, S | |
3200
+ * | | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |
3201
+ * | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 |
3202
+ * | | | io | 1st, 2nd, ..., 7th | 5 |
3203
+ * | | | ii | 01, 02, ..., 07 | 5 |
3204
+ * | | | iii | Mon, Tue, Wed, ..., Sun | 5 |
3205
+ * | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 |
3206
+ * | | | iiiii | M, T, W, T, F, S, S | 5 |
3207
+ * | | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 5 |
3208
+ * | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | |
3209
+ * | | | eo | 2nd, 3rd, ..., 1st | 5 |
3210
+ * | | | ee | 02, 03, ..., 01 | |
3211
+ * | | | eee | Mon, Tue, Wed, ..., Sun | |
3212
+ * | | | eeee | Monday, Tuesday, ..., Sunday | 2 |
3213
+ * | | | eeeee | M, T, W, T, F, S, S | |
3214
+ * | | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |
3215
+ * | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | |
3216
+ * | | | co | 2nd, 3rd, ..., 1st | 5 |
3217
+ * | | | cc | 02, 03, ..., 01 | |
3218
+ * | | | ccc | Mon, Tue, Wed, ..., Sun | |
3219
+ * | | | cccc | Monday, Tuesday, ..., Sunday | 2 |
3220
+ * | | | ccccc | M, T, W, T, F, S, S | |
3221
+ * | | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |
3222
+ * | AM, PM | 80 | a..aaa | AM, PM | |
3223
+ * | | | aaaa | a.m., p.m. | 2 |
3224
+ * | | | aaaaa | a, p | |
3225
+ * | AM, PM, noon, midnight | 80 | b..bbb | AM, PM, noon, midnight | |
3226
+ * | | | bbbb | a.m., p.m., noon, midnight | 2 |
3227
+ * | | | bbbbb | a, p, n, mi | |
3228
+ * | Flexible day period | 80 | B..BBB | at night, in the morning, ... | |
3229
+ * | | | BBBB | at night, in the morning, ... | 2 |
3230
+ * | | | BBBBB | at night, in the morning, ... | |
3231
+ * | Hour [1-12] | 70 | h | 1, 2, ..., 11, 12 | |
3232
+ * | | | ho | 1st, 2nd, ..., 11th, 12th | 5 |
3233
+ * | | | hh | 01, 02, ..., 11, 12 | |
3234
+ * | Hour [0-23] | 70 | H | 0, 1, 2, ..., 23 | |
3235
+ * | | | Ho | 0th, 1st, 2nd, ..., 23rd | 5 |
3236
+ * | | | HH | 00, 01, 02, ..., 23 | |
3237
+ * | Hour [0-11] | 70 | K | 1, 2, ..., 11, 0 | |
3238
+ * | | | Ko | 1st, 2nd, ..., 11th, 0th | 5 |
3239
+ * | | | KK | 01, 02, ..., 11, 00 | |
3240
+ * | Hour [1-24] | 70 | k | 24, 1, 2, ..., 23 | |
3241
+ * | | | ko | 24th, 1st, 2nd, ..., 23rd | 5 |
3242
+ * | | | kk | 24, 01, 02, ..., 23 | |
3243
+ * | Minute | 60 | m | 0, 1, ..., 59 | |
3244
+ * | | | mo | 0th, 1st, ..., 59th | 5 |
3245
+ * | | | mm | 00, 01, ..., 59 | |
3246
+ * | Second | 50 | s | 0, 1, ..., 59 | |
3247
+ * | | | so | 0th, 1st, ..., 59th | 5 |
3248
+ * | | | ss | 00, 01, ..., 59 | |
3249
+ * | Seconds timestamp | 40 | t | 512969520 | |
3250
+ * | | | tt | ... | 2 |
3251
+ * | Fraction of second | 30 | S | 0, 1, ..., 9 | |
3252
+ * | | | SS | 00, 01, ..., 99 | |
3253
+ * | | | SSS | 000, 001, ..., 999 | |
3254
+ * | | | SSSS | ... | 2 |
3255
+ * | Milliseconds timestamp | 20 | T | 512969520900 | |
3256
+ * | | | TT | ... | 2 |
3257
+ * | Timezone (ISO-8601 w/ Z) | 10 | X | -08, +0530, Z | |
3258
+ * | | | XX | -0800, +0530, Z | |
3259
+ * | | | XXX | -08:00, +05:30, Z | |
3260
+ * | | | XXXX | -0800, +0530, Z, +123456 | 2 |
3261
+ * | | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |
3262
+ * | Timezone (ISO-8601 w/o Z) | 10 | x | -08, +0530, +00 | |
3263
+ * | | | xx | -0800, +0530, +0000 | |
3264
+ * | | | xxx | -08:00, +05:30, +00:00 | 2 |
3265
+ * | | | xxxx | -0800, +0530, +0000, +123456 | |
3266
+ * | | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |
3267
+ * | Long localized date | NA | P | 05/29/1453 | 5,8 |
3268
+ * | | | PP | May 29, 1453 | |
3269
+ * | | | PPP | May 29th, 1453 | |
3270
+ * | | | PPPP | Sunday, May 29th, 1453 | 2,5,8 |
3271
+ * | Long localized time | NA | p | 12:00 AM | 5,8 |
3272
+ * | | | pp | 12:00:00 AM | |
3273
+ * | Combination of date and time | NA | Pp | 05/29/1453, 12:00 AM | |
3274
+ * | | | PPpp | May 29, 1453, 12:00:00 AM | |
3275
+ * | | | PPPpp | May 29th, 1453 at ... | |
3276
+ * | | | PPPPpp | Sunday, May 29th, 1453 at ... | 2,5,8 |
3277
+ * Notes:
3278
+ * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale
3279
+ * are the same as "stand-alone" units, but are different in some languages.
3280
+ * "Formatting" units are declined according to the rules of the language
3281
+ * in the context of a date. "Stand-alone" units are always nominative singular.
3282
+ * In `format` function, they will produce different result:
3283
+ *
3284
+ * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`
3285
+ *
3286
+ * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`
3287
+ *
3288
+ * `parse` will try to match both formatting and stand-alone units interchangeably.
3289
+ *
3290
+ * 2. Any sequence of the identical letters is a pattern, unless it is escaped by
3291
+ * the single quote characters (see below).
3292
+ * If the sequence is longer than listed in table:
3293
+ * - for numerical units (`yyyyyyyy`) `parse` will try to match a number
3294
+ * as wide as the sequence
3295
+ * - for text units (`MMMMMMMM`) `parse` will try to match the widest variation of the unit.
3296
+ * These variations are marked with "2" in the last column of the table.
3297
+ *
3298
+ * 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.
3299
+ * These tokens represent the shortest form of the quarter.
3300
+ *
3301
+ * 4. The main difference between `y` and `u` patterns are B.C. years:
3302
+ *
3303
+ * | Year | `y` | `u` |
3304
+ * |------|-----|-----|
3305
+ * | AC 1 | 1 | 1 |
3306
+ * | BC 1 | 1 | 0 |
3307
+ * | BC 2 | 2 | -1 |
3308
+ *
3309
+ * Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`:
3310
+ *
3311
+ * `parse('50', 'yy', new Date(2018, 0, 1)) //=> Sat Jan 01 2050 00:00:00`
3312
+ *
3313
+ * `parse('75', 'yy', new Date(2018, 0, 1)) //=> Wed Jan 01 1975 00:00:00`
3314
+ *
3315
+ * while `uu` will just assign the year as is:
3316
+ *
3317
+ * `parse('50', 'uu', new Date(2018, 0, 1)) //=> Sat Jan 01 0050 00:00:00`
3318
+ *
3319
+ * `parse('75', 'uu', new Date(2018, 0, 1)) //=> Tue Jan 01 0075 00:00:00`
3320
+ *
3321
+ * The same difference is true for local and ISO week-numbering years (`Y` and `R`),
3322
+ * except local week-numbering years are dependent on `options.weekStartsOn`
3323
+ * and `options.firstWeekContainsDate` (compare [setISOWeekYear](https://date-fns.org/docs/setISOWeekYear)
3324
+ * and [setWeekYear](https://date-fns.org/docs/setWeekYear)).
3325
+ *
3326
+ * 5. These patterns are not in the Unicode Technical Standard #35:
3327
+ * - `i`: ISO day of week
3328
+ * - `I`: ISO week of year
3329
+ * - `R`: ISO week-numbering year
3330
+ * - `o`: ordinal number modifier
3331
+ * - `P`: long localized date
3332
+ * - `p`: long localized time
3333
+ *
3334
+ * 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.
3335
+ * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
3336
+ *
3337
+ * 7. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.
3338
+ * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
3339
+ *
3340
+ * 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based
3341
+ * on the given locale.
3342
+ *
3343
+ * using `en-US` locale: `P` => `MM/dd/yyyy`
3344
+ * using `en-US` locale: `p` => `hh:mm a`
3345
+ * using `pt-BR` locale: `P` => `dd/MM/yyyy`
3346
+ * using `pt-BR` locale: `p` => `HH:mm`
3347
+ *
3348
+ * Values will be assigned to the date in the descending order of its unit's priority.
3349
+ * Units of an equal priority overwrite each other in the order of appearance.
3350
+ *
3351
+ * If no values of higher priority are parsed (e.g. when parsing string 'January 1st' without a year),
3352
+ * the values will be taken from 3rd argument `referenceDate` which works as a context of parsing.
3353
+ *
3354
+ * `referenceDate` must be passed for correct work of the function.
3355
+ * If you're not sure which `referenceDate` to supply, create a new instance of Date:
3356
+ * `parse('02/11/2014', 'MM/dd/yyyy', new Date())`
3357
+ * In this case parsing will be done in the context of the current date.
3358
+ * If `referenceDate` is `Invalid Date` or a value not convertible to valid `Date`,
3359
+ * then `Invalid Date` will be returned.
3360
+ *
3361
+ * The result may vary by locale.
3362
+ *
3363
+ * If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned.
3364
+ *
3365
+ * If parsing failed, `Invalid Date` will be returned.
3366
+ * Invalid Date is a Date, whose time value is NaN.
3367
+ * Time value of Date: http://es5.github.io/#x15.9.1.1
3368
+ *
3369
+ * @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).
3370
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
3371
+ *
3372
+ * @param dateStr - The string to parse
3373
+ * @param formatStr - The string of tokens
3374
+ * @param referenceDate - defines values missing from the parsed dateString
3375
+ * @param options - An object with options.
3376
+ * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
3377
+ * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
3378
+ *
3379
+ * @returns The parsed date
3380
+ *
3381
+ * @throws `options.locale` must contain `match` property
3382
+ * @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
3383
+ * @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
3384
+ * @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
3385
+ * @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
3386
+ * @throws format string contains an unescaped latin alphabet character
3387
+ *
3388
+ * @example
3389
+ * // Parse 11 February 2014 from middle-endian format:
3390
+ * var result = parse('02/11/2014', 'MM/dd/yyyy', new Date())
3391
+ * //=> Tue Feb 11 2014 00:00:00
3392
+ *
3393
+ * @example
3394
+ * // Parse 28th of February in Esperanto locale in the context of 2010 year:
3395
+ * import eo from 'date-fns/locale/eo'
3396
+ * var result = parse('28-a de februaro', "do 'de' MMMM", new Date(2010, 0, 1), {
3397
+ * locale: eo
3398
+ * })
3399
+ * //=> Sun Feb 28 2010 00:00:00
3400
+ */
3401
+ function parse(dateStr, formatStr, referenceDate, options) {
3402
+ const invalidDate = () =>
3403
+ (0, _index4.constructFrom)(options?.in || referenceDate, NaN);
3404
+ const defaultOptions = (0, _index5.getDefaultOptions)();
3405
+ const locale =
3406
+ options?.locale ?? defaultOptions.locale ?? _index.defaultLocale;
3407
+
3408
+ const firstWeekContainsDate =
3409
+ options?.firstWeekContainsDate ??
3410
+ options?.locale?.options?.firstWeekContainsDate ??
3411
+ defaultOptions.firstWeekContainsDate ??
3412
+ defaultOptions.locale?.options?.firstWeekContainsDate ??
3413
+ 1;
3414
+
3415
+ const weekStartsOn =
3416
+ options?.weekStartsOn ??
3417
+ options?.locale?.options?.weekStartsOn ??
3418
+ defaultOptions.weekStartsOn ??
3419
+ defaultOptions.locale?.options?.weekStartsOn ??
3420
+ 0;
3421
+
3422
+ if (!formatStr)
3423
+ return dateStr
3424
+ ? invalidDate()
3425
+ : (0, _index6.toDate)(referenceDate, options?.in);
3426
+
3427
+ const subFnOptions = {
3428
+ firstWeekContainsDate,
3429
+ weekStartsOn,
3430
+ locale,
3431
+ };
3432
+
3433
+ // If timezone isn't specified, it will try to use the context or
3434
+ // the reference date and fallback to the system time zone.
3435
+ const setters = [new _Setter.DateTimezoneSetter(options?.in, referenceDate)];
3436
+
3437
+ const tokens = formatStr
3438
+ .match(longFormattingTokensRegExp)
3439
+ .map((substring) => {
3440
+ const firstCharacter = substring[0];
3441
+ if (firstCharacter in _index2.longFormatters) {
3442
+ const longFormatter = _index2.longFormatters[firstCharacter];
3443
+ return longFormatter(substring, locale.formatLong);
3444
+ }
3445
+ return substring;
3446
+ })
3447
+ .join("")
3448
+ .match(formattingTokensRegExp);
3449
+
3450
+ const usedTokens = [];
3451
+
3452
+ for (let token of tokens) {
3453
+ if (
3454
+ !options?.useAdditionalWeekYearTokens &&
3455
+ (0, _index3.isProtectedWeekYearToken)(token)
3456
+ ) {
3457
+ (0, _index3.warnOrThrowProtectedError)(token, formatStr, dateStr);
3458
+ }
3459
+ if (
3460
+ !options?.useAdditionalDayOfYearTokens &&
3461
+ (0, _index3.isProtectedDayOfYearToken)(token)
3462
+ ) {
3463
+ (0, _index3.warnOrThrowProtectedError)(token, formatStr, dateStr);
3464
+ }
3465
+
3466
+ const firstCharacter = token[0];
3467
+ const parser = _index7.parsers[firstCharacter];
3468
+ if (parser) {
3469
+ const { incompatibleTokens } = parser;
3470
+ if (Array.isArray(incompatibleTokens)) {
3471
+ const incompatibleToken = usedTokens.find(
3472
+ (usedToken) =>
3473
+ incompatibleTokens.includes(usedToken.token) ||
3474
+ usedToken.token === firstCharacter,
3475
+ );
3476
+ if (incompatibleToken) {
3477
+ throw new RangeError(
3478
+ `The format string mustn't contain \`${incompatibleToken.fullToken}\` and \`${token}\` at the same time`,
3479
+ );
3480
+ }
3481
+ } else if (parser.incompatibleTokens === "*" && usedTokens.length > 0) {
3482
+ throw new RangeError(
3483
+ `The format string mustn't contain \`${token}\` and any other token at the same time`,
3484
+ );
3485
+ }
3486
+
3487
+ usedTokens.push({ token: firstCharacter, fullToken: token });
3488
+
3489
+ const parseResult = parser.run(
3490
+ dateStr,
3491
+ token,
3492
+ locale.match,
3493
+ subFnOptions,
3494
+ );
3495
+
3496
+ if (!parseResult) {
3497
+ return invalidDate();
3498
+ }
3499
+
3500
+ setters.push(parseResult.setter);
3501
+
3502
+ dateStr = parseResult.rest;
3503
+ } else {
3504
+ if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
3505
+ throw new RangeError(
3506
+ "Format string contains an unescaped latin alphabet character `" +
3507
+ firstCharacter +
3508
+ "`",
3509
+ );
3510
+ }
3511
+
3512
+ // Replace two single quote characters with one single quote character
3513
+ if (token === "''") {
3514
+ token = "'";
3515
+ } else if (firstCharacter === "'") {
3516
+ token = cleanEscapedString(token);
3517
+ }
3518
+
3519
+ // Cut token from string, or, if string doesn't match the token, return Invalid Date
3520
+ if (dateStr.indexOf(token) === 0) {
3521
+ dateStr = dateStr.slice(token.length);
3522
+ } else {
3523
+ return invalidDate();
3524
+ }
3525
+ }
3526
+ }
3527
+
3528
+ // Check if the remaining input contains something other than whitespace
3529
+ if (dateStr.length > 0 && notWhitespaceRegExp.test(dateStr)) {
3530
+ return invalidDate();
3531
+ }
3532
+
3533
+ const uniquePrioritySetters = setters
3534
+ .map((setter) => setter.priority)
3535
+ .sort((a, b) => b - a)
3536
+ .filter((priority, index, array) => array.indexOf(priority) === index)
3537
+ .map((priority) =>
3538
+ setters
3539
+ .filter((setter) => setter.priority === priority)
3540
+ .sort((a, b) => b.subPriority - a.subPriority),
3541
+ )
3542
+ .map((setterArray) => setterArray[0]);
3543
+
3544
+ let date = (0, _index6.toDate)(referenceDate, options?.in);
3545
+
3546
+ if (isNaN(+date)) return invalidDate();
3547
+
3548
+ const flags = {};
3549
+ for (const setter of uniquePrioritySetters) {
3550
+ if (!setter.validate(date, subFnOptions)) {
3551
+ return invalidDate();
3552
+ }
3553
+
3554
+ const result = setter.set(date, flags, subFnOptions);
3555
+ // Result is tuple (date, flags)
3556
+ if (Array.isArray(result)) {
3557
+ date = result[0];
3558
+ Object.assign(flags, result[1]);
3559
+ // Result is date
3560
+ } else {
3561
+ date = result;
3562
+ }
3563
+ }
3564
+
3565
+ return date;
3566
+ }
3567
+
3568
+ function cleanEscapedString(input) {
3569
+ return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'");
3570
+ }
3571
+ } (parse));
3572
+ return parse;
3573
+ }
3574
+
3575
+ var parseExports = /*@__PURE__*/ requireParse();
3576
+
3577
+ var set = {};
3578
+
3579
+ var hasRequiredSet;
3580
+
3581
+ function requireSet () {
3582
+ if (hasRequiredSet) return set;
3583
+ hasRequiredSet = 1;
3584
+ set.set = set$1;
3585
+ var _index = /*@__PURE__*/ datetimePickerConstants.requireConstructFrom();
3586
+ var _index2 = /*@__PURE__*/ datetimePickerConstants.requireSetMonth();
3587
+ var _index3 = /*@__PURE__*/ datetimePickerConstants.requireToDate();
3588
+
3589
+ /**
3590
+ * The {@link set} function options.
3591
+ */
3592
+
3593
+ /**
3594
+ * @name set
3595
+ * @category Common Helpers
3596
+ * @summary Set date values to a given date.
3597
+ *
3598
+ * @description
3599
+ * Set date values to a given date.
3600
+ *
3601
+ * Sets time values to date from object `values`.
3602
+ * A value is not set if it is undefined or null or doesn't exist in `values`.
3603
+ *
3604
+ * Note about bundle size: `set` does not internally use `setX` functions from date-fns but instead opts
3605
+ * to use native `Date#setX` methods. If you use this function, you may not want to include the
3606
+ * other `setX` functions that date-fns provides if you are concerned about the bundle size.
3607
+ *
3608
+ * @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).
3609
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
3610
+ *
3611
+ * @param date - The date to be changed
3612
+ * @param values - The date values to be set
3613
+ * @param options - The options
3614
+ *
3615
+ * @returns The new date with options set
3616
+ *
3617
+ * @example
3618
+ * // Transform 1 September 2014 into 20 October 2015 in a single line:
3619
+ * const result = set(new Date(2014, 8, 20), { year: 2015, month: 9, date: 20 })
3620
+ * //=> Tue Oct 20 2015 00:00:00
3621
+ *
3622
+ * @example
3623
+ * // Set 12 PM to 1 September 2014 01:23:45 to 1 September 2014 12:00:00:
3624
+ * const result = set(new Date(2014, 8, 1, 1, 23, 45), { hours: 12 })
3625
+ * //=> Mon Sep 01 2014 12:23:45
3626
+ */
3627
+ function set$1(date, values, options) {
3628
+ let _date = (0, _index3.toDate)(date, options?.in);
3629
+
3630
+ // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date
3631
+ if (isNaN(+_date)) return (0, _index.constructFrom)(options?.in || date, NaN);
3632
+
3633
+ if (values.year != null) _date.setFullYear(values.year);
3634
+ if (values.month != null) _date = (0, _index2.setMonth)(_date, values.month);
3635
+ if (values.date != null) _date.setDate(values.date);
3636
+ if (values.hours != null) _date.setHours(values.hours);
3637
+ if (values.minutes != null) _date.setMinutes(values.minutes);
3638
+ if (values.seconds != null) _date.setSeconds(values.seconds);
3639
+ if (values.milliseconds != null) _date.setMilliseconds(values.milliseconds);
3640
+
3641
+ return _date;
3642
+ }
3643
+ return set;
3644
+ }
3645
+
3646
+ var setExports = /*@__PURE__*/ requireSet();
3647
+
3648
+ var toDateExports = /*@__PURE__*/ datetimePickerConstants.requireToDate();
3649
+
3650
+ const SSR_MOMENT_ATTRIBUTE = 'data-br-ssr-moment';
3651
+ function serializeLocalDate(date) {
3652
+ return [
3653
+ date.getFullYear(),
3654
+ date.getMonth(),
3655
+ date.getDate(),
3656
+ date.getHours(),
3657
+ date.getMinutes(),
3658
+ date.getSeconds(),
3659
+ date.getMilliseconds(),
3660
+ ].join('-');
3661
+ }
3662
+ function parseLocalDate(value) {
3663
+ const parts = value.split('-').map(Number);
3664
+ if (parts.length !== 7 || parts.some((part) => !Number.isFinite(part)))
3665
+ return null;
3666
+ const [year, month, day, hours, minutes, seconds, milliseconds] = parts;
3667
+ const date = new Date(year, month, day, hours, minutes, seconds, milliseconds);
3668
+ return Number.isNaN(date.getTime()) ? null : date;
3669
+ }
3670
+ /** Mantém defaults baseados no relógio idênticos entre SSR e hidratação. */
3671
+ function resolveSsrLocalDate(host, fallback) {
3672
+ const hydrated = parseLocalDate(host.getAttribute(SSR_MOMENT_ATTRIBUTE) ?? '');
3673
+ if (hydrated)
3674
+ return hydrated;
3675
+ if (!Number.isNaN(fallback.getTime()))
3676
+ host.setAttribute(SSR_MOMENT_ATTRIBUTE, serializeLocalDate(fallback));
3677
+ return fallback;
3678
+ }
3679
+
3680
+ function warnInvalidPropValue(componentTag, propName, receivedValue, defaultValue) {
3681
+ console.warn(`[${componentTag}]: valor invalido para "${propName}": "${String(receivedValue)}". Usando valor padrao "${defaultValue}".`);
3682
+ }
3683
+
3684
+ var isValidExports = /*@__PURE__*/ datetimePickerConstants.requireIsValid();
3685
+
3686
+ exports.eachDayOfIntervalExports = eachDayOfIntervalExports;
3687
+ exports.isSameDayExports = isSameDayExports;
3688
+ exports.isValidExports = isValidExports;
3689
+ exports.parseExports = parseExports;
3690
+ exports.requireParse = requireParse;
3691
+ exports.resolveSsrLocalDate = resolveSsrLocalDate;
3692
+ exports.setExports = setExports;
3693
+ exports.toDateExports = toDateExports;
3694
+ exports.warnInvalidPropValue = warnInvalidPropValue;