@swisspost/design-system-components 10.7.0 → 10.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{create-validator-decorator-D7nAb9KJ.js → create-validator-decorator-DVm_SDrR.js} +1 -1
- package/dist/cjs/{index-DWIlRT6N.js → index-DY4QxKNv.js} +5 -5
- package/dist/cjs/is-focus-visible-B3CqVQsX.js +19 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{one-of-B8RUgrZk.js → one-of-qu7_EPxf.js} +1 -1
- package/dist/cjs/{package-BtKYhTNj.js → package-DAEQGHsE.js} +1 -1
- package/dist/cjs/{pattern-B6VoDk_m.js → pattern-EpwCKMyC.js} +1 -1
- package/dist/cjs/post-accordion_2.cjs.entry.js +6 -6
- package/dist/cjs/post-autocomplete.cjs.entry.js +5 -5
- package/dist/cjs/post-avatar.cjs.entry.js +85 -61
- package/dist/cjs/post-back-to-top.cjs.entry.js +6 -6
- package/dist/cjs/post-banner.cjs.entry.js +5 -5
- package/dist/cjs/post-breadcrumb-item.cjs.entry.js +8 -8
- package/dist/cjs/post-breadcrumbs.cjs.entry.js +7 -7
- package/dist/cjs/post-closebutton_14.cjs.entry.js +470 -592
- package/dist/cjs/post-collapsible_2.cjs.entry.js +13 -7
- package/dist/cjs/post-components.cjs.js +2 -2
- package/dist/cjs/post-date-picker.cjs.entry.js +22 -8
- package/dist/cjs/post-footer.cjs.entry.js +5 -5
- package/dist/cjs/post-linkarea.cjs.entry.js +2 -2
- package/dist/cjs/post-listbox-option.cjs.entry.js +2 -2
- package/dist/cjs/post-listbox.cjs.entry.js +2 -2
- package/dist/cjs/post-number-input.cjs.entry.js +3 -3
- package/dist/cjs/post-pagination.cjs.entry.js +6 -6
- package/dist/cjs/post-popover-trigger.cjs.entry.js +4 -4
- package/dist/cjs/post-popover.cjs.entry.js +9 -9
- package/dist/cjs/post-progressbar.cjs.entry.js +3 -3
- package/dist/cjs/post-rating.cjs.entry.js +5 -5
- package/dist/cjs/post-side-navigation-trigger.cjs.entry.js +5 -5
- package/dist/cjs/post-side-navigation.cjs.entry.js +14 -9
- package/dist/cjs/post-stepper-item.cjs.entry.js +2 -2
- package/dist/cjs/post-stepper.cjs.entry.js +6 -6
- package/dist/cjs/post-tab-item.cjs.entry.js +5 -5
- package/dist/cjs/post-tab-panel.cjs.entry.js +5 -5
- package/dist/cjs/post-tabs.cjs.entry.js +8 -8
- package/dist/cjs/post-tooltip-trigger.cjs.entry.js +6 -6
- package/dist/cjs/post-tooltip.cjs.entry.js +8 -6
- package/dist/cjs/{required-bXtlqqaA.js → required-Dgzo-rb5.js} +1 -1
- package/dist/cjs/{type-BqLE7Uui.js → type-DBRxpBZI.js} +1 -1
- package/dist/cjs/{url-CUy3C3sH.js → url-Dl1JABeP.js} +1 -1
- package/dist/collection/components/post-accordion-item/post-accordion-item.css +1 -1
- package/dist/collection/components/post-avatar/avatar-utils.js +1 -2
- package/dist/collection/components/post-avatar/post-avatar.js +77 -59
- package/dist/collection/components/post-back-to-top/post-back-to-top.css +1 -1
- package/dist/collection/components/post-banner/post-banner.css +1 -1
- package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.css +1 -1
- package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.css +1 -1
- package/dist/collection/components/post-closebutton/post-closebutton.css +1 -1
- package/dist/collection/components/post-collapsible/post-collapsible.js +9 -3
- package/dist/collection/components/post-date-picker/post-date-picker.css +1 -1
- package/dist/collection/components/post-date-picker/post-date-picker.js +16 -2
- package/dist/collection/components/post-header/post-header.css +1 -1
- package/dist/collection/components/post-header/post-header.js +31 -12
- package/dist/collection/components/post-language-menu/post-language-menu.css +1 -1
- package/dist/collection/components/post-language-menu/post-language-menu.js +1 -1
- package/dist/collection/components/post-logo/post-logo.css +1 -1
- package/dist/collection/components/post-megadropdown/post-megadropdown.css +1 -1
- package/dist/collection/components/post-megadropdown/post-megadropdown.js +34 -16
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.css +1 -1
- package/dist/collection/components/post-menu/post-menu.css +1 -1
- package/dist/collection/components/post-menu/post-menu.js +3 -14
- package/dist/collection/components/post-menu-item/post-menu-item.css +1 -1
- package/dist/collection/components/post-number-input/post-number-input.css +2 -2
- package/dist/collection/components/post-pagination/post-pagination.css +1 -1
- package/dist/collection/components/post-popover/post-popover.css +1 -1
- package/dist/collection/components/post-popover/post-popover.js +2 -2
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +211 -323
- package/dist/collection/components/post-side-navigation/post-side-navigation.css +1 -1
- package/dist/collection/components/post-side-navigation/post-side-navigation.js +7 -3
- package/dist/collection/components/post-tabs/post-tabs.css +1 -1
- package/dist/collection/components/post-tabs/post-tabs.js +2 -2
- package/dist/collection/components/post-tooltip/post-tooltip.css +1 -1
- package/dist/collection/components/post-tooltip/post-tooltip.js +3 -1
- package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +1 -1
- package/dist/collection/utils/floating-ui/middleware/flip.js +77 -0
- package/dist/collection/utils/floating-ui/middleware/safe-space.js +52 -0
- package/dist/collection/utils/floating-ui/util.js +10 -0
- package/dist/collection/utils/index.js +1 -0
- package/dist/collection/utils/is-focus-visible.js +15 -0
- package/dist/components/is-focus-visible.js +1 -0
- package/dist/components/package.js +1 -1
- package/dist/components/post-accordion-item2.js +1 -1
- package/dist/components/post-avatar.js +1 -1
- package/dist/components/post-back-to-top.js +1 -1
- package/dist/components/post-banner.js +1 -1
- package/dist/components/post-breadcrumb-item.js +1 -1
- package/dist/components/post-breadcrumbs.js +1 -1
- package/dist/components/post-closebutton2.js +1 -1
- package/dist/components/post-collapsible2.js +1 -1
- package/dist/components/post-date-picker.js +1 -1
- package/dist/components/post-header.js +1 -1
- package/dist/components/post-language-menu.js +1 -1
- package/dist/components/post-logo.js +1 -1
- package/dist/components/post-megadropdown-trigger.js +1 -1
- package/dist/components/post-megadropdown.js +1 -1
- package/dist/components/post-menu-item2.js +1 -1
- package/dist/components/post-menu2.js +1 -1
- package/dist/components/post-number-input.js +1 -1
- package/dist/components/post-pagination.js +1 -1
- package/dist/components/post-popover.js +1 -1
- package/dist/components/post-popovercontainer2.js +1 -1
- package/dist/components/post-side-navigation.js +1 -1
- package/dist/components/post-tabs.js +1 -1
- package/dist/components/post-tooltip-trigger.js +1 -1
- package/dist/components/post-tooltip.js +1 -1
- package/dist/components/react/index.js +1 -1
- package/dist/components/react/p-5kW0ZF_f.js +1 -0
- package/dist/components/react/p-BMCit4BU.js +1 -0
- package/dist/components/react/p-BWwWKRO5.js +1 -0
- package/dist/components/react/p-BdiQsTQm.js +1 -0
- package/dist/components/react/p-BeRGbt65.js +1 -0
- package/dist/components/react/{p-DS46v3ju.js → p-C8i672qm.js} +1 -1
- package/dist/components/react/{p-BBv5JYsW.js → p-C_JY6ipN.js} +1 -1
- package/dist/components/react/p-DRJ9K8sv.js +1 -0
- package/dist/components/react/{p-1y1rv5Tw.js → p-DygUkCKz.js} +1 -1
- package/dist/components/react/p-DzYMQFK2.js +1 -0
- package/dist/components/react/{p-BgEY7xhT.js → p-E-8qAn1z.js} +1 -1
- package/dist/components/react/p-Q5LQWL2X.js +1 -0
- package/dist/components/react/{p-C8_zqgAP.js → p-UXyZDQt4.js} +1 -1
- package/dist/components/react/post-accordion-item.js +1 -1
- package/dist/components/react/post-accordion.js +1 -1
- package/dist/components/react/post-autocomplete.js +1 -1
- package/dist/components/react/post-avatar.js +1 -1
- package/dist/components/react/post-back-to-top.js +1 -1
- package/dist/components/react/post-banner.js +1 -1
- package/dist/components/react/post-breadcrumb-item.js +1 -1
- package/dist/components/react/post-breadcrumbs.js +1 -1
- package/dist/components/react/post-closebutton.js +1 -1
- package/dist/components/react/post-collapsible-trigger.js +1 -1
- package/dist/components/react/post-collapsible.js +1 -1
- package/dist/components/react/post-date-picker.js +1 -1
- package/dist/components/react/post-footer.js +1 -1
- package/dist/components/react/post-header.js +1 -1
- package/dist/components/react/post-icon.js +1 -1
- package/dist/components/react/post-language-menu-item.js +1 -1
- package/dist/components/react/post-language-menu.js +1 -1
- package/dist/components/react/post-linkarea.js +1 -1
- package/dist/components/react/post-listbox-option.js +1 -1
- package/dist/components/react/post-listbox.js +1 -1
- package/dist/components/react/post-logo.js +1 -1
- package/dist/components/react/post-mainnavigation.js +1 -1
- package/dist/components/react/post-megadropdown-trigger.js +1 -1
- package/dist/components/react/post-megadropdown.js +1 -1
- package/dist/components/react/post-menu-item.js +1 -1
- package/dist/components/react/post-menu-trigger.js +1 -1
- package/dist/components/react/post-menu.js +1 -1
- package/dist/components/react/post-number-input.js +1 -1
- package/dist/components/react/post-pagination.js +1 -1
- package/dist/components/react/post-popover-trigger.js +1 -1
- package/dist/components/react/post-popover.js +1 -1
- package/dist/components/react/post-popovercontainer.js +1 -1
- package/dist/components/react/post-rating.js +1 -1
- package/dist/components/react/post-side-navigation-trigger.js +1 -1
- package/dist/components/react/post-side-navigation.js +1 -1
- package/dist/components/react/post-stepper-item.js +1 -1
- package/dist/components/react/post-stepper.js +1 -1
- package/dist/components/react/post-tab-item.js +1 -1
- package/dist/components/react/post-tab-panel.js +1 -1
- package/dist/components/react/post-tabs.js +1 -1
- package/dist/components/react/post-togglebutton.js +1 -1
- package/dist/components/react/post-tooltip-trigger.js +1 -1
- package/dist/components/react/post-tooltip.js +1 -1
- package/dist/docs.json +67 -45
- package/dist/esm/{create-validator-decorator-DFpQtJzK.js → create-validator-decorator-Cp_NUmrr.js} +1 -1
- package/dist/esm/{index-Bs0zeM5Q.js → index-D0jX3Fts.js} +5 -5
- package/dist/esm/is-focus-visible-BWwWKRO5.js +17 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{one-of-DQCfaZpw.js → one-of-B9locHPx.js} +1 -1
- package/dist/esm/{package-BBz9PVf0.js → package-BdiQsTQm.js} +1 -1
- package/dist/esm/{pattern-3lnaFlkk.js → pattern-BL3OBU8C.js} +1 -1
- package/dist/esm/post-accordion_2.entry.js +6 -6
- package/dist/esm/post-autocomplete.entry.js +5 -5
- package/dist/esm/post-avatar.entry.js +85 -61
- package/dist/esm/post-back-to-top.entry.js +6 -6
- package/dist/esm/post-banner.entry.js +5 -5
- package/dist/esm/post-breadcrumb-item.entry.js +8 -8
- package/dist/esm/post-breadcrumbs.entry.js +7 -7
- package/dist/esm/post-closebutton_14.entry.js +470 -592
- package/dist/esm/post-collapsible_2.entry.js +13 -7
- package/dist/esm/post-components.js +3 -3
- package/dist/esm/post-date-picker.entry.js +22 -8
- package/dist/esm/post-footer.entry.js +5 -5
- package/dist/esm/post-linkarea.entry.js +2 -2
- package/dist/esm/post-listbox-option.entry.js +2 -2
- package/dist/esm/post-listbox.entry.js +2 -2
- package/dist/esm/post-number-input.entry.js +3 -3
- package/dist/esm/post-pagination.entry.js +6 -6
- package/dist/esm/post-popover-trigger.entry.js +4 -4
- package/dist/esm/post-popover.entry.js +9 -9
- package/dist/esm/post-progressbar.entry.js +3 -3
- package/dist/esm/post-rating.entry.js +5 -5
- package/dist/esm/post-side-navigation-trigger.entry.js +5 -5
- package/dist/esm/post-side-navigation.entry.js +14 -9
- package/dist/esm/post-stepper-item.entry.js +2 -2
- package/dist/esm/post-stepper.entry.js +6 -6
- package/dist/esm/post-tab-item.entry.js +5 -5
- package/dist/esm/post-tab-panel.entry.js +5 -5
- package/dist/esm/post-tabs.entry.js +8 -8
- package/dist/esm/post-tooltip-trigger.entry.js +6 -6
- package/dist/esm/post-tooltip.entry.js +8 -6
- package/dist/esm/{required-NuzPg5jZ.js → required-CDaQB1gC.js} +1 -1
- package/dist/esm/{type-ChnksJ25.js → type-CQ7XuPCZ.js} +1 -1
- package/dist/esm/{url-BCk3ZU-x.js → url-B-86gtTK.js} +1 -1
- package/dist/post-components/p-0688d296.entry.js +1 -0
- package/dist/post-components/p-0b0b2f02.entry.js +1 -0
- package/dist/post-components/{p-31550a50.entry.js → p-0d25c033.entry.js} +1 -1
- package/dist/post-components/{p-aa33141b.entry.js → p-229d324e.entry.js} +1 -1
- package/dist/post-components/{p-f275b872.entry.js → p-2a5312a7.entry.js} +1 -1
- package/dist/post-components/{p-43240818.entry.js → p-330fd6cd.entry.js} +1 -1
- package/dist/post-components/{p-6a2f47af.entry.js → p-3712133b.entry.js} +1 -1
- package/dist/post-components/{p-bd128657.entry.js → p-379780a3.entry.js} +1 -1
- package/dist/post-components/{p-aff180f5.entry.js → p-3fdb8ebc.entry.js} +1 -1
- package/dist/post-components/{p-64480e3a.entry.js → p-456b0786.entry.js} +1 -1
- package/dist/post-components/{p-96d07f2b.entry.js → p-4d30c65d.entry.js} +1 -1
- package/dist/post-components/{p-c2de3702.entry.js → p-534ca27e.entry.js} +1 -1
- package/dist/post-components/p-5369b9c2.entry.js +1 -0
- package/dist/post-components/p-6833be12.entry.js +1 -0
- package/dist/post-components/p-6ad44691.entry.js +1 -0
- package/dist/post-components/{p-e6a4146b.entry.js → p-82c62e90.entry.js} +1 -1
- package/dist/post-components/{p-451ec8ee.entry.js → p-91a2ef3c.entry.js} +1 -1
- package/dist/post-components/p-95f5d5ea.entry.js +1 -0
- package/dist/post-components/p-9dd286bf.entry.js +1 -0
- package/dist/post-components/p-9fedcfba.entry.js +1 -0
- package/dist/post-components/{p-DeUk3rcv.js → p-BCPv4bcY.js} +1 -1
- package/dist/post-components/p-BWwWKRO5.js +1 -0
- package/dist/post-components/p-BdiQsTQm.js +1 -0
- package/dist/post-components/{p-D1s6tESz.js → p-CP3LjuFR.js} +1 -1
- package/dist/post-components/p-D0jX3Fts.js +2 -0
- package/dist/post-components/{p-Bl-_v3aT.js → p-D6mVqZLg.js} +1 -1
- package/dist/post-components/{p-BwhzbRIR.js → p-DSaWK_q-.js} +1 -1
- package/dist/post-components/p-VPHnF9fB.js +1 -0
- package/dist/post-components/{p-63e570c4.entry.js → p-ab0500b7.entry.js} +1 -1
- package/dist/post-components/p-c123ecde.entry.js +1 -0
- package/dist/post-components/{p-61a45246.entry.js → p-d2de31b7.entry.js} +1 -1
- package/dist/post-components/p-dffeb751.entry.js +1 -0
- package/dist/post-components/{p-f784e149.entry.js → p-e11ccdbe.entry.js} +1 -1
- package/dist/post-components/{p-31a97aae.entry.js → p-e560767b.entry.js} +1 -1
- package/dist/post-components/p-ee7fade4.entry.js +1 -0
- package/dist/post-components/{p-f566768e.entry.js → p-f2629077.entry.js} +1 -1
- package/dist/post-components/{p-58b66607.entry.js → p-f2b24bbd.entry.js} +1 -1
- package/dist/post-components/p-gv9b-Z15.js +1 -0
- package/dist/post-components/post-components.css +2 -2
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/components/post-avatar/avatar-utils.d.ts +0 -2
- package/dist/types/components/post-avatar/post-avatar.d.ts +11 -9
- package/dist/types/components/post-date-picker/post-date-picker.d.ts +2 -0
- package/dist/types/components/post-header/post-header.d.ts +2 -0
- package/dist/types/components/post-language-menu/post-language-menu.d.ts +3 -0
- package/dist/types/components/post-megadropdown/post-megadropdown.d.ts +1 -1
- package/dist/types/components/post-menu/post-menu.d.ts +0 -1
- package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +74 -69
- package/dist/types/components.d.ts +39 -26
- package/dist/types/utils/floating-ui/middleware/flip.d.ts +14 -0
- package/dist/types/utils/floating-ui/middleware/safe-space.d.ts +10 -0
- package/dist/types/utils/floating-ui/util.d.ts +4 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/is-focus-visible.d.ts +5 -0
- package/dist/vrt/helpers/header-test-config.js +2 -1
- package/hydrate/index.js +537 -602
- package/hydrate/index.mjs +537 -602
- package/package.json +11 -10
- package/dist/components/react/p-BBz9PVf0.js +0 -1
- package/dist/components/react/p-C3J7fIWx.js +0 -1
- package/dist/components/react/p-C5ibTdH5.js +0 -1
- package/dist/components/react/p-CUKzje9q.js +0 -1
- package/dist/components/react/p-DTBtJCjk.js +0 -1
- package/dist/components/react/p-XUkUhxaz.js +0 -1
- package/dist/components/react/p-ialuSSl2.js +0 -1
- package/dist/post-components/p-10e430c3.entry.js +0 -1
- package/dist/post-components/p-32e1e951.entry.js +0 -1
- package/dist/post-components/p-4f08b99b.entry.js +0 -1
- package/dist/post-components/p-54432b47.entry.js +0 -1
- package/dist/post-components/p-5d7de657.entry.js +0 -1
- package/dist/post-components/p-63dd9a76.entry.js +0 -1
- package/dist/post-components/p-9a1e8b1d.entry.js +0 -1
- package/dist/post-components/p-BBz9PVf0.js +0 -1
- package/dist/post-components/p-Bs0zeM5Q.js +0 -2
- package/dist/post-components/p-DH-eJVHZ.js +0 -1
- package/dist/post-components/p-Dk-DtPZn.js +0 -1
- package/dist/post-components/p-d5327dd1.entry.js +0 -1
- package/dist/post-components/p-e1817744.entry.js +0 -1
- package/dist/post-components/p-f6da5e69.entry.js +0 -1
- package/dist/post-components/p-f917527c.entry.js +0 -1
- package/dist/types/home/runner/work/design-system/design-system/packages/components/.stencil/vrt/helpers/header-variants.config.d.ts +0 -23
- package/dist/vrt/helpers/header-variants.config.js +0 -157
- /package/dist/collection/utils/{floating-ui.js → floating-ui/platform/safe-area.js} +0 -0
- /package/dist/types/utils/{floating-ui.d.ts → floating-ui/platform/safe-area.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swisspost/design-system-components",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.8.0",
|
|
4
4
|
"description": "A collection of web components built with Stencil JS for the Swiss Post Design System.",
|
|
5
5
|
"author": "Swiss Post <design-system@post.ch>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -82,8 +82,8 @@
|
|
|
82
82
|
"@floating-ui/utils": "0.2.12",
|
|
83
83
|
"@oddbird/popover-polyfill": "0.6.0",
|
|
84
84
|
"@stencil/core": "4.43.3",
|
|
85
|
-
"@swisspost/design-system-icons": "10.
|
|
86
|
-
"@swisspost/design-system-styles": "10.
|
|
85
|
+
"@swisspost/design-system-icons": "10.8.0",
|
|
86
|
+
"@swisspost/design-system-styles": "10.8.0",
|
|
87
87
|
"air-datepicker": "3.6.0",
|
|
88
88
|
"ally.js": "1.4.1",
|
|
89
89
|
"imask": "7.6.1"
|
|
@@ -95,18 +95,19 @@
|
|
|
95
95
|
"@stencil/angular-output-target": "1.1.1",
|
|
96
96
|
"@stencil/react-output-target": "1.2.0",
|
|
97
97
|
"@stencil/sass": "3.0.12",
|
|
98
|
-
"@swisspost/design-system-tokens": "10.
|
|
99
|
-
"@swisspost/design-system-eslint": "10.
|
|
100
|
-
"@swisspost/design-system-eslint-config": "10.
|
|
101
|
-
"@swisspost/design-system-prettier-config": "10.
|
|
102
|
-
"@swisspost/design-system-stylelint-config": "10.
|
|
103
|
-
"@swisspost/design-system-cypress-config": "10.
|
|
104
|
-
"@swisspost/design-system-tsconfig": "10.
|
|
98
|
+
"@swisspost/design-system-tokens": "10.8.0",
|
|
99
|
+
"@swisspost/design-system-eslint": "10.8.0",
|
|
100
|
+
"@swisspost/design-system-eslint-config": "10.8.0",
|
|
101
|
+
"@swisspost/design-system-prettier-config": "10.8.0",
|
|
102
|
+
"@swisspost/design-system-stylelint-config": "10.8.0",
|
|
103
|
+
"@swisspost/design-system-cypress-config": "10.8.0",
|
|
104
|
+
"@swisspost/design-system-tsconfig": "10.8.0",
|
|
105
105
|
"@types/jest": "29.5.14",
|
|
106
106
|
"@types/node": "24.0.0",
|
|
107
107
|
"copyfiles": "2.4.1",
|
|
108
108
|
"cypress": "15.20.1",
|
|
109
109
|
"cypress-axe": "1.7.0",
|
|
110
|
+
"cypress-real-events": "1.15.1",
|
|
110
111
|
"cypress-storybook": "1.0.0",
|
|
111
112
|
"eslint": "9.26.0",
|
|
112
113
|
"http-server": "14.1.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const o="10.7.0";export{o as v}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as t,H as e,c as s,h as o,a as i,t as n}from"./index.js";import{d as a,a as r}from"./p-ialuSSl2.js";import"./p-DeO0rZ1T.js";import{E as h}from"./p-BEcxHjuM.js";import{g as c}from"./p-DsaGKkkf.js";import{g as l}from"./p-08F-DB-d.js";import{v as p}from"./p-BBz9PVf0.js";import{O as d}from"./p-CnN4Jdtv.js";import{R as f}from"./p-B2jsM_Ov.js";import{T as m}from"./p-CVVXnYLU.js";var u=function(t,e,s,o){var i,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,s,o);else for(var r=t.length-1;r>=0;r--)(i=t[r])&&(a=(n<3?i(a):n>3?i(e,s,a):i(e,s))||a);return n>3&&a&&Object.defineProperty(e,s,a),a};const b=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.toggleMenu=s(this,"toggleMenu"),this.lastFocusedElement=null,this.KEYCODES={SPACE:" ",ENTER:"Enter",UP:"ArrowUp",DOWN:"ArrowDown",TAB:"Tab",HOME:"Home",END:"End",ESCAPE:"Escape"},this.placement="bottom",this.isVisible=!1,this.handleKeyDown=t=>{t.stopPropagation(),t.key!==this.KEYCODES.ESCAPE?Object.values(this.KEYCODES).includes(t.key)&&this.controlKeyDownHandler(t):this.toggle(this.host)},this.handleClick=t=>{["BUTTON","A","INPUT","SELECT","TEXTAREA"].includes(t.target.tagName)&&this.toggle(this.host)}}connectedCallback(){this.root=l(this.host),this.host.addEventListener("keydown",this.handleKeyDown),this.host.addEventListener("click",this.handleClick)}disconnectedCallback(){this.host.removeEventListener("keydown",this.handleKeyDown),this.host.removeEventListener("click",this.handleClick)}async toggle(t){this.popoverRef?await this.popoverRef.toggle(t):console.error("toggle: popoverRef is null or undefined")}async show(t){this.popoverRef?await this.popoverRef.show(t):console.error("show: popoverRef is null or undefined")}async hide(){this.popoverRef?await this.popoverRef.hide():console.error("hide: popoverRef is null or undefined")}handlePostShown(t){if(t.detail.first){this.host.setAttribute("role","menu");const t=this.getSlottedItems();for(const e of t)e.setAttribute("role","menuitem");this.label&&this.host.setAttribute("aria-label",this.label)}}handlePostBeforeToggle(t){this.isVisible=t.detail.willOpen,this.toggleMenu.emit(this.isVisible),this.isVisible?(this.lastFocusedElement=this.root?.activeElement,this.wasFocusVisible(this.lastFocusedElement)&&requestAnimationFrame((()=>{const t=this.getSlottedItems();t.length>0&&t[0].focus()}))):this.lastFocusedElement&&this.lastFocusedElement.focus()}wasFocusVisible(t){if(!t)return!1;try{return t.matches(":focus-visible")}catch{return!0}}controlKeyDownHandler(t){const e=this.getSlottedItems();if(0===e.length)return;let s=e.findIndex((t=>t===l(t).activeElement));switch(t.key){case this.KEYCODES.UP:t.preventDefault(),s=(s-1+e.length)%e.length;break;case this.KEYCODES.DOWN:t.preventDefault(),s=(s+1)%e.length;break;case this.KEYCODES.HOME:t.preventDefault(),s=0;break;case this.KEYCODES.END:t.preventDefault(),s=e.length-1;break;case this.KEYCODES.SPACE:return void this.toggle(this.host);case this.KEYCODES.TAB:this.toggle(this.host)}e[s]&&e[s].focus()}getSlottedItems(){const t=this.host.shadowRoot.querySelectorAll("slot"),e=[];return t.forEach((t=>e.push(...t.assignedElements()))),e.flatMap((t=>t instanceof HTMLSlotElement?t.assignedElements():t)).flatMap((t=>[...c(t),...t.shadowRoot?c(t.shadowRoot):[]]))}render(){return o(i,{key:"22441c2bef0402f10e77b96b8a5d48a0648615f7","data-version":p},o("post-popovercontainer",{key:"8b37fe55d58a3a486e947266348b55408999a8bb",onPostShow:this.handlePostShown.bind(this),onPostBeforeToggle:this.handlePostBeforeToggle.bind(this),placement:this.placement,ref:t=>this.popoverRef=t},o("div",{key:"2679eb9c4a95585b8aaf74e29f026c84b10aa6f3",part:"post-menu"},o("slot",{key:"0da58a1bde1bdb4c1f8b7b19ca8cbde14d7946fc",name:"header"}),o("slot",{key:"801f7bc59d4d3267728b9adf0750dbea76a7652c"}))))}get host(){return this}static get style(){return":host{display:block}:where([part=post-menu]){display:flex;flex-direction:column;padding-block:8px}::slotted([slot=header]){margin-top:-8px;padding:16px;display:flex;align-items:center;gap:8px;border-block-end:1px solid #050400;font-weight:700}@media screen and (max-width: 1023.98px){::slotted([slot=header]){padding:12px 16px}}@media screen and (max-width: 779.98px){::slotted([slot=header]){padding:8px 16px}}post-popovercontainer::part(post-popovercontainer-content){background-color:#fff}"}},[257,"post-menu",{placement:[1],label:[513],isVisible:[32],toggle:[64],show:[64],hide:[64]}]);function g(){"undefined"!=typeof customElements&&["post-menu","post-popovercontainer"].forEach((t=>{switch(t){case"post-menu":customElements.get(n(t))||customElements.define(n(t),b);break;case"post-popovercontainer":customElements.get(n(t))||a()}}))}u([d(r)],b.prototype,"placement",void 0),u([f(),m("string")],b.prototype,"label",void 0),u([h("post-popovercontainer")],b.prototype,"handlePostShown",null),u([h("post-popovercontainer")],b.prototype,"handlePostBeforeToggle",null),g();export{b as P,g as d}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as t,H as e,t as o}from"./index.js";import{v as n}from"./p-BBz9PVf0.js";const i=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost()}connectedCallback(){this.host.dataset.version=n}get host(){return this}static get style(){return"post-menu-item button{padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;user-select:none;appearance:button;width:100%}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-menu-item button{background-color:ButtonFace !important}post-menu-item button:hover{background-color:Highlight !important}}post-menu-item button,post-menu-item a{position:relative;display:flex;align-items:center;padding:8px 12px 8px 16px;gap:12px;font-size:.875rem;color:#050400;border-radius:0;text-decoration:none}@media screen and (min-width: 780px){post-menu-item button,post-menu-item a{font-size:1rem;padding-block:12px;gap:16px}}@media screen and (min-width: 1024px){post-menu-item button,post-menu-item a{font-size:1.25rem;padding-block:13px}}post-menu-item button:focus-visible,post-menu-item a:focus-visible{outline-offset:2px !important;border-radius:4px}post-menu-item button:hover,post-menu-item a:hover{background-color:#504f4b;color:#fff}post-menu-item button post-icon,post-menu-item a post-icon{width:16px;height:16px;margin-block:4px}@media screen and (min-width: 780px){post-menu-item button post-icon,post-menu-item a post-icon{width:24px;height:24px;margin:0}}"}},[0,"post-menu-item"]);function s(){"undefined"!=typeof customElements&&["post-menu-item"].forEach((t=>{"post-menu-item"===t&&(customElements.get(o(t))||customElements.define(o(t),i))}))}s();export{i as P,s as d}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as o,H as t,h as e,a as i,t as c}from"./index.js";import"./p-DeO0rZ1T.js";import{E as a}from"./p-BEcxHjuM.js";import{n as s}from"./p-8LXe8Zt_.js";import{v as r}from"./p-BBz9PVf0.js";import{d as n}from"./p-DTBtJCjk.js";import{d}from"./p-DS46v3ju.js";import{d as l}from"./p-BgEY7xhT.js";const p=o(class extends t{constructor(o){super(),!1!==o&&this.__registerHost(),this.__attachShadow(),this.collapsed=!1}onCollapseToggle(o){this.collapsed=!o.detail}async toggle(o){return this.collapsible.toggle(o)}onSlotLogoChange(){this.slottedLogo=this.host.querySelector('img[slot="logo"]')}componentWillRender(){this.slottedLogo=this.host.querySelector('img[slot="logo"]')}render(){const o=`c${s(6)}`,t=this.host.closest("post-accordion")?.getAttribute("heading-level");return e(i,{key:"b9699596d57887d99214c6f163355535c68eae1a","data-version":r},e("post-collapsible-trigger",{key:"ebd7c9d6bf2bc35d548867edc8766e31125d8509",for:o},e(`h${t??2}`,{key:"93806261d7dba93569b09d37dff0c01b4f29268b",class:"accordion-header"},e("button",{key:"785a4bcff2c6705aade9b045e1176d43a2ef202b",type:"button",class:"accordion-button"+(this.collapsed?" collapsed":""),part:"post-accordion-button"},e("span",{key:"87f8ba7f7ebe2ba851b6dc134656296820c467d0",class:{"logo-container":!0,"has-image":!!this.slottedLogo}},e("slot",{key:"146256cb174f5895b25fd8f44464ca32fba6b6ee",name:"logo",onSlotchange:this.onSlotLogoChange.bind(this)})),e("slot",{key:"d742ef89a88280f85c7da697536d4ad2ff825f0b",name:"header"}),e("post-icon",{key:"f83e438c9d504ebaa0066df81b6f74ec14dcb08a",name:"chevronup"})))),e("post-collapsible",{key:"179f36eab7ebdb9faa909a70eb43e1d78503e6e1",id:o,collapsed:this.collapsed,ref:o=>this.collapsible=o},e("div",{key:"e93c3570cf76c971b49bf28d3d5540ac289b2469",class:"accordion-body",part:"post-accordion-body"},e("slot",{key:"db26c35edb371cb855141b6f7552d96ea10e06a4"}))))}get host(){return this}static get style(){return':host{display:block;border-block-end:var(--post-device-border-width-default) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-primary-enabled-stroke)}:host:has(.accordion-button:hover){border-block-end-color:var(--post-scheme-color-interactive-primary-hover-stroke)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host:has(.accordion-button:hover){border-block-end-color:Highlight}}:host([collapsed]) .accordion-button post-icon{transform:rotate(-180deg)}.accordion-header{color:var(--post-scheme-color-interactive-primary-enabled-fg1);font-size:var(--post-device-font-size-5);margin:0;line-height:var(--post-device-line-height-heading);font-weight:var(--post-device-font-weight-extra-black)}.accordion-button{padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;user-select:none;appearance:button;display:flex;position:relative;width:100%;align-items:center;text-align:start;gap:var(--post-device-spacing-gap-7);padding-block:var(--post-device-spacing-padding-19);padding-inline:var(--post-device-spacing-padding-5);border-block-end:var(--post-device-border-width-default) var(--post-core-border-style-solid) rgba(0,0,0,0);cursor:pointer;outline:none !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button{background-color:ButtonFace !important}.accordion-button:hover{background-color:Highlight !important}}.accordion-button::before{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.accordion-button:is(:focus-visible,:has(:focus-visible),.pretend-focus)::before{outline-style:var(--post-core-border-style-solid) !important;display:block;content:"";position:absolute;inset:calc(var(--post-device-border-width-default)*-1) 0 calc(var(--post-device-border-width-default)*-1);border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:is(:focus-visible,:has(:focus-visible),.pretend-focus)::before{outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.accordion-button:is(:focus-visible,:focus-within,.pretend-focus)::before{outline-style:var(--post-core-border-style-solid) !important;display:block;content:"";position:absolute;inset:calc(var(--post-device-border-width-default)*-1) 0 calc(var(--post-device-border-width-default)*-1);border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:is(:focus-visible,:focus-within,.pretend-focus)::before{outline-color:Highlight !important}}}.accordion-button slot::slotted(span[slot=header]){flex-grow:1}.accordion-button post-icon{flex:none;width:var(--post-core-dimension-24);aspect-ratio:1;transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1);transform:var(--post-accordion-icon-initial-transform, none)}.accordion-button.collapsed{padding-block-start:var(--post-device-spacing-padding-19);padding-block-end:var(--post-device-spacing-padding-19)}.accordion-button.collapsed post-icon{transform:rotate(-180deg)}.accordion-button:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}.accordion-button>::slotted(.text-truncate){display:block}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:hover,.accordion-button:focus-visible{color:Highlight}}post-collapsible{margin-block-end:calc(var(--post-device-border-width-default)*-1)}.accordion-body{padding-block-start:var(--post-device-spacing-padding-15);padding-block-end:var(--post-device-spacing-padding-block-25);padding-inline:var(--post-device-spacing-padding-5)}.logo-container{display:none;width:var(--post-device-sizing-logo-1);aspect-ratio:1}.logo-container.has-image{display:block}.logo-container slot::slotted(img){display:block;width:100%;height:100%;object-fit:cover}.accordion-button>::slotted(:first-child),.accordion-body>::slotted(:first-child){margin-block-start:0 !important}.accordion-button>::slotted(:last-child),.accordion-body>::slotted(:last-child){margin-block-end:0 !important}'}},[257,"post-accordion-item",{collapsed:[1540],slottedLogo:[32],toggle:[64]},[[2,"postToggle","onCollapseToggle"]]]);function b(){"undefined"!=typeof customElements&&["post-accordion-item","post-collapsible","post-collapsible-trigger","post-icon"].forEach((o=>{switch(o){case"post-accordion-item":customElements.get(c(o))||customElements.define(c(o),p);break;case"post-collapsible":customElements.get(c(o))||n();break;case"post-collapsible-trigger":customElements.get(c(o))||d();break;case"post-icon":customElements.get(c(o))||l()}}))}(function(o,t,e,i){var c,a=arguments.length,s=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(o,t,e,i);else for(var r=o.length-1;r>=0;r--)(c=o[r])&&(s=(a<3?c(s):a>3?c(t,e,s):c(t,e))||s);a>3&&s&&Object.defineProperty(t,e,s)})([a("post-accordion-item")],p.prototype,"onCollapseToggle",null),b();export{p as P,b as d}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as t,H as e,c as s,h as o,a as i,t as l}from"./index.js";import"./p-DeO0rZ1T.js";import{v as r}from"./p-BBz9PVf0.js";import{T as a}from"./p-CVVXnYLU.js";const n={height:"0",overflow:"hidden"},c={duration:!globalThis.matchMedia||globalThis.matchMedia("(prefers-reduced-motion: reduce)").matches?0:350,easing:"ease",fill:"forwards"};const h=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.postToggle=s(this,"postToggle"),this.collapsed=!1}get isExpanded(){return!this.collapsed}componentDidLoad(){this.updateTriggers()}async toggle(t=!this.isExpanded){if(t===this.isExpanded)return this.isExpanded;this.collapsed=!t;const e=this.isExpanded;{const t=e?(s=this.host).animate([n,{height:`${s.scrollHeight}px`,offset:1,overflow:"hidden"},{height:"auto",overflow:"visible"}],c):function(t){const e=globalThis.getComputedStyle(t).height;return t.animate([{height:e},n],c)}(this.host);this.postToggle.emit(e),await t.finished,t.commitStyles(),this.updateTriggers()}var s;return e}updateTriggers(){const t=this.host.id?Array.from(document.querySelectorAll(`post-collapsible-trigger[for="${this.host.id}"]`)):[],e=this.host.closest("post-collapsible-trigger");e&&!t.includes(e)&&t.push(e),t.forEach((t=>t.update()))}render(){return o(i,{key:"243dad696871a08bc07325d4511f5baeb937c194","data-version":r,tabindex:this.collapsed?-1:void 0,style:this.collapsed?n:void 0},o("slot",{key:"5f4f8a9bb698f6558b114c760e5eeb355ac35b80"}))}get host(){return this}static get style(){return":host{display:block;position:relative;overflow:var(--post-collapsible-initial-overflow, hidden);height:var(--post-collapsible-initial-height, auto)}"}},[257,"post-collapsible",{collapsed:[1028],toggle:[64]}]);function p(){"undefined"!=typeof customElements&&["post-collapsible"].forEach((t=>{"post-collapsible"===t&&(customElements.get(l(t))||customElements.define(l(t),h))}))}(function(t,e,s,o){var i,l=arguments.length,r=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,s,o);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(r=(l<3?i(r):l>3?i(e,s,r):i(e,s))||r);l>3&&r&&Object.defineProperty(e,s,r)})([a("boolean")],h.prototype,"collapsed",void 0),p();export{h as P,p as d}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as t,H as e,h as o,a as i,t as r}from"./index.js";import"./p-DeO0rZ1T.js";import{f as n}from"./p-BEcxHjuM.js";import{v as c}from"./p-BBz9PVf0.js";import{d as a}from"./p-BgEY7xhT.js";import{O as s}from"./p-CnN4Jdtv.js";import{R as d}from"./p-B2jsM_Ov.js";const l=[{predicate:t=>"post-banner"===t.localName,close:t=>{t.dismiss()}},{predicate:t=>"post-popover"===t.localName,close:t=>{t.hide()}},{predicate:t=>"post-popovercontainer"===t.localName,close:t=>{t.hide()}},{predicate:t=>"post-collapsible"===t.localName,close:t=>{t.toggle(!1)}},{predicate:t=>"post-accordion-item"===t.localName,close:t=>{t.toggle(!1)}},{predicate:t=>"dialog"===t.localName,close:t=>t.close()},{predicate:t=>t.hasAttribute("popover"),close:t=>t.togglePopover(!1)}];var b=function(t,e,o,i){var r,n=arguments.length,c=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(c=(n<3?r(c):n>3?r(e,o,c):r(e,o))||c);return n>3&&c&&Object.defineProperty(e,o,c),c};const v=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.internals=this.attachInternals(),this.buttonType="button",this.placement="auto",this.size="default",this.handleClick=()=>{const t=function(t){const e=n(t,(t=>l.some((e=>e.predicate(t)))));if(!e)return null;const o=l.find((t=>t.predicate(e)));return{element:e,close:()=>o.close(e)}}(this.host);t?.close()}}componentDidLoad(){globalThis.MutationObserver&&(this.mutationObserver=new MutationObserver(this.checkContent.bind(this)),this.mutationObserver.observe(this.host,{childList:!0})),this.checkContent()}disconnectedCallback(){this.mutationObserver&&this.mutationObserver.disconnect()}checkContent(){const t=this.visuallyHidden.querySelector("slot"),e=t?.assignedNodes({flatten:!0}).some((t=>t.textContent?.trim()));e||console.error(`The \`${this.host.localName}\` component requires content for accessibility.`)}render(){return o(i,{key:"b8e2214b904f5167fa3753aab947418891236fcf","data-version":c},o("button",{key:"224ca42d3be187062ba9717e4a534ff34eeafaf7",type:this.buttonType,class:"btn btn-icon btn-secondary btn-sm",onClick:this.handleClick},o("post-icon",{key:"5b289691599d6f9a3bb0fa7a28c71eecd1f5aee7","aria-hidden":"true",name:"closex"}),o("span",{key:"e22045f15b3dc8b8b228eb4282114e10db68b186",ref:t=>this.visuallyHidden=t,class:"visually-hidden"},o("slot",{key:"e492390c995a993ffc8988a1c90a41e59fbe39f5"}))))}static get formAssociated(){return!0}get host(){return this}static get style(){return".btn{display:inline-flex;position:relative;align-items:center;justify-content:center;max-width:100%;overflow:hidden;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);box-shadow:none;font-family:inherit;font-size:var(--post-device-font-size-6);font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;min-height:var(--post-device-sizing-interactive-button-height-1);gap:var(--post-device-spacing-gap-inline-10);padding:0 var(--post-device-spacing-padding-inline-6)}.btn:not(:disabled):hover{text-decoration:none}.btn:disabled{border-style:var(--post-core-border-style-dash);cursor:unset}.btn{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.btn:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.btn:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn{border-width:1px !important;transition:none}.btn:is(button){background-color:ButtonFace !important;border-color:ButtonBorder !important}}.btn>post-icon{width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4)}.btn-primary{box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-primary-enabled-stroke);color:var(--post-scheme-color-interactive-button-primary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-primary-enabled-bg)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-primary:not(:disabled,.disabled):not(a.btn-tertiary.px-0):hover{background-color:Highlight !important}.btn-primary:not(:disabled,.disabled):not(a.btn-tertiary.px-0):hover>post-icon{color:HighlightText !important}}.btn-primary:disabled{border-color:var(--post-scheme-color-interactive-button-primary-disabled-stroke);color:var(--post-scheme-color-interactive-button-primary-disabled-fg);background-color:var(--post-scheme-color-interactive-button-primary-disabled-bg)}.btn-primary:not(:disabled):hover,.btn-primary.pretend-hover{border-color:var(--post-scheme-color-interactive-button-primary-hover-stroke);color:var(--post-scheme-color-interactive-button-primary-hover-fg);background-color:var(--post-scheme-color-interactive-button-primary-hover-bg)}.btn-default{box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-secondary-enabled-stroke);color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-secondary-enabled-bg)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-default:not(:disabled,.disabled):not(a.btn-tertiary.px-0):hover{background-color:Highlight !important}.btn-default:not(:disabled,.disabled):not(a.btn-tertiary.px-0):hover>post-icon{color:HighlightText !important}}.btn-default:disabled{border-color:var(--post-scheme-color-interactive-button-secondary-disabled-stroke);color:var(--post-scheme-color-interactive-button-secondary-disabled-fg);background-color:var(--post-scheme-color-interactive-button-secondary-disabled-bg)}.btn-default:not(:disabled):hover,.btn-default.pretend-hover{border-color:var(--post-scheme-color-interactive-button-secondary-hover-stroke);color:var(--post-scheme-color-interactive-button-secondary-hover-fg);background-color:var(--post-scheme-color-interactive-button-secondary-hover-bg)}.btn-secondary{box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-secondary-enabled-stroke);color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-secondary-enabled-bg)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-secondary:not(:disabled,.disabled):not(a.btn-tertiary.px-0):hover{background-color:Highlight !important}.btn-secondary:not(:disabled,.disabled):not(a.btn-tertiary.px-0):hover>post-icon{color:HighlightText !important}}.btn-secondary:disabled{border-color:var(--post-scheme-color-interactive-button-secondary-disabled-stroke);color:var(--post-scheme-color-interactive-button-secondary-disabled-fg);background-color:var(--post-scheme-color-interactive-button-secondary-disabled-bg)}.btn-secondary:not(:disabled):hover,.btn-secondary.pretend-hover{border-color:var(--post-scheme-color-interactive-button-secondary-hover-stroke);color:var(--post-scheme-color-interactive-button-secondary-hover-fg);background-color:var(--post-scheme-color-interactive-button-secondary-hover-bg)}.btn-tertiary{border-color:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-tertiary-enabled-bg)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-tertiary:not(:disabled,.disabled):not(a.btn-tertiary.px-0):hover{background-color:Highlight !important}.btn-tertiary:not(:disabled,.disabled):not(a.btn-tertiary.px-0):hover>post-icon{color:HighlightText !important}}.btn-tertiary:disabled{border-color:var(--post-scheme-color-interactive-button-tertiary-disabled-stroke);color:var(--post-scheme-color-interactive-button-tertiary-disabled-fg);background-color:var(--post-scheme-color-interactive-button-tertiary-disabled-bg)}.btn-tertiary:not(:disabled):hover,.btn-tertiary.pretend-hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg);background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg)}.btn-link{border-color:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-link:disabled,.btn-link.disabled{text-decoration:none}}.btn-link:disabled{border-color:var(--post-scheme-color-interactive-button-tertiary-disabled-stroke);color:var(--post-scheme-color-interactive-button-tertiary-disabled-fg)}.btn-link:not(:disabled):hover,.btn-link.pretend-hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}.btn-sm{min-height:var(--post-device-sizing-interactive-button-height-4);gap:var(--post-device-spacing-gap-inline-11);padding:0 var(--post-device-spacing-padding-inline-7)}.btn-sm>post-icon{width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5)}.btn-lg{min-height:var(--post-device-sizing-interactive-button-height-2);gap:var(--post-device-spacing-gap-inline-1);padding:0 var(--post-device-spacing-padding-inline-5)}.btn-lg>post-icon{width:var(--post-device-sizing-interactive-button-icon-3);height:var(--post-device-sizing-interactive-button-icon-3)}.btn-link{-webkit-text-decoration:var(--post-core-text-decoration-underline);text-decoration:var(--post-core-text-decoration-underline);border:0 none;border-radius:0;min-height:0;font-size:inherit;font-weight:inherit;padding:0}.btn-link{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.btn-link:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-link:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.btn-link:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-link:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.btn-link:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}.btn-icon{padding:0;width:var(--post-device-sizing-interactive-button-height-1);height:var(--post-device-sizing-interactive-button-height-1);min-height:0;vertical-align:text-bottom}.btn-icon.btn-link{width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4)}.btn-icon>post-icon{display:block;width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4)}.btn-icon.btn-sm{padding:0;width:var(--post-device-sizing-interactive-button-height-4);height:var(--post-device-sizing-interactive-button-height-4);min-height:0;vertical-align:text-bottom}.btn-icon.btn-sm.btn-link{width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5)}.btn-icon.btn-sm>post-icon{display:block;width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5)}.btn-icon.btn-lg{padding:0;width:var(--post-device-sizing-interactive-button-height-2);height:var(--post-device-sizing-interactive-button-height-2);min-height:0;vertical-align:text-bottom}.btn-icon.btn-lg.btn-link{width:var(--post-device-sizing-interactive-button-icon-3);height:var(--post-device-sizing-interactive-button-icon-3)}.btn-icon.btn-lg>post-icon{display:block;width:var(--post-device-sizing-interactive-button-icon-3);height:var(--post-device-sizing-interactive-button-icon-3)}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}:host .btn{background-color:var(--post-scheme-color-interactive-primary-enabled-bg1)}:host .btn:not(:disabled):hover,:host .btn.pretend-hover{background-color:var(--post-scheme-color-interactive-primary-hover-bg)}:host(:not([placement])),:host([placement=auto]){position:absolute;inset-block-start:0;inset-inline-end:0;transform:translate(50%, -50%)}:host([size=small]) .btn{height:var(--post-device-sizing-interactive-button-height-7);width:var(--post-device-sizing-interactive-button-height-7)}"}},[321,"post-closebutton",{buttonType:[1,"button-type"],placement:[513],size:[513]}]);function h(){"undefined"!=typeof customElements&&["post-closebutton","post-icon"].forEach((t=>{switch(t){case"post-closebutton":customElements.get(r(t))||customElements.define(r(t),v);break;case"post-icon":customElements.get(r(t))||a()}}))}b([s(["button","reset"])],v.prototype,"buttonType",void 0),b([d(),s(["manual","auto"])],v.prototype,"placement",void 0),b([d(),s(["default","small"])],v.prototype,"size",void 0),h();export{v as P,h as d}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as t,H as e,c as n,h as o,a as r,t as i}from"./index.js";import"./p-DeO0rZ1T.js";import{v as s}from"./p-BBz9PVf0.js";import{O as a}from"./p-CnN4Jdtv.js";import{T as c}from"./p-CVVXnYLU.js";const l=["top","right","bottom","left","top-start","top-end","right-start","right-end","bottom-start","bottom-end","left-start","left-end"],p=["top","right","bottom","left"],f=Math.min,u=Math.max,h=Math.round,d=Math.floor,m=t=>({x:t,y:t}),v={left:"right",right:"left",bottom:"top",top:"bottom"};function g(t,e,n){return u(t,f(e,n))}function w(t,e){return"function"==typeof t?t(e):t}function y(t){return t.split("-")[0]}function x(t){return t.split("-")[1]}function b(t){return"x"===t?"y":"x"}function S(t){return"y"===t?"height":"width"}function T(t){const e=t[0];return"t"===e||"b"===e?"y":"x"}function E(t){return b(T(t))}function k(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const M=["left","right"],A=["right","left"],O=["top","bottom"],H=["bottom","top"];function L(t){const e=y(t);return v[e]+t.slice(e.length)}function $(t){return"number"!=typeof t?function(t){var e,n,o,r;return{top:null!=(e=t.top)?e:0,right:null!=(n=t.right)?n:0,bottom:null!=(o=t.bottom)?o:0,left:null!=(r=t.left)?r:0}}(t):{top:t,right:t,bottom:t,left:t}}function C(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}function D(t,e,n){let{reference:o,floating:r}=t;const i=T(e),s=E(e),a=S(s),c=y(e),l="y"===i,p=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,u=o[a]/2-r[a]/2;let h;switch(c){case"top":h={x:p,y:o.y-r.height};break;case"bottom":h={x:p,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:f};break;case"left":h={x:o.x-r.width,y:f};break;default:h={x:o.x,y:o.y}}const d=x(e);return d&&(h[s]+=u*("end"===d?1:-1)*(n&&l?-1:1)),h}async function R(t,e){var n;void 0===e&&(e={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:c}=t,{boundary:l="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:u=!1,padding:h=0}=w(e,t),d=$(h),m=a[u?"floating"===f?"reference":"floating":f],v=C(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:p,strategy:c})),g="floating"===f?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),x=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},b=C(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:y,strategy:c}):g);return{top:(v.top-b.top+d.top)/x.y,bottom:(b.bottom-v.bottom+d.bottom)/x.y,left:(v.left-b.left+d.left)/x.x,right:(b.right-v.right+d.right)/x.x}}function j(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function z(t){return p.some((e=>t[e]>=0))}function F(t){const e=f(...t.map((t=>t.left))),n=f(...t.map((t=>t.top)));return{x:e,y:n,width:u(...t.map((t=>t.right)))-e,height:u(...t.map((t=>t.bottom)))-n}}const P=new Set(["left","top"]);function W(){return"undefined"!=typeof window}function B(t){return V(t)?(t.nodeName||"").toLowerCase():"#document"}function q(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function I(t){var e;return null==(e=(V(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function V(t){return!!W()&&(t instanceof Node||t instanceof q(t).Node)}function N(t){return!!W()&&(t instanceof Element||t instanceof q(t).Element)}function G(t){return!!W()&&(t instanceof HTMLElement||t instanceof q(t).HTMLElement)}function X(t){return!(!W()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof q(t).ShadowRoot)}function Y(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=ot(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&"inline"!==r&&"contents"!==r}function J(t){return/^(table|td|th)$/.test(B(t))}function U(t){try{if(t.matches(":popover-open"))return!0}catch(t){}try{return t.matches(":modal")}catch(t){return!1}}const Z=/transform|translate|scale|rotate|perspective|filter/,_=/paint|layout|strict|content/,K=t=>!!t&&"none"!==t;let Q;function tt(t){const e=N(t)?ot(t):t;return K(e.transform)||K(e.translate)||K(e.scale)||K(e.rotate)||K(e.perspective)||!et()&&(K(e.backdropFilter)||K(e.filter))||Z.test(e.willChange||"")||_.test(e.contain||"")}function et(){return null==Q&&(Q="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Q}function nt(t){return/^(html|body|#document)$/.test(B(t))}function ot(t){return q(t).getComputedStyle(t)}function rt(t){return N(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function it(t){if("html"===B(t))return t;const e=t.assignedSlot||t.parentNode||X(t)&&t.host||I(t);return X(e)?e.host:e}function st(t){const e=it(t);return nt(e)?(t.ownerDocument||t).body:G(e)&&Y(e)?e:st(e)}function at(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const r=st(t),i=r===(null==(o=t.ownerDocument)?void 0:o.body),s=q(r);if(i){const t=ct(s);return e.concat(s,s.visualViewport||[],Y(r)?r:[],t&&n?at(t):[])}return e.concat(r,at(r,[],n))}function ct(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function lt(t){const e=ot(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=G(t),i=r?t.offsetWidth:n,s=r?t.offsetHeight:o,a=h(n)!==i||h(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function pt(t){return N(t)?t:t.contextElement}function ft(t){const e=pt(t);if(!G(e))return m(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=lt(e);let s=(i?h(n.width):n.width)/o,a=(i?h(n.height):n.height)/r;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const ut=m(0);function ht(t){const e=q(t);return et()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:ut}function dt(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const r=t.getBoundingClientRect(),i=pt(t);let s=m(1);e&&(o?N(o)&&(s=ft(o)):s=ft(t));const a=function(t,e,n){return void 0===e&&(e=!1),!!n&&e&&n===q(t)}(i,n,o)?ht(i):m(0);let c=(r.left+a.x)/s.x,l=(r.top+a.y)/s.y,p=r.width/s.x,f=r.height/s.y;if(i&&o){const t=q(i),e=N(o)?q(o):o;let n=t,r=ct(n);for(;r&&e!==n;){const t=ft(r),e=r.getBoundingClientRect(),o=ot(r),i=e.left+(r.clientLeft+parseFloat(o.paddingLeft))*t.x,s=e.top+(r.clientTop+parseFloat(o.paddingTop))*t.y;c*=t.x,l*=t.y,p*=t.x,f*=t.y,c+=i,l+=s,n=q(r),r=ct(n)}}return C({width:p,height:f,x:c,y:l})}function mt(t,e){const n=rt(t).scrollLeft;return e?e.left+n:dt(I(t)).left+n}function vt(t,e){const n=t.getBoundingClientRect();return{x:n.left+e.scrollLeft-mt(t,n),y:n.top+e.scrollTop}}function gt(t,e,n){let o;if("viewport"===e||"layoutViewport"===e)o=function(t,e,n){void 0===n&&(n="viewport");const o="layoutViewport"===n,r=q(t),i=I(t),s=r.visualViewport;let a=i.clientWidth,c=i.clientHeight,l=0,p=0;if(s){const t=!et()||"fixed"===e;o?t||(l=-s.offsetLeft,p=-s.offsetTop):(a=s.width,c=s.height,t&&(l=s.offsetLeft,p=s.offsetTop))}if(mt(i)<=0){const t=i.ownerDocument,e=t.body,n=getComputedStyle(e),o="CSS1Compat"===t.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,r=Math.abs(i.clientWidth-e.clientWidth-o),s="stable both-edges"===getComputedStyle(i).scrollbarGutter?r/2:r;s<=25&&(a-=s)}return{width:a,height:c,x:l,y:p}}(t,n,e);else if("document"===e)o=function(t){const e=rt(t),n=t.ownerDocument.body,o=u(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),r=u(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-e.scrollLeft+mt(t);const s=-e.scrollTop;return"rtl"===ot(n).direction&&(i+=u(t.clientWidth,n.clientWidth)-o),{width:o,height:r,x:i,y:s}}(I(t));else if(N(e))o=function(t,e){const n=dt(t,!0,"fixed"===e),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=ft(t);return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:r*i.x,y:o*i.y}}(e,n);else{const n=ht(t);o={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return C(o)}function wt(t,e,n){const o=G(e),r=I(e),i="fixed"===n,s=dt(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const c=m(0);if((o||!i)&&(("body"!==B(e)||Y(r))&&(a=rt(e)),o)){const t=dt(e,!0,i,e);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}!o&&r&&(c.x=mt(r));const l=!r||o||i?m(0):vt(r,a);return{x:s.left+a.scrollLeft-c.x-l.x,y:s.top+a.scrollTop-c.y-l.y,width:s.width,height:s.height}}function yt(t){return"static"===ot(t).position}function xt(t,e){if(!G(t)||"fixed"===ot(t).position)return null;if(e)return e(t);let n=t.offsetParent;return I(t)===n&&(n=n.ownerDocument.body),n}function bt(t,e){const n=q(t);if(U(t))return n;if(!G(t)){let e=it(t);for(;e&&!nt(e);){if(N(e)&&!yt(e))return e;e=it(e)}return n}let o=xt(t,e);for(;o&&J(o)&&yt(o);)o=xt(o,e);return o&&nt(o)&&yt(o)&&!tt(o)?n:o||function(t){let e=it(t);for(;G(e)&&!nt(e);){if(tt(e))return e;if(U(e))return null;e=it(e)}return null}(t)||n}const St={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i="fixed"===r,s=I(o),a=!!e&&U(e.floating);if(o===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=m(1);const p=m(0),f=G(o);if((f||!i)&&(("body"!==B(o)||Y(s))&&(c=rt(o)),f)){const t=dt(o);l=ft(o),p.x=t.x+o.clientLeft,p.y=t.y+o.clientTop}const u=!s||f||i?m(0):vt(s,c);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+p.x+u.x,y:n.y*l.y-c.scrollTop*l.y+p.y+u.y}},getDocumentElement:I,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const i=[..."clippingAncestors"===n?U(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let o=at(t,[],!1).filter((t=>N(t)&&"body"!==B(t))),r=null;const i="fixed"===ot(t).position;let s=i?it(t):t;for(;N(s)&&!nt(s);){const t=ot(s),e=tt(s),n=r?r.position:i?"fixed":"";e||"fixed"!==n&&("absolute"!==n||"static"!==t.position)?r=t:o=o.filter((t=>t!==s)),s=it(s)}return e.set(t,o),o}(e,this._c):[].concat(n),o],s=gt(e,i[0],r);let a=s.top,c=s.right,l=s.bottom,p=s.left;for(let t=1;t<i.length;t++){const n=gt(e,i[t],r);a=u(n.top,a),c=f(n.right,c),l=f(n.bottom,l),p=u(n.left,p)}return{width:c-p,height:l-a,x:p,y:a}},getOffsetParent:bt,getElementRects:async function(t){const e=this.getOffsetParent||bt,n=this.getDimensions,o=await n(t.floating);return{reference:wt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return t.getClientRects?Array.from(t.getClientRects()):[]},getDimensions:function(t){const{width:e,height:n}=lt(t);return{width:e,height:n}},getScale:ft,isElement:N,isRTL:function(t){return"rtl"===ot(t).direction}};function Tt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}const Et=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:r,y:i,placement:s,middlewareData:a}=e,c=await async function(t,e){const{placement:n,platform:o,elements:r}=t,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),s=y(n),a=x(n),c="y"===T(n),l=P.has(s)?-1:1,p=i&&c?-1:1,f=w(e,t);let{mainAxis:u,crossAxis:h,alignmentAxis:d}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof d&&(h="end"===a?-1*d:d),c?{x:h*p,y:u*l}:{x:u*l,y:h*p}}(e,t);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(o=a.arrow)&&o.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:s}}}}},kt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:l}=e,{mainAxis:p=!0,crossAxis:f=!0,fallbackPlacements:u,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:m=!0,...v}=w(t,e);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const g=y(r),b=T(a),$=y(a)===a,C=await(null==c.isRTL?void 0:c.isRTL(l.floating)),D=u||($||!m?[L(a)]:function(t){const e=L(t);return[k(t),e,k(e)]}(a)),R="none"!==d;!u&&R&&D.push(...function(t,e,n,o){const r=x(t);let i=function(t,e,n){switch(t){case"top":case"bottom":return n?e?A:M:e?M:A;case"left":case"right":return e?O:H;default:return[]}}(y(t),"start"===n,o);return r&&(i=i.map((t=>t+"-"+r)),e&&(i=i.concat(i.map(k)))),i}(a,m,d,C));const j=[a,...D],z=await c.detectOverflow(e,v),F=[];let P=(null==(o=i.flip)?void 0:o.overflows)||[];if(p&&F.push(z[g]),f){const t=function(t,e,n){void 0===n&&(n=!1);const o=x(t),r=E(t),i=S(r);let s="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=L(s)),[s,L(s)]}(r,s,C);F.push(z[t[0]],z[t[1]])}if(P=[...P,{placement:r,overflows:F}],!F.every((t=>t<=0))){var W,B;const t=((null==(W=i.flip)?void 0:W.index)||0)+1,e=j[t];if(e&&("alignment"!==f||b===T(e)||P.every((t=>T(t.placement)!==b||t.overflows[0]>0))))return{data:{index:t,overflows:P},reset:{placement:e}};let n=null==(B=P.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:B.placement;if(!n)switch(h){case"bestFit":{var q;const t=null==(q=P.filter((t=>{if(R){const e=T(t.placement);return e===b||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:q[0];t&&(n=t);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}},Mt=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:o,platform:r,elements:i}=e,{apply:s=()=>{},...a}=w(t,e),c=await r.detectOverflow(e,a),l=y(n),p=x(n),h="y"===T(n),{width:d,height:m}=o.floating;let v,g;"top"===l||"bottom"===l?(v=l,g=p===(await(null==r.isRTL?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(g=l,v="end"===p?"top":"bottom");const b=m-c.top-c.bottom,S=d-c.left-c.right,E=f(m-c[v],b),k=f(d-c[g],S),M=e.middlewareData.shift;let A=E,O=k;null!=M&&M.enabled.x&&(O=S),null!=M&&M.enabled.y&&(A=b),!M&&!p&&(h?O=d-2*u(c.left,c.right):A=m-2*u(c.top,c.bottom)),await s({...e,availableWidth:O,availableHeight:A});const H=await r.getDimensions(i.floating);return d!==H.width||m!==H.height?{reset:{rects:!0}}:{}}}},At=function(t){return void 0===t&&(t={}),{name:"inline",options:t,async fn(e){const{placement:n,elements:o,rects:r,platform:i,strategy:s}=e,{padding:a=2,x:c,y:l}=w(t,e),p=Array.from(await(null==i.getClientRects?void 0:i.getClientRects(o.reference))||[]);if(!p.length)return{};const h=function(t){const e=t.slice().sort(((t,e)=>t.y-e.y)),n=[];let o=null;for(let t=0;t<e.length;t++){const r=e[t];!o||r.y-o.y>o.height/2?n.push([r]):n[n.length-1].push(r),o=r}return n.map((t=>C(F(t))))}(p),d=C(F(p)),m=$(a),v=await i.getElementRects({reference:{getBoundingClientRect:function(){if(2===h.length&&(h[0].left>h[1].right||h[1].left>h[0].right)&&null!=c&&null!=l)return h.find((t=>c>t.left-m.left&&c<t.right+m.right&&l>t.top-m.top&&l<t.bottom+m.bottom))||d;if(h.length>=2){if("y"===T(n)){const t=h[0],e=h[h.length-1],o="top"===y(n),r=t.top,i=o?t.left:e.left;return C({x:i,y:r,width:(o?t.right:e.right)-i,height:e.bottom-r})}const t="left"===y(n),e=u(...h.map((t=>t.right))),o=f(...h.map((t=>t.left))),r=h.filter((n=>t?n.left===o:n.right===e)),i=r[0].top;return C({x:o,y:i,width:e-o,height:r[r.length-1].bottom-i})}return d}},floating:o.floating,strategy:s});return r.reference.x!==v.reference.x||r.reference.y!==v.reference.y||r.reference.width!==v.reference.width||r.reference.height!==v.reference.height?{reset:{rects:v}}:{}}}},Ot=function(t){return void 0===t&&(t={}),{options:t,fn(e){var n,o;const{x:r,y:i,placement:s,rects:a,middlewareData:c}=e,{offset:l=0,mainAxis:p=!0,crossAxis:f=!0}=w(t,e),u={x:r,y:i},h=T(s),d=b(h);let m=u[d],v=u[h];const g=w(l,e),x="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:null!=(n=g.mainAxis)?n:0,crossAxis:null!=(o=g.crossAxis)?o:0};if(p){const t="y"===d?"height":"width",e=a.reference[d]-a.floating[t]+x.mainAxis,n=a.reference[d]+a.reference[t]-x.mainAxis;m<e?m=e:m>n&&(m=n)}if(f){var S,E;const t="y"===d?"width":"height",e=P.has(y(s)),n=a.reference[h]-a.floating[t]+(e&&(null==(S=c.offset)?void 0:S[h])||0)+(e?0:x.crossAxis),o=a.reference[h]+a.reference[t]+(e?0:(null==(E=c.offset)?void 0:E[h])||0)-(e?x.crossAxis:0);v<n?v=n:v>o&&(v=o)}return{[d]:m,[h]:v}}}};var Ht=class extends Event{oldState;newState;constructor(t,{oldState:e="",newState:n="",...o}={}){super(t,o),this.oldState=String(e||""),this.newState=String(n||"")}},Lt=new WeakMap;function $t(t,e,n){Lt.set(t,setTimeout((()=>{Lt.has(t)&&t.dispatchEvent(new Ht("toggle",{cancelable:!1,oldState:e,newState:n}))}),0))}var Ct=globalThis.ShadowRoot||function(){},Dt=globalThis.HTMLDialogElement||function(){},Rt=new WeakMap,jt=new WeakMap,zt=new WeakMap,Ft=new WeakMap;function Pt(t){return Ft.get(t)||"hidden"}var Wt=new WeakMap;function Bt(t){return[...t].pop()}function qt(t,e){return!("auto"!==t.popover&&"manual"!==t.popover&&"hint"!==t.popover||!t.isConnected||e&&"showing"!==Pt(t)||!e&&"hidden"!==Pt(t)||t instanceof Dt&&t.hasAttribute("open")||document.fullscreenElement===t)}function It(t){if(!t)return 0;const e=jt.get(document)||new Set,n=zt.get(document)||new Set;return n.has(t)?[...n].indexOf(t)+e.size+1:e.has(t)?[...e].indexOf(t)+1:0}function Vt(t){let e;const n=zt.get(t)||new Set,o=jt.get(t)||new Set,r=n.size>0?n:o.size>0?o:null;return r?(e=Bt(r),e.isConnected?e:(r.delete(e),Vt(t))):null}function Nt(t){for(const e of t||[]){if(e.isConnected)return e;t.delete(e)}return null}function Gt(t){return"function"==typeof t.getRootNode?t.getRootNode():t.parentNode?Gt(t.parentNode):t}function Xt(t){for(;t;){if(t instanceof HTMLElement&&"auto"===t.popover&&"showing"===Ft.get(t))return t;if((t=t instanceof Element&&t.assignedSlot||t.parentElement||Gt(t))instanceof Ct&&(t=t.host),t instanceof Document)return}}function Yt(t,e){const n=new Map;let o=0;for(const t of e||[])n.set(t,o),o+=1;n.set(t,o),o+=1;let r=null;return function(e){if(!e)return;let o=!1,i=null,s=null;for(;!o;){if(i=Xt(e)||null,null===i)return;if(!n.has(i))return;"hint"!==t.popover&&"auto"!==i.popover||(o=!0),o||(e=i.parentElement)}s=n.get(i),(null===r||n.get(r)<s)&&(r=i)}(t.parentElement||Gt(t)),r}function Jt(t){return!(t.hidden||t instanceof Ct||(t instanceof HTMLButtonElement||t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLOptGroupElement||t instanceof HTMLOptionElement||t instanceof HTMLFieldSetElement)&&t.disabled||t instanceof HTMLInputElement&&"hidden"===t.type||t instanceof HTMLAnchorElement&&""===t.href||"number"!=typeof t.tabIndex||-1===t.tabIndex)}var Ut=new WeakMap;function Zt(t){if(!qt(t,!1))return;const e=t.ownerDocument;if(!t.dispatchEvent(new Ht("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"})))return;if(!qt(t,!1))return;let n=!1;const o=t.popover;let r=null;const i=Yt(t,jt.get(e)||new Set),s=Yt(t,zt.get(e)||new Set);if("auto"===o&&(Kt(zt.get(e)||new Set,n,!0),te(i||e,n,!0),r="auto"),"hint"===o&&(s?(te(s,n,!0),r="hint"):(Kt(zt.get(e)||new Set,n,!0),i?(te(i,n,!0),r="auto"):r="hint")),"auto"===o||"hint"===o){if(o!==t.popover||!qt(t,!1))return;Vt(e)||(n=!0),"auto"===r?(jt.has(e)||jt.set(e,new Set),jt.get(e).add(t)):"hint"===r&&(zt.has(e)||zt.set(e,new Set),zt.get(e).add(t))}Ut.delete(t);const a=e.activeElement;var c;t.classList.add(":popover-open"),Ft.set(t,"showing"),Rt.has(e)||Rt.set(e,new Set),Rt.get(e).add(t),re(Wt.get(t),!0),c=t,function(t){if(t.shadowRoot&&!0!==t.shadowRoot.delegatesFocus)return null;let e=t;e.shadowRoot&&(e=e.shadowRoot);let n=e.querySelector("[autofocus]");if(n)return n;{const t=e.querySelectorAll("slot");for(const e of t){const t=e.assignedElements({flatten:!0});for(const e of t){if(e.hasAttribute("autofocus"))return e;if(n=e.querySelector("[autofocus]"),n)return n}}}const o=t.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);let r=o.currentNode;for(;r;){if(Jt(r))return r;r=o.nextNode()}}(c)?.focus(),n&&a&&"auto"===t.popover&&Ut.set(t,a),$t(t,"closed","open")}function _t(t,e=!1,n=!1){if(!qt(t,!0))return;const o=t.ownerDocument;if(["auto","hint"].includes(t.popover)&&(te(t,e,n),!qt(t,!0)))return;const r=jt.get(o)||new Set,i=r.has(t)&&Bt(r)===t;if(re(Wt.get(t),!1),Wt.delete(t),n&&(t.dispatchEvent(new Ht("beforetoggle",{oldState:"open",newState:"closed"})),i&&Bt(r)!==t&&te(t,e,n),!qt(t,!0)))return;Rt.get(o)?.delete(t),r.delete(t),zt.get(o)?.delete(t),t.classList.remove(":popover-open"),Ft.set(t,"hidden"),n&&$t(t,"open","closed");const s=Ut.get(t);s&&(Ut.delete(t),e&&s.focus())}function Kt(t,e=!1,n=!1){let o=Nt(t);for(;o;)_t(o,e,n),o=Nt(t)}function Qt(t,e,n,o){let r=!1,i=!1;for(;r||!i;){i=!0;let s=null,a=!1;for(const n of e)if(n===t)a=!0;else if(a){s=n;break}if(!s)return;for(;"showing"===Pt(s)&&e.size;)_t(Bt(e),n,o);e.has(t)&&Bt(e)!==t&&(r=!0),r&&(o=!1)}}function te(t,e,n){const o=t.ownerDocument||t;if(t instanceof Document)return function(t,e=!1,n=!1){let o=Vt(t);for(;o;)_t(o,e,n),o=Vt(t)}(o,e,n);zt.get(o)?.has(t)?Qt(t,zt.get(o),e,n):(Kt(zt.get(o)||new Set,e,n),jt.get(o)?.has(t)&&Qt(t,jt.get(o),e,n))}var ee=new WeakMap;function ne(t){if(!t.isTrusted)return;const e=t.composedPath()[0];if(!e)return;const n=e.ownerDocument;if(!Vt(n))return;const o=function(t){const e=Xt(t),n=function(t){for(;t;){const e=t.popoverTargetElement;if(e instanceof HTMLElement)return e;if((t=t.parentElement||Gt(t))instanceof Ct&&(t=t.host),t instanceof Document)return}}(t);return It(e)>It(n)?e:n}(e);if(o&&"pointerdown"===t.type)ee.set(n,o);else if("pointerup"===t.type){const t=ee.get(n)===o;ee.delete(n),t&&te(o||n,!1,!0)}}var oe=new WeakMap;function re(t,e=!1){if(!t)return;oe.has(t)||oe.set(t,t.getAttribute("aria-expanded"));const n=t.popoverTargetElement;if(n instanceof HTMLElement&&"auto"===n.popover)t.setAttribute("aria-expanded",String(e));else{const e=oe.get(t);e?t.setAttribute("aria-expanded",e):t.removeAttribute("aria-expanded")}}var ie=globalThis.ShadowRoot||function(){};function se(t,e,n){const o=t[e];Object.defineProperty(t,e,{value(t){return o.call(this,n(t))}})}var ae=/(^|[^\\]):popover-open\b/g;var ce=null;function le(t){const e=function(){const t="function"==typeof globalThis.CSSLayerBlockRule;return`\n${t?"@layer popover-polyfill {":""}\n :where([popover]) {\n position: fixed;\n z-index: 2147483647;\n inset: 0;\n padding: 0.25em;\n width: fit-content;\n height: fit-content;\n border-width: initial;\n border-color: initial;\n border-image: initial;\n border-style: solid;\n background-color: canvas;\n color: canvastext;\n overflow: auto;\n margin: auto;\n }\n\n :where([popover]:not(.\\:popover-open)) {\n display: none;\n }\n\n :where(dialog[popover].\\:popover-open) {\n display: block;\n }\n\n :where(dialog[popover][open]) {\n display: revert;\n }\n\n :where([anchor].\\:popover-open) {\n inset: auto;\n }\n\n :where([anchor]:popover-open) {\n inset: auto;\n }\n\n @supports not (background-color: canvas) {\n :where([popover]) {\n background-color: white;\n color: black;\n }\n }\n\n @supports (width: -moz-fit-content) {\n :where([popover]) {\n width: -moz-fit-content;\n height: -moz-fit-content;\n }\n }\n\n @supports not (inset: 0) {\n :where([popover]) {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n }\n${t?"}":""}\n`}();if(null===ce)try{(ce=new CSSStyleSheet).replaceSync(e)}catch{ce=!1}if(!1===ce){const n=document.createElement("style");n.textContent=e,t instanceof Document?t.head.prepend(n):t.prepend(n)}else t.adoptedStyleSheets=[ce,...t.adoptedStyleSheets]}const pe=Symbol("Clipping Rect Cache"),fe={...St,getClippingRect:async function(...t){const e=t[0].element,n=this[pe].get(e);if(n)return n;const o=await St.getClippingRect.apply(this,t);return function(t,e){const n=e.ownerDocument.querySelector("post-header");if(null===n)return;let o=e;for(;!nt(o);)if(o=it(o),G(o)&&(U(o)||o===n))return;const r=n.getBoundingClientRect(),i=Math.max(t.y,r.bottom);t.height-=i-t.y,t.y=i}(o,e),this[pe].set(e,o),o}};var ue=function(t,e,n,o){var r,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,n,s):r(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s};const he={"pop-in":function(t){if(t)return t.animate([{transform:"scale(0.9)",opacity:0},{transform:"scale(1)",opacity:1}],{duration:250,easing:"ease-out",fill:"forwards"})}},de=t(class t extends e{static{this.STATIC_SIDES={top:"bottom",right:"left",bottom:"top",left:"right"}}static{this.PROPERTIES_TO_CLEAR=["--post-safe-space-popover-x","--post-safe-space-popover-y","--post-safe-space-popover-x-start","--post-safe-space-popover-x-end","--post-safe-space-popover-y-start","--post-safe-space-popover-y-end","--post-safe-space-trigger-x","--post-safe-space-trigger-y","--post-safe-space-trigger-x-start","--post-safe-space-trigger-x-end","--post-safe-space-trigger-y-start","--post-safe-space-trigger-y-end"]}constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.postBeforeShow=n(this,"postBeforeShow"),this.postShow=n(this,"postShow"),this.postHide=n(this,"postHide"),this.postBeforeToggle=n(this,"postBeforeToggle"),this.postToggle=n(this,"postToggle"),this.toggleTimeoutId=null,this.hasOpenedOnce=!0,this.placement="top",this.edgeGap=8,this.arrow=!1,this.animation="pop-in",this.currentAnimation=null,this.boundMouseTrackingHandler=this.mouseTrackingHandler.bind(this)}mouseTrackingHandler(t){this.host.style.setProperty("--post-safe-space-cursor-x",`${t.clientX}px`),this.host.style.setProperty("--post-safe-space-cursor-y",`${t.clientY}px`)}connectedCallback(){"undefined"!=typeof HTMLElement&&"object"==typeof HTMLElement.prototype&&"popover"in HTMLElement.prototype||function(){if("undefined"==typeof window)return;function t(t){return t?.includes(":popover-open")&&(t=t.replace(ae,"$1.\\:popover-open")),t}window.ToggleEvent=window.ToggleEvent||Ht,se(Document.prototype,"querySelector",t),se(Document.prototype,"querySelectorAll",t),se(Element.prototype,"querySelector",t),se(Element.prototype,"querySelectorAll",t),se(Element.prototype,"matches",t),se(Element.prototype,"closest",t),se(DocumentFragment.prototype,"querySelectorAll",t),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;const t=(this.getAttribute("popover")||"").toLowerCase();return""===t||"auto"==t?"auto":"hint"==t?"hint":"manual"},set(t){null===t?this.removeAttribute("popover"):this.setAttribute("popover",t)}},showPopover:{enumerable:!0,configurable:!0,value(t={}){Zt(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){_t(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(t={}){return"boolean"==typeof t&&(t={force:t}),"showing"===Ft.get(this)&&void 0===t.force||!1===t.force?_t(this,!0,!0):void 0!==t.force&&!0!==t.force||Zt(this),"showing"===Ft.get(this)}}});const e=Element.prototype.attachShadow;e&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(t){const n=e.call(this,t);return le(n),n}}});const n=HTMLElement.prototype.attachInternals;n&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){const t=n.call(this);return t.shadowRoot&&le(t.shadowRoot),t}}});const o=new WeakMap;function r(t){Object.defineProperties(t.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(t){if(null===t)this.removeAttribute("popovertarget"),o.delete(this);else{if(!(t instanceof Element))throw new TypeError("popoverTargetElement must be an element or null");this.setAttribute("popovertarget",""),o.set(this,t)}},get(){if("button"!==this.localName&&"input"!==this.localName)return null;if("input"===this.localName&&"reset"!==this.type&&"image"!==this.type&&"button"!==this.type)return null;if(this.disabled)return null;if(this.form&&"submit"===this.type)return null;const t=o.get(this);if(t&&t.isConnected)return t;if(t&&!t.isConnected)return o.delete(this),null;const e=Gt(this),n=this.getAttribute("popovertarget");return(e instanceof Document||e instanceof ie)&&n&&e.getElementById(n)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){const t=(this.getAttribute("popovertargetaction")||"").toLowerCase();return"show"===t||"hide"===t?t:"toggle"},set(t){this.setAttribute("popovertargetaction",t)}}})}var i;r(HTMLButtonElement),r(HTMLInputElement),(i=document).addEventListener("click",(t=>{const e=t.composedPath(),n=e[0];if(!(n instanceof Element)||n?.shadowRoot)return;const o=Gt(n);if(!(o instanceof ie||o instanceof Document))return;const r=e.find((t=>t.matches?.("[popovertargetaction],[popovertarget]")));return r?(function(t){const e=t.popoverTargetElement;if(!(e instanceof HTMLElement))return;const n=Pt(e);"show"===t.popoverTargetAction&&"showing"===n||"hide"===t.popoverTargetAction&&"hidden"===n||("showing"===n?_t(e,!0,!0):qt(e,!1)&&(Wt.set(e,t),Zt(e)))}(r),void t.preventDefault()):void 0})),i.addEventListener("keydown",(t=>{const e=t.key,n=t.target;t.defaultPrevented||!n||"Escape"!==e&&"Esc"!==e||te(n.ownerDocument,!0,!0)})),i.addEventListener("pointerdown",ne),i.addEventListener("pointerup",ne),le(document)}()}componentDidLoad(){this.host.addEventListener("beforetoggle",this.handleToggle.bind(this))}disconnectedCallback(){"function"==typeof this.clearAutoUpdate&&this.clearAutoUpdate(),this.host.removeEventListener("beforetoggle",this.handleToggle.bind(this))}async show(t){!this.toggleTimeoutId&&t&&(this.eventTarget=t,this.updatePosition(),this.host.showPopover())}async hide(){this.toggleTimeoutId||(this.eventTarget=null,this.host.hidePopover(),this.postHide.emit())}async toggle(t,e){const n=this.host.matches(":where(:popover-open, .popover-open)");return!0!==e&&(void 0!==e||n)||t?(this.eventTarget=t,this.toggleTimeoutId||(this.updatePosition(),this.host.togglePopover(e),this.toggleTimeoutId=null),this.host.matches(":where(:popover-open, .popover-open)")):n}open(){const t=this.host.shadowRoot?.querySelector(".popover-content");if(this.startAutoupdates(),t){const e=he[this.animation];"function"==typeof e?this.runOpenAnimation(e,t):(this.postBeforeToggle.emit({willOpen:!0}),this.postBeforeShow.emit({first:this.hasOpenedOnce}),this.postToggle.emit({isOpen:!0}),this.postShow.emit({first:this.hasOpenedOnce}),this.hasOpenedOnce&&(this.hasOpenedOnce=!1))}this.safeSpace&&globalThis.addEventListener("mousemove",this.boundMouseTrackingHandler)}close(){"function"==typeof this.clearAutoUpdate&&this.clearAutoUpdate(),this.safeSpace&&globalThis.removeEventListener("mousemove",this.boundMouseTrackingHandler),this.currentAnimation&&(this.currentAnimation.cancel(),this.currentAnimation=null),this.postBeforeToggle.emit({willOpen:!1}),this.postToggle.emit({isOpen:!1}),this.postHide.emit()}async runOpenAnimation(t,e){let n;try{if(n=t(e),!n)return this.postBeforeToggle.emit({willOpen:!0}),this.postBeforeShow.emit({first:this.hasOpenedOnce}),this.postToggle.emit({isOpen:!0}),void this.postShow.emit({first:this.hasOpenedOnce});this.currentAnimation=n,"running"===n.playState&&(this.postBeforeToggle.emit({willOpen:!0}),this.postBeforeShow.emit({first:this.hasOpenedOnce})),await n.finished,this.postToggle.emit({isOpen:!0}),this.postShow.emit({first:this.hasOpenedOnce}),this.hasOpenedOnce=!0}catch(t){console.warn("Animation failed or was interrupted:",t),this.postBeforeToggle.emit({willOpen:!1}),this.postBeforeShow.emit({first:this.hasOpenedOnce}),this.postToggle.emit({isOpen:!1})}finally{this.currentAnimation===n&&(this.currentAnimation=null)}}handleToggle(t){this.toggleTimeoutId=globalThis.setTimeout((()=>this.toggleTimeoutId=null),10),"open"===t.newState?this.open():this.close()}startAutoupdates(){this.eventTarget&&this.host&&(this.clearAutoUpdate=function(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:c=!1}=o,l=pt(t),p=r||i?[...l?at(l):[],...e?at(e):[]]:[];p.forEach((t=>{r&&t.addEventListener("scroll",n),i&&t.addEventListener("resize",n)}));const h=l&&a?function(t,e,n){let o,r=null;const i=I(t);function s(){var t;clearTimeout(o),null==(t=r)||t.disconnect(),r=null}function a(n,c){void 0===n&&(n=!1),void 0===c&&(c=1),s();const l=t.getBoundingClientRect(),{left:p,top:h,width:m,height:v}=l;if(n||e(),!m||!v)return;const g={rootMargin:-d(h)+"px "+-d(i.clientWidth-(p+m))+"px "+-d(i.clientHeight-(h+v))+"px "+-d(p)+"px",threshold:u(0,f(1,c))||1};let w=!0;function y(e){const n=e[0].intersectionRatio;if(!Tt(l,t.getBoundingClientRect()))return a();if(n!==c){if(!w)return a();n?a(!1,n):o=setTimeout((()=>{a(!1,1e-7)}),1e3)}w=!1}try{r=new IntersectionObserver(y,{...g,root:i.ownerDocument})}catch(t){r=new IntersectionObserver(y,g)}r.observe(t)}const c=q(t),l=()=>a(n);return c.addEventListener("resize",l),a(!0),()=>{c.removeEventListener("resize",l),s()}}(l,n,i):null;let m,v=-1,g=null;s&&(g=new ResizeObserver((t=>{let[o]=t;o&&o.target===l&&g&&e&&(g.unobserve(e),cancelAnimationFrame(v),v=requestAnimationFrame((()=>{var t;null==(t=g)||t.observe(e)}))),n()})),l&&!c&&g.observe(l),e&&g.observe(e));let w=c?dt(t):null;return c&&function e(){const o=dt(t);w&&!Tt(w,o)&&n(),w=o,m=requestAnimationFrame(e)}(),n(),()=>{var t;p.forEach((t=>{r&&t.removeEventListener("scroll",n),i&&t.removeEventListener("resize",n)})),null==h||h(),null==(t=g)||t.disconnect(),g=null,c&&cancelAnimationFrame(m)}}(this.eventTarget,this.host,this.updatePosition.bind(this)))}async updatePosition(){const{x:e,y:n,middlewareData:o,placement:r}=await this.calculatePosition();o.hide?.referenceHidden&&this.host.hidePopover();const i=r.split("-")[0];if(this.dynamicPlacement=i,this.host.style.left=`${e}px`,this.host.style.top=`${n}px`,this.arrow&&o.arrow){const{x:e,y:n}=o.arrow,r=t.STATIC_SIDES[i],s=-.5*this.arrowRef.offsetWidth;r&&Object.assign(this.arrowRef.style,{left:e?`${e}px`:"",top:n?`${n}px`:"",[r]:`${s}px`})}this.safeSpace&&this.eventTarget&&await this.updateSafeSpaceBoundaries(i)}async calculatePosition(){const t=this.edgeGap,e=(this.placement||"top").includes("-"),n=[kt({elementContext:"reference",crossAxis:!1}),kt({elementContext:"floating",crossAxis:!1})],o=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r,platform:i}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:c={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...l}=w(t,e),p={x:n,y:o},f=await i.detectOverflow(e,l),u=T(r),h=b(u);let d=p[h],m=p[u];const v=(t,e)=>g(e+f["y"===t?"top":"left"],e,e-f["y"===t?"bottom":"right"]);s&&(d=v(h,d)),a&&(m=v(u,m));const y=c.fn({...e,[h]:d,[u]:m});return{...y,data:{x:y.x-n,y:y.y-o,enabled:{[h]:s,[u]:a}}}}}}({padding:t,limiter:Ot({offset:32})}),r=[Et(this.offset??(this.arrow?t+4:t)),At(),...e?[...n,o]:[o,...n],Mt({apply({availableWidth:e,elements:n}){Object.assign(n.floating.style,{maxWidth:e-2*t+"px"})}})];return this.arrow&&r.push((t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:s,elements:a,middlewareData:c}=e,{element:l,padding:p=0}=w(t,e)||{};if(null==l)return{};const u=$(p),h={x:n,y:o},d=E(r),m=S(d),v=await s.getDimensions(l),y="y"===d,b=y?"top":"left",T=y?"bottom":"right",k=y?"clientHeight":"clientWidth",M=i.reference[m]+i.reference[d]-h[d]-i.floating[m],A=h[d]-i.reference[d],O=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l));let H=O?O[k]:0;H&&await(null==s.isElement?void 0:s.isElement(O))||(H=a.floating[k]||i.floating[m]);const L=M/2-A/2,C=H/2-v[m]/2-1,D=f(u[b],C),R=f(u[T],C),j=H-v[m]-R,z=H/2-v[m]/2+L,F=g(D,z,j),P=!c.arrow&&null!=x(r)&&z!==F&&i.reference[m]/2-(z<D?D:R)-v[m]/2<0,W=P?z<D?z-D:z-j:0;return{[d]:h[d]+W,data:{[d]:F,centerOffset:z-F-W,...P&&{alignmentOffset:W}},reset:P}}}))({element:this.arrowRef,padding:t})),this.autoHide&&r.push(function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n,platform:o}=e,{strategy:r="referenceHidden",...i}=w(t,e);switch(r){case"referenceHidden":{const t=j(await o.detectOverflow(e,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:z(t)}}}case"escaped":{const t=j(await o.detectOverflow(e,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:z(t)}}}default:return{}}}}}({strategy:"referenceHidden"})),i=this.eventTarget,s=this.host,a={placement:this.placement||"top",strategy:"fixed",middleware:r},a??={},((t,e,n)=>{const o=new Map,r=null!=n?n:{},i={...St,...r.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:R},c=await(null==s.isRTL?void 0:s.isRTL(e));let l=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:p,y:f}=D(l,o,c),u=o,h=0;const d={};for(let n=0;n<i.length;n++){const m=i[n];if(!m)continue;const{name:v,fn:g}=m,{x:w,y,data:x,reset:b}=await g({x:p,y:f,initialPlacement:o,placement:u,strategy:r,middlewareData:d,rects:l,platform:a,elements:{reference:t,floating:e}});p=null!=w?w:p,f=null!=y?y:f,d[v]={...d[v],...x},b&&h<50&&(h++,"object"==typeof b&&(b.placement&&(u=b.placement),b.rects&&(l=!0===b.rects?await s.getElementRects({reference:t,floating:e,strategy:r}):b.rects),({x:p,y:f}=D(l,u,c))),n=-1)}return{x:p,y:f,placement:u,strategy:r,middlewareData:d}})(t,e,{...r,platform:i})})(i,s,{...a,platform:{...fe,...a.platform,[pe]:new Map}});var i,s,a}async updateSafeSpaceBoundaries(e){const n=this.eventTarget.getBoundingClientRect(),o="top"===e||"bottom"===e,r=((t,e,n)=>"top"===t||"bottom"===t?{popover:{y:"top"===t?e.bottom:e.top,xStart:e.left,xEnd:e.right},trigger:{y:"top"===t?n.top:n.bottom,xStart:n.left,xEnd:n.right}}:{popover:{x:"left"===t?e.right:e.left,yStart:e.top,yEnd:e.bottom},trigger:{x:"left"===t?n.left:n.right,yStart:n.top,yEnd:n.bottom}})(e,this.host.getBoundingClientRect(),n);t.PROPERTIES_TO_CLEAR.forEach((t=>{this.host.style.removeProperty(t)})),o?(this.host.style.setProperty("--post-safe-space-popover-y",`${r.popover.y}px`),this.host.style.setProperty("--post-safe-space-popover-x-start",`${r.popover.xStart}px`),this.host.style.setProperty("--post-safe-space-popover-x-end",`${r.popover.xEnd}px`),this.host.style.setProperty("--post-safe-space-trigger-y",`${r.trigger.y}px`),this.host.style.setProperty("--post-safe-space-trigger-x-start",`${r.trigger.xStart}px`),this.host.style.setProperty("--post-safe-space-trigger-x-end",`${r.trigger.xEnd}px`)):(this.host.style.setProperty("--post-safe-space-popover-x",`${r.popover.x}px`),this.host.style.setProperty("--post-safe-space-popover-y-start",`${r.popover.yStart}px`),this.host.style.setProperty("--post-safe-space-popover-y-end",`${r.popover.yEnd}px`),this.host.style.setProperty("--post-safe-space-trigger-x",`${r.trigger.x}px`),this.host.style.setProperty("--post-safe-space-trigger-y-start",`${r.trigger.yStart}px`),this.host.style.setProperty("--post-safe-space-trigger-y-end",`${r.trigger.yEnd}px`))}render(){return o(r,{key:"f3ea4bfc9a59faa2fbf1e413a1ec648f598a6779","data-version":s,popover:"auto"},o("div",{key:"a328c73c7e08eca1e423fcbe736798188cca2a87",part:"post-popovercontainer-content",class:"popover-content"},this.arrow&&o("span",{key:"8fad0095fb8d8c903ba84a639b4efc3e321c6aef","dynamic-placement":this.dynamicPlacement,class:"arrow",ref:t=>{this.arrowRef=t}}),o("span",{key:"deadbcc5892ed545a64b4a0e5e0936e0dd1feb70",part:"post-popovercontainer-border-mask"}),o("slot",{key:"48c4db7ab222f3ef18157ce19d8ba15d75441f98"})))}get host(){return this}static get style(){return'@layer polyfill{@supports not selector(:popover-open){:host([popover]:not(.\\:popover-open)){display:none}}}:host{background-color:rgba(0,0,0,0);border:rgba(0,0,0,0);position:fixed;margin:0;padding:0;overflow:visible}:host>div{box-shadow:var(--post-device-elevation-300);width:max-content;max-width:100%;color:var(--post-current-fg);background-color:var(--post-current-bg);border-radius:4px;position:relative}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host>div{border:2px solid rgba(0,0,0,0)}}:host [part=post-popovercontainer-border-mask]{display:none;position:absolute;inset:0;border-radius:4px;pointer-events:none}:host .arrow{--post-popovercontainer-arrow-border: var(--post-popovercontainer-arrow-border-width, 0px) solid var(--post-popovercontainer-arrow-border-color, transparent);position:absolute;width:.5825rem;height:.5825rem;background-color:inherit;rotate:45deg;pointer-events:none;z-index:-1}:host .arrow[dynamic-placement=top]{border-bottom-right-radius:2px;border-bottom:var(--post-popovercontainer-arrow-border);border-right:var(--post-popovercontainer-arrow-border)}:host .arrow[dynamic-placement=right]{border-bottom-left-radius:2px;border-bottom:var(--post-popovercontainer-arrow-border);border-left:var(--post-popovercontainer-arrow-border)}:host .arrow[dynamic-placement=bottom]{border-top-left-radius:2px;border-top:var(--post-popovercontainer-arrow-border);border-left:var(--post-popovercontainer-arrow-border)}:host .arrow[dynamic-placement=left]{border-top-right-radius:2px;border-top:var(--post-popovercontainer-arrow-border);border-right:var(--post-popovercontainer-arrow-border)}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .arrow[dynamic-placement=top]{border-block-end:2px solid rgba(0,0,0,0);border-inline-end:2px solid rgba(0,0,0,0);bottom:-0.3796735336rem !important}:host .arrow[dynamic-placement=left]{border-block-start:2px solid rgba(0,0,0,0);border-inline-end:2px solid rgba(0,0,0,0);right:-0.3796735336rem !important}:host .arrow[dynamic-placement=right]{border-block-end:2px solid rgba(0,0,0,0);border-inline-start:2px solid rgba(0,0,0,0);left:-0.3796735336rem !important}:host .arrow[dynamic-placement=bottom]{border-block-start:2px solid rgba(0,0,0,0);border-inline-start:2px solid rgba(0,0,0,0);top:-0.3796735336rem !important}}:host([tooltip]){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}:host([safe-space])::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:auto}:host([safe-space=triangle])::after{clip-path:polygon(var(--post-safe-space-cursor-x, 0) var(--post-safe-space-cursor-y, 0), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)))}:host([safe-space=trapezoid])::after{clip-path:polygon(var(--post-safe-space-trigger-x-start, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-start, 0)), var(--post-safe-space-trigger-x-end, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-end, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)))}:host(:not(:has(.arrow)))>div{box-shadow:var(--post-device-elevation-300)}:host(:has(.arrow))>div{filter:drop-shadow(1px 2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(2px 4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(4px 8px 12px hsla(225, 7%, 11%, 0.15))}:host(:has(.arrow[dynamic-placement=top]))>div{filter:drop-shadow(0px -2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(0px -4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(0px -8px 12px hsla(225, 7%, 11%, 0.15))}:host(:has(.arrow[dynamic-placement=left]))>div{filter:drop-shadow(-2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(-4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(-8px 0px 12px hsla(225, 7%, 11%, 0.15))}:host(:has(.arrow[dynamic-placement=right]))>div{filter:drop-shadow(2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(8px 0px 12px hsla(225, 7%, 11%, 0.15))}'}},[257,"post-popovercontainer",{placement:[1],edgeGap:[2,"edge-gap"],offset:[2],arrow:[4],safeSpace:[513,"safe-space"],autoHide:[4,"auto-hide"],dynamicPlacement:[32],show:[64],hide:[64],toggle:[64]}]);function me(){"undefined"!=typeof customElements&&["post-popovercontainer"].forEach((t=>{"post-popovercontainer"===t&&(customElements.get(i(t))||customElements.define(i(t),de))}))}ue([a(l)],de.prototype,"placement",void 0),ue([c("number")],de.prototype,"edgeGap",void 0),ue([a(["triangle","trapezoid"])],de.prototype,"safeSpace",void 0),me();export{de as P,l as a,me as d}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as e,H as i,a as o}from"./p-Bs0zeM5Q.js";import"./p-I1j7a0bW.js";import{v as l}from"./p-BBz9PVf0.js";import{T as r}from"./p-D1s6tESz.js";import{E as a}from"./p-BEcxHjuM.js";import{g as h}from"./p-08F-DB-d.js";import"./p-BwhzbRIR.js";const n={height:"0",overflow:"hidden"},c={duration:!globalThis.matchMedia||globalThis.matchMedia("(prefers-reduced-motion: reduce)").matches?0:350,easing:"ease",fill:"forwards"};const p=class{constructor(e){t(this,e),this.postToggle=s(this,"postToggle"),this.collapsed=!1}get isExpanded(){return!this.collapsed}componentDidLoad(){this.updateTriggers()}async toggle(t=!this.isExpanded){if(t===this.isExpanded)return this.isExpanded;this.collapsed=!t;const s=this.isExpanded;{const t=s?(e=this.host).animate([n,{height:`${e.scrollHeight}px`,offset:1,overflow:"hidden"},{height:"auto",overflow:"visible"}],c):function(t){const s=globalThis.getComputedStyle(t).height;return t.animate([{height:s},n],c)}(this.host);this.postToggle.emit(s),await t.finished,t.commitStyles(),this.updateTriggers()}var e;return s}updateTriggers(){const t=this.host.id?Array.from(document.querySelectorAll(`post-collapsible-trigger[for="${this.host.id}"]`)):[],s=this.host.closest("post-collapsible-trigger");s&&!t.includes(s)&&t.push(s),t.forEach((t=>t.update()))}render(){return e(i,{key:"243dad696871a08bc07325d4511f5baeb937c194","data-version":l,tabindex:this.collapsed?-1:void 0,style:this.collapsed?n:void 0},e("slot",{key:"5f4f8a9bb698f6558b114c760e5eeb355ac35b80"}))}get host(){return o(this)}};(function(t,s,e,i){var o,l=arguments.length,r=l<3?s:null===i?i=Object.getOwnPropertyDescriptor(s,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,s,e,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(r=(l<3?o(r):l>3?o(s,e,r):o(s,e))||r);l>3&&r&&Object.defineProperty(s,e,r)})([r("boolean")],p.prototype,"collapsed",void 0),p.style=":host{display:block;position:relative;overflow:var(--post-collapsible-initial-overflow, hidden);height:var(--post-collapsible-initial-height, auto)}";var d=function(t,s,e,i){var o,l=arguments.length,r=l<3?s:null===i?i=Object.getOwnPropertyDescriptor(s,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,s,e,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(r=(l<3?o(r):l>3?o(s,e,r):o(s,e))||r);return l>3&&r&&Object.defineProperty(s,e,r),r};const b=class{constructor(s){t(this,s),this.observer=new MutationObserver((()=>this.setTrigger())),this.handlePostToggle=this.handlePostToggle.bind(this)}connectedCallback(){this.root=h(this.host),this.root.addEventListener("postToggle",this.handlePostToggle),this.observer.observe(this.host,{childList:!0,subtree:!0})}componentDidLoad(){this.setTrigger(),this.trigger||console.warn("The post-collapsible-trigger must contain a button."),this.collapsible||console.warn(`No post-collapsible found ${this.for?`with id "${this.for}"`:"nested inside <post-collapsible-trigger>"}. Either nest a post-collapsible inside the trigger or set the "for" attribute to the id of the collapsible.`)}disconnectedCallback(){this.observer.disconnect(),this.root?.removeEventListener("postToggle",this.handlePostToggle)}async update(){this.updateAriaAttributes()}handlePostToggle(t){this.trigger&&this.trigger.setAttribute("aria-expanded",`${t.detail}`)}updateAriaAttributes(){const t=this.collapsible;if(!this.trigger||!t)return;t.id||=`collapsible-${crypto.randomUUID()}`;const s=t.id,e=this.trigger.getAttribute("aria-controls"),i=e?e.split(/\s+/):[];i.includes(s)||(i.push(s),this.trigger.setAttribute("aria-controls",i.join(" "))),this.trigger.setAttribute("aria-expanded",`${!t.collapsed}`)}async toggleCollapsible(){await(this.collapsible?.toggle())}get collapsible(){const t=this.host.querySelector("post-collapsible")??(this.for?this.root?.getElementById(this.for)??null:null);return t&&"post-collapsible"===t.localName?t:null}setTrigger(){const t=Array.from(this.host.querySelectorAll("button")).find((t=>{const s=t.closest("post-collapsible");return!(s&&this.host.contains(s))}));!t||this.trigger&&t.isEqualNode(this.trigger)||(this.trigger=t,this.trigger.addEventListener("click",(()=>this.toggleCollapsible())),this.updateAriaAttributes())}render(){return e(i,{key:"4d28c7068acd2e1b4a5f2272bee3b51ec5d8a216","data-version":l},e("slot",{key:"0bcbb780ed6d06ef36b9129b22b4a5dcd5aa7294"}))}get host(){return o(this)}};d([r("string")],b.prototype,"for",void 0),d([a("post-collapsible")],b.prototype,"handlePostToggle",null);export{p as post_collapsible,b as post_collapsible_trigger}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as i,H as o,a as e}from"./p-Bs0zeM5Q.js";import"./p-I1j7a0bW.js";import{v as s}from"./p-BBz9PVf0.js";import{U as a}from"./p-DH-eJVHZ.js";import{T as r}from"./p-D1s6tESz.js";import{O as n}from"./p-DeUk3rcv.js";import{R as c}from"./p-Bl-_v3aT.js";import"./p-BwhzbRIR.js";var l=function(t,i,o,e){var s,a=arguments.length,r=a<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,o):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,o,e);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(r=(a<3?s(r):a>3?s(i,o,r):s(i,o))||r);return a>3&&r&&Object.defineProperty(i,o,r),r};const d=class{constructor(i){t(this,i),this.hasSlottedAnchor=!1,this.variant="listitem",this.selected=!1,this.standalone=!1}componentWillLoad(){this.checkSlottedAnchor()}checkSlottedAnchor(){this.hasSlottedAnchor=Array.from(this.host.children).some((t=>"A"===t.tagName))}renderContent(){const t=i("slot",{onSlotchange:()=>this.checkSlottedAnchor()}),o=this.url instanceof URL?this.url.href:this.url;return this.hasSlottedAnchor?t:o?i("a",{href:o,"aria-current":this.selected?"page":void 0,"aria-label":this.label,"aria-description":this.description},t):i("span",null,t)}render(){const t=this.renderContent();return"listitem"===this.variant||this.selected?i(o,{"data-version":s,role:"listitem",slot:this.selected?"selected":void 0},t):i(o,{"data-version":s,slot:"menu"},i("post-menu-item",null,t))}get host(){return e(this)}};l([a()],d.prototype,"url",void 0),l([r("string")],d.prototype,"label",void 0),l([r("string")],d.prototype,"description",void 0),l([n(["listitem","menuitem"])],d.prototype,"variant",void 0),l([c(),r("boolean")],d.prototype,"selected",void 0),l([c(),r("boolean")],d.prototype,"standalone",void 0),d.style='a{-webkit-text-decoration:var(--post-core-text-decoration-underline);text-decoration:var(--post-core-text-decoration-underline);border-radius:var(--post-device-border-radius-focus);color:var(--post-current-fg)}a:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}a{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}a:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){a:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){a:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){a:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){a,a:focus{color:LinkText !important}a:hover{text-decoration-thickness:2px}a:visited{color:VisitedText}a.btn:not(.btn-link){border-color:ButtonBorder !important}a.btn.btn-tertiary.px-0{border:0 !important}a.btn.btn-tertiary.px-0:not(:hover){text-decoration:underline}}:host([variant=menuitem]) :is(a,span),:host([variant=menuitem]) ::slotted(a){white-space:normal;overflow-wrap:anywhere;hyphens:auto;line-break:strict}:host([variant=listitem]){display:flex;align-items:flex-start;padding-block:var(--post-device-spacing-padding-block-6);gap:var(--post-device-spacing-gap-inline-5)}:host([variant=listitem]) :is(button,a){display:inline-flex;position:relative;align-items:center;justify-content:center;max-width:100%;overflow:hidden;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);box-shadow:none;font-family:inherit;font-size:var(--post-device-font-size-6);font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;font:inherit;padding:unset;border:unset;border-radius:var(--post-device-border-radius-focus);color:var(--post-scheme-color-interactive-primary-enabled-fg1);text-decoration:var(--post-core-text-decoration-none)}:host([variant=listitem]) :is(button,a):not(:disabled):hover{text-decoration:none}:host([variant=listitem]) :is(button,a):disabled{border-style:var(--post-core-border-style-dash);cursor:unset}:host([variant=listitem]) :is(button,a){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}:host([variant=listitem]) :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host([variant=listitem]) :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){:host([variant=listitem]) :is(button,a):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host([variant=listitem]) :is(button,a):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host([variant=listitem]) :is(button,a){border-width:1px !important;transition:none}:host([variant=listitem]) :is(button,a):is(button){background-color:ButtonFace !important;border-color:ButtonBorder !important}}:host([variant=listitem]) :is(button,a):hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);text-decoration:var(--post-core-text-decoration-underline)}:host([variant=listitem])::before{mask-image:var(--post-icon-chevronright);background-color:currentColor;flex:0 0 auto;content:"";display:block;height:var(--post-device-sizing-interactive-icon-size4);width:var(--post-device-sizing-interactive-icon-size4);margin-block:calc(var(--post-device-spacing-padding-35) - 1*var(--post-device-spacing-padding-block-6));margin-inline:var(--post-core-dimension-4)}:root,:host{--post-icon-chevronright:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2wgaWQ9ImktY2hldnJvbnJpZ2h0Ij48c3ltYm9sIGlkPSJzMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTUuMzggMTRjLS4xOSAwLS4zOC0uMDctLjUzLS4yMmEuNzU0Ljc1NCAwIDAgMSAwLTEuMDZMOS41NyA4IDQuODUgMy4yOGMtLjI5LS4yOS0uMjktLjc3IDAtMS4wNnMuNzctLjI5IDEuMDYgMEwxMS42OSA4bC01Ljc4IDUuNzhjLS4xNS4xNS0uMzQuMjItLjUzLjIyIi8+PC9zeW1ib2w+PHN5bWJvbCBpZD0iczI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik04LjA3IDIwLjcyYy0uMjIgMC0uNDUtLjA4LS42Mi0uMjZhLjg4Ljg4IDAgMCAxIDAtMS4yNGw3LjI2LTcuMjZMNy40NSA0LjdhLjg4Ljg4IDAgMCAxIDAtMS4yNGMuMzQtLjM0LjktLjM0IDEuMjQgMGw4LjUgOC41LTguNDkgOC40OWMtLjE3LjE3LS40LjI2LS42Mi4yNloiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTTEwLjc2IDI3LjVjLS4yNiAwLS41MS0uMS0uNzEtLjI5YS45OTYuOTk2IDAgMCAxIDAtMS40MWw5Ljc5LTkuNzktOS43OS05LjgxYS45OTYuOTk2IDAgMSAxIDEuNDEtMS40MUwyMi42NyAxNiAxMS40NiAyNy4yMWMtLjIuMi0uNDUuMjktLjcxLjI5WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMTMuNSAzNC4yMmExLjEyMyAxLjEyMyAwIDAgMS0uOC0xLjkybDEyLjMzLTEyLjMzTDEyLjcgNy42M2MtLjQ0LS40NC0uNDQtMS4xNSAwLTEuNTlzMS4xNS0uNDQgMS41OSAwbDEzLjkzIDEzLjkzTDE0LjMgMzMuODljLS4yMi4yMi0uNTEuMzMtLjguMzMiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCI+PHBhdGggZD0iTTE2LjE0IDQxYy0uMzIgMC0uNjQtLjEyLS44OC0uMzdhMS4yNSAxLjI1IDAgMCAxIDAtMS43N2wxNC44Ny0xNC44N0wxNS4yNSA5LjExYy0uNDktLjQ5LS40OS0xLjI4IDAtMS43N3MxLjI4LS40OSAxLjc3IDBsMTYuNjQgMTYuNjQtMTYuNjMgMTYuNjNjLS4yNC4yNC0uNTYuMzctLjg4LjM3WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM2NCIgdmlld0JveD0iMCAwIDY0IDY0Ij48cGF0aCBkPSJNMjEuNTEgNTQuNGExLjM3NiAxLjM3NiAwIDAgMS0uOTctMi4zNWwyMC4wMy0yMC4wMy0yMC4wNC0yMC4wM2MtLjU0LS41NC0uNTQtMS40MSAwLTEuOTVzMS40MS0uNTQgMS45NSAwbDIxLjk4IDIxLjk5TDIyLjQ5IDU0Yy0uMjcuMjctLjYyLjQtLjk3LjRaIi8+PC9zeW1ib2w+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczE2LCBub25lKSIgaHJlZj0iI3MxNiIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXMyNCwgbm9uZSkiIGhyZWY9IiNzMjQiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zMzIsIG5vbmUpIiBocmVmPSIjczMyIi8+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczQwLCBub25lKSIgaHJlZj0iI3M0MCIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXM0OCwgbm9uZSkiIGhyZWY9IiNzNDgiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zNjQsIG5vbmUpIiBocmVmPSIjczY0Ii8+PC9zeW1ib2w+PC9kZWZzPjxzdHlsZT5AbWVkaWEgKG1heC13aWR0aDogMjMuOThweCkge2d7LS1zMTY6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogMjRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZXZyb25yaWdodCIvPjwvZz48L3N2Zz4=")}:host([variant=listitem]):not([standalone]:not([standalone=false])) ::slotted(a){white-space:nowrap}:host([variant=listitem]):host([selected]:not([selected=false])){flex-shrink:0}:host([variant=listitem]):host([selected]:not([selected=false])) :is(a,span){color:var(--post-scheme-color-interactive-primary-selected-fg1);font-weight:var(--post-device-font-weight-bold);text-decoration:var(--post-core-text-decoration-none)}:host([variant=listitem]):host([standalone]:not([standalone=false])){flex-shrink:1}:host([variant=listitem]):host([standalone]:not([standalone=false])) :is(a,span),:host([variant=listitem]):host([standalone]:not([standalone=false])) ::slotted(a){white-space:normal;overflow-wrap:anywhere;hyphens:auto;line-break:strict}';export{d as post_breadcrumb_item}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as i,H as e,a}from"./p-Bs0zeM5Q.js";import"./p-I1j7a0bW.js";import{v as s}from"./p-BBz9PVf0.js";import{R as r}from"./p-Bl-_v3aT.js";import{T as o}from"./p-D1s6tESz.js";import{P as n}from"./p-Dk-DtPZn.js";import"./p-BwhzbRIR.js";var c=function(t,i,e,a){var s,r=arguments.length,o=r<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,e,a);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(o=(r<3?s(o):r>3?s(i,e,o):s(i,e))||o);return r>3&&o&&Object.defineProperty(i,e,o),o};const d=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;var l;!function(t){t.Slotted="slotted",t.Image="image",t.Initials="initials",t[t.Null=null]="Null"}(l||(l={}));const h=class{constructor(i){t(this,i),this.avatarType=null,this.imageUrl="",this.imageAlt="",this.initials="",this.storageKey=""}updateEmail(){this.getAvatarImage()}async getAvatarImage(){let t=!1;this.slottedImage=this.host.querySelector("img");const i=this.slottedImage?.getAttribute("src");i?await this.getImageByProp(i,this.fetchSlottedImage.bind(this))?this.slottedImage.style.display="block":(this.slottedImage.style.display="none",this.avatarType=l.Initials):(this.email?.match(d)&&(t=await this.getImageByProp(this.email,this.fetchImageByEmail.bind(this))),t||(this.avatarType=l.Initials))}async getImageByProp(t,i){if(!t)return!1;let e;try{e=await i(t)}catch(t){return console.info("Loading avatar image failed.",t),!1}return!!e?.ok&&(this.imageUrl=e.url,this.imageAlt=`${this.firstname} ${this.lastname} avatar`,this.avatarType=l.Image,!0)}async fetchImageByEmail(){const t=await async function(t){return await crypto.subtle.digest("SHA-256",(new TextEncoder).encode(t)).then((t=>Array.from(new Uint8Array(t)).map((t=>t.toString(16).padStart(2,"0"))).join("")))}(this.email),i="https://www.gravatar.com/avatar/{email}?s=80&d=404&r=g".replace("{email}",t);return await fetch(i)}async fetchSlottedImage(t){return await fetch(t,{method:"HEAD"})}slotChanged(){const t=this.host.shadowRoot.querySelector("slot");(t?.assignedNodes({flatten:!0})||[]).forEach((t=>{t.nodeType===Node.ELEMENT_NODE&&"IMG"===t.tagName&&this.observeImageSrcChanges(t)})),this.getAvatarImage()}observeImageSrcChanges(t){this.slottedImageObserver&&this.slottedImageObserver.disconnect(),this.slottedImageObserver=new MutationObserver((t=>{t.forEach((t=>{"attributes"===t.type&&"src"===t.attributeName&&this.getAvatarImage()}))})),this.slottedImageObserver.observe(t,{attributes:!0,attributeFilter:["src"]})}connectedCallback(){this.avatarType=l.Initials,this.getAvatarImage()}render(){const t=[this.firstname,this.lastname].filter(Boolean).map((t=>t.trim())),a=t.map((t=>t.charAt(0))).join("").trim(),r=t.join(" ");return i(e,{key:"ba9c39d64f6a1b77131ba8c603c9be3aad113c53","data-version":s},i("span",{key:"27a9ac87e8978fabf1717f3eb978e39d06670507",class:"slotted"===this.avatarType?"":"d-none"},i("slot",{key:"3fa13670176f2fc3a79a8b11659962f433c37c2e",onSlotchange:this.slotChanged.bind(this)})),"image"===this.avatarType&&i("img",{key:"232099852c2ad8f2c4660eb1077c6d618092cdca",src:this.imageUrl,alt:this.imageAlt}),"initials"===this.avatarType&&i("span",{key:"e6b3bf751a95997a2abef2a16dcd8e2c78d308fa",class:"initials"},a,i("span",{key:"8d869a374678094e2ec5abc146b0b981c9079c15"},this.description??r)))}get host(){return a(this)}static get watchers(){return{email:[{updateEmail:0}]}}};c([r(),o("string")],h.prototype,"firstname",void 0),c([o("string")],h.prototype,"lastname",void 0),c([n(d)],h.prototype,"email",void 0),c([o("string")],h.prototype,"description",void 0),h.style=':host{--post-avatar-bg:var(--post-scheme-color-interactive-primary-enabled-bg2);--post-avatar-fg:var(--post-scheme-color-interactive-primary-enabled-fg3);display:inline-flex;position:relative;width:var(--post-device-sizing-interactive-icon-size3);height:var(--post-device-sizing-interactive-icon-size3);background-color:var(--post-scheme-color-interactive-primary-enabled-stroke3);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-enabled-stroke3);border-radius:var(--post-device-border-radius-round);font-size:var(--post-device-font-size-8);vertical-align:top;line-height:1}:host::after{display:block;content:"";position:absolute;inset:0;z-index:1;border-radius:inherit}*,*::before,*::after{box-sizing:border-box}slot,img,::slotted(img){display:block;width:100%;height:100%}img,::slotted(img){border-radius:var(--post-device-border-radius-round)}::slotted(:not(img)){display:none !important}.initials{display:flex;justify-content:center;align-items:center;position:relative;width:100%;height:100%;background-color:var(--post-avatar-bg);border-radius:var(--post-device-border-radius-round);color:var(--post-avatar-fg);text-transform:uppercase;font-weight:400;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms}.initials span{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}';export{h as post_avatar}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o,h as e,H as t,a as r}from"./p-Bs0zeM5Q.js";import{P as s}from"./p-DRiVosES.js";import"./p-I1j7a0bW.js";import{v as a}from"./p-BBz9PVf0.js";import{O as i}from"./p-DeUk3rcv.js";import"./p-BwhzbRIR.js";const p=class{constructor(e){o(this,e),this.placement="top",this.arrow=!1,this.open=!1}componentDidLoad(){this.host.id||console.error("No id set: <post-tooltip> must have an id, linking it to it's target element with a <post-tooltip-trigger> element.")}async show(o){this.open||await this.popoverRef.show(o)}async hide(){this.popoverRef.hide()}async toggle(o,e){this.popoverRef.toggle(o,e)}handleBeforeToggle(o){this.open=o.detail.willOpen}render(){return e(t,{key:"62d5983e0ef32f851166d0c1d2c457cac0809fdf","data-version":a},e("post-popovercontainer",{key:"10150540956510724ab4832ecceb421a7013d983",safeSpace:"trapezoid",class:this.arrow?"has-arrow":"",role:"tooltip",arrow:this.arrow,placement:this.placement,autoHide:!0,onPostBeforeToggle:o=>this.handleBeforeToggle(o),ref:o=>this.popoverRef=o},e("slot",{key:"cdfaf0e916afa55ec3f1a7f64003101985560e27"})))}get host(){return r(this)}};(function(o,e,t,r){var s,a=arguments.length,i=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(o,e,t,r);else for(var p=o.length-1;p>=0;p--)(s=o[p])&&(i=(a<3?s(i):a>3?s(e,t,i):s(e,t))||i);a>3&&i&&Object.defineProperty(e,t,i)})([i(s)],p.prototype,"placement",void 0),p.style=':host{display:none}:host([open]){display:contents}post-popovercontainer[arrow]::after{position:absolute;content:"";inset:-13px;z-index:-1}post-popovercontainer{--post-current-bg:var(--post-scheme-color-surface-accent-bg);--post-current-fg:var(--post-scheme-color-surface-accent-fg);--post-popovercontainer-arrow-border-width:var(--post-device-border-width-alternative1);--post-popovercontainer-arrow-border-color:var(--post-scheme-color-surface-accent-fg)}post-popovercontainer::part(post-popovercontainer-border-mask){display:block;box-shadow:inset 0 0 0 var(--post-device-spacing-padding-14) var(--post-scheme-color-surface-accent-bg)}post-popovercontainer::part(post-popovercontainer-content){border:var(--post-device-border-width-alternative1) solid var(--post-scheme-color-surface-accent-fg);border-radius:var(--post-device-border-radius-1);padding:var(--post-device-spacing-padding-14) var(--post-device-spacing-padding-15);font-size:var(--post-device-font-size-9);max-width:var(--post-tooltip-max-width, 280px);word-wrap:break-word;white-space:normal}';export{p as post_tooltip}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e,H as i,a as o}from"./p-Bs0zeM5Q.js";import"./p-I1j7a0bW.js";import{v as s}from"./p-BBz9PVf0.js";import{d as n}from"./p-bR8vy6-s.js";function r(t,e){const i=Number.parseFloat(t[e]);return Number.isNaN(i)?void 0:i}function a(t,e,i){return void 0!==t&&void 0!==e&&i(t,e)}const d=class{constructor(e){t(this,e),this.isDisabled=!1,this.isIncrementDisabled=!1,this.isDecrementDisabled=!1,this.small=!1,this.setupInput=n(50,(()=>{this.input=this.input??function(t,e){const i=t.querySelectorAll(e);return 1===i.length?i[0]:(console.error(`<${t.localName}> expects exactly one element matching "${e}", but found ${i.length}.`,t),null)}(this.host,'input[type="number"]'),this.input&&(this.isDisabled=this.input.disabled,this.small=this.input.classList.contains("form-control-sm"),this.updateStepButtonState(),this.input.addEventListener("input",(()=>this.updateStepButtonState())),this.mutationObserver=new MutationObserver((()=>this.updateStepButtonState())),this.mutationObserver.observe(this.input,{attributes:!0,attributeFilter:["min","max","disabled"]}))}))}get value(){return r(this.input,"value")}get min(){return r(this.input,"min")}get max(){return r(this.input,"max")}get isAtMin(){return a(this.value,this.min,((t,e)=>t===e))}get isAtMax(){return a(this.value,this.max,((t,e)=>t===e))}get isBelowMin(){return a(this.value,this.min,((t,e)=>t<e))}get isAboveMax(){return a(this.value,this.max,((t,e)=>t>e))}disconnectedCallback(){this.mutationObserver&&this.mutationObserver.disconnect()}step(t){const e="up"===t;!function(t,e){const i=function(t,{delayMs:e=300,intervalMs:i=100}={}){let o;t();const s=setTimeout((()=>{o=setInterval(t,i)}),e);return()=>{clearTimeout(s),o&&clearInterval(o)}}(t,e),o=()=>{i(),globalThis.removeEventListener("pointerup",o),globalThis.removeEventListener("pointercancel",o),globalThis.removeEventListener("pointerleave",o)};globalThis.addEventListener("pointerup",o),globalThis.addEventListener("pointercancel",o),globalThis.addEventListener("pointerleave",o)}((()=>{(e?this.isAtMax:this.isAtMin)||((e?this.isBelowMin:this.isAboveMax)?this.input.value=e?this.input.min:this.input.max:(e?this.input.stepUp:this.input.stepDown).call(this.input),this.input.dispatchEvent(new Event("input",{bubbles:!0})),this.updateStepButtonState())}))}updateStepButtonState(){this.input.disabled||this.min&&this.max&&this.min>this.max?this.isIncrementDisabled=this.isDecrementDisabled=!0:(this.isIncrementDisabled=this.isAtMax||this.isAboveMax,this.isDecrementDisabled=this.isAtMin||this.isBelowMin)}render(){const t=!!this.input;return e(i,{key:"9bc4f1aff3f0347c5419cbc8c3f03660c8ce0ec3","data-version":s,class:{"number-input-sm":this.small,disabled:this.isDisabled}},t&&e("div",{key:"556bdd45f2dc5b924f7bb2eab0c059c3000bf404","aria-hidden":"true",onPointerDown:()=>this.step("down"),class:{"step-button":!0,disabled:this.isDecrementDisabled}},e("post-icon",{key:"fc8ee1c88ab96345a0aa81928c7fd4d45dd88414",name:"minus"})),e("div",{key:"9284ca5c21009bd79b144e61a33017501646fceb",class:"input-container"},e("slot",{key:"e6dfefd93d26fee610a82863a66f55939552ff7c",onSlotchange:()=>this.setupInput()})),t&&e("div",{key:"d74c99d7f2db50387cd3f0d6033339fbf9480a24","aria-hidden":"true",onPointerDown:()=>this.step("up"),class:{"step-button":!0,disabled:this.isIncrementDisabled}},e("post-icon",{key:"25635f72d1b067663f8458bdbb7994c7dfafa6e8",name:"plus"})))}get host(){return o(this)}};d.style=':host{display:inline-flex;align-items:end;width:100%}:host ::slotted(input[type=number]),:host .step-button{height:var(--post-device-sizing-interactive-button-height-6) !important}:host ::slotted(input[type=number]){border-radius:0 !important;padding-inline:var(--post-device-spacing-padding-inline-1);padding-block-start:var(--post-device-spacing-padding-block-29);padding-block-end:var(--post-device-spacing-padding-block-3)}:host ::slotted(input[type=number]:focus){outline:none !important}:host .step-button.disabled{background-color:var(--post-scheme-color-interactive-button-secondary-disabled-bg);color:var(--post-scheme-color-interactive-button-secondary-disabled-fg);border-color:var(--post-scheme-color-interactive-button-secondary-disabled-stroke);border-style:var(--post-core-border-style-dash)}:host(.number-input-sm) ::slotted(input[type=number]),:host(.number-input-sm) .step-button{height:var(--post-device-sizing-interactive-button-height-8) !important}:host(.number-input-sm) ::slotted(input[type=number]){font-size:var(--post-device-font-size-7) !important;padding-inline:var(--post-device-spacing-padding-inline-1) !important;padding-block:var(--post-device-spacing-padding-29) !important}:host(.number-input-sm) ::slotted(input[type=number].is-valid),:host(.number-input-sm) ::slotted(input[type=number].is-invalid){background-size:var(--post-device-sizing-notification-5) !important;padding-inline-end:calc( (var(--post-device-spacing-padding-inline-1)* 2) + var(--post-device-sizing-notification-5) ) !important}:host(.number-input-sm) .step-button{padding-inline:var(--post-device-spacing-padding-32);padding-block:var(--post-device-spacing-padding-2)}:host(.number-input-sm) .step-button post-icon{width:var(--post-device-sizing-interactive-icon-size7);height:var(--post-device-sizing-interactive-icon-size7)}:host(:hover) .step-button:not(.disabled){background-color:var(--post-scheme-color-interactive-button-secondary-hover-bg);border-color:var(--post-scheme-color-interactive-button-secondary-hover-stroke)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(:hover) .step-button:not(.disabled){border-color:Highlight}}:host(:hover) .step-button:not(.disabled),:host(:hover) .step-button:not(.disabled) post-icon{color:var(--post-scheme-color-interactive-button-secondary-hover-fg)}.input-container{position:relative;flex-grow:1}.input-container:focus-within::after{content:"";pointer-events:none;z-index:2;width:calc(100% + (var(--post-device-border-width-default) * 2));height:calc(100% + (var(--post-device-border-width-default) * 2));border:var(--post-device-border-width-focus) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-focus-stroke);position:absolute;border-radius:var(--post-device-border-radius-1);top:calc((var(--post-device-border-width-default) * 2)*-1);left:calc((var(--post-device-border-width-default) * 2)*-1)}.step-button{display:inline-flex;position:relative;align-items:center;justify-content:center;max-width:100%;overflow:hidden;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);box-shadow:none;font-family:inherit;font-size:var(--post-device-font-size-6);font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;transition:unset;box-sizing:border-box;flex:0 0 auto;border-radius:var(--post-device-border-radius-1);padding-inline:var(--post-device-spacing-padding-23);padding-block:var(--post-device-spacing-padding-22);box-shadow:var(--post-device-elevation-100);border:var(--post-device-border-width-default) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-button-secondary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-secondary-enabled-bg);color:var(--post-scheme-color-interactive-button-secondary-enabled-fg)}.step-button:not(:disabled):hover{text-decoration:none}.step-button:disabled{border-style:var(--post-core-border-style-dash);cursor:unset}.step-button{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.step-button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.step-button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.step-button:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.step-button:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.step-button{border-width:1px !important;transition:none}.step-button:is(button){background-color:ButtonFace !important;border-color:ButtonBorder !important}}.step-button post-icon{width:var(--post-device-sizing-interactive-icon-size6);height:var(--post-device-sizing-interactive-icon-size6)}.step-button:first-of-type{border-start-end-radius:0;border-end-end-radius:0;border-inline-end-width:0}.step-button:last-of-type{border-start-start-radius:0;border-end-start-radius:0;border-inline-start-width:0}.step-button.disabled{pointer-events:none;cursor:unset}';export{d as post_number_input}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e,H as i,a as o}from"./p-Bs0zeM5Q.js";import"./p-I1j7a0bW.js";import{c as s}from"./p-lpWRZjJp.js";import{n as r}from"./p-8LXe8Zt_.js";import{v as a}from"./p-BBz9PVf0.js";import{t as n}from"./p-bR8vy6-s.js";import{R as c}from"./p-Bl-_v3aT.js";import{U as d}from"./p-DH-eJVHZ.js";import{T as l}from"./p-D1s6tESz.js";import"./p-BwhzbRIR.js";var h=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const m=class{constructor(e){t(this,e),this.debounceUpdateCollapsedItems=n(50,this.updateCollapsedItems.bind(this)),this.resizeObserver=new ResizeObserver(this.debounceUpdateCollapsedItems),this.mutationObserver=new MutationObserver((()=>{this.updateAfterMutation()})),this.loaded=!1,this.hasSlottedHomeAnchor=!1,this.hasSlottedHomeIcon=!1,this.collapsed=0,this.homeCollapsed=!1,this.lastItemWraps=!1,this.nav=null,this.hiddenNav=null,this.homeTextOnly=!1}componentWillLoad(){this.id=this.host.id||`b${r(6)}`,this.checkSlottedHomeAnchor()}async componentDidLoad(){this.resizeObserver?.observe(document.body),this.mutationObserver?.observe(this.host,{childList:!0,characterData:!0,subtree:!0}),await this.updateHiddenNav(),await this.updateCollapsedItems(),this.loaded=!0}disconnectedCallback(){this.resizeObserver?.disconnect(),this.mutationObserver?.disconnect(),this.debounceUpdateCollapsedItems.cancel()}checkSlottedHomeAnchor(){const t=Array.from(this.host.children).find((t=>"home"===t.getAttribute("slot")));this.hasSlottedHomeAnchor="A"===t?.tagName,this.hasSlottedHomeIcon=this.hasSlottedHomeAnchor&&!!t?.querySelector("post-icon")}get usesHomeText(){return this.hasSlottedHomeAnchor?!this.hasSlottedHomeIcon:this.homeTextOnly}async updateCollapsedItems(){if(!this.nav)return;const{overflowing:t,homeOverflows:e,lastItemWraps:i}=await this.calculateCollapsedItems();this.collapsed=t,this.homeCollapsed=e,this.lastItemWraps=i}async calculateCollapsedItems(){const t=this.host.querySelectorAll("post-breadcrumb-item"),{overflowing:e,homeOverflows:i,lastItemWraps:o}=await this.calculateOverflowingItems();return{overflowing:Math.max(e,t.length-6),homeOverflows:i,lastItemWraps:o}}async calculateOverflowingItems(){if(!this.hiddenNav)return{overflowing:0,homeOverflows:!1,lastItemWraps:!1};const t=this.hiddenNav,e=t.clientWidth,i=Number.parseFloat(getComputedStyle(t.firstElementChild).gap),o=t.querySelector(".menu")?.clientWidth??0,s=t.querySelector(".home")?.clientWidth??0,r=Array.from(t.querySelectorAll("post-breadcrumb-item")).slice(0,-1),{overflowing:a,remainingWidth:n}=this.collapseMiddleItems(r,i,o,e),c=this.usesHomeText&&n>e;return{overflowing:a,homeOverflows:c,lastItemWraps:this.usesHomeText?c&&n-s+(0===a?o:0)>e:n>e}}collapseMiddleItems(t,e,i,o){let s=this.hiddenNav.scrollWidth-i+e,r=0;for(;r<t.length&&s>o;)0===r&&(s+=i),s-=t[r++].clientWidth+e;return{overflowing:r,remainingWidth:s}}updateItems(t,e,i){t.forEach(((o,s)=>{const r=s===t.length-1;o.setAttribute("variant",s<e?"menuitem":"listitem"),o.setAttribute("selected",String(r)),o.setAttribute("standalone",String(r&&s===e&&i))}))}async updateHiddenNav(){this.hiddenNav?.remove(),this.hiddenNav=await this.renderHiddenNav()}async updateAfterMutation(){await this.updateHiddenNav(),await this.updateCollapsedItems()}async renderHiddenNav(){const t=this.host.shadowRoot;if(!t||!this.nav)return null;const e=this.nav.cloneNode(!0),i=e.querySelectorAll("slot");this.nav.querySelectorAll("slot").forEach(((t,e)=>{const o=i[e],s=t.assignedElements();if(s.length>0)s.forEach((t=>{o.insertAdjacentElement("beforebegin",t.cloneNode(!0))})),o.remove();else{const t=o.parentNode;t&&(Array.from(o.childNodes).forEach((e=>t.insertBefore(e,o))),o.remove())}}));const o=e.querySelector(".home");o?.parentNode?.replaceChild(this.buildMeasurementHomeElement(),o),e.classList.remove("loading"),e.classList.add("invisible"),e.querySelector(".menu").classList.remove("empty"),t.append(e);const r=e.querySelectorAll("post-breadcrumb-item");return await Promise.all(Array.from(r).map((t=>s(t)))),this.updateItems(r,0,!1),e}buildMeasurementHomeElement(){const t=document.createElement("div");t.className="breadcrumb-item home"+(this.usesHomeText?"":" icon"),t.setAttribute("role","listitem");const e=this.hasSlottedHomeAnchor?Array.from(this.host.children).find((t=>"home"===t.getAttribute("slot"))):null;if(e)return t.append(e.cloneNode(!0)),t;const i=document.createElement("a");this.homeUrl&&(i.href=this.homeUrl);const o=document.createElement("span");if(this.usesHomeText||(o.className="visually-hidden"),o.textContent=this.textHome,i.append(o),!this.usesHomeText){const t=document.createElement("post-icon");t.setAttribute("aria-hidden","true"),t.setAttribute("name","home"),i.append(t)}return t.append(i),t}renderMenu(){const t=`${this.id}-menu`;return e("div",{class:"breadcrumb-item menu "+(0!==this.collapsed||this.homeCollapsed?"":"empty"),role:"listitem"},e("post-menu-trigger",{for:t},e("button",null,e("span",{class:"visually-hidden"},this.textMoreItems),e("span",{"aria-hidden":"true"},"..."))),e("post-menu",{id:t,label:this.textMoreItems,placement:"bottom-start"},this.homeCollapsed&&this.usesHomeText&&e("post-menu-item",null,this.renderHomeContent()),e("slot",{name:"menu"})))}renderHomeContent(){return e("slot",{name:"home",onSlotchange:()=>this.checkSlottedHomeAnchor()},e("a",{href:this.homeUrl},e("span",{class:this.usesHomeText?void 0:"visually-hidden"},this.textHome),!this.usesHomeText&&e("post-icon",{"aria-hidden":"true",name:"home"})))}renderHome(){return e("div",{class:"breadcrumb-item home"+(this.usesHomeText?"":" icon"),role:"listitem"},this.renderHomeContent())}render(){if(this.loaded){const t=this.host.querySelectorAll("post-breadcrumb-item");this.updateItems(t,this.collapsed,this.lastItemWraps)}return e(i,{key:"8d5f457a7c6a2df0cfaf5c31f3ffc6937de76e57","data-version":a,class:this.homeCollapsed&&this.usesHomeText?"home-collapsed":void 0},e("nav",{key:"ce3fd7ad69060dd6968afaad6170e27eee72682f","aria-label":this.textBreadcrumbs,ref:t=>this.nav=t,class:this.loaded?"":"loading"},e("div",{key:"1c400c8c1e1b625203876cc9804936782a2202c6",role:"list"},(!this.homeCollapsed||!this.usesHomeText)&&this.renderHome(),this.renderMenu(),e("slot",{key:"5cf6618b487961c0e7d70637f5396d023660ec55"}),e("slot",{key:"f4fb662d04d9966c76a22444844d692611472b2d",name:"selected"}))))}get host(){return o(this)}};h([c({when:"hasSlottedHomeAnchor",truthy:!1}),d()],m.prototype,"homeUrl",void 0),h([c({when:"hasSlottedHomeAnchor",truthy:!1}),l("string")],m.prototype,"textHome",void 0),h([c(),l("boolean")],m.prototype,"homeTextOnly",void 0),h([c(),l("string")],m.prototype,"textBreadcrumbs",void 0),h([c(),l("string")],m.prototype,"textMoreItems",void 0),m.style=':host{display:block;position:relative}nav{max-width:100%}nav.invisible{overflow:hidden;visibility:hidden;position:absolute;inset:0}nav.loading>div>:not(.home){display:none}[role=list]{display:flex;align-items:flex-start;gap:var(--post-device-spacing-gap-inline-4)}[role=list]>.menu:first-child::before{content:none}.breadcrumb-item{display:flex;align-items:flex-start;padding-block:var(--post-device-spacing-padding-block-6);gap:var(--post-device-spacing-gap-inline-5)}.breadcrumb-item :is(button,a){display:inline-flex;position:relative;align-items:center;justify-content:center;max-width:100%;overflow:hidden;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);box-shadow:none;font-family:inherit;font-size:var(--post-device-font-size-6);font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;font:inherit;padding:unset;border:unset;border-radius:var(--post-device-border-radius-focus);color:var(--post-scheme-color-interactive-primary-enabled-fg1);text-decoration:var(--post-core-text-decoration-none)}.breadcrumb-item :is(button,a):not(:disabled):hover{text-decoration:none}.breadcrumb-item :is(button,a):disabled{border-style:var(--post-core-border-style-dash);cursor:unset}.breadcrumb-item :is(button,a){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.breadcrumb-item :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.breadcrumb-item :is(button,a):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a){border-width:1px !important;transition:none}.breadcrumb-item :is(button,a):is(button){background-color:ButtonFace !important;border-color:ButtonBorder !important}}.breadcrumb-item :is(button,a):hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);text-decoration:var(--post-core-text-decoration-underline)}.breadcrumb-item::before{mask-image:var(--post-icon-chevronright);background-color:currentColor;flex:0 0 auto;content:"";display:block;height:var(--post-device-sizing-interactive-icon-size4);width:var(--post-device-sizing-interactive-icon-size4);margin-block:calc(var(--post-device-spacing-padding-35) - 1*var(--post-device-spacing-padding-block-6));margin-inline:var(--post-core-dimension-4)}:root,:host{--post-icon-chevronright:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2wgaWQ9ImktY2hldnJvbnJpZ2h0Ij48c3ltYm9sIGlkPSJzMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTUuMzggMTRjLS4xOSAwLS4zOC0uMDctLjUzLS4yMmEuNzU0Ljc1NCAwIDAgMSAwLTEuMDZMOS41NyA4IDQuODUgMy4yOGMtLjI5LS4yOS0uMjktLjc3IDAtMS4wNnMuNzctLjI5IDEuMDYgMEwxMS42OSA4bC01Ljc4IDUuNzhjLS4xNS4xNS0uMzQuMjItLjUzLjIyIi8+PC9zeW1ib2w+PHN5bWJvbCBpZD0iczI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik04LjA3IDIwLjcyYy0uMjIgMC0uNDUtLjA4LS42Mi0uMjZhLjg4Ljg4IDAgMCAxIDAtMS4yNGw3LjI2LTcuMjZMNy40NSA0LjdhLjg4Ljg4IDAgMCAxIDAtMS4yNGMuMzQtLjM0LjktLjM0IDEuMjQgMGw4LjUgOC41LTguNDkgOC40OWMtLjE3LjE3LS40LjI2LS42Mi4yNloiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTTEwLjc2IDI3LjVjLS4yNiAwLS41MS0uMS0uNzEtLjI5YS45OTYuOTk2IDAgMCAxIDAtMS40MWw5Ljc5LTkuNzktOS43OS05LjgxYS45OTYuOTk2IDAgMSAxIDEuNDEtMS40MUwyMi42NyAxNiAxMS40NiAyNy4yMWMtLjIuMi0uNDUuMjktLjcxLjI5WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMTMuNSAzNC4yMmExLjEyMyAxLjEyMyAwIDAgMS0uOC0xLjkybDEyLjMzLTEyLjMzTDEyLjcgNy42M2MtLjQ0LS40NC0uNDQtMS4xNSAwLTEuNTlzMS4xNS0uNDQgMS41OSAwbDEzLjkzIDEzLjkzTDE0LjMgMzMuODljLS4yMi4yMi0uNTEuMzMtLjguMzMiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCI+PHBhdGggZD0iTTE2LjE0IDQxYy0uMzIgMC0uNjQtLjEyLS44OC0uMzdhMS4yNSAxLjI1IDAgMCAxIDAtMS43N2wxNC44Ny0xNC44N0wxNS4yNSA5LjExYy0uNDktLjQ5LS40OS0xLjI4IDAtMS43N3MxLjI4LS40OSAxLjc3IDBsMTYuNjQgMTYuNjQtMTYuNjMgMTYuNjNjLS4yNC4yNC0uNTYuMzctLjg4LjM3WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM2NCIgdmlld0JveD0iMCAwIDY0IDY0Ij48cGF0aCBkPSJNMjEuNTEgNTQuNGExLjM3NiAxLjM3NiAwIDAgMS0uOTctMi4zNWwyMC4wMy0yMC4wMy0yMC4wNC0yMC4wM2MtLjU0LS41NC0uNTQtMS40MSAwLTEuOTVzMS40MS0uNTQgMS45NSAwbDIxLjk4IDIxLjk5TDIyLjQ5IDU0Yy0uMjcuMjctLjYyLjQtLjk3LjRaIi8+PC9zeW1ib2w+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczE2LCBub25lKSIgaHJlZj0iI3MxNiIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXMyNCwgbm9uZSkiIGhyZWY9IiNzMjQiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zMzIsIG5vbmUpIiBocmVmPSIjczMyIi8+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczQwLCBub25lKSIgaHJlZj0iI3M0MCIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXM0OCwgbm9uZSkiIGhyZWY9IiNzNDgiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zNjQsIG5vbmUpIiBocmVmPSIjczY0Ii8+PC9zeW1ib2w+PC9kZWZzPjxzdHlsZT5AbWVkaWEgKG1heC13aWR0aDogMjMuOThweCkge2d7LS1zMTY6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogMjRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZXZyb25yaWdodCIvPjwvZz48L3N2Zz4=")}post-menu-item>slot[name=home]>a{position:relative;display:flex;align-items:center;padding:8px 12px 8px 16px;gap:12px;font-size:.875rem;color:#050400;border-radius:0;text-decoration:none;min-width:0;white-space:normal;overflow:visible;text-overflow:unset;justify-content:start;overflow-wrap:anywhere;hyphens:auto;line-break:strict}@media screen and (min-width: 780px){post-menu-item>slot[name=home]>a{font-size:1rem;padding-block:12px;gap:16px}}@media screen and (min-width: 1024px){post-menu-item>slot[name=home]>a{font-size:1.25rem;padding-block:13px}}post-menu-item>slot[name=home]>a:focus-visible{outline-offset:2px !important;border-radius:4px}post-menu-item>slot[name=home]>a:hover{background-color:#504f4b;color:#fff}.home{flex:none}.home::before{content:unset}.home.icon{padding-block:var(--post-device-spacing-padding-47)}.home.icon post-icon{width:var(--post-device-sizing-interactive-icon-size2);height:var(--post-device-sizing-interactive-icon-size2)}.menu{margin-inline-end:calc(-1*var(--post-device-spacing-gap-inline-4))}.menu.empty{display:none}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}';export{m as post_breadcrumbs}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e,H as o,a as s}from"./p-Bs0zeM5Q.js";import{P as i}from"./p-DRiVosES.js";import"./p-I1j7a0bW.js";import{g as r}from"./p-DYYpZAAV.js";import{v as a}from"./p-BBz9PVf0.js";import{O as p}from"./p-DeUk3rcv.js";import{R as c}from"./p-Bl-_v3aT.js";import{T as n}from"./p-D1s6tESz.js";import"./p-08F-DB-d.js";import"./p-BwhzbRIR.js";var d=function(t,e,o,s){var i,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,s);else for(var p=t.length-1;p>=0;p--)(i=t[p])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a};const l=class{constructor(e){t(this,e),this.placement="top",this.arrow=!0,this.breakpointChange=()=>{requestAnimationFrame((()=>this.updateEdgeGap()))}}async show(t){await this.popoverRef.show(t),this.focusFirstEl(),this.updateEdgeGap()}async hide(){this.popoverRef.hide()}async toggle(t,e){await this.popoverRef.toggle(t,e)&&(this.updateEdgeGap(),this.focusFirstEl())}connectedCallback(){globalThis.addEventListener("postBreakpoint:device",this.breakpointChange)}disconnectedCallback(){globalThis.removeEventListener("postBreakpoint:device",this.breakpointChange)}updateEdgeGap(){const t=this.host.shadowRoot?.querySelector("post-closebutton");if(!t)return;const e=t.getBoundingClientRect().width;e&&!Number.isNaN(e)&&(this.edgeGap=e/2)}focusFirstEl(){const t=r(this.host)[0];t&&t.focus()}render(){return e(o,{key:"0e57981004d99d528a4652598739afbf1208376c","data-version":a},e("post-popovercontainer",{key:"380838970ed2c62f9e21e95da6957e9ff36db31a",arrow:this.arrow,placement:this.placement,edgeGap:this.edgeGap,autoHide:!0,ref:t=>{t&&(this.popoverRef=t)}},e("div",{key:"77465a8e943f61492869a3e05cf03f90b9fd553c",class:"popover-container"},e("div",{key:"0ab4e621ecc58a9775c4a9b8dfba3d26eb577878",class:"popover-content"},e("slot",{key:"1b2d37d50ef23edad118abc5949686e59e15b931"})),e("post-closebutton",{key:"8c2138b22f49681d37d2f38f6fb6331c730849f3"},this.textClose))))}get host(){return s(this)}};d([p(i)],l.prototype,"placement",void 0),d([c(),n("string")],l.prototype,"textClose",void 0),l.style="*{box-sizing:border-box}:host{display:contents}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.popover-container{color:var(--post-current-fg);background-color:var(--post-current-bg);display:flex;align-items:self-start;padding:8px;min-width:160px;max-width:var(--post-popover-max-width, 280px)}.popover-content{padding:8px;flex-grow:1}post-closebutton{color-scheme:light}";export{l as post_popover}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const o="10.7.0";export{o as v}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const t=()=>{},e=':where(post-accordion,post-accordion-item,post-autocomplete,post-avatar,post-back-to-top,post-banner,post-breadcrumb-item,post-breadcrumbs,post-closebutton,post-collapsible,post-collapsible-trigger,post-date-picker,post-footer,post-header,post-icon,post-language-menu,post-language-menu-item,post-linkarea,post-listbox,post-listbox-option,post-logo,post-mainnavigation,post-megadropdown,post-megadropdown-trigger,post-menu,post-menu-item,post-menu-trigger,post-number-input,post-pagination,post-popover,post-popover-trigger,post-popovercontainer,post-progressbar,post-rating,post-side-navigation,post-side-navigation-trigger,post-stepper,post-stepper-item,post-tab-item,post-tab-panel,post-tabs,post-togglebutton,post-tooltip,post-tooltip-trigger):not(:defined):not(.hydrated,[data-hydrated]){visibility:hidden}@media (scripting: none){:where(post-accordion,post-accordion-item,post-autocomplete,post-avatar,post-back-to-top,post-banner,post-breadcrumb-item,post-breadcrumbs,post-closebutton,post-collapsible,post-collapsible-trigger,post-date-picker,post-footer,post-header,post-icon,post-language-menu,post-language-menu-item,post-linkarea,post-listbox,post-listbox-option,post-logo,post-mainnavigation,post-megadropdown,post-megadropdown-trigger,post-menu,post-menu-item,post-menu-trigger,post-number-input,post-pagination,post-popover,post-popover-trigger,post-popovercontainer,post-progressbar,post-rating,post-side-navigation,post-side-navigation-trigger,post-stepper,post-stepper-item,post-tab-item,post-tab-panel,post-tabs,post-togglebutton,post-tooltip,post-tooltip-trigger):not(:defined):not(.hydrated,[data-hydrated]){visibility:visible}}post-accordion:not([multiple]):not(:has([collapsed]))>post-accordion-item~post-accordion-item{--post-collapsible-initial-height:0;--post-collapsible-initial-overflow:hidden;--post-accordion-icon-initial-transform:rotate(-180deg)}post-breadcrumb-item:not([variant=menuitem])>a{display:inline-flex;position:relative;align-items:center;justify-content:center;max-width:100%;overflow:hidden;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);box-shadow:none;font-family:inherit;font-size:var(--post-device-font-size-6);font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;font:inherit;padding:unset;border:unset;border-radius:var(--post-device-border-radius-focus);color:var(--post-scheme-color-interactive-primary-enabled-fg1);text-decoration:var(--post-core-text-decoration-none)}post-breadcrumb-item:not([variant=menuitem])>a:not(:disabled):hover{text-decoration:none}post-breadcrumb-item:not([variant=menuitem])>a:disabled{border-style:var(--post-core-border-style-dash);cursor:unset}post-breadcrumb-item:not([variant=menuitem])>a{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}post-breadcrumb-item:not([variant=menuitem])>a:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-breadcrumb-item:not([variant=menuitem])>a:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){post-breadcrumb-item:not([variant=menuitem])>a:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-breadcrumb-item:not([variant=menuitem])>a:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-breadcrumb-item:not([variant=menuitem])>a{border-width:1px !important;transition:none}post-breadcrumb-item:not([variant=menuitem])>a:is(button){background-color:ButtonFace !important;border-color:ButtonBorder !important}}post-breadcrumb-item:not([variant=menuitem])>a:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);text-decoration:var(--post-core-text-decoration-underline)}post-breadcrumb-item[selected]:not([selected=false])>a{color:var(--post-scheme-color-interactive-primary-selected-fg1);font-weight:var(--post-device-font-weight-bold);text-decoration:var(--post-core-text-decoration-none)}post-breadcrumb-item:not([variant=menuitem])[standalone]:not([standalone=false])>a{white-space:normal;overflow:visible;text-overflow:unset;overflow-wrap:anywhere;hyphens:auto;line-break:strict}post-breadcrumb-item[variant=menuitem]:not([selected]:not([selected=false]))>a{position:relative;display:flex;align-items:center;padding:8px 12px 8px 16px;gap:12px;font-size:.875rem;color:#050400;border-radius:0;text-decoration:none}@media screen and (min-width: 780px){post-breadcrumb-item[variant=menuitem]:not([selected]:not([selected=false]))>a{font-size:1rem;padding-block:12px;gap:16px}}@media screen and (min-width: 1024px){post-breadcrumb-item[variant=menuitem]:not([selected]:not([selected=false]))>a{font-size:1.25rem;padding-block:13px}}post-breadcrumb-item[variant=menuitem]:not([selected]:not([selected=false]))>a:focus-visible{outline-offset:2px !important;border-radius:4px}post-breadcrumb-item[variant=menuitem]:not([selected]:not([selected=false]))>a:hover{background-color:#504f4b;color:#fff}post-breadcrumbs>a[slot=home]{display:inline-flex;position:relative;align-items:center;justify-content:center;max-width:100%;overflow:hidden;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);box-shadow:none;font-family:inherit;font-size:var(--post-device-font-size-6);font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;font:inherit;padding:unset;border:unset;border-radius:var(--post-device-border-radius-focus);color:var(--post-scheme-color-interactive-primary-enabled-fg1);text-decoration:var(--post-core-text-decoration-none)}post-breadcrumbs>a[slot=home]:not(:disabled):hover{text-decoration:none}post-breadcrumbs>a[slot=home]:disabled{border-style:var(--post-core-border-style-dash);cursor:unset}post-breadcrumbs>a[slot=home]{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}post-breadcrumbs>a[slot=home]:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-breadcrumbs>a[slot=home]:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){post-breadcrumbs>a[slot=home]:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-breadcrumbs>a[slot=home]:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-breadcrumbs>a[slot=home]{border-width:1px !important;transition:none}post-breadcrumbs>a[slot=home]:is(button){background-color:ButtonFace !important;border-color:ButtonBorder !important}}post-breadcrumbs>a[slot=home]:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);text-decoration:var(--post-core-text-decoration-underline)}post-breadcrumbs.home-collapsed>a[slot=home]{position:relative;display:flex;align-items:center;padding:8px 12px 8px 16px;gap:12px;font-size:.875rem;color:#050400;border-radius:0;text-decoration:none;justify-content:flex-start;min-width:0;width:100%;white-space:normal;overflow:visible;text-overflow:unset;overflow-wrap:anywhere;hyphens:auto;line-break:strict}@media screen and (min-width: 780px){post-breadcrumbs.home-collapsed>a[slot=home]{font-size:1rem;padding-block:12px;gap:16px}}@media screen and (min-width: 1024px){post-breadcrumbs.home-collapsed>a[slot=home]{font-size:1.25rem;padding-block:13px}}post-breadcrumbs.home-collapsed>a[slot=home]:focus-visible{outline-offset:2px !important;border-radius:4px}post-breadcrumbs.home-collapsed>a[slot=home]:hover{background-color:#504f4b;color:#fff}post-breadcrumbs>a[slot=home] post-icon{width:var(--post-device-sizing-interactive-icon-size2);height:var(--post-device-sizing-interactive-icon-size2)}.form-label:has(+post-number-input){display:block}.form-label:has(+post-number-input.number-input-sm){padding-inline:var(--post-device-spacing-padding-2);padding-block:var(--post-device-spacing-padding-30);font-weight:var(--post-device-font-weight-bold);font-size:var(--post-device-font-size-7)}.form-label:has(+post-number-input.disabled){color:var(--post-scheme-color-interactive-input-disabled-fg)}post-number-input.form-floating>input.form-control{padding:var(--post-device-spacing-padding-block-29) var(--post-device-spacing-padding-inline-1) var(--post-device-spacing-padding-block-3)}post-number-input.form-floating>input.form-control:focus~label,post-number-input.form-floating>input.form-control:not(:placeholder-shown)~label{padding-block-start:var(--post-device-spacing-padding-block-3);padding-inline:var(--post-device-spacing-padding-inline-1) var(--post-device-spacing-padding-15);font-size:var(--post-device-font-size-10)}post-number-input.form-floating::after{width:var(--post-device-sizing-notification-1);height:var(--post-device-sizing-notification-1)}post-number-input.form-floating:has(>input.form-control.is-valid:not(:disabled))::after,post-number-input.form-floating:has(>input.form-control:-webkit-autofill.is-valid)::after,post-number-input.form-floating:has(>input.form-control.is-invalid:not(:disabled))::after,post-number-input.form-floating:has(>input.form-control:-webkit-autofill.is-invalid)::after{top:calc(var(--post-device-sizing-interactive-button-height-6) / 2);right:calc(\n var(--post-device-spacing-padding-inline-1) +\n (var(--post-device-spacing-padding-23)* 2) +\n var(--post-device-sizing-interactive-icon-size6) +\n (var(--post-device-border-width-default) * 2)\n )}post-number-input input[type=number]{appearance:textfield}post-number-input input[type=number]::-webkit-inner-spin-button,post-number-input input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}@media screen and (min-width: 1024px){.main-container{margin-inline-start:var(--post-core-dimension-296)}}post-side-navigation{--post-side-nav-height:100vh;--post-side-nav-heading-p-block-start:var(--post-device-spacing-padding-53);--post-side-nav-heading-p-block-end:var(--post-device-spacing-padding-32);--post-side-nav-heading-p-inline:var(--post-device-spacing-padding-5);--post-side-nav-heading-font-size:var(--post-device-font-size-7);--post-side-nav-btn-icon-size:var(--post-device-sizing-interactive-icon-size8);--post-side-nav-btn-p-inline:var(--post-device-spacing-padding-5);--post-side-nav-btn-p-block-start:var(--post-device-spacing-padding-49);--post-side-nav-btn-p-block-end:var(--post-device-spacing-padding-50);--post-side-nav-item-gap:var(--post-device-spacing-gap-11);--post-side-nav-item-font-size:var(--post-device-font-size-6);--post-side-nav-item-divider-p-block-start:var(--post-device-spacing-padding-51);--post-side-nav-item-divider-p-block-end:var(--post-device-spacing-padding-52);--post-side-nav-item-p-block-start:var(--post-device-spacing-padding-51);--post-side-nav-item-p-block-end:var(--post-device-spacing-padding-52);--post-side-nav-item-p-inline-end:var(--post-device-spacing-padding-5);--post-side-nav-icon-size:var(--post-device-sizing-interactive-icon-size8);--post-side-nav-icon-p-block-start:var(--post-device-spacing-padding-54)}post-side-navigation ul{--post-side-nav-el-iconic-padding-inline-start:var(--post-device-spacing-padding-5);--post-side-nav-el-non-iconic-padding-inline-start:var(--post-device-spacing-padding-5)}post-side-navigation ul ul{--post-side-nav-el-iconic-padding-inline-start:var(--post-device-spacing-padding-55);--post-side-nav-el-non-iconic-padding-inline-start:var(--post-device-spacing-padding-6)}post-side-navigation ul ul ul{--post-side-nav-el-iconic-padding-inline-start:var(--post-device-spacing-padding-56);--post-side-nav-el-non-iconic-padding-inline-start:var(--post-core-dimension-48)}post-side-navigation ul ul ul ul{--post-side-nav-el-iconic-padding-inline-start:var(--post-device-spacing-padding-57);--post-side-nav-el-non-iconic-padding-inline-start:var(--post-core-dimension-64)}@media screen and (min-width: 1024px){post-side-navigation{position:fixed;inset-block-start:0;inset-inline-start:0;padding-block-start:var(--post-header-height);width:var(--post-core-dimension-296);height:100vh;--post-side-nav-height:100%}}post-side-navigation[size=small]{--post-side-nav-heading-p-block-start:var(--post-core-dimension-15);--post-side-nav-heading-p-block-end:var(--post-device-spacing-padding-32);--post-side-nav-heading-p-inline:var(--post-device-spacing-padding-inline-4);--post-side-nav-heading-font-size:var(--post-device-font-size-9);--post-side-nav-btn-icon-size:var(--post-device-sizing-interactive-icon-size4);--post-side-nav-btn-p-inline:var(--post-device-spacing-padding-inline-4);--post-side-nav-btn-p-block-start:var(--post-device-spacing-padding-inline-4);--post-side-nav-btn-p-block-end:var(--post-device-spacing-padding-42);--post-side-nav-item-gap:var(--post-device-spacing-gap-8);--post-side-nav-item-font-size:var(--post-device-font-size-7);--post-side-nav-item-divider-p-block-start:var(--post-device-spacing-padding-58);--post-side-nav-item-divider-p-block-end:var(--post-device-spacing-padding-59);--post-side-nav-item-p-block-start:var(--post-device-spacing-padding-58);--post-side-nav-item-p-block-end:var(--post-device-spacing-padding-59);--post-side-nav-item-p-inline-end:var(--post-device-spacing-padding-inline-4);--post-side-nav-icon-size:var(--post-device-sizing-interactive-icon-size4);--post-side-nav-icon-p-block-start:var(--post-device-spacing-padding-41)}post-side-navigation[size=small] ul{--post-side-nav-el-iconic-padding-inline-start:var(--post-device-spacing-padding-inline-4);--post-side-nav-el-non-iconic-padding-inline-start:var(--post-device-spacing-padding-inline-4)}post-side-navigation[size=small] ul ul{--post-side-nav-el-iconic-padding-inline-start:var(--post-core-dimension-48);--post-side-nav-el-non-iconic-padding-inline-start:var(--post-device-spacing-padding-31)}post-side-navigation[size=small] ul ul ul{--post-side-nav-el-iconic-padding-inline-start:var(--post-core-dimension-60);--post-side-nav-el-non-iconic-padding-inline-start:var(--post-core-dimension-36)}post-side-navigation[size=small] ul ul ul ul{--post-side-nav-el-iconic-padding-inline-start:var(--post-core-dimension-72);--post-side-nav-el-non-iconic-padding-inline-start:var(--post-core-dimension-48)}post-side-navigation nav{width:100%;height:var(--post-side-nav-height);padding-block-start:var(--post-device-spacing-padding-48);padding-block-end:max(var(--post-device-spacing-padding-5), env(safe-area-inset-bottom, 0px));overflow-y:auto}post-side-navigation nav ul{list-style:none;margin:0;padding-inline-start:0}post-side-navigation .post-side-navigation-heading{margin:0;padding:var(--post-side-nav-heading-p-block-start) var(--post-side-nav-heading-p-inline) var(--post-side-nav-heading-p-block-end);font-size:var(--post-side-nav-heading-font-size);font-weight:var(--post-device-font-weight-bold);line-height:var(--post-core-line-height-150);color:var(--post-scheme-color-interactive-primary-enabled-fg2);border-block-end:var(--post-device-border-width-alternative1) solid var(--post-scheme-color-interactive-primary-enabled-stroke)}post-side-navigation>ul>li>.post-side-navigation-item{font-weight:var(--post-device-font-weight-bold)}post-side-navigation .post-side-navigation-item[aria-current=page],post-side-navigation .post-side-navigation-item a[aria-current=page]{background-color:var(--post-scheme-color-interactive-primary-selected-bg4);color:var(--post-scheme-color-interactive-primary-selected-fg3)}post-side-navigation ul ul .post-side-navigation-item:not(:has(a):has(button)),post-side-navigation ul ul .post-side-navigation-item:has(a):has(button) a{padding-inline-start:var(--post-side-nav-el-non-iconic-padding-inline-start)}post-side-navigation ul>li:has(post-icon:not([name=chevrondown])) ul .post-side-navigation-item:not(:has(a):has(button)),post-side-navigation ul>li:has(post-icon:not([name=chevrondown])) ul .post-side-navigation-item:has(a):has(button) a{padding-inline-start:var(--post-side-nav-el-iconic-padding-inline-start)}post-side-navigation :where(nav)>ul:has(>li>:where(a,span,post-collapsible-trigger>button,div>a)>post-icon:first-child)>li>:where(a,span):not(:has(>post-icon:first-child))::before,post-side-navigation :where(nav)>ul:has(>li>:where(a,span,post-collapsible-trigger>button,div>a)>post-icon:first-child)>li>div:not(:has(>a>post-icon:first-child))::before{content:"";flex:none;inline-size:var(--post-side-nav-icon-size)}post-side-navigation :where(nav)>ul:has(>li>:where(a,span,post-collapsible-trigger>button,div>a)>post-icon:first-child)>li>post-collapsible-trigger>button:not(:has(>post-icon:first-child))::before{content:"";flex:none;inline-size:var(--post-side-nav-icon-size)}.post-side-navigation-item{display:flex;padding-block:var(--post-side-nav-item-p-block-start) var(--post-side-nav-item-p-block-end);gap:var(--post-side-nav-item-gap);width:100%;min-width:0;margin:0;padding-inline-start:var(--post-side-nav-el-non-iconic-padding-inline-start);padding-inline-end:var(--post-side-nav-item-p-inline-end);line-height:var(--post-core-line-height-150);font-size:var(--post-side-nav-item-font-size);box-sizing:border-box;border:0;border-block-end:var(--post-device-border-width-alternative1) solid var(--post-scheme-color-interactive-primary-enabled-stroke);border-radius:0;background-color:rgba(0,0,0,0);color:var(--post-scheme-color-interactive-primary-enabled-fg1);text-align:start;text-decoration:none;appearance:none;overflow-wrap:anywhere;hyphens:auto;line-break:strict}.post-side-navigation-item:has(a):has(button){gap:0;align-items:stretch;padding:0}.post-side-navigation-item:has(a):has(button) a{flex:1 1 auto;text-decoration:none;display:flex;padding-block:var(--post-side-nav-item-p-block-start) var(--post-side-nav-item-p-block-end);line-height:var(--post-core-line-height-150);gap:var(--post-side-nav-item-gap);border-radius:0;padding-inline-end:var(--post-side-nav-item-p-inline-end)}.post-side-navigation-item:has(a):has(button) button{padding:var(--post-side-nav-btn-p-block-start) var(--post-side-nav-btn-p-inline) var(--post-side-nav-btn-p-block-end);display:flex;border:0;background:rgba(0,0,0,0);cursor:pointer;position:relative;margin-left:var(--post-device-border-width-alternative1);color:var(--post-scheme-color-interactive-primary-enabled-fg1)}.post-side-navigation-item:has(a):has(button) button post-icon{width:var(--post-side-nav-btn-icon-size);height:var(--post-side-nav-btn-icon-size);transform-origin:unset !important;margin-block:0 !important}.post-side-navigation-item:has(a):has(button) button::before{content:"";position:absolute;top:var(--post-side-nav-item-divider-p-block-start);height:calc(100% - var(--post-side-nav-item-divider-p-block-start) - var(--post-side-nav-item-divider-p-block-end));width:var(--post-device-border-width-alternative1);background:var(--post-scheme-color-interactive-primary-enabled-stroke4);left:calc(var(--post-device-border-width-alternative1) * -1)}.post-side-navigation-item:has(a):has(button) button:hover{background-color:var(--post-scheme-color-interactive-primary-hover-bg2);color:var(--post-scheme-color-interactive-primary-hover-fg3)}.post-side-navigation-item:where(a,button),.post-side-navigation-item:has(a):has(button) a,.post-side-navigation-item:has(a):has(button) button{cursor:pointer;position:relative;color:var(--post-scheme-color-interactive-primary-enabled-fg1);transition:background-color 250ms,color 250ms}.post-side-navigation-item:where(a,button)::after,.post-side-navigation-item:has(a):has(button) a::after,.post-side-navigation-item:has(a):has(button) button::after{content:"";position:absolute;pointer-events:none;border:var(--post-device-border-width-focus) solid rgba(0,0,0,0);border-radius:var(--post-device-border-radius-focus);width:calc(100% - var(--post-core-dimension-3)*2);height:calc(100% - var(--post-core-dimension-3)*2);top:var(--post-core-dimension-3);left:var(--post-core-dimension-3)}.post-side-navigation-item:where(a,button):hover,.post-side-navigation-item:has(a):has(button) a:hover{background-color:var(--post-scheme-color-interactive-primary-hover-bg2);color:var(--post-scheme-color-interactive-primary-hover-fg3)}.post-side-navigation-item:where(a,button)::after{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.post-side-navigation-item:where(a,button):is(:focus-visible,:has(:focus-visible),.pretend-focus)::after{outline-style:var(--post-core-border-style-solid) !important;outline:none !important;border-color:var(--post-scheme-color-interactive-primary-enabled-stroke)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.post-side-navigation-item:where(a,button):is(:focus-visible,:has(:focus-visible),.pretend-focus)::after{outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.post-side-navigation-item:where(a,button):is(:focus-visible,:focus-within,.pretend-focus)::after{outline-style:var(--post-core-border-style-solid) !important;outline:none !important;border-color:var(--post-scheme-color-interactive-primary-enabled-stroke)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.post-side-navigation-item:where(a,button):is(:focus-visible,:focus-within,.pretend-focus)::after{outline-color:Highlight !important}}}.post-side-navigation-item:where(a,button)[aria-current=page]::after{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.post-side-navigation-item:where(a,button):is(:focus-visible,:has(:focus-visible),.pretend-focus)[aria-current=page]::after{outline-style:var(--post-core-border-style-solid) !important;border-color:var(--post-scheme-color-interactive-focus-stroke-inverted)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.post-side-navigation-item:where(a,button):is(:focus-visible,:has(:focus-visible),.pretend-focus)[aria-current=page]::after{outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.post-side-navigation-item:where(a,button):is(:focus-visible,:focus-within,.pretend-focus)[aria-current=page]::after{outline-style:var(--post-core-border-style-solid) !important;border-color:var(--post-scheme-color-interactive-focus-stroke-inverted)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.post-side-navigation-item:where(a,button):is(:focus-visible,:focus-within,.pretend-focus)[aria-current=page]::after{outline-color:Highlight !important}}}.post-side-navigation-item:where(a,button){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.post-side-navigation-item:where(a,button):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;outline:none !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.post-side-navigation-item:where(a,button):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.post-side-navigation-item:where(a,button):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;outline:none !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.post-side-navigation-item:where(a,button):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.post-side-navigation-item:has(a):has(button) a::after{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.post-side-navigation-item:has(a):has(button) a:is(:focus-visible,:has(:focus-visible),.pretend-focus)::after{outline-style:var(--post-core-border-style-solid) !important;outline:none !important;border-color:var(--post-scheme-color-interactive-primary-enabled-stroke)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.post-side-navigation-item:has(a):has(button) a:is(:focus-visible,:has(:focus-visible),.pretend-focus)::after{outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.post-side-navigation-item:has(a):has(button) a:is(:focus-visible,:focus-within,.pretend-focus)::after{outline-style:var(--post-core-border-style-solid) !important;outline:none !important;border-color:var(--post-scheme-color-interactive-primary-enabled-stroke)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.post-side-navigation-item:has(a):has(button) a:is(:focus-visible,:focus-within,.pretend-focus)::after{outline-color:Highlight !important}}}.post-side-navigation-item:has(a):has(button) a[aria-current=page]::after{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.post-side-navigation-item:has(a):has(button) a:is(:focus-visible,:has(:focus-visible),.pretend-focus)[aria-current=page]::after{outline-style:var(--post-core-border-style-solid) !important;border-color:var(--post-scheme-color-interactive-focus-stroke-inverted)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.post-side-navigation-item:has(a):has(button) a:is(:focus-visible,:has(:focus-visible),.pretend-focus)[aria-current=page]::after{outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.post-side-navigation-item:has(a):has(button) a:is(:focus-visible,:focus-within,.pretend-focus)[aria-current=page]::after{outline-style:var(--post-core-border-style-solid) !important;border-color:var(--post-scheme-color-interactive-focus-stroke-inverted)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.post-side-navigation-item:has(a):has(button) a:is(:focus-visible,:focus-within,.pretend-focus)[aria-current=page]::after{outline-color:Highlight !important}}}.post-side-navigation-item:has(a):has(button) a{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.post-side-navigation-item:has(a):has(button) a:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;outline:none !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.post-side-navigation-item:has(a):has(button) a:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.post-side-navigation-item:has(a):has(button) a:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;outline:none !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.post-side-navigation-item:has(a):has(button) a:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.post-side-navigation-item:has(a):has(button) button::after{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.post-side-navigation-item:has(a):has(button) button:is(:focus-visible,:has(:focus-visible),.pretend-focus)::after{outline-style:var(--post-core-border-style-solid) !important;outline:none !important;border-color:var(--post-scheme-color-interactive-primary-enabled-stroke)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.post-side-navigation-item:has(a):has(button) button:is(:focus-visible,:has(:focus-visible),.pretend-focus)::after{outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.post-side-navigation-item:has(a):has(button) button:is(:focus-visible,:focus-within,.pretend-focus)::after{outline-style:var(--post-core-border-style-solid) !important;outline:none !important;border-color:var(--post-scheme-color-interactive-primary-enabled-stroke)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.post-side-navigation-item:has(a):has(button) button:is(:focus-visible,:focus-within,.pretend-focus)::after{outline-color:Highlight !important}}}.post-side-navigation-item:has(a):has(button) button[aria-current=page]::after{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.post-side-navigation-item:has(a):has(button) button:is(:focus-visible,:has(:focus-visible),.pretend-focus)[aria-current=page]::after{outline-style:var(--post-core-border-style-solid) !important;border-color:var(--post-scheme-color-interactive-focus-stroke-inverted)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.post-side-navigation-item:has(a):has(button) button:is(:focus-visible,:has(:focus-visible),.pretend-focus)[aria-current=page]::after{outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.post-side-navigation-item:has(a):has(button) button:is(:focus-visible,:focus-within,.pretend-focus)[aria-current=page]::after{outline-style:var(--post-core-border-style-solid) !important;border-color:var(--post-scheme-color-interactive-focus-stroke-inverted)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.post-side-navigation-item:has(a):has(button) button:is(:focus-visible,:focus-within,.pretend-focus)[aria-current=page]::after{outline-color:Highlight !important}}}.post-side-navigation-item:has(a):has(button) button{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.post-side-navigation-item:has(a):has(button) button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;outline:none !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.post-side-navigation-item:has(a):has(button) button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.post-side-navigation-item:has(a):has(button) button:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;outline:none !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.post-side-navigation-item:has(a):has(button) button:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.post-side-navigation-item post-icon{flex:none;width:var(--post-side-nav-icon-size);height:var(--post-side-nav-icon-size);color:inherit;margin-block-start:var(--post-side-nav-icon-p-block-start)}.post-side-navigation-item post-icon[name=chevrondown]{transform-origin:50% calc(50% + var(--post-side-nav-icon-p-block-start)/2);margin-inline-start:auto;margin-block-start:var(--post-side-nav-icon-p-block-start);transform:var(--post-side-navigation-chevron-initial-transform, none)}.post-side-navigation-item[aria-expanded=true] post-icon[name=chevrondown],.post-side-navigation-item [aria-expanded=true] post-icon[name=chevrondown]{transform:rotate(180deg);margin-block-start:0;margin-block-end:var(--post-side-nav-icon-p-block-start)}.post-side-navigation-item[aria-expanded=false] post-icon[name=chevrondown],.post-side-navigation-item [aria-expanded=false] post-icon[name=chevrondown]{transform:none}post-collapsible-trigger[data-hydrated] .post-side-navigation-item post-icon[name=chevrondown]{transition:transform .2s ease}post-collapsible-trigger:not(:has(>post-collapsible[collapsed]))>.post-side-navigation-item post-icon[name=chevrondown]{--post-side-navigation-chevron-initial-transform:rotate(180deg)}nav>ul>li>.post-side-navigation-item,nav>ul>li>post-collapsible-trigger>.post-side-navigation-item{font-weight:var(--post-device-font-weight-bold)}nav>ul>li .post-side-navigation-item:has(+ul),nav>ul>li li:has(+li) .post-side-navigation-item,nav>ul>li .post-side-navigation-item[aria-expanded=true]{border-color:var(--post-scheme-color-interactive-primary-enabled-stroke4)}post-listbox [slot=blank-slate]{display:none;padding:.75rem;color:#666}post-listbox:not(:has(post-listbox-option:not([hidden]))) [slot=blank-slate]{display:block}';var o=(t=>(t.Undefined="undefined",t.Null="null",t.String="string",t.Number="number",t.SpecialNumber="number",t.Boolean="boolean",t.BigInt="bigint",t))(o||{}),i=(t=>(t.Array="array",t.Date="date",t.Map="map",t.Object="object",t.RegularExpression="regexp",t.Set="set",t.Channel="channel",t.Symbol="symbol",t))(i||{}),n="type",s="value",a="serialized:";function r(t,e,o){const i="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;t&&t!==i;){const i=Object.getOwnPropertyDescriptor(t,e);if(i&&(!o||i.get))return i;t=Object.getPrototypeOf(t)}}var c,l=(t,e)=>{var o;Object.entries(null!=(o=e.o.t)?o:{}).map((([o,[i]])=>{if(31&i||32&i){const i=t[o],n=r(Object.getPrototypeOf(t),o,!0)||Object.getOwnPropertyDescriptor(t,o);n&&Object.defineProperty(t,o,{get(){return n.get.call(this)},set(t){n.set.call(this,t)},configurable:!0,enumerable:!0}),e.i.has(o)?t[o]=e.i.get(o):void 0!==i&&(t[o]=i)}}))},d=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},p=(t,e)=>{e&&(t.__stencil__getHostRef=()=>e,e.l=t,512&e.o.p&&l(t,e))},v=(t,e)=>e in t,u=(t,e)=>(0,console.error)(t,e),f=new Map,h=new Map,m="s-id",b="sty-id",g="c-id",w="slot-fb{display:contents}slot-fb[hidden]{display:none}",y="http://www.w3.org/1999/xlink",k=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],$="undefined"!=typeof window?window:{},x={p:0,v:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,o,i)=>t.addEventListener(e,o,i),rel:(t,e,o,i)=>t.removeEventListener(e,o,i),ce:(t,e)=>new CustomEvent(t,e)},z=t=>Promise.resolve(t),j=(()=>{try{return!!$.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),S=!!j&&(()=>!!$.document&&Object.getOwnPropertyDescriptor($.document.adoptedStyleSheets,"length").writable)(),O=!1,H=[],N=[],C=(t,e)=>o=>{t.push(o),O||(O=!0,e&&4&x.p?L(M):x.raf(M))},E=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){u(t)}t.length=0},M=()=>{E(H),E(N),(O=H.length>0)&&x.raf(M)},L=t=>z().then(t),R=C(N,!0);function B(){var t;const o=this.attachShadow({mode:"open"});if(void 0===c&&(c=null!=(t=function(t){if(!j)return;const e=new CSSStyleSheet;return e.replaceSync(t),e}(e))?t:null),c)S?o.adoptedStyleSheets.push(c):o.adoptedStyleSheets=[...o.adoptedStyleSheets,c];else if(!j){const t=document.createElement("style");t.innerHTML=e,o.prepend(t)}}var I=t=>{const e=V(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&A(e,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!T(t,P(t),!1).length)}));let o=0;for(o=0;o<e.length;o++){const t=e[o];1===t.nodeType&&V(t,"childNodes").length&&I(t)}};function A(t,e,o){let i,n=0,s=[];for(;n<t.length;n++){if(i=t[n],i["s-sr"]&&(!e||i["s-hn"]===e)&&(void 0===o||P(i)===o)&&(s.push(i),void 0!==o))return s;s=[...s,...A(i.childNodes,e,o)]}return s}var T=(t,e,o=!0)=>{const i=[];(o&&t["s-sr"]||!t["s-sr"])&&i.push(t);let n=t;for(;n=n.nextSibling;)P(n)!==e||!o&&n["s-sr"]||i.push(n);return i},F=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,D=(t,e,o,i)=>{if(t["s-ol"]&&t["s-ol"].isConnected)return;const n=document.createTextNode("");if(n["s-nr"]=t,!e["s-cr"]||!e["s-cr"].parentNode)return;const s=e["s-cr"].parentNode,a=V(s,"appendChild");if(void 0!==i){n["s-oo"]=i;const t=V(s,"childNodes"),e=[n];t.forEach((t=>{t["s-nr"]&&e.push(t)})),e.sort(((t,e)=>!t["s-oo"]||t["s-oo"]<(e["s-oo"]||0)?-1:!e["s-oo"]||e["s-oo"]<t["s-oo"]?1:0)),e.forEach((t=>a.call(s,t)))}else a.call(s,n);t["s-ol"]=n,t["s-sh"]=e["s-hn"]},P=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function U(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const e=e=>function(t){const o=[],i=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const n=this["s-cr"].parentElement;return(n.__childNodes?n.childNodes:(t=>{const e=[];for(let o=0;o<t.length;o++){const i=t[o]["s-nr"]||void 0;i&&i.isConnected&&e.push(i)}return e})(n.childNodes)).forEach((t=>{i===P(t)&&o.push(t)})),e?o.filter((t=>1===t.nodeType)):o}.bind(t);t.assignedElements=e(!0),t.assignedNodes=e(!1)}function V(t,e){if("__"+e in t){const o=t["__"+e];return"function"!=typeof o?o:o.bind(t)}return"function"!=typeof t[e]?t[e]:t[e].bind(t)}function _(t){var e,o,i;return null!=(i=null==(o=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:o.getAttribute("content"))?i:void 0}var W=new WeakMap,q=(t,e,o)=>{let i=h.get(t);j&&o?(i=i||new CSSStyleSheet,"string"==typeof i?i=e:i.replaceSync(e)):i=e,h.set(t,i)},Y=(t,e)=>{var o,i,n;const s=G(e),a=h.get(s);if(!$.document)return s;if(t=11===t.nodeType?t:$.document,a)if("string"==typeof a){let n,r=W.get(t=t.head||t);r||W.set(t,r=new Set);const c=t.querySelector(`[${b}="${s}"]`);if(c)c.textContent=a;else if(!r.has(s)){n=$.document.createElement("style"),n.textContent=a;const c=null!=(o=x.u)?o:_($.document);if(null!=c&&n.setAttribute("nonce",c),!(1&e.p))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),o=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(n,(null==o?void 0:o.parentNode)===t?o:null)}else if("host"in t)if(j){const e=new(null!=(i=t.defaultView)?i:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(a),S?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.textContent=a+e.textContent:t.prepend(n)}else t.append(n);1&e.p&&t.insertBefore(n,null),4&e.p&&(n.textContent+=w),r&&r.add(s)}}else{let e=W.get(t);if(e||W.set(t,e=new Set),!e.has(s)){const o=null!=(n=t.defaultView)?n:t.ownerDocument.defaultView;let i;if(a.constructor===o.CSSStyleSheet)i=a;else{i=new o.CSSStyleSheet;for(let t=0;t<a.cssRules.length;t++)i.insertRule(a.cssRules[t].cssText,t)}if(S?t.adoptedStyleSheets.push(i):t.adoptedStyleSheets=[...t.adoptedStyleSheets,i],e.add(s),"host"in t){const e=t.querySelector(`[${b}="${s}"]`);e&&R((()=>e.remove()))}}}return s},G=t=>"sc-"+t.h,J=t=>t.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),Z=t=>"object"==(t=typeof t)||"function"===t,K=(t,e,...o)=>{let i=null,n=null,s=null,a=!1,r=!1;const c=[],l=e=>{for(let o=0;o<e.length;o++)i=e[o],Array.isArray(i)?l(i):null!=i&&"boolean"!=typeof i&&((a="function"!=typeof t&&!Z(i))&&(i+=""),a&&r?c[c.length-1].m+=i:c.push(a?Q(null,i):i),r=a)};if(l(o),e){e.key&&(n=e.key),e.name&&(s=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,c,tt);const d=Q(t,null);return d.k=e,c.length>0&&(d.$=c),d.j=n,d.S=s,d},Q=(t,e)=>({p:0,O:t,m:null!=e?e:null,H:null,$:null,k:null,j:null,S:null}),X={},tt={forEach:(t,e)=>t.map(et).forEach(e),map:(t,e)=>t.map(et).map(e).map(ot)},et=t=>({vattrs:t.k,vchildren:t.$,vkey:t.j,vname:t.S,vtag:t.O,vtext:t.m}),ot=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),K(t.vtag,e,...t.vchildren||[])}const e=Q(t.vtag,t.vtext);return e.k=t.vattrs,e.$=t.vchildren,e.j=t.vkey,e.S=t.vname,e},it=(t,e,o,i,n,s,a,r=[])=>{let c,l,d,p;if(1===s.nodeType){if(c=s.getAttribute(g),c&&(l=c.split("."),l[0]===a||"0"===l[0])){d=st({p:0,N:l[0],C:l[1],M:l[2],L:l[3],O:s.tagName.toLowerCase(),H:s,k:{class:s.className||""}}),e.push(d),s.removeAttribute(g),t.$||(t.$=[]);const n=d.H.getAttribute("s-sn");"string"==typeof n&&("slot-fb"===d.O&&at(n,l[2],d,s,t,e,o,i,r),d.H["s-sn"]=n,d.H.removeAttribute("s-sn")),void 0!==d.L&&(t.$[d.L]=d),t=d,i&&"0"===d.M&&(i[d.L]=d.H)}if(s.shadowRoot)for(p=s.shadowRoot.childNodes.length-1;p>=0;p--)it(t,e,o,i,n,s.shadowRoot.childNodes[p],a,r);const v=s.__childNodes||s.childNodes;for(p=v.length-1;p>=0;p--)it(t,e,o,i,n,v[p],a,r)}else if(8===s.nodeType)l=s.nodeValue.split("."),(l[1]===a||"0"===l[1])&&(c=l[0],d=st({N:l[1],C:l[2],M:l[3],L:l[4]||"0",H:s,k:null,$:null,j:null,S:null,O:null,m:null}),"t"===c?(d.H=dt(s,3),d.H&&3===d.H.nodeType&&(d.m=d.H.textContent,e.push(d),s.remove(),a===d.N&&(t.$||(t.$=[]),t.$[d.L]=d),i&&"0"===d.M&&(i[d.L]=d.H))):"c"===c?(d.H=dt(s,8),d.H&&8===d.H.nodeType&&(e.push(d),s.remove())):d.N===a&&("s"===c?at(s["s-sn"]=l[5]||"",l[2],d,s,t,e,o,i,r):"r"===c&&(i?s.remove():(n["s-cr"]=s,s["s-cn"]=!0))));else if(t&&"style"===t.O){const e=Q(null,s.textContent);e.H=s,e.L="0",t.$=[e]}return t},nt=(t,e)=>{if(1===t.nodeType){const o=t[m]||t.getAttribute(m);o&&e.set(o,t);let i=0;if(t.shadowRoot)for(;i<t.shadowRoot.childNodes.length;i++)nt(t.shadowRoot.childNodes[i],e);const n=t.__childNodes||t.childNodes;for(i=0;i<n.length;i++)nt(n[i],e)}else if(8===t.nodeType){const o=t.nodeValue.split(".");"o"===o[0]&&(e.set(o[1]+"."+o[2],t),t.nodeValue="",t["s-en"]=o[3])}},st=t=>({p:0,N:null,C:null,M:null,L:"0",H:null,k:null,$:null,j:null,S:null,O:null,m:null,...t});function at(t,e,o,i,n,s,a,r,c){i["s-sr"]=!0,o.S=t||null,o.O="slot";const l=(null==n?void 0:n.H)?n.H["s-id"]||n.H.getAttribute("s-id"):"";if(r&&$.document){const s=o.H=$.document.createElement(o.O);o.S&&o.H.setAttribute("name",t),n.H.shadowRoot&&l&&l!==o.N?V(n.H,"insertBefore")(s,V(n.H,"children")[0]):V(V(i,"parentNode"),"insertBefore")(s,i),lt(c,e,t,i,o.N),i.remove(),"0"===o.M&&(r[o.L]=o.H)}else{const s=o.H,a=l&&l!==o.N&&n.H.shadowRoot;lt(c,e,t,i,a?l:o.N),U(i),a&&n.H.insertBefore(s,n.H.children[0])}s.push(o),a.push(o),n.$||(n.$=[]),n.$[o.L]=o}var rt,ct,lt=(t,e,o,i,n)=>{var s,a;let r=i.nextSibling;if(t[e]=t[e]||[],r&&!(null==(s=r.nodeValue)?void 0:s.startsWith("s.")))do{!r||(r.getAttribute&&r.getAttribute("slot")||r["s-sn"])!==o&&(""!==o||r["s-sn"]||r.getAttribute&&r.getAttribute("slot")||8!==r.nodeType&&3!==r.nodeType)||(r["s-sn"]=o,t[e].push({slot:i,node:r,hostId:n})),r=null==r?void 0:r.nextSibling}while(r&&!(null==(a=r.nodeValue)?void 0:a.startsWith("s.")))},dt=(t,e)=>{let o=t;do{o=o.nextSibling}while(o&&(o.nodeType!==e||!o.nodeValue));return o},pt=class t{static fromLocalValue(e){const o=e[n],i=s in e?e[s]:void 0;switch(o){case"string":case"boolean":return i;case"bigint":return BigInt(i);case"undefined":return;case"null":return null;case"number":return"NaN"===i?NaN:"-0"===i?-0:"Infinity"===i?1/0:"-Infinity"===i?-1/0:i;case"array":return i.map((e=>t.fromLocalValue(e)));case"date":return new Date(i);case"map":const e=new Map;for(const[o,n]of i){const i="object"==typeof o&&null!==o?t.fromLocalValue(o):o,s=t.fromLocalValue(n);e.set(i,s)}return e;case"object":const n={};for(const[e,o]of i)n[e]=t.fromLocalValue(o);return n;case"regexp":const{pattern:s,flags:a}=i;return RegExp(s,a);case"set":const r=new Set;for(const e of i)r.add(t.fromLocalValue(e));return r;case"symbol":return Symbol(i);default:throw Error("Unsupported type: "+o)}}static fromLocalValueArray(e){return e.map((e=>t.fromLocalValue(e)))}static isLocalValueObject(t){if("object"!=typeof t||null===t)return!1;if(!t.hasOwnProperty(n))return!1;const e=t[n];return!!Object.values({...o,...i}).includes(e)&&("null"===e||"undefined"===e||t.hasOwnProperty(s))}},vt=(t,e,o)=>"string"==typeof t&&t.startsWith(a)?t=function(t){return"string"==typeof t&&t.startsWith(a)?pt.fromLocalValue(JSON.parse(atob(t.slice(11)))):t}(t):null==t||Z(t)?t:4&e?(o&&"string"==typeof t||"false"!==t)&&(""===t||!!t):2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&e?t+"":t,ut=t=>{var e;return null==(e=d(t))?void 0:e.$hostElement$},ft=(t,e)=>{const o=ut(t);return{emit:t=>ht(o,e,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},ht=(t,e,o)=>{const i=x.ce(e,o);return t.dispatchEvent(i),i},mt=(t,e,o,i,n,s,a)=>{if(o===i)return;let r=v(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,n=gt(o);let s=gt(i);if((t["s-si"]||t["s-sc"])&&a){const o=t["s-sc"]||t["s-si"];s.push(o),n.forEach((t=>{t.startsWith(o)&&s.push(t)})),s=[...new Set(s)].filter((t=>t)),e.add(...s)}else e.remove(...n.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!n.includes(t))))}else if("style"===e){for(const e in o)i&&null!=i[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in i)o&&i[e]===o[e]||(e.includes("-")?t.style.setProperty(e,i[e]):t.style[e]=i[e])}else if("key"===e);else if("ref"===e)i&&Dt(i,t);else if(r||"o"!==e[0]||"n"!==e[1]){if("a"===e[0]&&e.startsWith("attr:")){const o=e.slice(5);let n;{const e=d(t);if(e&&e.o&&e.o.t){const t=e.o.t[o];t&&t[1]&&(n=t[1])}}return n||(n=o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==i||!1===i?!1===i&&""!==t.getAttribute(n)||t.removeAttribute(n):t.setAttribute(n,!0===i?"":i))}if("p"===e[0]&&e.startsWith("prop:")){const o=e.slice(5);try{t[o]=i}catch(t){}return}{const a=Z(i);if((r||a&&null!==i)&&!n)try{if(t.tagName.includes("-"))t[e]!==i&&(t[e]=i);else{const n=null==i?"":i;"list"===e?r=!1:null!=o&&t[e]===n||("function"==typeof t.__lookupSetter__(e)?t[e]=n:t.setAttribute(e,n))}}catch(t){}let l=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(e=c,l=!0),null==i||!1===i?!1===i&&""!==t.getAttribute(e)||(l?t.removeAttributeNS(y,e):t.removeAttribute(e)):(!r||4&s||n)&&!a&&1===t.nodeType&&(i=!0===i?"":i,l?t.setAttributeNS(y,e,i):t.setAttribute(e,i))}}else if(e="-"===e[2]?e.slice(3):v($,c)?c.slice(2):c[2]+e.slice(3),o||i){const n=e.endsWith(wt);e=e.replace(yt,""),o&&x.rel(t,e,o,n),i&&x.ael(t,e,i,n)}},bt=/\s/,gt=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(bt):[]),wt="Capture",yt=RegExp(wt+"$"),kt=(t,e,o,i)=>{const n=11===e.H.nodeType&&e.H.host?e.H.host:e.H,s=t&&t.k||{},a=e.k||{};for(const t of $t(Object.keys(s)))t in a||mt(n,t,s[t],void 0,o,e.p,i);for(const t of $t(Object.keys(a)))mt(n,t,s[t],a[t],o,e.p,i)};function $t(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var xt=!1,zt=!1,jt=!1,St=!1,Ot=[],Ht=[],Nt=(t,e,o)=>{var i;const n=e.$[o];let s,a,r,c=0;if(xt||(jt=!0,"slot"===n.O&&(n.p|=n.$?2:1)),null!=n.m)s=n.H=$.document.createTextNode(n.m);else if(1&n.p)s=n.H=$.document.createTextNode(""),kt(null,n,St);else{if(St||(St="svg"===n.O),!$.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(s=n.H=$.document.createElementNS(St?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!xt&&2&n.p?"slot-fb":n.O),St&&"foreignObject"===n.O&&(St=!1),kt(null,n,St),n.$){const e="template"===n.O?s.content:s;for(c=0;c<n.$.length;++c)a=Nt(t,n,c),a&&e.appendChild(a)}"svg"===n.O?St=!1:"foreignObject"===s.tagName&&(St=!0)}return s["s-hn"]=ct,3&n.p&&(s["s-sr"]=!0,s["s-cr"]=rt,s["s-sn"]=n.S||"",s["s-rf"]=null==(i=n.k)?void 0:i.ref,U(s),r=t&&t.$&&t.$[o],r&&r.O===n.O&&t.H&&Ct(t.H)),s},Ct=t=>{x.p|=1;const e=t.closest(ct.toLowerCase());if(null!=e){const o=Array.from(e.__childNodes||e.childNodes).find((t=>t["s-cr"])),i=Array.from(t.__childNodes||t.childNodes);for(const t of o?i.reverse():i)null!=t["s-sh"]&&(Pt(e,t,null!=o?o:null),t["s-sh"]=void 0,jt=!0)}x.p&=-2},Et=(t,e)=>{x.p|=1;const o=Array.from(t.__childNodes||t.childNodes);if(t["s-sr"]){let e=t;for(;e=e.nextSibling;)e&&e["s-sn"]===t["s-sn"]&&e["s-sh"]===ct&&o.push(e)}for(let t=o.length-1;t>=0;t--){const i=o[t];i["s-hn"]!==ct&&i["s-ol"]&&(Pt(Bt(i).parentNode,i,Bt(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,jt=!0),e&&Et(i,e)}x.p&=-2},Mt=(t,e,o,i,n,s)=>{let a,r=t["s-cr"]&&t["s-cr"].parentNode||t;for(r.shadowRoot&&r.tagName===ct&&(r=r.shadowRoot),"template"===o.O&&(r=r.content);n<=s;++n)i[n]&&(a=Nt(null,o,n),a&&(i[n].H=a,Pt(r,a,Bt(e))))},Lt=(t,e,o)=>{for(let i=e;i<=o;++i){const e=t[i];if(e){const t=e.H;Ft(e),t&&(zt=!0,t["s-ol"]?t["s-ol"].remove():Et(t,!0),t.remove())}}},Rt=(t,e,o=!1)=>t.O===e.O&&("slot"===t.O?t.S===e.S:o?(o&&!t.j&&e.j&&(t.j=e.j),!0):t.j===e.j),Bt=t=>t&&t["s-ol"]||t,It=(t,e,o=!1)=>{const i=e.H=t.H,n=t.$,s=e.$,a=e.O,r=e.m;let c;null==r?(St="svg"===a||"foreignObject"!==a&&St,"slot"!==a||xt||t.S!==e.S&&(e.H["s-sn"]=e.S||"",Ct(e.H.parentElement)),kt(t,e,St,o),null!==n&&null!==s?((t,e,o,i,n=!1)=>{let s,a,r=0,c=0,l=0,d=0,p=e.length-1,v=e[0],u=e[p],f=i.length-1,h=i[0],m=i[f];const b="template"===o.O?t.content:t;for(;r<=p&&c<=f;)if(null==v)v=e[++r];else if(null==u)u=e[--p];else if(null==h)h=i[++c];else if(null==m)m=i[--f];else if(Rt(v,h,n))It(v,h,n),v=e[++r],h=i[++c];else if(Rt(u,m,n))It(u,m,n),u=e[--p],m=i[--f];else if(Rt(v,m,n))"slot"!==v.O&&"slot"!==m.O||Et(v.H.parentNode,!1),It(v,m,n),Pt(b,v.H,u.H.nextSibling),v=e[++r],m=i[--f];else if(Rt(u,h,n))"slot"!==v.O&&"slot"!==m.O||Et(u.H.parentNode,!1),It(u,h,n),Pt(b,u.H,v.H),u=e[--p],h=i[++c];else{for(l=-1,d=r;d<=p;++d)if(e[d]&&null!==e[d].j&&e[d].j===h.j){l=d;break}l>=0?(a=e[l],a.O!==h.O?s=Nt(e&&e[c],o,l):(It(a,h,n),e[l]=void 0,s=a.H),h=i[++c]):(s=Nt(e&&e[c],o,c),h=i[++c]),s&&Pt(Bt(v.H).parentNode,s,Bt(v.H))}r>p?Mt(t,null==i[f+1]?null:i[f+1].H,o,i,c,f):c>f&&Lt(e,r,p)})(i,n,e,s,o):null!==s?(null!==t.m&&(i.textContent=""),Mt(i,null,e,s,0,s.length-1)):o||null===n?o&&null!==n&&null===s&&(e.$=n):Lt(n,0,n.length-1),St&&"svg"===a&&(St=!1)):(c=i["s-cr"])?c.parentNode.textContent=r:t.m!==r&&(i.data=r)},At=[],Tt=t=>{let e,o,i;const n=t.__childNodes||t.childNodes;for(const t of n){if(t["s-sr"]&&(e=t["s-cr"])&&e.parentNode){o=e.parentNode.__childNodes||e.parentNode.childNodes;const n=t["s-sn"];for(i=o.length-1;i>=0;i--)if(e=o[i],!(e["s-cn"]||e["s-nr"]||e["s-hn"]===t["s-hn"]||e["s-sh"]&&e["s-sh"]===t["s-hn"]))if(F(e,n)){let o=At.find((t=>t.R===e));zt=!0,e["s-sn"]=e["s-sn"]||n,o?(o.R["s-sh"]=t["s-hn"],o.B=t):(e["s-sh"]=t["s-hn"],At.push({B:t,R:e})),e["s-sr"]&&At.map((t=>{F(t.R,e["s-sn"])&&(o=At.find((t=>t.R===e)),o&&!t.B&&(t.B=o.B))}))}else At.some((t=>t.R===e))||At.push({R:e})}1===t.nodeType&&Tt(t)}},Ft=t=>{t.k&&t.k.ref&&Ot.push((()=>t.k.ref(null))),t.$&&t.$.map(Ft)},Dt=(t,e)=>{Ht.push((()=>t(e)))},Pt=(t,e,o,i)=>{if("string"==typeof e["s-sn"]){t.insertBefore(e,o);const{slotNode:n}=function(t,e){var o;if(!(e=e||(null==(o=t["s-ol"])?void 0:o.parentElement)))return{slotNode:null,slotName:""};const i=t["s-sn"]=P(t)||"";return{slotNode:A(V(e,"childNodes"),e.tagName,i)[0],slotName:i}}(e);return n&&!i&&function(t){t.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}(n),e}return t.__insertBefore?t.__insertBefore(e,o):null==t?void 0:t.insertBefore(e,o)},Ut=(t,e)=>{if(e&&!t.I&&e["s-p"]){const o=e["s-p"].push(new Promise((i=>t.I=()=>{e["s-p"].splice(o-1,1),i()})))}},Vt=(t,e)=>{if(t.p|=16,4&t.p)return void(t.p|=512);Ut(t,t.A);const o=()=>_t(t,e);if(!e)return R(o);queueMicrotask((()=>{o()}))},_t=(t,e)=>{const o=t.$hostElement$,i=t.l;if(!i)throw Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return e?(t.T&&(t.T=!1,Kt(i,"connectedCallback",void 0,o)),t.p|=256,t.F&&(t.F.map((([t,e])=>Kt(i,t,e,o))),t.F=void 0),t.D.length&&t.D.forEach((t=>t(o))),n=Kt(i,"componentWillLoad",void 0,o)):n=Kt(i,"componentWillUpdate",void 0,o),n=Wt(n,(()=>Kt(i,"componentWillRender",void 0,o))),Wt(n,(()=>Yt(t,i,e)))},Wt=(t,e)=>qt(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),qt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Yt=async(t,e,o)=>{var i;const n=t.$hostElement$,s=n["s-rc"];o&&(t=>{const e=t.o,o=t.$hostElement$,i=e.p,n=Y(o.shadowRoot?o.shadowRoot:o.getRootNode(),e);10&i&&(o["s-sc"]=n,o.classList.add(n+"-h"))})(t);Gt(t,e,n,o),s&&(s.map((t=>t())),n["s-rc"]=void 0);{const e=null!=(i=n["s-p"])?i:[],o=()=>Jt(t);0===e.length?o():(Promise.all(e).then(o).catch(o),t.p|=4,e.length=0)}},Gt=(t,e,o,i)=>{try{e=e.render&&e.render(),t.p&=-17,t.p|=2,((t,e,o=!1)=>{var i,n,s,a,r;const c=t.$hostElement$,l=t.o,d=t.P||Q(null,null),p=(t=>t&&t.O===X)(e)?e:K(null,null,e);if(ct=c.tagName,l.U&&(p.k=p.k||{},l.U.forEach((([t,e])=>{p.k[e]=c[t]}))),o&&p.k)for(const t of Object.keys(p.k))c.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(p.k[t]=c[t]);if(p.O=null,p.p|=4,t.P=p,p.H=d.H=c.shadowRoot||c,xt=!(!(1&l.p)||128&l.p),rt=c["s-cr"],zt=!1,It(d,p,o),x.p|=1,jt){Tt(p.H);for(const t of At){const e=t.R;if(!e["s-ol"]&&$.document){const t=$.document.createTextNode("");t["s-nr"]=e,Pt(e.parentNode,e["s-ol"]=t,e,o)}}for(const t of At){const e=t.R,r=t.B;if(1===e.nodeType&&o&&(e["s-ih"]=null!=(i=e.hidden)&&i),r){const t=r.parentNode;let i=r.nextSibling;if(i&&1===i.nodeType){let o=null==(n=e["s-ol"])?void 0:n.previousSibling;for(;o;){let n=null!=(s=o["s-nr"])?s:null;if(n&&n["s-sn"]===e["s-sn"]&&t===(n.__parentNode||n.parentNode)){for(n=n.nextSibling;n===e||(null==n?void 0:n["s-sr"]);)n=null==n?void 0:n.nextSibling;if(!n||!n["s-nr"]){i=n;break}}o=o.previousSibling}}if((!i&&t!==(e.__parentNode||e.parentNode)||(e.__nextSibling||e.nextSibling)!==i)&&e!==i){if(Pt(t,e,i,o),8===e.nodeType&&e.nodeValue.startsWith("s-nt-")){const t=$.document.createTextNode(e.nodeValue.replace(/^s-nt-/,""));t["s-hn"]=e["s-hn"],t["s-sn"]=e["s-sn"],t["s-sh"]=e["s-sh"],t["s-sr"]=e["s-sr"],t["s-ol"]=e["s-ol"],t["s-ol"]["s-nr"]=t,Pt(e.parentNode,t,e,o),e.parentNode.removeChild(e)}1===e.nodeType&&"SLOT-FB"!==e.tagName&&(e.hidden=null!=(a=e["s-ih"])&&a)}e&&"function"==typeof r["s-rf"]&&r["s-rf"](r)}else 1===e.nodeType&&(e.hidden=!0)}}if(zt&&I(p.H),x.p&=-2,At.length=0,!xt&&!(1&l.p)&&c["s-cr"]){const t=p.H.__childNodes||p.H.childNodes;for(const e of t)if(e["s-hn"]!==ct&&!e["s-sh"])if(o&&null==e["s-ih"]&&(e["s-ih"]=null!=(r=e.hidden)&&r),1===e.nodeType)e.hidden=!0;else if(3===e.nodeType&&e.nodeValue.trim()){const t=$.document.createComment("s-nt-"+e.nodeValue);t["s-sn"]=e["s-sn"],Pt(e.parentNode,t,e,o),e.parentNode.removeChild(e)}}rt=void 0,Ot.forEach((t=>t())),Ot.length=0,Ht.forEach((t=>t())),Ht.length=0})(t,e,i)}catch(e){u(e,t.$hostElement$)}return null},Jt=t=>{const e=t.$hostElement$,o=t.l,i=t.A;Kt(o,"componentDidRender",void 0,e),64&t.p?Kt(o,"componentDidUpdate",void 0,e):(t.p|=64,Qt(e),Kt(o,"componentDidLoad",void 0,e),t.V(e),i||Zt()),t._(e),t.I&&(t.I(),t.I=void 0),512&t.p&&L((()=>Vt(t,!1))),t.p&=-517},Zt=()=>{var t;L((()=>ht($,"appload",{detail:{namespace:"post-components"}}))),(null==(t=x.W)?void 0:t.size)&&x.W.clear()},Kt=(t,e,o,i)=>{if(t&&t[e])try{return t[e](o)}catch(t){u(t,i)}},Qt=t=>t.setAttribute(null!="data-hydrated"?"data-hydrated":"hydrated",""),Xt=(t,e,o,i)=>{const n=d(t);if(!n)return;if(!n)throw Error(`Couldn't find host element for "${i.h}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const s=n.$hostElement$,a=n.i.get(e),r=n.p,c=n.l;if(o=vt(o,i.t[e][0],!!(64&i.p)),!(8&r&&void 0!==a||o===a||Number.isNaN(a)&&Number.isNaN(o))){if(n.i.set(e,o),i.q){const t=i.q[e];t&&t.map((t=>{try{const[[i,s]]=Object.entries(t);(128&r||1&s)&&(c?c[i](o,a,e):n.D.push((()=>{n.l[i](o,a,e)})))}catch(t){u(t,s)}}))}if(2&r){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(o,a,e)&&!(16&r))return;16&r||Vt(n,!1)}}},te=(t,e,o)=>{var i,n;const s=t.prototype;64&e.p&&1&o&&k.forEach((t=>{Object.defineProperty(s,t,{value(...e){var o;const i=d(this),n=null==i?void 0:i.l;if(n){const o=n[t];"function"==typeof o&&o.call(n,...e)}else null==(o=null==i?void 0:i.Y)||o.then((o=>{const i=o[t];"function"==typeof i&&i.call(o,...e)}))}})}));{t.watchers&&!e.q&&(e.q=t.watchers),t.deserializers&&!e.G&&(e.G=t.deserializers),t.serializers&&!e.J&&(e.J=t.serializers);const a=Object.entries(null!=(i=e.t)?i:{});if(a.map((([t,[i]])=>{if(31&i||2&o&&32&i){const{get:n,set:a}=r(s,t)||{};n&&(e.t[t][0]|=2048),a&&(e.t[t][0]|=4096),(1&o||!n)&&Object.defineProperty(s,t,{get(){{if(!(2048&e.t[t][0]))return((t,e)=>d(this).i.get(e))(0,t);const o=d(this),i=o?o.l:s;if(!i)return;return i[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(s,t,{set(n){const s=d(this);if(s){if(a)return void 0===(32&i?this[t]:s.$hostElement$[t])&&s.i.get(t)&&(n=s.i.get(t)),a.call(this,vt(n,i,!!(64&e.p))),void Xt(this,t,n=32&i?this[t]:s.$hostElement$[t],e);{if(!(1&o&&4096&e.t[t][0]))return Xt(this,t,n,e),void(1&o&&!s.l&&s.D.push((()=>{4096&e.t[t][0]&&s.l[t]!==s.i.get(t)&&(s.l[t]=n)})));const a=()=>{const o=s.l[t];!s.i.get(t)&&o&&s.i.set(t,o),s.l[t]=vt(n,i,!!(64&e.p)),Xt(this,t,s.l[t],e)};s.l?a():s.D.push((()=>{a()}))}}}})}else 1&o&&64&i&&Object.defineProperty(s,t,{value(...e){var o;const i=d(this);return null==(o=null==i?void 0:i.Z)?void 0:o.then((()=>{var o;return null==(o=i.l)?void 0:o[t](...e)}))}})})),1&o){const o=new Map;s.attributeChangedCallback=function(t,i,n){x.jmp((()=>{var r;const c=o.get(t),l=d(this);if(this.hasOwnProperty(c)&&(n=this[c],delete this[c]),s.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==n)return;if(null==c){const o=null==l?void 0:l.p;if(l&&o&&!(8&o)&&n!==i){const s=l.l,a=null==(r=e.q)?void 0:r[t];null==a||a.forEach((e=>{const[[a,r]]=Object.entries(e);null!=s[a]&&(128&o||1&r)&&s[a].call(s,n,i,t)}))}return}const p=a.find((([t])=>t===c));p&&4&p[1][0]&&(n=null!==n&&"false"!==n);const v=Object.getOwnPropertyDescriptor(s,c);n==this[c]||v.get&&!v.set||(this[c]=n)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(n=e.q)?n:{}),...a.filter((([t,e])=>31&e[0])).map((([t,i])=>{var n;const s=i[1]||t;return o.set(s,t),512&i[0]&&(null==(n=e.U)||n.push([t,s])),s}))]))}}return t},ee=(t,e)=>{Kt(t,"connectedCallback",void 0,e)},oe=t=>{if(!(1&x.p)){const e=d(t);if(!e)return;const o=e.o,i=()=>{};if(1&e.p)ae(t,e,o.K),(null==e?void 0:e.l)?ee(e.l,t):(null==e?void 0:e.Y)&&e.Y.then((()=>ee(e.l,t)));else{let i;if(e.p|=1,i=t.getAttribute(m),i){if(1&o.p){const e=Y(t.shadowRoot,o);t.classList.remove(e+"-h",e+"-s")}((t,e,o,i)=>{var n,s,a,r;const c=t.shadowRoot,l=[],p=[],v=c?[]:null,u=Q(e,null);u.H=t,!$.document||x.W&&x.W.size||nt($.document.body,x.W=new Map),t[m]=o,t.removeAttribute(m),i.P=it(u,l,[],v,t,t,o,p);let f=0;const h=l.length;let b;for(;f<h;f++){b=l[f];const o=b.N+"."+b.C,i=x.W.get(o),s=b.H;if(c){if((null==(n=b.O)?void 0:(""+n).includes("-"))&&"slot-fb"!==b.O&&!b.H.shadowRoot){const t=d(b.H);if(t){const e=G(t.o),o=$.document.querySelector(`style[sty-id="${e}"]`);o&&v.unshift(o.cloneNode(!0))}}}else s["s-hn"]=e.toUpperCase(),"slot"===b.O&&(s["s-cr"]=t["s-cr"]);"slot"===b.O&&(b.S=b.H["s-sn"]||b.H.name||null,b.$?(b.p|=2,b.H.childNodes.length||b.$.forEach((t=>{b.H.appendChild(t.H)}))):b.p|=1),i&&i.isConnected&&(i.parentElement.shadowRoot&&""===i["s-en"]&&i.parentNode.insertBefore(s,i.nextSibling),i.parentNode.removeChild(i),c||(s["s-oo"]=parseInt(b.C))),i&&!i["s-id"]&&x.W.delete(o)}const g=[],w=p.length;let y,k,z,j,S=0,O=0;for(;S<w;S++)if(y=p[S],y&&y.length)for(z=y.length,k=0;k<z;k++){if(j=y[k],g[j.hostId]||(g[j.hostId]=x.W.get(j.hostId)),!g[j.hostId])continue;const t=g[j.hostId];t.shadowRoot&&j.node.parentElement!==t&&t.insertBefore(j.node,null==(a=null==(s=y[k-1])?void 0:s.node)?void 0:a.nextSibling),t.shadowRoot&&c||(j.slot["s-cr"]||(j.slot["s-cr"]=t["s-cr"],j.slot["s-cr"]=!j.slot["s-cr"]&&t.shadowRoot?t:(t.__childNodes||t.childNodes)[0]),D(j.node,j.slot,0,j.node["s-oo"]||O),(null==(r=j.node.parentElement)?void 0:r.shadowRoot)&&j.node.getAttribute&&j.node.getAttribute("slot")&&j.node.removeAttribute("slot")),O=(j.node["s-oo"]||O)+1}if(c&&!c.childNodes.length){let e=0;const o=v.length;if(o){for(;e<o;e++){const t=v[e];t&&c.appendChild(t)}Array.from(t.childNodes).forEach((t=>{"string"!=typeof t["s-en"]&&"string"!=typeof t["s-sn"]&&(1===t.nodeType&&t.slot&&t.hidden?t.removeAttribute("hidden"):8!==t.nodeType||t.nodeValue||t.parentNode.removeChild(t))}))}}i.$hostElement$=t})(t,o.h,i,e)}i||12&o.p&&ie(t);{let o=t;for(;o=o.parentNode||o.host;)if(1===o.nodeType&&o.hasAttribute("s-id")&&o["s-p"]||o["s-p"]){Ut(e,e.A=o);break}}o.t&&Object.entries(o.t).map((([e,[o]])=>{if(31&o&&Object.prototype.hasOwnProperty.call(t,e)){const o=t[e];delete t[e],t[e]=o}})),(async(t,e,o)=>{let i;try{if(!(32&e.p)){if(e.p|=32,o.X){const n=((t,e)=>{const o=t.h.replace(/-/g,"_"),i=t.X;if(!i)return;const n=f.get(i);return n?n[o]:import(`./${i}.entry.js`).then((t=>(f.set(i,t),t[o])),(t=>{u(t,e.$hostElement$)}))
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(o,e);if(n&&"then"in n){const t=()=>{};i=await n,t()}else i=n;if(!i)throw Error(`Constructor for "${o.h}#${e.tt}" was not found`);i.isProxied||(o.q=i.watchers,o.J=i.serializers,o.G=i.deserializers,te(i,o,2),i.isProxied=!0);const s=()=>{};e.p|=8;try{new i(e)}catch(e){u(e,t)}e.p&=-9,e.p|=128,s(),4&o.p?e.T=!0:ee(e.l,t)}else i=t.constructor,customElements.whenDefined(t.localName).then((()=>e.p|=128));if(i&&i.style){let t;"string"==typeof i.style&&(t=i.style);const e=G(o);if(!h.has(e)){const i=()=>{};q(e,t,!!(1&o.p)),i()}}}const n=e.A,s=()=>Vt(e,!0);n&&n["s-rc"]?n["s-rc"].push(s):s()}catch(o){u(o,t),e.I&&(e.I(),e.I=void 0),e.V&&e.V(t)}})(t,e,o)}i()}},ie=t=>{if(!$.document)return;const e=t["s-cr"]=$.document.createComment("");e["s-cn"]=!0,Pt(t,e,t.firstChild)},ne=(t,e)=>{Kt(t,"disconnectedCallback",void 0,e||t)},se=(t,e={})=>{var o;if(!$.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const i=[],n=e.exclude||[],s=$.customElements,a=$.document.head,r=a.querySelector("meta[charset]"),c=$.document.createElement("style"),l=[];let p,v=!0;Object.assign(x,e),x.v=new URL(e.resourcesUrl||"./",$.document.baseURI).href,x.p|=2,(()=>{if(!$.document)return;const t=$.document.querySelectorAll(`[${b}]`);let e=0;for(;e<t.length;e++)q(t[e].getAttribute(b),J(t[e].innerHTML),!0)})();let u=!1;if(t.map((t=>{t[1].map((e=>{var o,a,r;const c={p:e[0],h:e[1],t:e[2],K:e[3]};4&c.p&&(u=!0),c.t=e[2],c.K=e[3],c.U=[],c.q=null!=(o=e[4])?o:{},c.J=null!=(a=e[5])?a:{},c.G=null!=(r=e[6])?r:{};const f=c.h,h=class extends HTMLElement{"s-p";"s-rc";hasRegisteredEventListeners=!1;constructor(t){if(super(t),((t,e)=>{const o={p:0,$hostElement$:t,o:e,i:new Map,et:new Map};o.Z=new Promise((t=>o._=t)),o.Y=new Promise((t=>o.V=t)),t["s-p"]=[],t["s-rc"]=[],o.D=[];const i=o;t.__stencil__getHostRef=()=>i})(t=this,c),1&c.p)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.h}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else B.call(t,c)}connectedCallback(){const t=d(this);t&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,ae(this,t,c.K)),p&&(clearTimeout(p),p=null),v?l.push(this):x.jmp((()=>oe(this))))}disconnectedCallback(){x.jmp((()=>(async t=>{if(!(1&x.p)){const e=d(t);(null==e?void 0:e.ot)&&(e.ot.map((t=>t())),e.ot=void 0),(null==e?void 0:e.l)?ne(e.l,t):(null==e?void 0:e.Y)&&e.Y.then((()=>ne(e.l,t)))}W.has(t)&&W.delete(t),t.shadowRoot&&W.has(t.shadowRoot)&&W.delete(t.shadowRoot)})(this))),x.raf((()=>{var t;const e=d(this);if(!e)return;const o=l.findIndex((t=>t===this));o>-1&&l.splice(o,1),(null==(t=null==e?void 0:e.P)?void 0:t.H)instanceof Node&&!e.P.H.isConnected&&delete e.P.H}))}componentOnReady(){var t;return null==(t=d(this))?void 0:t.Y}};64&c.p&&(h.formAssociated=!0),c.X=t[0],n.includes(f)||s.get(f)||(i.push(f),s.define(f,te(h,c,1)))}))})),i.length>0&&(u&&(c.textContent+=w),c.innerHTML.length)){c.setAttribute("data-styles","");const t=null!=(o=x.u)?o:_($.document);null!=t&&c.setAttribute("nonce",t),a.insertBefore(c,r?r.nextSibling:a.firstChild)}v=!1,l.length?l.map((t=>t.connectedCallback())):x.jmp((()=>p=setTimeout(Zt,30)))},ae=(t,e,o)=>{o&&$.document&&o.map((([o,i,n])=>{const s=ce($.document,t,o),a=re(e,n),r=le(o);x.ael(s,i,a,r),(e.ot=e.ot||[]).push((()=>x.rel(s,i,a,r)))}))},re=(t,e)=>o=>{var i;try{256&t.p?null==(i=t.l)||i[e](o):(t.F=t.F||[]).push([e,o])}catch(e){u(e,t.$hostElement$)}},ce=(t,e,o)=>4&o?t:8&o?$:e,le=t=>({passive:!!(1&t),capture:!!(2&t)}),de=t=>x.u=t;export{X as H,ut as a,se as b,ft as c,t as g,K as h,z as p,p as r,de as s}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as t,g as r}from"./p-BwhzbRIR.js";function o(){return t({priority:1,blocking:!1,run(t,o){const{value:n,showError:s}=r(t,o);let e="string"==typeof n||n instanceof URL;if(e)try{new URL(n,"https://www.post.ch")}catch{e=!1}return!!e||(s("must be a valid URL"),!1)}})}export{o as U}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as r,g as t}from"./p-BwhzbRIR.js";function o(o){return r({priority:1,blocking:!1,run(r,n){const{value:s,showError:i}=t(r,n);return!("string"!=typeof s||!o.test(s))||(i(`must match ${o}`),!1)}})}export{o as P}
|