@momentum-design/components 0.120.1 → 0.120.3

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.
Files changed (79) hide show
  1. package/dist/browser/index.js +71 -70
  2. package/dist/browser/index.js.map +2 -2
  3. package/dist/components/checkbox/checkbox.component.d.ts +11 -0
  4. package/dist/components/checkbox/checkbox.component.js +11 -0
  5. package/dist/components/combobox/combobox.component.d.ts +9 -1
  6. package/dist/components/combobox/combobox.component.js +10 -3
  7. package/dist/components/combobox/combobox.styles.js +1 -1
  8. package/dist/components/formfieldgroup/formfieldgroup.component.d.ts +11 -0
  9. package/dist/components/formfieldgroup/formfieldgroup.component.js +11 -0
  10. package/dist/components/formfieldwrapper/formfieldwrapper.component.d.ts +9 -0
  11. package/dist/components/formfieldwrapper/formfieldwrapper.component.js +9 -0
  12. package/dist/components/input/input.component.d.ts +14 -0
  13. package/dist/components/input/input.component.js +18 -6
  14. package/dist/components/input/input.styles.js +32 -32
  15. package/dist/components/password/password.component.d.ts +12 -0
  16. package/dist/components/password/password.component.js +12 -0
  17. package/dist/components/popover/popover.component.js +2 -2
  18. package/dist/components/popover/popover.portal.component.js +1 -0
  19. package/dist/components/popover/popover.styles.js +1 -1
  20. package/dist/components/progressbar/progressbar.component.d.ts +6 -0
  21. package/dist/components/progressbar/progressbar.component.js +6 -0
  22. package/dist/components/radio/radio.component.d.ts +10 -0
  23. package/dist/components/radio/radio.component.js +10 -0
  24. package/dist/components/searchfield/searchfield.component.d.ts +8 -0
  25. package/dist/components/searchfield/searchfield.component.js +8 -1
  26. package/dist/components/select/select.component.d.ts +15 -0
  27. package/dist/components/select/select.component.js +15 -0
  28. package/dist/components/staticcheckbox/staticcheckbox.component.d.ts +3 -0
  29. package/dist/components/staticcheckbox/staticcheckbox.component.js +4 -1
  30. package/dist/components/staticcheckbox/staticcheckbox.styles.js +4 -3
  31. package/dist/components/staticradio/staticradio.component.d.ts +4 -0
  32. package/dist/components/staticradio/staticradio.component.js +5 -1
  33. package/dist/components/staticradio/staticradio.styles.js +13 -13
  34. package/dist/components/statictoggle/statictoggle.component.d.ts +5 -0
  35. package/dist/components/statictoggle/statictoggle.component.js +6 -1
  36. package/dist/components/statictoggle/statictoggle.styles.js +7 -4
  37. package/dist/components/textarea/textarea.component.d.ts +11 -0
  38. package/dist/components/textarea/textarea.component.js +11 -0
  39. package/dist/components/toast/toast.component.d.ts +1 -0
  40. package/dist/components/toast/toast.component.js +2 -1
  41. package/dist/components/toast/toast.styles.js +1 -1
  42. package/dist/components/toggle/toggle.component.d.ts +11 -0
  43. package/dist/components/toggle/toggle.component.js +11 -0
  44. package/dist/custom-elements.json +7324 -6196
  45. package/dist/react/checkbox/index.d.ts +11 -0
  46. package/dist/react/checkbox/index.js +11 -0
  47. package/dist/react/combobox/index.d.ts +9 -1
  48. package/dist/react/combobox/index.js +9 -1
  49. package/dist/react/formfieldgroup/index.d.ts +11 -0
  50. package/dist/react/formfieldgroup/index.js +11 -0
  51. package/dist/react/formfieldwrapper/index.d.ts +9 -0
  52. package/dist/react/formfieldwrapper/index.js +9 -0
  53. package/dist/react/index.d.ts +1 -1
  54. package/dist/react/index.js +1 -1
  55. package/dist/react/input/index.d.ts +14 -0
  56. package/dist/react/input/index.js +14 -0
  57. package/dist/react/password/index.d.ts +12 -0
  58. package/dist/react/password/index.js +12 -0
  59. package/dist/react/progressbar/index.d.ts +6 -0
  60. package/dist/react/progressbar/index.js +6 -0
  61. package/dist/react/radio/index.d.ts +10 -0
  62. package/dist/react/radio/index.js +10 -0
  63. package/dist/react/searchfield/index.d.ts +8 -0
  64. package/dist/react/searchfield/index.js +8 -0
  65. package/dist/react/select/index.d.ts +15 -0
  66. package/dist/react/select/index.js +15 -0
  67. package/dist/react/staticcheckbox/index.d.ts +3 -0
  68. package/dist/react/staticcheckbox/index.js +3 -0
  69. package/dist/react/staticradio/index.d.ts +4 -0
  70. package/dist/react/staticradio/index.js +4 -0
  71. package/dist/react/statictoggle/index.d.ts +5 -0
  72. package/dist/react/statictoggle/index.js +5 -0
  73. package/dist/react/textarea/index.d.ts +11 -0
  74. package/dist/react/textarea/index.js +11 -0
  75. package/dist/react/toast/index.d.ts +1 -0
  76. package/dist/react/toast/index.js +1 -0
  77. package/dist/react/toggle/index.d.ts +11 -0
  78. package/dist/react/toggle/index.js +11 -0
  79. package/package.json +1 -1
@@ -2279,23 +2279,24 @@
2279
2279
  border-radius: 0.125rem;
2280
2280
  }
2281
2281
 
