@ganpatiinfo/gids-core-web 13.0.0 → 14.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/index.css +912 -56
- package/dist/css/index.css.map +1 -1
- package/dist/gids-action-bar.js +1 -1
- package/dist/gids-activity-gauge.js +1 -1
- package/dist/gids-advanced-tooltip.d.ts +11 -0
- package/dist/gids-advanced-tooltip.js +1 -0
- package/dist/gids-bar-chart.js +1 -1
- package/dist/gids-calendar-header-panel.js +1 -1
- package/dist/gids-calendar-month-list.js +1 -1
- package/dist/gids-calendar-year-list.js +1 -1
- package/dist/gids-calendar.js +1 -1
- package/dist/gids-chart-legend-item.js +1 -1
- package/dist/gids-chart-legend.js +1 -1
- package/dist/gids-chart.js +1 -1
- package/dist/gids-chevron-button.js +1 -1
- package/dist/gids-dot.js +1 -1
- package/dist/gids-dropdown-field.js +1 -1
- package/dist/gids-dropdown-picker.js +1 -1
- package/dist/gids-dropdown.js +1 -1
- package/dist/gids-expansion-body-list-item.js +1 -1
- package/dist/gids-expansion-body-list.js +1 -1
- package/dist/gids-expansion-group.js +1 -1
- package/dist/gids-expansion.js +1 -1
- package/dist/gids-field.js +1 -1
- package/dist/gids-filter.js +1 -1
- package/dist/gids-icon.js +1 -1
- package/dist/gids-input.js +1 -1
- package/dist/gids-line-chart.js +1 -1
- package/dist/gids-md-table.js +1 -1
- package/dist/gids-overflow-container.js +1 -1
- package/dist/gids-overlay-provider.js +1 -1
- package/dist/gids-password-field.js +1 -1
- package/dist/gids-pie-chart.js +1 -1
- package/dist/gids-popover.js +1 -1
- package/dist/gids-scrim.js +1 -1
- package/dist/gids-tab-item.js +1 -1
- package/dist/gids-tab.js +1 -1
- package/dist/gids-text-field.js +1 -1
- package/dist/gids-toggle-button.js +1 -1
- package/dist/gids-tooltip.js +1 -1
- package/dist/{p-pSb81aE0.js → p-1fMG8D4t.js} +1 -1
- package/dist/p-BBszCFSA.js +1 -0
- package/dist/p-BKcvOO8o.js +1 -0
- package/dist/p-BV0jg2ix.js +1 -0
- package/dist/p-BVA1LAFM.js +1 -0
- package/dist/p-BYt-9DKT.js +1 -0
- package/dist/{p-C3We7Q8Q.js → p-Bab1qxsC.js} +1 -1
- package/dist/{p-C3w3wdCt.js → p-Bh8qYmAS.js} +1 -1
- package/dist/{p-BSbOhfLZ.js → p-BzzDNTlP.js} +1 -1
- package/dist/{p-C2O_pGky.js → p-CU5JIcEp.js} +1 -1
- package/dist/{p-Chqeexny.js → p-C_RW9IFo.js} +1 -1
- package/dist/{p-ub0GuVHb.js → p-CatvDz2b.js} +1 -1
- package/dist/{p-BVAtja26.js → p-CnVmK0dH.js} +1 -1
- package/dist/p-D5DRatg0.js +1 -0
- package/dist/{p-6APCjBEI.js → p-DAnkY5ik.js} +1 -1
- package/dist/p-DMVCMnTe.js +1 -0
- package/dist/p-DUUxlY-K.js +1 -0
- package/dist/{p-COHuQEfZ.js → p-Dan1sCNk.js} +1 -1
- package/dist/{p-BCVFQSjK.js → p-DslOQITw.js} +1 -1
- package/dist/{p-DUojHltk.js → p-_HwuS8vK.js} +1 -1
- package/dist/{p-4lN1OdcA.js → p-jzl-rPxB.js} +1 -1
- package/dist/types/components/html/GidsBasicTableBody/GidsBasicTableBody.d.ts +28 -4
- package/dist/types/components/html/GidsBasicTableHead/GidsBasicTableHead.d.ts +15 -0
- package/dist/types/components/html/GidsBasicTableHeader/GidsBasicTableHeader.d.ts +22 -3
- package/dist/types/components/html/GidsBasicTableRow/GidsBasicTableRow.d.ts +19 -3
- package/dist/types/components/html/GidsBsTable/GidsBsTable.d.ts +26 -3
- package/dist/types/components/html/GidsColorSwatch/GidsColorSwatch.d.ts +6 -0
- package/dist/types/components/html/GidsMatrixTable/GidsMatrixTable.d.ts +11 -0
- package/dist/types/components/html/GidsMatrixTableBody/GidsMatrixTableBody.d.ts +11 -0
- package/dist/types/components/html/GidsPagination/GidsPagination.d.ts +10 -0
- package/dist/types/components/html/GidsPaginator/GidsPaginator.d.ts +6 -0
- package/dist/types/components/html/GidsPaginatorItem/GidsPaginatorItem.d.ts +7 -0
- package/dist/types/components/html/GidsTable/GidsTable.d.ts +16 -0
- package/dist/types/components/html/GidsTableBody/GidsTableBody.d.ts +11 -0
- package/dist/types/components/html/GidsTableCell/GidsTableCell.d.ts +21 -0
- package/dist/types/components/html/GidsTableEntry/GidsTableEntry.d.ts +9 -0
- package/dist/types/components/html/GidsTableFooter/GidsTableFooter.d.ts +12 -0
- package/dist/types/components/html/GidsTableFooterControl/GidsTableFooterControl.d.ts +8 -0
- package/dist/types/components/html/GidsTableHeader/GidsTableHeader.d.ts +9 -0
- package/dist/types/components/html/GidsTableRow/GidsTableRow.d.ts +9 -0
- package/dist/types/components/html/GidsTableToolbar/GidsTableToolbar.d.ts +11 -0
- package/dist/types/components/html/_GidsPaginationItem/GidsPaginationItem.d.ts +10 -0
- package/dist/types/components/webComponents/GidsAdvancedTooltip/GidsAdvancedTooltip.d.ts +28 -0
- package/dist/types/components/webComponents/GidsBarChart/GidsBarChart.d.ts +7 -0
- package/dist/types/components/webComponents/GidsChartLegendItem/GidsChartLegendItem.d.ts +7 -0
- package/dist/types/components/webComponents/GidsLineChart/GidsLineChart.d.ts +7 -0
- package/dist/types/components/webComponents/GidsMdTable/GidsMdTable.d.ts +12 -9
- package/dist/types/components.d.ts +114 -17
- package/dist-bundled/es/gids-action-bar.js +3 -3
- package/dist-bundled/es/gids-activity-gauge.js +4 -4
- package/dist-bundled/es/gids-advanced-tooltip.js +6 -0
- package/dist-bundled/es/gids-bar-chart.js +1 -1
- package/dist-bundled/es/gids-calendar-header-panel.js +3 -3
- package/dist-bundled/es/gids-calendar-month-list.js +3 -3
- package/dist-bundled/es/gids-calendar-year-list.js +4 -4
- package/dist-bundled/es/gids-calendar.js +23 -23
- package/dist-bundled/es/gids-chart-legend-item.js +4 -4
- package/dist-bundled/es/gids-chart-legend.js +4 -4
- package/dist-bundled/es/gids-chart.js +38 -34
- package/dist-bundled/es/gids-chevron-button.js +7 -7
- package/dist-bundled/es/gids-dot.js +1 -1
- package/dist-bundled/es/gids-dropdown-field.js +6 -6
- package/dist-bundled/es/gids-dropdown-picker.js +2 -2
- package/dist-bundled/es/gids-dropdown.js +3 -3
- package/dist-bundled/es/gids-expansion-body-list-item.js +3 -3
- package/dist-bundled/es/gids-expansion-body-list.js +2 -2
- package/dist-bundled/es/gids-expansion-group.js +13 -13
- package/dist-bundled/es/gids-expansion.js +6 -6
- package/dist-bundled/es/gids-field.js +3 -3
- package/dist-bundled/es/gids-filter.js +4 -4
- package/dist-bundled/es/gids-icon.js +1 -1
- package/dist-bundled/es/gids-input.js +4 -4
- package/dist-bundled/es/gids-line-chart.js +1 -1
- package/dist-bundled/es/gids-md-table.js +121 -88
- package/dist-bundled/es/gids-overflow-container.js +1 -1
- package/dist-bundled/es/gids-overlay-provider.js +1 -1
- package/dist-bundled/es/gids-password-field.js +9 -9
- package/dist-bundled/es/gids-pie-chart.js +4 -4
- package/dist-bundled/es/gids-popover.js +2 -2
- package/dist-bundled/es/gids-scrim.js +7 -7
- package/dist-bundled/es/gids-tab-item.js +1 -1
- package/dist-bundled/es/gids-tab.js +1 -1
- package/dist-bundled/es/gids-text-field.js +9 -9
- package/dist-bundled/es/gids-toggle-button.js +1 -1
- package/dist-bundled/es/gids-tooltip.js +2 -2
- package/dist-bundled/es/{p-pSb81aE0-WzAszFOQ.js → p-1fMG8D4t-CIEDM74u.js} +2 -2
- package/dist-bundled/es/p-BBszCFSA-BN0-eWJX.js +115 -0
- package/dist-bundled/es/p-BKcvOO8o-L5KtCP_k.js +1024 -0
- package/dist-bundled/es/{p-C3xv7tfs-DHsjc3Ns.js → p-BV0jg2ix-DI0fZl_6.js} +15 -12
- package/dist-bundled/es/p-BVA1LAFM-DdsY_n8R.js +129 -0
- package/dist-bundled/es/{p-CI-sN9Lr-BvWzRJw-.js → p-BYt-9DKT-DByyhIUd.js} +13 -13
- package/dist-bundled/es/{p-C3We7Q8Q-2EoDLj5m.js → p-Bab1qxsC-BMbD0lEy.js} +2 -2
- package/dist-bundled/es/{p-C3w3wdCt-BTH-jYlI.js → p-Bh8qYmAS-DhSpwB20.js} +4 -4
- package/dist-bundled/es/{p-BSbOhfLZ-BdEHhmFM.js → p-BzzDNTlP-BkSyrafk.js} +8 -8
- package/dist-bundled/es/{p-C2O_pGky-CP4PN55D.js → p-CU5JIcEp-CuVpd-eZ.js} +10 -10
- package/dist-bundled/es/{p-Chqeexny-BuJ-PhNi.js → p-C_RW9IFo-DNQqJS8t.js} +5 -5
- package/dist-bundled/es/{p-ub0GuVHb-C9vrhXyF.js → p-CatvDz2b-C-Hlv2Xb.js} +9 -9
- package/dist-bundled/es/{p-BVAtja26-C16IjShX.js → p-CnVmK0dH-CbmnN-RR.js} +6 -6
- package/dist-bundled/es/{p-_SIWct9h-jMYFZ-VO.js → p-D5DRatg0-DtQL-DQg.js} +2 -2
- package/dist-bundled/es/{p-6APCjBEI-BREg63Xr.js → p-DAnkY5ik-ChPtRpOX.js} +5 -5
- package/dist-bundled/es/p-DMVCMnTe-D4eJKJsj.js +111 -0
- package/dist-bundled/es/p-DUUxlY-K-mypBhVt6.js +99 -0
- package/dist-bundled/es/{p-COHuQEfZ-DcUxD9TI.js → p-Dan1sCNk-mWcyyplK.js} +11 -11
- package/dist-bundled/es/{p-BCVFQSjK-CKrYrI4b.js → p-DslOQITw-BfwtLWqG.js} +7 -7
- package/dist-bundled/es/{p-DUojHltk-BQ0ryfLD.js → p-_HwuS8vK-C0w4T5rV.js} +2 -2
- package/dist-bundled/es/{p-4lN1OdcA-xYP8gbDc.js → p-jzl-rPxB-CC735zJp.js} +7 -7
- package/dist-bundled/umd/gids-action-bar.umd.js +2 -2
- package/dist-bundled/umd/gids-activity-gauge.umd.js +2 -2
- package/dist-bundled/umd/gids-advanced-tooltip.umd.js +5 -0
- package/dist-bundled/umd/gids-bar-chart.umd.js +8 -8
- package/dist-bundled/umd/gids-calendar-header-panel.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar-month-list.umd.js +2 -2
- package/dist-bundled/umd/gids-calendar-year-list.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar.umd.js +1 -1
- package/dist-bundled/umd/gids-chart-legend-item.umd.js +2 -2
- package/dist-bundled/umd/gids-chart-legend.umd.js +1 -1
- package/dist-bundled/umd/gids-chart.umd.js +5 -5
- package/dist-bundled/umd/gids-chevron-button.umd.js +1 -1
- package/dist-bundled/umd/gids-dot.umd.js +1 -1
- package/dist-bundled/umd/gids-dropdown-field.umd.js +1 -1
- package/dist-bundled/umd/gids-dropdown-picker.umd.js +1 -1
- package/dist-bundled/umd/gids-dropdown.umd.js +1 -1
- package/dist-bundled/umd/gids-expansion-body-list-item.umd.js +1 -1
- package/dist-bundled/umd/gids-expansion-body-list.umd.js +1 -1
- package/dist-bundled/umd/gids-expansion-group.umd.js +1 -1
- package/dist-bundled/umd/gids-expansion.umd.js +1 -1
- package/dist-bundled/umd/gids-field.umd.js +1 -1
- package/dist-bundled/umd/gids-filter.umd.js +2 -2
- package/dist-bundled/umd/gids-icon.umd.js +1 -1
- package/dist-bundled/umd/gids-input.umd.js +1 -1
- package/dist-bundled/umd/gids-line-chart.umd.js +2 -2
- package/dist-bundled/umd/gids-md-table.umd.js +2 -2
- package/dist-bundled/umd/gids-overflow-container.umd.js +1 -1
- package/dist-bundled/umd/gids-overlay-provider.umd.js +1 -1
- package/dist-bundled/umd/gids-password-field.umd.js +1 -1
- package/dist-bundled/umd/gids-pie-chart.umd.js +2 -2
- package/dist-bundled/umd/gids-popover.umd.js +2 -2
- package/dist-bundled/umd/gids-scrim.umd.js +1 -1
- package/dist-bundled/umd/gids-tab-item.umd.js +2 -2
- package/dist-bundled/umd/gids-tab.umd.js +1 -1
- package/dist-bundled/umd/gids-text-field.umd.js +1 -1
- package/dist-bundled/umd/gids-toggle-button.umd.js +2 -2
- package/dist-bundled/umd/gids-tooltip.umd.js +1 -1
- package/dist-bundled/umd-complete/gids-core-web.umd.js +8 -8
- package/package.json +17 -9
- package/dist/p-C3xv7tfs.js +0 -1
- package/dist/p-C56G7JRy.js +0 -1
- package/dist/p-CI-sN9Lr.js +0 -1
- package/dist/p-DO0MyFf4.js +0 -1
- package/dist/p-_SIWct9h.js +0 -1
- package/dist/p-a3JfEYJp.js +0 -1
- package/dist/types/components/html/GidsBasicTableCell/GidsBasicTableCell.d.ts +0 -5
- package/dist-bundled/es/p-C56G7JRy-BCGZG2-3.js +0 -88
- package/dist-bundled/es/p-DO0MyFf4-Ddg5sVMx.js +0 -115
- package/dist-bundled/es/p-a3JfEYJp-DyhDK6VZ.js +0 -1128
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
(function(X,se){typeof exports=="object"&&typeof module<"u"?se(exports):typeof define=="function"&&define.amd?define(["exports"],se):(X=typeof globalThis<"u"?globalThis:X||self,se(X.gidsCoreWebGidsAdvancedTooltip={}))})(this,(function(X){"use strict";function se(e,t,o){const n=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==n;){const s=Object.getOwnPropertyDescriptor(e,t);if(s&&(!o||s.get))return s;e=Object.getPrototypeOf(e)}}var de,vn=(e,t)=>{var o;Object.entries((o=t.o.t)!=null?o:{}).map((([n,[s]])=>{if(31&s||32&s){const i=e[n],r=se(Object.getPrototypeOf(e),n,!0)||Object.getOwnPropertyDescriptor(e,n);r&&Object.defineProperty(e,n,{get(){return r.get.call(this)},set(a){r.set.call(this,a)},configurable:!0,enumerable:!0}),t.l.has(n)?e[n]=t.l.get(n):i!==void 0&&(e[n]=i)}}))},B=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},mt=(e,t)=>t in e,Y=(e,t)=>(0,console.error)(e,t),xe=new Map,gt="http://www.w3.org/1999/xlink",yn=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],A=typeof window<"u"?window:{},vt=A.HTMLElement||class{},C={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)},bn=(()=>{var e;let t=!1;try{(e=A.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),Me=(()=>{try{return!!A.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),Fe=!!Me&&!!A.document&&Object.getOwnPropertyDescriptor(A.document.adoptedStyleSheets,"length").writable,We=!1,yt=[],bt=[],wn=(e,t)=>o=>{e.push(o),We||(We=!0,4&C.i?Ve(Be):C.raf(Be))},wt=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(o){Y(o)}e.length=0},Be=()=>{wt(yt),wt(bt),(We=yt.length>0)&&C.raf(Be)},Ve=e=>Promise.resolve(void 0).then(e),Sn=wn(bt);function xn(){const e=this.attachShadow({mode:"open"});de===void 0&&(de=null),de&&(Fe?e.adoptedStyleSheets.push(de):e.adoptedStyleSheets=[...e.adoptedStyleSheets,de])}var St=e=>{const t=ze(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&He(t,e.tagName).forEach((n=>{n.nodeType===1&&n.tagName==="SLOT-FB"&&(n.hidden=!!_n(n,ue(n),!1).length)}));let o=0;for(o=0;o<t.length;o++){const n=t[o];n.nodeType===1&&ze(n,"childNodes").length&&St(n)}};function He(e,t,o){let n,s=0,i=[];for(;s<e.length;s++){if(n=e[s],n["s-sr"]&&(!t||n["s-hn"]===t)&&(o===void 0||ue(n)===o)&&(i.push(n),o!==void 0))return i;i=[...i,...He(n.childNodes,t,o)]}return i}var _n=(e,t,o=!0)=>{const n=[];(o&&e["s-sr"]||!e["s-sr"])&&n.push(e);let s=e;for(;s=s.nextSibling;)ue(s)!==t||!o&&s["s-sr"]||n.push(s);return n},xt=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",ue=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 Ie,K,I=new WeakMap,_t=e=>"sc-"+e.p,Ge=e=>(e=typeof e)=="object"||e==="function",P=(e,t,...o)=>{let n=null,s=null,i=null,r=!1,a=!1;const l=[],f=c=>{for(let u=0;u<c.length;u++)n=c[u],Array.isArray(n)?f(n):n!=null&&typeof n!="boolean"&&((r=typeof e!="function"&&!Ge(n))&&(n=String(n)),r&&a?l[l.length-1].h+=n:l.push(r?_e(null,n):n),a=r)};if(f(o),t){t.key&&(s=t.key),t.name&&(i=t.name);{const c=t.className||t.class;c&&(t.class=typeof c!="object"?c:Object.keys(c).filter((u=>c[u])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,l,An);const d=_e(e,null);return d.v=t,l.length>0&&(d.m=l),d.$=s,d.j=i,d},_e=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),At={},An={forEach:(e,t)=>e.map(Ot).forEach(t),map:(e,t)=>e.map(Ot).map(t).map(On)},Ot=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),On=e=>{if(typeof e.vtag=="function"){const o={...e.vattrs};return e.vkey&&(o.key=e.vkey),e.vname&&(o.name=e.vname),P(e.vtag,o,...e.vchildren||[])}const t=_e(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Ct=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let o=!1;for(const s of t){if(o)break;for(const i of e[s])if(typeof i=="string"){o=!0;break}}if(!o)return e;const n={};for(const s of t)n[s]=e[s].map((i=>typeof i=="string"?{[i]:0}:i));return n},Rt=(e,t,o)=>e==null||Ge(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,Cn=(e,t,o)=>{const n=C.ce(t,o);return e.dispatchEvent(n),n},Nt=(e,t,o,n,s,i)=>{if(o===n)return;let r=mt(e,t),a=t.toLowerCase();if(t==="class"){const l=e.classList,f=Et(o);let d=Et(n);l.remove(...f.filter((c=>c&&!d.includes(c)))),l.add(...d.filter((c=>c&&!f.includes(c))))}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&&En(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 d=B(e);if(d&&d.o&&d.o.t){const c=d.o.t[l];c&&c[1]&&(f=c[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=Ge(n);if((r||l&&n!==null)&&!s)try{if(e.tagName.includes("-"))e[t]!==n&&(e[t]=n);else{const d=n??"";t==="list"?r=!1:o!=null&&e[t]===d||(typeof e.__lookupSetter__(t)=="function"?e[t]=d:e.setAttribute(t,d))}}catch{}let f=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,f=!0),n==null||n===!1?n===!1&&e.getAttribute(t)!==""||(f?e.removeAttributeNS(gt,t):e.removeAttribute(t)):(!r||4&i||s)&&!l&&e.nodeType===1&&(n=n===!0?"":n,f?e.setAttributeNS(gt,t,n):e.setAttribute(t,n))}}else if(t=t[2]==="-"?t.slice(3):mt(A,a)?a.slice(2):a[2]+t.slice(3),o||n){const l=t.endsWith(Pt);t=t.replace(Nn,""),o&&C.rel(e,t,o,l),n&&C.ael(e,t,n,l)}}},Rn=/\s/,Et=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(Rn):[]),Pt="Capture",Nn=new RegExp(Pt+"$"),Ue=(e,t,o)=>{const n=t.S.nodeType===11&&t.S.host?t.S.host:t.S,s=e&&e.v||{},i=t.v||{};for(const r of kt(Object.keys(s)))r in i||Nt(n,r,s[r],void 0,o,t.i);for(const r of kt(Object.keys(i)))Nt(n,r,s[r],i[r],o,t.i)};function kt(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var he=!1,Ae=!1,Oe=!1,E=!1,qe=[],Xe=[],Ce=(e,t,o)=>{var n;const s=t.m[o];let i,r,a,l=0;if(he||(Oe=!0,s.O==="slot"&&(s.i|=s.m?2:1)),s.h!=null)i=s.S=A.document.createTextNode(s.h);else if(1&s.i)i=s.S=A.document.createTextNode(""),Ue(null,s,E);else{if(E||(E=s.O==="svg"),!A.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(i=s.S=A.document.createElementNS(E?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!he&&2&s.i?"slot-fb":s.O),E&&s.O==="foreignObject"&&(E=!1),Ue(null,s,E),s.m){const f=s.O==="template"?i.content:i;for(l=0;l<s.m.length;++l)r=Ce(e,s,l),r&&f.appendChild(r)}s.O==="svg"?E=!1:i.tagName==="foreignObject"&&(E=!0)}return i["s-hn"]=K,3&s.i&&(i["s-sr"]=!0,i["s-cr"]=Ie,i["s-sn"]=s.j||"",i["s-rf"]=(n=s.v)==null?void 0:n.ref,(function(f){if(f.assignedElements||f.assignedNodes||!f["s-sr"])return;const d=c=>(function(u){const p=[],h=this["s-sn"];u?.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 y=this["s-cr"].parentElement;return(y.__childNodes?y.childNodes:(b=>{const g=[];for(let v=0;v<b.length;v++){const m=b[v]["s-nr"]||void 0;m&&m.isConnected&&g.push(m)}return g})(y.childNodes)).forEach((b=>{h===ue(b)&&p.push(b)})),c?p.filter((b=>b.nodeType===1)):p}).bind(f);f.assignedElements=d(!0),f.assignedNodes=d(!1)})(i),a=e&&e.m&&e.m[o],a&&a.O===s.O&&e.S&&Tt(e.S)),i},Tt=e=>{C.i|=1;const t=e.closest(K.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((s=>s["s-cr"])),n=Array.from(e.__childNodes||e.childNodes);for(const s of o?n.reverse():n)s["s-sh"]!=null&&($(t,s,o??null),s["s-sh"]=void 0,Oe=!0)}C.i&=-2},Re=(e,t)=>{C.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 s=o[n];s["s-hn"]!==K&&s["s-ol"]&&($(pe(s).parentNode,s,pe(s)),s["s-ol"].remove(),s["s-ol"]=void 0,s["s-sh"]=void 0,Oe=!0),t&&Re(s,t)}C.i&=-2},$t=(e,t,o,n,s,i)=>{let r,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===K&&(a=a.shadowRoot),o.O==="template"&&(a=a.content);s<=i;++s)n[s]&&(r=Ce(null,o,s),r&&(n[s].S=r,$(a,r,pe(t))))},Lt=(e,t,o)=>{for(let n=t;n<=o;++n){const s=e[n];if(s){const i=s.S;Dt(s),i&&(Ae=!0,i["s-ol"]?i["s-ol"].remove():Re(i,!0),i.remove())}}},Ne=(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,ie=(e,t,o=!1)=>{const n=t.S=e.S,s=e.m,i=t.m,r=t.O,a=t.h;let l;a==null?(E=r==="svg"||r!=="foreignObject"&&E,r!=="slot"||he||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Tt(t.S.parentElement)),Ue(e,t,E),s!==null&&i!==null?((f,d,c,u,p=!1)=>{let h,y,b=0,g=0,v=0,m=0,S=d.length-1,w=d[0],x=d[S],_=u.length-1,O=u[0],R=u[_];const T=c.O==="template"?f.content:f;for(;b<=S&&g<=_;)if(w==null)w=d[++b];else if(x==null)x=d[--S];else if(O==null)O=u[++g];else if(R==null)R=u[--_];else if(Ne(w,O,p))ie(w,O,p),w=d[++b],O=u[++g];else if(Ne(x,R,p))ie(x,R,p),x=d[--S],R=u[--_];else if(Ne(w,R,p))w.O!=="slot"&&R.O!=="slot"||Re(w.S.parentNode,!1),ie(w,R,p),$(T,w.S,x.S.nextSibling),w=d[++b],R=u[--_];else if(Ne(x,O,p))w.O!=="slot"&&R.O!=="slot"||Re(x.S.parentNode,!1),ie(x,O,p),$(T,x.S,w.S),x=d[--S],O=u[++g];else{for(v=-1,m=b;m<=S;++m)if(d[m]&&d[m].$!==null&&d[m].$===O.$){v=m;break}v>=0?(y=d[v],y.O!==O.O?h=Ce(d&&d[g],c,v):(ie(y,O,p),d[v]=void 0,h=y.S),O=u[++g]):(h=Ce(d&&d[g],c,g),O=u[++g]),h&&$(pe(w.S).parentNode,h,pe(w.S))}b>S?$t(f,u[_+1]==null?null:u[_+1].S,c,u,g,_):g>_&&Lt(d,b,S)})(n,s,t,i,o):i!==null?(e.h!==null&&(n.textContent=""),$t(n,null,t,i,0,i.length-1)):!o&&s!==null&&Lt(s,0,s.length-1),E&&r==="svg"&&(E=!1)):(l=n["s-cr"])?l.parentNode.textContent=a:e.h!==a&&(n.data=a)},V=[],jt=e=>{let t,o,n;const s=e.__childNodes||e.childNodes;for(const i of s){if(i["s-sr"]&&(t=i["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const r=i["s-sn"];for(n=o.length-1;n>=0;n--)if(t=o[n],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===i["s-hn"]||t["s-sh"]&&t["s-sh"]===i["s-hn"]))if(xt(t,r)){let a=V.find((l=>l.k===t));Ae=!0,t["s-sn"]=t["s-sn"]||r,a?(a.k["s-sh"]=i["s-hn"],a.N=i):(t["s-sh"]=i["s-hn"],V.push({N:i,k:t})),t["s-sr"]&&V.map((l=>{xt(l.k,t["s-sn"])&&(a=V.find((f=>f.k===t)),a&&!l.N&&(l.N=a.N))}))}else V.some((a=>a.k===t))||V.push({k:t})}i.nodeType===1&&jt(i)}},Dt=e=>{e.v&&e.v.ref&&qe.push((()=>e.v.ref(null))),e.m&&e.m.map(Dt)},En=(e,t)=>{Xe.push((()=>e(t)))},$=(e,t,o,n)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:s}=(function(i,r){var a;if(!(r=r||((a=i["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const l=i["s-sn"]=ue(i)||"";return{slotNode:He(ze(r,"childNodes"),r.tagName,l)[0],slotName:l}})(t);return s&&!n&&s.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},Pn=(e,t,o=!1)=>{var n,s,i,r,a;const l=e.$hostElement$,f=e.o,d=e.M||_e(null,null);var c;const u=(c=t)&&c.O===At?t:P(null,null,t);if(K=l.tagName,f.C&&(u.v=u.v||{},f.C.forEach((([p,h])=>{u.v[h]=l[p]}))),o&&u.v)for(const p of Object.keys(u.v))l.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(u.v[p]=l[p]);if(u.O=null,u.i|=4,e.M=u,u.S=d.S=l.shadowRoot||l,he=!(!(1&f.i)||128&f.i),Ie=l["s-cr"],Ae=!1,ie(d,u,o),C.i|=1,Oe){jt(u.S);for(const p of V){const h=p.k;if(!h["s-ol"]&&A.document){const y=A.document.createTextNode("");y["s-nr"]=h,$(h.parentNode,h["s-ol"]=y,h,o)}}for(const p of V){const h=p.k,y=p.N;if(h.nodeType===1&&o&&(h["s-ih"]=(n=h.hidden)!=null&&n),y){const b=y.parentNode;let g=y.nextSibling;if(g&&g.nodeType===1){let v=(s=h["s-ol"])==null?void 0:s.previousSibling;for(;v;){let m=(i=v["s-nr"])!=null?i:null;if(m&&m["s-sn"]===h["s-sn"]&&b===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===h||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){g=m;break}}v=v.previousSibling}}if((!g&&b!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==g)&&h!==g){if($(b,h,g,o),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const v=A.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));v["s-hn"]=h["s-hn"],v["s-sn"]=h["s-sn"],v["s-sh"]=h["s-sh"],v["s-sr"]=h["s-sr"],v["s-ol"]=h["s-ol"],v["s-ol"]["s-nr"]=v,$(h.parentNode,v,h,o),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(r=h["s-ih"])!=null&&r)}h&&typeof y["s-rf"]=="function"&&y["s-rf"](y)}else h.nodeType===1&&(h.hidden=!0)}}if(Ae&&St(u.S),C.i&=-2,V.length=0,!he&&!(1&f.i)&&l["s-cr"]){const p=u.S.__childNodes||u.S.childNodes;for(const h of p)if(h["s-hn"]!==K&&!h["s-sh"]){if(o&&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 y=A.document.createComment("s-nt-"+h.nodeValue);y["s-sn"]=h["s-sn"],$(h.parentNode,y,h,o),h.parentNode.removeChild(h)}}}Ie=void 0,qe.forEach((p=>p())),qe.length=0,Xe.forEach((p=>p())),Xe.length=0},Mt=(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()})))}},Ye=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Mt(e,e.R);const o=()=>kn(e,t);if(!t)return Sn(o);queueMicrotask((()=>{o()}))},kn=(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 s;return s=me(n,t?"componentWillLoad":"componentWillUpdate",void 0,o),s=Ft(s,(()=>me(n,"componentWillRender",void 0,o))),Ft(s,(()=>$n(e,n,t)))},Ft=(e,t)=>Tn(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),Tn=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",$n=async(e,t,o)=>{var n;const s=e.$hostElement$,i=s["s-rc"];o&&(r=>{const a=r.o,l=r.$hostElement$,f=a.i,d=((c,u)=>{var p,h,y;const b=_t(u),g=xe.get(b);if(!A.document)return b;if(c=c.nodeType===11?c:A.document,g)if(typeof g=="string"){let v,m=I.get(c=c.head||c);if(m||I.set(c,m=new Set),!m.has(b)){v=A.document.createElement("style"),v.textContent=g;const S=(p=C._)!=null?p:(function(){var w,x,_;return(_=(x=(w=A.document.head)==null?void 0:w.querySelector('meta[name="csp-nonce"]'))==null?void 0:x.getAttribute("content"))!=null?_:void 0})();if(S!=null&&v.setAttribute("nonce",S),!(1&u.i))if(c.nodeName==="HEAD"){const w=c.querySelectorAll("link[rel=preconnect]"),x=w.length>0?w[w.length-1].nextSibling:c.querySelector("style");c.insertBefore(v,x?.parentNode===c?x:null)}else if("host"in c)if(Me){const w=new((h=c.defaultView)!=null?h:c.ownerDocument.defaultView).CSSStyleSheet;w.replaceSync(g),Fe?c.adoptedStyleSheets.unshift(w):c.adoptedStyleSheets=[w,...c.adoptedStyleSheets]}else{const w=c.querySelector("style");w?w.textContent=g+w.textContent:c.prepend(v)}else c.append(v);1&u.i&&c.insertBefore(v,null),4&u.i&&(v.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),m&&m.add(b)}}else{let v=I.get(c);if(v||I.set(c,v=new Set),!v.has(b)){const m=(y=c.defaultView)!=null?y:c.ownerDocument.defaultView;let S;if(g.constructor===m.CSSStyleSheet)S=g;else{S=new m.CSSStyleSheet;for(let w=0;w<g.cssRules.length;w++)S.insertRule(g.cssRules[w].cssText,w)}Fe?c.adoptedStyleSheets.push(S):c.adoptedStyleSheets=[...c.adoptedStyleSheets,S],v.add(b)}}return b})(l.shadowRoot?l.shadowRoot:l.getRootNode(),a);10&f&&(l["s-sc"]=d,l.classList.add(d+"-h"))})(e),Ln(e,t,s,o),i&&(i.map((r=>r())),s["s-rc"]=void 0);{const r=(n=s["s-p"])!=null?n:[],a=()=>jn(e);r.length===0?a():(Promise.all(r).then(a).catch(a),e.i|=4,r.length=0)}},Ln=(e,t,o,n)=>{try{t=t.render(),e.i&=-17,e.i|=2,Pn(e,t,n)}catch(s){Y(s,e.$hostElement$)}return null},jn=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,Mn(t),me(o,"componentDidLoad",void 0,t),e.L(t),n||Dn()),e.A&&(e.A(),e.A=void 0),512&e.i&&Ve((()=>Ye(e,!1))),e.i&=-517},Dn=()=>{Ve((()=>Cn(A,"appload",{detail:{namespace:"gids-core-web"}})))},me=(e,t,o,n)=>{if(e&&e[t])try{return e[t](o)}catch(s){Y(s,n)}},Mn=e=>e.classList.add("hydrated"),Wt=(e,t,o,n)=>{const s=B(e);if(!s)return;const i=e,r=s.l.get(t),a=s.i,l=i;o=Rt(o,n.t[t][0],!!(64&n.i));const f=Number.isNaN(r)&&Number.isNaN(o);if(o!==r&&!f){if(s.l.set(t,o),n.F){const d=n.F[t];d&&d.map((c=>{try{const[[u,p]]=Object.entries(c);(128&a||1&p)&&(l?l[u](o,r,t):s.T.push((()=>{s.D[u](o,r,t)})))}catch(u){Y(u,i)}}))}if(2&a){if(l.componentShouldUpdate&&l.componentShouldUpdate(o,r,t)===!1&&!(16&a))return;16&a||Ye(s,!1)}}},Fn=(e,t,o)=>{var n,s;const i=e.prototype;64&t.i&&1&o&&yn.forEach((r=>{const a=i[r];Object.defineProperty(i,r,{value(...l){var f;const d=B(this),c=this;c?typeof a=="function"&&a.call(c,...l):(f=d?.H)==null||f.then((u=>{const p=u[r];typeof p=="function"&&p.call(u,...l)}))}})}));{e.watchers&&!t.F&&(t.F=Ct(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((([a,[l]])=>{if(31&l||32&l){const{get:f,set:d}=se(i,a)||{};f&&(t.t[a][0]|=2048),d&&(t.t[a][0]|=4096),Object.defineProperty(i,a,{get(){return f?f.apply(this):(c=a,B(this).l.get(c));var c},configurable:!0,enumerable:!0}),Object.defineProperty(i,a,{set(c){const u=B(this);if(u){if(d)return(32&l?this[a]:u.$hostElement$[a])===void 0&&u.l.get(a)&&(c=u.l.get(a)),d.apply(this,[Rt(c,l,!!(64&t.i))]),void Wt(this,a,c=32&l?this[a]:u.$hostElement$[a],t);Wt(this,a,c,t)}}})}}));{const a=new Map;i.attributeChangedCallback=function(l,f,d){C.jmp((()=>{var c;const u=a.get(l),p=B(this);if(this.hasOwnProperty(u),i.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==d)return;if(u==null){const v=p?.i;if(p&&v&&!(8&v)&&d!==f){const m=this,S=(c=t.F)==null?void 0:c[l];S?.forEach((w=>{const[[x,_]]=Object.entries(w);m[x]!=null&&(128&v||1&_)&&m[x].call(m,d,f,l)}))}return}const h=r.find((([v])=>v===u)),y=h&&4&h[1][0],b=y&&d===null&&this[u]===void 0;y&&(d=d!==null&&d!=="false");const g=Object.getOwnPropertyDescriptor(i,u);b||d==this[u]||g.get&&!g.set||(this[u]=d)}))},e.observedAttributes=Array.from(new Set([...Object.keys((s=t.F)!=null?s:{}),...r.filter((([l,f])=>31&f[0])).map((([l,f])=>{var d;const c=f[1]||l;return a.set(c,l),512&f[0]&&((d=t.C)==null||d.push([l,c])),c}))]))}}return e},Wn=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.W=t[3],o.F=Ct(e.F),o.P=e.P,o.U=e.U,o.C=[];const n=e.prototype.connectedCallback,s=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((i,r)=>{const a={i:0,$hostElement$:i,o:r,l:new Map,B:new Map};a.H=new Promise((f=>a.L=f)),i["s-p"]=[],i["s-rc"]=[];const l=a;i.__stencil__getHostRef=()=>l,512&r.i&&vn(i,a)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const i=B(this);if(!i)return;Bt(this,i,o.W),this.__hasHostListenerAttached=!0}(i=>{if(!(1&C.i)){const r=B(i);if(!r)return;const a=r.o;if(1&r.i)Bt(i,r,a.W),r?.D||r?.H&&r.H.then((()=>{}));else{r.i|=1,12&a.i&&(l=>{if(!A.document)return;const f=l["s-cr"]=A.document.createComment("");f["s-cn"]=!0,$(l,f,l.firstChild)})(i);{let l=i;for(;l=l.parentNode||l.host;)if(l["s-p"]){Mt(r,r.R=l);break}}a.t&&Object.entries(a.t).map((([l,[f]])=>{if(31&f&&Object.prototype.hasOwnProperty.call(i,l)){const d=i[l];delete i[l],i[l]=d}})),(async(l,f,d)=>{let c;try{if(!(32&f.i)&&(f.i|=32,c=l.constructor,customElements.whenDefined(l.localName).then((()=>f.i|=128)),c&&c.style)){let h;typeof c.style=="string"&&(h=c.style);const y=_t(d);xe.has(y)||((b,g,v)=>{let m=xe.get(b);Me&&v?(m=m||new CSSStyleSheet,typeof m=="string"?m=g:m.replaceSync(g)):m=g,xe.set(b,m)})(y,h,!!(1&d.i))}const u=f.R,p=()=>Ye(f,!0);u&&u["s-rc"]?u["s-rc"].push(p):p()}catch(u){Y(u,l),f.A&&(f.A(),f.A=void 0),f.L&&f.L(l)}})(i,r,a)}}})(this),n&&n.call(this)},disconnectedCallback(){(async i=>{if(!(1&C.i)){const r=B(i);r?.V&&(r.V.map((a=>a())),r.V=void 0)}I.has(i)&&I.delete(i),i.shadowRoot&&I.has(i.shadowRoot)&&I.delete(i.shadowRoot)})(this),s&&s.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 xn.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),Fn(e,o,3)}catch(n){return Y(n),e}},Bt=(e,t,o)=>{o&&A.document&&o.map((([n,s,i])=>{const r=Vn(A.document,e,n),a=Bn(t,i),l=Hn(n);C.ael(r,s,a,l),(t.V=t.V||[]).push((()=>C.rel(r,s,a,l)))}))},Bn=(e,t)=>o=>{try{e.$hostElement$[t](o)}catch(n){Y(n,e.$hostElement$)}},Vn=(e,t,o)=>8&o?A:t,Hn=e=>bn?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Jo(e){return e}const re=Math.min,Z=Math.max,Ee=Math.round,Pe=Math.floor,F=e=>({x:e,y:e}),zn={left:"right",right:"left",bottom:"top",top:"bottom"};function Ke(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 ve(e){return e.split("-")[1]}function Vt(e){return e==="x"?"y":"x"}function Ze(e){return e==="y"?"height":"width"}function G(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Je(e){return Vt(G(e))}function In(e,t,o){o===void 0&&(o=!1);const n=ve(e),s=Je(e),i=Ze(s);let r=s==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(r=ke(r)),[r,ke(r)]}function Gn(e){const t=ke(e);return[Qe(e),t,Qe(t)]}function Qe(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Ht=["left","right"],zt=["right","left"],Un=["top","bottom"],qn=["bottom","top"];function Xn(e,t,o){switch(e){case"top":case"bottom":return o?t?zt:Ht:t?Ht:zt;case"left":case"right":return t?Un:qn;default:return[]}}function Yn(e,t,o,n){const s=ve(e);let i=Xn(J(e),o==="start",n);return s&&(i=i.map(r=>r+"-"+s),t&&(i=i.concat(i.map(Qe)))),i}function ke(e){const t=J(e);return zn[t]+e.slice(t.length)}function Kn(e){return{top:0,right:0,bottom:0,left:0,...e}}function It(e){return typeof e!="number"?Kn(e):{top:e,right:e,bottom:e,left:e}}function Te(e){const{x:t,y:o,width:n,height:s}=e;return{width:n,height:s,top:o,left:t,right:t+n,bottom:o+s,x:t,y:o}}function Gt(e,t,o){let{reference:n,floating:s}=e;const i=G(t),r=Je(t),a=Ze(r),l=J(t),f=i==="y",d=n.x+n.width/2-s.width/2,c=n.y+n.height/2-s.height/2,u=n[a]/2-s[a]/2;let p;switch(l){case"top":p={x:d,y:n.y-s.height};break;case"bottom":p={x:d,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:c};break;case"left":p={x:n.x-s.width,y:c};break;default:p={x:n.x,y:n.y}}switch(ve(t)){case"start":p[r]-=u*(o&&f?-1:1);break;case"end":p[r]+=u*(o&&f?-1:1);break}return p}async function Zn(e,t){var o;t===void 0&&(t={});const{x:n,y:s,platform:i,rects:r,elements:a,strategy:l}=e,{boundary:f="clippingAncestors",rootBoundary:d="viewport",elementContext:c="floating",altBoundary:u=!1,padding:p=0}=ge(t,e),h=It(p),b=a[u?c==="floating"?"reference":"floating":c],g=Te(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(b)))==null||o?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:f,rootBoundary:d,strategy:l})),v=c==="floating"?{x:n,y:s,width:r.floating.width,height:r.floating.height}:r.reference,m=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),S=await(i.isElement==null?void 0:i.isElement(m))?await(i.getScale==null?void 0:i.getScale(m))||{x:1,y:1}:{x:1,y:1},w=Te(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:m,strategy:l}):v);return{top:(g.top-w.top+h.top)/S.y,bottom:(w.bottom-g.bottom+h.bottom)/S.y,left:(g.left-w.left+h.left)/S.x,right:(w.right-g.right+h.right)/S.x}}const Jn=50,Qn=async(e,t,o)=>{const{placement:n="bottom",strategy:s="absolute",middleware:i=[],platform:r}=o,a=r.detectOverflow?r:{...r,detectOverflow:Zn},l=await(r.isRTL==null?void 0:r.isRTL(t));let f=await r.getElementRects({reference:e,floating:t,strategy:s}),{x:d,y:c}=Gt(f,n,l),u=n,p=0;const h={};for(let y=0;y<i.length;y++){const b=i[y];if(!b)continue;const{name:g,fn:v}=b,{x:m,y:S,data:w,reset:x}=await v({x:d,y:c,initialPlacement:n,placement:u,strategy:s,middlewareData:h,rects:f,platform:a,elements:{reference:e,floating:t}});d=m??d,c=S??c,h[g]={...h[g],...w},x&&p<Jn&&(p++,typeof x=="object"&&(x.placement&&(u=x.placement),x.rects&&(f=x.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:s}):x.rects),{x:d,y:c}=Gt(f,u,l)),y=-1)}return{x:d,y:c,placement:u,strategy:s,middlewareData:h}},eo=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:n,placement:s,rects:i,platform:r,elements:a,middlewareData:l}=t,{element:f,padding:d=0}=ge(e,t)||{};if(f==null)return{};const c=It(d),u={x:o,y:n},p=Je(s),h=Ze(p),y=await r.getDimensions(f),b=p==="y",g=b?"top":"left",v=b?"bottom":"right",m=b?"clientHeight":"clientWidth",S=i.reference[h]+i.reference[p]-u[p]-i.floating[h],w=u[p]-i.reference[p],x=await(r.getOffsetParent==null?void 0:r.getOffsetParent(f));let _=x?x[m]:0;(!_||!await(r.isElement==null?void 0:r.isElement(x)))&&(_=a.floating[m]||i.floating[h]);const O=S/2-w/2,R=_/2-y[h]/2-1,T=re(c[g],R),we=re(c[v],R),ne=T,Se=_-y[h]-we,N=_/2-y[h]/2+O,oe=Ke(ne,N,Se),z=!l.arrow&&ve(s)!=null&&N!==oe&&i.reference[h]/2-(N<ne?T:we)-y[h]/2<0,D=z?N<ne?N-ne:N-Se:0;return{[p]:u[p]+D,data:{[p]:oe,centerOffset:N-oe-D,...z&&{alignmentOffset:D}},reset:z}}}),to=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,n;const{placement:s,middlewareData:i,rects:r,initialPlacement:a,platform:l,elements:f}=t,{mainAxis:d=!0,crossAxis:c=!0,fallbackPlacements:u,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:y=!0,...b}=ge(e,t);if((o=i.arrow)!=null&&o.alignmentOffset)return{};const g=J(s),v=G(a),m=J(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(f.floating)),w=u||(m||!y?[ke(a)]:Gn(a)),x=h!=="none";!u&&x&&w.push(...Yn(a,y,h,S));const _=[a,...w],O=await l.detectOverflow(t,b),R=[];let T=((n=i.flip)==null?void 0:n.overflows)||[];if(d&&R.push(O[g]),c){const N=In(s,r,S);R.push(O[N[0]],O[N[1]])}if(T=[...T,{placement:s,overflows:R}],!R.every(N=>N<=0)){var we,ne;const N=(((we=i.flip)==null?void 0:we.index)||0)+1,oe=_[N];if(oe&&(!(c==="alignment"?v!==G(oe):!1)||T.every(M=>G(M.placement)===v?M.overflows[0]>0:!0)))return{data:{index:N,overflows:T},reset:{placement:oe}};let z=(ne=T.filter(D=>D.overflows[0]<=0).sort((D,M)=>D.overflows[1]-M.overflows[1])[0])==null?void 0:ne.placement;if(!z)switch(p){case"bestFit":{var Se;const D=(Se=T.filter(M=>{if(x){const q=G(M.placement);return q===v||q==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(q=>q>0).reduce((q,Zo)=>q+Zo,0)]).sort((M,q)=>M[1]-q[1])[0])==null?void 0:Se[0];D&&(z=D);break}case"initialPlacement":z=a;break}if(s!==z)return{reset:{placement:z}}}return{}}}},no=new Set(["left","top"]);async function oo(e,t){const{placement:o,platform:n,elements:s}=e,i=await(n.isRTL==null?void 0:n.isRTL(s.floating)),r=J(o),a=ve(o),l=G(o)==="y",f=no.has(r)?-1:1,d=i&&l?-1:1,c=ge(t,e);let{mainAxis:u,crossAxis:p,alignmentAxis:h}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return a&&typeof h=="number"&&(p=a==="end"?h*-1:h),l?{x:p*d,y:u*f}:{x:u*f,y:p*d}}const so=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,n;const{x:s,y:i,placement:r,middlewareData:a}=t,l=await oo(t,e);return r===((o=a.offset)==null?void 0:o.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:s+l.x,y:i+l.y,data:{...l,placement:r}}}}},io=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:n,placement:s,platform:i}=t,{mainAxis:r=!0,crossAxis:a=!1,limiter:l={fn:g=>{let{x:v,y:m}=g;return{x:v,y:m}}},...f}=ge(e,t),d={x:o,y:n},c=await i.detectOverflow(t,f),u=G(J(s)),p=Vt(u);let h=d[p],y=d[u];if(r){const g=p==="y"?"top":"left",v=p==="y"?"bottom":"right",m=h+c[g],S=h-c[v];h=Ke(m,h,S)}if(a){const g=u==="y"?"top":"left",v=u==="y"?"bottom":"right",m=y+c[g],S=y-c[v];y=Ke(m,y,S)}const b=l.fn({...t,[p]:h,[u]:y});return{...b,data:{x:b.x-o,y:b.y-n,enabled:{[p]:r,[u]:a}}}}}};function $e(){return typeof window<"u"}function le(e){return Ut(e)?(e.nodeName||"").toLowerCase():"#document"}function k(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function W(e){var t;return(t=(Ut(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ut(e){return $e()?e instanceof Node||e instanceof k(e).Node:!1}function L(e){return $e()?e instanceof Element||e instanceof k(e).Element:!1}function H(e){return $e()?e instanceof HTMLElement||e instanceof k(e).HTMLElement:!1}function qt(e){return!$e()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof k(e).ShadowRoot}function ye(e){const{overflow:t,overflowX:o,overflowY:n,display:s}=j(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&s!=="inline"&&s!=="contents"}function ro(e){return/^(table|td|th)$/.test(le(e))}function Le(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const lo=/transform|translate|scale|rotate|perspective|filter/,ao=/paint|layout|strict|content/,Q=e=>!!e&&e!=="none";let et;function tt(e){const t=L(e)?j(e):e;return Q(t.transform)||Q(t.translate)||Q(t.scale)||Q(t.rotate)||Q(t.perspective)||!nt()&&(Q(t.backdropFilter)||Q(t.filter))||lo.test(t.willChange||"")||ao.test(t.contain||"")}function co(e){let t=U(e);for(;H(t)&&!ae(t);){if(tt(t))return t;if(Le(t))return null;t=U(t)}return null}function nt(){return et==null&&(et=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),et}function ae(e){return/^(html|body|#document)$/.test(le(e))}function j(e){return k(e).getComputedStyle(e)}function je(e){return L(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function U(e){if(le(e)==="html")return e;const t=e.assignedSlot||e.parentNode||qt(e)&&e.host||W(e);return qt(t)?t.host:t}function Xt(e){const t=U(e);return ae(t)?e.ownerDocument?e.ownerDocument.body:e.body:H(t)&&ye(t)?t:Xt(t)}function be(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);const s=Xt(e),i=s===((n=e.ownerDocument)==null?void 0:n.body),r=k(s);if(i){const a=ot(r);return t.concat(r,r.visualViewport||[],ye(s)?s:[],a&&o?be(a):[])}else return t.concat(s,be(s,[],o))}function ot(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Yt(e){const t=j(e);let o=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const s=H(e),i=s?e.offsetWidth:o,r=s?e.offsetHeight:n,a=Ee(o)!==i||Ee(n)!==r;return a&&(o=i,n=r),{width:o,height:n,$:a}}function st(e){return L(e)?e:e.contextElement}function ce(e){const t=st(e);if(!H(t))return F(1);const o=t.getBoundingClientRect(),{width:n,height:s,$:i}=Yt(t);let r=(i?Ee(o.width):o.width)/n,a=(i?Ee(o.height):o.height)/s;return(!r||!Number.isFinite(r))&&(r=1),(!a||!Number.isFinite(a))&&(a=1),{x:r,y:a}}const fo=F(0);function Kt(e){const t=k(e);return!nt()||!t.visualViewport?fo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function uo(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==k(e)?!1:t}function ee(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);const s=e.getBoundingClientRect(),i=st(e);let r=F(1);t&&(n?L(n)&&(r=ce(n)):r=ce(e));const a=uo(i,o,n)?Kt(i):F(0);let l=(s.left+a.x)/r.x,f=(s.top+a.y)/r.y,d=s.width/r.x,c=s.height/r.y;if(i){const u=k(i),p=n&&L(n)?k(n):n;let h=u,y=ot(h);for(;y&&n&&p!==h;){const b=ce(y),g=y.getBoundingClientRect(),v=j(y),m=g.left+(y.clientLeft+parseFloat(v.paddingLeft))*b.x,S=g.top+(y.clientTop+parseFloat(v.paddingTop))*b.y;l*=b.x,f*=b.y,d*=b.x,c*=b.y,l+=m,f+=S,h=k(y),y=ot(h)}}return Te({width:d,height:c,x:l,y:f})}function De(e,t){const o=je(e).scrollLeft;return t?t.left+o:ee(W(e)).left+o}function Zt(e,t){const o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-De(e,o),s=o.top+t.scrollTop;return{x:n,y:s}}function ho(e){let{elements:t,rect:o,offsetParent:n,strategy:s}=e;const i=s==="fixed",r=W(n),a=t?Le(t.floating):!1;if(n===r||a&&i)return o;let l={scrollLeft:0,scrollTop:0},f=F(1);const d=F(0),c=H(n);if((c||!c&&!i)&&((le(n)!=="body"||ye(r))&&(l=je(n)),c)){const p=ee(n);f=ce(n),d.x=p.x+n.clientLeft,d.y=p.y+n.clientTop}const u=r&&!c&&!i?Zt(r,l):F(0);return{width:o.width*f.x,height:o.height*f.y,x:o.x*f.x-l.scrollLeft*f.x+d.x+u.x,y:o.y*f.y-l.scrollTop*f.y+d.y+u.y}}function po(e){return Array.from(e.getClientRects())}function mo(e){const t=W(e),o=je(e),n=e.ownerDocument.body,s=Z(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Z(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let r=-o.scrollLeft+De(e);const a=-o.scrollTop;return j(n).direction==="rtl"&&(r+=Z(t.clientWidth,n.clientWidth)-s),{width:s,height:i,x:r,y:a}}const Jt=25;function go(e,t){const o=k(e),n=W(e),s=o.visualViewport;let i=n.clientWidth,r=n.clientHeight,a=0,l=0;if(s){i=s.width,r=s.height;const d=nt();(!d||d&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}const f=De(n);if(f<=0){const d=n.ownerDocument,c=d.body,u=getComputedStyle(c),p=d.compatMode==="CSS1Compat"&&parseFloat(u.marginLeft)+parseFloat(u.marginRight)||0,h=Math.abs(n.clientWidth-c.clientWidth-p);h<=Jt&&(i-=h)}else f<=Jt&&(i+=f);return{width:i,height:r,x:a,y:l}}function vo(e,t){const o=ee(e,!0,t==="fixed"),n=o.top+e.clientTop,s=o.left+e.clientLeft,i=H(e)?ce(e):F(1),r=e.clientWidth*i.x,a=e.clientHeight*i.y,l=s*i.x,f=n*i.y;return{width:r,height:a,x:l,y:f}}function Qt(e,t,o){let n;if(t==="viewport")n=go(e,o);else if(t==="document")n=mo(W(e));else if(L(t))n=vo(t,o);else{const s=Kt(e);n={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Te(n)}function en(e,t){const o=U(e);return o===t||!L(o)||ae(o)?!1:j(o).position==="fixed"||en(o,t)}function yo(e,t){const o=t.get(e);if(o)return o;let n=be(e,[],!1).filter(a=>L(a)&&le(a)!=="body"),s=null;const i=j(e).position==="fixed";let r=i?U(e):e;for(;L(r)&&!ae(r);){const a=j(r),l=tt(r);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&(s.position==="absolute"||s.position==="fixed")||ye(r)&&!l&&en(e,r))?n=n.filter(d=>d!==r):s=a,r=U(r)}return t.set(e,n),n}function bo(e){let{element:t,boundary:o,rootBoundary:n,strategy:s}=e;const r=[...o==="clippingAncestors"?Le(t)?[]:yo(t,this._c):[].concat(o),n],a=Qt(t,r[0],s);let l=a.top,f=a.right,d=a.bottom,c=a.left;for(let u=1;u<r.length;u++){const p=Qt(t,r[u],s);l=Z(p.top,l),f=re(p.right,f),d=re(p.bottom,d),c=Z(p.left,c)}return{width:f-c,height:d-l,x:c,y:l}}function wo(e){const{width:t,height:o}=Yt(e);return{width:t,height:o}}function So(e,t,o){const n=H(t),s=W(t),i=o==="fixed",r=ee(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=F(0);function f(){l.x=De(s)}if(n||!n&&!i)if((le(t)!=="body"||ye(s))&&(a=je(t)),n){const p=ee(t,!0,i,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else s&&f();i&&!n&&s&&f();const d=s&&!n&&!i?Zt(s,a):F(0),c=r.left+a.scrollLeft-l.x-d.x,u=r.top+a.scrollTop-l.y-d.y;return{x:c,y:u,width:r.width,height:r.height}}function it(e){return j(e).position==="static"}function tn(e,t){if(!H(e)||j(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return W(e)===o&&(o=o.ownerDocument.body),o}function nn(e,t){const o=k(e);if(Le(e))return o;if(!H(e)){let s=U(e);for(;s&&!ae(s);){if(L(s)&&!it(s))return s;s=U(s)}return o}let n=tn(e,t);for(;n&&ro(n)&&it(n);)n=tn(n,t);return n&&ae(n)&&it(n)&&!tt(n)?o:n||co(e)||o}const xo=async function(e){const t=this.getOffsetParent||nn,o=this.getDimensions,n=await o(e.floating);return{reference:So(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function _o(e){return j(e).direction==="rtl"}const rt={convertOffsetParentRelativeRectToViewportRelativeRect:ho,getDocumentElement:W,getClippingRect:bo,getOffsetParent:nn,getElementRects:xo,getClientRects:po,getDimensions:wo,getScale:ce,isElement:L,isRTL:_o};function on(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ao(e,t){let o=null,n;const s=W(e);function i(){var a;clearTimeout(n),(a=o)==null||a.disconnect(),o=null}function r(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const f=e.getBoundingClientRect(),{left:d,top:c,width:u,height:p}=f;if(a||t(),!u||!p)return;const h=Pe(c),y=Pe(s.clientWidth-(d+u)),b=Pe(s.clientHeight-(c+p)),g=Pe(d),m={rootMargin:-h+"px "+-y+"px "+-b+"px "+-g+"px",threshold:Z(0,re(1,l))||1};let S=!0;function w(x){const _=x[0].intersectionRatio;if(_!==l){if(!S)return r();_?r(!1,_):n=setTimeout(()=>{r(!1,1e-7)},1e3)}_===1&&!on(f,e.getBoundingClientRect())&&r(),S=!1}try{o=new IntersectionObserver(w,{...m,root:s.ownerDocument})}catch{o=new IntersectionObserver(w,m)}o.observe(e)}return r(!0),i}function Oo(e,t,o,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,f=st(e),d=s||i?[...f?be(f):[],...t?be(t):[]]:[];d.forEach(g=>{s&&g.addEventListener("scroll",o,{passive:!0}),i&&g.addEventListener("resize",o)});const c=f&&a?Ao(f,o):null;let u=-1,p=null;r&&(p=new ResizeObserver(g=>{let[v]=g;v&&v.target===f&&p&&t&&(p.unobserve(t),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var m;(m=p)==null||m.observe(t)})),o()}),f&&!l&&p.observe(f),t&&p.observe(t));let h,y=l?ee(e):null;l&&b();function b(){const g=ee(e);y&&!on(y,g)&&o(),y=g,h=requestAnimationFrame(b)}return o(),()=>{var g;d.forEach(v=>{s&&v.removeEventListener("scroll",o),i&&v.removeEventListener("resize",o)}),c?.(),(g=p)==null||g.disconnect(),p=null,l&&cancelAnimationFrame(h)}}const Co=so,Ro=io,No=to,Eo=eo,Po=(e,t,o)=>{const n=new Map,s={platform:rt,...o},i={...s.platform,_c:n};return Qn(e,t,{...s,platform:i})};function sn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}const ko=/transform|translate|scale|rotate|perspective|filter/,To=/paint|layout|strict|content/,te=e=>!!e&&e!=="none";let lt;function $o(e){const t=(o=e,typeof window<"u"&&(o instanceof Element||o instanceof sn(o).Element)?sn(n=e).getComputedStyle(n):e);var o,n;return te(t.transform)||te(t.translate)||te(t.scale)||te(t.rotate)||te(t.perspective)||(lt==null&&(lt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),!lt&&(te(t.backdropFilter)||te(t.filter)))||ko.test(t.willChange||"")||To.test(t.contain||"")}function Lo(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"||$o(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}function rn(e){var t,o,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(o=rn(e[t]))&&(n&&(n+=" "),n+=o)}else for(o in e)e[o]&&(n&&(n+=" "),n+=o);return n}function ln(){for(var e,t,o=0,n="",s=arguments.length;o<s;o++)(e=arguments[o])&&(t=rn(e))&&(n&&(n+=" "),n+=t);return n}const jo=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>ln("gids-icon",{"gids-icon--xs":e==="xs","gids-icon--sm":e==="sm","gids-icon--md":e==="md","gids-icon--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),Do=Object.freeze(Object.defineProperty({__proto__:null,getGidsAdvancedTooltipClassNames:({visible:e},t)=>ln("gids-advanced-tooltip",{"gids-advanced-tooltip--visible":e},t)},Symbol.toStringTag,{value:"Module"})),ct=Symbol("defaultPath"),an=Symbol("pathSet"),ft="gids-asset-paths-set";class Mo extends EventTarget{#n=new Map;constructor(){super()}#e(t,o){this.#n.set(t,o)}#t(t){return this.#n.get(t)??null}#o=()=>{this.dispatchEvent(new Event(ft))};haveAssetPathsBeenSet(){return this.#t(an)!==null}setAssetPaths(t,o){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(ct,t);else{for(const n in t)this.#e(n,t[n]);o&&this.#e(ct,o)}this.#e(an,"true"),setTimeout(this.#o,0)}}getAssetFilePath(t){const o=this.#t(t);if(o===null){const n=this.#t(ct);if(n!==null)return`${n}${n.endsWith("/")?"":"/"}${t}`}return o}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(ft,t,{once:!0}),()=>{this.removeEventListener(ft,t)}}}const dt=Symbol.for("GIDS"),Fo=()=>(globalThis[dt]===void 0&&(globalThis[dt]={assetPaths:{}}),globalThis[dt]),Wo=e=>{const t=Fo().assetPaths;return t[e]===void 0&&(t[e]=new Mo),t[e]};function ut(){return Wo("@ganpatiinfo/gids-web-shared")}function Bo(){return ut().haveAssetPathsBeenSet()}function cn(e){return ut().getAssetFilePath(e)}function Vo(e){return ut().onAssetPathsSet(e)}let Ho=0;const zo=(e,t="gids")=>e||`${t}-${Ho++}`,fe=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let fn=!1;fe&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(fe):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let ht=null;const pt=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{dn()})):void 0,dn=()=>{if(fe===void 0)return!1;const e=(()=>{if(fe===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const n=document.styleSheets.item(o);if(n)try{let s=-1,i=0;for(let r=0;r<n.cssRules.length;r++){const a=n.cssRules.item(r);if(a?.cssText.startsWith("gids-global-styles-start"))s=r;else if(s>-1){if(a?.cssText.startsWith("gids-global-styles-end")){i=r-s+1;break}t.push(a)}}if(s>-1)return{rulesStartIndex:s,originalRulesCount:i,rules:t,styleSheet:n}}catch(s){if(!(s instanceof DOMException))throw s}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return pt!==void 0&&t!==ht&&(ht&&pt.disconnect(),t instanceof Element&&pt.observe(t,{childList:!0,characterData:!0,subtree:!0}),ht=t),fe.replaceSync((o=>o.rules.map((n=>n.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:n,originalRulesCount:s,styleSheet:i}=o;for(let r=0;r<s;r++)i.deleteRule(n)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},Io=()=>(fn||(fn=dn()),fe),un={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},hn=new Map;for(const e in un)for(const t of un[e])hn.set(t,e);function Go(e){return hn.get(e)}function pn(e,t="regular",o){const n=Go(e);let s=n??"";return o&&n&&(s=o(n)??n),`${s}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Uo}=jo,qo=({name:e,size:t,appearance:o,alt:n,class:s,titleId:i,src:r,...a})=>{const l=zo(i);let f=r;return f===void 0&&Bo()&&(f=pn(e,o,cn)),P("svg",{ref:d=>{f===void 0&&Vo((()=>{(function(c,u,p){if(!c)return;const h=document.createElementNS("http://www.w3.org/2000/svg","use");h.setAttribute("href",pn(u,p,cn)),c.appendChild(h)})(d,e,o)}))},width:"16",height:"16",class:Uo({size:t},s),role:"img","aria-hidden":n===""?"true":void 0,"aria-labelledby":n===""?void 0:l,...a},n!==""&&P("title",{id:l},n||e),f!==void 0?P("use",{href:f}):null)},{getGidsAdvancedTooltipClassNames:Xo}=Do,mn=Wn(class extends vt{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.visible=!1,this.x=0,this.y=0,this.offset=12,this.placement="top",this.items=[],this.currentPlacement="top"}connectedCallback(){const e=Io();e&&this.host.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){const e=this.host.shadowRoot;if(!e)return;const t=e.querySelector(".gids-advanced-tooltip__arrow");t instanceof vt&&(this.tooltipElement=this.host,this.arrowElement=t,this.createVirtualReference(),this.startAutoUpdate(),this.updatePosition())}disconnectedCallback(){this.cleanupAutoUpdate?.()}visibleChanged(){this.updatePosition()}positionChanged(){this.updatePosition()}placementChanged(){this.updatePosition()}itemsChanged(){this.updatePosition()}createVirtualReference(){this.virtualReference||(this.virtualReference={getBoundingClientRect:()=>new DOMRect(this.x,this.y,0,0)})}startAutoUpdate(){this.cleanupAutoUpdate?.(),this.cleanupAutoUpdate=Oo(this.virtualReference,this.tooltipElement,(()=>{this.updatePosition()}),{ancestorScroll:!0,ancestorResize:!1,elementResize:!0,layoutShift:!0,animationFrame:!0})}getMiddleware(){return[Co(this.offset),No({padding:this.offset}),Ro({padding:this.offset}),Eo({element:this.arrowElement,padding:this.offset})]}async updatePosition(){if(this.tooltipElement)try{const{x:e,y:t,placement:o,middlewareData:n}=await Po(this.virtualReference,this.tooltipElement,{placement:this.placement,strategy:"fixed",middleware:this.getMiddleware(),platform:{...rt,getOffsetParent:s=>rt.getOffsetParent(s,Lo)}});if(this.currentPlacement=o,Object.assign(this.tooltipElement.style,{left:`${e}px`,top:`${t}px`,position:"fixed"}),n.arrow&&this.arrowElement){const{x:s,y:i}=n.arrow;let r;switch(o.split("-")[0]??"top"){case"top":r="bottom";break;case"right":r="left";break;case"bottom":r="top";break;default:r="right"}Object.assign(this.arrowElement.style,{left:s!=null?`${s}px`:"",top:i!=null?`${i}px`:"",right:"",bottom:"",[r]:"-5px",transform:"rotate(45deg)"})}}catch(e){console.error("computePosition failed",e)}}render(){const e=Xo({visible:this.visible});return P(At,{key:"c4de12b255e6667fb88a1868bbb458c0c8fd66a0",class:e,role:"tooltip",part:"tooltip"},P("div",{key:"30bce93d52ce6caa0cef1f7d815ed08faf66c082",class:"gids-advanced-tooltip__arrow",part:"arrow"}),P("div",{key:"d2077e539400730753303e432a3a0ffab23c5f16",class:"gids-advanced-tooltip__content"},this.items.map((t=>P("div",{class:"gids-advanced-tooltip__item",key:`${t.label}-${t.value}`},P("div",{class:"gids-advanced-tooltip__left"},P(qo,{name:"new",size:"xs",appearance:"filled",style:{"--gidsIcon-color":t.seriesIndicatorColor}}),P("span",{class:"gids-advanced-tooltip__label"},t.label)),P("span",{class:"gids-advanced-tooltip__value"},t.value))))))}get host(){return this}static get watchers(){return{visible:[{visibleChanged:0}],x:[{positionChanged:0}],y:[{positionChanged:0}],placement:[{placementChanged:0}],items:[{itemsChanged:0}]}}static get style(){return".gids-advanced-tooltip{position:fixed;display:inline-flex;width:fit-content;height:fit-content;z-index:1001;--gidsAdvancedTooltip-background:var( --gids-color-background-neutral-bold-default );--gidsAdvancedTooltip-label-color:var(--gids-color-text-inverse);--gidsAdvancedTooltip-value-color:var(--gids-color-text-inverse)}.gids-advanced-tooltip--visible{opacity:1}.gids-advanced-tooltip__content{box-shadow:var(--gids-elevation-shadow-overlay);background:var(--gidsAdvancedTooltip-background);border-radius:var(--gids-border-radius-md);padding:var(--gids-padding-vertical-edge-to-element-150) var(--gids-padding-horizontal-edge-to-element-150);min-width:140px}.gids-advanced-tooltip__item{display:flex;justify-content:space-between;align-items:center;gap:var(--gids-gap-200)}.gids-advanced-tooltip__item+.gids-advanced-tooltip__item{margin-top:var(--gids-padding-vertical-edge-to-element-075)}.gids-advanced-tooltip__left{display:flex;align-items:center;gap:var(--gids-gap-100)}.gids-advanced-tooltip__arrow{position:absolute;width:10px;height:10px;background:var(--gidsAdvancedTooltip-background);backdrop-filter:calc(var(--gids-backdrop-blur-2-xl));transform:rotate(45deg)}.gids-advanced-tooltip__label{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);color:var(--gidsAdvancedTooltip-label-color)}.gids-advanced-tooltip__value{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);color:var(--gidsAdvancedTooltip-value-color);white-space:nowrap}"}},[1,"gids-advanced-tooltip",{visible:[516],x:[2],y:[2],offset:[2],placement:[1],items:[16],currentPlacement:[32]},void 0,{visible:[{visibleChanged:0}],x:[{positionChanged:0}],y:[{positionChanged:0}],placement:[{placementChanged:0}],items:[{itemsChanged:0}]}]);function gn(){typeof customElements<"u"&&["gids-advanced-tooltip"].forEach((e=>{e==="gids-advanced-tooltip"&&(customElements.get(e)||customElements.define(e,mn))}))}gn();const Yo=mn,Ko=gn;X.GidsAdvancedTooltip=Yo,X.defineCustomElement=Ko,Object.defineProperty(X,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(q,oe){typeof exports=="object"&&typeof module<"u"?oe(exports):typeof define=="function"&&define.amd?define(["exports"],oe):(q=typeof globalThis<"u"?globalThis:q||self,oe(q.gidsCoreWebGidsBarChart={}))})(this,(function(q){"use strict";function oe(e,t,s){const n=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==n;){const i=Object.getOwnPropertyDescriptor(e,t);if(i&&(!s||i.get))return i;e=Object.getPrototypeOf(e)}}var fe,$n=(e,t)=>{var s;Object.entries((s=t.o.t)!=null?s:{}).map((([n,[i]])=>{if(31&i||32&i){const o=e[n],r=oe(Object.getPrototypeOf(e),n,!0)||Object.getOwnPropertyDescriptor(e,n);r&&Object.defineProperty(e,n,{get(){return r.get.call(this)},set(a){r.set.call(this,a)},configurable:!0,enumerable:!0}),t.l.has(n)?e[n]=t.l.get(n):o!==void 0&&(e[n]=o)}}))},V=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},xt=(e,t)=>t in e,X=(e,t)=>(0,console.error)(e,t),Ce=new Map,_t="http://www.w3.org/1999/xlink",Nn=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],O=typeof window<"u"?window:{},ue=O.HTMLElement||class{},k={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,n)=>e.addEventListener(t,s,n),rel:(e,t,s,n)=>e.removeEventListener(t,s,n),ce:(e,t)=>new CustomEvent(e,t)},Pn=(()=>{var e;let t=!1;try{(e=O.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),Be=(()=>{try{return!!O.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),We=!!Be&&!!O.document&&Object.getOwnPropertyDescriptor(O.document.adoptedStyleSheets,"length").writable,He=!1,St=[],Ct=[],Rn=(e,t)=>s=>{e.push(s),He||(He=!0,4&k.i?Ue(Ge):k.raf(Ge))},Ot=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(s){X(s)}e.length=0},Ge=()=>{Ot(St),Ot(Ct),(He=St.length>0)&&k.raf(Ge)},Ue=e=>Promise.resolve(void 0).then(e),Tn=Rn(Ct);function Ln(){const e=this.attachShadow({mode:"open"});fe===void 0&&(fe=null),fe&&(We?e.adoptedStyleSheets.push(fe):e.adoptedStyleSheets=[...e.adoptedStyleSheets,fe])}var At=e=>{const t=qe(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&Ye(t,e.tagName).forEach((n=>{n.nodeType===1&&n.tagName==="SLOT-FB"&&(n.hidden=!!Dn(n,ge(n),!1).length)}));let s=0;for(s=0;s<t.length;s++){const n=t[s];n.nodeType===1&&qe(n,"childNodes").length&&At(n)}};function Ye(e,t,s){let n,i=0,o=[];for(;i<e.length;i++){if(n=e[i],n["s-sr"]&&(!t||n["s-hn"]===t)&&(s===void 0||ge(n)===s)&&(o.push(n),s!==void 0))return o;o=[...o,...Ye(n.childNodes,t,s)]}return o}var Dn=(e,t,s=!0)=>{const n=[];(s&&e["s-sr"]||!e["s-sr"])&&n.push(e);let i=e;for(;i=i.nextSibling;)ge(i)!==t||!s&&i["s-sr"]||n.push(i);return n},kt=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",ge=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function qe(e,t){if("__"+t in e){const s=e["__"+t];return typeof s!="function"?s:s.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var Xe,K,H=new WeakMap,Et=e=>"sc-"+e.p,Ke=e=>(e=typeof e)=="object"||e==="function",x=(e,t,...s)=>{let n=null,i=null,o=null,r=!1,a=!1;const l=[],h=d=>{for(let u=0;u<d.length;u++)n=d[u],Array.isArray(n)?h(n):n!=null&&typeof n!="boolean"&&((r=typeof e!="function"&&!Ke(n))&&(n=String(n)),r&&a?l[l.length-1].h+=n:l.push(r?Oe(null,n):n),a=r)};if(h(s),t){t.key&&(i=t.key),t.name&&(o=t.name);{const d=t.className||t.class;d&&(t.class=typeof d!="object"?d:Object.keys(d).filter((u=>d[u])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,l,jn);const f=Oe(e,null);return f.v=t,l.length>0&&(f.m=l),f.$=i,f.j=o,f},Oe=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),$t={},jn={forEach:(e,t)=>e.map(Nt).forEach(t),map:(e,t)=>e.map(Nt).map(t).map(Mn)},Nt=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),Mn=e=>{if(typeof e.vtag=="function"){const s={...e.vattrs};return e.vkey&&(s.key=e.vkey),e.vname&&(s.name=e.vname),x(e.vtag,s,...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},Pt=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let s=!1;for(const i of t){if(s)break;for(const o of e[i])if(typeof o=="string"){s=!0;break}}if(!s)return e;const n={};for(const i of t)n[i]=e[i].map((o=>typeof o=="string"?{[o]:0}:o));return n},Rt=(e,t,s)=>e==null||Ke(e)?e:4&t?(s&&typeof e=="string"||e!=="false")&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,zn=(e,t,s)=>{const n=k.ce(t,s);return e.dispatchEvent(n),n},Tt=(e,t,s,n,i,o)=>{if(s===n)return;let r=xt(e,t),a=t.toLowerCase();if(t==="class"){const l=e.classList,h=Lt(s);let f=Lt(n);l.remove(...h.filter((d=>d&&!f.includes(d)))),l.add(...f.filter((d=>d&&!h.includes(d))))}else if(t==="style"){for(const l in s)n&&n[l]!=null||(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(const l in n)s&&n[l]===s[l]||(l.includes("-")?e.style.setProperty(l,n[l]):e.style[l]=n[l])}else if(t!=="key"){if(t==="ref")n&&Fn(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 h;{const f=V(e);if(f&&f.o&&f.o.t){const d=f.o.t[l];d&&d[1]&&(h=d[1])}}return h||(h=l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(n==null||n===!1?n===!1&&e.getAttribute(h)!==""||e.removeAttribute(h):e.setAttribute(h,n===!0?"":n))}if(t[0]==="p"&&t.startsWith("prop:")){const l=t.slice(5);try{e[l]=n}catch{}return}{const l=Ke(n);if((r||l&&n!==null)&&!i)try{if(e.tagName.includes("-"))e[t]!==n&&(e[t]=n);else{const f=n??"";t==="list"?r=!1:s!=null&&e[t]===f||(typeof e.__lookupSetter__(t)=="function"?e[t]=f:e.setAttribute(t,f))}}catch{}let h=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,h=!0),n==null||n===!1?n===!1&&e.getAttribute(t)!==""||(h?e.removeAttributeNS(_t,t):e.removeAttribute(t)):(!r||4&o||i)&&!l&&e.nodeType===1&&(n=n===!0?"":n,h?e.setAttributeNS(_t,t,n):e.setAttribute(t,n))}}else if(t=t[2]==="-"?t.slice(3):xt(O,a)?a.slice(2):a[2]+t.slice(3),s||n){const l=t.endsWith(Dt);t=t.replace(Vn,""),s&&k.rel(e,t,s,l),n&&k.ael(e,t,n,l)}}},In=/\s/,Lt=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(In):[]),Dt="Capture",Vn=new RegExp(Dt+"$"),Qe=(e,t,s)=>{const n=t.S.nodeType===11&&t.S.host?t.S.host:t.S,i=e&&e.v||{},o=t.v||{};for(const r of jt(Object.keys(i)))r in o||Tt(n,r,i[r],void 0,s,t.i);for(const r of jt(Object.keys(o)))Tt(n,r,i[r],o[r],s,t.i)};function jt(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var pe=!1,Ae=!1,ke=!1,N=!1,Ze=[],Je=[],Ee=(e,t,s)=>{var n;const i=t.m[s];let o,r,a,l=0;if(pe||(ke=!0,i.O==="slot"&&(i.i|=i.m?2:1)),i.h!=null)o=i.S=O.document.createTextNode(i.h);else if(1&i.i)o=i.S=O.document.createTextNode(""),Qe(null,i,N);else{if(N||(N=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(o=i.S=O.document.createElementNS(N?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!pe&&2&i.i?"slot-fb":i.O),N&&i.O==="foreignObject"&&(N=!1),Qe(null,i,N),i.m){const h=i.O==="template"?o.content:o;for(l=0;l<i.m.length;++l)r=Ee(e,i,l),r&&h.appendChild(r)}i.O==="svg"?N=!1:o.tagName==="foreignObject"&&(N=!0)}return o["s-hn"]=K,3&i.i&&(o["s-sr"]=!0,o["s-cr"]=Xe,o["s-sn"]=i.j||"",o["s-rf"]=(n=i.v)==null?void 0:n.ref,(function(h){if(h.assignedElements||h.assignedNodes||!h["s-sr"])return;const f=d=>(function(u){const g=[],c=this["s-sn"];u?.flatten&&console.error(`
|
|
2
2
|
Flattening is not supported for Stencil non-shadow slots.
|
|
3
3
|
You can use \`.childNodes\` to nested slot fallback content.
|
|
4
4
|
If you have a particular use case, please open an issue on the Stencil repo.
|
|
5
|
-
`);const b=this["s-cr"].parentElement;return(b.__childNodes?b.childNodes:(y=>{const v=[];for(let m=0;m<y.length;m++){const p=y[m]["s-nr"]||void 0;p&&p.isConnected&&v.push(p)}return v})(b.childNodes)).forEach((y=>{c===V(y)&&f.push(y)})),d?f.filter((y=>y.nodeType===1)):f}).bind(h);h.assignedElements=g(!0),h.assignedNodes=g(!1)})(n),o=e&&e.m&&e.m[i],o&&o.O===r.O&&e.S&&ze(e.S)),n},ze=e=>{N.i|=1;const t=e.closest(M.toLowerCase());if(t!=null){const i=Array.from(t.__childNodes||t.childNodes).find((r=>r["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const r of i?s.reverse():s)r["s-sh"]!=null&&(A(t,r,i??null),r["s-sh"]=void 0,q=!0)}N.i&=-2},Q=(e,t)=>{N.i|=1;const i=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"]===M&&i.push(s)}for(let s=i.length-1;s>=0;s--){const r=i[s];r["s-hn"]!==M&&r["s-ol"]&&(A(H(r).parentNode,r,H(r)),r["s-ol"].remove(),r["s-ol"]=void 0,r["s-sh"]=void 0,q=!0),t&&Q(r,t)}N.i&=-2},Me=(e,t,i,s,r,n)=>{let l,o=e["s-cr"]&&e["s-cr"].parentNode||e;for(o.shadowRoot&&o.tagName===M&&(o=o.shadowRoot),i.O==="template"&&(o=o.content);r<=n;++r)s[r]&&(l=K(null,i,r),l&&(s[r].S=l,A(o,l,H(t))))},De=(e,t,i)=>{for(let s=t;s<=i;++s){const r=e[s];if(r){const n=r.S;Re(r),n&&(Y=!0,n["s-ol"]?n["s-ol"].remove():Q(n,!0),n.remove())}}},Z=(e,t,i=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:i?(i&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),H=e=>e&&e["s-ol"]||e,I=(e,t,i=!1)=>{const s=t.S=e.S,r=e.m,n=t.m,l=t.O,o=t.h;let a;o==null?($=l==="svg"||l!=="foreignObject"&&$,l!=="slot"||B||e.j!==t.j&&(t.S["s-sn"]=t.j||"",ze(t.S.parentElement)),de(e,t,$),r!==null&&n!==null?((h,g,d,u,f=!1)=>{let c,b,y=0,v=0,m=0,p=0,S=g.length-1,_=g[0],w=g[S],k=u.length-1,O=u[0],E=u[k];const rt=d.O==="template"?h.content:h;for(;y<=S&&v<=k;)if(_==null)_=g[++y];else if(w==null)w=g[--S];else if(O==null)O=u[++v];else if(E==null)E=u[--k];else if(Z(_,O,f))I(_,O,f),_=g[++y],O=u[++v];else if(Z(w,E,f))I(w,E,f),w=g[--S],E=u[--k];else if(Z(_,E,f))_.O!=="slot"&&E.O!=="slot"||Q(_.S.parentNode,!1),I(_,E,f),A(rt,_.S,w.S.nextSibling),_=g[++y],E=u[--k];else if(Z(w,O,f))_.O!=="slot"&&E.O!=="slot"||Q(w.S.parentNode,!1),I(w,O,f),A(rt,w.S,_.S),w=g[--S],O=u[++v];else{for(m=-1,p=y;p<=S;++p)if(g[p]&&g[p].$!==null&&g[p].$===O.$){m=p;break}m>=0?(b=g[m],b.O!==O.O?c=K(g&&g[v],d,m):(I(b,O,f),g[m]=void 0,c=b.S),O=u[++v]):(c=K(g&&g[v],d,v),O=u[++v]),c&&A(H(_.S).parentNode,c,H(_.S))}y>S?Me(h,u[k+1]==null?null:u[k+1].S,d,u,v,k):v>k&&De(g,y,S)})(s,r,t,n,i):n!==null?(e.h!==null&&(s.textContent=""),Me(s,null,t,n,0,n.length-1)):!i&&r!==null&&De(r,0,r.length-1),$&&l==="svg"&&($=!1)):(a=s["s-cr"])?a.parentNode.textContent=o:e.h!==o&&(s.data=o)},j=[],Ie=e=>{let t,i,s;const r=e.__childNodes||e.childNodes;for(const n of r){if(n["s-sr"]&&(t=n["s-cr"])&&t.parentNode){i=t.parentNode.__childNodes||t.parentNode.childNodes;const l=n["s-sn"];for(s=i.length-1;s>=0;s--)if(t=i[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===n["s-hn"]||t["s-sh"]&&t["s-sh"]===n["s-hn"]))if(ke(t,l)){let o=j.find((a=>a.k===t));Y=!0,t["s-sn"]=t["s-sn"]||l,o?(o.k["s-sh"]=n["s-hn"],o.N=n):(t["s-sh"]=n["s-hn"],j.push({N:n,k:t})),t["s-sr"]&&j.map((a=>{ke(a.k,t["s-sn"])&&(o=j.find((h=>h.k===t)),o&&!a.N&&(a.N=o.N))}))}else j.some((o=>o.k===t))||j.push({k:t})}n.nodeType===1&&Ie(n)}},Re=e=>{e.v&&e.v.ref&&he.push((()=>e.v.ref(null))),e.m&&e.m.map(Re)},yt=(e,t)=>{ge.push((()=>e(t)))},A=(e,t,i,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,i);const{slotNode:r}=(function(n,l){var o;if(!(l=l||((o=n["s-ol"])==null?void 0:o.parentElement)))return{slotNode:null,slotName:""};const a=n["s-sn"]=V(n)||"";return{slotNode:ae(oe(l,"childNodes"),l.tagName,a)[0],slotName:a}})(t);return r&&!s&&r.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,i):e?.insertBefore(t,i)},vt=(e,t,i=!1)=>{var s,r,n,l,o;const a=e.$hostElement$,h=e.o,g=e.M||U(null,null);var d;const u=(d=t)&&d.O===gt?t:x(null,null,t);if(M=a.tagName,h.C&&(u.v=u.v||{},h.C.forEach((([f,c])=>{u.v[c]=a[f]}))),i&&u.v)for(const f of Object.keys(u.v))a.hasAttribute(f)&&!["key","ref","style","class"].includes(f)&&(u.v[f]=a[f]);if(u.O=null,u.i|=4,e.M=u,u.S=g.S=a.shadowRoot||a,B=!(!(1&h.i)||128&h.i),le=a["s-cr"],Y=!1,I(g,u,i),N.i|=1,q){Ie(u.S);for(const f of j){const c=f.k;if(!c["s-ol"]&&C.document){const b=C.document.createTextNode("");b["s-nr"]=c,A(c.parentNode,c["s-ol"]=b,c,i)}}for(const f of j){const c=f.k,b=f.N;if(c.nodeType===1&&i&&(c["s-ih"]=(s=c.hidden)!=null&&s),b){const y=b.parentNode;let v=b.nextSibling;if(v&&v.nodeType===1){let m=(r=c["s-ol"])==null?void 0:r.previousSibling;for(;m;){let p=(n=m["s-nr"])!=null?n:null;if(p&&p["s-sn"]===c["s-sn"]&&y===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===c||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){v=p;break}}m=m.previousSibling}}if((!v&&y!==(c.__parentNode||c.parentNode)||(c.__nextSibling||c.nextSibling)!==v)&&c!==v){if(A(y,c,v,i),c.nodeType===8&&c.nodeValue.startsWith("s-nt-")){const m=C.document.createTextNode(c.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=c["s-hn"],m["s-sn"]=c["s-sn"],m["s-sh"]=c["s-sh"],m["s-sr"]=c["s-sr"],m["s-ol"]=c["s-ol"],m["s-ol"]["s-nr"]=m,A(c.parentNode,m,c,i),c.parentNode.removeChild(c)}c.nodeType===1&&c.tagName!=="SLOT-FB"&&(c.hidden=(l=c["s-ih"])!=null&&l)}c&&typeof b["s-rf"]=="function"&&b["s-rf"](b)}else c.nodeType===1&&(c.hidden=!0)}}if(Y&&Ne(u.S),N.i&=-2,j.length=0,!B&&!(1&h.i)&&a["s-cr"]){const f=u.S.__childNodes||u.S.childNodes;for(const c of f)if(c["s-hn"]!==M&&!c["s-sh"]){if(i&&c["s-ih"]==null&&(c["s-ih"]=(o=c.hidden)!=null&&o),c.nodeType===1)c.hidden=!0;else if(c.nodeType===3&&c.nodeValue.trim()){const b=C.document.createComment("s-nt-"+c.nodeValue);b["s-sn"]=c["s-sn"],A(c.parentNode,b,c,i),c.parentNode.removeChild(c)}}}le=void 0,he.forEach((f=>f())),he.length=0,ge.forEach((f=>f())),ge.length=0},Ge=(e,t)=>{if(t&&!e.A&&t["s-p"]){const i=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(i-1,1),s()})))}},ue=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Ge(e,e.R);const i=()=>_t(e,t);if(!t)return ct(i);queueMicrotask((()=>{i()}))},_t=(e,t)=>{const i=e.$hostElement$,s=i;if(!s)throw new Error(`Can't render component <${i.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 r;return r=F(s,t?"componentWillLoad":"componentWillUpdate",void 0,i),r=Ve(r,(()=>F(s,"componentWillRender",void 0,i))),Ve(r,(()=>St(e,s,t)))},Ve=(e,t)=>xt(e)?e.then(t).catch((i=>{console.error(i),t()})):t(),xt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",St=async(e,t,i)=>{var s;const r=e.$hostElement$,n=r["s-rc"];i&&(l=>{const o=l.o,a=l.$hostElement$,h=o.i,g=((d,u)=>{var f,c,b;const y=$e(u),v=W.get(y);if(!C.document)return y;if(d=d.nodeType===11?d:C.document,v)if(typeof v=="string"){let m,p=T.get(d=d.head||d);if(p||T.set(d,p=new Set),!p.has(y)){m=C.document.createElement("style"),m.textContent=v;const S=(f=N._)!=null?f:(function(){var _,w,k;return(k=(w=(_=C.document.head)==null?void 0:_.querySelector('meta[name="csp-nonce"]'))==null?void 0:w.getAttribute("content"))!=null?k:void 0})();if(S!=null&&m.setAttribute("nonce",S),!(1&u.i))if(d.nodeName==="HEAD"){const _=d.querySelectorAll("link[rel=preconnect]"),w=_.length>0?_[_.length-1].nextSibling:d.querySelector("style");d.insertBefore(m,w?.parentNode===d?w:null)}else if("host"in d)if(te){const _=new((c=d.defaultView)!=null?c:d.ownerDocument.defaultView).CSSStyleSheet;_.replaceSync(v),se?d.adoptedStyleSheets.unshift(_):d.adoptedStyleSheets=[_,...d.adoptedStyleSheets]}else{const _=d.querySelector("style");_?_.textContent=v+_.textContent:d.prepend(m)}else d.append(m);1&u.i&&d.insertBefore(m,null),4&u.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(y)}}else{let m=T.get(d);if(m||T.set(d,m=new Set),!m.has(y)){const p=(b=d.defaultView)!=null?b:d.ownerDocument.defaultView;let S;if(v.constructor===p.CSSStyleSheet)S=v;else{S=new p.CSSStyleSheet;for(let _=0;_<v.cssRules.length;_++)S.insertRule(v.cssRules[_].cssText,_)}se?d.adoptedStyleSheets.push(S):d.adoptedStyleSheets=[...d.adoptedStyleSheets,S],m.add(y)}}return y})(a.shadowRoot?a.shadowRoot:a.getRootNode(),o);10&h&&(a["s-sc"]=g,a.classList.add(g+"-h"))})(e),wt(e,t,r,i),n&&(n.map((l=>l())),r["s-rc"]=void 0);{const l=(s=r["s-p"])!=null?s:[],o=()=>Ct(e);l.length===0?o():(Promise.all(l).then(o).catch(o),e.i|=4,l.length=0)}},wt=(e,t,i,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,vt(e,t,s)}catch(r){z(r,e.$hostElement$)}return null},Ct=e=>{const t=e.$hostElement$,i=t,s=e.R;F(i,"componentDidRender",void 0,t),64&e.i?F(i,"componentDidUpdate",void 0,t):(e.i|=64,kt(t),F(i,"componentDidLoad",void 0,t),e.L(t),s||Nt()),e.A&&(e.A(),e.A=void 0),512&e.i&&ne((()=>ue(e,!1))),e.i&=-517},Nt=()=>{ne((()=>ft(C,"appload",{detail:{namespace:"gids-core-web"}})))},F=(e,t,i,s)=>{if(e&&e[t])try{return e[t](i)}catch(r){z(r,s)}},kt=e=>e.classList.add("hydrated"),Be=(e,t,i,s)=>{const r=P(e);if(!r)return;const n=e,l=r.l.get(t),o=r.i,a=n;i=Ee(i,s.t[t][0],!!(64&s.i));const h=Number.isNaN(l)&&Number.isNaN(i);if(i!==l&&!h){if(r.l.set(t,i),s.F){const g=s.F[t];g&&g.map((d=>{try{const[[u,f]]=Object.entries(d);(128&o||1&f)&&(a?a[u](i,l,t):r.T.push((()=>{r.D[u](i,l,t)})))}catch(u){z(u,n)}}))}if(2&o){if(a.componentShouldUpdate&&a.componentShouldUpdate(i,l,t)===!1&&!(16&o))return;16&o||ue(r,!1)}}},$t=(e,t,i)=>{var s,r;const n=e.prototype;64&t.i&&1&i&&at.forEach((l=>{const o=n[l];Object.defineProperty(n,l,{value(...a){var h;const g=P(this),d=this;d?typeof o=="function"&&o.call(d,...a):(h=g?.H)==null||h.then((u=>{const f=u[l];typeof f=="function"&&f.call(u,...a)}))}})}));{e.watchers&&!t.F&&(t.F=Ae(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const l=Object.entries((s=t.t)!=null?s:{});l.map((([o,[a]])=>{if(31&a||32&a){const{get:h,set:g}=D(n,o)||{};h&&(t.t[o][0]|=2048),g&&(t.t[o][0]|=4096),Object.defineProperty(n,o,{get(){return h?h.apply(this):(d=o,P(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(n,o,{set(d){const u=P(this);if(u){if(g)return(32&a?this[o]:u.$hostElement$[o])===void 0&&u.l.get(o)&&(d=u.l.get(o)),g.apply(this,[Ee(d,a,!!(64&t.i))]),void Be(this,o,d=32&a?this[o]:u.$hostElement$[o],t);Be(this,o,d,t)}}})}}));{const o=new Map;n.attributeChangedCallback=function(a,h,g){N.jmp((()=>{var d;const u=o.get(a),f=P(this);if(this.hasOwnProperty(u),n.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==g)return;if(u==null){const m=f?.i;if(f&&m&&!(8&m)&&g!==h){const p=this,S=(d=t.F)==null?void 0:d[a];S?.forEach((_=>{const[[w,k]]=Object.entries(_);p[w]!=null&&(128&m||1&k)&&p[w].call(p,g,h,a)}))}return}const c=l.find((([m])=>m===u)),b=c&&4&c[1][0],y=b&&g===null&&this[u]===void 0;b&&(g=g!==null&&g!=="false");const v=Object.getOwnPropertyDescriptor(n,u);y||g==this[u]||v.get&&!v.set||(this[u]=g)}))},e.observedAttributes=Array.from(new Set([...Object.keys((r=t.F)!=null?r:{}),...l.filter((([a,h])=>31&h[0])).map((([a,h])=>{var g;const d=h[1]||a;return o.set(d,a),512&h[0]&&((g=t.C)==null||g.push([a,d])),d}))]))}}return e},pe=(e,t)=>{const i={i:t[0],p:t[1]};try{i.t=t[2],i.W=t[3],i.F=Ae(e.F),i.P=e.P,i.U=e.U,i.C=[];const s=e.prototype.connectedCallback,r=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((n,l)=>{const o={i:0,$hostElement$:n,o:l,l:new Map,B:new Map};o.H=new Promise((h=>o.L=h)),n["s-p"]=[],n["s-rc"]=[];const a=o;n.__stencil__getHostRef=()=>a,512&l.i&&nt(n,o)})(this,i)},connectedCallback(){if(!this.__hasHostListenerAttached){const n=P(this);if(!n)return;He(this,n,i.W),this.__hasHostListenerAttached=!0}(n=>{if(!(1&N.i)){const l=P(n);if(!l)return;const o=l.o;if(1&l.i)He(n,l,o.W),l?.D||l?.H&&l.H.then((()=>{}));else{l.i|=1,12&o.i&&(a=>{if(!C.document)return;const h=a["s-cr"]=C.document.createComment("");h["s-cn"]=!0,A(a,h,a.firstChild)})(n);{let a=n;for(;a=a.parentNode||a.host;)if(a["s-p"]){Ge(l,l.R=a);break}}o.t&&Object.entries(o.t).map((([a,[h]])=>{if(31&h&&Object.prototype.hasOwnProperty.call(n,a)){const g=n[a];delete n[a],n[a]=g}})),(async(a,h,g)=>{let d;try{if(!(32&h.i)&&(h.i|=32,d=a.constructor,customElements.whenDefined(a.localName).then((()=>h.i|=128)),d&&d.style)){let c;typeof d.style=="string"&&(c=d.style);const b=$e(g);W.has(b)||((y,v,m)=>{let p=W.get(y);te&&m?(p=p||new CSSStyleSheet,typeof p=="string"?p=v:p.replaceSync(v)):p=v,W.set(y,p)})(b,c,!!(1&g.i))}const u=h.R,f=()=>ue(h,!0);u&&u["s-rc"]?u["s-rc"].push(f):f()}catch(u){z(u,a),h.A&&(h.A(),h.A=void 0),h.L&&h.L(a)}})(n,l,o)}}})(this),s&&s.call(this)},disconnectedCallback(){(async n=>{if(!(1&N.i)){const l=P(n);l?.V&&(l.V.map((o=>o())),l.V=void 0)}T.has(n)&&T.delete(n),n.shadowRoot&&T.has(n.shadowRoot)&&T.delete(n.shadowRoot)})(this),r&&r.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${i.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else dt.call(this,i)}}),Object.defineProperty(e,"is",{value:i.p,configurable:!0}),$t(e,i,3)}catch(s){return z(s),e}},He=(e,t,i)=>{i&&C.document&&i.map((([s,r,n])=>{const l=At(C.document,e,s),o=Ot(t,n),a=Et(s);N.ael(l,r,o,a),(t.V=t.V||[]).push((()=>N.rel(l,r,o,a)))}))},Ot=(e,t)=>i=>{try{e.$hostElement$[t](i)}catch(s){z(s,e.$hostElement$)}},At=(e,t,i)=>8&i?C:t,Et=e=>ot?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function hs(e){return e}function Fe(e){var t,i,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(i=Fe(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function R(){for(var e,t,i=0,s="",r=arguments.length;i<r;i++)(e=arguments[i])&&(t=Fe(e))&&(s&&(s+=" "),s+=t);return s}const Pt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:i},s)=>R("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},i,s)},Symbol.toStringTag,{value:"Module"})),jt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerClassNames:({size:e},t)=>R("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"})),Tt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>R("gids-icon",{"gids-icon--xs":e==="xs","gids-icon--sm":e==="sm","gids-icon--md":e==="md","gids-icon--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),Lt=Object.freeze(Object.defineProperty({__proto__:null,getElementVisibility:e=>{const{label:t,supportingText:i}=e,s=typeof t=="string"&&t.trim().length>0,r=typeof i=="string"&&i.trim().length>0;return{hasLabel:s,hasSupportingText:r}}},Symbol.toStringTag,{value:"Module"})),J=64,We=10,Ue=J/2-We/2,zt=J/2,fe=2*Math.PI*Ue,Mt=`0 0 ${J} ${J}`,Dt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const i=typeof t=="number"&&t>0?t:1,r=Math.max(0,Math.min(i,e))/i*100,n=(fe*r/100).toFixed(2),l=(fe-parseFloat(n)).toFixed(2);return`${n} ${l}`},centerPosition:zt,circumference:fe,radius:Ue,thickness:We,viewBox:Mt},Symbol.toStringTag,{value:"Module"})),It=Object.freeze(Object.defineProperty({__proto__:null,getGidsChartLegendItemClassNames:({seriesType:e,orientation:t},i)=>R("gids-chart-legend-item",{"gids-chart-legend-item--series-2":e==="2","gids-chart-legend-item--series-3":e==="3","gids-chart-legend-item--series-4":e==="4","gids-chart-legend-item--series-5":e==="5","gids-chart-legend-item--series-6":e==="6","gids-chart-legend-item--orientation-vertical":t==="vertical"},i)},Symbol.toStringTag,{value:"Module"})),Rt=Object.freeze(Object.defineProperty({__proto__:null,getGidsChartLegendClassNames:({orientation:e},t)=>R("gids-chart-legend",{"gids-chart-legend--orientation-vertical":e==="vertical"},t)},Symbol.toStringTag,{value:"Module"})),Gt=Object.freeze(Object.defineProperty({__proto__:null,getGidsBarChartClassNames:({breakpoint:e},t)=>R("gids-bar-chart",{"gids-bar-chart--breakpoint-mobile":e==="mobile"},t)},Symbol.toStringTag,{value:"Module"})),me=Symbol("defaultPath"),Ye=Symbol("pathSet"),be="gids-asset-paths-set";class Vt extends EventTarget{#s=new Map;constructor(){super()}#e(t,i){this.#s.set(t,i)}#t(t){return this.#s.get(t)??null}#i=()=>{this.dispatchEvent(new Event(be))};haveAssetPathsBeenSet(){return this.#t(Ye)!==null}setAssetPaths(t,i){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(me,t);else{for(const s in t)this.#e(s,t[s]);i&&this.#e(me,i)}this.#e(Ye,"true"),setTimeout(this.#i,0)}}getAssetFilePath(t){const i=this.#t(t);if(i===null){const s=this.#t(me);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return i}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(be,t,{once:!0}),()=>{this.removeEventListener(be,t)}}}const ye=Symbol.for("GIDS"),Bt=()=>(globalThis[ye]===void 0&&(globalThis[ye]={assetPaths:{}}),globalThis[ye]),Ht=e=>{const t=Bt().assetPaths;return t[e]===void 0&&(t[e]=new Vt),t[e]};function ve(){return Ht("@ganpatiinfo/gids-web-shared")}function Ft(){return ve().haveAssetPathsBeenSet()}function qe(e){return ve().getAssetFilePath(e)}function Wt(e){return ve().onAssetPathsSet(e)}let Ut=0;const Yt=(e,t="gids")=>e||`${t}-${Ut++}`,{getGidsSpinnerControlClassNames:qt}=Pt,{calculateStrokeDasharray:Kt,thickness:Ke,radius:Qe,centerPosition:X,viewBox:Qt}=Dt,Zt=({size:e,indeterminate:t,value:i,max:s,...r})=>{let n;return t||(n={strokeDashArray:Kt(i,s||0),strokeDashoffset:"0"}),x("svg",{class:qt({size:e,indeterminate:t,value:i}),viewBox:Qt,...r},x("circle",{class:"gids-spinner-control__track",cx:X,cy:X,r:Qe,"stroke-width":Ke}),x("circle",{style:n,class:"gids-spinner-control__progress",cx:X,cy:X,r:Qe,"stroke-width":Ke}))},{getGidsSpinnerClassNames:Jt}=jt,{getElementVisibility:Xt}=Lt,es=({label:e,supportingText:t,size:i,indeterminate:s,value:r,max:n,class:l,...o})=>{const{hasLabel:a,hasSupportingText:h}=Xt({label:e,supportingText:t});return x("span",{class:Jt({size:i},l),...o},x(Zt,{size:i,indeterminate:s,value:r,max:n}),a&&x("span",{class:"gids-spinner__label"},e),h&&x("span",{class:"gids-spinner__supporting-text"},t))},{getGidsChartLegendClassNames:ts}=Rt,ss=pe(class extends ee{constructor(e){super(),e!==!1&&this.__registerHost(),this.orientation="horizontal"}handleOrientationChange(e){this.orientation=e}render(){const e=ts({orientation:this.orientation});return x("div",{key:"644b3200e4de07c715a1da903635dadb90b44c97",class:e},x("slot",{key:"bf5e22c6a549cf9f9fb64e5edc9cc2a48173933e"}))}static get watchers(){return{orientation:[{handleOrientationChange:0}]}}static get style(){return".gids-chart-legend{display:inline-flex;align-items:flex-start;gap:var(--gids-gap-150)}.gids-chart-legend--orientation-vertical{flex-direction:column;gap:var(--gids-gap-050)}"}},[260,"gids-chart-legend",{orientation:[1]},void 0,{orientation:[{handleOrientationChange:0}]}]);function Ze(){typeof customElements<"u"&&["gids-chart-legend"].forEach((e=>{e==="gids-chart-legend"&&(customElements.get(e)||customElements.define(e,ss))}))}Ze();const Je={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},Xe=new Map;for(const e in Je)for(const t of Je[e])Xe.set(t,e);function is(e){return Xe.get(e)}function et(e,t="regular",i){const s=is(e);let r=s??"";return i&&s&&(r=i(s)??s),`${r}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:rs}=Tt,ns=({name:e,size:t,appearance:i,alt:s,class:r,titleId:n,src:l,...o})=>{const a=Yt(n);let h=l;return h===void 0&&Ft()&&(h=et(e,i,qe)),x("svg",{ref:g=>{h===void 0&&Wt((()=>{(function(d,u,f){if(!d)return;const c=document.createElementNS("http://www.w3.org/2000/svg","use");c.setAttribute("href",et(u,f,qe)),d.appendChild(c)})(g,e,i)}))},width:"16",height:"16",class:rs({size:t},r),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:a,...o},s!==""&&x("title",{id:a},s||e),h!==void 0?x("use",{href:h}):null)},{getGidsChartLegendItemClassNames:as}=It,os=pe(class extends ee{constructor(e){super(),e!==!1&&this.__registerHost(),this.orientation="horizontal",this.seriesType="1"}handleOrientationChange(e){this.orientation=e}handleSeriesTypeChange(e){this.seriesType=e}render(){const e=as({seriesType:this.seriesType,orientation:this.orientation});return x("div",{key:"53426e6c9a945d640fd4ac57018c92d19f13ed12",class:e},x("div",{key:"c6a5115aa46ea3b08eb8163d1c572beb9e1133a6",class:this.orientation==="vertical"?"gids-chart-legend-item__dot-wrapper-vertical":"gids-chart-legend-item__dot-wrapper-horizontal"},x(ns,{key:"32eda54148964970c44c09149c6962934fb4381e",name:"new",alt:"new_icon",appearance:"filled"})),x("span",{key:"dfad8f6a6cd0f623bfdc827c826a20ca88f0aa56",class:"gids-chart-legend-item__label"},x("slot",{key:"acc890c13bfa893c419a8001998f64fa1ba88bcb"})))}static get watchers(){return{orientation:[{handleOrientationChange:0}],seriesType:[{handleSeriesTypeChange:0}]}}static get style(){return".gids-chart-legend-item{display:flex;align-items:center;gap:var(--gids-gap-100);--gidsChartLegendItemIcon-color:var(--gids-color-icon-subtle);--gidsIcon-color:var(--gidsChartLegendItemIcon-color);--gidsIcon-height:var(--gids-size-080)}.gids-chart-legend-item--orientation-vertical{display:flex}.gids-chart-legend-item--series-2{--gidsChartLegendItemIcon-color:var(--gids-color-icon-warning)}.gids-chart-legend-item--series-3{--gidsChartLegendItemIcon-color:var(--gids-color-icon-danger)}.gids-chart-legend-item--series-4{--gidsChartLegendItemIcon-color:var(--gids-color-background-positive-bold-hovered)}.gids-chart-legend-item--series-5{--gidsChartLegendItemIcon-color:var(--gids-color-background-information-bold-default)}.gids-chart-legend-item--series-6{--gidsChartLegendItemIcon-color:rgb(238, 70, 188)}.gids-chart-legend-item__label{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);text-align:left;color:var(--gids-color-text-subtlest)}.gids-chart-legend-item__dot-wrapper-vertical{display:flex;padding-top:var(--gids-padding-vertical-edge-to-element-075)}.gids-chart-legend-item__dot-wrapper-horizontal{display:flex;align-items:center}"}},[260,"gids-chart-legend-item",{orientation:[1],seriesType:[1,"series-type"]},void 0,{orientation:[{handleOrientationChange:0}],seriesType:[{handleSeriesTypeChange:0}]}]);function tt(){typeof customElements<"u"&&["gids-chart-legend-item"].forEach((e=>{e==="gids-chart-legend-item"&&(customElements.get(e)||customElements.define(e,os))}))}tt();const{getGidsBarChartClassNames:ls}=Gt,st=pe(class extends ee{constructor(e){super(),e!==!1&&this.__registerHost(),this.breakpoint="desktop",this.legend="none",this.chartData=[],this.yAxisVisible=!1,this.dataPoints=[],this.chartLoaderSize="lg",this.chartLoading=!1,this.width=0,this.height=0}chartDataChanged(){this.updateDimensions()}dataPointsChanged(e){this.dataPoints=e}legendChanged(e){this.legend=e}yAxisVisibilityChanged(e){this.yAxisVisible=e}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:300}render(){if(this.chartLoading)return x("div",{class:"gids-bar-chart__no-data"},x(es,{label:this.chartLoadingTitle,supportingText:this.chartLoadingSupportingText,size:this?.chartLoaderSize??"lg"}));const e=this?.chartData?.[0]?.data?.map((c=>c.label))??[],t=e.length,i=Array(t).fill(0);this.chartData.forEach((c=>{Array.isArray(c?.data)&&c.data.forEach(((b,y)=>{y<t&&(i[y]=(i[y]??0)+(b?.value||0))}))}));const s=i.length>0?Math.max(...i):10,r=Math.pow(10,Math.floor(Math.log10(s||1)));let n=r;s/r<=2?n=r/5:s/r<=5&&(n=r/2);const l=Math.ceil(s/n)*n,o=[];if(Array.isArray(this.dataPoints)&&this.dataPoints.length>0){const c=[...this.dataPoints].sort(((m,p)=>m-p)),b=c.length>1?(c[1]??200)-(c[0]??0):200,y=Math.max(...c,l,...i),v=Math.ceil(y/(b||1));for(let m=0;m<=v;m++)o.push(m*b)}else{const b=l/4;for(let y=0;y<5;y++)o.push(Math.round(0+y*b))}const a=Math.max(...o)-0||1,h=ls({breakpoint:this.breakpoint});let g=!1,d=!1;this.breakpoint==="mobile"?this.legend!=="none"&&(g=!0):this.legend==="top"?g=!0:this.legend==="right"&&(d=!0);const u=100/t,f=.4*u;return x("div",{class:h},g?x("div",{class:"gids-bar-chart__header"},x("gids-chart-legend",{orientation:"horizontal"},this.chartData.map(((c,b)=>x("gids-chart-legend-item",{key:c.label,seriesType:`${b+1}`,orientation:"horizontal"},c.label))))):null,x("div",{class:"gids-bar-chart__main-container"},x("div",{class:"gids-bar-chart__grid-layout"},x("span",{class:"gids-bar-chart__y-axis-label"},this.yAxisLabel),x("div",{class:"gids-bar-chart__chart-stage-container"},this.yAxisVisible?x("div",{class:"gids-bar-chart__y-axis-scale-container"},o.map((c=>x("span",{class:"gids-bar-chart__scale-text gids-bar-chart__y-axis-scale-value",key:c,style:{bottom:(c-0)/a*100+"%"}},c)))):null,x("div",{class:"gids-bar-chart__chart-stage"},x("svg",{viewBox:"0 0 100 100",class:"gids-bar-chart__chart-vector",preserveAspectRatio:"none"},o.map((c=>{const b=100-(c-0)/a*100;return x("line",{x1:"0",y1:b,x2:"100",y2:b,class:"gids-bar-chart__grid-line",key:c})})),e.map(((c,b)=>{const y=b*u+(u-f)/2;let v=0;const m=[...this.chartData.map(((p,S)=>{if(!Array.isArray(p.data))return null;const _=p.data[b];if(!_)return null;const w=(_.value||0)/a*100,k=100-w-v;return v+=w,{seriesIdx:S,crownY:k,height:w}})).filter((p=>p!==null&&p.height>0))].sort(((p,S)=>S.seriesIdx-p.seriesIdx));return x("g",{key:b},m.map((p=>{const S=.3*f,_=`
|
|
6
|
-
M ${
|
|
7
|
-
Q ${
|
|
8
|
-
H ${
|
|
9
|
-
Q ${
|
|
5
|
+
`);const m=this["s-cr"].parentElement;return(m.__childNodes?m.childNodes:(v=>{const b=[];for(let y=0;y<v.length;y++){const p=v[y]["s-nr"]||void 0;p&&p.isConnected&&b.push(p)}return b})(m.childNodes)).forEach((v=>{c===ge(v)&&g.push(v)})),d?g.filter((v=>v.nodeType===1)):g}).bind(h);h.assignedElements=f(!0),h.assignedNodes=f(!1)})(o),a=e&&e.m&&e.m[s],a&&a.O===i.O&&e.S&&Mt(e.S)),o},Mt=e=>{k.i|=1;const t=e.closest(K.toLowerCase());if(t!=null){const s=Array.from(t.__childNodes||t.childNodes).find((i=>i["s-cr"])),n=Array.from(e.__childNodes||e.childNodes);for(const i of s?n.reverse():n)i["s-sh"]!=null&&(T(t,i,s??null),i["s-sh"]=void 0,ke=!0)}k.i&=-2},$e=(e,t)=>{k.i|=1;const s=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&&s.push(n)}for(let n=s.length-1;n>=0;n--){const i=s[n];i["s-hn"]!==K&&i["s-ol"]&&(T(me(i).parentNode,i,me(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,ke=!0),t&&$e(i,t)}k.i&=-2},zt=(e,t,s,n,i,o)=>{let r,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===K&&(a=a.shadowRoot),s.O==="template"&&(a=a.content);i<=o;++i)n[i]&&(r=Ee(null,s,i),r&&(n[i].S=r,T(a,r,me(t))))},It=(e,t,s)=>{for(let n=t;n<=s;++n){const i=e[n];if(i){const o=i.S;Ft(i),o&&(Ae=!0,o["s-ol"]?o["s-ol"].remove():$e(o,!0),o.remove())}}},Ne=(e,t,s=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:s?(s&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),me=e=>e&&e["s-ol"]||e,re=(e,t,s=!1)=>{const n=t.S=e.S,i=e.m,o=t.m,r=t.O,a=t.h;let l;a==null?(N=r==="svg"||r!=="foreignObject"&&N,r!=="slot"||pe||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Mt(t.S.parentElement)),Qe(e,t,N),i!==null&&o!==null?((h,f,d,u,g=!1)=>{let c,m,v=0,b=0,y=0,p=0,_=f.length-1,w=f[0],S=f[_],C=u.length-1,A=u[0],E=u[C];const R=d.O==="template"?h.content:h;for(;v<=_&&b<=C;)if(w==null)w=f[++v];else if(S==null)S=f[--_];else if(A==null)A=u[++b];else if(E==null)E=u[--C];else if(Ne(w,A,g))re(w,A,g),w=f[++v],A=u[++b];else if(Ne(S,E,g))re(S,E,g),S=f[--_],E=u[--C];else if(Ne(w,E,g))w.O!=="slot"&&E.O!=="slot"||$e(w.S.parentNode,!1),re(w,E,g),T(R,w.S,S.S.nextSibling),w=f[++v],E=u[--C];else if(Ne(S,A,g))w.O!=="slot"&&E.O!=="slot"||$e(S.S.parentNode,!1),re(S,A,g),T(R,S.S,w.S),S=f[--_],A=u[++b];else{for(y=-1,p=v;p<=_;++p)if(f[p]&&f[p].$!==null&&f[p].$===A.$){y=p;break}y>=0?(m=f[y],m.O!==A.O?c=Ee(f&&f[b],d,y):(re(m,A,g),f[y]=void 0,c=m.S),A=u[++b]):(c=Ee(f&&f[b],d,b),A=u[++b]),c&&T(me(w.S).parentNode,c,me(w.S))}v>_?zt(h,u[C+1]==null?null:u[C+1].S,d,u,b,C):b>C&&It(f,v,_)})(n,i,t,o,s):o!==null?(e.h!==null&&(n.textContent=""),zt(n,null,t,o,0,o.length-1)):!s&&i!==null&&It(i,0,i.length-1),N&&r==="svg"&&(N=!1)):(l=n["s-cr"])?l.parentNode.textContent=a:e.h!==a&&(n.data=a)},F=[],Vt=e=>{let t,s,n;const i=e.__childNodes||e.childNodes;for(const o of i){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){s=t.parentNode.__childNodes||t.parentNode.childNodes;const r=o["s-sn"];for(n=s.length-1;n>=0;n--)if(t=s[n],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(kt(t,r)){let a=F.find((l=>l.k===t));Ae=!0,t["s-sn"]=t["s-sn"]||r,a?(a.k["s-sh"]=o["s-hn"],a.N=o):(t["s-sh"]=o["s-hn"],F.push({N:o,k:t})),t["s-sr"]&&F.map((l=>{kt(l.k,t["s-sn"])&&(a=F.find((h=>h.k===t)),a&&!l.N&&(l.N=a.N))}))}else F.some((a=>a.k===t))||F.push({k:t})}o.nodeType===1&&Vt(o)}},Ft=e=>{e.v&&e.v.ref&&Ze.push((()=>e.v.ref(null))),e.m&&e.m.map(Ft)},Fn=(e,t)=>{Je.push((()=>e(t)))},T=(e,t,s,n)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,s);const{slotNode:i}=(function(o,r){var a;if(!(r=r||((a=o["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const l=o["s-sn"]=ge(o)||"";return{slotNode:Ye(qe(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,s):e?.insertBefore(t,s)},Bn=(e,t,s=!1)=>{var n,i,o,r,a;const l=e.$hostElement$,h=e.o,f=e.M||Oe(null,null);var d;const u=(d=t)&&d.O===$t?t:x(null,null,t);if(K=l.tagName,h.C&&(u.v=u.v||{},h.C.forEach((([g,c])=>{u.v[c]=l[g]}))),s&&u.v)for(const g of Object.keys(u.v))l.hasAttribute(g)&&!["key","ref","style","class"].includes(g)&&(u.v[g]=l[g]);if(u.O=null,u.i|=4,e.M=u,u.S=f.S=l.shadowRoot||l,pe=!(!(1&h.i)||128&h.i),Xe=l["s-cr"],Ae=!1,re(f,u,s),k.i|=1,ke){Vt(u.S);for(const g of F){const c=g.k;if(!c["s-ol"]&&O.document){const m=O.document.createTextNode("");m["s-nr"]=c,T(c.parentNode,c["s-ol"]=m,c,s)}}for(const g of F){const c=g.k,m=g.N;if(c.nodeType===1&&s&&(c["s-ih"]=(n=c.hidden)!=null&&n),m){const v=m.parentNode;let b=m.nextSibling;if(b&&b.nodeType===1){let y=(i=c["s-ol"])==null?void 0:i.previousSibling;for(;y;){let p=(o=y["s-nr"])!=null?o:null;if(p&&p["s-sn"]===c["s-sn"]&&v===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===c||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){b=p;break}}y=y.previousSibling}}if((!b&&v!==(c.__parentNode||c.parentNode)||(c.__nextSibling||c.nextSibling)!==b)&&c!==b){if(T(v,c,b,s),c.nodeType===8&&c.nodeValue.startsWith("s-nt-")){const y=O.document.createTextNode(c.nodeValue.replace(/^s-nt-/,""));y["s-hn"]=c["s-hn"],y["s-sn"]=c["s-sn"],y["s-sh"]=c["s-sh"],y["s-sr"]=c["s-sr"],y["s-ol"]=c["s-ol"],y["s-ol"]["s-nr"]=y,T(c.parentNode,y,c,s),c.parentNode.removeChild(c)}c.nodeType===1&&c.tagName!=="SLOT-FB"&&(c.hidden=(r=c["s-ih"])!=null&&r)}c&&typeof m["s-rf"]=="function"&&m["s-rf"](m)}else c.nodeType===1&&(c.hidden=!0)}}if(Ae&&At(u.S),k.i&=-2,F.length=0,!pe&&!(1&h.i)&&l["s-cr"]){const g=u.S.__childNodes||u.S.childNodes;for(const c of g)if(c["s-hn"]!==K&&!c["s-sh"]){if(s&&c["s-ih"]==null&&(c["s-ih"]=(a=c.hidden)!=null&&a),c.nodeType===1)c.hidden=!0;else if(c.nodeType===3&&c.nodeValue.trim()){const m=O.document.createComment("s-nt-"+c.nodeValue);m["s-sn"]=c["s-sn"],T(c.parentNode,m,c,s),c.parentNode.removeChild(c)}}}Xe=void 0,Ze.forEach((g=>g())),Ze.length=0,Je.forEach((g=>g())),Je.length=0},Bt=(e,t)=>{if(t&&!e.A&&t["s-p"]){const s=t["s-p"].push(new Promise((n=>e.A=()=>{t["s-p"].splice(s-1,1),n()})))}},et=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Bt(e,e.R);const s=()=>Wn(e,t);if(!t)return Tn(s);queueMicrotask((()=>{s()}))},Wn=(e,t)=>{const s=e.$hostElement$,n=s;if(!n)throw new Error(`Can't render component <${s.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=ye(n,t?"componentWillLoad":"componentWillUpdate",void 0,s),i=Wt(i,(()=>ye(n,"componentWillRender",void 0,s))),Wt(i,(()=>Gn(e,n,t)))},Wt=(e,t)=>Hn(e)?e.then(t).catch((s=>{console.error(s),t()})):t(),Hn=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Gn=async(e,t,s)=>{var n;const i=e.$hostElement$,o=i["s-rc"];s&&(r=>{const a=r.o,l=r.$hostElement$,h=a.i,f=((d,u)=>{var g,c,m;const v=Et(u),b=Ce.get(v);if(!O.document)return v;if(d=d.nodeType===11?d:O.document,b)if(typeof b=="string"){let y,p=H.get(d=d.head||d);if(p||H.set(d,p=new Set),!p.has(v)){y=O.document.createElement("style"),y.textContent=b;const _=(g=k._)!=null?g:(function(){var w,S,C;return(C=(S=(w=O.document.head)==null?void 0:w.querySelector('meta[name="csp-nonce"]'))==null?void 0:S.getAttribute("content"))!=null?C:void 0})();if(_!=null&&y.setAttribute("nonce",_),!(1&u.i))if(d.nodeName==="HEAD"){const w=d.querySelectorAll("link[rel=preconnect]"),S=w.length>0?w[w.length-1].nextSibling:d.querySelector("style");d.insertBefore(y,S?.parentNode===d?S:null)}else if("host"in d)if(Be){const w=new((c=d.defaultView)!=null?c:d.ownerDocument.defaultView).CSSStyleSheet;w.replaceSync(b),We?d.adoptedStyleSheets.unshift(w):d.adoptedStyleSheets=[w,...d.adoptedStyleSheets]}else{const w=d.querySelector("style");w?w.textContent=b+w.textContent:d.prepend(y)}else d.append(y);1&u.i&&d.insertBefore(y,null),4&u.i&&(y.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(v)}}else{let y=H.get(d);if(y||H.set(d,y=new Set),!y.has(v)){const p=(m=d.defaultView)!=null?m:d.ownerDocument.defaultView;let _;if(b.constructor===p.CSSStyleSheet)_=b;else{_=new p.CSSStyleSheet;for(let w=0;w<b.cssRules.length;w++)_.insertRule(b.cssRules[w].cssText,w)}We?d.adoptedStyleSheets.push(_):d.adoptedStyleSheets=[...d.adoptedStyleSheets,_],y.add(v)}}return v})(l.shadowRoot?l.shadowRoot:l.getRootNode(),a);10&h&&(l["s-sc"]=f,l.classList.add(f+"-h"))})(e),Un(e,t,i,s),o&&(o.map((r=>r())),i["s-rc"]=void 0);{const r=(n=i["s-p"])!=null?n:[],a=()=>Yn(e);r.length===0?a():(Promise.all(r).then(a).catch(a),e.i|=4,r.length=0)}},Un=(e,t,s,n)=>{try{t=t.render(),e.i&=-17,e.i|=2,Bn(e,t,n)}catch(i){X(i,e.$hostElement$)}return null},Yn=e=>{const t=e.$hostElement$,s=t,n=e.R;ye(s,"componentDidRender",void 0,t),64&e.i?ye(s,"componentDidUpdate",void 0,t):(e.i|=64,Xn(t),ye(s,"componentDidLoad",void 0,t),e.L(t),n||qn()),e.A&&(e.A(),e.A=void 0),512&e.i&&Ue((()=>et(e,!1))),e.i&=-517},qn=()=>{Ue((()=>zn(O,"appload",{detail:{namespace:"gids-core-web"}})))},ye=(e,t,s,n)=>{if(e&&e[t])try{return e[t](s)}catch(i){X(i,n)}},Xn=e=>e.classList.add("hydrated"),Ht=(e,t,s,n)=>{const i=V(e);if(!i)return;const o=e,r=i.l.get(t),a=i.i,l=o;s=Rt(s,n.t[t][0],!!(64&n.i));const h=Number.isNaN(r)&&Number.isNaN(s);if(s!==r&&!h){if(i.l.set(t,s),n.F){const f=n.F[t];f&&f.map((d=>{try{const[[u,g]]=Object.entries(d);(128&a||1&g)&&(l?l[u](s,r,t):i.T.push((()=>{i.D[u](s,r,t)})))}catch(u){X(u,o)}}))}if(2&a){if(l.componentShouldUpdate&&l.componentShouldUpdate(s,r,t)===!1&&!(16&a))return;16&a||et(i,!1)}}},Kn=(e,t,s)=>{var n,i;const o=e.prototype;64&t.i&&1&s&&Nn.forEach((r=>{const a=o[r];Object.defineProperty(o,r,{value(...l){var h;const f=V(this),d=this;d?typeof a=="function"&&a.call(d,...l):(h=f?.H)==null||h.then((u=>{const g=u[r];typeof g=="function"&&g.call(u,...l)}))}})}));{e.watchers&&!t.F&&(t.F=Pt(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((([a,[l]])=>{if(31&l||32&l){const{get:h,set:f}=oe(o,a)||{};h&&(t.t[a][0]|=2048),f&&(t.t[a][0]|=4096),Object.defineProperty(o,a,{get(){return h?h.apply(this):(d=a,V(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(o,a,{set(d){const u=V(this);if(u){if(f)return(32&l?this[a]:u.$hostElement$[a])===void 0&&u.l.get(a)&&(d=u.l.get(a)),f.apply(this,[Rt(d,l,!!(64&t.i))]),void Ht(this,a,d=32&l?this[a]:u.$hostElement$[a],t);Ht(this,a,d,t)}}})}}));{const a=new Map;o.attributeChangedCallback=function(l,h,f){k.jmp((()=>{var d;const u=a.get(l),g=V(this);if(this.hasOwnProperty(u),o.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==f)return;if(u==null){const y=g?.i;if(g&&y&&!(8&y)&&f!==h){const p=this,_=(d=t.F)==null?void 0:d[l];_?.forEach((w=>{const[[S,C]]=Object.entries(w);p[S]!=null&&(128&y||1&C)&&p[S].call(p,f,h,l)}))}return}const c=r.find((([y])=>y===u)),m=c&&4&c[1][0],v=m&&f===null&&this[u]===void 0;m&&(f=f!==null&&f!=="false");const b=Object.getOwnPropertyDescriptor(o,u);v||f==this[u]||b.get&&!b.set||(this[u]=f)}))},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.F)!=null?i:{}),...r.filter((([l,h])=>31&h[0])).map((([l,h])=>{var f;const d=h[1]||l;return a.set(d,l),512&h[0]&&((f=t.C)==null||f.push([l,d])),d}))]))}}return e},Pe=(e,t)=>{const s={i:t[0],p:t[1]};try{s.t=t[2],s.W=t[3],s.F=Pt(e.F),s.P=e.P,s.U=e.U,s.C=[];const n=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,r)=>{const a={i:0,$hostElement$:o,o:r,l:new Map,B:new Map};a.H=new Promise((h=>a.L=h)),o["s-p"]=[],o["s-rc"]=[];const l=a;o.__stencil__getHostRef=()=>l,512&r.i&&$n(o,a)})(this,s)},connectedCallback(){if(!this.__hasHostListenerAttached){const o=V(this);if(!o)return;Gt(this,o,s.W),this.__hasHostListenerAttached=!0}(o=>{if(!(1&k.i)){const r=V(o);if(!r)return;const a=r.o;if(1&r.i)Gt(o,r,a.W),r?.D||r?.H&&r.H.then((()=>{}));else{r.i|=1,12&a.i&&(l=>{if(!O.document)return;const h=l["s-cr"]=O.document.createComment("");h["s-cn"]=!0,T(l,h,l.firstChild)})(o);{let l=o;for(;l=l.parentNode||l.host;)if(l["s-p"]){Bt(r,r.R=l);break}}a.t&&Object.entries(a.t).map((([l,[h]])=>{if(31&h&&Object.prototype.hasOwnProperty.call(o,l)){const f=o[l];delete o[l],o[l]=f}})),(async(l,h,f)=>{let d;try{if(!(32&h.i)&&(h.i|=32,d=l.constructor,customElements.whenDefined(l.localName).then((()=>h.i|=128)),d&&d.style)){let c;typeof d.style=="string"&&(c=d.style);const m=Et(f);Ce.has(m)||((v,b,y)=>{let p=Ce.get(v);Be&&y?(p=p||new CSSStyleSheet,typeof p=="string"?p=b:p.replaceSync(b)):p=b,Ce.set(v,p)})(m,c,!!(1&f.i))}const u=h.R,g=()=>et(h,!0);u&&u["s-rc"]?u["s-rc"].push(g):g()}catch(u){X(u,l),h.A&&(h.A(),h.A=void 0),h.L&&h.L(l)}})(o,r,a)}}})(this),n&&n.call(this)},disconnectedCallback(){(async o=>{if(!(1&k.i)){const r=V(o);r?.V&&(r.V.map((a=>a())),r.V=void 0)}H.has(o)&&H.delete(o),o.shadowRoot&&H.has(o.shadowRoot)&&H.delete(o.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 ${s.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Ln.call(this,s)}}),Object.defineProperty(e,"is",{value:s.p,configurable:!0}),Kn(e,s,3)}catch(n){return X(n),e}},Gt=(e,t,s)=>{s&&O.document&&s.map((([n,i,o])=>{const r=Zn(O.document,e,n),a=Qn(t,o),l=Jn(n);k.ael(r,i,a,l),(t.V=t.V||[]).push((()=>k.rel(r,i,a,l)))}))},Qn=(e,t)=>s=>{try{e.$hostElement$[t](s)}catch(n){X(n,e.$hostElement$)}},Zn=(e,t,s)=>8&s?O:t,Jn=e=>Pn?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function $i(e){return e}function Ut(e){var t,s,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(s=Ut(e[t]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}function Q(){for(var e,t,s=0,n="",i=arguments.length;s<i;s++)(e=arguments[s])&&(t=Ut(e))&&(n&&(n+=" "),n+=t);return n}const es=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:s},n)=>Q("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},s,n)},Symbol.toStringTag,{value:"Module"})),ts=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerClassNames:({size:e},t)=>Q("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"})),ns=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>Q("gids-icon",{"gids-icon--xs":e==="xs","gids-icon--sm":e==="sm","gids-icon--md":e==="md","gids-icon--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),ss=Object.freeze(Object.defineProperty({__proto__:null,getElementVisibility:e=>{const{label:t,supportingText:s}=e,n=typeof t=="string"&&t.trim().length>0,i=typeof s=="string"&&s.trim().length>0;return{hasLabel:n,hasSupportingText:i}}},Symbol.toStringTag,{value:"Module"})),Re=64,Yt=10,qt=Re/2-Yt/2,is=Re/2,tt=2*Math.PI*qt,os=`0 0 ${Re} ${Re}`,rs=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const s=typeof t=="number"&&t>0?t:1,i=Math.max(0,Math.min(s,e))/s*100,o=(tt*i/100).toFixed(2),r=(tt-parseFloat(o)).toFixed(2);return`${o} ${r}`},centerPosition:is,circumference:tt,radius:qt,thickness:Yt,viewBox:os},Symbol.toStringTag,{value:"Module"})),as=Object.freeze(Object.defineProperty({__proto__:null,getGidsChartLegendItemClassNames:({seriesType:e,orientation:t},s)=>Q("gids-chart-legend-item",{"gids-chart-legend-item--series-2":e==="2","gids-chart-legend-item--series-3":e==="3","gids-chart-legend-item--series-4":e==="4","gids-chart-legend-item--series-5":e==="5","gids-chart-legend-item--series-6":e==="6","gids-chart-legend-item--orientation-vertical":t==="vertical"},s)},Symbol.toStringTag,{value:"Module"})),ls=Object.freeze(Object.defineProperty({__proto__:null,getGidsChartLegendClassNames:({orientation:e},t)=>Q("gids-chart-legend",{"gids-chart-legend--orientation-vertical":e==="vertical"},t)},Symbol.toStringTag,{value:"Module"})),cs=Object.freeze(Object.defineProperty({__proto__:null,getGidsBarChartClassNames:({breakpoint:e},t)=>Q("gids-bar-chart",{"gids-bar-chart--breakpoint-mobile":e==="mobile"},t)},Symbol.toStringTag,{value:"Module"})),ds=Object.freeze(Object.defineProperty({__proto__:null,getGidsAdvancedTooltipClassNames:({visible:e},t)=>Q("gids-advanced-tooltip",{"gids-advanced-tooltip--visible":e},t)},Symbol.toStringTag,{value:"Module"})),nt=Symbol("defaultPath"),Xt=Symbol("pathSet"),st="gids-asset-paths-set";class hs extends EventTarget{#n=new Map;constructor(){super()}#e(t,s){this.#n.set(t,s)}#t(t){return this.#n.get(t)??null}#s=()=>{this.dispatchEvent(new Event(st))};haveAssetPathsBeenSet(){return this.#t(Xt)!==null}setAssetPaths(t,s){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(nt,t);else{for(const n in t)this.#e(n,t[n]);s&&this.#e(nt,s)}this.#e(Xt,"true"),setTimeout(this.#s,0)}}getAssetFilePath(t){const s=this.#t(t);if(s===null){const n=this.#t(nt);if(n!==null)return`${n}${n.endsWith("/")?"":"/"}${t}`}return s}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(st,t,{once:!0}),()=>{this.removeEventListener(st,t)}}}const it=Symbol.for("GIDS"),fs=()=>(globalThis[it]===void 0&&(globalThis[it]={assetPaths:{}}),globalThis[it]),us=e=>{const t=fs().assetPaths;return t[e]===void 0&&(t[e]=new hs),t[e]};function ot(){return us("@ganpatiinfo/gids-web-shared")}function gs(){return ot().haveAssetPathsBeenSet()}function Kt(e){return ot().getAssetFilePath(e)}function ps(e){return ot().onAssetPathsSet(e)}let ms=0;const ys=(e,t="gids")=>e||`${t}-${ms++}`,{getGidsSpinnerControlClassNames:vs}=es,{calculateStrokeDasharray:bs,thickness:Qt,radius:Zt,centerPosition:Te,viewBox:ws}=rs,xs=({size:e,indeterminate:t,value:s,max:n,...i})=>{let o;return t||(o={strokeDashArray:bs(s,n||0),strokeDashoffset:"0"}),x("svg",{class:vs({size:e,indeterminate:t,value:s}),viewBox:ws,...i},x("circle",{class:"gids-spinner-control__track",cx:Te,cy:Te,r:Zt,"stroke-width":Qt}),x("circle",{style:o,class:"gids-spinner-control__progress",cx:Te,cy:Te,r:Zt,"stroke-width":Qt}))},{getGidsSpinnerClassNames:_s}=ts,{getElementVisibility:Ss}=ss,Cs=({label:e,supportingText:t,size:s,indeterminate:n,value:i,max:o,class:r,...a})=>{const{hasLabel:l,hasSupportingText:h}=Ss({label:e,supportingText:t});return x("span",{class:_s({size:s},r),...a},x(xs,{size:s,indeterminate:n,value:i,max:o}),l&&x("span",{class:"gids-spinner__label"},e),h&&x("span",{class:"gids-spinner__supporting-text"},t))},ae=Math.min,Z=Math.max,Le=Math.round,De=Math.floor,z=e=>({x:e,y:e}),Os={left:"right",right:"left",bottom:"top",top:"bottom"};function rt(e,t,s){return Z(e,ae(t,s))}function ve(e,t){return typeof e=="function"?e(t):e}function J(e){return e.split("-")[0]}function be(e){return e.split("-")[1]}function Jt(e){return e==="x"?"y":"x"}function at(e){return e==="y"?"height":"width"}function G(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function lt(e){return Jt(G(e))}function As(e,t,s){s===void 0&&(s=!1);const n=be(e),i=lt(e),o=at(i);let r=i==="x"?n===(s?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(r=je(r)),[r,je(r)]}function ks(e){const t=je(e);return[ct(e),t,ct(t)]}function ct(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const en=["left","right"],tn=["right","left"],Es=["top","bottom"],$s=["bottom","top"];function Ns(e,t,s){switch(e){case"top":case"bottom":return s?t?tn:en:t?en:tn;case"left":case"right":return t?Es:$s;default:return[]}}function Ps(e,t,s,n){const i=be(e);let o=Ns(J(e),s==="start",n);return i&&(o=o.map(r=>r+"-"+i),t&&(o=o.concat(o.map(ct)))),o}function je(e){const t=J(e);return Os[t]+e.slice(t.length)}function Rs(e){return{top:0,right:0,bottom:0,left:0,...e}}function nn(e){return typeof e!="number"?Rs(e):{top:e,right:e,bottom:e,left:e}}function Me(e){const{x:t,y:s,width:n,height:i}=e;return{width:n,height:i,top:s,left:t,right:t+n,bottom:s+i,x:t,y:s}}function sn(e,t,s){let{reference:n,floating:i}=e;const o=G(t),r=lt(t),a=at(r),l=J(t),h=o==="y",f=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,u=n[a]/2-i[a]/2;let g;switch(l){case"top":g={x:f,y:n.y-i.height};break;case"bottom":g={x:f,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:d};break;case"left":g={x:n.x-i.width,y:d};break;default:g={x:n.x,y:n.y}}switch(be(t)){case"start":g[r]-=u*(s&&h?-1:1);break;case"end":g[r]+=u*(s&&h?-1:1);break}return g}async function Ts(e,t){var s;t===void 0&&(t={});const{x:n,y:i,platform:o,rects:r,elements:a,strategy:l}=e,{boundary:h="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:u=!1,padding:g=0}=ve(t,e),c=nn(g),v=a[u?d==="floating"?"reference":"floating":d],b=Me(await o.getClippingRect({element:(s=await(o.isElement==null?void 0:o.isElement(v)))==null||s?v:v.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:h,rootBoundary:f,strategy:l})),y=d==="floating"?{x:n,y:i,width:r.floating.width,height:r.floating.height}:r.reference,p=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),_=await(o.isElement==null?void 0:o.isElement(p))?await(o.getScale==null?void 0:o.getScale(p))||{x:1,y:1}:{x:1,y:1},w=Me(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:p,strategy:l}):y);return{top:(b.top-w.top+c.top)/_.y,bottom:(w.bottom-b.bottom+c.bottom)/_.y,left:(b.left-w.left+c.left)/_.x,right:(w.right-b.right+c.right)/_.x}}const Ls=50,Ds=async(e,t,s)=>{const{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:r}=s,a=r.detectOverflow?r:{...r,detectOverflow:Ts},l=await(r.isRTL==null?void 0:r.isRTL(t));let h=await r.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:d}=sn(h,n,l),u=n,g=0;const c={};for(let m=0;m<o.length;m++){const v=o[m];if(!v)continue;const{name:b,fn:y}=v,{x:p,y:_,data:w,reset:S}=await y({x:f,y:d,initialPlacement:n,placement:u,strategy:i,middlewareData:c,rects:h,platform:a,elements:{reference:e,floating:t}});f=p??f,d=_??d,c[b]={...c[b],...w},S&&g<Ls&&(g++,typeof S=="object"&&(S.placement&&(u=S.placement),S.rects&&(h=S.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:i}):S.rects),{x:f,y:d}=sn(h,u,l)),m=-1)}return{x:f,y:d,placement:u,strategy:i,middlewareData:c}},js=e=>({name:"arrow",options:e,async fn(t){const{x:s,y:n,placement:i,rects:o,platform:r,elements:a,middlewareData:l}=t,{element:h,padding:f=0}=ve(e,t)||{};if(h==null)return{};const d=nn(f),u={x:s,y:n},g=lt(i),c=at(g),m=await r.getDimensions(h),v=g==="y",b=v?"top":"left",y=v?"bottom":"right",p=v?"clientHeight":"clientWidth",_=o.reference[c]+o.reference[g]-u[g]-o.floating[c],w=u[g]-o.reference[g],S=await(r.getOffsetParent==null?void 0:r.getOffsetParent(h));let C=S?S[p]:0;(!C||!await(r.isElement==null?void 0:r.isElement(S)))&&(C=a.floating[p]||o.floating[c]);const A=_/2-w/2,E=C/2-m[c]/2-1,R=ae(d[b],E),_e=ae(d[y],E),se=R,Se=C-m[c]-_e,$=C/2-m[c]/2+A,ie=rt(se,$,Se),W=!l.arrow&&be(i)!=null&&$!==ie&&o.reference[c]/2-($<se?R:_e)-m[c]/2<0,j=W?$<se?$-se:$-Se:0;return{[g]:u[g]+j,data:{[g]:ie,centerOffset:$-ie-j,...W&&{alignmentOffset:j}},reset:W}}}),Ms=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var s,n;const{placement:i,middlewareData:o,rects:r,initialPlacement:a,platform:l,elements:h}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:u,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:c="none",flipAlignment:m=!0,...v}=ve(e,t);if((s=o.arrow)!=null&&s.alignmentOffset)return{};const b=J(i),y=G(a),p=J(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(h.floating)),w=u||(p||!m?[je(a)]:ks(a)),S=c!=="none";!u&&S&&w.push(...Ps(a,m,c,_));const C=[a,...w],A=await l.detectOverflow(t,v),E=[];let R=((n=o.flip)==null?void 0:n.overflows)||[];if(f&&E.push(A[b]),d){const $=As(i,r,_);E.push(A[$[0]],A[$[1]])}if(R=[...R,{placement:i,overflows:E}],!E.every($=>$<=0)){var _e,se;const $=(((_e=o.flip)==null?void 0:_e.index)||0)+1,ie=C[$];if(ie&&(!(d==="alignment"?y!==G(ie):!1)||R.every(M=>G(M.placement)===y?M.overflows[0]>0:!0)))return{data:{index:$,overflows:R},reset:{placement:ie}};let W=(se=R.filter(j=>j.overflows[0]<=0).sort((j,M)=>j.overflows[1]-M.overflows[1])[0])==null?void 0:se.placement;if(!W)switch(g){case"bestFit":{var Se;const j=(Se=R.filter(M=>{if(S){const Y=G(M.placement);return Y===y||Y==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(Y=>Y>0).reduce((Y,Ei)=>Y+Ei,0)]).sort((M,Y)=>M[1]-Y[1])[0])==null?void 0:Se[0];j&&(W=j);break}case"initialPlacement":W=a;break}if(i!==W)return{reset:{placement:W}}}return{}}}},zs=new Set(["left","top"]);async function Is(e,t){const{placement:s,platform:n,elements:i}=e,o=await(n.isRTL==null?void 0:n.isRTL(i.floating)),r=J(s),a=be(s),l=G(s)==="y",h=zs.has(r)?-1:1,f=o&&l?-1:1,d=ve(t,e);let{mainAxis:u,crossAxis:g,alignmentAxis:c}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof c=="number"&&(g=a==="end"?c*-1:c),l?{x:g*f,y:u*h}:{x:u*h,y:g*f}}const Vs=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var s,n;const{x:i,y:o,placement:r,middlewareData:a}=t,l=await Is(t,e);return r===((s=a.offset)==null?void 0:s.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:r}}}}},Fs=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:s,y:n,placement:i,platform:o}=t,{mainAxis:r=!0,crossAxis:a=!1,limiter:l={fn:b=>{let{x:y,y:p}=b;return{x:y,y:p}}},...h}=ve(e,t),f={x:s,y:n},d=await o.detectOverflow(t,h),u=G(J(i)),g=Jt(u);let c=f[g],m=f[u];if(r){const b=g==="y"?"top":"left",y=g==="y"?"bottom":"right",p=c+d[b],_=c-d[y];c=rt(p,c,_)}if(a){const b=u==="y"?"top":"left",y=u==="y"?"bottom":"right",p=m+d[b],_=m-d[y];m=rt(p,m,_)}const v=l.fn({...t,[g]:c,[u]:m});return{...v,data:{x:v.x-s,y:v.y-n,enabled:{[g]:r,[u]:a}}}}}};function ze(){return typeof window<"u"}function le(e){return on(e)?(e.nodeName||"").toLowerCase():"#document"}function P(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function I(e){var t;return(t=(on(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function on(e){return ze()?e instanceof Node||e instanceof P(e).Node:!1}function L(e){return ze()?e instanceof Element||e instanceof P(e).Element:!1}function B(e){return ze()?e instanceof HTMLElement||e instanceof P(e).HTMLElement:!1}function rn(e){return!ze()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof P(e).ShadowRoot}function we(e){const{overflow:t,overflowX:s,overflowY:n,display:i}=D(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+s)&&i!=="inline"&&i!=="contents"}function Bs(e){return/^(table|td|th)$/.test(le(e))}function Ie(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Ws=/transform|translate|scale|rotate|perspective|filter/,Hs=/paint|layout|strict|content/,ee=e=>!!e&&e!=="none";let dt;function ht(e){const t=L(e)?D(e):e;return ee(t.transform)||ee(t.translate)||ee(t.scale)||ee(t.rotate)||ee(t.perspective)||!ft()&&(ee(t.backdropFilter)||ee(t.filter))||Ws.test(t.willChange||"")||Hs.test(t.contain||"")}function Gs(e){let t=U(e);for(;B(t)&&!ce(t);){if(ht(t))return t;if(Ie(t))return null;t=U(t)}return null}function ft(){return dt==null&&(dt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),dt}function ce(e){return/^(html|body|#document)$/.test(le(e))}function D(e){return P(e).getComputedStyle(e)}function Ve(e){return L(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function U(e){if(le(e)==="html")return e;const t=e.assignedSlot||e.parentNode||rn(e)&&e.host||I(e);return rn(t)?t.host:t}function an(e){const t=U(e);return ce(t)?e.ownerDocument?e.ownerDocument.body:e.body:B(t)&&we(t)?t:an(t)}function xe(e,t,s){var n;t===void 0&&(t=[]),s===void 0&&(s=!0);const i=an(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),r=P(i);if(o){const a=ut(r);return t.concat(r,r.visualViewport||[],we(i)?i:[],a&&s?xe(a):[])}else return t.concat(i,xe(i,[],s))}function ut(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ln(e){const t=D(e);let s=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=B(e),o=i?e.offsetWidth:s,r=i?e.offsetHeight:n,a=Le(s)!==o||Le(n)!==r;return a&&(s=o,n=r),{width:s,height:n,$:a}}function gt(e){return L(e)?e:e.contextElement}function de(e){const t=gt(e);if(!B(t))return z(1);const s=t.getBoundingClientRect(),{width:n,height:i,$:o}=ln(t);let r=(o?Le(s.width):s.width)/n,a=(o?Le(s.height):s.height)/i;return(!r||!Number.isFinite(r))&&(r=1),(!a||!Number.isFinite(a))&&(a=1),{x:r,y:a}}const Us=z(0);function cn(e){const t=P(e);return!ft()||!t.visualViewport?Us:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ys(e,t,s){return t===void 0&&(t=!1),!s||t&&s!==P(e)?!1:t}function te(e,t,s,n){t===void 0&&(t=!1),s===void 0&&(s=!1);const i=e.getBoundingClientRect(),o=gt(e);let r=z(1);t&&(n?L(n)&&(r=de(n)):r=de(e));const a=Ys(o,s,n)?cn(o):z(0);let l=(i.left+a.x)/r.x,h=(i.top+a.y)/r.y,f=i.width/r.x,d=i.height/r.y;if(o){const u=P(o),g=n&&L(n)?P(n):n;let c=u,m=ut(c);for(;m&&n&&g!==c;){const v=de(m),b=m.getBoundingClientRect(),y=D(m),p=b.left+(m.clientLeft+parseFloat(y.paddingLeft))*v.x,_=b.top+(m.clientTop+parseFloat(y.paddingTop))*v.y;l*=v.x,h*=v.y,f*=v.x,d*=v.y,l+=p,h+=_,c=P(m),m=ut(c)}}return Me({width:f,height:d,x:l,y:h})}function Fe(e,t){const s=Ve(e).scrollLeft;return t?t.left+s:te(I(e)).left+s}function dn(e,t){const s=e.getBoundingClientRect(),n=s.left+t.scrollLeft-Fe(e,s),i=s.top+t.scrollTop;return{x:n,y:i}}function qs(e){let{elements:t,rect:s,offsetParent:n,strategy:i}=e;const o=i==="fixed",r=I(n),a=t?Ie(t.floating):!1;if(n===r||a&&o)return s;let l={scrollLeft:0,scrollTop:0},h=z(1);const f=z(0),d=B(n);if((d||!d&&!o)&&((le(n)!=="body"||we(r))&&(l=Ve(n)),d)){const g=te(n);h=de(n),f.x=g.x+n.clientLeft,f.y=g.y+n.clientTop}const u=r&&!d&&!o?dn(r,l):z(0);return{width:s.width*h.x,height:s.height*h.y,x:s.x*h.x-l.scrollLeft*h.x+f.x+u.x,y:s.y*h.y-l.scrollTop*h.y+f.y+u.y}}function Xs(e){return Array.from(e.getClientRects())}function Ks(e){const t=I(e),s=Ve(e),n=e.ownerDocument.body,i=Z(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=Z(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let r=-s.scrollLeft+Fe(e);const a=-s.scrollTop;return D(n).direction==="rtl"&&(r+=Z(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:r,y:a}}const hn=25;function Qs(e,t){const s=P(e),n=I(e),i=s.visualViewport;let o=n.clientWidth,r=n.clientHeight,a=0,l=0;if(i){o=i.width,r=i.height;const f=ft();(!f||f&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}const h=Fe(n);if(h<=0){const f=n.ownerDocument,d=f.body,u=getComputedStyle(d),g=f.compatMode==="CSS1Compat"&&parseFloat(u.marginLeft)+parseFloat(u.marginRight)||0,c=Math.abs(n.clientWidth-d.clientWidth-g);c<=hn&&(o-=c)}else h<=hn&&(o+=h);return{width:o,height:r,x:a,y:l}}function Zs(e,t){const s=te(e,!0,t==="fixed"),n=s.top+e.clientTop,i=s.left+e.clientLeft,o=B(e)?de(e):z(1),r=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,h=n*o.y;return{width:r,height:a,x:l,y:h}}function fn(e,t,s){let n;if(t==="viewport")n=Qs(e,s);else if(t==="document")n=Ks(I(e));else if(L(t))n=Zs(t,s);else{const i=cn(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Me(n)}function un(e,t){const s=U(e);return s===t||!L(s)||ce(s)?!1:D(s).position==="fixed"||un(s,t)}function Js(e,t){const s=t.get(e);if(s)return s;let n=xe(e,[],!1).filter(a=>L(a)&&le(a)!=="body"),i=null;const o=D(e).position==="fixed";let r=o?U(e):e;for(;L(r)&&!ce(r);){const a=D(r),l=ht(r);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||we(r)&&!l&&un(e,r))?n=n.filter(f=>f!==r):i=a,r=U(r)}return t.set(e,n),n}function ei(e){let{element:t,boundary:s,rootBoundary:n,strategy:i}=e;const r=[...s==="clippingAncestors"?Ie(t)?[]:Js(t,this._c):[].concat(s),n],a=fn(t,r[0],i);let l=a.top,h=a.right,f=a.bottom,d=a.left;for(let u=1;u<r.length;u++){const g=fn(t,r[u],i);l=Z(g.top,l),h=ae(g.right,h),f=ae(g.bottom,f),d=Z(g.left,d)}return{width:h-d,height:f-l,x:d,y:l}}function ti(e){const{width:t,height:s}=ln(e);return{width:t,height:s}}function ni(e,t,s){const n=B(t),i=I(t),o=s==="fixed",r=te(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=z(0);function h(){l.x=Fe(i)}if(n||!n&&!o)if((le(t)!=="body"||we(i))&&(a=Ve(t)),n){const g=te(t,!0,o,t);l.x=g.x+t.clientLeft,l.y=g.y+t.clientTop}else i&&h();o&&!n&&i&&h();const f=i&&!n&&!o?dn(i,a):z(0),d=r.left+a.scrollLeft-l.x-f.x,u=r.top+a.scrollTop-l.y-f.y;return{x:d,y:u,width:r.width,height:r.height}}function pt(e){return D(e).position==="static"}function gn(e,t){if(!B(e)||D(e).position==="fixed")return null;if(t)return t(e);let s=e.offsetParent;return I(e)===s&&(s=s.ownerDocument.body),s}function pn(e,t){const s=P(e);if(Ie(e))return s;if(!B(e)){let i=U(e);for(;i&&!ce(i);){if(L(i)&&!pt(i))return i;i=U(i)}return s}let n=gn(e,t);for(;n&&Bs(n)&&pt(n);)n=gn(n,t);return n&&ce(n)&&pt(n)&&!ht(n)?s:n||Gs(e)||s}const si=async function(e){const t=this.getOffsetParent||pn,s=this.getDimensions,n=await s(e.floating);return{reference:ni(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function ii(e){return D(e).direction==="rtl"}const mt={convertOffsetParentRelativeRectToViewportRelativeRect:qs,getDocumentElement:I,getClippingRect:ei,getOffsetParent:pn,getElementRects:si,getClientRects:Xs,getDimensions:ti,getScale:de,isElement:L,isRTL:ii};function mn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function oi(e,t){let s=null,n;const i=I(e);function o(){var a;clearTimeout(n),(a=s)==null||a.disconnect(),s=null}function r(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const h=e.getBoundingClientRect(),{left:f,top:d,width:u,height:g}=h;if(a||t(),!u||!g)return;const c=De(d),m=De(i.clientWidth-(f+u)),v=De(i.clientHeight-(d+g)),b=De(f),p={rootMargin:-c+"px "+-m+"px "+-v+"px "+-b+"px",threshold:Z(0,ae(1,l))||1};let _=!0;function w(S){const C=S[0].intersectionRatio;if(C!==l){if(!_)return r();C?r(!1,C):n=setTimeout(()=>{r(!1,1e-7)},1e3)}C===1&&!mn(h,e.getBoundingClientRect())&&r(),_=!1}try{s=new IntersectionObserver(w,{...p,root:i.ownerDocument})}catch{s=new IntersectionObserver(w,p)}s.observe(e)}return r(!0),o}function ri(e,t,s,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,h=gt(e),f=i||o?[...h?xe(h):[],...t?xe(t):[]]:[];f.forEach(b=>{i&&b.addEventListener("scroll",s,{passive:!0}),o&&b.addEventListener("resize",s)});const d=h&&a?oi(h,s):null;let u=-1,g=null;r&&(g=new ResizeObserver(b=>{let[y]=b;y&&y.target===h&&g&&t&&(g.unobserve(t),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var p;(p=g)==null||p.observe(t)})),s()}),h&&!l&&g.observe(h),t&&g.observe(t));let c,m=l?te(e):null;l&&v();function v(){const b=te(e);m&&!mn(m,b)&&s(),m=b,c=requestAnimationFrame(v)}return s(),()=>{var b;f.forEach(y=>{i&&y.removeEventListener("scroll",s),o&&y.removeEventListener("resize",s)}),d?.(),(b=g)==null||b.disconnect(),g=null,l&&cancelAnimationFrame(c)}}const ai=Vs,li=Fs,ci=Ms,di=js,hi=(e,t,s)=>{const n=new Map,i={platform:mt,...s},o={...i.platform,_c:n};return Ds(e,t,{...i,platform:o})};function yn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}const fi=/transform|translate|scale|rotate|perspective|filter/,ui=/paint|layout|strict|content/,ne=e=>!!e&&e!=="none";let yt;function gi(e){const t=(s=e,typeof window<"u"&&(s instanceof Element||s instanceof yn(s).Element)?yn(n=e).getComputedStyle(n):e);var s,n;return ne(t.transform)||ne(t.translate)||ne(t.scale)||ne(t.rotate)||ne(t.perspective)||(yt==null&&(yt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),!yt&&(ne(t.backdropFilter)||ne(t.filter)))||fi.test(t.willChange||"")||ui.test(t.contain||"")}function pi(e){return(function(t){for(let s=t;s;s=vt(s))if(s instanceof Element&&getComputedStyle(s).display==="none")return null;for(let s=vt(t);s;s=vt(s)){if(!(s instanceof Element))continue;const n=getComputedStyle(s);if(n.display!=="contents"&&(n.position!=="static"||gi(n)||s.tagName==="BODY"))return s}return null})(e)}function vt(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}const he=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let vn=!1;he&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(he):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let bt=null;const wt=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{bn()})):void 0,bn=()=>{if(he===void 0)return!1;const e=(()=>{if(he===void 0)return;const t=[];for(let s=0;s<document.styleSheets.length;s++){const n=document.styleSheets.item(s);if(n)try{let i=-1,o=0;for(let r=0;r<n.cssRules.length;r++){const a=n.cssRules.item(r);if(a?.cssText.startsWith("gids-global-styles-start"))i=r;else if(i>-1){if(a?.cssText.startsWith("gids-global-styles-end")){o=r-i+1;break}t.push(a)}}if(i>-1)return{rulesStartIndex:i,originalRulesCount:o,rules:t,styleSheet:n}}catch(i){if(!(i instanceof DOMException))throw i}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return wt!==void 0&&t!==bt&&(bt&&wt.disconnect(),t instanceof Element&&wt.observe(t,{childList:!0,characterData:!0,subtree:!0}),bt=t),he.replaceSync((s=>s.rules.map((n=>n.cssText)).join(""))(e)),(s=>{const{rulesStartIndex:n,originalRulesCount:i,styleSheet:o}=s;for(let r=0;r<i;r++)o.deleteRule(n)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},mi=()=>(vn||(vn=bn()),he),wn={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},xn=new Map;for(const e in wn)for(const t of wn[e])xn.set(t,e);function yi(e){return xn.get(e)}function _n(e,t="regular",s){const n=yi(e);let i=n??"";return s&&n&&(i=s(n)??n),`${i}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:vi}=ns,Sn=({name:e,size:t,appearance:s,alt:n,class:i,titleId:o,src:r,...a})=>{const l=ys(o);let h=r;return h===void 0&&gs()&&(h=_n(e,s,Kt)),x("svg",{ref:f=>{h===void 0&&ps((()=>{(function(d,u,g){if(!d)return;const c=document.createElementNS("http://www.w3.org/2000/svg","use");c.setAttribute("href",_n(u,g,Kt)),d.appendChild(c)})(f,e,s)}))},width:"16",height:"16",class:vi({size:t},i),role:"img","aria-hidden":n===""?"true":void 0,"aria-labelledby":n===""?void 0:l,...a},n!==""&&x("title",{id:l},n||e),h!==void 0?x("use",{href:h}):null)},{getGidsAdvancedTooltipClassNames:bi}=ds,wi=Pe(class extends ue{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.visible=!1,this.x=0,this.y=0,this.offset=12,this.placement="top",this.items=[],this.currentPlacement="top"}connectedCallback(){const e=mi();e&&this.host.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){const e=this.host.shadowRoot;if(!e)return;const t=e.querySelector(".gids-advanced-tooltip__arrow");t instanceof ue&&(this.tooltipElement=this.host,this.arrowElement=t,this.createVirtualReference(),this.startAutoUpdate(),this.updatePosition())}disconnectedCallback(){this.cleanupAutoUpdate?.()}visibleChanged(){this.updatePosition()}positionChanged(){this.updatePosition()}placementChanged(){this.updatePosition()}itemsChanged(){this.updatePosition()}createVirtualReference(){this.virtualReference||(this.virtualReference={getBoundingClientRect:()=>new DOMRect(this.x,this.y,0,0)})}startAutoUpdate(){this.cleanupAutoUpdate?.(),this.cleanupAutoUpdate=ri(this.virtualReference,this.tooltipElement,(()=>{this.updatePosition()}),{ancestorScroll:!0,ancestorResize:!1,elementResize:!0,layoutShift:!0,animationFrame:!0})}getMiddleware(){return[ai(this.offset),ci({padding:this.offset}),li({padding:this.offset}),di({element:this.arrowElement,padding:this.offset})]}async updatePosition(){if(this.tooltipElement)try{const{x:e,y:t,placement:s,middlewareData:n}=await hi(this.virtualReference,this.tooltipElement,{placement:this.placement,strategy:"fixed",middleware:this.getMiddleware(),platform:{...mt,getOffsetParent:i=>mt.getOffsetParent(i,pi)}});if(this.currentPlacement=s,Object.assign(this.tooltipElement.style,{left:`${e}px`,top:`${t}px`,position:"fixed"}),n.arrow&&this.arrowElement){const{x:i,y:o}=n.arrow;let r;switch(s.split("-")[0]??"top"){case"top":r="bottom";break;case"right":r="left";break;case"bottom":r="top";break;default:r="right"}Object.assign(this.arrowElement.style,{left:i!=null?`${i}px`:"",top:o!=null?`${o}px`:"",right:"",bottom:"",[r]:"-5px",transform:"rotate(45deg)"})}}catch(e){console.error("computePosition failed",e)}}render(){const e=bi({visible:this.visible});return x($t,{key:"c4de12b255e6667fb88a1868bbb458c0c8fd66a0",class:e,role:"tooltip",part:"tooltip"},x("div",{key:"30bce93d52ce6caa0cef1f7d815ed08faf66c082",class:"gids-advanced-tooltip__arrow",part:"arrow"}),x("div",{key:"d2077e539400730753303e432a3a0ffab23c5f16",class:"gids-advanced-tooltip__content"},this.items.map((t=>x("div",{class:"gids-advanced-tooltip__item",key:`${t.label}-${t.value}`},x("div",{class:"gids-advanced-tooltip__left"},x(Sn,{name:"new",size:"xs",appearance:"filled",style:{"--gidsIcon-color":t.seriesIndicatorColor}}),x("span",{class:"gids-advanced-tooltip__label"},t.label)),x("span",{class:"gids-advanced-tooltip__value"},t.value))))))}get host(){return this}static get watchers(){return{visible:[{visibleChanged:0}],x:[{positionChanged:0}],y:[{positionChanged:0}],placement:[{placementChanged:0}],items:[{itemsChanged:0}]}}static get style(){return".gids-advanced-tooltip{position:fixed;display:inline-flex;width:fit-content;height:fit-content;z-index:1001;--gidsAdvancedTooltip-background:var( --gids-color-background-neutral-bold-default );--gidsAdvancedTooltip-label-color:var(--gids-color-text-inverse);--gidsAdvancedTooltip-value-color:var(--gids-color-text-inverse)}.gids-advanced-tooltip--visible{opacity:1}.gids-advanced-tooltip__content{box-shadow:var(--gids-elevation-shadow-overlay);background:var(--gidsAdvancedTooltip-background);border-radius:var(--gids-border-radius-md);padding:var(--gids-padding-vertical-edge-to-element-150) var(--gids-padding-horizontal-edge-to-element-150);min-width:140px}.gids-advanced-tooltip__item{display:flex;justify-content:space-between;align-items:center;gap:var(--gids-gap-200)}.gids-advanced-tooltip__item+.gids-advanced-tooltip__item{margin-top:var(--gids-padding-vertical-edge-to-element-075)}.gids-advanced-tooltip__left{display:flex;align-items:center;gap:var(--gids-gap-100)}.gids-advanced-tooltip__arrow{position:absolute;width:10px;height:10px;background:var(--gidsAdvancedTooltip-background);backdrop-filter:calc(var(--gids-backdrop-blur-2-xl));transform:rotate(45deg)}.gids-advanced-tooltip__label{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);color:var(--gidsAdvancedTooltip-label-color)}.gids-advanced-tooltip__value{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);color:var(--gidsAdvancedTooltip-value-color);white-space:nowrap}"}},[1,"gids-advanced-tooltip",{visible:[516],x:[2],y:[2],offset:[2],placement:[1],items:[16],currentPlacement:[32]},void 0,{visible:[{visibleChanged:0}],x:[{positionChanged:0}],y:[{positionChanged:0}],placement:[{placementChanged:0}],items:[{itemsChanged:0}]}]);function Cn(){typeof customElements<"u"&&["gids-advanced-tooltip"].forEach((e=>{e==="gids-advanced-tooltip"&&(customElements.get(e)||customElements.define(e,wi))}))}Cn();const{getGidsChartLegendClassNames:xi}=ls,_i=Pe(class extends ue{constructor(e){super(),e!==!1&&this.__registerHost(),this.orientation="horizontal"}handleOrientationChange(e){this.orientation=e}render(){const e=xi({orientation:this.orientation});return x("div",{key:"97408478636d27b5898b241ba555cf38e5076a6c",class:e},x("slot",{key:"b895d069db35e4d37a54bd98fc732b40a12ad9f0"}))}static get watchers(){return{orientation:[{handleOrientationChange:0}]}}static get style(){return".gids-chart-legend{display:inline-flex;align-items:flex-start;gap:var(--gids-gap-150)}.gids-chart-legend--orientation-vertical{flex-direction:column;gap:var(--gids-gap-050)}"}},[260,"gids-chart-legend",{orientation:[1]},void 0,{orientation:[{handleOrientationChange:0}]}]);function On(){typeof customElements<"u"&&["gids-chart-legend"].forEach((e=>{e==="gids-chart-legend"&&(customElements.get(e)||customElements.define(e,_i))}))}On();const{getGidsChartLegendItemClassNames:Si}=as,Ci=Pe(class extends ue{constructor(e){super(),e!==!1&&this.__registerHost(),this.orientation="horizontal",this.seriesType="1"}handleOrientationChange(e){this.orientation=e}handleSeriesTypeChange(e){this.seriesType=e}handleSeriesColorChange(e){this.seriesColor=e}render(){const e=this.seriesColor,t=e&&e!=="",s=Si({seriesType:t?"none":this.seriesType,orientation:this.orientation});return x("div",{key:"fc8dd82b51491a682d1b63d2830971d6f3af262b",class:s},x("div",{key:"31247bb0d3f67953fe13eca31af5f546307c5968",class:this.orientation==="vertical"?"gids-chart-legend-item__dot-wrapper-vertical":"gids-chart-legend-item__dot-wrapper-horizontal"},x(Sn,{key:"daee92872cf487b7430b7cdce5756a1b7b3a9faf",name:"new",alt:"new_icon",appearance:"filled",style:t?{"--gidsIcon-color":e}:{}})),x("span",{key:"a5d6e1d6c6326b70db1b8066267454b6d06d1e80",class:"gids-chart-legend-item__label"},x("slot",{key:"ed798a7c0f897fd2a36342007640110d72a0cd8a"})))}static get watchers(){return{orientation:[{handleOrientationChange:0}],seriesType:[{handleSeriesTypeChange:0}],seriesColor:[{handleSeriesColorChange:0}]}}static get style(){return".gids-chart-legend-item{display:flex;align-items:center;gap:var(--gids-gap-100);--gidsChartLegendItemIcon-color:var(--gids-color-icon-subtle);--gidsIcon-color:var(--gidsChartLegendItemIcon-color);--gidsIcon-height:var(--gids-size-080)}.gids-chart-legend-item--orientation-vertical{display:flex}.gids-chart-legend-item--series-2{--gidsChartLegendItemIcon-color:var(--gids-color-icon-warning)}.gids-chart-legend-item--series-3{--gidsChartLegendItemIcon-color:var(--gids-color-icon-danger)}.gids-chart-legend-item--series-4{--gidsChartLegendItemIcon-color:var(--gids-color-background-positive-bold-hovered)}.gids-chart-legend-item--series-5{--gidsChartLegendItemIcon-color:var(--gids-color-background-information-bold-default)}.gids-chart-legend-item--series-6{--gidsChartLegendItemIcon-color:rgb(238, 70, 188)}.gids-chart-legend-item__label{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);text-align:left;color:var(--gids-color-text-subtlest)}.gids-chart-legend-item__dot-wrapper-vertical{display:flex;padding-top:var(--gids-padding-vertical-edge-to-element-075)}.gids-chart-legend-item__dot-wrapper-horizontal{display:flex;align-items:center}"}},[260,"gids-chart-legend-item",{orientation:[1],seriesType:[1,"series-type"],seriesColor:[1,"series-color"]},void 0,{orientation:[{handleOrientationChange:0}],seriesType:[{handleSeriesTypeChange:0}],seriesColor:[{handleSeriesColorChange:0}]}]);function An(){typeof customElements<"u"&&["gids-chart-legend-item"].forEach((e=>{e==="gids-chart-legend-item"&&(customElements.get(e)||customElements.define(e,Ci))}))}An();const{getGidsBarChartClassNames:Oi}=cs,kn=Pe(class extends ue{constructor(e){super(),e!==!1&&this.__registerHost(),this.breakpoint="desktop",this.legend="none",this.chartData=[],this.yAxisVisible=!1,this.dataPoints=[],this.chartLoaderSize="lg",this.chartLoading=!1,this.width=0,this.height=0,this.hoveredIndex=null,this.tooltip={visible:!1,x:0,y:0}}chartDataChanged(){this.updateDimensions()}dataPointsChanged(e){this.dataPoints=e}legendChanged(e){this.legend=e}yAxisVisibilityChanged(e){this.yAxisVisible=e}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:300}getTooltipItems(e){return this.chartData.reduce(((t,s)=>{const n=s.data[e];return n&&t.push({label:s?.label??"",value:String(n.value),seriesIndicatorColor:s?.seriesColor??""}),t}),[])}render(){if(this.chartLoading)return x("div",{class:"gids-bar-chart__no-data"},x(Cs,{label:this.chartLoadingTitle,supportingText:this.chartLoadingSupportingText,size:this?.chartLoaderSize??"lg"}));const e=this?.chartData?.[0]?.data?.map((c=>c.label))??[],t=e.length,s=Array(t).fill(0);this.chartData.forEach((c=>{Array.isArray(c?.data)&&c.data.forEach(((m,v)=>{v<t&&(s[v]=(s[v]??0)+(m?.value||0))}))}));const n=s.length>0?Math.max(...s):10,i=Math.pow(10,Math.floor(Math.log10(n||1)));let o=i;n/i<=2?o=i/5:n/i<=5&&(o=i/2);const r=Math.ceil(n/o)*o,a=[];if(Array.isArray(this.dataPoints)&&this.dataPoints.length>0){const c=[...this.dataPoints].sort(((y,p)=>y-p)),m=c.length>1?(c[1]??200)-(c[0]??0):200,v=Math.max(...c,r,...s),b=Math.ceil(v/(m||1));for(let y=0;y<=b;y++)a.push(y*m)}else{const m=r/4;for(let v=0;v<5;v++)a.push(Math.round(0+v*m))}const l=Math.max(...a)-0||1,h=Oi({breakpoint:this.breakpoint});let f=!1,d=!1;this.breakpoint==="mobile"?this.legend!=="none"&&(f=!0):this.legend==="top"?f=!0:this.legend==="right"&&(d=!0);const u=100/t,g=.4*u;return x("div",{class:h},f?x("div",{class:"gids-bar-chart__header"},x("gids-chart-legend",{orientation:"horizontal"},this.chartData.map((c=>x("gids-chart-legend-item",{key:c.label,seriesColor:c?.seriesColor,orientation:"horizontal"},c.label))))):null,x("div",{class:"gids-bar-chart__main-container"},x("div",{class:"gids-bar-chart__grid-layout"},x("span",{class:"gids-bar-chart__y-axis-label"},this.yAxisLabel),x("div",{class:"gids-bar-chart__chart-stage-container"},this.yAxisVisible?x("div",{class:"gids-bar-chart__y-axis-scale-container"},a.map((c=>x("span",{class:"gids-bar-chart__scale-text gids-bar-chart__y-axis-scale-value",key:c,style:{bottom:(c-0)/l*100+"%"}},c)))):null,x("div",{class:"gids-bar-chart__chart-stage"},x("svg",{viewBox:"0 0 100 100",class:"gids-bar-chart__chart-vector",preserveAspectRatio:"none"},a.map((c=>{const m=100-(c-0)/l*100;return x("line",{x1:"0",y1:m,x2:"100",y2:m,class:"gids-bar-chart__grid-line",key:c})})),e.map(((c,m)=>{const v=m*u+(u-g)/2;let b=0;const y=[...this.chartData.map(((p,_)=>{if(!Array.isArray(p.data))return null;const w=p.data[m];if(!w)return null;const S=(w.value||0)/l*100,C=100-S-b;return b+=S,{seriesIdx:_,crownY:C,height:S,seriesColor:p?.seriesColor}})).filter((p=>p!==null&&p.height>0))].sort(((p,_)=>_.seriesIdx-p.seriesIdx));return x("g",{key:m},y.map((p=>{const _=.3*g,w=`
|
|
6
|
+
M ${v},${p.crownY+_}
|
|
7
|
+
Q ${v},${p.crownY} ${v+_},${p.crownY}
|
|
8
|
+
H ${v+g-_}
|
|
9
|
+
Q ${v+g},${p.crownY} ${v+g},${p.crownY+_}
|
|
10
10
|
V 100
|
|
11
|
-
H ${
|
|
11
|
+
H ${v}
|
|
12
12
|
Z
|
|
13
|
-
`.replace(/\s+/g," ").trim();return x("path",{key:p.seriesIdx,d:
|
|
13
|
+
`.replace(/\s+/g," ").trim();return x("path",{key:p.seriesIdx,d:w,class:"gids-bar-chart__bar",style:{fill:p?.seriesColor}})})),x("rect",{x:v,y:"0",width:g,height:"100",fill:"transparent","pointer-events":"all",onMouseMove:p=>{this.hoveredIndex=m,this.tooltip={visible:!0,x:p.clientX,y:p.clientY}},onMouseLeave:()=>{this.hoveredIndex=null,this.tooltip={...this.tooltip,visible:!1}}}))}))),x("gids-advanced-tooltip",{visible:this.tooltip.visible,x:this.tooltip.x,y:this.tooltip.y,items:this.hoveredIndex!==null?this.getTooltipItems(this.hoveredIndex):[]}))),x("div",{class:"gids-bar-chart__x-axis-scale-container"},e.map(((c,m)=>x("span",{class:"gids-bar-chart__scale-text",key:m},c)))),x("span",{class:"gids-bar-chart__x-axis-label"},this.xAxisLabel)),d?x("gids-chart-legend",{orientation:"vertical"},this.chartData.map((c=>x("gids-chart-legend-item",{key:c.label,seriesColor:c?.seriesColor,orientation:"vertical"},c.label)))):null))}get hostElement(){return this}static get watchers(){return{chartData:[{chartDataChanged:0}],dataPoints:[{dataPointsChanged:0}],legend:[{legendChanged:0}],yAxisVisible:[{yAxisVisibilityChanged:0}]}}static get style(){return":host{display:block;width:100%;height:100%;box-sizing:border-box}.gids-bar-chart{display:flex;flex-direction:column;width:100%;height:100%;box-sizing:border-box}.gids-bar-chart--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-bar-chart__main-container{display:flex;gap:var(--gids-gap-200)}.gids-bar-chart__header{display:flex;justify-content:flex-end;align-items:center;width:100%;margin-bottom:var(--gids-padding-vertical-edge-to-element-200)}.gids-bar-chart__grid-layout{display:grid;grid-template-columns:auto 1fr;grid-template-rows:minmax(180px, 280px) auto auto;flex:1;width:100%;height:100%;box-sizing:border-box}.gids-bar-chart__y-axis-label{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:center;margin-right:var(--gids-padding-horizontal-edge-to-element-600);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);color:var(--gids-color-text-subtlest);writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap}.gids-bar-chart__chart-stage-container{grid-column:2;grid-row:1;position:relative;width:100%;height:100%;padding-left:var(--gids-container-padding-desktop);box-sizing:border-box}.gids-bar-chart__y-axis-scale-container{position:absolute;top:0;bottom:0;left:0;width:calc(var(--gids-container-padding-desktop) - var(--gids-padding-horizontal-edge-to-element-100));pointer-events:none}.gids-bar-chart__y-axis-scale-value{position:absolute;right:0;transform:translateY(50%);margin-right:var(--gids-padding-horizontal-edge-to-element-100)}.gids-bar-chart__chart-stage{position:relative;width:100%;height:100%;border-bottom:var(--gids-border-width-thin) solid var(--gids-color-border-default);box-sizing:border-box}.gids-bar-chart__chart-vector{display:block;width:100%;height:100%;overflow:visible}.gids-bar-chart__grid-line{stroke:var(--gids-color-border-default);stroke-width:0.5;fill:none}.gids-bar-chart{}.gids-bar-chart__bar{vector-effect:non-scaling-stroke}.gids-bar-chart{}.gids-bar-chart__x-axis-scale-container{display:flex;grid-column:2;grid-row:2;justify-content:space-around;align-items:center;padding-left:var(--gids-container-padding-desktop);padding-top:var(--gids-padding-vertical-edge-to-element-200);gap:var(--gids-gap-050);box-sizing:border-box}.gids-bar-chart__x-axis-label{grid-column:2;grid-row:3;display:flex;justify-content:center;align-items:center;padding-top:var(--gids-padding-vertical-edge-to-element-100);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);color:var(--gids-color-text-subtlest);white-space:nowrap}.gids-bar-chart__scale-text{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);color:var(--gids-color-text-subtlest);user-select:none;white-space:nowrap}.gids-bar-chart__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-bar-chart",{breakpoint:[1],legend:[1],chartData:[16],yAxisVisible:[4,"y-axis-visible"],xAxisLabel:[1,"x-axis-label"],yAxisLabel:[1,"y-axis-label"],dataPoints:[16],chartLoaderSize:[1,"chart-loader-size"],chartLoading:[4,"chart-loading"],chartLoadingTitle:[1,"chart-loading-title"],chartLoadingSupportingText:[1,"chart-loading-supporting-text"],width:[32],height:[32],hoveredIndex:[32],tooltip:[32]},void 0,{chartData:[{chartDataChanged:0}],dataPoints:[{dataPointsChanged:0}],legend:[{legendChanged:0}],yAxisVisible:[{yAxisVisibilityChanged:0}]}]);function En(){typeof customElements<"u"&&["gids-bar-chart","gids-advanced-tooltip","gids-chart-legend","gids-chart-legend-item"].forEach((e=>{switch(e){case"gids-bar-chart":customElements.get(e)||customElements.define(e,kn);break;case"gids-advanced-tooltip":customElements.get(e)||Cn();break;case"gids-chart-legend":customElements.get(e)||On();break;case"gids-chart-legend-item":customElements.get(e)||An()}}))}En();const Ai=kn,ki=En;q.GidsBarChart=Ai,q.defineCustomElement=ki,Object.defineProperty(q,Symbol.toStringTag,{value:"Module"})}));
|