@paperless/core 0.1.0-alpha.437 → 0.1.0-alpha.439

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 (378) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/{paperless/p-e3f29ba8.entry.js → build/p-0410ec1e.entry.js} +2 -2
  3. package/dist/{paperless/p-756c06ec.entry.js → build/p-1d6b036c.entry.js} +2 -2
  4. package/dist/build/{p-58b52568.entry.js → p-1f55126f.entry.js} +2 -2
  5. package/dist/build/{p-b7b1de31.entry.js → p-322be6d8.entry.js} +2 -2
  6. package/dist/build/{p-5d118f66.entry.js → p-33b6520e.entry.js} +2 -2
  7. package/dist/build/{p-f07793f6.entry.js → p-3bd4c1c1.entry.js} +2 -2
  8. package/dist/build/{p-a3fcf8b6.entry.js → p-3d458d5a.entry.js} +2 -2
  9. package/dist/build/{p-0cb97c5e.entry.js → p-47e461b7.entry.js} +2 -2
  10. package/dist/build/{p-b13a0ee4.entry.js → p-49104ffe.entry.js} +2 -2
  11. package/dist/{paperless/p-a2bd1a79.entry.js → build/p-4939be3e.entry.js} +2 -2
  12. package/dist/{paperless/p-ac7b48ff.entry.js → build/p-4b99a4fe.entry.js} +2 -2
  13. package/dist/build/{p-464569dc.entry.js → p-5e5f3eaa.entry.js} +2 -2
  14. package/dist/build/{p-ea824ef3.entry.js → p-688264c9.entry.js} +2 -2
  15. package/dist/build/{p-d012d066.entry.js → p-6a7584cc.entry.js} +2 -2
  16. package/dist/build/p-6ccf5cdd.js +3 -0
  17. package/dist/build/p-6ccf5cdd.js.map +1 -0
  18. package/dist/build/{p-ebc2ae62.entry.js → p-733a0d79.entry.js} +2 -2
  19. package/dist/{paperless/p-ef2eee59.entry.js → build/p-7b16e066.entry.js} +2 -2
  20. package/dist/build/{p-45dfd940.entry.js → p-7e26a901.entry.js} +2 -2
  21. package/dist/build/{p-cccc37c0.entry.js → p-81a99f72.entry.js} +2 -2
  22. package/dist/{paperless/p-6f82a1e7.entry.js → build/p-8569fa3c.entry.js} +2 -2
  23. package/dist/{paperless/p-c87da93e.entry.js → build/p-86b47461.entry.js} +2 -2
  24. package/dist/build/p-89f5e9c9.entry.js +2 -0
  25. package/dist/build/p-89f5e9c9.entry.js.map +1 -0
  26. package/dist/build/{p-1b5292a3.entry.js → p-8f453ef2.entry.js} +2 -2
  27. package/dist/{paperless/p-57411b2b.entry.js → build/p-a0790d7b.entry.js} +2 -2
  28. package/dist/build/{p-31afbb45.entry.js → p-a233bac3.entry.js} +2 -2
  29. package/dist/{paperless/p-5a31cb9e.entry.js → build/p-a751f1a4.entry.js} +2 -2
  30. package/dist/build/p-ae248aef.js +2 -0
  31. package/dist/build/p-ae248aef.js.map +1 -0
  32. package/dist/build/{p-3d8b5cc4.entry.js → p-af38f227.entry.js} +2 -2
  33. package/dist/{paperless/p-93fb216c.entry.js → build/p-af92e53c.entry.js} +2 -2
  34. package/dist/build/{p-7b94bc6a.entry.js → p-b5b591c7.entry.js} +2 -2
  35. package/dist/{paperless/p-78948e08.entry.js → build/p-b62e6ab2.entry.js} +2 -2
  36. package/dist/{paperless/p-5236b565.entry.js → build/p-c6d9e720.entry.js} +2 -2
  37. package/dist/{paperless/p-f34ed23f.entry.js → build/p-c942022f.entry.js} +2 -2
  38. package/dist/build/p-c942022f.entry.js.map +1 -0
  39. package/dist/build/{p-ebd4ba56.entry.js → p-ca2abe98.entry.js} +2 -2
  40. package/dist/build/{p-b0eeab26.entry.js → p-cfd0a2bb.entry.js} +2 -2
  41. package/dist/build/{p-10ad607e.entry.js → p-e8a815d7.entry.js} +2 -2
  42. package/dist/build/{p-036a82fc.entry.js → p-e9dc7598.entry.js} +2 -2
  43. package/dist/build/p-e9dc7598.entry.js.map +1 -0
  44. package/dist/build/{p-e0d7a4ee.entry.js → p-efdeae92.entry.js} +2 -2
  45. package/dist/{paperless/p-8fb43cc7.entry.js → build/p-f215bf8c.entry.js} +2 -2
  46. package/dist/build/{p-c6ef7b79.entry.js → p-f3207ec2.entry.js} +2 -2
  47. package/dist/build/{p-0a3f2fe8.entry.js → p-f429073e.entry.js} +2 -2
  48. package/dist/build/{p-dc01e9eb.entry.js → p-f59afce6.entry.js} +2 -2
  49. package/dist/{paperless/p-471be252.entry.js → build/p-f695dc3c.entry.js} +2 -2
  50. package/dist/build/{p-78ce77d2.entry.js → p-f9aaa75c.entry.js} +2 -2
  51. package/dist/build/p-fef32402.js +2 -0
  52. package/dist/{cjs/floating-ui.dom.esm-4cb215a4.js.map → build/p-fef32402.js.map} +1 -1
  53. package/dist/build/paperless.css +1 -1
  54. package/dist/build/paperless.esm.js +1 -1
  55. package/dist/build/paperless.esm.js.map +1 -1
  56. package/dist/cjs/{floating-ui.dom.esm-4cb215a4.js → floating-ui.dom.esm-62336770.js} +19 -9
  57. package/dist/cjs/floating-ui.dom.esm-62336770.js.map +1 -0
  58. package/dist/cjs/{index-040ec3f9.js → index-b59a0544.js} +65 -224
  59. package/dist/cjs/index-b59a0544.js.map +1 -0
  60. package/dist/cjs/{index-13ea09e0.js → index-dfc4dfec.js} +82 -34
  61. package/dist/cjs/index-dfc4dfec.js.map +1 -0
  62. package/dist/cjs/loader.cjs.js +2 -2
  63. package/dist/cjs/loader.cjs.js.map +1 -1
  64. package/dist/cjs/p-accordion.cjs.entry.js +1 -1
  65. package/dist/cjs/p-attachment.cjs.entry.js +2 -2
  66. package/dist/cjs/p-avatar-group.cjs.entry.js +1 -1
  67. package/dist/cjs/p-avatar.cjs.entry.js +1 -1
  68. package/dist/cjs/p-backdrop.cjs.entry.js +1 -1
  69. package/dist/cjs/p-button_3.cjs.entry.js +1 -1
  70. package/dist/cjs/p-calendar.cjs.entry.js +9 -28
  71. package/dist/cjs/p-calendar.cjs.entry.js.map +1 -1
  72. package/dist/cjs/p-card-body.cjs.entry.js +1 -1
  73. package/dist/cjs/p-card-container.cjs.entry.js +1 -1
  74. package/dist/cjs/p-card-header.cjs.entry.js +1 -1
  75. package/dist/cjs/p-content-slider.cjs.entry.js +1 -1
  76. package/dist/cjs/p-counter.cjs.entry.js +1 -1
  77. package/dist/cjs/p-datepicker.cjs.entry.js +435 -1476
  78. package/dist/cjs/p-datepicker.cjs.entry.js.map +1 -1
  79. package/dist/cjs/p-divider.cjs.entry.js +1 -1
  80. package/dist/cjs/p-drawer-body_3.cjs.entry.js +1 -1
  81. package/dist/cjs/p-drawer.cjs.entry.js +1 -1
  82. package/dist/cjs/p-dropdown-menu-container.cjs.entry.js +2 -2
  83. package/dist/cjs/p-dropdown_2.cjs.entry.js +3 -3
  84. package/dist/cjs/p-helper_3.cjs.entry.js +3 -3
  85. package/dist/cjs/p-illustration_6.cjs.entry.js +1 -1
  86. package/dist/cjs/p-info-panel.cjs.entry.js +1 -1
  87. package/dist/cjs/p-label_3.cjs.entry.js +1 -1
  88. package/dist/cjs/p-layout.cjs.entry.js +1 -1
  89. package/dist/cjs/p-modal-body_4.cjs.entry.js +1 -1
  90. package/dist/cjs/p-modal.cjs.entry.js +1 -1
  91. package/dist/cjs/p-navbar.cjs.entry.js +1 -1
  92. package/dist/cjs/p-navigation-item.cjs.entry.js +1 -1
  93. package/dist/cjs/p-page-size-select_3.cjs.entry.js +1 -1
  94. package/dist/cjs/p-profile.cjs.entry.js +1 -1
  95. package/dist/cjs/p-select.cjs.entry.js +1 -1
  96. package/dist/cjs/p-slider-indicator.cjs.entry.js +1 -1
  97. package/dist/cjs/p-status.cjs.entry.js +1 -1
  98. package/dist/cjs/p-stepper-item.cjs.entry.js +1 -1
  99. package/dist/cjs/p-stepper-line.cjs.entry.js +1 -1
  100. package/dist/cjs/p-stepper.cjs.entry.js +1 -1
  101. package/dist/cjs/p-tab-group.cjs.entry.js +1 -1
  102. package/dist/cjs/p-tab-item.cjs.entry.js +1 -1
  103. package/dist/cjs/p-table-column.cjs.entry.js +1 -1
  104. package/dist/cjs/p-table.cjs.entry.js +1 -1
  105. package/dist/cjs/p-toast-container.cjs.entry.js +1 -1
  106. package/dist/cjs/p-toast.cjs.entry.js +1 -1
  107. package/dist/cjs/p-tooltip.cjs.entry.js +6 -4
  108. package/dist/cjs/p-tooltip.cjs.entry.js.map +1 -1
  109. package/dist/cjs/paperless.cjs.js +2 -2
  110. package/dist/cjs/paperless.cjs.js.map +1 -1
  111. package/dist/collection/collection-manifest.json +1 -1
  112. package/dist/collection/components/atoms/backdrop/backdrop.component.css +1 -1
  113. package/dist/collection/components/atoms/button/button.component.css +1 -1
  114. package/dist/collection/components/atoms/divider/divider.component.css +1 -1
  115. package/dist/collection/components/atoms/drawer-body/drawer-body.component.css +1 -1
  116. package/dist/collection/components/atoms/drawer-container/drawer-container.component.css +1 -1
  117. package/dist/collection/components/atoms/drawer-header/drawer-header.component.css +1 -1
  118. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.css +1 -1
  119. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.css +1 -1
  120. package/dist/collection/components/atoms/helper/helper.component.css +1 -1
  121. package/dist/collection/components/atoms/icon/icon.component.css +1 -1
  122. package/dist/collection/components/atoms/label/label.component.css +1 -1
  123. package/dist/collection/components/atoms/loader/loader.component.css +1 -1
  124. package/dist/collection/components/atoms/modal-body/modal-body.component.css +1 -1
  125. package/dist/collection/components/atoms/modal-container/modal-container.component.css +1 -1
  126. package/dist/collection/components/atoms/modal-footer/modal-footer.component.css +1 -1
  127. package/dist/collection/components/atoms/modal-header/modal-header.component.css +1 -1
  128. package/dist/collection/components/atoms/pagination-item/pagination-item.component.css +1 -1
  129. package/dist/collection/components/atoms/segment-container/segment-container.component.css +1 -1
  130. package/dist/collection/components/atoms/segment-item/segment-item.component.css +1 -1
  131. package/dist/collection/components/atoms/table-container/table-container.component.css +1 -1
  132. package/dist/collection/components/atoms/tooltip/tooltip.component.css +1 -1
  133. package/dist/collection/components/atoms/tooltip/tooltip.component.js +3 -1
  134. package/dist/collection/components/atoms/tooltip/tooltip.component.js.map +1 -1
  135. package/dist/collection/components/molecules/attachment/attachment.component.css +1 -1
  136. package/dist/collection/components/molecules/calendar/calendar.component.css +1 -1
  137. package/dist/collection/components/molecules/datepicker/datepicker.component.css +1 -1
  138. package/dist/collection/components/molecules/dropdown/dropdown.component.css +1 -1
  139. package/dist/collection/components/molecules/input-group/input-group.component.css +1 -1
  140. package/dist/collection/components/molecules/pagination/pagination.component.css +1 -1
  141. package/dist/collection/components/molecules/profile/profile.component.css +1 -1
  142. package/dist/collection/components/molecules/table-cell/table-cell.component.css +1 -1
  143. package/dist/collection/components/molecules/table-footer/table-footer.component.css +1 -1
  144. package/dist/collection/components/molecules/table-header/table-header.component.css +1 -1
  145. package/dist/collection/components/molecules/table-row/table-row.component.css +1 -1
  146. package/dist/collection/components/organisms/drawer/drawer.component.css +1 -1
  147. package/dist/collection/components/organisms/table/table.component.css +1 -1
  148. package/dist/components/calendar.component.js +71 -250
  149. package/dist/components/calendar.component.js.map +1 -1
  150. package/dist/components/dropdown-menu-container.component.js +1 -1
  151. package/dist/components/dropdown.component.js +1 -1
  152. package/dist/components/floating-ui.dom.esm.js +18 -8
  153. package/dist/components/floating-ui.dom.esm.js.map +1 -1
  154. package/dist/components/helper.component.js +1 -1
  155. package/dist/components/input-group.component.js +1 -1
  156. package/dist/components/p-attachment.js +1 -1
  157. package/dist/components/p-datepicker.js +433 -1474
  158. package/dist/components/p-datepicker.js.map +1 -1
  159. package/dist/components/tooltip.component.js +4 -2
  160. package/dist/components/tooltip.component.js.map +1 -1
  161. package/dist/esm/{floating-ui.dom.esm-82b72251.js → floating-ui.dom.esm-314a52b2.js} +19 -9
  162. package/dist/esm/floating-ui.dom.esm-314a52b2.js.map +1 -0
  163. package/dist/esm/{index-94339e77.js → index-2c1bdb40.js} +82 -34
  164. package/dist/esm/index-2c1bdb40.js.map +1 -0
  165. package/dist/esm/{index-340e085c.js → index-934ac6da.js} +65 -225
  166. package/dist/esm/index-934ac6da.js.map +1 -0
  167. package/dist/esm/loader.js +3 -3
  168. package/dist/esm/loader.js.map +1 -1
  169. package/dist/esm/p-accordion.entry.js +1 -1
  170. package/dist/esm/p-attachment.entry.js +2 -2
  171. package/dist/esm/p-avatar-group.entry.js +1 -1
  172. package/dist/esm/p-avatar.entry.js +1 -1
  173. package/dist/esm/p-backdrop.entry.js +1 -1
  174. package/dist/esm/p-button_3.entry.js +1 -1
  175. package/dist/esm/p-calendar.entry.js +9 -28
  176. package/dist/esm/p-calendar.entry.js.map +1 -1
  177. package/dist/esm/p-card-body.entry.js +1 -1
  178. package/dist/esm/p-card-container.entry.js +1 -1
  179. package/dist/esm/p-card-header.entry.js +1 -1
  180. package/dist/esm/p-content-slider.entry.js +1 -1
  181. package/dist/esm/p-counter.entry.js +1 -1
  182. package/dist/esm/p-datepicker.entry.js +434 -1475
  183. package/dist/esm/p-datepicker.entry.js.map +1 -1
  184. package/dist/esm/p-divider.entry.js +1 -1
  185. package/dist/esm/p-drawer-body_3.entry.js +1 -1
  186. package/dist/esm/p-drawer.entry.js +1 -1
  187. package/dist/esm/p-dropdown-menu-container.entry.js +2 -2
  188. package/dist/esm/p-dropdown_2.entry.js +3 -3
  189. package/dist/esm/p-helper_3.entry.js +3 -3
  190. package/dist/esm/p-illustration_6.entry.js +1 -1
  191. package/dist/esm/p-info-panel.entry.js +1 -1
  192. package/dist/esm/p-label_3.entry.js +1 -1
  193. package/dist/esm/p-layout.entry.js +1 -1
  194. package/dist/esm/p-modal-body_4.entry.js +1 -1
  195. package/dist/esm/p-modal.entry.js +1 -1
  196. package/dist/esm/p-navbar.entry.js +1 -1
  197. package/dist/esm/p-navigation-item.entry.js +1 -1
  198. package/dist/esm/p-page-size-select_3.entry.js +1 -1
  199. package/dist/esm/p-profile.entry.js +1 -1
  200. package/dist/esm/p-select.entry.js +1 -1
  201. package/dist/esm/p-slider-indicator.entry.js +1 -1
  202. package/dist/esm/p-status.entry.js +1 -1
  203. package/dist/esm/p-stepper-item.entry.js +1 -1
  204. package/dist/esm/p-stepper-line.entry.js +1 -1
  205. package/dist/esm/p-stepper.entry.js +1 -1
  206. package/dist/esm/p-tab-group.entry.js +1 -1
  207. package/dist/esm/p-tab-item.entry.js +1 -1
  208. package/dist/esm/p-table-column.entry.js +1 -1
  209. package/dist/esm/p-table.entry.js +1 -1
  210. package/dist/esm/p-toast-container.entry.js +1 -1
  211. package/dist/esm/p-toast.entry.js +1 -1
  212. package/dist/esm/p-tooltip.entry.js +6 -4
  213. package/dist/esm/p-tooltip.entry.js.map +1 -1
  214. package/dist/esm/paperless.js +3 -3
  215. package/dist/esm/paperless.js.map +1 -1
  216. package/dist/index.html +1 -1
  217. package/dist/{build/p-e3f29ba8.entry.js → paperless/p-0410ec1e.entry.js} +2 -2
  218. package/dist/{build/p-756c06ec.entry.js → paperless/p-1d6b036c.entry.js} +2 -2
  219. package/dist/paperless/{p-58b52568.entry.js → p-1f55126f.entry.js} +2 -2
  220. package/dist/paperless/{p-b7b1de31.entry.js → p-322be6d8.entry.js} +2 -2
  221. package/dist/paperless/{p-5d118f66.entry.js → p-33b6520e.entry.js} +2 -2
  222. package/dist/paperless/{p-f07793f6.entry.js → p-3bd4c1c1.entry.js} +2 -2
  223. package/dist/paperless/{p-a3fcf8b6.entry.js → p-3d458d5a.entry.js} +2 -2
  224. package/dist/paperless/{p-0cb97c5e.entry.js → p-47e461b7.entry.js} +2 -2
  225. package/dist/paperless/{p-b13a0ee4.entry.js → p-49104ffe.entry.js} +2 -2
  226. package/dist/{build/p-a2bd1a79.entry.js → paperless/p-4939be3e.entry.js} +2 -2
  227. package/dist/{build/p-ac7b48ff.entry.js → paperless/p-4b99a4fe.entry.js} +2 -2
  228. package/dist/paperless/{p-464569dc.entry.js → p-5e5f3eaa.entry.js} +2 -2
  229. package/dist/paperless/{p-ea824ef3.entry.js → p-688264c9.entry.js} +2 -2
  230. package/dist/paperless/{p-d012d066.entry.js → p-6a7584cc.entry.js} +2 -2
  231. package/dist/paperless/p-6ccf5cdd.js +3 -0
  232. package/dist/paperless/p-6ccf5cdd.js.map +1 -0
  233. package/dist/paperless/{p-ebc2ae62.entry.js → p-733a0d79.entry.js} +2 -2
  234. package/dist/{build/p-ef2eee59.entry.js → paperless/p-7b16e066.entry.js} +2 -2
  235. package/dist/paperless/{p-45dfd940.entry.js → p-7e26a901.entry.js} +2 -2
  236. package/dist/paperless/{p-cccc37c0.entry.js → p-81a99f72.entry.js} +2 -2
  237. package/dist/{build/p-6f82a1e7.entry.js → paperless/p-8569fa3c.entry.js} +2 -2
  238. package/dist/{build/p-c87da93e.entry.js → paperless/p-86b47461.entry.js} +2 -2
  239. package/dist/paperless/p-89f5e9c9.entry.js +2 -0
  240. package/dist/paperless/p-89f5e9c9.entry.js.map +1 -0
  241. package/dist/paperless/{p-1b5292a3.entry.js → p-8f453ef2.entry.js} +2 -2
  242. package/dist/{build/p-57411b2b.entry.js → paperless/p-a0790d7b.entry.js} +2 -2
  243. package/dist/paperless/{p-31afbb45.entry.js → p-a233bac3.entry.js} +2 -2
  244. package/dist/{build/p-5a31cb9e.entry.js → paperless/p-a751f1a4.entry.js} +2 -2
  245. package/dist/paperless/p-ae248aef.js +2 -0
  246. package/dist/paperless/p-ae248aef.js.map +1 -0
  247. package/dist/paperless/{p-3d8b5cc4.entry.js → p-af38f227.entry.js} +2 -2
  248. package/dist/{build/p-93fb216c.entry.js → paperless/p-af92e53c.entry.js} +2 -2
  249. package/dist/paperless/{p-7b94bc6a.entry.js → p-b5b591c7.entry.js} +2 -2
  250. package/dist/{build/p-78948e08.entry.js → paperless/p-b62e6ab2.entry.js} +2 -2
  251. package/dist/{build/p-5236b565.entry.js → paperless/p-c6d9e720.entry.js} +2 -2
  252. package/dist/{build/p-f34ed23f.entry.js → paperless/p-c942022f.entry.js} +2 -2
  253. package/dist/paperless/p-c942022f.entry.js.map +1 -0
  254. package/dist/paperless/{p-ebd4ba56.entry.js → p-ca2abe98.entry.js} +2 -2
  255. package/dist/paperless/{p-b0eeab26.entry.js → p-cfd0a2bb.entry.js} +2 -2
  256. package/dist/paperless/{p-10ad607e.entry.js → p-e8a815d7.entry.js} +2 -2
  257. package/dist/paperless/{p-036a82fc.entry.js → p-e9dc7598.entry.js} +2 -2
  258. package/dist/paperless/p-e9dc7598.entry.js.map +1 -0
  259. package/dist/paperless/{p-e0d7a4ee.entry.js → p-efdeae92.entry.js} +2 -2
  260. package/dist/{build/p-8fb43cc7.entry.js → paperless/p-f215bf8c.entry.js} +2 -2
  261. package/dist/paperless/{p-c6ef7b79.entry.js → p-f3207ec2.entry.js} +2 -2
  262. package/dist/paperless/{p-0a3f2fe8.entry.js → p-f429073e.entry.js} +2 -2
  263. package/dist/paperless/{p-dc01e9eb.entry.js → p-f59afce6.entry.js} +2 -2
  264. package/dist/{build/p-471be252.entry.js → paperless/p-f695dc3c.entry.js} +2 -2
  265. package/dist/paperless/{p-78ce77d2.entry.js → p-f9aaa75c.entry.js} +2 -2
  266. package/dist/paperless/p-fef32402.js +2 -0
  267. package/dist/paperless/p-fef32402.js.map +1 -0
  268. package/dist/paperless/paperless.css +1 -1
  269. package/dist/paperless/paperless.esm.js +1 -1
  270. package/dist/paperless/paperless.esm.js.map +1 -1
  271. package/dist/sw.js +1 -1
  272. package/dist/sw.js.map +1 -1
  273. package/dist/types/stencil-public-runtime.d.ts +1 -0
  274. package/hydrate/index.js +583 -1785
  275. package/package.json +6 -6
  276. package/dist/build/p-036a82fc.entry.js.map +0 -1
  277. package/dist/build/p-07c853db.entry.js +0 -2
  278. package/dist/build/p-07c853db.entry.js.map +0 -1
  279. package/dist/build/p-ac1af618.js +0 -3
  280. package/dist/build/p-ac1af618.js.map +0 -1
  281. package/dist/build/p-b273ac6d.js +0 -2
  282. package/dist/build/p-b273ac6d.js.map +0 -1
  283. package/dist/build/p-e621e34c.js +0 -2
  284. package/dist/build/p-e621e34c.js.map +0 -1
  285. package/dist/build/p-f34ed23f.entry.js.map +0 -1
  286. package/dist/cjs/index-040ec3f9.js.map +0 -1
  287. package/dist/cjs/index-13ea09e0.js.map +0 -1
  288. package/dist/esm/floating-ui.dom.esm-82b72251.js.map +0 -1
  289. package/dist/esm/index-340e085c.js.map +0 -1
  290. package/dist/esm/index-94339e77.js.map +0 -1
  291. package/dist/paperless/p-036a82fc.entry.js.map +0 -1
  292. package/dist/paperless/p-07c853db.entry.js +0 -2
  293. package/dist/paperless/p-07c853db.entry.js.map +0 -1
  294. package/dist/paperless/p-ac1af618.js +0 -3
  295. package/dist/paperless/p-ac1af618.js.map +0 -1
  296. package/dist/paperless/p-b273ac6d.js +0 -2
  297. package/dist/paperless/p-b273ac6d.js.map +0 -1
  298. package/dist/paperless/p-e621e34c.js +0 -2
  299. package/dist/paperless/p-e621e34c.js.map +0 -1
  300. package/dist/paperless/p-f34ed23f.entry.js.map +0 -1
  301. /package/dist/build/{p-e3f29ba8.entry.js.map → p-0410ec1e.entry.js.map} +0 -0
  302. /package/dist/build/{p-756c06ec.entry.js.map → p-1d6b036c.entry.js.map} +0 -0
  303. /package/dist/build/{p-58b52568.entry.js.map → p-1f55126f.entry.js.map} +0 -0
  304. /package/dist/build/{p-b7b1de31.entry.js.map → p-322be6d8.entry.js.map} +0 -0
  305. /package/dist/build/{p-5d118f66.entry.js.map → p-33b6520e.entry.js.map} +0 -0
  306. /package/dist/build/{p-f07793f6.entry.js.map → p-3bd4c1c1.entry.js.map} +0 -0
  307. /package/dist/build/{p-a3fcf8b6.entry.js.map → p-3d458d5a.entry.js.map} +0 -0
  308. /package/dist/build/{p-0cb97c5e.entry.js.map → p-47e461b7.entry.js.map} +0 -0
  309. /package/dist/build/{p-b13a0ee4.entry.js.map → p-49104ffe.entry.js.map} +0 -0
  310. /package/dist/build/{p-a2bd1a79.entry.js.map → p-4939be3e.entry.js.map} +0 -0
  311. /package/dist/build/{p-ac7b48ff.entry.js.map → p-4b99a4fe.entry.js.map} +0 -0
  312. /package/dist/build/{p-464569dc.entry.js.map → p-5e5f3eaa.entry.js.map} +0 -0
  313. /package/dist/build/{p-ea824ef3.entry.js.map → p-688264c9.entry.js.map} +0 -0
  314. /package/dist/build/{p-d012d066.entry.js.map → p-6a7584cc.entry.js.map} +0 -0
  315. /package/dist/build/{p-ebc2ae62.entry.js.map → p-733a0d79.entry.js.map} +0 -0
  316. /package/dist/build/{p-ef2eee59.entry.js.map → p-7b16e066.entry.js.map} +0 -0
  317. /package/dist/build/{p-45dfd940.entry.js.map → p-7e26a901.entry.js.map} +0 -0
  318. /package/dist/build/{p-cccc37c0.entry.js.map → p-81a99f72.entry.js.map} +0 -0
  319. /package/dist/build/{p-6f82a1e7.entry.js.map → p-8569fa3c.entry.js.map} +0 -0
  320. /package/dist/build/{p-c87da93e.entry.js.map → p-86b47461.entry.js.map} +0 -0
  321. /package/dist/build/{p-1b5292a3.entry.js.map → p-8f453ef2.entry.js.map} +0 -0
  322. /package/dist/build/{p-57411b2b.entry.js.map → p-a0790d7b.entry.js.map} +0 -0
  323. /package/dist/build/{p-31afbb45.entry.js.map → p-a233bac3.entry.js.map} +0 -0
  324. /package/dist/build/{p-5a31cb9e.entry.js.map → p-a751f1a4.entry.js.map} +0 -0
  325. /package/dist/build/{p-3d8b5cc4.entry.js.map → p-af38f227.entry.js.map} +0 -0
  326. /package/dist/build/{p-93fb216c.entry.js.map → p-af92e53c.entry.js.map} +0 -0
  327. /package/dist/build/{p-7b94bc6a.entry.js.map → p-b5b591c7.entry.js.map} +0 -0
  328. /package/dist/build/{p-78948e08.entry.js.map → p-b62e6ab2.entry.js.map} +0 -0
  329. /package/dist/build/{p-5236b565.entry.js.map → p-c6d9e720.entry.js.map} +0 -0
  330. /package/dist/build/{p-ebd4ba56.entry.js.map → p-ca2abe98.entry.js.map} +0 -0
  331. /package/dist/build/{p-b0eeab26.entry.js.map → p-cfd0a2bb.entry.js.map} +0 -0
  332. /package/dist/build/{p-10ad607e.entry.js.map → p-e8a815d7.entry.js.map} +0 -0
  333. /package/dist/build/{p-e0d7a4ee.entry.js.map → p-efdeae92.entry.js.map} +0 -0
  334. /package/dist/build/{p-8fb43cc7.entry.js.map → p-f215bf8c.entry.js.map} +0 -0
  335. /package/dist/build/{p-c6ef7b79.entry.js.map → p-f3207ec2.entry.js.map} +0 -0
  336. /package/dist/build/{p-0a3f2fe8.entry.js.map → p-f429073e.entry.js.map} +0 -0
  337. /package/dist/build/{p-dc01e9eb.entry.js.map → p-f59afce6.entry.js.map} +0 -0
  338. /package/dist/build/{p-471be252.entry.js.map → p-f695dc3c.entry.js.map} +0 -0
  339. /package/dist/build/{p-78ce77d2.entry.js.map → p-f9aaa75c.entry.js.map} +0 -0
  340. /package/dist/paperless/{p-e3f29ba8.entry.js.map → p-0410ec1e.entry.js.map} +0 -0
  341. /package/dist/paperless/{p-756c06ec.entry.js.map → p-1d6b036c.entry.js.map} +0 -0
  342. /package/dist/paperless/{p-58b52568.entry.js.map → p-1f55126f.entry.js.map} +0 -0
  343. /package/dist/paperless/{p-b7b1de31.entry.js.map → p-322be6d8.entry.js.map} +0 -0
  344. /package/dist/paperless/{p-5d118f66.entry.js.map → p-33b6520e.entry.js.map} +0 -0
  345. /package/dist/paperless/{p-f07793f6.entry.js.map → p-3bd4c1c1.entry.js.map} +0 -0
  346. /package/dist/paperless/{p-a3fcf8b6.entry.js.map → p-3d458d5a.entry.js.map} +0 -0
  347. /package/dist/paperless/{p-0cb97c5e.entry.js.map → p-47e461b7.entry.js.map} +0 -0
  348. /package/dist/paperless/{p-b13a0ee4.entry.js.map → p-49104ffe.entry.js.map} +0 -0
  349. /package/dist/paperless/{p-a2bd1a79.entry.js.map → p-4939be3e.entry.js.map} +0 -0
  350. /package/dist/paperless/{p-ac7b48ff.entry.js.map → p-4b99a4fe.entry.js.map} +0 -0
  351. /package/dist/paperless/{p-464569dc.entry.js.map → p-5e5f3eaa.entry.js.map} +0 -0
  352. /package/dist/paperless/{p-ea824ef3.entry.js.map → p-688264c9.entry.js.map} +0 -0
  353. /package/dist/paperless/{p-d012d066.entry.js.map → p-6a7584cc.entry.js.map} +0 -0
  354. /package/dist/paperless/{p-ebc2ae62.entry.js.map → p-733a0d79.entry.js.map} +0 -0
  355. /package/dist/paperless/{p-ef2eee59.entry.js.map → p-7b16e066.entry.js.map} +0 -0
  356. /package/dist/paperless/{p-45dfd940.entry.js.map → p-7e26a901.entry.js.map} +0 -0
  357. /package/dist/paperless/{p-cccc37c0.entry.js.map → p-81a99f72.entry.js.map} +0 -0
  358. /package/dist/paperless/{p-6f82a1e7.entry.js.map → p-8569fa3c.entry.js.map} +0 -0
  359. /package/dist/paperless/{p-c87da93e.entry.js.map → p-86b47461.entry.js.map} +0 -0
  360. /package/dist/paperless/{p-1b5292a3.entry.js.map → p-8f453ef2.entry.js.map} +0 -0
  361. /package/dist/paperless/{p-57411b2b.entry.js.map → p-a0790d7b.entry.js.map} +0 -0
  362. /package/dist/paperless/{p-31afbb45.entry.js.map → p-a233bac3.entry.js.map} +0 -0
  363. /package/dist/paperless/{p-5a31cb9e.entry.js.map → p-a751f1a4.entry.js.map} +0 -0
  364. /package/dist/paperless/{p-3d8b5cc4.entry.js.map → p-af38f227.entry.js.map} +0 -0
  365. /package/dist/paperless/{p-93fb216c.entry.js.map → p-af92e53c.entry.js.map} +0 -0
  366. /package/dist/paperless/{p-7b94bc6a.entry.js.map → p-b5b591c7.entry.js.map} +0 -0
  367. /package/dist/paperless/{p-78948e08.entry.js.map → p-b62e6ab2.entry.js.map} +0 -0
  368. /package/dist/paperless/{p-5236b565.entry.js.map → p-c6d9e720.entry.js.map} +0 -0
  369. /package/dist/paperless/{p-ebd4ba56.entry.js.map → p-ca2abe98.entry.js.map} +0 -0
  370. /package/dist/paperless/{p-b0eeab26.entry.js.map → p-cfd0a2bb.entry.js.map} +0 -0
  371. /package/dist/paperless/{p-10ad607e.entry.js.map → p-e8a815d7.entry.js.map} +0 -0
  372. /package/dist/paperless/{p-e0d7a4ee.entry.js.map → p-efdeae92.entry.js.map} +0 -0
  373. /package/dist/paperless/{p-8fb43cc7.entry.js.map → p-f215bf8c.entry.js.map} +0 -0
  374. /package/dist/paperless/{p-c6ef7b79.entry.js.map → p-f3207ec2.entry.js.map} +0 -0
  375. /package/dist/paperless/{p-0a3f2fe8.entry.js.map → p-f429073e.entry.js.map} +0 -0
  376. /package/dist/paperless/{p-dc01e9eb.entry.js.map → p-f59afce6.entry.js.map} +0 -0
  377. /package/dist/paperless/{p-471be252.entry.js.map → p-f695dc3c.entry.js.map} +0 -0
  378. /package/dist/paperless/{p-78ce77d2.entry.js.map → p-f9aaa75c.entry.js.map} +0 -0
