@momentum-design/components 0.66.3 → 0.67.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.
Files changed (53) hide show
  1. package/dist/browser/index.js +456 -238
  2. package/dist/browser/index.js.map +4 -4
  3. package/dist/components/card/card.component.d.ts +4 -35
  4. package/dist/components/card/card.component.js +9 -79
  5. package/dist/components/dialog/dialog.component.d.ts +150 -0
  6. package/dist/components/dialog/dialog.component.js +340 -0
  7. package/dist/components/dialog/dialog.constants.d.ts +18 -0
  8. package/dist/components/dialog/dialog.constants.js +19 -0
  9. package/dist/components/dialog/dialog.events.d.ts +34 -0
  10. package/dist/components/dialog/dialog.events.js +47 -0
  11. package/dist/components/dialog/dialog.styles.d.ts +2 -0
  12. package/dist/components/dialog/dialog.styles.js +108 -0
  13. package/dist/components/dialog/dialog.types.d.ts +12 -0
  14. package/dist/components/dialog/dialog.types.js +1 -0
  15. package/dist/components/dialog/dialog.utils.d.ts +7 -0
  16. package/dist/components/dialog/dialog.utils.js +33 -0
  17. package/dist/components/dialog/index.d.ts +9 -0
  18. package/dist/components/dialog/index.js +6 -0
  19. package/dist/components/menuitemcheckbox/index.d.ts +12 -0
  20. package/dist/components/menuitemcheckbox/index.js +9 -0
  21. package/dist/components/menuitemcheckbox/menuitemcheckbox.component.d.ts +54 -0
  22. package/dist/components/menuitemcheckbox/menuitemcheckbox.component.js +137 -0
  23. package/dist/components/menuitemcheckbox/menuitemcheckbox.constants.d.ts +15 -0
  24. package/dist/components/menuitemcheckbox/menuitemcheckbox.constants.js +16 -0
  25. package/dist/components/menuitemcheckbox/menuitemcheckbox.styles.d.ts +2 -0
  26. package/dist/components/menuitemcheckbox/menuitemcheckbox.styles.js +13 -0
  27. package/dist/components/menuitemcheckbox/menuitemcheckbox.types.d.ts +10 -0
  28. package/dist/components/menuitemcheckbox/menuitemcheckbox.types.js +1 -0
  29. package/dist/components/menuitemradio/index.d.ts +10 -0
  30. package/dist/components/menuitemradio/index.js +7 -0
  31. package/dist/components/menuitemradio/menuitemradio.component.d.ts +34 -0
  32. package/dist/components/menuitemradio/menuitemradio.component.js +70 -0
  33. package/dist/components/menuitemradio/menuitemradio.constants.d.ts +6 -0
  34. package/dist/components/menuitemradio/menuitemradio.constants.js +7 -0
  35. package/dist/components/menuitemradio/menuitemradio.types.d.ts +9 -0
  36. package/dist/components/menuitemradio/menuitemradio.types.js +1 -0
  37. package/dist/components/popover/popover.styles.js +5 -0
  38. package/dist/components/toggletip/toggletip.styles.js +8 -0
  39. package/dist/custom-elements.json +5152 -2804
  40. package/dist/index.d.ts +6 -3
  41. package/dist/index.js +6 -3
  42. package/dist/react/dialog/index.d.ts +51 -0
  43. package/dist/react/dialog/index.js +59 -0
  44. package/dist/react/index.d.ts +3 -0
  45. package/dist/react/index.js +3 -0
  46. package/dist/react/menuitemcheckbox/index.d.ts +42 -0
  47. package/dist/react/menuitemcheckbox/index.js +50 -0
  48. package/dist/react/menuitemradio/index.d.ts +30 -0
  49. package/dist/react/menuitemradio/index.js +38 -0
  50. package/dist/utils/mixins/CardAndDialogFooterMixin.d.ts +11 -0
  51. package/dist/utils/mixins/CardAndDialogFooterMixin.js +102 -0
  52. package/dist/utils/mixins/FocusTrapMixin.js +4 -5
  53. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- "use strict";(()=>{var Yc=Object.defineProperty;var Wc=Object.getOwnPropertyDescriptor;var n=(i,t,e,r)=>{for(var o=r>1?void 0:r?Wc(t,e):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(o=(r?s(t,e,o):s(o))||o);return r&&o&&Yc(t,e,o),o};var fo=globalThis,bo=fo.ShadowRoot&&(fo.ShadyCSS===void 0||fo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ni=Symbol(),ps=new WeakMap,_r=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==Ni)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(bo&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=ps.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&ps.set(e,t))}return t}toString(){return this.cssText}},hs=i=>new _r(typeof i=="string"?i:i+"",void 0,Ni),u=(i,...t)=>{let e=i.length===1?i[0]:t.reduce((r,o,a)=>r+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+i[a+1],i[0]);return new _r(e,i,Ni)},_i=(i,t)=>{if(bo)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),o=fo.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=e.cssText,i.appendChild(r)}},go=bo?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return hs(e)})(i):i;var{is:qc,defineProperty:Kc,getOwnPropertyDescriptor:Zc,getOwnPropertyNames:Xc,getOwnPropertySymbols:jc,getPrototypeOf:Qc}=Object,ot=globalThis,us=ot.trustedTypes,Jc=us?us.emptyScript:"",Li=ot.reactiveElementPolyfillSupport,Lr=(i,t)=>i,Rr={toAttribute(i,t){switch(t){case Boolean:i=i?Jc:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},vo=(i,t)=>!qc(i,t),fs={attribute:!0,type:String,converter:Rr,reflect:!1,hasChanged:vo},bs,gs;(bs=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(gs=ot.litPropertyMetadata)!=null||(ot.litPropertyMetadata=new WeakMap);var ze=class extends HTMLElement{static addInitializer(t){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=fs){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let r=Symbol(),o=this.getPropertyDescriptor(t,r,e);o!==void 0&&Kc(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){var s;let{get:o,set:a}=(s=Zc(this.prototype,t))!=null?s:{get(){return this[e]},set(l){this[e]=l}};return{get(){return o==null?void 0:o.call(this)},set(l){let d=o==null?void 0:o.call(this);a.call(this,l),this.requestUpdate(t,d,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:fs}static _$Ei(){if(this.hasOwnProperty(Lr("elementProperties")))return;let t=Qc(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Lr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Lr("properties"))){let e=this.properties,r=[...Xc(e),...jc(e)];for(let o of r)this.createProperty(o,e[o])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,o]of e)this.elementProperties.set(r,o)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let o=this._$Eu(e,r);o!==void 0&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let r=new Set(t.flat(1/0).reverse());for(let o of r)e.unshift(go(o))}else t!==void 0&&e.push(go(t));return e}static _$Eu(t,e){let r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e,r;((e=this._$EO)!=null?e:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((r=t.hostConnected)==null||r.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var e;let t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return _i(t,this.constructor.elementStyles),t}connectedCallback(){var t,e;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(r=>{var o;return(o=r.hostConnected)==null?void 0:o.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostDisconnected)==null?void 0:r.call(e)})}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EC(t,e){var a;let r=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,r);if(o!==void 0&&r.reflect===!0){let s=(((a=r.converter)==null?void 0:a.toAttribute)!==void 0?r.converter:Rr).toAttribute(e,r.type);this._$Em=t,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(t,e){var a;let r=this.constructor,o=r._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let s=r.getPropertyOptions(o),l=typeof s.converter=="function"?{fromAttribute:s.converter}:((a=s.converter)==null?void 0:a.fromAttribute)!==void 0?s.converter:Rr;this._$Em=o,this[o]=l.fromAttribute(e,s.type),this._$Em=null}}requestUpdate(t,e,r){var o;if(t!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(t)),!((o=r.hasChanged)!=null?o:vo)(this[t],e))return;this.P(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,r){var o;this._$AL.has(t)||this._$AL.set(t,e),r.reflect===!0&&this._$Em!==t&&((o=this._$Ej)!=null?o:this._$Ej=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[s,l]of this._$Ep)this[s]=l;this._$Ep=void 0}let a=this.constructor.elementProperties;if(a.size>0)for(let[s,l]of a)l.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],l)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(o=this._$EO)==null||o.forEach(a=>{var s;return(s=a.hostUpdate)==null?void 0:s.call(a)}),this.update(e)):this._$EU()}catch(a){throw t=!1,this._$EU(),a}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(r=>{var o;return(o=r.hostUpdated)==null?void 0:o.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}},vs;ze.elementStyles=[],ze.shadowRootOptions={mode:"open"},ze[Lr("elementProperties")]=new Map,ze[Lr("finalized")]=new Map,Li==null||Li({ReactiveElement:ze}),((vs=ot.reactiveElementVersions)!=null?vs:ot.reactiveElementVersions=[]).push("2.0.4");var Mr=globalThis,yo=Mr.trustedTypes,ys=yo?yo.createPolicy("lit-html",{createHTML:i=>i}):void 0,Mi="$lit$",Pe=`lit$${Math.random().toFixed(9).slice(2)}$`,Di="?"+Pe,ed=`<${Di}>`,gt=document,Dr=()=>gt.createComment(""),$r=i=>i===null||typeof i!="object"&&typeof i!="function",$i=Array.isArray,Cs=i=>$i(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Ri=`[
2
- \f\r]`,Or=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,xs=/-->/g,Es=/>/g,ft=RegExp(`>|${Ri}(?:([^\\s"'>=/]+)(${Ri}*=${Ri}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ts=/'/g,As=/"/g,ks=/^(?:script|style|textarea|title)$/i,zi=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),m=zi(1),qp=zi(2),Kp=zi(3),Ve=Symbol.for("lit-noChange"),g=Symbol.for("lit-nothing"),Ss=new WeakMap,bt=gt.createTreeWalker(gt,129);function ws(i,t){if(!$i(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return ys!==void 0?ys.createHTML(t):t}var Ns=(i,t)=>{let e=i.length-1,r=[],o,a=t===2?"<svg>":t===3?"<math>":"",s=Or;for(let l=0;l<e;l++){let d=i[l],p,h,b=-1,x=0;for(;x<d.length&&(s.lastIndex=x,h=s.exec(d),h!==null);)x=s.lastIndex,s===Or?h[1]==="!--"?s=xs:h[1]!==void 0?s=Es:h[2]!==void 0?(ks.test(h[2])&&(o=RegExp("</"+h[2],"g")),s=ft):h[3]!==void 0&&(s=ft):s===ft?h[0]===">"?(s=o!=null?o:Or,b=-1):h[1]===void 0?b=-2:(b=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?ft:h[3]==='"'?As:Ts):s===As||s===Ts?s=ft:s===xs||s===Es?s=Or:(s=ft,o=void 0);let y=s===ft&&i[l+1].startsWith("/>")?" ":"";a+=s===Or?d+ed:b>=0?(r.push(p),d.slice(0,b)+Mi+d.slice(b)+Pe+y):d+Pe+(b===-2?l:y)}return[ws(i,a+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},zr=class i{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let a=0,s=0,l=t.length-1,d=this.parts,[p,h]=Ns(t,e);if(this.el=i.createElement(p,r),bt.currentNode=this.el.content,e===2||e===3){let b=this.el.content.firstChild;b.replaceWith(...b.childNodes)}for(;(o=bt.nextNode())!==null&&d.length<l;){if(o.nodeType===1){if(o.hasAttributes())for(let b of o.getAttributeNames())if(b.endsWith(Mi)){let x=h[s++],y=o.getAttribute(b).split(Pe),E=/([.?@])?(.*)/.exec(x);d.push({type:1,index:a,name:E[2],strings:y,ctor:E[1]==="."?Eo:E[1]==="?"?To:E[1]==="@"?Ao:yt}),o.removeAttribute(b)}else b.startsWith(Pe)&&(d.push({type:6,index:a}),o.removeAttribute(b));if(ks.test(o.tagName)){let b=o.textContent.split(Pe),x=b.length-1;if(x>0){o.textContent=yo?yo.emptyScript:"";for(let y=0;y<x;y++)o.append(b[y],Dr()),bt.nextNode(),d.push({type:2,index:++a});o.append(b[x],Dr())}}}else if(o.nodeType===8)if(o.data===Di)d.push({type:2,index:a});else{let b=-1;for(;(b=o.data.indexOf(Pe,b+1))!==-1;)d.push({type:7,index:a}),b+=Pe.length-1}a++}}static createElement(t,e){let r=gt.createElement("template");return r.innerHTML=t,r}};function vt(i,t,e=i,r){var s,l,d;if(t===Ve)return t;let o=r!==void 0?(s=e.o)==null?void 0:s[r]:e.l,a=$r(t)?void 0:t._$litDirective$;return(o==null?void 0:o.constructor)!==a&&((l=o==null?void 0:o._$AO)==null||l.call(o,!1),a===void 0?o=void 0:(o=new a(i),o._$AT(i,e,r)),r!==void 0?((d=e.o)!=null?d:e.o=[])[r]=o:e.l=o),o!==void 0&&(t=vt(i,o._$AS(i,t.values),o,r)),t}var xo=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var p;let{el:{content:e},parts:r}=this._$AD,o=((p=t==null?void 0:t.creationScope)!=null?p:gt).importNode(e,!0);bt.currentNode=o;let a=bt.nextNode(),s=0,l=0,d=r[0];for(;d!==void 0;){if(s===d.index){let h;d.type===2?h=new Xt(a,a.nextSibling,this,t):d.type===1?h=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(h=new So(a,this,t)),this._$AV.push(h),d=r[++l]}s!==(d==null?void 0:d.index)&&(a=bt.nextNode(),s++)}return bt.currentNode=gt,o}p(t){let e=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}},Xt=class i{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this.v}constructor(t,e,r,o){var a;this.type=2,this._$AH=g,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this.v=(a=o==null?void 0:o.isConnected)!=null?a:!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=vt(this,t,e),$r(t)?t===g||t==null||t===""?(this._$AH!==g&&this._$AR(),this._$AH=g):t!==this._$AH&&t!==Ve&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Cs(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==g&&$r(this._$AH)?this._$AA.nextSibling.data=t:this.T(gt.createTextNode(t)),this._$AH=t}$(t){var a;let{values:e,_$litType$:r}=t,o=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=zr.createElement(ws(r.h,r.h[0]),this.options)),r);if(((a=this._$AH)==null?void 0:a._$AD)===o)this._$AH.p(e);else{let s=new xo(o,this),l=s.u(this.options);s.p(e),this.T(l),this._$AH=s}}_$AC(t){let e=Ss.get(t.strings);return e===void 0&&Ss.set(t.strings,e=new zr(t)),e}k(t){$i(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,o=0;for(let a of t)o===e.length?e.push(r=new i(this.O(Dr()),this.O(Dr()),this,this.options)):r=e[o],r._$AI(a),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,e);t&&t!==this._$AB;){let o=t.nextSibling;t.remove(),t=o}}setConnected(t){var e;this._$AM===void 0&&(this.v=t,(e=this._$AP)==null||e.call(this,t))}},yt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,a){this.type=1,this._$AH=g,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=a,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=g}_$AI(t,e=this,r,o){let a=this.strings,s=!1;if(a===void 0)t=vt(this,t,e,0),s=!$r(t)||t!==this._$AH&&t!==Ve,s&&(this._$AH=t);else{let l=t,d,p;for(t=a[0],d=0;d<a.length-1;d++)p=vt(this,l[r+d],e,d),p===Ve&&(p=this._$AH[d]),s||(s=!$r(p)||p!==this._$AH[d]),p===g?t=g:t!==g&&(t+=(p!=null?p:"")+a[d+1]),this._$AH[d]=p}s&&!o&&this.j(t)}j(t){t===g?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},Eo=class extends yt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===g?void 0:t}},To=class extends yt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==g)}},Ao=class extends yt{constructor(t,e,r,o,a){super(t,e,r,o,a),this.type=5}_$AI(t,e=this){var s;if((t=(s=vt(this,t,e,0))!=null?s:g)===Ve)return;let r=this._$AH,o=t===g&&r!==g||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,a=t!==g&&(r===g||o);o&&this.element.removeEventListener(this.name,this,r),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,r;typeof this._$AH=="function"?this._$AH.call((r=(e=this.options)==null?void 0:e.host)!=null?r:this.element,t):this._$AH.handleEvent(t)}},So=class{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){vt(this,t)}},_s={M:Mi,P:Pe,A:Di,C:1,L:Ns,R:xo,D:Cs,V:vt,I:Xt,H:yt,N:To,U:Ao,B:Eo,F:So},Oi=Mr.litHtmlPolyfillSupport,Is;Oi==null||Oi(zr,Xt),((Is=Mr.litHtmlVersions)!=null?Is:Mr.litHtmlVersions=[]).push("3.2.0");var Ls=(i,t,e)=>{var a,s;let r=(a=e==null?void 0:e.renderBefore)!=null?a:t,o=r._$litPart$;if(o===void 0){let l=(s=e==null?void 0:e.renderBefore)!=null?s:null;r._$litPart$=o=new Xt(t.insertBefore(Dr(),l),l,void 0,e!=null?e:{})}return o._$AI(i),o};var it=class extends ze{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var e,r;let t=super.createRenderRoot();return(r=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=t.firstChild),t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this.o=Ls(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this.o)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.o)==null||t.setConnected(!1)}render(){return Ve}},Rs;it._$litElement$=!0,it.finalized=!0,(Rs=globalThis.litElementHydrateSupport)==null||Rs.call(globalThis,{LitElement:it});var Pi=globalThis.litElementPolyfillSupport;Pi==null||Pi({LitElement:it});var Os;((Os=globalThis.litElementVersions)!=null?Os:globalThis.litElementVersions=[]).push("4.1.0");var td={attribute:!0,type:String,converter:Rr,reflect:!1,hasChanged:vo},rd=(i=td,t,e)=>{let{kind:r,metadata:o}=e,a=globalThis.litPropertyMetadata.get(o);if(a===void 0&&globalThis.litPropertyMetadata.set(o,a=new Map),a.set(e.name,i),r==="accessor"){let{name:s}=e;return{set(l){let d=t.get.call(this);t.set.call(this,l),this.requestUpdate(s,d,i)},init(l){return l!==void 0&&this.P(s,void 0,i),l}}}if(r==="setter"){let{name:s}=e;return function(l){let d=this[s];t.call(this,l),this.requestUpdate(s,d,i)}}throw Error("Unsupported decorator location: "+r)};function c(i){return(t,e)=>typeof e=="object"?rd(i,t,e):((r,o,a)=>{let s=o.hasOwnProperty(a);return o.constructor.createProperty(a,s?{...r,wrapped:!0}:r),s?Object.getOwnPropertyDescriptor(o,a):void 0})(i,t,e)}function L(i){return c({...i,state:!0,attribute:!1})}var Ue=(i,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(i,t,e),e);function Fe(i,t){return(e,r,o)=>{let a=s=>{var l,d;return(d=(l=s.renderRoot)==null?void 0:l.querySelector(i))!=null?d:null};if(t){let{get:s,set:l}=typeof r=="object"?e:o!=null?o:(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return Ue(e,r,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return Ue(e,r,{get(){return a(this)}})}}function G(i){return(t,e)=>{let{slot:r,selector:o}=i!=null?i:{},a="slot"+(r?`[name=${r}]`:":not([name])");return Ue(t,e,{get(){var d,p;let s=(d=this.renderRoot)==null?void 0:d.querySelector(a),l=(p=s==null?void 0:s.assignedElements(i))!=null?p:[];return o===void 0?l:l.filter(h=>h.matches(o))}})}}function Io(i){return(t,e)=>{let{slot:r}=i!=null?i:{},o="slot"+(r?`[name=${r}]`:":not([name])");return Ue(t,e,{get(){var s,l;let a=(s=this.renderRoot)==null?void 0:s.querySelector(o);return(l=a==null?void 0:a.assignedNodes(i))!=null?l:[]}})}}var N=u`
1
+ "use strict";(()=>{var dd=Object.defineProperty;var md=Object.getOwnPropertyDescriptor;var n=(i,t,e,r)=>{for(var o=r>1?void 0:r?md(t,e):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(o=(r?s(t,e,o):s(o))||o);return r&&o&&dd(t,e,o),o};var So=globalThis,Io=So.ShadowRoot&&(So.ShadyCSS===void 0||So.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Fi=Symbol(),ks=new WeakMap,Mr=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==Fi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Io&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=ks.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&ks.set(e,t))}return t}toString(){return this.cssText}},Ns=i=>new Mr(typeof i=="string"?i:i+"",void 0,Fi),u=(i,...t)=>{let e=i.length===1?i[0]:t.reduce((r,o,a)=>r+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+i[a+1],i[0]);return new Mr(e,i,Fi)},Bi=(i,t)=>{if(Io)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),o=So.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=e.cssText,i.appendChild(r)}},Co=Io?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return Ns(e)})(i):i;var{is:pd,defineProperty:hd,getOwnPropertyDescriptor:ud,getOwnPropertyNames:fd,getOwnPropertySymbols:bd,getPrototypeOf:gd}=Object,st=globalThis,ws=st.trustedTypes,vd=ws?ws.emptyScript:"",Hi=st.reactiveElementPolyfillSupport,Dr=(i,t)=>i,$r={toAttribute(i,t){switch(t){case Boolean:i=i?vd:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},ko=(i,t)=>!pd(i,t),_s={attribute:!0,type:String,converter:$r,reflect:!1,hasChanged:ko},Ls,Rs;(Ls=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Rs=st.litPropertyMetadata)!=null||(st.litPropertyMetadata=new WeakMap);var Pe=class extends HTMLElement{static addInitializer(t){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=_s){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let r=Symbol(),o=this.getPropertyDescriptor(t,r,e);o!==void 0&&hd(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){var s;let{get:o,set:a}=(s=ud(this.prototype,t))!=null?s:{get(){return this[e]},set(c){this[e]=c}};return{get(){return o==null?void 0:o.call(this)},set(c){let d=o==null?void 0:o.call(this);a.call(this,c),this.requestUpdate(t,d,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:_s}static _$Ei(){if(this.hasOwnProperty(Dr("elementProperties")))return;let t=gd(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Dr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Dr("properties"))){let e=this.properties,r=[...fd(e),...bd(e)];for(let o of r)this.createProperty(o,e[o])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,o]of e)this.elementProperties.set(r,o)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let o=this._$Eu(e,r);o!==void 0&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let r=new Set(t.flat(1/0).reverse());for(let o of r)e.unshift(Co(o))}else t!==void 0&&e.push(Co(t));return e}static _$Eu(t,e){let r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e,r;((e=this._$EO)!=null?e:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((r=t.hostConnected)==null||r.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var e;let t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return Bi(t,this.constructor.elementStyles),t}connectedCallback(){var t,e;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(r=>{var o;return(o=r.hostConnected)==null?void 0:o.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostDisconnected)==null?void 0:r.call(e)})}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EC(t,e){var a;let r=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,r);if(o!==void 0&&r.reflect===!0){let s=(((a=r.converter)==null?void 0:a.toAttribute)!==void 0?r.converter:$r).toAttribute(e,r.type);this._$Em=t,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(t,e){var a;let r=this.constructor,o=r._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let s=r.getPropertyOptions(o),c=typeof s.converter=="function"?{fromAttribute:s.converter}:((a=s.converter)==null?void 0:a.fromAttribute)!==void 0?s.converter:$r;this._$Em=o,this[o]=c.fromAttribute(e,s.type),this._$Em=null}}requestUpdate(t,e,r){var o;if(t!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(t)),!((o=r.hasChanged)!=null?o:ko)(this[t],e))return;this.P(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,r){var o;this._$AL.has(t)||this._$AL.set(t,e),r.reflect===!0&&this._$Em!==t&&((o=this._$Ej)!=null?o:this._$Ej=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[s,c]of this._$Ep)this[s]=c;this._$Ep=void 0}let a=this.constructor.elementProperties;if(a.size>0)for(let[s,c]of a)c.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],c)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(o=this._$EO)==null||o.forEach(a=>{var s;return(s=a.hostUpdate)==null?void 0:s.call(a)}),this.update(e)):this._$EU()}catch(a){throw t=!1,this._$EU(),a}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(r=>{var o;return(o=r.hostUpdated)==null?void 0:o.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}},Os;Pe.elementStyles=[],Pe.shadowRootOptions={mode:"open"},Pe[Dr("elementProperties")]=new Map,Pe[Dr("finalized")]=new Map,Hi==null||Hi({ReactiveElement:Pe}),((Os=st.reactiveElementVersions)!=null?Os:st.reactiveElementVersions=[]).push("2.0.4");var Pr=globalThis,No=Pr.trustedTypes,Ms=No?No.createPolicy("lit-html",{createHTML:i=>i}):void 0,Wi="$lit$",Ue=`lit$${Math.random().toFixed(9).slice(2)}$`,qi="?"+Ue,yd=`<${qi}>`,xt=document,Ur=()=>xt.createComment(""),Vr=i=>i===null||typeof i!="object"&&typeof i!="function",Ki=Array.isArray,Fs=i=>Ki(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Gi=`[
2
+ \f\r]`,zr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ds=/-->/g,$s=/>/g,vt=RegExp(`>|${Gi}(?:([^\\s"'>=/]+)(${Gi}*=${Gi}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),zs=/'/g,Ps=/"/g,Bs=/^(?:script|style|textarea|title)$/i,Zi=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),m=Zi(1),vh=Zi(2),yh=Zi(3),Ve=Symbol.for("lit-noChange"),g=Symbol.for("lit-nothing"),Us=new WeakMap,yt=xt.createTreeWalker(xt,129);function Hs(i,t){if(!Ki(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ms!==void 0?Ms.createHTML(t):t}var Gs=(i,t)=>{let e=i.length-1,r=[],o,a=t===2?"<svg>":t===3?"<math>":"",s=zr;for(let c=0;c<e;c++){let d=i[c],p,h,b=-1,x=0;for(;x<d.length&&(s.lastIndex=x,h=s.exec(d),h!==null);)x=s.lastIndex,s===zr?h[1]==="!--"?s=Ds:h[1]!==void 0?s=$s:h[2]!==void 0?(Bs.test(h[2])&&(o=RegExp("</"+h[2],"g")),s=vt):h[3]!==void 0&&(s=vt):s===vt?h[0]===">"?(s=o!=null?o:zr,b=-1):h[1]===void 0?b=-2:(b=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?vt:h[3]==='"'?Ps:zs):s===Ps||s===zs?s=vt:s===Ds||s===$s?s=zr:(s=vt,o=void 0);let y=s===vt&&i[c+1].startsWith("/>")?" ":"";a+=s===zr?d+yd:b>=0?(r.push(p),d.slice(0,b)+Wi+d.slice(b)+Ue+y):d+Ue+(b===-2?c:y)}return[Hs(i,a+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},Fr=class i{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let a=0,s=0,c=t.length-1,d=this.parts,[p,h]=Gs(t,e);if(this.el=i.createElement(p,r),yt.currentNode=this.el.content,e===2||e===3){let b=this.el.content.firstChild;b.replaceWith(...b.childNodes)}for(;(o=yt.nextNode())!==null&&d.length<c;){if(o.nodeType===1){if(o.hasAttributes())for(let b of o.getAttributeNames())if(b.endsWith(Wi)){let x=h[s++],y=o.getAttribute(b).split(Ue),T=/([.?@])?(.*)/.exec(x);d.push({type:1,index:a,name:T[2],strings:y,ctor:T[1]==="."?_o:T[1]==="?"?Lo:T[1]==="@"?Ro:Tt}),o.removeAttribute(b)}else b.startsWith(Ue)&&(d.push({type:6,index:a}),o.removeAttribute(b));if(Bs.test(o.tagName)){let b=o.textContent.split(Ue),x=b.length-1;if(x>0){o.textContent=No?No.emptyScript:"";for(let y=0;y<x;y++)o.append(b[y],Ur()),yt.nextNode(),d.push({type:2,index:++a});o.append(b[x],Ur())}}}else if(o.nodeType===8)if(o.data===qi)d.push({type:2,index:a});else{let b=-1;for(;(b=o.data.indexOf(Ue,b+1))!==-1;)d.push({type:7,index:a}),b+=Ue.length-1}a++}}static createElement(t,e){let r=xt.createElement("template");return r.innerHTML=t,r}};function Et(i,t,e=i,r){var s,c,d;if(t===Ve)return t;let o=r!==void 0?(s=e.o)==null?void 0:s[r]:e.l,a=Vr(t)?void 0:t._$litDirective$;return(o==null?void 0:o.constructor)!==a&&((c=o==null?void 0:o._$AO)==null||c.call(o,!1),a===void 0?o=void 0:(o=new a(i),o._$AT(i,e,r)),r!==void 0?((d=e.o)!=null?d:e.o=[])[r]=o:e.l=o),o!==void 0&&(t=Et(i,o._$AS(i,t.values),o,r)),t}var wo=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var p;let{el:{content:e},parts:r}=this._$AD,o=((p=t==null?void 0:t.creationScope)!=null?p:xt).importNode(e,!0);yt.currentNode=o;let a=yt.nextNode(),s=0,c=0,d=r[0];for(;d!==void 0;){if(s===d.index){let h;d.type===2?h=new er(a,a.nextSibling,this,t):d.type===1?h=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(h=new Oo(a,this,t)),this._$AV.push(h),d=r[++c]}s!==(d==null?void 0:d.index)&&(a=yt.nextNode(),s++)}return yt.currentNode=xt,o}p(t){let e=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}},er=class i{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this.v}constructor(t,e,r,o){var a;this.type=2,this._$AH=g,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this.v=(a=o==null?void 0:o.isConnected)!=null?a:!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Et(this,t,e),Vr(t)?t===g||t==null||t===""?(this._$AH!==g&&this._$AR(),this._$AH=g):t!==this._$AH&&t!==Ve&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Fs(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==g&&Vr(this._$AH)?this._$AA.nextSibling.data=t:this.T(xt.createTextNode(t)),this._$AH=t}$(t){var a;let{values:e,_$litType$:r}=t,o=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=Fr.createElement(Hs(r.h,r.h[0]),this.options)),r);if(((a=this._$AH)==null?void 0:a._$AD)===o)this._$AH.p(e);else{let s=new wo(o,this),c=s.u(this.options);s.p(e),this.T(c),this._$AH=s}}_$AC(t){let e=Us.get(t.strings);return e===void 0&&Us.set(t.strings,e=new Fr(t)),e}k(t){Ki(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,o=0;for(let a of t)o===e.length?e.push(r=new i(this.O(Ur()),this.O(Ur()),this,this.options)):r=e[o],r._$AI(a),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,e);t&&t!==this._$AB;){let o=t.nextSibling;t.remove(),t=o}}setConnected(t){var e;this._$AM===void 0&&(this.v=t,(e=this._$AP)==null||e.call(this,t))}},Tt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,a){this.type=1,this._$AH=g,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=a,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=g}_$AI(t,e=this,r,o){let a=this.strings,s=!1;if(a===void 0)t=Et(this,t,e,0),s=!Vr(t)||t!==this._$AH&&t!==Ve,s&&(this._$AH=t);else{let c=t,d,p;for(t=a[0],d=0;d<a.length-1;d++)p=Et(this,c[r+d],e,d),p===Ve&&(p=this._$AH[d]),s||(s=!Vr(p)||p!==this._$AH[d]),p===g?t=g:t!==g&&(t+=(p!=null?p:"")+a[d+1]),this._$AH[d]=p}s&&!o&&this.j(t)}j(t){t===g?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},_o=class extends Tt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===g?void 0:t}},Lo=class extends Tt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==g)}},Ro=class extends Tt{constructor(t,e,r,o,a){super(t,e,r,o,a),this.type=5}_$AI(t,e=this){var s;if((t=(s=Et(this,t,e,0))!=null?s:g)===Ve)return;let r=this._$AH,o=t===g&&r!==g||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,a=t!==g&&(r===g||o);o&&this.element.removeEventListener(this.name,this,r),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,r;typeof this._$AH=="function"?this._$AH.call((r=(e=this.options)==null?void 0:e.host)!=null?r:this.element,t):this._$AH.handleEvent(t)}},Oo=class{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){Et(this,t)}},Ys={M:Wi,P:Ue,A:qi,C:1,L:Gs,R:wo,D:Fs,V:Et,I:er,H:Tt,N:Lo,U:Ro,B:_o,F:Oo},Yi=Pr.litHtmlPolyfillSupport,Vs;Yi==null||Yi(Fr,er),((Vs=Pr.litHtmlVersions)!=null?Vs:Pr.litHtmlVersions=[]).push("3.2.0");var Ws=(i,t,e)=>{var a,s;let r=(a=e==null?void 0:e.renderBefore)!=null?a:t,o=r._$litPart$;if(o===void 0){let c=(s=e==null?void 0:e.renderBefore)!=null?s:null;r._$litPart$=o=new er(t.insertBefore(Ur(),c),c,void 0,e!=null?e:{})}return o._$AI(i),o};var nt=class extends Pe{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var e,r;let t=super.createRenderRoot();return(r=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=t.firstChild),t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this.o=Ws(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this.o)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.o)==null||t.setConnected(!1)}render(){return Ve}},qs;nt._$litElement$=!0,nt.finalized=!0,(qs=globalThis.litElementHydrateSupport)==null||qs.call(globalThis,{LitElement:nt});var Xi=globalThis.litElementPolyfillSupport;Xi==null||Xi({LitElement:nt});var Ks;((Ks=globalThis.litElementVersions)!=null?Ks:globalThis.litElementVersions=[]).push("4.1.0");var xd={attribute:!0,type:String,converter:$r,reflect:!1,hasChanged:ko},Ed=(i=xd,t,e)=>{let{kind:r,metadata:o}=e,a=globalThis.litPropertyMetadata.get(o);if(a===void 0&&globalThis.litPropertyMetadata.set(o,a=new Map),a.set(e.name,i),r==="accessor"){let{name:s}=e;return{set(c){let d=t.get.call(this);t.set.call(this,c),this.requestUpdate(s,d,i)},init(c){return c!==void 0&&this.P(s,void 0,i),c}}}if(r==="setter"){let{name:s}=e;return function(c){let d=this[s];t.call(this,c),this.requestUpdate(s,d,i)}}throw Error("Unsupported decorator location: "+r)};function l(i){return(t,e)=>typeof e=="object"?Ed(i,t,e):((r,o,a)=>{let s=o.hasOwnProperty(a);return o.constructor.createProperty(a,s?{...r,wrapped:!0}:r),s?Object.getOwnPropertyDescriptor(o,a):void 0})(i,t,e)}function L(i){return l({...i,state:!0,attribute:!1})}var Fe=(i,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(i,t,e),e);function Be(i,t){return(e,r,o)=>{let a=s=>{var c,d;return(d=(c=s.renderRoot)==null?void 0:c.querySelector(i))!=null?d:null};if(t){let{get:s,set:c}=typeof r=="object"?e:o!=null?o:(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return Fe(e,r,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&c.call(this,d)),d}})}return Fe(e,r,{get(){return a(this)}})}}function F(i){return(t,e)=>{let{slot:r,selector:o}=i!=null?i:{},a="slot"+(r?`[name=${r}]`:":not([name])");return Fe(t,e,{get(){var d,p;let s=(d=this.renderRoot)==null?void 0:d.querySelector(a),c=(p=s==null?void 0:s.assignedElements(i))!=null?p:[];return o===void 0?c:c.filter(h=>h.matches(o))}})}}function Mo(i){return(t,e)=>{let{slot:r}=i!=null?i:{},o="slot"+(r?`[name=${r}]`:":not([name])");return Fe(t,e,{get(){var s,c;let a=(s=this.renderRoot)==null?void 0:s.querySelector(o);return(c=a==null?void 0:a.assignedNodes(i))!=null?c:[]}})}}var w=u`
4
4
  :host {
5
5
  align-items: center;
6
6
  display: flex;
@@ -8,7 +8,7 @@
8
8
  justify-content: center;
9
9
  width: fit-content;
10
10
  }
11
- `,Co=u`
11
+ `,Do=u`
12
12
  :host {
13
13
  --mdc-focus-ring-inner-color: var(--mds-color-theme-focus-default-0);
14
14
  --mdc-focus-ring-middle-color: var(--mds-color-theme-focus-default-1);
@@ -24,7 +24,7 @@
24
24
  `,_=(i=!1)=>{let t=u`0 0 0 var(--mdc-focus-ring-inner-width) var(--mdc-focus-ring-inner-color),
25
25
  0 0 0 var(--mdc-focus-ring-middle-width) var(--mdc-focus-ring-middle-color),
26
26
  0 0 0 var(--mdc-focus-ring-outer-width) var(--mdc-focus-ring-outer-color)
27
- `;return i?[Co,u`
27
+ `;return i?[Do,u`
28
28
  .mdc-focus-ring:focus-visible {
29
29
  outline: none;
30
30
  }
@@ -48,7 +48,7 @@
48
48
  outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
49
49
  }
50
50
  }
51
- `]:[Co,u`
51
+ `]:[Do,u`
52
52
  :host([disabled]:focus) {
53
53
  box-shadow: none;
54
54
  }
@@ -63,7 +63,7 @@
63
63
  outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
64
64
  }
65
65
  }
66
- `]};var od=u`
66
+ `]};var Td=u`
67
67
  :host {
68
68
  height: 1.5rem;
69
69
  gap: 0.25rem;
@@ -166,7 +166,7 @@
166
166
  :host([variant="informational"]:active){
167
167
  --mdc-chip-background-color: var(--mds-color-theme-background-alert-theme-active);
168
168
  }
169
- `,Ms=[N,od,..._()];var Ds=u`
169
+ `,Zs=[w,Td,..._()];var Xs=u`
170
170
  :host {
171
171
  box-sizing: border-box;
172
172
  }
@@ -176,11 +176,11 @@
176
176
  :host *::after {
177
177
  box-sizing: inherit;
178
178
  }
179
- `;var ko=class extends it{static register(t){customElements.get(t)||customElements.define(t,this)}};ko.styles=[Ds];var $s=ko;var v=$s;var at=class extends Event{constructor(t,e,r){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=e,this.subscribe=r!=null?r:!1}};var jt=class{constructor(t,e,r,o){var a;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(s,l)=>{this.unsubscribe&&(this.unsubscribe!==l&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=s,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(s,l)),this.unsubscribe=l},this.host=t,e.context!==void 0){let s=e;this.context=s.context,this.callback=s.callback,this.subscribe=(a=s.subscribe)!=null?a:!1}else this.context=e,this.callback=r,this.subscribe=o!=null?o:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new at(this.context,this.t,this.subscribe))}};var wo=class{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){let r=e||!Object.is(t,this.o);this.o=t,r&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(let[e,{disposer:r}]of this.subscriptions)e(this.o,r)},t!==void 0&&(this.value=t)}addCallback(t,e,r){if(!r)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:e});let{disposer:o}=this.subscriptions.get(t);t(this.value,o)}clearCallbacks(){this.subscriptions.clear()}};var Vi=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},Qt=class extends wo{constructor(t,e,r){var o,a;super(e.context!==void 0?e.initialValue:r),this.onContextRequest=s=>{let l=s.composedPath()[0];s.context===this.context&&l!==this.host&&(s.stopPropagation(),this.addCallback(s.callback,l,s.subscribe))},this.onProviderRequest=s=>{let l=s.composedPath()[0];if(s.context!==this.context||l===this.host)return;let d=new Set;for(let[p,{consumerHost:h}]of this.subscriptions)d.has(p)||(d.add(p),h.dispatchEvent(new at(this.context,p,!0)));s.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(a=(o=this.host).addController)==null||a.call(o,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Vi(this.context))}};var id=u`
179
+ `;var $o=class extends nt{static register(t){customElements.get(t)||customElements.define(t,this)}};$o.styles=[Xs];var js=$o;var v=js;var lt=class extends Event{constructor(t,e,r){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=e,this.subscribe=r!=null?r:!1}};var tr=class{constructor(t,e,r,o){var a;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(s,c)=>{this.unsubscribe&&(this.unsubscribe!==c&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=s,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(s,c)),this.unsubscribe=c},this.host=t,e.context!==void 0){let s=e;this.context=s.context,this.callback=s.callback,this.subscribe=(a=s.subscribe)!=null?a:!1}else this.context=e,this.callback=r,this.subscribe=o!=null?o:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new lt(this.context,this.t,this.subscribe))}};var zo=class{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){let r=e||!Object.is(t,this.o);this.o=t,r&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(let[e,{disposer:r}]of this.subscriptions)e(this.o,r)},t!==void 0&&(this.value=t)}addCallback(t,e,r){if(!r)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:e});let{disposer:o}=this.subscriptions.get(t);t(this.value,o)}clearCallbacks(){this.subscriptions.clear()}};var ji=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},rr=class extends zo{constructor(t,e,r){var o,a;super(e.context!==void 0?e.initialValue:r),this.onContextRequest=s=>{let c=s.composedPath()[0];s.context===this.context&&c!==this.host&&(s.stopPropagation(),this.addCallback(s.callback,c,s.subscribe))},this.onProviderRequest=s=>{let c=s.composedPath()[0];if(s.context!==this.context||c===this.host)return;let d=new Set;for(let[p,{consumerHost:h}]of this.subscriptions)d.has(p)||(d.add(p),h.dispatchEvent(new lt(this.context,p,!0)));s.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(a=(o=this.host).addController)==null||a.call(o,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new ji(this.context))}};var Ad=u`
180
180
  :host {
181
181
  display: contents;
182
182
  }
183
- `,Ps=id;var No=class extends v{constructor({context:t,initialValue:e}){super(),this.context=new Qt(this,{context:t,initialValue:e})}render(){return this.updateContext(),m`<slot></slot>`}};No.styles=[...v.styles,Ps];var Vs=No;var Jt=Vs;var ad={PREFIX:"mdc",SEPARATOR:"-"},sd={NAMESPACE:ad},Ui=sd;var nd=i=>[Ui.NAMESPACE.PREFIX,i].join(Ui.NAMESPACE.SEPARATOR),f={constructTagName:nd};var Du=f.constructTagName("buttonsimple"),Pr={20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},er={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Vr={SIZE:Pr[32],TYPE:er.BUTTON,ROLE:"button",ARIA_STATE_KEY:"aria-pressed"};var Ur=f.constructTagName("text"),S={BODY_SMALL_REGULAR:"body-small-regular",BODY_SMALL_MEDIUM:"body-small-medium",BODY_SMALL_BOLD:"body-small-bold",BODY_MIDSIZE_REGULAR:"body-midsize-regular",BODY_MIDSIZE_MEDIUM:"body-midsize-medium",BODY_MIDSIZE_BOLD:"body-midsize-bold",BODY_LARGE_REGULAR:"body-large-regular",BODY_LARGE_MEDIUM:"body-large-medium",BODY_LARGE_BOLD:"body-large-bold",BODY_SMALL_REGULAR_UNDERLINE:"body-small-regular-underline",BODY_SMALL_MEDIUM_UNDERLINE:"body-small-medium-underline",BODY_MIDSIZE_REGULAR_UNDERLINE:"body-midsize-regular-underline",BODY_MIDSIZE_MEDIUM_UNDERLINE:"body-midsize-medium-underline",BODY_LARGE_REGULAR_UNDERLINE:"body-large-regular-underline",BODY_LARGE_MEDIUM_UNDERLINE:"body-large-medium-underline",HEADING_SMALL_REGULAR:"heading-small-regular",HEADING_SMALL_MEDIUM:"heading-small-medium",HEADING_SMALL_BOLD:"heading-small-bold",HEADING_MIDSIZE_REGULAR:"heading-midsize-regular",HEADING_MIDSIZE_MEDIUM:"heading-midsize-medium",HEADING_MIDSIZE_BOLD:"heading-midsize-bold",HEADING_LARGE_REGULAR:"heading-large-regular",HEADING_LARGE_MEDIUM:"heading-large-medium",HEADING_LARGE_BOLD:"heading-large-bold",HEADING_XLARGE_REGULAR:"heading-xlarge-regular",HEADING_XLARGE_MEDIUM:"heading-xlarge-medium",HEADING_XLARGE_BOLD:"heading-xlarge-bold",HEADLINE_SMALL_LIGHT:"headline-small-light",HEADLINE_SMALL_REGULAR:"headline-small-regular"},w={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},de={TYPE:S.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:w.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var Us=f.constructTagName("alertchip"),xt={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},tr={VARIANT:xt.NEUTRAL,TEXT_TYPE:S.BODY_MIDSIZE_REGULAR,TAG_NAME:w.SPAN,SIZE:Pr[24],ROLE:"button"};var Fs=i=>({[xt.ERROR]:"error-legacy-badge-filled",[xt.WARNING]:"warning-badge-filled",[xt.SUCCESS]:"check-circle-badge-filled",[xt.INFORMATIONAL]:"info-badge-filled",[xt.NEUTRAL]:"dnd-presence-badge-filled"})[i];var P=i=>{class t extends i{}return n([c({reflect:!0,type:Boolean})],t.prototype,"disabled",2),t};var Le=i=>{class t extends i{constructor(){super(...arguments);this.tabIndex=0}}return n([c({reflect:!0,type:Number})],t.prototype,"tabIndex",2),t};var ld=[N,u`
183
+ `,Js=Ad;var Po=class extends v{constructor({context:t,initialValue:e}){super(),this.context=new rr(this,{context:t,initialValue:e})}render(){return this.updateContext(),m`<slot></slot>`}};Po.styles=[...v.styles,Js];var en=Po;var or=en;var Sd={PREFIX:"mdc",SEPARATOR:"-"},Id={NAMESPACE:Sd},Qi=Id;var Cd=i=>[Qi.NAMESPACE.PREFIX,i].join(Qi.NAMESPACE.SEPARATOR),f={constructTagName:Cd};var nf=f.constructTagName("buttonsimple"),Br={20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},ir={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Hr={SIZE:Br[32],TYPE:ir.BUTTON,ROLE:"button",ARIA_STATE_KEY:"aria-pressed"};var Gr=f.constructTagName("text"),E={BODY_SMALL_REGULAR:"body-small-regular",BODY_SMALL_MEDIUM:"body-small-medium",BODY_SMALL_BOLD:"body-small-bold",BODY_MIDSIZE_REGULAR:"body-midsize-regular",BODY_MIDSIZE_MEDIUM:"body-midsize-medium",BODY_MIDSIZE_BOLD:"body-midsize-bold",BODY_LARGE_REGULAR:"body-large-regular",BODY_LARGE_MEDIUM:"body-large-medium",BODY_LARGE_BOLD:"body-large-bold",BODY_SMALL_REGULAR_UNDERLINE:"body-small-regular-underline",BODY_SMALL_MEDIUM_UNDERLINE:"body-small-medium-underline",BODY_MIDSIZE_REGULAR_UNDERLINE:"body-midsize-regular-underline",BODY_MIDSIZE_MEDIUM_UNDERLINE:"body-midsize-medium-underline",BODY_LARGE_REGULAR_UNDERLINE:"body-large-regular-underline",BODY_LARGE_MEDIUM_UNDERLINE:"body-large-medium-underline",HEADING_SMALL_REGULAR:"heading-small-regular",HEADING_SMALL_MEDIUM:"heading-small-medium",HEADING_SMALL_BOLD:"heading-small-bold",HEADING_MIDSIZE_REGULAR:"heading-midsize-regular",HEADING_MIDSIZE_MEDIUM:"heading-midsize-medium",HEADING_MIDSIZE_BOLD:"heading-midsize-bold",HEADING_LARGE_REGULAR:"heading-large-regular",HEADING_LARGE_MEDIUM:"heading-large-medium",HEADING_LARGE_BOLD:"heading-large-bold",HEADING_XLARGE_REGULAR:"heading-xlarge-regular",HEADING_XLARGE_MEDIUM:"heading-xlarge-medium",HEADING_XLARGE_BOLD:"heading-xlarge-bold",HEADLINE_SMALL_LIGHT:"headline-small-light",HEADLINE_SMALL_REGULAR:"headline-small-regular"},C={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},pe={TYPE:E.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:C.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var tn=f.constructTagName("alertchip"),At={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},ar={VARIANT:At.NEUTRAL,TEXT_TYPE:E.BODY_MIDSIZE_REGULAR,TAG_NAME:C.SPAN,SIZE:Br[24],ROLE:"button"};var rn=i=>({[At.ERROR]:"error-legacy-badge-filled",[At.WARNING]:"warning-badge-filled",[At.SUCCESS]:"check-circle-badge-filled",[At.INFORMATIONAL]:"info-badge-filled",[At.NEUTRAL]:"dnd-presence-badge-filled"})[i];var P=i=>{class t extends i{}return n([l({reflect:!0,type:Boolean})],t.prototype,"disabled",2),t};var Re=i=>{class t extends i{constructor(){super(...arguments);this.tabIndex=0}}return n([l({reflect:!0,type:Number})],t.prototype,"tabIndex",2),t};var kd=[w,u`
184
184
  :host {
185
185
  border: 0.0625rem solid transparent;
186
186
  cursor: pointer;
@@ -237,10 +237,10 @@
237
237
  :host([size="20"]){
238
238
  height: var(--mdc-button-height-size-20);
239
239
  }
240
- `,..._()],Bs=ld;var xe=class extends Le(P(v)){constructor(){super();this.size=Vr.SIZE;this.role=Vr.ROLE;this.type=Vr.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||Vr.ARIA_STATE_KEY),this.setActive(this,this.active))}executeAction(){this.type===er.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===er.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> `}};xe.formAssociated=!0,xe.styles=[...v.styles,...Bs],n([c({type:Boolean,reflect:!0})],xe.prototype,"active",2),n([c({type:Boolean,attribute:"soft-disabled",reflect:!0})],xe.prototype,"softDisabled",2),n([c({type:Number,reflect:!0})],xe.prototype,"size",2),n([c({type:String,reflect:!0})],xe.prototype,"role",2),n([c({type:String,reflect:!0})],xe.prototype,"ariaStateKey",2),n([c({reflect:!0})],xe.prototype,"type",2);var oe=xe;var rr=class extends oe{constructor(){super(...arguments);this.variant=tr.VARIANT;this.label=""}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=tr.SIZE,this.role=tr.ROLE}render(){return m`
241
- <mdc-icon part="icon" name="${Fs(this.variant)}" length-unit="rem" size="1"></mdc-icon>
242
- <mdc-text part="label" type="${tr.TEXT_TYPE}" tagname="${tr.TAG_NAME}">${this.label}</mdc-text>
243
- `}};rr.styles=[...v.styles,...Ms],n([c({type:String})],rr.prototype,"variant",2),n([c({type:String})],rr.prototype,"label",2);var Fi=rr;var Hs=u`
240
+ `,..._()],on=kd;var Te=class extends Re(P(v)){constructor(){super();this.size=Hr.SIZE;this.role=Hr.ROLE;this.type=Hr.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||Hr.ARIA_STATE_KEY),this.setActive(this,this.active))}executeAction(){this.type===ir.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===ir.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> `}};Te.formAssociated=!0,Te.styles=[...v.styles,...on],n([l({type:Boolean,reflect:!0})],Te.prototype,"active",2),n([l({type:Boolean,attribute:"soft-disabled",reflect:!0})],Te.prototype,"softDisabled",2),n([l({type:Number,reflect:!0})],Te.prototype,"size",2),n([l({type:String,reflect:!0})],Te.prototype,"role",2),n([l({type:String,reflect:!0})],Te.prototype,"ariaStateKey",2),n([l({reflect:!0})],Te.prototype,"type",2);var se=Te;var sr=class extends se{constructor(){super(...arguments);this.variant=ar.VARIANT;this.label=""}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=ar.SIZE,this.role=ar.ROLE}render(){return m`
241
+ <mdc-icon part="icon" name="${rn(this.variant)}" length-unit="rem" size="1"></mdc-icon>
242
+ <mdc-text part="label" type="${ar.TEXT_TYPE}" tagname="${ar.TAG_NAME}">${this.label}</mdc-text>
243
+ `}};sr.styles=[...v.styles,...Zs],n([l({type:String})],sr.prototype,"variant",2),n([l({type:String})],sr.prototype,"label",2);var Ji=sr;var an=u`
244
244
  :host::part(text) {
245
245
  font-size: unset;
246
246
  font-weight: unset;
@@ -483,14 +483,14 @@
483
483
  text-decoration: var(--mds-font-apps-body-small-regular-text-decoration);
484
484
  text-transform: var(--mds-font-apps-body-small-regular-text-case);
485
485
  }
486
- `;var cd=[u`
486
+ `;var Nd=[u`
487
487
  :host {
488
488
  --mdc-text-font-family: var(--mdc-themeprovider-font-family);
489
489
 
490
490
  display: block;
491
491
  font-family: var(--mdc-text-font-family);
492
492
  }
493
- `,Hs],Gs=cd;var or=class extends v{constructor(){super(...arguments);this.type=de.TYPE;this.tagname=de.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case w.H1:return m`<h1 part=${de.CSS_PART_TEXT}><slot></slot></h1>`;case w.H2:return m`<h2 part=${de.CSS_PART_TEXT}><slot></slot></h2>`;case w.H3:return m`<h3 part=${de.CSS_PART_TEXT}><slot></slot></h3>`;case w.H4:return m`<h4 part=${de.CSS_PART_TEXT}><slot></slot></h4>`;case w.H5:return m`<h5 part=${de.CSS_PART_TEXT}><slot></slot></h5>`;case w.H6:return m`<h6 part=${de.CSS_PART_TEXT}><slot></slot></h6>`;case w.DIV:return m`<div part=${de.CSS_PART_TEXT}><slot></slot></div>`;case w.SPAN:return m`<span part=${de.CSS_PART_TEXT}><slot></slot></span>`;case w.SMALL:return m`<small part=${de.CSS_PART_TEXT}><slot></slot></small>`;case w.P:default:return m`<p part=${de.CSS_PART_TEXT}><slot></slot></p>`}}};or.styles=[...v.styles,...Gs],n([c({attribute:"type",reflect:!0,type:String})],or.prototype,"type",2),n([c({attribute:"tagname",reflect:!0,type:String})],or.prototype,"tagname",2);var Bi=or;Bi.register(Ur);var dd=Bi;var md=[N,u`
493
+ `,an],sn=Nd;var nr=class extends v{constructor(){super(...arguments);this.type=pe.TYPE;this.tagname=pe.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case C.H1:return m`<h1 part=${pe.CSS_PART_TEXT}><slot></slot></h1>`;case C.H2:return m`<h2 part=${pe.CSS_PART_TEXT}><slot></slot></h2>`;case C.H3:return m`<h3 part=${pe.CSS_PART_TEXT}><slot></slot></h3>`;case C.H4:return m`<h4 part=${pe.CSS_PART_TEXT}><slot></slot></h4>`;case C.H5:return m`<h5 part=${pe.CSS_PART_TEXT}><slot></slot></h5>`;case C.H6:return m`<h6 part=${pe.CSS_PART_TEXT}><slot></slot></h6>`;case C.DIV:return m`<div part=${pe.CSS_PART_TEXT}><slot></slot></div>`;case C.SPAN:return m`<span part=${pe.CSS_PART_TEXT}><slot></slot></span>`;case C.SMALL:return m`<small part=${pe.CSS_PART_TEXT}><slot></slot></small>`;case C.P:default:return m`<p part=${pe.CSS_PART_TEXT}><slot></slot></p>`}}};nr.styles=[...v.styles,...sn],n([l({attribute:"type",reflect:!0,type:String})],nr.prototype,"type",2),n([l({attribute:"tagname",reflect:!0,type:String})],nr.prototype,"tagname",2);var ea=nr;ea.register(Gr);var wd=ea;var _d=[w,u`
494
494
  :host {
495
495
  --mdc-icon-fill-color: currentColor;
496
496
  --mdc-icon-size: var(--computed-icon-size);
@@ -505,7 +505,7 @@
505
505
  width: 100%;
506
506
  fill: var(--mdc-icon-fill-color);
507
507
  }
508
- `,..._()],Ys=md;var pd=i=>{let{host:t,context:e,subscribe:r}=i;return new jt(t,{context:e,subscribe:r!=null?r:!0})},hd={consume:pd},Ws=hd;var _o=f.constructTagName("iconprovider"),qs=["svg"],Ks=["em","rem","px","%"],ud={px:16,em:1,rem:1,"%":100},Be={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:ud.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var Lo=class{};Lo.context=_o;var Ro=Lo;var Re=class extends Jt{constructor(){super({context:Ro.context,initialValue:new Ro});this.iconSet=Be.ICON_SET;this.fileExtension=Be.FILE_EXTENSION;this.lengthUnit=Be.LENGTH_UNIT;this.size=Be.SIZE}static get Context(){return Ro.context}updateValuesInContext(){this.fileExtension&&qs.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Be.FILE_EXTENSION,this.context.value.fileExtension=Be.FILE_EXTENSION),this.context.value.iconSet=this.iconSet,this.context.value.url=this.url,this.context.value.size=this.size,this.context.value.cacheName=this.cacheName,this.context.value.cacheStrategy=this.cacheStrategy,this.lengthUnit&&Ks.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=Be.LENGTH_UNIT,this.context.value.lengthUnit=Be.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.iconSet!==this.iconSet||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};n([c({type:String,attribute:"icon-set",reflect:!0})],Re.prototype,"iconSet",2),n([c({type:String})],Re.prototype,"url",2),n([c({type:String,attribute:"file-extension",reflect:!0})],Re.prototype,"fileExtension",2),n([c({type:String,attribute:"length-unit",reflect:!0})],Re.prototype,"lengthUnit",2),n([c({type:Number,reflect:!0})],Re.prototype,"size",2),n([c({type:String,attribute:"cache-strategy"})],Re.prototype,"cacheStrategy",2),n([c({type:String,attribute:"cache-name"})],Re.prototype,"cacheName",2);var Fr=Re;var Br={},Zs=async i=>(Br[i]===void 0&&(Br[i]=new Map),{async set(t,e){Br[i].set(t.url,await e.text())},async get(t){return Br[i].get(t.url)},async delete(t){Br[i].delete(t.url)}}),Xs=async i=>{let t=await caches.open(i);return{set:async(e,r)=>{await t.put(e,r)},get:async e=>{let r=await t.match(e);return r==null?void 0:r.text()},delete:async e=>{await t.delete(e)}}},js=async(i,t)=>t==="in-memory-cache"?Zs(i):Xs(i);var Qs=async i=>fetch(i).then(t=>{if(!t.ok)throw new Error("There was a problem while fetching the icon!");return t}),Js=async({url:i,name:t,fileExtension:e,cacheStrategy:r,cacheName:o,renewSignal:a})=>{let s=a(),l=new Request(`${i}/${t}.${e}`,{signal:s});return!o||!r||!["in-memory-cache","web-cache-api"].includes(r)?Qs(l).then(d=>d.text()):js(o,r).then(d=>d.get(l).then(p=>p||Qs(l.clone()).then(h=>{var b;return h.status<400&&h.headers.has("content-type")?(b=d.set)==null?void 0:b.call(d,l,h.clone()).then(()=>h.text()):h.text()})).catch(p=>{throw new Error(`Error in caching the Icon ${t}, ${p}`)}))};var en=f.constructTagName("icon"),Hi={NAME:void 0,SIZE:1};var me=class extends v{constructor(){super();this.name=Hi.NAME;this.ariaLabel=null;this.ariaLabelledBy=null;this.iconProviderContext=Ws.consume({host:this,context:Fr.Context});this.abortController=new AbortController}prepareIconElement(e){let r=new DOMParser().parseFromString(e,"text/html").body.children[0];return this.name&&r.setAttribute("data-name",this.name),r.setAttribute("part","icon"),r.setAttribute("aria-hidden","true"),r}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:r,url:o,cacheName:a,iconSet:s,cacheStrategy:l}=this.iconProviderContext.value;if(s==="custom-icons"&&o&&r&&this.name){let d=()=>(this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal);return Js({url:o,name:this.name,fileExtension:r,cacheName:a,cacheStrategy:l,renewSignal:d}).then(p=>{let h=this.prepareIconElement(p);this.handleIconLoadedSuccess(h)}).catch(p=>{this.handleIconLoadedFailure(p)})}if(s==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(d=>{this.handleIconLoadedSuccess(d.default())}).catch(d=>{this.handleIconLoadedFailure(d)})}let e=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(e),Promise.reject(e)}handleIconLoadedSuccess(e){this.iconData=e;let r=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}handleIconLoadedFailure(e){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:e}});this.dispatchEvent(r)}updateSize(){var e;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let r=`${this.computedIconSize}${(e=this.lengthUnit)!=null?e:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",r)}}get computedIconSize(){var e,r;return(r=(e=this.size)!=null?e:this.sizeFromContext)!=null?r:Hi.SIZE}updated(e){var r,o,a,s;super.updated(e),e.has("name")&&this.getIconData().catch(l=>{l.name!=="AbortError"&&this.onerror&&this.onerror(l)}),(e.has("ariaLabel")||e.has("ariaLabelledBy"))&&(this.role=this.ariaLabel||this.ariaLabelledBy?"img":null),(e.has("size")||e.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((r=this.iconProviderContext.value)==null?void 0:r.lengthUnit)&&(this.lengthUnitFromContext=(o=this.iconProviderContext.value)==null?void 0:o.lengthUnit,this.updateSize()),this.sizeFromContext!==((a=this.iconProviderContext.value)==null?void 0:a.size)&&(this.sizeFromContext=(s=this.iconProviderContext.value)==null?void 0:s.size,this.updateSize())}render(){return m` ${this.iconData} `}};me.styles=[...v.styles,...Ys],n([L()],me.prototype,"iconData",2),n([L()],me.prototype,"lengthUnitFromContext",2),n([L()],me.prototype,"sizeFromContext",2),n([c({type:String,reflect:!0})],me.prototype,"name",2),n([c({type:Number})],me.prototype,"size",2),n([c({type:String,attribute:"length-unit"})],me.prototype,"lengthUnit",2),n([c({type:String,attribute:"aria-label"})],me.prototype,"ariaLabel",2),n([c({type:String,attribute:"aria-labelledby"})],me.prototype,"ariaLabelledBy",2),n([L()],me.prototype,"abortController",2);var Gi=me;Gi.register(en);var fd=Gi;Fi.register(Us);var bd=Fi;var gd=u`
508
+ `,..._()],nn=_d;var Ld=i=>{let{host:t,context:e,subscribe:r}=i;return new tr(t,{context:e,subscribe:r!=null?r:!0})},Rd={consume:Ld},ln=Rd;var Uo=f.constructTagName("iconprovider"),cn=["svg"],dn=["em","rem","px","%"],Od={px:16,em:1,rem:1,"%":100},He={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:Od.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var Vo=class{};Vo.context=Uo;var Fo=Vo;var Oe=class extends or{constructor(){super({context:Fo.context,initialValue:new Fo});this.iconSet=He.ICON_SET;this.fileExtension=He.FILE_EXTENSION;this.lengthUnit=He.LENGTH_UNIT;this.size=He.SIZE}static get Context(){return Fo.context}updateValuesInContext(){this.fileExtension&&cn.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=He.FILE_EXTENSION,this.context.value.fileExtension=He.FILE_EXTENSION),this.context.value.iconSet=this.iconSet,this.context.value.url=this.url,this.context.value.size=this.size,this.context.value.cacheName=this.cacheName,this.context.value.cacheStrategy=this.cacheStrategy,this.lengthUnit&&dn.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=He.LENGTH_UNIT,this.context.value.lengthUnit=He.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.iconSet!==this.iconSet||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};n([l({type:String,attribute:"icon-set",reflect:!0})],Oe.prototype,"iconSet",2),n([l({type:String})],Oe.prototype,"url",2),n([l({type:String,attribute:"file-extension",reflect:!0})],Oe.prototype,"fileExtension",2),n([l({type:String,attribute:"length-unit",reflect:!0})],Oe.prototype,"lengthUnit",2),n([l({type:Number,reflect:!0})],Oe.prototype,"size",2),n([l({type:String,attribute:"cache-strategy"})],Oe.prototype,"cacheStrategy",2),n([l({type:String,attribute:"cache-name"})],Oe.prototype,"cacheName",2);var Yr=Oe;var Wr={},mn=async i=>(Wr[i]===void 0&&(Wr[i]=new Map),{async set(t,e){Wr[i].set(t.url,await e.text())},async get(t){return Wr[i].get(t.url)},async delete(t){Wr[i].delete(t.url)}}),pn=async i=>{let t=await caches.open(i);return{set:async(e,r)=>{await t.put(e,r)},get:async e=>{let r=await t.match(e);return r==null?void 0:r.text()},delete:async e=>{await t.delete(e)}}},hn=async(i,t)=>t==="in-memory-cache"?mn(i):pn(i);var un=async i=>fetch(i).then(t=>{if(!t.ok)throw new Error("There was a problem while fetching the icon!");return t}),fn=async({url:i,name:t,fileExtension:e,cacheStrategy:r,cacheName:o,renewSignal:a})=>{let s=a(),c=new Request(`${i}/${t}.${e}`,{signal:s});return!o||!r||!["in-memory-cache","web-cache-api"].includes(r)?un(c).then(d=>d.text()):hn(o,r).then(d=>d.get(c).then(p=>p||un(c.clone()).then(h=>{var b;return h.status<400&&h.headers.has("content-type")?(b=d.set)==null?void 0:b.call(d,c,h.clone()).then(()=>h.text()):h.text()})).catch(p=>{throw new Error(`Error in caching the Icon ${t}, ${p}`)}))};var bn=f.constructTagName("icon"),ta={NAME:void 0,SIZE:1};var he=class extends v{constructor(){super();this.name=ta.NAME;this.ariaLabel=null;this.ariaLabelledBy=null;this.iconProviderContext=ln.consume({host:this,context:Yr.Context});this.abortController=new AbortController}prepareIconElement(e){let r=new DOMParser().parseFromString(e,"text/html").body.children[0];return this.name&&r.setAttribute("data-name",this.name),r.setAttribute("part","icon"),r.setAttribute("aria-hidden","true"),r}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:r,url:o,cacheName:a,iconSet:s,cacheStrategy:c}=this.iconProviderContext.value;if(s==="custom-icons"&&o&&r&&this.name){let d=()=>(this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal);return fn({url:o,name:this.name,fileExtension:r,cacheName:a,cacheStrategy:c,renewSignal:d}).then(p=>{let h=this.prepareIconElement(p);this.handleIconLoadedSuccess(h)}).catch(p=>{this.handleIconLoadedFailure(p)})}if(s==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(d=>{this.handleIconLoadedSuccess(d.default())}).catch(d=>{this.handleIconLoadedFailure(d)})}let e=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(e),Promise.reject(e)}handleIconLoadedSuccess(e){this.iconData=e;let r=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}handleIconLoadedFailure(e){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:e}});this.dispatchEvent(r)}updateSize(){var e;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let r=`${this.computedIconSize}${(e=this.lengthUnit)!=null?e:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",r)}}get computedIconSize(){var e,r;return(r=(e=this.size)!=null?e:this.sizeFromContext)!=null?r:ta.SIZE}updated(e){var r,o,a,s;super.updated(e),e.has("name")&&this.getIconData().catch(c=>{c.name!=="AbortError"&&this.onerror&&this.onerror(c)}),(e.has("ariaLabel")||e.has("ariaLabelledBy"))&&(this.role=this.ariaLabel||this.ariaLabelledBy?"img":null),(e.has("size")||e.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((r=this.iconProviderContext.value)==null?void 0:r.lengthUnit)&&(this.lengthUnitFromContext=(o=this.iconProviderContext.value)==null?void 0:o.lengthUnit,this.updateSize()),this.sizeFromContext!==((a=this.iconProviderContext.value)==null?void 0:a.size)&&(this.sizeFromContext=(s=this.iconProviderContext.value)==null?void 0:s.size,this.updateSize())}render(){return m` ${this.iconData} `}};he.styles=[...v.styles,...nn],n([L()],he.prototype,"iconData",2),n([L()],he.prototype,"lengthUnitFromContext",2),n([L()],he.prototype,"sizeFromContext",2),n([l({type:String,reflect:!0})],he.prototype,"name",2),n([l({type:Number})],he.prototype,"size",2),n([l({type:String,attribute:"length-unit"})],he.prototype,"lengthUnit",2),n([l({type:String,attribute:"aria-label"})],he.prototype,"ariaLabel",2),n([l({type:String,attribute:"aria-labelledby"})],he.prototype,"ariaLabelledBy",2),n([L()],he.prototype,"abortController",2);var ra=he;ra.register(bn);var Md=ra;Ji.register(tn);var Dd=Ji;var $d=u`
509
509
  :host {
510
510
  --mdc-appheader-height: 4rem;
511
511
  }
@@ -539,7 +539,7 @@
539
539
  :host::part(trailing-section) {
540
540
  justify-content: flex-end;
541
541
  }
542
- `,tn=[gd];var Oo=class extends v{render(){return m`
542
+ `,gn=[$d];var Bo=class extends v{render(){return m`
543
543
  <header part="container">
544
544
  <div part="leading-section">
545
545
  <slot name="leading"></slot>
@@ -550,7 +550,7 @@
550
550
  <div part="trailing-section">
551
551
  <slot name="trailing"></slot>
552
552
  </div>
553
- </header>`}};Oo.styles=[...v.styles,...tn];var Yi=Oo;var rn=f.constructTagName("appheader");Yi.register(rn);var vd=Yi;var T=i=>i!=null?i:g;var on=f.constructTagName("avatar"),Q={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},Wi=99,yd="user-regular",D={24:24,32:32,48:48,64:64,72:72,88:88,124:124},ir={TYPE:Q.PHOTO,SIZE:D[32],ICON_NAME:yd};var Mo=i=>{class t extends i{constructor(){super(...arguments);this.size=ir.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 ie=i=>{class t extends i{}return n([c({type:String,attribute:"icon-name"})],t.prototype,"iconName",2),t};var xd=[N,u`
553
+ </header>`}};Bo.styles=[...v.styles,...gn];var oa=Bo;var vn=f.constructTagName("appheader");oa.register(vn);var zd=oa;var A=i=>i!=null?i:g;var yn=f.constructTagName("avatar"),ee={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},ia=99,Pd="user-regular",M={24:24,32:32,48:48,64:64,72:72,88:88,124:124},lr={TYPE:ee.PHOTO,SIZE:M[32],ICON_NAME:Pd};var Ho=i=>{class t extends i{constructor(){super(...arguments);this.size=lr.SIZE;this.isTyping=!1}}return n([l({type:String})],t.prototype,"src",2),n([l({type:String})],t.prototype,"initials",2),n([l({type:String})],t.prototype,"presence",2),n([l({type:Number,reflect:!0,attribute:"size"})],t.prototype,"size",2),n([l({type:Number})],t.prototype,"counter",2),n([l({type:Boolean,attribute:"is-typing"})],t.prototype,"isTyping",2),t};var ne=i=>{class t extends i{}return n([l({type:String,attribute:"icon-name"})],t.prototype,"iconName",2),t};var Ud=[w,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);
@@ -673,38 +673,38 @@
673
673
  outline: 0.125rem solid;
674
674
  }
675
675
  }
676
- `],an=xd;var sn=f.constructTagName("presence"),X={ACTIVE:"active",AWAY:"away",AWAY_CALLING:"away-calling",BUSY:"busy",DND:"dnd",MEETING:"meeting",ON_CALL:"on-call",ON_DEVICE:"on-device",ON_MOBILE:"on-mobile",PAUSE:"pause",PTO:"pto",PRESENTING:"presenting",QUIET:"quiet",SCHEDULED:"scheduled"},Y={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},ar={TYPE:X.ACTIVE,SIZE:Y.SMALL};var nn=i=>({[D[124]]:Y.XX_LARGE,[D[88]]:Y.X_LARGE,[D[72]]:Y.LARGE,[D[64]]:Y.MIDSIZE,[D[48]]:Y.SMALL,[D[32]]:Y.X_SMALL,[D[24]]:Y.XX_SMALL})[i]||Y.X_SMALL,ln=i=>({[D[124]]:4.75,[D[88]]:3,[D[72]]:2.5,[D[64]]:2.25,[D[48]]:1.75,[D[32]]:1.25,[D[24]]:1})[i]||1.25,cn=i=>({[D[124]]:S.HEADING_XLARGE_MEDIUM,[D[88]]:S.HEADING_LARGE_MEDIUM,[D[72]]:S.HEADING_MIDSIZE_MEDIUM,[D[64]]:S.HEADING_SMALL_MEDIUM,[D[48]]:S.HEADING_SMALL_MEDIUM,[D[32]]:S.BODY_MIDSIZE_MEDIUM,[D[24]]:S.BODY_SMALL_MEDIUM})[i]||S.BODY_MIDSIZE_MEDIUM;var Hr=class extends Mo(ie(v)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(e){return e===Q.COUNTER&&(this.counter||this.counter===0)||this.isTyping?g:this.presence?m`
677
- <mdc-presence part="presence" type="${this.presence}" size="${nn(this.size)}"></mdc-presence>
676
+ `],xn=Ud;var En=f.constructTagName("presence"),Q={ACTIVE:"active",AWAY:"away",AWAY_CALLING:"away-calling",BUSY:"busy",DND:"dnd",MEETING:"meeting",ON_CALL:"on-call",ON_DEVICE:"on-device",ON_MOBILE:"on-mobile",PAUSE:"pause",PTO:"pto",PRESENTING:"presenting",QUIET:"quiet",SCHEDULED:"scheduled"},Y={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},cr={TYPE:Q.ACTIVE,SIZE:Y.SMALL};var Tn=i=>({[M[124]]:Y.XX_LARGE,[M[88]]:Y.X_LARGE,[M[72]]:Y.LARGE,[M[64]]:Y.MIDSIZE,[M[48]]:Y.SMALL,[M[32]]:Y.X_SMALL,[M[24]]:Y.XX_SMALL})[i]||Y.X_SMALL,An=i=>({[M[124]]:4.75,[M[88]]:3,[M[72]]:2.5,[M[64]]:2.25,[M[48]]:1.75,[M[32]]:1.25,[M[24]]:1})[i]||1.25,Sn=i=>({[M[124]]:E.HEADING_XLARGE_MEDIUM,[M[88]]:E.HEADING_LARGE_MEDIUM,[M[72]]:E.HEADING_MIDSIZE_MEDIUM,[M[64]]:E.HEADING_SMALL_MEDIUM,[M[48]]:E.HEADING_SMALL_MEDIUM,[M[32]]:E.BODY_MIDSIZE_MEDIUM,[M[24]]:E.BODY_SMALL_MEDIUM})[i]||E.BODY_MIDSIZE_MEDIUM;var qr=class extends Ho(ne(v)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(e){return e===ee.COUNTER&&(this.counter||this.counter===0)||this.isTyping?g:this.presence?m`
677
+ <mdc-presence part="presence" type="${this.presence}" size="${Tn(this.size)}"></mdc-presence>
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="${T(this.src)}"
681
+ src="${A(this.src)}"
682
682
  aria-hidden="true"
683
683
  ?hidden="${!this.isPhotoLoaded}"
684
684
  @load="${this.handleOnLoad}"
685
685
  @error="${this.handleOnError}"
686
686
  />
687
- `}iconTemplate(){let e=this.iconName||ir.ICON_NAME;return m`
687
+ `}iconTemplate(){let e=this.iconName||lr.ICON_NAME;return m`
688
688
  <mdc-icon
689
- name="${T(e)}"
689
+ name="${A(e)}"
690
690
  length-unit="rem"
691
- size="${ln(this.size)}"
691
+ size="${An(this.size)}"
692
692
  ></mdc-icon>
693
693
  `}textTemplate(e){return m`
694
694
  <mdc-text
695
- type="${cn(this.size)}"
695
+ type="${Sn(this.size)}"
696
696
  tagname="span"
697
697
  >
698
698
  ${e}
699
699
  </mdc-text>
700
- `}generateCounterText(e){return e<0?"0":e>Wi?`${Wi}+`:e.toString()}generateInitialsText(e){return e.toUpperCase().slice(0,2)}generateTextContent(e){let r="";return e===Q.TEXT&&this.initials&&(r=this.generateInitialsText(this.initials)),e===Q.COUNTER&&(this.counter||this.counter===0)&&(r=this.generateCounterText(this.counter)),this.textTemplate(r)}getTypeBasedOnInputs(){return this.src?Q.PHOTO:this.iconName?Q.ICON:this.initials?Q.TEXT:this.counter||this.counter===0?Q.COUNTER:Q.ICON}getTemplateBasedOnType(e){switch(e){case Q.PHOTO:return this.photoTemplate();case Q.TEXT:case Q.COUNTER:return this.generateTextContent(e);case Q.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?m`<div part="loading-wrapper"><div part="loader"></div></div>`:g}getPhotoPlaceHolderContent(e){return this.isPhotoLoaded?g:e===Q.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():g}update(e){super.update(e),e.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let e=this.getTypeBasedOnInputs();return m`
700
+ `}generateCounterText(e){return e<0?"0":e>ia?`${ia}+`:e.toString()}generateInitialsText(e){return e.toUpperCase().slice(0,2)}generateTextContent(e){let r="";return e===ee.TEXT&&this.initials&&(r=this.generateInitialsText(this.initials)),e===ee.COUNTER&&(this.counter||this.counter===0)&&(r=this.generateCounterText(this.counter)),this.textTemplate(r)}getTypeBasedOnInputs(){return this.src?ee.PHOTO:this.iconName?ee.ICON:this.initials?ee.TEXT:this.counter||this.counter===0?ee.COUNTER:ee.ICON}getTemplateBasedOnType(e){switch(e){case ee.PHOTO:return this.photoTemplate();case ee.TEXT:case ee.COUNTER:return this.generateTextContent(e);case ee.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?m`<div part="loading-wrapper"><div part="loader"></div></div>`:g}getPhotoPlaceHolderContent(e){return this.isPhotoLoaded?g:e===ee.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():g}update(e){super.update(e),e.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let e=this.getTypeBasedOnInputs();return m`
701
701
  <div part="content" aria-hidden="true">
702
702
  ${this.getPhotoPlaceHolderContent(e)}
703
703
  ${this.getTemplateBasedOnType(e)}
704
704
  ${this.getLoadingContent()}
705
705
  ${this.getPresenceTemplateBasedOnType(e)}
706
706
  </div>
707
- `}};Hr.styles=[...v.styles,...an],n([L()],Hr.prototype,"isPhotoLoaded",2);var qi=Hr;var Ed=[N,u`
707
+ `}};qr.styles=[...v.styles,...xn],n([L()],qr.prototype,"isPhotoLoaded",2);var aa=qr;var Vd=[w,u`
708
708
  :host {
709
709
  --mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
710
710
  --mdc-presence-away-background-color: var(--mds-color-theme-indicator-locked);
@@ -798,7 +798,7 @@
798
798
  .mdc-presence-icon__scheduled {
799
799
  color: var(--mdc-presence-scheduled-background-color);
800
800
  }
801
- `],dn=Ed;var mn=i=>{switch(i){case X.AWAY:return"recents-presence-badge-filled";case X.AWAY_CALLING:return"away-calling-presence-filled";case X.BUSY:return"busy-presence-bold";case X.DND:return"dnd-presence-badge-filled";case X.MEETING:return"camera-filled";case X.ON_CALL:return"handset-filled";case X.ON_DEVICE:return"generic-device-video-badge-filled";case X.ON_MOBILE:return"phone-badge-filled";case X.PAUSE:return"pause-badge-filled";case X.PTO:return"pto-presence-filled";case X.PRESENTING:return"share-screen-badge-filled";case X.QUIET:return"quiet-hours-presence-filled";case X.SCHEDULED:return"meetings-presence-badge-filled";case X.ACTIVE:default:return"active-presence-small-filled"}};var Et=class extends v{constructor(){super(...arguments);this.type=ar.TYPE;this.size=ar.SIZE;this.currentIconType=ar.TYPE}get iconSize(){switch(this.size){case Y.MIDSIZE:return 1.16125;case Y.LARGE:return 1.30625;case Y.X_LARGE:return 1.596875;case Y.XX_LARGE:return 2.25;case Y.XX_SMALL:case Y.X_SMALL:case Y.SMALL:default:return this.size=ar.SIZE,.875}}get icon(){let e=mn(this.type);return e==="active-presence-small-filled"&&(this.type=ar.TYPE),e}handleOnLoad(){this.currentIconType=this.type}handleOnError(){this.onerror&&this.onerror("There was a problem while fetching the icon. Please check the icon name and try again.")}render(){return m`
801
+ `],In=Vd;var Cn=i=>{switch(i){case Q.AWAY:return"recents-presence-badge-filled";case Q.AWAY_CALLING:return"away-calling-presence-filled";case Q.BUSY:return"busy-presence-bold";case Q.DND:return"dnd-presence-badge-filled";case Q.MEETING:return"camera-filled";case Q.ON_CALL:return"handset-filled";case Q.ON_DEVICE:return"generic-device-video-badge-filled";case Q.ON_MOBILE:return"phone-badge-filled";case Q.PAUSE:return"pause-badge-filled";case Q.PTO:return"pto-presence-filled";case Q.PRESENTING:return"share-screen-badge-filled";case Q.QUIET:return"quiet-hours-presence-filled";case Q.SCHEDULED:return"meetings-presence-badge-filled";case Q.ACTIVE:default:return"active-presence-small-filled"}};var St=class extends v{constructor(){super(...arguments);this.type=cr.TYPE;this.size=cr.SIZE;this.currentIconType=cr.TYPE}get iconSize(){switch(this.size){case Y.MIDSIZE:return 1.16125;case Y.LARGE:return 1.30625;case Y.X_LARGE:return 1.596875;case Y.XX_LARGE:return 2.25;case Y.XX_SMALL:case Y.X_SMALL:case Y.SMALL:default:return this.size=cr.SIZE,.875}}get icon(){let e=Cn(this.type);return e==="active-presence-small-filled"&&(this.type=cr.TYPE),e}handleOnLoad(){this.currentIconType=this.type}handleOnError(){this.onerror&&this.onerror("There was a problem while fetching the icon. Please check the icon name and try again.")}render(){return m`
802
802
  <div class="mdc-presence mdc-presence__${this.size}">
803
803
  <mdc-icon
804
804
  class="mdc-presence-icon mdc-presence-icon__${this.currentIconType}"
@@ -808,7 +808,7 @@
808
808
  @error="${this.handleOnError}"
809
809
  ></mdc-icon>
810
810
  </div>
811
- `}};Et.styles=[...v.styles,...dn],n([c({type:String,reflect:!0})],Et.prototype,"type",2),n([c({type:String,reflect:!0})],Et.prototype,"size",2),n([L()],Et.prototype,"currentIconType",2);var Ki=Et;Ki.register(sn);var Td=Ki;qi.register(on);var Ad=qi;var Tt=f.constructTagName("button"),ae={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Gr={40:40,32:32,28:28,24:24},sr={64:64,52:52,20:20,...Gr},At={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},nr={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},se={VARIANT:ae.PRIMARY,SIZE:Gr[32],COLOR:At.DEFAULT,TYPE_INTERNAL:nr.ICON,TYPE:er.BUTTON,INVERTED:!1};var Sd=[N,u`
811
+ `}};St.styles=[...v.styles,...In],n([l({type:String,reflect:!0})],St.prototype,"type",2),n([l({type:String,reflect:!0})],St.prototype,"size",2),n([L()],St.prototype,"currentIconType",2);var sa=St;sa.register(En);var Fd=sa;aa.register(yn);var Bd=aa;var It=f.constructTagName("button"),Z={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Kr={40:40,32:32,28:28,24:24},ct={64:64,52:52,20:20,...Kr},Ct={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},dr={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},le={VARIANT:Z.PRIMARY,SIZE:Kr[32],COLOR:Ct.DEFAULT,TYPE_INTERNAL:dr.ICON,TYPE:ir.BUTTON,INVERTED:!1};var Hd=[w,u`
812
812
  :host {
813
813
  --mdc-avatarbutton-overlay-background-color-rest: var(--mds-color-theme-avatar-ghost);
814
814
  --mdc-avatarbutton-overlay-background-color-hover: var(--mds-color-theme-avatar-hover);
@@ -837,18 +837,18 @@
837
837
  :host::part(presence) {
838
838
  z-index: 2;
839
839
  }
840
- `,..._()],pn=Sd;var Yr=class extends Mo(ie(oe)){constructor(){super(...arguments);this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role="button",this.type=se.TYPE}update(e){super.update(e),e.has("size")&&this.setSize(this.size)}setSize(e){this.setAttribute("size",Object.values(D).includes(e)?`${e}`:ir.SIZE.toString())}render(){return m`
840
+ `,..._()],kn=Hd;var Zr=class extends Ho(ne(se)){constructor(){super(...arguments);this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role="button",this.type=le.TYPE}update(e){super.update(e),e.has("size")&&this.setSize(this.size)}setSize(e){this.setAttribute("size",Object.values(M).includes(e)?`${e}`:lr.SIZE.toString())}render(){return m`
841
841
  <div part="overlay" aria-hidden="true"></div>
842
842
  <mdc-avatar
843
843
  ?is-typing="${this.isTyping}"
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)}"
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)}"
850
850
  ></mdc-avatar>
851
- `}};Yr.styles=[...pn],n([c({type:String,attribute:"aria-label"})],Yr.prototype,"ariaLabel",2);var Zi=Yr;var hn=f.constructTagName("avatarbutton");Zi.register(hn);var Id=Zi;var Do={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Wr=i=>(...t)=>({_$litDirective$:i,values:t}),lr=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 cr=Wr(class extends lr{constructor(i){var t;if(super(i),i.type!==Do.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 Ve}});var un=f.constructTagName("badge"),He={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},$o={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},zo={PRIMARY:"primary",SECONDARY:"secondary"},qr={SUCCESS:"success",WARNING:"warning",ERROR:"error"},bv={...zo,...qr},st={TYPE:He.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:zo.PRIMARY,ICON_SIZE:1};var Cd=[N,u`
851
+ `}};Zr.styles=[...kn],n([l({type:String,attribute:"aria-label"})],Zr.prototype,"ariaLabel",2);var na=Zr;var Nn=f.constructTagName("avatarbutton");na.register(Nn);var Gd=na;var Go={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Xr=i=>(...t)=>({_$litDirective$:i,values:t}),mr=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 pr=Xr(class extends mr{constructor(i){var t;if(super(i),i.type!==Go.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 Ve}});var wn=f.constructTagName("badge"),Ge={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Yo={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},Wo={PRIMARY:"primary",SECONDARY:"secondary"},jr={SUCCESS:"success",WARNING:"warning",ERROR:"error"},Fv={...Wo,...jr},dt={TYPE:Ge.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:Wo.PRIMARY,ICON_SIZE:1};var Yd=[w,u`
852
852
  :host {
853
853
  --mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
854
854
  --mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
@@ -917,21 +917,21 @@
917
917
  outline: 0.125rem solid;
918
918
  }
919
919
  }
920
- `],fn=Cd;var Oe=class extends ie(v){constructor(){super(...arguments);this.variant=st.VARIANT;this.maxCounter=st.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,r){return r===void 0||typeof r!="number"||e===0?"":r>e?`${e}+`:e>st.MAX_COUNTER_LIMIT||r>st.MAX_COUNTER_LIMIT?`${st.MAX_COUNTER_LIMIT}+`:r.toString()}getBadgeIcon(e,r){return m`
920
+ `],_n=Yd;var Me=class extends ne(v){constructor(){super(...arguments);this.variant=dt.VARIANT;this.maxCounter=dt.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,r){return r===void 0||typeof r!="number"||e===0?"":r>e?`${e}+`:e>dt.MAX_COUNTER_LIMIT||r>dt.MAX_COUNTER_LIMIT?`${dt.MAX_COUNTER_LIMIT}+`:r.toString()}getBadgeIcon(e,r){return m`
921
921
  <mdc-icon
922
- class="mdc-badge-icon ${cr({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${r}`]:!0})}"
923
- name="${T(e)}"
924
- size="${st.ICON_SIZE}"
922
+ class="mdc-badge-icon ${pr({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${r}`]:!0})}"
923
+ name="${A(e)}"
924
+ size="${dt.ICON_SIZE}"
925
925
  ></mdc-icon>
926
- `}getBadgeDot(){return m`<div class="mdc-badge-dot ${cr({"mdc-badge-overlay":this.overlay})}"></div>`}getBadgeCounterText(){return m`
926
+ `}getBadgeDot(){return m`<div class="mdc-badge-dot ${pr({"mdc-badge-overlay":this.overlay})}"></div>`}getBadgeCounterText(){return m`
927
927
  <mdc-text
928
- type="${S.BODY_SMALL_MEDIUM}"
929
- tagname="${w.DIV}"
930
- class="mdc-badge-text ${cr({"mdc-badge-overlay":this.overlay})}"
928
+ type="${E.BODY_SMALL_MEDIUM}"
929
+ tagname="${C.DIV}"
930
+ class="mdc-badge-text ${pr({"mdc-badge-overlay":this.overlay})}"
931
931
  >
932
932
  ${this.getCounterText(this.maxCounter,this.counter)}
933
933
  </mdc-text>
934
- `}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(zo).includes(this.variant)&&(this.variant=st.VARIANT);let{iconName:e,type:r,variant:o}=this;switch(r){case He.ICON:return this.getBadgeIcon(e||"",o);case He.COUNTER:return this.getBadgeCounterText();case He.SUCCESS:return this.getBadgeIcon($o.SUCCESS_ICON_NAME,qr.SUCCESS);case He.WARNING:return this.getBadgeIcon($o.WARNING_ICON_NAME,qr.WARNING);case He.ERROR:return this.getBadgeIcon($o.ERROR_ICON_NAME,qr.ERROR);case He.DOT:default:return this.type=He.DOT,this.getBadgeDot()}}update(e){super.update(e),e.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};Oe.styles=[...v.styles,...fn],n([c({type:String,reflect:!0})],Oe.prototype,"type",2),n([c({type:String,reflect:!0})],Oe.prototype,"variant",2),n([c({type:Number})],Oe.prototype,"counter",2),n([c({type:Number,attribute:"max-counter",reflect:!0})],Oe.prototype,"maxCounter",2),n([c({type:Boolean})],Oe.prototype,"overlay",2),n([c({type:String,attribute:"aria-label"})],Oe.prototype,"ariaLabel",2);var Xi=Oe;Xi.register(un);var kd=Xi;var wd=u`
934
+ `}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(Wo).includes(this.variant)&&(this.variant=dt.VARIANT);let{iconName:e,type:r,variant:o}=this;switch(r){case Ge.ICON:return this.getBadgeIcon(e||"",o);case Ge.COUNTER:return this.getBadgeCounterText();case Ge.SUCCESS:return this.getBadgeIcon(Yo.SUCCESS_ICON_NAME,jr.SUCCESS);case Ge.WARNING:return this.getBadgeIcon(Yo.WARNING_ICON_NAME,jr.WARNING);case Ge.ERROR:return this.getBadgeIcon(Yo.ERROR_ICON_NAME,jr.ERROR);case Ge.DOT:default:return this.type=Ge.DOT,this.getBadgeDot()}}update(e){super.update(e),e.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};Me.styles=[...v.styles,..._n],n([l({type:String,reflect:!0})],Me.prototype,"type",2),n([l({type:String,reflect:!0})],Me.prototype,"variant",2),n([l({type:Number})],Me.prototype,"counter",2),n([l({type:Number,attribute:"max-counter",reflect:!0})],Me.prototype,"maxCounter",2),n([l({type:Boolean})],Me.prototype,"overlay",2),n([l({type:String,attribute:"aria-label"})],Me.prototype,"ariaLabel",2);var la=Me;la.register(wn);var Wd=la;var qd=u`
935
935
  :host {
936
936
  display: block;
937
937
  height: 100%;
@@ -940,7 +940,7 @@
940
940
  height: 100%;
941
941
  width: 100%;
942
942
  }
943
- `,bn=[wd];var gn=f.constructTagName("brandvisual"),vn={NAME:void 0};var dr=class extends v{constructor(){super(...arguments);this.name=vn.NAME}async getBrandVisualData(){return this.name?import(`@momentum-design/brand-visuals/dist/logos/ts/${this.name}.ts`).then(e=>{this.handleBrandVisualLoadedSuccess(e.default())}).catch(e=>{this.handleBrandVisualLoadedFailure(e)}):(this.handleBrandVisualLoadedFailure(new Error("No brandvisual name provided.")),Promise.reject(new Error("No brandvisual name provided.")))}updated(e){super.updated(e),e.has("name")&&this.getBrandVisualData().catch(r=>{this.onerror&&this.onerror(r)})}handleBrandVisualLoadedSuccess(e){this.brandVisualData=e;let r=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}handleBrandVisualLoadedFailure(e){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:e}});this.dispatchEvent(r)}render(){return m` ${this.brandVisualData} `}};dr.styles=[...v.styles,...bn],n([L()],dr.prototype,"brandVisualData",2),n([c({type:String,reflect:!0})],dr.prototype,"name",2);var ji=dr;ji.register(gn);var Nd=ji;var _d=u`
943
+ `,Ln=[qd];var Rn=f.constructTagName("brandvisual"),On={NAME:void 0};var hr=class extends v{constructor(){super(...arguments);this.name=On.NAME}async getBrandVisualData(){return this.name?import(`@momentum-design/brand-visuals/dist/logos/ts/${this.name}.ts`).then(e=>{this.handleBrandVisualLoadedSuccess(e.default())}).catch(e=>{this.handleBrandVisualLoadedFailure(e)}):(this.handleBrandVisualLoadedFailure(new Error("No brandvisual name provided.")),Promise.reject(new Error("No brandvisual name provided.")))}updated(e){super.updated(e),e.has("name")&&this.getBrandVisualData().catch(r=>{this.onerror&&this.onerror(r)})}handleBrandVisualLoadedSuccess(e){this.brandVisualData=e;let r=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}handleBrandVisualLoadedFailure(e){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:e}});this.dispatchEvent(r)}render(){return m` ${this.brandVisualData} `}};hr.styles=[...v.styles,...Ln],n([L()],hr.prototype,"brandVisualData",2),n([l({type:String,reflect:!0})],hr.prototype,"name",2);var ca=hr;ca.register(Rn);var Kd=ca;var Zd=u`
944
944
  :host {
945
945
  --mdc-bullet-background-color: var(--mds-color-theme-outline-secondary-normal);
946
946
  --mdc-bullet-size-small: 0.25rem;
@@ -961,7 +961,7 @@
961
961
  :host([size="large"]) {
962
962
  height: var(--mdc-bullet-size-large);
963
963
  }
964
- `,yn=[_d];var xn=f.constructTagName("bullet"),En={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var Kr=class extends v{constructor(){super(...arguments);this.size=En.SMALL}};Kr.styles=[...v.styles,...yn],n([c({type:String,reflect:!0})],Kr.prototype,"size",2);var Qi=Kr;Qi.register(xn);var Ld=Qi;var Po=i=>{class t extends i{constructor(){super(...arguments);this.variant=se.VARIANT;this.color=se.COLOR;this.typeInternal=se.TYPE_INTERNAL}setVariant(o){this.setAttribute("variant",Object.values(ae).includes(o)?o:se.VARIANT)}setColor(o){!Object.values(At).includes(o)||this.variant===ae.TERTIARY?this.setAttribute("color",`${se.COLOR}`):this.setAttribute("color",o)}setSize(o){let s=this.typeInternal===nr.ICON?Object.values(sr).includes(o)&&!(o===sr[20]&&this.variant!==ae.TERTIARY):Object.values(Gr).includes(o);this.setAttribute("size",s?`${o}`:`${se.SIZE}`)}inferButtonType(){var a,s;let o=(s=(a=this.shadowRoot)==null?void 0:a.querySelector("slot"))==null?void 0:s.assignedNodes().filter(l=>{var d;return l.nodeType!==Node.TEXT_NODE||((d=l.textContent)==null?void 0:d.trim())}).length;o&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=nr.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!o&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=nr.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=nr.PILL,this.setAttribute("data-btn-type","pill"))}}return n([c({type:String,attribute:"prefix-icon",reflect:!0})],t.prototype,"prefixIcon",2),n([c({type:String,attribute:"postfix-icon",reflect:!0})],t.prototype,"postfixIcon",2),n([c({type:String})],t.prototype,"variant",2),n([c({type:String})],t.prototype,"color",2),n([L()],t.prototype,"typeInternal",2),t};var Rd=u`
964
+ `,Mn=[Zd];var Dn=f.constructTagName("bullet"),$n={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var Qr=class extends v{constructor(){super(...arguments);this.size=$n.SMALL}};Qr.styles=[...v.styles,...Mn],n([l({type:String,reflect:!0})],Qr.prototype,"size",2);var da=Qr;da.register(Dn);var Xd=da;var qo=i=>{class t extends i{constructor(){super(...arguments);this.variant=le.VARIANT;this.color=le.COLOR;this.typeInternal=le.TYPE_INTERNAL}setVariant(o){this.setAttribute("variant",Object.values(Z).includes(o)?o:le.VARIANT)}setColor(o){!Object.values(Ct).includes(o)||this.variant===Z.TERTIARY?this.setAttribute("color",`${le.COLOR}`):this.setAttribute("color",o)}setSize(o){let s=this.typeInternal===dr.ICON?Object.values(ct).includes(o)&&!(o===ct[20]&&this.variant!==Z.TERTIARY):Object.values(Kr).includes(o);this.setAttribute("size",s?`${o}`:`${le.SIZE}`)}inferButtonType(){var a,s;let o=(s=(a=this.shadowRoot)==null?void 0:a.querySelector("slot"))==null?void 0:s.assignedNodes().filter(c=>{var d;return c.nodeType!==Node.TEXT_NODE||((d=c.textContent)==null?void 0:d.trim())}).length;o&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=dr.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!o&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=dr.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=dr.PILL,this.setAttribute("data-btn-type","pill"))}}return n([l({type:String,attribute:"prefix-icon",reflect:!0})],t.prototype,"prefixIcon",2),n([l({type:String,attribute:"postfix-icon",reflect:!0})],t.prototype,"postfixIcon",2),n([l({type:String})],t.prototype,"variant",2),n([l({type:String})],t.prototype,"color",2),n([L()],t.prototype,"typeInternal",2),t};var jd=u`
965
965
  :host {
966
966
  background-color: transparent;
967
967
  border-radius: 1.25rem;
@@ -1197,11 +1197,11 @@
1197
1197
  --mdc-button-primary-disabled-background-color: var(--mds-color-theme-inverted-button-primary-disabled);
1198
1198
  --mdc-button-primary-disabled-color: var(--mds-color-theme-inverted-text-primary-disabled);
1199
1199
  }
1200
- `,Tn=[Rd];var Zr=i=>{let t=i.split("-"),e=["bold","filled","regular","light"];return t.filter(r=>!e.includes(r)).join("-")};var Ge=class extends Po(oe){constructor(){super(...arguments);this.size=se.SIZE;this.inverted=se.INVERTED;this.role="button"}update(e){super.update(e),e.has("active")&&this.inferFilledIconName(this.active),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.inferFilledIconName(this.active),this.inferButtonType())}inferFilledIconName(e){e?(this.prefixIcon&&(this.prefixFilledIconName=`${Zr(this.prefixIcon)}-filled`),this.postfixIcon&&(this.postfixFilledIconName=`${Zr(this.postfixIcon)}-filled`)):(this.prefixFilledIconName=this.prefixIcon,this.postfixFilledIconName=this.postfixIcon)}render(){return m`
1200
+ `,zn=[jd];var Jr=i=>{let t=i.split("-"),e=["bold","filled","regular","light"];return t.filter(r=>!e.includes(r)).join("-")};var Ye=class extends qo(se){constructor(){super(...arguments);this.size=le.SIZE;this.inverted=le.INVERTED;this.role="button"}update(e){super.update(e),e.has("active")&&this.inferFilledIconName(this.active),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.inferFilledIconName(this.active),this.inferButtonType())}inferFilledIconName(e){e?(this.prefixIcon&&(this.prefixFilledIconName=`${Jr(this.prefixIcon)}-filled`),this.postfixIcon&&(this.postfixFilledIconName=`${Jr(this.postfixIcon)}-filled`)):(this.prefixFilledIconName=this.prefixIcon,this.postfixFilledIconName=this.postfixIcon)}render(){return m`
1201
1201
  ${this.prefixFilledIconName?m` <mdc-icon name="${this.prefixFilledIconName}" part="prefix-icon"></mdc-icon>`:""}
1202
1202
  <slot @slotchange=${this.inferButtonType}></slot>
1203
1203
  ${this.postfixFilledIconName?m` <mdc-icon name="${this.postfixFilledIconName}" part="postfix-icon"></mdc-icon>`:""}
1204
- `}};Ge.styles=[...oe.styles,...Tn],n([c({type:Number})],Ge.prototype,"size",2),n([c({type:Boolean,reflect:!0})],Ge.prototype,"inverted",2),n([c({type:String,reflect:!0})],Ge.prototype,"role",2),n([L()],Ge.prototype,"prefixFilledIconName",2),n([L()],Ge.prototype,"postfixFilledIconName",2);var St=Ge;St.register(Tt);var Od=St;var An=f.constructTagName("linksimple"),Ji={INLINE:!1,INVERTED:!1};var Md=[N,u`
1204
+ `}};Ye.styles=[...se.styles,...zn],n([l({type:Number})],Ye.prototype,"size",2),n([l({type:Boolean,reflect:!0})],Ye.prototype,"inverted",2),n([l({type:String,reflect:!0})],Ye.prototype,"role",2),n([L()],Ye.prototype,"prefixFilledIconName",2),n([L()],Ye.prototype,"postfixFilledIconName",2);var kt=Ye;kt.register(It);var Qd=kt;var Pn=f.constructTagName("linksimple"),ma={INLINE:!1,INVERTED:!1};var Jd=[w,u`
1205
1205
  :host {
1206
1206
  --mdc-link-border-radius: 0.25rem;
1207
1207
  --mdc-link-color-active: var(--mds-color-theme-text-accent-active);
@@ -1268,13 +1268,13 @@
1268
1268
  text-transform: var(--mds-font-apps-body-large-regular-underline-text-case);
1269
1269
  }
1270
1270
 
1271
- `,..._()],Sn=Md;var Ye=class extends P(Le(v)){constructor(){super(...arguments);this.inline=Ji.INLINE;this.inverted=Ji.INVERTED;this.href="#";this.target="_self";this.prevTabindex=0;this.handleNavigation=e=>{if((e.type==="click"||e instanceof KeyboardEvent&&e.key==="Enter")&&this.href){if(this.disabled)return;window.open(this.href,this.target,this.rel)}}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","link"),this.addEventListener("click",this.handleNavigation),this.addEventListener("keydown",this.handleNavigation)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleNavigation),this.removeEventListener("keydown",this.handleNavigation)}setDisabled(e){e?(this.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),this.removeAttribute("aria-disabled"))}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this.disabled)}render(){return m`
1271
+ `,..._()],Un=Jd;var We=class extends P(Re(v)){constructor(){super(...arguments);this.inline=ma.INLINE;this.inverted=ma.INVERTED;this.href="#";this.target="_self";this.prevTabindex=0;this.handleNavigation=e=>{if((e.type==="click"||e instanceof KeyboardEvent&&e.key==="Enter")&&this.href){if(this.disabled)return;window.open(this.href,this.target,this.rel)}}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","link"),this.addEventListener("click",this.handleNavigation),this.addEventListener("keydown",this.handleNavigation)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleNavigation),this.removeEventListener("keydown",this.handleNavigation)}setDisabled(e){e?(this.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),this.removeAttribute("aria-disabled"))}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this.disabled)}render(){return m`
1272
1272
  <slot></slot>
1273
- `}};Ye.styles=[...v.styles,...Sn],n([c({type:Boolean,reflect:!0})],Ye.prototype,"inline",2),n([c({type:Boolean,reflect:!0})],Ye.prototype,"inverted",2),n([c({type:String,reflect:!0})],Ye.prototype,"href",2),n([c({type:String,reflect:!0})],Ye.prototype,"target",2),n([c({type:String,reflect:!0})],Ye.prototype,"rel",2);var nt=Ye;var mr=class extends Po(nt){constructor(){super(...arguments);this.size=se.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`
1273
+ `}};We.styles=[...v.styles,...Un],n([l({type:Boolean,reflect:!0})],We.prototype,"inline",2),n([l({type:Boolean,reflect:!0})],We.prototype,"inverted",2),n([l({type:String,reflect:!0})],We.prototype,"href",2),n([l({type:String,reflect:!0})],We.prototype,"target",2),n([l({type:String,reflect:!0})],We.prototype,"rel",2);var mt=We;var ur=class extends qo(mt){constructor(){super(...arguments);this.size=le.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`
1274
1274
  ${this.prefixIcon?m` <mdc-icon name="${this.prefixIcon}" part="prefix-icon"></mdc-icon>`:""}
1275
1275
  <slot @slotchange=${this.inferButtonType}></slot>
1276
1276
  ${this.postfixIcon?m` <mdc-icon name="${this.postfixIcon}" part="postfix-icon"></mdc-icon>`:""}
1277
- `}};mr.styles=[...St.styles],n([c({type:Number,reflect:!0})],mr.prototype,"size",2),n([c({type:Boolean,attribute:"soft-disabled",reflect:!0})],mr.prototype,"softDisabled",2);var ea=mr;var In=f.constructTagName("buttonlink");ea.register(In);var Dd=ea;var $d=u`
1277
+ `}};ur.styles=[...kt.styles],n([l({type:Number,reflect:!0})],ur.prototype,"size",2),n([l({type:Boolean,attribute:"soft-disabled",reflect:!0})],ur.prototype,"softDisabled",2);var pa=ur;var Vn=f.constructTagName("buttonlink");pa.register(Vn);var em=pa;var tm=u`
1278
1278
  :host {
1279
1279
  align-items: flex-start;
1280
1280
  border-radius: 0.5rem;
@@ -1349,17 +1349,23 @@
1349
1349
  margin-bottom: 0.5rem;
1350
1350
  }
1351
1351
 
1352
- `,Cn=[N,$d];var Vo=f.constructTagName("link"),Uo={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Fo={LARGE:1,MIDSIZE:.875,SMALL:.75},kn={LINK_SIZE:Uo.LARGE};var wn=f.constructTagName("card"),ta={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},zd={HORIZONTAL:"horizontal",VERTICAL:"vertical"},q={VARIANT:ta.BORDER,ORIENTATION:zd.VERTICAL,TITLE_TYPE:S.HEADING_SMALL_BOLD,SUBTITLE_TYPE:S.BODY_MIDSIZE_MEDIUM,TAGNAME:w.SPAN,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem",LINK:Vo,BUTTON:Tt};var Bo=i=>{class t extends i{constructor(){super(...arguments);this.cardTitle="";this.subtitle="";this.imageSrc="";this.imageAlt="";this.variant=q.VARIANT;this.orientation=q.ORIENTATION;this.titleTagName=q.TAGNAME;this.subtitleTagName=q.TAGNAME}renderImage(){return this.imageSrc?m`<img part="image" src="${this.imageSrc}" alt="${this.imageAlt}" />`:g}renderIcon(){return this.iconName?m`<mdc-icon
1352
+ `,Fn=[w,tm];var Ko=f.constructTagName("link"),Zo={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Xo={LARGE:1,MIDSIZE:.875,SMALL:.75},Bn={LINK_SIZE:Zo.LARGE};var Hn=f.constructTagName("card"),ha={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},rm={HORIZONTAL:"horizontal",VERTICAL:"vertical"},W={VARIANT:ha.BORDER,ORIENTATION:rm.VERTICAL,TITLE_TYPE:E.HEADING_SMALL_BOLD,SUBTITLE_TYPE:E.BODY_MIDSIZE_MEDIUM,TAGNAME:C.SPAN,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem",LINK:Ko,BUTTON:It};var jo=i=>{class t extends i{constructor(){super(...arguments);this.cardTitle="";this.subtitle="";this.imageSrc="";this.imageAlt="";this.variant=W.VARIANT;this.orientation=W.ORIENTATION;this.titleTagName=W.TAGNAME;this.subtitleTagName=W.TAGNAME}renderImage(){return this.imageSrc?m`<img part="image" src="${this.imageSrc}" alt="${this.imageAlt}" />`:g}renderIcon(){return this.iconName?m`<mdc-icon
1353
1353
  part="icon"
1354
- size="${q.ICON_SIZE}"
1355
- length-unit="${q.ICON_LENGTH_UNIT}"
1354
+ size="${W.ICON_SIZE}"
1355
+ length-unit="${W.ICON_LENGTH_UNIT}"
1356
1356
  name="${this.iconName}"
1357
1357
  ></mdc-icon>`:g}renderTitle(){return m`<div part="title-container">
1358
- <mdc-text part="title" type="${q.TITLE_TYPE}" tagname="${this.titleTagName}">${this.cardTitle}</mdc-text>
1359
- ${this.subtitle?m`<mdc-text part="subtitle" type="${q.SUBTITLE_TYPE}" tagname="${this.subtitleTagName}"
1358
+ <mdc-text part="title" type="${W.TITLE_TYPE}" tagname="${this.titleTagName}">${this.cardTitle}</mdc-text>
1359
+ ${this.subtitle?m`<mdc-text part="subtitle" type="${W.SUBTITLE_TYPE}" tagname="${this.subtitleTagName}"
1360
1360
  >${this.subtitle}</mdc-text
1361
1361
  >`:g}
1362
- </div>`}}return n([c({type:String,attribute:"card-title"})],t.prototype,"cardTitle",2),n([c({type:String})],t.prototype,"subtitle",2),n([c({type:String,attribute:"image-src"})],t.prototype,"imageSrc",2),n([c({type:String,attribute:"image-alt"})],t.prototype,"imageAlt",2),n([c({type:String})],t.prototype,"variant",2),n([c({type:String,reflect:!0})],t.prototype,"orientation",2),n([c({type:String,attribute:"title-tag-name"})],t.prototype,"titleTagName",2),n([c({type:String,attribute:"subtitle-tag-name"})],t.prototype,"subtitleTagName",2),n([c({type:String,attribute:"icon-name"})],t.prototype,"iconName",2),t};var lt=class extends Bo(v){constructor(){super(...arguments);this.handleIconButtons=()=>{var e;if((e=this.iconButtons)==null||e.forEach(r=>{!r.matches(q.BUTTON)&&r.getAttribute("data-btn-type")!=="icon"?r.remove():(r.setAttribute("variant",ae.TERTIARY),r.setAttribute("size","32"))}),this.iconButtons&&this.iconButtons.length>3)for(let r=3;r<this.iconButtons.length;r+=1)this.iconButtons[r].remove()};this.handleFooterSlot=(e,r="")=>{var a,s,l;let o=[];e===q.LINK&&((a=this.footerLink)!=null&&a.length)?o=this.footerLink:e===q.BUTTON&&r===ae.PRIMARY&&((s=this.footerButtonPrimary)!=null&&s.length)?o=this.footerButtonPrimary:e===q.BUTTON&&r===ae.SECONDARY&&((l=this.footerButtonSecondary)!=null&&l.length)&&(o=this.footerButtonSecondary);for(let d=1;d<o.length;d+=1)o[d].remove();o.forEach(d=>{d.matches(e)||d.remove(),r&&d.setAttribute("variant",r)})};this.updateFooterButtonColors=()=>{let e=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];e==null||e.forEach(r=>{this.variant===ta.PROMOTIONAL?r.setAttribute("color",At.PROMOTIONAL):r.setAttribute("color",At.DEFAULT)})}}update(e){super.update(e),e.has("variant")&&this.updateFooterButtonColors()}renderHeader(){return this.cardTitle?m`<div part="header">
1362
+ </div>`}}return n([l({type:String,attribute:"card-title"})],t.prototype,"cardTitle",2),n([l({type:String})],t.prototype,"subtitle",2),n([l({type:String,attribute:"image-src"})],t.prototype,"imageSrc",2),n([l({type:String,attribute:"image-alt"})],t.prototype,"imageAlt",2),n([l({type:String})],t.prototype,"variant",2),n([l({type:String,reflect:!0})],t.prototype,"orientation",2),n([l({type:String,attribute:"title-tag-name"})],t.prototype,"titleTagName",2),n([l({type:String,attribute:"subtitle-tag-name"})],t.prototype,"subtitleTagName",2),n([l({type:String,attribute:"icon-name"})],t.prototype,"iconName",2),t};var Qo=i=>{class t extends i{updateFooterButtonColors(r){let o=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];o==null||o.forEach(a=>{r===ha.PROMOTIONAL?a.setAttribute("color",Ct.PROMOTIONAL):a.setAttribute("color",Ct.DEFAULT)})}handleFooterSlot(r,o){var s,c,d;let a=[];r===W.LINK&&((s=this.footerLink)!=null&&s.length)?a=this.footerLink:r===W.BUTTON&&o===Z.PRIMARY&&((c=this.footerButtonPrimary)!=null&&c.length)?a=this.footerButtonPrimary:r===W.BUTTON&&o===Z.SECONDARY&&((d=this.footerButtonSecondary)!=null&&d.length)&&(a=this.footerButtonSecondary);for(let p=1;p<a.length;p+=1)a[p].remove();a.forEach(p=>{p.matches(r)||p.remove(),o&&p.setAttribute("variant",o)})}renderFooter(){return m`<div part="footer">
1363
+ <slot name="footer-link" @slotchange=${()=>this.handleFooterSlot(W.LINK)}></slot>
1364
+ <slot name="footer-button-secondary"
1365
+ @slotchange=${()=>this.handleFooterSlot(W.BUTTON,Z.SECONDARY)}></slot>
1366
+ <slot name="footer-button-primary"
1367
+ @slotchange=${()=>this.handleFooterSlot(W.BUTTON,Z.PRIMARY)}></slot>
1368
+ </div>`}}return n([F({slot:"footer-link"})],t.prototype,"footerLink",2),n([F({slot:"footer-button-primary"})],t.prototype,"footerButtonPrimary",2),n([F({slot:"footer-button-secondary"})],t.prototype,"footerButtonSecondary",2),t};var eo=class extends jo(Qo(v)){constructor(){super(...arguments);this.handleIconButtons=()=>{var e;if((e=this.iconButtons)==null||e.forEach(r=>{!r.matches(W.BUTTON)&&r.getAttribute("data-btn-type")!=="icon"?r.remove():(r.setAttribute("variant",Z.TERTIARY),r.setAttribute("size","32"))}),this.iconButtons&&this.iconButtons.length>3)for(let r=3;r<this.iconButtons.length;r+=1)this.iconButtons[r].remove()}}update(e){super.update(e),e.has("variant")&&this.updateFooterButtonColors(this.variant)}renderHeader(){return this.cardTitle?m`<div part="header">
1363
1369
  ${this.renderIcon()}
1364
1370
  ${this.renderTitle()}
1365
1371
  <div part="icon-button"><slot name="icon-button" @slotchange=${this.handleIconButtons}></slot></div>
@@ -1370,15 +1376,9 @@
1370
1376
  <slot name="before-body"></slot>
1371
1377
  <slot name="body"></slot>
1372
1378
  <slot name="after-body"></slot>
1373
- <div part="footer">
1374
- <slot name="footer-link" @slotchange=${()=>this.handleFooterSlot(q.LINK)}></slot>
1375
- <slot name="footer-button-secondary"
1376
- @slotchange=${()=>this.handleFooterSlot(q.BUTTON,ae.SECONDARY)}></slot>
1377
- <slot name="footer-button-primary"
1378
- @slotchange=${()=>this.handleFooterSlot(q.BUTTON,ae.PRIMARY)}></slot>
1379
- </div>
1379
+ ${this.renderFooter()}
1380
1380
  </div>
1381
- `}};lt.styles=[...v.styles,...Cn],n([G({slot:"icon-button"})],lt.prototype,"iconButtons",2),n([G({slot:"footer-link"})],lt.prototype,"footerLink",2),n([G({slot:"footer-button-primary"})],lt.prototype,"footerButtonPrimary",2),n([G({slot:"footer-button-secondary"})],lt.prototype,"footerButtonSecondary",2);var Ee=lt;Ee.register(wn);var Pd=Ee;var Vd=u`
1381
+ `}};eo.styles=[...v.styles,...Fn],n([F({slot:"icon-button"})],eo.prototype,"iconButtons",2);var Ae=eo;Ae.register(Hn);var om=Ae;var im=u`
1382
1382
  :host {
1383
1383
  cursor: pointer;
1384
1384
  user-select: none;
@@ -1400,7 +1400,7 @@
1400
1400
  :host([disabled])::part(image){
1401
1401
  opacity: 0.5;
1402
1402
  }
1403
- `,Nn=[Vd,..._()];var Ho=class extends Bo(oe){connectedCallback(){super.connectedCallback(),this.active=void 0,this.size=void 0}renderHeader(){return this.cardTitle?m`<div part="header">
1403
+ `,Gn=[im,..._()];var Jo=class extends jo(se){connectedCallback(){super.connectedCallback(),this.active=void 0,this.size=void 0}renderHeader(){return this.cardTitle?m`<div part="header">
1404
1404
  ${this.renderIcon()}
1405
1405
  ${this.renderTitle()}
1406
1406
  </div>`:g}render(){return m`
@@ -1411,7 +1411,7 @@
1411
1411
  <slot name="body"></slot>
1412
1412
  <slot name="after-body"></slot>
1413
1413
  </div>
1414
- `}};Ho.styles=[...Ee.styles,...Nn];var ra=Ho;var _n=f.constructTagName("cardbutton");ra.register(_n);var Ud=ra;var Fd=u`
1414
+ `}};Jo.styles=[...Ae.styles,...Gn];var ua=Jo;var Yn=f.constructTagName("cardbutton");ua.register(Yn);var am=ua;var sm=u`
1415
1415
  :host {
1416
1416
  cursor: pointer;
1417
1417
  user-select: none;
@@ -1464,10 +1464,10 @@
1464
1464
  :host([disabled])::part(check-icon){
1465
1465
  color: var(--mds-color-theme-text-primary-disabled);
1466
1466
  }
1467
- `,Ln=[Fd,..._()];var Rn=f.constructTagName("cardcheckbox"),oa={DEFAULT:"check-circle-bold",CHECKED:"check-circle-filled"},Go={CHECK:"check",CHECKBOX:"checkbox"},Yo={SELECTION_TYPE:Go.CHECK,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem"};var pr=class extends P(Le(Ee)){constructor(){super();this.checked=!1;this.selectionType=Yo.SELECTION_TYPE;this.addEventListener("click",this.toggleChecked),this.addEventListener("keydown",this.toggleOnEnter),this.addEventListener("keyup",this.toggleOnSpace)}connectedCallback(){super.connectedCallback(),this.role="checkbox"}update(e){super.update(e),e.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),e.has("disabled")&&this.setAttribute("aria-disabled",`${this.disabled}`)}toggleChecked(){this.disabled||(this.checked=!this.checked)}toggleOnEnter(e){e.key==="Enter"&&this.toggleChecked()}toggleOnSpace(e){e.key===" "&&this.toggleChecked()}renderSelection(){let e=this.checked?oa.CHECKED:oa.DEFAULT;switch(this.selectionType){case Go.CHECK:return m`<mdc-icon part="check check-icon"
1468
- size="${Yo.ICON_SIZE}"
1469
- length-unit="${Yo.ICON_LENGTH_UNIT}"
1470
- name="${e}"></mdc-icon>`;case Go.CHECKBOX:return m`<mdc-staticcheckbox part="check"
1467
+ `,Wn=[sm,..._()];var qn=f.constructTagName("cardcheckbox"),fa={DEFAULT:"check-circle-bold",CHECKED:"check-circle-filled"},ei={CHECK:"check",CHECKBOX:"checkbox"},ti={SELECTION_TYPE:ei.CHECK,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem"};var fr=class extends P(Re(Ae)){constructor(){super();this.checked=!1;this.selectionType=ti.SELECTION_TYPE;this.addEventListener("click",this.toggleChecked),this.addEventListener("keydown",this.toggleOnEnter),this.addEventListener("keyup",this.toggleOnSpace)}connectedCallback(){super.connectedCallback(),this.role="checkbox"}update(e){super.update(e),e.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),e.has("disabled")&&this.setAttribute("aria-disabled",`${this.disabled}`)}toggleChecked(){this.disabled||(this.checked=!this.checked)}toggleOnEnter(e){e.key==="Enter"&&this.toggleChecked()}toggleOnSpace(e){e.key===" "&&this.toggleChecked()}renderSelection(){let e=this.checked?fa.CHECKED:fa.DEFAULT;switch(this.selectionType){case ei.CHECK:return m`<mdc-icon part="check check-icon"
1468
+ size="${ti.ICON_SIZE}"
1469
+ length-unit="${ti.ICON_LENGTH_UNIT}"
1470
+ name="${e}"></mdc-icon>`;case ei.CHECKBOX:return m`<mdc-staticcheckbox part="check"
1471
1471
  ?checked="${this.checked}"
1472
1472
  ?disabled="${this.disabled}"></mdc-staticcheckbox>`;default:return g}}renderHeader(){return this.cardTitle?m`<div part="header">
1473
1473
  ${this.renderIcon()}
@@ -1481,7 +1481,7 @@
1481
1481
  <slot name="body"></slot>
1482
1482
  <slot name="after-body"></slot>
1483
1483
  </div>
1484
- `}};pr.styles=[...Ee.styles,...Ln],n([c({type:Boolean,reflect:!0})],pr.prototype,"checked",2),n([c({type:String,attribute:"selection-type"})],pr.prototype,"selectionType",2);var ia=pr;var Bd=[u`
1484
+ `}};fr.styles=[...Ae.styles,...Wn],n([l({type:Boolean,reflect:!0})],fr.prototype,"checked",2),n([l({type:String,attribute:"selection-type"})],fr.prototype,"selectionType",2);var ba=fr;var nm=[u`
1485
1485
  :host{
1486
1486
  margin: 0.125rem 0;
1487
1487
  border-radius: 0.125rem;
@@ -1538,15 +1538,15 @@
1538
1538
  border: 0.0625rem solid var(--mdc-staticcheckbox-border-color);
1539
1539
  }
1540
1540
  }
1541
- `],On=Bd;var Mn=f.constructTagName("checkbox"),Wo={CHECKED:"check-bold",INDETERMINATE:"minus-bold"};var Dn=f.constructTagName("staticcheckbox");var hr=class extends P(v){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1}render(){let e=this.checked||this.indeterminate?m`
1541
+ `],Kn=nm;var Zn=f.constructTagName("checkbox"),ri={CHECKED:"check-bold",INDETERMINATE:"minus-bold"};var Xn=f.constructTagName("staticcheckbox");var br=class extends P(v){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1}render(){let e=this.checked||this.indeterminate?m`
1542
1542
  <mdc-icon
1543
1543
  class="icon"
1544
- name="${this.indeterminate?Wo.INDETERMINATE:Wo.CHECKED}"
1544
+ name="${this.indeterminate?ri.INDETERMINATE:ri.CHECKED}"
1545
1545
  size="1"
1546
1546
  length-unit="rem"
1547
1547
  ></mdc-icon>
1548
1548
  `:g;return m`<slot></slot>
1549
- <div part="icon-container">${e}</div>`}};hr.styles=[...v.styles,...On],n([c({type:Boolean,reflect:!0})],hr.prototype,"checked",2),n([c({type:Boolean,reflect:!0})],hr.prototype,"indeterminate",2);var aa=hr;aa.register(Dn);var Hd=aa;ia.register(Rn);var Gd=ia;var Yd=u`
1549
+ <div part="icon-container">${e}</div>`}};br.styles=[...v.styles,...Kn],n([l({type:Boolean,reflect:!0})],br.prototype,"checked",2),n([l({type:Boolean,reflect:!0})],br.prototype,"indeterminate",2);var ga=br;ga.register(Xn);var lm=ga;ba.register(qn);var cm=ba;var dm=u`
1550
1550
  :host {
1551
1551
  cursor: pointer;
1552
1552
  user-select: none;
@@ -1595,7 +1595,7 @@
1595
1595
  :host([disabled])::part(image){
1596
1596
  opacity: 0.5;
1597
1597
  }
1598
- `,$n=[Yd,..._()];var ur=class extends P(Le(Ee)){constructor(){super();this.checked=!1;this.name="";this.addEventListener("click",this.toggleChecked),this.addEventListener("keydown",this.toggleOnEnter),this.addEventListener("keyup",this.toggleOnSpace)}connectedCallback(){super.connectedCallback(),this.role="radio"}getAllCardsWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-cardradio[name="${this.name}"]`))}toggleChecked(){if(this.disabled)return;this.getAllCardsWithinSameGroup().forEach(r=>{r.checked=!1}),this.checked=!0}update(e){super.update(e),e.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),e.has("disabled")&&this.setAttribute("aria-disabled",`${this.disabled}`)}toggleOnEnter(e){e.key==="Enter"&&this.toggleChecked()}toggleOnSpace(e){e.key===" "&&this.toggleChecked()}renderHeader(){return this.cardTitle?m`<div part="header">
1598
+ `,jn=[dm,..._()];var gr=class extends P(Re(Ae)){constructor(){super();this.checked=!1;this.name="";this.addEventListener("click",this.toggleChecked),this.addEventListener("keydown",this.toggleOnEnter),this.addEventListener("keyup",this.toggleOnSpace)}connectedCallback(){super.connectedCallback(),this.role="radio"}getAllCardsWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-cardradio[name="${this.name}"]`))}toggleChecked(){if(this.disabled)return;this.getAllCardsWithinSameGroup().forEach(r=>{r.checked=!1}),this.checked=!0}update(e){super.update(e),e.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),e.has("disabled")&&this.setAttribute("aria-disabled",`${this.disabled}`)}toggleOnEnter(e){e.key==="Enter"&&this.toggleChecked()}toggleOnSpace(e){e.key===" "&&this.toggleChecked()}renderHeader(){return this.cardTitle?m`<div part="header">
1599
1599
  ${this.renderIcon()}
1600
1600
  ${this.renderTitle()}
1601
1601
  <mdc-staticradio part="check"
@@ -1609,7 +1609,7 @@
1609
1609
  <slot name="body"></slot>
1610
1610
  <slot name="after-body"></slot>
1611
1611
  </div>
1612
- `}};ur.styles=[...Ee.styles,...$n],n([c({type:Boolean,reflect:!0})],ur.prototype,"checked",2),n([c({type:String})],ur.prototype,"name",2);var sa=ur;var qo=f.constructTagName("cardradio");var Wd=[u`
1612
+ `}};gr.styles=[...Ae.styles,...jn],n([l({type:Boolean,reflect:!0})],gr.prototype,"checked",2),n([l({type:String})],gr.prototype,"name",2);var va=gr;var oi=f.constructTagName("cardradio");var mm=[u`
1613
1613
  :host{
1614
1614
  display: block;
1615
1615
  position: relative;
@@ -1692,9 +1692,9 @@
1692
1692
  :host([readonly][checked]) .icon:after{
1693
1693
  background-color: var(--mdc-staticradio-text-disabled-color);
1694
1694
  }
1695
- `],zn=Wd;var fr=class extends P(v){constructor(){super(...arguments);this.checked=!1;this.readonly=!1}render(){return m`
1695
+ `],Qn=mm;var vr=class extends P(v){constructor(){super(...arguments);this.checked=!1;this.readonly=!1}render(){return m`
1696
1696
  <slot></slot>
1697
- <span part="radio-icon" class="icon"></span>`}};fr.styles=[...v.styles,...zn],n([c({type:Boolean,reflect:!0})],fr.prototype,"checked",2),n([c({type:Boolean,reflect:!0})],fr.prototype,"readonly",2);var na=fr;var Pn=f.constructTagName("staticradio");na.register(Pn);var qd=na;sa.register(qo);var Kd=sa;var U=i=>{class t extends i{constructor(){super(...arguments);this.dataAriaLabel=null}}return n([c({type:String,reflect:!0,attribute:"data-aria-label"})],t.prototype,"dataAriaLabel",2),t};var K=[];for(let i=0;i<256;++i)K.push((i+256).toString(16).slice(1));function Vn(i,t=0){return(K[i[t+0]]+K[i[t+1]]+K[i[t+2]]+K[i[t+3]]+"-"+K[i[t+4]]+K[i[t+5]]+"-"+K[i[t+6]]+K[i[t+7]]+"-"+K[i[t+8]]+K[i[t+9]]+"-"+K[i[t+10]]+K[i[t+11]]+K[i[t+12]]+K[i[t+13]]+K[i[t+14]]+K[i[t+15]]).toLowerCase()}var la,Zd=new Uint8Array(16);function ca(){if(!la){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");la=crypto.getRandomValues.bind(crypto)}return la(Zd)}var Xd=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),da={randomUUID:Xd};function jd(i,t,e){var o,a,s;if(da.randomUUID&&!t&&!i)return da.randomUUID();i=i||{};let r=(s=(a=i.random)!=null?a:(o=i.rng)==null?void 0:o.call(i))!=null?s:ca();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(e=e||0,e<0||e+16>t.length)throw new RangeError(`UUID byte range ${e}:${e+15} is out of buffer bounds`);for(let l=0;l<16;++l)t[e+l]=r[l];return t}return Vn(r)}var We=jd;var ne=i=>{class t extends i{constructor(){super(...arguments);this.name="";this.value="";this.internals=this.attachInternals()}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}connectedCallback(){super.connectedCallback(),this.id=`mdc-input-${We()}`}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return t.formAssociated=!0,n([c({reflect:!0,type:String})],t.prototype,"name",2),n([c({reflect:!0,type:String})],t.prototype,"value",2),n([c({reflect:!0,type:String,attribute:"validation-message"})],t.prototype,"validationMessage",2),n([Fe("input")],t.prototype,"inputElement",2),t};var Un=f.constructTagName("formfieldwrapper"),W={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},V={VALIDATION:W.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id"},It={TAGNAME:w.SPAN,TYPE:S.BODY_MIDSIZE_REGULAR,HEADER_TYPE:S.BODY_MIDSIZE_BOLD};var Qd=[N,u`
1697
+ <span part="radio-icon" class="icon"></span>`}};vr.styles=[...v.styles,...Qn],n([l({type:Boolean,reflect:!0})],vr.prototype,"checked",2),n([l({type:Boolean,reflect:!0})],vr.prototype,"readonly",2);var ya=vr;var Jn=f.constructTagName("staticradio");ya.register(Jn);var pm=ya;va.register(oi);var hm=va;var V=i=>{class t extends i{constructor(){super(...arguments);this.dataAriaLabel=null}}return n([l({type:String,reflect:!0,attribute:"data-aria-label"})],t.prototype,"dataAriaLabel",2),t};var X=[];for(let i=0;i<256;++i)X.push((i+256).toString(16).slice(1));function el(i,t=0){return(X[i[t+0]]+X[i[t+1]]+X[i[t+2]]+X[i[t+3]]+"-"+X[i[t+4]]+X[i[t+5]]+"-"+X[i[t+6]]+X[i[t+7]]+"-"+X[i[t+8]]+X[i[t+9]]+"-"+X[i[t+10]]+X[i[t+11]]+X[i[t+12]]+X[i[t+13]]+X[i[t+14]]+X[i[t+15]]).toLowerCase()}var xa,um=new Uint8Array(16);function Ea(){if(!xa){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");xa=crypto.getRandomValues.bind(crypto)}return xa(um)}var fm=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Ta={randomUUID:fm};function bm(i,t,e){var o,a,s;if(Ta.randomUUID&&!t&&!i)return Ta.randomUUID();i=i||{};let r=(s=(a=i.random)!=null?a:(o=i.rng)==null?void 0:o.call(i))!=null?s:Ea();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(e=e||0,e<0||e+16>t.length)throw new RangeError(`UUID byte range ${e}:${e+15} is out of buffer bounds`);for(let c=0;c<16;++c)t[e+c]=r[c];return t}return el(r)}var qe=bm;var ce=i=>{class t extends i{constructor(){super(...arguments);this.name="";this.value="";this.internals=this.attachInternals()}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}connectedCallback(){super.connectedCallback(),this.id=`mdc-input-${qe()}`}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return t.formAssociated=!0,n([l({reflect:!0,type:String})],t.prototype,"name",2),n([l({reflect:!0,type:String})],t.prototype,"value",2),n([l({reflect:!0,type:String,attribute:"validation-message"})],t.prototype,"validationMessage",2),n([Be("input")],t.prototype,"inputElement",2),t};var tl=f.constructTagName("formfieldwrapper"),q={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},U={VALIDATION:q.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id"},Nt={TAGNAME:C.SPAN,TYPE:E.BODY_MIDSIZE_REGULAR,HEADER_TYPE:E.BODY_MIDSIZE_BOLD};var gm=[w,u`
1698
1698
  :host {
1699
1699
  flex-direction: column;
1700
1700
  align-items: flex-start;
@@ -1747,22 +1747,22 @@
1747
1747
  :host([help-text-type='priority']) .mdc-help-text {
1748
1748
  color: var(--mds-color-theme-text-accent-normal);
1749
1749
  }
1750
- `],Fn=Qd;var Bn=i=>({[W.ERROR]:"error-legacy-badge-filled",[W.WARNING]:"warning-badge-filled",[W.SUCCESS]:"check-circle-badge-filled",[W.PRIORITY]:"priority-badge-filled",[W.DEFAULT]:""})[i]||"";var qe=class extends P(v){constructor(){super(...arguments);this.id="";this.helpTextType=V.VALIDATION;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?m`<label for="${this.id}" id="${V.HEADING_ID}" class="mdc-label" part="label">${this.label}</label>`:m` <mdc-text
1751
- id="${V.HEADING_ID}"
1752
- tagname="${It.TAGNAME}"
1753
- type="${It.HEADER_TYPE}"
1750
+ `],rl=gm;var ol=i=>({[q.ERROR]:"error-legacy-badge-filled",[q.WARNING]:"warning-badge-filled",[q.SUCCESS]:"check-circle-badge-filled",[q.PRIORITY]:"priority-badge-filled",[q.DEFAULT]:""})[i]||"";var Ke=class extends P(v){constructor(){super(...arguments);this.id="";this.helpTextType=U.VALIDATION;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?m`<label for="${this.id}" id="${U.HEADING_ID}" class="mdc-label" part="label">${this.label}</label>`:m` <mdc-text
1751
+ id="${U.HEADING_ID}"
1752
+ tagname="${Nt.TAGNAME}"
1753
+ type="${Nt.HEADER_TYPE}"
1754
1754
  part="label"
1755
1755
  >${this.label}</mdc-text
1756
1756
  >`:g}renderRequiredLabel(){return this.requiredLabel?m`
1757
- <mdc-text part="required-label" tagname=${It.TAGNAME} type=${It.TYPE}>
1757
+ <mdc-text part="required-label" tagname=${Nt.TAGNAME} type=${Nt.TYPE}>
1758
1758
  (${this.requiredLabel})
1759
1759
  </mdc-text>
1760
- `:g}renderHelpTextIcon(){if(!this.helpText)return g;let e=Bn(this.helpTextType||V.VALIDATION);return e&&!this.disabled?m`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${e}></mdc-icon>`:g}renderHelpText(){return this.helpText?m`
1760
+ `:g}renderHelpTextIcon(){if(!this.helpText)return g;let e=ol(this.helpTextType||U.VALIDATION);return e&&!this.disabled?m`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${e}></mdc-icon>`:g}renderHelpText(){return this.helpText?m`
1761
1761
  <mdc-text
1762
- id="${V.HELPER_TEXT_ID}"
1762
+ id="${U.HELPER_TEXT_ID}"
1763
1763
  part="help-text"
1764
- tagname=${It.TAGNAME}
1765
- type=${It.TYPE}
1764
+ tagname=${Nt.TAGNAME}
1765
+ type=${Nt.TYPE}
1766
1766
  >
1767
1767
  ${this.helpText}
1768
1768
  </mdc-text>
@@ -1773,7 +1773,7 @@
1773
1773
  </div>`:g}renderHelperText(){return this.helpText?m`<div class="mdc-help-text" part="mdc-help-text">
1774
1774
  <slot name="help-icon">${this.renderHelpTextIcon()}</slot>
1775
1775
  <slot name="help-text">${this.renderHelpText()}</slot>
1776
- </div>`:g}};qe.styles=[...v.styles,...Fn],n([c({reflect:!0,type:String})],qe.prototype,"label",2),n([c({type:String,reflect:!0,attribute:"required-label"})],qe.prototype,"requiredLabel",2),n([c({type:String})],qe.prototype,"id",2),n([c({reflect:!0,attribute:"help-text-type"})],qe.prototype,"helpTextType",2),n([c({type:String,reflect:!0,attribute:"help-text"})],qe.prototype,"helpText",2);var J=qe;var Jd=[u`
1776
+ </div>`:g}};Ke.styles=[...v.styles,...rl],n([l({reflect:!0,type:String})],Ke.prototype,"label",2),n([l({type:String,reflect:!0,attribute:"required-label"})],Ke.prototype,"requiredLabel",2),n([l({type:String})],Ke.prototype,"id",2),n([l({reflect:!0,attribute:"help-text-type"})],Ke.prototype,"helpTextType",2),n([l({type:String,reflect:!0,attribute:"help-text"})],Ke.prototype,"helpText",2);var te=Ke;var vm=[u`
1777
1777
  :host {
1778
1778
  --mdc-checkbox-background-color-hover: var(--mds-color-theme-control-inactive-hover);
1779
1779
  --mdc-checkbox-pressed-icon-color: var(--mds-color-theme-control-inactive-pressed);
@@ -1840,7 +1840,7 @@
1840
1840
  }
1841
1841
 
1842
1842
 
1843
- `,..._(!0)],Hn=Jd;var Ct=class extends ne(U(J)){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?m`<div class="text-container">
1843
+ `,..._(!0)],il=vm;var wt=class extends ce(V(te)){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?m`<div class="text-container">
1844
1844
  ${this.renderLabel()}
1845
1845
  ${this.renderHelperText()}
1846
1846
  </div>`:g}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}setFormValue(){let e=null;this.checked?e=this.value?this.value:"on":e=null,this.manageRequired(),this.internals.setFormValue(e)}manageRequired(){!this.checked&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.checked=!1,this.indeterminate=!1}formStateRestoreCallback(e){e&&(this.checked=!0)}toggleState(){this.disabled||(this.checked=!this.checked,this.indeterminate=!1)}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}handleChange(e){this.toggleState();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}update(e){super.update(e),e.has("checked")&&this.setFormValue()}render(){var e;return m`
@@ -1854,8 +1854,8 @@
1854
1854
  type="checkbox"
1855
1855
  class="input"
1856
1856
  ?autofocus="${this.autofocus}"
1857
- name="${T(this.name)}"
1858
- value="${T(this.value)}"
1857
+ name="${A(this.name)}"
1858
+ value="${A(this.value)}"
1859
1859
  ?required="${!!this.requiredLabel}"
1860
1860
  .checked="${this.checked}"
1861
1861
  aria-checked="${this.indeterminate?"mixed":this.checked}"
@@ -1863,13 +1863,13 @@
1863
1863
  .disabled="${this.disabled}"
1864
1864
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
1865
1865
  tabindex="${this.disabled?-1:0}"
1866
- aria-describedby="${T(this.helpText?V.HELPER_TEXT_ID:"")}"
1866
+ aria-describedby="${A(this.helpText?U.HELPER_TEXT_ID:"")}"
1867
1867
  @change=${this.handleChange}
1868
1868
  @keydown=${this.handleKeyDown}
1869
1869
  />
1870
1870
  </mdc-staticcheckbox>
1871
1871
  ${this.renderLabelAndHelperText()}
1872
- `}};Ct.styles=[...J.styles,...Hn],n([c({type:Boolean,reflect:!0})],Ct.prototype,"checked",2),n([c({type:Boolean,reflect:!0})],Ct.prototype,"indeterminate",2),n([c({type:Boolean,reflect:!0})],Ct.prototype,"autofocus",2);var ma=Ct;ma.register(Mn);var em=ma;var tm=u`
1872
+ `}};wt.styles=[...te.styles,...il],n([l({type:Boolean,reflect:!0})],wt.prototype,"checked",2),n([l({type:Boolean,reflect:!0})],wt.prototype,"indeterminate",2),n([l({type:Boolean,reflect:!0})],wt.prototype,"autofocus",2);var Aa=wt;Aa.register(Zn);var ym=Aa;var xm=u`
1873
1873
  :host {
1874
1874
  height: 1.5rem;
1875
1875
  gap: 0.25rem;
@@ -2006,15 +2006,15 @@
2006
2006
  --mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
2007
2007
  cursor: auto;
2008
2008
  }
2009
- `,Gn=[N,tm,..._()];var Yn=f.constructTagName("chip"),rm={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},br={COLOR:rm.DEFAULT,TEXT_TYPE:S.BODY_MIDSIZE_REGULAR,TAG_NAME:w.SPAN,SIZE:Pr[24],ROLE:"button"};var gr=class extends ie(oe){constructor(){super(...arguments);this.color=br.COLOR;this.label=""}connectedCallback(){super.connectedCallback(),this.role=br.ROLE,this.size=br.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?m`
2009
+ `,al=[w,xm,..._()];var sl=f.constructTagName("chip"),Em={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},yr={COLOR:Em.DEFAULT,TEXT_TYPE:E.BODY_MIDSIZE_REGULAR,TAG_NAME:C.SPAN,SIZE:Br[24],ROLE:"button"};var xr=class extends ne(se){constructor(){super(...arguments);this.color=yr.COLOR;this.label=""}connectedCallback(){super.connectedCallback(),this.role=yr.ROLE,this.size=yr.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?m`
2010
2010
  <mdc-icon
2011
2011
  name="${this.iconName}"
2012
2012
  length-unit="rem"
2013
2013
  size="1"></mdc-icon>
2014
2014
  `:g}render(){return m`
2015
2015
  ${this.renderIcon()}
2016
- <mdc-text type="${br.TEXT_TYPE}" tagname="${br.TAG_NAME}">${this.label}</mdc-text>
2017
- `}};gr.styles=[...v.styles,...Gn],n([c({type:String,reflect:!0})],gr.prototype,"color",2),n([c({type:String})],gr.prototype,"label",2);var vr=gr;vr.register(Yn);var om=vr;var Me=Math.min,ee=Math.max,jr=Math.round,Qr=Math.floor,Te=i=>({x:i,y:i}),im={left:"right",right:"left",bottom:"top",top:"bottom"},am={start:"end",end:"start"};function Zo(i,t,e){return ee(i,Me(t,e))}function kt(i,t){return typeof i=="function"?i(t):i}function Ke(i){return i.split("-")[0]}function wt(i){return i.split("-")[1]}function pa(i){return i==="x"?"y":"x"}function Xo(i){return i==="y"?"height":"width"}function ct(i){return["top","bottom"].includes(Ke(i))?"y":"x"}function jo(i){return pa(ct(i))}function Wn(i,t,e){e===void 0&&(e=!1);let r=wt(i),o=jo(i),a=Xo(o),s=o==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Xr(s)),[s,Xr(s)]}function qn(i){let t=Xr(i);return[Ko(i),t,Ko(t)]}function Ko(i){return i.replace(/start|end/g,t=>am[t])}function sm(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 Kn(i,t,e,r){let o=wt(i),a=sm(Ke(i),e==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Ko)))),a}function Xr(i){return i.replace(/left|right|bottom|top/g,t=>im[t])}function nm(i){return{top:0,right:0,bottom:0,left:0,...i}}function ha(i){return typeof i!="number"?nm(i):{top:i,right:i,bottom:i,left:i}}function Nt(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 Zn(i,t,e){let{reference:r,floating:o}=i,a=ct(t),s=jo(t),l=Xo(s),d=Ke(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(wt(t)){case"start":y[s]-=x*(e&&p?-1:1);break;case"end":y[s]+=x*(e&&p?-1:1);break}return y}var Xn=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}=Zn(p,r,d),x=r,y={},E=0;for(let A=0;A<l.length;A++){let{name:C,fn:I}=l[A],{x:k,y:O,data:H,reset:z}=await I({x:h,y:b,initialPlacement:r,placement:x,strategy:o,middlewareData:y,rects:p,platform:s,elements:{reference:i,floating:t}});h=k!=null?k:h,b=O!=null?O:b,y={...y,[C]:{...y[C],...H}},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}=Zn(p,x,d)),A=-1)}return{x:h,y:b,placement:x,strategy:o,middlewareData:y}};async function Qo(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}=kt(t,i),E=ha(y),C=l[x?b==="floating"?"reference":"floating":b],I=Nt(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement(C)))==null||e?C:C.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:h,strategy:d})),k=b==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,O=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),H=await(a.isElement==null?void 0:a.isElement(O))?await(a.getScale==null?void 0:a.getScale(O))||{x:1,y:1}:{x:1,y:1},z=Nt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:k,offsetParent:O,strategy:d}):k);return{top:(I.top-z.top+E.top)/H.y,bottom:(z.bottom-I.bottom+E.bottom)/H.y,left:(I.left-z.left+E.left)/H.x,right:(z.right-I.right+E.right)/H.x}}var jn=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}=kt(i,t)||{};if(p==null)return{};let b=ha(h),x={x:e,y:r},y=jo(o),E=Xo(y),A=await s.getDimensions(p),C=y==="y",I=C?"top":"left",k=C?"bottom":"right",O=C?"clientHeight":"clientWidth",H=a.reference[E]+a.reference[y]-x[y]-a.floating[E],z=x[y]-a.reference[y],ue=await(s.getOffsetParent==null?void 0:s.getOffsetParent(p)),ve=ue?ue[O]:0;(!ve||!await(s.isElement==null?void 0:s.isElement(ue)))&&(ve=l.floating[O]||a.floating[E]);let De=H/2-z/2,we=ve/2-A[E]/2-1,ye=Me(b[I],we),Je=Me(b[k],we),Ne=ye,et=ve-A[E]-Je,j=ve/2-A[E]/2+De,Zt=Zo(Ne,j,et),$e=!d.arrow&&wt(o)!=null&&j!==Zt&&a.reference[E]/2-(j<Ne?ye:Je)-A[E]/2<0,_e=$e?j<Ne?j-Ne:j-et:0;return{[y]:x[y]+_e,data:{[y]:Zt,centerOffset:j-Zt-_e,...$e&&{alignmentOffset:_e}},reset:$e}}});var Qn=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,...C}=kt(i,t);if((e=a.arrow)!=null&&e.alignmentOffset)return{};let I=Ke(o),k=ct(l),O=Ke(l)===l,H=await(d.isRTL==null?void 0:d.isRTL(p.floating)),z=x||(O||!A?[Xr(l)]:qn(l)),ue=E!=="none";!x&&ue&&z.push(...Kn(l,A,E,H));let ve=[l,...z],De=await Qo(t,C),we=[],ye=((r=a.flip)==null?void 0:r.overflows)||[];if(h&&we.push(De[I]),b){let j=Wn(o,s,H);we.push(De[j[0]],De[j[1]])}if(ye=[...ye,{placement:o,overflows:we}],!we.every(j=>j<=0)){var Je,Ne;let j=(((Je=a.flip)==null?void 0:Je.index)||0)+1,Zt=ve[j];if(Zt)return{data:{index:j,overflows:ye},reset:{placement:Zt}};let $e=(Ne=ye.filter(_e=>_e.overflows[0]<=0).sort((_e,tt)=>_e.overflows[1]-tt.overflows[1])[0])==null?void 0:Ne.placement;if(!$e)switch(y){case"bestFit":{var et;let _e=(et=ye.filter(tt=>{if(ue){let rt=ct(tt.placement);return rt===k||rt==="y"}return!0}).map(tt=>[tt.placement,tt.overflows.filter(rt=>rt>0).reduce((rt,Gc)=>rt+Gc,0)]).sort((tt,rt)=>tt[1]-rt[1])[0])==null?void 0:et[0];_e&&($e=_e);break}case"initialPlacement":$e=l;break}if(o!==$e)return{reset:{placement:$e}}}return{}}}};async function lm(i,t){let{placement:e,platform:r,elements:o}=i,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Ke(e),l=wt(e),d=ct(e)==="y",p=["left","top"].includes(s)?-1:1,h=a&&d?-1:1,b=kt(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 Jn=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 lm(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}}}}},el=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:C=>{let{x:I,y:k}=C;return{x:I,y:k}}},...d}=kt(i,t),p={x:e,y:r},h=await Qo(t,d),b=ct(Ke(o)),x=pa(b),y=p[x],E=p[b];if(a){let C=x==="y"?"top":"left",I=x==="y"?"bottom":"right",k=y+h[C],O=y-h[I];y=Zo(k,y,O)}if(s){let C=b==="y"?"top":"left",I=b==="y"?"bottom":"right",k=E+h[C],O=E-h[I];E=Zo(k,E,O)}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 tl=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}=kt(i,t),h=await Qo(t,p),b=Ke(o),x=wt(o),y=ct(o)==="y",{width:E,height:A}=a.floating,C,I;b==="top"||b==="bottom"?(C=b,I=x===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(I=b,C=x==="end"?"top":"bottom");let k=A-h.top-h.bottom,O=E-h.left-h.right,H=Me(A-h[C],k),z=Me(E-h[I],O),ue=!t.middlewareData.shift,ve=H,De=z;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&(De=O),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(ve=k),ue&&!x){let ye=ee(h.left,0),Je=ee(h.right,0),Ne=ee(h.top,0),et=ee(h.bottom,0);y?De=E-2*(ye!==0||Je!==0?ye+Je:ee(h.left,h.right)):ve=A-2*(Ne!==0||et!==0?Ne+et:ee(h.top,h.bottom))}await d({...t,availableWidth:De,availableHeight:ve});let we=await s.getDimensions(l.floating);return E!==we.width||A!==we.height?{reset:{rects:!0}}:{}}}};function Jo(){return typeof window<"u"}function _t(i){return ol(i)?(i.nodeName||"").toLowerCase():"#document"}function le(i){var t;return(i==null||(t=i.ownerDocument)==null?void 0:t.defaultView)||window}function Ae(i){var t;return(t=(ol(i)?i.ownerDocument:i.document)||window.document)==null?void 0:t.documentElement}function ol(i){return Jo()?i instanceof Node||i instanceof le(i).Node:!1}function fe(i){return Jo()?i instanceof Element||i instanceof le(i).Element:!1}function Se(i){return Jo()?i instanceof HTMLElement||i instanceof le(i).HTMLElement:!1}function rl(i){return!Jo()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof le(i).ShadowRoot}function xr(i){let{overflow:t,overflowX:e,overflowY:r,display:o}=be(i);return/auto|scroll|overlay|hidden|clip/.test(t+r+e)&&!["inline","contents"].includes(o)}function il(i){return["table","td","th"].includes(_t(i))}function Jr(i){return[":popover-open",":modal"].some(t=>{try{return i.matches(t)}catch{return!1}})}function ei(i){let t=ti(),e=fe(i)?be(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 al(i){let t=Ze(i);for(;Se(t)&&!Lt(t);){if(ei(t))return t;if(Jr(t))return null;t=Ze(t)}return null}function ti(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Lt(i){return["html","body","#document"].includes(_t(i))}function be(i){return le(i).getComputedStyle(i)}function eo(i){return fe(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function Ze(i){if(_t(i)==="html")return i;let t=i.assignedSlot||i.parentNode||rl(i)&&i.host||Ae(i);return rl(t)?t.host:t}function sl(i){let t=Ze(i);return Lt(t)?i.ownerDocument?i.ownerDocument.body:i.body:Se(t)&&xr(t)?t:sl(t)}function yr(i,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);let o=sl(i),a=o===((r=i.ownerDocument)==null?void 0:r.body),s=le(o);if(a){let l=ri(s);return t.concat(s,s.visualViewport||[],xr(o)?o:[],l&&e?yr(l):[])}return t.concat(o,yr(o,[],e))}function ri(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function cl(i){let t=be(i),e=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=Se(i),a=o?i.offsetWidth:e,s=o?i.offsetHeight:r,l=jr(e)!==a||jr(r)!==s;return l&&(e=a,r=s),{width:e,height:r,$:l}}function fa(i){return fe(i)?i:i.contextElement}function Er(i){let t=fa(i);if(!Se(t))return Te(1);let e=t.getBoundingClientRect(),{width:r,height:o,$:a}=cl(t),s=(a?jr(e.width):e.width)/r,l=(a?jr(e.height):e.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var cm=Te(0);function dl(i){let t=le(i);return!ti()||!t.visualViewport?cm:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function dm(i,t,e){return t===void 0&&(t=!1),!e||t&&e!==le(i)?!1:t}function Rt(i,t,e,r){t===void 0&&(t=!1),e===void 0&&(e=!1);let o=i.getBoundingClientRect(),a=fa(i),s=Te(1);t&&(r?fe(r)&&(s=Er(r)):s=Er(i));let l=dm(a,e,r)?dl(a):Te(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=le(a),y=r&&fe(r)?le(r):r,E=x,A=ri(E);for(;A&&r&&y!==E;){let C=Er(A),I=A.getBoundingClientRect(),k=be(A),O=I.left+(A.clientLeft+parseFloat(k.paddingLeft))*C.x,H=I.top+(A.clientTop+parseFloat(k.paddingTop))*C.y;d*=C.x,p*=C.y,h*=C.x,b*=C.y,d+=O,p+=H,E=le(A),A=ri(E)}}return Nt({width:h,height:b,x:d,y:p})}function ba(i,t){let e=eo(i).scrollLeft;return t?t.left+e:Rt(Ae(i)).left+e}function ml(i,t,e){e===void 0&&(e=!1);let r=i.getBoundingClientRect(),o=r.left+t.scrollLeft-(e?0:ba(i,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function mm(i){let{elements:t,rect:e,offsetParent:r,strategy:o}=i,a=o==="fixed",s=Ae(r),l=t?Jr(t.floating):!1;if(r===s||l&&a)return e;let d={scrollLeft:0,scrollTop:0},p=Te(1),h=Te(0),b=Se(r);if((b||!b&&!a)&&((_t(r)!=="body"||xr(s))&&(d=eo(r)),Se(r))){let y=Rt(r);p=Er(r),h.x=y.x+r.clientLeft,h.y=y.y+r.clientTop}let x=s&&!b&&!a?ml(s,d,!0):Te(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 pm(i){return Array.from(i.getClientRects())}function hm(i){let t=Ae(i),e=eo(i),r=i.ownerDocument.body,o=ee(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ee(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+ba(i),l=-e.scrollTop;return be(r).direction==="rtl"&&(s+=ee(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:l}}function um(i,t){let e=le(i),r=Ae(i),o=e.visualViewport,a=r.clientWidth,s=r.clientHeight,l=0,d=0;if(o){a=o.width,s=o.height;let p=ti();(!p||p&&t==="fixed")&&(l=o.offsetLeft,d=o.offsetTop)}return{width:a,height:s,x:l,y:d}}function fm(i,t){let e=Rt(i,!0,t==="fixed"),r=e.top+i.clientTop,o=e.left+i.clientLeft,a=Se(i)?Er(i):Te(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 nl(i,t,e){let r;if(t==="viewport")r=um(i,e);else if(t==="document")r=hm(Ae(i));else if(fe(t))r=fm(t,e);else{let o=dl(i);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Nt(r)}function pl(i,t){let e=Ze(i);return e===t||!fe(e)||Lt(e)?!1:be(e).position==="fixed"||pl(e,t)}function bm(i,t){let e=t.get(i);if(e)return e;let r=yr(i,[],!1).filter(l=>fe(l)&&_t(l)!=="body"),o=null,a=be(i).position==="fixed",s=a?Ze(i):i;for(;fe(s)&&!Lt(s);){let l=be(s),d=ei(s);!d&&l.position==="fixed"&&(o=null),(a?!d&&!o:!d&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||xr(s)&&!d&&pl(i,s))?r=r.filter(h=>h!==s):o=l,s=Ze(s)}return t.set(i,r),r}function gm(i){let{element:t,boundary:e,rootBoundary:r,strategy:o}=i,s=[...e==="clippingAncestors"?Jr(t)?[]:bm(t,this._c):[].concat(e),r],l=s[0],d=s.reduce((p,h)=>{let b=nl(t,h,o);return p.top=ee(b.top,p.top),p.right=Me(b.right,p.right),p.bottom=Me(b.bottom,p.bottom),p.left=ee(b.left,p.left),p},nl(t,l,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function vm(i){let{width:t,height:e}=cl(i);return{width:t,height:e}}function ym(i,t,e){let r=Se(t),o=Ae(t),a=e==="fixed",s=Rt(i,!0,a,t),l={scrollLeft:0,scrollTop:0},d=Te(0);if(r||!r&&!a)if((_t(t)!=="body"||xr(o))&&(l=eo(t)),r){let x=Rt(t,!0,a,t);d.x=x.x+t.clientLeft,d.y=x.y+t.clientTop}else o&&(d.x=ba(o));let p=o&&!r&&!a?ml(o,l):Te(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 ua(i){return be(i).position==="static"}function ll(i,t){if(!Se(i)||be(i).position==="fixed")return null;if(t)return t(i);let e=i.offsetParent;return Ae(i)===e&&(e=e.ownerDocument.body),e}function hl(i,t){let e=le(i);if(Jr(i))return e;if(!Se(i)){let o=Ze(i);for(;o&&!Lt(o);){if(fe(o)&&!ua(o))return o;o=Ze(o)}return e}let r=ll(i,t);for(;r&&il(r)&&ua(r);)r=ll(r,t);return r&&Lt(r)&&ua(r)&&!ei(r)?e:r||al(i)||e}var xm=async function(i){let t=this.getOffsetParent||hl,e=this.getDimensions,r=await e(i.floating);return{reference:ym(i.reference,await t(i.floating),i.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Em(i){return be(i).direction==="rtl"}var Tm={convertOffsetParentRelativeRectToViewportRelativeRect:mm,getDocumentElement:Ae,getClippingRect:gm,getOffsetParent:hl,getElementRects:xm,getClientRects:pm,getDimensions:vm,getScale:Er,isElement:fe,isRTL:Em};function Am(i,t){let e=null,r,o=Ae(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=Qr(h),E=Qr(o.clientWidth-(p+b)),A=Qr(o.clientHeight-(h+x)),C=Qr(p),k={rootMargin:-y+"px "+-E+"px "+-A+"px "+-C+"px",threshold:ee(0,Me(1,d))||1},O=!0;function H(z){let ue=z[0].intersectionRatio;if(ue!==d){if(!O)return s();ue?s(!1,ue):r=setTimeout(()=>{s(!1,1e-7)},1e3)}O=!1}try{e=new IntersectionObserver(H,{...k,root:o.ownerDocument})}catch{e=new IntersectionObserver(H,k)}e.observe(i)}return s(!0),a}function ul(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=fa(i),h=o||a?[...p?yr(p):[],...yr(t)]:[];h.forEach(I=>{o&&I.addEventListener("scroll",e,{passive:!0}),a&&I.addEventListener("resize",e)});let b=p&&l?Am(p,e):null,x=-1,y=null;s&&(y=new ResizeObserver(I=>{let[k]=I;k&&k.target===p&&y&&(y.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var O;(O=y)==null||O.observe(t)})),e()}),p&&!d&&y.observe(p),y.observe(t));let E,A=d?Rt(i):null;d&&C();function C(){let I=Rt(i);A&&(I.x!==A.x||I.y!==A.y||I.width!==A.width||I.height!==A.height)&&e(),A=I,E=requestAnimationFrame(C)}return e(),()=>{var I;h.forEach(k=>{o&&k.removeEventListener("scroll",e),a&&k.removeEventListener("resize",e)}),b==null||b(),(I=y)==null||I.disconnect(),y=null,d&&cancelAnimationFrame(E)}}var fl=Jn;var bl=el,gl=Qn,vl=tl;var yl=jn;var xl=(i,t,e)=>{let r=new Map,o={platform:Tm,...e},a={...o.platform,_c:r};return Xn(i,t,{...o,platform:a})};var El=f.constructTagName("popover"),te={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"},Ot={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},to={TONAL:"tonal",CONTRAST:"contrast"},M={PLACEMENT:te.BOTTOM,TRIGGER:Ot.CLICK,COLOR:to.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 Tl=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 Mt=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 ga=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=[]}},Dt=new ga;var Sm=u`
2016
+ <mdc-text type="${yr.TEXT_TYPE}" tagname="${yr.TAG_NAME}">${this.label}</mdc-text>
2017
+ `}};xr.styles=[...v.styles,...al],n([l({type:String,reflect:!0})],xr.prototype,"color",2),n([l({type:String})],xr.prototype,"label",2);var Er=xr;Er.register(sl);var Tm=Er;var De=Math.min,re=Math.max,ro=Math.round,oo=Math.floor,Se=i=>({x:i,y:i}),Am={left:"right",right:"left",bottom:"top",top:"bottom"},Sm={start:"end",end:"start"};function ai(i,t,e){return re(i,De(t,e))}function _t(i,t){return typeof i=="function"?i(t):i}function Ze(i){return i.split("-")[0]}function Lt(i){return i.split("-")[1]}function Sa(i){return i==="x"?"y":"x"}function si(i){return i==="y"?"height":"width"}function pt(i){return["top","bottom"].includes(Ze(i))?"y":"x"}function ni(i){return Sa(pt(i))}function nl(i,t,e){e===void 0&&(e=!1);let r=Lt(i),o=ni(i),a=si(o),s=o==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=to(s)),[s,to(s)]}function ll(i){let t=to(i);return[ii(i),t,ii(t)]}function ii(i){return i.replace(/start|end/g,t=>Sm[t])}function Im(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 cl(i,t,e,r){let o=Lt(i),a=Im(Ze(i),e==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(ii)))),a}function to(i){return i.replace(/left|right|bottom|top/g,t=>Am[t])}function Cm(i){return{top:0,right:0,bottom:0,left:0,...i}}function Ia(i){return typeof i!="number"?Cm(i):{top:i,right:i,bottom:i,left:i}}function Rt(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 dl(i,t,e){let{reference:r,floating:o}=i,a=pt(t),s=ni(t),c=si(s),d=Ze(t),p=a==="y",h=r.x+r.width/2-o.width/2,b=r.y+r.height/2-o.height/2,x=r[c]/2-o[c]/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(Lt(t)){case"start":y[s]-=x*(e&&p?-1:1);break;case"end":y[s]+=x*(e&&p?-1:1);break}return y}var ml=async(i,t,e)=>{let{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=e,c=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}=dl(p,r,d),x=r,y={},T=0;for(let S=0;S<c.length;S++){let{name:k,fn:I}=c[S],{x:N,y:O,data:G,reset:z}=await I({x:h,y:b,initialPlacement:r,placement:x,strategy:o,middlewareData:y,rects:p,platform:s,elements:{reference:i,floating:t}});h=N!=null?N:h,b=O!=null?O:b,y={...y,[k]:{...y[k],...G}},z&&T<=50&&(T++,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}=dl(p,x,d)),S=-1)}return{x:h,y:b,placement:x,strategy:o,middlewareData:y}};async function li(i,t){var e;t===void 0&&(t={});let{x:r,y:o,platform:a,rects:s,elements:c,strategy:d}=i,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:b="floating",altBoundary:x=!1,padding:y=0}=_t(t,i),T=Ia(y),k=c[x?b==="floating"?"reference":"floating":b],I=Rt(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement(k)))==null||e?k:k.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:p,rootBoundary:h,strategy:d})),N=b==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,O=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),G=await(a.isElement==null?void 0:a.isElement(O))?await(a.getScale==null?void 0:a.getScale(O))||{x:1,y:1}:{x:1,y:1},z=Rt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:N,offsetParent:O,strategy:d}):N);return{top:(I.top-z.top+T.top)/G.y,bottom:(z.bottom-I.bottom+T.bottom)/G.y,left:(I.left-z.left+T.left)/G.x,right:(z.right-I.right+T.right)/G.x}}var pl=i=>({name:"arrow",options:i,async fn(t){let{x:e,y:r,placement:o,rects:a,platform:s,elements:c,middlewareData:d}=t,{element:p,padding:h=0}=_t(i,t)||{};if(p==null)return{};let b=Ia(h),x={x:e,y:r},y=ni(o),T=si(y),S=await s.getDimensions(p),k=y==="y",I=k?"top":"left",N=k?"bottom":"right",O=k?"clientHeight":"clientWidth",G=a.reference[T]+a.reference[y]-x[y]-a.floating[T],z=x[y]-a.reference[y],be=await(s.getOffsetParent==null?void 0:s.getOffsetParent(p)),xe=be?be[O]:0;(!xe||!await(s.isElement==null?void 0:s.isElement(be)))&&(xe=c.floating[O]||a.floating[T]);let $e=G/2-z/2,we=xe/2-S[T]/2-1,Ee=De(b[I],we),rt=De(b[N],we),_e=Ee,ot=xe-S[T]-rt,J=xe/2-S[T]/2+$e,Jt=ai(_e,J,ot),ze=!d.arrow&&Lt(o)!=null&&J!==Jt&&a.reference[T]/2-(J<_e?Ee:rt)-S[T]/2<0,Le=ze?J<_e?J-_e:J-ot:0;return{[y]:x[y]+Le,data:{[y]:Jt,centerOffset:J-Jt-Le,...ze&&{alignmentOffset:Le}},reset:ze}}});var hl=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:c,platform:d,elements:p}=t,{mainAxis:h=!0,crossAxis:b=!0,fallbackPlacements:x,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:S=!0,...k}=_t(i,t);if((e=a.arrow)!=null&&e.alignmentOffset)return{};let I=Ze(o),N=pt(c),O=Ze(c)===c,G=await(d.isRTL==null?void 0:d.isRTL(p.floating)),z=x||(O||!S?[to(c)]:ll(c)),be=T!=="none";!x&&be&&z.push(...cl(c,S,T,G));let xe=[c,...z],$e=await li(t,k),we=[],Ee=((r=a.flip)==null?void 0:r.overflows)||[];if(h&&we.push($e[I]),b){let J=nl(o,s,G);we.push($e[J[0]],$e[J[1]])}if(Ee=[...Ee,{placement:o,overflows:we}],!we.every(J=>J<=0)){var rt,_e;let J=(((rt=a.flip)==null?void 0:rt.index)||0)+1,Jt=xe[J];if(Jt)return{data:{index:J,overflows:Ee},reset:{placement:Jt}};let ze=(_e=Ee.filter(Le=>Le.overflows[0]<=0).sort((Le,it)=>Le.overflows[1]-it.overflows[1])[0])==null?void 0:_e.placement;if(!ze)switch(y){case"bestFit":{var ot;let Le=(ot=Ee.filter(it=>{if(be){let at=pt(it.placement);return at===N||at==="y"}return!0}).map(it=>[it.placement,it.overflows.filter(at=>at>0).reduce((at,cd)=>at+cd,0)]).sort((it,at)=>it[1]-at[1])[0])==null?void 0:ot[0];Le&&(ze=Le);break}case"initialPlacement":ze=c;break}if(o!==ze)return{reset:{placement:ze}}}return{}}}};async function km(i,t){let{placement:e,platform:r,elements:o}=i,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Ze(e),c=Lt(e),d=pt(e)==="y",p=["left","top"].includes(s)?-1:1,h=a&&d?-1:1,b=_t(t,i),{mainAxis:x,crossAxis:y,alignmentAxis:T}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return c&&typeof T=="number"&&(y=c==="end"?T*-1:T),d?{x:y*h,y:x*p}:{x:x*p,y:y*h}}var ul=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:c}=t,d=await km(t,i);return s===((e=c.offset)==null?void 0:e.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:a+d.y,data:{...d,placement:s}}}}},fl=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:c={fn:k=>{let{x:I,y:N}=k;return{x:I,y:N}}},...d}=_t(i,t),p={x:e,y:r},h=await li(t,d),b=pt(Ze(o)),x=Sa(b),y=p[x],T=p[b];if(a){let k=x==="y"?"top":"left",I=x==="y"?"bottom":"right",N=y+h[k],O=y-h[I];y=ai(N,y,O)}if(s){let k=b==="y"?"top":"left",I=b==="y"?"bottom":"right",N=T+h[k],O=T-h[I];T=ai(N,T,O)}let S=c.fn({...t,[x]:y,[b]:T});return{...S,data:{x:S.x-e,y:S.y-r,enabled:{[x]:a,[b]:s}}}}}};var bl=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:c}=t,{apply:d=()=>{},...p}=_t(i,t),h=await li(t,p),b=Ze(o),x=Lt(o),y=pt(o)==="y",{width:T,height:S}=a.floating,k,I;b==="top"||b==="bottom"?(k=b,I=x===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(I=b,k=x==="end"?"top":"bottom");let N=S-h.top-h.bottom,O=T-h.left-h.right,G=De(S-h[k],N),z=De(T-h[I],O),be=!t.middlewareData.shift,xe=G,$e=z;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&($e=O),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(xe=N),be&&!x){let Ee=re(h.left,0),rt=re(h.right,0),_e=re(h.top,0),ot=re(h.bottom,0);y?$e=T-2*(Ee!==0||rt!==0?Ee+rt:re(h.left,h.right)):xe=S-2*(_e!==0||ot!==0?_e+ot:re(h.top,h.bottom))}await d({...t,availableWidth:$e,availableHeight:xe});let we=await s.getDimensions(c.floating);return T!==we.width||S!==we.height?{reset:{rects:!0}}:{}}}};function ci(){return typeof window<"u"}function Ot(i){return vl(i)?(i.nodeName||"").toLowerCase():"#document"}function de(i){var t;return(i==null||(t=i.ownerDocument)==null?void 0:t.defaultView)||window}function Ie(i){var t;return(t=(vl(i)?i.ownerDocument:i.document)||window.document)==null?void 0:t.documentElement}function vl(i){return ci()?i instanceof Node||i instanceof de(i).Node:!1}function ge(i){return ci()?i instanceof Element||i instanceof de(i).Element:!1}function Ce(i){return ci()?i instanceof HTMLElement||i instanceof de(i).HTMLElement:!1}function gl(i){return!ci()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof de(i).ShadowRoot}function Ar(i){let{overflow:t,overflowX:e,overflowY:r,display:o}=ve(i);return/auto|scroll|overlay|hidden|clip/.test(t+r+e)&&!["inline","contents"].includes(o)}function yl(i){return["table","td","th"].includes(Ot(i))}function io(i){return[":popover-open",":modal"].some(t=>{try{return i.matches(t)}catch{return!1}})}function di(i){let t=mi(),e=ge(i)?ve(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 xl(i){let t=Xe(i);for(;Ce(t)&&!Mt(t);){if(di(t))return t;if(io(t))return null;t=Xe(t)}return null}function mi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Mt(i){return["html","body","#document"].includes(Ot(i))}function ve(i){return de(i).getComputedStyle(i)}function ao(i){return ge(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function Xe(i){if(Ot(i)==="html")return i;let t=i.assignedSlot||i.parentNode||gl(i)&&i.host||Ie(i);return gl(t)?t.host:t}function El(i){let t=Xe(i);return Mt(t)?i.ownerDocument?i.ownerDocument.body:i.body:Ce(t)&&Ar(t)?t:El(t)}function Tr(i,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);let o=El(i),a=o===((r=i.ownerDocument)==null?void 0:r.body),s=de(o);if(a){let c=pi(s);return t.concat(s,s.visualViewport||[],Ar(o)?o:[],c&&e?Tr(c):[])}return t.concat(o,Tr(o,[],e))}function pi(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function Sl(i){let t=ve(i),e=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=Ce(i),a=o?i.offsetWidth:e,s=o?i.offsetHeight:r,c=ro(e)!==a||ro(r)!==s;return c&&(e=a,r=s),{width:e,height:r,$:c}}function ka(i){return ge(i)?i:i.contextElement}function Sr(i){let t=ka(i);if(!Ce(t))return Se(1);let e=t.getBoundingClientRect(),{width:r,height:o,$:a}=Sl(t),s=(a?ro(e.width):e.width)/r,c=(a?ro(e.height):e.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var Nm=Se(0);function Il(i){let t=de(i);return!mi()||!t.visualViewport?Nm:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wm(i,t,e){return t===void 0&&(t=!1),!e||t&&e!==de(i)?!1:t}function Dt(i,t,e,r){t===void 0&&(t=!1),e===void 0&&(e=!1);let o=i.getBoundingClientRect(),a=ka(i),s=Se(1);t&&(r?ge(r)&&(s=Sr(r)):s=Sr(i));let c=wm(a,e,r)?Il(a):Se(0),d=(o.left+c.x)/s.x,p=(o.top+c.y)/s.y,h=o.width/s.x,b=o.height/s.y;if(a){let x=de(a),y=r&&ge(r)?de(r):r,T=x,S=pi(T);for(;S&&r&&y!==T;){let k=Sr(S),I=S.getBoundingClientRect(),N=ve(S),O=I.left+(S.clientLeft+parseFloat(N.paddingLeft))*k.x,G=I.top+(S.clientTop+parseFloat(N.paddingTop))*k.y;d*=k.x,p*=k.y,h*=k.x,b*=k.y,d+=O,p+=G,T=de(S),S=pi(T)}}return Rt({width:h,height:b,x:d,y:p})}function Na(i,t){let e=ao(i).scrollLeft;return t?t.left+e:Dt(Ie(i)).left+e}function Cl(i,t,e){e===void 0&&(e=!1);let r=i.getBoundingClientRect(),o=r.left+t.scrollLeft-(e?0:Na(i,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function _m(i){let{elements:t,rect:e,offsetParent:r,strategy:o}=i,a=o==="fixed",s=Ie(r),c=t?io(t.floating):!1;if(r===s||c&&a)return e;let d={scrollLeft:0,scrollTop:0},p=Se(1),h=Se(0),b=Ce(r);if((b||!b&&!a)&&((Ot(r)!=="body"||Ar(s))&&(d=ao(r)),Ce(r))){let y=Dt(r);p=Sr(r),h.x=y.x+r.clientLeft,h.y=y.y+r.clientTop}let x=s&&!b&&!a?Cl(s,d,!0):Se(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 Lm(i){return Array.from(i.getClientRects())}function Rm(i){let t=Ie(i),e=ao(i),r=i.ownerDocument.body,o=re(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=re(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+Na(i),c=-e.scrollTop;return ve(r).direction==="rtl"&&(s+=re(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:c}}function Om(i,t){let e=de(i),r=Ie(i),o=e.visualViewport,a=r.clientWidth,s=r.clientHeight,c=0,d=0;if(o){a=o.width,s=o.height;let p=mi();(!p||p&&t==="fixed")&&(c=o.offsetLeft,d=o.offsetTop)}return{width:a,height:s,x:c,y:d}}function Mm(i,t){let e=Dt(i,!0,t==="fixed"),r=e.top+i.clientTop,o=e.left+i.clientLeft,a=Ce(i)?Sr(i):Se(1),s=i.clientWidth*a.x,c=i.clientHeight*a.y,d=o*a.x,p=r*a.y;return{width:s,height:c,x:d,y:p}}function Tl(i,t,e){let r;if(t==="viewport")r=Om(i,e);else if(t==="document")r=Rm(Ie(i));else if(ge(t))r=Mm(t,e);else{let o=Il(i);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Rt(r)}function kl(i,t){let e=Xe(i);return e===t||!ge(e)||Mt(e)?!1:ve(e).position==="fixed"||kl(e,t)}function Dm(i,t){let e=t.get(i);if(e)return e;let r=Tr(i,[],!1).filter(c=>ge(c)&&Ot(c)!=="body"),o=null,a=ve(i).position==="fixed",s=a?Xe(i):i;for(;ge(s)&&!Mt(s);){let c=ve(s),d=di(s);!d&&c.position==="fixed"&&(o=null),(a?!d&&!o:!d&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ar(s)&&!d&&kl(i,s))?r=r.filter(h=>h!==s):o=c,s=Xe(s)}return t.set(i,r),r}function $m(i){let{element:t,boundary:e,rootBoundary:r,strategy:o}=i,s=[...e==="clippingAncestors"?io(t)?[]:Dm(t,this._c):[].concat(e),r],c=s[0],d=s.reduce((p,h)=>{let b=Tl(t,h,o);return p.top=re(b.top,p.top),p.right=De(b.right,p.right),p.bottom=De(b.bottom,p.bottom),p.left=re(b.left,p.left),p},Tl(t,c,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function zm(i){let{width:t,height:e}=Sl(i);return{width:t,height:e}}function Pm(i,t,e){let r=Ce(t),o=Ie(t),a=e==="fixed",s=Dt(i,!0,a,t),c={scrollLeft:0,scrollTop:0},d=Se(0);if(r||!r&&!a)if((Ot(t)!=="body"||Ar(o))&&(c=ao(t)),r){let x=Dt(t,!0,a,t);d.x=x.x+t.clientLeft,d.y=x.y+t.clientTop}else o&&(d.x=Na(o));let p=o&&!r&&!a?Cl(o,c):Se(0),h=s.left+c.scrollLeft-d.x-p.x,b=s.top+c.scrollTop-d.y-p.y;return{x:h,y:b,width:s.width,height:s.height}}function Ca(i){return ve(i).position==="static"}function Al(i,t){if(!Ce(i)||ve(i).position==="fixed")return null;if(t)return t(i);let e=i.offsetParent;return Ie(i)===e&&(e=e.ownerDocument.body),e}function Nl(i,t){let e=de(i);if(io(i))return e;if(!Ce(i)){let o=Xe(i);for(;o&&!Mt(o);){if(ge(o)&&!Ca(o))return o;o=Xe(o)}return e}let r=Al(i,t);for(;r&&yl(r)&&Ca(r);)r=Al(r,t);return r&&Mt(r)&&Ca(r)&&!di(r)?e:r||xl(i)||e}var Um=async function(i){let t=this.getOffsetParent||Nl,e=this.getDimensions,r=await e(i.floating);return{reference:Pm(i.reference,await t(i.floating),i.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Vm(i){return ve(i).direction==="rtl"}var Fm={convertOffsetParentRelativeRectToViewportRelativeRect:_m,getDocumentElement:Ie,getClippingRect:$m,getOffsetParent:Nl,getElementRects:Um,getClientRects:Lm,getDimensions:zm,getScale:Sr,isElement:ge,isRTL:Vm};function Bm(i,t){let e=null,r,o=Ie(i);function a(){var c;clearTimeout(r),(c=e)==null||c.disconnect(),e=null}function s(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),a();let{left:p,top:h,width:b,height:x}=i.getBoundingClientRect();if(c||t(),!b||!x)return;let y=oo(h),T=oo(o.clientWidth-(p+b)),S=oo(o.clientHeight-(h+x)),k=oo(p),N={rootMargin:-y+"px "+-T+"px "+-S+"px "+-k+"px",threshold:re(0,De(1,d))||1},O=!0;function G(z){let be=z[0].intersectionRatio;if(be!==d){if(!O)return s();be?s(!1,be):r=setTimeout(()=>{s(!1,1e-7)},1e3)}O=!1}try{e=new IntersectionObserver(G,{...N,root:o.ownerDocument})}catch{e=new IntersectionObserver(G,N)}e.observe(i)}return s(!0),a}function wl(i,t,e,r){r===void 0&&(r={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,p=ka(i),h=o||a?[...p?Tr(p):[],...Tr(t)]:[];h.forEach(I=>{o&&I.addEventListener("scroll",e,{passive:!0}),a&&I.addEventListener("resize",e)});let b=p&&c?Bm(p,e):null,x=-1,y=null;s&&(y=new ResizeObserver(I=>{let[N]=I;N&&N.target===p&&y&&(y.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var O;(O=y)==null||O.observe(t)})),e()}),p&&!d&&y.observe(p),y.observe(t));let T,S=d?Dt(i):null;d&&k();function k(){let I=Dt(i);S&&(I.x!==S.x||I.y!==S.y||I.width!==S.width||I.height!==S.height)&&e(),S=I,T=requestAnimationFrame(k)}return e(),()=>{var I;h.forEach(N=>{o&&N.removeEventListener("scroll",e),a&&N.removeEventListener("resize",e)}),b==null||b(),(I=y)==null||I.disconnect(),y=null,d&&cancelAnimationFrame(T)}}var _l=ul;var Ll=fl,Rl=hl,Ol=bl;var Ml=pl;var Dl=(i,t,e)=>{let r=new Map,o={platform:Fm,...e},a={...o.platform,_c:r};return ml(i,t,{...o,platform:a})};var hi=i=>{class t extends i{constructor(...o){super(...o);this.enabledFocusTrap=!1;this.enabledPreventScroll=!1;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:c,offsetHeight:d}=o;return c+d+s+a===0}isNotVisible(o){return this.hasZeroDimensions(o)||this.hasNoClientRects(o)}hasHiddenStyle(o){let{display:a,opacity:s,visibility:c}=o.style;return a==="none"||s==="0"||c==="hidden"||c==="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(c=>{let d=c;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,c=this.shouldWrapFocus();if(o===-1)return a>0?0:s-1;let d=o+a;return c?(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 c=this.focusableElements[this.focusTrapIndex];c&&c.focus()}handleKeydown(o){!this.enabledFocusTrap||!this.focusableElements.length||o.key==="Tab"&&(o.preventDefault(),this.trapFocus(o.shiftKey))}}return n([l({type:Boolean})],t.prototype,"enabledFocusTrap",2),n([l({type:Boolean})],t.prototype,"enabledPreventScroll",2),t};var $l=f.constructTagName("popover"),oe={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"},$t={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},so={TONAL:"tonal",CONTRAST:"contrast"},D={PLACEMENT:oe.BOTTOM,TRIGGER:$t.CLICK,COLOR:so.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 zt=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 wa=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=[]}},Pt=new wa;var Hm=u`
2018
2018
  :host {
2019
2019
  --mdc-popover-arrow-border-radius: 0.1875rem;
2020
2020
  --mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
@@ -2096,6 +2096,11 @@
2096
2096
  z-index: 9999;
2097
2097
  }
2098
2098
 
2099
+ :host(:dir(rtl)) .popover-close {
2100
+ right: auto;
2101
+ left: 0.75rem;
2102
+ }
2103
+
2099
2104
  .popover-arrow[data-side='top'] {
2100
2105
  border-top: none;
2101
2106
  border-left: none;
@@ -2123,7 +2128,7 @@
2123
2128
  border-top-right-radius: var(--mdc-popover-arrow-border-radius);
2124
2129
  border-bottom-left-radius: 100%;
2125
2130
  }
2126
- `,Al=[Sm];var oi=class{constructor(t){this.arrowPixelChange=!1;this.popover=t}setupDelay(){try{let[t,e]=this.popover.delay.split(",").map(r=>{let o=parseInt(r,10);if(Number.isNaN(o)||o<0)throw new Error(`Invalid delay value: ${r}`);return o});return[t,e]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(t){let e=this.popover.renderRoot.querySelector(".popover-hover-bridge");Object.assign(e.style,{top:"",left:"",right:"",bottom:""});let r=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset}px)`,o=this.popover.offsetHeight||0,a=this.popover.offsetWidth||0;if(e)switch(t.split("-")[0]){case"top":e.style.height=r,e.style.bottom=`calc(-1 * (${r}))`,e.style.left="50%",e.style.width=`${a}px`;break;case"left":e.style.height=`${o}px`,e.style.width=r,e.style.right=`calc(-1.5 * (${r}))`;break;case"right":e.style.height=`${o}px`,e.style.width=r,e.style.left=`calc(-0.5 * (${r}))`;break;case"bottom":default:e.style.height=r,e.style.top=`calc(-1 * (${r}))`,e.style.left="50%",e.style.width=`${a}px`;break}}setupAppendTo(){if(this.popover.appendTo){let t=document.getElementById(this.popover.appendTo);t&&t.appendChild(this.popover)}}setupAccessibility(){var t,e,r;(this.popover.role==="dialog"||this.popover.role==="alertdialog")&&this.popover.toggleAttribute("aria-modal",this.popover.interactive),this.popover.interactive?(this.popover.setAttribute("aria-modal","true"),this.popover.ariaLabel||(this.popover.ariaLabel=((t=this.popover.triggerElement)==null?void 0:t.ariaLabel)||((e=this.popover.triggerElement)==null?void 0:e.textContent)||""),this.popover.ariaLabelledby||(this.popover.ariaLabelledby=((r=this.popover.triggerElement)==null?void 0:r.id)||"")):this.popover.removeAttribute("aria-modal")}updateAriaHasPopupAttribute(){var t,e,r;this.popover.interactive?(e=this.popover.triggerElement)==null||e.setAttribute("aria-haspopup",((t=this.popover.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||"dialog"):(r=this.popover.triggerElement)==null||r.removeAttribute("aria-haspopup")}updateAriaExpandedAttribute(){var t,e;this.popover.disableAriaExpanded?(t=this.popover.triggerElement)==null||t.removeAttribute("aria-expanded"):(e=this.popover.triggerElement)==null||e.setAttribute("aria-expanded",`${this.popover.visible}`)}updateArrowStyle(t,e){var h;if(!this.popover.arrowElement)return;let r=e.split("-")[0],o={top:"bottom",right:"left",bottom:"top",left:"right"}[r],{x:a,y:s}=t,l=this.popover.arrowElement.getBoundingClientRect(),d=(h=this.popover.arrowElement.offsetParent)==null?void 0:h.getBoundingClientRect();if(!this.arrowPixelChange){let b=d!=null&&d[o]?12-Math.abs(l[o]-d[o]):0;Math.round(b)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let p=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",r),Object.assign(this.popover.arrowElement.style,{left:a!=null?`${a}px`:"",top:s!=null?`${s}px`:"",[o]:`${-this.popover.arrowElement.offsetHeight/2-p}px`})}updatePopoverStyle(t,e){Object.assign(this.popover.style,{left:`${t}px`,top:`${e}px`})}createBackdrop(){var t;if(!this.popover.backdropElement){let e=document.createElement("div");e.classList.add("popover-backdrop"),(t=this.popover.parentElement)==null||t.appendChild(e);let r=document.createElement("style");r.textContent=`
2131
+ `,zl=[Hm];var ui=class{constructor(t){this.arrowPixelChange=!1;this.popover=t}setupDelay(){try{let[t,e]=this.popover.delay.split(",").map(r=>{let o=parseInt(r,10);if(Number.isNaN(o)||o<0)throw new Error(`Invalid delay value: ${r}`);return o});return[t,e]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(t){let e=this.popover.renderRoot.querySelector(".popover-hover-bridge");Object.assign(e.style,{top:"",left:"",right:"",bottom:""});let r=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset}px)`,o=this.popover.offsetHeight||0,a=this.popover.offsetWidth||0;if(e)switch(t.split("-")[0]){case"top":e.style.height=r,e.style.bottom=`calc(-1 * (${r}))`,e.style.left="50%",e.style.width=`${a}px`;break;case"left":e.style.height=`${o}px`,e.style.width=r,e.style.right=`calc(-1.5 * (${r}))`;break;case"right":e.style.height=`${o}px`,e.style.width=r,e.style.left=`calc(-0.5 * (${r}))`;break;case"bottom":default:e.style.height=r,e.style.top=`calc(-1 * (${r}))`,e.style.left="50%",e.style.width=`${a}px`;break}}setupAppendTo(){if(this.popover.appendTo){let t=document.getElementById(this.popover.appendTo);t&&t.appendChild(this.popover)}}setupAccessibility(){var t,e,r;(this.popover.role==="dialog"||this.popover.role==="alertdialog")&&this.popover.toggleAttribute("aria-modal",this.popover.interactive),this.popover.interactive?(this.popover.setAttribute("aria-modal","true"),this.popover.ariaLabel||(this.popover.ariaLabel=((t=this.popover.triggerElement)==null?void 0:t.ariaLabel)||((e=this.popover.triggerElement)==null?void 0:e.textContent)||""),this.popover.ariaLabelledby||(this.popover.ariaLabelledby=((r=this.popover.triggerElement)==null?void 0:r.id)||"")):this.popover.removeAttribute("aria-modal")}updateAriaHasPopupAttribute(){var t,e,r;this.popover.interactive?(e=this.popover.triggerElement)==null||e.setAttribute("aria-haspopup",((t=this.popover.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||"dialog"):(r=this.popover.triggerElement)==null||r.removeAttribute("aria-haspopup")}updateAriaExpandedAttribute(){var t,e;this.popover.disableAriaExpanded?(t=this.popover.triggerElement)==null||t.removeAttribute("aria-expanded"):(e=this.popover.triggerElement)==null||e.setAttribute("aria-expanded",`${this.popover.visible}`)}updateArrowStyle(t,e){var h;if(!this.popover.arrowElement)return;let r=e.split("-")[0],o={top:"bottom",right:"left",bottom:"top",left:"right"}[r],{x:a,y:s}=t,c=this.popover.arrowElement.getBoundingClientRect(),d=(h=this.popover.arrowElement.offsetParent)==null?void 0:h.getBoundingClientRect();if(!this.arrowPixelChange){let b=d!=null&&d[o]?12-Math.abs(c[o]-d[o]):0;Math.round(b)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let p=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",r),Object.assign(this.popover.arrowElement.style,{left:a!=null?`${a}px`:"",top:s!=null?`${s}px`:"",[o]:`${-this.popover.arrowElement.offsetHeight/2-p}px`})}updatePopoverStyle(t,e){Object.assign(this.popover.style,{left:`${t}px`,top:`${e}px`})}createBackdrop(){var t;if(!this.popover.backdropElement){let e=document.createElement("div");e.classList.add("popover-backdrop"),(t=this.popover.parentElement)==null||t.appendChild(e);let r=document.createElement("style");r.textContent=`
2127
2132
  .popover-backdrop {
2128
2133
  position: fixed;
2129
2134
  top: 0;
@@ -2133,21 +2138,166 @@
2133
2138
  background: transparent;
2134
2139
  z-index: ${this.popover.zIndex-1};
2135
2140
  }
2136
- `,e.appendChild(r),this.popover.backdropElement=e}}};var R=class extends Tl(v){constructor(){super();this.id="";this.triggerID="";this.trigger=M.TRIGGER;this.placement=M.PLACEMENT;this.color=M.COLOR;this.visible=M.VISIBLE;this.offset=M.OFFSET;this.focusTrap=M.FOCUS_TRAP;this.preventScroll=M.PREVENT_SCROLL;this.showArrow=M.ARROW;this.closeButton=M.CLOSE_BUTTON;this.interactive=M.INTERACTIVE;this.delay=M.DELAY;this.hideOnEscape=M.HIDE_ON_ESCAPE;this.hideOnBlur=M.HIDE_ON_BLUR;this.hideOnOutsideClick=M.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=M.FOCUS_BACK;this.backdrop=M.BACKDROP;this.flip=M.FLIP;this.size=M.SIZE;this.zIndex=M.Z_INDEX;this.appendTo="";this.closeButtonAriaLabel=null;this.role=M.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=M.DISABLE_ARIA_EXPANDED;this.arrowElement=null;this.triggerElement=null;this.hoverTimer=null;this.isTriggerClicked=!1;this.openDelay=0;this.closeDelay=0;this.backdropElement=null;this.onOutsidePopoverClick=e=>{if(Dt.peek()!==this)return;let r=!1,o=e.composedPath();r=this.contains(e.target)||o.includes(this.triggerElement);let a=this.backdropElement?o.includes(this.backdropElement):!1;(!r||a)&&this.hidePopover()};this.onEscapeKeydown=e=>{!this.visible||e.code!=="Escape"||(e.preventDefault(),this.hidePopover())};this.onPopoverFocusOut=e=>{this.contains(e.relatedTarget)||this.hidePopover()};this.startCloseDelay=()=>{if(!this.interactive)this.hidePopover();else{if(this.isTriggerClicked)return;this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay)}};this.cancelCloseDelay=()=>{this.hoverTimer&&(clearTimeout(this.hoverTimer),this.hoverTimer=null)};this.showPopover=()=>{this.cancelCloseDelay(),setTimeout(()=>{this.visible=!0},this.openDelay)};this.hidePopover=()=>{Dt.peek()===this&&setTimeout(()=>{this.visible=!1,this.isTriggerClicked=!1},this.closeDelay)};this.togglePopoverVisible=()=>{this.isTriggerClicked?this.hidePopover():(this.showPopover(),this.isTriggerClicked=!0)};this.utils=new oi(this)}async firstUpdated(e){super.firstUpdated(e),this.utils.setupAppendTo(),[this.openDelay,this.closeDelay]=this.utils.setupDelay(),this.setupTriggerListener(),this.utils.setupAccessibility(),this.style.zIndex=`${this.zIndex}`,Mt.onCreatedPopover(this),this.visible&&(this.positionPopover(),await this.handleCreatePopoverFirstUpdate())}async disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners(),Mt.onDestroyedPopover(this),Dt.remove(this)}setupTriggerListener(){if(this.triggerID&&(this.triggerElement=this.getRootNode().querySelector(`[id="${this.triggerID}"]`),!!this.triggerElement)){if(this.trigger==="mouseenter"&&(this.interactive?this.trigger="mouseenter click":this.trigger="mouseenter focusin"),this.trigger.includes("click")&&this.triggerElement.addEventListener("click",this.togglePopoverVisible),this.trigger.includes("mouseenter")){let e=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.addEventListener("mouseenter",this.showPopover),this.triggerElement.addEventListener("mouseleave",this.startCloseDelay),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay),e==null||e.addEventListener("mouseenter",this.cancelCloseDelay)}this.trigger.includes("focusin")&&(this.triggerElement.addEventListener("focusin",this.showPopover),this.interactive||this.triggerElement.addEventListener("focusout",this.hidePopover)),this.addEventListener("focus-trap-exit",this.hidePopover)}}removeEventListeners(){if(!this.triggerElement)return;let e=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.removeEventListener("click",this.togglePopoverVisible),this.triggerElement.removeEventListener("mouseenter",this.showPopover),this.triggerElement.removeEventListener("mouseleave",this.hidePopover),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),this.triggerElement.removeEventListener("focusin",this.showPopover),this.triggerElement.removeEventListener("focusout",this.hidePopover),e==null||e.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("focus-trap-exit",this.hidePopover)}async updated(e){if(super.updated(e),e.has("visible")){let r=e.get("visible")||!1;await this.isOpenUpdated(r,this.visible),this.utils.updateAriaExpandedAttribute()}if(e.has("placement")&&this.setAttribute("placement",Object.values(te).includes(this.placement)?this.placement:M.PLACEMENT),e.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),e.has("trigger")){let o=this.trigger.split(" ").filter(a=>Object.values(Ot).includes(a));this.setAttribute("trigger",o.length>0?this.trigger:M.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}e.has("color")&&this.setAttribute("color",Object.values(to).includes(this.color)?this.color:M.COLOR),e.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),e.has("append-to")&&this.utils.setupAppendTo(),(e.has("interactive")||e.has("aria-label")||e.has("aria-labelledby"))&&this.utils.setupAccessibility(),e.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),e.has("interactive")&&this.utils.updateAriaHasPopupAttribute()}async isOpenUpdated(e,r){var o,a,s;if(!(e===r||!this.triggerElement))if(r)Dt.peek()!==this&&Dt.push(this),this.enabledFocusTrap=this.focusTrap,this.enabledPreventScroll=this.preventScroll,this.backdrop&&(this.utils.createBackdrop(),this.triggerElement.style.zIndex=`${this.zIndex}`),this.positionPopover(),await this.handleCreatePopoverFirstUpdate(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="none")),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.addEventListener("keydown",this.onEscapeKeydown),Mt.onShowPopover(this);else{if(Dt.pop(),this.backdropElement&&((o=this.backdropElement)==null||o.remove(),this.backdropElement=null),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.removeEventListener("keydown",this.onEscapeKeydown),(a=this.deactivateFocusTrap)==null||a.call(this),this.disableAriaExpanded||this.triggerElement.removeAttribute("aria-expanded"),this.interactive){let l=this.triggerElement.getAttribute("aria-haspopup");(l==="dialog"||l==="alertdialog")&&this.triggerElement.removeAttribute("aria-haspopup")}this.focusBackToTrigger&&((s=this.triggerElement)==null||s.focus()),Mt.onHidePopover(this)}}async handleCreatePopoverFirstUpdate(){var e,r;this.visible&&this.interactive&&((e=this.setFocusableElements)==null||e.call(this),await this.updateComplete,(r=this.setInitialFocus)==null||r.call(this))}positionPopover(){if(!this.triggerElement)return;let e=[bl()],r=this.offset;if(this.flip&&e.push(gl()),this.size){let o=this.renderRoot.querySelector('[part="popover-content"]');e.push(vl({apply({availableHeight:a}){o&&Object.assign(o.style,{maxHeight:`${a}px`,overflowY:"auto"})},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector(".popover-arrow"),this.arrowElement)){let o=this.arrowElement.offsetHeight;r=Math.sqrt(2*o**2)/2+this.offset,e.push(yl({element:this.arrowElement,padding:12}))}e.push(fl(r)),ul(this.triggerElement,this,async()=>{if(!this.triggerElement)return;let{x:o,y:a,middlewareData:s,placement:l}=await xl(this.triggerElement,this,{placement:this.placement,middleware:e});this.utils.updatePopoverStyle(o,a),s.arrow&&this.arrowElement&&this.utils.updateArrowStyle(s.arrow,l),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(l)})}render(){return m`
2141
+ `,e.appendChild(r),this.popover.backdropElement=e}}};var R=class extends hi(v){constructor(){super();this.id="";this.triggerID="";this.trigger=D.TRIGGER;this.placement=D.PLACEMENT;this.color=D.COLOR;this.visible=D.VISIBLE;this.offset=D.OFFSET;this.focusTrap=D.FOCUS_TRAP;this.preventScroll=D.PREVENT_SCROLL;this.showArrow=D.ARROW;this.closeButton=D.CLOSE_BUTTON;this.interactive=D.INTERACTIVE;this.delay=D.DELAY;this.hideOnEscape=D.HIDE_ON_ESCAPE;this.hideOnBlur=D.HIDE_ON_BLUR;this.hideOnOutsideClick=D.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=D.FOCUS_BACK;this.backdrop=D.BACKDROP;this.flip=D.FLIP;this.size=D.SIZE;this.zIndex=D.Z_INDEX;this.appendTo="";this.closeButtonAriaLabel=null;this.role=D.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=D.DISABLE_ARIA_EXPANDED;this.arrowElement=null;this.triggerElement=null;this.hoverTimer=null;this.isTriggerClicked=!1;this.openDelay=0;this.closeDelay=0;this.backdropElement=null;this.onOutsidePopoverClick=e=>{if(Pt.peek()!==this)return;let r=!1,o=e.composedPath();r=this.contains(e.target)||o.includes(this.triggerElement);let a=this.backdropElement?o.includes(this.backdropElement):!1;(!r||a)&&this.hidePopover()};this.onEscapeKeydown=e=>{!this.visible||e.code!=="Escape"||(e.preventDefault(),this.hidePopover())};this.onPopoverFocusOut=e=>{this.contains(e.relatedTarget)||this.hidePopover()};this.startCloseDelay=()=>{if(!this.interactive)this.hidePopover();else{if(this.isTriggerClicked)return;this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay)}};this.cancelCloseDelay=()=>{this.hoverTimer&&(clearTimeout(this.hoverTimer),this.hoverTimer=null)};this.showPopover=()=>{this.cancelCloseDelay(),setTimeout(()=>{this.visible=!0},this.openDelay)};this.hidePopover=()=>{Pt.peek()===this&&setTimeout(()=>{this.visible=!1,this.isTriggerClicked=!1},this.closeDelay)};this.togglePopoverVisible=()=>{this.isTriggerClicked?this.hidePopover():(this.showPopover(),this.isTriggerClicked=!0)};this.utils=new ui(this)}async firstUpdated(e){super.firstUpdated(e),this.utils.setupAppendTo(),[this.openDelay,this.closeDelay]=this.utils.setupDelay(),this.setupTriggerListener(),this.utils.setupAccessibility(),this.style.zIndex=`${this.zIndex}`,zt.onCreatedPopover(this),this.visible&&(this.positionPopover(),await this.handleCreatePopoverFirstUpdate())}async disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners(),zt.onDestroyedPopover(this),Pt.remove(this)}setupTriggerListener(){if(this.triggerID&&(this.triggerElement=this.getRootNode().querySelector(`[id="${this.triggerID}"]`),!!this.triggerElement)){if(this.trigger==="mouseenter"&&(this.interactive?this.trigger="mouseenter click":this.trigger="mouseenter focusin"),this.trigger.includes("click")&&this.triggerElement.addEventListener("click",this.togglePopoverVisible),this.trigger.includes("mouseenter")){let e=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.addEventListener("mouseenter",this.showPopover),this.triggerElement.addEventListener("mouseleave",this.startCloseDelay),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay),e==null||e.addEventListener("mouseenter",this.cancelCloseDelay)}this.trigger.includes("focusin")&&(this.triggerElement.addEventListener("focusin",this.showPopover),this.interactive||this.triggerElement.addEventListener("focusout",this.hidePopover)),this.addEventListener("focus-trap-exit",this.hidePopover)}}removeEventListeners(){if(!this.triggerElement)return;let e=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.removeEventListener("click",this.togglePopoverVisible),this.triggerElement.removeEventListener("mouseenter",this.showPopover),this.triggerElement.removeEventListener("mouseleave",this.hidePopover),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),this.triggerElement.removeEventListener("focusin",this.showPopover),this.triggerElement.removeEventListener("focusout",this.hidePopover),e==null||e.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("focus-trap-exit",this.hidePopover)}async updated(e){if(super.updated(e),e.has("visible")){let r=e.get("visible")||!1;await this.isOpenUpdated(r,this.visible),this.utils.updateAriaExpandedAttribute()}if(e.has("placement")&&this.setAttribute("placement",Object.values(oe).includes(this.placement)?this.placement:D.PLACEMENT),e.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),e.has("trigger")){let o=this.trigger.split(" ").filter(a=>Object.values($t).includes(a));this.setAttribute("trigger",o.length>0?this.trigger:D.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}e.has("color")&&this.setAttribute("color",Object.values(so).includes(this.color)?this.color:D.COLOR),e.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),e.has("append-to")&&this.utils.setupAppendTo(),(e.has("interactive")||e.has("aria-label")||e.has("aria-labelledby"))&&this.utils.setupAccessibility(),e.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),e.has("interactive")&&this.utils.updateAriaHasPopupAttribute()}async isOpenUpdated(e,r){var o,a,s;if(!(e===r||!this.triggerElement))if(r)Pt.peek()!==this&&Pt.push(this),this.enabledFocusTrap=this.focusTrap,this.enabledPreventScroll=this.preventScroll,this.backdrop&&(this.utils.createBackdrop(),this.triggerElement.style.zIndex=`${this.zIndex}`),this.positionPopover(),await this.handleCreatePopoverFirstUpdate(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="none")),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.addEventListener("keydown",this.onEscapeKeydown),zt.onShowPopover(this);else{if(Pt.pop(),this.backdropElement&&((o=this.backdropElement)==null||o.remove(),this.backdropElement=null),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.removeEventListener("keydown",this.onEscapeKeydown),(a=this.deactivateFocusTrap)==null||a.call(this),this.disableAriaExpanded||this.triggerElement.removeAttribute("aria-expanded"),this.interactive){let c=this.triggerElement.getAttribute("aria-haspopup");(c==="dialog"||c==="alertdialog")&&this.triggerElement.removeAttribute("aria-haspopup")}this.focusBackToTrigger&&((s=this.triggerElement)==null||s.focus()),zt.onHidePopover(this)}}async handleCreatePopoverFirstUpdate(){var e,r;this.visible&&this.interactive&&((e=this.setFocusableElements)==null||e.call(this),await this.updateComplete,(r=this.setInitialFocus)==null||r.call(this))}positionPopover(){if(!this.triggerElement)return;let e=[Ll()],r=this.offset;if(this.flip&&e.push(Rl()),this.size){let o=this.renderRoot.querySelector('[part="popover-content"]');e.push(Ol({apply({availableHeight:a}){o&&Object.assign(o.style,{maxHeight:`${a}px`,overflowY:"auto"})},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector(".popover-arrow"),this.arrowElement)){let o=this.arrowElement.offsetHeight;r=Math.sqrt(2*o**2)/2+this.offset,e.push(Ml({element:this.arrowElement,padding:12}))}e.push(_l(r)),wl(this.triggerElement,this,async()=>{if(!this.triggerElement)return;let{x:o,y:a,middlewareData:s,placement:c}=await Dl(this.triggerElement,this,{placement:this.placement,middleware:e});this.utils.updatePopoverStyle(o,a),s.arrow&&this.arrowElement&&this.utils.updateArrowStyle(s.arrow,c),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(c)})}render(){return m`
2137
2142
  <div class="popover-hover-bridge"></div>
2138
2143
  ${this.closeButton?m` <mdc-button
2139
2144
  class="popover-close"
2140
2145
  prefix-icon="cancel-bold"
2141
2146
  variant="tertiary"
2142
2147
  size="20"
2143
- aria-label=${T(this.closeButtonAriaLabel)||""}
2148
+ aria-label=${A(this.closeButtonAriaLabel)||""}
2144
2149
  @click="${this.hidePopover}"
2145
2150
  ></mdc-button>`:g}
2146
2151
  ${this.showArrow?m`<div class="popover-arrow"></div>`:g}
2147
2152
  <div part="popover-content">
2148
2153
  <slot></slot>
2149
2154
  </div>
2150
- `}};R.styles=[...v.styles,...Al],n([c({type:String,reflect:!0})],R.prototype,"id",2),n([c({type:String,reflect:!0})],R.prototype,"triggerID",2),n([c({type:String,reflect:!0})],R.prototype,"trigger",2),n([c({type:String,reflect:!0})],R.prototype,"placement",2),n([c({type:String,reflect:!0})],R.prototype,"color",2),n([c({type:Boolean,reflect:!0})],R.prototype,"visible",2),n([c({type:Number,reflect:!0})],R.prototype,"offset",2),n([c({type:Boolean,reflect:!0,attribute:"focus-trap"})],R.prototype,"focusTrap",2),n([c({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],R.prototype,"preventScroll",2),n([c({type:Boolean,reflect:!0,attribute:"show-arrow"})],R.prototype,"showArrow",2),n([c({type:Boolean,reflect:!0,attribute:"close-button"})],R.prototype,"closeButton",2),n([c({type:Boolean,reflect:!0})],R.prototype,"interactive",2),n([c({type:String,reflect:!0})],R.prototype,"delay",2),n([c({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],R.prototype,"hideOnEscape",2),n([c({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],R.prototype,"hideOnBlur",2),n([c({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],R.prototype,"hideOnOutsideClick",2),n([c({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],R.prototype,"focusBackToTrigger",2),n([c({type:Boolean,reflect:!0})],R.prototype,"backdrop",2),n([c({type:Boolean,reflect:!0})],R.prototype,"flip",2),n([c({type:Boolean,reflect:!0})],R.prototype,"size",2),n([c({type:Number,reflect:!0,attribute:"z-index"})],R.prototype,"zIndex",2),n([c({type:String,reflect:!0,attribute:"append-to"})],R.prototype,"appendTo",2),n([c({type:String,attribute:"close-button-aria-label",reflect:!0})],R.prototype,"closeButtonAriaLabel",2),n([c({type:String,reflect:!0})],R.prototype,"role",2),n([c({type:String,reflect:!0,attribute:"aria-labelledby"})],R.prototype,"ariaLabelledby",2),n([c({type:String,reflect:!0,attribute:"aria-describedby"})],R.prototype,"ariaDescribedby",2),n([c({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],R.prototype,"disableAriaExpanded",2);var Ie=R;var Sl=f.constructTagName("coachmark"),$t={COLOR:to.CONTRAST,TRIGGER:Ot.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var zt=class extends Ie{constructor(){super(...arguments);this.trigger=$t.TRIGGER;this.showArrow=$t.ARROW;this.closeButton=$t.CLOSE_BUTTON;this.disableAriaExpanded=$t.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=$t.COLOR,this.showArrow=$t.ARROW}};n([c({type:String,reflect:!0})],zt.prototype,"trigger",2),n([c({type:Boolean,attribute:"show-arrow"})],zt.prototype,"showArrow",2),n([c({type:Boolean,reflect:!0,attribute:"close-button"})],zt.prototype,"closeButton",2),n([c({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],zt.prototype,"disableAriaExpanded",2);var va=zt;va.register(Sl);var Im=va;var Il=f.constructTagName("divider"),ro={HORIZONTAL:"horizontal",VERTICAL:"vertical"},ya={SOLID:"solid",GRADIENT:"gradient"},dt={POSITIVE:"positive",NEGATIVE:"negative"},oo={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},Pt={ORIENTATION:ro.HORIZONTAL,VARIANT:ya.SOLID,ARROW_DIRECTION:dt.NEGATIVE,BUTTON_DIRECTION:dt.NEGATIVE};var Cm=[N,u`
2155
+ `}};R.styles=[...v.styles,...zl],n([l({type:String,reflect:!0})],R.prototype,"id",2),n([l({type:String,reflect:!0})],R.prototype,"triggerID",2),n([l({type:String,reflect:!0})],R.prototype,"trigger",2),n([l({type:String,reflect:!0})],R.prototype,"placement",2),n([l({type:String,reflect:!0})],R.prototype,"color",2),n([l({type:Boolean,reflect:!0})],R.prototype,"visible",2),n([l({type:Number,reflect:!0})],R.prototype,"offset",2),n([l({type:Boolean,reflect:!0,attribute:"focus-trap"})],R.prototype,"focusTrap",2),n([l({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],R.prototype,"preventScroll",2),n([l({type:Boolean,reflect:!0,attribute:"show-arrow"})],R.prototype,"showArrow",2),n([l({type:Boolean,reflect:!0,attribute:"close-button"})],R.prototype,"closeButton",2),n([l({type:Boolean,reflect:!0})],R.prototype,"interactive",2),n([l({type:String,reflect:!0})],R.prototype,"delay",2),n([l({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],R.prototype,"hideOnEscape",2),n([l({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],R.prototype,"hideOnBlur",2),n([l({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],R.prototype,"hideOnOutsideClick",2),n([l({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],R.prototype,"focusBackToTrigger",2),n([l({type:Boolean,reflect:!0})],R.prototype,"backdrop",2),n([l({type:Boolean,reflect:!0})],R.prototype,"flip",2),n([l({type:Boolean,reflect:!0})],R.prototype,"size",2),n([l({type:Number,reflect:!0,attribute:"z-index"})],R.prototype,"zIndex",2),n([l({type:String,reflect:!0,attribute:"append-to"})],R.prototype,"appendTo",2),n([l({type:String,attribute:"close-button-aria-label",reflect:!0})],R.prototype,"closeButtonAriaLabel",2),n([l({type:String,reflect:!0})],R.prototype,"role",2),n([l({type:String,reflect:!0,attribute:"aria-labelledby"})],R.prototype,"ariaLabelledby",2),n([l({type:String,reflect:!0,attribute:"aria-describedby"})],R.prototype,"ariaDescribedby",2),n([l({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],R.prototype,"disableAriaExpanded",2);var ke=R;var Pl=f.constructTagName("coachmark"),Ut={COLOR:so.CONTRAST,TRIGGER:$t.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var Vt=class extends ke{constructor(){super(...arguments);this.trigger=Ut.TRIGGER;this.showArrow=Ut.ARROW;this.closeButton=Ut.CLOSE_BUTTON;this.disableAriaExpanded=Ut.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=Ut.COLOR,this.showArrow=Ut.ARROW}};n([l({type:String,reflect:!0})],Vt.prototype,"trigger",2),n([l({type:Boolean,attribute:"show-arrow"})],Vt.prototype,"showArrow",2),n([l({type:Boolean,reflect:!0,attribute:"close-button"})],Vt.prototype,"closeButton",2),n([l({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],Vt.prototype,"disableAriaExpanded",2);var _a=Vt;_a.register(Pl);var Gm=_a;var Ym=u`
2156
+ :host {
2157
+ --mdc-dialog-primary-background-color: var(--mds-color-theme-background-solid-primary-normal);
2158
+ --mdc-dialog-border-color: var(--mds-color-theme-outline-secondary-normal);
2159
+ --mdc-dialog-header-text-color: var(--mds-color-theme-text-primary-normal);
2160
+ --mdc-dialog-description-text-color: var(--mds-color-theme-text-secondary-normal);
2161
+ --mdc-dialog-elevation-3: var(--mds-elevation-3);
2162
+ --mdc-dialog-width: 27rem; /* Default to small */
2163
+
2164
+ background-color: var(--mdc-dialog-primary-background-color);
2165
+ border: 0.0625rem solid var(--mdc-dialog-border-color);
2166
+ border-radius: 0.5rem;
2167
+ filter: var(--mdc-dialog-elevation-3);
2168
+ display: none;
2169
+ padding: 1rem;
2170
+ flex-direction: column;
2171
+ justify-content: center;
2172
+ align-items: center;
2173
+ gap: 1rem;
2174
+ position: absolute;
2175
+ right: 50%;
2176
+ bottom: 50%;
2177
+ transform: translate(50%,50%);
2178
+ }
2179
+
2180
+
2181
+ :host([variant='promotional']){
2182
+ --mdc-dialog-border-color: var(--mds-color-theme-outline-promotion-normal);
2183
+ }
2184
+
2185
+ :host([visible]) {
2186
+ display: flex;
2187
+
2188
+ }
2189
+
2190
+ :host([size='medium']) {
2191
+ --mdc-dialog-width: 41rem;
2192
+ }
2193
+
2194
+ :host([size='large']) {
2195
+ --mdc-dialog-width: 62rem;
2196
+ }
2197
+
2198
+ :host {
2199
+ width: var(--mdc-dialog-width);
2200
+ max-width: 100%;
2201
+ }
2202
+
2203
+ :host::part(header),
2204
+ :host::part(body),
2205
+ :host::part(footer) {
2206
+ display: flex;
2207
+ align-self: stretch;
2208
+ }
2209
+
2210
+ :host::part(header) {
2211
+ flex-direction: column;
2212
+ align-items: flex-start;
2213
+ gap: 0.5rem;
2214
+ }
2215
+
2216
+ :host::part(header-text) {
2217
+ width: 23.625rem;
2218
+ color: var(--mdc-dialog-header-text-color);
2219
+ }
2220
+
2221
+ :host::part(description-text) {
2222
+ color: var(--mdc-dialog-description-text-color);
2223
+ }
2224
+
2225
+ :host::part(body) {
2226
+ flex-direction: column;
2227
+ justify-content: center;
2228
+ align-items: center;
2229
+ height: 100%
2230
+ }
2231
+
2232
+ :host::part(footer) {
2233
+ display: flex;
2234
+ gap: 0.5rem;
2235
+ align-items: center;
2236
+ justify-content: flex-end;
2237
+ }
2238
+
2239
+ ::slotted([slot='footer-link']),
2240
+ ::slotted([slot='footer-button-primary']),
2241
+ ::slotted([slot='footer-button-secondary']){
2242
+ margin-bottom: 0.5rem;
2243
+ }
2244
+
2245
+ :host::part(dialog-close-btn) {
2246
+ position: absolute;
2247
+ top: 1rem;
2248
+ right: 1rem;
2249
+ cursor: pointer;
2250
+ }
2251
+
2252
+ :host(:dir(rtl))::part(dialog-close-btn) {
2253
+ right: auto;
2254
+ left: 1rem;
2255
+ }
2256
+
2257
+ mdc-text::part(text) {
2258
+ margin: 0;
2259
+ }
2260
+ `,Ul=[Ym];var Vl=f.constructTagName("dialog"),Wm={DEFAULT:"default",PROMOTIONAL:"promotional"},je={VISIBLE:!1,Z_INDEX:1e3,ROLE:"dialog",SIZE:"small",HEADER_TAG_NAME:"h2",DESCRIPTION_TAG_NAME:"p",CANCEL_ICON:"cancel-bold",VARIANT:Wm.DEFAULT};var fi=class{constructor(t){this.dialog=t}setupAriaAttributes(){this.dialog.headerText&&!this.dialog.ariaLabel&&!this.dialog.ariaLabelledby?this.dialog.setAttribute("aria-labelledby",this.dialog.headerText):!this.dialog.headerText&&!this.dialog.ariaLabel&&!this.dialog.ariaLabelledby&&this.dialog.setAttribute("aria-labelledby",this.dialog.triggerId)}createBackdrop(){var r;let t=document.createElement("div");t.classList.add("dialog-backdrop");let e=document.createElement("style");e.textContent=`
2261
+ .dialog-backdrop {
2262
+ position: fixed;
2263
+ top: 0;
2264
+ left: 0;
2265
+ width: 100%;
2266
+ height: 100%;
2267
+ background: var(--mds-color-theme-common-overlays-secondary-normal);
2268
+ z-index: ${this.dialog.zIndex-1};
2269
+ }
2270
+ `,t.appendChild(e),(r=this.dialog.parentElement)==null||r.appendChild(t),this.dialog.backdropElement=t}};var Ft=class{static dispatchDialogEvent(t,e){e.dispatchEvent(new CustomEvent(t,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowDialog(t){this.dispatchDialogEvent("shown",t)}static onHideDialog(t){this.dispatchDialogEvent("hidden",t)}static onCreatedDialog(t){this.dispatchDialogEvent("created",t)}static onDestroyedDialog(t){this.dispatchDialogEvent("destroyed",t)}};var K=class extends hi(Qo(v)){constructor(){super();this.id="";this.triggerId="";this.visible=je.VISIBLE;this.zIndex=je.Z_INDEX;this.size=je.SIZE;this.variant=je.VARIANT;this.closeButtonAriaLabel=null;this.ariaLabelledby=null;this.ariaLabel=null;this.headerText="";this.descriptionText="";this.headerTagName=je.HEADER_TAG_NAME;this.descriptionTagName=je.DESCRIPTION_TAG_NAME;this.role=je.ROLE;this.triggerElement=null;this.backdropElement=null;this.onEscapeKeydown=e=>{!this.visible||e.code!=="Escape"||(e.preventDefault(),this.hideDialog())};this.hideDialog=()=>{this.visible=!1};this.utils=new fi(this),document.addEventListener("keydown",this.onEscapeKeydown)}async firstUpdated(e){super.firstUpdated(e),this.setupTriggerListener(),this.utils.setupAriaAttributes(),this.style.zIndex=`${this.zIndex}`,Ft.onCreatedDialog(this),this.visible&&await this.handleCreateDialogFirstUpdate()}async disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners(),document.removeEventListener("keydown",this.onEscapeKeydown),Ft.onDestroyedDialog(this)}setupTriggerListener(){this.triggerId&&(this.triggerElement=this.getRootNode().querySelector(`[id="${this.triggerId}"]`),this.triggerElement&&this.addEventListener("focus-trap-exit",this.hideDialog))}removeEventListeners(){this.triggerElement&&this.removeEventListener("focus-trap-exit",this.hideDialog)}async updated(e){if(super.updated(e),e.has("visible")){let r=e.get("visible");await this.isOpenUpdated(r,this.visible)}e.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),e.has("variant")&&this.updateFooterButtonColors(this.variant),(e.has("aria-label")||e.has("aria-labelledby"))&&this.utils.setupAriaAttributes()}async isOpenUpdated(e,r){var o,a,s;e===r||!this.triggerElement||(r?(this.enabledFocusTrap=!0,this.enabledPreventScroll=!0,this.utils.createBackdrop(),await this.handleCreateDialogFirstUpdate(),this.triggerElement.setAttribute("aria-expanded","true"),this.triggerElement.setAttribute("aria-haspopup",this.triggerElement.getAttribute("aria-haspopup")||"dialog"),Ft.onShowDialog(this)):((o=this.backdropElement)==null||o.remove(),this.backdropElement=null,(a=this.deactivateFocusTrap)==null||a.call(this),this.triggerElement.removeAttribute("aria-expanded"),this.triggerElement.removeAttribute("aria-haspopup"),(s=this.triggerElement)==null||s.focus(),Ft.onHideDialog(this)))}async handleCreateDialogFirstUpdate(){var e,r;this.visible&&((e=this.setFocusableElements)==null||e.call(this),await this.updateComplete,(r=this.setInitialFocus)==null||r.call(this))}render(){var e;return m`
2271
+ ${this.headerText?m`
2272
+ <div part="header">
2273
+ <mdc-text
2274
+ part="header-text"
2275
+ tagname="${C[this.headerTagName.toUpperCase()]}"
2276
+ type="${E.BODY_LARGE_BOLD}"
2277
+ >
2278
+ ${this.headerText}
2279
+ </mdc-text>
2280
+ <mdc-text
2281
+ part="description-text"
2282
+ tagname="${C[this.descriptionTagName.toUpperCase()]}"
2283
+ type="${E.BODY_MIDSIZE_REGULAR}"
2284
+ >
2285
+ ${(e=this.descriptionText)!=null?e:g}
2286
+ </mdc-text>
2287
+ </div>`:g}
2288
+ <mdc-button
2289
+ part="dialog-close-btn"
2290
+ prefix-icon="${je.CANCEL_ICON}"
2291
+ variant="${Z.TERTIARY}"
2292
+ size="${ct[20]}"
2293
+ aria-label="${A(this.closeButtonAriaLabel)||""}"
2294
+ @click="${this.hideDialog}"
2295
+ ></mdc-button>
2296
+ <div part="body">
2297
+ <slot name="dialog-body"></slot>
2298
+ </div>
2299
+ ${this.renderFooter()}
2300
+ `}};K.styles=[...v.styles,...Ul],n([l({type:String,reflect:!0})],K.prototype,"id",2),n([l({type:String,reflect:!0})],K.prototype,"triggerId",2),n([l({type:Boolean,reflect:!0})],K.prototype,"visible",2),n([l({type:Number,reflect:!0,attribute:"z-index"})],K.prototype,"zIndex",2),n([l({type:String,reflect:!0})],K.prototype,"size",2),n([l({type:String,reflect:!0})],K.prototype,"variant",2),n([l({type:String,attribute:"close-button-aria-label"})],K.prototype,"closeButtonAriaLabel",2),n([l({type:String,reflect:!0,attribute:"aria-labelledby"})],K.prototype,"ariaLabelledby",2),n([l({type:String,reflect:!0,attribute:"aria-label"})],K.prototype,"ariaLabel",2),n([l({type:String,reflect:!0,attribute:"header-text"})],K.prototype,"headerText",2),n([l({type:String,reflect:!0,attribute:"description-text"})],K.prototype,"descriptionText",2),n([l({type:String,reflect:!0,attribute:"header-tag-name"})],K.prototype,"headerTagName",2),n([l({type:String,reflect:!0,attribute:"description-tag-name"})],K.prototype,"descriptionTagName",2),n([l({type:String,reflect:!0})],K.prototype,"role",2);var La=K;La.register(Vl);var qm=La;var Fl=f.constructTagName("divider"),no={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Ra={SOLID:"solid",GRADIENT:"gradient"},ht={POSITIVE:"positive",NEGATIVE:"negative"},lo={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},Bt={ORIENTATION:no.HORIZONTAL,VARIANT:Ra.SOLID,ARROW_DIRECTION:ht.NEGATIVE,BUTTON_DIRECTION:ht.NEGATIVE};var Km=[w,u`
2151
2301
  :host {
2152
2302
  --mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
2153
2303
  --mdc-divider-width: 0.0625rem;
@@ -2358,11 +2508,11 @@
2358
2508
  font-size: var(--mdc-divider-text-size);
2359
2509
  line-height: var(--mdc-divider-text-line-height);
2360
2510
  }
2361
- `],Cl=Cm;var mt=class extends v{constructor(){super(...arguments);this.orientation=Pt.ORIENTATION;this.variant=Pt.VARIANT;this.arrowDirection=Pt.ARROW_DIRECTION;this.buttonPosition=Pt.BUTTON_DIRECTION}setVariant(e){this.setAttribute("variant",Object.values(ya).includes(e)?e:Pt.VARIANT)}setOrientation(e){this.setAttribute("orientation",Object.values(ro).includes(e)?e:Pt.ORIENTATION)}ensureValidDirections(){let e=this.orientation===ro.HORIZONTAL?dt.NEGATIVE:dt.POSITIVE;Object.values(dt).includes(this.buttonPosition)||(this.buttonPosition=e),Object.values(dt).includes(this.arrowDirection)||(this.arrowDirection=e)}setGrabberButton(){this.ensureValidDirections();let e=this.querySelector("mdc-button");if(e){let r=this.getArrowIcon();e.setAttribute("variant","secondary"),e.setAttribute("prefix-icon",r)}}getArrowIcon(){let e=this.orientation===ro.HORIZONTAL,r=this.arrowDirection===dt.POSITIVE;return e?r?oo.UP:oo.DOWN:r?oo.RIGHT:oo.LEFT}update(e){super.update(e),e.has("orientation")&&this.setOrientation(this.orientation),e.has("variant")&&this.setVariant(this.variant),(e.has("orientation")||e.has("arrowDirection")||e.has("buttonPosition"))&&this.setGrabberButton()}inferDividerType(){var s;let e=(s=this.shadowRoot)==null?void 0:s.querySelector("slot"),r=(e==null?void 0:e.assignedElements({flatten:!0}))||[];if(r.length>1)return;let o=r.some(l=>l.tagName===Ur.toUpperCase()),a=r.some(l=>l.tagName===Tt.toUpperCase());o&&!a?this.setAttribute("data-type","mdc-text-divider"):!o&&a&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return m`
2511
+ `],Bl=Km;var ut=class extends v{constructor(){super(...arguments);this.orientation=Bt.ORIENTATION;this.variant=Bt.VARIANT;this.arrowDirection=Bt.ARROW_DIRECTION;this.buttonPosition=Bt.BUTTON_DIRECTION}setVariant(e){this.setAttribute("variant",Object.values(Ra).includes(e)?e:Bt.VARIANT)}setOrientation(e){this.setAttribute("orientation",Object.values(no).includes(e)?e:Bt.ORIENTATION)}ensureValidDirections(){let e=this.orientation===no.HORIZONTAL?ht.NEGATIVE:ht.POSITIVE;Object.values(ht).includes(this.buttonPosition)||(this.buttonPosition=e),Object.values(ht).includes(this.arrowDirection)||(this.arrowDirection=e)}setGrabberButton(){this.ensureValidDirections();let e=this.querySelector("mdc-button");if(e){let r=this.getArrowIcon();e.setAttribute("variant","secondary"),e.setAttribute("prefix-icon",r)}}getArrowIcon(){let e=this.orientation===no.HORIZONTAL,r=this.arrowDirection===ht.POSITIVE;return e?r?lo.UP:lo.DOWN:r?lo.RIGHT:lo.LEFT}update(e){super.update(e),e.has("orientation")&&this.setOrientation(this.orientation),e.has("variant")&&this.setVariant(this.variant),(e.has("orientation")||e.has("arrowDirection")||e.has("buttonPosition"))&&this.setGrabberButton()}inferDividerType(){var s;let e=(s=this.shadowRoot)==null?void 0:s.querySelector("slot"),r=(e==null?void 0:e.assignedElements({flatten:!0}))||[];if(r.length>1)return;let o=r.some(c=>c.tagName===Gr.toUpperCase()),a=r.some(c=>c.tagName===It.toUpperCase());o&&!a?this.setAttribute("data-type","mdc-text-divider"):!o&&a&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return m`
2362
2512
  <div></div>
2363
2513
  <slot @slotchange=${this.inferDividerType}></slot>
2364
2514
  <div></div>
2365
- `}};mt.styles=[...v.styles,...Cl],n([c({type:String,reflect:!0})],mt.prototype,"orientation",2),n([c({type:String,reflect:!0})],mt.prototype,"variant",2),n([c({type:String,attribute:"arrow-direction",reflect:!0})],mt.prototype,"arrowDirection",2),n([c({type:String,attribute:"button-position",reflect:!0})],mt.prototype,"buttonPosition",2);var xa=mt;xa.register(Il);var km=xa;var wm=u`
2515
+ `}};ut.styles=[...v.styles,...Bl],n([l({type:String,reflect:!0})],ut.prototype,"orientation",2),n([l({type:String,reflect:!0})],ut.prototype,"variant",2),n([l({type:String,attribute:"arrow-direction",reflect:!0})],ut.prototype,"arrowDirection",2),n([l({type:String,attribute:"button-position",reflect:!0})],ut.prototype,"buttonPosition",2);var Oa=ut;Oa.register(Fl);var Zm=Oa;var Xm=u`
2366
2516
  :host([selected]){
2367
2517
  border: 2px solid;
2368
2518
  --mdc-chip-background-color: var(--mds-color-theme-background-label-default-active);
@@ -2382,7 +2532,7 @@
2382
2532
  --mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
2383
2533
  cursor: auto;
2384
2534
  }
2385
- `,kl=[wm];var wl=f.constructTagName("filterchip"),Ea={ICON_NAME:"check-bold",COLOR:"default"};var io=class extends vr{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=Ea.COLOR}setSelected(e){e?(this.iconName=Ea.ICON_NAME,this.setAttribute("aria-pressed","true")):(this.iconName=void 0,this.setAttribute("aria-pressed","false"))}executeAction(){this.selected=!this.selected}update(e){super.update(e),e.has("selected")&&this.setSelected(this.selected)}};io.styles=[...vr.styles,...kl],n([c({type:Boolean,reflect:!0})],io.prototype,"selected",2);var Ta=io;Ta.register(wl);var Nm=Ta;var Ce={BUTTON:"button",CHECKBOX:"checkbox",GROUP:"group",LIST:"list",LISTITEM:"listitem",MENU:"menu",MENUBAR:"menubar",MENUITEM:"menuitem",MENUITEMCHECKBOX:"menuitemcheckbox",MENUITEMRADIO:"menuitemradio",RADIOGROUP:"radiogroup",TOOLTIP:"tooltip"};var _m=u`
2535
+ `,Hl=[Xm];var Gl=f.constructTagName("filterchip"),Ma={ICON_NAME:"check-bold",COLOR:"default"};var co=class extends Er{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=Ma.COLOR}setSelected(e){e?(this.iconName=Ma.ICON_NAME,this.setAttribute("aria-pressed","true")):(this.iconName=void 0,this.setAttribute("aria-pressed","false"))}executeAction(){this.selected=!this.selected}update(e){super.update(e),e.has("selected")&&this.setSelected(this.selected)}};co.styles=[...Er.styles,...Hl],n([l({type:Boolean,reflect:!0})],co.prototype,"selected",2);var Da=co;Da.register(Gl);var jm=Da;var ie={BUTTON:"button",CHECKBOX:"checkbox",GROUP:"group",LIST:"list",LISTITEM:"listitem",MENU:"menu",MENUBAR:"menubar",MENUITEM:"menuitem",MENUITEMCHECKBOX:"menuitemcheckbox",MENUITEMRADIO:"menuitemradio",RADIOGROUP:"radiogroup",TOOLTIP:"tooltip"};var Qm=u`
2386
2536
 
2387
2537
  :host::part(container) {
2388
2538
  display: flex;
@@ -2399,12 +2549,12 @@
2399
2549
  :host::part(label-text){
2400
2550
  font-weight: bold;
2401
2551
  }
2402
- `,Nl=[_m];var ii=class extends U(J){constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){super.connectedCallback(),this.shouldRenderLabel=!1,this.id="",this.helpTextType=void 0,this.disabled=void 0}render(){var e;return m`
2552
+ `,Yl=[Qm];var bi=class extends V(te){constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){super.connectedCallback(),this.shouldRenderLabel=!1,this.id="",this.helpTextType=void 0,this.disabled=void 0}render(){var e;return m`
2403
2553
  <div
2404
2554
  part="container"
2405
- role="${this.isRadio?Ce.RADIOGROUP:Ce.GROUP}"
2406
- aria-labelledby="${V.HEADING_ID}"
2407
- aria-describedby="${T(this.helpText?V.HELPER_TEXT_ID:"")}"
2555
+ role="${this.isRadio?ie.RADIOGROUP:ie.GROUP}"
2556
+ aria-labelledby="${U.HEADING_ID}"
2557
+ aria-describedby="${A(this.helpText?U.HELPER_TEXT_ID:"")}"
2408
2558
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
2409
2559
  >
2410
2560
  <div part="group-header">
@@ -2413,7 +2563,7 @@
2413
2563
  </div>
2414
2564
  <slot></slot>
2415
2565
  </div>
2416
- `}};ii.styles=[...J.styles,...Nl];var Aa=ii;var _l=f.constructTagName("formfieldgroup");Aa.register(_l);var ai=Aa;Fr.register(_o);var Lm=Fr;var Rm=[u`
2566
+ `}};bi.styles=[...te.styles,...Yl];var $a=bi;var Wl=f.constructTagName("formfieldgroup");$a.register(Wl);var gi=$a;Yr.register(Uo);var Jm=Yr;var ep=[u`
2417
2567
  :host{
2418
2568
  --mdc-input-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
2419
2569
  --mdc-input-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
@@ -2529,30 +2679,30 @@
2529
2679
  opacity: 0;
2530
2680
  pointer-events: none;
2531
2681
  }
2532
- `,..._(!0)],Ll=Rm;J.register(Un);var ge=J;var Rl=f.constructTagName("input"),si={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},Sa={OFF:"off",ON:"on"},Ia={TEXT:"text",SEARCH:"search"},Ol={MAX_LENGTH:10,VALIDATION:W.ERROR},Xe={VALIDATION:W.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:ae.TERTIARY,CLEAR_BUTTON_SIZE:sr[20],PREFIX_TEXT_TYPE:S.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:w.SPAN,AUTO_COMPLETE:Sa.OFF,INPUT_TYPE:Ia.TEXT};var F=class extends ne(U(ge)){constructor(){super(...arguments);this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=si.OFF;this.autocomplete=Sa.OFF;this.autofocus=!1;this.clearAriaLabel=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.inputElement.checkValidity(),this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(e=>{this.onerror&&this.onerror(e)})}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(e){this.value=e}handleValueChange(){this.updateComplete.then(()=>{this.setInputValidity()}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&this.handleValueChange()}setInputValidity(){this.requiredLabel&&this.validationMessage&&this.value===""?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()}attributeChangedCallback(e,r,o){super.attributeChangedCallback(e,r,o),["maxlength","minlength","pattern","required"].includes(e)&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(s=>{this.onerror&&this.onerror(s)})}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value)}onInput(){this.updateValue(),this.setInputValidity()}onChange(e){this.updateValue(),this.setInputValidity();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?m`
2682
+ `,..._(!0)],ql=ep;te.register(tl);var ye=te;var Kl=f.constructTagName("input"),vi={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},za={OFF:"off",ON:"on"},Pa={TEXT:"text",SEARCH:"search"},Zl={MAX_LENGTH:10,VALIDATION:q.ERROR},Qe={VALIDATION:q.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Z.TERTIARY,CLEAR_BUTTON_SIZE:ct[20],PREFIX_TEXT_TYPE:E.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:C.SPAN,AUTO_COMPLETE:za.OFF,INPUT_TYPE:Pa.TEXT};var B=class extends ce(V(ye)){constructor(){super(...arguments);this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=vi.OFF;this.autocomplete=za.OFF;this.autofocus=!1;this.clearAriaLabel=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.inputElement.checkValidity(),this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(e=>{this.onerror&&this.onerror(e)})}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(e){this.value=e}handleValueChange(){this.updateComplete.then(()=>{this.setInputValidity()}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&this.handleValueChange()}setInputValidity(){this.requiredLabel&&this.validationMessage&&this.value===""?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()}attributeChangedCallback(e,r,o){super.attributeChangedCallback(e,r,o),["maxlength","minlength","pattern","required"].includes(e)&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(s=>{this.onerror&&this.onerror(s)})}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value)}onInput(){this.updateValue(),this.setInputValidity()}onChange(e){this.updateValue(),this.setInputValidity();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?m`
2533
2683
  <mdc-icon
2534
2684
  class="leading-icon"
2535
2685
  part="leading-icon"
2536
2686
  name=${this.leadingIcon}
2537
- size="${Xe.ICON_SIZE_VALUE}"
2538
- length-unit="${Xe.ICON_SIZE_UNIT}">
2687
+ size="${Qe.ICON_SIZE_VALUE}"
2688
+ length-unit="${Qe.ICON_SIZE_UNIT}">
2539
2689
  </mdc-icon>
2540
2690
  `:g}renderPrefixText(){return this.prefixText?m`
2541
2691
  <mdc-text
2542
2692
  class="prefix-text"
2543
- tagname="${Xe.PREFIX_TEXT_TAG}"
2544
- type="${Xe.PREFIX_TEXT_TYPE}"
2693
+ tagname="${Qe.PREFIX_TEXT_TAG}"
2694
+ type="${Qe.PREFIX_TEXT_TYPE}"
2545
2695
  aria-hidden="true"
2546
2696
  >
2547
- ${this.prefixText.slice(0,Ol.MAX_LENGTH)}
2697
+ ${this.prefixText.slice(0,Zl.MAX_LENGTH)}
2548
2698
  </mdc-text>
2549
2699
  `:g}clearInputText(){var e;this.value="",(e=this.inputElement)==null||e.focus()}renderTrailingButton(e=!1){let r=e||this.value&&this.trailingButton;return r?m`
2550
2700
  <mdc-button
2551
2701
  part='trailing-button'
2552
2702
  class='own-focus-ring ${r?"":"hidden"}'
2553
- prefix-icon='${Xe.CLEAR_BUTTON_ICON}'
2554
- variant='${Xe.CLEAR_BUTTON_VARIANT}'
2555
- size="${Xe.CLEAR_BUTTON_SIZE}"
2703
+ prefix-icon='${Qe.CLEAR_BUTTON_ICON}'
2704
+ variant='${Qe.CLEAR_BUTTON_VARIANT}'
2705
+ size="${Qe.CLEAR_BUTTON_SIZE}"
2556
2706
  aria-label="${this.clearAriaLabel}"
2557
2707
  @click=${this.clearInputText}
2558
2708
  ?disabled=${this.disabled||this.readonly||!r}
@@ -2568,18 +2718,18 @@
2568
2718
  ?readonly="${this.readonly}"
2569
2719
  ?required="${!!this.requiredLabel}"
2570
2720
  type="${e}"
2571
- aria-describedby="${T(this.helpText?V.HELPER_TEXT_ID:"")}"
2721
+ aria-describedby="${A(this.helpText?U.HELPER_TEXT_ID:"")}"
2572
2722
  aria-invalid="${this.helpTextType==="error"?"true":"false"}"
2573
- placeholder=${T(o)}
2574
- minlength=${T(this.minlength)}
2575
- maxlength=${T(this.maxlength)}
2723
+ placeholder=${A(o)}
2724
+ minlength=${A(this.minlength)}
2725
+ maxlength=${A(this.maxlength)}
2576
2726
  autocapitalize=${this.autocapitalize}
2577
2727
  autocomplete=${this.autocomplete}
2578
2728
  ?autofocus="${this.autofocus}"
2579
- dirname=${T(this.dirname)}
2580
- pattern=${T(this.pattern)}
2581
- list=${T(this.list)}
2582
- size=${T(this.size)}
2729
+ dirname=${A(this.dirname)}
2730
+ pattern=${A(this.pattern)}
2731
+ list=${A(this.list)}
2732
+ size=${A(this.size)}
2583
2733
  @input=${this.onInput}
2584
2734
  @change=${this.onChange}
2585
2735
  @keydown=${this.handleKeyDown}
@@ -2589,12 +2739,12 @@
2589
2739
  <slot name="input-leading-icon">${this.renderLeadingIcon()}</slot>
2590
2740
  <div class="input-section" part="input-section">
2591
2741
  <slot name="input-prefix-text">${this.renderPrefixText()}</slot>
2592
- <slot name="input">${this.renderInputElement(Xe.INPUT_TYPE)}</slot>
2742
+ <slot name="input">${this.renderInputElement(Qe.INPUT_TYPE)}</slot>
2593
2743
  </div>
2594
2744
  <slot name="trailing-button">${this.renderTrailingButton()}</slot>
2595
2745
  </div>
2596
2746
  ${this.helpText?this.renderHelperText():g}
2597
- `}};F.styles=[...ge.styles,...Ll],n([c({type:String})],F.prototype,"placeholder",2),n([c({type:Boolean})],F.prototype,"readonly",2),n([c({type:String,attribute:"prefix-text"})],F.prototype,"prefixText",2),n([c({type:String,attribute:"leading-icon"})],F.prototype,"leadingIcon",2),n([c({type:Boolean,attribute:"trailing-button"})],F.prototype,"trailingButton",2),n([c({type:Number})],F.prototype,"maxlength",2),n([c({type:Number})],F.prototype,"minlength",2),n([c({type:String})],F.prototype,"autocapitalize",2),n([c({type:String})],F.prototype,"autocomplete",2),n([c({type:Boolean})],F.prototype,"autofocus",2),n([c({type:String})],F.prototype,"dirname",2),n([c({type:String})],F.prototype,"pattern",2),n([c({type:String})],F.prototype,"list",2),n([c({type:Number})],F.prototype,"size",2),n([c({type:String,attribute:"clear-aria-label"})],F.prototype,"clearAriaLabel",2);var Tr=F;Tr.register(Rl);var Om=Tr;var Mm=u`
2747
+ `}};B.styles=[...ye.styles,...ql],n([l({type:String})],B.prototype,"placeholder",2),n([l({type:Boolean})],B.prototype,"readonly",2),n([l({type:String,attribute:"prefix-text"})],B.prototype,"prefixText",2),n([l({type:String,attribute:"leading-icon"})],B.prototype,"leadingIcon",2),n([l({type:Boolean,attribute:"trailing-button"})],B.prototype,"trailingButton",2),n([l({type:Number})],B.prototype,"maxlength",2),n([l({type:Number})],B.prototype,"minlength",2),n([l({type:String})],B.prototype,"autocapitalize",2),n([l({type:String})],B.prototype,"autocomplete",2),n([l({type:Boolean})],B.prototype,"autofocus",2),n([l({type:String})],B.prototype,"dirname",2),n([l({type:String})],B.prototype,"pattern",2),n([l({type:String})],B.prototype,"list",2),n([l({type:Number})],B.prototype,"size",2),n([l({type:String,attribute:"clear-aria-label"})],B.prototype,"clearAriaLabel",2);var Ir=B;Ir.register(Kl);var tp=Ir;var rp=u`
2598
2748
  :host {
2599
2749
  height: 1.5rem;
2600
2750
  gap: 0.25rem;
@@ -2623,24 +2773,24 @@
2623
2773
  --mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
2624
2774
  cursor: auto;
2625
2775
  }
2626
- `,Ml=[N,Mm];var ni=f.constructTagName("inputchip"),li={TEXT_TYPE:S.BODY_MIDSIZE_REGULAR,TAG_NAME:w.SPAN,CLOSE_ICON:"cancel-bold"};var Vt=class extends ie(P(v)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderIcon(){return this.iconName?m`
2776
+ `,Xl=[w,rp];var yi=f.constructTagName("inputchip"),xi={TEXT_TYPE:E.BODY_MIDSIZE_REGULAR,TAG_NAME:C.SPAN,CLOSE_ICON:"cancel-bold"};var Ht=class extends ne(P(v)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderIcon(){return this.iconName?m`
2627
2777
  <mdc-icon
2628
2778
  name="${this.iconName}"
2629
2779
  length-unit="rem"
2630
2780
  size="1"></mdc-icon>
2631
2781
  `:g}handleClose(){this.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))}render(){return m`
2632
2782
  ${this.renderIcon()}
2633
- <mdc-text part="label" type="${li.TEXT_TYPE}" tagname="${li.TAG_NAME}">${this.label}</mdc-text>
2783
+ <mdc-text part="label" type="${xi.TEXT_TYPE}" tagname="${xi.TAG_NAME}">${this.label}</mdc-text>
2634
2784
  <mdc-button
2635
2785
  ?disabled="${this.disabled}"
2636
2786
  variant="tertiary"
2637
2787
  part="close-icon"
2638
2788
  aria-label="${this.clearAriaLabel}"
2639
- prefix-icon="${li.CLOSE_ICON}"
2789
+ prefix-icon="${xi.CLOSE_ICON}"
2640
2790
  size="20"
2641
2791
  @click="${this.handleClose}"
2642
2792
  ></mdc-button>
2643
- `}};Vt.styles=[...v.styles,...Ml],n([c({type:String})],Vt.prototype,"label",2),n([c({type:Boolean})],Vt.prototype,"error",2),n([c({type:String,attribute:"clear-aria-label"})],Vt.prototype,"clearAriaLabel",2);var Ca=Vt;Ca.register(ni);var Dm=Ca;var $m=u`
2793
+ `}};Ht.styles=[...v.styles,...Xl],n([l({type:String})],Ht.prototype,"label",2),n([l({type:Boolean})],Ht.prototype,"error",2),n([l({type:String,attribute:"clear-aria-label"})],Ht.prototype,"clearAriaLabel",2);var Ua=Ht;Ua.register(yi);var op=Ua;var ip=u`
2644
2794
  :host {
2645
2795
  gap: 0.25rem;
2646
2796
  }
@@ -2698,7 +2848,7 @@
2698
2848
  text-decoration: var(--mds-font-apps-body-small-regular-underline-text-decoration);
2699
2849
  text-transform: var(--mds-font-apps-body-small-regular-underline-text-case);
2700
2850
  }
2701
- `,Dl=[$m];var ao=class extends ie(nt){constructor(){super(...arguments);this.size=kn.LINK_SIZE}getIconSize(){switch(this.size){case Uo.SMALL:return Fo.SMALL;case Uo.MIDSIZE:return Fo.MIDSIZE;default:return Fo.LARGE}}render(){return m`
2851
+ `,jl=[ip];var mo=class extends ne(mt){constructor(){super(...arguments);this.size=Bn.LINK_SIZE}getIconSize(){switch(this.size){case Zo.SMALL:return Xo.SMALL;case Zo.MIDSIZE:return Xo.MIDSIZE;default:return Xo.LARGE}}render(){return m`
2702
2852
  <slot></slot>
2703
2853
  ${this.iconName?m`
2704
2854
  <mdc-icon
@@ -2707,27 +2857,27 @@
2707
2857
  length-unit="rem"
2708
2858
  ></mdc-icon>
2709
2859
  `:g}
2710
- `}};ao.styles=[...nt.styles,...Dl],n([c({type:String,reflect:!0})],ao.prototype,"size",2);var ka=ao;ka.register(Vo);var zm=ka;nt.register(An);var Pm=nt;var $={ARROW_DOWN:"ArrowDown",ARROW_UP:"ArrowUp",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SPACE:" "};var ci=f.constructTagName("listitem"),wa="dynamic-listitem-tooltip-popover",Na="dynamic-listitem-tooltip-triggerid",so={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},_a={VARIANT:so.FULL_WIDTH,TOOLTIP_PLACEMENT:te.TOP};var $l=f.constructTagName("list"),La="header-id";var Vm=u`
2860
+ `}};mo.styles=[...mt.styles,...jl],n([l({type:String,reflect:!0})],mo.prototype,"size",2);var Va=mo;Va.register(Ko);var ap=Va;mt.register(Pn);var sp=mt;var $={ARROW_DOWN:"ArrowDown",ARROW_UP:"ArrowUp",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SPACE:" "};var Ei=f.constructTagName("listitem"),Fa="dynamic-listitem-tooltip-popover",Ba="dynamic-listitem-tooltip-triggerid",po={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},Ha={VARIANT:po.FULL_WIDTH,TOOLTIP_PLACEMENT:oe.TOP};var Ql=f.constructTagName("list"),Ga="header-id";var np=u`
2711
2861
  :host::part(header-text) {
2712
2862
  padding: 0.5rem 0.75rem;
2713
2863
  }
2714
- `,zl=[Vm];var Ar=class extends U(v){constructor(){super();this.dataRole=Ce.LIST;this.addEventListener("keydown",this.handleKeyDown)}handleKeyDown(e){var a;let r=this.getCurrentIndex(e.target),o=this.getNewIndexBasedOnKey(e.key,r,this.listItems.length);o!==void 0&&((a=this.listItems[o])==null||a.focus(),this.resetTabIndexAndSetActiveTabIndex(o))}getCurrentIndex(e){return this.listItems.findIndex(r=>r===e||r===e.parentElement)}getNewIndexBasedOnKey(e,r,o){switch(e){case $.ARROW_DOWN:return(r+1)%o;case $.ARROW_UP:return(r-1+o)%o;case $.HOME:return 0;case $.END:return o-1;default:return}}handleMouseClick(e){let r=this.getCurrentIndex(e.target);this.resetTabIndexAndSetActiveTabIndex(r)}resetTabIndexAndSetActiveTabIndex(e){this.listItems.forEach((r,o)=>{let a=e===o?"0":"-1";r==null||r.setAttribute("tabindex",a)})}firstUpdated(){this.resetTabIndexAndSetActiveTabIndex(0)}render(){var r;let e=this.headerText?m`
2864
+ `,Jl=[np];var Cr=class extends V(v){constructor(){super();this.dataRole=ie.LIST;this.addEventListener("keydown",this.handleKeyDown)}handleKeyDown(e){var a;let r=this.getCurrentIndex(e.target),o=this.getNewIndexBasedOnKey(e.key,r,this.listItems.length);o!==void 0&&((a=this.listItems[o])==null||a.focus(),this.resetTabIndexAndSetActiveTabIndex(o))}getCurrentIndex(e){return this.listItems.findIndex(r=>r===e||r===e.parentElement)}getNewIndexBasedOnKey(e,r,o){switch(e){case $.ARROW_DOWN:return(r+1)%o;case $.ARROW_UP:return(r-1+o)%o;case $.HOME:return 0;case $.END:return o-1;default:return}}handleMouseClick(e){let r=this.getCurrentIndex(e.target);this.resetTabIndexAndSetActiveTabIndex(r)}resetTabIndexAndSetActiveTabIndex(e){this.listItems.forEach((r,o)=>{let a=e===o?"0":"-1";r==null||r.setAttribute("tabindex",a)})}firstUpdated(){this.resetTabIndexAndSetActiveTabIndex(0)}render(){var r;let e=this.headerText?m`
2715
2865
  <mdc-text
2716
- id="${La}"
2866
+ id="${Ga}"
2717
2867
  part="header-text"
2718
- type="${S.BODY_MIDSIZE_BOLD}"
2719
- tagname="${w.SPAN}"
2868
+ type="${E.BODY_MIDSIZE_BOLD}"
2869
+ tagname="${C.SPAN}"
2720
2870
  >${this.headerText}</mdc-text>
2721
2871
  `:g;return m`
2722
2872
  <div
2723
2873
  role="${this.dataRole}"
2724
- aria-labelledby="${this.headerText?La:""}"
2874
+ aria-labelledby="${this.headerText?Ga:""}"
2725
2875
  aria-label="${(r=this.dataAriaLabel)!=null?r:""}"
2726
2876
  >
2727
2877
  ${e}
2728
2878
  <slot role="presentation" @click="${this.handleMouseClick}"></slot>
2729
2879
  </div>
2730
- `}};Ar.styles=[...v.styles,...zl],n([G({selector:`${ci}:not([disabled])`})],Ar.prototype,"listItems",2),n([c({type:String,attribute:"header-text",reflect:!0})],Ar.prototype,"headerText",2);var Ra=Ar;Ra.register($l);var Um=Ra;var di=f.constructTagName("tooltip"),pe={DESCRIPTION:"description",LABEL:"label",NONE:"none"},pt={BACKDROP:!1,DELAY:"0,0",OFFSET:4,PLACEMENT:te.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:pe.DESCRIPTION};var Fm=u`
2880
+ `}};Cr.styles=[...v.styles,...Jl],n([F({selector:`${Ei}:not([disabled])`})],Cr.prototype,"listItems",2),n([l({type:String,attribute:"header-text",reflect:!0})],Cr.prototype,"headerText",2);var Ya=Cr;Ya.register(Ql);var lp=Ya;var Ti=f.constructTagName("tooltip"),ue={DESCRIPTION:"description",LABEL:"label",NONE:"none"},ft={BACKDROP:!1,DELAY:"0,0",OFFSET:4,PLACEMENT:oe.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:ue.DESCRIPTION};var cp=u`
2731
2881
 
2732
2882
  :host {
2733
2883
  --mdc-tooltip-max-width: 400px;
@@ -2752,7 +2902,7 @@
2752
2902
  :host([color='contrast'])::part(popover-content) {
2753
2903
  color: var(--mdc-tooltip-text-color-contrast);
2754
2904
  }
2755
- `,Pl=[Fm];var Sr=class extends Ie{constructor(){super(...arguments);this.tooltipType=pt.TOOLTIP_TYPE}connectedCallback(){super.connectedCallback(),this.backdrop=!1,this.delay=this.delay||pt.DELAY,this.focusTrap=!1,this.hideOnBlur=!0,this.hideOnEscape=!0,this.interactive=!1,this.offset=this.offset||pt.OFFSET,this.placement=this.placement||pt.PLACEMENT,this.role=Ce.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(pe).includes(e)?e:pt.TOOLTIP_TYPE)}onIdUpdated(){this.id.length===0&&(this.id=`mdc-tooltip-${We()}`);let e=document.getElementById(this.triggerID);if(e)switch(this.tooltipType){case pe.DESCRIPTION:e.setAttribute("aria-describedby",this.id);break;case pe.LABEL:e.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(te).includes(this.placement)||(this.placement=pt.PLACEMENT)}onTooltipTypeUpdated(e){let r=e.get("tooltipType");Object.values(pe).includes(this.tooltipType)||this.setTooltipType(pt.TOOLTIP_TYPE);let o=document.getElementById(this.triggerID);if(o){let a=this.getTooltipText();switch(this.tooltipType){case pe.DESCRIPTION:r===pe.LABEL&&o.removeAttribute("aria-labelledby"),o.setAttribute("aria-describedby",this.id);break;case pe.LABEL:r===pe.DESCRIPTION&&o.removeAttribute("aria-describedby"),o.setAttribute("aria-labelledby",this.id);break;default:r===pe.DESCRIPTION?o.removeAttribute("aria-describedby"):r===pe.LABEL&&o.removeAttribute("aria-labelledby");break}a.length>0&&this.tooltipType!==pe.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)}};Sr.styles=[...Ie.styles,...Pl],n([c({type:String,attribute:"tooltip-type",reflect:!0})],Sr.prototype,"tooltipType",2),n([Io()],Sr.prototype,"defaultSlotNodes",2);var Oa=Sr;Oa.register(di);var Bm=Oa;var Hm=u`
2905
+ `,ec=[cp];var kr=class extends ke{constructor(){super(...arguments);this.tooltipType=ft.TOOLTIP_TYPE}connectedCallback(){super.connectedCallback(),this.backdrop=!1,this.delay=this.delay||ft.DELAY,this.focusTrap=!1,this.hideOnBlur=!0,this.hideOnEscape=!0,this.interactive=!1,this.offset=this.offset||ft.OFFSET,this.placement=this.placement||ft.PLACEMENT,this.role=ie.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(ue).includes(e)?e:ft.TOOLTIP_TYPE)}onIdUpdated(){this.id.length===0&&(this.id=`mdc-tooltip-${qe()}`);let e=document.getElementById(this.triggerID);if(e)switch(this.tooltipType){case ue.DESCRIPTION:e.setAttribute("aria-describedby",this.id);break;case ue.LABEL:e.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(oe).includes(this.placement)||(this.placement=ft.PLACEMENT)}onTooltipTypeUpdated(e){let r=e.get("tooltipType");Object.values(ue).includes(this.tooltipType)||this.setTooltipType(ft.TOOLTIP_TYPE);let o=document.getElementById(this.triggerID);if(o){let a=this.getTooltipText();switch(this.tooltipType){case ue.DESCRIPTION:r===ue.LABEL&&o.removeAttribute("aria-labelledby"),o.setAttribute("aria-describedby",this.id);break;case ue.LABEL:r===ue.DESCRIPTION&&o.removeAttribute("aria-describedby"),o.setAttribute("aria-labelledby",this.id);break;default:r===ue.DESCRIPTION?o.removeAttribute("aria-describedby"):r===ue.LABEL&&o.removeAttribute("aria-labelledby");break}a.length>0&&this.tooltipType!==ue.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)}};kr.styles=[...ke.styles,...ec],n([l({type:String,attribute:"tooltip-type",reflect:!0})],kr.prototype,"tooltipType",2),n([Mo()],kr.prototype,"defaultSlotNodes",2);var Wa=kr;Wa.register(Ti);var dp=Wa;var mp=u`
2756
2906
  :host {
2757
2907
  --mdc-listitem-default-background-color: var(--mds-color-theme-background-primary-ghost);
2758
2908
  --mdc-listitem-background-color-hover: var(--mds-color-theme-background-primary-hover);
@@ -2834,27 +2984,27 @@
2834
2984
  display: flex;
2835
2985
  flex-direction: row;
2836
2986
  }
2837
- `,Vl=[Hm,..._()];var ce=class extends P(Le(v)){constructor(){super();this.variant=_a.VARIANT;this.tooltipPlacement=_a.TOOLTIP_PLACEMENT;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)}connectedCallback(){super.connectedCallback(),this.role=this.role||Ce.LISTITEM}handleClick(){this.hideTooltipOnLeave()}displayTooltipForLongText(){var r;if(!this.tooltipText)return;this.id=this.id||Na;let e=document.createElement(di);e.id=wa,e.textContent=this.tooltipText,e.setAttribute("triggerid",this.id),e.setAttribute("placement",this.tooltipPlacement),e.setAttribute("visible",""),e.setAttribute("show-arrow",""),(r=this.parentElement)==null||r.after(e)}hideTooltipOnLeave(){this.id=this.id===Na?"":this.id;let e=document.querySelector(`#${wa}`);e==null||e.remove()}getText(e,r,o){return o?m`
2987
+ `,tc=[mp,..._()];var me=class extends P(Re(v)){constructor(){super();this.variant=Ha.VARIANT;this.tooltipPlacement=Ha.TOOLTIP_PLACEMENT;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)}connectedCallback(){super.connectedCallback(),this.role=this.role||ie.LISTITEM}handleClick(){this.hideTooltipOnLeave()}displayTooltipForLongText(){var r;if(!this.tooltipText)return;this.id=this.id||Ba;let e=document.createElement(Ti);e.id=Fa,e.textContent=this.tooltipText,e.setAttribute("triggerid",this.id),e.setAttribute("placement",this.tooltipPlacement),e.setAttribute("visible",""),e.setAttribute("show-arrow",""),(r=this.parentElement)==null||r.after(e)}hideTooltipOnLeave(){this.id=this.id===Ba?"":this.id;let e=document.querySelector(`#${Fa}`);e==null||e.remove()}getText(e,r,o){return o?m`
2838
2988
  <slot name="${e}">
2839
- <mdc-text part="${e}" type="${r}" tagname="${w.SPAN}">${o}</mdc-text>
2989
+ <mdc-text part="${e}" type="${r}" tagname="${C.SPAN}">${o}</mdc-text>
2840
2990
  </slot>
2841
2991
  `:g}disableSlottedChildren(e){[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(r=>{e?r.setAttribute("disabled",""):r.removeAttribute("disabled")})}update(e){super.update(e),e.has("disabled")&&(this.tabIndex=this.disabled?-1:0,this.disableSlottedChildren(this.disabled),this.setAttribute("aria-disabled",`${this.disabled}`))}render(){return m`
2842
2992
  <div part="leading">
2843
2993
  <slot name="leading-controls"></slot>
2844
2994
  <div part="leading-text">
2845
- ${this.getText("leading-text-primary-label",S.BODY_MIDSIZE_REGULAR,this.label)}
2846
- ${this.getText("leading-text-secondary-label",S.BODY_SMALL_REGULAR,this.secondaryLabel)}
2847
- ${this.getText("leading-text-tertiary-label",S.BODY_SMALL_REGULAR,this.tertiaryLabel)}
2995
+ ${this.getText("leading-text-primary-label",E.BODY_MIDSIZE_REGULAR,this.label)}
2996
+ ${this.getText("leading-text-secondary-label",E.BODY_SMALL_REGULAR,this.secondaryLabel)}
2997
+ ${this.getText("leading-text-tertiary-label",E.BODY_SMALL_REGULAR,this.tertiaryLabel)}
2848
2998
  </div>
2849
2999
  </div>
2850
3000
  <div part="trailing">
2851
3001
  <div part="trailing-text">
2852
- ${this.getText("trailing-text-side-header",S.BODY_MIDSIZE_REGULAR,this.sideHeaderText)}
2853
- ${this.getText("trailing-text-subline",S.BODY_SMALL_REGULAR,this.sublineText)}
3002
+ ${this.getText("trailing-text-side-header",E.BODY_MIDSIZE_REGULAR,this.sideHeaderText)}
3003
+ ${this.getText("trailing-text-subline",E.BODY_SMALL_REGULAR,this.sublineText)}
2854
3004
  </div>
2855
3005
  <slot name="trailing-controls"></slot>
2856
3006
  </div>
2857
- `}};ce.styles=[...v.styles,...Vl],n([G({slot:"leading-controls"})],ce.prototype,"leadingControlsSlot",2),n([G({slot:"trailing-controls"})],ce.prototype,"trailingControlsSlot",2),n([c({type:String,reflect:!0})],ce.prototype,"variant",2),n([c({type:String,reflect:!0})],ce.prototype,"label",2),n([c({type:String,reflect:!0,attribute:"secondary-label"})],ce.prototype,"secondaryLabel",2),n([c({type:String,reflect:!0,attribute:"tertiary-label"})],ce.prototype,"tertiaryLabel",2),n([c({type:String,reflect:!0,attribute:"side-header-text"})],ce.prototype,"sideHeaderText",2),n([c({type:String,reflect:!0,attribute:"subline-text"})],ce.prototype,"sublineText",2),n([c({type:String,reflect:!0,attribute:"tooltip-text"})],ce.prototype,"tooltipText",2),n([c({type:String,reflect:!0,attribute:"tooltip-placement"})],ce.prototype,"tooltipPlacement",2);var je=ce;je.register(ci);var Gm=je;var Ym=u`
3007
+ `}};me.styles=[...v.styles,...tc],n([F({slot:"leading-controls"})],me.prototype,"leadingControlsSlot",2),n([F({slot:"trailing-controls"})],me.prototype,"trailingControlsSlot",2),n([l({type:String,reflect:!0})],me.prototype,"variant",2),n([l({type:String,reflect:!0})],me.prototype,"label",2),n([l({type:String,reflect:!0,attribute:"secondary-label"})],me.prototype,"secondaryLabel",2),n([l({type:String,reflect:!0,attribute:"tertiary-label"})],me.prototype,"tertiaryLabel",2),n([l({type:String,reflect:!0,attribute:"side-header-text"})],me.prototype,"sideHeaderText",2),n([l({type:String,reflect:!0,attribute:"subline-text"})],me.prototype,"sublineText",2),n([l({type:String,reflect:!0,attribute:"tooltip-text"})],me.prototype,"tooltipText",2),n([l({type:String,reflect:!0,attribute:"tooltip-placement"})],me.prototype,"tooltipPlacement",2);var Je=me;Je.register(Ei);var pp=Je;var hp=u`
2858
3008
  :host {
2859
3009
  --mdc-marker-width: 0.25rem;
2860
3010
  --mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
@@ -2879,7 +3029,7 @@
2879
3029
  var(--mdc-marker-striped-background-color) 0.375rem
2880
3030
  );
2881
3031
  }
2882
- `,Ul=[Ym];var Fl=f.constructTagName("marker"),Bl={SOLID:"solid",STRIPED:"striped"};var no=class extends v{constructor(){super(...arguments);this.variant=Bl.SOLID}};no.styles=[...v.styles,...Ul],n([c({type:String,reflect:!0})],no.prototype,"variant",2);var Ma=no;Ma.register(Fl);var Wm=Ma;var mi=f.constructTagName("optgroup"),Da="header-id";var qm=u`
3032
+ `,rc=[hp];var oc=f.constructTagName("marker"),ic={SOLID:"solid",STRIPED:"striped"};var ho=class extends v{constructor(){super(...arguments);this.variant=ic.SOLID}};ho.styles=[...v.styles,...rc],n([l({type:String,reflect:!0})],ho.prototype,"variant",2);var qa=ho;qa.register(oc);var up=qa;var Ai=class extends Je{connectedCallback(){super.connectedCallback(),this.role=ie.MENUITEM,this.variant=po.INSET_RECTANGLE}};Ai.styles=[...Je.styles];var et=Ai;var ac=f.constructTagName("menuitem");et.register(ac);var fp=et;var Si=f.constructTagName("optgroup"),Ka="header-id";var bp=u`
2883
3033
  :host {
2884
3034
  --mdc-optgroup-disabled-color: var(--mds-color-theme-text-primary-disabled);
2885
3035
  }
@@ -2892,23 +3042,23 @@
2892
3042
  color: var(--mdc-optgroup-disabled-color);
2893
3043
  cursor: default;
2894
3044
  }
2895
- `,Hl=[qm];var Ir=class extends U(P(v)){setDisabledForAllOptions(){this.options.forEach(t=>{this.disabled?t.setAttribute("disabled",""):t.removeAttribute("disabled")})}updated(t){super.updated(t),t.has("disabled")&&this.setDisabledForAllOptions()}render(){var e;let t=this.label?m`
3045
+ `,sc=[bp];var Nr=class extends V(P(v)){setDisabledForAllOptions(){this.options.forEach(t=>{this.disabled?t.setAttribute("disabled",""):t.removeAttribute("disabled")})}updated(t){super.updated(t),t.has("disabled")&&this.setDisabledForAllOptions()}render(){var e;let t=this.label?m`
2896
3046
  <mdc-text
2897
- id="${Da}"
3047
+ id="${Ka}"
2898
3048
  part="header-text"
2899
- type="${S.BODY_MIDSIZE_BOLD}"
2900
- tagname="${w.SPAN}"
3049
+ type="${E.BODY_MIDSIZE_BOLD}"
3050
+ tagname="${C.SPAN}"
2901
3051
  >${this.label}</mdc-text>
2902
3052
  `:g;return m`
2903
3053
  <div
2904
3054
  role="group"
2905
- aria-labelledby="${this.label?Da:""}"
3055
+ aria-labelledby="${this.label?Ka:""}"
2906
3056
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
2907
3057
  >
2908
3058
  ${t}
2909
3059
  <slot role="presentation"></slot>
2910
3060
  </div>
2911
- `}};Ir.styles=[...v.styles,...Hl],n([c({type:String,reflect:!0})],Ir.prototype,"label",2),n([G({selector:"mdc-option"})],Ir.prototype,"options",2);var $a=Ir;$a.register(mi);var Km=$a;var Gl="check-bold",lo=f.constructTagName("option");var Zm=u`
3061
+ `}};Nr.styles=[...v.styles,...sc],n([l({type:String,reflect:!0})],Nr.prototype,"label",2),n([F({selector:"mdc-option"})],Nr.prototype,"options",2);var Za=Nr;Za.register(Si);var gp=Za;var nc="check-bold",uo=f.constructTagName("option");var vp=u`
2912
3062
  :host {
2913
3063
  --mdc-option-icon-width: 1rem;
2914
3064
 
@@ -2932,22 +3082,22 @@
2932
3082
  /** 2x of leading and trailing icon width + 2x of column gap on both sides of the label text */
2933
3083
  width: calc(100% - (2 * var(--mdc-option-icon-width)) - (2 * var(--mdc-listitem-column-gap)));
2934
3084
  }
2935
- `,Yl=[Zm];var Ut=class extends ne(je){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role="option",this.variant=so.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}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("selected")&&this.updateAttribute("aria-selected",`${this.selected}`)}render(){let e=this.prefixIcon?m`
3085
+ `,lc=[vp];var Gt=class extends ce(Je){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role="option",this.variant=po.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}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("selected")&&this.updateAttribute("aria-selected",`${this.selected}`)}render(){let e=this.prefixIcon?m`
2936
3086
  <div part="leading-icon">
2937
- <mdc-icon slot="leading-controls" name="${T(this.prefixIcon)}"></mdc-icon>
3087
+ <mdc-icon slot="leading-controls" name="${A(this.prefixIcon)}"></mdc-icon>
2938
3088
  </div>
2939
3089
  `:g,r=this.selected?m`
2940
- <mdc-icon slot="trailing-controls" name="${Gl}"></mdc-icon>
3090
+ <mdc-icon slot="trailing-controls" name="${nc}"></mdc-icon>
2941
3091
  `:g;return m`
2942
3092
  ${e}
2943
3093
  <div part="leading-text">
2944
- ${this.getText("leading-text-primary-label",S.BODY_MIDSIZE_REGULAR,this.label)}
3094
+ ${this.getText("leading-text-primary-label",E.BODY_MIDSIZE_REGULAR,this.label)}
2945
3095
  </div>
2946
3096
  <div part="trailing">
2947
3097
  ${r}
2948
3098
  </div>
2949
3099
  <slot part="default-slot" @slotchange="${this.handleDefaultSlotChange}"></slot>
2950
- `}};Ut.styles=[...je.styles,...Yl],n([c({type:Boolean,reflect:!0})],Ut.prototype,"selected",2),n([c({type:String,reflect:!0,attribute:"prefix-icon"})],Ut.prototype,"prefixIcon",2),n([c({type:String,reflect:!0,attribute:"aria-label"})],Ut.prototype,"ariaLabel",2);var za=Ut;za.register(lo);var Xm=za;Ie.register(El);var jm=Ie;var Qm=[u`
3100
+ `}};Gt.styles=[...Je.styles,...lc],n([l({type:Boolean,reflect:!0})],Gt.prototype,"selected",2),n([l({type:String,reflect:!0,attribute:"prefix-icon"})],Gt.prototype,"prefixIcon",2),n([l({type:String,reflect:!0,attribute:"aria-label"})],Gt.prototype,"ariaLabel",2);var Xa=Gt;Xa.register(uo);var yp=Xa;ke.register($l);var xp=ke;var Ep=[u`
2951
3101
  :host {
2952
3102
  --mdc-progressbar-background-color: var(--mds-color-theme-control-indicator-inactive-normal);
2953
3103
  --mdc-progressbar-active-background-color: var(--mds-color-theme-control-active-normal);
@@ -3031,7 +3181,7 @@
3031
3181
  border: var(--mdc-progressbar-border);
3032
3182
  }
3033
3183
  }
3034
- `],Wl=Qm;var ql=f.constructTagName("progressbar"),pi={DEFAULT:"default",INLINE:"inline"},Kl={VARIANT:pi.DEFAULT,VALIDATION:W.DEFAULT};var Ft=class extends U(ge){constructor(){super(...arguments);this.variant=Kl.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var a;let e=this.getValidationVariant(),r=this.clampedValue>0&&this.clampedValue<100,o=this.error?"100":`${this.clampedValue}`;return m`
3184
+ `],cc=Ep;var dc=f.constructTagName("progressbar"),Ii={DEFAULT:"default",INLINE:"inline"},mc={VARIANT:Ii.DEFAULT,VALIDATION:q.DEFAULT};var Yt=class extends V(ye){constructor(){super(...arguments);this.variant=mc.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var a;let e=this.getValidationVariant(),r=this.clampedValue>0&&this.clampedValue<100,o=this.error?"100":`${this.clampedValue}`;return m`
3035
3185
  <div
3036
3186
  part="progress-container ${r?"gap":""}"
3037
3187
  role="progressbar"
@@ -3043,16 +3193,16 @@
3043
3193
  <div part="progress-bar ${e}" style="width: ${o}%"></div>
3044
3194
  <div part="remaining"></div>
3045
3195
  </div>
3046
- `}}connectedCallback(){super.connectedCallback(),this.id=`mdc-progressbar-${We()}`,this.disabled=void 0}get clampedValue(){let e=Number(this.value);return Number.isNaN(e)?0:Math.max(0,Math.min(100,e))}getValidationVariant(){return this.error?this.helpTextType=W.ERROR:this.clampedValue===100?this.helpTextType=W.SUCCESS:this.helpTextType=W.DEFAULT,this.helpTextType}render(){let e=this.variant===pi.INLINE;return m`
3196
+ `}}connectedCallback(){super.connectedCallback(),this.id=`mdc-progressbar-${qe()}`,this.disabled=void 0}get clampedValue(){let e=Number(this.value);return Number.isNaN(e)?0:Math.max(0,Math.min(100,e))}getValidationVariant(){return this.error?this.helpTextType=q.ERROR:this.clampedValue===100?this.helpTextType=q.SUCCESS:this.helpTextType=q.DEFAULT,this.helpTextType}render(){let e=this.variant===Ii.INLINE;return m`
3047
3197
  ${e?m`<div part="inline-label-container">${this.renderLabelElement()} ${this.renderProgressbar()}</div>`:m`
3048
3198
  <div part="label-container">
3049
3199
  ${this.renderLabelElement()}
3050
- ${this.variant===pi.DEFAULT&&this.label?m`<span part="percentage">${this.clampedValue}%</span>`:""}
3200
+ ${this.variant===Ii.DEFAULT&&this.label?m`<span part="percentage">${this.clampedValue}%</span>`:""}
3051
3201
  </div>
3052
3202
  ${this.renderProgressbar()}
3053
3203
  ${this.renderHelperText()}
3054
3204
  `}
3055
- `}};Ft.styles=[...ge.styles,...Wl],n([c({type:String,reflect:!0})],Ft.prototype,"variant",2),n([c({type:String,reflect:!0})],Ft.prototype,"value",2),n([c({type:Boolean,attribute:"error"})],Ft.prototype,"error",2);var co=Ft;co.register(ql);var Jm=co;var ep=u`
3205
+ `}};Yt.styles=[...ye.styles,...cc],n([l({type:String,reflect:!0})],Yt.prototype,"variant",2),n([l({type:String,reflect:!0})],Yt.prototype,"value",2),n([l({type:Boolean,attribute:"error"})],Yt.prototype,"error",2);var fo=Yt;fo.register(dc);var Tp=fo;var Ap=u`
3056
3206
  :host {
3057
3207
  --mdc-spinner-size: 3rem;
3058
3208
  --mdc-track-color: var(--mds-color-theme-control-indicator-inactive-normal);
@@ -3096,7 +3246,7 @@
3096
3246
  color: var(--mdc-progress-error-color);
3097
3247
  margin: 0.5rem;
3098
3248
  }
3099
- `,Zl=[ep];var Xl=f.constructTagName("progressspinner"),B={RADIUS:20,CIRCUMFERENCE:2*Math.PI*20,STROKE_WIDTH:4,GAP_SIZE:7.5,ERROR_ICON_SIZE:2,SUCCESS_ICON_SIZE:3,ICON_LENGTH_UNIT:"em"},Pa={CHECK_CIRCLE_BOLD:"check-circle-bold",ERROR_LEGACY_FILLED:"error-legacy-filled"};var Va=i=>{if(i===0)return 0;let t=i/100*B.CIRCUMFERENCE-B.GAP_SIZE;return Math.max(t,.1*i)},jl=i=>{let t=B.CIRCUMFERENCE-Va(i)-2*B.GAP_SIZE;return i===0?B.CIRCUMFERENCE:t<0?0:t},Ql=i=>i===0?0:B.GAP_SIZE*.5,Jl=(i,t)=>{let e=t+B.GAP_SIZE*1.5;return i===0?0:e};var hi=class extends co{connectedCallback(){super.connectedCallback(),this.id="",this.disabled=void 0,this.helpTextType=void 0,this.helpText=void 0,this.requiredLabel=void 0,this.variant=void 0,this.label=void 0}renderProgressSpinner(){var a;let t=Va(this.clampedValue),e=jl(this.clampedValue),r=Ql(this.clampedValue),o=Jl(this.clampedValue,t);return m`
3249
+ `,pc=[Ap];var hc=f.constructTagName("progressspinner"),H={RADIUS:20,CIRCUMFERENCE:2*Math.PI*20,STROKE_WIDTH:4,GAP_SIZE:7.5,ERROR_ICON_SIZE:2,SUCCESS_ICON_SIZE:3,ICON_LENGTH_UNIT:"em"},ja={CHECK_CIRCLE_BOLD:"check-circle-bold",ERROR_LEGACY_FILLED:"error-legacy-filled"};var Qa=i=>{if(i===0)return 0;let t=i/100*H.CIRCUMFERENCE-H.GAP_SIZE;return Math.max(t,.1*i)},uc=i=>{let t=H.CIRCUMFERENCE-Qa(i)-2*H.GAP_SIZE;return i===0?H.CIRCUMFERENCE:t<0?0:t},fc=i=>i===0?0:H.GAP_SIZE*.5,bc=(i,t)=>{let e=t+H.GAP_SIZE*1.5;return i===0?0:e};var Ci=class extends fo{connectedCallback(){super.connectedCallback(),this.id="",this.disabled=void 0,this.helpTextType=void 0,this.helpText=void 0,this.requiredLabel=void 0,this.variant=void 0,this.label=void 0}renderProgressSpinner(){var a;let t=Qa(this.clampedValue),e=uc(this.clampedValue),r=fc(this.clampedValue),o=bc(this.clampedValue,t);return m`
3100
3250
  <div
3101
3251
  part="spinner-container ${this.variant}"
3102
3252
  role="progressbar"
@@ -3110,18 +3260,18 @@
3110
3260
  part="spinner-track"
3111
3261
  cx="24"
3112
3262
  cy="24"
3113
- r="${B.RADIUS}"
3114
- stroke-width="${e===0?0:B.STROKE_WIDTH}"
3115
- stroke-dasharray="${e} ${B.CIRCUMFERENCE}"
3263
+ r="${H.RADIUS}"
3264
+ stroke-width="${e===0?0:H.STROKE_WIDTH}"
3265
+ stroke-dasharray="${e} ${H.CIRCUMFERENCE}"
3116
3266
  stroke-dashoffset="-${o}"
3117
3267
  />
3118
3268
  <circle
3119
3269
  part="spinner-progress"
3120
3270
  cx="24"
3121
3271
  cy="24"
3122
- r="${B.RADIUS}"
3123
- stroke-width="${t===0?0:B.STROKE_WIDTH}"
3124
- stroke-dasharray="${t} ${B.CIRCUMFERENCE}"
3272
+ r="${H.RADIUS}"
3273
+ stroke-width="${t===0?0:H.STROKE_WIDTH}"
3274
+ stroke-dasharray="${t} ${H.CIRCUMFERENCE}"
3125
3275
  stroke-dashoffset="-${r}"
3126
3276
  />
3127
3277
  </svg>
@@ -3130,18 +3280,18 @@
3130
3280
  <mdc-icon
3131
3281
  part="error-icon"
3132
3282
  aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
3133
- name="${Pa.ERROR_LEGACY_FILLED}"
3134
- size="${B.ERROR_ICON_SIZE}"
3135
- length-unit="${B.ICON_LENGTH_UNIT}"></mdc-icon>
3283
+ name="${ja.ERROR_LEGACY_FILLED}"
3284
+ size="${H.ERROR_ICON_SIZE}"
3285
+ length-unit="${H.ICON_LENGTH_UNIT}"></mdc-icon>
3136
3286
  `}renderSuccessState(){var t;return m`
3137
3287
  <mdc-icon
3138
3288
  part="success-icon"
3139
3289
  aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
3140
- name="${Pa.CHECK_CIRCLE_BOLD}"
3141
- size="${B.SUCCESS_ICON_SIZE}"
3142
- length-unit="${B.ICON_LENGTH_UNIT}"></mdc-icon>
3290
+ name="${ja.CHECK_CIRCLE_BOLD}"
3291
+ size="${H.SUCCESS_ICON_SIZE}"
3292
+ length-unit="${H.ICON_LENGTH_UNIT}"></mdc-icon>
3143
3293
  `}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():m`
3144
- ${this.renderProgressSpinner()}`}};hi.styles=[...v.styles,...Zl];var Ua=hi;Ua.register(Xl);var tp=Ua;var rp=[N,u`
3294
+ ${this.renderProgressSpinner()}`}};Ci.styles=[...v.styles,...pc];var Ja=Ci;Ja.register(hc);var Sp=Ja;var Ip=[w,u`
3145
3295
  :host{
3146
3296
  display: flex;
3147
3297
  flex-direction: row;
@@ -3228,10 +3378,10 @@
3228
3378
  display: none;
3229
3379
  }
3230
3380
 
3231
- `,..._(!0)],ec=rp;var Bt=class extends ne(U(J)){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?m`<div class="mdc-radio__label-container">
3381
+ `,..._(!0)],gc=Ip;var Wt=class extends ce(V(te)){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?m`<div class="mdc-radio__label-container">
3232
3382
  ${this.renderLabel()}
3233
3383
  ${this.renderHelperText()}
3234
- </div>`:g}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}firstUpdated(){this.updateTabIndex()}getAllRadiosWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-radio[name="${this.name}"]`))}dispatchChangeEvent(e){let r=e.constructor;this.dispatchEvent(new r(e.type,e))}formResetCallback(){this.getAllRadiosWithinSameGroup().forEach(r=>{r.checked=!1}),this.updateComplete.then(()=>{this.setActualFormValue()}).catch(r=>{this.onerror&&this.onerror(r)})}formStateRestoreCallback(e){this.value===e&&e!==""&&(this.checked=!0)}setComponentValidity(e){e?this.internals.setValidity({}):this.requiredLabel&&!this.checked&&(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()),this.updateTabIndex()}setGroupValidity(e,r){this.updateComplete.then(()=>{e.forEach(o=>{o.setComponentValidity(r)})}).catch(o=>{this.onerror&&this.onerror(o)})}setActualFormValue(){let e="";this.checked?e=this.value?this.value:"on":e=null;let r=this.getAllRadiosWithinSameGroup();if(this.checked)this.setGroupValidity(r,!0);else{let o=r.some(l=>l.requiredLabel),a=!!r.find(l=>l.checked),s=o&&!a;this.setGroupValidity(r,!s)}this.internals.setFormValue(e)}handleChange(e){var a;if(this.disabled||this.readonly)return;this.getAllRadiosWithinSameGroup().forEach(s=>{var d;let l=(d=s.shadowRoot)==null?void 0:d.querySelector("input");l&&(s.checked=!1,l.checked=!1)}),this.checked=!0;let o=(a=this.shadowRoot)==null?void 0:a.querySelector("input");o&&(o.checked=!0),this.dispatchChangeEvent(e)}updateRadio(e,r,o){var a,s;(s=(a=e[r].shadowRoot)==null?void 0:a.querySelector("input"))==null||s.focus(),e[r].handleChange(o)}handleKeyDown(e){var s;if(this.disabled)return;let o=this.getAllRadiosWithinSameGroup().filter(l=>!l.disabled),a=o.indexOf(this);if(["ArrowDown","ArrowRight"].includes(e.key)){let l=(a+1)%o.length;this.updateRadio(o,l,e)}else if(["ArrowUp","ArrowLeft"].includes(e.key)){let l=(a-1+o.length)%o.length;this.updateRadio(o,l,e)}else e.key===" "&&this.updateRadio(o,a,e);this.updateTabIndex(),e.key==="Enter"&&((s=this.form)==null||s.requestSubmit())}updateTabIndex(){let e=this.getAllRadiosWithinSameGroup(),r=e.find(a=>a.checked),o=e.find(a=>!a.disabled);e.forEach(a=>{var l;let s=(l=a.shadowRoot)==null?void 0:l.querySelector("input");s&&(s.tabIndex=-1,(a===r||!r&&a===o)&&(s.tabIndex=0))})}update(e){super.update(e),e.has("checked")&&this.setActualFormValue()}render(){var e;return m`
3384
+ </div>`:g}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}firstUpdated(){this.updateTabIndex()}getAllRadiosWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-radio[name="${this.name}"]`))}dispatchChangeEvent(e){let r=e.constructor;this.dispatchEvent(new r(e.type,e))}formResetCallback(){this.getAllRadiosWithinSameGroup().forEach(r=>{r.checked=!1}),this.updateComplete.then(()=>{this.setActualFormValue()}).catch(r=>{this.onerror&&this.onerror(r)})}formStateRestoreCallback(e){this.value===e&&e!==""&&(this.checked=!0)}setComponentValidity(e){e?this.internals.setValidity({}):this.requiredLabel&&!this.checked&&(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()),this.updateTabIndex()}setGroupValidity(e,r){this.updateComplete.then(()=>{e.forEach(o=>{o.setComponentValidity(r)})}).catch(o=>{this.onerror&&this.onerror(o)})}setActualFormValue(){let e="";this.checked?e=this.value?this.value:"on":e=null;let r=this.getAllRadiosWithinSameGroup();if(this.checked)this.setGroupValidity(r,!0);else{let o=r.some(c=>c.requiredLabel),a=!!r.find(c=>c.checked),s=o&&!a;this.setGroupValidity(r,!s)}this.internals.setFormValue(e)}handleChange(e){var a;if(this.disabled||this.readonly)return;this.getAllRadiosWithinSameGroup().forEach(s=>{var d;let c=(d=s.shadowRoot)==null?void 0:d.querySelector("input");c&&(s.checked=!1,c.checked=!1)}),this.checked=!0;let o=(a=this.shadowRoot)==null?void 0:a.querySelector("input");o&&(o.checked=!0),this.dispatchChangeEvent(e)}updateRadio(e,r,o){var a,s;(s=(a=e[r].shadowRoot)==null?void 0:a.querySelector("input"))==null||s.focus(),e[r].handleChange(o)}handleKeyDown(e){var s;if(this.disabled)return;let o=this.getAllRadiosWithinSameGroup().filter(c=>!c.disabled),a=o.indexOf(this);if(["ArrowDown","ArrowRight"].includes(e.key)){let c=(a+1)%o.length;this.updateRadio(o,c,e)}else if(["ArrowUp","ArrowLeft"].includes(e.key)){let c=(a-1+o.length)%o.length;this.updateRadio(o,c,e)}else e.key===" "&&this.updateRadio(o,a,e);this.updateTabIndex(),e.key==="Enter"&&((s=this.form)==null||s.requestSubmit())}updateTabIndex(){let e=this.getAllRadiosWithinSameGroup(),r=e.find(a=>a.checked),o=e.find(a=>!a.disabled);e.forEach(a=>{var c;let s=(c=a.shadowRoot)==null?void 0:c.querySelector("input");s&&(s.tabIndex=-1,(a===r||!r&&a===o)&&(s.tabIndex=0))})}update(e){super.update(e),e.has("checked")&&this.setActualFormValue()}render(){var e;return m`
3235
3385
  <mdc-staticradio
3236
3386
  class="mdc-focus-ring"
3237
3387
  ?checked="${this.checked}"
@@ -3243,8 +3393,8 @@
3243
3393
  type="radio"
3244
3394
  role="radio"
3245
3395
  ?autofocus="${this.autofocus}"
3246
- name="${T(this.name)}"
3247
- value="${T(this.value)}"
3396
+ name="${A(this.name)}"
3397
+ value="${A(this.value)}"
3248
3398
  ?required="${!!this.requiredLabel}"
3249
3399
  @change=${this.handleChange}
3250
3400
  @keydown=${this.handleKeyDown}
@@ -3253,17 +3403,17 @@
3253
3403
  ?disabled=${this.disabled}
3254
3404
  class="mdc-radio__input"
3255
3405
  aria-checked="${this.checked}"
3256
- aria-describedby="${T(this.helpText?V.HELPER_TEXT_ID:"")}"
3406
+ aria-describedby="${A(this.helpText?U.HELPER_TEXT_ID:"")}"
3257
3407
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
3258
3408
  />
3259
3409
  </mdc-staticradio>
3260
3410
  ${this.renderLabelAndHelperText()}
3261
- `}};Bt.styles=[...J.styles,...ec],n([c({type:Boolean,reflect:!0})],Bt.prototype,"checked",2),n([c({type:Boolean,reflect:!0})],Bt.prototype,"readonly",2),n([c({type:Boolean,reflect:!0})],Bt.prototype,"autofocus",2);var Fa=Bt;var ui=f.constructTagName("radio");Fa.register(ui);var op=Fa;var mo=class extends ai{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var e,r,o,a,s;(s=(a=(o=(r=Array.from(((e=this.shadowRoot)==null?void 0:e.querySelectorAll("slot"))||[]))==null?void 0:r.flatMap(l=>l.assignedElements({flatten:!0})))==null?void 0:o.filter(l=>l.tagName.toLowerCase()===ui||l.tagName.toLowerCase()===qo))==null?void 0:a.filter(l=>!l.hasAttribute("name")))==null||s.forEach(l=>{l.setAttribute("name",this.name),this.requiredLabel&&l.setAttribute("required-label",this.requiredLabel)})}};mo.styles=[...ai.styles],n([c({type:String})],mo.prototype,"name",2);var Ba=mo;var tc=f.constructTagName("radiogroup");Ba.register(tc);var ip=Ba;var rc=f.constructTagName("screenreaderannouncer"),ap={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},Cr={ARIA_LIVE:ap.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4};var sp=[u`
3411
+ `}};Wt.styles=[...te.styles,...gc],n([l({type:Boolean,reflect:!0})],Wt.prototype,"checked",2),n([l({type:Boolean,reflect:!0})],Wt.prototype,"readonly",2),n([l({type:Boolean,reflect:!0})],Wt.prototype,"autofocus",2);var es=Wt;var ki=f.constructTagName("radio");es.register(ki);var Cp=es;var bo=class extends gi{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var e,r,o,a,s;(s=(a=(o=(r=Array.from(((e=this.shadowRoot)==null?void 0:e.querySelectorAll("slot"))||[]))==null?void 0:r.flatMap(c=>c.assignedElements({flatten:!0})))==null?void 0:o.filter(c=>c.tagName.toLowerCase()===ki||c.tagName.toLowerCase()===oi))==null?void 0:a.filter(c=>!c.hasAttribute("name")))==null||s.forEach(c=>{c.setAttribute("name",this.name),this.requiredLabel&&c.setAttribute("required-label",this.requiredLabel)})}};bo.styles=[...gi.styles],n([l({type:String})],bo.prototype,"name",2);var ts=bo;var vc=f.constructTagName("radiogroup");ts.register(vc);var kp=ts;var yc=f.constructTagName("screenreaderannouncer"),Np={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},wr={ARIA_LIVE:Np.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4};var wp=[u`
3262
3412
  :host {
3263
3413
  display: none;
3264
3414
  visibility: hidden;
3265
3415
  }
3266
- `],oc=sp;var Qe=class extends v{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=Cr.ARIA_LIVE;this.delay=Cr.DELAY;this.timeout=Cr.TIMEOUT;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce(e,r,o,a){var s;if(e.length>0){let l=`mdc-screenreaderannouncer-announcement-${We()}`,d=document.createElement("div");d.id=l,d.ariaLive=a,(s=document.getElementById(this.identity))==null||s.appendChild(d);let p=window.setTimeout(()=>{let h=document.createElement("p");h.textContent=e,d.appendChild(h),this.ariaLiveAnnouncementIds.push(l);let b=window.setTimeout(()=>{var x;(x=document.getElementById(l))==null||x.remove()},o);this.timeOutIds.push(b)},r);this.timeOutIds.push(p)}}clearTimeOutsAndAnnouncements(){this.timeOutIds.forEach(e=>{window.clearTimeout(e)}),this.ariaLiveAnnouncementIds.forEach(e=>{var r;(r=document.getElementById(e))==null||r.remove()})}createAnnouncementAriaLiveRegion(){let e=document.getElementById(this.identity);if(!e){e=document.createElement("div"),e.id=this.identity;let r=document.createElement("style");r.textContent=`
3416
+ `],xc=wp;var tt=class extends v{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=wr.ARIA_LIVE;this.delay=wr.DELAY;this.timeout=wr.TIMEOUT;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce(e,r,o,a){var s;if(e.length>0){let c=`mdc-screenreaderannouncer-announcement-${qe()}`,d=document.createElement("div");d.id=c,d.ariaLive=a,(s=document.getElementById(this.identity))==null||s.appendChild(d);let p=window.setTimeout(()=>{let h=document.createElement("p");h.textContent=e,d.appendChild(h),this.ariaLiveAnnouncementIds.push(c);let b=window.setTimeout(()=>{var x;(x=document.getElementById(c))==null||x.remove()},o);this.timeOutIds.push(b)},r);this.timeOutIds.push(p)}}clearTimeOutsAndAnnouncements(){this.timeOutIds.forEach(e=>{window.clearTimeout(e)}),this.ariaLiveAnnouncementIds.forEach(e=>{var r;(r=document.getElementById(e))==null||r.remove()})}createAnnouncementAriaLiveRegion(){let e=document.getElementById(this.identity);if(!e){e=document.createElement("div"),e.id=this.identity;let r=document.createElement("style");r.textContent=`
3267
3417
  .mdc-screenreaderannouncer__visually-hidden {
3268
3418
  clip: rect(0 0 0 0);
3269
3419
  clip-path: inset(50%);
@@ -3273,7 +3423,7 @@
3273
3423
  white-space: nowrap;
3274
3424
  width: 1px;
3275
3425
  }
3276
- `,e.appendChild(r),e.classList.add("mdc-screenreaderannouncer__visually-hidden"),document.body.appendChild(e)}}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=Cr.IDENTITY),this.createAnnouncementAriaLiveRegion()}disconnectedCallback(){super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements()}updated(e){e.has("identity")&&this.identity.length===0&&(this.identity=Cr.IDENTITY,this.createAnnouncementAriaLiveRegion()),e.has("announcement")&&this.announcement.length>0&&(this.announce(this.announcement,this.delay,this.timeout,this.dataAriaLive),this.announcement="")}};Qe.styles=[...v.styles,...oc],n([c({type:String,reflect:!0})],Qe.prototype,"announcement",2),n([c({type:String,reflect:!0})],Qe.prototype,"identity",2),n([c({type:String,reflect:!0,attribute:"data-aria-live"})],Qe.prototype,"dataAriaLive",2),n([c({type:Number,reflect:!0})],Qe.prototype,"delay",2),n([c({type:Number,reflect:!0})],Qe.prototype,"timeout",2);var Ha=Qe;Ha.register(rc);var np=Ha;var lp=u`
3426
+ `,e.appendChild(r),e.classList.add("mdc-screenreaderannouncer__visually-hidden"),document.body.appendChild(e)}}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=wr.IDENTITY),this.createAnnouncementAriaLiveRegion()}disconnectedCallback(){super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements()}updated(e){e.has("identity")&&this.identity.length===0&&(this.identity=wr.IDENTITY,this.createAnnouncementAriaLiveRegion()),e.has("announcement")&&this.announcement.length>0&&(this.announce(this.announcement,this.delay,this.timeout,this.dataAriaLive),this.announcement="")}};tt.styles=[...v.styles,...xc],n([l({type:String,reflect:!0})],tt.prototype,"announcement",2),n([l({type:String,reflect:!0})],tt.prototype,"identity",2),n([l({type:String,reflect:!0,attribute:"data-aria-live"})],tt.prototype,"dataAriaLive",2),n([l({type:Number,reflect:!0})],tt.prototype,"delay",2),n([l({type:Number,reflect:!0})],tt.prototype,"timeout",2);var rs=tt;rs.register(yc);var _p=rs;var Lp=u`
3277
3427
 
3278
3428
  :host::part(filters-container){
3279
3429
  display: flex;
@@ -3300,9 +3450,9 @@
3300
3450
  scrollbar-width: none;
3301
3451
  }
3302
3452
 
3303
- `,ic=[lp];var ac=f.constructTagName("searchfield"),po={TYPE:Ia.SEARCH,ICON:"search-bold",CLOSE_BTN:!0,INPUT_CHIP_TAG:ni};var Ht=class extends Tr{constructor(){super(...arguments);this.isInputFocused=!1;this.hasInputChips=!1}handleKeyDown(e){super.handleKeyDown(e),e.key==="Escape"&&this.clearInputText()}connectedCallback(){super.connectedCallback(),this.leadingIcon=po.ICON,this.trailingButton=po.CLOSE_BTN,this.helpText=void 0,this.helpTextType=void 0,this.requiredLabel=void 0,this.validationMessage=void 0,this.prefixText=void 0}renderInputChips(){var e;this.hasInputChips=!!((e=this.inputChips)!=null&&e.length),this.inputChips&&this.inputChips.forEach(r=>{r.matches(po.INPUT_CHIP_TAG)||r.remove()})}firstUpdated(){this.inputElement.onfocus=()=>{this.isInputFocused=!0},this.inputElement.onblur=()=>{this.isInputFocused=!1}}clearInputText(){var e;super.clearInputText(),(e=this.inputChips)==null||e.forEach(r=>{r.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))})}render(){return m`
3453
+ `,Ec=[Lp];var Tc=f.constructTagName("searchfield"),go={TYPE:Pa.SEARCH,ICON:"search-bold",CLOSE_BTN:!0,INPUT_CHIP_TAG:yi};var qt=class extends Ir{constructor(){super(...arguments);this.isInputFocused=!1;this.hasInputChips=!1}handleKeyDown(e){super.handleKeyDown(e),e.key==="Escape"&&this.clearInputText()}connectedCallback(){super.connectedCallback(),this.leadingIcon=go.ICON,this.trailingButton=go.CLOSE_BTN,this.helpText=void 0,this.helpTextType=void 0,this.requiredLabel=void 0,this.validationMessage=void 0,this.prefixText=void 0}renderInputChips(){var e;this.hasInputChips=!!((e=this.inputChips)!=null&&e.length),this.inputChips&&this.inputChips.forEach(r=>{r.matches(go.INPUT_CHIP_TAG)||r.remove()})}firstUpdated(){this.inputElement.onfocus=()=>{this.isInputFocused=!0},this.inputElement.onblur=()=>{this.isInputFocused=!1}}clearInputText(){var e;super.clearInputText(),(e=this.inputChips)==null||e.forEach(r=>{r.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))})}render(){return m`
3304
3454
  ${this.renderLabelElement()}
3305
- <div class="${cr({"input-container":!0,"mdc-focus-ring":this.isInputFocused})}" part="input-container">
3455
+ <div class="${pr({"input-container":!0,"mdc-focus-ring":this.isInputFocused})}" part="input-container">
3306
3456
  ${this.renderLeadingIcon()}
3307
3457
  <div part='scrollable-container' tabindex='-1'>
3308
3458
  <div part="filters-container"
@@ -3310,11 +3460,11 @@
3310
3460
  @keydown=${e=>e.key==="Enter"?this.inputElement.focus():null}
3311
3461
  @keyup=${e=>e.key===" "?this.inputElement.focus():null}>
3312
3462
  <slot name="filters" @slotchange=${this.renderInputChips}></slot></div>
3313
- ${this.renderInputElement(po.TYPE,this.hasInputChips)}
3463
+ ${this.renderInputElement(go.TYPE,this.hasInputChips)}
3314
3464
  </div>
3315
3465
  ${this.renderTrailingButton(this.hasInputChips)}
3316
3466
  </div>
3317
- `}};Ht.styles=[...Tr.styles,...ic],n([G({slot:"filters"})],Ht.prototype,"inputChips",2),n([L()],Ht.prototype,"isInputFocused",2),n([L()],Ht.prototype,"hasInputChips",2);var Ga=Ht;Ga.register(ac);var cp=Ga;var sc=f.constructTagName("select"),fi={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"};var dp=u`
3467
+ `}};qt.styles=[...Ir.styles,...Ec],n([F({slot:"filters"})],qt.prototype,"inputChips",2),n([L()],qt.prototype,"isInputFocused",2),n([L()],qt.prototype,"hasInputChips",2);var os=qt;os.register(Tc);var Rp=os;var Ac=f.constructTagName("select"),Ni={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"};var Op=u`
3318
3468
  :host {
3319
3469
  --mdc-select-background-color: var(--mds-color-theme-background-primary-ghost);
3320
3470
  --mdc-select-icon-border-color: var(--mds-color-theme-outline-input-normal);
@@ -3416,7 +3566,7 @@
3416
3566
  :host([help-text-type="warning"])::part(base-container) {
3417
3567
  border-color: var(--mdc-select-warning-border-color);
3418
3568
  }
3419
- `,nc=[dp,..._(!0)];var re=class extends ne(U(J)){constructor(){super(...arguments);this.readonly=!1;this.height="auto";this.baseIconName=fi.ARROW_DOWN;this.selectedValue="";this.displayPopover=!1;this.activeDescendant="";this.popoverWidth="100%"}connectedCallback(){super.connectedCallback(),this.value=void 0,this.addEventListener("keydown",this.handleKeydown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeydown)}getAllValidOptions(){var e;return((e=this.optionsList)==null?void 0:e.map(r=>r.tagName.toLowerCase()===lo?r:r.tagName.toLowerCase()===mi?Array.from(r.children).filter(o=>o.tagName.toLowerCase()===lo):[]).flat())||[]}handlePopoverOpen(){this.displayPopover=!0,this.baseIconName=fi.ARROW_UP}handlePopoverClose(){this.displayPopover=!1,this.baseIconName=fi.ARROW_DOWN}updateTabIndexForAllOptions(e){var o;let r=!1;this.getAllValidOptions().forEach(a=>{a===e?(this.setSelectedValue(a),r=!0,a.setAttribute("selected",""),a.setAttribute("tabindex","0")):(a==null||a.setAttribute("tabindex","-1"),a==null||a.removeAttribute("selected"))}),!r&&((o=this.getAllValidOptions()[0])==null||o.setAttribute("tabindex","0"))}handleOptionsClick(e){this.updateTabIndexForAllOptions(e.target)}setSelectedValue(e){var r,o,a,s;this.selectedValueText=(o=(r=e==null?void 0:e.getAttribute("label"))!=null?r:e==null?void 0:e.textContent)!=null?o:"",this.selectedValue=(s=(a=e==null?void 0:e.getAttribute("value"))!=null?a:e==null?void 0:e.textContent)!=null?s:"",this.internals.setFormValue(this.selectedValue),this.manageRequired(),this.dispatchChange(this.selectedValue)}manageRequired(){!this.selectedValue&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.selectedValue="",this.selectedValueText=void 0,this.internals.setFormValue(this.selectedValue),this.updateTabIndexForAllOptions()}formStateRestoreCallback(e){this.selectedValue=e,this.selectedValueText=e}dispatchChange(e){e&&this.dispatchEvent(new CustomEvent("change",{detail:{value:e},composed:!0,bubbles:!0}))}handleKeydown(e){this.displayPopover?this.handlePopoverOnOpen(e):this.handlePopoverOnClose(e)}handlePopoverOnOpen(e){var r;switch(e.key){case $.SPACE:this.updateTabIndexForAllOptions(e.target),this.closePopover(),e.preventDefault();break;case $.ENTER:this.updateTabIndexForAllOptions(e.target),this.closePopover(),e.preventDefault(),(r=this.form)==null||r.requestSubmit();break;case $.ESCAPE:this.closePopover(),e.stopPropagation();break;case $.HOME:this.setFocusAndTabIndex(0),e.preventDefault();break;case $.END:this.setFocusAndTabIndex(this.getAllValidOptions().length-1),e.preventDefault();break;case $.ARROW_DOWN:case $.ARROW_UP:case $.PAGE_DOWN:case $.PAGE_UP:this.handleOptionsNavigation(e),this.updateActivedescendant(e.target);break;default:break}}handlePopoverOnClose(e){switch(e.key){case $.ARROW_DOWN:case $.ARROW_UP:case $.ENTER:case $.SPACE:this.openPopover(),e.preventDefault();break;case $.HOME:this.openPopover(),this.setFocusAndTabIndex(0),e.preventDefault();break;case $.END:this.openPopover(),this.setFocusAndTabIndex(this.getAllValidOptions().length-1),e.preventDefault();break;default:break}}handleOptionsNavigation(e){let r=this.getAllValidOptions(),o=r.findIndex(s=>s===e.target),a=this.getNewIndexBasedOnKey(e.key,o,r.length);a!==-1&&(this.setFocusAndTabIndex(a),e.preventDefault())}getNewIndexBasedOnKey(e,r,o){return e===$.ARROW_DOWN&&r!==o-1?r+1:e===$.ARROW_UP&&r>0?r-1:e===$.PAGE_DOWN?r+10>o?o-1:r+10:e===$.PAGE_UP?r-10<0?0:r-10:-1}updateActivedescendant(e){var o,a;let r=this.getAllValidOptions().findIndex(s=>s===e);this.activeDescendant=(a=(o=this.getAllValidOptions()[r])==null?void 0:o.id)!=null?a:""}resetActivedescendant(){this.activeDescendant=""}setFocusAndTabIndex(e){var r;(r=this.getAllValidOptions()[e])==null||r.focus(),this.getAllValidOptions().forEach((o,a)=>{let s=e===a?"0":"-1";o==null||o.setAttribute("tabindex",s)})}openPopover(){this.displayPopover=!0,this.resetActivedescendant()}closePopover(){this.displayPopover=!1,this.resetActivedescendant()}firstUpdated(){let e=this.getAllValidOptions(),r=e.findIndex(o=>o==null?void 0:o.hasAttribute("selected"));r!==-1?(this.setSelectedValue(e[r]),this.updateTabIndexForAllOptions(e[r])):this.placeholder?this.placeholder&&this.manageRequired():(this.setSelectedValue(e[0]),this.updateTabIndexForAllOptions())}getNativeSelect(){return m`
3569
+ `,Sc=[Op,..._(!0)];var ae=class extends ce(V(te)){constructor(){super(...arguments);this.readonly=!1;this.height="auto";this.baseIconName=Ni.ARROW_DOWN;this.selectedValue="";this.displayPopover=!1;this.activeDescendant="";this.popoverWidth="100%"}connectedCallback(){super.connectedCallback(),this.value=void 0,this.addEventListener("keydown",this.handleKeydown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeydown)}getAllValidOptions(){var e;return((e=this.optionsList)==null?void 0:e.map(r=>r.tagName.toLowerCase()===uo?r:r.tagName.toLowerCase()===Si?Array.from(r.children).filter(o=>o.tagName.toLowerCase()===uo):[]).flat())||[]}handlePopoverOpen(){this.displayPopover=!0,this.baseIconName=Ni.ARROW_UP}handlePopoverClose(){this.displayPopover=!1,this.baseIconName=Ni.ARROW_DOWN}updateTabIndexForAllOptions(e){var o;let r=!1;this.getAllValidOptions().forEach(a=>{a===e?(this.setSelectedValue(a),r=!0,a.setAttribute("selected",""),a.setAttribute("tabindex","0")):(a==null||a.setAttribute("tabindex","-1"),a==null||a.removeAttribute("selected"))}),!r&&((o=this.getAllValidOptions()[0])==null||o.setAttribute("tabindex","0"))}handleOptionsClick(e){this.updateTabIndexForAllOptions(e.target)}setSelectedValue(e){var r,o,a,s;this.selectedValueText=(o=(r=e==null?void 0:e.getAttribute("label"))!=null?r:e==null?void 0:e.textContent)!=null?o:"",this.selectedValue=(s=(a=e==null?void 0:e.getAttribute("value"))!=null?a:e==null?void 0:e.textContent)!=null?s:"",this.internals.setFormValue(this.selectedValue),this.manageRequired(),this.dispatchChange(this.selectedValue)}manageRequired(){!this.selectedValue&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.selectedValue="",this.selectedValueText=void 0,this.internals.setFormValue(this.selectedValue),this.updateTabIndexForAllOptions()}formStateRestoreCallback(e){this.selectedValue=e,this.selectedValueText=e}dispatchChange(e){e&&this.dispatchEvent(new CustomEvent("change",{detail:{value:e},composed:!0,bubbles:!0}))}handleKeydown(e){this.displayPopover?this.handlePopoverOnOpen(e):this.handlePopoverOnClose(e)}handlePopoverOnOpen(e){var r;switch(e.key){case $.SPACE:this.updateTabIndexForAllOptions(e.target),this.closePopover(),e.preventDefault();break;case $.ENTER:this.updateTabIndexForAllOptions(e.target),this.closePopover(),e.preventDefault(),(r=this.form)==null||r.requestSubmit();break;case $.ESCAPE:this.closePopover(),e.stopPropagation();break;case $.HOME:this.setFocusAndTabIndex(0),e.preventDefault();break;case $.END:this.setFocusAndTabIndex(this.getAllValidOptions().length-1),e.preventDefault();break;case $.ARROW_DOWN:case $.ARROW_UP:case $.PAGE_DOWN:case $.PAGE_UP:this.handleOptionsNavigation(e),this.updateActivedescendant(e.target);break;default:break}}handlePopoverOnClose(e){switch(e.key){case $.ARROW_DOWN:case $.ARROW_UP:case $.ENTER:case $.SPACE:this.openPopover(),e.preventDefault();break;case $.HOME:this.openPopover(),this.setFocusAndTabIndex(0),e.preventDefault();break;case $.END:this.openPopover(),this.setFocusAndTabIndex(this.getAllValidOptions().length-1),e.preventDefault();break;default:break}}handleOptionsNavigation(e){let r=this.getAllValidOptions(),o=r.findIndex(s=>s===e.target),a=this.getNewIndexBasedOnKey(e.key,o,r.length);a!==-1&&(this.setFocusAndTabIndex(a),e.preventDefault())}getNewIndexBasedOnKey(e,r,o){return e===$.ARROW_DOWN&&r!==o-1?r+1:e===$.ARROW_UP&&r>0?r-1:e===$.PAGE_DOWN?r+10>o?o-1:r+10:e===$.PAGE_UP?r-10<0?0:r-10:-1}updateActivedescendant(e){var o,a;let r=this.getAllValidOptions().findIndex(s=>s===e);this.activeDescendant=(a=(o=this.getAllValidOptions()[r])==null?void 0:o.id)!=null?a:""}resetActivedescendant(){this.activeDescendant=""}setFocusAndTabIndex(e){var r;(r=this.getAllValidOptions()[e])==null||r.focus(),this.getAllValidOptions().forEach((o,a)=>{let s=e===a?"0":"-1";o==null||o.setAttribute("tabindex",s)})}openPopover(){this.displayPopover=!0,this.resetActivedescendant()}closePopover(){this.displayPopover=!1,this.resetActivedescendant()}firstUpdated(){let e=this.getAllValidOptions(),r=e.findIndex(o=>o==null?void 0:o.hasAttribute("selected"));r!==-1?(this.setSelectedValue(e[r]),this.updateTabIndexForAllOptions(e[r])):this.placeholder?this.placeholder&&this.manageRequired():(this.setSelectedValue(e[0]),this.updateTabIndexForAllOptions())}getNativeSelect(){return m`
3420
3570
  <select
3421
3571
  part="native-select"
3422
3572
  id="${this.id}"
@@ -3451,7 +3601,7 @@
3451
3601
  focus-back-to-trigger
3452
3602
  focus-trap
3453
3603
  role="listbox"
3454
- placement="${te.BOTTOM_START}"
3604
+ placement="${oe.BOTTOM_START}"
3455
3605
  @shown="${this.handlePopoverOpen}"
3456
3606
  @hidden="${this.handlePopoverClose}"
3457
3607
  style="--mdc-popover-max-width: ${this.popoverWidth}; --mdc-popover-max-height: ${this.height};"
@@ -3470,13 +3620,13 @@
3470
3620
  aria-activedescendant="${this.activeDescendant}"
3471
3621
  aria-haspopup="listbox"
3472
3622
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
3473
- aria-labelledby="${this.label?V.HEADING_ID:""}"
3623
+ aria-labelledby="${this.label?U.HEADING_ID:""}"
3474
3624
  aria-expanded="${this.displayPopover?"true":"false"}"
3475
3625
  >
3476
3626
  <mdc-text
3477
3627
  part="base-text ${this.selectedValueText?"selected":""}"
3478
- type="${S.BODY_MIDSIZE_REGULAR}"
3479
- tagname="${w.SPAN}"
3628
+ type="${E.BODY_MIDSIZE_REGULAR}"
3629
+ tagname="${C.SPAN}"
3480
3630
  >
3481
3631
  ${(r=this.selectedValueText)!=null?r:this.placeholder}
3482
3632
  </mdc-text>
@@ -3488,7 +3638,7 @@
3488
3638
  ${this.getPopoverContent()}
3489
3639
  </div>
3490
3640
  ${this.renderHelperText()}
3491
- `}};re.styles=[...J.styles,...nc],n([c({type:String})],re.prototype,"placeholder",2),n([c({type:Boolean})],re.prototype,"readonly",2),n([c({type:String})],re.prototype,"height",2),n([G()],re.prototype,"optionsList",2),n([L()],re.prototype,"baseIconName",2),n([L()],re.prototype,"selectedValueText",2),n([L()],re.prototype,"selectedValue",2),n([L()],re.prototype,"displayPopover",2),n([L()],re.prototype,"activeDescendant",2),n([L()],re.prototype,"popoverWidth",2),n([Fe("select")],re.prototype,"inputElement",2);var Ya=re;Ya.register(sc);var mp=Ya;var pp=[N,u`
3641
+ `}};ae.styles=[...te.styles,...Sc],n([l({type:String})],ae.prototype,"placeholder",2),n([l({type:Boolean})],ae.prototype,"readonly",2),n([l({type:String})],ae.prototype,"height",2),n([F()],ae.prototype,"optionsList",2),n([L()],ae.prototype,"baseIconName",2),n([L()],ae.prototype,"selectedValueText",2),n([L()],ae.prototype,"selectedValue",2),n([L()],ae.prototype,"displayPopover",2),n([L()],ae.prototype,"activeDescendant",2),n([L()],ae.prototype,"popoverWidth",2),n([Be("select")],ae.prototype,"inputElement",2);var is=ae;is.register(Ac);var Mp=is;var Dp=[w,u`
3492
3642
  :host {
3493
3643
  --mdc-spinner-default-color: var(--mds-color-theme-control-active-normal);
3494
3644
  --mdc-spinner-inverted-color: var(--mds-color-theme-inverted-control-active-normal);
@@ -3550,11 +3700,11 @@
3550
3700
  stroke-dashoffset: -292;
3551
3701
  }
3552
3702
  }
3553
- `],lc=pp;var cc=f.constructTagName("spinner"),hp={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},up={STANDALONE:"standalone",BUTTON:"button"},bi={VARIANT:up.STANDALONE,SIZE:hp.MIDSIZE,INVERTED:!1};var ht=class extends v{constructor(){super(...arguments);this.inverted=bi.INVERTED;this.size=bi.SIZE;this.ariaLabel=null;this.variant=bi.VARIANT}updated(e){super.updated(e),e.has("ariaLabel")&&(this.role=this.ariaLabel?"img":null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return m`
3703
+ `],Ic=Dp;var Cc=f.constructTagName("spinner"),$p={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},zp={STANDALONE:"standalone",BUTTON:"button"},wi={VARIANT:zp.STANDALONE,SIZE:$p.MIDSIZE,INVERTED:!1};var bt=class extends v{constructor(){super(...arguments);this.inverted=wi.INVERTED;this.size=wi.SIZE;this.ariaLabel=null;this.variant=wi.VARIANT}updated(e){super.updated(e),e.has("ariaLabel")&&(this.role=this.ariaLabel?"img":null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return m`
3554
3704
  <svg part="container" viewBox="0 0 100 100">
3555
3705
  <circle part="circle" cx="50" cy="50" r="46"></circle>
3556
3706
  </svg>
3557
- `}};ht.styles=[...v.styles,...lc],n([c({type:Boolean,reflect:!0})],ht.prototype,"inverted",2),n([c({type:String,reflect:!0})],ht.prototype,"size",2),n([c({type:String,attribute:"aria-label"})],ht.prototype,"ariaLabel",2),n([c({type:String,reflect:!0})],ht.prototype,"variant",2);var Wa=ht;Wa.register(cc);var fp=Wa;var dc=f.constructTagName("statictoggle"),bp={DEFAULT:"default",COMPACT:"compact"},qa={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},mc={compact:.75,default:1.25},pc={SIZE:bp.DEFAULT};var gp=[u`
3707
+ `}};bt.styles=[...v.styles,...Ic],n([l({type:Boolean,reflect:!0})],bt.prototype,"inverted",2),n([l({type:String,reflect:!0})],bt.prototype,"size",2),n([l({type:String,attribute:"aria-label"})],bt.prototype,"ariaLabel",2),n([l({type:String,reflect:!0})],bt.prototype,"variant",2);var as=bt;as.register(Cc);var Pp=as;var kc=f.constructTagName("statictoggle"),Up={DEFAULT:"default",COMPACT:"compact"},ss={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},Nc={compact:.75,default:1.25},wc={SIZE:Up.DEFAULT};var Vp=[u`
3558
3708
  :host {
3559
3709
  --mdc-statictoggle-width: 3rem;
3560
3710
  --mdc-statictoggle-height: 1.5rem;
@@ -3633,17 +3783,17 @@
3633
3783
  border: var(--mdc-statictoggle-border);
3634
3784
  }
3635
3785
  }
3636
- `],hc=gp;var kr=class extends P(v){constructor(){super(...arguments);this.checked=!1;this.size=pc.SIZE}render(){return m`
3786
+ `],_c=Vp;var _r=class extends P(v){constructor(){super(...arguments);this.checked=!1;this.size=wc.SIZE}render(){return m`
3637
3787
  <slot></slot>
3638
3788
  <div part="slider">
3639
3789
  <mdc-icon
3640
- name="${this.checked?qa.CHECKED:qa.UNCHECKED}"
3790
+ name="${this.checked?ss.CHECKED:ss.UNCHECKED}"
3641
3791
  class="icon"
3642
3792
  length-unit="rem"
3643
- size="${mc[this.size]}"
3793
+ size="${Nc[this.size]}"
3644
3794
  ></mdc-icon>
3645
3795
  </div>
3646
- `}};kr.styles=[...v.styles,...hc],n([c({type:Boolean,reflect:!0})],kr.prototype,"checked",2),n([c({type:String,reflect:!0})],kr.prototype,"size",2);var Ka=kr;Ka.register(dc);var vp=Ka;var yp=[N,u`
3796
+ `}};_r.styles=[...v.styles,..._c],n([l({type:Boolean,reflect:!0})],_r.prototype,"checked",2),n([l({type:String,reflect:!0})],_r.prototype,"size",2);var ns=_r;ns.register(kc);var Fp=ns;var Bp=[w,u`
3647
3797
 
3648
3798
  :host {
3649
3799
  --mdc-tab-content-gap: 0.5rem;
@@ -3887,12 +4037,12 @@
3887
4037
  color: var(--mdc-tab-pill-active-color-disabled);
3888
4038
  }
3889
4039
 
3890
- `,..._()],uc=yp;var fc=f.constructTagName("tab"),Za={GLASS:"glass",LINE:"line",PILL:"pill"},gi={VARIANT:Za.PILL,ACTIVE:!1};var ut=class extends ie(oe){constructor(){super(...arguments);this.active=gi.ACTIVE;this.variant=gi.VARIANT;this.handleTabActiveChange=e=>{let r=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:e},bubbles:!0});this.dispatchEvent(r)}}connectedCallback(){super.connectedCallback(),this.role="tab",this.softDisabled=void 0,this.size=void 0,this.type=void 0,this.ariaStateKey="aria-selected",!this.tabId&&this.onerror&&this.onerror("tab id is required")}modifyIconName(e){this.iconName&&(e?(this.prevIconName=this.iconName,this.iconName=`${Zr(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(e){this.setAttribute("variant",Object.values(Za).includes(e)?e:gi.VARIANT)}setActive(e,r){super.setActive(e,r),this.modifyIconName(r)}executeAction(){this.handleTabActiveChange(this.active)}update(e){super.update(e),e.has("variant")&&this.setVariant(this.variant)}render(){return m`
4040
+ `,..._()],Lc=Bp;var Rc=f.constructTagName("tab"),ls={GLASS:"glass",LINE:"line",PILL:"pill"},_i={VARIANT:ls.PILL,ACTIVE:!1};var gt=class extends ne(se){constructor(){super(...arguments);this.active=_i.ACTIVE;this.variant=_i.VARIANT;this.handleTabActiveChange=e=>{let r=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:e},bubbles:!0});this.dispatchEvent(r)}}connectedCallback(){super.connectedCallback(),this.role="tab",this.softDisabled=void 0,this.size=void 0,this.type=void 0,this.ariaStateKey="aria-selected",!this.tabId&&this.onerror&&this.onerror("tab id is required")}modifyIconName(e){this.iconName&&(e?(this.prevIconName=this.iconName,this.iconName=`${Jr(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(e){this.setAttribute("variant",Object.values(ls).includes(e)?e:_i.VARIANT)}setActive(e,r){super.setActive(e,r),this.modifyIconName(r)}executeAction(){this.handleTabActiveChange(this.active)}update(e){super.update(e),e.has("variant")&&this.setVariant(this.variant)}render(){return m`
3891
4041
  <div part="container">
3892
4042
  ${this.iconName?m` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:g}
3893
4043
  ${this.text?m` <mdc-text
3894
- type=${this.active?S.BODY_MIDSIZE_BOLD:S.BODY_MIDSIZE_MEDIUM}
3895
- tagname=${w.SPAN}
4044
+ type=${this.active?E.BODY_MIDSIZE_BOLD:E.BODY_MIDSIZE_MEDIUM}
4045
+ tagname=${C.SPAN}
3896
4046
  data-text=${this.text}
3897
4047
  part="text"
3898
4048
  >${this.text}</mdc-text
@@ -3901,7 +4051,7 @@
3901
4051
  <slot name="chip"></slot>
3902
4052
  </div>
3903
4053
  <div part="indicator"></div>
3904
- `}};ut.styles=[...oe.styles,...uc],n([c({type:Boolean,reflect:!0})],ut.prototype,"active",2),n([c({type:String,reflect:!0})],ut.prototype,"text",2),n([c({type:String,reflect:!0})],ut.prototype,"variant",2),n([c({type:String,reflect:!0,attribute:"tab-id"})],ut.prototype,"tabId",2);var he=ut;he.register(fc);var xp=he;var Ep=[Co,u`
4054
+ `}};gt.styles=[...se.styles,...Lc],n([l({type:Boolean,reflect:!0})],gt.prototype,"active",2),n([l({type:String,reflect:!0})],gt.prototype,"text",2),n([l({type:String,reflect:!0})],gt.prototype,"variant",2),n([l({type:String,reflect:!0,attribute:"tab-id"})],gt.prototype,"tabId",2);var fe=gt;fe.register(Rc);var Hp=fe;var Gp=[Do,u`
3905
4055
  :host {
3906
4056
  --mdc-tablist-focus-ring-outer-width: var(--mdc-focus-ring-outer-width);
3907
4057
  --mdc-tablist-gap: 0.5rem;
@@ -3931,20 +4081,20 @@
3931
4081
  :host mdc-button[prefix-icon="arrow-right-regular"] {
3932
4082
  margin-left: var(--mdc-tablist-arrow-button-margin);
3933
4083
  }
3934
- `],bc=[...Ep];var gc=f.constructTagName("tablist"),ho={LEFT:"ArrowLeft",RIGHT:"ArrowRight",HOME:"Home",END:"End"},wr={FORWARD:"forward",BACKWARD:"backward"};var vi=i=>i[0],Xa=i=>i[i.length-1],vc=(i,t)=>{let e=i.findIndex(r=>t===r)-1;return i[(e+i.length)%i.length]},yc=(i,t)=>{let e=i.findIndex(r=>t===r)+1;return i[e%i.length]},xc=(i,t)=>i.find(e=>e.tabId===t),ja=i=>i.find(t=>t.active);var ke=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 he||!(e.target instanceof he))return;let r=ja(this.tabs||[]);r instanceof he&&await this.focusTab(r)};this.handleMousedown=e=>{e.target instanceof he&&e.preventDefault()};this.handleNestedTabActiveChange=async e=>{e.stopPropagation();let r=e.target;r instanceof he&&(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 he&&(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 he)||!this.tabs)return;let o=vc(this.tabs,r),a=yc(this.tabs,r),s=vi(this.tabs),l=Xa(this.tabs);switch(e.code){case ho.LEFT:e.preventDefault(),await this.focusTab(this.isRtl()?a:o);break;case ho.RIGHT:e.preventDefault(),await this.focusTab(this.isRtl()?o:a);break;case ho.HOME:await this.focusTab(s);break;case ho.END:await this.focusTab(l);break;default:}};this.shouldShowArrowButton=e=>e===wr.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton;this.switchFocus=async()=>{var e,r;await this.updateComplete,!this.showBackwardArrowButton&&!this.showForwardArrowButton?(e=ja(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 St&&(e=!0);let r=vi(this.tabs),o=Xa(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===wr.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 he&&l.scrollIntoView({behavior:"instant",block:"start",inline:"center"}),await this.handleArrowButtonVisibility()}).observe(this),this.activeTabId||(this.activeTabId=(o=vi(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=xc(this.tabs,this.activeTabId);if(!(r instanceof he))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
4084
+ `],Oc=[...Gp];var Mc=f.constructTagName("tablist"),vo={LEFT:"ArrowLeft",RIGHT:"ArrowRight",HOME:"Home",END:"End"},Lr={FORWARD:"forward",BACKWARD:"backward"};var Li=i=>i[0],cs=i=>i[i.length-1],Dc=(i,t)=>{let e=i.findIndex(r=>t===r)-1;return i[(e+i.length)%i.length]},$c=(i,t)=>{let e=i.findIndex(r=>t===r)+1;return i[e%i.length]},zc=(i,t)=>i.find(e=>e.tabId===t),ds=i=>i.find(t=>t.active);var Ne=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 fe||!(e.target instanceof fe))return;let r=ds(this.tabs||[]);r instanceof fe&&await this.focusTab(r)};this.handleMousedown=e=>{e.target instanceof fe&&e.preventDefault()};this.handleNestedTabActiveChange=async e=>{e.stopPropagation();let r=e.target;r instanceof fe&&(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 fe&&(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 fe)||!this.tabs)return;let o=Dc(this.tabs,r),a=$c(this.tabs,r),s=Li(this.tabs),c=cs(this.tabs);switch(e.code){case vo.LEFT:e.preventDefault(),await this.focusTab(this.isRtl()?a:o);break;case vo.RIGHT:e.preventDefault(),await this.focusTab(this.isRtl()?o:a);break;case vo.HOME:await this.focusTab(s);break;case vo.END:await this.focusTab(c);break;default:}};this.shouldShowArrowButton=e=>e===Lr.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton;this.switchFocus=async()=>{var e,r;await this.updateComplete,!this.showBackwardArrowButton&&!this.showForwardArrowButton?(e=ds(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 kt&&(e=!0);let r=Li(this.tabs),o=cs(this.tabs),a=r.getBoundingClientRect().left,s=(x=this.tabsContainer)==null?void 0:x.getBoundingClientRect().left,c=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,c>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===Lr.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(c=>c.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:c}=document;c instanceof fe&&c.scrollIntoView({behavior:"instant",block:"start",inline:"center"}),await this.handleArrowButtonVisibility()}).observe(this),this.activeTabId||(this.activeTabId=(o=Li(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=zc(this.tabs,this.activeTabId);if(!(r instanceof fe))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
3935
4085
  variant="tertiary"
3936
- prefix-icon="arrow-${a===wr.FORWARD?e:r}-regular"
3937
- aria-label="Scroll tabs ${a===wr.FORWARD?e:r}"
4086
+ prefix-icon="arrow-${a===Lr.FORWARD?e:r}-regular"
4087
+ aria-label="Scroll tabs ${a===Lr.FORWARD?e:r}"
3938
4088
  @click="${()=>this.scrollTabs(a)}"
3939
4089
  ></mdc-button>`:g}`;return m` ${o("backward")}
3940
4090
  <div
3941
4091
  class="container"
3942
4092
  role="tablist"
3943
4093
  tabindex="-1"
3944
- aria-label="${T(this.dataAriaLabel)}">
4094
+ aria-label="${A(this.dataAriaLabel)}">
3945
4095
  <slot></slot>
3946
4096
  </div>
3947
- ${o(wr.FORWARD)}`}};ke.styles=[...v.styles,...bc],n([c({type:String,attribute:"active-tab-id",reflect:!0})],ke.prototype,"activeTabId",2),n([c({type:String,attribute:"data-aria-label"})],ke.prototype,"dataAriaLabel",2),n([Fe(".container")],ke.prototype,"tabsContainer",2),n([Fe("mdc-button:not(:focus-visible)")],ke.prototype,"notFocusedArrowButton",2),n([G({selector:"mdc-tab"})],ke.prototype,"tabs",2),n([L()],ke.prototype,"showForwardArrowButton",2),n([L()],ke.prototype,"showBackwardArrowButton",2);var Qa=ke;Qa.register(gc);var Tp=Qa;var Ap=[u`
4097
+ ${o(Lr.FORWARD)}`}};Ne.styles=[...v.styles,...Oc],n([l({type:String,attribute:"active-tab-id",reflect:!0})],Ne.prototype,"activeTabId",2),n([l({type:String,attribute:"data-aria-label"})],Ne.prototype,"dataAriaLabel",2),n([Be(".container")],Ne.prototype,"tabsContainer",2),n([Be("mdc-button:not(:focus-visible)")],Ne.prototype,"notFocusedArrowButton",2),n([F({selector:"mdc-tab"})],Ne.prototype,"tabs",2),n([L()],Ne.prototype,"showForwardArrowButton",2),n([L()],Ne.prototype,"showBackwardArrowButton",2);var ms=Ne;ms.register(Mc);var Yp=ms;var Wp=[u`
3948
4098
  :host {
3949
4099
  --mdc-textarea-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
3950
4100
  --mdc-textarea-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
@@ -4065,11 +4215,11 @@
4065
4215
  pointer-events: none;
4066
4216
  }
4067
4217
 
4068
- `,..._(!0)],Ec=Ap;var Tc=f.constructTagName("textarea"),Ja={HARD:"hard",SOFT:"soft"},Ac={OFF:"off",ON:"on"},yi={CHARACTER_COUNTER_TYPE:S.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:Ja.SOFT};var Z=class extends ne(U(ge)){constructor(){super(...arguments);this.readonly=!1;this.rows=yi.ROWS;this.cols=yi.COLS;this.wrap=Ja.SOFT;this.autocapitalize=si.OFF;this.autocomplete=Ac.OFF;this.autofocus=!1;this.characterLimitExceedingFired=!1}get textarea(){return this.inputElement}connectedCallback(){var e;super.connectedCallback(),this.value=((e=this.textContent)==null?void 0:e.trim())||this.value,this.updateComplete.then(()=>{this.textarea&&(this.textarea.checkValidity(),this.setTextareaValidity(),this.internals.setFormValue(this.textarea.value))}).catch(r=>{this.onerror&&this.onerror(r)})}setTextareaValidity(){this.requiredLabel&&this.validationMessage&&this.value===""?this.textarea.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===W.ERROR&&this.helpText?this.textarea.setCustomValidity(this.helpText):this.textarea.setCustomValidity(""),this.setValidity()}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(e){this.value=e}handleValueChange(){this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&(this.handleValueChange(),this.handleCharacterOverflowStateChange())}attributeChangedCallback(e,r,o){super.attributeChangedCallback(e,r,o),["maxlength","minlength","required"].includes(e)&&this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(s=>{this.onerror&&this.onerror(s)})}dispatchCharacterOverflowStateChangeEvent(){this.dispatchEvent(new CustomEvent("limitexceeded",{detail:{currentCharacterCount:this.value.length,maxCharacterLimit:this.maxCharacterLimit,value:this.value},bubbles:!0,composed:!0}))}handleCharacterOverflowStateChange(){this.maxCharacterLimit&&(this.value.length>this.maxCharacterLimit&&!this.characterLimitExceedingFired?(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!0):this.value.length<=this.maxCharacterLimit&&this.characterLimitExceedingFired&&(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!1))}updateValue(){this.value=this.textarea.value,this.internals.setFormValue(this.textarea.value)}onChange(e){this.updateValue();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}renderCharacterCounter(){return this.maxCharacterLimit?m`
4218
+ `,..._(!0)],Pc=Wp;var Uc=f.constructTagName("textarea"),ps={HARD:"hard",SOFT:"soft"},Vc={OFF:"off",ON:"on"},Ri={CHARACTER_COUNTER_TYPE:E.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:ps.SOFT};var j=class extends ce(V(ye)){constructor(){super(...arguments);this.readonly=!1;this.rows=Ri.ROWS;this.cols=Ri.COLS;this.wrap=ps.SOFT;this.autocapitalize=vi.OFF;this.autocomplete=Vc.OFF;this.autofocus=!1;this.characterLimitExceedingFired=!1}get textarea(){return this.inputElement}connectedCallback(){var e;super.connectedCallback(),this.value=((e=this.textContent)==null?void 0:e.trim())||this.value,this.updateComplete.then(()=>{this.textarea&&(this.textarea.checkValidity(),this.setTextareaValidity(),this.internals.setFormValue(this.textarea.value))}).catch(r=>{this.onerror&&this.onerror(r)})}setTextareaValidity(){this.requiredLabel&&this.validationMessage&&this.value===""?this.textarea.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===q.ERROR&&this.helpText?this.textarea.setCustomValidity(this.helpText):this.textarea.setCustomValidity(""),this.setValidity()}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(e){this.value=e}handleValueChange(){this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&(this.handleValueChange(),this.handleCharacterOverflowStateChange())}attributeChangedCallback(e,r,o){super.attributeChangedCallback(e,r,o),["maxlength","minlength","required"].includes(e)&&this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(s=>{this.onerror&&this.onerror(s)})}dispatchCharacterOverflowStateChangeEvent(){this.dispatchEvent(new CustomEvent("limitexceeded",{detail:{currentCharacterCount:this.value.length,maxCharacterLimit:this.maxCharacterLimit,value:this.value},bubbles:!0,composed:!0}))}handleCharacterOverflowStateChange(){this.maxCharacterLimit&&(this.value.length>this.maxCharacterLimit&&!this.characterLimitExceedingFired?(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!0):this.value.length<=this.maxCharacterLimit&&this.characterLimitExceedingFired&&(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!1))}updateValue(){this.value=this.textarea.value,this.internals.setFormValue(this.textarea.value)}onChange(e){this.updateValue();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}renderCharacterCounter(){return this.maxCharacterLimit?m`
4069
4219
  <mdc-text
4070
4220
  part="character-counter"
4071
4221
  tagname="span"
4072
- type=${yi.CHARACTER_COUNTER_TYPE}
4222
+ type=${Ri.CHARACTER_COUNTER_TYPE}
4073
4223
  >
4074
4224
  ${this.value.length<10?`0${this.value.length}`:this.value.length}/${this.maxCharacterLimit}
4075
4225
  </mdc-text>
@@ -4090,24 +4240,24 @@
4090
4240
  ?disabled="${this.disabled}"
4091
4241
  ?readonly="${this.readonly}"
4092
4242
  ?required="${!!this.requiredLabel}"
4093
- placeholder=${T(this.placeholder)}
4094
- rows=${T(this.rows)}
4095
- cols=${T(this.cols)}
4096
- wrap=${T(this.wrap)}
4243
+ placeholder=${A(this.placeholder)}
4244
+ rows=${A(this.rows)}
4245
+ cols=${A(this.cols)}
4246
+ wrap=${A(this.wrap)}
4097
4247
  ?autofocus="${this.autofocus}"
4098
4248
  autocapitalize=${this.autocapitalize}
4099
4249
  autocomplete=${this.autocomplete}
4100
- minlength=${T(this.minlength)}
4101
- maxlength=${T(this.maxlength)}
4102
- dirname=${T(this.dirname)}
4250
+ minlength=${A(this.minlength)}
4251
+ maxlength=${A(this.maxlength)}
4252
+ dirname=${A(this.dirname)}
4103
4253
  @input=${this.updateValue}
4104
4254
  @change=${this.onChange}
4105
- aria-describedby="${T(this.helpText?V.HELPER_TEXT_ID:"")}"
4255
+ aria-describedby="${A(this.helpText?U.HELPER_TEXT_ID:"")}"
4106
4256
  aria-invalid="${this.helpTextType==="error"?"true":"false"}"
4107
4257
  ></textarea>
4108
4258
  </div>
4109
4259
  ${this.renderTextareaFooter()}
4110
- `}};Z.styles=[...ge.styles,...Ec],n([c({type:String})],Z.prototype,"placeholder",2),n([c({type:Boolean})],Z.prototype,"readonly",2),n([c({type:Number})],Z.prototype,"rows",2),n([c({type:Number})],Z.prototype,"cols",2),n([c({type:String})],Z.prototype,"wrap",2),n([c({type:String})],Z.prototype,"autocapitalize",2),n([c({type:String})],Z.prototype,"autocomplete",2),n([c({type:Boolean})],Z.prototype,"autofocus",2),n([c({type:String})],Z.prototype,"dirname",2),n([c({type:Number})],Z.prototype,"maxlength",2),n([c({type:Number})],Z.prototype,"minlength",2),n([c({type:Number,attribute:"max-character-limit"})],Z.prototype,"maxCharacterLimit",2),n([Fe("textarea")],Z.prototype,"inputElement",2);var es=Z;es.register(Tc);var Sp=es;var xi=f.constructTagName("themeprovider"),ts={THEMECLASS:"mds-theme-stable-darkWebex"};var Ei=class{constructor(t){this.themeclass=t}};Ei.context=xi;var Ti=Ei;var Ip=u`
4260
+ `}};j.styles=[...ye.styles,...Pc],n([l({type:String})],j.prototype,"placeholder",2),n([l({type:Boolean})],j.prototype,"readonly",2),n([l({type:Number})],j.prototype,"rows",2),n([l({type:Number})],j.prototype,"cols",2),n([l({type:String})],j.prototype,"wrap",2),n([l({type:String})],j.prototype,"autocapitalize",2),n([l({type:String})],j.prototype,"autocomplete",2),n([l({type:Boolean})],j.prototype,"autofocus",2),n([l({type:String})],j.prototype,"dirname",2),n([l({type:Number})],j.prototype,"maxlength",2),n([l({type:Number})],j.prototype,"minlength",2),n([l({type:Number,attribute:"max-character-limit"})],j.prototype,"maxCharacterLimit",2),n([Be("textarea")],j.prototype,"inputElement",2);var hs=j;hs.register(Uc);var qp=hs;var Oi=f.constructTagName("themeprovider"),us={THEMECLASS:"mds-theme-stable-darkWebex"};var Mi=class{constructor(t){this.themeclass=t}};Mi.context=Oi;var Di=Mi;var Kp=u`
4111
4261
  :host {
4112
4262
  --mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
4113
4263
  --mdc-themeprovider-font-family: var(--mds-font-family-primary);
@@ -4136,7 +4286,7 @@
4136
4286
  * {
4137
4287
  scrollbar-color: var(--mdc-themeprovider-scrollbar-thumb-color) var(--mdc-themeprovider-scrollbar-track-color);
4138
4288
  }
4139
- `,Sc=[Ip];var Nr=class extends Jt{constructor(){super({context:Ti.context,initialValue:new Ti(ts.THEMECLASS)});this.themeclass=ts.THEMECLASS}static get Context(){return Ti.context}updated(e){super.updated(e),e.has("themeclass")&&(this.setThemeInClassList(),this.currentThemeClass=this.themeclass)}updateContext(){this.context.value.themeclass!==this.themeclass&&(this.context.value.themeclass=this.themeclass,this.context.updateObservers())}setThemeInClassList(){this.currentThemeClass&&this.classList.remove(...this.currentThemeClass.split(" ")),this.themeclass&&this.classList.add(...this.themeclass.split(" "))}};Nr.styles=[...Jt.styles,...Sc],n([L()],Nr.prototype,"currentThemeClass",2),n([c({type:String})],Nr.prototype,"themeclass",2);var rs=Nr;rs.register(xi);var Cp=rs;var Ic=f.constructTagName("toggle"),os={DEFAULT:"default",COMPACT:"compact"};var is={SIZE:os.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var kp=[N,u`
4289
+ `,Fc=[Kp];var Rr=class extends or{constructor(){super({context:Di.context,initialValue:new Di(us.THEMECLASS)});this.themeclass=us.THEMECLASS}static get Context(){return Di.context}updated(e){super.updated(e),e.has("themeclass")&&(this.setThemeInClassList(),this.currentThemeClass=this.themeclass)}updateContext(){this.context.value.themeclass!==this.themeclass&&(this.context.value.themeclass=this.themeclass,this.context.updateObservers())}setThemeInClassList(){this.currentThemeClass&&this.classList.remove(...this.currentThemeClass.split(" ")),this.themeclass&&this.classList.add(...this.themeclass.split(" "))}};Rr.styles=[...or.styles,...Fc],n([L()],Rr.prototype,"currentThemeClass",2),n([l({type:String})],Rr.prototype,"themeclass",2);var fs=Rr;fs.register(Oi);var Zp=fs;var Bc=f.constructTagName("toggle"),yo={DEFAULT:"default",COMPACT:"compact"};var bs={SIZE:yo.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var Xp=[w,u`
4140
4290
  :host {
4141
4291
  --mdc-toggle-width: 3rem;
4142
4292
  --mdc-toggle-height: 1.5rem;
@@ -4218,7 +4368,7 @@
4218
4368
  :host([disabled]) .mdc-label-text, :host([disabled]) .mdc-help-text {
4219
4369
  color: var(--mdc-toggle-label-color-disabled);
4220
4370
  }
4221
- `,..._(!0)],Cc=kp;var Gt=class extends ne(U(ge)){constructor(){super(...arguments);this.checked=!1;this.size=is.SIZE;this.autofocus=!1}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}formResetCallback(){this.checked=!1}formStateRestoreCallback(e){e&&(this.checked=!0)}manageRequired(){!this.checked&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}setFormValue(){let e=null;this.checked?e=this.value?this.value:"isActive":e=null,this.manageRequired(),this.internals.setFormValue(e)}toggleState(){this.disabled||(this.checked=!this.checked)}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}handleChange(e){this.toggleState();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}setToggleSize(e){this.setAttribute("size",Object.values(os).includes(e)?e:is.SIZE)}update(e){super.update(e),e.has("checked")&&this.setFormValue(),e.has("size")&&this.setToggleSize(this.size)}render(){var e;return m`
4371
+ `,..._(!0)],Hc=Xp;var Kt=class extends ce(V(ye)){constructor(){super(...arguments);this.checked=!1;this.size=bs.SIZE;this.autofocus=!1}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}formResetCallback(){this.checked=!1}formStateRestoreCallback(e){e&&(this.checked=!0)}manageRequired(){!this.checked&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}setFormValue(){let e=null;this.checked?e=this.value?this.value:"isActive":e=null,this.manageRequired(),this.internals.setFormValue(e)}toggleState(){this.disabled||(this.checked=!this.checked)}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}handleChange(e){this.toggleState();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}setToggleSize(e){this.setAttribute("size",Object.values(yo).includes(e)?e:bs.SIZE)}update(e){super.update(e),e.has("checked")&&this.setFormValue(),e.has("size")&&this.setToggleSize(this.size)}render(){var e;return m`
4222
4372
  <mdc-statictoggle
4223
4373
  ?checked="${this.checked}"
4224
4374
  ?disabled="${this.disabled}"
@@ -4233,12 +4383,12 @@
4233
4383
  role="switch"
4234
4384
  ?autofocus="${this.autofocus}"
4235
4385
  ?required="${!!this.requiredLabel}"
4236
- name="${T(this.name)}"
4237
- value="${T(this.value)}"
4386
+ name="${A(this.name)}"
4387
+ value="${A(this.value)}"
4238
4388
  .checked="${this.checked}"
4239
4389
  aria-checked="${this.checked}"
4240
4390
  .disabled="${this.disabled}"
4241
- aria-describedby="${T(this.helpText?V.HELPER_TEXT_ID:"")}"
4391
+ aria-describedby="${A(this.helpText?U.HELPER_TEXT_ID:"")}"
4242
4392
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
4243
4393
  tabindex="${this.disabled?-1:0}"
4244
4394
  @change="${this.handleChange}"
@@ -4247,7 +4397,7 @@
4247
4397
  </mdc-statictoggle>
4248
4398
  ${this.renderLabel()}
4249
4399
  ${this.renderHelperText()}
4250
- `}};Gt.styles=[...ge.styles,...Cc],n([c({type:Boolean,reflect:!0})],Gt.prototype,"checked",2),n([c({type:String,reflect:!0})],Gt.prototype,"size",2),n([c({type:Boolean,reflect:!0})],Gt.prototype,"autofocus",2);var as=Gt;as.register(Ic);var wp=as;var kc=f.constructTagName("toggletip"),Yt={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:te.TOP,CLICK:Ot.CLICK,SHOW_ARROW:!0};var Np=u`
4400
+ `}};Kt.styles=[...ye.styles,...Hc],n([l({type:Boolean,reflect:!0})],Kt.prototype,"checked",2),n([l({type:String,reflect:!0})],Kt.prototype,"size",2),n([l({type:Boolean,reflect:!0})],Kt.prototype,"autofocus",2);var gs=Kt;gs.register(Bc);var jp=gs;var Gc=f.constructTagName("toggletip"),Zt={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:oe.TOP,CLICK:$t.CLICK,SHOW_ARROW:!0};var Qp=u`
4251
4401
  :host {
4252
4402
  --mdc-toggletip-max-width: 400px;
4253
4403
  --mdc-toggletip-text-color: var(--mds-color-theme-text-primary-normal);
@@ -4269,17 +4419,25 @@
4269
4419
  :host([color='contrast'])::part(popover-content) {
4270
4420
  color: var(--mdc-toggletip-text-color-contrast);
4271
4421
  }
4272
- `,wc=[Np];var Wt=class extends Ie{constructor(){super(...arguments);this.currentAnnouncement="";this.screenreaderAnnouncerIdentity=""}connectedCallback(){super.connectedCallback(),this.closeButton=Yt.CLOSE_BUTTON,this.closeButtonAriaLabel=Yt.CLOSE_BUTTON_ARIA_LABEL,this.placement=Yt.PLACEMENT,this.trigger=Yt.CLICK,this.showArrow=Yt.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(te).includes(this.placement)||(this.placement=Yt.PLACEMENT)}update(e){super.update(e),e.has("placement")&&this.onPlacementUpdated(),e.has("visible")&&(this.currentAnnouncement=this.visible?this.getToggleTipText():"")}render(){return m`
4422
+
4423
+ :host(:dir(ltr))::part(popover-content) {
4424
+ margin-right: 2rem;
4425
+ }
4426
+
4427
+ :host(:dir(rtl))::part(popover-content) {
4428
+ margin-left: 2rem;
4429
+ }
4430
+ `,Yc=[Qp];var Xt=class extends ke{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(oe).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`
4273
4431
  ${super.render()}
4274
4432
  <mdc-screenreaderannouncer
4275
4433
  identity="${this.screenreaderAnnouncerIdentity}"
4276
4434
  announcement="${this.currentAnnouncement}"
4277
4435
  delay="300">
4278
4436
  </mdc-screenreaderannouncer>
4279
- `}};Wt.styles=[...Ie.styles,...wc],n([Io()],Wt.prototype,"defaultSlotNodes",2),n([L()],Wt.prototype,"currentAnnouncement",2),n([c({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],Wt.prototype,"screenreaderAnnouncerIdentity",2);var ss=Wt;ss.register(kc);var _p=ss;function qt(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,C=A/16,I=(k,O)=>{for(k=String(k);k.length<O;)k=" "+k;return k};console.info(`%c\u23F1 ${I(A,5)} /${I(E,5)} ms`,`
4437
+ `}};Xt.styles=[...ke.styles,...Yc],n([Mo()],Xt.prototype,"defaultSlotNodes",2),n([L()],Xt.prototype,"currentAnnouncement",2),n([l({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],Xt.prototype,"screenreaderAnnouncerIdentity",2);var vs=Xt;vs.register(Gc);var Jp=vs;function jt(i,t,e){var a;let r=(a=e.initialDeps)!=null?a:[],o;return()=>{var s,c,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((T,S)=>r[S]!==T)))return o;r=b;let y;if(e.key&&((c=e.debug)!=null&&c.call(e))&&(y=Date.now()),o=t(...b),e.key&&((d=e.debug)!=null&&d.call(e))){let T=Math.round((Date.now()-h)*100)/100,S=Math.round((Date.now()-y)*100)/100,k=S/16,I=(N,O)=>{for(N=String(N);N.length<O;)N=" "+N;return N};console.info(`%c\u23F1 ${I(S,5)} /${I(T,5)} ms`,`
4280
4438
  font-size: .6rem;
4281
4439
  font-weight: bold;
4282
- color: hsl(${Math.max(0,Math.min(120-120*C,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 Ai(i,t){if(i===void 0)throw new Error(`Unexpected undefined${t?`: ${t}`:""}`);return i}var Nc=(i,t)=>Math.abs(i-t)<1,_c=(i,t,e)=>{let r;return function(...o){i.clearTimeout(r),r=i.setTimeout(()=>t.apply(this,o),e)}};var Lp=i=>i,Rp=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},Rc=(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)}},Lc={passive:!0};var Op=typeof window>"u"?!0:"onscrollend"in window,Oc=(i,t)=>{let e=i.scrollElement;if(!e)return;let r=i.targetWindow;if(!r)return;let o=0,a=i.options.useScrollendEvent&&Op?()=>{}:_c(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,Lc),e.addEventListener("scrollend",d,Lc),()=>{e.removeEventListener("scroll",l),e.removeEventListener("scrollend",d)}};var Mp=(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 Mc=(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})},Si=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:Lp,rangeExtractor:Rp,onChange:()=>{},measureElement:Mp,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=qt(()=>(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=qt(()=>[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=qt(()=>[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),C=y+A,I=x?x.lane:h%this.options.lanes;p[h]={index:h,start:y,size:A,end:C,key:b,lane:I}}return this.measurementsCache=p,p},{key:!1,debug:()=>this.options.debug}),this.calculateRange=qt(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,r,o)=>this.range=e.length>0&&r>0?Dp({measurements:e,outerSize:r,scrollOffset:o}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=qt(()=>{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=qt(()=>[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 Ai(r[Dc(0,r.length-1,o=>Ai(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]=Ai(this.getOffsetForIndex(e,l));Nc(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)}},Dc=(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 Dp({measurements:i,outerSize:t,scrollOffset:e}){let r=i.length-1,a=Dc(0,r,l=>i[l].start,e),s=a;for(;s<r&&i[s].end<e+t;)s++;return{startIndex:a,endIndex:s}}var ns=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 Si(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Ii=class extends ns{constructor(t,e){super(t,{observeElementRect:Rc,observeElementOffset:Oc,scrollToFn:Mc,...e})}};var{I:dM}=_s;var $c=i=>i.strings===void 0;var uo=(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),uo(o,t);return!0},Ci=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)},zc=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),Pp(t)}};function $p(i){this._$AN!==void 0?(Ci(this),this._$AM=i,zc(this)):this._$AM=i}function zp(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++)uo(r[a],!1),Ci(r[a]);else r!=null&&(uo(r,!1),Ci(r));else uo(this,i)}var Pp=i=>{var t,e;i.type==Do.CHILD&&((t=i._$AP)!=null||(i._$AP=zp),(e=i._$AQ)!=null||(i._$AQ=$p))},ki=class extends lr{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),zc(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&&(uo(this,t),Ci(this))}setValue(t){if($c(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 Pc=()=>new cs,cs=class{},ls=new WeakMap,Vc=Wr(class extends ki{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=ls.get(e);r===void 0&&(r=new WeakMap,ls.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=ls.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 Vp=[u`
4440
+ color: hsl(${Math.max(0,Math.min(120-120*k,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 $i(i,t){if(i===void 0)throw new Error(`Unexpected undefined${t?`: ${t}`:""}`);return i}var Wc=(i,t)=>Math.abs(i-t)<1,qc=(i,t,e)=>{let r;return function(...o){i.clearTimeout(r),r=i.setTimeout(()=>t.apply(this,o),e)}};var eh=i=>i,th=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},Zc=(i,t)=>{let e=i.scrollElement;if(!e)return;let r=i.targetWindow;if(!r)return;let o=s=>{let{width:c,height:d}=s;t({width:Math.round(c),height:Math.round(d)})};if(o(e.getBoundingClientRect()),!r.ResizeObserver)return()=>{};let a=new r.ResizeObserver(s=>{let c=s[0];if(c!=null&&c.borderBoxSize){let d=c.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)}},Kc={passive:!0};var rh=typeof window>"u"?!0:"onscrollend"in window,Xc=(i,t)=>{let e=i.scrollElement;if(!e)return;let r=i.targetWindow;if(!r)return;let o=0,a=i.options.useScrollendEvent&&rh?()=>{}:qc(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)},c=s(!0),d=s(!1);return d(),e.addEventListener("scroll",c,Kc),e.addEventListener("scrollend",d,Kc),()=>{e.removeEventListener("scroll",c),e.removeEventListener("scrollend",d)}};var oh=(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 jc=(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})},zi=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:eh,rangeExtractor:th,onChange:()=>{},measureElement:oh,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=jt(()=>(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 c=e[s];if(o.has(c.lane))continue;let d=a.get(c.lane);if(d==null||c.end>d.end?a.set(c.lane,c):c.end<d.end&&o.set(c.lane,!0),o.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((s,c)=>s.end===c.end?s.index-c.index:s.end-c.end)[0]:void 0},this.getMeasurementOptions=jt(()=>[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=jt(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:r,scrollMargin:o,getItemKey:a,enabled:s},c)=>{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,T=c.get(b),S=typeof T=="number"?T:this.options.estimateSize(h),k=y+S,I=x?x.lane:h%this.options.lanes;p[h]={index:h,start:y,size:S,end:k,key:b,lane:I}}return this.measurementsCache=p,p},{key:!1,debug:()=>this.options.debug}),this.calculateRange=jt(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,r,o)=>this.range=e.length>0&&r>0?ih({measurements:e,outerSize:r,scrollOffset:o}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=jt(()=>{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,c=this.elementsCache.get(s);c!==e&&(c&&this.observer.unobserve(c),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 c;let o=this.measurementsCache[e];if(!o)return;let a=(c=this.itemSizeCache.get(o.key))!=null?c: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=jt(()=>[this.getIndexes(),this.getMeasurements()],(e,r)=>{let o=[];for(let a=0,s=e.length;a<s;a++){let c=e[a],d=r[c];o.push(d)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let r=this.getMeasurements();if(r.length!==0)return $i(r[Qc(0,r.length-1,o=>$i(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 c=o.start-this.options.scrollPaddingStart+(o.size-a)/2;switch(r){case"center":return[this.getOffsetForAlignment(c,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,c]=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]=$i(this.getOffsetForIndex(e,c));Wc(p,this.getScrollOffset())||this.scrollToIndex(e,{align:c,behavior:o})}else this.scrollToIndex(e,{align:c,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)}},Qc=(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 ih({measurements:i,outerSize:t,scrollOffset:e}){let r=i.length-1,a=Qc(0,r,c=>i[c].start,e),s=a;for(;s<r&&i[s].end<e+t;)s++;return{startIndex:a,endIndex:s}}var ys=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 zi(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Pi=class extends ys{constructor(t,e){super(t,{observeElementRect:Zc,observeElementOffset:Xc,scrollToFn:jc,...e})}};var{I:kD}=Ys;var Jc=i=>i.strings===void 0;var xo=(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),xo(o,t);return!0},Ui=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)},ed=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),nh(t)}};function ah(i){this._$AN!==void 0?(Ui(this),this._$AM=i,ed(this)):this._$AM=i}function sh(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++)xo(r[a],!1),Ui(r[a]);else r!=null&&(xo(r,!1),Ui(r));else xo(this,i)}var nh=i=>{var t,e;i.type==Go.CHILD&&((t=i._$AP)!=null||(i._$AP=sh),(e=i._$AQ)!=null||(i._$AQ=ah))},Vi=class extends mr{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),ed(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&&(xo(this,t),Ui(this))}setValue(t){if(Jc(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 td=()=>new Es,Es=class{},xs=new WeakMap,rd=Xr(class extends Vi{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=xs.get(e);r===void 0&&(r=new WeakMap,xs.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=xs.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 lh=[u`
4283
4441
  :host::part(scroll) {
4284
4442
  height: 100%;
4285
4443
  width: 100%;
@@ -4289,19 +4447,79 @@
4289
4447
  position: relative;
4290
4448
  width: 100%;
4291
4449
  }
4292
- `],Uc=Vp;var Fc=f.constructTagName("virtualizedlist"),CM=f.constructTagName("virtualizedwrapper"),Bc={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0}};var Kt=class extends v{constructor(){super();this.virtualizerProps=Bc.VIRTUALIZER_PROPS;this.scrollElementRef=Pc();this.virtualItems=[];this.virtualizerController=null,this.virtualizer=null,this.setlistdata=null,this.onscroll=null}update(e){super.update(e),e.get("virtualizerProps")&&this.setVirtualizerOptions()}firstUpdated(e){super.firstUpdated(e),this.setVirtualizerOptions()}setVirtualizerOptions(){var e;(e=this.virtualizer)==null||e.setOptions({...this.virtualizer.options,...this.virtualizerProps}),this.requestUpdate()}connectedCallback(){var e;this.virtualizerController=new Ii(this,{count:this.virtualizerProps.count,estimateSize:(e=this.virtualizerProps)==null?void 0:e.estimateSize,getScrollElement:()=>this.scrollElementRef.value||null,...this.virtualizerProps}),super.connectedCallback()}getVirtualizedListWrapper(e){var l,d;this.virtualizer=e.getVirtualizer();let{getTotalSize:r,getVirtualItems:o,measureElement:a}=this.virtualizer,s=o();if(s!==this.virtualItems){this.virtualItems=s;let p=o(),h={position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${(d=(l=p[0])==null?void 0:l.start)!=null?d:0}px)`};this.setlistdata&&this.setlistdata({virtualItems:p,measureElement:a,listStyle:h})}return m`<div
4450
+ `],od=lh;var id=f.constructTagName("virtualizedlist"),HD=f.constructTagName("virtualizedwrapper"),ad={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0}};var Qt=class extends v{constructor(){super();this.virtualizerProps=ad.VIRTUALIZER_PROPS;this.scrollElementRef=td();this.virtualItems=[];this.virtualizerController=null,this.virtualizer=null,this.setlistdata=null,this.onscroll=null}update(e){super.update(e),e.get("virtualizerProps")&&this.setVirtualizerOptions()}firstUpdated(e){super.firstUpdated(e),this.setVirtualizerOptions()}setVirtualizerOptions(){var e;(e=this.virtualizer)==null||e.setOptions({...this.virtualizer.options,...this.virtualizerProps}),this.requestUpdate()}connectedCallback(){var e;this.virtualizerController=new Pi(this,{count:this.virtualizerProps.count,estimateSize:(e=this.virtualizerProps)==null?void 0:e.estimateSize,getScrollElement:()=>this.scrollElementRef.value||null,...this.virtualizerProps}),super.connectedCallback()}getVirtualizedListWrapper(e){var c,d;this.virtualizer=e.getVirtualizer();let{getTotalSize:r,getVirtualItems:o,measureElement:a}=this.virtualizer,s=o();if(s!==this.virtualItems){this.virtualItems=s;let p=o(),h={position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${(d=(c=p[0])==null?void 0:c.start)!=null?d:0}px)`};this.setlistdata&&this.setlistdata({virtualItems:p,measureElement:a,listStyle:h})}return m`<div
4293
4451
  part="container"
4294
4452
  style="height: ${r()}px;"
4295
4453
  >
4296
4454
  <slot></slot>
4297
4455
  </div>`}render(){return m`<div
4298
- ${Vc(this.scrollElementRef)}
4456
+ ${rd(this.scrollElementRef)}
4299
4457
  part="scroll"
4300
4458
  @scroll=${this.onscroll&&this.onscroll}
4301
4459
  >
4302
4460
  ${this.virtualizerController?this.getVirtualizedListWrapper(this.virtualizerController):m``}
4303
4461
  </div>
4304
- `}};Kt.styles=[...v.styles,...Uc],n([c({type:Function,attribute:"onscroll"})],Kt.prototype,"onscroll",2),n([c({type:Object,attribute:"virtualizerprops"})],Kt.prototype,"virtualizerProps",2),n([c({type:Function,attribute:"setlistdata"})],Kt.prototype,"setlistdata",2);var ds=Kt;ds.register(Fc);var Up=ds;var wi=class extends je{connectedCallback(){super.connectedCallback(),this.role=Ce.MENUITEM,this.variant=so.INSET_RECTANGLE}};wi.styles=[...je.styles];var ms=wi;var Hc=f.constructTagName("menuitem");ms.register(Hc);var Fp=ms;})();
4462
+ `}};Qt.styles=[...v.styles,...od],n([l({type:Function,attribute:"onscroll"})],Qt.prototype,"onscroll",2),n([l({type:Object,attribute:"virtualizerprops"})],Qt.prototype,"virtualizerProps",2),n([l({type:Function,attribute:"setlistdata"})],Qt.prototype,"setlistdata",2);var Ts=Qt;Ts.register(id);var ch=Ts;var sd=f.constructTagName("menuitemradio"),As={TRUE:"true",FALSE:"false"};var Eo=class extends et{constructor(){super(...arguments);this.ariaChecked=As.FALSE}connectedCallback(){super.connectedCallback(),this.role=ie.MENUITEMRADIO}render(){return m`
4463
+ <div part="leading-controls">
4464
+ <mdc-staticradio
4465
+ slot="leading-controls"
4466
+ ?checked="${this.ariaChecked===As.TRUE}"
4467
+ ?disabled="${this.disabled}"
4468
+ ></mdc-staticradio>
4469
+ </div>
4470
+ <div part="leading-text">
4471
+ ${this.getText("leading-text-primary-label",E.BODY_MIDSIZE_REGULAR,this.label)}
4472
+ ${this.getText("leading-text-secondary-label",E.BODY_MIDSIZE_REGULAR,this.secondaryLabel)}
4473
+ </div>
4474
+ `}};Eo.styles=[...et.styles],n([l({type:String,reflect:!0,attribute:"aria-checked"})],Eo.prototype,"ariaChecked",2);var Ss=Eo;Ss.register(sd);var dh=Ss;var nd=f.constructTagName("menuitemcheckbox"),To={FALSE:"false",TRUE:"true"},Ao={CHECKBOX:"checkbox",CHECKMARK:"checkmark",TOGGLE:"toggle"},Is={ARIA_CHECKED:To.FALSE,INDICATOR:Ao.CHECKBOX};var mh=u`
4475
+ :host {
4476
+ --mdc-checkmark-indicator-color: var(--mds-color-theme-control-active-normal);
4477
+ }
4478
+ :host::part(checkmark-icon) {
4479
+ --mdc-icon-fill-color: var(--mdc-checkmark-indicator-color);
4480
+ }
4481
+ :host([disabled])::part(checkmark-icon) {
4482
+ --mdc-icon-fill-color: currentColor;
4483
+ }
4484
+ `,ld=[mh];var Or=class extends et{constructor(){super(...arguments);this.ariaChecked=Is.ARIA_CHECKED;this.indicator=Is.INDICATOR}connectedCallback(){super.connectedCallback(),this.role=ie.MENUITEMCHECKBOX}staticCheckbox(){return this.indicator!==Ao.CHECKBOX?g:m`
4485
+ <mdc-staticcheckbox
4486
+ slot="leading-controls"
4487
+ ?checked="${this.ariaChecked===To.TRUE}"
4488
+ ?disabled="${this.disabled}"
4489
+ ></mdc-staticcheckbox>
4490
+ `}staticToggle(){return this.indicator!==Ao.TOGGLE?g:m`
4491
+ <mdc-statictoggle
4492
+ slot="trailing-controls"
4493
+ ?checked="${this.ariaChecked===To.TRUE}"
4494
+ ?disabled="${this.disabled}"
4495
+ size="${yo.COMPACT}"
4496
+ ></mdc-statictoggle>
4497
+ `}getCheckmarkIcon(){return this.indicator!==Ao.CHECKMARK||this.ariaChecked===To.FALSE?g:m`
4498
+ <mdc-icon
4499
+ slot="trailing-controls"
4500
+ name="check-bold"
4501
+ part="checkmark-icon"
4502
+ ></mdc-icon>
4503
+ `}render(){return m`
4504
+ <div part="leading">
4505
+ ${this.staticCheckbox()}
4506
+ <slot name="leading-controls"></slot>
4507
+ <div part="leading-text">
4508
+ ${this.getText("leading-text-primary-label",E.BODY_MIDSIZE_REGULAR,this.label)}
4509
+ ${this.getText("leading-text-secondary-label",E.BODY_SMALL_REGULAR,this.secondaryLabel)}
4510
+ ${this.getText("leading-text-tertiary-label",E.BODY_SMALL_REGULAR,this.tertiaryLabel)}
4511
+ </div>
4512
+ </div>
4513
+ <div part="trailing">
4514
+ <div part="trailing-text">
4515
+ ${this.getText("trailing-text-side-header",E.BODY_MIDSIZE_REGULAR,this.sideHeaderText)}
4516
+ ${this.getText("trailing-text-subline",E.BODY_SMALL_REGULAR,this.sublineText)}
4517
+ </div>
4518
+ <slot name="trailing-controls"></slot>
4519
+ ${this.staticToggle()}
4520
+ ${this.getCheckmarkIcon()}
4521
+ </div>
4522
+ `}};Or.styles=[...et.styles,...ld],n([l({type:String,reflect:!0,attribute:"aria-checked"})],Or.prototype,"ariaChecked",2),n([l({type:String,reflect:!0})],Or.prototype,"indicator",2);var Cs=Or;Cs.register(nd);var ph=Cs;})();
4305
4523
  /*! Bundled license information:
4306
4524
 
4307
4525
  @lit/reactive-element/css-tag.js: