@saasquatch/mint-components 1.12.0-7 → 1.12.0-8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ShadowViewAddon-13173901.js → ShadowViewAddon-040cffad.js} +38 -36
- package/dist/cjs/{global-e4ebdbcc.js → global-c3637175.js} +10 -161
- package/dist/cjs/{index.module-236d0403.js → index.module-b8d9d0ba.js} +228 -1392
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{luxon-20eafbd9.js → luxon-05098e19.js} +1 -1
- package/dist/cjs/mint-components.cjs.js +4 -4
- package/dist/cjs/{mockRewardData-3c470512.js → mockRewardData-4258e067.js} +1 -1
- package/dist/cjs/{re-render-5de6631a.js → re-render-5bde3d2e.js} +2 -2
- package/dist/cjs/sqm-asset-card.cjs.entry.js +3 -3
- package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +414 -415
- package/dist/cjs/sqm-big-stat_39.cjs.entry.js +99 -67
- package/dist/cjs/sqm-close-button.cjs.entry.js +3 -3
- package/dist/cjs/sqm-code-verification.cjs.entry.js +6 -7
- package/dist/cjs/sqm-context-router.cjs.entry.js +3 -3
- package/dist/cjs/sqm-email-verification.cjs.entry.js +24 -25
- package/dist/cjs/sqm-empty_4.cjs.entry.js +6 -6
- package/dist/cjs/sqm-form-message.cjs.entry.js +2 -2
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +3 -3
- package/dist/cjs/sqm-header-logo.cjs.entry.js +2 -2
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-invoice-table-view-e530775f.js → sqm-invoice-table-view-5d3a2d35.js} +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +8 -9
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +7 -8
- package/dist/cjs/{sqm-navigation-sidebar-item-view-fc865ecf.js → sqm-navigation-sidebar-item-view-a2135064.js} +1 -1
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +4 -4
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/sqm-password-field.cjs.entry.js +4 -4
- package/dist/cjs/sqm-popup-container.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-email-verification-view-4bc2760b.js → sqm-portal-email-verification-view-050dbe0f.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +5 -5
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-profile-view-cbab7c80.js → sqm-portal-profile-view-d97086bc.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +11 -12
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +6 -7
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +3 -3
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +16 -17
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +6 -6
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +4 -4
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +61 -62
- package/dist/cjs/sqm-scroll.cjs.entry.js +2 -2
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +17 -15
- package/dist/cjs/sqm-tab.cjs.entry.js +4 -4
- package/dist/cjs/sqm-tabs.cjs.entry.js +5 -5
- package/dist/cjs/sqm-text-span.cjs.entry.js +2 -2
- package/dist/cjs/sqm-widget-verification-internal.cjs.entry.js +11 -12
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +3 -3
- package/dist/cjs/{stencil-hooks.module-a5a04d8a.js → stencil-hooks.module-72742a0b.js} +4 -1
- package/dist/cjs/{useChildElements-23beb180.js → useChildElements-410d2435.js} +2 -2
- package/dist/cjs/{useInstantAccessRegistration-7c125c00.js → useInstantAccessRegistration-ccf81eae.js} +3 -3
- package/dist/cjs/{useReferralTable-54d0ba70.js → useReferralTable-824ac152.js} +13 -14
- package/dist/cjs/{useRegistrationFormState-e7e820d0.js → useRegistrationFormState-f9ce55be.js} +2 -2
- package/dist/cjs/{useVerificationEmail-35aea294.js → useVerificationEmail-6aacdb71.js} +7 -8
- package/dist/cjs/{utilities-ac5b5f2c.js → utilities-f7de6c04.js} +2 -2
- package/dist/collection/components/sqm-big-stat/useBigStat.js +6 -3
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-internal.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +2 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +18 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +53 -1
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +6 -1
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +2 -2
- package/dist/esm/{ShadowViewAddon-72e231a5.js → ShadowViewAddon-69b61037.js} +12 -10
- package/dist/esm/{global-adae7650.js → global-6306a9b8.js} +10 -161
- package/dist/esm/{index.module-c0eb7dc2.js → index.module-6c840c4e.js} +222 -1389
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{luxon-63e24900.js → luxon-7600be8d.js} +1 -1
- package/dist/esm/mint-components.js +4 -4
- package/dist/esm/{mockRewardData-e6b763d1.js → mockRewardData-0eb6e778.js} +1 -1
- package/dist/esm/{re-render-5882a144.js → re-render-1bcfd0de.js} +2 -2
- package/dist/esm/sqm-asset-card.entry.js +2 -2
- package/dist/esm/sqm-banking-info-form_16.entry.js +11 -12
- package/dist/esm/sqm-big-stat_39.entry.js +44 -12
- package/dist/esm/sqm-close-button.entry.js +2 -2
- package/dist/esm/sqm-code-verification.entry.js +4 -5
- package/dist/esm/sqm-context-router.entry.js +2 -2
- package/dist/esm/sqm-email-verification.entry.js +3 -4
- package/dist/esm/sqm-empty_4.entry.js +3 -3
- package/dist/esm/sqm-form-message.entry.js +1 -1
- package/dist/esm/sqm-graphql-client-provider.entry.js +2 -2
- package/dist/esm/sqm-header-logo.entry.js +1 -1
- package/dist/esm/sqm-instant-access-registration.entry.js +5 -5
- package/dist/esm/{sqm-invoice-table-view-22bb7240.js → sqm-invoice-table-view-e9075c0b.js} +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +3 -4
- package/dist/esm/sqm-logout-current-user.entry.js +2 -3
- package/dist/esm/{sqm-navigation-sidebar-item-view-4715e546.js → sqm-navigation-sidebar-item-view-f8e78810.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +3 -3
- package/dist/esm/sqm-navigation-sidebar.entry.js +2 -2
- package/dist/esm/sqm-password-field.entry.js +3 -3
- package/dist/esm/sqm-popup-container.entry.js +2 -2
- package/dist/esm/{sqm-portal-email-verification-view-598eb9a7.js → sqm-portal-email-verification-view-c6ac5430.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +4 -4
- package/dist/esm/sqm-portal-forgot-password.entry.js +3 -3
- package/dist/esm/sqm-portal-logout.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-a0f6ad48.js → sqm-portal-profile-view-15ddbec8.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +5 -6
- package/dist/esm/sqm-portal-protected-route.entry.js +2 -2
- package/dist/esm/sqm-portal-registration-form.entry.js +4 -5
- package/dist/esm/sqm-portal-reset-password.entry.js +3 -3
- package/dist/esm/sqm-portal-verify-email.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +8 -9
- package/dist/esm/sqm-referred-registration.entry.js +5 -5
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +3 -3
- package/dist/esm/sqm-rewards-table_9.entry.js +8 -9
- package/dist/esm/sqm-scroll.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +15 -13
- package/dist/esm/sqm-tab.entry.js +3 -3
- package/dist/esm/sqm-tabs.entry.js +4 -4
- package/dist/esm/sqm-text-span.entry.js +1 -1
- package/dist/esm/sqm-widget-verification-internal.entry.js +4 -5
- package/dist/esm/sqm-widget-verification.entry.js +2 -2
- package/dist/esm/{stencil-hooks.module-3c7f7c90.js → stencil-hooks.module-ac12ca1c.js} +1 -1
- package/dist/esm/{useChildElements-fe94b660.js → useChildElements-fc84e640.js} +2 -2
- package/dist/esm/{useInstantAccessRegistration-670c1b98.js → useInstantAccessRegistration-8b0a4556.js} +3 -3
- package/dist/esm/{useReferralTable-52008143.js → useReferralTable-f6ffa103.js} +4 -5
- package/dist/esm/{useRegistrationFormState-4cfd1a8d.js → useRegistrationFormState-849e27f7.js} +2 -2
- package/dist/esm/{useVerificationEmail-02b78bd7.js → useVerificationEmail-c32696ba.js} +2 -3
- package/dist/esm/{utilities-98445452.js → utilities-443732be.js} +2 -2
- package/dist/esm-es5/ShadowViewAddon-69b61037.js +1 -0
- package/dist/esm-es5/global-6306a9b8.js +285 -0
- package/dist/esm-es5/index.module-6c840c4e.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-63e24900.js → luxon-7600be8d.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{mockRewardData-e6b763d1.js → mockRewardData-0eb6e778.js} +1 -1
- package/dist/esm-es5/{re-render-5882a144.js → re-render-1bcfd0de.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -1
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-form-message.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/{sqm-invoice-table-view-22bb7240.js → sqm-invoice-table-view-e9075c0b.js} +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-4715e546.js → sqm-navigation-sidebar-item-view-f8e78810.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-598eb9a7.js → sqm-portal-email-verification-view-c6ac5430.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-a0f6ad48.js → sqm-portal-profile-view-15ddbec8.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-scroll.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tab.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification-internal.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
- package/dist/esm-es5/{stencil-hooks.module-3c7f7c90.js → stencil-hooks.module-ac12ca1c.js} +1 -1
- package/dist/esm-es5/useChildElements-fc84e640.js +1 -0
- package/dist/esm-es5/{useInstantAccessRegistration-670c1b98.js → useInstantAccessRegistration-8b0a4556.js} +1 -1
- package/dist/esm-es5/useReferralTable-f6ffa103.js +1 -0
- package/dist/esm-es5/useRegistrationFormState-849e27f7.js +1 -0
- package/dist/esm-es5/useVerificationEmail-c32696ba.js +1 -0
- package/dist/esm-es5/{utilities-98445452.js → utilities-443732be.js} +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-0ecb3019.js → p-0121e044.js} +1 -1
- package/dist/mint-components/p-012daf3c.entry.js +1 -0
- package/dist/mint-components/{p-1e40967f.entry.js → p-03dbe2ce.entry.js} +1 -1
- package/dist/mint-components/{p-65a449de.js → p-04348a9b.js} +1 -1
- package/dist/mint-components/{p-14488d1c.system.entry.js → p-04ced592.system.entry.js} +1 -1
- package/dist/mint-components/{p-78a831e0.system.entry.js → p-0527d90b.system.entry.js} +1 -1
- package/dist/mint-components/p-0893073b.entry.js +1 -0
- package/dist/mint-components/p-0c9ad5f3.system.entry.js +1 -0
- package/dist/mint-components/p-11d1b212.js +1 -0
- package/dist/mint-components/p-1649ee1e.entry.js +240 -0
- package/dist/mint-components/p-1712a9fd.entry.js +11 -0
- package/dist/mint-components/{p-cdd04337.entry.js → p-178d2d2e.entry.js} +1 -1
- package/dist/mint-components/{p-ee328054.entry.js → p-1b861be5.entry.js} +1 -1
- package/dist/mint-components/{p-4209cd94.js → p-1d27da33.js} +4 -4
- package/dist/mint-components/p-1e616d45.system.js +1 -0
- package/dist/mint-components/{p-5a2fd8e0.system.entry.js → p-1f7d7524.system.entry.js} +1 -1
- package/dist/mint-components/{p-f0fba496.system.entry.js → p-22425c71.system.entry.js} +1 -1
- package/dist/mint-components/{p-9223640e.js → p-251e7567.js} +1 -1
- package/dist/mint-components/{p-1602bf01.js → p-2816bf6a.js} +1 -1
- package/dist/mint-components/p-2868f475.entry.js +1 -0
- package/dist/mint-components/{p-0979f82e.system.js → p-2a414b2e.system.js} +2 -2
- package/dist/mint-components/p-36e9296e.system.entry.js +1 -0
- package/dist/mint-components/{p-cb45d0a8.system.js → p-370a1a73.system.js} +1 -1
- package/dist/mint-components/p-3925bcd6.entry.js +13 -0
- package/dist/mint-components/p-39e412e8.system.entry.js +1 -0
- package/dist/mint-components/{p-45d0b48a.system.entry.js → p-3e7ec0f3.system.entry.js} +1 -1
- package/dist/mint-components/{p-423821b9.system.js → p-43621f12.system.js} +1 -1
- package/dist/mint-components/p-4364001c.entry.js +12 -0
- package/dist/mint-components/{p-6a70d2d6.entry.js → p-4671e644.entry.js} +1 -1
- package/dist/mint-components/{p-f338ef55.system.js → p-4babe350.system.js} +1 -1
- package/dist/mint-components/{p-34a87e67.system.js → p-4e373c3d.system.js} +1 -1
- package/dist/mint-components/{p-ab89b44a.system.js → p-4eae91a9.system.js} +1 -1
- package/dist/mint-components/{p-ab7322f0.system.entry.js → p-51d53165.system.entry.js} +1 -1
- package/dist/mint-components/{p-4c0b7768.entry.js → p-5291891c.entry.js} +3 -3
- package/dist/mint-components/{p-0aebee07.entry.js → p-54ffae13.entry.js} +11 -11
- package/dist/mint-components/{p-34dab223.system.entry.js → p-59818690.system.entry.js} +1 -1
- package/dist/mint-components/p-5a23b560.system.entry.js +1 -0
- package/dist/mint-components/{p-00ec17d4.system.js → p-5becb2ff.system.js} +1 -1
- package/dist/mint-components/{p-a1f0d8ba.system.entry.js → p-5fba1a04.system.entry.js} +1 -1
- package/dist/mint-components/p-63ac51e1.system.entry.js +1 -0
- package/dist/mint-components/p-64491210.system.entry.js +1 -0
- package/dist/mint-components/{p-def70672.js → p-68747d88.js} +1 -1
- package/dist/mint-components/{p-95af445c.system.entry.js → p-6afb4f48.system.entry.js} +1 -1
- package/dist/mint-components/{p-cafebf8a.entry.js → p-6c928c7d.entry.js} +1 -1
- package/dist/mint-components/{p-657b290b.entry.js → p-76392386.entry.js} +1 -1
- package/dist/mint-components/p-7dd1ff31.system.entry.js +1 -0
- package/dist/mint-components/{p-d0c4f3bf.system.entry.js → p-83c9f37b.system.entry.js} +1 -1
- package/dist/mint-components/{p-cdcd825e.entry.js → p-84b25a46.entry.js} +1 -1
- package/dist/mint-components/{p-2b5b2586.system.js → p-8690f682.system.js} +1 -1
- package/dist/mint-components/{p-14beec1b.system.entry.js → p-88aac6a9.system.entry.js} +1 -1
- package/dist/mint-components/{p-45d6cde6.system.entry.js → p-88bf51b7.system.entry.js} +1 -1
- package/dist/mint-components/p-8d554a89.system.js +1 -0
- package/dist/mint-components/p-93576222.system.js +1 -0
- package/dist/mint-components/{p-d2a925d5.entry.js → p-94454880.entry.js} +1 -1
- package/dist/mint-components/{p-3ba349a3.entry.js → p-947fe79b.entry.js} +1 -1
- package/dist/mint-components/{p-ca423ca2.system.entry.js → p-9596e97c.system.entry.js} +1 -1
- package/dist/mint-components/p-974070c4.system.entry.js +1 -0
- package/dist/mint-components/p-99c15c5e.entry.js +1 -0
- package/dist/mint-components/{p-c293f586.system.entry.js → p-9cdbd1ac.system.entry.js} +1 -1
- package/dist/mint-components/{p-56b37aeb.entry.js → p-9d34f4f0.entry.js} +3 -3
- package/dist/mint-components/{p-64acc813.entry.js → p-9e0230c3.entry.js} +1 -1
- package/dist/mint-components/{p-8ccb4267.js → p-9eae245f.js} +30 -27
- package/dist/mint-components/{p-70886c65.system.entry.js → p-9ec008cb.system.entry.js} +1 -1
- package/dist/mint-components/p-a4282d02.system.entry.js +1 -0
- package/dist/mint-components/{p-a2e1af83.entry.js → p-a45b03d2.entry.js} +1 -1
- package/dist/mint-components/{p-15e01e7a.entry.js → p-a85f57bb.entry.js} +1 -1
- package/dist/mint-components/{p-dce3d296.system.js → p-ac51940e.system.js} +1 -1
- package/dist/mint-components/{p-d39da925.entry.js → p-b1e8a802.entry.js} +1 -1
- package/dist/mint-components/p-b3b5b4b7.system.entry.js +1 -0
- package/dist/mint-components/{p-3da2b3cf.system.entry.js → p-bc826117.system.entry.js} +1 -1
- package/dist/mint-components/p-bdd6bb13.js +1 -0
- package/dist/mint-components/{p-3c46b3de.system.entry.js → p-be1ae1ed.system.entry.js} +1 -1
- package/dist/mint-components/{p-cadb8dba.entry.js → p-bee1e573.entry.js} +1 -1
- package/dist/mint-components/{p-18cd88c4.system.entry.js → p-c1f4fb6d.system.entry.js} +1 -1
- package/dist/mint-components/{p-7507d72b.js → p-c3b37bbf.js} +1 -1
- package/dist/mint-components/{p-ac69b460.system.entry.js → p-c3babfa4.system.entry.js} +1 -1
- package/dist/mint-components/{p-e373b78a.entry.js → p-c510fb88.entry.js} +1 -1
- package/dist/mint-components/p-c8878e79.entry.js +1 -0
- package/dist/mint-components/p-c92a743e.entry.js +1 -0
- package/dist/mint-components/p-c9fb6102.entry.js +1 -0
- package/dist/mint-components/{p-e05ff098.system.js → p-ca809fdd.system.js} +1 -1
- package/dist/mint-components/p-cb433855.system.entry.js +1 -0
- package/dist/mint-components/{p-06c561ea.system.js → p-cd44de66.system.js} +1 -1
- package/dist/mint-components/{p-e5299352.system.js → p-ce9e7c98.system.js} +1 -1
- package/dist/mint-components/p-d238372a.system.entry.js +1 -0
- package/dist/mint-components/p-d35d8c06.entry.js +11 -0
- package/dist/mint-components/p-d468925f.entry.js +1 -0
- package/dist/mint-components/{p-7666cd3d.js → p-d7806f31.js} +6 -6
- package/dist/mint-components/{p-0db003f7.js → p-d83b0cf3.js} +153 -153
- package/dist/mint-components/{p-5c602e84.entry.js → p-dd0d79bf.entry.js} +1 -1
- package/dist/mint-components/p-def516b8.system.js +1 -0
- package/dist/mint-components/p-e01ac27c.system.js +1 -0
- package/dist/mint-components/{p-611a30f0.js → p-e0e7635a.js} +1 -1
- package/dist/mint-components/p-e12d3414.system.entry.js +1 -0
- package/dist/mint-components/p-e45a8501.system.entry.js +1 -0
- package/dist/mint-components/{p-816fb64f.system.entry.js → p-ead27698.system.entry.js} +1 -1
- package/dist/mint-components/{p-7ab14d4b.system.entry.js → p-f0806232.system.entry.js} +1 -1
- package/dist/mint-components/{p-48704504.js → p-f3053c61.js} +1 -1
- package/dist/mint-components/p-f340214f.entry.js +25 -0
- package/dist/mint-components/p-f36e33ff.entry.js +13 -0
- package/dist/mint-components/p-f450654b.system.entry.js +1 -0
- package/dist/mint-components/p-f4cbbe47.entry.js +1 -0
- package/dist/mint-components/p-f531a5c9.system.entry.js +1 -0
- package/dist/mint-components/{p-4a43ffbd.js → p-f55060db.js} +1 -1
- package/dist/mint-components/{p-b14a77e8.system.entry.js → p-f56348dc.system.entry.js} +1 -1
- package/dist/mint-components/p-f655a7df.js +1 -0
- package/dist/mint-components/{p-79097c07.entry.js → p-fbdf0738.entry.js} +1 -1
- package/dist/mint-components/{p-fda3d0ca.system.js → p-fc422446.system.js} +22 -22
- package/dist/mint-components/p-fd21ae8f.entry.js +1 -0
- package/dist/mint-components/{p-1b24bb52.js → p-fd2c5407.js} +1 -1
- package/dist/mint-components/{p-126a4f24.entry.js → p-fffc3590.entry.js} +2 -2
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +3 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +8 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +1 -0
- package/dist/types/components.d.ts +16 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/index-56d1fa5b.js +0 -2227
- package/dist/esm/index-0c7b14c5.js +0 -2225
- package/dist/esm-es5/ShadowViewAddon-72e231a5.js +0 -1
- package/dist/esm-es5/global-adae7650.js +0 -285
- package/dist/esm-es5/index-0c7b14c5.js +0 -1
- package/dist/esm-es5/index.module-c0eb7dc2.js +0 -53
- package/dist/esm-es5/useChildElements-fe94b660.js +0 -1
- package/dist/esm-es5/useReferralTable-52008143.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-4cfd1a8d.js +0 -1
- package/dist/esm-es5/useVerificationEmail-02b78bd7.js +0 -1
- package/dist/mint-components/p-0078bc76.system.js +0 -53
- package/dist/mint-components/p-0e2d876d.entry.js +0 -240
- package/dist/mint-components/p-116c1809.entry.js +0 -11
- package/dist/mint-components/p-1f02e20b.entry.js +0 -1
- package/dist/mint-components/p-22b7bd75.system.entry.js +0 -1
- package/dist/mint-components/p-253c87e1.system.entry.js +0 -1
- package/dist/mint-components/p-2632464d.entry.js +0 -1
- package/dist/mint-components/p-28450e40.system.entry.js +0 -1
- package/dist/mint-components/p-286190c4.system.entry.js +0 -1
- package/dist/mint-components/p-414b3b6c.system.entry.js +0 -1
- package/dist/mint-components/p-4185f6f5.system.entry.js +0 -1
- package/dist/mint-components/p-52241ba9.system.js +0 -1
- package/dist/mint-components/p-556753b2.js +0 -42
- package/dist/mint-components/p-55dcb6ff.system.js +0 -1
- package/dist/mint-components/p-55fe2ec0.system.entry.js +0 -1
- package/dist/mint-components/p-65de8fb2.js +0 -1
- package/dist/mint-components/p-6fb496ac.entry.js +0 -12
- package/dist/mint-components/p-6fbfd683.js +0 -1
- package/dist/mint-components/p-71b8adf7.system.js +0 -1
- package/dist/mint-components/p-7c4c727c.system.entry.js +0 -1
- package/dist/mint-components/p-858a87ce.entry.js +0 -1
- package/dist/mint-components/p-87bf9880.entry.js +0 -25
- package/dist/mint-components/p-89669879.system.js +0 -1
- package/dist/mint-components/p-8a7d2170.system.entry.js +0 -1
- package/dist/mint-components/p-8b7d2f44.entry.js +0 -1
- package/dist/mint-components/p-8defb972.system.entry.js +0 -1
- package/dist/mint-components/p-9cdaa099.entry.js +0 -1
- package/dist/mint-components/p-a5eedbe2.system.entry.js +0 -1
- package/dist/mint-components/p-a60ec391.system.entry.js +0 -1
- package/dist/mint-components/p-a80c8f5c.system.js +0 -1
- package/dist/mint-components/p-b28df069.js +0 -1
- package/dist/mint-components/p-b4771476.entry.js +0 -1
- package/dist/mint-components/p-c9ca8473.system.entry.js +0 -1
- package/dist/mint-components/p-cac64545.system.entry.js +0 -1
- package/dist/mint-components/p-d3293ac3.entry.js +0 -11
- package/dist/mint-components/p-d7b701a7.entry.js +0 -1
- package/dist/mint-components/p-e4c3817a.system.entry.js +0 -1
- package/dist/mint-components/p-e7797040.entry.js +0 -1
- package/dist/mint-components/p-e82eec3c.entry.js +0 -13
- package/dist/mint-components/p-e8bfd924.system.entry.js +0 -1
- package/dist/mint-components/p-e8fcaaa2.entry.js +0 -13
- package/dist/mint-components/p-ef49d744.entry.js +0 -1
- package/dist/mint-components/p-f5f0fc0e.entry.js +0 -1
|
@@ -1,205 +1,202 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u as useMemo$1, d as useEffect$1, e as useRef, f as useState$1, h as useReducer$1, c as createCommonjsModule, a as commonjsGlobal, i as getDefaultExportFromCjs } from './stencil-hooks.module-3c7f7c90.js';
|
|
1
|
+
import { u as useMemo, d as c, s, c as createCommonjsModule, a as commonjsGlobal, e as getDefaultExportFromCjs, f as useEffect, h, y, i as d, j as useReducer, k as useState, m as useRef } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
2
|
|
|
4
|
-
const useCallback = (fn, inputs) => useMemo
|
|
3
|
+
const useCallback = (fn, inputs) => useMemo(() => fn, inputs);
|
|
5
4
|
|
|
6
5
|
function e(e){this.message=e;}e.prototype=new Error,e.prototype.name="InvalidCharacterError";var r="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(r){var t=String(r).replace(/=+$/,"");if(t.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,o,a=0,i=0,c="";o=t.charAt(i++);~o&&(n=a%4?64*n+o:o,a++%4)?c+=String.fromCharCode(255&n>>(-2*a&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return c};function t(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw "Illegal base64url string!"}try{return function(e){return decodeURIComponent(r(e).replace(/(.)/g,(function(e,r){var t=r.charCodeAt(0).toString(16).toUpperCase();return t.length<2&&(t="0"+t),"%"+t})))}(t)}catch(e){return r(t)}}function n(e){this.message=e;}function o(e,r){if("string"!=typeof e)throw new n("Invalid token specified");var o=!0===(r=r||{}).header?0:1;try{return JSON.parse(t(e.split(".")[o]))}catch(e){throw new n("Invalid token specified: "+e.message)}}n.prototype=new Error,n.prototype.name="InvalidTokenError";
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
//
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
case '[object
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
case '[object
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
case '[object
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
if (a
|
|
87
|
-
return
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
//
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
case '[object
|
|
111
|
-
case '[object
|
|
112
|
-
case '[object
|
|
113
|
-
case '[object
|
|
114
|
-
case '[object
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
case '[object
|
|
132
|
-
case '[object
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
//
|
|
140
|
-
//
|
|
141
|
-
//
|
|
142
|
-
//
|
|
143
|
-
//
|
|
144
|
-
//
|
|
145
|
-
//
|
|
146
|
-
//
|
|
147
|
-
//
|
|
148
|
-
//
|
|
149
|
-
//
|
|
150
|
-
//
|
|
151
|
-
//
|
|
152
|
-
//
|
|
153
|
-
//
|
|
154
|
-
//
|
|
155
|
-
//
|
|
156
|
-
//
|
|
157
|
-
//
|
|
158
|
-
//
|
|
159
|
-
//
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
//
|
|
184
|
-
//
|
|
185
|
-
//
|
|
186
|
-
// to
|
|
187
|
-
//
|
|
188
|
-
//
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
bSet.add(b);
|
|
202
|
-
return false;
|
|
7
|
+
const { toString, hasOwnProperty } = Object.prototype;
|
|
8
|
+
const fnToStr = Function.prototype.toString;
|
|
9
|
+
const previousComparisons = new Map();
|
|
10
|
+
/**
|
|
11
|
+
* Performs a deep equality check on two JavaScript values, tolerating cycles.
|
|
12
|
+
*/
|
|
13
|
+
function equal(a, b) {
|
|
14
|
+
try {
|
|
15
|
+
return check(a, b);
|
|
16
|
+
}
|
|
17
|
+
finally {
|
|
18
|
+
previousComparisons.clear();
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function check(a, b) {
|
|
22
|
+
// If the two values are strictly equal, our job is easy.
|
|
23
|
+
if (a === b) {
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
// Object.prototype.toString returns a representation of the runtime type of
|
|
27
|
+
// the given value that is considerably more precise than typeof.
|
|
28
|
+
const aTag = toString.call(a);
|
|
29
|
+
const bTag = toString.call(b);
|
|
30
|
+
// If the runtime types of a and b are different, they could maybe be equal
|
|
31
|
+
// under some interpretation of equality, but for simplicity and performance
|
|
32
|
+
// we just return false instead.
|
|
33
|
+
if (aTag !== bTag) {
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
switch (aTag) {
|
|
37
|
+
case '[object Array]':
|
|
38
|
+
// Arrays are a lot like other objects, but we can cheaply compare their
|
|
39
|
+
// lengths as a short-cut before comparing their elements.
|
|
40
|
+
if (a.length !== b.length)
|
|
41
|
+
return false;
|
|
42
|
+
// Fall through to object case...
|
|
43
|
+
case '[object Object]': {
|
|
44
|
+
if (previouslyCompared(a, b))
|
|
45
|
+
return true;
|
|
46
|
+
const aKeys = definedKeys(a);
|
|
47
|
+
const bKeys = definedKeys(b);
|
|
48
|
+
// If `a` and `b` have a different number of enumerable keys, they
|
|
49
|
+
// must be different.
|
|
50
|
+
const keyCount = aKeys.length;
|
|
51
|
+
if (keyCount !== bKeys.length)
|
|
52
|
+
return false;
|
|
53
|
+
// Now make sure they have the same keys.
|
|
54
|
+
for (let k = 0; k < keyCount; ++k) {
|
|
55
|
+
if (!hasOwnProperty.call(b, aKeys[k])) {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
// Finally, check deep equality of all child properties.
|
|
60
|
+
for (let k = 0; k < keyCount; ++k) {
|
|
61
|
+
const key = aKeys[k];
|
|
62
|
+
if (!check(a[key], b[key])) {
|
|
63
|
+
return false;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return true;
|
|
67
|
+
}
|
|
68
|
+
case '[object Error]':
|
|
69
|
+
return a.name === b.name && a.message === b.message;
|
|
70
|
+
case '[object Number]':
|
|
71
|
+
// Handle NaN, which is !== itself.
|
|
72
|
+
if (a !== a)
|
|
73
|
+
return b !== b;
|
|
74
|
+
// Fall through to shared +a === +b case...
|
|
75
|
+
case '[object Boolean]':
|
|
76
|
+
case '[object Date]':
|
|
77
|
+
return +a === +b;
|
|
78
|
+
case '[object RegExp]':
|
|
79
|
+
case '[object String]':
|
|
80
|
+
return a == `${b}`;
|
|
81
|
+
case '[object Map]':
|
|
82
|
+
case '[object Set]': {
|
|
83
|
+
if (a.size !== b.size)
|
|
84
|
+
return false;
|
|
85
|
+
if (previouslyCompared(a, b))
|
|
86
|
+
return true;
|
|
87
|
+
const aIterator = a.entries();
|
|
88
|
+
const isMap = aTag === '[object Map]';
|
|
89
|
+
while (true) {
|
|
90
|
+
const info = aIterator.next();
|
|
91
|
+
if (info.done)
|
|
92
|
+
break;
|
|
93
|
+
// If a instanceof Set, aValue === aKey.
|
|
94
|
+
const [aKey, aValue] = info.value;
|
|
95
|
+
// So this works the same way for both Set and Map.
|
|
96
|
+
if (!b.has(aKey)) {
|
|
97
|
+
return false;
|
|
98
|
+
}
|
|
99
|
+
// However, we care about deep equality of values only when dealing
|
|
100
|
+
// with Map structures.
|
|
101
|
+
if (isMap && !check(aValue, b.get(aKey))) {
|
|
102
|
+
return false;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return true;
|
|
106
|
+
}
|
|
107
|
+
case '[object Uint16Array]':
|
|
108
|
+
case '[object Uint8Array]': // Buffer, in Node.js.
|
|
109
|
+
case '[object Uint32Array]':
|
|
110
|
+
case '[object Int32Array]':
|
|
111
|
+
case '[object Int8Array]':
|
|
112
|
+
case '[object Int16Array]':
|
|
113
|
+
case '[object ArrayBuffer]':
|
|
114
|
+
// DataView doesn't need these conversions, but the equality check is
|
|
115
|
+
// otherwise the same.
|
|
116
|
+
a = new Uint8Array(a);
|
|
117
|
+
b = new Uint8Array(b);
|
|
118
|
+
// Fall through...
|
|
119
|
+
case '[object DataView]': {
|
|
120
|
+
let len = a.byteLength;
|
|
121
|
+
if (len === b.byteLength) {
|
|
122
|
+
while (len-- && a[len] === b[len]) {
|
|
123
|
+
// Keep looping as long as the bytes are equal.
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return len === -1;
|
|
127
|
+
}
|
|
128
|
+
case '[object AsyncFunction]':
|
|
129
|
+
case '[object GeneratorFunction]':
|
|
130
|
+
case '[object AsyncGeneratorFunction]':
|
|
131
|
+
case '[object Function]': {
|
|
132
|
+
const aCode = fnToStr.call(a);
|
|
133
|
+
if (aCode !== fnToStr.call(b)) {
|
|
134
|
+
return false;
|
|
135
|
+
}
|
|
136
|
+
// We consider non-native functions equal if they have the same code
|
|
137
|
+
// (native functions require === because their code is censored).
|
|
138
|
+
// Note that this behavior is not entirely sound, since !== function
|
|
139
|
+
// objects with the same code can behave differently depending on
|
|
140
|
+
// their closure scope. However, any function can behave differently
|
|
141
|
+
// depending on the values of its input arguments (including this)
|
|
142
|
+
// and its calling context (including its closure scope), even
|
|
143
|
+
// though the function object is === to itself; and it is entirely
|
|
144
|
+
// possible for functions that are not === to behave exactly the
|
|
145
|
+
// same under all conceivable circumstances. Because none of these
|
|
146
|
+
// factors are statically decidable in JavaScript, JS function
|
|
147
|
+
// equality is not well-defined. This ambiguity allows us to
|
|
148
|
+
// consider the best possible heuristic among various imperfect
|
|
149
|
+
// options, and equating non-native functions that have the same
|
|
150
|
+
// code has enormous practical benefits, such as when comparing
|
|
151
|
+
// functions that are repeatedly passed as fresh function
|
|
152
|
+
// expressions within objects that are otherwise deeply equal. Since
|
|
153
|
+
// any function created from the same syntactic expression (in the
|
|
154
|
+
// same code location) will always stringify to the same code
|
|
155
|
+
// according to fnToStr.call, we can reasonably expect these
|
|
156
|
+
// repeatedly passed function expressions to have the same code, and
|
|
157
|
+
// thus behave "the same" (with all the caveats mentioned above),
|
|
158
|
+
// even though the runtime function objects are !== to one another.
|
|
159
|
+
return !endsWith(aCode, nativeCodeSuffix);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
// Otherwise the values are not equal.
|
|
163
|
+
return false;
|
|
164
|
+
}
|
|
165
|
+
function definedKeys(obj) {
|
|
166
|
+
// Remember that the second argument to Array.prototype.filter will be
|
|
167
|
+
// used as `this` within the callback function.
|
|
168
|
+
return Object.keys(obj).filter(isDefinedKey, obj);
|
|
169
|
+
}
|
|
170
|
+
function isDefinedKey(key) {
|
|
171
|
+
return this[key] !== void 0;
|
|
172
|
+
}
|
|
173
|
+
const nativeCodeSuffix = "{ [native code] }";
|
|
174
|
+
function endsWith(full, suffix) {
|
|
175
|
+
const fromIndex = full.length - suffix.length;
|
|
176
|
+
return fromIndex >= 0 &&
|
|
177
|
+
full.indexOf(suffix, fromIndex) === fromIndex;
|
|
178
|
+
}
|
|
179
|
+
function previouslyCompared(a, b) {
|
|
180
|
+
// Though cyclic references can make an object graph appear infinite from the
|
|
181
|
+
// perspective of a depth-first traversal, the graph still contains a finite
|
|
182
|
+
// number of distinct object references. We use the previousComparisons cache
|
|
183
|
+
// to avoid comparing the same pair of object references more than once, which
|
|
184
|
+
// guarantees termination (even if we end up comparing every object in one
|
|
185
|
+
// graph to every object in the other graph, which is extremely unlikely),
|
|
186
|
+
// while still allowing weird isomorphic structures (like rings with different
|
|
187
|
+
// lengths) a chance to pass the equality test.
|
|
188
|
+
let bSet = previousComparisons.get(a);
|
|
189
|
+
if (bSet) {
|
|
190
|
+
// Return true here because we can be sure false will be returned somewhere
|
|
191
|
+
// else if the objects are not equivalent.
|
|
192
|
+
if (bSet.has(b))
|
|
193
|
+
return true;
|
|
194
|
+
}
|
|
195
|
+
else {
|
|
196
|
+
previousComparisons.set(a, bSet = new Set);
|
|
197
|
+
}
|
|
198
|
+
bSet.add(b);
|
|
199
|
+
return false;
|
|
203
200
|
}
|
|
204
201
|
|
|
205
202
|
var __defProp = Object.defineProperty;
|
|
@@ -778,10 +775,6 @@ function setVerificationContext(context) {
|
|
|
778
775
|
}
|
|
779
776
|
}
|
|
780
777
|
|
|
781
|
-
function t$2(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i);}}function n$2(n,e,i){return e&&t$2(n.prototype,e),i&&t$2(n,i),n}var s$1=function(){function t(t){var n=this,e=this;this._status="Initial",this.onChange=function(t,n){e.options.onChange&&e.options.onChange(t,n);},this.onConnect=function(t){try{return n.status="Connected",n.options.onChange&&n.options.onChange(t,t),Promise.resolve(new Promise(function(t){n.resolvePromise=t;}))}catch(t){return Promise.reject(t)}},this.onDisconnect=function(){e.status="Connecting",e.start();},this.options=t;}var e=t.prototype;return e.start=function(){var t=this,n=0;this.status="Connecting";var e=function(){return t.status},i=a$1(this.options.attempts)||10,o=function(){if("Connected"!==e()){var o=new CustomEvent(t.options.contextName,{bubbles:!0,cancelable:!0,composed:!0,detail:{onConnect:t.onConnect,onChange:t.onChange,onDisconnect:t.onDisconnect}});a$1(t.options.element).dispatchEvent(o),"Connected"!==e()?++n>=i&&(t._interval&&clearInterval(t._interval),t.status="Timeout"):"Connected"===e()&&t._interval&&clearInterval(t._interval);}};return (a$1(this.options.pollingMs)||100)>0&&i>1&&(this._interval=setInterval(o,a$1(this.options.pollingMs)||100)),o(),this},e.stop=function(){return this._interval&&clearInterval(this._interval),this.resolvePromise&&this.resolvePromise(),this.status="Initial",this},n$2(t,[{key:"status",set:function(t){this._status=t,this.options.onStatus&&this.options.onStatus(t);},get:function(){return this._status}}]),t}(),c$1=function(){function t(t){var n=this;this.__listeners=[],this.connectListener=function(t){try{t.stopPropagation(),n.__listeners=[].concat(n.__listeners,[t.detail]);var e=function(e,i){try{var o=Promise.resolve(t.detail.onConnect(n.__current)).then(function(){});}catch(t){return i(!0,t)}return o&&o.then?o.then(i.bind(null,!1),i.bind(null,!0)):i(!1,o)}(0,function(e,i){var o,r;if(n.__listeners=(r=(o=n.__listeners).indexOf(t.detail),o.slice(0,r).concat(o.slice(r+1,o.length))),e)throw i;return i});return Promise.resolve(e&&e.then?e.then(function(){}):void 0)}catch(t){return Promise.reject(t)}},this.options=t,this.__current=a$1(t.initialState);}var e=t.prototype;return e.start=function(){return a$1(this.options.element).addEventListener(this.options.contextName,this.connectListener),this},e.stop=function(){return a$1(this.options.element).removeEventListener(this.options.contextName,this.connectListener),this.__listeners.map(function(t){t.onDisconnect();}),this.__listeners=[],this},n$2(t,[{key:"context",set:function(t){var n=this.__current;this.__current=t,this.__listeners.forEach(function(e){return e.onChange(t,n)});},get:function(){return a$1(this.__current)}},{key:"listeners",get:function(){return Object.freeze([].concat(this.__listeners))}}]),t}();function a$1(t){return "function"==typeof typeof t?t():t}
|
|
782
|
-
|
|
783
|
-
function c$2(){return (c$2=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e}).apply(this,arguments)}var u=1e3,C=60*u,l=60*C,d=24*l,f=function(e,t){t=t||{};var n=typeof e;if("string"===n&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"weeks":case"week":case"w":return 6048e5*n;case"days":case"day":case"d":return n*d;case"hours":case"hour":case"hrs":case"hr":case"h":return n*l;case"minutes":case"minute":case"mins":case"min":case"m":return n*C;case"seconds":case"second":case"secs":case"sec":case"s":return n*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}(e);if("number"===n&&isFinite(e))return t.long?function(e){var t=Math.abs(e);return t>=d?g(e,t,d,"day"):t>=l?g(e,t,l,"hour"):t>=C?g(e,t,C,"minute"):t>=u?g(e,t,u,"second"):e+" ms"}(e):function(e){var t=Math.abs(e);return t>=d?Math.round(e/d)+"d":t>=l?Math.round(e/l)+"h":t>=C?Math.round(e/C)+"m":t>=u?Math.round(e/u)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function g(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}var p,m=(function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(o=r));}),t.splice(o,0,n);},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug");}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug");}catch(e){}return !e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return !("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return ()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=function(e){function t(e){let r,o=null;function s(...e){if(!s.enabled)return;const n=s,o=Number(new Date);n.diff=o-(r||o),n.prev=r,n.curr=o,r=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,o)=>{if("%%"===r)return "%";a++;const s=t.formatters[o];return "function"==typeof s&&(r=s.call(n,e[a]),e.splice(a,1),a--),r}),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e);}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null===o?t.enabled(e):o,set:e=>{o=e;}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(r),...t.skips.map(r).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));},t.enabled=function(e){if("*"===e[e.length-1])return !0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return !1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return !0;return !1},t.humanize=f,t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");},Object.keys(e).forEach(n=>{t[n]=e[n];}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return "[UnexpectedJSONParseError]: "+e.message}};}(p={exports:{}},p.exports),p.exports)("useDomContext");function h(e,n,i){void 0===i&&(i={});var u=useRef(void 0),C=useState$1(void 0),l=C[0],d=C[1],f=useMemo$1(function(){var r;try{(r=new s$1(c$2({contextName:n,element:e,onChange:function(e){u&&(u.current=e),d(e);}},i))).start();}catch(e){m("Listener failed to start",e);}return m("Listener initialized",r),{listener:r}},[n,u]).listener;return useEffect$1(function(){return m("Listener starting (or restarting)",f),f.start(),function(){m("Listener stopping (or restopping)",f),f.stop();}},[f,e.isConnected]),l||(null==u?void 0:u.current)}function y(e,t,r){var o=useMemo$1(function(){var o=new c$1({contextName:t,element:e,initialState:r});return o.start(),m("Provider initialized",o),o},[t,e]);useEffect$1(function(){return m("Provider starting (or restarting)",o),o.start(),function(){m("Provider stopping (or re-stopping)",o),o.stop();}},[o,e.isConnected]);var c=useReducer$1(function(e,t){var n;return m("New context value",t),n="function"==typeof t?t(o.context):t,o.context=n,o.context},o.context);return [c[0],c[1],o]}
|
|
784
|
-
|
|
785
778
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
786
779
|
|
|
787
780
|
/**
|
|
@@ -1534,6 +1527,7 @@ function devAssert(condition, message) {
|
|
|
1534
1527
|
* A replacement for instanceof which includes an error warning when multi-realm
|
|
1535
1528
|
* constructors are detected.
|
|
1536
1529
|
*/
|
|
1530
|
+
|
|
1537
1531
|
// See: https://expressjs.com/en/advanced/best-practice-performance.html#set-node_env-to-production
|
|
1538
1532
|
// See: https://webpack.js.org/guides/production/
|
|
1539
1533
|
const instanceOf = // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')
|
|
@@ -4562,8 +4556,6 @@ function hasMultilineItems(maybeArray) {
|
|
|
4562
4556
|
return maybeArray != null && maybeArray.some(isMultiline);
|
|
4563
4557
|
}
|
|
4564
4558
|
|
|
4565
|
-
function e$1(e){this.message=e;}e$1.prototype=new Error,e$1.prototype.name="InvalidCharacterError";var r$1="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(r){var t=String(r).replace(/=+$/,"");if(t.length%4==1)throw new e$1("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,o,a=0,i=0,c="";o=t.charAt(i++);~o&&(n=a%4?64*n+o:o,a++%4)?c+=String.fromCharCode(255&n>>(-2*a&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return c};function t$3(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw "Illegal base64url string!"}try{return function(e){return decodeURIComponent(r$1(e).replace(/(.)/g,(function(e,r){var t=r.charCodeAt(0).toString(16).toUpperCase();return t.length<2&&(t="0"+t),"%"+t})))}(t)}catch(e){return r$1(t)}}function n$3(e){this.message=e;}function o$1(e,r){if("string"!=typeof e)throw new n$3("Invalid token specified");var o=!0===(r=r||{}).header?0:1;try{return JSON.parse(t$3(e.split(".")[o]))}catch(e){throw new n$3("Invalid token specified: "+e.message)}}n$3.prototype=new Error,n$3.prototype.name="InvalidTokenError";
|
|
4566
|
-
|
|
4567
4559
|
//
|
|
4568
4560
|
// Main
|
|
4569
4561
|
//
|
|
@@ -4710,6 +4702,11 @@ var strategies = {
|
|
|
4710
4702
|
};
|
|
4711
4703
|
src.strategies = strategies;
|
|
4712
4704
|
|
|
4705
|
+
const memoize$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.assign(/*#__PURE__*/Object.create(null), src, {
|
|
4706
|
+
'default': src,
|
|
4707
|
+
strategies: strategies
|
|
4708
|
+
}));
|
|
4709
|
+
|
|
4713
4710
|
var utils = createCommonjsModule(function (module, exports) {
|
|
4714
4711
|
var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
4715
4712
|
__assign = Object.assign || function(t) {
|
|
@@ -4959,14 +4956,15 @@ exports.default = combinedQuery;
|
|
|
4959
4956
|
const k = /*@__PURE__*/getDefaultExportFromCjs(dist);
|
|
4960
4957
|
|
|
4961
4958
|
var browserPonyfill = createCommonjsModule(function (module, exports) {
|
|
4962
|
-
var
|
|
4959
|
+
var global = typeof self !== 'undefined' ? self : commonjsGlobal;
|
|
4960
|
+
var __self__ = (function () {
|
|
4963
4961
|
function F() {
|
|
4964
4962
|
this.fetch = false;
|
|
4965
|
-
this.DOMException =
|
|
4963
|
+
this.DOMException = global.DOMException;
|
|
4966
4964
|
}
|
|
4967
|
-
F.prototype =
|
|
4965
|
+
F.prototype = global;
|
|
4968
4966
|
return new F();
|
|
4969
|
-
})(
|
|
4967
|
+
})();
|
|
4970
4968
|
(function(self) {
|
|
4971
4969
|
|
|
4972
4970
|
var irrelevant = (function (exports) {
|
|
@@ -5493,17 +5491,24 @@ var irrelevant = (function (exports) {
|
|
|
5493
5491
|
exports.Response = Response;
|
|
5494
5492
|
exports.fetch = fetch;
|
|
5495
5493
|
|
|
5494
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5495
|
+
|
|
5496
5496
|
return exports;
|
|
5497
5497
|
|
|
5498
|
-
}({})
|
|
5498
|
+
})({});
|
|
5499
5499
|
})(__self__);
|
|
5500
|
+
__self__.fetch.ponyfill = true;
|
|
5501
|
+
// Remove "polyfill" property added by whatwg-fetch
|
|
5500
5502
|
delete __self__.fetch.polyfill;
|
|
5501
|
-
|
|
5502
|
-
|
|
5503
|
-
|
|
5504
|
-
exports
|
|
5505
|
-
exports.
|
|
5506
|
-
exports.
|
|
5503
|
+
// Choose between native implementation (global) or custom implementation (__self__)
|
|
5504
|
+
// var ctx = global.fetch ? global : __self__;
|
|
5505
|
+
var ctx = __self__; // this line disable service worker support temporarily
|
|
5506
|
+
exports = ctx.fetch; // To enable: import fetch from 'cross-fetch'
|
|
5507
|
+
exports.default = ctx.fetch; // For TypeScript consumers without esModuleInterop.
|
|
5508
|
+
exports.fetch = ctx.fetch; // To enable: import {fetch} from 'cross-fetch'
|
|
5509
|
+
exports.Headers = ctx.Headers;
|
|
5510
|
+
exports.Request = ctx.Request;
|
|
5511
|
+
exports.Response = ctx.Response;
|
|
5507
5512
|
module.exports = exports;
|
|
5508
5513
|
});
|
|
5509
5514
|
|
|
@@ -8230,1178 +8235,6 @@ function dispatchBufferClose(arg) {
|
|
|
8230
8235
|
subscriber.closeContext(context);
|
|
8231
8236
|
}
|
|
8232
8237
|
|
|
8233
|
-
var _a$1 = Object.prototype, toString$1 = _a$1.toString, hasOwnProperty$1 = _a$1.hasOwnProperty;
|
|
8234
|
-
var fnToStr$1 = Function.prototype.toString;
|
|
8235
|
-
var previousComparisons$1 = new Map();
|
|
8236
|
-
/**
|
|
8237
|
-
* Performs a deep equality check on two JavaScript values, tolerating cycles.
|
|
8238
|
-
*/
|
|
8239
|
-
function equal$1(a, b) {
|
|
8240
|
-
try {
|
|
8241
|
-
return check$1(a, b);
|
|
8242
|
-
}
|
|
8243
|
-
finally {
|
|
8244
|
-
previousComparisons$1.clear();
|
|
8245
|
-
}
|
|
8246
|
-
}
|
|
8247
|
-
function check$1(a, b) {
|
|
8248
|
-
// If the two values are strictly equal, our job is easy.
|
|
8249
|
-
if (a === b) {
|
|
8250
|
-
return true;
|
|
8251
|
-
}
|
|
8252
|
-
// Object.prototype.toString returns a representation of the runtime type of
|
|
8253
|
-
// the given value that is considerably more precise than typeof.
|
|
8254
|
-
var aTag = toString$1.call(a);
|
|
8255
|
-
var bTag = toString$1.call(b);
|
|
8256
|
-
// If the runtime types of a and b are different, they could maybe be equal
|
|
8257
|
-
// under some interpretation of equality, but for simplicity and performance
|
|
8258
|
-
// we just return false instead.
|
|
8259
|
-
if (aTag !== bTag) {
|
|
8260
|
-
return false;
|
|
8261
|
-
}
|
|
8262
|
-
switch (aTag) {
|
|
8263
|
-
case '[object Array]':
|
|
8264
|
-
// Arrays are a lot like other objects, but we can cheaply compare their
|
|
8265
|
-
// lengths as a short-cut before comparing their elements.
|
|
8266
|
-
if (a.length !== b.length)
|
|
8267
|
-
return false;
|
|
8268
|
-
// Fall through to object case...
|
|
8269
|
-
case '[object Object]': {
|
|
8270
|
-
if (previouslyCompared$1(a, b))
|
|
8271
|
-
return true;
|
|
8272
|
-
var aKeys = definedKeys$1(a);
|
|
8273
|
-
var bKeys = definedKeys$1(b);
|
|
8274
|
-
// If `a` and `b` have a different number of enumerable keys, they
|
|
8275
|
-
// must be different.
|
|
8276
|
-
var keyCount = aKeys.length;
|
|
8277
|
-
if (keyCount !== bKeys.length)
|
|
8278
|
-
return false;
|
|
8279
|
-
// Now make sure they have the same keys.
|
|
8280
|
-
for (var k = 0; k < keyCount; ++k) {
|
|
8281
|
-
if (!hasOwnProperty$1.call(b, aKeys[k])) {
|
|
8282
|
-
return false;
|
|
8283
|
-
}
|
|
8284
|
-
}
|
|
8285
|
-
// Finally, check deep equality of all child properties.
|
|
8286
|
-
for (var k = 0; k < keyCount; ++k) {
|
|
8287
|
-
var key = aKeys[k];
|
|
8288
|
-
if (!check$1(a[key], b[key])) {
|
|
8289
|
-
return false;
|
|
8290
|
-
}
|
|
8291
|
-
}
|
|
8292
|
-
return true;
|
|
8293
|
-
}
|
|
8294
|
-
case '[object Error]':
|
|
8295
|
-
return a.name === b.name && a.message === b.message;
|
|
8296
|
-
case '[object Number]':
|
|
8297
|
-
// Handle NaN, which is !== itself.
|
|
8298
|
-
if (a !== a)
|
|
8299
|
-
return b !== b;
|
|
8300
|
-
// Fall through to shared +a === +b case...
|
|
8301
|
-
case '[object Boolean]':
|
|
8302
|
-
case '[object Date]':
|
|
8303
|
-
return +a === +b;
|
|
8304
|
-
case '[object RegExp]':
|
|
8305
|
-
case '[object String]':
|
|
8306
|
-
return a == "" + b;
|
|
8307
|
-
case '[object Map]':
|
|
8308
|
-
case '[object Set]': {
|
|
8309
|
-
if (a.size !== b.size)
|
|
8310
|
-
return false;
|
|
8311
|
-
if (previouslyCompared$1(a, b))
|
|
8312
|
-
return true;
|
|
8313
|
-
var aIterator = a.entries();
|
|
8314
|
-
var isMap = aTag === '[object Map]';
|
|
8315
|
-
while (true) {
|
|
8316
|
-
var info = aIterator.next();
|
|
8317
|
-
if (info.done)
|
|
8318
|
-
break;
|
|
8319
|
-
// If a instanceof Set, aValue === aKey.
|
|
8320
|
-
var _a = info.value, aKey = _a[0], aValue = _a[1];
|
|
8321
|
-
// So this works the same way for both Set and Map.
|
|
8322
|
-
if (!b.has(aKey)) {
|
|
8323
|
-
return false;
|
|
8324
|
-
}
|
|
8325
|
-
// However, we care about deep equality of values only when dealing
|
|
8326
|
-
// with Map structures.
|
|
8327
|
-
if (isMap && !check$1(aValue, b.get(aKey))) {
|
|
8328
|
-
return false;
|
|
8329
|
-
}
|
|
8330
|
-
}
|
|
8331
|
-
return true;
|
|
8332
|
-
}
|
|
8333
|
-
case '[object Uint16Array]':
|
|
8334
|
-
case '[object Uint8Array]': // Buffer, in Node.js.
|
|
8335
|
-
case '[object Uint32Array]':
|
|
8336
|
-
case '[object Int32Array]':
|
|
8337
|
-
case '[object Int8Array]':
|
|
8338
|
-
case '[object Int16Array]':
|
|
8339
|
-
case '[object ArrayBuffer]':
|
|
8340
|
-
// DataView doesn't need these conversions, but the equality check is
|
|
8341
|
-
// otherwise the same.
|
|
8342
|
-
a = new Uint8Array(a);
|
|
8343
|
-
b = new Uint8Array(b);
|
|
8344
|
-
// Fall through...
|
|
8345
|
-
case '[object DataView]': {
|
|
8346
|
-
var len = a.byteLength;
|
|
8347
|
-
if (len === b.byteLength) {
|
|
8348
|
-
while (len-- && a[len] === b[len]) {
|
|
8349
|
-
// Keep looping as long as the bytes are equal.
|
|
8350
|
-
}
|
|
8351
|
-
}
|
|
8352
|
-
return len === -1;
|
|
8353
|
-
}
|
|
8354
|
-
case '[object AsyncFunction]':
|
|
8355
|
-
case '[object GeneratorFunction]':
|
|
8356
|
-
case '[object AsyncGeneratorFunction]':
|
|
8357
|
-
case '[object Function]': {
|
|
8358
|
-
var aCode = fnToStr$1.call(a);
|
|
8359
|
-
if (aCode !== fnToStr$1.call(b)) {
|
|
8360
|
-
return false;
|
|
8361
|
-
}
|
|
8362
|
-
// We consider non-native functions equal if they have the same code
|
|
8363
|
-
// (native functions require === because their code is censored).
|
|
8364
|
-
// Note that this behavior is not entirely sound, since !== function
|
|
8365
|
-
// objects with the same code can behave differently depending on
|
|
8366
|
-
// their closure scope. However, any function can behave differently
|
|
8367
|
-
// depending on the values of its input arguments (including this)
|
|
8368
|
-
// and its calling context (including its closure scope), even
|
|
8369
|
-
// though the function object is === to itself; and it is entirely
|
|
8370
|
-
// possible for functions that are not === to behave exactly the
|
|
8371
|
-
// same under all conceivable circumstances. Because none of these
|
|
8372
|
-
// factors are statically decidable in JavaScript, JS function
|
|
8373
|
-
// equality is not well-defined. This ambiguity allows us to
|
|
8374
|
-
// consider the best possible heuristic among various imperfect
|
|
8375
|
-
// options, and equating non-native functions that have the same
|
|
8376
|
-
// code has enormous practical benefits, such as when comparing
|
|
8377
|
-
// functions that are repeatedly passed as fresh function
|
|
8378
|
-
// expressions within objects that are otherwise deeply equal. Since
|
|
8379
|
-
// any function created from the same syntactic expression (in the
|
|
8380
|
-
// same code location) will always stringify to the same code
|
|
8381
|
-
// according to fnToStr.call, we can reasonably expect these
|
|
8382
|
-
// repeatedly passed function expressions to have the same code, and
|
|
8383
|
-
// thus behave "the same" (with all the caveats mentioned above),
|
|
8384
|
-
// even though the runtime function objects are !== to one another.
|
|
8385
|
-
return !endsWith$1(aCode, nativeCodeSuffix$1);
|
|
8386
|
-
}
|
|
8387
|
-
}
|
|
8388
|
-
// Otherwise the values are not equal.
|
|
8389
|
-
return false;
|
|
8390
|
-
}
|
|
8391
|
-
function definedKeys$1(obj) {
|
|
8392
|
-
// Remember that the second argument to Array.prototype.filter will be
|
|
8393
|
-
// used as `this` within the callback function.
|
|
8394
|
-
return Object.keys(obj).filter(isDefinedKey$1, obj);
|
|
8395
|
-
}
|
|
8396
|
-
function isDefinedKey$1(key) {
|
|
8397
|
-
return this[key] !== void 0;
|
|
8398
|
-
}
|
|
8399
|
-
var nativeCodeSuffix$1 = "{ [native code] }";
|
|
8400
|
-
function endsWith$1(full, suffix) {
|
|
8401
|
-
var fromIndex = full.length - suffix.length;
|
|
8402
|
-
return fromIndex >= 0 &&
|
|
8403
|
-
full.indexOf(suffix, fromIndex) === fromIndex;
|
|
8404
|
-
}
|
|
8405
|
-
function previouslyCompared$1(a, b) {
|
|
8406
|
-
// Though cyclic references can make an object graph appear infinite from the
|
|
8407
|
-
// perspective of a depth-first traversal, the graph still contains a finite
|
|
8408
|
-
// number of distinct object references. We use the previousComparisons cache
|
|
8409
|
-
// to avoid comparing the same pair of object references more than once, which
|
|
8410
|
-
// guarantees termination (even if we end up comparing every object in one
|
|
8411
|
-
// graph to every object in the other graph, which is extremely unlikely),
|
|
8412
|
-
// while still allowing weird isomorphic structures (like rings with different
|
|
8413
|
-
// lengths) a chance to pass the equality test.
|
|
8414
|
-
var bSet = previousComparisons$1.get(a);
|
|
8415
|
-
if (bSet) {
|
|
8416
|
-
// Return true here because we can be sure false will be returned somewhere
|
|
8417
|
-
// else if the objects are not equivalent.
|
|
8418
|
-
if (bSet.has(b))
|
|
8419
|
-
return true;
|
|
8420
|
-
}
|
|
8421
|
-
else {
|
|
8422
|
-
previousComparisons$1.set(a, bSet = new Set);
|
|
8423
|
-
}
|
|
8424
|
-
bSet.add(b);
|
|
8425
|
-
return false;
|
|
8426
|
-
}
|
|
8427
|
-
|
|
8428
|
-
/**
|
|
8429
|
-
* @license
|
|
8430
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
8431
|
-
* This code may only be used under the BSD style license found at
|
|
8432
|
-
* http://polymer.github.io/LICENSE.txt
|
|
8433
|
-
* The complete set of authors may be found at
|
|
8434
|
-
* http://polymer.github.io/AUTHORS.txt
|
|
8435
|
-
* The complete set of contributors may be found at
|
|
8436
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
8437
|
-
* Code distributed by Google as part of the polymer project is also
|
|
8438
|
-
* subject to an additional IP rights grant found at
|
|
8439
|
-
* http://polymer.github.io/PATENTS.txt
|
|
8440
|
-
*/
|
|
8441
|
-
/**
|
|
8442
|
-
* An expression marker with embedded unique key to avoid collision with
|
|
8443
|
-
* possible text in templates.
|
|
8444
|
-
*/
|
|
8445
|
-
const marker = `{{lit-${String(Math.random()).slice(2)}}}`;
|
|
8446
|
-
|
|
8447
|
-
/**
|
|
8448
|
-
* @license
|
|
8449
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
8450
|
-
* This code may only be used under the BSD style license found at
|
|
8451
|
-
* http://polymer.github.io/LICENSE.txt
|
|
8452
|
-
* The complete set of authors may be found at
|
|
8453
|
-
* http://polymer.github.io/AUTHORS.txt
|
|
8454
|
-
* The complete set of contributors may be found at
|
|
8455
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
8456
|
-
* Code distributed by Google as part of the polymer project is also
|
|
8457
|
-
* subject to an additional IP rights grant found at
|
|
8458
|
-
* http://polymer.github.io/PATENTS.txt
|
|
8459
|
-
*/
|
|
8460
|
-
/**
|
|
8461
|
-
* Our TrustedTypePolicy for HTML which is declared using the html template
|
|
8462
|
-
* tag function.
|
|
8463
|
-
*
|
|
8464
|
-
* That HTML is a developer-authored constant, and is parsed with innerHTML
|
|
8465
|
-
* before any untrusted expressions have been mixed in. Therefor it is
|
|
8466
|
-
* considered safe by construction.
|
|
8467
|
-
*/
|
|
8468
|
-
const policy = window.trustedTypes &&
|
|
8469
|
-
trustedTypes.createPolicy('lit-html', { createHTML: (s) => s });
|
|
8470
|
-
|
|
8471
|
-
/**
|
|
8472
|
-
* @license
|
|
8473
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
8474
|
-
* This code may only be used under the BSD style license found at
|
|
8475
|
-
* http://polymer.github.io/LICENSE.txt
|
|
8476
|
-
* The complete set of authors may be found at
|
|
8477
|
-
* http://polymer.github.io/AUTHORS.txt
|
|
8478
|
-
* The complete set of contributors may be found at
|
|
8479
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
8480
|
-
* Code distributed by Google as part of the polymer project is also
|
|
8481
|
-
* subject to an additional IP rights grant found at
|
|
8482
|
-
* http://polymer.github.io/PATENTS.txt
|
|
8483
|
-
*/
|
|
8484
|
-
// Wrap into an IIFE because MS Edge <= v41 does not support having try/catch
|
|
8485
|
-
// blocks right into the body of a module
|
|
8486
|
-
(() => {
|
|
8487
|
-
try {
|
|
8488
|
-
const options = {
|
|
8489
|
-
get capture() {
|
|
8490
|
-
return false;
|
|
8491
|
-
}
|
|
8492
|
-
};
|
|
8493
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8494
|
-
window.addEventListener('test', options, options);
|
|
8495
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8496
|
-
window.removeEventListener('test', options, options);
|
|
8497
|
-
}
|
|
8498
|
-
catch (_e) {
|
|
8499
|
-
// event options not supported
|
|
8500
|
-
}
|
|
8501
|
-
})();
|
|
8502
|
-
|
|
8503
|
-
/**
|
|
8504
|
-
* @license
|
|
8505
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
8506
|
-
* This code may only be used under the BSD style license found at
|
|
8507
|
-
* http://polymer.github.io/LICENSE.txt
|
|
8508
|
-
* The complete set of authors may be found at
|
|
8509
|
-
* http://polymer.github.io/AUTHORS.txt
|
|
8510
|
-
* The complete set of contributors may be found at
|
|
8511
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
8512
|
-
* Code distributed by Google as part of the polymer project is also
|
|
8513
|
-
* subject to an additional IP rights grant found at
|
|
8514
|
-
* http://polymer.github.io/PATENTS.txt
|
|
8515
|
-
*/
|
|
8516
|
-
// IMPORTANT: do not change the property name or the assignment expression.
|
|
8517
|
-
// This line will be used in regexes to search for lit-html usage.
|
|
8518
|
-
// TODO(justinfagnani): inject version number at build time
|
|
8519
|
-
if (typeof window !== 'undefined') {
|
|
8520
|
-
(window['litHtmlVersions'] || (window['litHtmlVersions'] = [])).push('1.4.1');
|
|
8521
|
-
}
|
|
8522
|
-
|
|
8523
|
-
let current;
|
|
8524
|
-
let currentId = 0;
|
|
8525
|
-
function notify() {
|
|
8526
|
-
return currentId++;
|
|
8527
|
-
}
|
|
8528
|
-
|
|
8529
|
-
const hookSymbol = Symbol('haunted.hook');
|
|
8530
|
-
const effectsSymbol = Symbol('haunted.effects');
|
|
8531
|
-
const layoutEffectsSymbol = Symbol('haunted.layoutEffects');
|
|
8532
|
-
const contextEvent = 'haunted.context';
|
|
8533
|
-
|
|
8534
|
-
const defer = Promise.resolve().then.bind(Promise.resolve());
|
|
8535
|
-
|
|
8536
|
-
class Hook {
|
|
8537
|
-
constructor(id, state) {
|
|
8538
|
-
this.id = id;
|
|
8539
|
-
this.state = state;
|
|
8540
|
-
}
|
|
8541
|
-
}
|
|
8542
|
-
function use(Hook, ...args) {
|
|
8543
|
-
let id = notify();
|
|
8544
|
-
let hooks = current[hookSymbol];
|
|
8545
|
-
let hook = hooks.get(id);
|
|
8546
|
-
if (!hook) {
|
|
8547
|
-
hook = new Hook(id, current, ...args);
|
|
8548
|
-
hooks.set(id, hook);
|
|
8549
|
-
}
|
|
8550
|
-
return hook.update(...args);
|
|
8551
|
-
}
|
|
8552
|
-
function hook(Hook) {
|
|
8553
|
-
return use.bind(null, Hook);
|
|
8554
|
-
}
|
|
8555
|
-
|
|
8556
|
-
function createEffect(setEffects) {
|
|
8557
|
-
return hook(class extends Hook {
|
|
8558
|
-
constructor(id, state, ignored1, ignored2) {
|
|
8559
|
-
super(id, state);
|
|
8560
|
-
setEffects(state, this);
|
|
8561
|
-
}
|
|
8562
|
-
update(callback, values) {
|
|
8563
|
-
this.callback = callback;
|
|
8564
|
-
this.values = values;
|
|
8565
|
-
}
|
|
8566
|
-
call() {
|
|
8567
|
-
if (!this.values || this.hasChanged()) {
|
|
8568
|
-
this.run();
|
|
8569
|
-
}
|
|
8570
|
-
this.lastValues = this.values;
|
|
8571
|
-
}
|
|
8572
|
-
run() {
|
|
8573
|
-
this.teardown();
|
|
8574
|
-
this._teardown = this.callback.call(this.state);
|
|
8575
|
-
}
|
|
8576
|
-
teardown() {
|
|
8577
|
-
if (typeof this._teardown === 'function') {
|
|
8578
|
-
this._teardown();
|
|
8579
|
-
}
|
|
8580
|
-
}
|
|
8581
|
-
hasChanged() {
|
|
8582
|
-
return !this.lastValues || this.values.some((value, i) => this.lastValues[i] !== value);
|
|
8583
|
-
}
|
|
8584
|
-
});
|
|
8585
|
-
}
|
|
8586
|
-
|
|
8587
|
-
function setEffects(state, cb) {
|
|
8588
|
-
state[effectsSymbol].push(cb);
|
|
8589
|
-
}
|
|
8590
|
-
const useEffect = createEffect(setEffects);
|
|
8591
|
-
|
|
8592
|
-
const useContext = hook(class extends Hook {
|
|
8593
|
-
constructor(id, state, _) {
|
|
8594
|
-
super(id, state);
|
|
8595
|
-
this._updater = this._updater.bind(this);
|
|
8596
|
-
this._ranEffect = false;
|
|
8597
|
-
this._unsubscribe = null;
|
|
8598
|
-
setEffects(state, this);
|
|
8599
|
-
}
|
|
8600
|
-
update(Context) {
|
|
8601
|
-
if (this.state.virtual) {
|
|
8602
|
-
throw new Error('can\'t be used with virtual components');
|
|
8603
|
-
}
|
|
8604
|
-
if (this.Context !== Context) {
|
|
8605
|
-
this._subscribe(Context);
|
|
8606
|
-
this.Context = Context;
|
|
8607
|
-
}
|
|
8608
|
-
return this.value;
|
|
8609
|
-
}
|
|
8610
|
-
call() {
|
|
8611
|
-
if (!this._ranEffect) {
|
|
8612
|
-
this._ranEffect = true;
|
|
8613
|
-
if (this._unsubscribe)
|
|
8614
|
-
this._unsubscribe();
|
|
8615
|
-
this._subscribe(this.Context);
|
|
8616
|
-
this.state.update();
|
|
8617
|
-
}
|
|
8618
|
-
}
|
|
8619
|
-
_updater(value) {
|
|
8620
|
-
this.value = value;
|
|
8621
|
-
this.state.update();
|
|
8622
|
-
}
|
|
8623
|
-
_subscribe(Context) {
|
|
8624
|
-
const detail = { Context, callback: this._updater };
|
|
8625
|
-
this.state.host.dispatchEvent(new CustomEvent(contextEvent, {
|
|
8626
|
-
detail,
|
|
8627
|
-
bubbles: true,
|
|
8628
|
-
cancelable: true,
|
|
8629
|
-
composed: true,
|
|
8630
|
-
}));
|
|
8631
|
-
const { unsubscribe = null, value } = detail;
|
|
8632
|
-
this.value = unsubscribe ? value : Context.defaultValue;
|
|
8633
|
-
this._unsubscribe = unsubscribe;
|
|
8634
|
-
}
|
|
8635
|
-
teardown() {
|
|
8636
|
-
if (this._unsubscribe) {
|
|
8637
|
-
this._unsubscribe();
|
|
8638
|
-
}
|
|
8639
|
-
}
|
|
8640
|
-
});
|
|
8641
|
-
|
|
8642
|
-
const useMemo = hook(class extends Hook {
|
|
8643
|
-
constructor(id, state, fn, values) {
|
|
8644
|
-
super(id, state);
|
|
8645
|
-
this.value = fn();
|
|
8646
|
-
this.values = values;
|
|
8647
|
-
}
|
|
8648
|
-
update(fn, values) {
|
|
8649
|
-
if (this.hasChanged(values)) {
|
|
8650
|
-
this.values = values;
|
|
8651
|
-
this.value = fn();
|
|
8652
|
-
}
|
|
8653
|
-
return this.value;
|
|
8654
|
-
}
|
|
8655
|
-
hasChanged(values = []) {
|
|
8656
|
-
return values.some((value, i) => this.values[i] !== value);
|
|
8657
|
-
}
|
|
8658
|
-
});
|
|
8659
|
-
|
|
8660
|
-
function setLayoutEffects(state, cb) {
|
|
8661
|
-
state[layoutEffectsSymbol].push(cb);
|
|
8662
|
-
}
|
|
8663
|
-
const useLayoutEffect = createEffect(setLayoutEffects);
|
|
8664
|
-
|
|
8665
|
-
const useState = hook(class extends Hook {
|
|
8666
|
-
constructor(id, state, initialValue) {
|
|
8667
|
-
super(id, state);
|
|
8668
|
-
this.updater = this.updater.bind(this);
|
|
8669
|
-
if (typeof initialValue === 'function') {
|
|
8670
|
-
initialValue = initialValue();
|
|
8671
|
-
}
|
|
8672
|
-
this.makeArgs(initialValue);
|
|
8673
|
-
}
|
|
8674
|
-
update() {
|
|
8675
|
-
return this.args;
|
|
8676
|
-
}
|
|
8677
|
-
updater(value) {
|
|
8678
|
-
if (typeof value === 'function') {
|
|
8679
|
-
const updaterFn = value;
|
|
8680
|
-
const [previousValue] = this.args;
|
|
8681
|
-
value = updaterFn(previousValue);
|
|
8682
|
-
}
|
|
8683
|
-
this.makeArgs(value);
|
|
8684
|
-
this.state.update();
|
|
8685
|
-
}
|
|
8686
|
-
makeArgs(value) {
|
|
8687
|
-
this.args = Object.freeze([value, this.updater]);
|
|
8688
|
-
}
|
|
8689
|
-
});
|
|
8690
|
-
|
|
8691
|
-
const useReducer = hook(class extends Hook {
|
|
8692
|
-
constructor(id, state, _, initialState, init) {
|
|
8693
|
-
super(id, state);
|
|
8694
|
-
this.dispatch = this.dispatch.bind(this);
|
|
8695
|
-
this.currentState = init !== undefined ? init(initialState) : initialState;
|
|
8696
|
-
}
|
|
8697
|
-
update(reducer) {
|
|
8698
|
-
this.reducer = reducer;
|
|
8699
|
-
return [this.currentState, this.dispatch];
|
|
8700
|
-
}
|
|
8701
|
-
dispatch(action) {
|
|
8702
|
-
this.currentState = this.reducer(this.currentState, action);
|
|
8703
|
-
this.state.update();
|
|
8704
|
-
}
|
|
8705
|
-
});
|
|
8706
|
-
|
|
8707
|
-
/**
|
|
8708
|
-
* Helpers.
|
|
8709
|
-
*/
|
|
8710
|
-
|
|
8711
|
-
var s$2 = 1000;
|
|
8712
|
-
var m$1 = s$2 * 60;
|
|
8713
|
-
var h$1 = m$1 * 60;
|
|
8714
|
-
var d$1 = h$1 * 24;
|
|
8715
|
-
var w = d$1 * 7;
|
|
8716
|
-
var y$1 = d$1 * 365.25;
|
|
8717
|
-
|
|
8718
|
-
/**
|
|
8719
|
-
* Parse or format the given `val`.
|
|
8720
|
-
*
|
|
8721
|
-
* Options:
|
|
8722
|
-
*
|
|
8723
|
-
* - `long` verbose formatting [false]
|
|
8724
|
-
*
|
|
8725
|
-
* @param {String|Number} val
|
|
8726
|
-
* @param {Object} [options]
|
|
8727
|
-
* @throws {Error} throw an error if val is not a non-empty string or a number
|
|
8728
|
-
* @return {String|Number}
|
|
8729
|
-
* @api public
|
|
8730
|
-
*/
|
|
8731
|
-
|
|
8732
|
-
var ms = function(val, options) {
|
|
8733
|
-
options = options || {};
|
|
8734
|
-
var type = typeof val;
|
|
8735
|
-
if (type === 'string' && val.length > 0) {
|
|
8736
|
-
return parse$1(val);
|
|
8737
|
-
} else if (type === 'number' && isFinite(val)) {
|
|
8738
|
-
return options.long ? fmtLong(val) : fmtShort(val);
|
|
8739
|
-
}
|
|
8740
|
-
throw new Error(
|
|
8741
|
-
'val is not a non-empty string or a valid number. val=' +
|
|
8742
|
-
JSON.stringify(val)
|
|
8743
|
-
);
|
|
8744
|
-
};
|
|
8745
|
-
|
|
8746
|
-
/**
|
|
8747
|
-
* Parse the given `str` and return milliseconds.
|
|
8748
|
-
*
|
|
8749
|
-
* @param {String} str
|
|
8750
|
-
* @return {Number}
|
|
8751
|
-
* @api private
|
|
8752
|
-
*/
|
|
8753
|
-
|
|
8754
|
-
function parse$1(str) {
|
|
8755
|
-
str = String(str);
|
|
8756
|
-
if (str.length > 100) {
|
|
8757
|
-
return;
|
|
8758
|
-
}
|
|
8759
|
-
var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
|
8760
|
-
str
|
|
8761
|
-
);
|
|
8762
|
-
if (!match) {
|
|
8763
|
-
return;
|
|
8764
|
-
}
|
|
8765
|
-
var n = parseFloat(match[1]);
|
|
8766
|
-
var type = (match[2] || 'ms').toLowerCase();
|
|
8767
|
-
switch (type) {
|
|
8768
|
-
case 'years':
|
|
8769
|
-
case 'year':
|
|
8770
|
-
case 'yrs':
|
|
8771
|
-
case 'yr':
|
|
8772
|
-
case 'y':
|
|
8773
|
-
return n * y$1;
|
|
8774
|
-
case 'weeks':
|
|
8775
|
-
case 'week':
|
|
8776
|
-
case 'w':
|
|
8777
|
-
return n * w;
|
|
8778
|
-
case 'days':
|
|
8779
|
-
case 'day':
|
|
8780
|
-
case 'd':
|
|
8781
|
-
return n * d$1;
|
|
8782
|
-
case 'hours':
|
|
8783
|
-
case 'hour':
|
|
8784
|
-
case 'hrs':
|
|
8785
|
-
case 'hr':
|
|
8786
|
-
case 'h':
|
|
8787
|
-
return n * h$1;
|
|
8788
|
-
case 'minutes':
|
|
8789
|
-
case 'minute':
|
|
8790
|
-
case 'mins':
|
|
8791
|
-
case 'min':
|
|
8792
|
-
case 'm':
|
|
8793
|
-
return n * m$1;
|
|
8794
|
-
case 'seconds':
|
|
8795
|
-
case 'second':
|
|
8796
|
-
case 'secs':
|
|
8797
|
-
case 'sec':
|
|
8798
|
-
case 's':
|
|
8799
|
-
return n * s$2;
|
|
8800
|
-
case 'milliseconds':
|
|
8801
|
-
case 'millisecond':
|
|
8802
|
-
case 'msecs':
|
|
8803
|
-
case 'msec':
|
|
8804
|
-
case 'ms':
|
|
8805
|
-
return n;
|
|
8806
|
-
default:
|
|
8807
|
-
return undefined;
|
|
8808
|
-
}
|
|
8809
|
-
}
|
|
8810
|
-
|
|
8811
|
-
/**
|
|
8812
|
-
* Short format for `ms`.
|
|
8813
|
-
*
|
|
8814
|
-
* @param {Number} ms
|
|
8815
|
-
* @return {String}
|
|
8816
|
-
* @api private
|
|
8817
|
-
*/
|
|
8818
|
-
|
|
8819
|
-
function fmtShort(ms) {
|
|
8820
|
-
var msAbs = Math.abs(ms);
|
|
8821
|
-
if (msAbs >= d$1) {
|
|
8822
|
-
return Math.round(ms / d$1) + 'd';
|
|
8823
|
-
}
|
|
8824
|
-
if (msAbs >= h$1) {
|
|
8825
|
-
return Math.round(ms / h$1) + 'h';
|
|
8826
|
-
}
|
|
8827
|
-
if (msAbs >= m$1) {
|
|
8828
|
-
return Math.round(ms / m$1) + 'm';
|
|
8829
|
-
}
|
|
8830
|
-
if (msAbs >= s$2) {
|
|
8831
|
-
return Math.round(ms / s$2) + 's';
|
|
8832
|
-
}
|
|
8833
|
-
return ms + 'ms';
|
|
8834
|
-
}
|
|
8835
|
-
|
|
8836
|
-
/**
|
|
8837
|
-
* Long format for `ms`.
|
|
8838
|
-
*
|
|
8839
|
-
* @param {Number} ms
|
|
8840
|
-
* @return {String}
|
|
8841
|
-
* @api private
|
|
8842
|
-
*/
|
|
8843
|
-
|
|
8844
|
-
function fmtLong(ms) {
|
|
8845
|
-
var msAbs = Math.abs(ms);
|
|
8846
|
-
if (msAbs >= d$1) {
|
|
8847
|
-
return plural(ms, msAbs, d$1, 'day');
|
|
8848
|
-
}
|
|
8849
|
-
if (msAbs >= h$1) {
|
|
8850
|
-
return plural(ms, msAbs, h$1, 'hour');
|
|
8851
|
-
}
|
|
8852
|
-
if (msAbs >= m$1) {
|
|
8853
|
-
return plural(ms, msAbs, m$1, 'minute');
|
|
8854
|
-
}
|
|
8855
|
-
if (msAbs >= s$2) {
|
|
8856
|
-
return plural(ms, msAbs, s$2, 'second');
|
|
8857
|
-
}
|
|
8858
|
-
return ms + ' ms';
|
|
8859
|
-
}
|
|
8860
|
-
|
|
8861
|
-
/**
|
|
8862
|
-
* Pluralization helper.
|
|
8863
|
-
*/
|
|
8864
|
-
|
|
8865
|
-
function plural(ms, msAbs, n, name) {
|
|
8866
|
-
var isPlural = msAbs >= n * 1.5;
|
|
8867
|
-
return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');
|
|
8868
|
-
}
|
|
8869
|
-
|
|
8870
|
-
/**
|
|
8871
|
-
* This is the common logic for both the Node.js and web browser
|
|
8872
|
-
* implementations of `debug()`.
|
|
8873
|
-
*/
|
|
8874
|
-
|
|
8875
|
-
function setup(env) {
|
|
8876
|
-
createDebug.debug = createDebug;
|
|
8877
|
-
createDebug.default = createDebug;
|
|
8878
|
-
createDebug.coerce = coerce;
|
|
8879
|
-
createDebug.disable = disable;
|
|
8880
|
-
createDebug.enable = enable;
|
|
8881
|
-
createDebug.enabled = enabled;
|
|
8882
|
-
createDebug.humanize = ms;
|
|
8883
|
-
createDebug.destroy = destroy;
|
|
8884
|
-
|
|
8885
|
-
Object.keys(env).forEach(key => {
|
|
8886
|
-
createDebug[key] = env[key];
|
|
8887
|
-
});
|
|
8888
|
-
|
|
8889
|
-
/**
|
|
8890
|
-
* The currently active debug mode names, and names to skip.
|
|
8891
|
-
*/
|
|
8892
|
-
|
|
8893
|
-
createDebug.names = [];
|
|
8894
|
-
createDebug.skips = [];
|
|
8895
|
-
|
|
8896
|
-
/**
|
|
8897
|
-
* Map of special "%n" handling functions, for the debug "format" argument.
|
|
8898
|
-
*
|
|
8899
|
-
* Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
|
|
8900
|
-
*/
|
|
8901
|
-
createDebug.formatters = {};
|
|
8902
|
-
|
|
8903
|
-
/**
|
|
8904
|
-
* Selects a color for a debug namespace
|
|
8905
|
-
* @param {String} namespace The namespace string for the for the debug instance to be colored
|
|
8906
|
-
* @return {Number|String} An ANSI color code for the given namespace
|
|
8907
|
-
* @api private
|
|
8908
|
-
*/
|
|
8909
|
-
function selectColor(namespace) {
|
|
8910
|
-
let hash = 0;
|
|
8911
|
-
|
|
8912
|
-
for (let i = 0; i < namespace.length; i++) {
|
|
8913
|
-
hash = ((hash << 5) - hash) + namespace.charCodeAt(i);
|
|
8914
|
-
hash |= 0; // Convert to 32bit integer
|
|
8915
|
-
}
|
|
8916
|
-
|
|
8917
|
-
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
|
8918
|
-
}
|
|
8919
|
-
createDebug.selectColor = selectColor;
|
|
8920
|
-
|
|
8921
|
-
/**
|
|
8922
|
-
* Create a debugger with the given `namespace`.
|
|
8923
|
-
*
|
|
8924
|
-
* @param {String} namespace
|
|
8925
|
-
* @return {Function}
|
|
8926
|
-
* @api public
|
|
8927
|
-
*/
|
|
8928
|
-
function createDebug(namespace) {
|
|
8929
|
-
let prevTime;
|
|
8930
|
-
let enableOverride = null;
|
|
8931
|
-
|
|
8932
|
-
function debug(...args) {
|
|
8933
|
-
// Disabled?
|
|
8934
|
-
if (!debug.enabled) {
|
|
8935
|
-
return;
|
|
8936
|
-
}
|
|
8937
|
-
|
|
8938
|
-
const self = debug;
|
|
8939
|
-
|
|
8940
|
-
// Set `diff` timestamp
|
|
8941
|
-
const curr = Number(new Date());
|
|
8942
|
-
const ms = curr - (prevTime || curr);
|
|
8943
|
-
self.diff = ms;
|
|
8944
|
-
self.prev = prevTime;
|
|
8945
|
-
self.curr = curr;
|
|
8946
|
-
prevTime = curr;
|
|
8947
|
-
|
|
8948
|
-
args[0] = createDebug.coerce(args[0]);
|
|
8949
|
-
|
|
8950
|
-
if (typeof args[0] !== 'string') {
|
|
8951
|
-
// Anything else let's inspect with %O
|
|
8952
|
-
args.unshift('%O');
|
|
8953
|
-
}
|
|
8954
|
-
|
|
8955
|
-
// Apply any `formatters` transformations
|
|
8956
|
-
let index = 0;
|
|
8957
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
|
|
8958
|
-
// If we encounter an escaped % then don't increase the array index
|
|
8959
|
-
if (match === '%%') {
|
|
8960
|
-
return '%';
|
|
8961
|
-
}
|
|
8962
|
-
index++;
|
|
8963
|
-
const formatter = createDebug.formatters[format];
|
|
8964
|
-
if (typeof formatter === 'function') {
|
|
8965
|
-
const val = args[index];
|
|
8966
|
-
match = formatter.call(self, val);
|
|
8967
|
-
|
|
8968
|
-
// Now we need to remove `args[index]` since it's inlined in the `format`
|
|
8969
|
-
args.splice(index, 1);
|
|
8970
|
-
index--;
|
|
8971
|
-
}
|
|
8972
|
-
return match;
|
|
8973
|
-
});
|
|
8974
|
-
|
|
8975
|
-
// Apply env-specific formatting (colors, etc.)
|
|
8976
|
-
createDebug.formatArgs.call(self, args);
|
|
8977
|
-
|
|
8978
|
-
const logFn = self.log || createDebug.log;
|
|
8979
|
-
logFn.apply(self, args);
|
|
8980
|
-
}
|
|
8981
|
-
|
|
8982
|
-
debug.namespace = namespace;
|
|
8983
|
-
debug.useColors = createDebug.useColors();
|
|
8984
|
-
debug.color = createDebug.selectColor(namespace);
|
|
8985
|
-
debug.extend = extend;
|
|
8986
|
-
debug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.
|
|
8987
|
-
|
|
8988
|
-
Object.defineProperty(debug, 'enabled', {
|
|
8989
|
-
enumerable: true,
|
|
8990
|
-
configurable: false,
|
|
8991
|
-
get: () => enableOverride === null ? createDebug.enabled(namespace) : enableOverride,
|
|
8992
|
-
set: v => {
|
|
8993
|
-
enableOverride = v;
|
|
8994
|
-
}
|
|
8995
|
-
});
|
|
8996
|
-
|
|
8997
|
-
// Env-specific initialization logic for debug instances
|
|
8998
|
-
if (typeof createDebug.init === 'function') {
|
|
8999
|
-
createDebug.init(debug);
|
|
9000
|
-
}
|
|
9001
|
-
|
|
9002
|
-
return debug;
|
|
9003
|
-
}
|
|
9004
|
-
|
|
9005
|
-
function extend(namespace, delimiter) {
|
|
9006
|
-
const newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);
|
|
9007
|
-
newDebug.log = this.log;
|
|
9008
|
-
return newDebug;
|
|
9009
|
-
}
|
|
9010
|
-
|
|
9011
|
-
/**
|
|
9012
|
-
* Enables a debug mode by namespaces. This can include modes
|
|
9013
|
-
* separated by a colon and wildcards.
|
|
9014
|
-
*
|
|
9015
|
-
* @param {String} namespaces
|
|
9016
|
-
* @api public
|
|
9017
|
-
*/
|
|
9018
|
-
function enable(namespaces) {
|
|
9019
|
-
createDebug.save(namespaces);
|
|
9020
|
-
|
|
9021
|
-
createDebug.names = [];
|
|
9022
|
-
createDebug.skips = [];
|
|
9023
|
-
|
|
9024
|
-
let i;
|
|
9025
|
-
const split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/);
|
|
9026
|
-
const len = split.length;
|
|
9027
|
-
|
|
9028
|
-
for (i = 0; i < len; i++) {
|
|
9029
|
-
if (!split[i]) {
|
|
9030
|
-
// ignore empty strings
|
|
9031
|
-
continue;
|
|
9032
|
-
}
|
|
9033
|
-
|
|
9034
|
-
namespaces = split[i].replace(/\*/g, '.*?');
|
|
9035
|
-
|
|
9036
|
-
if (namespaces[0] === '-') {
|
|
9037
|
-
createDebug.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));
|
|
9038
|
-
} else {
|
|
9039
|
-
createDebug.names.push(new RegExp('^' + namespaces + '$'));
|
|
9040
|
-
}
|
|
9041
|
-
}
|
|
9042
|
-
}
|
|
9043
|
-
|
|
9044
|
-
/**
|
|
9045
|
-
* Disable debug output.
|
|
9046
|
-
*
|
|
9047
|
-
* @return {String} namespaces
|
|
9048
|
-
* @api public
|
|
9049
|
-
*/
|
|
9050
|
-
function disable() {
|
|
9051
|
-
const namespaces = [
|
|
9052
|
-
...createDebug.names.map(toNamespace),
|
|
9053
|
-
...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace)
|
|
9054
|
-
].join(',');
|
|
9055
|
-
createDebug.enable('');
|
|
9056
|
-
return namespaces;
|
|
9057
|
-
}
|
|
9058
|
-
|
|
9059
|
-
/**
|
|
9060
|
-
* Returns true if the given mode name is enabled, false otherwise.
|
|
9061
|
-
*
|
|
9062
|
-
* @param {String} name
|
|
9063
|
-
* @return {Boolean}
|
|
9064
|
-
* @api public
|
|
9065
|
-
*/
|
|
9066
|
-
function enabled(name) {
|
|
9067
|
-
if (name[name.length - 1] === '*') {
|
|
9068
|
-
return true;
|
|
9069
|
-
}
|
|
9070
|
-
|
|
9071
|
-
let i;
|
|
9072
|
-
let len;
|
|
9073
|
-
|
|
9074
|
-
for (i = 0, len = createDebug.skips.length; i < len; i++) {
|
|
9075
|
-
if (createDebug.skips[i].test(name)) {
|
|
9076
|
-
return false;
|
|
9077
|
-
}
|
|
9078
|
-
}
|
|
9079
|
-
|
|
9080
|
-
for (i = 0, len = createDebug.names.length; i < len; i++) {
|
|
9081
|
-
if (createDebug.names[i].test(name)) {
|
|
9082
|
-
return true;
|
|
9083
|
-
}
|
|
9084
|
-
}
|
|
9085
|
-
|
|
9086
|
-
return false;
|
|
9087
|
-
}
|
|
9088
|
-
|
|
9089
|
-
/**
|
|
9090
|
-
* Convert regexp to namespace
|
|
9091
|
-
*
|
|
9092
|
-
* @param {RegExp} regxep
|
|
9093
|
-
* @return {String} namespace
|
|
9094
|
-
* @api private
|
|
9095
|
-
*/
|
|
9096
|
-
function toNamespace(regexp) {
|
|
9097
|
-
return regexp.toString()
|
|
9098
|
-
.substring(2, regexp.toString().length - 2)
|
|
9099
|
-
.replace(/\.\*\?$/, '*');
|
|
9100
|
-
}
|
|
9101
|
-
|
|
9102
|
-
/**
|
|
9103
|
-
* Coerce `val`.
|
|
9104
|
-
*
|
|
9105
|
-
* @param {Mixed} val
|
|
9106
|
-
* @return {Mixed}
|
|
9107
|
-
* @api private
|
|
9108
|
-
*/
|
|
9109
|
-
function coerce(val) {
|
|
9110
|
-
if (val instanceof Error) {
|
|
9111
|
-
return val.stack || val.message;
|
|
9112
|
-
}
|
|
9113
|
-
return val;
|
|
9114
|
-
}
|
|
9115
|
-
|
|
9116
|
-
/**
|
|
9117
|
-
* XXX DO NOT USE. This is a temporary stub function.
|
|
9118
|
-
* XXX It WILL be removed in the next major release.
|
|
9119
|
-
*/
|
|
9120
|
-
function destroy() {
|
|
9121
|
-
console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
|
|
9122
|
-
}
|
|
9123
|
-
|
|
9124
|
-
createDebug.enable(createDebug.load());
|
|
9125
|
-
|
|
9126
|
-
return createDebug;
|
|
9127
|
-
}
|
|
9128
|
-
|
|
9129
|
-
var common = setup;
|
|
9130
|
-
|
|
9131
|
-
var browser$1 = createCommonjsModule(function (module, exports) {
|
|
9132
|
-
/* eslint-env browser */
|
|
9133
|
-
|
|
9134
|
-
/**
|
|
9135
|
-
* This is the web browser implementation of `debug()`.
|
|
9136
|
-
*/
|
|
9137
|
-
|
|
9138
|
-
exports.formatArgs = formatArgs;
|
|
9139
|
-
exports.save = save;
|
|
9140
|
-
exports.load = load;
|
|
9141
|
-
exports.useColors = useColors;
|
|
9142
|
-
exports.storage = localstorage();
|
|
9143
|
-
exports.destroy = (() => {
|
|
9144
|
-
let warned = false;
|
|
9145
|
-
|
|
9146
|
-
return () => {
|
|
9147
|
-
if (!warned) {
|
|
9148
|
-
warned = true;
|
|
9149
|
-
console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
|
|
9150
|
-
}
|
|
9151
|
-
};
|
|
9152
|
-
})();
|
|
9153
|
-
|
|
9154
|
-
/**
|
|
9155
|
-
* Colors.
|
|
9156
|
-
*/
|
|
9157
|
-
|
|
9158
|
-
exports.colors = [
|
|
9159
|
-
'#0000CC',
|
|
9160
|
-
'#0000FF',
|
|
9161
|
-
'#0033CC',
|
|
9162
|
-
'#0033FF',
|
|
9163
|
-
'#0066CC',
|
|
9164
|
-
'#0066FF',
|
|
9165
|
-
'#0099CC',
|
|
9166
|
-
'#0099FF',
|
|
9167
|
-
'#00CC00',
|
|
9168
|
-
'#00CC33',
|
|
9169
|
-
'#00CC66',
|
|
9170
|
-
'#00CC99',
|
|
9171
|
-
'#00CCCC',
|
|
9172
|
-
'#00CCFF',
|
|
9173
|
-
'#3300CC',
|
|
9174
|
-
'#3300FF',
|
|
9175
|
-
'#3333CC',
|
|
9176
|
-
'#3333FF',
|
|
9177
|
-
'#3366CC',
|
|
9178
|
-
'#3366FF',
|
|
9179
|
-
'#3399CC',
|
|
9180
|
-
'#3399FF',
|
|
9181
|
-
'#33CC00',
|
|
9182
|
-
'#33CC33',
|
|
9183
|
-
'#33CC66',
|
|
9184
|
-
'#33CC99',
|
|
9185
|
-
'#33CCCC',
|
|
9186
|
-
'#33CCFF',
|
|
9187
|
-
'#6600CC',
|
|
9188
|
-
'#6600FF',
|
|
9189
|
-
'#6633CC',
|
|
9190
|
-
'#6633FF',
|
|
9191
|
-
'#66CC00',
|
|
9192
|
-
'#66CC33',
|
|
9193
|
-
'#9900CC',
|
|
9194
|
-
'#9900FF',
|
|
9195
|
-
'#9933CC',
|
|
9196
|
-
'#9933FF',
|
|
9197
|
-
'#99CC00',
|
|
9198
|
-
'#99CC33',
|
|
9199
|
-
'#CC0000',
|
|
9200
|
-
'#CC0033',
|
|
9201
|
-
'#CC0066',
|
|
9202
|
-
'#CC0099',
|
|
9203
|
-
'#CC00CC',
|
|
9204
|
-
'#CC00FF',
|
|
9205
|
-
'#CC3300',
|
|
9206
|
-
'#CC3333',
|
|
9207
|
-
'#CC3366',
|
|
9208
|
-
'#CC3399',
|
|
9209
|
-
'#CC33CC',
|
|
9210
|
-
'#CC33FF',
|
|
9211
|
-
'#CC6600',
|
|
9212
|
-
'#CC6633',
|
|
9213
|
-
'#CC9900',
|
|
9214
|
-
'#CC9933',
|
|
9215
|
-
'#CCCC00',
|
|
9216
|
-
'#CCCC33',
|
|
9217
|
-
'#FF0000',
|
|
9218
|
-
'#FF0033',
|
|
9219
|
-
'#FF0066',
|
|
9220
|
-
'#FF0099',
|
|
9221
|
-
'#FF00CC',
|
|
9222
|
-
'#FF00FF',
|
|
9223
|
-
'#FF3300',
|
|
9224
|
-
'#FF3333',
|
|
9225
|
-
'#FF3366',
|
|
9226
|
-
'#FF3399',
|
|
9227
|
-
'#FF33CC',
|
|
9228
|
-
'#FF33FF',
|
|
9229
|
-
'#FF6600',
|
|
9230
|
-
'#FF6633',
|
|
9231
|
-
'#FF9900',
|
|
9232
|
-
'#FF9933',
|
|
9233
|
-
'#FFCC00',
|
|
9234
|
-
'#FFCC33'
|
|
9235
|
-
];
|
|
9236
|
-
|
|
9237
|
-
/**
|
|
9238
|
-
* Currently only WebKit-based Web Inspectors, Firefox >= v31,
|
|
9239
|
-
* and the Firebug extension (any Firefox version) are known
|
|
9240
|
-
* to support "%c" CSS customizations.
|
|
9241
|
-
*
|
|
9242
|
-
* TODO: add a `localStorage` variable to explicitly enable/disable colors
|
|
9243
|
-
*/
|
|
9244
|
-
|
|
9245
|
-
// eslint-disable-next-line complexity
|
|
9246
|
-
function useColors() {
|
|
9247
|
-
// NB: In an Electron preload script, document will be defined but not fully
|
|
9248
|
-
// initialized. Since we know we're in Chrome, we'll just detect this case
|
|
9249
|
-
// explicitly
|
|
9250
|
-
if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {
|
|
9251
|
-
return true;
|
|
9252
|
-
}
|
|
9253
|
-
|
|
9254
|
-
// Internet Explorer and Edge do not support colors.
|
|
9255
|
-
if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
9256
|
-
return false;
|
|
9257
|
-
}
|
|
9258
|
-
|
|
9259
|
-
// Is webkit? http://stackoverflow.com/a/16459606/376773
|
|
9260
|
-
// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
|
|
9261
|
-
return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||
|
|
9262
|
-
// Is firebug? http://stackoverflow.com/a/398120/376773
|
|
9263
|
-
(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||
|
|
9264
|
-
// Is firefox >= v31?
|
|
9265
|
-
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
9266
|
-
(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||
|
|
9267
|
-
// Double check webkit in userAgent just in case we are in a worker
|
|
9268
|
-
(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));
|
|
9269
|
-
}
|
|
9270
|
-
|
|
9271
|
-
/**
|
|
9272
|
-
* Colorize log arguments if enabled.
|
|
9273
|
-
*
|
|
9274
|
-
* @api public
|
|
9275
|
-
*/
|
|
9276
|
-
|
|
9277
|
-
function formatArgs(args) {
|
|
9278
|
-
args[0] = (this.useColors ? '%c' : '') +
|
|
9279
|
-
this.namespace +
|
|
9280
|
-
(this.useColors ? ' %c' : ' ') +
|
|
9281
|
-
args[0] +
|
|
9282
|
-
(this.useColors ? '%c ' : ' ') +
|
|
9283
|
-
'+' + module.exports.humanize(this.diff);
|
|
9284
|
-
|
|
9285
|
-
if (!this.useColors) {
|
|
9286
|
-
return;
|
|
9287
|
-
}
|
|
9288
|
-
|
|
9289
|
-
const c = 'color: ' + this.color;
|
|
9290
|
-
args.splice(1, 0, c, 'color: inherit');
|
|
9291
|
-
|
|
9292
|
-
// The final "%c" is somewhat tricky, because there could be other
|
|
9293
|
-
// arguments passed either before or after the %c, so we need to
|
|
9294
|
-
// figure out the correct index to insert the CSS into
|
|
9295
|
-
let index = 0;
|
|
9296
|
-
let lastC = 0;
|
|
9297
|
-
args[0].replace(/%[a-zA-Z%]/g, match => {
|
|
9298
|
-
if (match === '%%') {
|
|
9299
|
-
return;
|
|
9300
|
-
}
|
|
9301
|
-
index++;
|
|
9302
|
-
if (match === '%c') {
|
|
9303
|
-
// We only are interested in the *last* %c
|
|
9304
|
-
// (the user may have provided their own)
|
|
9305
|
-
lastC = index;
|
|
9306
|
-
}
|
|
9307
|
-
});
|
|
9308
|
-
|
|
9309
|
-
args.splice(lastC, 0, c);
|
|
9310
|
-
}
|
|
9311
|
-
|
|
9312
|
-
/**
|
|
9313
|
-
* Invokes `console.debug()` when available.
|
|
9314
|
-
* No-op when `console.debug` is not a "function".
|
|
9315
|
-
* If `console.debug` is not available, falls back
|
|
9316
|
-
* to `console.log`.
|
|
9317
|
-
*
|
|
9318
|
-
* @api public
|
|
9319
|
-
*/
|
|
9320
|
-
exports.log = console.debug || console.log || (() => {});
|
|
9321
|
-
|
|
9322
|
-
/**
|
|
9323
|
-
* Save `namespaces`.
|
|
9324
|
-
*
|
|
9325
|
-
* @param {String} namespaces
|
|
9326
|
-
* @api private
|
|
9327
|
-
*/
|
|
9328
|
-
function save(namespaces) {
|
|
9329
|
-
try {
|
|
9330
|
-
if (namespaces) {
|
|
9331
|
-
exports.storage.setItem('debug', namespaces);
|
|
9332
|
-
} else {
|
|
9333
|
-
exports.storage.removeItem('debug');
|
|
9334
|
-
}
|
|
9335
|
-
} catch (error) {
|
|
9336
|
-
// Swallow
|
|
9337
|
-
// XXX (@Qix-) should we be logging these?
|
|
9338
|
-
}
|
|
9339
|
-
}
|
|
9340
|
-
|
|
9341
|
-
/**
|
|
9342
|
-
* Load `namespaces`.
|
|
9343
|
-
*
|
|
9344
|
-
* @return {String} returns the previously persisted debug modes
|
|
9345
|
-
* @api private
|
|
9346
|
-
*/
|
|
9347
|
-
function load() {
|
|
9348
|
-
let r;
|
|
9349
|
-
try {
|
|
9350
|
-
r = exports.storage.getItem('debug');
|
|
9351
|
-
} catch (error) {
|
|
9352
|
-
// Swallow
|
|
9353
|
-
// XXX (@Qix-) should we be logging these?
|
|
9354
|
-
}
|
|
9355
|
-
|
|
9356
|
-
// If debug isn't set in LS, and we're in Electron, try to load $DEBUG
|
|
9357
|
-
if (!r && typeof process !== 'undefined' && 'env' in process) {
|
|
9358
|
-
r = process.env.DEBUG;
|
|
9359
|
-
}
|
|
9360
|
-
|
|
9361
|
-
return r;
|
|
9362
|
-
}
|
|
9363
|
-
|
|
9364
|
-
/**
|
|
9365
|
-
* Localstorage attempts to return the localstorage.
|
|
9366
|
-
*
|
|
9367
|
-
* This is necessary because safari throws
|
|
9368
|
-
* when a user disables cookies/localstorage
|
|
9369
|
-
* and you attempt to access it.
|
|
9370
|
-
*
|
|
9371
|
-
* @return {LocalStorage}
|
|
9372
|
-
* @api private
|
|
9373
|
-
*/
|
|
9374
|
-
|
|
9375
|
-
function localstorage() {
|
|
9376
|
-
try {
|
|
9377
|
-
// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context
|
|
9378
|
-
// The Browser also has localStorage in the global context.
|
|
9379
|
-
return localStorage;
|
|
9380
|
-
} catch (error) {
|
|
9381
|
-
// Swallow
|
|
9382
|
-
// XXX (@Qix-) should we be logging these?
|
|
9383
|
-
}
|
|
9384
|
-
}
|
|
9385
|
-
|
|
9386
|
-
module.exports = common(exports);
|
|
9387
|
-
|
|
9388
|
-
const {formatters} = module.exports;
|
|
9389
|
-
|
|
9390
|
-
/**
|
|
9391
|
-
* Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
|
|
9392
|
-
*/
|
|
9393
|
-
|
|
9394
|
-
formatters.j = function (v) {
|
|
9395
|
-
try {
|
|
9396
|
-
return JSON.stringify(v);
|
|
9397
|
-
} catch (error) {
|
|
9398
|
-
return '[UnexpectedJSONParseError]: ' + error.message;
|
|
9399
|
-
}
|
|
9400
|
-
};
|
|
9401
|
-
});
|
|
9402
|
-
|
|
9403
|
-
function s$3(){return getRenderingRef()}function l$1(){var e=s$3();return getElement(e)}function d$2(e,t){void 0===t&&(t={});var n=l$1();return h(n,e,t)}var p$1=browser$1("stencil-hook");
|
|
9404
|
-
|
|
9405
8238
|
var umd = createCommonjsModule(function (module, exports) {
|
|
9406
8239
|
(function (global, factory) {
|
|
9407
8240
|
factory(exports) ;
|
|
@@ -9961,6 +8794,6 @@ var umd = createCommonjsModule(function (module, exports) {
|
|
|
9961
8794
|
|
|
9962
8795
|
});
|
|
9963
8796
|
|
|
9964
|
-
var H={current:void 0};function T(){if(void 0===H.current)throw new Error("no implementation of useHost provided");return H.current()}function J(e){if(!e)throw new Error("Must supply an implementation");if("function"!=typeof e)throw new Error("implementation must be a function");H.current=e;}function Q(){lazilyStartLocaleContext();var t=T();return h(t,LOCALE_CONTEXT_NAME)}function z(){lazilyStartProgramContext();var e=T();return h(e,PROGRAM_CONTEXT_NAME)}function B(){var e;return null==(e=K())?void 0:e.jwt}function K(){lazilyStartUserContext();var e=T(),n=h(e,USER_CONTEXT_NAME),t=userIdentityFromJwt(null==n?void 0:n.jwt);if(isDemo()||!n||t)return n;setUserIdentity(void 0);}function Z(){lazilyStartVerificationContext();var e=T(),n=h(e,VERIFICATION_CONTEXT_NAME),t=checkVerificationToken(null==n?void 0:n.token);if(isDemo()||!n||t)return n;setVerificationContext(void 0);}var Y=getTenantAlias,ee=getAppDomain,ne=getEngagementMedium;function te(){return (te=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);}return e}).apply(this,arguments)}function re(e,n){return (re=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function ae(e,n){return n||(n=e.slice(0)),e.raw=n,e}function oe(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function ie(e,n){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return oe(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return "Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?oe(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return (t=e[Symbol.iterator]()).next.bind(t)}var se=function(){return (se=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e}).apply(this,arguments)},ue=new Map,ce=new Map,de=!0,le=!1;function fe(e){return e.replace(/[\s,]+/g," ").trim()}function me(e){var n,t,r,a=fe(e);if(!ue.has(a)){var o=parse(e,{experimentalFragmentVariables:le});if(!o||"Document"!==o.kind)throw new Error("Not a valid GraphQL document.");ue.set(a,function(e){var n=new Set(e.definitions);n.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var r=e[t];r&&"object"==typeof r&&n.add(r);});});var t=e.loc;return t&&(delete t.startToken,delete t.endToken),e}((n=o,t=new Set,r=[],n.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var n=e.name.value,a=fe((i=e.loc).source.body.substring(i.start,i.end)),o=ce.get(n);o&&!o.has(a)?de&&console.warn("Warning: fragment with name "+n+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||ce.set(n,o=new Set),o.add(a),t.has(a)||(t.add(a),r.push(e));}else r.push(e);var i;}),se(se({},n),{definitions:r}))));}return ue.get(a)}function ve(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];"string"==typeof e&&(e=[e]);var r=e[0];return n.forEach(function(n,t){r+=n&&"Document"===n.kind?n.loc.source.body:n,r+=e[t+1];}),me(r)}var ge,pe=ve;(ge=ve||(ve={})).gql=pe,ge.resetCaches=function(){ue.clear(),ce.clear();},ge.disableFragmentWarnings=function(){de=!1;},ge.enableExperimentalFragmentVariables=function(){le=!0;},ge.disableExperimentalFragmentVariables=function(){le=!1;},ve.default=ve;var he=ve;function ye(e,n){try{var t=e();}catch(e){return n(e)}return t&&t.then?t.then(void 0,n):t}var Ce=function(e){var n,t;function r(n,t){var r;(r=e.call(this,n,t)||this).subject=new Subject;var a=new Subject;return r.subject.pipe(bufferTime(200,void 0,10)).subscribe(function(e){try{if(!e.length)return Promise.resolve();for(var n,t=Pe(e),o=t.mergedQuery,i=t.mergedVariables,s=t.mergedQueryAddedEvents,u=ie(t.unmergedQueryAddedEvents);!(n=u()).done;)a.next(n.value);return s.length?Promise.resolve(ye(function(){return Promise.resolve(r.superRequest(o,i)).then(function(e){Me(e,s);})},function(e){if(e instanceof types.ClientError){var n=function(){var n=e.response,t=n.data,r=n.errors;if(!t)return {v:De(s,e)};for(var a,o=Object.keys(t),i=[].concat(s),u=function(){var n=a.value,t=void 0;n.path.find(function(r,a,s){if(o.includes(r)){var u=Ie(r),c=i.findIndex(function(e){return e.id===u});if(-1===c)return !1;o.splice(a,1),t=i.splice(c,1)[0];var d=Ee(e.response.data,t);s[a]=we(s[a],u);var l=t.query,f=t.variables,m=te({},e.response,{errors:[n],data:d,path:s}),v=new types.ClientError(m,{query:"string"!=typeof l?print(l):l,variables:f});return Se(t,v),!0}return !1});},c=ie(r);!(a=c()).done;)u();Me(t,i);}();if("object"==typeof n)return n.v}else De(s,e);})):Promise.resolve()}catch(e){return Promise.reject(e)}}),a.subscribe(function(e){try{var n=ye(function(){return Promise.resolve(r.superRequest(e.query,e.variables)).then(function(n){Fe(n,e);})},function(n){Se(e,n);});return Promise.resolve(n&&n.then?n.then(function(){}):void 0)}catch(e){return Promise.reject(e)}}),r}t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,re(n,t);var a=r.prototype;return a.superRequest=function(n,t){return e.prototype.request.call(this,n,t)},a.request=function(e,n,t){var r=this;return new Promise(function(a,o){var i={query:e,variables:n,id:be(),options:t,resolve:a,reject:o};r.subject.next(i);})},r}(dist$1.GraphQLClient),be=function(){return nanoid().replace(/[-_]/g,"")},we=function(e,n){return e.replace("_"+n,"")},Ie=function(e){var n=e.split("_");return n[n.length-1]},Pe=function(e){var n=[],t=[],r=e.reduce(function(e,r){var a=r.query,o=r.variables,i=r.id,s=r.options;if(null==s||!s.batch)return t.push(r),e;try{var u="string"==typeof a?parse(a):a,c=u.definitions.find(function(e){return "FragmentDefinition"===e.kind}),d="string"==typeof a?a:print(a),l=/@/.test(d);if(c||l)return t.push(r),e;var f=function(e){return function(e,n){return e+"_"+n}(e,i)};return e=e.addN(u,[o],f,f),n.push(r),e}catch(n){return t.push(r),e}},k("BatchedQuery")),a=r.document,o=r.variables;return {mergedQuery:a&&print(a),mergedVariables:o,mergedQueryAddedEvents:n,unmergedQueryAddedEvents:t}},Ee=function(e,n){if(!e)return e;var t=Object.keys(e),r=n.id;return t.reduce(function(n,t){var a;return t.endsWith(r)&&(n=te({},n,((a={})[we(t,r)]=e[t],a))),n},{})},Fe=function(e,n){(0, n.resolve)(e);},Me=function(e,n){for(var t,r=ie(n);!(t=r()).done;){var a=t.value,o=Ee(e,a);a.resolve(o);}},Se=function(e,n){(0, e.reject)(n);},De=function(e,n){for(var t,r=ie(e);!(t=r()).done;)(0, t.value.reject)(n);},$e="sq:graphql-client",ke=src(function(e,n,t){return new Ce(e+"/api/v1/"+n+"/graphql",{headers:{Authorization:"Bearer "+(t||"")}})});function Ae(e,n){switch(n.type){case"loading":return {data:void 0,errors:void 0,loading:!0};case"data":return {data:n.payload,errors:void 0,loading:!1};case"errors":return {data:void 0,errors:n.payload,loading:!1}}}function qe(e,n,t){void 0===t&&(t={batch:!0,protected:!1});var r=function(e){var n,t=B(),r=null==(n=Z())?void 0:n.token,a=ee(),o=Y(),i=ke(a,o,null!=e&&e.protected?r:t),s=T(),u=h(s,"sq:graphql-client",{attempts:0});return null!=u?u:i}({protected:t.protected}),a=useReducer$1(Ae,n),o=a[1];return [a[0],useCallback(function(n,a){void 0===a&&(a=!1);try{if(!r){var i=new Error("No GraphQL client found");return o({type:"errors",payload:i}),Promise.resolve(i)}return Promise.resolve(function(i,s){try{var u=(a||o({type:"loading"}),Promise.resolve(r.request(e,n,t)).then(function(e){return o({type:"data",payload:e}),e}));}catch(e){return s(e)}return u&&u.then?u.then(void 0,s):u}(0,function(e){return o({type:"errors",payload:e}),e}))}catch(e){return Promise.reject(e)}},[r,e,o])]}var je,Re={loading:!1,data:void 0,errors:void 0};function xe(e){var n=qe(e,Re);return [n[1],n[0]]}var Ve,Oe=he(je||(je=ae(["\n mutation AuthenticateWithEmailAndPassword(\n $email: String!\n $password: String!\n ) {\n authenticateManagedIdentityWithEmailAndPassword(\n authenticateManagedIdentityWithEmailAndPasswordInput: {\n email: $email\n password: $password\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function We(){var e=xe(Oe),n=e[0],t=e[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(!(e instanceof Error)&&e.authenticateManagedIdentityWithEmailAndPassword){var n=e.authenticateManagedIdentityWithEmailAndPassword.token,t=o$1(n).user;setUserIdentity({jwt:n,id:t.id,accountId:t.accountId,managedIdentity:{email:e.authenticateManagedIdentityWithEmailAndPassword.email,emailVerified:e.authenticateManagedIdentityWithEmailAndPassword.emailVerified,sessionData:e.authenticateManagedIdentityWithEmailAndPassword.sessionData}});}return e})}catch(e){return Promise.reject(e)}},{loading:t.loading,data:t.data,errors:t.errors}]}var Ne,_e=he(Ve||(Ve=ae(["\n mutation RegisterWithEmailAndPassword(\n $email: String!\n $password: String!\n $formData: RSJsonNode\n $redirectPath: String\n ) {\n registerManagedIdentityWithEmailAndPassword(\n registerManagedIdentityWithEmailAndPasswordInput: {\n email: $email\n password: $password\n formData: $formData\n redirectPath: $redirectPath\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function Ue(){var e=xe(_e),n=e[0],t=e[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(!(e instanceof Error)&&e.registerManagedIdentityWithEmailAndPassword){var n=e.registerManagedIdentityWithEmailAndPassword.token,t=o$1(n).user;setUserIdentity({jwt:n,id:t.id,accountId:t.accountId,managedIdentity:{email:e.registerManagedIdentityWithEmailAndPassword.email,emailVerified:e.registerManagedIdentityWithEmailAndPassword.emailVerified,sessionData:e.registerManagedIdentityWithEmailAndPassword.sessionData}});}return e})}catch(e){return Promise.reject(e)}},{loading:t.loading,data:t.data,errors:t.errors}]}var Le,He=he(Ne||(Ne=ae(["\n mutation RegisterViaRegistrationForm($key: String!, $formData: RSJsonNode!) {\n submitForm(formSubmissionInput: { key: $key, formData: $formData }) {\n results {\n ... on FormHandlerSubmissionResult {\n result\n formHandler {\n namespace\n }\n }\n ... on FormHandlerError {\n errorCode\n error\n errorType\n formHandler {\n name\n endpointUrl\n }\n }\n }\n }\n }\n"])));function Te(){var e=xe(He),n=e[0],t=e[1],r=t.loading,a=t.data,o=t.errors,i=useState$1(null),s=i[1];return [function(e){try{return s(null),Promise.resolve(n(e)).then(function(e){var n,t,r,a;if(e instanceof Error)return e;var o=null==(n=e.submitForm)||null==(t=n.results)?void 0:t.find(function(e){var n;return "identity"===(null==e||null==(n=e.formHandler)?void 0:n.namespace)});if(o&&null!=(r=o.result)&&null!=(a=r.results)&&a.length){var i=o.result.results[0];if(i.success){var c=i.data.token,d=o$1(c).user;setUserIdentity({jwt:c,id:d.id,accountId:d.accountId,managedIdentity:{email:i.data.email,emailVerified:i.data.emailVerified,sessionData:i.data.sessionData}});}else s(i.message);}return e})}catch(e){return Promise.reject(e)}},{loading:r,data:a,errors:o,formError:i[0]}]}var Je,Qe=he(Le||(Le=ae(["\n mutation ChangePassword($password: String!) {\n changeManagedIdentityPassword(\n changeManagedIdentityPasswordInput: { password: $password }\n ) {\n success\n }\n }\n"])));function ze(){var e=xe(Qe),n=e[1];return [e[0],{loading:n.loading,data:n.data,errors:n.errors}]}var Ge,Be=he(Je||(Je=ae(["\n mutation ResetPassword($oobCode: String!, $password: String!) {\n resetManagedIdentityPassword(\n resetManagedIdentityPasswordInput: {\n password: $password\n oobCode: $oobCode\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function Ke(){var e=xe(Be),n=e[0],t=e[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(!(e instanceof Error)&&e.resetManagedIdentityPassword){var n=e.resetManagedIdentityPassword.token,t=o$1(n).user;setUserIdentity({jwt:n,id:t.id,accountId:t.accountId,managedIdentity:{email:e.resetManagedIdentityPassword.email,emailVerified:e.resetManagedIdentityPassword.emailVerified,sessionData:e.resetManagedIdentityPassword.sessionData}});}return e})}catch(e){return Promise.reject(e)}},{loading:t.loading,data:t.data,errors:t.errors}]}var Ze=he(Ge||(Ge=ae(["\n mutation VerifyPasswordResetCode($oobCode: String!) {\n verifyManagedIdentityPasswordResetCode(\n verifyManagedIdentityPasswordResetCodeInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function Xe(){return xe(Ze)}function Ye(){var e=T();return {refresh:useCallback(function(){e.dispatchEvent(new CustomEvent("sq:refresh",{bubbles:!0,composed:!0,cancelable:!0,detail:{}}));},[e])}}function en(e){var n=e.skip,t=void 0!==n&&n,r=e.update,a=e.variables;useEffect$1(function(){var e=function(e){!t&&r(a,!0);};return document.addEventListener("sq:refresh",e),function(){return document.removeEventListener("sq:refresh",e)}},function(e){var n=useRef(e),t=useRef(0);return equal$1(e,n.current)||(n.current=e,t.current+=1),useMemo$1(function(){return n.current},[t.current])}([a,r,t]));}var nn,tn={loading:!1,data:void 0,errors:void 0},rn=Symbol();function an(e){var n=qe(e,tn),t=n[0],r=n[1],a=useRef(rn);en({skip:a.current===rn,update:r,variables:a.current});var o=useCallback(function(e){return a.current=e,r(e)},[r]);return [r,te({},t,{refetch:o})]}var on,sn=he(nn||(nn=ae(["\n query ManagedIdentitySession {\n managedIdentitySession {\n email\n emailVerified\n sessionData\n }\n }\n"])));function un(){var e=K(),n=an(sn),t=n[0],r=n[1],a=r.refetch,o=function(n){n instanceof Error||!n.managedIdentitySession||setUserIdentity(te({},e,{managedIdentity:n.managedIdentitySession}));};return [function(){try{return Promise.resolve(t({})).then(function(e){return o(e),e})}catch(e){return Promise.reject(e)}},{loading:r.loading,data:r.data,errors:r.errors,refetch:function(){try{return Promise.resolve(a()).then(function(e){return o(e),e})}catch(e){return Promise.reject(e)}}}]}var cn,dn=he(on||(on=ae(["\n mutation VerifyEmail($oobCode: String!) {\n verifyManagedIdentityEmail(\n verifyManagedIdentityEmailInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function ln(){var e=un()[0],n=xe(dn),t=n[0],r=n[1];return [function(n){try{return Promise.resolve(t(n)).then(function(n){var t=function(){if(!(n instanceof Error)&&n.verifyManagedIdentityEmail.success)return Promise.resolve(e()).then(function(){})}();return t&&t.then?t.then(function(){return n}):n})}catch(n){return Promise.reject(n)}},{loading:r.loading,data:r.data,errors:r.errors}]}var fn,mn=he(cn||(cn=ae(["\n mutation RequestPasswordResetEmail(\n $email: String!\n $urlParams: RSJsonNode\n $redirectPath: String\n ) {\n requestManagedIdentityPasswordResetEmail(\n requestManagedIdentityPasswordResetEmailInput: {\n email: $email\n urlParams: $urlParams\n redirectPath: $redirectPath\n }\n ) {\n success\n }\n }\n"])));function vn(){return xe(mn)}var gn,pn=he(fn||(fn=ae(["\n mutation RequestVerificationEmail(\n $email: String!\n $urlParams: RSJsonNode\n $redirectPath: String\n ) {\n requestManagedIdentityVerificationEmail(\n requestManagedIdentityVerificationEmailInput: {\n email: $email\n urlParams: $urlParams\n redirectPath: $redirectPath\n }\n ) {\n success\n }\n }\n"])));function hn(){return xe(pn)}var yn=he(gn||(gn=ae(["\n mutation authenticateManagedIdentityWithInstantAccess(\n $email: String!\n $firstName: String\n $lastName: String\n $locale: RSLocale\n $countryCode: RSCountryCode\n $cookies: String\n ) {\n authenticateManagedIdentityWithInstantAccess(\n authenticateManagedIdentityWithInstantAccessInput: {\n email: $email\n firstName: $firstName\n lastName: $lastName\n locale: $locale\n countryCode: $countryCode\n cookies: $cookies\n }\n ) {\n email\n emailVerified\n sessionData\n token\n }\n }\n"])));function Cn(){var e=z(),n=getEnvironment(),t=xe(yn),r=t[0],a=t[1];return [function(t){try{return Promise.resolve(r(t)).then(function(t){var r=function(){if(!(t instanceof Error)&&t.authenticateManagedIdentityWithInstantAccess)return Promise.resolve(function(e,n){try{return Promise.resolve(function(t,r){try{var a=Promise.resolve(fetch(getAppDomain()+"/api/v1/"+getTenantAlias()+"/graphql",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+n},body:JSON.stringify({query:"\n query checkReferralFraudStatus($programId: ID) {\n viewer {\n ... on User {\n id\n instantAccessRewards(filter: { programId_eq: $programId }) {\n data {\n id\n pendingReasons\n cancelledReason\n }\n }\n }\n }\n }\n",variables:{programId:e}})})).then(function(e){if(!e.ok)throw new Error("Failed to fetch locale");return Promise.resolve(e.json()).then(function(e){var n;if(e.errors)throw new Error(JSON.stringify(e.errors,null,2));var t=(null==(n=e.data.viewer.instantAccessRewards)?void 0:n.data)||[];return t.some(function(e){return "SUSPECTED_FRAUD"===e.cancelledReason})?"DENIED":t.some(function(e){var n;return null==(n=e.pendingReasons)?void 0:n.includes("SUSPECTED_FRAUD")})?"PENDING_REVIEW":"APPROVED"})});}catch(e){return r(e)}return a&&a.then?a.then(void 0,r):a}(0,function(e){console.error(e);}))}catch(e){return Promise.reject(e)}}(e,t.authenticateManagedIdentityWithInstantAccess.token)).then(function(e){if("APPROVED"!==e)throw {name:"fraud_error",message:"Referral flagged as fraud."};var r=t.authenticateManagedIdentityWithInstantAccess.email;if(setUserIdentity({jwt:t.authenticateManagedIdentityWithInstantAccess.token,id:r,accountId:r}),"SquatchJS2"===n){var a=new CustomEvent("sq:user-registration",{bubbles:!0,detail:{userId:r,accountId:r}});document.dispatchEvent(a);}})}();return r&&r.then?r.then(function(e){return t}):t})}catch(e){return Promise.reject(e)}},{loading:a.loading,data:a.data,errors:a.errors}]}function bn(e,n){var t=useRef();return t.current&&equal$1(n,t.current.key)||(t.current={key:n,value:e()}),t.current.value}function wn(){return useReducer$1(function(e){return e+1},0)}function In(e){for(var n,t=ie(Object.getOwnPropertyNames(e));!(n=t()).done;){var r=e[n.value];r&&"object"==typeof r&&In(r);}return Object.freeze(e)}var Pn={loading:!0,data:void 0,errors:void 0};function En(e,n,t,r){var a=qe(e,Pn,te({batch:!0,protected:!1},r||{})),o=a[0],i=a[1],s=wn(),u=s[1];return bn(function(){!t&&i(n);},[e,n,i,s[0],t]),en({skip:t,update:i,variables:n}),In(te({},o,{refetch:u}))}function Fn(e){var n=T(),t=y(n,$n(e.namespace),e.initialValue),r=t[0],a=t[1];return y(n,kn(e.namespace),[r,a]),[r,a]}function Mn(e){var n=d$2(kn(e)),t=d$2($n(e));return n?[t,n[1]]:[void 0,void 0]}function Sn(e){var n=d$2(kn(e));if(n)return n[1]}function Dn(e){return d$2($n(e))}function $n(e){return e+"-value"}function kn(e){return e+"-state"}function An(e){var n=T(),t=En(e.query,e.variables||{},e.skip,te({batch:!0},e.options||{})),r=y(n,$n(e.namespace),t),a=r[0],o=r[1];return useEffect$1(function(){umd.deepEqual(t,a)||o(t);},[t,a]),t}function qn(e){return d$2($n(e))||{data:null,loading:!0,refetch:function(){return console.warn("component still loading")}}}function jn(){var e=wn()[1];return useEffect$1(function(){return history_default.listen(function(){e();})},[]),history_default.location}var Rn,xn=history_default;function Vn(e){var n=useState$1({limit:e.limit,offset:e.offset}),t=n[0],r=n[1],a=t.offset,o=t.limit,i=function(e,n){return e*n},s=function(e,n){return Math.ceil(e/n)||0};return {limit:o,setLimit:function(e){var n=s(a,e),o=i(e,n);r(te({},t,{limit:e,offset:o}));},offset:a,setCurrentPage:function(e){var n=i(e,o);r(function(e){return te({},e,{offset:n})});},calculatePagination:function(e,n){var t=s(a,o),r=function(e,n){return Math.ceil(e/n)||0}(n,o),i=0===e?"0":e>1?a+1+"-"+(a+e):""+(a+1);return {currentPage:t,pageCount:r,rangeOnPage:i,pageProgress:i+" of "+n}}}}function On(e,n,t,r,a){var o;void 0===r&&(r={}),void 0===a&&(a=!1);var i=Vn(t),s=i.limit,u=i.setLimit,c=i.setCurrentPage,d=i.calculatePagination,l=En(e,te({limit:s,offset:i.offset},r),a),f=l.loading,m=l.errors,v=l.refetch,g=n(l.data),p=d((null==g||null==(o=g.data)?void 0:o.length)||0,(null==g?void 0:g.totalCount)||0);return {envelope:g,states:{errors:m,loading:f,limit:s,currentPage:p.currentPage,pageCount:p.pageCount,pageProgress:p.pageProgress},callbacks:{refetch:v,setLimit:u,setCurrentPage:c}}}var Un=dist$1.gql(Rn||(Rn=ae(["\n mutation ($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));var Hn=1e3,Tn=60*Hn,Jn=60*Tn,Qn=24*Jn,zn=function(e,n){n=n||{};var t=typeof e;if("string"===t&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var n=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(n){var t=parseFloat(n[1]);switch((n[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*t;case"weeks":case"week":case"w":return 6048e5*t;case"days":case"day":case"d":return t*Qn;case"hours":case"hour":case"hrs":case"hr":case"h":return t*Jn;case"minutes":case"minute":case"mins":case"min":case"m":return t*Tn;case"seconds":case"second":case"secs":case"sec":case"s":return t*Hn;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}(e);if("number"===t&&isFinite(e))return n.long?function(e){var n=Math.abs(e);return n>=Qn?Gn(e,n,Qn,"day"):n>=Jn?Gn(e,n,Jn,"hour"):n>=Tn?Gn(e,n,Tn,"minute"):n>=Hn?Gn(e,n,Hn,"second"):e+" ms"}(e):function(e){var n=Math.abs(e);return n>=Qn?Math.round(e/Qn)+"d":n>=Jn?Math.round(e/Jn)+"h":n>=Tn?Math.round(e/Tn)+"m":n>=Hn?Math.round(e/Hn)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Gn(e,n,t,r){var a=n>=1.5*t;return Math.round(e/t)+" "+r+(a?"s":"")}var Bn,Kn,Zn,Xn,Yn,et=(function(e,n){n.formatArgs=function(n){if(n[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+n[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const t="color: "+this.color;n.splice(1,0,t,"color: inherit");let r=0,a=0;n[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(a=r));}),n.splice(a,0,t);},n.save=function(e){try{e?n.storage.setItem("debug",e):n.storage.removeItem("debug");}catch(e){}},n.load=function(){let e;try{e=n.storage.getItem("debug");}catch(e){}return !e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},n.useColors=function(){return !("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},n.storage=function(){try{return localStorage}catch(e){}}(),n.destroy=(()=>{let e=!1;return ()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));}})(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],n.log=console.debug||console.log||(()=>{}),e.exports=function(e){function n(e){let r,a=null;function o(...e){if(!o.enabled)return;const t=o,a=Number(new Date);t.diff=a-(r||a),t.prev=r,t.curr=a,r=a,e[0]=n.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,a)=>{if("%%"===r)return "%";i++;const o=n.formatters[a];return "function"==typeof o&&(r=o.call(t,e[i]),e.splice(i,1),i--),r}),n.formatArgs.call(t,e),(t.log||n.log).apply(t,e);}return o.namespace=e,o.useColors=n.useColors(),o.color=n.selectColor(e),o.extend=t,o.destroy=n.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null===a?n.enabled(e):a,set:e=>{a=e;}}),"function"==typeof n.init&&n.init(o),o}function t(e,t){const r=n(this.namespace+(void 0===t?":":t)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return n.debug=n,n.default=n,n.coerce=function(e){return e instanceof Error?e.stack||e.message:e},n.disable=function(){const e=[...n.names.map(r),...n.skips.map(r).map(e=>"-"+e)].join(",");return n.enable(""),e},n.enable=function(e){let t;n.save(e),n.names=[],n.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),a=r.length;for(t=0;t<a;t++)r[t]&&("-"===(e=r[t].replace(/\*/g,".*?"))[0]?n.skips.push(new RegExp("^"+e.substr(1)+"$")):n.names.push(new RegExp("^"+e+"$")));},n.enabled=function(e){if("*"===e[e.length-1])return !0;let t,r;for(t=0,r=n.skips.length;t<r;t++)if(n.skips[t].test(e))return !1;for(t=0,r=n.names.length;t<r;t++)if(n.names[t].test(e))return !0;return !1},n.humanize=zn,n.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");},Object.keys(e).forEach(t=>{n[t]=e[t];}),n.names=[],n.skips=[],n.formatters={},n.selectColor=function(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]},n.enable(n.load()),n}(n);const{formatters:t}=e.exports;t.j=function(e){try{return JSON.stringify(e)}catch(e){return "[UnexpectedJSONParseError]: "+e.message}};}(Bn={exports:{}},Bn.exports),Bn.exports),nt=et("sq:load-event"),tt=dist$1.gql(Kn||(Kn=ae(["\n mutation loadEvent($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));var at=et("sq:useForm"),ot=dist$1.gql(Zn||(Zn=ae(["\n query ($key: String!) {\n form(key: $key) {\n schema\n initialData {\n initialData\n isEnabled\n isEnabledErrorMessage\n }\n }\n }\n"]))),it=dist$1.gql(Xn||(Xn=ae(["\n mutation ($formSubmissionInput: FormSubmissionInput!) {\n submitForm(formSubmissionInput: $formSubmissionInput) {\n success\n results {\n ... on FormHandlerSubmissionResult {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n result\n }\n ... on FormHandlerError {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n errorType\n error\n errorCode\n }\n }\n }\n }\n"]))),st=dist$1.gql(Yn||(Yn=ae(["\n query ($formValidationInput: FormValidationInput!) {\n validateForm(formValidationInput: $formValidationInput) {\n valid\n results {\n ... on FormHandlerValidationResult {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n result\n }\n ... on FormHandlerError {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n errorType\n error\n errorCode\n }\n }\n }\n }\n"])));
|
|
8797
|
+
var H={current:void 0};function T(){if(void 0===H.current)throw new Error("no implementation of useHost provided");return H.current()}function J(e){if(!e)throw new Error("Must supply an implementation");if("function"!=typeof e)throw new Error("implementation must be a function");H.current=e;}function Q(){lazilyStartLocaleContext();var t=T();return h(t,LOCALE_CONTEXT_NAME)}function z(){lazilyStartProgramContext();var e=T();return h(e,PROGRAM_CONTEXT_NAME)}function B(){var e;return null==(e=K())?void 0:e.jwt}function K(){lazilyStartUserContext();var e=T(),n=h(e,USER_CONTEXT_NAME),t=userIdentityFromJwt(null==n?void 0:n.jwt);if(isDemo()||!n||t)return n;setUserIdentity(void 0);}function Z(){lazilyStartVerificationContext();var e=T(),n=h(e,VERIFICATION_CONTEXT_NAME),t=checkVerificationToken(null==n?void 0:n.token);if(isDemo()||!n||t)return n;setVerificationContext(void 0);}var Y=getTenantAlias,ee=getAppDomain,ne=getEngagementMedium;function te(){return (te=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);}return e}).apply(this,arguments)}function re(e,n){return (re=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function ae(e,n){return n||(n=e.slice(0)),e.raw=n,e}function oe(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function ie(e,n){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return oe(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return "Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?oe(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return (t=e[Symbol.iterator]()).next.bind(t)}var se=function(){return (se=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e}).apply(this,arguments)},ue=new Map,ce=new Map,de=!0,le=!1;function fe(e){return e.replace(/[\s,]+/g," ").trim()}function me(e){var n,t,r,a=fe(e);if(!ue.has(a)){var o=parse(e,{experimentalFragmentVariables:le});if(!o||"Document"!==o.kind)throw new Error("Not a valid GraphQL document.");ue.set(a,function(e){var n=new Set(e.definitions);n.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var r=e[t];r&&"object"==typeof r&&n.add(r);});});var t=e.loc;return t&&(delete t.startToken,delete t.endToken),e}((n=o,t=new Set,r=[],n.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var n=e.name.value,a=fe((i=e.loc).source.body.substring(i.start,i.end)),o=ce.get(n);o&&!o.has(a)?de&&console.warn("Warning: fragment with name "+n+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||ce.set(n,o=new Set),o.add(a),t.has(a)||(t.add(a),r.push(e));}else r.push(e);var i;}),se(se({},n),{definitions:r}))));}return ue.get(a)}function ve(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];"string"==typeof e&&(e=[e]);var r=e[0];return n.forEach(function(n,t){r+=n&&"Document"===n.kind?n.loc.source.body:n,r+=e[t+1];}),me(r)}var ge,pe=ve;(ge=ve||(ve={})).gql=pe,ge.resetCaches=function(){ue.clear(),ce.clear();},ge.disableFragmentWarnings=function(){de=!1;},ge.enableExperimentalFragmentVariables=function(){le=!0;},ge.disableExperimentalFragmentVariables=function(){le=!1;},ve.default=ve;var he=ve;function ye(e,n){try{var t=e();}catch(e){return n(e)}return t&&t.then?t.then(void 0,n):t}var Ce=function(e){var n,t;function r(n,t){var r;(r=e.call(this,n,t)||this).subject=new Subject;var a=new Subject;return r.subject.pipe(bufferTime(200,void 0,10)).subscribe(function(e){try{if(!e.length)return Promise.resolve();for(var n,t=Pe(e),o=t.mergedQuery,i=t.mergedVariables,s=t.mergedQueryAddedEvents,u=ie(t.unmergedQueryAddedEvents);!(n=u()).done;)a.next(n.value);return s.length?Promise.resolve(ye(function(){return Promise.resolve(r.superRequest(o,i)).then(function(e){Me(e,s);})},function(e){if(e instanceof types.ClientError){var n=function(){var n=e.response,t=n.data,r=n.errors;if(!t)return {v:De(s,e)};for(var a,o=Object.keys(t),i=[].concat(s),u=function(){var n=a.value,t=void 0;n.path.find(function(r,a,s){if(o.includes(r)){var u=Ie(r),c=i.findIndex(function(e){return e.id===u});if(-1===c)return !1;o.splice(a,1),t=i.splice(c,1)[0];var d=Ee(e.response.data,t);s[a]=we(s[a],u);var l=t.query,f=t.variables,m=te({},e.response,{errors:[n],data:d,path:s}),v=new types.ClientError(m,{query:"string"!=typeof l?print(l):l,variables:f});return Se(t,v),!0}return !1});},c=ie(r);!(a=c()).done;)u();Me(t,i);}();if("object"==typeof n)return n.v}else De(s,e);})):Promise.resolve()}catch(e){return Promise.reject(e)}}),a.subscribe(function(e){try{var n=ye(function(){return Promise.resolve(r.superRequest(e.query,e.variables)).then(function(n){Fe(n,e);})},function(n){Se(e,n);});return Promise.resolve(n&&n.then?n.then(function(){}):void 0)}catch(e){return Promise.reject(e)}}),r}t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,re(n,t);var a=r.prototype;return a.superRequest=function(n,t){return e.prototype.request.call(this,n,t)},a.request=function(e,n,t){var r=this;return new Promise(function(a,o){var i={query:e,variables:n,id:be(),options:t,resolve:a,reject:o};r.subject.next(i);})},r}(dist$1.GraphQLClient),be=function(){return nanoid().replace(/[-_]/g,"")},we=function(e,n){return e.replace("_"+n,"")},Ie=function(e){var n=e.split("_");return n[n.length-1]},Pe=function(e){var n=[],t=[],r=e.reduce(function(e,r){var a=r.query,o=r.variables,i=r.id,s=r.options;if(null==s||!s.batch)return t.push(r),e;try{var u="string"==typeof a?parse(a):a,c=u.definitions.find(function(e){return "FragmentDefinition"===e.kind}),d="string"==typeof a?a:print(a),l=/@/.test(d);if(c||l)return t.push(r),e;var f=function(e){return function(e,n){return e+"_"+n}(e,i)};return e=e.addN(u,[o],f,f),n.push(r),e}catch(n){return t.push(r),e}},k("BatchedQuery")),a=r.document,o=r.variables;return {mergedQuery:a&&print(a),mergedVariables:o,mergedQueryAddedEvents:n,unmergedQueryAddedEvents:t}},Ee=function(e,n){if(!e)return e;var t=Object.keys(e),r=n.id;return t.reduce(function(n,t){var a;return t.endsWith(r)&&(n=te({},n,((a={})[we(t,r)]=e[t],a))),n},{})},Fe=function(e,n){(0, n.resolve)(e);},Me=function(e,n){for(var t,r=ie(n);!(t=r()).done;){var a=t.value,o=Ee(e,a);a.resolve(o);}},Se=function(e,n){(0, e.reject)(n);},De=function(e,n){for(var t,r=ie(e);!(t=r()).done;)(0, t.value.reject)(n);},$e="sq:graphql-client",ke=src(function(e,n,t){return new Ce(e+"/api/v1/"+n+"/graphql",{headers:{Authorization:"Bearer "+(t||"")}})});function Ae(e,n){switch(n.type){case"loading":return {data:void 0,errors:void 0,loading:!0};case"data":return {data:n.payload,errors:void 0,loading:!1};case"errors":return {data:void 0,errors:n.payload,loading:!1}}}function qe(e,n,t){void 0===t&&(t={batch:!0,protected:!1});var r=function(e){var n,t=B(),r=null==(n=Z())?void 0:n.token,a=ee(),o=Y(),i=ke(a,o,null!=e&&e.protected?r:t),s=T(),u=h(s,"sq:graphql-client",{attempts:0});return null!=u?u:i}({protected:t.protected}),a=useReducer(Ae,n),o=a[1];return [a[0],useCallback(function(n,a){void 0===a&&(a=!1);try{if(!r){var i=new Error("No GraphQL client found");return o({type:"errors",payload:i}),Promise.resolve(i)}return Promise.resolve(function(i,s){try{var u=(a||o({type:"loading"}),Promise.resolve(r.request(e,n,t)).then(function(e){return o({type:"data",payload:e}),e}));}catch(e){return s(e)}return u&&u.then?u.then(void 0,s):u}(0,function(e){return o({type:"errors",payload:e}),e}))}catch(e){return Promise.reject(e)}},[r,e,o])]}var je,Re={loading:!1,data:void 0,errors:void 0};function xe(e){var n=qe(e,Re);return [n[1],n[0]]}var Ve,Oe=he(je||(je=ae(["\n mutation AuthenticateWithEmailAndPassword(\n $email: String!\n $password: String!\n ) {\n authenticateManagedIdentityWithEmailAndPassword(\n authenticateManagedIdentityWithEmailAndPasswordInput: {\n email: $email\n password: $password\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function We(){var e=xe(Oe),n=e[0],t=e[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(!(e instanceof Error)&&e.authenticateManagedIdentityWithEmailAndPassword){var n=e.authenticateManagedIdentityWithEmailAndPassword.token,t=o(n).user;setUserIdentity({jwt:n,id:t.id,accountId:t.accountId,managedIdentity:{email:e.authenticateManagedIdentityWithEmailAndPassword.email,emailVerified:e.authenticateManagedIdentityWithEmailAndPassword.emailVerified,sessionData:e.authenticateManagedIdentityWithEmailAndPassword.sessionData}});}return e})}catch(e){return Promise.reject(e)}},{loading:t.loading,data:t.data,errors:t.errors}]}var Ne,_e=he(Ve||(Ve=ae(["\n mutation RegisterWithEmailAndPassword(\n $email: String!\n $password: String!\n $formData: RSJsonNode\n $redirectPath: String\n ) {\n registerManagedIdentityWithEmailAndPassword(\n registerManagedIdentityWithEmailAndPasswordInput: {\n email: $email\n password: $password\n formData: $formData\n redirectPath: $redirectPath\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function Ue(){var e=xe(_e),n=e[0],t=e[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(!(e instanceof Error)&&e.registerManagedIdentityWithEmailAndPassword){var n=e.registerManagedIdentityWithEmailAndPassword.token,t=o(n).user;setUserIdentity({jwt:n,id:t.id,accountId:t.accountId,managedIdentity:{email:e.registerManagedIdentityWithEmailAndPassword.email,emailVerified:e.registerManagedIdentityWithEmailAndPassword.emailVerified,sessionData:e.registerManagedIdentityWithEmailAndPassword.sessionData}});}return e})}catch(e){return Promise.reject(e)}},{loading:t.loading,data:t.data,errors:t.errors}]}var Le,He=he(Ne||(Ne=ae(["\n mutation RegisterViaRegistrationForm($key: String!, $formData: RSJsonNode!) {\n submitForm(formSubmissionInput: { key: $key, formData: $formData }) {\n results {\n ... on FormHandlerSubmissionResult {\n result\n formHandler {\n namespace\n }\n }\n ... on FormHandlerError {\n errorCode\n error\n errorType\n formHandler {\n name\n endpointUrl\n }\n }\n }\n }\n }\n"])));function Te(){var e=xe(He),n=e[0],t=e[1],r=t.loading,a=t.data,o$1=t.errors,i=useState(null),s=i[1];return [function(e){try{return s(null),Promise.resolve(n(e)).then(function(e){var n,t,r,a;if(e instanceof Error)return e;var o$1=null==(n=e.submitForm)||null==(t=n.results)?void 0:t.find(function(e){var n;return "identity"===(null==e||null==(n=e.formHandler)?void 0:n.namespace)});if(o$1&&null!=(r=o$1.result)&&null!=(a=r.results)&&a.length){var i=o$1.result.results[0];if(i.success){var c=i.data.token,d=o(c).user;setUserIdentity({jwt:c,id:d.id,accountId:d.accountId,managedIdentity:{email:i.data.email,emailVerified:i.data.emailVerified,sessionData:i.data.sessionData}});}else s(i.message);}return e})}catch(e){return Promise.reject(e)}},{loading:r,data:a,errors:o$1,formError:i[0]}]}var Je,Qe=he(Le||(Le=ae(["\n mutation ChangePassword($password: String!) {\n changeManagedIdentityPassword(\n changeManagedIdentityPasswordInput: { password: $password }\n ) {\n success\n }\n }\n"])));function ze(){var e=xe(Qe),n=e[1];return [e[0],{loading:n.loading,data:n.data,errors:n.errors}]}var Ge,Be=he(Je||(Je=ae(["\n mutation ResetPassword($oobCode: String!, $password: String!) {\n resetManagedIdentityPassword(\n resetManagedIdentityPasswordInput: {\n password: $password\n oobCode: $oobCode\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function Ke(){var e=xe(Be),n=e[0],t=e[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(!(e instanceof Error)&&e.resetManagedIdentityPassword){var n=e.resetManagedIdentityPassword.token,t=o(n).user;setUserIdentity({jwt:n,id:t.id,accountId:t.accountId,managedIdentity:{email:e.resetManagedIdentityPassword.email,emailVerified:e.resetManagedIdentityPassword.emailVerified,sessionData:e.resetManagedIdentityPassword.sessionData}});}return e})}catch(e){return Promise.reject(e)}},{loading:t.loading,data:t.data,errors:t.errors}]}var Ze=he(Ge||(Ge=ae(["\n mutation VerifyPasswordResetCode($oobCode: String!) {\n verifyManagedIdentityPasswordResetCode(\n verifyManagedIdentityPasswordResetCodeInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function Xe(){return xe(Ze)}function Ye(){var e=T();return {refresh:useCallback(function(){e.dispatchEvent(new CustomEvent("sq:refresh",{bubbles:!0,composed:!0,cancelable:!0,detail:{}}));},[e])}}function en(e){var n=e.skip,t=void 0!==n&&n,r=e.update,a=e.variables;useEffect(function(){var e=function(e){!t&&r(a,!0);};return document.addEventListener("sq:refresh",e),function(){return document.removeEventListener("sq:refresh",e)}},function(e){var n=useRef(e),t=useRef(0);return equal(e,n.current)||(n.current=e,t.current+=1),useMemo(function(){return n.current},[t.current])}([a,r,t]));}var nn,tn={loading:!1,data:void 0,errors:void 0},rn=Symbol();function an(e){var n=qe(e,tn),t=n[0],r=n[1],a=useRef(rn);en({skip:a.current===rn,update:r,variables:a.current});var o=useCallback(function(e){return a.current=e,r(e)},[r]);return [r,te({},t,{refetch:o})]}var on,sn=he(nn||(nn=ae(["\n query ManagedIdentitySession {\n managedIdentitySession {\n email\n emailVerified\n sessionData\n }\n }\n"])));function un(){var e=K(),n=an(sn),t=n[0],r=n[1],a=r.refetch,o=function(n){n instanceof Error||!n.managedIdentitySession||setUserIdentity(te({},e,{managedIdentity:n.managedIdentitySession}));};return [function(){try{return Promise.resolve(t({})).then(function(e){return o(e),e})}catch(e){return Promise.reject(e)}},{loading:r.loading,data:r.data,errors:r.errors,refetch:function(){try{return Promise.resolve(a()).then(function(e){return o(e),e})}catch(e){return Promise.reject(e)}}}]}var cn,dn=he(on||(on=ae(["\n mutation VerifyEmail($oobCode: String!) {\n verifyManagedIdentityEmail(\n verifyManagedIdentityEmailInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function ln(){var e=un()[0],n=xe(dn),t=n[0],r=n[1];return [function(n){try{return Promise.resolve(t(n)).then(function(n){var t=function(){if(!(n instanceof Error)&&n.verifyManagedIdentityEmail.success)return Promise.resolve(e()).then(function(){})}();return t&&t.then?t.then(function(){return n}):n})}catch(n){return Promise.reject(n)}},{loading:r.loading,data:r.data,errors:r.errors}]}var fn,mn=he(cn||(cn=ae(["\n mutation RequestPasswordResetEmail(\n $email: String!\n $urlParams: RSJsonNode\n $redirectPath: String\n ) {\n requestManagedIdentityPasswordResetEmail(\n requestManagedIdentityPasswordResetEmailInput: {\n email: $email\n urlParams: $urlParams\n redirectPath: $redirectPath\n }\n ) {\n success\n }\n }\n"])));function vn(){return xe(mn)}var gn,pn=he(fn||(fn=ae(["\n mutation RequestVerificationEmail(\n $email: String!\n $urlParams: RSJsonNode\n $redirectPath: String\n ) {\n requestManagedIdentityVerificationEmail(\n requestManagedIdentityVerificationEmailInput: {\n email: $email\n urlParams: $urlParams\n redirectPath: $redirectPath\n }\n ) {\n success\n }\n }\n"])));function hn(){return xe(pn)}var yn=he(gn||(gn=ae(["\n mutation authenticateManagedIdentityWithInstantAccess(\n $email: String!\n $firstName: String\n $lastName: String\n $locale: RSLocale\n $countryCode: RSCountryCode\n $cookies: String\n ) {\n authenticateManagedIdentityWithInstantAccess(\n authenticateManagedIdentityWithInstantAccessInput: {\n email: $email\n firstName: $firstName\n lastName: $lastName\n locale: $locale\n countryCode: $countryCode\n cookies: $cookies\n }\n ) {\n email\n emailVerified\n sessionData\n token\n }\n }\n"])));function Cn(){var e=z(),n=getEnvironment(),t=xe(yn),r=t[0],a=t[1];return [function(t){try{return Promise.resolve(r(t)).then(function(t){var r=function(){if(!(t instanceof Error)&&t.authenticateManagedIdentityWithInstantAccess)return Promise.resolve(function(e,n){try{return Promise.resolve(function(t,r){try{var a=Promise.resolve(fetch(getAppDomain()+"/api/v1/"+getTenantAlias()+"/graphql",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+n},body:JSON.stringify({query:"\n query checkReferralFraudStatus($programId: ID) {\n viewer {\n ... on User {\n id\n instantAccessRewards(filter: { programId_eq: $programId }) {\n data {\n id\n pendingReasons\n cancelledReason\n }\n }\n }\n }\n }\n",variables:{programId:e}})})).then(function(e){if(!e.ok)throw new Error("Failed to fetch locale");return Promise.resolve(e.json()).then(function(e){var n;if(e.errors)throw new Error(JSON.stringify(e.errors,null,2));var t=(null==(n=e.data.viewer.instantAccessRewards)?void 0:n.data)||[];return t.some(function(e){return "SUSPECTED_FRAUD"===e.cancelledReason})?"DENIED":t.some(function(e){var n;return null==(n=e.pendingReasons)?void 0:n.includes("SUSPECTED_FRAUD")})?"PENDING_REVIEW":"APPROVED"})});}catch(e){return r(e)}return a&&a.then?a.then(void 0,r):a}(0,function(e){console.error(e);}))}catch(e){return Promise.reject(e)}}(e,t.authenticateManagedIdentityWithInstantAccess.token)).then(function(e){if("APPROVED"!==e)throw {name:"fraud_error",message:"Referral flagged as fraud."};var r=t.authenticateManagedIdentityWithInstantAccess.email;if(setUserIdentity({jwt:t.authenticateManagedIdentityWithInstantAccess.token,id:r,accountId:r}),"SquatchJS2"===n){var a=new CustomEvent("sq:user-registration",{bubbles:!0,detail:{userId:r,accountId:r}});document.dispatchEvent(a);}})}();return r&&r.then?r.then(function(e){return t}):t})}catch(e){return Promise.reject(e)}},{loading:a.loading,data:a.data,errors:a.errors}]}function bn(e,n){var t=useRef();return t.current&&equal(n,t.current.key)||(t.current={key:n,value:e()}),t.current.value}function wn(){return useReducer(function(e){return e+1},0)}function In(e){for(var n,t=ie(Object.getOwnPropertyNames(e));!(n=t()).done;){var r=e[n.value];r&&"object"==typeof r&&In(r);}return Object.freeze(e)}var Pn={loading:!0,data:void 0,errors:void 0};function En(e,n,t,r){var a=qe(e,Pn,te({batch:!0,protected:!1},r||{})),o=a[0],i=a[1],s=wn(),u=s[1];return bn(function(){!t&&i(n);},[e,n,i,s[0],t]),en({skip:t,update:i,variables:n}),In(te({},o,{refetch:u}))}function Fn(e){var n=T(),t=y(n,$n(e.namespace),e.initialValue),r=t[0],a=t[1];return y(n,kn(e.namespace),[r,a]),[r,a]}function Mn(e){var n=d(kn(e)),t=d($n(e));return n?[t,n[1]]:[void 0,void 0]}function Sn(e){var n=d(kn(e));if(n)return n[1]}function Dn(e){return d($n(e))}function $n(e){return e+"-value"}function kn(e){return e+"-state"}function An(e){var n=T(),t=En(e.query,e.variables||{},e.skip,te({batch:!0},e.options||{})),r=y(n,$n(e.namespace),t),a=r[0],o=r[1];return useEffect(function(){umd.deepEqual(t,a)||o(t);},[t,a]),t}function qn(e){return d($n(e))||{data:null,loading:!0,refetch:function(){return console.warn("component still loading")}}}function jn(){var e=wn()[1];return useEffect(function(){return history_default.listen(function(){e();})},[]),history_default.location}var Rn,xn=history_default;function Vn(e){var n=useState({limit:e.limit,offset:e.offset}),t=n[0],r=n[1],a=t.offset,o=t.limit,i=function(e,n){return e*n},s=function(e,n){return Math.ceil(e/n)||0};return {limit:o,setLimit:function(e){var n=s(a,e),o=i(e,n);r(te({},t,{limit:e,offset:o}));},offset:a,setCurrentPage:function(e){var n=i(e,o);r(function(e){return te({},e,{offset:n})});},calculatePagination:function(e,n){var t=s(a,o),r=function(e,n){return Math.ceil(e/n)||0}(n,o),i=0===e?"0":e>1?a+1+"-"+(a+e):""+(a+1);return {currentPage:t,pageCount:r,rangeOnPage:i,pageProgress:i+" of "+n}}}}function On(e,n,t,r,a){var o;void 0===r&&(r={}),void 0===a&&(a=!1);var i=Vn(t),s=i.limit,u=i.setLimit,c=i.setCurrentPage,d=i.calculatePagination,l=En(e,te({limit:s,offset:i.offset},r),a),f=l.loading,m=l.errors,v=l.refetch,g=n(l.data),p=d((null==g||null==(o=g.data)?void 0:o.length)||0,(null==g?void 0:g.totalCount)||0);return {envelope:g,states:{errors:m,loading:f,limit:s,currentPage:p.currentPage,pageCount:p.pageCount,pageProgress:p.pageProgress},callbacks:{refetch:v,setLimit:u,setCurrentPage:c}}}var Un=dist$1.gql(Rn||(Rn=ae(["\n mutation ($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));var Hn=1e3,Tn=60*Hn,Jn=60*Tn,Qn=24*Jn,zn=function(e,n){n=n||{};var t=typeof e;if("string"===t&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var n=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(n){var t=parseFloat(n[1]);switch((n[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*t;case"weeks":case"week":case"w":return 6048e5*t;case"days":case"day":case"d":return t*Qn;case"hours":case"hour":case"hrs":case"hr":case"h":return t*Jn;case"minutes":case"minute":case"mins":case"min":case"m":return t*Tn;case"seconds":case"second":case"secs":case"sec":case"s":return t*Hn;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}(e);if("number"===t&&isFinite(e))return n.long?function(e){var n=Math.abs(e);return n>=Qn?Gn(e,n,Qn,"day"):n>=Jn?Gn(e,n,Jn,"hour"):n>=Tn?Gn(e,n,Tn,"minute"):n>=Hn?Gn(e,n,Hn,"second"):e+" ms"}(e):function(e){var n=Math.abs(e);return n>=Qn?Math.round(e/Qn)+"d":n>=Jn?Math.round(e/Jn)+"h":n>=Tn?Math.round(e/Tn)+"m":n>=Hn?Math.round(e/Hn)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Gn(e,n,t,r){var a=n>=1.5*t;return Math.round(e/t)+" "+r+(a?"s":"")}var Bn,Kn,Zn,Xn,Yn,et=(function(e,n){n.formatArgs=function(n){if(n[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+n[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const t="color: "+this.color;n.splice(1,0,t,"color: inherit");let r=0,a=0;n[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(a=r));}),n.splice(a,0,t);},n.save=function(e){try{e?n.storage.setItem("debug",e):n.storage.removeItem("debug");}catch(e){}},n.load=function(){let e;try{e=n.storage.getItem("debug");}catch(e){}return !e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},n.useColors=function(){return !("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},n.storage=function(){try{return localStorage}catch(e){}}(),n.destroy=(()=>{let e=!1;return ()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));}})(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],n.log=console.debug||console.log||(()=>{}),e.exports=function(e){function n(e){let r,a=null;function o(...e){if(!o.enabled)return;const t=o,a=Number(new Date);t.diff=a-(r||a),t.prev=r,t.curr=a,r=a,e[0]=n.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,a)=>{if("%%"===r)return "%";i++;const o=n.formatters[a];return "function"==typeof o&&(r=o.call(t,e[i]),e.splice(i,1),i--),r}),n.formatArgs.call(t,e),(t.log||n.log).apply(t,e);}return o.namespace=e,o.useColors=n.useColors(),o.color=n.selectColor(e),o.extend=t,o.destroy=n.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null===a?n.enabled(e):a,set:e=>{a=e;}}),"function"==typeof n.init&&n.init(o),o}function t(e,t){const r=n(this.namespace+(void 0===t?":":t)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return n.debug=n,n.default=n,n.coerce=function(e){return e instanceof Error?e.stack||e.message:e},n.disable=function(){const e=[...n.names.map(r),...n.skips.map(r).map(e=>"-"+e)].join(",");return n.enable(""),e},n.enable=function(e){let t;n.save(e),n.names=[],n.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),a=r.length;for(t=0;t<a;t++)r[t]&&("-"===(e=r[t].replace(/\*/g,".*?"))[0]?n.skips.push(new RegExp("^"+e.substr(1)+"$")):n.names.push(new RegExp("^"+e+"$")));},n.enabled=function(e){if("*"===e[e.length-1])return !0;let t,r;for(t=0,r=n.skips.length;t<r;t++)if(n.skips[t].test(e))return !1;for(t=0,r=n.names.length;t<r;t++)if(n.names[t].test(e))return !0;return !1},n.humanize=zn,n.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");},Object.keys(e).forEach(t=>{n[t]=e[t];}),n.names=[],n.skips=[],n.formatters={},n.selectColor=function(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]},n.enable(n.load()),n}(n);const{formatters:t}=e.exports;t.j=function(e){try{return JSON.stringify(e)}catch(e){return "[UnexpectedJSONParseError]: "+e.message}};}(Bn={exports:{}},Bn.exports),Bn.exports),nt=et("sq:load-event"),tt=dist$1.gql(Kn||(Kn=ae(["\n mutation loadEvent($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));var at=et("sq:useForm"),ot=dist$1.gql(Zn||(Zn=ae(["\n query ($key: String!) {\n form(key: $key) {\n schema\n initialData {\n initialData\n isEnabled\n isEnabledErrorMessage\n }\n }\n }\n"]))),it=dist$1.gql(Xn||(Xn=ae(["\n mutation ($formSubmissionInput: FormSubmissionInput!) {\n submitForm(formSubmissionInput: $formSubmissionInput) {\n success\n results {\n ... on FormHandlerSubmissionResult {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n result\n }\n ... on FormHandlerError {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n errorType\n error\n errorCode\n }\n }\n }\n }\n"]))),st=dist$1.gql(Yn||(Yn=ae(["\n query ($formValidationInput: FormValidationInput!) {\n validateForm(formValidationInput: $formValidationInput) {\n valid\n results {\n ... on FormHandlerValidationResult {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n result\n }\n ... on FormHandlerError {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n errorType\n error\n errorCode\n }\n }\n }\n }\n"])));
|
|
9965
8798
|
|
|
9966
|
-
export { $e as $, An as A, B, Cn as C, Dn as D, En as E, Fn as F, J, K, Mn as M, On as O, Q, Sn as S, T, Ue as U, We as W, Xe as X, Y,
|
|
8799
|
+
export { $e as $, An as A, B, Cn as C, Dn as D, En as E, Fn as F, J, K, Mn as M, On as O, Q, Sn as S, T, Ue as U, We as W, Xe as X, Y, setUserIdentity as a, useCallback as b, xe as c, dist$1 as d, Te as e, Ke as f, getEnvironmentSDK as g, hn as h, isDemo as i, jn as j, ke as k, ln as l, memoize$1 as m, ne as n, an as o, setProgramId as p, ze as q, Ye as r, src as s, qn as t, un as u, vn as v, wn as w, xn as x, $n as y, z };
|