@saasquatch/mint-components 1.11.0-7 → 1.11.0-8
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/dist/cjs/{ShadowViewAddon-ba87315e.js → ShadowViewAddon-c3e91cee.js} +103 -79
- package/dist/cjs/{email-registration-view-5170d9f1.js → email-registration-view-248652bb.js} +1 -1
- package/dist/cjs/{global-0e1b8019.js → global-02e50f09.js} +12 -163
- package/dist/cjs/{index.module-2d82a984.js → index.module-df530553.js} +244 -1444
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{luxon-20eafbd9.js → luxon-05098e19.js} +1 -1
- package/dist/cjs/mint-components.cjs.js +4 -4
- package/dist/cjs/{mockRewardData-3c470512.js → mockRewardData-4258e067.js} +1 -1
- package/dist/cjs/{re-render-7744b75a.js → re-render-1976e05e.js} +5 -5
- package/dist/cjs/sqm-asset-card.cjs.entry.js +3 -3
- package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +522 -493
- package/dist/cjs/sqm-big-stat_38.cjs.entry.js +174 -134
- package/dist/cjs/sqm-close-button.cjs.entry.js +3 -3
- package/dist/cjs/sqm-context-router.cjs.entry.js +4 -4
- package/dist/cjs/sqm-empty_4.cjs.entry.js +14 -7
- package/dist/cjs/sqm-form-message.cjs.entry.js +2 -2
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +7 -7
- package/dist/cjs/sqm-header-logo.cjs.entry.js +2 -2
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +7 -7
- package/dist/cjs/{sqm-invoice-table-view-e75291d8.js → sqm-invoice-table-view-e3b03a00.js} +3 -2
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +11 -12
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +17 -19
- package/dist/cjs/{sqm-navigation-sidebar-item-view-34d8941e.js → sqm-navigation-sidebar-item-view-a125ec5f.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +5 -5
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +5 -5
- package/dist/cjs/sqm-password-field.cjs.entry.js +4 -4
- package/dist/cjs/sqm-popup-container.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-portal-container-view-5fb2ad49.js → sqm-portal-container-view-990a85a3.js} +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-a056e53e.js → sqm-portal-email-verification-view-292b5bf4.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +10 -10
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +7 -7
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-profile-view-c1753d1a.js → sqm-portal-profile-view-fde54e35.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +14 -15
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +7 -7
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +11 -12
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +9 -9
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +9 -10
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +16 -17
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +7 -7
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +4 -4
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +66 -67
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +226 -106
- package/dist/cjs/sqm-tab.cjs.entry.js +4 -4
- package/dist/cjs/sqm-tabs.cjs.entry.js +6 -6
- package/dist/cjs/sqm-text-span.cjs.entry.js +2 -2
- package/dist/cjs/{stencil-hooks.module-a5a04d8a.js → stencil-hooks.module-72742a0b.js} +4 -1
- package/dist/cjs/{useChildElements-079a23aa.js → useChildElements-e0d44916.js} +3 -3
- package/dist/cjs/{useInstantAccessRegistration-615a4dec.js → useInstantAccessRegistration-bbe746d1.js} +4 -4
- package/dist/cjs/{useReferralTable-034e8eb1.js → useReferralTable-a76adb0d.js} +19 -20
- package/dist/cjs/{useRegistrationFormState-cabaa291.js → useRegistrationFormState-876ed65d.js} +3 -3
- package/dist/cjs/{utilities-a4072d5b.js → utilities-cec9dd36.js} +2 -2
- package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +1 -1
- package/dist/collection/components/sqm-empty/EmptyState.stories.js +1 -1
- package/dist/collection/components/sqm-image/sqm-image-view.js +1 -1
- package/dist/collection/components/sqm-image/sqm-image.js +20 -0
- package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +130 -24
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +55 -29
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +93 -29
- package/dist/collection/components/sqm-leaderboard/useLeaderboard.js +40 -4
- package/dist/collection/components/sqm-logout-current-user/useLogoutCurrentUser.js +9 -10
- package/dist/collection/components/sqm-portal-container/PortalContainer.stories.js +19 -7
- package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +1 -1
- package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +37 -0
- package/dist/collection/components/sqm-portal-verify-email/PortalVerifyEmail.stories.js +0 -2
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +2 -2
- package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +0 -1
- package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +1 -1
- package/dist/collection/components/sqm-share-button/ShareButton.stories.js +1 -1
- package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +1 -1
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +2 -2
- package/dist/collection/components/sqm-task-card/UseTaskCard.stories.js +1 -1
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +1 -1
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +2 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +1 -4
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +2 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +27 -2
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +4 -1
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +4 -7
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +29 -0
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +55 -32
- package/dist/collection/components/views/email-registration-view.js +1 -1
- package/dist/collection/global/global.js +1 -1
- package/dist/collection/stories/NewPortal.stories.js +1 -1
- package/dist/esm/{ShadowViewAddon-cebdd86a.js → ShadowViewAddon-e012b2aa.js} +77 -53
- package/dist/esm/{email-registration-view-07d80492.js → email-registration-view-a89a88bf.js} +1 -1
- package/dist/esm/{global-ce667547.js → global-04c7d3b5.js} +12 -163
- package/dist/esm/{index.module-cfe48b0e.js → index.module-def4aec5.js} +223 -1426
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{luxon-63e24900.js → luxon-7600be8d.js} +1 -1
- package/dist/esm/mint-components.js +4 -4
- package/dist/esm/{mockRewardData-e6b763d1.js → mockRewardData-0eb6e778.js} +1 -1
- package/dist/esm/{re-render-9f58806b.js → re-render-12fd274a.js} +5 -5
- package/dist/esm/sqm-asset-card.entry.js +2 -2
- package/dist/esm/sqm-banking-info-form_16.entry.js +143 -114
- package/dist/esm/sqm-big-stat_38.entry.js +123 -83
- package/dist/esm/sqm-close-button.entry.js +2 -2
- package/dist/esm/sqm-context-router.entry.js +3 -3
- package/dist/esm/sqm-empty_4.entry.js +11 -4
- package/dist/esm/sqm-form-message.entry.js +1 -1
- package/dist/esm/sqm-graphql-client-provider.entry.js +6 -6
- package/dist/esm/sqm-header-logo.entry.js +1 -1
- package/dist/esm/sqm-instant-access-registration.entry.js +6 -6
- package/dist/esm/{sqm-invoice-table-view-bccf5bbc.js → sqm-invoice-table-view-6e13a323.js} +3 -2
- package/dist/esm/sqm-leaderboard-rank.entry.js +6 -7
- package/dist/esm/sqm-logout-current-user.entry.js +12 -14
- package/dist/esm/{sqm-navigation-sidebar-item-view-407d8d6a.js → sqm-navigation-sidebar-item-view-60ef06cc.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +4 -4
- package/dist/esm/sqm-navigation-sidebar.entry.js +4 -4
- package/dist/esm/sqm-password-field.entry.js +3 -3
- package/dist/esm/sqm-popup-container.entry.js +5 -5
- package/dist/esm/{sqm-portal-container-view-ab89c6cc.js → sqm-portal-container-view-6c582684.js} +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-b8ba7573.js → sqm-portal-email-verification-view-4307c992.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +9 -9
- package/dist/esm/sqm-portal-forgot-password.entry.js +6 -6
- package/dist/esm/sqm-portal-logout.entry.js +3 -3
- package/dist/esm/{sqm-portal-profile-view-9cbfeaf9.js → sqm-portal-profile-view-ffe955c8.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +8 -9
- package/dist/esm/sqm-portal-protected-route.entry.js +6 -6
- package/dist/esm/sqm-portal-registration-form.entry.js +9 -10
- package/dist/esm/sqm-portal-reset-password.entry.js +8 -8
- package/dist/esm/sqm-portal-verify-email.entry.js +8 -9
- package/dist/esm/sqm-referral-table_11.entry.js +8 -9
- package/dist/esm/sqm-referred-registration.entry.js +6 -6
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +3 -3
- package/dist/esm/sqm-rewards-table_9.entry.js +13 -14
- package/dist/esm/sqm-stencilbook.entry.js +224 -104
- package/dist/esm/sqm-tab.entry.js +3 -3
- package/dist/esm/sqm-tabs.entry.js +5 -5
- package/dist/esm/sqm-text-span.entry.js +1 -1
- package/dist/esm/{stencil-hooks.module-3c7f7c90.js → stencil-hooks.module-ac12ca1c.js} +1 -1
- package/dist/esm/{useChildElements-55ba77b1.js → useChildElements-32e1bda1.js} +3 -3
- package/dist/esm/{useInstantAccessRegistration-c8486b92.js → useInstantAccessRegistration-46b89952.js} +4 -4
- package/dist/esm/{useReferralTable-1671695f.js → useReferralTable-f4de0650.js} +10 -11
- package/dist/esm/{useRegistrationFormState-554eed2c.js → useRegistrationFormState-9fc1ac80.js} +3 -3
- package/dist/esm/{utilities-aa00400c.js → utilities-3f5bba22.js} +2 -2
- package/dist/esm-es5/ShadowViewAddon-e012b2aa.js +1 -0
- package/dist/esm-es5/email-registration-view-a89a88bf.js +1 -0
- package/dist/esm-es5/global-04c7d3b5.js +285 -0
- package/dist/esm-es5/index.module-def4aec5.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-63e24900.js → luxon-7600be8d.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{mockRewardData-e6b763d1.js → mockRewardData-0eb6e778.js} +1 -1
- package/dist/esm-es5/{re-render-9f58806b.js → re-render-12fd274a.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_38.entry.js +1 -1
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-form-message.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-invoice-table-view-6e13a323.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-407d8d6a.js → sqm-navigation-sidebar-item-view-60ef06cc.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-container-view-6c582684.js +1 -0
- package/dist/esm-es5/{sqm-portal-email-verification-view-b8ba7573.js → sqm-portal-email-verification-view-4307c992.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-9cbfeaf9.js → sqm-portal-profile-view-ffe955c8.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tab.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/{stencil-hooks.module-3c7f7c90.js → stencil-hooks.module-ac12ca1c.js} +1 -1
- package/dist/esm-es5/useChildElements-32e1bda1.js +1 -0
- package/dist/esm-es5/useInstantAccessRegistration-46b89952.js +1 -0
- package/dist/esm-es5/useReferralTable-f4de0650.js +1 -0
- package/dist/esm-es5/useRegistrationFormState-9fc1ac80.js +1 -0
- package/dist/esm-es5/{utilities-aa00400c.js → utilities-3f5bba22.js} +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/p-01cfff8a.system.entry.js +1 -0
- package/dist/mint-components/p-021a735d.entry.js +1 -0
- package/dist/mint-components/p-02424350.system.js +1 -0
- package/dist/mint-components/p-03494732.entry.js +1 -0
- package/dist/mint-components/{p-a2189daf.system.entry.js → p-07f675ab.system.entry.js} +1 -1
- package/dist/mint-components/p-0b9fa97f.js +1 -0
- package/dist/mint-components/{p-94b397d0.system.js → p-0d8c53ac.system.js} +1 -1
- package/dist/mint-components/{p-d491eac5.js → p-10685090.js} +24 -24
- package/dist/mint-components/p-10e89d0a.entry.js +1 -0
- package/dist/mint-components/{p-a05a21b8.entry.js → p-137ea86e.entry.js} +1 -1
- package/dist/mint-components/{p-cdd04337.entry.js → p-178d2d2e.entry.js} +1 -1
- package/dist/mint-components/p-1c857edb.entry.js +33 -0
- package/dist/mint-components/p-1dd69917.system.entry.js +1 -0
- package/dist/mint-components/{p-9223640e.js → p-251e7567.js} +1 -1
- package/dist/mint-components/{p-0979f82e.system.js → p-2a414b2e.system.js} +2 -2
- package/dist/mint-components/p-2dd67762.entry.js +1 -0
- package/dist/mint-components/{p-a2fc8ec6.js → p-2ee2ebba.js} +4 -4
- package/dist/mint-components/{p-3912f9af.entry.js → p-3223ba7b.entry.js} +1 -1
- package/dist/mint-components/p-32d1d162.entry.js +1 -0
- package/dist/mint-components/p-35d84041.system.entry.js +1 -0
- package/dist/mint-components/{p-cb45d0a8.system.js → p-370a1a73.system.js} +1 -1
- package/dist/mint-components/{p-69ae3f41.system.js → p-3d4656bb.system.js} +1 -1
- package/dist/mint-components/p-3ec16698.entry.js +13 -0
- package/dist/mint-components/p-3f385f47.entry.js +223 -0
- package/dist/mint-components/{p-83a759a6.js → p-41a11a7f.js} +1 -1
- package/dist/mint-components/p-44787d6e.system.js +1 -0
- package/dist/mint-components/{p-2669e88d.system.entry.js → p-4502ed11.system.entry.js} +1 -1
- package/dist/mint-components/{p-2a82e591.js → p-4d233cd4.js} +1 -1
- package/dist/mint-components/{p-8c616b35.system.js → p-4df8f1d2.system.js} +1 -1
- package/dist/mint-components/p-4ea58025.system.entry.js +1 -0
- package/dist/mint-components/{p-9a02b093.entry.js → p-4edde470.entry.js} +1 -1
- package/dist/mint-components/p-509e29e6.js +1 -0
- package/dist/mint-components/p-51f517a2.js +1 -0
- package/dist/mint-components/{p-709c0d6d.entry.js → p-56f14840.entry.js} +1 -1
- package/dist/mint-components/{p-2f75d0c6.system.entry.js → p-58ef25d3.system.entry.js} +1 -1
- package/dist/mint-components/{p-2c8c2ae9.system.js → p-59fe4ad1.system.js} +22 -22
- package/dist/mint-components/p-5b333fa8.system.entry.js +1 -0
- package/dist/mint-components/p-5be235f9.entry.js +1 -0
- package/dist/mint-components/{p-349315e6.system.entry.js → p-5cac90e8.system.entry.js} +1 -1
- package/dist/mint-components/{p-a56fbe1f.system.entry.js → p-5f1c4160.system.entry.js} +1 -1
- package/dist/mint-components/p-61eab172.js +1 -0
- package/dist/mint-components/{p-0034b33b.system.js → p-674a64fe.system.js} +1 -1
- package/dist/mint-components/{p-95af445c.system.entry.js → p-6afb4f48.system.entry.js} +1 -1
- package/dist/mint-components/{p-db7b9e12.entry.js → p-6cef104b.entry.js} +1 -1
- package/dist/mint-components/p-7049e9b0.entry.js +1 -0
- package/dist/mint-components/p-711ba77e.system.entry.js +1 -0
- package/dist/mint-components/p-733825fa.system.entry.js +1 -0
- package/dist/mint-components/p-76b2506e.system.entry.js +1 -0
- package/dist/mint-components/p-770368bc.system.js +1 -0
- package/dist/mint-components/{p-fd8496a0.system.entry.js → p-7731f793.system.entry.js} +1 -1
- package/dist/mint-components/p-79191f88.entry.js +1 -0
- package/dist/mint-components/{p-7a1e23b0.entry.js → p-7f088154.entry.js} +1 -1
- package/dist/mint-components/{p-5464dd3c.system.entry.js → p-8679ed9f.system.entry.js} +1 -1
- package/dist/mint-components/{p-747e6ce6.entry.js → p-86990110.entry.js} +1 -1
- package/dist/mint-components/p-8704937c.js +1248 -0
- package/dist/mint-components/{p-14beec1b.system.entry.js → p-88aac6a9.system.entry.js} +1 -1
- package/dist/mint-components/p-8b5b78ca.entry.js +1 -0
- package/dist/mint-components/{p-de9b0bcf.system.entry.js → p-8e907ac7.system.entry.js} +1 -1
- package/dist/mint-components/p-91669312.entry.js +1 -0
- package/dist/mint-components/p-95771f79.system.js +1 -0
- package/dist/mint-components/p-9c310991.system.entry.js +1 -0
- package/dist/mint-components/p-9df2fe24.entry.js +9 -0
- package/dist/mint-components/p-9f0629ba.system.entry.js +1 -0
- package/dist/mint-components/p-a1dba9a1.system.entry.js +1 -0
- package/dist/mint-components/p-a51533cb.system.js +1 -0
- package/dist/mint-components/p-a6a7dcaa.js +1 -0
- package/dist/mint-components/{p-ce23dbff.system.entry.js → p-a7c2ced2.system.entry.js} +1 -1
- package/dist/mint-components/p-a8f7cb95.js +1 -0
- package/dist/mint-components/{p-5f4a0d5a.entry.js → p-a9050eb0.entry.js} +1 -1
- package/dist/mint-components/p-aad11a68.entry.js +1 -0
- package/dist/mint-components/p-af062c8f.system.entry.js +1 -0
- package/dist/mint-components/{p-f0553edd.system.entry.js → p-afd366ae.system.entry.js} +1 -1
- package/dist/mint-components/p-b370fca8.system.js +1 -0
- package/dist/mint-components/p-b3b5b4b7.system.entry.js +1 -0
- package/dist/mint-components/{p-8b37f9fa.entry.js → p-b4c52c5a.entry.js} +3 -3
- package/dist/mint-components/p-b5861974.system.entry.js +1 -0
- package/dist/mint-components/{p-bf161aff.system.entry.js → p-b6fc1227.system.entry.js} +1 -1
- package/dist/mint-components/p-bb00db59.js +1 -0
- package/dist/mint-components/{p-74ba2bdd.system.entry.js → p-be4b748a.system.entry.js} +1 -1
- package/dist/mint-components/{p-e704842c.js → p-c7fd9e16.js} +1 -1
- package/dist/mint-components/p-c84659a3.system.js +1 -0
- package/dist/mint-components/p-c8878e79.entry.js +1 -0
- package/dist/mint-components/{p-4baf9ec9.entry.js → p-ce5afa40.entry.js} +1 -1
- package/dist/mint-components/{p-8d2d99b5.js → p-ce621bcc.js} +1 -1
- package/dist/mint-components/{p-e5299352.system.js → p-ce9e7c98.system.js} +1 -1
- package/dist/mint-components/{p-ad218d0b.system.entry.js → p-cf690d55.system.entry.js} +1 -1
- package/dist/mint-components/p-d495896f.system.entry.js +1 -0
- package/dist/mint-components/p-d8d2de11.entry.js +1 -0
- package/dist/mint-components/{p-5c602e84.entry.js → p-dd0d79bf.entry.js} +1 -1
- package/dist/mint-components/{p-553a92e2.system.js → p-dd7ee007.system.js} +1 -1
- package/dist/mint-components/p-e3735866.entry.js +11 -0
- package/dist/mint-components/p-e5a0c50e.entry.js +13 -0
- package/dist/mint-components/{p-92990ceb.js → p-eaada4da.js} +1 -1
- package/dist/mint-components/p-eba44835.system.entry.js +1 -0
- package/dist/mint-components/p-ec41d6a4.entry.js +174 -0
- package/dist/mint-components/{p-cc24f7e0.system.js → p-ed095674.system.js} +1 -1
- package/dist/mint-components/p-ed17e637.system.js +1 -0
- package/dist/mint-components/p-ed6ebd60.system.js +1 -0
- package/dist/mint-components/{p-7ab14d4b.system.entry.js → p-f0806232.system.entry.js} +1 -1
- package/dist/mint-components/{p-48704504.js → p-f3053c61.js} +1 -1
- package/dist/mint-components/{p-cfc4a126.system.entry.js → p-fb20eb5e.system.entry.js} +1 -1
- package/dist/mint-components/{p-79097c07.entry.js → p-fbdf0738.entry.js} +1 -1
- package/dist/mint-components/{p-1b24bb52.js → p-fd2c5407.js} +1 -1
- package/dist/types/components/sqm-card-feed/sqm-card-feed.d.ts +1 -1
- package/dist/types/components/sqm-image/sqm-image-view.d.ts +1 -0
- package/dist/types/components/sqm-image/sqm-image.d.ts +5 -0
- package/dist/types/components/sqm-leaderboard/Leaderboard.stories.d.ts +5 -1
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +6 -4
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +23 -6
- package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +4 -2
- package/dist/types/components/sqm-portal-container/PortalContainer.stories.d.ts +1 -0
- package/dist/types/components/sqm-portal-container/sqm-portal-container-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-container/sqm-portal-container.d.ts +7 -0
- package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email-view.d.ts +0 -1
- package/dist/types/components/sqm-portal-verify-email/usePortalVerifyEmail.d.ts +0 -1
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +2 -2
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.d.ts +0 -1
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +3 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.d.ts +5 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +3 -2
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +5 -0
- package/dist/types/components.d.ts +86 -14
- package/dist/types/saasquatch.d.ts +1 -1
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/index-56d1fa5b.js +0 -2227
- package/dist/esm/index-0c7b14c5.js +0 -2225
- package/dist/esm-es5/ShadowViewAddon-cebdd86a.js +0 -1
- package/dist/esm-es5/email-registration-view-07d80492.js +0 -1
- package/dist/esm-es5/global-ce667547.js +0 -285
- package/dist/esm-es5/index-0c7b14c5.js +0 -1
- package/dist/esm-es5/index.module-cfe48b0e.js +0 -53
- package/dist/esm-es5/sqm-invoice-table-view-bccf5bbc.js +0 -1
- package/dist/esm-es5/sqm-portal-container-view-ab89c6cc.js +0 -1
- package/dist/esm-es5/useChildElements-55ba77b1.js +0 -1
- package/dist/esm-es5/useInstantAccessRegistration-c8486b92.js +0 -1
- package/dist/esm-es5/useReferralTable-1671695f.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-554eed2c.js +0 -1
- package/dist/mint-components/p-10036f16.js +0 -1
- package/dist/mint-components/p-1128f16d.entry.js +0 -187
- package/dist/mint-components/p-155e5795.entry.js +0 -1
- package/dist/mint-components/p-175cf117.system.entry.js +0 -1
- package/dist/mint-components/p-1bb39bf3.js +0 -1
- package/dist/mint-components/p-1c021084.system.js +0 -1
- package/dist/mint-components/p-1cb0c56c.js +0 -1
- package/dist/mint-components/p-22082cf5.entry.js +0 -1
- package/dist/mint-components/p-2c1ec58d.system.entry.js +0 -1
- package/dist/mint-components/p-2d713a4a.entry.js +0 -1
- package/dist/mint-components/p-37518555.system.entry.js +0 -1
- package/dist/mint-components/p-4e5ff6d5.system.entry.js +0 -1
- package/dist/mint-components/p-4fd5cde2.entry.js +0 -1
- package/dist/mint-components/p-55ba5de4.js +0 -42
- package/dist/mint-components/p-569acf5d.entry.js +0 -1
- package/dist/mint-components/p-5a9e6c23.system.js +0 -1
- package/dist/mint-components/p-5e346208.system.entry.js +0 -1
- package/dist/mint-components/p-5f4cf5f4.system.js +0 -53
- package/dist/mint-components/p-6361cd09.system.entry.js +0 -1
- package/dist/mint-components/p-65976f70.system.entry.js +0 -1
- package/dist/mint-components/p-6bf41e0d.system.js +0 -1
- package/dist/mint-components/p-6fbfd683.js +0 -1
- package/dist/mint-components/p-77150ca3.entry.js +0 -1
- package/dist/mint-components/p-7b0c819b.entry.js +0 -174
- package/dist/mint-components/p-81ef4d8d.system.entry.js +0 -1
- package/dist/mint-components/p-84a5feb6.js +0 -1
- package/dist/mint-components/p-858a87ce.entry.js +0 -1
- package/dist/mint-components/p-89669879.system.js +0 -1
- package/dist/mint-components/p-8a82d287.entry.js +0 -1
- package/dist/mint-components/p-8d0312ad.entry.js +0 -13
- package/dist/mint-components/p-922578e4.system.js +0 -1
- package/dist/mint-components/p-93c4b92a.system.js +0 -1
- package/dist/mint-components/p-93feb565.system.entry.js +0 -1
- package/dist/mint-components/p-97f9ea19.system.js +0 -1
- package/dist/mint-components/p-9c1011db.entry.js +0 -9
- package/dist/mint-components/p-a1dddd9c.entry.js +0 -1
- package/dist/mint-components/p-a230e0f7.entry.js +0 -1
- package/dist/mint-components/p-a63607fe.js +0 -1
- package/dist/mint-components/p-a6ad8082.system.js +0 -1
- package/dist/mint-components/p-a7e84030.js +0 -1248
- package/dist/mint-components/p-aa1750ad.js +0 -1
- package/dist/mint-components/p-b9e629c4.entry.js +0 -1
- package/dist/mint-components/p-ba9642a9.entry.js +0 -33
- package/dist/mint-components/p-cac64545.system.entry.js +0 -1
- package/dist/mint-components/p-cc2a5934.entry.js +0 -13
- package/dist/mint-components/p-cca80c2e.system.entry.js +0 -1
- package/dist/mint-components/p-cf8ccbf5.entry.js +0 -1
- package/dist/mint-components/p-d29db28c.system.entry.js +0 -1
- package/dist/mint-components/p-d5e0b017.entry.js +0 -9
- package/dist/mint-components/p-dbb74fc2.system.entry.js +0 -1
- package/dist/mint-components/p-e3ddb67b.system.entry.js +0 -1
- package/dist/mint-components/p-eb8cb617.system.js +0 -1
- package/dist/mint-components/p-ef4336c4.system.entry.js +0 -1
- package/dist/mint-components/p-fec47694.entry.js +0 -1
- package/dist/mint-components/p-ff87ca9c.system.entry.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s}from"./p-64c3217a.js";import{n as t}from"./p-fd2c5407.js";import{b as a,$ as o,i as r}from"./p-a8f7cb95.js";const c=class{constructor(a){s(this,a),this.ignored=!0,this.nextPage="/",t(this)}disconnectedCallback(){}render(){r()||function({nextPage:s}){a(void 0),o.push({pathname:s,search:""})}(this)}};export{c as sqm_portal_logout}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,h as o}from"./p-64c3217a.js";import{
|
|
1
|
+
import{r as s,h as o}from"./p-64c3217a.js";import{n as t}from"./p-fd2c5407.js";import{a as r}from"./p-a8f7cb95.js";import"./p-02be1a88.js";import"./p-cef45012.js";import{C as a}from"./p-fb93c962.js";const c=class{constructor(o){s(this,o),this.color="#000000",t(this)}disconnectedCallback(){}render(){var s;const t=r();return"SquatchJS2"!==t.type||"POPUP"!==(null===(s=t.widgetIdent)||void 0===s?void 0:s.engagementMedium)?o("div",{style:{display:"none"}}):o(a,{onClick:()=>{var s,o;"SquatchJS2"===t.type&&(null===(o=(s=t.api).close)||void 0===o||o.call(s))},color:this.color})}};export{c as sqm_close_button}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,h as t,c as i}from"./p-64c3217a.js";import{
|
|
1
|
+
import{r as s,h as t,c as i}from"./p-64c3217a.js";import{n as r}from"./p-fd2c5407.js";const h=class{constructor(t){s(this,t),this.nextPage="/",this.height=60,r(this)}disconnectedCallback(){}render(){return t(i,null,t("a",{href:this.nextPage,part:"sqm-link"},t("img",{style:{height:`${null==this?void 0:this.height}px`},src:null==this?void 0:this.imageUrl})))}};export{h as sqm_header_logo}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import{r as e,h as t}from"./p-64c3217a.js";import{k as r,f as i,n as o}from"./p-fd2c5407.js";import"./p-8704937c.js";import{d as s,Q as a,y as l,f as n,i as u}from"./p-a8f7cb95.js";import{c as d}from"./p-c1086930.js";import"./p-cef45012.js";import{g as m}from"./p-9ec99ced.js";import"./p-5d0c9424.js";import{P as c}from"./p-ce621bcc.js";import{i as v}from"./p-61eab172.js";const f=s.gql`
|
|
2
|
+
query {
|
|
3
|
+
viewer {
|
|
4
|
+
... on User {
|
|
5
|
+
id
|
|
6
|
+
accountId
|
|
7
|
+
firstName
|
|
8
|
+
lastName
|
|
9
|
+
email
|
|
10
|
+
countryCode
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
`,h=s.gql`
|
|
15
|
+
mutation (
|
|
16
|
+
$id: String!
|
|
17
|
+
$accountId: String!
|
|
18
|
+
$firstName: String!
|
|
19
|
+
$lastName: String!
|
|
20
|
+
) {
|
|
21
|
+
upsertUser(
|
|
22
|
+
userInput: {
|
|
23
|
+
id: $id
|
|
24
|
+
accountId: $accountId
|
|
25
|
+
firstName: $firstName
|
|
26
|
+
lastName: $lastName
|
|
27
|
+
}
|
|
28
|
+
) {
|
|
29
|
+
firstName
|
|
30
|
+
lastName
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
`,p={country:"",email:"",firstName:"",lastName:"",errors:{},error:""},b=class{constructor(t){e(this,t),this.ignored=!0,this.firstnametext="First Name",this.lastnametext="Last Name",this.emailtext="Email",this.countrytext="Country",this.editProfileHeader="Edit your profile",this.editProfileSubHeader="Personal Information",this.submitChangeButtonText="Submit Changes",this.hideCountry=!1,this.networkRequestMessage="An error occurred while loading this page. Please refresh the page.",this.fieldEmptyText="Field is required",this.formErrorText="Please correct the errors below to update your profile.",this.submissionSuccessText="Your profile has been successfully updated.",o(this)}disconnectedCallback(){}render(){const e=u()?function(e){return d({states:{success:!1,loading:!1,submitDisabled:!1,showCountry:!e.hideCountry,user:{id:"01",accountId:"111100000",firstName:"Joe",lastName:"Smith",email:"jsmith@gmail.com",countryCode:"CA"},text:{firstnametext:e.firstnametext,lastnametext:e.lastnametext,emailtext:e.emailtext,countrytext:e.countrytext,editProfileHeader:e.editProfileHeader,editProfileSubHeader:e.editProfileSubHeader,submitChangeButtonText:e.submitChangeButtonText,submissionSuccessText:e.submissionSuccessText,fieldEmptyText:e.fieldEmptyText},formState:{country:"Canada",firstName:"Joe",lastName:"Smith",errors:null,error:""}},callbacks:{onSubmit:e=>console.log(e),onChange:e=>console.log(e)}},e.demoData||{},{arrayMerge:(e,t)=>t})}(m(this)):function(e){const t=a(),[o,s]=r(!1),[u,d]=r(void 0),[m,c]=r(p),b=l(f,{},!(null==t?void 0:t.jwt)),[N,g]=n(h);return i((()=>{(null==g?void 0:g.loading)||((null==g?void 0:g.errors)?c((e=>{var t,r,i;return{...e,error:null===(i=null===(r=null===(t=null==g?void 0:g.errors)||void 0===t?void 0:t.response)||void 0===r?void 0:r.errors)||void 0===i?void 0:i[0].message}})):(d((e=>{var t;return{...e,...null===(t=null==g?void 0:g.data)||void 0===t?void 0:t.upsertUser}})),(null==g?void 0:g.data)&&s(!0)))}),[null==g?void 0:g.loading]),i((()=>{var e,t;d((e=>{var t;return{...e,...null===(t=null==b?void 0:b.data)||void 0===t?void 0:t.viewer}})),c({...p,...null===(e=b.data)||void 0===e?void 0:e.viewer,...null===(t=g.data)||void 0===t?void 0:t.upsertUser})}),[null==b?void 0:b.data]),i((()=>{var t,r;(null===(t=null==g?void 0:g.errors)||void 0===t?void 0:t.message)&&c({...null===(r=b.data)||void 0===r?void 0:r.viewer,error:e.networkRequestMessage})}),[null==g?void 0:g.errors]),{states:{success:o,loading:(null==b?void 0:b.loading)||g.loading,submitDisabled:!1,showCountry:!e.hideCountry,formState:m,user:u,text:{firstnametext:e.firstnametext,lastnametext:e.lastnametext,countrytext:e.countrytext,emailtext:e.emailtext,editProfileHeader:e.editProfileHeader,editProfileSubHeader:e.editProfileSubHeader,submitChangeButtonText:e.submitChangeButtonText}},callbacks:{onSubmit:()=>{if(s(!1),m.firstName&&m.lastName)return N({id:null==t?void 0:t.id,accountId:null==t?void 0:t.accountId,firstName:m.firstName,lastName:m.lastName}),void c((e=>({...e,errors:{},error:""})));const r={};m.firstName||(r.firstName={message:e.fieldEmptyText}),m.lastName||(r.lastName={message:e.fieldEmptyText}),v(r)||c((t=>({...t,error:e.formErrorText}))),c((e=>({...e,errors:r})))},onChange:e=>{const{name:t,value:r}=e.target;c((e=>({...e,[t]:r})))}}}}(m(this));return t(c,Object.assign({},e))}};export{b as sqm_portal_profile}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,n,r){function a(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function l(e){try{s(r.next(e))}catch(e){i(e)}}function o(e){try{s(r["throw"](e))}catch(e){i(e)}}function s(e){e.done?n(e.value):a(e.value).then(l,o)}s((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,a,i,l;return l={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function o(e){return function(t){return s([e,t])}}function s(l){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,a&&(i=l[0]&2?a["return"]:l[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;if(a=0,i)l=[l[0]&2,i.value];switch(l[0]){case 0:case 1:i=l;break;case 4:n.label++;return{value:l[1],done:false};case 5:n.label++;a=l[1];l=[0];continue;case 7:l=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){n.label=l[1];break}if(l[0]===6&&n.label<i[1]){n.label=i[1];i=l;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(l);break}if(i[2])n.ops.pop();n.trys.pop();continue}l=t.call(e,n)}catch(e){l=[6,e];a=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),a=0,t=0;t<n;t++)for(var i=arguments[t],l=0,o=i.length;l<o;l++,a++)r[a]=i[l];return r};System.register(["./p-ff17b3a4.system.js","./p-2a414b2e.system.js","./p-59fe4ad1.system.js","./p-b370fca8.system.js","./p-4bd679a7.system.js","./p-f6934a55.system.js","./p-1a673057.system.js","./p-e8dde8f4.system.js","./p-674a64fe.system.js","./p-770368bc.system.js","./p-ce9e7c98.system.js","./p-370a1a73.system.js","./p-c84659a3.system.js","./p-6333265f.system.js"],(function(e){"use strict";var t,n,r,a,i,l,o,s,d,u,c,p,v,f,m,h,g,y,w,T,x,_,E,b,R,A;return{setters:[function(e){t=e.h;n=e.r;r=e.c},function(e){a=e.b;i=e.j;l=e.f;o=e.n;s=e.u},function(e){d=e.i},function(e){u=e.d;c=e.Q;p=e.H;v=e.L;f=e.y;m=e.k;h=e.i},function(e){g=e.c},function(){},function(e){y=e.c},function(e){w=e.G},function(e){T=e.u;x=e.a},function(e){_=e.u},function(e){E=e.l},function(e){b=e.m},function(e){R=e.g},function(e){A=e.l}],execute:function(){var D=a("sq:useRewardsTable");var N="sqm-rewards-table";var C=u.gql(__makeTemplateObject(['\n query getRewards(\n $limit: Int!\n $offset: Int!\n $rewardFilter: RewardFilterInput\n $locale: RSLocale\n ) {\n viewer {\n ... on User {\n id\n rewards(\n limit: $limit\n offset: $offset\n filter: $rewardFilter\n sortBy: { field: "dateCreated", order: DESC }\n ) {\n totalCount\n count\n data {\n meta {\n status\n integration {\n name\n }\n message\n customMeta\n }\n id\n type\n value\n unit\n name\n dateGiven\n dateCreated\n dateExpires\n dateCancelled\n dateRedeemed\n dateScheduledFor\n fuelTankCode\n fuelTankType\n currency\n prettyValue(locale: $locale)\n prettyValueNumber: prettyValue(\n formatType: NUMBER_FORMATTED\n locale: $locale\n )\n prettyAvailableNumber: prettyAvailableValue(\n formatType: NUMBER_FORMATTED\n locale: $locale\n )\n prettyRedeemedNumber: prettyRedeemedCredit(\n formatType: NUMBER_FORMATTED\n locale: $locale\n )\n programId\n program {\n name\n }\n partnerFundsTransfer {\n id\n status\n }\n statuses\n pendingReasons\n cancelledReason\n globalRewardKey\n programRewardKey\n rewardSource\n prettyRedeemedCredit(locale: $locale)\n prettyAssignedCredit(locale: $locale)\n prettyAvailableValue(locale: $locale)\n exchangedRewardRedemptionTransaction {\n id\n creditRedeemed\n prettyRedeemedCredit(locale: $locale)\n unit\n dateRedeemed\n }\n referral {\n id\n dateModerated\n referrerUser {\n id\n firstName\n lastName\n }\n referredUser {\n id\n firstName\n lastName\n }\n fraudData {\n moderationStatus\n autoModerationStatus\n manualModerationStatus\n }\n }\n\n rewardRedemptionTransactions {\n data {\n exchangedRewards {\n data {\n prettyValue(locale: $locale)\n type\n fuelTankCode\n globalRewardKey\n }\n }\n }\n }\n }\n }\n }\n }\n }\n'],['\n query getRewards(\n $limit: Int!\n $offset: Int!\n $rewardFilter: RewardFilterInput\n $locale: RSLocale\n ) {\n viewer {\n ... on User {\n id\n rewards(\n limit: $limit\n offset: $offset\n filter: $rewardFilter\n sortBy: { field: "dateCreated", order: DESC }\n ) {\n totalCount\n count\n data {\n meta {\n status\n integration {\n name\n }\n message\n customMeta\n }\n id\n type\n value\n unit\n name\n dateGiven\n dateCreated\n dateExpires\n dateCancelled\n dateRedeemed\n dateScheduledFor\n fuelTankCode\n fuelTankType\n currency\n prettyValue(locale: $locale)\n prettyValueNumber: prettyValue(\n formatType: NUMBER_FORMATTED\n locale: $locale\n )\n prettyAvailableNumber: prettyAvailableValue(\n formatType: NUMBER_FORMATTED\n locale: $locale\n )\n prettyRedeemedNumber: prettyRedeemedCredit(\n formatType: NUMBER_FORMATTED\n locale: $locale\n )\n programId\n program {\n name\n }\n partnerFundsTransfer {\n id\n status\n }\n statuses\n pendingReasons\n cancelledReason\n globalRewardKey\n programRewardKey\n rewardSource\n prettyRedeemedCredit(locale: $locale)\n prettyAssignedCredit(locale: $locale)\n prettyAvailableValue(locale: $locale)\n exchangedRewardRedemptionTransaction {\n id\n creditRedeemed\n prettyRedeemedCredit(locale: $locale)\n unit\n dateRedeemed\n }\n referral {\n id\n dateModerated\n referrerUser {\n id\n firstName\n lastName\n }\n referredUser {\n id\n firstName\n lastName\n }\n fraudData {\n moderationStatus\n autoModerationStatus\n manualModerationStatus\n }\n }\n\n rewardRedemptionTransactions {\n data {\n exchangedRewards {\n data {\n prettyValue(locale: $locale)\n type\n fuelTankCode\n globalRewardKey\n }\n }\n }\n }\n }\n }\n }\n }\n }\n']));var S=u.gql(__makeTemplateObject(["\n query getImpactTax {\n viewer {\n ... on User {\n id\n impactConnection {\n connected\n taxHandlingEnabled\n publisher {\n requiredTaxDocumentType\n currentTaxDocument {\n status\n type\n dateCreated\n }\n withdrawalSettings {\n paymentMethod\n }\n payoutsAccount {\n hold\n holdReasons\n balance\n }\n }\n }\n }\n }\n }\n"],["\n query getImpactTax {\n viewer {\n ... on User {\n id\n impactConnection {\n connected\n taxHandlingEnabled\n publisher {\n requiredTaxDocumentType\n currentTaxDocument {\n status\n type\n dateCreated\n }\n withdrawalSettings {\n paymentMethod\n }\n payoutsAccount {\n hold\n holdReasons\n balance\n }\n }\n }\n }\n }\n }\n"]));function P(e,n,r){var a,o,s;var d=c();var u=p();var h=v();var g=(a=e.programId)!==null&&a!==void 0?a:u;var y=__assign({userId_eq:d===null||d===void 0?void 0:d.id,accountId_eq:d===null||d===void 0?void 0:d.accountId},g?g==="classic"?{programId_exists:false}:{programId_eq:g}:{});var w=i((function(e,t){return __assign(__assign({},e),t)}),{columns:[],rows:[],loading:false,page:0}),x=w[0],E=w[1];var b=f(S,{},!(d===null||d===void 0?void 0:d.jwt)),R=b.data,A=b.loading;var D=m(C,(function(e){var t;return(t=e===null||e===void 0?void 0:e.viewer)===null||t===void 0?void 0:t.rewards}),{limit:e.perPage,offset:0},{rewardFilter:y,locale:h},!(d===null||d===void 0?void 0:d.jwt)),P=D.envelope,L=D.states,U=D.callbacks;var k=T();var M=_();var F=P===null||P===void 0?void 0:P.data;var O=(o=R===null||R===void 0?void 0:R.viewer)===null||o===void 0?void 0:o.impactConnection;function V(e){return __awaiter(this,void 0,void 0,(function(){var n,r,a,i,l,o,s;var d=this;return __generator(this,(function(u){switch(u.label){case 0:n=e.filter((function(e){return e.slot!=="loading"&&e.slot!=="empty"}));r=n===null||n===void 0?void 0:n.map((function(e){return __awaiter(d,void 0,void 0,(function(){return __generator(this,(function(t){return[2,I(e,(function(){return e.renderLabel()}))]}))}))}));a=F===null||F===void 0?void 0:F.map((function(e){return __awaiter(d,void 0,void 0,(function(){var r,a;var i=this;return __generator(this,(function(l){switch(l.label){case 0:r=n===null||n===void 0?void 0:n.map((function(n){return __awaiter(i,void 0,void 0,(function(){return __generator(this,(function(r){return[2,I(n,(function(){return n.renderCell(e,{locale:h,taxConnection:O},t)}))]}))}))}));return[4,Promise.all(r)];case 1:a=l.sent();return[2,a]}}))}))}));l=a;if(!l)return[3,2];return[4,Promise.all(a)];case 1:l=u.sent().filter((function(e){return e}));u.label=2;case 2:i=l;E({rows:i});s=r;if(!s)return[3,4];return[4,Promise.all(r)];case 3:s=u.sent();u.label=4;case 4:o=s;E({columns:o,loading:false,page:L.currentPage});return[2]}}))}))}l((function(){E({loading:true});P&&V(M)}),[P,M,k]);var q=!((s=x===null||x===void 0?void 0:x.rows)===null||s===void 0?void 0:s.length)&&!(F===null||F===void 0?void 0:F.length);var B=L.loading||x.loading||A?"loading":q?"empty":"rows";return{states:{hasNext:L.currentPage<L.pageCount-1,hasPrev:L.currentPage>0,show:B,namespace:N},data:{textOverrides:{showLabels:!e.hideLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel},hiddenColumns:e.hiddenColumns,smBreakpoint:e.smBreakpoint,mdBreakpoint:e.mdBreakpoint},elements:{columns:x.columns,rows:x.rows,emptyElement:n,loadingElement:r},callbacks:{nextPage:function(){U.setCurrentPage(L.currentPage+1)},prevPage:function(){U.setCurrentPage(L.currentPage-1)}}}}function I(e,n){return __awaiter(this,void 0,void 0,(function(){var r,a,i,l;return __generator(this,(function(o){switch(o.label){case 0:r=e.tagName.toLowerCase();return[4,customElements.whenDefined(r)];case 1:o.sent();try{a=n()}catch(e){D("label promise failed",e);return[2,t("span",null)]}o.label=2;case 2:o.trys.push([2,4,,5]);return[4,a];case 3:return[2,o.sent()];case 4:i=o.sent();D("Error rendering label",i);l=R(i);return[2,t("details",null,t("summary",null,"Error"),l)];case 5:return[2]}}))}))}var L=e("sqm_rewards_table",function(){function e(e){n(this,e);this.perPage=4;this.hideLabels=false;this.prevLabel="Prev";this.moreLabel="Next";this.hiddenColumns="0";this.smBreakpoint=599;this.mdBreakpoint=799;o(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=t(U,null);var n=t(k,null);var r=h()?F(this,e,n):P(this,e,n),a=r.states,i=r.data,l=r.callbacks,o=r.elements;x([this.perPage]);return t(w,{states:a,data:i,callbacks:l,elements:o})};return e}());function U(){return t("slot",{name:"empty"},t("sqm-empty",{"empty-state-image":"https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png","empty-state-header":"View your rewards","empty-state-text":"Refer friends and complete tasks to view the details of your rewards"}))}function k(){return t("slot",{name:"loading"},t(M,null),t(M,null),t(M,null),t(M,null))}function M(){return t("sqm-table-row",null,t("sqm-table-cell",{colspan:5},t("sl-skeleton",null)))}function F(e,t,n){var r=i((function(e,t){return __assign(__assign({},e),t)}),{columns:[],rows:[],loading:false,page:0}),a=r[0],o=r[1];var d=T();var u=s((function(){var t;return((t=e.demoData)===null||t===void 0?void 0:t.mockData)||b(e.perPage)}),[e.perPage]).data;var c=_();function p(t){return __awaiter(this,void 0,void 0,(function(){var n,r,a,i,l,s,d,c;var p=this;return __generator(this,(function(v){switch(v.label){case 0:n=u;n=u.slice(0,e.perPage);r=t.filter((function(e){var t,n;return e.slot!=="loading"&&e.slot!=="empty"&&((t=e===null||e===void 0?void 0:e.firstElementChild)===null||t===void 0?void 0:t.getAttribute("slot"))!=="loading"&&((n=e===null||e===void 0?void 0:e.firstElementChild)===null||n===void 0?void 0:n.getAttribute("slot"))!=="empty"}));a=r===null||r===void 0?void 0:r.map((function(e,t){return __awaiter(p,void 0,void 0,(function(){var n,r,a;return __generator(this,(function(i){r=(n=e===null||e===void 0?void 0:e.firstElementChild)===null||n===void 0?void 0:n.getAttribute("slot");if(e.tagName==="RAISINS-PLOP-TARGET"&&r!=="loading"&&r!=="empty"){e.style.position="absolute";e.setAttribute("slot","column-"+t);a=e.firstElementChild.childNodes[1];a.innerHTML="+";a.style.lineHeight="20px";return[2,I(e,(function(){return e.renderLabel(t)}))]}return[2,I(e,(function(){return e.renderLabel()}))]}))}))}));i=n===null||n===void 0?void 0:n.map((function(e){return __awaiter(p,void 0,void 0,(function(){var t,n;var a=this;return __generator(this,(function(i){switch(i.label){case 0:t=r===null||r===void 0?void 0:r.map((function(t){return __awaiter(a,void 0,void 0,(function(){return __generator(this,(function(n){return[2,I(t,(function(){return t.renderCell(e,undefined,{})}))]}))}))}));return[4,Promise.all(t)];case 1:n=i.sent();return[2,n]}}))}))}));s=i;if(!s)return[3,2];return[4,Promise.all(i)];case 1:s=v.sent().filter((function(e){return e}));v.label=2;case 2:l=s;o({rows:l});c=a;if(!c)return[3,4];return[4,Promise.all(a)];case 3:c=v.sent();v.label=4;case 4:d=c;o({columns:d,loading:false,page:0});return[2]}}))}))}l((function(){o({loading:true});u&&p(c)}),[u,c,d]);var v=g({states:{hasPrev:false,hasNext:false,loading:false,show:"rows"},callbacks:{prevPage:function(){return console.log("Prev")},nextPage:function(){return console.log("Next")}},data:{textOverrides:{showLabels:!e.hideLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel},referralData:[],mdBreakpoint:799,smBreakpoint:599},elements:{columns:a.columns,rows:a.rows,emptyElement:t,loadingElement:n}},e.demoData||{},{arrayMerge:function(e,t){return t}});return v}var O=e("sqm_rewards_table_date_cell",function(){function e(e){n(this,e);this.ignored=true;this.locale="en";o(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e,t;var n=!this.date?"-":(t=(e=E.DateTime.fromMillis(this.date))===null||e===void 0?void 0:e.setLocale(A(this.locale)))===null||t===void 0?void 0:t.toLocaleString(E.DateTime.DATE_MED);return n};return e}());var V=e("sqm_rewards_table_date_column",function(){function e(e){n(this,e);this.columnTitle="Date received";this.dateShown="dateGiven";o(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,n){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){return[2,t("sqm-rewards-table-date-cell",{date:e[this.dateShown],locale:n===null||n===void 0?void 0:n.locale})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.render=function(){x([this.dateShown,this.columnTitle]);return t(r,{style:{display:"none"}})};return e}());var q={DetailsContainer:{width:"100%",display:"flex","align-items":"center","justify-content":"space-between","margin-right":"var(--sl-spacing-small)","flex-wrap":"wrap"},Details:{"padding-bottom":"var(--sl-spacing-small)","max-width":"500px","padding-right":"var(--sl-spacing-x-small)","&::part(header)":{padding:"var(--sl-spacing-x-small)",cursor:"default"},"&::part(content)":{padding:"var(--sl-spacing-x-small) var(--sl-spacing-medium)"},"&::part(base)":{opacity:"1"},"&::part(summary-icon)":{display:"flex"}},BadgeContainer:{"& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}},BoldText:{"font-weight":"var(--sl-font-weight-semibold)"},StatusBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line"}},Fueltank:{"& .code":{display:"flex",cursor:"pointer",userSelect:"none",color:"var(--sl-color-neutral-500)","&:hover":{color:"var(--sl-color-sky-500)"}},"& .text":{maxWidth:"90%",overflow:"hidden",textOverflow:"ellipsis",color:"inherit",fontSize:"var(--sl-font-size-small)",fontWeight:"var(--sl-font-weight-bold)"},"& .icon":{position:"relative",top:"1px",marginLeft:"var(--sl-spacing-x-small)",color:"inherit"}}};var B=y(q);var $=B.toString();var G=e("sqm_rewards_table_reward_cell",function(){function e(e){n(this,e)}e.prototype.render=function(){var e=this;d.locale=this.locale;var n=function(n){var r=n.reward;var a;var i=r.unit==="CENTS"?r.prettyValue.replace(/USD/gi,"$"):(a=r.prettyValue)!==null&&a!==void 0?a:"-";var l=r.prettyValueNumber==="1"||r.dateRedeemed&&r.prettyAvailableNumber==="0";if(r.type==="FUELTANK"){return t("div",{class:B.classes.Fueltank},r.prettyValue,r.fuelTankCode&&t("div",{class:"code",onClick:function(){return navigator.clipboard.writeText(r.fuelTankCode)}},t("sl-tooltip",{trigger:"click",placement:"top",distance:5,skidding:11,content:e.copyText,"onSl-show":function(e){return setTimeout((function(){return e.path[0].hide()}),1e3)}},t("span",{class:"text"},r.fuelTankCode),t("span",{class:"icon"},t("sl-icon",{name:"files"})))))}if(r.type==="CREDIT"&&!l){var o=parseFloat(r.prettyValueNumber)-parseFloat(r.prettyRedeemedNumber);var s=Math.round(o/parseFloat(r.prettyValueNumber)*100);var u=r.statuses.includes("EXPIRED")||r.statuses.includes("CANCELLED")?t("div",null,d.formatMessage({id:"redeemedText",defaultMessage:e.redeemedText},{redeemedAmount:r.prettyRedeemedCredit})):t("div",null,d.formatMessage({id:"availableText",defaultMessage:e.availableText},{availableAmount:r.statuses.includes("PENDING")?r.prettyAssignedCredit:r.prettyAvailableValue}));var c={Progress:{height:"3px",width:"100%",margin:"var(--sl-spacing-xx-small) 0",background:"var(--sl-color-neutral-200)","&:after":{content:'""',display:"block",background:"var(--sl-color-primary-300)",borderRadius:"100px",width:s+"%",height:"100%"}},Container:{display:"inline-block",verticalAlign:"top",width:"150px",whiteSpace:"break",overflow:"hidden",textOverflow:"ellipsis"},Text:{fontSize:"var(--sl-font-size-medium)",color:"var(--sl-color-gray-800)"},Subtext:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)"}};var p=y(c);var v=p.toString();return t("div",null,t("style",{type:"text/css"},v),t("div",{class:p.classes.Container},t("span",{part:"sqm-reward-cell-value"},i+" "),t("br",null)," ",t("div",{part:"sqm-reward-cell-progress",class:p.classes.Progress}),t("span",{part:"sqm-reward-cell-subtext",class:p.classes.Subtext},u)))}return t("div",null,i)};return t("div",{style:{display:"contents"}},t("style",{type:"text/css"},$),t(n,{reward:this.reward}))};return e}());var j=e("sqm_rewards_table_reward_column",function(){function e(e){n(this,e);this.columnTitle="Reward";this.redeemedText="{redeemedAmount} redeemed";this.availableText="{availableAmount} remaining";this.copyText="Copied!";o(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,n){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){return[2,t("sqm-rewards-table-reward-cell",{reward:e,redeemedText:this.redeemedText,availableText:this.availableText,copyText:this.copyText,locale:n===null||n===void 0?void 0:n.locale,exportparts:"sqm-rewards-cell-value, sqm-rewards-cell-progress-bar, sqm-rewards-cell-subtext"})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.render=function(){x([this.columnTitle,this.redeemedText,this.availableText,this.copyText]);return t(r,{style:{display:"none"}})};return e}());var z=e("sqm_rewards_table_source_cell",function(){function e(e){n(this,e);this.locale="en"}e.prototype.render=function(){var e=this;d.locale=this.locale;var n=function(n){var r=n.reward;var a;return t("span",null,d.formatMessage({id:"rewardSourceText",defaultMessage:e.rewardSourceText},{rewardSource:r.rewardSource,programName:(a=r===null||r===void 0?void 0:r.program)===null||a===void 0?void 0:a.name}))};var r=21;var a=function(n){var a=n.reward;var i;var l=t("div",null,t("span",{style:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)"}},e.rewardExchangeText),t("br",null),(i=a.exchangedRewardRedemptionTransaction)===null||i===void 0?void 0:i.prettyRedeemedCredit," → ",a.prettyValue);return a.exchangedRewardRedemptionTransaction.prettyRedeemedCredit.length+a.prettyValue.length<r?l:t("div",{style:{display:"inline-block",verticalAlign:"top"}},l)};var i=function(t){if(!t)return e.deletedUserText;if(!t.firstName&&!t.lastName)return e.anonymousUserText;if(!t.firstName)return""+t.lastName;if(!t.lastName)return""+t.firstName;return t.firstName+" "+t.lastName};var l=function(){return e.reward.rewardSource==="FRIEND_SIGNUP"||e.reward.rewardSource==="REFERRED"?e.reward.referral===null?t("p",{style:{color:"var(--sl-color-gray-400)"}},e.deletedReferralText):t("div",null,t("div",{style:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)"}},d.formatMessage({id:"referralText",defaultMessage:e.referralText},{rewardSource:e.reward.rewardSource})),t("div",null,e.reward.rewardSource=="FRIEND_SIGNUP"?i(e.reward.referral.referredUser):i(e.reward.referral.referrerUser))):e.reward.exchangedRewardRedemptionTransaction?t(a,{reward:e.reward}):t(n,{reward:e.reward})};return t(l,null)};return e}());var Y=e("sqm_rewards_table_source_column",function(){function e(e){n(this,e);this.columnTitle="Source";this.anonymousUser="Anonymous User";this.deletedUser="Deleted User";this.rewardExchangeText="Reward Exchange";this.referralText="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}";this.rewardSourceText="{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}";o(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,n){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){return[2,t("sqm-rewards-table-source-cell",{reward:e,anonymousUserText:this.anonymousUser,deletedUserText:this.deletedUser,rewardExchangeText:this.rewardExchangeText,referralText:this.referralText,rewardSourceText:this.rewardSourceText,locale:n===null||n===void 0?void 0:n.locale})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.render=function(){x([this.deletedUser,this.anonymousUser,this.columnTitle,this.rewardExchangeText,this.referralText,this.rewardSourceText]);return t(r,{style:{display:"none"}})};return e}());var W={Badge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",paddingLeft:"10px",whiteSpace:"pre-line"}},RedeemBadge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",background:"var(--sl-color-blue-600)"}},Date:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)",margin:"0"}};var X=y(W);var H=X.toString();var K=e("sqm_rewards_table_status_cell",function(){function e(e){n(this,e);this.expiryText="Expires";this.locale="en";this.pendingUsTax="W-9 required";this.pendingTaxReview="Awaiting tax form review.";this.pendingNewTaxForm="Invalid tax form. Submit a new form to receive your rewards.";this.pendingTaxSubmission="Submit your tax documents to receive your rewards.";this.pendingPartnerCreation="Complete your tax and cash payout setup to receive your rewards.";this.pendingScheduled="Until";this.pendingUnhandled="Fulfillment error";this.pendingReviewText="Awaiting review";this.deniedText="Detected self-referral";this.payoutFailed="Payout failed due to a fulfillment issue and is current being retried.";this.payoutApproved="Reward approved for payout and was scheduled for payment based on your settings.";this.payoutCancelled="If you think this is a mistake, contact our Support team."}e.prototype.rewardStatus=function(e){var t,n,r,a,i,l,o,s,d;var u=(t=e.statuses)===null||t===void 0?void 0:t.includes("EXPIRED");var c=(n=e.statuses)===null||n===void 0?void 0:n.includes("PENDING");var p=e.type==="INTEGRATION"||e.type==="FUELTANK";var v=(a=(r=e.referral)===null||r===void 0?void 0:r.fraudData)===null||a===void 0?void 0:a.moderationStatus;if(v==="DENIED")return"DENIED";if(v==="PENDING")return"PENDING_REVIEW";var f=(i=e.partnerFundsTransfer)===null||i===void 0?void 0:i.status;if(f==="TRANSFERRED"||f==="NOT_YET_DUE")return"PAYOUT_APPROVED";if(f==="OVERDUE")return"PAYOUT_FAILED";if(f==="REVERSED")return"PAYOUT_CANCELLED";if(e.dateCancelled)return"CANCELLED";if(u)return"EXPIRED";if(c)return"PENDING";if(e.type==="CREDIT"){return((l=e.statuses)===null||l===void 0?void 0:l.includes("REDEEMED"))?"REDEEMED":"AVAILABLE"}if(e.type==="PCT_DISCOUNT"&&((o=e.statuses)===null||o===void 0?void 0:o.includes("AVAILABLE"))){return"AVAILABLE"}if(p&&c){return"PENDING"}if(p&&((s=e.statuses)===null||s===void 0?void 0:s.includes("CANCELLED"))){return"CANCELLED"}if(p&&((d=e.statuses)===null||d===void 0?void 0:d.includes("AVAILABLE"))){return"AVAILABLE"}return""};e.prototype.getTaxPendingReasons=function(e,t){var n,r,a,i,l;if((n=e===null||e===void 0?void 0:e.pendingReasons)===null||n===void 0?void 0:n.includes("US_TAX")){if(!(t===null||t===void 0?void 0:t.taxHandlingEnabled))return this.pendingUsTax;if(!(t===null||t===void 0?void 0:t.connected))return this.pendingPartnerCreation;if((r=t===null||t===void 0?void 0:t.publisher)===null||r===void 0?void 0:r.requiredTaxDocumentType){if(!((a=t===null||t===void 0?void 0:t.publisher)===null||a===void 0?void 0:a.currentTaxDocument))return this.pendingTaxSubmission;var o=t.publisher.currentTaxDocument.status;if(o==="INACTIVE")return this.pendingNewTaxForm;if(o==="NOT_VERIFIED")return this.pendingTaxReview}if(!((i=t===null||t===void 0?void 0:t.publisher)===null||i===void 0?void 0:i.withdrawalSettings))return this.pendingPartnerCreation}if((l=e===null||e===void 0?void 0:e.pendingReasons)===null||l===void 0?void 0:l.includes("PAYOUT_CONFIGURATION_MISSING")){return this.pendingPartnerCreation}return""};e.prototype.getBadgeType=function(e){switch(e){case"AVAILABLE":return"success";case"REDEEMED":case"PAYOUT_APPROVED":return"primary";case"PENDING":case"PENDING_REVIEW":return"warning";default:return"danger"}};e.prototype.getPayoutStatusText=function(e){switch(e){case"US_TAX":return this.pendingUsTax;case"PAYOUT_APPROVED":return this.payoutApproved;case"PAYOUT_FAILED":return this.payoutFailed;case"PAYOUT_CANCELLED":return this.payoutCancelled;case"PENDING_TAX_REVIEW":return this.pendingTaxReview;case"PENDING_NEW_TAX_FORM":return this.pendingNewTaxForm;case"PENDING_TAX_SUBMISSION":return this.pendingTaxSubmission;case"PENDING_PARTNER_CREATION":return this.pendingPartnerCreation}};e.prototype.render=function(){var e;d.locale=this.locale;var n=this.rewardStatus(this.reward);var r=d.formatMessage({id:"statusMessage",defaultMessage:this.statusText},{status:n});var a=this.getBadgeType(n);var i=this.reward.dateCancelled||this.reward.dateExpires||this.reward.dateRedeemed||"";var l=i&&""+(n==="AVAILABLE"&&this.reward.dateExpires?this.expiryText+" ":"")+((e=E.DateTime.fromMillis(i))===null||e===void 0?void 0:e.setLocale(A(A(this.locale))).toLocaleString(E.DateTime.DATE_MED));var o=n==="PENDING"?this.getTaxPendingReasons(this.reward,this.taxConnection)||u(this):null;var s=n==="PENDING_REVIEW"?this.pendingReviewText:n==="DENIED"?this.deniedText:null;return t("div",{style:{display:"contents"}},t("style",{type:"text/css"},H),t("sl-badge",{type:a,pill:true,class:n==="REDEEMED"||n==="PAYOUT_APPROVED"?X.classes.RedeemBadge:X.classes.Badge},r),t("p",{class:X.classes.Date},s||o||this.getPayoutStatusText(n)||l));function u(e){var t;var n={SCHEDULED:e.reward.dateScheduledFor&&e.pendingScheduled+" "+((t=E.DateTime.fromMillis(e.reward.dateScheduledFor))===null||t===void 0?void 0:t.setLocale(A(A(e.locale||"en"))).toLocaleString(E.DateTime.DATE_MED)),UNHANDLED_ERROR:e.pendingUnhandled,SUSPECTED_FRAUD:e.pendingReview};var r=e.getTaxPendingReasons(e.reward,e.taxConnection);return __spreadArrays(r?[r]:[],e.reward.pendingReasons.map((function(e){var t;return(t=n[e])!==null&&t!==void 0?t:e}))).join(", ")}};return e}());var Q=e("sqm_rewards_table_status_column",function(){function e(e){n(this,e);this.columnTitle="Status";this.statusText="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PAYOUT_CANCELLED {Payout Cancelled} PAYOUT_FAILED {Payout Failed} EXPIRED {Expired} REDEEMED {Redeemed} DENIED {Denied} other {Not available} }";this.expiryText="Expires on ";this.pendingUsTax="W-9 required";this.pendingScheduled="Until";this.pendingUnhandled="Fulfillment error";this.pendingReviewText="Awaiting review";this.deniedText="Detected self-referral";this.pendingTaxReview="Awaiting tax form review.";this.pendingNewTaxForm="Invalid tax form. Submit a new form to receive your rewards.";this.pendingTaxSubmission="Submit your tax documents to receive your rewards.";this.pendingPartnerCreation="Complete your tax and cash payout setup to receive your rewards.";this.payoutFailed="Payout failed due to a fulfillment issue and is current being retried.";this.payoutCancelled="If you think this is a mistake, contact our Support team.";this.payoutApproved="Reward approved for payout and was scheduled for payment based on your settings.";o(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,n){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){return[2,t("sqm-rewards-table-status-cell",{statusText:this.statusText,reward:e,taxConnection:n===null||n===void 0?void 0:n.taxConnection,expiryText:this.expiryText,pendingScheduled:this.pendingScheduled,pendingUsTax:this.pendingUsTax,pendingUnhandled:this.pendingUnhandled,pendingReviewText:this.pendingReviewText,payoutFailed:this.payoutFailed,payoutApproved:this.payoutApproved,payoutCancelled:this.payoutCancelled,deniedText:this.deniedText,locale:n===null||n===void 0?void 0:n.locale})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.render=function(){x([this.columnTitle,this.statusText,this.expiryText,this.pendingReviewText,this.pendingScheduled,this.pendingUsTax,this.pendingUnhandled]);return t(r,{style:{display:"none"}})};return e}())}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as n}from"./p-1b24bb52.js";var t=n((function(n,t){function r(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}function e(n,t,e){return t&&r(n.prototype,t),e&&r(n,e),n}function i(){return(i=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(n[e]=r[e])}return n}).apply(this,arguments)}function u(n,t){n.prototype=Object.create(t.prototype),n.prototype.constructor=n,s(n,t)}function o(n){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}function s(n,t){return(s=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(n){return!1}}function c(n,t,r){return(c=a()?Reflect.construct:function(n,t,r){var e=[null];e.push.apply(e,t);var i=new(Function.bind.apply(n,e));return r&&s(i,r.prototype),i}).apply(null,arguments)}function h(n){var t="function"==typeof Map?new Map:void 0;return(h=function(n){if(null===n||-1===Function.toString.call(n).indexOf("[native code]"))return n;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return c(n,arguments,o(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,n)})(n)}function f(n,t){(null==t||t>n.length)&&(t=n.length);for(var r=0,e=new Array(t);r<t;r++)e[r]=n[r];return e}function l(n,t){var r="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(r)return(r=r.call(n)).next.bind(r);if(Array.isArray(n)||(r=function(n,t){if(n){if("string"==typeof n)return f(n,t);var r=Object.prototype.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(n):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(n,t):void 0}}(n))||t&&n&&"number"==typeof n.length){r&&(n=r);var e=0;return function(){return e>=n.length?{done:!0}:{done:!1,value:n[e++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}Object.defineProperty(t,"__esModule",{value:!0});var d=function(n){function t(){return n.apply(this,arguments)||this}return u(t,n),t}(h(Error)),v=function(n){function t(t){return n.call(this,"Invalid DateTime: "+t.toMessage())||this}return u(t,n),t}(d),y=function(n){function t(t){return n.call(this,"Invalid Interval: "+t.toMessage())||this}return u(t,n),t}(d),m=function(n){function t(t){return n.call(this,"Invalid Duration: "+t.toMessage())||this}return u(t,n),t}(d),w=function(n){function t(){return n.apply(this,arguments)||this}return u(t,n),t}(d),g=function(n){function t(t){return n.call(this,"Invalid unit "+t)||this}return u(t,n),t}(d),k=function(n){function t(){return n.apply(this,arguments)||this}return u(t,n),t}(d),M=function(n){function t(){return n.call(this,"Zone is an abstract class")||this}return u(t,n),t}(d),p="numeric",b="short",T="long",N={year:p,month:p,day:p},E={year:p,month:b,day:p},S={year:p,month:b,day:p,weekday:b},D={year:p,month:T,day:p},I={year:p,month:T,day:p,weekday:T},O={hour:p,minute:p},A={hour:p,minute:p,second:p},Z={hour:p,minute:p,second:p,timeZoneName:b},_={hour:p,minute:p,second:p,timeZoneName:T},L={hour:p,minute:p,hourCycle:"h23"},x={hour:p,minute:p,second:p,hourCycle:"h23"},F={hour:p,minute:p,second:p,hourCycle:"h23",timeZoneName:b},j={hour:p,minute:p,second:p,hourCycle:"h23",timeZoneName:T},H={year:p,month:p,day:p,hour:p,minute:p},q={year:p,month:p,day:p,hour:p,minute:p,second:p},W={year:p,month:b,day:p,hour:p,minute:p},C={year:p,month:b,day:p,hour:p,minute:p,second:p},R={year:p,month:b,day:p,weekday:b,hour:p,minute:p},G={year:p,month:T,day:p,hour:p,minute:p,timeZoneName:b},z={year:p,month:T,day:p,hour:p,minute:p,second:p,timeZoneName:b},J={year:p,month:T,day:p,weekday:T,hour:p,minute:p,timeZoneName:T},U={year:p,month:T,day:p,weekday:T,hour:p,minute:p,second:p,timeZoneName:T};function Y(n){return void 0===n}function P(n){return"number"==typeof n}function $(n){return"number"==typeof n&&n%1==0}function V(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(n){return!1}}function B(n,t,r){if(0!==n.length)return n.reduce((function(n,e){var i=[t(e),e];return n&&r(n[0],i[0])===n[0]?n:i}),null)[1]}function K(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function Q(n,t,r){return $(n)&&n>=t&&n<=r}function X(n,t){void 0===t&&(t=2);var r=n<0?"-":"",e=r?-1*n:n;return""+r+(e.toString().length<t?("0".repeat(t)+e).slice(-t):e.toString())}function nn(n){return Y(n)||null===n||""===n?void 0:parseInt(n,10)}function tn(n){if(!Y(n)&&null!==n&&""!==n){var t=1e3*parseFloat("0."+n);return Math.floor(t)}}function rn(n,t,r){void 0===r&&(r=!1);var e=Math.pow(10,t);return(r?Math.trunc:Math.round)(n*e)/e}function en(n){return n%4==0&&(n%100!=0||n%400==0)}function un(n){return en(n)?366:365}function on(n,t){var r,e=(r=t-1)-12*Math.floor(r/12)+1;return 2===e?en(n+(t-e)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][e-1]}function sn(n){var t=Date.UTC(n.year,n.month-1,n.day,n.hour,n.minute,n.second,n.millisecond);return n.year<100&&n.year>=0&&(t=new Date(t)).setUTCFullYear(t.getUTCFullYear()-1900),+t}function an(n){var t=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7,r=n-1,e=(r+Math.floor(r/4)-Math.floor(r/100)+Math.floor(r/400))%7;return 4===t||3===e?53:52}function cn(n){return n>99?n:n>60?1900+n:2e3+n}function hn(n,t,r,e){void 0===e&&(e=null);var u=new Date(n),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};e&&(o.timeZone=e);var s=i({timeZoneName:t},o),a=new Intl.DateTimeFormat(r,s).formatToParts(u).find((function(n){return"timezonename"===n.type.toLowerCase()}));return a?a.value:null}function fn(n,t){var r=parseInt(n,10);Number.isNaN(r)&&(r=0);var e=parseInt(t,10)||0;return 60*r+(r<0||Object.is(r,-0)?-e:e)}function ln(n){var t=Number(n);if("boolean"==typeof n||""===n||Number.isNaN(t))throw new k("Invalid unit value "+n);return t}function dn(n,t){var r={};for(var e in n)if(K(n,e)){var i=n[e];if(null==i)continue;r[t(e)]=ln(i)}return r}function vn(n,t){var r=Math.trunc(Math.abs(n/60)),e=Math.trunc(Math.abs(n%60)),i=n>=0?"+":"-";switch(t){case"short":return""+i+X(r,2)+":"+X(e,2);case"narrow":return""+i+r+(e>0?":"+e:"");case"techie":return""+i+X(r,2)+X(e,2);default:throw new RangeError("Value format "+t+" is out of range for property format")}}function yn(n){return function(n){return["hour","minute","second","millisecond"].reduce((function(t,r){return t[r]=n[r],t}),{})}(n)}var mn=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/,wn=["January","February","March","April","May","June","July","August","September","October","November","December"],gn=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],kn=["J","F","M","A","M","J","J","A","S","O","N","D"];function Mn(n){switch(n){case"narrow":return[].concat(kn);case"short":return[].concat(gn);case"long":return[].concat(wn);case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var pn=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],bn=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Tn=["M","T","W","T","F","S","S"];function Nn(n){switch(n){case"narrow":return[].concat(Tn);case"short":return[].concat(bn);case"long":return[].concat(pn);case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var En=["AM","PM"],Sn=["Before Christ","Anno Domini"],Dn=["BC","AD"],In=["B","A"];function On(n){switch(n){case"narrow":return[].concat(In);case"short":return[].concat(Dn);case"long":return[].concat(Sn);default:return null}}function An(n,t){for(var r,e="",i=l(n);!(r=i()).done;){var u=r.value;e+=u.literal?u.val:t(u.val)}return e}var Zn={D:N,DD:E,DDD:D,DDDD:I,t:O,tt:A,ttt:Z,tttt:_,T:L,TT:x,TTT:F,TTTT:j,f:H,ff:W,fff:G,ffff:J,F:q,FF:C,FFF:z,FFFF:U},_n=function(){function n(n,t){this.opts=t,this.loc=n,this.systemLoc=null}n.create=function(t,r){return void 0===r&&(r={}),new n(t,r)},n.parseFormat=function(n){for(var t=null,r="",e=!1,i=[],u=0;u<n.length;u++){var o=n.charAt(u);"'"===o?(r.length>0&&i.push({literal:e,val:r}),t=null,r="",e=!e):e||o===t?r+=o:(r.length>0&&i.push({literal:!1,val:r}),r=o,t=o)}return r.length>0&&i.push({literal:e,val:r}),i},n.macroTokenToFormatOpts=function(n){return Zn[n]};var t=n.prototype;return t.formatWithSystemDefault=function(n,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(n,i({},this.opts,t)).format()},t.formatDateTime=function(n,t){return void 0===t&&(t={}),this.loc.dtFormatter(n,i({},this.opts,t)).format()},t.formatDateTimeParts=function(n,t){return void 0===t&&(t={}),this.loc.dtFormatter(n,i({},this.opts,t)).formatToParts()},t.resolvedOptions=function(n,t){return void 0===t&&(t={}),this.loc.dtFormatter(n,i({},this.opts,t)).resolvedOptions()},t.num=function(n,t){if(void 0===t&&(t=0),this.opts.forceSimple)return X(n,t);var r=i({},this.opts);return t>0&&(r.padTo=t),this.loc.numberFormatter(r).format(n)},t.formatDateTimeFromString=function(t,r){var e=this,i="en"===this.loc.listingMode(),u=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,o=function(n,r){return e.loc.extract(t,n,r)},s=function(n){return t.isOffsetFixed&&0===t.offset&&n.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,n.format):""},a=function(n,r){return i?function(n,t){return Mn(t)[n.month-1]}(t,n):o(r?{month:n}:{month:n,day:"numeric"},"month")},c=function(n,r){return i?function(n,t){return Nn(t)[n.weekday-1]}(t,n):o(r?{weekday:n}:{weekday:n,month:"long",day:"numeric"},"weekday")},h=function(n){return i?function(n,t){return On(t)[n.year<0?0:1]}(t,n):o({era:n},"era")};return An(n.parseFormat(r),(function(r){switch(r){case"S":return e.num(t.millisecond);case"u":case"SSS":return e.num(t.millisecond,3);case"s":return e.num(t.second);case"ss":return e.num(t.second,2);case"m":return e.num(t.minute);case"mm":return e.num(t.minute,2);case"h":return e.num(t.hour%12==0?12:t.hour%12);case"hh":return e.num(t.hour%12==0?12:t.hour%12,2);case"H":return e.num(t.hour);case"HH":return e.num(t.hour,2);case"Z":return s({format:"narrow",allowZ:e.opts.allowZ});case"ZZ":return s({format:"short",allowZ:e.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:e.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:e.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:e.loc.locale});case"z":return t.zoneName;case"a":return i?function(n){return En[n.hour<12?0:1]}(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return u?o({day:"numeric"},"day"):e.num(t.day);case"dd":return u?o({day:"2-digit"},"day"):e.num(t.day,2);case"c":return e.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return e.num(t.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return u?o({month:"numeric",day:"numeric"},"month"):e.num(t.month);case"LL":return u?o({month:"2-digit",day:"numeric"},"month"):e.num(t.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return u?o({month:"numeric"},"month"):e.num(t.month);case"MM":return u?o({month:"2-digit"},"month"):e.num(t.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return u?o({year:"numeric"},"year"):e.num(t.year);case"yy":return u?o({year:"2-digit"},"year"):e.num(t.year.toString().slice(-2),2);case"yyyy":return u?o({year:"numeric"},"year"):e.num(t.year,4);case"yyyyyy":return u?o({year:"numeric"},"year"):e.num(t.year,6);case"G":return h("short");case"GG":return h("long");case"GGGGG":return h("narrow");case"kk":return e.num(t.weekYear.toString().slice(-2),2);case"kkkk":return e.num(t.weekYear,4);case"W":return e.num(t.weekNumber);case"WW":return e.num(t.weekNumber,2);case"o":return e.num(t.ordinal);case"ooo":return e.num(t.ordinal,3);case"q":return e.num(t.quarter);case"qq":return e.num(t.quarter,2);case"X":return e.num(Math.floor(t.ts/1e3));case"x":return e.num(t.ts);default:return function(r){var i=n.macroTokenToFormatOpts(r);return i?e.formatWithSystemDefault(t,i):r}(r)}}))},t.formatDurationFromString=function(t,r){var e,i=this,u=function(n){switch(n[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},o=n.parseFormat(r),s=o.reduce((function(n,t){return t.literal?n:n.concat(t.val)}),[]),a=t.shiftTo.apply(t,s.map(u).filter((function(n){return n})));return An(o,(e=a,function(n){var t=u(n);return t?i.num(e.get(t),n.length):n}))},n}(),Ln=function(){function n(n,t){this.reason=n,this.explanation=t}return n.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},n}(),xn=function(){function n(){}var t=n.prototype;return t.offsetName=function(){throw new M},t.formatOffset=function(){throw new M},t.offset=function(){throw new M},t.equals=function(){throw new M},e(n,[{key:"type",get:function(){throw new M}},{key:"name",get:function(){throw new M}},{key:"isUniversal",get:function(){throw new M}},{key:"isValid",get:function(){throw new M}}]),n}(),Fn=null,jn=function(n){function t(){return n.apply(this,arguments)||this}u(t,n);var r=t.prototype;return r.offsetName=function(n,t){return hn(n,t.format,t.locale)},r.formatOffset=function(n,t){return vn(this.offset(n),t)},r.offset=function(n){return-new Date(n).getTimezoneOffset()},r.equals=function(n){return"system"===n.type},e(t,[{key:"type",get:function(){return"system"}},{key:"name",get:function(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===Fn&&(Fn=new t),Fn}}]),t}(xn),Hn=RegExp("^"+mn.source+"$"),qn={},Wn={year:0,month:1,day:2,hour:3,minute:4,second:5},Cn={},Rn=function(n){function t(r){var e;return(e=n.call(this)||this).zoneName=r,e.valid=t.isValidZone(r),e}u(t,n),t.create=function(n){return Cn[n]||(Cn[n]=new t(n)),Cn[n]},t.resetCache=function(){Cn={},qn={}},t.isValidSpecifier=function(n){return!(!n||!n.match(Hn))},t.isValidZone=function(n){try{return new Intl.DateTimeFormat("en-US",{timeZone:n}).format(),!0}catch(n){return!1}},t.parseGMTOffset=function(n){if(n){var t=n.match(/^Etc\/GMT(0|[+-]\d{1,2})$/i);if(t)return-60*parseInt(t[1])}return null};var r=t.prototype;return r.offsetName=function(n,t){return hn(n,t.format,t.locale,this.name)},r.formatOffset=function(n,t){return vn(this.offset(n),t)},r.offset=function(n){var t=new Date(n);if(isNaN(t))return NaN;var r,e=(qn[r=this.name]||(qn[r]=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),qn[r]),i=e.formatToParts?function(n,t){for(var r=n.formatToParts(t),e=[],i=0;i<r.length;i++){var u=r[i],o=u.value,s=Wn[u.type];Y(s)||(e[s]=parseInt(o,10))}return e}(e,t):function(n,t){var r=n.format(t).replace(/\u200E/g,""),e=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(r);return[e[3],e[1],e[2],e[4],e[5],e[6]]}(e,t),u=+t,o=u%1e3;return(sn({year:i[0],month:i[1],day:i[2],hour:i[3],minute:i[4],second:i[5],millisecond:0})-(u-=o>=0?o:1e3+o))/6e4},r.equals=function(n){return"iana"===n.type&&n.name===this.name},e(t,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),t}(xn),Gn=null,zn=function(n){function t(t){var r;return(r=n.call(this)||this).fixed=t,r}u(t,n),t.instance=function(n){return 0===n?t.utcInstance:new t(n)},t.parseSpecifier=function(n){if(n){var r=n.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new t(fn(r[1],r[2]))}return null};var r=t.prototype;return r.offsetName=function(){return this.name},r.formatOffset=function(n,t){return vn(this.fixed,t)},r.offset=function(){return this.fixed},r.equals=function(n){return"fixed"===n.type&&n.fixed===this.fixed},e(t,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+vn(this.fixed,"narrow")}},{key:"isUniversal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}],[{key:"utcInstance",get:function(){return null===Gn&&(Gn=new t(0)),Gn}}]),t}(xn),Jn=function(n){function t(t){var r;return(r=n.call(this)||this).zoneName=t,r}u(t,n);var r=t.prototype;return r.offsetName=function(){return null},r.formatOffset=function(){return""},r.offset=function(){return NaN},r.equals=function(){return!1},e(t,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),t}(xn);function Un(n,t){var r;if(Y(n)||null===n)return t;if(n instanceof xn)return n;if("string"==typeof n){var e=n.toLowerCase();return"local"===e||"system"===e?t:"utc"===e||"gmt"===e?zn.utcInstance:null!=(r=Rn.parseGMTOffset(n))?zn.instance(r):Rn.isValidSpecifier(e)?Rn.create(n):zn.parseSpecifier(e)||new Jn(n)}return P(n)?zn.instance(n):"object"==typeof n&&n.offset&&"number"==typeof n.offset?n:new Jn(n)}var Yn,Pn=function(){return Date.now()},$n="system",Vn=null,Bn=null,Kn=null,Qn=function(){function n(){}return n.resetCaches=function(){ct.resetCache(),Rn.resetCache()},e(n,null,[{key:"now",get:function(){return Pn},set:function(n){Pn=n}},{key:"defaultZone",get:function(){return Un($n,jn.instance)},set:function(n){$n=n}},{key:"defaultLocale",get:function(){return Vn},set:function(n){Vn=n}},{key:"defaultNumberingSystem",get:function(){return Bn},set:function(n){Bn=n}},{key:"defaultOutputCalendar",get:function(){return Kn},set:function(n){Kn=n}},{key:"throwOnInvalid",get:function(){return Yn},set:function(n){Yn=n}}]),n}(),Xn=["base"],nt={};function tt(n,t){void 0===t&&(t={});var r=JSON.stringify([n,t]),e=nt[r];return e||(e=new Intl.DateTimeFormat(n,t),nt[r]=e),e}var rt={},et={};var it=null;function ut(n,t,r,e,i){var u=n.listingMode(r);return"error"===u?null:"en"===u?e(t):i(t)}var ot=function(){function n(n,t,r){if(this.padTo=r.padTo||0,this.floor=r.floor||!1,!t){var e={useGrouping:!1};r.padTo>0&&(e.minimumIntegerDigits=r.padTo),this.inf=function(n,t){void 0===t&&(t={});var r=JSON.stringify([n,t]),e=rt[r];return e||(e=new Intl.NumberFormat(n,t),rt[r]=e),e}(n,e)}}return n.prototype.format=function(n){if(this.inf){var t=this.floor?Math.floor(n):n;return this.inf.format(t)}return X(this.floor?Math.floor(n):rn(n,3),this.padTo)},n}(),st=function(){function n(n,t,r){var e;if(this.opts=r,n.zone.isUniversal){var u=n.offset/60*-1,o=u>=0?"Etc/GMT+"+u:"Etc/GMT"+u,s=Rn.isValidZone(o);0!==n.offset&&s?(e=o,this.dt=n):(e="UTC",this.dt=r.timeZoneName||0===n.offset?n:se.fromMillis(n.ts+60*n.offset*1e3))}else"system"===n.zone.type?this.dt=n:(this.dt=n,e=n.zone.name);var a=i({},this.opts);e&&(a.timeZone=e),this.dtf=tt(t,a)}var t=n.prototype;return t.format=function(){return this.dtf.format(this.dt.toJSDate())},t.formatToParts=function(){return this.dtf.formatToParts(this.dt.toJSDate())},t.resolvedOptions=function(){return this.dtf.resolvedOptions()},n}(),at=function(){function n(n,t,r){this.opts=i({style:"long"},r),!t&&V()&&(this.rtf=function(n,t){void 0===t&&(t={});var r=function(n,t){if(null==n)return{};var r,e,i={},u=Object.keys(n);for(e=0;e<u.length;e++)t.indexOf(r=u[e])>=0||(i[r]=n[r]);return i}(t,Xn),e=JSON.stringify([n,r]),i=et[e];return i||(i=new Intl.RelativeTimeFormat(n,t),et[e]=i),i}(n,r))}var t=n.prototype;return t.format=function(n,t){return this.rtf?this.rtf.format(n,t):function(n,t,r,e){void 0===r&&(r="always"),void 0===e&&(e=!1);var i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},u=-1===["hours","minutes","seconds"].indexOf(n);if("auto"===r&&u){var o="days"===n;switch(t){case 1:return o?"tomorrow":"next "+i[n][0];case-1:return o?"yesterday":"last "+i[n][0];case 0:return o?"today":"this "+i[n][0]}}var s=Object.is(t,-0)||t<0,a=Math.abs(t),c=1===a,h=i[n],f=e?c?h[1]:h[2]||h[1]:c?i[n][0]:n;return s?a+" "+f+" ago":"in "+a+" "+f}(t,n,this.opts.numeric,"long"!==this.opts.style)},t.formatToParts=function(n,t){return this.rtf?this.rtf.formatToParts(n,t):[]},n}(),ct=function(){function n(n,t,r,e){var i=function(n){var t=n.indexOf("-u-");if(-1===t)return[n];var r,e=n.substring(0,t);try{r=tt(n).resolvedOptions()}catch(n){r=tt(e).resolvedOptions()}return[e,r.numberingSystem,r.calendar]}(n),u=i[1],o=i[2];this.locale=i[0],this.numberingSystem=t||u||null,this.outputCalendar=r||o||null,this.intl=function(n,t,r){return r||t?(n+="-u",r&&(n+="-ca-"+r),t&&(n+="-nu-"+t),n):n}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=e,this.fastNumbersCached=null}n.fromOpts=function(t){return n.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)},n.create=function(t,r,e,i){void 0===i&&(i=!1);var u=t||Qn.defaultLocale;return new n(u||(i?"en-US":it||(it="en-US")),r||Qn.defaultNumberingSystem,e||Qn.defaultOutputCalendar,u)},n.resetCache=function(){it=null,nt={},rt={},et={}},n.fromObject=function(t){var r=void 0===t?{}:t;return n.create(r.locale,r.numberingSystem,r.outputCalendar)};var t=n.prototype;return t.listingMode=function(){return this.isEnglish()&&!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar)?"en":"intl"},t.clone=function(t){return t&&0!==Object.getOwnPropertyNames(t).length?n.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1):this},t.redefaultToEN=function(n){return void 0===n&&(n={}),this.clone(i({},n,{defaultToEN:!0}))},t.redefaultToSystem=function(n){return void 0===n&&(n={}),this.clone(i({},n,{defaultToEN:!1}))},t.months=function(n,t,r){var e=this;return void 0===t&&(t=!1),void 0===r&&(r=!0),ut(this,n,r,Mn,(function(){var r=t?{month:n,day:"numeric"}:{month:n},i=t?"format":"standalone";return e.monthsCache[i][n]||(e.monthsCache[i][n]=function(n){for(var t=[],r=1;r<=12;r++){var e=se.utc(2016,r,1);t.push(n(e))}return t}((function(n){return e.extract(n,r,"month")}))),e.monthsCache[i][n]}))},t.weekdays=function(n,t,r){var e=this;return void 0===t&&(t=!1),void 0===r&&(r=!0),ut(this,n,r,Nn,(function(){var r=t?{weekday:n,year:"numeric",month:"long",day:"numeric"}:{weekday:n},i=t?"format":"standalone";return e.weekdaysCache[i][n]||(e.weekdaysCache[i][n]=function(n){for(var t=[],r=1;r<=7;r++){var e=se.utc(2016,11,13+r);t.push(n(e))}return t}((function(n){return e.extract(n,r,"weekday")}))),e.weekdaysCache[i][n]}))},t.meridiems=function(n){var t=this;return void 0===n&&(n=!0),ut(this,void 0,n,(function(){return En}),(function(){if(!t.meridiemCache){var n={hour:"numeric",hourCycle:"h12"};t.meridiemCache=[se.utc(2016,11,13,9),se.utc(2016,11,13,19)].map((function(r){return t.extract(r,n,"dayperiod")}))}return t.meridiemCache}))},t.eras=function(n,t){var r=this;return void 0===t&&(t=!0),ut(this,n,t,On,(function(){var t={era:n};return r.eraCache[n]||(r.eraCache[n]=[se.utc(-40,1,1),se.utc(2017,1,1)].map((function(n){return r.extract(n,t,"era")}))),r.eraCache[n]}))},t.extract=function(n,t,r){var e=this.dtFormatter(n,t).formatToParts().find((function(n){return n.type.toLowerCase()===r}));return e?e.value:null},t.numberFormatter=function(n){return void 0===n&&(n={}),new ot(this.intl,n.forceSimple||this.fastNumbers,n)},t.dtFormatter=function(n,t){return void 0===t&&(t={}),new st(n,this.intl,t)},t.relFormatter=function(n){return void 0===n&&(n={}),new at(this.intl,this.isEnglish(),n)},t.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},t.equals=function(n){return this.locale===n.locale&&this.numberingSystem===n.numberingSystem&&this.outputCalendar===n.outputCalendar},e(n,[{key:"fastNumbers",get:function(){var n;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(n=this).numberingSystem||"latn"===n.numberingSystem)&&("latn"===n.numberingSystem||!n.locale||n.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(n.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),n}();function ht(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];var e=t.reduce((function(n,t){return n+t.source}),"");return RegExp("^"+e+"$")}function ft(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];return function(n){return t.reduce((function(t,r){var e=t[0],u=t[1],o=r(n,t[2]),s=o[1],a=o[2];return[i({},e,o[0]),u||s,a]}),[{},null,1]).slice(0,2)}}function lt(n){if(null==n)return[null,null];for(var t=arguments.length,r=new Array(t>1?t-1:0),e=1;e<t;e++)r[e-1]=arguments[e];for(var i=0,u=r;i<u.length;i++){var o=u[i],s=o[0],a=o[1],c=s.exec(n);if(c)return a(c)}return[null,null]}function dt(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];return function(n,r){var e,i={};for(e=0;e<t.length;e++)i[t[e]]=nn(n[r+e]);return[i,null,r+e]}}var vt=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,yt=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,mt=RegExp(""+yt.source+vt.source+"?"),wt=RegExp("(?:T"+mt.source+")?"),gt=dt("weekYear","weekNumber","weekDay"),kt=dt("year","ordinal"),Mt=RegExp(yt.source+" ?(?:"+vt.source+"|("+mn.source+"))?"),pt=RegExp("(?: "+Mt.source+")?");function bt(n,t,r){var e=n[t];return Y(e)?r:nn(e)}function Tt(n,t){return[{year:bt(n,t),month:bt(n,t+1,1),day:bt(n,t+2,1)},null,t+3]}function Nt(n,t){return[{hours:bt(n,t,0),minutes:bt(n,t+1,0),seconds:bt(n,t+2,0),milliseconds:tn(n[t+3])},null,t+4]}function Et(n,t){var r=!n[t]&&!n[t+1],e=fn(n[t+1],n[t+2]);return[{},r?null:zn.instance(e),t+3]}function St(n,t){return[{},n[t]?Rn.create(n[t]):null,t+1]}var Dt=RegExp("^T?"+yt.source+"$"),It=/^-?P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,9}))?S)?)?)$/;function Ot(n){var t=n[2],r=n[3],e=n[4],i=n[5],u=n[6],o=n[7],s=n[8],a="-"===n[0][0],c=o&&"-"===o[0],h=function(n,t){return void 0===t&&(t=!1),void 0!==n&&(t||n&&a)?-n:n};return[{years:h(nn(n[1])),months:h(nn(t)),weeks:h(nn(r)),days:h(nn(e)),hours:h(nn(i)),minutes:h(nn(u)),seconds:h(nn(o),"-0"===o),milliseconds:h(tn(s),c)}]}var At={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Zt(n,t,r,e,i,u,o){var s={year:2===t.length?cn(nn(t)):nn(t),month:gn.indexOf(r)+1,day:nn(e),hour:nn(i),minute:nn(u)};return o&&(s.second=nn(o)),n&&(s.weekday=n.length>3?pn.indexOf(n)+1:bn.indexOf(n)+1),s}var _t=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Lt(n){var t,r=n[8],e=n[9],i=n[10],u=n[11],o=Zt(n[1],n[4],n[3],n[2],n[5],n[6],n[7]);return t=r?At[r]:e?0:fn(i,u),[o,new zn(t)]}var xt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Ft=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,jt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Ht(n){return[Zt(n[1],n[4],n[3],n[2],n[5],n[6],n[7]),zn.utcInstance]}function qt(n){return[Zt(n[1],n[7],n[2],n[3],n[4],n[5],n[6]),zn.utcInstance]}var Wt=ht(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,wt),Ct=ht(/(\d{4})-?W(\d\d)(?:-?(\d))?/,wt),Rt=ht(/(\d{4})-?(\d{3})/,wt),Gt=ht(mt),zt=ft(Tt,Nt,Et),Jt=ft(gt,Nt,Et),Ut=ft(kt,Nt,Et),Yt=ft(Nt,Et),Pt=ft(Nt),$t=ht(/(\d{4})-(\d\d)-(\d\d)/,pt),Vt=ht(Mt),Bt=ft(Tt,Nt,Et,St),Kt=ft(Nt,Et,St),Qt={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Xt=i({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},Qt),nr=i({years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},Qt),tr=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],rr=tr.slice(0).reverse();function er(n,t,r){void 0===r&&(r=!1);var e={values:r?t.values:i({},n.values,t.values||{}),loc:n.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||n.conversionAccuracy};return new ur(e)}function ir(n,t,r,e,i){var u=n[i][r],o=t[r]/u,s=Math.sign(o)!==Math.sign(e[i])&&0!==e[i]&&Math.abs(o)<=1?function(n){return n<0?Math.floor(n):Math.ceil(n)}(o):Math.trunc(o);e[i]+=s,t[r]-=s*u}var ur=function(){function n(n){var t="longterm"===n.conversionAccuracy||!1;this.values=n.values,this.loc=n.loc||ct.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=n.invalid||null,this.matrix=t?nr:Xt,this.isLuxonDuration=!0}n.fromMillis=function(t,r){return n.fromObject({milliseconds:t},r)},n.fromObject=function(t,r){if(void 0===r&&(r={}),null==t||"object"!=typeof t)throw new k("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new n({values:dn(t,n.normalizeUnit),loc:ct.fromObject(r),conversionAccuracy:r.conversionAccuracy})},n.fromISO=function(t,r){var e=function(n){return lt(n,[It,Ot])}(t)[0];return e?n.fromObject(e,r):n.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},n.fromISOTime=function(t,r){var e=function(n){return lt(n,[Dt,Pt])}(t)[0];return e?n.fromObject(e,r):n.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},n.invalid=function(t,r){if(void 0===r&&(r=null),!t)throw new k("need to specify a reason the Duration is invalid");var e=t instanceof Ln?t:new Ln(t,r);if(Qn.throwOnInvalid)throw new m(e);return new n({invalid:e})},n.normalizeUnit=function(n){var t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[n?n.toLowerCase():n];if(!t)throw new g(n);return t},n.isDuration=function(n){return n&&n.isLuxonDuration||!1};var t=n.prototype;return t.toFormat=function(n,t){void 0===t&&(t={});var r=i({},t,{floor:!1!==t.round&&!1!==t.floor});return this.isValid?_n.create(this.loc,r).formatDurationFromString(this,n):"Invalid Duration"},t.toObject=function(){return this.isValid?i({},this.values):{}},t.toISO=function(){if(!this.isValid)return null;var n="P";return 0!==this.years&&(n+=this.years+"Y"),0===this.months&&0===this.quarters||(n+=this.months+3*this.quarters+"M"),0!==this.weeks&&(n+=this.weeks+"W"),0!==this.days&&(n+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(n+="T"),0!==this.hours&&(n+=this.hours+"H"),0!==this.minutes&&(n+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(n+=rn(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===n&&(n+="T0S"),n},t.toISOTime=function(n){if(void 0===n&&(n={}),!this.isValid)return null;var t=this.toMillis();if(t<0||t>=864e5)return null;n=i({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},n);var r=this.shiftTo("hours","minutes","seconds","milliseconds"),e="basic"===n.format?"hhmm":"hh:mm";n.suppressSeconds&&0===r.seconds&&0===r.milliseconds||(e+="basic"===n.format?"ss":":ss",n.suppressMilliseconds&&0===r.milliseconds||(e+=".SSS"));var u=r.toFormat(e);return n.includePrefix&&(u="T"+u),u},t.toJSON=function(){return this.toISO()},t.toString=function(){return this.toISO()},t.toMillis=function(){return this.as("milliseconds")},t.valueOf=function(){return this.toMillis()},t.plus=function(n){if(!this.isValid)return this;for(var t,r=or(n),e={},i=l(tr);!(t=i()).done;){var u=t.value;(K(r.values,u)||K(this.values,u))&&(e[u]=r.get(u)+this.get(u))}return er(this,{values:e},!0)},t.minus=function(n){if(!this.isValid)return this;var t=or(n);return this.plus(t.negate())},t.mapUnits=function(n){if(!this.isValid)return this;for(var t={},r=0,e=Object.keys(this.values);r<e.length;r++){var i=e[r];t[i]=ln(n(this.values[i],i))}return er(this,{values:t},!0)},t.get=function(t){return this[n.normalizeUnit(t)]},t.set=function(t){return this.isValid?er(this,{values:i({},this.values,dn(t,n.normalizeUnit))}):this},t.reconfigure=function(n){var t=void 0===n?{}:n,r=t.conversionAccuracy,e={loc:this.loc.clone({locale:t.locale,numberingSystem:t.numberingSystem})};return r&&(e.conversionAccuracy=r),er(this,e)},t.as=function(n){return this.isValid?this.shiftTo(n).get(n):NaN},t.normalize=function(){if(!this.isValid)return this;var n=this.toObject();return function(n,t){rr.reduce((function(r,e){return Y(t[e])?r:(r&&ir(n,t,r,t,e),e)}),null)}(this.matrix,n),er(this,{values:n},!0)},t.shiftTo=function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];if(!this.isValid)return this;if(0===r.length)return this;r=r.map((function(t){return n.normalizeUnit(t)}));for(var i,u,o={},s={},a=this.toObject(),c=l(tr);!(u=c()).done;){var h=u.value;if(r.indexOf(h)>=0){i=h;var f=0;for(var d in s)f+=this.matrix[d][h]*s[d],s[d]=0;P(a[h])&&(f+=a[h]);var v=Math.trunc(f);for(var y in o[h]=v,s[h]=f-v,a)tr.indexOf(y)>tr.indexOf(h)&&ir(this.matrix,a,y,o,h)}else P(a[h])&&(s[h]=a[h])}for(var m in s)0!==s[m]&&(o[i]+=m===i?s[m]:s[m]/this.matrix[i][m]);return er(this,{values:o},!0).normalize()},t.negate=function(){if(!this.isValid)return this;for(var n={},t=0,r=Object.keys(this.values);t<r.length;t++){var e=r[t];n[e]=-this.values[e]}return er(this,{values:n},!0)},t.equals=function(n){if(!this.isValid||!n.isValid)return!1;if(!this.loc.equals(n.loc))return!1;for(var t,r=l(tr);!(t=r()).done;){var e=t.value;if(u=n.values[e],!(void 0===(i=this.values[e])||0===i?void 0===u||0===u:i===u))return!1}var i,u;return!0},e(n,[{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"years",get:function(){return this.isValid?this.values.years||0:NaN}},{key:"quarters",get:function(){return this.isValid?this.values.quarters||0:NaN}},{key:"months",get:function(){return this.isValid?this.values.months||0:NaN}},{key:"weeks",get:function(){return this.isValid?this.values.weeks||0:NaN}},{key:"days",get:function(){return this.isValid?this.values.days||0:NaN}},{key:"hours",get:function(){return this.isValid?this.values.hours||0:NaN}},{key:"minutes",get:function(){return this.isValid?this.values.minutes||0:NaN}},{key:"seconds",get:function(){return this.isValid?this.values.seconds||0:NaN}},{key:"milliseconds",get:function(){return this.isValid?this.values.milliseconds||0:NaN}},{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),n}();function or(n){if(P(n))return ur.fromMillis(n);if(ur.isDuration(n))return n;if("object"==typeof n)return ur.fromObject(n);throw new k("Unknown duration argument "+n+" of type "+typeof n)}var sr="Invalid Interval";function ar(n,t){return n&&n.isValid?t&&t.isValid?t<n?cr.invalid("end before start","The end of an interval must be after its start, but you had start="+n.toISO()+" and end="+t.toISO()):null:cr.invalid("missing or invalid end"):cr.invalid("missing or invalid start")}var cr=function(){function n(n){this.s=n.start,this.e=n.end,this.invalid=n.invalid||null,this.isLuxonInterval=!0}n.invalid=function(t,r){if(void 0===r&&(r=null),!t)throw new k("need to specify a reason the Interval is invalid");var e=t instanceof Ln?t:new Ln(t,r);if(Qn.throwOnInvalid)throw new y(e);return new n({invalid:e})},n.fromDateTimes=function(t,r){var e=ae(t),i=ae(r),u=ar(e,i);return null==u?new n({start:e,end:i}):u},n.after=function(t,r){var e=or(r),i=ae(t);return n.fromDateTimes(i,i.plus(e))},n.before=function(t,r){var e=or(r),i=ae(t);return n.fromDateTimes(i.minus(e),i)},n.fromISO=function(t,r){var e=(t||"").split("/",2),i=e[0],u=e[1];if(i&&u){var o,s,a,c;try{s=(o=se.fromISO(i,r)).isValid}catch(u){s=!1}try{c=(a=se.fromISO(u,r)).isValid}catch(u){c=!1}if(s&&c)return n.fromDateTimes(o,a);if(s){var h=ur.fromISO(u,r);if(h.isValid)return n.after(o,h)}else if(c){var f=ur.fromISO(i,r);if(f.isValid)return n.before(a,f)}}return n.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},n.isInterval=function(n){return n&&n.isLuxonInterval||!1};var t=n.prototype;return t.length=function(n){return void 0===n&&(n="milliseconds"),this.isValid?this.toDuration.apply(this,[n]).get(n):NaN},t.count=function(n){if(void 0===n&&(n="milliseconds"),!this.isValid)return NaN;var t=this.start.startOf(n),r=this.end.startOf(n);return Math.floor(r.diff(t,n).get(n))+1},t.hasSame=function(n){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,n))},t.isEmpty=function(){return this.s.valueOf()===this.e.valueOf()},t.isAfter=function(n){return!!this.isValid&&this.s>n},t.isBefore=function(n){return!!this.isValid&&this.e<=n},t.contains=function(n){return!!this.isValid&&this.s<=n&&this.e>n},t.set=function(t){var r=void 0===t?{}:t;return this.isValid?n.fromDateTimes(r.start||this.s,r.end||this.e):this},t.splitAt=function(){var t=this;if(!this.isValid)return[];for(var r=arguments.length,e=new Array(r),i=0;i<r;i++)e[i]=arguments[i];for(var u=e.map(ae).filter((function(n){return t.contains(n)})).sort(),o=[],s=this.s,a=0;s<this.e;){var c=u[a]||this.e,h=+c>+this.e?this.e:c;o.push(n.fromDateTimes(s,h)),s=h,a+=1}return o},t.splitBy=function(t){var r=or(t);if(!this.isValid||!r.isValid||0===r.as("milliseconds"))return[];for(var e,i=this.s,u=1,o=[];i<this.e;){var s=this.start.plus(r.mapUnits((function(n){return n*u})));o.push(n.fromDateTimes(i,e=+s>+this.e?this.e:s)),i=e,u+=1}return o},t.divideEqually=function(n){return this.isValid?this.splitBy(this.length()/n).slice(0,n):[]},t.overlaps=function(n){return this.e>n.s&&this.s<n.e},t.abutsStart=function(n){return!!this.isValid&&+this.e==+n.s},t.abutsEnd=function(n){return!!this.isValid&&+n.e==+this.s},t.engulfs=function(n){return!!this.isValid&&this.s<=n.s&&this.e>=n.e},t.equals=function(n){return!(!this.isValid||!n.isValid)&&this.s.equals(n.s)&&this.e.equals(n.e)},t.intersection=function(t){if(!this.isValid)return this;var r=this.s>t.s?this.s:t.s,e=this.e<t.e?this.e:t.e;return r>=e?null:n.fromDateTimes(r,e)},t.union=function(t){return this.isValid?n.fromDateTimes(this.s<t.s?this.s:t.s,this.e>t.e?this.e:t.e):this},n.merge=function(n){var t=n.sort((function(n,t){return n.s-t.s})).reduce((function(n,t){var r=n[0],e=n[1];return e?e.overlaps(t)||e.abutsStart(t)?[r,e.union(t)]:[r.concat([e]),t]:[r,t]}),[[],null]),r=t[0],e=t[1];return e&&r.push(e),r},n.xor=function(t){for(var r,e,i=null,u=0,o=[],s=t.map((function(n){return[{time:n.s,type:"s"},{time:n.e,type:"e"}]})),a=l((r=Array.prototype).concat.apply(r,s).sort((function(n,t){return n.time-t.time})));!(e=a()).done;){var c=e.value;1===(u+="s"===c.type?1:-1)?i=c.time:(i&&+i!=+c.time&&o.push(n.fromDateTimes(i,c.time)),i=null)}return n.merge(o)},t.difference=function(){for(var t=this,r=arguments.length,e=new Array(r),i=0;i<r;i++)e[i]=arguments[i];return n.xor([this].concat(e)).map((function(n){return t.intersection(n)})).filter((function(n){return n&&!n.isEmpty()}))},t.toString=function(){return this.isValid?"["+this.s.toISO()+" – "+this.e.toISO()+")":sr},t.toISO=function(n){return this.isValid?this.s.toISO(n)+"/"+this.e.toISO(n):sr},t.toISODate=function(){return this.isValid?this.s.toISODate()+"/"+this.e.toISODate():sr},t.toISOTime=function(n){return this.isValid?this.s.toISOTime(n)+"/"+this.e.toISOTime(n):sr},t.toFormat=function(n,t){var r=(void 0===t?{}:t).separator,e=void 0===r?" – ":r;return this.isValid?""+this.s.toFormat(n)+e+this.e.toFormat(n):sr},t.toDuration=function(n,t){return this.isValid?this.e.diff(this.s,n,t):ur.invalid(this.invalidReason)},t.mapEndpoints=function(t){return n.fromDateTimes(t(this.s),t(this.e))},e(n,[{key:"start",get:function(){return this.isValid?this.s:null}},{key:"end",get:function(){return this.isValid?this.e:null}},{key:"isValid",get:function(){return null===this.invalidReason}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),n}(),hr=function(){function n(){}return n.hasDST=function(n){void 0===n&&(n=Qn.defaultZone);var t=se.now().setZone(n).set({month:12});return!n.isUniversal&&t.offset!==t.set({month:6}).offset},n.isValidIANAZone=function(n){return Rn.isValidSpecifier(n)&&Rn.isValidZone(n)},n.normalizeZone=function(n){return Un(n,Qn.defaultZone)},n.months=function(n,t){void 0===n&&(n="long");var r=void 0===t?{}:t,e=r.locale,i=r.numberingSystem,u=r.locObj,o=r.outputCalendar;return((void 0===u?null:u)||ct.create(void 0===e?null:e,void 0===i?null:i,void 0===o?"gregory":o)).months(n)},n.monthsFormat=function(n,t){void 0===n&&(n="long");var r=void 0===t?{}:t,e=r.locale,i=r.numberingSystem,u=r.locObj,o=r.outputCalendar;return((void 0===u?null:u)||ct.create(void 0===e?null:e,void 0===i?null:i,void 0===o?"gregory":o)).months(n,!0)},n.weekdays=function(n,t){void 0===n&&(n="long");var r=void 0===t?{}:t,e=r.locale,i=r.numberingSystem,u=r.locObj;return((void 0===u?null:u)||ct.create(void 0===e?null:e,void 0===i?null:i,null)).weekdays(n)},n.weekdaysFormat=function(n,t){void 0===n&&(n="long");var r=void 0===t?{}:t,e=r.locale,i=r.numberingSystem,u=r.locObj;return((void 0===u?null:u)||ct.create(void 0===e?null:e,void 0===i?null:i,null)).weekdays(n,!0)},n.meridiems=function(n){var t=(void 0===n?{}:n).locale;return ct.create(void 0===t?null:t).meridiems()},n.eras=function(n,t){void 0===n&&(n="short");var r=(void 0===t?{}:t).locale;return ct.create(void 0===r?null:r,null,"gregory").eras(n)},n.features=function(){return{relative:V()}},n}();function fr(n,t){var r=function(n){return n.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf()},e=r(t)-r(n);return Math.floor(ur.fromMillis(e).as("days"))}var lr={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},dr={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},vr=lr.hanidec.replace(/[\[|\]]/g,"").split("");function yr(n,t){return void 0===t&&(t=""),new RegExp(""+lr[n.numberingSystem||"latn"]+t)}function mr(n,t){return void 0===t&&(t=function(n){return n}),{regex:n,deser:function(n){return t(function(n){var t=parseInt(n,10);if(isNaN(t)){t="";for(var r=0;r<n.length;r++){var e=n.charCodeAt(r);if(-1!==n[r].search(lr.hanidec))t+=vr.indexOf(n[r]);else for(var i in dr){var u=dr[i],o=u[0];e>=o&&e<=u[1]&&(t+=e-o)}}return parseInt(t,10)}return t}(n[0]))}}}var wr="( |"+String.fromCharCode(160)+")",gr=new RegExp(wr,"g");function kr(n){return n.replace(/\./g,"\\.?").replace(gr,wr)}function Mr(n){return n.replace(/\./g,"").replace(gr," ").toLowerCase()}function pr(n,t){return null===n?null:{regex:RegExp(n.map(kr).join("|")),deser:function(r){var e=r[0];return n.findIndex((function(n){return Mr(e)===Mr(n)}))+t}}}function br(n,t){return{regex:n,deser:function(n){return fn(n[1],n[2])},groups:t}}function Tr(n){return{regex:n,deser:function(n){return n[0]}}}var Nr={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}},Er=null;function Sr(n,t,r){var e=function(n,t){var r;return(r=Array.prototype).concat.apply(r,n.map((function(n){return function(n,t){if(n.literal)return n;var r=_n.macroTokenToFormatOpts(n.val);if(!r)return n;var e=_n.create(t,r).formatDateTimeParts((Er||(Er=se.fromMillis(1555555555555)),Er)).map((function(n){return function(n,t,r){var e=n.type;if("literal"===e)return{literal:!0,val:n.value};var i=Nr[e];return"object"==typeof i&&(i=i[r[e]]),i?{literal:!1,val:i}:void 0}(n,0,r)}));return e.includes(void 0)?n:e}(n,t)})))}(_n.parseFormat(r),n),i=e.map((function(t){return r=t,i=yr(e=n),u=yr(e,"{2}"),o=yr(e,"{3}"),s=yr(e,"{4}"),a=yr(e,"{6}"),c=yr(e,"{1,2}"),h=yr(e,"{1,3}"),f=yr(e,"{1,6}"),l=yr(e,"{1,9}"),d=yr(e,"{2,4}"),v=yr(e,"{4,6}"),y=function(n){return{regex:RegExp((t=n.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:function(n){return n[0]},literal:!0};var t},(m=function(n){if(r.literal)return y(n);switch(n.val){case"G":return pr(e.eras("short",!1),0);case"GG":return pr(e.eras("long",!1),0);case"y":return mr(f);case"yy":return mr(d,cn);case"yyyy":return mr(s);case"yyyyy":return mr(v);case"yyyyyy":return mr(a);case"M":return mr(c);case"MM":return mr(u);case"MMM":return pr(e.months("short",!0,!1),1);case"MMMM":return pr(e.months("long",!0,!1),1);case"L":return mr(c);case"LL":return mr(u);case"LLL":return pr(e.months("short",!1,!1),1);case"LLLL":return pr(e.months("long",!1,!1),1);case"d":return mr(c);case"dd":return mr(u);case"o":return mr(h);case"ooo":return mr(o);case"HH":return mr(u);case"H":return mr(c);case"hh":return mr(u);case"h":return mr(c);case"mm":return mr(u);case"m":case"q":return mr(c);case"qq":return mr(u);case"s":return mr(c);case"ss":return mr(u);case"S":return mr(h);case"SSS":return mr(o);case"u":return Tr(l);case"a":return pr(e.meridiems(),0);case"kkkk":return mr(s);case"kk":return mr(d,cn);case"W":return mr(c);case"WW":return mr(u);case"E":case"c":return mr(i);case"EEE":return pr(e.weekdays("short",!1,!1),1);case"EEEE":return pr(e.weekdays("long",!1,!1),1);case"ccc":return pr(e.weekdays("short",!0,!1),1);case"cccc":return pr(e.weekdays("long",!0,!1),1);case"Z":case"ZZ":return br(new RegExp("([+-]"+c.source+")(?::("+u.source+"))?"),2);case"ZZZ":return br(new RegExp("([+-]"+c.source+")("+u.source+")?"),2);case"z":return Tr(/[a-z_+-/]{1,256}?/i);default:return y(n)}}(r)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"}).token=r,m;var r,e,i,u,o,s,a,c,h,f,l,d,v,y,m})),u=i.find((function(n){return n.invalidReason}));if(u)return{input:t,tokens:e,invalidReason:u.invalidReason};var o=function(n){return["^"+n.map((function(n){return n.regex})).reduce((function(n,t){return n+"("+t.source+")"}),"")+"$",n]}(i),s=o[1],a=RegExp(o[0],"i"),c=function(n,t,r){var e=n.match(t);if(e){var i={},u=1;for(var o in r)if(K(r,o)){var s=r[o],a=s.groups?s.groups+1:1;!s.literal&&s.token&&(i[s.token.val[0]]=s.deser(e.slice(u,u+a))),u+=a}return[e,i]}return[e,{}]}(t,a,s),h=c[0],f=c[1],l=f?function(n){var t;return t=Y(n.Z)?Y(n.z)?null:Rn.create(n.z):new zn(n.Z),Y(n.q)||(n.M=3*(n.q-1)+1),Y(n.h)||(n.h<12&&1===n.a?n.h+=12:12===n.h&&0===n.a&&(n.h=0)),0===n.G&&n.y&&(n.y=-n.y),Y(n.u)||(n.S=tn(n.u)),[Object.keys(n).reduce((function(t,r){var e=function(n){switch(n){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}}(r);return e&&(t[e]=n[r]),t}),{}),t]}(f):[null,null],d=l[0],v=l[1];if(K(f,"a")&&K(f,"H"))throw new w("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:e,regex:a,rawMatches:h,matches:f,result:d,zone:v}}var Dr=[0,31,59,90,120,151,181,212,243,273,304,334],Ir=[0,31,60,91,121,152,182,213,244,274,305,335];function Or(n,t){return new Ln("unit out of range","you specified "+t+" (of type "+typeof t+") as a "+n+", which is invalid")}function Ar(n,t,r){var e=new Date(Date.UTC(n,t-1,r)).getUTCDay();return 0===e?7:e}function Zr(n,t,r){return r+(en(n)?Ir:Dr)[t-1]}function _r(n,t){var r=en(n)?Ir:Dr,e=r.findIndex((function(n){return n<t}));return{month:e+1,day:t-r[e]}}function Lr(n){var t,r=n.year,e=n.month,u=n.day,o=Zr(r,e,u),s=Ar(r,e,u),a=Math.floor((o-s+10)/7);return a<1?a=an(t=r-1):a>an(r)?(t=r+1,a=1):t=r,i({weekYear:t,weekNumber:a,weekday:s},yn(n))}function xr(n){var t,r=n.weekYear,e=n.weekNumber,u=n.weekday,o=Ar(r,1,4),s=un(r),a=7*e+u-o-3;a<1?a+=un(t=r-1):a>s?(t=r+1,a-=un(r)):t=r;var c=_r(t,a);return i({year:t,month:c.month,day:c.day},yn(n))}function Fr(n){var t=n.year;return i({year:t,ordinal:Zr(t,n.month,n.day)},yn(n))}function jr(n){var t=n.year,r=_r(t,n.ordinal);return i({year:t,month:r.month,day:r.day},yn(n))}function Hr(n){var t=$(n.year),r=Q(n.month,1,12),e=Q(n.day,1,on(n.year,n.month));return t?r?!e&&Or("day",n.day):Or("month",n.month):Or("year",n.year)}function qr(n){var t=n.hour,r=n.minute,e=n.second,i=n.millisecond,u=Q(t,0,23)||24===t&&0===r&&0===e&&0===i,o=Q(r,0,59),s=Q(e,0,59),a=Q(i,0,999);return u?o?s?!a&&Or("millisecond",i):Or("second",e):Or("minute",r):Or("hour",t)}var Wr="Invalid DateTime",Cr=864e13;function Rr(n){return new Ln("unsupported zone",'the zone "'+n.name+'" is not supported')}function Gr(n){return null===n.weekData&&(n.weekData=Lr(n.c)),n.weekData}function zr(n,t){var r={ts:n.ts,zone:n.zone,c:n.c,o:n.o,loc:n.loc,invalid:n.invalid};return new se(i({},r,t,{old:r}))}function Jr(n,t,r){var e=n-60*t*1e3,i=r.offset(e);if(t===i)return[e,t];var u=r.offset(e-=60*(i-t)*1e3);return i===u?[e,i]:[n-60*Math.min(i,u)*1e3,Math.max(i,u)]}function Ur(n,t){var r=new Date(n+=60*t*1e3);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function Yr(n,t,r){return Jr(sn(n),t,r)}function Pr(n,t){var r=n.o,e=n.c.year+Math.trunc(t.years),u=n.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),o=i({},n.c,{year:e,month:u,day:Math.min(n.c.day,on(e,u))+Math.trunc(t.days)+7*Math.trunc(t.weeks)}),s=ur.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=Jr(sn(o),r,n.zone),c=a[0],h=a[1];return 0!==s&&(h=n.zone.offset(c+=s)),{ts:c,o:h}}function $r(n,t,r,e,u){var o=r.setZone,s=r.zone;if(n&&0!==Object.keys(n).length){var a=se.fromObject(n,i({},r,{zone:t||s,setZone:void 0}));return o?a:a.setZone(s)}return se.invalid(new Ln("unparsable",'the input "'+u+"\" can't be parsed as "+e))}function Vr(n,t,r){return void 0===r&&(r=!0),n.isValid?_n.create(ct.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(n,t):null}function Br(n,t){var r=t.suppressSeconds,e=t.suppressMilliseconds,i=t.includeOffset,u=t.includePrefix,o=void 0!==u&&u,s=t.includeZone,a=void 0!==s&&s,c=t.spaceZone,h=t.format,f=void 0===h?"extended":h,l="basic"===f?"HHmm":"HH:mm";void 0!==r&&r&&0===n.second&&0===n.millisecond||(l+="basic"===f?"ss":":ss",void 0!==e&&e&&0===n.millisecond||(l+=".SSS")),(a||i)&&void 0!==c&&c&&(l+=" "),a?l+="z":i&&(l+="basic"===f?"ZZZ":"ZZ");var d=Vr(n,l);return o&&(d="T"+d),d}var Kr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Qr={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Xr={ordinal:1,hour:0,minute:0,second:0,millisecond:0},ne=["year","month","day","hour","minute","second","millisecond"],te=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],re=["year","ordinal","hour","minute","second","millisecond"];function ee(n){var t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[n.toLowerCase()];if(!t)throw new g(n);return t}function ie(n,t){var r,e,i=Un(t.zone,Qn.defaultZone),u=ct.fromObject(t),o=Qn.now();if(Y(n.year))r=o;else{for(var s,a=l(ne);!(s=a()).done;){var c=s.value;Y(n[c])&&(n[c]=Kr[c])}var h=Hr(n)||qr(n);if(h)return se.invalid(h);var f=Yr(n,i.offset(o),i);r=f[0],e=f[1]}return new se({ts:r,zone:i,loc:u,o:e})}function ue(n,t,r){var e=!!Y(r.round)||r.round,i=function(n,i){return n=rn(n,e||r.calendary?0:2,!0),t.loc.clone(r).relFormatter(r).format(n,i)},u=function(e){return r.calendary?t.hasSame(n,e)?0:t.startOf(e).diff(n.startOf(e),e).get(e):t.diff(n,e).get(e)};if(r.unit)return i(u(r.unit),r.unit);for(var o,s=l(r.units);!(o=s()).done;){var a=o.value,c=u(a);if(Math.abs(c)>=1)return i(c,a)}return i(n>t?-0:0,r.units[r.units.length-1])}function oe(n){var t,r={};return n.length>0&&"object"==typeof n[n.length-1]?(r=n[n.length-1],t=Array.from(n).slice(0,n.length-1)):t=Array.from(n),[r,t]}var se=function(){function n(n){var t=n.zone||Qn.defaultZone,r=n.invalid||(Number.isNaN(n.ts)?new Ln("invalid input"):null)||(t.isValid?null:Rr(t));this.ts=Y(n.ts)?Qn.now():n.ts;var e=null,i=null;if(!r)if(n.old&&n.old.ts===this.ts&&n.old.zone.equals(t)){var u=[n.old.c,n.old.o];e=u[0],i=u[1]}else{var o=t.offset(this.ts);e=Ur(this.ts,o),e=(r=Number.isNaN(e.year)?new Ln("invalid input"):null)?null:e,i=r?null:o}this._zone=t,this.loc=n.loc||ct.create(),this.invalid=r,this.weekData=null,this.c=e,this.o=i,this.isLuxonDateTime=!0}n.now=function(){return new n({})},n.local=function(){var n=oe(arguments),t=n[0],r=n[1],e=r[0],i=r[1],u=r[2],o=r[3],s=r[4],a=r[5],c=r[6];return ie({year:e,month:i,day:u,hour:o,minute:s,second:a,millisecond:c},t)},n.utc=function(){var n=oe(arguments),t=n[0],r=n[1],e=r[0],i=r[1],u=r[2],o=r[3],s=r[4],a=r[5],c=r[6];return t.zone=zn.utcInstance,ie({year:e,month:i,day:u,hour:o,minute:s,second:a,millisecond:c},t)},n.fromJSDate=function(t,r){void 0===r&&(r={});var e="[object Date]"===Object.prototype.toString.call(t)?t.valueOf():NaN;if(Number.isNaN(e))return n.invalid("invalid input");var i=Un(r.zone,Qn.defaultZone);return i.isValid?new n({ts:e,zone:i,loc:ct.fromObject(r)}):n.invalid(Rr(i))},n.fromMillis=function(t,r){if(void 0===r&&(r={}),P(t))return t<-Cr||t>Cr?n.invalid("Timestamp out of range"):new n({ts:t,zone:Un(r.zone,Qn.defaultZone),loc:ct.fromObject(r)});throw new k("fromMillis requires a numerical input, but received a "+typeof t+" with value "+t)},n.fromSeconds=function(t,r){if(void 0===r&&(r={}),P(t))return new n({ts:1e3*t,zone:Un(r.zone,Qn.defaultZone),loc:ct.fromObject(r)});throw new k("fromSeconds requires a numerical input")},n.fromObject=function(t,r){void 0===r&&(r={}),t=t||{};var e=Un(r.zone,Qn.defaultZone);if(!e.isValid)return n.invalid(Rr(e));var i=Qn.now(),u=e.offset(i),o=dn(t,ee),s=!Y(o.ordinal),a=!Y(o.year),c=!Y(o.month)||!Y(o.day),h=a||c,f=o.weekYear||o.weekNumber,d=ct.fromObject(r);if((h||s)&&f)throw new w("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&s)throw new w("Can't mix ordinal dates with month/day");var v,y,m=f||o.weekday&&!h,g=Ur(i,u);m?(v=te,y=Qr,g=Lr(g)):s?(v=re,y=Xr,g=Fr(g)):(v=ne,y=Kr);for(var k,M=!1,p=l(v);!(k=p()).done;){var b=k.value;Y(o[b])?o[b]=M?y[b]:g[b]:M=!0}var T=(m?function(n){var t=$(n.weekYear),r=Q(n.weekNumber,1,an(n.weekYear)),e=Q(n.weekday,1,7);return t?r?!e&&Or("weekday",n.weekday):Or("week",n.week):Or("weekYear",n.weekYear)}(o):s?function(n){var t=$(n.year),r=Q(n.ordinal,1,un(n.year));return t?!r&&Or("ordinal",n.ordinal):Or("year",n.year)}(o):Hr(o))||qr(o);if(T)return n.invalid(T);var N=Yr(m?xr(o):s?jr(o):o,u,e),E=new n({ts:N[0],zone:e,o:N[1],loc:d});return o.weekday&&h&&t.weekday!==E.weekday?n.invalid("mismatched weekday","you can't specify both a weekday of "+o.weekday+" and a date of "+E.toISO()):E},n.fromISO=function(n,t){void 0===t&&(t={});var r=function(n){return lt(n,[Wt,zt],[Ct,Jt],[Rt,Ut],[Gt,Yt])}(n);return $r(r[0],r[1],t,"ISO 8601",n)},n.fromRFC2822=function(n,t){void 0===t&&(t={});var r=function(n){return lt(function(n){return n.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(n),[_t,Lt])}(n);return $r(r[0],r[1],t,"RFC 2822",n)},n.fromHTTP=function(n,t){void 0===t&&(t={});var r=function(n){return lt(n,[xt,Ht],[Ft,Ht],[jt,qt])}(n);return $r(r[0],r[1],t,"HTTP",t)},n.fromFormat=function(t,r,e){if(void 0===e&&(e={}),Y(t)||Y(r))throw new k("fromFormat requires an input string and a format");var i,u,o=e.locale,s=e.numberingSystem,a=(i=ct.fromOpts({locale:void 0===o?null:o,numberingSystem:void 0===s?null:s,defaultToEN:!0}),[(u=Sr(i,t,r)).result,u.zone,u.invalidReason]),c=a[0],h=a[1],f=a[2];return f?n.invalid(f):$r(c,h,e,"format "+r,t)},n.fromString=function(t,r,e){return void 0===e&&(e={}),n.fromFormat(t,r,e)},n.fromSQL=function(n,t){void 0===t&&(t={});var r=function(n){return lt(n,[$t,Bt],[Vt,Kt])}(n);return $r(r[0],r[1],t,"SQL",n)},n.invalid=function(t,r){if(void 0===r&&(r=null),!t)throw new k("need to specify a reason the DateTime is invalid");var e=t instanceof Ln?t:new Ln(t,r);if(Qn.throwOnInvalid)throw new v(e);return new n({invalid:e})},n.isDateTime=function(n){return n&&n.isLuxonDateTime||!1};var t=n.prototype;return t.get=function(n){return this[n]},t.resolvedLocaleOptions=function(n){void 0===n&&(n={});var t=_n.create(this.loc.clone(n),n).resolvedOptions(this);return{locale:t.locale,numberingSystem:t.numberingSystem,outputCalendar:t.calendar}},t.toUTC=function(n,t){return void 0===n&&(n=0),void 0===t&&(t={}),this.setZone(zn.instance(n),t)},t.toLocal=function(){return this.setZone(Qn.defaultZone)},t.setZone=function(t,r){var e=void 0===r?{}:r,i=e.keepLocalTime,u=void 0!==i&&i,o=e.keepCalendarTime,s=void 0!==o&&o;if((t=Un(t,Qn.defaultZone)).equals(this.zone))return this;if(t.isValid){var a=this.ts;if(u||s){var c=t.offset(this.ts);a=Yr(this.toObject(),c,t)[0]}return zr(this,{ts:a,zone:t})}return n.invalid(Rr(t))},t.reconfigure=function(n){var t=void 0===n?{}:n;return zr(this,{loc:this.loc.clone({locale:t.locale,numberingSystem:t.numberingSystem,outputCalendar:t.outputCalendar})})},t.setLocale=function(n){return this.reconfigure({locale:n})},t.set=function(n){if(!this.isValid)return this;var t,r=dn(n,ee),e=!Y(r.weekYear)||!Y(r.weekNumber)||!Y(r.weekday),u=!Y(r.ordinal),o=!Y(r.year),s=!Y(r.month)||!Y(r.day);if((o||s||u)&&(r.weekYear||r.weekNumber))throw new w("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&u)throw new w("Can't mix ordinal dates with month/day");e?t=xr(i({},Lr(this.c),r)):Y(r.ordinal)?(t=i({},this.toObject(),r),Y(r.day)&&(t.day=Math.min(on(t.year,t.month),t.day))):t=jr(i({},Fr(this.c),r));var a=Yr(t,this.o,this.zone);return zr(this,{ts:a[0],o:a[1]})},t.plus=function(n){return this.isValid?zr(this,Pr(this,or(n))):this},t.minus=function(n){return this.isValid?zr(this,Pr(this,or(n).negate())):this},t.startOf=function(n){if(!this.isValid)return this;var t={},r=ur.normalizeUnit(n);switch(r){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===r&&(t.weekday=1),"quarters"===r){var e=Math.ceil(this.month/3);t.month=3*(e-1)+1}return this.set(t)},t.endOf=function(n){var t;return this.isValid?this.plus((t={},t[n]=1,t)).startOf(n).minus(1):this},t.toFormat=function(n,t){return void 0===t&&(t={}),this.isValid?_n.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,n):Wr},t.toLocaleString=function(n,t){return void 0===n&&(n=N),void 0===t&&(t={}),this.isValid?_n.create(this.loc.clone(t),n).formatDateTime(this):Wr},t.toLocaleParts=function(n){return void 0===n&&(n={}),this.isValid?_n.create(this.loc.clone(n),n).formatDateTimeParts(this):[]},t.toISO=function(n){return void 0===n&&(n={}),this.isValid?this.toISODate(n)+"T"+this.toISOTime(n):null},t.toISODate=function(n){var t=(void 0===n?{}:n).format,r="basic"===(void 0===t?"extended":t)?"yyyyMMdd":"yyyy-MM-dd";return this.year>9999&&(r="+"+r),Vr(this,r)},t.toISOWeekDate=function(){return Vr(this,"kkkk-'W'WW-c")},t.toISOTime=function(n){var t=void 0===n?{}:n,r=t.suppressMilliseconds,e=t.suppressSeconds,i=t.includeOffset,u=t.includePrefix,o=t.format;return Br(this,{suppressSeconds:void 0!==e&&e,suppressMilliseconds:void 0!==r&&r,includeOffset:void 0===i||i,includePrefix:void 0!==u&&u,format:void 0===o?"extended":o})},t.toRFC2822=function(){return Vr(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},t.toHTTP=function(){return Vr(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},t.toSQLDate=function(){return Vr(this,"yyyy-MM-dd")},t.toSQLTime=function(n){var t=void 0===n?{}:n,r=t.includeOffset,e=t.includeZone;return Br(this,{includeOffset:void 0===r||r,includeZone:void 0!==e&&e,spaceZone:!0})},t.toSQL=function(n){return void 0===n&&(n={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(n):null},t.toString=function(){return this.isValid?this.toISO():Wr},t.valueOf=function(){return this.toMillis()},t.toMillis=function(){return this.isValid?this.ts:NaN},t.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},t.toJSON=function(){return this.toISO()},t.toBSON=function(){return this.toJSDate()},t.toObject=function(n){if(void 0===n&&(n={}),!this.isValid)return{};var t=i({},this.c);return n.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},t.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},t.diff=function(n,t,r){if(void 0===t&&(t="milliseconds"),void 0===r&&(r={}),!this.isValid||!n.isValid)return ur.invalid("created by diffing an invalid DateTime");var e,u=i({locale:this.locale,numberingSystem:this.numberingSystem},r),o=(e=t,Array.isArray(e)?e:[e]).map(ur.normalizeUnit),s=n.valueOf()>this.valueOf(),a=function(n,t,r,e){var i,u=function(n,t,r){for(var e,i,u={},o=0,s=[["years",function(n,t){return t.year-n.year}],["quarters",function(n,t){return t.quarter-n.quarter}],["months",function(n,t){return t.month-n.month+12*(t.year-n.year)}],["weeks",function(n,t){var r=fr(n,t);return(r-r%7)/7}],["days",fr]];o<s.length;o++){var a=s[o],c=a[0],h=a[1];if(r.indexOf(c)>=0){var f;e=c;var l,d=h(n,t);(i=n.plus(((f={})[c]=d,f)))>t?(n=n.plus(((l={})[c]=d-1,l)),d-=1):n=i,u[c]=d}}return[n,u,i,e]}(n,t,r),o=u[0],s=u[1],a=u[2],c=u[3],h=t-o,f=r.filter((function(n){return["hours","minutes","seconds","milliseconds"].indexOf(n)>=0}));0===f.length&&(a<t&&(a=o.plus(((i={})[c]=1,i))),a!==o&&(s[c]=(s[c]||0)+h/(a-o)));var l,d=ur.fromObject(s,e);return f.length>0?(l=ur.fromMillis(h,e)).shiftTo.apply(l,f).plus(d):d}(s?this:n,s?n:this,o,u);return s?a.negate():a},t.diffNow=function(t,r){return void 0===t&&(t="milliseconds"),void 0===r&&(r={}),this.diff(n.now(),t,r)},t.until=function(n){return this.isValid?cr.fromDateTimes(this,n):this},t.hasSame=function(n,t){if(!this.isValid)return!1;var r=n.valueOf(),e=this.setZone(n.zone,{keepLocalTime:!0});return e.startOf(t)<=r&&r<=e.endOf(t)},t.equals=function(n){return this.isValid&&n.isValid&&this.valueOf()===n.valueOf()&&this.zone.equals(n.zone)&&this.loc.equals(n.loc)},t.toRelative=function(t){if(void 0===t&&(t={}),!this.isValid)return null;var r=t.base||n.fromObject({},{zone:this.zone}),e=t.padding?this<r?-t.padding:t.padding:0,u=["years","months","days","hours","minutes","seconds"],o=t.unit;return Array.isArray(t.unit)&&(u=t.unit,o=void 0),ue(r,this.plus(e),i({},t,{numeric:"always",units:u,unit:o}))},t.toRelativeCalendar=function(t){return void 0===t&&(t={}),this.isValid?ue(t.base||n.fromObject({},{zone:this.zone}),this,i({},t,{numeric:"auto",units:["years","months","days"],calendary:!0})):null},n.min=function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];if(!r.every(n.isDateTime))throw new k("min requires all arguments be DateTimes");return B(r,(function(n){return n.valueOf()}),Math.min)},n.max=function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];if(!r.every(n.isDateTime))throw new k("max requires all arguments be DateTimes");return B(r,(function(n){return n.valueOf()}),Math.max)},n.fromFormatExplain=function(n,t,r){void 0===r&&(r={});var e=r.locale,i=r.numberingSystem;return Sr(ct.fromOpts({locale:void 0===e?null:e,numberingSystem:void 0===i?null:i,defaultToEN:!0}),n,t)},n.fromStringExplain=function(t,r,e){return void 0===e&&(e={}),n.fromFormatExplain(t,r,e)},e(n,[{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}},{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"outputCalendar",get:function(){return this.isValid?this.loc.outputCalendar:null}},{key:"zone",get:function(){return this._zone}},{key:"zoneName",get:function(){return this.isValid?this.zone.name:null}},{key:"year",get:function(){return this.isValid?this.c.year:NaN}},{key:"quarter",get:function(){return this.isValid?Math.ceil(this.c.month/3):NaN}},{key:"month",get:function(){return this.isValid?this.c.month:NaN}},{key:"day",get:function(){return this.isValid?this.c.day:NaN}},{key:"hour",get:function(){return this.isValid?this.c.hour:NaN}},{key:"minute",get:function(){return this.isValid?this.c.minute:NaN}},{key:"second",get:function(){return this.isValid?this.c.second:NaN}},{key:"millisecond",get:function(){return this.isValid?this.c.millisecond:NaN}},{key:"weekYear",get:function(){return this.isValid?Gr(this).weekYear:NaN}},{key:"weekNumber",get:function(){return this.isValid?Gr(this).weekNumber:NaN}},{key:"weekday",get:function(){return this.isValid?Gr(this).weekday:NaN}},{key:"ordinal",get:function(){return this.isValid?Fr(this.c).ordinal:NaN}},{key:"monthShort",get:function(){return this.isValid?hr.months("short",{locObj:this.loc})[this.month-1]:null}},{key:"monthLong",get:function(){return this.isValid?hr.months("long",{locObj:this.loc})[this.month-1]:null}},{key:"weekdayShort",get:function(){return this.isValid?hr.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}},{key:"weekdayLong",get:function(){return this.isValid?hr.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}},{key:"offset",get:function(){return this.isValid?+this.o:NaN}},{key:"offsetNameShort",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}},{key:"offsetNameLong",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}},{key:"isOffsetFixed",get:function(){return this.isValid?this.zone.isUniversal:null}},{key:"isInDST",get:function(){return!this.isOffsetFixed&&(this.offset>this.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return en(this.year)}},{key:"daysInMonth",get:function(){return on(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?un(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?an(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return N}},{key:"DATE_MED",get:function(){return E}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return S}},{key:"DATE_FULL",get:function(){return D}},{key:"DATE_HUGE",get:function(){return I}},{key:"TIME_SIMPLE",get:function(){return O}},{key:"TIME_WITH_SECONDS",get:function(){return A}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return Z}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return _}},{key:"TIME_24_SIMPLE",get:function(){return L}},{key:"TIME_24_WITH_SECONDS",get:function(){return x}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return F}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return j}},{key:"DATETIME_SHORT",get:function(){return H}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return q}},{key:"DATETIME_MED",get:function(){return W}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return C}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return R}},{key:"DATETIME_FULL",get:function(){return G}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return z}},{key:"DATETIME_HUGE",get:function(){return J}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return U}}]),n}();function ae(n){if(se.isDateTime(n))return n;if(n&&n.valueOf&&P(n.valueOf()))return se.fromJSDate(n);if(n&&"object"==typeof n)return se.fromObject(n);throw new k("Unknown datetime argument: "+n+", of type "+typeof n)}t.DateTime=se,t.Duration=ur,t.FixedOffsetZone=zn,t.IANAZone=Rn,t.Info=hr,t.Interval=cr,t.InvalidZone=Jn,t.Settings=Qn,t.SystemZone=jn,t.VERSION="2.0.1",t.Zone=xn}));export{t as l}
|
|
1
|
+
import{c as n}from"./p-fd2c5407.js";var t=n((function(n,t){function r(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}function e(n,t,e){return t&&r(n.prototype,t),e&&r(n,e),n}function i(){return(i=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(n[e]=r[e])}return n}).apply(this,arguments)}function u(n,t){n.prototype=Object.create(t.prototype),n.prototype.constructor=n,s(n,t)}function o(n){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}function s(n,t){return(s=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(n){return!1}}function c(n,t,r){return(c=a()?Reflect.construct:function(n,t,r){var e=[null];e.push.apply(e,t);var i=new(Function.bind.apply(n,e));return r&&s(i,r.prototype),i}).apply(null,arguments)}function h(n){var t="function"==typeof Map?new Map:void 0;return(h=function(n){if(null===n||-1===Function.toString.call(n).indexOf("[native code]"))return n;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return c(n,arguments,o(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,n)})(n)}function f(n,t){(null==t||t>n.length)&&(t=n.length);for(var r=0,e=new Array(t);r<t;r++)e[r]=n[r];return e}function l(n,t){var r="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(r)return(r=r.call(n)).next.bind(r);if(Array.isArray(n)||(r=function(n,t){if(n){if("string"==typeof n)return f(n,t);var r=Object.prototype.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(n):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(n,t):void 0}}(n))||t&&n&&"number"==typeof n.length){r&&(n=r);var e=0;return function(){return e>=n.length?{done:!0}:{done:!1,value:n[e++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}Object.defineProperty(t,"__esModule",{value:!0});var d=function(n){function t(){return n.apply(this,arguments)||this}return u(t,n),t}(h(Error)),v=function(n){function t(t){return n.call(this,"Invalid DateTime: "+t.toMessage())||this}return u(t,n),t}(d),y=function(n){function t(t){return n.call(this,"Invalid Interval: "+t.toMessage())||this}return u(t,n),t}(d),m=function(n){function t(t){return n.call(this,"Invalid Duration: "+t.toMessage())||this}return u(t,n),t}(d),w=function(n){function t(){return n.apply(this,arguments)||this}return u(t,n),t}(d),g=function(n){function t(t){return n.call(this,"Invalid unit "+t)||this}return u(t,n),t}(d),k=function(n){function t(){return n.apply(this,arguments)||this}return u(t,n),t}(d),M=function(n){function t(){return n.call(this,"Zone is an abstract class")||this}return u(t,n),t}(d),p="numeric",b="short",T="long",N={year:p,month:p,day:p},E={year:p,month:b,day:p},S={year:p,month:b,day:p,weekday:b},D={year:p,month:T,day:p},I={year:p,month:T,day:p,weekday:T},O={hour:p,minute:p},A={hour:p,minute:p,second:p},Z={hour:p,minute:p,second:p,timeZoneName:b},_={hour:p,minute:p,second:p,timeZoneName:T},L={hour:p,minute:p,hourCycle:"h23"},x={hour:p,minute:p,second:p,hourCycle:"h23"},F={hour:p,minute:p,second:p,hourCycle:"h23",timeZoneName:b},j={hour:p,minute:p,second:p,hourCycle:"h23",timeZoneName:T},H={year:p,month:p,day:p,hour:p,minute:p},q={year:p,month:p,day:p,hour:p,minute:p,second:p},W={year:p,month:b,day:p,hour:p,minute:p},C={year:p,month:b,day:p,hour:p,minute:p,second:p},R={year:p,month:b,day:p,weekday:b,hour:p,minute:p},G={year:p,month:T,day:p,hour:p,minute:p,timeZoneName:b},z={year:p,month:T,day:p,hour:p,minute:p,second:p,timeZoneName:b},J={year:p,month:T,day:p,weekday:T,hour:p,minute:p,timeZoneName:T},U={year:p,month:T,day:p,weekday:T,hour:p,minute:p,second:p,timeZoneName:T};function Y(n){return void 0===n}function P(n){return"number"==typeof n}function $(n){return"number"==typeof n&&n%1==0}function V(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(n){return!1}}function B(n,t,r){if(0!==n.length)return n.reduce((function(n,e){var i=[t(e),e];return n&&r(n[0],i[0])===n[0]?n:i}),null)[1]}function K(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function Q(n,t,r){return $(n)&&n>=t&&n<=r}function X(n,t){void 0===t&&(t=2);var r=n<0?"-":"",e=r?-1*n:n;return""+r+(e.toString().length<t?("0".repeat(t)+e).slice(-t):e.toString())}function nn(n){return Y(n)||null===n||""===n?void 0:parseInt(n,10)}function tn(n){if(!Y(n)&&null!==n&&""!==n){var t=1e3*parseFloat("0."+n);return Math.floor(t)}}function rn(n,t,r){void 0===r&&(r=!1);var e=Math.pow(10,t);return(r?Math.trunc:Math.round)(n*e)/e}function en(n){return n%4==0&&(n%100!=0||n%400==0)}function un(n){return en(n)?366:365}function on(n,t){var r,e=(r=t-1)-12*Math.floor(r/12)+1;return 2===e?en(n+(t-e)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][e-1]}function sn(n){var t=Date.UTC(n.year,n.month-1,n.day,n.hour,n.minute,n.second,n.millisecond);return n.year<100&&n.year>=0&&(t=new Date(t)).setUTCFullYear(t.getUTCFullYear()-1900),+t}function an(n){var t=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7,r=n-1,e=(r+Math.floor(r/4)-Math.floor(r/100)+Math.floor(r/400))%7;return 4===t||3===e?53:52}function cn(n){return n>99?n:n>60?1900+n:2e3+n}function hn(n,t,r,e){void 0===e&&(e=null);var u=new Date(n),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};e&&(o.timeZone=e);var s=i({timeZoneName:t},o),a=new Intl.DateTimeFormat(r,s).formatToParts(u).find((function(n){return"timezonename"===n.type.toLowerCase()}));return a?a.value:null}function fn(n,t){var r=parseInt(n,10);Number.isNaN(r)&&(r=0);var e=parseInt(t,10)||0;return 60*r+(r<0||Object.is(r,-0)?-e:e)}function ln(n){var t=Number(n);if("boolean"==typeof n||""===n||Number.isNaN(t))throw new k("Invalid unit value "+n);return t}function dn(n,t){var r={};for(var e in n)if(K(n,e)){var i=n[e];if(null==i)continue;r[t(e)]=ln(i)}return r}function vn(n,t){var r=Math.trunc(Math.abs(n/60)),e=Math.trunc(Math.abs(n%60)),i=n>=0?"+":"-";switch(t){case"short":return""+i+X(r,2)+":"+X(e,2);case"narrow":return""+i+r+(e>0?":"+e:"");case"techie":return""+i+X(r,2)+X(e,2);default:throw new RangeError("Value format "+t+" is out of range for property format")}}function yn(n){return function(n){return["hour","minute","second","millisecond"].reduce((function(t,r){return t[r]=n[r],t}),{})}(n)}var mn=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/,wn=["January","February","March","April","May","June","July","August","September","October","November","December"],gn=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],kn=["J","F","M","A","M","J","J","A","S","O","N","D"];function Mn(n){switch(n){case"narrow":return[].concat(kn);case"short":return[].concat(gn);case"long":return[].concat(wn);case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var pn=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],bn=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Tn=["M","T","W","T","F","S","S"];function Nn(n){switch(n){case"narrow":return[].concat(Tn);case"short":return[].concat(bn);case"long":return[].concat(pn);case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var En=["AM","PM"],Sn=["Before Christ","Anno Domini"],Dn=["BC","AD"],In=["B","A"];function On(n){switch(n){case"narrow":return[].concat(In);case"short":return[].concat(Dn);case"long":return[].concat(Sn);default:return null}}function An(n,t){for(var r,e="",i=l(n);!(r=i()).done;){var u=r.value;e+=u.literal?u.val:t(u.val)}return e}var Zn={D:N,DD:E,DDD:D,DDDD:I,t:O,tt:A,ttt:Z,tttt:_,T:L,TT:x,TTT:F,TTTT:j,f:H,ff:W,fff:G,ffff:J,F:q,FF:C,FFF:z,FFFF:U},_n=function(){function n(n,t){this.opts=t,this.loc=n,this.systemLoc=null}n.create=function(t,r){return void 0===r&&(r={}),new n(t,r)},n.parseFormat=function(n){for(var t=null,r="",e=!1,i=[],u=0;u<n.length;u++){var o=n.charAt(u);"'"===o?(r.length>0&&i.push({literal:e,val:r}),t=null,r="",e=!e):e||o===t?r+=o:(r.length>0&&i.push({literal:!1,val:r}),r=o,t=o)}return r.length>0&&i.push({literal:e,val:r}),i},n.macroTokenToFormatOpts=function(n){return Zn[n]};var t=n.prototype;return t.formatWithSystemDefault=function(n,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(n,i({},this.opts,t)).format()},t.formatDateTime=function(n,t){return void 0===t&&(t={}),this.loc.dtFormatter(n,i({},this.opts,t)).format()},t.formatDateTimeParts=function(n,t){return void 0===t&&(t={}),this.loc.dtFormatter(n,i({},this.opts,t)).formatToParts()},t.resolvedOptions=function(n,t){return void 0===t&&(t={}),this.loc.dtFormatter(n,i({},this.opts,t)).resolvedOptions()},t.num=function(n,t){if(void 0===t&&(t=0),this.opts.forceSimple)return X(n,t);var r=i({},this.opts);return t>0&&(r.padTo=t),this.loc.numberFormatter(r).format(n)},t.formatDateTimeFromString=function(t,r){var e=this,i="en"===this.loc.listingMode(),u=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,o=function(n,r){return e.loc.extract(t,n,r)},s=function(n){return t.isOffsetFixed&&0===t.offset&&n.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,n.format):""},a=function(n,r){return i?function(n,t){return Mn(t)[n.month-1]}(t,n):o(r?{month:n}:{month:n,day:"numeric"},"month")},c=function(n,r){return i?function(n,t){return Nn(t)[n.weekday-1]}(t,n):o(r?{weekday:n}:{weekday:n,month:"long",day:"numeric"},"weekday")},h=function(n){return i?function(n,t){return On(t)[n.year<0?0:1]}(t,n):o({era:n},"era")};return An(n.parseFormat(r),(function(r){switch(r){case"S":return e.num(t.millisecond);case"u":case"SSS":return e.num(t.millisecond,3);case"s":return e.num(t.second);case"ss":return e.num(t.second,2);case"m":return e.num(t.minute);case"mm":return e.num(t.minute,2);case"h":return e.num(t.hour%12==0?12:t.hour%12);case"hh":return e.num(t.hour%12==0?12:t.hour%12,2);case"H":return e.num(t.hour);case"HH":return e.num(t.hour,2);case"Z":return s({format:"narrow",allowZ:e.opts.allowZ});case"ZZ":return s({format:"short",allowZ:e.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:e.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:e.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:e.loc.locale});case"z":return t.zoneName;case"a":return i?function(n){return En[n.hour<12?0:1]}(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return u?o({day:"numeric"},"day"):e.num(t.day);case"dd":return u?o({day:"2-digit"},"day"):e.num(t.day,2);case"c":return e.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return e.num(t.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return u?o({month:"numeric",day:"numeric"},"month"):e.num(t.month);case"LL":return u?o({month:"2-digit",day:"numeric"},"month"):e.num(t.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return u?o({month:"numeric"},"month"):e.num(t.month);case"MM":return u?o({month:"2-digit"},"month"):e.num(t.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return u?o({year:"numeric"},"year"):e.num(t.year);case"yy":return u?o({year:"2-digit"},"year"):e.num(t.year.toString().slice(-2),2);case"yyyy":return u?o({year:"numeric"},"year"):e.num(t.year,4);case"yyyyyy":return u?o({year:"numeric"},"year"):e.num(t.year,6);case"G":return h("short");case"GG":return h("long");case"GGGGG":return h("narrow");case"kk":return e.num(t.weekYear.toString().slice(-2),2);case"kkkk":return e.num(t.weekYear,4);case"W":return e.num(t.weekNumber);case"WW":return e.num(t.weekNumber,2);case"o":return e.num(t.ordinal);case"ooo":return e.num(t.ordinal,3);case"q":return e.num(t.quarter);case"qq":return e.num(t.quarter,2);case"X":return e.num(Math.floor(t.ts/1e3));case"x":return e.num(t.ts);default:return function(r){var i=n.macroTokenToFormatOpts(r);return i?e.formatWithSystemDefault(t,i):r}(r)}}))},t.formatDurationFromString=function(t,r){var e,i=this,u=function(n){switch(n[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},o=n.parseFormat(r),s=o.reduce((function(n,t){return t.literal?n:n.concat(t.val)}),[]),a=t.shiftTo.apply(t,s.map(u).filter((function(n){return n})));return An(o,(e=a,function(n){var t=u(n);return t?i.num(e.get(t),n.length):n}))},n}(),Ln=function(){function n(n,t){this.reason=n,this.explanation=t}return n.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},n}(),xn=function(){function n(){}var t=n.prototype;return t.offsetName=function(){throw new M},t.formatOffset=function(){throw new M},t.offset=function(){throw new M},t.equals=function(){throw new M},e(n,[{key:"type",get:function(){throw new M}},{key:"name",get:function(){throw new M}},{key:"isUniversal",get:function(){throw new M}},{key:"isValid",get:function(){throw new M}}]),n}(),Fn=null,jn=function(n){function t(){return n.apply(this,arguments)||this}u(t,n);var r=t.prototype;return r.offsetName=function(n,t){return hn(n,t.format,t.locale)},r.formatOffset=function(n,t){return vn(this.offset(n),t)},r.offset=function(n){return-new Date(n).getTimezoneOffset()},r.equals=function(n){return"system"===n.type},e(t,[{key:"type",get:function(){return"system"}},{key:"name",get:function(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===Fn&&(Fn=new t),Fn}}]),t}(xn),Hn=RegExp("^"+mn.source+"$"),qn={},Wn={year:0,month:1,day:2,hour:3,minute:4,second:5},Cn={},Rn=function(n){function t(r){var e;return(e=n.call(this)||this).zoneName=r,e.valid=t.isValidZone(r),e}u(t,n),t.create=function(n){return Cn[n]||(Cn[n]=new t(n)),Cn[n]},t.resetCache=function(){Cn={},qn={}},t.isValidSpecifier=function(n){return!(!n||!n.match(Hn))},t.isValidZone=function(n){try{return new Intl.DateTimeFormat("en-US",{timeZone:n}).format(),!0}catch(n){return!1}},t.parseGMTOffset=function(n){if(n){var t=n.match(/^Etc\/GMT(0|[+-]\d{1,2})$/i);if(t)return-60*parseInt(t[1])}return null};var r=t.prototype;return r.offsetName=function(n,t){return hn(n,t.format,t.locale,this.name)},r.formatOffset=function(n,t){return vn(this.offset(n),t)},r.offset=function(n){var t=new Date(n);if(isNaN(t))return NaN;var r,e=(qn[r=this.name]||(qn[r]=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),qn[r]),i=e.formatToParts?function(n,t){for(var r=n.formatToParts(t),e=[],i=0;i<r.length;i++){var u=r[i],o=u.value,s=Wn[u.type];Y(s)||(e[s]=parseInt(o,10))}return e}(e,t):function(n,t){var r=n.format(t).replace(/\u200E/g,""),e=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(r);return[e[3],e[1],e[2],e[4],e[5],e[6]]}(e,t),u=+t,o=u%1e3;return(sn({year:i[0],month:i[1],day:i[2],hour:i[3],minute:i[4],second:i[5],millisecond:0})-(u-=o>=0?o:1e3+o))/6e4},r.equals=function(n){return"iana"===n.type&&n.name===this.name},e(t,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),t}(xn),Gn=null,zn=function(n){function t(t){var r;return(r=n.call(this)||this).fixed=t,r}u(t,n),t.instance=function(n){return 0===n?t.utcInstance:new t(n)},t.parseSpecifier=function(n){if(n){var r=n.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new t(fn(r[1],r[2]))}return null};var r=t.prototype;return r.offsetName=function(){return this.name},r.formatOffset=function(n,t){return vn(this.fixed,t)},r.offset=function(){return this.fixed},r.equals=function(n){return"fixed"===n.type&&n.fixed===this.fixed},e(t,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+vn(this.fixed,"narrow")}},{key:"isUniversal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}],[{key:"utcInstance",get:function(){return null===Gn&&(Gn=new t(0)),Gn}}]),t}(xn),Jn=function(n){function t(t){var r;return(r=n.call(this)||this).zoneName=t,r}u(t,n);var r=t.prototype;return r.offsetName=function(){return null},r.formatOffset=function(){return""},r.offset=function(){return NaN},r.equals=function(){return!1},e(t,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),t}(xn);function Un(n,t){var r;if(Y(n)||null===n)return t;if(n instanceof xn)return n;if("string"==typeof n){var e=n.toLowerCase();return"local"===e||"system"===e?t:"utc"===e||"gmt"===e?zn.utcInstance:null!=(r=Rn.parseGMTOffset(n))?zn.instance(r):Rn.isValidSpecifier(e)?Rn.create(n):zn.parseSpecifier(e)||new Jn(n)}return P(n)?zn.instance(n):"object"==typeof n&&n.offset&&"number"==typeof n.offset?n:new Jn(n)}var Yn,Pn=function(){return Date.now()},$n="system",Vn=null,Bn=null,Kn=null,Qn=function(){function n(){}return n.resetCaches=function(){ct.resetCache(),Rn.resetCache()},e(n,null,[{key:"now",get:function(){return Pn},set:function(n){Pn=n}},{key:"defaultZone",get:function(){return Un($n,jn.instance)},set:function(n){$n=n}},{key:"defaultLocale",get:function(){return Vn},set:function(n){Vn=n}},{key:"defaultNumberingSystem",get:function(){return Bn},set:function(n){Bn=n}},{key:"defaultOutputCalendar",get:function(){return Kn},set:function(n){Kn=n}},{key:"throwOnInvalid",get:function(){return Yn},set:function(n){Yn=n}}]),n}(),Xn=["base"],nt={};function tt(n,t){void 0===t&&(t={});var r=JSON.stringify([n,t]),e=nt[r];return e||(e=new Intl.DateTimeFormat(n,t),nt[r]=e),e}var rt={},et={};var it=null;function ut(n,t,r,e,i){var u=n.listingMode(r);return"error"===u?null:"en"===u?e(t):i(t)}var ot=function(){function n(n,t,r){if(this.padTo=r.padTo||0,this.floor=r.floor||!1,!t){var e={useGrouping:!1};r.padTo>0&&(e.minimumIntegerDigits=r.padTo),this.inf=function(n,t){void 0===t&&(t={});var r=JSON.stringify([n,t]),e=rt[r];return e||(e=new Intl.NumberFormat(n,t),rt[r]=e),e}(n,e)}}return n.prototype.format=function(n){if(this.inf){var t=this.floor?Math.floor(n):n;return this.inf.format(t)}return X(this.floor?Math.floor(n):rn(n,3),this.padTo)},n}(),st=function(){function n(n,t,r){var e;if(this.opts=r,n.zone.isUniversal){var u=n.offset/60*-1,o=u>=0?"Etc/GMT+"+u:"Etc/GMT"+u,s=Rn.isValidZone(o);0!==n.offset&&s?(e=o,this.dt=n):(e="UTC",this.dt=r.timeZoneName||0===n.offset?n:se.fromMillis(n.ts+60*n.offset*1e3))}else"system"===n.zone.type?this.dt=n:(this.dt=n,e=n.zone.name);var a=i({},this.opts);e&&(a.timeZone=e),this.dtf=tt(t,a)}var t=n.prototype;return t.format=function(){return this.dtf.format(this.dt.toJSDate())},t.formatToParts=function(){return this.dtf.formatToParts(this.dt.toJSDate())},t.resolvedOptions=function(){return this.dtf.resolvedOptions()},n}(),at=function(){function n(n,t,r){this.opts=i({style:"long"},r),!t&&V()&&(this.rtf=function(n,t){void 0===t&&(t={});var r=function(n,t){if(null==n)return{};var r,e,i={},u=Object.keys(n);for(e=0;e<u.length;e++)t.indexOf(r=u[e])>=0||(i[r]=n[r]);return i}(t,Xn),e=JSON.stringify([n,r]),i=et[e];return i||(i=new Intl.RelativeTimeFormat(n,t),et[e]=i),i}(n,r))}var t=n.prototype;return t.format=function(n,t){return this.rtf?this.rtf.format(n,t):function(n,t,r,e){void 0===r&&(r="always"),void 0===e&&(e=!1);var i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},u=-1===["hours","minutes","seconds"].indexOf(n);if("auto"===r&&u){var o="days"===n;switch(t){case 1:return o?"tomorrow":"next "+i[n][0];case-1:return o?"yesterday":"last "+i[n][0];case 0:return o?"today":"this "+i[n][0]}}var s=Object.is(t,-0)||t<0,a=Math.abs(t),c=1===a,h=i[n],f=e?c?h[1]:h[2]||h[1]:c?i[n][0]:n;return s?a+" "+f+" ago":"in "+a+" "+f}(t,n,this.opts.numeric,"long"!==this.opts.style)},t.formatToParts=function(n,t){return this.rtf?this.rtf.formatToParts(n,t):[]},n}(),ct=function(){function n(n,t,r,e){var i=function(n){var t=n.indexOf("-u-");if(-1===t)return[n];var r,e=n.substring(0,t);try{r=tt(n).resolvedOptions()}catch(n){r=tt(e).resolvedOptions()}return[e,r.numberingSystem,r.calendar]}(n),u=i[1],o=i[2];this.locale=i[0],this.numberingSystem=t||u||null,this.outputCalendar=r||o||null,this.intl=function(n,t,r){return r||t?(n+="-u",r&&(n+="-ca-"+r),t&&(n+="-nu-"+t),n):n}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=e,this.fastNumbersCached=null}n.fromOpts=function(t){return n.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)},n.create=function(t,r,e,i){void 0===i&&(i=!1);var u=t||Qn.defaultLocale;return new n(u||(i?"en-US":it||(it="en-US")),r||Qn.defaultNumberingSystem,e||Qn.defaultOutputCalendar,u)},n.resetCache=function(){it=null,nt={},rt={},et={}},n.fromObject=function(t){var r=void 0===t?{}:t;return n.create(r.locale,r.numberingSystem,r.outputCalendar)};var t=n.prototype;return t.listingMode=function(){return this.isEnglish()&&!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar)?"en":"intl"},t.clone=function(t){return t&&0!==Object.getOwnPropertyNames(t).length?n.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1):this},t.redefaultToEN=function(n){return void 0===n&&(n={}),this.clone(i({},n,{defaultToEN:!0}))},t.redefaultToSystem=function(n){return void 0===n&&(n={}),this.clone(i({},n,{defaultToEN:!1}))},t.months=function(n,t,r){var e=this;return void 0===t&&(t=!1),void 0===r&&(r=!0),ut(this,n,r,Mn,(function(){var r=t?{month:n,day:"numeric"}:{month:n},i=t?"format":"standalone";return e.monthsCache[i][n]||(e.monthsCache[i][n]=function(n){for(var t=[],r=1;r<=12;r++){var e=se.utc(2016,r,1);t.push(n(e))}return t}((function(n){return e.extract(n,r,"month")}))),e.monthsCache[i][n]}))},t.weekdays=function(n,t,r){var e=this;return void 0===t&&(t=!1),void 0===r&&(r=!0),ut(this,n,r,Nn,(function(){var r=t?{weekday:n,year:"numeric",month:"long",day:"numeric"}:{weekday:n},i=t?"format":"standalone";return e.weekdaysCache[i][n]||(e.weekdaysCache[i][n]=function(n){for(var t=[],r=1;r<=7;r++){var e=se.utc(2016,11,13+r);t.push(n(e))}return t}((function(n){return e.extract(n,r,"weekday")}))),e.weekdaysCache[i][n]}))},t.meridiems=function(n){var t=this;return void 0===n&&(n=!0),ut(this,void 0,n,(function(){return En}),(function(){if(!t.meridiemCache){var n={hour:"numeric",hourCycle:"h12"};t.meridiemCache=[se.utc(2016,11,13,9),se.utc(2016,11,13,19)].map((function(r){return t.extract(r,n,"dayperiod")}))}return t.meridiemCache}))},t.eras=function(n,t){var r=this;return void 0===t&&(t=!0),ut(this,n,t,On,(function(){var t={era:n};return r.eraCache[n]||(r.eraCache[n]=[se.utc(-40,1,1),se.utc(2017,1,1)].map((function(n){return r.extract(n,t,"era")}))),r.eraCache[n]}))},t.extract=function(n,t,r){var e=this.dtFormatter(n,t).formatToParts().find((function(n){return n.type.toLowerCase()===r}));return e?e.value:null},t.numberFormatter=function(n){return void 0===n&&(n={}),new ot(this.intl,n.forceSimple||this.fastNumbers,n)},t.dtFormatter=function(n,t){return void 0===t&&(t={}),new st(n,this.intl,t)},t.relFormatter=function(n){return void 0===n&&(n={}),new at(this.intl,this.isEnglish(),n)},t.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},t.equals=function(n){return this.locale===n.locale&&this.numberingSystem===n.numberingSystem&&this.outputCalendar===n.outputCalendar},e(n,[{key:"fastNumbers",get:function(){var n;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(n=this).numberingSystem||"latn"===n.numberingSystem)&&("latn"===n.numberingSystem||!n.locale||n.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(n.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),n}();function ht(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];var e=t.reduce((function(n,t){return n+t.source}),"");return RegExp("^"+e+"$")}function ft(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];return function(n){return t.reduce((function(t,r){var e=t[0],u=t[1],o=r(n,t[2]),s=o[1],a=o[2];return[i({},e,o[0]),u||s,a]}),[{},null,1]).slice(0,2)}}function lt(n){if(null==n)return[null,null];for(var t=arguments.length,r=new Array(t>1?t-1:0),e=1;e<t;e++)r[e-1]=arguments[e];for(var i=0,u=r;i<u.length;i++){var o=u[i],s=o[0],a=o[1],c=s.exec(n);if(c)return a(c)}return[null,null]}function dt(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];return function(n,r){var e,i={};for(e=0;e<t.length;e++)i[t[e]]=nn(n[r+e]);return[i,null,r+e]}}var vt=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,yt=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,mt=RegExp(""+yt.source+vt.source+"?"),wt=RegExp("(?:T"+mt.source+")?"),gt=dt("weekYear","weekNumber","weekDay"),kt=dt("year","ordinal"),Mt=RegExp(yt.source+" ?(?:"+vt.source+"|("+mn.source+"))?"),pt=RegExp("(?: "+Mt.source+")?");function bt(n,t,r){var e=n[t];return Y(e)?r:nn(e)}function Tt(n,t){return[{year:bt(n,t),month:bt(n,t+1,1),day:bt(n,t+2,1)},null,t+3]}function Nt(n,t){return[{hours:bt(n,t,0),minutes:bt(n,t+1,0),seconds:bt(n,t+2,0),milliseconds:tn(n[t+3])},null,t+4]}function Et(n,t){var r=!n[t]&&!n[t+1],e=fn(n[t+1],n[t+2]);return[{},r?null:zn.instance(e),t+3]}function St(n,t){return[{},n[t]?Rn.create(n[t]):null,t+1]}var Dt=RegExp("^T?"+yt.source+"$"),It=/^-?P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,9}))?S)?)?)$/;function Ot(n){var t=n[2],r=n[3],e=n[4],i=n[5],u=n[6],o=n[7],s=n[8],a="-"===n[0][0],c=o&&"-"===o[0],h=function(n,t){return void 0===t&&(t=!1),void 0!==n&&(t||n&&a)?-n:n};return[{years:h(nn(n[1])),months:h(nn(t)),weeks:h(nn(r)),days:h(nn(e)),hours:h(nn(i)),minutes:h(nn(u)),seconds:h(nn(o),"-0"===o),milliseconds:h(tn(s),c)}]}var At={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Zt(n,t,r,e,i,u,o){var s={year:2===t.length?cn(nn(t)):nn(t),month:gn.indexOf(r)+1,day:nn(e),hour:nn(i),minute:nn(u)};return o&&(s.second=nn(o)),n&&(s.weekday=n.length>3?pn.indexOf(n)+1:bn.indexOf(n)+1),s}var _t=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Lt(n){var t,r=n[8],e=n[9],i=n[10],u=n[11],o=Zt(n[1],n[4],n[3],n[2],n[5],n[6],n[7]);return t=r?At[r]:e?0:fn(i,u),[o,new zn(t)]}var xt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Ft=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,jt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Ht(n){return[Zt(n[1],n[4],n[3],n[2],n[5],n[6],n[7]),zn.utcInstance]}function qt(n){return[Zt(n[1],n[7],n[2],n[3],n[4],n[5],n[6]),zn.utcInstance]}var Wt=ht(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,wt),Ct=ht(/(\d{4})-?W(\d\d)(?:-?(\d))?/,wt),Rt=ht(/(\d{4})-?(\d{3})/,wt),Gt=ht(mt),zt=ft(Tt,Nt,Et),Jt=ft(gt,Nt,Et),Ut=ft(kt,Nt,Et),Yt=ft(Nt,Et),Pt=ft(Nt),$t=ht(/(\d{4})-(\d\d)-(\d\d)/,pt),Vt=ht(Mt),Bt=ft(Tt,Nt,Et,St),Kt=ft(Nt,Et,St),Qt={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Xt=i({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},Qt),nr=i({years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},Qt),tr=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],rr=tr.slice(0).reverse();function er(n,t,r){void 0===r&&(r=!1);var e={values:r?t.values:i({},n.values,t.values||{}),loc:n.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||n.conversionAccuracy};return new ur(e)}function ir(n,t,r,e,i){var u=n[i][r],o=t[r]/u,s=Math.sign(o)!==Math.sign(e[i])&&0!==e[i]&&Math.abs(o)<=1?function(n){return n<0?Math.floor(n):Math.ceil(n)}(o):Math.trunc(o);e[i]+=s,t[r]-=s*u}var ur=function(){function n(n){var t="longterm"===n.conversionAccuracy||!1;this.values=n.values,this.loc=n.loc||ct.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=n.invalid||null,this.matrix=t?nr:Xt,this.isLuxonDuration=!0}n.fromMillis=function(t,r){return n.fromObject({milliseconds:t},r)},n.fromObject=function(t,r){if(void 0===r&&(r={}),null==t||"object"!=typeof t)throw new k("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new n({values:dn(t,n.normalizeUnit),loc:ct.fromObject(r),conversionAccuracy:r.conversionAccuracy})},n.fromISO=function(t,r){var e=function(n){return lt(n,[It,Ot])}(t)[0];return e?n.fromObject(e,r):n.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},n.fromISOTime=function(t,r){var e=function(n){return lt(n,[Dt,Pt])}(t)[0];return e?n.fromObject(e,r):n.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},n.invalid=function(t,r){if(void 0===r&&(r=null),!t)throw new k("need to specify a reason the Duration is invalid");var e=t instanceof Ln?t:new Ln(t,r);if(Qn.throwOnInvalid)throw new m(e);return new n({invalid:e})},n.normalizeUnit=function(n){var t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[n?n.toLowerCase():n];if(!t)throw new g(n);return t},n.isDuration=function(n){return n&&n.isLuxonDuration||!1};var t=n.prototype;return t.toFormat=function(n,t){void 0===t&&(t={});var r=i({},t,{floor:!1!==t.round&&!1!==t.floor});return this.isValid?_n.create(this.loc,r).formatDurationFromString(this,n):"Invalid Duration"},t.toObject=function(){return this.isValid?i({},this.values):{}},t.toISO=function(){if(!this.isValid)return null;var n="P";return 0!==this.years&&(n+=this.years+"Y"),0===this.months&&0===this.quarters||(n+=this.months+3*this.quarters+"M"),0!==this.weeks&&(n+=this.weeks+"W"),0!==this.days&&(n+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(n+="T"),0!==this.hours&&(n+=this.hours+"H"),0!==this.minutes&&(n+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(n+=rn(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===n&&(n+="T0S"),n},t.toISOTime=function(n){if(void 0===n&&(n={}),!this.isValid)return null;var t=this.toMillis();if(t<0||t>=864e5)return null;n=i({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},n);var r=this.shiftTo("hours","minutes","seconds","milliseconds"),e="basic"===n.format?"hhmm":"hh:mm";n.suppressSeconds&&0===r.seconds&&0===r.milliseconds||(e+="basic"===n.format?"ss":":ss",n.suppressMilliseconds&&0===r.milliseconds||(e+=".SSS"));var u=r.toFormat(e);return n.includePrefix&&(u="T"+u),u},t.toJSON=function(){return this.toISO()},t.toString=function(){return this.toISO()},t.toMillis=function(){return this.as("milliseconds")},t.valueOf=function(){return this.toMillis()},t.plus=function(n){if(!this.isValid)return this;for(var t,r=or(n),e={},i=l(tr);!(t=i()).done;){var u=t.value;(K(r.values,u)||K(this.values,u))&&(e[u]=r.get(u)+this.get(u))}return er(this,{values:e},!0)},t.minus=function(n){if(!this.isValid)return this;var t=or(n);return this.plus(t.negate())},t.mapUnits=function(n){if(!this.isValid)return this;for(var t={},r=0,e=Object.keys(this.values);r<e.length;r++){var i=e[r];t[i]=ln(n(this.values[i],i))}return er(this,{values:t},!0)},t.get=function(t){return this[n.normalizeUnit(t)]},t.set=function(t){return this.isValid?er(this,{values:i({},this.values,dn(t,n.normalizeUnit))}):this},t.reconfigure=function(n){var t=void 0===n?{}:n,r=t.conversionAccuracy,e={loc:this.loc.clone({locale:t.locale,numberingSystem:t.numberingSystem})};return r&&(e.conversionAccuracy=r),er(this,e)},t.as=function(n){return this.isValid?this.shiftTo(n).get(n):NaN},t.normalize=function(){if(!this.isValid)return this;var n=this.toObject();return function(n,t){rr.reduce((function(r,e){return Y(t[e])?r:(r&&ir(n,t,r,t,e),e)}),null)}(this.matrix,n),er(this,{values:n},!0)},t.shiftTo=function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];if(!this.isValid)return this;if(0===r.length)return this;r=r.map((function(t){return n.normalizeUnit(t)}));for(var i,u,o={},s={},a=this.toObject(),c=l(tr);!(u=c()).done;){var h=u.value;if(r.indexOf(h)>=0){i=h;var f=0;for(var d in s)f+=this.matrix[d][h]*s[d],s[d]=0;P(a[h])&&(f+=a[h]);var v=Math.trunc(f);for(var y in o[h]=v,s[h]=f-v,a)tr.indexOf(y)>tr.indexOf(h)&&ir(this.matrix,a,y,o,h)}else P(a[h])&&(s[h]=a[h])}for(var m in s)0!==s[m]&&(o[i]+=m===i?s[m]:s[m]/this.matrix[i][m]);return er(this,{values:o},!0).normalize()},t.negate=function(){if(!this.isValid)return this;for(var n={},t=0,r=Object.keys(this.values);t<r.length;t++){var e=r[t];n[e]=-this.values[e]}return er(this,{values:n},!0)},t.equals=function(n){if(!this.isValid||!n.isValid)return!1;if(!this.loc.equals(n.loc))return!1;for(var t,r=l(tr);!(t=r()).done;){var e=t.value;if(u=n.values[e],!(void 0===(i=this.values[e])||0===i?void 0===u||0===u:i===u))return!1}var i,u;return!0},e(n,[{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"years",get:function(){return this.isValid?this.values.years||0:NaN}},{key:"quarters",get:function(){return this.isValid?this.values.quarters||0:NaN}},{key:"months",get:function(){return this.isValid?this.values.months||0:NaN}},{key:"weeks",get:function(){return this.isValid?this.values.weeks||0:NaN}},{key:"days",get:function(){return this.isValid?this.values.days||0:NaN}},{key:"hours",get:function(){return this.isValid?this.values.hours||0:NaN}},{key:"minutes",get:function(){return this.isValid?this.values.minutes||0:NaN}},{key:"seconds",get:function(){return this.isValid?this.values.seconds||0:NaN}},{key:"milliseconds",get:function(){return this.isValid?this.values.milliseconds||0:NaN}},{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),n}();function or(n){if(P(n))return ur.fromMillis(n);if(ur.isDuration(n))return n;if("object"==typeof n)return ur.fromObject(n);throw new k("Unknown duration argument "+n+" of type "+typeof n)}var sr="Invalid Interval";function ar(n,t){return n&&n.isValid?t&&t.isValid?t<n?cr.invalid("end before start","The end of an interval must be after its start, but you had start="+n.toISO()+" and end="+t.toISO()):null:cr.invalid("missing or invalid end"):cr.invalid("missing or invalid start")}var cr=function(){function n(n){this.s=n.start,this.e=n.end,this.invalid=n.invalid||null,this.isLuxonInterval=!0}n.invalid=function(t,r){if(void 0===r&&(r=null),!t)throw new k("need to specify a reason the Interval is invalid");var e=t instanceof Ln?t:new Ln(t,r);if(Qn.throwOnInvalid)throw new y(e);return new n({invalid:e})},n.fromDateTimes=function(t,r){var e=ae(t),i=ae(r),u=ar(e,i);return null==u?new n({start:e,end:i}):u},n.after=function(t,r){var e=or(r),i=ae(t);return n.fromDateTimes(i,i.plus(e))},n.before=function(t,r){var e=or(r),i=ae(t);return n.fromDateTimes(i.minus(e),i)},n.fromISO=function(t,r){var e=(t||"").split("/",2),i=e[0],u=e[1];if(i&&u){var o,s,a,c;try{s=(o=se.fromISO(i,r)).isValid}catch(u){s=!1}try{c=(a=se.fromISO(u,r)).isValid}catch(u){c=!1}if(s&&c)return n.fromDateTimes(o,a);if(s){var h=ur.fromISO(u,r);if(h.isValid)return n.after(o,h)}else if(c){var f=ur.fromISO(i,r);if(f.isValid)return n.before(a,f)}}return n.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},n.isInterval=function(n){return n&&n.isLuxonInterval||!1};var t=n.prototype;return t.length=function(n){return void 0===n&&(n="milliseconds"),this.isValid?this.toDuration.apply(this,[n]).get(n):NaN},t.count=function(n){if(void 0===n&&(n="milliseconds"),!this.isValid)return NaN;var t=this.start.startOf(n),r=this.end.startOf(n);return Math.floor(r.diff(t,n).get(n))+1},t.hasSame=function(n){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,n))},t.isEmpty=function(){return this.s.valueOf()===this.e.valueOf()},t.isAfter=function(n){return!!this.isValid&&this.s>n},t.isBefore=function(n){return!!this.isValid&&this.e<=n},t.contains=function(n){return!!this.isValid&&this.s<=n&&this.e>n},t.set=function(t){var r=void 0===t?{}:t;return this.isValid?n.fromDateTimes(r.start||this.s,r.end||this.e):this},t.splitAt=function(){var t=this;if(!this.isValid)return[];for(var r=arguments.length,e=new Array(r),i=0;i<r;i++)e[i]=arguments[i];for(var u=e.map(ae).filter((function(n){return t.contains(n)})).sort(),o=[],s=this.s,a=0;s<this.e;){var c=u[a]||this.e,h=+c>+this.e?this.e:c;o.push(n.fromDateTimes(s,h)),s=h,a+=1}return o},t.splitBy=function(t){var r=or(t);if(!this.isValid||!r.isValid||0===r.as("milliseconds"))return[];for(var e,i=this.s,u=1,o=[];i<this.e;){var s=this.start.plus(r.mapUnits((function(n){return n*u})));o.push(n.fromDateTimes(i,e=+s>+this.e?this.e:s)),i=e,u+=1}return o},t.divideEqually=function(n){return this.isValid?this.splitBy(this.length()/n).slice(0,n):[]},t.overlaps=function(n){return this.e>n.s&&this.s<n.e},t.abutsStart=function(n){return!!this.isValid&&+this.e==+n.s},t.abutsEnd=function(n){return!!this.isValid&&+n.e==+this.s},t.engulfs=function(n){return!!this.isValid&&this.s<=n.s&&this.e>=n.e},t.equals=function(n){return!(!this.isValid||!n.isValid)&&this.s.equals(n.s)&&this.e.equals(n.e)},t.intersection=function(t){if(!this.isValid)return this;var r=this.s>t.s?this.s:t.s,e=this.e<t.e?this.e:t.e;return r>=e?null:n.fromDateTimes(r,e)},t.union=function(t){return this.isValid?n.fromDateTimes(this.s<t.s?this.s:t.s,this.e>t.e?this.e:t.e):this},n.merge=function(n){var t=n.sort((function(n,t){return n.s-t.s})).reduce((function(n,t){var r=n[0],e=n[1];return e?e.overlaps(t)||e.abutsStart(t)?[r,e.union(t)]:[r.concat([e]),t]:[r,t]}),[[],null]),r=t[0],e=t[1];return e&&r.push(e),r},n.xor=function(t){for(var r,e,i=null,u=0,o=[],s=t.map((function(n){return[{time:n.s,type:"s"},{time:n.e,type:"e"}]})),a=l((r=Array.prototype).concat.apply(r,s).sort((function(n,t){return n.time-t.time})));!(e=a()).done;){var c=e.value;1===(u+="s"===c.type?1:-1)?i=c.time:(i&&+i!=+c.time&&o.push(n.fromDateTimes(i,c.time)),i=null)}return n.merge(o)},t.difference=function(){for(var t=this,r=arguments.length,e=new Array(r),i=0;i<r;i++)e[i]=arguments[i];return n.xor([this].concat(e)).map((function(n){return t.intersection(n)})).filter((function(n){return n&&!n.isEmpty()}))},t.toString=function(){return this.isValid?"["+this.s.toISO()+" – "+this.e.toISO()+")":sr},t.toISO=function(n){return this.isValid?this.s.toISO(n)+"/"+this.e.toISO(n):sr},t.toISODate=function(){return this.isValid?this.s.toISODate()+"/"+this.e.toISODate():sr},t.toISOTime=function(n){return this.isValid?this.s.toISOTime(n)+"/"+this.e.toISOTime(n):sr},t.toFormat=function(n,t){var r=(void 0===t?{}:t).separator,e=void 0===r?" – ":r;return this.isValid?""+this.s.toFormat(n)+e+this.e.toFormat(n):sr},t.toDuration=function(n,t){return this.isValid?this.e.diff(this.s,n,t):ur.invalid(this.invalidReason)},t.mapEndpoints=function(t){return n.fromDateTimes(t(this.s),t(this.e))},e(n,[{key:"start",get:function(){return this.isValid?this.s:null}},{key:"end",get:function(){return this.isValid?this.e:null}},{key:"isValid",get:function(){return null===this.invalidReason}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),n}(),hr=function(){function n(){}return n.hasDST=function(n){void 0===n&&(n=Qn.defaultZone);var t=se.now().setZone(n).set({month:12});return!n.isUniversal&&t.offset!==t.set({month:6}).offset},n.isValidIANAZone=function(n){return Rn.isValidSpecifier(n)&&Rn.isValidZone(n)},n.normalizeZone=function(n){return Un(n,Qn.defaultZone)},n.months=function(n,t){void 0===n&&(n="long");var r=void 0===t?{}:t,e=r.locale,i=r.numberingSystem,u=r.locObj,o=r.outputCalendar;return((void 0===u?null:u)||ct.create(void 0===e?null:e,void 0===i?null:i,void 0===o?"gregory":o)).months(n)},n.monthsFormat=function(n,t){void 0===n&&(n="long");var r=void 0===t?{}:t,e=r.locale,i=r.numberingSystem,u=r.locObj,o=r.outputCalendar;return((void 0===u?null:u)||ct.create(void 0===e?null:e,void 0===i?null:i,void 0===o?"gregory":o)).months(n,!0)},n.weekdays=function(n,t){void 0===n&&(n="long");var r=void 0===t?{}:t,e=r.locale,i=r.numberingSystem,u=r.locObj;return((void 0===u?null:u)||ct.create(void 0===e?null:e,void 0===i?null:i,null)).weekdays(n)},n.weekdaysFormat=function(n,t){void 0===n&&(n="long");var r=void 0===t?{}:t,e=r.locale,i=r.numberingSystem,u=r.locObj;return((void 0===u?null:u)||ct.create(void 0===e?null:e,void 0===i?null:i,null)).weekdays(n,!0)},n.meridiems=function(n){var t=(void 0===n?{}:n).locale;return ct.create(void 0===t?null:t).meridiems()},n.eras=function(n,t){void 0===n&&(n="short");var r=(void 0===t?{}:t).locale;return ct.create(void 0===r?null:r,null,"gregory").eras(n)},n.features=function(){return{relative:V()}},n}();function fr(n,t){var r=function(n){return n.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf()},e=r(t)-r(n);return Math.floor(ur.fromMillis(e).as("days"))}var lr={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},dr={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},vr=lr.hanidec.replace(/[\[|\]]/g,"").split("");function yr(n,t){return void 0===t&&(t=""),new RegExp(""+lr[n.numberingSystem||"latn"]+t)}function mr(n,t){return void 0===t&&(t=function(n){return n}),{regex:n,deser:function(n){return t(function(n){var t=parseInt(n,10);if(isNaN(t)){t="";for(var r=0;r<n.length;r++){var e=n.charCodeAt(r);if(-1!==n[r].search(lr.hanidec))t+=vr.indexOf(n[r]);else for(var i in dr){var u=dr[i],o=u[0];e>=o&&e<=u[1]&&(t+=e-o)}}return parseInt(t,10)}return t}(n[0]))}}}var wr="( |"+String.fromCharCode(160)+")",gr=new RegExp(wr,"g");function kr(n){return n.replace(/\./g,"\\.?").replace(gr,wr)}function Mr(n){return n.replace(/\./g,"").replace(gr," ").toLowerCase()}function pr(n,t){return null===n?null:{regex:RegExp(n.map(kr).join("|")),deser:function(r){var e=r[0];return n.findIndex((function(n){return Mr(e)===Mr(n)}))+t}}}function br(n,t){return{regex:n,deser:function(n){return fn(n[1],n[2])},groups:t}}function Tr(n){return{regex:n,deser:function(n){return n[0]}}}var Nr={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}},Er=null;function Sr(n,t,r){var e=function(n,t){var r;return(r=Array.prototype).concat.apply(r,n.map((function(n){return function(n,t){if(n.literal)return n;var r=_n.macroTokenToFormatOpts(n.val);if(!r)return n;var e=_n.create(t,r).formatDateTimeParts((Er||(Er=se.fromMillis(1555555555555)),Er)).map((function(n){return function(n,t,r){var e=n.type;if("literal"===e)return{literal:!0,val:n.value};var i=Nr[e];return"object"==typeof i&&(i=i[r[e]]),i?{literal:!1,val:i}:void 0}(n,0,r)}));return e.includes(void 0)?n:e}(n,t)})))}(_n.parseFormat(r),n),i=e.map((function(t){return r=t,i=yr(e=n),u=yr(e,"{2}"),o=yr(e,"{3}"),s=yr(e,"{4}"),a=yr(e,"{6}"),c=yr(e,"{1,2}"),h=yr(e,"{1,3}"),f=yr(e,"{1,6}"),l=yr(e,"{1,9}"),d=yr(e,"{2,4}"),v=yr(e,"{4,6}"),y=function(n){return{regex:RegExp((t=n.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:function(n){return n[0]},literal:!0};var t},(m=function(n){if(r.literal)return y(n);switch(n.val){case"G":return pr(e.eras("short",!1),0);case"GG":return pr(e.eras("long",!1),0);case"y":return mr(f);case"yy":return mr(d,cn);case"yyyy":return mr(s);case"yyyyy":return mr(v);case"yyyyyy":return mr(a);case"M":return mr(c);case"MM":return mr(u);case"MMM":return pr(e.months("short",!0,!1),1);case"MMMM":return pr(e.months("long",!0,!1),1);case"L":return mr(c);case"LL":return mr(u);case"LLL":return pr(e.months("short",!1,!1),1);case"LLLL":return pr(e.months("long",!1,!1),1);case"d":return mr(c);case"dd":return mr(u);case"o":return mr(h);case"ooo":return mr(o);case"HH":return mr(u);case"H":return mr(c);case"hh":return mr(u);case"h":return mr(c);case"mm":return mr(u);case"m":case"q":return mr(c);case"qq":return mr(u);case"s":return mr(c);case"ss":return mr(u);case"S":return mr(h);case"SSS":return mr(o);case"u":return Tr(l);case"a":return pr(e.meridiems(),0);case"kkkk":return mr(s);case"kk":return mr(d,cn);case"W":return mr(c);case"WW":return mr(u);case"E":case"c":return mr(i);case"EEE":return pr(e.weekdays("short",!1,!1),1);case"EEEE":return pr(e.weekdays("long",!1,!1),1);case"ccc":return pr(e.weekdays("short",!0,!1),1);case"cccc":return pr(e.weekdays("long",!0,!1),1);case"Z":case"ZZ":return br(new RegExp("([+-]"+c.source+")(?::("+u.source+"))?"),2);case"ZZZ":return br(new RegExp("([+-]"+c.source+")("+u.source+")?"),2);case"z":return Tr(/[a-z_+-/]{1,256}?/i);default:return y(n)}}(r)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"}).token=r,m;var r,e,i,u,o,s,a,c,h,f,l,d,v,y,m})),u=i.find((function(n){return n.invalidReason}));if(u)return{input:t,tokens:e,invalidReason:u.invalidReason};var o=function(n){return["^"+n.map((function(n){return n.regex})).reduce((function(n,t){return n+"("+t.source+")"}),"")+"$",n]}(i),s=o[1],a=RegExp(o[0],"i"),c=function(n,t,r){var e=n.match(t);if(e){var i={},u=1;for(var o in r)if(K(r,o)){var s=r[o],a=s.groups?s.groups+1:1;!s.literal&&s.token&&(i[s.token.val[0]]=s.deser(e.slice(u,u+a))),u+=a}return[e,i]}return[e,{}]}(t,a,s),h=c[0],f=c[1],l=f?function(n){var t;return t=Y(n.Z)?Y(n.z)?null:Rn.create(n.z):new zn(n.Z),Y(n.q)||(n.M=3*(n.q-1)+1),Y(n.h)||(n.h<12&&1===n.a?n.h+=12:12===n.h&&0===n.a&&(n.h=0)),0===n.G&&n.y&&(n.y=-n.y),Y(n.u)||(n.S=tn(n.u)),[Object.keys(n).reduce((function(t,r){var e=function(n){switch(n){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}}(r);return e&&(t[e]=n[r]),t}),{}),t]}(f):[null,null],d=l[0],v=l[1];if(K(f,"a")&&K(f,"H"))throw new w("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:e,regex:a,rawMatches:h,matches:f,result:d,zone:v}}var Dr=[0,31,59,90,120,151,181,212,243,273,304,334],Ir=[0,31,60,91,121,152,182,213,244,274,305,335];function Or(n,t){return new Ln("unit out of range","you specified "+t+" (of type "+typeof t+") as a "+n+", which is invalid")}function Ar(n,t,r){var e=new Date(Date.UTC(n,t-1,r)).getUTCDay();return 0===e?7:e}function Zr(n,t,r){return r+(en(n)?Ir:Dr)[t-1]}function _r(n,t){var r=en(n)?Ir:Dr,e=r.findIndex((function(n){return n<t}));return{month:e+1,day:t-r[e]}}function Lr(n){var t,r=n.year,e=n.month,u=n.day,o=Zr(r,e,u),s=Ar(r,e,u),a=Math.floor((o-s+10)/7);return a<1?a=an(t=r-1):a>an(r)?(t=r+1,a=1):t=r,i({weekYear:t,weekNumber:a,weekday:s},yn(n))}function xr(n){var t,r=n.weekYear,e=n.weekNumber,u=n.weekday,o=Ar(r,1,4),s=un(r),a=7*e+u-o-3;a<1?a+=un(t=r-1):a>s?(t=r+1,a-=un(r)):t=r;var c=_r(t,a);return i({year:t,month:c.month,day:c.day},yn(n))}function Fr(n){var t=n.year;return i({year:t,ordinal:Zr(t,n.month,n.day)},yn(n))}function jr(n){var t=n.year,r=_r(t,n.ordinal);return i({year:t,month:r.month,day:r.day},yn(n))}function Hr(n){var t=$(n.year),r=Q(n.month,1,12),e=Q(n.day,1,on(n.year,n.month));return t?r?!e&&Or("day",n.day):Or("month",n.month):Or("year",n.year)}function qr(n){var t=n.hour,r=n.minute,e=n.second,i=n.millisecond,u=Q(t,0,23)||24===t&&0===r&&0===e&&0===i,o=Q(r,0,59),s=Q(e,0,59),a=Q(i,0,999);return u?o?s?!a&&Or("millisecond",i):Or("second",e):Or("minute",r):Or("hour",t)}var Wr="Invalid DateTime",Cr=864e13;function Rr(n){return new Ln("unsupported zone",'the zone "'+n.name+'" is not supported')}function Gr(n){return null===n.weekData&&(n.weekData=Lr(n.c)),n.weekData}function zr(n,t){var r={ts:n.ts,zone:n.zone,c:n.c,o:n.o,loc:n.loc,invalid:n.invalid};return new se(i({},r,t,{old:r}))}function Jr(n,t,r){var e=n-60*t*1e3,i=r.offset(e);if(t===i)return[e,t];var u=r.offset(e-=60*(i-t)*1e3);return i===u?[e,i]:[n-60*Math.min(i,u)*1e3,Math.max(i,u)]}function Ur(n,t){var r=new Date(n+=60*t*1e3);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function Yr(n,t,r){return Jr(sn(n),t,r)}function Pr(n,t){var r=n.o,e=n.c.year+Math.trunc(t.years),u=n.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),o=i({},n.c,{year:e,month:u,day:Math.min(n.c.day,on(e,u))+Math.trunc(t.days)+7*Math.trunc(t.weeks)}),s=ur.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=Jr(sn(o),r,n.zone),c=a[0],h=a[1];return 0!==s&&(h=n.zone.offset(c+=s)),{ts:c,o:h}}function $r(n,t,r,e,u){var o=r.setZone,s=r.zone;if(n&&0!==Object.keys(n).length){var a=se.fromObject(n,i({},r,{zone:t||s,setZone:void 0}));return o?a:a.setZone(s)}return se.invalid(new Ln("unparsable",'the input "'+u+"\" can't be parsed as "+e))}function Vr(n,t,r){return void 0===r&&(r=!0),n.isValid?_n.create(ct.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(n,t):null}function Br(n,t){var r=t.suppressSeconds,e=t.suppressMilliseconds,i=t.includeOffset,u=t.includePrefix,o=void 0!==u&&u,s=t.includeZone,a=void 0!==s&&s,c=t.spaceZone,h=t.format,f=void 0===h?"extended":h,l="basic"===f?"HHmm":"HH:mm";void 0!==r&&r&&0===n.second&&0===n.millisecond||(l+="basic"===f?"ss":":ss",void 0!==e&&e&&0===n.millisecond||(l+=".SSS")),(a||i)&&void 0!==c&&c&&(l+=" "),a?l+="z":i&&(l+="basic"===f?"ZZZ":"ZZ");var d=Vr(n,l);return o&&(d="T"+d),d}var Kr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Qr={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Xr={ordinal:1,hour:0,minute:0,second:0,millisecond:0},ne=["year","month","day","hour","minute","second","millisecond"],te=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],re=["year","ordinal","hour","minute","second","millisecond"];function ee(n){var t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[n.toLowerCase()];if(!t)throw new g(n);return t}function ie(n,t){var r,e,i=Un(t.zone,Qn.defaultZone),u=ct.fromObject(t),o=Qn.now();if(Y(n.year))r=o;else{for(var s,a=l(ne);!(s=a()).done;){var c=s.value;Y(n[c])&&(n[c]=Kr[c])}var h=Hr(n)||qr(n);if(h)return se.invalid(h);var f=Yr(n,i.offset(o),i);r=f[0],e=f[1]}return new se({ts:r,zone:i,loc:u,o:e})}function ue(n,t,r){var e=!!Y(r.round)||r.round,i=function(n,i){return n=rn(n,e||r.calendary?0:2,!0),t.loc.clone(r).relFormatter(r).format(n,i)},u=function(e){return r.calendary?t.hasSame(n,e)?0:t.startOf(e).diff(n.startOf(e),e).get(e):t.diff(n,e).get(e)};if(r.unit)return i(u(r.unit),r.unit);for(var o,s=l(r.units);!(o=s()).done;){var a=o.value,c=u(a);if(Math.abs(c)>=1)return i(c,a)}return i(n>t?-0:0,r.units[r.units.length-1])}function oe(n){var t,r={};return n.length>0&&"object"==typeof n[n.length-1]?(r=n[n.length-1],t=Array.from(n).slice(0,n.length-1)):t=Array.from(n),[r,t]}var se=function(){function n(n){var t=n.zone||Qn.defaultZone,r=n.invalid||(Number.isNaN(n.ts)?new Ln("invalid input"):null)||(t.isValid?null:Rr(t));this.ts=Y(n.ts)?Qn.now():n.ts;var e=null,i=null;if(!r)if(n.old&&n.old.ts===this.ts&&n.old.zone.equals(t)){var u=[n.old.c,n.old.o];e=u[0],i=u[1]}else{var o=t.offset(this.ts);e=Ur(this.ts,o),e=(r=Number.isNaN(e.year)?new Ln("invalid input"):null)?null:e,i=r?null:o}this._zone=t,this.loc=n.loc||ct.create(),this.invalid=r,this.weekData=null,this.c=e,this.o=i,this.isLuxonDateTime=!0}n.now=function(){return new n({})},n.local=function(){var n=oe(arguments),t=n[0],r=n[1],e=r[0],i=r[1],u=r[2],o=r[3],s=r[4],a=r[5],c=r[6];return ie({year:e,month:i,day:u,hour:o,minute:s,second:a,millisecond:c},t)},n.utc=function(){var n=oe(arguments),t=n[0],r=n[1],e=r[0],i=r[1],u=r[2],o=r[3],s=r[4],a=r[5],c=r[6];return t.zone=zn.utcInstance,ie({year:e,month:i,day:u,hour:o,minute:s,second:a,millisecond:c},t)},n.fromJSDate=function(t,r){void 0===r&&(r={});var e="[object Date]"===Object.prototype.toString.call(t)?t.valueOf():NaN;if(Number.isNaN(e))return n.invalid("invalid input");var i=Un(r.zone,Qn.defaultZone);return i.isValid?new n({ts:e,zone:i,loc:ct.fromObject(r)}):n.invalid(Rr(i))},n.fromMillis=function(t,r){if(void 0===r&&(r={}),P(t))return t<-Cr||t>Cr?n.invalid("Timestamp out of range"):new n({ts:t,zone:Un(r.zone,Qn.defaultZone),loc:ct.fromObject(r)});throw new k("fromMillis requires a numerical input, but received a "+typeof t+" with value "+t)},n.fromSeconds=function(t,r){if(void 0===r&&(r={}),P(t))return new n({ts:1e3*t,zone:Un(r.zone,Qn.defaultZone),loc:ct.fromObject(r)});throw new k("fromSeconds requires a numerical input")},n.fromObject=function(t,r){void 0===r&&(r={}),t=t||{};var e=Un(r.zone,Qn.defaultZone);if(!e.isValid)return n.invalid(Rr(e));var i=Qn.now(),u=e.offset(i),o=dn(t,ee),s=!Y(o.ordinal),a=!Y(o.year),c=!Y(o.month)||!Y(o.day),h=a||c,f=o.weekYear||o.weekNumber,d=ct.fromObject(r);if((h||s)&&f)throw new w("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&s)throw new w("Can't mix ordinal dates with month/day");var v,y,m=f||o.weekday&&!h,g=Ur(i,u);m?(v=te,y=Qr,g=Lr(g)):s?(v=re,y=Xr,g=Fr(g)):(v=ne,y=Kr);for(var k,M=!1,p=l(v);!(k=p()).done;){var b=k.value;Y(o[b])?o[b]=M?y[b]:g[b]:M=!0}var T=(m?function(n){var t=$(n.weekYear),r=Q(n.weekNumber,1,an(n.weekYear)),e=Q(n.weekday,1,7);return t?r?!e&&Or("weekday",n.weekday):Or("week",n.week):Or("weekYear",n.weekYear)}(o):s?function(n){var t=$(n.year),r=Q(n.ordinal,1,un(n.year));return t?!r&&Or("ordinal",n.ordinal):Or("year",n.year)}(o):Hr(o))||qr(o);if(T)return n.invalid(T);var N=Yr(m?xr(o):s?jr(o):o,u,e),E=new n({ts:N[0],zone:e,o:N[1],loc:d});return o.weekday&&h&&t.weekday!==E.weekday?n.invalid("mismatched weekday","you can't specify both a weekday of "+o.weekday+" and a date of "+E.toISO()):E},n.fromISO=function(n,t){void 0===t&&(t={});var r=function(n){return lt(n,[Wt,zt],[Ct,Jt],[Rt,Ut],[Gt,Yt])}(n);return $r(r[0],r[1],t,"ISO 8601",n)},n.fromRFC2822=function(n,t){void 0===t&&(t={});var r=function(n){return lt(function(n){return n.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(n),[_t,Lt])}(n);return $r(r[0],r[1],t,"RFC 2822",n)},n.fromHTTP=function(n,t){void 0===t&&(t={});var r=function(n){return lt(n,[xt,Ht],[Ft,Ht],[jt,qt])}(n);return $r(r[0],r[1],t,"HTTP",t)},n.fromFormat=function(t,r,e){if(void 0===e&&(e={}),Y(t)||Y(r))throw new k("fromFormat requires an input string and a format");var i,u,o=e.locale,s=e.numberingSystem,a=(i=ct.fromOpts({locale:void 0===o?null:o,numberingSystem:void 0===s?null:s,defaultToEN:!0}),[(u=Sr(i,t,r)).result,u.zone,u.invalidReason]),c=a[0],h=a[1],f=a[2];return f?n.invalid(f):$r(c,h,e,"format "+r,t)},n.fromString=function(t,r,e){return void 0===e&&(e={}),n.fromFormat(t,r,e)},n.fromSQL=function(n,t){void 0===t&&(t={});var r=function(n){return lt(n,[$t,Bt],[Vt,Kt])}(n);return $r(r[0],r[1],t,"SQL",n)},n.invalid=function(t,r){if(void 0===r&&(r=null),!t)throw new k("need to specify a reason the DateTime is invalid");var e=t instanceof Ln?t:new Ln(t,r);if(Qn.throwOnInvalid)throw new v(e);return new n({invalid:e})},n.isDateTime=function(n){return n&&n.isLuxonDateTime||!1};var t=n.prototype;return t.get=function(n){return this[n]},t.resolvedLocaleOptions=function(n){void 0===n&&(n={});var t=_n.create(this.loc.clone(n),n).resolvedOptions(this);return{locale:t.locale,numberingSystem:t.numberingSystem,outputCalendar:t.calendar}},t.toUTC=function(n,t){return void 0===n&&(n=0),void 0===t&&(t={}),this.setZone(zn.instance(n),t)},t.toLocal=function(){return this.setZone(Qn.defaultZone)},t.setZone=function(t,r){var e=void 0===r?{}:r,i=e.keepLocalTime,u=void 0!==i&&i,o=e.keepCalendarTime,s=void 0!==o&&o;if((t=Un(t,Qn.defaultZone)).equals(this.zone))return this;if(t.isValid){var a=this.ts;if(u||s){var c=t.offset(this.ts);a=Yr(this.toObject(),c,t)[0]}return zr(this,{ts:a,zone:t})}return n.invalid(Rr(t))},t.reconfigure=function(n){var t=void 0===n?{}:n;return zr(this,{loc:this.loc.clone({locale:t.locale,numberingSystem:t.numberingSystem,outputCalendar:t.outputCalendar})})},t.setLocale=function(n){return this.reconfigure({locale:n})},t.set=function(n){if(!this.isValid)return this;var t,r=dn(n,ee),e=!Y(r.weekYear)||!Y(r.weekNumber)||!Y(r.weekday),u=!Y(r.ordinal),o=!Y(r.year),s=!Y(r.month)||!Y(r.day);if((o||s||u)&&(r.weekYear||r.weekNumber))throw new w("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&u)throw new w("Can't mix ordinal dates with month/day");e?t=xr(i({},Lr(this.c),r)):Y(r.ordinal)?(t=i({},this.toObject(),r),Y(r.day)&&(t.day=Math.min(on(t.year,t.month),t.day))):t=jr(i({},Fr(this.c),r));var a=Yr(t,this.o,this.zone);return zr(this,{ts:a[0],o:a[1]})},t.plus=function(n){return this.isValid?zr(this,Pr(this,or(n))):this},t.minus=function(n){return this.isValid?zr(this,Pr(this,or(n).negate())):this},t.startOf=function(n){if(!this.isValid)return this;var t={},r=ur.normalizeUnit(n);switch(r){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===r&&(t.weekday=1),"quarters"===r){var e=Math.ceil(this.month/3);t.month=3*(e-1)+1}return this.set(t)},t.endOf=function(n){var t;return this.isValid?this.plus((t={},t[n]=1,t)).startOf(n).minus(1):this},t.toFormat=function(n,t){return void 0===t&&(t={}),this.isValid?_n.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,n):Wr},t.toLocaleString=function(n,t){return void 0===n&&(n=N),void 0===t&&(t={}),this.isValid?_n.create(this.loc.clone(t),n).formatDateTime(this):Wr},t.toLocaleParts=function(n){return void 0===n&&(n={}),this.isValid?_n.create(this.loc.clone(n),n).formatDateTimeParts(this):[]},t.toISO=function(n){return void 0===n&&(n={}),this.isValid?this.toISODate(n)+"T"+this.toISOTime(n):null},t.toISODate=function(n){var t=(void 0===n?{}:n).format,r="basic"===(void 0===t?"extended":t)?"yyyyMMdd":"yyyy-MM-dd";return this.year>9999&&(r="+"+r),Vr(this,r)},t.toISOWeekDate=function(){return Vr(this,"kkkk-'W'WW-c")},t.toISOTime=function(n){var t=void 0===n?{}:n,r=t.suppressMilliseconds,e=t.suppressSeconds,i=t.includeOffset,u=t.includePrefix,o=t.format;return Br(this,{suppressSeconds:void 0!==e&&e,suppressMilliseconds:void 0!==r&&r,includeOffset:void 0===i||i,includePrefix:void 0!==u&&u,format:void 0===o?"extended":o})},t.toRFC2822=function(){return Vr(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},t.toHTTP=function(){return Vr(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},t.toSQLDate=function(){return Vr(this,"yyyy-MM-dd")},t.toSQLTime=function(n){var t=void 0===n?{}:n,r=t.includeOffset,e=t.includeZone;return Br(this,{includeOffset:void 0===r||r,includeZone:void 0!==e&&e,spaceZone:!0})},t.toSQL=function(n){return void 0===n&&(n={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(n):null},t.toString=function(){return this.isValid?this.toISO():Wr},t.valueOf=function(){return this.toMillis()},t.toMillis=function(){return this.isValid?this.ts:NaN},t.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},t.toJSON=function(){return this.toISO()},t.toBSON=function(){return this.toJSDate()},t.toObject=function(n){if(void 0===n&&(n={}),!this.isValid)return{};var t=i({},this.c);return n.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},t.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},t.diff=function(n,t,r){if(void 0===t&&(t="milliseconds"),void 0===r&&(r={}),!this.isValid||!n.isValid)return ur.invalid("created by diffing an invalid DateTime");var e,u=i({locale:this.locale,numberingSystem:this.numberingSystem},r),o=(e=t,Array.isArray(e)?e:[e]).map(ur.normalizeUnit),s=n.valueOf()>this.valueOf(),a=function(n,t,r,e){var i,u=function(n,t,r){for(var e,i,u={},o=0,s=[["years",function(n,t){return t.year-n.year}],["quarters",function(n,t){return t.quarter-n.quarter}],["months",function(n,t){return t.month-n.month+12*(t.year-n.year)}],["weeks",function(n,t){var r=fr(n,t);return(r-r%7)/7}],["days",fr]];o<s.length;o++){var a=s[o],c=a[0],h=a[1];if(r.indexOf(c)>=0){var f;e=c;var l,d=h(n,t);(i=n.plus(((f={})[c]=d,f)))>t?(n=n.plus(((l={})[c]=d-1,l)),d-=1):n=i,u[c]=d}}return[n,u,i,e]}(n,t,r),o=u[0],s=u[1],a=u[2],c=u[3],h=t-o,f=r.filter((function(n){return["hours","minutes","seconds","milliseconds"].indexOf(n)>=0}));0===f.length&&(a<t&&(a=o.plus(((i={})[c]=1,i))),a!==o&&(s[c]=(s[c]||0)+h/(a-o)));var l,d=ur.fromObject(s,e);return f.length>0?(l=ur.fromMillis(h,e)).shiftTo.apply(l,f).plus(d):d}(s?this:n,s?n:this,o,u);return s?a.negate():a},t.diffNow=function(t,r){return void 0===t&&(t="milliseconds"),void 0===r&&(r={}),this.diff(n.now(),t,r)},t.until=function(n){return this.isValid?cr.fromDateTimes(this,n):this},t.hasSame=function(n,t){if(!this.isValid)return!1;var r=n.valueOf(),e=this.setZone(n.zone,{keepLocalTime:!0});return e.startOf(t)<=r&&r<=e.endOf(t)},t.equals=function(n){return this.isValid&&n.isValid&&this.valueOf()===n.valueOf()&&this.zone.equals(n.zone)&&this.loc.equals(n.loc)},t.toRelative=function(t){if(void 0===t&&(t={}),!this.isValid)return null;var r=t.base||n.fromObject({},{zone:this.zone}),e=t.padding?this<r?-t.padding:t.padding:0,u=["years","months","days","hours","minutes","seconds"],o=t.unit;return Array.isArray(t.unit)&&(u=t.unit,o=void 0),ue(r,this.plus(e),i({},t,{numeric:"always",units:u,unit:o}))},t.toRelativeCalendar=function(t){return void 0===t&&(t={}),this.isValid?ue(t.base||n.fromObject({},{zone:this.zone}),this,i({},t,{numeric:"auto",units:["years","months","days"],calendary:!0})):null},n.min=function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];if(!r.every(n.isDateTime))throw new k("min requires all arguments be DateTimes");return B(r,(function(n){return n.valueOf()}),Math.min)},n.max=function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];if(!r.every(n.isDateTime))throw new k("max requires all arguments be DateTimes");return B(r,(function(n){return n.valueOf()}),Math.max)},n.fromFormatExplain=function(n,t,r){void 0===r&&(r={});var e=r.locale,i=r.numberingSystem;return Sr(ct.fromOpts({locale:void 0===e?null:e,numberingSystem:void 0===i?null:i,defaultToEN:!0}),n,t)},n.fromStringExplain=function(t,r,e){return void 0===e&&(e={}),n.fromFormatExplain(t,r,e)},e(n,[{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}},{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"outputCalendar",get:function(){return this.isValid?this.loc.outputCalendar:null}},{key:"zone",get:function(){return this._zone}},{key:"zoneName",get:function(){return this.isValid?this.zone.name:null}},{key:"year",get:function(){return this.isValid?this.c.year:NaN}},{key:"quarter",get:function(){return this.isValid?Math.ceil(this.c.month/3):NaN}},{key:"month",get:function(){return this.isValid?this.c.month:NaN}},{key:"day",get:function(){return this.isValid?this.c.day:NaN}},{key:"hour",get:function(){return this.isValid?this.c.hour:NaN}},{key:"minute",get:function(){return this.isValid?this.c.minute:NaN}},{key:"second",get:function(){return this.isValid?this.c.second:NaN}},{key:"millisecond",get:function(){return this.isValid?this.c.millisecond:NaN}},{key:"weekYear",get:function(){return this.isValid?Gr(this).weekYear:NaN}},{key:"weekNumber",get:function(){return this.isValid?Gr(this).weekNumber:NaN}},{key:"weekday",get:function(){return this.isValid?Gr(this).weekday:NaN}},{key:"ordinal",get:function(){return this.isValid?Fr(this.c).ordinal:NaN}},{key:"monthShort",get:function(){return this.isValid?hr.months("short",{locObj:this.loc})[this.month-1]:null}},{key:"monthLong",get:function(){return this.isValid?hr.months("long",{locObj:this.loc})[this.month-1]:null}},{key:"weekdayShort",get:function(){return this.isValid?hr.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}},{key:"weekdayLong",get:function(){return this.isValid?hr.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}},{key:"offset",get:function(){return this.isValid?+this.o:NaN}},{key:"offsetNameShort",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}},{key:"offsetNameLong",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}},{key:"isOffsetFixed",get:function(){return this.isValid?this.zone.isUniversal:null}},{key:"isInDST",get:function(){return!this.isOffsetFixed&&(this.offset>this.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return en(this.year)}},{key:"daysInMonth",get:function(){return on(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?un(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?an(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return N}},{key:"DATE_MED",get:function(){return E}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return S}},{key:"DATE_FULL",get:function(){return D}},{key:"DATE_HUGE",get:function(){return I}},{key:"TIME_SIMPLE",get:function(){return O}},{key:"TIME_WITH_SECONDS",get:function(){return A}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return Z}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return _}},{key:"TIME_24_SIMPLE",get:function(){return L}},{key:"TIME_24_WITH_SECONDS",get:function(){return x}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return F}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return j}},{key:"DATETIME_SHORT",get:function(){return H}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return q}},{key:"DATETIME_MED",get:function(){return W}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return C}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return R}},{key:"DATETIME_FULL",get:function(){return G}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return z}},{key:"DATETIME_HUGE",get:function(){return J}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return U}}]),n}();function ae(n){if(se.isDateTime(n))return n;if(n&&n.valueOf&&P(n.valueOf()))return se.fromJSDate(n);if(n&&"object"==typeof n)return se.fromObject(n);throw new k("Unknown datetime argument: "+n+", of type "+typeof n)}t.DateTime=se,t.Duration=ur,t.FixedOffsetZone=zn,t.IANAZone=Rn,t.Info=hr,t.Interval=cr,t.InvalidZone=Jn,t.Settings=Qn,t.SystemZone=jn,t.VERSION="2.0.1",t.Zone=xn}));export{t as l}
|