@ganpatiinfo/gids-core-web 9.0.0 → 10.1.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 +1504 -1
- package/dist/css/index.css.map +1 -1
- package/dist/gids-action-bar.d.ts +11 -0
- package/dist/gids-action-bar.js +1 -0
- package/dist/gids-activity-gauge.d.ts +11 -0
- package/dist/gids-activity-gauge.js +1 -0
- package/dist/gids-bar-chart.d.ts +11 -0
- package/dist/gids-bar-chart.js +1 -0
- package/dist/gids-calendar-header-panel.d.ts +11 -0
- package/dist/gids-calendar-header-panel.js +1 -0
- package/dist/gids-calendar-month-list.d.ts +11 -0
- package/dist/gids-calendar-month-list.js +1 -0
- package/dist/gids-calendar-year-list.d.ts +11 -0
- package/dist/gids-calendar-year-list.js +1 -0
- package/dist/gids-calendar.d.ts +11 -0
- package/dist/gids-calendar.js +1 -0
- package/dist/gids-chart-legend-item.d.ts +11 -0
- package/dist/gids-chart-legend-item.js +1 -0
- package/dist/gids-chart-legend.d.ts +11 -0
- package/dist/gids-chart-legend.js +1 -0
- package/dist/gids-chart.d.ts +11 -0
- package/dist/gids-chart.js +1 -0
- package/dist/gids-chevron-button.d.ts +11 -0
- package/dist/gids-chevron-button.js +1 -0
- package/dist/gids-dot.d.ts +11 -0
- package/dist/gids-dot.js +1 -0
- package/dist/gids-dropdown-field.d.ts +11 -0
- package/dist/gids-dropdown-field.js +1 -0
- package/dist/gids-dropdown-picker.d.ts +11 -0
- package/dist/gids-dropdown-picker.js +1 -0
- package/dist/gids-dropdown.d.ts +11 -0
- package/dist/gids-dropdown.js +1 -0
- package/dist/gids-field.js +1 -1
- package/dist/gids-filter.d.ts +11 -0
- package/dist/gids-filter.js +1 -0
- package/dist/gids-icon.js +1 -1
- package/dist/gids-input.js +1 -1
- package/dist/gids-level-gauge.d.ts +11 -0
- package/dist/gids-level-gauge.js +1 -0
- package/dist/gids-line-chart.d.ts +11 -0
- package/dist/gids-line-chart.js +1 -0
- package/dist/gids-notification.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.d.ts +11 -0
- package/dist/gids-pie-chart.js +1 -0
- package/dist/gids-popover.js +1 -1
- package/dist/gids-progress-circle.d.ts +11 -0
- package/dist/gids-progress-circle.js +1 -0
- package/dist/gids-scrim.js +1 -1
- package/dist/gids-snackbar.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/index.js +1 -1
- package/dist/{p-DvoHLz_5.js → p-BQ-ZnlnH.js} +1 -1
- package/dist/p-BZCJlqVe.js +1 -0
- package/dist/p-Bf3p-DY2.js +1 -0
- package/dist/p-BpQB6ncp.js +1 -0
- package/dist/{p-DybsMR13.js → p-CHGTBObD.js} +1 -1
- package/dist/p-CP1wz2PI.js +1 -0
- package/dist/p-CQH7eAs3.js +1 -0
- package/dist/p-CW7tw1Fb.js +1 -0
- package/dist/p-CaauwQNd.js +1 -0
- package/dist/p-Cn3-K5eR.js +1 -0
- package/dist/p-CoS0NuDU.js +1 -0
- package/dist/{p-veoOgDXg.js → p-D4Pimu_8.js} +1 -1
- package/dist/p-D6lxqcxP.js +1 -0
- package/dist/p-DMNS1d8v.js +1 -0
- package/dist/{p-iCAclJND.js → p-DNTv2BQ5.js} +1 -1
- package/dist/p-DPIK2ayL.js +1 -0
- package/dist/p-Db62Pz3n.js +1 -0
- package/dist/p-Degg_WJz.js +1 -0
- package/dist/p-DfxTsSdZ.js +1 -0
- package/dist/p-Dg2yoUxw.js +1 -0
- package/dist/p-DmLoB2Dn.js +1 -0
- package/dist/p-DoCwI_bx.js +1 -0
- package/dist/p-H1JIMJ2t.js +1 -0
- package/dist/p-JjN8U9B5.js +1 -0
- package/dist/p-UVmSPzTd.js +1 -0
- package/dist/p-UxDcM-C5.js +1 -0
- package/dist/p-V48JyMbP.js +1 -0
- package/dist/p-mZJdpfOo.js +1 -0
- package/dist/types/components/html/GidsButtonGroup/GidsButtonGroup.d.ts +2 -2
- package/dist/types/components/html/GidsCalendarCell/GidsCalendarCell.d.ts +7 -0
- package/dist/types/components/html/GidsCalendarDayCell/GidsCalendarDayCell.d.ts +4 -0
- package/dist/types/components/html/GidsDropdownItem/GidsDropdownItem.d.ts +1 -1
- package/dist/types/components/html/GidsDropdownMenu/GidsDropdownMenu.d.ts +1 -1
- package/dist/types/components/html/GidsDropdownMenuGroup/GidsDropdownMenuGroup.d.ts +1 -1
- package/dist/types/components/html/GidsListItem/GidsListItem.d.ts +2 -2
- package/dist/types/components/html/GidsPageTitle/GidsPageTitle.d.ts +4 -0
- package/dist/types/components/webComponents/GidsActionBar/GidsActionBar.d.ts +59 -0
- package/dist/types/components/webComponents/GidsActivityGauge/GidsActivityGauge.d.ts +23 -0
- package/dist/types/components/webComponents/GidsBarChart/GidsBarChart.d.ts +27 -0
- package/dist/types/components/webComponents/GidsCalendar/GidsCalendar.d.ts +34 -0
- package/dist/types/components/webComponents/GidsCalendarHeaderPanel/GidsCalendarHeaderPanel.d.ts +67 -0
- package/dist/types/components/webComponents/GidsCalendarMonthList/GidsCalendarMonthList.d.ts +26 -0
- package/dist/types/components/webComponents/GidsCalendarYearList/GidsCalendarYearList.d.ts +31 -0
- package/dist/types/components/webComponents/GidsChart/GidsChart.d.ts +19 -0
- package/dist/types/components/webComponents/GidsChartLegend/GidsChartLegend.d.ts +7 -0
- package/dist/types/components/webComponents/GidsChartLegendItem/GidsChartLegendItem.d.ts +9 -0
- package/dist/types/components/webComponents/GidsChevronButton/GidsChevronButton.d.ts +21 -0
- package/dist/types/components/webComponents/GidsDot/GidsDot.d.ts +17 -0
- package/dist/types/components/webComponents/GidsDropdown/GidsDropdown.d.ts +78 -0
- package/dist/types/components/webComponents/GidsDropdownField/GidsDropdownField.d.ts +37 -0
- package/dist/types/components/webComponents/GidsDropdownPicker/GidsDropdownPicker.d.ts +52 -0
- package/dist/types/components/webComponents/GidsFilter/GidsFilter.d.ts +55 -0
- package/dist/types/components/webComponents/GidsLevelGauge/GidsLevelGauge.d.ts +22 -0
- package/dist/types/components/webComponents/GidsLineChart/GidsLineChart.d.ts +27 -0
- package/dist/types/components/webComponents/GidsPieChart/GidsPieChart.d.ts +23 -0
- package/dist/types/components/webComponents/GidsProgressCircle/GidsProgressCircle.d.ts +24 -0
- package/dist/types/components/webComponents/GidsToggleButton/GidsToggleButton.d.ts +5 -3
- package/dist/types/components.d.ts +1585 -49
- package/dist/types/utils/childrenValidityUtils.d.ts +1 -1
- package/dist-bundled/es/gids-action-bar.js +177 -0
- package/dist-bundled/es/gids-activity-gauge.js +6 -0
- package/dist-bundled/es/gids-bar-chart.js +6 -0
- package/dist-bundled/es/gids-calendar-header-panel.js +6 -0
- package/dist-bundled/es/gids-calendar-month-list.js +6 -0
- package/dist-bundled/es/gids-calendar-year-list.js +6 -0
- package/dist-bundled/es/gids-calendar.js +153 -0
- package/dist-bundled/es/gids-chart-legend-item.js +6 -0
- package/dist-bundled/es/gids-chart-legend.js +6 -0
- package/dist-bundled/es/gids-chart.js +108 -0
- package/dist-bundled/es/gids-chevron-button.js +56 -0
- package/dist-bundled/es/gids-dot.js +6 -0
- package/dist-bundled/es/gids-dropdown-field.js +88 -0
- package/dist-bundled/es/gids-dropdown-picker.js +6 -0
- package/dist-bundled/es/gids-dropdown.js +6 -0
- package/dist-bundled/es/gids-field.js +1 -1
- package/dist-bundled/es/gids-filter.js +6 -0
- package/dist-bundled/es/gids-icon.js +3 -29
- package/dist-bundled/es/gids-input.js +4 -4
- package/dist-bundled/es/gids-level-gauge.js +6 -0
- package/dist-bundled/es/gids-line-chart.js +6 -0
- package/dist-bundled/es/gids-notification.js +1 -1
- package/dist-bundled/es/gids-overflow-container.js +6 -6
- package/dist-bundled/es/gids-overlay-provider.js +17 -17
- package/dist-bundled/es/gids-password-field.js +39 -38
- package/dist-bundled/es/gids-pie-chart.js +6 -0
- package/dist-bundled/es/gids-popover.js +10 -10
- package/dist-bundled/es/gids-progress-circle.js +6 -0
- package/dist-bundled/es/gids-scrim.js +8 -8
- package/dist-bundled/es/gids-snackbar.js +1 -1
- package/dist-bundled/es/gids-text-field.js +15 -14
- package/dist-bundled/es/gids-toggle-button.js +4 -44
- package/dist-bundled/es/gids-tooltip.js +2 -2
- package/dist-bundled/es/index.js +3 -3
- package/dist-bundled/es/{p-DvoHLz_5-C5EvA91N.js → p-BQ-ZnlnH-CUVdDHzX.js} +5 -5
- package/dist-bundled/es/p-BZCJlqVe-BcSwze-q.js +71 -0
- package/dist-bundled/es/p-Bf3p-DY2-CPqEc-vc.js +672 -0
- package/dist-bundled/es/p-BpQB6ncp-C2AWddf-.js +180 -0
- package/dist-bundled/es/{p-DybsMR13-DpmsG3Q1.js → p-CHGTBObD-EN4cCwtX.js} +3 -3
- package/dist-bundled/es/p-CP1wz2PI-DhVAsHFS.js +115 -0
- package/dist-bundled/es/p-CQH7eAs3-BVowyVGn.js +88 -0
- package/dist-bundled/es/p-CW7tw1Fb-DtJ5TwCU.js +92 -0
- package/dist-bundled/es/p-CaauwQNd-D6_PbcRr.js +20 -0
- package/dist-bundled/es/p-Cn3-K5eR-tQ1EOnDF.js +243 -0
- package/dist-bundled/es/p-CoS0NuDU-CqmDcRWj.js +56 -0
- package/dist-bundled/es/{p-veoOgDXg-fRinub-C.js → p-D4Pimu_8-DfEGRQGf.js} +9 -9
- package/dist-bundled/es/p-D6lxqcxP-DWrZi1Xi.js +74 -0
- package/dist-bundled/es/p-DMNS1d8v-CHF62UXm.js +29 -0
- package/dist-bundled/es/{p-iCAclJND-Bmsvd-W1.js → p-DNTv2BQ5-Bwgd30mM.js} +6 -6
- package/dist-bundled/es/p-DPIK2ayL-DPEbctqo.js +71 -0
- package/dist-bundled/es/p-Db62Pz3n-DpQjwBYb.js +31 -0
- package/dist-bundled/es/p-Degg_WJz-BLua06el.js +55 -0
- package/dist-bundled/es/p-DfxTsSdZ-C2Afv1lS.js +67 -0
- package/dist-bundled/es/p-Dg2yoUxw-Cca8ROd_.js +25 -0
- package/dist-bundled/es/p-DmLoB2Dn-D-FSoCvI.js +44 -0
- package/dist-bundled/es/p-DoCwI_bx-BXHlZI7-.js +37 -0
- package/dist-bundled/es/p-H1JIMJ2t-DEXp7M4I.js +152 -0
- package/dist-bundled/es/p-JjN8U9B5-GeWjfJBY.js +135 -0
- package/dist-bundled/es/{p-CFw4_-5A-Dzvju3VE.js → p-UVmSPzTd-DiTxS9kW.js} +9 -9
- package/dist-bundled/es/p-UxDcM-C5-Dr5d_WpJ.js +15 -0
- package/dist-bundled/es/p-V48JyMbP-Bx-0od-Z.js +80 -0
- package/dist-bundled/es/p-mZJdpfOo-DicbKil0.js +47 -0
- package/dist-bundled/umd/gids-action-bar.umd.js +7 -0
- package/dist-bundled/umd/gids-activity-gauge.umd.js +5 -0
- package/dist-bundled/umd/gids-bar-chart.umd.js +13 -0
- package/dist-bundled/umd/gids-calendar-header-panel.umd.js +5 -0
- package/dist-bundled/umd/gids-calendar-month-list.umd.js +5 -0
- package/dist-bundled/umd/gids-calendar-year-list.umd.js +5 -0
- package/dist-bundled/umd/gids-calendar.umd.js +5 -0
- package/dist-bundled/umd/gids-chart-legend-item.umd.js +5 -0
- package/dist-bundled/umd/gids-chart-legend.umd.js +5 -0
- package/dist-bundled/umd/gids-chart.umd.js +13 -0
- package/dist-bundled/umd/gids-chevron-button.umd.js +5 -0
- package/dist-bundled/umd/gids-dot.umd.js +5 -0
- package/dist-bundled/umd/gids-dropdown-field.umd.js +5 -0
- package/dist-bundled/umd/gids-dropdown-picker.umd.js +5 -0
- package/dist-bundled/umd/gids-dropdown.umd.js +5 -0
- package/dist-bundled/umd/gids-field.umd.js +2 -2
- package/dist-bundled/umd/gids-filter.umd.js +7 -0
- package/dist-bundled/umd/gids-icon.umd.js +2 -2
- package/dist-bundled/umd/gids-input.umd.js +2 -2
- package/dist-bundled/umd/gids-level-gauge.umd.js +5 -0
- package/dist-bundled/umd/gids-line-chart.umd.js +5 -0
- package/dist-bundled/umd/gids-notification.umd.js +2 -2
- package/dist-bundled/umd/gids-overflow-container.umd.js +2 -2
- package/dist-bundled/umd/gids-overlay-provider.umd.js +2 -2
- package/dist-bundled/umd/gids-password-field.umd.js +2 -2
- package/dist-bundled/umd/gids-pie-chart.umd.js +5 -0
- package/dist-bundled/umd/gids-popover.umd.js +2 -2
- package/dist-bundled/umd/gids-progress-circle.umd.js +5 -0
- package/dist-bundled/umd/gids-scrim.umd.js +2 -2
- package/dist-bundled/umd/gids-snackbar.umd.js +2 -2
- package/dist-bundled/umd/gids-text-field.umd.js +2 -2
- package/dist-bundled/umd/gids-toggle-button.umd.js +3 -3
- package/dist-bundled/umd/gids-tooltip.umd.js +2 -2
- package/dist-bundled/umd/index.umd.js +2 -2
- package/dist-bundled/umd-complete/gids-core-web.umd.js +11 -3
- package/package.json +164 -4
- package/dist/p-CFw4_-5A.js +0 -1
- package/dist/p-DijVkS9b.js +0 -1
- package/dist/p-ibikYq-w.js +0 -1
- package/dist-bundled/es/p-DijVkS9b-CeV1i4T-.js +0 -35
- package/dist-bundled/es/p-ibikYq-w-BsGxk8ro.js +0 -635
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(Y,
|
|
1
|
+
(function(Y,ie){typeof exports=="object"&&typeof module<"u"?ie(exports):typeof define=="function"&&define.amd?define(["exports"],ie):(Y=typeof globalThis<"u"?globalThis:Y||self,ie(Y.gidsCoreWebGidsPopover={}))})(this,(function(Y){"use strict";function ie(e,t,o){const n=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==n;){const i=Object.getOwnPropertyDescriptor(e,t);if(i&&(!o||i.get))return i;e=Object.getPrototypeOf(e)}}var ue,sn=(e,t)=>{var o;Object.entries((o=t.o.t)!=null?o:{}).map((([n,[i]])=>{if(31&i||32&i){const s=e[n],r=ie(Object.getPrototypeOf(e),n,!0)||Object.getOwnPropertyDescriptor(e,n);r&&Object.defineProperty(e,n,{get(){return r.get.call(this)},set(c){r.set.call(this,c)},configurable:!0,enumerable:!0}),t.l.has(n)?e[n]=t.l.get(n):s!==void 0&&(e[n]=s)}}))},W=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},ut=(e,t)=>t in e,K=(e,t)=>(0,console.error)(e,t),Se=new Map,dt="http://www.w3.org/1999/xlink",rn=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],O=typeof window<"u"?window:{},ht=O.HTMLElement||class{},N={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,o,n)=>e.addEventListener(t,o,n),rel:(e,t,o,n)=>e.removeEventListener(t,o,n),ce:(e,t)=>new CustomEvent(e,t)},ln=(()=>{var e;let t=!1;try{(e=O.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),je=(()=>{try{return!!O.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),We=!!je&&!!O.document&&Object.getOwnPropertyDescriptor(O.document.adoptedStyleSheets,"length").writable,Ve=!1,pt=[],mt=[],cn=(e,t)=>o=>{e.push(o),Ve||(Ve=!0,4&N.i?He(Ie):N.raf(Ie))},gt=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(o){K(o)}e.length=0},Ie=()=>{gt(pt),gt(mt),(Ve=pt.length>0)&&N.raf(Ie)},He=e=>Promise.resolve(void 0).then(e),an=cn(mt);function fn(){const e=this.attachShadow({mode:"open"});ue===void 0&&(ue=null),ue&&(We?e.adoptedStyleSheets.push(ue):e.adoptedStyleSheets=[...e.adoptedStyleSheets,ue])}var yt=e=>{const t=ze(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&Be(t,e.tagName).forEach((n=>{n.nodeType===1&&n.tagName==="SLOT-FB"&&(n.hidden=!!un(n,de(n),!1).length)}));let o=0;for(o=0;o<t.length;o++){const n=t[o];n.nodeType===1&&ze(n,"childNodes").length&&yt(n)}};function Be(e,t,o){let n,i=0,s=[];for(;i<e.length;i++){if(n=e[i],n["s-sr"]&&(!t||n["s-hn"]===t)&&(o===void 0||de(n)===o)&&(s.push(n),o!==void 0))return s;s=[...s,...Be(n.childNodes,t,o)]}return s}var un=(e,t,o=!0)=>{const n=[];(o&&e["s-sr"]||!e["s-sr"])&&n.push(e);let i=e;for(;i=i.nextSibling;)de(i)!==t||!o&&i["s-sr"]||n.push(i);return n},vt=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",de=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function ze(e,t){if("__"+t in e){const o=e["__"+t];return typeof o!="function"?o:o.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var Ue,G,B=new WeakMap,wt=e=>"sc-"+e.p,qe=e=>(e=typeof e)=="object"||e==="function",z=(e,t,...o)=>{let n=null,i=null,s=null,r=!1,c=!1;const l=[],f=a=>{for(let d=0;d<a.length;d++)n=a[d],Array.isArray(n)?f(n):n!=null&&typeof n!="boolean"&&((r=typeof e!="function"&&!qe(n))&&(n=String(n)),r&&c?l[l.length-1].h+=n:l.push(r?Oe(null,n):n),c=r)};if(f(o),t){t.key&&(i=t.key),t.name&&(s=t.name);{const a=t.className||t.class;a&&(t.class=typeof a!="object"?a:Object.keys(a).filter((d=>a[d])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,l,hn);const u=Oe(e,null);return u.v=t,l.length>0&&(u.m=l),u.$=i,u.j=s,u},Oe=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),dn={},hn={forEach:(e,t)=>e.map(bt).forEach(t),map:(e,t)=>e.map(bt).map(t).map(pn)},bt=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),pn=e=>{if(typeof e.vtag=="function"){const o={...e.vattrs};return e.vkey&&(o.key=e.vkey),e.vname&&(o.name=e.vname),z(e.vtag,o,...e.vchildren||[])}const t=Oe(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Et=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let o=!1;for(const i of t){if(o)break;for(const s of e[i])if(typeof s=="string"){o=!0;break}}if(!o)return e;const n={};for(const i of t)n[i]=e[i].map((s=>typeof s=="string"?{[s]:0}:s));return n},xt=(e,t,o)=>e==null||qe(e)?e:4&t?(o&&typeof e=="string"||e!=="false")&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,mn=(e,t,o)=>{const n=N.ce(t,o);return e.dispatchEvent(n),n},St=(e,t,o,n,i,s)=>{if(o===n)return;let r=ut(e,t),c=t.toLowerCase();if(t==="class"){const l=e.classList,f=Ot(o);let u=Ot(n);l.remove(...f.filter((a=>a&&!u.includes(a)))),l.add(...u.filter((a=>a&&!f.includes(a))))}else if(t==="style"){for(const l in o)n&&n[l]!=null||(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(const l in n)o&&n[l]===o[l]||(l.includes("-")?e.style.setProperty(l,n[l]):e.style[l]=n[l])}else if(t!=="key"){if(t==="ref")n&&vn(n,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const l=t.slice(5);let f;{const u=W(e);if(u&&u.o&&u.o.t){const a=u.o.t[l];a&&a[1]&&(f=a[1])}}return f||(f=l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(n==null||n===!1?n===!1&&e.getAttribute(f)!==""||e.removeAttribute(f):e.setAttribute(f,n===!0?"":n))}if(t[0]==="p"&&t.startsWith("prop:")){const l=t.slice(5);try{e[l]=n}catch{}return}{const l=qe(n);if((r||l&&n!==null)&&!i)try{if(e.tagName.includes("-"))e[t]!==n&&(e[t]=n);else{const u=n??"";t==="list"?r=!1:o!=null&&e[t]===u||(typeof e.__lookupSetter__(t)=="function"?e[t]=u:e.setAttribute(t,u))}}catch{}let f=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,f=!0),n==null||n===!1?n===!1&&e.getAttribute(t)!==""||(f?e.removeAttributeNS(dt,t):e.removeAttribute(t)):(!r||4&s||i)&&!l&&e.nodeType===1&&(n=n===!0?"":n,f?e.setAttributeNS(dt,t,n):e.setAttribute(t,n))}}else if(t=t[2]==="-"?t.slice(3):ut(O,c)?c.slice(2):c[2]+t.slice(3),o||n){const l=t.endsWith(Ct);t=t.replace(yn,""),o&&N.rel(e,t,o,l),n&&N.ael(e,t,n,l)}}},gn=/\s/,Ot=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(gn):[]),Ct="Capture",yn=new RegExp(Ct+"$"),Xe=(e,t,o)=>{const n=t.S.nodeType===11&&t.S.host?t.S.host:t.S,i=e&&e.v||{},s=t.v||{};for(const r of Nt(Object.keys(i)))r in s||St(n,r,i[r],void 0,o,t.i);for(const r of Nt(Object.keys(s)))St(n,r,i[r],s[r],o,t.i)};function Nt(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var he=!1,Ce=!1,Ne=!1,P=!1,Ye=[],Ke=[],Ae=(e,t,o)=>{var n;const i=t.m[o];let s,r,c,l=0;if(he||(Ne=!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(""),Xe(null,i,P);else{if(P||(P=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(P?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!he&&2&i.i?"slot-fb":i.O),P&&i.O==="foreignObject"&&(P=!1),Xe(null,i,P),i.m){const f=i.O==="template"?s.content:s;for(l=0;l<i.m.length;++l)r=Ae(e,i,l),r&&f.appendChild(r)}i.O==="svg"?P=!1:s.tagName==="foreignObject"&&(P=!0)}return s["s-hn"]=G,3&i.i&&(s["s-sr"]=!0,s["s-cr"]=Ue,s["s-sn"]=i.j||"",s["s-rf"]=(n=i.v)==null?void 0:n.ref,(function(f){if(f.assignedElements||f.assignedNodes||!f["s-sr"])return;const u=a=>(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 v=this["s-cr"].parentElement;return(v.__childNodes?v.childNodes:(w=>{const m=[];for(let y=0;y<w.length;y++){const g=w[y]["s-nr"]||void 0;g&&g.isConnected&&m.push(g)}return m})(v.childNodes)).forEach((w=>{d===de(w)&&p.push(w)})),f?p.filter((w=>w.nodeType===1)):p}).bind(a);a.assignedElements=u(!0),a.assignedNodes=u(!1)})(s),c=e&&e.m&&e.m[o],c&&c.O===i.O&&e.S&&At(e.S)),s},At=e=>{A.i|=1;const t=e.closest(K.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((i=>i["s-cr"])),n=Array.from(e.__childNodes||e.childNodes);for(const i of o?n.reverse():n)i["s-sh"]!=null&&(k(t,i,o??null),i["s-sh"]=void 0,Ce=!0)}A.i&=-2},Re=(e,t)=>{A.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let n=e;for(;n=n.nextSibling;)n&&n["s-sn"]===e["s-sn"]&&n["s-sh"]===K&&o.push(n)}for(let n=o.length-1;n>=0;n--){const i=o[n];i["s-hn"]!==K&&i["s-ol"]&&(k(pe(i).parentNode,i,pe(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,Ce=!0),t&&Re(i,t)}A.i&=-2},Rt=(e,t,o,n,i,s)=>{let r,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===K&&(c=c.shadowRoot),o.O==="template"&&(c=c.content);i<=s;++i)n[i]&&(r=Ae(null,o,i),r&&(n[i].S=r,k(c,r,pe(t))))},Pt=(e,t,o)=>{for(let n=t;n<=o;++n){const i=e[n];if(i){const s=i.S;_t(i),s&&(Ne=!0,s["s-ol"]?s["s-ol"].remove():Re(s,!0),s.remove())}}},Pe=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),pe=e=>e&&e["s-ol"]||e,se=(e,t,o=!1)=>{const n=t.S=e.S,i=e.m,s=t.m,r=t.O,c=t.h;let l;c==null?(P=r==="svg"||r!=="foreignObject"&&P,r!=="slot"||he||e.j!==t.j&&(t.S["s-sn"]=t.j||"",At(t.S.parentElement)),Xe(e,t,P),i!==null&&s!==null?((a,u,f,h,p=!1)=>{let d,v,w=0,m=0,y=0,g=0,E=u.length-1,b=u[0],x=u[E],S=h.length-1,N=h[0],C=h[S];const _=f.O==="template"?a.content:a;for(;w<=E&&m<=S;)if(b==null)b=u[++w];else if(x==null)x=u[--E];else if(N==null)N=h[++m];else if(C==null)C=h[--S];else if(Pe(b,N,p))se(b,N,p),b=u[++w],N=h[++m];else if(Pe(x,C,p))se(x,C,p),x=u[--E],C=h[--S];else if(Pe(b,C,p))b.O!=="slot"&&C.O!=="slot"||Re(b.S.parentNode,!1),se(b,C,p),k(_,b.S,x.S.nextSibling),b=u[++w],C=h[--S];else if(Pe(x,N,p))b.O!=="slot"&&C.O!=="slot"||Re(x.S.parentNode,!1),se(x,N,p),k(_,x.S,b.S),x=u[--E],N=h[++m];else{for(y=-1,g=w;g<=E;++g)if(u[g]&&u[g].$!==null&&u[g].$===N.$){y=g;break}y>=0?(v=u[y],v.O!==N.O?d=Ae(u&&u[m],f,y):(se(v,N,p),u[y]=void 0,d=v.S),N=h[++m]):(d=Ae(u&&u[m],f,m),N=h[++m]),d&&k(pe(b.S).parentNode,d,pe(b.S))}w>E?Rt(a,h[S+1]==null?null:h[S+1].S,f,h,m,S):m>S&&Pt(u,w,E)})(n,i,t,s,o):s!==null?(e.h!==null&&(n.textContent=""),Rt(n,null,t,s,0,s.length-1)):!o&&i!==null&&Pt(i,0,i.length-1),P&&r==="svg"&&(P=!1)):(l=n["s-cr"])?l.parentNode.textContent=c:e.h!==c&&(n.data=c)},j=[],Tt=e=>{let t,o,n;const i=e.__childNodes||e.childNodes;for(const s of i){if(s["s-sr"]&&(t=s["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const r=s["s-sn"];for(n=o.length-1;n>=0;n--)if(t=o[n],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===s["s-hn"]||t["s-sh"]&&t["s-sh"]===s["s-hn"]))if(vt(t,r)){let c=j.find((l=>l.k===t));Ne=!0,t["s-sn"]=t["s-sn"]||r,c?(c.k["s-sh"]=s["s-hn"],c.N=s):(t["s-sh"]=s["s-hn"],j.push({N:s,k:t})),t["s-sr"]&&j.map((l=>{vt(l.k,t["s-sn"])&&(c=j.find((a=>a.k===t)),c&&!l.N&&(l.N=c.N))}))}else j.some((c=>c.k===t))||j.push({k:t})}s.nodeType===1&&Tt(s)}},_t=e=>{e.v&&e.v.ref&&Ye.push((()=>e.v.ref(null))),e.m&&e.m.map(_t)},mn=(e,t)=>{Ke.push((()=>e(t)))},k=(e,t,o,n)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:i}=(function(s,r){var c;if(!(r=r||((c=s["s-ol"])==null?void 0:c.parentElement)))return{slotNode:null,slotName:""};const l=s["s-sn"]=de(s)||"";return{slotNode:ze(Be(r,"childNodes"),r.tagName,l)[0],slotName:l}})(t);return i&&!n&&i.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},gn=(e,t,o=!1)=>{var n,i,s,r,c;const l=e.$hostElement$,a=e.o,u=e.M||Oe(null,null);var f;const h=(f=t)&&f.O===an?t:B(null,null,t);if(K=l.tagName,a._&&(h.v=h.v||{},a._.forEach((([p,d])=>{h.v[d]=l[p]}))),o&&h.v)for(const p of Object.keys(h.v))l.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(h.v[p]=l[p]);if(h.O=null,h.i|=4,e.M=h,h.S=u.S=l.shadowRoot||l,he=!(!(1&a.i)||128&a.i),Ue=l["s-cr"],Ne=!1,se(u,h,o),A.i|=1,Ce){Tt(h.S);for(const p of j){const d=p.k;if(!d["s-ol"]&&O.document){const v=O.document.createTextNode("");v["s-nr"]=d,k(d.parentNode,d["s-ol"]=v,d,o)}}for(const p of j){const d=p.k,v=p.N;if(d.nodeType===1&&o&&(d["s-ih"]=(n=d.hidden)!=null&&n),v){const w=v.parentNode;let m=v.nextSibling;if(m&&m.nodeType===1){let y=(i=d["s-ol"])==null?void 0:i.previousSibling;for(;y;){let g=(s=y["s-nr"])!=null?s:null;if(g&&g["s-sn"]===d["s-sn"]&&w===(g.__parentNode||g.parentNode)){for(g=g.nextSibling;g===d||g?.["s-sr"];)g=g?.nextSibling;if(!g||!g["s-nr"]){m=g;break}}y=y.previousSibling}}if((!m&&w!==(d.__parentNode||d.parentNode)||(d.__nextSibling||d.nextSibling)!==m)&&d!==m){if(k(w,d,m,o),d.nodeType===8&&d.nodeValue.startsWith("s-nt-")){const y=O.document.createTextNode(d.nodeValue.replace(/^s-nt-/,""));y["s-hn"]=d["s-hn"],y["s-sn"]=d["s-sn"],y["s-sh"]=d["s-sh"],y["s-sr"]=d["s-sr"],y["s-ol"]=d["s-ol"],y["s-ol"]["s-nr"]=y,k(d.parentNode,y,d,o),d.parentNode.removeChild(d)}d.nodeType===1&&d.tagName!=="SLOT-FB"&&(d.hidden=(r=d["s-ih"])!=null&&r)}d&&typeof v["s-rf"]=="function"&&v["s-rf"](v)}else d.nodeType===1&&(d.hidden=!0)}}if(Ne&&yt(h.S),A.i&=-2,j.length=0,!he&&!(1&a.i)&&l["s-cr"]){const p=h.S.__childNodes||h.S.childNodes;for(const d of p)if(d["s-hn"]!==K&&!d["s-sh"]){if(o&&d["s-ih"]==null&&(d["s-ih"]=(c=d.hidden)!=null&&c),d.nodeType===1)d.hidden=!0;else if(d.nodeType===3&&d.nodeValue.trim()){const v=O.document.createComment("s-nt-"+d.nodeValue);v["s-sn"]=d["s-sn"],k(d.parentNode,v,d,o),d.parentNode.removeChild(d)}}}Ue=void 0,Ye.forEach((p=>p())),Ye.length=0,Ke.forEach((p=>p())),Ke.length=0},kt=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((n=>e.A=()=>{t["s-p"].splice(o-1,1),n()})))}},Ge=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);kt(e,e.C);const o=()=>yn(e,t);if(!t)return rn(o);queueMicrotask((()=>{o()}))},yn=(e,t)=>{const o=e.$hostElement$,n=o;if(!n)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return i=me(n,t?"componentWillLoad":"componentWillUpdate",void 0,o),i=Lt(i,(()=>me(n,"componentWillRender",void 0,o))),Lt(i,(()=>wn(e,n,t)))},Lt=(e,t)=>vn(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),vn=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",wn=async(e,t,o)=>{var n;const i=e.$hostElement$,s=i["s-rc"];o&&(r=>{const c=r.o,l=r.$hostElement$,a=c.i,u=((f,h)=>{var p,d,v;const w=wt(h),m=Se.get(w);if(!O.document)return w;if(f=f.nodeType===11?f:O.document,m)if(typeof m=="string"){let y,g=z.get(f=f.head||f);if(g||z.set(f,g=new Set),!g.has(w)){y=O.document.createElement("style"),y.textContent=m;const E=(p=A.L)!=null?p:(function(){var b,x,S;return(S=(x=(b=O.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:x.getAttribute("content"))!=null?S:void 0})();if(E!=null&&y.setAttribute("nonce",E),!(1&h.i))if(f.nodeName==="HEAD"){const b=f.querySelectorAll("link[rel=preconnect]"),x=b.length>0?b[b.length-1].nextSibling:f.querySelector("style");f.insertBefore(y,x?.parentNode===f?x:null)}else if("host"in f)if(We){const b=new((d=f.defaultView)!=null?d:f.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(m),je?f.adoptedStyleSheets.unshift(b):f.adoptedStyleSheets=[b,...f.adoptedStyleSheets]}else{const b=f.querySelector("style");b?b.textContent=m+b.textContent:f.prepend(y)}else f.append(y);1&h.i&&f.insertBefore(y,null),4&h.i&&(y.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),g&&g.add(w)}}else{let y=z.get(f);if(y||z.set(f,y=new Set),!y.has(w)){const g=(v=f.defaultView)!=null?v:f.ownerDocument.defaultView;let E;if(m.constructor===g.CSSStyleSheet)E=m;else{E=new g.CSSStyleSheet;for(let b=0;b<m.cssRules.length;b++)E.insertRule(m.cssRules[b].cssText,b)}je?f.adoptedStyleSheets.push(E):f.adoptedStyleSheets=[...f.adoptedStyleSheets,E],y.add(w)}}return w})(l.shadowRoot?l.shadowRoot:l.getRootNode(),c);10&a&&(l["s-sc"]=u,l.classList.add(u+"-h"))})(e),bn(e,t,i,o),s&&(s.map((r=>r())),i["s-rc"]=void 0);{const r=(n=i["s-p"])!=null?n:[],c=()=>En(e);r.length===0?c():(Promise.all(r).then(c).catch(c),e.i|=4,r.length=0)}},bn=(e,t,o,n)=>{try{t=t.render(),e.i&=-17,e.i|=2,gn(e,t,n)}catch(i){ie(i,e.$hostElement$)}return null},En=e=>{const t=e.$hostElement$,o=t,n=e.C;me(o,"componentDidRender",void 0,t),64&e.i?me(o,"componentDidUpdate",void 0,t):(e.i|=64,Sn(t),me(o,"componentDidLoad",void 0,t),e.F(t),n||xn()),e.A&&(e.A(),e.A=void 0),512&e.i&&He((()=>Ge(e,!1))),e.i&=-517},xn=()=>{He((()=>dn(O,"appload",{detail:{namespace:"gids-core-web"}})))},me=(e,t,o,n)=>{if(e&&e[t])try{return e[t](o)}catch(i){ie(i,n)}},Sn=e=>e.classList.add("hydrated"),Ft=(e,t,o,n)=>{const i=H(e);if(!i)return;const s=e,r=i.l.get(t),c=i.i,l=s;o=xt(o,n.t[t][0]);const a=Number.isNaN(r)&&Number.isNaN(o);if(o!==r&&!a){if(i.l.set(t,o),n.R){const u=n.R[t];u&&u.map((f=>{try{const[[h,p]]=Object.entries(f);(128&c||1&p)&&(l?l[h](o,r,t):i.T.push((()=>{i.D[h](o,r,t)})))}catch(h){ie(h,s)}}))}if(2&c){if(l.componentShouldUpdate&&l.componentShouldUpdate(o,r,t)===!1&&!(16&c))return;16&c||Ge(i,!1)}}},On=(e,t)=>{var o,n;const i=e.prototype;{e.watchers&&!t.R&&(t.R=Et(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const s=Object.entries((o=t.t)!=null?o:{});s.map((([r,[c]])=>{if(31&c||32&c){const{get:l,set:a}=oe(i,r)||{};l&&(t.t[r][0]|=2048),a&&(t.t[r][0]|=4096),Object.defineProperty(i,r,{get(){return l?l.apply(this):(u=r,H(this).l.get(u));var u},configurable:!0,enumerable:!0}),Object.defineProperty(i,r,{set(u){const f=H(this);if(f){if(a)return(32&c?this[r]:f.$hostElement$[r])===void 0&&f.l.get(r)&&(u=f.l.get(r)),a.apply(this,[xt(u,c)]),void Ft(this,r,u=32&c?this[r]:f.$hostElement$[r],t);Ft(this,r,u,t)}}})}}));{const r=new Map;i.attributeChangedCallback=function(c,l,a){A.jmp((()=>{var u;const f=r.get(c),h=H(this);if(this.hasOwnProperty(f),i.hasOwnProperty(f)&&typeof this[f]=="number"&&this[f]==a)return;if(f==null){const m=h?.i;if(h&&m&&!(8&m)&&a!==l){const y=this,g=(u=t.R)==null?void 0:u[c];g?.forEach((E=>{const[[b,x]]=Object.entries(E);y[b]!=null&&(128&m||1&x)&&y[b].call(y,a,l,c)}))}return}const p=s.find((([m])=>m===f)),d=p&&4&p[1][0],v=d&&a===null&&this[f]===void 0;d&&(a=a!==null&&a!=="false");const w=Object.getOwnPropertyDescriptor(i,f);v||a==this[f]||w.get&&!w.set||(this[f]=a)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.R)!=null?n:{}),...s.filter((([c,l])=>31&l[0])).map((([c,l])=>{var a;const u=l[1]||c;return r.set(u,c),512&l[0]&&((a=t._)==null||a.push([c,u])),u}))]))}}return e},Nn=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.R=Et(e.R),o.H=e.H,o.P=e.P,o._=[];const n=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((s,r)=>{const c={i:0,$hostElement$:s,o:r,l:new Map,U:new Map};c.W=new Promise((a=>c.F=a)),s["s-p"]=[],s["s-rc"]=[];const l=c;s.__stencil__getHostRef=()=>l,512&r.i&&on(s,c)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!H(this))return;this.__hasHostListenerAttached=!0}(s=>{if(!(1&A.i)){const r=H(s);if(!r)return;const c=r.o;if(1&r.i)r?.D||r?.W&&r.W.then((()=>{}));else{r.i|=1,12&c.i&&(l=>{if(!O.document)return;const a=l["s-cr"]=O.document.createComment("");a["s-cn"]=!0,k(l,a,l.firstChild)})(s);{let l=s;for(;l=l.parentNode||l.host;)if(l["s-p"]){kt(r,r.C=l);break}}c.t&&Object.entries(c.t).map((([l,[a]])=>{if(31&a&&Object.prototype.hasOwnProperty.call(s,l)){const u=s[l];delete s[l],s[l]=u}})),(async(l,a,u)=>{let f;try{if(!(32&a.i)&&(a.i|=32,f=l.constructor,customElements.whenDefined(l.localName).then((()=>a.i|=128)),f&&f.style)){let d;typeof f.style=="string"&&(d=f.style);const v=wt(u);Se.has(v)||((w,m,y)=>{let g=Se.get(w);We&&y?(g=g||new CSSStyleSheet,typeof g=="string"?g=m:g.replaceSync(m)):g=m,Se.set(w,g)})(v,d,!!(1&u.i))}const h=a.C,p=()=>Ge(a,!0);h&&h["s-rc"]?h["s-rc"].push(p):p()}catch(h){ie(h,l),a.A&&(a.A(),a.A=void 0),a.F&&a.F(l)}})(s,r,c)}}})(this),n&&n.call(this)},disconnectedCallback(){(async s=>{1&A.i||H(s),z.has(s)&&z.delete(s),s.shadowRoot&&z.has(s.shadowRoot)&&z.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 ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else ln.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),On(e,o)}catch(n){return ie(n),e}},Cn=(e,t)=>t;function xo(e){return e}const re=Math.min,G=Math.max,Te=Math.round,_e=Math.floor,M=e=>({x:e,y:e}),An={left:"right",right:"left",bottom:"top",top:"bottom"};function Ze(e,t,o){return G(e,re(t,o))}function ge(e,t){return typeof e=="function"?e(t):e}function Z(e){return e.split("-")[0]}function ye(e){return e.split("-")[1]}function $t(e){return e==="x"?"y":"x"}function Je(e){return e==="y"?"height":"width"}function U(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Qe(e){return $t(U(e))}function Rn(e,t,o){o===void 0&&(o=!1);const n=ye(e),i=Qe(e),s=Je(i);let r=i==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(r=ke(r)),[r,ke(r)]}function Pn(e){const t=ke(e);return[et(e),t,et(t)]}function et(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Dt=["left","right"],Mt=["right","left"],Tn=["top","bottom"],_n=["bottom","top"];function kn(e,t,o){switch(e){case"top":case"bottom":return o?t?Mt:Dt:t?Dt:Mt;case"left":case"right":return t?Tn:_n;default:return[]}}function Ln(e,t,o,n){const i=ye(e);let s=kn(Z(e),o==="start",n);return i&&(s=s.map(r=>r+"-"+i),t&&(s=s.concat(s.map(et)))),s}function ke(e){const t=Z(e);return An[t]+e.slice(t.length)}function Fn(e){return{top:0,right:0,bottom:0,left:0,...e}}function Wt(e){return typeof e!="number"?Fn(e):{top:e,right:e,bottom:e,left:e}}function Le(e){const{x:t,y:o,width:n,height:i}=e;return{width:n,height:i,top:o,left:t,right:t+n,bottom:o+i,x:t,y:o}}function jt(e,t,o){let{reference:n,floating:i}=e;const s=U(t),r=Qe(t),c=Je(r),l=Z(t),a=s==="y",u=n.x+n.width/2-i.width/2,f=n.y+n.height/2-i.height/2,h=n[c]/2-i[c]/2;let p;switch(l){case"top":p={x:u,y:n.y-i.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:f};break;case"left":p={x:n.x-i.width,y:f};break;default:p={x:n.x,y:n.y}}switch(ye(t)){case"start":p[r]-=h*(o&&a?-1:1);break;case"end":p[r]+=h*(o&&a?-1:1);break}return p}async function $n(e,t){var o;t===void 0&&(t={});const{x:n,y:i,platform:s,rects:r,elements:c,strategy:l}=e,{boundary:a="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:h=!1,padding:p=0}=ge(t,e),d=Wt(p),w=c[h?f==="floating"?"reference":"floating":f],m=Le(await s.getClippingRect({element:(o=await(s.isElement==null?void 0:s.isElement(w)))==null||o?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:a,rootBoundary:u,strategy:l})),y=f==="floating"?{x:n,y:i,width:r.floating.width,height:r.floating.height}:r.reference,g=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),E=await(s.isElement==null?void 0:s.isElement(g))?await(s.getScale==null?void 0:s.getScale(g))||{x:1,y:1}:{x:1,y:1},b=Le(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:g,strategy:l}):y);return{top:(m.top-b.top+d.top)/E.y,bottom:(b.bottom-m.bottom+d.bottom)/E.y,left:(m.left-b.left+d.left)/E.x,right:(b.right-m.right+d.right)/E.x}}const Dn=50,Mn=async(e,t,o)=>{const{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:r}=o,c=r.detectOverflow?r:{...r,detectOverflow:$n},l=await(r.isRTL==null?void 0:r.isRTL(t));let a=await r.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:f}=jt(a,n,l),h=n,p=0;const d={};for(let v=0;v<s.length;v++){const w=s[v];if(!w)continue;const{name:m,fn:y}=w,{x:g,y:E,data:b,reset:x}=await y({x:u,y:f,initialPlacement:n,placement:h,strategy:i,middlewareData:d,rects:a,platform:c,elements:{reference:e,floating:t}});u=g??u,f=E??f,d[m]={...d[m],...b},x&&p<Dn&&(p++,typeof x=="object"&&(x.placement&&(h=x.placement),x.rects&&(a=x.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:f}=jt(a,h,l)),v=-1)}return{x:u,y:f,placement:h,strategy:i,middlewareData:d}},Wn=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:n,placement:i,rects:s,platform:r,elements:c,middlewareData:l}=t,{element:a,padding:u=0}=ge(e,t)||{};if(a==null)return{};const f=Wt(u),h={x:o,y:n},p=Qe(i),d=Je(p),v=await r.getDimensions(a),w=p==="y",m=w?"top":"left",y=w?"bottom":"right",g=w?"clientHeight":"clientWidth",E=s.reference[d]+s.reference[p]-h[p]-s.floating[d],b=h[p]-s.reference[p],x=await(r.getOffsetParent==null?void 0:r.getOffsetParent(a));let S=x?x[g]:0;(!S||!await(r.isElement==null?void 0:r.isElement(x)))&&(S=c.floating[g]||s.floating[d]);const N=E/2-b/2,C=S/2-v[d]/2-1,_=re(f[m],C),Ee=re(f[y],C),te=_,xe=S-v[d]-Ee,R=S/2-v[d]/2+N,ne=Ze(te,R,xe),I=!l.arrow&&ye(i)!=null&&R!==ne&&s.reference[d]/2-(R<te?_:Ee)-v[d]/2<0,$=I?R<te?R-te:R-xe:0;return{[p]:h[p]+$,data:{[p]:ne,centerOffset:R-ne-$,...I&&{alignmentOffset:$}},reset:I}}}),jn=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,n;const{placement:i,middlewareData:s,rects:r,initialPlacement:c,platform:l,elements:a}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:v=!0,...w}=ge(e,t);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const m=Z(i),y=U(c),g=Z(c)===c,E=await(l.isRTL==null?void 0:l.isRTL(a.floating)),b=h||(g||!v?[ke(c)]:Pn(c)),x=d!=="none";!h&&x&&b.push(...Ln(c,v,d,E));const S=[c,...b],N=await l.detectOverflow(t,w),C=[];let _=((n=s.flip)==null?void 0:n.overflows)||[];if(u&&C.push(N[m]),f){const R=Rn(i,r,E);C.push(N[R[0]],N[R[1]])}if(_=[..._,{placement:i,overflows:C}],!C.every(R=>R<=0)){var Ee,te;const R=(((Ee=s.flip)==null?void 0:Ee.index)||0)+1,ne=S[R];if(ne&&(!(f==="alignment"?y!==U(ne):!1)||_.every(D=>U(D.placement)===y?D.overflows[0]>0:!0)))return{data:{index:R,overflows:_},reset:{placement:ne}};let I=(te=_.filter($=>$.overflows[0]<=0).sort(($,D)=>$.overflows[1]-D.overflows[1])[0])==null?void 0:te.placement;if(!I)switch(p){case"bestFit":{var xe;const $=(xe=_.filter(D=>{if(x){const X=U(D.placement);return X===y||X==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(X=>X>0).reduce((X,Eo)=>X+Eo,0)]).sort((D,X)=>D[1]-X[1])[0])==null?void 0:xe[0];$&&(I=$);break}case"initialPlacement":I=c;break}if(i!==I)return{reset:{placement:I}}}return{}}}},Vn=new Set(["left","top"]);async function In(e,t){const{placement:o,platform:n,elements:i}=e,s=await(n.isRTL==null?void 0:n.isRTL(i.floating)),r=Z(o),c=ye(o),l=U(o)==="y",a=Vn.has(r)?-1:1,u=s&&l?-1:1,f=ge(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:d}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return c&&typeof d=="number"&&(p=c==="end"?d*-1:d),l?{x:p*u,y:h*a}:{x:h*a,y:p*u}}const Hn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,n;const{x:i,y:s,placement:r,middlewareData:c}=t,l=await In(t,e);return r===((o=c.offset)==null?void 0:o.placement)&&(n=c.arrow)!=null&&n.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:r}}}}},zn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:n,placement:i,platform:s}=t,{mainAxis:r=!0,crossAxis:c=!1,limiter:l={fn:m=>{let{x:y,y:g}=m;return{x:y,y:g}}},...a}=ge(e,t),u={x:o,y:n},f=await s.detectOverflow(t,a),h=U(Z(i)),p=$t(h);let d=u[p],v=u[h];if(r){const m=p==="y"?"top":"left",y=p==="y"?"bottom":"right",g=d+f[m],E=d-f[y];d=Ze(g,d,E)}if(c){const m=h==="y"?"top":"left",y=h==="y"?"bottom":"right",g=v+f[m],E=v-f[y];v=Ze(g,v,E)}const w=l.fn({...t,[p]:d,[h]:v});return{...w,data:{x:w.x-o,y:w.y-n,enabled:{[p]:r,[h]:c}}}}}};function Fe(){return typeof window<"u"}function le(e){return Vt(e)?(e.nodeName||"").toLowerCase():"#document"}function T(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function W(e){var t;return(t=(Vt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Vt(e){return Fe()?e instanceof Node||e instanceof T(e).Node:!1}function L(e){return Fe()?e instanceof Element||e instanceof T(e).Element:!1}function V(e){return Fe()?e instanceof HTMLElement||e instanceof T(e).HTMLElement:!1}function It(e){return!Fe()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof T(e).ShadowRoot}function ve(e){const{overflow:t,overflowX:o,overflowY:n,display:i}=F(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&i!=="inline"&&i!=="contents"}function Bn(e){return/^(table|td|th)$/.test(le(e))}function $e(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Un=/transform|translate|scale|rotate|perspective|filter/,qn=/paint|layout|strict|content/,J=e=>!!e&&e!=="none";let tt;function nt(e){const t=L(e)?F(e):e;return J(t.transform)||J(t.translate)||J(t.scale)||J(t.rotate)||J(t.perspective)||!ot()&&(J(t.backdropFilter)||J(t.filter))||Un.test(t.willChange||"")||qn.test(t.contain||"")}function Xn(e){let t=q(e);for(;V(t)&&!ce(t);){if(nt(t))return t;if($e(t))return null;t=q(t)}return null}function ot(){return tt==null&&(tt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),tt}function ce(e){return/^(html|body|#document)$/.test(le(e))}function F(e){return T(e).getComputedStyle(e)}function De(e){return L(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function q(e){if(le(e)==="html")return e;const t=e.assignedSlot||e.parentNode||It(e)&&e.host||W(e);return It(t)?t.host:t}function Ht(e){const t=q(e);return ce(t)?e.ownerDocument?e.ownerDocument.body:e.body:V(t)&&ve(t)?t:Ht(t)}function we(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);const i=Ht(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),r=T(i);if(s){const c=it(r);return t.concat(r,r.visualViewport||[],ve(i)?i:[],c&&o?we(c):[])}else return t.concat(i,we(i,[],o))}function it(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function zt(e){const t=F(e);let o=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=V(e),s=i?e.offsetWidth:o,r=i?e.offsetHeight:n,c=Te(o)!==s||Te(n)!==r;return c&&(o=s,n=r),{width:o,height:n,$:c}}function st(e){return L(e)?e:e.contextElement}function ae(e){const t=st(e);if(!V(t))return M(1);const o=t.getBoundingClientRect(),{width:n,height:i,$:s}=zt(t);let r=(s?Te(o.width):o.width)/n,c=(s?Te(o.height):o.height)/i;return(!r||!Number.isFinite(r))&&(r=1),(!c||!Number.isFinite(c))&&(c=1),{x:r,y:c}}const Yn=M(0);function Bt(e){const t=T(e);return!ot()||!t.visualViewport?Yn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Kn(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==T(e)?!1:t}function Q(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);const i=e.getBoundingClientRect(),s=st(e);let r=M(1);t&&(n?L(n)&&(r=ae(n)):r=ae(e));const c=Kn(s,o,n)?Bt(s):M(0);let l=(i.left+c.x)/r.x,a=(i.top+c.y)/r.y,u=i.width/r.x,f=i.height/r.y;if(s){const h=T(s),p=n&&L(n)?T(n):n;let d=h,v=it(d);for(;v&&n&&p!==d;){const w=ae(v),m=v.getBoundingClientRect(),y=F(v),g=m.left+(v.clientLeft+parseFloat(y.paddingLeft))*w.x,E=m.top+(v.clientTop+parseFloat(y.paddingTop))*w.y;l*=w.x,a*=w.y,u*=w.x,f*=w.y,l+=g,a+=E,d=T(v),v=it(d)}}return Le({width:u,height:f,x:l,y:a})}function Me(e,t){const o=De(e).scrollLeft;return t?t.left+o:Q(W(e)).left+o}function Ut(e,t){const o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-Me(e,o),i=o.top+t.scrollTop;return{x:n,y:i}}function Gn(e){let{elements:t,rect:o,offsetParent:n,strategy:i}=e;const s=i==="fixed",r=W(n),c=t?$e(t.floating):!1;if(n===r||c&&s)return o;let l={scrollLeft:0,scrollTop:0},a=M(1);const u=M(0),f=V(n);if((f||!f&&!s)&&((le(n)!=="body"||ve(r))&&(l=De(n)),f)){const p=Q(n);a=ae(n),u.x=p.x+n.clientLeft,u.y=p.y+n.clientTop}const h=r&&!f&&!s?Ut(r,l):M(0);return{width:o.width*a.x,height:o.height*a.y,x:o.x*a.x-l.scrollLeft*a.x+u.x+h.x,y:o.y*a.y-l.scrollTop*a.y+u.y+h.y}}function Zn(e){return Array.from(e.getClientRects())}function Jn(e){const t=W(e),o=De(e),n=e.ownerDocument.body,i=G(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=G(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let r=-o.scrollLeft+Me(e);const c=-o.scrollTop;return F(n).direction==="rtl"&&(r+=G(t.clientWidth,n.clientWidth)-i),{width:i,height:s,x:r,y:c}}const qt=25;function Qn(e,t){const o=T(e),n=W(e),i=o.visualViewport;let s=n.clientWidth,r=n.clientHeight,c=0,l=0;if(i){s=i.width,r=i.height;const u=ot();(!u||u&&t==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}const a=Me(n);if(a<=0){const u=n.ownerDocument,f=u.body,h=getComputedStyle(f),p=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,d=Math.abs(n.clientWidth-f.clientWidth-p);d<=qt&&(s-=d)}else a<=qt&&(s+=a);return{width:s,height:r,x:c,y:l}}function eo(e,t){const o=Q(e,!0,t==="fixed"),n=o.top+e.clientTop,i=o.left+e.clientLeft,s=V(e)?ae(e):M(1),r=e.clientWidth*s.x,c=e.clientHeight*s.y,l=i*s.x,a=n*s.y;return{width:r,height:c,x:l,y:a}}function Xt(e,t,o){let n;if(t==="viewport")n=Qn(e,o);else if(t==="document")n=Jn(W(e));else if(L(t))n=eo(t,o);else{const i=Bt(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Le(n)}function Yt(e,t){const o=q(e);return o===t||!L(o)||ce(o)?!1:F(o).position==="fixed"||Yt(o,t)}function to(e,t){const o=t.get(e);if(o)return o;let n=we(e,[],!1).filter(c=>L(c)&&le(c)!=="body"),i=null;const s=F(e).position==="fixed";let r=s?q(e):e;for(;L(r)&&!ce(r);){const c=F(r),l=nt(r);!l&&c.position==="fixed"&&(i=null),(s?!l&&!i:!l&&c.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||ve(r)&&!l&&Yt(e,r))?n=n.filter(u=>u!==r):i=c,r=q(r)}return t.set(e,n),n}function no(e){let{element:t,boundary:o,rootBoundary:n,strategy:i}=e;const r=[...o==="clippingAncestors"?$e(t)?[]:to(t,this._c):[].concat(o),n],c=Xt(t,r[0],i);let l=c.top,a=c.right,u=c.bottom,f=c.left;for(let h=1;h<r.length;h++){const p=Xt(t,r[h],i);l=G(p.top,l),a=re(p.right,a),u=re(p.bottom,u),f=G(p.left,f)}return{width:a-f,height:u-l,x:f,y:l}}function oo(e){const{width:t,height:o}=zt(e);return{width:t,height:o}}function io(e,t,o){const n=V(t),i=W(t),s=o==="fixed",r=Q(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const l=M(0);function a(){l.x=Me(i)}if(n||!n&&!s)if((le(t)!=="body"||ve(i))&&(c=De(t)),n){const p=Q(t,!0,s,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else i&&a();s&&!n&&i&&a();const u=i&&!n&&!s?Ut(i,c):M(0),f=r.left+c.scrollLeft-l.x-u.x,h=r.top+c.scrollTop-l.y-u.y;return{x:f,y:h,width:r.width,height:r.height}}function rt(e){return F(e).position==="static"}function Kt(e,t){if(!V(e)||F(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return W(e)===o&&(o=o.ownerDocument.body),o}function Gt(e,t){const o=T(e);if($e(e))return o;if(!V(e)){let i=q(e);for(;i&&!ce(i);){if(L(i)&&!rt(i))return i;i=q(i)}return o}let n=Kt(e,t);for(;n&&Bn(n)&&rt(n);)n=Kt(n,t);return n&&ce(n)&&rt(n)&&!nt(n)?o:n||Xn(e)||o}const so=async function(e){const t=this.getOffsetParent||Gt,o=this.getDimensions,n=await o(e.floating);return{reference:io(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function ro(e){return F(e).direction==="rtl"}const lt={convertOffsetParentRelativeRectToViewportRelativeRect:Gn,getDocumentElement:W,getClippingRect:no,getOffsetParent:Gt,getElementRects:so,getClientRects:Zn,getDimensions:oo,getScale:ae,isElement:L,isRTL:ro};function Zt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function lo(e,t){let o=null,n;const i=W(e);function s(){var c;clearTimeout(n),(c=o)==null||c.disconnect(),o=null}function r(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),s();const a=e.getBoundingClientRect(),{left:u,top:f,width:h,height:p}=a;if(c||t(),!h||!p)return;const d=_e(f),v=_e(i.clientWidth-(u+h)),w=_e(i.clientHeight-(f+p)),m=_e(u),g={rootMargin:-d+"px "+-v+"px "+-w+"px "+-m+"px",threshold:G(0,re(1,l))||1};let E=!0;function b(x){const S=x[0].intersectionRatio;if(S!==l){if(!E)return r();S?r(!1,S):n=setTimeout(()=>{r(!1,1e-7)},1e3)}S===1&&!Zt(a,e.getBoundingClientRect())&&r(),E=!1}try{o=new IntersectionObserver(b,{...g,root:i.ownerDocument})}catch{o=new IntersectionObserver(b,g)}o.observe(e)}return r(!0),s}function co(e,t,o,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,a=st(e),u=i||s?[...a?we(a):[],...t?we(t):[]]:[];u.forEach(m=>{i&&m.addEventListener("scroll",o,{passive:!0}),s&&m.addEventListener("resize",o)});const f=a&&c?lo(a,o):null;let h=-1,p=null;r&&(p=new ResizeObserver(m=>{let[y]=m;y&&y.target===a&&p&&t&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var g;(g=p)==null||g.observe(t)})),o()}),a&&!l&&p.observe(a),t&&p.observe(t));let d,v=l?Q(e):null;l&&w();function w(){const m=Q(e);v&&!Zt(v,m)&&o(),v=m,d=requestAnimationFrame(w)}return o(),()=>{var m;u.forEach(y=>{i&&y.removeEventListener("scroll",o),s&&y.removeEventListener("resize",o)}),f?.(),(m=p)==null||m.disconnect(),p=null,l&&cancelAnimationFrame(d)}}const ao=Hn,fo=zn,uo=jn,ho=Wn,po=(e,t,o)=>{const n=new Map,i={platform:lt,...o},s={...i.platform,_c:n};return Mn(e,t,{...i,platform:s})};var be;(function(e){e.TOOLTIP="tooltip",e.POPOVER="popover"})(be||(be={}));function Jt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}const mo=/transform|translate|scale|rotate|perspective|filter/,go=/paint|layout|strict|content/,ee=e=>!!e&&e!=="none";let ct;function yo(e){const t=(o=e,typeof window<"u"&&(o instanceof Element||o instanceof Jt(o).Element)?Jt(n=e).getComputedStyle(n):e);var o,n;return ee(t.transform)||ee(t.translate)||ee(t.scale)||ee(t.rotate)||ee(t.perspective)||(ct==null&&(ct=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),!ct&&(ee(t.backdropFilter)||ee(t.filter)))||mo.test(t.willChange||"")||go.test(t.contain||"")}function vo(e){return(function(t){for(let o=t;o;o=at(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=at(t);o;o=at(o)){if(!(o instanceof Element))continue;const n=getComputedStyle(o);if(n.display!=="contents"&&(n.position!=="static"||yo(n)||o.tagName==="BODY"))return o}return null})(e)}function at(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}const fe=class fe{constructor(t,o){this.el=t,this.config=o,this.offset=10,this.timeDelayBeforeFadingOut=50,this.popoverMainAxisEnabled=!0,this.currentPlacement=o.placement,this.cleanup=null}setCommonTimingConfig(){this.timeBeforeElementShows=this.config.showWithoutDelay?50:500,this.timeOfAnimation=this.config.showWithoutDelay?50:250}initialize(){this.setCommonTimingConfig(),this.floatingElement=this.el.shadowRoot?.querySelector(this.config.floatingElementSelector),this.floatingElement&&this.applyViewportMaxWidth(),this.arrowEl=this.config.showArrow!==!1&&this.config.arrowElementSelector?this.el.shadowRoot?.querySelector(this.config.arrowElementSelector):null,this.anchorElement=this.config.htmlFor?.length>0?document.getElementById(this.config.htmlFor):this.config.getAnchorElementFromSlot(this.el.shadowRoot),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.setCommonTimingConfig(),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=co(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=[ao(this.offset)],o=uo({mainAxis:!0,crossAxis:!this.config.lockToMainAxis&&"alignment",fallbackAxisSideDirection:"end",padding:this.offset}),n=this.config.elementType===be.POPOVER,i=fo({padding:this.offset,mainAxis:this.config.elementType===be.TOOLTIP||n&&this.popoverMainAxisEnabled,crossAxis:!1});this.config.placement.includes("-")?t.push(o,i):t.push(i,o),this.config.showArrow!==!1&&this.arrowEl&&t.push(ho({element:this.arrowEl,padding:this.offset})),po(this.anchorElement,this.floatingElement,{placement:this.config.placement,strategy:"fixed",middleware:t,platform:{...lt,getOffsetParent:s=>lt.getOffsetParent(s,vo)}}).then((({x:s,y:r,middlewareData:c,placement:l})=>{if(n){const h=l.startsWith("left")||l.startsWith("right"),p=l.startsWith("top")||l.startsWith("bottom"),d=this.isAnchorInViewport(),v=!!p||(h?d:this.popoverMainAxisEnabled);if(v!==this.popoverMainAxisEnabled)return this.popoverMainAxisEnabled=v,void this.updatePosition()}this.currentPlacement=l,Object.assign(this.floatingElement.style,{left:`${s}px`,top:`${r}px`,position:"fixed",transition:`opacity ${this.timeOfAnimation}ms ease`});const a=l.split("-")[0]??"bottom",u={top:"bottom",right:"left",bottom:"top",left:"right"}[a],{arrowZIndex:f}=this.normalizeFloatingElementStacking();if(c.arrow&&this.arrowEl){const h=this.arrowEl.offsetWidth,{x:p,y:d}=c.arrow;this.arrowEl.style.borderRadius=`${["left","right"].includes(a)?"0 ":""}var(--gidsFloatingElement-tip-border-radius, 2px)${["top","bottom"].includes(a)?" 0":""}`,Object.assign(this.arrowEl.style,{left:p!==null?`${p}px`:"",top:d!==null?`${d}px`:"",right:"",bottom:"",[u]:-h/2+"px",transform:"rotate(45deg)",zIndex:`${f}`,background:"var(--gidsFloatingElement-background)"})}}))}applyViewportMaxWidth(){const t=`calc(100vw - ${2*this.offset}px)`;this.floatingElement?.style.maxWidth!==t&&(this.floatingElement.style.maxWidth=t)}normalizeFloatingElementStacking(){const t=this.floatingElement.style.zIndex||(window.getComputedStyle?.(this.floatingElement).zIndex??""),o=Number.parseInt(t,10),n=Number.isNaN(o)?-1:o-1,i=Number.isNaN(o)?n+1:o;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 r=s.style.zIndex||(window.getComputedStyle?.(s).zIndex??""),c=Number.parseInt(r,10),l=window.getComputedStyle?.(s).position??"";(r===""||r==="auto"||Number.isNaN(c)||c<i)&&(s.style.zIndex=`${i}`,l!==""&&l!=="static"||(s.style.position="relative"))})),{contentZIndex:i,arrowZIndex:n}}hideFloatingElement(){this.floatingElement.classList.remove(this.config.visibilityClass),fe.currentFloatingElements.delete(this.config.elementType)}showFloatingElement(){const t=fe.currentFloatingElements.get(this.config.elementType);t&&t.hideFloatingElement(),this.floatingElement.classList.add(this.config.visibilityClass),fe.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(),o=window.innerHeight||document.documentElement?.clientHeight||0,n=window.innerWidth||document.documentElement?.clientWidth||0,i=t.height/2+2*this.offset;return t.bottom>=i&&t.top<=o-i&&t.right>=0&&t.left<=n}};fe.currentFloatingElements=new Map;let ft=fe;const Qt=Nn(class extends ht{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.placement="bottom",this.previouslyFocusedElement=null,this.focusableElements=[],this.handleToggleEvent=t=>{t.stopPropagation();const o=this.floatingElementManager.isVisible();this.floatingElementManager.toggle(),!o&&this.floatingElementManager.isVisible()?this.onPopoverShow():o&&!this.floatingElementManager.isVisible()&&this.onPopoverHide()},this.handleDocumentClick=t=>{this.floatingElementManager.isVisible()&&!this._el.contains(t.target)&&(this.floatingElementManager.hide(),this.onPopoverHide())},this.handleKeyDown=t=>{if(this.floatingElementManager.isVisible())return t.key==="Escape"?(t.preventDefault(),this.floatingElementManager.hide(),void this.onPopoverHide()):void(t.key==="Tab"&&this.trapFocus(t))}}componentDidLoad(){this.floatingElementManager=new ft(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:!0,floatingElementSelector:"#popover",arrowElementSelector:"#arrow",visibilityClass:"gids-popover--visible",elementType:be.POPOVER,getAnchorElementFromSlot:e=>e.querySelector('slot[name="anchor"]')?.assignedElements()[0]||null}),this.floatingElementManager.initialize(),this.setupEventListeners()}setupEventListeners(){const e=this.floatingElementManager.getAnchorElement();e&&(e.addEventListener("click",this.handleToggleEvent),document.addEventListener("click",this.handleDocumentClick),document.addEventListener("keydown",this.handleKeyDown))}onPopoverShow(){this.previouslyFocusedElement=document.activeElement,this.updateFocusableElements(),setTimeout((()=>{this.focusableElements.length>0&&this.focusableElements[0]&&this.focusableElements[0].focus()}),50)}onPopoverHide(){this.previouslyFocusedElement&&(this.previouslyFocusedElement.focus(),this.previouslyFocusedElement=null)}updateFocusableElements(){const e=this._el.shadowRoot?.querySelector("#popover");if(!e)return;const t=[],o=tn(e);t.push(...o);const n=this._el.shadowRoot?.querySelector("slot:not([name])");n&&n.assignedElements({flatten:!0}).forEach((i=>{const s=tn(i);t.push(...s)})),this.focusableElements=t.sort(((i,s)=>{const r=i.compareDocumentPosition(s),c=!!(r&Node.DOCUMENT_POSITION_FOLLOWING),l=!!(r&Node.DOCUMENT_POSITION_PRECEDING);return c?-1:l?1:0}))}trapFocus(e){if(this.focusableElements.length===0)return;const t=this.focusableElements[0],o=this.focusableElements[this.focusableElements.length-1];let n=document.activeElement;if(n===this._el){const s=this._el.shadowRoot?.activeElement;s!==null&&(n=s)}const i=this.focusableElements.indexOf(n)!==-1;e.shiftKey?n!==t&&i||(e.preventDefault(),o&&o.focus()):n!==o&&i||(e.preventDefault(),t&&t.focus())}placementChanged(e){this.floatingElementManager?.updateConfig({placement:e}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}htmlForChanged(e){this.floatingElementManager?.updateConfig({htmlFor:e}),this.cleanupEventListeners(),this.floatingElementManager?.initialize(),this.setupEventListeners()}cleanupEventListeners(){const e=this.floatingElementManager?.getAnchorElement();e&&e.removeEventListener("click",this.handleToggleEvent),document.removeEventListener("click",this.handleDocumentClick),document.removeEventListener("keydown",this.handleKeyDown)}render(){return B(Cn,{key:"da6cbab41d3390a940444809d9fe809225c9426e"},B("slot",{key:"5a5e5f72ab9c793e02b7bd633381363ab37cbf22",name:"anchor"}),B("div",{key:"49ab365961e8a3d9bf0e6ac67f2c73fda1eb7bb3",id:"popover",part:"popover",role:"dialog","aria-modal":"true",tabindex:"-1"},B("span",{key:"9815148f291ebca88b4a2bbe09b0e93fcbaab4a7",id:"arrow"}),B("div",{key:"b6d83da9bd180933b5f2453f3e66f66f692e35c1"},B("slot",{key:"90aaeadfe9d09ebdd6534afa762b35c38a5cc57f"}))))}disconnectedCallback(){this.cleanupEventListeners(),this.floatingElementManager?.destroy()}get _el(){return this}static get watchers(){return{placement:[{placementChanged:0}],htmlFor:[{htmlForChanged:0}]}}static get style(){return"gids-popover{--gidsPopover-background:var(--gids-elevation-surface-overlay-default);--gidsPopover-text-color:var(--gids-color-text-default);--gidsPopover-padding:var(--gids-padding-vertical-edge-to-element-200) var(--gids-padding-horizontal-edge-to-element-300);--gidsPopover-border-radius:var(--gids-border-radius-lg);--gidsPopover-tip-border-radius:2px;--gidsPopover-tip-size:12px;--gidsPopover-shadow:var(--gids-elevation-shadow-overlay);--gidsFloatingElement-background:var(--gidsPopover-background);--gidsFloatingElement-tip-border-radius:var(--gidsPopover-tip-border-radius)}[part=popover]{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;background-color:var(--gidsPopover-background);color:var(--gidsPopover-text-color);border-radius:var(--gidsPopover-border-radius);box-shadow:var(--gidsPopover-shadow);z-index:1000;opacity:0;pointer-events:none;outline:none}[part=popover]:focus{outline:none}[part=popover].gids-popover--visible{pointer-events:initial;opacity:1}[part=popover] span#arrow{position:absolute;height:var(--gidsPopover-tip-size);width:var(--gidsPopover-tip-size);background-color:var(--gidsPopover-background)}"}},[257,"gids-popover",{htmlFor:[513,"for"],placement:[513]},void 0,{placement:[{placementChanged:0}],htmlFor:[{htmlForChanged:0}]}]),en=e=>{if(!(e instanceof ht)||e.tabIndex===-1||e.hasAttribute("disabled"))return!1;const t=getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden"||e.hidden)return!1;try{const o=e.tabIndex;e.tabIndex=-1,e.focus();const n=document.activeElement===e;return e.tabIndex=o,n&&e.blur(),n}catch{return!1}},tn=e=>{const t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>en(i)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),o=[];en(e)&&o.push(e);let n=t.nextNode();for(;n!==null;)o.push(n),n=t.nextNode();return o};function nn(){typeof customElements<"u"&&["gids-popover"].forEach((e=>{e==="gids-popover"&&(customElements.get(e)||customElements.define(e,Qt))}))}nn();const wo=Qt,bo=nn;Y.GidsPopover=wo,Y.defineCustomElement=bo,Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"})}));
|
|
5
|
+
`);const v=this["s-cr"].parentElement;return(v.__childNodes?v.childNodes:(w=>{const g=[];for(let y=0;y<w.length;y++){const m=w[y]["s-nr"]||void 0;m&&m.isConnected&&g.push(m)}return g})(v.childNodes)).forEach((w=>{h===de(w)&&p.push(w)})),a?p.filter((w=>w.nodeType===1)):p}).bind(f);f.assignedElements=u(!0),f.assignedNodes=u(!1)})(s),c=e&&e.m&&e.m[o],c&&c.O===i.O&&e.S&&At(e.S)),s},At=e=>{N.i|=1;const t=e.closest(G.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((i=>i["s-cr"])),n=Array.from(e.__childNodes||e.childNodes);for(const i of o?n.reverse():n)i["s-sh"]!=null&&(_(t,i,o??null),i["s-sh"]=void 0,Ne=!0)}N.i&=-2},Re=(e,t)=>{N.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let n=e;for(;n=n.nextSibling;)n&&n["s-sn"]===e["s-sn"]&&n["s-sh"]===G&&o.push(n)}for(let n=o.length-1;n>=0;n--){const i=o[n];i["s-hn"]!==G&&i["s-ol"]&&(_(pe(i).parentNode,i,pe(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,Ne=!0),t&&Re(i,t)}N.i&=-2},Rt=(e,t,o,n,i,s)=>{let r,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===G&&(c=c.shadowRoot),o.O==="template"&&(c=c.content);i<=s;++i)n[i]&&(r=Ae(null,o,i),r&&(n[i].S=r,_(c,r,pe(t))))},Pt=(e,t,o)=>{for(let n=t;n<=o;++n){const i=e[n];if(i){const s=i.S;kt(i),s&&(Ce=!0,s["s-ol"]?s["s-ol"].remove():Re(s,!0),s.remove())}}},Pe=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),pe=e=>e&&e["s-ol"]||e,se=(e,t,o=!1)=>{const n=t.S=e.S,i=e.m,s=t.m,r=t.O,c=t.h;let l;c==null?(P=r==="svg"||r!=="foreignObject"&&P,r!=="slot"||he||e.j!==t.j&&(t.S["s-sn"]=t.j||"",At(t.S.parentElement)),Xe(e,t,P),i!==null&&s!==null?((f,u,a,d,p=!1)=>{let h,v,w=0,g=0,y=0,m=0,E=u.length-1,b=u[0],x=u[E],S=d.length-1,C=d[0],A=d[S];const k=a.O==="template"?f.content:f;for(;w<=E&&g<=S;)if(b==null)b=u[++w];else if(x==null)x=u[--E];else if(C==null)C=d[++g];else if(A==null)A=d[--S];else if(Pe(b,C,p))se(b,C,p),b=u[++w],C=d[++g];else if(Pe(x,A,p))se(x,A,p),x=u[--E],A=d[--S];else if(Pe(b,A,p))b.O!=="slot"&&A.O!=="slot"||Re(b.S.parentNode,!1),se(b,A,p),_(k,b.S,x.S.nextSibling),b=u[++w],A=d[--S];else if(Pe(x,C,p))b.O!=="slot"&&A.O!=="slot"||Re(x.S.parentNode,!1),se(x,C,p),_(k,x.S,b.S),x=u[--E],C=d[++g];else{for(y=-1,m=w;m<=E;++m)if(u[m]&&u[m].$!==null&&u[m].$===C.$){y=m;break}y>=0?(v=u[y],v.O!==C.O?h=Ae(u&&u[g],a,y):(se(v,C,p),u[y]=void 0,h=v.S),C=d[++g]):(h=Ae(u&&u[g],a,g),C=d[++g]),h&&_(pe(b.S).parentNode,h,pe(b.S))}w>E?Rt(f,d[S+1]==null?null:d[S+1].S,a,d,g,S):g>S&&Pt(u,w,E)})(n,i,t,s,o):s!==null?(e.h!==null&&(n.textContent=""),Rt(n,null,t,s,0,s.length-1)):!o&&i!==null&&Pt(i,0,i.length-1),P&&r==="svg"&&(P=!1)):(l=n["s-cr"])?l.parentNode.textContent=c:e.h!==c&&(n.data=c)},V=[],Tt=e=>{let t,o,n;const i=e.__childNodes||e.childNodes;for(const s of i){if(s["s-sr"]&&(t=s["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const r=s["s-sn"];for(n=o.length-1;n>=0;n--)if(t=o[n],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===s["s-hn"]||t["s-sh"]&&t["s-sh"]===s["s-hn"]))if(vt(t,r)){let c=V.find((l=>l.k===t));Ce=!0,t["s-sn"]=t["s-sn"]||r,c?(c.k["s-sh"]=s["s-hn"],c.N=s):(t["s-sh"]=s["s-hn"],V.push({N:s,k:t})),t["s-sr"]&&V.map((l=>{vt(l.k,t["s-sn"])&&(c=V.find((f=>f.k===t)),c&&!l.N&&(l.N=c.N))}))}else V.some((c=>c.k===t))||V.push({k:t})}s.nodeType===1&&Tt(s)}},kt=e=>{e.v&&e.v.ref&&Ye.push((()=>e.v.ref(null))),e.m&&e.m.map(kt)},vn=(e,t)=>{Ke.push((()=>e(t)))},_=(e,t,o,n)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:i}=(function(s,r){var c;if(!(r=r||((c=s["s-ol"])==null?void 0:c.parentElement)))return{slotNode:null,slotName:""};const l=s["s-sn"]=de(s)||"";return{slotNode:Be(ze(r,"childNodes"),r.tagName,l)[0],slotName:l}})(t);return i&&!n&&i.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},wn=(e,t,o=!1)=>{var n,i,s,r,c;const l=e.$hostElement$,f=e.o,u=e.M||Oe(null,null);var a;const d=(a=t)&&a.O===dn?t:z(null,null,t);if(G=l.tagName,f.C&&(d.v=d.v||{},f.C.forEach((([p,h])=>{d.v[h]=l[p]}))),o&&d.v)for(const p of Object.keys(d.v))l.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(d.v[p]=l[p]);if(d.O=null,d.i|=4,e.M=d,d.S=u.S=l.shadowRoot||l,he=!(!(1&f.i)||128&f.i),Ue=l["s-cr"],Ce=!1,se(u,d,o),N.i|=1,Ne){Tt(d.S);for(const p of V){const h=p.k;if(!h["s-ol"]&&O.document){const v=O.document.createTextNode("");v["s-nr"]=h,_(h.parentNode,h["s-ol"]=v,h,o)}}for(const p of V){const h=p.k,v=p.N;if(h.nodeType===1&&o&&(h["s-ih"]=(n=h.hidden)!=null&&n),v){const w=v.parentNode;let g=v.nextSibling;if(g&&g.nodeType===1){let y=(i=h["s-ol"])==null?void 0:i.previousSibling;for(;y;){let m=(s=y["s-nr"])!=null?s:null;if(m&&m["s-sn"]===h["s-sn"]&&w===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===h||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){g=m;break}}y=y.previousSibling}}if((!g&&w!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==g)&&h!==g){if(_(w,h,g,o),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const y=O.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));y["s-hn"]=h["s-hn"],y["s-sn"]=h["s-sn"],y["s-sh"]=h["s-sh"],y["s-sr"]=h["s-sr"],y["s-ol"]=h["s-ol"],y["s-ol"]["s-nr"]=y,_(h.parentNode,y,h,o),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(r=h["s-ih"])!=null&&r)}h&&typeof v["s-rf"]=="function"&&v["s-rf"](v)}else h.nodeType===1&&(h.hidden=!0)}}if(Ce&&yt(d.S),N.i&=-2,V.length=0,!he&&!(1&f.i)&&l["s-cr"]){const p=d.S.__childNodes||d.S.childNodes;for(const h of p)if(h["s-hn"]!==G&&!h["s-sh"]){if(o&&h["s-ih"]==null&&(h["s-ih"]=(c=h.hidden)!=null&&c),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const v=O.document.createComment("s-nt-"+h.nodeValue);v["s-sn"]=h["s-sn"],_(h.parentNode,v,h,o),h.parentNode.removeChild(h)}}}Ue=void 0,Ye.forEach((p=>p())),Ye.length=0,Ke.forEach((p=>p())),Ke.length=0},_t=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((n=>e.A=()=>{t["s-p"].splice(o-1,1),n()})))}},Ge=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);_t(e,e.R);const o=()=>bn(e,t);if(!t)return an(o);queueMicrotask((()=>{o()}))},bn=(e,t)=>{const o=e.$hostElement$,n=o;if(!n)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return i=me(n,t?"componentWillLoad":"componentWillUpdate",void 0,o),i=Lt(i,(()=>me(n,"componentWillRender",void 0,o))),Lt(i,(()=>xn(e,n,t)))},Lt=(e,t)=>En(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),En=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",xn=async(e,t,o)=>{var n;const i=e.$hostElement$,s=i["s-rc"];o&&(r=>{const c=r.o,l=r.$hostElement$,f=c.i,u=((a,d)=>{var p,h,v;const w=wt(d),g=Se.get(w);if(!O.document)return w;if(a=a.nodeType===11?a:O.document,g)if(typeof g=="string"){let y,m=B.get(a=a.head||a);if(m||B.set(a,m=new Set),!m.has(w)){y=O.document.createElement("style"),y.textContent=g;const E=(p=N._)!=null?p:(function(){var b,x,S;return(S=(x=(b=O.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:x.getAttribute("content"))!=null?S:void 0})();if(E!=null&&y.setAttribute("nonce",E),!(1&d.i))if(a.nodeName==="HEAD"){const b=a.querySelectorAll("link[rel=preconnect]"),x=b.length>0?b[b.length-1].nextSibling:a.querySelector("style");a.insertBefore(y,x?.parentNode===a?x:null)}else if("host"in a)if(je){const b=new((h=a.defaultView)!=null?h:a.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(g),We?a.adoptedStyleSheets.unshift(b):a.adoptedStyleSheets=[b,...a.adoptedStyleSheets]}else{const b=a.querySelector("style");b?b.textContent=g+b.textContent:a.prepend(y)}else a.append(y);1&d.i&&a.insertBefore(y,null),4&d.i&&(y.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),m&&m.add(w)}}else{let y=B.get(a);if(y||B.set(a,y=new Set),!y.has(w)){const m=(v=a.defaultView)!=null?v:a.ownerDocument.defaultView;let E;if(g.constructor===m.CSSStyleSheet)E=g;else{E=new m.CSSStyleSheet;for(let b=0;b<g.cssRules.length;b++)E.insertRule(g.cssRules[b].cssText,b)}We?a.adoptedStyleSheets.push(E):a.adoptedStyleSheets=[...a.adoptedStyleSheets,E],y.add(w)}}return w})(l.shadowRoot?l.shadowRoot:l.getRootNode(),c);10&f&&(l["s-sc"]=u,l.classList.add(u+"-h"))})(e),Sn(e,t,i,o),s&&(s.map((r=>r())),i["s-rc"]=void 0);{const r=(n=i["s-p"])!=null?n:[],c=()=>On(e);r.length===0?c():(Promise.all(r).then(c).catch(c),e.i|=4,r.length=0)}},Sn=(e,t,o,n)=>{try{t=t.render(),e.i&=-17,e.i|=2,wn(e,t,n)}catch(i){K(i,e.$hostElement$)}return null},On=e=>{const t=e.$hostElement$,o=t,n=e.R;me(o,"componentDidRender",void 0,t),64&e.i?me(o,"componentDidUpdate",void 0,t):(e.i|=64,Nn(t),me(o,"componentDidLoad",void 0,t),e.L(t),n||Cn()),e.A&&(e.A(),e.A=void 0),512&e.i&&He((()=>Ge(e,!1))),e.i&=-517},Cn=()=>{He((()=>mn(O,"appload",{detail:{namespace:"gids-core-web"}})))},me=(e,t,o,n)=>{if(e&&e[t])try{return e[t](o)}catch(i){K(i,n)}},Nn=e=>e.classList.add("hydrated"),Ft=(e,t,o,n)=>{const i=W(e);if(!i)return;const s=e,r=i.l.get(t),c=i.i,l=s;o=xt(o,n.t[t][0],!!(64&n.i));const f=Number.isNaN(r)&&Number.isNaN(o);if(o!==r&&!f){if(i.l.set(t,o),n.F){const u=n.F[t];u&&u.map((a=>{try{const[[d,p]]=Object.entries(a);(128&c||1&p)&&(l?l[d](o,r,t):i.T.push((()=>{i.D[d](o,r,t)})))}catch(d){K(d,s)}}))}if(2&c){if(l.componentShouldUpdate&&l.componentShouldUpdate(o,r,t)===!1&&!(16&c))return;16&c||Ge(i,!1)}}},An=(e,t,o)=>{var n,i;const s=e.prototype;64&t.i&&1&o&&rn.forEach((r=>{const c=s[r];Object.defineProperty(s,r,{value(...l){var f;const u=W(this),a=this;a?typeof c=="function"&&c.call(a,...l):(f=u?.H)==null||f.then((d=>{const p=d[r];typeof p=="function"&&p.call(d,...l)}))}})}));{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 r=Object.entries((n=t.t)!=null?n:{});r.map((([c,[l]])=>{if(31&l||32&l){const{get:f,set:u}=ie(s,c)||{};f&&(t.t[c][0]|=2048),u&&(t.t[c][0]|=4096),Object.defineProperty(s,c,{get(){return f?f.apply(this):(a=c,W(this).l.get(a));var a},configurable:!0,enumerable:!0}),Object.defineProperty(s,c,{set(a){const d=W(this);if(d){if(u)return(32&l?this[c]:d.$hostElement$[c])===void 0&&d.l.get(c)&&(a=d.l.get(c)),u.apply(this,[xt(a,l,!!(64&t.i))]),void Ft(this,c,a=32&l?this[c]:d.$hostElement$[c],t);Ft(this,c,a,t)}}})}}));{const c=new Map;s.attributeChangedCallback=function(l,f,u){N.jmp((()=>{var a;const d=c.get(l),p=W(this);if(this.hasOwnProperty(d),s.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==u)return;if(d==null){const y=p?.i;if(p&&y&&!(8&y)&&u!==f){const m=this,E=(a=t.F)==null?void 0:a[l];E?.forEach((b=>{const[[x,S]]=Object.entries(b);m[x]!=null&&(128&y||1&S)&&m[x].call(m,u,f,l)}))}return}const h=r.find((([y])=>y===d)),v=h&&4&h[1][0],w=v&&u===null&&this[d]===void 0;v&&(u=u!==null&&u!=="false");const g=Object.getOwnPropertyDescriptor(s,d);w||u==this[d]||g.get&&!g.set||(this[d]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.F)!=null?i:{}),...r.filter((([l,f])=>31&f[0])).map((([l,f])=>{var u;const a=f[1]||l;return c.set(a,l),512&f[0]&&((u=t.C)==null||u.push([l,a])),a}))]))}}return e},Rn=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.W=t[3],o.F=Et(e.F),o.P=e.P,o.U=e.U,o.C=[];const n=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((s,r)=>{const c={i:0,$hostElement$:s,o:r,l:new Map,B:new Map};c.H=new Promise((f=>c.L=f)),s["s-p"]=[],s["s-rc"]=[];const l=c;s.__stencil__getHostRef=()=>l,512&r.i&&sn(s,c)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const s=W(this);if(!s)return;$t(this,s,o.W),this.__hasHostListenerAttached=!0}(s=>{if(!(1&N.i)){const r=W(s);if(!r)return;const c=r.o;if(1&r.i)$t(s,r,c.W),r?.D||r?.H&&r.H.then((()=>{}));else{r.i|=1,12&c.i&&(l=>{if(!O.document)return;const f=l["s-cr"]=O.document.createComment("");f["s-cn"]=!0,_(l,f,l.firstChild)})(s);{let l=s;for(;l=l.parentNode||l.host;)if(l["s-p"]){_t(r,r.R=l);break}}c.t&&Object.entries(c.t).map((([l,[f]])=>{if(31&f&&Object.prototype.hasOwnProperty.call(s,l)){const u=s[l];delete s[l],s[l]=u}})),(async(l,f,u)=>{let a;try{if(!(32&f.i)&&(f.i|=32,a=l.constructor,customElements.whenDefined(l.localName).then((()=>f.i|=128)),a&&a.style)){let h;typeof a.style=="string"&&(h=a.style);const v=wt(u);Se.has(v)||((w,g,y)=>{let m=Se.get(w);je&&y?(m=m||new CSSStyleSheet,typeof m=="string"?m=g:m.replaceSync(g)):m=g,Se.set(w,m)})(v,h,!!(1&u.i))}const d=f.R,p=()=>Ge(f,!0);d&&d["s-rc"]?d["s-rc"].push(p):p()}catch(d){K(d,l),f.A&&(f.A(),f.A=void 0),f.L&&f.L(l)}})(s,r,c)}}})(this),n&&n.call(this)},disconnectedCallback(){(async s=>{if(!(1&N.i)){const r=W(s);r?.V&&(r.V.map((c=>c())),r.V=void 0)}B.has(s)&&B.delete(s),s.shadowRoot&&B.has(s.shadowRoot)&&B.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 ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else fn.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),An(e,o,3)}catch(n){return K(n),e}},Pn=(e,t)=>t,$t=(e,t,o)=>{o&&O.document&&o.map((([n,i,s])=>{const r=kn(O.document,e,n),c=Tn(t,s),l=_n(n);N.ael(r,i,c,l),(t.V=t.V||[]).push((()=>N.rel(r,i,c,l)))}))},Tn=(e,t)=>o=>{try{e.$hostElement$[t](o)}catch(n){K(n,e.$hostElement$)}},kn=(e,t,o)=>8&o?O:t,_n=e=>ln?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Ro(e){return e}const re=Math.min,Z=Math.max,Te=Math.round,ke=Math.floor,M=e=>({x:e,y:e}),Ln={left:"right",right:"left",bottom:"top",top:"bottom"};function Ze(e,t,o){return Z(e,re(t,o))}function ge(e,t){return typeof e=="function"?e(t):e}function J(e){return e.split("-")[0]}function ye(e){return e.split("-")[1]}function Dt(e){return e==="x"?"y":"x"}function Je(e){return e==="y"?"height":"width"}function U(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Qe(e){return Dt(U(e))}function Fn(e,t,o){o===void 0&&(o=!1);const n=ye(e),i=Qe(e),s=Je(i);let r=i==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(r=_e(r)),[r,_e(r)]}function $n(e){const t=_e(e);return[et(e),t,et(t)]}function et(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Mt=["left","right"],jt=["right","left"],Dn=["top","bottom"],Mn=["bottom","top"];function jn(e,t,o){switch(e){case"top":case"bottom":return o?t?jt:Mt:t?Mt:jt;case"left":case"right":return t?Dn:Mn;default:return[]}}function Wn(e,t,o,n){const i=ye(e);let s=jn(J(e),o==="start",n);return i&&(s=s.map(r=>r+"-"+i),t&&(s=s.concat(s.map(et)))),s}function _e(e){const t=J(e);return Ln[t]+e.slice(t.length)}function Vn(e){return{top:0,right:0,bottom:0,left:0,...e}}function Wt(e){return typeof e!="number"?Vn(e):{top:e,right:e,bottom:e,left:e}}function Le(e){const{x:t,y:o,width:n,height:i}=e;return{width:n,height:i,top:o,left:t,right:t+n,bottom:o+i,x:t,y:o}}function Vt(e,t,o){let{reference:n,floating:i}=e;const s=U(t),r=Qe(t),c=Je(r),l=J(t),f=s==="y",u=n.x+n.width/2-i.width/2,a=n.y+n.height/2-i.height/2,d=n[c]/2-i[c]/2;let p;switch(l){case"top":p={x:u,y:n.y-i.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:a};break;case"left":p={x:n.x-i.width,y:a};break;default:p={x:n.x,y:n.y}}switch(ye(t)){case"start":p[r]-=d*(o&&f?-1:1);break;case"end":p[r]+=d*(o&&f?-1:1);break}return p}async function In(e,t){var o;t===void 0&&(t={});const{x:n,y:i,platform:s,rects:r,elements:c,strategy:l}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:a="floating",altBoundary:d=!1,padding:p=0}=ge(t,e),h=Wt(p),w=c[d?a==="floating"?"reference":"floating":a],g=Le(await s.getClippingRect({element:(o=await(s.isElement==null?void 0:s.isElement(w)))==null||o?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:f,rootBoundary:u,strategy:l})),y=a==="floating"?{x:n,y:i,width:r.floating.width,height:r.floating.height}:r.reference,m=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),E=await(s.isElement==null?void 0:s.isElement(m))?await(s.getScale==null?void 0:s.getScale(m))||{x:1,y:1}:{x:1,y:1},b=Le(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:m,strategy:l}):y);return{top:(g.top-b.top+h.top)/E.y,bottom:(b.bottom-g.bottom+h.bottom)/E.y,left:(g.left-b.left+h.left)/E.x,right:(b.right-g.right+h.right)/E.x}}const Hn=50,Bn=async(e,t,o)=>{const{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:r}=o,c=r.detectOverflow?r:{...r,detectOverflow:In},l=await(r.isRTL==null?void 0:r.isRTL(t));let f=await r.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:a}=Vt(f,n,l),d=n,p=0;const h={};for(let v=0;v<s.length;v++){const w=s[v];if(!w)continue;const{name:g,fn:y}=w,{x:m,y:E,data:b,reset:x}=await y({x:u,y:a,initialPlacement:n,placement:d,strategy:i,middlewareData:h,rects:f,platform:c,elements:{reference:e,floating:t}});u=m??u,a=E??a,h[g]={...h[g],...b},x&&p<Hn&&(p++,typeof x=="object"&&(x.placement&&(d=x.placement),x.rects&&(f=x.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:a}=Vt(f,d,l)),v=-1)}return{x:u,y:a,placement:d,strategy:i,middlewareData:h}},zn=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:n,placement:i,rects:s,platform:r,elements:c,middlewareData:l}=t,{element:f,padding:u=0}=ge(e,t)||{};if(f==null)return{};const a=Wt(u),d={x:o,y:n},p=Qe(i),h=Je(p),v=await r.getDimensions(f),w=p==="y",g=w?"top":"left",y=w?"bottom":"right",m=w?"clientHeight":"clientWidth",E=s.reference[h]+s.reference[p]-d[p]-s.floating[h],b=d[p]-s.reference[p],x=await(r.getOffsetParent==null?void 0:r.getOffsetParent(f));let S=x?x[m]:0;(!S||!await(r.isElement==null?void 0:r.isElement(x)))&&(S=c.floating[m]||s.floating[h]);const C=E/2-b/2,A=S/2-v[h]/2-1,k=re(a[g],A),Ee=re(a[y],A),ne=k,xe=S-v[h]-Ee,R=S/2-v[h]/2+C,oe=Ze(ne,R,xe),H=!l.arrow&&ye(i)!=null&&R!==oe&&s.reference[h]/2-(R<ne?k:Ee)-v[h]/2<0,$=H?R<ne?R-ne:R-xe:0;return{[p]:d[p]+$,data:{[p]:oe,centerOffset:R-oe-$,...H&&{alignmentOffset:$}},reset:H}}}),Un=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,n;const{placement:i,middlewareData:s,rects:r,initialPlacement:c,platform:l,elements:f}=t,{mainAxis:u=!0,crossAxis:a=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...w}=ge(e,t);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const g=J(i),y=U(c),m=J(c)===c,E=await(l.isRTL==null?void 0:l.isRTL(f.floating)),b=d||(m||!v?[_e(c)]:$n(c)),x=h!=="none";!d&&x&&b.push(...Wn(c,v,h,E));const S=[c,...b],C=await l.detectOverflow(t,w),A=[];let k=((n=s.flip)==null?void 0:n.overflows)||[];if(u&&A.push(C[g]),a){const R=Fn(i,r,E);A.push(C[R[0]],C[R[1]])}if(k=[...k,{placement:i,overflows:A}],!A.every(R=>R<=0)){var Ee,ne;const R=(((Ee=s.flip)==null?void 0:Ee.index)||0)+1,oe=S[R];if(oe&&(!(a==="alignment"?y!==U(oe):!1)||k.every(D=>U(D.placement)===y?D.overflows[0]>0:!0)))return{data:{index:R,overflows:k},reset:{placement:oe}};let H=(ne=k.filter($=>$.overflows[0]<=0).sort(($,D)=>$.overflows[1]-D.overflows[1])[0])==null?void 0:ne.placement;if(!H)switch(p){case"bestFit":{var xe;const $=(xe=k.filter(D=>{if(x){const X=U(D.placement);return X===y||X==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(X=>X>0).reduce((X,Ao)=>X+Ao,0)]).sort((D,X)=>D[1]-X[1])[0])==null?void 0:xe[0];$&&(H=$);break}case"initialPlacement":H=c;break}if(i!==H)return{reset:{placement:H}}}return{}}}},qn=new Set(["left","top"]);async function Xn(e,t){const{placement:o,platform:n,elements:i}=e,s=await(n.isRTL==null?void 0:n.isRTL(i.floating)),r=J(o),c=ye(o),l=U(o)==="y",f=qn.has(r)?-1:1,u=s&&l?-1:1,a=ge(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:h}=typeof a=="number"?{mainAxis:a,crossAxis:0,alignmentAxis:null}:{mainAxis:a.mainAxis||0,crossAxis:a.crossAxis||0,alignmentAxis:a.alignmentAxis};return c&&typeof h=="number"&&(p=c==="end"?h*-1:h),l?{x:p*u,y:d*f}:{x:d*f,y:p*u}}const Yn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,n;const{x:i,y:s,placement:r,middlewareData:c}=t,l=await Xn(t,e);return r===((o=c.offset)==null?void 0:o.placement)&&(n=c.arrow)!=null&&n.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:r}}}}},Kn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:n,placement:i,platform:s}=t,{mainAxis:r=!0,crossAxis:c=!1,limiter:l={fn:g=>{let{x:y,y:m}=g;return{x:y,y:m}}},...f}=ge(e,t),u={x:o,y:n},a=await s.detectOverflow(t,f),d=U(J(i)),p=Dt(d);let h=u[p],v=u[d];if(r){const g=p==="y"?"top":"left",y=p==="y"?"bottom":"right",m=h+a[g],E=h-a[y];h=Ze(m,h,E)}if(c){const g=d==="y"?"top":"left",y=d==="y"?"bottom":"right",m=v+a[g],E=v-a[y];v=Ze(m,v,E)}const w=l.fn({...t,[p]:h,[d]:v});return{...w,data:{x:w.x-o,y:w.y-n,enabled:{[p]:r,[d]:c}}}}}};function Fe(){return typeof window<"u"}function le(e){return It(e)?(e.nodeName||"").toLowerCase():"#document"}function T(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function j(e){var t;return(t=(It(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function It(e){return Fe()?e instanceof Node||e instanceof T(e).Node:!1}function L(e){return Fe()?e instanceof Element||e instanceof T(e).Element:!1}function I(e){return Fe()?e instanceof HTMLElement||e instanceof T(e).HTMLElement:!1}function Ht(e){return!Fe()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof T(e).ShadowRoot}function ve(e){const{overflow:t,overflowX:o,overflowY:n,display:i}=F(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&i!=="inline"&&i!=="contents"}function Gn(e){return/^(table|td|th)$/.test(le(e))}function $e(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Zn=/transform|translate|scale|rotate|perspective|filter/,Jn=/paint|layout|strict|content/,Q=e=>!!e&&e!=="none";let tt;function nt(e){const t=L(e)?F(e):e;return Q(t.transform)||Q(t.translate)||Q(t.scale)||Q(t.rotate)||Q(t.perspective)||!ot()&&(Q(t.backdropFilter)||Q(t.filter))||Zn.test(t.willChange||"")||Jn.test(t.contain||"")}function Qn(e){let t=q(e);for(;I(t)&&!ce(t);){if(nt(t))return t;if($e(t))return null;t=q(t)}return null}function ot(){return tt==null&&(tt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),tt}function ce(e){return/^(html|body|#document)$/.test(le(e))}function F(e){return T(e).getComputedStyle(e)}function De(e){return L(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function q(e){if(le(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ht(e)&&e.host||j(e);return Ht(t)?t.host:t}function Bt(e){const t=q(e);return ce(t)?e.ownerDocument?e.ownerDocument.body:e.body:I(t)&&ve(t)?t:Bt(t)}function we(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);const i=Bt(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),r=T(i);if(s){const c=it(r);return t.concat(r,r.visualViewport||[],ve(i)?i:[],c&&o?we(c):[])}else return t.concat(i,we(i,[],o))}function it(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function zt(e){const t=F(e);let o=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=I(e),s=i?e.offsetWidth:o,r=i?e.offsetHeight:n,c=Te(o)!==s||Te(n)!==r;return c&&(o=s,n=r),{width:o,height:n,$:c}}function st(e){return L(e)?e:e.contextElement}function ae(e){const t=st(e);if(!I(t))return M(1);const o=t.getBoundingClientRect(),{width:n,height:i,$:s}=zt(t);let r=(s?Te(o.width):o.width)/n,c=(s?Te(o.height):o.height)/i;return(!r||!Number.isFinite(r))&&(r=1),(!c||!Number.isFinite(c))&&(c=1),{x:r,y:c}}const eo=M(0);function Ut(e){const t=T(e);return!ot()||!t.visualViewport?eo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function to(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==T(e)?!1:t}function ee(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);const i=e.getBoundingClientRect(),s=st(e);let r=M(1);t&&(n?L(n)&&(r=ae(n)):r=ae(e));const c=to(s,o,n)?Ut(s):M(0);let l=(i.left+c.x)/r.x,f=(i.top+c.y)/r.y,u=i.width/r.x,a=i.height/r.y;if(s){const d=T(s),p=n&&L(n)?T(n):n;let h=d,v=it(h);for(;v&&n&&p!==h;){const w=ae(v),g=v.getBoundingClientRect(),y=F(v),m=g.left+(v.clientLeft+parseFloat(y.paddingLeft))*w.x,E=g.top+(v.clientTop+parseFloat(y.paddingTop))*w.y;l*=w.x,f*=w.y,u*=w.x,a*=w.y,l+=m,f+=E,h=T(v),v=it(h)}}return Le({width:u,height:a,x:l,y:f})}function Me(e,t){const o=De(e).scrollLeft;return t?t.left+o:ee(j(e)).left+o}function qt(e,t){const o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-Me(e,o),i=o.top+t.scrollTop;return{x:n,y:i}}function no(e){let{elements:t,rect:o,offsetParent:n,strategy:i}=e;const s=i==="fixed",r=j(n),c=t?$e(t.floating):!1;if(n===r||c&&s)return o;let l={scrollLeft:0,scrollTop:0},f=M(1);const u=M(0),a=I(n);if((a||!a&&!s)&&((le(n)!=="body"||ve(r))&&(l=De(n)),a)){const p=ee(n);f=ae(n),u.x=p.x+n.clientLeft,u.y=p.y+n.clientTop}const d=r&&!a&&!s?qt(r,l):M(0);return{width:o.width*f.x,height:o.height*f.y,x:o.x*f.x-l.scrollLeft*f.x+u.x+d.x,y:o.y*f.y-l.scrollTop*f.y+u.y+d.y}}function oo(e){return Array.from(e.getClientRects())}function io(e){const t=j(e),o=De(e),n=e.ownerDocument.body,i=Z(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=Z(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let r=-o.scrollLeft+Me(e);const c=-o.scrollTop;return F(n).direction==="rtl"&&(r+=Z(t.clientWidth,n.clientWidth)-i),{width:i,height:s,x:r,y:c}}const Xt=25;function so(e,t){const o=T(e),n=j(e),i=o.visualViewport;let s=n.clientWidth,r=n.clientHeight,c=0,l=0;if(i){s=i.width,r=i.height;const u=ot();(!u||u&&t==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}const f=Me(n);if(f<=0){const u=n.ownerDocument,a=u.body,d=getComputedStyle(a),p=u.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,h=Math.abs(n.clientWidth-a.clientWidth-p);h<=Xt&&(s-=h)}else f<=Xt&&(s+=f);return{width:s,height:r,x:c,y:l}}function ro(e,t){const o=ee(e,!0,t==="fixed"),n=o.top+e.clientTop,i=o.left+e.clientLeft,s=I(e)?ae(e):M(1),r=e.clientWidth*s.x,c=e.clientHeight*s.y,l=i*s.x,f=n*s.y;return{width:r,height:c,x:l,y:f}}function Yt(e,t,o){let n;if(t==="viewport")n=so(e,o);else if(t==="document")n=io(j(e));else if(L(t))n=ro(t,o);else{const i=Ut(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Le(n)}function Kt(e,t){const o=q(e);return o===t||!L(o)||ce(o)?!1:F(o).position==="fixed"||Kt(o,t)}function lo(e,t){const o=t.get(e);if(o)return o;let n=we(e,[],!1).filter(c=>L(c)&&le(c)!=="body"),i=null;const s=F(e).position==="fixed";let r=s?q(e):e;for(;L(r)&&!ce(r);){const c=F(r),l=nt(r);!l&&c.position==="fixed"&&(i=null),(s?!l&&!i:!l&&c.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||ve(r)&&!l&&Kt(e,r))?n=n.filter(u=>u!==r):i=c,r=q(r)}return t.set(e,n),n}function co(e){let{element:t,boundary:o,rootBoundary:n,strategy:i}=e;const r=[...o==="clippingAncestors"?$e(t)?[]:lo(t,this._c):[].concat(o),n],c=Yt(t,r[0],i);let l=c.top,f=c.right,u=c.bottom,a=c.left;for(let d=1;d<r.length;d++){const p=Yt(t,r[d],i);l=Z(p.top,l),f=re(p.right,f),u=re(p.bottom,u),a=Z(p.left,a)}return{width:f-a,height:u-l,x:a,y:l}}function ao(e){const{width:t,height:o}=zt(e);return{width:t,height:o}}function fo(e,t,o){const n=I(t),i=j(t),s=o==="fixed",r=ee(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const l=M(0);function f(){l.x=Me(i)}if(n||!n&&!s)if((le(t)!=="body"||ve(i))&&(c=De(t)),n){const p=ee(t,!0,s,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else i&&f();s&&!n&&i&&f();const u=i&&!n&&!s?qt(i,c):M(0),a=r.left+c.scrollLeft-l.x-u.x,d=r.top+c.scrollTop-l.y-u.y;return{x:a,y:d,width:r.width,height:r.height}}function rt(e){return F(e).position==="static"}function Gt(e,t){if(!I(e)||F(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return j(e)===o&&(o=o.ownerDocument.body),o}function Zt(e,t){const o=T(e);if($e(e))return o;if(!I(e)){let i=q(e);for(;i&&!ce(i);){if(L(i)&&!rt(i))return i;i=q(i)}return o}let n=Gt(e,t);for(;n&&Gn(n)&&rt(n);)n=Gt(n,t);return n&&ce(n)&&rt(n)&&!nt(n)?o:n||Qn(e)||o}const uo=async function(e){const t=this.getOffsetParent||Zt,o=this.getDimensions,n=await o(e.floating);return{reference:fo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function ho(e){return F(e).direction==="rtl"}const lt={convertOffsetParentRelativeRectToViewportRelativeRect:no,getDocumentElement:j,getClippingRect:co,getOffsetParent:Zt,getElementRects:uo,getClientRects:oo,getDimensions:ao,getScale:ae,isElement:L,isRTL:ho};function Jt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function po(e,t){let o=null,n;const i=j(e);function s(){var c;clearTimeout(n),(c=o)==null||c.disconnect(),o=null}function r(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),s();const f=e.getBoundingClientRect(),{left:u,top:a,width:d,height:p}=f;if(c||t(),!d||!p)return;const h=ke(a),v=ke(i.clientWidth-(u+d)),w=ke(i.clientHeight-(a+p)),g=ke(u),m={rootMargin:-h+"px "+-v+"px "+-w+"px "+-g+"px",threshold:Z(0,re(1,l))||1};let E=!0;function b(x){const S=x[0].intersectionRatio;if(S!==l){if(!E)return r();S?r(!1,S):n=setTimeout(()=>{r(!1,1e-7)},1e3)}S===1&&!Jt(f,e.getBoundingClientRect())&&r(),E=!1}try{o=new IntersectionObserver(b,{...m,root:i.ownerDocument})}catch{o=new IntersectionObserver(b,m)}o.observe(e)}return r(!0),s}function mo(e,t,o,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,f=st(e),u=i||s?[...f?we(f):[],...t?we(t):[]]:[];u.forEach(g=>{i&&g.addEventListener("scroll",o,{passive:!0}),s&&g.addEventListener("resize",o)});const a=f&&c?po(f,o):null;let d=-1,p=null;r&&(p=new ResizeObserver(g=>{let[y]=g;y&&y.target===f&&p&&t&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var m;(m=p)==null||m.observe(t)})),o()}),f&&!l&&p.observe(f),t&&p.observe(t));let h,v=l?ee(e):null;l&&w();function w(){const g=ee(e);v&&!Jt(v,g)&&o(),v=g,h=requestAnimationFrame(w)}return o(),()=>{var g;u.forEach(y=>{i&&y.removeEventListener("scroll",o),s&&y.removeEventListener("resize",o)}),a?.(),(g=p)==null||g.disconnect(),p=null,l&&cancelAnimationFrame(h)}}const go=Yn,yo=Kn,vo=Un,wo=zn,bo=(e,t,o)=>{const n=new Map,i={platform:lt,...o},s={...i.platform,_c:n};return Bn(e,t,{...i,platform:s})};var be;(function(e){e.TOOLTIP="tooltip",e.POPOVER="popover"})(be||(be={}));function Qt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}const Eo=/transform|translate|scale|rotate|perspective|filter/,xo=/paint|layout|strict|content/,te=e=>!!e&&e!=="none";let ct;function So(e){const t=(o=e,typeof window<"u"&&(o instanceof Element||o instanceof Qt(o).Element)?Qt(n=e).getComputedStyle(n):e);var o,n;return te(t.transform)||te(t.translate)||te(t.scale)||te(t.rotate)||te(t.perspective)||(ct==null&&(ct=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),!ct&&(te(t.backdropFilter)||te(t.filter)))||Eo.test(t.willChange||"")||xo.test(t.contain||"")}function Oo(e){return(function(t){for(let o=t;o;o=at(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=at(t);o;o=at(o)){if(!(o instanceof Element))continue;const n=getComputedStyle(o);if(n.display!=="contents"&&(n.position!=="static"||So(n)||o.tagName==="BODY"))return o}return null})(e)}function at(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}const fe=class fe{constructor(t,o){this.el=t,this.config=o,this.offset=10,this.timeDelayBeforeFadingOut=50,this.popoverMainAxisEnabled=!0,this.currentPlacement=o.placement,this.cleanup=null}setCommonTimingConfig(){this.timeBeforeElementShows=this.config.showWithoutDelay?50:500,this.timeOfAnimation=this.config.showWithoutDelay?50:250}initialize(){this.setCommonTimingConfig(),this.floatingElement=this.el.shadowRoot?.querySelector(this.config.floatingElementSelector),this.floatingElement&&this.applyViewportMaxWidth(),this.arrowEl=this.config.showArrow!==!1&&this.config.arrowElementSelector?this.el.shadowRoot?.querySelector(this.config.arrowElementSelector):null,this.anchorElement=this.config.htmlFor?.length>0?document.getElementById(this.config.htmlFor):this.config.getAnchorElementFromSlot(this.el.shadowRoot),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.setCommonTimingConfig(),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=mo(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=[go(this.offset)],o=vo({mainAxis:!0,crossAxis:!this.config.lockToMainAxis&&"alignment",fallbackAxisSideDirection:"end",padding:this.offset}),n=this.config.elementType===be.POPOVER,i=yo({padding:this.offset,mainAxis:this.config.elementType===be.TOOLTIP||n&&this.popoverMainAxisEnabled,crossAxis:!1});this.config.placement.includes("-")?t.push(o,i):t.push(i,o),this.config.showArrow!==!1&&this.arrowEl&&t.push(wo({element:this.arrowEl,padding:this.offset})),bo(this.anchorElement,this.floatingElement,{placement:this.config.placement,strategy:"fixed",middleware:t,platform:{...lt,getOffsetParent:s=>lt.getOffsetParent(s,Oo)}}).then((({x:s,y:r,middlewareData:c,placement:l})=>{if(n){const d=l.startsWith("left")||l.startsWith("right"),p=l.startsWith("top")||l.startsWith("bottom"),h=this.isAnchorInViewport(),v=!!p||(d?h:this.popoverMainAxisEnabled);if(v!==this.popoverMainAxisEnabled)return this.popoverMainAxisEnabled=v,void this.updatePosition()}this.currentPlacement=l,Object.assign(this.floatingElement.style,{left:`${s}px`,top:`${r}px`,position:"fixed",transition:`opacity ${this.timeOfAnimation}ms ease`});const f=l.split("-")[0]??"bottom",u={top:"bottom",right:"left",bottom:"top",left:"right"}[f],{arrowZIndex:a}=this.normalizeFloatingElementStacking();if(c.arrow&&this.arrowEl){const d=this.arrowEl.offsetWidth,{x:p,y:h}=c.arrow;this.arrowEl.style.borderRadius=`${["left","right"].includes(f)?"0 ":""}var(--gidsFloatingElement-tip-border-radius, 2px)${["top","bottom"].includes(f)?" 0":""}`,Object.assign(this.arrowEl.style,{left:p!==null?`${p}px`:"",top:h!==null?`${h}px`:"",right:"",bottom:"",[u]:-d/2+"px",transform:"rotate(45deg)",zIndex:`${a}`,background:"var(--gidsFloatingElement-background)"})}}))}applyViewportMaxWidth(){const t=`calc(100vw - ${2*this.offset}px)`;this.floatingElement?.style.maxWidth!==t&&(this.floatingElement.style.maxWidth=t)}normalizeFloatingElementStacking(){const t=this.floatingElement.style.zIndex||(window.getComputedStyle?.(this.floatingElement).zIndex??""),o=Number.parseInt(t,10),n=Number.isNaN(o)?-1:o-1,i=Number.isNaN(o)?n+1:o;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 r=s.style.zIndex||(window.getComputedStyle?.(s).zIndex??""),c=Number.parseInt(r,10),l=window.getComputedStyle?.(s).position??"";(r===""||r==="auto"||Number.isNaN(c)||c<i)&&(s.style.zIndex=`${i}`,l!==""&&l!=="static"||(s.style.position="relative"))})),{contentZIndex:i,arrowZIndex:n}}hideFloatingElement(){this.floatingElement.classList.remove(this.config.visibilityClass),fe.currentFloatingElements.delete(this.config.elementType)}showFloatingElement(){const t=fe.currentFloatingElements.get(this.config.elementType);t&&t.hideFloatingElement(),this.floatingElement.classList.add(this.config.visibilityClass),fe.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(),o=window.innerHeight||document.documentElement?.clientHeight||0,n=window.innerWidth||document.documentElement?.clientWidth||0,i=t.height/2+2*this.offset;return t.bottom>=i&&t.top<=o-i&&t.right>=0&&t.left<=n}};fe.currentFloatingElements=new Map;let ft=fe;const en=Rn(class extends ht{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.placement="bottom",this.previouslyFocusedElement=null,this.focusableElements=[],this.handleToggleEvent=t=>{t.stopPropagation();const o=this.floatingElementManager.isVisible();this.floatingElementManager.toggle(),!o&&this.floatingElementManager.isVisible()?this.onPopoverShow():o&&!this.floatingElementManager.isVisible()&&this.onPopoverHide()},this.handleDocumentClick=t=>{this.floatingElementManager.isVisible()&&!this._el.contains(t.target)&&(this.floatingElementManager.hide(),this.onPopoverHide())},this.handleKeyDown=t=>{if(this.floatingElementManager.isVisible())return t.key==="Escape"?(t.preventDefault(),this.floatingElementManager.hide(),void this.onPopoverHide()):void(t.key==="Tab"&&this.trapFocus(t))}}componentDidLoad(){this.floatingElementManager=new ft(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:!0,floatingElementSelector:"#popover",arrowElementSelector:"#arrow",visibilityClass:"gids-popover--visible",elementType:be.POPOVER,getAnchorElementFromSlot:e=>e.querySelector('slot[name="anchor"]')?.assignedElements()[0]||null}),this.floatingElementManager.initialize(),this.setupEventListeners()}setupEventListeners(){const e=this.floatingElementManager.getAnchorElement();e&&(e.addEventListener("click",this.handleToggleEvent),document.addEventListener("click",this.handleDocumentClick),document.addEventListener("keydown",this.handleKeyDown))}onPopoverShow(){this.previouslyFocusedElement=document.activeElement,this.updateFocusableElements(),setTimeout((()=>{this.focusableElements.length>0&&this.focusableElements[0]&&this.focusableElements[0].focus()}),50)}onPopoverHide(){this.previouslyFocusedElement&&(this.previouslyFocusedElement.focus(),this.previouslyFocusedElement=null)}updateFocusableElements(){const e=this._el.shadowRoot?.querySelector("#popover");if(!e)return;const t=[],o=nn(e);t.push(...o);const n=this._el.shadowRoot?.querySelector("slot:not([name])");n&&n.assignedElements({flatten:!0}).forEach((i=>{const s=nn(i);t.push(...s)})),this.focusableElements=t.sort(((i,s)=>{const r=i.compareDocumentPosition(s),c=!!(r&Node.DOCUMENT_POSITION_FOLLOWING),l=!!(r&Node.DOCUMENT_POSITION_PRECEDING);return c?-1:l?1:0}))}trapFocus(e){if(this.focusableElements.length===0)return;const t=this.focusableElements[0],o=this.focusableElements[this.focusableElements.length-1];let n=document.activeElement;if(n===this._el){const s=this._el.shadowRoot?.activeElement;s!==null&&(n=s)}const i=this.focusableElements.indexOf(n)!==-1;e.shiftKey?n!==t&&i||(e.preventDefault(),o&&o.focus()):n!==o&&i||(e.preventDefault(),t&&t.focus())}placementChanged(e){this.floatingElementManager?.updateConfig({placement:e}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}htmlForChanged(e){this.floatingElementManager?.updateConfig({htmlFor:e}),this.cleanupEventListeners(),this.floatingElementManager?.initialize(),this.setupEventListeners()}cleanupEventListeners(){const e=this.floatingElementManager?.getAnchorElement();e&&e.removeEventListener("click",this.handleToggleEvent),document.removeEventListener("click",this.handleDocumentClick),document.removeEventListener("keydown",this.handleKeyDown)}render(){return z(Pn,{key:"d46aad4680cea0578107034ca4945659910c6dd8"},z("slot",{key:"71b5b313244ca9be78ca0e76e0056a8d6f201f89",name:"anchor"}),z("div",{key:"9be3b9f604bf8a15795ff2f6cbbc439936734795",id:"popover",part:"popover",role:"dialog","aria-modal":"true",tabindex:"-1"},z("span",{key:"48f4b97c8c0f2df0bea15c067ebf7cc28f98e98c",id:"arrow"}),z("div",{key:"5547088b9b186ab816e4d6a9e9a3c6bfdde41fd2"},z("slot",{key:"460c256bddf41d061352917b129501fdd3f383a2"}))))}disconnectedCallback(){this.cleanupEventListeners(),this.floatingElementManager?.destroy()}get _el(){return this}static get watchers(){return{placement:[{placementChanged:0}],htmlFor:[{htmlForChanged:0}]}}static get style(){return"gids-popover{--gidsPopover-background:var(--gids-elevation-surface-overlay-default);--gidsPopover-text-color:var(--gids-color-text-default);--gidsPopover-padding:var(--gids-padding-vertical-edge-to-element-200) var(--gids-padding-horizontal-edge-to-element-300);--gidsPopover-border-radius:var(--gids-border-radius-lg);--gidsPopover-tip-border-radius:2px;--gidsPopover-tip-size:12px;--gidsPopover-shadow:var(--gids-elevation-shadow-overlay);--gidsFloatingElement-background:var(--gidsPopover-background);--gidsFloatingElement-tip-border-radius:var(--gidsPopover-tip-border-radius)}[part=popover]{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;background-color:var(--gidsPopover-background);color:var(--gidsPopover-text-color);border-radius:var(--gidsPopover-border-radius);box-shadow:var(--gidsPopover-shadow);z-index:1000;opacity:0;pointer-events:none;outline:none}[part=popover]:focus{outline:none}[part=popover].gids-popover--visible{pointer-events:initial;opacity:1}[part=popover] span#arrow{position:absolute;height:var(--gidsPopover-tip-size);width:var(--gidsPopover-tip-size);background-color:var(--gidsPopover-background)}"}},[257,"gids-popover",{htmlFor:[513,"for"],placement:[513]},void 0,{placement:[{placementChanged:0}],htmlFor:[{htmlForChanged:0}]}]),tn=e=>{if(!(e instanceof ht)||e.tabIndex===-1||e.hasAttribute("disabled"))return!1;const t=getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden"||e.hidden)return!1;try{const o=e.tabIndex;e.tabIndex=-1,e.focus();const n=document.activeElement===e;return e.tabIndex=o,n&&e.blur(),n}catch{return!1}},nn=e=>{const t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>tn(i)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),o=[];tn(e)&&o.push(e);let n=t.nextNode();for(;n!==null;)o.push(n),n=t.nextNode();return o};function on(){typeof customElements<"u"&&["gids-popover"].forEach((e=>{e==="gids-popover"&&(customElements.get(e)||customElements.define(e,en))}))}on();const Co=en,No=on;Y.GidsPopover=Co,Y.defineCustomElement=No,Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
(function(A,M){typeof exports=="object"&&typeof module<"u"?M(exports):typeof define=="function"&&define.amd?define(["exports"],M):(A=typeof globalThis<"u"?globalThis:A||self,M(A.gidsCoreWebGidsProgressCircle={}))})(this,(function(A){"use strict";function M(e,t,r){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const i=Object.getOwnPropertyDescriptor(e,t);if(i&&(!r||i.get))return i;e=Object.getPrototypeOf(e)}}var V,Ue=(e,t)=>{var r;Object.entries((r=t.o.t)!=null?r:{}).map((([s,[i]])=>{if(31&i||32&i){const l=e[s],n=M(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);n&&Object.defineProperty(e,s,{get(){return n.get.call(this)},set(a){n.set.call(this,a)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):l!==void 0&&(e[s]=l)}}))},z=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},fe=(e,t)=>t in e,P=(e,t)=>(0,console.error)(e,t),I=new Map,ue="http://www.w3.org/1999/xlink",qe=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],S=typeof window<"u"?window:{},Xe=S.HTMLElement||class{},N={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,r,s)=>e.addEventListener(t,r,s),rel:(e,t,r,s)=>e.removeEventListener(t,r,s),ce:(e,t)=>new CustomEvent(e,t)},Ye=(()=>{var e;let t=!1;try{(e=S.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),ee=(()=>{try{return!!S.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),te=!!ee&&!!S.document&&Object.getOwnPropertyDescriptor(S.document.adoptedStyleSheets,"length").writable,se=!1,me=[],ye=[],Ze=(e,t)=>r=>{e.push(r),se||(se=!0,4&N.i?ie(re):N.raf(re))},_e=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(r){P(r)}e.length=0},re=()=>{_e(me),_e(ye),(se=me.length>0)&&N.raf(re)},ie=e=>Promise.resolve(void 0).then(e),Je=Ze(ye);function Ke(){const e=this.attachShadow({mode:"open"});V===void 0&&(V=null),V&&(te?e.adoptedStyleSheets.push(V):e.adoptedStyleSheets=[...e.adoptedStyleSheets,V])}var ve=e=>{const t=oe(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&le(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!Qe(s,F(s),!1).length)}));let r=0;for(r=0;r<t.length;r++){const s=t[r];s.nodeType===1&&oe(s,"childNodes").length&&ve(s)}};function le(e,t,r){let s,i=0,l=[];for(;i<e.length;i++){if(s=e[i],s["s-sr"]&&(!t||s["s-hn"]===t)&&(r===void 0||F(s)===r)&&(l.push(s),r!==void 0))return l;l=[...l,...le(s.childNodes,t,r)]}return l}var Qe=(e,t,r=!0)=>{const s=[];(r&&e["s-sr"]||!e["s-sr"])&&s.push(e);let i=e;for(;i=i.nextSibling;)F(i)!==t||!r&&i["s-sr"]||s.push(i);return s},be=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",F=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function oe(e,t){if("__"+t in e){const r=e["__"+t];return typeof r!="function"?r:r.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var ne,R,T=new WeakMap,xe=e=>"sc-"+e.p,ae=e=>(e=typeof e)=="object"||e==="function",_=(e,t,...r)=>{let s=null,i=null,l=null,n=!1,a=!1;const o=[],d=c=>{for(let g=0;g<c.length;g++)s=c[g],Array.isArray(s)?d(s):s!=null&&typeof s!="boolean"&&((n=typeof e!="function"&&!ae(s))&&(s=String(s)),n&&a?o[o.length-1].h+=s:o.push(n?U(null,s):s),a=n)};if(d(r),t){t.key&&(i=t.key),t.name&&(l=t.name);{const c=t.className||t.class;c&&(t.class=typeof c!="object"?c:Object.keys(c).filter((g=>c[g])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,o,tt);const p=U(e,null);return p.v=t,o.length>0&&(p.m=o),p.$=i,p.j=l,p},U=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),et={},tt={forEach:(e,t)=>e.map(Se).forEach(t),map:(e,t)=>e.map(Se).map(t).map(st)},Se=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),st=e=>{if(typeof e.vtag=="function"){const r={...e.vattrs};return e.vkey&&(r.key=e.vkey),e.vname&&(r.name=e.vname),_(e.vtag,r,...e.vchildren||[])}const t=U(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},we=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let r=!1;for(const i of t){if(r)break;for(const l of e[i])if(typeof l=="string"){r=!0;break}}if(!r)return e;const s={};for(const i of t)s[i]=e[i].map((l=>typeof l=="string"?{[l]:0}:l));return s},ke=(e,t,r)=>e==null||ae(e)?e:4&t?(r&&typeof e=="string"||e!=="false")&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,rt=(e,t,r)=>{const s=N.ce(t,r);return e.dispatchEvent(s),s},Ne=(e,t,r,s,i,l)=>{if(r===s)return;let n=fe(e,t),a=t.toLowerCase();if(t==="class"){const o=e.classList,d=Oe(r);let p=Oe(s);o.remove(...d.filter((c=>c&&!p.includes(c)))),o.add(...p.filter((c=>c&&!d.includes(c))))}else if(t==="style"){for(const o in r)s&&s[o]!=null||(o.includes("-")?e.style.removeProperty(o):e.style[o]="");for(const o in s)r&&s[o]===r[o]||(o.includes("-")?e.style.setProperty(o,s[o]):e.style[o]=s[o])}else if(t!=="key"){if(t==="ref")s&&ot(s,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const o=t.slice(5);let d;{const p=z(e);if(p&&p.o&&p.o.t){const c=p.o.t[o];c&&c[1]&&(d=c[1])}}return d||(d=o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(s==null||s===!1?s===!1&&e.getAttribute(d)!==""||e.removeAttribute(d):e.setAttribute(d,s===!0?"":s))}if(t[0]==="p"&&t.startsWith("prop:")){const o=t.slice(5);try{e[o]=s}catch{}return}{const o=ae(s);if((n||o&&s!==null)&&!i)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const p=s??"";t==="list"?n=!1:r!=null&&e[t]===p||(typeof e.__lookupSetter__(t)=="function"?e[t]=p:e.setAttribute(t,p))}}catch{}let d=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,d=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(d?e.removeAttributeNS(ue,t):e.removeAttribute(t)):(!n||4&l||i)&&!o&&e.nodeType===1&&(s=s===!0?"":s,d?e.setAttributeNS(ue,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):fe(S,a)?a.slice(2):a[2]+t.slice(3),r||s){const o=t.endsWith($e);t=t.replace(lt,""),r&&N.rel(e,t,r,o),s&&N.ael(e,t,s,o)}}},it=/\s/,Oe=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(it):[]),$e="Capture",lt=new RegExp($e+"$"),ce=(e,t,r)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,i=e&&e.v||{},l=t.v||{};for(const n of Ce(Object.keys(i)))n in l||Ne(s,n,i[n],void 0,r,t.i);for(const n of Ce(Object.keys(l)))Ne(s,n,i[n],l[n],r,t.i)};function Ce(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var B=!1,q=!1,X=!1,O=!1,de=[],pe=[],Y=(e,t,r)=>{var s;const i=t.m[r];let l,n,a,o=0;if(B||(X=!0,i.O==="slot"&&(i.i|=i.m?2:1)),i.h!=null)l=i.S=S.document.createTextNode(i.h);else if(1&i.i)l=i.S=S.document.createTextNode(""),ce(null,i,O);else{if(O||(O=i.O==="svg"),!S.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(l=i.S=S.document.createElementNS(O?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!B&&2&i.i?"slot-fb":i.O),O&&i.O==="foreignObject"&&(O=!1),ce(null,i,O),i.m){const d=i.O==="template"?l.content:l;for(o=0;o<i.m.length;++o)n=Y(e,i,o),n&&d.appendChild(n)}i.O==="svg"?O=!1:l.tagName==="foreignObject"&&(O=!0)}return l["s-hn"]=R,3&i.i&&(l["s-sr"]=!0,l["s-cr"]=ne,l["s-sn"]=i.j||"",l["s-rf"]=(s=i.v)==null?void 0:s.ref,(function(d){if(d.assignedElements||d.assignedNodes||!d["s-sr"])return;const p=c=>(function(g){const u=[],h=this["s-sn"];g?.flatten&&console.error(`
|
|
2
|
+
Flattening is not supported for Stencil non-shadow slots.
|
|
3
|
+
You can use \`.childNodes\` to nested slot fallback content.
|
|
4
|
+
If you have a particular use case, please open an issue on the Stencil repo.
|
|
5
|
+
`);const x=this["s-cr"].parentElement;return(x.__childNodes?x.childNodes:(b=>{const y=[];for(let m=0;m<b.length;m++){const f=b[m]["s-nr"]||void 0;f&&f.isConnected&&y.push(f)}return y})(x.childNodes)).forEach((b=>{h===F(b)&&u.push(b)})),c?u.filter((b=>b.nodeType===1)):u}).bind(d);d.assignedElements=p(!0),d.assignedNodes=p(!1)})(l),a=e&&e.m&&e.m[r],a&&a.O===i.O&&e.S&&je(e.S)),l},je=e=>{N.i|=1;const t=e.closest(R.toLowerCase());if(t!=null){const r=Array.from(t.__childNodes||t.childNodes).find((i=>i["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const i of r?s.reverse():s)i["s-sh"]!=null&&(j(t,i,r??null),i["s-sh"]=void 0,X=!0)}N.i&=-2},Z=(e,t)=>{N.i|=1;const r=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===R&&r.push(s)}for(let s=r.length-1;s>=0;s--){const i=r[s];i["s-hn"]!==R&&i["s-ol"]&&(j(G(i).parentNode,i,G(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,X=!0),t&&Z(i,t)}N.i&=-2},Ee=(e,t,r,s,i,l)=>{let n,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===R&&(a=a.shadowRoot),r.O==="template"&&(a=a.content);i<=l;++i)s[i]&&(n=Y(null,r,i),n&&(s[i].S=n,j(a,n,G(t))))},ze=(e,t,r)=>{for(let s=t;s<=r;++s){const i=e[s];if(i){const l=i.S;Te(i),l&&(q=!0,l["s-ol"]?l["s-ol"].remove():Z(l,!0),l.remove())}}},J=(e,t,r=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:r?(r&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),G=e=>e&&e["s-ol"]||e,D=(e,t,r=!1)=>{const s=t.S=e.S,i=e.m,l=t.m,n=t.O,a=t.h;let o;a==null?(O=n==="svg"||n!=="foreignObject"&&O,n!=="slot"||B||e.j!==t.j&&(t.S["s-sn"]=t.j||"",je(t.S.parentElement)),ce(e,t,O),i!==null&&l!==null?((d,p,c,g,u=!1)=>{let h,x,b=0,y=0,m=0,f=0,k=p.length-1,v=p[0],w=p[k],$=g.length-1,C=g[0],E=g[$];const Ie=c.O==="template"?d.content:d;for(;b<=k&&y<=$;)if(v==null)v=p[++b];else if(w==null)w=p[--k];else if(C==null)C=g[++y];else if(E==null)E=g[--$];else if(J(v,C,u))D(v,C,u),v=p[++b],C=g[++y];else if(J(w,E,u))D(w,E,u),w=p[--k],E=g[--$];else if(J(v,E,u))v.O!=="slot"&&E.O!=="slot"||Z(v.S.parentNode,!1),D(v,E,u),j(Ie,v.S,w.S.nextSibling),v=p[++b],E=g[--$];else if(J(w,C,u))v.O!=="slot"&&E.O!=="slot"||Z(w.S.parentNode,!1),D(w,C,u),j(Ie,w.S,v.S),w=p[--k],C=g[++y];else{for(m=-1,f=b;f<=k;++f)if(p[f]&&p[f].$!==null&&p[f].$===C.$){m=f;break}m>=0?(x=p[m],x.O!==C.O?h=Y(p&&p[y],c,m):(D(x,C,u),p[m]=void 0,h=x.S),C=g[++y]):(h=Y(p&&p[y],c,y),C=g[++y]),h&&j(G(v.S).parentNode,h,G(v.S))}b>k?Ee(d,g[$+1]==null?null:g[$+1].S,c,g,y,$):y>$&&ze(p,b,k)})(s,i,t,l,r):l!==null?(e.h!==null&&(s.textContent=""),Ee(s,null,t,l,0,l.length-1)):!r&&i!==null&&ze(i,0,i.length-1),O&&n==="svg"&&(O=!1)):(o=s["s-cr"])?o.parentNode.textContent=a:e.h!==a&&(s.data=a)},L=[],Le=e=>{let t,r,s;const i=e.__childNodes||e.childNodes;for(const l of i){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){r=t.parentNode.__childNodes||t.parentNode.childNodes;const n=l["s-sn"];for(s=r.length-1;s>=0;s--)if(t=r[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===l["s-hn"]||t["s-sh"]&&t["s-sh"]===l["s-hn"]))if(be(t,n)){let a=L.find((o=>o.k===t));q=!0,t["s-sn"]=t["s-sn"]||n,a?(a.k["s-sh"]=l["s-hn"],a.N=l):(t["s-sh"]=l["s-hn"],L.push({N:l,k:t})),t["s-sr"]&&L.map((o=>{be(o.k,t["s-sn"])&&(a=L.find((d=>d.k===t)),a&&!o.N&&(o.N=a.N))}))}else L.some((a=>a.k===t))||L.push({k:t})}l.nodeType===1&&Le(l)}},Te=e=>{e.v&&e.v.ref&&de.push((()=>e.v.ref(null))),e.m&&e.m.map(Te)},ot=(e,t)=>{pe.push((()=>e(t)))},j=(e,t,r,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,r);const{slotNode:i}=(function(l,n){var a;if(!(n=n||((a=l["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const o=l["s-sn"]=F(l)||"";return{slotNode:le(oe(n,"childNodes"),n.tagName,o)[0],slotName:o}})(t);return i&&!s&&i.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,r):e?.insertBefore(t,r)},nt=(e,t,r=!1)=>{var s,i,l,n,a;const o=e.$hostElement$,d=e.o,p=e.M||U(null,null);var c;const g=(c=t)&&c.O===et?t:_(null,null,t);if(R=o.tagName,d.C&&(g.v=g.v||{},d.C.forEach((([u,h])=>{g.v[h]=o[u]}))),r&&g.v)for(const u of Object.keys(g.v))o.hasAttribute(u)&&!["key","ref","style","class"].includes(u)&&(g.v[u]=o[u]);if(g.O=null,g.i|=4,e.M=g,g.S=p.S=o.shadowRoot||o,B=!(!(1&d.i)||128&d.i),ne=o["s-cr"],q=!1,D(p,g,r),N.i|=1,X){Le(g.S);for(const u of L){const h=u.k;if(!h["s-ol"]&&S.document){const x=S.document.createTextNode("");x["s-nr"]=h,j(h.parentNode,h["s-ol"]=x,h,r)}}for(const u of L){const h=u.k,x=u.N;if(h.nodeType===1&&r&&(h["s-ih"]=(s=h.hidden)!=null&&s),x){const b=x.parentNode;let y=x.nextSibling;if(y&&y.nodeType===1){let m=(i=h["s-ol"])==null?void 0:i.previousSibling;for(;m;){let f=(l=m["s-nr"])!=null?l:null;if(f&&f["s-sn"]===h["s-sn"]&&b===(f.__parentNode||f.parentNode)){for(f=f.nextSibling;f===h||f?.["s-sr"];)f=f?.nextSibling;if(!f||!f["s-nr"]){y=f;break}}m=m.previousSibling}}if((!y&&b!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==y)&&h!==y){if(j(b,h,y,r),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const m=S.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=h["s-hn"],m["s-sn"]=h["s-sn"],m["s-sh"]=h["s-sh"],m["s-sr"]=h["s-sr"],m["s-ol"]=h["s-ol"],m["s-ol"]["s-nr"]=m,j(h.parentNode,m,h,r),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(n=h["s-ih"])!=null&&n)}h&&typeof x["s-rf"]=="function"&&x["s-rf"](x)}else h.nodeType===1&&(h.hidden=!0)}}if(q&&ve(g.S),N.i&=-2,L.length=0,!B&&!(1&d.i)&&o["s-cr"]){const u=g.S.__childNodes||g.S.childNodes;for(const h of u)if(h["s-hn"]!==R&&!h["s-sh"]){if(r&&h["s-ih"]==null&&(h["s-ih"]=(a=h.hidden)!=null&&a),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const x=S.document.createComment("s-nt-"+h.nodeValue);x["s-sn"]=h["s-sn"],j(h.parentNode,x,h,r),h.parentNode.removeChild(h)}}}ne=void 0,de.forEach((u=>u())),de.length=0,pe.forEach((u=>u())),pe.length=0},Ae=(e,t)=>{if(t&&!e.A&&t["s-p"]){const r=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(r-1,1),s()})))}},ge=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Ae(e,e.R);const r=()=>at(e,t);if(!t)return Je(r);queueMicrotask((()=>{r()}))},at=(e,t)=>{const r=e.$hostElement$,s=r;if(!s)throw new Error(`Can't render component <${r.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=H(s,t?"componentWillLoad":"componentWillUpdate",void 0,r),i=Pe(i,(()=>H(s,"componentWillRender",void 0,r))),Pe(i,(()=>dt(e,s,t)))},Pe=(e,t)=>ct(e)?e.then(t).catch((r=>{console.error(r),t()})):t(),ct=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",dt=async(e,t,r)=>{var s;const i=e.$hostElement$,l=i["s-rc"];r&&(n=>{const a=n.o,o=n.$hostElement$,d=a.i,p=((c,g)=>{var u,h,x;const b=xe(g),y=I.get(b);if(!S.document)return b;if(c=c.nodeType===11?c:S.document,y)if(typeof y=="string"){let m,f=T.get(c=c.head||c);if(f||T.set(c,f=new Set),!f.has(b)){m=S.document.createElement("style"),m.textContent=y;const k=(u=N._)!=null?u:(function(){var v,w,$;return($=(w=(v=S.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:w.getAttribute("content"))!=null?$:void 0})();if(k!=null&&m.setAttribute("nonce",k),!(1&g.i))if(c.nodeName==="HEAD"){const v=c.querySelectorAll("link[rel=preconnect]"),w=v.length>0?v[v.length-1].nextSibling:c.querySelector("style");c.insertBefore(m,w?.parentNode===c?w:null)}else if("host"in c)if(ee){const v=new((h=c.defaultView)!=null?h:c.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(y),te?c.adoptedStyleSheets.unshift(v):c.adoptedStyleSheets=[v,...c.adoptedStyleSheets]}else{const v=c.querySelector("style");v?v.textContent=y+v.textContent:c.prepend(m)}else c.append(m);1&g.i&&c.insertBefore(m,null),4&g.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),f&&f.add(b)}}else{let m=T.get(c);if(m||T.set(c,m=new Set),!m.has(b)){const f=(x=c.defaultView)!=null?x:c.ownerDocument.defaultView;let k;if(y.constructor===f.CSSStyleSheet)k=y;else{k=new f.CSSStyleSheet;for(let v=0;v<y.cssRules.length;v++)k.insertRule(y.cssRules[v].cssText,v)}te?c.adoptedStyleSheets.push(k):c.adoptedStyleSheets=[...c.adoptedStyleSheets,k],m.add(b)}}return b})(o.shadowRoot?o.shadowRoot:o.getRootNode(),a);10&d&&(o["s-sc"]=p,o.classList.add(p+"-h"))})(e),pt(e,t,i,r),l&&(l.map((n=>n())),i["s-rc"]=void 0);{const n=(s=i["s-p"])!=null?s:[],a=()=>gt(e);n.length===0?a():(Promise.all(n).then(a).catch(a),e.i|=4,n.length=0)}},pt=(e,t,r,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,nt(e,t,s)}catch(i){P(i,e.$hostElement$)}return null},gt=e=>{const t=e.$hostElement$,r=t,s=e.R;H(r,"componentDidRender",void 0,t),64&e.i?H(r,"componentDidUpdate",void 0,t):(e.i|=64,ft(t),H(r,"componentDidLoad",void 0,t),e.L(t),s||ht()),e.A&&(e.A(),e.A=void 0),512&e.i&&ie((()=>ge(e,!1))),e.i&=-517},ht=()=>{ie((()=>rt(S,"appload",{detail:{namespace:"gids-core-web"}})))},H=(e,t,r,s)=>{if(e&&e[t])try{return e[t](r)}catch(i){P(i,s)}},ft=e=>e.classList.add("hydrated"),Re=(e,t,r,s)=>{const i=z(e);if(!i)return;const l=e,n=i.l.get(t),a=i.i,o=l;r=ke(r,s.t[t][0],!!(64&s.i));const d=Number.isNaN(n)&&Number.isNaN(r);if(r!==n&&!d){if(i.l.set(t,r),s.F){const p=s.F[t];p&&p.map((c=>{try{const[[g,u]]=Object.entries(c);(128&a||1&u)&&(o?o[g](r,n,t):i.T.push((()=>{i.D[g](r,n,t)})))}catch(g){P(g,l)}}))}if(2&a){if(o.componentShouldUpdate&&o.componentShouldUpdate(r,n,t)===!1&&!(16&a))return;16&a||ge(i,!1)}}},ut=(e,t,r)=>{var s,i;const l=e.prototype;64&t.i&&1&r&&qe.forEach((n=>{const a=l[n];Object.defineProperty(l,n,{value(...o){var d;const p=z(this),c=this;c?typeof a=="function"&&a.call(c,...o):(d=p?.H)==null||d.then((g=>{const u=g[n];typeof u=="function"&&u.call(g,...o)}))}})}));{e.watchers&&!t.F&&(t.F=we(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const n=Object.entries((s=t.t)!=null?s:{});n.map((([a,[o]])=>{if(31&o||32&o){const{get:d,set:p}=M(l,a)||{};d&&(t.t[a][0]|=2048),p&&(t.t[a][0]|=4096),Object.defineProperty(l,a,{get(){return d?d.apply(this):(c=a,z(this).l.get(c));var c},configurable:!0,enumerable:!0}),Object.defineProperty(l,a,{set(c){const g=z(this);if(g){if(p)return(32&o?this[a]:g.$hostElement$[a])===void 0&&g.l.get(a)&&(c=g.l.get(a)),p.apply(this,[ke(c,o,!!(64&t.i))]),void Re(this,a,c=32&o?this[a]:g.$hostElement$[a],t);Re(this,a,c,t)}}})}}));{const a=new Map;l.attributeChangedCallback=function(o,d,p){N.jmp((()=>{var c;const g=a.get(o),u=z(this);if(this.hasOwnProperty(g),l.hasOwnProperty(g)&&typeof this[g]=="number"&&this[g]==p)return;if(g==null){const m=u?.i;if(u&&m&&!(8&m)&&p!==d){const f=this,k=(c=t.F)==null?void 0:c[o];k?.forEach((v=>{const[[w,$]]=Object.entries(v);f[w]!=null&&(128&m||1&$)&&f[w].call(f,p,d,o)}))}return}const h=n.find((([m])=>m===g)),x=h&&4&h[1][0],b=x&&p===null&&this[g]===void 0;x&&(p=p!==null&&p!=="false");const y=Object.getOwnPropertyDescriptor(l,g);b||p==this[g]||y.get&&!y.set||(this[g]=p)}))},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.F)!=null?i:{}),...n.filter((([o,d])=>31&d[0])).map((([o,d])=>{var p;const c=d[1]||o;return a.set(c,o),512&d[0]&&((p=t.C)==null||p.push([o,c])),c}))]))}}return e},mt=(e,t)=>{const r={i:t[0],p:t[1]};try{r.t=t[2],r.W=t[3],r.F=we(e.F),r.P=e.P,r.U=e.U,r.C=[];const s=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((l,n)=>{const a={i:0,$hostElement$:l,o:n,l:new Map,B:new Map};a.H=new Promise((d=>a.L=d)),l["s-p"]=[],l["s-rc"]=[];const o=a;l.__stencil__getHostRef=()=>o,512&n.i&&Ue(l,a)})(this,r)},connectedCallback(){if(!this.__hasHostListenerAttached){const l=z(this);if(!l)return;Me(this,l,r.W),this.__hasHostListenerAttached=!0}(l=>{if(!(1&N.i)){const n=z(l);if(!n)return;const a=n.o;if(1&n.i)Me(l,n,a.W),n?.D||n?.H&&n.H.then((()=>{}));else{n.i|=1,12&a.i&&(o=>{if(!S.document)return;const d=o["s-cr"]=S.document.createComment("");d["s-cn"]=!0,j(o,d,o.firstChild)})(l);{let o=l;for(;o=o.parentNode||o.host;)if(o["s-p"]){Ae(n,n.R=o);break}}a.t&&Object.entries(a.t).map((([o,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(l,o)){const p=l[o];delete l[o],l[o]=p}})),(async(o,d,p)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=o.constructor,customElements.whenDefined(o.localName).then((()=>d.i|=128)),c&&c.style)){let h;typeof c.style=="string"&&(h=c.style);const x=xe(p);I.has(x)||((b,y,m)=>{let f=I.get(b);ee&&m?(f=f||new CSSStyleSheet,typeof f=="string"?f=y:f.replaceSync(y)):f=y,I.set(b,f)})(x,h,!!(1&p.i))}const g=d.R,u=()=>ge(d,!0);g&&g["s-rc"]?g["s-rc"].push(u):u()}catch(g){P(g,o),d.A&&(d.A(),d.A=void 0),d.L&&d.L(o)}})(l,n,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async l=>{if(!(1&N.i)){const n=z(l);n?.V&&(n.V.map((a=>a())),n.V=void 0)}T.has(l)&&T.delete(l),l.shadowRoot&&T.has(l.shadowRoot)&&T.delete(l.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 ${r.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Ke.call(this,r)}}),Object.defineProperty(e,"is",{value:r.p,configurable:!0}),ut(e,r,3)}catch(s){return P(s),e}},Me=(e,t,r)=>{r&&S.document&&r.map((([s,i,l])=>{const n=_t(S.document,e,s),a=yt(t,l),o=vt(s);N.ael(n,i,a,o),(t.V=t.V||[]).push((()=>N.rel(n,i,a,o)))}))},yt=(e,t)=>r=>{try{e.$hostElement$[t](r)}catch(s){P(s,e.$hostElement$)}},_t=(e,t,r)=>8&r?S:t,vt=e=>Ye?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function qt(e){return e}function De(e){var t,r,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=De(e[t]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}function W(){for(var e,t,r=0,s="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=De(e))&&(s&&(s+=" "),s+=t);return s}const bt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:r},s)=>W("gids-spinner-control",{"gids-spinner-control--xs":e==="xs","gids-spinner-control--sm":e==="sm","gids-spinner-control--lg":e==="lg","gids-spinner-control--xl":e==="xl","gids-spinner-control--2xl":e==="2xl","gids-spinner-control--determinate":t===!1},r,s)},Symbol.toStringTag,{value:"Module"})),xt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerClassNames:({size:e},t)=>W("gids-spinner",{"gids-spinner--xs":e==="xs","gids-spinner--sm":e==="sm","gids-spinner--lg":e==="lg","gids-spinner--xl":e==="xl","gids-spinner--2xl":e==="2xl"},t)},Symbol.toStringTag,{value:"Module"})),St=Object.freeze(Object.defineProperty({__proto__:null,getElementVisibility:e=>{const{label:t,supportingText:r}=e,s=typeof t=="string"&&t.trim().length>0,i=typeof r=="string"&&r.trim().length>0;return{hasLabel:s,hasSupportingText:i}}},Symbol.toStringTag,{value:"Module"})),K=64,Ve=10,Fe=K/2-Ve/2,wt=K/2,he=2*Math.PI*Fe,kt=`0 0 ${K} ${K}`,Nt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const r=typeof t=="number"&&t>0?t:1,i=Math.max(0,Math.min(r,e))/r*100,l=(he*i/100).toFixed(2),n=(he-parseFloat(l)).toFixed(2);return`${l} ${n}`},centerPosition:wt,circumference:he,radius:Fe,thickness:Ve,viewBox:kt},Symbol.toStringTag,{value:"Module"})),Ot=100,$t=50,Ct="Invalid Progress Value!",jt=e=>`The provided progress value is invalid or exceeds the maximum(${e}%) allowed capacity configuration bounds for this specific layout shape profile.`,Et=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonDockClassNames:e=>W("gids-button-dock",e)},Symbol.toStringTag,{value:"Module"})),zt=Object.freeze(Object.defineProperty({__proto__:null,getGidsFeedbackBlockClassNames:e=>W("gids-feedback-block",e)},Symbol.toStringTag,{value:"Module"})),Lt=Object.freeze(Object.defineProperty({__proto__:null,getGidsProgressCircleClassNames:({breakpoint:e},t)=>W("gids-progress-circle",{"gids-progress-circle--breakpoint-mobile":e==="mobile"},t)},Symbol.toStringTag,{value:"Module"})),{getGidsButtonDockClassNames:Tt}=Et,At=({class:e,primaryChildren:t,secondaryChildren:r,...s})=>_("div",{class:Tt(e),...s},_("div",{class:"gids-button-dock__secondary-area"},r),_("div",{class:"gids-button-dock__primary-area"},t)),{getGidsFeedbackBlockClassNames:Pt}=zt,Rt=({title:e,supportingText:t,image:r,children:s})=>_("div",{class:Pt()},_("div",{class:"gids-feedback-block__inner-container"},r&&_("div",{class:"gids-feedback-block__image-container"},r),_("p",{class:"gids-feedback-block__title"},_("strong",null,e)),_("div",{class:"gids-feedback-block__supporting-text"},t),s&&_(At,{primaryChildren:s}))),{getGidsSpinnerControlClassNames:Mt}=bt,{calculateStrokeDasharray:Dt,thickness:Be,radius:Ge,centerPosition:Q,viewBox:Vt}=Nt,Ft=({size:e,indeterminate:t,value:r,max:s,...i})=>{let l;return t||(l={strokeDashArray:Dt(r,s||0),strokeDashoffset:"0"}),_("svg",{class:Mt({size:e,indeterminate:t,value:r}),viewBox:Vt,...i},_("circle",{class:"gids-spinner-control__track",cx:Q,cy:Q,r:Ge,"stroke-width":Be}),_("circle",{style:l,class:"gids-spinner-control__progress",cx:Q,cy:Q,r:Ge,"stroke-width":Be}))},{getGidsSpinnerClassNames:Bt}=xt,{getElementVisibility:Gt}=St,Ht=({label:e,supportingText:t,size:r,indeterminate:s,value:i,max:l,class:n,...a})=>{const{hasLabel:o,hasSupportingText:d}=Gt({label:e,supportingText:t});return _("span",{class:Bt({size:r},n),...a},_(Ft,{size:r,indeterminate:s,value:i,max:l}),o&&_("span",{class:"gids-spinner__label"},e),d&&_("span",{class:"gids-spinner__supporting-text"},t))},{getGidsProgressCircleClassNames:Wt}=Lt,He=mt(class extends Xe{constructor(e){super(),e!==!1&&this.__registerHost(),this.breakpoint="desktop",this.value=0,this.shape="circle",this.label="",this.size="xs",this.chartLoaderSize="lg",this.chartLoading=!1,this.width=0,this.height=0}valueChanged(){this.updateDimensions()}componentDidLoad(){this.updateDimensions(),this.resizeObserver=new ResizeObserver((()=>this.updateDimensions())),this.hostElement.parentElement&&this.resizeObserver.observe(this.hostElement.parentElement)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.disconnect()}updateDimensions(){const e=this.hostElement.getBoundingClientRect();this.width=e.width,this.height=e.height>0?e.height:240}render(){if(this.chartLoading)return _("div",{class:"gids-progress-circle__no-data"},_(Ht,{label:this.chartLoadingTitle,supportingText:this.chartLoadingSupportingText,size:this?.chartLoaderSize??"lg"}));const e=this.shape==="half-circle"?$t:Ot;if(!(typeof this.value=="number"&&!isNaN(this.value)&&this.value<=e&&this.value>=0))return _("div",{class:"gids-progress-circle__no-data"},_(Rt,{title:Ct,supportingText:jt(e)}));const t=this.value/e,r=`${this.value}%`,s=Wt({breakpoint:this.breakpoint}),i=this.shape==="half-circle";let l=2*Math.PI*40,n=t*l,a=0,o="0 0 100 100",d="rotate(-90 50 50)";i&&(l=40*Math.PI,n=t*l,a=0,o="0 0 100 50",d="");const p=this.size==="xxs",c=typeof this.label=="string"&&this.label.trim()!=="";return _("div",{class:s},_("div",{class:"gids-progress-circle__main-container"},_("div",{class:`gids-progress-circle__svg-wrapper gids-progress-circle__svg-wrapper--shape-${this.shape}--size-${this.size}`},_("svg",{viewBox:o,class:"gids-progress-circle__chart-vector"},i?_("g",null,_("path",{d:"M 10,50 A 40,40 0 0,1 90,50",fill:"none",class:"gids-progress-circle__track-background"}),_("path",{d:"M 10,50 A 40,40 0 0,1 90,50",fill:"none",class:"gids-progress-circle__segment","stroke-dasharray":`${n} ${l}`,"stroke-dashoffset":a})):_("g",null,_("circle",{cx:"50",cy:"50",r:40,class:"gids-progress-circle__track-background"}),_("circle",{cx:"50",cy:"50",r:40,class:"gids-progress-circle__segment","stroke-dasharray":`${n} ${l}`,"stroke-dashoffset":a,transform:d}))),_("div",{class:`gids-progress-circle__center-content gids-progress-circle__shape-${this.shape}`},c&&!p?_("span",{class:`gids-progress-circle__label-common gids-progress-circle__label-${this.size}`},this.label):null,_("span",{class:`gids-progress-circle__percentage-common gids-progress-circle__percentage-${this.size}`},r))),p&&c?_("div",{class:"gids-progress-circle__bottom-content"},_("span",{class:`gids-progress-circle__label-common gids-progress-circle__label-${this.size}`},this.label)):null))}get hostElement(){return this}static get watchers(){return{value:[{valueChanged:0}],shape:[{valueChanged:0}]}}static get style(){return":host{display:block;box-sizing:border-box}.gids-progress-circle{display:block;box-sizing:border-box}.gids-progress-circle--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-progress-circle__main-container{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%}.gids-progress-circle{}.gids-progress-circle__svg-wrapper{position:relative;display:block;flex-shrink:0;}.gids-progress-circle__svg-wrapper--shape-circle--size-xxs{width:180px;height:180px}.gids-progress-circle__svg-wrapper--shape-circle--size-xs{width:220px;height:220px}.gids-progress-circle__svg-wrapper--shape-circle--size-sm{width:260px;height:260px}.gids-progress-circle__svg-wrapper--shape-circle--size-md{width:300px;height:300px}.gids-progress-circle__svg-wrapper--shape-circle--size-lg{width:340px;height:340px}.gids-progress-circle__svg-wrapper{}.gids-progress-circle__svg-wrapper--shape-half-circle--size-xxs{width:180px;height:144px}.gids-progress-circle__svg-wrapper--shape-half-circle--size-xs{width:220px;height:130px}.gids-progress-circle__svg-wrapper--shape-half-circle--size-sm{width:260px;height:152px}.gids-progress-circle__svg-wrapper--shape-half-circle--size-md{width:300px;height:174px}.gids-progress-circle__svg-wrapper--shape-half-circle--size-lg{width:340px;height:194px}.gids-progress-circle__chart-vector{display:block;width:100%;height:100%}.gids-progress-circle{}.gids-progress-circle__track-background{fill:none;stroke:var(--gids-color-background-neutral-default);stroke-width:6;stroke-linecap:round}.gids-progress-circle{}.gids-progress-circle__segment{fill:none;stroke:var(--gids-color-text-brand);stroke-width:6;stroke-linecap:round;transition:stroke-dasharray 0.4s ease-out, stroke-dashoffset 0.4s ease-out}.gids-progress-circle{}.gids-progress-circle__center-content{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none}.gids-progress-circle__shape-half-circle{justify-content:flex-end;align-items:center;bottom:var(--gids-padding-vertical-edge-to-element-300)}.gids-progress-circle__label-xxs{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-progress-circle__label-xs{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-progress-circle__label-sm{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}.gids-progress-circle__label-md{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)}.gids-progress-circle__label-lg{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)}.gids-progress-circle__label-common{color:var(--gids-color-text-subtlest)}.gids-progress-circle__percentage-xxs{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)}.gids-progress-circle__percentage-xs{font-family:var(--gids-typography-display-x-small__font-family);font-size:var(--gids-typography-display-x-small__font-size);font-weight:var(--gids-typography-display-x-small__font-weight);letter-spacing:var(--gids-typography-display-x-small__letter-spacing);line-height:var(--gids-typography-display-x-small__line-height);text-transform:var(--gids-typography-display-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-x-small__font-variant-caps, inherit)}.gids-progress-circle__percentage-sm{font-family:var(--gids-typography-display-x-small__font-family);font-size:var(--gids-typography-display-x-small__font-size);font-weight:var(--gids-typography-display-x-small__font-weight);letter-spacing:var(--gids-typography-display-x-small__letter-spacing);line-height:var(--gids-typography-display-x-small__line-height);text-transform:var(--gids-typography-display-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-x-small__font-variant-caps, inherit)}.gids-progress-circle__percentage-md{font-family:var(--gids-typography-display-small__font-family);font-size:var(--gids-typography-display-small__font-size);font-weight:var(--gids-typography-display-small__font-weight);letter-spacing:var(--gids-typography-display-small__letter-spacing);line-height:var(--gids-typography-display-small__line-height);text-transform:var(--gids-typography-display-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-small__font-variant-caps, inherit)}.gids-progress-circle__percentage-lg{font-family:var(--gids-typography-display-small__font-family);font-size:var(--gids-typography-display-small__font-size);font-weight:var(--gids-typography-display-small__font-weight);letter-spacing:var(--gids-typography-display-small__letter-spacing);line-height:var(--gids-typography-display-small__line-height);text-transform:var(--gids-typography-display-small__text-transform, inherit);font-variant-caps:var(--gids-typography-display-small__font-variant-caps, inherit)}.gids-progress-circle__percentage-common{color:var(--gids-color-text-default)}.gids-progress-circle{}.gids-progress-circle__bottom-content{display:flex;justify-content:center;text-align:center}.gids-progress-circle__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}"}},[0,"gids-progress-circle",{breakpoint:[1],value:[2],shape:[1],label:[1],size:[1],chartLoaderSize:[1,"chart-loader-size"],chartLoading:[4,"chart-loading"],chartLoadingTitle:[1,"chart-loading-title"],chartLoadingSupportingText:[1,"chart-loading-supporting-text"],width:[32],height:[32]},void 0,{value:[{valueChanged:0}],shape:[{valueChanged:0}]}]);function We(){typeof customElements<"u"&&["gids-progress-circle"].forEach((e=>{e==="gids-progress-circle"&&(customElements.get(e)||customElements.define(e,He))}))}We();const It=He,Ut=We;A.GidsProgressCircle=It,A.defineCustomElement=Ut,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(R,
|
|
1
|
+
(function(R,M){typeof exports=="object"&&typeof module<"u"?M(exports):typeof define=="function"&&define.amd?define(["exports"],M):(R=typeof globalThis<"u"?globalThis:R||self,M(R.gidsCoreWebGidsScrim={}))})(this,(function(R){"use strict";function M(e,t,o){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const n=Object.getOwnPropertyDescriptor(e,t);if(n&&(!o||n.get))return n;e=Object.getPrototypeOf(e)}}var F,qe=(e,t)=>{var o;Object.entries((o=t.o.t)!=null?o:{}).map((([s,[n]])=>{if(31&n||32&n){const l=e[s],i=M(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);i&&Object.defineProperty(e,s,{get(){return i.get.call(this)},set(c){i.set.call(this,c)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):l!==void 0&&(e[s]=l)}}))},x=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},he=(e,t)=>t in e,P=(e,t)=>(0,console.error)(e,t),q=new Map,pe="http://www.w3.org/1999/xlink",Ge=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],w=typeof window<"u"?window:{},ze=w.HTMLElement||class{},_={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,o,s)=>e.addEventListener(t,o,s),rel:(e,t,o,s)=>e.removeEventListener(t,o,s),ce:(e,t)=>new CustomEvent(e,t)},Ie=(()=>{var e;let t=!1;try{(e=w.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),Q=(()=>{try{return!!w.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),X=!!Q&&!!w.document&&Object.getOwnPropertyDescriptor(w.document.adoptedStyleSheets,"length").writable,ee=!1,me=[],ye=[],Ye=(e,t)=>o=>{e.push(o),ee||(ee=!0,4&_.i?se(te):_.raf(te))},ge=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(o){P(o)}e.length=0},te=()=>{ge(me),ge(ye),(ee=me.length>0)&&_.raf(te)},se=e=>Promise.resolve(void 0).then(e),Ze=Ye(ye);function Je(){const e=this.attachShadow({mode:"open"});F===void 0&&(F=null),F&&(X?e.adoptedStyleSheets.push(F):e.adoptedStyleSheets=[...e.adoptedStyleSheets,F])}var ve=e=>{const t=ne(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&oe(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!Ke(s,V(s),!1).length)}));let o=0;for(o=0;o<t.length;o++){const s=t[o];s.nodeType===1&&ne(s,"childNodes").length&&ve(s)}};function oe(e,t,o){let s,n=0,l=[];for(;n<e.length;n++){if(s=e[n],s["s-sr"]&&(!t||s["s-hn"]===t)&&(o===void 0||V(s)===o)&&(l.push(s),o!==void 0))return l;l=[...l,...oe(s.childNodes,t,o)]}return l}var Ke=(e,t,o=!0)=>{const s=[];(o&&e["s-sr"]||!e["s-sr"])&&s.push(e);let n=e;for(;n=n.nextSibling;)V(n)!==t||!o&&n["s-sr"]||s.push(n);return s},Se=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",V=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function ne(e,t){if("__"+t in e){const o=e["__"+t];return typeof o!="function"?o:o.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var le,L,T=new WeakMap,be=e=>"sc-"+e.p,re=e=>(e=typeof e)=="object"||e==="function",G=(e,t,...o)=>{let s=null,n=null,l=null,i=!1,c=!1;const r=[],d=a=>{for(let f=0;f<a.length;f++)s=a[f],Array.isArray(s)?d(s):s!=null&&typeof s!="boolean"&&((i=typeof e!="function"&&!re(s))&&(s=String(s)),i&&c?r[r.length-1].h+=s:r.push(i?z(null,s):s),c=i)};if(d(o),t){t.key&&(n=t.key),t.name&&(l=t.name);{const a=t.className||t.class;a&&(t.class=typeof a!="object"?a:Object.keys(a).filter((f=>a[f])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,r,Xe);const u=z(e,null);return u.v=t,r.length>0&&(u.m=r),u.$=n,u.j=l,u},z=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),Qe={},Xe={forEach:(e,t)=>e.map(we).forEach(t),map:(e,t)=>e.map(we).map(t).map(et)},we=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),et=e=>{if(typeof e.vtag=="function"){const o={...e.vattrs};return e.vkey&&(o.key=e.vkey),e.vname&&(o.name=e.vname),G(e.vtag,o,...e.vchildren||[])}const t=z(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Ne=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let o=!1;for(const n of t){if(o)break;for(const l of e[n])if(typeof l=="string"){o=!0;break}}if(!o)return e;const s={};for(const n of t)s[n]=e[n].map((l=>typeof l=="string"?{[l]:0}:l));return s},Oe=(e,t,o)=>e==null||re(e)?e:4&t?(o&&typeof e=="string"||e!=="false")&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,tt=(e,t,o)=>{const s=_.ce(t,o);return e.dispatchEvent(s),s},_e=(e,t,o,s,n,l)=>{if(o===s)return;let i=he(e,t),c=t.toLowerCase();if(t==="class"){const r=e.classList,d=Ce(o);let u=Ce(s);r.remove(...d.filter((a=>a&&!u.includes(a)))),r.add(...u.filter((a=>a&&!d.includes(a))))}else if(t==="style"){for(const r in o)s&&s[r]!=null||(r.includes("-")?e.style.removeProperty(r):e.style[r]="");for(const r in s)o&&s[r]===o[r]||(r.includes("-")?e.style.setProperty(r,s[r]):e.style[r]=s[r])}else if(t!=="key"){if(t==="ref")s&&nt(s,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const r=t.slice(5);let d;{const u=x(e);if(u&&u.o&&u.o.t){const a=u.o.t[r];a&&a[1]&&(d=a[1])}}return d||(d=r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(s==null||s===!1?s===!1&&e.getAttribute(d)!==""||e.removeAttribute(d):e.setAttribute(d,s===!0?"":s))}if(t[0]==="p"&&t.startsWith("prop:")){const r=t.slice(5);try{e[r]=s}catch{}return}{const r=re(s);if((i||r&&s!==null)&&!n)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const u=s??"";t==="list"?i=!1:o!=null&&e[t]===u||(typeof e.__lookupSetter__(t)=="function"?e[t]=u:e.setAttribute(t,u))}}catch{}let d=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,d=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(d?e.removeAttributeNS(pe,t):e.removeAttribute(t)):(!i||4&l||n)&&!r&&e.nodeType===1&&(s=s===!0?"":s,d?e.setAttributeNS(pe,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):he(w,c)?c.slice(2):c[2]+t.slice(3),o||s){const r=t.endsWith(ke);t=t.replace(ot,""),o&&_.rel(e,t,o,r),s&&_.ael(e,t,s,r)}}},st=/\s/,Ce=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(st):[]),ke="Capture",ot=new RegExp(ke+"$"),ie=(e,t,o)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,n=e&&e.v||{},l=t.v||{};for(const i of $e(Object.keys(n)))i in l||_e(s,i,n[i],void 0,o,t.i);for(const i of $e(Object.keys(l)))_e(s,i,n[i],l[i],o,t.i)};function $e(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var W=!1,I=!1,Y=!1,C=!1,ce=[],ae=[],Z=(e,t,o)=>{var s;const n=t.m[o];let l,i,c,r=0;if(W||(Y=!0,n.O==="slot"&&(n.i|=n.m?2:1)),n.h!=null)l=n.S=w.document.createTextNode(n.h);else if(1&n.i)l=n.S=w.document.createTextNode(""),ie(null,n,C);else{if(C||(C=n.O==="svg"),!w.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(l=n.S=w.document.createElementNS(C?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!W&&2&n.i?"slot-fb":n.O),C&&n.O==="foreignObject"&&(C=!1),ie(null,n,C),n.m){const d=n.O==="template"?l.content:l;for(r=0;r<n.m.length;++r)i=Z(e,n,r),i&&d.appendChild(i)}n.O==="svg"?C=!1:l.tagName==="foreignObject"&&(C=!0)}return l["s-hn"]=L,3&n.i&&(l["s-sr"]=!0,l["s-cr"]=le,l["s-sn"]=n.j||"",l["s-rf"]=(s=n.v)==null?void 0:s.ref,(function(d){if(d.assignedElements||d.assignedNodes||!d["s-sr"])return;const u=a=>(function(f){const m=[],h=this["s-sn"];f?.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 b=this["s-cr"].parentElement;return(b.__childNodes?b.childNodes:(v=>{const g=[];for(let m=0;m<v.length;m++){const p=v[m]["s-nr"]||void 0;p&&p.isConnected&&g.push(p)}return g})(b.childNodes)).forEach((v=>{u===F(v)&&y.push(v)})),c?y.filter((v=>v.nodeType===1)):y}).bind(d);d.assignedElements=f(!0),d.assignedNodes=f(!1)})(l),a=e&&e.m&&e.m[o],a&&a.O===n.O&&e.S&&je(e.S)),l},je=e=>{O.i|=1;const t=e.closest(P.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of o?s.reverse():s)n["s-sh"]!=null&&(j(t,n,o??null),n["s-sh"]=void 0,Y=!0)}O.i&=-2},J=(e,t)=>{O.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===P&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==P&&n["s-ol"]&&(j(V(n).parentNode,n,V(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,Y=!0),t&&J(n,t)}O.i&=-2},xe=(e,t,o,s,n,l)=>{let i,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===P&&(a=a.shadowRoot),o.O==="template"&&(a=a.content);n<=l;++n)s[n]&&(i=Z(null,o,n),i&&(s[n].S=i,j(a,i,V(t))))},Ee=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const l=n.S;Te(n),l&&(I=!0,l["s-ol"]?l["s-ol"].remove():J(l,!0),l.remove())}}},K=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),V=e=>e&&e["s-ol"]||e,H=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,l=t.m,i=t.O,a=t.h;let r;a==null?(C=i==="svg"||i!=="foreignObject"&&C,i!=="slot"||B||e.j!==t.j&&(t.S["s-sn"]=t.j||"",je(t.S.parentElement)),ie(e,t,C),n!==null&&l!==null?((d,f,c,h,y=!1)=>{let u,b,v=0,g=0,m=0,p=0,_=f.length-1,S=f[0],N=f[_],$=h.length-1,k=h[0],x=h[$];const Ve=c.O==="template"?d.content:d;for(;v<=_&&g<=$;)if(S==null)S=f[++v];else if(N==null)N=f[--_];else if(k==null)k=h[++g];else if(x==null)x=h[--$];else if(K(S,k,y))H(S,k,y),S=f[++v],k=h[++g];else if(K(N,x,y))H(N,x,y),N=f[--_],x=h[--$];else if(K(S,x,y))S.O!=="slot"&&x.O!=="slot"||J(S.S.parentNode,!1),H(S,x,y),j(Ve,S.S,N.S.nextSibling),S=f[++v],x=h[--$];else if(K(N,k,y))S.O!=="slot"&&x.O!=="slot"||J(N.S.parentNode,!1),H(N,k,y),j(Ve,N.S,S.S),N=f[--_],k=h[++g];else{for(m=-1,p=v;p<=_;++p)if(f[p]&&f[p].$!==null&&f[p].$===k.$){m=p;break}m>=0?(b=f[m],b.O!==k.O?u=Z(f&&f[g],c,m):(H(b,k,y),f[m]=void 0,u=b.S),k=h[++g]):(u=Z(f&&f[g],c,g),k=h[++g]),u&&j(V(S.S).parentNode,u,V(S.S))}v>_?xe(d,h[$+1]==null?null:h[$+1].S,c,h,g,$):g>$&&Ee(f,v,_)})(s,n,t,l,o):l!==null?(e.h!==null&&(s.textContent=""),xe(s,null,t,l,0,l.length-1)):!o&&n!==null&&Ee(n,0,n.length-1),C&&i==="svg"&&(C=!1)):(r=s["s-cr"])?r.parentNode.textContent=a:e.h!==a&&(s.data=a)},E=[],Ae=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const l of n){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const i=l["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===l["s-hn"]||t["s-sh"]&&t["s-sh"]===l["s-hn"]))if(ve(t,i)){let a=E.find((r=>r.k===t));I=!0,t["s-sn"]=t["s-sn"]||i,a?(a.k["s-sh"]=l["s-hn"],a.N=l):(t["s-sh"]=l["s-hn"],E.push({N:l,k:t})),t["s-sr"]&&E.map((r=>{ve(r.k,t["s-sn"])&&(a=E.find((d=>d.k===t)),a&&!r.N&&(r.N=a.N))}))}else E.some((a=>a.k===t))||E.push({k:t})}l.nodeType===1&&Ae(l)}},Te=e=>{e.v&&e.v.ref&&ae.push((()=>e.v.ref(null))),e.m&&e.m.map(Te)},tt=(e,t)=>{ce.push((()=>e(t)))},j=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(l,i){var a;if(!(i=i||((a=l["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const r=l["s-sn"]=F(l)||"";return{slotNode:oe(ne(i,"childNodes"),i.tagName,r)[0],slotName:r}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},st=(e,t,o=!1)=>{var s,n,l,i,a;const r=e.$hostElement$,d=e.o,f=e.M||U(null,null);var c;const h=(c=t)&&c.O===Ze?t:q(null,null,t);if(P=r.tagName,d._&&(h.v=h.v||{},d._.forEach((([y,u])=>{h.v[u]=r[y]}))),o&&h.v)for(const y of Object.keys(h.v))r.hasAttribute(y)&&!["key","ref","style","class"].includes(y)&&(h.v[y]=r[y]);if(h.O=null,h.i|=4,e.M=h,h.S=f.S=r.shadowRoot||r,B=!(!(1&d.i)||128&d.i),le=r["s-cr"],I=!1,H(f,h,o),O.i|=1,Y){Ae(h.S);for(const y of E){const u=y.k;if(!u["s-ol"]&&w.document){const b=w.document.createTextNode("");b["s-nr"]=u,j(u.parentNode,u["s-ol"]=b,u,o)}}for(const y of E){const u=y.k,b=y.N;if(u.nodeType===1&&o&&(u["s-ih"]=(s=u.hidden)!=null&&s),b){const v=b.parentNode;let g=b.nextSibling;if(g&&g.nodeType===1){let m=(n=u["s-ol"])==null?void 0:n.previousSibling;for(;m;){let p=(l=m["s-nr"])!=null?l:null;if(p&&p["s-sn"]===u["s-sn"]&&v===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===u||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){g=p;break}}m=m.previousSibling}}if((!g&&v!==(u.__parentNode||u.parentNode)||(u.__nextSibling||u.nextSibling)!==g)&&u!==g){if(j(v,u,g,o),u.nodeType===8&&u.nodeValue.startsWith("s-nt-")){const m=w.document.createTextNode(u.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=u["s-hn"],m["s-sn"]=u["s-sn"],m["s-sh"]=u["s-sh"],m["s-sr"]=u["s-sr"],m["s-ol"]=u["s-ol"],m["s-ol"]["s-nr"]=m,j(u.parentNode,m,u,o),u.parentNode.removeChild(u)}u.nodeType===1&&u.tagName!=="SLOT-FB"&&(u.hidden=(i=u["s-ih"])!=null&&i)}u&&typeof b["s-rf"]=="function"&&b["s-rf"](b)}else u.nodeType===1&&(u.hidden=!0)}}if(I&&Se(h.S),O.i&=-2,E.length=0,!B&&!(1&d.i)&&r["s-cr"]){const y=h.S.__childNodes||h.S.childNodes;for(const u of y)if(u["s-hn"]!==P&&!u["s-sh"]){if(o&&u["s-ih"]==null&&(u["s-ih"]=(a=u.hidden)!=null&&a),u.nodeType===1)u.hidden=!0;else if(u.nodeType===3&&u.nodeValue.trim()){const b=w.document.createComment("s-nt-"+u.nodeValue);b["s-sn"]=u["s-sn"],j(u.parentNode,b,u,o),u.parentNode.removeChild(u)}}}le=void 0,ae.forEach((y=>y())),ae.length=0,ce.forEach((y=>y())),ce.length=0},Re=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},de=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Re(e,e.C);const o=()=>ot(e,t);if(!t)return Ue(o);queueMicrotask((()=>{o()}))},ot=(e,t)=>{const o=e.$hostElement$,s=o;if(!s)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=z(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=Pe(n,(()=>z(s,"componentWillRender",void 0,o))),Pe(n,(()=>lt(e,s,t)))},Pe=(e,t)=>nt(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),nt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",lt=async(e,t,o)=>{var s;const n=e.$hostElement$,l=n["s-rc"];o&&(i=>{const a=i.o,r=i.$hostElement$,d=a.i,f=((c,h)=>{var y,u,b;const v=be(h),g=G.get(v);if(!w.document)return v;if(c=c.nodeType===11?c:w.document,g)if(typeof g=="string"){let m,p=T.get(c=c.head||c);if(p||T.set(c,p=new Set),!p.has(v)){m=w.document.createElement("style"),m.textContent=g;const _=(y=O.L)!=null?y:(function(){var S,N,$;return($=(N=(S=w.document.head)==null?void 0:S.querySelector('meta[name="csp-nonce"]'))==null?void 0:N.getAttribute("content"))!=null?$:void 0})();if(_!=null&&m.setAttribute("nonce",_),!(1&h.i))if(c.nodeName==="HEAD"){const S=c.querySelectorAll("link[rel=preconnect]"),N=S.length>0?S[S.length-1].nextSibling:c.querySelector("style");c.insertBefore(m,N?.parentNode===c?N:null)}else if("host"in c)if(Q){const S=new((u=c.defaultView)!=null?u:c.ownerDocument.defaultView).CSSStyleSheet;S.replaceSync(g),X?c.adoptedStyleSheets.unshift(S):c.adoptedStyleSheets=[S,...c.adoptedStyleSheets]}else{const S=c.querySelector("style");S?S.textContent=g+S.textContent:c.prepend(m)}else c.append(m);1&h.i&&c.insertBefore(m,null),4&h.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(v)}}else{let m=T.get(c);if(m||T.set(c,m=new Set),!m.has(v)){const p=(b=c.defaultView)!=null?b:c.ownerDocument.defaultView;let _;if(g.constructor===p.CSSStyleSheet)_=g;else{_=new p.CSSStyleSheet;for(let S=0;S<g.cssRules.length;S++)_.insertRule(g.cssRules[S].cssText,S)}X?c.adoptedStyleSheets.push(_):c.adoptedStyleSheets=[...c.adoptedStyleSheets,_],m.add(v)}}return v})(r.shadowRoot?r.shadowRoot:r.getRootNode(),a);10&d&&(r["s-sc"]=f,r.classList.add(f+"-h"))})(e),rt(e,t,n,o),l&&(l.map((i=>i())),n["s-rc"]=void 0);{const i=(s=n["s-p"])!=null?s:[],a=()=>it(e);i.length===0?a():(Promise.all(i).then(a).catch(a),e.i|=4,i.length=0)}},rt=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,st(e,t,s)}catch(n){M(n,e.$hostElement$)}return null},it=e=>{const t=e.$hostElement$,o=t,s=e.C;z(o,"componentDidRender",void 0,t),64&e.i?z(o,"componentDidUpdate",void 0,t):(e.i|=64,ct(t),z(o,"componentDidLoad",void 0,t),e.F(t),s||at()),e.A&&(e.A(),e.A=void 0),512&e.i&&se((()=>de(e,!1))),e.i&=-517},at=()=>{se((()=>Qe(w,"appload",{detail:{namespace:"gids-core-web"}})))},z=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){M(n,s)}},ct=e=>e.classList.add("hydrated"),Le=(e,t,o,s)=>{const n=A(e);if(!n)return;const l=e,i=n.l.get(t),a=n.i,r=l;o=_e(o,s.t[t][0]);const d=Number.isNaN(i)&&Number.isNaN(o);if(o!==i&&!d){if(n.l.set(t,o),s.R){const f=s.R[t];f&&f.map((c=>{try{const[[h,y]]=Object.entries(c);(128&a||1&y)&&(r?r[h](o,i,t):n.T.push((()=>{n.D[h](o,i,t)})))}catch(h){M(h,l)}}))}if(2&a){if(r.componentShouldUpdate&&r.componentShouldUpdate(o,i,t)===!1&&!(16&a))return;16&a||de(n,!1)}}},dt=(e,t)=>{var o,s;const n=e.prototype;{e.watchers&&!t.R&&(t.R=Ne(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const l=Object.entries((o=t.t)!=null?o:{});l.map((([i,[a]])=>{if(31&a||32&a){const{get:r,set:d}=L(n,i)||{};r&&(t.t[i][0]|=2048),d&&(t.t[i][0]|=4096),Object.defineProperty(n,i,{get(){return r?r.apply(this):(f=i,A(this).l.get(f));var f},configurable:!0,enumerable:!0}),Object.defineProperty(n,i,{set(f){const c=A(this);if(c){if(d)return(32&a?this[i]:c.$hostElement$[i])===void 0&&c.l.get(i)&&(f=c.l.get(i)),d.apply(this,[_e(f,a)]),void Le(this,i,f=32&a?this[i]:c.$hostElement$[i],t);Le(this,i,f,t)}}})}}));{const i=new Map;n.attributeChangedCallback=function(a,r,d){O.jmp((()=>{var f;const c=i.get(a),h=A(this);if(this.hasOwnProperty(c),n.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==d)return;if(c==null){const g=h?.i;if(h&&g&&!(8&g)&&d!==r){const m=this,p=(f=t.R)==null?void 0:f[a];p?.forEach((_=>{const[[S,N]]=Object.entries(_);m[S]!=null&&(128&g||1&N)&&m[S].call(m,d,r,a)}))}return}const y=l.find((([g])=>g===c)),u=y&&4&y[1][0],b=u&&d===null&&this[c]===void 0;u&&(d=d!==null&&d!=="false");const v=Object.getOwnPropertyDescriptor(n,c);b||d==this[c]||v.get&&!v.set||(this[c]=d)}))},e.observedAttributes=Array.from(new Set([...Object.keys((s=t.R)!=null?s:{}),...l.filter((([a,r])=>31&r[0])).map((([a,r])=>{var d;const f=r[1]||a;return i.set(f,a),512&r[0]&&((d=t._)==null||d.push([a,f])),f}))]))}}return e},ut=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.R=Ne(e.R),o.H=e.H,o.P=e.P,o._=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((l,i)=>{const a={i:0,$hostElement$:l,o:i,l:new Map,U:new Map};a.W=new Promise((d=>a.F=d)),l["s-p"]=[],l["s-rc"]=[];const r=a;l.__stencil__getHostRef=()=>r,512&i.i&&ze(l,a)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!A(this))return;this.__hasHostListenerAttached=!0}(l=>{if(!(1&O.i)){const i=A(l);if(!i)return;const a=i.o;if(1&i.i)i?.D||i?.W&&i.W.then((()=>{}));else{i.i|=1,12&a.i&&(r=>{if(!w.document)return;const d=r["s-cr"]=w.document.createComment("");d["s-cn"]=!0,j(r,d,r.firstChild)})(l);{let r=l;for(;r=r.parentNode||r.host;)if(r["s-p"]){Re(i,i.C=r);break}}a.t&&Object.entries(a.t).map((([r,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(l,r)){const f=l[r];delete l[r],l[r]=f}})),(async(r,d,f)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=r.constructor,customElements.whenDefined(r.localName).then((()=>d.i|=128)),c&&c.style)){let u;typeof c.style=="string"&&(u=c.style);const b=be(f);G.has(b)||((v,g,m)=>{let p=G.get(v);Q&&m?(p=p||new CSSStyleSheet,typeof p=="string"?p=g:p.replaceSync(g)):p=g,G.set(v,p)})(b,u,!!(1&f.i))}const h=d.C,y=()=>de(d,!0);h&&h["s-rc"]?h["s-rc"].push(y):y()}catch(h){M(h,r),d.A&&(d.A(),d.A=void 0),d.F&&d.F(r)}})(l,i,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async l=>{1&O.i||A(l),T.has(l)&&T.delete(l),l.shadowRoot&&T.has(l.shadowRoot)&&T.delete(l.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Ie.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),dt(e,o)}catch(s){return M(s),e}};function gt(e){return e}const D=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let Me=!1;D&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(D):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let ue=null;const fe=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{He()})):void 0,He=()=>{if(D===void 0)return!1;const e=(()=>{if(D===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const s=document.styleSheets.item(o);if(s)try{let n=-1,l=0;for(let i=0;i<s.cssRules.length;i++){const a=s.cssRules.item(i);if(a?.cssText.startsWith("gids-global-styles-start"))n=i;else if(n>-1){if(a?.cssText.startsWith("gids-global-styles-end")){l=i-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:l,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return fe!==void 0&&t!==ue&&(ue&&fe.disconnect(),t instanceof Element&&fe.observe(t,{childList:!0,characterData:!0,subtree:!0}),ue=t),D.replaceSync((o=>o.rules.map((s=>s.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:l}=o;for(let i=0;i<n;i++)l.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},ft=()=>(Me||(Me=He()),D);function De(e){var t,o,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=De(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function ht(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=De(e))&&(s&&(s+=" "),s+=t);return s}const pt=Object.freeze(Object.defineProperty({__proto__:null,getGidsScrimClassNames:e=>ht("gids-scrim",e)},Symbol.toStringTag,{value:"Module"})),{getGidsScrimClassNames:We}=pt,Fe=ut(class extends Ge{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.activeClasses=""}handleExtraClassesChange(e){this.activeClasses=We(e)}connectedCallback(){const e=ft();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this.activeClasses=We(this.extraClasses)}render(){return q("div",{key:"da4b587303359a6075411a1843e03eff6eed68ce",class:this.activeClasses,part:"root"},q("slot",{key:"5a52f6e5628c771b2dd0f5a6221005a0ed8b9fbb"}))}get _el(){return this}static get watchers(){return{extraClasses:[{handleExtraClassesChange:0}]}}static get style(){return".gids-scrim{display:flex;flex-direction:column;background-color:var(--gids-color-background-scrim);height:100vh !important;position:absolute;top:0;bottom:0;left:0;right:0;z-index:1001;align-items:center;justify-content:center;backdrop-filter:blur(12)}"}},[257,"gids-scrim",{extraClasses:[513,"extra-classes"],activeClasses:[32]},void 0,{extraClasses:[{handleExtraClassesChange:0}]}]);function Be(){typeof customElements<"u"&&["gids-scrim"].forEach((e=>{e==="gids-scrim"&&(customElements.get(e)||customElements.define(e,Fe))}))}Be();const mt=Fe,yt=Be;R.GidsScrim=mt,R.defineCustomElement=yt,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})}));
|
|
5
|
+
`);const b=this["s-cr"].parentElement;return(b.__childNodes?b.childNodes:(S=>{const g=[];for(let y=0;y<S.length;y++){const p=S[y]["s-nr"]||void 0;p&&p.isConnected&&g.push(p)}return g})(b.childNodes)).forEach((S=>{h===V(S)&&m.push(S)})),a?m.filter((S=>S.nodeType===1)):m}).bind(d);d.assignedElements=u(!0),d.assignedNodes=u(!1)})(l),c=e&&e.m&&e.m[o],c&&c.O===n.O&&e.S&&Ee(e.S)),l},Ee=e=>{_.i|=1;const t=e.closest(L.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of o?s.reverse():s)n["s-sh"]!=null&&(E(t,n,o??null),n["s-sh"]=void 0,Y=!0)}_.i&=-2},J=(e,t)=>{_.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===L&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==L&&n["s-ol"]&&(E(B(n).parentNode,n,B(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,Y=!0),t&&J(n,t)}_.i&=-2},je=(e,t,o,s,n,l)=>{let i,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===L&&(c=c.shadowRoot),o.O==="template"&&(c=c.content);n<=l;++n)s[n]&&(i=Z(null,o,n),i&&(s[n].S=i,E(c,i,B(t))))},xe=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const l=n.S;Te(n),l&&(I=!0,l["s-ol"]?l["s-ol"].remove():J(l,!0),l.remove())}}},K=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),B=e=>e&&e["s-ol"]||e,D=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,l=t.m,i=t.O,c=t.h;let r;c==null?(C=i==="svg"||i!=="foreignObject"&&C,i!=="slot"||W||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Ee(t.S.parentElement)),ie(e,t,C),n!==null&&l!==null?((d,u,a,f,m=!1)=>{let h,b,S=0,g=0,y=0,p=0,O=u.length-1,v=u[0],N=u[O],k=f.length-1,$=f[0],j=f[k];const Ue=a.O==="template"?d.content:d;for(;S<=O&&g<=k;)if(v==null)v=u[++S];else if(N==null)N=u[--O];else if($==null)$=f[++g];else if(j==null)j=f[--k];else if(K(v,$,m))D(v,$,m),v=u[++S],$=f[++g];else if(K(N,j,m))D(N,j,m),N=u[--O],j=f[--k];else if(K(v,j,m))v.O!=="slot"&&j.O!=="slot"||J(v.S.parentNode,!1),D(v,j,m),E(Ue,v.S,N.S.nextSibling),v=u[++S],j=f[--k];else if(K(N,$,m))v.O!=="slot"&&j.O!=="slot"||J(N.S.parentNode,!1),D(N,$,m),E(Ue,N.S,v.S),N=u[--O],$=f[++g];else{for(y=-1,p=S;p<=O;++p)if(u[p]&&u[p].$!==null&&u[p].$===$.$){y=p;break}y>=0?(b=u[y],b.O!==$.O?h=Z(u&&u[g],a,y):(D(b,$,m),u[y]=void 0,h=b.S),$=f[++g]):(h=Z(u&&u[g],a,g),$=f[++g]),h&&E(B(v.S).parentNode,h,B(v.S))}S>O?je(d,f[k+1]==null?null:f[k+1].S,a,f,g,k):g>k&&xe(u,S,O)})(s,n,t,l,o):l!==null?(e.h!==null&&(s.textContent=""),je(s,null,t,l,0,l.length-1)):!o&&n!==null&&xe(n,0,n.length-1),C&&i==="svg"&&(C=!1)):(r=s["s-cr"])?r.parentNode.textContent=c:e.h!==c&&(s.data=c)},A=[],Ae=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const l of n){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const i=l["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===l["s-hn"]||t["s-sh"]&&t["s-sh"]===l["s-hn"]))if(Se(t,i)){let c=A.find((r=>r.k===t));I=!0,t["s-sn"]=t["s-sn"]||i,c?(c.k["s-sh"]=l["s-hn"],c.N=l):(t["s-sh"]=l["s-hn"],A.push({N:l,k:t})),t["s-sr"]&&A.map((r=>{Se(r.k,t["s-sn"])&&(c=A.find((d=>d.k===t)),c&&!r.N&&(r.N=c.N))}))}else A.some((c=>c.k===t))||A.push({k:t})}l.nodeType===1&&Ae(l)}},Te=e=>{e.v&&e.v.ref&&ce.push((()=>e.v.ref(null))),e.m&&e.m.map(Te)},nt=(e,t)=>{ae.push((()=>e(t)))},E=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(l,i){var c;if(!(i=i||((c=l["s-ol"])==null?void 0:c.parentElement)))return{slotNode:null,slotName:""};const r=l["s-sn"]=V(l)||"";return{slotNode:oe(ne(i,"childNodes"),i.tagName,r)[0],slotName:r}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},lt=(e,t,o=!1)=>{var s,n,l,i,c;const r=e.$hostElement$,d=e.o,u=e.M||z(null,null);var a;const f=(a=t)&&a.O===Qe?t:G(null,null,t);if(L=r.tagName,d.C&&(f.v=f.v||{},d.C.forEach((([m,h])=>{f.v[h]=r[m]}))),o&&f.v)for(const m of Object.keys(f.v))r.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(f.v[m]=r[m]);if(f.O=null,f.i|=4,e.M=f,f.S=u.S=r.shadowRoot||r,W=!(!(1&d.i)||128&d.i),le=r["s-cr"],I=!1,D(u,f,o),_.i|=1,Y){Ae(f.S);for(const m of A){const h=m.k;if(!h["s-ol"]&&w.document){const b=w.document.createTextNode("");b["s-nr"]=h,E(h.parentNode,h["s-ol"]=b,h,o)}}for(const m of A){const h=m.k,b=m.N;if(h.nodeType===1&&o&&(h["s-ih"]=(s=h.hidden)!=null&&s),b){const S=b.parentNode;let g=b.nextSibling;if(g&&g.nodeType===1){let y=(n=h["s-ol"])==null?void 0:n.previousSibling;for(;y;){let p=(l=y["s-nr"])!=null?l:null;if(p&&p["s-sn"]===h["s-sn"]&&S===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===h||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){g=p;break}}y=y.previousSibling}}if((!g&&S!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==g)&&h!==g){if(E(S,h,g,o),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const y=w.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));y["s-hn"]=h["s-hn"],y["s-sn"]=h["s-sn"],y["s-sh"]=h["s-sh"],y["s-sr"]=h["s-sr"],y["s-ol"]=h["s-ol"],y["s-ol"]["s-nr"]=y,E(h.parentNode,y,h,o),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(i=h["s-ih"])!=null&&i)}h&&typeof b["s-rf"]=="function"&&b["s-rf"](b)}else h.nodeType===1&&(h.hidden=!0)}}if(I&&ve(f.S),_.i&=-2,A.length=0,!W&&!(1&d.i)&&r["s-cr"]){const m=f.S.__childNodes||f.S.childNodes;for(const h of m)if(h["s-hn"]!==L&&!h["s-sh"]){if(o&&h["s-ih"]==null&&(h["s-ih"]=(c=h.hidden)!=null&&c),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const b=w.document.createComment("s-nt-"+h.nodeValue);b["s-sn"]=h["s-sn"],E(h.parentNode,b,h,o),h.parentNode.removeChild(h)}}}le=void 0,ce.forEach((m=>m())),ce.length=0,ae.forEach((m=>m())),ae.length=0},Re=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},de=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Re(e,e.R);const o=()=>rt(e,t);if(!t)return Ze(o);queueMicrotask((()=>{o()}))},rt=(e,t)=>{const o=e.$hostElement$,s=o;if(!s)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=U(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=Pe(n,(()=>U(s,"componentWillRender",void 0,o))),Pe(n,(()=>ct(e,s,t)))},Pe=(e,t)=>it(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),it=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",ct=async(e,t,o)=>{var s;const n=e.$hostElement$,l=n["s-rc"];o&&(i=>{const c=i.o,r=i.$hostElement$,d=c.i,u=((a,f)=>{var m,h,b;const S=be(f),g=q.get(S);if(!w.document)return S;if(a=a.nodeType===11?a:w.document,g)if(typeof g=="string"){let y,p=T.get(a=a.head||a);if(p||T.set(a,p=new Set),!p.has(S)){y=w.document.createElement("style"),y.textContent=g;const O=(m=_._)!=null?m:(function(){var v,N,k;return(k=(N=(v=w.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:N.getAttribute("content"))!=null?k:void 0})();if(O!=null&&y.setAttribute("nonce",O),!(1&f.i))if(a.nodeName==="HEAD"){const v=a.querySelectorAll("link[rel=preconnect]"),N=v.length>0?v[v.length-1].nextSibling:a.querySelector("style");a.insertBefore(y,N?.parentNode===a?N:null)}else if("host"in a)if(Q){const v=new((h=a.defaultView)!=null?h:a.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(g),X?a.adoptedStyleSheets.unshift(v):a.adoptedStyleSheets=[v,...a.adoptedStyleSheets]}else{const v=a.querySelector("style");v?v.textContent=g+v.textContent:a.prepend(y)}else a.append(y);1&f.i&&a.insertBefore(y,null),4&f.i&&(y.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(S)}}else{let y=T.get(a);if(y||T.set(a,y=new Set),!y.has(S)){const p=(b=a.defaultView)!=null?b:a.ownerDocument.defaultView;let O;if(g.constructor===p.CSSStyleSheet)O=g;else{O=new p.CSSStyleSheet;for(let v=0;v<g.cssRules.length;v++)O.insertRule(g.cssRules[v].cssText,v)}X?a.adoptedStyleSheets.push(O):a.adoptedStyleSheets=[...a.adoptedStyleSheets,O],y.add(S)}}return S})(r.shadowRoot?r.shadowRoot:r.getRootNode(),c);10&d&&(r["s-sc"]=u,r.classList.add(u+"-h"))})(e),at(e,t,n,o),l&&(l.map((i=>i())),n["s-rc"]=void 0);{const i=(s=n["s-p"])!=null?s:[],c=()=>dt(e);i.length===0?c():(Promise.all(i).then(c).catch(c),e.i|=4,i.length=0)}},at=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,lt(e,t,s)}catch(n){P(n,e.$hostElement$)}return null},dt=e=>{const t=e.$hostElement$,o=t,s=e.R;U(o,"componentDidRender",void 0,t),64&e.i?U(o,"componentDidUpdate",void 0,t):(e.i|=64,ft(t),U(o,"componentDidLoad",void 0,t),e.L(t),s||ut()),e.A&&(e.A(),e.A=void 0),512&e.i&&se((()=>de(e,!1))),e.i&=-517},ut=()=>{se((()=>tt(w,"appload",{detail:{namespace:"gids-core-web"}})))},U=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){P(n,s)}},ft=e=>e.classList.add("hydrated"),Le=(e,t,o,s)=>{const n=x(e);if(!n)return;const l=e,i=n.l.get(t),c=n.i,r=l;o=Oe(o,s.t[t][0],!!(64&s.i));const d=Number.isNaN(i)&&Number.isNaN(o);if(o!==i&&!d){if(n.l.set(t,o),s.F){const u=s.F[t];u&&u.map((a=>{try{const[[f,m]]=Object.entries(a);(128&c||1&m)&&(r?r[f](o,i,t):n.T.push((()=>{n.D[f](o,i,t)})))}catch(f){P(f,l)}}))}if(2&c){if(r.componentShouldUpdate&&r.componentShouldUpdate(o,i,t)===!1&&!(16&c))return;16&c||de(n,!1)}}},ht=(e,t,o)=>{var s,n;const l=e.prototype;64&t.i&&1&o&&Ge.forEach((i=>{const c=l[i];Object.defineProperty(l,i,{value(...r){var d;const u=x(this),a=this;a?typeof c=="function"&&c.call(a,...r):(d=u?.H)==null||d.then((f=>{const m=f[i];typeof m=="function"&&m.call(f,...r)}))}})}));{e.watchers&&!t.F&&(t.F=Ne(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const i=Object.entries((s=t.t)!=null?s:{});i.map((([c,[r]])=>{if(31&r||32&r){const{get:d,set:u}=M(l,c)||{};d&&(t.t[c][0]|=2048),u&&(t.t[c][0]|=4096),Object.defineProperty(l,c,{get(){return d?d.apply(this):(a=c,x(this).l.get(a));var a},configurable:!0,enumerable:!0}),Object.defineProperty(l,c,{set(a){const f=x(this);if(f){if(u)return(32&r?this[c]:f.$hostElement$[c])===void 0&&f.l.get(c)&&(a=f.l.get(c)),u.apply(this,[Oe(a,r,!!(64&t.i))]),void Le(this,c,a=32&r?this[c]:f.$hostElement$[c],t);Le(this,c,a,t)}}})}}));{const c=new Map;l.attributeChangedCallback=function(r,d,u){_.jmp((()=>{var a;const f=c.get(r),m=x(this);if(this.hasOwnProperty(f),l.hasOwnProperty(f)&&typeof this[f]=="number"&&this[f]==u)return;if(f==null){const y=m?.i;if(m&&y&&!(8&y)&&u!==d){const p=this,O=(a=t.F)==null?void 0:a[r];O?.forEach((v=>{const[[N,k]]=Object.entries(v);p[N]!=null&&(128&y||1&k)&&p[N].call(p,u,d,r)}))}return}const h=i.find((([y])=>y===f)),b=h&&4&h[1][0],S=b&&u===null&&this[f]===void 0;b&&(u=u!==null&&u!=="false");const g=Object.getOwnPropertyDescriptor(l,f);S||u==this[f]||g.get&&!g.set||(this[f]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...i.filter((([r,d])=>31&d[0])).map((([r,d])=>{var u;const a=d[1]||r;return c.set(a,r),512&d[0]&&((u=t.C)==null||u.push([r,a])),a}))]))}}return e},pt=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.W=t[3],o.F=Ne(e.F),o.P=e.P,o.U=e.U,o.C=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((l,i)=>{const c={i:0,$hostElement$:l,o:i,l:new Map,B:new Map};c.H=new Promise((d=>c.L=d)),l["s-p"]=[],l["s-rc"]=[];const r=c;l.__stencil__getHostRef=()=>r,512&i.i&&qe(l,c)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const l=x(this);if(!l)return;Me(this,l,o.W),this.__hasHostListenerAttached=!0}(l=>{if(!(1&_.i)){const i=x(l);if(!i)return;const c=i.o;if(1&i.i)Me(l,i,c.W),i?.D||i?.H&&i.H.then((()=>{}));else{i.i|=1,12&c.i&&(r=>{if(!w.document)return;const d=r["s-cr"]=w.document.createComment("");d["s-cn"]=!0,E(r,d,r.firstChild)})(l);{let r=l;for(;r=r.parentNode||r.host;)if(r["s-p"]){Re(i,i.R=r);break}}c.t&&Object.entries(c.t).map((([r,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(l,r)){const u=l[r];delete l[r],l[r]=u}})),(async(r,d,u)=>{let a;try{if(!(32&d.i)&&(d.i|=32,a=r.constructor,customElements.whenDefined(r.localName).then((()=>d.i|=128)),a&&a.style)){let h;typeof a.style=="string"&&(h=a.style);const b=be(u);q.has(b)||((S,g,y)=>{let p=q.get(S);Q&&y?(p=p||new CSSStyleSheet,typeof p=="string"?p=g:p.replaceSync(g)):p=g,q.set(S,p)})(b,h,!!(1&u.i))}const f=d.R,m=()=>de(d,!0);f&&f["s-rc"]?f["s-rc"].push(m):m()}catch(f){P(f,r),d.A&&(d.A(),d.A=void 0),d.L&&d.L(r)}})(l,i,c)}}})(this),s&&s.call(this)},disconnectedCallback(){(async l=>{if(!(1&_.i)){const i=x(l);i?.V&&(i.V.map((c=>c())),i.V=void 0)}T.has(l)&&T.delete(l),l.shadowRoot&&T.has(l.shadowRoot)&&T.delete(l.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Je.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),ht(e,o,3)}catch(s){return P(s),e}},Me=(e,t,o)=>{o&&w.document&&o.map((([s,n,l])=>{const i=yt(w.document,e,s),c=mt(t,l),r=gt(s);_.ael(i,n,c,r),(t.V=t.V||[]).push((()=>_.rel(i,n,c,r)))}))},mt=(e,t)=>o=>{try{e.$hostElement$[t](o)}catch(s){P(s,e.$hostElement$)}},yt=(e,t,o)=>8&o?w:t,gt=e=>Ie?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Ot(e){return e}const H=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let De=!1;H&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(H):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let ue=null;const fe=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{He()})):void 0,He=()=>{if(H===void 0)return!1;const e=(()=>{if(H===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const s=document.styleSheets.item(o);if(s)try{let n=-1,l=0;for(let i=0;i<s.cssRules.length;i++){const c=s.cssRules.item(i);if(c?.cssText.startsWith("gids-global-styles-start"))n=i;else if(n>-1){if(c?.cssText.startsWith("gids-global-styles-end")){l=i-n+1;break}t.push(c)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:l,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return fe!==void 0&&t!==ue&&(ue&&fe.disconnect(),t instanceof Element&&fe.observe(t,{childList:!0,characterData:!0,subtree:!0}),ue=t),H.replaceSync((o=>o.rules.map((s=>s.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:l}=o;for(let i=0;i<n;i++)l.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},vt=()=>(De||(De=He()),H);function Fe(e){var t,o,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=Fe(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function St(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Fe(e))&&(s&&(s+=" "),s+=t);return s}const bt=Object.freeze(Object.defineProperty({__proto__:null,getGidsScrimClassNames:e=>St("gids-scrim",e)},Symbol.toStringTag,{value:"Module"})),{getGidsScrimClassNames:Ve}=bt,We=pt(class extends ze{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.activeClasses=""}handleExtraClassesChange(e){this.activeClasses=Ve(e)}connectedCallback(){const e=vt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this.activeClasses=Ve(this.extraClasses)}render(){return G("div",{key:"43ae2df4c05e5ce29bb2cd6755ef4472e9a6e078",class:this.activeClasses,part:"root"},G("slot",{key:"2610048a1d440e95632575b232ca7d923f66cea5"}))}get _el(){return this}static get watchers(){return{extraClasses:[{handleExtraClassesChange:0}]}}static get style(){return".gids-scrim{display:flex;flex-direction:column;background-color:var(--gids-color-background-scrim);height:100vh !important;position:absolute;top:0;bottom:0;left:0;right:0;z-index:1001;align-items:center;justify-content:center;backdrop-filter:blur(12)}"}},[257,"gids-scrim",{extraClasses:[513,"extra-classes"],activeClasses:[32]},void 0,{extraClasses:[{handleExtraClassesChange:0}]}]);function Be(){typeof customElements<"u"&&["gids-scrim"].forEach((e=>{e==="gids-scrim"&&(customElements.get(e)||customElements.define(e,We))}))}Be();const wt=We,Nt=Be;R.GidsScrim=wt,R.defineCustomElement=Nt,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})}));
|