@@ -1,16 +1,23 @@
1
1
  'use strict';
2
2
 
3
+ function _typeof(obj) {
4
+ "@babel/helpers - typeof";
5
+
6
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
7
+ return typeof obj;
8
+ } : function (obj) {
9
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
10
+ }, _typeof(obj);
11
+ }
12
+
3
13
  function toInteger(dirtyNumber) {
4
14
  if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
5
15
  return NaN;
6
16
  }
7
-
8
17
  var number = Number(dirtyNumber);
9
-
10
18
  if (isNaN(number)) {
11
19
  return number;
12
20
  }
13
-
14
21
  return number < 0 ? Math.ceil(number) : Math.floor(number);
15
22
  }
16
23
 
@@ -20,7 +27,6 @@ function requiredArgs(required, args) {
20
27
  }
21
28
  }
22
29
 
23
- function _typeof$1(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$1 = function _typeof(obj) { return typeof obj; }; } else { _typeof$1 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$1(obj); }
24
30
  /**
25
31
  * @name toDate
26
32
  * @category Common Helpers
@@ -51,12 +57,12 @@ function _typeof$1(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "func
51
57
  * const result = toDate(1392098430000)
52
58
  * //=> Tue Feb 11 2014 11:30:30
53
59
  */
54
-
55
60
  function toDate(argument) {
56
61
  requiredArgs(1, arguments);
57
- var argStr = Object.prototype.toString.call(argument); // Clone the date
62
+ var argStr = Object.prototype.toString.call(argument);
58
63
 
59
- if (argument instanceof Date || _typeof$1(argument) === 'object' && argStr === '[object Date]') {
64
+ // Clone the date
65
+ if (argument instanceof Date || _typeof(argument) === 'object' && argStr === '[object Date]') {
60
66
  // Prevent the date to lose the milliseconds when passed to new Date() in IE10
61
67
  return new Date(argument.getTime());
62
68
  } else if (typeof argument === 'number' || argStr === '[object Number]') {
@@ -64,11 +70,10 @@ function toDate(argument) {
64
70
  } else {
65
71
  if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {
66
72
  // eslint-disable-next-line no-console
67
- console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"); // eslint-disable-next-line no-console
68
-
73
+ console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments");
74
+ // eslint-disable-next-line no-console
69
75
  console.warn(new Error().stack);
70
76
  }
71
-
72
77
  return new Date(NaN);
73
78
  }
74
79
  }
@@ -91,7 +96,6 @@ function toDate(argument) {
91
96
  * const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
92
97
  * //=> Thu Jul 10 2014 12:45:30.750
93
98
  */
94
-
95
99
  function addMilliseconds(dirtyDate, dirtyAmount) {
96
100
  requiredArgs(2, arguments);
97
101
  var timestamp = toDate(dirtyDate).getTime();
@@ -139,7 +143,6 @@ function getTimezoneOffsetInMilliseconds(date) {
139
143
  * const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))
140
144
  * //=> Tue Sep 02 2014 00:00:00
141
145
  */
142
-
143
146
  function startOfDay(dirtyDate) {
144
147
  requiredArgs(1, arguments);
145
148
  var date = toDate(dirtyDate);
@@ -175,7 +178,6 @@ function startOfDay(dirtyDate) {
175
178
  * const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4))
176
179
  * //=> false
177
180
  */
178
-
179
181
  function isSameDay(dirtyDateLeft, dirtyDateRight) {
180
182
  requiredArgs(2, arguments);
181
183
  var dateLeftStartOfDay = startOfDay(dirtyDateLeft);
@@ -183,7 +185,6 @@ function isSameDay(dirtyDateLeft, dirtyDateRight) {
183
185
  return dateLeftStartOfDay.getTime() === dateRightStartOfDay.getTime();
184
186
  }
185
187
 
186
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
187
188
  /**
188
189
  * @name isDate
189
190
  * @category Common Helpers
@@ -216,7 +217,6 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
216
217
  * const result = isDate({})
217
218
  * //=> false
218
219
  */
219
-
220
220
  function isDate(value) {
221
221
  requiredArgs(1, arguments);
222
222
  return value instanceof Date || _typeof(value) === 'object' && Object.prototype.toString.call(value) === '[object Date]';
@@ -253,14 +253,11 @@ function isDate(value) {
253
253
  * const result = isValid(new Date(''))
254
254
  * //=> false
255
255
  */
256
-
257
256
  function isValid(dirtyDate) {
258
257
  requiredArgs(1, arguments);
259
-
260
258
  if (!isDate(dirtyDate) && typeof dirtyDate !== 'number') {
261
259
  return false;
262
260
  }
263
-
264
261
  var date = toDate(dirtyDate);
265
262
  return !isNaN(Number(date));
266
263
  }
@@ -283,7 +280,6 @@ function isValid(dirtyDate) {
283
280
  * const result = subMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
284
281
  * //=> Thu Jul 10 2014 12:45:29.250
285
282
  */
286
-
287
283
  function subMilliseconds(dirtyDate, dirtyAmount) {
288
284
  requiredArgs(2, arguments);
289
285
  var amount = toInteger(dirtyAmount);
@@ -325,7 +321,6 @@ function getUTCISOWeekYear(dirtyDate) {
325
321
  fourthOfJanuaryOfThisYear.setUTCFullYear(year, 0, 4);
326
322
  fourthOfJanuaryOfThisYear.setUTCHours(0, 0, 0, 0);
327
323
  var startOfThisYear = startOfUTCISOWeek(fourthOfJanuaryOfThisYear);
328
-
329
324
  if (date.getTime() >= startOfNextYear.getTime()) {
330
325
  return year + 1;
331
326
  } else if (date.getTime() >= startOfThisYear.getTime()) {
@@ -349,24 +344,24 @@ var MILLISECONDS_IN_WEEK$1 = 604800000;
349
344
  function getUTCISOWeek(dirtyDate) {
350
345
  requiredArgs(1, arguments);
351
346
  var date = toDate(dirtyDate);
352
- var diff = startOfUTCISOWeek(date).getTime() - startOfUTCISOWeekYear(date).getTime(); // Round the number of days to the nearest integer
347
+ var diff = startOfUTCISOWeek(date).getTime() - startOfUTCISOWeekYear(date).getTime();
348
+
349
+ // Round the number of days to the nearest integer
353
350
  // because the number of milliseconds in a week is not constant
354
351
  // (e.g. it's different in the week of the daylight saving time clock shift)
355
-
356
352
  return Math.round(diff / MILLISECONDS_IN_WEEK$1) + 1;
357
353
  }
358
354
 
359
355
  function startOfUTCWeek(dirtyDate, options) {
360
356
  var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
361
-
362
357
  requiredArgs(1, arguments);
363
358
  var defaultOptions = getDefaultOptions();
364
- var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
359
+ var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0);
365
360
 
361
+ // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
366
362
  if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
367
363
  throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
368
364
  }
369
-
370
365
  var date = toDate(dirtyDate);
371
366
  var day = date.getUTCDay();
372
367
  var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
@@ -377,17 +372,16 @@ function startOfUTCWeek(dirtyDate, options) {
377
372
 
378
373
  function getUTCWeekYear(dirtyDate, options) {
379
374
  var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
380
-
381
375
  requiredArgs(1, arguments);
382
376
  var date = toDate(dirtyDate);
383
377
  var year = date.getUTCFullYear();
384
378
  var defaultOptions = getDefaultOptions();
385
- var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
379
+ var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1);
386
380
 
381
+ // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
387
382
  if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
388
383
  throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
389
384
  }
390
-
391
385
  var firstWeekOfNextYear = new Date(0);
392
386
  firstWeekOfNextYear.setUTCFullYear(year + 1, 0, firstWeekContainsDate);
393
387
  firstWeekOfNextYear.setUTCHours(0, 0, 0, 0);
@@ -396,7 +390,6 @@ function getUTCWeekYear(dirtyDate, options) {
396
390
  firstWeekOfThisYear.setUTCFullYear(year, 0, firstWeekContainsDate);
397
391
  firstWeekOfThisYear.setUTCHours(0, 0, 0, 0);
398
392
  var startOfThisYear = startOfUTCWeek(firstWeekOfThisYear, options);
399
-
400
393
  if (date.getTime() >= startOfNextYear.getTime()) {
401
394
  return year + 1;
402
395
  } else if (date.getTime() >= startOfThisYear.getTime()) {
@@ -408,7 +401,6 @@ function getUTCWeekYear(dirtyDate, options) {
408
401
 
409
402
  function startOfUTCWeekYear(dirtyDate, options) {
410
403
  var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
411
-
412
404
  requiredArgs(1, arguments);
413
405
  var defaultOptions = getDefaultOptions();
414
406
  var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1);
@@ -424,21 +416,20 @@ var MILLISECONDS_IN_WEEK = 604800000;
424
416
  function getUTCWeek(dirtyDate, options) {
425
417
  requiredArgs(1, arguments);
426
418
  var date = toDate(dirtyDate);
427
- var diff = startOfUTCWeek(date, options).getTime() - startOfUTCWeekYear(date, options).getTime(); // Round the number of days to the nearest integer
419
+ var diff = startOfUTCWeek(date, options).getTime() - startOfUTCWeekYear(date, options).getTime();
420
+
421
+ // Round the number of days to the nearest integer
428
422
  // because the number of milliseconds in a week is not constant
429
423
  // (e.g. it's different in the week of the daylight saving time clock shift)
430
-
431
424
  return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;
432
425
  }
433
426
 
434
427
  function addLeadingZeros(number, targetLength) {
435
428
  var sign = number < 0 ? '-' : '';
436
429
  var output = Math.abs(number).toString();
437
-
438
430
  while (output.length < targetLength) {
439
431
  output = '0' + output;
440
432
  }
441
-
442
433
  return sign + output;
443
434
  }
444
435
 
@@ -454,7 +445,6 @@ function addLeadingZeros(number, targetLength) {
454
445
  *
455
446
  * Letters marked by * are not implemented but reserved by Unicode standard.
456
447
  */
457
-
458
448
  var formatters$1 = {
459
449
  // Year
460
450
  y: function y(date, token) {
@@ -466,8 +456,9 @@ var formatters$1 = {
466
456
  // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
467
457
  // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
468
458
  // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
469
- var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)
470
459
 
460
+ var signedYear = date.getUTCFullYear();
461
+ // Returns 1 for 1 BC (which is year 0 in JavaScript)
471
462
  var year = signedYear > 0 ? signedYear : 1 - signedYear;
472
463
  return addLeadingZeros(token === 'yy' ? year % 100 : year, token.length);
473
464
  },
@@ -483,18 +474,14 @@ var formatters$1 = {
483
474
  // AM or PM
484
475
  a: function a(date, token) {
485
476
  var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am';
486
-
487
477
  switch (token) {
488
478
  case 'a':
489
479
  case 'aa':
490
480
  return dayPeriodEnumValue.toUpperCase();
491
-
492
481
  case 'aaa':
493
482
  return dayPeriodEnumValue;
494
-
495
483
  case 'aaaaa':
496
484
  return dayPeriodEnumValue[0];
497
-
498
485
  case 'aaaa':
499
486
  default:
500
487
  return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.';
@@ -535,7 +522,6 @@ var dayPeriodEnum = {
535
522
  evening: 'evening',
536
523
  night: 'night'
537
524
  };
538
-
539
525
  /*
540
526
  * | | Unit | | Unit |
541
527
  * |-----|--------------------------------|-----|--------------------------------|
@@ -581,11 +567,11 @@ var dayPeriodEnum = {
581
567
  * - `P` is long localized date format
582
568
  * - `p` is long localized time format
583
569
  */
570
+
584
571
  var formatters = {
585
572
  // Era
586
573
  G: function G(date, token, localize) {
587
574
  var era = date.getUTCFullYear() > 0 ? 1 : 0;
588
-
589
575
  switch (token) {
590
576
  // AD, BC
591
577
  case 'G':
@@ -595,13 +581,11 @@ var formatters = {
595
581
  width: 'abbreviated'
596
582
  });
597
583
  // A, B
598
-
599
584
  case 'GGGGG':
600
585
  return localize.era(era, {
601
586
  width: 'narrow'
602
587
  });
603
588
  // Anno Domini, Before Christ
604
-
605
589
  case 'GGGG':
606
590
  default:
607
591
  return localize.era(era, {
@@ -613,41 +597,42 @@ var formatters = {
613
597
  y: function y(date, token, localize) {
614
598
  // Ordinal number
615
599
  if (token === 'yo') {
616
- var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)
617
-
600
+ var signedYear = date.getUTCFullYear();
601
+ // Returns 1 for 1 BC (which is year 0 in JavaScript)
618
602
  var year = signedYear > 0 ? signedYear : 1 - signedYear;
619
603
  return localize.ordinalNumber(year, {
620
604
  unit: 'year'
621
605
  });
622
606
  }
623
-
624
607
  return formatters$1.y(date, token);
625
608
  },
626
609
  // Local week-numbering year
627
610
  Y: function Y(date, token, localize, options) {
628
- var signedWeekYear = getUTCWeekYear(date, options); // Returns 1 for 1 BC (which is year 0 in JavaScript)
629
-
630
- var weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear; // Two digit year
611
+ var signedWeekYear = getUTCWeekYear(date, options);
612
+ // Returns 1 for 1 BC (which is year 0 in JavaScript)
613
+ var weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear;
631
614
 
615
+ // Two digit year
632
616
  if (token === 'YY') {
633
617
  var twoDigitYear = weekYear % 100;
634
618
  return addLeadingZeros(twoDigitYear, 2);
635
- } // Ordinal number
636
-
619
+ }
637
620
 
621
+ // Ordinal number
638
622
  if (token === 'Yo') {
639
623
  return localize.ordinalNumber(weekYear, {
640
624
  unit: 'year'
641
625
  });
642
- } // Padding
643
-
626
+ }
644
627
 
628
+ // Padding
645
629
  return addLeadingZeros(weekYear, token.length);
646
630
  },
647
631
  // ISO week-numbering year
648
632
  R: function R(date, token) {
649
- var isoWeekYear = getUTCISOWeekYear(date); // Padding
633
+ var isoWeekYear = getUTCISOWeekYear(date);
650
634
 
635
+ // Padding
651
636
  return addLeadingZeros(isoWeekYear, token.length);
652
637
  },
653
638
  // Extended year. This is a single number designating the year of this calendar system.
@@ -666,37 +651,31 @@ var formatters = {
666
651
  // Quarter
667
652
  Q: function Q(date, token, localize) {
668
653
  var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);
669
-
670
654
  switch (token) {
671
655
  // 1, 2, 3, 4
672
656
  case 'Q':
673
657
  return String(quarter);
674
658
  // 01, 02, 03, 04
675
-
676
659
  case 'QQ':
677
660
  return addLeadingZeros(quarter, 2);
678
661
  // 1st, 2nd, 3rd, 4th
679
-
680
662
  case 'Qo':
681
663
  return localize.ordinalNumber(quarter, {
682
664
  unit: 'quarter'
683
665
  });
684
666
  // Q1, Q2, Q3, Q4
685
-
686
667
  case 'QQQ':
687
668
  return localize.quarter(quarter, {
688
669
  width: 'abbreviated',
689
670
  context: 'formatting'
690
671
  });
691
672
  // 1, 2, 3, 4 (narrow quarter; could be not numerical)
692
-
693
673
  case 'QQQQQ':
694
674
  return localize.quarter(quarter, {
695
675
  width: 'narrow',
696
676
  context: 'formatting'
697
677
  });
698
678
  // 1st quarter, 2nd quarter, ...
699
-
700
679
  case 'QQQQ':
701
680
  default:
702
681
  return localize.quarter(quarter, {
@@ -708,37 +687,31 @@ var formatters = {
708
687
  // Stand-alone quarter
709
688
  q: function q(date, token, localize) {
710
689
  var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);
711
-
712
690
  switch (token) {
713
691
  // 1, 2, 3, 4
714
692
  case 'q':
715
693
  return String(quarter);
716
694
  // 01, 02, 03, 04
717
-
718
695
  case 'qq':
719
696
  return addLeadingZeros(quarter, 2);
720
697
  // 1st, 2nd, 3rd, 4th
721
-
722
698
  case 'qo':
723
699
  return localize.ordinalNumber(quarter, {
724
700
  unit: 'quarter'
725
701
  });
726
702
  // Q1, Q2, Q3, Q4
727
-
728
703
  case 'qqq':
729
704
  return localize.quarter(quarter, {
730
705
  width: 'abbreviated',
731
706
  context: 'standalone'
732
707
  });
733
708
  // 1, 2, 3, 4 (narrow quarter; could be not numerical)
734
-
735
709
  case 'qqqqq':
736
710
  return localize.quarter(quarter, {
737
711
  width: 'narrow',
738
712
  context: 'standalone'
739
713
  });
740
714
  // 1st quarter, 2nd quarter, ...
741
-
742
715
  case 'qqqq':
743
716
  default:
744
717
  return localize.quarter(quarter, {
@@ -750,33 +723,28 @@ var formatters = {
750
723
  // Month
751
724
  M: function M(date, token, localize) {
752
725
  var month = date.getUTCMonth();
753
-
754
726
  switch (token) {
755
727
  case 'M':
756
728
  case 'MM':
757
729
  return formatters$1.M(date, token);
758
730
  // 1st, 2nd, ..., 12th
759
-
760
731
  case 'Mo':
761
732
  return localize.ordinalNumber(month + 1, {
762
733
  unit: 'month'
763
734
  });
764
735
  // Jan, Feb, ..., Dec
765
-
766
736
  case 'MMM':
767
737
  return localize.month(month, {
768
738
  width: 'abbreviated',
769
739
  context: 'formatting'
770
740
  });
771
741
  // J, F, ..., D
772
-
773
742
  case 'MMMMM':
774
743
  return localize.month(month, {
775
744
  width: 'narrow',
776
745
  context: 'formatting'
777
746
  });
778
747
  // January, February, ..., December
779
-
780
748
  case 'MMMM':
781
749
  default:
782
750
  return localize.month(month, {
@@ -788,37 +756,31 @@ var formatters = {
788
756
  // Stand-alone month
789
757
  L: function L(date, token, localize) {
790
758
  var month = date.getUTCMonth();
791
-
792
759
  switch (token) {
793
760
  // 1, 2, ..., 12
794
761
  case 'L':
795
762
  return String(month + 1);
796
763
  // 01, 02, ..., 12
797
-
798
764
  case 'LL':
799
765
  return addLeadingZeros(month + 1, 2);
800
766
  // 1st, 2nd, ..., 12th
801
-
802
767
  case 'Lo':
803
768
  return localize.ordinalNumber(month + 1, {
804
769
  unit: 'month'
805
770
  });
806
771
  // Jan, Feb, ..., Dec
807
-
808
772
  case 'LLL':
809
773
  return localize.month(month, {
810
774
  width: 'abbreviated',
811
775
  context: 'standalone'
812
776
  });
813
777
  // J, F, ..., D
814
-
815
778
  case 'LLLLL':
816
779
  return localize.month(month, {
817
780
  width: 'narrow',
818
781
  context: 'standalone'
819
782
  });
820
783
  // January, February, ..., December
821
-
822
784
  case 'LLLL':
823
785
  default:
824
786
  return localize.month(month, {
@@ -830,25 +792,21 @@ var formatters = {
830
792
  // Local week of year
831
793
  w: function w(date, token, localize, options) {
832
794
  var week = getUTCWeek(date, options);
833
-
834
795
  if (token === 'wo') {
835
796
  return localize.ordinalNumber(week, {
836
797
  unit: 'week'
837
798
  });
838
799
  }
839
-
840
800
  return addLeadingZeros(week, token.length);
841
801
  },
842
802
  // ISO week of year
843
803
  I: function I(date, token, localize) {
844
804
  var isoWeek = getUTCISOWeek(date);
845
-
846
805
  if (token === 'Io') {
847
806
  return localize.ordinalNumber(isoWeek, {
848
807
  unit: 'week'
849
808
  });
850
809
  }
851
-
852
810
  return addLeadingZeros(isoWeek, token.length);
853
811
  },
854
812
  // Day of the month
@@ -858,25 +816,21 @@ var formatters = {
858
816
  unit: 'date'
859
817
  });
860
818
  }
861
-
862
819
  return formatters$1.d(date, token);
863
820
  },
864
821
  // Day of year
865
822
  D: function D(date, token, localize) {
866
823
  var dayOfYear = getUTCDayOfYear(date);
867
-
868
824
  if (token === 'Do') {
869
825
  return localize.ordinalNumber(dayOfYear, {
870
826
  unit: 'dayOfYear'
871
827
  });
872
828
  }
873
-
874
829
  return addLeadingZeros(dayOfYear, token.length);
875
830
  },
876
831
  // Day of week
877
832
  E: function E(date, token, localize) {
878
833
  var dayOfWeek = date.getUTCDay();
879
-
880
834
  switch (token) {
881
835
  // Tue
882
836
  case 'E':
@@ -887,21 +841,18 @@ var formatters = {
887
841
  context: 'formatting'
888
842
  });
889
843
  // T
890
-
891
844
  case 'EEEEE':
892
845
  return localize.day(dayOfWeek, {
893
846
  width: 'narrow',
894
847
  context: 'formatting'
895
848
  });
896
849
  // Tu
897
-
898
850
  case 'EEEEEE':
899
851
  return localize.day(dayOfWeek, {
900
852
  width: 'short',
901
853
  context: 'formatting'
902
854
  });
903
855
  // Tuesday
904
-
905
856
  case 'EEEE':
906
857
  default:
907
858
  return localize.day(dayOfWeek, {
@@ -914,43 +865,36 @@ var formatters = {
914
865
  e: function e(date, token, localize, options) {
915
866
  var dayOfWeek = date.getUTCDay();
916
867
  var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
917
-
918
868
  switch (token) {
919
869
  // Numerical value (Nth day of week with current locale or weekStartsOn)
920
870
  case 'e':
921
871
  return String(localDayOfWeek);
922
872
  // Padded numerical value
923
-
924
873
  case 'ee':
925
874
  return addLeadingZeros(localDayOfWeek, 2);
926
875
  // 1st, 2nd, ..., 7th
927
-
928
876
  case 'eo':
929
877
  return localize.ordinalNumber(localDayOfWeek, {
930
878
  unit: 'day'
931
879
  });
932
-
933
880
  case 'eee':
934
881
  return localize.day(dayOfWeek, {
935
882
  width: 'abbreviated',
936
883
  context: 'formatting'
937
884
  });
938
885
  // T
939
-
940
886
  case 'eeeee':
941
887
  return localize.day(dayOfWeek, {
942
888
  width: 'narrow',
943
889
  context: 'formatting'
944
890
  });
945
891
  // Tu
946
-
947
892
  case 'eeeeee':
948
893
  return localize.day(dayOfWeek, {
949
894
  width: 'short',
950
895
  context: 'formatting'
951
896
  });
952
897
  // Tuesday
953
-
954
898
  case 'eeee':
955
899
  default:
956
900
  return localize.day(dayOfWeek, {
@@ -963,43 +907,36 @@ var formatters = {
963
907
  c: function c(date, token, localize, options) {
964
908
  var dayOfWeek = date.getUTCDay();
965
909
  var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
966
-
967
910
  switch (token) {
968
911
  // Numerical value (same as in `e`)
969
912
  case 'c':
970
913
  return String(localDayOfWeek);
971
914
  // Padded numerical value
972
-
973
915
  case 'cc':
974
916
  return addLeadingZeros(localDayOfWeek, token.length);
975
917
  // 1st, 2nd, ..., 7th
976
-
977
918
  case 'co':
978
919
  return localize.ordinalNumber(localDayOfWeek, {
979
920
  unit: 'day'
980
921
  });
981
-
982
922
  case 'ccc':
983
923
  return localize.day(dayOfWeek, {
984
924
  width: 'abbreviated',
985
925
  context: 'standalone'
986
926
  });
987
927
  // T
988
-
989
928
  case 'ccccc':
990
929
  return localize.day(dayOfWeek, {
991
930
  width: 'narrow',
992
931
  context: 'standalone'
993
932
  });
994
933
  // Tu
995
-
996
934
  case 'cccccc':
997
935
  return localize.day(dayOfWeek, {
998
936
  width: 'short',
999
937
  context: 'standalone'
1000
938
  });
1001
939
  // Tuesday
1002
-
1003
940
  case 'cccc':
1004
941
  default:
1005
942
  return localize.day(dayOfWeek, {
@@ -1012,44 +949,37 @@ var formatters = {
1012
949
  i: function i(date, token, localize) {
1013
950
  var dayOfWeek = date.getUTCDay();
1014
951
  var isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;
1015
-
1016
952
  switch (token) {
1017
953
  // 2
1018
954
  case 'i':
1019
955
  return String(isoDayOfWeek);
1020
956
  // 02
1021
-
1022
957
  case 'ii':
1023
958
  return addLeadingZeros(isoDayOfWeek, token.length);
1024
959
  // 2nd
1025
-
1026
960
  case 'io':
1027
961
  return localize.ordinalNumber(isoDayOfWeek, {
1028
962
  unit: 'day'
1029
963
  });
1030
964
  // Tue
1031
-
1032
965
  case 'iii':
1033
966
  return localize.day(dayOfWeek, {
1034
967
  width: 'abbreviated',
1035
968
  context: 'formatting'
1036
969
  });
1037
970
  // T
1038
-
1039
971
  case 'iiiii':
1040
972
  return localize.day(dayOfWeek, {
1041
973
  width: 'narrow',
1042
974
  context: 'formatting'
1043
975
  });
1044
976
  // Tu
1045
-
1046
977
  case 'iiiiii':
1047
978
  return localize.day(dayOfWeek, {
1048
979
  width: 'short',
1049
980
  context: 'formatting'
1050
981
  });
1051
982
  // Tuesday
1052
-
1053
983
  case 'iiii':
1054
984
  default:
1055
985
  return localize.day(dayOfWeek, {
@@ -1062,7 +992,6 @@ var formatters = {
1062
992
  a: function a(date, token, localize) {
1063
993
  var hours = date.getUTCHours();
1064
994
  var dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am';
1065
-
1066
995
  switch (token) {
1067
996
  case 'a':
1068
997
  case 'aa':
@@ -1070,19 +999,16 @@ var formatters = {
1070
999
  width: 'abbreviated',
1071
1000
  context: 'formatting'
1072
1001
  });
1073
-
1074
1002
  case 'aaa':
1075
1003
  return localize.dayPeriod(dayPeriodEnumValue, {
1076
1004
  width: 'abbreviated',
1077
1005
  context: 'formatting'
1078
1006
  }).toLowerCase();
1079
-
1080
1007
  case 'aaaaa':
1081
1008
  return localize.dayPeriod(dayPeriodEnumValue, {
1082
1009
  width: 'narrow',
1083
1010
  context: 'formatting'
1084
1011
  });
1085
-
1086
1012
  case 'aaaa':
1087
1013
  default:
1088
1014
  return localize.dayPeriod(dayPeriodEnumValue, {
@@ -1095,7 +1021,6 @@ var formatters = {
1095
1021
  b: function b(date, token, localize) {
1096
1022
  var hours = date.getUTCHours();
1097
1023
  var dayPeriodEnumValue;
1098
-
1099
1024
  if (hours === 12) {
1100
1025
  dayPeriodEnumValue = dayPeriodEnum.noon;
1101
1026
  } else if (hours === 0) {
@@ -1103,7 +1028,6 @@ var formatters = {
1103
1028
  } else {
1104
1029
  dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am';
1105
1030
  }
1106
-
1107
1031
  switch (token) {
1108
1032
  case 'b':
1109
1033
  case 'bb':
@@ -1111,19 +1035,16 @@ var formatters = {
1111
1035
  width: 'abbreviated',
1112
1036
  context: 'formatting'
1113
1037
  });
1114
-
1115
1038
  case 'bbb':
1116
1039
  return localize.dayPeriod(dayPeriodEnumValue, {
1117
1040
  width: 'abbreviated',
1118
1041
  context: 'formatting'
1119
1042
  }).toLowerCase();
1120
-
1121
1043
  case 'bbbbb':
1122
1044
  return localize.dayPeriod(dayPeriodEnumValue, {
1123
1045
  width: 'narrow',
1124
1046
  context: 'formatting'
1125
1047
  });
1126
-
1127
1048
  case 'bbbb':
1128
1049
  default:
1129
1050
  return localize.dayPeriod(dayPeriodEnumValue, {
@@ -1136,7 +1057,6 @@ var formatters = {
1136
1057
  B: function B(date, token, localize) {
1137
1058
  var hours = date.getUTCHours();
1138
1059
  var dayPeriodEnumValue;
1139
-
1140
1060
  if (hours >= 17) {
1141
1061
  dayPeriodEnumValue = dayPeriodEnum.evening;
1142
1062
  } else if (hours >= 12) {
@@ -1146,7 +1066,6 @@ var formatters = {
1146
1066
  } else {
1147
1067
  dayPeriodEnumValue = dayPeriodEnum.night;
1148
1068
  }
1149
-
1150
1069
  switch (token) {
1151
1070
  case 'B':
1152
1071
  case 'BB':
@@ -1155,13 +1074,11 @@ var formatters = {
1155
1074
  width: 'abbreviated',
1156
1075
  context: 'formatting'
1157
1076
  });
1158
-
1159
1077
  case 'BBBBB':
1160
1078
  return localize.dayPeriod(dayPeriodEnumValue, {
1161
1079
  width: 'narrow',
1162
1080
  context: 'formatting'
1163
1081
  });
1164
-
1165
1082
  case 'BBBB':
1166
1083
  default:
1167
1084
  return localize.dayPeriod(dayPeriodEnumValue, {
@@ -1179,7 +1096,6 @@ var formatters = {
1179
1096
  unit: 'hour'
1180
1097
  });
1181
1098
  }
1182
-
1183
1099
  return formatters$1.h(date, token);
1184
1100
  },
1185
1101
  // Hour [0-23]
@@ -1189,32 +1105,27 @@ var formatters = {
1189
1105
  unit: 'hour'
1190
1106
  });
1191
1107
  }
1192
-
1193
1108
  return formatters$1.H(date, token);
1194
1109
  },
1195
1110
  // Hour [0-11]
1196
1111
  K: function K(date, token, localize) {
1197
1112
  var hours = date.getUTCHours() % 12;
1198
-
1199
1113
  if (token === 'Ko') {
1200
1114
  return localize.ordinalNumber(hours, {
1201
1115
  unit: 'hour'
1202
1116
  });
1203
1117
  }
1204
-
1205
1118
  return addLeadingZeros(hours, token.length);
1206
1119
  },
1207
1120
  // Hour [1-24]
1208
1121
  k: function k(date, token, localize) {
1209
1122
  var hours = date.getUTCHours();
1210
1123
  if (hours === 0) hours = 24;
1211
-
1212
1124
  if (token === 'ko') {
1213
1125
  return localize.ordinalNumber(hours, {
1214
1126
  unit: 'hour'
1215
1127
  });
1216
1128
  }
1217
-
1218
1129
  return addLeadingZeros(hours, token.length);
1219
1130
  },
1220
1131
  // Minute
@@ -1224,7 +1135,6 @@ var formatters = {
1224
1135
  unit: 'minute'
1225
1136
  });
1226
1137
  }
1227
-
1228
1138
  return formatters$1.m(date, token);
1229
1139
  },
1230
1140
  // Second
@@ -1234,7 +1144,6 @@ var formatters = {
1234
1144
  unit: 'second'
1235
1145
  });
1236
1146
  }
1237
-
1238
1147
  return formatters$1.s(date, token);
1239
1148
  },
1240
1149
  // Fraction of second
@@ -1245,30 +1154,27 @@ var formatters = {
1245
1154
  X: function X(date, token, _localize, options) {
1246
1155
  var originalDate = options._originalDate || date;
1247
1156
  var timezoneOffset = originalDate.getTimezoneOffset();
1248
-
1249
1157
  if (timezoneOffset === 0) {
1250
1158
  return 'Z';
1251
1159
  }
1252
-
1253
1160
  switch (token) {
1254
1161
  // Hours and optional minutes
1255
1162
  case 'X':
1256
1163
  return formatTimezoneWithOptionalMinutes(timezoneOffset);
1164
+
1257
1165
  // Hours, minutes and optional seconds without `:` delimiter
1258
1166
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1259
1167
  // so this token always has the same output as `XX`
1260
-
1261
1168
  case 'XXXX':
1262
1169
  case 'XX':
1263
1170
  // Hours and minutes without `:` delimiter
1264
1171
  return formatTimezone(timezoneOffset);
1172
+
1265
1173
  // Hours, minutes and optional seconds with `:` delimiter
1266
1174
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1267
1175
  // so this token always has the same output as `XXX`
1268
-
1269
1176
  case 'XXXXX':
1270
1177
  case 'XXX': // Hours and minutes with `:` delimiter
1271
-
1272
1178
  default:
1273
1179
  return formatTimezone(timezoneOffset, ':');
1274
1180
  }
@@ -1277,26 +1183,24 @@ var formatters = {
1277
1183
  x: function x(date, token, _localize, options) {
1278
1184
  var originalDate = options._originalDate || date;
1279
1185
  var timezoneOffset = originalDate.getTimezoneOffset();
1280
-
1281
1186
  switch (token) {
1282
1187
  // Hours and optional minutes
1283
1188
  case 'x':
1284
1189
  return formatTimezoneWithOptionalMinutes(timezoneOffset);
1190
+
1285
1191
  // Hours, minutes and optional seconds without `:` delimiter
1286
1192
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1287
1193
  // so this token always has the same output as `xx`
1288
-
1289
1194
  case 'xxxx':
1290
1195
  case 'xx':
1291
1196
  // Hours and minutes without `:` delimiter
1292
1197
  return formatTimezone(timezoneOffset);
1198
+
1293
1199
  // Hours, minutes and optional seconds with `:` delimiter
1294
1200
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1295
1201
  // so this token always has the same output as `xxx`
1296
-
1297
1202
  case 'xxxxx':
1298
1203
  case 'xxx': // Hours and minutes with `:` delimiter
1299
-
1300
1204
  default:
1301
1205
  return formatTimezone(timezoneOffset, ':');
1302
1206
  }
@@ -1305,7 +1209,6 @@ var formatters = {
1305
1209
  O: function O(date, token, _localize, options) {
1306
1210
  var originalDate = options._originalDate || date;
1307
1211
  var timezoneOffset = originalDate.getTimezoneOffset();
1308
-
1309
1212
  switch (token) {
1310
1213
  // Short
1311
1214
  case 'O':
@@ -1313,7 +1216,6 @@ var formatters = {
1313
1216
  case 'OOO':
1314
1217
  return 'GMT' + formatTimezoneShort(timezoneOffset, ':');
1315
1218
  // Long
1316
-
1317
1219
  case 'OOOO':
1318
1220
  default:
1319
1221
  return 'GMT' + formatTimezone(timezoneOffset, ':');
@@ -1323,7 +1225,6 @@ var formatters = {
1323
1225
  z: function z(date, token, _localize, options) {
1324
1226
  var originalDate = options._originalDate || date;
1325
1227
  var timezoneOffset = originalDate.getTimezoneOffset();
1326
-
1327
1228
  switch (token) {
1328
1229
  // Short
1329
1230
  case 'z':
@@ -1331,7 +1232,6 @@ var formatters = {
1331
1232
  case 'zzz':
1332
1233
  return 'GMT' + formatTimezoneShort(timezoneOffset, ':');
1333
1234
  // Long
1334
-
1335
1235
  case 'zzzz':
1336
1236
  default:
1337
1237
  return 'GMT' + formatTimezone(timezoneOffset, ':');
@@ -1350,30 +1250,24 @@ var formatters = {
1350
1250
  return addLeadingZeros(timestamp, token.length);
1351
1251
  }
1352
1252
  };
1353
-
1354
1253
  function formatTimezoneShort(offset, dirtyDelimiter) {
1355
1254
  var sign = offset > 0 ? '-' : '+';
1356
1255
  var absOffset = Math.abs(offset);
1357
1256
  var hours = Math.floor(absOffset / 60);
1358
1257
  var minutes = absOffset % 60;
1359
-
1360
1258
  if (minutes === 0) {
1361
1259
  return sign + String(hours);
1362
1260
  }
1363
-
1364
1261
  var delimiter = dirtyDelimiter || '';
1365
1262
  return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2);
1366
1263
  }
1367
-
1368
1264
  function formatTimezoneWithOptionalMinutes(offset, dirtyDelimiter) {
1369
1265
  if (offset % 60 === 0) {
1370
1266
  var sign = offset > 0 ? '-' : '+';
1371
1267
  return sign + addLeadingZeros(Math.abs(offset) / 60, 2);
1372
1268
  }
1373
-
1374
1269
  return formatTimezone(offset, dirtyDelimiter);
1375
1270
  }
1376
-
1377
1271
  function formatTimezone(offset, dirtyDelimiter) {
1378
1272
  var delimiter = dirtyDelimiter || '';
1379
1273
  var sign = offset > 0 ? '-' : '+';
@@ -1389,17 +1283,14 @@ var dateLongFormatter = function dateLongFormatter(pattern, formatLong) {
1389
1283
  return formatLong.date({
1390
1284
  width: 'short'
1391
1285
  });
1392
-
1393
1286
  case 'PP':
1394
1287
  return formatLong.date({
1395
1288
  width: 'medium'
1396
1289
  });
1397
-
1398
1290
  case 'PPP':
1399
1291
  return formatLong.date({
1400
1292
  width: 'long'
1401
1293
  });
1402
-
1403
1294
  case 'PPPP':
1404
1295
  default:
1405
1296
  return formatLong.date({
@@ -1407,24 +1298,20 @@ var dateLongFormatter = function dateLongFormatter(pattern, formatLong) {
1407
1298
  });
1408
1299
  }
1409
1300
  };
1410
-
1411
1301
  var timeLongFormatter = function timeLongFormatter(pattern, formatLong) {
1412
1302
  switch (pattern) {
1413
1303
  case 'p':
1414
1304
  return formatLong.time({
1415
1305
  width: 'short'
1416
1306
  });
1417
-
1418
1307
  case 'pp':
1419
1308
  return formatLong.time({
1420
1309
  width: 'medium'
1421
1310
  });
1422
-
1423
1311
  case 'ppp':
1424
1312
  return formatLong.time({
1425
1313
  width: 'long'
1426
1314
  });
1427
-
1428
1315
  case 'pppp':
1429
1316
  default:
1430
1317
  return formatLong.time({
@@ -1432,37 +1319,30 @@ var timeLongFormatter = function timeLongFormatter(pattern, formatLong) {
1432
1319
  });
1433
1320
  }
1434
1321
  };
1435
-
1436
1322
  var dateTimeLongFormatter = function dateTimeLongFormatter(pattern, formatLong) {
1437
1323
  var matchResult = pattern.match(/(P+)(p+)?/) || [];
1438
1324
  var datePattern = matchResult[1];
1439
1325
  var timePattern = matchResult[2];
1440
-
1441
1326
  if (!timePattern) {
1442
1327
  return dateLongFormatter(pattern, formatLong);
1443
1328
  }
1444
-
1445
1329
  var dateTimeFormat;
1446
-
1447
1330
  switch (datePattern) {
1448
1331
  case 'P':
1449
1332
  dateTimeFormat = formatLong.dateTime({
1450
1333
  width: 'short'
1451
1334
  });
1452
1335
  break;
1453
-
1454
1336
  case 'PP':
1455
1337
  dateTimeFormat = formatLong.dateTime({
1456
1338
  width: 'medium'
1457
1339
  });
1458
1340
  break;
1459
-
1460
1341
  case 'PPP':
1461
1342
  dateTimeFormat = formatLong.dateTime({
1462
1343
  width: 'long'
1463
1344
  });
1464
1345
  break;
1465
-
1466
1346
  case 'PPPP':
1467
1347
  default:
1468
1348
  dateTimeFormat = formatLong.dateTime({
@@ -1470,10 +1350,8 @@ var dateTimeLongFormatter = function dateTimeLongFormatter(pattern, formatLong)
1470
1350
  });
1471
1351
  break;
1472
1352
  }
1473
-
1474
1353
  return dateTimeFormat.replace('{{date}}', dateLongFormatter(datePattern, formatLong)).replace('{{time}}', timeLongFormatter(timePattern, formatLong));
1475
1354
  };
1476
-
1477
1355
  var longFormatters = {
1478
1356
  p: timeLongFormatter,
1479
1357
  P: dateTimeLongFormatter
@@ -1562,11 +1440,9 @@ var formatDistanceLocale = {
1562
1440
  other: 'almost {{count}} years'
1563
1441
  }
1564
1442
  };
1565
-
1566
1443
  var formatDistance = function formatDistance(token, count, options) {
1567
1444
  var result;
1568
1445
  var tokenValue = formatDistanceLocale[token];
1569
-
1570
1446
  if (typeof tokenValue === 'string') {
1571
1447
  result = tokenValue;
1572
1448
  } else if (count === 1) {
@@ -1574,7 +1450,6 @@ var formatDistance = function formatDistance(token, count, options) {
1574
1450
  } else {
1575
1451
  result = tokenValue.other.replace('{{count}}', count.toString());
1576
1452
  }
1577
-
1578
1453
  if (options !== null && options !== void 0 && options.addSuffix) {
1579
1454
  if (options.comparison && options.comparison > 0) {
1580
1455
  return 'in ' + result;
@@ -1582,7 +1457,6 @@ var formatDistance = function formatDistance(token, count, options) {
1582
1457
  return result + ' ago';
1583
1458
  }
1584
1459
  }
1585
-
1586
1460
  return result;
1587
1461
  };
1588
1462
 
@@ -1637,7 +1511,6 @@ var formatRelativeLocale = {
1637
1511
  nextWeek: "eeee 'at' p",
1638
1512
  other: 'P'
1639
1513
  };
1640
-
1641
1514
  var formatRelative = function formatRelative(token, _date, _baseDate, _options) {
1642
1515
  return formatRelativeLocale[token];
1643
1516
  };
@@ -1646,21 +1519,17 @@ function buildLocalizeFn(args) {
1646
1519
  return function (dirtyIndex, options) {
1647
1520
  var context = options !== null && options !== void 0 && options.context ? String(options.context) : 'standalone';
1648
1521
  var valuesArray;
1649
-
1650
1522
  if (context === 'formatting' && args.formattingValues) {
1651
1523
  var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
1652
1524
  var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth;
1653
1525
  valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
1654
1526
  } else {
1655
1527
  var _defaultWidth = args.defaultWidth;
1656
-
1657
1528
  var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth;
1658
-
1659
1529
  valuesArray = args.values[_width] || args.values[_defaultWidth];
1660
1530
  }
1661
-
1662
- var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex; // @ts-ignore: For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!
1663
-
1531
+ var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex;
1532
+ // @ts-ignore: For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!
1664
1533
  return valuesArray[index];
1665
1534
  };
1666
1535
  }
@@ -1674,11 +1543,12 @@ var quarterValues = {
1674
1543
  narrow: ['1', '2', '3', '4'],
1675
1544
  abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],
1676
1545
  wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter']
1677
- }; // Note: in English, the names of days of the week and months are capitalized.
1546
+ };
1547
+
1548
+ // Note: in English, the names of days of the week and months are capitalized.
1678
1549
  // If you are making a new locale based on this one, check if the same is true for the language you're working on.
1679
1550
  // Generally, formatted dates should look like they are in the middle of a sentence,
1680
1551
  // e.g. in Spanish language the weekdays and months should be in the lowercase.
1681
-
1682
1552
  var monthValues = {
1683
1553
  narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],
1684
1554
  abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
@@ -1754,9 +1624,10 @@ var formattingDayPeriodValues = {
1754
1624
  night: 'at night'
1755
1625
  }
1756
1626
  };
1757
-
1758
1627
  var ordinalNumber = function ordinalNumber(dirtyNumber, _options) {
1759
- var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example,
1628
+ var number = Number(dirtyNumber);
1629
+
1630
+ // If ordinal numbers depend on context, for example,
1760
1631
  // if they are different for different grammatical genders,
1761
1632
  // use `options.unit`.
1762
1633
  //
@@ -1764,23 +1635,18 @@ var ordinalNumber = function ordinalNumber(dirtyNumber, _options) {
1764
1635
  // 'day', 'hour', 'minute', 'second'.
1765
1636
 
1766
1637
  var rem100 = number % 100;
1767
-
1768
1638
  if (rem100 > 20 || rem100 < 10) {
1769
1639
  switch (rem100 % 10) {
1770
1640
  case 1:
1771
1641
  return number + 'st';
1772
-
1773
1642
  case 2:
1774
1643
  return number + 'nd';
1775
-
1776
1644
  case 3:
1777
1645
  return number + 'rd';
1778
1646
  }
1779
1647
  }
1780
-
1781
1648
  return number + 'th';
1782
1649
  };
1783
-
1784
1650
  var localize = {
1785
1651
  ordinalNumber: ordinalNumber,
1786
1652
  era: buildLocalizeFn({
@@ -1816,11 +1682,9 @@ function buildMatchFn(args) {
1816
1682
  var width = options.width;
1817
1683
  var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
1818
1684
  var matchResult = string.match(matchPattern);
1819
-
1820
1685
  if (!matchResult) {
1821
1686
  return null;
1822
1687
  }
1823
-
1824
1688
  var matchedString = matchResult[0];
1825
1689
  var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
1826
1690
  var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {
@@ -1838,24 +1702,20 @@ function buildMatchFn(args) {
1838
1702
  };
1839
1703
  };
1840
1704
  }
1841
-
1842
1705
  function findKey(object, predicate) {
1843
1706
  for (var key in object) {
1844
1707
  if (object.hasOwnProperty(key) && predicate(object[key])) {
1845
1708
  return key;
1846
1709
  }
1847
1710
  }
1848
-
1849
1711
  return undefined;
1850
1712
  }
1851
-
1852
1713
  function findIndex(array, predicate) {
1853
1714
  for (var key = 0; key < array.length; key++) {
1854
1715
  if (predicate(array[key])) {
1855
1716
  return key;
1856
1717
  }
1857
1718
  }
1858
-
1859
1719
  return undefined;
1860
1720
  }
1861
1721
 
@@ -1990,9 +1850,7 @@ var locale = {
1990
1850
  localize: localize,
1991
1851
  match: match,
1992
1852
  options: {
1993
- weekStartsOn: 0
1994
- /* Sunday */
1995
- ,
1853
+ weekStartsOn: 0 /* Sunday */,
1996
1854
  firstWeekContainsDate: 1
1997
1855
  }
1998
1856
  };
@@ -2007,14 +1865,15 @@ var locale = {
2007
1865
  // If there is no matching single quote
2008
1866
  // then the sequence will continue until the end of the string.
2009
1867
  // - . matches any single character unmatched by previous parts of the RegExps
1868
+ var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g;
2010
1869
 
2011
- var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also
1870
+ // This RegExp catches symbols escaped by quotes, and also
2012
1871
  // sequences of symbols P, p, and the combinations like `PPPPPPPppppp`
2013
-
2014
1872
  var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
2015
1873
  var escapedStringRegExp = /^'([^]*?)'?$/;
2016
1874
  var doubleQuoteRegExp = /''/g;
2017
1875
  var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
1876
+
2018
1877
  /**
2019
1878
  * @name format
2020
1879
  * @category Common Helpers
@@ -2309,40 +2168,36 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
2309
2168
 
2310
2169
  function format(dirtyDate, dirtyFormatStr, options) {
2311
2170
  var _ref, _options$locale, _ref2, _ref3, _ref4, _options$firstWeekCon, _options$locale2, _options$locale2$opti, _defaultOptions$local, _defaultOptions$local2, _ref5, _ref6, _ref7, _options$weekStartsOn, _options$locale3, _options$locale3$opti, _defaultOptions$local3, _defaultOptions$local4;
2312
-
2313
2171
  requiredArgs(2, arguments);
2314
2172
  var formatStr = String(dirtyFormatStr);
2315
2173
  var defaultOptions = getDefaultOptions();
2316
2174
  var locale$1 = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : locale;
2317
- var firstWeekContainsDate = toInteger((_ref2 = (_ref3 = (_ref4 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale2 = options.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.firstWeekContainsDate) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : 1); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
2175
+ var firstWeekContainsDate = toInteger((_ref2 = (_ref3 = (_ref4 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale2 = options.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.firstWeekContainsDate) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : 1);
2318
2176
 
2177
+ // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
2319
2178
  if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
2320
2179
  throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
2321
2180
  }
2181
+ var weekStartsOn = toInteger((_ref5 = (_ref6 = (_ref7 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale3 = options.locale) === null || _options$locale3 === void 0 ? void 0 : (_options$locale3$opti = _options$locale3.options) === null || _options$locale3$opti === void 0 ? void 0 : _options$locale3$opti.weekStartsOn) !== null && _ref7 !== void 0 ? _ref7 : defaultOptions.weekStartsOn) !== null && _ref6 !== void 0 ? _ref6 : (_defaultOptions$local3 = defaultOptions.locale) === null || _defaultOptions$local3 === void 0 ? void 0 : (_defaultOptions$local4 = _defaultOptions$local3.options) === null || _defaultOptions$local4 === void 0 ? void 0 : _defaultOptions$local4.weekStartsOn) !== null && _ref5 !== void 0 ? _ref5 : 0);
2322
2182
 
2323
- var weekStartsOn = toInteger((_ref5 = (_ref6 = (_ref7 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale3 = options.locale) === null || _options$locale3 === void 0 ? void 0 : (_options$locale3$opti = _options$locale3.options) === null || _options$locale3$opti === void 0 ? void 0 : _options$locale3$opti.weekStartsOn) !== null && _ref7 !== void 0 ? _ref7 : defaultOptions.weekStartsOn) !== null && _ref6 !== void 0 ? _ref6 : (_defaultOptions$local3 = defaultOptions.locale) === null || _defaultOptions$local3 === void 0 ? void 0 : (_defaultOptions$local4 = _defaultOptions$local3.options) === null || _defaultOptions$local4 === void 0 ? void 0 : _defaultOptions$local4.weekStartsOn) !== null && _ref5 !== void 0 ? _ref5 : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
2324
-
2183
+ // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
2325
2184
  if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
2326
2185
  throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
2327
2186
  }
2328
-
2329
2187
  if (!locale$1.localize) {
2330
2188
  throw new RangeError('locale must contain localize property');
2331
2189
  }
2332
-
2333
2190
  if (!locale$1.formatLong) {
2334
2191
  throw new RangeError('locale must contain formatLong property');
2335
2192
  }
2336
-
2337
2193
  var originalDate = toDate(dirtyDate);
2338
-
2339
2194
  if (!isValid(originalDate)) {
2340
2195
  throw new RangeError('Invalid time value');
2341
- } // Convert the date in system timezone to the same date in UTC+00:00 timezone.
2196
+ }
2197
+
2198
+ // Convert the date in system timezone to the same date in UTC+00:00 timezone.
2342
2199
  // This ensures that when UTC functions will be implemented, locales will be compatible with them.
2343
2200
  // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376
2344
-
2345
-
2346
2201
  var timezoneOffset = getTimezoneOffsetInMilliseconds(originalDate);
2347
2202
  var utcDate = subMilliseconds(originalDate, timezoneOffset);
2348
2203
  var formatterOptions = {
@@ -2353,55 +2208,42 @@ function format(dirtyDate, dirtyFormatStr, options) {
2353
2208
  };
2354
2209
  var result = formatStr.match(longFormattingTokensRegExp).map(function (substring) {
2355
2210
  var firstCharacter = substring[0];
2356
-
2357
2211
  if (firstCharacter === 'p' || firstCharacter === 'P') {
2358
2212
  var longFormatter = longFormatters[firstCharacter];
2359
2213
  return longFormatter(substring, locale$1.formatLong);
2360
2214
  }
2361
-
2362
2215
  return substring;
2363
2216
  }).join('').match(formattingTokensRegExp).map(function (substring) {
2364
2217
  // Replace two single quote characters with one single quote character
2365
2218
  if (substring === "''") {
2366
2219
  return "'";
2367
2220
  }
2368
-
2369
2221
  var firstCharacter = substring[0];
2370
-
2371
2222
  if (firstCharacter === "'") {
2372
2223
  return cleanEscapedString(substring);
2373
2224
  }
2374
-
2375
2225
  var formatter = formatters[firstCharacter];
2376
-
2377
2226
  if (formatter) {
2378
2227
  if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && isProtectedWeekYearToken(substring)) {
2379
2228
  throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
2380
2229
  }
2381
-
2382
2230
  if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && isProtectedDayOfYearToken(substring)) {
2383
2231
  throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
2384
2232
  }
2385
-
2386
2233
  return formatter(utcDate, substring, locale$1.localize, formatterOptions);
2387
2234
  }
2388
-
2389
2235
  if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
2390
2236
  throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');
2391
2237
  }
2392
-
2393
2238
  return substring;
2394
2239
  }).join('');
2395
2240
  return result;
2396
2241
  }
2397
-
2398
2242
  function cleanEscapedString(input) {
2399
2243
  var matched = input.match(escapedStringRegExp);
2400
-
2401
2244
  if (!matched) {
2402
2245
  return input;
2403
2246
  }
2404
-
2405
2247
  return matched[1].replace(doubleQuoteRegExp, "'");
2406
2248
  }
2407
2249
 
@@ -2423,7 +2265,6 @@ function cleanEscapedString(input) {
2423
2265
  * const result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11))
2424
2266
  * //=> true
2425
2267
  */
2426
-
2427
2268
  function isAfter(dirtyDate, dirtyDateToCompare) {
2428
2269
  requiredArgs(2, arguments);
2429
2270
  var date = toDate(dirtyDate);
@@ -2449,7 +2290,6 @@ function isAfter(dirtyDate, dirtyDateToCompare) {
2449
2290
  * const result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11))
2450
2291
  * //=> false
2451
2292
  */
2452
-
2453
2293
  function isBefore(dirtyDate, dirtyDateToCompare) {
2454
2294
  requiredArgs(2, arguments);
2455
2295
  var date = toDate(dirtyDate);
@@ -2457,6 +2297,7 @@ function isBefore(dirtyDate, dirtyDateToCompare) {
2457
2297
  return date.getTime() < dateToCompare.getTime();
2458
2298
  }
2459
2299
 
2300
+ exports._typeof = _typeof;
2460
2301
  exports.format = format;
2461
2302
  exports.getDefaultOptions = getDefaultOptions;
2462
2303
  exports.getTimezoneOffsetInMilliseconds = getTimezoneOffsetInMilliseconds;
@@ -2480,4 +2321,4 @@ exports.throwProtectedError = throwProtectedError;
2480
2321
  exports.toDate = toDate;
2481
2322
  exports.toInteger = toInteger;
2482
2323
 
2483
- //# sourceMappingURL=index-040ec3f9.js.map
2324
+ //# sourceMappingURL=index-b59a0544.js.map