@ganpatiinfo/gids-core-web 23.0.0 → 24.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 +28 -30
- package/dist/css/index.css.map +1 -1
- package/dist/gids-action-bar.js +1 -1
- package/dist/gids-activity-gauge.js +1 -1
- package/dist/gids-advanced-tooltip.js +1 -1
- package/dist/gids-bar-chart.js +1 -1
- package/dist/gids-bento-card.js +1 -1
- package/dist/gids-calendar-header-panel.js +1 -1
- package/dist/gids-calendar-month-list.js +1 -1
- package/dist/gids-calendar-picker.js +1 -1
- package/dist/gids-calendar-year-list.js +1 -1
- package/dist/gids-calendar.js +1 -1
- package/dist/gids-chart-legend-item.js +1 -1
- package/dist/gids-chart-legend.js +1 -1
- package/dist/gids-chart.js +1 -1
- package/dist/gids-chevron-button.js +1 -1
- package/dist/gids-date-picker-field.js +1 -1
- package/dist/gids-date-picker.js +1 -1
- package/dist/gids-day-dropdown-picker.js +1 -1
- package/dist/gids-dot.js +1 -1
- package/dist/gids-dropdown-field.js +1 -1
- package/dist/gids-dropdown-picker.js +1 -1
- package/dist/gids-dropdown.js +1 -1
- package/dist/gids-expansion-body-list-item.js +1 -1
- package/dist/gids-expansion-body-list.js +1 -1
- package/dist/gids-expansion-group.js +1 -1
- package/dist/gids-expansion.js +1 -1
- package/dist/gids-field.js +1 -1
- package/dist/gids-filter.js +1 -1
- package/dist/gids-flyout-panel.js +1 -1
- package/dist/gids-form.js +1 -1
- package/dist/gids-header-navigation-item.js +1 -1
- package/dist/gids-header-navigation.js +1 -1
- package/dist/gids-icon.js +1 -1
- package/dist/gids-input.js +1 -1
- package/dist/gids-line-chart.js +1 -1
- package/dist/gids-md-table.js +1 -1
- package/dist/gids-month-dropdown-picker.js +1 -1
- package/dist/gids-overflow-container.js +1 -1
- package/dist/gids-overlay-provider.js +1 -1
- package/dist/gids-password-field.js +1 -1
- package/dist/gids-pie-chart.js +1 -1
- package/dist/gids-popover.js +1 -1
- package/dist/gids-profile-menu-header.js +1 -1
- package/dist/gids-profile-menu.js +1 -1
- package/dist/gids-profile.js +1 -1
- package/dist/gids-scrim.js +1 -1
- package/dist/gids-sidebar-item.js +1 -1
- package/dist/gids-sidebar-menu.js +1 -1
- package/dist/gids-sidebar.js +1 -1
- package/dist/gids-skeleton.js +1 -1
- package/dist/gids-tab-item.js +1 -1
- package/dist/gids-tab.js +1 -1
- package/dist/gids-text-field.js +1 -1
- package/dist/gids-toggle-button.js +1 -1
- package/dist/gids-tooltip.js +1 -1
- package/dist/gids-transfer-list.js +1 -1
- package/dist/gids-year-dropdown-picker.js +1 -1
- package/dist/{p-vz4tzbld.js → p-3H10HA8U.js} +1 -1
- package/dist/{p-iEUyQs9t.js → p-5SNf54JN.js} +1 -1
- package/dist/{p-B2YjHZsu.js → p-69VXkSHc.js} +1 -1
- package/dist/{p-B18yNcA0.js → p-B2CvDGSE.js} +1 -1
- package/dist/{p-DOiDD7cS.js → p-BGBsQSqM.js} +1 -1
- package/dist/{p-CueywyHC.js → p-BWrCtA6O.js} +1 -1
- package/dist/{p-DLX-l0-L.js → p-BZdaC92p.js} +1 -1
- package/dist/{p-BcXumkjZ.js → p-Bbw1WCO7.js} +1 -1
- package/dist/{p-FSv82P6v.js → p-Bi-yBBYT.js} +1 -1
- package/dist/{p-DjnREsH0.js → p-BwDi-0yS.js} +1 -1
- package/dist/{p-C88Z_F_m.js → p-By0R-oJV.js} +1 -1
- package/dist/{p-MaJDBE6u.js → p-CCX8DA2Z.js} +1 -1
- package/dist/{p-B4d07GWP.js → p-CJ1tQlEt.js} +1 -1
- package/dist/{p-x1tVOUSt.js → p-CL9pZVrx.js} +1 -1
- package/dist/{p-CxfmNDsm.js → p-CS2U2Mro.js} +1 -1
- package/dist/{p-lvArnlBV.js → p-Cf9ipNLT.js} +1 -1
- package/dist/{p-DXlBK8TS.js → p-Cs-QTqUM.js} +1 -1
- package/dist/{p-DYKcsBzA.js → p-CytAVtIP.js} +1 -1
- package/dist/{p-fE-MdTCH.js → p-D8vooi3L.js} +1 -1
- package/dist/{p-DKe6orSY.js → p-DB0ZJi5J.js} +1 -1
- package/dist/{p-BNW2xgxF.js → p-DHOvFnv4.js} +1 -1
- package/dist/{p-D_mszaeq.js → p-DIrAYgqX.js} +1 -1
- package/dist/{p-XVlT5H5q.js → p-DJH7wtiu.js} +1 -1
- package/dist/{p-CKj2Ru6e.js → p-DMN5PI18.js} +1 -1
- package/dist/{p-jtpLLxuw.js → p-Dt270JVs.js} +1 -1
- package/dist/{p-DiX4HaE6.js → p-DuonIHDh.js} +1 -1
- package/dist/{p-CZgH5rZs.js → p-_OVEnTXa.js} +1 -1
- package/dist/{p-CSXuAs_X.js → p-cXOH6OAQ.js} +1 -1
- package/dist/{p-62akP0Ad.js → p-lVcUFx2e.js} +1 -1
- package/dist/{p-gK9DvcL8.js → p-peMqbYbz.js} +1 -1
- package/dist/p-piTNUZit.js +1 -0
- package/dist/types/components/webComponents/GidsHeaderNavigation/GidsHeaderNavigation.d.ts +0 -1
- package/dist/types/components/webComponents/GidsHeaderNavigationItem/GidsHeaderNavigationItem.d.ts +4 -6
- package/dist/types/components.d.ts +24 -7
- package/dist-bundled/es/gids-action-bar.js +16 -16
- package/dist-bundled/es/gids-activity-gauge.js +1 -1
- package/dist-bundled/es/gids-advanced-tooltip.js +4 -4
- 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 +1 -1
- package/dist-bundled/es/gids-calendar-month-list.js +1 -1
- package/dist-bundled/es/gids-calendar-picker.js +1 -1
- package/dist-bundled/es/gids-calendar-year-list.js +4 -4
- package/dist-bundled/es/gids-calendar.js +2 -2
- package/dist-bundled/es/gids-chart-legend-item.js +4 -4
- 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 +5 -5
- package/dist-bundled/es/gids-date-picker-field.js +21 -21
- package/dist-bundled/es/gids-date-picker.js +4 -4
- package/dist-bundled/es/gids-day-dropdown-picker.js +3 -3
- package/dist-bundled/es/gids-dot.js +1 -1
- package/dist-bundled/es/gids-dropdown-field.js +11 -11
- package/dist-bundled/es/gids-dropdown-picker.js +1 -1
- package/dist-bundled/es/gids-dropdown.js +3 -3
- package/dist-bundled/es/gids-expansion-body-list-item.js +1 -1
- package/dist-bundled/es/gids-expansion-body-list.js +2 -2
- package/dist-bundled/es/gids-expansion-group.js +5 -5
- package/dist-bundled/es/gids-expansion.js +1 -1
- package/dist-bundled/es/gids-field.js +2 -2
- package/dist-bundled/es/gids-filter.js +1 -1
- package/dist-bundled/es/gids-flyout-panel.js +3 -3
- package/dist-bundled/es/gids-form.js +4 -4
- package/dist-bundled/es/gids-header-navigation-item.js +4 -4
- package/dist-bundled/es/gids-header-navigation.js +59 -60
- package/dist-bundled/es/gids-icon.js +3 -3
- package/dist-bundled/es/gids-input.js +4 -4
- package/dist-bundled/es/gids-line-chart.js +3 -3
- package/dist-bundled/es/gids-md-table.js +60 -60
- package/dist-bundled/es/gids-month-dropdown-picker.js +4 -4
- package/dist-bundled/es/gids-overflow-container.js +9 -9
- package/dist-bundled/es/gids-overlay-provider.js +1 -1
- package/dist-bundled/es/gids-password-field.js +10 -10
- package/dist-bundled/es/gids-pie-chart.js +1 -1
- package/dist-bundled/es/gids-popover.js +1 -1
- package/dist-bundled/es/gids-profile-menu-header.js +4 -4
- package/dist-bundled/es/gids-profile-menu.js +3 -3
- package/dist-bundled/es/gids-profile.js +3 -3
- package/dist-bundled/es/gids-scrim.js +3 -3
- package/dist-bundled/es/gids-sidebar-item.js +1 -1
- package/dist-bundled/es/gids-sidebar-menu.js +1 -1
- package/dist-bundled/es/gids-sidebar.js +9 -9
- package/dist-bundled/es/gids-skeleton.js +8 -8
- package/dist-bundled/es/gids-tab-item.js +6 -6
- package/dist-bundled/es/gids-tab.js +4 -4
- package/dist-bundled/es/gids-text-field.js +8 -8
- package/dist-bundled/es/gids-toggle-button.js +1 -1
- package/dist-bundled/es/gids-tooltip.js +3 -3
- package/dist-bundled/es/gids-transfer-list.js +2 -2
- package/dist-bundled/es/gids-year-dropdown-picker.js +1 -1
- package/dist-bundled/es/{p-vz4tzbld-BYJRjHJw.js → p-3H10HA8U-DWG31yfh.js} +9 -9
- package/dist-bundled/es/{p-iEUyQs9t-BUXXVuwz.js → p-5SNf54JN-Dke4QoYK.js} +2 -2
- package/dist-bundled/es/{p-B2YjHZsu-DxdrSYcE.js → p-69VXkSHc-vZd5gQWS.js} +2 -2
- package/dist-bundled/es/{p-B18yNcA0-BaaXQYM_.js → p-B2CvDGSE-B-50q6JD.js} +5 -5
- package/dist-bundled/es/{p-DOiDD7cS-j1RR9K9r.js → p-BGBsQSqM-DtooH-AA.js} +3 -3
- package/dist-bundled/es/{p-CueywyHC-CsEetdha.js → p-BWrCtA6O-DHaJx1bg.js} +3 -3
- package/dist-bundled/es/{p-DLX-l0-L-gumz4bOG.js → p-BZdaC92p-DjVPKyfk.js} +5 -5
- package/dist-bundled/es/{p-BcXumkjZ-zNpzLmjI.js → p-Bbw1WCO7-CJU0y0iF.js} +7 -7
- package/dist-bundled/es/{p-FSv82P6v-C6jFH7Zo.js → p-Bi-yBBYT-CC0Ktxng.js} +1 -1
- package/dist-bundled/es/{p-DjnREsH0-Cm8vBvIX.js → p-BwDi-0yS-vyn3pUko.js} +5 -5
- package/dist-bundled/es/{p-C88Z_F_m-wMA27lx_.js → p-By0R-oJV-DkI-JpEG.js} +3 -3
- package/dist-bundled/es/{p-MaJDBE6u-DjtEX6-I.js → p-CCX8DA2Z-D0OkaCKx.js} +25 -25
- package/dist-bundled/es/{p-B4d07GWP-DLyo7HQ9.js → p-CJ1tQlEt-B8GYL1we.js} +11 -11
- package/dist-bundled/es/{p-x1tVOUSt-CdB8Szfe.js → p-CL9pZVrx-BYVOaGDA.js} +8 -8
- package/dist-bundled/es/{p-CxfmNDsm-JHseL2it.js → p-CS2U2Mro-6wGJ-t9P.js} +2 -2
- package/dist-bundled/es/{p-lvArnlBV-BxkIAxHG.js → p-Cf9ipNLT-HF4MWnLF.js} +10 -10
- package/dist-bundled/es/{p-DXlBK8TS-DazOvEm2.js → p-Cs-QTqUM-CcvsSUzr.js} +2 -2
- package/dist-bundled/es/{p-DYKcsBzA-BcupA9sw.js → p-CytAVtIP-IZSm6SZx.js} +6 -6
- package/dist-bundled/es/{p-fE-MdTCH-CDvG1Xn1.js → p-D8vooi3L-C5jeoC6H.js} +30 -30
- package/dist-bundled/es/{p-DKe6orSY-D1kYOeuX.js → p-DB0ZJi5J-BEYBVVuq.js} +10 -10
- package/dist-bundled/es/{p-BNW2xgxF-DWKLliyn.js → p-DHOvFnv4-DZQmbUn3.js} +5 -5
- package/dist-bundled/es/{p-D_mszaeq-ndcXN34-.js → p-DIrAYgqX-BoR42JaL.js} +2 -2
- package/dist-bundled/es/{p-XVlT5H5q-CFIMyrM3.js → p-DJH7wtiu-BDWtYcRw.js} +21 -21
- package/dist-bundled/es/{p-CKj2Ru6e-B-Nk5B_P.js → p-DMN5PI18-CiBpBUeE.js} +3 -3
- package/dist-bundled/es/{p-jtpLLxuw-BlEPhjmU.js → p-Dt270JVs-DJODMRWa.js} +1 -1
- package/dist-bundled/es/{p-DiX4HaE6-C35K492C.js → p-DuonIHDh-B6YKWTfP.js} +8 -8
- package/dist-bundled/es/{p-CZgH5rZs-Clk0qfHN.js → p-_OVEnTXa-q7qjnzI3.js} +3 -3
- package/dist-bundled/es/{p-CSXuAs_X-Hw6bT-8r.js → p-cXOH6OAQ-BRmZ0lXm.js} +11 -11
- package/dist-bundled/es/{p-62akP0Ad-D4pJ0a_I.js → p-lVcUFx2e-D6N6qefs.js} +11 -11
- package/dist-bundled/es/{p-gK9DvcL8-Chw-ya2Q.js → p-peMqbYbz-BnWVSfKD.js} +1 -1
- package/dist-bundled/es/p-piTNUZit-Jq4qQLgn.js +137 -0
- package/dist-bundled/umd/gids-action-bar.umd.js +3 -3
- package/dist-bundled/umd/gids-activity-gauge.umd.js +1 -1
- package/dist-bundled/umd/gids-advanced-tooltip.umd.js +1 -1
- package/dist-bundled/umd/gids-bar-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-bento-card.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar-header-panel.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar-month-list.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar-picker.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar-year-list.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar.umd.js +2 -2
- package/dist-bundled/umd/gids-chart-legend-item.umd.js +1 -1
- package/dist-bundled/umd/gids-chart-legend.umd.js +1 -1
- package/dist-bundled/umd/gids-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-chevron-button.umd.js +1 -1
- package/dist-bundled/umd/gids-date-picker-field.umd.js +2 -2
- package/dist-bundled/umd/gids-date-picker.umd.js +1 -1
- package/dist-bundled/umd/gids-day-dropdown-picker.umd.js +2 -2
- package/dist-bundled/umd/gids-dot.umd.js +1 -1
- package/dist-bundled/umd/gids-dropdown-field.umd.js +1 -1
- package/dist-bundled/umd/gids-dropdown-picker.umd.js +1 -1
- package/dist-bundled/umd/gids-dropdown.umd.js +1 -1
- 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 +1 -1
- package/dist-bundled/umd/gids-expansion.umd.js +1 -1
- package/dist-bundled/umd/gids-field.umd.js +1 -1
- package/dist-bundled/umd/gids-filter.umd.js +2 -2
- package/dist-bundled/umd/gids-flyout-panel.umd.js +1 -1
- package/dist-bundled/umd/gids-form.umd.js +1 -1
- 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 +1 -1
- package/dist-bundled/umd/gids-line-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-md-table.umd.js +1 -1
- package/dist-bundled/umd/gids-month-dropdown-picker.umd.js +2 -2
- package/dist-bundled/umd/gids-overflow-container.umd.js +1 -1
- package/dist-bundled/umd/gids-overlay-provider.umd.js +1 -1
- package/dist-bundled/umd/gids-password-field.umd.js +1 -1
- package/dist-bundled/umd/gids-pie-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-popover.umd.js +1 -1
- package/dist-bundled/umd/gids-profile-menu-header.umd.js +1 -1
- 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 +1 -1
- package/dist-bundled/umd/gids-sidebar-menu.umd.js +1 -1
- package/dist-bundled/umd/gids-sidebar.umd.js +2 -2
- package/dist-bundled/umd/gids-skeleton.umd.js +2 -2
- 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 +1 -1
- 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 +1 -1
- package/dist-bundled/umd/gids-year-dropdown-picker.umd.js +2 -2
- package/dist-bundled/umd-complete/gids-core-web.umd.js +9 -9
- package/package.json +4 -4
- package/dist/p-COsSHfdc.js +0 -1
- package/dist-bundled/es/p-COsSHfdc-DfDYoLSS.js +0 -151
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(Q,
|
|
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)},un=(()=>{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=[],dn=(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=dn(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=[],u=c=>{for(let d=0;d<c.length;d++)o=c[d],Array.isArray(o)?u(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(u(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((d=>c[d])).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,u=Ce(n);let f=Ce(o);a.remove(...u.filter((c=>c&&!f.includes(c)))),a.add(...f.filter((c=>c&&!u.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 u;{const f=V(t);if(f&&f.o&&f.o.t){const c=f.o.t[a];c&&c[1]&&(u=c[1])}}return u||(u=a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(o==null||o===!1?o===!1&&t.getAttribute(u)!==""||t.removeAttribute(u):t.setAttribute(u,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 u=!1;r!==(r=r.replace(/^xlink\:?/,""))&&(e=r,u=!0),o==null||o===!1?o===!1&&t.getAttribute(e)!==""||(u?t.removeAttributeNS(me,e):t.removeAttribute(e)):(!l||4&s||i)&&!a&&t.nodeType===1&&(o=o===!0?"":o,u?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 u=i.O==="template"?s.content:s;for(a=0;a<i.m.length;++a)l=Nt(t,i,a),l&&u.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(u){if(u.assignedElements||u.assignedNodes||!u["s-sr"])return;const f=c=>(function(d){const p=[],h=this["s-sn"];d?.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===ye(v)&&p.push(v)})),c?p.filter((v=>v.nodeType===1)):p}).bind(u);u.assignedElements=f(!0),u.assignedNodes=f(!1)})(s),r=e&&e.m&&e.m[n],r&&r.O===i.O&&e.S&&Rt(e.S)),s},Rt=e=>{T.i|=1;const t=e.closest(te.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((i=>i["s-cr"])),o=Array.from(e.__childNodes||e.childNodes);for(const i of n?o.reverse():o)i["s-sh"]!=null&&($(t,i,n??null),i["s-sh"]=void 0,Te=!0)}T.i&=-2},Re=(e,t)=>{T.i|=1;const n=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let o=e;for(;o=o.nextSibling;)o&&o["s-sn"]===e["s-sn"]&&o["s-sh"]===te&&n.push(o)}for(let o=n.length-1;o>=0;o--){const i=n[o];i["s-hn"]!==te&&i["s-ol"]&&($(ve(i).parentNode,i,ve(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,Te=!0),t&&Re(i,t)}T.i&=-2},kt=(e,t,n,o,i,s)=>{let l,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowRoot&&r.tagName===te&&(r=r.shadowRoot),n.O==="template"&&(r=r.content);i<=s;++i)o[i]&&(l=Ne(null,n,i),l&&(o[i].S=l,$(r,l,ve(t))))},Lt=(e,t,n)=>{for(let o=t;o<=n;++o){const i=e[o];if(i){const s=i.S;$t(i),s&&(Ce=!0,s["s-ol"]?s["s-ol"].remove():Re(s,!0),s.remove())}}},ke=(e,t,n=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:n?(n&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),ve=e=>e&&e["s-ol"]||e,ae=(e,t,n=!1)=>{const o=t.S=e.S,i=e.m,s=t.m,l=t.O,r=t.h;let a;r==null?(k=l==="svg"||l!=="foreignObject"&&k,l!=="slot"||we||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Rt(t.S.parentElement)),Xe(e,t,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(ke(b,A,p))ae(b,A,p),b=f[++v],A=d[++m];else if(ke(S,C,p))ae(S,C,p),S=f[--x],C=d[--E];else if(ke(b,C,p))b.O!=="slot"&&C.O!=="slot"||Re(b.S.parentNode,!1),ae(b,C,p),$(N,b.S,S.S.nextSibling),b=f[++v],C=d[--E];else if(ke(S,A,p))b.O!=="slot"&&C.O!=="slot"||Re(S.S.parentNode,!1),ae(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=Ne(f&&f[m],c,g):(ae(w,A,p),f[g]=void 0,h=w.S),A=d[++m]):(h=Ne(f&&f[m],c,m),A=d[++m]),h&&$(ve(b.S).parentNode,h,ve(b.S))}v>x?kt(u,d[E+1]==null?null:d[E+1].S,c,d,m,E):m>E&&Lt(f,v,x)})(o,i,t,s,n):s!==null?(e.h!==null&&(o.textContent=""),kt(o,null,t,s,0,s.length-1)):!n&&i!==null&&Lt(i,0,i.length-1),k&&l==="svg"&&(k=!1)):(a=o["s-cr"])?a.parentNode.textContent=r:e.h!==r&&(o.data=r)},z=[],_t=e=>{let t,n,o;const i=e.__childNodes||e.childNodes;for(const s of i){if(s["s-sr"]&&(t=s["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const l=s["s-sn"];for(o=n.length-1;o>=0;o--)if(t=n[o],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===s["s-hn"]||t["s-sh"]&&t["s-sh"]===s["s-hn"]))if(bt(t,l)){let r=z.find((a=>a.k===t));Ce=!0,t["s-sn"]=t["s-sn"]||l,r?(r.k["s-sh"]=s["s-hn"],r.N=s):(t["s-sh"]=s["s-hn"],z.push({N:s,k:t})),t["s-sr"]&&z.map((a=>{bt(a.k,t["s-sn"])&&(r=z.find((u=>u.k===t)),r&&!a.N&&(a.N=r.N))}))}else z.some((r=>r.k===t))||z.push({k:t})}s.nodeType===1&&_t(s)}},$t=e=>{e.v&&e.v.ref&&Ge.push((()=>e.v.ref(null))),e.m&&e.m.map($t)},Sn=(e,t)=>{Ze.push((()=>e(t)))},$=(e,t,n,o)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,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"]=ye(s)||"";return{slotNode:Ie(Ue(l,"childNodes"),l.tagName,a)[0],slotName:a}})(t);return i&&!o&&i.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,n):e?.insertBefore(t,n)},En=(e,t,n=!1)=>{var o,i,s,l,r;const a=e.$hostElement$,u=e.o,f=e.M||Ae(null,null);var c;const d=(c=t)&&c.O===gn?t:re(null,null,t);if(te=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,e.M=d,d.S=f.S=a.shadowRoot||a,we=!(!(1&u.i)||128&u.i),qe=a["s-cr"],Ce=!1,ae(f,d,n),T.i|=1,Te){_t(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(Ce&&vt(d.S),T.i&=-2,z.length=0,!we&&!(1&u.i)&&a["s-cr"]){const p=d.S.__childNodes||d.S.childNodes;for(const h of p)if(h["s-hn"]!==te&&!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)}}}qe=void 0,Ge.forEach((p=>p())),Ge.length=0,Ze.forEach((p=>p())),Ze.length=0},Dt=(e,t)=>{if(t&&!e.A&&t["s-p"]){const n=t["s-p"].push(new Promise((o=>e.A=()=>{t["s-p"].splice(n-1,1),o()})))}},Ke=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Dt(e,e.R);const n=()=>On(e,t);if(!t)return hn(n);queueMicrotask((()=>{n()}))},On=(e,t)=>{const n=e.$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=be(o,t?"componentWillLoad":"componentWillUpdate",void 0,n),i=Pt(i,(()=>be(o,"componentWillRender",void 0,n))),Pt(i,(()=>Cn(e,o,t)))},Pt=(e,t)=>An(e)?e.then(t).catch((n=>{console.error(n),t()})):t(),An=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Cn=async(e,t,n)=>{var o;const i=e.$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=xt(d),m=Oe.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(je){const b=new((h=c.defaultView)!=null?h:c.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(m),He?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)}He?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"))})(e),Tn(e,t,i,n),s&&(s.map((l=>l())),i["s-rc"]=void 0);{const l=(o=i["s-p"])!=null?o:[],r=()=>Nn(e);l.length===0?r():(Promise.all(l).then(r).catch(r),e.i|=4,l.length=0)}},Tn=(e,t,n,o)=>{try{t=t.render(),e.i&=-17,e.i|=2,En(e,t,o)}catch(i){ee(i,e.$hostElement$)}return null},Nn=e=>{const t=e.$hostElement$,n=t,o=e.R;be(n,"componentDidRender",void 0,t),64&e.i?be(n,"componentDidUpdate",void 0,t):(e.i|=64,kn(t),be(n,"componentDidLoad",void 0,t),e.L(t),o||Rn()),e.A&&(e.A(),e.A=void 0),512&e.i&&Be((()=>Ke(e,!1))),e.i&=-517},Rn=()=>{Be((()=>vn(O,"appload",{detail:{namespace:"gids-core-web"}})))},be=(e,t,n,o)=>{if(e&&e[t])try{return e[t](n)}catch(i){ee(i,o)}},kn=e=>e.classList.add("hydrated"),Mt=(e,t,n,o)=>{const i=V(e);if(!i)return;const s=e,l=i.l.get(t),r=i.i,a=s;n=Ot(n,o.t[t][0],!!(64&o.i));const u=Number.isNaN(l)&&Number.isNaN(n);if(n!==l&&!u){if(i.l.set(t,n),o.F){const f=o.F[t];f&&f.map((c=>{try{const[[d,p]]=Object.entries(c);(128&r||1&p)&&(a?a[d](n,l,t):i.T.push((()=>{i.D[d](n,l,t)})))}catch(d){ee(d,s)}}))}if(2&r){if(a.componentShouldUpdate&&a.componentShouldUpdate(n,l,t)===!1&&!(16&r))return;16&r||Ke(i,!1)}}},Ln=(e,t,n)=>{var o,i;const s=e.prototype;64&t.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)}))}})}));{e.watchers&&!t.F&&(t.F=Et(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const l=Object.entries((o=t.t)!=null?o:{});l.map((([r,[a]])=>{if(31&a||32&a){const{get:u,set:f}=le(s,r)||{};u&&(t.t[r][0]|=2048),f&&(t.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,[Ot(c,a,!!(64&t.i))]),void Mt(this,r,c=32&a?this[r]:d.$hostElement$[r],t);Mt(this,r,c,t)}}})}}));{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=t.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)}))},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.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=t.C)==null||f.push([a,c])),c}))]))}}return e},_n=(e,t)=>{const n={i:t[0],p:t[1]};try{n.t=t[2],n.W=t[3],n.F=Et(e.F),n.P=e.P,n.U=e.U,n.C=[];const o=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.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;Ft(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)Ft(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"]){Dt(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=xt(f);Oe.has(w)||((v,m,g)=>{let y=Oe.get(v);je&&g?(y=y||new CSSStyleSheet,typeof y=="string"?y=m:y.replaceSync(m)):y=m,Oe.set(v,y)})(w,h,!!(1&f.i))}const d=u.R,p=()=>Ke(u,!0);d&&d["s-rc"]?d["s-rc"].push(p):p()}catch(d){ee(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(e,"is",{value:n.p,configurable:!0}),Ln(e,n,3)}catch(o){return ee(o),e}},$n=(e,t)=>t,Ft=(e,t,n)=>{n&&O.document&&n.map((([o,i,s])=>{const l=Pn(O.document,e,o),r=Dn(t,s),a=Mn(o);T.ael(l,i,r,a),(t.V=t.V||[]).push((()=>T.rel(l,i,r,a)))}))},Dn=(e,t)=>n=>{try{e.$hostElement$[t](n)}catch(o){ee(o,e.$hostElement$)}},Pn=(e,t,n)=>8&n?O:t,Mn=e=>un?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Do(e){return e}const Y=Math.min,L=Math.max,Le=Math.round,_e=Math.floor,W=e=>({x:e,y:e}),Fn={left:"right",right:"left",bottom:"top",top:"bottom"};function Je(e,t,n){return L(e,Y(t,n))}function ce(e,t){return typeof e=="function"?e(t):e}function X(e){return e.split("-")[0]}function fe(e){return e.split("-")[1]}function Wt(e){return e==="x"?"y":"x"}function Qe(e){return e==="y"?"height":"width"}function B(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function et(e){return Wt(B(e))}function Wn(e,t,n){n===void 0&&(n=!1);const o=fe(e),i=et(e),s=Qe(i);let l=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=$e(l)),[l,$e(l)]}function jn(e){const t=$e(e);return[tt(e),t,tt(t)]}function tt(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const jt=["left","right"],Ht=["right","left"],Hn=["top","bottom"],Vn=["bottom","top"];function zn(e,t,n){switch(e){case"top":case"bottom":return n?t?Ht:jt:t?jt:Ht;case"left":case"right":return t?Hn:Vn;default:return[]}}function Bn(e,t,n,o){const i=fe(e);let s=zn(X(e),n==="start",o);return i&&(s=s.map(l=>l+"-"+i),t&&(s=s.concat(s.map(tt)))),s}function $e(e){const t=X(e);return Fn[t]+e.slice(t.length)}function In(e){return{top:0,right:0,bottom:0,left:0,...e}}function Vt(e){return typeof e!="number"?In(e):{top:e,right:e,bottom:e,left:e}}function De(e){const{x:t,y:n,width:o,height:i}=e;return{width:o,height:i,top:n,left:t,right:t+o,bottom:n+i,x:t,y:n}}function zt(e,t,n){let{reference:o,floating:i}=e;const s=B(t),l=et(t),r=Qe(l),a=X(t),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(fe(t)){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(e,t){var n;t===void 0&&(t={});const{x:o,y:i,platform:s,rects:l,elements:r,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:c="floating",altBoundary:d=!1,padding:p=0}=ce(t,e),h=Vt(p),v=r[d?c==="floating"?"reference":"floating":c],m=De(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=De(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(e,t,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(t));let u=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:c}=zt(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:e,floating:t}});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:e,floating:t,strategy:i}):S.rects),{x:f,y:c}=zt(u,d,a)),w=-1)}return{x:f,y:c,placement:d,strategy:i,middlewareData:h}},Xn=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:i,rects:s,platform:l,elements:r,middlewareData:a}=t,{element:u,padding:f=0}=ce(e,t)||{};if(u==null)return{};const c=Vt(f),d={x:n,y:o},p=et(i),h=Qe(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,se=Je(H,R,K),U=!a.arrow&&fe(i)!=null&&R!==se&&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]:se,centerOffset:R-se-M,...U&&{alignmentOffset:M}},reset:U}}}),Gn=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:i,middlewareData:s,rects:l,initialPlacement:r,platform:a,elements:u}=t,{mainAxis:f=!0,crossAxis:c=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:w=!0,...v}=ce(e,t);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?[$e(r)]:jn(r)),S=h!=="none";!d&&S&&b.push(...Bn(r,w,h,x));const E=[r,...b],A=await a.detectOverflow(t,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,se=E[R];if(se&&(!(c==="alignment"?g!==B(se):!1)||N.every(F=>B(F.placement)===g?F.overflows[0]>0:!0)))return{data:{index:R,overflows:N},reset:{placement:se}};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(e,t){const{placement:n,platform:o,elements:i}=e,s=await(o.isRTL==null?void 0:o.isRTL(i.floating)),l=X(n),r=fe(n),a=B(n)==="y",u=Zn.has(l)?-1:1,f=s&&a?-1:1,c=ce(t,e);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(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:i,y:s,placement:l,middlewareData:r}=t,a=await Kn(t,e);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(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:i,platform:s}=t,{mainAxis:l=!0,crossAxis:r=!1,limiter:a={fn:m=>{let{x:g,y}=m;return{x:g,y}}},...u}=ce(e,t),f={x:n,y:o},c=await s.detectOverflow(t,u),d=B(X(i)),p=Wt(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=Je(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=Je(y,w,x)}const v=a.fn({...t,[p]:h,[d]:w});return{...v,data:{x:v.x-n,y:v.y-o,enabled:{[p]:l,[d]:r}}}}}},eo=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:i,rects:s,platform:l,elements:r}=t,{apply:a=()=>{},...u}=ce(e,t),f=await l.detectOverflow(t,u),c=X(i),d=fe(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=!t.middlewareData.shift;let E=x,A=b;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=y),(o=t.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({...t,availableWidth:A,availableHeight:E});const C=await l.getDimensions(r.floating);return h!==C.width||w!==C.height?{reset:{rects:!0}}:{}}}};function Pe(){return typeof window<"u"}function ue(e){return Bt(e)?(e.nodeName||"").toLowerCase():"#document"}function _(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function j(e){var t;return(t=(Bt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Bt(e){return Pe()?e instanceof Node||e instanceof _(e).Node:!1}function D(e){return Pe()?e instanceof Element||e instanceof _(e).Element:!1}function I(e){return Pe()?e instanceof HTMLElement||e instanceof _(e).HTMLElement:!1}function It(e){return!Pe()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _(e).ShadowRoot}function xe(e){const{overflow:t,overflowX:n,overflowY:o,display:i}=P(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&i!=="inline"&&i!=="contents"}function to(e){return/^(table|td|th)$/.test(ue(e))}function Me(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const no=/transform|translate|scale|rotate|perspective|filter/,oo=/paint|layout|strict|content/,ne=e=>!!e&&e!=="none";let nt;function ot(e){const t=D(e)?P(e):e;return ne(t.transform)||ne(t.translate)||ne(t.scale)||ne(t.rotate)||ne(t.perspective)||!it()&&(ne(t.backdropFilter)||ne(t.filter))||no.test(t.willChange||"")||oo.test(t.contain||"")}function io(e){let t=G(e);for(;I(t)&&!de(t);){if(ot(t))return t;if(Me(t))return null;t=G(t)}return null}function it(){return nt==null&&(nt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),nt}function de(e){return/^(html|body|#document)$/.test(ue(e))}function P(e){return _(e).getComputedStyle(e)}function Fe(e){return D(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function G(e){if(ue(e)==="html")return e;const t=e.assignedSlot||e.parentNode||It(e)&&e.host||j(e);return It(t)?t.host:t}function Ut(e){const t=G(e);return de(t)?e.ownerDocument?e.ownerDocument.body:e.body:I(t)&&xe(t)?t:Ut(t)}function Se(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Ut(e),s=i===((o=e.ownerDocument)==null?void 0:o.body),l=_(i);if(s){const r=st(l);return t.concat(l,l.visualViewport||[],xe(i)?i:[],r&&n?Se(r):[])}else return t.concat(i,Se(i,[],n))}function st(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function qt(e){const t=P(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=I(e),s=i?e.offsetWidth:n,l=i?e.offsetHeight:o,r=Le(n)!==s||Le(o)!==l;return r&&(n=s,o=l),{width:n,height:o,$:r}}function lt(e){return D(e)?e:e.contextElement}function he(e){const t=lt(e);if(!I(t))return W(1);const n=t.getBoundingClientRect(),{width:o,height:i,$:s}=qt(t);let l=(s?Le(n.width):n.width)/o,r=(s?Le(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 Yt(e){const t=_(e);return!it()||!t.visualViewport?so:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function lo(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==_(e)?!1:t}function oe(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=lt(e);let l=W(1);t&&(o?D(o)&&(l=he(o)):l=he(e));const r=lo(s,n,o)?Yt(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=st(h);for(;w&&o&&p!==h;){const v=he(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=st(h)}}return De({width:f,height:c,x:a,y:u})}function We(e,t){const n=Fe(e).scrollLeft;return t?t.left+n:oe(j(e)).left+n}function Xt(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-We(e,n),i=n.top+t.scrollTop;return{x:o,y:i}}function ro(e){let{elements:t,rect:n,offsetParent:o,strategy:i}=e;const s=i==="fixed",l=j(o),r=t?Me(t.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)&&((ue(o)!=="body"||xe(l))&&(a=Fe(o)),c)){const p=oe(o);u=he(o),f.x=p.x+o.clientLeft,f.y=p.y+o.clientTop}const d=l&&!c&&!s?Xt(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(e){return Array.from(e.getClientRects())}function co(e){const t=j(e),n=Fe(e),o=e.ownerDocument.body,i=L(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=L(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let l=-n.scrollLeft+We(e);const r=-n.scrollTop;return P(o).direction==="rtl"&&(l+=L(t.clientWidth,o.clientWidth)-i),{width:i,height:s,x:l,y:r}}const Gt=25;function fo(e,t){const n=_(e),o=j(e),i=n.visualViewport;let s=o.clientWidth,l=o.clientHeight,r=0,a=0;if(i){s=i.width,l=i.height;const f=it();(!f||f&&t==="fixed")&&(r=i.offsetLeft,a=i.offsetTop)}const u=We(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<=Gt&&(s-=h)}else u<=Gt&&(s+=u);return{width:s,height:l,x:r,y:a}}function uo(e,t){const n=oe(e,!0,t==="fixed"),o=n.top+e.clientTop,i=n.left+e.clientLeft,s=I(e)?he(e):W(1),l=e.clientWidth*s.x,r=e.clientHeight*s.y,a=i*s.x,u=o*s.y;return{width:l,height:r,x:a,y:u}}function Zt(e,t,n){let o;if(t==="viewport")o=fo(e,n);else if(t==="document")o=co(j(e));else if(D(t))o=uo(t,n);else{const i=Yt(e);o={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return De(o)}function Kt(e,t){const n=G(e);return n===t||!D(n)||de(n)?!1:P(n).position==="fixed"||Kt(n,t)}function ho(e,t){const n=t.get(e);if(n)return n;let o=Se(e,[],!1).filter(r=>D(r)&&ue(r)!=="body"),i=null;const s=P(e).position==="fixed";let l=s?G(e):e;for(;D(l)&&!de(l);){const r=P(l),a=ot(l);!a&&r.position==="fixed"&&(i=null),(s?!a&&!i:!a&&r.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||xe(l)&&!a&&Kt(e,l))?o=o.filter(f=>f!==l):i=r,l=G(l)}return t.set(e,o),o}function po(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e;const l=[...n==="clippingAncestors"?Me(t)?[]:ho(t,this._c):[].concat(n),o],r=Zt(t,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=Zt(t,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(e){const{width:t,height:n}=qt(e);return{width:t,height:n}}function go(e,t,n){const o=I(t),i=j(t),s=n==="fixed",l=oe(e,!0,s,t);let r={scrollLeft:0,scrollTop:0};const a=W(0);function u(){a.x=We(i)}if(o||!o&&!s)if((ue(t)!=="body"||xe(i))&&(r=Fe(t)),o){const p=oe(t,!0,s,t);a.x=p.x+t.clientLeft,a.y=p.y+t.clientTop}else i&&u();s&&!o&&i&&u();const f=i&&!o&&!s?Xt(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 rt(e){return P(e).position==="static"}function Jt(e,t){if(!I(e)||P(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return j(e)===n&&(n=n.ownerDocument.body),n}function Qt(e,t){const n=_(e);if(Me(e))return n;if(!I(e)){let i=G(e);for(;i&&!de(i);){if(D(i)&&!rt(i))return i;i=G(i)}return n}let o=Jt(e,t);for(;o&&to(o)&&rt(o);)o=Jt(o,t);return o&&de(o)&&rt(o)&&!ot(o)?n:o||io(e)||n}const yo=async function(e){const t=this.getOffsetParent||Qt,n=this.getDimensions,o=await n(e.floating);return{reference:go(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function wo(e){return P(e).direction==="rtl"}const at={convertOffsetParentRelativeRectToViewportRelativeRect:ro,getDocumentElement:j,getClippingRect:po,getOffsetParent:Qt,getElementRects:yo,getClientRects:ao,getDimensions:mo,getScale:he,isElement:D,isRTL:wo};function en(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function vo(e,t){let n=null,o;const i=j(e);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=e.getBoundingClientRect(),{left:f,top:c,width:d,height:p}=u;if(r||t(),!d||!p)return;const h=_e(c),w=_e(i.clientWidth-(f+d)),v=_e(i.clientHeight-(c+p)),m=_e(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&&!en(u,e.getBoundingClientRect())&&l(),x=!1}try{n=new IntersectionObserver(b,{...y,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,y)}n.observe(e)}return l(!0),s}function bo(e,t,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=lt(e),f=i||s?[...u?Se(u):[],...t?Se(t):[]]:[];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&&t&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var y;(y=p)==null||y.observe(t)})),n()}),u&&!a&&p.observe(u),t&&p.observe(t));let h,w=a?oe(e):null;a&&v();function v(){const m=oe(e);w&&!en(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,tn=eo,Oo=Xn,Ao=(e,t,n)=>{const o=new Map,i={platform:at,...n},s={...i.platform,_c:o};return Yn(e,t,{...i,platform:s})};function nn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}const Co=/transform|translate|scale|rotate|perspective|filter/,To=/paint|layout|strict|content/,ie=e=>!!e&&e!=="none";let ct;function No(e){const t=(n=e,typeof window<"u"&&(n instanceof Element||n instanceof nn(n).Element)?nn(o=e).getComputedStyle(o):e);var n,o;return ie(t.transform)||ie(t.translate)||ie(t.scale)||ie(t.rotate)||ie(t.perspective)||(ct==null&&(ct=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),!ct&&(ie(t.backdropFilter)||ie(t.filter)))||Co.test(t.willChange||"")||To.test(t.contain||"")}function Ro(e){return(function(t){for(let n=t;n;n=ft(n))if(n instanceof Element&&getComputedStyle(n).display==="none")return null;for(let n=ft(t);n;n=ft(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})(e)}function ft(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}var Ee;(function(e){e.TOOLTIP="tooltip",e.POPOVER="popover",e.FLYOUT_PANEL="flyout-panel"})(Ee||(Ee={}));const me=class me{constructor(t,n){this.el=t,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 t=this.getRootElement();this.floatingElement=t.querySelector(this.config.floatingElementSelector),this.floatingElement&&this.applyViewportMaxWidth(),this.arrowEl=this.config.showArrow!==!1&&this.config.arrowElementSelector?t.querySelector(this.config.arrowElementSelector):null,this.anchorElement=this.config.htmlFor?.length>0?document.getElementById(this.config.htmlFor):this.config.getAnchorElement?this.config.getAnchorElement(t):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(t){this.config={...this.config,...t},"showWithoutDelay"in t&&(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 t=this.config.offset??this.offset,n=[xo(t)],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:t,fallbackPlacements:i.filter((u=>u!==s)),fallbackAxisSideDirection:"none"}:{mainAxis:!0,crossAxis:!o&&"alignment",fallbackAxisSideDirection:"end",padding:t}),r=this.config.elementType===Ee.POPOVER,a=So({padding:t,mainAxis:this.config.constrainToViewportHeight||this.config.elementType===Ee.TOOLTIP||r&&this.popoverMainAxisEnabled,crossAxis:!1});this.config.matchReferenceWidth&&n.push(tn({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(tn({padding:t,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:t})),Ao(this.anchorElement,this.floatingElement,{placement:s,strategy:"fixed",middleware:n,platform:{...at,getOffsetParent:u=>at.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 t=`calc(100vw - ${2*this.offset}px)`;this.floatingElement&&this.floatingElement?.style.maxWidth!==t&&(this.floatingElement.style.maxWidth=t)}normalizeFloatingElementStacking(){const t=this.floatingElement.style.zIndex||(window.getComputedStyle?.(this.floatingElement).zIndex??""),n=Number.parseInt(t,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),me.currentFloatingElements.delete(this.config.elementType)}showFloatingElement(){const t=me.currentFloatingElements.get(this.config.elementType);t&&t.hideFloatingElement(),this.floatingElement.classList.add(this.config.visibilityClass),me.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 t=this.anchorElement.getBoundingClientRect(),n=window.innerHeight||document.documentElement?.clientHeight||0,o=window.innerWidth||document.documentElement?.clientWidth||0,i=t.height/2+2*this.offset;return t.bottom>=i&&t.top<=n-i&&t.right>=0&&t.left<=o}};me.currentFloatingElements=new Map;let ut=me;const pe=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let on=!1;pe&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(pe):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let dt=null;const ht=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{sn()})):void 0,sn=()=>{if(pe===void 0)return!1;const e=(()=>{if(pe===void 0)return;const t=[];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}t.push(r)}}if(i>-1)return{rulesStartIndex:i,originalRulesCount:s,rules:t,styleSheet:o}}catch(i){if(!(i instanceof DOMException))throw i}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return ht!==void 0&&t!==dt&&(dt&&ht.disconnect(),t instanceof Element&&ht.observe(t,{childList:!0,characterData:!0,subtree:!0}),dt=t),pe.replaceSync((n=>n.rules.map((o=>o.cssText)).join(""))(e)),(n=>{const{rulesStartIndex:o,originalRulesCount:i,styleSheet:s}=n;for(let l=0;l<i;l++)s.deleteRule(o)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},ko=()=>(on||(on=sn()),pe),ln=_n(class extends fn{constructor(e){super(),e!==!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 e=ko();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){this.floatingElementManager=new ut(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:this.showWithoutDelay,lockToMainAxis:this.lockToMainAxis,floatingElementSelector:"#tooltip",arrowElementSelector:"#arrow",visibilityClass:"gids-tooltip--visible",elementType:Ee.TOOLTIP,getAnchorElementFromSlot:e=>e.querySelector("slot")?.assignedElements()[0]||null}),this.floatingElementManager.initialize(),this.setupEventListeners()}setupEventListeners(){const e=this.floatingElementManager.getAnchorElement();e&&(e.addEventListener("mouseenter",this.handleShowEvent),e.addEventListener("focus",this.handleShowEvent),e.addEventListener("mouseleave",this.handleHideEvent),e.addEventListener("blur",this.handleHideEvent))}placementChanged(e){this.floatingElementManager?.updateConfig({placement:e}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}showWithoutDelayChanged(e){this.floatingElementManager?.updateConfig({showWithoutDelay:e})}lockToMainAxisChanged(e){this.floatingElementManager?.updateConfig({lockToMainAxis:e})}htmlForChanged(e){this.floatingElementManager?.updateConfig({htmlFor:e}),this.cleanupEventListeners(),this.floatingElementManager?.initialize(),this.setupEventListeners()}cleanupEventListeners(){const e=this.floatingElementManager?.getAnchorElement();e&&(e.removeEventListener("mouseenter",this.handleShowEvent),e.removeEventListener("focus",this.handleShowEvent),e.removeEventListener("mouseleave",this.handleHideEvent),e.removeEventListener("blur",this.handleHideEvent))}render(){return re($n,{key:"fcf2e6696efb040de12e59a7fe5544283cace7ec"},re("slot",{key:"097aaf5bc20d9f9fd4f6595b3c4bc2d3622a95f9"}),re("span",{key:"6fa1bf3a74e6d68dfb559186222dd65e246f84da",id:"tooltip",part:"tooltip",role:"tooltip"},re("span",{key:"ee64e9db78fd0520f7bc670cfbc23949e55c94ab",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((e=>{e==="gids-tooltip"&&(customElements.get(e)||customElements.define(e,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(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:"6caed45a03495bc806582bc41579a8b3b835f935"},rt("slot",{key:"ff2dbe3d0d337b8a413cb1ba6d5797aea333da64"}),rt("span",{key:"8faf24f98277dfbb44c34ad8bf6e700270a15fa2",id:"tooltip",part:"tooltip",role:"tooltip"},rt("span",{key:"efc5280e4bf08551f3bb32ed966fd3b1921d5741",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"})}));
|