2282
- .icon {
2282
+ :host::part(checkbox-icon) {
2283
2283
  --mdc-icon-fill-color: var(--mdc-staticcheckbox-icon-color);
2284
2284
  }
2285
2285
 
2286
- :host([disabled]) .icon {
2286
+ :host([disabled])::part(checkbox-icon) {
2287
2287
  --mdc-icon-fill-color: var(--mdc-staticcheckbox-disabled-icon-color);
2288
2288
  }
2289
2289
 
2290
2290
  /* High Contrast Mode */
2291
2291
  @media (forced-colors: active) {
2292
- :host([checked])::part(icon-container) :host([indeterminate])::part(icon-container) {
2292
+ :host([checked])::part(icon-container),
2293
+ :host([indeterminate])::part(icon-container) {
2293
2294
  border: 0.0625rem solid var(--mdc-staticcheckbox-border-color);
2294
2295
  }
2295
2296
  }
2296
2297
  `],zu=xE;var Vu=V.constructTagName("checkbox"),Cl={CHECKED:"check-bold",INDETERMINATE:"minus-bold"};var Bu=V.constructTagName("staticcheckbox");var ps=class extends zt(K){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1}render(){let t=this.checked||this.indeterminate?_`
2297
2298
  <mdc-icon
2298
- class="icon"
2299
+ part="checkbox-icon"
2299
2300
  name="${this.indeterminate?Cl.INDETERMINATE:Cl.CHECKED}"
2300
2301
  size="1"
2301
2302
  length-unit="rem"
@@ -2386,30 +2387,30 @@
2386
2387
  --mdc-staticradio-control-active-disabled-background: var(--mds-color-theme-control-active-disabled);
2387
2388
  }
2388
2389
 
2389
- .icon:after {
2390
+ .radio-icon:after {
2390
2391
  content: '';
2391
2392
  position: absolute;
2392
2393
  display: none;
2393
2394
  }
2394
2395
 
2395
- :host([disabled]) .icon,
2396
- :host([disabled][readonly]) .icon {
2396
+ :host([disabled])::part(radio-icon),
2397
+ :host([disabled][readonly])::part(radio-icon) {
2397
2398
  border-color: var(--mdc-staticradio-disabled-border-color);
2398
2399
  background: var(--mdc-staticradio-control-inactive-disabled-background);
2399
2400
  }
2400
2401
 
2401
- :host([disabled][checked]) .icon,
2402
- :host([disabled][readonly][checked]) .icon {
2402
+ :host([disabled][checked])::part(radio-icon),
2403
+ :host([disabled][readonly][checked])::part(radio-icon) {
2403
2404
  border: var(--mdc-staticradio-control-active-disabled-background);
2404
2405
  background: var(--mdc-staticradio-control-active-disabled-background);
2405
2406
  }
2406
2407
 
2407
- :host([disabled][checked]) .icon:after,
2408
- :host([disabled][readonly][checked]) .icon:after {
2408
+ :host([disabled][checked]) .radio-icon:after,
2409
+ :host([disabled][readonly][checked]) .radio-icon:after {
2409
2410
  background: var(--mdc-staticradio-inner-circle-disabled-background);
2410
2411
  }
2411
2412
 
2412
- .icon {
2413
+ :host::part(radio-icon) {
2413
2414
  position: absolute;
2414
2415
  top: 0;
2415
2416
  left: 0;
@@ -2420,12 +2421,12 @@
2420
2421
  border-radius: 50%;
2421
2422
  }
2422
2423
 
2423
- :host([checked]) .icon {
2424
+ :host([checked])::part(radio-icon) {
2424
2425
  border-color: var(--mdc-staticradio-control-active-color);
2425
2426
  background-color: var(--mdc-staticradio-control-active-color);
2426
2427
  }
2427
2428
 
2428
- :host([checked]) .icon:after {
2429
+ :host([checked]) .radio-icon:after {
2429
2430
  display: block;
2430
2431
  top: 50%;
2431
2432
  left: 50%;
@@ -2436,20 +2437,20 @@
2436
2437
  background: var(--mdc-staticradio-inner-circle-normal-background);
2437
2438
  }
2438
2439
 
2439
- :host([readonly]) .icon {
2440
+ :host([readonly])::part(radio-icon) {
2440
2441
  border-color: var(--mdc-staticradio-normal-border-color);
2441
2442
  background-color: var(--mdc-staticradio-control-inactive-color);
2442
2443
  }
2443
2444
 
2444
- :host([readonly][checked]) .icon {
2445
+ :host([readonly][checked])::part(radio-icon) {
2445
2446
  border-color: var(--mdc-staticradio-normal-border-color);
2446
2447
  }
2447
2448
 
2448
- :host([readonly][checked]) .icon:after {
2449
+ :host([readonly][checked]) .radio-icon:after {
2449
2450
  background-color: var(--mdc-staticradio-text-disabled-color);
2450
2451
  }
2451
2452
  `],Hu=IE;var us=class extends zt(K){constructor(){super(...arguments);this.checked=!1;this.readonly=!1}render(){return _` <slot></slot>
2452
- <span part="radio-icon" class="icon"></span>`}};us.styles=[...K.styles,...Hu],p([u({type:Boolean,reflect:!0})],us.prototype,"checked",2),p([u({type:Boolean,reflect:!0})],us.prototype,"readonly",2);var kc=us;var Gu=V.constructTagName("staticradio");kc.register(Gu);var CE=kc;Cc.register(kl);var kE=Cc;var Fr=Math.min,_e=Math.max,Ma=Math.round,Ra=Math.floor,Tr=n=>({x:n,y:n}),wE={left:"right",right:"left",bottom:"top",top:"bottom"},NE={start:"end",end:"start"};function Nl(n,o,t){return _e(n,Fr(o,t))}function uo(n,o){return typeof n=="function"?n(o):n}function ni(n){return n.split("-")[0]}function fo(n){return n.split("-")[1]}function wc(n){return n==="x"?"y":"x"}function Ll(n){return n==="y"?"height":"width"}var LE=new Set(["top","bottom"]);function zr(n){return LE.has(ni(n))?"y":"x"}function Ml(n){return wc(zr(n))}function ju(n,o,t){t===void 0&&(t=!1);let i=fo(n),a=Ml(n),d=Ll(a),m=a==="x"?i===(t?"end":"start")?"right":"left":i==="start"?"bottom":"top";return o.reference[d]>o.floating[d]&&(m=La(m)),[m,La(m)]}function Ku(n){let o=La(n);return[wl(n),o,wl(o)]}function wl(n){return n.replace(/start|end/g,o=>NE[o])}var Yu=["left","right"],Wu=["right","left"],ME=["top","bottom"],RE=["bottom","top"];function OE(n,o,t){switch(n){case"top":case"bottom":return t?o?Wu:Yu:o?Yu:Wu;case"left":case"right":return o?ME:RE;default:return[]}}function qu(n,o,t,i){let a=fo(n),d=OE(ni(n),t==="start",i);return a&&(d=d.map(m=>m+"-"+a),o&&(d=d.concat(d.map(wl)))),d}function La(n){return n.replace(/left|right|bottom|top/g,o=>wE[o])}function PE(n){return{top:0,right:0,bottom:0,left:0,...n}}function Nc(n){return typeof n!="number"?PE(n):{top:n,right:n,bottom:n,left:n}}function vo(n){let{x:o,y:t,width:i,height:a}=n;return{width:i,height:a,top:t,left:o,right:o+i,bottom:t+a,x:o,y:t}}function Xu(n,o,t){let{reference:i,floating:a}=n,d=zr(o),m=Ml(o),b=Ll(m),C=ni(o),L=d==="y",W=i.x+i.width/2-a.width/2,q=i.y+i.height/2-a.height/2,it=i[b]/2-a[b]/2,X;switch(C){case"top":X={x:W,y:i.y-a.height};break;case"bottom":X={x:W,y:i.y+i.height};break;case"right":X={x:i.x+i.width,y:q};break;case"left":X={x:i.x-a.width,y:q};break;default:X={x:i.x,y:i.y}}switch(fo(o)){case"start":X[m]-=it*(t&&L?-1:1);break;case"end":X[m]+=it*(t&&L?-1:1);break}return X}var Zu=async(n,o,t)=>{let{placement:i="bottom",strategy:a="absolute",middleware:d=[],platform:m}=t,b=d.filter(Boolean),C=await(m.isRTL==null?void 0:m.isRTL(o)),L=await m.getElementRects({reference:n,floating:o,strategy:a}),{x:W,y:q}=Xu(L,i,C),it=i,X={},tt=0;for(let lt=0;lt<b.length;lt++){let{name:dt,fn:vt}=b[lt],{x:At,y:wt,data:Wt,reset:$t}=await vt({x:W,y:q,initialPlacement:i,placement:it,strategy:a,middlewareData:X,rects:L,platform:m,elements:{reference:n,floating:o}});W=At!=null?At:W,q=wt!=null?wt:q,X={...X,[dt]:{...X[dt],...Wt}},$t&&tt<=50&&(tt++,typeof $t=="object"&&($t.placement&&(it=$t.placement),$t.rects&&(L=$t.rects===!0?await m.getElementRects({reference:n,floating:o,strategy:a}):$t.rects),{x:W,y:q}=Xu(L,it,C)),lt=-1)}return{x:W,y:q,placement:it,strategy:a,middlewareData:X}};async function Rl(n,o){var t;o===void 0&&(o={});let{x:i,y:a,platform:d,rects:m,elements:b,strategy:C}=n,{boundary:L="clippingAncestors",rootBoundary:W="viewport",elementContext:q="floating",altBoundary:it=!1,padding:X=0}=uo(o,n),tt=Nc(X),dt=b[it?q==="floating"?"reference":"floating":q],vt=vo(await d.getClippingRect({element:(t=await(d.isElement==null?void 0:d.isElement(dt)))==null||t?dt:dt.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(b.floating)),boundary:L,rootBoundary:W,strategy:C})),At=q==="floating"?{x:i,y:a,width:m.floating.width,height:m.floating.height}:m.reference,wt=await(d.getOffsetParent==null?void 0:d.getOffsetParent(b.floating)),Wt=await(d.isElement==null?void 0:d.isElement(wt))?await(d.getScale==null?void 0:d.getScale(wt))||{x:1,y:1}:{x:1,y:1},$t=vo(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:b,rect:At,offsetParent:wt,strategy:C}):At);return{top:(vt.top-$t.top+tt.top)/Wt.y,bottom:($t.bottom-vt.bottom+tt.bottom)/Wt.y,left:(vt.left-$t.left+tt.left)/Wt.x,right:($t.right-vt.right+tt.right)/Wt.x}}var Qu=n=>({name:"arrow",options:n,async fn(o){let{x:t,y:i,placement:a,rects:d,platform:m,elements:b,middlewareData:C}=o,{element:L,padding:W=0}=uo(n,o)||{};if(L==null)return{};let q=Nc(W),it={x:t,y:i},X=Ml(a),tt=Ll(X),lt=await m.getDimensions(L),dt=X==="y",vt=dt?"top":"left",At=dt?"bottom":"right",wt=dt?"clientHeight":"clientWidth",Wt=d.reference[tt]+d.reference[X]-it[X]-d.floating[tt],$t=it[X]-d.reference[X],Bt=await(m.getOffsetParent==null?void 0:m.getOffsetParent(L)),Zt=Bt?Bt[wt]:0;(!Zt||!await(m.isElement==null?void 0:m.isElement(Bt)))&&(Zt=b.floating[wt]||d.floating[tt]);let le=Wt/2-$t/2,ur=Zt/2-lt[tt]/2-1,we=Fr(q[vt],ur),je=Fr(q[At],ur),fr=we,vr=Zt-lt[tt]-je,Ct=Zt/2-lt[tt]/2+le,pe=Nl(fr,Ct,vr),Ke=!C.arrow&&fo(a)!=null&&Ct!==pe&&d.reference[tt]/2-(Ct<fr?we:je)-lt[tt]/2<0,qe=Ke?Ct<fr?Ct-fr:Ct-vr:0;return{[X]:it[X]+qe,data:{[X]:pe,centerOffset:Ct-pe-qe,...Ke&&{alignmentOffset:qe}},reset:Ke}}});var Ju=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(o){var t,i;let{placement:a,middlewareData:d,rects:m,initialPlacement:b,platform:C,elements:L}=o,{mainAxis:W=!0,crossAxis:q=!0,fallbackPlacements:it,fallbackStrategy:X="bestFit",fallbackAxisSideDirection:tt="none",flipAlignment:lt=!0,...dt}=uo(n,o);if((t=d.arrow)!=null&&t.alignmentOffset)return{};let vt=ni(a),At=zr(b),wt=ni(b)===b,Wt=await(C.isRTL==null?void 0:C.isRTL(L.floating)),$t=it||(wt||!lt?[La(b)]:Ku(b)),Bt=tt!=="none";!it&&Bt&&$t.push(...qu(b,lt,tt,Wt));let Zt=[b,...$t],le=await Rl(o,dt),ur=[],we=((i=d.flip)==null?void 0:i.overflows)||[];if(W&&ur.push(le[vt]),q){let Ct=ju(a,m,Wt);ur.push(le[Ct[0]],le[Ct[1]])}if(we=[...we,{placement:a,overflows:ur}],!ur.every(Ct=>Ct<=0)){var je,fr;let Ct=(((je=d.flip)==null?void 0:je.index)||0)+1,pe=Zt[Ct];if(pe&&(!(q==="alignment"?At!==zr(pe):!1)||we.every(Xe=>Xe.overflows[0]>0&&zr(Xe.placement)===At)))return{data:{index:Ct,overflows:we},reset:{placement:pe}};let Ke=(fr=we.filter(qe=>qe.overflows[0]<=0).sort((qe,Xe)=>qe.overflows[1]-Xe.overflows[1])[0])==null?void 0:fr.placement;if(!Ke)switch(X){case"bestFit":{var vr;let qe=(vr=we.filter(Xe=>{if(Bt){let Ze=zr(Xe.placement);return Ze===At||Ze==="y"}return!0}).map(Xe=>[Xe.placement,Xe.overflows.filter(Ze=>Ze>0).reduce((Ze,mn)=>Ze+mn,0)]).sort((Xe,Ze)=>Xe[1]-Ze[1])[0])==null?void 0:vr[0];qe&&(Ke=qe);break}case"initialPlacement":Ke=b;break}if(a!==Ke)return{reset:{placement:Ke}}}return{}}}};var DE=new Set(["left","top"]);async function $E(n,o){let{placement:t,platform:i,elements:a}=n,d=await(i.isRTL==null?void 0:i.isRTL(a.floating)),m=ni(t),b=fo(t),C=zr(t)==="y",L=DE.has(m)?-1:1,W=d&&C?-1:1,q=uo(o,n),{mainAxis:it,crossAxis:X,alignmentAxis:tt}=typeof q=="number"?{mainAxis:q,crossAxis:0,alignmentAxis:null}:{mainAxis:q.mainAxis||0,crossAxis:q.crossAxis||0,alignmentAxis:q.alignmentAxis};return b&&typeof tt=="number"&&(X=b==="end"?tt*-1:tt),C?{x:X*W,y:it*L}:{x:it*L,y:X*W}}var tf=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(o){var t,i;let{x:a,y:d,placement:m,middlewareData:b}=o,C=await $E(o,n);return m===((t=b.offset)==null?void 0:t.placement)&&(i=b.arrow)!=null&&i.alignmentOffset?{}:{x:a+C.x,y:d+C.y,data:{...C,placement:m}}}}},ef=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(o){let{x:t,y:i,placement:a}=o,{mainAxis:d=!0,crossAxis:m=!1,limiter:b={fn:dt=>{let{x:vt,y:At}=dt;return{x:vt,y:At}}},...C}=uo(n,o),L={x:t,y:i},W=await Rl(o,C),q=zr(ni(a)),it=wc(q),X=L[it],tt=L[q];if(d){let dt=it==="y"?"top":"left",vt=it==="y"?"bottom":"right",At=X+W[dt],wt=X-W[vt];X=Nl(At,X,wt)}if(m){let dt=q==="y"?"top":"left",vt=q==="y"?"bottom":"right",At=tt+W[dt],wt=tt-W[vt];tt=Nl(At,tt,wt)}let lt=b.fn({...o,[it]:X,[q]:tt});return{...lt,data:{x:lt.x-t,y:lt.y-i,enabled:{[it]:d,[q]:m}}}}}};var rf=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(o){var t,i;let{placement:a,rects:d,platform:m,elements:b}=o,{apply:C=()=>{},...L}=uo(n,o),W=await Rl(o,L),q=ni(a),it=fo(a),X=zr(a)==="y",{width:tt,height:lt}=d.floating,dt,vt;q==="top"||q==="bottom"?(dt=q,vt=it===(await(m.isRTL==null?void 0:m.isRTL(b.floating))?"start":"end")?"left":"right"):(vt=q,dt=it==="end"?"top":"bottom");let At=lt-W.top-W.bottom,wt=tt-W.left-W.right,Wt=Fr(lt-W[dt],At),$t=Fr(tt-W[vt],wt),Bt=!o.middlewareData.shift,Zt=Wt,le=$t;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(le=wt),(i=o.middlewareData.shift)!=null&&i.enabled.y&&(Zt=At),Bt&&!it){let we=_e(W.left,0),je=_e(W.right,0),fr=_e(W.top,0),vr=_e(W.bottom,0);X?le=tt-2*(we!==0||je!==0?we+je:_e(W.left,W.right)):Zt=lt-2*(fr!==0||vr!==0?fr+vr:_e(W.top,W.bottom))}await C({...o,availableWidth:le,availableHeight:Zt});let ur=await m.getDimensions(b.floating);return tt!==ur.width||lt!==ur.height?{reset:{rects:!0}}:{}}}};function Ol(){return typeof window<"u"}function go(n){return sf(n)?(n.nodeName||"").toLowerCase():"#document"}function $e(n){var o;return(n==null||(o=n.ownerDocument)==null?void 0:o.defaultView)||window}function xr(n){var o;return(o=(sf(n)?n.ownerDocument:n.document)||window.document)==null?void 0:o.documentElement}function sf(n){return Ol()?n instanceof Node||n instanceof $e(n).Node:!1}function ar(n){return Ol()?n instanceof Element||n instanceof $e(n).Element:!1}function Ar(n){return Ol()?n instanceof HTMLElement||n instanceof $e(n).HTMLElement:!1}function of(n){return!Ol()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof $e(n).ShadowRoot}var FE=new Set(["inline","contents"]);function vs(n){let{overflow:o,overflowX:t,overflowY:i,display:a}=nr(n);return/auto|scroll|overlay|hidden|clip/.test(o+i+t)&&!FE.has(a)}var zE=new Set(["table","td","th"]);function af(n){return zE.has(go(n))}var VE=[":popover-open",":modal"];function Oa(n){return VE.some(o=>{try{return n.matches(o)}catch{return!1}})}var BE=["transform","translate","scale","rotate","perspective"],UE=["transform","translate","scale","rotate","perspective","filter"],HE=["paint","layout","strict","content"];function Pl(n){let o=Dl(),t=ar(n)?nr(n):n;return BE.some(i=>t[i]?t[i]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!o&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!o&&(t.filter?t.filter!=="none":!1)||UE.some(i=>(t.willChange||"").includes(i))||HE.some(i=>(t.contain||"").includes(i))}function nf(n){let o=li(n);for(;Ar(o)&&!bo(o);){if(Pl(o))return o;if(Oa(o))return null;o=li(o)}return null}function Dl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var GE=new Set(["html","body","#document"]);function bo(n){return GE.has(go(n))}function nr(n){return $e(n).getComputedStyle(n)}function Pa(n){return ar(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function li(n){if(go(n)==="html")return n;let o=n.assignedSlot||n.parentNode||of(n)&&n.host||xr(n);return of(o)?o.host:o}function lf(n){let o=li(n);return bo(o)?n.ownerDocument?n.ownerDocument.body:n.body:Ar(o)&&vs(o)?o:lf(o)}function fs(n,o,t){var i;o===void 0&&(o=[]),t===void 0&&(t=!0);let a=lf(n),d=a===((i=n.ownerDocument)==null?void 0:i.body),m=$e(a);if(d){let b=$l(m);return o.concat(m,m.visualViewport||[],vs(a)?a:[],b&&t?fs(b):[])}return o.concat(a,fs(a,[],t))}function $l(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function hf(n){let o=nr(n),t=parseFloat(o.width)||0,i=parseFloat(o.height)||0,a=Ar(n),d=a?n.offsetWidth:t,m=a?n.offsetHeight:i,b=Ma(t)!==d||Ma(i)!==m;return b&&(t=d,i=m),{width:t,height:i,$:b}}function Mc(n){return ar(n)?n:n.contextElement}function gs(n){let o=Mc(n);if(!Ar(o))return Tr(1);let t=o.getBoundingClientRect(),{width:i,height:a,$:d}=hf(o),m=(d?Ma(t.width):t.width)/i,b=(d?Ma(t.height):t.height)/a;return(!m||!Number.isFinite(m))&&(m=1),(!b||!Number.isFinite(b))&&(b=1),{x:m,y:b}}var YE=Tr(0);function pf(n){let o=$e(n);return!Dl()||!o.visualViewport?YE:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function WE(n,o,t){return o===void 0&&(o=!1),!t||o&&t!==$e(n)?!1:o}function yo(n,o,t,i){o===void 0&&(o=!1),t===void 0&&(t=!1);let a=n.getBoundingClientRect(),d=Mc(n),m=Tr(1);o&&(i?ar(i)&&(m=gs(i)):m=gs(n));let b=WE(d,t,i)?pf(d):Tr(0),C=(a.left+b.x)/m.x,L=(a.top+b.y)/m.y,W=a.width/m.x,q=a.height/m.y;if(d){let it=$e(d),X=i&&ar(i)?$e(i):i,tt=it,lt=$l(tt);for(;lt&&i&&X!==tt;){let dt=gs(lt),vt=lt.getBoundingClientRect(),At=nr(lt),wt=vt.left+(lt.clientLeft+parseFloat(At.paddingLeft))*dt.x,Wt=vt.top+(lt.clientTop+parseFloat(At.paddingTop))*dt.y;C*=dt.x,L*=dt.y,W*=dt.x,q*=dt.y,C+=wt,L+=Wt,tt=$e(lt),lt=$l(tt)}}return vo({width:W,height:q,x:C,y:L})}function Rc(n,o){let t=Pa(n).scrollLeft;return o?o.left+t:yo(xr(n)).left+t}function mf(n,o,t){t===void 0&&(t=!1);let i=n.getBoundingClientRect(),a=i.left+o.scrollLeft-(t?0:Rc(n,i)),d=i.top+o.scrollTop;return{x:a,y:d}}function jE(n){let{elements:o,rect:t,offsetParent:i,strategy:a}=n,d=a==="fixed",m=xr(i),b=o?Oa(o.floating):!1;if(i===m||b&&d)return t;let C={scrollLeft:0,scrollTop:0},L=Tr(1),W=Tr(0),q=Ar(i);if((q||!q&&!d)&&((go(i)!=="body"||vs(m))&&(C=Pa(i)),Ar(i))){let X=yo(i);L=gs(i),W.x=X.x+i.clientLeft,W.y=X.y+i.clientTop}let it=m&&!q&&!d?mf(m,C,!0):Tr(0);return{width:t.width*L.x,height:t.height*L.y,x:t.x*L.x-C.scrollLeft*L.x+W.x+it.x,y:t.y*L.y-C.scrollTop*L.y+W.y+it.y}}function KE(n){return Array.from(n.getClientRects())}function qE(n){let o=xr(n),t=Pa(n),i=n.ownerDocument.body,a=_e(o.scrollWidth,o.clientWidth,i.scrollWidth,i.clientWidth),d=_e(o.scrollHeight,o.clientHeight,i.scrollHeight,i.clientHeight),m=-t.scrollLeft+Rc(n),b=-t.scrollTop;return nr(i).direction==="rtl"&&(m+=_e(o.clientWidth,i.clientWidth)-a),{width:a,height:d,x:m,y:b}}function XE(n,o){let t=$e(n),i=xr(n),a=t.visualViewport,d=i.clientWidth,m=i.clientHeight,b=0,C=0;if(a){d=a.width,m=a.height;let L=Dl();(!L||L&&o==="fixed")&&(b=a.offsetLeft,C=a.offsetTop)}return{width:d,height:m,x:b,y:C}}var ZE=new Set(["absolute","fixed"]);function QE(n,o){let t=yo(n,!0,o==="fixed"),i=t.top+n.clientTop,a=t.left+n.clientLeft,d=Ar(n)?gs(n):Tr(1),m=n.clientWidth*d.x,b=n.clientHeight*d.y,C=a*d.x,L=i*d.y;return{width:m,height:b,x:C,y:L}}function df(n,o,t){let i;if(o==="viewport")i=XE(n,t);else if(o==="document")i=qE(xr(n));else if(ar(o))i=QE(o,t);else{let a=pf(n);i={x:o.x-a.x,y:o.y-a.y,width:o.width,height:o.height}}return vo(i)}function uf(n,o){let t=li(n);return t===o||!ar(t)||bo(t)?!1:nr(t).position==="fixed"||uf(t,o)}function JE(n,o){let t=o.get(n);if(t)return t;let i=fs(n,[],!1).filter(b=>ar(b)&&go(b)!=="body"),a=null,d=nr(n).position==="fixed",m=d?li(n):n;for(;ar(m)&&!bo(m);){let b=nr(m),C=Pl(m);!C&&b.position==="fixed"&&(a=null),(d?!C&&!a:!C&&b.position==="static"&&!!a&&ZE.has(a.position)||vs(m)&&!C&&uf(n,m))?i=i.filter(W=>W!==m):a=b,m=li(m)}return o.set(n,i),i}function tT(n){let{element:o,boundary:t,rootBoundary:i,strategy:a}=n,m=[...t==="clippingAncestors"?Oa(o)?[]:JE(o,this._c):[].concat(t),i],b=m[0],C=m.reduce((L,W)=>{let q=df(o,W,a);return L.top=_e(q.top,L.top),L.right=Fr(q.right,L.right),L.bottom=Fr(q.bottom,L.bottom),L.left=_e(q.left,L.left),L},df(o,b,a));return{width:C.right-C.left,height:C.bottom-C.top,x:C.left,y:C.top}}function eT(n){let{width:o,height:t}=hf(n);return{width:o,height:t}}function rT(n,o,t){let i=Ar(o),a=xr(o),d=t==="fixed",m=yo(n,!0,d,o),b={scrollLeft:0,scrollTop:0},C=Tr(0);function L(){C.x=Rc(a)}if(i||!i&&!d)if((go(o)!=="body"||vs(a))&&(b=Pa(o)),i){let X=yo(o,!0,d,o);C.x=X.x+o.clientLeft,C.y=X.y+o.clientTop}else a&&L();d&&!i&&a&&L();let W=a&&!i&&!d?mf(a,b):Tr(0),q=m.left+b.scrollLeft-C.x-W.x,it=m.top+b.scrollTop-C.y-W.y;return{x:q,y:it,width:m.width,height:m.height}}function Lc(n){return nr(n).position==="static"}function cf(n,o){if(!Ar(n)||nr(n).position==="fixed")return null;if(o)return o(n);let t=n.offsetParent;return xr(n)===t&&(t=t.ownerDocument.body),t}function ff(n,o){let t=$e(n);if(Oa(n))return t;if(!Ar(n)){let a=li(n);for(;a&&!bo(a);){if(ar(a)&&!Lc(a))return a;a=li(a)}return t}let i=cf(n,o);for(;i&&af(i)&&Lc(i);)i=cf(i,o);return i&&bo(i)&&Lc(i)&&!Pl(i)?t:i||nf(n)||t}var iT=async function(n){let o=this.getOffsetParent||ff,t=this.getDimensions,i=await t(n.floating);return{reference:rT(n.reference,await o(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function oT(n){return nr(n).direction==="rtl"}var sT={convertOffsetParentRelativeRectToViewportRelativeRect:jE,getDocumentElement:xr,getClippingRect:tT,getOffsetParent:ff,getElementRects:iT,getClientRects:KE,getDimensions:eT,getScale:gs,isElement:ar,isRTL:oT};function vf(n,o){return n.x===o.x&&n.y===o.y&&n.width===o.width&&n.height===o.height}function aT(n,o){let t=null,i,a=xr(n);function d(){var b;clearTimeout(i),(b=t)==null||b.disconnect(),t=null}function m(b,C){b===void 0&&(b=!1),C===void 0&&(C=1),d();let L=n.getBoundingClientRect(),{left:W,top:q,width:it,height:X}=L;if(b||o(),!it||!X)return;let tt=Ra(q),lt=Ra(a.clientWidth-(W+it)),dt=Ra(a.clientHeight-(q+X)),vt=Ra(W),wt={rootMargin:-tt+"px "+-lt+"px "+-dt+"px "+-vt+"px",threshold:_e(0,Fr(1,C))||1},Wt=!0;function $t(Bt){let Zt=Bt[0].intersectionRatio;if(Zt!==C){if(!Wt)return m();Zt?m(!1,Zt):i=setTimeout(()=>{m(!1,1e-7)},1e3)}Zt===1&&!vf(L,n.getBoundingClientRect())&&m(),Wt=!1}try{t=new IntersectionObserver($t,{...wt,root:a.ownerDocument})}catch{t=new IntersectionObserver($t,wt)}t.observe(n)}return m(!0),d}function gf(n,o,t,i){i===void 0&&(i={});let{ancestorScroll:a=!0,ancestorResize:d=!0,elementResize:m=typeof ResizeObserver=="function",layoutShift:b=typeof IntersectionObserver=="function",animationFrame:C=!1}=i,L=Mc(n),W=a||d?[...L?fs(L):[],...fs(o)]:[];W.forEach(vt=>{a&&vt.addEventListener("scroll",t,{passive:!0}),d&&vt.addEventListener("resize",t)});let q=L&&b?aT(L,t):null,it=-1,X=null;m&&(X=new ResizeObserver(vt=>{let[At]=vt;At&&At.target===L&&X&&(X.unobserve(o),cancelAnimationFrame(it),it=requestAnimationFrame(()=>{var wt;(wt=X)==null||wt.observe(o)})),t()}),L&&!C&&X.observe(L),X.observe(o));let tt,lt=C?yo(n):null;C&&dt();function dt(){let vt=yo(n);lt&&!vf(lt,vt)&&t(),lt=vt,tt=requestAnimationFrame(dt)}return t(),()=>{var vt;W.forEach(At=>{a&&At.removeEventListener("scroll",t),d&&At.removeEventListener("resize",t)}),q==null||q(),(vt=X)==null||vt.disconnect(),X=null,C&&cancelAnimationFrame(tt)}}var bf=tf;var yf=ef,Ef=Ju,Tf=rf;var xf=Qu;var Af=(n,o,t)=>{let i=new Map,a={platform:sT,...t},d={...a.platform,_c:i};return Zu(n,o,{...a,platform:d})};var Sf=V.constructTagName("popover"),Yt={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"},di={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},Eo={TONAL:"tonal",CONTRAST:"contrast"},nT={ABSOLUTE:"absolute",FIXED:"fixed"},_t={PLACEMENT:Yt.BOTTOM,TRIGGER:di.CLICK,COLOR:Eo.TONAL,STRATEGY:nT.ABSOLUTE,OFFSET:4,BOUNDARY:"clippingAncestors",BOUNDARY_ROOT:"viewport",BOUNDARY_PADDING:0,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:et.DIALOG,Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1,PROPAGATE_EVENT_ON_ESCAPE:!1,KEEP_CONNECTED_TOOLTIP_CLOSED:!0,IS_BACKDROP_INVISIBLE:!0};var ci=class{static dispatchPopoverEvent(o,t){t.dispatchEvent(new CustomEvent(o,{detail:{show:t.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)}static onEscapeKeyPressed(o){this.dispatchPopoverEvent("closebyescape",o)}static onClickOutside(o){this.dispatchPopoverEvent("closebyoutsideclick",o)}};var Oc=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(t=>t!==o)}has(o){return this.stack.includes(o)}clear(){this.stack=[]}},Ie=new Oc;var lT=B`
2453
+ <span part="radio-icon" class="radio-icon"></span>`}};us.styles=[...K.styles,...Hu],p([u({type:Boolean,reflect:!0})],us.prototype,"checked",2),p([u({type:Boolean,reflect:!0})],us.prototype,"readonly",2);var kc=us;var Gu=V.constructTagName("staticradio");kc.register(Gu);var CE=kc;Cc.register(kl);var kE=Cc;var Fr=Math.min,_e=Math.max,Ma=Math.round,Ra=Math.floor,Tr=n=>({x:n,y:n}),wE={left:"right",right:"left",bottom:"top",top:"bottom"},NE={start:"end",end:"start"};function Nl(n,o,t){return _e(n,Fr(o,t))}function uo(n,o){return typeof n=="function"?n(o):n}function ni(n){return n.split("-")[0]}function fo(n){return n.split("-")[1]}function wc(n){return n==="x"?"y":"x"}function Ll(n){return n==="y"?"height":"width"}var LE=new Set(["top","bottom"]);function zr(n){return LE.has(ni(n))?"y":"x"}function Ml(n){return wc(zr(n))}function ju(n,o,t){t===void 0&&(t=!1);let i=fo(n),a=Ml(n),d=Ll(a),m=a==="x"?i===(t?"end":"start")?"right":"left":i==="start"?"bottom":"top";return o.reference[d]>o.floating[d]&&(m=La(m)),[m,La(m)]}function Ku(n){let o=La(n);return[wl(n),o,wl(o)]}function wl(n){return n.replace(/start|end/g,o=>NE[o])}var Yu=["left","right"],Wu=["right","left"],ME=["top","bottom"],RE=["bottom","top"];function OE(n,o,t){switch(n){case"top":case"bottom":return t?o?Wu:Yu:o?Yu:Wu;case"left":case"right":return o?ME:RE;default:return[]}}function qu(n,o,t,i){let a=fo(n),d=OE(ni(n),t==="start",i);return a&&(d=d.map(m=>m+"-"+a),o&&(d=d.concat(d.map(wl)))),d}function La(n){return n.replace(/left|right|bottom|top/g,o=>wE[o])}function PE(n){return{top:0,right:0,bottom:0,left:0,...n}}function Nc(n){return typeof n!="number"?PE(n):{top:n,right:n,bottom:n,left:n}}function vo(n){let{x:o,y:t,width:i,height:a}=n;return{width:i,height:a,top:t,left:o,right:o+i,bottom:t+a,x:o,y:t}}function Xu(n,o,t){let{reference:i,floating:a}=n,d=zr(o),m=Ml(o),b=Ll(m),C=ni(o),L=d==="y",W=i.x+i.width/2-a.width/2,q=i.y+i.height/2-a.height/2,it=i[b]/2-a[b]/2,X;switch(C){case"top":X={x:W,y:i.y-a.height};break;case"bottom":X={x:W,y:i.y+i.height};break;case"right":X={x:i.x+i.width,y:q};break;case"left":X={x:i.x-a.width,y:q};break;default:X={x:i.x,y:i.y}}switch(fo(o)){case"start":X[m]-=it*(t&&L?-1:1);break;case"end":X[m]+=it*(t&&L?-1:1);break}return X}var Zu=async(n,o,t)=>{let{placement:i="bottom",strategy:a="absolute",middleware:d=[],platform:m}=t,b=d.filter(Boolean),C=await(m.isRTL==null?void 0:m.isRTL(o)),L=await m.getElementRects({reference:n,floating:o,strategy:a}),{x:W,y:q}=Xu(L,i,C),it=i,X={},tt=0;for(let lt=0;lt<b.length;lt++){let{name:dt,fn:vt}=b[lt],{x:At,y:wt,data:Wt,reset:$t}=await vt({x:W,y:q,initialPlacement:i,placement:it,strategy:a,middlewareData:X,rects:L,platform:m,elements:{reference:n,floating:o}});W=At!=null?At:W,q=wt!=null?wt:q,X={...X,[dt]:{...X[dt],...Wt}},$t&&tt<=50&&(tt++,typeof $t=="object"&&($t.placement&&(it=$t.placement),$t.rects&&(L=$t.rects===!0?await m.getElementRects({reference:n,floating:o,strategy:a}):$t.rects),{x:W,y:q}=Xu(L,it,C)),lt=-1)}return{x:W,y:q,placement:it,strategy:a,middlewareData:X}};async function Rl(n,o){var t;o===void 0&&(o={});let{x:i,y:a,platform:d,rects:m,elements:b,strategy:C}=n,{boundary:L="clippingAncestors",rootBoundary:W="viewport",elementContext:q="floating",altBoundary:it=!1,padding:X=0}=uo(o,n),tt=Nc(X),dt=b[it?q==="floating"?"reference":"floating":q],vt=vo(await d.getClippingRect({element:(t=await(d.isElement==null?void 0:d.isElement(dt)))==null||t?dt:dt.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(b.floating)),boundary:L,rootBoundary:W,strategy:C})),At=q==="floating"?{x:i,y:a,width:m.floating.width,height:m.floating.height}:m.reference,wt=await(d.getOffsetParent==null?void 0:d.getOffsetParent(b.floating)),Wt=await(d.isElement==null?void 0:d.isElement(wt))?await(d.getScale==null?void 0:d.getScale(wt))||{x:1,y:1}:{x:1,y:1},$t=vo(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:b,rect:At,offsetParent:wt,strategy:C}):At);return{top:(vt.top-$t.top+tt.top)/Wt.y,bottom:($t.bottom-vt.bottom+tt.bottom)/Wt.y,left:(vt.left-$t.left+tt.left)/Wt.x,right:($t.right-vt.right+tt.right)/Wt.x}}var Qu=n=>({name:"arrow",options:n,async fn(o){let{x:t,y:i,placement:a,rects:d,platform:m,elements:b,middlewareData:C}=o,{element:L,padding:W=0}=uo(n,o)||{};if(L==null)return{};let q=Nc(W),it={x:t,y:i},X=Ml(a),tt=Ll(X),lt=await m.getDimensions(L),dt=X==="y",vt=dt?"top":"left",At=dt?"bottom":"right",wt=dt?"clientHeight":"clientWidth",Wt=d.reference[tt]+d.reference[X]-it[X]-d.floating[tt],$t=it[X]-d.reference[X],Bt=await(m.getOffsetParent==null?void 0:m.getOffsetParent(L)),Zt=Bt?Bt[wt]:0;(!Zt||!await(m.isElement==null?void 0:m.isElement(Bt)))&&(Zt=b.floating[wt]||d.floating[tt]);let le=Wt/2-$t/2,ur=Zt/2-lt[tt]/2-1,we=Fr(q[vt],ur),je=Fr(q[At],ur),fr=we,vr=Zt-lt[tt]-je,Ct=Zt/2-lt[tt]/2+le,pe=Nl(fr,Ct,vr),Ke=!C.arrow&&fo(a)!=null&&Ct!==pe&&d.reference[tt]/2-(Ct<fr?we:je)-lt[tt]/2<0,qe=Ke?Ct<fr?Ct-fr:Ct-vr:0;return{[X]:it[X]+qe,data:{[X]:pe,centerOffset:Ct-pe-qe,...Ke&&{alignmentOffset:qe}},reset:Ke}}});var Ju=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(o){var t,i;let{placement:a,middlewareData:d,rects:m,initialPlacement:b,platform:C,elements:L}=o,{mainAxis:W=!0,crossAxis:q=!0,fallbackPlacements:it,fallbackStrategy:X="bestFit",fallbackAxisSideDirection:tt="none",flipAlignment:lt=!0,...dt}=uo(n,o);if((t=d.arrow)!=null&&t.alignmentOffset)return{};let vt=ni(a),At=zr(b),wt=ni(b)===b,Wt=await(C.isRTL==null?void 0:C.isRTL(L.floating)),$t=it||(wt||!lt?[La(b)]:Ku(b)),Bt=tt!=="none";!it&&Bt&&$t.push(...qu(b,lt,tt,Wt));let Zt=[b,...$t],le=await Rl(o,dt),ur=[],we=((i=d.flip)==null?void 0:i.overflows)||[];if(W&&ur.push(le[vt]),q){let Ct=ju(a,m,Wt);ur.push(le[Ct[0]],le[Ct[1]])}if(we=[...we,{placement:a,overflows:ur}],!ur.every(Ct=>Ct<=0)){var je,fr;let Ct=(((je=d.flip)==null?void 0:je.index)||0)+1,pe=Zt[Ct];if(pe&&(!(q==="alignment"?At!==zr(pe):!1)||we.every(Xe=>Xe.overflows[0]>0&&zr(Xe.placement)===At)))return{data:{index:Ct,overflows:we},reset:{placement:pe}};let Ke=(fr=we.filter(qe=>qe.overflows[0]<=0).sort((qe,Xe)=>qe.overflows[1]-Xe.overflows[1])[0])==null?void 0:fr.placement;if(!Ke)switch(X){case"bestFit":{var vr;let qe=(vr=we.filter(Xe=>{if(Bt){let Ze=zr(Xe.placement);return Ze===At||Ze==="y"}return!0}).map(Xe=>[Xe.placement,Xe.overflows.filter(Ze=>Ze>0).reduce((Ze,mn)=>Ze+mn,0)]).sort((Xe,Ze)=>Xe[1]-Ze[1])[0])==null?void 0:vr[0];qe&&(Ke=qe);break}case"initialPlacement":Ke=b;break}if(a!==Ke)return{reset:{placement:Ke}}}return{}}}};var DE=new Set(["left","top"]);async function $E(n,o){let{placement:t,platform:i,elements:a}=n,d=await(i.isRTL==null?void 0:i.isRTL(a.floating)),m=ni(t),b=fo(t),C=zr(t)==="y",L=DE.has(m)?-1:1,W=d&&C?-1:1,q=uo(o,n),{mainAxis:it,crossAxis:X,alignmentAxis:tt}=typeof q=="number"?{mainAxis:q,crossAxis:0,alignmentAxis:null}:{mainAxis:q.mainAxis||0,crossAxis:q.crossAxis||0,alignmentAxis:q.alignmentAxis};return b&&typeof tt=="number"&&(X=b==="end"?tt*-1:tt),C?{x:X*W,y:it*L}:{x:it*L,y:X*W}}var tf=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(o){var t,i;let{x:a,y:d,placement:m,middlewareData:b}=o,C=await $E(o,n);return m===((t=b.offset)==null?void 0:t.placement)&&(i=b.arrow)!=null&&i.alignmentOffset?{}:{x:a+C.x,y:d+C.y,data:{...C,placement:m}}}}},ef=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(o){let{x:t,y:i,placement:a}=o,{mainAxis:d=!0,crossAxis:m=!1,limiter:b={fn:dt=>{let{x:vt,y:At}=dt;return{x:vt,y:At}}},...C}=uo(n,o),L={x:t,y:i},W=await Rl(o,C),q=zr(ni(a)),it=wc(q),X=L[it],tt=L[q];if(d){let dt=it==="y"?"top":"left",vt=it==="y"?"bottom":"right",At=X+W[dt],wt=X-W[vt];X=Nl(At,X,wt)}if(m){let dt=q==="y"?"top":"left",vt=q==="y"?"bottom":"right",At=tt+W[dt],wt=tt-W[vt];tt=Nl(At,tt,wt)}let lt=b.fn({...o,[it]:X,[q]:tt});return{...lt,data:{x:lt.x-t,y:lt.y-i,enabled:{[it]:d,[q]:m}}}}}};var rf=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(o){var t,i;let{placement:a,rects:d,platform:m,elements:b}=o,{apply:C=()=>{},...L}=uo(n,o),W=await Rl(o,L),q=ni(a),it=fo(a),X=zr(a)==="y",{width:tt,height:lt}=d.floating,dt,vt;q==="top"||q==="bottom"?(dt=q,vt=it===(await(m.isRTL==null?void 0:m.isRTL(b.floating))?"start":"end")?"left":"right"):(vt=q,dt=it==="end"?"top":"bottom");let At=lt-W.top-W.bottom,wt=tt-W.left-W.right,Wt=Fr(lt-W[dt],At),$t=Fr(tt-W[vt],wt),Bt=!o.middlewareData.shift,Zt=Wt,le=$t;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(le=wt),(i=o.middlewareData.shift)!=null&&i.enabled.y&&(Zt=At),Bt&&!it){let we=_e(W.left,0),je=_e(W.right,0),fr=_e(W.top,0),vr=_e(W.bottom,0);X?le=tt-2*(we!==0||je!==0?we+je:_e(W.left,W.right)):Zt=lt-2*(fr!==0||vr!==0?fr+vr:_e(W.top,W.bottom))}await C({...o,availableWidth:le,availableHeight:Zt});let ur=await m.getDimensions(b.floating);return tt!==ur.width||lt!==ur.height?{reset:{rects:!0}}:{}}}};function Ol(){return typeof window<"u"}function go(n){return sf(n)?(n.nodeName||"").toLowerCase():"#document"}function $e(n){var o;return(n==null||(o=n.ownerDocument)==null?void 0:o.defaultView)||window}function xr(n){var o;return(o=(sf(n)?n.ownerDocument:n.document)||window.document)==null?void 0:o.documentElement}function sf(n){return Ol()?n instanceof Node||n instanceof $e(n).Node:!1}function ar(n){return Ol()?n instanceof Element||n instanceof $e(n).Element:!1}function Ar(n){return Ol()?n instanceof HTMLElement||n instanceof $e(n).HTMLElement:!1}function of(n){return!Ol()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof $e(n).ShadowRoot}var FE=new Set(["inline","contents"]);function vs(n){let{overflow:o,overflowX:t,overflowY:i,display:a}=nr(n);return/auto|scroll|overlay|hidden|clip/.test(o+i+t)&&!FE.has(a)}var zE=new Set(["table","td","th"]);function af(n){return zE.has(go(n))}var VE=[":popover-open",":modal"];function Oa(n){return VE.some(o=>{try{return n.matches(o)}catch{return!1}})}var BE=["transform","translate","scale","rotate","perspective"],UE=["transform","translate","scale","rotate","perspective","filter"],HE=["paint","layout","strict","content"];function Pl(n){let o=Dl(),t=ar(n)?nr(n):n;return BE.some(i=>t[i]?t[i]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!o&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!o&&(t.filter?t.filter!=="none":!1)||UE.some(i=>(t.willChange||"").includes(i))||HE.some(i=>(t.contain||"").includes(i))}function nf(n){let o=li(n);for(;Ar(o)&&!bo(o);){if(Pl(o))return o;if(Oa(o))return null;o=li(o)}return null}function Dl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var GE=new Set(["html","body","#document"]);function bo(n){return GE.has(go(n))}function nr(n){return $e(n).getComputedStyle(n)}function Pa(n){return ar(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function li(n){if(go(n)==="html")return n;let o=n.assignedSlot||n.parentNode||of(n)&&n.host||xr(n);return of(o)?o.host:o}function lf(n){let o=li(n);return bo(o)?n.ownerDocument?n.ownerDocument.body:n.body:Ar(o)&&vs(o)?o:lf(o)}function fs(n,o,t){var i;o===void 0&&(o=[]),t===void 0&&(t=!0);let a=lf(n),d=a===((i=n.ownerDocument)==null?void 0:i.body),m=$e(a);if(d){let b=$l(m);return o.concat(m,m.visualViewport||[],vs(a)?a:[],b&&t?fs(b):[])}return o.concat(a,fs(a,[],t))}function $l(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function hf(n){let o=nr(n),t=parseFloat(o.width)||0,i=parseFloat(o.height)||0,a=Ar(n),d=a?n.offsetWidth:t,m=a?n.offsetHeight:i,b=Ma(t)!==d||Ma(i)!==m;return b&&(t=d,i=m),{width:t,height:i,$:b}}function Mc(n){return ar(n)?n:n.contextElement}function gs(n){let o=Mc(n);if(!Ar(o))return Tr(1);let t=o.getBoundingClientRect(),{width:i,height:a,$:d}=hf(o),m=(d?Ma(t.width):t.width)/i,b=(d?Ma(t.height):t.height)/a;return(!m||!Number.isFinite(m))&&(m=1),(!b||!Number.isFinite(b))&&(b=1),{x:m,y:b}}var YE=Tr(0);function pf(n){let o=$e(n);return!Dl()||!o.visualViewport?YE:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function WE(n,o,t){return o===void 0&&(o=!1),!t||o&&t!==$e(n)?!1:o}function yo(n,o,t,i){o===void 0&&(o=!1),t===void 0&&(t=!1);let a=n.getBoundingClientRect(),d=Mc(n),m=Tr(1);o&&(i?ar(i)&&(m=gs(i)):m=gs(n));let b=WE(d,t,i)?pf(d):Tr(0),C=(a.left+b.x)/m.x,L=(a.top+b.y)/m.y,W=a.width/m.x,q=a.height/m.y;if(d){let it=$e(d),X=i&&ar(i)?$e(i):i,tt=it,lt=$l(tt);for(;lt&&i&&X!==tt;){let dt=gs(lt),vt=lt.getBoundingClientRect(),At=nr(lt),wt=vt.left+(lt.clientLeft+parseFloat(At.paddingLeft))*dt.x,Wt=vt.top+(lt.clientTop+parseFloat(At.paddingTop))*dt.y;C*=dt.x,L*=dt.y,W*=dt.x,q*=dt.y,C+=wt,L+=Wt,tt=$e(lt),lt=$l(tt)}}return vo({width:W,height:q,x:C,y:L})}function Rc(n,o){let t=Pa(n).scrollLeft;return o?o.left+t:yo(xr(n)).left+t}function mf(n,o,t){t===void 0&&(t=!1);let i=n.getBoundingClientRect(),a=i.left+o.scrollLeft-(t?0:Rc(n,i)),d=i.top+o.scrollTop;return{x:a,y:d}}function jE(n){let{elements:o,rect:t,offsetParent:i,strategy:a}=n,d=a==="fixed",m=xr(i),b=o?Oa(o.floating):!1;if(i===m||b&&d)return t;let C={scrollLeft:0,scrollTop:0},L=Tr(1),W=Tr(0),q=Ar(i);if((q||!q&&!d)&&((go(i)!=="body"||vs(m))&&(C=Pa(i)),Ar(i))){let X=yo(i);L=gs(i),W.x=X.x+i.clientLeft,W.y=X.y+i.clientTop}let it=m&&!q&&!d?mf(m,C,!0):Tr(0);return{width:t.width*L.x,height:t.height*L.y,x:t.x*L.x-C.scrollLeft*L.x+W.x+it.x,y:t.y*L.y-C.scrollTop*L.y+W.y+it.y}}function KE(n){return Array.from(n.getClientRects())}function qE(n){let o=xr(n),t=Pa(n),i=n.ownerDocument.body,a=_e(o.scrollWidth,o.clientWidth,i.scrollWidth,i.clientWidth),d=_e(o.scrollHeight,o.clientHeight,i.scrollHeight,i.clientHeight),m=-t.scrollLeft+Rc(n),b=-t.scrollTop;return nr(i).direction==="rtl"&&(m+=_e(o.clientWidth,i.clientWidth)-a),{width:a,height:d,x:m,y:b}}function XE(n,o){let t=$e(n),i=xr(n),a=t.visualViewport,d=i.clientWidth,m=i.clientHeight,b=0,C=0;if(a){d=a.width,m=a.height;let L=Dl();(!L||L&&o==="fixed")&&(b=a.offsetLeft,C=a.offsetTop)}return{width:d,height:m,x:b,y:C}}var ZE=new Set(["absolute","fixed"]);function QE(n,o){let t=yo(n,!0,o==="fixed"),i=t.top+n.clientTop,a=t.left+n.clientLeft,d=Ar(n)?gs(n):Tr(1),m=n.clientWidth*d.x,b=n.clientHeight*d.y,C=a*d.x,L=i*d.y;return{width:m,height:b,x:C,y:L}}function df(n,o,t){let i;if(o==="viewport")i=XE(n,t);else if(o==="document")i=qE(xr(n));else if(ar(o))i=QE(o,t);else{let a=pf(n);i={x:o.x-a.x,y:o.y-a.y,width:o.width,height:o.height}}return vo(i)}function uf(n,o){let t=li(n);return t===o||!ar(t)||bo(t)?!1:nr(t).position==="fixed"||uf(t,o)}function JE(n,o){let t=o.get(n);if(t)return t;let i=fs(n,[],!1).filter(b=>ar(b)&&go(b)!=="body"),a=null,d=nr(n).position==="fixed",m=d?li(n):n;for(;ar(m)&&!bo(m);){let b=nr(m),C=Pl(m);!C&&b.position==="fixed"&&(a=null),(d?!C&&!a:!C&&b.position==="static"&&!!a&&ZE.has(a.position)||vs(m)&&!C&&uf(n,m))?i=i.filter(W=>W!==m):a=b,m=li(m)}return o.set(n,i),i}function tT(n){let{element:o,boundary:t,rootBoundary:i,strategy:a}=n,m=[...t==="clippingAncestors"?Oa(o)?[]:JE(o,this._c):[].concat(t),i],b=m[0],C=m.reduce((L,W)=>{let q=df(o,W,a);return L.top=_e(q.top,L.top),L.right=Fr(q.right,L.right),L.bottom=Fr(q.bottom,L.bottom),L.left=_e(q.left,L.left),L},df(o,b,a));return{width:C.right-C.left,height:C.bottom-C.top,x:C.left,y:C.top}}function eT(n){let{width:o,height:t}=hf(n);return{width:o,height:t}}function rT(n,o,t){let i=Ar(o),a=xr(o),d=t==="fixed",m=yo(n,!0,d,o),b={scrollLeft:0,scrollTop:0},C=Tr(0);function L(){C.x=Rc(a)}if(i||!i&&!d)if((go(o)!=="body"||vs(a))&&(b=Pa(o)),i){let X=yo(o,!0,d,o);C.x=X.x+o.clientLeft,C.y=X.y+o.clientTop}else a&&L();d&&!i&&a&&L();let W=a&&!i&&!d?mf(a,b):Tr(0),q=m.left+b.scrollLeft-C.x-W.x,it=m.top+b.scrollTop-C.y-W.y;return{x:q,y:it,width:m.width,height:m.height}}function Lc(n){return nr(n).position==="static"}function cf(n,o){if(!Ar(n)||nr(n).position==="fixed")return null;if(o)return o(n);let t=n.offsetParent;return xr(n)===t&&(t=t.ownerDocument.body),t}function ff(n,o){let t=$e(n);if(Oa(n))return t;if(!Ar(n)){let a=li(n);for(;a&&!bo(a);){if(ar(a)&&!Lc(a))return a;a=li(a)}return t}let i=cf(n,o);for(;i&&af(i)&&Lc(i);)i=cf(i,o);return i&&bo(i)&&Lc(i)&&!Pl(i)?t:i||nf(n)||t}var iT=async function(n){let o=this.getOffsetParent||ff,t=this.getDimensions,i=await t(n.floating);return{reference:rT(n.reference,await o(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function oT(n){return nr(n).direction==="rtl"}var sT={convertOffsetParentRelativeRectToViewportRelativeRect:jE,getDocumentElement:xr,getClippingRect:tT,getOffsetParent:ff,getElementRects:iT,getClientRects:KE,getDimensions:eT,getScale:gs,isElement:ar,isRTL:oT};function vf(n,o){return n.x===o.x&&n.y===o.y&&n.width===o.width&&n.height===o.height}function aT(n,o){let t=null,i,a=xr(n);function d(){var b;clearTimeout(i),(b=t)==null||b.disconnect(),t=null}function m(b,C){b===void 0&&(b=!1),C===void 0&&(C=1),d();let L=n.getBoundingClientRect(),{left:W,top:q,width:it,height:X}=L;if(b||o(),!it||!X)return;let tt=Ra(q),lt=Ra(a.clientWidth-(W+it)),dt=Ra(a.clientHeight-(q+X)),vt=Ra(W),wt={rootMargin:-tt+"px "+-lt+"px "+-dt+"px "+-vt+"px",threshold:_e(0,Fr(1,C))||1},Wt=!0;function $t(Bt){let Zt=Bt[0].intersectionRatio;if(Zt!==C){if(!Wt)return m();Zt?m(!1,Zt):i=setTimeout(()=>{m(!1,1e-7)},1e3)}Zt===1&&!vf(L,n.getBoundingClientRect())&&m(),Wt=!1}try{t=new IntersectionObserver($t,{...wt,root:a.ownerDocument})}catch{t=new IntersectionObserver($t,wt)}t.observe(n)}return m(!0),d}function gf(n,o,t,i){i===void 0&&(i={});let{ancestorScroll:a=!0,ancestorResize:d=!0,elementResize:m=typeof ResizeObserver=="function",layoutShift:b=typeof IntersectionObserver=="function",animationFrame:C=!1}=i,L=Mc(n),W=a||d?[...L?fs(L):[],...fs(o)]:[];W.forEach(vt=>{a&&vt.addEventListener("scroll",t,{passive:!0}),d&&vt.addEventListener("resize",t)});let q=L&&b?aT(L,t):null,it=-1,X=null;m&&(X=new ResizeObserver(vt=>{let[At]=vt;At&&At.target===L&&X&&(X.unobserve(o),cancelAnimationFrame(it),it=requestAnimationFrame(()=>{var wt;(wt=X)==null||wt.observe(o)})),t()}),L&&!C&&X.observe(L),X.observe(o));let tt,lt=C?yo(n):null;C&&dt();function dt(){let vt=yo(n);lt&&!vf(lt,vt)&&t(),lt=vt,tt=requestAnimationFrame(dt)}return t(),()=>{var vt;W.forEach(At=>{a&&At.removeEventListener("scroll",t),d&&At.removeEventListener("resize",t)}),q==null||q(),(vt=X)==null||vt.disconnect(),X=null,C&&cancelAnimationFrame(tt)}}var bf=tf;var yf=ef,Ef=Ju,Tf=rf;var xf=Qu;var Af=(n,o,t)=>{let i=new Map,a={platform:sT,...t},d={...a.platform,_c:i};return Zu(n,o,{...a,platform:d})};var Sf=V.constructTagName("popover"),Yt={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"},di={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},Eo={TONAL:"tonal",CONTRAST:"contrast"},nT={ABSOLUTE:"absolute",FIXED:"fixed"},_t={PLACEMENT:Yt.BOTTOM,TRIGGER:di.CLICK,COLOR:Eo.TONAL,STRATEGY:nT.ABSOLUTE,OFFSET:4,BOUNDARY:"clippingAncestors",BOUNDARY_ROOT:"viewport",BOUNDARY_PADDING:0,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:et.DIALOG,Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1,PROPAGATE_EVENT_ON_ESCAPE:!1,KEEP_CONNECTED_TOOLTIP_CLOSED:!0,IS_BACKDROP_INVISIBLE:!0};var ci=class{static dispatchPopoverEvent(o,t){t.dispatchEvent(new CustomEvent(o,{detail:{show:t.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)}static onEscapeKeyPressed(o){this.dispatchPopoverEvent("closebyescape",o)}static onClickOutside(o){this.dispatchPopoverEvent("closebyoutsideclick",o)}};var Oc=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(t=>t!==o)}has(o){return this.stack.includes(o)}clear(){this.stack=[]}},Ie=new Oc;var lT=B`
2453
2454
  :host {
2454
2455
  --mdc-popover-arrow-border-radius: 0.1875rem;
2455
2456
  --mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
@@ -2520,7 +2521,7 @@
2520
2521
  pointer-events: auto;
2521
2522
  }
2522
2523
 
2523
- .popover-arrow {
2524
+ :host::part(popover-arrow) {
2524
2525
  position: absolute;
2525
2526
  width: 1rem;
2526
2527
  height: 1rem;
@@ -2571,7 +2572,7 @@
2571
2572
  border-top-right-radius: var(--mdc-popover-arrow-border-radius);
2572
2573
  border-bottom-left-radius: 100%;
2573
2574
  }
2574
- `,_f=[lT];var zl=V.constructTagName("popoverportal"),Fl=class extends K{connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.onDisconnect)==null||o.call(this)}};var Vl=class{constructor(o){this.portalElement=null;this.disconnectAfterAppendTo=!1;this.arrowPixelChange=!1;this.popover=o}setupDelay(){try{let[o,t]=this.popover.delay.split(",").map(i=>{let a=parseInt(i,10);if(Number.isNaN(a)||a<0)throw new Error(`Invalid delay value: ${i}`);return a});return[o,t]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(o){let t=this.popover.renderRoot.querySelector(".popover-hover-bridge");Object.assign(t.style,{top:"",left:"",right:"",bottom:""});let i=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset}px)`,a=this.popover.offsetHeight||0,d=this.popover.offsetWidth||0;if(t)switch(o.split("-")[0]){case"top":t.style.height=i,t.style.bottom=`calc(-1 * (${i}))`,t.style.left="50%",t.style.width=`${d}px`;break;case"left":t.style.height=`${a}px`,t.style.width=i,t.style.right=`calc(-1.5 * (${i}))`;break;case"right":t.style.height=`${a}px`,t.style.width=i,t.style.left=`calc(-0.5 * (${i}))`;break;case"bottom":default:t.style.height=i,t.style.top=`calc(-1 * (${i}))`,t.style.left="50%",t.style.width=`${d}px`;break}}setupAppendTo(){var o,t;if(this.popover.appendTo){let i=document.getElementById(this.popover.appendTo);i&&!Array.from(i.children).includes(this.popover)&&(this.disconnectAfterAppendTo=!0,this.portalElement=document.createElement(zl),this.portalElement.onDisconnect=()=>{this.popover.remove(),this.portalElement=null},(t=(o=this.popover.parentElement)==null?void 0:o.appendChild)==null||t.call(o,this.portalElement),i.appendChild(this.popover))}}cleanupAppendTo(){!this.disconnectAfterAppendTo&&this.portalElement&&this.portalElement.remove(),this.disconnectAfterAppendTo=!1}updateAriaLabels(){var o,t,i;this.popover.interactive&&this.popover.role&&(this.popover.ariaLabel||(this.popover.ariaLabel=((o=this.popover.triggerElement)==null?void 0:o.ariaLabel)||((t=this.popover.triggerElement)==null?void 0:t.textContent)||""),this.popover.ariaLabelledby||(this.popover.ariaLabelledby=((i=this.popover.triggerElement)==null?void 0:i.id)||""))}updateAriaModal(){this.popover.role===et.DIALOG||this.popover.role===et.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal")}updateAriaExpandedAttribute(){var o,t,i;this.popover.disableAriaExpanded||((o=this.popover.triggerElement)==null||o.setAttribute("aria-expanded",`${this.popover.visible}`),(i=this.popover.triggerElement)==null||i.setAttribute("aria-haspopup",((t=this.popover.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||this.popover.role||"dialog"))}updateArrowStyle(o,t){var W;if(!this.popover.arrowElement)return;let i=t.split("-")[0],a={top:"bottom",right:"left",bottom:"top",left:"right"}[i],{x:d,y:m}=o,b=this.popover.arrowElement.getBoundingClientRect(),C=(W=this.popover.arrowElement.offsetParent)==null?void 0:W.getBoundingClientRect();if(!this.arrowPixelChange){let q=C!=null&&C[a]?12-Math.abs(b[a]-C[a]):0;Math.round(q)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let L=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",i),Object.assign(this.popover.arrowElement.style,{left:d!=null?`${d}px`:"",top:m!=null?`${m}px`:"",[a]:`${-this.popover.arrowElement.offsetHeight/2-L}px`})}updatePopoverStyle(o,t){Object.assign(this.popover.style,{left:`${o}px`,top:`${t}px`})}};var It=class extends ul(cl(dl(K))){constructor(){super();this.id="";this.triggerID="";this.trigger=_t.TRIGGER;this.placement=_t.PLACEMENT;this.color=_t.COLOR;this.visible=_t.VISIBLE;this.offset=_t.OFFSET;this.boundary=_t.BOUNDARY;this.boundaryRoot=_t.BOUNDARY_ROOT;this.focusTrap=_t.FOCUS_TRAP;this.preventScroll=_t.PREVENT_SCROLL;this.showArrow=_t.ARROW;this.closeButton=_t.CLOSE_BUTTON;this.interactive=_t.INTERACTIVE;this.delay=_t.DELAY;this.hideOnEscape=_t.HIDE_ON_ESCAPE;this.propagateEventOnEscape=_t.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=_t.HIDE_ON_BLUR;this.hideOnOutsideClick=_t.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=_t.FOCUS_BACK;this.backdrop=_t.BACKDROP;this.isBackdropInvisible=_t.IS_BACKDROP_INVISIBLE;this.flip=_t.FLIP;this.size=_t.SIZE;this.zIndex=_t.Z_INDEX;this.closeButtonAriaLabel=null;this.strategy=_t.STRATEGY;this.role=_t.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=_t.DISABLE_ARIA_EXPANDED;this.keepConnectedTooltipClosed=_t.KEEP_CONNECTED_TOOLTIP_CLOSED;this.arrowElement=null;this.hoverTimer=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSuppressOpening=!1;this.parseTrigger=()=>{var d;let a=(((d=this.trigger)==null?void 0:d.split(" "))||[]).filter(m=>Object.values(di).includes(m)).length>0?this.trigger:_t.TRIGGER;a==="mouseenter"&&(this.interactive?a="mouseenter click":a="mouseenter focusin"),this.trigger=a};this.setupTriggerListeners=()=>{if(this.trigger.includes("click")&&document.addEventListener("click",this.togglePopoverVisible,{capture:!0}),this.trigger.includes("mouseenter")){let t=this.renderRoot.querySelector(".popover-hover-bridge");t==null||t.addEventListener("mouseenter",this.show),document.addEventListener("mouseenter",this.handleMouseEnter,{capture:!0}),document.addEventListener("mouseleave",this.handleMouseLeave,{capture:!0}),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay)}this.trigger.includes("focusin")&&(document.addEventListener("focusin",this.handleFocusIn,{capture:!0}),this.interactive||document.addEventListener("focusout",this.handleFocusOut,{capture:!0}))};this.removeTriggerListeners=()=>{document.removeEventListener("click",this.togglePopoverVisible,{capture:!0});let t=this.renderRoot.querySelector(".popover-hover-bridge");t==null||t.removeEventListener("mouseenter",this.show),document.removeEventListener("mouseenter",this.handleMouseEnter,{capture:!0}),document.removeEventListener("mouseleave",this.handleMouseLeave,{capture:!0}),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),document.removeEventListener("focusin",this.handleFocusIn,{capture:!0}),document.removeEventListener("focusout",this.handleFocusOut,{capture:!0})};this.removeAllListeners=()=>{this.removeTriggerListeners(),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown,{capture:!0})),this.hideOnBlur&&this.removeEventListener("focusout",this.onPopoverFocusOut)};this.onOutsidePopoverClick=t=>{if(Ie.peek()!==this)return;let i=t.composedPath(),a=this.contains(t.target)||i.includes(this.triggerElement)||i.includes(this),d=this.backdropElement?i.includes(this.backdropElement):!1;(!a||d)&&(this.hide(),ci.onClickOutside(this))};this.onEscapeKeydown=t=>{!this.visible||t.code!=="Escape"||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),ci.onEscapeKeyPressed(this))};this.onPopoverFocusOut=t=>{this.contains(t.relatedTarget)||this.hide()};this.handleMouseEnter=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!0,this.show())};this.handleMouseLeave=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!1,this.startCloseDelay())};this.handleFocusOut=t=>{this.isEventFromTrigger(t)&&(this.isHovered||this.hide())};this.handleFocusIn=t=>{var i;this.isEventFromTrigger(t)&&((i=this.triggerElement)!=null&&i.matches(":focus-visible")||this.isHovered)&&this.show()};this.startCloseDelay=()=>{this.interactive?this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay):this.hide()};this.cancelCloseDelay=()=>{this.hoverTimer&&(window.clearTimeout(this.hoverTimer),this.hoverTimer=null)};this.show=()=>{this.visible||this.shouldSuppressOpening||(this.cancelCloseDelay(),this.openDelay>0?setTimeout(()=>{this.visible=!0},this.openDelay):this.visible=!0)};this.hide=()=>{this.closeDelay?setTimeout(()=>{this.visible=!1},this.closeDelay):this.visible=!1};this.togglePopoverVisible=t=>{this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show())};this.positionPopover=()=>{let{triggerElement:t}=this;if(!t)return;let i=!this.boundary||this.boundary==="clippingAncestors"?"clippingAncestors":Array.from(document.querySelectorAll(this.boundary)),a=this.boundaryRoot,d=[yf({boundary:i,rootBoundary:a,padding:this.boundaryPadding})],m=this.offset;if(this.flip&&d.push(Ef({boundary:i,rootBoundary:a})),this.size){let b=L=>{this.style.setProperty("--mdc-popover-internal-available-height",`${L}px`)},C=this.renderRoot.querySelector('[part="popover-content"]');d.push(Tf({boundary:i,rootBoundary:a,apply({availableHeight:L}){C&&(Object.assign(C.style,{maxHeight:`${L}px`,overflowY:"auto"}),b(L))},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector(".popover-arrow"),this.arrowElement)){let b=this.arrowElement.offsetHeight,C=Math.sqrt(2*b**2)/2;m+=C,d.push(xf({element:this.arrowElement,padding:12}))}d.push(bf(m)),this.floatingUICleanupFunction=gf(t,this,async()=>{let{triggerElement:b}=this;if(!b)return;let{x:C,y:L,middlewareData:W,placement:q}=await Af(b,this,{placement:this.placement,middleware:d,strategy:this.strategy});this.utils.updatePopoverStyle(C,L),W.arrow&&this.arrowElement&&this.utils.updateArrowStyle(W.arrow,q),this.trigger.includes("mouseenter")&&this.interactive&&this.utils.setupHoverBridge(q)})};this.utils=new Vl(this),this.parseTrigger(),[this.openDelay,this.closeDelay]=this.utils.setupDelay()}get connectedTooltip(){let t=this.getRootNode().querySelectorAll(`mdc-tooltip[triggerID="${this.triggerID}"]`);return Array.from(t).find(i=>i!==this)}get triggerElement(){return this.getRootNode().querySelector(`[id="${this.triggerID}"]`)}async firstUpdated(t){super.firstUpdated(t),ci.onCreatedPopover(this)}connectedCallback(){super.connectedCallback(),this.style.zIndex=`${this.zIndex}`,this.utils.setupAppendTo(),this.setupTriggerListeners()}async disconnectedCallback(){var t,i;super.disconnectedCallback(),this.removeAllListeners(),(t=this.deactivateFocusTrap)==null||t.call(this),this.deactivatePreventScroll(),this.moveElementBackAfterBackdropRemoval(this.triggerElement),this.removeBackdrop(),(i=this.floatingUICleanupFunction)==null||i.call(this),this.cancelCloseDelay(),this.keepConnectedTooltipClosed&&this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),this.utils.cleanupAppendTo(),ci.onDestroyedPopover(this),Ie.remove(this)}async updated(t){if(super.updated(t),t.has("visible")){let i=t.get("visible")||!1;await this.isOpenUpdated(i,this.visible),this.utils.updateAriaExpandedAttribute()}t.has("trigger")&&(this.parseTrigger(),this.removeTriggerListeners(),this.setupTriggerListeners()),t.has("placement")&&this.setAttribute("placement",Object.values(Yt).includes(this.placement)?this.placement:_t.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(Eo).includes(this.color)?this.color:_t.COLOR),t.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),t.has("appendTo")&&(this.appendTo?this.utils.setupAppendTo():this.utils.cleanupAppendTo()),(t.has("interactive")||t.has("aria-label")||t.has("aria-labelledby"))&&this.utils.updateAriaLabels(),t.has("role")&&(this.role===""&&(this.role=null),this.utils.updateAriaModal()),t.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap(),t.has("preventScroll")&&(!this.preventScroll&&this.visible?this.deactivatePreventScroll():this.preventScroll&&this.visible&&this.activatePreventScroll())}async isOpenUpdated(t,i){var d,m;let{triggerElement:a}=this;t===i||!a||(i&&!this.shouldSuppressOpening?(Ie.peek()!==this&&Ie.push(this),this.keepConnectedTooltipClosed&&this.connectedTooltip&&(this.connectedTooltip.visible=!1,this.connectedTooltip.shouldSuppressOpening=!0),this.backdrop&&!this.backdropElement&&(this.createBackdrop("popover"),this.keepElementAboveBackdrop(a)),this.positionPopover(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(a.style.pointerEvents="none")),this.hideOnEscape&&(this.addEventListener("keydown",this.onEscapeKeydown),document.addEventListener("keydown",this.onEscapeKeydown)),this.activatePreventScroll(),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick,{capture:!0}),setTimeout(()=>{var b,C;this.interactive&&this.focusTrap&&((b=this.activateFocusTrap)==null||b.call(this),(C=this.setInitialFocus)==null||C.call(this))},0),ci.onShowPopover(this)):(Ie.peek()===this&&Ie.pop(),(d=this.floatingUICleanupFunction)==null||d.call(this),this.backdrop&&(this.moveElementBackAfterBackdropRemoval(a),this.removeBackdrop()),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(a.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.deactivatePreventScroll(),(m=this.deactivateFocusTrap)==null||m.call(this),this.focusBackToTrigger&&(a==null||a.focus()),this.keepConnectedTooltipClosed&&this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),ci.onHidePopover(this)))}isEventFromTrigger(t){var i;return this.triggerID?t.composed?t.composedPath().some(a=>(a==null?void 0:a.id)===this.triggerID):((i=t.target)==null?void 0:i.id)===this.triggerID:!1}render(){return _`
2575
+ `,_f=[lT];var zl=V.constructTagName("popoverportal"),Fl=class extends K{connectedCallback(){super.connectedCallback(),this.ariaHidden="true",this.style.display="none"}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.onDisconnect)==null||o.call(this)}};var Vl=class{constructor(o){this.portalElement=null;this.disconnectAfterAppendTo=!1;this.arrowPixelChange=!1;this.popover=o}setupDelay(){try{let[o,t]=this.popover.delay.split(",").map(i=>{let a=parseInt(i,10);if(Number.isNaN(a)||a<0)throw new Error(`Invalid delay value: ${i}`);return a});return[o,t]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(o){let t=this.popover.renderRoot.querySelector(".popover-hover-bridge");Object.assign(t.style,{top:"",left:"",right:"",bottom:""});let i=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset}px)`,a=this.popover.offsetHeight||0,d=this.popover.offsetWidth||0;if(t)switch(o.split("-")[0]){case"top":t.style.height=i,t.style.bottom=`calc(-1 * (${i}))`,t.style.left="50%",t.style.width=`${d}px`;break;case"left":t.style.height=`${a}px`,t.style.width=i,t.style.right=`calc(-1.5 * (${i}))`;break;case"right":t.style.height=`${a}px`,t.style.width=i,t.style.left=`calc(-0.5 * (${i}))`;break;case"bottom":default:t.style.height=i,t.style.top=`calc(-1 * (${i}))`,t.style.left="50%",t.style.width=`${d}px`;break}}setupAppendTo(){var o,t;if(this.popover.appendTo){let i=document.getElementById(this.popover.appendTo);i&&!Array.from(i.children).includes(this.popover)&&(this.disconnectAfterAppendTo=!0,this.portalElement=document.createElement(zl),this.portalElement.onDisconnect=()=>{this.popover.remove(),this.portalElement=null},(t=(o=this.popover.parentElement)==null?void 0:o.appendChild)==null||t.call(o,this.portalElement),i.appendChild(this.popover))}}cleanupAppendTo(){!this.disconnectAfterAppendTo&&this.portalElement&&this.portalElement.remove(),this.disconnectAfterAppendTo=!1}updateAriaLabels(){var o,t,i;this.popover.interactive&&this.popover.role&&(this.popover.ariaLabel||(this.popover.ariaLabel=((o=this.popover.triggerElement)==null?void 0:o.ariaLabel)||((t=this.popover.triggerElement)==null?void 0:t.textContent)||""),this.popover.ariaLabelledby||(this.popover.ariaLabelledby=((i=this.popover.triggerElement)==null?void 0:i.id)||""))}updateAriaModal(){this.popover.role===et.DIALOG||this.popover.role===et.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal")}updateAriaExpandedAttribute(){var o,t,i;this.popover.disableAriaExpanded||((o=this.popover.triggerElement)==null||o.setAttribute("aria-expanded",`${this.popover.visible}`),(i=this.popover.triggerElement)==null||i.setAttribute("aria-haspopup",((t=this.popover.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||this.popover.role||"dialog"))}updateArrowStyle(o,t){var W;if(!this.popover.arrowElement)return;let i=t.split("-")[0],a={top:"bottom",right:"left",bottom:"top",left:"right"}[i],{x:d,y:m}=o,b=this.popover.arrowElement.getBoundingClientRect(),C=(W=this.popover.arrowElement.offsetParent)==null?void 0:W.getBoundingClientRect();if(!this.arrowPixelChange){let q=C!=null&&C[a]?12-Math.abs(b[a]-C[a]):0;Math.round(q)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let L=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",i),Object.assign(this.popover.arrowElement.style,{left:d!=null?`${d}px`:"",top:m!=null?`${m}px`:"",[a]:`${-this.popover.arrowElement.offsetHeight/2-L}px`})}updatePopoverStyle(o,t){Object.assign(this.popover.style,{left:`${o}px`,top:`${t}px`})}};var It=class extends ul(cl(dl(K))){constructor(){super();this.id="";this.triggerID="";this.trigger=_t.TRIGGER;this.placement=_t.PLACEMENT;this.color=_t.COLOR;this.visible=_t.VISIBLE;this.offset=_t.OFFSET;this.boundary=_t.BOUNDARY;this.boundaryRoot=_t.BOUNDARY_ROOT;this.focusTrap=_t.FOCUS_TRAP;this.preventScroll=_t.PREVENT_SCROLL;this.showArrow=_t.ARROW;this.closeButton=_t.CLOSE_BUTTON;this.interactive=_t.INTERACTIVE;this.delay=_t.DELAY;this.hideOnEscape=_t.HIDE_ON_ESCAPE;this.propagateEventOnEscape=_t.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=_t.HIDE_ON_BLUR;this.hideOnOutsideClick=_t.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=_t.FOCUS_BACK;this.backdrop=_t.BACKDROP;this.isBackdropInvisible=_t.IS_BACKDROP_INVISIBLE;this.flip=_t.FLIP;this.size=_t.SIZE;this.zIndex=_t.Z_INDEX;this.closeButtonAriaLabel=null;this.strategy=_t.STRATEGY;this.role=_t.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=_t.DISABLE_ARIA_EXPANDED;this.keepConnectedTooltipClosed=_t.KEEP_CONNECTED_TOOLTIP_CLOSED;this.arrowElement=null;this.hoverTimer=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSuppressOpening=!1;this.parseTrigger=()=>{var d;let a=(((d=this.trigger)==null?void 0:d.split(" "))||[]).filter(m=>Object.values(di).includes(m)).length>0?this.trigger:_t.TRIGGER;a==="mouseenter"&&(this.interactive?a="mouseenter click":a="mouseenter focusin"),this.trigger=a};this.setupTriggerListeners=()=>{if(this.trigger.includes("click")&&document.addEventListener("click",this.togglePopoverVisible,{capture:!0}),this.trigger.includes("mouseenter")){let t=this.renderRoot.querySelector(".popover-hover-bridge");t==null||t.addEventListener("mouseenter",this.show),document.addEventListener("mouseenter",this.handleMouseEnter,{capture:!0}),document.addEventListener("mouseleave",this.handleMouseLeave,{capture:!0}),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay)}this.trigger.includes("focusin")&&(document.addEventListener("focusin",this.handleFocusIn,{capture:!0}),this.interactive||document.addEventListener("focusout",this.handleFocusOut,{capture:!0}))};this.removeTriggerListeners=()=>{document.removeEventListener("click",this.togglePopoverVisible,{capture:!0});let t=this.renderRoot.querySelector(".popover-hover-bridge");t==null||t.removeEventListener("mouseenter",this.show),document.removeEventListener("mouseenter",this.handleMouseEnter,{capture:!0}),document.removeEventListener("mouseleave",this.handleMouseLeave,{capture:!0}),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),document.removeEventListener("focusin",this.handleFocusIn,{capture:!0}),document.removeEventListener("focusout",this.handleFocusOut,{capture:!0})};this.removeAllListeners=()=>{this.removeTriggerListeners(),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown,{capture:!0})),this.hideOnBlur&&this.removeEventListener("focusout",this.onPopoverFocusOut)};this.onOutsidePopoverClick=t=>{if(Ie.peek()!==this)return;let i=t.composedPath(),a=this.contains(t.target)||i.includes(this.triggerElement)||i.includes(this),d=this.backdropElement?i.includes(this.backdropElement):!1;(!a||d)&&(this.hide(),ci.onClickOutside(this))};this.onEscapeKeydown=t=>{!this.visible||t.code!=="Escape"||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),ci.onEscapeKeyPressed(this))};this.onPopoverFocusOut=t=>{this.contains(t.relatedTarget)||this.hide()};this.handleMouseEnter=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!0,this.show())};this.handleMouseLeave=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!1,this.startCloseDelay())};this.handleFocusOut=t=>{this.isEventFromTrigger(t)&&(this.isHovered||this.hide())};this.handleFocusIn=t=>{var i;this.isEventFromTrigger(t)&&((i=this.triggerElement)!=null&&i.matches(":focus-visible")||this.isHovered)&&this.show()};this.startCloseDelay=()=>{this.interactive?this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay):this.hide()};this.cancelCloseDelay=()=>{this.hoverTimer&&(window.clearTimeout(this.hoverTimer),this.hoverTimer=null)};this.show=()=>{this.visible||this.shouldSuppressOpening||(this.cancelCloseDelay(),this.openDelay>0?setTimeout(()=>{this.visible=!0},this.openDelay):this.visible=!0)};this.hide=()=>{this.closeDelay?setTimeout(()=>{this.visible=!1},this.closeDelay):this.visible=!1};this.togglePopoverVisible=t=>{this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show())};this.positionPopover=()=>{let{triggerElement:t}=this;if(!t)return;let i=!this.boundary||this.boundary==="clippingAncestors"?"clippingAncestors":Array.from(document.querySelectorAll(this.boundary)),a=this.boundaryRoot,d=[yf({boundary:i,rootBoundary:a,padding:this.boundaryPadding})],m=this.offset;if(this.flip&&d.push(Ef({boundary:i,rootBoundary:a})),this.size){let b=L=>{this.style.setProperty("--mdc-popover-internal-available-height",`${L}px`)},C=this.renderRoot.querySelector('[part="popover-content"]');d.push(Tf({boundary:i,rootBoundary:a,apply({availableHeight:L}){C&&(Object.assign(C.style,{maxHeight:`${L}px`,overflowY:"auto"}),b(L))},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector('div[part="popover-arrow"]'),this.arrowElement)){let b=this.arrowElement.offsetHeight,C=Math.sqrt(2*b**2)/2;m+=C,d.push(xf({element:this.arrowElement,padding:12}))}d.push(bf(m)),this.floatingUICleanupFunction=gf(t,this,async()=>{let{triggerElement:b}=this;if(!b)return;let{x:C,y:L,middlewareData:W,placement:q}=await Af(b,this,{placement:this.placement,middleware:d,strategy:this.strategy});this.utils.updatePopoverStyle(C,L),W.arrow&&this.arrowElement&&this.utils.updateArrowStyle(W.arrow,q),this.trigger.includes("mouseenter")&&this.interactive&&this.utils.setupHoverBridge(q)})};this.utils=new Vl(this),this.parseTrigger(),[this.openDelay,this.closeDelay]=this.utils.setupDelay()}get connectedTooltip(){let t=this.getRootNode().querySelectorAll(`mdc-tooltip[triggerID="${this.triggerID}"]`);return Array.from(t).find(i=>i!==this)}get triggerElement(){return this.getRootNode().querySelector(`[id="${this.triggerID}"]`)}async firstUpdated(t){super.firstUpdated(t),ci.onCreatedPopover(this)}connectedCallback(){super.connectedCallback(),this.style.zIndex=`${this.zIndex}`,this.utils.setupAppendTo(),this.setupTriggerListeners()}async disconnectedCallback(){var t,i;super.disconnectedCallback(),this.removeAllListeners(),(t=this.deactivateFocusTrap)==null||t.call(this),this.deactivatePreventScroll(),this.moveElementBackAfterBackdropRemoval(this.triggerElement),this.removeBackdrop(),(i=this.floatingUICleanupFunction)==null||i.call(this),this.cancelCloseDelay(),this.keepConnectedTooltipClosed&&this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),this.utils.cleanupAppendTo(),ci.onDestroyedPopover(this),Ie.remove(this)}async updated(t){if(super.updated(t),t.has("visible")){let i=t.get("visible")||!1;await this.isOpenUpdated(i,this.visible),this.utils.updateAriaExpandedAttribute()}t.has("trigger")&&(this.parseTrigger(),this.removeTriggerListeners(),this.setupTriggerListeners()),t.has("placement")&&this.setAttribute("placement",Object.values(Yt).includes(this.placement)?this.placement:_t.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(Eo).includes(this.color)?this.color:_t.COLOR),t.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),t.has("appendTo")&&(this.appendTo?this.utils.setupAppendTo():this.utils.cleanupAppendTo()),(t.has("interactive")||t.has("aria-label")||t.has("aria-labelledby"))&&this.utils.updateAriaLabels(),t.has("role")&&(this.role===""&&(this.role=null),this.utils.updateAriaModal()),t.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap(),t.has("preventScroll")&&(!this.preventScroll&&this.visible?this.deactivatePreventScroll():this.preventScroll&&this.visible&&this.activatePreventScroll())}async isOpenUpdated(t,i){var d,m;let{triggerElement:a}=this;t===i||!a||(i&&!this.shouldSuppressOpening?(Ie.peek()!==this&&Ie.push(this),this.keepConnectedTooltipClosed&&this.connectedTooltip&&(this.connectedTooltip.visible=!1,this.connectedTooltip.shouldSuppressOpening=!0),this.backdrop&&!this.backdropElement&&(this.createBackdrop("popover"),this.keepElementAboveBackdrop(a)),this.positionPopover(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(a.style.pointerEvents="none")),this.hideOnEscape&&(this.addEventListener("keydown",this.onEscapeKeydown),document.addEventListener("keydown",this.onEscapeKeydown)),this.activatePreventScroll(),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick,{capture:!0}),setTimeout(()=>{var b,C;this.interactive&&this.focusTrap&&((b=this.activateFocusTrap)==null||b.call(this),(C=this.setInitialFocus)==null||C.call(this))},0),ci.onShowPopover(this)):(Ie.peek()===this&&Ie.pop(),(d=this.floatingUICleanupFunction)==null||d.call(this),this.backdrop&&(this.moveElementBackAfterBackdropRemoval(a),this.removeBackdrop()),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(a.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.deactivatePreventScroll(),(m=this.deactivateFocusTrap)==null||m.call(this),this.focusBackToTrigger&&(a==null||a.focus()),this.keepConnectedTooltipClosed&&this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),ci.onHidePopover(this)))}isEventFromTrigger(t){var i;return this.triggerID?t.composed?t.composedPath().some(a=>(a==null?void 0:a.id)===this.triggerID):((i=t.target)==null?void 0:i.id)===this.triggerID:!1}render(){return _`
2575
2576
  <div part="popover-hover-bridge"></div>
2576
2577
  ${this.closeButton?_` <mdc-button
2577
2578
  part="popover-close"
@@ -2581,7 +2582,7 @@
2581
2582
  aria-label=${rt(this.closeButtonAriaLabel)||""}
2582
2583
  @click="${this.hide}"
2583
2584
  ></mdc-button>`:j}
2584
- ${this.showArrow?_`<div class="popover-arrow"></div>`:j}
2585
+ ${this.showArrow?_`<div class="popover-arrow" part="popover-arrow"></div>`:j}
2585
2586
  <div part="popover-content">
2586
2587
  <slot></slot>
2587
2588
  </div>
@@ -3292,9 +3293,9 @@
3292
3293
  --mdc-input-primary-border-color: var(--mds-color-theme-text-accent-normal);
3293
3294
  }
3294
3295
  :host,
3295
- .input-container,
3296
- .input-section,
3297
- .input {
3296
+ :host::part(input-container),
3297
+ :host::part(input-section),
3298
+ :host::part(input-text) {
3298
3299
  width: 100%;
3299
3300
  }
3300
3301
 
@@ -3302,42 +3303,42 @@
3302
3303
  font-family: inherit;
3303
3304
  }
3304
3305
 
3305
- :host .input-container:hover {
3306
+ :host::part(input-container):hover {
3306
3307
  background-color: var(--mdc-input-hover-background-color);
3307
3308
  }
3308
3309
 
3309
- :host .input-container:active,
3310
- :host .input-container:focus-within {
3310
+ :host::part(input-container):active,
3311
+ :host::part(input-container):focus-within {
3311
3312
  background-color: var(--mdc-input-focused-background-color);
3312
3313
  border-color: var(--mdc-input-focused-border-color);
3313
3314
  }
3314
3315
 
3315
- :host([readonly]) .leading-icon {
3316
+ :host([readonly])::part(leading-icon) {
3316
3317
  color: var(--mdc-input-support-text-color);
3317
3318
  }
3318
3319
 
3319
- :host([disabled]) .input,
3320
- :host([disabled]) .input::placeholder,
3321
- :host([disabled]) .prefix-text {
3320
+ :host([disabled])::part(input-text),
3321
+ :host([disabled]) input::placeholder,
3322
+ :host([disabled])::part(prefix-text) {
3322
3323
  color: var(--mdc-input-disabled-text-color);
3323
3324
  }
3324
3325
 
3325
- :host([disabled]) .input-container,
3326
- :host([readonly]) .input-container,
3327
- :host([disabled][help-text-type='default']) .input-container,
3328
- :host([disabled][help-text-type='success']) .input-container,
3329
- :host([disabled][help-text-type='warning']) .input-container,
3330
- :host([disabled][help-text-type='error']) .input-container,
3331
- :host([disabled][help-text-type='priority']) .input-container {
3326
+ :host([disabled])::part(input-container),
3327
+ :host([readonly])::part(input-container),
3328
+ :host([disabled][help-text-type='default'])::part(input-container),
3329
+ :host([disabled][help-text-type='success'])::part(input-container),
3330
+ :host([disabled][help-text-type='warning'])::part(input-container),
3331
+ :host([disabled][help-text-type='error'])::part(input-container),
3332
+ :host([disabled][help-text-type='priority'])::part(input-container) {
3332
3333
  border-color: var(--mdc-input-disabled-border-color);
3333
3334
  background: var(--mdc-input-disabled-background-color);
3334
3335
  }
3335
3336
 
3336
- .leading-icon {
3337
+ :host::part(leading-icon) {
3337
3338
  aspect-ratio: 1;
3338
3339
  }
3339
3340
 
3340
- .input-container {
3341
+ :host::part(input-container) {
3341
3342
  height: 2rem;
3342
3343
  border-radius: 0.5rem;
3343
3344
  border: 0.0625rem solid var(--mdc-input-border-color);
@@ -3348,46 +3349,46 @@
3348
3349
  min-width: 3.25rem;
3349
3350
  }
3350
3351
 
3351
- .input-section {
3352
+ :host::part(input-section) {
3352
3353
  display: flex;
3353
3354
  gap: 0.25rem;
3354
3355
  }
3355
3356
 
3356
- .input {
3357
+ :host::part(input-text) {
3357
3358
  border: none;
3358
3359
  color: var(--mdc-input-text-color);
3359
3360
  background-color: var(--mdc-input-background-color);
3360
3361
  outline: none;
3361
3362
  }
3362
3363
 
3363
- .input::selection {
3364
+ input::selection {
3364
3365
  background-color: var(--mdc-input-selection-background-color);
3365
3366
  color: var(--mdc-input-selection-text-color);
3366
3367
  }
3367
3368
 
3368
- .prefix-text {
3369
+ :host::part(prefix-text) {
3369
3370
  color: var(--mdc-input-support-text-color);
3370
3371
  white-space: nowrap; /* restrict prefix text to be in one line */
3371
3372
  }
3372
3373
 
3373
- .input::placeholder {
3374
+ input::placeholder {
3374
3375
  color: var(--mdc-input-support-text-color);
3375
3376
  }
3376
3377
 
3377
- :host([help-text-type='error']) .input-container,
3378
- :host([help-text-type='error']) .input-container:focus-within {
3378
+ :host([help-text-type='error'])::part(input-container),
3379
+ :host([help-text-type='error'])::part(input-container):focus-within {
3379
3380
  border-color: var(--mdc-input-error-border-color);
3380
3381
  }
3381
- :host([help-text-type='warning']) .input-container,
3382
- :host([help-text-type='warning']) .input-container:focus-within {
3382
+ :host([help-text-type='warning'])::part(input-container),
3383
+ :host([help-text-type='warning'])::part(input-container):focus-within {
3383
3384
  border-color: var(--mdc-input-warning-border-color);
3384
3385
  }
3385
- :host([help-text-type='success']) .input-container,
3386
- :host([help-text-type='success']) .input-container:focus-within {
3386
+ :host([help-text-type='success'])::part(input-container),
3387
+ :host([help-text-type='success'])::part(input-container):focus-within {
3387
3388
  border-color: var(--mdc-input-success-border-color);
3388
3389
  }
3389
- :host([help-text-type='priority']) .input-container,
3390
- :host([help-text-type='priority']) input-container:focus-within {
3390
+ :host([help-text-type='priority'])::part(input-container),
3391
+ :host([help-text-type='priority'])::part(input-container):focus-within {
3391
3392
  border-color: var(--mdc-input-primary-border-color);
3392
3393
  }
3393
3394
 
@@ -3397,7 +3398,6 @@
3397
3398
  }
3398
3399
  `,...St(!0)],Wf=wT;var ae=class extends ge(Te(Ht(cr))){constructor(){super(...arguments);this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=Gl.OFF;this.autocomplete=As.OFF;this.clearAriaLabel=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(t=>{this.onerror&&this.onerror(t)})}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}formResetCallback(){this.value="",this.inputElement.value="",this.setInputValidity(),this.requestUpdate()}formStateRestoreCallback(t){this.value=t}attributeChangedCallback(t,i,a){super.attributeChangedCallback(t,i,a),t==="validation-message"&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(d=>{this.onerror&&this.onerror(d)})}setInputValidity(){this.inputElement.setCustomValidity(""),!this.inputElement.validity.valid&&this.validationMessage&&this.inputElement.setCustomValidity(this.validationMessage),this.setValidity()}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value)}onInput(){this.updateValue(),this.setInputValidity(),this.checkValidity()}onChange(t){this.updateValue(),this.setInputValidity();let i=t.constructor;this.dispatchEvent(new i(t.type,t))}handleKeyDown(t){var i;t.key===Q.ENTER&&((i=this.form)==null||i.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?_`
3399
3400
  <mdc-icon
3400
- class="leading-icon"
3401
3401
  part="leading-icon"
3402
3402
  name=${this.leadingIcon}
3403
3403
  size="${pi.ICON_SIZE_VALUE}"
@@ -3406,7 +3406,7 @@
3406
3406
  </mdc-icon>
3407
3407
  `:j}renderPrefixText(){return this.prefixText?_`
3408
3408
  <mdc-text
3409
- class="prefix-text"
3409
+ part="prefix-text"
3410
3410
  tagname="${pi.PREFIX_TEXT_TAG}"
3411
3411
  type="${pi.PREFIX_TEXT_TYPE}"
3412
3412
  aria-hidden="true"
@@ -3426,8 +3426,7 @@
3426
3426
  ></mdc-button>
3427
3427
  `:j}renderInputElement(t,i=!1){var d;let a=i?"":this.placeholder;return _`<input
3428
3428
  aria-label="${(d=this.dataAriaLabel)!=null?d:""}"
3429
- class="input"
3430
- part="mdc-input"
3429
+ part="input-text"
3431
3430
  id="${this.inputId}"
3432
3431
  name="${this.name}"
3433
3432
  .value="${Ua(this.value)}"
@@ -3451,9 +3450,9 @@
3451
3450
  @keydown=${this.handleKeyDown}
3452
3451
  />`}render(){return _`
3453
3452
  ${this.renderLabel()}
3454
- <div class="input-container mdc-focus-ring" part="input-container">
3453
+ <div class="mdc-focus-ring" part="input-container">
3455
3454
  <slot name="input-leading-icon">${this.renderLeadingIcon()}</slot>
3456
- <div class="input-section" part="input-section">
3455
+ <div part="input-section">
3457
3456
  <slot name="input-prefix-text">${this.renderPrefixText()}</slot>
3458
3457
  <slot name="input">${this.renderInputElement(pi.INPUT_TYPE)}</slot>
3459
3458
  </div>
@@ -3985,19 +3984,19 @@
3985
3984
  border-radius: var(--mdc-statictoggle-border-radius-compact);
3986
3985
  }
3987
3986
 
3988
- .icon {
3987
+ :host::part(toggle-icon) {
3989
3988
  padding: 0.25rem;
3990
3989
  --mdc-icon-fill-color: var(--mdc-statictoggle-icon-color-normal);
3991
3990
  background-color: var(--mdc-statictoggle-icon-background-color-normal);
3992
3991
  border-radius: 50%;
3993
3992
  }
3994
3993
 
3995
- :host([disabled]) .icon {
3994
+ :host([disabled])::part(toggle-icon) {
3996
3995
  --mdc-icon-fill-color: var(--mdc-statictoggle-icon-color-disabled);
3997
3996
  background-color: var(--mdc-statictoggle-icon-background-color-disabled);
3998
3997
  }
3999
3998
 
4000
- :host([size='compact']) .icon {
3999
+ :host([size='compact'])::part(toggle-icon) {
4001
4000
  padding: 0.125rem;
4002
4001
  }
4003
4002
 
@@ -4012,16 +4011,19 @@
4012
4011
  /* High Contrast Mode */
4013
4012
  @media (forced-colors: active) {
4014
4013
  :host([checked])::part(slider),
4015
- .icon {
4014
+ :host::part(toggle-icon) {
4016
4015
  border: var(--mdc-statictoggle-border);
4017
4016
  }
4017
+ :host::part(toggle-icon) {
4018
+ --mdc-icon-fill-color: CanvasText;
4019
+ }
4018
4020
  }
4019
4021
  `],vv=ZT;var ws=class extends zt(K){constructor(){super(...arguments);this.checked=!1;this.size=fv.SIZE}render(){return _`
4020
4022
  <slot></slot>
4021
4023
  <div part="slider">
4022
4024
  <mdc-icon
4023
4025
  name="${this.checked?rh.CHECKED:rh.UNCHECKED}"
4024
- class="icon"
4026
+ part="toggle-icon"
4025
4027
  length-unit="rem"
4026
4028
  size="${uv[this.size]}"
4027
4029
  ></mdc-icon>
@@ -4880,7 +4882,7 @@
4880
4882
  `,Gv=[_x];var Yv=V.constructTagName("searchfield"),an={TYPE:Ss.SEARCH,ICON:"search-bold",CLOSE_BTN:!0,INPUT_CHIP_TAG:Yl};var Ro=class extends Sr{constructor(){super(...arguments);this.isInputFocused=!1;this.hasInputChips=!1}handleKeyDown(t){super.handleKeyDown(t),t.key===Q.ESCAPE&&this.clearInputText()}connectedCallback(){super.connectedCallback(),this.leadingIcon=an.ICON,this.trailingButton=an.CLOSE_BTN,this.helpText=void 0,this.helpTextType=void 0,this.required=void 0,this.validationMessage=void 0,this.prefixText=void 0}renderInputChips(){var t;this.hasInputChips=!!((t=this.inputChips)!=null&&t.length),this.inputChips&&this.inputChips.forEach(i=>{i.matches(an.INPUT_CHIP_TAG)||i.remove()})}firstUpdated(t){this.inputElement.onfocus=()=>{this.isInputFocused=!0},this.inputElement.onblur=()=>{this.isInputFocused=!1},super.firstUpdated(t)}clearInputText(){var t;super.clearInputText(),(t=this.inputChips)==null||t.forEach(i=>{i.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))})}render(){return _`
4881
4883
  ${this.renderLabelElement()}
4882
4884
  <div
4883
- class="${Ls({"input-container":!0,"mdc-focus-ring":this.isInputFocused})}"
4885
+ class="${Ls({"mdc-focus-ring":this.isInputFocused})}"
4884
4886
  part="input-container"
4885
4887
  >
4886
4888
  ${this.renderLeadingIcon()}
@@ -6022,7 +6024,7 @@
6022
6024
  align-self: stretch;
6023
6025
  }
6024
6026
 
6025
- .has-footer-buttons {
6027
+ :host::part(has-footer-buttons) {
6026
6028
  margin-top: 1rem;
6027
6029
  }
6028
6030
 
@@ -6049,7 +6051,7 @@
6049
6051
  ${this.headerText}
6050
6052
  </mdc-text>
6051
6053
  `:j}handleFooterSlot(t,i){super.handleFooterSlot(t,i),this.updateFooterButtonsPresence()}renderFooter(){return this.updateFooterButtonsPresence(),_` <slot name="footer">
6052
- <div part="footer" class="${this.hasFooterButtons}">
6054
+ <div part="footer ${this.hasFooterButtons}">
6053
6055
  ${this.renderToggleDetailButton()}
6054
6056
  <slot
6055
6057
  name="footer-button-secondary"
@@ -6287,7 +6289,7 @@
6287
6289
  :host([disabled])::part(combobox__button) {
6288
6290
  border-left: 1px solid var(--mdc-combobox-text-color-disabled);
6289
6291
  }
6290
- :host::part(mdc-input) {
6292
+ :host::part(input-text) {
6291
6293
  width: calc(100% - 1.5rem);
6292
6294
  }
6293
6295
  :host::part(combobox__button-icon) {
@@ -6360,8 +6362,7 @@
6360
6362
  ?disabled="${this.disabled}"
6361
6363
  .value="${Ua(this.filteredValue)}"
6362
6364
  autocomplete="${As.OFF}"
6363
- class="input"
6364
- part="mdc-input"
6365
+ part="input-text"
6365
6366
  placeholder="${rt(this.placeholder)}"
6366
6367
  role="${et.COMBOBOX}"
6367
6368
  ?readonly="${this.readonly}"