@foxy.io/elements 1.43.0-beta.1 → 1.43.0-beta.3
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/cdn/foxy-access-recovery-form.js +1 -1
- package/dist/cdn/foxy-address-card.js +5 -5
- package/dist/cdn/foxy-address-form.js +1 -1
- package/dist/cdn/foxy-admin-subscription-card.js +1 -1
- package/dist/cdn/foxy-admin-subscription-form.js +1 -1
- package/dist/cdn/foxy-api-browser.js +1 -1
- package/dist/cdn/foxy-applied-coupon-code-card.js +1 -1
- package/dist/cdn/foxy-applied-coupon-code-form.js +1 -1
- package/dist/cdn/foxy-applied-tax-card.js +1 -1
- package/dist/cdn/foxy-attribute-card.js +1 -1
- package/dist/cdn/foxy-attribute-form.js +1 -1
- package/dist/cdn/foxy-billing-address-card.js +1 -1
- package/dist/cdn/foxy-cancellation-form.js +1 -1
- package/dist/cdn/foxy-cart-card.js +1 -1
- package/dist/cdn/foxy-cart-form.js +2 -2
- package/dist/cdn/foxy-client-card.js +1 -1
- package/dist/cdn/foxy-client-form.js +1 -1
- package/dist/cdn/foxy-collection-page.js +1 -1
- package/dist/cdn/foxy-collection-pages.js +1 -1
- package/dist/cdn/foxy-copy-to-clipboard.js +1 -1
- package/dist/cdn/foxy-coupon-card.js +1 -1
- package/dist/cdn/foxy-coupon-code-card.js +1 -1
- package/dist/cdn/foxy-coupon-code-form.js +1 -1
- package/dist/cdn/foxy-coupon-codes-form.js +1 -1
- package/dist/cdn/foxy-coupon-detail-card.js +1 -1
- package/dist/cdn/foxy-coupon-form.js +1 -1
- package/dist/cdn/foxy-custom-field-card.js +1 -1
- package/dist/cdn/foxy-custom-field-form.js +1 -1
- package/dist/cdn/foxy-customer-api.js +1 -1
- package/dist/cdn/foxy-customer-card.js +1 -1
- package/dist/cdn/foxy-customer-form.js +1 -1
- package/dist/cdn/foxy-customer-portal-settings-form.js +1 -1
- package/dist/cdn/foxy-customer-portal-settings.js +1 -1
- package/dist/cdn/foxy-customer-portal.js +13 -13
- package/dist/cdn/foxy-customer.js +5 -5
- package/dist/cdn/foxy-customers-table.js +1 -1
- package/dist/cdn/foxy-discount-builder.js +1 -1
- package/dist/cdn/foxy-discount-card.js +1 -1
- package/dist/cdn/foxy-discount-detail-card.js +1 -1
- package/dist/cdn/foxy-donation.js +1 -1
- package/dist/cdn/foxy-downloadable-card.js +1 -1
- package/dist/cdn/foxy-downloadable-form.js +2 -2
- package/dist/cdn/foxy-email-template-card.js +1 -1
- package/dist/cdn/foxy-email-template-form.js +1 -1
- package/dist/cdn/foxy-error-entry-card.js +1 -1
- package/dist/cdn/foxy-experimental-add-to-cart-builder.js +1 -1
- package/dist/cdn/foxy-filter-attribute-card.js +1 -1
- package/dist/cdn/foxy-filter-attribute-form.js +1 -1
- package/dist/cdn/foxy-form-dialog.js +1 -1
- package/dist/cdn/foxy-generate-codes-form.js +1 -1
- package/dist/cdn/foxy-gift-card-card.js +1 -1
- package/dist/cdn/foxy-gift-card-code-card.js +1 -1
- package/dist/cdn/foxy-gift-card-code-form.js +1 -1
- package/dist/cdn/foxy-gift-card-code-log-card.js +1 -1
- package/dist/cdn/foxy-gift-card-codes-form.js +1 -1
- package/dist/cdn/foxy-gift-card-form.js +1 -1
- package/dist/cdn/foxy-i18n-editor.js +3 -3
- package/dist/cdn/foxy-i18n.js +1 -1
- package/dist/cdn/foxy-integration-card.js +1 -1
- package/dist/cdn/foxy-integration-form.js +1 -1
- package/dist/cdn/foxy-item-card.js +1 -1
- package/dist/cdn/foxy-item-category-card.js +1 -1
- package/dist/cdn/foxy-item-category-form.js +1 -1
- package/dist/cdn/foxy-item-form.js +1 -1
- package/dist/cdn/foxy-item-option-card.js +1 -1
- package/dist/cdn/foxy-item-option-form.js +1 -1
- package/dist/cdn/foxy-items-form.js +1 -1
- package/dist/cdn/foxy-native-integration-card.js +1 -1
- package/dist/cdn/foxy-native-integration-form.js +1 -1
- package/dist/cdn/foxy-nucleon-element.js +1 -1
- package/dist/cdn/foxy-pagination.js +1 -1
- package/dist/cdn/foxy-passkey-card.js +1 -1
- package/dist/cdn/foxy-passkey-form.js +1 -1
- package/dist/cdn/foxy-payment-card-embed.js +1 -1
- package/dist/cdn/foxy-payment-card.js +1 -1
- package/dist/cdn/foxy-payment-method-card.js +1 -1
- package/dist/cdn/foxy-payments-api-fraud-protection-card.js +1 -1
- package/dist/cdn/foxy-payments-api-fraud-protection-form.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-method-card.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-method-form.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-preset-card.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-preset-form.js +1 -1
- package/dist/cdn/foxy-payments-api.js +1 -1
- package/dist/cdn/foxy-query-builder.js +1 -1
- package/dist/cdn/foxy-report-form.js +2 -2
- package/dist/cdn/foxy-reports-table.js +6 -6
- package/dist/cdn/foxy-shipment-card.js +1 -1
- package/dist/cdn/foxy-shipping-container-card.js +1 -1
- package/dist/cdn/foxy-shipping-drop-type-card.js +1 -1
- package/dist/cdn/foxy-shipping-method-card.js +1 -1
- package/dist/cdn/foxy-shipping-service-card.js +1 -1
- package/dist/cdn/foxy-sign-in-form.js +1 -1
- package/dist/cdn/foxy-spinner.js +2 -2
- package/dist/cdn/foxy-store-card.js +1 -1
- package/dist/cdn/foxy-store-form.js +1 -1
- package/dist/cdn/foxy-store-shipping-method-form.js +1 -1
- package/dist/cdn/foxy-subscription-card.js +1 -1
- package/dist/cdn/foxy-subscription-form.js +1 -1
- package/dist/cdn/foxy-subscription-settings-form.js +1 -1
- package/dist/cdn/foxy-subscriptions-table.js +1 -1
- package/dist/cdn/foxy-table.js +1 -1
- package/dist/cdn/foxy-tax-card.js +1 -1
- package/dist/cdn/foxy-tax-form.js +1 -1
- package/dist/cdn/foxy-template-config-form.js +1 -1
- package/dist/cdn/foxy-template-form.js +1 -1
- package/dist/cdn/foxy-template-set-card.js +1 -1
- package/dist/cdn/foxy-template-set-form.js +1 -1
- package/dist/cdn/foxy-transaction-card.js +1 -1
- package/dist/cdn/foxy-transaction.js +1 -1
- package/dist/cdn/foxy-transactions-table.js +7 -7
- package/dist/cdn/foxy-update-payment-method-form.js +1 -1
- package/dist/cdn/foxy-user-card.js +1 -1
- package/dist/cdn/foxy-user-form.js +1 -1
- package/dist/cdn/foxy-user-invitation-card.js +1 -1
- package/dist/cdn/foxy-user-invitation-form.js +1 -1
- package/dist/cdn/foxy-users-table.js +1 -1
- package/dist/cdn/foxy-webhook-card.js +1 -1
- package/dist/cdn/foxy-webhook-form.js +1 -1
- package/dist/cdn/foxy-webhook-log-card.js +1 -1
- package/dist/cdn/foxy-webhook-status-card.js +1 -1
- package/dist/cdn/{shared-41208627.js → shared-02acac7f.js} +1 -1
- package/dist/cdn/{shared-ad60e8d1.js → shared-03b67a3d.js} +2 -2
- package/dist/cdn/{shared-cc4b3b42.js → shared-049295b7.js} +1 -1
- package/dist/cdn/{shared-2828fcbf.js → shared-0584a904.js} +1 -1
- package/dist/cdn/{shared-9342ca50.js → shared-0993c2f5.js} +1 -1
- package/dist/cdn/{shared-2aa23b5f.js → shared-0ea750af.js} +1 -1
- package/dist/cdn/shared-109cfbba.js +1 -0
- package/dist/cdn/{shared-dd303282.js → shared-10c8f21c.js} +1 -1
- package/dist/cdn/{shared-eb963ba3.js → shared-12973e93.js} +1 -1
- package/dist/cdn/{shared-9c010e0a.js → shared-12bab9de.js} +1 -1
- package/dist/cdn/shared-13ba9f3a.js +15 -0
- package/dist/cdn/{shared-fed829c2.js → shared-19b43f73.js} +1 -1
- package/dist/cdn/{shared-264e8301.js → shared-1af6aa1d.js} +1 -1
- package/dist/cdn/{shared-94716ec1.js → shared-1b627cc5.js} +1 -1
- package/dist/cdn/{shared-0d0585dc.js → shared-1c252319.js} +1 -1
- package/dist/cdn/shared-1da47f50.js +1 -0
- package/dist/cdn/shared-2061be9a.js +1 -0
- package/dist/cdn/{shared-6033e09d.js → shared-206d3153.js} +1 -1
- package/dist/cdn/{shared-70e6f32c.js → shared-21a445d9.js} +1 -1
- package/dist/cdn/{shared-9171c265.js → shared-2557c0c4.js} +1 -1
- package/dist/cdn/{shared-bedc5e82.js → shared-264bea6b.js} +1 -1
- package/dist/cdn/{shared-5f8c01f8.js → shared-2c00e6b1.js} +1 -1
- package/dist/cdn/{shared-1cd02e50.js → shared-2db6b377.js} +1 -1
- package/dist/cdn/{shared-9b9d5ff1.js → shared-2ebcaabc.js} +1 -1
- package/dist/cdn/{shared-4b393539.js → shared-2f17b0fa.js} +1 -1
- package/dist/cdn/shared-2f1ced90.js +1 -0
- package/dist/cdn/{shared-ffd5932d.js → shared-3558bfae.js} +1 -1
- package/dist/cdn/{shared-5e4a03d1.js → shared-37869bac.js} +1 -1
- package/dist/cdn/{shared-99a8889a.js → shared-3b4148ad.js} +1 -1
- package/dist/cdn/{shared-2cb397e4.js → shared-3e0b2588.js} +1 -1
- package/dist/cdn/{shared-567ba8ae.js → shared-3e3c5095.js} +1 -1
- package/dist/cdn/{shared-656a46f7.js → shared-3ffa26c1.js} +2 -2
- package/dist/cdn/{shared-0224f0b8.js → shared-457789d7.js} +1 -1
- package/dist/cdn/{shared-e88763ec.js → shared-5700fbfd.js} +1 -1
- package/dist/cdn/shared-5905fca4.js +1 -0
- package/dist/cdn/{shared-cae7a43b.js → shared-5aacbf1f.js} +1 -1
- package/dist/cdn/{shared-6962f117.js → shared-6540a584.js} +1 -1
- package/dist/cdn/shared-65b2760f.js +1 -0
- package/dist/cdn/{shared-a507d54f.js → shared-68d1075b.js} +4 -4
- package/dist/cdn/{shared-89d4000a.js → shared-6a65acb4.js} +1 -1
- package/dist/cdn/{shared-d7d949bc.js → shared-6ebe5ef5.js} +1 -1
- package/dist/cdn/{shared-a6c75cc0.js → shared-6eebe353.js} +2 -2
- package/dist/cdn/{shared-9dc36194.js → shared-74a5f2a4.js} +1 -1
- package/dist/cdn/{shared-e2d3c014.js → shared-76c608e2.js} +1 -1
- package/dist/cdn/shared-7b5bdf0e.js +1 -0
- package/dist/cdn/{shared-673d668a.js → shared-7dc40542.js} +1 -1
- package/dist/cdn/shared-7fec42f2.js +15 -0
- package/dist/cdn/{shared-dc4d2996.js → shared-80dafe85.js} +1 -1
- package/dist/cdn/{shared-44b46fef.js → shared-8259d01b.js} +1 -1
- package/dist/cdn/shared-88a59a2e.js +1 -0
- package/dist/cdn/{shared-4dd24dda.js → shared-8b0d25e5.js} +1 -1
- package/dist/cdn/{shared-c502de27.js → shared-8dd6f543.js} +1 -1
- package/dist/cdn/{shared-8a0bd046.js → shared-9006bac2.js} +1 -1
- package/dist/cdn/{shared-d68c6616.js → shared-90a8d5cf.js} +1 -1
- package/dist/cdn/{shared-4cafa2e7.js → shared-9363a954.js} +1 -1
- package/dist/cdn/{shared-c832f3a1.js → shared-944fab16.js} +1 -1
- package/dist/cdn/shared-998c0ace.js +1 -0
- package/dist/cdn/{shared-6b3fed56.js → shared-a3234358.js} +1 -1
- package/dist/cdn/{shared-bb6d7b97.js → shared-a715e3e5.js} +1 -1
- package/dist/cdn/{shared-74d599dc.js → shared-aab4ed2b.js} +1 -1
- package/dist/cdn/{shared-a4216b50.js → shared-ab0bbad5.js} +1 -1
- package/dist/cdn/{shared-8ea2bbcc.js → shared-aedaf182.js} +1 -1
- package/dist/cdn/{shared-274dec57.js → shared-b2bd7666.js} +1 -1
- package/dist/cdn/{shared-b1435a0a.js → shared-bdbdf963.js} +1 -1
- package/dist/cdn/shared-be30b940.js +1 -0
- package/dist/cdn/{shared-e6a1eef8.js → shared-be7af87f.js} +1 -1
- package/dist/cdn/{shared-5afb584d.js → shared-c782b9fa.js} +1 -1
- package/dist/cdn/{shared-7fd51889.js → shared-cd0ae051.js} +3 -3
- package/dist/cdn/{shared-8f009bbb.js → shared-cd3cfea5.js} +1 -1
- package/dist/cdn/{shared-7594e563.js → shared-d6a0954b.js} +1 -1
- package/dist/cdn/shared-da95bb48.js +1 -0
- package/dist/cdn/{shared-87b93771.js → shared-dd7e85be.js} +1 -1
- package/dist/cdn/{shared-aa6dab90.js → shared-ddda911c.js} +2 -2
- package/dist/cdn/shared-e1e4d8f5.js +1 -0
- package/dist/cdn/{shared-2f8e53c0.js → shared-e52d2fdd.js} +1 -1
- package/dist/cdn/{shared-66201dc5.js → shared-ee689ddc.js} +1 -1
- package/dist/cdn/{shared-678beccf.js → shared-f497cd69.js} +3 -3
- package/dist/cdn/shared-f4be6924.js +40 -0
- package/dist/cdn/shared-f8e1143e.js +1 -0
- package/dist/cdn/translations/cart-form/en.json +42 -41
- package/dist/cdn/translations/coupon-form/en.json +38 -26
- package/dist/cdn/translations/customer/en.json +14 -17
- package/dist/cdn/translations/filter-attribute-form/en.json +19 -14
- package/dist/cdn/translations/gift-card-code-form/en.json +14 -16
- package/dist/cdn/translations/gift-card-form/en.json +33 -32
- package/dist/cdn/translations/payment-method-card/en.json +14 -17
- package/dist/cdn/translations/query-builder/en.json +15 -13
- package/dist/cdn/translations/update-payment-method-form/en.json +14 -17
- package/dist/elements/internal/InternalAsyncListControl/InternalAsyncListControlFilterOverlay.js +1 -1
- package/dist/elements/internal/InternalAsyncListControl/InternalAsyncListControlFilterOverlay.js.map +1 -1
- package/dist/elements/internal/InternalNumberControl/InternalNumberControl.js +9 -10
- package/dist/elements/internal/InternalNumberControl/InternalNumberControl.js.map +1 -1
- package/dist/elements/internal/InternalSummaryControl/InternalSummaryControl.js +1 -1
- package/dist/elements/internal/InternalSummaryControl/InternalSummaryControl.js.map +1 -1
- package/dist/elements/public/CouponForm/CouponForm.js +4 -4
- package/dist/elements/public/CouponForm/CouponForm.js.map +1 -1
- package/dist/elements/public/Donation/Donation.d.ts +10 -0
- package/dist/elements/public/Donation/Donation.js +2 -0
- package/dist/elements/public/Donation/Donation.js.map +1 -1
- package/dist/elements/public/FilterAttributeForm/FilterAttributeForm.d.ts +2 -2
- package/dist/elements/public/FilterAttributeForm/FilterAttributeForm.js +71 -25
- package/dist/elements/public/FilterAttributeForm/FilterAttributeForm.js.map +1 -1
- package/dist/elements/public/FilterAttributeForm/index.d.ts +2 -2
- package/dist/elements/public/FilterAttributeForm/index.js +2 -2
- package/dist/elements/public/FilterAttributeForm/index.js.map +1 -1
- package/dist/elements/public/GiftCardForm/GiftCardForm.js +5 -5
- package/dist/elements/public/GiftCardForm/GiftCardForm.js.map +1 -1
- package/dist/elements/public/QueryBuilder/QueryBuilder.d.ts +15 -6
- package/dist/elements/public/QueryBuilder/QueryBuilder.js +152 -32
- package/dist/elements/public/QueryBuilder/QueryBuilder.js.map +1 -1
- package/dist/elements/public/QueryBuilder/components/AdvancedGroup.d.ts +16 -0
- package/dist/elements/public/QueryBuilder/components/AdvancedGroup.js +78 -0
- package/dist/elements/public/QueryBuilder/components/AdvancedGroup.js.map +1 -0
- package/dist/elements/public/QueryBuilder/components/AdvancedInput.d.ts +12 -0
- package/dist/elements/public/QueryBuilder/components/AdvancedInput.js +49 -0
- package/dist/elements/public/QueryBuilder/components/AdvancedInput.js.map +1 -0
- package/dist/elements/public/QueryBuilder/components/AdvancedOperatorToggle.d.ts +14 -0
- package/dist/elements/public/QueryBuilder/components/AdvancedOperatorToggle.js +41 -0
- package/dist/elements/public/QueryBuilder/components/AdvancedOperatorToggle.js.map +1 -0
- package/dist/elements/public/QueryBuilder/components/AdvancedRule.d.ts +18 -0
- package/dist/elements/public/QueryBuilder/components/{Rule.js → AdvancedRule.js} +50 -59
- package/dist/elements/public/QueryBuilder/components/AdvancedRule.js.map +1 -0
- package/dist/elements/public/QueryBuilder/components/SimpleAttributeRule.d.ts +2 -0
- package/dist/elements/public/QueryBuilder/components/SimpleAttributeRule.js +78 -0
- package/dist/elements/public/QueryBuilder/components/SimpleAttributeRule.js.map +1 -0
- package/dist/elements/public/QueryBuilder/components/SimpleBooleanRule.d.ts +2 -0
- package/dist/elements/public/QueryBuilder/components/SimpleBooleanRule.js +16 -0
- package/dist/elements/public/QueryBuilder/components/SimpleBooleanRule.js.map +1 -0
- package/dist/elements/public/QueryBuilder/components/SimpleDateRule.d.ts +2 -0
- package/dist/elements/public/QueryBuilder/components/SimpleDateRule.js +111 -0
- package/dist/elements/public/QueryBuilder/components/SimpleDateRule.js.map +1 -0
- package/dist/elements/public/QueryBuilder/components/SimpleGroup.d.ts +14 -0
- package/dist/elements/public/QueryBuilder/components/SimpleGroup.js +111 -0
- package/dist/elements/public/QueryBuilder/components/SimpleGroup.js.map +1 -0
- package/dist/elements/public/QueryBuilder/components/SimpleInput.d.ts +15 -0
- package/dist/elements/public/QueryBuilder/components/SimpleInput.js +43 -0
- package/dist/elements/public/QueryBuilder/components/SimpleInput.js.map +1 -0
- package/dist/elements/public/QueryBuilder/components/SimpleListRule.d.ts +2 -0
- package/dist/elements/public/QueryBuilder/components/SimpleListRule.js +45 -0
- package/dist/elements/public/QueryBuilder/components/SimpleListRule.js.map +1 -0
- package/dist/elements/public/QueryBuilder/components/SimpleNumberRule.d.ts +2 -0
- package/dist/elements/public/QueryBuilder/components/SimpleNumberRule.js +100 -0
- package/dist/elements/public/QueryBuilder/components/SimpleNumberRule.js.map +1 -0
- package/dist/elements/public/QueryBuilder/components/SimpleSelect.d.ts +24 -0
- package/dist/elements/public/QueryBuilder/components/SimpleSelect.js +45 -0
- package/dist/elements/public/QueryBuilder/components/SimpleSelect.js.map +1 -0
- package/dist/elements/public/QueryBuilder/components/SimpleStringRule.d.ts +2 -0
- package/dist/elements/public/QueryBuilder/components/SimpleStringRule.js +46 -0
- package/dist/elements/public/QueryBuilder/components/SimpleStringRule.js.map +1 -0
- package/dist/elements/public/QueryBuilder/icons/field.d.ts +1 -0
- package/dist/elements/public/QueryBuilder/icons/{typeAny.js → field.js} +2 -2
- package/dist/elements/public/QueryBuilder/icons/field.js.map +1 -0
- package/dist/elements/public/QueryBuilder/icons/index.d.ts +1 -6
- package/dist/elements/public/QueryBuilder/icons/index.js +1 -6
- package/dist/elements/public/QueryBuilder/icons/index.js.map +1 -1
- package/dist/elements/public/QueryBuilder/index.d.ts +2 -0
- package/dist/elements/public/QueryBuilder/index.js +2 -0
- package/dist/elements/public/QueryBuilder/index.js.map +1 -1
- package/dist/elements/public/QueryBuilder/styles.js +23 -0
- package/dist/elements/public/QueryBuilder/styles.js.map +1 -1
- package/dist/elements/public/QueryBuilder/types.d.ts +24 -6
- package/dist/elements/public/QueryBuilder/types.js.map +1 -1
- package/dist/elements/public/QueryBuilder/utils/parse.d.ts +2 -2
- package/dist/elements/public/QueryBuilder/utils/parse.js.map +1 -1
- package/dist/elements/public/QueryBuilder/utils/stringify.d.ts +2 -2
- package/dist/elements/public/QueryBuilder/utils/stringify.js.map +1 -1
- package/dist/elements/public/TaxForm/TaxForm.js +5 -4
- package/dist/elements/public/TaxForm/TaxForm.js.map +1 -1
- package/dist/mixins/themeable.js +17 -12
- package/dist/mixins/themeable.js.map +1 -1
- package/package.json +1 -1
- package/dist/cdn/shared-0aedd809.js +0 -1
- package/dist/cdn/shared-2f5cc0e2.js +0 -1
- package/dist/cdn/shared-343d1fd7.js +0 -1
- package/dist/cdn/shared-4a38cb3e.js +0 -1
- package/dist/cdn/shared-4c764a91.js +0 -1
- package/dist/cdn/shared-5592ec6e.js +0 -1
- package/dist/cdn/shared-5ef40e86.js +0 -1
- package/dist/cdn/shared-79d0699c.js +0 -1
- package/dist/cdn/shared-894c69f8.js +0 -1
- package/dist/cdn/shared-97e2abfb.js +0 -1
- package/dist/cdn/shared-b6f53f3b.js +0 -64
- package/dist/cdn/shared-c31c50e2.js +0 -1
- package/dist/cdn/shared-cb58dfcd.js +0 -15
- package/dist/cdn/shared-d0363ae9.js +0 -1
- package/dist/cdn/shared-ef4ad461.js +0 -1
- package/dist/cdn/shared-f7bfb29e.js +0 -15
- package/dist/cdn/shared-f83207fb.js +0 -1
- package/dist/elements/public/FilterAttributeForm/internal/InternalFilterAttributeFormActionControl/InternalFilterAttributeFormActionControl.d.ts +0 -5
- package/dist/elements/public/FilterAttributeForm/internal/InternalFilterAttributeFormActionControl/InternalFilterAttributeFormActionControl.js +0 -34
- package/dist/elements/public/FilterAttributeForm/internal/InternalFilterAttributeFormActionControl/InternalFilterAttributeFormActionControl.js.map +0 -1
- package/dist/elements/public/FilterAttributeForm/internal/InternalFilterAttributeFormActionControl/index.d.ts +0 -5
- package/dist/elements/public/FilterAttributeForm/internal/InternalFilterAttributeFormActionControl/index.js +0 -7
- package/dist/elements/public/FilterAttributeForm/internal/InternalFilterAttributeFormActionControl/index.js.map +0 -1
- package/dist/elements/public/QueryBuilder/components/BooleanValue.d.ts +0 -12
- package/dist/elements/public/QueryBuilder/components/BooleanValue.js +0 -21
- package/dist/elements/public/QueryBuilder/components/BooleanValue.js.map +0 -1
- package/dist/elements/public/QueryBuilder/components/Group.d.ts +0 -15
- package/dist/elements/public/QueryBuilder/components/Group.js +0 -95
- package/dist/elements/public/QueryBuilder/components/Group.js.map +0 -1
- package/dist/elements/public/QueryBuilder/components/Input.d.ts +0 -18
- package/dist/elements/public/QueryBuilder/components/Input.js +0 -98
- package/dist/elements/public/QueryBuilder/components/Input.js.map +0 -1
- package/dist/elements/public/QueryBuilder/components/IsDefinedValue.d.ts +0 -11
- package/dist/elements/public/QueryBuilder/components/IsDefinedValue.js +0 -16
- package/dist/elements/public/QueryBuilder/components/IsDefinedValue.js.map +0 -1
- package/dist/elements/public/QueryBuilder/components/ListValue.d.ts +0 -12
- package/dist/elements/public/QueryBuilder/components/ListValue.js +0 -48
- package/dist/elements/public/QueryBuilder/components/ListValue.js.map +0 -1
- package/dist/elements/public/QueryBuilder/components/Name.d.ts +0 -11
- package/dist/elements/public/QueryBuilder/components/Name.js +0 -14
- package/dist/elements/public/QueryBuilder/components/Name.js.map +0 -1
- package/dist/elements/public/QueryBuilder/components/OperatorToggle.d.ts +0 -13
- package/dist/elements/public/QueryBuilder/components/OperatorToggle.js +0 -63
- package/dist/elements/public/QueryBuilder/components/OperatorToggle.js.map +0 -1
- package/dist/elements/public/QueryBuilder/components/Path.d.ts +0 -13
- package/dist/elements/public/QueryBuilder/components/Path.js +0 -16
- package/dist/elements/public/QueryBuilder/components/Path.js.map +0 -1
- package/dist/elements/public/QueryBuilder/components/RangeValue.d.ts +0 -12
- package/dist/elements/public/QueryBuilder/components/RangeValue.js +0 -47
- package/dist/elements/public/QueryBuilder/components/RangeValue.js.map +0 -1
- package/dist/elements/public/QueryBuilder/components/Rule.d.ts +0 -18
- package/dist/elements/public/QueryBuilder/components/Rule.js.map +0 -1
- package/dist/elements/public/QueryBuilder/components/Select.d.ts +0 -16
- package/dist/elements/public/QueryBuilder/components/Select.js +0 -86
- package/dist/elements/public/QueryBuilder/components/Select.js.map +0 -1
- package/dist/elements/public/QueryBuilder/components/SingleValue.d.ts +0 -12
- package/dist/elements/public/QueryBuilder/components/SingleValue.js +0 -21
- package/dist/elements/public/QueryBuilder/components/SingleValue.js.map +0 -1
- package/dist/elements/public/QueryBuilder/icons/typeAny.d.ts +0 -1
- package/dist/elements/public/QueryBuilder/icons/typeAny.js.map +0 -1
- package/dist/elements/public/QueryBuilder/icons/typeAttribute.d.ts +0 -1
- package/dist/elements/public/QueryBuilder/icons/typeAttribute.js +0 -8
- package/dist/elements/public/QueryBuilder/icons/typeAttribute.js.map +0 -1
- package/dist/elements/public/QueryBuilder/icons/typeBoolean.d.ts +0 -1
- package/dist/elements/public/QueryBuilder/icons/typeBoolean.js +0 -10
- package/dist/elements/public/QueryBuilder/icons/typeBoolean.js.map +0 -1
- package/dist/elements/public/QueryBuilder/icons/typeDate.d.ts +0 -1
- package/dist/elements/public/QueryBuilder/icons/typeDate.js +0 -7
- package/dist/elements/public/QueryBuilder/icons/typeDate.js.map +0 -1
- package/dist/elements/public/QueryBuilder/icons/typeNumber.d.ts +0 -1
- package/dist/elements/public/QueryBuilder/icons/typeNumber.js +0 -7
- package/dist/elements/public/QueryBuilder/icons/typeNumber.js.map +0 -1
- package/dist/elements/public/QueryBuilder/icons/typeString.d.ts +0 -1
- package/dist/elements/public/QueryBuilder/icons/typeString.js +0 -7
- package/dist/elements/public/QueryBuilder/icons/typeString.js.map +0 -1
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
function t(t){var n,r;function i(n,r){try{var a=t[n](r),s=a.value,c=s instanceof e;Promise.resolve(c?s.v:s).then((function(e){if(c){var r="return"===n?"return":"next";if(!s.k||e.done)return i(r,e);e=t[r](e).value}o(a.done?"return":"normal",e)}),(function(t){i("throw",t)}))}catch(t){o("throw",t)}}function o(t,e){switch(t){case"return":n.resolve({value:e,done:!0});break;case"throw":n.reject(e);break;default:n.resolve({value:e,done:!1})}(n=n.next)?i(n.key,n.arg):r=null}this._invoke=function(t,e){return new Promise((function(o,a){var s={key:t,arg:e,resolve:o,reject:a,next:null};r?r=r.next=s:(n=r=s,i(t,e))}))},"function"!=typeof t.return&&(this.return=void 0)}function e(t,e){this.v=t,this.k=e}function n(t){return new e(t,0)}function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(){o=function(t,e){return new n(t,void 0,e)};var t=RegExp.prototype,e=new WeakMap;function n(t,r,i){var o=new RegExp(t,r);return e.set(o,i||e.get(t)),c(o,n.prototype)}function r(t,n){var r=e.get(n);return Object.keys(r).reduce((function(e,n){var i=r[n];if("number"==typeof i)e[n]=t[i];else{for(var o=0;void 0===t[i[o]]&&o+1<i.length;)o++;e[n]=t[i[o]]}return e}),Object.create(null))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(n,RegExp),n.prototype.exec=function(e){var n=t.exec.call(this,e);if(n){n.groups=r(n,this);var i=n.indices;i&&(i.groups=r(i,this))}return n},n.prototype[Symbol.replace]=function(n,i){if("string"==typeof i){var o=e.get(this);return t[Symbol.replace].call(this,n,i.replace(/\$<([^>]+)>/g,(function(t,e){var n=o[e];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof i){var a=this;return t[Symbol.replace].call(this,n,(function(){var t=arguments;return"object"!=typeof t[t.length-1]&&(t=[].slice.call(t)).push(r(t,a)),i.apply(this,t)}))}return t[Symbol.replace].call(this,n,i)},o.apply(this,arguments)}function a(e){return function(){return new t(e.apply(this,arguments))}}function s(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function u(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function l(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},t.prototype.next=function(t){return this._invoke("next",t)},t.prototype.throw=function(t){return this._invoke("throw",t)},t.prototype.return=function(t){return this._invoke("return",t)};var f="object"==typeof global&&global&&global.Object===Object&&global,h="object"==typeof self&&self&&self.Object===Object&&self,p=f||h||Function("return this")(),d=p.Symbol,y=Object.prototype,v=y.hasOwnProperty,g=y.toString,b=d?d.toStringTag:void 0;var _=Object.prototype.toString;var m="[object Null]",w="[object Undefined]",x=d?d.toStringTag:void 0;function j(t){return null==t?void 0===t?w:m:x&&x in Object(t)?function(t){var e=v.call(t,b),n=t[b];try{t[b]=void 0;var r=!0}catch(t){}var i=g.call(t);return r&&(e?t[b]=n:delete t[b]),i}(t):function(t){return _.call(t)}(t)}function O(t){return null!=t&&"object"==typeof t}var S="[object Symbol]";function E(t){return"symbol"==typeof t||O(t)&&j(t)==S}var k="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function A(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function P(t){var e={exports:{}};return t(e,e.exports),e.exports}function T(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets option of @rollup/plugin-commonjs appropriately for this require call to behave properly.')}
|
|
2
|
-
/*! *****************************************************************************
|
|
3
|
-
Copyright (c) Microsoft Corporation.
|
|
4
|
-
|
|
5
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
-
purpose with or without fee is hereby granted.
|
|
7
|
-
|
|
8
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
10
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
11
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
***************************************************************************** */var R=function(){return R=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},R.apply(this,arguments)};function D(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function N(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function I(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function L(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(I(arguments[e]));return t}var C={},F="xstate.guard";function U(t){return Object.keys(t)}function M(t,e,n){void 0===n&&(n=".");var r=V(t,n),i=V(e,n);return rt(i)?!!rt(r)&&i===r:rt(r)?r in i:U(r).every((function(t){return t in i&&M(r[t],i[t])}))}function $(t){try{return rt(t)||"number"==typeof t?""+t:t.type}catch(t){throw new Error("Events must be strings or objects with a string event.type property.")}}function B(t,e){try{return et(t)?t:t.toString().split(e)}catch(e){throw new Error("'"+t+"' is not a valid state path.")}}function V(t,e){return"object"==typeof(n=t)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?t.value:et(t)?z(t):"string"!=typeof t?t:z(B(t,e));var n}function z(t){if(1===t.length)return t[0];for(var e={},n=e,r=0;r<t.length-1;r++)r===t.length-2?n[t[r]]=t[r+1]:(n[t[r]]={},n=n[t[r]]);return e}function W(t,e){for(var n={},r=U(t),i=0;i<r.length;i++){var o=r[i];n[o]=e(t[o],o,t,i)}return n}function q(t,e,n){var r,i,o={};try{for(var a=N(U(t)),s=a.next();!s.done;s=a.next()){var c=s.value,u=t[c];n(u)&&(o[c]=e(u,c,t))}}catch(t){r={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}var H=function(t){return function(e){var n,r,i=e;try{for(var o=N(t),a=o.next();!a.done;a=o.next()){i=i[a.value]}}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}};function G(t){return t?rt(t)?[[t]]:J(U(t).map((function(e){var n=t[e];return"string"==typeof n||n&&Object.keys(n).length?G(t[e]).map((function(t){return[e].concat(t)})):[[e]]}))):[[]]}function J(t){var e;return(e=[]).concat.apply(e,L(t))}function K(t){return et(t)?t:[t]}function Q(t){return void 0===t?[]:K(t)}function Z(t,e,n){var r,i;if(nt(t))return t(e,n.data);var o={};try{for(var a=N(Object.keys(t)),s=a.next();!s.done;s=a.next()){var c=s.value,u=t[c];nt(u)?o[c]=u(e,n.data):o[c]=u}}catch(t){r={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}function X(t){return t instanceof Promise||!(null===t||!nt(t)&&"object"!=typeof t||!nt(t.then))}function Y(t,e){var n,r,i=I([[],[]],2),o=i[0],a=i[1];try{for(var s=N(t),c=s.next();!c.done;c=s.next()){var u=c.value;e(u)?o.push(u):a.push(u)}}catch(t){n={error:t}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return[o,a]}function tt(t,e){return W(t.states,(function(t,n){if(t){var r=(rt(e)?void 0:e[n])||(t?t.current:void 0);if(r)return{current:r,states:tt(t,r)}}}))}function et(t){return Array.isArray(t)}function nt(t){return"function"==typeof t}function rt(t){return"string"==typeof t}function it(t,e){if(t)return rt(t)?{type:F,name:t,predicate:e?e[t]:void 0}:nt(t)?{type:F,name:t.name,predicate:t}:t}function ot(t){try{return"subscribe"in t&&nt(t.subscribe)}catch(t){return!1}}var at,st,ct=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function ut(t){try{return"__xstatenode"in t}catch(t){return!1}}function lt(t){return!!t&&"function"==typeof t.send}function ft(t,e){return rt(t)||"number"==typeof t?R({type:t},e):t}function ht(t,e){if(!rt(t)&&"$$type"in t&&"scxml"===t.$$type)return t;var n=ft(t);return R({name:n.type,data:n,$$type:"scxml",type:"external"},e)}function pt(t,e){return K(e).map((function(e){return void 0===e||"string"==typeof e||ut(e)?{target:e,event:t}:R(R({},e),{event:t})}))}function dt(t,e,n,r,i){var o=t.options.guards,a={state:i,cond:e,_event:r};if(e.type===F)return e.predicate(n,r.data,a);var s=o[e.type];if(!s)throw new Error("Guard '"+e.type+"' is not implemented on machine '"+t.id+"'.");return s(n,r.data,a)}function yt(t){return"string"==typeof t?{type:t}:t}function vt(t,e,n){if("object"==typeof t)return t;var r=function(){};return{next:t,error:e||r,complete:n||r}}!function(t){t.Start="xstate.start",t.Stop="xstate.stop",t.Raise="xstate.raise",t.Send="xstate.send",t.Cancel="xstate.cancel",t.NullEvent="",t.Assign="xstate.assign",t.After="xstate.after",t.DoneState="done.state",t.DoneInvoke="done.invoke",t.Log="xstate.log",t.Init="xstate.init",t.Invoke="xstate.invoke",t.ErrorExecution="error.execution",t.ErrorCommunication="error.communication",t.ErrorPlatform="error.platform",t.ErrorCustom="xstate.error",t.Update="xstate.update",t.Pure="xstate.pure",t.Choose="xstate.choose"}(at||(at={})),function(t){t.Parent="#_parent",t.Internal="#_internal"}(st||(st={}));var gt=at.Start,bt=at.Stop,_t=at.Raise,mt=at.Send,wt=at.Cancel,xt=at.NullEvent,jt=at.Assign;at.After,at.DoneState;var Ot=at.Log,St=at.Init,Et=at.Invoke;at.ErrorExecution;var kt=at.ErrorPlatform,At=at.ErrorCustom,Pt=at.Update,Tt=at.Choose,Rt=at.Pure,Dt=ht({type:St});function Nt(t,e){return e&&e[t]||void 0}function It(t,e){var n;if(rt(t)||"number"==typeof t){var r=Nt(t,e);n=nt(r)?{type:t,exec:r}:r||{type:t,exec:void 0}}else if(nt(t))n={type:t.name||t.toString(),exec:t};else{if(nt(r=Nt(t.type,e)))n=R(R({},t),{exec:r});else if(r){var i=r.type||t.type;n=R(R(R({},r),t),{type:i})}else n=t}return Object.defineProperty(n,"toString",{value:function(){return n.type},enumerable:!1,configurable:!0}),n}var Lt=function(t,e){return t?(et(t)?t:[t]).map((function(t){return It(t,e)})):[]};function Ct(t){var e=It(t);return R(R({id:rt(t)?t:e.id},e),{type:e.type})}function Ft(t){return rt(t)?{type:_t,event:t}:Ut(t,{to:st.Internal})}function Ut(t,e){return{to:e?e.to:void 0,type:mt,event:nt(t)?t:ft(t),delay:e?e.delay:void 0,id:e&&void 0!==e.id?e.id:nt(t)?t.name:$(t)}}function Mt(t,e){return Ut(t,R(R({},e),{to:st.Parent}))}function $t(){return Mt(Pt)}function Bt(t,e){return Ut(t,R(R({},e),{to:function(t,e,n){return n._event.origin}}))}var Vt=function(t,e){return{context:t,event:e}};function zt(t,e){return void 0===t&&(t=Vt),{type:Ot,label:e,expr:t}}var Wt=function(t){return{type:wt,sendId:t}};function qt(t){var e=Ct(t);return{type:at.Start,activity:e,exec:void 0}}function Ht(t){var e=nt(t)?t:Ct(t);return{type:at.Stop,activity:e,exec:void 0}}var Gt=function(t){return{type:jt,assignment:t}};function Jt(t,e){var n=e?"#"+e:"";return at.After+"("+t+")"+n}function Kt(t,e){var n=at.DoneState+"."+t,r={type:n,data:e,toString:function(){return n}};return r}function Qt(t,e){var n=at.DoneInvoke+"."+t,r={type:n,data:e,toString:function(){return n}};return r}function Zt(t,e){var n=at.ErrorPlatform+"."+t,r={type:n,data:e,toString:function(){return n}};return r}function Xt(t){return{type:at.Pure,get:t}}function Yt(t,e){return Ut((function(t,e){return e}),R(R({},e),{to:t}))}function te(t,e){return Mt((function(e,n,r){return{type:At,data:nt(t)?t(e,n,r):t}}),R(R({},e),{to:st.Parent}))}function ee(t){return{type:at.Choose,conds:t}}function ne(t,e,n,r,i){var o=I(Y(i,(function(t){return t.type===jt})),2),a=o[0],s=o[1],c=a.length?function(t,e,n,r){return t?n.reduce((function(t,n){var i,o,a=n.assignment,s={state:r,action:n,_event:e},c={};if(nt(a))c=a(t,e.data,s);else try{for(var u=N(U(a)),l=u.next();!l.done;l=u.next()){var f=l.value,h=a[f];c[f]=nt(h)?h(t,e.data,s):h}}catch(t){i={error:t}}finally{try{l&&!l.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}return Object.assign({},t,c)}),t):t}(n,r,a,e):n,u=J(s.map((function(n){var i;switch(n.type){case _t:return{type:_t,_event:ht(n.event)};case mt:var o=function(t,e,n,r){var i,o={_event:n},a=ht(nt(t.event)?t.event(e,n.data,o):t.event);if(rt(t.delay)){var s=r&&r[t.delay];i=nt(s)?s(e,n.data,o):s}else i=nt(t.delay)?t.delay(e,n.data,o):t.delay;var c=nt(t.to)?t.to(e,n.data,o):t.to;return R(R({},t),{to:c,_event:a,event:a.data,delay:i})}(n,c,r,t.options.delays);return o;case Ot:return function(t,e,n){return R(R({},t),{value:rt(t.expr)?t.expr:t.expr(e,n.data,{_event:n})})}(n,c,r);case Tt:if(!(s=null===(i=n.conds.find((function(n){var i=it(n.cond,t.options.guards);return!i||dt(t,i,c,r,e)})))||void 0===i?void 0:i.actions))return[];var a=ne(t,e,c,r,Lt(Q(s),t.options.actions));return c=a[1],a[0];case Rt:var s;if(!(s=n.get(c,r.data)))return[];a=ne(t,e,c,r,Lt(Q(s),t.options.actions));return c=a[1],a[0];case bt:return function(t,e,n){var r=nt(t.activity)?t.activity(e,n.data):t.activity,i="string"==typeof r?{id:r}:r;return{type:at.Stop,activity:i}}(n,c,r);default:return It(n,t.options.actions)}})));return[u,c]}var re=function(t){return"atomic"===t.type||"final"===t.type};function ie(t){return U(t.states).map((function(e){return t.states[e]}))}function oe(t){var e=[t];return re(t)?e:e.concat(J(ie(t).map(oe)))}function ae(t,e){var n,r,i,o,a,s,c,u,l=ce(new Set(t)),f=new Set(e);try{for(var h=N(f),p=h.next();!p.done;p=h.next())for(var d=(j=p.value).parent;d&&!f.has(d);)f.add(d),d=d.parent}catch(t){n={error:t}}finally{try{p&&!p.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}var y=ce(f);try{for(var v=N(f),g=v.next();!g.done;g=v.next()){if("compound"!==(j=g.value).type||y.get(j)&&y.get(j).length){if("parallel"===j.type)try{for(var b=(a=void 0,N(ie(j))),_=b.next();!_.done;_=b.next()){var m=_.value;"history"!==m.type&&(f.has(m)||(f.add(m),l.get(m)?l.get(m).forEach((function(t){return f.add(t)})):m.initialStateNodes.forEach((function(t){return f.add(t)}))))}}catch(t){a={error:t}}finally{try{_&&!_.done&&(s=b.return)&&s.call(b)}finally{if(a)throw a.error}}}else l.get(j)?l.get(j).forEach((function(t){return f.add(t)})):j.initialStateNodes.forEach((function(t){return f.add(t)}))}}catch(t){i={error:t}}finally{try{g&&!g.done&&(o=v.return)&&o.call(v)}finally{if(i)throw i.error}}try{for(var w=N(f),x=w.next();!x.done;x=w.next()){var j;for(d=(j=x.value).parent;d&&!f.has(d);)f.add(d),d=d.parent}}catch(t){c={error:t}}finally{try{x&&!x.done&&(u=w.return)&&u.call(w)}finally{if(c)throw c.error}}return f}function se(t,e){var n=e.get(t);if(!n)return{};if("compound"===t.type){var r=n[0];if(!r)return{};if(re(r))return r.key}var i={};return n.forEach((function(t){i[t.key]=se(t,e)})),i}function ce(t){var e,n,r=new Map;try{for(var i=N(t),o=i.next();!o.done;o=i.next()){var a=o.value;r.has(a)||r.set(a,[]),a.parent&&(r.has(a.parent)||r.set(a.parent,[]),r.get(a.parent).push(a))}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r}function ue(t,e){return se(t,ce(ae([t],e)))}function le(t,e){return Array.isArray(t)?t.some((function(t){return t===e})):t instanceof Set&&t.has(e)}function fe(t,e){return"compound"===e.type?ie(e).some((function(e){return"final"===e.type&&le(t,e)})):"parallel"===e.type&&ie(e).every((function(e){return fe(t,e)}))}function he(t,e){if(t===e)return!0;if(void 0===t||void 0===e)return!1;if(rt(t)||rt(e))return t===e;var n=U(t),r=U(e);return n.length===r.length&&n.every((function(n){return he(t[n],e[n])}))}function pe(t){return!rt(t)&&("value"in t&&"history"in t)}function de(t,e){var n=t.exec;return R(R({},t),{exec:void 0!==n?function(){return n(e.context,e.event,{action:t,state:e,_event:e._event})}:void 0})}var ye=function(){function t(t){var e=this;this.actions=[],this.activities=C,this.meta={},this.events=[],this.value=t.value,this.context=t.context,this._event=t._event,this._sessionid=t._sessionid,this.event=this._event.data,this.historyValue=t.historyValue,this.history=t.history,this.actions=t.actions||[],this.activities=t.activities||C,this.meta=t.meta||{},this.events=t.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=t.configuration,this.transitions=t.transitions,this.children=t.children,this.done=!!t.done,Object.defineProperty(this,"nextEvents",{get:function(){return t=e.configuration,J(L(new Set(t.map((function(t){return t.ownEvents})))));var t}})}return t.from=function(e,n){return e instanceof t?e.context!==n?new t({value:e.value,context:n,_event:e._event,_sessionid:null,historyValue:e.historyValue,history:e.history,actions:[],activities:e.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):e:new t({value:e,context:n,_event:Dt,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,meta:void 0,events:[],configuration:[],transitions:[],children:{}})},t.create=function(e){return new t(e)},t.inert=function(e,n){if(e instanceof t){if(!e.actions.length)return e;var r=Dt;return new t({value:e.value,context:n,_event:r,_sessionid:null,historyValue:e.historyValue,history:e.history,activities:e.activities,configuration:e.configuration,transitions:[],children:{}})}return t.from(e,n)},t.prototype.toStrings=function(t,e){var n=this;if(void 0===t&&(t=this.value),void 0===e&&(e="."),rt(t))return[t];var r=U(t);return r.concat.apply(r,L(r.map((function(r){return n.toStrings(t[r],e).map((function(t){return r+e+t}))}))))},t.prototype.toJSON=function(){var t=this;return t.configuration,t.transitions,D(t,["configuration","transitions"])},t.prototype.matches=function(t){return M(t,this.value)},t}(),ve=function(t,e){return e(t)};function ge(t){return{id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},toJSON:function(){return{id:t}}}}function be(t,e,n,r){var i,o=yt(t.src),a=null===(i=null==e?void 0:e.options.services)||void 0===i?void 0:i[o.type],s=t.data?Z(t.data,n,r):void 0,c=a?function(t,e,n){var r=ge(e);r.deferred=!0,ut(t)&&(r.state=ve(void 0,(function(){return(n?t.withContext(n):t).initialState})));return r}(a,t.id,s):ge(t.id);return c.meta=t,c}function _e(t){return function(t){try{return"function"==typeof t.send}catch(t){return!1}}(t)&&"id"in t}function me(t){if("string"==typeof t){var e={type:t,toString:function(){return t}};return e}return t}function we(t){return R(R({type:Et},t),{toJSON:function(){t.onDone,t.onError;var e=D(t,["onDone","onError"]);return R(R({},e),{type:Et,src:me(t.src)})}})}var xe="*",je={},Oe=function(t){return"#"===t[0]},Se=function(){function t(e,n,r){var i=this;this.config=e,this.context=r,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.options=Object.assign({actions:{},guards:{},services:{},activities:{},delays:{}},n),this.parent=this.options._parent,this.key=this.config.key||this.options._key||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:"."),this.id=this.config.id||L([this.machine.key],this.path).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&U(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.initial=this.config.initial,this.states=this.config.states?W(this.config.states,(function(e,n){var r,o=new t(e,{_parent:i,_key:n});return Object.assign(i.idMap,R(((r={})[o.id]=o,r),o.idMap)),o})):je;var o=0;!function t(e){var n,r;e.order=o++;try{for(var i=N(ie(e)),a=i.next();!a.done;a=i.next()){t(a.value)}}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}(this),this.history=!0===this.config.history?"shallow":this.config.history||!1,this._transient=!!this.config.always||!!this.config.on&&(Array.isArray(this.config.on)?this.config.on.some((function(t){return""===t.event})):""in this.config.on),this.strict=!!this.config.strict,this.onEntry=Q(this.config.entry||this.config.onEntry).map((function(t){return It(t)})),this.onExit=Q(this.config.exit||this.config.onExit).map((function(t){return It(t)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=Q(this.config.invoke).map((function(t,e){var n,r;if(ut(t))return i.machine.options.services=R(((n={})[t.id]=t,n),i.machine.options.services),we({src:t.id,id:t.id});if(rt(t.src))return we(R(R({},t),{id:t.id||t.src,src:t.src}));if(ut(t.src)||nt(t.src)){var o=i.id+":invocation["+e+"]";return i.machine.options.services=R(((r={})[o]=t.src,r),i.machine.options.services),we(R(R({id:o},t),{src:o}))}var a=t.src;return we(R(R({id:a.type},t),{src:a}))})),this.activities=Q(this.config.activities).concat(this.invoke).map((function(t){return Ct(t)})),this.transition=this.transition.bind(this)}return t.prototype._init=function(){this.__cache.transitions||oe(this).forEach((function(t){return t.on}))},t.prototype.withConfig=function(e,n){void 0===n&&(n=this.context);var r=this.options,i=r.actions,o=r.activities,a=r.guards,s=r.services,c=r.delays;return new t(this.config,{actions:R(R({},i),e.actions),activities:R(R({},o),e.activities),guards:R(R({},a),e.guards),services:R(R({},s),e.services),delays:R(R({},c),e.delays)},n)},t.prototype.withContext=function(e){return new t(this.config,this.options,e)},Object.defineProperty(t.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:W(this.states,(function(t){return t.definition})),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke}},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){return this.definition},Object.defineProperty(t.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var t=this.transitions;return this.__cache.on=t.reduce((function(t,e){return t[e.eventType]=t[e.eventType]||[],t[e.eventType].push(e),t}),{})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),t.prototype.getCandidates=function(t){if(this.__cache.candidates[t])return this.__cache.candidates[t];var e=""===t,n=this.transitions.filter((function(n){var r=n.eventType===t;return e?r:r||n.eventType===xe}));return this.__cache.candidates[t]=n,n},t.prototype.getDelayedTransitions=function(){var t=this,e=this.config.after;if(!e)return[];var n=function(e,n){var r=Jt(nt(e)?t.id+":delay["+n+"]":e,t.id);return t.onEntry.push(Ut(r,{delay:e})),t.onExit.push(Wt(r)),r};return(et(e)?e.map((function(t,e){var r=n(t.delay,e);return R(R({},t),{event:r})})):J(U(e).map((function(t,r){var i=e[t],o=rt(i)?{target:i}:i,a=isNaN(+t)?t:+t,s=n(a,r);return Q(o).map((function(t){return R(R({},t),{event:s,delay:a})}))})))).map((function(e){var n=e.delay;return R(R({},t.formatTransition(e)),{delay:n})}))},t.prototype.getStateNodes=function(t){var e,n=this;if(!t)return[];var r=t instanceof ye?t.value:V(t,this.delimiter);if(rt(r)){var i=this.getStateNode(r).initial;return void 0!==i?this.getStateNodes(((e={})[r]=i,e)):[this.states[r]]}var o=U(r);return o.map((function(t){return n.getStateNode(t)})).concat(o.reduce((function(t,e){var i=n.getStateNode(e).getStateNodes(r[e]);return t.concat(i)}),[]))},t.prototype.handles=function(t){var e=$(t);return this.events.includes(e)},t.prototype.resolveState=function(t){var e=Array.from(ae([],this.getStateNodes(t.value)));return new ye(R(R({},t),{value:this.resolve(t.value),configuration:e,done:fe(e,this)}))},t.prototype.transitionLeafNode=function(t,e,n){var r=this.getStateNode(t).next(e,n);return r&&r.transitions.length?r:this.next(e,n)},t.prototype.transitionCompoundNode=function(t,e,n){var r=U(t),i=this.getStateNode(r[0])._transition(t[r[0]],e,n);return i&&i.transitions.length?i:this.next(e,n)},t.prototype.transitionParallelNode=function(t,e,n){var r,i,o={};try{for(var a=N(U(t)),s=a.next();!s.done;s=a.next()){var c=s.value,u=t[c];if(u){var l=this.getStateNode(c)._transition(u,e,n);l&&(o[c]=l)}}}catch(t){r={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}var f=U(o).map((function(t){return o[t]})),h=J(f.map((function(t){return t.transitions})));if(!f.some((function(t){return t.transitions.length>0})))return this.next(e,n);var p=J(f.map((function(t){return t.entrySet}))),d=J(U(o).map((function(t){return o[t].configuration})));return{transitions:h,entrySet:p,exitSet:J(f.map((function(t){return t.exitSet}))),configuration:d,source:e,actions:J(U(o).map((function(t){return o[t].actions})))}},t.prototype._transition=function(t,e,n){return rt(t)?this.transitionLeafNode(t,e,n):1===U(t).length?this.transitionCompoundNode(t,e,n):this.transitionParallelNode(t,e,n)},t.prototype.next=function(t,e){var n,r,i,o=this,a=e.name,s=[],c=[];try{for(var u=N(this.getCandidates(a)),l=u.next();!l.done;l=u.next()){var f=l.value,h=f.cond,p=f.in,d=t.context,y=!p||(rt(p)&&Oe(p)?t.matches(V(this.getStateNodeById(p).path,this.delimiter)):M(V(p,this.delimiter),H(this.path.slice(0,-2))(t.value))),v=!1;try{v=!h||dt(this.machine,h,d,e,t)}catch(t){throw new Error("Unable to evaluate guard '"+(h.name||h.type)+"' in transition for event '"+a+"' in state node '"+this.id+"':\n"+t.message)}if(v&&y){void 0!==f.target&&(c=f.target),s.push.apply(s,L(f.actions)),i=f;break}}}catch(t){n={error:t}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}if(i){if(!c.length)return{transitions:[i],entrySet:[],exitSet:[],configuration:t.value?[this]:[],source:t,actions:s};var g=J(c.map((function(e){return o.getRelativeStateNodes(e,t.historyValue)}))),b=!!i.internal;return{transitions:[i],entrySet:b?[]:J(g.map((function(t){return o.nodesFromChild(t)}))),exitSet:b?[]:[this],configuration:g,source:t,actions:s}}},t.prototype.nodesFromChild=function(t){if(t.escapes(this))return[];for(var e=[],n=t;n&&n!==this;)e.push(n),n=n.parent;return e.push(this),e},t.prototype.escapes=function(t){if(this===t)return!1;for(var e=this.parent;e;){if(e===t)return!1;e=e.parent}return!0},t.prototype.getActions=function(t,e,n,r){var i,o,a,s,c=ae([],r?this.getStateNodes(r.value):[this]),u=t.configuration.length?ae(c,t.configuration):c;try{for(var l=N(u),f=l.next();!f.done;f=l.next()){le(c,d=f.value)||t.entrySet.push(d)}}catch(t){i={error:t}}finally{try{f&&!f.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}try{for(var h=N(c),p=h.next();!p.done;p=h.next()){var d;le(u,d=p.value)&&!le(t.exitSet,d.parent)||t.exitSet.push(d)}}catch(t){a={error:t}}finally{try{p&&!p.done&&(s=h.return)&&s.call(h)}finally{if(a)throw a.error}}t.source||(t.exitSet=[],t.entrySet.push(this));var y=J(t.entrySet.map((function(r){var i=[];if("final"!==r.type)return i;var o=r.parent;if(!o.parent)return i;i.push(Kt(r.id,r.doneData),Kt(o.id,r.doneData?Z(r.doneData,e,n):void 0));var a=o.parent;return"parallel"===a.type&&ie(a).every((function(e){return fe(t.configuration,e)}))&&i.push(Kt(a.id)),i})));t.exitSet.sort((function(t,e){return e.order-t.order})),t.entrySet.sort((function(t,e){return t.order-e.order}));var v=new Set(t.entrySet),g=new Set(t.exitSet),b=I([J(Array.from(v).map((function(t){return L(t.activities.map((function(t){return qt(t)})),t.onEntry)}))).concat(y.map(Ft)),J(Array.from(g).map((function(t){return L(t.onExit,t.activities.map((function(t){return Ht(t)})))})))],2),_=b[0],m=b[1];return Lt(m.concat(t.actions).concat(_),this.machine.options.actions)},t.prototype.transition=function(t,e,n){void 0===t&&(t=this.initialState);var r,i,o=ht(e);if(t instanceof ye)r=void 0===n?t:this.resolveState(ye.from(t,n));else{var a=rt(t)?this.resolve(z(this.getResolvedPath(t))):this.resolve(t),s=n||this.machine.context;r=this.resolveState(ye.from(a,s))}if(this.strict&&!this.events.includes(o.name)&&(i=o.name,!/^(done|error)\./.test(i)))throw new Error("Machine '"+this.id+"' does not accept event '"+o.name+"'");var c=this._transition(r.value,r,o)||{transitions:[],configuration:[],entrySet:[],exitSet:[],source:r,actions:[]},u=ae([],this.getStateNodes(r.value)),l=c.configuration.length?ae(u,c.configuration):u;return c.configuration=L(l),this.resolveTransition(c,r,o)},t.prototype.resolveRaisedTransition=function(t,e,n){var r,i=t.actions;return(t=this.transition(t,e))._event=n,t.event=n.data,(r=t.actions).unshift.apply(r,L(i)),t},t.prototype.resolveTransition=function(t,e,n,r){var i,o,a=this;void 0===n&&(n=Dt),void 0===r&&(r=this.machine.context);var s=t.configuration,c=!e||t.transitions.length>0?ue(this.machine,s):void 0,u=e?e.historyValue?e.historyValue:t.source?this.machine.historyValue(e.value):void 0:void 0,l=e?e.context:r,f=this.getActions(t,l,n,e),h=e?R({},e.activities):{};try{for(var p=N(f),d=p.next();!d.done;d=p.next()){var y=d.value;y.type===gt?h[y.activity.id||y.activity.type]=y:y.type===bt&&(h[y.activity.id||y.activity.type]=!1)}}catch(t){i={error:t}}finally{try{d&&!d.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}var v,g,b=I(ne(this,e,l,n,f),2),_=b[0],m=b[1],w=I(Y(_,(function(t){return t.type===_t||t.type===mt&&t.to===st.Internal})),2),x=w[0],j=w[1],O=_.filter((function(t){var e;return t.type===gt&&(null===(e=t.activity)||void 0===e?void 0:e.type)===Et})),S=O.reduce((function(t,e){return t[e.activity.id]=be(e.activity,a.machine,m,n),t}),e?R({},e.children):{}),E=c?t.configuration:e?e.configuration:[],k=E.reduce((function(t,e){return void 0!==e.meta&&(t[e.id]=e.meta),t}),{}),A=fe(E,this),P=new ye({value:c||e.value,context:m,_event:n,_sessionid:e?e._sessionid:null,historyValue:c?u?(v=u,g=c,{current:g,states:tt(v,g)}):void 0:e?e.historyValue:void 0,history:!c||t.source?e:void 0,actions:c?j:[],activities:c?h:e?e.activities:{},meta:c?k:e?e.meta:void 0,events:[],configuration:E,transitions:t.transitions,children:S,done:A}),T=l!==m;P.changed=n.name===Pt||T;var D=P.history;if(D&&delete D.history,!c)return P;var L=P;if(!A)for((this._transient||s.some((function(t){return t._transient})))&&(L=this.resolveRaisedTransition(L,{type:xt},n));x.length;){var C=x.shift();L=this.resolveRaisedTransition(L,C._event,n)}var F=L.changed||(D?!!L.actions.length||T||typeof D.value!=typeof L.value||!he(L.value,D.value):void 0);return L.changed=F,L.history=D,L},t.prototype.getStateNode=function(t){if(Oe(t))return this.machine.getStateNodeById(t);if(!this.states)throw new Error("Unable to retrieve child state '"+t+"' from '"+this.id+"'; no child states exist.");var e=this.states[t];if(!e)throw new Error("Child state '"+t+"' does not exist on '"+this.id+"'");return e},t.prototype.getStateNodeById=function(t){var e=Oe(t)?t.slice(1):t;if(e===this.id)return this;var n=this.machine.idMap[e];if(!n)throw new Error("Child state node '#"+e+"' does not exist on machine '"+this.id+"'");return n},t.prototype.getStateNodeByPath=function(t){if("string"==typeof t&&Oe(t))try{return this.getStateNodeById(t.slice(1))}catch(t){}for(var e=B(t,this.delimiter).slice(),n=this;e.length;){var r=e.shift();if(!r.length)break;n=n.getStateNode(r)}return n},t.prototype.resolve=function(t){var e,n=this;if(!t)return this.initialStateValue||je;switch(this.type){case"parallel":return W(this.initialStateValue,(function(e,r){return e?n.getStateNode(r).resolve(t[r]||e):je}));case"compound":if(rt(t)){var r=this.getStateNode(t);return"parallel"===r.type||"compound"===r.type?((e={})[t]=r.initialStateValue,e):t}return U(t).length?W(t,(function(t,e){return t?n.getStateNode(e).resolve(t):je})):this.initialStateValue||{};default:return t||je}},t.prototype.getResolvedPath=function(t){if(Oe(t)){var e=this.machine.idMap[t.slice(1)];if(!e)throw new Error("Unable to find state node '"+t+"'");return e.path}return B(t,this.delimiter)},Object.defineProperty(t.prototype,"initialStateValue",{get:function(){var t,e;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if("parallel"===this.type)e=q(this.states,(function(t){return t.initialStateValue||je}),(function(t){return!("history"===t.type)}));else if(void 0!==this.initial){if(!this.states[this.initial])throw new Error("Initial state '"+this.initial+"' not found on '"+this.key+"'");e=re(this.states[this.initial])?this.initial:((t={})[this.initial]=this.states[this.initial].initialStateValue,t)}return this.__cache.initialStateValue=e,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),t.prototype.getInitialState=function(t,e){var n=this.getStateNodes(t);return this.resolveTransition({configuration:n,entrySet:n,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,void 0,e)},Object.defineProperty(t.prototype,"initialState",{get:function(){this._init();var t=this.initialStateValue;if(!t)throw new Error("Cannot retrieve initial state from simple state '"+this.id+"'.");return this.getInitialState(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){var t;if("history"===this.type){var e=this.config;t=rt(e.target)&&Oe(e.target)?z(this.machine.getStateNodeById(e.target).path.slice(this.path.length-1)):e.target}return t},enumerable:!1,configurable:!0}),t.prototype.getRelativeStateNodes=function(t,e,n){return void 0===n&&(n=!0),n?"history"===t.type?t.resolveHistory(e):t.initialStateNodes:[t]},Object.defineProperty(t.prototype,"initialStateNodes",{get:function(){var t=this;return re(this)?[this]:"compound"!==this.type||this.initial?J(G(this.initialStateValue).map((function(e){return t.getFromRelativePath(e)}))):[this]},enumerable:!1,configurable:!0}),t.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var e=I(t),n=e[0],r=e.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '"+n+"' from node with no states");var i=this.getStateNode(n);if("history"===i.type)return i.resolveHistory();if(!this.states[n])throw new Error("Child state '"+n+"' does not exist on '"+this.id+"'");return this.states[n].getFromRelativePath(r)},t.prototype.historyValue=function(t){if(U(this.states).length)return{current:t||this.initialStateValue,states:q(this.states,(function(e,n){if(!t)return e.historyValue();var r=rt(t)?void 0:t[n];return e.historyValue(r||e.initialStateValue)}),(function(t){return!t.history}))}},t.prototype.resolveHistory=function(t){var e=this;if("history"!==this.type)return[this];var n=this.parent;if(!t){var r=this.target;return r?J(G(r).map((function(t){return n.getFromRelativePath(t)}))):n.initialStateNodes}var i,o,a=(i=n.path,o="states",function(t){var e,n,r=t;try{for(var a=N(i),s=a.next();!s.done;s=a.next()){var c=s.value;r=r[o][c]}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return r})(t).current;return rt(a)?[n.getStateNode(a)]:J(G(a).map((function(t){return"deep"===e.history?n.getFromRelativePath(t):[n.states[t[0]]]})))},Object.defineProperty(t.prototype,"stateIds",{get:function(){var t=this,e=J(U(this.states).map((function(e){return t.states[e].stateIds})));return[this.id].concat(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){var t,e,n,r;if(this.__cache.events)return this.__cache.events;var i=this.states,o=new Set(this.ownEvents);if(i)try{for(var a=N(U(i)),s=a.next();!s.done;s=a.next()){var c=i[s.value];if(c.states)try{for(var u=(n=void 0,N(c.events)),l=u.next();!l.done;l=u.next()){var f=l.value;o.add(""+f)}}catch(t){n={error:t}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}return this.__cache.events=Array.from(o)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ownEvents",{get:function(){var t=new Set(this.transitions.filter((function(t){return!(!t.target&&!t.actions.length&&t.internal)})).map((function(t){return t.eventType})));return Array.from(t)},enumerable:!1,configurable:!0}),t.prototype.resolveTarget=function(t){var e=this;if(void 0!==t)return t.map((function(t){if(!rt(t))return t;var n=t[0]===e.delimiter;if(n&&!e.parent)return e.getStateNodeByPath(t.slice(1));var r=n?e.key+t:t;if(!e.parent)return e.getStateNodeByPath(r);try{return e.parent.getStateNodeByPath(r)}catch(t){throw new Error("Invalid transition definition for state node '"+e.id+"':\n"+t.message)}}))},t.prototype.formatTransition=function(t){var e=this,n=function(t){if(void 0!==t&&""!==t)return Q(t)}(t.target),r="internal"in t?t.internal:!n||n.some((function(t){return rt(t)&&t[0]===e.delimiter})),i=this.machine.options.guards,o=this.resolveTarget(n),a=R(R({},t),{actions:Lt(Q(t.actions)),cond:it(t.cond,i),target:o,source:this,internal:r,eventType:t.event,toJSON:function(){return R(R({},a),{target:a.target?a.target.map((function(t){return"#"+t.id})):void 0,source:"#"+e.id})}});return a},t.prototype.formatTransitions=function(){var t,e,n,r=this;if(this.config.on)if(Array.isArray(this.config.on))n=this.config.on;else{var i=this.config.on,o=xe,a=i[o],s=void 0===a?[]:a,c=D(i,["*"]);n=J(U(c).map((function(t){var e=pt(t,c[t]);return e})).concat(pt(xe,s)))}else n=[];var u=this.config.always?pt("",this.config.always):[],l=this.config.onDone?pt(String(Kt(this.id)),this.config.onDone):[];var f=J(this.invoke.map((function(t){var e=[];return t.onDone&&e.push.apply(e,L(pt(String(Qt(t.id)),t.onDone))),t.onError&&e.push.apply(e,L(pt(String(Zt(t.id)),t.onError))),e}))),h=this.after,p=J(L(l,f,n,u).map((function(t){return Q(t).map((function(t){return r.formatTransition(t)}))})));try{for(var d=N(h),y=d.next();!y.done;y=d.next()){var v=y.value;p.push(v)}}catch(e){t={error:e}}finally{try{y&&!y.done&&(e=d.return)&&e.call(d)}finally{if(t)throw t.error}}return p},t}();function Ee(t,e,n){void 0===n&&(n=t.context);var r="function"==typeof n?n():n;return new Se(t,e,r)}function ke(t,e){var n="function"==typeof t.context?t.context():t.context;return new Se(t,e,n)}const Ae=Gt({failure:null}),Pe=Gt({errors:[]}),Te=Gt({edits:null}),Re=Gt({data:null}),De=Pe,Ne=Gt({failure:(t,e)=>e.data}),Ie=Gt({errors:(t,e)=>e.data}),Le=Gt({data:(t,e)=>e.data}),Ce=Gt({edits:(t,e)=>Object.assign(Object.assign({},t.edits),e.data)});const Fe=ke({context:{data:null,edits:null,errors:[],failure:null},entry:["validate"],id:"nucleon",initial:"init",on:{DELETE:{target:"#nucleon.busy.deleting"},FETCH:{actions:["clearData","clearEdits","clearErrors"],target:"#nucleon.busy.fetching"},REFRESH:{target:"#nucleon.busy.fetching"},SET_DATA:{actions:["setData","clearEdits","clearErrors"],target:"#nucleon.init"}},states:{busy:{states:{creating:{invoke:{onDone:{actions:["setData","clearEdits","validate"],target:"#nucleon.idle.snapshot"},onError:[{actions:"setErrors",cond:"isV8nErrorEvent",target:"#nucleon.idle"},{actions:"setFailure",target:"#nucleon.fail"}],src:"sendPost"}},deleting:{invoke:{onDone:{actions:["clearData","clearEdits","validate"],target:"#nucleon.idle.template"},onError:[{actions:"setErrors",cond:"isV8nErrorEvent",target:"#nucleon.idle"},{actions:"setFailure",target:"#nucleon.fail"}],src:"sendDelete"}},fetching:{invoke:{onDone:{actions:["setData","clearErrors","validate"],target:"#nucleon.idle.snapshot"},onError:[{actions:"setErrors",cond:"isV8nErrorEvent",target:"#nucleon.idle"},{actions:"setFailure",target:"#nucleon.fail"}],src:"sendGet"}},updating:{invoke:{onDone:{actions:["setData","clearEdits","validate"],target:"#nucleon.idle.snapshot"},onError:[{actions:"setErrors",cond:"isV8nErrorEvent",target:"#nucleon.idle"},{actions:"setFailure",target:"#nucleon.fail"}],src:"sendPatch"}}}},fail:{exit:"clearFailure"},idle:{initial:"unknown",on:{EDIT:{actions:["applyEdit","validate"],target:".unknown"}},states:{snapshot:{initial:"unknown",states:{clean:{initial:"unknown",states:{invalid:{},unknown:{always:[{cond:"hasErrors",target:"invalid"},{target:"valid"}]},valid:{}}},dirty:{initial:"unknown",on:{UNDO:{actions:["clearEdits","clearErrors","validate"],target:"#nucleon.idle.snapshot.clean"}},states:{invalid:{},unknown:{always:[{cond:"hasErrors",target:"invalid"},{target:"valid"}]},valid:{on:{SUBMIT:{target:"#nucleon.busy.updating"}}}}},unknown:{always:[{cond:"hasEdits",target:"dirty"},{target:"clean"}]}}},template:{initial:"unknown",states:{clean:{initial:"unknown",states:{invalid:{},unknown:{always:[{cond:"hasErrors",target:"invalid"},{target:"valid"}]},valid:{}}},dirty:{initial:"unknown",on:{UNDO:{actions:["clearEdits","clearErrors","validate"],target:"#nucleon.idle.template.clean"}},states:{invalid:{},unknown:{always:[{cond:"hasErrors",target:"invalid"},{target:"valid"}]},valid:{on:{SUBMIT:{target:"#nucleon.busy.creating"}}}}},unknown:{always:[{cond:"hasEdits",target:"dirty"},{target:"clean"}]}}},unknown:{always:[{cond:"hasData",target:"snapshot"},{target:"template"}]}}},init:{always:[{cond:"hasData",target:"idle.snapshot"},{target:"idle.template"}]}}},{actions:Object.freeze({__proto__:null,clearFailure:Ae,clearErrors:Pe,clearEdits:Te,clearData:Re,validate:De,setFailure:Ne,setErrors:Ie,setData:Le,applyEdit:Ce}),guards:Object.freeze({__proto__:null,hasData:t=>null!==t.data,hasEdits:t=>null!==t.edits,hasErrors:t=>t.errors.length>0,isV8nErrorEvent:(t,e)=>Array.isArray(e.data)})});class Ue{constructor(t){this.__tree=Ue.__parse(t)}static get True(){return $e}static get False(){return Me}static fromAttribute(t,e){return null===t?Ue.False:""===t||t===e?Ue.True:new Ue(t)}matches(t,e=!1){const n=this.zoom(t).toString();return e?"not=*"===n:""!==n}zoom(t){const e=new Ue("");return e.__tree=t.split(":").reduce(((t,e)=>{let n;if("include"in t){if(n=t.include[e],void 0===n)return{include:{}};if(!0===n)return{exclude:{"*":!0}}}else{if(n=t.exclude[e],void 0===n)return{exclude:{"*":!0}};if(!0===n)return{include:{}}}return n}),this.__tree),e}toString(){return Ue.__stringifyTree(this.__tree)}toAttribute(t=""){const e=this.toString();return"not=*"===e?t:0===e.length?null:e}static __parsePath(t,e){const n=t.indexOf(":"),r=t.substring(0,n),i=t.substring(n+1);if("exclude"in e){const t=e.exclude[r];t&&(e.exclude[r]=this.__parseListItem(i,!0===t?void 0:t))}else{const t=e.include[r];!0!==t&&(e.include[r]=this.__parseListItem(i,t))}return e}static __parseSet(t,e){const n=t.split(",");if("include"in e){e={exclude:e.include};for(const t in e.exclude)n.includes(t)||delete e.exclude[t];for(const t of n)t in e.exclude?delete e.exclude[t]:e.exclude[t]=!0}else for(const t in e.exclude)n.includes(t)||delete e.exclude[t];return e}static __parseListItem(t,e={include:{}}){if(t.includes(":"))return this.__parsePath(t,e);if(t.startsWith("not="))return this.__parseSet(t.substring(4),e);if("include"in e)e.include[t]=!0;else for(const n in e.exclude)n===t&&delete e.exclude[n];return e}static __parseList(t,e={include:{}}){return t.split(" ").reduce(((t,e)=>this.__parseListItem(e,t)),e)}static __lintList(t){var e;let n="list",r="";for(let i=0;i<t.length;++i){const o=t.charAt(i);try{if("list"===n){if(/^\s$/.test(o)){/^\s$/.test(null!==(e=t[i-1])&&void 0!==e?e:" ")||(r+=" ");continue}if(/^[a-z]$/.test(o)){r+=o,n="path";continue}throw new SyntaxError(`Expected [a-z] or a whitespace, but got "${o}" instead.`)}if("path"===n){if(/^[a-z]$/.test(o)){r+=o;continue}if("-"===o){if("-"===t[i-1]||":"===t[i-1])throw new SyntaxError(`Expected [a-z], but got "${o}" instead.`);r+=o;continue}if(":"===o){if(":"===t[i-1]||"-"===t[i-1])throw new SyntaxError(`Expected [a-z], but got "${o}" instead.`);r+=o;continue}if("="===o){if("="===t[i-1]||":"===t[i-1]||"-"===t[i-1])throw new SyntaxError(`Expected [a-z], but got "${o}" instead.`);if(!r.endsWith("not")||3!==r.length&&/[a-z]|-/.test(r[i-4]))throw new SyntaxError(`Expected [a-z] or ":", but got "${o}" instead.`);r+=o,n="set";continue}if(/^\s$/.test(o)){r+=" ",n="list";continue}throw new SyntaxError(`Expected [a-z], ",", ":", ":" or a whitespace, but got "${o}" instead.`)}if("set"===n){if(/^\s$/.test(o))continue;if(/^[a-z]|\*$/.test(o)){n="set-item",r+=o;continue}throw new SyntaxError(`Expected [a-z] or a whitespace, but got "${o}" instead.`)}if("set-item"===n){if("*"===t[i-1]){if(","===o){r+=o,n="set";continue}if(/^\s$/.test(o)){i!==t.length-1&&(r+=" "),n="list";continue}throw new SyntaxError(`Expected "," or a whitespace, but got "${o}" instead.`)}if(/^[a-z]$/.test(o)){r+=o;continue}if("-"===o){if("-"===t[i-1]||":"===t[i-1]||"="===t[i-1])throw new SyntaxError(`Expected [a-z], but got "${o}" instead.`);r+=o;continue}if(","===o){r+=o,n="set";continue}if(/^\s$/.test(o)){i!==t.length-1&&(r+=" "),n="list";continue}throw new SyntaxError(`Expected [a-z], "," or a whitespace, but got "${o}" instead.`)}}catch(e){const n="This error occured at: ",r=t=>t.substring(Math.max(0,i-30),i+30),o=r(t),a=" ".repeat(n.length)+r("^".padStart(i+1," "));throw new SyntaxError([e.message,`${n}${o}`,a].join("\n"))}}return r.trimEnd()}static __parse(t){return this.__parseList(this.__lintList(t))}static __stringifyTree(t,e){const n=[];if("include"in t)for(const r in t.include){const i=t.include[r],o=e?[e,r].join(":"):r;!0===i?n.push(o):n.push(this.__stringifyTree(i,o))}else{const r=[],i=[];for(const n in t.exclude){const o=t.exclude[n],a=e?[e,n].join(":"):n;r.push(n),!0!==o&&i.push(this.__stringifyTree(o,a))}n.push(`${e?`${e}:`:""}not=${r.join(",")}`,...i)}return n.join(" ")}}const Me=new Ue(""),$e=new Ue("not=*");function Be(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}var Ve=Array.isArray,ze=1/0,We=d?d.prototype:void 0,qe=We?We.toString:void 0;function He(t){if("string"==typeof t)return t;if(Ve(t))return Be(t,He)+"";if(E(t))return qe?qe.call(t):"";var e=t+"";return"0"==e&&1/t==-ze?"-0":e}var Ge="[object AsyncFunction]",Je="[object Function]",Ke="[object GeneratorFunction]",Qe="[object Proxy]";function Ze(t){if(!l(t))return!1;var e=j(t);return e==Je||e==Ke||e==Ge||e==Qe}var Xe,Ye=p["__core-js_shared__"],tn=(Xe=/[^.]+$/.exec(Ye&&Ye.keys&&Ye.keys.IE_PROTO||""))?"Symbol(src)_1."+Xe:"";var en=Function.prototype.toString;function nn(t){if(null!=t){try{return en.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var rn=/^\[object .+?Constructor\]$/,on=Function.prototype,an=Object.prototype,sn=on.toString,cn=an.hasOwnProperty,un=RegExp("^"+sn.call(cn).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ln(t){return!(!l(t)||(e=t,tn&&tn in e))&&(Ze(t)?un:rn).test(nn(t));var e}function fn(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return ln(n)?n:void 0}var hn=fn(p,"WeakMap"),pn=9007199254740991,dn=/^(?:0|[1-9]\d*)$/;function yn(t,e){var n=typeof t;return!!(e=null==e?pn:e)&&("number"==n||"symbol"!=n&&dn.test(t))&&t>-1&&t%1==0&&t<e}function vn(t,e){return t===e||t!=t&&e!=e}var gn=9007199254740991;function bn(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=gn}function _n(t){return null!=t&&bn(t.length)&&!Ze(t)}var mn=Object.prototype;function wn(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||mn)}function xn(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function jn(t){return O(t)&&"[object Arguments]"==j(t)}var On=Object.prototype,Sn=On.hasOwnProperty,En=On.propertyIsEnumerable,kn=jn(function(){return arguments}())?jn:function(t){return O(t)&&Sn.call(t,"callee")&&!En.call(t,"callee")};var An="object"==typeof exports&&exports&&!exports.nodeType&&exports,Pn=An&&"object"==typeof module&&module&&!module.nodeType&&module,Tn=Pn&&Pn.exports===An?p.Buffer:void 0,Rn=(Tn?Tn.isBuffer:void 0)||function(){return!1},Dn={};function Nn(t){return function(e){return t(e)}}Dn["[object Float32Array]"]=Dn["[object Float64Array]"]=Dn["[object Int8Array]"]=Dn["[object Int16Array]"]=Dn["[object Int32Array]"]=Dn["[object Uint8Array]"]=Dn["[object Uint8ClampedArray]"]=Dn["[object Uint16Array]"]=Dn["[object Uint32Array]"]=!0,Dn["[object Arguments]"]=Dn["[object Array]"]=Dn["[object ArrayBuffer]"]=Dn["[object Boolean]"]=Dn["[object DataView]"]=Dn["[object Date]"]=Dn["[object Error]"]=Dn["[object Function]"]=Dn["[object Map]"]=Dn["[object Number]"]=Dn["[object Object]"]=Dn["[object RegExp]"]=Dn["[object Set]"]=Dn["[object String]"]=Dn["[object WeakMap]"]=!1;var In="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ln=In&&"object"==typeof module&&module&&!module.nodeType&&module,Cn=Ln&&Ln.exports===In&&f.process,Fn=function(){try{var t=Ln&&Ln.require&&Ln.require("util").types;return t||Cn&&Cn.binding&&Cn.binding("util")}catch(t){}}(),Un=Fn&&Fn.isTypedArray,Mn=Un?Nn(Un):function(t){return O(t)&&bn(t.length)&&!!Dn[j(t)]},$n=Object.prototype.hasOwnProperty;function Bn(t,e){var n=Ve(t),r=!n&&kn(t),i=!n&&!r&&Rn(t),o=!n&&!r&&!i&&Mn(t),a=n||r||i||o,s=a?xn(t.length,String):[],c=s.length;for(var u in t)!e&&!$n.call(t,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||yn(u,c))||s.push(u);return s}function Vn(t,e){return function(n){return t(e(n))}}var zn=Vn(Object.keys,Object),Wn=Object.prototype.hasOwnProperty;function qn(t){return _n(t)?Bn(t):function(t){if(!wn(t))return zn(t);var e=[];for(var n in Object(t))Wn.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}var Hn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Gn=/^\w*$/;var Jn=fn(Object,"create");var Kn=Object.prototype.hasOwnProperty;var Qn=Object.prototype.hasOwnProperty;function Zn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Xn(t,e){for(var n=t.length;n--;)if(vn(t[n][0],e))return n;return-1}Zn.prototype.clear=function(){this.__data__=Jn?Jn(null):{},this.size=0},Zn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Zn.prototype.get=function(t){var e=this.__data__;if(Jn){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Kn.call(e,t)?e[t]:void 0},Zn.prototype.has=function(t){var e=this.__data__;return Jn?void 0!==e[t]:Qn.call(e,t)},Zn.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Jn&&void 0===e?"__lodash_hash_undefined__":e,this};var Yn=Array.prototype.splice;function tr(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}tr.prototype.clear=function(){this.__data__=[],this.size=0},tr.prototype.delete=function(t){var e=this.__data__,n=Xn(e,t);return!(n<0)&&(n==e.length-1?e.pop():Yn.call(e,n,1),--this.size,!0)},tr.prototype.get=function(t){var e=this.__data__,n=Xn(e,t);return n<0?void 0:e[n][1]},tr.prototype.has=function(t){return Xn(this.__data__,t)>-1},tr.prototype.set=function(t,e){var n=this.__data__,r=Xn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var er=fn(p,"Map");function nr(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function rr(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}rr.prototype.clear=function(){this.size=0,this.__data__={hash:new Zn,map:new(er||tr),string:new Zn}},rr.prototype.delete=function(t){var e=nr(this,t).delete(t);return this.size-=e?1:0,e},rr.prototype.get=function(t){return nr(this,t).get(t)},rr.prototype.has=function(t){return nr(this,t).has(t)},rr.prototype.set=function(t,e){var n=nr(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};var ir="Expected a function";function or(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(ir);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(or.Cache||rr),n}or.Cache=rr;var ar,sr,cr,ur=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,lr=/\\(\\)?/g,fr=(ar=function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ur,(function(t,n,r,i){e.push(r?i.replace(lr,"$1"):n||t)})),e},sr=or(ar,(function(t){return 500===cr.size&&cr.clear(),t})),cr=sr.cache,sr),hr=fr;function pr(t){return null==t?"":He(t)}function dr(t,e){return Ve(t)?t:function(t,e){if(Ve(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!E(t))||Gn.test(t)||!Hn.test(t)||null!=e&&t in Object(e)}(t,e)?[t]:hr(pr(t))}var yr=1/0;function vr(t){if("string"==typeof t||E(t))return t;var e=t+"";return"0"==e&&1/t==-yr?"-0":e}function gr(t,e){for(var n=0,r=(e=dr(e,t)).length;null!=t&&n<r;)t=t[vr(e[n++])];return n&&n==r?t:void 0}function br(t,e,n){var r=null==t?void 0:gr(t,e);return void 0===r?n:r}function _r(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function mr(t){var e=this.__data__=new tr(t);this.size=e.size}function wr(){return[]}mr.prototype.clear=function(){this.__data__=new tr,this.size=0},mr.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},mr.prototype.get=function(t){return this.__data__.get(t)},mr.prototype.has=function(t){return this.__data__.has(t)},mr.prototype.set=function(t,e){var n=this.__data__;if(n instanceof tr){var r=n.__data__;if(!er||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new rr(r)}return n.set(t,e),this.size=n.size,this};var xr=Object.prototype.propertyIsEnumerable,jr=Object.getOwnPropertySymbols,Or=jr?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}(jr(t),(function(e){return xr.call(t,e)})))}:wr,Sr=Or;function Er(t,e,n){var r=e(t);return Ve(t)?r:_r(r,n(t))}function kr(t){return Er(t,qn,Sr)}var Ar=fn(p,"DataView"),Pr=fn(p,"Promise"),Tr=fn(p,"Set"),Rr="[object Map]",Dr="[object Promise]",Nr="[object Set]",Ir="[object WeakMap]",Lr="[object DataView]",Cr=nn(Ar),Fr=nn(er),Ur=nn(Pr),Mr=nn(Tr),$r=nn(hn),Br=j;(Ar&&Br(new Ar(new ArrayBuffer(1)))!=Lr||er&&Br(new er)!=Rr||Pr&&Br(Pr.resolve())!=Dr||Tr&&Br(new Tr)!=Nr||hn&&Br(new hn)!=Ir)&&(Br=function(t){var e=j(t),n="[object Object]"==e?t.constructor:void 0,r=n?nn(n):"";if(r)switch(r){case Cr:return Lr;case Fr:return Rr;case Ur:return Dr;case Mr:return Nr;case $r:return Ir}return e});var Vr=Br,zr=p.Uint8Array;function Wr(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new rr;++e<n;)this.add(t[e])}function qr(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function Hr(t,e){return t.has(e)}Wr.prototype.add=Wr.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Wr.prototype.has=function(t){return this.__data__.has(t)};var Gr=1,Jr=2;function Kr(t,e,n,r,i,o){var a=n&Gr,s=t.length,c=e.length;if(s!=c&&!(a&&c>s))return!1;var u=o.get(t),l=o.get(e);if(u&&l)return u==e&&l==t;var f=-1,h=!0,p=n&Jr?new Wr:void 0;for(o.set(t,e),o.set(e,t);++f<s;){var d=t[f],y=e[f];if(r)var v=a?r(y,d,f,e,t,o):r(d,y,f,t,e,o);if(void 0!==v){if(v)continue;h=!1;break}if(p){if(!qr(e,(function(t,e){if(!Hr(p,e)&&(d===t||i(d,t,n,r,o)))return p.push(e)}))){h=!1;break}}else if(d!==y&&!i(d,y,n,r,o)){h=!1;break}}return o.delete(t),o.delete(e),h}function Qr(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function Zr(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var Xr=1,Yr=2,ti="[object Boolean]",ei="[object Date]",ni="[object Error]",ri="[object Map]",ii="[object Number]",oi="[object RegExp]",ai="[object Set]",si="[object String]",ci="[object Symbol]",ui="[object ArrayBuffer]",li="[object DataView]",fi=d?d.prototype:void 0,hi=fi?fi.valueOf:void 0;var pi=1,di=Object.prototype.hasOwnProperty;var yi=1,vi="[object Arguments]",gi="[object Array]",bi="[object Object]",_i=Object.prototype.hasOwnProperty;function mi(t,e,n,r,i,o){var a=Ve(t),s=Ve(e),c=a?gi:Vr(t),u=s?gi:Vr(e),l=(c=c==vi?bi:c)==bi,f=(u=u==vi?bi:u)==bi,h=c==u;if(h&&Rn(t)){if(!Rn(e))return!1;a=!0,l=!1}if(h&&!l)return o||(o=new mr),a||Mn(t)?Kr(t,e,n,r,i,o):function(t,e,n,r,i,o,a){switch(n){case li:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ui:return!(t.byteLength!=e.byteLength||!o(new zr(t),new zr(e)));case ti:case ei:case ii:return vn(+t,+e);case ni:return t.name==e.name&&t.message==e.message;case oi:case si:return t==e+"";case ri:var s=Qr;case ai:var c=r&Xr;if(s||(s=Zr),t.size!=e.size&&!c)return!1;var u=a.get(t);if(u)return u==e;r|=Yr,a.set(t,e);var l=Kr(s(t),s(e),r,i,o,a);return a.delete(t),l;case ci:if(hi)return hi.call(t)==hi.call(e)}return!1}(t,e,c,n,r,i,o);if(!(n&yi)){var p=l&&_i.call(t,"__wrapped__"),d=f&&_i.call(e,"__wrapped__");if(p||d){var y=p?t.value():t,v=d?e.value():e;return o||(o=new mr),i(y,v,n,r,o)}}return!!h&&(o||(o=new mr),function(t,e,n,r,i,o){var a=n&pi,s=kr(t),c=s.length;if(c!=kr(e).length&&!a)return!1;for(var u=c;u--;){var l=s[u];if(!(a?l in e:di.call(e,l)))return!1}var f=o.get(t),h=o.get(e);if(f&&h)return f==e&&h==t;var p=!0;o.set(t,e),o.set(e,t);for(var d=a;++u<c;){var y=t[l=s[u]],v=e[l];if(r)var g=a?r(v,y,l,e,t,o):r(y,v,l,t,e,o);if(!(void 0===g?y===v||i(y,v,n,r,o):g)){p=!1;break}d||(d="constructor"==l)}if(p&&!d){var b=t.constructor,_=e.constructor;b==_||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof _&&_ instanceof _||(p=!1)}return o.delete(t),o.delete(e),p}(t,e,n,r,i,o))}function wi(t,e,n,r,i){return t===e||(null==t||null==e||!O(t)&&!O(e)?t!=t&&e!=e:mi(t,e,n,r,wi,i))}function xi(t,e){return wi(t,e)}class ji extends Error{constructor(){super("not enough info to update; please reload resource instead")}}function Oi(t){return Object.prototype.toString.call(t)}var Si=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function Ei(t,e){if(t.forEach)return t.forEach(e);for(var n=0;n<t.length;n++)e(t[n],n,t)}var ki=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e},Ai=Object.prototype.hasOwnProperty||function(t,e){return e in t};function Pi(t){if("object"==typeof t&&null!==t){var e;if(Si(t))e=[];else if("[object Date]"===Oi(t))e=new Date(t.getTime?t.getTime():t);else if(function(t){return"[object RegExp]"===Oi(t)}(t))e=new RegExp(t);else if(function(t){return"[object Error]"===Oi(t)}(t))e={message:t.message};else if(function(t){return"[object Boolean]"===Oi(t)}(t)||function(t){return"[object Number]"===Oi(t)}(t)||function(t){return"[object String]"===Oi(t)}(t))e=Object(t);else if(Object.create&&Object.getPrototypeOf)e=Object.create(Object.getPrototypeOf(t));else if(t.constructor===Object)e={};else{var n=t.constructor&&t.constructor.prototype||t.__proto__||{},r=function(){};r.prototype=n,e=new r}return Ei(ki(t),(function(n){e[n]=t[n]})),e}return t}function Ti(t,e,n){var r=[],i=[],o=!0;return function t(a){var s=n?Pi(a):a,c={},u=!0,l={node:s,node_:a,path:[].concat(r),parent:i[i.length-1],parents:i,key:r[r.length-1],isRoot:0===r.length,level:r.length,circular:null,update:function(t,e){l.isRoot||(l.parent.node[l.key]=t),l.node=t,e&&(u=!1)},delete:function(t){delete l.parent.node[l.key],t&&(u=!1)},remove:function(t){Si(l.parent.node)?l.parent.node.splice(l.key,1):delete l.parent.node[l.key],t&&(u=!1)},keys:null,before:function(t){c.before=t},after:function(t){c.after=t},pre:function(t){c.pre=t},post:function(t){c.post=t},stop:function(){o=!1},block:function(){u=!1}};if(!o)return l;function f(){if("object"==typeof l.node&&null!==l.node){l.keys&&l.node_===l.node||(l.keys=ki(l.node)),l.isLeaf=0===l.keys.length;for(var t=0;t<i.length;t++)if(i[t].node_===a){l.circular=i[t];break}}else l.isLeaf=!0,l.keys=null;l.notLeaf=!l.isLeaf,l.notRoot=!l.isRoot}f();var h=e.call(l,l.node);return void 0!==h&&l.update&&l.update(h),c.before&&c.before.call(l,l.node),u?("object"!=typeof l.node||null===l.node||l.circular||(i.push(l),f(),Ei(l.keys,(function(e,i){r.push(e),c.pre&&c.pre.call(l,l.node[e],e);var o=t(l.node[e]);n&&Ai.call(l.node,e)&&(l.node[e]=o.node),o.isLast=i===l.keys.length-1,o.isFirst=0===i,c.post&&c.post.call(l,o),r.pop()})),i.pop()),c.after&&c.after.call(l,l.node),l):l}(t).node}function Ri(t){this.value=t}function Di(t){return new Ri(t)}Ri.prototype.get=function(t){for(var e=this.value,n=0;n<t.length;n++){var r=t[n];if(!e||!Ai.call(e,r))return;e=e[r]}return e},Ri.prototype.has=function(t){for(var e=this.value,n=0;n<t.length;n++){var r=t[n];if(!e||!Ai.call(e,r))return!1;e=e[r]}return!0},Ri.prototype.set=function(t,e){for(var n=this.value,r=0;r<t.length-1;r++){var i=t[r];Ai.call(n,i)||(n[i]={}),n=n[i]}return n[t[r]]=e,e},Ri.prototype.map=function(t){return Ti(this.value,t,!0)},Ri.prototype.forEach=function(t){return this.value=Ti(this.value,t,!1),this.value},Ri.prototype.reduce=function(t,e){var n=1===arguments.length,r=n?this.value:e;return this.forEach((function(e){this.isRoot&&n||(r=t.call(this,r,e))})),r},Ri.prototype.paths=function(){var t=[];return this.forEach((function(){t.push(this.path)})),t},Ri.prototype.nodes=function(){var t=[];return this.forEach((function(){t.push(this.node)})),t},Ri.prototype.clone=function(){var t=[],e=[];return function n(r){for(var i=0;i<t.length;i++)if(t[i]===r)return e[i];if("object"==typeof r&&null!==r){var o=Pi(r);return t.push(r),e.push(o),Ei(ki(r),(function(t){o[t]=n(r[t])})),t.pop(),e.pop(),o}return r}(this.value)},Ei(ki(Ri.prototype),(function(t){Di[t]=function(e){var n=[].slice.call(arguments,1),r=new Ri(e);return r[t].apply(r,n)}}));var Ni=Di;class Ii{constructor(){this.__callbacks=[]}share(t){const{related:e,source:n,data:r}=t,i=null===r?new Map([[n,null]]):Ii.__createPatch(r);[...this.__callbacks].forEach((t=>{t((t=>{const n=Ii.__applyPatch(i,t,e);return xi(t,n)?t:n}))}))}track(t){return this.__callbacks.push(t),()=>{this.__callbacks.splice(this.__callbacks.indexOf(t),1)}}cease(){this.__callbacks.length=0}static __isCollection(t){return"string"==typeof br(t,"_links.first.href")}static __isResource(t){return"string"==typeof br(t,"_links.self.href")}static __approximateURI(t){try{const e=new URL(t);return e.search="",e.hash="",e.toString()}catch(e){return t}}static __createPatch(t){return Ni(t).reduce((function(t,e){if(!Ii.__isResource(e)||Ii.__isCollection(e))return t;const n=Ni(e).map((function(){if("_embedded"===this.key)return this.delete(!0)}));return t.set(e._links.self.href,n),t}),new Map)}static __applyPatch(t,e,n){var r,i;const o=null!==(r=null==n?void 0:n.map((t=>Ii.__approximateURI(t))))&&void 0!==r?r:[];return null!==(i=Ni({data:e}).map((function(e){if(!Ii.__isResource(e))return;const n=e._links.self.href,r=Ii.__approximateURI(n);if(o.includes(r))throw new Ii.UpdateError;if(t.has(n)){const r=t.get(n);if(r)return this.update(Object.assign(Object.assign({},e),r),!0);if(!this.parent.parent)return this.delete(!0);throw new Ii.UpdateError}})).data)&&void 0!==i?i:null}}Ii.UpdateError=ji;var Li=P((function(t,e){var n="undefined"!=typeof self?self:k,r=function(){function t(){this.fetch=!1,this.DOMException=n.DOMException}return t.prototype=n,new t}();!function(t){!function(e){var n="URLSearchParams"in t,r="Symbol"in t&&"iterator"in Symbol,i="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),o="FormData"in t,a="ArrayBuffer"in t;if(a)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(t){return t&&s.indexOf(Object.prototype.toString.call(t))>-1};function u(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function l(t){return"string"!=typeof t&&(t=String(t)),t}function f(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function h(t){this.map={},t instanceof h?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function p(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function d(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function y(t){var e=new FileReader,n=d(e);return e.readAsArrayBuffer(t),n}function v(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:n&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():a&&i&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=v(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(t)||c(t))?this._bodyArrayBuffer=v(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var t=p(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?p(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(y)}),this.text=function(){var t,e,n,r=p(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,n=d(e),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(m)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(t,e){t=u(t),e=l(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},h.prototype.delete=function(t){delete this.map[u(t)]},h.prototype.get=function(t){return t=u(t),this.has(t)?this.map[t]:null},h.prototype.has=function(t){return this.map.hasOwnProperty(u(t))},h.prototype.set=function(t,e){this.map[u(t)]=l(e)},h.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},h.prototype.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),f(t)},h.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),f(t)},h.prototype.entries=function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),f(t)},r&&(h.prototype[Symbol.iterator]=h.prototype.entries);var b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function _(t,e){var n,r,i=(e=e||{}).body;if(t instanceof _){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new h(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new h(e.headers)),this.method=(n=e.method||this.method||"GET",r=n.toUpperCase(),b.indexOf(r)>-1?r:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function m(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}})),e}function w(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new h(e.headers),this.url=e.url||"",this._initBody(t)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},g.call(_.prototype),g.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},w.error=function(){var t=new w(null,{status:0,statusText:""});return t.type="error",t};var x=[301,302,303,307,308];w.redirect=function(t,e){if(-1===x.indexOf(e))throw new RangeError("Invalid status code");return new w(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function j(t,n){return new Promise((function(r,o){var a=new _(t,n);if(a.signal&&a.signal.aborted)return o(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,e,n={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new h,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var n=t.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();e.append(r,i)}})),e)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new w(i,n))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.onabort=function(){o(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&i&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}j.polyfill=!0,t.fetch||(t.fetch=j,t.Headers=h,t.Request=_,t.Response=w),e.Headers=h,e.Request=_,e.Response=w,e.fetch=j,Object.defineProperty(e,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;(e=i.fetch).default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e})),Ci=P((function(t,e){t.exports=function(){function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function n(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||s(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){if(t){if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t){if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=s(t))){var e=0,n=function(){};return{s:n,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,o=!0,a=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return o=t.done,t},e:function(t){a=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(a)throw i}}}}var l={};l[l.Fatal=0]="Fatal",l[l.Error=0]="Error",l[l.Warn=1]="Warn",l[l.Log=2]="Log",l[l.Info=3]="Info",l[l.Success=3]="Success",l[l.Debug=4]="Debug",l[l.Trace=5]="Trace",l[l.Silent=-1/0]="Silent",l[l.Verbose=1/0]="Verbose";var f={silent:{level:-1},fatal:{level:l.Fatal},error:{level:l.Error},warn:{level:l.Warn},log:{level:l.Log},info:{level:l.Info},success:{level:l.Success},debug:{level:l.Debug},trace:{level:l.Trace},verbose:{level:l.Trace},ready:{level:l.Info},start:{level:l.Info}};function h(t){return e=t,!("[object Object]"!==Object.prototype.toString.call(e)||!t.message&&!t.args||t.stack);var e}var p=!1,d=[],y=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var r in t(this,e),this._reporters=n.reporters||[],this._types=n.types||f,this.level=void 0!==n.level?n.level:3,this._defaults=n.defaults||{},this._async=void 0!==n.async?n.async:void 0,this._stdout=n.stdout,this._stderr=n.stderr,this._mockFn=n.mockFn,this._throttle=n.throttle||1e3,this._throttleMin=n.throttleMin||5,this._types){var i=o(o({type:r},this._types[r]),this._defaults);this[r]=this._wrapLogFn(i),this[r].raw=this._wrapLogFn(i,!0)}this._mockFn&&this.mockTypes(),this._lastLogSerialized=void 0,this._lastLog=void 0,this._lastLogTime=void 0,this._lastLogCount=0,this._throttleTimeout=void 0}return n(e,[{key:"create",value:function(t){return new e(Object.assign({reporters:this._reporters,level:this.level,types:this._types,defaults:this._defaults,stdout:this._stdout,stderr:this._stderr,mockFn:this._mockFn},t))}},{key:"withDefaults",value:function(t){return this.create({defaults:Object.assign({},this._defaults,t)})}},{key:"withTag",value:function(t){return this.withDefaults({tag:this._defaults.tag?this._defaults.tag+":"+t:t})}},{key:"addReporter",value:function(t){return this._reporters.push(t),this}},{key:"removeReporter",value:function(t){if(t){var e=this._reporters.indexOf(t);if(e>=0)return this._reporters.splice(e,1)}else this._reporters.splice(0);return this}},{key:"setReporters",value:function(t){return this._reporters=Array.isArray(t)?t:[t],this}},{key:"wrapAll",value:function(){this.wrapConsole(),this.wrapStd()}},{key:"restoreAll",value:function(){this.restoreConsole(),this.restoreStd()}},{key:"wrapConsole",value:function(){for(var t in this._types)console["__"+t]||(console["__"+t]=console[t]),console[t]=this[t].raw}},{key:"restoreConsole",value:function(){for(var t in this._types)console["__"+t]&&(console[t]=console["__"+t],delete console["__"+t])}},{key:"wrapStd",value:function(){this._wrapStream(this.stdout,"log"),this._wrapStream(this.stderr,"log")}},{key:"_wrapStream",value:function(t,e){var n=this;t&&(t.__write||(t.__write=t.write),t.write=function(t){n[e].raw(String(t).trim())})}},{key:"restoreStd",value:function(){this._restoreStream(this.stdout),this._restoreStream(this.stderr)}},{key:"_restoreStream",value:function(t){t&&t.__write&&(t.write=t.__write,delete t.__write)}},{key:"pauseLogs",value:function(){p=!0}},{key:"resumeLogs",value:function(){p=!1;var t,e=u(d.splice(0));try{for(e.s();!(t=e.n()).done;){var n=t.value;n[0]._logFn(n[1],n[2])}}catch(t){e.e(t)}finally{e.f()}}},{key:"mockTypes",value:function(t){if(this._mockFn=t||this._mockFn,"function"==typeof this._mockFn)for(var e in this._types)this[e]=this._mockFn(e,this._types[e])||this[e],this[e].raw=this[e]}},{key:"_wrapLogFn",value:function(t,e){var n=this;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];if(!p)return n._logFn(t,i,e);d.push([n,t,i,e])}}},{key:"_logFn",value:function(t,e,n){var r=this;if(t.level>this.level)return!!this._async&&Promise.resolve(!1);var i=Object.assign({date:new Date,args:[]},t);!n&&1===e.length&&h(e[0])?Object.assign(i,e[0]):i.args=Array.from(e),i.message&&(i.args.unshift(i.message),delete i.message),i.additional&&(Array.isArray(i.additional)||(i.additional=i.additional.split("\n")),i.args.push("\n"+i.additional.join("\n")),delete i.additional),i.type="string"==typeof i.type?i.type.toLowerCase():"",i.tag="string"==typeof i.tag?i.tag.toLowerCase():"";var s=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=r._lastLogCount-r._throttleMin;if(r._lastLog&&e>0){var n=a(r._lastLog.args);e>1&&n.push("(repeated ".concat(e," times)")),r._log(o(o({},r._lastLog),{},{args:n})),r._lastLogCount=1}if(t){if(r._lastLog=i,r._async)return r._logAsync(i);r._log(i)}};clearTimeout(this._throttleTimeout);var c=this._lastLogTime?i.date-this._lastLogTime:0;if(this._lastLogTime=i.date,c<this._throttle)try{var u=JSON.stringify([i.type,i.tag,i.args]),l=this._lastLogSerialized===u;if(this._lastLogSerialized=u,l&&(this._lastLogCount++,this._lastLogCount>this._throttleMin))return void(this._throttleTimeout=setTimeout(s,this._throttle))}catch(t){}s(!0)}},{key:"_log",value:function(t){var e,n=u(this._reporters);try{for(n.s();!(e=n.n()).done;)e.value.log(t,{async:!1,stdout:this.stdout,stderr:this.stderr})}catch(t){n.e(t)}finally{n.f()}}},{key:"_logAsync",value:function(t){var e=this;return Promise.all(this._reporters.map((function(n){return n.log(t,{async:!0,stdout:e.stdout,stderr:e.stderr})})))}},{key:"stdout",get:function(){return this._stdout||console._stdout}},{key:"stderr",get:function(){return this._stderr||console._stderr}}]),e}();y.prototype.add=y.prototype.addReporter,y.prototype.remove=y.prototype.removeReporter,y.prototype.clear=y.prototype.removeReporter,y.prototype.withScope=y.prototype.withTag,y.prototype.mock=y.prototype.mockTypes,y.prototype.pause=y.prototype.pauseLogs,y.prototype.resume=y.prototype.resumeLogs;var v,g=function(){function e(n){t(this,e),this.options=Object.assign({},n),this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}return n(e,[{key:"log",value:function(t){var e=t.level<1?console.__error||console.error:1===t.level&&console.warn?console.__warn||console.warn:console.__log||console.log,n="log"!==t.type?t.type:"",r=t.tag?t.tag:"",i=this.typeColorMap[t.type]||this.levelColorMap[t.level]||this.defaultColor,o="\n background: ".concat(i,";\n border-radius: 0.5em;\n color: white;\n font-weight: bold;\n padding: 2px 0.5em;\n "),s="%c".concat([r,n].filter(Boolean).join(":"));"string"==typeof t.args[0]?e.apply(void 0,["".concat(s,"%c ").concat(t.args[0]),o,""].concat(a(t.args.slice(1)))):e.apply(void 0,[s,o].concat(a(t.args)))}}]),e}();return"undefined"!=typeof window&&window.consola||((v=new y({reporters:[new g]})).Consola=y,v.LogLevel=l,v.BrowserReporter=g,v)}()})),Fi=function(t,e,n,r){this.name=t,this.fn=e,this.args=n,this.modifiers=r};function Ui(t,e){return void 0===e&&(e="simple"),"object"==typeof t?t[e]:t}function Mi(t,e,n){if(t.length){var r=t.shift(),i=Mi(t,e,n);return r.perform(i,n)}return Ui(e)}function $i(t,e,n){if(t.length){var r=t.shift(),i=$i(t,e,n);return r.performAsync(i,n)}return function(t){return Promise.resolve(Ui(e,"async")(t))}}Fi.prototype._test=function(t){var e=this.fn;try{Mi(this.modifiers.slice(),e,this)(t)}catch(t){e=function(){return!1}}try{return Mi(this.modifiers.slice(),e,this)(t)}catch(t){return!1}},Fi.prototype._check=function(t){try{Mi(this.modifiers.slice(),this.fn,this)(t)}catch(t){if(Mi(this.modifiers.slice(),(function(t){return t}),this)(!1))return}if(!Mi(this.modifiers.slice(),this.fn,this)(t))throw null},Fi.prototype._testAsync=function(t){var e=this;return new Promise((function(n,r){$i(e.modifiers.slice(),e.fn,e)(t).then((function(e){e?n(t):r(null)})).catch((function(t){return r(t)}))}))};var Bi=function(t,e,n){this.name=t,this.perform=e,this.performAsync=n},Vi=function(t){function e(n,r,i,o){for(var a=[],s=arguments.length-4;s-- >0;)a[s]=arguments[s+4];t.call(this,a),t.captureStackTrace&&t.captureStackTrace(this,e),this.rule=n,this.value=r,this.cause=i,this.target=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error),zi=function(t,e){void 0===t&&(t=[]),void 0===e&&(e=[]),this.chain=t,this.nextRuleModifiers=e};function Wi(t,e,n,r){if(e.length){var i=e.shift();i._testAsync(t).then((function(){Wi(t,e,n,r)}),(function(e){r(new Vi(i,t,e))}))}else n(t)}zi.prototype._applyRule=function(t,e){var n=this;return function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return n.chain.push(new Fi(e,t.apply(n,r),r,n.nextRuleModifiers)),n.nextRuleModifiers=[],n}},zi.prototype._applyModifier=function(t,e){return this.nextRuleModifiers.push(new Bi(e,t.simple,t.async)),this},zi.prototype._clone=function(){return new zi(this.chain.slice(),this.nextRuleModifiers.slice())},zi.prototype.test=function(t){return this.chain.every((function(e){return e._test(t)}))},zi.prototype.testAll=function(t){var e=[];return this.chain.forEach((function(n){try{n._check(t)}catch(r){e.push(new Vi(n,t,r))}})),e},zi.prototype.check=function(t){this.chain.forEach((function(e){try{e._check(t)}catch(n){throw new Vi(e,t,n)}}))},zi.prototype.testAsync=function(t){var e=this;return new Promise((function(n,r){Wi(t,e.chain.slice(),n,r)}))};var qi=function(t,e){return!(!e||"string"!=typeof t||0!==t.trim().length)||null==t};function Hi(){return"undefined"!=typeof Proxy?Ji(new zi):Ki(new zi)}var Gi={};function Ji(t){return new Proxy(t,{get:function(e,n){if(n in e)return e[n];var r=Ji(t._clone());return n in Qi?r._applyModifier(Qi[n],n):n in Gi?r._applyRule(Gi[n],n):n in Yi?r._applyRule(Yi[n],n):void 0}})}function Ki(t){var e=function(t,e){return Object.keys(t).forEach((function(n){e[n]=function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return Ki(e._clone())._applyRule(t[n],n).apply(void 0,r)}})),e},n=e(Yi,t),r=e(Gi,n);return Object.keys(Qi).forEach((function(t){Object.defineProperty(r,t,{get:function(){return Ki(r._clone())._applyModifier(Qi[t],t)}})})),r}Hi.extend=function(t){Object.assign(Gi,t)},Hi.clearCustomRules=function(){Gi={}};var Qi={not:{simple:function(t){return function(e){return!t(e)}},async:function(t){return function(e){return Promise.resolve(t(e)).then((function(t){return!t})).catch((function(){return!0}))}}},some:{simple:function(t){return function(e){return Xi(e).some((function(e){try{return t(e)}catch(t){return!1}}))}},async:function(t){return function(e){return Promise.all(Xi(e).map((function(e){try{return t(e).catch((function(){return!1}))}catch(t){return!1}}))).then((function(t){return t.some(Boolean)}))}}},every:{simple:function(t){return function(e){return!1!==e&&Xi(e).every(t)}},async:function(t){return function(e){return Promise.all(Xi(e).map(t)).then((function(t){return t.every(Boolean)}))}}},strict:{simple:function(t,e){return function(n){return Zi(e)&&n&&"object"==typeof n?Object.keys(e.args[0]).length===Object.keys(n).length&&t(n):t(n)}},async:function(t,e){return function(n){return Promise.resolve(t(n)).then((function(t){return Zi(e)&&n&&"object"==typeof n?Object.keys(e.args[0]).length===Object.keys(n).length&&t:t})).catch((function(){return!1}))}}}};function Zi(t){return t&&"schema"===t.name&&t.args.length>0&&"object"==typeof t.args[0]}function Xi(t){return"string"==typeof t?t.split(""):t}var Yi={equal:function(t){return function(e){return e==t}},exact:function(t){return function(e){return e===t}},number:function(t){return void 0===t&&(t=!0),function(e){return"number"==typeof e&&(t||isFinite(e))}},integer:function(){return function(t){return(Number.isInteger||eo)(t)}},numeric:function(){return function(t){return!isNaN(parseFloat(t))&&isFinite(t)}},string:function(){return to("string")},boolean:function(){return to("boolean")},undefined:function(){return to("undefined")},null:function(){return to("null")},array:function(){return to("array")},object:function(){return to("object")},instanceOf:function(t){return function(e){return e instanceof t}},pattern:function(t){return function(e){return t.test(e)}},lowercase:function(){return function(t){return"boolean"==typeof t||t===t.toLowerCase()&&""!==t.trim()}},uppercase:function(){return function(t){return t===t.toUpperCase()&&""!==t.trim()}},vowel:function(){return function(t){return/^[aeiou]+$/i.test(t)}},consonant:function(){return function(t){return/^(?=[^aeiou])([a-z]+)$/i.test(t)}},first:function(t){return function(e){return e[0]==t}},last:function(t){return function(e){return e[e.length-1]==t}},empty:function(){return function(t){return 0===t.length}},length:function(t,e){return function(n){return n.length>=t&&n.length<=(e||t)}},minLength:function(t){return function(e){return e.length>=t}},maxLength:function(t){return function(e){return e.length<=t}},negative:function(){return function(t){return t<0}},positive:function(){return function(t){return t>=0}},between:function(t,e){return function(n){return n>=t&&n<=e}},range:function(t,e){return function(n){return n>=t&&n<=e}},lessThan:function(t){return function(e){return e<t}},lessThanOrEqual:function(t){return function(e){return e<=t}},greaterThan:function(t){return function(e){return e>t}},greaterThanOrEqual:function(t){return function(e){return e>=t}},even:function(){return function(t){return t%2==0}},odd:function(){return function(t){return t%2!=0}},includes:function(t){return function(e){return~e.indexOf(t)}},schema:function(t){return function(t){return{simple:function(e){var n=[];if(Object.keys(t).forEach((function(r){var i=t[r];try{i.check((e||{})[r])}catch(t){t.target=r,n.push(t)}})),n.length>0)throw n;return!0},async:function(e){var n=[],r=Object.keys(t).map((function(r){return t[r].testAsync((e||{})[r]).catch((function(t){t.target=r,n.push(t)}))}));return Promise.all(r).then((function(){if(n.length>0)throw n;return!0}))}}}(t)},passesAnyOf:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return function(e){return t.some((function(t){return t.test(e)}))}},optional:function(t,e){return void 0===e&&(e=!1),{simple:function(n){return qi(n,e)||void 0===t.check(n)},async:function(n){return qi(n,e)||t.testAsync(n)}}}};function to(t){return function(e){return Array.isArray(e)&&"array"===t||null===e&&"null"===t||typeof e===t}}function eo(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}Hi.extend({curieChain:()=>t=>Array.isArray(t)&&t[0]instanceof URL&&t.slice(1).every((t=>"string"==typeof t)),typeOf:t=>e=>typeof e===t});const no=Hi().schema({clear:Hi().typeOf("function"),getItem:Hi().typeOf("function"),key:Hi().typeOf("function"),length:Hi().number(),removeItem:Hi().typeOf("function"),setItem:Hi().typeOf("function")});class ro extends Error{constructor(t){ro.v8n.constructor.check(t),super(`authentication failed with code ${t.code}`),this.originalError=t.originalError,this.code=t.code}}ro.NEW_PASSWORD_REQUIRED="NEW_PASSWORD_REQUIRED",ro.INVALID_NEW_PASSWORD="INVALID_NEW_PASSWORD",ro.UNAUTHORIZED="UNAUTHORIZED",ro.INVALID_FORM="INVALID_FORM",ro.UNAVAILABLE="UNAVAILABLE",ro.UNKNOWN="UNKNOWN",ro.v8n={constructor:Hi().schema({code:Hi().passesAnyOf(Hi().exact(ro.NEW_PASSWORD_REQUIRED),Hi().exact(ro.INVALID_NEW_PASSWORD),Hi().exact(ro.UNAUTHORIZED),Hi().exact(ro.INVALID_FORM),Hi().exact(ro.UNAVAILABLE),Hi().exact(ro.UNKNOWN))})};var io=P((function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})),oo=P((function(t){var e=io.default;t.exports=function(t,n){if("object"!==e(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,n||"default");if("object"!==e(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports})),ao=P((function(t){var e=io.default;t.exports=function(t){var n=oo(t,"string");return"symbol"===e(n)?n:String(n)},t.exports.__esModule=!0,t.exports.default=t.exports})),so=A(P((function(t){function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ao(r.key),r)}}t.exports=function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports}))),co=P((function(t){t.exports=function(t,e){return e.get?e.get.call(t):e.value},t.exports.__esModule=!0,t.exports.default=t.exports})),uo=P((function(t){t.exports=function(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)},t.exports.__esModule=!0,t.exports.default=t.exports})),lo=A(P((function(t){t.exports=function(t,e){var n=uo(t,e,"get");return co(t,n)},t.exports.__esModule=!0,t.exports.default=t.exports}))),fo=new WeakMap,ho=function(){function t(){fo.set(this,{writable:!0,value:new Map})}var e=t.prototype;return e.key=function(t){t=Number.parseInt(t,10);for(var e=lo(this,fo).keys(),n=0,r=e.next();!r.done;){if(n===t)return r.value;n+=1,r=e.next()}return null},e.getItem=function(t){var e;return null!=(e=lo(this,fo).get(""+t))?e:null},e.setItem=function(t,e){lo(this,fo).set(""+t,""+e)},e.removeItem=function(t){lo(this,fo).delete(""+t)},e.clear=function(){lo(this,fo).clear()},so(t,[{key:"length",get:function(){return lo(this,fo).size}}]),t}(),po=ho;class yo extends Error{constructor(t){super(),yo.v8n.constructor.check(t),this.response=t}}yo.v8n={constructor:Hi().instanceOf(Li.Response)};var vo=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},go=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function bo(t){const{json:e}=t,n=go(t,["json"]);if("_links"in e){const t=e._links;e._links=Object.entries(t).reduce(((t,[e,r])=>{if(Array.isArray(r))return Object.assign(Object.assign({},t),{[e]:r});const i=new jo(Object.assign(Object.assign({},n),{path:[new URL(r.href)]})),o={delete:i.delete.bind(i),follow:i.follow.bind(i),get:i.get.bind(i),patch:i.patch.bind(i),post:i.post.bind(i),put:i.put.bind(i)};return Object.assign(Object.assign({},t),{[e]:Object.assign(Object.assign({},r),o)})}),{})}if("_embedded"in e){const t=e._embedded;e._embedded=Object.entries(t).reduce(((t,[e,r])=>Object.assign(t,{[e]:Array.isArray(r)?r.map((t=>bo(Object.assign(Object.assign({},n),{json:t})))):bo(Object.assign(Object.assign({},n),{json:r}))})),{})}return e}class _o extends Li.Response{constructor(t){_o.v8n.constructor.check(t),super(t.body,t),this._console=t.console,this._fetch=t.fetch,this._cache=t.cache}json(){const t=Object.create(null,{json:{get:()=>super.json}});return vo(this,void 0,void 0,(function*(){const e=yield t.json.call(this),n={cache:this._cache,console:this._console,fetch:this._fetch};return bo(Object.assign({json:e},n))}))}}_o.v8n={constructor:Hi().schema({cache:no,console:Hi().instanceOf(Ci.constructor),fetch:Hi().typeOf("function")})};var mo=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))};function wo(t,e){const n=""===t?"":t+":";return"string"==typeof e?n+e:Array.isArray(e)?e.map((e=>wo(t,e))).join():Object.entries(e).map((([t,e])=>wo(n+t,e))).join()}function xo(t){return"string"==typeof t?t:Array.isArray(t)?t.map((t=>xo(t))).join():Object.entries(t).map((([t,e])=>`${t} ${e}`)).join()}class jo{constructor(t){jo.v8n.classConstructor.check(t),this._path=t.path,this._fetch=t.fetch,this._cache=t.cache,this._console=t.console}get(t){return mo(this,void 0,void 0,(function*(){jo.v8n.get.check(t);const e=yield this._resolve(),{filters:n,fields:r,offset:i,limit:o,order:a,zoom:s}=null!=t?t:{};void 0!==n&&n.forEach((t=>{const[n,r=""]=t.split("=");n&&e.searchParams.append(n,r)})),void 0!==r&&e.searchParams.set("fields",r.join(",")),void 0!==i&&e.searchParams.set("offset",String(i)),void 0!==o&&e.searchParams.set("limit",String(o)),void 0!==a&&e.searchParams.set("order",xo(a)),void 0!==s&&e.searchParams.set("zoom",wo("",s));const c=yield this._fetch(new Li.Request(e.toString())),u={cache:this._cache,console:this._console,fetch:this._fetch};return new _o(Object.assign(Object.assign(Object.assign({},u),c),{body:yield c.text()}))}))}put(t){return mo(this,void 0,void 0,(function*(){const e=yield this._resolve(),n=new Li.Request(e.toString(),{body:JSON.stringify(t),method:"PUT"}),r=yield this._fetch(n),i={cache:this._cache,console:this._console,fetch:this._fetch};return new _o(Object.assign(Object.assign(Object.assign({},i),r),{body:yield r.text()}))}))}post(t){return mo(this,void 0,void 0,(function*(){const e=yield this._resolve(),n=new Li.Request(e.toString(),{body:JSON.stringify(t),method:"POST"}),r=yield this._fetch(n),i={cache:this._cache,console:this._console,fetch:this._fetch};return new _o(Object.assign(Object.assign(Object.assign({},i),r),{body:yield r.text()}))}))}patch(t){return mo(this,void 0,void 0,(function*(){const e=yield this._resolve(),n=new Li.Request(e.toString(),{body:JSON.stringify(t),method:"PATCH"}),r=yield this._fetch(n),i={cache:this._cache,console:this._console,fetch:this._fetch};return new _o(Object.assign(Object.assign(Object.assign({},i),r),{body:yield r.text()}))}))}delete(){return mo(this,void 0,void 0,(function*(){const t=yield this._resolve(),e=new Li.Request(t.toString(),{method:"DELETE"}),n=yield this._fetch(e),r={cache:this._cache,console:this._console,fetch:this._fetch};return new _o(Object.assign(Object.assign(Object.assign({},r),n),{body:yield n.text()}))}))}follow(t){jo.v8n.follow.check(t);const e={cache:this._cache,console:this._console,fetch:this._fetch},n=this._path.concat(t);return new jo(Object.assign(Object.assign({},e),{path:n}))}_resolve(){return mo(this,void 0,void 0,(function*(){if(1===this._path.length)return new URL(this._path[0].toString());const[t,e]=this._path,n=`${t.toString()} > ${e}`,r={cache:this._cache,console:this._console,fetch:this._fetch};this._console.trace(`Trying to resolve ${n}...`);const i=this._cache.getItem(n);if(i){this._console.success(`Resolved ${n} to ${i.toString()} using cache.`);const t=[new URL(i),...this._path.slice(2)];return new jo(Object.assign(Object.assign({},r),{path:t}))._resolve()}const o=yield this._fetch(t.toString());if(o.ok){const t=yield o.clone().json();if(t._links[e]){const i=new URL(t._links[e].href),o=[i,...this._path.slice(2)];return this._cache.setItem(n,i.toString()),this._console.trace(`Cached ${i.toString()} for ${n}.`),this._console.success(`Resolved ${n} to ${i.toString()} online.`),new jo(Object.assign(Object.assign({},r),{path:o}))._resolve()}}throw this._console.error(`Failed to resolve ${n}.`),new yo(o)}))}}jo.v8n={classConstructor:Hi().schema({cache:no,console:Hi().instanceOf(Ci.constructor),fetch:Hi().typeOf("function"),path:Hi().curieChain()}),follow:Hi().string(),get:Hi().optional(Hi().schema({fields:Hi().optional(Hi().array().every.string()),filters:Hi().optional(Hi().array().every.string()),limit:Hi().optional(Hi().number()),offset:Hi().optional(Hi().number()),order:Hi().optional(Hi().passesAnyOf(Hi().string(),Hi().object(),Hi().array())),zoom:Hi().optional(Hi().passesAnyOf(Hi().string(),Hi().object(),Hi().array()))}))},jo.ResolutionError=yo,jo.Response=_o;var Oo=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))};class So extends jo{constructor(t){var e,n,r;So.v8n.classConstructor.check(t),super({cache:null!==(e=t.cache)&&void 0!==e?e:new po,console:Ci.create({level:t.level}).withTag("@foxy.io/sdk"),fetch:null!==(n=t.fetch)&&void 0!==n?n:Li.fetch,path:[t.base]}),this.console=this._console,this.storage=null!==(r=t.storage)&&void 0!==r?r:new po,this.cache=this._cache,this.base=t.base}fetch(...t){return Oo(this,void 0,void 0,(function*(){return this._fetch(...t)}))}}So.WHATWGResponse=Li.Response,So.WHATWGRequest=Li.Request,So.WHATWGHeaders=Li.Headers,So.whatwgFetch=Li.fetch,So.AuthError=ro,So.Node=jo,So.v8n={classConstructor:Hi().schema({base:Hi().instanceOf(URL),cache:Hi().optional(no),fetch:Hi().optional(Hi().typeOf("function")),level:Hi().optional(Hi().integer()),storage:Hi().optional(no)})};export{pe as $,So as A,Ue as B,ht as C,kt as D,Nt as E,Ot as F,bt as G,gt as H,at as I,yt as J,X as K,ot as L,ut as M,wt as N,mt as O,_e as P,Pt as Q,Ii as R,Zt as S,ct as T,et as U,ft as V,st as W,rt as X,lt as Y,At as Z,i as _,l as a,ye as a0,L as a1,de as a2,vt as a3,wn as a4,_n as a5,Bn as a6,Vn as a7,qn as a8,Sr as a9,Yt as aA,te as aB,ee as aC,Xt as aD,ke as aE,Hi as aF,Li as aG,u as aH,A as aI,xn as aJ,Ee as aK,xi as aL,o as aM,bn as aN,kn as aO,j as aP,Mn as aQ,Ze as aR,a as aS,n as aT,wr as aa,_r as ab,Er as ac,zr as ad,d as ae,O as af,Vr as ag,Fn as ah,Ve as ai,Rn as aj,mr as ak,kr as al,yn as am,fn as an,vn as ao,Ft as ap,Ut as aq,Mt as ar,$t as as,zt as at,Wt as au,qt as av,Ht as aw,Jt as ax,Kt as ay,Bt as az,k as b,P as c,T as d,gr as e,dr as f,Be as g,Nn as h,E as i,pr as j,Ni as k,br as l,or as m,Fe as n,Gt as o,R as p,N as q,p as r,fe as s,vr as t,Z as u,Qt as v,ve as w,Dt as x,nt as y,U as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as e,aI as t,_ as r}from"./shared-cb58dfcd.js";import{h as n,L as s}from"./shared-ba5c42c7.js";import{A as o}from"./shared-99a8889a.js";import"./shared-673d668a.js";import{C as i}from"./shared-5afb584d.js";import{F as a}from"./shared-343d1fd7.js";import{I as u}from"./shared-2aa23b5f.js";var l=e((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatCookie=void 0;var r=function(e){var t=e.path,r=e.domain,n=e.expires,s=e.secure,o=function(e){var t=e.sameSite;return void 0===t?null:["none","lax","strict"].indexOf(t.toLowerCase())>=0?t:null}(e);return[null==t?"":";path="+t,null==r?"":";domain="+r,null==n?"":";expires="+n.toUTCString(),void 0===s||!1===s?"":";secure",null===o?"":";SameSite="+o].join("")};t.formatCookie=function(e,t,n){return[encodeURIComponent(e),"=",encodeURIComponent(t),r(n)].join("")}})),c=e((function(e,t){function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,s=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){s=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(s)throw o}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}Object.defineProperty(t,"__esModule",{value:!0}),t.parseCookies=void 0;t.parseCookies=function(e){if(0===e.length)return{};var t={},n=new RegExp("\\s*;\\s*");return e.split(n).forEach((function(e){var n=r(e.split("="),2),s=n[0],o=n[1],i=decodeURIComponent(s),a=decodeURIComponent(o);t[i]=a})),t}})),h=e((function(e,t){function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.CookieStorage=void 0;var n=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._defaultOptions=Object.assign({domain:null,expires:null,path:null,secure:!1},t),"undefined"!=typeof Proxy)return new Proxy(this,s)}var t,n,o;return t=e,(n=[{key:"clear",value:function(){var e=this,t=c.parseCookies(this._getCookie());Object.keys(t).forEach((function(t){return e.removeItem(t)}))}},{key:"getItem",value:function(e){var t=c.parseCookies(this._getCookie());return Object.prototype.hasOwnProperty.call(t,e)?t[e]:null}},{key:"key",value:function(e){var t=c.parseCookies(this._getCookie()),r=Object.keys(t).sort();return e<r.length?r[e]:null}},{key:"removeItem",value:function(e,t){var r=Object.assign(Object.assign(Object.assign({},this._defaultOptions),t),{expires:new Date(0)}),n=l.formatCookie(e,"",r);this._setCookie(n)}},{key:"setItem",value:function(e,t,r){var n=Object.assign(Object.assign({},this._defaultOptions),r),s=l.formatCookie(e,t,n);this._setCookie(s)}},{key:"_getCookie",value:function(){return"undefined"==typeof document||void 0===document.cookie?"":document.cookie}},{key:"_setCookie",value:function(e){document.cookie=e}},{key:"length",get:function(){var e=c.parseCookies(this._getCookie());return Object.keys(e).length}}])&&r(t.prototype,n),o&&r(t,o),e}();t.CookieStorage=n;var s={defineProperty:function(e,t,r){return e.setItem(t.toString(),String(r.value)),!0},deleteProperty:function(e,t){return e.removeItem(t.toString()),!0},get:function(e,t,r){if("string"==typeof t&&t in e)return e[t];var n=e.getItem(t.toString());return null!==n?n:void 0},getOwnPropertyDescriptor:function(e,t){if(!(t in e))return{configurable:!0,enumerable:!0,value:e.getItem(t.toString()),writable:!0}},has:function(e,t){return"string"==typeof t&&t in e||null!==e.getItem(t.toString())},ownKeys:function(e){for(var t=[],r=0;r<e.length;r++){var n=e.key(r);null!==n&&t.push(n)}return t},preventExtensions:function(e){throw new TypeError("can't prevent extensions on this proxy object")},set:function(e,t,r,n){return e.setItem(t.toString(),String(r)),!0}}})),p=t(e((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"CookieStorage",{enumerable:!0,get:function(){return h.CookieStorage}}),Object.defineProperty(t,"formatCookie",{enumerable:!0,get:function(){return l.formatCookie}}),Object.defineProperty(t,"parseCookies",{enumerable:!0,get:function(){return c.parseCookies}})})));class f extends p.CookieStorage{constructor(){super({sameSite:"Strict",expires:new Date,secure:!0,domain:location.hostname,path:"/"})}getItem(e){if(e===o.SESSION){const e=super.getItem("fx.customer"),t=super.getItem("fx.customer.duration"),r=super.getItem("fx.customer.start"),n=super.getItem("fx.customer.jwt");if(null===e||null===t||null===r||null===n)return null;const s={session_token:e,date_created:r,expires_in:parseInt(t),jwt:n},o=super.getItem("fx.customer.sso");return null!==o&&(s.sso=o),JSON.stringify(s)}return super.getItem(e)}setItem(e,t,r){if(e!==o.SESSION)return super.setItem(e,t,r);{const e=JSON.parse(t),r=1e3*e.expires_in,n=new Date(new Date(e.date_created).getTime()+r);super.setItem("fx.customer",e.session_token,{expires:n}),super.setItem("fx.customer.jwt",e.jwt,{expires:n}),super.setItem("fx.customer.start",e.date_created,{expires:n}),super.setItem("fx.customer.duration",String(e.expires_in),{expires:n}),e.sso&&super.setItem("fx.customer.sso",e.sso,{expires:n})}}clear(){for(let e=0;e<this.length;){const t=super.key(e);t.startsWith("fx.customer")?super.removeItem(t):e++}}}const d=new f;let g,m=e=>e;class _ extends(i(u(s))){constructor(){var e;super(...arguments),e=this,this.__storage="local",this.__level=0,this.__base=location.origin,this.__api=this.__createAPIInstance(),this.__handleFetch=async function(t){if(!(t instanceof a))return;if(t.defaultPrevented)return;if(t.composedPath()[0]===e)return;t.preventDefault();const r=new a("fetch",{cancelable:!0,composed:!0,request:t.request,bubbles:!0,reject:e=>t.respondWith(Promise.reject(e)),resolve:n=>{"foxy://customer-api/session"===r.request.url&&e.requestUpdate(),401===n.status&&e.requestUpdate(),t.respondWith(Promise.resolve(n))}});e.dispatchEvent(r)&&r.respondWith(e.__handleRequest(r.request))}}static get properties(){return r(r({},super.properties),{},{storage:{type:String,noAccessor:!0},level:{type:Number,noAccessor:!0},base:{type:String,noAccessor:!0}})}get isLoggedIn(){return!!this.api.storage.getItem(o.SESSION)}get api(){return this.__api}get base(){return this.__base}set base(e){this.__base=e,this.__api=this.__createAPIInstance()}get level(){return this.__level}set level(e){this.__level=e,this.__api=this.__createAPIInstance()}get storage(){return this.__storage}set storage(e){this.__storage=e,this.__api=this.__createAPIInstance()}connectedCallback(){super.connectedCallback(),this.addEventListener("fetch",this.__handleFetch)}render(){return n(g||(g=m` ${0} <slot></slot> `),this.renderTemplateOrSlot(this.isLoggedIn?"logged-in":"logged-out"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("fetch",this.__handleFetch)}__createAPIInstance(){const e={session:sessionStorage,cookie:d,local:localStorage};return new o({storage:e[this.storage],level:this.level,base:new URL(this.base)})}async __handleVirtualAuthSessionDelete(){return await this.api.signOut(),this.dispatchEvent(new _.SignOutEvent("signout")),this.requestUpdate(),new Response}async __handleVirtualAuthSessionPost(e){const t=await e.clone().json();if("password"!==t.type)throw new Error(`Unknown payload type ${t.type}`);let n,s;try{await this.api.signIn(t.credential);const i={forcePasswordReset:!!JSON.parse(this.api.storage.getItem(o.SESSION)).force_password_reset};this.dispatchEvent(new _.SignInEvent("signin",{detail:i})),this.requestUpdate(),n=200,s=r({_links:{self:{href:e.url}}},t)}catch(e){if(!(e instanceof o.AuthError))throw e;if("UNAUTHORIZED"!==e.code)throw e;n=401,s={total:1,_embedded:{"fx:errors":[{message:e.message,logref:"unavailable",code:"invalid_credential_error"}]}}}return new Response(JSON.stringify(s),{status:n})}async __handleVirtualAuthSessionAny(e){return new Response(JSON.stringify({_links:{self:{href:e.url}},message:"POST to this endpoint to sign in"}))}async __handleVirtualAuthRecoverPost(e){const t=await e.clone().json();if("email"===t.type)return await this.api.sendPasswordResetEmail(t.detail),new Response(JSON.stringify({_links:{self:{href:e.url}},email:t.email}));throw new Error(`Unknown payload type ${t.type}`)}async __handleVirtualAuthRecoverAny(e){return new Response(JSON.stringify({_links:{self:{href:e.url}},message:"POST to this endpoint to request a password reset"}))}async __handleVirtualAuthSignUpPost(e){const t=await e.clone().json();try{await this.api.signUp(t)}catch(e){if(!(e instanceof o.AuthError))throw e;let t,r;if("UNAUTHORIZED"===e.code)t="Customer registration is disabled for this store.",r=401;else if("UNAVAILABLE"===e.code)t="This email address is already in use by an existing customer of this store.",r=403;else{if("INVALID_FORM"!==e.code)throw e;t="Client verification failed.",r=400}const n=JSON.stringify({total:1,_embedded:{"fx:errors":[{message:t}]}});return new Response(n,{status:r})}return t.password&&await this.api.signIn(t),this.requestUpdate(),this.dispatchEvent(new _.SignUpEvent("signup")),new Response(JSON.stringify({_links:{self:{href:e.url}},message:"Account created"}))}async __handleVirtualAuthSignUpAny(e){return new Response(JSON.stringify({_links:{self:{href:e.url}},message:"POST to this endpoint to create an account"}))}async __handleRequest(e){const t=e.url,r=e.method;try{if(t.startsWith("foxy://customer-api/session"))return"DELETE"===r?this.__handleVirtualAuthSessionDelete():"POST"===r?this.__handleVirtualAuthSessionPost(e):this.__handleVirtualAuthSessionAny(e);if(t.startsWith("foxy://customer-api/recover"))return"POST"===r?this.__handleVirtualAuthRecoverPost(e):this.__handleVirtualAuthRecoverAny(e);if(t.startsWith("foxy://customer-api/signup"))return"POST"===r?this.__handleVirtualAuthSignUpPost(e):this.__handleVirtualAuthSignUpAny(e);const n=await this.api.fetch(e);return 401===n.status&&(this.api.storage.clear(),this.dispatchEvent(new _.SignOutEvent("signout")),this.requestUpdate()),n}catch(e){return new Response(null,{status:500})}}}_.SignOutEvent=class extends CustomEvent{},_.SignInEvent=class extends CustomEvent{},_.SignUpEvent=class extends CustomEvent{};export{_ as C};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as a,t as r,aN as n,am as t,ai as l,aO as e}from"./shared-cb58dfcd.js";var o=Object.prototype.hasOwnProperty;function s(a,r){return null!=a&&o.call(a,r)}function u(o,u){return null!=o&&function(o,s,u){for(var f=-1,c=(s=a(s,o)).length,i=!1;++f<c;){var h=r(s[f]);if(!(i=null!=o&&u(o,h)))break;o=o[h]}return i||++f!=c?i:!!(c=null==o?0:o.length)&&n(c)&&t(h,c)&&(l(o)||e(o))}(o,u,s)}export{u as h};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import{I as e}from"./shared-cc4b3b42.js";import"./shared-2f5cc0e2.js";import{_ as t}from"./shared-cb58dfcd.js";import{d as s,N as r,i as o,c as a,h as i,s as n}from"./shared-ba5c42c7.js";
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
5
|
-
* This code may only be used under the BSD style license found at
|
|
6
|
-
* http://polymer.github.io/LICENSE.txt
|
|
7
|
-
* The complete set of authors may be found at
|
|
8
|
-
* http://polymer.github.io/AUTHORS.txt
|
|
9
|
-
* The complete set of contributors may be found at
|
|
10
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
11
|
-
* Code distributed by Google as part of the polymer project is also
|
|
12
|
-
* subject to an additional IP rights grant found at
|
|
13
|
-
* http://polymer.github.io/PATENTS.txt
|
|
14
|
-
*/
|
|
15
|
-
const l=new WeakMap,d=s((e=>t=>{if(!(t instanceof r))throw new Error("unsafeHTML can only be used in text bindings");const s=l.get(t);if(void 0!==s&&o(e)&&e===s.value&&t.value===s.fragment)return;const a=document.createElement("template");a.innerHTML=e;const i=document.importNode(a.content,!0);t.setValue(i),l.set(t,{value:e,fragment:i})}));let u,c,p,h,m=e=>e;customElements.define("foxy-internal-summary-control",class extends e{constructor(){super(...arguments),this.unsafeHelperText=!1,this.layout=null,this.count=null,this.open=!1}static get properties(){return t(t({},super.properties),{},{unsafeHelperText:{type:Boolean,attribute:"unsafe-helper-text"},layout:{},count:{type:Number},open:{type:Boolean}})}static get styles(){return[...super.styles,a(u||(u=m`::slotted(*){min-width:100%}:host(:not([layout=section])) slot::slotted(*){background-color:var(--lumo-contrast-5pct);padding:calc(.625em + (var(--lumo-border-radius)/ 4) - 1px)}details summary>div{border-radius:var(--lumo-border-radius)}details[open] summary>div{border-radius:var(--lumo-border-radius) var(--lumo-border-radius) 0 0}.with-unsafe a{text-decoration:underline;transition:color .1s ease-in-out}.with-unsafe a:hover{color:var(--lumo-primary-text-color)}.with-unsafe a:focus{outline:0;box-shadow:0 0 0 2px var(--lumo-primary-color-50pct);border-radius:var(--lumo-border-radius-s)}`))]}renderLightDom(){}renderControl(){return"details"===this.layout?i(c||(c=m` <details class="rounded overflow-hidden" ?open="${0}" @toggle="${0}"> <summary class="select-none cursor-pointer focus-outline-none group"> <div class="leading-xs bg-contrast-5 group-focus-ring-2 group-focus-ring-inset group-focus-ring-primary-50" style="padding:calc(.625em + (var(--lumo-border-radius)/ 4) - 1px)" ?hidden="${0}"> <p class="flex items-center justify-between gap-s" ?hidden="${0}"> <span> ${0}${0} </span> <span class="flex items-center justify-center transition-colors text-tertiary group-hover-text-body" style="transform:scale(1.35)"> ${0} </span> </p> <p class="text-xs text-secondary with-unsafe" ?hidden="${0}"> ${0} </p> </div> </summary> <div class="overflow-hidden grid" style="gap:1px"> <slot></slot> </div> </details> `),this.open,(e=>{const t=e.currentTarget;this.open=t.open,e.composed||e.bubbles||this.dispatchEvent(new CustomEvent("toggle"))}),!this.label&&!this.helperText,!this.label,this.label,"number"==typeof this.count?` (${this.count})`:"",n(p||(p=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" style="width: 1.2em; height: 1.2em"><path fill-rule="evenodd" d="M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z" clip-rule="evenodd" /></svg>`)),!this.helperText,this.unsafeHelperText?d(this.helperText):this.helperText):i(h||(h=m` <div class="leading-s mb-s" ?hidden="${0}"> <p class="font-medium text-body text-l" ?hidden="${0}">${0}</p> <p class="text-s text-secondary with-unsafe" ?hidden="${0}"> ${0} </p> </div> <div class="rounded overflow-hidden grid" style="gap:1px"> <slot></slot> </div> `),!this.label&&!this.helperText,!this.label,this.label,!this.helperText,this.unsafeHelperText?d(this.helperText):this.helperText)}});export{d as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e,f as t,t as r,g as s,h as i,j as n,k as o,l as a,_ as u,m as l,n as h,o as c,R as d}from"./shared-cb58dfcd.js";import{h as f,L as _}from"./shared-ba5c42c7.js";import{A as v}from"./shared-5592ec6e.js";import{F as m}from"./shared-343d1fd7.js";import{U as p,a as g}from"./shared-cd96ff03.js";import{I as y}from"./shared-2aa23b5f.js";import{i as R,c as E,a as S}from"./shared-5e4a03d1.js";import{d as w}from"./shared-7594e563.js";import{s as b}from"./shared-0aedd809.js";import{i as P}from"./shared-5ef40e86.js";var k=Date.now;var T,x,U,L=w?function(e,t){return w(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:R,A=(T=L,x=0,U=0,function(){var e=k(),t=16-(e-U);if(U=e,t>0){if(++x>=800)return arguments[0]}else x=0;return T.apply(void 0,arguments)});function j(e){return e!=e}function F(e,t,r){return t==t?function(e,t,r){for(var s=r-1,i=e.length;++s<i;)if(e[s]===t)return s;return-1}(e,t,r):function(e,t,r,s){for(var i=e.length,n=r+(s?1:-1);s?n--:++n<i;)if(t(e[n],n,e))return n;return-1}(e,j,r)}var H=Math.max;function N(e,t){return A(function(e,t,r){return t=H(void 0===t?e.length-1:t,0),function(){for(var s=arguments,i=-1,n=H(s.length-t,0),o=Array(n);++i<n;)o[i]=s[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=s[i];return a[t]=r(o),function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}(e,this,a)}}(e,t,R),e+"")}function C(t,r){return r.length<2?t:e(t,function(e,t,r){var s=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var n=Array(i);++s<i;)n[s]=e[s+t];return n}(r,0,-1))}function D(e,t,r,s){for(var i=r-1,n=e.length;++i<n;)if(s(e[i],t))return i;return-1}var I=Array.prototype.splice;var Q=N((function(e,t){return e&&e.length&&t&&t.length?function(e,t,r,n){var o=n?D:F,a=-1,u=t.length,l=e;for(e===t&&(t=E(t)),r&&(l=s(e,i(r)));++a<u;)for(var h=0,c=t[a],d=r?r(c):c;(h=o(l,d,h,n))>-1;)l!==e&&I.call(l,h,1),I.call(e,h,1);return e}(e,t):e})),O=0;function W(e){var t=++O;return n(e)+t}function $(e,s){return null==e||function(e,s){return null==(e=C(e,s=t(s,e)))||delete e[r((i=s,n=null==i?0:i.length,n?i[n-1]:void 0))];var i,n}(e,s)}function G(e,t){let r=null;return o(t).forEach((function(){var t,s,i,n,o,a,u,l,h,c,d;if(null===(i=null===(s=null===(t=this.node)||void 0===t?void 0:t._links)||void 0===s?void 0:s.self)||void 0===i?void 0:i.href){const t=null===(a=null===(o=null===(n=this.node)||void 0===n?void 0:n._links)||void 0===o?void 0:o.self)||void 0===a?void 0:a.href,s=new URL(null===(h=null===(l=null===(u=this.node)||void 0===u?void 0:u._links)||void 0===l?void 0:l.self)||void 0===h?void 0:h.href);if(s.searchParams.delete("zoom"),e===t||e===s.toString())return r=JSON.stringify(this.node),void this.stop()}Object.entries(null!==(d=null===(c=this.node)||void 0===c?void 0:c._links)&&void 0!==d?d:{}).some((([t,s])=>{var i,n;if(s.href!==e)return!1;const o=null===(n=null===(i=this.node)||void 0===i?void 0:i._embedded)||void 0===n?void 0:n[t];if(!o||!Array.isArray(o))return!1;const a=o.length<20?o.length:21,u=new URL(e),l=new URL(e);return u.searchParams.set("offset",o.length.toString()),l.searchParams.set("offset",a.toString()),r=JSON.stringify({returned_items:o.length,total_items:a,offset:0,limit:20,_embedded:{[t]:o},_links:{curies:this.node._links.curies,first:{href:e},last:{href:l.toString()},prev:{href:e},next:{href:u.toString()},self:{href:e}}}),this.stop(),!0}))})),new Response(r,{status:r?200:404})}async function M(e,t){var r,s;if(t.in("busy"))return Promise.resolve(new Response(null,{status:500}));const i=new URL(e.url);i.search="",i.hash="";const n=i.toString().replace(`foxy://${t.virtualHost}/form/`,"").split("/").map(decodeURIComponent),o=a(t.form,n);let l,h=405;if("GET"===e.method)if(Array.isArray(o)){const i=parseInt(null!==(r=new URL(e.url).searchParams.get("offset"))&&void 0!==r?r:""),a=parseInt(null!==(s=new URL(e.url).searchParams.get("limit"))&&void 0!==s?s:""),c=isNaN(i)||i<0?0:i,d=isNaN(a)||a<0?20:a,f=o.slice(c,c+d).map(((e,r)=>{const s=["form",...n,String(r)],i=`foxy://${t.virtualHost}/${s.map(encodeURIComponent).join("/")}`;return u({_links:{self:{href:i}}},e)})),_=new URL(e.url);_.searchParams.set("offset","0"),_.searchParams.set("limit",String(d));const v=new URL(e.url);v.searchParams.set("offset",String(Math.max(0,c-d))),v.searchParams.set("limit",String(d));const m=new URL(e.url);m.searchParams.set("offset",String(Math.min(o.length,c+d))),m.searchParams.set("limit",String(d));const p=new URL(e.url);p.searchParams.set("offset",String(Math.max(0,o.length-d))),p.searchParams.set("limit",String(d)),h=200,l={returned_items:f.length,total_items:o.length,offset:c,limit:d,_embedded:{"fx:slice":f},_links:{first:{href:_.toString()},last:{href:p.toString()},prev:{href:v.toString()},next:{href:m.toString()},self:{href:e.url}}}}else h=200,l=u({_links:{self:{href:e.url}}},o);if("POST"===e.method){const r=await e.json(),s=S(t.form),i=a(s,n).push(r)-1;t.edit(s);const o=["form",...n,String(i)].map(encodeURIComponent).join("/");h=200,l={_links:{self:{href:`foxy://${t.virtualHost}/${o}`}},message:"Resource created successfully."}}if("PATCH"===e.method){const r=S(t.form),s=u(u({},a(r,n)),await e.json());t.edit(b(r,n,s)),h=200,l=u({_links:{self:{href:e.url}}},s)}if("DELETE"===e.method){const r=S(t.form),s=a(r,n.slice(0,-1));Array.isArray(s)?Q(s,a(r,n)):$(r,n),t.edit(r),h=200,l={_links:{self:{href:e.url}},message:"Resource deleted successfully."}}return Promise.resolve(new Response(JSON.stringify(l),{status:h}))}let q,J=e=>e;class V extends(y(_)){constructor(){super(),this.lang="",this.parent="",this.related=[],this.virtualHost=W("nucleon-"),this.__hrefToLoad=null,this.__group="",this.__unsubscribeFromRumour=null,this.__fetchEventQueue=[],this.__service=P(h.withConfig({services:{sendDelete:()=>this._sendDelete(),sendPatch:({edits:e})=>this._sendPatch(e),sendPost:({edits:e})=>this._sendPost(e),sendGet:()=>this._sendGet()},actions:{validate:c({errors:e=>{const t=this.constructor.v8n,r=u(u({},e.data),e.edits);return t.map((e=>e(r,this))).filter((e=>"string"==typeof e)).filter(((e,t,r)=>r.indexOf(e)===t))}})}})),this.__createService()}static get inferredProperties(){return[...super.inferredProperties,"group","lang"]}static get properties(){return{__state:{type:String,reflect:!0,attribute:"state"},virtualHost:{attribute:"virtual-host"},related:{type:Array},parent:{type:String},group:{type:String,noAccessor:!0},href:{type:String,noAccessor:!0},lang:{type:String}}}static get v8n(){return[]}get failure(){var e,t;return null!==(t=null===(e=this.__service.state)||void 0===e?void 0:e.context.failure)&&void 0!==t?t:null}get errors(){var e,t;return null!==(t=null===(e=this.__service.state)||void 0===e?void 0:e.context.errors)&&void 0!==t?t:[]}get form(){var e,t;const{data:r,edits:s}=null!==(t=null===(e=this.__service.state)||void 0===e?void 0:e.context)&&void 0!==t?t:{};return u(u({},r),s)}get data(){var e,t;return null!==(t=null===(e=this.__service.state)||void 0===e?void 0:e.context.data)&&void 0!==t?t:null}set data(e){this.__destroyRumour(),this.__hrefToLoad=null,this.__service.send({type:"SET_DATA",data:e}),e&&this.__createRumour()}get group(){return this.__group}set group(e){this.__group=e,this.__destroyRumour(),this.__createRumour()}get href(){var e,t,r;return null!==(r=null!==(t=null===(e=this.form._links)||void 0===e?void 0:e.self.href)&&void 0!==t?t:this.__hrefToLoad)&&void 0!==r?r:""}set href(e){this.__hrefToLoad=e,e?this.__service.send({type:"FETCH"}):this.data=null}in(e){var t;return!!(null===(t=this.__service.state)||void 0===t?void 0:t.matches(e))}undo(){this.__service.send({type:"UNDO"})}edit(e){var t;"string"==typeof(null===(t=e._links)||void 0===t?void 0:t.self.href)&&(this.__hrefToLoad=null),this.__service.send({type:"EDIT",data:e})}submit(){this.reportValidity(),this.__service.send({type:"SUBMIT"})}checkValidity(){const e=this.in({idle:{template:{dirty:"valid"}}}),t=this.in({idle:{snapshot:{dirty:"valid"}}}),r=this.in({idle:{template:{clean:"valid"}}}),s=this.in({idle:{snapshot:{clean:"valid"}}});return r||e||(s||t)}reportValidity(){const e=this.ownerDocument.createTreeWalker(this.renderRoot,NodeFilter.SHOW_ELEMENT);do{const t=e.currentNode,r=["reportValidity","validate"];for(const e of r)if(e in t)try{t[e]();break}catch(e){continue}}while(e.nextNode());return this.checkValidity()}delete(){this.__service.send({type:"DELETE"})}refresh(){this.__service.send({type:"REFRESH"})}render(){return f(q||(q=J`<slot></slot>`))}connectedCallback(){super.connectedCallback(),this.href&&!this.data&&this.__service.send({type:"FETCH"}),this.__createRumour(),this.__createServer(),this.__processFetchEventQueue(),this.dispatchEvent(new p)}disconnectedCallback(){super.disconnectedCallback(),this.__destroyRumour(),this.__destroyServer(),this.__flushFetchEventQueue("parent element was disconnected"),this.dispatchEvent(new p)}applyInferredProperties(e){var t,r;super.applyInferredProperties(e),null!==this.infer&&(this.group=null!==(t=e.get("group"))&&void 0!==t?t:"",this.lang=null!==(r=e.get("lang"))&&void 0!==r?r:"")}async _fetch(...e){const t=await new v(this).fetch(...e);if(!t.ok)throw t;return t.json()}async _sendPost(e){let t;this.__destroyRumour();try{const r=JSON.stringify(e),s=await this._fetch(this.parent,{body:r,method:"POST"});t=await this._fetch(s._links.self.href);const i=V.Rumour(this.group),n=[...this.related,this.parent];i.share({data:t,related:n,source:t._links.self.href})}finally{this.__createRumour()}return t}async _sendGet(){let e;this.__destroyRumour();try{e=await this._fetch(this.href),V.Rumour(this.group).share({data:e,source:this.href})}finally{this.__createRumour()}return e}async _sendPatch(e){let t;this.__destroyRumour();try{const r=JSON.stringify(e);t=await this._fetch(this.href,{body:r,method:"PATCH"});V.Rumour(this.group).share({data:t,source:this.href,related:this.related})}finally{this.__createRumour()}return t}async _sendDelete(){this.__destroyRumour();try{await this._fetch(this.href,{method:"DELETE"});const e=V.Rumour(this.group),t=[...this.related,this.parent];e.share({data:null,source:this.href,related:t})}finally{this.__createRumour()}return null}get __state(){const e=this.__service.state,t=null==e?void 0:e.toStrings().reduce(((e,t)=>[...e,...t.split(".")]),[]);return[...new Set(null!=t?t:[])].join(" ")}__createService(){this.__service.onTransition((e=>{var t,r,s,i;if(!e.changed)return;let n;e.matches("idle")&&0===e.context.errors.length&&((null===(t=e.history)||void 0===t?void 0:t.matches({busy:"deleting"}))?n=g.ResourceDeleted:(null===(r=e.history)||void 0===r?void 0:r.matches({busy:"creating"}))?n=g.ResourceCreated:(null===(s=e.history)||void 0===s?void 0:s.matches({busy:"updating"}))?n=g.ResourceUpdated:(null===(i=e.history)||void 0===i?void 0:i.matches({busy:"fetching"}))&&(n=g.ResourceFetched)),this.requestUpdate(),this.dispatchEvent(new p("update",{detail:{result:n}})),e.matches("busy")||this.__processFetchEventQueue()})),this.__service.onChange((()=>{this.requestUpdate(),this.dispatchEvent(new p)})),this.__service.start()}__createRumour(){const e=V.Rumour(this.group);this.__unsubscribeFromRumour=e.track((e=>this.__handleRumourUpdate(e)))}__destroyRumour(){var e;null===(e=this.__unsubscribeFromRumour)||void 0===e||e.call(this),this.__unsubscribeFromRumour=null}__createServer(){this.__fetchEventHandler=this.__handleFetchEvent.bind(this),this.addEventListener("fetch",this.__fetchEventHandler)}__destroyServer(){this.removeEventListener("fetch",this.__fetchEventHandler)}__handleRumourUpdate(e){var t;try{const r=null===(t=this.__service.state)||void 0===t?void 0:t.context.data,s=r?e(r):r;if(s!==r&&(this.data=s,!s)){const e=g.ResourceDeleted,t=new p("update",{detail:{result:e}});this.dispatchEvent(t)}}catch(e){if(!(e instanceof d.UpdateError))throw e;setTimeout((()=>this.refresh()))}}__processFetchEventQueue(){const e=new V.API(this);this.__fetchEventQueue.forEach((t=>{const r=t.request;if(this.virtualHost&&r.url.startsWith(`foxy://${this.virtualHost}/form/`))return t.respondWith(M(r,this));const s=G(r.url,this.data),i=s.ok?s:e.fetch(r);t.respondWith(Promise.resolve(i)),s.ok&&console.debug(`%c@foxy.io/elements::${this.localName}\n%c200%c GET ${r.url}`,"color: gray","background: gray; padding: 0 .2em; border-radius: .2em; color: white;","")})),this.__fetchEventQueue=[]}__flushFetchEventQueue(e){this.__fetchEventQueue.forEach((t=>{t.respondWith(Promise.reject(new Error(e)))})),this.__fetchEventQueue=[]}__handleFetchEvent(e){var t;if(!(e instanceof m))return;if(e.defaultPrevented)return;if(e.composedPath()[0]===this)return;const{url:r,method:s}=e.request;if(r.startsWith("foxy://")){if(!this.virtualHost||!r.startsWith(`foxy://${this.virtualHost}/form/`))return;if("GET"!==s)return e.respondWith(M(e.request,this))}"GET"===s&&(e.preventDefault(),this.__fetchEventQueue.push(e),(null===(t=this.__service.state)||void 0===t?void 0:t.matches("busy"))||this.__processFetchEventQueue())}}V.UpdateEvent=p,V.Rumour=l((()=>new d)),V.API=v;export{V as N,N as b,G as s,W as u};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { InternalControl } from "../../../../internal/InternalControl/InternalControl.js";
|
|
2
|
-
import { html } from 'lit-html';
|
|
3
|
-
export class InternalFilterAttributeFormActionControl extends InternalControl {
|
|
4
|
-
renderControl() {
|
|
5
|
-
const nucleon = this.nucleon;
|
|
6
|
-
const hasChanges = nucleon === null || nucleon === void 0 ? void 0 : nucleon.in({ idle: { snapshot: 'dirty' } });
|
|
7
|
-
const hasData = !!(nucleon === null || nucleon === void 0 ? void 0 : nucleon.data);
|
|
8
|
-
return html `
|
|
9
|
-
<div class="grid grid-cols-2 gap-m">
|
|
10
|
-
${hasData && hasChanges
|
|
11
|
-
? html `
|
|
12
|
-
<vaadin-button
|
|
13
|
-
theme="contrast"
|
|
14
|
-
?disabled=${this.disabled}
|
|
15
|
-
@click=${() => nucleon === null || nucleon === void 0 ? void 0 : nucleon.undo()}
|
|
16
|
-
>
|
|
17
|
-
<foxy-i18n infer="" key="reset"></foxy-i18n>
|
|
18
|
-
</vaadin-button>
|
|
19
|
-
`
|
|
20
|
-
: ''}
|
|
21
|
-
<vaadin-button
|
|
22
|
-
theme=${hasData ? (hasChanges ? 'secondary' : 'error') : 'success'}
|
|
23
|
-
class=${hasData && hasChanges ? '' : 'col-span-2'}
|
|
24
|
-
?disabled=${this.disabled}
|
|
25
|
-
@click=${() => (!hasData || hasChanges ? nucleon === null || nucleon === void 0 ? void 0 : nucleon.submit() : nucleon === null || nucleon === void 0 ? void 0 : nucleon.delete())}
|
|
26
|
-
>
|
|
27
|
-
<foxy-i18n infer="" key=${hasData ? (hasChanges ? 'update' : 'delete') : 'create'}>
|
|
28
|
-
</foxy-i18n>
|
|
29
|
-
</vaadin-button>
|
|
30
|
-
</div>
|
|
31
|
-
`;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=InternalFilterAttributeFormActionControl.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InternalFilterAttributeFormActionControl.js","sourceRoot":"","sources":["../../../../../../src/elements/public/FilterAttributeForm/internal/InternalFilterAttributeFormActionControl/InternalFilterAttributeFormActionControl.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,gEAA6D;AACvF,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAEhC,MAAM,OAAO,wCAAyC,SAAQ,eAAe;IAC3E,aAAa;QACX,MAAM,OAAO,GAAG,IAAI,CAAC,OAAqC,CAAC;QAC3D,MAAM,UAAU,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC;QAChE,MAAM,OAAO,GAAG,CAAC,EAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,CAAA,CAAC;QAEhC,OAAO,IAAI,CAAA;;UAEL,OAAO,IAAI,UAAU;YACrB,CAAC,CAAC,IAAI,CAAA;;;4BAGY,IAAI,CAAC,QAAQ;yBAChB,GAAG,EAAE,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,EAAE;;;;aAIjC;YACH,CAAC,CAAC,EAAE;;kBAEI,OAAO,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;kBAC1D,OAAO,IAAI,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY;sBACrC,IAAI,CAAC,QAAQ;mBAChB,GAAG,EAAE,CAAC,CAAC,CAAC,OAAO,IAAI,UAAU,CAAC,CAAC,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,GAAG,CAAC,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,EAAE,CAAC;;oCAErD,OAAO,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ;;;;KAItF,CAAC;IACJ,CAAC;CACF","sourcesContent":["import type { FilterAttributeForm } from '../../FilterAttributeForm';\nimport type { TemplateResult } from 'lit-html';\n\nimport { InternalControl } from '../../../../internal/InternalControl/InternalControl';\nimport { html } from 'lit-html';\n\nexport class InternalFilterAttributeFormActionControl extends InternalControl {\n renderControl(): TemplateResult {\n const nucleon = this.nucleon as FilterAttributeForm | null;\n const hasChanges = nucleon?.in({ idle: { snapshot: 'dirty' } });\n const hasData = !!nucleon?.data;\n\n return html`\n <div class=\"grid grid-cols-2 gap-m\">\n ${hasData && hasChanges\n ? html`\n <vaadin-button\n theme=\"contrast\"\n ?disabled=${this.disabled}\n @click=${() => nucleon?.undo()}\n >\n <foxy-i18n infer=\"\" key=\"reset\"></foxy-i18n>\n </vaadin-button>\n `\n : ''}\n <vaadin-button\n theme=${hasData ? (hasChanges ? 'secondary' : 'error') : 'success'}\n class=${hasData && hasChanges ? '' : 'col-span-2'}\n ?disabled=${this.disabled}\n @click=${() => (!hasData || hasChanges ? nucleon?.submit() : nucleon?.delete())}\n >\n <foxy-i18n infer=\"\" key=${hasData ? (hasChanges ? 'update' : 'delete') : 'create'}>\n </foxy-i18n>\n </vaadin-button>\n </div>\n `;\n }\n}\n"]}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import '../../../../internal/InternalControl/index';
|
|
2
|
-
import '@vaadin/vaadin-button';
|
|
3
|
-
import '../../../I18n/index';
|
|
4
|
-
import { InternalFilterAttributeFormActionControl as Control } from './InternalFilterAttributeFormActionControl';
|
|
5
|
-
export { Control as InternalFilterAttributeFormActionControl };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import "../../../../internal/InternalControl/index.js";
|
|
2
|
-
import '@vaadin/vaadin-button';
|
|
3
|
-
import "../../../I18n/index.js";
|
|
4
|
-
import { InternalFilterAttributeFormActionControl as Control } from "./InternalFilterAttributeFormActionControl.js";
|
|
5
|
-
customElements.define('foxy-internal-filter-attribute-form-action-control', Control);
|
|
6
|
-
export { Control as InternalFilterAttributeFormActionControl };
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/elements/public/FilterAttributeForm/internal/InternalFilterAttributeFormActionControl/index.ts"],"names":[],"mappings":"AAAA,uDAAoD;AACpD,OAAO,uBAAuB,CAAC;AAC/B,gCAA6B;AAE7B,OAAO,EAAE,wCAAwC,IAAI,OAAO,EAAE,sDAAmD;AAEjH,cAAc,CAAC,MAAM,CAAC,oDAAoD,EAAE,OAAO,CAAC,CAAC;AAErF,OAAO,EAAE,OAAO,IAAI,wCAAwC,EAAE,CAAC","sourcesContent":["import '../../../../internal/InternalControl/index';\nimport '@vaadin/vaadin-button';\nimport '../../../I18n/index';\n\nimport { InternalFilterAttributeFormActionControl as Control } from './InternalFilterAttributeFormActionControl';\n\ncustomElements.define('foxy-internal-filter-attribute-form-action-control', Control);\n\nexport { Control as InternalFilterAttributeFormActionControl };\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Option, ParsedValue } from '../types';
|
|
2
|
-
import { I18n } from '../../I18n/I18n';
|
|
3
|
-
import { TemplateResult } from 'lit-html';
|
|
4
|
-
export declare type BooleanValueParams = {
|
|
5
|
-
parsedValue: ParsedValue;
|
|
6
|
-
readonly: boolean;
|
|
7
|
-
disabled: boolean;
|
|
8
|
-
option: Option | null;
|
|
9
|
-
t: I18n['t'];
|
|
10
|
-
onChange: (newValue: ParsedValue) => void;
|
|
11
|
-
};
|
|
12
|
-
export declare function BooleanValue(params: BooleanValueParams): TemplateResult;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Select } from "./Select.js";
|
|
2
|
-
export function BooleanValue(params) {
|
|
3
|
-
var _a, _b, _c, _d, _e, _f;
|
|
4
|
-
const { parsedValue, option, readonly, disabled, t, onChange } = params;
|
|
5
|
-
const falseLabel = (_c = (_b = (_a = option === null || option === void 0 ? void 0 : option.list) === null || _a === void 0 ? void 0 : _a.find(v => v.value === 'false')) === null || _b === void 0 ? void 0 : _b.label) !== null && _c !== void 0 ? _c : 'false';
|
|
6
|
-
const trueLabel = (_f = (_e = (_d = option === null || option === void 0 ? void 0 : option.list) === null || _d === void 0 ? void 0 : _d.find(v => v.value === 'true')) === null || _e === void 0 ? void 0 : _e.label) !== null && _f !== void 0 ? _f : 'true';
|
|
7
|
-
const list = [
|
|
8
|
-
{ label: trueLabel, value: 'true' },
|
|
9
|
-
{ label: falseLabel, value: 'false' },
|
|
10
|
-
];
|
|
11
|
-
return Select({
|
|
12
|
-
disabled,
|
|
13
|
-
readonly,
|
|
14
|
-
value: parsedValue.value,
|
|
15
|
-
label: 'value',
|
|
16
|
-
list,
|
|
17
|
-
t,
|
|
18
|
-
onChange: newValue => onChange({ ...parsedValue, value: newValue }),
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=BooleanValue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BooleanValue.js","sourceRoot":"","sources":["../../../../../src/elements/public/QueryBuilder/components/BooleanValue.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,oBAAiB;AAYlC,MAAM,UAAU,YAAY,CAAC,MAA0B;;IACrD,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;IAExE,MAAM,UAAU,qBAAG,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,0CAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,OAAO,2CAAG,KAAK,mCAAI,OAAO,CAAC;IAClF,MAAM,SAAS,qBAAG,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,0CAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,MAAM,2CAAG,KAAK,mCAAI,MAAM,CAAC;IAC/E,MAAM,IAAI,GAAG;QACX,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE;QACnC,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE;KACtC,CAAC;IAEF,OAAO,MAAM,CAAC;QACZ,QAAQ;QACR,QAAQ;QACR,KAAK,EAAE,WAAW,CAAC,KAAK;QACxB,KAAK,EAAE,OAAO;QACd,IAAI;QACJ,CAAC;QACD,QAAQ,EAAE,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC;KACpE,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { Option, ParsedValue } from '../types';\n\nimport { I18n } from '../../I18n/I18n';\nimport { Select } from './Select';\nimport { TemplateResult } from 'lit-html';\n\nexport type BooleanValueParams = {\n parsedValue: ParsedValue;\n readonly: boolean;\n disabled: boolean;\n option: Option | null;\n t: I18n['t'];\n onChange: (newValue: ParsedValue) => void;\n};\n\nexport function BooleanValue(params: BooleanValueParams): TemplateResult {\n const { parsedValue, option, readonly, disabled, t, onChange } = params;\n\n const falseLabel = option?.list?.find(v => v.value === 'false')?.label ?? 'false';\n const trueLabel = option?.list?.find(v => v.value === 'true')?.label ?? 'true';\n const list = [\n { label: trueLabel, value: 'true' },\n { label: falseLabel, value: 'false' },\n ];\n\n return Select({\n disabled,\n readonly,\n value: parsedValue.value,\n label: 'value',\n list,\n t,\n onChange: newValue => onChange({ ...parsedValue, value: newValue }),\n });\n}\n"]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Operator, Option, ParsedValue } from '../types';
|
|
2
|
-
import { TemplateResult } from 'lit-html';
|
|
3
|
-
import { I18n } from '../../I18n/I18n';
|
|
4
|
-
export declare type GroupParams = {
|
|
5
|
-
parsedValues: (ParsedValue | ParsedValue[])[];
|
|
6
|
-
operators: Operator[];
|
|
7
|
-
disableOr: boolean;
|
|
8
|
-
disabled: boolean;
|
|
9
|
-
readonly: boolean;
|
|
10
|
-
options: Option[];
|
|
11
|
-
t: I18n['t'];
|
|
12
|
-
isNested?: boolean;
|
|
13
|
-
onChange: (newValue: (ParsedValue | ParsedValue[])[]) => void;
|
|
14
|
-
};
|
|
15
|
-
export declare function Group(params: GroupParams): TemplateResult;
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit-html';
|
|
2
|
-
import { Rule } from "./Rule.js";
|
|
3
|
-
import { repeat } from 'lit-html/directives/repeat';
|
|
4
|
-
export function Group(params) {
|
|
5
|
-
const hasNestedRules = params.parsedValues.some(v => Array.isArray(v));
|
|
6
|
-
const andDivider = html `<div class=${hasNestedRules ? 'h-xs' : 'mt-s'}></div>`;
|
|
7
|
-
const orDivider = html `
|
|
8
|
-
<div class="flex items-center h-s">
|
|
9
|
-
<div class="w-m text-center leading-none uppercase font-medium text-xs text-contrast-30">
|
|
10
|
-
${params.t('or')}
|
|
11
|
-
</div>
|
|
12
|
-
|
|
13
|
-
<div class="flex-1 border-t border-contrast-20"></div>
|
|
14
|
-
<div class="w-m ml-s flex-shrink-0"></div>
|
|
15
|
-
<div class="hidden sm-block w-m flex-shrink-0"></div>
|
|
16
|
-
</div>
|
|
17
|
-
`;
|
|
18
|
-
return html `
|
|
19
|
-
<div aria-label=${params.t('query_builder_group')}>
|
|
20
|
-
${repeat([...params.parsedValues, null], (rule, ruleIndex) => String(ruleIndex), (rule, ruleIndex) => {
|
|
21
|
-
const divider = ruleIndex > 0 ? (params.isNested ? orDivider : andDivider) : '';
|
|
22
|
-
if (rule === null) {
|
|
23
|
-
return [
|
|
24
|
-
divider,
|
|
25
|
-
Rule({
|
|
26
|
-
operators: params.operators,
|
|
27
|
-
disableOr: params.disableOr,
|
|
28
|
-
isFullSize: !params.isNested && params.parsedValues.length === 0,
|
|
29
|
-
isNested: params.isNested,
|
|
30
|
-
disabled: params.disabled,
|
|
31
|
-
readonly: params.readonly,
|
|
32
|
-
options: params.options,
|
|
33
|
-
parsedValue: { path: '', operator: null, value: '' },
|
|
34
|
-
t: params.t,
|
|
35
|
-
onChange: newValue => params.onChange([...params.parsedValues, newValue]),
|
|
36
|
-
}),
|
|
37
|
-
];
|
|
38
|
-
}
|
|
39
|
-
if (Array.isArray(rule)) {
|
|
40
|
-
return [
|
|
41
|
-
divider,
|
|
42
|
-
html `
|
|
43
|
-
<div class="bg-contrast-10 rounded-t-l rounded-b-l p-s -m-s">
|
|
44
|
-
${Group({
|
|
45
|
-
parsedValues: rule,
|
|
46
|
-
disableOr: params.disableOr,
|
|
47
|
-
operators: params.operators,
|
|
48
|
-
isNested: true,
|
|
49
|
-
disabled: params.disabled,
|
|
50
|
-
readonly: params.readonly,
|
|
51
|
-
options: params.options,
|
|
52
|
-
t: params.t,
|
|
53
|
-
onChange: newRule => {
|
|
54
|
-
const newValue = [...params.parsedValues];
|
|
55
|
-
const typedNewRule = newRule;
|
|
56
|
-
newValue[ruleIndex] = newRule.length > 1 ? typedNewRule : typedNewRule[0];
|
|
57
|
-
params.onChange(newValue);
|
|
58
|
-
},
|
|
59
|
-
})}
|
|
60
|
-
</div>
|
|
61
|
-
`,
|
|
62
|
-
];
|
|
63
|
-
}
|
|
64
|
-
return [
|
|
65
|
-
divider,
|
|
66
|
-
Rule({
|
|
67
|
-
parsedValue: rule,
|
|
68
|
-
disableOr: params.disableOr,
|
|
69
|
-
operators: params.operators,
|
|
70
|
-
isNested: params.isNested,
|
|
71
|
-
disabled: params.disabled,
|
|
72
|
-
readonly: params.readonly,
|
|
73
|
-
options: params.options,
|
|
74
|
-
t: params.t,
|
|
75
|
-
onChange: newValue => {
|
|
76
|
-
const newParsedValues = [...params.parsedValues];
|
|
77
|
-
newParsedValues[ruleIndex] = newValue;
|
|
78
|
-
params.onChange(newParsedValues);
|
|
79
|
-
},
|
|
80
|
-
onDelete: () => {
|
|
81
|
-
const newParsedValues = params.parsedValues.filter((_, i) => i !== ruleIndex);
|
|
82
|
-
params.onChange(newParsedValues);
|
|
83
|
-
},
|
|
84
|
-
onConvert: () => {
|
|
85
|
-
const newValue = [...params.parsedValues];
|
|
86
|
-
newValue[ruleIndex] = [rule, { ...rule, operator: null, value: '' }];
|
|
87
|
-
params.onChange(newValue);
|
|
88
|
-
},
|
|
89
|
-
}),
|
|
90
|
-
];
|
|
91
|
-
})}
|
|
92
|
-
</div>
|
|
93
|
-
`;
|
|
94
|
-
}
|
|
95
|
-
//# sourceMappingURL=Group.js.map
|