@paperless/core 0.1.0-alpha.437 → 0.1.0-alpha.438
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.
- package/CHANGELOG.md +11 -0
- package/dist/build/p-04296717.entry.js +2 -0
- package/dist/{paperless/p-8fb43cc7.entry.js.map → build/p-04296717.entry.js.map} +1 -1
- package/dist/build/p-0e18b4ce.entry.js +2 -0
- package/dist/{paperless/p-ebd4ba56.entry.js.map → build/p-0e18b4ce.entry.js.map} +1 -1
- package/dist/{paperless/p-756c06ec.entry.js → build/p-1d6b036c.entry.js} +2 -2
- package/dist/build/{p-58b52568.entry.js → p-1f55126f.entry.js} +2 -2
- package/dist/{paperless/p-78948e08.entry.js → build/p-20cc75be.entry.js} +2 -2
- package/dist/build/{p-b7b1de31.entry.js → p-322be6d8.entry.js} +2 -2
- package/dist/build/{p-5d118f66.entry.js → p-33b6520e.entry.js} +2 -2
- package/dist/build/{p-f07793f6.entry.js → p-3bd4c1c1.entry.js} +2 -2
- package/dist/build/{p-0cb97c5e.entry.js → p-47e461b7.entry.js} +2 -2
- package/dist/build/{p-b13a0ee4.entry.js → p-49104ffe.entry.js} +2 -2
- package/dist/{paperless/p-ac7b48ff.entry.js → build/p-4b99a4fe.entry.js} +2 -2
- package/dist/build/{p-464569dc.entry.js → p-5e5f3eaa.entry.js} +2 -2
- package/dist/build/{p-a2bd1a79.entry.js → p-6782f5df.entry.js} +2 -2
- package/dist/{paperless/p-a2bd1a79.entry.js.map → build/p-6782f5df.entry.js.map} +1 -1
- package/dist/build/{p-ea824ef3.entry.js → p-688264c9.entry.js} +2 -2
- package/dist/build/{p-c87da93e.entry.js → p-69b621a7.entry.js} +2 -2
- package/dist/build/{p-c87da93e.entry.js.map → p-69b621a7.entry.js.map} +1 -1
- package/dist/build/p-6ccf5cdd.js +3 -0
- package/dist/build/p-6ccf5cdd.js.map +1 -0
- package/dist/build/{p-ebc2ae62.entry.js → p-733a0d79.entry.js} +2 -2
- package/dist/build/{p-45dfd940.entry.js → p-7e26a901.entry.js} +2 -2
- package/dist/build/{p-cccc37c0.entry.js → p-81a99f72.entry.js} +2 -2
- package/dist/build/p-842f87c8.entry.js +2 -0
- package/dist/build/p-842f87c8.entry.js.map +1 -0
- package/dist/{paperless/p-6f82a1e7.entry.js → build/p-8569fa3c.entry.js} +2 -2
- package/dist/build/{p-036a82fc.entry.js → p-886a1eda.entry.js} +2 -2
- package/dist/build/p-886a1eda.entry.js.map +1 -0
- package/dist/build/{p-1b5292a3.entry.js → p-8f453ef2.entry.js} +2 -2
- package/dist/build/p-8fefda1f.entry.js +2 -0
- package/dist/build/{p-a3fcf8b6.entry.js.map → p-8fefda1f.entry.js.map} +1 -1
- package/dist/{paperless/p-f34ed23f.entry.js → build/p-97ddf9d4.entry.js} +2 -2
- package/dist/build/p-97ddf9d4.entry.js.map +1 -0
- package/dist/{paperless/p-57411b2b.entry.js → build/p-a0790d7b.entry.js} +2 -2
- package/dist/{paperless/p-5a31cb9e.entry.js → build/p-a751f1a4.entry.js} +2 -2
- package/dist/build/p-ae248aef.js +2 -0
- package/dist/build/p-ae248aef.js.map +1 -0
- package/dist/build/p-aefd84a3.entry.js +2 -0
- package/dist/build/{p-e3f29ba8.entry.js.map → p-aefd84a3.entry.js.map} +1 -1
- package/dist/build/{p-3d8b5cc4.entry.js → p-af38f227.entry.js} +2 -2
- package/dist/{paperless/p-93fb216c.entry.js → build/p-af92e53c.entry.js} +2 -2
- package/dist/build/p-b5234526.entry.js +2 -0
- package/dist/{paperless/p-d012d066.entry.js.map → build/p-b5234526.entry.js.map} +1 -1
- package/dist/build/{p-7b94bc6a.entry.js → p-b5b591c7.entry.js} +2 -2
- package/dist/{paperless/p-5236b565.entry.js → build/p-c6d9e720.entry.js} +2 -2
- package/dist/build/p-d24d95d2.entry.js +2 -0
- package/dist/build/{p-ef2eee59.entry.js.map → p-d24d95d2.entry.js.map} +1 -1
- package/dist/build/{p-31afbb45.entry.js → p-d2529f77.entry.js} +2 -2
- package/dist/build/{p-e0d7a4ee.entry.js → p-d51ede49.entry.js} +2 -2
- package/dist/build/p-dd9d3dd6.entry.js +2 -0
- package/dist/build/{p-b0eeab26.entry.js.map → p-dd9d3dd6.entry.js.map} +1 -1
- package/dist/build/{p-10ad607e.entry.js → p-e8a815d7.entry.js} +2 -2
- package/dist/build/{p-c6ef7b79.entry.js → p-f3207ec2.entry.js} +2 -2
- package/dist/build/{p-0a3f2fe8.entry.js → p-f429073e.entry.js} +2 -2
- package/dist/build/{p-dc01e9eb.entry.js → p-f59afce6.entry.js} +2 -2
- package/dist/{paperless/p-471be252.entry.js → build/p-f695dc3c.entry.js} +2 -2
- package/dist/build/{p-78ce77d2.entry.js → p-f9aaa75c.entry.js} +2 -2
- package/dist/build/p-fef32402.js +2 -0
- package/dist/{cjs/floating-ui.dom.esm-4cb215a4.js.map → build/p-fef32402.js.map} +1 -1
- package/dist/build/paperless.css +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/build/paperless.esm.js.map +1 -1
- package/dist/cjs/{floating-ui.dom.esm-4cb215a4.js → floating-ui.dom.esm-62336770.js} +19 -9
- package/dist/cjs/floating-ui.dom.esm-62336770.js.map +1 -0
- package/dist/cjs/{index-040ec3f9.js → index-b59a0544.js} +65 -224
- package/dist/cjs/index-b59a0544.js.map +1 -0
- package/dist/cjs/{index-13ea09e0.js → index-dfc4dfec.js} +82 -34
- package/dist/cjs/index-dfc4dfec.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/p-accordion.cjs.entry.js +1 -1
- package/dist/cjs/p-attachment.cjs.entry.js +1 -1
- package/dist/cjs/p-avatar-group.cjs.entry.js +1 -1
- package/dist/cjs/p-avatar.cjs.entry.js +1 -1
- package/dist/cjs/p-backdrop.cjs.entry.js +2 -2
- package/dist/cjs/p-backdrop.cjs.entry.js.map +1 -1
- package/dist/cjs/p-button_3.cjs.entry.js +4 -4
- package/dist/cjs/p-calendar.cjs.entry.js +8 -27
- package/dist/cjs/p-calendar.cjs.entry.js.map +1 -1
- package/dist/cjs/p-card-body.cjs.entry.js +1 -1
- package/dist/cjs/p-card-container.cjs.entry.js +1 -1
- package/dist/cjs/p-card-header.cjs.entry.js +1 -1
- package/dist/cjs/p-content-slider.cjs.entry.js +1 -1
- package/dist/cjs/p-counter.cjs.entry.js +1 -1
- package/dist/cjs/p-datepicker.cjs.entry.js +434 -1475
- package/dist/cjs/p-datepicker.cjs.entry.js.map +1 -1
- package/dist/cjs/p-divider.cjs.entry.js +2 -2
- package/dist/cjs/p-drawer-body_3.cjs.entry.js +1 -1
- package/dist/cjs/p-drawer.cjs.entry.js +1 -1
- package/dist/cjs/p-dropdown-menu-container.cjs.entry.js +2 -2
- package/dist/cjs/p-dropdown-menu-container.cjs.entry.js.map +1 -1
- package/dist/cjs/p-dropdown_2.cjs.entry.js +4 -4
- package/dist/cjs/p-dropdown_2.cjs.entry.js.map +1 -1
- package/dist/cjs/p-helper_3.cjs.entry.js +3 -3
- package/dist/cjs/p-helper_3.cjs.entry.js.map +1 -1
- package/dist/cjs/p-illustration_6.cjs.entry.js +6 -6
- package/dist/cjs/p-illustration_6.cjs.entry.js.map +1 -1
- package/dist/cjs/p-info-panel.cjs.entry.js +1 -1
- package/dist/cjs/p-label_3.cjs.entry.js +4 -4
- package/dist/cjs/p-label_3.cjs.entry.js.map +1 -1
- package/dist/cjs/p-layout.cjs.entry.js +1 -1
- package/dist/cjs/p-modal-body_4.cjs.entry.js +5 -5
- package/dist/cjs/p-modal-body_4.cjs.entry.js.map +1 -1
- package/dist/cjs/p-modal.cjs.entry.js +1 -1
- package/dist/cjs/p-navbar.cjs.entry.js +1 -1
- package/dist/cjs/p-navigation-item.cjs.entry.js +1 -1
- package/dist/cjs/p-page-size-select_3.cjs.entry.js +3 -3
- package/dist/cjs/p-page-size-select_3.cjs.entry.js.map +1 -1
- package/dist/cjs/p-profile.cjs.entry.js +1 -1
- package/dist/cjs/p-select.cjs.entry.js +1 -1
- package/dist/cjs/p-slider-indicator.cjs.entry.js +1 -1
- package/dist/cjs/p-status.cjs.entry.js +1 -1
- package/dist/cjs/p-stepper-item.cjs.entry.js +1 -1
- package/dist/cjs/p-stepper-line.cjs.entry.js +1 -1
- package/dist/cjs/p-stepper.cjs.entry.js +1 -1
- package/dist/cjs/p-tab-group.cjs.entry.js +1 -1
- package/dist/cjs/p-tab-item.cjs.entry.js +1 -1
- package/dist/cjs/p-table-column.cjs.entry.js +1 -1
- package/dist/cjs/p-table.cjs.entry.js +2 -2
- package/dist/cjs/p-table.cjs.entry.js.map +1 -1
- package/dist/cjs/p-toast-container.cjs.entry.js +1 -1
- package/dist/cjs/p-toast.cjs.entry.js +1 -1
- package/dist/cjs/p-tooltip.cjs.entry.js +6 -4
- package/dist/cjs/p-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/paperless.cjs.js +2 -2
- package/dist/cjs/paperless.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/atoms/backdrop/backdrop.component.css +1 -1
- package/dist/collection/components/atoms/button/button.component.css +1 -1
- package/dist/collection/components/atoms/divider/divider.component.css +1 -1
- package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.css +1 -1
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.css +1 -1
- package/dist/collection/components/atoms/helper/helper.component.css +1 -1
- package/dist/collection/components/atoms/icon/icon.component.css +1 -1
- package/dist/collection/components/atoms/label/label.component.css +1 -1
- package/dist/collection/components/atoms/loader/loader.component.css +1 -1
- package/dist/collection/components/atoms/modal-body/modal-body.component.css +1 -1
- package/dist/collection/components/atoms/modal-container/modal-container.component.css +1 -1
- package/dist/collection/components/atoms/modal-footer/modal-footer.component.css +1 -1
- package/dist/collection/components/atoms/modal-header/modal-header.component.css +1 -1
- package/dist/collection/components/atoms/pagination-item/pagination-item.component.css +1 -1
- package/dist/collection/components/atoms/segment-container/segment-container.component.css +1 -1
- package/dist/collection/components/atoms/segment-item/segment-item.component.css +1 -1
- package/dist/collection/components/atoms/table-container/table-container.component.css +1 -1
- package/dist/collection/components/atoms/tooltip/tooltip.component.css +1 -1
- package/dist/collection/components/atoms/tooltip/tooltip.component.js +3 -1
- package/dist/collection/components/atoms/tooltip/tooltip.component.js.map +1 -1
- package/dist/collection/components/molecules/dropdown/dropdown.component.css +1 -1
- package/dist/collection/components/molecules/input-group/input-group.component.css +1 -1
- package/dist/collection/components/molecules/pagination/pagination.component.css +1 -1
- package/dist/collection/components/molecules/table-cell/table-cell.component.css +1 -1
- package/dist/collection/components/molecules/table-footer/table-footer.component.css +1 -1
- package/dist/collection/components/molecules/table-header/table-header.component.css +1 -1
- package/dist/collection/components/molecules/table-row/table-row.component.css +1 -1
- package/dist/collection/components/organisms/table/table.component.css +1 -1
- package/dist/components/backdrop.component.js +1 -1
- package/dist/components/backdrop.component.js.map +1 -1
- package/dist/components/button.component.js +1 -1
- package/dist/components/calendar.component.js +70 -249
- package/dist/components/calendar.component.js.map +1 -1
- package/dist/components/divider.component.js +1 -1
- package/dist/components/dropdown-menu-container.component.js +1 -1
- package/dist/components/dropdown-menu-container.component.js.map +1 -1
- package/dist/components/dropdown-menu-item.component.js +1 -1
- package/dist/components/dropdown-menu-item.component.js.map +1 -1
- package/dist/components/dropdown.component.js +1 -1
- package/dist/components/dropdown.component.js.map +1 -1
- package/dist/components/floating-ui.dom.esm.js +18 -8
- package/dist/components/floating-ui.dom.esm.js.map +1 -1
- package/dist/components/helper.component.js +1 -1
- package/dist/components/helper.component.js.map +1 -1
- package/dist/components/icon.component.js +1 -1
- package/dist/components/input-group.component.js +1 -1
- package/dist/components/input-group.component.js.map +1 -1
- package/dist/components/label.component.js +1 -1
- package/dist/components/loader.component.js +1 -1
- package/dist/components/modal-body.component.js +1 -1
- package/dist/components/modal-body.component.js.map +1 -1
- package/dist/components/modal-container.component.js +1 -1
- package/dist/components/modal-container.component.js.map +1 -1
- package/dist/components/modal-footer.component.js +1 -1
- package/dist/components/modal-header.component.js +1 -1
- package/dist/components/modal-header.component.js.map +1 -1
- package/dist/components/p-datepicker.js +432 -1473
- package/dist/components/p-datepicker.js.map +1 -1
- package/dist/components/p-table.js +1 -1
- package/dist/components/p-table.js.map +1 -1
- package/dist/components/pagination-item.component.js +1 -1
- package/dist/components/pagination-item.component.js.map +1 -1
- package/dist/components/pagination.component.js +1 -1
- package/dist/components/pagination.component.js.map +1 -1
- package/dist/components/segment-container.component.js +1 -1
- package/dist/components/segment-container.component.js.map +1 -1
- package/dist/components/segment-item.component.js +1 -1
- package/dist/components/segment-item.component.js.map +1 -1
- package/dist/components/table-cell.component.js +1 -1
- package/dist/components/table-cell.component.js.map +1 -1
- package/dist/components/table-container.component.js +1 -1
- package/dist/components/table-container.component.js.map +1 -1
- package/dist/components/table-footer.component.js +1 -1
- package/dist/components/table-footer.component.js.map +1 -1
- package/dist/components/table-header.component.js +1 -1
- package/dist/components/table-header.component.js.map +1 -1
- package/dist/components/table-row.component.js +1 -1
- package/dist/components/table-row.component.js.map +1 -1
- package/dist/components/tooltip.component.js +4 -2
- package/dist/components/tooltip.component.js.map +1 -1
- package/dist/esm/{floating-ui.dom.esm-82b72251.js → floating-ui.dom.esm-314a52b2.js} +19 -9
- package/dist/esm/floating-ui.dom.esm-314a52b2.js.map +1 -0
- package/dist/esm/{index-94339e77.js → index-2c1bdb40.js} +82 -34
- package/dist/esm/index-2c1bdb40.js.map +1 -0
- package/dist/esm/{index-340e085c.js → index-934ac6da.js} +65 -225
- package/dist/esm/index-934ac6da.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/p-accordion.entry.js +1 -1
- package/dist/esm/p-attachment.entry.js +1 -1
- package/dist/esm/p-avatar-group.entry.js +1 -1
- package/dist/esm/p-avatar.entry.js +1 -1
- package/dist/esm/p-backdrop.entry.js +2 -2
- package/dist/esm/p-backdrop.entry.js.map +1 -1
- package/dist/esm/p-button_3.entry.js +4 -4
- package/dist/esm/p-calendar.entry.js +8 -27
- package/dist/esm/p-calendar.entry.js.map +1 -1
- package/dist/esm/p-card-body.entry.js +1 -1
- package/dist/esm/p-card-container.entry.js +1 -1
- package/dist/esm/p-card-header.entry.js +1 -1
- package/dist/esm/p-content-slider.entry.js +1 -1
- package/dist/esm/p-counter.entry.js +1 -1
- package/dist/esm/p-datepicker.entry.js +433 -1474
- package/dist/esm/p-datepicker.entry.js.map +1 -1
- package/dist/esm/p-divider.entry.js +2 -2
- package/dist/esm/p-drawer-body_3.entry.js +1 -1
- package/dist/esm/p-drawer.entry.js +1 -1
- package/dist/esm/p-dropdown-menu-container.entry.js +2 -2
- package/dist/esm/p-dropdown-menu-container.entry.js.map +1 -1
- package/dist/esm/p-dropdown_2.entry.js +4 -4
- package/dist/esm/p-dropdown_2.entry.js.map +1 -1
- package/dist/esm/p-helper_3.entry.js +3 -3
- package/dist/esm/p-helper_3.entry.js.map +1 -1
- package/dist/esm/p-illustration_6.entry.js +6 -6
- package/dist/esm/p-illustration_6.entry.js.map +1 -1
- package/dist/esm/p-info-panel.entry.js +1 -1
- package/dist/esm/p-label_3.entry.js +4 -4
- package/dist/esm/p-label_3.entry.js.map +1 -1
- package/dist/esm/p-layout.entry.js +1 -1
- package/dist/esm/p-modal-body_4.entry.js +5 -5
- package/dist/esm/p-modal-body_4.entry.js.map +1 -1
- package/dist/esm/p-modal.entry.js +1 -1
- package/dist/esm/p-navbar.entry.js +1 -1
- package/dist/esm/p-navigation-item.entry.js +1 -1
- package/dist/esm/p-page-size-select_3.entry.js +3 -3
- package/dist/esm/p-page-size-select_3.entry.js.map +1 -1
- package/dist/esm/p-profile.entry.js +1 -1
- package/dist/esm/p-select.entry.js +1 -1
- package/dist/esm/p-slider-indicator.entry.js +1 -1
- package/dist/esm/p-status.entry.js +1 -1
- package/dist/esm/p-stepper-item.entry.js +1 -1
- package/dist/esm/p-stepper-line.entry.js +1 -1
- package/dist/esm/p-stepper.entry.js +1 -1
- package/dist/esm/p-tab-group.entry.js +1 -1
- package/dist/esm/p-tab-item.entry.js +1 -1
- package/dist/esm/p-table-column.entry.js +1 -1
- package/dist/esm/p-table.entry.js +2 -2
- package/dist/esm/p-table.entry.js.map +1 -1
- package/dist/esm/p-toast-container.entry.js +1 -1
- package/dist/esm/p-toast.entry.js +1 -1
- package/dist/esm/p-tooltip.entry.js +6 -4
- package/dist/esm/p-tooltip.entry.js.map +1 -1
- package/dist/esm/paperless.js +3 -3
- package/dist/esm/paperless.js.map +1 -1
- package/dist/index.html +1 -1
- package/dist/paperless/p-04296717.entry.js +2 -0
- package/dist/{build/p-8fb43cc7.entry.js.map → paperless/p-04296717.entry.js.map} +1 -1
- package/dist/paperless/p-0e18b4ce.entry.js +2 -0
- package/dist/{build/p-ebd4ba56.entry.js.map → paperless/p-0e18b4ce.entry.js.map} +1 -1
- package/dist/{build/p-756c06ec.entry.js → paperless/p-1d6b036c.entry.js} +2 -2
- package/dist/paperless/{p-58b52568.entry.js → p-1f55126f.entry.js} +2 -2
- package/dist/{build/p-78948e08.entry.js → paperless/p-20cc75be.entry.js} +2 -2
- package/dist/paperless/{p-b7b1de31.entry.js → p-322be6d8.entry.js} +2 -2
- package/dist/paperless/{p-5d118f66.entry.js → p-33b6520e.entry.js} +2 -2
- package/dist/paperless/{p-f07793f6.entry.js → p-3bd4c1c1.entry.js} +2 -2
- package/dist/paperless/{p-0cb97c5e.entry.js → p-47e461b7.entry.js} +2 -2
- package/dist/paperless/{p-b13a0ee4.entry.js → p-49104ffe.entry.js} +2 -2
- package/dist/{build/p-ac7b48ff.entry.js → paperless/p-4b99a4fe.entry.js} +2 -2
- package/dist/paperless/{p-464569dc.entry.js → p-5e5f3eaa.entry.js} +2 -2
- package/dist/paperless/{p-a2bd1a79.entry.js → p-6782f5df.entry.js} +2 -2
- package/dist/{build/p-a2bd1a79.entry.js.map → paperless/p-6782f5df.entry.js.map} +1 -1
- package/dist/paperless/{p-ea824ef3.entry.js → p-688264c9.entry.js} +2 -2
- package/dist/paperless/{p-c87da93e.entry.js → p-69b621a7.entry.js} +2 -2
- package/dist/paperless/{p-c87da93e.entry.js.map → p-69b621a7.entry.js.map} +1 -1
- package/dist/paperless/p-6ccf5cdd.js +3 -0
- package/dist/paperless/p-6ccf5cdd.js.map +1 -0
- package/dist/paperless/{p-ebc2ae62.entry.js → p-733a0d79.entry.js} +2 -2
- package/dist/paperless/{p-45dfd940.entry.js → p-7e26a901.entry.js} +2 -2
- package/dist/paperless/{p-cccc37c0.entry.js → p-81a99f72.entry.js} +2 -2
- package/dist/paperless/p-842f87c8.entry.js +2 -0
- package/dist/paperless/p-842f87c8.entry.js.map +1 -0
- package/dist/{build/p-6f82a1e7.entry.js → paperless/p-8569fa3c.entry.js} +2 -2
- package/dist/paperless/{p-036a82fc.entry.js → p-886a1eda.entry.js} +2 -2
- package/dist/paperless/p-886a1eda.entry.js.map +1 -0
- package/dist/paperless/{p-1b5292a3.entry.js → p-8f453ef2.entry.js} +2 -2
- package/dist/paperless/p-8fefda1f.entry.js +2 -0
- package/dist/paperless/{p-a3fcf8b6.entry.js.map → p-8fefda1f.entry.js.map} +1 -1
- package/dist/{build/p-f34ed23f.entry.js → paperless/p-97ddf9d4.entry.js} +2 -2
- package/dist/paperless/p-97ddf9d4.entry.js.map +1 -0
- package/dist/{build/p-57411b2b.entry.js → paperless/p-a0790d7b.entry.js} +2 -2
- package/dist/{build/p-5a31cb9e.entry.js → paperless/p-a751f1a4.entry.js} +2 -2
- package/dist/paperless/p-ae248aef.js +2 -0
- package/dist/paperless/p-ae248aef.js.map +1 -0
- package/dist/paperless/p-aefd84a3.entry.js +2 -0
- package/dist/paperless/{p-e3f29ba8.entry.js.map → p-aefd84a3.entry.js.map} +1 -1
- package/dist/paperless/{p-3d8b5cc4.entry.js → p-af38f227.entry.js} +2 -2
- package/dist/{build/p-93fb216c.entry.js → paperless/p-af92e53c.entry.js} +2 -2
- package/dist/paperless/p-b5234526.entry.js +2 -0
- package/dist/{build/p-d012d066.entry.js.map → paperless/p-b5234526.entry.js.map} +1 -1
- package/dist/paperless/{p-7b94bc6a.entry.js → p-b5b591c7.entry.js} +2 -2
- package/dist/{build/p-5236b565.entry.js → paperless/p-c6d9e720.entry.js} +2 -2
- package/dist/paperless/p-d24d95d2.entry.js +2 -0
- package/dist/paperless/{p-ef2eee59.entry.js.map → p-d24d95d2.entry.js.map} +1 -1
- package/dist/paperless/{p-31afbb45.entry.js → p-d2529f77.entry.js} +2 -2
- package/dist/paperless/{p-e0d7a4ee.entry.js → p-d51ede49.entry.js} +2 -2
- package/dist/paperless/p-dd9d3dd6.entry.js +2 -0
- package/dist/paperless/{p-b0eeab26.entry.js.map → p-dd9d3dd6.entry.js.map} +1 -1
- package/dist/paperless/{p-10ad607e.entry.js → p-e8a815d7.entry.js} +2 -2
- package/dist/paperless/{p-c6ef7b79.entry.js → p-f3207ec2.entry.js} +2 -2
- package/dist/paperless/{p-0a3f2fe8.entry.js → p-f429073e.entry.js} +2 -2
- package/dist/paperless/{p-dc01e9eb.entry.js → p-f59afce6.entry.js} +2 -2
- package/dist/{build/p-471be252.entry.js → paperless/p-f695dc3c.entry.js} +2 -2
- package/dist/paperless/{p-78ce77d2.entry.js → p-f9aaa75c.entry.js} +2 -2
- package/dist/paperless/p-fef32402.js +2 -0
- package/dist/paperless/p-fef32402.js.map +1 -0
- package/dist/paperless/paperless.css +1 -1
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/paperless/paperless.esm.js.map +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/dist/types/stencil-public-runtime.d.ts +1 -0
- package/hydrate/index.js +583 -1785
- package/package.json +6 -6
- package/dist/build/p-036a82fc.entry.js.map +0 -1
- package/dist/build/p-07c853db.entry.js +0 -2
- package/dist/build/p-07c853db.entry.js.map +0 -1
- package/dist/build/p-8fb43cc7.entry.js +0 -2
- package/dist/build/p-a3fcf8b6.entry.js +0 -2
- package/dist/build/p-ac1af618.js +0 -3
- package/dist/build/p-ac1af618.js.map +0 -1
- package/dist/build/p-b0eeab26.entry.js +0 -2
- package/dist/build/p-b273ac6d.js +0 -2
- package/dist/build/p-b273ac6d.js.map +0 -1
- package/dist/build/p-d012d066.entry.js +0 -2
- package/dist/build/p-e3f29ba8.entry.js +0 -2
- package/dist/build/p-e621e34c.js +0 -2
- package/dist/build/p-e621e34c.js.map +0 -1
- package/dist/build/p-ebd4ba56.entry.js +0 -2
- package/dist/build/p-ef2eee59.entry.js +0 -2
- package/dist/build/p-f34ed23f.entry.js.map +0 -1
- package/dist/cjs/index-040ec3f9.js.map +0 -1
- package/dist/cjs/index-13ea09e0.js.map +0 -1
- package/dist/esm/floating-ui.dom.esm-82b72251.js.map +0 -1
- package/dist/esm/index-340e085c.js.map +0 -1
- package/dist/esm/index-94339e77.js.map +0 -1
- package/dist/paperless/p-036a82fc.entry.js.map +0 -1
- package/dist/paperless/p-07c853db.entry.js +0 -2
- package/dist/paperless/p-07c853db.entry.js.map +0 -1
- package/dist/paperless/p-8fb43cc7.entry.js +0 -2
- package/dist/paperless/p-a3fcf8b6.entry.js +0 -2
- package/dist/paperless/p-ac1af618.js +0 -3
- package/dist/paperless/p-ac1af618.js.map +0 -1
- package/dist/paperless/p-b0eeab26.entry.js +0 -2
- package/dist/paperless/p-b273ac6d.js +0 -2
- package/dist/paperless/p-b273ac6d.js.map +0 -1
- package/dist/paperless/p-d012d066.entry.js +0 -2
- package/dist/paperless/p-e3f29ba8.entry.js +0 -2
- package/dist/paperless/p-e621e34c.js +0 -2
- package/dist/paperless/p-e621e34c.js.map +0 -1
- package/dist/paperless/p-ebd4ba56.entry.js +0 -2
- package/dist/paperless/p-ef2eee59.entry.js +0 -2
- package/dist/paperless/p-f34ed23f.entry.js.map +0 -1
- /package/dist/build/{p-756c06ec.entry.js.map → p-1d6b036c.entry.js.map} +0 -0
- /package/dist/build/{p-58b52568.entry.js.map → p-1f55126f.entry.js.map} +0 -0
- /package/dist/build/{p-78948e08.entry.js.map → p-20cc75be.entry.js.map} +0 -0
- /package/dist/build/{p-b7b1de31.entry.js.map → p-322be6d8.entry.js.map} +0 -0
- /package/dist/build/{p-5d118f66.entry.js.map → p-33b6520e.entry.js.map} +0 -0
- /package/dist/build/{p-f07793f6.entry.js.map → p-3bd4c1c1.entry.js.map} +0 -0
- /package/dist/build/{p-0cb97c5e.entry.js.map → p-47e461b7.entry.js.map} +0 -0
- /package/dist/build/{p-b13a0ee4.entry.js.map → p-49104ffe.entry.js.map} +0 -0
- /package/dist/build/{p-ac7b48ff.entry.js.map → p-4b99a4fe.entry.js.map} +0 -0
- /package/dist/build/{p-464569dc.entry.js.map → p-5e5f3eaa.entry.js.map} +0 -0
- /package/dist/build/{p-ea824ef3.entry.js.map → p-688264c9.entry.js.map} +0 -0
- /package/dist/build/{p-ebc2ae62.entry.js.map → p-733a0d79.entry.js.map} +0 -0
- /package/dist/build/{p-45dfd940.entry.js.map → p-7e26a901.entry.js.map} +0 -0
- /package/dist/build/{p-cccc37c0.entry.js.map → p-81a99f72.entry.js.map} +0 -0
- /package/dist/build/{p-6f82a1e7.entry.js.map → p-8569fa3c.entry.js.map} +0 -0
- /package/dist/build/{p-1b5292a3.entry.js.map → p-8f453ef2.entry.js.map} +0 -0
- /package/dist/build/{p-57411b2b.entry.js.map → p-a0790d7b.entry.js.map} +0 -0
- /package/dist/build/{p-5a31cb9e.entry.js.map → p-a751f1a4.entry.js.map} +0 -0
- /package/dist/build/{p-3d8b5cc4.entry.js.map → p-af38f227.entry.js.map} +0 -0
- /package/dist/build/{p-93fb216c.entry.js.map → p-af92e53c.entry.js.map} +0 -0
- /package/dist/build/{p-7b94bc6a.entry.js.map → p-b5b591c7.entry.js.map} +0 -0
- /package/dist/build/{p-5236b565.entry.js.map → p-c6d9e720.entry.js.map} +0 -0
- /package/dist/build/{p-31afbb45.entry.js.map → p-d2529f77.entry.js.map} +0 -0
- /package/dist/build/{p-e0d7a4ee.entry.js.map → p-d51ede49.entry.js.map} +0 -0
- /package/dist/build/{p-10ad607e.entry.js.map → p-e8a815d7.entry.js.map} +0 -0
- /package/dist/build/{p-c6ef7b79.entry.js.map → p-f3207ec2.entry.js.map} +0 -0
- /package/dist/build/{p-0a3f2fe8.entry.js.map → p-f429073e.entry.js.map} +0 -0
- /package/dist/build/{p-dc01e9eb.entry.js.map → p-f59afce6.entry.js.map} +0 -0
- /package/dist/build/{p-471be252.entry.js.map → p-f695dc3c.entry.js.map} +0 -0
- /package/dist/build/{p-78ce77d2.entry.js.map → p-f9aaa75c.entry.js.map} +0 -0
- /package/dist/paperless/{p-756c06ec.entry.js.map → p-1d6b036c.entry.js.map} +0 -0
- /package/dist/paperless/{p-58b52568.entry.js.map → p-1f55126f.entry.js.map} +0 -0
- /package/dist/paperless/{p-78948e08.entry.js.map → p-20cc75be.entry.js.map} +0 -0
- /package/dist/paperless/{p-b7b1de31.entry.js.map → p-322be6d8.entry.js.map} +0 -0
- /package/dist/paperless/{p-5d118f66.entry.js.map → p-33b6520e.entry.js.map} +0 -0
- /package/dist/paperless/{p-f07793f6.entry.js.map → p-3bd4c1c1.entry.js.map} +0 -0
- /package/dist/paperless/{p-0cb97c5e.entry.js.map → p-47e461b7.entry.js.map} +0 -0
- /package/dist/paperless/{p-b13a0ee4.entry.js.map → p-49104ffe.entry.js.map} +0 -0
- /package/dist/paperless/{p-ac7b48ff.entry.js.map → p-4b99a4fe.entry.js.map} +0 -0
- /package/dist/paperless/{p-464569dc.entry.js.map → p-5e5f3eaa.entry.js.map} +0 -0
- /package/dist/paperless/{p-ea824ef3.entry.js.map → p-688264c9.entry.js.map} +0 -0
- /package/dist/paperless/{p-ebc2ae62.entry.js.map → p-733a0d79.entry.js.map} +0 -0
- /package/dist/paperless/{p-45dfd940.entry.js.map → p-7e26a901.entry.js.map} +0 -0
- /package/dist/paperless/{p-cccc37c0.entry.js.map → p-81a99f72.entry.js.map} +0 -0
- /package/dist/paperless/{p-6f82a1e7.entry.js.map → p-8569fa3c.entry.js.map} +0 -0
- /package/dist/paperless/{p-1b5292a3.entry.js.map → p-8f453ef2.entry.js.map} +0 -0
- /package/dist/paperless/{p-57411b2b.entry.js.map → p-a0790d7b.entry.js.map} +0 -0
- /package/dist/paperless/{p-5a31cb9e.entry.js.map → p-a751f1a4.entry.js.map} +0 -0
- /package/dist/paperless/{p-3d8b5cc4.entry.js.map → p-af38f227.entry.js.map} +0 -0
- /package/dist/paperless/{p-93fb216c.entry.js.map → p-af92e53c.entry.js.map} +0 -0
- /package/dist/paperless/{p-7b94bc6a.entry.js.map → p-b5b591c7.entry.js.map} +0 -0
- /package/dist/paperless/{p-5236b565.entry.js.map → p-c6d9e720.entry.js.map} +0 -0
- /package/dist/paperless/{p-31afbb45.entry.js.map → p-d2529f77.entry.js.map} +0 -0
- /package/dist/paperless/{p-e0d7a4ee.entry.js.map → p-d51ede49.entry.js.map} +0 -0
- /package/dist/paperless/{p-10ad607e.entry.js.map → p-e8a815d7.entry.js.map} +0 -0
- /package/dist/paperless/{p-c6ef7b79.entry.js.map → p-f3207ec2.entry.js.map} +0 -0
- /package/dist/paperless/{p-0a3f2fe8.entry.js.map → p-f429073e.entry.js.map} +0 -0
- /package/dist/paperless/{p-dc01e9eb.entry.js.map → p-f59afce6.entry.js.map} +0 -0
- /package/dist/paperless/{p-471be252.entry.js.map → p-f695dc3c.entry.js.map} +0 -0
- /package/dist/paperless/{p-78ce77d2.entry.js.map → p-f9aaa75c.entry.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-2c1bdb40.js';
|
|
2
2
|
import { c as childOf } from './child-of-90a8c4b5.js';
|
|
3
|
-
import { g as getUTCWeekYear, s as startOfUTCWeek, a as startOfUTCISOWeek, r as requiredArgs, t as toDate, b as getUTCWeek, c as toInteger, d as getUTCISOWeek, e as getDefaultOptions, l as longFormatters, f as subMilliseconds, h as getTimezoneOffsetInMilliseconds, i as locale, j as isProtectedWeekYearToken, k as throwProtectedError, m as isProtectedDayOfYearToken, n as format, o as isValid, p as isBefore, q as isAfter, u as startOfDay, v as isSameDay } from './index-
|
|
3
|
+
import { _ as _typeof, g as getUTCWeekYear, s as startOfUTCWeek, a as startOfUTCISOWeek, r as requiredArgs, t as toDate, b as getUTCWeek, c as toInteger, d as getUTCISOWeek, e as getDefaultOptions, l as longFormatters, f as subMilliseconds, h as getTimezoneOffsetInMilliseconds, i as locale, j as isProtectedWeekYearToken, k as throwProtectedError, m as isProtectedDayOfYearToken, n as format, o as isValid, p as isBefore, q as isAfter, u as startOfDay, v as isSameDay } from './index-934ac6da.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Days in 1 week.
|
|
@@ -10,6 +10,7 @@ import { g as getUTCWeekYear, s as startOfUTCWeek, a as startOfUTCISOWeek, r as
|
|
|
10
10
|
* @type {number}
|
|
11
11
|
* @default
|
|
12
12
|
*/
|
|
13
|
+
|
|
13
14
|
/**
|
|
14
15
|
* Milliseconds in 1 minute
|
|
15
16
|
*
|
|
@@ -18,8 +19,8 @@ import { g as getUTCWeekYear, s as startOfUTCWeek, a as startOfUTCISOWeek, r as
|
|
|
18
19
|
* @type {number}
|
|
19
20
|
* @default
|
|
20
21
|
*/
|
|
21
|
-
|
|
22
22
|
var millisecondsInMinute = 60000;
|
|
23
|
+
|
|
23
24
|
/**
|
|
24
25
|
* Milliseconds in 1 hour
|
|
25
26
|
*
|
|
@@ -28,8 +29,8 @@ var millisecondsInMinute = 60000;
|
|
|
28
29
|
* @type {number}
|
|
29
30
|
* @default
|
|
30
31
|
*/
|
|
31
|
-
|
|
32
32
|
var millisecondsInHour = 3600000;
|
|
33
|
+
|
|
33
34
|
/**
|
|
34
35
|
* Milliseconds in 1 second
|
|
35
36
|
*
|
|
@@ -38,88 +39,249 @@ var millisecondsInHour = 3600000;
|
|
|
38
39
|
* @type {number}
|
|
39
40
|
* @default
|
|
40
41
|
*/
|
|
41
|
-
|
|
42
42
|
var millisecondsInSecond = 1000;
|
|
43
43
|
|
|
44
44
|
function assign(target, object) {
|
|
45
45
|
if (target == null) {
|
|
46
46
|
throw new TypeError('assign requires that input parameter not be null or undefined');
|
|
47
47
|
}
|
|
48
|
-
|
|
49
48
|
for (var property in object) {
|
|
50
49
|
if (Object.prototype.hasOwnProperty.call(object, property)) {
|
|
51
50
|
target[property] = object[property];
|
|
52
51
|
}
|
|
53
52
|
}
|
|
54
|
-
|
|
55
53
|
return target;
|
|
56
54
|
}
|
|
57
55
|
|
|
58
|
-
function
|
|
56
|
+
function _arrayLikeToArray(arr, len) {
|
|
57
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
58
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
59
|
+
return arr2;
|
|
60
|
+
}
|
|
59
61
|
|
|
60
|
-
function
|
|
62
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
63
|
+
if (!o) return;
|
|
64
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
65
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
66
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
67
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
68
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
69
|
+
}
|
|
61
70
|
|
|
62
|
-
function
|
|
71
|
+
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
72
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
73
|
+
if (!it) {
|
|
74
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
75
|
+
if (it) o = it;
|
|
76
|
+
var i = 0;
|
|
77
|
+
var F = function F() {};
|
|
78
|
+
return {
|
|
79
|
+
s: F,
|
|
80
|
+
n: function n() {
|
|
81
|
+
if (i >= o.length) return {
|
|
82
|
+
done: true
|
|
83
|
+
};
|
|
84
|
+
return {
|
|
85
|
+
done: false,
|
|
86
|
+
value: o[i++]
|
|
87
|
+
};
|
|
88
|
+
},
|
|
89
|
+
e: function e(_e) {
|
|
90
|
+
throw _e;
|
|
91
|
+
},
|
|
92
|
+
f: F
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
96
|
+
}
|
|
97
|
+
var normalCompletion = true,
|
|
98
|
+
didErr = false,
|
|
99
|
+
err;
|
|
100
|
+
return {
|
|
101
|
+
s: function s() {
|
|
102
|
+
it = it.call(o);
|
|
103
|
+
},
|
|
104
|
+
n: function n() {
|
|
105
|
+
var step = it.next();
|
|
106
|
+
normalCompletion = step.done;
|
|
107
|
+
return step;
|
|
108
|
+
},
|
|
109
|
+
e: function e(_e2) {
|
|
110
|
+
didErr = true;
|
|
111
|
+
err = _e2;
|
|
112
|
+
},
|
|
113
|
+
f: function f() {
|
|
114
|
+
try {
|
|
115
|
+
if (!normalCompletion && it["return"] != null) it["return"]();
|
|
116
|
+
} finally {
|
|
117
|
+
if (didErr) throw err;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
function _assertThisInitialized(self) {
|
|
124
|
+
if (self === void 0) {
|
|
125
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
126
|
+
}
|
|
127
|
+
return self;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
function _setPrototypeOf(o, p) {
|
|
131
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
132
|
+
o.__proto__ = p;
|
|
133
|
+
return o;
|
|
134
|
+
};
|
|
135
|
+
return _setPrototypeOf(o, p);
|
|
136
|
+
}
|
|
63
137
|
|
|
64
|
-
function
|
|
138
|
+
function _inherits(subClass, superClass) {
|
|
139
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
140
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
141
|
+
}
|
|
142
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
143
|
+
constructor: {
|
|
144
|
+
value: subClass,
|
|
145
|
+
writable: true,
|
|
146
|
+
configurable: true
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
Object.defineProperty(subClass, "prototype", {
|
|
150
|
+
writable: false
|
|
151
|
+
});
|
|
152
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
153
|
+
}
|
|
65
154
|
|
|
66
|
-
function
|
|
155
|
+
function _getPrototypeOf(o) {
|
|
156
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
157
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
158
|
+
};
|
|
159
|
+
return _getPrototypeOf(o);
|
|
160
|
+
}
|
|
67
161
|
|
|
68
|
-
function
|
|
162
|
+
function _isNativeReflectConstruct() {
|
|
163
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
164
|
+
if (Reflect.construct.sham) return false;
|
|
165
|
+
if (typeof Proxy === "function") return true;
|
|
166
|
+
try {
|
|
167
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
168
|
+
return true;
|
|
169
|
+
} catch (e) {
|
|
170
|
+
return false;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
69
173
|
|
|
70
|
-
function
|
|
174
|
+
function _possibleConstructorReturn(self, call) {
|
|
175
|
+
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
176
|
+
return call;
|
|
177
|
+
} else if (call !== void 0) {
|
|
178
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
179
|
+
}
|
|
180
|
+
return _assertThisInitialized(self);
|
|
181
|
+
}
|
|
71
182
|
|
|
72
|
-
function
|
|
183
|
+
function _createSuper(Derived) {
|
|
184
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
185
|
+
return function _createSuperInternal() {
|
|
186
|
+
var Super = _getPrototypeOf(Derived),
|
|
187
|
+
result;
|
|
188
|
+
if (hasNativeReflectConstruct) {
|
|
189
|
+
var NewTarget = _getPrototypeOf(this).constructor;
|
|
190
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
191
|
+
} else {
|
|
192
|
+
result = Super.apply(this, arguments);
|
|
193
|
+
}
|
|
194
|
+
return _possibleConstructorReturn(this, result);
|
|
195
|
+
};
|
|
196
|
+
}
|
|
73
197
|
|
|
74
|
-
function _classCallCheck
|
|
198
|
+
function _classCallCheck(instance, Constructor) {
|
|
199
|
+
if (!(instance instanceof Constructor)) {
|
|
200
|
+
throw new TypeError("Cannot call a class as a function");
|
|
201
|
+
}
|
|
202
|
+
}
|
|
75
203
|
|
|
76
|
-
function
|
|
204
|
+
function _toPrimitive(input, hint) {
|
|
205
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
206
|
+
var prim = input[Symbol.toPrimitive];
|
|
207
|
+
if (prim !== undefined) {
|
|
208
|
+
var res = prim.call(input, hint || "default");
|
|
209
|
+
if (_typeof(res) !== "object") return res;
|
|
210
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
211
|
+
}
|
|
212
|
+
return (hint === "string" ? String : Number)(input);
|
|
213
|
+
}
|
|
77
214
|
|
|
78
|
-
function
|
|
215
|
+
function _toPropertyKey(arg) {
|
|
216
|
+
var key = _toPrimitive(arg, "string");
|
|
217
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
218
|
+
}
|
|
79
219
|
|
|
80
|
-
function
|
|
220
|
+
function _defineProperties(target, props) {
|
|
221
|
+
for (var i = 0; i < props.length; i++) {
|
|
222
|
+
var descriptor = props[i];
|
|
223
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
224
|
+
descriptor.configurable = true;
|
|
225
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
226
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
230
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
231
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
232
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
233
|
+
writable: false
|
|
234
|
+
});
|
|
235
|
+
return Constructor;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
function _defineProperty(obj, key, value) {
|
|
239
|
+
key = _toPropertyKey(key);
|
|
240
|
+
if (key in obj) {
|
|
241
|
+
Object.defineProperty(obj, key, {
|
|
242
|
+
value: value,
|
|
243
|
+
enumerable: true,
|
|
244
|
+
configurable: true,
|
|
245
|
+
writable: true
|
|
246
|
+
});
|
|
247
|
+
} else {
|
|
248
|
+
obj[key] = value;
|
|
249
|
+
}
|
|
250
|
+
return obj;
|
|
251
|
+
}
|
|
81
252
|
|
|
82
253
|
var TIMEZONE_UNIT_PRIORITY = 10;
|
|
83
254
|
var Setter = /*#__PURE__*/function () {
|
|
84
255
|
function Setter() {
|
|
85
|
-
_classCallCheck
|
|
86
|
-
|
|
87
|
-
_defineProperty
|
|
256
|
+
_classCallCheck(this, Setter);
|
|
257
|
+
_defineProperty(this, "priority", void 0);
|
|
258
|
+
_defineProperty(this, "subPriority", 0);
|
|
88
259
|
}
|
|
89
|
-
|
|
90
|
-
_createClass$w(Setter, [{
|
|
260
|
+
_createClass(Setter, [{
|
|
91
261
|
key: "validate",
|
|
92
262
|
value: function validate(_utcDate, _options) {
|
|
93
263
|
return true;
|
|
94
264
|
}
|
|
95
265
|
}]);
|
|
96
|
-
|
|
97
266
|
return Setter;
|
|
98
267
|
}();
|
|
99
268
|
var ValueSetter = /*#__PURE__*/function (_Setter) {
|
|
100
|
-
_inherits
|
|
101
|
-
|
|
102
|
-
var _super = _createSuper$v(ValueSetter);
|
|
103
|
-
|
|
269
|
+
_inherits(ValueSetter, _Setter);
|
|
270
|
+
var _super = _createSuper(ValueSetter);
|
|
104
271
|
function ValueSetter(value, validateValue, setValue, priority, subPriority) {
|
|
105
272
|
var _this;
|
|
106
|
-
|
|
107
|
-
_classCallCheck$w(this, ValueSetter);
|
|
108
|
-
|
|
273
|
+
_classCallCheck(this, ValueSetter);
|
|
109
274
|
_this = _super.call(this);
|
|
110
275
|
_this.value = value;
|
|
111
276
|
_this.validateValue = validateValue;
|
|
112
277
|
_this.setValue = setValue;
|
|
113
278
|
_this.priority = priority;
|
|
114
|
-
|
|
115
279
|
if (subPriority) {
|
|
116
280
|
_this.subPriority = subPriority;
|
|
117
281
|
}
|
|
118
|
-
|
|
119
282
|
return _this;
|
|
120
283
|
}
|
|
121
|
-
|
|
122
|
-
_createClass$w(ValueSetter, [{
|
|
284
|
+
_createClass(ValueSetter, [{
|
|
123
285
|
key: "validate",
|
|
124
286
|
value: function validate(utcDate, options) {
|
|
125
287
|
return this.validateValue(utcDate, this.value, options);
|
|
@@ -130,68 +292,51 @@ var ValueSetter = /*#__PURE__*/function (_Setter) {
|
|
|
130
292
|
return this.setValue(utcDate, flags, this.value, options);
|
|
131
293
|
}
|
|
132
294
|
}]);
|
|
133
|
-
|
|
134
295
|
return ValueSetter;
|
|
135
296
|
}(Setter);
|
|
136
297
|
var DateToSystemTimezoneSetter = /*#__PURE__*/function (_Setter2) {
|
|
137
|
-
_inherits
|
|
138
|
-
|
|
139
|
-
var _super2 = _createSuper$v(DateToSystemTimezoneSetter);
|
|
140
|
-
|
|
298
|
+
_inherits(DateToSystemTimezoneSetter, _Setter2);
|
|
299
|
+
var _super2 = _createSuper(DateToSystemTimezoneSetter);
|
|
141
300
|
function DateToSystemTimezoneSetter() {
|
|
142
301
|
var _this2;
|
|
143
|
-
|
|
144
|
-
_classCallCheck$w(this, DateToSystemTimezoneSetter);
|
|
145
|
-
|
|
302
|
+
_classCallCheck(this, DateToSystemTimezoneSetter);
|
|
146
303
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
147
304
|
args[_key] = arguments[_key];
|
|
148
305
|
}
|
|
149
|
-
|
|
150
306
|
_this2 = _super2.call.apply(_super2, [this].concat(args));
|
|
151
|
-
|
|
152
|
-
_defineProperty
|
|
153
|
-
|
|
154
|
-
_defineProperty$v(_assertThisInitialized$v(_this2), "subPriority", -1);
|
|
155
|
-
|
|
307
|
+
_defineProperty(_assertThisInitialized(_this2), "priority", TIMEZONE_UNIT_PRIORITY);
|
|
308
|
+
_defineProperty(_assertThisInitialized(_this2), "subPriority", -1);
|
|
156
309
|
return _this2;
|
|
157
310
|
}
|
|
158
|
-
|
|
159
|
-
_createClass$w(DateToSystemTimezoneSetter, [{
|
|
311
|
+
_createClass(DateToSystemTimezoneSetter, [{
|
|
160
312
|
key: "set",
|
|
161
313
|
value: function set(date, flags) {
|
|
162
314
|
if (flags.timestampIsSet) {
|
|
163
315
|
return date;
|
|
164
316
|
}
|
|
165
|
-
|
|
166
317
|
var convertedDate = new Date(0);
|
|
167
318
|
convertedDate.setFullYear(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate());
|
|
168
319
|
convertedDate.setHours(date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds(), date.getUTCMilliseconds());
|
|
169
320
|
return convertedDate;
|
|
170
321
|
}
|
|
171
322
|
}]);
|
|
172
|
-
|
|
173
323
|
return DateToSystemTimezoneSetter;
|
|
174
324
|
}(Setter);
|
|
175
325
|
|
|
176
|
-
function _classCallCheck$v(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
177
|
-
|
|
178
|
-
function _defineProperties$v(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
179
|
-
|
|
180
|
-
function _createClass$v(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$v(Constructor.prototype, protoProps); if (staticProps) _defineProperties$v(Constructor, staticProps); return Constructor; }
|
|
181
326
|
var Parser = /*#__PURE__*/function () {
|
|
182
327
|
function Parser() {
|
|
183
|
-
_classCallCheck
|
|
328
|
+
_classCallCheck(this, Parser);
|
|
329
|
+
_defineProperty(this, "incompatibleTokens", void 0);
|
|
330
|
+
_defineProperty(this, "priority", void 0);
|
|
331
|
+
_defineProperty(this, "subPriority", void 0);
|
|
184
332
|
}
|
|
185
|
-
|
|
186
|
-
_createClass$v(Parser, [{
|
|
333
|
+
_createClass(Parser, [{
|
|
187
334
|
key: "run",
|
|
188
335
|
value: function run(dateString, token, match, options) {
|
|
189
336
|
var result = this.parse(dateString, token, match, options);
|
|
190
|
-
|
|
191
337
|
if (!result) {
|
|
192
338
|
return null;
|
|
193
339
|
}
|
|
194
|
-
|
|
195
340
|
return {
|
|
196
341
|
setter: new ValueSetter(result.value, this.validate, this.set, this.priority, this.subPriority),
|
|
197
342
|
rest: result.rest
|
|
@@ -203,57 +348,24 @@ var Parser = /*#__PURE__*/function () {
|
|
|
203
348
|
return true;
|
|
204
349
|
}
|
|
205
350
|
}]);
|
|
206
|
-
|
|
207
351
|
return Parser;
|
|
208
352
|
}();
|
|
209
353
|
|
|
210
|
-
function _typeof$v(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$v = function _typeof(obj) { return typeof obj; }; } else { _typeof$v = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$v(obj); }
|
|
211
|
-
|
|
212
|
-
function _classCallCheck$u(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
213
|
-
|
|
214
|
-
function _defineProperties$u(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
215
|
-
|
|
216
|
-
function _createClass$u(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$u(Constructor.prototype, protoProps); if (staticProps) _defineProperties$u(Constructor, staticProps); return Constructor; }
|
|
217
|
-
|
|
218
|
-
function _inherits$u(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$u(subClass, superClass); }
|
|
219
|
-
|
|
220
|
-
function _setPrototypeOf$u(o, p) { _setPrototypeOf$u = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$u(o, p); }
|
|
221
|
-
|
|
222
|
-
function _createSuper$u(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$u(); return function _createSuperInternal() { var Super = _getPrototypeOf$u(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$u(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$u(this, result); }; }
|
|
223
|
-
|
|
224
|
-
function _possibleConstructorReturn$u(self, call) { if (call && (_typeof$v(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$u(self); }
|
|
225
|
-
|
|
226
|
-
function _assertThisInitialized$u(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
227
|
-
|
|
228
|
-
function _isNativeReflectConstruct$u() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
229
|
-
|
|
230
|
-
function _getPrototypeOf$u(o) { _getPrototypeOf$u = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$u(o); }
|
|
231
|
-
|
|
232
|
-
function _defineProperty$u(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
233
354
|
var EraParser = /*#__PURE__*/function (_Parser) {
|
|
234
|
-
_inherits
|
|
235
|
-
|
|
236
|
-
var _super = _createSuper$u(EraParser);
|
|
237
|
-
|
|
355
|
+
_inherits(EraParser, _Parser);
|
|
356
|
+
var _super = _createSuper(EraParser);
|
|
238
357
|
function EraParser() {
|
|
239
358
|
var _this;
|
|
240
|
-
|
|
241
|
-
_classCallCheck$u(this, EraParser);
|
|
242
|
-
|
|
359
|
+
_classCallCheck(this, EraParser);
|
|
243
360
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
244
361
|
args[_key] = arguments[_key];
|
|
245
362
|
}
|
|
246
|
-
|
|
247
363
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
248
|
-
|
|
249
|
-
_defineProperty
|
|
250
|
-
|
|
251
|
-
_defineProperty$u(_assertThisInitialized$u(_this), "incompatibleTokens", ['R', 'u', 't', 'T']);
|
|
252
|
-
|
|
364
|
+
_defineProperty(_assertThisInitialized(_this), "priority", 140);
|
|
365
|
+
_defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['R', 'u', 't', 'T']);
|
|
253
366
|
return _this;
|
|
254
367
|
}
|
|
255
|
-
|
|
256
|
-
_createClass$u(EraParser, [{
|
|
368
|
+
_createClass(EraParser, [{
|
|
257
369
|
key: "parse",
|
|
258
370
|
value: function parse(dateString, token, match) {
|
|
259
371
|
switch (token) {
|
|
@@ -267,13 +379,11 @@ var EraParser = /*#__PURE__*/function (_Parser) {
|
|
|
267
379
|
width: 'narrow'
|
|
268
380
|
});
|
|
269
381
|
// A, B
|
|
270
|
-
|
|
271
382
|
case 'GGGGG':
|
|
272
383
|
return match.era(dateString, {
|
|
273
384
|
width: 'narrow'
|
|
274
385
|
});
|
|
275
386
|
// Anno Domini, Before Christ
|
|
276
|
-
|
|
277
387
|
case 'GGGG':
|
|
278
388
|
default:
|
|
279
389
|
return match.era(dateString, {
|
|
@@ -294,7 +404,6 @@ var EraParser = /*#__PURE__*/function (_Parser) {
|
|
|
294
404
|
return date;
|
|
295
405
|
}
|
|
296
406
|
}]);
|
|
297
|
-
|
|
298
407
|
return EraParser;
|
|
299
408
|
}(Parser);
|
|
300
409
|
|
|
@@ -319,6 +428,7 @@ var numericPatterns = {
|
|
|
319
428
|
// 0 to 59
|
|
320
429
|
second: /^[0-5]?\d/,
|
|
321
430
|
// 0 to 59
|
|
431
|
+
|
|
322
432
|
singleDigit: /^\d/,
|
|
323
433
|
// 0 to 9
|
|
324
434
|
twoDigits: /^\d{1,2}/,
|
|
@@ -327,6 +437,7 @@ var numericPatterns = {
|
|
|
327
437
|
// 0 to 999
|
|
328
438
|
fourDigits: /^\d{1,4}/,
|
|
329
439
|
// 0 to 9999
|
|
440
|
+
|
|
330
441
|
anyDigitsSigned: /^-?\d+/,
|
|
331
442
|
singleDigitSigned: /^-?\d/,
|
|
332
443
|
// 0 to 9, -0 to -9
|
|
@@ -335,8 +446,8 @@ var numericPatterns = {
|
|
|
335
446
|
threeDigitsSigned: /^-?\d{1,3}/,
|
|
336
447
|
// 0 to 999, -0 to -999
|
|
337
448
|
fourDigitsSigned: /^-?\d{1,4}/ // 0 to 9999, -0 to -9999
|
|
338
|
-
|
|
339
449
|
};
|
|
450
|
+
|
|
340
451
|
var timezonePatterns = {
|
|
341
452
|
basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
|
|
342
453
|
basic: /^([+-])(\d{2})(\d{2})|Z/,
|
|
@@ -349,7 +460,6 @@ function mapValue(parseFnResult, mapFn) {
|
|
|
349
460
|
if (!parseFnResult) {
|
|
350
461
|
return parseFnResult;
|
|
351
462
|
}
|
|
352
|
-
|
|
353
463
|
return {
|
|
354
464
|
value: mapFn(parseFnResult.value),
|
|
355
465
|
rest: parseFnResult.rest
|
|
@@ -357,11 +467,9 @@ function mapValue(parseFnResult, mapFn) {
|
|
|
357
467
|
}
|
|
358
468
|
function parseNumericPattern(pattern, dateString) {
|
|
359
469
|
var matchResult = dateString.match(pattern);
|
|
360
|
-
|
|
361
470
|
if (!matchResult) {
|
|
362
471
|
return null;
|
|
363
472
|
}
|
|
364
|
-
|
|
365
473
|
return {
|
|
366
474
|
value: parseInt(matchResult[0], 10),
|
|
367
475
|
rest: dateString.slice(matchResult[0].length)
|
|
@@ -369,19 +477,17 @@ function parseNumericPattern(pattern, dateString) {
|
|
|
369
477
|
}
|
|
370
478
|
function parseTimezonePattern(pattern, dateString) {
|
|
371
479
|
var matchResult = dateString.match(pattern);
|
|
372
|
-
|
|
373
480
|
if (!matchResult) {
|
|
374
481
|
return null;
|
|
375
|
-
}
|
|
376
|
-
|
|
482
|
+
}
|
|
377
483
|
|
|
484
|
+
// Input is 'Z'
|
|
378
485
|
if (matchResult[0] === 'Z') {
|
|
379
486
|
return {
|
|
380
487
|
value: 0,
|
|
381
488
|
rest: dateString.slice(1)
|
|
382
489
|
};
|
|
383
490
|
}
|
|
384
|
-
|
|
385
491
|
var sign = matchResult[1] === '+' ? 1 : -1;
|
|
386
492
|
var hours = matchResult[2] ? parseInt(matchResult[2], 10) : 0;
|
|
387
493
|
var minutes = matchResult[3] ? parseInt(matchResult[3], 10) : 0;
|
|
@@ -398,16 +504,12 @@ function parseNDigits(n, dateString) {
|
|
|
398
504
|
switch (n) {
|
|
399
505
|
case 1:
|
|
400
506
|
return parseNumericPattern(numericPatterns.singleDigit, dateString);
|
|
401
|
-
|
|
402
507
|
case 2:
|
|
403
508
|
return parseNumericPattern(numericPatterns.twoDigits, dateString);
|
|
404
|
-
|
|
405
509
|
case 3:
|
|
406
510
|
return parseNumericPattern(numericPatterns.threeDigits, dateString);
|
|
407
|
-
|
|
408
511
|
case 4:
|
|
409
512
|
return parseNumericPattern(numericPatterns.fourDigits, dateString);
|
|
410
|
-
|
|
411
513
|
default:
|
|
412
514
|
return parseNumericPattern(new RegExp('^\\d{1,' + n + '}'), dateString);
|
|
413
515
|
}
|
|
@@ -416,16 +518,12 @@ function parseNDigitsSigned(n, dateString) {
|
|
|
416
518
|
switch (n) {
|
|
417
519
|
case 1:
|
|
418
520
|
return parseNumericPattern(numericPatterns.singleDigitSigned, dateString);
|
|
419
|
-
|
|
420
521
|
case 2:
|
|
421
522
|
return parseNumericPattern(numericPatterns.twoDigitsSigned, dateString);
|
|
422
|
-
|
|
423
523
|
case 3:
|
|
424
524
|
return parseNumericPattern(numericPatterns.threeDigitsSigned, dateString);
|
|
425
|
-
|
|
426
525
|
case 4:
|
|
427
526
|
return parseNumericPattern(numericPatterns.fourDigitsSigned, dateString);
|
|
428
|
-
|
|
429
527
|
default:
|
|
430
528
|
return parseNumericPattern(new RegExp('^-?\\d{1,' + n + '}'), dateString);
|
|
431
529
|
}
|
|
@@ -434,15 +532,12 @@ function dayPeriodEnumToHours(dayPeriod) {
|
|
|
434
532
|
switch (dayPeriod) {
|
|
435
533
|
case 'morning':
|
|
436
534
|
return 4;
|
|
437
|
-
|
|
438
535
|
case 'evening':
|
|
439
536
|
return 17;
|
|
440
|
-
|
|
441
537
|
case 'pm':
|
|
442
538
|
case 'noon':
|
|
443
539
|
case 'afternoon':
|
|
444
540
|
return 12;
|
|
445
|
-
|
|
446
541
|
case 'am':
|
|
447
542
|
case 'midnight':
|
|
448
543
|
case 'night':
|
|
@@ -451,14 +546,13 @@ function dayPeriodEnumToHours(dayPeriod) {
|
|
|
451
546
|
}
|
|
452
547
|
}
|
|
453
548
|
function normalizeTwoDigitYear(twoDigitYear, currentYear) {
|
|
454
|
-
var isCommonEra = currentYear > 0;
|
|
549
|
+
var isCommonEra = currentYear > 0;
|
|
550
|
+
// Absolute number of the current year:
|
|
455
551
|
// 1 -> 1 AC
|
|
456
552
|
// 0 -> 1 BC
|
|
457
553
|
// -1 -> 2 BC
|
|
458
|
-
|
|
459
554
|
var absCurrentYear = isCommonEra ? currentYear : 1 - currentYear;
|
|
460
555
|
var result;
|
|
461
|
-
|
|
462
556
|
if (absCurrentYear <= 50) {
|
|
463
557
|
result = twoDigitYear || 100;
|
|
464
558
|
} else {
|
|
@@ -467,36 +561,12 @@ function normalizeTwoDigitYear(twoDigitYear, currentYear) {
|
|
|
467
561
|
var isPreviousCentury = twoDigitYear >= rangeEnd % 100;
|
|
468
562
|
result = twoDigitYear + rangeEndCentury - (isPreviousCentury ? 100 : 0);
|
|
469
563
|
}
|
|
470
|
-
|
|
471
564
|
return isCommonEra ? result : 1 - result;
|
|
472
565
|
}
|
|
473
566
|
function isLeapYearIndex(year) {
|
|
474
567
|
return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0;
|
|
475
568
|
}
|
|
476
569
|
|
|
477
|
-
function _typeof$u(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$u = function _typeof(obj) { return typeof obj; }; } else { _typeof$u = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$u(obj); }
|
|
478
|
-
|
|
479
|
-
function _classCallCheck$t(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
480
|
-
|
|
481
|
-
function _defineProperties$t(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
482
|
-
|
|
483
|
-
function _createClass$t(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$t(Constructor.prototype, protoProps); if (staticProps) _defineProperties$t(Constructor, staticProps); return Constructor; }
|
|
484
|
-
|
|
485
|
-
function _inherits$t(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$t(subClass, superClass); }
|
|
486
|
-
|
|
487
|
-
function _setPrototypeOf$t(o, p) { _setPrototypeOf$t = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$t(o, p); }
|
|
488
|
-
|
|
489
|
-
function _createSuper$t(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$t(); return function _createSuperInternal() { var Super = _getPrototypeOf$t(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$t(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$t(this, result); }; }
|
|
490
|
-
|
|
491
|
-
function _possibleConstructorReturn$t(self, call) { if (call && (_typeof$u(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$t(self); }
|
|
492
|
-
|
|
493
|
-
function _assertThisInitialized$t(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
494
|
-
|
|
495
|
-
function _isNativeReflectConstruct$t() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
496
|
-
|
|
497
|
-
function _getPrototypeOf$t(o) { _getPrototypeOf$t = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$t(o); }
|
|
498
|
-
|
|
499
|
-
function _defineProperty$t(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
500
570
|
// From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns
|
|
501
571
|
// | Year | y | yy | yyy | yyyy | yyyyy |
|
|
502
572
|
// |----------|-------|----|-------|-------|-------|
|
|
@@ -506,29 +576,20 @@ function _defineProperty$t(obj, key, value) { if (key in obj) { Object.definePro
|
|
|
506
576
|
// | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
|
|
507
577
|
// | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
|
|
508
578
|
var YearParser = /*#__PURE__*/function (_Parser) {
|
|
509
|
-
_inherits
|
|
510
|
-
|
|
511
|
-
var _super = _createSuper$t(YearParser);
|
|
512
|
-
|
|
579
|
+
_inherits(YearParser, _Parser);
|
|
580
|
+
var _super = _createSuper(YearParser);
|
|
513
581
|
function YearParser() {
|
|
514
582
|
var _this;
|
|
515
|
-
|
|
516
|
-
_classCallCheck$t(this, YearParser);
|
|
517
|
-
|
|
583
|
+
_classCallCheck(this, YearParser);
|
|
518
584
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
519
585
|
args[_key] = arguments[_key];
|
|
520
586
|
}
|
|
521
|
-
|
|
522
587
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
523
|
-
|
|
524
|
-
_defineProperty
|
|
525
|
-
|
|
526
|
-
_defineProperty$t(_assertThisInitialized$t(_this), "incompatibleTokens", ['Y', 'R', 'u', 'w', 'I', 'i', 'e', 'c', 't', 'T']);
|
|
527
|
-
|
|
588
|
+
_defineProperty(_assertThisInitialized(_this), "priority", 130);
|
|
589
|
+
_defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['Y', 'R', 'u', 'w', 'I', 'i', 'e', 'c', 't', 'T']);
|
|
528
590
|
return _this;
|
|
529
591
|
}
|
|
530
|
-
|
|
531
|
-
_createClass$t(YearParser, [{
|
|
592
|
+
_createClass(YearParser, [{
|
|
532
593
|
key: "parse",
|
|
533
594
|
value: function parse(dateString, token, match) {
|
|
534
595
|
var valueCallback = function valueCallback(year) {
|
|
@@ -537,16 +598,13 @@ var YearParser = /*#__PURE__*/function (_Parser) {
|
|
|
537
598
|
isTwoDigitYear: token === 'yy'
|
|
538
599
|
};
|
|
539
600
|
};
|
|
540
|
-
|
|
541
601
|
switch (token) {
|
|
542
602
|
case 'y':
|
|
543
603
|
return mapValue(parseNDigits(4, dateString), valueCallback);
|
|
544
|
-
|
|
545
604
|
case 'yo':
|
|
546
605
|
return mapValue(match.ordinalNumber(dateString, {
|
|
547
606
|
unit: 'year'
|
|
548
607
|
}), valueCallback);
|
|
549
|
-
|
|
550
608
|
default:
|
|
551
609
|
return mapValue(parseNDigits(token.length, dateString), valueCallback);
|
|
552
610
|
}
|
|
@@ -560,72 +618,37 @@ var YearParser = /*#__PURE__*/function (_Parser) {
|
|
|
560
618
|
key: "set",
|
|
561
619
|
value: function set(date, flags, value) {
|
|
562
620
|
var currentYear = date.getUTCFullYear();
|
|
563
|
-
|
|
564
621
|
if (value.isTwoDigitYear) {
|
|
565
622
|
var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);
|
|
566
623
|
date.setUTCFullYear(normalizedTwoDigitYear, 0, 1);
|
|
567
624
|
date.setUTCHours(0, 0, 0, 0);
|
|
568
625
|
return date;
|
|
569
626
|
}
|
|
570
|
-
|
|
571
627
|
var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year;
|
|
572
628
|
date.setUTCFullYear(year, 0, 1);
|
|
573
629
|
date.setUTCHours(0, 0, 0, 0);
|
|
574
630
|
return date;
|
|
575
631
|
}
|
|
576
632
|
}]);
|
|
577
|
-
|
|
578
633
|
return YearParser;
|
|
579
634
|
}(Parser);
|
|
580
635
|
|
|
581
|
-
function _typeof$t(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$t = function _typeof(obj) { return typeof obj; }; } else { _typeof$t = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$t(obj); }
|
|
582
|
-
|
|
583
|
-
function _classCallCheck$s(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
584
|
-
|
|
585
|
-
function _defineProperties$s(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
586
|
-
|
|
587
|
-
function _createClass$s(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$s(Constructor.prototype, protoProps); if (staticProps) _defineProperties$s(Constructor, staticProps); return Constructor; }
|
|
588
|
-
|
|
589
|
-
function _inherits$s(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$s(subClass, superClass); }
|
|
590
|
-
|
|
591
|
-
function _setPrototypeOf$s(o, p) { _setPrototypeOf$s = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$s(o, p); }
|
|
592
|
-
|
|
593
|
-
function _createSuper$s(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$s(); return function _createSuperInternal() { var Super = _getPrototypeOf$s(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$s(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$s(this, result); }; }
|
|
594
|
-
|
|
595
|
-
function _possibleConstructorReturn$s(self, call) { if (call && (_typeof$t(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$s(self); }
|
|
596
|
-
|
|
597
|
-
function _assertThisInitialized$s(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
598
|
-
|
|
599
|
-
function _isNativeReflectConstruct$s() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
600
|
-
|
|
601
|
-
function _getPrototypeOf$s(o) { _getPrototypeOf$s = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$s(o); }
|
|
602
|
-
|
|
603
|
-
function _defineProperty$s(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
604
636
|
// Local week-numbering year
|
|
605
637
|
var LocalWeekYearParser = /*#__PURE__*/function (_Parser) {
|
|
606
|
-
_inherits
|
|
607
|
-
|
|
608
|
-
var _super = _createSuper$s(LocalWeekYearParser);
|
|
609
|
-
|
|
638
|
+
_inherits(LocalWeekYearParser, _Parser);
|
|
639
|
+
var _super = _createSuper(LocalWeekYearParser);
|
|
610
640
|
function LocalWeekYearParser() {
|
|
611
641
|
var _this;
|
|
612
|
-
|
|
613
|
-
_classCallCheck$s(this, LocalWeekYearParser);
|
|
614
|
-
|
|
642
|
+
_classCallCheck(this, LocalWeekYearParser);
|
|
615
643
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
616
644
|
args[_key] = arguments[_key];
|
|
617
645
|
}
|
|
618
|
-
|
|
619
646
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
620
|
-
|
|
621
|
-
_defineProperty
|
|
622
|
-
|
|
623
|
-
_defineProperty$s(_assertThisInitialized$s(_this), "incompatibleTokens", ['y', 'R', 'u', 'Q', 'q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']);
|
|
624
|
-
|
|
647
|
+
_defineProperty(_assertThisInitialized(_this), "priority", 130);
|
|
648
|
+
_defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['y', 'R', 'u', 'Q', 'q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']);
|
|
625
649
|
return _this;
|
|
626
650
|
}
|
|
627
|
-
|
|
628
|
-
_createClass$s(LocalWeekYearParser, [{
|
|
651
|
+
_createClass(LocalWeekYearParser, [{
|
|
629
652
|
key: "parse",
|
|
630
653
|
value: function parse(dateString, token, match) {
|
|
631
654
|
var valueCallback = function valueCallback(year) {
|
|
@@ -634,16 +657,13 @@ var LocalWeekYearParser = /*#__PURE__*/function (_Parser) {
|
|
|
634
657
|
isTwoDigitYear: token === 'YY'
|
|
635
658
|
};
|
|
636
659
|
};
|
|
637
|
-
|
|
638
660
|
switch (token) {
|
|
639
661
|
case 'Y':
|
|
640
662
|
return mapValue(parseNDigits(4, dateString), valueCallback);
|
|
641
|
-
|
|
642
663
|
case 'Yo':
|
|
643
664
|
return mapValue(match.ordinalNumber(dateString, {
|
|
644
665
|
unit: 'year'
|
|
645
666
|
}), valueCallback);
|
|
646
|
-
|
|
647
667
|
default:
|
|
648
668
|
return mapValue(parseNDigits(token.length, dateString), valueCallback);
|
|
649
669
|
}
|
|
@@ -657,78 +677,41 @@ var LocalWeekYearParser = /*#__PURE__*/function (_Parser) {
|
|
|
657
677
|
key: "set",
|
|
658
678
|
value: function set(date, flags, value, options) {
|
|
659
679
|
var currentYear = getUTCWeekYear(date, options);
|
|
660
|
-
|
|
661
680
|
if (value.isTwoDigitYear) {
|
|
662
681
|
var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);
|
|
663
682
|
date.setUTCFullYear(normalizedTwoDigitYear, 0, options.firstWeekContainsDate);
|
|
664
683
|
date.setUTCHours(0, 0, 0, 0);
|
|
665
684
|
return startOfUTCWeek(date, options);
|
|
666
685
|
}
|
|
667
|
-
|
|
668
686
|
var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year;
|
|
669
687
|
date.setUTCFullYear(year, 0, options.firstWeekContainsDate);
|
|
670
688
|
date.setUTCHours(0, 0, 0, 0);
|
|
671
689
|
return startOfUTCWeek(date, options);
|
|
672
690
|
}
|
|
673
691
|
}]);
|
|
674
|
-
|
|
675
692
|
return LocalWeekYearParser;
|
|
676
693
|
}(Parser);
|
|
677
694
|
|
|
678
|
-
function _typeof$s(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$s = function _typeof(obj) { return typeof obj; }; } else { _typeof$s = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$s(obj); }
|
|
679
|
-
|
|
680
|
-
function _classCallCheck$r(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
681
|
-
|
|
682
|
-
function _defineProperties$r(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
683
|
-
|
|
684
|
-
function _createClass$r(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$r(Constructor.prototype, protoProps); if (staticProps) _defineProperties$r(Constructor, staticProps); return Constructor; }
|
|
685
|
-
|
|
686
|
-
function _inherits$r(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$r(subClass, superClass); }
|
|
687
|
-
|
|
688
|
-
function _setPrototypeOf$r(o, p) { _setPrototypeOf$r = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$r(o, p); }
|
|
689
|
-
|
|
690
|
-
function _createSuper$r(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$r(); return function _createSuperInternal() { var Super = _getPrototypeOf$r(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$r(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$r(this, result); }; }
|
|
691
|
-
|
|
692
|
-
function _possibleConstructorReturn$r(self, call) { if (call && (_typeof$s(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$r(self); }
|
|
693
|
-
|
|
694
|
-
function _assertThisInitialized$r(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
695
|
-
|
|
696
|
-
function _isNativeReflectConstruct$r() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
697
|
-
|
|
698
|
-
function _getPrototypeOf$r(o) { _getPrototypeOf$r = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$r(o); }
|
|
699
|
-
|
|
700
|
-
function _defineProperty$r(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
701
|
-
|
|
702
695
|
var ISOWeekYearParser = /*#__PURE__*/function (_Parser) {
|
|
703
|
-
_inherits
|
|
704
|
-
|
|
705
|
-
var _super = _createSuper$r(ISOWeekYearParser);
|
|
706
|
-
|
|
696
|
+
_inherits(ISOWeekYearParser, _Parser);
|
|
697
|
+
var _super = _createSuper(ISOWeekYearParser);
|
|
707
698
|
function ISOWeekYearParser() {
|
|
708
699
|
var _this;
|
|
709
|
-
|
|
710
|
-
_classCallCheck$r(this, ISOWeekYearParser);
|
|
711
|
-
|
|
700
|
+
_classCallCheck(this, ISOWeekYearParser);
|
|
712
701
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
713
702
|
args[_key] = arguments[_key];
|
|
714
703
|
}
|
|
715
|
-
|
|
716
704
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
717
|
-
|
|
718
|
-
_defineProperty
|
|
719
|
-
|
|
720
|
-
_defineProperty$r(_assertThisInitialized$r(_this), "incompatibleTokens", ['G', 'y', 'Y', 'u', 'Q', 'q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']);
|
|
721
|
-
|
|
705
|
+
_defineProperty(_assertThisInitialized(_this), "priority", 130);
|
|
706
|
+
_defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['G', 'y', 'Y', 'u', 'Q', 'q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']);
|
|
722
707
|
return _this;
|
|
723
708
|
}
|
|
724
|
-
|
|
725
|
-
_createClass$r(ISOWeekYearParser, [{
|
|
709
|
+
_createClass(ISOWeekYearParser, [{
|
|
726
710
|
key: "parse",
|
|
727
711
|
value: function parse(dateString, token) {
|
|
728
712
|
if (token === 'R') {
|
|
729
713
|
return parseNDigitsSigned(4, dateString);
|
|
730
714
|
}
|
|
731
|
-
|
|
732
715
|
return parseNDigitsSigned(token.length, dateString);
|
|
733
716
|
}
|
|
734
717
|
}, {
|
|
@@ -740,63 +723,29 @@ var ISOWeekYearParser = /*#__PURE__*/function (_Parser) {
|
|
|
740
723
|
return startOfUTCISOWeek(firstWeekOfYear);
|
|
741
724
|
}
|
|
742
725
|
}]);
|
|
743
|
-
|
|
744
726
|
return ISOWeekYearParser;
|
|
745
727
|
}(Parser);
|
|
746
728
|
|
|
747
|
-
function _typeof$r(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$r = function _typeof(obj) { return typeof obj; }; } else { _typeof$r = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$r(obj); }
|
|
748
|
-
|
|
749
|
-
function _classCallCheck$q(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
750
|
-
|
|
751
|
-
function _defineProperties$q(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
752
|
-
|
|
753
|
-
function _createClass$q(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$q(Constructor.prototype, protoProps); if (staticProps) _defineProperties$q(Constructor, staticProps); return Constructor; }
|
|
754
|
-
|
|
755
|
-
function _inherits$q(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$q(subClass, superClass); }
|
|
756
|
-
|
|
757
|
-
function _setPrototypeOf$q(o, p) { _setPrototypeOf$q = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$q(o, p); }
|
|
758
|
-
|
|
759
|
-
function _createSuper$q(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$q(); return function _createSuperInternal() { var Super = _getPrototypeOf$q(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$q(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$q(this, result); }; }
|
|
760
|
-
|
|
761
|
-
function _possibleConstructorReturn$q(self, call) { if (call && (_typeof$r(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$q(self); }
|
|
762
|
-
|
|
763
|
-
function _assertThisInitialized$q(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
764
|
-
|
|
765
|
-
function _isNativeReflectConstruct$q() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
766
|
-
|
|
767
|
-
function _getPrototypeOf$q(o) { _getPrototypeOf$q = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$q(o); }
|
|
768
|
-
|
|
769
|
-
function _defineProperty$q(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
770
729
|
var ExtendedYearParser = /*#__PURE__*/function (_Parser) {
|
|
771
|
-
_inherits
|
|
772
|
-
|
|
773
|
-
var _super = _createSuper$q(ExtendedYearParser);
|
|
774
|
-
|
|
730
|
+
_inherits(ExtendedYearParser, _Parser);
|
|
731
|
+
var _super = _createSuper(ExtendedYearParser);
|
|
775
732
|
function ExtendedYearParser() {
|
|
776
733
|
var _this;
|
|
777
|
-
|
|
778
|
-
_classCallCheck$q(this, ExtendedYearParser);
|
|
779
|
-
|
|
734
|
+
_classCallCheck(this, ExtendedYearParser);
|
|
780
735
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
781
736
|
args[_key] = arguments[_key];
|
|
782
737
|
}
|
|
783
|
-
|
|
784
738
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
785
|
-
|
|
786
|
-
_defineProperty
|
|
787
|
-
|
|
788
|
-
_defineProperty$q(_assertThisInitialized$q(_this), "incompatibleTokens", ['G', 'y', 'Y', 'R', 'w', 'I', 'i', 'e', 'c', 't', 'T']);
|
|
789
|
-
|
|
739
|
+
_defineProperty(_assertThisInitialized(_this), "priority", 130);
|
|
740
|
+
_defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['G', 'y', 'Y', 'R', 'w', 'I', 'i', 'e', 'c', 't', 'T']);
|
|
790
741
|
return _this;
|
|
791
742
|
}
|
|
792
|
-
|
|
793
|
-
_createClass$q(ExtendedYearParser, [{
|
|
743
|
+
_createClass(ExtendedYearParser, [{
|
|
794
744
|
key: "parse",
|
|
795
745
|
value: function parse(dateString, token) {
|
|
796
746
|
if (token === 'u') {
|
|
797
747
|
return parseNDigitsSigned(4, dateString);
|
|
798
748
|
}
|
|
799
|
-
|
|
800
749
|
return parseNDigitsSigned(token.length, dateString);
|
|
801
750
|
}
|
|
802
751
|
}, {
|
|
@@ -807,57 +756,24 @@ var ExtendedYearParser = /*#__PURE__*/function (_Parser) {
|
|
|
807
756
|
return date;
|
|
808
757
|
}
|
|
809
758
|
}]);
|
|
810
|
-
|
|
811
759
|
return ExtendedYearParser;
|
|
812
760
|
}(Parser);
|
|
813
761
|
|
|
814
|
-
function _typeof$q(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$q = function _typeof(obj) { return typeof obj; }; } else { _typeof$q = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$q(obj); }
|
|
815
|
-
|
|
816
|
-
function _classCallCheck$p(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
817
|
-
|
|
818
|
-
function _defineProperties$p(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
819
|
-
|
|
820
|
-
function _createClass$p(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$p(Constructor.prototype, protoProps); if (staticProps) _defineProperties$p(Constructor, staticProps); return Constructor; }
|
|
821
|
-
|
|
822
|
-
function _inherits$p(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$p(subClass, superClass); }
|
|
823
|
-
|
|
824
|
-
function _setPrototypeOf$p(o, p) { _setPrototypeOf$p = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$p(o, p); }
|
|
825
|
-
|
|
826
|
-
function _createSuper$p(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$p(); return function _createSuperInternal() { var Super = _getPrototypeOf$p(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$p(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$p(this, result); }; }
|
|
827
|
-
|
|
828
|
-
function _possibleConstructorReturn$p(self, call) { if (call && (_typeof$q(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$p(self); }
|
|
829
|
-
|
|
830
|
-
function _assertThisInitialized$p(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
831
|
-
|
|
832
|
-
function _isNativeReflectConstruct$p() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
833
|
-
|
|
834
|
-
function _getPrototypeOf$p(o) { _getPrototypeOf$p = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$p(o); }
|
|
835
|
-
|
|
836
|
-
function _defineProperty$p(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
837
762
|
var QuarterParser = /*#__PURE__*/function (_Parser) {
|
|
838
|
-
_inherits
|
|
839
|
-
|
|
840
|
-
var _super = _createSuper$p(QuarterParser);
|
|
841
|
-
|
|
763
|
+
_inherits(QuarterParser, _Parser);
|
|
764
|
+
var _super = _createSuper(QuarterParser);
|
|
842
765
|
function QuarterParser() {
|
|
843
766
|
var _this;
|
|
844
|
-
|
|
845
|
-
_classCallCheck$p(this, QuarterParser);
|
|
846
|
-
|
|
767
|
+
_classCallCheck(this, QuarterParser);
|
|
847
768
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
848
769
|
args[_key] = arguments[_key];
|
|
849
770
|
}
|
|
850
|
-
|
|
851
771
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
852
|
-
|
|
853
|
-
_defineProperty
|
|
854
|
-
|
|
855
|
-
_defineProperty$p(_assertThisInitialized$p(_this), "incompatibleTokens", ['Y', 'R', 'q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']);
|
|
856
|
-
|
|
772
|
+
_defineProperty(_assertThisInitialized(_this), "priority", 120);
|
|
773
|
+
_defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['Y', 'R', 'q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']);
|
|
857
774
|
return _this;
|
|
858
775
|
}
|
|
859
|
-
|
|
860
|
-
_createClass$p(QuarterParser, [{
|
|
776
|
+
_createClass(QuarterParser, [{
|
|
861
777
|
key: "parse",
|
|
862
778
|
value: function parse(dateString, token, match) {
|
|
863
779
|
switch (token) {
|
|
@@ -867,13 +783,11 @@ var QuarterParser = /*#__PURE__*/function (_Parser) {
|
|
|
867
783
|
// 01, 02, 03, 04
|
|
868
784
|
return parseNDigits(token.length, dateString);
|
|
869
785
|
// 1st, 2nd, 3rd, 4th
|
|
870
|
-
|
|
871
786
|
case 'Qo':
|
|
872
787
|
return match.ordinalNumber(dateString, {
|
|
873
788
|
unit: 'quarter'
|
|
874
789
|
});
|
|
875
790
|
// Q1, Q2, Q3, Q4
|
|
876
|
-
|
|
877
791
|
case 'QQQ':
|
|
878
792
|
return match.quarter(dateString, {
|
|
879
793
|
width: 'abbreviated',
|
|
@@ -883,14 +797,12 @@ var QuarterParser = /*#__PURE__*/function (_Parser) {
|
|
|
883
797
|
context: 'formatting'
|
|
884
798
|
});
|
|
885
799
|
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
886
|
-
|
|
887
800
|
case 'QQQQQ':
|
|
888
801
|
return match.quarter(dateString, {
|
|
889
802
|
width: 'narrow',
|
|
890
803
|
context: 'formatting'
|
|
891
804
|
});
|
|
892
805
|
// 1st quarter, 2nd quarter, ...
|
|
893
|
-
|
|
894
806
|
case 'QQQQ':
|
|
895
807
|
default:
|
|
896
808
|
return match.quarter(dateString, {
|
|
@@ -918,57 +830,24 @@ var QuarterParser = /*#__PURE__*/function (_Parser) {
|
|
|
918
830
|
return date;
|
|
919
831
|
}
|
|
920
832
|
}]);
|
|
921
|
-
|
|
922
833
|
return QuarterParser;
|
|
923
834
|
}(Parser);
|
|
924
835
|
|
|
925
|
-
function _typeof$p(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$p = function _typeof(obj) { return typeof obj; }; } else { _typeof$p = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$p(obj); }
|
|
926
|
-
|
|
927
|
-
function _classCallCheck$o(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
928
|
-
|
|
929
|
-
function _defineProperties$o(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
930
|
-
|
|
931
|
-
function _createClass$o(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$o(Constructor.prototype, protoProps); if (staticProps) _defineProperties$o(Constructor, staticProps); return Constructor; }
|
|
932
|
-
|
|
933
|
-
function _inherits$o(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$o(subClass, superClass); }
|
|
934
|
-
|
|
935
|
-
function _setPrototypeOf$o(o, p) { _setPrototypeOf$o = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$o(o, p); }
|
|
936
|
-
|
|
937
|
-
function _createSuper$o(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$o(); return function _createSuperInternal() { var Super = _getPrototypeOf$o(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$o(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$o(this, result); }; }
|
|
938
|
-
|
|
939
|
-
function _possibleConstructorReturn$o(self, call) { if (call && (_typeof$p(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$o(self); }
|
|
940
|
-
|
|
941
|
-
function _assertThisInitialized$o(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
942
|
-
|
|
943
|
-
function _isNativeReflectConstruct$o() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
944
|
-
|
|
945
|
-
function _getPrototypeOf$o(o) { _getPrototypeOf$o = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$o(o); }
|
|
946
|
-
|
|
947
|
-
function _defineProperty$o(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
948
836
|
var StandAloneQuarterParser = /*#__PURE__*/function (_Parser) {
|
|
949
|
-
_inherits
|
|
950
|
-
|
|
951
|
-
var _super = _createSuper$o(StandAloneQuarterParser);
|
|
952
|
-
|
|
837
|
+
_inherits(StandAloneQuarterParser, _Parser);
|
|
838
|
+
var _super = _createSuper(StandAloneQuarterParser);
|
|
953
839
|
function StandAloneQuarterParser() {
|
|
954
840
|
var _this;
|
|
955
|
-
|
|
956
|
-
_classCallCheck$o(this, StandAloneQuarterParser);
|
|
957
|
-
|
|
841
|
+
_classCallCheck(this, StandAloneQuarterParser);
|
|
958
842
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
959
843
|
args[_key] = arguments[_key];
|
|
960
844
|
}
|
|
961
|
-
|
|
962
845
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
963
|
-
|
|
964
|
-
_defineProperty
|
|
965
|
-
|
|
966
|
-
_defineProperty$o(_assertThisInitialized$o(_this), "incompatibleTokens", ['Y', 'R', 'Q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']);
|
|
967
|
-
|
|
846
|
+
_defineProperty(_assertThisInitialized(_this), "priority", 120);
|
|
847
|
+
_defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['Y', 'R', 'Q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']);
|
|
968
848
|
return _this;
|
|
969
849
|
}
|
|
970
|
-
|
|
971
|
-
_createClass$o(StandAloneQuarterParser, [{
|
|
850
|
+
_createClass(StandAloneQuarterParser, [{
|
|
972
851
|
key: "parse",
|
|
973
852
|
value: function parse(dateString, token, match) {
|
|
974
853
|
switch (token) {
|
|
@@ -978,13 +857,11 @@ var StandAloneQuarterParser = /*#__PURE__*/function (_Parser) {
|
|
|
978
857
|
// 01, 02, 03, 04
|
|
979
858
|
return parseNDigits(token.length, dateString);
|
|
980
859
|
// 1st, 2nd, 3rd, 4th
|
|
981
|
-
|
|
982
860
|
case 'qo':
|
|
983
861
|
return match.ordinalNumber(dateString, {
|
|
984
862
|
unit: 'quarter'
|
|
985
863
|
});
|
|
986
864
|
// Q1, Q2, Q3, Q4
|
|
987
|
-
|
|
988
865
|
case 'qqq':
|
|
989
866
|
return match.quarter(dateString, {
|
|
990
867
|
width: 'abbreviated',
|
|
@@ -994,14 +871,12 @@ var StandAloneQuarterParser = /*#__PURE__*/function (_Parser) {
|
|
|
994
871
|
context: 'standalone'
|
|
995
872
|
});
|
|
996
873
|
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
997
|
-
|
|
998
874
|
case 'qqqqq':
|
|
999
875
|
return match.quarter(dateString, {
|
|
1000
876
|
width: 'narrow',
|
|
1001
877
|
context: 'standalone'
|
|
1002
878
|
});
|
|
1003
879
|
// 1st quarter, 2nd quarter, ...
|
|
1004
|
-
|
|
1005
880
|
case 'qqqq':
|
|
1006
881
|
default:
|
|
1007
882
|
return match.quarter(dateString, {
|
|
@@ -1029,79 +904,42 @@ var StandAloneQuarterParser = /*#__PURE__*/function (_Parser) {
|
|
|
1029
904
|
return date;
|
|
1030
905
|
}
|
|
1031
906
|
}]);
|
|
1032
|
-
|
|
1033
907
|
return StandAloneQuarterParser;
|
|
1034
908
|
}(Parser);
|
|
1035
909
|
|
|
1036
|
-
function _typeof$o(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$o = function _typeof(obj) { return typeof obj; }; } else { _typeof$o = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$o(obj); }
|
|
1037
|
-
|
|
1038
|
-
function _classCallCheck$n(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1039
|
-
|
|
1040
|
-
function _defineProperties$n(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
1041
|
-
|
|
1042
|
-
function _createClass$n(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$n(Constructor.prototype, protoProps); if (staticProps) _defineProperties$n(Constructor, staticProps); return Constructor; }
|
|
1043
|
-
|
|
1044
|
-
function _inherits$n(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$n(subClass, superClass); }
|
|
1045
|
-
|
|
1046
|
-
function _setPrototypeOf$n(o, p) { _setPrototypeOf$n = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$n(o, p); }
|
|
1047
|
-
|
|
1048
|
-
function _createSuper$n(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$n(); return function _createSuperInternal() { var Super = _getPrototypeOf$n(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$n(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$n(this, result); }; }
|
|
1049
|
-
|
|
1050
|
-
function _possibleConstructorReturn$n(self, call) { if (call && (_typeof$o(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$n(self); }
|
|
1051
|
-
|
|
1052
|
-
function _assertThisInitialized$n(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1053
|
-
|
|
1054
|
-
function _isNativeReflectConstruct$n() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
1055
|
-
|
|
1056
|
-
function _getPrototypeOf$n(o) { _getPrototypeOf$n = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$n(o); }
|
|
1057
|
-
|
|
1058
|
-
function _defineProperty$n(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1059
910
|
var MonthParser = /*#__PURE__*/function (_Parser) {
|
|
1060
|
-
_inherits
|
|
1061
|
-
|
|
1062
|
-
var _super = _createSuper$n(MonthParser);
|
|
1063
|
-
|
|
911
|
+
_inherits(MonthParser, _Parser);
|
|
912
|
+
var _super = _createSuper(MonthParser);
|
|
1064
913
|
function MonthParser() {
|
|
1065
914
|
var _this;
|
|
1066
|
-
|
|
1067
|
-
_classCallCheck$n(this, MonthParser);
|
|
1068
|
-
|
|
915
|
+
_classCallCheck(this, MonthParser);
|
|
1069
916
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1070
917
|
args[_key] = arguments[_key];
|
|
1071
918
|
}
|
|
1072
|
-
|
|
1073
919
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
1074
|
-
|
|
1075
|
-
_defineProperty
|
|
1076
|
-
|
|
1077
|
-
_defineProperty$n(_assertThisInitialized$n(_this), "priority", 110);
|
|
1078
|
-
|
|
920
|
+
_defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'L', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']);
|
|
921
|
+
_defineProperty(_assertThisInitialized(_this), "priority", 110);
|
|
1079
922
|
return _this;
|
|
1080
923
|
}
|
|
1081
|
-
|
|
1082
|
-
_createClass$n(MonthParser, [{
|
|
924
|
+
_createClass(MonthParser, [{
|
|
1083
925
|
key: "parse",
|
|
1084
926
|
value: function parse(dateString, token, match) {
|
|
1085
927
|
var valueCallback = function valueCallback(value) {
|
|
1086
928
|
return value - 1;
|
|
1087
929
|
};
|
|
1088
|
-
|
|
1089
930
|
switch (token) {
|
|
1090
931
|
// 1, 2, ..., 12
|
|
1091
932
|
case 'M':
|
|
1092
933
|
return mapValue(parseNumericPattern(numericPatterns.month, dateString), valueCallback);
|
|
1093
934
|
// 01, 02, ..., 12
|
|
1094
|
-
|
|
1095
935
|
case 'MM':
|
|
1096
936
|
return mapValue(parseNDigits(2, dateString), valueCallback);
|
|
1097
937
|
// 1st, 2nd, ..., 12th
|
|
1098
|
-
|
|
1099
938
|
case 'Mo':
|
|
1100
939
|
return mapValue(match.ordinalNumber(dateString, {
|
|
1101
940
|
unit: 'month'
|
|
1102
941
|
}), valueCallback);
|
|
1103
942
|
// Jan, Feb, ..., Dec
|
|
1104
|
-
|
|
1105
943
|
case 'MMM':
|
|
1106
944
|
return match.month(dateString, {
|
|
1107
945
|
width: 'abbreviated',
|
|
@@ -1111,14 +949,12 @@ var MonthParser = /*#__PURE__*/function (_Parser) {
|
|
|
1111
949
|
context: 'formatting'
|
|
1112
950
|
});
|
|
1113
951
|
// J, F, ..., D
|
|
1114
|
-
|
|
1115
952
|
case 'MMMMM':
|
|
1116
953
|
return match.month(dateString, {
|
|
1117
954
|
width: 'narrow',
|
|
1118
955
|
context: 'formatting'
|
|
1119
956
|
});
|
|
1120
957
|
// January, February, ..., December
|
|
1121
|
-
|
|
1122
958
|
case 'MMMM':
|
|
1123
959
|
default:
|
|
1124
960
|
return match.month(dateString, {
|
|
@@ -1146,79 +982,42 @@ var MonthParser = /*#__PURE__*/function (_Parser) {
|
|
|
1146
982
|
return date;
|
|
1147
983
|
}
|
|
1148
984
|
}]);
|
|
1149
|
-
|
|
1150
985
|
return MonthParser;
|
|
1151
986
|
}(Parser);
|
|
1152
987
|
|
|
1153
|
-
function _typeof$n(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$n = function _typeof(obj) { return typeof obj; }; } else { _typeof$n = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$n(obj); }
|
|
1154
|
-
|
|
1155
|
-
function _classCallCheck$m(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1156
|
-
|
|
1157
|
-
function _defineProperties$m(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
1158
|
-
|
|
1159
|
-
function _createClass$m(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$m(Constructor.prototype, protoProps); if (staticProps) _defineProperties$m(Constructor, staticProps); return Constructor; }
|
|
1160
|
-
|
|
1161
|
-
function _inherits$m(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$m(subClass, superClass); }
|
|
1162
|
-
|
|
1163
|
-
function _setPrototypeOf$m(o, p) { _setPrototypeOf$m = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$m(o, p); }
|
|
1164
|
-
|
|
1165
|
-
function _createSuper$m(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$m(); return function _createSuperInternal() { var Super = _getPrototypeOf$m(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$m(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$m(this, result); }; }
|
|
1166
|
-
|
|
1167
|
-
function _possibleConstructorReturn$m(self, call) { if (call && (_typeof$n(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$m(self); }
|
|
1168
|
-
|
|
1169
|
-
function _assertThisInitialized$m(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1170
|
-
|
|
1171
|
-
function _isNativeReflectConstruct$m() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
1172
|
-
|
|
1173
|
-
function _getPrototypeOf$m(o) { _getPrototypeOf$m = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$m(o); }
|
|
1174
|
-
|
|
1175
|
-
function _defineProperty$m(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1176
988
|
var StandAloneMonthParser = /*#__PURE__*/function (_Parser) {
|
|
1177
|
-
_inherits
|
|
1178
|
-
|
|
1179
|
-
var _super = _createSuper$m(StandAloneMonthParser);
|
|
1180
|
-
|
|
989
|
+
_inherits(StandAloneMonthParser, _Parser);
|
|
990
|
+
var _super = _createSuper(StandAloneMonthParser);
|
|
1181
991
|
function StandAloneMonthParser() {
|
|
1182
992
|
var _this;
|
|
1183
|
-
|
|
1184
|
-
_classCallCheck$m(this, StandAloneMonthParser);
|
|
1185
|
-
|
|
993
|
+
_classCallCheck(this, StandAloneMonthParser);
|
|
1186
994
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1187
995
|
args[_key] = arguments[_key];
|
|
1188
996
|
}
|
|
1189
|
-
|
|
1190
997
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
1191
|
-
|
|
1192
|
-
_defineProperty
|
|
1193
|
-
|
|
1194
|
-
_defineProperty$m(_assertThisInitialized$m(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'M', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']);
|
|
1195
|
-
|
|
998
|
+
_defineProperty(_assertThisInitialized(_this), "priority", 110);
|
|
999
|
+
_defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'M', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']);
|
|
1196
1000
|
return _this;
|
|
1197
1001
|
}
|
|
1198
|
-
|
|
1199
|
-
_createClass$m(StandAloneMonthParser, [{
|
|
1002
|
+
_createClass(StandAloneMonthParser, [{
|
|
1200
1003
|
key: "parse",
|
|
1201
1004
|
value: function parse(dateString, token, match) {
|
|
1202
1005
|
var valueCallback = function valueCallback(value) {
|
|
1203
1006
|
return value - 1;
|
|
1204
1007
|
};
|
|
1205
|
-
|
|
1206
1008
|
switch (token) {
|
|
1207
1009
|
// 1, 2, ..., 12
|
|
1208
1010
|
case 'L':
|
|
1209
1011
|
return mapValue(parseNumericPattern(numericPatterns.month, dateString), valueCallback);
|
|
1210
1012
|
// 01, 02, ..., 12
|
|
1211
|
-
|
|
1212
1013
|
case 'LL':
|
|
1213
1014
|
return mapValue(parseNDigits(2, dateString), valueCallback);
|
|
1214
1015
|
// 1st, 2nd, ..., 12th
|
|
1215
|
-
|
|
1216
1016
|
case 'Lo':
|
|
1217
1017
|
return mapValue(match.ordinalNumber(dateString, {
|
|
1218
1018
|
unit: 'month'
|
|
1219
1019
|
}), valueCallback);
|
|
1220
1020
|
// Jan, Feb, ..., Dec
|
|
1221
|
-
|
|
1222
1021
|
case 'LLL':
|
|
1223
1022
|
return match.month(dateString, {
|
|
1224
1023
|
width: 'abbreviated',
|
|
@@ -1228,14 +1027,12 @@ var StandAloneMonthParser = /*#__PURE__*/function (_Parser) {
|
|
|
1228
1027
|
context: 'standalone'
|
|
1229
1028
|
});
|
|
1230
1029
|
// J, F, ..., D
|
|
1231
|
-
|
|
1232
1030
|
case 'LLLLL':
|
|
1233
1031
|
return match.month(dateString, {
|
|
1234
1032
|
width: 'narrow',
|
|
1235
1033
|
context: 'standalone'
|
|
1236
1034
|
});
|
|
1237
1035
|
// January, February, ..., December
|
|
1238
|
-
|
|
1239
1036
|
case 'LLLL':
|
|
1240
1037
|
default:
|
|
1241
1038
|
return match.month(dateString, {
|
|
@@ -1263,7 +1060,6 @@ var StandAloneMonthParser = /*#__PURE__*/function (_Parser) {
|
|
|
1263
1060
|
return date;
|
|
1264
1061
|
}
|
|
1265
1062
|
}]);
|
|
1266
|
-
|
|
1267
1063
|
return StandAloneMonthParser;
|
|
1268
1064
|
}(Parser);
|
|
1269
1065
|
|
|
@@ -1276,65 +1072,30 @@ function setUTCWeek(dirtyDate, dirtyWeek, options) {
|
|
|
1276
1072
|
return date;
|
|
1277
1073
|
}
|
|
1278
1074
|
|
|
1279
|
-
function _typeof$m(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$m = function _typeof(obj) { return typeof obj; }; } else { _typeof$m = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$m(obj); }
|
|
1280
|
-
|
|
1281
|
-
function _classCallCheck$l(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1282
|
-
|
|
1283
|
-
function _defineProperties$l(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
1284
|
-
|
|
1285
|
-
function _createClass$l(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$l(Constructor.prototype, protoProps); if (staticProps) _defineProperties$l(Constructor, staticProps); return Constructor; }
|
|
1286
|
-
|
|
1287
|
-
function _inherits$l(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$l(subClass, superClass); }
|
|
1288
|
-
|
|
1289
|
-
function _setPrototypeOf$l(o, p) { _setPrototypeOf$l = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$l(o, p); }
|
|
1290
|
-
|
|
1291
|
-
function _createSuper$l(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$l(); return function _createSuperInternal() { var Super = _getPrototypeOf$l(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$l(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$l(this, result); }; }
|
|
1292
|
-
|
|
1293
|
-
function _possibleConstructorReturn$l(self, call) { if (call && (_typeof$m(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$l(self); }
|
|
1294
|
-
|
|
1295
|
-
function _assertThisInitialized$l(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1296
|
-
|
|
1297
|
-
function _isNativeReflectConstruct$l() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
1298
|
-
|
|
1299
|
-
function _getPrototypeOf$l(o) { _getPrototypeOf$l = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$l(o); }
|
|
1300
|
-
|
|
1301
|
-
function _defineProperty$l(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1302
|
-
|
|
1303
1075
|
var LocalWeekParser = /*#__PURE__*/function (_Parser) {
|
|
1304
|
-
_inherits
|
|
1305
|
-
|
|
1306
|
-
var _super = _createSuper$l(LocalWeekParser);
|
|
1307
|
-
|
|
1076
|
+
_inherits(LocalWeekParser, _Parser);
|
|
1077
|
+
var _super = _createSuper(LocalWeekParser);
|
|
1308
1078
|
function LocalWeekParser() {
|
|
1309
1079
|
var _this;
|
|
1310
|
-
|
|
1311
|
-
_classCallCheck$l(this, LocalWeekParser);
|
|
1312
|
-
|
|
1080
|
+
_classCallCheck(this, LocalWeekParser);
|
|
1313
1081
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1314
1082
|
args[_key] = arguments[_key];
|
|
1315
1083
|
}
|
|
1316
|
-
|
|
1317
1084
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
1318
|
-
|
|
1319
|
-
_defineProperty
|
|
1320
|
-
|
|
1321
|
-
_defineProperty$l(_assertThisInitialized$l(_this), "incompatibleTokens", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']);
|
|
1322
|
-
|
|
1085
|
+
_defineProperty(_assertThisInitialized(_this), "priority", 100);
|
|
1086
|
+
_defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']);
|
|
1323
1087
|
return _this;
|
|
1324
1088
|
}
|
|
1325
|
-
|
|
1326
|
-
_createClass$l(LocalWeekParser, [{
|
|
1089
|
+
_createClass(LocalWeekParser, [{
|
|
1327
1090
|
key: "parse",
|
|
1328
1091
|
value: function parse(dateString, token, match) {
|
|
1329
1092
|
switch (token) {
|
|
1330
1093
|
case 'w':
|
|
1331
1094
|
return parseNumericPattern(numericPatterns.week, dateString);
|
|
1332
|
-
|
|
1333
1095
|
case 'wo':
|
|
1334
1096
|
return match.ordinalNumber(dateString, {
|
|
1335
1097
|
unit: 'week'
|
|
1336
1098
|
});
|
|
1337
|
-
|
|
1338
1099
|
default:
|
|
1339
1100
|
return parseNDigits(token.length, dateString);
|
|
1340
1101
|
}
|
|
@@ -1350,7 +1111,6 @@ var LocalWeekParser = /*#__PURE__*/function (_Parser) {
|
|
|
1350
1111
|
return startOfUTCWeek(setUTCWeek(date, value, options), options);
|
|
1351
1112
|
}
|
|
1352
1113
|
}]);
|
|
1353
|
-
|
|
1354
1114
|
return LocalWeekParser;
|
|
1355
1115
|
}(Parser);
|
|
1356
1116
|
|
|
@@ -1363,65 +1123,30 @@ function setUTCISOWeek(dirtyDate, dirtyISOWeek) {
|
|
|
1363
1123
|
return date;
|
|
1364
1124
|
}
|
|
1365
1125
|
|
|
1366
|
-
function _typeof$l(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$l = function _typeof(obj) { return typeof obj; }; } else { _typeof$l = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$l(obj); }
|
|
1367
|
-
|
|
1368
|
-
function _classCallCheck$k(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1369
|
-
|
|
1370
|
-
function _defineProperties$k(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
1371
|
-
|
|
1372
|
-
function _createClass$k(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$k(Constructor.prototype, protoProps); if (staticProps) _defineProperties$k(Constructor, staticProps); return Constructor; }
|
|
1373
|
-
|
|
1374
|
-
function _inherits$k(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$k(subClass, superClass); }
|
|
1375
|
-
|
|
1376
|
-
function _setPrototypeOf$k(o, p) { _setPrototypeOf$k = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$k(o, p); }
|
|
1377
|
-
|
|
1378
|
-
function _createSuper$k(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$k(); return function _createSuperInternal() { var Super = _getPrototypeOf$k(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$k(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$k(this, result); }; }
|
|
1379
|
-
|
|
1380
|
-
function _possibleConstructorReturn$k(self, call) { if (call && (_typeof$l(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$k(self); }
|
|
1381
|
-
|
|
1382
|
-
function _assertThisInitialized$k(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1383
|
-
|
|
1384
|
-
function _isNativeReflectConstruct$k() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
1385
|
-
|
|
1386
|
-
function _getPrototypeOf$k(o) { _getPrototypeOf$k = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$k(o); }
|
|
1387
|
-
|
|
1388
|
-
function _defineProperty$k(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1389
|
-
|
|
1390
1126
|
var ISOWeekParser = /*#__PURE__*/function (_Parser) {
|
|
1391
|
-
_inherits
|
|
1392
|
-
|
|
1393
|
-
var _super = _createSuper$k(ISOWeekParser);
|
|
1394
|
-
|
|
1127
|
+
_inherits(ISOWeekParser, _Parser);
|
|
1128
|
+
var _super = _createSuper(ISOWeekParser);
|
|
1395
1129
|
function ISOWeekParser() {
|
|
1396
1130
|
var _this;
|
|
1397
|
-
|
|
1398
|
-
_classCallCheck$k(this, ISOWeekParser);
|
|
1399
|
-
|
|
1131
|
+
_classCallCheck(this, ISOWeekParser);
|
|
1400
1132
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1401
1133
|
args[_key] = arguments[_key];
|
|
1402
1134
|
}
|
|
1403
|
-
|
|
1404
1135
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
1405
|
-
|
|
1406
|
-
_defineProperty
|
|
1407
|
-
|
|
1408
|
-
_defineProperty$k(_assertThisInitialized$k(_this), "incompatibleTokens", ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']);
|
|
1409
|
-
|
|
1136
|
+
_defineProperty(_assertThisInitialized(_this), "priority", 100);
|
|
1137
|
+
_defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']);
|
|
1410
1138
|
return _this;
|
|
1411
1139
|
}
|
|
1412
|
-
|
|
1413
|
-
_createClass$k(ISOWeekParser, [{
|
|
1140
|
+
_createClass(ISOWeekParser, [{
|
|
1414
1141
|
key: "parse",
|
|
1415
1142
|
value: function parse(dateString, token, match) {
|
|
1416
1143
|
switch (token) {
|
|
1417
1144
|
case 'I':
|
|
1418
1145
|
return parseNumericPattern(numericPatterns.week, dateString);
|
|
1419
|
-
|
|
1420
1146
|
case 'Io':
|
|
1421
1147
|
return match.ordinalNumber(dateString, {
|
|
1422
1148
|
unit: 'week'
|
|
1423
1149
|
});
|
|
1424
|
-
|
|
1425
1150
|
default:
|
|
1426
1151
|
return parseNDigits(token.length, dateString);
|
|
1427
1152
|
}
|
|
@@ -1437,73 +1162,38 @@ var ISOWeekParser = /*#__PURE__*/function (_Parser) {
|
|
|
1437
1162
|
return startOfUTCISOWeek(setUTCISOWeek(date, value));
|
|
1438
1163
|
}
|
|
1439
1164
|
}]);
|
|
1440
|
-
|
|
1441
1165
|
return ISOWeekParser;
|
|
1442
1166
|
}(Parser);
|
|
1443
1167
|
|
|
1444
|
-
function _typeof$k(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$k = function _typeof(obj) { return typeof obj; }; } else { _typeof$k = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$k(obj); }
|
|
1445
|
-
|
|
1446
|
-
function _classCallCheck$j(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1447
|
-
|
|
1448
|
-
function _defineProperties$j(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
1449
|
-
|
|
1450
|
-
function _createClass$j(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$j(Constructor.prototype, protoProps); if (staticProps) _defineProperties$j(Constructor, staticProps); return Constructor; }
|
|
1451
|
-
|
|
1452
|
-
function _inherits$j(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$j(subClass, superClass); }
|
|
1453
|
-
|
|
1454
|
-
function _setPrototypeOf$j(o, p) { _setPrototypeOf$j = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$j(o, p); }
|
|
1455
|
-
|
|
1456
|
-
function _createSuper$j(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$j(); return function _createSuperInternal() { var Super = _getPrototypeOf$j(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$j(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$j(this, result); }; }
|
|
1457
|
-
|
|
1458
|
-
function _possibleConstructorReturn$j(self, call) { if (call && (_typeof$k(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$j(self); }
|
|
1459
|
-
|
|
1460
|
-
function _assertThisInitialized$j(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1461
|
-
|
|
1462
|
-
function _isNativeReflectConstruct$j() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
1463
|
-
|
|
1464
|
-
function _getPrototypeOf$j(o) { _getPrototypeOf$j = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$j(o); }
|
|
1465
|
-
|
|
1466
|
-
function _defineProperty$j(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1467
1168
|
var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
1468
|
-
var DAYS_IN_MONTH_LEAP_YEAR = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
1169
|
+
var DAYS_IN_MONTH_LEAP_YEAR = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
1469
1170
|
|
|
1171
|
+
// Day of the month
|
|
1470
1172
|
var DateParser = /*#__PURE__*/function (_Parser) {
|
|
1471
|
-
_inherits
|
|
1472
|
-
|
|
1473
|
-
var _super = _createSuper$j(DateParser);
|
|
1474
|
-
|
|
1173
|
+
_inherits(DateParser, _Parser);
|
|
1174
|
+
var _super = _createSuper(DateParser);
|
|
1475
1175
|
function DateParser() {
|
|
1476
1176
|
var _this;
|
|
1477
|
-
|
|
1478
|
-
_classCallCheck$j(this, DateParser);
|
|
1479
|
-
|
|
1177
|
+
_classCallCheck(this, DateParser);
|
|
1480
1178
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1481
1179
|
args[_key] = arguments[_key];
|
|
1482
1180
|
}
|
|
1483
|
-
|
|
1484
1181
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
1485
|
-
|
|
1486
|
-
_defineProperty
|
|
1487
|
-
|
|
1488
|
-
_defineProperty$j(_assertThisInitialized$j(_this), "subPriority", 1);
|
|
1489
|
-
|
|
1490
|
-
_defineProperty$j(_assertThisInitialized$j(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']);
|
|
1491
|
-
|
|
1182
|
+
_defineProperty(_assertThisInitialized(_this), "priority", 90);
|
|
1183
|
+
_defineProperty(_assertThisInitialized(_this), "subPriority", 1);
|
|
1184
|
+
_defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']);
|
|
1492
1185
|
return _this;
|
|
1493
1186
|
}
|
|
1494
|
-
|
|
1495
|
-
_createClass$j(DateParser, [{
|
|
1187
|
+
_createClass(DateParser, [{
|
|
1496
1188
|
key: "parse",
|
|
1497
1189
|
value: function parse(dateString, token, match) {
|
|
1498
1190
|
switch (token) {
|
|
1499
1191
|
case 'd':
|
|
1500
1192
|
return parseNumericPattern(numericPatterns.date, dateString);
|
|
1501
|
-
|
|
1502
1193
|
case 'do':
|
|
1503
1194
|
return match.ordinalNumber(dateString, {
|
|
1504
1195
|
unit: 'date'
|
|
1505
1196
|
});
|
|
1506
|
-
|
|
1507
1197
|
default:
|
|
1508
1198
|
return parseNDigits(token.length, dateString);
|
|
1509
1199
|
}
|
|
@@ -1514,7 +1204,6 @@ var DateParser = /*#__PURE__*/function (_Parser) {
|
|
|
1514
1204
|
var year = date.getUTCFullYear();
|
|
1515
1205
|
var isLeapYear = isLeapYearIndex(year);
|
|
1516
1206
|
var month = date.getUTCMonth();
|
|
1517
|
-
|
|
1518
1207
|
if (isLeapYear) {
|
|
1519
1208
|
return value >= 1 && value <= DAYS_IN_MONTH_LEAP_YEAR[month];
|
|
1520
1209
|
} else {
|
|
@@ -1529,71 +1218,35 @@ var DateParser = /*#__PURE__*/function (_Parser) {
|
|
|
1529
1218
|
return date;
|
|
1530
1219
|
}
|
|
1531
1220
|
}]);
|
|
1532
|
-
|
|
1533
1221
|
return DateParser;
|
|
1534
1222
|
}(Parser);
|
|
1535
1223
|
|
|
1536
|
-
function _typeof$j(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$j = function _typeof(obj) { return typeof obj; }; } else { _typeof$j = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$j(obj); }
|
|
1537
|
-
|
|
1538
|
-
function _classCallCheck$i(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1539
|
-
|
|
1540
|
-
function _defineProperties$i(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
1541
|
-
|
|
1542
|
-
function _createClass$i(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$i(Constructor.prototype, protoProps); if (staticProps) _defineProperties$i(Constructor, staticProps); return Constructor; }
|
|
1543
|
-
|
|
1544
|
-
function _inherits$i(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$i(subClass, superClass); }
|
|
1545
|
-
|
|
1546
|
-
function _setPrototypeOf$i(o, p) { _setPrototypeOf$i = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$i(o, p); }
|
|
1547
|
-
|
|
1548
|
-
function _createSuper$i(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$i(); return function _createSuperInternal() { var Super = _getPrototypeOf$i(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$i(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$i(this, result); }; }
|
|
1549
|
-
|
|
1550
|
-
function _possibleConstructorReturn$i(self, call) { if (call && (_typeof$j(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$i(self); }
|
|
1551
|
-
|
|
1552
|
-
function _assertThisInitialized$i(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1553
|
-
|
|
1554
|
-
function _isNativeReflectConstruct$i() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
1555
|
-
|
|
1556
|
-
function _getPrototypeOf$i(o) { _getPrototypeOf$i = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$i(o); }
|
|
1557
|
-
|
|
1558
|
-
function _defineProperty$i(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1559
1224
|
var DayOfYearParser = /*#__PURE__*/function (_Parser) {
|
|
1560
|
-
_inherits
|
|
1561
|
-
|
|
1562
|
-
var _super = _createSuper$i(DayOfYearParser);
|
|
1563
|
-
|
|
1225
|
+
_inherits(DayOfYearParser, _Parser);
|
|
1226
|
+
var _super = _createSuper(DayOfYearParser);
|
|
1564
1227
|
function DayOfYearParser() {
|
|
1565
1228
|
var _this;
|
|
1566
|
-
|
|
1567
|
-
_classCallCheck$i(this, DayOfYearParser);
|
|
1568
|
-
|
|
1229
|
+
_classCallCheck(this, DayOfYearParser);
|
|
1569
1230
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1570
1231
|
args[_key] = arguments[_key];
|
|
1571
1232
|
}
|
|
1572
|
-
|
|
1573
1233
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
1574
|
-
|
|
1575
|
-
_defineProperty
|
|
1576
|
-
|
|
1577
|
-
_defineProperty$i(_assertThisInitialized$i(_this), "subpriority", 1);
|
|
1578
|
-
|
|
1579
|
-
_defineProperty$i(_assertThisInitialized$i(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'M', 'L', 'w', 'I', 'd', 'E', 'i', 'e', 'c', 't', 'T']);
|
|
1580
|
-
|
|
1234
|
+
_defineProperty(_assertThisInitialized(_this), "priority", 90);
|
|
1235
|
+
_defineProperty(_assertThisInitialized(_this), "subpriority", 1);
|
|
1236
|
+
_defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'M', 'L', 'w', 'I', 'd', 'E', 'i', 'e', 'c', 't', 'T']);
|
|
1581
1237
|
return _this;
|
|
1582
1238
|
}
|
|
1583
|
-
|
|
1584
|
-
_createClass$i(DayOfYearParser, [{
|
|
1239
|
+
_createClass(DayOfYearParser, [{
|
|
1585
1240
|
key: "parse",
|
|
1586
1241
|
value: function parse(dateString, token, match) {
|
|
1587
1242
|
switch (token) {
|
|
1588
1243
|
case 'D':
|
|
1589
1244
|
case 'DD':
|
|
1590
1245
|
return parseNumericPattern(numericPatterns.dayOfYear, dateString);
|
|
1591
|
-
|
|
1592
1246
|
case 'Do':
|
|
1593
1247
|
return match.ordinalNumber(dateString, {
|
|
1594
1248
|
unit: 'date'
|
|
1595
1249
|
});
|
|
1596
|
-
|
|
1597
1250
|
default:
|
|
1598
1251
|
return parseNDigits(token.length, dateString);
|
|
1599
1252
|
}
|
|
@@ -1603,7 +1256,6 @@ var DayOfYearParser = /*#__PURE__*/function (_Parser) {
|
|
|
1603
1256
|
value: function validate(date, value) {
|
|
1604
1257
|
var year = date.getUTCFullYear();
|
|
1605
1258
|
var isLeapYear = isLeapYearIndex(year);
|
|
1606
|
-
|
|
1607
1259
|
if (isLeapYear) {
|
|
1608
1260
|
return value >= 1 && value <= 366;
|
|
1609
1261
|
} else {
|
|
@@ -1618,21 +1270,19 @@ var DayOfYearParser = /*#__PURE__*/function (_Parser) {
|
|
|
1618
1270
|
return date;
|
|
1619
1271
|
}
|
|
1620
1272
|
}]);
|
|
1621
|
-
|
|
1622
1273
|
return DayOfYearParser;
|
|
1623
1274
|
}(Parser);
|
|
1624
1275
|
|
|
1625
1276
|
function setUTCDay(dirtyDate, dirtyDay, options) {
|
|
1626
1277
|
var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
|
|
1627
|
-
|
|
1628
1278
|
requiredArgs(2, arguments);
|
|
1629
1279
|
var defaultOptions = getDefaultOptions();
|
|
1630
|
-
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);
|
|
1280
|
+
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);
|
|
1631
1281
|
|
|
1282
|
+
// Test if weekStartsOn is between 0 and 6 _and_ is not NaN
|
|
1632
1283
|
if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
|
|
1633
1284
|
throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
|
|
1634
1285
|
}
|
|
1635
|
-
|
|
1636
1286
|
var date = toDate(dirtyDate);
|
|
1637
1287
|
var day = toInteger(dirtyDay);
|
|
1638
1288
|
var currentDay = date.getUTCDay();
|
|
@@ -1643,54 +1293,21 @@ function setUTCDay(dirtyDate, dirtyDay, options) {
|
|
|
1643
1293
|
return date;
|
|
1644
1294
|
}
|
|
1645
1295
|
|
|
1646
|
-
function _typeof$i(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$i = function _typeof(obj) { return typeof obj; }; } else { _typeof$i = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$i(obj); }
|
|
1647
|
-
|
|
1648
|
-
function _classCallCheck$h(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1649
|
-
|
|
1650
|
-
function _defineProperties$h(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
1651
|
-
|
|
1652
|
-
function _createClass$h(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$h(Constructor.prototype, protoProps); if (staticProps) _defineProperties$h(Constructor, staticProps); return Constructor; }
|
|
1653
|
-
|
|
1654
|
-
function _inherits$h(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$h(subClass, superClass); }
|
|
1655
|
-
|
|
1656
|
-
function _setPrototypeOf$h(o, p) { _setPrototypeOf$h = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$h(o, p); }
|
|
1657
|
-
|
|
1658
|
-
function _createSuper$h(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$h(); return function _createSuperInternal() { var Super = _getPrototypeOf$h(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$h(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$h(this, result); }; }
|
|
1659
|
-
|
|
1660
|
-
function _possibleConstructorReturn$h(self, call) { if (call && (_typeof$i(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$h(self); }
|
|
1661
|
-
|
|
1662
|
-
function _assertThisInitialized$h(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1663
|
-
|
|
1664
|
-
function _isNativeReflectConstruct$h() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
1665
|
-
|
|
1666
|
-
function _getPrototypeOf$h(o) { _getPrototypeOf$h = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$h(o); }
|
|
1667
|
-
|
|
1668
|
-
function _defineProperty$h(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1669
|
-
|
|
1670
1296
|
var DayParser = /*#__PURE__*/function (_Parser) {
|
|
1671
|
-
_inherits
|
|
1672
|
-
|
|
1673
|
-
var _super = _createSuper$h(DayParser);
|
|
1674
|
-
|
|
1297
|
+
_inherits(DayParser, _Parser);
|
|
1298
|
+
var _super = _createSuper(DayParser);
|
|
1675
1299
|
function DayParser() {
|
|
1676
1300
|
var _this;
|
|
1677
|
-
|
|
1678
|
-
_classCallCheck$h(this, DayParser);
|
|
1679
|
-
|
|
1301
|
+
_classCallCheck(this, DayParser);
|
|
1680
1302
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1681
1303
|
args[_key] = arguments[_key];
|
|
1682
1304
|
}
|
|
1683
|
-
|
|
1684
1305
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
1685
|
-
|
|
1686
|
-
_defineProperty
|
|
1687
|
-
|
|
1688
|
-
_defineProperty$h(_assertThisInitialized$h(_this), "incompatibleTokens", ['D', 'i', 'e', 'c', 't', 'T']);
|
|
1689
|
-
|
|
1306
|
+
_defineProperty(_assertThisInitialized(_this), "priority", 90);
|
|
1307
|
+
_defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['D', 'i', 'e', 'c', 't', 'T']);
|
|
1690
1308
|
return _this;
|
|
1691
1309
|
}
|
|
1692
|
-
|
|
1693
|
-
_createClass$h(DayParser, [{
|
|
1310
|
+
_createClass(DayParser, [{
|
|
1694
1311
|
key: "parse",
|
|
1695
1312
|
value: function parse(dateString, token, match) {
|
|
1696
1313
|
switch (token) {
|
|
@@ -1709,14 +1326,12 @@ var DayParser = /*#__PURE__*/function (_Parser) {
|
|
|
1709
1326
|
context: 'formatting'
|
|
1710
1327
|
});
|
|
1711
1328
|
// T
|
|
1712
|
-
|
|
1713
1329
|
case 'EEEEE':
|
|
1714
1330
|
return match.day(dateString, {
|
|
1715
1331
|
width: 'narrow',
|
|
1716
1332
|
context: 'formatting'
|
|
1717
1333
|
});
|
|
1718
1334
|
// Tu
|
|
1719
|
-
|
|
1720
1335
|
case 'EEEEEE':
|
|
1721
1336
|
return match.day(dateString, {
|
|
1722
1337
|
width: 'short',
|
|
@@ -1726,7 +1341,6 @@ var DayParser = /*#__PURE__*/function (_Parser) {
|
|
|
1726
1341
|
context: 'formatting'
|
|
1727
1342
|
});
|
|
1728
1343
|
// Tuesday
|
|
1729
|
-
|
|
1730
1344
|
case 'EEEE':
|
|
1731
1345
|
default:
|
|
1732
1346
|
return match.day(dateString, {
|
|
@@ -1757,65 +1371,30 @@ var DayParser = /*#__PURE__*/function (_Parser) {
|
|
|
1757
1371
|
return date;
|
|
1758
1372
|
}
|
|
1759
1373
|
}]);
|
|
1760
|
-
|
|
1761
1374
|
return DayParser;
|
|
1762
1375
|
}(Parser);
|
|
1763
1376
|
|
|
1764
|
-
function _typeof$h(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$h = function _typeof(obj) { return typeof obj; }; } else { _typeof$h = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$h(obj); }
|
|
1765
|
-
|
|
1766
|
-
function _classCallCheck$g(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1767
|
-
|
|
1768
|
-
function _defineProperties$g(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
1769
|
-
|
|
1770
|
-
function _createClass$g(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$g(Constructor.prototype, protoProps); if (staticProps) _defineProperties$g(Constructor, staticProps); return Constructor; }
|
|
1771
|
-
|
|
1772
|
-
function _inherits$g(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$g(subClass, superClass); }
|
|
1773
|
-
|
|
1774
|
-
function _setPrototypeOf$g(o, p) { _setPrototypeOf$g = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$g(o, p); }
|
|
1775
|
-
|
|
1776
|
-
function _createSuper$g(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$g(); return function _createSuperInternal() { var Super = _getPrototypeOf$g(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$g(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$g(this, result); }; }
|
|
1777
|
-
|
|
1778
|
-
function _possibleConstructorReturn$g(self, call) { if (call && (_typeof$h(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$g(self); }
|
|
1779
|
-
|
|
1780
|
-
function _assertThisInitialized$g(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1781
|
-
|
|
1782
|
-
function _isNativeReflectConstruct$g() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
1783
|
-
|
|
1784
|
-
function _getPrototypeOf$g(o) { _getPrototypeOf$g = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$g(o); }
|
|
1785
|
-
|
|
1786
|
-
function _defineProperty$g(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1787
|
-
|
|
1788
1377
|
var LocalDayParser = /*#__PURE__*/function (_Parser) {
|
|
1789
|
-
_inherits
|
|
1790
|
-
|
|
1791
|
-
var _super = _createSuper$g(LocalDayParser);
|
|
1792
|
-
|
|
1378
|
+
_inherits(LocalDayParser, _Parser);
|
|
1379
|
+
var _super = _createSuper(LocalDayParser);
|
|
1793
1380
|
function LocalDayParser() {
|
|
1794
1381
|
var _this;
|
|
1795
|
-
|
|
1796
|
-
_classCallCheck$g(this, LocalDayParser);
|
|
1797
|
-
|
|
1382
|
+
_classCallCheck(this, LocalDayParser);
|
|
1798
1383
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1799
1384
|
args[_key] = arguments[_key];
|
|
1800
1385
|
}
|
|
1801
|
-
|
|
1802
1386
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
1803
|
-
|
|
1804
|
-
_defineProperty
|
|
1805
|
-
|
|
1806
|
-
_defineProperty$g(_assertThisInitialized$g(_this), "incompatibleTokens", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'c', 't', 'T']);
|
|
1807
|
-
|
|
1387
|
+
_defineProperty(_assertThisInitialized(_this), "priority", 90);
|
|
1388
|
+
_defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'c', 't', 'T']);
|
|
1808
1389
|
return _this;
|
|
1809
1390
|
}
|
|
1810
|
-
|
|
1811
|
-
_createClass$g(LocalDayParser, [{
|
|
1391
|
+
_createClass(LocalDayParser, [{
|
|
1812
1392
|
key: "parse",
|
|
1813
1393
|
value: function parse(dateString, token, match, options) {
|
|
1814
1394
|
var valueCallback = function valueCallback(value) {
|
|
1815
1395
|
var wholeWeekDays = Math.floor((value - 1) / 7) * 7;
|
|
1816
1396
|
return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;
|
|
1817
1397
|
};
|
|
1818
|
-
|
|
1819
1398
|
switch (token) {
|
|
1820
1399
|
// 3
|
|
1821
1400
|
case 'e':
|
|
@@ -1823,13 +1402,11 @@ var LocalDayParser = /*#__PURE__*/function (_Parser) {
|
|
|
1823
1402
|
// 03
|
|
1824
1403
|
return mapValue(parseNDigits(token.length, dateString), valueCallback);
|
|
1825
1404
|
// 3rd
|
|
1826
|
-
|
|
1827
1405
|
case 'eo':
|
|
1828
1406
|
return mapValue(match.ordinalNumber(dateString, {
|
|
1829
1407
|
unit: 'day'
|
|
1830
1408
|
}), valueCallback);
|
|
1831
1409
|
// Tue
|
|
1832
|
-
|
|
1833
1410
|
case 'eee':
|
|
1834
1411
|
return match.day(dateString, {
|
|
1835
1412
|
width: 'abbreviated',
|
|
@@ -1842,14 +1419,12 @@ var LocalDayParser = /*#__PURE__*/function (_Parser) {
|
|
|
1842
1419
|
context: 'formatting'
|
|
1843
1420
|
});
|
|
1844
1421
|
// T
|
|
1845
|
-
|
|
1846
1422
|
case 'eeeee':
|
|
1847
1423
|
return match.day(dateString, {
|
|
1848
1424
|
width: 'narrow',
|
|
1849
1425
|
context: 'formatting'
|
|
1850
1426
|
});
|
|
1851
1427
|
// Tu
|
|
1852
|
-
|
|
1853
1428
|
case 'eeeeee':
|
|
1854
1429
|
return match.day(dateString, {
|
|
1855
1430
|
width: 'short',
|
|
@@ -1859,7 +1434,6 @@ var LocalDayParser = /*#__PURE__*/function (_Parser) {
|
|
|
1859
1434
|
context: 'formatting'
|
|
1860
1435
|
});
|
|
1861
1436
|
// Tuesday
|
|
1862
|
-
|
|
1863
1437
|
case 'eeee':
|
|
1864
1438
|
default:
|
|
1865
1439
|
return match.day(dateString, {
|
|
@@ -1890,65 +1464,30 @@ var LocalDayParser = /*#__PURE__*/function (_Parser) {
|
|
|
1890
1464
|
return date;
|
|
1891
1465
|
}
|
|
1892
1466
|
}]);
|
|
1893
|
-
|
|
1894
1467
|
return LocalDayParser;
|
|
1895
1468
|
}(Parser);
|
|
1896
1469
|
|
|
1897
|
-
function _typeof$g(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$g = function _typeof(obj) { return typeof obj; }; } else { _typeof$g = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$g(obj); }
|
|
1898
|
-
|
|
1899
|
-
function _classCallCheck$f(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1900
|
-
|
|
1901
|
-
function _defineProperties$f(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
1902
|
-
|
|
1903
|
-
function _createClass$f(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$f(Constructor.prototype, protoProps); if (staticProps) _defineProperties$f(Constructor, staticProps); return Constructor; }
|
|
1904
|
-
|
|
1905
|
-
function _inherits$f(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$f(subClass, superClass); }
|
|
1906
|
-
|
|
1907
|
-
function _setPrototypeOf$f(o, p) { _setPrototypeOf$f = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$f(o, p); }
|
|
1908
|
-
|
|
1909
|
-
function _createSuper$f(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$f(); return function _createSuperInternal() { var Super = _getPrototypeOf$f(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$f(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$f(this, result); }; }
|
|
1910
|
-
|
|
1911
|
-
function _possibleConstructorReturn$f(self, call) { if (call && (_typeof$g(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$f(self); }
|
|
1912
|
-
|
|
1913
|
-
function _assertThisInitialized$f(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1914
|
-
|
|
1915
|
-
function _isNativeReflectConstruct$f() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
1916
|
-
|
|
1917
|
-
function _getPrototypeOf$f(o) { _getPrototypeOf$f = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$f(o); }
|
|
1918
|
-
|
|
1919
|
-
function _defineProperty$f(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1920
|
-
|
|
1921
1470
|
var StandAloneLocalDayParser = /*#__PURE__*/function (_Parser) {
|
|
1922
|
-
_inherits
|
|
1923
|
-
|
|
1924
|
-
var _super = _createSuper$f(StandAloneLocalDayParser);
|
|
1925
|
-
|
|
1471
|
+
_inherits(StandAloneLocalDayParser, _Parser);
|
|
1472
|
+
var _super = _createSuper(StandAloneLocalDayParser);
|
|
1926
1473
|
function StandAloneLocalDayParser() {
|
|
1927
1474
|
var _this;
|
|
1928
|
-
|
|
1929
|
-
_classCallCheck$f(this, StandAloneLocalDayParser);
|
|
1930
|
-
|
|
1475
|
+
_classCallCheck(this, StandAloneLocalDayParser);
|
|
1931
1476
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1932
1477
|
args[_key] = arguments[_key];
|
|
1933
1478
|
}
|
|
1934
|
-
|
|
1935
1479
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
1936
|
-
|
|
1937
|
-
_defineProperty
|
|
1938
|
-
|
|
1939
|
-
_defineProperty$f(_assertThisInitialized$f(_this), "incompatibleTokens", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'e', 't', 'T']);
|
|
1940
|
-
|
|
1480
|
+
_defineProperty(_assertThisInitialized(_this), "priority", 90);
|
|
1481
|
+
_defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'e', 't', 'T']);
|
|
1941
1482
|
return _this;
|
|
1942
1483
|
}
|
|
1943
|
-
|
|
1944
|
-
_createClass$f(StandAloneLocalDayParser, [{
|
|
1484
|
+
_createClass(StandAloneLocalDayParser, [{
|
|
1945
1485
|
key: "parse",
|
|
1946
1486
|
value: function parse(dateString, token, match, options) {
|
|
1947
1487
|
var valueCallback = function valueCallback(value) {
|
|
1948
1488
|
var wholeWeekDays = Math.floor((value - 1) / 7) * 7;
|
|
1949
1489
|
return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;
|
|
1950
1490
|
};
|
|
1951
|
-
|
|
1952
1491
|
switch (token) {
|
|
1953
1492
|
// 3
|
|
1954
1493
|
case 'c':
|
|
@@ -1956,13 +1495,11 @@ var StandAloneLocalDayParser = /*#__PURE__*/function (_Parser) {
|
|
|
1956
1495
|
// 03
|
|
1957
1496
|
return mapValue(parseNDigits(token.length, dateString), valueCallback);
|
|
1958
1497
|
// 3rd
|
|
1959
|
-
|
|
1960
1498
|
case 'co':
|
|
1961
1499
|
return mapValue(match.ordinalNumber(dateString, {
|
|
1962
1500
|
unit: 'day'
|
|
1963
1501
|
}), valueCallback);
|
|
1964
1502
|
// Tue
|
|
1965
|
-
|
|
1966
1503
|
case 'ccc':
|
|
1967
1504
|
return match.day(dateString, {
|
|
1968
1505
|
width: 'abbreviated',
|
|
@@ -1975,14 +1512,12 @@ var StandAloneLocalDayParser = /*#__PURE__*/function (_Parser) {
|
|
|
1975
1512
|
context: 'standalone'
|
|
1976
1513
|
});
|
|
1977
1514
|
// T
|
|
1978
|
-
|
|
1979
1515
|
case 'ccccc':
|
|
1980
1516
|
return match.day(dateString, {
|
|
1981
1517
|
width: 'narrow',
|
|
1982
1518
|
context: 'standalone'
|
|
1983
1519
|
});
|
|
1984
1520
|
// Tu
|
|
1985
|
-
|
|
1986
1521
|
case 'cccccc':
|
|
1987
1522
|
return match.day(dateString, {
|
|
1988
1523
|
width: 'short',
|
|
@@ -1992,7 +1527,6 @@ var StandAloneLocalDayParser = /*#__PURE__*/function (_Parser) {
|
|
|
1992
1527
|
context: 'standalone'
|
|
1993
1528
|
});
|
|
1994
1529
|
// Tuesday
|
|
1995
|
-
|
|
1996
1530
|
case 'cccc':
|
|
1997
1531
|
default:
|
|
1998
1532
|
return match.day(dateString, {
|
|
@@ -2023,18 +1557,15 @@ var StandAloneLocalDayParser = /*#__PURE__*/function (_Parser) {
|
|
|
2023
1557
|
return date;
|
|
2024
1558
|
}
|
|
2025
1559
|
}]);
|
|
2026
|
-
|
|
2027
1560
|
return StandAloneLocalDayParser;
|
|
2028
1561
|
}(Parser);
|
|
2029
1562
|
|
|
2030
1563
|
function setUTCISODay(dirtyDate, dirtyDay) {
|
|
2031
1564
|
requiredArgs(2, arguments);
|
|
2032
1565
|
var day = toInteger(dirtyDay);
|
|
2033
|
-
|
|
2034
1566
|
if (day % 7 === 0) {
|
|
2035
1567
|
day = day - 7;
|
|
2036
1568
|
}
|
|
2037
|
-
|
|
2038
1569
|
var weekStartsOn = 1;
|
|
2039
1570
|
var date = toDate(dirtyDate);
|
|
2040
1571
|
var currentDay = date.getUTCDay();
|
|
@@ -2045,64 +1576,29 @@ function setUTCISODay(dirtyDate, dirtyDay) {
|
|
|
2045
1576
|
return date;
|
|
2046
1577
|
}
|
|
2047
1578
|
|
|
2048
|
-
function _typeof$f(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$f = function _typeof(obj) { return typeof obj; }; } else { _typeof$f = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$f(obj); }
|
|
2049
|
-
|
|
2050
|
-
function _classCallCheck$e(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2051
|
-
|
|
2052
|
-
function _defineProperties$e(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
2053
|
-
|
|
2054
|
-
function _createClass$e(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$e(Constructor.prototype, protoProps); if (staticProps) _defineProperties$e(Constructor, staticProps); return Constructor; }
|
|
2055
|
-
|
|
2056
|
-
function _inherits$e(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$e(subClass, superClass); }
|
|
2057
|
-
|
|
2058
|
-
function _setPrototypeOf$e(o, p) { _setPrototypeOf$e = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$e(o, p); }
|
|
2059
|
-
|
|
2060
|
-
function _createSuper$e(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$e(); return function _createSuperInternal() { var Super = _getPrototypeOf$e(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$e(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$e(this, result); }; }
|
|
2061
|
-
|
|
2062
|
-
function _possibleConstructorReturn$e(self, call) { if (call && (_typeof$f(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$e(self); }
|
|
2063
|
-
|
|
2064
|
-
function _assertThisInitialized$e(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
2065
|
-
|
|
2066
|
-
function _isNativeReflectConstruct$e() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
2067
|
-
|
|
2068
|
-
function _getPrototypeOf$e(o) { _getPrototypeOf$e = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$e(o); }
|
|
2069
|
-
|
|
2070
|
-
function _defineProperty$e(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2071
|
-
|
|
2072
1579
|
var ISODayParser = /*#__PURE__*/function (_Parser) {
|
|
2073
|
-
_inherits
|
|
2074
|
-
|
|
2075
|
-
var _super = _createSuper$e(ISODayParser);
|
|
2076
|
-
|
|
1580
|
+
_inherits(ISODayParser, _Parser);
|
|
1581
|
+
var _super = _createSuper(ISODayParser);
|
|
2077
1582
|
function ISODayParser() {
|
|
2078
1583
|
var _this;
|
|
2079
|
-
|
|
2080
|
-
_classCallCheck$e(this, ISODayParser);
|
|
2081
|
-
|
|
1584
|
+
_classCallCheck(this, ISODayParser);
|
|
2082
1585
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
2083
1586
|
args[_key] = arguments[_key];
|
|
2084
1587
|
}
|
|
2085
|
-
|
|
2086
1588
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
2087
|
-
|
|
2088
|
-
_defineProperty
|
|
2089
|
-
|
|
2090
|
-
_defineProperty$e(_assertThisInitialized$e(_this), "incompatibleTokens", ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'E', 'e', 'c', 't', 'T']);
|
|
2091
|
-
|
|
1589
|
+
_defineProperty(_assertThisInitialized(_this), "priority", 90);
|
|
1590
|
+
_defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'E', 'e', 'c', 't', 'T']);
|
|
2092
1591
|
return _this;
|
|
2093
1592
|
}
|
|
2094
|
-
|
|
2095
|
-
_createClass$e(ISODayParser, [{
|
|
1593
|
+
_createClass(ISODayParser, [{
|
|
2096
1594
|
key: "parse",
|
|
2097
1595
|
value: function parse(dateString, token, match) {
|
|
2098
1596
|
var valueCallback = function valueCallback(value) {
|
|
2099
1597
|
if (value === 0) {
|
|
2100
1598
|
return 7;
|
|
2101
1599
|
}
|
|
2102
|
-
|
|
2103
1600
|
return value;
|
|
2104
1601
|
};
|
|
2105
|
-
|
|
2106
1602
|
switch (token) {
|
|
2107
1603
|
// 2
|
|
2108
1604
|
case 'i':
|
|
@@ -2110,13 +1606,11 @@ var ISODayParser = /*#__PURE__*/function (_Parser) {
|
|
|
2110
1606
|
// 02
|
|
2111
1607
|
return parseNDigits(token.length, dateString);
|
|
2112
1608
|
// 2nd
|
|
2113
|
-
|
|
2114
1609
|
case 'io':
|
|
2115
1610
|
return match.ordinalNumber(dateString, {
|
|
2116
1611
|
unit: 'day'
|
|
2117
1612
|
});
|
|
2118
1613
|
// Tue
|
|
2119
|
-
|
|
2120
1614
|
case 'iii':
|
|
2121
1615
|
return mapValue(match.day(dateString, {
|
|
2122
1616
|
width: 'abbreviated',
|
|
@@ -2129,14 +1623,12 @@ var ISODayParser = /*#__PURE__*/function (_Parser) {
|
|
|
2129
1623
|
context: 'formatting'
|
|
2130
1624
|
}), valueCallback);
|
|
2131
1625
|
// T
|
|
2132
|
-
|
|
2133
1626
|
case 'iiiii':
|
|
2134
1627
|
return mapValue(match.day(dateString, {
|
|
2135
1628
|
width: 'narrow',
|
|
2136
1629
|
context: 'formatting'
|
|
2137
1630
|
}), valueCallback);
|
|
2138
1631
|
// Tu
|
|
2139
|
-
|
|
2140
1632
|
case 'iiiiii':
|
|
2141
1633
|
return mapValue(match.day(dateString, {
|
|
2142
1634
|
width: 'short',
|
|
@@ -2146,7 +1638,6 @@ var ISODayParser = /*#__PURE__*/function (_Parser) {
|
|
|
2146
1638
|
context: 'formatting'
|
|
2147
1639
|
}), valueCallback);
|
|
2148
1640
|
// Tuesday
|
|
2149
|
-
|
|
2150
1641
|
case 'iiii':
|
|
2151
1642
|
default:
|
|
2152
1643
|
return mapValue(match.day(dateString, {
|
|
@@ -2177,57 +1668,24 @@ var ISODayParser = /*#__PURE__*/function (_Parser) {
|
|
|
2177
1668
|
return date;
|
|
2178
1669
|
}
|
|
2179
1670
|
}]);
|
|
2180
|
-
|
|
2181
1671
|
return ISODayParser;
|
|
2182
1672
|
}(Parser);
|
|
2183
1673
|
|
|
2184
|
-
function _typeof$e(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$e = function _typeof(obj) { return typeof obj; }; } else { _typeof$e = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$e(obj); }
|
|
2185
|
-
|
|
2186
|
-
function _classCallCheck$d(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2187
|
-
|
|
2188
|
-
function _defineProperties$d(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
2189
|
-
|
|
2190
|
-
function _createClass$d(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$d(Constructor.prototype, protoProps); if (staticProps) _defineProperties$d(Constructor, staticProps); return Constructor; }
|
|
2191
|
-
|
|
2192
|
-
function _inherits$d(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$d(subClass, superClass); }
|
|
2193
|
-
|
|
2194
|
-
function _setPrototypeOf$d(o, p) { _setPrototypeOf$d = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$d(o, p); }
|
|
2195
|
-
|
|
2196
|
-
function _createSuper$d(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$d(); return function _createSuperInternal() { var Super = _getPrototypeOf$d(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$d(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$d(this, result); }; }
|
|
2197
|
-
|
|
2198
|
-
function _possibleConstructorReturn$d(self, call) { if (call && (_typeof$e(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$d(self); }
|
|
2199
|
-
|
|
2200
|
-
function _assertThisInitialized$d(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
2201
|
-
|
|
2202
|
-
function _isNativeReflectConstruct$d() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
2203
|
-
|
|
2204
|
-
function _getPrototypeOf$d(o) { _getPrototypeOf$d = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$d(o); }
|
|
2205
|
-
|
|
2206
|
-
function _defineProperty$d(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2207
1674
|
var AMPMParser = /*#__PURE__*/function (_Parser) {
|
|
2208
|
-
_inherits
|
|
2209
|
-
|
|
2210
|
-
var _super = _createSuper$d(AMPMParser);
|
|
2211
|
-
|
|
1675
|
+
_inherits(AMPMParser, _Parser);
|
|
1676
|
+
var _super = _createSuper(AMPMParser);
|
|
2212
1677
|
function AMPMParser() {
|
|
2213
1678
|
var _this;
|
|
2214
|
-
|
|
2215
|
-
_classCallCheck$d(this, AMPMParser);
|
|
2216
|
-
|
|
1679
|
+
_classCallCheck(this, AMPMParser);
|
|
2217
1680
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
2218
1681
|
args[_key] = arguments[_key];
|
|
2219
1682
|
}
|
|
2220
|
-
|
|
2221
1683
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
2222
|
-
|
|
2223
|
-
_defineProperty
|
|
2224
|
-
|
|
2225
|
-
_defineProperty$d(_assertThisInitialized$d(_this), "incompatibleTokens", ['b', 'B', 'H', 'k', 't', 'T']);
|
|
2226
|
-
|
|
1684
|
+
_defineProperty(_assertThisInitialized(_this), "priority", 80);
|
|
1685
|
+
_defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['b', 'B', 'H', 'k', 't', 'T']);
|
|
2227
1686
|
return _this;
|
|
2228
1687
|
}
|
|
2229
|
-
|
|
2230
|
-
_createClass$d(AMPMParser, [{
|
|
1688
|
+
_createClass(AMPMParser, [{
|
|
2231
1689
|
key: "parse",
|
|
2232
1690
|
value: function parse(dateString, token, match) {
|
|
2233
1691
|
switch (token) {
|
|
@@ -2241,13 +1699,11 @@ var AMPMParser = /*#__PURE__*/function (_Parser) {
|
|
|
2241
1699
|
width: 'narrow',
|
|
2242
1700
|
context: 'formatting'
|
|
2243
1701
|
});
|
|
2244
|
-
|
|
2245
1702
|
case 'aaaaa':
|
|
2246
1703
|
return match.dayPeriod(dateString, {
|
|
2247
1704
|
width: 'narrow',
|
|
2248
1705
|
context: 'formatting'
|
|
2249
1706
|
});
|
|
2250
|
-
|
|
2251
1707
|
case 'aaaa':
|
|
2252
1708
|
default:
|
|
2253
1709
|
return match.dayPeriod(dateString, {
|
|
@@ -2269,57 +1725,24 @@ var AMPMParser = /*#__PURE__*/function (_Parser) {
|
|
|
2269
1725
|
return date;
|
|
2270
1726
|
}
|
|
2271
1727
|
}]);
|
|
2272
|
-
|
|
2273
1728
|
return AMPMParser;
|
|
2274
1729
|
}(Parser);
|
|
2275
1730
|
|
|
2276
|
-
function _typeof$d(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$d = function _typeof(obj) { return typeof obj; }; } else { _typeof$d = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$d(obj); }
|
|
2277
|
-
|
|
2278
|
-
function _classCallCheck$c(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2279
|
-
|
|
2280
|
-
function _defineProperties$c(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
2281
|
-
|
|
2282
|
-
function _createClass$c(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$c(Constructor.prototype, protoProps); if (staticProps) _defineProperties$c(Constructor, staticProps); return Constructor; }
|
|
2283
|
-
|
|
2284
|
-
function _inherits$c(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$c(subClass, superClass); }
|
|
2285
|
-
|
|
2286
|
-
function _setPrototypeOf$c(o, p) { _setPrototypeOf$c = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$c(o, p); }
|
|
2287
|
-
|
|
2288
|
-
function _createSuper$c(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$c(); return function _createSuperInternal() { var Super = _getPrototypeOf$c(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$c(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$c(this, result); }; }
|
|
2289
|
-
|
|
2290
|
-
function _possibleConstructorReturn$c(self, call) { if (call && (_typeof$d(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$c(self); }
|
|
2291
|
-
|
|
2292
|
-
function _assertThisInitialized$c(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
2293
|
-
|
|
2294
|
-
function _isNativeReflectConstruct$c() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
2295
|
-
|
|
2296
|
-
function _getPrototypeOf$c(o) { _getPrototypeOf$c = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$c(o); }
|
|
2297
|
-
|
|
2298
|
-
function _defineProperty$c(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2299
1731
|
var AMPMMidnightParser = /*#__PURE__*/function (_Parser) {
|
|
2300
|
-
_inherits
|
|
2301
|
-
|
|
2302
|
-
var _super = _createSuper$c(AMPMMidnightParser);
|
|
2303
|
-
|
|
1732
|
+
_inherits(AMPMMidnightParser, _Parser);
|
|
1733
|
+
var _super = _createSuper(AMPMMidnightParser);
|
|
2304
1734
|
function AMPMMidnightParser() {
|
|
2305
1735
|
var _this;
|
|
2306
|
-
|
|
2307
|
-
_classCallCheck$c(this, AMPMMidnightParser);
|
|
2308
|
-
|
|
1736
|
+
_classCallCheck(this, AMPMMidnightParser);
|
|
2309
1737
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
2310
1738
|
args[_key] = arguments[_key];
|
|
2311
1739
|
}
|
|
2312
|
-
|
|
2313
1740
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
2314
|
-
|
|
2315
|
-
_defineProperty
|
|
2316
|
-
|
|
2317
|
-
_defineProperty$c(_assertThisInitialized$c(_this), "incompatibleTokens", ['a', 'B', 'H', 'k', 't', 'T']);
|
|
2318
|
-
|
|
1741
|
+
_defineProperty(_assertThisInitialized(_this), "priority", 80);
|
|
1742
|
+
_defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['a', 'B', 'H', 'k', 't', 'T']);
|
|
2319
1743
|
return _this;
|
|
2320
1744
|
}
|
|
2321
|
-
|
|
2322
|
-
_createClass$c(AMPMMidnightParser, [{
|
|
1745
|
+
_createClass(AMPMMidnightParser, [{
|
|
2323
1746
|
key: "parse",
|
|
2324
1747
|
value: function parse(dateString, token, match) {
|
|
2325
1748
|
switch (token) {
|
|
@@ -2333,13 +1756,11 @@ var AMPMMidnightParser = /*#__PURE__*/function (_Parser) {
|
|
|
2333
1756
|
width: 'narrow',
|
|
2334
1757
|
context: 'formatting'
|
|
2335
1758
|
});
|
|
2336
|
-
|
|
2337
1759
|
case 'bbbbb':
|
|
2338
1760
|
return match.dayPeriod(dateString, {
|
|
2339
1761
|
width: 'narrow',
|
|
2340
1762
|
context: 'formatting'
|
|
2341
1763
|
});
|
|
2342
|
-
|
|
2343
1764
|
case 'bbbb':
|
|
2344
1765
|
default:
|
|
2345
1766
|
return match.dayPeriod(dateString, {
|
|
@@ -2361,58 +1782,24 @@ var AMPMMidnightParser = /*#__PURE__*/function (_Parser) {
|
|
|
2361
1782
|
return date;
|
|
2362
1783
|
}
|
|
2363
1784
|
}]);
|
|
2364
|
-
|
|
2365
1785
|
return AMPMMidnightParser;
|
|
2366
1786
|
}(Parser);
|
|
2367
1787
|
|
|
2368
|
-
function _typeof$c(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$c = function _typeof(obj) { return typeof obj; }; } else { _typeof$c = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$c(obj); }
|
|
2369
|
-
|
|
2370
|
-
function _classCallCheck$b(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2371
|
-
|
|
2372
|
-
function _defineProperties$b(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
2373
|
-
|
|
2374
|
-
function _createClass$b(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$b(Constructor.prototype, protoProps); if (staticProps) _defineProperties$b(Constructor, staticProps); return Constructor; }
|
|
2375
|
-
|
|
2376
|
-
function _inherits$b(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$b(subClass, superClass); }
|
|
2377
|
-
|
|
2378
|
-
function _setPrototypeOf$b(o, p) { _setPrototypeOf$b = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$b(o, p); }
|
|
2379
|
-
|
|
2380
|
-
function _createSuper$b(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$b(); return function _createSuperInternal() { var Super = _getPrototypeOf$b(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$b(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$b(this, result); }; }
|
|
2381
|
-
|
|
2382
|
-
function _possibleConstructorReturn$b(self, call) { if (call && (_typeof$c(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$b(self); }
|
|
2383
|
-
|
|
2384
|
-
function _assertThisInitialized$b(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
2385
|
-
|
|
2386
|
-
function _isNativeReflectConstruct$b() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
2387
|
-
|
|
2388
|
-
function _getPrototypeOf$b(o) { _getPrototypeOf$b = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$b(o); }
|
|
2389
|
-
|
|
2390
|
-
function _defineProperty$b(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2391
|
-
|
|
2392
1788
|
var DayPeriodParser = /*#__PURE__*/function (_Parser) {
|
|
2393
|
-
_inherits
|
|
2394
|
-
|
|
2395
|
-
var _super = _createSuper$b(DayPeriodParser);
|
|
2396
|
-
|
|
1789
|
+
_inherits(DayPeriodParser, _Parser);
|
|
1790
|
+
var _super = _createSuper(DayPeriodParser);
|
|
2397
1791
|
function DayPeriodParser() {
|
|
2398
1792
|
var _this;
|
|
2399
|
-
|
|
2400
|
-
_classCallCheck$b(this, DayPeriodParser);
|
|
2401
|
-
|
|
1793
|
+
_classCallCheck(this, DayPeriodParser);
|
|
2402
1794
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
2403
1795
|
args[_key] = arguments[_key];
|
|
2404
1796
|
}
|
|
2405
|
-
|
|
2406
1797
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
2407
|
-
|
|
2408
|
-
_defineProperty
|
|
2409
|
-
|
|
2410
|
-
_defineProperty$b(_assertThisInitialized$b(_this), "incompatibleTokens", ['a', 'b', 't', 'T']);
|
|
2411
|
-
|
|
1798
|
+
_defineProperty(_assertThisInitialized(_this), "priority", 80);
|
|
1799
|
+
_defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['a', 'b', 't', 'T']);
|
|
2412
1800
|
return _this;
|
|
2413
1801
|
}
|
|
2414
|
-
|
|
2415
|
-
_createClass$b(DayPeriodParser, [{
|
|
1802
|
+
_createClass(DayPeriodParser, [{
|
|
2416
1803
|
key: "parse",
|
|
2417
1804
|
value: function parse(dateString, token, match) {
|
|
2418
1805
|
switch (token) {
|
|
@@ -2426,13 +1813,11 @@ var DayPeriodParser = /*#__PURE__*/function (_Parser) {
|
|
|
2426
1813
|
width: 'narrow',
|
|
2427
1814
|
context: 'formatting'
|
|
2428
1815
|
});
|
|
2429
|
-
|
|
2430
1816
|
case 'BBBBB':
|
|
2431
1817
|
return match.dayPeriod(dateString, {
|
|
2432
1818
|
width: 'narrow',
|
|
2433
1819
|
context: 'formatting'
|
|
2434
1820
|
});
|
|
2435
|
-
|
|
2436
1821
|
case 'BBBB':
|
|
2437
1822
|
default:
|
|
2438
1823
|
return match.dayPeriod(dateString, {
|
|
@@ -2454,68 +1839,33 @@ var DayPeriodParser = /*#__PURE__*/function (_Parser) {
|
|
|
2454
1839
|
return date;
|
|
2455
1840
|
}
|
|
2456
1841
|
}]);
|
|
2457
|
-
|
|
2458
1842
|
return DayPeriodParser;
|
|
2459
1843
|
}(Parser);
|
|
2460
1844
|
|
|
2461
|
-
function _typeof$b(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$b = function _typeof(obj) { return typeof obj; }; } else { _typeof$b = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$b(obj); }
|
|
2462
|
-
|
|
2463
|
-
function _classCallCheck$a(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2464
|
-
|
|
2465
|
-
function _defineProperties$a(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
2466
|
-
|
|
2467
|
-
function _createClass$a(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$a(Constructor.prototype, protoProps); if (staticProps) _defineProperties$a(Constructor, staticProps); return Constructor; }
|
|
2468
|
-
|
|
2469
|
-
function _inherits$a(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$a(subClass, superClass); }
|
|
2470
|
-
|
|
2471
|
-
function _setPrototypeOf$a(o, p) { _setPrototypeOf$a = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$a(o, p); }
|
|
2472
|
-
|
|
2473
|
-
function _createSuper$a(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$a(); return function _createSuperInternal() { var Super = _getPrototypeOf$a(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$a(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$a(this, result); }; }
|
|
2474
|
-
|
|
2475
|
-
function _possibleConstructorReturn$a(self, call) { if (call && (_typeof$b(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$a(self); }
|
|
2476
|
-
|
|
2477
|
-
function _assertThisInitialized$a(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
2478
|
-
|
|
2479
|
-
function _isNativeReflectConstruct$a() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
2480
|
-
|
|
2481
|
-
function _getPrototypeOf$a(o) { _getPrototypeOf$a = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$a(o); }
|
|
2482
|
-
|
|
2483
|
-
function _defineProperty$a(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2484
1845
|
var Hour1to12Parser = /*#__PURE__*/function (_Parser) {
|
|
2485
|
-
_inherits
|
|
2486
|
-
|
|
2487
|
-
var _super = _createSuper$a(Hour1to12Parser);
|
|
2488
|
-
|
|
1846
|
+
_inherits(Hour1to12Parser, _Parser);
|
|
1847
|
+
var _super = _createSuper(Hour1to12Parser);
|
|
2489
1848
|
function Hour1to12Parser() {
|
|
2490
1849
|
var _this;
|
|
2491
|
-
|
|
2492
|
-
_classCallCheck$a(this, Hour1to12Parser);
|
|
2493
|
-
|
|
1850
|
+
_classCallCheck(this, Hour1to12Parser);
|
|
2494
1851
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
2495
1852
|
args[_key] = arguments[_key];
|
|
2496
1853
|
}
|
|
2497
|
-
|
|
2498
1854
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
2499
|
-
|
|
2500
|
-
_defineProperty
|
|
2501
|
-
|
|
2502
|
-
_defineProperty$a(_assertThisInitialized$a(_this), "incompatibleTokens", ['H', 'K', 'k', 't', 'T']);
|
|
2503
|
-
|
|
1855
|
+
_defineProperty(_assertThisInitialized(_this), "priority", 70);
|
|
1856
|
+
_defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['H', 'K', 'k', 't', 'T']);
|
|
2504
1857
|
return _this;
|
|
2505
1858
|
}
|
|
2506
|
-
|
|
2507
|
-
_createClass$a(Hour1to12Parser, [{
|
|
1859
|
+
_createClass(Hour1to12Parser, [{
|
|
2508
1860
|
key: "parse",
|
|
2509
1861
|
value: function parse(dateString, token, match) {
|
|
2510
1862
|
switch (token) {
|
|
2511
1863
|
case 'h':
|
|
2512
1864
|
return parseNumericPattern(numericPatterns.hour12h, dateString);
|
|
2513
|
-
|
|
2514
1865
|
case 'ho':
|
|
2515
1866
|
return match.ordinalNumber(dateString, {
|
|
2516
1867
|
unit: 'hour'
|
|
2517
1868
|
});
|
|
2518
|
-
|
|
2519
1869
|
default:
|
|
2520
1870
|
return parseNDigits(token.length, dateString);
|
|
2521
1871
|
}
|
|
@@ -2529,7 +1879,6 @@ var Hour1to12Parser = /*#__PURE__*/function (_Parser) {
|
|
|
2529
1879
|
key: "set",
|
|
2530
1880
|
value: function set(date, _flags, value) {
|
|
2531
1881
|
var isPM = date.getUTCHours() >= 12;
|
|
2532
|
-
|
|
2533
1882
|
if (isPM && value < 12) {
|
|
2534
1883
|
date.setUTCHours(value + 12, 0, 0, 0);
|
|
2535
1884
|
} else if (!isPM && value === 12) {
|
|
@@ -2537,72 +1886,36 @@ var Hour1to12Parser = /*#__PURE__*/function (_Parser) {
|
|
|
2537
1886
|
} else {
|
|
2538
1887
|
date.setUTCHours(value, 0, 0, 0);
|
|
2539
1888
|
}
|
|
2540
|
-
|
|
2541
1889
|
return date;
|
|
2542
1890
|
}
|
|
2543
1891
|
}]);
|
|
2544
|
-
|
|
2545
1892
|
return Hour1to12Parser;
|
|
2546
1893
|
}(Parser);
|
|
2547
1894
|
|
|
2548
|
-
function _typeof$a(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$a = function _typeof(obj) { return typeof obj; }; } else { _typeof$a = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$a(obj); }
|
|
2549
|
-
|
|
2550
|
-
function _classCallCheck$9(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2551
|
-
|
|
2552
|
-
function _defineProperties$9(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
2553
|
-
|
|
2554
|
-
function _createClass$9(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$9(Constructor.prototype, protoProps); if (staticProps) _defineProperties$9(Constructor, staticProps); return Constructor; }
|
|
2555
|
-
|
|
2556
|
-
function _inherits$9(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$9(subClass, superClass); }
|
|
2557
|
-
|
|
2558
|
-
function _setPrototypeOf$9(o, p) { _setPrototypeOf$9 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$9(o, p); }
|
|
2559
|
-
|
|
2560
|
-
function _createSuper$9(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$9(); return function _createSuperInternal() { var Super = _getPrototypeOf$9(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$9(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$9(this, result); }; }
|
|
2561
|
-
|
|
2562
|
-
function _possibleConstructorReturn$9(self, call) { if (call && (_typeof$a(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$9(self); }
|
|
2563
|
-
|
|
2564
|
-
function _assertThisInitialized$9(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
2565
|
-
|
|
2566
|
-
function _isNativeReflectConstruct$9() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
2567
|
-
|
|
2568
|
-
function _getPrototypeOf$9(o) { _getPrototypeOf$9 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$9(o); }
|
|
2569
|
-
|
|
2570
|
-
function _defineProperty$9(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2571
1895
|
var Hour0to23Parser = /*#__PURE__*/function (_Parser) {
|
|
2572
|
-
_inherits
|
|
2573
|
-
|
|
2574
|
-
var _super = _createSuper$9(Hour0to23Parser);
|
|
2575
|
-
|
|
1896
|
+
_inherits(Hour0to23Parser, _Parser);
|
|
1897
|
+
var _super = _createSuper(Hour0to23Parser);
|
|
2576
1898
|
function Hour0to23Parser() {
|
|
2577
1899
|
var _this;
|
|
2578
|
-
|
|
2579
|
-
_classCallCheck$9(this, Hour0to23Parser);
|
|
2580
|
-
|
|
1900
|
+
_classCallCheck(this, Hour0to23Parser);
|
|
2581
1901
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
2582
1902
|
args[_key] = arguments[_key];
|
|
2583
1903
|
}
|
|
2584
|
-
|
|
2585
1904
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
2586
|
-
|
|
2587
|
-
_defineProperty
|
|
2588
|
-
|
|
2589
|
-
_defineProperty$9(_assertThisInitialized$9(_this), "incompatibleTokens", ['a', 'b', 'h', 'K', 'k', 't', 'T']);
|
|
2590
|
-
|
|
1905
|
+
_defineProperty(_assertThisInitialized(_this), "priority", 70);
|
|
1906
|
+
_defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['a', 'b', 'h', 'K', 'k', 't', 'T']);
|
|
2591
1907
|
return _this;
|
|
2592
1908
|
}
|
|
2593
|
-
|
|
2594
|
-
_createClass$9(Hour0to23Parser, [{
|
|
1909
|
+
_createClass(Hour0to23Parser, [{
|
|
2595
1910
|
key: "parse",
|
|
2596
1911
|
value: function parse(dateString, token, match) {
|
|
2597
1912
|
switch (token) {
|
|
2598
1913
|
case 'H':
|
|
2599
1914
|
return parseNumericPattern(numericPatterns.hour23h, dateString);
|
|
2600
|
-
|
|
2601
1915
|
case 'Ho':
|
|
2602
1916
|
return match.ordinalNumber(dateString, {
|
|
2603
1917
|
unit: 'hour'
|
|
2604
1918
|
});
|
|
2605
|
-
|
|
2606
1919
|
default:
|
|
2607
1920
|
return parseNDigits(token.length, dateString);
|
|
2608
1921
|
}
|
|
@@ -2613,74 +1926,39 @@ var Hour0to23Parser = /*#__PURE__*/function (_Parser) {
|
|
|
2613
1926
|
return value >= 0 && value <= 23;
|
|
2614
1927
|
}
|
|
2615
1928
|
}, {
|
|
2616
|
-
key: "set",
|
|
2617
|
-
value: function set(date, _flags, value) {
|
|
2618
|
-
date.setUTCHours(value, 0, 0, 0);
|
|
2619
|
-
return date;
|
|
2620
|
-
}
|
|
2621
|
-
}]);
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
}(Parser);
|
|
2625
|
-
|
|
2626
|
-
function _typeof$9(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$9 = function _typeof(obj) { return typeof obj; }; } else { _typeof$9 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$9(obj); }
|
|
2627
|
-
|
|
2628
|
-
function _classCallCheck$8(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2629
|
-
|
|
2630
|
-
function _defineProperties$8(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
2631
|
-
|
|
2632
|
-
function _createClass$8(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$8(Constructor.prototype, protoProps); if (staticProps) _defineProperties$8(Constructor, staticProps); return Constructor; }
|
|
2633
|
-
|
|
2634
|
-
function _inherits$8(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$8(subClass, superClass); }
|
|
2635
|
-
|
|
2636
|
-
function _setPrototypeOf$8(o, p) { _setPrototypeOf$8 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$8(o, p); }
|
|
2637
|
-
|
|
2638
|
-
function _createSuper$8(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$8(); return function _createSuperInternal() { var Super = _getPrototypeOf$8(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$8(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$8(this, result); }; }
|
|
2639
|
-
|
|
2640
|
-
function _possibleConstructorReturn$8(self, call) { if (call && (_typeof$9(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$8(self); }
|
|
2641
|
-
|
|
2642
|
-
function _assertThisInitialized$8(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
2643
|
-
|
|
2644
|
-
function _isNativeReflectConstruct$8() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
2645
|
-
|
|
2646
|
-
function _getPrototypeOf$8(o) { _getPrototypeOf$8 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$8(o); }
|
|
1929
|
+
key: "set",
|
|
1930
|
+
value: function set(date, _flags, value) {
|
|
1931
|
+
date.setUTCHours(value, 0, 0, 0);
|
|
1932
|
+
return date;
|
|
1933
|
+
}
|
|
1934
|
+
}]);
|
|
1935
|
+
return Hour0to23Parser;
|
|
1936
|
+
}(Parser);
|
|
2647
1937
|
|
|
2648
|
-
function _defineProperty$8(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2649
1938
|
var Hour0To11Parser = /*#__PURE__*/function (_Parser) {
|
|
2650
|
-
_inherits
|
|
2651
|
-
|
|
2652
|
-
var _super = _createSuper$8(Hour0To11Parser);
|
|
2653
|
-
|
|
1939
|
+
_inherits(Hour0To11Parser, _Parser);
|
|
1940
|
+
var _super = _createSuper(Hour0To11Parser);
|
|
2654
1941
|
function Hour0To11Parser() {
|
|
2655
1942
|
var _this;
|
|
2656
|
-
|
|
2657
|
-
_classCallCheck$8(this, Hour0To11Parser);
|
|
2658
|
-
|
|
1943
|
+
_classCallCheck(this, Hour0To11Parser);
|
|
2659
1944
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
2660
1945
|
args[_key] = arguments[_key];
|
|
2661
1946
|
}
|
|
2662
|
-
|
|
2663
1947
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
2664
|
-
|
|
2665
|
-
_defineProperty
|
|
2666
|
-
|
|
2667
|
-
_defineProperty$8(_assertThisInitialized$8(_this), "incompatibleTokens", ['h', 'H', 'k', 't', 'T']);
|
|
2668
|
-
|
|
1948
|
+
_defineProperty(_assertThisInitialized(_this), "priority", 70);
|
|
1949
|
+
_defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['h', 'H', 'k', 't', 'T']);
|
|
2669
1950
|
return _this;
|
|
2670
1951
|
}
|
|
2671
|
-
|
|
2672
|
-
_createClass$8(Hour0To11Parser, [{
|
|
1952
|
+
_createClass(Hour0To11Parser, [{
|
|
2673
1953
|
key: "parse",
|
|
2674
1954
|
value: function parse(dateString, token, match) {
|
|
2675
1955
|
switch (token) {
|
|
2676
1956
|
case 'K':
|
|
2677
1957
|
return parseNumericPattern(numericPatterns.hour11h, dateString);
|
|
2678
|
-
|
|
2679
1958
|
case 'Ko':
|
|
2680
1959
|
return match.ordinalNumber(dateString, {
|
|
2681
1960
|
unit: 'hour'
|
|
2682
1961
|
});
|
|
2683
|
-
|
|
2684
1962
|
default:
|
|
2685
1963
|
return parseNDigits(token.length, dateString);
|
|
2686
1964
|
}
|
|
@@ -2694,78 +1972,41 @@ var Hour0To11Parser = /*#__PURE__*/function (_Parser) {
|
|
|
2694
1972
|
key: "set",
|
|
2695
1973
|
value: function set(date, _flags, value) {
|
|
2696
1974
|
var isPM = date.getUTCHours() >= 12;
|
|
2697
|
-
|
|
2698
1975
|
if (isPM && value < 12) {
|
|
2699
1976
|
date.setUTCHours(value + 12, 0, 0, 0);
|
|
2700
1977
|
} else {
|
|
2701
1978
|
date.setUTCHours(value, 0, 0, 0);
|
|
2702
1979
|
}
|
|
2703
|
-
|
|
2704
1980
|
return date;
|
|
2705
1981
|
}
|
|
2706
1982
|
}]);
|
|
2707
|
-
|
|
2708
1983
|
return Hour0To11Parser;
|
|
2709
1984
|
}(Parser);
|
|
2710
1985
|
|
|
2711
|
-
function _typeof$8(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$8 = function _typeof(obj) { return typeof obj; }; } else { _typeof$8 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$8(obj); }
|
|
2712
|
-
|
|
2713
|
-
function _classCallCheck$7(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2714
|
-
|
|
2715
|
-
function _defineProperties$7(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
2716
|
-
|
|
2717
|
-
function _createClass$7(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$7(Constructor.prototype, protoProps); if (staticProps) _defineProperties$7(Constructor, staticProps); return Constructor; }
|
|
2718
|
-
|
|
2719
|
-
function _inherits$7(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$7(subClass, superClass); }
|
|
2720
|
-
|
|
2721
|
-
function _setPrototypeOf$7(o, p) { _setPrototypeOf$7 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$7(o, p); }
|
|
2722
|
-
|
|
2723
|
-
function _createSuper$7(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$7(); return function _createSuperInternal() { var Super = _getPrototypeOf$7(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$7(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$7(this, result); }; }
|
|
2724
|
-
|
|
2725
|
-
function _possibleConstructorReturn$7(self, call) { if (call && (_typeof$8(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$7(self); }
|
|
2726
|
-
|
|
2727
|
-
function _assertThisInitialized$7(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
2728
|
-
|
|
2729
|
-
function _isNativeReflectConstruct$7() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
2730
|
-
|
|
2731
|
-
function _getPrototypeOf$7(o) { _getPrototypeOf$7 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$7(o); }
|
|
2732
|
-
|
|
2733
|
-
function _defineProperty$7(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2734
1986
|
var Hour1To24Parser = /*#__PURE__*/function (_Parser) {
|
|
2735
|
-
_inherits
|
|
2736
|
-
|
|
2737
|
-
var _super = _createSuper$7(Hour1To24Parser);
|
|
2738
|
-
|
|
1987
|
+
_inherits(Hour1To24Parser, _Parser);
|
|
1988
|
+
var _super = _createSuper(Hour1To24Parser);
|
|
2739
1989
|
function Hour1To24Parser() {
|
|
2740
1990
|
var _this;
|
|
2741
|
-
|
|
2742
|
-
_classCallCheck$7(this, Hour1To24Parser);
|
|
2743
|
-
|
|
1991
|
+
_classCallCheck(this, Hour1To24Parser);
|
|
2744
1992
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
2745
1993
|
args[_key] = arguments[_key];
|
|
2746
1994
|
}
|
|
2747
|
-
|
|
2748
1995
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
2749
|
-
|
|
2750
|
-
_defineProperty
|
|
2751
|
-
|
|
2752
|
-
_defineProperty$7(_assertThisInitialized$7(_this), "incompatibleTokens", ['a', 'b', 'h', 'H', 'K', 't', 'T']);
|
|
2753
|
-
|
|
1996
|
+
_defineProperty(_assertThisInitialized(_this), "priority", 70);
|
|
1997
|
+
_defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['a', 'b', 'h', 'H', 'K', 't', 'T']);
|
|
2754
1998
|
return _this;
|
|
2755
1999
|
}
|
|
2756
|
-
|
|
2757
|
-
_createClass$7(Hour1To24Parser, [{
|
|
2000
|
+
_createClass(Hour1To24Parser, [{
|
|
2758
2001
|
key: "parse",
|
|
2759
2002
|
value: function parse(dateString, token, match) {
|
|
2760
2003
|
switch (token) {
|
|
2761
2004
|
case 'k':
|
|
2762
2005
|
return parseNumericPattern(numericPatterns.hour24h, dateString);
|
|
2763
|
-
|
|
2764
2006
|
case 'ko':
|
|
2765
2007
|
return match.ordinalNumber(dateString, {
|
|
2766
2008
|
unit: 'hour'
|
|
2767
2009
|
});
|
|
2768
|
-
|
|
2769
2010
|
default:
|
|
2770
2011
|
return parseNDigits(token.length, dateString);
|
|
2771
2012
|
}
|
|
@@ -2783,68 +2024,33 @@ var Hour1To24Parser = /*#__PURE__*/function (_Parser) {
|
|
|
2783
2024
|
return date;
|
|
2784
2025
|
}
|
|
2785
2026
|
}]);
|
|
2786
|
-
|
|
2787
2027
|
return Hour1To24Parser;
|
|
2788
2028
|
}(Parser);
|
|
2789
2029
|
|
|
2790
|
-
function _typeof$7(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$7 = function _typeof(obj) { return typeof obj; }; } else { _typeof$7 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$7(obj); }
|
|
2791
|
-
|
|
2792
|
-
function _classCallCheck$6(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2793
|
-
|
|
2794
|
-
function _defineProperties$6(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
2795
|
-
|
|
2796
|
-
function _createClass$6(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$6(Constructor.prototype, protoProps); if (staticProps) _defineProperties$6(Constructor, staticProps); return Constructor; }
|
|
2797
|
-
|
|
2798
|
-
function _inherits$6(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$6(subClass, superClass); }
|
|
2799
|
-
|
|
2800
|
-
function _setPrototypeOf$6(o, p) { _setPrototypeOf$6 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$6(o, p); }
|
|
2801
|
-
|
|
2802
|
-
function _createSuper$6(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$6(); return function _createSuperInternal() { var Super = _getPrototypeOf$6(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$6(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$6(this, result); }; }
|
|
2803
|
-
|
|
2804
|
-
function _possibleConstructorReturn$6(self, call) { if (call && (_typeof$7(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$6(self); }
|
|
2805
|
-
|
|
2806
|
-
function _assertThisInitialized$6(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
2807
|
-
|
|
2808
|
-
function _isNativeReflectConstruct$6() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
2809
|
-
|
|
2810
|
-
function _getPrototypeOf$6(o) { _getPrototypeOf$6 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$6(o); }
|
|
2811
|
-
|
|
2812
|
-
function _defineProperty$6(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2813
2030
|
var MinuteParser = /*#__PURE__*/function (_Parser) {
|
|
2814
|
-
_inherits
|
|
2815
|
-
|
|
2816
|
-
var _super = _createSuper$6(MinuteParser);
|
|
2817
|
-
|
|
2031
|
+
_inherits(MinuteParser, _Parser);
|
|
2032
|
+
var _super = _createSuper(MinuteParser);
|
|
2818
2033
|
function MinuteParser() {
|
|
2819
2034
|
var _this;
|
|
2820
|
-
|
|
2821
|
-
_classCallCheck$6(this, MinuteParser);
|
|
2822
|
-
|
|
2035
|
+
_classCallCheck(this, MinuteParser);
|
|
2823
2036
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
2824
2037
|
args[_key] = arguments[_key];
|
|
2825
2038
|
}
|
|
2826
|
-
|
|
2827
2039
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
2828
|
-
|
|
2829
|
-
_defineProperty
|
|
2830
|
-
|
|
2831
|
-
_defineProperty$6(_assertThisInitialized$6(_this), "incompatibleTokens", ['t', 'T']);
|
|
2832
|
-
|
|
2040
|
+
_defineProperty(_assertThisInitialized(_this), "priority", 60);
|
|
2041
|
+
_defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['t', 'T']);
|
|
2833
2042
|
return _this;
|
|
2834
2043
|
}
|
|
2835
|
-
|
|
2836
|
-
_createClass$6(MinuteParser, [{
|
|
2044
|
+
_createClass(MinuteParser, [{
|
|
2837
2045
|
key: "parse",
|
|
2838
2046
|
value: function parse(dateString, token, match) {
|
|
2839
2047
|
switch (token) {
|
|
2840
2048
|
case 'm':
|
|
2841
2049
|
return parseNumericPattern(numericPatterns.minute, dateString);
|
|
2842
|
-
|
|
2843
2050
|
case 'mo':
|
|
2844
2051
|
return match.ordinalNumber(dateString, {
|
|
2845
2052
|
unit: 'minute'
|
|
2846
2053
|
});
|
|
2847
|
-
|
|
2848
2054
|
default:
|
|
2849
2055
|
return parseNDigits(token.length, dateString);
|
|
2850
2056
|
}
|
|
@@ -2861,68 +2067,33 @@ var MinuteParser = /*#__PURE__*/function (_Parser) {
|
|
|
2861
2067
|
return date;
|
|
2862
2068
|
}
|
|
2863
2069
|
}]);
|
|
2864
|
-
|
|
2865
2070
|
return MinuteParser;
|
|
2866
2071
|
}(Parser);
|
|
2867
2072
|
|
|
2868
|
-
function _typeof$6(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$6 = function _typeof(obj) { return typeof obj; }; } else { _typeof$6 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$6(obj); }
|
|
2869
|
-
|
|
2870
|
-
function _classCallCheck$5(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2871
|
-
|
|
2872
|
-
function _defineProperties$5(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
2873
|
-
|
|
2874
|
-
function _createClass$5(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$5(Constructor.prototype, protoProps); if (staticProps) _defineProperties$5(Constructor, staticProps); return Constructor; }
|
|
2875
|
-
|
|
2876
|
-
function _inherits$5(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$5(subClass, superClass); }
|
|
2877
|
-
|
|
2878
|
-
function _setPrototypeOf$5(o, p) { _setPrototypeOf$5 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$5(o, p); }
|
|
2879
|
-
|
|
2880
|
-
function _createSuper$5(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$5(); return function _createSuperInternal() { var Super = _getPrototypeOf$5(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$5(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$5(this, result); }; }
|
|
2881
|
-
|
|
2882
|
-
function _possibleConstructorReturn$5(self, call) { if (call && (_typeof$6(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$5(self); }
|
|
2883
|
-
|
|
2884
|
-
function _assertThisInitialized$5(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
2885
|
-
|
|
2886
|
-
function _isNativeReflectConstruct$5() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
2887
|
-
|
|
2888
|
-
function _getPrototypeOf$5(o) { _getPrototypeOf$5 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$5(o); }
|
|
2889
|
-
|
|
2890
|
-
function _defineProperty$5(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2891
2073
|
var SecondParser = /*#__PURE__*/function (_Parser) {
|
|
2892
|
-
_inherits
|
|
2893
|
-
|
|
2894
|
-
var _super = _createSuper$5(SecondParser);
|
|
2895
|
-
|
|
2074
|
+
_inherits(SecondParser, _Parser);
|
|
2075
|
+
var _super = _createSuper(SecondParser);
|
|
2896
2076
|
function SecondParser() {
|
|
2897
2077
|
var _this;
|
|
2898
|
-
|
|
2899
|
-
_classCallCheck$5(this, SecondParser);
|
|
2900
|
-
|
|
2078
|
+
_classCallCheck(this, SecondParser);
|
|
2901
2079
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
2902
2080
|
args[_key] = arguments[_key];
|
|
2903
2081
|
}
|
|
2904
|
-
|
|
2905
2082
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
2906
|
-
|
|
2907
|
-
_defineProperty
|
|
2908
|
-
|
|
2909
|
-
_defineProperty$5(_assertThisInitialized$5(_this), "incompatibleTokens", ['t', 'T']);
|
|
2910
|
-
|
|
2083
|
+
_defineProperty(_assertThisInitialized(_this), "priority", 50);
|
|
2084
|
+
_defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['t', 'T']);
|
|
2911
2085
|
return _this;
|
|
2912
2086
|
}
|
|
2913
|
-
|
|
2914
|
-
_createClass$5(SecondParser, [{
|
|
2087
|
+
_createClass(SecondParser, [{
|
|
2915
2088
|
key: "parse",
|
|
2916
2089
|
value: function parse(dateString, token, match) {
|
|
2917
2090
|
switch (token) {
|
|
2918
2091
|
case 's':
|
|
2919
2092
|
return parseNumericPattern(numericPatterns.second, dateString);
|
|
2920
|
-
|
|
2921
2093
|
case 'so':
|
|
2922
2094
|
return match.ordinalNumber(dateString, {
|
|
2923
2095
|
unit: 'second'
|
|
2924
2096
|
});
|
|
2925
|
-
|
|
2926
2097
|
default:
|
|
2927
2098
|
return parseNDigits(token.length, dateString);
|
|
2928
2099
|
}
|
|
@@ -2939,63 +2110,29 @@ var SecondParser = /*#__PURE__*/function (_Parser) {
|
|
|
2939
2110
|
return date;
|
|
2940
2111
|
}
|
|
2941
2112
|
}]);
|
|
2942
|
-
|
|
2943
2113
|
return SecondParser;
|
|
2944
2114
|
}(Parser);
|
|
2945
2115
|
|
|
2946
|
-
function _typeof$5(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$5 = function _typeof(obj) { return typeof obj; }; } else { _typeof$5 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$5(obj); }
|
|
2947
|
-
|
|
2948
|
-
function _classCallCheck$4(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2949
|
-
|
|
2950
|
-
function _defineProperties$4(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
2951
|
-
|
|
2952
|
-
function _createClass$4(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$4(Constructor.prototype, protoProps); if (staticProps) _defineProperties$4(Constructor, staticProps); return Constructor; }
|
|
2953
|
-
|
|
2954
|
-
function _inherits$4(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$4(subClass, superClass); }
|
|
2955
|
-
|
|
2956
|
-
function _setPrototypeOf$4(o, p) { _setPrototypeOf$4 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$4(o, p); }
|
|
2957
|
-
|
|
2958
|
-
function _createSuper$4(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$4(); return function _createSuperInternal() { var Super = _getPrototypeOf$4(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$4(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$4(this, result); }; }
|
|
2959
|
-
|
|
2960
|
-
function _possibleConstructorReturn$4(self, call) { if (call && (_typeof$5(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$4(self); }
|
|
2961
|
-
|
|
2962
|
-
function _assertThisInitialized$4(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
2963
|
-
|
|
2964
|
-
function _isNativeReflectConstruct$4() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
2965
|
-
|
|
2966
|
-
function _getPrototypeOf$4(o) { _getPrototypeOf$4 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$4(o); }
|
|
2967
|
-
|
|
2968
|
-
function _defineProperty$4(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2969
2116
|
var FractionOfSecondParser = /*#__PURE__*/function (_Parser) {
|
|
2970
|
-
_inherits
|
|
2971
|
-
|
|
2972
|
-
var _super = _createSuper$4(FractionOfSecondParser);
|
|
2973
|
-
|
|
2117
|
+
_inherits(FractionOfSecondParser, _Parser);
|
|
2118
|
+
var _super = _createSuper(FractionOfSecondParser);
|
|
2974
2119
|
function FractionOfSecondParser() {
|
|
2975
2120
|
var _this;
|
|
2976
|
-
|
|
2977
|
-
_classCallCheck$4(this, FractionOfSecondParser);
|
|
2978
|
-
|
|
2121
|
+
_classCallCheck(this, FractionOfSecondParser);
|
|
2979
2122
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
2980
2123
|
args[_key] = arguments[_key];
|
|
2981
2124
|
}
|
|
2982
|
-
|
|
2983
2125
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
2984
|
-
|
|
2985
|
-
_defineProperty
|
|
2986
|
-
|
|
2987
|
-
_defineProperty$4(_assertThisInitialized$4(_this), "incompatibleTokens", ['t', 'T']);
|
|
2988
|
-
|
|
2126
|
+
_defineProperty(_assertThisInitialized(_this), "priority", 30);
|
|
2127
|
+
_defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['t', 'T']);
|
|
2989
2128
|
return _this;
|
|
2990
2129
|
}
|
|
2991
|
-
|
|
2992
|
-
_createClass$4(FractionOfSecondParser, [{
|
|
2130
|
+
_createClass(FractionOfSecondParser, [{
|
|
2993
2131
|
key: "parse",
|
|
2994
2132
|
value: function parse(dateString, token) {
|
|
2995
2133
|
var valueCallback = function valueCallback(value) {
|
|
2996
2134
|
return Math.floor(value * Math.pow(10, -token.length + 3));
|
|
2997
2135
|
};
|
|
2998
|
-
|
|
2999
2136
|
return mapValue(parseNDigits(token.length, dateString), valueCallback);
|
|
3000
2137
|
}
|
|
3001
2138
|
}, {
|
|
@@ -3005,73 +2142,35 @@ var FractionOfSecondParser = /*#__PURE__*/function (_Parser) {
|
|
|
3005
2142
|
return date;
|
|
3006
2143
|
}
|
|
3007
2144
|
}]);
|
|
3008
|
-
|
|
3009
2145
|
return FractionOfSecondParser;
|
|
3010
2146
|
}(Parser);
|
|
3011
2147
|
|
|
3012
|
-
function _typeof$4(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$4 = function _typeof(obj) { return typeof obj; }; } else { _typeof$4 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$4(obj); }
|
|
3013
|
-
|
|
3014
|
-
function _classCallCheck$3(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
3015
|
-
|
|
3016
|
-
function _defineProperties$3(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
3017
|
-
|
|
3018
|
-
function _createClass$3(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$3(Constructor.prototype, protoProps); if (staticProps) _defineProperties$3(Constructor, staticProps); return Constructor; }
|
|
3019
|
-
|
|
3020
|
-
function _inherits$3(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$3(subClass, superClass); }
|
|
3021
|
-
|
|
3022
|
-
function _setPrototypeOf$3(o, p) { _setPrototypeOf$3 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$3(o, p); }
|
|
3023
|
-
|
|
3024
|
-
function _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); return function _createSuperInternal() { var Super = _getPrototypeOf$3(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$3(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$3(this, result); }; }
|
|
3025
|
-
|
|
3026
|
-
function _possibleConstructorReturn$3(self, call) { if (call && (_typeof$4(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$3(self); }
|
|
3027
|
-
|
|
3028
|
-
function _assertThisInitialized$3(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3029
|
-
|
|
3030
|
-
function _isNativeReflectConstruct$3() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
3031
|
-
|
|
3032
|
-
function _getPrototypeOf$3(o) { _getPrototypeOf$3 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$3(o); }
|
|
3033
|
-
|
|
3034
|
-
function _defineProperty$3(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3035
|
-
|
|
3036
2148
|
var ISOTimezoneWithZParser = /*#__PURE__*/function (_Parser) {
|
|
3037
|
-
_inherits
|
|
3038
|
-
|
|
3039
|
-
var _super = _createSuper$3(ISOTimezoneWithZParser);
|
|
3040
|
-
|
|
2149
|
+
_inherits(ISOTimezoneWithZParser, _Parser);
|
|
2150
|
+
var _super = _createSuper(ISOTimezoneWithZParser);
|
|
3041
2151
|
function ISOTimezoneWithZParser() {
|
|
3042
2152
|
var _this;
|
|
3043
|
-
|
|
3044
|
-
_classCallCheck$3(this, ISOTimezoneWithZParser);
|
|
3045
|
-
|
|
2153
|
+
_classCallCheck(this, ISOTimezoneWithZParser);
|
|
3046
2154
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
3047
2155
|
args[_key] = arguments[_key];
|
|
3048
2156
|
}
|
|
3049
|
-
|
|
3050
2157
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
3051
|
-
|
|
3052
|
-
_defineProperty
|
|
3053
|
-
|
|
3054
|
-
_defineProperty$3(_assertThisInitialized$3(_this), "incompatibleTokens", ['t', 'T', 'x']);
|
|
3055
|
-
|
|
2158
|
+
_defineProperty(_assertThisInitialized(_this), "priority", 10);
|
|
2159
|
+
_defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['t', 'T', 'x']);
|
|
3056
2160
|
return _this;
|
|
3057
2161
|
}
|
|
3058
|
-
|
|
3059
|
-
_createClass$3(ISOTimezoneWithZParser, [{
|
|
2162
|
+
_createClass(ISOTimezoneWithZParser, [{
|
|
3060
2163
|
key: "parse",
|
|
3061
2164
|
value: function parse(dateString, token) {
|
|
3062
2165
|
switch (token) {
|
|
3063
2166
|
case 'X':
|
|
3064
2167
|
return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, dateString);
|
|
3065
|
-
|
|
3066
2168
|
case 'XX':
|
|
3067
2169
|
return parseTimezonePattern(timezonePatterns.basic, dateString);
|
|
3068
|
-
|
|
3069
2170
|
case 'XXXX':
|
|
3070
2171
|
return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, dateString);
|
|
3071
|
-
|
|
3072
2172
|
case 'XXXXX':
|
|
3073
2173
|
return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, dateString);
|
|
3074
|
-
|
|
3075
2174
|
case 'XXX':
|
|
3076
2175
|
default:
|
|
3077
2176
|
return parseTimezonePattern(timezonePatterns.extended, dateString);
|
|
@@ -3083,77 +2182,38 @@ var ISOTimezoneWithZParser = /*#__PURE__*/function (_Parser) {
|
|
|
3083
2182
|
if (flags.timestampIsSet) {
|
|
3084
2183
|
return date;
|
|
3085
2184
|
}
|
|
3086
|
-
|
|
3087
2185
|
return new Date(date.getTime() - value);
|
|
3088
2186
|
}
|
|
3089
2187
|
}]);
|
|
3090
|
-
|
|
3091
2188
|
return ISOTimezoneWithZParser;
|
|
3092
2189
|
}(Parser);
|
|
3093
2190
|
|
|
3094
|
-
function _typeof$3(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$3 = function _typeof(obj) { return typeof obj; }; } else { _typeof$3 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$3(obj); }
|
|
3095
|
-
|
|
3096
|
-
function _classCallCheck$2(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
3097
|
-
|
|
3098
|
-
function _defineProperties$2(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
3099
|
-
|
|
3100
|
-
function _createClass$2(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$2(Constructor.prototype, protoProps); if (staticProps) _defineProperties$2(Constructor, staticProps); return Constructor; }
|
|
3101
|
-
|
|
3102
|
-
function _inherits$2(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$2(subClass, superClass); }
|
|
3103
|
-
|
|
3104
|
-
function _setPrototypeOf$2(o, p) { _setPrototypeOf$2 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$2(o, p); }
|
|
3105
|
-
|
|
3106
|
-
function _createSuper$2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2(); return function _createSuperInternal() { var Super = _getPrototypeOf$2(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$2(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$2(this, result); }; }
|
|
3107
|
-
|
|
3108
|
-
function _possibleConstructorReturn$2(self, call) { if (call && (_typeof$3(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$2(self); }
|
|
3109
|
-
|
|
3110
|
-
function _assertThisInitialized$2(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3111
|
-
|
|
3112
|
-
function _isNativeReflectConstruct$2() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
3113
|
-
|
|
3114
|
-
function _getPrototypeOf$2(o) { _getPrototypeOf$2 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$2(o); }
|
|
3115
|
-
|
|
3116
|
-
function _defineProperty$2(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3117
|
-
|
|
3118
2191
|
var ISOTimezoneParser = /*#__PURE__*/function (_Parser) {
|
|
3119
|
-
_inherits
|
|
3120
|
-
|
|
3121
|
-
var _super = _createSuper$2(ISOTimezoneParser);
|
|
3122
|
-
|
|
2192
|
+
_inherits(ISOTimezoneParser, _Parser);
|
|
2193
|
+
var _super = _createSuper(ISOTimezoneParser);
|
|
3123
2194
|
function ISOTimezoneParser() {
|
|
3124
2195
|
var _this;
|
|
3125
|
-
|
|
3126
|
-
_classCallCheck$2(this, ISOTimezoneParser);
|
|
3127
|
-
|
|
2196
|
+
_classCallCheck(this, ISOTimezoneParser);
|
|
3128
2197
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
3129
2198
|
args[_key] = arguments[_key];
|
|
3130
2199
|
}
|
|
3131
|
-
|
|
3132
2200
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
3133
|
-
|
|
3134
|
-
_defineProperty
|
|
3135
|
-
|
|
3136
|
-
_defineProperty$2(_assertThisInitialized$2(_this), "incompatibleTokens", ['t', 'T', 'X']);
|
|
3137
|
-
|
|
2201
|
+
_defineProperty(_assertThisInitialized(_this), "priority", 10);
|
|
2202
|
+
_defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['t', 'T', 'X']);
|
|
3138
2203
|
return _this;
|
|
3139
2204
|
}
|
|
3140
|
-
|
|
3141
|
-
_createClass$2(ISOTimezoneParser, [{
|
|
2205
|
+
_createClass(ISOTimezoneParser, [{
|
|
3142
2206
|
key: "parse",
|
|
3143
2207
|
value: function parse(dateString, token) {
|
|
3144
2208
|
switch (token) {
|
|
3145
2209
|
case 'x':
|
|
3146
2210
|
return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, dateString);
|
|
3147
|
-
|
|
3148
2211
|
case 'xx':
|
|
3149
2212
|
return parseTimezonePattern(timezonePatterns.basic, dateString);
|
|
3150
|
-
|
|
3151
2213
|
case 'xxxx':
|
|
3152
2214
|
return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, dateString);
|
|
3153
|
-
|
|
3154
2215
|
case 'xxxxx':
|
|
3155
2216
|
return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, dateString);
|
|
3156
|
-
|
|
3157
2217
|
case 'xxx':
|
|
3158
2218
|
default:
|
|
3159
2219
|
return parseTimezonePattern(timezonePatterns.extended, dateString);
|
|
@@ -3165,61 +2225,27 @@ var ISOTimezoneParser = /*#__PURE__*/function (_Parser) {
|
|
|
3165
2225
|
if (flags.timestampIsSet) {
|
|
3166
2226
|
return date;
|
|
3167
2227
|
}
|
|
3168
|
-
|
|
3169
2228
|
return new Date(date.getTime() - value);
|
|
3170
2229
|
}
|
|
3171
2230
|
}]);
|
|
3172
|
-
|
|
3173
2231
|
return ISOTimezoneParser;
|
|
3174
2232
|
}(Parser);
|
|
3175
2233
|
|
|
3176
|
-
function _typeof$2(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$2 = function _typeof(obj) { return typeof obj; }; } else { _typeof$2 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$2(obj); }
|
|
3177
|
-
|
|
3178
|
-
function _classCallCheck$1(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
3179
|
-
|
|
3180
|
-
function _defineProperties$1(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
3181
|
-
|
|
3182
|
-
function _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); if (staticProps) _defineProperties$1(Constructor, staticProps); return Constructor; }
|
|
3183
|
-
|
|
3184
|
-
function _inherits$1(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$1(subClass, superClass); }
|
|
3185
|
-
|
|
3186
|
-
function _setPrototypeOf$1(o, p) { _setPrototypeOf$1 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$1(o, p); }
|
|
3187
|
-
|
|
3188
|
-
function _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = _getPrototypeOf$1(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$1(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$1(this, result); }; }
|
|
3189
|
-
|
|
3190
|
-
function _possibleConstructorReturn$1(self, call) { if (call && (_typeof$2(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$1(self); }
|
|
3191
|
-
|
|
3192
|
-
function _assertThisInitialized$1(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3193
|
-
|
|
3194
|
-
function _isNativeReflectConstruct$1() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
3195
|
-
|
|
3196
|
-
function _getPrototypeOf$1(o) { _getPrototypeOf$1 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$1(o); }
|
|
3197
|
-
|
|
3198
|
-
function _defineProperty$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3199
2234
|
var TimestampSecondsParser = /*#__PURE__*/function (_Parser) {
|
|
3200
|
-
_inherits
|
|
3201
|
-
|
|
3202
|
-
var _super = _createSuper$1(TimestampSecondsParser);
|
|
3203
|
-
|
|
2235
|
+
_inherits(TimestampSecondsParser, _Parser);
|
|
2236
|
+
var _super = _createSuper(TimestampSecondsParser);
|
|
3204
2237
|
function TimestampSecondsParser() {
|
|
3205
2238
|
var _this;
|
|
3206
|
-
|
|
3207
|
-
_classCallCheck$1(this, TimestampSecondsParser);
|
|
3208
|
-
|
|
2239
|
+
_classCallCheck(this, TimestampSecondsParser);
|
|
3209
2240
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
3210
2241
|
args[_key] = arguments[_key];
|
|
3211
2242
|
}
|
|
3212
|
-
|
|
3213
2243
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
3214
|
-
|
|
3215
|
-
_defineProperty
|
|
3216
|
-
|
|
3217
|
-
_defineProperty$1(_assertThisInitialized$1(_this), "incompatibleTokens", '*');
|
|
3218
|
-
|
|
2244
|
+
_defineProperty(_assertThisInitialized(_this), "priority", 40);
|
|
2245
|
+
_defineProperty(_assertThisInitialized(_this), "incompatibleTokens", '*');
|
|
3219
2246
|
return _this;
|
|
3220
2247
|
}
|
|
3221
|
-
|
|
3222
|
-
_createClass$1(TimestampSecondsParser, [{
|
|
2248
|
+
_createClass(TimestampSecondsParser, [{
|
|
3223
2249
|
key: "parse",
|
|
3224
2250
|
value: function parse(dateString) {
|
|
3225
2251
|
return parseAnyDigitsSigned(dateString);
|
|
@@ -3232,56 +2258,23 @@ var TimestampSecondsParser = /*#__PURE__*/function (_Parser) {
|
|
|
3232
2258
|
}];
|
|
3233
2259
|
}
|
|
3234
2260
|
}]);
|
|
3235
|
-
|
|
3236
2261
|
return TimestampSecondsParser;
|
|
3237
2262
|
}(Parser);
|
|
3238
2263
|
|
|
3239
|
-
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); }
|
|
3240
|
-
|
|
3241
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
3242
|
-
|
|
3243
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
3244
|
-
|
|
3245
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3246
|
-
|
|
3247
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
3248
|
-
|
|
3249
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3250
|
-
|
|
3251
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
3252
|
-
|
|
3253
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof$1(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3254
|
-
|
|
3255
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3256
|
-
|
|
3257
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
3258
|
-
|
|
3259
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3260
|
-
|
|
3261
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3262
2264
|
var TimestampMillisecondsParser = /*#__PURE__*/function (_Parser) {
|
|
3263
2265
|
_inherits(TimestampMillisecondsParser, _Parser);
|
|
3264
|
-
|
|
3265
2266
|
var _super = _createSuper(TimestampMillisecondsParser);
|
|
3266
|
-
|
|
3267
2267
|
function TimestampMillisecondsParser() {
|
|
3268
2268
|
var _this;
|
|
3269
|
-
|
|
3270
2269
|
_classCallCheck(this, TimestampMillisecondsParser);
|
|
3271
|
-
|
|
3272
2270
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
3273
2271
|
args[_key] = arguments[_key];
|
|
3274
2272
|
}
|
|
3275
|
-
|
|
3276
2273
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
3277
|
-
|
|
3278
2274
|
_defineProperty(_assertThisInitialized(_this), "priority", 20);
|
|
3279
|
-
|
|
3280
2275
|
_defineProperty(_assertThisInitialized(_this), "incompatibleTokens", '*');
|
|
3281
|
-
|
|
3282
2276
|
return _this;
|
|
3283
2277
|
}
|
|
3284
|
-
|
|
3285
2278
|
_createClass(TimestampMillisecondsParser, [{
|
|
3286
2279
|
key: "parse",
|
|
3287
2280
|
value: function parse(dateString) {
|
|
@@ -3295,7 +2288,6 @@ var TimestampMillisecondsParser = /*#__PURE__*/function (_Parser) {
|
|
|
3295
2288
|
}];
|
|
3296
2289
|
}
|
|
3297
2290
|
}]);
|
|
3298
|
-
|
|
3299
2291
|
return TimestampMillisecondsParser;
|
|
3300
2292
|
}(Parser);
|
|
3301
2293
|
|
|
@@ -3342,7 +2334,6 @@ var TimestampMillisecondsParser = /*#__PURE__*/function (_Parser) {
|
|
|
3342
2334
|
* `Y` is supposed to be used in conjunction with `w` and `e`
|
|
3343
2335
|
* for week-numbering date specific to the locale.
|
|
3344
2336
|
*/
|
|
3345
|
-
|
|
3346
2337
|
var parsers = {
|
|
3347
2338
|
G: new EraParser(),
|
|
3348
2339
|
y: new YearParser(),
|
|
@@ -3377,13 +2368,6 @@ var parsers = {
|
|
|
3377
2368
|
T: new TimestampMillisecondsParser()
|
|
3378
2369
|
};
|
|
3379
2370
|
|
|
3380
|
-
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); }
|
|
3381
|
-
|
|
3382
|
-
function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
3383
|
-
|
|
3384
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
3385
|
-
|
|
3386
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
3387
2371
|
// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token
|
|
3388
2372
|
// (one of the certain letters followed by `o`)
|
|
3389
2373
|
// - (\w)\1* matches any sequences of the same letter
|
|
@@ -3394,15 +2378,16 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
3394
2378
|
// If there is no matching single quote
|
|
3395
2379
|
// then the sequence will continue until the end of the string.
|
|
3396
2380
|
// - . matches any single character unmatched by previous parts of the RegExps
|
|
2381
|
+
var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g;
|
|
3397
2382
|
|
|
3398
|
-
|
|
2383
|
+
// This RegExp catches symbols escaped by quotes, and also
|
|
3399
2384
|
// sequences of symbols P, p, and the combinations like `PPPPPPPppppp`
|
|
3400
|
-
|
|
3401
2385
|
var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
|
|
3402
2386
|
var escapedStringRegExp = /^'([^]*?)'?$/;
|
|
3403
2387
|
var doubleQuoteRegExp = /''/g;
|
|
3404
2388
|
var notWhitespaceRegExp = /\S/;
|
|
3405
2389
|
var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
|
|
2390
|
+
|
|
3406
2391
|
/**
|
|
3407
2392
|
* @name parse
|
|
3408
2393
|
* @category Common Helpers
|
|
@@ -3704,32 +2689,28 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
|
|
|
3704
2689
|
* })
|
|
3705
2690
|
* //=> Sun Feb 28 2010 00:00:00
|
|
3706
2691
|
*/
|
|
3707
|
-
|
|
3708
2692
|
function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, options) {
|
|
3709
2693
|
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;
|
|
3710
|
-
|
|
3711
2694
|
requiredArgs(3, arguments);
|
|
3712
2695
|
var dateString = String(dirtyDateString);
|
|
3713
2696
|
var formatString = String(dirtyFormatString);
|
|
3714
2697
|
var defaultOptions = getDefaultOptions();
|
|
3715
2698
|
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;
|
|
3716
|
-
|
|
3717
2699
|
if (!locale$1.match) {
|
|
3718
2700
|
throw new RangeError('locale must contain match property');
|
|
3719
2701
|
}
|
|
2702
|
+
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);
|
|
3720
2703
|
|
|
3721
|
-
|
|
3722
|
-
|
|
2704
|
+
// Test if weekStartsOn is between 1 and 7 _and_ is not NaN
|
|
3723
2705
|
if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
|
|
3724
2706
|
throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
|
|
3725
2707
|
}
|
|
2708
|
+
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);
|
|
3726
2709
|
|
|
3727
|
-
|
|
3728
|
-
|
|
2710
|
+
// Test if weekStartsOn is between 0 and 6 _and_ is not NaN
|
|
3729
2711
|
if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
|
|
3730
2712
|
throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
|
|
3731
2713
|
}
|
|
3732
|
-
|
|
3733
2714
|
if (formatString === '') {
|
|
3734
2715
|
if (dateString === '') {
|
|
3735
2716
|
return toDate(dirtyReferenceDate);
|
|
@@ -3737,86 +2718,73 @@ function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, options)
|
|
|
3737
2718
|
return new Date(NaN);
|
|
3738
2719
|
}
|
|
3739
2720
|
}
|
|
3740
|
-
|
|
3741
2721
|
var subFnOptions = {
|
|
3742
2722
|
firstWeekContainsDate: firstWeekContainsDate,
|
|
3743
2723
|
weekStartsOn: weekStartsOn,
|
|
3744
2724
|
locale: locale$1
|
|
3745
|
-
};
|
|
2725
|
+
};
|
|
3746
2726
|
|
|
2727
|
+
// If timezone isn't specified, it will be set to the system timezone
|
|
3747
2728
|
var setters = [new DateToSystemTimezoneSetter()];
|
|
3748
2729
|
var tokens = formatString.match(longFormattingTokensRegExp).map(function (substring) {
|
|
3749
2730
|
var firstCharacter = substring[0];
|
|
3750
|
-
|
|
3751
2731
|
if (firstCharacter in longFormatters) {
|
|
3752
2732
|
var longFormatter = longFormatters[firstCharacter];
|
|
3753
2733
|
return longFormatter(substring, locale$1.formatLong);
|
|
3754
2734
|
}
|
|
3755
|
-
|
|
3756
2735
|
return substring;
|
|
3757
2736
|
}).join('').match(formattingTokensRegExp);
|
|
3758
2737
|
var usedTokens = [];
|
|
3759
|
-
|
|
3760
2738
|
var _iterator = _createForOfIteratorHelper(tokens),
|
|
3761
|
-
|
|
3762
|
-
|
|
2739
|
+
_step;
|
|
3763
2740
|
try {
|
|
3764
2741
|
var _loop = function _loop() {
|
|
3765
2742
|
var token = _step.value;
|
|
3766
|
-
|
|
3767
2743
|
if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && isProtectedWeekYearToken(token)) {
|
|
3768
2744
|
throwProtectedError(token, formatString, dirtyDateString);
|
|
3769
2745
|
}
|
|
3770
|
-
|
|
3771
2746
|
if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && isProtectedDayOfYearToken(token)) {
|
|
3772
2747
|
throwProtectedError(token, formatString, dirtyDateString);
|
|
3773
2748
|
}
|
|
3774
|
-
|
|
3775
2749
|
var firstCharacter = token[0];
|
|
3776
2750
|
var parser = parsers[firstCharacter];
|
|
3777
|
-
|
|
3778
2751
|
if (parser) {
|
|
3779
2752
|
var incompatibleTokens = parser.incompatibleTokens;
|
|
3780
|
-
|
|
3781
2753
|
if (Array.isArray(incompatibleTokens)) {
|
|
3782
2754
|
var incompatibleToken = usedTokens.find(function (usedToken) {
|
|
3783
2755
|
return incompatibleTokens.includes(usedToken.token) || usedToken.token === firstCharacter;
|
|
3784
2756
|
});
|
|
3785
|
-
|
|
3786
2757
|
if (incompatibleToken) {
|
|
3787
2758
|
throw new RangeError("The format string mustn't contain `".concat(incompatibleToken.fullToken, "` and `").concat(token, "` at the same time"));
|
|
3788
2759
|
}
|
|
3789
2760
|
} else if (parser.incompatibleTokens === '*' && usedTokens.length > 0) {
|
|
3790
2761
|
throw new RangeError("The format string mustn't contain `".concat(token, "` and any other token at the same time"));
|
|
3791
2762
|
}
|
|
3792
|
-
|
|
3793
2763
|
usedTokens.push({
|
|
3794
2764
|
token: firstCharacter,
|
|
3795
2765
|
fullToken: token
|
|
3796
2766
|
});
|
|
3797
2767
|
var parseResult = parser.run(dateString, token, locale$1.match, subFnOptions);
|
|
3798
|
-
|
|
3799
2768
|
if (!parseResult) {
|
|
3800
2769
|
return {
|
|
3801
2770
|
v: new Date(NaN)
|
|
3802
2771
|
};
|
|
3803
2772
|
}
|
|
3804
|
-
|
|
3805
2773
|
setters.push(parseResult.setter);
|
|
3806
2774
|
dateString = parseResult.rest;
|
|
3807
2775
|
} else {
|
|
3808
2776
|
if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
|
|
3809
2777
|
throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');
|
|
3810
|
-
}
|
|
3811
|
-
|
|
2778
|
+
}
|
|
3812
2779
|
|
|
2780
|
+
// Replace two single quote characters with one single quote character
|
|
3813
2781
|
if (token === "''") {
|
|
3814
2782
|
token = "'";
|
|
3815
2783
|
} else if (firstCharacter === "'") {
|
|
3816
2784
|
token = cleanEscapedString(token);
|
|
3817
|
-
}
|
|
3818
|
-
|
|
2785
|
+
}
|
|
3819
2786
|
|
|
2787
|
+
// Cut token from string, or, if string doesn't match the token, return Invalid Date
|
|
3820
2788
|
if (dateString.indexOf(token) === 0) {
|
|
3821
2789
|
dateString = dateString.slice(token.length);
|
|
3822
2790
|
} else {
|
|
@@ -3826,23 +2794,20 @@ function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, options)
|
|
|
3826
2794
|
}
|
|
3827
2795
|
}
|
|
3828
2796
|
};
|
|
3829
|
-
|
|
3830
2797
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3831
2798
|
var _ret = _loop();
|
|
3832
|
-
|
|
3833
2799
|
if (_typeof(_ret) === "object") return _ret.v;
|
|
3834
|
-
}
|
|
2800
|
+
}
|
|
3835
2801
|
|
|
2802
|
+
// Check if the remaining input contains something other than whitespace
|
|
3836
2803
|
} catch (err) {
|
|
3837
2804
|
_iterator.e(err);
|
|
3838
2805
|
} finally {
|
|
3839
2806
|
_iterator.f();
|
|
3840
2807
|
}
|
|
3841
|
-
|
|
3842
2808
|
if (dateString.length > 0 && notWhitespaceRegExp.test(dateString)) {
|
|
3843
2809
|
return new Date(NaN);
|
|
3844
2810
|
}
|
|
3845
|
-
|
|
3846
2811
|
var uniquePrioritySetters = setters.map(function (setter) {
|
|
3847
2812
|
return setter.priority;
|
|
3848
2813
|
}).sort(function (a, b) {
|
|
@@ -3859,31 +2824,27 @@ function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, options)
|
|
|
3859
2824
|
return setterArray[0];
|
|
3860
2825
|
});
|
|
3861
2826
|
var date = toDate(dirtyReferenceDate);
|
|
3862
|
-
|
|
3863
2827
|
if (isNaN(date.getTime())) {
|
|
3864
2828
|
return new Date(NaN);
|
|
3865
|
-
}
|
|
3866
|
-
|
|
2829
|
+
}
|
|
3867
2830
|
|
|
2831
|
+
// Convert the date in system timezone to the same date in UTC+00:00 timezone.
|
|
3868
2832
|
var utcDate = subMilliseconds(date, getTimezoneOffsetInMilliseconds(date));
|
|
3869
2833
|
var flags = {};
|
|
3870
|
-
|
|
3871
2834
|
var _iterator2 = _createForOfIteratorHelper(uniquePrioritySetters),
|
|
3872
|
-
|
|
3873
|
-
|
|
2835
|
+
_step2;
|
|
3874
2836
|
try {
|
|
3875
2837
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
3876
2838
|
var setter = _step2.value;
|
|
3877
|
-
|
|
3878
2839
|
if (!setter.validate(utcDate, subFnOptions)) {
|
|
3879
2840
|
return new Date(NaN);
|
|
3880
2841
|
}
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
2842
|
+
var result = setter.set(utcDate, flags, subFnOptions);
|
|
2843
|
+
// Result is tuple (date, flags)
|
|
3884
2844
|
if (Array.isArray(result)) {
|
|
3885
2845
|
utcDate = result[0];
|
|
3886
|
-
assign(flags, result[1]);
|
|
2846
|
+
assign(flags, result[1]);
|
|
2847
|
+
// Result is date
|
|
3887
2848
|
} else {
|
|
3888
2849
|
utcDate = result;
|
|
3889
2850
|
}
|
|
@@ -3893,10 +2854,8 @@ function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, options)
|
|
|
3893
2854
|
} finally {
|
|
3894
2855
|
_iterator2.f();
|
|
3895
2856
|
}
|
|
3896
|
-
|
|
3897
2857
|
return utcDate;
|
|
3898
2858
|
}
|
|
3899
|
-
|
|
3900
2859
|
function cleanEscapedString(input) {
|
|
3901
2860
|
return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'");
|
|
3902
2861
|
}
|