@foxy.io/elements 1.60.2 → 1.60.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/foxy-access-recovery-form.js +1 -1
- package/dist/cdn/foxy-address-card.js +1 -1
- package/dist/cdn/foxy-address-form.js +1 -1
- package/dist/cdn/foxy-admin-subscription-card.js +1 -1
- package/dist/cdn/foxy-admin-subscription-form.js +1 -1
- package/dist/cdn/foxy-admin-transaction-card.js +1 -1
- package/dist/cdn/foxy-api-browser.js +2 -2
- package/dist/cdn/foxy-applied-coupon-code-card.js +1 -1
- package/dist/cdn/foxy-applied-coupon-code-form.js +1 -1
- package/dist/cdn/foxy-applied-tax-card.js +1 -1
- package/dist/cdn/foxy-attribute-card.js +1 -1
- package/dist/cdn/foxy-attribute-form.js +1 -1
- package/dist/cdn/foxy-billing-address-card.js +1 -1
- package/dist/cdn/foxy-cancellation-form.js +1 -1
- package/dist/cdn/foxy-cart-card.js +1 -1
- package/dist/cdn/foxy-cart-form.js +2 -2
- package/dist/cdn/foxy-client-card.js +1 -1
- package/dist/cdn/foxy-client-form.js +1 -1
- package/dist/cdn/foxy-collection-page.js +1 -1
- package/dist/cdn/foxy-collection-pages.js +1 -1
- package/dist/cdn/foxy-copy-to-clipboard.js +1 -1
- package/dist/cdn/foxy-coupon-card.js +1 -1
- package/dist/cdn/foxy-coupon-code-card.js +1 -1
- package/dist/cdn/foxy-coupon-code-form.js +1 -1
- package/dist/cdn/foxy-coupon-codes-form.js +1 -1
- package/dist/cdn/foxy-coupon-detail-card.js +1 -1
- package/dist/cdn/foxy-coupon-form.js +1 -1
- package/dist/cdn/foxy-custom-field-card.js +1 -1
- package/dist/cdn/foxy-custom-field-form.js +1 -1
- package/dist/cdn/foxy-customer-card.js +1 -1
- package/dist/cdn/foxy-customer-form.js +1 -1
- package/dist/cdn/foxy-customer-portal-settings-form.js +1 -1
- package/dist/cdn/foxy-customer-portal-settings.js +1 -1
- package/dist/cdn/foxy-customer-portal.js +13 -13
- package/dist/cdn/foxy-customer.js +6 -6
- package/dist/cdn/foxy-customers-table.js +1 -1
- package/dist/cdn/foxy-discount-builder.js +1 -1
- package/dist/cdn/foxy-discount-card.js +1 -1
- package/dist/cdn/foxy-discount-detail-card.js +1 -1
- package/dist/cdn/foxy-donation.js +1 -1
- package/dist/cdn/foxy-downloadable-card.js +1 -1
- package/dist/cdn/foxy-downloadable-form.js +6 -6
- package/dist/cdn/foxy-email-template-card.js +1 -1
- package/dist/cdn/foxy-email-template-form.js +1 -1
- package/dist/cdn/foxy-error-entry-card.js +1 -1
- package/dist/cdn/foxy-experimental-add-to-cart-builder.js +1 -1
- package/dist/cdn/foxy-filter-attribute-card.js +1 -1
- package/dist/cdn/foxy-filter-attribute-form.js +1 -1
- package/dist/cdn/foxy-form-dialog.js +1 -1
- package/dist/cdn/foxy-generate-codes-form.js +1 -1
- package/dist/cdn/foxy-gift-card-card.js +1 -1
- package/dist/cdn/foxy-gift-card-code-card.js +1 -1
- package/dist/cdn/foxy-gift-card-code-form.js +1 -1
- package/dist/cdn/foxy-gift-card-code-log-card.js +1 -1
- package/dist/cdn/foxy-gift-card-codes-form.js +1 -1
- package/dist/cdn/foxy-gift-card-form.js +1 -1
- package/dist/cdn/foxy-i18n-editor.js +6 -6
- package/dist/cdn/foxy-i18n.js +1 -1
- package/dist/cdn/foxy-integration-card.js +1 -1
- package/dist/cdn/foxy-integration-form.js +1 -1
- package/dist/cdn/foxy-item-card.js +1 -1
- package/dist/cdn/foxy-item-category-card.js +1 -1
- package/dist/cdn/foxy-item-category-form.js +1 -1
- package/dist/cdn/foxy-item-form.js +1 -1
- package/dist/cdn/foxy-item-option-card.js +1 -1
- package/dist/cdn/foxy-item-option-form.js +1 -1
- package/dist/cdn/foxy-items-form.js +1 -1
- package/dist/cdn/foxy-native-integration-card.js +1 -1
- package/dist/cdn/foxy-native-integration-form.js +1 -1
- package/dist/cdn/foxy-pagination.js +1 -1
- package/dist/cdn/foxy-passkey-card.js +1 -1
- package/dist/cdn/foxy-passkey-form.js +1 -1
- package/dist/cdn/foxy-payment-card-embed.js +1 -1
- package/dist/cdn/foxy-payment-card.js +1 -1
- package/dist/cdn/foxy-payment-method-card.js +1 -1
- package/dist/cdn/foxy-payments-api-fraud-protection-card.js +1 -1
- package/dist/cdn/foxy-payments-api-fraud-protection-form.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-method-card.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-method-form.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-preset-card.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-preset-form.js +1 -1
- package/dist/cdn/foxy-query-builder.js +1 -1
- package/dist/cdn/foxy-report-form.js +1 -1
- package/dist/cdn/foxy-reports-table.js +6 -6
- package/dist/cdn/foxy-shipment-card.js +1 -1
- package/dist/cdn/foxy-shipping-container-card.js +1 -1
- package/dist/cdn/foxy-shipping-drop-type-card.js +1 -1
- package/dist/cdn/foxy-shipping-method-card.js +1 -1
- package/dist/cdn/foxy-shipping-service-card.js +1 -1
- package/dist/cdn/foxy-sign-in-form.js +1 -1
- package/dist/cdn/foxy-spinner.js +2 -2
- package/dist/cdn/foxy-store-card.js +1 -1
- package/dist/cdn/foxy-store-form.js +1 -1
- package/dist/cdn/foxy-store-shipping-method-form.js +1 -1
- package/dist/cdn/foxy-store-transaction-folder-card.js +1 -1
- package/dist/cdn/foxy-store-transaction-folder-form.js +1 -1
- package/dist/cdn/foxy-subscription-card.js +1 -1
- package/dist/cdn/foxy-subscription-form.js +1 -1
- package/dist/cdn/foxy-subscription-settings-form.js +1 -1
- package/dist/cdn/foxy-subscriptions-table.js +1 -1
- package/dist/cdn/foxy-table.js +1 -1
- package/dist/cdn/foxy-tax-card.js +1 -1
- package/dist/cdn/foxy-tax-form.js +1 -1
- package/dist/cdn/foxy-template-config-form.js +1 -1
- package/dist/cdn/foxy-template-form.js +1 -1
- package/dist/cdn/foxy-template-set-card.js +1 -1
- package/dist/cdn/foxy-template-set-form.js +1 -1
- package/dist/cdn/foxy-transaction-card.js +1 -1
- package/dist/cdn/foxy-transaction.js +1 -1
- package/dist/cdn/foxy-transactions-table.js +5 -5
- package/dist/cdn/foxy-update-payment-method-form.js +1 -1
- package/dist/cdn/foxy-user-card.js +1 -1
- package/dist/cdn/foxy-user-form.js +1 -1
- package/dist/cdn/foxy-user-invitation-card.js +1 -1
- package/dist/cdn/foxy-user-invitation-form.js +1 -1
- package/dist/cdn/foxy-users-table.js +1 -1
- package/dist/cdn/foxy-webhook-card.js +1 -1
- package/dist/cdn/foxy-webhook-form.js +1 -1
- package/dist/cdn/foxy-webhook-log-card.js +1 -1
- package/dist/cdn/foxy-webhook-status-card.js +1 -1
- package/dist/cdn/{shared-53a5212e.js → shared-008f545f.js} +1 -1
- package/dist/cdn/shared-011f505c.js +1 -0
- package/dist/cdn/{shared-affe06c0.js → shared-148b225a.js} +1 -1
- package/dist/cdn/{shared-56741bad.js → shared-14dccf44.js} +2 -2
- package/dist/cdn/{shared-8be109a9.js → shared-16ccc5a3.js} +1 -1
- package/dist/cdn/{shared-e9f9face.js → shared-17d649db.js} +3 -3
- package/dist/cdn/{shared-c59277a4.js → shared-203661bc.js} +6 -6
- package/dist/cdn/{shared-4ed4b075.js → shared-21aa7698.js} +1 -1
- package/dist/cdn/shared-318fa017.js +1 -0
- package/dist/cdn/{shared-f77994ad.js → shared-3bce049d.js} +1 -1
- package/dist/cdn/shared-3be05a73.js +1 -0
- package/dist/cdn/{shared-19c47f53.js → shared-3c6bd82f.js} +1 -1
- package/dist/cdn/{shared-91483320.js → shared-40a4e82a.js} +1 -1
- package/dist/cdn/{shared-cfc6735e.js → shared-419d5254.js} +1 -1
- package/dist/cdn/{shared-34262bb8.js → shared-41ca9c98.js} +4 -4
- package/dist/cdn/{shared-5dbd66e3.js → shared-442c25c1.js} +2 -2
- package/dist/cdn/shared-45c7e449.js +105 -0
- package/dist/cdn/shared-47f1af66.js +1 -0
- package/dist/cdn/{shared-3a61d8a6.js → shared-4a881a9d.js} +5 -5
- package/dist/cdn/{shared-8292d44e.js → shared-516ae1e9.js} +1 -1
- package/dist/cdn/shared-531e6727.js +1 -0
- package/dist/cdn/{shared-3fd75ee6.js → shared-54090fd9.js} +10 -10
- package/dist/cdn/{shared-af4f71bf.js → shared-588de3ef.js} +5 -5
- package/dist/cdn/shared-61ade33e.js +6 -0
- package/dist/cdn/shared-61c4d03e.js +1 -0
- package/dist/cdn/shared-64de5f0c.js +1 -0
- package/dist/cdn/{shared-d2f777dc.js → shared-6658a069.js} +1 -1
- package/dist/cdn/{shared-56278a3c.js → shared-6ea0138f.js} +1 -1
- package/dist/cdn/{shared-7e28c953.js → shared-704c2ffc.js} +1 -1
- package/dist/cdn/{shared-eb349085.js → shared-7073576b.js} +1 -1
- package/dist/cdn/{shared-cf1965cb.js → shared-720c03fa.js} +1 -1
- package/dist/cdn/{shared-18707481.js → shared-73f0cdaa.js} +1 -1
- package/dist/cdn/{shared-b48cd5d3.js → shared-7432504a.js} +1 -1
- package/dist/cdn/{shared-d8b880bb.js → shared-753a50d4.js} +17 -17
- package/dist/cdn/shared-819dd677.js +1 -0
- package/dist/cdn/{shared-98457d79.js → shared-8d330222.js} +2 -2
- package/dist/cdn/{shared-62ee726e.js → shared-979249a1.js} +1 -1
- package/dist/cdn/{shared-a8ae24f0.js → shared-9dc42d11.js} +4 -10
- package/dist/cdn/{shared-2fbfbe12.js → shared-9decd661.js} +1 -1
- package/dist/cdn/{shared-a95a66b8.js → shared-a0496f20.js} +1 -1
- package/dist/cdn/shared-a44f3de4.js +1 -0
- package/dist/cdn/{shared-48910b3f.js → shared-a534736d.js} +1 -1
- package/dist/cdn/{shared-0811ea40.js → shared-a5ff1e1c.js} +8 -8
- package/dist/cdn/{shared-32a39c0b.js → shared-a99b7519.js} +1 -1
- package/dist/cdn/{shared-f9c8881a.js → shared-ad84d6a4.js} +1 -1
- package/dist/cdn/shared-b8949649.js +1 -0
- package/dist/cdn/{shared-4ab85bea.js → shared-b9142668.js} +1 -1
- package/dist/cdn/{shared-ac536c67.js → shared-bdb50069.js} +1 -1
- package/dist/cdn/shared-bdf082ac.js +1 -0
- package/dist/cdn/shared-cc142706.js +1 -0
- package/dist/cdn/shared-cf151085.js +348 -0
- package/dist/cdn/{shared-7b15217c.js → shared-cf25faa5.js} +1 -1
- package/dist/cdn/{shared-091e97f3.js → shared-d412fe96.js} +1 -1
- package/dist/cdn/shared-d44fb24c.js +1 -0
- package/dist/cdn/shared-d6d5e0dd.js +1 -0
- package/dist/cdn/{shared-8f5c8c08.js → shared-d77ef768.js} +1 -1
- package/dist/cdn/{shared-a08f594b.js → shared-db9b2367.js} +2 -2
- package/dist/cdn/shared-e52affbe.js +1 -0
- package/dist/cdn/{shared-40a2705c.js → shared-ed75f74d.js} +1 -1
- package/dist/cdn/{shared-8062bbb8.js → shared-ee0c1d46.js} +1 -1
- package/dist/cdn/{shared-c066b7fd.js → shared-f2e36f0f.js} +1 -1
- package/dist/cdn/shared-f3538b44.js +1 -0
- package/dist/cdn/shared-fd2438e9.js +1 -0
- package/dist/cdn/translations/admin-subscription-form/en.json +0 -1
- package/dist/cdn/translations/customer-portal/de.json +1 -0
- package/dist/cdn/translations/customer-portal/en.json +1 -0
- package/dist/cdn/translations/customer-portal/es.json +1 -0
- package/dist/cdn/translations/customer-portal/fr.json +1 -0
- package/dist/cdn/translations/customer-portal/nl.json +1 -0
- package/dist/cdn/translations/customer-portal/pl.json +1 -0
- package/dist/cdn/translations/customer-portal/sv.json +1 -0
- package/dist/cdn/translations/customer-portal/zh-HK.json +1 -0
- package/dist/cdn/translations/payment-card/en.json +0 -1
- package/dist/cdn/translations/transaction/en.json +0 -1
- package/dist/elements/internal/InternalAsyncListControl/InternalAsyncListControl.js +12 -12
- package/dist/elements/internal/InternalAsyncListControl/InternalAsyncListControl.js.map +1 -1
- package/dist/elements/internal/InternalAsyncListControl/InternalAsyncListControlFilterOverlay.js +4 -4
- package/dist/elements/internal/InternalAsyncListControl/InternalAsyncListControlFilterOverlay.js.map +1 -1
- package/dist/elements/internal/InternalAsyncListControl/index.d.ts +1 -1
- package/dist/elements/internal/InternalAsyncListControl/index.js +1 -1
- package/dist/elements/internal/InternalAsyncListControl/index.js.map +1 -1
- package/dist/elements/internal/InternalBulkAddActionControl/InternalBulkAddActionControl.js +2 -2
- package/dist/elements/internal/InternalBulkAddActionControl/InternalBulkAddActionControl.js.map +1 -1
- package/dist/elements/internal/InternalBulkAddActionControl/index.d.ts +1 -1
- package/dist/elements/internal/InternalBulkAddActionControl/index.js +1 -1
- package/dist/elements/internal/InternalBulkAddActionControl/index.js.map +1 -1
- package/dist/elements/internal/InternalButton/InternalButton.d.ts +26 -0
- package/dist/elements/internal/InternalButton/InternalButton.js +379 -0
- package/dist/elements/internal/InternalButton/InternalButton.js.map +1 -0
- package/dist/elements/internal/InternalButton/index.d.ts +12 -0
- package/dist/elements/internal/InternalButton/index.js +9 -0
- package/dist/elements/internal/InternalButton/index.js.map +1 -0
- package/dist/elements/internal/InternalCalendar/InternalCalendar.js +4 -4
- package/dist/elements/internal/InternalCalendar/InternalCalendar.js.map +1 -1
- package/dist/elements/internal/InternalCalendar/index.d.ts +1 -1
- package/dist/elements/internal/InternalCalendar/index.js +1 -1
- package/dist/elements/internal/InternalCalendar/index.js.map +1 -1
- package/dist/elements/internal/InternalConfirmDialog/InternalConfirmDialog.js +4 -4
- package/dist/elements/internal/InternalConfirmDialog/InternalConfirmDialog.js.map +1 -1
- package/dist/elements/internal/InternalConfirmDialog/index.d.ts +1 -1
- package/dist/elements/internal/InternalConfirmDialog/index.js +1 -1
- package/dist/elements/internal/InternalConfirmDialog/index.js.map +1 -1
- package/dist/elements/internal/InternalDeleteControl/InternalDeleteControl.d.ts +2 -1
- package/dist/elements/internal/InternalDeleteControl/InternalDeleteControl.js +4 -3
- package/dist/elements/internal/InternalDeleteControl/InternalDeleteControl.js.map +1 -1
- package/dist/elements/internal/InternalDeleteControl/index.d.ts +0 -1
- package/dist/elements/internal/InternalDeleteControl/index.js +0 -1
- package/dist/elements/internal/InternalDeleteControl/index.js.map +1 -1
- package/dist/elements/internal/InternalForm/InternalForm.js +4 -4
- package/dist/elements/internal/InternalForm/InternalForm.js.map +1 -1
- package/dist/elements/internal/InternalForm/index.d.ts +1 -1
- package/dist/elements/internal/InternalForm/index.js +1 -1
- package/dist/elements/internal/InternalForm/index.js.map +1 -1
- package/dist/elements/internal/InternalPostActionControl/InternalPostActionControl.d.ts +1 -0
- package/dist/elements/internal/InternalPostActionControl/InternalPostActionControl.js +3 -2
- package/dist/elements/internal/InternalPostActionControl/InternalPostActionControl.js.map +1 -1
- package/dist/elements/internal/InternalPostActionControl/InternalPostActionControlDialog.js +10 -6
- package/dist/elements/internal/InternalPostActionControl/InternalPostActionControlDialog.js.map +1 -1
- package/dist/elements/internal/InternalPostActionControl/index.d.ts +1 -1
- package/dist/elements/internal/InternalPostActionControl/index.js +1 -1
- package/dist/elements/internal/InternalPostActionControl/index.js.map +1 -1
- package/dist/elements/internal/InternalResourcePickerControl/InternalResourcePickerControl.js +2 -2
- package/dist/elements/internal/InternalResourcePickerControl/InternalResourcePickerControl.js.map +1 -1
- package/dist/elements/internal/InternalResourcePickerControl/index.d.ts +1 -1
- package/dist/elements/internal/InternalResourcePickerControl/index.js +1 -1
- package/dist/elements/internal/InternalResourcePickerControl/index.js.map +1 -1
- package/dist/elements/internal/InternalSubmitControl/InternalSubmitControl.d.ts +1 -1
- package/dist/elements/internal/InternalSubmitControl/InternalSubmitControl.js +3 -3
- package/dist/elements/internal/InternalSubmitControl/InternalSubmitControl.js.map +1 -1
- package/dist/elements/internal/InternalSubmitControl/index.d.ts +1 -1
- package/dist/elements/internal/InternalSubmitControl/index.js +1 -1
- package/dist/elements/internal/InternalSubmitControl/index.js.map +1 -1
- package/dist/elements/internal/InternalUndoControl/InternalUndoControl.d.ts +1 -1
- package/dist/elements/internal/InternalUndoControl/InternalUndoControl.js +3 -3
- package/dist/elements/internal/InternalUndoControl/InternalUndoControl.js.map +1 -1
- package/dist/elements/internal/InternalUndoControl/index.d.ts +1 -1
- package/dist/elements/internal/InternalUndoControl/index.js +1 -1
- package/dist/elements/internal/InternalUndoControl/index.js.map +1 -1
- package/dist/elements/private/Dialog/Dialog.d.ts +1 -0
- package/dist/elements/private/Dialog/Dialog.js +5 -4
- package/dist/elements/private/Dialog/Dialog.js.map +1 -1
- package/dist/elements/private/ErrorScreen/ErrorScreen.d.ts +1 -0
- package/dist/elements/private/ErrorScreen/ErrorScreen.js +4 -4
- package/dist/elements/private/ErrorScreen/ErrorScreen.js.map +1 -1
- package/dist/elements/public/AccessRecoveryForm/AccessRecoveryForm.js +4 -4
- package/dist/elements/public/AccessRecoveryForm/AccessRecoveryForm.js.map +1 -1
- package/dist/elements/public/AccessRecoveryForm/index.d.ts +1 -1
- package/dist/elements/public/AccessRecoveryForm/index.js +1 -1
- package/dist/elements/public/AccessRecoveryForm/index.js.map +1 -1
- package/dist/elements/public/AdminSubscriptionForm/internal/InternalAdminSubscriptionFormStatusAction/InternalAdminSubscriptionFormStatusAction.js +2 -2
- package/dist/elements/public/AdminSubscriptionForm/internal/InternalAdminSubscriptionFormStatusAction/InternalAdminSubscriptionFormStatusAction.js.map +1 -1
- package/dist/elements/public/AdminSubscriptionForm/internal/InternalAdminSubscriptionFormStatusAction/index.d.ts +1 -1
- package/dist/elements/public/AdminSubscriptionForm/internal/InternalAdminSubscriptionFormStatusAction/index.js +1 -1
- package/dist/elements/public/AdminSubscriptionForm/internal/InternalAdminSubscriptionFormStatusAction/index.js.map +1 -1
- package/dist/elements/public/AdminSubscriptionForm/internal/InternalAdminSubscriptionFormStatusActionForm/InternalAdminSubscriptionFormStatusActionForm.js +2 -2
- package/dist/elements/public/AdminSubscriptionForm/internal/InternalAdminSubscriptionFormStatusActionForm/InternalAdminSubscriptionFormStatusActionForm.js.map +1 -1
- package/dist/elements/public/AdminSubscriptionForm/internal/InternalAdminSubscriptionFormStatusActionForm/index.d.ts +1 -1
- package/dist/elements/public/AdminSubscriptionForm/internal/InternalAdminSubscriptionFormStatusActionForm/index.js +1 -1
- package/dist/elements/public/AdminSubscriptionForm/internal/InternalAdminSubscriptionFormStatusActionForm/index.js.map +1 -1
- package/dist/elements/public/ApiBrowser/ApiBrowser.js +12 -12
- package/dist/elements/public/ApiBrowser/ApiBrowser.js.map +1 -1
- package/dist/elements/public/ApiBrowser/index.d.ts +1 -1
- package/dist/elements/public/ApiBrowser/index.js +1 -1
- package/dist/elements/public/ApiBrowser/index.js.map +1 -1
- package/dist/elements/public/ApiBrowser/internal/InternalApiBrowserResourceForm/InternalApiBrowserResourceForm.js +4 -4
- package/dist/elements/public/ApiBrowser/internal/InternalApiBrowserResourceForm/InternalApiBrowserResourceForm.js.map +1 -1
- package/dist/elements/public/ApiBrowser/internal/InternalApiBrowserResourceForm/index.d.ts +1 -1
- package/dist/elements/public/ApiBrowser/internal/InternalApiBrowserResourceForm/index.js +1 -1
- package/dist/elements/public/ApiBrowser/internal/InternalApiBrowserResourceForm/index.js.map +1 -1
- package/dist/elements/public/CancellationForm/CancellationForm.js +3 -2
- package/dist/elements/public/CancellationForm/CancellationForm.js.map +1 -1
- package/dist/elements/public/CancellationForm/index.d.ts +1 -1
- package/dist/elements/public/CancellationForm/index.js +1 -1
- package/dist/elements/public/CancellationForm/index.js.map +1 -1
- package/dist/elements/public/CartForm/internal/InternalCartFormAddressSummaryItem/InternalCartFormAddressSummaryItem.js +4 -4
- package/dist/elements/public/CartForm/internal/InternalCartFormAddressSummaryItem/InternalCartFormAddressSummaryItem.js.map +1 -1
- package/dist/elements/public/CartForm/internal/InternalCartFormAddressSummaryItem/index.d.ts +1 -1
- package/dist/elements/public/CartForm/internal/InternalCartFormAddressSummaryItem/index.js +1 -1
- package/dist/elements/public/CartForm/internal/InternalCartFormAddressSummaryItem/index.js.map +1 -1
- package/dist/elements/public/CollectionPages/CollectionPages.js +5 -2
- package/dist/elements/public/CollectionPages/CollectionPages.js.map +1 -1
- package/dist/elements/public/CollectionPages/index.d.ts +1 -1
- package/dist/elements/public/CollectionPages/index.js +1 -1
- package/dist/elements/public/CollectionPages/index.js.map +1 -1
- package/dist/elements/public/CopyToClipboard/CopyToClipboard.d.ts +1 -0
- package/dist/elements/public/CopyToClipboard/CopyToClipboard.js +4 -2
- package/dist/elements/public/CopyToClipboard/CopyToClipboard.js.map +1 -1
- package/dist/elements/public/Customer/Customer.d.ts +1 -0
- package/dist/elements/public/Customer/Customer.js +10 -8
- package/dist/elements/public/Customer/Customer.js.map +1 -1
- package/dist/elements/public/Customer/index.d.ts +0 -1
- package/dist/elements/public/Customer/index.js +0 -1
- package/dist/elements/public/Customer/index.js.map +1 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalLoggedInView.js +2 -2
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalLoggedInView.js.map +1 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalLoggedOutView.js +8 -8
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalLoggedOutView.js.map +1 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalPasswordResetView.js +4 -4
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalPasswordResetView.js.map +1 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalSubscriptions.js +2 -2
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalSubscriptions.js.map +1 -1
- package/dist/elements/public/CustomerPortal/index.d.ts +1 -0
- package/dist/elements/public/CustomerPortal/index.js +3 -0
- package/dist/elements/public/CustomerPortal/index.js.map +1 -1
- package/dist/elements/public/CustomerPortalSettings/CustomerPortalSettings.d.ts +1 -1
- package/dist/elements/public/CustomerPortalSettings/CustomerPortalSettings.js +6 -5
- package/dist/elements/public/CustomerPortalSettings/CustomerPortalSettings.js.map +1 -1
- package/dist/elements/public/CustomerPortalSettings/private/DisallowedDates/DisallowedDates.d.ts +1 -0
- package/dist/elements/public/CustomerPortalSettings/private/DisallowedDates/DisallowedDates.js +4 -4
- package/dist/elements/public/CustomerPortalSettings/private/DisallowedDates/DisallowedDates.js.map +1 -1
- package/dist/elements/public/CustomerPortalSettings/private/FrequencyInput/FrequencyInput.d.ts +0 -1
- package/dist/elements/public/CustomerPortalSettings/private/FrequencyInput/FrequencyInput.js +0 -1
- package/dist/elements/public/CustomerPortalSettings/private/FrequencyInput/FrequencyInput.js.map +1 -1
- package/dist/elements/public/CustomerPortalSettings/private/FrequencyList/FrequencyList.d.ts +1 -0
- package/dist/elements/public/CustomerPortalSettings/private/FrequencyList/FrequencyList.js +4 -2
- package/dist/elements/public/CustomerPortalSettings/private/FrequencyList/FrequencyList.js.map +1 -1
- package/dist/elements/public/CustomerPortalSettings/private/FrequencyModification/FrequencyModification.d.ts +1 -1
- package/dist/elements/public/CustomerPortalSettings/private/FrequencyModification/FrequencyModification.js +4 -3
- package/dist/elements/public/CustomerPortalSettings/private/FrequencyModification/FrequencyModification.js.map +1 -1
- package/dist/elements/public/CustomerPortalSettings/private/NextDateModification/NextDateModification.d.ts +1 -1
- package/dist/elements/public/CustomerPortalSettings/private/NextDateModification/NextDateModification.js +4 -3
- package/dist/elements/public/CustomerPortalSettings/private/NextDateModification/NextDateModification.js.map +1 -1
- package/dist/elements/public/CustomerPortalSettings/private/OriginsList/OriginsList.d.ts +1 -1
- package/dist/elements/public/CustomerPortalSettings/private/OriginsList/OriginsList.js +4 -3
- package/dist/elements/public/CustomerPortalSettings/private/OriginsList/OriginsList.js.map +1 -1
- package/dist/elements/public/CustomerPortalSettings/private/SessionSecret/SessionSecret.d.ts +1 -0
- package/dist/elements/public/CustomerPortalSettings/private/SessionSecret/SessionSecret.js +4 -4
- package/dist/elements/public/CustomerPortalSettings/private/SessionSecret/SessionSecret.js.map +1 -1
- package/dist/elements/public/Donation/Donation.d.ts +1 -1
- package/dist/elements/public/Donation/Donation.js +4 -3
- package/dist/elements/public/Donation/Donation.js.map +1 -1
- package/dist/elements/public/EmailTemplateForm/internal/InternalEmailTemplateFormAsyncAction/InternalEmailTemplateFormAsyncAction.js +2 -2
- package/dist/elements/public/EmailTemplateForm/internal/InternalEmailTemplateFormAsyncAction/InternalEmailTemplateFormAsyncAction.js.map +1 -1
- package/dist/elements/public/EmailTemplateForm/internal/InternalEmailTemplateFormAsyncAction/index.d.ts +1 -1
- package/dist/elements/public/EmailTemplateForm/internal/InternalEmailTemplateFormAsyncAction/index.js +1 -1
- package/dist/elements/public/EmailTemplateForm/internal/InternalEmailTemplateFormAsyncAction/index.js.map +1 -1
- package/dist/elements/public/ExperimentalAddToCartBuilder/ExperimentalAddToCartBuilder.js +2 -2
- package/dist/elements/public/ExperimentalAddToCartBuilder/ExperimentalAddToCartBuilder.js.map +1 -1
- package/dist/elements/public/ExperimentalAddToCartBuilder/index.d.ts +1 -1
- package/dist/elements/public/ExperimentalAddToCartBuilder/index.js +1 -1
- package/dist/elements/public/ExperimentalAddToCartBuilder/index.js.map +1 -1
- package/dist/elements/public/ExperimentalAddToCartBuilder/internal/InternalExperimentalAddToCartBuilderItemControl/InternalExperimentalAddToCartBuilderItemControl.js +2 -2
- package/dist/elements/public/ExperimentalAddToCartBuilder/internal/InternalExperimentalAddToCartBuilderItemControl/InternalExperimentalAddToCartBuilderItemControl.js.map +1 -1
- package/dist/elements/public/ExperimentalAddToCartBuilder/internal/InternalExperimentalAddToCartBuilderItemControl/index.d.ts +1 -1
- package/dist/elements/public/ExperimentalAddToCartBuilder/internal/InternalExperimentalAddToCartBuilderItemControl/index.js +1 -1
- package/dist/elements/public/ExperimentalAddToCartBuilder/internal/InternalExperimentalAddToCartBuilderItemControl/index.js.map +1 -1
- package/dist/elements/public/FilterAttributeForm/FilterAttributeForm.js +4 -4
- package/dist/elements/public/FilterAttributeForm/FilterAttributeForm.js.map +1 -1
- package/dist/elements/public/FilterAttributeForm/index.d.ts +1 -1
- package/dist/elements/public/FilterAttributeForm/index.js +1 -1
- package/dist/elements/public/FilterAttributeForm/index.js.map +1 -1
- package/dist/elements/public/I18nEditor/internal/InternalI18nEditorEntry/InternalI18nEditorEntry.js +5 -5
- package/dist/elements/public/I18nEditor/internal/InternalI18nEditorEntry/InternalI18nEditorEntry.js.map +1 -1
- package/dist/elements/public/I18nEditor/internal/InternalI18nEditorEntry/index.d.ts +1 -1
- package/dist/elements/public/I18nEditor/internal/InternalI18nEditorEntry/index.js +1 -1
- package/dist/elements/public/I18nEditor/internal/InternalI18nEditorEntry/index.js.map +1 -1
- package/dist/elements/public/IntegrationForm/IntegrationForm.js +2 -2
- package/dist/elements/public/IntegrationForm/IntegrationForm.js.map +1 -1
- package/dist/elements/public/IntegrationForm/index.d.ts +1 -1
- package/dist/elements/public/IntegrationForm/index.js +1 -1
- package/dist/elements/public/IntegrationForm/index.js.map +1 -1
- package/dist/elements/public/ItemCard/ItemCard.js +2 -2
- package/dist/elements/public/ItemCard/ItemCard.js.map +1 -1
- package/dist/elements/public/ItemsForm/ItemsForm.d.ts +1 -1
- package/dist/elements/public/ItemsForm/ItemsForm.js +4 -3
- package/dist/elements/public/ItemsForm/ItemsForm.js.map +1 -1
- package/dist/elements/public/Pagination/Pagination.js +10 -10
- package/dist/elements/public/Pagination/Pagination.js.map +1 -1
- package/dist/elements/public/Pagination/index.d.ts +1 -1
- package/dist/elements/public/Pagination/index.js +1 -1
- package/dist/elements/public/Pagination/index.js.map +1 -1
- package/dist/elements/public/PaymentCard/PaymentCard.js +16 -5
- package/dist/elements/public/PaymentCard/PaymentCard.js.map +1 -1
- package/dist/elements/public/PaymentMethodCard/PaymentMethodCard.js +4 -4
- package/dist/elements/public/PaymentMethodCard/PaymentMethodCard.js.map +1 -1
- package/dist/elements/public/PaymentMethodCard/index.d.ts +1 -1
- package/dist/elements/public/PaymentMethodCard/index.js +1 -1
- package/dist/elements/public/PaymentMethodCard/index.js.map +1 -1
- package/dist/elements/public/PaymentsApiFraudProtectionForm/PaymentsApiFraudProtectionForm.js +2 -2
- package/dist/elements/public/PaymentsApiFraudProtectionForm/PaymentsApiFraudProtectionForm.js.map +1 -1
- package/dist/elements/public/PaymentsApiFraudProtectionForm/index.d.ts +1 -1
- package/dist/elements/public/PaymentsApiFraudProtectionForm/index.js +1 -1
- package/dist/elements/public/PaymentsApiFraudProtectionForm/index.js.map +1 -1
- package/dist/elements/public/PaymentsApiPaymentMethodForm/PaymentsApiPaymentMethodForm.js +4 -4
- package/dist/elements/public/PaymentsApiPaymentMethodForm/PaymentsApiPaymentMethodForm.js.map +1 -1
- package/dist/elements/public/PaymentsApiPaymentMethodForm/index.d.ts +1 -1
- package/dist/elements/public/PaymentsApiPaymentMethodForm/index.js +1 -1
- package/dist/elements/public/PaymentsApiPaymentMethodForm/index.js.map +1 -1
- package/dist/elements/public/SignInForm/SignInForm.js +4 -4
- package/dist/elements/public/SignInForm/SignInForm.js.map +1 -1
- package/dist/elements/public/SignInForm/index.d.ts +1 -1
- package/dist/elements/public/SignInForm/index.js +1 -1
- package/dist/elements/public/SignInForm/index.js.map +1 -1
- package/dist/elements/public/Spinner/Spinner.js +4 -4
- package/dist/elements/public/Spinner/Spinner.js.map +1 -1
- package/dist/elements/public/SubscriptionForm/index.d.ts +0 -1
- package/dist/elements/public/SubscriptionForm/index.js +0 -1
- package/dist/elements/public/SubscriptionForm/index.js.map +1 -1
- package/dist/elements/public/Table/Table.js +29 -20
- package/dist/elements/public/Table/Table.js.map +1 -1
- package/dist/elements/public/TemplateForm/internal/InternalTemplateFormAsyncAction/InternalTemplateFormAsyncAction.js +2 -2
- package/dist/elements/public/TemplateForm/internal/InternalTemplateFormAsyncAction/InternalTemplateFormAsyncAction.js.map +1 -1
- package/dist/elements/public/TemplateForm/internal/InternalTemplateFormAsyncAction/index.d.ts +1 -1
- package/dist/elements/public/TemplateForm/internal/InternalTemplateFormAsyncAction/index.js +1 -1
- package/dist/elements/public/TemplateForm/internal/InternalTemplateFormAsyncAction/index.js.map +1 -1
- package/dist/elements/public/Transaction/internal/InternalTransactionActionsControl/InternalTransactionActionsControl.js +2 -2
- package/dist/elements/public/Transaction/internal/InternalTransactionActionsControl/InternalTransactionActionsControl.js.map +1 -1
- package/dist/elements/public/Transaction/internal/InternalTransactionActionsControl/index.d.ts +1 -1
- package/dist/elements/public/Transaction/internal/InternalTransactionActionsControl/index.js +1 -1
- package/dist/elements/public/Transaction/internal/InternalTransactionActionsControl/index.js.map +1 -1
- package/dist/elements/public/TransactionsTable/TransactionsTable.js +1 -1
- package/dist/elements/public/TransactionsTable/TransactionsTable.js.map +1 -1
- package/dist/elements/public/UpdatePaymentMethodForm/internal/InternalUpdatePaymentMethodFormCcTokenControl/InternalUpdatePaymentMethodFormCcTokenControl.js +2 -2
- package/dist/elements/public/UpdatePaymentMethodForm/internal/InternalUpdatePaymentMethodFormCcTokenControl/InternalUpdatePaymentMethodFormCcTokenControl.js.map +1 -1
- package/dist/elements/public/UpdatePaymentMethodForm/internal/InternalUpdatePaymentMethodFormCcTokenControl/index.d.ts +1 -1
- package/dist/elements/public/UpdatePaymentMethodForm/internal/InternalUpdatePaymentMethodFormCcTokenControl/index.js +1 -1
- package/dist/elements/public/UpdatePaymentMethodForm/internal/InternalUpdatePaymentMethodFormCcTokenControl/index.js.map +1 -1
- package/dist/elements/public/UserInvitationForm/internal/InternalUserInvitationFormAsyncAction/InternalUserInvitationFormAsyncAction.js +2 -2
- package/dist/elements/public/UserInvitationForm/internal/InternalUserInvitationFormAsyncAction/InternalUserInvitationFormAsyncAction.js.map +1 -1
- package/dist/elements/public/UserInvitationForm/internal/InternalUserInvitationFormAsyncAction/index.d.ts +1 -1
- package/dist/elements/public/UserInvitationForm/internal/InternalUserInvitationFormAsyncAction/index.js +1 -1
- package/dist/elements/public/UserInvitationForm/internal/InternalUserInvitationFormAsyncAction/index.js.map +1 -1
- package/dist/elements/public/UsersTable/UsersTable.d.ts +1 -0
- package/dist/elements/public/UsersTable/UsersTable.js +3 -2
- package/dist/elements/public/UsersTable/UsersTable.js.map +1 -1
- package/dist/elements/public/UsersTable/index.d.ts +0 -1
- package/dist/elements/public/UsersTable/index.js +0 -1
- package/dist/elements/public/UsersTable/index.js.map +1 -1
- package/dist/mixins/themeable.d.ts +1 -0
- package/dist/mixins/themeable.js +53 -18
- package/dist/mixins/themeable.js.map +1 -1
- package/package.json +1 -1
- package/dist/cdn/shared-0996f4d0.js +0 -1
- package/dist/cdn/shared-142df717.js +0 -1
- package/dist/cdn/shared-1b414966.js +0 -1
- package/dist/cdn/shared-28cc8aa1.js +0 -1
- package/dist/cdn/shared-3bb289b3.js +0 -1
- package/dist/cdn/shared-3ef23488.js +0 -1
- package/dist/cdn/shared-41f93e6c.js +0 -1
- package/dist/cdn/shared-5b8c7250.js +0 -29
- package/dist/cdn/shared-5e7defee.js +0 -1
- package/dist/cdn/shared-6262e0d6.js +0 -1
- package/dist/cdn/shared-88f841ff.js +0 -1
- package/dist/cdn/shared-9b290320.js +0 -1
- package/dist/cdn/shared-c3d6bcc0.js +0 -231
- package/dist/cdn/shared-c56c3e1e.js +0 -1
- package/dist/cdn/shared-cda51ccf.js +0 -1
- package/dist/cdn/shared-dc6e5879.js +0 -1
- package/dist/cdn/shared-e2a5457f.js +0 -1
- package/dist/cdn/shared-e9f51baa.js +0 -1
- package/dist/cdn/shared-f410644a.js +0 -212
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
import{l as t,r as e,f as s,s as n,o as r,b as i,p as o,D as a,c as l,d as h,e as c,g as d,h as u,j as _,k as p,u as f,m,n as y,q as g,M as b,t as P,v as C,w as v,x as w,V as S,y as E,z as O,A as T,B as A,C as N,E as x,F as I,G as M}from"./shared-45c7e449.js";
|
|
2
|
+
/**
|
|
3
|
+
@license
|
|
4
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
5
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
6
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
7
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
8
|
+
Code distributed by Google as part of the polymer project is also
|
|
9
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
10
|
+
*/const D=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:t=>t});class k{constructor(t,e){F(t,e);const s=e.reduce(((e,s,n)=>e+R(s)+t[n+1]),t[0]);this.value=s.toString()}toString(){return this.value}}function R(t){if(t instanceof k)return t.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${t}`)}const L=function(t,...e){F(t,e);const s=document.createElement("template");let n=e.reduce(((e,s,n)=>e+function(t){if(t instanceof HTMLTemplateElement)return t.innerHTML;if(t instanceof k)return R(t);throw new Error(`non-template value passed to Polymer's html function: ${t}`)}(s)+t[n+1]),t[0]);return D&&(n=D.createHTML(n)),s.innerHTML=n,s},F=(t,e)=>{if(!Array.isArray(t)||!Array.isArray(t.raw)||e.length!==t.length-1)throw new TypeError("Invalid call to the html template tag")};
|
|
11
|
+
/**
|
|
12
|
+
@license
|
|
13
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
14
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
15
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
16
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
17
|
+
Code distributed by Google as part of the polymer project is also
|
|
18
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
19
|
+
*/
|
|
20
|
+
let H=0;const z=function(t){let e=t.__mixinApplications;e||(e=new WeakMap,t.__mixinApplications=e);let s=H++;return function(n){let r=n.__mixinSet;if(r&&r[s])return n;let i=e,o=i.get(n);if(!o){o=t(n),i.set(n,o);let e=Object.create(o.__mixinSet||r||null);e[s]=!0,o.__mixinSet=e}return o}},j=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?t=>ShadyDOM.patch(t):t=>t;
|
|
21
|
+
/**
|
|
22
|
+
@license
|
|
23
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
24
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
25
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
26
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
27
|
+
Code distributed by Google as part of the polymer project is also
|
|
28
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
@license
|
|
32
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
33
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
34
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
35
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
36
|
+
Code distributed by Google as part of the polymer project is also
|
|
37
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
38
|
+
*/
|
|
39
|
+
function B(t){return t.indexOf(".")>=0}function $(t){let e=t.indexOf(".");return-1===e?t:t.slice(0,e)}function U(t,e){return 0===t.indexOf(e+".")}function Y(t,e){return 0===e.indexOf(t+".")}function q(t,e,s){return e+s.slice(t.length)}function J(t,e){return t===e||U(t,e)||Y(t,e)}function V(t){if(Array.isArray(t)){let e=[];for(let s=0;s<t.length;s++){let n=t[s].toString().split(".");for(let t=0;t<n.length;t++)e.push(n[t])}return e.join(".")}return t}function X(t){return Array.isArray(t)?V(t).split("."):t.toString().split(".")}function G(t,e,s){let n=t,r=X(e);for(let t=0;t<r.length;t++){if(!n)return;n=n[r[t]]}return s&&(s.path=r.join(".")),n}function W(t,e,s){let n=t,r=X(e),i=r[r.length-1];if(r.length>1){for(let t=0;t<r.length-1;t++){if(n=n[r[t]],!n)return}n[i]=s}else n[e]=s;return r.join(".")}
|
|
40
|
+
/**
|
|
41
|
+
@license
|
|
42
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
43
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
44
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
45
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
46
|
+
Code distributed by Google as part of the polymer project is also
|
|
47
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
48
|
+
*/const K={},Z=/-[a-z]/g,Q=/([A-Z])/g;function tt(t){return K[t]||(K[t]=t.indexOf("-")<0?t:t.replace(Z,(t=>t[1].toUpperCase())))}function et(t){return K[t]||(K[t]=t.replace(Q,"-$1").toLowerCase())}
|
|
49
|
+
/**
|
|
50
|
+
@license
|
|
51
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
52
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
53
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
54
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
55
|
+
Code distributed by Google as part of the polymer project is also
|
|
56
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
57
|
+
*/let st=0,nt=0,rt=[],it=0,ot=!1,at=document.createTextNode("");new window.MutationObserver((function(){ot=!1;const t=rt.length;for(let e=0;e<t;e++){let t=rt[e];if(t)try{t()}catch(t){setTimeout((()=>{throw t}))}}rt.splice(0,t),nt+=t})).observe(at,{characterData:!0});const lt={after:t=>({run:e=>window.setTimeout(e,t),cancel(t){window.clearTimeout(t)}}),run:(t,e)=>window.setTimeout(t,e),cancel(t){window.clearTimeout(t)}},ht={run:t=>window.requestAnimationFrame(t),cancel(t){window.cancelAnimationFrame(t)}},ct={run:t=>window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16),cancel(t){window.cancelIdleCallback?window.cancelIdleCallback(t):window.clearTimeout(t)}},dt={run:t=>(ot||(ot=!0,at.textContent=it++),rt.push(t),st++),cancel(t){const e=t-nt;if(e>=0){if(!rt[e])throw new Error("invalid async handle: "+t);rt[e]=null}}},ut=dt,_t=z((t=>class extends t{static createProperties(t){const e=this.prototype;for(let s in t)s in e||e._createPropertyAccessor(s)}static attributeNameForProperty(t){return t.toLowerCase()}static typeForProperty(t){}_createPropertyAccessor(t,e){this._addPropertyToAttributeMap(t),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[t]||(this.__dataHasAccessor[t]=!0,this._definePropertyAccessor(t,e))}_addPropertyToAttributeMap(t){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let e=this.__dataAttributes[t];return e||(e=this.constructor.attributeNameForProperty(t),this.__dataAttributes[e]=t),e}_definePropertyAccessor(t,e){Object.defineProperty(this,t,{get(){return this.__data[t]},set:e?function(){}:function(e){this._setPendingProperty(t,e,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let t in this.__dataHasAccessor)this.hasOwnProperty(t)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[t]=this[t],delete this[t])}_initializeInstanceProperties(t){Object.assign(this,t)}_setProperty(t,e){this._setPendingProperty(t,e)&&this._invalidateProperties()}_getProperty(t){return this.__data[t]}_setPendingProperty(t,e,s){let n=this.__data[t],r=this._shouldPropertyChange(t,e,n);return r&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(t in this.__dataOld)&&(this.__dataOld[t]=n),this.__data[t]=e,this.__dataPending[t]=e),r}_isPropertyPending(t){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(t))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,ut.run((()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())})))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const t=this.__data,e=this.__dataPending,s=this.__dataOld;this._shouldPropertiesChange(t,e,s)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(t,e,s)),this.__dataCounter--}_shouldPropertiesChange(t,e,s){return Boolean(e)}_propertiesChanged(t,e,s){}_shouldPropertyChange(t,e,s){return s!==e&&(s==s||e==e)}attributeChangedCallback(t,e,s,n){e!==s&&this._attributeToProperty(t,s),super.attributeChangedCallback&&super.attributeChangedCallback(t,e,s,n)}_attributeToProperty(t,e,s){if(!this.__serializing){const n=this.__dataAttributes,r=n&&n[t]||t;this[r]=this._deserializeValue(e,s||this.constructor.typeForProperty(r))}}_propertyToAttribute(t,e,s){this.__serializing=!0,s=arguments.length<3?this[t]:s,this._valueToNodeAttribute(this,s,e||this.constructor.attributeNameForProperty(t)),this.__serializing=!1}_valueToNodeAttribute(t,e,s){const n=this._serializeValue(e);"class"!==s&&"name"!==s&&"slot"!==s||(t=j(t)),void 0===n?t.removeAttribute(s):t.setAttribute(s,""===n&&window.trustedTypes?window.trustedTypes.emptyScript:n)}_serializeValue(t){return"boolean"==typeof t?t?"":void 0:null!=t?t.toString():void 0}_deserializeValue(t,e){switch(e){case Boolean:return null!==t;case Number:return Number(t);default:return t}}})),pt={};let ft=HTMLElement.prototype;for(;ft;){let t=Object.getOwnPropertyNames(ft);for(let e=0;e<t.length;e++)pt[t[e]]=!0;ft=Object.getPrototypeOf(ft)}const mt=window.trustedTypes?t=>trustedTypes.isHTML(t)||trustedTypes.isScript(t)||trustedTypes.isScriptURL(t):()=>!1;const yt=z((t=>{const e=_t(t);return class extends e{static createPropertiesForAttributes(){let t=this.observedAttributes;for(let e=0;e<t.length;e++)this.prototype._createPropertyAccessor(tt(t[e]))}static attributeNameForProperty(t){return et(t)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(t){for(let e in t)this._setProperty(e,t[e])}_ensureAttribute(t,e){const s=this;s.hasAttribute(t)||this._valueToNodeAttribute(s,e,t)}_serializeValue(t){if("object"==typeof t){if(t instanceof Date)return t.toString();if(t){if(mt(t))return t;try{return JSON.stringify(t)}catch(t){return""}}}return super._serializeValue(t)}_deserializeValue(t,e){let s;switch(e){case Object:try{s=JSON.parse(t)}catch(e){s=t}break;case Array:try{s=JSON.parse(t)}catch(e){s=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${t}`)}break;case Date:s=isNaN(t)?String(t):Number(t),s=new Date(s);break;default:s=super._deserializeValue(t,e)}return s}_definePropertyAccessor(t,e){!function(t,e){if(!pt[e]){let s=t[e];void 0!==s&&(t.__data?t._setPendingProperty(e,s):(t.__dataProto?t.hasOwnProperty(JSCompiler_renameProperty("__dataProto",t))||(t.__dataProto=Object.create(t.__dataProto)):t.__dataProto={},t.__dataProto[e]=s))}}(this,t),super._definePropertyAccessor(t,e)}_hasAccessor(t){return this.__dataHasAccessor&&this.__dataHasAccessor[t]}_isPropertyPending(t){return Boolean(this.__dataPending&&t in this.__dataPending)}}})),gt={"dom-if":!0,"dom-repeat":!0};
|
|
58
|
+
/**
|
|
59
|
+
@license
|
|
60
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
61
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
62
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
63
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
64
|
+
Code distributed by Google as part of the polymer project is also
|
|
65
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
66
|
+
*/let bt=!1,Pt=!1;function Ct(t){(function(){if(!bt){bt=!0;const t=document.createElement("textarea");t.placeholder="a",Pt=t.placeholder===t.textContent}return Pt})()&&"textarea"===t.localName&&t.placeholder&&t.placeholder===t.textContent&&(t.textContent=null)}const vt=(()=>{const t=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(e,s,n)=>{const r=s.getAttribute(n);t&&n.startsWith("on-")?e.setAttribute(n,t.createScript(r,n)):e.setAttribute(n,r)}})();function wt(t){let e=t.getAttribute("is");if(e&>[e]){let s=t;for(s.removeAttribute("is"),t=s.ownerDocument.createElement(e),s.parentNode.replaceChild(t,s),t.appendChild(s);s.attributes.length;){const{name:e}=s.attributes[0];vt(t,s,e),s.removeAttribute(e)}}return t}function St(t,e){let s=e.parentInfo&&St(t,e.parentInfo);if(!s)return t;for(let t=s.firstChild,n=0;t;t=t.nextSibling)if(e.parentIndex===n++)return t}function Et(t,e,s,n){n.id&&(e[n.id]=s)}function Ot(t,e,s){if(s.events&&s.events.length)for(let n,r=0,i=s.events;r<i.length&&(n=i[r]);r++)t._addMethodEventListenerToNode(e,n.name,n.value,t)}function Tt(t,e,s,n){s.templateInfo&&(e._templateInfo=s.templateInfo,e._parentTemplateInfo=n)}const At=z((t=>class extends t{static _parseTemplate(t,e){if(!t._templateInfo){let s=t._templateInfo={};s.nodeInfoList=[],s.nestedTemplate=Boolean(e),s.stripWhiteSpace=e&&e.stripWhiteSpace||t.hasAttribute&&t.hasAttribute("strip-whitespace"),this._parseTemplateContent(t,s,{parent:null})}return t._templateInfo}static _parseTemplateContent(t,e,s){return this._parseTemplateNode(t.content,e,s)}static _parseTemplateNode(t,e,s){let n=!1,r=t;return"template"!=r.localName||r.hasAttribute("preserve-content")?"slot"===r.localName&&(e.hasInsertionPoint=!0):n=this._parseTemplateNestedTemplate(r,e,s)||n,Ct(r),r.firstChild&&this._parseTemplateChildNodes(r,e,s),r.hasAttributes&&r.hasAttributes()&&(n=this._parseTemplateNodeAttributes(r,e,s)||n),n||s.noted}static _parseTemplateChildNodes(t,e,s){if("script"!==t.localName&&"style"!==t.localName)for(let n,r=t.firstChild,i=0;r;r=n){if("template"==r.localName&&(r=wt(r)),n=r.nextSibling,r.nodeType===Node.TEXT_NODE){let s=n;for(;s&&s.nodeType===Node.TEXT_NODE;)r.textContent+=s.textContent,n=s.nextSibling,t.removeChild(s),s=n;if(e.stripWhiteSpace&&!r.textContent.trim()){t.removeChild(r);continue}}let o={parentIndex:i,parentInfo:s};this._parseTemplateNode(r,e,o)&&(o.infoIndex=e.nodeInfoList.push(o)-1),r.parentNode&&i++}}static _parseTemplateNestedTemplate(t,e,s){let n=t,r=this._parseTemplate(n,e);return(r.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),s.templateInfo=r,!0}static _parseTemplateNodeAttributes(t,e,s){let n=!1,r=Array.from(t.attributes);for(let i,o=r.length-1;i=r[o];o--)n=this._parseTemplateNodeAttribute(t,e,s,i.name,i.value)||n;return n}static _parseTemplateNodeAttribute(t,e,s,n,r){return"on-"===n.slice(0,3)?(t.removeAttribute(n),s.events=s.events||[],s.events.push({name:n.slice(3),value:r}),!0):"id"===n&&(s.id=r,!0)}static _contentForTemplate(t){let e=t._templateInfo;return e&&e.content||t.content}_stampTemplate(t,e){t&&!t.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(t);let s=(e=e||this.constructor._parseTemplate(t)).nodeInfoList,n=e.content||t.content,r=document.importNode(n,!0);r.__noInsertionPoint=!e.hasInsertionPoint;let i=r.nodeList=new Array(s.length);r.$={};for(let t,n=0,o=s.length;n<o&&(t=s[n]);n++){let s=i[n]=St(r,t);Et(0,r.$,s,t),Tt(0,s,t,e),Ot(this,s,t)}return r}_addMethodEventListenerToNode(t,e,s,n){let r=function(t,e,s){return t=t._methodHost||t,function(e){t[s]?t[s](e,e.detail):console.warn("listener method `"+s+"` not defined")}}(n=n||t,0,s);return this._addEventListenerToNode(t,e,r),r}_addEventListenerToNode(t,e,s){t.addEventListener(e,s)}_removeEventListenerFromNode(t,e,s){t.removeEventListener(e,s)}}));
|
|
67
|
+
/**
|
|
68
|
+
* @fileoverview
|
|
69
|
+
* @suppress {checkPrototypalTypes}
|
|
70
|
+
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
71
|
+
* This code may only be used under the BSD style license found at
|
|
72
|
+
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
|
|
73
|
+
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
|
|
74
|
+
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
75
|
+
* Google as part of the polymer project is also subject to an additional IP
|
|
76
|
+
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
77
|
+
*/let Nt=0;const xt=[],It={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Mt="__computeInfo",Dt=/[A-Z]/;function kt(t,e,s){let n=t[e];if(n){if(!t.hasOwnProperty(e)&&(n=t[e]=Object.create(t[e]),s))for(let t in n){let e=n[t],s=n[t]=Array(e.length);for(let t=0;t<e.length;t++)s[t]=e[t]}}else n=t[e]={};return n}function Rt(t,e,s,n,r,i){if(e){let o=!1;const a=Nt++;for(let l in s){let h=e[r?$(l):l];if(h)for(let e,c=0,d=h.length;c<d&&(e=h[c]);c++)e.info&&e.info.lastRun===a||r&&!Ft(l,e.trigger)||(e.info&&(e.info.lastRun=a),e.fn(t,l,s,n,e.info,r,i),o=!0)}return o}return!1}function Lt(t,e,s,n,r,i,o,a){let l=!1,h=e[o?$(n):n];if(h)for(let e,c=0,d=h.length;c<d&&(e=h[c]);c++)e.info&&e.info.lastRun===s||o&&!Ft(n,e.trigger)||(e.info&&(e.info.lastRun=s),e.fn(t,n,r,i,e.info,o,a),l=!0);return l}function Ft(t,e){if(e){let s=e.name;return s==t||!(!e.structured||!U(s,t))||!(!e.wildcard||!Y(s,t))}return!0}function Ht(t,e,s,n,r){let i="string"==typeof r.method?t[r.method]:r.method,o=r.property;i?i.call(t,t.__data[o],n[o]):r.dynamicFn||console.warn("observer method `"+r.method+"` not defined")}function zt(t,e,s){let n=$(e);if(n!==e){return jt(t,et(n)+"-changed",s[e],e),!0}return!1}function jt(t,e,s,n){let r={value:s,queueProperty:!0};n&&(r.path=n),j(t).dispatchEvent(new CustomEvent(e,{detail:r}))}function Bt(t,e,s,n,r,i){let o=(i?$(e):e)!=e?e:null,a=o?G(t,o):t.__data[e];o&&void 0===a&&(a=s[e]),jt(t,r.eventName,a,o)}function $t(t,e,s,r,i){let o=t.__data[e];n&&(o=n(o,i.attrName,"attribute",t)),t._propertyToAttribute(e,i.attrName,o)}function Ut(t,e,s,n){let i=t[It.COMPUTE];if(i)if(r){Nt++;const r=function(t){let e=t.constructor.__orderedComputedDeps;if(!e){e=new Map;const s=t[It.COMPUTE];let n,{counts:r,ready:i,total:o}=function(t){const e=t[Mt],s={},n=t[It.COMPUTE],r=[];let i=0;for(let t in e){const n=e[t];i+=s[t]=n.args.filter((t=>!t.literal)).length+(n.dynamicFn?1:0)}for(let t in n)e[t]||r.push(t);return{counts:s,ready:r,total:i}}(t);for(;n=i.shift();){e.set(n,e.size);const t=s[n];t&&t.forEach((t=>{const e=t.info.methodInfo;--o,0==--r[e]&&i.push(e)}))}if(0!==o){const e=t;console.warn(`Computed graph for ${e.localName} incomplete; circular?`)}t.constructor.__orderedComputedDeps=e}return e}(t),o=[];for(let t in e)qt(t,i,o,r,n);let a;for(;a=o.shift();)Jt(t,"",e,s,a)&&qt(a.methodInfo,i,o,r,n);Object.assign(s,t.__dataOld),Object.assign(e,t.__dataPending),t.__dataPending=null}else{let r=e;for(;Rt(t,i,r,s,n);)Object.assign(s,t.__dataOld),Object.assign(e,t.__dataPending),r=t.__dataPending,t.__dataPending=null}}const Yt=(t,e,s)=>{let n=0,r=e.length-1,i=-1;for(;n<=r;){const o=n+r>>1,a=s.get(e[o].methodInfo)-s.get(t.methodInfo);if(a<0)n=o+1;else{if(!(a>0)){i=o;break}r=o-1}}i<0&&(i=r+1),e.splice(i,0,t)},qt=(t,e,s,n,r)=>{const i=e[r?$(t):t];if(i)for(let e=0;e<i.length;e++){const o=i[e];o.info.lastRun===Nt||r&&!Ft(t,o.trigger)||(o.info.lastRun=Nt,Yt(o.info,s,n))}};function Jt(t,e,s,n,r){let i=Qt(t,e,s,n,r);if(i===xt)return!1;let o=r.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[o]?t._setPendingProperty(o,i,!0):(t[o]=i,!1)}function Vt(t,e,s,n,r,i,o){s.bindings=s.bindings||[];let a={kind:n,target:r,parts:i,literal:o,isCompound:1!==i.length};if(s.bindings.push(a),function(t){return Boolean(t.target)&&"attribute"!=t.kind&&"text"!=t.kind&&!t.isCompound&&"{"===t.parts[0].mode}(a)){let{event:t,negate:e}=a.parts[0];a.listenerEvent=t||et(r)+"-changed",a.listenerNegate=e}let l=e.nodeInfoList.length;for(let s=0;s<a.parts.length;s++){let n=a.parts[s];n.compoundIndex=s,Xt(t,e,a,n,l)}}function Xt(t,e,s,n,r){if(!n.literal)if("attribute"===s.kind&&"-"===s.target[0])console.warn("Cannot set attribute "+s.target+' because "-" is not a valid attribute starting character');else{let i=n.dependencies,o={index:r,binding:s,part:n,evaluator:t};for(let s=0;s<i.length;s++){let n=i[s];"string"==typeof n&&(n=oe(n),n.wildcard=!0),t._addTemplatePropertyEffect(e,n.rootProperty,{fn:Gt,info:o,trigger:n})}}}function Gt(t,e,s,r,i,o,a){let l=a[i.index],h=i.binding,c=i.part;if(o&&c.source&&e.length>c.source.length&&"property"==h.kind&&!h.isCompound&&l.__isPropertyEffectsClient&&l.__dataHasAccessor&&l.__dataHasAccessor[h.target]){let n=s[e];e=q(c.source,h.target,e),l._setPendingPropertyOrPath(e,n,!1,!0)&&t._enqueueClient(l)}else{let a=i.evaluator._evaluateBinding(t,c,e,s,r,o);a!==xt&&function(t,e,s,r,i){i=function(t,e,s,n){if(s.isCompound){let r=t.__dataCompoundStorage[s.target];r[n.compoundIndex]=e,e=r.join("")}"attribute"!==s.kind&&("textContent"!==s.target&&("value"!==s.target||"input"!==t.localName&&"textarea"!==t.localName)||(e=null==e?"":e));return e}(e,i,s,r),n&&(i=n(i,s.target,s.kind,e));if("attribute"==s.kind)t._valueToNodeAttribute(e,i,s.target);else{let n=s.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[n]?e[It.READ_ONLY]&&e[It.READ_ONLY][n]||e._setPendingProperty(n,i)&&t._enqueueClient(e):t._setUnmanagedPropertyToNode(e,n,i)}}(t,l,h,c,a)}}function Wt(t,e){if(e.isCompound){let s=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),n=e.parts,r=new Array(n.length);for(let t=0;t<n.length;t++)r[t]=n[t].literal;let i=e.target;s[i]=r,e.literal&&"property"==e.kind&&("className"===i&&(t=j(t)),t[i]=e.literal)}}function Kt(t,e,s){if(s.listenerEvent){let n=s.parts[0];t.addEventListener(s.listenerEvent,(function(t){!function(t,e,s,n,r){let i,o=t.detail,a=o&&o.path;a?(n=q(s,n,a),i=o&&o.value):i=t.currentTarget[s],i=r?!i:i,e[It.READ_ONLY]&&e[It.READ_ONLY][n]||!e._setPendingPropertyOrPath(n,i,!0,Boolean(a))||o&&o.queueProperty||e._invalidateProperties()}(t,e,s.target,n.source,n.negate)}))}}function Zt(t,e,s,n,r,i){i=e.static||i&&("object"!=typeof i||i[e.methodName]);let o={methodName:e.methodName,args:e.args,methodInfo:r,dynamicFn:i};for(let r,i=0;i<e.args.length&&(r=e.args[i]);i++)r.literal||t._addPropertyEffect(r.rootProperty,s,{fn:n,info:o,trigger:r});return i&&t._addPropertyEffect(e.methodName,s,{fn:n,info:o}),o}function Qt(t,e,s,n,r){let i=t._methodHost||t,o=i[r.methodName];if(o){let n=t._marshalArgs(r.args,e,s);return n===xt?xt:o.apply(i,n)}r.dynamicFn||console.warn("method `"+r.methodName+"` not defined")}const te=[],ee="(?:[a-zA-Z_$][\\w.:$\\-*]*)",se="(?:("+ee+"|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)",ne=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?"+("("+ee+"\\s*"+("(?:\\(\\s*(?:"+("(?:"+se+"(?:,\\s*"+se+")*)")+"?)\\)\\s*)")+"?)")+"(?:]]|}})","g");function re(t){let e="";for(let s=0;s<t.length;s++){e+=t[s].literal||""}return e}function ie(t){let e=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:te};if(e[2].trim()){return function(t,e){return e.args=t.map((function(t){let s=oe(t);return s.literal||(e.static=!1),s}),this),e}(e[2].replace(/\\,/g,",").split(","),t)}return t}return null}function oe(t){let e=t.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),s={name:e,value:"",literal:!1},n=e[0];switch("-"===n&&(n=e[1]),n>="0"&&n<="9"&&(n="#"),n){case"'":case'"':s.value=e.slice(1,-1),s.literal=!0;break;case"#":s.value=Number(e),s.literal=!0}return s.literal||(s.rootProperty=$(e),s.structured=B(e),s.structured&&(s.wildcard=".*"==e.slice(-2),s.wildcard&&(s.name=e.slice(0,-2)))),s}function ae(t,e,s){let n=G(t,s);return void 0===n&&(n=e[s]),n}function le(e,s,n,r){const i={indexSplices:r};t&&!e._overrideLegacyUndefined&&(s.splices=i),e.notifyPath(n+".splices",i),e.notifyPath(n+".length",s.length),t&&!e._overrideLegacyUndefined&&(i.indexSplices=[])}function he(t,e,s,n,r,i){le(t,e,s,[{index:n,addedCount:r,removed:i,object:e,type:"splice"}])}const ce=z((n=>{const r=At(yt(n));return class extends r{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return It}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(de.length){let t=de[de.length-1];t._enqueueClient(this),this.__dataHost=t}}_initializeProtoProperties(t){this.__data=Object.create(t),this.__dataPending=Object.create(t),this.__dataOld={}}_initializeInstanceProperties(t){let e=this[It.READ_ONLY];for(let s in t)e&&e[s]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[s]=this.__dataPending[s]=t[s])}_addPropertyEffect(t,e,s){this._createPropertyAccessor(t,e==It.READ_ONLY);let n=kt(this,e,!0)[t];n||(n=this[e][t]=[]),n.push(s)}_removePropertyEffect(t,e,s){let n=kt(this,e,!0)[t],r=n.indexOf(s);r>=0&&n.splice(r,1)}_hasPropertyEffect(t,e){let s=this[e];return Boolean(s&&s[t])}_hasReadOnlyEffect(t){return this._hasPropertyEffect(t,It.READ_ONLY)}_hasNotifyEffect(t){return this._hasPropertyEffect(t,It.NOTIFY)}_hasReflectEffect(t){return this._hasPropertyEffect(t,It.REFLECT)}_hasComputedEffect(t){return this._hasPropertyEffect(t,It.COMPUTE)}_setPendingPropertyOrPath(t,e,s,n){if(n||$(Array.isArray(t)?t[0]:t)!==t){if(!n){let s=G(this,t);if(!(t=W(this,t,e))||!super._shouldPropertyChange(t,e,s))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(t,e,s))return function(t,e,s){let n=t.__dataLinkedPaths;if(n){let r;for(let i in n){let o=n[i];Y(i,e)?(r=q(i,o,e),t._setPendingPropertyOrPath(r,s,!0,!0)):Y(o,e)&&(r=q(o,i,e),t._setPendingPropertyOrPath(r,s,!0,!0))}}}(this,t,e),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[t])return this._setPendingProperty(t,e,s);this[t]=e}return!1}_setUnmanagedPropertyToNode(t,e,s){s===t[e]&&"object"!=typeof s||("className"===e&&(t=j(t)),t[e]=s)}_setPendingProperty(t,e,s){let n=this.__dataHasPaths&&B(t),r=n?this.__dataTemp:this.__data;return!!this._shouldPropertyChange(t,e,r[t])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),t in this.__dataOld||(this.__dataOld[t]=this.__data[t]),n?this.__dataTemp[t]=e:this.__data[t]=e,this.__dataPending[t]=e,(n||this[It.NOTIFY]&&this[It.NOTIFY][t])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[t]=s),!0)}_setProperty(t,e){this._setPendingProperty(t,e,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(t){this.__dataPendingClients=this.__dataPendingClients||[],t!==this&&this.__dataPendingClients.push(t)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let t=this.__dataPendingClients;if(t){this.__dataPendingClients=null;for(let e=0;e<t.length;e++){let s=t[e];s.__dataEnabled?s.__dataPending&&s._flushProperties():s._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(t,e){for(let s in t)!e&&this[It.READ_ONLY]&&this[It.READ_ONLY][s]||this._setPendingPropertyOrPath(s,t[s],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(t,e,s){let n,r=this.__dataHasPaths;this.__dataHasPaths=!1,Ut(this,e,s,r),n=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(e,s,r),this._flushClients(),Rt(this,this[It.REFLECT],e,s,r),Rt(this,this[It.OBSERVE],e,s,r),n&&function(t,e,s,n,r){let i,o,a=t[It.NOTIFY],l=Nt++;for(let o in e)e[o]&&(a&&Lt(t,a,l,o,s,n,r)||r&&zt(t,o,s))&&(i=!0);i&&(o=t.__dataHost)&&o._invalidateProperties&&o._invalidateProperties()}(this,n,e,s,r),1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(t,e,s){this[It.PROPAGATE]&&Rt(this,this[It.PROPAGATE],t,e,s),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,t,e,s)}_runEffectsForTemplate(t,e,s,n){const r=(e,n)=>{Rt(this,t.propertyEffects,e,s,n,t.nodeList);for(let r=t.firstChild;r;r=r.nextSibling)this._runEffectsForTemplate(r,e,s,n)};t.runEffects?t.runEffects(r,e,n):r(e,n)}linkPaths(t,e){t=V(t),e=V(e),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[t]=e}unlinkPaths(t){t=V(t),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[t]}notifySplices(t,e){let s={path:""};le(this,G(this,t,s),s.path,e)}get(t,e){return G(e||this,t)}set(t,e,s){s?W(s,t,e):this[It.READ_ONLY]&&this[It.READ_ONLY][t]||this._setPendingPropertyOrPath(t,e,!0)&&this._invalidateProperties()}push(t,...e){let s={path:""},n=G(this,t,s),r=n.length,i=n.push(...e);return e.length&&he(this,n,s.path,r,e.length,[]),i}pop(t){let e={path:""},s=G(this,t,e),n=Boolean(s.length),r=s.pop();return n&&he(this,s,e.path,s.length,0,[r]),r}splice(t,e,s,...n){let r,i={path:""},o=G(this,t,i);return e<0?e=o.length-Math.floor(-e):e&&(e=Math.floor(e)),r=2===arguments.length?o.splice(e):o.splice(e,s,...n),(n.length||r.length)&&he(this,o,i.path,e,n.length,r),r}shift(t){let e={path:""},s=G(this,t,e),n=Boolean(s.length),r=s.shift();return n&&he(this,s,e.path,0,0,[r]),r}unshift(t,...e){let s={path:""},n=G(this,t,s),r=n.unshift(...e);return e.length&&he(this,n,s.path,0,e.length,[]),r}notifyPath(t,e){let s;if(1==arguments.length){let n={path:""};e=G(this,t,n),s=n.path}else s=Array.isArray(t)?V(t):t;this._setPendingPropertyOrPath(s,e,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(t,e){var s;this._addPropertyEffect(t,It.READ_ONLY),e&&(this["_set"+(s=t,s[0].toUpperCase()+s.substring(1))]=function(e){this._setProperty(t,e)})}_createPropertyObserver(t,e,s){let n={property:t,method:e,dynamicFn:Boolean(s)};this._addPropertyEffect(t,It.OBSERVE,{fn:Ht,info:n,trigger:{name:t}}),s&&this._addPropertyEffect(e,It.OBSERVE,{fn:Ht,info:n,trigger:{name:e}})}_createMethodObserver(t,e){let s=ie(t);if(!s)throw new Error("Malformed observer expression '"+t+"'");Zt(this,s,It.OBSERVE,Qt,null,e)}_createNotifyingProperty(t){this._addPropertyEffect(t,It.NOTIFY,{fn:Bt,info:{eventName:et(t)+"-changed",property:t}})}_createReflectedProperty(t){let e=this.constructor.attributeNameForProperty(t);"-"===e[0]?console.warn("Property "+t+" cannot be reflected to attribute "+e+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(t,It.REFLECT,{fn:$t,info:{attrName:e}})}_createComputedProperty(t,e,s){let n=ie(e);if(!n)throw new Error("Malformed computed expression '"+e+"'");const r=Zt(this,n,It.COMPUTE,Jt,t,s);kt(this,Mt)[t]=r}_marshalArgs(e,s,n){const r=this.__data,i=[];for(let o=0,a=e.length;o<a;o++){let{name:a,structured:l,wildcard:h,value:c,literal:d}=e[o];if(!d)if(h){const t=Y(a,s),e=ae(r,n,t?s:a);c={path:t?s:a,value:e,base:t?G(r,a):e}}else c=l?ae(r,n,a):r[a];if(t&&!this._overrideLegacyUndefined&&void 0===c&&e.length>1)return xt;i[o]=c}return i}static addPropertyEffect(t,e,s){this.prototype._addPropertyEffect(t,e,s)}static createPropertyObserver(t,e,s){this.prototype._createPropertyObserver(t,e,s)}static createMethodObserver(t,e){this.prototype._createMethodObserver(t,e)}static createNotifyingProperty(t){this.prototype._createNotifyingProperty(t)}static createReadOnlyProperty(t,e){this.prototype._createReadOnlyProperty(t,e)}static createReflectedProperty(t){this.prototype._createReflectedProperty(t)}static createComputedProperty(t,e,s){this.prototype._createComputedProperty(t,e,s)}static bindTemplate(t){return this.prototype._bindTemplate(t)}_bindTemplate(t,e){let s=this.constructor._parseTemplate(t),n=this.__preBoundTemplateInfo==s;if(!n)for(let t in s.propertyEffects)this._createPropertyAccessor(t);if(e)if(s=Object.create(s),s.wasPreBound=n,this.__templateInfo){const e=t._parentTemplateInfo||this.__templateInfo,n=e.lastChild;s.parent=e,e.lastChild=s,s.previousSibling=n,n?n.nextSibling=s:e.firstChild=s}else this.__templateInfo=s;else this.__preBoundTemplateInfo=s;return s}static _addTemplatePropertyEffect(t,e,s){(t.hostProps=t.hostProps||{})[e]=!0;let n=t.propertyEffects=t.propertyEffects||{};(n[e]=n[e]||[]).push(s)}_stampTemplate(t,e){e=e||this._bindTemplate(t,!0),de.push(this);let s=super._stampTemplate(t,e);if(de.pop(),e.nodeList=s.nodeList,!e.wasPreBound){let t=e.childNodes=[];for(let e=s.firstChild;e;e=e.nextSibling)t.push(e)}return s.templateInfo=e,function(t,e){let{nodeList:s,nodeInfoList:n}=e;if(n.length)for(let e=0;e<n.length;e++){let r=n[e],i=s[e],o=r.bindings;if(o)for(let e=0;e<o.length;e++){let s=o[e];Wt(i,s),Kt(i,t,s)}i.__dataHost=t}}(this,e),this.__dataClientsReady&&(this._runEffectsForTemplate(e,this.__data,null,!1),this._flushClients()),s}_removeBoundDom(t){const e=t.templateInfo,{previousSibling:s,nextSibling:n,parent:r}=e;s?s.nextSibling=n:r&&(r.firstChild=n),n?n.previousSibling=s:r&&(r.lastChild=s),e.nextSibling=e.previousSibling=null;let i=e.childNodes;for(let t=0;t<i.length;t++){let e=i[t];j(j(e).parentNode).removeChild(e)}}static _parseTemplateNode(t,e,s){let n=r._parseTemplateNode.call(this,t,e,s);if(t.nodeType===Node.TEXT_NODE){let r=this._parseBindings(t.textContent,e);r&&(t.textContent=re(r)||" ",Vt(this,e,s,"text","textContent",r),n=!0)}return n}static _parseTemplateNodeAttribute(t,e,s,n,i){let o=this._parseBindings(i,e);if(o){let r=n,i="property";Dt.test(n)?i="attribute":"$"==n[n.length-1]&&(n=n.slice(0,-1),i="attribute");let a=re(o);return a&&"attribute"==i&&("class"==n&&t.hasAttribute("class")&&(a+=" "+t.getAttribute(n)),t.setAttribute(n,a)),"attribute"==i&&"disable-upgrade$"==r&&t.setAttribute(n,""),"input"===t.localName&&"value"===r&&t.setAttribute(r,""),t.removeAttribute(r),"property"===i&&(n=tt(n)),Vt(this,e,s,i,n,o,a),!0}return r._parseTemplateNodeAttribute.call(this,t,e,s,n,i)}static _parseTemplateNestedTemplate(t,n,i){let o=r._parseTemplateNestedTemplate.call(this,t,n,i);const a=t.parentNode,l=i.templateInfo,h="dom-if"===a.localName,c="dom-repeat"===a.localName;e&&(h||c)&&(a.removeChild(t),(i=i.parentInfo).templateInfo=l,i.noted=!0,o=!1);let d=l.hostProps;if(s&&h)d&&(n.hostProps=Object.assign(n.hostProps||{},d),e||(i.parentInfo.noted=!0));else{let t="{";for(let e in d){Vt(this,n,i,"property","_host_"+e,[{mode:t,source:e,dependencies:[e],hostProp:!0}])}}return o}static _parseBindings(t,e){let s,n=[],r=0;for(;null!==(s=ne.exec(t));){s.index>r&&n.push({literal:t.slice(r,s.index)});let i=s[1][0],o=Boolean(s[2]),a=s[3].trim(),l=!1,h="",c=-1;"{"==i&&(c=a.indexOf("::"))>0&&(h=a.substring(c+2),a=a.substring(0,c),l=!0);let d=ie(a),u=[];if(d){let{args:t,methodName:s}=d;for(let e=0;e<t.length;e++){let s=t[e];s.literal||u.push(s)}let n=e.dynamicFns;(n&&n[s]||d.static)&&(u.push(s),d.dynamicFn=!0)}else u.push(a);n.push({source:a,mode:i,negate:o,customEvent:l,signature:d,dependencies:u,event:h}),r=ne.lastIndex}if(r&&r<t.length){let e=t.substring(r);e&&n.push({literal:e})}return n.length?n:null}static _evaluateBinding(t,e,s,n,r,i){let o;return o=e.signature?Qt(t,s,n,0,e.signature):s!=e.source?G(t,e.source):i&&B(s)?G(t,s):t.__data[s],e.negate&&(o=!o),o}}})),de=[];const ue=z((t=>{const e=_t(t);function s(t){const e=Object.getPrototypeOf(t);return e.prototype instanceof r?e:null}function n(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",t))){let e=null;if(t.hasOwnProperty(JSCompiler_renameProperty("properties",t))){const s=t.properties;s&&(e=
|
|
78
|
+
/**
|
|
79
|
+
@license
|
|
80
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
81
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
82
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
83
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
84
|
+
Code distributed by Google as part of the polymer project is also
|
|
85
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
86
|
+
*/
|
|
87
|
+
function(t){const e={};for(let s in t){const n=t[s];e[s]="function"==typeof n?{type:n}:n}return e}(s))}t.__ownProperties=e}return t.__ownProperties}class r extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const t=this._properties;this.__observedAttributes=t?Object.keys(t).map((t=>this.prototype._addPropertyToAttributeMap(t))):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const t=s(this);t&&t.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const t=n(this);t&&this.createProperties(t)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const t=s(this);this.__properties=Object.assign({},t&&t._properties,n(this))}return this.__properties}static typeForProperty(t){const e=this._properties[t];return e&&e.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return r})),_e=window.ShadyCSS&&window.ShadyCSS.cssBuild,pe=z((t=>{const e=ue(ce(t));function s(t,e,s,n){s.computed&&(s.readOnly=!0),s.computed&&(t._hasReadOnlyEffect(e)?console.warn(`Cannot redefine computed property '${e}'.`):t._createComputedProperty(e,s.computed,n)),s.readOnly&&!t._hasReadOnlyEffect(e)?t._createReadOnlyProperty(e,!s.computed):!1===s.readOnly&&t._hasReadOnlyEffect(e)&&console.warn(`Cannot make readOnly property '${e}' non-readOnly.`),s.reflectToAttribute&&!t._hasReflectEffect(e)?t._createReflectedProperty(e):!1===s.reflectToAttribute&&t._hasReflectEffect(e)&&console.warn(`Cannot make reflected property '${e}' non-reflected.`),s.notify&&!t._hasNotifyEffect(e)?t._createNotifyingProperty(e):!1===s.notify&&t._hasNotifyEffect(e)&&console.warn(`Cannot make notify property '${e}' non-notify.`),s.observer&&t._createPropertyObserver(e,s.observer,n[s.observer]),t._addPropertyToAttributeMap(e)}return class extends e{static get polymerElementVersion(){return"3.5.1"}static _finalizeClass(){e._finalizeClass.call(this);const t=((s=this).hasOwnProperty(JSCompiler_renameProperty("__ownObservers",s))||(s.__ownObservers=s.hasOwnProperty(JSCompiler_renameProperty("observers",s))?s.observers:null),s.__ownObservers);var s;t&&this.createObservers(t,this._properties),this._prepareTemplate()}static _prepareTemplate(){let t=this.template;t&&("string"==typeof t?(console.error("template getter must return HTMLTemplateElement"),t=null):i||(t=t.cloneNode(!0))),this.prototype._template=t}static createProperties(t){for(let e in t)s(this.prototype,e,t[e],t)}static createObservers(t,e){const s=this.prototype;for(let n=0;n<t.length;n++)s._createMethodObserver(t[n],e)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let t=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;"function"==typeof t&&(t=t()),this._template=void 0!==t?t:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&function(t){let e=null;if(t&&(!y||g)&&(e=a.import(t,"template"),y&&!e))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${t}`);return e}(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(t){this._template=t}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const t=this.importMeta;if(t)this._importPath=o(t.url);else{const t=a.import(this.is);this._importPath=t&&t.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=l,this.importPath=this.constructor.importPath;let t=function(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",t))){t.__propertyDefaults=null;let e=t._properties;for(let s in e){let n=e[s];"value"in n&&(t.__propertyDefaults=t.__propertyDefaults||{},t.__propertyDefaults[s]=n)}}return t.__propertyDefaults}(this.constructor);if(t)for(let e in t){let s=t[e];if(this._canApplyPropertyDefault(e)){let t="function"==typeof s.value?s.value.call(this):s.value;this._hasAccessor(e)?this._setPendingProperty(e,t,!0):this[e]=t}}}_canApplyPropertyDefault(t){return!this.hasOwnProperty(t)}static _processStyleText(t,e){return h(t,e)}static _finalizeTemplate(t){const e=this.prototype._template;if(e&&!e.__polymerFinalized){e.__polymerFinalized=!0;const s=this.importPath;!function(t,e,s,n){if(!_e){const r=e.content.querySelectorAll("style"),i=_(e),o=p(s),a=e.content.firstElementChild;for(let s=0;s<o.length;s++){let r=o[s];r.textContent=t._processStyleText(r.textContent,n),e.content.insertBefore(r,a)}let l=0;for(let e=0;e<i.length;e++){let s=i[e],o=r[l];o!==s?(s=s.cloneNode(!0),o.parentNode.insertBefore(s,o)):l++,s.textContent=t._processStyleText(s.textContent,n)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(e,s),f&&_e&&m){const s=e.content.querySelectorAll("style");if(s){let e="";Array.from(s).forEach((t=>{e+=t.textContent,t.parentNode.removeChild(t)})),t._styleSheet=new CSSStyleSheet,t._styleSheet.replaceSync(e)}}}(this,e,t,s?c(s):""),this.prototype._bindTemplate(e)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(t){const e=j(this);if(e.attachShadow)return t?(e.shadowRoot||(e.attachShadow({mode:"open",shadyUpgradeFragment:t}),e.shadowRoot.appendChild(t),this.constructor._styleSheet&&(e.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),d&&window.ShadyDOM&&window.ShadyDOM.flushInitial(e.shadowRoot),e.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(t){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,t)}resolveUrl(t,e){return!e&&this.importPath&&(e=c(this.importPath)),c(t,e)}static _parseTemplateContent(t,s,n){return s.dynamicFns=s.dynamicFns||this._properties,e._parseTemplateContent.call(this,t,s,n)}static _addTemplatePropertyEffect(t,s,n){return!u||s in this._properties||n.info.part.signature&&n.info.part.signature.static||n.info.part.hostProp||t.nestedTemplate||console.warn(`Property '${s}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,t,s,n)}}})),fe=pe(HTMLElement);
|
|
88
|
+
/**
|
|
89
|
+
* @fileoverview
|
|
90
|
+
* @suppress {checkPrototypalTypes}
|
|
91
|
+
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
92
|
+
* This code may only be used under the BSD style license found at
|
|
93
|
+
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
|
|
94
|
+
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
|
|
95
|
+
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
96
|
+
* Google as part of the polymer project is also subject to an additional IP
|
|
97
|
+
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
98
|
+
*/
|
|
99
|
+
/**
|
|
100
|
+
@license
|
|
101
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
102
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
103
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
104
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
105
|
+
Code distributed by Google as part of the polymer project is also
|
|
106
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
107
|
+
*/
|
|
108
|
+
class me{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run((()=>{this._timer=null,ye.delete(this),this._callback()}))}cancel(){this.isActive()&&(this._cancelAsync(),ye.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}static debounce(t,e,s){return t instanceof me?t._cancelAsync():t=new me,t.setConfig(e,s),t}}let ye=new Set;const ge=function(t){ye.add(t)},be=function(){const t=Boolean(ye.size);return ye.forEach((t=>{try{t.flush()}catch(t){setTimeout((()=>{throw t}))}})),t},Pe=function(){let t,e;do{t=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),e=be()}while(t||e)};
|
|
109
|
+
/**
|
|
110
|
+
@license
|
|
111
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
112
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
113
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
114
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
115
|
+
Code distributed by Google as part of the polymer project is also
|
|
116
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
117
|
+
*/
|
|
118
|
+
class Ce{constructor(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""}}function ve(t){return we(function(t){let e=new Ce;e.start=0,e.end=t.length;let s=e;for(let n=0,r=t.length;n<r;n++)if(t[n]===Oe){s.rules||(s.rules=[]);let t=s,e=t.rules[t.rules.length-1]||null;s=new Ce,s.start=n+1,s.parent=t,s.previous=e,t.rules.push(s)}else t[n]===Te&&(s.end=n+1,s=s.parent||e);return e}(t=t.replace(Ae.comments,"").replace(Ae.port,"")),t)}function we(t,e){let s=e.substring(t.start,t.end-1);if(t.parsedCssText=t.cssText=s.trim(),t.parent){let n=t.previous?t.previous.end:t.parent.start;s=e.substring(n,t.start-1),s=function(t){return t.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){let t=arguments[1],e=6-t.length;for(;e--;)t="0"+t;return"\\"+t}))}(s),s=s.replace(Ae.multipleSpaces," "),s=s.substring(s.lastIndexOf(";")+1);let r=t.parsedSelector=t.selector=s.trim();t.atRule=0===r.indexOf(Ie),t.atRule?0===r.indexOf(xe)?t.type=Ee.MEDIA_RULE:r.match(Ae.keyframesRule)&&(t.type=Ee.KEYFRAMES_RULE,t.keyframesName=t.selector.split(Ae.multipleSpaces).pop()):0===r.indexOf(Ne)?t.type=Ee.MIXIN_RULE:t.type=Ee.STYLE_RULE}let n=t.rules;if(n)for(let t,s=0,r=n.length;s<r&&(t=n[s]);s++)we(t,e);return t}function Se(t,e,s=""){let n="";if(t.cssText||t.rules){let s=t.rules;if(s&&!function(t){let e=t[0];return Boolean(e)&&Boolean(e.selector)&&0===e.selector.indexOf(Ne)}(s))for(let t,r=0,i=s.length;r<i&&(t=s[r]);r++)n=Se(t,e,n);else n=e?t.cssText:function(t){return t=function(t){return t.replace(Ae.customProp,"").replace(Ae.mixinProp,"")}(t),function(t){return t.replace(Ae.mixinApply,"").replace(Ae.varApply,"")}(t)}(t.cssText),n=n.trim(),n&&(n=" "+n+"\n")}return n&&(t.selector&&(s+=t.selector+" "+Oe+"\n"),s+=n,t.selector&&(s+=Te+"\n\n")),s}const Ee={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},Oe="{",Te="}",Ae={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},Ne="--",xe="@media",Ie="@",Me=new Set,De="shady-unscoped";function ke(t){const e=t.textContent;if(!Me.has(e)){Me.add(e);const t=document.createElement("style");t.setAttribute("shady-unscoped",""),t.textContent=e,document.head.appendChild(t)}}function Re(t){return t.hasAttribute(De)}
|
|
119
|
+
/**
|
|
120
|
+
@license
|
|
121
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
122
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
123
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
124
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
125
|
+
Code distributed by Google as part of the polymer project is also
|
|
126
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
127
|
+
*/function Le(t,e){return t?("string"==typeof t&&(t=ve(t)),e&&He(t,e),Se(t,P)):""}function Fe(t){return!t.__cssRules&&t.textContent&&(t.__cssRules=ve(t.textContent)),t.__cssRules||null}function He(t,e,s,n){if(!t)return;let r=!1,i=t.type;if(n&&i===Ee.MEDIA_RULE){let e=t.selector.match(b);e&&(window.matchMedia(e[1]).matches||(r=!0))}i===Ee.STYLE_RULE?e(t):s&&i===Ee.KEYFRAMES_RULE?s(t):i===Ee.MIXIN_RULE&&(r=!0);let o=t.rules;if(o&&!r)for(let t,r=0,i=o.length;r<i&&(t=o[r]);r++)He(t,e,s,n)}function ze(t,e){let s=t.indexOf("var(");if(-1===s)return e(t,"","","");let n=function(t,e){let s=0;for(let n=e,r=t.length;n<r;n++)if("("===t[n])s++;else if(")"===t[n]&&0==--s)return n;return-1}(t,s+3),r=t.substring(s+4,n),i=t.substring(0,s),o=ze(t.substring(n+1),e),a=r.indexOf(",");return-1===a?e(i,r.trim(),"",o):e(i,r.substring(0,a).trim(),r.substring(a+1).trim(),o)}window.ShadyDOM&&window.ShadyDOM.wrap;const je="css-build";function Be(t){if(void 0!==v)return v;if(void 0===t.__cssBuild){const e=t.getAttribute(je);if(e)t.__cssBuild=e;else{const e=function(t){const e="template"===t.localName?t.content.firstChild:t.firstChild;if(e instanceof Comment){const t=e.textContent.trim().split(":");if(t[0]===je)return t[1]}return""}(t);""!==e&&function(t){const e="template"===t.localName?t.content.firstChild:t.firstChild;e.parentNode.removeChild(e)}
|
|
128
|
+
/**
|
|
129
|
+
@license
|
|
130
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
131
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
132
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
133
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
134
|
+
Code distributed by Google as part of the polymer project is also
|
|
135
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
136
|
+
*/(t),t.__cssBuild=e}}return t.__cssBuild||""}function $e(t){return""!==Be(t)}const Ue=/;\s*/m,Ye=/^\s*(initial)|(inherit)\s*$/,qe=/\s*!important/,Je="_-_";class Ve{constructor(){this._map={}}set(t,e){t=t.trim(),this._map[t]={properties:e,dependants:{}}}get(t){return t=t.trim(),this._map[t]||null}}let Xe=null;class Ge{constructor(){this._currentElement=null,this._measureElement=null,this._map=new Ve}detectMixin(t){return w(t)}gatherStyles(t){const e=function(t){const e=[],s=t.querySelectorAll("style");for(let t=0;t<s.length;t++){const n=s[t];Re(n)?C||(ke(n),n.parentNode.removeChild(n)):(e.push(n.textContent),n.parentNode.removeChild(n))}return e.join("").trim()}(t.content);if(e){const s=document.createElement("style");return s.textContent=e,t.content.insertBefore(s,t.content.firstChild),s}return null}transformTemplate(t,e){void 0===t._gatheredStyle&&(t._gatheredStyle=this.gatherStyles(t));const s=t._gatheredStyle;return s?this.transformStyle(s,e):null}transformStyle(t,e=""){let s=Fe(t);return this.transformRules(s,e),t.textContent=Le(s),s}transformCustomStyle(t){let e=Fe(t);return He(e,(t=>{":root"===t.selector&&(t.selector="html"),this.transformRule(t)})),t.textContent=Le(e),e}transformRules(t,e){this._currentElement=e,He(t,(t=>{this.transformRule(t)})),this._currentElement=null}transformRule(t){t.cssText=this.transformCssText(t.parsedCssText,t),":root"===t.selector&&(t.selector=":host > *")}transformCssText(t,e){return t=t.replace(S,((t,s,n,r)=>this._produceCssProperties(t,s,n,r,e))),this._consumeCssProperties(t,e)}_getInitialValueForProperty(t){return this._measureElement||(this._measureElement=document.createElement("meta"),this._measureElement.setAttribute("apply-shim-measure",""),this._measureElement.style.all="initial",document.head.appendChild(this._measureElement)),window.getComputedStyle(this._measureElement).getPropertyValue(t)}_fallbacksFromPreviousRules(t){let e=t;for(;e.parent;)e=e.parent;const s={};let n=!1;return He(e,(e=>{n=n||e===t,n||e.selector===t.selector&&Object.assign(s,this._cssTextToMap(e.parsedCssText))})),s}_consumeCssProperties(t,e){let s=null;for(;s=E.exec(t);){let n=s[0],r=s[1],i=s.index,o=i+n.indexOf("@apply"),a=i+n.length,l=t.slice(0,o),h=t.slice(a),c=e?this._fallbacksFromPreviousRules(e):{};Object.assign(c,this._cssTextToMap(l));let d=this._atApplyToCssProperties(r,c);t=`${l}${d}${h}`,E.lastIndex=i+d.length}return t}_atApplyToCssProperties(t,e){t=t.replace(Ue,"");let s=[],n=this._map.get(t);if(n||(this._map.set(t,{}),n=this._map.get(t)),n){let r,i,o;this._currentElement&&(n.dependants[this._currentElement]=!0);const a=n.properties;for(r in a)o=e&&e[r],i=[r,": var(",t,Je,r],o&&i.push(",",o.replace(qe,"")),i.push(")"),qe.test(a[r])&&i.push(" !important"),s.push(i.join(""))}return s.join("; ")}_replaceInitialOrInherit(t,e){let s=Ye.exec(e);return s&&(e=s[1]?this._getInitialValueForProperty(t):"apply-shim-inherit"),e}_cssTextToMap(t,e=!1){let s,n,r=t.split(";"),i={};for(let t,o,a=0;a<r.length;a++)t=r[a],t&&(o=t.split(":"),o.length>1&&(s=o[0].trim(),n=o.slice(1).join(":"),e&&(n=this._replaceInitialOrInherit(s,n)),i[s]=n));return i}_invalidateMixinEntry(t){if(Xe)for(let e in t.dependants)e!==this._currentElement&&Xe(e)}_produceCssProperties(t,e,s,n,r){if(s&&ze(s,((t,e)=>{e&&this._map.get(e)&&(n=`@apply ${e};`)})),!n)return t;let i=this._consumeCssProperties(""+n,r),o=t.slice(0,t.indexOf("--")),a=this._cssTextToMap(i,!0),l=a,h=this._map.get(e),c=h&&h.properties;c?l=Object.assign(Object.create(c),a):this._map.set(e,l);let d,u,_=[],p=!1;for(d in l)u=a[d],void 0===u&&(u="initial"),c&&!(d in c)&&(p=!0),_.push(`${e}${Je}${d}: ${u}`);return p&&this._invalidateMixinEntry(h),h&&(h.properties=l),s&&(o=`${t};${o}`),`${o}${_.join("; ")};`}}Ge.prototype.detectMixin=Ge.prototype.detectMixin,Ge.prototype.transformStyle=Ge.prototype.transformStyle,Ge.prototype.transformCustomStyle=Ge.prototype.transformCustomStyle,Ge.prototype.transformRules=Ge.prototype.transformRules,Ge.prototype.transformRule=Ge.prototype.transformRule,Ge.prototype.transformTemplate=Ge.prototype.transformTemplate,Ge.prototype._separator=Je,Object.defineProperty(Ge.prototype,"invalidCallback",{get:()=>Xe,set(t){Xe=t}});
|
|
137
|
+
/**
|
|
138
|
+
@license
|
|
139
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
140
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
141
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
142
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
143
|
+
Code distributed by Google as part of the polymer project is also
|
|
144
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
145
|
+
*/
|
|
146
|
+
const We={},Ke="_applyShimCurrentVersion",Ze="_applyShimNextVersion",Qe="_applyShimValidatingVersion",ts=Promise.resolve();
|
|
147
|
+
/**
|
|
148
|
+
@license
|
|
149
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
150
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
151
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
152
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
153
|
+
Code distributed by Google as part of the polymer project is also
|
|
154
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
155
|
+
*/function es(t){let e=We[t];e&&function(t){t[Ke]=t[Ke]||0,t[Qe]=t[Qe]||0,t[Ze]=(t[Ze]||0)+1}(e)}function ss(t){return t[Ke]===t[Ze]}
|
|
156
|
+
/**
|
|
157
|
+
@license
|
|
158
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
159
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
160
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
161
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
162
|
+
Code distributed by Google as part of the polymer project is also
|
|
163
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
164
|
+
*/
|
|
165
|
+
const ns=new Ge;class rs{constructor(){this.customStyleInterface=null,ns.invalidCallback=es}ensure(){this.customStyleInterface||window.ShadyCSS.CustomStyleInterface&&(this.customStyleInterface=window.ShadyCSS.CustomStyleInterface,this.customStyleInterface.transformCallback=t=>{ns.transformCustomStyle(t)},this.customStyleInterface.validateCallback=()=>{requestAnimationFrame((()=>{this.customStyleInterface.enqueued&&this.flushCustomStyles()}))})}prepareTemplate(t,e){if(this.ensure(),$e(t))return;We[e]=t;let s=ns.transformTemplate(t,e);t._styleAst=s}flushCustomStyles(){if(this.ensure(),!this.customStyleInterface)return;let t=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(let e=0;e<t.length;e++){let s=t[e],n=this.customStyleInterface.getStyleForCustomStyle(s);n&&ns.transformCustomStyle(n)}this.customStyleInterface.enqueued=!1}}styleSubtree(t,e){if(this.ensure(),e&&A(t,e),t.shadowRoot){this.styleElement(t);let e=t.shadowRoot.children||t.shadowRoot.childNodes;for(let t=0;t<e.length;t++)this.styleSubtree(e[t])}else{let e=t.children||t.childNodes;for(let t=0;t<e.length;t++)this.styleSubtree(e[t])}}styleElement(t){this.ensure();let{is:e}=function(t){let e=t.localName,s="",n="";return e?e.indexOf("-")>-1?s=e:(n=e,s=t.getAttribute&&t.getAttribute("is")||""):(s=t.is,n=t.extends),{is:s,typeExtension:n}}(t),s=We[e];if((!s||!$e(s))&&s&&!ss(s)){(function(t){return!ss(t)&&t[Qe]===t[Ze]})(s)||(this.prepareTemplate(s,e),function(t){t[Qe]=t[Ze],t._validating||(t._validating=!0,ts.then((function(){t[Ke]=t[Ze],t._validating=!1})))}(s));let n=t.shadowRoot;if(n){let t=n.querySelector("style");t&&(t.__cssRules=s._styleAst,t.textContent=Le(s._styleAst))}}}styleDocument(t){this.ensure(),this.styleSubtree(document.body,t)}}if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){const t=new rs;let e=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate(e,s,n){t.flushCustomStyles(),t.prepareTemplate(e,s)},prepareTemplateStyles(t,e,s){window.ShadyCSS.prepareTemplate(t,e,s)},prepareTemplateDom(t,e){},styleSubtree(e,s){t.flushCustomStyles(),t.styleSubtree(e,s)},styleElement(e){t.flushCustomStyles(),t.styleElement(e)},styleDocument(e){t.flushCustomStyles(),t.styleDocument(e)},getComputedStyleValue:(t,e)=>O(t,e),flushCustomStyles(){t.flushCustomStyles()},nativeCss:P,nativeShadow:C,cssBuild:v,disableRuntime:T},e&&(window.ShadyCSS.CustomStyleInterface=e)}window.ShadyCSS.ApplyShim=ns;
|
|
166
|
+
/**
|
|
167
|
+
@license
|
|
168
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
169
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
170
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
171
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
172
|
+
Code distributed by Google as part of the polymer project is also
|
|
173
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
174
|
+
*/
|
|
175
|
+
let is="string"==typeof document.head.style.touchAction,os="__polymerGestures",as="__polymerGesturesHandled",ls="__polymerGesturesTouchAction",hs=["mousedown","mousemove","mouseup","click"],cs=[0,1,4,2],ds=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(t){return!1}}();function us(t){return hs.indexOf(t)>-1}let _s=!1;function ps(t){if(!us(t)&&"touchend"!==t)return is&&_s&&N?{passive:!0}:void 0}!function(){try{let t=Object.defineProperty({},"passive",{get(){_s=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}}();let fs=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/);const ms=[],ys={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},gs={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function bs(t){let e=Array.prototype.slice.call(t.labels||[]);if(!e.length){e=[];try{let s=t.getRootNode();if(t.id){let n=s.querySelectorAll(`label[for = '${t.id}']`);for(let t=0;t<n.length;t++)e.push(n[t])}}catch(t){}}return e}let Ps=function(t){let e=t.sourceCapabilities;var s;if((!e||e.firesTouchEvents)&&(t[as]={skip:!0},"click"===t.type)){let e=!1,n=Os(t);for(let t=0;t<n.length;t++){if(n[t].nodeType===Node.ELEMENT_NODE)if("label"===n[t].localName)ms.push(n[t]);else if(s=n[t],ys[s.localName]){let s=bs(n[t]);for(let t=0;t<s.length;t++)e=e||ms.indexOf(s[t])>-1}if(n[t]===ws.mouse.target)return}if(e)return;t.preventDefault(),t.stopPropagation()}};function Cs(t){let e=fs?["click"]:hs;for(let s,n=0;n<e.length;n++)s=e[n],t?(ms.length=0,document.addEventListener(s,Ps,!0)):document.removeEventListener(s,Ps,!0)}function vs(t){let e=t.type;if(!us(e))return!1;if("mousemove"===e){let e=void 0===t.buttons?1:t.buttons;return t instanceof window.MouseEvent&&!ds&&(e=cs[t.which]||0),Boolean(1&e)}return 0===(void 0===t.button?0:t.button)}let ws={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Ss(t,e,s){t.movefn=e,t.upfn=s,document.addEventListener("mousemove",e),document.addEventListener("mouseup",s)}function Es(t){document.removeEventListener("mousemove",t.movefn),document.removeEventListener("mouseup",t.upfn),t.movefn=null,t.upfn=null}document.addEventListener("touchend",(function(t){ws.mouse.mouseIgnoreJob||Cs(!0),ws.mouse.target=Os(t)[0],ws.mouse.mouseIgnoreJob=me.debounce(ws.mouse.mouseIgnoreJob,lt.after(2500),(function(){Cs(),ws.mouse.target=null,ws.mouse.mouseIgnoreJob=null}))}),!!_s&&{passive:!0});const Os=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:t=>t.composedPath&&t.composedPath()||[],Ts={},As=[];function Ns(t){const e=Os(t);return e.length>0?e[0]:t.target}function xs(t){let e,s=t.type,n=t.currentTarget[os];if(!n)return;let r=n[s];if(r){if(!t[as]&&(t[as]={},"touch"===s.slice(0,5))){let e=t.changedTouches[0];if("touchstart"===s&&1===t.touches.length&&(ws.touch.id=e.identifier),ws.touch.id!==e.identifier)return;is||"touchstart"!==s&&"touchmove"!==s||function(t){let e=t.changedTouches[0],s=t.type;if("touchstart"===s)ws.touch.x=e.clientX,ws.touch.y=e.clientY,ws.touch.scrollDecided=!1;else if("touchmove"===s){if(ws.touch.scrollDecided)return;ws.touch.scrollDecided=!0;let s=function(t){let e="auto",s=Os(t);for(let t,n=0;n<s.length;n++)if(t=s[n],t[ls]){e=t[ls];break}return e}(t),n=!1,r=Math.abs(ws.touch.x-e.clientX),i=Math.abs(ws.touch.y-e.clientY);t.cancelable&&("none"===s?n=!0:"pan-x"===s?n=i>r:"pan-y"===s&&(n=r>i)),n?t.preventDefault():Ls("track")}}(t)}if(e=t[as],!e.skip){for(let s,n=0;n<As.length;n++)s=As[n],r[s.name]&&!e[s.name]&&s.flow&&s.flow.start.indexOf(t.type)>-1&&s.reset&&s.reset();for(let n,i=0;i<As.length;i++)n=As[i],r[n.name]&&!e[n.name]&&(e[n.name]=!0,n[s](t))}}}function Is(t,e,s){return!!Ts[e]&&(function(t,e,s){let n=Ts[e],r=n.deps,i=n.name,o=t[os];o||(t[os]=o={});for(let e,s,n=0;n<r.length;n++)e=r[n],fs&&us(e)&&"click"!==e||(s=o[e],s||(o[e]=s={_count:0}),0===s._count&&t.addEventListener(e,xs,ps(e)),s[i]=(s[i]||0)+1,s._count=(s._count||0)+1);t.addEventListener(e,s),n.touchAction&&ks(t,n.touchAction)}(t,e,s),!0)}function Ms(t,e,s){return!!Ts[e]&&(function(t,e,s){let n=Ts[e],r=n.deps,i=n.name,o=t[os];if(o)for(let e,s,n=0;n<r.length;n++)e=r[n],s=o[e],s&&s[i]&&(s[i]=(s[i]||1)-1,s._count=(s._count||1)-1,0===s._count&&t.removeEventListener(e,xs,ps(e)));t.removeEventListener(e,s)}(t,e,s),!0)}function Ds(t){As.push(t);for(let e=0;e<t.emits.length;e++)Ts[t.emits[e]]=t}function ks(t,e){is&&t instanceof HTMLElement&&dt.run((()=>{t.style.touchAction=e})),t[ls]=e}function Rs(t,e,s){let n=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(n.detail=s,j(t).dispatchEvent(n),n.defaultPrevented){let t=s.preventer||s.sourceEvent;t&&t.preventDefault&&t.preventDefault()}}function Ls(t){let e=function(t){for(let e,s=0;s<As.length;s++){e=As[s];for(let s,n=0;n<e.emits.length;n++)if(s=e.emits[n],s===t)return e}return null}(t);e.info&&(e.info.prevent=!0)}function Fs(){ws.mouse.mouseIgnoreJob&&ws.mouse.mouseIgnoreJob.flush()}function Hs(t,e,s,n){e&&Rs(e,t,{x:s.clientX,y:s.clientY,sourceEvent:s,preventer:n,prevent:function(t){return Ls(t)}})}function zs(t,e,s){if(t.prevent)return!1;if(t.started)return!0;let n=Math.abs(t.x-e),r=Math.abs(t.y-s);return n>=5||r>=5}function js(t,e,s){if(!e)return;let n,r=t.moves[t.moves.length-2],i=t.moves[t.moves.length-1],o=i.x-t.x,a=i.y-t.y,l=0;r&&(n=i.x-r.x,l=i.y-r.y),Rs(e,"track",{state:t.state,x:s.clientX,y:s.clientY,dx:o,dy:a,ddx:n,ddy:l,sourceEvent:s,hover:function(){return function(t,e){let s=document.elementFromPoint(t,e),n=s;for(;n&&n.shadowRoot&&!window.ShadyDOM;){let r=n;if(n=n.shadowRoot.elementFromPoint(t,e),r===n)break;n&&(s=n)}return s}(s.clientX,s.clientY)}})}function Bs(t,e,s){let n=Math.abs(e.clientX-t.x),r=Math.abs(e.clientY-t.y),i=Ns(s||e);!i||gs[i.localName]&&i.hasAttribute("disabled")||(isNaN(n)||isNaN(r)||n<=25&&r<=25||function(t){if("click"===t.type){if(0===t.detail)return!0;let e=Ns(t);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;let s=e.getBoundingClientRect(),n=t.pageX,r=t.pageY;return!(n>=s.left&&n<=s.right&&r>=s.top&&r<=s.bottom)}return!1}(e))&&(t.prevent||Rs(i,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:s}))}
|
|
176
|
+
/**
|
|
177
|
+
@license
|
|
178
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
179
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
180
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
181
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
182
|
+
Code distributed by Google as part of the polymer project is also
|
|
183
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
184
|
+
*/Ds({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){Es(this.info)},mousedown:function(t){if(!vs(t))return;let e=Ns(t),s=this;Ss(this.info,(function(t){vs(t)||(Hs("up",e,t),Es(s.info))}),(function(t){vs(t)&&Hs("up",e,t),Es(s.info)})),Hs("down",e,t)},touchstart:function(t){Hs("down",Ns(t),t.changedTouches[0],t)},touchend:function(t){Hs("up",Ns(t),t.changedTouches[0],t)}}),Ds({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove:function(t){this.moves.length>2&&this.moves.shift(),this.moves.push(t)},movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,Es(this.info)},mousedown:function(t){if(!vs(t))return;let e=Ns(t),s=this,n=function(t){let n=t.clientX,r=t.clientY;zs(s.info,n,r)&&(s.info.state=s.info.started?"mouseup"===t.type?"end":"track":"start","start"===s.info.state&&Ls("tap"),s.info.addMove({x:n,y:r}),vs(t)||(s.info.state="end",Es(s.info)),e&&js(s.info,e,t),s.info.started=!0)};Ss(this.info,n,(function(t){s.info.started&&n(t),Es(s.info)})),this.info.x=t.clientX,this.info.y=t.clientY},touchstart:function(t){let e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove:function(t){let e=Ns(t),s=t.changedTouches[0],n=s.clientX,r=s.clientY;zs(this.info,n,r)&&("start"===this.info.state&&Ls("tap"),this.info.addMove({x:n,y:r}),js(this.info,e,s),this.info.state="track",this.info.started=!0)},touchend:function(t){let e=Ns(t),s=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:s.clientX,y:s.clientY}),js(this.info,e,s))}}),Ds({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown:function(t){vs(t)&&(this.info.x=t.clientX,this.info.y=t.clientY)},click:function(t){vs(t)&&Bs(this.info,t)},touchstart:function(t){const e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend:function(t){Bs(this.info,t.changedTouches[0],t)}});const $s=z((t=>class extends t{_addEventListenerToNode(t,e,s){Is(t,e,s)||super._addEventListenerToNode(t,e,s)}_removeEventListenerFromNode(t,e,s){Ms(t,e,s)||super._removeEventListenerFromNode(t,e,s)}})),Us=/:host\(:dir\((ltr|rtl)\)\)/g,Ys=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,qs=/:dir\((?:ltr|rtl)\)/,Js=Boolean(window.ShadyDOM&&window.ShadyDOM.inUse),Vs=[];
|
|
185
|
+
/**
|
|
186
|
+
* @fileoverview
|
|
187
|
+
* @suppress {checkPrototypalTypes}
|
|
188
|
+
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
189
|
+
* This code may only be used under the BSD style license found at
|
|
190
|
+
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
|
|
191
|
+
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
|
|
192
|
+
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
193
|
+
* Google as part of the polymer project is also subject to an additional IP
|
|
194
|
+
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
195
|
+
*/let Xs=null,Gs="";function Ws(){Gs=document.documentElement.getAttribute("dir")}function Ks(t){if(!t.__autoDirOptOut){t.setAttribute("dir",Gs)}}function Zs(){Ws(),Gs=document.documentElement.getAttribute("dir");for(let t=0;t<Vs.length;t++)Ks(Vs[t])}const Qs=z((t=>{Js||Xs||(Ws(),Xs=new MutationObserver(Zs),Xs.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));const e=yt(t);class s extends e{static _processStyleText(t,s){return t=e._processStyleText.call(this,t,s),!Js&&qs.test(t)&&(t=this._replaceDirInCssText(t),this.__activateDir=!0),t}static _replaceDirInCssText(t){let e=t;return e=e.replace(Us,':host([dir="$1"])'),e=e.replace(Ys,':host([dir="$2"]) $1'),e}constructor(){super(),this.__autoDirOptOut=!1}ready(){super.ready(),this.__autoDirOptOut=this.hasAttribute("dir")}connectedCallback(){e.prototype.connectedCallback&&super.connectedCallback(),this.constructor.__activateDir&&(Xs&&Xs.takeRecords().length&&Zs(),Vs.push(this),Ks(this))}disconnectedCallback(){if(e.prototype.disconnectedCallback&&super.disconnectedCallback(),this.constructor.__activateDir){const t=Vs.indexOf(this);t>-1&&Vs.splice(t,1)}}}return s.__activateDir=!1,s}));
|
|
196
|
+
/**
|
|
197
|
+
@license
|
|
198
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
199
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
200
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
201
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
202
|
+
Code distributed by Google as part of the polymer project is also
|
|
203
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
204
|
+
*/function tn(){document.body.removeAttribute("unresolved")}
|
|
205
|
+
/**
|
|
206
|
+
@license
|
|
207
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
208
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
209
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
210
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
211
|
+
Code distributed by Google as part of the polymer project is also
|
|
212
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
213
|
+
*/
|
|
214
|
+
function en(t,e,s){return{index:t,removed:e,addedCount:s}}"interactive"===document.readyState||"complete"===document.readyState?tn():window.addEventListener("DOMContentLoaded",tn);const sn=0,nn=1,rn=2,on=3;function an(t,e,s,n,r,i){let o,a=0,l=0,h=Math.min(s-e,i-r);if(0==e&&0==r&&(a=function(t,e,s){for(let n=0;n<s;n++)if(!hn(t[n],e[n]))return n;return s}(t,n,h)),s==t.length&&i==n.length&&(l=function(t,e,s){let n=t.length,r=e.length,i=0;for(;i<s&&hn(t[--n],e[--r]);)i++;return i}(t,n,h-a)),r+=a,i-=l,(s-=l)-(e+=a)==0&&i-r==0)return[];if(e==s){for(o=en(e,[],0);r<i;)o.removed.push(n[r++]);return[o]}if(r==i)return[en(e,[],s-e)];let c=function(t){let e=t.length-1,s=t[0].length-1,n=t[e][s],r=[];for(;e>0||s>0;){if(0==e){r.push(rn),s--;continue}if(0==s){r.push(on),e--;continue}let i,o=t[e-1][s-1],a=t[e-1][s],l=t[e][s-1];i=a<l?a<o?a:o:l<o?l:o,i==o?(o==n?r.push(sn):(r.push(nn),n=o),e--,s--):i==a?(r.push(on),e--,n=a):(r.push(rn),s--,n=l)}return r.reverse(),r}(function(t,e,s,n,r,i){let o=i-r+1,a=s-e+1,l=new Array(o);for(let t=0;t<o;t++)l[t]=new Array(a),l[t][0]=t;for(let t=0;t<a;t++)l[0][t]=t;for(let s=1;s<o;s++)for(let i=1;i<a;i++)if(hn(t[e+i-1],n[r+s-1]))l[s][i]=l[s-1][i-1];else{let t=l[s-1][i]+1,e=l[s][i-1]+1;l[s][i]=t<e?t:e}return l}(t,e,s,n,r,i));o=void 0;let d=[],u=e,_=r;for(let t=0;t<c.length;t++)switch(c[t]){case sn:o&&(d.push(o),o=void 0),u++,_++;break;case nn:o||(o=en(u,[],0)),o.addedCount++,u++,o.removed.push(n[_]),_++;break;case rn:o||(o=en(u,[],0)),o.addedCount++,u++;break;case on:o||(o=en(u,[],0)),o.removed.push(n[_]),_++}return o&&d.push(o),d}function ln(t,e){return an(t,0,t.length,e,0,e.length)}function hn(t,e){return t===e}
|
|
215
|
+
/**
|
|
216
|
+
@license
|
|
217
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
218
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
219
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
220
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
221
|
+
Code distributed by Google as part of the polymer project is also
|
|
222
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
223
|
+
*/function cn(t){return"slot"===t.localName}let dn=class{static getFlattenedNodes(t){const e=j(t);return cn(t)?e.assignedNodes({flatten:!0}):Array.from(e.childNodes).map((t=>cn(t)?j(t).assignedNodes({flatten:!0}):[t])).reduce(((t,e)=>t.concat(e)),[])}constructor(t,e){this._shadyChildrenObserver=null,this._nativeChildrenObserver=null,this._connected=!1,this._target=t,this.callback=e,this._effectiveNodes=[],this._observer=null,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){cn(this._target)?this._listenSlots([this._target]):j(this._target).children&&(this._listenSlots(j(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,(t=>{this._processMutations(t)})):(this._nativeChildrenObserver=new MutationObserver((t=>{this._processMutations(t)})),this._nativeChildrenObserver.observe(this._target,{childList:!0}))),this._connected=!0}disconnect(){cn(this._target)?this._unlistenSlots([this._target]):j(this._target).children&&(this._unlistenSlots(j(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null)),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,dt.run((()=>this.flush())))}_processMutations(t){this._processSlotMutations(t),this.flush()}_processSlotMutations(t){if(t)for(let e=0;e<t.length;e++){let s=t[e];s.addedNodes&&this._listenSlots(s.addedNodes),s.removedNodes&&this._unlistenSlots(s.removedNodes)}}flush(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush(),this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords()),this._scheduled=!1;let t={target:this._target,addedNodes:[],removedNodes:[]},e=this.constructor.getFlattenedNodes(this._target),s=ln(e,this._effectiveNodes);for(let e,n=0;n<s.length&&(e=s[n]);n++)for(let s,n=0;n<e.removed.length&&(s=e.removed[n]);n++)t.removedNodes.push(s);for(let n,r=0;r<s.length&&(n=s[r]);r++)for(let s=n.index;s<n.index+n.addedCount;s++)t.addedNodes.push(e[s]);this._effectiveNodes=e;let n=!1;return(t.addedNodes.length||t.removedNodes.length)&&(n=!0,this.callback.call(this._target,t)),n}_listenSlots(t){for(let e=0;e<t.length;e++){let s=t[e];cn(s)&&s.addEventListener("slotchange",this._boundSchedule)}}_unlistenSlots(t){for(let e=0;e<t.length;e++){let s=t[e];cn(s)&&s.removeEventListener("slotchange",this._boundSchedule)}}};
|
|
224
|
+
/**
|
|
225
|
+
@license
|
|
226
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
227
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
228
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
229
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
230
|
+
Code distributed by Google as part of the polymer project is also
|
|
231
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
232
|
+
*/const un=Element.prototype,_n=un.matches||un.matchesSelector||un.mozMatchesSelector||un.msMatchesSelector||un.oMatchesSelector||un.webkitMatchesSelector,pn=function(t,e){return _n.call(t,e)};class fn{constructor(t){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(t),this.node=t}observeNodes(t){return new dn(this.node,t)}unobserveNodes(t){t.disconnect()}notifyObserver(){}deepContains(t){if(j(this.node).contains(t))return!0;let e=t,s=t.ownerDocument;for(;e&&e!==s&&e!==this.node;)e=j(e).parentNode||j(e).host;return e===this.node}getOwnerRoot(){return j(this.node).getRootNode()}getDistributedNodes(){return"slot"===this.node.localName?j(this.node).assignedNodes({flatten:!0}):[]}getDestinationInsertionPoints(){let t=[],e=j(this.node).assignedSlot;for(;e;)t.push(e),e=j(e).assignedSlot;return t}importNode(t,e){let s=this.node instanceof Document?this.node:this.node.ownerDocument;return j(s).importNode(t,e)}getEffectiveChildNodes(){return dn.getFlattenedNodes(this.node)}queryDistributedElements(t){let e=this.getEffectiveChildNodes(),s=[];for(let n,r=0,i=e.length;r<i&&(n=e[r]);r++)n.nodeType===Node.ELEMENT_NODE&&pn(n,t)&&s.push(n);return s}get activeElement(){let t=this.node;return void 0!==t._activeElement?t._activeElement:t.activeElement}}function mn(t,e){for(let s=0;s<e.length;s++){let n=e[s];Object.defineProperty(t,n,{get:function(){return this.node[n]},configurable:!0})}}class yn{constructor(t){this.event=t}get rootTarget(){return this.path[0]}get localTarget(){return this.event.target}get path(){return this.event.composedPath()}}fn.prototype.cloneNode,fn.prototype.appendChild,fn.prototype.insertBefore,fn.prototype.removeChild,fn.prototype.replaceChild,fn.prototype.setAttribute,fn.prototype.removeAttribute,fn.prototype.querySelector,fn.prototype.querySelectorAll,fn.prototype.parentNode,fn.prototype.firstChild,fn.prototype.lastChild,fn.prototype.nextSibling,fn.prototype.previousSibling,fn.prototype.firstElementChild,fn.prototype.lastElementChild,fn.prototype.nextElementSibling,fn.prototype.previousElementSibling,fn.prototype.childNodes,fn.prototype.children,fn.prototype.classList,fn.prototype.textContent,fn.prototype.innerHTML;let gn=fn;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){class t extends window.ShadyDOM.Wrapper{}Object.getOwnPropertyNames(fn.prototype).forEach((e=>{"activeElement"!=e&&(t.prototype[e]=fn.prototype[e])})),mn(t.prototype,["classList"]),gn=t,Object.defineProperties(yn.prototype,{localTarget:{get(){const t=this.event.currentTarget,e=t&&bn(t).getOwnerRoot(),s=this.path;for(let t=0;t<s.length;t++){const n=s[t];if(bn(n).getOwnerRoot()===e)return n}},configurable:!0},path:{get(){return window.ShadyDOM.composedPath(this.event)},configurable:!0}})}else!function(t,e){for(let s=0;s<e.length;s++){let n=e[s];t[n]=function(){return this.node[n].apply(this.node,arguments)}}}(fn.prototype,["cloneNode","appendChild","insertBefore","removeChild","replaceChild","setAttribute","removeAttribute","querySelector","querySelectorAll","attachShadow"]),mn(fn.prototype,["parentNode","firstChild","lastChild","nextSibling","previousSibling","firstElementChild","lastElementChild","nextElementSibling","previousElementSibling","childNodes","children","classList","shadowRoot"]),function(t,e){for(let s=0;s<e.length;s++){let n=e[s];Object.defineProperty(t,n,{get:function(){return this.node[n]},set:function(t){this.node[n]=t},configurable:!0})}}(fn.prototype,["textContent","innerHTML","className"]);const bn=function(t){if((t=t||document)instanceof gn)return t;if(t instanceof yn)return t;let e=t.__domApi;return e||(e=t instanceof Event?new yn(t):new gn(t),t.__domApi=e),e},Pn=window.ShadyDOM,Cn=window.ShadyCSS;
|
|
233
|
+
/**
|
|
234
|
+
@license
|
|
235
|
+
Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
|
|
236
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
237
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
238
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
239
|
+
Code distributed by Google as part of the polymer project is also
|
|
240
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
241
|
+
*/function vn(t,e){return j(t).getRootNode()===e}
|
|
242
|
+
/**
|
|
243
|
+
* @fileoverview
|
|
244
|
+
* @suppress {checkPrototypalTypes}
|
|
245
|
+
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
246
|
+
* This code may only be used under the BSD style license found at
|
|
247
|
+
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
|
|
248
|
+
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
|
|
249
|
+
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
250
|
+
* Google as part of the polymer project is also subject to an additional IP
|
|
251
|
+
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
252
|
+
*/
|
|
253
|
+
const wn="disable-upgrade",Sn=t=>{for(;t;){const e=Object.getOwnPropertyDescriptor(t,"observedAttributes");if(e)return e.get;t=Object.getPrototypeOf(t.prototype).constructor}return()=>[]},En=z((t=>{const e=pe(t);let s=Sn(e);return class extends e{constructor(){super(),this.__isUpgradeDisabled}static get observedAttributes(){return s.call(this).concat(wn)}_initializeProperties(){this.hasAttribute(wn)?this.__isUpgradeDisabled=!0:super._initializeProperties()}_enableProperties(){this.__isUpgradeDisabled||super._enableProperties()}_canApplyPropertyDefault(t){return super._canApplyPropertyDefault(t)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(t))}attributeChangedCallback(t,e,s,n){t==wn?this.__isUpgradeDisabled&&null==s&&(super._initializeProperties(),this.__isUpgradeDisabled=!1,j(this).isConnected&&super.connectedCallback()):super.attributeChangedCallback(t,e,s,n)}connectedCallback(){this.__isUpgradeDisabled||super.connectedCallback()}disconnectedCallback(){this.__isUpgradeDisabled||super.disconnectedCallback()}}})),On="disable-upgrade";let Tn=window.ShadyCSS;const An=z((t=>{const e=$s(pe(t)),s=_e?e:Qs(e),n=Sn(s),r={x:"pan-x",y:"pan-y",none:"none",all:"auto"};class o extends s{constructor(){super(),this.isAttached,this.__boundListeners,this._debouncers,this.__isUpgradeDisabled,this.__needsAttributesAtConnected,this._legacyForceObservedAttributes}static get importMeta(){return this.prototype.importMeta}created(){}__attributeReaction(t,e,s){(this.__dataAttributes&&this.__dataAttributes[t]||t===On)&&this.attributeChangedCallback(t,e,s,null)}setAttribute(t,e){if(x&&!this._legacyForceObservedAttributes){const s=this.getAttribute(t);super.setAttribute(t,e),this.__attributeReaction(t,s,String(e))}else super.setAttribute(t,e)}removeAttribute(t){if(x&&!this._legacyForceObservedAttributes){const e=this.getAttribute(t);super.removeAttribute(t),this.__attributeReaction(t,e,null)}else super.removeAttribute(t)}static get observedAttributes(){return x&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))||(this.__observedAttributes=[],this.prototype),this.__observedAttributes):n.call(this).concat(On)}_enableProperties(){this.__isUpgradeDisabled||super._enableProperties()}_canApplyPropertyDefault(t){return super._canApplyPropertyDefault(t)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(t))}connectedCallback(){this.__needsAttributesAtConnected&&this._takeAttributes(),this.__isUpgradeDisabled||(super.connectedCallback(),this.isAttached=!0,this.attached())}attached(){}disconnectedCallback(){this.__isUpgradeDisabled||(super.disconnectedCallback(),this.isAttached=!1,this.detached())}detached(){}attributeChangedCallback(t,e,s,n){e!==s&&(t==On?this.__isUpgradeDisabled&&null==s&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,j(this).isConnected&&this.connectedCallback()):(super.attributeChangedCallback(t,e,s,n),this.attributeChanged(t,e,s)))}attributeChanged(t,e,s){}_initializeProperties(){if(i&&this.hasAttribute(On))this.__isUpgradeDisabled=!0;else{let t=Object.getPrototypeOf(this);t.hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",t))||(this._registered(),t.__hasRegisterFinished=!0),super._initializeProperties(),this.root=this,this.created(),x&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0)),this._applyListeners()}}_takeAttributes(){const t=this.attributes;for(let e=0,s=t.length;e<s;e++){const s=t[e];this.__attributeReaction(s.name,null,s.value)}}_registered(){}ready(){this._ensureAttributes(),super.ready()}_ensureAttributes(){}_applyListeners(){}serialize(t){return this._serializeValue(t)}deserialize(t,e){return this._deserializeValue(t,e)}reflectPropertyToAttribute(t,e,s){this._propertyToAttribute(t,e,s)}serializeValueToAttribute(t,e,s){this._valueToNodeAttribute(s||this,t,e)}extend(t,e){if(!t||!e)return t||e;let s=Object.getOwnPropertyNames(e);for(let n,r=0;r<s.length&&(n=s[r]);r++){let s=Object.getOwnPropertyDescriptor(e,n);s&&Object.defineProperty(t,n,s)}return t}mixin(t,e){for(let s in e)t[s]=e[s];return t}chainObject(t,e){return t&&e&&t!==e&&(t.__proto__=e),t}instanceTemplate(t){let e=this.constructor._contentForTemplate(t);return document.importNode(e,!0)}fire(t,e,s){s=s||{},e=null==e?{}:e;let n=new Event(t,{bubbles:void 0===s.bubbles||s.bubbles,cancelable:Boolean(s.cancelable),composed:void 0===s.composed||s.composed});n.detail=e;let r=s.node||this;return j(r).dispatchEvent(n),n}listen(t,e,s){t=t||this;let n=this.__boundListeners||(this.__boundListeners=new WeakMap),r=n.get(t);r||(r={},n.set(t,r));let i=e+s;r[i]||(r[i]=this._addMethodEventListenerToNode(t,e,s,this))}unlisten(t,e,s){t=t||this;let n=this.__boundListeners&&this.__boundListeners.get(t),r=e+s,i=n&&n[r];i&&(this._removeEventListenerFromNode(t,e,i),n[r]=null)}setScrollDirection(t,e){ks(e||this,r[t]||"auto")}$$(t){return this.root.querySelector(t)}get domHost(){let t=j(this).getRootNode();return t instanceof DocumentFragment?t.host:t}distributeContent(){const t=bn(this);window.ShadyDOM&&t.shadowRoot&&ShadyDOM.flush()}getEffectiveChildNodes(){return bn(this).getEffectiveChildNodes()}queryDistributedElements(t){return bn(this).queryDistributedElements(t)}getEffectiveChildren(){return this.getEffectiveChildNodes().filter((function(t){return t.nodeType===Node.ELEMENT_NODE}))}getEffectiveTextContent(){let t=this.getEffectiveChildNodes(),e=[];for(let s,n=0;s=t[n];n++)s.nodeType!==Node.COMMENT_NODE&&e.push(s.textContent);return e.join("")}queryEffectiveChildren(t){let e=this.queryDistributedElements(t);return e&&e[0]}queryAllEffectiveChildren(t){return this.queryDistributedElements(t)}getContentChildNodes(t){let e=this.root.querySelector(t||"slot");return e?bn(e).getDistributedNodes():[]}getContentChildren(t){return this.getContentChildNodes(t).filter((function(t){return t.nodeType===Node.ELEMENT_NODE}))}isLightDescendant(t){const e=this;return e!==t&&j(e).contains(t)&&j(e).getRootNode()===j(t).getRootNode()}isLocalDescendant(t){return this.root===j(t).getRootNode()}scopeSubtree(t,e=!1){return function(t,e=!1){if(!Pn||!Cn)return null;if(!Pn.handlesDynamicScoping)return null;const s=Cn.ScopingShim;if(!s)return null;const n=s.scopeForNode(t),r=j(t).getRootNode(),i=t=>{if(!vn(t,r))return;const e=Array.from(Pn.nativeMethods.querySelectorAll.call(t,"*"));e.push(t);for(let t=0;t<e.length;t++){const i=e[t];if(!vn(i,r))continue;const o=s.currentScopeForNode(i);o!==n&&(""!==o&&s.unscopeNode(i,o),s.scopeNode(i,n))}};if(i(t),e){const e=new MutationObserver((t=>{for(let e=0;e<t.length;e++){const s=t[e];for(let t=0;t<s.addedNodes.length;t++){const e=s.addedNodes[t];e.nodeType===Node.ELEMENT_NODE&&i(e)}}}));return e.observe(t,{childList:!0,subtree:!0}),e}return null}(t,e)}getComputedStyleValue(t){return Tn.getComputedStyleValue(this,t)}debounce(t,e,s){return this._debouncers=this._debouncers||{},this._debouncers[t]=me.debounce(this._debouncers[t],s>0?lt.after(s):dt,e.bind(this))}isDebouncerActive(t){this._debouncers=this._debouncers||{};let e=this._debouncers[t];return!(!e||!e.isActive())}flushDebouncer(t){this._debouncers=this._debouncers||{};let e=this._debouncers[t];e&&e.flush()}cancelDebouncer(t){this._debouncers=this._debouncers||{};let e=this._debouncers[t];e&&e.cancel()}async(t,e){return e>0?lt.run(t.bind(this),e):~dt.run(t.bind(this))}cancelAsync(t){t<0?dt.cancel(~t):lt.cancel(t)}create(t,e){let s=document.createElement(t);if(e)if(s.setProperties)s.setProperties(e);else for(let t in e)s[t]=e[t];return s}elementMatches(t,e){return pn(e||this,t)}toggleAttribute(t,e){let s=this;return 3===arguments.length&&(s=arguments[2]),1==arguments.length&&(e=!s.hasAttribute(t)),e?(j(s).setAttribute(t,""),!0):(j(s).removeAttribute(t),!1)}toggleClass(t,e,s){s=s||this,1==arguments.length&&(e=!s.classList.contains(t)),e?s.classList.add(t):s.classList.remove(t)}transform(t,e){(e=e||this).style.webkitTransform=t,e.style.transform=t}translate3d(t,e,s,n){n=n||this,this.transform("translate3d("+t+","+e+","+s+")",n)}arrayDelete(t,e){let s;if(Array.isArray(t)){if(s=t.indexOf(e),s>=0)return t.splice(s,1)}else{if(s=G(this,t).indexOf(e),s>=0)return this.splice(t,s,1)}return null}_logger(t,e){switch(Array.isArray(e)&&1===e.length&&Array.isArray(e[0])&&(e=e[0]),t){case"log":case"warn":case"error":console[t](...e)}}_log(...t){this._logger("log",t)}_warn(...t){this._logger("warn",t)}_error(...t){this._logger("error",t)}_logf(t,...e){return["[%s::%s]",this.is,t,...e]}}return o.prototype.is="",o})),Nn={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},xn={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},In=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},xn);
|
|
254
|
+
/**
|
|
255
|
+
@license
|
|
256
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
257
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
258
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
259
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
260
|
+
Code distributed by Google as part of the polymer project is also
|
|
261
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
262
|
+
*/function Mn(t,e){return Fn({},An(e),t)}function Dn(t,e,s,n){!function(t,e,s){const n=t._noAccessors,r=Object.getOwnPropertyNames(t);for(let i=0;i<r.length;i++){let o=r[i];if(!(o in s))if(n)e[o]=t[o];else{let s=Object.getOwnPropertyDescriptor(t,o);s&&(s.configurable=!0,Object.defineProperty(e,o,s))}}}(e,t,n);for(let t in Nn)e[t]&&(s[t]=s[t]||[],s[t].push(e[t]))}function kn(t,e,s){e=e||[];for(let n=t.length-1;n>=0;n--){let r=t[n];r?Array.isArray(r)?kn(r,e):e.indexOf(r)<0&&(!s||s.indexOf(r)<0)&&e.unshift(r):console.warn("behavior is null, check for missing or 404 import")}return e}function Rn(t,e){for(const s in e){const n=t[s],r=e[s];t[s]=!("value"in r)&&n&&"value"in n?Object.assign({value:n.value},r):r}}const Ln=An(HTMLElement);function Fn(t,e,s){let n;const r={};class o extends e{static _finalizeClass(){if(this.hasOwnProperty(JSCompiler_renameProperty("generatedFrom",this))){if(n)for(let t,e=0;e<n.length;e++)t=n[e],t.properties&&this.createProperties(t.properties),t.observers&&this.createObservers(t.observers,t.properties);t.properties&&this.createProperties(t.properties),t.observers&&this.createObservers(t.observers,t.properties),this._prepareTemplate()}else e._finalizeClass.call(this)}static get properties(){const e={};if(n)for(let t=0;t<n.length;t++)Rn(e,n[t].properties);return Rn(e,t.properties),e}static get observers(){let e=[];if(n)for(let t,s=0;s<n.length;s++)t=n[s],t.observers&&(e=e.concat(t.observers));return t.observers&&(e=e.concat(t.observers)),e}created(){super.created();const t=r.created;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}_registered(){const t=o.prototype;if(!t.hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",t))){t.__hasRegisterFinished=!0,super._registered(),i&&a(t);const e=Object.getPrototypeOf(this);let s=r.beforeRegister;if(s)for(let t=0;t<s.length;t++)s[t].call(e);if(s=r.registered,s)for(let t=0;t<s.length;t++)s[t].call(e)}}_applyListeners(){super._applyListeners();const t=r.listeners;if(t)for(let e=0;e<t.length;e++){const s=t[e];if(s)for(let t in s)this._addMethodEventListenerToNode(this,t,s[t])}}_ensureAttributes(){const t=r.hostAttributes;if(t)for(let e=t.length-1;e>=0;e--){const s=t[e];for(let t in s)this._ensureAttribute(t,s[t])}super._ensureAttributes()}ready(){super.ready();let t=r.ready;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}attached(){super.attached();let t=r.attached;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}detached(){super.detached();let t=r.detached;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}attributeChanged(t,e,s){super.attributeChanged();let n=r.attributeChanged;if(n)for(let r=0;r<n.length;r++)n[r].call(this,t,e,s)}}if(s){Array.isArray(s)||(s=[s]);let t=e.prototype.behaviors;n=kn(s,null,t),o.prototype.behaviors=t?t.concat(s):n}const a=e=>{n&&function(t,e,s){for(let n=0;n<e.length;n++)Dn(t,e[n],s,In)}(e,n,r),Dn(e,t,r,xn)};return i||a(o.prototype),o.generatedFrom=t,o}const Hn=function(t){let e;return e="function"==typeof t?t:Hn.Class(t),t._legacyForceObservedAttributes&&(e.prototype._legacyForceObservedAttributes=t._legacyForceObservedAttributes),customElements.define(e.is,e),e};
|
|
263
|
+
/**
|
|
264
|
+
@license
|
|
265
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
266
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
267
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
268
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
269
|
+
Code distributed by Google as part of the polymer project is also
|
|
270
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
271
|
+
*/
|
|
272
|
+
/**
|
|
273
|
+
@license
|
|
274
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
275
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
276
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
277
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
278
|
+
Code distributed by Google as part of the polymer project is also
|
|
279
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
280
|
+
*/
|
|
281
|
+
function zn(t,e,s,n,r){let i;r&&(i="object"==typeof s&&null!==s,i&&(n=t.__dataTemp[e]));let o=n!==s&&(n==n||s==s);return i&&o&&(t.__dataTemp[e]=s),o}Hn.Class=function(t,e){t||console.warn("Polymer.Class requires `info` argument");let s=e?e(Ln):Ln;return s=Fn(t,s,t.behaviors),s.is=s.prototype.is=t.is,s};const jn=z((t=>class extends t{_shouldPropertyChange(t,e,s){return zn(this,t,e,s,!0)}})),Bn=z((t=>class extends t{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(t,e,s){return zn(this,t,e,s,this.mutableData)}}));jn._mutablePropertyChange=zn;
|
|
282
|
+
/**
|
|
283
|
+
@license
|
|
284
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
285
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
286
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
287
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
288
|
+
Code distributed by Google as part of the polymer project is also
|
|
289
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
290
|
+
*/
|
|
291
|
+
let $n=null;function Un(){return $n}Un.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Un,writable:!0}});const Yn=ce(Un),qn=jn(Yn);const Jn=ce(class{});function Vn(t,e){for(let s=0;s<e.length;s++){let n=e[s];if(Boolean(t)!=Boolean(n.__hideTemplateChildren__))if(n.nodeType===Node.TEXT_NODE)t?(n.__polymerTextContent__=n.textContent,n.textContent=""):n.textContent=n.__polymerTextContent__;else if("slot"===n.localName)if(t)n.__polymerReplaced__=document.createComment("hidden-slot"),j(j(n).parentNode).replaceChild(n.__polymerReplaced__,n);else{const t=n.__polymerReplaced__;t&&j(j(t).parentNode).replaceChild(n,t)}else n.style&&(t?(n.__polymerDisplay__=n.style.display,n.style.display="none"):n.style.display=n.__polymerDisplay__);n.__hideTemplateChildren__=t,n._showHideChildren&&n._showHideChildren(t)}}class Xn extends Jn{constructor(t){super(),this._configureProperties(t),this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let t=this.root.firstChild;t;t=t.nextSibling)e.push(t),t.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let s=this.__templatizeOptions;(t&&s.instanceProps||!s.instanceProps)&&this._enableProperties()}_configureProperties(t){if(this.__templatizeOptions.forwardHostProp)for(let t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(let e in t)this._setPendingProperty(e,t[e])}forwardHostProp(t,e){this._setPendingPropertyOrPath(t,e,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(t,e,s){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,e,(t=>{t.model=this,s(t)}));else{let n=this.__dataHost.__dataHost;n&&n._addEventListenerToNode(t,e,s)}}_showHideChildren(t){Vn(t,this.children)}_setUnmanagedPropertyToNode(t,e,s){t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&"textContent"==e?t.__polymerTextContent__=s:super._setUnmanagedPropertyToNode(t,e,s)}get parentModel(){let t=this.__parentModel;if(!t){let e;t=this;do{t=t.__dataHost.__dataHost}while((e=t.__templatizeOptions)&&!e.parentModel);this.__parentModel=t}return t}dispatchEvent(t){return!0}}Xn.prototype.__dataHost,Xn.prototype.__templatizeOptions,Xn.prototype._methodHost,Xn.prototype.__templatizeOwner,Xn.prototype.__hostProps;const Gn=jn(Xn);function Wn(t){let e=t.__dataHost;return e&&e._methodHost||e}function Kn(t,e,s){let n=s.mutableData?Gn:Xn;er.mixin&&(n=er.mixin(n));let r=class extends n{};return r.prototype.__templatizeOptions=s,r.prototype._bindTemplate(t),function(t,e,s,n){let r=s.hostProps||{};for(let e in n.instanceProps){delete r[e];let s=n.notifyInstanceProp;s&&t.prototype._addPropertyEffect(e,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:tr(e,s)})}if(n.forwardHostProp&&e.__dataHost)for(let e in r)s.hasHostProps||(s.hasHostProps=!0),t.prototype._addPropertyEffect(e,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(t,e,s){t.__dataHost._setPendingPropertyOrPath("_host_"+e,s[e],!0,!0)}})}(r,t,e,s),r}function Zn(t,e,s,n){let r=s.forwardHostProp;if(r&&e.hasHostProps){const a="template"==t.localName;let l=e.templatizeTemplateClass;if(!l){if(a){let t=s.mutableData?qn:Yn;class n extends t{}l=e.templatizeTemplateClass=n}else{const s=t.constructor;class n extends s{}l=e.templatizeTemplateClass=n}let i=e.hostProps;for(let t in i)l.prototype._addPropertyEffect("_host_"+t,l.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:Qn(t,r)}),l.prototype._createNotifyingProperty("_host_"+t);u&&n&&function(t,e,s){const n=s.constructor._properties,{propertyEffects:r}=t,{instanceProps:i}=e;for(let t in r)if(!(n[t]||i&&i[t])){const e=r[t];for(let s=0;s<e.length;s++){const{part:n}=e[s].info;if(!n.signature||!n.signature.static){console.warn(`Property '${t}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}(e,s,n)}if(t.__dataProto&&Object.assign(t.__data,t.__dataProto),a)o=l,$n=i=t,Object.setPrototypeOf(i,o.prototype),new o,$n=null,t.__dataTemp={},t.__dataPending=null,t.__dataOld=null,t._enableProperties();else{Object.setPrototypeOf(t,l.prototype);const s=e.hostProps;for(let e in s)if(e="_host_"+e,e in t){const s=t[e];delete t[e],t.__data[e]=s}}}var i,o}function Qn(t,e){return function(t,s,n){e.call(t.__templatizeOwner,s.substring(6),n[s])}}function tr(t,e){return function(t,s,n){e.call(t.__templatizeOwner,t,s,n[s])}}function er(t,e,s){if(y&&!Wn(t))throw new Error("strictTemplatePolicy: template owner not trusted");if(s=s||{},t.__templatizeOwner)throw new Error("A <template> can only be templatized once");t.__templatizeOwner=e;let n=(e?e.constructor:Xn)._parseTemplate(t),r=n.templatizeInstanceClass;r||(r=Kn(t,n,s),n.templatizeInstanceClass=r);const i=Wn(t);Zn(t,n,s,i);let o=class extends r{};return o.prototype._methodHost=i,o.prototype.__dataHost=t,o.prototype.__templatizeOwner=e,o.prototype.__hostProps=n.hostProps,o}function sr(t,e){let s;for(;e;)if(s=e.__dataHost?e:e.__templatizeInstance){if(s.__dataHost==t)return s;e=s.__dataHost}else e=j(e).parentNode;return null}
|
|
292
|
+
/**
|
|
293
|
+
@license
|
|
294
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
295
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
296
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
297
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
298
|
+
Code distributed by Google as part of the polymer project is also
|
|
299
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
300
|
+
*/let nr=!1;function rr(){if(i&&!I){if(!nr){nr=!0;const t=document.createElement("style");t.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(t)}return!0}return!1}
|
|
301
|
+
/**
|
|
302
|
+
@license
|
|
303
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
304
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
305
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
306
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
307
|
+
Code distributed by Google as part of the polymer project is also
|
|
308
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
309
|
+
*/const ir=$s(Bn(ce(HTMLElement)));customElements.define("dom-bind",class extends ir{static get observedAttributes(){return["mutable-data"]}constructor(){if(super(),y)throw new Error("strictTemplatePolicy: dom-bind not allowed");this.root=null,this.$=null,this.__children=null}attributeChangedCallback(t,e,s,n){this.mutableData=!0}connectedCallback(){rr()||(this.style.display="none"),this.render()}disconnectedCallback(){this.__removeChildren()}__insertChildren(){j(j(this).parentNode).insertBefore(this.root,this)}__removeChildren(){if(this.__children)for(let t=0;t<this.__children.length;t++)this.root.appendChild(this.__children[t])}render(){let t;if(!this.__children){if(t=t||this.querySelector("template"),!t){let e=new MutationObserver((()=>{if(t=this.querySelector("template"),!t)throw new Error("dom-bind requires a <template> child");e.disconnect(),this.render()}));return void e.observe(this,{childList:!0})}this.root=this._stampTemplate(t),this.$=this.root.$,this.__children=[];for(let t=this.root.firstChild;t;t=t.nextSibling)this.__children[this.__children.length]=t;this._enableProperties()}this.__insertChildren(),this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}});
|
|
310
|
+
/**
|
|
311
|
+
@license
|
|
312
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
313
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
314
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
315
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
316
|
+
Code distributed by Google as part of the polymer project is also
|
|
317
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
318
|
+
*/
|
|
319
|
+
const or=Bn(fe);class ar extends or{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!M,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),rr()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=j(j(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const t=this;let e=this.template=t._templateInfo?t:this.querySelector("template");if(!e){let t=new MutationObserver((()=>{if(!this.querySelector("template"))throw new Error("dom-repeat requires a <template> child");t.disconnect(),this.__render()}));return t.observe(this,{childList:!0}),!1}let s={};s[this.as]=!0,s[this.indexAs]=!0,s[this.itemsIndexAs]=!0,this.__ctor=er(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:s,forwardHostProp:function(t,e){let s=this.__instances;for(let n,r=0;r<s.length&&(n=s[r]);r++)n.forwardHostProp(t,e)},notifyInstanceProp:function(t,e,s){if(J(this.as,e)){let n=t[this.itemsIndexAs];e==this.as&&(this.items[n]=s);let r=q(this.as,`${JSCompiler_renameProperty("items",this)}.${n}`,e);this.notifyPath(r,s)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if("string"==typeof t){let e=t,s=this.__getMethodHost();return function(){return s[e].apply(s,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(t){return Math.ceil(1e3/t)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn)if(t){if(this.__observePaths){let e=this.__observePaths;for(let s=0;s<e.length;s++)0===t.indexOf(e[s])&&this.__debounceRender(this.__render,this.delay)}}else this.__debounceRender(this.__render,this.delay)}__itemsChanged(t){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(t.path,t.value)||("items"===t.path&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(t,e=0){this.__renderDebouncer=me.debounce(this.__renderDebouncer,e>0?lt.after(e):dt,t.bind(this)),ge(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Pe()}__render(){if(!this.__ensureTemplatized())return;let t=this.items||[];const e=this.__sortAndFilterItems(t),s=this.__calculateLimit(e.length);this.__updateInstances(t,s,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame((()=>{this.__chunkingId=null,this.__continueChunking()}))),this._setRenderedItemCount(this.__instances.length),M&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(t){let e=new Array(t.length);for(let s=0;s<t.length;s++)e[s]=s;return this.__filterFn&&(e=e.filter(((e,s,n)=>this.__filterFn(t[e],s,n)))),this.__sortFn&&e.sort(((e,s)=>this.__sortFn(t[e],t[s]))),e}__calculateLimit(t){let e=t;const s=this.__instances.length;if(this.initialCount){let n;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(t,this.initialCount),n=Math.max(e-s,0),this.__chunkCount=n||1):(n=Math.min(Math.max(t-s,0),this.__chunkCount),e=Math.min(s+n,t)),this.__shouldMeasureChunk=n===this.__chunkCount,this.__shouldContinueChunking=e<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,e}__continueChunking(){if(this.__shouldMeasureChunk){const t=performance.now()-this.__renderStartTime,e=this._targetFrameTime/t;this.__chunkCount=Math.round(this.__chunkCount*e)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(t,e,s){const n=this.__itemsIdxToInstIdx={};let r;for(r=0;r<e;r++){let e=this.__instances[r],i=s[r],o=t[i];n[i]=r,e?(e._setPendingProperty(this.as,o),e._setPendingProperty(this.indexAs,r),e._setPendingProperty(this.itemsIndexAs,i),e._flushProperties()):this.__insertInstance(o,r,i)}for(let t=this.__instances.length-1;t>=r;t--)this.__detachAndRemoveInstance(t)}__detachInstance(t){let e=this.__instances[t];const s=j(e.root);for(let t=0;t<e.children.length;t++){let n=e.children[t];s.appendChild(n)}return e}__attachInstance(t,e){let s=this.__instances[t];e.insertBefore(s.root,this)}__detachAndRemoveInstance(t){this.__detachInstance(t),this.__instances.splice(t,1)}__stampInstance(t,e,s){let n={};return n[this.as]=t,n[this.indexAs]=e,n[this.itemsIndexAs]=s,new this.__ctor(n)}__insertInstance(t,e,s){const n=this.__stampInstance(t,e,s);let r=this.__instances[e+1],i=r?r.children[0]:this;return j(j(this).parentNode).insertBefore(n.root,i),this.__instances[e]=n,n}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t)}__handleItemPath(t,e){let s=t.slice(6),n=s.indexOf("."),r=n<0?s:s.substring(0,n);if(r==parseInt(r,10)){let t=n<0?"":s.substring(n+1);this.__handleObservedPaths(t);let i=this.__itemsIdxToInstIdx[r],o=this.__instances[i];if(o){let s=this.as+(t?"."+t:"");o._setPendingPropertyOrPath(s,e,!1,!0),o._flushProperties()}return!0}}itemForElement(t){let e=this.modelForElement(t);return e&&e[this.as]}indexForElement(t){let e=this.modelForElement(t);return e&&e[this.indexAs]}modelForElement(t){return sr(this.template,t)}}customElements.define(ar.is,ar);
|
|
320
|
+
/**
|
|
321
|
+
@license
|
|
322
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
323
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
324
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
325
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
326
|
+
Code distributed by Google as part of the polymer project is also
|
|
327
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
328
|
+
*/
|
|
329
|
+
class lr extends fe{static get is(){return"dom-if"}static get template(){return null}static get properties(){return{if:{type:Boolean,observer:"__debounceRender"},restamp:{type:Boolean,observer:"__debounceRender"},notifyDomChange:{type:Boolean}}}constructor(){super(),this.__renderDebouncer=null,this._lastIf=!1,this.__hideTemplateChildren__=!1,this.__template,this._templateInfo}__debounceRender(){this.__renderDebouncer=me.debounce(this.__renderDebouncer,dt,(()=>this.__render())),ge(this.__renderDebouncer)}disconnectedCallback(){super.disconnectedCallback();const t=j(this).parentNode;t&&(t.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||j(t).host)||this.__teardownInstance()}connectedCallback(){super.connectedCallback(),rr()||(this.style.display="none"),this.if&&this.__debounceRender()}__ensureTemplate(){if(!this.__template){const t=this;let e=t._templateInfo?t:j(t).querySelector("template");if(!e){let t=new MutationObserver((()=>{if(!j(this).querySelector("template"))throw new Error("dom-if requires a <template> child");t.disconnect(),this.__render()}));return t.observe(this,{childList:!0}),!1}this.__template=e}return!0}__ensureInstance(){let t=j(this).parentNode;if(this.__hasInstance()){let e=this.__getInstanceNodes();if(e&&e.length){if(j(this).previousSibling!==e[e.length-1])for(let s,n=0;n<e.length&&(s=e[n]);n++)j(t).insertBefore(s,this)}}else{if(!t)return!1;if(!this.__ensureTemplate())return!1;this.__createAndInsertInstance(t)}return!0}render(){Pe()}__render(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren(),M&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)}__hasInstance(){}__getInstanceNodes(){}__createAndInsertInstance(t){}__teardownInstance(){}_showHideChildren(){}}const hr=s?class extends lr{constructor(){super(),this.__instance=null,this.__syncInfo=null}__hasInstance(){return Boolean(this.__instance)}__getInstanceNodes(){return this.__instance.templateInfo.childNodes}__createAndInsertInstance(t){const e=this.__dataHost||this;if(y&&!this.__dataHost)throw new Error("strictTemplatePolicy: template owner not trusted");const s=e._bindTemplate(this.__template,!0);s.runEffects=(t,e,s)=>{let n=this.__syncInfo;if(this.if)n&&(this.__syncInfo=null,this._showHideChildren(),e=Object.assign(n.changedProps,e)),t(e,s);else if(this.__instance)if(n||(n=this.__syncInfo={runEffects:t,changedProps:{}}),s)for(const t in e){const e=$(t);n.changedProps[e]=this.__dataHost[e]}else Object.assign(n.changedProps,e)},this.__instance=e._stampTemplate(this.__template,s),j(t).insertBefore(this.__instance,this)}__syncHostProperties(){const t=this.__syncInfo;t&&(this.__syncInfo=null,t.runEffects(t.changedProps,!1))}__teardownInstance(){const t=this.__dataHost||this;this.__instance&&(t._removeBoundDom(this.__instance),this.__instance=null,this.__syncInfo=null)}_showHideChildren(){const t=this.__hideTemplateChildren__||!this.if;this.__instance&&Boolean(this.__instance.__hidden)!==t&&(this.__instance.__hidden=t,Vn(t,this.__instance.templateInfo.childNodes)),t||this.__syncHostProperties()}}:class extends lr{constructor(){super(),this.__ctor=null,this.__instance=null,this.__invalidProps=null}__hasInstance(){return Boolean(this.__instance)}__getInstanceNodes(){return this.__instance.children}__createAndInsertInstance(t){this.__ctor||(this.__ctor=er(this.__template,this,{mutableData:!0,forwardHostProp:function(t,e){this.__instance&&(this.if?this.__instance.forwardHostProp(t,e):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[$(t)]=!0))}})),this.__instance=new this.__ctor,j(t).insertBefore(this.__instance.root,this)}__teardownInstance(){if(this.__instance){let t=this.__instance.children;if(t&&t.length){let e=j(t[0]).parentNode;if(e){e=j(e);for(let s,n=0;n<t.length&&(s=t[n]);n++)e.removeChild(s)}}this.__invalidProps=null,this.__instance=null}}__syncHostProperties(){let t=this.__invalidProps;if(t){this.__invalidProps=null;for(let e in t)this.__instance._setPendingProperty(e,this.__dataHost[e]);this.__instance._flushProperties()}}_showHideChildren(){const t=this.__hideTemplateChildren__||!this.if;this.__instance&&Boolean(this.__instance.__hidden)!==t&&(this.__instance.__hidden=t,this.__instance._showHideChildren(t)),t||this.__syncHostProperties()}};customElements.define(hr.is,hr);
|
|
330
|
+
/**
|
|
331
|
+
@license
|
|
332
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
333
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
334
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
335
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
336
|
+
Code distributed by Google as part of the polymer project is also
|
|
337
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
338
|
+
*/
|
|
339
|
+
let cr,dr=z((t=>{let e=pe(t);return class extends e{static get properties(){return{items:{type:Array},multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}static get observers(){return["__updateSelection(multi, items.*)"]}constructor(){super(),this.__lastItems=null,this.__lastMulti=null,this.__selectedMap=null}__updateSelection(t,e){let s=e.path;if(s==JSCompiler_renameProperty("items",this)){let s=e.base||[],n=this.__lastItems;if(t!==this.__lastMulti&&this.clearSelection(),n){let t=ln(s,n);this.__applySplices(t)}this.__lastItems=s,this.__lastMulti=t}else if(e.path==`${JSCompiler_renameProperty("items",this)}.splices`)this.__applySplices(e.value.indexSplices);else{let t=s.slice(`${JSCompiler_renameProperty("items",this)}.`.length),e=parseInt(t,10);t.indexOf(".")<0&&t==e&&this.__deselectChangedIdx(e)}}__applySplices(t){let e=this.__selectedMap;for(let s=0;s<t.length;s++){let n=t[s];e.forEach(((t,s)=>{t<n.index||(t>=n.index+n.removed.length?e.set(s,t+n.addedCount-n.removed.length):e.set(s,-1))}));for(let t=0;t<n.addedCount;t++){let s=n.index+t;e.has(this.items[s])&&e.set(this.items[s],s)}}this.__updateLinks();let s=0;e.forEach(((t,n)=>{t<0?(this.multi?this.splice(JSCompiler_renameProperty("selected",this),s,1):this.selected=this.selectedItem=null,e.delete(n)):s++}))}__updateLinks(){if(this.__dataLinkedPaths={},this.multi){let t=0;this.__selectedMap.forEach((e=>{e>=0&&this.linkPaths(`${JSCompiler_renameProperty("items",this)}.${e}`,`${JSCompiler_renameProperty("selected",this)}.${t++}`)}))}else this.__selectedMap.forEach((t=>{this.linkPaths(JSCompiler_renameProperty("selected",this),`${JSCompiler_renameProperty("items",this)}.${t}`),this.linkPaths(JSCompiler_renameProperty("selectedItem",this),`${JSCompiler_renameProperty("items",this)}.${t}`)}))}clearSelection(){this.__dataLinkedPaths={},this.__selectedMap=new Map,this.selected=this.multi?[]:null,this.selectedItem=null}isSelected(t){return this.__selectedMap.has(t)}isIndexSelected(t){return this.isSelected(this.items[t])}__deselectChangedIdx(t){let e=this.__selectedIndexForItemIndex(t);if(e>=0){let t=0;this.__selectedMap.forEach(((s,n)=>{e==t++&&this.deselect(n)}))}}__selectedIndexForItemIndex(t){let e=this.__dataLinkedPaths[`${JSCompiler_renameProperty("items",this)}.${t}`];if(e)return parseInt(e.slice(`${JSCompiler_renameProperty("selected",this)}.`.length),10)}deselect(t){let e=this.__selectedMap.get(t);if(e>=0){let s;this.__selectedMap.delete(t),this.multi&&(s=this.__selectedIndexForItemIndex(e)),this.__updateLinks(),this.multi?this.splice(JSCompiler_renameProperty("selected",this),s,1):this.selected=this.selectedItem=null}}deselectIndex(t){this.deselect(this.items[t])}select(t){this.selectIndex(this.items.indexOf(t))}selectIndex(t){let e=this.items[t];this.isSelected(e)?this.toggle&&this.deselectIndex(t):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(e,t),this.__updateLinks(),this.multi?this.push(JSCompiler_renameProperty("selected",this),e):this.selected=this.selectedItem=e)}}}))(fe);class ur extends dr{static get is(){return"array-selector"}static get template(){return null}}customElements.define(ur.is,ur),cr=jn._mutablePropertyChange;const _r={properties:{mutableData:Boolean},_shouldPropertyChange(t,e,s){return cr(this,t,e,s,this.mutableData)}},pr=An(HTMLElement).prototype;
|
|
340
|
+
/**
|
|
341
|
+
@license
|
|
342
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
343
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
344
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
345
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
346
|
+
Code distributed by Google as part of the polymer project is also
|
|
347
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
348
|
+
*/export{pr as B,me as D,dn as F,$s as G,_r as O,fe as P,ht as a,Hn as b,er as c,bn as d,ge as e,Pe as f,dt as g,L as h,ct as i,J as j,q as k,En as l,sr as m,Mn as n,Is as o,Fs as r,ks as s,lt as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./shared-
|
|
1
|
+
import"./shared-148b225a.js";import{I as e}from"./shared-b9142668.js";import"./shared-f2e36f0f.js";import{_ as t}from"./shared-8f9014ff.js";import{h as s,s as i}from"./shared-ba5c42c7.js";import{c as l}from"./shared-4e709717.js";let r,a,o,h,n,c,d=e=>e;customElements.define("foxy-internal-switch-control",class extends e{constructor(){super(...arguments),this.helperTextAsToolip=!1,this.falseAlias=null,this.trueAlias=null,this.invert=!1}static get properties(){return t(t({},super.properties),{},{helperTextAsToolip:{type:Boolean,attribute:"helper-text-as-tooltip"},falseAlias:{attribute:"false-alias"},trueAlias:{attribute:"true-alias"},invert:{type:Boolean}})}renderControl(){const e=this.invert?!this._value:!!this._value;return s(r||(r=d` <div class="flex items-start gap-s leading-xs text-m"> <div class="flex-1"> <label class="text-m text-body" for="input">${0}</label> ${0} <p class="text-xs text-error" style="max-width:32rem" ?hidden="${0}"> ${0} </p> </div> ${0} ${0} </div> `),this.label,this.helperTextAsToolip?"":s(a||(a=d`<p class="text-xs text-secondary" style="max-width:32rem"> ${0} </p>`),this.helperText),this.disabled||this.readonly,this._errorMessage,this.readonly?s(o||(o=d`<p class="text-secondary">${0}</p>`),e?this.t("checked"):this.t("unchecked")):s(h||(h=d` <div style="height:calc(1em * var(--lumo-line-height-xs))" class="flex items-center"> <div style="border-radius:var(--lumo-size-xl);width:calc((1em * var(--lumo-line-height-xs)) - 3px + var(--lumo-space-m))" class="${0}" @click="${0}"> <div style="margin:1.5px;width:calc((1em * var(--lumo-line-height-xs)) - 6px);height:calc((1em * var(--lumo-line-height-xs)) - 6px)" class="${0}"></div> <input class="opacity-0 absolute inset-0 focus-outline-none" type="checkbox" id="input" switch ?disabled="${0}" ?readonly="${0}" ?checked="${0}" @change="${0}"> </div> </div> `),l({"cursor-pointer group transition-colors relative":!0,"flex flex-shrink-0 items-center":!0,"bg-success":!this.disabled&&e,"bg-contrast-20 hover-bg-contrast-30":!this.disabled&&!e,"bg-contrast-10":this.disabled,"focus-within-ring-2 focus-within-ring-primary-50":!0}),(()=>this._value=!this._value),l({"transition-all transform block rounded-full":!0,"translate-x-m":e,"translate-x-0":!e,"bg-base":this.disabled,"bg-tint":!this.disabled}),this.disabled,this.readonly,e,(e=>{const t=e.currentTarget;this._value=this.invert?!t.checked:t.checked})),this.helperTextAsToolip&&this.helperText?s(n||(n=d` <div class="transition-colors text-tertiary flex-shrink-0 cursor-pointer hover-text-body" id="trigger"> ${0} </div> <vcf-tooltip for="trigger" style="--lumo-base-color:black;max-width:30rem" class="mt-s" theme="light" position="bottom"> <span class="text-s" style="color:#fff">${0}</span> </vcf-tooltip> `),i(c||(c=d`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" style="width: calc(1em * var(--lumo-line-height-xs)); height: calc(1em * var(--lumo-line-height-xs)); margin-right: -0.12em"><path stroke-linecap="round" stroke-linejoin="round" d="M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z" /></svg>`)),this.helperText):"")}get _value(){const e=super._value;return!(!this.trueAlias||e!==this.trueAlias)||(!this.falseAlias||e!==this.falseAlias)&&!!e}set _value(e){this.trueAlias&&!0===e?super._value=this.trueAlias:this.falseAlias&&!1===e?super._value=this.falseAlias:super._value=e}_handleHostClick(e){var t;const s=e.composedPath(),i=new Set(["INPUT","LABEL"]);s.some((e=>i.has(e.tagName)))||(null===(t=this.renderRoot.querySelector("input"))||void 0===t||t.click(),super._handleHostClick(e))}});
|