@justifi/webcomponents 4.6.4 → 4.7.0-rc.0
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/{Api-f76b337f.js → Api-548eaa62.js} +3 -17
- package/dist/cjs/Api-548eaa62.js.map +1 -0
- package/dist/cjs/Pagination-cae1dcbd.js +15 -0
- package/dist/cjs/Pagination-cae1dcbd.js.map +1 -0
- package/dist/cjs/{Payout-4906a445.js → Payout-68a99ee3.js} +22 -1
- package/dist/cjs/Payout-68a99ee3.js.map +1 -0
- package/dist/cjs/SubAccount-5d77adbf.js +109 -0
- package/dist/cjs/SubAccount-5d77adbf.js.map +1 -0
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +84 -0
- package/dist/cjs/additional-questions-details_5.cjs.entry.js.map +1 -0
- package/dist/cjs/{business-form-schema-725ec6f5.js → business-form-schema-fe831c30.js} +2 -2
- package/dist/cjs/business-form-schema-fe831c30.js.map +1 -0
- package/dist/cjs/form-1e732a9d.js +731 -0
- package/dist/cjs/form-1e732a9d.js.map +1 -0
- package/dist/cjs/form-control-datepart_2.cjs.entry.js +44 -20
- package/dist/cjs/form-control-datepart_2.cjs.entry.js.map +1 -1
- package/dist/cjs/form-control-monetary.cjs.entry.js +1 -1
- package/dist/cjs/form-control-number_3.cjs.entry.js +17 -32
- package/dist/cjs/form-control-number_3.cjs.entry.js.map +1 -1
- package/dist/cjs/helpers-c505d861.js +28 -0
- package/dist/cjs/helpers-c505d861.js.map +1 -0
- package/dist/cjs/{index-3533152c.js → index-ce7d512e.js} +5 -1
- package/dist/cjs/index-ce7d512e.js.map +1 -0
- package/dist/cjs/{index.esm-84a0a7a8.js → index.esm-91ec051e.js} +123 -1
- package/dist/cjs/index.esm-91ec051e.js.map +1 -0
- package/dist/cjs/{justifi-additional-questions_5.cjs.entry.js → justifi-additional-questions_6.cjs.entry.js} +41 -16
- package/dist/cjs/justifi-additional-questions_6.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-details.cjs.entry.js +76 -0
- package/dist/cjs/justifi-business-details.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-business-form-stepped.cjs.entry.js +130 -0
- package/dist/cjs/justifi-business-form-stepped.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-business-form.cjs.entry.js +12 -756
- package/dist/cjs/justifi-business-form.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-business-list.cjs.entry.js +36 -67
- package/dist/cjs/justifi-business-list.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-card-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-details.cjs.entry.js +4 -8
- package/dist/cjs/justifi-details.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +88 -0
- package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-payment-details.cjs.entry.js +8 -9
- package/dist/cjs/justifi-payment-details.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-payment-form.cjs.entry.js +4 -3
- package/dist/cjs/justifi-payment-form.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-payments-list.cjs.entry.js +22 -17
- package/dist/cjs/justifi-payments-list.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-payout-details.cjs.entry.js +8 -7
- package/dist/cjs/justifi-payout-details.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +23 -18
- package/dist/cjs/justifi-payouts-list.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js +23 -18
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-refund-form.cjs.entry.js +104 -0
- package/dist/cjs/justifi-refund-form.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-subaccount-details.cjs.entry.js +81 -0
- package/dist/cjs/justifi-subaccount-details.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +104 -0
- package/dist/cjs/justifi-subaccounts-list.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-table_2.cjs.entry.js +80 -0
- package/dist/cjs/justifi-table_2.cjs.entry.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/select-input_2.cjs.entry.js +1 -1
- package/dist/cjs/subaccount-account-details_4.cjs.entry.js +72 -0
- package/dist/cjs/subaccount-account-details_4.cjs.entry.js.map +1 -0
- package/dist/cjs/subaccount-bank-details.cjs.entry.js +24 -0
- package/dist/cjs/subaccount-bank-details.cjs.entry.js.map +1 -0
- package/dist/cjs/subaccount-terms-details.cjs.entry.js +24 -0
- package/dist/cjs/subaccount-terms-details.cjs.entry.js.map +1 -0
- package/dist/cjs/utils-aaa6ab8b.js +37 -0
- package/dist/cjs/utils-aaa6ab8b.js.map +1 -0
- package/dist/cjs/{utils-0fd61dbd.js → utils-d9cbe26f.js} +91 -18
- package/dist/cjs/utils-d9cbe26f.js.map +1 -0
- package/dist/cjs/webcomponents.cjs.js +2 -2
- package/dist/collection/api/Api.js +2 -16
- package/dist/collection/api/Api.js.map +1 -1
- package/dist/collection/api/Business.js +0 -2
- package/dist/collection/api/Business.js.map +1 -1
- package/dist/collection/api/Pagination.js +8 -8
- package/dist/collection/api/Pagination.js.map +1 -1
- package/dist/collection/api/Payment.js +20 -0
- package/dist/collection/api/Payment.js.map +1 -1
- package/dist/collection/api/SubAccount.js +104 -0
- package/dist/collection/api/SubAccount.js.map +1 -0
- package/dist/collection/api/mockData/MockOnboardingData.js +118 -0
- package/dist/collection/api/mockData/MockOnboardingData.js.map +1 -0
- package/dist/collection/api/mockData/MockSubAccount.js +103 -0
- package/dist/collection/api/mockData/MockSubAccount.js.map +1 -0
- package/dist/collection/assets/info-icon.svg +5 -0
- package/dist/collection/collection-manifest.json +19 -1
- package/dist/collection/components/bank-account-form/bank-account-form.stories.js +1 -9
- package/dist/collection/components/bank-account-form/bank-account-form.stories.js.map +1 -1
- package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.css +7341 -0
- package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +57 -0
- package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js.map +1 -0
- package/dist/collection/components/business-details/business-details.css +6439 -0
- package/dist/collection/components/business-details/business-details.js +127 -0
- package/dist/collection/components/business-details/business-details.js.map +1 -0
- package/dist/collection/components/business-details/business-details.stories.js +23 -0
- package/dist/collection/components/business-details/business-details.stories.js.map +1 -0
- package/dist/collection/components/business-details/generic-info-details/generic-info-details.css +7341 -0
- package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +50 -0
- package/dist/collection/components/business-details/generic-info-details/generic-info-details.js.map +1 -0
- package/dist/collection/components/business-details/legal-address-details/legal-address-details.css +7341 -0
- package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +49 -0
- package/dist/collection/components/business-details/legal-address-details/legal-address-details.js.map +1 -0
- package/dist/collection/components/business-details/owner-details/owner-details.css +7341 -0
- package/dist/collection/components/business-details/owner-details/owner-details.js +57 -0
- package/dist/collection/components/business-details/owner-details/owner-details.js.map +1 -0
- package/dist/collection/components/business-details/representative-details/representative-details.css +7341 -0
- package/dist/collection/components/business-details/representative-details/representative-details.js +58 -0
- package/dist/collection/components/business-details/representative-details/representative-details.js.map +1 -0
- package/dist/collection/components/business-form/additional-questions/additional-questions.js +1 -1
- package/dist/collection/components/business-form/additional-questions/additional-questions.js.map +1 -1
- package/dist/collection/components/business-form/business-form-schema.js +1 -1
- package/dist/collection/components/business-form/business-form-schema.js.map +1 -1
- package/dist/collection/components/business-form/business-form-stepped.css +7929 -0
- package/dist/collection/components/business-form/business-form-stepped.js +194 -0
- package/dist/collection/components/business-form/business-form-stepped.js.map +1 -0
- package/dist/collection/components/business-form/business-form-stepped.stories.js +131 -0
- package/dist/collection/components/business-form/business-form-stepped.stories.js.map +1 -0
- package/dist/collection/components/business-form/business-form.js +4 -24
- package/dist/collection/components/business-form/business-form.js.map +1 -1
- package/dist/collection/components/business-form/business-form.stories.js +20 -8
- package/dist/collection/components/business-form/business-form.stories.js.map +1 -1
- package/dist/collection/components/business-form/business-generic-info/business-generic-info.js +7 -5
- package/dist/collection/components/business-form/business-generic-info/business-generic-info.js.map +1 -1
- package/dist/collection/components/business-form/business-owners/business-owners.js +4 -5
- package/dist/collection/components/business-form/business-owners/business-owners.js.map +1 -1
- package/dist/collection/components/business-form/business-representative/business-representative-schema.js.map +1 -1
- package/dist/collection/components/business-form/business-representative/business-representative.js +1 -1
- package/dist/collection/components/business-form/business-representative/business-representative.js.map +1 -1
- package/dist/collection/components/business-form/helpers.js +23 -0
- package/dist/collection/components/business-form/helpers.js.map +1 -0
- package/dist/collection/components/business-form/legal-address-form/legal-address-form-schema.js.map +1 -0
- package/dist/collection/components/{legal-address-form → business-form/legal-address-form}/legal-address-form.js +3 -21
- package/dist/collection/components/business-form/legal-address-form/legal-address-form.js.map +1 -0
- package/dist/collection/components/business-list/business-list.js +70 -84
- package/dist/collection/components/business-list/business-list.js.map +1 -1
- package/dist/collection/components/business-list/business-list.stories.js +2 -2
- package/dist/collection/components/business-list/business-list.stories.js.map +1 -1
- package/dist/collection/components/card-form/card-form.stories.js +1 -9
- package/dist/collection/components/card-form/card-form.stories.js.map +1 -1
- package/dist/collection/components/details/details.js +2 -21
- package/dist/collection/components/details/details.js.map +1 -1
- package/dist/collection/components/details/utils.js +7 -8
- package/dist/collection/components/details/utils.js.map +1 -1
- package/dist/collection/components/form/form-control-number-masked.js +1 -1
- package/dist/collection/components/form/form-control-number-masked.js.map +1 -1
- package/dist/collection/components/form/form.js +4 -4
- package/dist/collection/components/form/form.js.map +1 -1
- package/dist/collection/components/pagination-menu/pagination-menu.js +78 -0
- package/dist/collection/components/pagination-menu/pagination-menu.js.map +1 -0
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.css +0 -0
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js +153 -0
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js.map +1 -0
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.stories.js +32 -0
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.stories.js.map +1 -0
- package/dist/collection/components/payment-details/payment-details.js +11 -6
- package/dist/collection/components/payment-details/payment-details.js.map +1 -1
- package/dist/collection/components/payment-details/payment-details.stories.js +3 -4
- package/dist/collection/components/payment-details/payment-details.stories.js.map +1 -1
- package/dist/collection/components/payment-form/payment-form.stories.js +2 -11
- package/dist/collection/components/payment-form/payment-form.stories.js.map +1 -1
- package/dist/collection/components/payment-method-form/payment-method-form.js +6 -6
- package/dist/collection/components/payment-method-form/payment-method-form.js.map +1 -1
- package/dist/collection/components/payment-method-form/test/payment-method-form.spec.js +14 -14
- package/dist/collection/components/payment-method-form/test/payment-method-form.spec.js.map +1 -1
- package/dist/collection/components/payments-list/payments-list.js +20 -13
- package/dist/collection/components/payments-list/payments-list.js.map +1 -1
- package/dist/collection/components/payments-list/payments-list.stories.js +3 -4
- package/dist/collection/components/payments-list/payments-list.stories.js.map +1 -1
- package/dist/collection/components/payout-details/payout-details.js +11 -3
- package/dist/collection/components/payout-details/payout-details.js.map +1 -1
- package/dist/collection/components/payout-details/payout-details.stories.js +3 -4
- package/dist/collection/components/payout-details/payout-details.stories.js.map +1 -1
- package/dist/collection/components/payouts-list/payouts-list.js +21 -14
- package/dist/collection/components/payouts-list/payouts-list.js.map +1 -1
- package/dist/collection/components/payouts-list/payouts-list.stories.js +3 -4
- package/dist/collection/components/payouts-list/payouts-list.stories.js.map +1 -1
- package/dist/collection/components/proceeds-list/proceeds-list.js +21 -14
- package/dist/collection/components/proceeds-list/proceeds-list.js.map +1 -1
- package/dist/collection/components/proceeds-list/proceeds-list.stories.js +2 -2
- package/dist/collection/components/proceeds-list/proceeds-list.stories.js.map +1 -1
- package/dist/collection/components/refund-form/refund-form-schema.js +14 -0
- package/dist/collection/components/refund-form/refund-form-schema.js.map +1 -0
- package/dist/collection/components/refund-form/refund-form.css +7785 -0
- package/dist/collection/components/refund-form/refund-form.js +228 -0
- package/dist/collection/components/refund-form/refund-form.js.map +1 -0
- package/dist/collection/components/refund-form/refund-form.stories.js +169 -0
- package/dist/collection/components/refund-form/refund-form.stories.js.map +1 -0
- package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.css +7345 -0
- package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js +71 -0
- package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js.map +1 -0
- package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.css +7345 -0
- package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js +49 -0
- package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js.map +1 -0
- package/dist/collection/components/subaccount-details/subaccount-details.css +7983 -0
- package/dist/collection/components/subaccount-details/subaccount-details.js +147 -0
- package/dist/collection/components/subaccount-details/subaccount-details.js.map +1 -0
- package/dist/collection/components/subaccount-details/subaccount-details.stories.js +25 -0
- package/dist/collection/components/subaccount-details/subaccount-details.stories.js.map +1 -0
- package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.css +7345 -0
- package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js +51 -0
- package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js.map +1 -0
- package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.css +7345 -0
- package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js +49 -0
- package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js.map +1 -0
- package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.css +7345 -0
- package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js +50 -0
- package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js.map +1 -0
- package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.css +7345 -0
- package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js +49 -0
- package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js.map +1 -0
- package/dist/collection/components/subaccount-details/test/subaccount-details.spec.js +22 -0
- package/dist/collection/components/subaccount-details/test/subaccount-details.spec.js.map +1 -0
- package/dist/collection/components/subaccounts-list/subaccounts-list.css +3 -0
- package/dist/collection/components/subaccounts-list/subaccounts-list.js +179 -0
- package/dist/collection/components/subaccounts-list/subaccounts-list.js.map +1 -0
- package/dist/collection/components/subaccounts-list/subaccounts-list.stories.js +69 -0
- package/dist/collection/components/subaccounts-list/subaccounts-list.stories.js.map +1 -0
- package/dist/collection/components/subaccounts-list/test/subaccounts-list.e2e.js +10 -0
- package/dist/collection/components/subaccounts-list/test/subaccounts-list.e2e.js.map +1 -0
- package/dist/collection/components/subaccounts-list/test/subaccounts-list.spec.js +34 -0
- package/dist/collection/components/subaccounts-list/test/subaccounts-list.spec.js.map +1 -0
- package/dist/collection/components/table/table.js +27 -12
- package/dist/collection/components/table/table.js.map +1 -1
- package/dist/collection/components/table/test/table.spec.js +2 -2
- package/dist/collection/components/table/test/table.spec.js.map +1 -1
- package/dist/collection/utils/utils.js +91 -17
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/Api.js +2 -16
- package/dist/components/Api.js.map +1 -1
- package/dist/components/Pagination.js +12 -0
- package/dist/components/Pagination.js.map +1 -0
- package/dist/components/Payout.js +21 -1
- package/dist/components/Payout.js.map +1 -1
- package/dist/components/SubAccount.js +107 -0
- package/dist/components/SubAccount.js.map +1 -0
- package/dist/components/additional-questions-details.d.ts +11 -0
- package/dist/components/additional-questions-details.js +8 -0
- package/dist/components/additional-questions-details.js.map +1 -0
- package/dist/{cjs/justifi-table.cjs.entry.js → components/additional-questions-details2.js} +30 -61
- package/dist/components/additional-questions-details2.js.map +1 -0
- package/dist/components/additional-questions.js +1 -1
- package/dist/components/additional-questions.js.map +1 -1
- package/dist/components/business-generic-info.js +2 -5
- package/dist/components/business-generic-info.js.map +1 -1
- package/dist/components/business-owners.js +4 -5
- package/dist/components/business-owners.js.map +1 -1
- package/dist/components/business-representative.js +1 -1
- package/dist/components/business-representative.js.map +1 -1
- package/dist/components/details.js +6 -33
- package/dist/components/details.js.map +1 -1
- package/dist/components/form-control-number-masked2.js +1 -1
- package/dist/components/form-control-number-masked2.js.map +1 -1
- package/dist/components/form.js +729 -0
- package/dist/components/form.js.map +1 -0
- package/dist/components/generic-info-details.d.ts +11 -0
- package/dist/components/generic-info-details.js +8 -0
- package/dist/components/generic-info-details.js.map +1 -0
- package/dist/components/generic-info-details2.js +38 -0
- package/dist/components/generic-info-details2.js.map +1 -0
- package/dist/components/helpers.js +26 -0
- package/dist/components/helpers.js.map +1 -0
- package/dist/components/index.esm.js +122 -1
- package/dist/components/index.esm.js.map +1 -1
- package/dist/components/justifi-business-details.d.ts +11 -0
- package/dist/components/justifi-business-details.js +126 -0
- package/dist/components/justifi-business-details.js.map +1 -0
- package/dist/components/justifi-business-form-stepped.d.ts +11 -0
- package/dist/components/justifi-business-form-stepped.js +221 -0
- package/dist/components/justifi-business-form-stepped.js.map +1 -0
- package/dist/components/justifi-business-form.js +6 -750
- package/dist/components/justifi-business-form.js.map +1 -1
- package/dist/components/justifi-business-list.js +42 -65
- package/dist/components/justifi-business-list.js.map +1 -1
- package/dist/components/justifi-payment-balance-transactions.d.ts +11 -0
- package/dist/components/justifi-payment-balance-transactions.js +123 -0
- package/dist/components/justifi-payment-balance-transactions.js.map +1 -0
- package/dist/components/justifi-payment-details.js +6 -6
- package/dist/components/justifi-payment-details.js.map +1 -1
- package/dist/components/justifi-payment-form.js +3 -2
- package/dist/components/justifi-payment-form.js.map +1 -1
- package/dist/components/justifi-payments-list.js +29 -16
- package/dist/components/justifi-payments-list.js.map +1 -1
- package/dist/components/justifi-payout-details.js +6 -4
- package/dist/components/justifi-payout-details.js.map +1 -1
- package/dist/components/justifi-payouts-list.js +30 -17
- package/dist/components/justifi-payouts-list.js.map +1 -1
- package/dist/components/justifi-proceeds-list.js +29 -16
- package/dist/components/justifi-proceeds-list.js.map +1 -1
- package/dist/components/justifi-refund-form.d.ts +11 -0
- package/dist/components/justifi-refund-form.js +139 -0
- package/dist/components/justifi-refund-form.js.map +1 -0
- package/dist/components/justifi-subaccount-details.d.ts +11 -0
- package/dist/components/justifi-subaccount-details.js +133 -0
- package/dist/components/justifi-subaccount-details.js.map +1 -0
- package/dist/components/justifi-subaccounts-list.d.ts +11 -0
- package/dist/components/justifi-subaccounts-list.js +138 -0
- package/dist/components/justifi-subaccounts-list.js.map +1 -0
- package/dist/components/legal-address-details.d.ts +11 -0
- package/dist/components/legal-address-details.js +8 -0
- package/dist/components/legal-address-details.js.map +1 -0
- package/dist/components/legal-address-details2.js +37 -0
- package/dist/components/legal-address-details2.js.map +1 -0
- package/dist/components/legal-address-form.js +1 -3
- package/dist/components/legal-address-form.js.map +1 -1
- package/dist/components/owner-details.d.ts +11 -0
- package/dist/components/owner-details.js +8 -0
- package/dist/components/owner-details.js.map +1 -0
- package/dist/components/owner-details2.js +37 -0
- package/dist/components/owner-details2.js.map +1 -0
- package/dist/components/pagination-menu.d.ts +11 -0
- package/dist/components/pagination-menu.js +8 -0
- package/dist/components/pagination-menu.js.map +1 -0
- package/dist/{esm/justifi-table.entry.js → components/pagination-menu2.js} +35 -55
- package/dist/components/pagination-menu2.js.map +1 -0
- package/dist/components/payment-method-form.js +5 -5
- package/dist/components/payment-method-form.js.map +1 -1
- package/dist/components/representative-details.d.ts +11 -0
- package/dist/components/representative-details.js +8 -0
- package/dist/components/representative-details.js.map +1 -0
- package/dist/components/representative-details2.js +38 -0
- package/dist/components/representative-details2.js.map +1 -0
- package/dist/components/subaccount-account-details.d.ts +11 -0
- package/dist/components/subaccount-account-details.js +8 -0
- package/dist/components/subaccount-account-details.js.map +1 -0
- package/dist/components/subaccount-account-details2.js +39 -0
- package/dist/components/subaccount-account-details2.js.map +1 -0
- package/dist/components/subaccount-bank-details.d.ts +11 -0
- package/dist/components/subaccount-bank-details.js +40 -0
- package/dist/components/subaccount-bank-details.js.map +1 -0
- package/dist/components/subaccount-merchant-details.d.ts +11 -0
- package/dist/components/subaccount-merchant-details.js +8 -0
- package/dist/components/subaccount-merchant-details.js.map +1 -0
- package/dist/components/subaccount-merchant-details2.js +38 -0
- package/dist/components/subaccount-merchant-details2.js.map +1 -0
- package/dist/components/subaccount-owners-details.d.ts +11 -0
- package/dist/components/subaccount-owners-details.js +8 -0
- package/dist/components/subaccount-owners-details.js.map +1 -0
- package/dist/components/subaccount-owners-details2.js +38 -0
- package/dist/components/subaccount-owners-details2.js.map +1 -0
- package/dist/components/subaccount-representative-details.d.ts +11 -0
- package/dist/components/subaccount-representative-details.js +8 -0
- package/dist/components/subaccount-representative-details.js.map +1 -0
- package/dist/components/subaccount-representative-details2.js +38 -0
- package/dist/components/subaccount-representative-details2.js.map +1 -0
- package/dist/components/subaccount-terms-details.d.ts +11 -0
- package/dist/components/subaccount-terms-details.js +40 -0
- package/dist/components/subaccount-terms-details.js.map +1 -0
- package/dist/components/table.js +12 -21
- package/dist/components/table.js.map +1 -1
- package/dist/components/utils.js +27 -3909
- package/dist/components/utils.js.map +1 -1
- package/dist/{esm/utils-ad0bbe03.js → components/utils2.js} +87 -19
- package/dist/{cjs/utils-0fd61dbd.js.map → components/utils2.js.map} +1 -1
- package/dist/esm/{Api-cca120a8.js → Api-c65d3ed8.js} +3 -17
- package/dist/esm/Api-c65d3ed8.js.map +1 -0
- package/dist/esm/Pagination-31f770d6.js +12 -0
- package/dist/esm/Pagination-31f770d6.js.map +1 -0
- package/dist/esm/{Payout-9a1f2859.js → Payout-fcf16887.js} +22 -2
- package/dist/esm/Payout-fcf16887.js.map +1 -0
- package/dist/esm/SubAccount-cf29d050.js +107 -0
- package/dist/esm/SubAccount-cf29d050.js.map +1 -0
- package/dist/esm/additional-questions-details_5.entry.js +76 -0
- package/dist/esm/additional-questions-details_5.entry.js.map +1 -0
- package/dist/esm/{business-form-schema-5885d3d6.js → business-form-schema-30a3eadd.js} +2 -2
- package/dist/esm/business-form-schema-30a3eadd.js.map +1 -0
- package/dist/esm/form-32cf3d1e.js +729 -0
- package/dist/esm/form-32cf3d1e.js.map +1 -0
- package/dist/esm/form-control-datepart_2.entry.js +44 -20
- package/dist/esm/form-control-datepart_2.entry.js.map +1 -1
- package/dist/esm/form-control-monetary.entry.js +1 -1
- package/dist/esm/form-control-number_3.entry.js +17 -32
- package/dist/esm/form-control-number_3.entry.js.map +1 -1
- package/dist/esm/helpers-1d5ecdc8.js +26 -0
- package/dist/esm/helpers-1d5ecdc8.js.map +1 -0
- package/dist/esm/{index-fe877d03.js → index-b02f9a6e.js} +5 -1
- package/dist/esm/index-b02f9a6e.js.map +1 -0
- package/dist/esm/{index.esm-89fe6af9.js → index.esm-9397ffa0.js} +123 -2
- package/dist/esm/index.esm-9397ffa0.js.map +1 -0
- package/dist/esm/{justifi-additional-questions_5.entry.js → justifi-additional-questions_6.entry.js} +41 -17
- package/dist/esm/justifi-additional-questions_6.entry.js.map +1 -0
- package/dist/esm/justifi-bank-account-form.entry.js +1 -1
- package/dist/esm/justifi-billing-form_2.entry.js +2 -2
- package/dist/esm/justifi-business-details.entry.js +72 -0
- package/dist/esm/justifi-business-details.entry.js.map +1 -0
- package/dist/esm/justifi-business-form-stepped.entry.js +126 -0
- package/dist/esm/justifi-business-form-stepped.entry.js.map +1 -0
- package/dist/esm/justifi-business-form.entry.js +11 -755
- package/dist/esm/justifi-business-form.entry.js.map +1 -1
- package/dist/esm/justifi-business-list.entry.js +35 -66
- package/dist/esm/justifi-business-list.entry.js.map +1 -1
- package/dist/esm/justifi-card-form.entry.js +1 -1
- package/dist/esm/justifi-details.entry.js +4 -8
- package/dist/esm/justifi-details.entry.js.map +1 -1
- package/dist/esm/justifi-payment-balance-transactions.entry.js +84 -0
- package/dist/esm/justifi-payment-balance-transactions.entry.js.map +1 -0
- package/dist/esm/justifi-payment-details.entry.js +8 -9
- package/dist/esm/justifi-payment-details.entry.js.map +1 -1
- package/dist/esm/justifi-payment-form.entry.js +4 -3
- package/dist/esm/justifi-payment-form.entry.js.map +1 -1
- package/dist/esm/justifi-payment-method-form.entry.js +6 -6
- package/dist/esm/justifi-payment-method-form.entry.js.map +1 -1
- package/dist/esm/justifi-payments-list.entry.js +21 -16
- package/dist/esm/justifi-payments-list.entry.js.map +1 -1
- package/dist/esm/justifi-payout-details.entry.js +8 -7
- package/dist/esm/justifi-payout-details.entry.js.map +1 -1
- package/dist/esm/justifi-payouts-list.entry.js +22 -17
- package/dist/esm/justifi-payouts-list.entry.js.map +1 -1
- package/dist/esm/justifi-proceeds-list.entry.js +22 -17
- package/dist/esm/justifi-proceeds-list.entry.js.map +1 -1
- package/dist/esm/justifi-refund-form.entry.js +100 -0
- package/dist/esm/justifi-refund-form.entry.js.map +1 -0
- package/dist/esm/justifi-subaccount-details.entry.js +77 -0
- package/dist/esm/justifi-subaccount-details.entry.js.map +1 -0
- package/dist/esm/justifi-subaccounts-list.entry.js +100 -0
- package/dist/esm/justifi-subaccounts-list.entry.js.map +1 -0
- package/dist/esm/justifi-table_2.entry.js +75 -0
- package/dist/esm/justifi-table_2.entry.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/select-input_2.entry.js +1 -1
- package/dist/esm/subaccount-account-details_4.entry.js +65 -0
- package/dist/esm/subaccount-account-details_4.entry.js.map +1 -0
- package/dist/esm/subaccount-bank-details.entry.js +20 -0
- package/dist/esm/subaccount-bank-details.entry.js.map +1 -0
- package/dist/esm/subaccount-terms-details.entry.js +20 -0
- package/dist/esm/subaccount-terms-details.entry.js.map +1 -0
- package/dist/esm/utils-d647dd96.js +29 -0
- package/dist/esm/utils-d647dd96.js.map +1 -0
- package/dist/esm/utils-fcf19fd5.js +3979 -0
- package/dist/esm/utils-fcf19fd5.js.map +1 -0
- package/dist/esm/webcomponents.js +3 -3
- package/dist/types/api/Api.d.ts +4 -4
- package/dist/types/api/Business.d.ts +12 -4
- package/dist/types/api/Pagination.d.ts +12 -6
- package/dist/types/api/Payment.d.ts +28 -0
- package/dist/types/api/SubAccount.d.ts +165 -0
- package/dist/types/api/mockData/MockOnboardingData.d.ts +8 -0
- package/dist/types/api/mockData/MockSubAccount.d.ts +3 -0
- package/dist/types/components/bank-account-form/bank-account-form.stories.d.ts +0 -7
- package/dist/types/components/business-details/additional-questions-details/additional-questions-details.d.ts +13 -0
- package/dist/types/components/business-details/business-details.d.ts +28 -0
- package/dist/types/components/business-details/business-details.stories.d.ts +7 -0
- package/dist/types/components/business-details/generic-info-details/generic-info-details.d.ts +5 -0
- package/dist/types/components/business-details/legal-address-details/legal-address-details.d.ts +5 -0
- package/dist/types/components/business-details/owner-details/owner-details.d.ts +13 -0
- package/dist/types/components/business-details/representative-details/representative-details.d.ts +13 -0
- package/dist/types/components/business-form/business-form-stepped.d.ts +29 -0
- package/dist/types/components/business-form/business-form-stepped.stories.d.ts +27 -0
- package/dist/types/components/business-form/business-form.d.ts +0 -1
- package/dist/types/components/business-form/business-form.stories.d.ts +6 -0
- package/dist/types/components/business-form/business-generic-info/business-generic-info.d.ts +5 -1
- package/dist/types/components/business-form/business-representative/business-representative-schema.d.ts +2 -0
- package/dist/types/components/business-form/helpers.d.ts +1 -0
- package/dist/types/components/{legal-address-form → business-form/legal-address-form}/legal-address-form.d.ts +1 -2
- package/dist/types/components/business-list/business-list.d.ts +34 -21
- package/dist/types/components/card-form/card-form.stories.d.ts +0 -7
- package/dist/types/components/details/details.d.ts +0 -3
- package/dist/types/components/details/utils.d.ts +5 -2
- package/dist/types/components/form/form.d.ts +1 -1
- package/dist/types/components/pagination-menu/pagination-menu.d.ts +10 -0
- package/dist/types/components/payment-balance-transactions/payment-balance-transactions.d.ts +17 -0
- package/dist/types/components/payment-balance-transactions/payment-balance-transactions.stories.d.ts +8 -0
- package/dist/types/components/payment-details/payment-details.d.ts +8 -0
- package/dist/types/components/payment-form/payment-form.stories.d.ts +1 -9
- package/dist/types/components/payments-list/payments-list.d.ts +5 -4
- package/dist/types/components/payout-details/payout-details.d.ts +8 -0
- package/dist/types/components/payouts-list/payouts-list.d.ts +5 -4
- package/dist/types/components/proceeds-list/proceeds-list.d.ts +5 -3
- package/dist/types/components/refund-form/refund-form-schema.d.ts +11 -0
- package/dist/types/components/refund-form/refund-form.d.ts +58 -0
- package/dist/types/components/refund-form/refund-form.stories.d.ts +27 -0
- package/dist/types/components/subaccount-details/subaccount-account-details/subaccount-account-details.d.ts +6 -0
- package/dist/types/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.d.ts +5 -0
- package/dist/types/components/subaccount-details/subaccount-details.d.ts +16 -0
- package/dist/types/components/subaccount-details/subaccount-details.stories.d.ts +7 -0
- package/dist/types/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.d.ts +5 -0
- package/dist/types/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.d.ts +5 -0
- package/dist/types/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.d.ts +5 -0
- package/dist/types/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.d.ts +5 -0
- package/dist/types/components/subaccounts-list/subaccounts-list.d.ts +19 -0
- package/dist/types/components/subaccounts-list/subaccounts-list.stories.d.ts +9 -0
- package/dist/types/components/table/table.d.ts +3 -7
- package/dist/types/components.d.ts +602 -7
- package/dist/types/utils/utils.d.ts +18 -0
- package/dist/webcomponents/p-014b2f3a.entry.js +2 -0
- package/dist/webcomponents/p-014b2f3a.entry.js.map +1 -0
- package/dist/webcomponents/p-05cc444a.entry.js +2 -0
- package/dist/webcomponents/p-05cc444a.entry.js.map +1 -0
- package/dist/webcomponents/p-07059336.entry.js +2 -0
- package/dist/webcomponents/p-07059336.entry.js.map +1 -0
- package/dist/webcomponents/{p-d92116e6.entry.js → p-08311783.entry.js} +2 -2
- package/dist/webcomponents/p-0c5afcbc.js +3 -0
- package/dist/webcomponents/p-0c5afcbc.js.map +1 -0
- package/dist/webcomponents/p-0d5d02d7.js +2 -0
- package/dist/webcomponents/p-0d5d02d7.js.map +1 -0
- package/dist/webcomponents/p-14391341.entry.js +2 -0
- package/dist/webcomponents/p-14391341.entry.js.map +1 -0
- package/dist/webcomponents/{p-69a1bec2.entry.js → p-1b5bd8f8.entry.js} +2 -2
- package/dist/webcomponents/p-1b5bd8f8.entry.js.map +1 -0
- package/dist/webcomponents/{p-cd0eca25.entry.js → p-1d42e416.entry.js} +2 -2
- package/dist/webcomponents/p-23f600d3.entry.js +2 -0
- package/dist/webcomponents/p-23f600d3.entry.js.map +1 -0
- package/dist/webcomponents/p-26b1a61d.entry.js +2 -0
- package/dist/webcomponents/p-26b1a61d.entry.js.map +1 -0
- package/dist/webcomponents/p-2806a2d6.js +2 -0
- package/dist/webcomponents/p-2806a2d6.js.map +1 -0
- package/dist/webcomponents/{p-640bfa9f.entry.js → p-2ac4e73d.entry.js} +2 -2
- package/dist/webcomponents/p-2f741cd2.entry.js +2 -0
- package/dist/webcomponents/p-2f741cd2.entry.js.map +1 -0
- package/dist/webcomponents/p-37b8106d.entry.js +2 -0
- package/dist/webcomponents/p-37b8106d.entry.js.map +1 -0
- package/dist/webcomponents/p-3e0f6758.entry.js +2 -0
- package/dist/webcomponents/p-3e0f6758.entry.js.map +1 -0
- package/dist/webcomponents/p-43c04b00.entry.js +2 -0
- package/dist/webcomponents/p-43c04b00.entry.js.map +1 -0
- package/dist/webcomponents/{p-9346ae33.js → p-4d37473a.js} +2 -2
- package/dist/webcomponents/{p-9346ae33.js.map → p-4d37473a.js.map} +1 -1
- package/dist/webcomponents/p-526cb161.js +2 -0
- package/dist/webcomponents/p-526cb161.js.map +1 -0
- package/dist/webcomponents/{p-f9e127a5.js → p-59860ac8.js} +2 -2
- package/dist/webcomponents/p-59860ac8.js.map +1 -0
- package/dist/webcomponents/{p-dabeb3df.entry.js → p-5b378f8d.entry.js} +2 -2
- package/dist/webcomponents/p-5b378f8d.entry.js.map +1 -0
- package/dist/webcomponents/{p-2b6f5e35.entry.js → p-5dd71882.entry.js} +2 -2
- package/dist/webcomponents/p-5dd71882.entry.js.map +1 -0
- package/dist/webcomponents/{p-9d1c7e6a.entry.js → p-5f434e8b.entry.js} +2 -2
- package/dist/webcomponents/{p-9d1c7e6a.entry.js.map → p-5f434e8b.entry.js.map} +1 -1
- package/dist/webcomponents/{p-1beaaba3.entry.js → p-6642d95b.entry.js} +2 -2
- package/dist/webcomponents/p-6b5fcbff.entry.js +2 -0
- package/dist/webcomponents/p-6b5fcbff.entry.js.map +1 -0
- package/dist/webcomponents/p-756629e9.entry.js +2 -0
- package/dist/webcomponents/p-756629e9.entry.js.map +1 -0
- package/dist/webcomponents/p-76983a7e.js +2 -0
- package/dist/webcomponents/p-76983a7e.js.map +1 -0
- package/dist/webcomponents/p-7d58db66.js +2 -0
- package/dist/webcomponents/p-7d58db66.js.map +1 -0
- package/dist/webcomponents/p-8471740f.entry.js +2 -0
- package/dist/webcomponents/p-8471740f.entry.js.map +1 -0
- package/dist/webcomponents/{p-c46241ba.js → p-8f37e3ee.js} +2 -2
- package/dist/webcomponents/p-8f37e3ee.js.map +1 -0
- package/dist/webcomponents/p-92872bbe.entry.js +2 -0
- package/dist/webcomponents/p-92872bbe.entry.js.map +1 -0
- package/dist/webcomponents/p-99b3925f.entry.js +2 -0
- package/dist/webcomponents/{p-f6cc37a6.entry.js.map → p-99b3925f.entry.js.map} +1 -1
- package/dist/webcomponents/p-a1a94012.entry.js +2 -0
- package/dist/webcomponents/p-a1a94012.entry.js.map +1 -0
- package/dist/webcomponents/p-a3211bb2.js +2 -0
- package/dist/webcomponents/p-a3211bb2.js.map +1 -0
- package/dist/webcomponents/p-b157f6ae.js +2 -0
- package/dist/webcomponents/p-b157f6ae.js.map +1 -0
- package/dist/webcomponents/{p-a922b908.entry.js → p-b4f185c5.entry.js} +2 -2
- package/dist/webcomponents/p-c52d63b1.entry.js +2 -0
- package/dist/webcomponents/p-c52d63b1.entry.js.map +1 -0
- package/dist/webcomponents/p-c9373e73.entry.js +2 -0
- package/dist/webcomponents/p-c9373e73.entry.js.map +1 -0
- package/dist/webcomponents/p-d18c0273.entry.js +2 -0
- package/dist/webcomponents/p-d18c0273.entry.js.map +1 -0
- package/dist/webcomponents/p-e83f93cd.entry.js +2 -0
- package/dist/webcomponents/p-e83f93cd.entry.js.map +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/dist/webcomponents/webcomponents.esm.js.map +1 -1
- package/package.json +3 -3
- package/dist/cjs/Api-f76b337f.js.map +0 -1
- package/dist/cjs/Payout-4906a445.js.map +0 -1
- package/dist/cjs/business-form-schema-725ec6f5.js.map +0 -1
- package/dist/cjs/form-control-select.cjs.entry.js +0 -47
- package/dist/cjs/form-control-select.cjs.entry.js.map +0 -1
- package/dist/cjs/index-3533152c.js.map +0 -1
- package/dist/cjs/index.esm-84a0a7a8.js.map +0 -1
- package/dist/cjs/justifi-additional-questions_5.cjs.entry.js.map +0 -1
- package/dist/cjs/justifi-table.cjs.entry.js.map +0 -1
- package/dist/cjs/table-utils-617126e5.js +0 -13
- package/dist/cjs/table-utils-617126e5.js.map +0 -1
- package/dist/cjs/utils-d95b09c2.js +0 -35
- package/dist/cjs/utils-d95b09c2.js.map +0 -1
- package/dist/collection/components/legal-address-form/legal-address-form-schema.js.map +0 -1
- package/dist/collection/components/legal-address-form/legal-address-form.js.map +0 -1
- package/dist/collection/components/table/table-utils.js +0 -8
- package/dist/collection/components/table/table-utils.js.map +0 -1
- package/dist/config.js +0 -6
- package/dist/config.js.map +0 -1
- package/dist/esm/Api-cca120a8.js.map +0 -1
- package/dist/esm/Payout-9a1f2859.js.map +0 -1
- package/dist/esm/business-form-schema-5885d3d6.js.map +0 -1
- package/dist/esm/form-control-select.entry.js +0 -43
- package/dist/esm/form-control-select.entry.js.map +0 -1
- package/dist/esm/index-fe877d03.js.map +0 -1
- package/dist/esm/index.esm-89fe6af9.js.map +0 -1
- package/dist/esm/justifi-additional-questions_5.entry.js.map +0 -1
- package/dist/esm/justifi-table.entry.js.map +0 -1
- package/dist/esm/table-utils-6cdcaa8c.js +0 -11
- package/dist/esm/table-utils-6cdcaa8c.js.map +0 -1
- package/dist/esm/utils-1e7d6279.js +0 -28
- package/dist/esm/utils-1e7d6279.js.map +0 -1
- package/dist/esm/utils-ad0bbe03.js.map +0 -1
- package/dist/types/components/table/table-utils.d.ts +0 -14
- package/dist/types/home/runner/work/web-component-library/web-component-library/stencil-library/.stencil/config.d.ts +0 -5
- package/dist/webcomponents/p-26392ae3.entry.js +0 -2
- package/dist/webcomponents/p-26392ae3.entry.js.map +0 -1
- package/dist/webcomponents/p-2b6f5e35.entry.js.map +0 -1
- package/dist/webcomponents/p-2e66512d.entry.js +0 -2
- package/dist/webcomponents/p-2e66512d.entry.js.map +0 -1
- package/dist/webcomponents/p-523cbe04.js +0 -2
- package/dist/webcomponents/p-523cbe04.js.map +0 -1
- package/dist/webcomponents/p-641883b2.entry.js +0 -2
- package/dist/webcomponents/p-641883b2.entry.js.map +0 -1
- package/dist/webcomponents/p-69a1bec2.entry.js.map +0 -1
- package/dist/webcomponents/p-6a0c8dec.entry.js +0 -2
- package/dist/webcomponents/p-6a0c8dec.entry.js.map +0 -1
- package/dist/webcomponents/p-87410719.entry.js +0 -2
- package/dist/webcomponents/p-87410719.entry.js.map +0 -1
- package/dist/webcomponents/p-881edb4d.entry.js +0 -2
- package/dist/webcomponents/p-881edb4d.entry.js.map +0 -1
- package/dist/webcomponents/p-ab0756ff.js +0 -2
- package/dist/webcomponents/p-ab0756ff.js.map +0 -1
- package/dist/webcomponents/p-c46241ba.js.map +0 -1
- package/dist/webcomponents/p-ccb0e1c5.js +0 -2
- package/dist/webcomponents/p-ccb0e1c5.js.map +0 -1
- package/dist/webcomponents/p-dabeb3df.entry.js.map +0 -1
- package/dist/webcomponents/p-db9945b1.entry.js +0 -2
- package/dist/webcomponents/p-db9945b1.entry.js.map +0 -1
- package/dist/webcomponents/p-e1f6c8ec.entry.js +0 -2
- package/dist/webcomponents/p-e1f6c8ec.entry.js.map +0 -1
- package/dist/webcomponents/p-e41fb562.entry.js +0 -2
- package/dist/webcomponents/p-e41fb562.entry.js.map +0 -1
- package/dist/webcomponents/p-e6695628.js +0 -2
- package/dist/webcomponents/p-e6695628.js.map +0 -1
- package/dist/webcomponents/p-e70b2a21.js +0 -3
- package/dist/webcomponents/p-e70b2a21.js.map +0 -1
- package/dist/webcomponents/p-f6cc37a6.entry.js +0 -2
- package/dist/webcomponents/p-f8067330.entry.js +0 -2
- package/dist/webcomponents/p-f8067330.entry.js.map +0 -1
- package/dist/webcomponents/p-f9e127a5.js.map +0 -1
- /package/dist/collection/components/{legal-address-form → business-form/legal-address-form}/legal-address-form-schema.js +0 -0
- /package/dist/collection/components/{legal-address-form → business-form/legal-address-form}/legal-address-form.css +0 -0
- /package/dist/types/components/{legal-address-form → business-form/legal-address-form}/legal-address-form-schema.d.ts +0 -0
- /package/dist/webcomponents/{p-d92116e6.entry.js.map → p-08311783.entry.js.map} +0 -0
- /package/dist/webcomponents/{p-cd0eca25.entry.js.map → p-1d42e416.entry.js.map} +0 -0
- /package/dist/webcomponents/{p-640bfa9f.entry.js.map → p-2ac4e73d.entry.js.map} +0 -0
- /package/dist/webcomponents/{p-1beaaba3.entry.js.map → p-6642d95b.entry.js.map} +0 -0
- /package/dist/webcomponents/{p-a922b908.entry.js.map → p-b4f185c5.entry.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function n(t){"@babel/helpers - typeof";return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},n(t)}function t(n){if(n===null||n===true||n===false){return NaN}var t=Number(n);if(isNaN(t)){return t}return t<0?Math.ceil(t):Math.floor(t)}function e(n,t){if(t.length<n){throw new TypeError(n+" argument"+(n>1?"s":"")+" required, but only "+t.length+" present")}}function r(t){e(1,arguments);var r=Object.prototype.toString.call(t);if(t instanceof Date||n(t)==="object"&&r==="[object Date]"){return new Date(t.getTime())}else if(typeof t==="number"||r==="[object Number]"){return new Date(t)}else{if((typeof t==="string"||r==="[object String]")&&typeof console!=="undefined"){console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments");console.warn((new Error).stack)}return new Date(NaN)}}function a(n,a){e(2,arguments);var i=r(n).getTime();var o=t(a);return new Date(i+o)}var i={};function o(){return i}function u(n){var t=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));t.setUTCFullYear(n.getFullYear());return n.getTime()-t.getTime()}function s(t){e(1,arguments);return t instanceof Date||n(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function c(n){e(1,arguments);if(!s(n)&&typeof n!=="number"){return false}var t=r(n);return!isNaN(Number(t))}function d(n,r){e(2,arguments);var i=t(r);return a(n,-i)}var f=864e5;function l(n){e(1,arguments);var t=r(n);var a=t.getTime();t.setUTCMonth(0,1);t.setUTCHours(0,0,0,0);var i=t.getTime();var o=a-i;return Math.floor(o/f)+1}function v(n){e(1,arguments);var t=1;var a=r(n);var i=a.getUTCDay();var o=(i<t?7:0)+i-t;a.setUTCDate(a.getUTCDate()-o);a.setUTCHours(0,0,0,0);return a}function h(n){e(1,arguments);var t=r(n);var a=t.getUTCFullYear();var i=new Date(0);i.setUTCFullYear(a+1,0,4);i.setUTCHours(0,0,0,0);var o=v(i);var u=new Date(0);u.setUTCFullYear(a,0,4);u.setUTCHours(0,0,0,0);var s=v(u);if(t.getTime()>=o.getTime()){return a+1}else if(t.getTime()>=s.getTime()){return a}else{return a-1}}function m(n){e(1,arguments);var t=h(n);var r=new Date(0);r.setUTCFullYear(t,0,4);r.setUTCHours(0,0,0,0);var a=v(r);return a}var g=6048e5;function b(n){e(1,arguments);var t=r(n);var a=v(t).getTime()-m(t).getTime();return Math.round(a/g)+1}function w(n,a){var i,u,s,c,d,f,l,v;e(1,arguments);var h=o();var m=t((i=(u=(s=(c=a===null||a===void 0?void 0:a.weekStartsOn)!==null&&c!==void 0?c:a===null||a===void 0?void 0:(d=a.locale)===null||d===void 0?void 0:(f=d.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&s!==void 0?s:h.weekStartsOn)!==null&&u!==void 0?u:(l=h.locale)===null||l===void 0?void 0:(v=l.options)===null||v===void 0?void 0:v.weekStartsOn)!==null&&i!==void 0?i:0);if(!(m>=0&&m<=6)){throw new RangeError("weekStartsOn must be between 0 and 6 inclusively")}var g=r(n);var b=g.getUTCDay();var w=(b<m?7:0)+b-m;g.setUTCDate(g.getUTCDate()-w);g.setUTCHours(0,0,0,0);return g}function y(n,a){var i,u,s,c,d,f,l,v;e(1,arguments);var h=r(n);var m=h.getUTCFullYear();var g=o();var b=t((i=(u=(s=(c=a===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&c!==void 0?c:a===null||a===void 0?void 0:(d=a.locale)===null||d===void 0?void 0:(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&s!==void 0?s:g.firstWeekContainsDate)!==null&&u!==void 0?u:(l=g.locale)===null||l===void 0?void 0:(v=l.options)===null||v===void 0?void 0:v.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(b>=1&&b<=7)){throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively")}var y=new Date(0);y.setUTCFullYear(m+1,0,b);y.setUTCHours(0,0,0,0);var p=w(y,a);var M=new Date(0);M.setUTCFullYear(m,0,b);M.setUTCHours(0,0,0,0);var S=w(M,a);if(h.getTime()>=p.getTime()){return m+1}else if(h.getTime()>=S.getTime()){return m}else{return m-1}}function p(n,r){var a,i,u,s,c,d,f,l;e(1,arguments);var v=o();var h=t((a=(i=(u=(s=r===null||r===void 0?void 0:r.firstWeekContainsDate)!==null&&s!==void 0?s:r===null||r===void 0?void 0:(c=r.locale)===null||c===void 0?void 0:(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&u!==void 0?u:v.firstWeekContainsDate)!==null&&i!==void 0?i:(f=v.locale)===null||f===void 0?void 0:(l=f.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&a!==void 0?a:1);var m=y(n,r);var g=new Date(0);g.setUTCFullYear(m,0,h);g.setUTCHours(0,0,0,0);var b=w(g,r);return b}var M=6048e5;function S(n,t){e(1,arguments);var a=r(n);var i=w(a,t).getTime()-p(a,t).getTime();return Math.round(i/M)+1}function x(n,t){var e=n<0?"-":"";var r=Math.abs(n).toString();while(r.length<t){r="0"+r}return e+r}var E={y:function n(t,e){var r=t.getUTCFullYear();var a=r>0?r:1-r;return x(e==="yy"?a%100:a,e.length)},M:function n(t,e){var r=t.getUTCMonth();return e==="M"?String(r+1):x(r+1,2)},d:function n(t,e){return x(t.getUTCDate(),e.length)},a:function n(t,e){var r=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function n(t,e){return x(t.getUTCHours()%12||12,e.length)},H:function n(t,e){return x(t.getUTCHours(),e.length)},m:function n(t,e){return x(t.getUTCMinutes(),e.length)},s:function n(t,e){return x(t.getUTCSeconds(),e.length)},S:function n(t,e){var r=e.length;var a=t.getUTCMilliseconds();var i=Math.floor(a*Math.pow(10,r-3));return x(i,e.length)}};var P={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};var D={G:function n(t,e,r){var a=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});case"GGGG":default:return r.era(a,{width:"wide"})}},y:function n(t,e,r){if(e==="yo"){var a=t.getUTCFullYear();var i=a>0?a:1-a;return r.ordinalNumber(i,{unit:"year"})}return E.y(t,e)},Y:function n(t,e,r,a){var i=y(t,a);var o=i>0?i:1-i;if(e==="YY"){var u=o%100;return x(u,2)}if(e==="Yo"){return r.ordinalNumber(o,{unit:"year"})}return x(o,e.length)},R:function n(t,e){var r=h(t);return x(r,e.length)},u:function n(t,e){var r=t.getUTCFullYear();return x(r,e.length)},Q:function n(t,e,r){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(a);case"QQ":return x(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function n(t,e,r){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(a);case"qq":return x(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function n(t,e,r){var a=t.getUTCMonth();switch(e){case"M":case"MM":return E.M(t,e);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(a,{width:"wide",context:"formatting"})}},L:function n(t,e,r){var a=t.getUTCMonth();switch(e){case"L":return String(a+1);case"LL":return x(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(a,{width:"wide",context:"standalone"})}},w:function n(t,e,r,a){var i=S(t,a);if(e==="wo"){return r.ordinalNumber(i,{unit:"week"})}return x(i,e.length)},I:function n(t,e,r){var a=b(t);if(e==="Io"){return r.ordinalNumber(a,{unit:"week"})}return x(a,e.length)},d:function n(t,e,r){if(e==="do"){return r.ordinalNumber(t.getUTCDate(),{unit:"date"})}return E.d(t,e)},D:function n(t,e,r){var a=l(t);if(e==="Do"){return r.ordinalNumber(a,{unit:"dayOfYear"})}return x(a,e.length)},E:function n(t,e,r){var a=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});case"EEEE":default:return r.day(a,{width:"wide",context:"formatting"})}},e:function n(t,e,r,a){var i=t.getUTCDay();var o=(i-a.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return x(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function n(t,e,r,a){var i=t.getUTCDay();var o=(i-a.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return x(o,e.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function n(t,e,r){var a=t.getUTCDay();var i=a===0?7:a;switch(e){case"i":return String(i);case"ii":return x(i,e.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});case"iiii":default:return r.day(a,{width:"wide",context:"formatting"})}},a:function n(t,e,r){var a=t.getUTCHours();var i=a/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function n(t,e,r){var a=t.getUTCHours();var i;if(a===12){i=P.noon}else if(a===0){i=P.midnight}else{i=a/12>=1?"pm":"am"}switch(e){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function n(t,e,r){var a=t.getUTCHours();var i;if(a>=17){i=P.evening}else if(a>=12){i=P.afternoon}else if(a>=4){i=P.morning}else{i=P.night}switch(e){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function n(t,e,r){if(e==="ho"){var a=t.getUTCHours()%12;if(a===0)a=12;return r.ordinalNumber(a,{unit:"hour"})}return E.h(t,e)},H:function n(t,e,r){if(e==="Ho"){return r.ordinalNumber(t.getUTCHours(),{unit:"hour"})}return E.H(t,e)},K:function n(t,e,r){var a=t.getUTCHours()%12;if(e==="Ko"){return r.ordinalNumber(a,{unit:"hour"})}return x(a,e.length)},k:function n(t,e,r){var a=t.getUTCHours();if(a===0)a=24;if(e==="ko"){return r.ordinalNumber(a,{unit:"hour"})}return x(a,e.length)},m:function n(t,e,r){if(e==="mo"){return r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"})}return E.m(t,e)},s:function n(t,e,r){if(e==="so"){return r.ordinalNumber(t.getUTCSeconds(),{unit:"second"})}return E.s(t,e)},S:function n(t,e){return E.S(t,e)},X:function n(t,e,r,a){var i=a._originalDate||t;var o=i.getTimezoneOffset();if(o===0){return"Z"}switch(e){case"X":return T(o);case"XXXX":case"XX":return A(o);case"XXXXX":case"XXX":default:return A(o,":")}},x:function n(t,e,r,a){var i=a._originalDate||t;var o=i.getTimezoneOffset();switch(e){case"x":return T(o);case"xxxx":case"xx":return A(o);case"xxxxx":case"xxx":default:return A(o,":")}},O:function n(t,e,r,a){var i=a._originalDate||t;var o=i.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+O(o,":");case"OOOO":default:return"GMT"+A(o,":")}},z:function n(t,e,r,a){var i=a._originalDate||t;var o=i.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+O(o,":");case"zzzz":default:return"GMT"+A(o,":")}},t:function n(t,e,r,a){var i=a._originalDate||t;var o=Math.floor(i.getTime()/1e3);return x(o,e.length)},T:function n(t,e,r,a){var i=a._originalDate||t;var o=i.getTime();return x(o,e.length)}};function O(n,t){var e=n>0?"-":"+";var r=Math.abs(n);var a=Math.floor(r/60);var i=r%60;if(i===0){return e+String(a)}var o=t||"";return e+String(a)+o+x(i,2)}function T(n,t){if(n%60===0){var e=n>0?"-":"+";return e+x(Math.abs(n)/60,2)}return A(n,t)}function A(n,t){var e=t||"";var r=n>0?"-":"+";var a=Math.abs(n);var i=x(Math.floor(a/60),2);var o=x(a%60,2);return r+i+e+o}var j=function n(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}};var k=function n(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}};var W=function n(t,e){var r=t.match(/(P+)(p+)?/)||[];var a=r[1];var i=r[2];if(!i){return j(t,e)}var o;switch(a){case"P":o=e.dateTime({width:"short"});break;case"PP":o=e.dateTime({width:"medium"});break;case"PPP":o=e.dateTime({width:"long"});break;case"PPPP":default:o=e.dateTime({width:"full"});break}return o.replace("{{date}}",j(a,e)).replace("{{time}}",k(i,e))};var Y={p:k,P:W};var q=["D","DD"];var F=["YY","YYYY"];function L(n){return q.indexOf(n)!==-1}function N(n){return F.indexOf(n)!==-1}function R(n,t,e){if(n==="YYYY"){throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}else if(n==="YY"){throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}else if(n==="D"){throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}else if(n==="DD"){throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}}var X={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};var G=function n(t,e,r){var a;var i=X[t];if(typeof i==="string"){a=i}else if(e===1){a=i.one}else{a=i.other.replace("{{count}}",e.toString())}if(r!==null&&r!==void 0&&r.addSuffix){if(r.comparison&&r.comparison>0){return"in "+a}else{return a+" ago"}}return a};function z(n){return function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var e=t.width?String(t.width):n.defaultWidth;var r=n.formats[e]||n.formats[n.defaultWidth];return r}}var B={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"};var Q={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"};var C={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};var H={date:z({formats:B,defaultWidth:"full"}),time:z({formats:Q,defaultWidth:"full"}),dateTime:z({formats:C,defaultWidth:"full"})};var _={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};var U=function n(t,e,r,a){return _[t]};function I(n){return function(t,e){var r=e!==null&&e!==void 0&&e.context?String(e.context):"standalone";var a;if(r==="formatting"&&n.formattingValues){var i=n.defaultFormattingWidth||n.defaultWidth;var o=e!==null&&e!==void 0&&e.width?String(e.width):i;a=n.formattingValues[o]||n.formattingValues[i]}else{var u=n.defaultWidth;var s=e!==null&&e!==void 0&&e.width?String(e.width):n.defaultWidth;a=n.values[s]||n.values[u]}var c=n.argumentCallback?n.argumentCallback(t):t;return a[c]}}var J={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]};var $={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]};var Z={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]};var V={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]};var K={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}};var nn={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}};var tn=function n(t,e){var r=Number(t);var a=r%100;if(a>20||a<10){switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}}return r+"th"};var en={ordinalNumber:tn,era:I({values:J,defaultWidth:"wide"}),quarter:I({values:$,defaultWidth:"wide",argumentCallback:function n(t){return t-1}}),month:I({values:Z,defaultWidth:"wide"}),day:I({values:V,defaultWidth:"wide"}),dayPeriod:I({values:K,defaultWidth:"wide",formattingValues:nn,defaultFormattingWidth:"wide"})};function rn(n){return function(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var r=e.width;var a=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth];var i=t.match(a);if(!i){return null}var o=i[0];var u=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth];var s=Array.isArray(u)?on(u,(function(n){return n.test(o)})):an(u,(function(n){return n.test(o)}));var c;c=n.valueCallback?n.valueCallback(s):s;c=e.valueCallback?e.valueCallback(c):c;var d=t.slice(o.length);return{value:c,rest:d}}}function an(n,t){for(var e in n){if(n.hasOwnProperty(e)&&t(n[e])){return e}}return undefined}function on(n,t){for(var e=0;e<n.length;e++){if(t(n[e])){return e}}return undefined}function un(n){return function(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var r=t.match(n.matchPattern);if(!r)return null;var a=r[0];var i=t.match(n.parsePattern);if(!i)return null;var o=n.valueCallback?n.valueCallback(i[0]):i[0];o=e.valueCallback?e.valueCallback(o):o;var u=t.slice(a.length);return{value:o,rest:u}}}var sn=/^(\d+)(th|st|nd|rd)?/i;var cn=/\d+/i;var dn={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i};var fn={any:[/^b/i,/^(a|c)/i]};var ln={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i};var vn={any:[/1/i,/2/i,/3/i,/4/i]};var hn={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i};var mn={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]};var gn={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i};var bn={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]};var wn={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i};var yn={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}};var pn={ordinalNumber:un({matchPattern:sn,parsePattern:cn,valueCallback:function n(t){return parseInt(t,10)}}),era:rn({matchPatterns:dn,defaultMatchWidth:"wide",parsePatterns:fn,defaultParseWidth:"any"}),quarter:rn({matchPatterns:ln,defaultMatchWidth:"wide",parsePatterns:vn,defaultParseWidth:"any",valueCallback:function n(t){return t+1}}),month:rn({matchPatterns:hn,defaultMatchWidth:"wide",parsePatterns:mn,defaultParseWidth:"any"}),day:rn({matchPatterns:gn,defaultMatchWidth:"wide",parsePatterns:bn,defaultParseWidth:"any"}),dayPeriod:rn({matchPatterns:wn,defaultMatchWidth:"any",parsePatterns:yn,defaultParseWidth:"any"})};var Mn={code:"en-US",formatDistance:G,formatLong:H,formatRelative:U,localize:en,match:pn,options:{weekStartsOn:0,firstWeekContainsDate:1}};var Sn=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g;var xn=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;var En=/^'([^]*?)'?$/;var Pn=/''/g;var Dn=/[a-zA-Z]/;function On(n,a,i){var s,f,l,v,h,m,g,b,w,y,p,M,S,x,E,P,O,T;e(2,arguments);var A=String(a);var j=o();var k=(s=(f=i===null||i===void 0?void 0:i.locale)!==null&&f!==void 0?f:j.locale)!==null&&s!==void 0?s:Mn;var W=t((l=(v=(h=(m=i===null||i===void 0?void 0:i.firstWeekContainsDate)!==null&&m!==void 0?m:i===null||i===void 0?void 0:(g=i.locale)===null||g===void 0?void 0:(b=g.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&h!==void 0?h:j.firstWeekContainsDate)!==null&&v!==void 0?v:(w=j.locale)===null||w===void 0?void 0:(y=w.options)===null||y===void 0?void 0:y.firstWeekContainsDate)!==null&&l!==void 0?l:1);if(!(W>=1&&W<=7)){throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively")}var q=t((p=(M=(S=(x=i===null||i===void 0?void 0:i.weekStartsOn)!==null&&x!==void 0?x:i===null||i===void 0?void 0:(E=i.locale)===null||E===void 0?void 0:(P=E.options)===null||P===void 0?void 0:P.weekStartsOn)!==null&&S!==void 0?S:j.weekStartsOn)!==null&&M!==void 0?M:(O=j.locale)===null||O===void 0?void 0:(T=O.options)===null||T===void 0?void 0:T.weekStartsOn)!==null&&p!==void 0?p:0);if(!(q>=0&&q<=6)){throw new RangeError("weekStartsOn must be between 0 and 6 inclusively")}if(!k.localize){throw new RangeError("locale must contain localize property")}if(!k.formatLong){throw new RangeError("locale must contain formatLong property")}var F=r(n);if(!c(F)){throw new RangeError("Invalid time value")}var X=u(F);var G=d(F,X);var z={firstWeekContainsDate:W,weekStartsOn:q,locale:k,_originalDate:F};var B=A.match(xn).map((function(n){var t=n[0];if(t==="p"||t==="P"){var e=Y[t];return e(n,k.formatLong)}return n})).join("").match(Sn).map((function(t){if(t==="''"){return"'"}var e=t[0];if(e==="'"){return Tn(t)}var r=D[e];if(r){if(!(i!==null&&i!==void 0&&i.useAdditionalWeekYearTokens)&&N(t)){R(t,a,String(n))}if(!(i!==null&&i!==void 0&&i.useAdditionalDayOfYearTokens)&&L(t)){R(t,a,String(n))}return r(G,t,k.localize,z)}if(e.match(Dn)){throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`")}return t})).join("");return B}function Tn(n){var t=n.match(En);if(!t){return n}return t[1].replace(Pn,"'")}var An={defaultAmount:0,defaultCurrency:"USD",defaultPrecision:2};var jn={globalLocale:"en-US",globalFormat:"$0,0.00",globalRoundingMode:"HALF_EVEN",globalFormatRoundingMode:"HALF_AWAY_FROM_ZERO",globalExchangeRatesApi:{endpoint:undefined,headers:undefined,propertyPath:undefined}};function kn(n){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){kn=function(n){return typeof n}}else{kn=function(n){return n&&typeof Symbol==="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n}}return kn(n)}function Wn(n){return Yn(n)||qn(n)||Fn(n)||Nn()}function Yn(n){if(Array.isArray(n))return n}function qn(n){if(typeof Symbol!=="undefined"&&Symbol.iterator in Object(n))return Array.from(n)}function Fn(n,t){if(!n)return;if(typeof n==="string")return Ln(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor)e=n.constructor.name;if(e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Ln(n,t)}function Ln(n,t){if(t==null||t>n.length)t=n.length;for(var e=0,r=new Array(t);e<t;e++)r[e]=n[e];return r}function Nn(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Rn={normalizePrecision:function n(t){var e=t.reduce((function(n,t){return Math.max(n.getPrecision(),t.getPrecision())}));return t.map((function(n){return n.getPrecision()!==e?n.convertPrecision(e):n}))},minimum:function n(t){var e=Wn(t),r=e[0],a=e.slice(1);var i=r;a.forEach((function(n){i=i.lessThan(n)?i:n}));return i},maximum:function n(t){var e=Wn(t),r=e[0],a=e.slice(1);var i=r;a.forEach((function(n){i=i.greaterThan(n)?i:n}));return i}};function Xn(n){return!isNaN(parseInt(n))&&isFinite(n)}function Gn(n){return Xn(n)&&n<=100&&n>=0}function zn(n){return n.length>0&&n.every((function(n){return n>=0}))&&n.some((function(n){return n>0}))}function Bn(n){return n%2===0}function Qn(n){return Xn(n)&&!Number.isInteger(n)}function Cn(){var n=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var t=n.toString();if(t.indexOf("e-")>0){return parseInt(t.split("e-")[1])}else{var e=t.split(".")[1];return e?e.length:0}}function Hn(n){return Math.abs(n)%1===.5}function _n(n){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return new Promise((function(e,r){var a=Object.assign(new XMLHttpRequest,{onreadystatechange:function n(){if(a.readyState===4){if(a.status>=200&&a.status<400)e(JSON.parse(a.responseText));else r(new Error(a.statusText))}},onerror:function n(){r(new Error("Network error"))}});a.open("GET",n,true);Un(a,t.headers);a.send()}))}function Un(n){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};for(var e in t){n.setRequestHeader(e,t[e])}return n}function In(n){return typeof n==="undefined"}function Jn(n){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:".";var e={};Object.entries(n).forEach((function(n){if(kn(n[1])==="object"){var r=Jn(n[1]);Object.entries(r).forEach((function(r){e[n[0]+t+r[0]]=r[1]}))}else{e[n[0]]=n[1]}}));return e}function $n(n){return Boolean(n)&&(kn(n)==="object"||typeof n==="function")&&typeof n.then==="function"}function Zn(){var n=function n(t,e){var r=function n(t){return Math.pow(10,Cn(t))};var a=Math.max(r(t),r(e));return Math.round(t*a)*Math.round(e*a)/(a*a)};var t={HALF_ODD:function n(t){var e=Math.round(t);return Hn(t)?Bn(e)?e-1:e:e},HALF_EVEN:function n(t){var e=Math.round(t);return Hn(t)?Bn(e)?e:e-1:e},HALF_UP:function n(t){return Math.round(t)},HALF_DOWN:function n(t){return Hn(t)?Math.floor(t):Math.round(t)},HALF_TOWARDS_ZERO:function n(t){return Hn(t)?Math.sign(t)*Math.floor(Math.abs(t)):Math.round(t)},HALF_AWAY_FROM_ZERO:function n(t){return Hn(t)?Math.sign(t)*Math.ceil(Math.abs(t)):Math.round(t)},DOWN:function n(t){return Math.floor(t)}};return{add:function n(t,e){return t+e},subtract:function n(t,e){return t-e},multiply:function t(e,r){return Qn(e)||Qn(r)?n(e,r):e*r},divide:function n(t,e){return t/e},modulo:function n(t,e){return t%e},round:function n(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"HALF_EVEN";return t[r](e)}}}var Vn=Zn();function Kn(n){var t=/^(?:(\$|USD)?0(?:(,)0)?(\.)?(0+)?|0(?:(,)0)?(\.)?(0+)?\s?(dollar)?)$/gm.exec(n);return{getMatches:function n(){return t!==null?t.slice(1).filter((function(n){return!In(n)})):[]},getMinimumFractionDigits:function n(){var t=function n(t){return t==="."};return!In(this.getMatches().find(t))?this.getMatches()[Vn.add(this.getMatches().findIndex(t),1)].split("").length:0},getCurrencyDisplay:function n(){var t={USD:"code",dollar:"name",$:"symbol"};return t[this.getMatches().find((function(n){return n==="USD"||n==="dollar"||n==="$"}))]},getStyle:function n(){return!In(this.getCurrencyDisplay(this.getMatches()))?"currency":"decimal"},getUseGrouping:function n(){return!In(this.getMatches().find((function(n){return n===","})))}}}function nt(n){var t=function n(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"";var e=arguments.length>1?arguments[1]:undefined;for(var r in e){t=t.replace("{{".concat(r,"}}"),e[r])}return t};var e=function e(r,a){return _n(t(n.endpoint,{from:r,to:a}),{headers:n.headers})};return{getExchangeRate:function r(a,i){return($n(n.endpoint)?n.endpoint:e(a,i)).then((function(e){return Jn(e)[t(n.propertyPath,{from:a,to:i})]}))}}}function tt(n,t){var e=arguments.length>2&&arguments[2]!==undefined?arguments[2]:Error;if(!n)throw new e(t)}function et(n){tt(Gn(n),"You must provide a numeric value between 0 and 100.",RangeError)}function rt(n){tt(zn(n),"You must provide a non-empty array of numeric values greater than 0.",TypeError)}function at(n){tt(Number.isInteger(n),"You must provide an integer.",TypeError)}var it=Zn();var ot=function n(t){var e=Object.assign({},{amount:n.defaultAmount,currency:n.defaultCurrency,precision:n.defaultPrecision},t),r=e.amount,a=e.currency,i=e.precision;at(r);at(i);var o=n.globalLocale,u=n.globalFormat,s=n.globalRoundingMode,c=n.globalFormatRoundingMode;var d=Object.assign({},n.globalExchangeRatesApi);var f=function t(e){var o=Object.assign({},Object.assign({},{amount:r,currency:a,precision:i},e),Object.assign({},{locale:this.locale},e));return Object.assign(n({amount:o.amount,currency:o.currency,precision:o.precision}),{locale:o.locale})};var l=function n(t){tt(this.hasSameCurrency(t),"You must provide a Dinero instance with the same currency.",TypeError)};return{getAmount:function n(){return r},getCurrency:function n(){return a},getLocale:function n(){return this.locale||o},setLocale:function n(t){return f.call(this,{locale:t})},getPrecision:function n(){return i},convertPrecision:function n(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:c;at(t);var r=this.getPrecision();var a=t>r;var i=a?it.multiply:it.divide;var o=a?[t,r]:[r,t];var u=Math.pow(10,it.subtract.apply(it,o));return f.call(this,{amount:it.round(i(this.getAmount(),u),e),precision:t})},add:function t(e){l.call(this,e);var r=n.normalizePrecision([this,e]);return f.call(this,{amount:it.add(r[0].getAmount(),r[1].getAmount()),precision:r[0].getPrecision()})},subtract:function t(e){l.call(this,e);var r=n.normalizePrecision([this,e]);return f.call(this,{amount:it.subtract(r[0].getAmount(),r[1].getAmount()),precision:r[0].getPrecision()})},multiply:function n(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:s;return f.call(this,{amount:it.round(it.multiply(this.getAmount(),t),e)})},divide:function n(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:s;return f.call(this,{amount:it.round(it.divide(this.getAmount(),t),e)})},percentage:function n(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:s;et(t);return this.multiply(it.divide(t,100),e)},allocate:function n(t){var e=this;rt(t);var r=t.reduce((function(n,t){return it.add(n,t)}));var a=this.getAmount();var i=t.map((function(n){var t=Math.floor(it.divide(it.multiply(e.getAmount(),n),r));a=it.subtract(a,t);return f.call(e,{amount:t})}));var o=0;while(a>0){if(t[o]>0){i[o]=i[o].add(f.call(this,{amount:1}));a=it.subtract(a,1)}o+=1}return i},convert:function n(t){var e=this;var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},a=r.endpoint,i=a===void 0?d.endpoint:a,o=r.propertyPath,u=o===void 0?d.propertyPath||"rates.{{to}}":o,c=r.headers,l=c===void 0?d.headers:c,v=r.roundingMode,h=v===void 0?s:v;var m=Object.assign({},{endpoint:i,propertyPath:u,headers:l,roundingMode:h});return nt(m).getExchangeRate(this.getCurrency(),t).then((function(n){tt(!In(n),'No rate was found for the destination currency "'.concat(t,'".'),TypeError);return f.call(e,{amount:it.round(it.multiply(e.getAmount(),parseFloat(n)),m.roundingMode),currency:t})}))},equalsTo:function n(t){return this.hasSameAmount(t)&&this.hasSameCurrency(t)},lessThan:function t(e){l.call(this,e);var r=n.normalizePrecision([this,e]);return r[0].getAmount()<r[1].getAmount()},lessThanOrEqual:function t(e){l.call(this,e);var r=n.normalizePrecision([this,e]);return r[0].getAmount()<=r[1].getAmount()},greaterThan:function t(e){l.call(this,e);var r=n.normalizePrecision([this,e]);return r[0].getAmount()>r[1].getAmount()},greaterThanOrEqual:function t(e){l.call(this,e);var r=n.normalizePrecision([this,e]);return r[0].getAmount()>=r[1].getAmount()},isZero:function n(){return this.getAmount()===0},isPositive:function n(){return this.getAmount()>=0},isNegative:function n(){return this.getAmount()<0},hasSubUnits:function n(){return it.modulo(this.getAmount(),Math.pow(10,i))!==0},hasCents:function n(){return it.modulo(this.getAmount(),Math.pow(10,i))!==0},hasSameCurrency:function n(t){return this.getCurrency()===t.getCurrency()},hasSameAmount:function t(e){var r=n.normalizePrecision([this,e]);return r[0].getAmount()===r[1].getAmount()},toFormat:function n(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:u;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:c;var r=Kn(t);return this.toRoundedUnit(r.getMinimumFractionDigits(),e).toLocaleString(this.getLocale(),{currencyDisplay:r.getCurrencyDisplay(),useGrouping:r.getUseGrouping(),minimumFractionDigits:r.getMinimumFractionDigits(),style:r.getStyle(),currency:this.getCurrency()})},toUnit:function n(){return it.divide(this.getAmount(),Math.pow(10,i))},toRoundedUnit:function n(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:c;var r=Math.pow(10,t);return it.divide(it.round(it.multiply(this.toUnit(),r),e),r)},toObject:function n(){return{amount:r,currency:a,precision:i}},toJSON:function n(){return this.toObject()}}};var ut=Object.assign(ot,An,jn,Rn);function st(n,t=true){if(!n)n=0;function e(n){const e=t?"$0,0.00":"0,0.00";return ut({amount:n,currency:"USD"}).toFormat(e)}return n<0?`(${e(-n)})`:e(n)}function ct(n){if(!n)return"";const t=new Date(n);return On(t,"MMM d, yyyy")}function dt(n){if(!n)return"";const t=new Date(n);return On(t,"h:mmaaa")}function ft(){var n;const t=getComputedStyle(document.body);return((n=t===null||t===void 0?void 0:t.getPropertyValue("--jfi-load-google-font"))===null||n===void 0?void 0:n.trim().replace(/'|"/g,"").replace(" ","+"))||null}const lt=n=>{switch(n){case"authorized":return"<span class='badge bg-primary' title='This card payment was authorized, but not captured. It could still succeed or fail.'>Authorized</span>";case"disputed":return"<span class='badge bg-primary' title='The account holder disputed this payment. The amount has been returned and a fee assessed.'>Disputed</span>";case"achFailed":return"<span class='badge bg-danger' title='The funds couldn't be collected for this ACH payment (in addition to the original payment, an ACH return and fee will appear in a payout)'>Failed</span>";case"failed":return"<span class='badge bg-danger' title='This card payment didn't go through (it won't appear in a payout)'>Failed</span>";case"fully_refunded":return"<span class='badge bg-primary' title='The full amount of this payment has been refunded'>Fully Refunded</span>";case"partially_refunded":return"<span class='badge bg-primary' title='A portion of this payment has been refunded'>Partially Refunded</span>";case"pending":return"<span class='badge bg-secondary' title='This ACH payment was processed, but the funds haven't settled. It could still succeed or fail.'>Pending</span>";case"succeeded":return"<span class='badge bg-success' title='This payment was successfully captured'>Successful</span>"}};const vt=n=>{switch(n){case"canceled":return"<span class='badge bg-danger' title='Transfer to your bank account failed'>Canceled</span>";case"failed":return"<span class='badge bg-danger' title='Transfer to your bank account failed'>Failed</span>";case"forwarded":return"<span class='badge bg-secondary' title='This payout initially failed; the funds have been forwarded to your next successful payout'>Forwarded</span>";case"in_transit":return"<span class='badge bg-primary' title='Transfer to your bank account has been initiated'>In Transit</span>";case"paid":return"<span class='badge bg-success' title='Successfully deposited into your bank account'>Paid</span>";case"pending":return"<span class='badge bg-primary' title='Batched and scheduled to be transferred'>Pending</span>";case"scheduled":return"<span class='badge bg-primary' title='Batched and scheduled to be transferred'>Scheduled</span>";case"withdrawn":return"<span class='badge bg-success' title='Negative payout balance successfully withdrawn from your bank account'>Withdrawn</span>"}};export{lt as M,st as a,dt as b,vt as c,ft as e,ct as f};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
function n(t){"@babel/helpers - typeof";return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},n(t)}function t(n){if(n===null||n===true||n===false){return NaN}var t=Number(n);if(isNaN(t)){return t}return t<0?Math.ceil(t):Math.floor(t)}function e(n,t){if(t.length<n){throw new TypeError(n+" argument"+(n>1?"s":"")+" required, but only "+t.length+" present")}}function r(t){e(1,arguments);var r=Object.prototype.toString.call(t);if(t instanceof Date||n(t)==="object"&&r==="[object Date]"){return new Date(t.getTime())}else if(typeof t==="number"||r==="[object Number]"){return new Date(t)}else{if((typeof t==="string"||r==="[object String]")&&typeof console!=="undefined"){console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments");console.warn((new Error).stack)}return new Date(NaN)}}function a(n,a){e(2,arguments);var i=r(n).getTime();var o=t(a);return new Date(i+o)}var i={};function o(){return i}function u(n){var t=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));t.setUTCFullYear(n.getFullYear());return n.getTime()-t.getTime()}function s(t){e(1,arguments);return t instanceof Date||n(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function c(n){e(1,arguments);if(!s(n)&&typeof n!=="number"){return false}var t=r(n);return!isNaN(Number(t))}function d(n,r){e(2,arguments);var i=t(r);return a(n,-i)}var f=864e5;function l(n){e(1,arguments);var t=r(n);var a=t.getTime();t.setUTCMonth(0,1);t.setUTCHours(0,0,0,0);var i=t.getTime();var o=a-i;return Math.floor(o/f)+1}function v(n){e(1,arguments);var t=1;var a=r(n);var i=a.getUTCDay();var o=(i<t?7:0)+i-t;a.setUTCDate(a.getUTCDate()-o);a.setUTCHours(0,0,0,0);return a}function h(n){e(1,arguments);var t=r(n);var a=t.getUTCFullYear();var i=new Date(0);i.setUTCFullYear(a+1,0,4);i.setUTCHours(0,0,0,0);var o=v(i);var u=new Date(0);u.setUTCFullYear(a,0,4);u.setUTCHours(0,0,0,0);var s=v(u);if(t.getTime()>=o.getTime()){return a+1}else if(t.getTime()>=s.getTime()){return a}else{return a-1}}function m(n){e(1,arguments);var t=h(n);var r=new Date(0);r.setUTCFullYear(t,0,4);r.setUTCHours(0,0,0,0);var a=v(r);return a}var b=6048e5;function g(n){e(1,arguments);var t=r(n);var a=v(t).getTime()-m(t).getTime();return Math.round(a/b)+1}function p(n,a){var i,u,s,c,d,f,l,v;e(1,arguments);var h=o();var m=t((i=(u=(s=(c=a===null||a===void 0?void 0:a.weekStartsOn)!==null&&c!==void 0?c:a===null||a===void 0?void 0:(d=a.locale)===null||d===void 0?void 0:(f=d.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&s!==void 0?s:h.weekStartsOn)!==null&&u!==void 0?u:(l=h.locale)===null||l===void 0?void 0:(v=l.options)===null||v===void 0?void 0:v.weekStartsOn)!==null&&i!==void 0?i:0);if(!(m>=0&&m<=6)){throw new RangeError("weekStartsOn must be between 0 and 6 inclusively")}var b=r(n);var g=b.getUTCDay();var p=(g<m?7:0)+g-m;b.setUTCDate(b.getUTCDate()-p);b.setUTCHours(0,0,0,0);return b}function w(n,a){var i,u,s,c,d,f,l,v;e(1,arguments);var h=r(n);var m=h.getUTCFullYear();var b=o();var g=t((i=(u=(s=(c=a===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&c!==void 0?c:a===null||a===void 0?void 0:(d=a.locale)===null||d===void 0?void 0:(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&s!==void 0?s:b.firstWeekContainsDate)!==null&&u!==void 0?u:(l=b.locale)===null||l===void 0?void 0:(v=l.options)===null||v===void 0?void 0:v.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(g>=1&&g<=7)){throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively")}var w=new Date(0);w.setUTCFullYear(m+1,0,g);w.setUTCHours(0,0,0,0);var y=p(w,a);var M=new Date(0);M.setUTCFullYear(m,0,g);M.setUTCHours(0,0,0,0);var S=p(M,a);if(h.getTime()>=y.getTime()){return m+1}else if(h.getTime()>=S.getTime()){return m}else{return m-1}}function y(n,r){var a,i,u,s,c,d,f,l;e(1,arguments);var v=o();var h=t((a=(i=(u=(s=r===null||r===void 0?void 0:r.firstWeekContainsDate)!==null&&s!==void 0?s:r===null||r===void 0?void 0:(c=r.locale)===null||c===void 0?void 0:(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&u!==void 0?u:v.firstWeekContainsDate)!==null&&i!==void 0?i:(f=v.locale)===null||f===void 0?void 0:(l=f.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&a!==void 0?a:1);var m=w(n,r);var b=new Date(0);b.setUTCFullYear(m,0,h);b.setUTCHours(0,0,0,0);var g=p(b,r);return g}var M=6048e5;function S(n,t){e(1,arguments);var a=r(n);var i=p(a,t).getTime()-y(a,t).getTime();return Math.round(i/M)+1}function x(n,t){var e=n<0?"-":"";var r=Math.abs(n).toString();while(r.length<t){r="0"+r}return e+r}var E={y:function n(t,e){var r=t.getUTCFullYear();var a=r>0?r:1-r;return x(e==="yy"?a%100:a,e.length)},M:function n(t,e){var r=t.getUTCMonth();return e==="M"?String(r+1):x(r+1,2)},d:function n(t,e){return x(t.getUTCDate(),e.length)},a:function n(t,e){var r=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function n(t,e){return x(t.getUTCHours()%12||12,e.length)},H:function n(t,e){return x(t.getUTCHours(),e.length)},m:function n(t,e){return x(t.getUTCMinutes(),e.length)},s:function n(t,e){return x(t.getUTCSeconds(),e.length)},S:function n(t,e){var r=e.length;var a=t.getUTCMilliseconds();var i=Math.floor(a*Math.pow(10,r-3));return x(i,e.length)}};var D={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};var P={G:function n(t,e,r){var a=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});case"GGGG":default:return r.era(a,{width:"wide"})}},y:function n(t,e,r){if(e==="yo"){var a=t.getUTCFullYear();var i=a>0?a:1-a;return r.ordinalNumber(i,{unit:"year"})}return E.y(t,e)},Y:function n(t,e,r,a){var i=w(t,a);var o=i>0?i:1-i;if(e==="YY"){var u=o%100;return x(u,2)}if(e==="Yo"){return r.ordinalNumber(o,{unit:"year"})}return x(o,e.length)},R:function n(t,e){var r=h(t);return x(r,e.length)},u:function n(t,e){var r=t.getUTCFullYear();return x(r,e.length)},Q:function n(t,e,r){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(a);case"QQ":return x(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function n(t,e,r){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(a);case"qq":return x(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function n(t,e,r){var a=t.getUTCMonth();switch(e){case"M":case"MM":return E.M(t,e);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(a,{width:"wide",context:"formatting"})}},L:function n(t,e,r){var a=t.getUTCMonth();switch(e){case"L":return String(a+1);case"LL":return x(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(a,{width:"wide",context:"standalone"})}},w:function n(t,e,r,a){var i=S(t,a);if(e==="wo"){return r.ordinalNumber(i,{unit:"week"})}return x(i,e.length)},I:function n(t,e,r){var a=g(t);if(e==="Io"){return r.ordinalNumber(a,{unit:"week"})}return x(a,e.length)},d:function n(t,e,r){if(e==="do"){return r.ordinalNumber(t.getUTCDate(),{unit:"date"})}return E.d(t,e)},D:function n(t,e,r){var a=l(t);if(e==="Do"){return r.ordinalNumber(a,{unit:"dayOfYear"})}return x(a,e.length)},E:function n(t,e,r){var a=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});case"EEEE":default:return r.day(a,{width:"wide",context:"formatting"})}},e:function n(t,e,r,a){var i=t.getUTCDay();var o=(i-a.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return x(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function n(t,e,r,a){var i=t.getUTCDay();var o=(i-a.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return x(o,e.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function n(t,e,r){var a=t.getUTCDay();var i=a===0?7:a;switch(e){case"i":return String(i);case"ii":return x(i,e.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});case"iiii":default:return r.day(a,{width:"wide",context:"formatting"})}},a:function n(t,e,r){var a=t.getUTCHours();var i=a/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function n(t,e,r){var a=t.getUTCHours();var i;if(a===12){i=D.noon}else if(a===0){i=D.midnight}else{i=a/12>=1?"pm":"am"}switch(e){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function n(t,e,r){var a=t.getUTCHours();var i;if(a>=17){i=D.evening}else if(a>=12){i=D.afternoon}else if(a>=4){i=D.morning}else{i=D.night}switch(e){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function n(t,e,r){if(e==="ho"){var a=t.getUTCHours()%12;if(a===0)a=12;return r.ordinalNumber(a,{unit:"hour"})}return E.h(t,e)},H:function n(t,e,r){if(e==="Ho"){return r.ordinalNumber(t.getUTCHours(),{unit:"hour"})}return E.H(t,e)},K:function n(t,e,r){var a=t.getUTCHours()%12;if(e==="Ko"){return r.ordinalNumber(a,{unit:"hour"})}return x(a,e.length)},k:function n(t,e,r){var a=t.getUTCHours();if(a===0)a=24;if(e==="ko"){return r.ordinalNumber(a,{unit:"hour"})}return x(a,e.length)},m:function n(t,e,r){if(e==="mo"){return r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"})}return E.m(t,e)},s:function n(t,e,r){if(e==="so"){return r.ordinalNumber(t.getUTCSeconds(),{unit:"second"})}return E.s(t,e)},S:function n(t,e){return E.S(t,e)},X:function n(t,e,r,a){var i=a._originalDate||t;var o=i.getTimezoneOffset();if(o===0){return"Z"}switch(e){case"X":return O(o);case"XXXX":case"XX":return j(o);case"XXXXX":case"XXX":default:return j(o,":")}},x:function n(t,e,r,a){var i=a._originalDate||t;var o=i.getTimezoneOffset();switch(e){case"x":return O(o);case"xxxx":case"xx":return j(o);case"xxxxx":case"xxx":default:return j(o,":")}},O:function n(t,e,r,a){var i=a._originalDate||t;var o=i.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+T(o,":");case"OOOO":default:return"GMT"+j(o,":")}},z:function n(t,e,r,a){var i=a._originalDate||t;var o=i.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+T(o,":");case"zzzz":default:return"GMT"+j(o,":")}},t:function n(t,e,r,a){var i=a._originalDate||t;var o=Math.floor(i.getTime()/1e3);return x(o,e.length)},T:function n(t,e,r,a){var i=a._originalDate||t;var o=i.getTime();return x(o,e.length)}};function T(n,t){var e=n>0?"-":"+";var r=Math.abs(n);var a=Math.floor(r/60);var i=r%60;if(i===0){return e+String(a)}var o=t||"";return e+String(a)+o+x(i,2)}function O(n,t){if(n%60===0){var e=n>0?"-":"+";return e+x(Math.abs(n)/60,2)}return j(n,t)}function j(n,t){var e=t||"";var r=n>0?"-":"+";var a=Math.abs(n);var i=x(Math.floor(a/60),2);var o=x(a%60,2);return r+i+e+o}var A=function n(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}};var W=function n(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}};var k=function n(t,e){var r=t.match(/(P+)(p+)?/)||[];var a=r[1];var i=r[2];if(!i){return A(t,e)}var o;switch(a){case"P":o=e.dateTime({width:"short"});break;case"PP":o=e.dateTime({width:"medium"});break;case"PPP":o=e.dateTime({width:"long"});break;case"PPPP":default:o=e.dateTime({width:"full"});break}return o.replace("{{date}}",A(a,e)).replace("{{time}}",W(i,e))};var N={p:W,P:k};var Y=["D","DD"];var q=["YY","YYYY"];function F(n){return Y.indexOf(n)!==-1}function L(n){return q.indexOf(n)!==-1}function R(n,t,e){if(n==="YYYY"){throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}else if(n==="YY"){throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}else if(n==="D"){throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}else if(n==="DD"){throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}}var X={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};var G=function n(t,e,r){var a;var i=X[t];if(typeof i==="string"){a=i}else if(e===1){a=i.one}else{a=i.other.replace("{{count}}",e.toString())}if(r!==null&&r!==void 0&&r.addSuffix){if(r.comparison&&r.comparison>0){return"in "+a}else{return a+" ago"}}return a};function z(n){return function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var e=t.width?String(t.width):n.defaultWidth;var r=n.formats[e]||n.formats[n.defaultWidth];return r}}var B={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"};var Q={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"};var C={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};var _={date:z({formats:B,defaultWidth:"full"}),time:z({formats:Q,defaultWidth:"full"}),dateTime:z({formats:C,defaultWidth:"full"})};var H={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};var U=function n(t,e,r,a){return H[t]};function I(n){return function(t,e){var r=e!==null&&e!==void 0&&e.context?String(e.context):"standalone";var a;if(r==="formatting"&&n.formattingValues){var i=n.defaultFormattingWidth||n.defaultWidth;var o=e!==null&&e!==void 0&&e.width?String(e.width):i;a=n.formattingValues[o]||n.formattingValues[i]}else{var u=n.defaultWidth;var s=e!==null&&e!==void 0&&e.width?String(e.width):n.defaultWidth;a=n.values[s]||n.values[u]}var c=n.argumentCallback?n.argumentCallback(t):t;return a[c]}}var $={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]};var J={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]};var Z={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]};var V={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]};var K={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}};var nn={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}};var tn=function n(t,e){var r=Number(t);var a=r%100;if(a>20||a<10){switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}}return r+"th"};var en={ordinalNumber:tn,era:I({values:$,defaultWidth:"wide"}),quarter:I({values:J,defaultWidth:"wide",argumentCallback:function n(t){return t-1}}),month:I({values:Z,defaultWidth:"wide"}),day:I({values:V,defaultWidth:"wide"}),dayPeriod:I({values:K,defaultWidth:"wide",formattingValues:nn,defaultFormattingWidth:"wide"})};function rn(n){return function(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var r=e.width;var a=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth];var i=t.match(a);if(!i){return null}var o=i[0];var u=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth];var s=Array.isArray(u)?on(u,(function(n){return n.test(o)})):an(u,(function(n){return n.test(o)}));var c;c=n.valueCallback?n.valueCallback(s):s;c=e.valueCallback?e.valueCallback(c):c;var d=t.slice(o.length);return{value:c,rest:d}}}function an(n,t){for(var e in n){if(n.hasOwnProperty(e)&&t(n[e])){return e}}return undefined}function on(n,t){for(var e=0;e<n.length;e++){if(t(n[e])){return e}}return undefined}function un(n){return function(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var r=t.match(n.matchPattern);if(!r)return null;var a=r[0];var i=t.match(n.parsePattern);if(!i)return null;var o=n.valueCallback?n.valueCallback(i[0]):i[0];o=e.valueCallback?e.valueCallback(o):o;var u=t.slice(a.length);return{value:o,rest:u}}}var sn=/^(\d+)(th|st|nd|rd)?/i;var cn=/\d+/i;var dn={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i};var fn={any:[/^b/i,/^(a|c)/i]};var ln={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i};var vn={any:[/1/i,/2/i,/3/i,/4/i]};var hn={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i};var mn={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]};var bn={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i};var gn={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]};var pn={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i};var wn={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}};var yn={ordinalNumber:un({matchPattern:sn,parsePattern:cn,valueCallback:function n(t){return parseInt(t,10)}}),era:rn({matchPatterns:dn,defaultMatchWidth:"wide",parsePatterns:fn,defaultParseWidth:"any"}),quarter:rn({matchPatterns:ln,defaultMatchWidth:"wide",parsePatterns:vn,defaultParseWidth:"any",valueCallback:function n(t){return t+1}}),month:rn({matchPatterns:hn,defaultMatchWidth:"wide",parsePatterns:mn,defaultParseWidth:"any"}),day:rn({matchPatterns:bn,defaultMatchWidth:"wide",parsePatterns:gn,defaultParseWidth:"any"}),dayPeriod:rn({matchPatterns:pn,defaultMatchWidth:"any",parsePatterns:wn,defaultParseWidth:"any"})};var Mn={code:"en-US",formatDistance:G,formatLong:_,formatRelative:U,localize:en,match:yn,options:{weekStartsOn:0,firstWeekContainsDate:1}};var Sn=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g;var xn=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;var En=/^'([^]*?)'?$/;var Dn=/''/g;var Pn=/[a-zA-Z]/;function Tn(n,a,i){var s,f,l,v,h,m,b,g,p,w,y,M,S,x,E,D,T,O;e(2,arguments);var j=String(a);var A=o();var W=(s=(f=i===null||i===void 0?void 0:i.locale)!==null&&f!==void 0?f:A.locale)!==null&&s!==void 0?s:Mn;var k=t((l=(v=(h=(m=i===null||i===void 0?void 0:i.firstWeekContainsDate)!==null&&m!==void 0?m:i===null||i===void 0?void 0:(b=i.locale)===null||b===void 0?void 0:(g=b.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&h!==void 0?h:A.firstWeekContainsDate)!==null&&v!==void 0?v:(p=A.locale)===null||p===void 0?void 0:(w=p.options)===null||w===void 0?void 0:w.firstWeekContainsDate)!==null&&l!==void 0?l:1);if(!(k>=1&&k<=7)){throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively")}var Y=t((y=(M=(S=(x=i===null||i===void 0?void 0:i.weekStartsOn)!==null&&x!==void 0?x:i===null||i===void 0?void 0:(E=i.locale)===null||E===void 0?void 0:(D=E.options)===null||D===void 0?void 0:D.weekStartsOn)!==null&&S!==void 0?S:A.weekStartsOn)!==null&&M!==void 0?M:(T=A.locale)===null||T===void 0?void 0:(O=T.options)===null||O===void 0?void 0:O.weekStartsOn)!==null&&y!==void 0?y:0);if(!(Y>=0&&Y<=6)){throw new RangeError("weekStartsOn must be between 0 and 6 inclusively")}if(!W.localize){throw new RangeError("locale must contain localize property")}if(!W.formatLong){throw new RangeError("locale must contain formatLong property")}var q=r(n);if(!c(q)){throw new RangeError("Invalid time value")}var X=u(q);var G=d(q,X);var z={firstWeekContainsDate:k,weekStartsOn:Y,locale:W,_originalDate:q};var B=j.match(xn).map((function(n){var t=n[0];if(t==="p"||t==="P"){var e=N[t];return e(n,W.formatLong)}return n})).join("").match(Sn).map((function(t){if(t==="''"){return"'"}var e=t[0];if(e==="'"){return On(t)}var r=P[e];if(r){if(!(i!==null&&i!==void 0&&i.useAdditionalWeekYearTokens)&&L(t)){R(t,a,String(n))}if(!(i!==null&&i!==void 0&&i.useAdditionalDayOfYearTokens)&&F(t)){R(t,a,String(n))}return r(G,t,W.localize,z)}if(e.match(Pn)){throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`")}return t})).join("");return B}function On(n){var t=n.match(En);if(!t){return n}return t[1].replace(Dn,"'")}var jn={defaultAmount:0,defaultCurrency:"USD",defaultPrecision:2};var An={globalLocale:"en-US",globalFormat:"$0,0.00",globalRoundingMode:"HALF_EVEN",globalFormatRoundingMode:"HALF_AWAY_FROM_ZERO",globalExchangeRatesApi:{endpoint:undefined,headers:undefined,propertyPath:undefined}};function Wn(n){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){Wn=function(n){return typeof n}}else{Wn=function(n){return n&&typeof Symbol==="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n}}return Wn(n)}function kn(n){return Nn(n)||Yn(n)||qn(n)||Ln()}function Nn(n){if(Array.isArray(n))return n}function Yn(n){if(typeof Symbol!=="undefined"&&Symbol.iterator in Object(n))return Array.from(n)}function qn(n,t){if(!n)return;if(typeof n==="string")return Fn(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor)e=n.constructor.name;if(e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Fn(n,t)}function Fn(n,t){if(t==null||t>n.length)t=n.length;for(var e=0,r=new Array(t);e<t;e++)r[e]=n[e];return r}function Ln(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Rn={normalizePrecision:function n(t){var e=t.reduce((function(n,t){return Math.max(n.getPrecision(),t.getPrecision())}));return t.map((function(n){return n.getPrecision()!==e?n.convertPrecision(e):n}))},minimum:function n(t){var e=kn(t),r=e[0],a=e.slice(1);var i=r;a.forEach((function(n){i=i.lessThan(n)?i:n}));return i},maximum:function n(t){var e=kn(t),r=e[0],a=e.slice(1);var i=r;a.forEach((function(n){i=i.greaterThan(n)?i:n}));return i}};function Xn(n){return!isNaN(parseInt(n))&&isFinite(n)}function Gn(n){return Xn(n)&&n<=100&&n>=0}function zn(n){return n.length>0&&n.every((function(n){return n>=0}))&&n.some((function(n){return n>0}))}function Bn(n){return n%2===0}function Qn(n){return Xn(n)&&!Number.isInteger(n)}function Cn(){var n=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var t=n.toString();if(t.indexOf("e-")>0){return parseInt(t.split("e-")[1])}else{var e=t.split(".")[1];return e?e.length:0}}function _n(n){return Math.abs(n)%1===.5}function Hn(n){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return new Promise((function(e,r){var a=Object.assign(new XMLHttpRequest,{onreadystatechange:function n(){if(a.readyState===4){if(a.status>=200&&a.status<400)e(JSON.parse(a.responseText));else r(new Error(a.statusText))}},onerror:function n(){r(new Error("Network error"))}});a.open("GET",n,true);Un(a,t.headers);a.send()}))}function Un(n){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};for(var e in t){n.setRequestHeader(e,t[e])}return n}function In(n){return typeof n==="undefined"}function $n(n){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:".";var e={};Object.entries(n).forEach((function(n){if(Wn(n[1])==="object"){var r=$n(n[1]);Object.entries(r).forEach((function(r){e[n[0]+t+r[0]]=r[1]}))}else{e[n[0]]=n[1]}}));return e}function Jn(n){return Boolean(n)&&(Wn(n)==="object"||typeof n==="function")&&typeof n.then==="function"}function Zn(){var n=function n(t,e){var r=function n(t){return Math.pow(10,Cn(t))};var a=Math.max(r(t),r(e));return Math.round(t*a)*Math.round(e*a)/(a*a)};var t={HALF_ODD:function n(t){var e=Math.round(t);return _n(t)?Bn(e)?e-1:e:e},HALF_EVEN:function n(t){var e=Math.round(t);return _n(t)?Bn(e)?e:e-1:e},HALF_UP:function n(t){return Math.round(t)},HALF_DOWN:function n(t){return _n(t)?Math.floor(t):Math.round(t)},HALF_TOWARDS_ZERO:function n(t){return _n(t)?Math.sign(t)*Math.floor(Math.abs(t)):Math.round(t)},HALF_AWAY_FROM_ZERO:function n(t){return _n(t)?Math.sign(t)*Math.ceil(Math.abs(t)):Math.round(t)},DOWN:function n(t){return Math.floor(t)}};return{add:function n(t,e){return t+e},subtract:function n(t,e){return t-e},multiply:function t(e,r){return Qn(e)||Qn(r)?n(e,r):e*r},divide:function n(t,e){return t/e},modulo:function n(t,e){return t%e},round:function n(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"HALF_EVEN";return t[r](e)}}}var Vn=Zn();function Kn(n){var t=/^(?:(\$|USD)?0(?:(,)0)?(\.)?(0+)?|0(?:(,)0)?(\.)?(0+)?\s?(dollar)?)$/gm.exec(n);return{getMatches:function n(){return t!==null?t.slice(1).filter((function(n){return!In(n)})):[]},getMinimumFractionDigits:function n(){var t=function n(t){return t==="."};return!In(this.getMatches().find(t))?this.getMatches()[Vn.add(this.getMatches().findIndex(t),1)].split("").length:0},getCurrencyDisplay:function n(){var t={USD:"code",dollar:"name",$:"symbol"};return t[this.getMatches().find((function(n){return n==="USD"||n==="dollar"||n==="$"}))]},getStyle:function n(){return!In(this.getCurrencyDisplay(this.getMatches()))?"currency":"decimal"},getUseGrouping:function n(){return!In(this.getMatches().find((function(n){return n===","})))}}}function nt(n){var t=function n(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"";var e=arguments.length>1?arguments[1]:undefined;for(var r in e){t=t.replace("{{".concat(r,"}}"),e[r])}return t};var e=function e(r,a){return Hn(t(n.endpoint,{from:r,to:a}),{headers:n.headers})};return{getExchangeRate:function r(a,i){return(Jn(n.endpoint)?n.endpoint:e(a,i)).then((function(e){return $n(e)[t(n.propertyPath,{from:a,to:i})]}))}}}function tt(n,t){var e=arguments.length>2&&arguments[2]!==undefined?arguments[2]:Error;if(!n)throw new e(t)}function et(n){tt(Gn(n),"You must provide a numeric value between 0 and 100.",RangeError)}function rt(n){tt(zn(n),"You must provide a non-empty array of numeric values greater than 0.",TypeError)}function at(n){tt(Number.isInteger(n),"You must provide an integer.",TypeError)}var it=Zn();var ot=function n(t){var e=Object.assign({},{amount:n.defaultAmount,currency:n.defaultCurrency,precision:n.defaultPrecision},t),r=e.amount,a=e.currency,i=e.precision;at(r);at(i);var o=n.globalLocale,u=n.globalFormat,s=n.globalRoundingMode,c=n.globalFormatRoundingMode;var d=Object.assign({},n.globalExchangeRatesApi);var f=function t(e){var o=Object.assign({},Object.assign({},{amount:r,currency:a,precision:i},e),Object.assign({},{locale:this.locale},e));return Object.assign(n({amount:o.amount,currency:o.currency,precision:o.precision}),{locale:o.locale})};var l=function n(t){tt(this.hasSameCurrency(t),"You must provide a Dinero instance with the same currency.",TypeError)};return{getAmount:function n(){return r},getCurrency:function n(){return a},getLocale:function n(){return this.locale||o},setLocale:function n(t){return f.call(this,{locale:t})},getPrecision:function n(){return i},convertPrecision:function n(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:c;at(t);var r=this.getPrecision();var a=t>r;var i=a?it.multiply:it.divide;var o=a?[t,r]:[r,t];var u=Math.pow(10,it.subtract.apply(it,o));return f.call(this,{amount:it.round(i(this.getAmount(),u),e),precision:t})},add:function t(e){l.call(this,e);var r=n.normalizePrecision([this,e]);return f.call(this,{amount:it.add(r[0].getAmount(),r[1].getAmount()),precision:r[0].getPrecision()})},subtract:function t(e){l.call(this,e);var r=n.normalizePrecision([this,e]);return f.call(this,{amount:it.subtract(r[0].getAmount(),r[1].getAmount()),precision:r[0].getPrecision()})},multiply:function n(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:s;return f.call(this,{amount:it.round(it.multiply(this.getAmount(),t),e)})},divide:function n(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:s;return f.call(this,{amount:it.round(it.divide(this.getAmount(),t),e)})},percentage:function n(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:s;et(t);return this.multiply(it.divide(t,100),e)},allocate:function n(t){var e=this;rt(t);var r=t.reduce((function(n,t){return it.add(n,t)}));var a=this.getAmount();var i=t.map((function(n){var t=Math.floor(it.divide(it.multiply(e.getAmount(),n),r));a=it.subtract(a,t);return f.call(e,{amount:t})}));var o=0;while(a>0){if(t[o]>0){i[o]=i[o].add(f.call(this,{amount:1}));a=it.subtract(a,1)}o+=1}return i},convert:function n(t){var e=this;var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},a=r.endpoint,i=a===void 0?d.endpoint:a,o=r.propertyPath,u=o===void 0?d.propertyPath||"rates.{{to}}":o,c=r.headers,l=c===void 0?d.headers:c,v=r.roundingMode,h=v===void 0?s:v;var m=Object.assign({},{endpoint:i,propertyPath:u,headers:l,roundingMode:h});return nt(m).getExchangeRate(this.getCurrency(),t).then((function(n){tt(!In(n),'No rate was found for the destination currency "'.concat(t,'".'),TypeError);return f.call(e,{amount:it.round(it.multiply(e.getAmount(),parseFloat(n)),m.roundingMode),currency:t})}))},equalsTo:function n(t){return this.hasSameAmount(t)&&this.hasSameCurrency(t)},lessThan:function t(e){l.call(this,e);var r=n.normalizePrecision([this,e]);return r[0].getAmount()<r[1].getAmount()},lessThanOrEqual:function t(e){l.call(this,e);var r=n.normalizePrecision([this,e]);return r[0].getAmount()<=r[1].getAmount()},greaterThan:function t(e){l.call(this,e);var r=n.normalizePrecision([this,e]);return r[0].getAmount()>r[1].getAmount()},greaterThanOrEqual:function t(e){l.call(this,e);var r=n.normalizePrecision([this,e]);return r[0].getAmount()>=r[1].getAmount()},isZero:function n(){return this.getAmount()===0},isPositive:function n(){return this.getAmount()>=0},isNegative:function n(){return this.getAmount()<0},hasSubUnits:function n(){return it.modulo(this.getAmount(),Math.pow(10,i))!==0},hasCents:function n(){return it.modulo(this.getAmount(),Math.pow(10,i))!==0},hasSameCurrency:function n(t){return this.getCurrency()===t.getCurrency()},hasSameAmount:function t(e){var r=n.normalizePrecision([this,e]);return r[0].getAmount()===r[1].getAmount()},toFormat:function n(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:u;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:c;var r=Kn(t);return this.toRoundedUnit(r.getMinimumFractionDigits(),e).toLocaleString(this.getLocale(),{currencyDisplay:r.getCurrencyDisplay(),useGrouping:r.getUseGrouping(),minimumFractionDigits:r.getMinimumFractionDigits(),style:r.getStyle(),currency:this.getCurrency()})},toUnit:function n(){return it.divide(this.getAmount(),Math.pow(10,i))},toRoundedUnit:function n(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:c;var r=Math.pow(10,t);return it.divide(it.round(it.multiply(this.toUnit(),r),e),r)},toObject:function n(){return{amount:r,currency:a,precision:i}},toJSON:function n(){return this.toObject()}}};var ut=Object.assign(ot,jn,An,Rn);function st(n,t=true){if(!n)n=0;function e(n){const e=t?"$0,0.00":"0,0.00";return ut({amount:n,currency:"USD"}).toFormat(e)}return n<0?`(${e(-n)})`:e(n)}function ct(n){if(!n)n=0;function t(n){const t=n/100;return t.toFixed(2).toString()+"%"}return t(n)}function dt(n){if(!n)return"";const t=new Date(n);return Tn(t,"MMM d, yyyy")}function ft(n){if(typeof n==="string"){n=new Date(n)}if(Object.prototype.toString.call(n)==="[object Date]"){if(isNaN(n.getTime())){return"Invalid date"}}else{return"Invalid input"}const t={year:"numeric",month:"short",day:"numeric"};return n.toLocaleDateString("en-US",t)}function lt(n){if(!n)return"";const t=new Date(n);return Tn(t,"h:mmaaa")}function vt(n){return`${n.address_line1}, ${n.address_city}, ${n.address_state}, ${n.address_postal_code}`}function ht(){var n;const t=getComputedStyle(document.body);return((n=t===null||t===void 0?void 0:t.getPropertyValue("--jfi-load-google-font"))===null||n===void 0?void 0:n.trim().replace(/'|"/g,"").replace(" ","+"))||null}const mt=n=>{switch(n){case"authorized":return"<span class='badge bg-primary' title='This card payment was authorized, but not captured. It could still succeed or fail.'>Authorized</span>";case"disputed":return"<span class='badge bg-primary' title='The account holder disputed this payment. The amount has been returned and a fee assessed.'>Disputed</span>";case"achFailed":return"<span class='badge bg-danger' title='The funds couldn't be collected for this ACH payment (in addition to the original payment, an ACH return and fee will appear in a payout)'>Failed</span>";case"failed":return"<span class='badge bg-danger' title='This card payment didn't go through (it won't appear in a payout)'>Failed</span>";case"fully_refunded":return"<span class='badge bg-primary' title='The full amount of this payment has been refunded'>Fully Refunded</span>";case"partially_refunded":return"<span class='badge bg-primary' title='A portion of this payment has been refunded'>Partially Refunded</span>";case"pending":return"<span class='badge bg-secondary' title='This ACH payment was processed, but the funds haven't settled. It could still succeed or fail.'>Pending</span>";case"succeeded":return"<span class='badge bg-success' title='This payment was successfully captured'>Successful</span>"}};const bt=n=>{switch(n){case"canceled":return"<span class='badge bg-danger' title='Transfer to your bank account failed'>Canceled</span>";case"failed":return"<span class='badge bg-danger' title='Transfer to your bank account failed'>Failed</span>";case"forwarded":return"<span class='badge bg-secondary' title='This payout initially failed; the funds have been forwarded to your next successful payout'>Forwarded</span>";case"in_transit":return"<span class='badge bg-primary' title='Transfer to your bank account has been initiated'>In Transit</span>";case"paid":return"<span class='badge bg-success' title='Successfully deposited into your bank account'>Paid</span>";case"pending":return"<span class='badge bg-primary' title='Batched and scheduled to be transferred'>Pending</span>";case"scheduled":return"<span class='badge bg-primary' title='Batched and scheduled to be transferred'>Scheduled</span>";case"withdrawn":return"<span class='badge bg-success' title='Negative payout balance successfully withdrawn from your bank account'>Withdrawn</span>"}};const gt=n=>{switch(n){case"created":return"<span class='badge bg-primary' title='This sub account has been created, but we haven't received their onboarding yet'>Canceled</span>";case"submitted":return"<span class='badge bg-info' title='We've received this sub account's onboarding and we're reviewing their information'>Submitted</span>";case"information_needed":return"<span class='badge bg-warning' title='We've reviewed this sub account's onboarding information and found an issue'>Information Needed</span>";case"enabled":return"<span class='badge bg-success' title='This sub account is approved to process payments'>Enabled</span>";case"disabled":return"<span class='badge bg-danger' title='This sub account was previously approved, but has since become ineligible to process payments'>Disabled</span>";case"rejected":return"<span class='badge bg-danger' title='This sub account didn't pass approval, so they won't be able to process payments'>Rejected</span>";case"archived":return"<span class='badge bg-primary' title='This sub account has been archived. They won't be able to process payments unless they are restored'>Archived</span>"}};function pt(n){return n.split("_").map((n=>n.charAt(0).toUpperCase()+n.slice(1))).join(" ")}export{mt as M,lt as a,st as b,bt as c,gt as d,ht as e,dt as f,ct as g,ft as h,vt as i,pt as s};
|
|
2
|
+
//# sourceMappingURL=p-4d37473a.js.map
|