@momentum-design/components 0.61.1 → 0.62.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -237,7 +237,7 @@
237
237
  :host([size="20"]){
238
238
  height: var(--mdc-button-height-size-20);
239
239
  }
240
- `,...O()],As=$c;var ye=class extends Zt(H(v)){constructor(){super();this.size=Lr.SIZE;this.role=Lr.ROLE;this.type=Lr.TYPE;this.prevTabindex=0;this.internals=this.attachInternals(),this.addEventListener("click",this.executeAction.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}get form(){return this.internals.form}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this,this.disabled),e.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),e.has("active")&&(this.active!==void 0&&(this.ariaStateKey=this.ariaStateKey||Lr.ARIA_STATE_KEY),this.setActive(this,this.active))}executeAction(){this.type===Yt.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===Yt.RESET&&this.form&&this.form.reset()}setActive(e,r){this.ariaStateKey&&this.ariaStateKey.split(",").filter(a=>a.trim().startsWith("aria-")).forEach(a=>{r===!0?e.setAttribute(a.trim(),"true"):r===!1?e.setAttribute(a.trim(),"false"):e.removeAttribute(a.trim())})}setSoftDisabled(e,r){r?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled")}setDisabled(e,r){r?(e.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),e.removeAttribute("aria-disabled"))}triggerClickEvent(){let e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(e)}handleBlur(){this.classList.contains("pressed")&&this.classList.remove("pressed")}handleKeyDown(e){["Enter"," "].includes(e.key)&&(this.classList.add("pressed"),e.key==="Enter"&&this.triggerClickEvent(),e.preventDefault())}handleKeyUp(e){["Enter"," "].includes(e.key)&&(this.classList.remove("pressed"),e.key===" "&&this.triggerClickEvent())}render(){return m` <slot></slot> `}};ye.formAssociated=!0,ye.styles=[...v.styles,...As],n([c({type:Boolean,reflect:!0})],ye.prototype,"active",2),n([c({type:Boolean,attribute:"soft-disabled",reflect:!0})],ye.prototype,"softDisabled",2),n([c({type:Number,reflect:!0})],ye.prototype,"size",2),n([c({type:String,reflect:!0})],ye.prototype,"role",2),n([c({type:String,reflect:!0})],ye.prototype,"ariaStateKey",2),n([c({reflect:!0})],ye.prototype,"type",2);var me=ye;var Xt=class extends me{constructor(){super(...arguments);this.variant=qt.VARIANT;this.label=""}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=qt.SIZE,this.role=qt.ROLE}render(){return m`
240
+ `,...O()],As=$c;var ge=class extends Zt(H(v)){constructor(){super();this.size=Lr.SIZE;this.role=Lr.ROLE;this.type=Lr.TYPE;this.prevTabindex=0;this.internals=this.attachInternals(),this.addEventListener("click",this.executeAction.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}get form(){return this.internals.form}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this,this.disabled),e.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),e.has("active")&&(this.active!==void 0&&(this.ariaStateKey=this.ariaStateKey||Lr.ARIA_STATE_KEY),this.setActive(this,this.active))}executeAction(){this.type===Yt.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===Yt.RESET&&this.form&&this.form.reset()}setActive(e,r){this.ariaStateKey&&this.ariaStateKey.split(",").filter(a=>a.trim().startsWith("aria-")).forEach(a=>{r===!0?e.setAttribute(a.trim(),"true"):r===!1?e.setAttribute(a.trim(),"false"):e.removeAttribute(a.trim())})}setSoftDisabled(e,r){r?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled")}setDisabled(e,r){r?(e.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),e.removeAttribute("aria-disabled"))}triggerClickEvent(){let e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(e)}handleBlur(){this.classList.contains("pressed")&&this.classList.remove("pressed")}handleKeyDown(e){["Enter"," "].includes(e.key)&&(this.classList.add("pressed"),e.key==="Enter"&&this.triggerClickEvent(),e.preventDefault())}handleKeyUp(e){["Enter"," "].includes(e.key)&&(this.classList.remove("pressed"),e.key===" "&&this.triggerClickEvent())}render(){return m` <slot></slot> `}};ge.formAssociated=!0,ge.styles=[...v.styles,...As],n([c({type:Boolean,reflect:!0})],ge.prototype,"active",2),n([c({type:Boolean,attribute:"soft-disabled",reflect:!0})],ge.prototype,"softDisabled",2),n([c({type:Number,reflect:!0})],ge.prototype,"size",2),n([c({type:String,reflect:!0})],ge.prototype,"role",2),n([c({type:String,reflect:!0})],ge.prototype,"ariaStateKey",2),n([c({reflect:!0})],ge.prototype,"type",2);var me=ge;var Xt=class extends me{constructor(){super(...arguments);this.variant=qt.VARIANT;this.label=""}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=qt.SIZE,this.role=qt.ROLE}render(){return m`
241
241
  <mdc-icon part="icon" name="${Ts(this.variant)}" length-unit="rem" size="1"></mdc-icon>
242
242
  <mdc-text part="label" type="${qt.TEXT_TYPE}" tagname="${qt.TAG_NAME}">${this.label}</mdc-text>
243
243
  `}};Xt.styles=[...v.styles,...fs],n([c({type:String})],Xt.prototype,"variant",2),n([c({type:String})],Xt.prototype,"label",2);var ki=Xt;var Ss=u`
@@ -550,7 +550,7 @@
550
550
  <div part="trailing-section">
551
551
  <slot name="trailing"></slot>
552
552
  </div>
553
- </header>`}};Io.styles=[...v.styles,...$s];var Ri=Io;var zs=f.constructTagName("appheader");Ri.register(zs);var Yc=Ri;var A=i=>i!=null?i:g;var Ps=f.constructTagName("avatar"),K={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},Oi=99,qc="user-regular",D={24:24,32:32,48:48,64:64,72:72,88:88,124:124},jt={TYPE:K.PHOTO,SIZE:D[32],ICON_NAME:qc};var wo=i=>{class t extends i{constructor(){super(...arguments);this.size=jt.SIZE;this.isTyping=!1}}return n([c({type:String})],t.prototype,"src",2),n([c({type:String})],t.prototype,"initials",2),n([c({type:String})],t.prototype,"presence",2),n([c({type:Number,reflect:!0,attribute:"size"})],t.prototype,"size",2),n([c({type:Number})],t.prototype,"counter",2),n([c({type:Boolean,attribute:"is-typing"})],t.prototype,"isTyping",2),t};var ee=i=>{class t extends i{}return n([c({type:String,attribute:"icon-name"})],t.prototype,"iconName",2),t};var Zc=[_,u`
553
+ </header>`}};Io.styles=[...v.styles,...$s];var Ri=Io;var zs=f.constructTagName("appheader");Ri.register(zs);var Yc=Ri;var T=i=>i!=null?i:g;var Ps=f.constructTagName("avatar"),K={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},Oi=99,qc="user-regular",D={24:24,32:32,48:48,64:64,72:72,88:88,124:124},jt={TYPE:K.PHOTO,SIZE:D[32],ICON_NAME:qc};var wo=i=>{class t extends i{constructor(){super(...arguments);this.size=jt.SIZE;this.isTyping=!1}}return n([c({type:String})],t.prototype,"src",2),n([c({type:String})],t.prototype,"initials",2),n([c({type:String})],t.prototype,"presence",2),n([c({type:Number,reflect:!0,attribute:"size"})],t.prototype,"size",2),n([c({type:Number})],t.prototype,"counter",2),n([c({type:Boolean,attribute:"is-typing"})],t.prototype,"isTyping",2),t};var ee=i=>{class t extends i{}return n([c({type:String,attribute:"icon-name"})],t.prototype,"iconName",2),t};var Zc=[_,u`
554
554
  :host {
555
555
  --mdc-avatar-default-background-color: var(--mds-color-theme-avatar-default);
556
556
  --mdc-avatar-default-foreground-color: var(--mds-color-theme-common-text-primary-normal);
@@ -678,7 +678,7 @@
678
678
  `:g}handleOnLoad(){this.isPhotoLoaded=!0}handleOnError(){this.isPhotoLoaded=!1,this.onerror&&this.onerror("There was a problem while fetching the <img/>. Please check the src attribute and try again.")}photoTemplate(){return m`
679
679
  <img
680
680
  part="photo"
681
- src="${A(this.src)}"
681
+ src="${T(this.src)}"
682
682
  aria-hidden="true"
683
683
  ?hidden="${!this.isPhotoLoaded}"
684
684
  @load="${this.handleOnLoad}"
@@ -686,7 +686,7 @@
686
686
  />
687
687
  `}iconTemplate(){let e=this.iconName||jt.ICON_NAME;return m`
688
688
  <mdc-icon
689
- name="${A(e)}"
689
+ name="${T(e)}"
690
690
  length-unit="rem"
691
691
  size="${Bs(this.size)}"
692
692
  ></mdc-icon>
@@ -841,12 +841,12 @@
841
841
  <div part="overlay" aria-hidden="true"></div>
842
842
  <mdc-avatar
843
843
  ?is-typing="${this.isTyping}"
844
- counter="${A(this.counter)}"
845
- icon-name="${A(this.iconName)}"
846
- initials="${A(this.initials)}"
847
- presence="${A(this.presence)}"
848
- size="${A(this.size)}"
849
- src="${A(this.src)}"
844
+ counter="${T(this.counter)}"
845
+ icon-name="${T(this.iconName)}"
846
+ initials="${T(this.initials)}"
847
+ presence="${T(this.presence)}"
848
+ size="${T(this.size)}"
849
+ src="${T(this.src)}"
850
850
  ></mdc-avatar>
851
851
  `}};Pr.styles=[...Ys],n([c({type:String,attribute:"aria-label"})],Pr.prototype,"ariaLabel",2);var $i=Pr;var qs=f.constructTagName("avatarbutton");$i.register(qs);var Jc=$i;var ko={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Vr=i=>(...t)=>({_$litDirective$:i,values:t}),tr=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this.t=t,this._$AM=e,this.i=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var rr=Vr(class extends tr{constructor(i){var t;if(super(i),i.type!==ko.ATTRIBUTE||i.name!=="class"||((t=i.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(i){return" "+Object.keys(i).filter(t=>i[t]).join(" ")+" "}update(i,[t]){var r,o;if(this.st===void 0){this.st=new Set,i.strings!==void 0&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter(a=>a!=="")));for(let a in t)t[a]&&!((r=this.nt)!=null&&r.has(a))&&this.st.add(a);return this.render(t)}let e=i.element.classList;for(let a of this.st)a in t||(e.remove(a),this.st.delete(a));for(let a in t){let s=!!t[a];s===this.st.has(a)||(o=this.nt)!=null&&o.has(a)||(s?(e.add(a),this.st.add(a)):(e.remove(a),this.st.delete(a)))}return Me}});var Zs=f.constructTagName("badge"),Pe={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},No={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},_o={PRIMARY:"primary",SECONDARY:"secondary"},Ur={SUCCESS:"success",WARNING:"warning",ERROR:"error"},Mv={..._o,...Ur},tt={TYPE:Pe.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:_o.PRIMARY,ICON_SIZE:1};var ed=[_,u`
852
852
  :host {
@@ -920,7 +920,7 @@
920
920
  `],Xs=ed;var ke=class extends ee(v){constructor(){super(...arguments);this.variant=tt.VARIANT;this.maxCounter=tt.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,r){return r===void 0||typeof r!="number"||e===0?"":r>e?`${e}+`:e>tt.MAX_COUNTER_LIMIT||r>tt.MAX_COUNTER_LIMIT?`${tt.MAX_COUNTER_LIMIT}+`:r.toString()}getBadgeIcon(e,r){return m`
921
921
  <mdc-icon
922
922
  class="mdc-badge-icon ${rr({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${r}`]:!0})}"
923
- name="${A(e)}"
923
+ name="${T(e)}"
924
924
  size="${tt.ICON_SIZE}"
925
925
  ></mdc-icon>
926
926
  `}getBadgeDot(){return m`<div class="mdc-badge-dot ${rr({"mdc-badge-overlay":this.overlay})}"></div>`}getBadgeCounterText(){return m`
@@ -1361,8 +1361,8 @@
1361
1361
  type="checkbox"
1362
1362
  class="input"
1363
1363
  ?autofocus="${this.autofocus}"
1364
- name="${A(this.name)}"
1365
- value="${A(this.value)}"
1364
+ name="${T(this.name)}"
1365
+ value="${T(this.value)}"
1366
1366
  ?required="${!!this.requiredLabel}"
1367
1367
  .checked="${this.checked}"
1368
1368
  aria-checked="${this.indeterminate?"mixed":this.checked}"
@@ -1370,7 +1370,7 @@
1370
1370
  .disabled="${this.disabled}"
1371
1371
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
1372
1372
  tabindex="${this.disabled?-1:0}"
1373
- aria-describedby="${A(this.helpText?V.HELPER_TEXT_ID:"")}"
1373
+ aria-describedby="${T(this.helpText?V.HELPER_TEXT_ID:"")}"
1374
1374
  @change=${this.handleChange}
1375
1375
  @keydown=${this.handleKeyDown}
1376
1376
  />
@@ -1586,7 +1586,7 @@
1586
1586
  `:g}render(){return m`
1587
1587
  ${this.renderIcon()}
1588
1588
  <mdc-text type="${ar.TEXT_TYPE}" tagname="${ar.TAG_NAME}">${this.label}</mdc-text>
1589
- `}};sr.styles=[...v.styles,...pn],n([c({type:String,reflect:!0})],sr.prototype,"color",2),n([c({type:String})],sr.prototype,"label",2);var nr=sr;nr.register(hn);var gd=nr;var Ne=Math.min,Q=Math.max,Gr=Math.round,Wr=Math.floor,xe=i=>({x:i,y:i}),yd={left:"right",right:"left",bottom:"top",top:"bottom"},xd={start:"end",end:"start"};function Mo(i,t,e){return Q(i,Ne(t,e))}function yt(i,t){return typeof i=="function"?i(t):i}function Be(i){return i.split("-")[0]}function xt(i){return i.split("-")[1]}function Wi(i){return i==="x"?"y":"x"}function Do(i){return i==="y"?"height":"width"}function rt(i){return["top","bottom"].includes(Be(i))?"y":"x"}function $o(i){return Wi(rt(i))}function un(i,t,e){e===void 0&&(e=!1);let r=xt(i),o=$o(i),a=Do(o),s=o==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Hr(s)),[s,Hr(s)]}function fn(i){let t=Hr(i);return[Oo(i),t,Oo(t)]}function Oo(i){return i.replace(/start|end/g,t=>xd[t])}function Ed(i,t,e){let r=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(i){case"top":case"bottom":return e?t?o:r:t?r:o;case"left":case"right":return t?a:s;default:return[]}}function bn(i,t,e,r){let o=xt(i),a=Ed(Be(i),e==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Oo)))),a}function Hr(i){return i.replace(/left|right|bottom|top/g,t=>yd[t])}function Td(i){return{top:0,right:0,bottom:0,left:0,...i}}function Yi(i){return typeof i!="number"?Td(i):{top:i,right:i,bottom:i,left:i}}function Et(i){let{x:t,y:e,width:r,height:o}=i;return{width:r,height:o,top:e,left:t,right:t+r,bottom:e+o,x:t,y:e}}function vn(i,t,e){let{reference:r,floating:o}=i,a=rt(t),s=$o(t),l=Do(s),d=Be(t),p=a==="y",h=r.x+r.width/2-o.width/2,b=r.y+r.height/2-o.height/2,x=r[l]/2-o[l]/2,y;switch(d){case"top":y={x:h,y:r.y-o.height};break;case"bottom":y={x:h,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:b};break;case"left":y={x:r.x-o.width,y:b};break;default:y={x:r.x,y:r.y}}switch(xt(t)){case"start":y[s]-=x*(e&&p?-1:1);break;case"end":y[s]+=x*(e&&p?-1:1);break}return y}var gn=async(i,t,e)=>{let{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=e,l=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t)),p=await s.getElementRects({reference:i,floating:t,strategy:o}),{x:h,y:b}=vn(p,r,d),x=r,y={},E=0;for(let T=0;T<l.length;T++){let{name:w,fn:S}=l[T],{x:C,y:R,data:B,reset:z}=await S({x:h,y:b,initialPlacement:r,placement:x,strategy:o,middlewareData:y,rects:p,platform:s,elements:{reference:i,floating:t}});h=C!=null?C:h,b=R!=null?R:b,y={...y,[w]:{...y[w],...B}},z&&E<=50&&(E++,typeof z=="object"&&(z.placement&&(x=z.placement),z.rects&&(p=z.rects===!0?await s.getElementRects({reference:i,floating:t,strategy:o}):z.rects),{x:h,y:b}=vn(p,x,d)),T=-1)}return{x:h,y:b,placement:x,strategy:o,middlewareData:y}};async function zo(i,t){var e;t===void 0&&(t={});let{x:r,y:o,platform:a,rects:s,elements:l,strategy:d}=i,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:b="floating",altBoundary:x=!1,padding:y=0}=yt(t,i),E=Yi(y),w=l[x?b==="floating"?"reference":"floating":b],S=Et(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement(w)))==null||e?w:w.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:h,strategy:d})),C=b==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),B=await(a.isElement==null?void 0:a.isElement(R))?await(a.getScale==null?void 0:a.getScale(R))||{x:1,y:1}:{x:1,y:1},z=Et(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:C,offsetParent:R,strategy:d}):C);return{top:(S.top-z.top+E.top)/B.y,bottom:(z.bottom-S.bottom+E.bottom)/B.y,left:(S.left-z.left+E.left)/B.x,right:(z.right-S.right+E.right)/B.x}}var yn=i=>({name:"arrow",options:i,async fn(t){let{x:e,y:r,placement:o,rects:a,platform:s,elements:l,middlewareData:d}=t,{element:p,padding:h=0}=yt(i,t)||{};if(p==null)return{};let b=Yi(h),x={x:e,y:r},y=$o(o),E=Do(y),T=await s.getDimensions(p),w=y==="y",S=w?"top":"left",C=w?"bottom":"right",R=w?"clientHeight":"clientWidth",B=a.reference[E]+a.reference[y]-x[y]-a.floating[E],z=x[y]-a.reference[y],de=await(s.getOffsetParent==null?void 0:s.getOffsetParent(p)),ve=de?de[R]:0;(!ve||!await(s.isElement==null?void 0:s.isElement(de)))&&(ve=l.floating[R]||a.floating[E]);let _e=B/2-z/2,Se=ve/2-T[E]/2-1,ge=Ne(b[S],Se),qe=Ne(b[C],Se),Ie=ge,Ze=ve-T[E]-qe,X=ve/2-T[E]/2+_e,Ft=Mo(Ie,X,Ze),Le=!d.arrow&&xt(o)!=null&&X!==Ft&&a.reference[E]/2-(X<Ie?ge:qe)-T[E]/2<0,we=Le?X<Ie?X-Ie:X-Ze:0;return{[y]:x[y]+we,data:{[y]:Ft,centerOffset:X-Ft-we,...Le&&{alignmentOffset:we}},reset:Le}}});var xn=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(t){var e,r;let{placement:o,middlewareData:a,rects:s,initialPlacement:l,platform:d,elements:p}=t,{mainAxis:h=!0,crossAxis:b=!0,fallbackPlacements:x,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:T=!0,...w}=yt(i,t);if((e=a.arrow)!=null&&e.alignmentOffset)return{};let S=Be(o),C=rt(l),R=Be(l)===l,B=await(d.isRTL==null?void 0:d.isRTL(p.floating)),z=x||(R||!T?[Hr(l)]:fn(l)),de=E!=="none";!x&&de&&z.push(...bn(l,T,E,B));let ve=[l,...z],_e=await zo(t,w),Se=[],ge=((r=a.flip)==null?void 0:r.overflows)||[];if(h&&Se.push(_e[S]),b){let X=un(o,s,B);Se.push(_e[X[0]],_e[X[1]])}if(ge=[...ge,{placement:o,overflows:Se}],!Se.every(X=>X<=0)){var qe,Ie;let X=(((qe=a.flip)==null?void 0:qe.index)||0)+1,Ft=ve[X];if(Ft)return{data:{index:X,overflows:ge},reset:{placement:Ft}};let Le=(Ie=ge.filter(we=>we.overflows[0]<=0).sort((we,Xe)=>we.overflows[1]-Xe.overflows[1])[0])==null?void 0:Ie.placement;if(!Le)switch(y){case"bestFit":{var Ze;let we=(Ze=ge.filter(Xe=>{if(de){let Ke=rt(Xe.placement);return Ke===C||Ke==="y"}return!0}).map(Xe=>[Xe.placement,Xe.overflows.filter(Ke=>Ke>0).reduce((Ke,gc)=>Ke+gc,0)]).sort((Xe,Ke)=>Xe[1]-Ke[1])[0])==null?void 0:Ze[0];we&&(Le=we);break}case"initialPlacement":Le=l;break}if(o!==Le)return{reset:{placement:Le}}}return{}}}};async function Ad(i,t){let{placement:e,platform:r,elements:o}=i,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Be(e),l=xt(e),d=rt(e)==="y",p=["left","top"].includes(s)?-1:1,h=a&&d?-1:1,b=yt(t,i),{mainAxis:x,crossAxis:y,alignmentAxis:E}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return l&&typeof E=="number"&&(y=l==="end"?E*-1:E),d?{x:y*h,y:x*p}:{x:x*p,y:y*h}}var En=function(i){return i===void 0&&(i=0),{name:"offset",options:i,async fn(t){var e,r;let{x:o,y:a,placement:s,middlewareData:l}=t,d=await Ad(t,i);return s===((e=l.offset)==null?void 0:e.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:a+d.y,data:{...d,placement:s}}}}},Tn=function(i){return i===void 0&&(i={}),{name:"shift",options:i,async fn(t){let{x:e,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:w=>{let{x:S,y:C}=w;return{x:S,y:C}}},...d}=yt(i,t),p={x:e,y:r},h=await zo(t,d),b=rt(Be(o)),x=Wi(b),y=p[x],E=p[b];if(a){let w=x==="y"?"top":"left",S=x==="y"?"bottom":"right",C=y+h[w],R=y-h[S];y=Mo(C,y,R)}if(s){let w=b==="y"?"top":"left",S=b==="y"?"bottom":"right",C=E+h[w],R=E-h[S];E=Mo(C,E,R)}let T=l.fn({...t,[x]:y,[b]:E});return{...T,data:{x:T.x-e,y:T.y-r,enabled:{[x]:a,[b]:s}}}}}};var An=function(i){return i===void 0&&(i={}),{name:"size",options:i,async fn(t){var e,r;let{placement:o,rects:a,platform:s,elements:l}=t,{apply:d=()=>{},...p}=yt(i,t),h=await zo(t,p),b=Be(o),x=xt(o),y=rt(o)==="y",{width:E,height:T}=a.floating,w,S;b==="top"||b==="bottom"?(w=b,S=x===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(S=b,w=x==="end"?"top":"bottom");let C=T-h.top-h.bottom,R=E-h.left-h.right,B=Ne(T-h[w],C),z=Ne(E-h[S],R),de=!t.middlewareData.shift,ve=B,_e=z;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&(_e=R),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(ve=C),de&&!x){let ge=Q(h.left,0),qe=Q(h.right,0),Ie=Q(h.top,0),Ze=Q(h.bottom,0);y?_e=E-2*(ge!==0||qe!==0?ge+qe:Q(h.left,h.right)):ve=T-2*(Ie!==0||Ze!==0?Ie+Ze:Q(h.top,h.bottom))}await d({...t,availableWidth:_e,availableHeight:ve});let Se=await s.getDimensions(l.floating);return E!==Se.width||T!==Se.height?{reset:{rects:!0}}:{}}}};function Po(){return typeof window<"u"}function Tt(i){return In(i)?(i.nodeName||"").toLowerCase():"#document"}function oe(i){var t;return(i==null||(t=i.ownerDocument)==null?void 0:t.defaultView)||window}function Ee(i){var t;return(t=(In(i)?i.ownerDocument:i.document)||window.document)==null?void 0:t.documentElement}function In(i){return Po()?i instanceof Node||i instanceof oe(i).Node:!1}function pe(i){return Po()?i instanceof Element||i instanceof oe(i).Element:!1}function Te(i){return Po()?i instanceof HTMLElement||i instanceof oe(i).HTMLElement:!1}function Sn(i){return!Po()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof oe(i).ShadowRoot}function cr(i){let{overflow:t,overflowX:e,overflowY:r,display:o}=he(i);return/auto|scroll|overlay|hidden|clip/.test(t+r+e)&&!["inline","contents"].includes(o)}function wn(i){return["table","td","th"].includes(Tt(i))}function Yr(i){return[":popover-open",":modal"].some(t=>{try{return i.matches(t)}catch{return!1}})}function Vo(i){let t=Uo(),e=pe(i)?he(i):i;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(e.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(e.contain||"").includes(r))}function Cn(i){let t=He(i);for(;Te(t)&&!At(t);){if(Vo(t))return t;if(Yr(t))return null;t=He(t)}return null}function Uo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function At(i){return["html","body","#document"].includes(Tt(i))}function he(i){return oe(i).getComputedStyle(i)}function qr(i){return pe(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function He(i){if(Tt(i)==="html")return i;let t=i.assignedSlot||i.parentNode||Sn(i)&&i.host||Ee(i);return Sn(t)?t.host:t}function kn(i){let t=He(i);return At(t)?i.ownerDocument?i.ownerDocument.body:i.body:Te(t)&&cr(t)?t:kn(t)}function lr(i,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);let o=kn(i),a=o===((r=i.ownerDocument)==null?void 0:r.body),s=oe(o);if(a){let l=Fo(s);return t.concat(s,s.visualViewport||[],cr(o)?o:[],l&&e?lr(l):[])}return t.concat(o,lr(o,[],e))}function Fo(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function Ln(i){let t=he(i),e=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=Te(i),a=o?i.offsetWidth:e,s=o?i.offsetHeight:r,l=Gr(e)!==a||Gr(r)!==s;return l&&(e=a,r=s),{width:e,height:r,$:l}}function Zi(i){return pe(i)?i:i.contextElement}function dr(i){let t=Zi(i);if(!Te(t))return xe(1);let e=t.getBoundingClientRect(),{width:r,height:o,$:a}=Ln(t),s=(a?Gr(e.width):e.width)/r,l=(a?Gr(e.height):e.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Sd=xe(0);function Rn(i){let t=oe(i);return!Uo()||!t.visualViewport?Sd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Id(i,t,e){return t===void 0&&(t=!1),!e||t&&e!==oe(i)?!1:t}function St(i,t,e,r){t===void 0&&(t=!1),e===void 0&&(e=!1);let o=i.getBoundingClientRect(),a=Zi(i),s=xe(1);t&&(r?pe(r)&&(s=dr(r)):s=dr(i));let l=Id(a,e,r)?Rn(a):xe(0),d=(o.left+l.x)/s.x,p=(o.top+l.y)/s.y,h=o.width/s.x,b=o.height/s.y;if(a){let x=oe(a),y=r&&pe(r)?oe(r):r,E=x,T=Fo(E);for(;T&&r&&y!==E;){let w=dr(T),S=T.getBoundingClientRect(),C=he(T),R=S.left+(T.clientLeft+parseFloat(C.paddingLeft))*w.x,B=S.top+(T.clientTop+parseFloat(C.paddingTop))*w.y;d*=w.x,p*=w.y,h*=w.x,b*=w.y,d+=R,p+=B,E=oe(T),T=Fo(E)}}return Et({width:h,height:b,x:d,y:p})}function Xi(i,t){let e=qr(i).scrollLeft;return t?t.left+e:St(Ee(i)).left+e}function On(i,t,e){e===void 0&&(e=!1);let r=i.getBoundingClientRect(),o=r.left+t.scrollLeft-(e?0:Xi(i,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function wd(i){let{elements:t,rect:e,offsetParent:r,strategy:o}=i,a=o==="fixed",s=Ee(r),l=t?Yr(t.floating):!1;if(r===s||l&&a)return e;let d={scrollLeft:0,scrollTop:0},p=xe(1),h=xe(0),b=Te(r);if((b||!b&&!a)&&((Tt(r)!=="body"||cr(s))&&(d=qr(r)),Te(r))){let y=St(r);p=dr(r),h.x=y.x+r.clientLeft,h.y=y.y+r.clientTop}let x=s&&!b&&!a?On(s,d,!0):xe(0);return{width:e.width*p.x,height:e.height*p.y,x:e.x*p.x-d.scrollLeft*p.x+h.x+x.x,y:e.y*p.y-d.scrollTop*p.y+h.y+x.y}}function Cd(i){return Array.from(i.getClientRects())}function kd(i){let t=Ee(i),e=qr(i),r=i.ownerDocument.body,o=Q(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Q(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+Xi(i),l=-e.scrollTop;return he(r).direction==="rtl"&&(s+=Q(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:l}}function Nd(i,t){let e=oe(i),r=Ee(i),o=e.visualViewport,a=r.clientWidth,s=r.clientHeight,l=0,d=0;if(o){a=o.width,s=o.height;let p=Uo();(!p||p&&t==="fixed")&&(l=o.offsetLeft,d=o.offsetTop)}return{width:a,height:s,x:l,y:d}}function _d(i,t){let e=St(i,!0,t==="fixed"),r=e.top+i.clientTop,o=e.left+i.clientLeft,a=Te(i)?dr(i):xe(1),s=i.clientWidth*a.x,l=i.clientHeight*a.y,d=o*a.x,p=r*a.y;return{width:s,height:l,x:d,y:p}}function Nn(i,t,e){let r;if(t==="viewport")r=Nd(i,e);else if(t==="document")r=kd(Ee(i));else if(pe(t))r=_d(t,e);else{let o=Rn(i);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Et(r)}function Mn(i,t){let e=He(i);return e===t||!pe(e)||At(e)?!1:he(e).position==="fixed"||Mn(e,t)}function Ld(i,t){let e=t.get(i);if(e)return e;let r=lr(i,[],!1).filter(l=>pe(l)&&Tt(l)!=="body"),o=null,a=he(i).position==="fixed",s=a?He(i):i;for(;pe(s)&&!At(s);){let l=he(s),d=Vo(s);!d&&l.position==="fixed"&&(o=null),(a?!d&&!o:!d&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||cr(s)&&!d&&Mn(i,s))?r=r.filter(h=>h!==s):o=l,s=He(s)}return t.set(i,r),r}function Rd(i){let{element:t,boundary:e,rootBoundary:r,strategy:o}=i,s=[...e==="clippingAncestors"?Yr(t)?[]:Ld(t,this._c):[].concat(e),r],l=s[0],d=s.reduce((p,h)=>{let b=Nn(t,h,o);return p.top=Q(b.top,p.top),p.right=Ne(b.right,p.right),p.bottom=Ne(b.bottom,p.bottom),p.left=Q(b.left,p.left),p},Nn(t,l,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Od(i){let{width:t,height:e}=Ln(i);return{width:t,height:e}}function Md(i,t,e){let r=Te(t),o=Ee(t),a=e==="fixed",s=St(i,!0,a,t),l={scrollLeft:0,scrollTop:0},d=xe(0);if(r||!r&&!a)if((Tt(t)!=="body"||cr(o))&&(l=qr(t)),r){let x=St(t,!0,a,t);d.x=x.x+t.clientLeft,d.y=x.y+t.clientTop}else o&&(d.x=Xi(o));let p=o&&!r&&!a?On(o,l):xe(0),h=s.left+l.scrollLeft-d.x-p.x,b=s.top+l.scrollTop-d.y-p.y;return{x:h,y:b,width:s.width,height:s.height}}function qi(i){return he(i).position==="static"}function _n(i,t){if(!Te(i)||he(i).position==="fixed")return null;if(t)return t(i);let e=i.offsetParent;return Ee(i)===e&&(e=e.ownerDocument.body),e}function Dn(i,t){let e=oe(i);if(Yr(i))return e;if(!Te(i)){let o=He(i);for(;o&&!At(o);){if(pe(o)&&!qi(o))return o;o=He(o)}return e}let r=_n(i,t);for(;r&&wn(r)&&qi(r);)r=_n(r,t);return r&&At(r)&&qi(r)&&!Vo(r)?e:r||Cn(i)||e}var Dd=async function(i){let t=this.getOffsetParent||Dn,e=this.getDimensions,r=await e(i.floating);return{reference:Md(i.reference,await t(i.floating),i.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function $d(i){return he(i).direction==="rtl"}var zd={convertOffsetParentRelativeRectToViewportRelativeRect:wd,getDocumentElement:Ee,getClippingRect:Rd,getOffsetParent:Dn,getElementRects:Dd,getClientRects:Cd,getDimensions:Od,getScale:dr,isElement:pe,isRTL:$d};function Pd(i,t){let e=null,r,o=Ee(i);function a(){var l;clearTimeout(r),(l=e)==null||l.disconnect(),e=null}function s(l,d){l===void 0&&(l=!1),d===void 0&&(d=1),a();let{left:p,top:h,width:b,height:x}=i.getBoundingClientRect();if(l||t(),!b||!x)return;let y=Wr(h),E=Wr(o.clientWidth-(p+b)),T=Wr(o.clientHeight-(h+x)),w=Wr(p),C={rootMargin:-y+"px "+-E+"px "+-T+"px "+-w+"px",threshold:Q(0,Ne(1,d))||1},R=!0;function B(z){let de=z[0].intersectionRatio;if(de!==d){if(!R)return s();de?s(!1,de):r=setTimeout(()=>{s(!1,1e-7)},1e3)}R=!1}try{e=new IntersectionObserver(B,{...C,root:o.ownerDocument})}catch{e=new IntersectionObserver(B,C)}e.observe(i)}return s(!0),a}function $n(i,t,e,r){r===void 0&&(r={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,p=Zi(i),h=o||a?[...p?lr(p):[],...lr(t)]:[];h.forEach(S=>{o&&S.addEventListener("scroll",e,{passive:!0}),a&&S.addEventListener("resize",e)});let b=p&&l?Pd(p,e):null,x=-1,y=null;s&&(y=new ResizeObserver(S=>{let[C]=S;C&&C.target===p&&y&&(y.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var R;(R=y)==null||R.observe(t)})),e()}),p&&!d&&y.observe(p),y.observe(t));let E,T=d?St(i):null;d&&w();function w(){let S=St(i);T&&(S.x!==T.x||S.y!==T.y||S.width!==T.width||S.height!==T.height)&&e(),T=S,E=requestAnimationFrame(w)}return e(),()=>{var S;h.forEach(C=>{o&&C.removeEventListener("scroll",e),a&&C.removeEventListener("resize",e)}),b==null||b(),(S=y)==null||S.disconnect(),y=null,d&&cancelAnimationFrame(E)}}var zn=En;var Pn=Tn,Vn=xn,Un=An;var Fn=yn;var Bn=(i,t,e)=>{let r=new Map,o={platform:zd,...e},a={...o.platform,_c:r};return gn(i,t,{...o,platform:a})};var Hn=f.constructTagName("popover"),ne={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"},It={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},Zr={TONAL:"tonal",CONTRAST:"contrast"},M={PLACEMENT:ne.BOTTOM,TRIGGER:It.CLICK,COLOR:Zr.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};var Gn=i=>{class t extends i{constructor(...o){super(...o);this.enabledFocusTrap=M.FOCUS_TRAP;this.enabledPreventScroll=M.PREVENT_SCROLL;this.focusTrapIndex=-1;this.focusableElements=[];this.shouldWrapFocus=()=>!0;this.addEventListener("keydown",this.handleKeydown)}deactivateFocusTrap(){this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.focusTrapIndex=-1,document.body.style.overflow=""}hasNoClientRects(o){return o.getClientRects().length===0}hasZeroDimensions(o){let{width:a,height:s}=o.getBoundingClientRect(),{offsetWidth:l,offsetHeight:d}=o;return l+d+s+a===0}isNotVisible(o){return this.hasZeroDimensions(o)||this.hasNoClientRects(o)}hasHiddenStyle(o){let{display:a,opacity:s,visibility:l}=o.style;return a==="none"||s==="0"||l==="hidden"||l==="collapse"}hasComputedHidden(o){let a=getComputedStyle(o);return a.visibility==="hidden"||a.height==="0"||a.display==="none"}isHidden(o){return o.hasAttribute("hidden")||o.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(o)||this.isNotVisible(o)||this.hasComputedHidden(o)}isNotTabbable(o){return o.getAttribute("tabindex")==="-1"}isInteractiveElement(o){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(o.tagName)||o instanceof HTMLAnchorElement&&o.hasAttribute("href")||o instanceof HTMLInputElement&&o.type!=="hidden"||(o instanceof HTMLAudioElement||o instanceof HTMLVideoElement)&&o.hasAttribute("controls")||(o instanceof HTMLImageElement||o instanceof HTMLObjectElement)&&o.hasAttribute("usemap")||o.hasAttribute("tabindex")&&o.tabIndex>-1)}isFocusable(o){return this.isHidden(o)||this.isNotTabbable(o)?!1:this.isInteractiveElement(o)}findFocusable(o,a=new Set){return o instanceof HTMLElement&&this.isFocusable(o)&&a.add(o),Array.from(o.children).forEach(l=>{let d=l;this.isFocusable(d)&&a.add(d),d.shadowRoot?this.findFocusable(d.shadowRoot,a):d.tagName==="SLOT"?d.assignedElements({flatten:!0}).forEach(h=>{h instanceof HTMLElement&&this.findFocusable(h,a)}):this.findFocusable(d,a)}),[...a]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(o=0){this.focusableElements.length!==0&&(this.enabledPreventScroll&&(document.body.style.overflow="hidden"),this.focusableElements[o]&&(this.focusTrapIndex=o,this.focusableElements[o].focus()))}calculateNextIndex(o,a){let{length:s}=this.focusableElements,l=this.shouldWrapFocus();if(o===-1)return a>0?0:s-1;let d=o+a;return l?(d<0&&(d=s-1),d>=s&&(d=0)):(d<0&&(d=0),d>=s&&(d=s-1)),d}getDeepActiveElement(){var a;let o=document.activeElement||document.body;for(;o instanceof HTMLElement&&((a=o.shadowRoot)!=null&&a.activeElement);)o=o.shadowRoot.activeElement;return o||document.body}findElement(o){return this.focusableElements.findIndex(a=>this.isEqualFocusNode(o,a))}isEqualFocusNode(o,a){return o.nodeType>=0?a.isEqualNode(o)&&a===o:!1}trapFocus(o){if(this.focusableElements.length===0)return;let a=this.getDeepActiveElement(),s=this.findElement(a);o?this.focusTrapIndex=this.calculateNextIndex(s,-1):this.focusTrapIndex=this.calculateNextIndex(s,1);let l=this.focusableElements[this.focusTrapIndex];l&&l.focus()}handleKeydown(o){!this.enabledFocusTrap||!this.focusableElements.length||o.key==="Tab"&&(o.preventDefault(),this.trapFocus(o.shiftKey))}}return n([c({type:Boolean})],t.prototype,"enabledFocusTrap",2),n([c({type:Boolean})],t.prototype,"enabledPreventScroll",2),t};var wt=class{static dispatchPopoverEvent(t,e){e.dispatchEvent(new CustomEvent(t,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowPopover(t){this.dispatchPopoverEvent("shown",t)}static onHidePopover(t){this.dispatchPopoverEvent("hidden",t)}static onCreatedPopover(t){this.dispatchPopoverEvent("created",t)}static onDestroyedPopover(t){this.dispatchPopoverEvent("destroyed",t)}};var Ki=class{constructor(){this.stack=[]}push(t){this.stack.push(t)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(t){this.stack=this.stack.filter(e=>e!==t)}clear(){this.stack=[]}},Ct=new Ki;var Vd=u`
1589
+ `}};sr.styles=[...v.styles,...pn],n([c({type:String,reflect:!0})],sr.prototype,"color",2),n([c({type:String})],sr.prototype,"label",2);var nr=sr;nr.register(hn);var gd=nr;var Ne=Math.min,Q=Math.max,Gr=Math.round,Wr=Math.floor,ye=i=>({x:i,y:i}),yd={left:"right",right:"left",bottom:"top",top:"bottom"},xd={start:"end",end:"start"};function Mo(i,t,e){return Q(i,Ne(t,e))}function yt(i,t){return typeof i=="function"?i(t):i}function Be(i){return i.split("-")[0]}function xt(i){return i.split("-")[1]}function Wi(i){return i==="x"?"y":"x"}function Do(i){return i==="y"?"height":"width"}function rt(i){return["top","bottom"].includes(Be(i))?"y":"x"}function $o(i){return Wi(rt(i))}function un(i,t,e){e===void 0&&(e=!1);let r=xt(i),o=$o(i),a=Do(o),s=o==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Hr(s)),[s,Hr(s)]}function fn(i){let t=Hr(i);return[Oo(i),t,Oo(t)]}function Oo(i){return i.replace(/start|end/g,t=>xd[t])}function Ed(i,t,e){let r=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(i){case"top":case"bottom":return e?t?o:r:t?r:o;case"left":case"right":return t?a:s;default:return[]}}function bn(i,t,e,r){let o=xt(i),a=Ed(Be(i),e==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Oo)))),a}function Hr(i){return i.replace(/left|right|bottom|top/g,t=>yd[t])}function Td(i){return{top:0,right:0,bottom:0,left:0,...i}}function Yi(i){return typeof i!="number"?Td(i):{top:i,right:i,bottom:i,left:i}}function Et(i){let{x:t,y:e,width:r,height:o}=i;return{width:r,height:o,top:e,left:t,right:t+r,bottom:e+o,x:t,y:e}}function vn(i,t,e){let{reference:r,floating:o}=i,a=rt(t),s=$o(t),l=Do(s),d=Be(t),p=a==="y",h=r.x+r.width/2-o.width/2,b=r.y+r.height/2-o.height/2,x=r[l]/2-o[l]/2,y;switch(d){case"top":y={x:h,y:r.y-o.height};break;case"bottom":y={x:h,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:b};break;case"left":y={x:r.x-o.width,y:b};break;default:y={x:r.x,y:r.y}}switch(xt(t)){case"start":y[s]-=x*(e&&p?-1:1);break;case"end":y[s]+=x*(e&&p?-1:1);break}return y}var gn=async(i,t,e)=>{let{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=e,l=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t)),p=await s.getElementRects({reference:i,floating:t,strategy:o}),{x:h,y:b}=vn(p,r,d),x=r,y={},E=0;for(let A=0;A<l.length;A++){let{name:w,fn:S}=l[A],{x:C,y:R,data:B,reset:z}=await S({x:h,y:b,initialPlacement:r,placement:x,strategy:o,middlewareData:y,rects:p,platform:s,elements:{reference:i,floating:t}});h=C!=null?C:h,b=R!=null?R:b,y={...y,[w]:{...y[w],...B}},z&&E<=50&&(E++,typeof z=="object"&&(z.placement&&(x=z.placement),z.rects&&(p=z.rects===!0?await s.getElementRects({reference:i,floating:t,strategy:o}):z.rects),{x:h,y:b}=vn(p,x,d)),A=-1)}return{x:h,y:b,placement:x,strategy:o,middlewareData:y}};async function zo(i,t){var e;t===void 0&&(t={});let{x:r,y:o,platform:a,rects:s,elements:l,strategy:d}=i,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:b="floating",altBoundary:x=!1,padding:y=0}=yt(t,i),E=Yi(y),w=l[x?b==="floating"?"reference":"floating":b],S=Et(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement(w)))==null||e?w:w.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:h,strategy:d})),C=b==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),B=await(a.isElement==null?void 0:a.isElement(R))?await(a.getScale==null?void 0:a.getScale(R))||{x:1,y:1}:{x:1,y:1},z=Et(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:C,offsetParent:R,strategy:d}):C);return{top:(S.top-z.top+E.top)/B.y,bottom:(z.bottom-S.bottom+E.bottom)/B.y,left:(S.left-z.left+E.left)/B.x,right:(z.right-S.right+E.right)/B.x}}var yn=i=>({name:"arrow",options:i,async fn(t){let{x:e,y:r,placement:o,rects:a,platform:s,elements:l,middlewareData:d}=t,{element:p,padding:h=0}=yt(i,t)||{};if(p==null)return{};let b=Yi(h),x={x:e,y:r},y=$o(o),E=Do(y),A=await s.getDimensions(p),w=y==="y",S=w?"top":"left",C=w?"bottom":"right",R=w?"clientHeight":"clientWidth",B=a.reference[E]+a.reference[y]-x[y]-a.floating[E],z=x[y]-a.reference[y],de=await(s.getOffsetParent==null?void 0:s.getOffsetParent(p)),be=de?de[R]:0;(!be||!await(s.isElement==null?void 0:s.isElement(de)))&&(be=l.floating[R]||a.floating[E]);let _e=B/2-z/2,Se=be/2-A[E]/2-1,ve=Ne(b[S],Se),qe=Ne(b[C],Se),Ie=ve,Ze=be-A[E]-qe,X=be/2-A[E]/2+_e,Ft=Mo(Ie,X,Ze),Le=!d.arrow&&xt(o)!=null&&X!==Ft&&a.reference[E]/2-(X<Ie?ve:qe)-A[E]/2<0,we=Le?X<Ie?X-Ie:X-Ze:0;return{[y]:x[y]+we,data:{[y]:Ft,centerOffset:X-Ft-we,...Le&&{alignmentOffset:we}},reset:Le}}});var xn=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(t){var e,r;let{placement:o,middlewareData:a,rects:s,initialPlacement:l,platform:d,elements:p}=t,{mainAxis:h=!0,crossAxis:b=!0,fallbackPlacements:x,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:A=!0,...w}=yt(i,t);if((e=a.arrow)!=null&&e.alignmentOffset)return{};let S=Be(o),C=rt(l),R=Be(l)===l,B=await(d.isRTL==null?void 0:d.isRTL(p.floating)),z=x||(R||!A?[Hr(l)]:fn(l)),de=E!=="none";!x&&de&&z.push(...bn(l,A,E,B));let be=[l,...z],_e=await zo(t,w),Se=[],ve=((r=a.flip)==null?void 0:r.overflows)||[];if(h&&Se.push(_e[S]),b){let X=un(o,s,B);Se.push(_e[X[0]],_e[X[1]])}if(ve=[...ve,{placement:o,overflows:Se}],!Se.every(X=>X<=0)){var qe,Ie;let X=(((qe=a.flip)==null?void 0:qe.index)||0)+1,Ft=be[X];if(Ft)return{data:{index:X,overflows:ve},reset:{placement:Ft}};let Le=(Ie=ve.filter(we=>we.overflows[0]<=0).sort((we,Xe)=>we.overflows[1]-Xe.overflows[1])[0])==null?void 0:Ie.placement;if(!Le)switch(y){case"bestFit":{var Ze;let we=(Ze=ve.filter(Xe=>{if(de){let Ke=rt(Xe.placement);return Ke===C||Ke==="y"}return!0}).map(Xe=>[Xe.placement,Xe.overflows.filter(Ke=>Ke>0).reduce((Ke,gc)=>Ke+gc,0)]).sort((Xe,Ke)=>Xe[1]-Ke[1])[0])==null?void 0:Ze[0];we&&(Le=we);break}case"initialPlacement":Le=l;break}if(o!==Le)return{reset:{placement:Le}}}return{}}}};async function Ad(i,t){let{placement:e,platform:r,elements:o}=i,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Be(e),l=xt(e),d=rt(e)==="y",p=["left","top"].includes(s)?-1:1,h=a&&d?-1:1,b=yt(t,i),{mainAxis:x,crossAxis:y,alignmentAxis:E}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return l&&typeof E=="number"&&(y=l==="end"?E*-1:E),d?{x:y*h,y:x*p}:{x:x*p,y:y*h}}var En=function(i){return i===void 0&&(i=0),{name:"offset",options:i,async fn(t){var e,r;let{x:o,y:a,placement:s,middlewareData:l}=t,d=await Ad(t,i);return s===((e=l.offset)==null?void 0:e.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:a+d.y,data:{...d,placement:s}}}}},Tn=function(i){return i===void 0&&(i={}),{name:"shift",options:i,async fn(t){let{x:e,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:w=>{let{x:S,y:C}=w;return{x:S,y:C}}},...d}=yt(i,t),p={x:e,y:r},h=await zo(t,d),b=rt(Be(o)),x=Wi(b),y=p[x],E=p[b];if(a){let w=x==="y"?"top":"left",S=x==="y"?"bottom":"right",C=y+h[w],R=y-h[S];y=Mo(C,y,R)}if(s){let w=b==="y"?"top":"left",S=b==="y"?"bottom":"right",C=E+h[w],R=E-h[S];E=Mo(C,E,R)}let A=l.fn({...t,[x]:y,[b]:E});return{...A,data:{x:A.x-e,y:A.y-r,enabled:{[x]:a,[b]:s}}}}}};var An=function(i){return i===void 0&&(i={}),{name:"size",options:i,async fn(t){var e,r;let{placement:o,rects:a,platform:s,elements:l}=t,{apply:d=()=>{},...p}=yt(i,t),h=await zo(t,p),b=Be(o),x=xt(o),y=rt(o)==="y",{width:E,height:A}=a.floating,w,S;b==="top"||b==="bottom"?(w=b,S=x===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(S=b,w=x==="end"?"top":"bottom");let C=A-h.top-h.bottom,R=E-h.left-h.right,B=Ne(A-h[w],C),z=Ne(E-h[S],R),de=!t.middlewareData.shift,be=B,_e=z;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&(_e=R),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(be=C),de&&!x){let ve=Q(h.left,0),qe=Q(h.right,0),Ie=Q(h.top,0),Ze=Q(h.bottom,0);y?_e=E-2*(ve!==0||qe!==0?ve+qe:Q(h.left,h.right)):be=A-2*(Ie!==0||Ze!==0?Ie+Ze:Q(h.top,h.bottom))}await d({...t,availableWidth:_e,availableHeight:be});let Se=await s.getDimensions(l.floating);return E!==Se.width||A!==Se.height?{reset:{rects:!0}}:{}}}};function Po(){return typeof window<"u"}function Tt(i){return In(i)?(i.nodeName||"").toLowerCase():"#document"}function oe(i){var t;return(i==null||(t=i.ownerDocument)==null?void 0:t.defaultView)||window}function xe(i){var t;return(t=(In(i)?i.ownerDocument:i.document)||window.document)==null?void 0:t.documentElement}function In(i){return Po()?i instanceof Node||i instanceof oe(i).Node:!1}function pe(i){return Po()?i instanceof Element||i instanceof oe(i).Element:!1}function Ee(i){return Po()?i instanceof HTMLElement||i instanceof oe(i).HTMLElement:!1}function Sn(i){return!Po()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof oe(i).ShadowRoot}function cr(i){let{overflow:t,overflowX:e,overflowY:r,display:o}=he(i);return/auto|scroll|overlay|hidden|clip/.test(t+r+e)&&!["inline","contents"].includes(o)}function wn(i){return["table","td","th"].includes(Tt(i))}function Yr(i){return[":popover-open",":modal"].some(t=>{try{return i.matches(t)}catch{return!1}})}function Vo(i){let t=Uo(),e=pe(i)?he(i):i;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(e.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(e.contain||"").includes(r))}function Cn(i){let t=He(i);for(;Ee(t)&&!At(t);){if(Vo(t))return t;if(Yr(t))return null;t=He(t)}return null}function Uo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function At(i){return["html","body","#document"].includes(Tt(i))}function he(i){return oe(i).getComputedStyle(i)}function qr(i){return pe(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function He(i){if(Tt(i)==="html")return i;let t=i.assignedSlot||i.parentNode||Sn(i)&&i.host||xe(i);return Sn(t)?t.host:t}function kn(i){let t=He(i);return At(t)?i.ownerDocument?i.ownerDocument.body:i.body:Ee(t)&&cr(t)?t:kn(t)}function lr(i,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);let o=kn(i),a=o===((r=i.ownerDocument)==null?void 0:r.body),s=oe(o);if(a){let l=Fo(s);return t.concat(s,s.visualViewport||[],cr(o)?o:[],l&&e?lr(l):[])}return t.concat(o,lr(o,[],e))}function Fo(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function Ln(i){let t=he(i),e=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=Ee(i),a=o?i.offsetWidth:e,s=o?i.offsetHeight:r,l=Gr(e)!==a||Gr(r)!==s;return l&&(e=a,r=s),{width:e,height:r,$:l}}function Zi(i){return pe(i)?i:i.contextElement}function dr(i){let t=Zi(i);if(!Ee(t))return ye(1);let e=t.getBoundingClientRect(),{width:r,height:o,$:a}=Ln(t),s=(a?Gr(e.width):e.width)/r,l=(a?Gr(e.height):e.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Sd=ye(0);function Rn(i){let t=oe(i);return!Uo()||!t.visualViewport?Sd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Id(i,t,e){return t===void 0&&(t=!1),!e||t&&e!==oe(i)?!1:t}function St(i,t,e,r){t===void 0&&(t=!1),e===void 0&&(e=!1);let o=i.getBoundingClientRect(),a=Zi(i),s=ye(1);t&&(r?pe(r)&&(s=dr(r)):s=dr(i));let l=Id(a,e,r)?Rn(a):ye(0),d=(o.left+l.x)/s.x,p=(o.top+l.y)/s.y,h=o.width/s.x,b=o.height/s.y;if(a){let x=oe(a),y=r&&pe(r)?oe(r):r,E=x,A=Fo(E);for(;A&&r&&y!==E;){let w=dr(A),S=A.getBoundingClientRect(),C=he(A),R=S.left+(A.clientLeft+parseFloat(C.paddingLeft))*w.x,B=S.top+(A.clientTop+parseFloat(C.paddingTop))*w.y;d*=w.x,p*=w.y,h*=w.x,b*=w.y,d+=R,p+=B,E=oe(A),A=Fo(E)}}return Et({width:h,height:b,x:d,y:p})}function Xi(i,t){let e=qr(i).scrollLeft;return t?t.left+e:St(xe(i)).left+e}function On(i,t,e){e===void 0&&(e=!1);let r=i.getBoundingClientRect(),o=r.left+t.scrollLeft-(e?0:Xi(i,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function wd(i){let{elements:t,rect:e,offsetParent:r,strategy:o}=i,a=o==="fixed",s=xe(r),l=t?Yr(t.floating):!1;if(r===s||l&&a)return e;let d={scrollLeft:0,scrollTop:0},p=ye(1),h=ye(0),b=Ee(r);if((b||!b&&!a)&&((Tt(r)!=="body"||cr(s))&&(d=qr(r)),Ee(r))){let y=St(r);p=dr(r),h.x=y.x+r.clientLeft,h.y=y.y+r.clientTop}let x=s&&!b&&!a?On(s,d,!0):ye(0);return{width:e.width*p.x,height:e.height*p.y,x:e.x*p.x-d.scrollLeft*p.x+h.x+x.x,y:e.y*p.y-d.scrollTop*p.y+h.y+x.y}}function Cd(i){return Array.from(i.getClientRects())}function kd(i){let t=xe(i),e=qr(i),r=i.ownerDocument.body,o=Q(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Q(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+Xi(i),l=-e.scrollTop;return he(r).direction==="rtl"&&(s+=Q(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:l}}function Nd(i,t){let e=oe(i),r=xe(i),o=e.visualViewport,a=r.clientWidth,s=r.clientHeight,l=0,d=0;if(o){a=o.width,s=o.height;let p=Uo();(!p||p&&t==="fixed")&&(l=o.offsetLeft,d=o.offsetTop)}return{width:a,height:s,x:l,y:d}}function _d(i,t){let e=St(i,!0,t==="fixed"),r=e.top+i.clientTop,o=e.left+i.clientLeft,a=Ee(i)?dr(i):ye(1),s=i.clientWidth*a.x,l=i.clientHeight*a.y,d=o*a.x,p=r*a.y;return{width:s,height:l,x:d,y:p}}function Nn(i,t,e){let r;if(t==="viewport")r=Nd(i,e);else if(t==="document")r=kd(xe(i));else if(pe(t))r=_d(t,e);else{let o=Rn(i);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Et(r)}function Mn(i,t){let e=He(i);return e===t||!pe(e)||At(e)?!1:he(e).position==="fixed"||Mn(e,t)}function Ld(i,t){let e=t.get(i);if(e)return e;let r=lr(i,[],!1).filter(l=>pe(l)&&Tt(l)!=="body"),o=null,a=he(i).position==="fixed",s=a?He(i):i;for(;pe(s)&&!At(s);){let l=he(s),d=Vo(s);!d&&l.position==="fixed"&&(o=null),(a?!d&&!o:!d&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||cr(s)&&!d&&Mn(i,s))?r=r.filter(h=>h!==s):o=l,s=He(s)}return t.set(i,r),r}function Rd(i){let{element:t,boundary:e,rootBoundary:r,strategy:o}=i,s=[...e==="clippingAncestors"?Yr(t)?[]:Ld(t,this._c):[].concat(e),r],l=s[0],d=s.reduce((p,h)=>{let b=Nn(t,h,o);return p.top=Q(b.top,p.top),p.right=Ne(b.right,p.right),p.bottom=Ne(b.bottom,p.bottom),p.left=Q(b.left,p.left),p},Nn(t,l,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Od(i){let{width:t,height:e}=Ln(i);return{width:t,height:e}}function Md(i,t,e){let r=Ee(t),o=xe(t),a=e==="fixed",s=St(i,!0,a,t),l={scrollLeft:0,scrollTop:0},d=ye(0);if(r||!r&&!a)if((Tt(t)!=="body"||cr(o))&&(l=qr(t)),r){let x=St(t,!0,a,t);d.x=x.x+t.clientLeft,d.y=x.y+t.clientTop}else o&&(d.x=Xi(o));let p=o&&!r&&!a?On(o,l):ye(0),h=s.left+l.scrollLeft-d.x-p.x,b=s.top+l.scrollTop-d.y-p.y;return{x:h,y:b,width:s.width,height:s.height}}function qi(i){return he(i).position==="static"}function _n(i,t){if(!Ee(i)||he(i).position==="fixed")return null;if(t)return t(i);let e=i.offsetParent;return xe(i)===e&&(e=e.ownerDocument.body),e}function Dn(i,t){let e=oe(i);if(Yr(i))return e;if(!Ee(i)){let o=He(i);for(;o&&!At(o);){if(pe(o)&&!qi(o))return o;o=He(o)}return e}let r=_n(i,t);for(;r&&wn(r)&&qi(r);)r=_n(r,t);return r&&At(r)&&qi(r)&&!Vo(r)?e:r||Cn(i)||e}var Dd=async function(i){let t=this.getOffsetParent||Dn,e=this.getDimensions,r=await e(i.floating);return{reference:Md(i.reference,await t(i.floating),i.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function $d(i){return he(i).direction==="rtl"}var zd={convertOffsetParentRelativeRectToViewportRelativeRect:wd,getDocumentElement:xe,getClippingRect:Rd,getOffsetParent:Dn,getElementRects:Dd,getClientRects:Cd,getDimensions:Od,getScale:dr,isElement:pe,isRTL:$d};function Pd(i,t){let e=null,r,o=xe(i);function a(){var l;clearTimeout(r),(l=e)==null||l.disconnect(),e=null}function s(l,d){l===void 0&&(l=!1),d===void 0&&(d=1),a();let{left:p,top:h,width:b,height:x}=i.getBoundingClientRect();if(l||t(),!b||!x)return;let y=Wr(h),E=Wr(o.clientWidth-(p+b)),A=Wr(o.clientHeight-(h+x)),w=Wr(p),C={rootMargin:-y+"px "+-E+"px "+-A+"px "+-w+"px",threshold:Q(0,Ne(1,d))||1},R=!0;function B(z){let de=z[0].intersectionRatio;if(de!==d){if(!R)return s();de?s(!1,de):r=setTimeout(()=>{s(!1,1e-7)},1e3)}R=!1}try{e=new IntersectionObserver(B,{...C,root:o.ownerDocument})}catch{e=new IntersectionObserver(B,C)}e.observe(i)}return s(!0),a}function $n(i,t,e,r){r===void 0&&(r={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,p=Zi(i),h=o||a?[...p?lr(p):[],...lr(t)]:[];h.forEach(S=>{o&&S.addEventListener("scroll",e,{passive:!0}),a&&S.addEventListener("resize",e)});let b=p&&l?Pd(p,e):null,x=-1,y=null;s&&(y=new ResizeObserver(S=>{let[C]=S;C&&C.target===p&&y&&(y.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var R;(R=y)==null||R.observe(t)})),e()}),p&&!d&&y.observe(p),y.observe(t));let E,A=d?St(i):null;d&&w();function w(){let S=St(i);A&&(S.x!==A.x||S.y!==A.y||S.width!==A.width||S.height!==A.height)&&e(),A=S,E=requestAnimationFrame(w)}return e(),()=>{var S;h.forEach(C=>{o&&C.removeEventListener("scroll",e),a&&C.removeEventListener("resize",e)}),b==null||b(),(S=y)==null||S.disconnect(),y=null,d&&cancelAnimationFrame(E)}}var zn=En;var Pn=Tn,Vn=xn,Un=An;var Fn=yn;var Bn=(i,t,e)=>{let r=new Map,o={platform:zd,...e},a={...o.platform,_c:r};return gn(i,t,{...o,platform:a})};var Hn=f.constructTagName("popover"),ne={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"},It={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},Zr={TONAL:"tonal",CONTRAST:"contrast"},M={PLACEMENT:ne.BOTTOM,TRIGGER:It.CLICK,COLOR:Zr.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};var Gn=i=>{class t extends i{constructor(...o){super(...o);this.enabledFocusTrap=M.FOCUS_TRAP;this.enabledPreventScroll=M.PREVENT_SCROLL;this.focusTrapIndex=-1;this.focusableElements=[];this.shouldWrapFocus=()=>!0;this.addEventListener("keydown",this.handleKeydown)}deactivateFocusTrap(){this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.focusTrapIndex=-1,document.body.style.overflow=""}hasNoClientRects(o){return o.getClientRects().length===0}hasZeroDimensions(o){let{width:a,height:s}=o.getBoundingClientRect(),{offsetWidth:l,offsetHeight:d}=o;return l+d+s+a===0}isNotVisible(o){return this.hasZeroDimensions(o)||this.hasNoClientRects(o)}hasHiddenStyle(o){let{display:a,opacity:s,visibility:l}=o.style;return a==="none"||s==="0"||l==="hidden"||l==="collapse"}hasComputedHidden(o){let a=getComputedStyle(o);return a.visibility==="hidden"||a.height==="0"||a.display==="none"}isHidden(o){return o.hasAttribute("hidden")||o.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(o)||this.isNotVisible(o)||this.hasComputedHidden(o)}isNotTabbable(o){return o.getAttribute("tabindex")==="-1"}isInteractiveElement(o){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(o.tagName)||o instanceof HTMLAnchorElement&&o.hasAttribute("href")||o instanceof HTMLInputElement&&o.type!=="hidden"||(o instanceof HTMLAudioElement||o instanceof HTMLVideoElement)&&o.hasAttribute("controls")||(o instanceof HTMLImageElement||o instanceof HTMLObjectElement)&&o.hasAttribute("usemap")||o.hasAttribute("tabindex")&&o.tabIndex>-1)}isFocusable(o){return this.isHidden(o)||this.isNotTabbable(o)?!1:this.isInteractiveElement(o)}findFocusable(o,a=new Set){return o instanceof HTMLElement&&this.isFocusable(o)&&a.add(o),Array.from(o.children).forEach(l=>{let d=l;this.isFocusable(d)&&a.add(d),d.shadowRoot?this.findFocusable(d.shadowRoot,a):d.tagName==="SLOT"?d.assignedElements({flatten:!0}).forEach(h=>{h instanceof HTMLElement&&this.findFocusable(h,a)}):this.findFocusable(d,a)}),[...a]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(o=0){this.focusableElements.length!==0&&(this.enabledPreventScroll&&(document.body.style.overflow="hidden"),this.focusableElements[o]&&(this.focusTrapIndex=o,this.focusableElements[o].focus()))}calculateNextIndex(o,a){let{length:s}=this.focusableElements,l=this.shouldWrapFocus();if(o===-1)return a>0?0:s-1;let d=o+a;return l?(d<0&&(d=s-1),d>=s&&(d=0)):(d<0&&(d=0),d>=s&&(d=s-1)),d}getDeepActiveElement(){var a;let o=document.activeElement||document.body;for(;o instanceof HTMLElement&&((a=o.shadowRoot)!=null&&a.activeElement);)o=o.shadowRoot.activeElement;return o||document.body}findElement(o){return this.focusableElements.findIndex(a=>this.isEqualFocusNode(o,a))}isEqualFocusNode(o,a){return o.nodeType>=0?a.isEqualNode(o)&&a===o:!1}trapFocus(o){if(this.focusableElements.length===0)return;let a=this.getDeepActiveElement(),s=this.findElement(a);o?this.focusTrapIndex=this.calculateNextIndex(s,-1):this.focusTrapIndex=this.calculateNextIndex(s,1);let l=this.focusableElements[this.focusTrapIndex];l&&l.focus()}handleKeydown(o){!this.enabledFocusTrap||!this.focusableElements.length||o.key==="Tab"&&(o.preventDefault(),this.trapFocus(o.shiftKey))}}return n([c({type:Boolean})],t.prototype,"enabledFocusTrap",2),n([c({type:Boolean})],t.prototype,"enabledPreventScroll",2),t};var wt=class{static dispatchPopoverEvent(t,e){e.dispatchEvent(new CustomEvent(t,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowPopover(t){this.dispatchPopoverEvent("shown",t)}static onHidePopover(t){this.dispatchPopoverEvent("hidden",t)}static onCreatedPopover(t){this.dispatchPopoverEvent("created",t)}static onDestroyedPopover(t){this.dispatchPopoverEvent("destroyed",t)}};var Ki=class{constructor(){this.stack=[]}push(t){this.stack.push(t)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(t){this.stack=this.stack.filter(e=>e!==t)}clear(){this.stack=[]}},Ct=new Ki;var Vd=u`
1590
1590
  :host {
1591
1591
  --mdc-popover-arrow-border-radius: 0.1875rem;
1592
1592
  --mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
@@ -1712,14 +1712,14 @@
1712
1712
  prefix-icon="cancel-bold"
1713
1713
  variant="tertiary"
1714
1714
  size="20"
1715
- aria-label=${A(this.closeButtonAriaLabel)||""}
1715
+ aria-label=${T(this.closeButtonAriaLabel)||""}
1716
1716
  @click="${this.hidePopover}"
1717
1717
  ></mdc-button>`:g}
1718
1718
  ${this.showArrow?m`<div class="popover-arrow"></div>`:g}
1719
1719
  <div part="popover-content">
1720
1720
  <slot></slot>
1721
1721
  </div>
1722
- `}};L.styles=[...v.styles,...Wn],n([c({type:String,reflect:!0})],L.prototype,"id",2),n([c({type:String,reflect:!0})],L.prototype,"triggerID",2),n([c({type:String,reflect:!0})],L.prototype,"trigger",2),n([c({type:String,reflect:!0})],L.prototype,"placement",2),n([c({type:String,reflect:!0})],L.prototype,"color",2),n([c({type:Boolean,reflect:!0})],L.prototype,"visible",2),n([c({type:Number,reflect:!0})],L.prototype,"offset",2),n([c({type:Boolean,reflect:!0,attribute:"focus-trap"})],L.prototype,"focusTrap",2),n([c({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],L.prototype,"preventScroll",2),n([c({type:Boolean,reflect:!0,attribute:"show-arrow"})],L.prototype,"showArrow",2),n([c({type:Boolean,reflect:!0,attribute:"close-button"})],L.prototype,"closeButton",2),n([c({type:Boolean,reflect:!0})],L.prototype,"interactive",2),n([c({type:String,reflect:!0})],L.prototype,"delay",2),n([c({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],L.prototype,"hideOnEscape",2),n([c({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],L.prototype,"hideOnBlur",2),n([c({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],L.prototype,"hideOnOutsideClick",2),n([c({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],L.prototype,"focusBackToTrigger",2),n([c({type:Boolean,reflect:!0})],L.prototype,"backdrop",2),n([c({type:Boolean,reflect:!0})],L.prototype,"flip",2),n([c({type:Boolean,reflect:!0})],L.prototype,"size",2),n([c({type:Number,reflect:!0,attribute:"z-index"})],L.prototype,"zIndex",2),n([c({type:String,reflect:!0,attribute:"append-to"})],L.prototype,"appendTo",2),n([c({type:String,attribute:"close-button-aria-label",reflect:!0})],L.prototype,"closeButtonAriaLabel",2),n([c({type:String,reflect:!0})],L.prototype,"role",2),n([c({type:String,reflect:!0,attribute:"aria-labelledby"})],L.prototype,"ariaLabelledby",2),n([c({type:String,reflect:!0,attribute:"aria-describedby"})],L.prototype,"ariaDescribedby",2),n([c({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],L.prototype,"disableAriaExpanded",2);var Ae=L;var Yn=f.constructTagName("coachmark"),kt={COLOR:Zr.CONTRAST,TRIGGER:It.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var Nt=class extends Ae{constructor(){super(...arguments);this.trigger=kt.TRIGGER;this.showArrow=kt.ARROW;this.closeButton=kt.CLOSE_BUTTON;this.disableAriaExpanded=kt.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=kt.COLOR,this.showArrow=kt.ARROW}};n([c({type:String,reflect:!0})],Nt.prototype,"trigger",2),n([c({type:Boolean,attribute:"show-arrow"})],Nt.prototype,"showArrow",2),n([c({type:Boolean,reflect:!0,attribute:"close-button"})],Nt.prototype,"closeButton",2),n([c({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],Nt.prototype,"disableAriaExpanded",2);var ji=Nt;ji.register(Yn);var Ud=ji;var Fd=[u`
1722
+ `}};L.styles=[...v.styles,...Wn],n([c({type:String,reflect:!0})],L.prototype,"id",2),n([c({type:String,reflect:!0})],L.prototype,"triggerID",2),n([c({type:String,reflect:!0})],L.prototype,"trigger",2),n([c({type:String,reflect:!0})],L.prototype,"placement",2),n([c({type:String,reflect:!0})],L.prototype,"color",2),n([c({type:Boolean,reflect:!0})],L.prototype,"visible",2),n([c({type:Number,reflect:!0})],L.prototype,"offset",2),n([c({type:Boolean,reflect:!0,attribute:"focus-trap"})],L.prototype,"focusTrap",2),n([c({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],L.prototype,"preventScroll",2),n([c({type:Boolean,reflect:!0,attribute:"show-arrow"})],L.prototype,"showArrow",2),n([c({type:Boolean,reflect:!0,attribute:"close-button"})],L.prototype,"closeButton",2),n([c({type:Boolean,reflect:!0})],L.prototype,"interactive",2),n([c({type:String,reflect:!0})],L.prototype,"delay",2),n([c({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],L.prototype,"hideOnEscape",2),n([c({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],L.prototype,"hideOnBlur",2),n([c({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],L.prototype,"hideOnOutsideClick",2),n([c({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],L.prototype,"focusBackToTrigger",2),n([c({type:Boolean,reflect:!0})],L.prototype,"backdrop",2),n([c({type:Boolean,reflect:!0})],L.prototype,"flip",2),n([c({type:Boolean,reflect:!0})],L.prototype,"size",2),n([c({type:Number,reflect:!0,attribute:"z-index"})],L.prototype,"zIndex",2),n([c({type:String,reflect:!0,attribute:"append-to"})],L.prototype,"appendTo",2),n([c({type:String,attribute:"close-button-aria-label",reflect:!0})],L.prototype,"closeButtonAriaLabel",2),n([c({type:String,reflect:!0})],L.prototype,"role",2),n([c({type:String,reflect:!0,attribute:"aria-labelledby"})],L.prototype,"ariaLabelledby",2),n([c({type:String,reflect:!0,attribute:"aria-describedby"})],L.prototype,"ariaDescribedby",2),n([c({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],L.prototype,"disableAriaExpanded",2);var Te=L;var Yn=f.constructTagName("coachmark"),kt={COLOR:Zr.CONTRAST,TRIGGER:It.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var Nt=class extends Te{constructor(){super(...arguments);this.trigger=kt.TRIGGER;this.showArrow=kt.ARROW;this.closeButton=kt.CLOSE_BUTTON;this.disableAriaExpanded=kt.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=kt.COLOR,this.showArrow=kt.ARROW}};n([c({type:String,reflect:!0})],Nt.prototype,"trigger",2),n([c({type:Boolean,attribute:"show-arrow"})],Nt.prototype,"showArrow",2),n([c({type:Boolean,reflect:!0,attribute:"close-button"})],Nt.prototype,"closeButton",2),n([c({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],Nt.prototype,"disableAriaExpanded",2);var ji=Nt;ji.register(Yn);var Ud=ji;var Fd=[u`
1723
1723
  :host{
1724
1724
  display: block;
1725
1725
  position: relative;
@@ -2150,7 +2150,7 @@
2150
2150
  part="container"
2151
2151
  role="${this.isRadio?aa.RADIOGROUP:aa.GROUP}"
2152
2152
  aria-labelledby="${V.HEADING_ID}"
2153
- aria-describedby="${A(this.helpText?V.HELPER_TEXT_ID:"")}"
2153
+ aria-describedby="${T(this.helpText?V.HELPER_TEXT_ID:"")}"
2154
2154
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
2155
2155
  >
2156
2156
  <div part="group-header">
@@ -2314,18 +2314,18 @@
2314
2314
  ?readonly="${this.readonly}"
2315
2315
  ?required="${!!this.requiredLabel}"
2316
2316
  type="${e}"
2317
- aria-describedby="${A(this.helpText?V.HELPER_TEXT_ID:"")}"
2317
+ aria-describedby="${T(this.helpText?V.HELPER_TEXT_ID:"")}"
2318
2318
  aria-invalid="${this.helpTextType==="error"?"true":"false"}"
2319
- placeholder=${A(o)}
2320
- minlength=${A(this.minlength)}
2321
- maxlength=${A(this.maxlength)}
2319
+ placeholder=${T(o)}
2320
+ minlength=${T(this.minlength)}
2321
+ maxlength=${T(this.maxlength)}
2322
2322
  autocapitalize=${this.autocapitalize}
2323
2323
  autocomplete=${this.autocomplete}
2324
2324
  ?autofocus="${this.autofocus}"
2325
- dirname=${A(this.dirname)}
2326
- pattern=${A(this.pattern)}
2327
- list=${A(this.list)}
2328
- size=${A(this.size)}
2325
+ dirname=${T(this.dirname)}
2326
+ pattern=${T(this.pattern)}
2327
+ list=${T(this.list)}
2328
+ size=${T(this.size)}
2329
2329
  @input=${this.onInput}
2330
2330
  @change=${this.onChange}
2331
2331
  @keydown=${this.handleKeyDown}
@@ -2711,7 +2711,7 @@
2711
2711
  :host([color='contrast'])::part(popover-content) {
2712
2712
  color: var(--mdc-tooltip-text-color-contrast);
2713
2713
  }
2714
- `,Tl=[hm];var vr=class extends Ae{constructor(){super(...arguments);this.tooltipType=st.TOOLTIP_TYPE}connectedCallback(){super.connectedCallback(),this.backdrop=!1,this.delay=st.DELAY,this.focusTrap=!1,this.hideOnBlur=!0,this.hideOnEscape=!0,this.interactive=!1,this.offset=st.OFFSET,this.placement=st.PLACEMENT,this.role="tooltip",this.trigger="mouseenter focusin",this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.flip=!0,this.focusTrap=!1,this.preventScroll=!1,this.closeButton=!1,this.hideOnOutsideClick=!1,this.focusBackToTrigger=!1,this.size=!1,this.disableAriaExpanded=!0}getTooltipText(){var e,r;return((r=(e=this.defaultSlotNodes)==null?void 0:e.map(o=>o.textContent).join(" "))==null?void 0:r.trim())||""}setTooltipType(e){this.setAttribute("tooltip-type",Object.values(le).includes(e)?e:st.TOOLTIP_TYPE)}onIdUpdated(){this.id.length===0&&(this.id=`mdc-tooltip-${Ue()}`);let e=document.getElementById(this.triggerID);if(e)switch(this.tooltipType){case le.DESCRIPTION:e.setAttribute("aria-describedby",this.id);break;case le.LABEL:e.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(ne).includes(this.placement)||(this.placement=st.PLACEMENT)}onTooltipTypeUpdated(e){let r=e.get("tooltipType");Object.values(le).includes(this.tooltipType)||this.setTooltipType(st.TOOLTIP_TYPE);let o=document.getElementById(this.triggerID);if(o){let a=this.getTooltipText();switch(this.tooltipType){case le.DESCRIPTION:r===le.LABEL&&o.removeAttribute("aria-labelledby"),o.setAttribute("aria-describedby",this.id);break;case le.LABEL:r===le.DESCRIPTION&&o.removeAttribute("aria-describedby"),o.setAttribute("aria-labelledby",this.id);break;default:r===le.DESCRIPTION?o.removeAttribute("aria-describedby"):r===le.LABEL&&o.removeAttribute("aria-labelledby");break}a.length>0&&this.tooltipType!==le.NONE&&!this.ariaLabel&&(this.ariaLabel=a)}}update(e){super.update(e),e.has("id")&&this.onIdUpdated(),e.has("placement")&&this.onPlacementUpdated(),e.has("tooltipType")&&this.onTooltipTypeUpdated(e)}};vr.styles=[...Ae.styles,...Tl],n([c({type:String,attribute:"tooltip-type",reflect:!0})],vr.prototype,"tooltipType",2),n([vo()],vr.prototype,"defaultSlotNodes",2);var ga=vr;ga.register(Qo);var um=ga;var Jo=f.constructTagName("select"),ei={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"};var Al="check-bold",ya="dynamic-option-tooltip-popover",eo=f.constructTagName("option");var fm=u`
2714
+ `,Tl=[hm];var vr=class extends Te{constructor(){super(...arguments);this.tooltipType=st.TOOLTIP_TYPE}connectedCallback(){super.connectedCallback(),this.backdrop=!1,this.delay=st.DELAY,this.focusTrap=!1,this.hideOnBlur=!0,this.hideOnEscape=!0,this.interactive=!1,this.offset=st.OFFSET,this.placement=st.PLACEMENT,this.role="tooltip",this.trigger="mouseenter focusin",this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.flip=!0,this.focusTrap=!1,this.preventScroll=!1,this.closeButton=!1,this.hideOnOutsideClick=!1,this.focusBackToTrigger=!1,this.size=!1,this.disableAriaExpanded=!0}getTooltipText(){var e,r;return((r=(e=this.defaultSlotNodes)==null?void 0:e.map(o=>o.textContent).join(" "))==null?void 0:r.trim())||""}setTooltipType(e){this.setAttribute("tooltip-type",Object.values(le).includes(e)?e:st.TOOLTIP_TYPE)}onIdUpdated(){this.id.length===0&&(this.id=`mdc-tooltip-${Ue()}`);let e=document.getElementById(this.triggerID);if(e)switch(this.tooltipType){case le.DESCRIPTION:e.setAttribute("aria-describedby",this.id);break;case le.LABEL:e.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(ne).includes(this.placement)||(this.placement=st.PLACEMENT)}onTooltipTypeUpdated(e){let r=e.get("tooltipType");Object.values(le).includes(this.tooltipType)||this.setTooltipType(st.TOOLTIP_TYPE);let o=document.getElementById(this.triggerID);if(o){let a=this.getTooltipText();switch(this.tooltipType){case le.DESCRIPTION:r===le.LABEL&&o.removeAttribute("aria-labelledby"),o.setAttribute("aria-describedby",this.id);break;case le.LABEL:r===le.DESCRIPTION&&o.removeAttribute("aria-describedby"),o.setAttribute("aria-labelledby",this.id);break;default:r===le.DESCRIPTION?o.removeAttribute("aria-describedby"):r===le.LABEL&&o.removeAttribute("aria-labelledby");break}a.length>0&&this.tooltipType!==le.NONE&&!this.ariaLabel&&(this.ariaLabel=a)}}update(e){super.update(e),e.has("id")&&this.onIdUpdated(),e.has("placement")&&this.onPlacementUpdated(),e.has("tooltipType")&&this.onTooltipTypeUpdated(e)}};vr.styles=[...Te.styles,...Tl],n([c({type:String,attribute:"tooltip-type",reflect:!0})],vr.prototype,"tooltipType",2),n([vo()],vr.prototype,"defaultSlotNodes",2);var ga=vr;ga.register(Qo);var um=ga;var Jo=f.constructTagName("select"),ei={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"};var Al="check-bold",ya="dynamic-option-tooltip-popover",eo=f.constructTagName("option");var fm=u`
2715
2715
  :host {
2716
2716
  --mdc-option-icon-width: 1rem;
2717
2717
 
@@ -2742,7 +2742,7 @@
2742
2742
  }
2743
2743
  `,Sl=[fm];var Rt=class extends re(fr){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role="option",this.variant=pa.INSET_RECTANGLE,this.updateAttribute("aria-selected",`${this.selected}`),this.updateAttribute("aria-disabled",`${!!this.disabled}`),this.name=void 0,this.secondaryLabel=void 0,this.sideHeaderText=void 0,this.sublineText=void 0,this.dataAriaLabel=void 0,this.addEventListener("focusin",this.displayTooltipForLongText),this.addEventListener("mouseover",this.displayTooltipForLongText),this.addEventListener("focusout",this.hideTooltipOnLeave),this.addEventListener("mouseout",this.hideTooltipOnLeave),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",this.displayTooltipForLongText),this.removeEventListener("mouseover",this.displayTooltipForLongText),this.removeEventListener("focusout",this.hideTooltipOnLeave),this.removeEventListener("mouseout",this.hideTooltipOnLeave),this.removeEventListener("click",this.handleClick)}handleClick(){this.hideTooltipOnLeave()}displayTooltipForLongText(e){var s,l;let r=(s=e.target.shadowRoot)==null?void 0:s.querySelector('[part="leading-text-primary-label"]');if(r&&r.scrollWidth&&r.clientWidth&&r.scrollWidth<=(r==null?void 0:r.clientWidth))return;let o=document.createElement(Qo);o.id=ya,o.textContent=(l=this.label)!=null?l:"",o.setAttribute("triggerid",this.id),o.setAttribute("visible",""),o.setAttribute("show-arrow","");let a=this.closest(Jo)||this.parentElement;a==null||a.after(o)}hideTooltipOnLeave(){let e=document.querySelector(`#${ya}`);e==null||e.remove()}handleDefaultSlotChange(){var r,o,a;let e=(r=this.shadowRoot)==null?void 0:r.querySelector("slot");e&&!this.label&&(this.label=(a=(o=e.assignedNodes()[0])==null?void 0:o.textContent)==null?void 0:a.trim())}updateAttribute(e,r){this.setAttribute(e,r)}update(e){super.update(e),e.has("disabled")&&this.updateAttribute("aria-disabled",`${this.disabled}`),e.has("selected")&&this.updateAttribute("aria-selected",`${this.selected}`)}render(){let e=this.prefixIcon?m`
2744
2744
  <div part="leading-icon">
2745
- <mdc-icon slot="leading-controls" name="${A(this.prefixIcon)}"></mdc-icon>
2745
+ <mdc-icon slot="leading-controls" name="${T(this.prefixIcon)}"></mdc-icon>
2746
2746
  </div>
2747
2747
  `:g,r=this.selected?m`
2748
2748
  <mdc-icon slot="trailing-controls" name="${Al}"></mdc-icon>
@@ -2755,7 +2755,7 @@
2755
2755
  ${r}
2756
2756
  </div>
2757
2757
  <slot part="default-slot" @slotchange="${this.handleDefaultSlotChange}"></slot>
2758
- `}};Rt.styles=[...fr.styles,...Sl],n([c({type:Boolean,reflect:!0})],Rt.prototype,"selected",2),n([c({type:String,reflect:!0,attribute:"prefix-icon"})],Rt.prototype,"prefixIcon",2),n([c({type:String,reflect:!0,attribute:"aria-label"})],Rt.prototype,"ariaLabel",2);var xa=Rt;xa.register(eo);var bm=xa;Ae.register(Hn);var vm=Ae;var gm=[u`
2758
+ `}};Rt.styles=[...fr.styles,...Sl],n([c({type:Boolean,reflect:!0})],Rt.prototype,"selected",2),n([c({type:String,reflect:!0,attribute:"prefix-icon"})],Rt.prototype,"prefixIcon",2),n([c({type:String,reflect:!0,attribute:"aria-label"})],Rt.prototype,"ariaLabel",2);var xa=Rt;xa.register(eo);var bm=xa;Te.register(Hn);var vm=Te;var gm=[u`
2759
2759
  :host {
2760
2760
  --mdc-progressbar-background-color: var(--mds-color-theme-control-indicator-inactive-normal);
2761
2761
  --mdc-progressbar-active-background-color: var(--mds-color-theme-control-active-normal);
@@ -3051,8 +3051,8 @@
3051
3051
  type="radio"
3052
3052
  role="radio"
3053
3053
  ?autofocus="${this.autofocus}"
3054
- name="${A(this.name)}"
3055
- value="${A(this.value)}"
3054
+ name="${T(this.name)}"
3055
+ value="${T(this.value)}"
3056
3056
  ?required="${!!this.requiredLabel}"
3057
3057
  @change=${this.handleChange}
3058
3058
  @keydown=${this.handleKeyDown}
@@ -3061,7 +3061,7 @@
3061
3061
  ?disabled=${this.disabled}
3062
3062
  class="mdc-radio__input"
3063
3063
  aria-checked="${this.checked}"
3064
- aria-describedby="${A(this.helpText?V.HELPER_TEXT_ID:"")}"
3064
+ aria-describedby="${T(this.helpText?V.HELPER_TEXT_ID:"")}"
3065
3065
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
3066
3066
  />
3067
3067
  </mdc-staticradio>
@@ -3766,19 +3766,19 @@
3766
3766
  ?disabled="${this.disabled}"
3767
3767
  ?readonly="${this.readonly}"
3768
3768
  ?required="${!!this.requiredLabel}"
3769
- placeholder=${A(this.placeholder)}
3770
- rows=${A(this.rows)}
3771
- cols=${A(this.cols)}
3772
- wrap=${A(this.wrap)}
3769
+ placeholder=${T(this.placeholder)}
3770
+ rows=${T(this.rows)}
3771
+ cols=${T(this.cols)}
3772
+ wrap=${T(this.wrap)}
3773
3773
  ?autofocus="${this.autofocus}"
3774
3774
  autocapitalize=${this.autocapitalize}
3775
3775
  autocomplete=${this.autocomplete}
3776
- minlength=${A(this.minlength)}
3777
- maxlength=${A(this.maxlength)}
3778
- dirname=${A(this.dirname)}
3776
+ minlength=${T(this.minlength)}
3777
+ maxlength=${T(this.maxlength)}
3778
+ dirname=${T(this.dirname)}
3779
3779
  @input=${this.updateValue}
3780
3780
  @change=${this.onChange}
3781
- aria-describedby="${A(this.helpText?V.HELPER_TEXT_ID:"")}"
3781
+ aria-describedby="${T(this.helpText?V.HELPER_TEXT_ID:"")}"
3782
3782
  aria-invalid="${this.helpTextType==="error"?"true":"false"}"
3783
3783
  ></textarea>
3784
3784
  </div>
@@ -3909,12 +3909,12 @@
3909
3909
  role="switch"
3910
3910
  ?autofocus="${this.autofocus}"
3911
3911
  ?required="${!!this.requiredLabel}"
3912
- name="${A(this.name)}"
3913
- value="${A(this.value)}"
3912
+ name="${T(this.name)}"
3913
+ value="${T(this.value)}"
3914
3914
  .checked="${this.checked}"
3915
3915
  aria-checked="${this.checked}"
3916
3916
  .disabled="${this.disabled}"
3917
- aria-describedby="${A(this.helpText?V.HELPER_TEXT_ID:"")}"
3917
+ aria-describedby="${T(this.helpText?V.HELPER_TEXT_ID:"")}"
3918
3918
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
3919
3919
  tabindex="${this.disabled?-1:0}"
3920
3920
  @change="${this.handleChange}"
@@ -3945,17 +3945,17 @@
3945
3945
  :host([color='contrast'])::part(popover-content) {
3946
3946
  color: var(--mdc-toggletip-text-color-contrast);
3947
3947
  }
3948
- `,jl=[Gm];var Pt=class extends Ae{constructor(){super(...arguments);this.currentAnnouncement="";this.screenreaderAnnouncerIdentity=""}connectedCallback(){super.connectedCallback(),this.closeButton=zt.CLOSE_BUTTON,this.closeButtonAriaLabel=zt.CLOSE_BUTTON_ARIA_LABEL,this.placement=zt.PLACEMENT,this.trigger=zt.CLICK,this.showArrow=zt.SHOW_ARROW,this.interactive=!0,this.backdrop=!0,this.hideOnBlur=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0}getToggleTipText(){var e,r;return((r=(e=this.defaultSlotNodes)==null?void 0:e.map(o=>o.textContent).join(" "))==null?void 0:r.trim())||""}onPlacementUpdated(){Object.values(ne).includes(this.placement)||(this.placement=zt.PLACEMENT)}update(e){super.update(e),e.has("placement")&&this.onPlacementUpdated(),e.has("visible")&&(this.currentAnnouncement=this.visible?this.getToggleTipText():"")}render(){return m`
3948
+ `,jl=[Gm];var Pt=class extends Te{constructor(){super(...arguments);this.currentAnnouncement="";this.screenreaderAnnouncerIdentity=""}connectedCallback(){super.connectedCallback(),this.closeButton=zt.CLOSE_BUTTON,this.closeButtonAriaLabel=zt.CLOSE_BUTTON_ARIA_LABEL,this.placement=zt.PLACEMENT,this.trigger=zt.CLICK,this.showArrow=zt.SHOW_ARROW,this.interactive=!0,this.backdrop=!0,this.hideOnBlur=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0}getToggleTipText(){var e,r;return((r=(e=this.defaultSlotNodes)==null?void 0:e.map(o=>o.textContent).join(" "))==null?void 0:r.trim())||""}onPlacementUpdated(){Object.values(ne).includes(this.placement)||(this.placement=zt.PLACEMENT)}update(e){super.update(e),e.has("placement")&&this.onPlacementUpdated(),e.has("visible")&&(this.currentAnnouncement=this.visible?this.getToggleTipText():"")}render(){return m`
3949
3949
  ${super.render()}
3950
3950
  <mdc-screenreaderannouncer
3951
3951
  identity="${this.screenreaderAnnouncerIdentity}"
3952
3952
  announcement="${this.currentAnnouncement}"
3953
3953
  delay="300">
3954
3954
  </mdc-screenreaderannouncer>
3955
- `}};Pt.styles=[...Ae.styles,...jl],n([vo()],Pt.prototype,"defaultSlotNodes",2),n([N()],Pt.prototype,"currentAnnouncement",2),n([c({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],Pt.prototype,"screenreaderAnnouncerIdentity",2);var Pa=Pt;Pa.register(Kl);var Wm=Pa;function Vt(i,t,e){var a;let r=(a=e.initialDeps)!=null?a:[],o;return()=>{var s,l,d,p;let h;e.key&&((s=e.debug)!=null&&s.call(e))&&(h=Date.now());let b=i();if(!(b.length!==r.length||b.some((E,T)=>r[T]!==E)))return o;r=b;let y;if(e.key&&((l=e.debug)!=null&&l.call(e))&&(y=Date.now()),o=t(...b),e.key&&((d=e.debug)!=null&&d.call(e))){let E=Math.round((Date.now()-h)*100)/100,T=Math.round((Date.now()-y)*100)/100,w=T/16,S=(C,R)=>{for(C=String(C);C.length<R;)C=" "+C;return C};console.info(`%c\u23F1 ${S(T,5)} /${S(E,5)} ms`,`
3955
+ `}};Pt.styles=[...Te.styles,...jl],n([vo()],Pt.prototype,"defaultSlotNodes",2),n([N()],Pt.prototype,"currentAnnouncement",2),n([c({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],Pt.prototype,"screenreaderAnnouncerIdentity",2);var Pa=Pt;Pa.register(Kl);var Wm=Pa;function Vt(i,t,e){var a;let r=(a=e.initialDeps)!=null?a:[],o;return()=>{var s,l,d,p;let h;e.key&&((s=e.debug)!=null&&s.call(e))&&(h=Date.now());let b=i();if(!(b.length!==r.length||b.some((E,A)=>r[A]!==E)))return o;r=b;let y;if(e.key&&((l=e.debug)!=null&&l.call(e))&&(y=Date.now()),o=t(...b),e.key&&((d=e.debug)!=null&&d.call(e))){let E=Math.round((Date.now()-h)*100)/100,A=Math.round((Date.now()-y)*100)/100,w=A/16,S=(C,R)=>{for(C=String(C);C.length<R;)C=" "+C;return C};console.info(`%c\u23F1 ${S(A,5)} /${S(E,5)} ms`,`
3956
3956
  font-size: .6rem;
3957
3957
  font-weight: bold;
3958
- color: hsl(${Math.max(0,Math.min(120-120*w,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(p=e==null?void 0:e.onChange)==null||p.call(e,o),o}}function di(i,t){if(i===void 0)throw new Error(`Unexpected undefined${t?`: ${t}`:""}`);return i}var Ql=(i,t)=>Math.abs(i-t)<1,Jl=(i,t,e)=>{let r;return function(...o){i.clearTimeout(r),r=i.setTimeout(()=>t.apply(this,o),e)}};var Ym=i=>i,qm=i=>{let t=Math.max(i.startIndex-i.overscan,0),e=Math.min(i.endIndex+i.overscan,i.count-1),r=[];for(let o=t;o<=e;o++)r.push(o);return r},tc=(i,t)=>{let e=i.scrollElement;if(!e)return;let r=i.targetWindow;if(!r)return;let o=s=>{let{width:l,height:d}=s;t({width:Math.round(l),height:Math.round(d)})};if(o(e.getBoundingClientRect()),!r.ResizeObserver)return()=>{};let a=new r.ResizeObserver(s=>{let l=s[0];if(l!=null&&l.borderBoxSize){let d=l.borderBoxSize[0];if(d){o({width:d.inlineSize,height:d.blockSize});return}}o(e.getBoundingClientRect())});return a.observe(e,{box:"border-box"}),()=>{a.unobserve(e)}},ec={passive:!0};var Zm=typeof window>"u"?!0:"onscrollend"in window,rc=(i,t)=>{let e=i.scrollElement;if(!e)return;let r=i.targetWindow;if(!r)return;let o=0,a=i.options.useScrollendEvent&&Zm?()=>{}:Jl(r,()=>{t(o,!1)},i.options.isScrollingResetDelay),s=p=>()=>{let{horizontal:h,isRtl:b}=i.options;o=h?e.scrollLeft*(b&&-1||1):e.scrollTop,a(),t(o,p)},l=s(!0),d=s(!1);return d(),e.addEventListener("scroll",l,ec),e.addEventListener("scrollend",d,ec),()=>{e.removeEventListener("scroll",l),e.removeEventListener("scrollend",d)}};var Xm=(i,t,e)=>{if(t!=null&&t.borderBoxSize){let r=t.borderBoxSize[0];if(r)return Math.round(r[e.options.horizontal?"inlineSize":"blockSize"])}return Math.round(i.getBoundingClientRect()[e.options.horizontal?"width":"height"])};var oc=(i,{adjustments:t=0,behavior:e},r)=>{var o,a;let s=i+t;(a=(o=r.scrollElement)==null?void 0:o.scrollTo)==null||a.call(o,{[r.options.horizontal?"left":"top"]:s,behavior:e})},mi=class{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,r=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(o=>{o.forEach(a=>{this._measureElement(a.target,a)})}));return{disconnect:()=>{var o;(o=r())==null||o.disconnect(),e=null},observe:o=>{var a;return(a=r())==null?void 0:a.observe(o,{box:"border-box"})},unobserve:o=>{var a;return(a=r())==null?void 0:a.unobserve(o)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([r,o])=>{typeof o>"u"&&delete e[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Ym,rangeExtractor:qm,onChange:()=>{},measureElement:Xm,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...e}},this.notify=e=>{var r,o;(o=(r=this.options).onChange)==null||o.call(r,this,e)},this.maybeNotify=Vt(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var o;var e;let r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(o=(e=this.scrollElement)==null?void 0:e.window)!=null?o:null,this.elementsCache.forEach(a=>{this.observer.observe(a)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,a=>{this.scrollRect=a,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(a,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<a?"forward":"backward":null,this.scrollOffset=a,this.isScrolling=s,this.maybeNotify()}))}},this.getSize=()=>{var e;return this.options.enabled?(this.scrollRect=(e=this.scrollRect)!=null?e:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var e;return this.options.enabled?(this.scrollOffset=(e=this.scrollOffset)!=null?e:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(e,r)=>{let o=new Map,a=new Map;for(let s=r-1;s>=0;s--){let l=e[s];if(o.has(l.lane))continue;let d=a.get(l.lane);if(d==null||l.end>d.end?a.set(l.lane,l):l.end<d.end&&o.set(l.lane,!0),o.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((s,l)=>s.end===l.end?s.index-l.index:s.end-l.end)[0]:void 0},this.getMeasurementOptions=Vt(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,r,o,a,s)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:r,scrollMargin:o,getItemKey:a,enabled:s}),{key:!1}),this.getMeasurements=Vt(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:r,scrollMargin:o,getItemKey:a,enabled:s},l)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(h=>{this.itemSizeCache.set(h.key,h.size)}));let d=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let p=this.measurementsCache.slice(0,d);for(let h=d;h<e;h++){let b=a(h),x=this.options.lanes===1?p[h-1]:this.getFurthestMeasurement(p,h),y=x?x.end+this.options.gap:r+o,E=l.get(b),T=typeof E=="number"?E:this.options.estimateSize(h),w=y+T,S=x?x.lane:h%this.options.lanes;p[h]={index:h,start:y,size:T,end:w,key:b,lane:S}}return this.measurementsCache=p,p},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Vt(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,r,o)=>this.range=e.length>0&&r>0?Km({measurements:e,outerSize:r,scrollOffset:o}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Vt(()=>{let e=null,r=null,o=this.calculateRange();return o&&(e=o.startIndex,r=o.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,r]},(e,r,o,a,s)=>a===null||s===null?[]:e({startIndex:a,endIndex:s,overscan:r,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let r=this.options.indexAttribute,o=e.getAttribute(r);return o?parseInt(o,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(e,r)=>{let o=this.indexFromElement(e),a=this.measurementsCache[o];if(!a)return;let s=a.key,l=this.elementsCache.get(s);l!==e&&(l&&this.observer.unobserve(l),this.observer.observe(e),this.elementsCache.set(s,e)),e.isConnected&&this.resizeItem(o,this.options.measureElement(e,r,this))},this.resizeItem=(e,r)=>{var l;let o=this.measurementsCache[e];if(!o)return;let a=(l=this.itemSizeCache.get(o.key))!=null?l:o.size,s=r-a;s!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,s,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=s,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,r)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((r,o)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(o))});return}this._measureElement(e,void 0)},this.getVirtualItems=Vt(()=>[this.getIndexes(),this.getMeasurements()],(e,r)=>{let o=[];for(let a=0,s=e.length;a<s;a++){let l=e[a],d=r[l];o.push(d)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let r=this.getMeasurements();if(r.length!==0)return di(r[ic(0,r.length-1,o=>di(r[o]).start,e)])},this.getOffsetForAlignment=(e,r)=>{let o=this.getSize(),a=this.getScrollOffset();r==="auto"&&e>=a+o&&(r="end"),r==="end"&&(e-=o);let s=this.options.horizontal?"scrollWidth":"scrollHeight",d=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-o;return Math.max(Math.min(d,e),0)},this.getOffsetForIndex=(e,r="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let o=this.measurementsCache[e];if(!o)return;let a=this.getSize(),s=this.getScrollOffset();if(r==="auto")if(o.end>=s+a-this.options.scrollPaddingEnd)r="end";else if(o.start<=s+this.options.scrollPaddingStart)r="start";else return[s,r];let l=o.start-this.options.scrollPaddingStart+(o.size-a)/2;switch(r){case"center":return[this.getOffsetForAlignment(l,r),r];case"end":return[this.getOffsetForAlignment(o.end+this.options.scrollPaddingEnd,r),r];default:return[this.getOffsetForAlignment(o.start-this.options.scrollPaddingStart,r),r]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:r="start",behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,r),{adjustments:void 0,behavior:o})},this.scrollToIndex=(e,{align:r="auto",behavior:o}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let a=this.getOffsetForIndex(e,r);if(!a)return;let[s,l]=a;this._scrollToOffset(s,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[p]=di(this.getOffsetForIndex(e,l));Ql(p,this.getScrollOffset())||this.scrollToIndex(e,{align:l,behavior:o})}else this.scrollToIndex(e,{align:l,behavior:o})}))},this.scrollBy=(e,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var a;var e;let r=this.getMeasurements(),o;return r.length===0?o=this.options.paddingStart:o=this.options.lanes===1?(a=(e=r[r.length-1])==null?void 0:e.end)!=null?a:0:Math.max(...r.slice(-this.options.lanes).map(s=>s.end)),Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:r,behavior:o})=>{this.options.scrollToFn(e,{behavior:o,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}},ic=(i,t,e,r)=>{for(;i<=t;){let o=(i+t)/2|0,a=e(o);if(a<r)i=o+1;else if(a>r)t=o-1;else return o}return i>0?i-1:0};function Km({measurements:i,outerSize:t,scrollOffset:e}){let r=i.length-1,a=ic(0,r,l=>i[l].start,e),s=a;for(;s<r&&i[s].end<e+t;)s++;return{startIndex:a,endIndex:s}}var Va=class{constructor(t,e){this.cleanup=()=>{},(this.host=t).addController(this);let r={...e,onChange:(o,a)=>{var s;this.host.updateComplete.then(()=>this.host.requestUpdate()),(s=e.onChange)==null||s.call(e,o,a)}};this.virtualizer=new mi(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},pi=class extends Va{constructor(t,e){super(t,{observeElementRect:tc,observeElementOffset:rc,scrollToFn:oc,...e})}};var{I:rR}=ms;var ac=i=>i.strings===void 0;var io=(i,t)=>{var r;let e=i._$AN;if(e===void 0)return!1;for(let o of e)(r=o._$AO)==null||r.call(o,t,!1),io(o,t);return!0},hi=i=>{let t,e;do{if((t=i._$AM)===void 0)break;e=t._$AN,e.delete(i),i=t}while((e==null?void 0:e.size)===0)},sc=i=>{for(let t;t=i._$AM;i=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(i))break;e.add(i),Jm(t)}};function jm(i){this._$AN!==void 0?(hi(this),this._$AM=i,sc(this)):this._$AM=i}function Qm(i,t=!1,e=0){let r=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(t)if(Array.isArray(r))for(let a=e;a<r.length;a++)io(r[a],!1),hi(r[a]);else r!=null&&(io(r,!1),hi(r));else io(this,i)}var Jm=i=>{var t,e;i.type==ko.CHILD&&((t=i._$AP)!=null||(i._$AP=Qm),(e=i._$AQ)!=null||(i._$AQ=jm))},ui=class extends tr{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),sc(this),this.isConnected=t._$AU}_$AO(t,e=!0){var r,o;t!==this.isConnected&&(this.isConnected=t,t?(r=this.reconnected)==null||r.call(this):(o=this.disconnected)==null||o.call(this)),e&&(io(this,t),hi(this))}setValue(t){if(ac(this.t))this.t._$AI(t,this);else{let e=[...this.t._$AH];e[this.i]=t,this.t._$AI(e,this,0)}}disconnected(){}reconnected(){}};var nc=()=>new Fa,Fa=class{},Ua=new WeakMap,lc=Vr(class extends ui{render(i){return g}update(i,[t]){var r;let e=t!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=t,this.ht=(r=i.options)==null?void 0:r.host,this.rt(this.ct=i.element)),g}rt(i){var t;if(this.isConnected||(i=void 0),typeof this.Y=="function"){let e=(t=this.ht)!=null?t:globalThis,r=Ua.get(e);r===void 0&&(r=new WeakMap,Ua.set(e,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.set(this.Y,i),i!==void 0&&this.Y.call(this.ht,i)}else this.Y.value=i}get lt(){var i,t,e;return typeof this.Y=="function"?(t=Ua.get((i=this.ht)!=null?i:globalThis))==null?void 0:t.get(this.Y):(e=this.Y)==null?void 0:e.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var ep=[u`
3958
+ color: hsl(${Math.max(0,Math.min(120-120*w,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(p=e==null?void 0:e.onChange)==null||p.call(e,o),o}}function di(i,t){if(i===void 0)throw new Error(`Unexpected undefined${t?`: ${t}`:""}`);return i}var Ql=(i,t)=>Math.abs(i-t)<1,Jl=(i,t,e)=>{let r;return function(...o){i.clearTimeout(r),r=i.setTimeout(()=>t.apply(this,o),e)}};var Ym=i=>i,qm=i=>{let t=Math.max(i.startIndex-i.overscan,0),e=Math.min(i.endIndex+i.overscan,i.count-1),r=[];for(let o=t;o<=e;o++)r.push(o);return r},tc=(i,t)=>{let e=i.scrollElement;if(!e)return;let r=i.targetWindow;if(!r)return;let o=s=>{let{width:l,height:d}=s;t({width:Math.round(l),height:Math.round(d)})};if(o(e.getBoundingClientRect()),!r.ResizeObserver)return()=>{};let a=new r.ResizeObserver(s=>{let l=s[0];if(l!=null&&l.borderBoxSize){let d=l.borderBoxSize[0];if(d){o({width:d.inlineSize,height:d.blockSize});return}}o(e.getBoundingClientRect())});return a.observe(e,{box:"border-box"}),()=>{a.unobserve(e)}},ec={passive:!0};var Zm=typeof window>"u"?!0:"onscrollend"in window,rc=(i,t)=>{let e=i.scrollElement;if(!e)return;let r=i.targetWindow;if(!r)return;let o=0,a=i.options.useScrollendEvent&&Zm?()=>{}:Jl(r,()=>{t(o,!1)},i.options.isScrollingResetDelay),s=p=>()=>{let{horizontal:h,isRtl:b}=i.options;o=h?e.scrollLeft*(b&&-1||1):e.scrollTop,a(),t(o,p)},l=s(!0),d=s(!1);return d(),e.addEventListener("scroll",l,ec),e.addEventListener("scrollend",d,ec),()=>{e.removeEventListener("scroll",l),e.removeEventListener("scrollend",d)}};var Xm=(i,t,e)=>{if(t!=null&&t.borderBoxSize){let r=t.borderBoxSize[0];if(r)return Math.round(r[e.options.horizontal?"inlineSize":"blockSize"])}return Math.round(i.getBoundingClientRect()[e.options.horizontal?"width":"height"])};var oc=(i,{adjustments:t=0,behavior:e},r)=>{var o,a;let s=i+t;(a=(o=r.scrollElement)==null?void 0:o.scrollTo)==null||a.call(o,{[r.options.horizontal?"left":"top"]:s,behavior:e})},mi=class{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,r=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(o=>{o.forEach(a=>{this._measureElement(a.target,a)})}));return{disconnect:()=>{var o;(o=r())==null||o.disconnect(),e=null},observe:o=>{var a;return(a=r())==null?void 0:a.observe(o,{box:"border-box"})},unobserve:o=>{var a;return(a=r())==null?void 0:a.unobserve(o)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([r,o])=>{typeof o>"u"&&delete e[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Ym,rangeExtractor:qm,onChange:()=>{},measureElement:Xm,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...e}},this.notify=e=>{var r,o;(o=(r=this.options).onChange)==null||o.call(r,this,e)},this.maybeNotify=Vt(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var o;var e;let r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(o=(e=this.scrollElement)==null?void 0:e.window)!=null?o:null,this.elementsCache.forEach(a=>{this.observer.observe(a)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,a=>{this.scrollRect=a,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(a,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<a?"forward":"backward":null,this.scrollOffset=a,this.isScrolling=s,this.maybeNotify()}))}},this.getSize=()=>{var e;return this.options.enabled?(this.scrollRect=(e=this.scrollRect)!=null?e:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var e;return this.options.enabled?(this.scrollOffset=(e=this.scrollOffset)!=null?e:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(e,r)=>{let o=new Map,a=new Map;for(let s=r-1;s>=0;s--){let l=e[s];if(o.has(l.lane))continue;let d=a.get(l.lane);if(d==null||l.end>d.end?a.set(l.lane,l):l.end<d.end&&o.set(l.lane,!0),o.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((s,l)=>s.end===l.end?s.index-l.index:s.end-l.end)[0]:void 0},this.getMeasurementOptions=Vt(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,r,o,a,s)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:r,scrollMargin:o,getItemKey:a,enabled:s}),{key:!1}),this.getMeasurements=Vt(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:r,scrollMargin:o,getItemKey:a,enabled:s},l)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(h=>{this.itemSizeCache.set(h.key,h.size)}));let d=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let p=this.measurementsCache.slice(0,d);for(let h=d;h<e;h++){let b=a(h),x=this.options.lanes===1?p[h-1]:this.getFurthestMeasurement(p,h),y=x?x.end+this.options.gap:r+o,E=l.get(b),A=typeof E=="number"?E:this.options.estimateSize(h),w=y+A,S=x?x.lane:h%this.options.lanes;p[h]={index:h,start:y,size:A,end:w,key:b,lane:S}}return this.measurementsCache=p,p},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Vt(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,r,o)=>this.range=e.length>0&&r>0?Km({measurements:e,outerSize:r,scrollOffset:o}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Vt(()=>{let e=null,r=null,o=this.calculateRange();return o&&(e=o.startIndex,r=o.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,r]},(e,r,o,a,s)=>a===null||s===null?[]:e({startIndex:a,endIndex:s,overscan:r,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let r=this.options.indexAttribute,o=e.getAttribute(r);return o?parseInt(o,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(e,r)=>{let o=this.indexFromElement(e),a=this.measurementsCache[o];if(!a)return;let s=a.key,l=this.elementsCache.get(s);l!==e&&(l&&this.observer.unobserve(l),this.observer.observe(e),this.elementsCache.set(s,e)),e.isConnected&&this.resizeItem(o,this.options.measureElement(e,r,this))},this.resizeItem=(e,r)=>{var l;let o=this.measurementsCache[e];if(!o)return;let a=(l=this.itemSizeCache.get(o.key))!=null?l:o.size,s=r-a;s!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,s,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=s,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,r)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((r,o)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(o))});return}this._measureElement(e,void 0)},this.getVirtualItems=Vt(()=>[this.getIndexes(),this.getMeasurements()],(e,r)=>{let o=[];for(let a=0,s=e.length;a<s;a++){let l=e[a],d=r[l];o.push(d)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let r=this.getMeasurements();if(r.length!==0)return di(r[ic(0,r.length-1,o=>di(r[o]).start,e)])},this.getOffsetForAlignment=(e,r)=>{let o=this.getSize(),a=this.getScrollOffset();r==="auto"&&e>=a+o&&(r="end"),r==="end"&&(e-=o);let s=this.options.horizontal?"scrollWidth":"scrollHeight",d=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-o;return Math.max(Math.min(d,e),0)},this.getOffsetForIndex=(e,r="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let o=this.measurementsCache[e];if(!o)return;let a=this.getSize(),s=this.getScrollOffset();if(r==="auto")if(o.end>=s+a-this.options.scrollPaddingEnd)r="end";else if(o.start<=s+this.options.scrollPaddingStart)r="start";else return[s,r];let l=o.start-this.options.scrollPaddingStart+(o.size-a)/2;switch(r){case"center":return[this.getOffsetForAlignment(l,r),r];case"end":return[this.getOffsetForAlignment(o.end+this.options.scrollPaddingEnd,r),r];default:return[this.getOffsetForAlignment(o.start-this.options.scrollPaddingStart,r),r]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:r="start",behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,r),{adjustments:void 0,behavior:o})},this.scrollToIndex=(e,{align:r="auto",behavior:o}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let a=this.getOffsetForIndex(e,r);if(!a)return;let[s,l]=a;this._scrollToOffset(s,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[p]=di(this.getOffsetForIndex(e,l));Ql(p,this.getScrollOffset())||this.scrollToIndex(e,{align:l,behavior:o})}else this.scrollToIndex(e,{align:l,behavior:o})}))},this.scrollBy=(e,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var a;var e;let r=this.getMeasurements(),o;return r.length===0?o=this.options.paddingStart:o=this.options.lanes===1?(a=(e=r[r.length-1])==null?void 0:e.end)!=null?a:0:Math.max(...r.slice(-this.options.lanes).map(s=>s.end)),Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:r,behavior:o})=>{this.options.scrollToFn(e,{behavior:o,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}},ic=(i,t,e,r)=>{for(;i<=t;){let o=(i+t)/2|0,a=e(o);if(a<r)i=o+1;else if(a>r)t=o-1;else return o}return i>0?i-1:0};function Km({measurements:i,outerSize:t,scrollOffset:e}){let r=i.length-1,a=ic(0,r,l=>i[l].start,e),s=a;for(;s<r&&i[s].end<e+t;)s++;return{startIndex:a,endIndex:s}}var Va=class{constructor(t,e){this.cleanup=()=>{},(this.host=t).addController(this);let r={...e,onChange:(o,a)=>{var s;this.host.updateComplete.then(()=>this.host.requestUpdate()),(s=e.onChange)==null||s.call(e,o,a)}};this.virtualizer=new mi(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},pi=class extends Va{constructor(t,e){super(t,{observeElementRect:tc,observeElementOffset:rc,scrollToFn:oc,...e})}};var{I:rR}=ms;var ac=i=>i.strings===void 0;var io=(i,t)=>{var r;let e=i._$AN;if(e===void 0)return!1;for(let o of e)(r=o._$AO)==null||r.call(o,t,!1),io(o,t);return!0},hi=i=>{let t,e;do{if((t=i._$AM)===void 0)break;e=t._$AN,e.delete(i),i=t}while((e==null?void 0:e.size)===0)},sc=i=>{for(let t;t=i._$AM;i=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(i))break;e.add(i),Jm(t)}};function jm(i){this._$AN!==void 0?(hi(this),this._$AM=i,sc(this)):this._$AM=i}function Qm(i,t=!1,e=0){let r=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(t)if(Array.isArray(r))for(let a=e;a<r.length;a++)io(r[a],!1),hi(r[a]);else r!=null&&(io(r,!1),hi(r));else io(this,i)}var Jm=i=>{var t,e;i.type==ko.CHILD&&((t=i._$AP)!=null||(i._$AP=Qm),(e=i._$AQ)!=null||(i._$AQ=jm))},ui=class extends tr{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),sc(this),this.isConnected=t._$AU}_$AO(t,e=!0){var r,o;t!==this.isConnected&&(this.isConnected=t,t?(r=this.reconnected)==null||r.call(this):(o=this.disconnected)==null||o.call(this)),e&&(io(this,t),hi(this))}setValue(t){if(ac(this.t))this.t._$AI(t,this);else{let e=[...this.t._$AH];e[this.i]=t,this.t._$AI(e,this,0)}}disconnected(){}reconnected(){}};var nc=()=>new Fa,Fa=class{},Ua=new WeakMap,lc=Vr(class extends ui{render(i){return g}update(i,[t]){var r;let e=t!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=t,this.ht=(r=i.options)==null?void 0:r.host,this.rt(this.ct=i.element)),g}rt(i){var t;if(this.isConnected||(i=void 0),typeof this.Y=="function"){let e=(t=this.ht)!=null?t:globalThis,r=Ua.get(e);r===void 0&&(r=new WeakMap,Ua.set(e,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.set(this.Y,i),i!==void 0&&this.Y.call(this.ht,i)}else this.Y.value=i}get lt(){var i,t,e;return typeof this.Y=="function"?(t=Ua.get((i=this.ht)!=null?i:globalThis))==null?void 0:t.get(this.Y):(e=this.Y)==null?void 0:e.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var ep=[u`
3959
3959
  :host::part(scroll) {
3960
3960
  height: 100%;
3961
3961
  width: 100%;
@@ -4007,16 +4007,20 @@
4007
4007
  :host mdc-button[prefix-icon="arrow-right-regular"] {
4008
4008
  margin-left: var(--mdc-tablist-arrow-button-margin);
4009
4009
  }
4010
- `],pc=[...rp];var hc=f.constructTagName("tablist"),ao={LEFT:"ArrowLeft",RIGHT:"ArrowRight",HOME:"Home",END:"End"},xr={FORWARD:"forward",BACKWARD:"backward"};var fi=i=>i[0],Ha=i=>i[i.length-1],uc=(i,t)=>{let e=i.findIndex(r=>t===r)-1;return i[(e+i.length)%i.length]},fc=(i,t)=>{let e=i.findIndex(r=>t===r)+1;return i[e%i.length]},bc=(i,t)=>i.find(e=>e.tabId===t),Ga=i=>i.find(t=>t.active);var be=class extends v{constructor(){super();this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.isRtl=()=>{var e;return((e=document.querySelector("html"))==null?void 0:e.getAttribute("dir"))==="rtl"||window.getComputedStyle(this).direction==="rtl"};this.setAriaLabelledByOrAriaLabel=()=>{var e,r,o,a;this.dataAriaLabelledby?((e=this.tabsContainer)==null||e.setAttribute("aria-labelledby",this.dataAriaLabelledby),(r=this.tabsContainer)==null||r.removeAttribute("aria-label")):((o=this.tabsContainer)==null||o.setAttribute("aria-label",this.dataAriaLabel||"Tab List"),(a=this.tabsContainer)==null||a.removeAttribute("aria-labelledby"))};this.fireTabChangeEvent=e=>{let r=new CustomEvent("change",{detail:e.tabId});this.dispatchEvent(r)};this.handleFocus=async e=>{if(e.relatedTarget instanceof ce||!(e.target instanceof ce))return;let r=Ga(this.tabs||[]);r instanceof ce&&await this.focusTab(r)};this.handleMousedown=e=>{e.target instanceof ce&&e.preventDefault()};this.handleNestedTabActiveChange=async e=>{let r=e.target;r instanceof ce&&(this.setActiveTab(r),await this.focusTab(r),this.activeTabId=r.tabId)};this.resetTabIndexAndSetNewTabIndex=e=>{var r;(r=this.tabs)==null||r.forEach(o=>{o.setAttribute("tabindex",o===e?"0":"-1")})};this.setActiveTab=e=>{var r;(r=this.tabs)==null||r.forEach(o=>{o===e?o.setAttribute("active",""):o.removeAttribute("active")})};this.focusTab=async e=>{var r;e instanceof ce&&(e!==((r=this.shadowRoot)==null?void 0:r.activeElement)&&(this.resetTabIndexAndSetNewTabIndex(e),e.focus()),e.scrollIntoView({behavior:"instant",block:"start",inline:"center"}),await this.handleArrowButtonVisibility())};this.handleKeydown=async e=>{let r=e.target;if(!(r instanceof ce)||!this.tabs)return;let o=uc(this.tabs,r),a=fc(this.tabs,r),s=fi(this.tabs),l=Ha(this.tabs);switch(e.code){case ao.LEFT:e.preventDefault(),await this.focusTab(this.isRtl()?a:o);break;case ao.RIGHT:e.preventDefault(),await this.focusTab(this.isRtl()?o:a);break;case ao.HOME:await this.focusTab(s);break;case ao.END:await this.focusTab(l);break;default:}};this.shouldShowArrowButton=e=>e===xr.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton;this.switchFocus=async()=>{var e,r;await this.updateComplete,!this.showBackwardArrowButton&&!this.showForwardArrowButton?(e=Ga(this.tabs||[]))==null||e.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((r=this.notFocusedArrowButton)==null||r.focus())};this.handleArrowButtonVisibility=async()=>{var b,x,y;if(!this.tabs||!this.tabsContainer)return;let e=!1;((b=this.shadowRoot)==null?void 0:b.activeElement)instanceof bt&&(e=!0);let r=fi(this.tabs),o=Ha(this.tabs),a=r.getBoundingClientRect().left,s=(x=this.tabsContainer)==null?void 0:x.getBoundingClientRect().left,l=o.getBoundingClientRect().right,d=(y=this.tabsContainer)==null?void 0:y.getBoundingClientRect().right,p=r.getBoundingClientRect().right,h=o.getBoundingClientRect().left;if(!this.isRtl()){a<=s?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,l>d?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,e&&await this.switchFocus();return}p>d?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,h<s?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,e&&await this.switchFocus()};this.scrollTabs=async e=>{var a;let r=this.isRtl()?-1:1,o=this.isRtl()?1:-1;(a=this.tabsContainer)==null||a.scrollBy({left:this.tabsContainer.clientWidth*(e===xr.FORWARD?r:o),behavior:"instant"}),await this.handleArrowButtonVisibility()};this.addEventListener("keydown",this.handleKeydown),this.addEventListener("activechange",this.handleNestedTabActiveChange)}async firstUpdated(){var o,a,s;if(!this.tabs)return;if(Array.isArray(this.tabs)&&this.tabs.length===0){this.onerror&&this.onerror("The tablist component must have at least one child tab");return}let e=this.tabs.map(l=>l.tabId);new Set(e).size!==this.tabs.length&&this.onerror&&this.onerror("The tabs inside the tab list must have unique tab ids"),this.setAriaLabelledByOrAriaLabel(),new ResizeObserver(async()=>{var d,p;let l=(p=(d=this.tabsContainer)==null?void 0:d.shadowRoot)==null?void 0:p.activeElement;l instanceof ce&&l.scrollIntoView({behavior:"instant",block:"start",inline:"center"}),await this.handleArrowButtonVisibility()}).observe(this),this.activeTabId||(this.activeTabId=(o=fi(this.tabs))==null?void 0:o.tabId),(a=this.tabsContainer)==null||a.addEventListener("focusin",this.handleFocus),(s=this.tabsContainer)==null||s.addEventListener("mousedown",this.handleMousedown)}async update(e){if(super.update(e),(e.has("dataAriaLabelledby")||e.has("dataAriaLabel"))&&this.setAriaLabelledByOrAriaLabel(),e.has("activeTabId")){if(!this.tabs||!this.activeTabId)return;let r=bc(this.tabs,this.activeTabId);if(!(r instanceof ce))return;this.setActiveTab(r),e.get("activeTabId")?(this.fireTabChangeEvent(r),await this.focusTab(r)):this.resetTabIndexAndSetNewTabIndex(r)}}render(){let e=this.isRtl()?"left":"right",r=this.isRtl()?"right":"left",o=a=>m` ${this.shouldShowArrowButton(a)?m`<mdc-button
4010
+ `],pc=[...rp];var hc=f.constructTagName("tablist"),ao={LEFT:"ArrowLeft",RIGHT:"ArrowRight",HOME:"Home",END:"End"},xr={FORWARD:"forward",BACKWARD:"backward"};var fi=i=>i[0],Ha=i=>i[i.length-1],uc=(i,t)=>{let e=i.findIndex(r=>t===r)-1;return i[(e+i.length)%i.length]},fc=(i,t)=>{let e=i.findIndex(r=>t===r)+1;return i[e%i.length]},bc=(i,t)=>i.find(e=>e.tabId===t),Ga=i=>i.find(t=>t.active);var Ae=class extends v{constructor(){super();this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.isRtl=()=>{var e;return((e=document.querySelector("html"))==null?void 0:e.getAttribute("dir"))==="rtl"||window.getComputedStyle(this).direction==="rtl"};this.fireTabChangeEvent=e=>{let r=new CustomEvent("change",{detail:{tabId:e.tabId}});this.dispatchEvent(r)};this.handleFocus=async e=>{if(e.relatedTarget instanceof ce||!(e.target instanceof ce))return;let r=Ga(this.tabs||[]);r instanceof ce&&await this.focusTab(r)};this.handleMousedown=e=>{e.target instanceof ce&&e.preventDefault()};this.handleNestedTabActiveChange=async e=>{e.stopPropagation();let r=e.target;r instanceof ce&&(this.setActiveTab(r),await this.focusTab(r),this.activeTabId=r.tabId)};this.resetTabIndexAndSetNewTabIndex=e=>{var r;(r=this.tabs)==null||r.forEach(o=>{o.setAttribute("tabindex",o===e?"0":"-1")})};this.setActiveTab=e=>{var r;(r=this.tabs)==null||r.forEach(o=>{o===e?o.setAttribute("active",""):o.removeAttribute("active")})};this.focusTab=async e=>{e instanceof ce&&(e!==(document==null?void 0:document.activeElement)&&(this.resetTabIndexAndSetNewTabIndex(e),e.focus()),e.scrollIntoView({behavior:"instant",block:"start",inline:"center"}),await this.handleArrowButtonVisibility())};this.handleKeydown=async e=>{let r=e.target;if(!(r instanceof ce)||!this.tabs)return;let o=uc(this.tabs,r),a=fc(this.tabs,r),s=fi(this.tabs),l=Ha(this.tabs);switch(e.code){case ao.LEFT:e.preventDefault(),await this.focusTab(this.isRtl()?a:o);break;case ao.RIGHT:e.preventDefault(),await this.focusTab(this.isRtl()?o:a);break;case ao.HOME:await this.focusTab(s);break;case ao.END:await this.focusTab(l);break;default:}};this.shouldShowArrowButton=e=>e===xr.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton;this.switchFocus=async()=>{var e,r;await this.updateComplete,!this.showBackwardArrowButton&&!this.showForwardArrowButton?(e=Ga(this.tabs||[]))==null||e.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((r=this.notFocusedArrowButton)==null||r.focus())};this.handleArrowButtonVisibility=async()=>{var b,x,y;if(!this.tabs||!this.tabsContainer)return;let e=!1;((b=this.shadowRoot)==null?void 0:b.activeElement)instanceof bt&&(e=!0);let r=fi(this.tabs),o=Ha(this.tabs),a=r.getBoundingClientRect().left,s=(x=this.tabsContainer)==null?void 0:x.getBoundingClientRect().left,l=o.getBoundingClientRect().right,d=(y=this.tabsContainer)==null?void 0:y.getBoundingClientRect().right,p=r.getBoundingClientRect().right,h=o.getBoundingClientRect().left;if(!this.isRtl()){a<=s?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,l>d?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,e&&await this.switchFocus();return}p>d?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,h<s?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,e&&await this.switchFocus()};this.scrollTabs=async e=>{var a;let r=this.isRtl()?-1:1,o=this.isRtl()?1:-1;(a=this.tabsContainer)==null||a.scrollBy({left:this.tabsContainer.clientWidth*(e===xr.FORWARD?r:o),behavior:"instant"}),await this.handleArrowButtonVisibility()};this.addEventListener("keydown",this.handleKeydown),this.addEventListener("activechange",this.handleNestedTabActiveChange)}async firstUpdated(){var o,a,s;if(!this.tabs)return;if(Array.isArray(this.tabs)&&this.tabs.length===0){this.onerror&&this.onerror("The tablist component must have at least one child tab");return}let e=this.tabs.map(l=>l.tabId);new Set(e).size!==this.tabs.length&&this.onerror&&this.onerror("The tabs inside the tab list must have unique tab ids"),new ResizeObserver(async()=>{let{activeElement:l}=document;l instanceof ce&&l.scrollIntoView({behavior:"instant",block:"start",inline:"center"}),await this.handleArrowButtonVisibility()}).observe(this),this.activeTabId||(this.activeTabId=(o=fi(this.tabs))==null?void 0:o.tabId),(a=this.tabsContainer)==null||a.addEventListener("focusin",this.handleFocus),(s=this.tabsContainer)==null||s.addEventListener("mousedown",this.handleMousedown)}async update(e){if(super.update(e),e.has("activeTabId")){if(!this.tabs||!this.activeTabId)return;let r=bc(this.tabs,this.activeTabId);if(!(r instanceof ce))return;this.setActiveTab(r),e.get("activeTabId")?(this.fireTabChangeEvent(r),await this.focusTab(r)):this.resetTabIndexAndSetNewTabIndex(r)}}render(){let e=this.isRtl()?"left":"right",r=this.isRtl()?"right":"left",o=a=>m` ${this.shouldShowArrowButton(a)?m`<mdc-button
4011
4011
  variant="tertiary"
4012
4012
  prefix-icon="arrow-${a===xr.FORWARD?e:r}-regular"
4013
4013
  aria-label="Scroll tabs ${a===xr.FORWARD?e:r}"
4014
4014
  @click="${()=>this.scrollTabs(a)}"
4015
4015
  ></mdc-button>`:g}`;return m` ${o("backward")}
4016
- <div class="container" role="tablist" tabindex="-1">
4016
+ <div
4017
+ class="container"
4018
+ role="tablist"
4019
+ tabindex="-1"
4020
+ aria-label="${T(this.dataAriaLabel)}">
4017
4021
  <slot></slot>
4018
4022
  </div>
4019
- ${o(xr.FORWARD)}`}};be.styles=[...v.styles,...pc],n([c({type:String,attribute:"active-tab-id",reflect:!0})],be.prototype,"activeTabId",2),n([c({type:String,attribute:"data-aria-labelledby"})],be.prototype,"dataAriaLabelledby",2),n([c({type:String,attribute:"data-aria-label"})],be.prototype,"dataAriaLabel",2),n([$e(".container")],be.prototype,"tabsContainer",2),n([$e("mdc-button:not(:focus-visible)")],be.prototype,"notFocusedArrowButton",2),n([ie({selector:"mdc-tab"})],be.prototype,"tabs",2),n([N()],be.prototype,"showForwardArrowButton",2),n([N()],be.prototype,"showBackwardArrowButton",2);var Wa=be;Wa.register(hc);var op=Wa;var Er=class extends Lo(at){constructor(){super(...arguments);this.size=te.SIZE}setSoftDisabled(e,r){r?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled")}update(e){super.update(e),e.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),e.has("size")&&this.setSize(this.size),e.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),e.has("color")&&this.setColor(this.color),e.has("typeInternal")&&this.setSize(this.size),(e.has("prefixIcon")||e.has("postfixIcon"))&&this.inferButtonType()}render(){return m`
4023
+ ${o(xr.FORWARD)}`}};Ae.styles=[...v.styles,...pc],n([c({type:String,attribute:"active-tab-id",reflect:!0})],Ae.prototype,"activeTabId",2),n([c({type:String,attribute:"data-aria-label"})],Ae.prototype,"dataAriaLabel",2),n([$e(".container")],Ae.prototype,"tabsContainer",2),n([$e("mdc-button:not(:focus-visible)")],Ae.prototype,"notFocusedArrowButton",2),n([ie({selector:"mdc-tab"})],Ae.prototype,"tabs",2),n([N()],Ae.prototype,"showForwardArrowButton",2),n([N()],Ae.prototype,"showBackwardArrowButton",2);var Wa=Ae;Wa.register(hc);var op=Wa;var Er=class extends Lo(at){constructor(){super(...arguments);this.size=te.SIZE}setSoftDisabled(e,r){r?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled")}update(e){super.update(e),e.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),e.has("size")&&this.setSize(this.size),e.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),e.has("color")&&this.setColor(this.color),e.has("typeInternal")&&this.setSize(this.size),(e.has("prefixIcon")||e.has("postfixIcon"))&&this.inferButtonType()}render(){return m`
4020
4024
  ${this.prefixIcon?m` <mdc-icon name="${this.prefixIcon}" part="prefix-icon"></mdc-icon>`:""}
4021
4025
  <slot @slotchange=${this.inferButtonType}></slot>
4022
4026
  ${this.postfixIcon?m` <mdc-icon name="${this.postfixIcon}" part="postfix-icon"></mdc-icon>`:""}