@momentum-design/components 0.83.6 → 0.83.7
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
CHANGED
@@ -1816,7 +1816,7 @@
|
|
1816
1816
|
}
|
1817
1817
|
`],Vp=Ag;var Lo=class extends $t(q){constructor(){super(...arguments);this.checked=!1;this.readonly=!1}render(){return O`
|
1818
1818
|
<slot></slot>
|
1819
|
-
<span part="radio-icon" class="icon"></span>`}};Lo.styles=[...q.styles,...Vp],v([T({type:Boolean,reflect:!0})],Lo.prototype,"checked",2),v([T({type:Boolean,reflect:!0})],Lo.prototype,"readonly",2);var ic=Lo;var Bp=W.constructTagName("staticradio");ic.register(Bp);var xg=ic;rc.register(mn);var _g=rc;var br=Math.min,fe=Math.max,$s=Math.round,zs=Math.floor,ar=l=>({x:l,y:l}),Sg={left:"right",right:"left",bottom:"top",top:"bottom"},Ig={start:"end",end:"start"};function fn(l,o,e){return fe(l,br(o,e))}function Ri(l,o){return typeof l=="function"?l(o):l}function zr(l){return l.split("-")[0]}function Oi(l){return l.split("-")[1]}function oc(l){return l==="x"?"y":"x"}function vn(l){return l==="y"?"height":"width"}function li(l){return["top","bottom"].includes(zr(l))?"y":"x"}function gn(l){return oc(li(l))}function Up(l,o,e){e===void 0&&(e=!1);let s=Oi(l),a=gn(l),h=vn(a),p=a==="x"?s===(e?"end":"start")?"right":"left":s==="start"?"bottom":"top";return o.reference[h]>o.floating[h]&&(p=Fs(p)),[p,Fs(p)]}function Hp(l){let o=Fs(l);return[un(l),o,un(o)]}function un(l){return l.replace(/start|end/g,o=>Ig[o])}function kg(l,o,e){let s=["left","right"],a=["right","left"],h=["top","bottom"],p=["bottom","top"];switch(l){case"top":case"bottom":return e?o?a:s:o?s:a;case"left":case"right":return o?h:p;default:return[]}}function Gp(l,o,e,s){let a=Oi(l),h=kg(zr(l),e==="start",s);return a&&(h=h.map(p=>p+"-"+a),o&&(h=h.concat(h.map(un)))),h}function Fs(l){return l.replace(/left|right|bottom|top/g,o=>Sg[o])}function Cg(l){return{top:0,right:0,bottom:0,left:0,...l}}function sc(l){return typeof l!="number"?Cg(l):{top:l,right:l,bottom:l,left:l}}function Pi(l){let{x:o,y:e,width:s,height:a}=l;return{width:s,height:a,top:e,left:o,right:o+s,bottom:e+a,x:o,y:e}}function jp(l,o,e){let{reference:s,floating:a}=l,h=li(o),p=gn(o),g=vn(p),C=zr(o),F=h==="y",G=s.x+s.width/2-a.width/2,K=s.y+s.height/2-a.height/2,rt=s[g]/2-a[g]/2,J;switch(C){case"top":J={x:G,y:s.y-a.height};break;case"bottom":J={x:G,y:s.y+s.height};break;case"right":J={x:s.x+s.width,y:K};break;case"left":J={x:s.x-a.width,y:K};break;default:J={x:s.x,y:s.y}}switch(Oi(o)){case"start":J[p]-=rt*(e&&F?-1:1);break;case"end":J[p]+=rt*(e&&F?-1:1);break}return J}var Wp=async(l,o,e)=>{let{placement:s="bottom",strategy:a="absolute",middleware:h=[],platform:p}=e,g=h.filter(Boolean),C=await(p.isRTL==null?void 0:p.isRTL(o)),F=await p.getElementRects({reference:l,floating:o,strategy:a}),{x:G,y:K}=jp(F,s,C),rt=s,J={},tt=0;for(let ht=0;ht<g.length;ht++){let{name:Tt,fn:bt}=g[ht],{x:At,y:kt,data:Bt,reset:Rt}=await bt({x:G,y:K,initialPlacement:s,placement:rt,strategy:a,middlewareData:J,rects:F,platform:p,elements:{reference:l,floating:o}});G=At!=null?At:G,K=kt!=null?kt:K,J={...J,[Tt]:{...J[Tt],...Bt}},Rt&&tt<=50&&(tt++,typeof Rt=="object"&&(Rt.placement&&(rt=Rt.placement),Rt.rects&&(F=Rt.rects===!0?await p.getElementRects({reference:l,floating:o,strategy:a}):Rt.rects),{x:G,y:K}=jp(F,rt,C)),ht=-1)}return{x:G,y:K,placement:rt,strategy:a,middlewareData:J}};async function bn(l,o){var e;o===void 0&&(o={});let{x:s,y:a,platform:h,rects:p,elements:g,strategy:C}=l,{boundary:F="clippingAncestors",rootBoundary:G="viewport",elementContext:K="floating",altBoundary:rt=!1,padding:J=0}=Ri(o,l),tt=sc(J),Tt=g[rt?K==="floating"?"reference":"floating":K],bt=Pi(await h.getClippingRect({element:(e=await(h.isElement==null?void 0:h.isElement(Tt)))==null||e?Tt:Tt.contextElement||await(h.getDocumentElement==null?void 0:h.getDocumentElement(g.floating)),boundary:F,rootBoundary:G,strategy:C})),At=K==="floating"?{x:s,y:a,width:p.floating.width,height:p.floating.height}:p.reference,kt=await(h.getOffsetParent==null?void 0:h.getOffsetParent(g.floating)),Bt=await(h.isElement==null?void 0:h.isElement(kt))?await(h.getScale==null?void 0:h.getScale(kt))||{x:1,y:1}:{x:1,y:1},Rt=Pi(h.convertOffsetParentRelativeRectToViewportRelativeRect?await h.convertOffsetParentRelativeRectToViewportRelativeRect({elements:g,rect:At,offsetParent:kt,strategy:C}):At);return{top:(bt.top-Rt.top+tt.top)/Bt.y,bottom:(Rt.bottom-bt.bottom+tt.bottom)/Bt.y,left:(bt.left-Rt.left+tt.left)/Bt.x,right:(Rt.right-bt.right+tt.right)/Bt.x}}var Yp=l=>({name:"arrow",options:l,async fn(o){let{x:e,y:s,placement:a,rects:h,platform:p,elements:g,middlewareData:C}=o,{element:F,padding:G=0}=Ri(l,o)||{};if(F==null)return{};let K=sc(G),rt={x:e,y:s},J=gn(a),tt=vn(J),ht=await p.getDimensions(F),Tt=J==="y",bt=Tt?"top":"left",At=Tt?"bottom":"right",kt=Tt?"clientHeight":"clientWidth",Bt=h.reference[tt]+h.reference[J]-rt[J]-h.floating[tt],Rt=rt[J]-h.reference[J],Dt=await(p.getOffsetParent==null?void 0:p.getOffsetParent(F)),Ee=Dt?Dt[kt]:0;(!Ee||!await(p.isElement==null?void 0:p.isElement(Dt)))&&(Ee=g.floating[kt]||h.floating[tt]);let te=Bt/2-Rt/2,Ze=Ee/2-ht[tt]/2-1,Me=br(K[bt],Ze),Fe=br(K[At],Ze),Je=Me,Qe=Ee-ht[tt]-Fe,xt=Ee/2-ht[tt]/2+te,pe=fn(Je,xt,Qe),$e=!C.arrow&&Oi(a)!=null&&xt!==pe&&h.reference[tt]/2-(xt<Je?Me:Fe)-ht[tt]/2<0,tr=$e?xt<Je?xt-Je:xt-Qe:0;return{[J]:rt[J]+tr,data:{[J]:pe,centerOffset:xt-pe-tr,...$e&&{alignmentOffset:tr}},reset:$e}}});var qp=function(l){return l===void 0&&(l={}),{name:"flip",options:l,async fn(o){var e,s;let{placement:a,middlewareData:h,rects:p,initialPlacement:g,platform:C,elements:F}=o,{mainAxis:G=!0,crossAxis:K=!0,fallbackPlacements:rt,fallbackStrategy:J="bestFit",fallbackAxisSideDirection:tt="none",flipAlignment:ht=!0,...Tt}=Ri(l,o);if((e=h.arrow)!=null&&e.alignmentOffset)return{};let bt=zr(a),At=li(g),kt=zr(g)===g,Bt=await(C.isRTL==null?void 0:C.isRTL(F.floating)),Rt=rt||(kt||!ht?[Fs(g)]:Hp(g)),Dt=tt!=="none";!rt&&Dt&&Rt.push(...Gp(g,ht,tt,Bt));let Ee=[g,...Rt],te=await bn(o,Tt),Ze=[],Me=((s=h.flip)==null?void 0:s.overflows)||[];if(G&&Ze.push(te[bt]),K){let xt=Up(a,p,Bt);Ze.push(te[xt[0]],te[xt[1]])}if(Me=[...Me,{placement:a,overflows:Ze}],!Ze.every(xt=>xt<=0)){var Fe,Je;let xt=(((Fe=h.flip)==null?void 0:Fe.index)||0)+1,pe=Ee[xt];if(pe)return{data:{index:xt,overflows:Me},reset:{placement:pe}};let $e=(Je=Me.filter(tr=>tr.overflows[0]<=0).sort((tr,Tr)=>tr.overflows[1]-Tr.overflows[1])[0])==null?void 0:Je.placement;if(!$e)switch(J){case"bestFit":{var Qe;let tr=(Qe=Me.filter(Tr=>{if(Dt){let ze=li(Tr.placement);return ze===At||ze==="y"}return!0}).map(Tr=>[Tr.placement,Tr.overflows.filter(ze=>ze>0).reduce((ze,aa)=>ze+aa,0)]).sort((Tr,ze)=>Tr[1]-ze[1])[0])==null?void 0:Qe[0];tr&&($e=tr);break}case"initialPlacement":$e=g;break}if(a!==$e)return{reset:{placement:$e}}}return{}}}};async function wg(l,o){let{placement:e,platform:s,elements:a}=l,h=await(s.isRTL==null?void 0:s.isRTL(a.floating)),p=zr(e),g=Oi(e),C=li(e)==="y",F=["left","top"].includes(p)?-1:1,G=h&&C?-1:1,K=Ri(o,l),{mainAxis:rt,crossAxis:J,alignmentAxis:tt}=typeof K=="number"?{mainAxis:K,crossAxis:0,alignmentAxis:null}:{mainAxis:K.mainAxis||0,crossAxis:K.crossAxis||0,alignmentAxis:K.alignmentAxis};return g&&typeof tt=="number"&&(J=g==="end"?tt*-1:tt),C?{x:J*G,y:rt*F}:{x:rt*F,y:J*G}}var Kp=function(l){return l===void 0&&(l=0),{name:"offset",options:l,async fn(o){var e,s;let{x:a,y:h,placement:p,middlewareData:g}=o,C=await wg(o,l);return p===((e=g.offset)==null?void 0:e.placement)&&(s=g.arrow)!=null&&s.alignmentOffset?{}:{x:a+C.x,y:h+C.y,data:{...C,placement:p}}}}},Xp=function(l){return l===void 0&&(l={}),{name:"shift",options:l,async fn(o){let{x:e,y:s,placement:a}=o,{mainAxis:h=!0,crossAxis:p=!1,limiter:g={fn:Tt=>{let{x:bt,y:At}=Tt;return{x:bt,y:At}}},...C}=Ri(l,o),F={x:e,y:s},G=await bn(o,C),K=li(zr(a)),rt=oc(K),J=F[rt],tt=F[K];if(h){let Tt=rt==="y"?"top":"left",bt=rt==="y"?"bottom":"right",At=J+G[Tt],kt=J-G[bt];J=fn(At,J,kt)}if(p){let Tt=K==="y"?"top":"left",bt=K==="y"?"bottom":"right",At=tt+G[Tt],kt=tt-G[bt];tt=fn(At,tt,kt)}let ht=g.fn({...o,[rt]:J,[K]:tt});return{...ht,data:{x:ht.x-e,y:ht.y-s,enabled:{[rt]:h,[K]:p}}}}}};var Zp=function(l){return l===void 0&&(l={}),{name:"size",options:l,async fn(o){var e,s;let{placement:a,rects:h,platform:p,elements:g}=o,{apply:C=()=>{},...F}=Ri(l,o),G=await bn(o,F),K=zr(a),rt=Oi(a),J=li(a)==="y",{width:tt,height:ht}=h.floating,Tt,bt;K==="top"||K==="bottom"?(Tt=K,bt=rt===(await(p.isRTL==null?void 0:p.isRTL(g.floating))?"start":"end")?"left":"right"):(bt=K,Tt=rt==="end"?"top":"bottom");let At=ht-G.top-G.bottom,kt=tt-G.left-G.right,Bt=br(ht-G[Tt],At),Rt=br(tt-G[bt],kt),Dt=!o.middlewareData.shift,Ee=Bt,te=Rt;if((e=o.middlewareData.shift)!=null&&e.enabled.x&&(te=kt),(s=o.middlewareData.shift)!=null&&s.enabled.y&&(Ee=At),Dt&&!rt){let Me=fe(G.left,0),Fe=fe(G.right,0),Je=fe(G.top,0),Qe=fe(G.bottom,0);J?te=tt-2*(Me!==0||Fe!==0?Me+Fe:fe(G.left,G.right)):Ee=ht-2*(Je!==0||Qe!==0?Je+Qe:fe(G.top,G.bottom))}await C({...o,availableWidth:te,availableHeight:Ee});let Ze=await p.getDimensions(g.floating);return tt!==Ze.width||ht!==Ze.height?{reset:{rects:!0}}:{}}}};function yn(){return typeof window<"u"}function Di(l){return Qp(l)?(l.nodeName||"").toLowerCase():"#document"}function Ce(l){var o;return(l==null||(o=l.ownerDocument)==null?void 0:o.defaultView)||window}function nr(l){var o;return(o=(Qp(l)?l.ownerDocument:l.document)||window.document)==null?void 0:o.documentElement}function Qp(l){return yn()?l instanceof Node||l instanceof Ce(l).Node:!1}function He(l){return yn()?l instanceof Element||l instanceof Ce(l).Element:!1}function lr(l){return yn()?l instanceof HTMLElement||l instanceof Ce(l).HTMLElement:!1}function Jp(l){return!yn()||typeof ShadowRoot>"u"?!1:l instanceof ShadowRoot||l instanceof Ce(l).ShadowRoot}function Mo(l){let{overflow:o,overflowX:e,overflowY:s,display:a}=Ge(l);return/auto|scroll|overlay|hidden|clip/.test(o+s+e)&&!["inline","contents"].includes(a)}function tm(l){return["table","td","th"].includes(Di(l))}function Vs(l){return[":popover-open",":modal"].some(o=>{try{return l.matches(o)}catch{return!1}})}function En(l){let o=Tn(),e=He(l)?Ge(l):l;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!o&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!o&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(s=>(e.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(e.contain||"").includes(s))}function em(l){let o=Vr(l);for(;lr(o)&&!Fi(o);){if(En(o))return o;if(Vs(o))return null;o=Vr(o)}return null}function Tn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Fi(l){return["html","body","#document"].includes(Di(l))}function Ge(l){return Ce(l).getComputedStyle(l)}function Bs(l){return He(l)?{scrollLeft:l.scrollLeft,scrollTop:l.scrollTop}:{scrollLeft:l.scrollX,scrollTop:l.scrollY}}function Vr(l){if(Di(l)==="html")return l;let o=l.assignedSlot||l.parentNode||Jp(l)&&l.host||nr(l);return Jp(o)?o.host:o}function rm(l){let o=Vr(l);return Fi(o)?l.ownerDocument?l.ownerDocument.body:l.body:lr(o)&&Mo(o)?o:rm(o)}function No(l,o,e){var s;o===void 0&&(o=[]),e===void 0&&(e=!0);let a=rm(l),h=a===((s=l.ownerDocument)==null?void 0:s.body),p=Ce(a);if(h){let g=An(p);return o.concat(p,p.visualViewport||[],Mo(a)?a:[],g&&e?No(g):[])}return o.concat(a,No(a,[],e))}function An(l){return l.parent&&Object.getPrototypeOf(l.parent)?l.frameElement:null}function sm(l){let o=Ge(l),e=parseFloat(o.width)||0,s=parseFloat(o.height)||0,a=lr(l),h=a?l.offsetWidth:e,p=a?l.offsetHeight:s,g=$s(e)!==h||$s(s)!==p;return g&&(e=h,s=p),{width:e,height:s,$:g}}function nc(l){return He(l)?l:l.contextElement}function Ro(l){let o=nc(l);if(!lr(o))return ar(1);let e=o.getBoundingClientRect(),{width:s,height:a,$:h}=sm(o),p=(h?$s(e.width):e.width)/s,g=(h?$s(e.height):e.height)/a;return(!p||!Number.isFinite(p))&&(p=1),(!g||!Number.isFinite(g))&&(g=1),{x:p,y:g}}var Lg=ar(0);function am(l){let o=Ce(l);return!Tn()||!o.visualViewport?Lg:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function Ng(l,o,e){return o===void 0&&(o=!1),!e||o&&e!==Ce(l)?!1:o}function $i(l,o,e,s){o===void 0&&(o=!1),e===void 0&&(e=!1);let a=l.getBoundingClientRect(),h=nc(l),p=ar(1);o&&(s?He(s)&&(p=Ro(s)):p=Ro(l));let g=Ng(h,e,s)?am(h):ar(0),C=(a.left+g.x)/p.x,F=(a.top+g.y)/p.y,G=a.width/p.x,K=a.height/p.y;if(h){let rt=Ce(h),J=s&&He(s)?Ce(s):s,tt=rt,ht=An(tt);for(;ht&&s&&J!==tt;){let Tt=Ro(ht),bt=ht.getBoundingClientRect(),At=Ge(ht),kt=bt.left+(ht.clientLeft+parseFloat(At.paddingLeft))*Tt.x,Bt=bt.top+(ht.clientTop+parseFloat(At.paddingTop))*Tt.y;C*=Tt.x,F*=Tt.y,G*=Tt.x,K*=Tt.y,C+=kt,F+=Bt,tt=Ce(ht),ht=An(tt)}}return Pi({width:G,height:K,x:C,y:F})}function lc(l,o){let e=Bs(l).scrollLeft;return o?o.left+e:$i(nr(l)).left+e}function nm(l,o,e){e===void 0&&(e=!1);let s=l.getBoundingClientRect(),a=s.left+o.scrollLeft-(e?0:lc(l,s)),h=s.top+o.scrollTop;return{x:a,y:h}}function Mg(l){let{elements:o,rect:e,offsetParent:s,strategy:a}=l,h=a==="fixed",p=nr(s),g=o?Vs(o.floating):!1;if(s===p||g&&h)return e;let C={scrollLeft:0,scrollTop:0},F=ar(1),G=ar(0),K=lr(s);if((K||!K&&!h)&&((Di(s)!=="body"||Mo(p))&&(C=Bs(s)),lr(s))){let J=$i(s);F=Ro(s),G.x=J.x+s.clientLeft,G.y=J.y+s.clientTop}let rt=p&&!K&&!h?nm(p,C,!0):ar(0);return{width:e.width*F.x,height:e.height*F.y,x:e.x*F.x-C.scrollLeft*F.x+G.x+rt.x,y:e.y*F.y-C.scrollTop*F.y+G.y+rt.y}}function Rg(l){return Array.from(l.getClientRects())}function Og(l){let o=nr(l),e=Bs(l),s=l.ownerDocument.body,a=fe(o.scrollWidth,o.clientWidth,s.scrollWidth,s.clientWidth),h=fe(o.scrollHeight,o.clientHeight,s.scrollHeight,s.clientHeight),p=-e.scrollLeft+lc(l),g=-e.scrollTop;return Ge(s).direction==="rtl"&&(p+=fe(o.clientWidth,s.clientWidth)-a),{width:a,height:h,x:p,y:g}}function Pg(l,o){let e=Ce(l),s=nr(l),a=e.visualViewport,h=s.clientWidth,p=s.clientHeight,g=0,C=0;if(a){h=a.width,p=a.height;let F=Tn();(!F||F&&o==="fixed")&&(g=a.offsetLeft,C=a.offsetTop)}return{width:h,height:p,x:g,y:C}}function Dg(l,o){let e=$i(l,!0,o==="fixed"),s=e.top+l.clientTop,a=e.left+l.clientLeft,h=lr(l)?Ro(l):ar(1),p=l.clientWidth*h.x,g=l.clientHeight*h.y,C=a*h.x,F=s*h.y;return{width:p,height:g,x:C,y:F}}function im(l,o,e){let s;if(o==="viewport")s=Pg(l,e);else if(o==="document")s=Og(nr(l));else if(He(o))s=Dg(o,e);else{let a=am(l);s={x:o.x-a.x,y:o.y-a.y,width:o.width,height:o.height}}return Pi(s)}function lm(l,o){let e=Vr(l);return e===o||!He(e)||Fi(e)?!1:Ge(e).position==="fixed"||lm(e,o)}function Fg(l,o){let e=o.get(l);if(e)return e;let s=No(l,[],!1).filter(g=>He(g)&&Di(g)!=="body"),a=null,h=Ge(l).position==="fixed",p=h?Vr(l):l;for(;He(p)&&!Fi(p);){let g=Ge(p),C=En(p);!C&&g.position==="fixed"&&(a=null),(h?!C&&!a:!C&&g.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Mo(p)&&!C&&lm(l,p))?s=s.filter(G=>G!==p):a=g,p=Vr(p)}return o.set(l,s),s}function $g(l){let{element:o,boundary:e,rootBoundary:s,strategy:a}=l,p=[...e==="clippingAncestors"?Vs(o)?[]:Fg(o,this._c):[].concat(e),s],g=p[0],C=p.reduce((F,G)=>{let K=im(o,G,a);return F.top=fe(K.top,F.top),F.right=br(K.right,F.right),F.bottom=br(K.bottom,F.bottom),F.left=fe(K.left,F.left),F},im(o,g,a));return{width:C.right-C.left,height:C.bottom-C.top,x:C.left,y:C.top}}function zg(l){let{width:o,height:e}=sm(l);return{width:o,height:e}}function Vg(l,o,e){let s=lr(o),a=nr(o),h=e==="fixed",p=$i(l,!0,h,o),g={scrollLeft:0,scrollTop:0},C=ar(0);if(s||!s&&!h)if((Di(o)!=="body"||Mo(a))&&(g=Bs(o)),s){let rt=$i(o,!0,h,o);C.x=rt.x+o.clientLeft,C.y=rt.y+o.clientTop}else a&&(C.x=lc(a));let F=a&&!s&&!h?nm(a,g):ar(0),G=p.left+g.scrollLeft-C.x-F.x,K=p.top+g.scrollTop-C.y-F.y;return{x:G,y:K,width:p.width,height:p.height}}function ac(l){return Ge(l).position==="static"}function om(l,o){if(!lr(l)||Ge(l).position==="fixed")return null;if(o)return o(l);let e=l.offsetParent;return nr(l)===e&&(e=e.ownerDocument.body),e}function cm(l,o){let e=Ce(l);if(Vs(l))return e;if(!lr(l)){let a=Vr(l);for(;a&&!Fi(a);){if(He(a)&&!ac(a))return a;a=Vr(a)}return e}let s=om(l,o);for(;s&&tm(s)&&ac(s);)s=om(s,o);return s&&Fi(s)&&ac(s)&&!En(s)?e:s||em(l)||e}var Bg=async function(l){let o=this.getOffsetParent||cm,e=this.getDimensions,s=await e(l.floating);return{reference:Vg(l.reference,await o(l.floating),l.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function Ug(l){return Ge(l).direction==="rtl"}var Hg={convertOffsetParentRelativeRectToViewportRelativeRect:Mg,getDocumentElement:nr,getClippingRect:$g,getOffsetParent:cm,getElementRects:Bg,getClientRects:Rg,getDimensions:zg,getScale:Ro,isElement:He,isRTL:Ug};function Gg(l,o){let e=null,s,a=nr(l);function h(){var g;clearTimeout(s),(g=e)==null||g.disconnect(),e=null}function p(g,C){g===void 0&&(g=!1),C===void 0&&(C=1),h();let{left:F,top:G,width:K,height:rt}=l.getBoundingClientRect();if(g||o(),!K||!rt)return;let J=zs(G),tt=zs(a.clientWidth-(F+K)),ht=zs(a.clientHeight-(G+rt)),Tt=zs(F),At={rootMargin:-J+"px "+-tt+"px "+-ht+"px "+-Tt+"px",threshold:fe(0,br(1,C))||1},kt=!0;function Bt(Rt){let Dt=Rt[0].intersectionRatio;if(Dt!==C){if(!kt)return p();Dt?p(!1,Dt):s=setTimeout(()=>{p(!1,1e-7)},1e3)}kt=!1}try{e=new IntersectionObserver(Bt,{...At,root:a.ownerDocument})}catch{e=new IntersectionObserver(Bt,At)}e.observe(l)}return p(!0),h}function dm(l,o,e,s){s===void 0&&(s={});let{ancestorScroll:a=!0,ancestorResize:h=!0,elementResize:p=typeof ResizeObserver=="function",layoutShift:g=typeof IntersectionObserver=="function",animationFrame:C=!1}=s,F=nc(l),G=a||h?[...F?No(F):[],...No(o)]:[];G.forEach(bt=>{a&&bt.addEventListener("scroll",e,{passive:!0}),h&&bt.addEventListener("resize",e)});let K=F&&g?Gg(F,e):null,rt=-1,J=null;p&&(J=new ResizeObserver(bt=>{let[At]=bt;At&&At.target===F&&J&&(J.unobserve(o),cancelAnimationFrame(rt),rt=requestAnimationFrame(()=>{var kt;(kt=J)==null||kt.observe(o)})),e()}),F&&!C&&J.observe(F),J.observe(o));let tt,ht=C?$i(l):null;C&&Tt();function Tt(){let bt=$i(l);ht&&(bt.x!==ht.x||bt.y!==ht.y||bt.width!==ht.width||bt.height!==ht.height)&&e(),ht=bt,tt=requestAnimationFrame(Tt)}return e(),()=>{var bt;G.forEach(At=>{a&&At.removeEventListener("scroll",e),h&&At.removeEventListener("resize",e)}),K==null||K(),(bt=J)==null||bt.disconnect(),J=null,C&&cancelAnimationFrame(tt)}}var hm=Kp;var pm=Xp,mm=qp,um=Zp;var fm=Yp;var vm=(l,o,e)=>{let s=new Map,a={platform:Hg,...e},h={...a.platform,_c:s};return Wp(l,o,{...a,platform:h})};var Oo=class{static get stackArray(){return Array.from(this.stack)}static addKeydownListener(o){this.currentKeydownListener=o,document.addEventListener("keydown",o)}static removeKeydownListener(){this.currentKeydownListener&&document.removeEventListener("keydown",this.currentKeydownListener)}static activate(o){this.stackArray.forEach(e=>{e!==o&&e.setIsFocusTrapActivated(!1)}),this.stack.add(o),this.removeKeydownListener(),this.addKeydownListener(o.handleTabKeydown.bind(o))}static deactivate(o){if(this.stack.delete(o),this.removeKeydownListener(),this.stack.size>0){let e=this.stackArray.pop();e&&(e.setIsFocusTrapActivated(!0),this.addKeydownListener(e.handleTabKeydown.bind(e)))}}};Oo.stack=new Set,Oo.currentKeydownListener=null;var xn=l=>{class o extends l{constructor(){super(...arguments);this.shouldFocusTrapWrap=!0;this.focusTrapIndex=-1;this.focusableElements=[];this.isFocusTrapActivated=!1}setIsFocusTrapActivated(a){this.isFocusTrapActivated=a}activateFocusTrap(){this.setIsFocusTrapActivated(!0),Oo.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),Oo.deactivate(this),this.focusTrapIndex=-1}hasNoClientRects(a){return a.getClientRects().length===0}hasZeroDimensions(a){let{width:h,height:p}=a.getBoundingClientRect(),{offsetWidth:g,offsetHeight:C}=a;return g+C+p+h===0}isNotVisible(a){return this.hasZeroDimensions(a)||this.hasNoClientRects(a)}hasHiddenStyle(a){let{display:h,opacity:p,visibility:g}=a.style;return h==="none"||p==="0"||g==="hidden"||g==="collapse"}hasComputedHidden(a){let h=getComputedStyle(a);return h.visibility==="hidden"||h.height==="0"||h.display==="none"}isHidden(a){return a.hasAttribute("hidden")||a.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(a)||this.isNotVisible(a)||this.hasComputedHidden(a)}isNotTabbable(a){return a.getAttribute("tabindex")==="-1"}isInteractiveElement(a){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(a.tagName)||a instanceof HTMLAnchorElement&&a.hasAttribute("href")||a instanceof HTMLInputElement&&a.type!=="hidden"||(a instanceof HTMLAudioElement||a instanceof HTMLVideoElement)&&a.hasAttribute("controls")||(a instanceof HTMLImageElement||a instanceof HTMLObjectElement)&&a.hasAttribute("usemap")||a.hasAttribute("tabindex")&&a.tabIndex>-1)}isFocusable(a){return this.isHidden(a)||this.isNotTabbable(a)?!1:this.isInteractiveElement(a)}findFocusable(a,h=new Set){return a instanceof HTMLElement&&this.isFocusable(a)&&h.add(a),Array.from(a.children).forEach(g=>{let C=g;this.isFocusable(C)&&h.add(C),C.shadowRoot?this.findFocusable(C.shadowRoot,h):C.tagName==="SLOT"?C.assignedElements({flatten:!0}).forEach(G=>{G instanceof HTMLElement&&this.findFocusable(G,h)}):this.findFocusable(C,h)}),[...h]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(a=0){this.setFocusableElements(),!(this.focusableElements.length===0||!this.focusTrap)&&this.focusableElements[a]&&(this.focusTrapIndex=a,this.focusableElements[a].focus({preventScroll:!0}))}calculateNextIndex(a,h){let{length:p}=this.focusableElements;if(a===-1)return h>0?0:p-1;let g=a+h;return this.shouldFocusTrapWrap?(g<0&&(g=p-1),g>=p&&(g=0)):(g<0&&(g=0),g>=p&&(g=p-1)),g}getDeepActiveElement(){var h;let a=document.activeElement||document.body;for(;a instanceof HTMLElement&&((h=a.shadowRoot)!=null&&h.activeElement);)a=a.shadowRoot.activeElement;return a||document.body}findElement(a){return this.focusableElements.findIndex(h=>this.isEqualFocusNode(a,h))}isEqualFocusNode(a,h){return a.nodeType>=0?h.isEqualNode(a)&&h===a:!1}trapFocus(a){if(this.setFocusableElements(),this.focusableElements.length===0)return;let h=this.getDeepActiveElement(),p=this.findElement(h);a?this.focusTrapIndex=this.calculateNextIndex(p,-1):this.focusTrapIndex=this.calculateNextIndex(p,1);let g=this.focusableElements[this.focusTrapIndex];g&&g.focus({preventScroll:!0})}handleTabKeydown(a){this.isFocusTrapActivated&&a.key==="Tab"&&(a.preventDefault(),this.trapFocus(a.shiftKey))}}return v([T({type:Boolean,reflect:!0,attribute:"should-focus-trap-wrap"})],o.prototype,"shouldFocusTrapWrap",2),o};var _n=l=>{class o extends l{constructor(){super(...arguments);this.isPreventScrollActive=!1;this.previousDocumentBodyStyleOverflow=""}activatePreventScroll(){this.preventScroll&&!this.isPreventScrollActive&&(this.isPreventScrollActive=!0,this.previousDocumentBodyStyleOverflow=document.body.style.overflow,document.body.style.overflow="hidden")}deactivatePreventScroll(){this.isPreventScrollActive&&(this.isPreventScrollActive=!1,document.body.style.overflow=this.previousDocumentBodyStyleOverflow)}}return o};var gm=W.constructTagName("popover"),Ht={LEFT_START:"left-start",LEFT:"left",LEFT_END:"left-end",RIGHT_START:"right-start",RIGHT:"right",RIGHT_END:"right-end",TOP_START:"top-start",TOP:"top",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM:"bottom",BOTTOM_END:"bottom-end"},zi={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},Vi={TONAL:"tonal",CONTRAST:"contrast"},Mt={PLACEMENT:Ht.BOTTOM,TRIGGER:zi.CLICK,COLOR:Vi.TONAL,OFFSET:4,VISIBLE:!1,ARROW:!1,CLOSE_BUTTON:!1,FOCUS_TRAP:!1,INTERACTIVE:!1,PREVENT_SCROLL:!1,HIDE_ON_ESCAPE:!1,HIDE_ON_BLUR:!1,HIDE_ON_CLICK_OUTSIDE:!1,FOCUS_BACK:!1,BACKDROP:!1,FLIP:!0,SIZE:!1,DELAY:"0,0",ROLE:"dialog",Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1,DISABLE_ARIA_HAS_POPUP:!1,PROPAGATE_EVENT_ON_ESCAPE:!1};var Bi=class{static dispatchPopoverEvent(o,e){e.dispatchEvent(new CustomEvent(o,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowPopover(o){this.dispatchPopoverEvent("shown",o)}static onHidePopover(o){this.dispatchPopoverEvent("hidden",o)}static onCreatedPopover(o){this.dispatchPopoverEvent("created",o)}static onDestroyedPopover(o){this.dispatchPopoverEvent("destroyed",o)}};var cc=class{constructor(){this.stack=[]}push(o){this.stack.push(o)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(o){this.stack=this.stack.filter(e=>e!==o)}clear(){this.stack=[]}},je=new cc;var jg=j`
|
1819
|
+
<span part="radio-icon" class="icon"></span>`}};Lo.styles=[...q.styles,...Vp],v([T({type:Boolean,reflect:!0})],Lo.prototype,"checked",2),v([T({type:Boolean,reflect:!0})],Lo.prototype,"readonly",2);var ic=Lo;var Bp=W.constructTagName("staticradio");ic.register(Bp);var xg=ic;rc.register(mn);var _g=rc;var br=Math.min,fe=Math.max,$s=Math.round,zs=Math.floor,ar=l=>({x:l,y:l}),Sg={left:"right",right:"left",bottom:"top",top:"bottom"},Ig={start:"end",end:"start"};function fn(l,o,e){return fe(l,br(o,e))}function Ri(l,o){return typeof l=="function"?l(o):l}function zr(l){return l.split("-")[0]}function Oi(l){return l.split("-")[1]}function oc(l){return l==="x"?"y":"x"}function vn(l){return l==="y"?"height":"width"}function li(l){return["top","bottom"].includes(zr(l))?"y":"x"}function gn(l){return oc(li(l))}function Up(l,o,e){e===void 0&&(e=!1);let s=Oi(l),a=gn(l),h=vn(a),p=a==="x"?s===(e?"end":"start")?"right":"left":s==="start"?"bottom":"top";return o.reference[h]>o.floating[h]&&(p=Fs(p)),[p,Fs(p)]}function Hp(l){let o=Fs(l);return[un(l),o,un(o)]}function un(l){return l.replace(/start|end/g,o=>Ig[o])}function kg(l,o,e){let s=["left","right"],a=["right","left"],h=["top","bottom"],p=["bottom","top"];switch(l){case"top":case"bottom":return e?o?a:s:o?s:a;case"left":case"right":return o?h:p;default:return[]}}function Gp(l,o,e,s){let a=Oi(l),h=kg(zr(l),e==="start",s);return a&&(h=h.map(p=>p+"-"+a),o&&(h=h.concat(h.map(un)))),h}function Fs(l){return l.replace(/left|right|bottom|top/g,o=>Sg[o])}function Cg(l){return{top:0,right:0,bottom:0,left:0,...l}}function sc(l){return typeof l!="number"?Cg(l):{top:l,right:l,bottom:l,left:l}}function Pi(l){let{x:o,y:e,width:s,height:a}=l;return{width:s,height:a,top:e,left:o,right:o+s,bottom:e+a,x:o,y:e}}function jp(l,o,e){let{reference:s,floating:a}=l,h=li(o),p=gn(o),g=vn(p),C=zr(o),F=h==="y",G=s.x+s.width/2-a.width/2,K=s.y+s.height/2-a.height/2,rt=s[g]/2-a[g]/2,J;switch(C){case"top":J={x:G,y:s.y-a.height};break;case"bottom":J={x:G,y:s.y+s.height};break;case"right":J={x:s.x+s.width,y:K};break;case"left":J={x:s.x-a.width,y:K};break;default:J={x:s.x,y:s.y}}switch(Oi(o)){case"start":J[p]-=rt*(e&&F?-1:1);break;case"end":J[p]+=rt*(e&&F?-1:1);break}return J}var Wp=async(l,o,e)=>{let{placement:s="bottom",strategy:a="absolute",middleware:h=[],platform:p}=e,g=h.filter(Boolean),C=await(p.isRTL==null?void 0:p.isRTL(o)),F=await p.getElementRects({reference:l,floating:o,strategy:a}),{x:G,y:K}=jp(F,s,C),rt=s,J={},tt=0;for(let ht=0;ht<g.length;ht++){let{name:Tt,fn:bt}=g[ht],{x:At,y:kt,data:Bt,reset:Rt}=await bt({x:G,y:K,initialPlacement:s,placement:rt,strategy:a,middlewareData:J,rects:F,platform:p,elements:{reference:l,floating:o}});G=At!=null?At:G,K=kt!=null?kt:K,J={...J,[Tt]:{...J[Tt],...Bt}},Rt&&tt<=50&&(tt++,typeof Rt=="object"&&(Rt.placement&&(rt=Rt.placement),Rt.rects&&(F=Rt.rects===!0?await p.getElementRects({reference:l,floating:o,strategy:a}):Rt.rects),{x:G,y:K}=jp(F,rt,C)),ht=-1)}return{x:G,y:K,placement:rt,strategy:a,middlewareData:J}};async function bn(l,o){var e;o===void 0&&(o={});let{x:s,y:a,platform:h,rects:p,elements:g,strategy:C}=l,{boundary:F="clippingAncestors",rootBoundary:G="viewport",elementContext:K="floating",altBoundary:rt=!1,padding:J=0}=Ri(o,l),tt=sc(J),Tt=g[rt?K==="floating"?"reference":"floating":K],bt=Pi(await h.getClippingRect({element:(e=await(h.isElement==null?void 0:h.isElement(Tt)))==null||e?Tt:Tt.contextElement||await(h.getDocumentElement==null?void 0:h.getDocumentElement(g.floating)),boundary:F,rootBoundary:G,strategy:C})),At=K==="floating"?{x:s,y:a,width:p.floating.width,height:p.floating.height}:p.reference,kt=await(h.getOffsetParent==null?void 0:h.getOffsetParent(g.floating)),Bt=await(h.isElement==null?void 0:h.isElement(kt))?await(h.getScale==null?void 0:h.getScale(kt))||{x:1,y:1}:{x:1,y:1},Rt=Pi(h.convertOffsetParentRelativeRectToViewportRelativeRect?await h.convertOffsetParentRelativeRectToViewportRelativeRect({elements:g,rect:At,offsetParent:kt,strategy:C}):At);return{top:(bt.top-Rt.top+tt.top)/Bt.y,bottom:(Rt.bottom-bt.bottom+tt.bottom)/Bt.y,left:(bt.left-Rt.left+tt.left)/Bt.x,right:(Rt.right-bt.right+tt.right)/Bt.x}}var Yp=l=>({name:"arrow",options:l,async fn(o){let{x:e,y:s,placement:a,rects:h,platform:p,elements:g,middlewareData:C}=o,{element:F,padding:G=0}=Ri(l,o)||{};if(F==null)return{};let K=sc(G),rt={x:e,y:s},J=gn(a),tt=vn(J),ht=await p.getDimensions(F),Tt=J==="y",bt=Tt?"top":"left",At=Tt?"bottom":"right",kt=Tt?"clientHeight":"clientWidth",Bt=h.reference[tt]+h.reference[J]-rt[J]-h.floating[tt],Rt=rt[J]-h.reference[J],Dt=await(p.getOffsetParent==null?void 0:p.getOffsetParent(F)),Ee=Dt?Dt[kt]:0;(!Ee||!await(p.isElement==null?void 0:p.isElement(Dt)))&&(Ee=g.floating[kt]||h.floating[tt]);let te=Bt/2-Rt/2,Ze=Ee/2-ht[tt]/2-1,Me=br(K[bt],Ze),Fe=br(K[At],Ze),Je=Me,Qe=Ee-ht[tt]-Fe,xt=Ee/2-ht[tt]/2+te,pe=fn(Je,xt,Qe),$e=!C.arrow&&Oi(a)!=null&&xt!==pe&&h.reference[tt]/2-(xt<Je?Me:Fe)-ht[tt]/2<0,tr=$e?xt<Je?xt-Je:xt-Qe:0;return{[J]:rt[J]+tr,data:{[J]:pe,centerOffset:xt-pe-tr,...$e&&{alignmentOffset:tr}},reset:$e}}});var qp=function(l){return l===void 0&&(l={}),{name:"flip",options:l,async fn(o){var e,s;let{placement:a,middlewareData:h,rects:p,initialPlacement:g,platform:C,elements:F}=o,{mainAxis:G=!0,crossAxis:K=!0,fallbackPlacements:rt,fallbackStrategy:J="bestFit",fallbackAxisSideDirection:tt="none",flipAlignment:ht=!0,...Tt}=Ri(l,o);if((e=h.arrow)!=null&&e.alignmentOffset)return{};let bt=zr(a),At=li(g),kt=zr(g)===g,Bt=await(C.isRTL==null?void 0:C.isRTL(F.floating)),Rt=rt||(kt||!ht?[Fs(g)]:Hp(g)),Dt=tt!=="none";!rt&&Dt&&Rt.push(...Gp(g,ht,tt,Bt));let Ee=[g,...Rt],te=await bn(o,Tt),Ze=[],Me=((s=h.flip)==null?void 0:s.overflows)||[];if(G&&Ze.push(te[bt]),K){let xt=Up(a,p,Bt);Ze.push(te[xt[0]],te[xt[1]])}if(Me=[...Me,{placement:a,overflows:Ze}],!Ze.every(xt=>xt<=0)){var Fe,Je;let xt=(((Fe=h.flip)==null?void 0:Fe.index)||0)+1,pe=Ee[xt];if(pe)return{data:{index:xt,overflows:Me},reset:{placement:pe}};let $e=(Je=Me.filter(tr=>tr.overflows[0]<=0).sort((tr,Tr)=>tr.overflows[1]-Tr.overflows[1])[0])==null?void 0:Je.placement;if(!$e)switch(J){case"bestFit":{var Qe;let tr=(Qe=Me.filter(Tr=>{if(Dt){let ze=li(Tr.placement);return ze===At||ze==="y"}return!0}).map(Tr=>[Tr.placement,Tr.overflows.filter(ze=>ze>0).reduce((ze,aa)=>ze+aa,0)]).sort((Tr,ze)=>Tr[1]-ze[1])[0])==null?void 0:Qe[0];tr&&($e=tr);break}case"initialPlacement":$e=g;break}if(a!==$e)return{reset:{placement:$e}}}return{}}}};async function wg(l,o){let{placement:e,platform:s,elements:a}=l,h=await(s.isRTL==null?void 0:s.isRTL(a.floating)),p=zr(e),g=Oi(e),C=li(e)==="y",F=["left","top"].includes(p)?-1:1,G=h&&C?-1:1,K=Ri(o,l),{mainAxis:rt,crossAxis:J,alignmentAxis:tt}=typeof K=="number"?{mainAxis:K,crossAxis:0,alignmentAxis:null}:{mainAxis:K.mainAxis||0,crossAxis:K.crossAxis||0,alignmentAxis:K.alignmentAxis};return g&&typeof tt=="number"&&(J=g==="end"?tt*-1:tt),C?{x:J*G,y:rt*F}:{x:rt*F,y:J*G}}var Kp=function(l){return l===void 0&&(l=0),{name:"offset",options:l,async fn(o){var e,s;let{x:a,y:h,placement:p,middlewareData:g}=o,C=await wg(o,l);return p===((e=g.offset)==null?void 0:e.placement)&&(s=g.arrow)!=null&&s.alignmentOffset?{}:{x:a+C.x,y:h+C.y,data:{...C,placement:p}}}}},Xp=function(l){return l===void 0&&(l={}),{name:"shift",options:l,async fn(o){let{x:e,y:s,placement:a}=o,{mainAxis:h=!0,crossAxis:p=!1,limiter:g={fn:Tt=>{let{x:bt,y:At}=Tt;return{x:bt,y:At}}},...C}=Ri(l,o),F={x:e,y:s},G=await bn(o,C),K=li(zr(a)),rt=oc(K),J=F[rt],tt=F[K];if(h){let Tt=rt==="y"?"top":"left",bt=rt==="y"?"bottom":"right",At=J+G[Tt],kt=J-G[bt];J=fn(At,J,kt)}if(p){let Tt=K==="y"?"top":"left",bt=K==="y"?"bottom":"right",At=tt+G[Tt],kt=tt-G[bt];tt=fn(At,tt,kt)}let ht=g.fn({...o,[rt]:J,[K]:tt});return{...ht,data:{x:ht.x-e,y:ht.y-s,enabled:{[rt]:h,[K]:p}}}}}};var Zp=function(l){return l===void 0&&(l={}),{name:"size",options:l,async fn(o){var e,s;let{placement:a,rects:h,platform:p,elements:g}=o,{apply:C=()=>{},...F}=Ri(l,o),G=await bn(o,F),K=zr(a),rt=Oi(a),J=li(a)==="y",{width:tt,height:ht}=h.floating,Tt,bt;K==="top"||K==="bottom"?(Tt=K,bt=rt===(await(p.isRTL==null?void 0:p.isRTL(g.floating))?"start":"end")?"left":"right"):(bt=K,Tt=rt==="end"?"top":"bottom");let At=ht-G.top-G.bottom,kt=tt-G.left-G.right,Bt=br(ht-G[Tt],At),Rt=br(tt-G[bt],kt),Dt=!o.middlewareData.shift,Ee=Bt,te=Rt;if((e=o.middlewareData.shift)!=null&&e.enabled.x&&(te=kt),(s=o.middlewareData.shift)!=null&&s.enabled.y&&(Ee=At),Dt&&!rt){let Me=fe(G.left,0),Fe=fe(G.right,0),Je=fe(G.top,0),Qe=fe(G.bottom,0);J?te=tt-2*(Me!==0||Fe!==0?Me+Fe:fe(G.left,G.right)):Ee=ht-2*(Je!==0||Qe!==0?Je+Qe:fe(G.top,G.bottom))}await C({...o,availableWidth:te,availableHeight:Ee});let Ze=await p.getDimensions(g.floating);return tt!==Ze.width||ht!==Ze.height?{reset:{rects:!0}}:{}}}};function yn(){return typeof window<"u"}function Di(l){return Qp(l)?(l.nodeName||"").toLowerCase():"#document"}function Ce(l){var o;return(l==null||(o=l.ownerDocument)==null?void 0:o.defaultView)||window}function nr(l){var o;return(o=(Qp(l)?l.ownerDocument:l.document)||window.document)==null?void 0:o.documentElement}function Qp(l){return yn()?l instanceof Node||l instanceof Ce(l).Node:!1}function He(l){return yn()?l instanceof Element||l instanceof Ce(l).Element:!1}function lr(l){return yn()?l instanceof HTMLElement||l instanceof Ce(l).HTMLElement:!1}function Jp(l){return!yn()||typeof ShadowRoot>"u"?!1:l instanceof ShadowRoot||l instanceof Ce(l).ShadowRoot}function Mo(l){let{overflow:o,overflowX:e,overflowY:s,display:a}=Ge(l);return/auto|scroll|overlay|hidden|clip/.test(o+s+e)&&!["inline","contents"].includes(a)}function tm(l){return["table","td","th"].includes(Di(l))}function Vs(l){return[":popover-open",":modal"].some(o=>{try{return l.matches(o)}catch{return!1}})}function En(l){let o=Tn(),e=He(l)?Ge(l):l;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!o&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!o&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(s=>(e.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(e.contain||"").includes(s))}function em(l){let o=Vr(l);for(;lr(o)&&!Fi(o);){if(En(o))return o;if(Vs(o))return null;o=Vr(o)}return null}function Tn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Fi(l){return["html","body","#document"].includes(Di(l))}function Ge(l){return Ce(l).getComputedStyle(l)}function Bs(l){return He(l)?{scrollLeft:l.scrollLeft,scrollTop:l.scrollTop}:{scrollLeft:l.scrollX,scrollTop:l.scrollY}}function Vr(l){if(Di(l)==="html")return l;let o=l.assignedSlot||l.parentNode||Jp(l)&&l.host||nr(l);return Jp(o)?o.host:o}function rm(l){let o=Vr(l);return Fi(o)?l.ownerDocument?l.ownerDocument.body:l.body:lr(o)&&Mo(o)?o:rm(o)}function No(l,o,e){var s;o===void 0&&(o=[]),e===void 0&&(e=!0);let a=rm(l),h=a===((s=l.ownerDocument)==null?void 0:s.body),p=Ce(a);if(h){let g=An(p);return o.concat(p,p.visualViewport||[],Mo(a)?a:[],g&&e?No(g):[])}return o.concat(a,No(a,[],e))}function An(l){return l.parent&&Object.getPrototypeOf(l.parent)?l.frameElement:null}function sm(l){let o=Ge(l),e=parseFloat(o.width)||0,s=parseFloat(o.height)||0,a=lr(l),h=a?l.offsetWidth:e,p=a?l.offsetHeight:s,g=$s(e)!==h||$s(s)!==p;return g&&(e=h,s=p),{width:e,height:s,$:g}}function nc(l){return He(l)?l:l.contextElement}function Ro(l){let o=nc(l);if(!lr(o))return ar(1);let e=o.getBoundingClientRect(),{width:s,height:a,$:h}=sm(o),p=(h?$s(e.width):e.width)/s,g=(h?$s(e.height):e.height)/a;return(!p||!Number.isFinite(p))&&(p=1),(!g||!Number.isFinite(g))&&(g=1),{x:p,y:g}}var Lg=ar(0);function am(l){let o=Ce(l);return!Tn()||!o.visualViewport?Lg:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function Ng(l,o,e){return o===void 0&&(o=!1),!e||o&&e!==Ce(l)?!1:o}function $i(l,o,e,s){o===void 0&&(o=!1),e===void 0&&(e=!1);let a=l.getBoundingClientRect(),h=nc(l),p=ar(1);o&&(s?He(s)&&(p=Ro(s)):p=Ro(l));let g=Ng(h,e,s)?am(h):ar(0),C=(a.left+g.x)/p.x,F=(a.top+g.y)/p.y,G=a.width/p.x,K=a.height/p.y;if(h){let rt=Ce(h),J=s&&He(s)?Ce(s):s,tt=rt,ht=An(tt);for(;ht&&s&&J!==tt;){let Tt=Ro(ht),bt=ht.getBoundingClientRect(),At=Ge(ht),kt=bt.left+(ht.clientLeft+parseFloat(At.paddingLeft))*Tt.x,Bt=bt.top+(ht.clientTop+parseFloat(At.paddingTop))*Tt.y;C*=Tt.x,F*=Tt.y,G*=Tt.x,K*=Tt.y,C+=kt,F+=Bt,tt=Ce(ht),ht=An(tt)}}return Pi({width:G,height:K,x:C,y:F})}function lc(l,o){let e=Bs(l).scrollLeft;return o?o.left+e:$i(nr(l)).left+e}function nm(l,o,e){e===void 0&&(e=!1);let s=l.getBoundingClientRect(),a=s.left+o.scrollLeft-(e?0:lc(l,s)),h=s.top+o.scrollTop;return{x:a,y:h}}function Mg(l){let{elements:o,rect:e,offsetParent:s,strategy:a}=l,h=a==="fixed",p=nr(s),g=o?Vs(o.floating):!1;if(s===p||g&&h)return e;let C={scrollLeft:0,scrollTop:0},F=ar(1),G=ar(0),K=lr(s);if((K||!K&&!h)&&((Di(s)!=="body"||Mo(p))&&(C=Bs(s)),lr(s))){let J=$i(s);F=Ro(s),G.x=J.x+s.clientLeft,G.y=J.y+s.clientTop}let rt=p&&!K&&!h?nm(p,C,!0):ar(0);return{width:e.width*F.x,height:e.height*F.y,x:e.x*F.x-C.scrollLeft*F.x+G.x+rt.x,y:e.y*F.y-C.scrollTop*F.y+G.y+rt.y}}function Rg(l){return Array.from(l.getClientRects())}function Og(l){let o=nr(l),e=Bs(l),s=l.ownerDocument.body,a=fe(o.scrollWidth,o.clientWidth,s.scrollWidth,s.clientWidth),h=fe(o.scrollHeight,o.clientHeight,s.scrollHeight,s.clientHeight),p=-e.scrollLeft+lc(l),g=-e.scrollTop;return Ge(s).direction==="rtl"&&(p+=fe(o.clientWidth,s.clientWidth)-a),{width:a,height:h,x:p,y:g}}function Pg(l,o){let e=Ce(l),s=nr(l),a=e.visualViewport,h=s.clientWidth,p=s.clientHeight,g=0,C=0;if(a){h=a.width,p=a.height;let F=Tn();(!F||F&&o==="fixed")&&(g=a.offsetLeft,C=a.offsetTop)}return{width:h,height:p,x:g,y:C}}function Dg(l,o){let e=$i(l,!0,o==="fixed"),s=e.top+l.clientTop,a=e.left+l.clientLeft,h=lr(l)?Ro(l):ar(1),p=l.clientWidth*h.x,g=l.clientHeight*h.y,C=a*h.x,F=s*h.y;return{width:p,height:g,x:C,y:F}}function im(l,o,e){let s;if(o==="viewport")s=Pg(l,e);else if(o==="document")s=Og(nr(l));else if(He(o))s=Dg(o,e);else{let a=am(l);s={x:o.x-a.x,y:o.y-a.y,width:o.width,height:o.height}}return Pi(s)}function lm(l,o){let e=Vr(l);return e===o||!He(e)||Fi(e)?!1:Ge(e).position==="fixed"||lm(e,o)}function Fg(l,o){let e=o.get(l);if(e)return e;let s=No(l,[],!1).filter(g=>He(g)&&Di(g)!=="body"),a=null,h=Ge(l).position==="fixed",p=h?Vr(l):l;for(;He(p)&&!Fi(p);){let g=Ge(p),C=En(p);!C&&g.position==="fixed"&&(a=null),(h?!C&&!a:!C&&g.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Mo(p)&&!C&&lm(l,p))?s=s.filter(G=>G!==p):a=g,p=Vr(p)}return o.set(l,s),s}function $g(l){let{element:o,boundary:e,rootBoundary:s,strategy:a}=l,p=[...e==="clippingAncestors"?Vs(o)?[]:Fg(o,this._c):[].concat(e),s],g=p[0],C=p.reduce((F,G)=>{let K=im(o,G,a);return F.top=fe(K.top,F.top),F.right=br(K.right,F.right),F.bottom=br(K.bottom,F.bottom),F.left=fe(K.left,F.left),F},im(o,g,a));return{width:C.right-C.left,height:C.bottom-C.top,x:C.left,y:C.top}}function zg(l){let{width:o,height:e}=sm(l);return{width:o,height:e}}function Vg(l,o,e){let s=lr(o),a=nr(o),h=e==="fixed",p=$i(l,!0,h,o),g={scrollLeft:0,scrollTop:0},C=ar(0);if(s||!s&&!h)if((Di(o)!=="body"||Mo(a))&&(g=Bs(o)),s){let rt=$i(o,!0,h,o);C.x=rt.x+o.clientLeft,C.y=rt.y+o.clientTop}else a&&(C.x=lc(a));let F=a&&!s&&!h?nm(a,g):ar(0),G=p.left+g.scrollLeft-C.x-F.x,K=p.top+g.scrollTop-C.y-F.y;return{x:G,y:K,width:p.width,height:p.height}}function ac(l){return Ge(l).position==="static"}function om(l,o){if(!lr(l)||Ge(l).position==="fixed")return null;if(o)return o(l);let e=l.offsetParent;return nr(l)===e&&(e=e.ownerDocument.body),e}function cm(l,o){let e=Ce(l);if(Vs(l))return e;if(!lr(l)){let a=Vr(l);for(;a&&!Fi(a);){if(He(a)&&!ac(a))return a;a=Vr(a)}return e}let s=om(l,o);for(;s&&tm(s)&&ac(s);)s=om(s,o);return s&&Fi(s)&&ac(s)&&!En(s)?e:s||em(l)||e}var Bg=async function(l){let o=this.getOffsetParent||cm,e=this.getDimensions,s=await e(l.floating);return{reference:Vg(l.reference,await o(l.floating),l.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function Ug(l){return Ge(l).direction==="rtl"}var Hg={convertOffsetParentRelativeRectToViewportRelativeRect:Mg,getDocumentElement:nr,getClippingRect:$g,getOffsetParent:cm,getElementRects:Bg,getClientRects:Rg,getDimensions:zg,getScale:Ro,isElement:He,isRTL:Ug};function Gg(l,o){let e=null,s,a=nr(l);function h(){var g;clearTimeout(s),(g=e)==null||g.disconnect(),e=null}function p(g,C){g===void 0&&(g=!1),C===void 0&&(C=1),h();let{left:F,top:G,width:K,height:rt}=l.getBoundingClientRect();if(g||o(),!K||!rt)return;let J=zs(G),tt=zs(a.clientWidth-(F+K)),ht=zs(a.clientHeight-(G+rt)),Tt=zs(F),At={rootMargin:-J+"px "+-tt+"px "+-ht+"px "+-Tt+"px",threshold:fe(0,br(1,C))||1},kt=!0;function Bt(Rt){let Dt=Rt[0].intersectionRatio;if(Dt!==C){if(!kt)return p();Dt?p(!1,Dt):s=setTimeout(()=>{p(!1,1e-7)},1e3)}kt=!1}try{e=new IntersectionObserver(Bt,{...At,root:a.ownerDocument})}catch{e=new IntersectionObserver(Bt,At)}e.observe(l)}return p(!0),h}function dm(l,o,e,s){s===void 0&&(s={});let{ancestorScroll:a=!0,ancestorResize:h=!0,elementResize:p=typeof ResizeObserver=="function",layoutShift:g=typeof IntersectionObserver=="function",animationFrame:C=!1}=s,F=nc(l),G=a||h?[...F?No(F):[],...No(o)]:[];G.forEach(bt=>{a&&bt.addEventListener("scroll",e,{passive:!0}),h&&bt.addEventListener("resize",e)});let K=F&&g?Gg(F,e):null,rt=-1,J=null;p&&(J=new ResizeObserver(bt=>{let[At]=bt;At&&At.target===F&&J&&(J.unobserve(o),cancelAnimationFrame(rt),rt=requestAnimationFrame(()=>{var kt;(kt=J)==null||kt.observe(o)})),e()}),F&&!C&&J.observe(F),J.observe(o));let tt,ht=C?$i(l):null;C&&Tt();function Tt(){let bt=$i(l);ht&&(bt.x!==ht.x||bt.y!==ht.y||bt.width!==ht.width||bt.height!==ht.height)&&e(),ht=bt,tt=requestAnimationFrame(Tt)}return e(),()=>{var bt;G.forEach(At=>{a&&At.removeEventListener("scroll",e),h&&At.removeEventListener("resize",e)}),K==null||K(),(bt=J)==null||bt.disconnect(),J=null,C&&cancelAnimationFrame(tt)}}var hm=Kp;var pm=Xp,mm=qp,um=Zp;var fm=Yp;var vm=(l,o,e)=>{let s=new Map,a={platform:Hg,...e},h={...a.platform,_c:s};return Wp(l,o,{...a,platform:h})};var Oo=class{static get stackArray(){return Array.from(this.stack)}static addKeydownListener(o){this.currentKeydownListener=o,document.addEventListener("keydown",o)}static removeKeydownListener(){this.currentKeydownListener&&document.removeEventListener("keydown",this.currentKeydownListener)}static activate(o){this.stackArray.forEach(e=>{e!==o&&e.setIsFocusTrapActivated(!1)}),this.stack.add(o),this.removeKeydownListener(),this.addKeydownListener(o.handleTabKeydown.bind(o))}static deactivate(o){if(this.stack.delete(o),this.removeKeydownListener(),this.stack.size>0){let e=this.stackArray.pop();e&&(e.setIsFocusTrapActivated(!0),this.addKeydownListener(e.handleTabKeydown.bind(e)))}}};Oo.stack=new Set,Oo.currentKeydownListener=null;var xn=l=>{class o extends l{constructor(){super(...arguments);this.shouldFocusTrapWrap=!0;this.focusTrapIndex=-1;this.focusableElements=[];this.isFocusTrapActivated=!1}setIsFocusTrapActivated(a){this.isFocusTrapActivated=a}activateFocusTrap(){this.setIsFocusTrapActivated(!0),Oo.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),Oo.deactivate(this),this.focusTrapIndex=-1}hasNoClientRects(a){return a.getClientRects().length===0}hasZeroDimensions(a){let{width:h,height:p}=a.getBoundingClientRect(),{offsetWidth:g,offsetHeight:C}=a;return g+C+p+h===0}isNotVisible(a){return this.hasZeroDimensions(a)||this.hasNoClientRects(a)}hasHiddenStyle(a){let{display:h,opacity:p,visibility:g}=a.style;return h==="none"||p==="0"||g==="hidden"||g==="collapse"}hasComputedHidden(a){let h=getComputedStyle(a);return h.visibility==="hidden"||h.height==="0"||h.display==="none"}isHidden(a){return a.hasAttribute("hidden")||a.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(a)||this.isNotVisible(a)||this.hasComputedHidden(a)}isDisabled(a){return a.disabled}isNotTabbable(a){return a.getAttribute("tabindex")==="-1"}isInteractiveElement(a){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(a.tagName)||a instanceof HTMLAnchorElement&&a.hasAttribute("href")||a instanceof HTMLInputElement&&a.type!=="hidden"||(a instanceof HTMLAudioElement||a instanceof HTMLVideoElement)&&a.hasAttribute("controls")||(a instanceof HTMLImageElement||a instanceof HTMLObjectElement)&&a.hasAttribute("usemap")||a.hasAttribute("tabindex")&&a.tabIndex>-1)}isFocusable(a){return this.isHidden(a)||this.isNotTabbable(a)||this.isDisabled(a)?!1:this.isInteractiveElement(a)}findFocusable(a,h=new Set){return a instanceof HTMLElement&&this.isFocusable(a)&&h.add(a),Array.from(a.children).forEach(g=>{let C=g;this.isFocusable(C)&&h.add(C),C.shadowRoot?this.findFocusable(C.shadowRoot,h):C.tagName==="SLOT"?C.assignedElements({flatten:!0}).forEach(G=>{G instanceof HTMLElement&&this.findFocusable(G,h)}):this.findFocusable(C,h)}),[...h]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(a=0){this.setFocusableElements(),!(this.focusableElements.length===0||!this.focusTrap)&&this.focusableElements[a]&&(this.focusTrapIndex=a,this.focusableElements[a].focus({preventScroll:!0}))}calculateNextIndex(a,h){let{length:p}=this.focusableElements;if(a===-1)return h>0?0:p-1;let g=a+h;return this.shouldFocusTrapWrap?(g<0&&(g=p-1),g>=p&&(g=0)):(g<0&&(g=0),g>=p&&(g=p-1)),g}getDeepActiveElement(){var h;let a=document.activeElement||document.body;for(;a instanceof HTMLElement&&((h=a.shadowRoot)!=null&&h.activeElement);)a=a.shadowRoot.activeElement;return a||document.body}findElement(a){return this.focusableElements.findIndex(h=>this.isEqualFocusNode(a,h))}isEqualFocusNode(a,h){return a.nodeType>=0?h.isEqualNode(a)&&h===a:!1}trapFocus(a){if(this.setFocusableElements(),this.focusableElements.length===0)return;let h=this.getDeepActiveElement(),p=this.findElement(h);a?this.focusTrapIndex=this.calculateNextIndex(p,-1):this.focusTrapIndex=this.calculateNextIndex(p,1);let g=this.focusableElements[this.focusTrapIndex];g&&g.focus({preventScroll:!0})}handleTabKeydown(a){this.isFocusTrapActivated&&a.key==="Tab"&&(a.preventDefault(),this.trapFocus(a.shiftKey))}}return v([T({type:Boolean,reflect:!0,attribute:"should-focus-trap-wrap"})],o.prototype,"shouldFocusTrapWrap",2),o};var _n=l=>{class o extends l{constructor(){super(...arguments);this.isPreventScrollActive=!1;this.previousDocumentBodyStyleOverflow=""}activatePreventScroll(){this.preventScroll&&!this.isPreventScrollActive&&(this.isPreventScrollActive=!0,this.previousDocumentBodyStyleOverflow=document.body.style.overflow,document.body.style.overflow="hidden")}deactivatePreventScroll(){this.isPreventScrollActive&&(this.isPreventScrollActive=!1,document.body.style.overflow=this.previousDocumentBodyStyleOverflow)}}return o};var gm=W.constructTagName("popover"),Ht={LEFT_START:"left-start",LEFT:"left",LEFT_END:"left-end",RIGHT_START:"right-start",RIGHT:"right",RIGHT_END:"right-end",TOP_START:"top-start",TOP:"top",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM:"bottom",BOTTOM_END:"bottom-end"},zi={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},Vi={TONAL:"tonal",CONTRAST:"contrast"},Mt={PLACEMENT:Ht.BOTTOM,TRIGGER:zi.CLICK,COLOR:Vi.TONAL,OFFSET:4,VISIBLE:!1,ARROW:!1,CLOSE_BUTTON:!1,FOCUS_TRAP:!1,INTERACTIVE:!1,PREVENT_SCROLL:!1,HIDE_ON_ESCAPE:!1,HIDE_ON_BLUR:!1,HIDE_ON_CLICK_OUTSIDE:!1,FOCUS_BACK:!1,BACKDROP:!1,FLIP:!0,SIZE:!1,DELAY:"0,0",ROLE:"dialog",Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1,DISABLE_ARIA_HAS_POPUP:!1,PROPAGATE_EVENT_ON_ESCAPE:!1};var Bi=class{static dispatchPopoverEvent(o,e){e.dispatchEvent(new CustomEvent(o,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowPopover(o){this.dispatchPopoverEvent("shown",o)}static onHidePopover(o){this.dispatchPopoverEvent("hidden",o)}static onCreatedPopover(o){this.dispatchPopoverEvent("created",o)}static onDestroyedPopover(o){this.dispatchPopoverEvent("destroyed",o)}};var cc=class{constructor(){this.stack=[]}push(o){this.stack.push(o)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(o){this.stack=this.stack.filter(e=>e!==o)}clear(){this.stack=[]}},je=new cc;var jg=j`
|
1820
1820
|
:host {
|
1821
1821
|
--mdc-popover-arrow-border-radius: 0.1875rem;
|
1822
1822
|
--mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
|