@momentum-design/components 0.33.0 → 0.33.2
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/browser/index.js +3 -3
- package/dist/browser/index.js.map +2 -2
- package/dist/components/icon/icon.component.d.ts +4 -0
- package/dist/components/icon/icon.component.js +10 -2
- package/dist/components/popover/popover.component.js +1 -1
- package/dist/custom-elements.json +263 -244
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +1 -1
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
@@ -248,7 +248,7 @@
|
|
248
248
|
width: 100%;
|
249
249
|
fill: var(--mdc-icon-fill-color);
|
250
250
|
}
|
251
|
-
`,...M()],ts=ba;var ya=o=>{let{host:t,context:e,subscribe:r}=o;return new yt(t,{context:e,subscribe:r!=null?r:!0})},xa={consume:ya},rs=xa;var _r=y.constructTagName("iconprovider"),os=["svg"],is=["em","rem","px","%"],Ea={px:16,em:1,rem:1,"%":100},_e={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:Ea.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var Ir=class{};Ir.context=_r;var wr=Ir;var ue=class extends Et{constructor(){super({context:wr.context,initialValue:new wr});this.iconSet=_e.ICON_SET;this.fileExtension=_e.FILE_EXTENSION;this.lengthUnit=_e.LENGTH_UNIT;this.size=_e.SIZE}static get Context(){return wr.context}updateValuesInContext(){this.fileExtension&&os.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=_e.FILE_EXTENSION,this.context.value.fileExtension=_e.FILE_EXTENSION),this.context.value.iconSet=this.iconSet,this.context.value.url=this.url,this.context.value.size=this.size,this.context.value.cacheName=this.cacheName,this.context.value.cacheStrategy=this.cacheStrategy,this.lengthUnit&&is.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=_e.LENGTH_UNIT,this.context.value.lengthUnit=_e.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.iconSet!==this.iconSet||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};c([d({type:String,attribute:"icon-set",reflect:!0})],ue.prototype,"iconSet",2),c([d({type:String})],ue.prototype,"url",2),c([d({type:String,attribute:"file-extension",reflect:!0})],ue.prototype,"fileExtension",2),c([d({type:String,attribute:"length-unit",reflect:!0})],ue.prototype,"lengthUnit",2),c([d({type:Number,reflect:!0})],ue.prototype,"size",2),c([d({type:String,attribute:"cache-strategy"})],ue.prototype,"cacheStrategy",2),c([d({type:String,attribute:"cache-name"})],ue.prototype,"cacheName",2);var qt=ue;var Yt={},ss=async o=>(Yt[o]===void 0&&(Yt[o]=new Map),{async set(t,e){Yt[o].set(t.url,await e.text())},async get(t){return Yt[o].get(t.url)},async delete(t){Yt[o].delete(t.url)}}),ns=async o=>{let t=await caches.open(o);return{set:async(e,r)=>{await t.put(e,r)},get:async e=>{let r=await t.match(e);return r==null?void 0:r.text()},delete:async e=>{await t.delete(e)}}},as=async(o,t)=>t==="in-memory-cache"?ss(o):ns(o);var ls=async o=>fetch(o).then(t=>{if(!t.ok)throw new Error("There was a problem while fetching the icon!");return t}),cs=async({url:o,name:t,fileExtension:e,cacheStrategy:r,cacheName:i,renewSignal:s})=>{let n=s(),a=new Request(`${o}/${t}.${e}`,{signal:n});return!i||!r||!["in-memory-cache","web-cache-api"].includes(r)?ls(a).then(l=>l.text()):as(i,r).then(l=>l.get(a).then(m=>m||ls(a.clone()).then(h=>{var p;return h.status<400&&h.headers.has("content-type")?(p=l.set)==null?void 0:p.call(l,a,h.clone()).then(()=>h.text()):h.text()})).catch(m=>{throw new Error(`Error in caching the Icon ${t}, ${m}`)}))};var ds=y.constructTagName("icon"),Ao={NAME:void 0,SIZE:1};var
|
251
|
+
`,...M()],ts=ba;var ya=o=>{let{host:t,context:e,subscribe:r}=o;return new yt(t,{context:e,subscribe:r!=null?r:!0})},xa={consume:ya},rs=xa;var _r=y.constructTagName("iconprovider"),os=["svg"],is=["em","rem","px","%"],Ea={px:16,em:1,rem:1,"%":100},_e={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:Ea.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var Ir=class{};Ir.context=_r;var wr=Ir;var ue=class extends Et{constructor(){super({context:wr.context,initialValue:new wr});this.iconSet=_e.ICON_SET;this.fileExtension=_e.FILE_EXTENSION;this.lengthUnit=_e.LENGTH_UNIT;this.size=_e.SIZE}static get Context(){return wr.context}updateValuesInContext(){this.fileExtension&&os.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=_e.FILE_EXTENSION,this.context.value.fileExtension=_e.FILE_EXTENSION),this.context.value.iconSet=this.iconSet,this.context.value.url=this.url,this.context.value.size=this.size,this.context.value.cacheName=this.cacheName,this.context.value.cacheStrategy=this.cacheStrategy,this.lengthUnit&&is.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=_e.LENGTH_UNIT,this.context.value.lengthUnit=_e.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.iconSet!==this.iconSet||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};c([d({type:String,attribute:"icon-set",reflect:!0})],ue.prototype,"iconSet",2),c([d({type:String})],ue.prototype,"url",2),c([d({type:String,attribute:"file-extension",reflect:!0})],ue.prototype,"fileExtension",2),c([d({type:String,attribute:"length-unit",reflect:!0})],ue.prototype,"lengthUnit",2),c([d({type:Number,reflect:!0})],ue.prototype,"size",2),c([d({type:String,attribute:"cache-strategy"})],ue.prototype,"cacheStrategy",2),c([d({type:String,attribute:"cache-name"})],ue.prototype,"cacheName",2);var qt=ue;var Yt={},ss=async o=>(Yt[o]===void 0&&(Yt[o]=new Map),{async set(t,e){Yt[o].set(t.url,await e.text())},async get(t){return Yt[o].get(t.url)},async delete(t){Yt[o].delete(t.url)}}),ns=async o=>{let t=await caches.open(o);return{set:async(e,r)=>{await t.put(e,r)},get:async e=>{let r=await t.match(e);return r==null?void 0:r.text()},delete:async e=>{await t.delete(e)}}},as=async(o,t)=>t==="in-memory-cache"?ss(o):ns(o);var ls=async o=>fetch(o).then(t=>{if(!t.ok)throw new Error("There was a problem while fetching the icon!");return t}),cs=async({url:o,name:t,fileExtension:e,cacheStrategy:r,cacheName:i,renewSignal:s})=>{let n=s(),a=new Request(`${o}/${t}.${e}`,{signal:n});return!i||!r||!["in-memory-cache","web-cache-api"].includes(r)?ls(a).then(l=>l.text()):as(i,r).then(l=>l.get(a).then(m=>m||ls(a.clone()).then(h=>{var p;return h.status<400&&h.headers.has("content-type")?(p=l.set)==null?void 0:p.call(l,a,h.clone()).then(()=>h.text()):h.text()})).catch(m=>{throw new Error(`Error in caching the Icon ${t}, ${m}`)}))};var ds=y.constructTagName("icon"),Ao={NAME:void 0,SIZE:1};var j=class extends E{constructor(){super();this.name=Ao.NAME;this.ariaLabel=null;this.ariaLabelledBy=null;this.iconProviderContext=rs.consume({host:this,context:qt.Context});this.abortController=new AbortController}prepareIconElement(e){let r=new DOMParser().parseFromString(e,"text/html").body.children[0];return this.name&&r.setAttribute("data-name",this.name),r.setAttribute("part","icon"),r.setAttribute("aria-hidden","true"),r}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:r,url:i,cacheName:s,iconSet:n,cacheStrategy:a}=this.iconProviderContext.value;if(n==="custom-icons"&&i&&r&&this.name){let l=()=>(this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal);return cs({url:i,name:this.name,fileExtension:r,cacheName:s,cacheStrategy:a,renewSignal:l}).then(m=>{let h=this.prepareIconElement(m);this.handleIconLoadedSuccess(h)}).catch(m=>{this.handleIconLoadedFailure(m)})}if(n==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(l=>{this.handleIconLoadedSuccess(l.default())}).catch(l=>{this.handleIconLoadedFailure(l)})}let e=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(e),Promise.reject(e)}handleIconLoadedSuccess(e){this.iconData=e;let r=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}handleIconLoadedFailure(e){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:e}});this.dispatchEvent(r)}updateSize(){var e;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let r=`${this.computedIconSize}${(e=this.lengthUnit)!=null?e:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",r)}}get computedIconSize(){var e,r;return(r=(e=this.size)!=null?e:this.sizeFromContext)!=null?r:Ao.SIZE}updated(e){var r,i,s,n;super.updated(e),e.has("name")&&this.getIconData().catch(a=>{a.name!=="AbortError"&&this.onerror&&this.onerror(a)}),(e.has("ariaLabel")||e.has("ariaLabelledBy"))&&(this.role=this.ariaLabel||this.ariaLabelledBy?"img":null),(e.has("size")||e.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((r=this.iconProviderContext.value)==null?void 0:r.lengthUnit)&&(this.lengthUnitFromContext=(i=this.iconProviderContext.value)==null?void 0:i.lengthUnit,this.updateSize()),this.sizeFromContext!==((s=this.iconProviderContext.value)==null?void 0:s.size)&&(this.sizeFromContext=(n=this.iconProviderContext.value)==null?void 0:n.size,this.updateSize())}render(){return u` ${this.iconData} `}};j.styles=[...E.styles,...ts],c([W()],j.prototype,"iconData",2),c([W()],j.prototype,"lengthUnitFromContext",2),c([W()],j.prototype,"sizeFromContext",2),c([d({type:String,reflect:!0})],j.prototype,"name",2),c([d({type:Number})],j.prototype,"size",2),c([d({type:String,attribute:"length-unit"})],j.prototype,"lengthUnit",2),c([d({type:String,attribute:"aria-label"})],j.prototype,"ariaLabel",2),c([d({type:String,attribute:"aria-labelledby"})],j.prototype,"ariaLabelledBy",2),c([W()],j.prototype,"abortController",2);var So=j;So.register(ds);var Ta=So;var Aa=[L,g`
|
252
252
|
:host {
|
253
253
|
--mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
|
254
254
|
--mdc-presence-away-background-color: var(--mds-color-theme-indicator-locked);
|
@@ -1868,7 +1868,7 @@
|
|
1868
1868
|
var(--mdc-marker-striped-background-color) 0.375rem
|
1869
1869
|
);
|
1870
1870
|
}
|
1871
|
-
`,Gs=[ol];var qs=y.constructTagName("marker"),Ys={SOLID:"solid",STRIPED:"striped"};var rr=class extends E{constructor(){super(...arguments);this.variant=Ys.SOLID}};rr.styles=[...E.styles,...Gs],c([d({type:String,reflect:!0})],rr.prototype,"variant",2);var Wo=rr;Wo.register(qs);var il=Wo;var ye=Math.min,Y=Math.max,ir=Math.round,sr=Math.floor,ae=o=>({x:o,y:o}),sl={left:"right",right:"left",bottom:"top",top:"bottom"},nl={start:"end",end:"start"};function Br(o,t,e){return Y(o,ye(t,e))}function it(o,t){return typeof o=="function"?o(t):o}function Re(o){return o.split("-")[0]}function st(o){return o.split("-")[1]}function Xo(o){return o==="x"?"y":"x"}function Gr(o){return o==="y"?"height":"width"}function Ye(o){return["top","bottom"].includes(Re(o))?"y":"x"}function qr(o){return Xo(Ye(o))}function Ws(o,t,e){e===void 0&&(e=!1);let r=st(o),i=qr(o),s=Gr(i),n=i==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(n=or(n)),[n,or(n)]}function Xs(o){let t=or(o);return[Fr(o),t,Fr(t)]}function Fr(o){return o.replace(/start|end/g,t=>nl[t])}function al(o,t,e){let r=["left","right"],i=["right","left"],s=["top","bottom"],n=["bottom","top"];switch(o){case"top":case"bottom":return e?t?i:r:t?r:i;case"left":case"right":return t?s:n;default:return[]}}function Zs(o,t,e,r){let i=st(o),s=al(Re(o),e==="start",r);return i&&(s=s.map(n=>n+"-"+i),t&&(s=s.concat(s.map(Fr)))),s}function or(o){return o.replace(/left|right|bottom|top/g,t=>sl[t])}function ll(o){return{top:0,right:0,bottom:0,left:0,...o}}function Zo(o){return typeof o!="number"?ll(o):{top:o,right:o,bottom:o,left:o}}function nt(o){let{x:t,y:e,width:r,height:i}=o;return{width:r,height:i,top:e,left:t,right:t+r,bottom:e+i,x:t,y:e}}function js(o,t,e){let{reference:r,floating:i}=o,s=Ye(t),n=qr(t),a=Gr(n),l=Re(t),m=s==="y",h=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,b=r[a]/2-i[a]/2,f;switch(l){case"top":f={x:h,y:r.y-i.height};break;case"bottom":f={x:h,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:p};break;case"left":f={x:r.x-i.width,y:p};break;default:f={x:r.x,y:r.y}}switch(st(t)){case"start":f[n]-=b*(e&&m?-1:1);break;case"end":f[n]+=b*(e&&m?-1:1);break}return f}var Ks=async(o,t,e)=>{let{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:n}=e,a=s.filter(Boolean),l=await(n.isRTL==null?void 0:n.isRTL(t)),m=await n.getElementRects({reference:o,floating:t,strategy:i}),{x:h,y:p}=js(m,r,l),b=r,f={},x=0;for(let T=0;T<a.length;T++){let{name:_,fn:S}=a[T],{x:I,y:k,data:P,reset:z}=await S({x:h,y:p,initialPlacement:r,placement:b,strategy:i,middlewareData:f,rects:m,platform:n,elements:{reference:o,floating:t}});h=I!=null?I:h,p=k!=null?k:p,f={...f,[_]:{...f[_],...P}},z&&x<=50&&(x++,typeof z=="object"&&(z.placement&&(b=z.placement),z.rects&&(m=z.rects===!0?await n.getElementRects({reference:o,floating:t,strategy:i}):z.rects),{x:h,y:p}=js(m,b,l)),T=-1)}return{x:h,y:p,placement:b,strategy:i,middlewareData:f}};async function Yr(o,t){var e;t===void 0&&(t={});let{x:r,y:i,platform:s,rects:n,elements:a,strategy:l}=o,{boundary:m="clippingAncestors",rootBoundary:h="viewport",elementContext:p="floating",altBoundary:b=!1,padding:f=0}=it(t,o),x=Zo(f),_=a[b?p==="floating"?"reference":"floating":p],S=nt(await s.getClippingRect({element:(e=await(s.isElement==null?void 0:s.isElement(_)))==null||e?_:_.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:m,rootBoundary:h,strategy:l})),I=p==="floating"?{x:r,y:i,width:n.floating.width,height:n.floating.height}:n.reference,k=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),P=await(s.isElement==null?void 0:s.isElement(k))?await(s.getScale==null?void 0:s.getScale(k))||{x:1,y:1}:{x:1,y:1},z=nt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:I,offsetParent:k,strategy:l}):I);return{top:(S.top-z.top+x.top)/P.y,bottom:(z.bottom-S.bottom+x.bottom)/P.y,left:(S.left-z.left+x.left)/P.x,right:(z.right-S.right+x.right)/P.x}}var Qs=o=>({name:"arrow",options:o,async fn(t){let{x:e,y:r,placement:i,rects:s,platform:n,elements:a,middlewareData:l}=t,{element:m,padding:h=0}=it(o,t)||{};if(m==null)return{};let p=Zo(h),b={x:e,y:r},f=qr(i),x=Gr(f),T=await n.getDimensions(m),_=f==="y",S=_?"top":"left",I=_?"bottom":"right",k=_?"clientHeight":"clientWidth",P=s.reference[x]+s.reference[f]-b[f]-s.floating[x],z=b[f]-s.reference[f],j=await(n.getOffsetParent==null?void 0:n.getOffsetParent(m)),ie=j?j[k]:0;(!ie||!await(n.isElement==null?void 0:n.isElement(j)))&&(ie=a.floating[k]||s.floating[x]);let xe=P/2-z/2,de=ie/2-T[x]/2-1,se=ye(p[S],de),Ne=ye(p[I],de),me=se,Oe=ie-T[x]-Ne,G=ie/2-T[x]/2+xe,vt=Br(me,G,Oe),Ee=!l.arrow&&st(i)!=null&&G!==vt&&s.reference[x]/2-(G<me?se:Ne)-T[x]/2<0,he=Ee?G<me?G-me:G-Oe:0;return{[f]:b[f]+he,data:{[f]:vt,centerOffset:G-vt-he,...Ee&&{alignmentOffset:he}},reset:Ee}}});var Js=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(t){var e,r;let{placement:i,middlewareData:s,rects:n,initialPlacement:a,platform:l,elements:m}=t,{mainAxis:h=!0,crossAxis:p=!0,fallbackPlacements:b,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:T=!0,..._}=it(o,t);if((e=s.arrow)!=null&&e.alignmentOffset)return{};let S=Re(i),I=Ye(a),k=Re(a)===a,P=await(l.isRTL==null?void 0:l.isRTL(m.floating)),z=b||(k||!T?[or(a)]:Xs(a)),j=x!=="none";!b&&j&&z.push(...Zs(a,T,x,P));let ie=[a,...z],xe=await Yr(t,_),de=[],se=((r=s.flip)==null?void 0:r.overflows)||[];if(h&&de.push(xe[S]),p){let G=Ws(i,n,P);de.push(xe[G[0]],xe[G[1]])}if(se=[...se,{placement:i,overflows:de}],!de.every(G=>G<=0)){var Ne,me;let G=(((Ne=s.flip)==null?void 0:Ne.index)||0)+1,vt=ie[G];if(vt)return{data:{index:G,overflows:se},reset:{placement:vt}};let Ee=(me=se.filter(he=>he.overflows[0]<=0).sort((he,ze)=>he.overflows[1]-ze.overflows[1])[0])==null?void 0:me.placement;if(!Ee)switch(f){case"bestFit":{var Oe;let he=(Oe=se.filter(ze=>{if(j){let Me=Ye(ze.placement);return Me===I||Me==="y"}return!0}).map(ze=>[ze.placement,ze.overflows.filter(Me=>Me>0).reduce((Me,Jn)=>Me+Jn,0)]).sort((ze,Me)=>ze[1]-Me[1])[0])==null?void 0:Oe[0];he&&(Ee=he);break}case"initialPlacement":Ee=a;break}if(i!==Ee)return{reset:{placement:Ee}}}return{}}}};async function cl(o,t){let{placement:e,platform:r,elements:i}=o,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),n=Re(e),a=st(e),l=Ye(e)==="y",m=["left","top"].includes(n)?-1:1,h=s&&l?-1:1,p=it(t,o),{mainAxis:b,crossAxis:f,alignmentAxis:x}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof x=="number"&&(f=a==="end"?x*-1:x),l?{x:f*h,y:b*m}:{x:b*m,y:f*h}}var en=function(o){return o===void 0&&(o=0),{name:"offset",options:o,async fn(t){var e,r;let{x:i,y:s,placement:n,middlewareData:a}=t,l=await cl(t,o);return n===((e=a.offset)==null?void 0:e.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:n}}}}},tn=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(t){let{x:e,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:n=!1,limiter:a={fn:_=>{let{x:S,y:I}=_;return{x:S,y:I}}},...l}=it(o,t),m={x:e,y:r},h=await Yr(t,l),p=Ye(Re(i)),b=Xo(p),f=m[b],x=m[p];if(s){let _=b==="y"?"top":"left",S=b==="y"?"bottom":"right",I=f+h[_],k=f-h[S];f=Br(I,f,k)}if(n){let _=p==="y"?"top":"left",S=p==="y"?"bottom":"right",I=x+h[_],k=x-h[S];x=Br(I,x,k)}let T=a.fn({...t,[b]:f,[p]:x});return{...T,data:{x:T.x-e,y:T.y-r,enabled:{[b]:s,[p]:n}}}}}};var rn=function(o){return o===void 0&&(o={}),{name:"size",options:o,async fn(t){var e,r;let{placement:i,rects:s,platform:n,elements:a}=t,{apply:l=()=>{},...m}=it(o,t),h=await Yr(t,m),p=Re(i),b=st(i),f=Ye(i)==="y",{width:x,height:T}=s.floating,_,S;p==="top"||p==="bottom"?(_=p,S=b===(await(n.isRTL==null?void 0:n.isRTL(a.floating))?"start":"end")?"left":"right"):(S=p,_=b==="end"?"top":"bottom");let I=T-h.top-h.bottom,k=x-h.left-h.right,P=ye(T-h[_],I),z=ye(x-h[S],k),j=!t.middlewareData.shift,ie=P,xe=z;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&(xe=k),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(ie=I),j&&!b){let se=Y(h.left,0),Ne=Y(h.right,0),me=Y(h.top,0),Oe=Y(h.bottom,0);f?xe=x-2*(se!==0||Ne!==0?se+Ne:Y(h.left,h.right)):ie=T-2*(me!==0||Oe!==0?me+Oe:Y(h.top,h.bottom))}await l({...t,availableWidth:xe,availableHeight:ie});let de=await n.getDimensions(a.floating);return x!==de.width||T!==de.height?{reset:{rects:!0}}:{}}}};function Wr(){return typeof window<"u"}function at(o){return sn(o)?(o.nodeName||"").toLowerCase():"#document"}function X(o){var t;return(o==null||(t=o.ownerDocument)==null?void 0:t.defaultView)||window}function le(o){var t;return(t=(sn(o)?o.ownerDocument:o.document)||window.document)==null?void 0:t.documentElement}function sn(o){return Wr()?o instanceof Node||o instanceof X(o).Node:!1}function re(o){return Wr()?o instanceof Element||o instanceof X(o).Element:!1}function ce(o){return Wr()?o instanceof HTMLElement||o instanceof X(o).HTMLElement:!1}function on(o){return!Wr()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof X(o).ShadowRoot}function Rt(o){let{overflow:t,overflowX:e,overflowY:r,display:i}=oe(o);return/auto|scroll|overlay|hidden|clip/.test(t+r+e)&&!["inline","contents"].includes(i)}function nn(o){return["table","td","th"].includes(at(o))}function nr(o){return[":popover-open",":modal"].some(t=>{try{return o.matches(t)}catch{return!1}})}function Xr(o){let t=Zr(),e=re(o)?oe(o):o;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(e.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(e.contain||"").includes(r))}function an(o){let t=Le(o);for(;ce(t)&&!lt(t);){if(Xr(t))return t;if(nr(t))return null;t=Le(t)}return null}function Zr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function lt(o){return["html","body","#document"].includes(at(o))}function oe(o){return X(o).getComputedStyle(o)}function ar(o){return re(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function Le(o){if(at(o)==="html")return o;let t=o.assignedSlot||o.parentNode||on(o)&&o.host||le(o);return on(t)?t.host:t}function ln(o){let t=Le(o);return lt(t)?o.ownerDocument?o.ownerDocument.body:o.body:ce(t)&&Rt(t)?t:ln(t)}function kt(o,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);let i=ln(o),s=i===((r=o.ownerDocument)==null?void 0:r.body),n=X(i);if(s){let a=jr(n);return t.concat(n,n.visualViewport||[],Rt(i)?i:[],a&&e?kt(a):[])}return t.concat(i,kt(i,[],e))}function jr(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function mn(o){let t=oe(o),e=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ce(o),s=i?o.offsetWidth:e,n=i?o.offsetHeight:r,a=ir(e)!==s||ir(r)!==n;return a&&(e=s,r=n),{width:e,height:r,$:a}}function Ko(o){return re(o)?o:o.contextElement}function Lt(o){let t=Ko(o);if(!ce(t))return ae(1);let e=t.getBoundingClientRect(),{width:r,height:i,$:s}=mn(t),n=(s?ir(e.width):e.width)/r,a=(s?ir(e.height):e.height)/i;return(!n||!Number.isFinite(n))&&(n=1),(!a||!Number.isFinite(a))&&(a=1),{x:n,y:a}}var dl=ae(0);function hn(o){let t=X(o);return!Zr()||!t.visualViewport?dl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ml(o,t,e){return t===void 0&&(t=!1),!e||t&&e!==X(o)?!1:t}function ct(o,t,e,r){t===void 0&&(t=!1),e===void 0&&(e=!1);let i=o.getBoundingClientRect(),s=Ko(o),n=ae(1);t&&(r?re(r)&&(n=Lt(r)):n=Lt(o));let a=ml(s,e,r)?hn(s):ae(0),l=(i.left+a.x)/n.x,m=(i.top+a.y)/n.y,h=i.width/n.x,p=i.height/n.y;if(s){let b=X(s),f=r&&re(r)?X(r):r,x=b,T=jr(x);for(;T&&r&&f!==x;){let _=Lt(T),S=T.getBoundingClientRect(),I=oe(T),k=S.left+(T.clientLeft+parseFloat(I.paddingLeft))*_.x,P=S.top+(T.clientTop+parseFloat(I.paddingTop))*_.y;l*=_.x,m*=_.y,h*=_.x,p*=_.y,l+=k,m+=P,x=X(T),T=jr(x)}}return nt({width:h,height:p,x:l,y:m})}function Qo(o,t){let e=ar(o).scrollLeft;return t?t.left+e:ct(le(o)).left+e}function pn(o,t,e){e===void 0&&(e=!1);let r=o.getBoundingClientRect(),i=r.left+t.scrollLeft-(e?0:Qo(o,r)),s=r.top+t.scrollTop;return{x:i,y:s}}function hl(o){let{elements:t,rect:e,offsetParent:r,strategy:i}=o,s=i==="fixed",n=le(r),a=t?nr(t.floating):!1;if(r===n||a&&s)return e;let l={scrollLeft:0,scrollTop:0},m=ae(1),h=ae(0),p=ce(r);if((p||!p&&!s)&&((at(r)!=="body"||Rt(n))&&(l=ar(r)),ce(r))){let f=ct(r);m=Lt(r),h.x=f.x+r.clientLeft,h.y=f.y+r.clientTop}let b=n&&!p&&!s?pn(n,l,!0):ae(0);return{width:e.width*m.x,height:e.height*m.y,x:e.x*m.x-l.scrollLeft*m.x+h.x+b.x,y:e.y*m.y-l.scrollTop*m.y+h.y+b.y}}function pl(o){return Array.from(o.getClientRects())}function ul(o){let t=le(o),e=ar(o),r=o.ownerDocument.body,i=Y(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Y(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),n=-e.scrollLeft+Qo(o),a=-e.scrollTop;return oe(r).direction==="rtl"&&(n+=Y(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:n,y:a}}function fl(o,t){let e=X(o),r=le(o),i=e.visualViewport,s=r.clientWidth,n=r.clientHeight,a=0,l=0;if(i){s=i.width,n=i.height;let m=Zr();(!m||m&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:n,x:a,y:l}}function gl(o,t){let e=ct(o,!0,t==="fixed"),r=e.top+o.clientTop,i=e.left+o.clientLeft,s=ce(o)?Lt(o):ae(1),n=o.clientWidth*s.x,a=o.clientHeight*s.y,l=i*s.x,m=r*s.y;return{width:n,height:a,x:l,y:m}}function cn(o,t,e){let r;if(t==="viewport")r=fl(o,e);else if(t==="document")r=ul(le(o));else if(re(t))r=gl(t,e);else{let i=hn(o);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return nt(r)}function un(o,t){let e=Le(o);return e===t||!re(e)||lt(e)?!1:oe(e).position==="fixed"||un(e,t)}function vl(o,t){let e=t.get(o);if(e)return e;let r=kt(o,[],!1).filter(a=>re(a)&&at(a)!=="body"),i=null,s=oe(o).position==="fixed",n=s?Le(o):o;for(;re(n)&&!lt(n);){let a=oe(n),l=Xr(n);!l&&a.position==="fixed"&&(i=null),(s?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Rt(n)&&!l&&un(o,n))?r=r.filter(h=>h!==n):i=a,n=Le(n)}return t.set(o,r),r}function bl(o){let{element:t,boundary:e,rootBoundary:r,strategy:i}=o,n=[...e==="clippingAncestors"?nr(t)?[]:vl(t,this._c):[].concat(e),r],a=n[0],l=n.reduce((m,h)=>{let p=cn(t,h,i);return m.top=Y(p.top,m.top),m.right=ye(p.right,m.right),m.bottom=ye(p.bottom,m.bottom),m.left=Y(p.left,m.left),m},cn(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function yl(o){let{width:t,height:e}=mn(o);return{width:t,height:e}}function xl(o,t,e){let r=ce(t),i=le(t),s=e==="fixed",n=ct(o,!0,s,t),a={scrollLeft:0,scrollTop:0},l=ae(0);if(r||!r&&!s)if((at(t)!=="body"||Rt(i))&&(a=ar(t)),r){let b=ct(t,!0,s,t);l.x=b.x+t.clientLeft,l.y=b.y+t.clientTop}else i&&(l.x=Qo(i));let m=i&&!r&&!s?pn(i,a):ae(0),h=n.left+a.scrollLeft-l.x-m.x,p=n.top+a.scrollTop-l.y-m.y;return{x:h,y:p,width:n.width,height:n.height}}function jo(o){return oe(o).position==="static"}function dn(o,t){if(!ce(o)||oe(o).position==="fixed")return null;if(t)return t(o);let e=o.offsetParent;return le(o)===e&&(e=e.ownerDocument.body),e}function fn(o,t){let e=X(o);if(nr(o))return e;if(!ce(o)){let i=Le(o);for(;i&&!lt(i);){if(re(i)&&!jo(i))return i;i=Le(i)}return e}let r=dn(o,t);for(;r&&nn(r)&&jo(r);)r=dn(r,t);return r&<(r)&&jo(r)&&!Xr(r)?e:r||an(o)||e}var El=async function(o){let t=this.getOffsetParent||fn,e=this.getDimensions,r=await e(o.floating);return{reference:xl(o.reference,await t(o.floating),o.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Tl(o){return oe(o).direction==="rtl"}var Al={convertOffsetParentRelativeRectToViewportRelativeRect:hl,getDocumentElement:le,getClippingRect:bl,getOffsetParent:fn,getElementRects:El,getClientRects:pl,getDimensions:yl,getScale:Lt,isElement:re,isRTL:Tl};function Sl(o,t){let e=null,r,i=le(o);function s(){var a;clearTimeout(r),(a=e)==null||a.disconnect(),e=null}function n(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();let{left:m,top:h,width:p,height:b}=o.getBoundingClientRect();if(a||t(),!p||!b)return;let f=sr(h),x=sr(i.clientWidth-(m+p)),T=sr(i.clientHeight-(h+b)),_=sr(m),I={rootMargin:-f+"px "+-x+"px "+-T+"px "+-_+"px",threshold:Y(0,ye(1,l))||1},k=!0;function P(z){let j=z[0].intersectionRatio;if(j!==l){if(!k)return n();j?n(!1,j):r=setTimeout(()=>{n(!1,1e-7)},1e3)}k=!1}try{e=new IntersectionObserver(P,{...I,root:i.ownerDocument})}catch{e=new IntersectionObserver(P,I)}e.observe(o)}return n(!0),s}function gn(o,t,e,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:n=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,m=Ko(o),h=i||s?[...m?kt(m):[],...kt(t)]:[];h.forEach(S=>{i&&S.addEventListener("scroll",e,{passive:!0}),s&&S.addEventListener("resize",e)});let p=m&&a?Sl(m,e):null,b=-1,f=null;n&&(f=new ResizeObserver(S=>{let[I]=S;I&&I.target===m&&f&&(f.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var k;(k=f)==null||k.observe(t)})),e()}),m&&!l&&f.observe(m),f.observe(t));let x,T=l?ct(o):null;l&&_();function _(){let S=ct(o);T&&(S.x!==T.x||S.y!==T.y||S.width!==T.width||S.height!==T.height)&&e(),T=S,x=requestAnimationFrame(_)}return e(),()=>{var S;h.forEach(I=>{i&&I.removeEventListener("scroll",e),s&&I.removeEventListener("resize",e)}),p==null||p(),(S=f)==null||S.disconnect(),f=null,l&&cancelAnimationFrame(x)}}var vn=en;var bn=tn,yn=Js,xn=rn;var En=Qs;var Tn=(o,t,e)=>{let r=new Map,i={platform:Al,...e},s={...i.platform,_c:r};return Ks(o,t,{...i,platform:s})};var _l=g`
|
1871
|
+
`,Gs=[ol];var qs=y.constructTagName("marker"),Ys={SOLID:"solid",STRIPED:"striped"};var rr=class extends E{constructor(){super(...arguments);this.variant=Ys.SOLID}};rr.styles=[...E.styles,...Gs],c([d({type:String,reflect:!0})],rr.prototype,"variant",2);var Wo=rr;Wo.register(qs);var il=Wo;var ye=Math.min,Y=Math.max,ir=Math.round,sr=Math.floor,ae=o=>({x:o,y:o}),sl={left:"right",right:"left",bottom:"top",top:"bottom"},nl={start:"end",end:"start"};function Br(o,t,e){return Y(o,ye(t,e))}function it(o,t){return typeof o=="function"?o(t):o}function Re(o){return o.split("-")[0]}function st(o){return o.split("-")[1]}function Xo(o){return o==="x"?"y":"x"}function Gr(o){return o==="y"?"height":"width"}function Ye(o){return["top","bottom"].includes(Re(o))?"y":"x"}function qr(o){return Xo(Ye(o))}function Ws(o,t,e){e===void 0&&(e=!1);let r=st(o),i=qr(o),s=Gr(i),n=i==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(n=or(n)),[n,or(n)]}function Xs(o){let t=or(o);return[Fr(o),t,Fr(t)]}function Fr(o){return o.replace(/start|end/g,t=>nl[t])}function al(o,t,e){let r=["left","right"],i=["right","left"],s=["top","bottom"],n=["bottom","top"];switch(o){case"top":case"bottom":return e?t?i:r:t?r:i;case"left":case"right":return t?s:n;default:return[]}}function Zs(o,t,e,r){let i=st(o),s=al(Re(o),e==="start",r);return i&&(s=s.map(n=>n+"-"+i),t&&(s=s.concat(s.map(Fr)))),s}function or(o){return o.replace(/left|right|bottom|top/g,t=>sl[t])}function ll(o){return{top:0,right:0,bottom:0,left:0,...o}}function Zo(o){return typeof o!="number"?ll(o):{top:o,right:o,bottom:o,left:o}}function nt(o){let{x:t,y:e,width:r,height:i}=o;return{width:r,height:i,top:e,left:t,right:t+r,bottom:e+i,x:t,y:e}}function js(o,t,e){let{reference:r,floating:i}=o,s=Ye(t),n=qr(t),a=Gr(n),l=Re(t),m=s==="y",h=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,b=r[a]/2-i[a]/2,f;switch(l){case"top":f={x:h,y:r.y-i.height};break;case"bottom":f={x:h,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:p};break;case"left":f={x:r.x-i.width,y:p};break;default:f={x:r.x,y:r.y}}switch(st(t)){case"start":f[n]-=b*(e&&m?-1:1);break;case"end":f[n]+=b*(e&&m?-1:1);break}return f}var Ks=async(o,t,e)=>{let{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:n}=e,a=s.filter(Boolean),l=await(n.isRTL==null?void 0:n.isRTL(t)),m=await n.getElementRects({reference:o,floating:t,strategy:i}),{x:h,y:p}=js(m,r,l),b=r,f={},x=0;for(let T=0;T<a.length;T++){let{name:_,fn:S}=a[T],{x:I,y:k,data:P,reset:z}=await S({x:h,y:p,initialPlacement:r,placement:b,strategy:i,middlewareData:f,rects:m,platform:n,elements:{reference:o,floating:t}});h=I!=null?I:h,p=k!=null?k:p,f={...f,[_]:{...f[_],...P}},z&&x<=50&&(x++,typeof z=="object"&&(z.placement&&(b=z.placement),z.rects&&(m=z.rects===!0?await n.getElementRects({reference:o,floating:t,strategy:i}):z.rects),{x:h,y:p}=js(m,b,l)),T=-1)}return{x:h,y:p,placement:b,strategy:i,middlewareData:f}};async function Yr(o,t){var e;t===void 0&&(t={});let{x:r,y:i,platform:s,rects:n,elements:a,strategy:l}=o,{boundary:m="clippingAncestors",rootBoundary:h="viewport",elementContext:p="floating",altBoundary:b=!1,padding:f=0}=it(t,o),x=Zo(f),_=a[b?p==="floating"?"reference":"floating":p],S=nt(await s.getClippingRect({element:(e=await(s.isElement==null?void 0:s.isElement(_)))==null||e?_:_.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:m,rootBoundary:h,strategy:l})),I=p==="floating"?{x:r,y:i,width:n.floating.width,height:n.floating.height}:n.reference,k=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),P=await(s.isElement==null?void 0:s.isElement(k))?await(s.getScale==null?void 0:s.getScale(k))||{x:1,y:1}:{x:1,y:1},z=nt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:I,offsetParent:k,strategy:l}):I);return{top:(S.top-z.top+x.top)/P.y,bottom:(z.bottom-S.bottom+x.bottom)/P.y,left:(S.left-z.left+x.left)/P.x,right:(z.right-S.right+x.right)/P.x}}var Qs=o=>({name:"arrow",options:o,async fn(t){let{x:e,y:r,placement:i,rects:s,platform:n,elements:a,middlewareData:l}=t,{element:m,padding:h=0}=it(o,t)||{};if(m==null)return{};let p=Zo(h),b={x:e,y:r},f=qr(i),x=Gr(f),T=await n.getDimensions(m),_=f==="y",S=_?"top":"left",I=_?"bottom":"right",k=_?"clientHeight":"clientWidth",P=s.reference[x]+s.reference[f]-b[f]-s.floating[x],z=b[f]-s.reference[f],K=await(n.getOffsetParent==null?void 0:n.getOffsetParent(m)),ie=K?K[k]:0;(!ie||!await(n.isElement==null?void 0:n.isElement(K)))&&(ie=a.floating[k]||s.floating[x]);let xe=P/2-z/2,de=ie/2-T[x]/2-1,se=ye(p[S],de),Ne=ye(p[I],de),me=se,Oe=ie-T[x]-Ne,G=ie/2-T[x]/2+xe,vt=Br(me,G,Oe),Ee=!l.arrow&&st(i)!=null&&G!==vt&&s.reference[x]/2-(G<me?se:Ne)-T[x]/2<0,he=Ee?G<me?G-me:G-Oe:0;return{[f]:b[f]+he,data:{[f]:vt,centerOffset:G-vt-he,...Ee&&{alignmentOffset:he}},reset:Ee}}});var Js=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(t){var e,r;let{placement:i,middlewareData:s,rects:n,initialPlacement:a,platform:l,elements:m}=t,{mainAxis:h=!0,crossAxis:p=!0,fallbackPlacements:b,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:T=!0,..._}=it(o,t);if((e=s.arrow)!=null&&e.alignmentOffset)return{};let S=Re(i),I=Ye(a),k=Re(a)===a,P=await(l.isRTL==null?void 0:l.isRTL(m.floating)),z=b||(k||!T?[or(a)]:Xs(a)),K=x!=="none";!b&&K&&z.push(...Zs(a,T,x,P));let ie=[a,...z],xe=await Yr(t,_),de=[],se=((r=s.flip)==null?void 0:r.overflows)||[];if(h&&de.push(xe[S]),p){let G=Ws(i,n,P);de.push(xe[G[0]],xe[G[1]])}if(se=[...se,{placement:i,overflows:de}],!de.every(G=>G<=0)){var Ne,me;let G=(((Ne=s.flip)==null?void 0:Ne.index)||0)+1,vt=ie[G];if(vt)return{data:{index:G,overflows:se},reset:{placement:vt}};let Ee=(me=se.filter(he=>he.overflows[0]<=0).sort((he,ze)=>he.overflows[1]-ze.overflows[1])[0])==null?void 0:me.placement;if(!Ee)switch(f){case"bestFit":{var Oe;let he=(Oe=se.filter(ze=>{if(K){let Me=Ye(ze.placement);return Me===I||Me==="y"}return!0}).map(ze=>[ze.placement,ze.overflows.filter(Me=>Me>0).reduce((Me,Jn)=>Me+Jn,0)]).sort((ze,Me)=>ze[1]-Me[1])[0])==null?void 0:Oe[0];he&&(Ee=he);break}case"initialPlacement":Ee=a;break}if(i!==Ee)return{reset:{placement:Ee}}}return{}}}};async function cl(o,t){let{placement:e,platform:r,elements:i}=o,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),n=Re(e),a=st(e),l=Ye(e)==="y",m=["left","top"].includes(n)?-1:1,h=s&&l?-1:1,p=it(t,o),{mainAxis:b,crossAxis:f,alignmentAxis:x}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof x=="number"&&(f=a==="end"?x*-1:x),l?{x:f*h,y:b*m}:{x:b*m,y:f*h}}var en=function(o){return o===void 0&&(o=0),{name:"offset",options:o,async fn(t){var e,r;let{x:i,y:s,placement:n,middlewareData:a}=t,l=await cl(t,o);return n===((e=a.offset)==null?void 0:e.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:n}}}}},tn=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(t){let{x:e,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:n=!1,limiter:a={fn:_=>{let{x:S,y:I}=_;return{x:S,y:I}}},...l}=it(o,t),m={x:e,y:r},h=await Yr(t,l),p=Ye(Re(i)),b=Xo(p),f=m[b],x=m[p];if(s){let _=b==="y"?"top":"left",S=b==="y"?"bottom":"right",I=f+h[_],k=f-h[S];f=Br(I,f,k)}if(n){let _=p==="y"?"top":"left",S=p==="y"?"bottom":"right",I=x+h[_],k=x-h[S];x=Br(I,x,k)}let T=a.fn({...t,[b]:f,[p]:x});return{...T,data:{x:T.x-e,y:T.y-r,enabled:{[b]:s,[p]:n}}}}}};var rn=function(o){return o===void 0&&(o={}),{name:"size",options:o,async fn(t){var e,r;let{placement:i,rects:s,platform:n,elements:a}=t,{apply:l=()=>{},...m}=it(o,t),h=await Yr(t,m),p=Re(i),b=st(i),f=Ye(i)==="y",{width:x,height:T}=s.floating,_,S;p==="top"||p==="bottom"?(_=p,S=b===(await(n.isRTL==null?void 0:n.isRTL(a.floating))?"start":"end")?"left":"right"):(S=p,_=b==="end"?"top":"bottom");let I=T-h.top-h.bottom,k=x-h.left-h.right,P=ye(T-h[_],I),z=ye(x-h[S],k),K=!t.middlewareData.shift,ie=P,xe=z;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&(xe=k),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(ie=I),K&&!b){let se=Y(h.left,0),Ne=Y(h.right,0),me=Y(h.top,0),Oe=Y(h.bottom,0);f?xe=x-2*(se!==0||Ne!==0?se+Ne:Y(h.left,h.right)):ie=T-2*(me!==0||Oe!==0?me+Oe:Y(h.top,h.bottom))}await l({...t,availableWidth:xe,availableHeight:ie});let de=await n.getDimensions(a.floating);return x!==de.width||T!==de.height?{reset:{rects:!0}}:{}}}};function Wr(){return typeof window<"u"}function at(o){return sn(o)?(o.nodeName||"").toLowerCase():"#document"}function X(o){var t;return(o==null||(t=o.ownerDocument)==null?void 0:t.defaultView)||window}function le(o){var t;return(t=(sn(o)?o.ownerDocument:o.document)||window.document)==null?void 0:t.documentElement}function sn(o){return Wr()?o instanceof Node||o instanceof X(o).Node:!1}function re(o){return Wr()?o instanceof Element||o instanceof X(o).Element:!1}function ce(o){return Wr()?o instanceof HTMLElement||o instanceof X(o).HTMLElement:!1}function on(o){return!Wr()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof X(o).ShadowRoot}function Rt(o){let{overflow:t,overflowX:e,overflowY:r,display:i}=oe(o);return/auto|scroll|overlay|hidden|clip/.test(t+r+e)&&!["inline","contents"].includes(i)}function nn(o){return["table","td","th"].includes(at(o))}function nr(o){return[":popover-open",":modal"].some(t=>{try{return o.matches(t)}catch{return!1}})}function Xr(o){let t=Zr(),e=re(o)?oe(o):o;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(e.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(e.contain||"").includes(r))}function an(o){let t=Le(o);for(;ce(t)&&!lt(t);){if(Xr(t))return t;if(nr(t))return null;t=Le(t)}return null}function Zr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function lt(o){return["html","body","#document"].includes(at(o))}function oe(o){return X(o).getComputedStyle(o)}function ar(o){return re(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function Le(o){if(at(o)==="html")return o;let t=o.assignedSlot||o.parentNode||on(o)&&o.host||le(o);return on(t)?t.host:t}function ln(o){let t=Le(o);return lt(t)?o.ownerDocument?o.ownerDocument.body:o.body:ce(t)&&Rt(t)?t:ln(t)}function kt(o,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);let i=ln(o),s=i===((r=o.ownerDocument)==null?void 0:r.body),n=X(i);if(s){let a=jr(n);return t.concat(n,n.visualViewport||[],Rt(i)?i:[],a&&e?kt(a):[])}return t.concat(i,kt(i,[],e))}function jr(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function mn(o){let t=oe(o),e=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ce(o),s=i?o.offsetWidth:e,n=i?o.offsetHeight:r,a=ir(e)!==s||ir(r)!==n;return a&&(e=s,r=n),{width:e,height:r,$:a}}function Ko(o){return re(o)?o:o.contextElement}function Lt(o){let t=Ko(o);if(!ce(t))return ae(1);let e=t.getBoundingClientRect(),{width:r,height:i,$:s}=mn(t),n=(s?ir(e.width):e.width)/r,a=(s?ir(e.height):e.height)/i;return(!n||!Number.isFinite(n))&&(n=1),(!a||!Number.isFinite(a))&&(a=1),{x:n,y:a}}var dl=ae(0);function hn(o){let t=X(o);return!Zr()||!t.visualViewport?dl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ml(o,t,e){return t===void 0&&(t=!1),!e||t&&e!==X(o)?!1:t}function ct(o,t,e,r){t===void 0&&(t=!1),e===void 0&&(e=!1);let i=o.getBoundingClientRect(),s=Ko(o),n=ae(1);t&&(r?re(r)&&(n=Lt(r)):n=Lt(o));let a=ml(s,e,r)?hn(s):ae(0),l=(i.left+a.x)/n.x,m=(i.top+a.y)/n.y,h=i.width/n.x,p=i.height/n.y;if(s){let b=X(s),f=r&&re(r)?X(r):r,x=b,T=jr(x);for(;T&&r&&f!==x;){let _=Lt(T),S=T.getBoundingClientRect(),I=oe(T),k=S.left+(T.clientLeft+parseFloat(I.paddingLeft))*_.x,P=S.top+(T.clientTop+parseFloat(I.paddingTop))*_.y;l*=_.x,m*=_.y,h*=_.x,p*=_.y,l+=k,m+=P,x=X(T),T=jr(x)}}return nt({width:h,height:p,x:l,y:m})}function Qo(o,t){let e=ar(o).scrollLeft;return t?t.left+e:ct(le(o)).left+e}function pn(o,t,e){e===void 0&&(e=!1);let r=o.getBoundingClientRect(),i=r.left+t.scrollLeft-(e?0:Qo(o,r)),s=r.top+t.scrollTop;return{x:i,y:s}}function hl(o){let{elements:t,rect:e,offsetParent:r,strategy:i}=o,s=i==="fixed",n=le(r),a=t?nr(t.floating):!1;if(r===n||a&&s)return e;let l={scrollLeft:0,scrollTop:0},m=ae(1),h=ae(0),p=ce(r);if((p||!p&&!s)&&((at(r)!=="body"||Rt(n))&&(l=ar(r)),ce(r))){let f=ct(r);m=Lt(r),h.x=f.x+r.clientLeft,h.y=f.y+r.clientTop}let b=n&&!p&&!s?pn(n,l,!0):ae(0);return{width:e.width*m.x,height:e.height*m.y,x:e.x*m.x-l.scrollLeft*m.x+h.x+b.x,y:e.y*m.y-l.scrollTop*m.y+h.y+b.y}}function pl(o){return Array.from(o.getClientRects())}function ul(o){let t=le(o),e=ar(o),r=o.ownerDocument.body,i=Y(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Y(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),n=-e.scrollLeft+Qo(o),a=-e.scrollTop;return oe(r).direction==="rtl"&&(n+=Y(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:n,y:a}}function fl(o,t){let e=X(o),r=le(o),i=e.visualViewport,s=r.clientWidth,n=r.clientHeight,a=0,l=0;if(i){s=i.width,n=i.height;let m=Zr();(!m||m&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:n,x:a,y:l}}function gl(o,t){let e=ct(o,!0,t==="fixed"),r=e.top+o.clientTop,i=e.left+o.clientLeft,s=ce(o)?Lt(o):ae(1),n=o.clientWidth*s.x,a=o.clientHeight*s.y,l=i*s.x,m=r*s.y;return{width:n,height:a,x:l,y:m}}function cn(o,t,e){let r;if(t==="viewport")r=fl(o,e);else if(t==="document")r=ul(le(o));else if(re(t))r=gl(t,e);else{let i=hn(o);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return nt(r)}function un(o,t){let e=Le(o);return e===t||!re(e)||lt(e)?!1:oe(e).position==="fixed"||un(e,t)}function vl(o,t){let e=t.get(o);if(e)return e;let r=kt(o,[],!1).filter(a=>re(a)&&at(a)!=="body"),i=null,s=oe(o).position==="fixed",n=s?Le(o):o;for(;re(n)&&!lt(n);){let a=oe(n),l=Xr(n);!l&&a.position==="fixed"&&(i=null),(s?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Rt(n)&&!l&&un(o,n))?r=r.filter(h=>h!==n):i=a,n=Le(n)}return t.set(o,r),r}function bl(o){let{element:t,boundary:e,rootBoundary:r,strategy:i}=o,n=[...e==="clippingAncestors"?nr(t)?[]:vl(t,this._c):[].concat(e),r],a=n[0],l=n.reduce((m,h)=>{let p=cn(t,h,i);return m.top=Y(p.top,m.top),m.right=ye(p.right,m.right),m.bottom=ye(p.bottom,m.bottom),m.left=Y(p.left,m.left),m},cn(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function yl(o){let{width:t,height:e}=mn(o);return{width:t,height:e}}function xl(o,t,e){let r=ce(t),i=le(t),s=e==="fixed",n=ct(o,!0,s,t),a={scrollLeft:0,scrollTop:0},l=ae(0);if(r||!r&&!s)if((at(t)!=="body"||Rt(i))&&(a=ar(t)),r){let b=ct(t,!0,s,t);l.x=b.x+t.clientLeft,l.y=b.y+t.clientTop}else i&&(l.x=Qo(i));let m=i&&!r&&!s?pn(i,a):ae(0),h=n.left+a.scrollLeft-l.x-m.x,p=n.top+a.scrollTop-l.y-m.y;return{x:h,y:p,width:n.width,height:n.height}}function jo(o){return oe(o).position==="static"}function dn(o,t){if(!ce(o)||oe(o).position==="fixed")return null;if(t)return t(o);let e=o.offsetParent;return le(o)===e&&(e=e.ownerDocument.body),e}function fn(o,t){let e=X(o);if(nr(o))return e;if(!ce(o)){let i=Le(o);for(;i&&!lt(i);){if(re(i)&&!jo(i))return i;i=Le(i)}return e}let r=dn(o,t);for(;r&&nn(r)&&jo(r);)r=dn(r,t);return r&<(r)&&jo(r)&&!Xr(r)?e:r||an(o)||e}var El=async function(o){let t=this.getOffsetParent||fn,e=this.getDimensions,r=await e(o.floating);return{reference:xl(o.reference,await t(o.floating),o.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Tl(o){return oe(o).direction==="rtl"}var Al={convertOffsetParentRelativeRectToViewportRelativeRect:hl,getDocumentElement:le,getClippingRect:bl,getOffsetParent:fn,getElementRects:El,getClientRects:pl,getDimensions:yl,getScale:Lt,isElement:re,isRTL:Tl};function Sl(o,t){let e=null,r,i=le(o);function s(){var a;clearTimeout(r),(a=e)==null||a.disconnect(),e=null}function n(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();let{left:m,top:h,width:p,height:b}=o.getBoundingClientRect();if(a||t(),!p||!b)return;let f=sr(h),x=sr(i.clientWidth-(m+p)),T=sr(i.clientHeight-(h+b)),_=sr(m),I={rootMargin:-f+"px "+-x+"px "+-T+"px "+-_+"px",threshold:Y(0,ye(1,l))||1},k=!0;function P(z){let K=z[0].intersectionRatio;if(K!==l){if(!k)return n();K?n(!1,K):r=setTimeout(()=>{n(!1,1e-7)},1e3)}k=!1}try{e=new IntersectionObserver(P,{...I,root:i.ownerDocument})}catch{e=new IntersectionObserver(P,I)}e.observe(o)}return n(!0),s}function gn(o,t,e,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:n=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,m=Ko(o),h=i||s?[...m?kt(m):[],...kt(t)]:[];h.forEach(S=>{i&&S.addEventListener("scroll",e,{passive:!0}),s&&S.addEventListener("resize",e)});let p=m&&a?Sl(m,e):null,b=-1,f=null;n&&(f=new ResizeObserver(S=>{let[I]=S;I&&I.target===m&&f&&(f.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var k;(k=f)==null||k.observe(t)})),e()}),m&&!l&&f.observe(m),f.observe(t));let x,T=l?ct(o):null;l&&_();function _(){let S=ct(o);T&&(S.x!==T.x||S.y!==T.y||S.width!==T.width||S.height!==T.height)&&e(),T=S,x=requestAnimationFrame(_)}return e(),()=>{var S;h.forEach(I=>{i&&I.removeEventListener("scroll",e),s&&I.removeEventListener("resize",e)}),p==null||p(),(S=f)==null||S.disconnect(),f=null,l&&cancelAnimationFrame(x)}}var vn=en;var bn=tn,yn=Js,xn=rn;var En=Qs;var Tn=(o,t,e)=>{let r=new Map,i={platform:Al,...e},s={...i.platform,_c:r};return Ks(o,t,{...i,platform:s})};var _l=g`
|
1872
1872
|
:host {
|
1873
1873
|
--mdc-popover-arrow-border-radius: 0.1875rem;
|
1874
1874
|
--mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
|
@@ -1981,7 +1981,7 @@
|
|
1981
1981
|
background: transparent;
|
1982
1982
|
z-index: ${this.popover.zIndex-1};
|
1983
1983
|
}
|
1984
|
-
`,e.appendChild(r),this.popover.backdropElement=e}}};var w=class extends _n(E){constructor(){super();this.id="";this.triggerID="";this.trigger=R.TRIGGER;this.placement=R.PLACEMENT;this.color=R.COLOR;this.visible=R.VISIBLE;this.offset=R.OFFSET;this.focusTrap=R.FOCUS_TRAP;this.preventScroll=R.PREVENT_SCROLL;this.showArrow=R.ARROW;this.closeButton=R.CLOSE_BUTTON;this.interactive=R.INTERACTIVE;this.delay=R.DELAY;this.hideOnEscape=R.HIDE_ON_ESCAPE;this.hideOnBlur=R.HIDE_ON_BLUR;this.hideOnOutsideClick=R.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=R.FOCUS_BACK;this.backdrop=R.BACKDROP;this.flip=R.FLIP;this.size=R.SIZE;this.zIndex=R.Z_INDEX;this.appendTo="";this.closeButtonAriaLabel=null;this.role=R.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=R.DISABLE_ARIA_EXPANDED;this.arrowElement=null;this.triggerElement=null;this.hoverTimer=null;this.isTriggerClicked=!1;this.openDelay=0;this.closeDelay=0;this.backdropElement=null;this.onOutsidePopoverClick=e=>{if(dt.peek()!==this)return;let r=!1,i=e.composedPath();r=this.contains(e.target)||i.includes(this.triggerElement);let s=this.backdropElement?i.includes(this.backdropElement):!1;(!r||s)&&this.hidePopover()};this.onEscapeKeydown=e=>{!this.visible||e.code!=="Escape"||(e.preventDefault(),this.hidePopover())};this.onPopoverFocusOut=e=>{this.contains(e.relatedTarget)||this.hidePopover()};this.startCloseDelay=()=>{if(!this.interactive)this.hidePopover();else{if(this.isTriggerClicked)return;this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay)}};this.cancelCloseDelay=()=>{this.hoverTimer&&(clearTimeout(this.hoverTimer),this.hoverTimer=null)};this.showPopover=()=>{this.cancelCloseDelay(),setTimeout(()=>{this.visible=!0},this.openDelay)};this.hidePopover=()=>{dt.peek()===this&&setTimeout(()=>{this.visible=!1,this.isTriggerClicked=!1},this.closeDelay)};this.togglePopoverVisible=()=>{this.isTriggerClicked?this.hidePopover():(this.showPopover(),this.isTriggerClicked=!0)};this.utils=new Kr(this)}async firstUpdated(e){super.firstUpdated(e),this.utils.setupAppendTo(),[this.openDelay,this.closeDelay]=this.utils.setupDelay(),this.setupTriggerListener(),this.utils.setupAccessibility(),this.style.zIndex=`${this.zIndex}`,mt.onCreatedPopover(this),this.visible&&(this.positionPopover(),await this.handleCreatePopoverFirstUpdate())}async disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners(),mt.onDestroyedPopover(this),dt.remove(this)}setupTriggerListener(){if(this.triggerID&&(this.triggerElement=
|
1984
|
+
`,e.appendChild(r),this.popover.backdropElement=e}}};var w=class extends _n(E){constructor(){super();this.id="";this.triggerID="";this.trigger=R.TRIGGER;this.placement=R.PLACEMENT;this.color=R.COLOR;this.visible=R.VISIBLE;this.offset=R.OFFSET;this.focusTrap=R.FOCUS_TRAP;this.preventScroll=R.PREVENT_SCROLL;this.showArrow=R.ARROW;this.closeButton=R.CLOSE_BUTTON;this.interactive=R.INTERACTIVE;this.delay=R.DELAY;this.hideOnEscape=R.HIDE_ON_ESCAPE;this.hideOnBlur=R.HIDE_ON_BLUR;this.hideOnOutsideClick=R.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=R.FOCUS_BACK;this.backdrop=R.BACKDROP;this.flip=R.FLIP;this.size=R.SIZE;this.zIndex=R.Z_INDEX;this.appendTo="";this.closeButtonAriaLabel=null;this.role=R.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=R.DISABLE_ARIA_EXPANDED;this.arrowElement=null;this.triggerElement=null;this.hoverTimer=null;this.isTriggerClicked=!1;this.openDelay=0;this.closeDelay=0;this.backdropElement=null;this.onOutsidePopoverClick=e=>{if(dt.peek()!==this)return;let r=!1,i=e.composedPath();r=this.contains(e.target)||i.includes(this.triggerElement);let s=this.backdropElement?i.includes(this.backdropElement):!1;(!r||s)&&this.hidePopover()};this.onEscapeKeydown=e=>{!this.visible||e.code!=="Escape"||(e.preventDefault(),this.hidePopover())};this.onPopoverFocusOut=e=>{this.contains(e.relatedTarget)||this.hidePopover()};this.startCloseDelay=()=>{if(!this.interactive)this.hidePopover();else{if(this.isTriggerClicked)return;this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay)}};this.cancelCloseDelay=()=>{this.hoverTimer&&(clearTimeout(this.hoverTimer),this.hoverTimer=null)};this.showPopover=()=>{this.cancelCloseDelay(),setTimeout(()=>{this.visible=!0},this.openDelay)};this.hidePopover=()=>{dt.peek()===this&&setTimeout(()=>{this.visible=!1,this.isTriggerClicked=!1},this.closeDelay)};this.togglePopoverVisible=()=>{this.isTriggerClicked?this.hidePopover():(this.showPopover(),this.isTriggerClicked=!0)};this.utils=new Kr(this)}async firstUpdated(e){super.firstUpdated(e),this.utils.setupAppendTo(),[this.openDelay,this.closeDelay]=this.utils.setupDelay(),this.setupTriggerListener(),this.utils.setupAccessibility(),this.style.zIndex=`${this.zIndex}`,mt.onCreatedPopover(this),this.visible&&(this.positionPopover(),await this.handleCreatePopoverFirstUpdate())}async disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners(),mt.onDestroyedPopover(this),dt.remove(this)}setupTriggerListener(){if(this.triggerID&&(this.triggerElement=this.getRootNode().querySelector(`#${this.triggerID}`),!!this.triggerElement)){if(this.trigger==="mouseenter"&&(this.interactive?this.trigger="mouseenter click":this.trigger="mouseenter focusin"),this.trigger.includes("click")&&this.triggerElement.addEventListener("click",this.togglePopoverVisible),this.trigger.includes("mouseenter")){let e=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.addEventListener("mouseenter",this.showPopover),this.triggerElement.addEventListener("mouseleave",this.startCloseDelay),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay),e==null||e.addEventListener("mouseenter",this.cancelCloseDelay)}this.trigger.includes("focusin")&&(this.triggerElement.addEventListener("focusin",this.showPopover),this.interactive||this.triggerElement.addEventListener("focusout",this.hidePopover)),this.addEventListener("focus-trap-exit",this.hidePopover)}}removeEventListeners(){if(!this.triggerElement)return;let e=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.removeEventListener("click",this.togglePopoverVisible),this.triggerElement.removeEventListener("mouseenter",this.showPopover),this.triggerElement.removeEventListener("mouseleave",this.hidePopover),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),this.triggerElement.removeEventListener("focusin",this.showPopover),this.triggerElement.removeEventListener("focusout",this.hidePopover),e==null||e.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("focus-trap-exit",this.hidePopover)}async updated(e){if(super.updated(e),e.has("visible")){let r=e.get("visible");await this.isOpenUpdated(r,this.visible)}if(e.has("placement")&&this.setAttribute("placement",Object.values(Jo).includes(this.placement)?this.placement:R.PLACEMENT),e.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),e.has("trigger")){let i=this.trigger.split(" ").filter(s=>Object.values(ei).includes(s));this.setAttribute("trigger",i.length>0?this.trigger:R.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}e.has("color")&&this.setAttribute("color",Object.values(ti).includes(this.color)?this.color:R.COLOR),e.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),e.has("append-to")&&this.utils.setupAppendTo(),(e.has("interactive")||e.has("aria-label")||e.has("aria-labelledby"))&&this.utils.setupAccessibility()}async isOpenUpdated(e,r){var i,s,n;e===r||!this.triggerElement||(r?(dt.peek()!==this&&dt.push(this),this.enabledFocusTrap=this.focusTrap,this.enabledPreventScroll=this.preventScroll,this.backdrop&&(this.utils.createBackdrop(),this.triggerElement.style.zIndex=`${this.zIndex}`),this.positionPopover(),await this.handleCreatePopoverFirstUpdate(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="none")),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.addEventListener("keydown",this.onEscapeKeydown),this.disableAriaExpanded||this.triggerElement.setAttribute("aria-expanded","true"),this.interactive&&this.triggerElement.setAttribute("aria-haspopup",this.triggerElement.getAttribute("aria-haspopup")||"dialog"),mt.onShowPopover(this)):(dt.pop(),this.backdropElement&&((i=this.backdropElement)==null||i.remove(),this.backdropElement=null),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.removeEventListener("keydown",this.onEscapeKeydown),(s=this.deactivateFocusTrap)==null||s.call(this),this.disableAriaExpanded||this.triggerElement.removeAttribute("aria-expanded"),this.interactive&&this.triggerElement.removeAttribute("aria-haspopup"),this.focusBackToTrigger&&((n=this.triggerElement)==null||n.focus()),mt.onHidePopover(this)))}async handleCreatePopoverFirstUpdate(){var e,r;this.visible&&this.interactive&&((e=this.setFocusableElements)==null||e.call(this),await this.updateComplete,(r=this.setInitialFocus)==null||r.call(this))}positionPopover(){if(!this.triggerElement)return;let e=[bn()],r=this.offset;if(this.flip&&e.push(yn()),this.size){let i=this.renderRoot.querySelector('[part="popover-content"]');e.push(xn({apply({availableHeight:s}){i&&Object.assign(i.style,{maxHeight:`${s}px`})},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector(".popover-arrow"),this.arrowElement)){let i=this.arrowElement.offsetHeight;r=Math.sqrt(2*i**2)/2+this.offset,e.push(En({element:this.arrowElement,padding:12}))}e.push(vn(r)),gn(this.triggerElement,this,async()=>{if(!this.triggerElement)return;let{x:i,y:s,middlewareData:n,placement:a}=await Tn(this.triggerElement,this,{placement:this.placement,middleware:e});this.utils.updatePopoverStyle(i,s),n.arrow&&this.arrowElement&&this.utils.updateArrowStyle(n.arrow,a),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(a)})}render(){return u`
|
1985
1985
|
<div class="popover-hover-bridge"></div>
|
1986
1986
|
${this.closeButton?u` <mdc-button
|
1987
1987
|
class="popover-close"
|