@ganpatiinfo/gids-core-web 20.0.0 → 22.0.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/css/index.css +607 -59
- package/dist/css/index.css.map +1 -1
- package/dist/gids-action-bar.d.ts +1 -1
- package/dist/gids-action-bar.js +1 -1
- package/dist/gids-activity-gauge.d.ts +1 -1
- package/dist/gids-activity-gauge.js +1 -1
- package/dist/gids-advanced-tooltip.d.ts +1 -1
- package/dist/gids-advanced-tooltip.js +1 -1
- package/dist/gids-bar-chart.d.ts +1 -1
- package/dist/gids-bar-chart.js +1 -1
- package/dist/gids-bento-card.d.ts +1 -1
- package/dist/gids-bento-card.js +1 -1
- package/dist/gids-calendar-header-panel.d.ts +1 -1
- package/dist/gids-calendar-header-panel.js +1 -1
- package/dist/gids-calendar-month-list.d.ts +1 -1
- package/dist/gids-calendar-month-list.js +1 -1
- package/dist/gids-calendar-year-list.d.ts +1 -1
- package/dist/gids-calendar-year-list.js +1 -1
- package/dist/gids-calendar.d.ts +1 -1
- package/dist/gids-calendar.js +1 -1
- package/dist/gids-carousel.d.ts +1 -1
- package/dist/gids-chart-legend-item.d.ts +1 -1
- package/dist/gids-chart-legend-item.js +1 -1
- package/dist/gids-chart-legend.d.ts +1 -1
- package/dist/gids-chart-legend.js +1 -1
- package/dist/gids-chart.d.ts +1 -1
- package/dist/gids-chart.js +1 -1
- package/dist/gids-chevron-button.d.ts +1 -1
- package/dist/gids-chevron-button.js +1 -1
- package/dist/gids-dot.d.ts +1 -1
- package/dist/gids-dot.js +1 -1
- package/dist/gids-dropdown-field.d.ts +1 -1
- package/dist/gids-dropdown-field.js +1 -1
- package/dist/gids-dropdown-picker.d.ts +1 -1
- package/dist/gids-dropdown-picker.js +1 -1
- package/dist/gids-dropdown.d.ts +1 -1
- package/dist/gids-dropdown.js +1 -1
- package/dist/gids-expansion-body-list-item.d.ts +1 -1
- package/dist/gids-expansion-body-list-item.js +1 -1
- package/dist/gids-expansion-body-list.d.ts +1 -1
- package/dist/gids-expansion-body-list.js +1 -1
- package/dist/gids-expansion-group.d.ts +1 -1
- package/dist/gids-expansion-group.js +1 -1
- package/dist/gids-expansion.d.ts +1 -1
- package/dist/gids-expansion.js +1 -1
- package/dist/gids-field.d.ts +1 -1
- package/dist/gids-field.js +1 -1
- package/dist/gids-filter.d.ts +1 -1
- package/dist/gids-filter.js +1 -1
- package/dist/gids-flyout-panel.d.ts +1 -1
- package/dist/gids-flyout-panel.js +1 -1
- package/dist/gids-form.d.ts +11 -0
- package/dist/gids-form.js +1 -0
- package/dist/gids-header-navigation-item.d.ts +1 -1
- package/dist/gids-header-navigation-item.js +1 -1
- package/dist/gids-header-navigation.d.ts +1 -1
- package/dist/gids-header-navigation.js +1 -1
- package/dist/gids-icon.d.ts +1 -1
- package/dist/gids-icon.js +1 -1
- package/dist/gids-input.d.ts +1 -1
- package/dist/gids-input.js +1 -1
- package/dist/gids-level-gauge.d.ts +1 -1
- package/dist/gids-line-chart.d.ts +1 -1
- package/dist/gids-line-chart.js +1 -1
- package/dist/gids-md-table.d.ts +1 -1
- package/dist/gids-md-table.js +1 -1
- package/dist/gids-notification.d.ts +1 -1
- package/dist/gids-overflow-container.d.ts +1 -1
- package/dist/gids-overflow-container.js +1 -1
- package/dist/gids-overlay-provider.d.ts +1 -1
- package/dist/gids-overlay-provider.js +1 -1
- package/dist/gids-password-field.d.ts +1 -1
- package/dist/gids-password-field.js +1 -1
- package/dist/gids-pie-chart.d.ts +1 -1
- package/dist/gids-pie-chart.js +1 -1
- package/dist/gids-popover.d.ts +1 -1
- package/dist/gids-popover.js +1 -1
- package/dist/gids-profile-menu-header.d.ts +1 -1
- package/dist/gids-profile-menu-header.js +1 -1
- package/dist/gids-profile-menu.d.ts +1 -1
- package/dist/gids-profile-menu.js +1 -1
- package/dist/gids-profile.d.ts +1 -1
- package/dist/gids-profile.js +1 -1
- package/dist/gids-progress-circle.d.ts +1 -1
- package/dist/gids-scrim.d.ts +1 -1
- package/dist/gids-scrim.js +1 -1
- package/dist/gids-sidebar-item.d.ts +11 -0
- package/dist/gids-sidebar-item.js +1 -0
- package/dist/gids-sidebar-menu.d.ts +11 -0
- package/dist/gids-sidebar-menu.js +1 -0
- package/dist/gids-sidebar.d.ts +11 -0
- package/dist/gids-sidebar.js +1 -0
- package/dist/gids-skeleton.d.ts +1 -1
- package/dist/gids-skeleton.js +1 -1
- package/dist/gids-snackbar.d.ts +1 -1
- package/dist/gids-tab-item.d.ts +1 -1
- package/dist/gids-tab-item.js +1 -1
- package/dist/gids-tab.d.ts +1 -1
- package/dist/gids-tab.js +1 -1
- package/dist/gids-text-field.d.ts +1 -1
- package/dist/gids-text-field.js +1 -1
- package/dist/gids-toggle-button.d.ts +1 -1
- package/dist/gids-toggle-button.js +1 -1
- package/dist/gids-tooltip.d.ts +1 -1
- package/dist/gids-tooltip.js +1 -1
- package/dist/gids-transfer-list.d.ts +1 -1
- package/dist/gids-transfer-list.js +1 -1
- package/dist/p--kh67-_Z.js +1 -0
- package/dist/{p-DrDadv7P.js → p-B2flLE0s.js} +1 -1
- package/dist/{p-jGho9nbS.js → p-BAqWcL0K.js} +1 -1
- package/dist/p-BCbovLBE.js +1 -0
- package/dist/{p-PcSMc4jQ.js → p-BIxBMTG9.js} +1 -1
- package/dist/{p-DgKrPmDn.js → p-BQT5yy5L.js} +1 -1
- package/dist/p-BRNvHMdK.js +1 -0
- package/dist/{p-CBiu-Vh3.js → p-B_FEFM5I.js} +1 -1
- package/dist/{p-Dw_kb9MC.js → p-B_St7yaX.js} +1 -1
- package/dist/{p-D0coZTd2.js → p-CAjDiWIc.js} +1 -1
- package/dist/{p-DYjV5XrH.js → p-CIjK3iHM.js} +1 -1
- package/dist/p-CV1-78HB.js +1 -0
- package/dist/{p-BdsUwTgh.js → p-D0RJMGGj.js} +1 -1
- package/dist/{p-CH4nrjpL.js → p-DKSnGphd.js} +1 -1
- package/dist/{p-CIxuyUAl.js → p-DLRj-mUX.js} +1 -1
- package/dist/{p-DKOr5iAk.js → p-DMxvWIj1.js} +1 -1
- package/dist/p-DQQhGF5N.js +1 -0
- package/dist/p-DZ1ZcTMe.js +1 -0
- package/dist/{p-BthkC6NU.js → p-DnRuhvRw.js} +1 -1
- package/dist/p-DpvdbdZ-.js +1 -0
- package/dist/{p-DZ6xQXis.js → p-DrxfD2yZ.js} +1 -1
- package/dist/{p-C6GHG170.js → p-Ds5IzXj3.js} +1 -1
- package/dist/{p-j2_DKwBz.js → p-DzOOjiNH.js} +1 -1
- package/dist/{p-Cacy0Dji.js → p-E13ycS5K.js} +1 -1
- package/dist/{p-Cz9nwmgK.js → p-TfH966_e.js} +1 -1
- package/dist/{p-CMW3SjbP.js → p-_W77iniK.js} +1 -1
- package/dist/p-bfWlRsx_.js +1 -0
- package/dist/p-kWyyLyT3.js +1 -0
- package/dist/{p-CrqHKmjy.js → p-mv_7K1EM.js} +1 -1
- package/dist/{p-xbqOQZl9.js → p-tEbUT3n3.js} +1 -1
- package/dist/types/components/html/GidsSidebarMenuItem/GidsSidebarMenuItem.d.ts +6 -0
- package/dist/types/components/shared/GidsFloatingElementManager.d.ts +1 -1
- package/dist/types/components/webComponents/GidsFlyoutPanel/GidsFlyoutPanel.d.ts +4 -0
- package/dist/types/components/webComponents/GidsForm/GidsForm.d.ts +32 -0
- package/dist/types/components/webComponents/GidsProfileMenuHeader/GidsProfileMenuHeader.d.ts +2 -0
- package/dist/types/components/webComponents/GidsSidebar/GidsSidebar.d.ts +55 -0
- package/dist/types/components/webComponents/GidsSidebarItem/GidsSidebarItem.d.ts +56 -0
- package/dist/types/components/webComponents/GidsSidebarMenu/GidsSidebarMenu.d.ts +38 -0
- package/dist/types/components.d.ts +462 -2
- package/dist-bundled/es/gids-action-bar.js +7 -7
- package/dist-bundled/es/gids-activity-gauge.js +3 -3
- package/dist-bundled/es/gids-advanced-tooltip.js +1 -1
- package/dist-bundled/es/gids-bar-chart.js +3 -3
- package/dist-bundled/es/gids-bento-card.js +1 -1
- package/dist-bundled/es/gids-calendar-header-panel.js +3 -3
- package/dist-bundled/es/gids-calendar-month-list.js +3 -3
- package/dist-bundled/es/gids-calendar-year-list.js +1 -1
- package/dist-bundled/es/gids-calendar.js +23 -23
- package/dist-bundled/es/gids-carousel.js +1 -1
- package/dist-bundled/es/gids-chart-legend-item.js +3 -3
- package/dist-bundled/es/gids-chart-legend.js +4 -4
- package/dist-bundled/es/gids-chart.js +21 -21
- package/dist-bundled/es/gids-chevron-button.js +4 -4
- package/dist-bundled/es/gids-dot.js +1 -1
- package/dist-bundled/es/gids-dropdown-field.js +5 -5
- package/dist-bundled/es/gids-dropdown-picker.js +4 -4
- package/dist-bundled/es/gids-dropdown.js +3 -3
- package/dist-bundled/es/gids-expansion-body-list-item.js +3 -3
- package/dist-bundled/es/gids-expansion-body-list.js +2 -2
- package/dist-bundled/es/gids-expansion-group.js +4 -4
- package/dist-bundled/es/gids-expansion.js +7 -7
- package/dist-bundled/es/gids-field.js +3 -3
- package/dist-bundled/es/gids-filter.js +1 -1
- package/dist-bundled/es/gids-flyout-panel.js +4 -108
- package/dist-bundled/es/gids-form.js +92 -0
- package/dist-bundled/es/gids-header-navigation-item.js +3 -3
- package/dist-bundled/es/gids-header-navigation.js +49 -62
- package/dist-bundled/es/gids-icon.js +3 -3
- package/dist-bundled/es/gids-input.js +1 -1
- package/dist-bundled/es/gids-line-chart.js +1 -1
- package/dist-bundled/es/gids-md-table.js +54 -54
- package/dist-bundled/es/gids-overflow-container.js +4 -4
- package/dist-bundled/es/gids-overlay-provider.js +2 -2
- package/dist-bundled/es/gids-password-field.js +12 -12
- package/dist-bundled/es/gids-pie-chart.js +4 -4
- package/dist-bundled/es/gids-popover.js +1 -1
- package/dist-bundled/es/gids-profile-menu-header.js +1 -1
- package/dist-bundled/es/gids-profile-menu.js +4 -4
- package/dist-bundled/es/gids-profile.js +13 -13
- package/dist-bundled/es/gids-scrim.js +1 -1
- package/dist-bundled/es/gids-sidebar-item.js +6 -0
- package/dist-bundled/es/gids-sidebar-menu.js +6 -0
- package/dist-bundled/es/gids-sidebar.js +150 -0
- package/dist-bundled/es/gids-skeleton.js +1 -1
- package/dist-bundled/es/gids-tab-item.js +13 -13
- package/dist-bundled/es/gids-tab.js +7 -7
- package/dist-bundled/es/gids-text-field.js +5 -5
- package/dist-bundled/es/gids-toggle-button.js +1 -1
- package/dist-bundled/es/gids-tooltip.js +4 -4
- package/dist-bundled/es/gids-transfer-list.js +25 -26
- package/dist-bundled/es/{p-Cf3Ny79u-VGT_IyGI.js → p--kh67-_Z-B-vf_gng.js} +12 -11
- package/dist-bundled/es/{p-DrDadv7P-D4rbSYTr.js → p-B2flLE0s-SMg7vg1a.js} +2 -2
- package/dist-bundled/es/{p-jGho9nbS-BDiBvsn2.js → p-BAqWcL0K-DNkV1R_C.js} +9 -9
- package/dist-bundled/es/p-BCbovLBE-CDxKiOtS.js +102 -0
- package/dist-bundled/es/{p-PcSMc4jQ-CzYLaIZr.js → p-BIxBMTG9-Ctr342ff.js} +12 -12
- package/dist-bundled/es/{p-DgKrPmDn-C2CSKicX.js → p-BQT5yy5L-C1C_zTi-.js} +4 -4
- package/dist-bundled/es/p-BRNvHMdK-CqGtfAsn.js +11 -0
- package/dist-bundled/es/{p-CBiu-Vh3-r-McGzCb.js → p-B_FEFM5I-JoBieRfG.js} +5 -5
- package/dist-bundled/es/{p-Dw_kb9MC-BTd0lrGA.js → p-B_St7yaX-Da4DWjGh.js} +4 -4
- package/dist-bundled/es/{p-D0coZTd2-KhJZ57gK.js → p-CAjDiWIc-C9dOa7FT.js} +1 -1
- package/dist-bundled/es/{p-DYjV5XrH-CI9LfBFx.js → p-CIjK3iHM-DEW8PRM5.js} +7 -7
- package/dist-bundled/es/{p-KQxuw_F--BTSoDfF9.js → p-CV1-78HB-C0k_l_CT.js} +18 -23
- package/dist-bundled/es/{p-BdsUwTgh-Cc7AQBsx.js → p-D0RJMGGj-BflZ9l8y.js} +4 -4
- package/dist-bundled/es/{p-CH4nrjpL-CrEJXTn0.js → p-DKSnGphd-CZSPfB-N.js} +8 -8
- package/dist-bundled/es/{p-CIxuyUAl-B2DxRM64.js → p-DLRj-mUX-BapdQYpI.js} +6 -6
- package/dist-bundled/es/{p-DKOr5iAk-DA3Kc4Cn.js → p-DMxvWIj1-BxbvrlFL.js} +11 -11
- package/dist-bundled/es/{p-GcC8pCKF-CZJFTFeN.js → p-DQQhGF5N-mCqb5VTE.js} +8 -8
- package/dist-bundled/es/p-DZ1ZcTMe-W8kofPko.js +10 -0
- package/dist-bundled/es/{p-BthkC6NU-F03MhDw7.js → p-DnRuhvRw-Beh0bANh.js} +2 -2
- package/dist-bundled/es/{p-Do_VlNHg-_g7lcvwR.js → p-Do_VlNHg-Ck03dQOR.js} +1 -1
- package/dist-bundled/es/p-DpvdbdZ--C7QlXxK2.js +118 -0
- package/dist-bundled/es/{p-DZ6xQXis-XT86MMis.js → p-DrxfD2yZ-Cetyr3S9.js} +9 -9
- package/dist-bundled/es/{p-C6GHG170-Di8lwQkY.js → p-Ds5IzXj3-B2o0ML2C.js} +13 -13
- package/dist-bundled/es/{p-j2_DKwBz-CqyuxxnN.js → p-DzOOjiNH-CqI4E-mj.js} +6 -6
- package/dist-bundled/es/{p-Cacy0Dji-D-D254kT.js → p-E13ycS5K-BBDydae3.js} +2 -2
- package/dist-bundled/es/{p-Cz9nwmgK-BO8HUAvD.js → p-TfH966_e-BzZRV8Rj.js} +8 -8
- package/dist-bundled/es/{p-CMW3SjbP-ZYYIF_i6.js → p-_W77iniK-ChKfEOp3.js} +2 -2
- package/dist-bundled/es/p-bfWlRsx_-CNZjBYOE.js +110 -0
- package/dist-bundled/es/p-iQRr_fAH-Dvv1n8QD.js +1650 -0
- package/dist-bundled/es/p-kWyyLyT3-VhX9LNzT.js +267 -0
- package/dist-bundled/es/{p-CrqHKmjy-DwSsCofb.js → p-mv_7K1EM-U3yKC45e.js} +2 -2
- package/dist-bundled/es/{p-xbqOQZl9-BK9vjfj7.js → p-tEbUT3n3-Byef6fQN.js} +11 -11
- package/dist-bundled/umd/gids-action-bar.umd.js +3 -3
- package/dist-bundled/umd/gids-activity-gauge.umd.js +2 -2
- package/dist-bundled/umd/gids-advanced-tooltip.umd.js +2 -2
- package/dist-bundled/umd/gids-bar-chart.umd.js +8 -8
- package/dist-bundled/umd/gids-bento-card.umd.js +2 -2
- package/dist-bundled/umd/gids-calendar-header-panel.umd.js +2 -2
- package/dist-bundled/umd/gids-calendar-month-list.umd.js +2 -2
- package/dist-bundled/umd/gids-calendar-year-list.umd.js +2 -2
- package/dist-bundled/umd/gids-calendar.umd.js +2 -2
- package/dist-bundled/umd/gids-carousel.umd.js +2 -2
- package/dist-bundled/umd/gids-chart-legend-item.umd.js +2 -2
- package/dist-bundled/umd/gids-chart-legend.umd.js +1 -1
- package/dist-bundled/umd/gids-chart.umd.js +5 -5
- package/dist-bundled/umd/gids-chevron-button.umd.js +2 -2
- package/dist-bundled/umd/gids-dot.umd.js +2 -2
- package/dist-bundled/umd/gids-dropdown-field.umd.js +2 -2
- package/dist-bundled/umd/gids-dropdown-picker.umd.js +2 -2
- package/dist-bundled/umd/gids-dropdown.umd.js +2 -2
- package/dist-bundled/umd/gids-expansion-body-list-item.umd.js +1 -1
- package/dist-bundled/umd/gids-expansion-body-list.umd.js +1 -1
- package/dist-bundled/umd/gids-expansion-group.umd.js +2 -2
- package/dist-bundled/umd/gids-expansion.umd.js +2 -2
- package/dist-bundled/umd/gids-field.umd.js +2 -2
- package/dist-bundled/umd/gids-filter.umd.js +3 -3
- package/dist-bundled/umd/gids-flyout-panel.umd.js +2 -2
- package/dist-bundled/umd/gids-form.umd.js +5 -0
- package/dist-bundled/umd/gids-header-navigation-item.umd.js +2 -2
- package/dist-bundled/umd/gids-header-navigation.umd.js +2 -2
- package/dist-bundled/umd/gids-icon.umd.js +2 -2
- package/dist-bundled/umd/gids-input.umd.js +2 -2
- package/dist-bundled/umd/gids-line-chart.umd.js +2 -2
- package/dist-bundled/umd/gids-md-table.umd.js +2 -2
- package/dist-bundled/umd/gids-overflow-container.umd.js +1 -1
- package/dist-bundled/umd/gids-overlay-provider.umd.js +2 -2
- package/dist-bundled/umd/gids-password-field.umd.js +2 -2
- package/dist-bundled/umd/gids-pie-chart.umd.js +2 -2
- package/dist-bundled/umd/gids-popover.umd.js +1 -1
- package/dist-bundled/umd/gids-profile-menu-header.umd.js +2 -2
- package/dist-bundled/umd/gids-profile-menu.umd.js +2 -2
- package/dist-bundled/umd/gids-profile.umd.js +2 -2
- package/dist-bundled/umd/gids-scrim.umd.js +1 -1
- package/dist-bundled/umd/gids-sidebar-item.umd.js +5 -0
- package/dist-bundled/umd/gids-sidebar-menu.umd.js +5 -0
- package/dist-bundled/umd/gids-sidebar.umd.js +5 -0
- package/dist-bundled/umd/gids-skeleton.umd.js +1 -1
- package/dist-bundled/umd/gids-tab-item.umd.js +1 -1
- package/dist-bundled/umd/gids-tab.umd.js +1 -1
- package/dist-bundled/umd/gids-text-field.umd.js +2 -2
- package/dist-bundled/umd/gids-toggle-button.umd.js +2 -2
- package/dist-bundled/umd/gids-tooltip.umd.js +2 -2
- package/dist-bundled/umd/gids-transfer-list.umd.js +2 -2
- package/dist-bundled/umd-complete/gids-core-web.umd.js +4 -4
- package/package.json +39 -7
- package/dist/p-B0hLXifA.js +0 -1
- package/dist/p-Cf3Ny79u.js +0 -1
- package/dist/p-GcC8pCKF.js +0 -1
- package/dist/p-KQxuw_F-.js +0 -1
- package/dist-bundled/es/p-B0hLXifA-CoImnX3T.js +0 -99
- package/dist-bundled/es/p-iQRr_fAH-ClfWEu03.js +0 -198
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(Q,lt){typeof exports=="object"&&typeof module<"u"?lt(exports):typeof define=="function"&&define.amd?define(["exports"],lt):(Q=typeof globalThis<"u"?globalThis:Q||self,lt(Q.gidsCoreWebGidsTooltip={}))})(this,(function(Q){"use strict";function lt(t,e,n){const o=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;t&&t!==o;){const i=Object.getOwnPropertyDescriptor(t,e);if(i&&(!n||i.get))return i;t=Object.getPrototypeOf(t)}}var gt,an=(t,e)=>{var n;Object.entries((n=e.o.t)!=null?n:{}).map((([o,[i]])=>{if(31&i||32&i){const s=t[o],l=lt(Object.getPrototypeOf(t),o,!0)||Object.getOwnPropertyDescriptor(t,o);l&&Object.defineProperty(t,o,{get(){return l.get.call(this)},set(r){l.set.call(this,r)},configurable:!0,enumerable:!0}),e.l.has(o)?t[o]=e.l.get(o):s!==void 0&&(t[o]=s)}}))},V=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},pe=(t,e)=>e in t,tt=(t,e)=>(0,console.error)(t,e),Ot=new Map,me="http://www.w3.org/1999/xlink",cn=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],O=typeof window<"u"?window:{},fn=O.HTMLElement||class{},T={i:0,u:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},
|
|
1
|
+
(function(Q,lt){typeof exports=="object"&&typeof module<"u"?lt(exports):typeof define=="function"&&define.amd?define(["exports"],lt):(Q=typeof globalThis<"u"?globalThis:Q||self,lt(Q.gidsCoreWebGidsTooltip={}))})(this,(function(Q){"use strict";function lt(t,e,n){const o=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;t&&t!==o;){const i=Object.getOwnPropertyDescriptor(t,e);if(i&&(!n||i.get))return i;t=Object.getPrototypeOf(t)}}var gt,an=(t,e)=>{var n;Object.entries((n=e.o.t)!=null?n:{}).map((([o,[i]])=>{if(31&i||32&i){const s=t[o],l=lt(Object.getPrototypeOf(t),o,!0)||Object.getOwnPropertyDescriptor(t,o);l&&Object.defineProperty(t,o,{get(){return l.get.call(this)},set(r){l.set.call(this,r)},configurable:!0,enumerable:!0}),e.l.has(o)?t[o]=e.l.get(o):s!==void 0&&(t[o]=s)}}))},V=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},pe=(t,e)=>e in t,tt=(t,e)=>(0,console.error)(t,e),Ot=new Map,me="http://www.w3.org/1999/xlink",cn=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],O=typeof window<"u"?window:{},fn=O.HTMLElement||class{},T={i:0,u:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},dn=(()=>{var t;let e=!1;try{(t=O.document)==null||t.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch{}return e})(),jt=(()=>{try{return!!O.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),Ht=!!jt&&!!O.document&&Object.getOwnPropertyDescriptor(O.document.adoptedStyleSheets,"length").writable,Vt=!1,ge=[],ye=[],un=(t,e)=>n=>{t.push(n),Vt||(Vt=!0,4&T.i?Bt(zt):T.raf(zt))},we=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(n){tt(n)}t.length=0},zt=()=>{we(ge),we(ye),(Vt=ge.length>0)&&T.raf(zt)},Bt=t=>Promise.resolve(void 0).then(t),hn=un(ye);function pn(){const t=this.attachShadow({mode:"open"});gt===void 0&&(gt=null),gt&&(Ht?t.adoptedStyleSheets.push(gt):t.adoptedStyleSheets=[...t.adoptedStyleSheets,gt])}var ve=t=>{const e=Ut(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&t.tagName!=="SLOT-FB"&&It(e,t.tagName).forEach((o=>{o.nodeType===1&&o.tagName==="SLOT-FB"&&(o.hidden=!!mn(o,yt(o),!1).length)}));let n=0;for(n=0;n<e.length;n++){const o=e[n];o.nodeType===1&&Ut(o,"childNodes").length&&ve(o)}};function It(t,e,n){let o,i=0,s=[];for(;i<t.length;i++){if(o=t[i],o["s-sr"]&&(!e||o["s-hn"]===e)&&(n===void 0||yt(o)===n)&&(s.push(o),n!==void 0))return s;s=[...s,...It(o.childNodes,e,n)]}return s}var mn=(t,e,n=!0)=>{const o=[];(n&&t["s-sr"]||!t["s-sr"])&&o.push(t);let i=t;for(;i=i.nextSibling;)yt(i)!==e||!n&&i["s-sr"]||o.push(i);return o},be=(t,e)=>t.nodeType===1?t.getAttribute("slot")===null&&e===""||t.getAttribute("slot")===e:t["s-sn"]===e||e==="",yt=t=>typeof t["s-sn"]=="string"?t["s-sn"]:t.nodeType===1&&t.getAttribute("slot")||void 0;function Ut(t,e){if("__"+e in t){const n=t["__"+e];return typeof n!="function"?n:n.bind(t)}return typeof t[e]!="function"?t[e]:t[e].bind(t)}var qt,et,q=new WeakMap,xe=t=>"sc-"+t.p,Yt=t=>(t=typeof t)=="object"||t==="function",rt=(t,e,...n)=>{let o=null,i=null,s=null,l=!1,r=!1;const a=[],d=c=>{for(let u=0;u<c.length;u++)o=c[u],Array.isArray(o)?d(o):o!=null&&typeof o!="boolean"&&((l=typeof t!="function"&&!Yt(o))&&(o=String(o)),l&&r?a[a.length-1].h+=o:a.push(l?At(null,o):o),r=l)};if(d(n),e){e.key&&(i=e.key),e.name&&(s=e.name);{const c=e.className||e.class;c&&(e.class=typeof c!="object"?c:Object.keys(c).filter((u=>c[u])).join(" "))}}if(typeof t=="function")return t(e===null?{}:e,a,yn);const f=At(t,null);return f.v=e,a.length>0&&(f.m=a),f.$=i,f.j=s,f},At=(t,e)=>({i:0,O:t,h:e??null,S:null,m:null,v:null,$:null,j:null}),gn={},yn={forEach:(t,e)=>t.map(Se).forEach(e),map:(t,e)=>t.map(Se).map(e).map(wn)},Se=t=>({vattrs:t.v,vchildren:t.m,vkey:t.$,vname:t.j,vtag:t.O,vtext:t.h}),wn=t=>{if(typeof t.vtag=="function"){const n={...t.vattrs};return t.vkey&&(n.key=t.vkey),t.vname&&(n.name=t.vname),rt(t.vtag,n,...t.vchildren||[])}const e=At(t.vtag,t.vtext);return e.v=t.vattrs,e.m=t.vchildren,e.$=t.vkey,e.j=t.vname,e},Ee=t=>{if(!t)return;const e=Object.keys(t);if(e.length===0)return;let n=!1;for(const i of e){if(n)break;for(const s of t[i])if(typeof s=="string"){n=!0;break}}if(!n)return t;const o={};for(const i of e)o[i]=t[i].map((s=>typeof s=="string"?{[s]:0}:s));return o},Oe=(t,e,n)=>t==null||Yt(t)?t:4&e?(n&&typeof t=="string"||t!=="false")&&(t===""||!!t):2&e?typeof t=="string"?parseFloat(t):typeof t=="number"?t:NaN:1&e?String(t):t,vn=(t,e,n)=>{const o=T.ce(e,n);return t.dispatchEvent(o),o},Ae=(t,e,n,o,i,s)=>{if(n===o)return;let l=pe(t,e),r=e.toLowerCase();if(e==="class"){const a=t.classList,d=Ce(n);let f=Ce(o);a.remove(...d.filter((c=>c&&!f.includes(c)))),a.add(...f.filter((c=>c&&!d.includes(c))))}else if(e==="style"){for(const a in n)o&&o[a]!=null||(a.includes("-")?t.style.removeProperty(a):t.style[a]="");for(const a in o)n&&o[a]===n[a]||(a.includes("-")?t.style.setProperty(a,o[a]):t.style[a]=o[a])}else if(e!=="key"){if(e==="ref")o&&Sn(o,t);else if(t.__lookupSetter__(e)||e[0]!=="o"||e[1]!=="n"){if(e[0]==="a"&&e.startsWith("attr:")){const a=e.slice(5);let d;{const f=V(t);if(f&&f.o&&f.o.t){const c=f.o.t[a];c&&c[1]&&(d=c[1])}}return d||(d=a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(o==null||o===!1?o===!1&&t.getAttribute(d)!==""||t.removeAttribute(d):t.setAttribute(d,o===!0?"":o))}if(e[0]==="p"&&e.startsWith("prop:")){const a=e.slice(5);try{t[a]=o}catch{}return}{const a=Yt(o);if((l||a&&o!==null)&&!i)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const f=o??"";e==="list"?l=!1:n!=null&&t[e]===f||(typeof t.__lookupSetter__(e)=="function"?t[e]=f:t.setAttribute(e,f))}}catch{}let d=!1;r!==(r=r.replace(/^xlink\:?/,""))&&(e=r,d=!0),o==null||o===!1?o===!1&&t.getAttribute(e)!==""||(d?t.removeAttributeNS(me,e):t.removeAttribute(e)):(!l||4&s||i)&&!a&&t.nodeType===1&&(o=o===!0?"":o,d?t.setAttributeNS(me,e,o):t.setAttribute(e,o))}}else if(e=e[2]==="-"?e.slice(3):pe(O,r)?r.slice(2):r[2]+e.slice(3),n||o){const a=e.endsWith(Te);e=e.replace(xn,""),n&&T.rel(t,e,n,a),o&&T.ael(t,e,o,a)}}},bn=/\s/,Ce=t=>(typeof t=="object"&&t&&"baseVal"in t&&(t=t.baseVal),t&&typeof t=="string"?t.split(bn):[]),Te="Capture",xn=new RegExp(Te+"$"),Xt=(t,e,n)=>{const o=e.S.nodeType===11&&e.S.host?e.S.host:e.S,i=t&&t.v||{},s=e.v||{};for(const l of Ne(Object.keys(i)))l in s||Ae(o,l,i[l],void 0,n,e.i);for(const l of Ne(Object.keys(s)))Ae(o,l,i[l],s[l],n,e.i)};function Ne(t){return t.includes("ref")?[...t.filter((e=>e!=="ref")),"ref"]:t}var wt=!1,Ct=!1,Tt=!1,k=!1,Gt=[],Zt=[],Nt=(t,e,n)=>{var o;const i=e.m[n];let s,l,r,a=0;if(wt||(Tt=!0,i.O==="slot"&&(i.i|=i.m?2:1)),i.h!=null)s=i.S=O.document.createTextNode(i.h);else if(1&i.i)s=i.S=O.document.createTextNode(""),Xt(null,i,k);else{if(k||(k=i.O==="svg"),!O.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(s=i.S=O.document.createElementNS(k?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!wt&&2&i.i?"slot-fb":i.O),k&&i.O==="foreignObject"&&(k=!1),Xt(null,i,k),i.m){const d=i.O==="template"?s.content:s;for(a=0;a<i.m.length;++a)l=Nt(t,i,a),l&&d.appendChild(l)}i.O==="svg"?k=!1:s.tagName==="foreignObject"&&(k=!0)}return s["s-hn"]=et,3&i.i&&(s["s-sr"]=!0,s["s-cr"]=qt,s["s-sn"]=i.j||"",s["s-rf"]=(o=i.v)==null?void 0:o.ref,(function(d){if(d.assignedElements||d.assignedNodes||!d["s-sr"])return;const f=c=>(function(u){const p=[],h=this["s-sn"];u?.flatten&&console.error(`
|
|
2
2
|
Flattening is not supported for Stencil non-shadow slots.
|
|
3
3
|
You can use \`.childNodes\` to nested slot fallback content.
|
|
4
4
|
If you have a particular use case, please open an issue on the Stencil repo.
|
|
5
|
-
`);const w=this["s-cr"].parentElement;return(w.__childNodes?w.childNodes:(v=>{const m=[];for(let g=0;g<v.length;g++){const y=v[g]["s-nr"]||void 0;y&&y.isConnected&&m.push(y)}return m})(w.childNodes)).forEach((v=>{h===yt(v)&&p.push(v)})),c?p.filter((v=>v.nodeType===1)):p}).bind(u);u.assignedElements=f(!0),u.assignedNodes=f(!1)})(s),r=t&&t.m&&t.m[n],r&&r.O===i.O&&t.S&&Re(t.S)),s},Re=t=>{T.i|=1;const e=t.closest(et.toLowerCase());if(e!=null){const n=Array.from(e.__childNodes||e.childNodes).find((i=>i["s-cr"])),o=Array.from(t.__childNodes||t.childNodes);for(const i of n?o.reverse():o)i["s-sh"]!=null&&($(e,i,n??null),i["s-sh"]=void 0,Tt=!0)}T.i&=-2},Rt=(t,e)=>{T.i|=1;const n=Array.from(t.__childNodes||t.childNodes);if(t["s-sr"]){let o=t;for(;o=o.nextSibling;)o&&o["s-sn"]===t["s-sn"]&&o["s-sh"]===et&&n.push(o)}for(let o=n.length-1;o>=0;o--){const i=n[o];i["s-hn"]!==et&&i["s-ol"]&&($(vt(i).parentNode,i,vt(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,Tt=!0),e&&Rt(i,e)}T.i&=-2},ke=(t,e,n,o,i,s)=>{let l,r=t["s-cr"]&&t["s-cr"].parentNode||t;for(r.shadowRoot&&r.tagName===et&&(r=r.shadowRoot),n.O==="template"&&(r=r.content);i<=s;++i)o[i]&&(l=Nt(null,n,i),l&&(o[i].S=l,$(r,l,vt(e))))},Le=(t,e,n)=>{for(let o=e;o<=n;++o){const i=t[o];if(i){const s=i.S;$e(i),s&&(Ct=!0,s["s-ol"]?s["s-ol"].remove():Rt(s,!0),s.remove())}}},kt=(t,e,n=!1)=>t.O===e.O&&(t.O==="slot"?t.j===e.j:n?(n&&!t.$&&e.$&&(t.$=e.$),!0):t.$===e.$),vt=t=>t&&t["s-ol"]||t,at=(t,e,n=!1)=>{const o=e.S=t.S,i=t.m,s=e.m,l=e.O,r=e.h;let a;r==null?(k=l==="svg"||l!=="foreignObject"&&k,l!=="slot"||wt||t.j!==e.j&&(e.S["s-sn"]=e.j||"",Re(e.S.parentElement)),Xt(t,e,k),i!==null&&s!==null?((u,f,c,d,p=!1)=>{let h,w,v=0,m=0,g=0,y=0,x=f.length-1,b=f[0],S=f[x],E=d.length-1,A=d[0],C=d[E];const N=c.O==="template"?u.content:u;for(;v<=x&&m<=E;)if(b==null)b=f[++v];else if(S==null)S=f[--x];else if(A==null)A=d[++m];else if(C==null)C=d[--E];else if(kt(b,A,p))at(b,A,p),b=f[++v],A=d[++m];else if(kt(S,C,p))at(S,C,p),S=f[--x],C=d[--E];else if(kt(b,C,p))b.O!=="slot"&&C.O!=="slot"||Rt(b.S.parentNode,!1),at(b,C,p),$(N,b.S,S.S.nextSibling),b=f[++v],C=d[--E];else if(kt(S,A,p))b.O!=="slot"&&C.O!=="slot"||Rt(S.S.parentNode,!1),at(S,A,p),$(N,S.S,b.S),S=f[--x],A=d[++m];else{for(g=-1,y=v;y<=x;++y)if(f[y]&&f[y].$!==null&&f[y].$===A.$){g=y;break}g>=0?(w=f[g],w.O!==A.O?h=Nt(f&&f[m],c,g):(at(w,A,p),f[g]=void 0,h=w.S),A=d[++m]):(h=Nt(f&&f[m],c,m),A=d[++m]),h&&$(vt(b.S).parentNode,h,vt(b.S))}v>x?ke(u,d[E+1]==null?null:d[E+1].S,c,d,m,E):m>E&&Le(f,v,x)})(o,i,e,s,n):s!==null?(t.h!==null&&(o.textContent=""),ke(o,null,e,s,0,s.length-1)):!n&&i!==null&&Le(i,0,i.length-1),k&&l==="svg"&&(k=!1)):(a=o["s-cr"])?a.parentNode.textContent=r:t.h!==r&&(o.data=r)},z=[],_e=t=>{let e,n,o;const i=t.__childNodes||t.childNodes;for(const s of i){if(s["s-sr"]&&(e=s["s-cr"])&&e.parentNode){n=e.parentNode.__childNodes||e.parentNode.childNodes;const l=s["s-sn"];for(o=n.length-1;o>=0;o--)if(e=n[o],!(e["s-cn"]||e["s-nr"]||e["s-hn"]===s["s-hn"]||e["s-sh"]&&e["s-sh"]===s["s-hn"]))if(be(e,l)){let r=z.find((a=>a.k===e));Ct=!0,e["s-sn"]=e["s-sn"]||l,r?(r.k["s-sh"]=s["s-hn"],r.N=s):(e["s-sh"]=s["s-hn"],z.push({N:s,k:e})),e["s-sr"]&&z.map((a=>{be(a.k,e["s-sn"])&&(r=z.find((u=>u.k===e)),r&&!a.N&&(a.N=r.N))}))}else z.some((r=>r.k===e))||z.push({k:e})}s.nodeType===1&&_e(s)}},$e=t=>{t.v&&t.v.ref&&Gt.push((()=>t.v.ref(null))),t.m&&t.m.map($e)},Sn=(t,e)=>{Zt.push((()=>t(e)))},$=(t,e,n,o)=>{if(typeof e["s-sn"]=="string"){t.insertBefore(e,n);const{slotNode:i}=(function(s,l){var r;if(!(l=l||((r=s["s-ol"])==null?void 0:r.parentElement)))return{slotNode:null,slotName:""};const a=s["s-sn"]=yt(s)||"";return{slotNode:It(Ut(l,"childNodes"),l.tagName,a)[0],slotName:a}})(e);return i&&!o&&i.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),e}return t.__insertBefore?t.__insertBefore(e,n):t?.insertBefore(e,n)},En=(t,e,n=!1)=>{var o,i,s,l,r;const a=t.$hostElement$,u=t.o,f=t.M||At(null,null);var c;const d=(c=e)&&c.O===gn?e:rt(null,null,e);if(et=a.tagName,u.C&&(d.v=d.v||{},u.C.forEach((([p,h])=>{d.v[h]=a[p]}))),n&&d.v)for(const p of Object.keys(d.v))a.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(d.v[p]=a[p]);if(d.O=null,d.i|=4,t.M=d,d.S=f.S=a.shadowRoot||a,wt=!(!(1&u.i)||128&u.i),qt=a["s-cr"],Ct=!1,at(f,d,n),T.i|=1,Tt){_e(d.S);for(const p of z){const h=p.k;if(!h["s-ol"]&&O.document){const w=O.document.createTextNode("");w["s-nr"]=h,$(h.parentNode,h["s-ol"]=w,h,n)}}for(const p of z){const h=p.k,w=p.N;if(h.nodeType===1&&n&&(h["s-ih"]=(o=h.hidden)!=null&&o),w){const v=w.parentNode;let m=w.nextSibling;if(m&&m.nodeType===1){let g=(i=h["s-ol"])==null?void 0:i.previousSibling;for(;g;){let y=(s=g["s-nr"])!=null?s:null;if(y&&y["s-sn"]===h["s-sn"]&&v===(y.__parentNode||y.parentNode)){for(y=y.nextSibling;y===h||y?.["s-sr"];)y=y?.nextSibling;if(!y||!y["s-nr"]){m=y;break}}g=g.previousSibling}}if((!m&&v!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==m)&&h!==m){if($(v,h,m,n),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const g=O.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=h["s-hn"],g["s-sn"]=h["s-sn"],g["s-sh"]=h["s-sh"],g["s-sr"]=h["s-sr"],g["s-ol"]=h["s-ol"],g["s-ol"]["s-nr"]=g,$(h.parentNode,g,h,n),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(l=h["s-ih"])!=null&&l)}h&&typeof w["s-rf"]=="function"&&w["s-rf"](w)}else h.nodeType===1&&(h.hidden=!0)}}if(Ct&&ve(d.S),T.i&=-2,z.length=0,!wt&&!(1&u.i)&&a["s-cr"]){const p=d.S.__childNodes||d.S.childNodes;for(const h of p)if(h["s-hn"]!==et&&!h["s-sh"]){if(n&&h["s-ih"]==null&&(h["s-ih"]=(r=h.hidden)!=null&&r),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const w=O.document.createComment("s-nt-"+h.nodeValue);w["s-sn"]=h["s-sn"],$(h.parentNode,w,h,n),h.parentNode.removeChild(h)}}}qt=void 0,Gt.forEach((p=>p())),Gt.length=0,Zt.forEach((p=>p())),Zt.length=0},De=(t,e)=>{if(e&&!t.A&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.A=()=>{e["s-p"].splice(n-1,1),o()})))}},Kt=(t,e)=>{if(t.i|=16,4&t.i)return void(t.i|=512);De(t,t.R);const n=()=>On(t,e);if(!e)return hn(n);queueMicrotask((()=>{n()}))},On=(t,e)=>{const n=t.$hostElement$,o=n;if(!o)throw new Error(`Can't render component <${n.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 i;return i=bt(o,e?"componentWillLoad":"componentWillUpdate",void 0,n),i=Pe(i,(()=>bt(o,"componentWillRender",void 0,n))),Pe(i,(()=>Cn(t,o,e)))},Pe=(t,e)=>An(t)?t.then(e).catch((n=>{console.error(n),e()})):e(),An=t=>t instanceof Promise||t&&t.then&&typeof t.then=="function",Cn=async(t,e,n)=>{var o;const i=t.$hostElement$,s=i["s-rc"];n&&(l=>{const r=l.o,a=l.$hostElement$,u=r.i,f=((c,d)=>{var p,h,w;const v=xe(d),m=Ot.get(v);if(!O.document)return v;if(c=c.nodeType===11?c:O.document,m)if(typeof m=="string"){let g,y=q.get(c=c.head||c);if(y||q.set(c,y=new Set),!y.has(v)){g=O.document.createElement("style"),g.textContent=m;const x=(p=T._)!=null?p:(function(){var b,S,E;return(E=(S=(b=O.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:S.getAttribute("content"))!=null?E:void 0})();if(x!=null&&g.setAttribute("nonce",x),!(1&d.i))if(c.nodeName==="HEAD"){const b=c.querySelectorAll("link[rel=preconnect]"),S=b.length>0?b[b.length-1].nextSibling:c.querySelector("style");c.insertBefore(g,S?.parentNode===c?S:null)}else if("host"in c)if(jt){const b=new((h=c.defaultView)!=null?h:c.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(m),Ht?c.adoptedStyleSheets.unshift(b):c.adoptedStyleSheets=[b,...c.adoptedStyleSheets]}else{const b=c.querySelector("style");b?b.textContent=m+b.textContent:c.prepend(g)}else c.append(g);1&d.i&&c.insertBefore(g,null),4&d.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),y&&y.add(v)}}else{let g=q.get(c);if(g||q.set(c,g=new Set),!g.has(v)){const y=(w=c.defaultView)!=null?w:c.ownerDocument.defaultView;let x;if(m.constructor===y.CSSStyleSheet)x=m;else{x=new y.CSSStyleSheet;for(let b=0;b<m.cssRules.length;b++)x.insertRule(m.cssRules[b].cssText,b)}Ht?c.adoptedStyleSheets.push(x):c.adoptedStyleSheets=[...c.adoptedStyleSheets,x],g.add(v)}}return v})(a.shadowRoot?a.shadowRoot:a.getRootNode(),r);10&u&&(a["s-sc"]=f,a.classList.add(f+"-h"))})(t),Tn(t,e,i,n),s&&(s.map((l=>l())),i["s-rc"]=void 0);{const l=(o=i["s-p"])!=null?o:[],r=()=>Nn(t);l.length===0?r():(Promise.all(l).then(r).catch(r),t.i|=4,l.length=0)}},Tn=(t,e,n,o)=>{try{e=e.render(),t.i&=-17,t.i|=2,En(t,e,o)}catch(i){tt(i,t.$hostElement$)}return null},Nn=t=>{const e=t.$hostElement$,n=e,o=t.R;bt(n,"componentDidRender",void 0,e),64&t.i?bt(n,"componentDidUpdate",void 0,e):(t.i|=64,kn(e),bt(n,"componentDidLoad",void 0,e),t.L(e),o||Rn()),t.A&&(t.A(),t.A=void 0),512&t.i&&Bt((()=>Kt(t,!1))),t.i&=-517},Rn=()=>{Bt((()=>vn(O,"appload",{detail:{namespace:"gids-core-web"}})))},bt=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(i){tt(i,o)}},kn=t=>t.classList.add("hydrated"),Me=(t,e,n,o)=>{const i=V(t);if(!i)return;const s=t,l=i.l.get(e),r=i.i,a=s;n=Oe(n,o.t[e][0],!!(64&o.i));const u=Number.isNaN(l)&&Number.isNaN(n);if(n!==l&&!u){if(i.l.set(e,n),o.F){const f=o.F[e];f&&f.map((c=>{try{const[[d,p]]=Object.entries(c);(128&r||1&p)&&(a?a[d](n,l,e):i.T.push((()=>{i.D[d](n,l,e)})))}catch(d){tt(d,s)}}))}if(2&r){if(a.componentShouldUpdate&&a.componentShouldUpdate(n,l,e)===!1&&!(16&r))return;16&r||Kt(i,!1)}}},Ln=(t,e,n)=>{var o,i;const s=t.prototype;64&e.i&&1&n&&cn.forEach((l=>{const r=s[l];Object.defineProperty(s,l,{value(...a){var u;const f=V(this),c=this;c?typeof r=="function"&&r.call(c,...a):(u=f?.H)==null||u.then((d=>{const p=d[l];typeof p=="function"&&p.call(d,...a)}))}})}));{t.watchers&&!e.F&&(e.F=Ee(t.watchers)),t.deserializers&&!e.P&&(e.P=t.deserializers),t.serializers&&!e.U&&(e.U=t.serializers);const l=Object.entries((o=e.t)!=null?o:{});l.map((([r,[a]])=>{if(31&a||32&a){const{get:u,set:f}=lt(s,r)||{};u&&(e.t[r][0]|=2048),f&&(e.t[r][0]|=4096),Object.defineProperty(s,r,{get(){return u?u.apply(this):(c=r,V(this).l.get(c));var c},configurable:!0,enumerable:!0}),Object.defineProperty(s,r,{set(c){const d=V(this);if(d){if(f)return(32&a?this[r]:d.$hostElement$[r])===void 0&&d.l.get(r)&&(c=d.l.get(r)),f.apply(this,[Oe(c,a,!!(64&e.i))]),void Me(this,r,c=32&a?this[r]:d.$hostElement$[r],e);Me(this,r,c,e)}}})}}));{const r=new Map;s.attributeChangedCallback=function(a,u,f){T.jmp((()=>{var c;const d=r.get(a),p=V(this);if(this.hasOwnProperty(d),s.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==f)return;if(d==null){const g=p?.i;if(p&&g&&!(8&g)&&f!==u){const y=this,x=(c=e.F)==null?void 0:c[a];x?.forEach((b=>{const[[S,E]]=Object.entries(b);y[S]!=null&&(128&g||1&E)&&y[S].call(y,f,u,a)}))}return}const h=l.find((([g])=>g===d)),w=h&&4&h[1][0],v=w&&f===null&&this[d]===void 0;w&&(f=f!==null&&f!=="false");const m=Object.getOwnPropertyDescriptor(s,d);v||f==this[d]||m.get&&!m.set||(this[d]=f)}))},t.observedAttributes=Array.from(new Set([...Object.keys((i=e.F)!=null?i:{}),...l.filter((([a,u])=>31&u[0])).map((([a,u])=>{var f;const c=u[1]||a;return r.set(c,a),512&u[0]&&((f=e.C)==null||f.push([a,c])),c}))]))}}return t},_n=(t,e)=>{const n={i:e[0],p:e[1]};try{n.t=e[2],n.W=e[3],n.F=Ee(t.F),n.P=t.P,n.U=t.U,n.C=[];const o=t.prototype.connectedCallback,i=t.prototype.disconnectedCallback;return Object.assign(t.prototype,{__hasHostListenerAttached:!1,__registerHost(){((s,l)=>{const r={i:0,$hostElement$:s,o:l,l:new Map,B:new Map};r.H=new Promise((u=>r.L=u)),s["s-p"]=[],s["s-rc"]=[];const a=r;s.__stencil__getHostRef=()=>a,512&l.i&&an(s,r)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){const s=V(this);if(!s)return;Fe(this,s,n.W),this.__hasHostListenerAttached=!0}(s=>{if(!(1&T.i)){const l=V(s);if(!l)return;const r=l.o;if(1&l.i)Fe(s,l,r.W),l?.D||l?.H&&l.H.then((()=>{}));else{l.i|=1,12&r.i&&(a=>{if(!O.document)return;const u=a["s-cr"]=O.document.createComment("");u["s-cn"]=!0,$(a,u,a.firstChild)})(s);{let a=s;for(;a=a.parentNode||a.host;)if(a["s-p"]){De(l,l.R=a);break}}r.t&&Object.entries(r.t).map((([a,[u]])=>{if(31&u&&Object.prototype.hasOwnProperty.call(s,a)){const f=s[a];delete s[a],s[a]=f}})),(async(a,u,f)=>{let c;try{if(!(32&u.i)&&(u.i|=32,c=a.constructor,customElements.whenDefined(a.localName).then((()=>u.i|=128)),c&&c.style)){let h;typeof c.style=="string"&&(h=c.style);const w=xe(f);Ot.has(w)||((v,m,g)=>{let y=Ot.get(v);jt&&g?(y=y||new CSSStyleSheet,typeof y=="string"?y=m:y.replaceSync(m)):y=m,Ot.set(v,y)})(w,h,!!(1&f.i))}const d=u.R,p=()=>Kt(u,!0);d&&d["s-rc"]?d["s-rc"].push(p):p()}catch(d){tt(d,a),u.A&&(u.A(),u.A=void 0),u.L&&u.L(a)}})(s,l,r)}}})(this),o&&o.call(this)},disconnectedCallback(){(async s=>{if(!(1&T.i)){const l=V(s);l?.V&&(l.V.map((r=>r())),l.V=void 0)}q.has(s)&&q.delete(s),s.shadowRoot&&q.has(s.shadowRoot)&&q.delete(s.shadowRoot)})(this),i&&i.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else pn.call(this,n)}}),Object.defineProperty(t,"is",{value:n.p,configurable:!0}),Ln(t,n,3)}catch(o){return tt(o),t}},$n=(t,e)=>e,Fe=(t,e,n)=>{n&&O.document&&n.map((([o,i,s])=>{const l=Pn(O.document,t,o),r=Dn(e,s),a=Mn(o);T.ael(l,i,r,a),(e.V=e.V||[]).push((()=>T.rel(l,i,r,a)))}))},Dn=(t,e)=>n=>{try{t.$hostElement$[e](n)}catch(o){tt(o,t.$hostElement$)}},Pn=(t,e,n)=>8&n?O:e,Mn=t=>un?{passive:!!(1&t),capture:!!(2&t)}:!!(2&t);function Do(t){return t}const Y=Math.min,L=Math.max,Lt=Math.round,_t=Math.floor,W=t=>({x:t,y:t}),Fn={left:"right",right:"left",bottom:"top",top:"bottom"};function Jt(t,e,n){return L(t,Y(e,n))}function ct(t,e){return typeof t=="function"?t(e):t}function X(t){return t.split("-")[0]}function ft(t){return t.split("-")[1]}function We(t){return t==="x"?"y":"x"}function Qt(t){return t==="y"?"height":"width"}function B(t){const e=t[0];return e==="t"||e==="b"?"y":"x"}function te(t){return We(B(t))}function Wn(t,e,n){n===void 0&&(n=!1);const o=ft(t),i=te(t),s=Qt(i);let l=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(l=$t(l)),[l,$t(l)]}function jn(t){const e=$t(t);return[ee(t),e,ee(e)]}function ee(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const je=["left","right"],He=["right","left"],Hn=["top","bottom"],Vn=["bottom","top"];function zn(t,e,n){switch(t){case"top":case"bottom":return n?e?He:je:e?je:He;case"left":case"right":return e?Hn:Vn;default:return[]}}function Bn(t,e,n,o){const i=ft(t);let s=zn(X(t),n==="start",o);return i&&(s=s.map(l=>l+"-"+i),e&&(s=s.concat(s.map(ee)))),s}function $t(t){const e=X(t);return Fn[e]+t.slice(e.length)}function In(t){return{top:0,right:0,bottom:0,left:0,...t}}function Ve(t){return typeof t!="number"?In(t):{top:t,right:t,bottom:t,left:t}}function Dt(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function ze(t,e,n){let{reference:o,floating:i}=t;const s=B(e),l=te(e),r=Qt(l),a=X(e),u=s==="y",f=o.x+o.width/2-i.width/2,c=o.y+o.height/2-i.height/2,d=o[r]/2-i[r]/2;let p;switch(a){case"top":p={x:f,y:o.y-i.height};break;case"bottom":p={x:f,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:c};break;case"left":p={x:o.x-i.width,y:c};break;default:p={x:o.x,y:o.y}}switch(ft(e)){case"start":p[l]-=d*(n&&u?-1:1);break;case"end":p[l]+=d*(n&&u?-1:1);break}return p}async function Un(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:s,rects:l,elements:r,strategy:a}=t,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:c="floating",altBoundary:d=!1,padding:p=0}=ct(e,t),h=Ve(p),v=r[d?c==="floating"?"reference":"floating":c],m=Dt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(v)))==null||n?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(r.floating)),boundary:u,rootBoundary:f,strategy:a})),g=c==="floating"?{x:o,y:i,width:l.floating.width,height:l.floating.height}:l.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(r.floating)),x=await(s.isElement==null?void 0:s.isElement(y))?await(s.getScale==null?void 0:s.getScale(y))||{x:1,y:1}:{x:1,y:1},b=Dt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:r,rect:g,offsetParent:y,strategy:a}):g);return{top:(m.top-b.top+h.top)/x.y,bottom:(b.bottom-m.bottom+h.bottom)/x.y,left:(m.left-b.left+h.left)/x.x,right:(b.right-m.right+h.right)/x.x}}const qn=50,Yn=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:l}=n,r=l.detectOverflow?l:{...l,detectOverflow:Un},a=await(l.isRTL==null?void 0:l.isRTL(e));let u=await l.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:c}=ze(u,o,a),d=o,p=0;const h={};for(let w=0;w<s.length;w++){const v=s[w];if(!v)continue;const{name:m,fn:g}=v,{x:y,y:x,data:b,reset:S}=await g({x:f,y:c,initialPlacement:o,placement:d,strategy:i,middlewareData:h,rects:u,platform:r,elements:{reference:t,floating:e}});f=y??f,c=x??c,h[m]={...h[m],...b},S&&p<qn&&(p++,typeof S=="object"&&(S.placement&&(d=S.placement),S.rects&&(u=S.rects===!0?await l.getElementRects({reference:t,floating:e,strategy:i}):S.rects),{x:f,y:c}=ze(u,d,a)),w=-1)}return{x:f,y:c,placement:d,strategy:i,middlewareData:h}},Xn=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:s,platform:l,elements:r,middlewareData:a}=e,{element:u,padding:f=0}=ct(t,e)||{};if(u==null)return{};const c=Ve(f),d={x:n,y:o},p=te(i),h=Qt(p),w=await l.getDimensions(u),v=p==="y",m=v?"top":"left",g=v?"bottom":"right",y=v?"clientHeight":"clientWidth",x=s.reference[h]+s.reference[p]-d[p]-s.floating[h],b=d[p]-s.reference[p],S=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u));let E=S?S[y]:0;(!E||!await(l.isElement==null?void 0:l.isElement(S)))&&(E=r.floating[y]||s.floating[h]);const A=x/2-b/2,C=E/2-w[h]/2-1,N=Y(c[m],C),Z=Y(c[g],C),H=N,K=E-w[h]-Z,R=E/2-w[h]/2+A,st=Jt(H,R,K),U=!a.arrow&&ft(i)!=null&&R!==st&&s.reference[h]/2-(R<H?N:Z)-w[h]/2<0,M=U?R<H?R-H:R-K:0;return{[p]:d[p]+M,data:{[p]:st,centerOffset:R-st-M,...U&&{alignmentOffset:M}},reset:U}}}),Gn=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:s,rects:l,initialPlacement:r,platform:a,elements:u}=e,{mainAxis:f=!0,crossAxis:c=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:w=!0,...v}=ct(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const m=X(i),g=B(r),y=X(r)===r,x=await(a.isRTL==null?void 0:a.isRTL(u.floating)),b=d||(y||!w?[$t(r)]:jn(r)),S=h!=="none";!d&&S&&b.push(...Bn(r,w,h,x));const E=[r,...b],A=await a.detectOverflow(e,v),C=[];let N=((o=s.flip)==null?void 0:o.overflows)||[];if(f&&C.push(A[m]),c){const R=Wn(i,l,x);C.push(A[R[0]],A[R[1]])}if(N=[...N,{placement:i,overflows:C}],!C.every(R=>R<=0)){var Z,H;const R=(((Z=s.flip)==null?void 0:Z.index)||0)+1,st=E[R];if(st&&(!(c==="alignment"?g!==B(st):!1)||N.every(F=>B(F.placement)===g?F.overflows[0]>0:!0)))return{data:{index:R,overflows:N},reset:{placement:st}};let U=(H=N.filter(M=>M.overflows[0]<=0).sort((M,F)=>M.overflows[1]-F.overflows[1])[0])==null?void 0:H.placement;if(!U)switch(p){case"bestFit":{var K;const M=(K=N.filter(F=>{if(S){const J=B(F.placement);return J===g||J==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(J=>J>0).reduce((J,$o)=>J+$o,0)]).sort((F,J)=>F[1]-J[1])[0])==null?void 0:K[0];M&&(U=M);break}case"initialPlacement":U=r;break}if(i!==U)return{reset:{placement:U}}}return{}}}},Zn=new Set(["left","top"]);async function Kn(t,e){const{placement:n,platform:o,elements:i}=t,s=await(o.isRTL==null?void 0:o.isRTL(i.floating)),l=X(n),r=ft(n),a=B(n)==="y",u=Zn.has(l)?-1:1,f=s&&a?-1:1,c=ct(e,t);let{mainAxis:d,crossAxis:p,alignmentAxis:h}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return r&&typeof h=="number"&&(p=r==="end"?h*-1:h),a?{x:p*f,y:d*u}:{x:d*u,y:p*f}}const Jn=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:s,placement:l,middlewareData:r}=e,a=await Kn(e,t);return l===((n=r.offset)==null?void 0:n.placement)&&(o=r.arrow)!=null&&o.alignmentOffset?{}:{x:i+a.x,y:s+a.y,data:{...a,placement:l}}}}},Qn=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i,platform:s}=e,{mainAxis:l=!0,crossAxis:r=!1,limiter:a={fn:m=>{let{x:g,y}=m;return{x:g,y}}},...u}=ct(t,e),f={x:n,y:o},c=await s.detectOverflow(e,u),d=B(X(i)),p=We(d);let h=f[p],w=f[d];if(l){const m=p==="y"?"top":"left",g=p==="y"?"bottom":"right",y=h+c[m],x=h-c[g];h=Jt(y,h,x)}if(r){const m=d==="y"?"top":"left",g=d==="y"?"bottom":"right",y=w+c[m],x=w-c[g];w=Jt(y,w,x)}const v=a.fn({...e,[p]:h,[d]:w});return{...v,data:{x:v.x-n,y:v.y-o,enabled:{[p]:l,[d]:r}}}}}},to=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:i,rects:s,platform:l,elements:r}=e,{apply:a=()=>{},...u}=ct(t,e),f=await l.detectOverflow(e,u),c=X(i),d=ft(i),p=B(i)==="y",{width:h,height:w}=s.floating;let v,m;c==="top"||c==="bottom"?(v=c,m=d===(await(l.isRTL==null?void 0:l.isRTL(r.floating))?"start":"end")?"left":"right"):(m=c,v=d==="end"?"top":"bottom");const g=w-f.top-f.bottom,y=h-f.left-f.right,x=Y(w-f[v],g),b=Y(h-f[m],y),S=!e.middlewareData.shift;let E=x,A=b;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(A=y),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(E=g),S&&!d){const N=L(f.left,0),Z=L(f.right,0),H=L(f.top,0),K=L(f.bottom,0);p?A=h-2*(N!==0||Z!==0?N+Z:L(f.left,f.right)):E=w-2*(H!==0||K!==0?H+K:L(f.top,f.bottom))}await a({...e,availableWidth:A,availableHeight:E});const C=await l.getDimensions(r.floating);return h!==C.width||w!==C.height?{reset:{rects:!0}}:{}}}};function Pt(){return typeof window<"u"}function ut(t){return Be(t)?(t.nodeName||"").toLowerCase():"#document"}function _(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function j(t){var e;return(e=(Be(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Be(t){return Pt()?t instanceof Node||t instanceof _(t).Node:!1}function D(t){return Pt()?t instanceof Element||t instanceof _(t).Element:!1}function I(t){return Pt()?t instanceof HTMLElement||t instanceof _(t).HTMLElement:!1}function Ie(t){return!Pt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof _(t).ShadowRoot}function xt(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=P(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&i!=="inline"&&i!=="contents"}function eo(t){return/^(table|td|th)$/.test(ut(t))}function Mt(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const no=/transform|translate|scale|rotate|perspective|filter/,oo=/paint|layout|strict|content/,nt=t=>!!t&&t!=="none";let ne;function oe(t){const e=D(t)?P(t):t;return nt(e.transform)||nt(e.translate)||nt(e.scale)||nt(e.rotate)||nt(e.perspective)||!ie()&&(nt(e.backdropFilter)||nt(e.filter))||no.test(e.willChange||"")||oo.test(e.contain||"")}function io(t){let e=G(t);for(;I(e)&&!dt(e);){if(oe(e))return e;if(Mt(e))return null;e=G(e)}return null}function ie(){return ne==null&&(ne=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ne}function dt(t){return/^(html|body|#document)$/.test(ut(t))}function P(t){return _(t).getComputedStyle(t)}function Ft(t){return D(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function G(t){if(ut(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Ie(t)&&t.host||j(t);return Ie(e)?e.host:e}function Ue(t){const e=G(t);return dt(e)?t.ownerDocument?t.ownerDocument.body:t.body:I(e)&&xt(e)?e:Ue(e)}function St(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Ue(t),s=i===((o=t.ownerDocument)==null?void 0:o.body),l=_(i);if(s){const r=se(l);return e.concat(l,l.visualViewport||[],xt(i)?i:[],r&&n?St(r):[])}else return e.concat(i,St(i,[],n))}function se(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function qe(t){const e=P(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=I(t),s=i?t.offsetWidth:n,l=i?t.offsetHeight:o,r=Lt(n)!==s||Lt(o)!==l;return r&&(n=s,o=l),{width:n,height:o,$:r}}function le(t){return D(t)?t:t.contextElement}function ht(t){const e=le(t);if(!I(e))return W(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:s}=qe(e);let l=(s?Lt(n.width):n.width)/o,r=(s?Lt(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!r||!Number.isFinite(r))&&(r=1),{x:l,y:r}}const so=W(0);function Ye(t){const e=_(t);return!ie()||!e.visualViewport?so:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function lo(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==_(t)?!1:e}function ot(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),s=le(t);let l=W(1);e&&(o?D(o)&&(l=ht(o)):l=ht(t));const r=lo(s,n,o)?Ye(s):W(0);let a=(i.left+r.x)/l.x,u=(i.top+r.y)/l.y,f=i.width/l.x,c=i.height/l.y;if(s){const d=_(s),p=o&&D(o)?_(o):o;let h=d,w=se(h);for(;w&&o&&p!==h;){const v=ht(w),m=w.getBoundingClientRect(),g=P(w),y=m.left+(w.clientLeft+parseFloat(g.paddingLeft))*v.x,x=m.top+(w.clientTop+parseFloat(g.paddingTop))*v.y;a*=v.x,u*=v.y,f*=v.x,c*=v.y,a+=y,u+=x,h=_(w),w=se(h)}}return Dt({width:f,height:c,x:a,y:u})}function Wt(t,e){const n=Ft(t).scrollLeft;return e?e.left+n:ot(j(t)).left+n}function Xe(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-Wt(t,n),i=n.top+e.scrollTop;return{x:o,y:i}}function ro(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const s=i==="fixed",l=j(o),r=e?Mt(e.floating):!1;if(o===l||r&&s)return n;let a={scrollLeft:0,scrollTop:0},u=W(1);const f=W(0),c=I(o);if((c||!c&&!s)&&((ut(o)!=="body"||xt(l))&&(a=Ft(o)),c)){const p=ot(o);u=ht(o),f.x=p.x+o.clientLeft,f.y=p.y+o.clientTop}const d=l&&!c&&!s?Xe(l,a):W(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+f.x+d.x,y:n.y*u.y-a.scrollTop*u.y+f.y+d.y}}function ao(t){return Array.from(t.getClientRects())}function co(t){const e=j(t),n=Ft(t),o=t.ownerDocument.body,i=L(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=L(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let l=-n.scrollLeft+Wt(t);const r=-n.scrollTop;return P(o).direction==="rtl"&&(l+=L(e.clientWidth,o.clientWidth)-i),{width:i,height:s,x:l,y:r}}const Ge=25;function fo(t,e){const n=_(t),o=j(t),i=n.visualViewport;let s=o.clientWidth,l=o.clientHeight,r=0,a=0;if(i){s=i.width,l=i.height;const f=ie();(!f||f&&e==="fixed")&&(r=i.offsetLeft,a=i.offsetTop)}const u=Wt(o);if(u<=0){const f=o.ownerDocument,c=f.body,d=getComputedStyle(c),p=f.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,h=Math.abs(o.clientWidth-c.clientWidth-p);h<=Ge&&(s-=h)}else u<=Ge&&(s+=u);return{width:s,height:l,x:r,y:a}}function uo(t,e){const n=ot(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,s=I(t)?ht(t):W(1),l=t.clientWidth*s.x,r=t.clientHeight*s.y,a=i*s.x,u=o*s.y;return{width:l,height:r,x:a,y:u}}function Ze(t,e,n){let o;if(e==="viewport")o=fo(t,n);else if(e==="document")o=co(j(t));else if(D(e))o=uo(e,n);else{const i=Ye(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Dt(o)}function Ke(t,e){const n=G(t);return n===e||!D(n)||dt(n)?!1:P(n).position==="fixed"||Ke(n,e)}function ho(t,e){const n=e.get(t);if(n)return n;let o=St(t,[],!1).filter(r=>D(r)&&ut(r)!=="body"),i=null;const s=P(t).position==="fixed";let l=s?G(t):t;for(;D(l)&&!dt(l);){const r=P(l),a=oe(l);!a&&r.position==="fixed"&&(i=null),(s?!a&&!i:!a&&r.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||xt(l)&&!a&&Ke(t,l))?o=o.filter(f=>f!==l):i=r,l=G(l)}return e.set(t,o),o}function po(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const l=[...n==="clippingAncestors"?Mt(e)?[]:ho(e,this._c):[].concat(n),o],r=Ze(e,l[0],i);let a=r.top,u=r.right,f=r.bottom,c=r.left;for(let d=1;d<l.length;d++){const p=Ze(e,l[d],i);a=L(p.top,a),u=Y(p.right,u),f=Y(p.bottom,f),c=L(p.left,c)}return{width:u-c,height:f-a,x:c,y:a}}function mo(t){const{width:e,height:n}=qe(t);return{width:e,height:n}}function go(t,e,n){const o=I(e),i=j(e),s=n==="fixed",l=ot(t,!0,s,e);let r={scrollLeft:0,scrollTop:0};const a=W(0);function u(){a.x=Wt(i)}if(o||!o&&!s)if((ut(e)!=="body"||xt(i))&&(r=Ft(e)),o){const p=ot(e,!0,s,e);a.x=p.x+e.clientLeft,a.y=p.y+e.clientTop}else i&&u();s&&!o&&i&&u();const f=i&&!o&&!s?Xe(i,r):W(0),c=l.left+r.scrollLeft-a.x-f.x,d=l.top+r.scrollTop-a.y-f.y;return{x:c,y:d,width:l.width,height:l.height}}function re(t){return P(t).position==="static"}function Je(t,e){if(!I(t)||P(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return j(t)===n&&(n=n.ownerDocument.body),n}function Qe(t,e){const n=_(t);if(Mt(t))return n;if(!I(t)){let i=G(t);for(;i&&!dt(i);){if(D(i)&&!re(i))return i;i=G(i)}return n}let o=Je(t,e);for(;o&&eo(o)&&re(o);)o=Je(o,e);return o&&dt(o)&&re(o)&&!oe(o)?n:o||io(t)||n}const yo=async function(t){const e=this.getOffsetParent||Qe,n=this.getDimensions,o=await n(t.floating);return{reference:go(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function wo(t){return P(t).direction==="rtl"}const ae={convertOffsetParentRelativeRectToViewportRelativeRect:ro,getDocumentElement:j,getClippingRect:po,getOffsetParent:Qe,getElementRects:yo,getClientRects:ao,getDimensions:mo,getScale:ht,isElement:D,isRTL:wo};function tn(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function vo(t,e){let n=null,o;const i=j(t);function s(){var r;clearTimeout(o),(r=n)==null||r.disconnect(),n=null}function l(r,a){r===void 0&&(r=!1),a===void 0&&(a=1),s();const u=t.getBoundingClientRect(),{left:f,top:c,width:d,height:p}=u;if(r||e(),!d||!p)return;const h=_t(c),w=_t(i.clientWidth-(f+d)),v=_t(i.clientHeight-(c+p)),m=_t(f),y={rootMargin:-h+"px "+-w+"px "+-v+"px "+-m+"px",threshold:L(0,Y(1,a))||1};let x=!0;function b(S){const E=S[0].intersectionRatio;if(E!==a){if(!x)return l();E?l(!1,E):o=setTimeout(()=>{l(!1,1e-7)},1e3)}E===1&&!tn(u,t.getBoundingClientRect())&&l(),x=!1}try{n=new IntersectionObserver(b,{...y,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,y)}n.observe(t)}return l(!0),s}function bo(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:r=typeof IntersectionObserver=="function",animationFrame:a=!1}=o,u=le(t),f=i||s?[...u?St(u):[],...e?St(e):[]]:[];f.forEach(m=>{i&&m.addEventListener("scroll",n,{passive:!0}),s&&m.addEventListener("resize",n)});const c=u&&r?vo(u,n):null;let d=-1,p=null;l&&(p=new ResizeObserver(m=>{let[g]=m;g&&g.target===u&&p&&e&&(p.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var y;(y=p)==null||y.observe(e)})),n()}),u&&!a&&p.observe(u),e&&p.observe(e));let h,w=a?ot(t):null;a&&v();function v(){const m=ot(t);w&&!tn(w,m)&&n(),w=m,h=requestAnimationFrame(v)}return n(),()=>{var m;f.forEach(g=>{i&&g.removeEventListener("scroll",n),s&&g.removeEventListener("resize",n)}),c?.(),(m=p)==null||m.disconnect(),p=null,a&&cancelAnimationFrame(h)}}const xo=Jn,So=Qn,Eo=Gn,en=to,Oo=Xn,Ao=(t,e,n)=>{const o=new Map,i={platform:ae,...n},s={...i.platform,_c:o};return Yn(t,e,{...i,platform:s})};function nn(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}const Co=/transform|translate|scale|rotate|perspective|filter/,To=/paint|layout|strict|content/,it=t=>!!t&&t!=="none";let ce;function No(t){const e=(n=t,typeof window<"u"&&(n instanceof Element||n instanceof nn(n).Element)?nn(o=t).getComputedStyle(o):t);var n,o;return it(e.transform)||it(e.translate)||it(e.scale)||it(e.rotate)||it(e.perspective)||(ce==null&&(ce=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),!ce&&(it(e.backdropFilter)||it(e.filter)))||Co.test(e.willChange||"")||To.test(e.contain||"")}function Ro(t){return(function(e){for(let n=e;n;n=fe(n))if(n instanceof Element&&getComputedStyle(n).display==="none")return null;for(let n=fe(e);n;n=fe(n)){if(!(n instanceof Element))continue;const o=getComputedStyle(n);if(o.display!=="contents"&&(o.position!=="static"||No(o)||n.tagName==="BODY"))return n}return null})(t)}function fe(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var Et;(function(t){t.TOOLTIP="tooltip",t.POPOVER="popover",t.FLYOUT_PANEL="flyout-panel"})(Et||(Et={}));const mt=class mt{constructor(e,n){this.el=e,this.config=n,this.offset=10,this.timeDelayBeforeFadingOut=50,this.popoverMainAxisEnabled=!0,this.currentPlacement=n.placement,this.cleanup=null}getRootElement(){return this.el.shadowRoot??this.el}initialize(){this.timeBeforeElementShows=this.config.showWithoutDelay?50:500,this.timeOfAnimation=this.config.showWithoutDelay?50:250;const e=this.getRootElement();this.floatingElement=e.querySelector(this.config.floatingElementSelector),this.floatingElement&&this.applyViewportMaxWidth(),this.arrowEl=this.config.showArrow!==!1&&this.config.arrowElementSelector?e.querySelector(this.config.arrowElementSelector):null,this.anchorElement=this.config.htmlFor?.length>0?document.getElementById(this.config.htmlFor):this.config.getAnchorElement?this.config.getAnchorElement(e):this.el.shadowRoot?this.config.getAnchorElementFromSlot(this.el.shadowRoot):null,this.anchorElement?this.setupPositioning():console.warn("Could not determine the element associated with this floating element."+(this.config.htmlFor?.length>0?`Element with id=${this.config.htmlFor} could not be found on the DOM.`:""))}getAnchorElement(){return this.anchorElement}updateConfig(e){this.config={...this.config,...e},"showWithoutDelay"in e&&(this.timeBeforeElementShows=this.config.showWithoutDelay?50:500,this.timeOfAnimation=this.config.showWithoutDelay?50:250),this.forceUpdate()}getConfig(){return this.config}getCurrentPlacement(){return this.currentPlacement||this.config.placement}reposition(){this.forceUpdate()}forceUpdate(){this.anchorElement&&this.floatingElement&&this.updatePosition()}setupPositioning(){this.anchorElement&&this.updatePosition()}setupAutoUpdate(){!this.cleanup&&this.anchorElement&&(this.cleanup=bo(this.anchorElement,this.floatingElement,(()=>{this.updatePosition()}),{ancestorScroll:!0,ancestorResize:!1,elementResize:!0,layoutShift:!0,animationFrame:!1}))}cleanupAutoUpdate(){this.cleanup&&(this.cleanup(),this.cleanup=null)}updatePosition(){if(!this.anchorElement)return;const e=this.config.offset??this.offset,n=[xo(e)],o=this.config.lockToMainAxis??!1,i=this.config.constrainPlacements,s=i&&i.length>0?i.includes(this.config.placement)?this.config.placement:i[0]:this.config.placement,l=Eo(i&&i.length>0?{mainAxis:!0,crossAxis:!1,padding:e,fallbackPlacements:i.filter((u=>u!==s)),fallbackAxisSideDirection:"none"}:{mainAxis:!0,crossAxis:!o&&"alignment",fallbackAxisSideDirection:"end",padding:e}),r=this.config.elementType===Et.POPOVER,a=So({padding:e,mainAxis:this.config.constrainToViewportHeight||this.config.elementType===Et.TOOLTIP||r&&this.popoverMainAxisEnabled,crossAxis:!1});this.config.matchReferenceWidth&&n.push(en({apply({elements:u,rects:f}){Object.assign(u.floating.style,{width:`${f.reference.width}px`})}})),s?.includes("-")?n.push(l,a):n.push(a,l),this.config.constrainToViewportHeight&&n.push(en({padding:e,apply:({availableHeight:u,elements:f})=>{const c=Array.from(f.floating.children).find((d=>d!==this.arrowEl));c instanceof HTMLElement&&Object.assign(c.style,{maxHeight:`${Math.max(0,u)}px`,overflowY:"auto",overflowX:"hidden"})}})),this.config.showArrow!==!1&&this.arrowEl&&n.push(Oo({element:this.arrowEl,padding:e})),Ao(this.anchorElement,this.floatingElement,{placement:s,strategy:"fixed",middleware:n,platform:{...ae,getOffsetParent:u=>ae.getOffsetParent(u,Ro)}}).then((({x:u,y:f,middlewareData:c,placement:d})=>{if(r){const v=d.startsWith("left")||d.startsWith("right"),m=d.startsWith("top")||d.startsWith("bottom"),g=this.isAnchorInViewport(),y=!!m||(v?g:this.popoverMainAxisEnabled);if(y!==this.popoverMainAxisEnabled)return this.popoverMainAxisEnabled=y,void this.updatePosition()}this.currentPlacement=d,Object.assign(this.floatingElement.style,{left:`${u}px`,top:`${f}px`,position:"fixed",transition:`opacity ${this.timeOfAnimation}ms ease`});const p=d.split("-")[0]??"bottom",h={top:"bottom",right:"left",bottom:"top",left:"right"}[p],{arrowZIndex:w}=this.normalizeFloatingElementStacking();if(c.arrow&&this.arrowEl){const v=this.arrowEl.offsetWidth,{x:m,y:g}=c.arrow;this.arrowEl.style.borderRadius=`${["left","right"].includes(p)?"0 ":""}var(--gidsFloatingElement-tip-border-radius, 2px)${["top","bottom"].includes(p)?" 0":""}`,Object.assign(this.arrowEl.style,{left:m!==null?`${m}px`:"",top:g!==null?`${g}px`:"",right:"",bottom:"",[h]:-v/2+"px",transform:"rotate(45deg)",zIndex:`${w}`,background:"var(--gidsFloatingElement-background)"})}}))}applyViewportMaxWidth(){const e=`calc(100vw - ${2*this.offset}px)`;this.floatingElement&&this.floatingElement?.style.maxWidth!==e&&(this.floatingElement.style.maxWidth=e)}normalizeFloatingElementStacking(){const e=this.floatingElement.style.zIndex||(window.getComputedStyle?.(this.floatingElement).zIndex??""),n=Number.parseInt(e,10),o=Number.isNaN(n)?-1:n-1,i=Number.isNaN(n)?o+1:n;return Number.isNaN(i)||(this.floatingElement.style.zIndex=`${i}`),Array.from(this.floatingElement.children).forEach((s=>{if(!(s instanceof HTMLElement)||s===this.arrowEl)return;const l=s.style.zIndex||(window.getComputedStyle?.(s).zIndex??""),r=Number.parseInt(l,10),a=window.getComputedStyle?.(s).position??"";(l===""||l==="auto"||Number.isNaN(r)||r<i)&&(s.style.zIndex=`${i}`,a!==""&&a!=="static"||(s.style.position="relative"))})),{contentZIndex:i,arrowZIndex:o}}hideFloatingElement(){this.floatingElement.classList.remove(this.config.visibilityClass),mt.currentFloatingElements.delete(this.config.elementType)}showFloatingElement(){const e=mt.currentFloatingElements.get(this.config.elementType);e&&e.hideFloatingElement(),this.floatingElement.classList.add(this.config.visibilityClass),mt.currentFloatingElements.set(this.config.elementType,this)}isVisible(){return this.floatingElement.classList.contains(this.config.visibilityClass)}show(){this.setupAutoUpdate(),this.showFloatingElement()}hide(){this.cleanupAutoUpdate(),this.hideFloatingElement()}toggle(){this.isVisible()?this.hide():this.show()}showAfterDelay(){clearTimeout(this.hoverOutTimeout),this.hoverTimeout=setTimeout((()=>{this.show()}),this.timeBeforeElementShows)}hideAfterDelay(){clearTimeout(this.hoverTimeout),this.hoverOutTimeout=setTimeout((()=>{this.hide()}),this.timeDelayBeforeFadingOut)}cancelDelayedActions(){clearTimeout(this.hoverTimeout),clearTimeout(this.hoverOutTimeout)}destroy(){this.cleanupAutoUpdate(),this.cancelDelayedActions()}isAnchorInViewport(){if(!(this.anchorElement&&this.anchorElement instanceof Element))return!1;const e=this.anchorElement.getBoundingClientRect(),n=window.innerHeight||document.documentElement?.clientHeight||0,o=window.innerWidth||document.documentElement?.clientWidth||0,i=e.height/2+2*this.offset;return e.bottom>=i&&e.top<=n-i&&e.right>=0&&e.left<=o}};mt.currentFloatingElements=new Map;let ue=mt;const pt=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let on=!1;pt&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(pt):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let de=null;const he=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{sn()})):void 0,sn=()=>{if(pt===void 0)return!1;const t=(()=>{if(pt===void 0)return;const e=[];for(let n=0;n<document.styleSheets.length;n++){const o=document.styleSheets.item(n);if(o)try{let i=-1,s=0;for(let l=0;l<o.cssRules.length;l++){const r=o.cssRules.item(l);if(r?.cssText.startsWith("gids-global-styles-start"))i=l;else if(i>-1){if(r?.cssText.startsWith("gids-global-styles-end")){s=l-i+1;break}e.push(r)}}if(i>-1)return{rulesStartIndex:i,originalRulesCount:s,rules:e,styleSheet:o}}catch(i){if(!(i instanceof DOMException))throw i}}})();if(t!==void 0){const e=t.styleSheet.ownerNode;return he!==void 0&&e!==de&&(de&&he.disconnect(),e instanceof Element&&he.observe(e,{childList:!0,characterData:!0,subtree:!0}),de=e),pt.replaceSync((n=>n.rules.map((o=>o.cssText)).join(""))(t)),(n=>{const{rulesStartIndex:o,originalRulesCount:i,styleSheet:s}=n;for(let l=0;l<i;l++)s.deleteRule(o)})(t),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},ko=()=>(on||(on=sn()),pt),ln=_n(class extends fn{constructor(t){super(),t!==!1&&this.__registerHost(),this.__attachShadow(),this.placement="bottom",this.showWithoutDelay=!1,this.lockToMainAxis=!1,this.handleShowEvent=()=>{this.floatingElementManager.showAfterDelay()},this.handleHideEvent=()=>{this.floatingElementManager.hideAfterDelay()}}connectedCallback(){const t=ko();t!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(t)}componentDidLoad(){this.floatingElementManager=new ue(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:this.showWithoutDelay,lockToMainAxis:this.lockToMainAxis,floatingElementSelector:"#tooltip",arrowElementSelector:"#arrow",visibilityClass:"gids-tooltip--visible",elementType:Et.TOOLTIP,getAnchorElementFromSlot:t=>t.querySelector("slot")?.assignedElements()[0]||null}),this.floatingElementManager.initialize(),this.setupEventListeners()}setupEventListeners(){const t=this.floatingElementManager.getAnchorElement();t&&(t.addEventListener("mouseenter",this.handleShowEvent),t.addEventListener("focus",this.handleShowEvent),t.addEventListener("mouseleave",this.handleHideEvent),t.addEventListener("blur",this.handleHideEvent))}placementChanged(t){this.floatingElementManager?.updateConfig({placement:t}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}showWithoutDelayChanged(t){this.floatingElementManager?.updateConfig({showWithoutDelay:t})}lockToMainAxisChanged(t){this.floatingElementManager?.updateConfig({lockToMainAxis:t})}htmlForChanged(t){this.floatingElementManager?.updateConfig({htmlFor:t}),this.cleanupEventListeners(),this.floatingElementManager?.initialize(),this.setupEventListeners()}cleanupEventListeners(){const t=this.floatingElementManager?.getAnchorElement();t&&(t.removeEventListener("mouseenter",this.handleShowEvent),t.removeEventListener("focus",this.handleShowEvent),t.removeEventListener("mouseleave",this.handleHideEvent),t.removeEventListener("blur",this.handleHideEvent))}render(){return rt($n,{key:"56a3589fce74458f3c72d17dfcd79b464bdf7712"},rt("slot",{key:"bb5599494aafa6efa4ce280cbf2dfdd39affda98"}),rt("span",{key:"1d9cbcb72a293a465ea8158282f99d71d46c08c4",id:"tooltip",part:"tooltip",role:"tooltip"},rt("span",{key:"b4e274e4ba08a0033d0af4a4d0a4a511961a80ab",id:"arrow"}),this.tooltipText))}disconnectedCallback(){this.cleanupEventListeners(),this.floatingElementManager?.destroy()}get _el(){return this}static get watchers(){return{placement:[{placementChanged:0}],showWithoutDelay:[{showWithoutDelayChanged:0}],lockToMainAxis:[{lockToMainAxisChanged:0}],htmlFor:[{htmlForChanged:0}]}}static get style(){return"gids-tooltip{--gidsTooltip-background:var(--gids-color-background-neutral-bold-default);--gidsTooltip-text-color:var(--gids-color-text-inverse);--gidsTooltip-padding:var(--gids-padding-vertical-edge-to-element-100) var(--gids-padding-horizontal-edge-to-element-200);--gidsTooltip-border-radius:var(--gids-border-radius-sm);--gidsTooltip-tip-border-radius:2px;--gidsTooltip-tip-size:12px;--gidsFloatingElement-background:var(--gidsTooltip-background);--gidsFloatingElement-tip-border-radius:var(--gidsTooltip-tip-border-radius)}[part=tooltip]{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);position:absolute;display:inline-block;hyphens:auto;background-color:var(--gidsTooltip-background);color:var(--gidsTooltip-text-color);padding:var(--gidsTooltip-padding);border-radius:var(--gidsTooltip-border-radius);z-index:1000;opacity:0;pointer-events:none}[part=tooltip].gids-tooltip--visible{pointer-events:initial;opacity:1}[part=tooltip] span#arrow{position:absolute;height:var(--gidsTooltip-tip-size);width:var(--gidsTooltip-tip-size)}"}},[257,"gids-tooltip",{htmlFor:[513,"for"],tooltipText:[513,"tooltip-text"],placement:[513],showWithoutDelay:[516,"show-without-delay"],lockToMainAxis:[4,"lock-to-main-axis"]},void 0,{placement:[{placementChanged:0}],showWithoutDelay:[{showWithoutDelayChanged:0}],lockToMainAxis:[{lockToMainAxisChanged:0}],htmlFor:[{htmlForChanged:0}]}]);function rn(){typeof customElements<"u"&&["gids-tooltip"].forEach((t=>{t==="gids-tooltip"&&(customElements.get(t)||customElements.define(t,ln))}))}rn();const Lo=ln,_o=rn;Q.GidsTooltip=Lo,Q.defineCustomElement=_o,Object.defineProperty(Q,Symbol.toStringTag,{value:"Module"})}));
|
|
5
|
+
`);const w=this["s-cr"].parentElement;return(w.__childNodes?w.childNodes:(v=>{const m=[];for(let g=0;g<v.length;g++){const y=v[g]["s-nr"]||void 0;y&&y.isConnected&&m.push(y)}return m})(w.childNodes)).forEach((v=>{h===yt(v)&&p.push(v)})),c?p.filter((v=>v.nodeType===1)):p}).bind(d);d.assignedElements=f(!0),d.assignedNodes=f(!1)})(s),r=t&&t.m&&t.m[n],r&&r.O===i.O&&t.S&&Re(t.S)),s},Re=t=>{T.i|=1;const e=t.closest(et.toLowerCase());if(e!=null){const n=Array.from(e.__childNodes||e.childNodes).find((i=>i["s-cr"])),o=Array.from(t.__childNodes||t.childNodes);for(const i of n?o.reverse():o)i["s-sh"]!=null&&($(e,i,n??null),i["s-sh"]=void 0,Tt=!0)}T.i&=-2},Rt=(t,e)=>{T.i|=1;const n=Array.from(t.__childNodes||t.childNodes);if(t["s-sr"]){let o=t;for(;o=o.nextSibling;)o&&o["s-sn"]===t["s-sn"]&&o["s-sh"]===et&&n.push(o)}for(let o=n.length-1;o>=0;o--){const i=n[o];i["s-hn"]!==et&&i["s-ol"]&&($(vt(i).parentNode,i,vt(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,Tt=!0),e&&Rt(i,e)}T.i&=-2},ke=(t,e,n,o,i,s)=>{let l,r=t["s-cr"]&&t["s-cr"].parentNode||t;for(r.shadowRoot&&r.tagName===et&&(r=r.shadowRoot),n.O==="template"&&(r=r.content);i<=s;++i)o[i]&&(l=Nt(null,n,i),l&&(o[i].S=l,$(r,l,vt(e))))},Le=(t,e,n)=>{for(let o=e;o<=n;++o){const i=t[o];if(i){const s=i.S;$e(i),s&&(Ct=!0,s["s-ol"]?s["s-ol"].remove():Rt(s,!0),s.remove())}}},kt=(t,e,n=!1)=>t.O===e.O&&(t.O==="slot"?t.j===e.j:n?(n&&!t.$&&e.$&&(t.$=e.$),!0):t.$===e.$),vt=t=>t&&t["s-ol"]||t,at=(t,e,n=!1)=>{const o=e.S=t.S,i=t.m,s=e.m,l=e.O,r=e.h;let a;r==null?(k=l==="svg"||l!=="foreignObject"&&k,l!=="slot"||wt||t.j!==e.j&&(e.S["s-sn"]=e.j||"",Re(e.S.parentElement)),Xt(t,e,k),i!==null&&s!==null?((d,f,c,u,p=!1)=>{let h,w,v=0,m=0,g=0,y=0,x=f.length-1,b=f[0],S=f[x],E=u.length-1,A=u[0],C=u[E];const N=c.O==="template"?d.content:d;for(;v<=x&&m<=E;)if(b==null)b=f[++v];else if(S==null)S=f[--x];else if(A==null)A=u[++m];else if(C==null)C=u[--E];else if(kt(b,A,p))at(b,A,p),b=f[++v],A=u[++m];else if(kt(S,C,p))at(S,C,p),S=f[--x],C=u[--E];else if(kt(b,C,p))b.O!=="slot"&&C.O!=="slot"||Rt(b.S.parentNode,!1),at(b,C,p),$(N,b.S,S.S.nextSibling),b=f[++v],C=u[--E];else if(kt(S,A,p))b.O!=="slot"&&C.O!=="slot"||Rt(S.S.parentNode,!1),at(S,A,p),$(N,S.S,b.S),S=f[--x],A=u[++m];else{for(g=-1,y=v;y<=x;++y)if(f[y]&&f[y].$!==null&&f[y].$===A.$){g=y;break}g>=0?(w=f[g],w.O!==A.O?h=Nt(f&&f[m],c,g):(at(w,A,p),f[g]=void 0,h=w.S),A=u[++m]):(h=Nt(f&&f[m],c,m),A=u[++m]),h&&$(vt(b.S).parentNode,h,vt(b.S))}v>x?ke(d,u[E+1]==null?null:u[E+1].S,c,u,m,E):m>E&&Le(f,v,x)})(o,i,e,s,n):s!==null?(t.h!==null&&(o.textContent=""),ke(o,null,e,s,0,s.length-1)):!n&&i!==null&&Le(i,0,i.length-1),k&&l==="svg"&&(k=!1)):(a=o["s-cr"])?a.parentNode.textContent=r:t.h!==r&&(o.data=r)},z=[],_e=t=>{let e,n,o;const i=t.__childNodes||t.childNodes;for(const s of i){if(s["s-sr"]&&(e=s["s-cr"])&&e.parentNode){n=e.parentNode.__childNodes||e.parentNode.childNodes;const l=s["s-sn"];for(o=n.length-1;o>=0;o--)if(e=n[o],!(e["s-cn"]||e["s-nr"]||e["s-hn"]===s["s-hn"]||e["s-sh"]&&e["s-sh"]===s["s-hn"]))if(be(e,l)){let r=z.find((a=>a.k===e));Ct=!0,e["s-sn"]=e["s-sn"]||l,r?(r.k["s-sh"]=s["s-hn"],r.N=s):(e["s-sh"]=s["s-hn"],z.push({N:s,k:e})),e["s-sr"]&&z.map((a=>{be(a.k,e["s-sn"])&&(r=z.find((d=>d.k===e)),r&&!a.N&&(a.N=r.N))}))}else z.some((r=>r.k===e))||z.push({k:e})}s.nodeType===1&&_e(s)}},$e=t=>{t.v&&t.v.ref&&Gt.push((()=>t.v.ref(null))),t.m&&t.m.map($e)},Sn=(t,e)=>{Zt.push((()=>t(e)))},$=(t,e,n,o)=>{if(typeof e["s-sn"]=="string"){t.insertBefore(e,n);const{slotNode:i}=(function(s,l){var r;if(!(l=l||((r=s["s-ol"])==null?void 0:r.parentElement)))return{slotNode:null,slotName:""};const a=s["s-sn"]=yt(s)||"";return{slotNode:It(Ut(l,"childNodes"),l.tagName,a)[0],slotName:a}})(e);return i&&!o&&i.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),e}return t.__insertBefore?t.__insertBefore(e,n):t?.insertBefore(e,n)},En=(t,e,n=!1)=>{var o,i,s,l,r;const a=t.$hostElement$,d=t.o,f=t.M||At(null,null);var c;const u=(c=e)&&c.O===gn?e:rt(null,null,e);if(et=a.tagName,d.C&&(u.v=u.v||{},d.C.forEach((([p,h])=>{u.v[h]=a[p]}))),n&&u.v)for(const p of Object.keys(u.v))a.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(u.v[p]=a[p]);if(u.O=null,u.i|=4,t.M=u,u.S=f.S=a.shadowRoot||a,wt=!(!(1&d.i)||128&d.i),qt=a["s-cr"],Ct=!1,at(f,u,n),T.i|=1,Tt){_e(u.S);for(const p of z){const h=p.k;if(!h["s-ol"]&&O.document){const w=O.document.createTextNode("");w["s-nr"]=h,$(h.parentNode,h["s-ol"]=w,h,n)}}for(const p of z){const h=p.k,w=p.N;if(h.nodeType===1&&n&&(h["s-ih"]=(o=h.hidden)!=null&&o),w){const v=w.parentNode;let m=w.nextSibling;if(m&&m.nodeType===1){let g=(i=h["s-ol"])==null?void 0:i.previousSibling;for(;g;){let y=(s=g["s-nr"])!=null?s:null;if(y&&y["s-sn"]===h["s-sn"]&&v===(y.__parentNode||y.parentNode)){for(y=y.nextSibling;y===h||y?.["s-sr"];)y=y?.nextSibling;if(!y||!y["s-nr"]){m=y;break}}g=g.previousSibling}}if((!m&&v!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==m)&&h!==m){if($(v,h,m,n),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const g=O.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=h["s-hn"],g["s-sn"]=h["s-sn"],g["s-sh"]=h["s-sh"],g["s-sr"]=h["s-sr"],g["s-ol"]=h["s-ol"],g["s-ol"]["s-nr"]=g,$(h.parentNode,g,h,n),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(l=h["s-ih"])!=null&&l)}h&&typeof w["s-rf"]=="function"&&w["s-rf"](w)}else h.nodeType===1&&(h.hidden=!0)}}if(Ct&&ve(u.S),T.i&=-2,z.length=0,!wt&&!(1&d.i)&&a["s-cr"]){const p=u.S.__childNodes||u.S.childNodes;for(const h of p)if(h["s-hn"]!==et&&!h["s-sh"]){if(n&&h["s-ih"]==null&&(h["s-ih"]=(r=h.hidden)!=null&&r),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const w=O.document.createComment("s-nt-"+h.nodeValue);w["s-sn"]=h["s-sn"],$(h.parentNode,w,h,n),h.parentNode.removeChild(h)}}}qt=void 0,Gt.forEach((p=>p())),Gt.length=0,Zt.forEach((p=>p())),Zt.length=0},De=(t,e)=>{if(e&&!t.A&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.A=()=>{e["s-p"].splice(n-1,1),o()})))}},Kt=(t,e)=>{if(t.i|=16,4&t.i)return void(t.i|=512);De(t,t.R);const n=()=>On(t,e);if(!e)return hn(n);queueMicrotask((()=>{n()}))},On=(t,e)=>{const n=t.$hostElement$,o=n;if(!o)throw new Error(`Can't render component <${n.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 i;return i=bt(o,e?"componentWillLoad":"componentWillUpdate",void 0,n),i=Pe(i,(()=>bt(o,"componentWillRender",void 0,n))),Pe(i,(()=>Cn(t,o,e)))},Pe=(t,e)=>An(t)?t.then(e).catch((n=>{console.error(n),e()})):e(),An=t=>t instanceof Promise||t&&t.then&&typeof t.then=="function",Cn=async(t,e,n)=>{var o;const i=t.$hostElement$,s=i["s-rc"];n&&(l=>{const r=l.o,a=l.$hostElement$,d=r.i,f=((c,u)=>{var p,h,w;const v=xe(u),m=Ot.get(v);if(!O.document)return v;if(c=c.nodeType===11?c:O.document,m)if(typeof m=="string"){let g,y=q.get(c=c.head||c);if(y||q.set(c,y=new Set),!y.has(v)){g=O.document.createElement("style"),g.textContent=m;const x=(p=T._)!=null?p:(function(){var b,S,E;return(E=(S=(b=O.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:S.getAttribute("content"))!=null?E:void 0})();if(x!=null&&g.setAttribute("nonce",x),!(1&u.i))if(c.nodeName==="HEAD"){const b=c.querySelectorAll("link[rel=preconnect]"),S=b.length>0?b[b.length-1].nextSibling:c.querySelector("style");c.insertBefore(g,S?.parentNode===c?S:null)}else if("host"in c)if(jt){const b=new((h=c.defaultView)!=null?h:c.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(m),Ht?c.adoptedStyleSheets.unshift(b):c.adoptedStyleSheets=[b,...c.adoptedStyleSheets]}else{const b=c.querySelector("style");b?b.textContent=m+b.textContent:c.prepend(g)}else c.append(g);1&u.i&&c.insertBefore(g,null),4&u.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),y&&y.add(v)}}else{let g=q.get(c);if(g||q.set(c,g=new Set),!g.has(v)){const y=(w=c.defaultView)!=null?w:c.ownerDocument.defaultView;let x;if(m.constructor===y.CSSStyleSheet)x=m;else{x=new y.CSSStyleSheet;for(let b=0;b<m.cssRules.length;b++)x.insertRule(m.cssRules[b].cssText,b)}Ht?c.adoptedStyleSheets.push(x):c.adoptedStyleSheets=[...c.adoptedStyleSheets,x],g.add(v)}}return v})(a.shadowRoot?a.shadowRoot:a.getRootNode(),r);10&d&&(a["s-sc"]=f,a.classList.add(f+"-h"))})(t),Tn(t,e,i,n),s&&(s.map((l=>l())),i["s-rc"]=void 0);{const l=(o=i["s-p"])!=null?o:[],r=()=>Nn(t);l.length===0?r():(Promise.all(l).then(r).catch(r),t.i|=4,l.length=0)}},Tn=(t,e,n,o)=>{try{e=e.render(),t.i&=-17,t.i|=2,En(t,e,o)}catch(i){tt(i,t.$hostElement$)}return null},Nn=t=>{const e=t.$hostElement$,n=e,o=t.R;bt(n,"componentDidRender",void 0,e),64&t.i?bt(n,"componentDidUpdate",void 0,e):(t.i|=64,kn(e),bt(n,"componentDidLoad",void 0,e),t.L(e),o||Rn()),t.A&&(t.A(),t.A=void 0),512&t.i&&Bt((()=>Kt(t,!1))),t.i&=-517},Rn=()=>{Bt((()=>vn(O,"appload",{detail:{namespace:"gids-core-web"}})))},bt=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(i){tt(i,o)}},kn=t=>t.classList.add("hydrated"),Me=(t,e,n,o)=>{const i=V(t);if(!i)return;const s=t,l=i.l.get(e),r=i.i,a=s;n=Oe(n,o.t[e][0],!!(64&o.i));const d=Number.isNaN(l)&&Number.isNaN(n);if(n!==l&&!d){if(i.l.set(e,n),o.F){const f=o.F[e];f&&f.map((c=>{try{const[[u,p]]=Object.entries(c);(128&r||1&p)&&(a?a[u](n,l,e):i.T.push((()=>{i.D[u](n,l,e)})))}catch(u){tt(u,s)}}))}if(2&r){if(a.componentShouldUpdate&&a.componentShouldUpdate(n,l,e)===!1&&!(16&r))return;16&r||Kt(i,!1)}}},Ln=(t,e,n)=>{var o,i;const s=t.prototype;64&e.i&&1&n&&cn.forEach((l=>{const r=s[l];Object.defineProperty(s,l,{value(...a){var d;const f=V(this),c=this;c?typeof r=="function"&&r.call(c,...a):(d=f?.H)==null||d.then((u=>{const p=u[l];typeof p=="function"&&p.call(u,...a)}))}})}));{t.watchers&&!e.F&&(e.F=Ee(t.watchers)),t.deserializers&&!e.P&&(e.P=t.deserializers),t.serializers&&!e.U&&(e.U=t.serializers);const l=Object.entries((o=e.t)!=null?o:{});l.map((([r,[a]])=>{if(31&a||32&a){const{get:d,set:f}=lt(s,r)||{};d&&(e.t[r][0]|=2048),f&&(e.t[r][0]|=4096),Object.defineProperty(s,r,{get(){return d?d.apply(this):(c=r,V(this).l.get(c));var c},configurable:!0,enumerable:!0}),Object.defineProperty(s,r,{set(c){const u=V(this);if(u){if(f)return(32&a?this[r]:u.$hostElement$[r])===void 0&&u.l.get(r)&&(c=u.l.get(r)),f.apply(this,[Oe(c,a,!!(64&e.i))]),void Me(this,r,c=32&a?this[r]:u.$hostElement$[r],e);Me(this,r,c,e)}}})}}));{const r=new Map;s.attributeChangedCallback=function(a,d,f){T.jmp((()=>{var c;const u=r.get(a),p=V(this);if(this.hasOwnProperty(u),s.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==f)return;if(u==null){const g=p?.i;if(p&&g&&!(8&g)&&f!==d){const y=this,x=(c=e.F)==null?void 0:c[a];x?.forEach((b=>{const[[S,E]]=Object.entries(b);y[S]!=null&&(128&g||1&E)&&y[S].call(y,f,d,a)}))}return}const h=l.find((([g])=>g===u)),w=h&&4&h[1][0],v=w&&f===null&&this[u]===void 0;w&&(f=f!==null&&f!=="false");const m=Object.getOwnPropertyDescriptor(s,u);v||f==this[u]||m.get&&!m.set||(this[u]=f)}))},t.observedAttributes=Array.from(new Set([...Object.keys((i=e.F)!=null?i:{}),...l.filter((([a,d])=>31&d[0])).map((([a,d])=>{var f;const c=d[1]||a;return r.set(c,a),512&d[0]&&((f=e.C)==null||f.push([a,c])),c}))]))}}return t},_n=(t,e)=>{const n={i:e[0],p:e[1]};try{n.t=e[2],n.W=e[3],n.F=Ee(t.F),n.P=t.P,n.U=t.U,n.C=[];const o=t.prototype.connectedCallback,i=t.prototype.disconnectedCallback;return Object.assign(t.prototype,{__hasHostListenerAttached:!1,__registerHost(){((s,l)=>{const r={i:0,$hostElement$:s,o:l,l:new Map,B:new Map};r.H=new Promise((d=>r.L=d)),s["s-p"]=[],s["s-rc"]=[];const a=r;s.__stencil__getHostRef=()=>a,512&l.i&&an(s,r)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){const s=V(this);if(!s)return;Fe(this,s,n.W),this.__hasHostListenerAttached=!0}(s=>{if(!(1&T.i)){const l=V(s);if(!l)return;const r=l.o;if(1&l.i)Fe(s,l,r.W),l?.D||l?.H&&l.H.then((()=>{}));else{l.i|=1,12&r.i&&(a=>{if(!O.document)return;const d=a["s-cr"]=O.document.createComment("");d["s-cn"]=!0,$(a,d,a.firstChild)})(s);{let a=s;for(;a=a.parentNode||a.host;)if(a["s-p"]){De(l,l.R=a);break}}r.t&&Object.entries(r.t).map((([a,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(s,a)){const f=s[a];delete s[a],s[a]=f}})),(async(a,d,f)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=a.constructor,customElements.whenDefined(a.localName).then((()=>d.i|=128)),c&&c.style)){let h;typeof c.style=="string"&&(h=c.style);const w=xe(f);Ot.has(w)||((v,m,g)=>{let y=Ot.get(v);jt&&g?(y=y||new CSSStyleSheet,typeof y=="string"?y=m:y.replaceSync(m)):y=m,Ot.set(v,y)})(w,h,!!(1&f.i))}const u=d.R,p=()=>Kt(d,!0);u&&u["s-rc"]?u["s-rc"].push(p):p()}catch(u){tt(u,a),d.A&&(d.A(),d.A=void 0),d.L&&d.L(a)}})(s,l,r)}}})(this),o&&o.call(this)},disconnectedCallback(){(async s=>{if(!(1&T.i)){const l=V(s);l?.V&&(l.V.map((r=>r())),l.V=void 0)}q.has(s)&&q.delete(s),s.shadowRoot&&q.has(s.shadowRoot)&&q.delete(s.shadowRoot)})(this),i&&i.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else pn.call(this,n)}}),Object.defineProperty(t,"is",{value:n.p,configurable:!0}),Ln(t,n,3)}catch(o){return tt(o),t}},$n=(t,e)=>e,Fe=(t,e,n)=>{n&&O.document&&n.map((([o,i,s])=>{const l=Pn(O.document,t,o),r=Dn(e,s),a=Mn(o);T.ael(l,i,r,a),(e.V=e.V||[]).push((()=>T.rel(l,i,r,a)))}))},Dn=(t,e)=>n=>{try{t.$hostElement$[e](n)}catch(o){tt(o,t.$hostElement$)}},Pn=(t,e,n)=>8&n?O:e,Mn=t=>dn?{passive:!!(1&t),capture:!!(2&t)}:!!(2&t);function Do(t){return t}const Y=Math.min,L=Math.max,Lt=Math.round,_t=Math.floor,W=t=>({x:t,y:t}),Fn={left:"right",right:"left",bottom:"top",top:"bottom"};function Jt(t,e,n){return L(t,Y(e,n))}function ct(t,e){return typeof t=="function"?t(e):t}function X(t){return t.split("-")[0]}function ft(t){return t.split("-")[1]}function We(t){return t==="x"?"y":"x"}function Qt(t){return t==="y"?"height":"width"}function B(t){const e=t[0];return e==="t"||e==="b"?"y":"x"}function te(t){return We(B(t))}function Wn(t,e,n){n===void 0&&(n=!1);const o=ft(t),i=te(t),s=Qt(i);let l=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(l=$t(l)),[l,$t(l)]}function jn(t){const e=$t(t);return[ee(t),e,ee(e)]}function ee(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const je=["left","right"],He=["right","left"],Hn=["top","bottom"],Vn=["bottom","top"];function zn(t,e,n){switch(t){case"top":case"bottom":return n?e?He:je:e?je:He;case"left":case"right":return e?Hn:Vn;default:return[]}}function Bn(t,e,n,o){const i=ft(t);let s=zn(X(t),n==="start",o);return i&&(s=s.map(l=>l+"-"+i),e&&(s=s.concat(s.map(ee)))),s}function $t(t){const e=X(t);return Fn[e]+t.slice(e.length)}function In(t){return{top:0,right:0,bottom:0,left:0,...t}}function Ve(t){return typeof t!="number"?In(t):{top:t,right:t,bottom:t,left:t}}function Dt(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function ze(t,e,n){let{reference:o,floating:i}=t;const s=B(e),l=te(e),r=Qt(l),a=X(e),d=s==="y",f=o.x+o.width/2-i.width/2,c=o.y+o.height/2-i.height/2,u=o[r]/2-i[r]/2;let p;switch(a){case"top":p={x:f,y:o.y-i.height};break;case"bottom":p={x:f,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:c};break;case"left":p={x:o.x-i.width,y:c};break;default:p={x:o.x,y:o.y}}switch(ft(e)){case"start":p[l]-=u*(n&&d?-1:1);break;case"end":p[l]+=u*(n&&d?-1:1);break}return p}async function Un(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:s,rects:l,elements:r,strategy:a}=t,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:c="floating",altBoundary:u=!1,padding:p=0}=ct(e,t),h=Ve(p),v=r[u?c==="floating"?"reference":"floating":c],m=Dt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(v)))==null||n?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(r.floating)),boundary:d,rootBoundary:f,strategy:a})),g=c==="floating"?{x:o,y:i,width:l.floating.width,height:l.floating.height}:l.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(r.floating)),x=await(s.isElement==null?void 0:s.isElement(y))?await(s.getScale==null?void 0:s.getScale(y))||{x:1,y:1}:{x:1,y:1},b=Dt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:r,rect:g,offsetParent:y,strategy:a}):g);return{top:(m.top-b.top+h.top)/x.y,bottom:(b.bottom-m.bottom+h.bottom)/x.y,left:(m.left-b.left+h.left)/x.x,right:(b.right-m.right+h.right)/x.x}}const qn=50,Yn=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:l}=n,r=l.detectOverflow?l:{...l,detectOverflow:Un},a=await(l.isRTL==null?void 0:l.isRTL(e));let d=await l.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:c}=ze(d,o,a),u=o,p=0;const h={};for(let w=0;w<s.length;w++){const v=s[w];if(!v)continue;const{name:m,fn:g}=v,{x:y,y:x,data:b,reset:S}=await g({x:f,y:c,initialPlacement:o,placement:u,strategy:i,middlewareData:h,rects:d,platform:r,elements:{reference:t,floating:e}});f=y??f,c=x??c,h[m]={...h[m],...b},S&&p<qn&&(p++,typeof S=="object"&&(S.placement&&(u=S.placement),S.rects&&(d=S.rects===!0?await l.getElementRects({reference:t,floating:e,strategy:i}):S.rects),{x:f,y:c}=ze(d,u,a)),w=-1)}return{x:f,y:c,placement:u,strategy:i,middlewareData:h}},Xn=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:s,platform:l,elements:r,middlewareData:a}=e,{element:d,padding:f=0}=ct(t,e)||{};if(d==null)return{};const c=Ve(f),u={x:n,y:o},p=te(i),h=Qt(p),w=await l.getDimensions(d),v=p==="y",m=v?"top":"left",g=v?"bottom":"right",y=v?"clientHeight":"clientWidth",x=s.reference[h]+s.reference[p]-u[p]-s.floating[h],b=u[p]-s.reference[p],S=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d));let E=S?S[y]:0;(!E||!await(l.isElement==null?void 0:l.isElement(S)))&&(E=r.floating[y]||s.floating[h]);const A=x/2-b/2,C=E/2-w[h]/2-1,N=Y(c[m],C),Z=Y(c[g],C),H=N,K=E-w[h]-Z,R=E/2-w[h]/2+A,st=Jt(H,R,K),U=!a.arrow&&ft(i)!=null&&R!==st&&s.reference[h]/2-(R<H?N:Z)-w[h]/2<0,M=U?R<H?R-H:R-K:0;return{[p]:u[p]+M,data:{[p]:st,centerOffset:R-st-M,...U&&{alignmentOffset:M}},reset:U}}}),Gn=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:s,rects:l,initialPlacement:r,platform:a,elements:d}=e,{mainAxis:f=!0,crossAxis:c=!0,fallbackPlacements:u,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:w=!0,...v}=ct(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const m=X(i),g=B(r),y=X(r)===r,x=await(a.isRTL==null?void 0:a.isRTL(d.floating)),b=u||(y||!w?[$t(r)]:jn(r)),S=h!=="none";!u&&S&&b.push(...Bn(r,w,h,x));const E=[r,...b],A=await a.detectOverflow(e,v),C=[];let N=((o=s.flip)==null?void 0:o.overflows)||[];if(f&&C.push(A[m]),c){const R=Wn(i,l,x);C.push(A[R[0]],A[R[1]])}if(N=[...N,{placement:i,overflows:C}],!C.every(R=>R<=0)){var Z,H;const R=(((Z=s.flip)==null?void 0:Z.index)||0)+1,st=E[R];if(st&&(!(c==="alignment"?g!==B(st):!1)||N.every(F=>B(F.placement)===g?F.overflows[0]>0:!0)))return{data:{index:R,overflows:N},reset:{placement:st}};let U=(H=N.filter(M=>M.overflows[0]<=0).sort((M,F)=>M.overflows[1]-F.overflows[1])[0])==null?void 0:H.placement;if(!U)switch(p){case"bestFit":{var K;const M=(K=N.filter(F=>{if(S){const J=B(F.placement);return J===g||J==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(J=>J>0).reduce((J,$o)=>J+$o,0)]).sort((F,J)=>F[1]-J[1])[0])==null?void 0:K[0];M&&(U=M);break}case"initialPlacement":U=r;break}if(i!==U)return{reset:{placement:U}}}return{}}}},Zn=new Set(["left","top"]);async function Kn(t,e){const{placement:n,platform:o,elements:i}=t,s=await(o.isRTL==null?void 0:o.isRTL(i.floating)),l=X(n),r=ft(n),a=B(n)==="y",d=Zn.has(l)?-1:1,f=s&&a?-1:1,c=ct(e,t);let{mainAxis:u,crossAxis:p,alignmentAxis:h}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return r&&typeof h=="number"&&(p=r==="end"?h*-1:h),a?{x:p*f,y:u*d}:{x:u*d,y:p*f}}const Jn=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:s,placement:l,middlewareData:r}=e,a=await Kn(e,t);return l===((n=r.offset)==null?void 0:n.placement)&&(o=r.arrow)!=null&&o.alignmentOffset?{}:{x:i+a.x,y:s+a.y,data:{...a,placement:l}}}}},Qn=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i,platform:s}=e,{mainAxis:l=!0,crossAxis:r=!1,limiter:a={fn:m=>{let{x:g,y}=m;return{x:g,y}}},...d}=ct(t,e),f={x:n,y:o},c=await s.detectOverflow(e,d),u=B(X(i)),p=We(u);let h=f[p],w=f[u];if(l){const m=p==="y"?"top":"left",g=p==="y"?"bottom":"right",y=h+c[m],x=h-c[g];h=Jt(y,h,x)}if(r){const m=u==="y"?"top":"left",g=u==="y"?"bottom":"right",y=w+c[m],x=w-c[g];w=Jt(y,w,x)}const v=a.fn({...e,[p]:h,[u]:w});return{...v,data:{x:v.x-n,y:v.y-o,enabled:{[p]:l,[u]:r}}}}}},to=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:i,rects:s,platform:l,elements:r}=e,{apply:a=()=>{},...d}=ct(t,e),f=await l.detectOverflow(e,d),c=X(i),u=ft(i),p=B(i)==="y",{width:h,height:w}=s.floating;let v,m;c==="top"||c==="bottom"?(v=c,m=u===(await(l.isRTL==null?void 0:l.isRTL(r.floating))?"start":"end")?"left":"right"):(m=c,v=u==="end"?"top":"bottom");const g=w-f.top-f.bottom,y=h-f.left-f.right,x=Y(w-f[v],g),b=Y(h-f[m],y),S=!e.middlewareData.shift;let E=x,A=b;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(A=y),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(E=g),S&&!u){const N=L(f.left,0),Z=L(f.right,0),H=L(f.top,0),K=L(f.bottom,0);p?A=h-2*(N!==0||Z!==0?N+Z:L(f.left,f.right)):E=w-2*(H!==0||K!==0?H+K:L(f.top,f.bottom))}await a({...e,availableWidth:A,availableHeight:E});const C=await l.getDimensions(r.floating);return h!==C.width||w!==C.height?{reset:{rects:!0}}:{}}}};function Pt(){return typeof window<"u"}function dt(t){return Be(t)?(t.nodeName||"").toLowerCase():"#document"}function _(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function j(t){var e;return(e=(Be(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Be(t){return Pt()?t instanceof Node||t instanceof _(t).Node:!1}function D(t){return Pt()?t instanceof Element||t instanceof _(t).Element:!1}function I(t){return Pt()?t instanceof HTMLElement||t instanceof _(t).HTMLElement:!1}function Ie(t){return!Pt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof _(t).ShadowRoot}function xt(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=P(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&i!=="inline"&&i!=="contents"}function eo(t){return/^(table|td|th)$/.test(dt(t))}function Mt(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const no=/transform|translate|scale|rotate|perspective|filter/,oo=/paint|layout|strict|content/,nt=t=>!!t&&t!=="none";let ne;function oe(t){const e=D(t)?P(t):t;return nt(e.transform)||nt(e.translate)||nt(e.scale)||nt(e.rotate)||nt(e.perspective)||!ie()&&(nt(e.backdropFilter)||nt(e.filter))||no.test(e.willChange||"")||oo.test(e.contain||"")}function io(t){let e=G(t);for(;I(e)&&!ut(e);){if(oe(e))return e;if(Mt(e))return null;e=G(e)}return null}function ie(){return ne==null&&(ne=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ne}function ut(t){return/^(html|body|#document)$/.test(dt(t))}function P(t){return _(t).getComputedStyle(t)}function Ft(t){return D(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function G(t){if(dt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Ie(t)&&t.host||j(t);return Ie(e)?e.host:e}function Ue(t){const e=G(t);return ut(e)?t.ownerDocument?t.ownerDocument.body:t.body:I(e)&&xt(e)?e:Ue(e)}function St(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Ue(t),s=i===((o=t.ownerDocument)==null?void 0:o.body),l=_(i);if(s){const r=se(l);return e.concat(l,l.visualViewport||[],xt(i)?i:[],r&&n?St(r):[])}else return e.concat(i,St(i,[],n))}function se(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function qe(t){const e=P(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=I(t),s=i?t.offsetWidth:n,l=i?t.offsetHeight:o,r=Lt(n)!==s||Lt(o)!==l;return r&&(n=s,o=l),{width:n,height:o,$:r}}function le(t){return D(t)?t:t.contextElement}function ht(t){const e=le(t);if(!I(e))return W(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:s}=qe(e);let l=(s?Lt(n.width):n.width)/o,r=(s?Lt(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!r||!Number.isFinite(r))&&(r=1),{x:l,y:r}}const so=W(0);function Ye(t){const e=_(t);return!ie()||!e.visualViewport?so:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function lo(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==_(t)?!1:e}function ot(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),s=le(t);let l=W(1);e&&(o?D(o)&&(l=ht(o)):l=ht(t));const r=lo(s,n,o)?Ye(s):W(0);let a=(i.left+r.x)/l.x,d=(i.top+r.y)/l.y,f=i.width/l.x,c=i.height/l.y;if(s){const u=_(s),p=o&&D(o)?_(o):o;let h=u,w=se(h);for(;w&&o&&p!==h;){const v=ht(w),m=w.getBoundingClientRect(),g=P(w),y=m.left+(w.clientLeft+parseFloat(g.paddingLeft))*v.x,x=m.top+(w.clientTop+parseFloat(g.paddingTop))*v.y;a*=v.x,d*=v.y,f*=v.x,c*=v.y,a+=y,d+=x,h=_(w),w=se(h)}}return Dt({width:f,height:c,x:a,y:d})}function Wt(t,e){const n=Ft(t).scrollLeft;return e?e.left+n:ot(j(t)).left+n}function Xe(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-Wt(t,n),i=n.top+e.scrollTop;return{x:o,y:i}}function ro(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const s=i==="fixed",l=j(o),r=e?Mt(e.floating):!1;if(o===l||r&&s)return n;let a={scrollLeft:0,scrollTop:0},d=W(1);const f=W(0),c=I(o);if((c||!c&&!s)&&((dt(o)!=="body"||xt(l))&&(a=Ft(o)),c)){const p=ot(o);d=ht(o),f.x=p.x+o.clientLeft,f.y=p.y+o.clientTop}const u=l&&!c&&!s?Xe(l,a):W(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-a.scrollLeft*d.x+f.x+u.x,y:n.y*d.y-a.scrollTop*d.y+f.y+u.y}}function ao(t){return Array.from(t.getClientRects())}function co(t){const e=j(t),n=Ft(t),o=t.ownerDocument.body,i=L(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=L(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let l=-n.scrollLeft+Wt(t);const r=-n.scrollTop;return P(o).direction==="rtl"&&(l+=L(e.clientWidth,o.clientWidth)-i),{width:i,height:s,x:l,y:r}}const Ge=25;function fo(t,e){const n=_(t),o=j(t),i=n.visualViewport;let s=o.clientWidth,l=o.clientHeight,r=0,a=0;if(i){s=i.width,l=i.height;const f=ie();(!f||f&&e==="fixed")&&(r=i.offsetLeft,a=i.offsetTop)}const d=Wt(o);if(d<=0){const f=o.ownerDocument,c=f.body,u=getComputedStyle(c),p=f.compatMode==="CSS1Compat"&&parseFloat(u.marginLeft)+parseFloat(u.marginRight)||0,h=Math.abs(o.clientWidth-c.clientWidth-p);h<=Ge&&(s-=h)}else d<=Ge&&(s+=d);return{width:s,height:l,x:r,y:a}}function uo(t,e){const n=ot(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,s=I(t)?ht(t):W(1),l=t.clientWidth*s.x,r=t.clientHeight*s.y,a=i*s.x,d=o*s.y;return{width:l,height:r,x:a,y:d}}function Ze(t,e,n){let o;if(e==="viewport")o=fo(t,n);else if(e==="document")o=co(j(t));else if(D(e))o=uo(e,n);else{const i=Ye(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Dt(o)}function Ke(t,e){const n=G(t);return n===e||!D(n)||ut(n)?!1:P(n).position==="fixed"||Ke(n,e)}function ho(t,e){const n=e.get(t);if(n)return n;let o=St(t,[],!1).filter(r=>D(r)&&dt(r)!=="body"),i=null;const s=P(t).position==="fixed";let l=s?G(t):t;for(;D(l)&&!ut(l);){const r=P(l),a=oe(l);!a&&r.position==="fixed"&&(i=null),(s?!a&&!i:!a&&r.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||xt(l)&&!a&&Ke(t,l))?o=o.filter(f=>f!==l):i=r,l=G(l)}return e.set(t,o),o}function po(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const l=[...n==="clippingAncestors"?Mt(e)?[]:ho(e,this._c):[].concat(n),o],r=Ze(e,l[0],i);let a=r.top,d=r.right,f=r.bottom,c=r.left;for(let u=1;u<l.length;u++){const p=Ze(e,l[u],i);a=L(p.top,a),d=Y(p.right,d),f=Y(p.bottom,f),c=L(p.left,c)}return{width:d-c,height:f-a,x:c,y:a}}function mo(t){const{width:e,height:n}=qe(t);return{width:e,height:n}}function go(t,e,n){const o=I(e),i=j(e),s=n==="fixed",l=ot(t,!0,s,e);let r={scrollLeft:0,scrollTop:0};const a=W(0);function d(){a.x=Wt(i)}if(o||!o&&!s)if((dt(e)!=="body"||xt(i))&&(r=Ft(e)),o){const p=ot(e,!0,s,e);a.x=p.x+e.clientLeft,a.y=p.y+e.clientTop}else i&&d();s&&!o&&i&&d();const f=i&&!o&&!s?Xe(i,r):W(0),c=l.left+r.scrollLeft-a.x-f.x,u=l.top+r.scrollTop-a.y-f.y;return{x:c,y:u,width:l.width,height:l.height}}function re(t){return P(t).position==="static"}function Je(t,e){if(!I(t)||P(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return j(t)===n&&(n=n.ownerDocument.body),n}function Qe(t,e){const n=_(t);if(Mt(t))return n;if(!I(t)){let i=G(t);for(;i&&!ut(i);){if(D(i)&&!re(i))return i;i=G(i)}return n}let o=Je(t,e);for(;o&&eo(o)&&re(o);)o=Je(o,e);return o&&ut(o)&&re(o)&&!oe(o)?n:o||io(t)||n}const yo=async function(t){const e=this.getOffsetParent||Qe,n=this.getDimensions,o=await n(t.floating);return{reference:go(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function wo(t){return P(t).direction==="rtl"}const ae={convertOffsetParentRelativeRectToViewportRelativeRect:ro,getDocumentElement:j,getClippingRect:po,getOffsetParent:Qe,getElementRects:yo,getClientRects:ao,getDimensions:mo,getScale:ht,isElement:D,isRTL:wo};function tn(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function vo(t,e){let n=null,o;const i=j(t);function s(){var r;clearTimeout(o),(r=n)==null||r.disconnect(),n=null}function l(r,a){r===void 0&&(r=!1),a===void 0&&(a=1),s();const d=t.getBoundingClientRect(),{left:f,top:c,width:u,height:p}=d;if(r||e(),!u||!p)return;const h=_t(c),w=_t(i.clientWidth-(f+u)),v=_t(i.clientHeight-(c+p)),m=_t(f),y={rootMargin:-h+"px "+-w+"px "+-v+"px "+-m+"px",threshold:L(0,Y(1,a))||1};let x=!0;function b(S){const E=S[0].intersectionRatio;if(E!==a){if(!x)return l();E?l(!1,E):o=setTimeout(()=>{l(!1,1e-7)},1e3)}E===1&&!tn(d,t.getBoundingClientRect())&&l(),x=!1}try{n=new IntersectionObserver(b,{...y,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,y)}n.observe(t)}return l(!0),s}function bo(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:r=typeof IntersectionObserver=="function",animationFrame:a=!1}=o,d=le(t),f=i||s?[...d?St(d):[],...e?St(e):[]]:[];f.forEach(m=>{i&&m.addEventListener("scroll",n,{passive:!0}),s&&m.addEventListener("resize",n)});const c=d&&r?vo(d,n):null;let u=-1,p=null;l&&(p=new ResizeObserver(m=>{let[g]=m;g&&g.target===d&&p&&e&&(p.unobserve(e),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var y;(y=p)==null||y.observe(e)})),n()}),d&&!a&&p.observe(d),e&&p.observe(e));let h,w=a?ot(t):null;a&&v();function v(){const m=ot(t);w&&!tn(w,m)&&n(),w=m,h=requestAnimationFrame(v)}return n(),()=>{var m;f.forEach(g=>{i&&g.removeEventListener("scroll",n),s&&g.removeEventListener("resize",n)}),c?.(),(m=p)==null||m.disconnect(),p=null,a&&cancelAnimationFrame(h)}}const xo=Jn,So=Qn,Eo=Gn,en=to,Oo=Xn,Ao=(t,e,n)=>{const o=new Map,i={platform:ae,...n},s={...i.platform,_c:o};return Yn(t,e,{...i,platform:s})};function nn(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}const Co=/transform|translate|scale|rotate|perspective|filter/,To=/paint|layout|strict|content/,it=t=>!!t&&t!=="none";let ce;function No(t){const e=(n=t,typeof window<"u"&&(n instanceof Element||n instanceof nn(n).Element)?nn(o=t).getComputedStyle(o):t);var n,o;return it(e.transform)||it(e.translate)||it(e.scale)||it(e.rotate)||it(e.perspective)||(ce==null&&(ce=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),!ce&&(it(e.backdropFilter)||it(e.filter)))||Co.test(e.willChange||"")||To.test(e.contain||"")}function Ro(t){return(function(e){for(let n=e;n;n=fe(n))if(n instanceof Element&&getComputedStyle(n).display==="none")return null;for(let n=fe(e);n;n=fe(n)){if(!(n instanceof Element))continue;const o=getComputedStyle(n);if(o.display!=="contents"&&(o.position!=="static"||No(o)||n.tagName==="BODY"))return n}return null})(t)}function fe(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var Et;(function(t){t.TOOLTIP="tooltip",t.POPOVER="popover",t.FLYOUT_PANEL="flyout-panel"})(Et||(Et={}));const mt=class mt{constructor(e,n){this.el=e,this.config=n,this.offset=10,this.timeDelayBeforeFadingOut=50,this.popoverMainAxisEnabled=!0,this.currentPlacement=n.placement,this.cleanup=null}getRootElement(){return this.el.shadowRoot??this.el}initialize(){this.timeBeforeElementShows=this.config.showWithoutDelay?50:500,this.timeOfAnimation=this.config.showWithoutDelay?50:250;const e=this.getRootElement();this.floatingElement=e.querySelector(this.config.floatingElementSelector),this.floatingElement&&this.applyViewportMaxWidth(),this.arrowEl=this.config.showArrow!==!1&&this.config.arrowElementSelector?e.querySelector(this.config.arrowElementSelector):null,this.anchorElement=this.config.htmlFor?.length>0?document.getElementById(this.config.htmlFor):this.config.getAnchorElement?this.config.getAnchorElement(e):this.el.shadowRoot?this.config.getAnchorElementFromSlot(this.el.shadowRoot):null,this.anchorElement?this.setupPositioning():console.warn("Could not determine the element associated with this floating element."+(this.config.htmlFor?.length>0?`Element with id=${this.config.htmlFor} could not be found on the DOM.`:""))}getAnchorElement(){return this.anchorElement}updateConfig(e){this.config={...this.config,...e},"showWithoutDelay"in e&&(this.timeBeforeElementShows=this.config.showWithoutDelay?50:500,this.timeOfAnimation=this.config.showWithoutDelay?50:250),this.forceUpdate()}getConfig(){return this.config}getCurrentPlacement(){return this.currentPlacement||this.config.placement}reposition(){this.forceUpdate()}forceUpdate(){this.anchorElement&&this.floatingElement&&this.updatePosition()}setupPositioning(){this.anchorElement&&this.updatePosition()}setupAutoUpdate(){!this.cleanup&&this.anchorElement&&(this.cleanup=bo(this.anchorElement,this.floatingElement,(()=>{this.updatePosition()}),{ancestorScroll:!0,ancestorResize:!1,elementResize:!0,layoutShift:!0,animationFrame:!1}))}cleanupAutoUpdate(){this.cleanup&&(this.cleanup(),this.cleanup=null)}updatePosition(){if(!this.anchorElement)return;const e=this.config.offset??this.offset,n=[xo(e)],o=this.config.lockToMainAxis??!1,i=this.config.constrainPlacements,s=i&&i.length>0?i.includes(this.config.placement)?this.config.placement:i[0]:this.config.placement,l=Eo(i&&i.length>0?{mainAxis:!0,crossAxis:!1,padding:e,fallbackPlacements:i.filter((d=>d!==s)),fallbackAxisSideDirection:"none"}:{mainAxis:!0,crossAxis:!o&&"alignment",fallbackAxisSideDirection:"end",padding:e}),r=this.config.elementType===Et.POPOVER,a=So({padding:e,mainAxis:this.config.constrainToViewportHeight||this.config.elementType===Et.TOOLTIP||r&&this.popoverMainAxisEnabled,crossAxis:!1});this.config.matchReferenceWidth&&n.push(en({apply({elements:d,rects:f}){Object.assign(d.floating.style,{width:`${f.reference.width}px`})}})),s?.includes("-")?n.push(l,a):n.push(a,l),this.config.constrainToViewportHeight&&n.push(en({padding:e,apply:({availableHeight:d,elements:f})=>{const c=Array.from(f.floating.children).find((u=>u!==this.arrowEl));c instanceof HTMLElement&&Object.assign(c.style,{maxHeight:`${Math.max(0,d)}px`,overflowY:"auto",overflowX:"hidden"})}})),this.config.showArrow!==!1&&this.arrowEl&&n.push(Oo({element:this.arrowEl,padding:e})),Ao(this.anchorElement,this.floatingElement,{placement:s,strategy:"fixed",middleware:n,platform:{...ae,getOffsetParent:d=>ae.getOffsetParent(d,Ro)}}).then((({x:d,y:f,middlewareData:c,placement:u})=>{if(r){const v=u.startsWith("left")||u.startsWith("right"),m=u.startsWith("top")||u.startsWith("bottom"),g=this.isAnchorInViewport(),y=!!m||(v?g:this.popoverMainAxisEnabled);if(y!==this.popoverMainAxisEnabled)return this.popoverMainAxisEnabled=y,void this.updatePosition()}this.currentPlacement=u,Object.assign(this.floatingElement.style,{left:`${d}px`,top:`${f}px`,position:"fixed",transition:`opacity ${this.timeOfAnimation}ms ease`});const p=u.split("-")[0]??"bottom",h={top:"bottom",right:"left",bottom:"top",left:"right"}[p],{arrowZIndex:w}=this.normalizeFloatingElementStacking();if(c.arrow&&this.arrowEl){const v=this.arrowEl.offsetWidth,{x:m,y:g}=c.arrow;this.arrowEl.style.borderRadius=`${["left","right"].includes(p)?"0 ":""}var(--gidsFloatingElement-tip-border-radius, 2px)${["top","bottom"].includes(p)?" 0":""}`,Object.assign(this.arrowEl.style,{left:m!==null?`${m}px`:"",top:g!==null?`${g}px`:"",right:"",bottom:"",[h]:-v/2+"px",transform:"rotate(45deg)",zIndex:`${w}`,background:"var(--gidsFloatingElement-background)"})}}))}applyViewportMaxWidth(){const e=`calc(100vw - ${2*this.offset}px)`;this.floatingElement&&this.floatingElement?.style.maxWidth!==e&&(this.floatingElement.style.maxWidth=e)}normalizeFloatingElementStacking(){const e=this.floatingElement.style.zIndex||(window.getComputedStyle?.(this.floatingElement).zIndex??""),n=Number.parseInt(e,10),o=Number.isNaN(n)?-1:n-1,i=Number.isNaN(n)?o+1:n;return Number.isNaN(i)||(this.floatingElement.style.zIndex=`${i}`),Array.from(this.floatingElement.children).forEach((s=>{if(!(s instanceof HTMLElement)||s===this.arrowEl)return;const l=s.style.zIndex||(window.getComputedStyle?.(s).zIndex??""),r=Number.parseInt(l,10),a=window.getComputedStyle?.(s).position??"";(l===""||l==="auto"||Number.isNaN(r)||r<i)&&(s.style.zIndex=`${i}`,a!==""&&a!=="static"||(s.style.position="relative"))})),{contentZIndex:i,arrowZIndex:o}}hideFloatingElement(){this.floatingElement.classList.remove(this.config.visibilityClass),mt.currentFloatingElements.delete(this.config.elementType)}showFloatingElement(){const e=mt.currentFloatingElements.get(this.config.elementType);e&&e.hideFloatingElement(),this.floatingElement.classList.add(this.config.visibilityClass),mt.currentFloatingElements.set(this.config.elementType,this)}isVisible(){return this.floatingElement.classList.contains(this.config.visibilityClass)}show(){this.setupAutoUpdate(),this.showFloatingElement()}hide(){this.cleanupAutoUpdate(),this.hideFloatingElement()}toggle(){this.isVisible()?this.hide():this.show()}showAfterDelay(){clearTimeout(this.hoverOutTimeout),this.hoverTimeout=setTimeout((()=>{this.show()}),this.timeBeforeElementShows)}hideAfterDelay(){clearTimeout(this.hoverTimeout),this.hoverOutTimeout=setTimeout((()=>{this.hide()}),this.timeDelayBeforeFadingOut)}cancelDelayedActions(){clearTimeout(this.hoverTimeout),clearTimeout(this.hoverOutTimeout)}destroy(){this.cleanupAutoUpdate(),this.cancelDelayedActions()}isAnchorInViewport(){if(!(this.anchorElement&&this.anchorElement instanceof Element))return!1;const e=this.anchorElement.getBoundingClientRect(),n=window.innerHeight||document.documentElement?.clientHeight||0,o=window.innerWidth||document.documentElement?.clientWidth||0,i=e.height/2+2*this.offset;return e.bottom>=i&&e.top<=n-i&&e.right>=0&&e.left<=o}};mt.currentFloatingElements=new Map;let de=mt;const pt=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let on=!1;pt&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(pt):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let ue=null;const he=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{sn()})):void 0,sn=()=>{if(pt===void 0)return!1;const t=(()=>{if(pt===void 0)return;const e=[];for(let n=0;n<document.styleSheets.length;n++){const o=document.styleSheets.item(n);if(o)try{let i=-1,s=0;for(let l=0;l<o.cssRules.length;l++){const r=o.cssRules.item(l);if(r?.cssText.startsWith("gids-global-styles-start"))i=l;else if(i>-1){if(r?.cssText.startsWith("gids-global-styles-end")){s=l-i+1;break}e.push(r)}}if(i>-1)return{rulesStartIndex:i,originalRulesCount:s,rules:e,styleSheet:o}}catch(i){if(!(i instanceof DOMException))throw i}}})();if(t!==void 0){const e=t.styleSheet.ownerNode;return he!==void 0&&e!==ue&&(ue&&he.disconnect(),e instanceof Element&&he.observe(e,{childList:!0,characterData:!0,subtree:!0}),ue=e),pt.replaceSync((n=>n.rules.map((o=>o.cssText)).join(""))(t)),(n=>{const{rulesStartIndex:o,originalRulesCount:i,styleSheet:s}=n;for(let l=0;l<i;l++)s.deleteRule(o)})(t),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},ko=()=>(on||(on=sn()),pt),ln=_n(class extends fn{constructor(t){super(),t!==!1&&this.__registerHost(),this.__attachShadow(),this.placement="bottom",this.showWithoutDelay=!1,this.lockToMainAxis=!1,this.handleShowEvent=()=>{this.floatingElementManager.showAfterDelay()},this.handleHideEvent=()=>{this.floatingElementManager.hideAfterDelay()}}connectedCallback(){const t=ko();t!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(t)}componentDidLoad(){this.floatingElementManager=new de(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:this.showWithoutDelay,lockToMainAxis:this.lockToMainAxis,floatingElementSelector:"#tooltip",arrowElementSelector:"#arrow",visibilityClass:"gids-tooltip--visible",elementType:Et.TOOLTIP,getAnchorElementFromSlot:t=>t.querySelector("slot")?.assignedElements()[0]||null}),this.floatingElementManager.initialize(),this.setupEventListeners()}setupEventListeners(){const t=this.floatingElementManager.getAnchorElement();t&&(t.addEventListener("mouseenter",this.handleShowEvent),t.addEventListener("focus",this.handleShowEvent),t.addEventListener("mouseleave",this.handleHideEvent),t.addEventListener("blur",this.handleHideEvent))}placementChanged(t){this.floatingElementManager?.updateConfig({placement:t}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}showWithoutDelayChanged(t){this.floatingElementManager?.updateConfig({showWithoutDelay:t})}lockToMainAxisChanged(t){this.floatingElementManager?.updateConfig({lockToMainAxis:t})}htmlForChanged(t){this.floatingElementManager?.updateConfig({htmlFor:t}),this.cleanupEventListeners(),this.floatingElementManager?.initialize(),this.setupEventListeners()}cleanupEventListeners(){const t=this.floatingElementManager?.getAnchorElement();t&&(t.removeEventListener("mouseenter",this.handleShowEvent),t.removeEventListener("focus",this.handleShowEvent),t.removeEventListener("mouseleave",this.handleHideEvent),t.removeEventListener("blur",this.handleHideEvent))}render(){return rt($n,{key:"63a9538c744df31313d565a43be58265727b82c4"},rt("slot",{key:"b0dde46d056180195e88ddada52f8a17acea240f"}),rt("span",{key:"38a92b280905177d3fa03edf406d7d1a88edb425",id:"tooltip",part:"tooltip",role:"tooltip"},rt("span",{key:"2c84d414edd57bb4799a3def4987d98aa4e9de93",id:"arrow"}),this.tooltipText))}disconnectedCallback(){this.cleanupEventListeners(),this.floatingElementManager?.destroy()}get _el(){return this}static get watchers(){return{placement:[{placementChanged:0}],showWithoutDelay:[{showWithoutDelayChanged:0}],lockToMainAxis:[{lockToMainAxisChanged:0}],htmlFor:[{htmlForChanged:0}]}}static get style(){return"gids-tooltip{--gidsTooltip-background:var(--gids-color-background-neutral-bold-default);--gidsTooltip-text-color:var(--gids-color-text-inverse);--gidsTooltip-padding:var(--gids-padding-vertical-edge-to-element-100) var(--gids-padding-horizontal-edge-to-element-200);--gidsTooltip-border-radius:var(--gids-border-radius-sm);--gidsTooltip-tip-border-radius:2px;--gidsTooltip-tip-size:12px;--gidsFloatingElement-background:var(--gidsTooltip-background);--gidsFloatingElement-tip-border-radius:var(--gidsTooltip-tip-border-radius)}[part=tooltip]{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);position:absolute;display:inline-block;hyphens:auto;background-color:var(--gidsTooltip-background);color:var(--gidsTooltip-text-color);padding:var(--gidsTooltip-padding);border-radius:var(--gidsTooltip-border-radius);z-index:1000;opacity:0;pointer-events:none}[part=tooltip].gids-tooltip--visible{pointer-events:initial;opacity:1}[part=tooltip] span#arrow{position:absolute;height:var(--gidsTooltip-tip-size);width:var(--gidsTooltip-tip-size)}"}},[257,"gids-tooltip",{htmlFor:[513,"for"],tooltipText:[513,"tooltip-text"],placement:[513],showWithoutDelay:[516,"show-without-delay"],lockToMainAxis:[4,"lock-to-main-axis"]},void 0,{placement:[{placementChanged:0}],showWithoutDelay:[{showWithoutDelayChanged:0}],lockToMainAxis:[{lockToMainAxisChanged:0}],htmlFor:[{htmlForChanged:0}]}]);function rn(){typeof customElements<"u"&&["gids-tooltip"].forEach((t=>{t==="gids-tooltip"&&(customElements.get(t)||customElements.define(t,ln))}))}rn();const Lo=ln,_o=rn;Q.GidsTooltip=Lo,Q.defineCustomElement=_o,Object.defineProperty(Q,Symbol.toStringTag,{value:"Module"})}));
|