@momentum-design/components 0.28.1 → 0.28.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/browser/index.js +148 -122
  2. package/dist/browser/index.js.map +4 -4
  3. package/dist/components/buttonsimple/buttonsimple.component.d.ts +1 -7
  4. package/dist/components/buttonsimple/buttonsimple.component.js +6 -13
  5. package/dist/components/checkbox/checkbox.component.d.ts +26 -13
  6. package/dist/components/checkbox/checkbox.component.js +62 -22
  7. package/dist/components/formfieldgroup/formfieldgroup.component.js +2 -1
  8. package/dist/components/input/input.component.d.ts +59 -72
  9. package/dist/components/input/input.component.js +85 -100
  10. package/dist/components/radio/radio.component.d.ts +51 -36
  11. package/dist/components/radio/radio.component.js +126 -46
  12. package/dist/components/radio/radio.styles.js +4 -0
  13. package/dist/components/radiogroup/radiogroup.component.d.ts +7 -2
  14. package/dist/components/radiogroup/radiogroup.component.js +26 -3
  15. package/dist/components/themeprovider/themeprovider.component.d.ts +8 -0
  16. package/dist/components/themeprovider/themeprovider.component.js +8 -0
  17. package/dist/components/themeprovider/themeprovider.styles.js +12 -0
  18. package/dist/components/toggle/toggle.component.d.ts +43 -24
  19. package/dist/components/toggle/toggle.component.js +79 -31
  20. package/dist/components/toggle/toggle.constants.d.ts +1 -0
  21. package/dist/components/toggle/toggle.constants.js +1 -0
  22. package/dist/custom-elements.json +1343 -422
  23. package/dist/react/themeprovider/index.d.ts +8 -0
  24. package/dist/react/themeprovider/index.js +8 -0
  25. package/dist/utils/mixins/FormInternalsMixin.d.ts +38 -0
  26. package/dist/utils/mixins/FormInternalsMixin.js +79 -0
  27. package/package.json +1 -1
  28. package/dist/utils/mixins/NameMixin.d.ts +0 -6
  29. package/dist/utils/mixins/NameMixin.js +0 -29
  30. package/dist/utils/mixins/ReadonlyMixin.d.ts +0 -6
  31. package/dist/utils/mixins/ReadonlyMixin.js +0 -29
  32. package/dist/utils/mixins/RequiredMixin.d.ts +0 -6
  33. package/dist/utils/mixins/RequiredMixin.js +0 -29
  34. package/dist/utils/mixins/ValueMixin.d.ts +0 -6
  35. package/dist/utils/mixins/ValueMixin.js +0 -28
@@ -1,6 +1,6 @@
1
- "use strict";(()=>{var Bs=Object.defineProperty;var Gs=Object.getOwnPropertyDescriptor;var c=(o,t,e,r)=>{for(var i=r>1?void 0:r?Gs(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&Bs(t,e,i),i};var lr=globalThis,cr=lr.ShadowRoot&&(lr.ShadyCSS===void 0||lr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,no=Symbol(),pi=new WeakMap,Ot=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==no)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(cr&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=pi.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&pi.set(e,t))}return t}toString(){return this.cssText}},hi=o=>new Ot(typeof o=="string"?o:o+"",void 0,no),g=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((r,i,n)=>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.")})(i)+o[n+1],o[0]);return new Ot(e,o,no)},so=(o,t)=>{if(cr)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),i=lr.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=e.cssText,o.appendChild(r)}},dr=cr?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return hi(e)})(o):o;var{is:Ys,defineProperty:Ws,getOwnPropertyDescriptor:qs,getOwnPropertyNames:Xs,getOwnPropertySymbols:Zs,getPrototypeOf:js}=Object,Oe=globalThis,ui=Oe.trustedTypes,Ks=ui?ui.emptyScript:"",ao=Oe.reactiveElementPolyfillSupport,zt=(o,t)=>o,Mt={toAttribute(o,t){switch(t){case Boolean:o=o?Ks:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},mr=(o,t)=>!Ys(o,t),fi={attribute:!0,type:String,converter:Mt,reflect:!1,hasChanged:mr},gi,vi;(gi=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(vi=Oe.litPropertyMetadata)!=null||(Oe.litPropertyMetadata=new WeakMap);var ye=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=fi){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let r=Symbol(),i=this.getPropertyDescriptor(t,r,e);i!==void 0&&Ws(this.prototype,t,i)}}static getPropertyDescriptor(t,e,r){var s;let{get:i,set:n}=(s=qs(this.prototype,t))!=null?s:{get(){return this[e]},set(a){this[e]=a}};return{get(){return i==null?void 0:i.call(this)},set(a){let l=i==null?void 0:i.call(this);n.call(this,a),this.requestUpdate(t,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:fi}static _$Ei(){if(this.hasOwnProperty(zt("elementProperties")))return;let t=js(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(zt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(zt("properties"))){let e=this.properties,r=[...Xs(e),...Zs(e)];for(let i of r)this.createProperty(i,e[i])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,i]of e)this.elementProperties.set(r,i)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let i=this._$Eu(e,r);i!==void 0&&this._$Eh.set(i,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 i of r)e.unshift(dr(i))}else t!==void 0&&e.push(dr(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 so(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 i;return(i=r.hostConnected)==null?void 0:i.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 n;let r=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,r);if(i!==void 0&&r.reflect===!0){let s=(((n=r.converter)==null?void 0:n.toAttribute)!==void 0?r.converter:Mt).toAttribute(e,r.type);this._$Em=t,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$Em=null}}_$AK(t,e){var n;let r=this.constructor,i=r._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let s=r.getPropertyOptions(i),a=typeof s.converter=="function"?{fromAttribute:s.converter}:((n=s.converter)==null?void 0:n.fromAttribute)!==void 0?s.converter:Mt;this._$Em=i,this[i]=a.fromAttribute(e,s.type),this._$Em=null}}requestUpdate(t,e,r){var i;if(t!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(t)),!((i=r.hasChanged)!=null?i:mr)(this[t],e))return;this.P(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,r){var i;this._$AL.has(t)||this._$AL.set(t,e),r.reflect===!0&&this._$Em!==t&&((i=this._$Ej)!=null?i: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,i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[s,a]of this._$Ep)this[s]=a;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[s,a]of n)a.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],a)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach(n=>{var s;return(s=n.hostUpdate)==null?void 0:s.call(n)}),this.update(e)):this._$EU()}catch(n){throw t=!1,this._$EU(),n}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(r=>{var i;return(i=r.hostUpdated)==null?void 0:i.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){}},bi;ye.elementStyles=[],ye.shadowRootOptions={mode:"open"},ye[zt("elementProperties")]=new Map,ye[zt("finalized")]=new Map,ao==null||ao({ReactiveElement:ye}),((bi=Oe.reactiveElementVersions)!=null?bi:Oe.reactiveElementVersions=[]).push("2.0.4");var Qs={attribute:!0,type:String,converter:Mt,reflect:!1,hasChanged:mr},Js=(o=Qs,t,e)=>{let{kind:r,metadata:i}=e,n=globalThis.litPropertyMetadata.get(i);if(n===void 0&&globalThis.litPropertyMetadata.set(i,n=new Map),n.set(e.name,o),r==="accessor"){let{name:s}=e;return{set(a){let l=t.get.call(this);t.set.call(this,a),this.requestUpdate(s,l,o)},init(a){return a!==void 0&&this.P(s,void 0,o),a}}}if(r==="setter"){let{name:s}=e;return function(a){let l=this[s];t.call(this,a),this.requestUpdate(s,l,o)}}throw Error("Unsupported decorator location: "+r)};function d(o){return(t,e)=>typeof e=="object"?Js(o,t,e):((r,i,n)=>{let s=i.hasOwnProperty(n);return i.constructor.createProperty(n,s?{...r,wrapped:!0}:r),s?Object.getOwnPropertyDescriptor(i,n):void 0})(o,t,e)}function Y(o){return d({...o,state:!0,attribute:!1})}var Ye=(o,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(o,t,e),e);function yi(o,t){return(e,r,i)=>{let n=s=>{var a,l;return(l=(a=s.renderRoot)==null?void 0:a.querySelector(o))!=null?l:null};if(t){let{get:s,set:a}=typeof r=="object"?e:i!=null?i:(()=>{let l=Symbol();return{get(){return this[l]},set(m){this[l]=m}}})();return Ye(e,r,{get(){let l=s.call(this);return l===void 0&&(l=n(this),(l!==null||this.hasUpdated)&&a.call(this,l)),l}})}return Ye(e,r,{get(){return n(this)}})}}var ea={PREFIX:"mdc",SEPARATOR:"-"},ta={NAMESPACE:ea},lo=ta;var ra=o=>[lo.NAMESPACE.PREFIX,o].join(lo.NAMESPACE.SEPARATOR),y={constructTagName:ra};var pr=y.constructTagName("themeprovider"),co={THEMECLASS:"mds-theme-stable-darkWebex"};var $t=globalThis,hr=$t.trustedTypes,xi=hr?hr.createPolicy("lit-html",{createHTML:o=>o}):void 0,ho="$lit$",xe=`lit$${Math.random().toFixed(9).slice(2)}$`,uo="?"+xe,oa=`<${uo}>`,Xe=document,Pt=()=>Xe.createComment(""),Ut=o=>o===null||typeof o!="object"&&typeof o!="function",fo=Array.isArray,wi=o=>fo(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",mo=`[
2
- \f\r]`,Dt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ei=/-->/g,Ti=/>/g,We=RegExp(`>|${mo}(?:([^\\s"'>=/]+)(${mo}*=${mo}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ai=/'/g,Si=/"/g,Ci=/^(?:script|style|textarea|title)$/i,go=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),u=go(1),yc=go(2),xc=go(3),Ee=Symbol.for("lit-noChange"),x=Symbol.for("lit-nothing"),_i=new WeakMap,qe=Xe.createTreeWalker(Xe,129);function Li(o,t){if(!fo(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return xi!==void 0?xi.createHTML(t):t}var Ri=(o,t)=>{let e=o.length-1,r=[],i,n=t===2?"<svg>":t===3?"<math>":"",s=Dt;for(let a=0;a<e;a++){let l=o[a],m,p,h=-1,v=0;for(;v<l.length&&(s.lastIndex=v,p=s.exec(l),p!==null);)v=s.lastIndex,s===Dt?p[1]==="!--"?s=Ei:p[1]!==void 0?s=Ti:p[2]!==void 0?(Ci.test(p[2])&&(i=RegExp("</"+p[2],"g")),s=We):p[3]!==void 0&&(s=We):s===We?p[0]===">"?(s=i!=null?i:Dt,h=-1):p[1]===void 0?h=-2:(h=s.lastIndex-p[2].length,m=p[1],s=p[3]===void 0?We:p[3]==='"'?Si:Ai):s===Si||s===Ai?s=We:s===Ei||s===Ti?s=Dt:(s=We,i=void 0);let f=s===We&&o[a+1].startsWith("/>")?" ":"";n+=s===Dt?l+oa:h>=0?(r.push(m),l.slice(0,h)+ho+l.slice(h)+xe+f):l+xe+(h===-2?a:f)}return[Li(o,n+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},Ht=class o{constructor({strings:t,_$litType$:e},r){let i;this.parts=[];let n=0,s=0,a=t.length-1,l=this.parts,[m,p]=Ri(t,e);if(this.el=o.createElement(m,r),qe.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(i=qe.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let h of i.getAttributeNames())if(h.endsWith(ho)){let v=p[s++],f=i.getAttribute(h).split(xe),b=/([.?@])?(.*)/.exec(v);l.push({type:1,index:n,name:b[2],strings:f,ctor:b[1]==="."?fr:b[1]==="?"?gr:b[1]==="@"?vr:je}),i.removeAttribute(h)}else h.startsWith(xe)&&(l.push({type:6,index:n}),i.removeAttribute(h));if(Ci.test(i.tagName)){let h=i.textContent.split(xe),v=h.length-1;if(v>0){i.textContent=hr?hr.emptyScript:"";for(let f=0;f<v;f++)i.append(h[f],Pt()),qe.nextNode(),l.push({type:2,index:++n});i.append(h[v],Pt())}}}else if(i.nodeType===8)if(i.data===uo)l.push({type:2,index:n});else{let h=-1;for(;(h=i.data.indexOf(xe,h+1))!==-1;)l.push({type:7,index:n}),h+=xe.length-1}n++}}static createElement(t,e){let r=Xe.createElement("template");return r.innerHTML=t,r}};function Ze(o,t,e=o,r){var s,a,l;if(t===Ee)return t;let i=r!==void 0?(s=e.o)==null?void 0:s[r]:e.l,n=Ut(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==n&&((a=i==null?void 0:i._$AO)==null||a.call(i,!1),n===void 0?i=void 0:(i=new n(o),i._$AT(o,e,r)),r!==void 0?((l=e.o)!=null?l:e.o=[])[r]=i:e.l=i),i!==void 0&&(t=Ze(o,i._$AS(o,t.values),i,r)),t}var ur=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 m;let{el:{content:e},parts:r}=this._$AD,i=((m=t==null?void 0:t.creationScope)!=null?m:Xe).importNode(e,!0);qe.currentNode=i;let n=qe.nextNode(),s=0,a=0,l=r[0];for(;l!==void 0;){if(s===l.index){let p;l.type===2?p=new gt(n,n.nextSibling,this,t):l.type===1?p=new l.ctor(n,l.name,l.strings,this,t):l.type===6&&(p=new br(n,this,t)),this._$AV.push(p),l=r[++a]}s!==(l==null?void 0:l.index)&&(n=qe.nextNode(),s++)}return qe.currentNode=Xe,i}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++}},gt=class o{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this.v}constructor(t,e,r,i){var n;this.type=2,this._$AH=x,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=i,this.v=(n=i==null?void 0:i.isConnected)!=null?n:!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=Ze(this,t,e),Ut(t)?t===x||t==null||t===""?(this._$AH!==x&&this._$AR(),this._$AH=x):t!==this._$AH&&t!==Ee&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):wi(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!==x&&Ut(this._$AH)?this._$AA.nextSibling.data=t:this.T(Xe.createTextNode(t)),this._$AH=t}$(t){var n;let{values:e,_$litType$:r}=t,i=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=Ht.createElement(Li(r.h,r.h[0]),this.options)),r);if(((n=this._$AH)==null?void 0:n._$AD)===i)this._$AH.p(e);else{let s=new ur(i,this),a=s.u(this.options);s.p(e),this.T(a),this._$AH=s}}_$AC(t){let e=_i.get(t.strings);return e===void 0&&_i.set(t.strings,e=new Ht(t)),e}k(t){fo(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,i=0;for(let n of t)i===e.length?e.push(r=new o(this.O(Pt()),this.O(Pt()),this,this.options)):r=e[i],r._$AI(n),i++;i<e.length&&(this._$AR(r&&r._$AB.nextSibling,i),e.length=i)}_$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 i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this.v=t,(e=this._$AP)==null||e.call(this,t))}},je=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,i,n){this.type=1,this._$AH=x,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=x}_$AI(t,e=this,r,i){let n=this.strings,s=!1;if(n===void 0)t=Ze(this,t,e,0),s=!Ut(t)||t!==this._$AH&&t!==Ee,s&&(this._$AH=t);else{let a=t,l,m;for(t=n[0],l=0;l<n.length-1;l++)m=Ze(this,a[r+l],e,l),m===Ee&&(m=this._$AH[l]),s||(s=!Ut(m)||m!==this._$AH[l]),m===x?t=x:t!==x&&(t+=(m!=null?m:"")+n[l+1]),this._$AH[l]=m}s&&!i&&this.j(t)}j(t){t===x?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},fr=class extends je{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===x?void 0:t}},gr=class extends je{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==x)}},vr=class extends je{constructor(t,e,r,i,n){super(t,e,r,i,n),this.type=5}_$AI(t,e=this){var s;if((t=(s=Ze(this,t,e,0))!=null?s:x)===Ee)return;let r=this._$AH,i=t===x&&r!==x||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==x&&(r===x||i);i&&this.element.removeEventListener(this.name,this,r),n&&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)}},br=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){Ze(this,t)}},Ni={M:ho,P:xe,A:uo,C:1,L:Ri,R:ur,D:wi,V:Ze,I:gt,H:je,N:gr,U:vr,B:fr,F:br},po=$t.litHtmlPolyfillSupport,Ii;po==null||po(Ht,gt),((Ii=$t.litHtmlVersions)!=null?Ii:$t.litHtmlVersions=[]).push("3.2.0");var ki=(o,t,e)=>{var n,s;let r=(n=e==null?void 0:e.renderBefore)!=null?n:t,i=r._$litPart$;if(i===void 0){let a=(s=e==null?void 0:e.renderBefore)!=null?s:null;r._$litPart$=i=new gt(t.insertBefore(Pt(),a),a,void 0,e!=null?e:{})}return i._$AI(o),i};var ze=class extends ye{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=ki(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 Ee}},Oi;ze._$litElement$=!0,ze.finalized=!0,(Oi=globalThis.litElementHydrateSupport)==null||Oi.call(globalThis,{LitElement:ze});var vo=globalThis.litElementPolyfillSupport;vo==null||vo({LitElement:ze});var zi;((zi=globalThis.litElementVersions)!=null?zi:globalThis.litElementVersions=[]).push("4.1.0");var Mi=g`
1
+ "use strict";(()=>{var Fs=Object.defineProperty;var Bs=Object.getOwnPropertyDescriptor;var c=(o,t,e,r)=>{for(var i=r>1?void 0:r?Bs(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&Fs(t,e,i),i};var ar=globalThis,lr=ar.ShadowRoot&&(ar.ShadyCSS===void 0||ar.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,oo=Symbol(),mi=new WeakMap,Lt=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==oo)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(lr&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=mi.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&mi.set(e,t))}return t}toString(){return this.cssText}},hi=o=>new Lt(typeof o=="string"?o:o+"",void 0,oo),g=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((r,i,n)=>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.")})(i)+o[n+1],o[0]);return new Lt(e,o,oo)},io=(o,t)=>{if(lr)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),i=ar.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=e.cssText,o.appendChild(r)}},cr=lr?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return hi(e)})(o):o;var{is:Gs,defineProperty:qs,getOwnPropertyDescriptor:Ys,getOwnPropertyNames:Ws,getOwnPropertySymbols:Xs,getPrototypeOf:Zs}=Object,Ne=globalThis,pi=Ne.trustedTypes,js=pi?pi.emptyScript:"",no=Ne.reactiveElementPolyfillSupport,Nt=(o,t)=>o,Ot={toAttribute(o,t){switch(t){case Boolean:o=o?js:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},dr=(o,t)=>!Gs(o,t),ui={attribute:!0,type:String,converter:Ot,reflect:!1,hasChanged:dr},fi,gi;(fi=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(gi=Ne.litPropertyMetadata)!=null||(Ne.litPropertyMetadata=new WeakMap);var be=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=ui){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let r=Symbol(),i=this.getPropertyDescriptor(t,r,e);i!==void 0&&qs(this.prototype,t,i)}}static getPropertyDescriptor(t,e,r){var s;let{get:i,set:n}=(s=Ys(this.prototype,t))!=null?s:{get(){return this[e]},set(a){this[e]=a}};return{get(){return i==null?void 0:i.call(this)},set(a){let l=i==null?void 0:i.call(this);n.call(this,a),this.requestUpdate(t,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:ui}static _$Ei(){if(this.hasOwnProperty(Nt("elementProperties")))return;let t=Zs(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Nt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Nt("properties"))){let e=this.properties,r=[...Ws(e),...Xs(e)];for(let i of r)this.createProperty(i,e[i])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,i]of e)this.elementProperties.set(r,i)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let i=this._$Eu(e,r);i!==void 0&&this._$Eh.set(i,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 i of r)e.unshift(cr(i))}else t!==void 0&&e.push(cr(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 io(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 i;return(i=r.hostConnected)==null?void 0:i.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 n;let r=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,r);if(i!==void 0&&r.reflect===!0){let s=(((n=r.converter)==null?void 0:n.toAttribute)!==void 0?r.converter:Ot).toAttribute(e,r.type);this._$Em=t,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$Em=null}}_$AK(t,e){var n;let r=this.constructor,i=r._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let s=r.getPropertyOptions(i),a=typeof s.converter=="function"?{fromAttribute:s.converter}:((n=s.converter)==null?void 0:n.fromAttribute)!==void 0?s.converter:Ot;this._$Em=i,this[i]=a.fromAttribute(e,s.type),this._$Em=null}}requestUpdate(t,e,r){var i;if(t!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(t)),!((i=r.hasChanged)!=null?i:dr)(this[t],e))return;this.P(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,r){var i;this._$AL.has(t)||this._$AL.set(t,e),r.reflect===!0&&this._$Em!==t&&((i=this._$Ej)!=null?i: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,i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[s,a]of this._$Ep)this[s]=a;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[s,a]of n)a.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],a)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach(n=>{var s;return(s=n.hostUpdate)==null?void 0:s.call(n)}),this.update(e)):this._$EU()}catch(n){throw t=!1,this._$EU(),n}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(r=>{var i;return(i=r.hostUpdated)==null?void 0:i.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){}},vi;be.elementStyles=[],be.shadowRootOptions={mode:"open"},be[Nt("elementProperties")]=new Map,be[Nt("finalized")]=new Map,no==null||no({ReactiveElement:be}),((vi=Ne.reactiveElementVersions)!=null?vi:Ne.reactiveElementVersions=[]).push("2.0.4");var Ks={attribute:!0,type:String,converter:Ot,reflect:!1,hasChanged:dr},Qs=(o=Ks,t,e)=>{let{kind:r,metadata:i}=e,n=globalThis.litPropertyMetadata.get(i);if(n===void 0&&globalThis.litPropertyMetadata.set(i,n=new Map),n.set(e.name,o),r==="accessor"){let{name:s}=e;return{set(a){let l=t.get.call(this);t.set.call(this,a),this.requestUpdate(s,l,o)},init(a){return a!==void 0&&this.P(s,void 0,o),a}}}if(r==="setter"){let{name:s}=e;return function(a){let l=this[s];t.call(this,a),this.requestUpdate(s,l,o)}}throw Error("Unsupported decorator location: "+r)};function d(o){return(t,e)=>typeof e=="object"?Qs(o,t,e):((r,i,n)=>{let s=i.hasOwnProperty(n);return i.constructor.createProperty(n,s?{...r,wrapped:!0}:r),s?Object.getOwnPropertyDescriptor(i,n):void 0})(o,t,e)}function q(o){return d({...o,state:!0,attribute:!1})}var Be=(o,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(o,t,e),e);function bi(o,t){return(e,r,i)=>{let n=s=>{var a,l;return(l=(a=s.renderRoot)==null?void 0:a.querySelector(o))!=null?l:null};if(t){let{get:s,set:a}=typeof r=="object"?e:i!=null?i:(()=>{let l=Symbol();return{get(){return this[l]},set(m){this[l]=m}}})();return Be(e,r,{get(){let l=s.call(this);return l===void 0&&(l=n(this),(l!==null||this.hasUpdated)&&a.call(this,l)),l}})}return Be(e,r,{get(){return n(this)}})}}var Js={PREFIX:"mdc",SEPARATOR:"-"},ea={NAMESPACE:Js},so=ea;var ta=o=>[so.NAMESPACE.PREFIX,o].join(so.NAMESPACE.SEPARATOR),y={constructTagName:ta};var mr=y.constructTagName("themeprovider"),ao={THEMECLASS:"mds-theme-stable-darkWebex"};var Mt=globalThis,hr=Mt.trustedTypes,yi=hr?hr.createPolicy("lit-html",{createHTML:o=>o}):void 0,mo="$lit$",ye=`lit$${Math.random().toFixed(9).slice(2)}$`,ho="?"+ye,ra=`<${ho}>`,Ye=document,Dt=()=>Ye.createComment(""),$t=o=>o===null||typeof o!="object"&&typeof o!="function",po=Array.isArray,wi=o=>po(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",lo=`[
2
+ \f\r]`,zt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,xi=/-->/g,Ei=/>/g,Ge=RegExp(`>|${lo}(?:([^\\s"'>=/]+)(${lo}*=${lo}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ti=/'/g,Ai=/"/g,Ii=/^(?:script|style|textarea|title)$/i,uo=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),u=uo(1),bc=uo(2),yc=uo(3),xe=Symbol.for("lit-noChange"),x=Symbol.for("lit-nothing"),Si=new WeakMap,qe=Ye.createTreeWalker(Ye,129);function Ci(o,t){if(!po(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return yi!==void 0?yi.createHTML(t):t}var Ri=(o,t)=>{let e=o.length-1,r=[],i,n=t===2?"<svg>":t===3?"<math>":"",s=zt;for(let a=0;a<e;a++){let l=o[a],m,h,p=-1,v=0;for(;v<l.length&&(s.lastIndex=v,h=s.exec(l),h!==null);)v=s.lastIndex,s===zt?h[1]==="!--"?s=xi:h[1]!==void 0?s=Ei:h[2]!==void 0?(Ii.test(h[2])&&(i=RegExp("</"+h[2],"g")),s=Ge):h[3]!==void 0&&(s=Ge):s===Ge?h[0]===">"?(s=i!=null?i:zt,p=-1):h[1]===void 0?p=-2:(p=s.lastIndex-h[2].length,m=h[1],s=h[3]===void 0?Ge:h[3]==='"'?Ai:Ti):s===Ai||s===Ti?s=Ge:s===xi||s===Ei?s=zt:(s=Ge,i=void 0);let f=s===Ge&&o[a+1].startsWith("/>")?" ":"";n+=s===zt?l+ra:p>=0?(r.push(m),l.slice(0,p)+mo+l.slice(p)+ye+f):l+ye+(p===-2?a:f)}return[Ci(o,n+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},Pt=class o{constructor({strings:t,_$litType$:e},r){let i;this.parts=[];let n=0,s=0,a=t.length-1,l=this.parts,[m,h]=Ri(t,e);if(this.el=o.createElement(m,r),qe.currentNode=this.el.content,e===2||e===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(i=qe.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let p of i.getAttributeNames())if(p.endsWith(mo)){let v=h[s++],f=i.getAttribute(p).split(ye),b=/([.?@])?(.*)/.exec(v);l.push({type:1,index:n,name:b[2],strings:f,ctor:b[1]==="."?ur:b[1]==="?"?fr:b[1]==="@"?gr:Xe}),i.removeAttribute(p)}else p.startsWith(ye)&&(l.push({type:6,index:n}),i.removeAttribute(p));if(Ii.test(i.tagName)){let p=i.textContent.split(ye),v=p.length-1;if(v>0){i.textContent=hr?hr.emptyScript:"";for(let f=0;f<v;f++)i.append(p[f],Dt()),qe.nextNode(),l.push({type:2,index:++n});i.append(p[v],Dt())}}}else if(i.nodeType===8)if(i.data===ho)l.push({type:2,index:n});else{let p=-1;for(;(p=i.data.indexOf(ye,p+1))!==-1;)l.push({type:7,index:n}),p+=ye.length-1}n++}}static createElement(t,e){let r=Ye.createElement("template");return r.innerHTML=t,r}};function We(o,t,e=o,r){var s,a,l;if(t===xe)return t;let i=r!==void 0?(s=e.o)==null?void 0:s[r]:e.l,n=$t(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==n&&((a=i==null?void 0:i._$AO)==null||a.call(i,!1),n===void 0?i=void 0:(i=new n(o),i._$AT(o,e,r)),r!==void 0?((l=e.o)!=null?l:e.o=[])[r]=i:e.l=i),i!==void 0&&(t=We(o,i._$AS(o,t.values),i,r)),t}var pr=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 m;let{el:{content:e},parts:r}=this._$AD,i=((m=t==null?void 0:t.creationScope)!=null?m:Ye).importNode(e,!0);qe.currentNode=i;let n=qe.nextNode(),s=0,a=0,l=r[0];for(;l!==void 0;){if(s===l.index){let h;l.type===2?h=new ut(n,n.nextSibling,this,t):l.type===1?h=new l.ctor(n,l.name,l.strings,this,t):l.type===6&&(h=new vr(n,this,t)),this._$AV.push(h),l=r[++a]}s!==(l==null?void 0:l.index)&&(n=qe.nextNode(),s++)}return qe.currentNode=Ye,i}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++}},ut=class o{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this.v}constructor(t,e,r,i){var n;this.type=2,this._$AH=x,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=i,this.v=(n=i==null?void 0:i.isConnected)!=null?n:!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=We(this,t,e),$t(t)?t===x||t==null||t===""?(this._$AH!==x&&this._$AR(),this._$AH=x):t!==this._$AH&&t!==xe&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):wi(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!==x&&$t(this._$AH)?this._$AA.nextSibling.data=t:this.T(Ye.createTextNode(t)),this._$AH=t}$(t){var n;let{values:e,_$litType$:r}=t,i=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=Pt.createElement(Ci(r.h,r.h[0]),this.options)),r);if(((n=this._$AH)==null?void 0:n._$AD)===i)this._$AH.p(e);else{let s=new pr(i,this),a=s.u(this.options);s.p(e),this.T(a),this._$AH=s}}_$AC(t){let e=Si.get(t.strings);return e===void 0&&Si.set(t.strings,e=new Pt(t)),e}k(t){po(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,i=0;for(let n of t)i===e.length?e.push(r=new o(this.O(Dt()),this.O(Dt()),this,this.options)):r=e[i],r._$AI(n),i++;i<e.length&&(this._$AR(r&&r._$AB.nextSibling,i),e.length=i)}_$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 i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this.v=t,(e=this._$AP)==null||e.call(this,t))}},Xe=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,i,n){this.type=1,this._$AH=x,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=x}_$AI(t,e=this,r,i){let n=this.strings,s=!1;if(n===void 0)t=We(this,t,e,0),s=!$t(t)||t!==this._$AH&&t!==xe,s&&(this._$AH=t);else{let a=t,l,m;for(t=n[0],l=0;l<n.length-1;l++)m=We(this,a[r+l],e,l),m===xe&&(m=this._$AH[l]),s||(s=!$t(m)||m!==this._$AH[l]),m===x?t=x:t!==x&&(t+=(m!=null?m:"")+n[l+1]),this._$AH[l]=m}s&&!i&&this.j(t)}j(t){t===x?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},ur=class extends Xe{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===x?void 0:t}},fr=class extends Xe{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==x)}},gr=class extends Xe{constructor(t,e,r,i,n){super(t,e,r,i,n),this.type=5}_$AI(t,e=this){var s;if((t=(s=We(this,t,e,0))!=null?s:x)===xe)return;let r=this._$AH,i=t===x&&r!==x||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==x&&(r===x||i);i&&this.element.removeEventListener(this.name,this,r),n&&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)}},vr=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){We(this,t)}},ki={M:mo,P:ye,A:ho,C:1,L:Ri,R:pr,D:wi,V:We,I:ut,H:Xe,N:fr,U:gr,B:ur,F:vr},co=Mt.litHtmlPolyfillSupport,_i;co==null||co(Pt,ut),((_i=Mt.litHtmlVersions)!=null?_i:Mt.litHtmlVersions=[]).push("3.2.0");var Li=(o,t,e)=>{var n,s;let r=(n=e==null?void 0:e.renderBefore)!=null?n:t,i=r._$litPart$;if(i===void 0){let a=(s=e==null?void 0:e.renderBefore)!=null?s:null;r._$litPart$=i=new ut(t.insertBefore(Dt(),a),a,void 0,e!=null?e:{})}return i._$AI(o),i};var Oe=class extends be{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=Li(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 xe}},Ni;Oe._$litElement$=!0,Oe.finalized=!0,(Ni=globalThis.litElementHydrateSupport)==null||Ni.call(globalThis,{LitElement:Oe});var fo=globalThis.litElementPolyfillSupport;fo==null||fo({LitElement:Oe});var Oi;((Oi=globalThis.litElementVersions)!=null?Oi:globalThis.litElementVersions=[]).push("4.1.0");var zi=g`
4
4
  :host {
5
5
  box-sizing: border-box;
6
6
  }
@@ -10,11 +10,11 @@
10
10
  :host *::after {
11
11
  box-sizing: inherit;
12
12
  }
13
- `;var yr=class extends ze{static register(t){customElements.get(t)||customElements.define(t,this)}};yr.styles=[Mi];var Di=yr;var E=Di;var Me=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 vt=class{constructor(t,e,r,i){var n;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(s,a)=>{this.unsubscribe&&(this.unsubscribe!==a&&(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,a)),this.unsubscribe=a},this.host=t,e.context!==void 0){let s=e;this.context=s.context,this.callback=s.callback,this.subscribe=(n=s.subscribe)!=null?n:!1}else this.context=e,this.callback=r,this.subscribe=i!=null?i:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Me(this.context,this.t,this.subscribe))}};var xr=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:i}=this.subscriptions.get(t);t(this.value,i)}clearCallbacks(){this.subscriptions.clear()}};var bo=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},bt=class extends xr{constructor(t,e,r){var i,n;super(e.context!==void 0?e.initialValue:r),this.onContextRequest=s=>{let a=s.composedPath()[0];s.context===this.context&&a!==this.host&&(s.stopPropagation(),this.addCallback(s.callback,a,s.subscribe))},this.onProviderRequest=s=>{let a=s.composedPath()[0];if(s.context!==this.context||a===this.host)return;let l=new Set;for(let[m,{consumerHost:p}]of this.subscriptions)l.has(m)||(l.add(m),p.dispatchEvent(new Me(this.context,m,!0)));s.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(n=(i=this.host).addController)==null||n.call(i,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new bo(this.context))}};var ia=g`
13
+ `;var br=class extends Oe{static register(t){customElements.get(t)||customElements.define(t,this)}};br.styles=[zi];var Mi=br;var E=Mi;var ze=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 ft=class{constructor(t,e,r,i){var n;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(s,a)=>{this.unsubscribe&&(this.unsubscribe!==a&&(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,a)),this.unsubscribe=a},this.host=t,e.context!==void 0){let s=e;this.context=s.context,this.callback=s.callback,this.subscribe=(n=s.subscribe)!=null?n:!1}else this.context=e,this.callback=r,this.subscribe=i!=null?i:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new ze(this.context,this.t,this.subscribe))}};var yr=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:i}=this.subscriptions.get(t);t(this.value,i)}clearCallbacks(){this.subscriptions.clear()}};var go=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},gt=class extends yr{constructor(t,e,r){var i,n;super(e.context!==void 0?e.initialValue:r),this.onContextRequest=s=>{let a=s.composedPath()[0];s.context===this.context&&a!==this.host&&(s.stopPropagation(),this.addCallback(s.callback,a,s.subscribe))},this.onProviderRequest=s=>{let a=s.composedPath()[0];if(s.context!==this.context||a===this.host)return;let l=new Set;for(let[m,{consumerHost:h}]of this.subscriptions)l.has(m)||(l.add(m),h.dispatchEvent(new ze(this.context,m,!0)));s.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(n=(i=this.host).addController)==null||n.call(i,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new go(this.context))}};var oa=g`
14
14
  :host {
15
15
  display: contents;
16
16
  }
17
- `,Pi=ia;var Er=class extends E{constructor({context:t,initialValue:e}){super(),this.context=new bt(this,{context:t,initialValue:e})}render(){return this.updateContext(),u`<slot></slot>`}};Er.styles=[...E.styles,Pi];var Ui=Er;var yt=Ui;var Tr=class{constructor(t){this.themeclass=t}};Tr.context=pr;var Ar=Tr;var na=g`
17
+ `,$i=oa;var xr=class extends E{constructor({context:t,initialValue:e}){super(),this.context=new gt(this,{context:t,initialValue:e})}render(){return this.updateContext(),u`<slot></slot>`}};xr.styles=[...E.styles,$i];var Pi=xr;var vt=Pi;var Er=class{constructor(t){this.themeclass=t}};Er.context=mr;var Tr=Er;var ia=g`
18
18
  :host {
19
19
  --mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
20
20
  --mdc-themeprovider-font-family: var(--mds-font-family-primary);
@@ -24,6 +24,12 @@
24
24
  /* Adjusting font feature settings for accessibility reasons */
25
25
  --mdc-themeprovider-font-feature-settings: "ss02" on;
26
26
 
27
+ /* Custom scrollbar variables */
28
+ --mdc-themeprovider-scrollbar-track-color: var(--mds-color-theme-background-secondary-normal);
29
+ --mdc-themeprovider-scrollbar-thumb-color: var(--mds-color-theme-scrollbar-button-normal);
30
+ --mdc-themeprovider-scrollbar-thumb-hover-color: var(--mds-color-theme-scrollbar-button-hover);
31
+ --mdc-themeprovider-scrollbar-thumb-active-color: var(--mds-color-theme-scrollbar-button-pressed);
32
+
27
33
  color: var(--mdc-themeprovider-color-default);
28
34
  font-family: var(--mdc-themeprovider-font-family);
29
35
  font-weight: var(--mdc-themeprovider-font-weight);
@@ -31,7 +37,13 @@
31
37
 
32
38
  font-feature-settings: var(--mdc-themeprovider-font-feature-settings);
33
39
  }
34
- `,Hi=[na];var xt=class extends yt{constructor(){super({context:Ar.context,initialValue:new Ar(co.THEMECLASS)});this.themeclass=co.THEMECLASS}static get Context(){return Ar.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(" "))}};xt.styles=[...yt.styles,...Hi],c([Y()],xt.prototype,"currentThemeClass",2),c([d({type:String})],xt.prototype,"themeclass",2);var yo=xt;yo.register(pr);var sa=yo;var C=g`
40
+
41
+ /** Scrollbar Theme for Chrome, Edge, and Firefox. This has limited support on other browsers.
42
+ https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-color for more details */
43
+ * {
44
+ scrollbar-color: var(--mdc-themeprovider-scrollbar-thumb-color) var(--mdc-themeprovider-scrollbar-track-color);
45
+ }
46
+ `,Ui=[ia];var bt=class extends vt{constructor(){super({context:Tr.context,initialValue:new Tr(ao.THEMECLASS)});this.themeclass=ao.THEMECLASS}static get Context(){return Tr.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(" "))}};bt.styles=[...vt.styles,...Ui],c([q()],bt.prototype,"currentThemeClass",2),c([d({type:String})],bt.prototype,"themeclass",2);var vo=bt;vo.register(mr);var na=vo;var C=g`
35
47
  :host {
36
48
  align-items: center;
37
49
  display: flex;
@@ -89,7 +101,7 @@
89
101
  outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
90
102
  }
91
103
  }
92
- `]};var aa=[C,g`
104
+ `]};var sa=[C,g`
93
105
  :host {
94
106
  --mdc-icon-fill-color: currentColor;
95
107
  --mdc-icon-size: var(--computed-icon-size);
@@ -104,7 +116,7 @@
104
116
  width: 100%;
105
117
  fill: var(--mdc-icon-fill-color);
106
118
  }
107
- `,...$()],Vi=aa;var la=o=>{let{host:t,context:e,subscribe:r}=o;return new vt(t,{context:e,subscribe:r!=null?r:!0})},ca={consume:la},Fi=ca;var Sr=y.constructTagName("iconprovider"),Bi=["svg"],Gi=["em","rem","px","%"],da={px:16,em:1,rem:1,"%":100},Te={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:da.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var _r=class{};_r.context=Sr;var Ir=_r;var ce=class extends yt{constructor(){super({context:Ir.context,initialValue:new Ir});this.iconSet=Te.ICON_SET;this.fileExtension=Te.FILE_EXTENSION;this.lengthUnit=Te.LENGTH_UNIT;this.size=Te.SIZE}static get Context(){return Ir.context}updateValuesInContext(){this.fileExtension&&Bi.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Te.FILE_EXTENSION,this.context.value.fileExtension=Te.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&&Gi.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=Te.LENGTH_UNIT,this.context.value.lengthUnit=Te.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.iconSet!==this.iconSet||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};c([d({type:String,attribute:"icon-set",reflect:!0})],ce.prototype,"iconSet",2),c([d({type:String})],ce.prototype,"url",2),c([d({type:String,attribute:"file-extension",reflect:!0})],ce.prototype,"fileExtension",2),c([d({type:String,attribute:"length-unit",reflect:!0})],ce.prototype,"lengthUnit",2),c([d({type:Number,reflect:!0})],ce.prototype,"size",2),c([d({type:String,attribute:"cache-strategy"})],ce.prototype,"cacheStrategy",2),c([d({type:String,attribute:"cache-name"})],ce.prototype,"cacheName",2);var Vt=ce;var Ft={},Yi=async o=>(Ft[o]===void 0&&(Ft[o]=new Map),{async set(t,e){Ft[o].set(t.url,await e.text())},async get(t){return Ft[o].get(t.url)},async delete(t){Ft[o].delete(t.url)}}),Wi=async o=>{let t=await caches.open(o);return{set:async(e,r)=>{await t.put(e,r)},get:async e=>{let r=await t.match(e);return r==null?void 0:r.text()},delete:async e=>{await t.delete(e)}}},qi=async(o,t)=>t==="in-memory-cache"?Yi(o):Wi(o);var Xi=async o=>fetch(o).then(t=>{if(!t.ok)throw new Error("There was a problem while fetching the icon!");return t}),Zi=async({url:o,name:t,fileExtension:e,cacheStrategy:r,cacheName:i,renewSignal:n})=>{let s=n(),a=new Request(`${o}/${t}.${e}`,{signal:s});return!i||!r||!["in-memory-cache","web-cache-api"].includes(r)?Xi(a).then(l=>l.text()):qi(i,r).then(l=>l.get(a).then(m=>m||Xi(a.clone()).then(p=>{var h;return p.status<400&&p.headers.has("content-type")?(h=l.set)==null?void 0:h.call(l,a,p.clone()).then(()=>p.text()):p.text()})).catch(m=>{throw new Error(`Error in caching the Icon ${t}, ${m}`)}))};var ji=y.constructTagName("icon"),xo={NAME:void 0,SIZE:1};var j=class extends E{constructor(){super();this.name=xo.NAME;this.ariaLabel=null;this.iconProviderContext=Fi.consume({host:this,context:Vt.Context});this.abortController=new AbortController}prepareIconElement(e){let r=new DOMParser().parseFromString(e,"text/html").body.children[0];return this.name&&r.setAttribute("data-name",this.name),r.setAttribute("part","icon"),r.setAttribute("aria-hidden","true"),r}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:r,url:i,cacheName:n,iconSet:s,cacheStrategy:a}=this.iconProviderContext.value;if(s==="custom-icons"&&i&&r&&this.name){let l=()=>(this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal);return Zi({url:i,name:this.name,fileExtension:r,cacheName:n,cacheStrategy:a,renewSignal:l}).then(m=>{let p=this.prepareIconElement(m);this.handleIconLoadedSuccess(p)}).catch(m=>{this.handleIconLoadedFailure(m)})}if(s==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(l=>{this.handleIconLoadedSuccess(l.default())}).catch(l=>{this.handleIconLoadedFailure(l)})}let e=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(e),Promise.reject(e)}handleIconLoadedSuccess(e){this.iconData=e;let r=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}handleIconLoadedFailure(e){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:e}});this.dispatchEvent(r)}updateSize(){var e;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let r=`${this.computedIconSize}${(e=this.lengthUnit)!=null?e:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",r)}}get computedIconSize(){var e,r;return(r=(e=this.size)!=null?e:this.sizeFromContext)!=null?r:xo.SIZE}updated(e){var r,i,n,s;super.updated(e),e.has("name")&&this.getIconData().catch(a=>{a.name!=="AbortError"&&this.onerror&&this.onerror(a)}),e.has("ariaLabel")&&(this.role=this.ariaLabel?"img":null),(e.has("size")||e.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((r=this.iconProviderContext.value)==null?void 0:r.lengthUnit)&&(this.lengthUnitFromContext=(i=this.iconProviderContext.value)==null?void 0:i.lengthUnit,this.updateSize()),this.sizeFromContext!==((n=this.iconProviderContext.value)==null?void 0:n.size)&&(this.sizeFromContext=(s=this.iconProviderContext.value)==null?void 0:s.size,this.updateSize())}render(){return u` ${this.iconData} `}};j.styles=[...E.styles,...Vi],c([Y()],j.prototype,"iconData",2),c([Y()],j.prototype,"lengthUnitFromContext",2),c([Y()],j.prototype,"sizeFromContext",2),c([d({type:String,reflect:!0})],j.prototype,"name",2),c([d({type:Number})],j.prototype,"size",2),c([d({type:String,attribute:"length-unit"})],j.prototype,"lengthUnit",2),c([d({type:String,attribute:"aria-label"})],j.prototype,"ariaLabel",2),c([Y()],j.prototype,"abortController",2);var Eo=j;Eo.register(ji);var ma=Eo;Vt.register(Sr);var pa=Vt;var S=o=>o!=null?o:x;var Ki=y.constructTagName("avatar"),B={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},To=99,ha="user-regular",N={24:24,32:32,48:48,64:64,72:72,88:88,124:124},Et={TYPE:B.PHOTO,SIZE:N[32],ICON_NAME:ha};var wr=o=>{class t extends o{constructor(){super(...arguments);this.size=Et.SIZE;this.isTyping=!1}}return c([d({type:String})],t.prototype,"src",2),c([d({type:String})],t.prototype,"initials",2),c([d({type:String})],t.prototype,"presence",2),c([d({type:Number,reflect:!0,attribute:"size"})],t.prototype,"size",2),c([d({type:Number})],t.prototype,"counter",2),c([d({type:Boolean,attribute:"is-typing"})],t.prototype,"isTyping",2),t};var de=o=>{class t extends o{}return c([d({type:String,attribute:"icon-name"})],t.prototype,"iconName",2),t};var ua=[C,g`
119
+ `,...$()],Vi=sa;var aa=o=>{let{host:t,context:e,subscribe:r}=o;return new ft(t,{context:e,subscribe:r!=null?r:!0})},la={consume:aa},Hi=la;var Ar=y.constructTagName("iconprovider"),Fi=["svg"],Bi=["em","rem","px","%"],ca={px:16,em:1,rem:1,"%":100},Ee={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:ca.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var Sr=class{};Sr.context=Ar;var _r=Sr;var ce=class extends vt{constructor(){super({context:_r.context,initialValue:new _r});this.iconSet=Ee.ICON_SET;this.fileExtension=Ee.FILE_EXTENSION;this.lengthUnit=Ee.LENGTH_UNIT;this.size=Ee.SIZE}static get Context(){return _r.context}updateValuesInContext(){this.fileExtension&&Fi.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Ee.FILE_EXTENSION,this.context.value.fileExtension=Ee.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&&Bi.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=Ee.LENGTH_UNIT,this.context.value.lengthUnit=Ee.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.iconSet!==this.iconSet||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};c([d({type:String,attribute:"icon-set",reflect:!0})],ce.prototype,"iconSet",2),c([d({type:String})],ce.prototype,"url",2),c([d({type:String,attribute:"file-extension",reflect:!0})],ce.prototype,"fileExtension",2),c([d({type:String,attribute:"length-unit",reflect:!0})],ce.prototype,"lengthUnit",2),c([d({type:Number,reflect:!0})],ce.prototype,"size",2),c([d({type:String,attribute:"cache-strategy"})],ce.prototype,"cacheStrategy",2),c([d({type:String,attribute:"cache-name"})],ce.prototype,"cacheName",2);var Ut=ce;var Vt={},Gi=async o=>(Vt[o]===void 0&&(Vt[o]=new Map),{async set(t,e){Vt[o].set(t.url,await e.text())},async get(t){return Vt[o].get(t.url)},async delete(t){Vt[o].delete(t.url)}}),qi=async o=>{let t=await caches.open(o);return{set:async(e,r)=>{await t.put(e,r)},get:async e=>{let r=await t.match(e);return r==null?void 0:r.text()},delete:async e=>{await t.delete(e)}}},Yi=async(o,t)=>t==="in-memory-cache"?Gi(o):qi(o);var Wi=async o=>fetch(o).then(t=>{if(!t.ok)throw new Error("There was a problem while fetching the icon!");return t}),Xi=async({url:o,name:t,fileExtension:e,cacheStrategy:r,cacheName:i,renewSignal:n})=>{let s=n(),a=new Request(`${o}/${t}.${e}`,{signal:s});return!i||!r||!["in-memory-cache","web-cache-api"].includes(r)?Wi(a).then(l=>l.text()):Yi(i,r).then(l=>l.get(a).then(m=>m||Wi(a.clone()).then(h=>{var p;return h.status<400&&h.headers.has("content-type")?(p=l.set)==null?void 0:p.call(l,a,h.clone()).then(()=>h.text()):h.text()})).catch(m=>{throw new Error(`Error in caching the Icon ${t}, ${m}`)}))};var Zi=y.constructTagName("icon"),bo={NAME:void 0,SIZE:1};var j=class extends E{constructor(){super();this.name=bo.NAME;this.ariaLabel=null;this.iconProviderContext=Hi.consume({host:this,context:Ut.Context});this.abortController=new AbortController}prepareIconElement(e){let r=new DOMParser().parseFromString(e,"text/html").body.children[0];return this.name&&r.setAttribute("data-name",this.name),r.setAttribute("part","icon"),r.setAttribute("aria-hidden","true"),r}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:r,url:i,cacheName:n,iconSet:s,cacheStrategy:a}=this.iconProviderContext.value;if(s==="custom-icons"&&i&&r&&this.name){let l=()=>(this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal);return Xi({url:i,name:this.name,fileExtension:r,cacheName:n,cacheStrategy:a,renewSignal:l}).then(m=>{let h=this.prepareIconElement(m);this.handleIconLoadedSuccess(h)}).catch(m=>{this.handleIconLoadedFailure(m)})}if(s==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(l=>{this.handleIconLoadedSuccess(l.default())}).catch(l=>{this.handleIconLoadedFailure(l)})}let e=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(e),Promise.reject(e)}handleIconLoadedSuccess(e){this.iconData=e;let r=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}handleIconLoadedFailure(e){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:e}});this.dispatchEvent(r)}updateSize(){var e;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let r=`${this.computedIconSize}${(e=this.lengthUnit)!=null?e:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",r)}}get computedIconSize(){var e,r;return(r=(e=this.size)!=null?e:this.sizeFromContext)!=null?r:bo.SIZE}updated(e){var r,i,n,s;super.updated(e),e.has("name")&&this.getIconData().catch(a=>{a.name!=="AbortError"&&this.onerror&&this.onerror(a)}),e.has("ariaLabel")&&(this.role=this.ariaLabel?"img":null),(e.has("size")||e.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((r=this.iconProviderContext.value)==null?void 0:r.lengthUnit)&&(this.lengthUnitFromContext=(i=this.iconProviderContext.value)==null?void 0:i.lengthUnit,this.updateSize()),this.sizeFromContext!==((n=this.iconProviderContext.value)==null?void 0:n.size)&&(this.sizeFromContext=(s=this.iconProviderContext.value)==null?void 0:s.size,this.updateSize())}render(){return u` ${this.iconData} `}};j.styles=[...E.styles,...Vi],c([q()],j.prototype,"iconData",2),c([q()],j.prototype,"lengthUnitFromContext",2),c([q()],j.prototype,"sizeFromContext",2),c([d({type:String,reflect:!0})],j.prototype,"name",2),c([d({type:Number})],j.prototype,"size",2),c([d({type:String,attribute:"length-unit"})],j.prototype,"lengthUnit",2),c([d({type:String,attribute:"aria-label"})],j.prototype,"ariaLabel",2),c([q()],j.prototype,"abortController",2);var yo=j;yo.register(Zi);var da=yo;Ut.register(Ar);var ma=Ut;var A=o=>o!=null?o:x;var ji=y.constructTagName("avatar"),B={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},xo=99,ha="user-regular",L={24:24,32:32,48:48,64:64,72:72,88:88,124:124},yt={TYPE:B.PHOTO,SIZE:L[32],ICON_NAME:ha};var wr=o=>{class t extends o{constructor(){super(...arguments);this.size=yt.SIZE;this.isTyping=!1}}return c([d({type:String})],t.prototype,"src",2),c([d({type:String})],t.prototype,"initials",2),c([d({type:String})],t.prototype,"presence",2),c([d({type:Number,reflect:!0,attribute:"size"})],t.prototype,"size",2),c([d({type:Number})],t.prototype,"counter",2),c([d({type:Boolean,attribute:"is-typing"})],t.prototype,"isTyping",2),t};var de=o=>{class t extends o{}return c([d({type:String,attribute:"icon-name"})],t.prototype,"iconName",2),t};var pa=[C,g`
108
120
  :host {
109
121
  --mdc-avatar-default-background-color: var(--mds-color-theme-avatar-default);
110
122
  --mdc-avatar-default-foreground-color: var(--mds-color-theme-common-text-primary-normal);
@@ -227,38 +239,38 @@
227
239
  outline: 0.125rem solid;
228
240
  }
229
241
  }
230
- `],Qi=ua;var Ji=y.constructTagName("presence"),H={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"},P={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},Tt={TYPE:H.ACTIVE,SIZE:P.SMALL};var Bt=y.constructTagName("text"),z={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"},M={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},X={TYPE:z.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:M.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var en=o=>({[N[124]]:P.XX_LARGE,[N[88]]:P.X_LARGE,[N[72]]:P.LARGE,[N[64]]:P.MIDSIZE,[N[48]]:P.SMALL,[N[32]]:P.X_SMALL,[N[24]]:P.XX_SMALL})[o]||P.X_SMALL,tn=o=>({[N[124]]:4.75,[N[88]]:3,[N[72]]:2.5,[N[64]]:2.25,[N[48]]:1.75,[N[32]]:1.25,[N[24]]:1})[o]||1.25,rn=o=>({[N[124]]:z.HEADING_XLARGE_MEDIUM,[N[88]]:z.HEADING_LARGE_MEDIUM,[N[72]]:z.HEADING_MIDSIZE_MEDIUM,[N[64]]:z.HEADING_SMALL_MEDIUM,[N[48]]:z.HEADING_SMALL_MEDIUM,[N[32]]:z.BODY_MIDSIZE_MEDIUM,[N[24]]:z.BODY_SMALL_MEDIUM})[o]||z.BODY_MIDSIZE_MEDIUM;var Gt=class extends wr(de(E)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(e){return e===B.COUNTER&&(this.counter||this.counter===0)?x:this.presence?u`
231
- <mdc-presence class="presence" type="${this.presence}" size="${en(this.size)}"></mdc-presence>
242
+ `],Ki=pa;var Qi=y.constructTagName("presence"),V={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"},P={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},xt={TYPE:V.ACTIVE,SIZE:P.SMALL};var Ht=y.constructTagName("text"),O={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"},z={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},X={TYPE:O.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:z.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var Ji=o=>({[L[124]]:P.XX_LARGE,[L[88]]:P.X_LARGE,[L[72]]:P.LARGE,[L[64]]:P.MIDSIZE,[L[48]]:P.SMALL,[L[32]]:P.X_SMALL,[L[24]]:P.XX_SMALL})[o]||P.X_SMALL,en=o=>({[L[124]]:4.75,[L[88]]:3,[L[72]]:2.5,[L[64]]:2.25,[L[48]]:1.75,[L[32]]:1.25,[L[24]]:1})[o]||1.25,tn=o=>({[L[124]]:O.HEADING_XLARGE_MEDIUM,[L[88]]:O.HEADING_LARGE_MEDIUM,[L[72]]:O.HEADING_MIDSIZE_MEDIUM,[L[64]]:O.HEADING_SMALL_MEDIUM,[L[48]]:O.HEADING_SMALL_MEDIUM,[L[32]]:O.BODY_MIDSIZE_MEDIUM,[L[24]]:O.BODY_SMALL_MEDIUM})[o]||O.BODY_MIDSIZE_MEDIUM;var Ft=class extends wr(de(E)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(e){return e===B.COUNTER&&(this.counter||this.counter===0)?x:this.presence?u`
243
+ <mdc-presence class="presence" type="${this.presence}" size="${Ji(this.size)}"></mdc-presence>
232
244
  `:x}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 u`
233
245
  <img
234
246
  class="photo"
235
- src="${S(this.src)}"
247
+ src="${A(this.src)}"
236
248
  aria-hidden="true"
237
249
  ?hidden="${!this.isPhotoLoaded}"
238
250
  @load="${this.handleOnLoad}"
239
251
  @error="${this.handleOnError}"
240
252
  />
241
- `}iconTemplate(){let e=this.iconName||Et.ICON_NAME;return u`
253
+ `}iconTemplate(){let e=this.iconName||yt.ICON_NAME;return u`
242
254
  <mdc-icon
243
- name="${S(e)}"
255
+ name="${A(e)}"
244
256
  length-unit="rem"
245
- size="${tn(this.size)}"
257
+ size="${en(this.size)}"
246
258
  ></mdc-icon>
247
259
  `}textTemplate(e){return u`
248
260
  <mdc-text
249
- type="${rn(this.size)}"
261
+ type="${tn(this.size)}"
250
262
  tagname="span"
251
263
  >
252
264
  ${e}
253
265
  </mdc-text>
254
- `}generateCounterText(e){return e<0?"0":e>To?`${To}+`:e.toString()}generateInitialsText(e){return e.toUpperCase().slice(0,2)}generateTextContent(e){let r="";return e===B.TEXT&&this.initials&&(r=this.generateInitialsText(this.initials)),e===B.COUNTER&&(this.counter||this.counter===0)&&(r=this.generateCounterText(this.counter)),this.textTemplate(r)}getTypeBasedOnInputs(){return this.src?B.PHOTO:this.iconName?B.ICON:this.initials?B.TEXT:this.counter||this.counter===0?B.COUNTER:B.ICON}getTemplateBasedOnType(e){switch(e){case B.PHOTO:return this.photoTemplate();case B.TEXT:case B.COUNTER:return this.generateTextContent(e);case B.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?u`<div class="loading__wrapper"><div class="loader"></div></div>`:x}getPhotoPlaceHolderContent(e){return this.isPhotoLoaded?x:e===B.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():x}update(e){super.update(e),e.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let e=this.getTypeBasedOnInputs();return u`
266
+ `}generateCounterText(e){return e<0?"0":e>xo?`${xo}+`:e.toString()}generateInitialsText(e){return e.toUpperCase().slice(0,2)}generateTextContent(e){let r="";return e===B.TEXT&&this.initials&&(r=this.generateInitialsText(this.initials)),e===B.COUNTER&&(this.counter||this.counter===0)&&(r=this.generateCounterText(this.counter)),this.textTemplate(r)}getTypeBasedOnInputs(){return this.src?B.PHOTO:this.iconName?B.ICON:this.initials?B.TEXT:this.counter||this.counter===0?B.COUNTER:B.ICON}getTemplateBasedOnType(e){switch(e){case B.PHOTO:return this.photoTemplate();case B.TEXT:case B.COUNTER:return this.generateTextContent(e);case B.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?u`<div class="loading__wrapper"><div class="loader"></div></div>`:x}getPhotoPlaceHolderContent(e){return this.isPhotoLoaded?x:e===B.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():x}update(e){super.update(e),e.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let e=this.getTypeBasedOnInputs();return u`
255
267
  <div class="content" aria-hidden="true">
256
268
  ${this.getPhotoPlaceHolderContent(e)}
257
269
  ${this.getTemplateBasedOnType(e)}
258
270
  ${this.getLoadingContent()}
259
271
  ${this.getPresenceTemplateBasedOnType(e)}
260
272
  </div>
261
- `}};Gt.styles=[...E.styles,...Qi],c([Y()],Gt.prototype,"isPhotoLoaded",2);var Ao=Gt;var fa=[C,g`
273
+ `}};Ft.styles=[...E.styles,...Ki],c([q()],Ft.prototype,"isPhotoLoaded",2);var Eo=Ft;var ua=[C,g`
262
274
  :host {
263
275
  --mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
264
276
  --mdc-presence-away-background-color: var(--mds-color-theme-indicator-locked);
@@ -352,7 +364,7 @@
352
364
  .mdc-presence-icon__scheduled {
353
365
  color: var(--mdc-presence-scheduled-background-color);
354
366
  }
355
- `],on=fa;var nn=o=>{switch(o){case H.AWAY:return"recents-presence-badge-filled";case H.AWAY_CALLING:return"away-calling-presence-filled";case H.BUSY:return"busy-presence-bold";case H.DND:return"dnd-presence-badge-filled";case H.MEETING:return"camera-filled";case H.ON_CALL:return"handset-filled";case H.ON_DEVICE:return"generic-device-video-badge-filled";case H.ON_MOBILE:return"phone-badge-filled";case H.PAUSE:return"pause-badge-filled";case H.PTO:return"pto-presence-filled";case H.PRESENTING:return"share-screen-badge-filled";case H.QUIET:return"quiet-hours-presence-filled";case H.SCHEDULED:return"meetings-presence-badge-filled";case H.ACTIVE:default:return"active-presence-small-filled"}};var Ke=class extends E{constructor(){super(...arguments);this.type=Tt.TYPE;this.size=Tt.SIZE;this.currentIconType=Tt.TYPE}get iconSize(){switch(this.size){case P.MIDSIZE:return 1.16125;case P.LARGE:return 1.30625;case P.X_LARGE:return 1.596875;case P.XX_LARGE:return 2.25;case P.XX_SMALL:case P.X_SMALL:case P.SMALL:default:return this.size=Tt.SIZE,.875}}get icon(){let e=nn(this.type);return e==="active-presence-small-filled"&&(this.type=Tt.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 u`
367
+ `],rn=ua;var on=o=>{switch(o){case V.AWAY:return"recents-presence-badge-filled";case V.AWAY_CALLING:return"away-calling-presence-filled";case V.BUSY:return"busy-presence-bold";case V.DND:return"dnd-presence-badge-filled";case V.MEETING:return"camera-filled";case V.ON_CALL:return"handset-filled";case V.ON_DEVICE:return"generic-device-video-badge-filled";case V.ON_MOBILE:return"phone-badge-filled";case V.PAUSE:return"pause-badge-filled";case V.PTO:return"pto-presence-filled";case V.PRESENTING:return"share-screen-badge-filled";case V.QUIET:return"quiet-hours-presence-filled";case V.SCHEDULED:return"meetings-presence-badge-filled";case V.ACTIVE:default:return"active-presence-small-filled"}};var Ze=class extends E{constructor(){super(...arguments);this.type=xt.TYPE;this.size=xt.SIZE;this.currentIconType=xt.TYPE}get iconSize(){switch(this.size){case P.MIDSIZE:return 1.16125;case P.LARGE:return 1.30625;case P.X_LARGE:return 1.596875;case P.XX_LARGE:return 2.25;case P.XX_SMALL:case P.X_SMALL:case P.SMALL:default:return this.size=xt.SIZE,.875}}get icon(){let e=on(this.type);return e==="active-presence-small-filled"&&(this.type=xt.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 u`
356
368
  <div class="mdc-presence mdc-presence__${this.size}">
357
369
  <mdc-icon
358
370
  class="mdc-presence-icon mdc-presence-icon__${this.currentIconType}"
@@ -362,7 +374,7 @@
362
374
  @error="${this.handleOnError}"
363
375
  ></mdc-icon>
364
376
  </div>
365
- `}};Ke.styles=[...E.styles,...on],c([d({type:String,reflect:!0})],Ke.prototype,"type",2),c([d({type:String,reflect:!0})],Ke.prototype,"size",2),c([Y()],Ke.prototype,"currentIconType",2);var So=Ke;So.register(Ji);var ga=So;var sn=g`
377
+ `}};Ze.styles=[...E.styles,...rn],c([d({type:String,reflect:!0})],Ze.prototype,"type",2),c([d({type:String,reflect:!0})],Ze.prototype,"size",2),c([q()],Ze.prototype,"currentIconType",2);var To=Ze;To.register(Qi);var fa=To;var nn=g`
366
378
  :host::part(text) {
367
379
  font-size: unset;
368
380
  font-weight: unset;
@@ -605,14 +617,14 @@
605
617
  text-decoration: var(--mds-font-apps-body-small-regular-text-decoration);
606
618
  text-transform: var(--mds-font-apps-body-small-regular-text-case);
607
619
  }
608
- `;var va=[g`
620
+ `;var ga=[g`
609
621
  :host {
610
622
  --mdc-text-font-family: var(--mdc-themeprovider-font-family);
611
623
 
612
624
  display: block;
613
625
  font-family: var(--mdc-text-font-family);
614
626
  }
615
- `,sn],an=va;var At=class extends E{constructor(){super(...arguments);this.type=X.TYPE;this.tagname=X.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case M.H1:return u`<h1 part=${X.CSS_PART_TEXT}><slot></slot></h1>`;case M.H2:return u`<h2 part=${X.CSS_PART_TEXT}><slot></slot></h2>`;case M.H3:return u`<h3 part=${X.CSS_PART_TEXT}><slot></slot></h3>`;case M.H4:return u`<h4 part=${X.CSS_PART_TEXT}><slot></slot></h4>`;case M.H5:return u`<h5 part=${X.CSS_PART_TEXT}><slot></slot></h5>`;case M.H6:return u`<h6 part=${X.CSS_PART_TEXT}><slot></slot></h6>`;case M.DIV:return u`<div part=${X.CSS_PART_TEXT}><slot></slot></div>`;case M.SPAN:return u`<span part=${X.CSS_PART_TEXT}><slot></slot></span>`;case M.SMALL:return u`<small part=${X.CSS_PART_TEXT}><slot></slot></small>`;case M.P:default:return u`<p part=${X.CSS_PART_TEXT}><slot></slot></p>`}}};At.styles=[...E.styles,...an],c([d({attribute:"type",reflect:!0,type:String})],At.prototype,"type",2),c([d({attribute:"tagname",reflect:!0,type:String})],At.prototype,"tagname",2);var _o=At;_o.register(Bt);var ba=_o;Ao.register(Ki);var ya=Ao;var Cr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Yt=o=>(...t)=>({_$litDirective$:o,values:t}),St=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 Lr=Yt(class extends St{constructor(o){var t;if(super(o),o.type!==Cr.ATTRIBUTE||o.name!=="class"||((t=o.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(o){return" "+Object.keys(o).filter(t=>o[t]).join(" ")+" "}update(o,[t]){var r,i;if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(let n in t)t[n]&&!((r=this.nt)!=null&&r.has(n))&&this.st.add(n);return this.render(t)}let e=o.element.classList;for(let n of this.st)n in t||(e.remove(n),this.st.delete(n));for(let n in t){let s=!!t[n];s===this.st.has(n)||(i=this.nt)!=null&&i.has(n)||(s?(e.add(n),this.st.add(n)):(e.remove(n),this.st.delete(n)))}return Ee}});var ln=y.constructTagName("badge"),Ae={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Rr={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},Nr={PRIMARY:"primary",SECONDARY:"secondary"},Wt={SUCCESS:"success",WARNING:"warning",ERROR:"error"},th={...Nr,...Wt},De={TYPE:Ae.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:Nr.PRIMARY,ICON_SIZE:1};var xa=[C,g`
627
+ `,nn],sn=ga;var Et=class extends E{constructor(){super(...arguments);this.type=X.TYPE;this.tagname=X.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case z.H1:return u`<h1 part=${X.CSS_PART_TEXT}><slot></slot></h1>`;case z.H2:return u`<h2 part=${X.CSS_PART_TEXT}><slot></slot></h2>`;case z.H3:return u`<h3 part=${X.CSS_PART_TEXT}><slot></slot></h3>`;case z.H4:return u`<h4 part=${X.CSS_PART_TEXT}><slot></slot></h4>`;case z.H5:return u`<h5 part=${X.CSS_PART_TEXT}><slot></slot></h5>`;case z.H6:return u`<h6 part=${X.CSS_PART_TEXT}><slot></slot></h6>`;case z.DIV:return u`<div part=${X.CSS_PART_TEXT}><slot></slot></div>`;case z.SPAN:return u`<span part=${X.CSS_PART_TEXT}><slot></slot></span>`;case z.SMALL:return u`<small part=${X.CSS_PART_TEXT}><slot></slot></small>`;case z.P:default:return u`<p part=${X.CSS_PART_TEXT}><slot></slot></p>`}}};Et.styles=[...E.styles,...sn],c([d({attribute:"type",reflect:!0,type:String})],Et.prototype,"type",2),c([d({attribute:"tagname",reflect:!0,type:String})],Et.prototype,"tagname",2);var Ao=Et;Ao.register(Ht);var va=Ao;Eo.register(ji);var ba=Eo;var Ir={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Bt=o=>(...t)=>({_$litDirective$:o,values:t}),Tt=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=Bt(class extends Tt{constructor(o){var t;if(super(o),o.type!==Ir.ATTRIBUTE||o.name!=="class"||((t=o.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(o){return" "+Object.keys(o).filter(t=>o[t]).join(" ")+" "}update(o,[t]){var r,i;if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(let n in t)t[n]&&!((r=this.nt)!=null&&r.has(n))&&this.st.add(n);return this.render(t)}let e=o.element.classList;for(let n of this.st)n in t||(e.remove(n),this.st.delete(n));for(let n in t){let s=!!t[n];s===this.st.has(n)||(i=this.nt)!=null&&i.has(n)||(s?(e.add(n),this.st.add(n)):(e.remove(n),this.st.delete(n)))}return xe}});var an=y.constructTagName("badge"),Te={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Rr={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},kr={PRIMARY:"primary",SECONDARY:"secondary"},Gt={SUCCESS:"success",WARNING:"warning",ERROR:"error"},ep={...kr,...Gt},Me={TYPE:Te.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:kr.PRIMARY,ICON_SIZE:1};var ya=[C,g`
616
628
  :host {
617
629
  --mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
618
630
  --mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
@@ -681,21 +693,21 @@
681
693
  outline: 0.125rem solid;
682
694
  }
683
695
  }
684
- `],cn=xa;var me=class extends de(E){constructor(){super(...arguments);this.variant=De.VARIANT;this.maxCounter=De.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,r){return r===void 0||typeof r!="number"||e===0?"":r>e?`${e}+`:e>De.MAX_COUNTER_LIMIT||r>De.MAX_COUNTER_LIMIT?`${De.MAX_COUNTER_LIMIT}+`:r.toString()}getBadgeIcon(e,r){return u`
696
+ `],ln=ya;var me=class extends de(E){constructor(){super(...arguments);this.variant=Me.VARIANT;this.maxCounter=Me.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,r){return r===void 0||typeof r!="number"||e===0?"":r>e?`${e}+`:e>Me.MAX_COUNTER_LIMIT||r>Me.MAX_COUNTER_LIMIT?`${Me.MAX_COUNTER_LIMIT}+`:r.toString()}getBadgeIcon(e,r){return u`
685
697
  <mdc-icon
686
- class="mdc-badge-icon ${Lr({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${r}`]:!0})}"
687
- name="${S(e)}"
688
- size="${De.ICON_SIZE}"
698
+ class="mdc-badge-icon ${Cr({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${r}`]:!0})}"
699
+ name="${A(e)}"
700
+ size="${Me.ICON_SIZE}"
689
701
  ></mdc-icon>
690
- `}getBadgeDot(){return u`<div class="mdc-badge-dot ${Lr({"mdc-badge-overlay":this.overlay})}"></div>`}getBadgeCounterText(){return u`
702
+ `}getBadgeDot(){return u`<div class="mdc-badge-dot ${Cr({"mdc-badge-overlay":this.overlay})}"></div>`}getBadgeCounterText(){return u`
691
703
  <mdc-text
692
- type="${z.BODY_SMALL_MEDIUM}"
693
- tagname="${M.DIV}"
694
- class="mdc-badge-text ${Lr({"mdc-badge-overlay":this.overlay})}"
704
+ type="${O.BODY_SMALL_MEDIUM}"
705
+ tagname="${z.DIV}"
706
+ class="mdc-badge-text ${Cr({"mdc-badge-overlay":this.overlay})}"
695
707
  >
696
708
  ${this.getCounterText(this.maxCounter,this.counter)}
697
709
  </mdc-text>
698
- `}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(Nr).includes(this.variant)&&(this.variant=De.VARIANT);let{iconName:e,type:r,variant:i}=this;switch(r){case Ae.ICON:return this.getBadgeIcon(e||"",i);case Ae.COUNTER:return this.getBadgeCounterText();case Ae.SUCCESS:return this.getBadgeIcon(Rr.SUCCESS_ICON_NAME,Wt.SUCCESS);case Ae.WARNING:return this.getBadgeIcon(Rr.WARNING_ICON_NAME,Wt.WARNING);case Ae.ERROR:return this.getBadgeIcon(Rr.ERROR_ICON_NAME,Wt.ERROR);case Ae.DOT:default:return this.type=Ae.DOT,this.getBadgeDot()}}update(e){super.update(e),e.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};me.styles=[...E.styles,...cn],c([d({type:String,reflect:!0})],me.prototype,"type",2),c([d({type:String,reflect:!0})],me.prototype,"variant",2),c([d({type:Number})],me.prototype,"counter",2),c([d({type:Number,attribute:"max-counter",reflect:!0})],me.prototype,"maxCounter",2),c([d({type:Boolean})],me.prototype,"overlay",2),c([d({type:String,attribute:"aria-label"})],me.prototype,"ariaLabel",2);var Io=me;Io.register(ln);var Ea=Io;var _t=o=>{class t extends o{constructor(){super(...arguments);this.disabled=!1}}return c([d({reflect:!0,type:Boolean})],t.prototype,"disabled",2),t};var dn=o=>{class t extends o{constructor(){super(...arguments);this.tabIndex=0}}return c([d({reflect:!0,type:Number})],t.prototype,"tabIndex",2),t};var Rh=y.constructTagName("buttonsimple"),Ta={20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},It={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},kr={SIZE:Ta[32],TYPE:It.BUTTON,ROLE:"button"};var Aa=[C,g`
710
+ `}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(kr).includes(this.variant)&&(this.variant=Me.VARIANT);let{iconName:e,type:r,variant:i}=this;switch(r){case Te.ICON:return this.getBadgeIcon(e||"",i);case Te.COUNTER:return this.getBadgeCounterText();case Te.SUCCESS:return this.getBadgeIcon(Rr.SUCCESS_ICON_NAME,Gt.SUCCESS);case Te.WARNING:return this.getBadgeIcon(Rr.WARNING_ICON_NAME,Gt.WARNING);case Te.ERROR:return this.getBadgeIcon(Rr.ERROR_ICON_NAME,Gt.ERROR);case Te.DOT:default:return this.type=Te.DOT,this.getBadgeDot()}}update(e){super.update(e),e.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};me.styles=[...E.styles,...ln],c([d({type:String,reflect:!0})],me.prototype,"type",2),c([d({type:String,reflect:!0})],me.prototype,"variant",2),c([d({type:Number})],me.prototype,"counter",2),c([d({type:Number,attribute:"max-counter",reflect:!0})],me.prototype,"maxCounter",2),c([d({type:Boolean})],me.prototype,"overlay",2),c([d({type:String,attribute:"aria-label"})],me.prototype,"ariaLabel",2);var So=me;So.register(an);var xa=So;var At=o=>{class t extends o{constructor(){super(...arguments);this.disabled=!1}}return c([d({reflect:!0,type:Boolean})],t.prototype,"disabled",2),t};var U=[];for(let o=0;o<256;++o)U.push((o+256).toString(16).slice(1));function cn(o,t=0){return(U[o[t+0]]+U[o[t+1]]+U[o[t+2]]+U[o[t+3]]+"-"+U[o[t+4]]+U[o[t+5]]+"-"+U[o[t+6]]+U[o[t+7]]+"-"+U[o[t+8]]+U[o[t+9]]+"-"+U[o[t+10]]+U[o[t+11]]+U[o[t+12]]+U[o[t+13]]+U[o[t+14]]+U[o[t+15]]).toLowerCase()}var _o,Ea=new Uint8Array(16);function wo(){if(!_o){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");_o=crypto.getRandomValues.bind(crypto)}return _o(Ea)}var Ta=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Io={randomUUID:Ta};function Aa(o,t,e){var i,n,s;if(Io.randomUUID&&!t&&!o)return Io.randomUUID();o=o||{};let r=(s=(n=o.random)!=null?n:(i=o.rng)==null?void 0:i.call(o))!=null?s:wo();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 a=0;a<16;++a)t[e+a]=r[a];return t}return cn(r)}var Co=Aa;var he=o=>{class t extends o{constructor(...i){super(i);this.name="";this.value="";this.internals=this.attachInternals(),this.id=`mdc-input-${Co()}`}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}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,c([d({reflect:!0,type:String})],t.prototype,"name",2),c([d({reflect:!0,type:String})],t.prototype,"value",2),c([d({reflect:!0,type:String,attribute:"validation-message"})],t.prototype,"validationMessage",2),c([bi("input")],t.prototype,"inputElement",2),t};var dn=o=>{class t extends o{constructor(){super(...arguments);this.tabIndex=0}}return c([d({reflect:!0,type:Number})],t.prototype,"tabIndex",2),t};var Fp=y.constructTagName("buttonsimple"),Sa={20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},St={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Lr={SIZE:Sa[32],TYPE:St.BUTTON,ROLE:"button"};var _a=[C,g`
699
711
  :host {
700
712
  border: 0.0625rem solid transparent;
701
713
  cursor: pointer;
@@ -751,9 +763,9 @@
751
763
  :host([size="20"]){
752
764
  height: var(--mdc-button-height-size-20);
753
765
  }
754
- `,...$()],mn=Aa;var pe=class extends dn(_t(E)){constructor(){super();this.active=!1;this.softDisabled=!1;this.size=kr.SIZE;this.role=kr.ROLE;this.type=kr.TYPE;this.prevTabindex=0;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)),this.internals=this.attachInternals()}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.setActive(this,this.active)}executeAction(){this.type===It.SUBMIT&&this.internals.form&&this.internals.form.requestSubmit(),this.type===It.RESET&&this.internals.form&&this.internals.form.reset()}setActive(e,r){r?e.setAttribute("aria-pressed","true"):e.removeAttribute("aria-pressed")}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())}handleKeyUp(e){["Enter"," "].includes(e.key)&&(this.classList.remove("pressed"),e.key===" "&&this.triggerClickEvent())}render(){return u`
766
+ `,...$()],mn=_a;var Ae=class extends he(dn(At(E))){constructor(){super();this.active=!1;this.softDisabled=!1;this.size=Lr.SIZE;this.role=Lr.ROLE;this.type=Lr.TYPE;this.prevTabindex=0;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))}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.setActive(this,this.active)}executeAction(){this.type===St.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===St.RESET&&this.form&&this.form.reset()}setActive(e,r){r?e.setAttribute("aria-pressed","true"):e.removeAttribute("aria-pressed")}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())}handleKeyUp(e){["Enter"," "].includes(e.key)&&(this.classList.remove("pressed"),e.key===" "&&this.triggerClickEvent())}render(){return u`
755
767
  <slot></slot>
756
- `}};pe.formAssociated=!0,pe.styles=[...E.styles,...mn],c([d({type:Boolean,reflect:!0})],pe.prototype,"active",2),c([d({type:Boolean,attribute:"soft-disabled"})],pe.prototype,"softDisabled",2),c([d({type:Number,reflect:!0})],pe.prototype,"size",2),c([d({type:String,reflect:!0})],pe.prototype,"role",2),c([d({reflect:!0})],pe.prototype,"type",2);var $e=pe;var qt=y.constructTagName("button"),Qe={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Or={40:40,32:32,28:28,24:24},Se={64:64,52:52,20:20,...Or},wo={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},wt={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},he={VARIANT:Qe.PRIMARY,SIZE:Or[32],COLOR:wo.DEFAULT,TYPE_INTERNAL:wt.ICON,TYPE:It.BUTTON};var Sa=g`
768
+ `}};Ae.styles=[...E.styles,...mn],c([d({type:Boolean,reflect:!0})],Ae.prototype,"active",2),c([d({type:Boolean,attribute:"soft-disabled"})],Ae.prototype,"softDisabled",2),c([d({type:Number,reflect:!0})],Ae.prototype,"size",2),c([d({type:String,reflect:!0})],Ae.prototype,"role",2),c([d({reflect:!0})],Ae.prototype,"type",2);var De=Ae;var qt=y.constructTagName("button"),je={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Nr={40:40,32:32,28:28,24:24},Se={64:64,52:52,20:20,...Nr},Ro={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},_t={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},pe={VARIANT:je.PRIMARY,SIZE:Nr[32],COLOR:Ro.DEFAULT,TYPE_INTERNAL:_t.ICON,TYPE:St.BUTTON};var wa=g`
757
769
  :host {
758
770
  background-color: transparent;
759
771
  border-radius: 1.25rem;
@@ -925,7 +937,7 @@
925
937
  --mdc-button-secondary-hover-background-color: var(--mds-color-theme-button-secondary-hover);
926
938
  --mdc-button-secondary-pressed-background-color: var(--mds-color-theme-button-secondary-pressed);
927
939
  }
928
- `,pn=[Sa];var hn=o=>{switch(o){case Se[64]:return 2;case Se[52]:return 1.75;case Se[40]:return 1.25;default:return 1}},Xt=o=>{let t=o.split("-"),e=["bold","filled","regular","light"];return t.filter(r=>!e.includes(r)).join("-")};var K=class extends $e{constructor(){super(...arguments);this.variant=he.VARIANT;this.size=he.SIZE;this.color=he.COLOR;this.role="button";this.typeInternal=he.TYPE_INTERNAL;this.iconSize=1}update(e){super.update(e),e.has("active")&&this.modifyIconName(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.inferButtonType()}modifyIconName(e){e?(this.prefixIcon&&(this.prevPrefixIcon=this.prefixIcon,this.prefixIcon=`${Xt(this.prefixIcon)}-filled`),this.postfixIcon&&(this.prevPostfixIcon=this.postfixIcon,this.postfixIcon=`${Xt(this.postfixIcon)}-filled`)):(this.prevPrefixIcon&&(this.prefixIcon=this.prevPrefixIcon),this.prevPostfixIcon&&(this.postfixIcon=this.prevPostfixIcon))}setVariant(e){this.setAttribute("variant",Object.values(Qe).includes(e)?e:he.VARIANT)}setSize(e){let i=this.typeInternal===wt.ICON?Object.values(Se).includes(e)&&!(e===Se[20]&&this.variant!==Qe.TERTIARY):Object.values(Or).includes(e);this.setAttribute("size",i?`${e}`:`${he.SIZE}`),this.iconSize=hn(e)}setColor(e){!Object.values(wo).includes(e)||this.variant===Qe.TERTIARY?this.setAttribute("color",`${he.COLOR}`):this.setAttribute("color",e)}inferButtonType(){var r,i;let e=(i=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"))==null?void 0:i.assignedNodes().filter(n=>{var s;return n.nodeType!==Node.TEXT_NODE||((s=n.textContent)==null?void 0:s.trim())}).length;e&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=wt.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!e&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=wt.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=wt.PILL,this.setAttribute("data-btn-type","pill"))}render(){return u`
940
+ `,hn=[wa];var pn=o=>{switch(o){case Se[64]:return 2;case Se[52]:return 1.75;case Se[40]:return 1.25;default:return 1}},Yt=o=>{let t=o.split("-"),e=["bold","filled","regular","light"];return t.filter(r=>!e.includes(r)).join("-")};var K=class extends De{constructor(){super(...arguments);this.variant=pe.VARIANT;this.size=pe.SIZE;this.color=pe.COLOR;this.role="button";this.typeInternal=pe.TYPE_INTERNAL;this.iconSize=1}update(e){super.update(e),e.has("active")&&this.modifyIconName(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.inferButtonType()}modifyIconName(e){e?(this.prefixIcon&&(this.prevPrefixIcon=this.prefixIcon,this.prefixIcon=`${Yt(this.prefixIcon)}-filled`),this.postfixIcon&&(this.prevPostfixIcon=this.postfixIcon,this.postfixIcon=`${Yt(this.postfixIcon)}-filled`)):(this.prevPrefixIcon&&(this.prefixIcon=this.prevPrefixIcon),this.prevPostfixIcon&&(this.postfixIcon=this.prevPostfixIcon))}setVariant(e){this.setAttribute("variant",Object.values(je).includes(e)?e:pe.VARIANT)}setSize(e){let i=this.typeInternal===_t.ICON?Object.values(Se).includes(e)&&!(e===Se[20]&&this.variant!==je.TERTIARY):Object.values(Nr).includes(e);this.setAttribute("size",i?`${e}`:`${pe.SIZE}`),this.iconSize=pn(e)}setColor(e){!Object.values(Ro).includes(e)||this.variant===je.TERTIARY?this.setAttribute("color",`${pe.COLOR}`):this.setAttribute("color",e)}inferButtonType(){var r,i;let e=(i=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"))==null?void 0:i.assignedNodes().filter(n=>{var s;return n.nodeType!==Node.TEXT_NODE||((s=n.textContent)==null?void 0:s.trim())}).length;e&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=_t.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!e&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=_t.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=_t.PILL,this.setAttribute("data-btn-type","pill"))}render(){return u`
929
941
  ${this.prefixIcon?u` <mdc-icon
930
942
  name="${this.prefixIcon}"
931
943
  part="prefix-icon"
@@ -941,7 +953,7 @@
941
953
  length-unit="rem"
942
954
  >
943
955
  </mdc-icon>`:""}
944
- `}};K.styles=[...$e.styles,...pn],c([d({type:String,attribute:"prefix-icon",reflect:!0})],K.prototype,"prefixIcon",2),c([d({type:String,attribute:"postfix-icon",reflect:!0})],K.prototype,"postfixIcon",2),c([d({type:String})],K.prototype,"variant",2),c([d({type:Number})],K.prototype,"size",2),c([d({type:String})],K.prototype,"color",2),c([d({type:String,reflect:!0})],K.prototype,"role",2),c([Y()],K.prototype,"typeInternal",2),c([Y()],K.prototype,"iconSize",2);var Co=K;Co.register(qt);var _a=Co;var ue=Math.min,G=Math.max,jt=Math.round,Kt=Math.floor,oe=o=>({x:o,y:o}),Ia={left:"right",right:"left",bottom:"top",top:"bottom"},wa={start:"end",end:"start"};function Mr(o,t,e){return G(o,ue(t,e))}function Je(o,t){return typeof o=="function"?o(t):o}function _e(o){return o.split("-")[0]}function et(o){return o.split("-")[1]}function Lo(o){return o==="x"?"y":"x"}function Dr(o){return o==="y"?"height":"width"}function Pe(o){return["top","bottom"].includes(_e(o))?"y":"x"}function $r(o){return Lo(Pe(o))}function un(o,t,e){e===void 0&&(e=!1);let r=et(o),i=$r(o),n=Dr(i),s=i==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(s=Zt(s)),[s,Zt(s)]}function fn(o){let t=Zt(o);return[zr(o),t,zr(t)]}function zr(o){return o.replace(/start|end/g,t=>wa[t])}function Ca(o,t,e){let r=["left","right"],i=["right","left"],n=["top","bottom"],s=["bottom","top"];switch(o){case"top":case"bottom":return e?t?i:r:t?r:i;case"left":case"right":return t?n:s;default:return[]}}function gn(o,t,e,r){let i=et(o),n=Ca(_e(o),e==="start",r);return i&&(n=n.map(s=>s+"-"+i),t&&(n=n.concat(n.map(zr)))),n}function Zt(o){return o.replace(/left|right|bottom|top/g,t=>Ia[t])}function La(o){return{top:0,right:0,bottom:0,left:0,...o}}function Ro(o){return typeof o!="number"?La(o):{top:o,right:o,bottom:o,left:o}}function tt(o){let{x:t,y:e,width:r,height:i}=o;return{width:r,height:i,top:e,left:t,right:t+r,bottom:e+i,x:t,y:e}}function vn(o,t,e){let{reference:r,floating:i}=o,n=Pe(t),s=$r(t),a=Dr(s),l=_e(t),m=n==="y",p=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,v=r[a]/2-i[a]/2,f;switch(l){case"top":f={x:p,y:r.y-i.height};break;case"bottom":f={x:p,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:h};break;case"left":f={x:r.x-i.width,y:h};break;default:f={x:r.x,y:r.y}}switch(et(t)){case"start":f[s]-=v*(e&&m?-1:1);break;case"end":f[s]+=v*(e&&m?-1:1);break}return f}var bn=async(o,t,e)=>{let{placement:r="bottom",strategy:i="absolute",middleware:n=[],platform:s}=e,a=n.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t)),m=await s.getElementRects({reference:o,floating:t,strategy:i}),{x:p,y:h}=vn(m,r,l),v=r,f={},b=0;for(let T=0;T<a.length;T++){let{name:_,fn:A}=a[T],{x:I,y:w,data:D,reset:k}=await A({x:p,y:h,initialPlacement:r,placement:v,strategy:i,middlewareData:f,rects:m,platform:s,elements:{reference:o,floating:t}});p=I!=null?I:p,h=w!=null?w:h,f={...f,[_]:{...f[_],...D}},k&&b<=50&&(b++,typeof k=="object"&&(k.placement&&(v=k.placement),k.rects&&(m=k.rects===!0?await s.getElementRects({reference:o,floating:t,strategy:i}):k.rects),{x:p,y:h}=vn(m,v,l)),T=-1)}return{x:p,y:h,placement:v,strategy:i,middlewareData:f}};async function Pr(o,t){var e;t===void 0&&(t={});let{x:r,y:i,platform:n,rects:s,elements:a,strategy:l}=o,{boundary:m="clippingAncestors",rootBoundary:p="viewport",elementContext:h="floating",altBoundary:v=!1,padding:f=0}=Je(t,o),b=Ro(f),_=a[v?h==="floating"?"reference":"floating":h],A=tt(await n.getClippingRect({element:(e=await(n.isElement==null?void 0:n.isElement(_)))==null||e?_:_.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(a.floating)),boundary:m,rootBoundary:p,strategy:l})),I=h==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,w=await(n.getOffsetParent==null?void 0:n.getOffsetParent(a.floating)),D=await(n.isElement==null?void 0:n.isElement(w))?await(n.getScale==null?void 0:n.getScale(w))||{x:1,y:1}:{x:1,y:1},k=tt(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:I,offsetParent:w,strategy:l}):I);return{top:(A.top-k.top+b.top)/D.y,bottom:(k.bottom-A.bottom+b.bottom)/D.y,left:(A.left-k.left+b.left)/D.x,right:(k.right-A.right+b.right)/D.x}}var yn=o=>({name:"arrow",options:o,async fn(t){let{x:e,y:r,placement:i,rects:n,platform:s,elements:a,middlewareData:l}=t,{element:m,padding:p=0}=Je(o,t)||{};if(m==null)return{};let h=Ro(p),v={x:e,y:r},f=$r(i),b=Dr(f),T=await s.getDimensions(m),_=f==="y",A=_?"top":"left",I=_?"bottom":"right",w=_?"clientHeight":"clientWidth",D=n.reference[b]+n.reference[f]-v[f]-n.floating[b],k=v[f]-n.reference[f],Z=await(s.getOffsetParent==null?void 0:s.getOffsetParent(m)),te=Z?Z[w]:0;(!te||!await(s.isElement==null?void 0:s.isElement(Z)))&&(te=a.floating[w]||n.floating[b]);let ve=D/2-k/2,se=te/2-T[b]/2-1,re=ue(h[A],se),Le=ue(h[I],se),ae=re,Re=te-T[b]-Le,F=te/2-T[b]/2+ve,ft=Mr(ae,F,Re),be=!l.arrow&&et(i)!=null&&F!==ft&&n.reference[b]/2-(F<ae?re:Le)-T[b]/2<0,le=be?F<ae?F-ae:F-Re:0;return{[f]:v[f]+le,data:{[f]:ft,centerOffset:F-ft-le,...be&&{alignmentOffset:le}},reset:be}}});var xn=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(t){var e,r;let{placement:i,middlewareData:n,rects:s,initialPlacement:a,platform:l,elements:m}=t,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:v,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:T=!0,..._}=Je(o,t);if((e=n.arrow)!=null&&e.alignmentOffset)return{};let A=_e(i),I=Pe(a),w=_e(a)===a,D=await(l.isRTL==null?void 0:l.isRTL(m.floating)),k=v||(w||!T?[Zt(a)]:fn(a)),Z=b!=="none";!v&&Z&&k.push(...gn(a,T,b,D));let te=[a,...k],ve=await Pr(t,_),se=[],re=((r=n.flip)==null?void 0:r.overflows)||[];if(p&&se.push(ve[A]),h){let F=un(i,s,D);se.push(ve[F[0]],ve[F[1]])}if(re=[...re,{placement:i,overflows:se}],!se.every(F=>F<=0)){var Le,ae;let F=(((Le=n.flip)==null?void 0:Le.index)||0)+1,ft=te[F];if(ft)return{data:{index:F,overflows:re},reset:{placement:ft}};let be=(ae=re.filter(le=>le.overflows[0]<=0).sort((le,Ne)=>le.overflows[1]-Ne.overflows[1])[0])==null?void 0:ae.placement;if(!be)switch(f){case"bestFit":{var Re;let le=(Re=re.filter(Ne=>{if(Z){let ke=Pe(Ne.placement);return ke===I||ke==="y"}return!0}).map(Ne=>[Ne.placement,Ne.overflows.filter(ke=>ke>0).reduce((ke,Fs)=>ke+Fs,0)]).sort((Ne,ke)=>Ne[1]-ke[1])[0])==null?void 0:Re[0];le&&(be=le);break}case"initialPlacement":be=a;break}if(i!==be)return{reset:{placement:be}}}return{}}}};async function Ra(o,t){let{placement:e,platform:r,elements:i}=o,n=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=_e(e),a=et(e),l=Pe(e)==="y",m=["left","top"].includes(s)?-1:1,p=n&&l?-1:1,h=Je(t,o),{mainAxis:v,crossAxis:f,alignmentAxis:b}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof b=="number"&&(f=a==="end"?b*-1:b),l?{x:f*p,y:v*m}:{x:v*m,y:f*p}}var En=function(o){return o===void 0&&(o=0),{name:"offset",options:o,async fn(t){var e,r;let{x:i,y:n,placement:s,middlewareData:a}=t,l=await Ra(t,o);return s===((e=a.offset)==null?void 0:e.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:n+l.y,data:{...l,placement:s}}}}},Tn=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(t){let{x:e,y:r,placement:i}=t,{mainAxis:n=!0,crossAxis:s=!1,limiter:a={fn:_=>{let{x:A,y:I}=_;return{x:A,y:I}}},...l}=Je(o,t),m={x:e,y:r},p=await Pr(t,l),h=Pe(_e(i)),v=Lo(h),f=m[v],b=m[h];if(n){let _=v==="y"?"top":"left",A=v==="y"?"bottom":"right",I=f+p[_],w=f-p[A];f=Mr(I,f,w)}if(s){let _=h==="y"?"top":"left",A=h==="y"?"bottom":"right",I=b+p[_],w=b-p[A];b=Mr(I,b,w)}let T=a.fn({...t,[v]:f,[h]:b});return{...T,data:{x:T.x-e,y:T.y-r,enabled:{[v]:n,[h]:s}}}}}};var An=function(o){return o===void 0&&(o={}),{name:"size",options:o,async fn(t){var e,r;let{placement:i,rects:n,platform:s,elements:a}=t,{apply:l=()=>{},...m}=Je(o,t),p=await Pr(t,m),h=_e(i),v=et(i),f=Pe(i)==="y",{width:b,height:T}=n.floating,_,A;h==="top"||h==="bottom"?(_=h,A=v===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(A=h,_=v==="end"?"top":"bottom");let I=T-p.top-p.bottom,w=b-p.left-p.right,D=ue(T-p[_],I),k=ue(b-p[A],w),Z=!t.middlewareData.shift,te=D,ve=k;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&(ve=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(te=I),Z&&!v){let re=G(p.left,0),Le=G(p.right,0),ae=G(p.top,0),Re=G(p.bottom,0);f?ve=b-2*(re!==0||Le!==0?re+Le:G(p.left,p.right)):te=T-2*(ae!==0||Re!==0?ae+Re:G(p.top,p.bottom))}await l({...t,availableWidth:ve,availableHeight:te});let se=await s.getDimensions(a.floating);return b!==se.width||T!==se.height?{reset:{rects:!0}}:{}}}};function Ur(){return typeof window<"u"}function rt(o){return _n(o)?(o.nodeName||"").toLowerCase():"#document"}function W(o){var t;return(o==null||(t=o.ownerDocument)==null?void 0:t.defaultView)||window}function ie(o){var t;return(t=(_n(o)?o.ownerDocument:o.document)||window.document)==null?void 0:t.documentElement}function _n(o){return Ur()?o instanceof Node||o instanceof W(o).Node:!1}function Q(o){return Ur()?o instanceof Element||o instanceof W(o).Element:!1}function ne(o){return Ur()?o instanceof HTMLElement||o instanceof W(o).HTMLElement:!1}function Sn(o){return!Ur()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof W(o).ShadowRoot}function Lt(o){let{overflow:t,overflowX:e,overflowY:r,display:i}=J(o);return/auto|scroll|overlay|hidden|clip/.test(t+r+e)&&!["inline","contents"].includes(i)}function In(o){return["table","td","th"].includes(rt(o))}function Qt(o){return[":popover-open",":modal"].some(t=>{try{return o.matches(t)}catch{return!1}})}function Hr(o){let t=Vr(),e=Q(o)?J(o):o;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(e.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(e.contain||"").includes(r))}function wn(o){let t=Ie(o);for(;ne(t)&&!ot(t);){if(Hr(t))return t;if(Qt(t))return null;t=Ie(t)}return null}function Vr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ot(o){return["html","body","#document"].includes(rt(o))}function J(o){return W(o).getComputedStyle(o)}function Jt(o){return Q(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function Ie(o){if(rt(o)==="html")return o;let t=o.assignedSlot||o.parentNode||Sn(o)&&o.host||ie(o);return Sn(t)?t.host:t}function Cn(o){let t=Ie(o);return ot(t)?o.ownerDocument?o.ownerDocument.body:o.body:ne(t)&&Lt(t)?t:Cn(t)}function Ct(o,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);let i=Cn(o),n=i===((r=o.ownerDocument)==null?void 0:r.body),s=W(i);if(n){let a=Fr(s);return t.concat(s,s.visualViewport||[],Lt(i)?i:[],a&&e?Ct(a):[])}return t.concat(i,Ct(i,[],e))}function Fr(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function Nn(o){let t=J(o),e=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ne(o),n=i?o.offsetWidth:e,s=i?o.offsetHeight:r,a=jt(e)!==n||jt(r)!==s;return a&&(e=n,r=s),{width:e,height:r,$:a}}function ko(o){return Q(o)?o:o.contextElement}function Rt(o){let t=ko(o);if(!ne(t))return oe(1);let e=t.getBoundingClientRect(),{width:r,height:i,$:n}=Nn(t),s=(n?jt(e.width):e.width)/r,a=(n?jt(e.height):e.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var Na=oe(0);function kn(o){let t=W(o);return!Vr()||!t.visualViewport?Na:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ka(o,t,e){return t===void 0&&(t=!1),!e||t&&e!==W(o)?!1:t}function it(o,t,e,r){t===void 0&&(t=!1),e===void 0&&(e=!1);let i=o.getBoundingClientRect(),n=ko(o),s=oe(1);t&&(r?Q(r)&&(s=Rt(r)):s=Rt(o));let a=ka(n,e,r)?kn(n):oe(0),l=(i.left+a.x)/s.x,m=(i.top+a.y)/s.y,p=i.width/s.x,h=i.height/s.y;if(n){let v=W(n),f=r&&Q(r)?W(r):r,b=v,T=Fr(b);for(;T&&r&&f!==b;){let _=Rt(T),A=T.getBoundingClientRect(),I=J(T),w=A.left+(T.clientLeft+parseFloat(I.paddingLeft))*_.x,D=A.top+(T.clientTop+parseFloat(I.paddingTop))*_.y;l*=_.x,m*=_.y,p*=_.x,h*=_.y,l+=w,m+=D,b=W(T),T=Fr(b)}}return tt({width:p,height:h,x:l,y:m})}function Oo(o,t){let e=Jt(o).scrollLeft;return t?t.left+e:it(ie(o)).left+e}function On(o,t,e){e===void 0&&(e=!1);let r=o.getBoundingClientRect(),i=r.left+t.scrollLeft-(e?0:Oo(o,r)),n=r.top+t.scrollTop;return{x:i,y:n}}function Oa(o){let{elements:t,rect:e,offsetParent:r,strategy:i}=o,n=i==="fixed",s=ie(r),a=t?Qt(t.floating):!1;if(r===s||a&&n)return e;let l={scrollLeft:0,scrollTop:0},m=oe(1),p=oe(0),h=ne(r);if((h||!h&&!n)&&((rt(r)!=="body"||Lt(s))&&(l=Jt(r)),ne(r))){let f=it(r);m=Rt(r),p.x=f.x+r.clientLeft,p.y=f.y+r.clientTop}let v=s&&!h&&!n?On(s,l,!0):oe(0);return{width:e.width*m.x,height:e.height*m.y,x:e.x*m.x-l.scrollLeft*m.x+p.x+v.x,y:e.y*m.y-l.scrollTop*m.y+p.y+v.y}}function za(o){return Array.from(o.getClientRects())}function Ma(o){let t=ie(o),e=Jt(o),r=o.ownerDocument.body,i=G(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=G(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+Oo(o),a=-e.scrollTop;return J(r).direction==="rtl"&&(s+=G(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:s,y:a}}function Da(o,t){let e=W(o),r=ie(o),i=e.visualViewport,n=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){n=i.width,s=i.height;let m=Vr();(!m||m&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:n,height:s,x:a,y:l}}function $a(o,t){let e=it(o,!0,t==="fixed"),r=e.top+o.clientTop,i=e.left+o.clientLeft,n=ne(o)?Rt(o):oe(1),s=o.clientWidth*n.x,a=o.clientHeight*n.y,l=i*n.x,m=r*n.y;return{width:s,height:a,x:l,y:m}}function Ln(o,t,e){let r;if(t==="viewport")r=Da(o,e);else if(t==="document")r=Ma(ie(o));else if(Q(t))r=$a(t,e);else{let i=kn(o);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return tt(r)}function zn(o,t){let e=Ie(o);return e===t||!Q(e)||ot(e)?!1:J(e).position==="fixed"||zn(e,t)}function Pa(o,t){let e=t.get(o);if(e)return e;let r=Ct(o,[],!1).filter(a=>Q(a)&&rt(a)!=="body"),i=null,n=J(o).position==="fixed",s=n?Ie(o):o;for(;Q(s)&&!ot(s);){let a=J(s),l=Hr(s);!l&&a.position==="fixed"&&(i=null),(n?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Lt(s)&&!l&&zn(o,s))?r=r.filter(p=>p!==s):i=a,s=Ie(s)}return t.set(o,r),r}function Ua(o){let{element:t,boundary:e,rootBoundary:r,strategy:i}=o,s=[...e==="clippingAncestors"?Qt(t)?[]:Pa(t,this._c):[].concat(e),r],a=s[0],l=s.reduce((m,p)=>{let h=Ln(t,p,i);return m.top=G(h.top,m.top),m.right=ue(h.right,m.right),m.bottom=ue(h.bottom,m.bottom),m.left=G(h.left,m.left),m},Ln(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Ha(o){let{width:t,height:e}=Nn(o);return{width:t,height:e}}function Va(o,t,e){let r=ne(t),i=ie(t),n=e==="fixed",s=it(o,!0,n,t),a={scrollLeft:0,scrollTop:0},l=oe(0);if(r||!r&&!n)if((rt(t)!=="body"||Lt(i))&&(a=Jt(t)),r){let v=it(t,!0,n,t);l.x=v.x+t.clientLeft,l.y=v.y+t.clientTop}else i&&(l.x=Oo(i));let m=i&&!r&&!n?On(i,a):oe(0),p=s.left+a.scrollLeft-l.x-m.x,h=s.top+a.scrollTop-l.y-m.y;return{x:p,y:h,width:s.width,height:s.height}}function No(o){return J(o).position==="static"}function Rn(o,t){if(!ne(o)||J(o).position==="fixed")return null;if(t)return t(o);let e=o.offsetParent;return ie(o)===e&&(e=e.ownerDocument.body),e}function Mn(o,t){let e=W(o);if(Qt(o))return e;if(!ne(o)){let i=Ie(o);for(;i&&!ot(i);){if(Q(i)&&!No(i))return i;i=Ie(i)}return e}let r=Rn(o,t);for(;r&&In(r)&&No(r);)r=Rn(r,t);return r&&ot(r)&&No(r)&&!Hr(r)?e:r||wn(o)||e}var Fa=async function(o){let t=this.getOffsetParent||Mn,e=this.getDimensions,r=await e(o.floating);return{reference:Va(o.reference,await t(o.floating),o.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ba(o){return J(o).direction==="rtl"}var Ga={convertOffsetParentRelativeRectToViewportRelativeRect:Oa,getDocumentElement:ie,getClippingRect:Ua,getOffsetParent:Mn,getElementRects:Fa,getClientRects:za,getDimensions:Ha,getScale:Rt,isElement:Q,isRTL:Ba};function Ya(o,t){let e=null,r,i=ie(o);function n(){var a;clearTimeout(r),(a=e)==null||a.disconnect(),e=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),n();let{left:m,top:p,width:h,height:v}=o.getBoundingClientRect();if(a||t(),!h||!v)return;let f=Kt(p),b=Kt(i.clientWidth-(m+h)),T=Kt(i.clientHeight-(p+v)),_=Kt(m),I={rootMargin:-f+"px "+-b+"px "+-T+"px "+-_+"px",threshold:G(0,ue(1,l))||1},w=!0;function D(k){let Z=k[0].intersectionRatio;if(Z!==l){if(!w)return s();Z?s(!1,Z):r=setTimeout(()=>{s(!1,1e-7)},1e3)}w=!1}try{e=new IntersectionObserver(D,{...I,root:i.ownerDocument})}catch{e=new IntersectionObserver(D,I)}e.observe(o)}return s(!0),n}function Dn(o,t,e,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:n=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,m=ko(o),p=i||n?[...m?Ct(m):[],...Ct(t)]:[];p.forEach(A=>{i&&A.addEventListener("scroll",e,{passive:!0}),n&&A.addEventListener("resize",e)});let h=m&&a?Ya(m,e):null,v=-1,f=null;s&&(f=new ResizeObserver(A=>{let[I]=A;I&&I.target===m&&f&&(f.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var w;(w=f)==null||w.observe(t)})),e()}),m&&!l&&f.observe(m),f.observe(t));let b,T=l?it(o):null;l&&_();function _(){let A=it(o);T&&(A.x!==T.x||A.y!==T.y||A.width!==T.width||A.height!==T.height)&&e(),T=A,b=requestAnimationFrame(_)}return e(),()=>{var A;p.forEach(I=>{i&&I.removeEventListener("scroll",e),n&&I.removeEventListener("resize",e)}),h==null||h(),(A=f)==null||A.disconnect(),f=null,l&&cancelAnimationFrame(b)}}var $n=En;var Pn=Tn,Un=xn,Hn=An;var Vn=yn;var Fn=(o,t,e)=>{let r=new Map,i={platform:Ga,...e},n={...i.platform,_c:r};return bn(o,t,{...i,platform:n})};var Wa=g`
956
+ `}};K.styles=[...De.styles,...hn],c([d({type:String,attribute:"prefix-icon",reflect:!0})],K.prototype,"prefixIcon",2),c([d({type:String,attribute:"postfix-icon",reflect:!0})],K.prototype,"postfixIcon",2),c([d({type:String})],K.prototype,"variant",2),c([d({type:Number})],K.prototype,"size",2),c([d({type:String})],K.prototype,"color",2),c([d({type:String,reflect:!0})],K.prototype,"role",2),c([q()],K.prototype,"typeInternal",2),c([q()],K.prototype,"iconSize",2);var ko=K;ko.register(qt);var Ia=ko;var ue=Math.min,G=Math.max,Xt=Math.round,Zt=Math.floor,oe=o=>({x:o,y:o}),Ca={left:"right",right:"left",bottom:"top",top:"bottom"},Ra={start:"end",end:"start"};function zr(o,t,e){return G(o,ue(t,e))}function Ke(o,t){return typeof o=="function"?o(t):o}function _e(o){return o.split("-")[0]}function Qe(o){return o.split("-")[1]}function Lo(o){return o==="x"?"y":"x"}function Mr(o){return o==="y"?"height":"width"}function $e(o){return["top","bottom"].includes(_e(o))?"y":"x"}function Dr(o){return Lo($e(o))}function un(o,t,e){e===void 0&&(e=!1);let r=Qe(o),i=Dr(o),n=Mr(i),s=i==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(s=Wt(s)),[s,Wt(s)]}function fn(o){let t=Wt(o);return[Or(o),t,Or(t)]}function Or(o){return o.replace(/start|end/g,t=>Ra[t])}function ka(o,t,e){let r=["left","right"],i=["right","left"],n=["top","bottom"],s=["bottom","top"];switch(o){case"top":case"bottom":return e?t?i:r:t?r:i;case"left":case"right":return t?n:s;default:return[]}}function gn(o,t,e,r){let i=Qe(o),n=ka(_e(o),e==="start",r);return i&&(n=n.map(s=>s+"-"+i),t&&(n=n.concat(n.map(Or)))),n}function Wt(o){return o.replace(/left|right|bottom|top/g,t=>Ca[t])}function La(o){return{top:0,right:0,bottom:0,left:0,...o}}function No(o){return typeof o!="number"?La(o):{top:o,right:o,bottom:o,left:o}}function Je(o){let{x:t,y:e,width:r,height:i}=o;return{width:r,height:i,top:e,left:t,right:t+r,bottom:e+i,x:t,y:e}}function vn(o,t,e){let{reference:r,floating:i}=o,n=$e(t),s=Dr(t),a=Mr(s),l=_e(t),m=n==="y",h=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,v=r[a]/2-i[a]/2,f;switch(l){case"top":f={x:h,y:r.y-i.height};break;case"bottom":f={x:h,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:p};break;case"left":f={x:r.x-i.width,y:p};break;default:f={x:r.x,y:r.y}}switch(Qe(t)){case"start":f[s]-=v*(e&&m?-1:1);break;case"end":f[s]+=v*(e&&m?-1:1);break}return f}var bn=async(o,t,e)=>{let{placement:r="bottom",strategy:i="absolute",middleware:n=[],platform:s}=e,a=n.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t)),m=await s.getElementRects({reference:o,floating:t,strategy:i}),{x:h,y:p}=vn(m,r,l),v=r,f={},b=0;for(let T=0;T<a.length;T++){let{name:_,fn:S}=a[T],{x:w,y:I,data:D,reset:N}=await S({x:h,y:p,initialPlacement:r,placement:v,strategy:i,middlewareData:f,rects:m,platform:s,elements:{reference:o,floating:t}});h=w!=null?w:h,p=I!=null?I:p,f={...f,[_]:{...f[_],...D}},N&&b<=50&&(b++,typeof N=="object"&&(N.placement&&(v=N.placement),N.rects&&(m=N.rects===!0?await s.getElementRects({reference:o,floating:t,strategy:i}):N.rects),{x:h,y:p}=vn(m,v,l)),T=-1)}return{x:h,y:p,placement:v,strategy:i,middlewareData:f}};async function $r(o,t){var e;t===void 0&&(t={});let{x:r,y:i,platform:n,rects:s,elements:a,strategy:l}=o,{boundary:m="clippingAncestors",rootBoundary:h="viewport",elementContext:p="floating",altBoundary:v=!1,padding:f=0}=Ke(t,o),b=No(f),_=a[v?p==="floating"?"reference":"floating":p],S=Je(await n.getClippingRect({element:(e=await(n.isElement==null?void 0:n.isElement(_)))==null||e?_:_.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(a.floating)),boundary:m,rootBoundary:h,strategy:l})),w=p==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,I=await(n.getOffsetParent==null?void 0:n.getOffsetParent(a.floating)),D=await(n.isElement==null?void 0:n.isElement(I))?await(n.getScale==null?void 0:n.getScale(I))||{x:1,y:1}:{x:1,y:1},N=Je(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:I,strategy:l}):w);return{top:(S.top-N.top+b.top)/D.y,bottom:(N.bottom-S.bottom+b.bottom)/D.y,left:(S.left-N.left+b.left)/D.x,right:(N.right-S.right+b.right)/D.x}}var yn=o=>({name:"arrow",options:o,async fn(t){let{x:e,y:r,placement:i,rects:n,platform:s,elements:a,middlewareData:l}=t,{element:m,padding:h=0}=Ke(o,t)||{};if(m==null)return{};let p=No(h),v={x:e,y:r},f=Dr(i),b=Mr(f),T=await s.getDimensions(m),_=f==="y",S=_?"top":"left",w=_?"bottom":"right",I=_?"clientHeight":"clientWidth",D=n.reference[b]+n.reference[f]-v[f]-n.floating[b],N=v[f]-n.reference[f],Z=await(s.getOffsetParent==null?void 0:s.getOffsetParent(m)),te=Z?Z[I]:0;(!te||!await(s.isElement==null?void 0:s.isElement(Z)))&&(te=a.floating[I]||n.floating[b]);let ge=D/2-N/2,se=te/2-T[b]/2-1,re=ue(p[S],se),Ce=ue(p[w],se),ae=re,Re=te-T[b]-Ce,F=te/2-T[b]/2+ge,pt=zr(ae,F,Re),ve=!l.arrow&&Qe(i)!=null&&F!==pt&&n.reference[b]/2-(F<ae?re:Ce)-T[b]/2<0,le=ve?F<ae?F-ae:F-Re:0;return{[f]:v[f]+le,data:{[f]:pt,centerOffset:F-pt-le,...ve&&{alignmentOffset:le}},reset:ve}}});var xn=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(t){var e,r;let{placement:i,middlewareData:n,rects:s,initialPlacement:a,platform:l,elements:m}=t,{mainAxis:h=!0,crossAxis:p=!0,fallbackPlacements:v,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:T=!0,..._}=Ke(o,t);if((e=n.arrow)!=null&&e.alignmentOffset)return{};let S=_e(i),w=$e(a),I=_e(a)===a,D=await(l.isRTL==null?void 0:l.isRTL(m.floating)),N=v||(I||!T?[Wt(a)]:fn(a)),Z=b!=="none";!v&&Z&&N.push(...gn(a,T,b,D));let te=[a,...N],ge=await $r(t,_),se=[],re=((r=n.flip)==null?void 0:r.overflows)||[];if(h&&se.push(ge[S]),p){let F=un(i,s,D);se.push(ge[F[0]],ge[F[1]])}if(re=[...re,{placement:i,overflows:se}],!se.every(F=>F<=0)){var Ce,ae;let F=(((Ce=n.flip)==null?void 0:Ce.index)||0)+1,pt=te[F];if(pt)return{data:{index:F,overflows:re},reset:{placement:pt}};let ve=(ae=re.filter(le=>le.overflows[0]<=0).sort((le,ke)=>le.overflows[1]-ke.overflows[1])[0])==null?void 0:ae.placement;if(!ve)switch(f){case"bestFit":{var Re;let le=(Re=re.filter(ke=>{if(Z){let Le=$e(ke.placement);return Le===w||Le==="y"}return!0}).map(ke=>[ke.placement,ke.overflows.filter(Le=>Le>0).reduce((Le,Hs)=>Le+Hs,0)]).sort((ke,Le)=>ke[1]-Le[1])[0])==null?void 0:Re[0];le&&(ve=le);break}case"initialPlacement":ve=a;break}if(i!==ve)return{reset:{placement:ve}}}return{}}}};async function Na(o,t){let{placement:e,platform:r,elements:i}=o,n=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=_e(e),a=Qe(e),l=$e(e)==="y",m=["left","top"].includes(s)?-1:1,h=n&&l?-1:1,p=Ke(t,o),{mainAxis:v,crossAxis:f,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof b=="number"&&(f=a==="end"?b*-1:b),l?{x:f*h,y:v*m}:{x:v*m,y:f*h}}var En=function(o){return o===void 0&&(o=0),{name:"offset",options:o,async fn(t){var e,r;let{x:i,y:n,placement:s,middlewareData:a}=t,l=await Na(t,o);return s===((e=a.offset)==null?void 0:e.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:n+l.y,data:{...l,placement:s}}}}},Tn=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(t){let{x:e,y:r,placement:i}=t,{mainAxis:n=!0,crossAxis:s=!1,limiter:a={fn:_=>{let{x:S,y:w}=_;return{x:S,y:w}}},...l}=Ke(o,t),m={x:e,y:r},h=await $r(t,l),p=$e(_e(i)),v=Lo(p),f=m[v],b=m[p];if(n){let _=v==="y"?"top":"left",S=v==="y"?"bottom":"right",w=f+h[_],I=f-h[S];f=zr(w,f,I)}if(s){let _=p==="y"?"top":"left",S=p==="y"?"bottom":"right",w=b+h[_],I=b-h[S];b=zr(w,b,I)}let T=a.fn({...t,[v]:f,[p]:b});return{...T,data:{x:T.x-e,y:T.y-r,enabled:{[v]:n,[p]:s}}}}}};var An=function(o){return o===void 0&&(o={}),{name:"size",options:o,async fn(t){var e,r;let{placement:i,rects:n,platform:s,elements:a}=t,{apply:l=()=>{},...m}=Ke(o,t),h=await $r(t,m),p=_e(i),v=Qe(i),f=$e(i)==="y",{width:b,height:T}=n.floating,_,S;p==="top"||p==="bottom"?(_=p,S=v===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(S=p,_=v==="end"?"top":"bottom");let w=T-h.top-h.bottom,I=b-h.left-h.right,D=ue(T-h[_],w),N=ue(b-h[S],I),Z=!t.middlewareData.shift,te=D,ge=N;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&(ge=I),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(te=w),Z&&!v){let re=G(h.left,0),Ce=G(h.right,0),ae=G(h.top,0),Re=G(h.bottom,0);f?ge=b-2*(re!==0||Ce!==0?re+Ce:G(h.left,h.right)):te=T-2*(ae!==0||Re!==0?ae+Re:G(h.top,h.bottom))}await l({...t,availableWidth:ge,availableHeight:te});let se=await s.getDimensions(a.floating);return b!==se.width||T!==se.height?{reset:{rects:!0}}:{}}}};function Pr(){return typeof window<"u"}function et(o){return _n(o)?(o.nodeName||"").toLowerCase():"#document"}function Y(o){var t;return(o==null||(t=o.ownerDocument)==null?void 0:t.defaultView)||window}function ie(o){var t;return(t=(_n(o)?o.ownerDocument:o.document)||window.document)==null?void 0:t.documentElement}function _n(o){return Pr()?o instanceof Node||o instanceof Y(o).Node:!1}function Q(o){return Pr()?o instanceof Element||o instanceof Y(o).Element:!1}function ne(o){return Pr()?o instanceof HTMLElement||o instanceof Y(o).HTMLElement:!1}function Sn(o){return!Pr()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof Y(o).ShadowRoot}function It(o){let{overflow:t,overflowX:e,overflowY:r,display:i}=J(o);return/auto|scroll|overlay|hidden|clip/.test(t+r+e)&&!["inline","contents"].includes(i)}function wn(o){return["table","td","th"].includes(et(o))}function jt(o){return[":popover-open",":modal"].some(t=>{try{return o.matches(t)}catch{return!1}})}function Ur(o){let t=Vr(),e=Q(o)?J(o):o;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(e.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(e.contain||"").includes(r))}function In(o){let t=we(o);for(;ne(t)&&!tt(t);){if(Ur(t))return t;if(jt(t))return null;t=we(t)}return null}function Vr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function tt(o){return["html","body","#document"].includes(et(o))}function J(o){return Y(o).getComputedStyle(o)}function Kt(o){return Q(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function we(o){if(et(o)==="html")return o;let t=o.assignedSlot||o.parentNode||Sn(o)&&o.host||ie(o);return Sn(t)?t.host:t}function Cn(o){let t=we(o);return tt(t)?o.ownerDocument?o.ownerDocument.body:o.body:ne(t)&&It(t)?t:Cn(t)}function wt(o,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);let i=Cn(o),n=i===((r=o.ownerDocument)==null?void 0:r.body),s=Y(i);if(n){let a=Hr(s);return t.concat(s,s.visualViewport||[],It(i)?i:[],a&&e?wt(a):[])}return t.concat(i,wt(i,[],e))}function Hr(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function Ln(o){let t=J(o),e=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ne(o),n=i?o.offsetWidth:e,s=i?o.offsetHeight:r,a=Xt(e)!==n||Xt(r)!==s;return a&&(e=n,r=s),{width:e,height:r,$:a}}function zo(o){return Q(o)?o:o.contextElement}function Ct(o){let t=zo(o);if(!ne(t))return oe(1);let e=t.getBoundingClientRect(),{width:r,height:i,$:n}=Ln(t),s=(n?Xt(e.width):e.width)/r,a=(n?Xt(e.height):e.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var Oa=oe(0);function Nn(o){let t=Y(o);return!Vr()||!t.visualViewport?Oa:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function za(o,t,e){return t===void 0&&(t=!1),!e||t&&e!==Y(o)?!1:t}function rt(o,t,e,r){t===void 0&&(t=!1),e===void 0&&(e=!1);let i=o.getBoundingClientRect(),n=zo(o),s=oe(1);t&&(r?Q(r)&&(s=Ct(r)):s=Ct(o));let a=za(n,e,r)?Nn(n):oe(0),l=(i.left+a.x)/s.x,m=(i.top+a.y)/s.y,h=i.width/s.x,p=i.height/s.y;if(n){let v=Y(n),f=r&&Q(r)?Y(r):r,b=v,T=Hr(b);for(;T&&r&&f!==b;){let _=Ct(T),S=T.getBoundingClientRect(),w=J(T),I=S.left+(T.clientLeft+parseFloat(w.paddingLeft))*_.x,D=S.top+(T.clientTop+parseFloat(w.paddingTop))*_.y;l*=_.x,m*=_.y,h*=_.x,p*=_.y,l+=I,m+=D,b=Y(T),T=Hr(b)}}return Je({width:h,height:p,x:l,y:m})}function Mo(o,t){let e=Kt(o).scrollLeft;return t?t.left+e:rt(ie(o)).left+e}function On(o,t,e){e===void 0&&(e=!1);let r=o.getBoundingClientRect(),i=r.left+t.scrollLeft-(e?0:Mo(o,r)),n=r.top+t.scrollTop;return{x:i,y:n}}function Ma(o){let{elements:t,rect:e,offsetParent:r,strategy:i}=o,n=i==="fixed",s=ie(r),a=t?jt(t.floating):!1;if(r===s||a&&n)return e;let l={scrollLeft:0,scrollTop:0},m=oe(1),h=oe(0),p=ne(r);if((p||!p&&!n)&&((et(r)!=="body"||It(s))&&(l=Kt(r)),ne(r))){let f=rt(r);m=Ct(r),h.x=f.x+r.clientLeft,h.y=f.y+r.clientTop}let v=s&&!p&&!n?On(s,l,!0):oe(0);return{width:e.width*m.x,height:e.height*m.y,x:e.x*m.x-l.scrollLeft*m.x+h.x+v.x,y:e.y*m.y-l.scrollTop*m.y+h.y+v.y}}function Da(o){return Array.from(o.getClientRects())}function $a(o){let t=ie(o),e=Kt(o),r=o.ownerDocument.body,i=G(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=G(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+Mo(o),a=-e.scrollTop;return J(r).direction==="rtl"&&(s+=G(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:s,y:a}}function Pa(o,t){let e=Y(o),r=ie(o),i=e.visualViewport,n=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){n=i.width,s=i.height;let m=Vr();(!m||m&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:n,height:s,x:a,y:l}}function Ua(o,t){let e=rt(o,!0,t==="fixed"),r=e.top+o.clientTop,i=e.left+o.clientLeft,n=ne(o)?Ct(o):oe(1),s=o.clientWidth*n.x,a=o.clientHeight*n.y,l=i*n.x,m=r*n.y;return{width:s,height:a,x:l,y:m}}function Rn(o,t,e){let r;if(t==="viewport")r=Pa(o,e);else if(t==="document")r=$a(ie(o));else if(Q(t))r=Ua(t,e);else{let i=Nn(o);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Je(r)}function zn(o,t){let e=we(o);return e===t||!Q(e)||tt(e)?!1:J(e).position==="fixed"||zn(e,t)}function Va(o,t){let e=t.get(o);if(e)return e;let r=wt(o,[],!1).filter(a=>Q(a)&&et(a)!=="body"),i=null,n=J(o).position==="fixed",s=n?we(o):o;for(;Q(s)&&!tt(s);){let a=J(s),l=Ur(s);!l&&a.position==="fixed"&&(i=null),(n?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||It(s)&&!l&&zn(o,s))?r=r.filter(h=>h!==s):i=a,s=we(s)}return t.set(o,r),r}function Ha(o){let{element:t,boundary:e,rootBoundary:r,strategy:i}=o,s=[...e==="clippingAncestors"?jt(t)?[]:Va(t,this._c):[].concat(e),r],a=s[0],l=s.reduce((m,h)=>{let p=Rn(t,h,i);return m.top=G(p.top,m.top),m.right=ue(p.right,m.right),m.bottom=ue(p.bottom,m.bottom),m.left=G(p.left,m.left),m},Rn(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Fa(o){let{width:t,height:e}=Ln(o);return{width:t,height:e}}function Ba(o,t,e){let r=ne(t),i=ie(t),n=e==="fixed",s=rt(o,!0,n,t),a={scrollLeft:0,scrollTop:0},l=oe(0);if(r||!r&&!n)if((et(t)!=="body"||It(i))&&(a=Kt(t)),r){let v=rt(t,!0,n,t);l.x=v.x+t.clientLeft,l.y=v.y+t.clientTop}else i&&(l.x=Mo(i));let m=i&&!r&&!n?On(i,a):oe(0),h=s.left+a.scrollLeft-l.x-m.x,p=s.top+a.scrollTop-l.y-m.y;return{x:h,y:p,width:s.width,height:s.height}}function Oo(o){return J(o).position==="static"}function kn(o,t){if(!ne(o)||J(o).position==="fixed")return null;if(t)return t(o);let e=o.offsetParent;return ie(o)===e&&(e=e.ownerDocument.body),e}function Mn(o,t){let e=Y(o);if(jt(o))return e;if(!ne(o)){let i=we(o);for(;i&&!tt(i);){if(Q(i)&&!Oo(i))return i;i=we(i)}return e}let r=kn(o,t);for(;r&&wn(r)&&Oo(r);)r=kn(r,t);return r&&tt(r)&&Oo(r)&&!Ur(r)?e:r||In(o)||e}var Ga=async function(o){let t=this.getOffsetParent||Mn,e=this.getDimensions,r=await e(o.floating);return{reference:Ba(o.reference,await t(o.floating),o.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function qa(o){return J(o).direction==="rtl"}var Ya={convertOffsetParentRelativeRectToViewportRelativeRect:Ma,getDocumentElement:ie,getClippingRect:Ha,getOffsetParent:Mn,getElementRects:Ga,getClientRects:Da,getDimensions:Fa,getScale:Ct,isElement:Q,isRTL:qa};function Wa(o,t){let e=null,r,i=ie(o);function n(){var a;clearTimeout(r),(a=e)==null||a.disconnect(),e=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),n();let{left:m,top:h,width:p,height:v}=o.getBoundingClientRect();if(a||t(),!p||!v)return;let f=Zt(h),b=Zt(i.clientWidth-(m+p)),T=Zt(i.clientHeight-(h+v)),_=Zt(m),w={rootMargin:-f+"px "+-b+"px "+-T+"px "+-_+"px",threshold:G(0,ue(1,l))||1},I=!0;function D(N){let Z=N[0].intersectionRatio;if(Z!==l){if(!I)return s();Z?s(!1,Z):r=setTimeout(()=>{s(!1,1e-7)},1e3)}I=!1}try{e=new IntersectionObserver(D,{...w,root:i.ownerDocument})}catch{e=new IntersectionObserver(D,w)}e.observe(o)}return s(!0),n}function Dn(o,t,e,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:n=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,m=zo(o),h=i||n?[...m?wt(m):[],...wt(t)]:[];h.forEach(S=>{i&&S.addEventListener("scroll",e,{passive:!0}),n&&S.addEventListener("resize",e)});let p=m&&a?Wa(m,e):null,v=-1,f=null;s&&(f=new ResizeObserver(S=>{let[w]=S;w&&w.target===m&&f&&(f.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var I;(I=f)==null||I.observe(t)})),e()}),m&&!l&&f.observe(m),f.observe(t));let b,T=l?rt(o):null;l&&_();function _(){let S=rt(o);T&&(S.x!==T.x||S.y!==T.y||S.width!==T.width||S.height!==T.height)&&e(),T=S,b=requestAnimationFrame(_)}return e(),()=>{var S;h.forEach(w=>{i&&w.removeEventListener("scroll",e),n&&w.removeEventListener("resize",e)}),p==null||p(),(S=f)==null||S.disconnect(),f=null,l&&cancelAnimationFrame(b)}}var $n=En;var Pn=Tn,Un=xn,Vn=An;var Hn=yn;var Fn=(o,t,e)=>{let r=new Map,i={platform:Ya,...e},n={...i.platform,_c:r};return bn(o,t,{...i,platform:n})};var Xa=g`
945
957
  :host {
946
958
  --mdc-popover-arrow-border-radius: 0.1875rem;
947
959
  --mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
@@ -1047,17 +1059,17 @@
1047
1059
  border-top-right-radius: var(--mdc-popover-arrow-border-radius);
1048
1060
  border-bottom-left-radius: 100%;
1049
1061
  }
1050
- `,Bn=[Wa];var Gn=y.constructTagName("modalcontainer"),er={TONAL:"tonal",CONTRAST:"contrast"},qa={0:0,1:1,2:2,3:3,4:4},tr={COLOR:er.TONAL,ELEVATION:qa[0],ROLE:"dialog",ARIA_MODAL:!1,CHILDREN:"Lorem ipsum dolor sit amet"};var Yn=y.constructTagName("popover"),zo={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"},Mo={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},R={PLACEMENT:zo.BOTTOM,TRIGGER:Mo.CLICK,COLOR:er.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};var Wn=o=>{class t extends o{constructor(...i){super(...i);this.enabledFocusTrap=R.FOCUS_TRAP;this.enabledPreventScroll=R.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(i){return i.getClientRects().length===0}hasZeroDimensions(i){let{width:n,height:s}=i.getBoundingClientRect(),{offsetWidth:a,offsetHeight:l}=i;return a+l+s+n===0}isNotVisible(i){return this.hasZeroDimensions(i)||this.hasNoClientRects(i)}hasHiddenStyle(i){let{display:n,opacity:s,visibility:a}=i.style;return n==="none"||s==="0"||a==="hidden"||a==="collapse"}hasComputedHidden(i){let n=getComputedStyle(i);return n.visibility==="hidden"||n.height==="0"||n.display==="none"}isHidden(i){return i.hasAttribute("hidden")||i.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(i)||this.isNotVisible(i)||this.hasComputedHidden(i)}isNotTabbable(i){return i.getAttribute("tabindex")==="-1"}isInteractiveElement(i){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(i.tagName)||i instanceof HTMLAnchorElement&&i.hasAttribute("href")||i instanceof HTMLInputElement&&i.type!=="hidden"||(i instanceof HTMLAudioElement||i instanceof HTMLVideoElement)&&i.hasAttribute("controls")||(i instanceof HTMLImageElement||i instanceof HTMLObjectElement)&&i.hasAttribute("usemap")||i.hasAttribute("tabindex")&&i.tabIndex>-1)}isFocusable(i){return this.isHidden(i)||this.isNotTabbable(i)?!1:this.isInteractiveElement(i)}findFocusable(i,n=new Set){return i instanceof HTMLElement&&this.isFocusable(i)&&n.add(i),Array.from(i.children).forEach(a=>{let l=a;this.isFocusable(l)&&n.add(l),l.shadowRoot?this.findFocusable(l.shadowRoot,n):l.tagName==="SLOT"?l.assignedElements({flatten:!0}).forEach(p=>{p instanceof HTMLElement&&this.findFocusable(p,n)}):this.findFocusable(l,n)}),[...n]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(i=0){this.focusableElements.length!==0&&(this.enabledPreventScroll&&(document.body.style.overflow="hidden"),this.focusableElements[i]&&(this.focusTrapIndex=i,this.focusableElements[i].focus()))}calculateNextIndex(i,n){let{length:s}=this.focusableElements,a=this.shouldWrapFocus();if(i===-1)return n>0?0:s-1;let l=i+n;return a?(l<0&&(l=s-1),l>=s&&(l=0)):(l<0&&(l=0),l>=s&&(l=s-1)),l}getDeepActiveElement(){var n;let i=document.activeElement||document.body;for(;i instanceof HTMLElement&&((n=i.shadowRoot)!=null&&n.activeElement);)i=i.shadowRoot.activeElement;return i||document.body}findElement(i){return this.focusableElements.findIndex(n=>this.isEqualFocusNode(i,n))}isEqualFocusNode(i,n){return i.nodeType>=0?n.isEqualNode(i)&&n===i:!1}trapFocus(i){if(this.focusableElements.length===0)return;let n=this.getDeepActiveElement(),s=this.findElement(n);i?this.focusTrapIndex=this.calculateNextIndex(s,-1):this.focusTrapIndex=this.calculateNextIndex(s,1);let a=this.focusableElements[this.focusTrapIndex];a&&a.focus()}handleKeydown(i){!this.enabledFocusTrap||!this.focusableElements.length||i.key==="Tab"&&(i.preventDefault(),this.trapFocus(i.shiftKey))}}return c([d({type:Boolean})],t.prototype,"enabledFocusTrap",2),c([d({type:Boolean})],t.prototype,"enabledPreventScroll",2),t};var Do=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=[]}},nt=new Do;var q=o=>{class t extends o{constructor(){super(...arguments);this.dataAriaLabel=null}}return c([d({type:String,reflect:!0,attribute:"data-aria-label"})],t.prototype,"dataAriaLabel",2),t};var Br=o=>{class t extends o{constructor(){super(...arguments);this.dataAriaDescribedby=null}}return c([d({type:String,reflect:!0,attribute:"data-aria-describedby"})],t.prototype,"dataAriaDescribedby",2),t};var Gr=o=>{class t extends o{constructor(){super(...arguments);this.dataAriaLabelledby=null}}return c([d({type:String,reflect:!0,attribute:"data-aria-labelledby"})],t.prototype,"dataAriaLabelledby",2),t};var st=class{static dispatchPopoverEvent(t,e){e.dispatchEvent(new CustomEvent(t,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowPopover(t){this.dispatchPopoverEvent("popover-on-show",t)}static onHidePopover(t){this.dispatchPopoverEvent("popover-on-hide",t)}static onCreatedPopover(t){this.dispatchPopoverEvent("popover-on-created",t)}static onDestroyedPopover(t){this.dispatchPopoverEvent("popover-on-destroyed",t)}};var Yr=class{constructor(t){this.arrowPixelChange=!1;this.popover=t}setupDelay(){try{let[t,e]=this.popover.delay.split(",").map(r=>{let i=parseInt(r,10);if(Number.isNaN(i)||i<0)throw new Error(`Invalid delay value: ${r}`);return i});return[t,e]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(t){var a;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)`,i=(a=this.popover.shadowRoot)==null?void 0:a.querySelector("mdc-modalcontainer"),n=i.offsetHeight||0,s=i.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=`${s}px`;break;case"left":e.style.height=`${n}px`,e.style.width=r,e.style.right=`calc(-1.5 * (${r}))`;break;case"right":e.style.height=`${n}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=`${s}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.interactive&&(this.popover.dataAriaLabel||(this.popover.dataAriaLabel=((t=this.popover.triggerElement)==null?void 0:t.ariaLabel)||((e=this.popover.triggerElement)==null?void 0:e.textContent)||""),this.popover.dataAriaLabelledby||(this.popover.dataAriaLabelledby=((r=this.popover.triggerElement)==null?void 0:r.id)||""))}updateArrowStyle(t,e){var p;if(!this.popover.arrowElement)return;let r=e.split("-")[0],i={top:"bottom",right:"left",bottom:"top",left:"right"}[r],{x:n,y:s}=t,a=this.popover.arrowElement.getBoundingClientRect(),l=(p=this.popover.arrowElement.offsetParent)==null?void 0:p.getBoundingClientRect();if(!this.arrowPixelChange){let h=l!=null&&l[i]?12-Math.abs(a[i]-l[i]):0;Math.round(h)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let m=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",r),Object.assign(this.popover.arrowElement.style,{left:n!=null?`${n}px`:"",top:s!=null?`${s}px`:"",[i]:`${-this.popover.arrowElement.offsetHeight/2-m}px`})}updatePopoverStyle(t,e){this.popover.containerElement&&Object.assign(this.popover.containerElement.style,{left:`${t}px`,top:`${e}px`})}};var L=class extends q(Gr(Br(Wn(E)))){constructor(){super();this.id="";this.triggerID="";this.trigger=R.TRIGGER;this.placement=R.PLACEMENT;this.color=R.COLOR;this.visible=R.VISIBLE;this.offset=R.OFFSET;this.focusTrap=R.FOCUS_TRAP;this.preventScroll=R.PREVENT_SCROLL;this.showArrow=R.ARROW;this.closeButton=R.CLOSE_BUTTON;this.interactive=R.INTERACTIVE;this.delay=R.DELAY;this.hideOnEscape=R.HIDE_ON_ESCAPE;this.hideOnBlur=R.HIDE_ON_BLUR;this.hideOnOutsideClick=R.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=R.FOCUS_BACK;this.backdrop=R.BACKDROP;this.flip=R.FLIP;this.size=R.SIZE;this.zIndex=R.Z_INDEX;this.appendTo="";this.closeButtonAriaLabel=null;this.dataRole=R.ROLE;this.arrowElement=null;this.triggerElement=null;this.containerElement=null;this.hoverTimer=null;this.isTriggerClicked=!1;this.openDelay=0;this.closeDelay=0;this.onOutsidePopoverClick=e=>{if(nt.peek()!==this)return;let r=!1,i=e.composedPath();r=this.contains(e.target)||i.includes(this.triggerElement);let n=this.renderRoot.querySelector(".popover-backdrop"),s=n?i.includes(n):!1;(!r||s)&&this.hidePopover()};this.onEscapeKeydown=e=>{!this.visible||e.code!=="Escape"||(e.preventDefault(),this.hidePopover())};this.onPopoverFocusOut=e=>{this.contains(e.relatedTarget)||this.hidePopover()};this.startCloseDelay=()=>{if(!this.interactive)this.hidePopover();else{if(this.isTriggerClicked)return;this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay)}};this.cancelCloseDelay=()=>{this.hoverTimer&&(clearTimeout(this.hoverTimer),this.hoverTimer=null)};this.showPopover=()=>{this.cancelCloseDelay(),setTimeout(()=>{this.visible=!0,st.onShowPopover(this)},this.openDelay),nt.peek()!==this&&nt.push(this)};this.hidePopover=()=>{nt.peek()===this&&(setTimeout(()=>{this.visible=!1,st.onHidePopover(this),this.isTriggerClicked=!1},this.closeDelay),nt.pop())};this.togglePopoverVisible=()=>{this.isTriggerClicked?this.hidePopover():(this.showPopover(),this.isTriggerClicked=!0)};this.utils=new Yr(this)}async firstUpdated(e){super.firstUpdated(e),this.containerElement=this.renderRoot.querySelector(".popover-container"),this.utils.setupAppendTo(),[this.openDelay,this.closeDelay]=this.utils.setupDelay(),this.setupTriggerListener(),this.utils.setupAccessibility(),st.onCreatedPopover(this),this.visible&&(await this.positionPopover(),await this.handleCreatePopoverFirstUpdate())}async disconnectedCallback(){super.disconnectedCallback(),await this.removeEventListeners(),st.onDestroyedPopover(this),nt.remove(this)}setupTriggerListener(){var e,r;if(this.triggerID&&(this.triggerElement=document.getElementById(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 i=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.addEventListener("mouseenter",this.showPopover),this.triggerElement.addEventListener("mouseleave",this.startCloseDelay),(e=this.containerElement)==null||e.addEventListener("mouseenter",this.cancelCloseDelay),(r=this.containerElement)==null||r.addEventListener("mouseleave",this.startCloseDelay),i==null||i.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(){var r,i;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),(r=this.containerElement)==null||r.removeEventListener("mouseenter",this.cancelCloseDelay),(i=this.containerElement)==null||i.removeEventListener("mouseleave",this.startCloseDelay),this.triggerElement.removeEventListener("focusin",this.showPopover),this.triggerElement.removeEventListener("focusout",this.hidePopover),e==null||e.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("focus-trap-exit",this.hidePopover)}async updated(e){if(super.updated(e),e.has("visible")){let r=e.get("visible");await this.isOpenUpdated(r,this.visible)}if(e.has("placement")&&this.setAttribute("placement",Object.values(zo).includes(this.placement)?this.placement:R.PLACEMENT),e.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),e.has("trigger")){let i=this.trigger.split(" ").filter(n=>Object.values(Mo).includes(n));this.setAttribute("trigger",i.length>0?this.trigger:R.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}e.has("color")&&this.setAttribute("color",Object.values(er).includes(this.color)?this.color:R.COLOR),e.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),e.has("append-to")&&this.utils.setupAppendTo(),(e.has("interactive")||e.has("data-aria-label")||e.has("data-aria-labelledby"))&&this.utils.setupAccessibility()}async isOpenUpdated(e,r){var i,n,s,a;if(!(e===r||!this.triggerElement))if(r){if(this.enabledFocusTrap=this.focusTrap,this.enabledPreventScroll=this.preventScroll,this.backdrop){let l=this.renderRoot.querySelector(".popover-backdrop");l.style.zIndex=`${this.zIndex-1}`,this.triggerElement.style.zIndex=`${this.zIndex}`}this.positionPopover(),await this.handleCreatePopoverFirstUpdate(),this.hideOnBlur&&((i=this.containerElement)==null||i.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="none")),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.addEventListener("keydown",this.onEscapeKeydown),this.triggerElement.setAttribute("aria-expanded","true"),this.interactive&&this.triggerElement.setAttribute("aria-haspopup",this.triggerElement.getAttribute("aria-haspopup")||"dialog")}else this.hideOnBlur&&((n=this.containerElement)==null||n.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.removeEventListener("keydown",this.onEscapeKeydown),(s=this.deactivateFocusTrap)==null||s.call(this),this.triggerElement.removeAttribute("aria-expanded"),this.interactive&&this.triggerElement.removeAttribute("aria-haspopup"),this.focusBackToTrigger&&((a=this.triggerElement)==null||a.focus())}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||!this.containerElement)return;let e=[Pn()],r=this.offset;if(this.flip&&e.push(Un()),this.size){let i=this.containerElement.querySelector('[part="popover-content"]');e.push(Hn({apply({availableHeight:n}){i&&Object.assign(i.style,{maxHeight:`${n}px`})},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector(".popover-arrow"),this.arrowElement)){let i=this.arrowElement.offsetHeight;r=Math.sqrt(2*i**2)/2+this.offset,e.push(Vn({element:this.arrowElement,padding:12}))}e.push($n(r)),Dn(this.triggerElement,this.containerElement,async()=>{if(!this.triggerElement||!this.containerElement)return;let{x:i,y:n,middlewareData:s,placement:a}=await Fn(this.triggerElement,this.containerElement,{placement:this.placement,middleware:e});this.utils.updatePopoverStyle(i,n),s.arrow&&this.arrowElement&&this.utils.updateArrowStyle(s.arrow,a),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(a)})}render(){return u`
1062
+ `,Bn=[Xa];var Gn=y.constructTagName("modalcontainer"),Qt={TONAL:"tonal",CONTRAST:"contrast"},Za={0:0,1:1,2:2,3:3,4:4},Jt={COLOR:Qt.TONAL,ELEVATION:Za[0],ROLE:"dialog",ARIA_MODAL:!1,CHILDREN:"Lorem ipsum dolor sit amet"};var qn=y.constructTagName("popover"),Do={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"},$o={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},k={PLACEMENT:Do.BOTTOM,TRIGGER:$o.CLICK,COLOR:Qt.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};var Yn=o=>{class t extends o{constructor(...i){super(...i);this.enabledFocusTrap=k.FOCUS_TRAP;this.enabledPreventScroll=k.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(i){return i.getClientRects().length===0}hasZeroDimensions(i){let{width:n,height:s}=i.getBoundingClientRect(),{offsetWidth:a,offsetHeight:l}=i;return a+l+s+n===0}isNotVisible(i){return this.hasZeroDimensions(i)||this.hasNoClientRects(i)}hasHiddenStyle(i){let{display:n,opacity:s,visibility:a}=i.style;return n==="none"||s==="0"||a==="hidden"||a==="collapse"}hasComputedHidden(i){let n=getComputedStyle(i);return n.visibility==="hidden"||n.height==="0"||n.display==="none"}isHidden(i){return i.hasAttribute("hidden")||i.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(i)||this.isNotVisible(i)||this.hasComputedHidden(i)}isNotTabbable(i){return i.getAttribute("tabindex")==="-1"}isInteractiveElement(i){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(i.tagName)||i instanceof HTMLAnchorElement&&i.hasAttribute("href")||i instanceof HTMLInputElement&&i.type!=="hidden"||(i instanceof HTMLAudioElement||i instanceof HTMLVideoElement)&&i.hasAttribute("controls")||(i instanceof HTMLImageElement||i instanceof HTMLObjectElement)&&i.hasAttribute("usemap")||i.hasAttribute("tabindex")&&i.tabIndex>-1)}isFocusable(i){return this.isHidden(i)||this.isNotTabbable(i)?!1:this.isInteractiveElement(i)}findFocusable(i,n=new Set){return i instanceof HTMLElement&&this.isFocusable(i)&&n.add(i),Array.from(i.children).forEach(a=>{let l=a;this.isFocusable(l)&&n.add(l),l.shadowRoot?this.findFocusable(l.shadowRoot,n):l.tagName==="SLOT"?l.assignedElements({flatten:!0}).forEach(h=>{h instanceof HTMLElement&&this.findFocusable(h,n)}):this.findFocusable(l,n)}),[...n]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(i=0){this.focusableElements.length!==0&&(this.enabledPreventScroll&&(document.body.style.overflow="hidden"),this.focusableElements[i]&&(this.focusTrapIndex=i,this.focusableElements[i].focus()))}calculateNextIndex(i,n){let{length:s}=this.focusableElements,a=this.shouldWrapFocus();if(i===-1)return n>0?0:s-1;let l=i+n;return a?(l<0&&(l=s-1),l>=s&&(l=0)):(l<0&&(l=0),l>=s&&(l=s-1)),l}getDeepActiveElement(){var n;let i=document.activeElement||document.body;for(;i instanceof HTMLElement&&((n=i.shadowRoot)!=null&&n.activeElement);)i=i.shadowRoot.activeElement;return i||document.body}findElement(i){return this.focusableElements.findIndex(n=>this.isEqualFocusNode(i,n))}isEqualFocusNode(i,n){return i.nodeType>=0?n.isEqualNode(i)&&n===i:!1}trapFocus(i){if(this.focusableElements.length===0)return;let n=this.getDeepActiveElement(),s=this.findElement(n);i?this.focusTrapIndex=this.calculateNextIndex(s,-1):this.focusTrapIndex=this.calculateNextIndex(s,1);let a=this.focusableElements[this.focusTrapIndex];a&&a.focus()}handleKeydown(i){!this.enabledFocusTrap||!this.focusableElements.length||i.key==="Tab"&&(i.preventDefault(),this.trapFocus(i.shiftKey))}}return c([d({type:Boolean})],t.prototype,"enabledFocusTrap",2),c([d({type:Boolean})],t.prototype,"enabledPreventScroll",2),t};var Po=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=[]}},ot=new Po;var W=o=>{class t extends o{constructor(){super(...arguments);this.dataAriaLabel=null}}return c([d({type:String,reflect:!0,attribute:"data-aria-label"})],t.prototype,"dataAriaLabel",2),t};var Fr=o=>{class t extends o{constructor(){super(...arguments);this.dataAriaDescribedby=null}}return c([d({type:String,reflect:!0,attribute:"data-aria-describedby"})],t.prototype,"dataAriaDescribedby",2),t};var Br=o=>{class t extends o{constructor(){super(...arguments);this.dataAriaLabelledby=null}}return c([d({type:String,reflect:!0,attribute:"data-aria-labelledby"})],t.prototype,"dataAriaLabelledby",2),t};var it=class{static dispatchPopoverEvent(t,e){e.dispatchEvent(new CustomEvent(t,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowPopover(t){this.dispatchPopoverEvent("popover-on-show",t)}static onHidePopover(t){this.dispatchPopoverEvent("popover-on-hide",t)}static onCreatedPopover(t){this.dispatchPopoverEvent("popover-on-created",t)}static onDestroyedPopover(t){this.dispatchPopoverEvent("popover-on-destroyed",t)}};var Gr=class{constructor(t){this.arrowPixelChange=!1;this.popover=t}setupDelay(){try{let[t,e]=this.popover.delay.split(",").map(r=>{let i=parseInt(r,10);if(Number.isNaN(i)||i<0)throw new Error(`Invalid delay value: ${r}`);return i});return[t,e]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(t){var a;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)`,i=(a=this.popover.shadowRoot)==null?void 0:a.querySelector("mdc-modalcontainer"),n=i.offsetHeight||0,s=i.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=`${s}px`;break;case"left":e.style.height=`${n}px`,e.style.width=r,e.style.right=`calc(-1.5 * (${r}))`;break;case"right":e.style.height=`${n}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=`${s}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.interactive&&(this.popover.dataAriaLabel||(this.popover.dataAriaLabel=((t=this.popover.triggerElement)==null?void 0:t.ariaLabel)||((e=this.popover.triggerElement)==null?void 0:e.textContent)||""),this.popover.dataAriaLabelledby||(this.popover.dataAriaLabelledby=((r=this.popover.triggerElement)==null?void 0:r.id)||""))}updateArrowStyle(t,e){var h;if(!this.popover.arrowElement)return;let r=e.split("-")[0],i={top:"bottom",right:"left",bottom:"top",left:"right"}[r],{x:n,y:s}=t,a=this.popover.arrowElement.getBoundingClientRect(),l=(h=this.popover.arrowElement.offsetParent)==null?void 0:h.getBoundingClientRect();if(!this.arrowPixelChange){let p=l!=null&&l[i]?12-Math.abs(a[i]-l[i]):0;Math.round(p)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let m=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",r),Object.assign(this.popover.arrowElement.style,{left:n!=null?`${n}px`:"",top:s!=null?`${s}px`:"",[i]:`${-this.popover.arrowElement.offsetHeight/2-m}px`})}updatePopoverStyle(t,e){this.popover.containerElement&&Object.assign(this.popover.containerElement.style,{left:`${t}px`,top:`${e}px`})}};var R=class extends W(Br(Fr(Yn(E)))){constructor(){super();this.id="";this.triggerID="";this.trigger=k.TRIGGER;this.placement=k.PLACEMENT;this.color=k.COLOR;this.visible=k.VISIBLE;this.offset=k.OFFSET;this.focusTrap=k.FOCUS_TRAP;this.preventScroll=k.PREVENT_SCROLL;this.showArrow=k.ARROW;this.closeButton=k.CLOSE_BUTTON;this.interactive=k.INTERACTIVE;this.delay=k.DELAY;this.hideOnEscape=k.HIDE_ON_ESCAPE;this.hideOnBlur=k.HIDE_ON_BLUR;this.hideOnOutsideClick=k.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=k.FOCUS_BACK;this.backdrop=k.BACKDROP;this.flip=k.FLIP;this.size=k.SIZE;this.zIndex=k.Z_INDEX;this.appendTo="";this.closeButtonAriaLabel=null;this.dataRole=k.ROLE;this.arrowElement=null;this.triggerElement=null;this.containerElement=null;this.hoverTimer=null;this.isTriggerClicked=!1;this.openDelay=0;this.closeDelay=0;this.onOutsidePopoverClick=e=>{if(ot.peek()!==this)return;let r=!1,i=e.composedPath();r=this.contains(e.target)||i.includes(this.triggerElement);let n=this.renderRoot.querySelector(".popover-backdrop"),s=n?i.includes(n):!1;(!r||s)&&this.hidePopover()};this.onEscapeKeydown=e=>{!this.visible||e.code!=="Escape"||(e.preventDefault(),this.hidePopover())};this.onPopoverFocusOut=e=>{this.contains(e.relatedTarget)||this.hidePopover()};this.startCloseDelay=()=>{if(!this.interactive)this.hidePopover();else{if(this.isTriggerClicked)return;this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay)}};this.cancelCloseDelay=()=>{this.hoverTimer&&(clearTimeout(this.hoverTimer),this.hoverTimer=null)};this.showPopover=()=>{this.cancelCloseDelay(),setTimeout(()=>{this.visible=!0,it.onShowPopover(this)},this.openDelay),ot.peek()!==this&&ot.push(this)};this.hidePopover=()=>{ot.peek()===this&&(setTimeout(()=>{this.visible=!1,it.onHidePopover(this),this.isTriggerClicked=!1},this.closeDelay),ot.pop())};this.togglePopoverVisible=()=>{this.isTriggerClicked?this.hidePopover():(this.showPopover(),this.isTriggerClicked=!0)};this.utils=new Gr(this)}async firstUpdated(e){super.firstUpdated(e),this.containerElement=this.renderRoot.querySelector(".popover-container"),this.utils.setupAppendTo(),[this.openDelay,this.closeDelay]=this.utils.setupDelay(),this.setupTriggerListener(),this.utils.setupAccessibility(),it.onCreatedPopover(this),this.visible&&(await this.positionPopover(),await this.handleCreatePopoverFirstUpdate())}async disconnectedCallback(){super.disconnectedCallback(),await this.removeEventListeners(),it.onDestroyedPopover(this),ot.remove(this)}setupTriggerListener(){var e,r;if(this.triggerID&&(this.triggerElement=document.getElementById(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 i=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.addEventListener("mouseenter",this.showPopover),this.triggerElement.addEventListener("mouseleave",this.startCloseDelay),(e=this.containerElement)==null||e.addEventListener("mouseenter",this.cancelCloseDelay),(r=this.containerElement)==null||r.addEventListener("mouseleave",this.startCloseDelay),i==null||i.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(){var r,i;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),(r=this.containerElement)==null||r.removeEventListener("mouseenter",this.cancelCloseDelay),(i=this.containerElement)==null||i.removeEventListener("mouseleave",this.startCloseDelay),this.triggerElement.removeEventListener("focusin",this.showPopover),this.triggerElement.removeEventListener("focusout",this.hidePopover),e==null||e.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("focus-trap-exit",this.hidePopover)}async updated(e){if(super.updated(e),e.has("visible")){let r=e.get("visible");await this.isOpenUpdated(r,this.visible)}if(e.has("placement")&&this.setAttribute("placement",Object.values(Do).includes(this.placement)?this.placement:k.PLACEMENT),e.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),e.has("trigger")){let i=this.trigger.split(" ").filter(n=>Object.values($o).includes(n));this.setAttribute("trigger",i.length>0?this.trigger:k.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}e.has("color")&&this.setAttribute("color",Object.values(Qt).includes(this.color)?this.color:k.COLOR),e.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),e.has("append-to")&&this.utils.setupAppendTo(),(e.has("interactive")||e.has("data-aria-label")||e.has("data-aria-labelledby"))&&this.utils.setupAccessibility()}async isOpenUpdated(e,r){var i,n,s,a;if(!(e===r||!this.triggerElement))if(r){if(this.enabledFocusTrap=this.focusTrap,this.enabledPreventScroll=this.preventScroll,this.backdrop){let l=this.renderRoot.querySelector(".popover-backdrop");l.style.zIndex=`${this.zIndex-1}`,this.triggerElement.style.zIndex=`${this.zIndex}`}this.positionPopover(),await this.handleCreatePopoverFirstUpdate(),this.hideOnBlur&&((i=this.containerElement)==null||i.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="none")),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.addEventListener("keydown",this.onEscapeKeydown),this.triggerElement.setAttribute("aria-expanded","true"),this.interactive&&this.triggerElement.setAttribute("aria-haspopup",this.triggerElement.getAttribute("aria-haspopup")||"dialog")}else this.hideOnBlur&&((n=this.containerElement)==null||n.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.removeEventListener("keydown",this.onEscapeKeydown),(s=this.deactivateFocusTrap)==null||s.call(this),this.triggerElement.removeAttribute("aria-expanded"),this.interactive&&this.triggerElement.removeAttribute("aria-haspopup"),this.focusBackToTrigger&&((a=this.triggerElement)==null||a.focus())}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||!this.containerElement)return;let e=[Pn()],r=this.offset;if(this.flip&&e.push(Un()),this.size){let i=this.containerElement.querySelector('[part="popover-content"]');e.push(Vn({apply({availableHeight:n}){i&&Object.assign(i.style,{maxHeight:`${n}px`})},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector(".popover-arrow"),this.arrowElement)){let i=this.arrowElement.offsetHeight;r=Math.sqrt(2*i**2)/2+this.offset,e.push(Hn({element:this.arrowElement,padding:12}))}e.push($n(r)),Dn(this.triggerElement,this.containerElement,async()=>{if(!this.triggerElement||!this.containerElement)return;let{x:i,y:n,middlewareData:s,placement:a}=await Fn(this.triggerElement,this.containerElement,{placement:this.placement,middleware:e});this.utils.updatePopoverStyle(i,n),s.arrow&&this.arrowElement&&this.utils.updateArrowStyle(s.arrow,a),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(a)})}render(){return u`
1051
1063
  ${this.backdrop&&this.visible?u`<div class="popover-backdrop"></div>`:x}
1052
1064
  <mdc-modalcontainer
1053
1065
  class="popover-container"
1054
1066
  elevation="3"
1055
1067
  color=${this.color}
1056
1068
  ?data-aria-modal=${this.interactive}
1057
- data-role="${S(this.dataRole)}"
1058
- data-aria-label="${S(this.interactive?this.dataAriaLabel:void 0)}"
1059
- data-aria-labelledby="${S(this.interactive?this.dataAriaLabelledby:void 0)}"
1060
- data-aria-describedby="${S(this.interactive?this.dataAriaDescribedby:void 0)}"
1069
+ data-role="${A(this.dataRole)}"
1070
+ data-aria-label="${A(this.interactive?this.dataAriaLabel:void 0)}"
1071
+ data-aria-labelledby="${A(this.interactive?this.dataAriaLabelledby:void 0)}"
1072
+ data-aria-describedby="${A(this.interactive?this.dataAriaDescribedby:void 0)}"
1061
1073
  style="z-index: ${this.zIndex};"
1062
1074
  >
1063
1075
  <div class="popover-hover-bridge"></div>
@@ -1066,7 +1078,7 @@
1066
1078
  prefix-icon="cancel-bold"
1067
1079
  variant="tertiary"
1068
1080
  size="20"
1069
- aria-label=${S(this.closeButtonAriaLabel)}
1081
+ aria-label=${A(this.closeButtonAriaLabel)}
1070
1082
  @click="${this.hidePopover}"
1071
1083
  ></mdc-button>`:x}
1072
1084
  ${this.showArrow?u`<div class="popover-arrow"></div>`:x}
@@ -1074,7 +1086,7 @@
1074
1086
  <slot></slot>
1075
1087
  </div>
1076
1088
  </mdc-modalcontainer>
1077
- `}};L.styles=[...E.styles,...Bn],c([d({type:String})],L.prototype,"id",2),c([d({type:String})],L.prototype,"triggerID",2),c([d({type:String,reflect:!0})],L.prototype,"trigger",2),c([d({type:String,reflect:!0})],L.prototype,"placement",2),c([d({type:String,reflect:!0})],L.prototype,"color",2),c([d({type:Boolean,reflect:!0})],L.prototype,"visible",2),c([d({type:Number,reflect:!0})],L.prototype,"offset",2),c([d({type:Boolean,reflect:!0,attribute:"focus-trap"})],L.prototype,"focusTrap",2),c([d({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],L.prototype,"preventScroll",2),c([d({type:Boolean,attribute:"show-arrow"})],L.prototype,"showArrow",2),c([d({type:Boolean,reflect:!0,attribute:"close-button"})],L.prototype,"closeButton",2),c([d({type:Boolean,reflect:!0})],L.prototype,"interactive",2),c([d({type:String,reflect:!0})],L.prototype,"delay",2),c([d({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],L.prototype,"hideOnEscape",2),c([d({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],L.prototype,"hideOnBlur",2),c([d({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],L.prototype,"hideOnOutsideClick",2),c([d({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],L.prototype,"focusBackToTrigger",2),c([d({type:Boolean,reflect:!0})],L.prototype,"backdrop",2),c([d({type:Boolean,reflect:!0})],L.prototype,"flip",2),c([d({type:Boolean,reflect:!0})],L.prototype,"size",2),c([d({type:Number,reflect:!0,attribute:"z-index"})],L.prototype,"zIndex",2),c([d({type:String,reflect:!0,attribute:"append-to"})],L.prototype,"appendTo",2),c([d({type:String,attribute:"close-button-aria-label"})],L.prototype,"closeButtonAriaLabel",2),c([d({type:String,reflect:!0,attribute:"data-role"})],L.prototype,"dataRole",2);var $o=L;var Xa=[C,g`
1089
+ `}};R.styles=[...E.styles,...Bn],c([d({type:String})],R.prototype,"id",2),c([d({type:String})],R.prototype,"triggerID",2),c([d({type:String,reflect:!0})],R.prototype,"trigger",2),c([d({type:String,reflect:!0})],R.prototype,"placement",2),c([d({type:String,reflect:!0})],R.prototype,"color",2),c([d({type:Boolean,reflect:!0})],R.prototype,"visible",2),c([d({type:Number,reflect:!0})],R.prototype,"offset",2),c([d({type:Boolean,reflect:!0,attribute:"focus-trap"})],R.prototype,"focusTrap",2),c([d({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],R.prototype,"preventScroll",2),c([d({type:Boolean,attribute:"show-arrow"})],R.prototype,"showArrow",2),c([d({type:Boolean,reflect:!0,attribute:"close-button"})],R.prototype,"closeButton",2),c([d({type:Boolean,reflect:!0})],R.prototype,"interactive",2),c([d({type:String,reflect:!0})],R.prototype,"delay",2),c([d({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],R.prototype,"hideOnEscape",2),c([d({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],R.prototype,"hideOnBlur",2),c([d({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],R.prototype,"hideOnOutsideClick",2),c([d({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],R.prototype,"focusBackToTrigger",2),c([d({type:Boolean,reflect:!0})],R.prototype,"backdrop",2),c([d({type:Boolean,reflect:!0})],R.prototype,"flip",2),c([d({type:Boolean,reflect:!0})],R.prototype,"size",2),c([d({type:Number,reflect:!0,attribute:"z-index"})],R.prototype,"zIndex",2),c([d({type:String,reflect:!0,attribute:"append-to"})],R.prototype,"appendTo",2),c([d({type:String,attribute:"close-button-aria-label"})],R.prototype,"closeButtonAriaLabel",2),c([d({type:String,reflect:!0,attribute:"data-role"})],R.prototype,"dataRole",2);var Uo=R;var ja=[C,g`
1078
1090
  :host {
1079
1091
  --mdc-modalcontainer-primary-background-color: var(--mds-color-theme-background-solid-primary-normal);
1080
1092
  --mdc-modalcontainer-border-color: var(--mds-color-theme-outline-secondary-normal);
@@ -1112,18 +1124,18 @@
1112
1124
  :host([elevation='4'])::part(container) {
1113
1125
  filter: var(--mdc-modalcontainer-elevation-4);
1114
1126
  }
1115
- `],qn=Xa;var Ue=class extends q(Gr(Br(E))){constructor(){super(...arguments);this.color=tr.COLOR;this.elevation=tr.ELEVATION;this.dataRole=tr.ROLE;this.dataAriaModal=tr.ARIA_MODAL}render(){return u`
1127
+ `],Wn=ja;var Pe=class extends W(Br(Fr(E))){constructor(){super(...arguments);this.color=Jt.COLOR;this.elevation=Jt.ELEVATION;this.dataRole=Jt.ROLE;this.dataAriaModal=Jt.ARIA_MODAL}render(){return u`
1116
1128
  <div
1117
- role="${S(this.dataRole)}"
1118
- aria-modal=${S(this.dataAriaModal===!0?"true":void 0)}
1119
- aria-label="${S(this.dataAriaLabel)}"
1120
- aria-labelledby="${S(this.dataAriaLabelledby)}"
1121
- aria-describedby="${S(this.dataAriaDescribedby)}"
1129
+ role="${A(this.dataRole)}"
1130
+ aria-modal=${A(this.dataAriaModal===!0?"true":void 0)}
1131
+ aria-label="${A(this.dataAriaLabel)}"
1132
+ aria-labelledby="${A(this.dataAriaLabelledby)}"
1133
+ aria-describedby="${A(this.dataAriaDescribedby)}"
1122
1134
  part="container"
1123
1135
  >
1124
1136
  <slot></slot>
1125
1137
  </div>
1126
- `}};Ue.styles=[...E.styles,...qn],c([d({type:String,reflect:!0})],Ue.prototype,"color",2),c([d({type:Number,reflect:!0})],Ue.prototype,"elevation",2),c([d({type:String,reflect:!0,attribute:"data-role"})],Ue.prototype,"dataRole",2),c([d({type:Boolean,reflect:!0,attribute:"data-aria-modal"})],Ue.prototype,"dataAriaModal",2);var Xn=Ue;Xn.register(Gn);$o.register(Yn);var Za=$o;var ja=g`
1138
+ `}};Pe.styles=[...E.styles,...Wn],c([d({type:String,reflect:!0})],Pe.prototype,"color",2),c([d({type:Number,reflect:!0})],Pe.prototype,"elevation",2),c([d({type:String,reflect:!0,attribute:"data-role"})],Pe.prototype,"dataRole",2),c([d({type:Boolean,reflect:!0,attribute:"data-aria-modal"})],Pe.prototype,"dataAriaModal",2);var Xn=Pe;Xn.register(Gn);Uo.register(qn);var Ka=Uo;var Qa=g`
1127
1139
  :host {
1128
1140
  --mdc-bullet-background-color: var(--mds-color-theme-outline-secondary-normal);
1129
1141
  --mdc-bullet-size-small: 0.25rem;
@@ -1144,7 +1156,7 @@
1144
1156
  :host([size="large"]) {
1145
1157
  height: var(--mdc-bullet-size-large);
1146
1158
  }
1147
- `,Zn=[ja];var jn=y.constructTagName("bullet"),Kn={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var rr=class extends E{constructor(){super(...arguments);this.size=Kn.SMALL}};rr.styles=[...E.styles,...Zn],c([d({type:String,reflect:!0})],rr.prototype,"size",2);var Po=rr;Po.register(jn);var Ka=Po;var Qa=g`
1159
+ `,Zn=[Qa];var jn=y.constructTagName("bullet"),Kn={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var er=class extends E{constructor(){super(...arguments);this.size=Kn.SMALL}};er.styles=[...E.styles,...Zn],c([d({type:String,reflect:!0})],er.prototype,"size",2);var Vo=er;Vo.register(jn);var Ja=Vo;var el=g`
1148
1160
  :host {
1149
1161
  --mdc-marker-width: 0.25rem;
1150
1162
  --mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
@@ -1169,7 +1181,7 @@
1169
1181
  var(--mdc-marker-striped-background-color) 0.375rem
1170
1182
  );
1171
1183
  }
1172
- `,Qn=[Qa];var Jn=y.constructTagName("marker"),es={SOLID:"solid",STRIPED:"striped"};var or=class extends E{constructor(){super(...arguments);this.variant=es.SOLID}};or.styles=[...E.styles,...Qn],c([d({type:String,reflect:!0})],or.prototype,"variant",2);var Uo=or;Uo.register(Jn);var Ja=Uo;var ts=y.constructTagName("divider"),ir={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Ho={SOLID:"solid",GRADIENT:"gradient"},He={POSITIVE:"positive",NEGATIVE:"negative"},nr={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},at={ORIENTATION:ir.HORIZONTAL,VARIANT:Ho.SOLID,ARROW_DIRECTION:He.NEGATIVE,BUTTON_DIRECTION:He.NEGATIVE};var el=[C,g`
1184
+ `,Qn=[el];var Jn=y.constructTagName("marker"),es={SOLID:"solid",STRIPED:"striped"};var tr=class extends E{constructor(){super(...arguments);this.variant=es.SOLID}};tr.styles=[...E.styles,...Qn],c([d({type:String,reflect:!0})],tr.prototype,"variant",2);var Ho=tr;Ho.register(Jn);var tl=Ho;var ts=y.constructTagName("divider"),rr={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Fo={SOLID:"solid",GRADIENT:"gradient"},Ue={POSITIVE:"positive",NEGATIVE:"negative"},or={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},nt={ORIENTATION:rr.HORIZONTAL,VARIANT:Fo.SOLID,ARROW_DIRECTION:Ue.NEGATIVE,BUTTON_DIRECTION:Ue.NEGATIVE};var rl=[C,g`
1173
1185
  :host {
1174
1186
  --mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
1175
1187
  --mdc-divider-width: 0.0625rem;
@@ -1380,29 +1392,29 @@
1380
1392
  font-size: var(--mdc-divider-text-size);
1381
1393
  line-height: var(--mdc-divider-text-line-height);
1382
1394
  }
1383
- `],rs=el;var Ve=class extends E{constructor(){super();this.orientation=at.ORIENTATION;this.variant=at.VARIANT;this.arrowDirection=at.ARROW_DIRECTION;this.buttonPosition=at.BUTTON_DIRECTION;this.setAttribute("data-type","mdc-primary-divider")}setVariant(e){this.setAttribute("variant",Object.values(Ho).includes(e)?e:at.VARIANT)}setOrientation(e){this.setAttribute("orientation",Object.values(ir).includes(e)?e:at.ORIENTATION)}ensureValidDirections(){let e=this.orientation===ir.HORIZONTAL?He.NEGATIVE:He.POSITIVE;Object.values(He).includes(this.buttonPosition)||(this.buttonPosition=e),Object.values(He).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===ir.HORIZONTAL,r=this.arrowDirection===He.POSITIVE;return e?r?nr.UP:nr.DOWN:r?nr.RIGHT:nr.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 i=r.some(a=>a.tagName===Bt.toUpperCase()),n=r.some(a=>a.tagName===qt.toUpperCase());i&&!n?this.setAttribute("data-type","mdc-text-divider"):!i&&n&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}render(){return u`
1395
+ `],rs=rl;var Ve=class extends E{constructor(){super();this.orientation=nt.ORIENTATION;this.variant=nt.VARIANT;this.arrowDirection=nt.ARROW_DIRECTION;this.buttonPosition=nt.BUTTON_DIRECTION;this.setAttribute("data-type","mdc-primary-divider")}setVariant(e){this.setAttribute("variant",Object.values(Fo).includes(e)?e:nt.VARIANT)}setOrientation(e){this.setAttribute("orientation",Object.values(rr).includes(e)?e:nt.ORIENTATION)}ensureValidDirections(){let e=this.orientation===rr.HORIZONTAL?Ue.NEGATIVE:Ue.POSITIVE;Object.values(Ue).includes(this.buttonPosition)||(this.buttonPosition=e),Object.values(Ue).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===rr.HORIZONTAL,r=this.arrowDirection===Ue.POSITIVE;return e?r?or.UP:or.DOWN:r?or.RIGHT:or.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 i=r.some(a=>a.tagName===Ht.toUpperCase()),n=r.some(a=>a.tagName===qt.toUpperCase());i&&!n?this.setAttribute("data-type","mdc-text-divider"):!i&&n&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}render(){return u`
1384
1396
  <div></div>
1385
1397
  <slot @slotchange=${this.inferDividerType}></slot>
1386
1398
  <div></div>
1387
- `}};Ve.styles=[...E.styles,...rs],c([d({type:String,reflect:!0})],Ve.prototype,"orientation",2),c([d({type:String,reflect:!0})],Ve.prototype,"variant",2),c([d({type:String,attribute:"arrow-direction",reflect:!0})],Ve.prototype,"arrowDirection",2),c([d({type:String,attribute:"button-position",reflect:!0})],Ve.prototype,"buttonPosition",2);var Vo=Ve;Vo.register(ts);var tl=Vo;var rl=[C,g`
1399
+ `}};Ve.styles=[...E.styles,...rs],c([d({type:String,reflect:!0})],Ve.prototype,"orientation",2),c([d({type:String,reflect:!0})],Ve.prototype,"variant",2),c([d({type:String,attribute:"arrow-direction",reflect:!0})],Ve.prototype,"arrowDirection",2),c([d({type:String,attribute:"button-position",reflect:!0})],Ve.prototype,"buttonPosition",2);var Bo=Ve;Bo.register(ts);var ol=Bo;var il=[C,g`
1388
1400
  :host {
1389
1401
  padding: unset;
1390
1402
  margin: unset;
1391
1403
  outline: none;
1392
1404
  border-radius: 0.25rem;
1393
1405
  }
1394
- `,...$()],os=rl;var sr=class extends wr(de($e)){constructor(){super();this.ariaLabel=null;this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role="button",this.type=he.TYPE}update(e){super.update(e),e.has("size")&&this.setSize(this.size)}setSize(e){this.setAttribute("size",Object.values(N).includes(e)?`${e}`:Et.SIZE.toString())}render(){return u`
1406
+ `,...$()],os=il;var ir=class extends wr(de(De)){constructor(){super();this.ariaLabel=null;this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role="button",this.type=pe.TYPE}update(e){super.update(e),e.has("size")&&this.setSize(this.size)}setSize(e){this.setAttribute("size",Object.values(L).includes(e)?`${e}`:yt.SIZE.toString())}render(){return u`
1395
1407
  <mdc-avatar
1396
1408
  slot="prefixIcon"
1397
1409
  ?is-typing="${this.isTyping}"
1398
- counter="${S(this.counter)}"
1399
- icon-name="${S(this.iconName)}"
1400
- initials="${S(this.initials)}"
1401
- presence="${S(this.presence)}"
1402
- size="${S(this.size)}"
1403
- src="${S(this.src)}"
1410
+ counter="${A(this.counter)}"
1411
+ icon-name="${A(this.iconName)}"
1412
+ initials="${A(this.initials)}"
1413
+ presence="${A(this.presence)}"
1414
+ size="${A(this.size)}"
1415
+ src="${A(this.src)}"
1404
1416
  ></mdc-avatar>
1405
- `}};sr.styles=[...os],c([d({type:String,attribute:"aria-label"})],sr.prototype,"ariaLabel",2);var Fo=sr;var is=y.constructTagName("avatarbutton");Fo.register(is);var ol=Fo;var U=[];for(let o=0;o<256;++o)U.push((o+256).toString(16).slice(1));function ns(o,t=0){return(U[o[t+0]]+U[o[t+1]]+U[o[t+2]]+U[o[t+3]]+"-"+U[o[t+4]]+U[o[t+5]]+"-"+U[o[t+6]]+U[o[t+7]]+"-"+U[o[t+8]]+U[o[t+9]]+"-"+U[o[t+10]]+U[o[t+11]]+U[o[t+12]]+U[o[t+13]]+U[o[t+14]]+U[o[t+15]]).toLowerCase()}var Bo,il=new Uint8Array(16);function Go(){if(!Bo){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Bo=crypto.getRandomValues.bind(crypto)}return Bo(il)}var nl=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Yo={randomUUID:nl};function sl(o,t,e){var i,n,s;if(Yo.randomUUID&&!t&&!o)return Yo.randomUUID();o=o||{};let r=(s=(n=o.random)!=null?n:(i=o.rng)==null?void 0:i.call(o))!=null?s:Go();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 a=0;a<16;++a)t[e+a]=r[a];return t}return ns(r)}var we=sl;var al=[g`
1417
+ `}};ir.styles=[...os],c([d({type:String,attribute:"aria-label"})],ir.prototype,"ariaLabel",2);var Go=ir;var is=y.constructTagName("avatarbutton");Go.register(is);var nl=Go;var sl=[g`
1406
1418
  :host{
1407
1419
  --mdc-input-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
1408
1420
  --mdc-input-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
@@ -1517,7 +1529,7 @@
1517
1529
  opacity: 0;
1518
1530
  pointer-events: none;
1519
1531
  }
1520
- `,...$(!0)],ss=al;var as=y.constructTagName("formfieldwrapper"),fe={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},V={VALIDATION:fe.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id"},lt={TAGNAME:M.SPAN,TYPE:z.BODY_MIDSIZE_REGULAR,HEADER_TYPE:z.BODY_MIDSIZE_BOLD};var ll=[C,g`
1532
+ `,...$(!0)],ns=sl;var ss=y.constructTagName("formfieldwrapper"),fe={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},H={VALIDATION:fe.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id"},st={TAGNAME:z.SPAN,TYPE:O.BODY_MIDSIZE_REGULAR,HEADER_TYPE:O.BODY_MIDSIZE_BOLD};var al=[C,g`
1521
1533
  :host {
1522
1534
  flex-direction: column;
1523
1535
  align-items: flex-start;
@@ -1566,22 +1578,22 @@
1566
1578
  :host([help-text-type='priority']) .mdc-help-text {
1567
1579
  color: var(--mds-color-theme-text-accent-normal);
1568
1580
  }
1569
- `],ls=ll;var cs=o=>({[fe.ERROR]:"error-legacy-badge-filled",[fe.WARNING]:"warning-badge-filled",[fe.SUCCESS]:"check-circle-badge-filled",[fe.PRIORITY]:"priority-badge-filled",[fe.DEFAULT]:""})[o]||"";var Ce=class extends _t(E){constructor(){super(...arguments);this.id="";this.helpTextType=V.VALIDATION;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?u`<label for="${this.id}" class="mdc-label" part="label">${this.label}</label>`:u` <mdc-text
1570
- id="${V.HEADING_ID}"
1571
- tagname="${lt.TAGNAME}"
1572
- type="${lt.HEADER_TYPE}"
1581
+ `],as=al;var ls=o=>({[fe.ERROR]:"error-legacy-badge-filled",[fe.WARNING]:"warning-badge-filled",[fe.SUCCESS]:"check-circle-badge-filled",[fe.PRIORITY]:"priority-badge-filled",[fe.DEFAULT]:""})[o]||"";var Ie=class extends At(E){constructor(){super(...arguments);this.id="";this.helpTextType=H.VALIDATION;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?u`<label for="${this.id}" class="mdc-label" part="label">${this.label}</label>`:u` <mdc-text
1582
+ id="${H.HEADING_ID}"
1583
+ tagname="${st.TAGNAME}"
1584
+ type="${st.HEADER_TYPE}"
1573
1585
  part="label"
1574
1586
  >${this.label}</mdc-text
1575
1587
  >`:x}renderRequiredLabel(){return this.requiredLabel?u`
1576
- <mdc-text part="required-label" tagname=${lt.TAGNAME} type=${lt.TYPE}>
1588
+ <mdc-text part="required-label" tagname=${st.TAGNAME} type=${st.TYPE}>
1577
1589
  (${this.requiredLabel})
1578
1590
  </mdc-text>
1579
- `:x}renderHelpTextIcon(){if(!this.helpText)return x;let e=cs(this.helpTextType||V.VALIDATION);return e&&!this.disabled?u`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${e}></mdc-icon>`:x}renderHelpText(){return this.helpText?u`
1591
+ `:x}renderHelpTextIcon(){if(!this.helpText)return x;let e=ls(this.helpTextType||H.VALIDATION);return e&&!this.disabled?u`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${e}></mdc-icon>`:x}renderHelpText(){return this.helpText?u`
1580
1592
  <mdc-text
1581
- id="${V.HELPER_TEXT_ID}"
1593
+ id="${H.HELPER_TEXT_ID}"
1582
1594
  part="help-text"
1583
- tagname=${lt.TAGNAME}
1584
- type=${lt.TYPE}
1595
+ tagname=${st.TAGNAME}
1596
+ type=${st.TYPE}
1585
1597
  >
1586
1598
  ${this.helpText}
1587
1599
  </mdc-text>
@@ -1592,30 +1604,30 @@
1592
1604
  </div>`}renderHelperText(){return this.helpText?u`<div class="mdc-help-text" part="mdc-help-text">
1593
1605
  <slot name="help-icon">${this.renderHelpTextIcon()}</slot>
1594
1606
  <slot name="help-text">${this.renderHelpText()}</slot>
1595
- </div>`:x}};Ce.styles=[...E.styles,...ls],c([d({reflect:!0,type:String})],Ce.prototype,"label",2),c([d({type:String,reflect:!0,attribute:"required-label"})],Ce.prototype,"requiredLabel",2),c([d({type:String})],Ce.prototype,"id",2),c([d({reflect:!0,attribute:"help-text-type"})],Ce.prototype,"helpTextType",2),c([d({type:String,reflect:!0,attribute:"help-text"})],Ce.prototype,"helpText",2);var ee=Ce;ee.register(as);var Nt=ee;var ge=o=>{class t extends o{constructor(){super(...arguments);this.name=""}}return c([d({reflect:!0,type:String})],t.prototype,"name",2),t};var ds=y.constructTagName("input"),ms={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},ps={MAX_LENGTH:10,HELPERTEXT:"Prefix text should not exceed 10 characters",VALIDATION:fe.ERROR},Fe={VALIDATION:fe.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Qe.TERTIARY,CLEAR_BUTTON_SIZE:Se[20],PREFIX_TEXT_TYPE:z.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:M.SPAN};var Be=o=>{class t extends o{constructor(){super(...arguments);this.value=""}}return c([d({reflect:!0,type:String})],t.prototype,"value",2),t};var O=class extends q(Be(ge(Nt))){constructor(){super();this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=ms.OFF;this.autocomplete="off";this.autofocus=!1;this.clearAriaLabel="";this.internals=this.attachInternals(),this.id=`mdc-input-${we()}`}checkValidity(){return this.setValidityFromInput(),this.internals.checkValidity()}reportValidity(){return this.setValidityFromInput(),this.internals.reportValidity()}get form(){return this.internals.form}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.inputElement.checkValidity(),this.setValidityFromInput(),this.internals.setFormValue(this.inputElement.value))}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&this.handleValueChange()}handleValueChange(){this.internals.setFormValue(this.value),this.updateComplete.then(()=>{this.setValidityFromInput()}).catch(e=>{this.onerror&&this.onerror(e)})}attributeChangedCallback(e,r,i){super.attributeChangedCallback(e,r,i),["maxlength","minlength","pattern","required"].includes(e)&&this.updateComplete.then(()=>{this.setValidityFromInput()}).catch(s=>{this.onerror&&this.onerror(s)})}setValidityFromInput(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value)}onInput(){this.updateValue(),this.setValidityFromInput()}onChange(e){this.updateValue(),this.setValidityFromInput();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.internals.form)==null||r.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?u`
1607
+ </div>`:x}};Ie.styles=[...E.styles,...as],c([d({reflect:!0,type:String})],Ie.prototype,"label",2),c([d({type:String,reflect:!0,attribute:"required-label"})],Ie.prototype,"requiredLabel",2),c([d({type:String})],Ie.prototype,"id",2),c([d({reflect:!0,attribute:"help-text-type"})],Ie.prototype,"helpTextType",2),c([d({type:String,reflect:!0,attribute:"help-text"})],Ie.prototype,"helpText",2);var ee=Ie;ee.register(ss);var Rt=ee;var cs=y.constructTagName("input"),ds={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},ms={MAX_LENGTH:10,HELPERTEXT:"Prefix text should not exceed 10 characters",VALIDATION:fe.ERROR},He={VALIDATION:fe.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:je.TERTIARY,CLEAR_BUTTON_SIZE:Se[20],PREFIX_TEXT_TYPE:O.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:z.SPAN};var M=class extends he(W(Rt)){constructor(){super(...arguments);this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=ds.OFF;this.autocomplete="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.validationMessage&&this.value===""?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()}attributeChangedCallback(e,r,i){super.attributeChangedCallback(e,r,i),["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?u`
1596
1608
  <mdc-icon
1597
1609
  class="leading-icon"
1598
1610
  part="leading-icon"
1599
1611
  name=${this.leadingIcon}
1600
- size="${Fe.ICON_SIZE_VALUE}"
1601
- length-unit="${Fe.ICON_SIZE_UNIT}">
1612
+ size="${He.ICON_SIZE_VALUE}"
1613
+ length-unit="${He.ICON_SIZE_UNIT}">
1602
1614
  </mdc-icon>
1603
1615
  `:x}renderPrefixText(){return this.prefixText?u`
1604
1616
  <mdc-text
1605
1617
  class="prefix-text"
1606
- tagname="${Fe.PREFIX_TEXT_TAG}"
1607
- type="${Fe.PREFIX_TEXT_TYPE}"
1618
+ tagname="${He.PREFIX_TEXT_TAG}"
1619
+ type="${He.PREFIX_TEXT_TYPE}"
1608
1620
  aria-hidden="true"
1609
1621
  >
1610
- ${this.prefixText.slice(0,ps.MAX_LENGTH)}
1622
+ ${this.prefixText.slice(0,ms.MAX_LENGTH)}
1611
1623
  </mdc-text>
1612
1624
  `:x}clearInputText(){var e;this.value="",(e=this.inputElement)==null||e.focus()}renderTrailingButton(){return this.trailingButton?u`
1613
1625
  <mdc-button
1614
1626
  part='trailing-button'
1615
1627
  class='${this.value?"":"hidden"}'
1616
- prefix-icon='${Fe.CLEAR_BUTTON_ICON}'
1617
- variant='${Fe.CLEAR_BUTTON_VARIANT}'
1618
- size="${Fe.CLEAR_BUTTON_SIZE}"
1628
+ prefix-icon='${He.CLEAR_BUTTON_ICON}'
1629
+ variant='${He.CLEAR_BUTTON_VARIANT}'
1630
+ size="${He.CLEAR_BUTTON_SIZE}"
1619
1631
  aria-label="${this.clearAriaLabel}"
1620
1632
  @click=${this.clearInputText}
1621
1633
  ?disabled=${this.disabled||this.readonly||!this.value}
@@ -1638,17 +1650,17 @@
1638
1650
  ?readonly="${this.readonly}"
1639
1651
  ?required="${!!this.requiredLabel}"
1640
1652
  type="text"
1641
- aria-describedby="${V.HELPER_TEXT_ID}"
1642
- placeholder=${S(this.placeholder)}
1643
- minlength=${S(this.minlength)}
1644
- maxlength=${S(this.maxlength)}
1653
+ aria-describedby="${A(this.helpText?H.HELPER_TEXT_ID:"")}"
1654
+ placeholder=${A(this.placeholder)}
1655
+ minlength=${A(this.minlength)}
1656
+ maxlength=${A(this.maxlength)}
1645
1657
  autocapitalize=${this.autocapitalize}
1646
1658
  autocomplete=${this.autocomplete}
1647
1659
  ?autofocus="${this.autofocus}"
1648
- dirname=${S(this.dirname)}
1649
- pattern=${S(this.pattern)}
1650
- list=${S(this.list)}
1651
- size=${S(this.size)}
1660
+ dirname=${A(this.dirname)}
1661
+ pattern=${A(this.pattern)}
1662
+ list=${A(this.list)}
1663
+ size=${A(this.size)}
1652
1664
  @input=${this.onInput}
1653
1665
  @change=${this.onChange}
1654
1666
  @keydown=${this.handleKeyDown}
@@ -1658,7 +1670,7 @@
1658
1670
  <slot name="trailing-button">${this.renderTrailingButton()}</slot>
1659
1671
  </div>
1660
1672
  ${this.helpText?this.renderHelperText():x}
1661
- `}};O.formAssociated=!0,O.styles=[...Nt.styles,...ss],c([d({type:String})],O.prototype,"placeholder",2),c([d({type:Boolean})],O.prototype,"readonly",2),c([d({type:String,attribute:"prefix-text"})],O.prototype,"prefixText",2),c([d({type:String,attribute:"leading-icon"})],O.prototype,"leadingIcon",2),c([d({type:Boolean,attribute:"trailing-button"})],O.prototype,"trailingButton",2),c([d({type:Number})],O.prototype,"maxlength",2),c([d({type:Number})],O.prototype,"minlength",2),c([d({type:String})],O.prototype,"autocapitalize",2),c([d({type:String})],O.prototype,"autocomplete",2),c([d({type:Boolean})],O.prototype,"autofocus",2),c([d({type:String})],O.prototype,"dirname",2),c([d({type:String})],O.prototype,"pattern",2),c([d({type:String})],O.prototype,"list",2),c([d({type:Number})],O.prototype,"size",2),c([d({type:String,attribute:"clear-aria-label"})],O.prototype,"clearAriaLabel",2),c([yi("input")],O.prototype,"inputElement",2);var Wo=O;Wo.register(ds);var cl=Wo;var hs=y.constructTagName("link"),Wr={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},qr={LARGE:1,MIDSIZE:.875,SMALL:.75},Xr={INLINE:!1,INVERTED:!1,LINK_SIZE:Wr.LARGE};var dl=[C,g`
1673
+ `}};M.styles=[...Rt.styles,...ns],c([d({type:String})],M.prototype,"placeholder",2),c([d({type:Boolean})],M.prototype,"readonly",2),c([d({type:String,attribute:"prefix-text"})],M.prototype,"prefixText",2),c([d({type:String,attribute:"leading-icon"})],M.prototype,"leadingIcon",2),c([d({type:Boolean,attribute:"trailing-button"})],M.prototype,"trailingButton",2),c([d({type:Number})],M.prototype,"maxlength",2),c([d({type:Number})],M.prototype,"minlength",2),c([d({type:String})],M.prototype,"autocapitalize",2),c([d({type:String})],M.prototype,"autocomplete",2),c([d({type:Boolean})],M.prototype,"autofocus",2),c([d({type:String})],M.prototype,"dirname",2),c([d({type:String})],M.prototype,"pattern",2),c([d({type:String})],M.prototype,"list",2),c([d({type:Number})],M.prototype,"size",2),c([d({type:String,attribute:"clear-aria-label"})],M.prototype,"clearAriaLabel",2);var qo=M;qo.register(cs);var ll=qo;var hs=y.constructTagName("link"),qr={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Yr={LARGE:1,MIDSIZE:.875,SMALL:.75},Wr={INLINE:!1,INVERTED:!1,LINK_SIZE:qr.LARGE};var cl=[C,g`
1662
1674
 
1663
1675
  :host {
1664
1676
 
@@ -1773,7 +1785,7 @@
1773
1785
  :host(:active) {
1774
1786
  box-shadow: none;
1775
1787
  }
1776
- `],us=dl;var ct=class extends _t(de(E)){constructor(){super(...arguments);this.inline=Xr.INLINE;this.inverted=Xr.INVERTED;this.size=Xr.LINK_SIZE;this.prevTabindex=null}getIconSize(){switch(this.size){case Wr.SMALL:return qr.SMALL;case Wr.MIDSIZE:return qr.MIDSIZE;default:return qr.LARGE}}setDisabled(e){e?(this.prevTabindex=this.hasAttribute("tabindex")?this.tabIndex:null,this.tabIndex=-1,this.setAttribute("aria-disabled","true")):this.prevTabindex===null?(this.removeAttribute("tabindex"),this.removeAttribute("aria-disabled")):(this.tabIndex=this.prevTabindex,this.removeAttribute("aria-disabled"))}updateTrailingIcon(){var i,n;let e=(n=(i=this.shadowRoot)==null?void 0:i.querySelector("slot"))==null?void 0:n.assignedElements({flatten:!0}).find(s=>s.tagName==="A"),r=this.getIconSize();if(this.iconName&&e){let s=document.createElement("mdc-icon");s.setAttribute("name",this.iconName),s.setAttribute("size",`${r}`),s.setAttribute("length-unit","rem"),e.appendChild(s)}}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this.disabled)}render(){return u`<slot @slotchange=${this.updateTrailingIcon}></slot>`}};ct.styles=[...E.styles,...us],c([d({type:Boolean,reflect:!0})],ct.prototype,"inline",2),c([d({type:Boolean,reflect:!0})],ct.prototype,"inverted",2),c([d({type:String,reflect:!0})],ct.prototype,"size",2);var qo=ct;qo.register(hs);var ml=qo;var pl=[C,g`
1788
+ `],ps=cl;var at=class extends At(de(E)){constructor(){super(...arguments);this.inline=Wr.INLINE;this.inverted=Wr.INVERTED;this.size=Wr.LINK_SIZE;this.prevTabindex=null}getIconSize(){switch(this.size){case qr.SMALL:return Yr.SMALL;case qr.MIDSIZE:return Yr.MIDSIZE;default:return Yr.LARGE}}setDisabled(e){e?(this.prevTabindex=this.hasAttribute("tabindex")?this.tabIndex:null,this.tabIndex=-1,this.setAttribute("aria-disabled","true")):this.prevTabindex===null?(this.removeAttribute("tabindex"),this.removeAttribute("aria-disabled")):(this.tabIndex=this.prevTabindex,this.removeAttribute("aria-disabled"))}updateTrailingIcon(){var i,n;let e=(n=(i=this.shadowRoot)==null?void 0:i.querySelector("slot"))==null?void 0:n.assignedElements({flatten:!0}).find(s=>s.tagName==="A"),r=this.getIconSize();if(this.iconName&&e){let s=document.createElement("mdc-icon");s.setAttribute("name",this.iconName),s.setAttribute("size",`${r}`),s.setAttribute("length-unit","rem"),e.appendChild(s)}}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this.disabled)}render(){return u`<slot @slotchange=${this.updateTrailingIcon}></slot>`}};at.styles=[...E.styles,...ps],c([d({type:Boolean,reflect:!0})],at.prototype,"inline",2),c([d({type:Boolean,reflect:!0})],at.prototype,"inverted",2),c([d({type:String,reflect:!0})],at.prototype,"size",2);var Yo=at;Yo.register(hs);var dl=Yo;var ml=[C,g`
1777
1789
  :host {
1778
1790
  --mdc-toggle-width: 3rem;
1779
1791
  --mdc-toggle-height: 1.5rem;
@@ -1917,34 +1929,38 @@
1917
1929
  border: var(--mdc-toggle-border);
1918
1930
  }
1919
1931
  }
1920
- `,...$(!0)],fs=pl;var gs=y.constructTagName("toggle"),Xo={DEFAULT:"default",COMPACT:"compact"},Zo={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},vs={compact:.75,default:1.25},jo={SIZE:Xo.DEFAULT};var dt=class extends ge(Be(q(Nt))){constructor(){super();this.checked=!1;this.size=jo.SIZE;this.internals=this.attachInternals(),this.helpTextType=void 0,this.id=`mdc-input-${we()}`}get form(){return this.internals.form}setFormValue(){let e=null;this.checked&&(e=this.value?this.value:"isActive"),this.internals.setFormValue(e)}toggleState(){this.disabled||(this.checked=!this.checked)}handleChange(e){this.toggleState();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}setToggleSize(e){this.setAttribute("size",Object.values(Xo).includes(e)?e:jo.SIZE)}update(e){super.update(e),e.has("checked")&&this.setFormValue(),e.has("size")&&this.setToggleSize(this.size)}render(){var e;return u`
1932
+ `,...$(!0)],us=ml;var fs=y.constructTagName("toggle"),Wo={DEFAULT:"default",COMPACT:"compact"},Xo={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},gs={compact:.75,default:1.25},Zo={SIZE:Wo.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var lt=class extends he(W(Rt)){constructor(){super();this.checked=!1;this.size=Zo.SIZE;this.autofocus=!1;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(Wo).includes(e)?e:Zo.SIZE)}update(e){super.update(e),e.has("checked")&&this.setFormValue(),e.has("size")&&this.setToggleSize(this.size)}render(){var e;return u`
1921
1933
  <div class="mdc-toggle__container mdc-focus-ring">
1922
1934
  <input
1923
1935
  id="${this.id}"
1924
1936
  type="checkbox"
1925
1937
  class="mdc-toggle__input"
1926
1938
  role="switch"
1927
- name="${S(this.name)}"
1928
- value="${S(this.value)}"
1939
+ ?autofocus="${this.autofocus}"
1940
+ ?required="${!!this.requiredLabel}"
1941
+ name="${A(this.name)}"
1942
+ value="${A(this.value)}"
1929
1943
  .checked="${this.checked}"
1944
+ aria-checked="${this.checked}"
1930
1945
  .disabled="${this.disabled}"
1931
- aria-describedby="${V.HELPER_TEXT_ID}"
1946
+ aria-describedby="${A(this.helpText?H.HELPER_TEXT_ID:"")}"
1932
1947
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
1933
1948
  tabindex="${this.disabled?-1:0}"
1934
1949
  @change="${this.handleChange}"
1950
+ @keydown="${this.handleKeyDown}"
1935
1951
  />
1936
1952
  <div class="mdc-toggle__slider">
1937
1953
  <mdc-icon
1938
- name="${this.checked?Zo.CHECKED:Zo.UNCHECKED}"
1954
+ name="${this.checked?Xo.CHECKED:Xo.UNCHECKED}"
1939
1955
  class="mdc-toggle__icon"
1940
1956
  length-unit="rem"
1941
- size="${vs[this.size]}"
1957
+ size="${gs[this.size]}"
1942
1958
  ></mdc-icon>
1943
1959
  </div>
1944
1960
  </div>
1945
1961
  ${this.renderLabel()}
1946
1962
  ${this.renderHelperText()}
1947
- `}};dt.formAssociated=!0,dt.styles=[...Nt.styles,...fs],c([d({type:Boolean,reflect:!0})],dt.prototype,"checked",2),c([d({type:String,reflect:!0})],dt.prototype,"size",2);var Ko=dt;Ko.register(gs);var hl=Ko;var bs=y.constructTagName("checkbox"),Qo={CHECKED:"check-bold",INDETERMINATE:"minus-bold"};var ul=[g`
1963
+ `}};lt.styles=[...Rt.styles,...us],c([d({type:Boolean,reflect:!0})],lt.prototype,"checked",2),c([d({type:String,reflect:!0})],lt.prototype,"size",2),c([d({type:Boolean,reflect:!0})],lt.prototype,"autofocus",2);var jo=lt;jo.register(fs);var hl=jo;var vs=y.constructTagName("checkbox"),Ko={CHECKED:"check-bold",INDETERMINATE:"minus-bold"};var pl=[g`
1948
1964
  :host {
1949
1965
  --mdc-checkbox-background-color-hover: var(--mds-color-theme-control-inactive-hover);
1950
1966
  --mdc-checkbox-border-color: var(--mds-color-theme-outline-button-normal);
@@ -2046,10 +2062,10 @@
2046
2062
  border: 0.0625rem solid var(--mdc-checkbox-border-color);
2047
2063
  }
2048
2064
  }
2049
- `,...$(!0)],ys=ul;var mt=class extends ge(Be(q(ee))){constructor(){super();this.checked=!1;this.indeterminate=!1;this.internals=this.attachInternals(),this.helpTextType=void 0,this.id=`mdc-input-${we()}`}get form(){return this.internals.form}setFormValue(){let e=null;this.checked&&(e=this.value?this.value:"on"),this.internals.setFormValue(e)}toggleState(){this.disabled||(this.checked=!this.checked,this.indeterminate=!1)}handleChange(e){this.toggleState();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}update(e){super.update(e),e.has("checked")&&this.setFormValue()}render(){var i;let e=this.checked||this.indeterminate?u`
2065
+ `,...$(!0)],bs=pl;var ct=class extends he(W(ee)){constructor(){super();this.checked=!1;this.indeterminate=!1;this.autofocus=!1;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 i;let e=this.checked||this.indeterminate?u`
2050
2066
  <mdc-icon
2051
2067
  class="icon"
2052
- name="${this.indeterminate?Qo.INDETERMINATE:Qo.CHECKED}"
2068
+ name="${this.indeterminate?Ko.INDETERMINATE:Ko.CHECKED}"
2053
2069
  size="1"
2054
2070
  length-unit="rem"
2055
2071
  ></mdc-icon>
@@ -2059,13 +2075,17 @@
2059
2075
  id="${this.id}"
2060
2076
  type="checkbox"
2061
2077
  class="input"
2062
- name="${S(this.name)}"
2063
- value="${S(this.value)}"
2078
+ ?autofocus="${this.autofocus}"
2079
+ name="${A(this.name)}"
2080
+ value="${A(this.value)}"
2081
+ ?required="${!!this.requiredLabel}"
2064
2082
  .checked="${this.checked}"
2083
+ aria-checked="${this.indeterminate?"mixed":this.checked}"
2065
2084
  .indeterminate="${this.indeterminate}"
2066
2085
  .disabled="${this.disabled}"
2067
2086
  aria-label="${(i=this.dataAriaLabel)!=null?i:""}"
2068
- aria-describedby="${V.HELPER_TEXT_ID}"
2087
+ tabindex="${this.disabled?-1:0}"
2088
+ aria-describedby="${A(this.helpText?H.HELPER_TEXT_ID:"")}"
2069
2089
  @change=${this.handleChange}
2070
2090
  @keydown=${this.handleKeyDown}
2071
2091
  />
@@ -2075,7 +2095,7 @@
2075
2095
  ${this.renderLabel()}
2076
2096
  ${r}
2077
2097
  </div>
2078
- `}};mt.formAssociated=!0,mt.styles=[...ee.styles,...ys],c([d({type:Boolean,reflect:!0})],mt.prototype,"checked",2),c([d({type:Boolean,reflect:!0})],mt.prototype,"indeterminate",2);var Jo=mt;Jo.register(bs);var fl=Jo;var gl=[C,g`
2098
+ `}};ct.styles=[...ee.styles,...bs],c([d({type:Boolean,reflect:!0})],ct.prototype,"checked",2),c([d({type:Boolean,reflect:!0})],ct.prototype,"indeterminate",2),c([d({type:Boolean,reflect:!0})],ct.prototype,"autofocus",2);var Qo=ct;Qo.register(vs);var ul=Qo;var fl=[C,g`
2079
2099
  :host{
2080
2100
  --mdc-radio-inner-circle-size: 0.375rem;
2081
2101
  --mdc-radio-text-disabled-color: var(--mds-color-theme-text-primary-disabled);
@@ -2233,15 +2253,21 @@
2233
2253
  justify-content: center;
2234
2254
  gap: 0.25rem;
2235
2255
  }
2236
- `,...$(!0)],xs=gl;var pt=class extends ge(Be(q(ee))){constructor(){super();this.checked=!1;this.readonly=!1;this.internals=this.attachInternals(),this.id=`mdc-input-${we()}`}get form(){return this.internals.form}setFormValue(){this.internals.setFormValue(this.checked?this.value:null)}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))}handleChange(e){var n;if(this.disabled||this.readonly)return;this.getAllRadiosWithinSameGroup().forEach(s=>{var l;let a=(l=s.shadowRoot)==null?void 0:l.querySelector("input");a&&(s.checked=!1,a.checked=!1)}),this.checked=!0;let i=(n=this.shadowRoot)==null?void 0:n.querySelector("input");i&&(i.checked=!0),this.updateTabIndex(),this.dispatchChangeEvent(e)}updateRadio(e,r,i){var n,s;(s=(n=e[r].shadowRoot)==null?void 0:n.querySelector("input"))==null||s.focus(),e[r].handleChange(i)}handleKeyDown(e){if(this.disabled)return;let i=this.getAllRadiosWithinSameGroup().filter(s=>!s.disabled),n=i.indexOf(this);if(["ArrowDown","ArrowRight"].includes(e.key)){let s=(n+1)%i.length;this.updateRadio(i,s,e)}else if(["ArrowUp","ArrowLeft"].includes(e.key)){let s=(n-1+i.length)%i.length;this.updateRadio(i,s,e)}this.updateTabIndex()}updateTabIndex(){let e=this.getAllRadiosWithinSameGroup(),r=e.find(n=>n.checked),i=e.find(n=>!n.disabled);e.forEach(n=>{var a;let s=(a=n.shadowRoot)==null?void 0:a.querySelector("input");s&&(s.tabIndex=-1,(n===r||!r&&n===i)&&(s.tabIndex=0))})}update(e){super.update(e),e.has("checked")&&this.setFormValue()}render(){var r;let e=this.helpText?this.renderHelperText():x;return u`
2256
+ :host::part(required-label){
2257
+ display: none;
2258
+ }
2259
+
2260
+ `,...$(!0)],ys=fl;var dt=class extends he(W(ee)){constructor(){super();this.checked=!1;this.readonly=!1;this.autofocus=!1;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(i=>{i.setComponentValidity(r)})}).catch(i=>{this.onerror&&this.onerror(i)})}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 i=r.some(a=>a.requiredLabel),n=!!r.find(a=>a.checked),s=i&&!n;this.setGroupValidity(r,!s)}this.internals.setFormValue(e)}handleChange(e){var n;if(this.disabled||this.readonly)return;this.getAllRadiosWithinSameGroup().forEach(s=>{var l;let a=(l=s.shadowRoot)==null?void 0:l.querySelector("input");a&&(s.checked=!1,a.checked=!1)}),this.checked=!0;let i=(n=this.shadowRoot)==null?void 0:n.querySelector("input");i&&(i.checked=!0),this.dispatchChangeEvent(e)}updateRadio(e,r,i){var n,s;(s=(n=e[r].shadowRoot)==null?void 0:n.querySelector("input"))==null||s.focus(),e[r].handleChange(i)}handleKeyDown(e){var s;if(this.disabled)return;let i=this.getAllRadiosWithinSameGroup().filter(a=>!a.disabled),n=i.indexOf(this);if(["ArrowDown","ArrowRight"].includes(e.key)){let a=(n+1)%i.length;this.updateRadio(i,a,e)}else if(["ArrowUp","ArrowLeft"].includes(e.key)){let a=(n-1+i.length)%i.length;this.updateRadio(i,a,e)}else e.key===" "&&this.updateRadio(i,n,e);this.updateTabIndex(),e.key==="Enter"&&((s=this.form)==null||s.requestSubmit())}updateTabIndex(){let e=this.getAllRadiosWithinSameGroup(),r=e.find(n=>n.checked),i=e.find(n=>!n.disabled);e.forEach(n=>{var a;let s=(a=n.shadowRoot)==null?void 0:a.querySelector("input");s&&(s.tabIndex=-1,(n===r||!r&&n===i)&&(s.tabIndex=0))})}update(e){super.update(e),e.has("checked")&&this.setActualFormValue()}render(){var r;let e=this.helpText?this.renderHelperText():x;return u`
2237
2261
  <div class="mdc-radio__container">
2238
2262
  <div class="mdc-radio__icon-container mdc-focus-ring">
2239
2263
  <input
2240
2264
  id="${this.id}"
2241
2265
  type="radio"
2242
2266
  role="radio"
2243
- name="${S(this.name)}"
2244
- value="${S(this.value)}"
2267
+ ?autofocus="${this.autofocus}"
2268
+ name="${A(this.name)}"
2269
+ value="${A(this.value)}"
2270
+ ?required="${!!this.requiredLabel}"
2245
2271
  @change=${this.handleChange}
2246
2272
  @keydown=${this.handleKeyDown}
2247
2273
  ?checked=${this.checked}
@@ -2249,7 +2275,7 @@
2249
2275
  ?disabled=${this.disabled}
2250
2276
  class="mdc-radio__input"
2251
2277
  aria-checked="${this.checked}"
2252
- aria-describedby="${S(this.helpText?V.HELPER_TEXT_ID:"")}"
2278
+ aria-describedby="${A(this.helpText?H.HELPER_TEXT_ID:"")}"
2253
2279
  aria-label="${(r=this.dataAriaLabel)!=null?r:""}"
2254
2280
  />
2255
2281
  <span class="mdc-radio__icon"></span>
@@ -2259,10 +2285,10 @@
2259
2285
  ${e}
2260
2286
  </div>
2261
2287
  </div>
2262
- `}};pt.formAssociated=!0,pt.styles=[...ee.styles,...xs],c([d({type:Boolean,reflect:!0})],pt.prototype,"checked",2),c([d({type:Boolean,reflect:!0})],pt.prototype,"readonly",2);var ei=pt;var Zr=y.constructTagName("radio");ei.register(Zr);var vl=ei;function ht(o,t,e){var n;let r=(n=e.initialDeps)!=null?n:[],i;return()=>{var s,a,l,m;let p;e.key&&((s=e.debug)!=null&&s.call(e))&&(p=Date.now());let h=o();if(!(h.length!==r.length||h.some((b,T)=>r[T]!==b)))return i;r=h;let f;if(e.key&&((a=e.debug)!=null&&a.call(e))&&(f=Date.now()),i=t(...h),e.key&&((l=e.debug)!=null&&l.call(e))){let b=Math.round((Date.now()-p)*100)/100,T=Math.round((Date.now()-f)*100)/100,_=T/16,A=(I,w)=>{for(I=String(I);I.length<w;)I=" "+I;return I};console.info(`%c\u23F1 ${A(T,5)} /${A(b,5)} ms`,`
2288
+ `}};dt.styles=[...ee.styles,...ys],c([d({type:Boolean,reflect:!0})],dt.prototype,"checked",2),c([d({type:Boolean,reflect:!0})],dt.prototype,"readonly",2),c([d({type:Boolean,reflect:!0})],dt.prototype,"autofocus",2);var Jo=dt;var Xr=y.constructTagName("radio");Jo.register(Xr);var gl=Jo;function mt(o,t,e){var n;let r=(n=e.initialDeps)!=null?n:[],i;return()=>{var s,a,l,m;let h;e.key&&((s=e.debug)!=null&&s.call(e))&&(h=Date.now());let p=o();if(!(p.length!==r.length||p.some((b,T)=>r[T]!==b)))return i;r=p;let f;if(e.key&&((a=e.debug)!=null&&a.call(e))&&(f=Date.now()),i=t(...p),e.key&&((l=e.debug)!=null&&l.call(e))){let b=Math.round((Date.now()-h)*100)/100,T=Math.round((Date.now()-f)*100)/100,_=T/16,S=(w,I)=>{for(w=String(w);w.length<I;)w=" "+w;return w};console.info(`%c\u23F1 ${S(T,5)} /${S(b,5)} ms`,`
2263
2289
  font-size: .6rem;
2264
2290
  font-weight: bold;
2265
- color: hsl(${Math.max(0,Math.min(120-120*_,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(m=e==null?void 0:e.onChange)==null||m.call(e,i),i}}function jr(o,t){if(o===void 0)throw new Error(`Unexpected undefined${t?`: ${t}`:""}`);return o}var Es=(o,t)=>Math.abs(o-t)<1,Ts=(o,t,e)=>{let r;return function(...i){o.clearTimeout(r),r=o.setTimeout(()=>t.apply(this,i),e)}};var bl=o=>o,yl=o=>{let t=Math.max(o.startIndex-o.overscan,0),e=Math.min(o.endIndex+o.overscan,o.count-1),r=[];for(let i=t;i<=e;i++)r.push(i);return r},Ss=(o,t)=>{let e=o.scrollElement;if(!e)return;let r=o.targetWindow;if(!r)return;let i=s=>{let{width:a,height:l}=s;t({width:Math.round(a),height:Math.round(l)})};if(i(e.getBoundingClientRect()),!r.ResizeObserver)return()=>{};let n=new r.ResizeObserver(s=>{let a=s[0];if(a!=null&&a.borderBoxSize){let l=a.borderBoxSize[0];if(l){i({width:l.inlineSize,height:l.blockSize});return}}i(e.getBoundingClientRect())});return n.observe(e,{box:"border-box"}),()=>{n.unobserve(e)}},As={passive:!0};var xl=typeof window>"u"?!0:"onscrollend"in window,_s=(o,t)=>{let e=o.scrollElement;if(!e)return;let r=o.targetWindow;if(!r)return;let i=0,n=o.options.useScrollendEvent&&xl?()=>{}:Ts(r,()=>{t(i,!1)},o.options.isScrollingResetDelay),s=m=>()=>{let{horizontal:p,isRtl:h}=o.options;i=p?e.scrollLeft*(h&&-1||1):e.scrollTop,n(),t(i,m)},a=s(!0),l=s(!1);return l(),e.addEventListener("scroll",a,As),e.addEventListener("scrollend",l,As),()=>{e.removeEventListener("scroll",a),e.removeEventListener("scrollend",l)}};var El=(o,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(o.getBoundingClientRect()[e.options.horizontal?"width":"height"])};var Is=(o,{adjustments:t=0,behavior:e},r)=>{var i,n;let s=o+t;(n=(i=r.scrollElement)==null?void 0:i.scrollTo)==null||n.call(i,{[r.options.horizontal?"left":"top"]:s,behavior:e})},Kr=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(i=>{i.forEach(n=>{this._measureElement(n.target,n)})}));return{disconnect:()=>{var i;(i=r())==null||i.disconnect(),e=null},observe:i=>{var n;return(n=r())==null?void 0:n.observe(i,{box:"border-box"})},unobserve:i=>{var n;return(n=r())==null?void 0:n.unobserve(i)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([r,i])=>{typeof i>"u"&&delete e[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:bl,rangeExtractor:yl,onChange:()=>{},measureElement:El,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,i;(i=(r=this.options).onChange)==null||i.call(r,this,e)},this.maybeNotify=ht(()=>(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 i;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=(i=(e=this.scrollElement)==null?void 0:e.window)!=null?i:null,this.elementsCache.forEach(n=>{this.observer.observe(n)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,n=>{this.scrollRect=n,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(n,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<n?"forward":"backward":null,this.scrollOffset=n,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 i=new Map,n=new Map;for(let s=r-1;s>=0;s--){let a=e[s];if(i.has(a.lane))continue;let l=n.get(a.lane);if(l==null||a.end>l.end?n.set(a.lane,a):a.end<l.end&&i.set(a.lane,!0),i.size===this.options.lanes)break}return n.size===this.options.lanes?Array.from(n.values()).sort((s,a)=>s.end===a.end?s.index-a.index:s.end-a.end)[0]:void 0},this.getMeasurementOptions=ht(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,r,i,n,s)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:r,scrollMargin:i,getItemKey:n,enabled:s}),{key:!1}),this.getMeasurements=ht(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:r,scrollMargin:i,getItemKey:n,enabled:s},a)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(p=>{this.itemSizeCache.set(p.key,p.size)}));let l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let m=this.measurementsCache.slice(0,l);for(let p=l;p<e;p++){let h=n(p),v=this.options.lanes===1?m[p-1]:this.getFurthestMeasurement(m,p),f=v?v.end+this.options.gap:r+i,b=a.get(h),T=typeof b=="number"?b:this.options.estimateSize(p),_=f+T,A=v?v.lane:p%this.options.lanes;m[p]={index:p,start:f,size:T,end:_,key:h,lane:A}}return this.measurementsCache=m,m},{key:!1,debug:()=>this.options.debug}),this.calculateRange=ht(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,r,i)=>this.range=e.length>0&&r>0?Tl({measurements:e,outerSize:r,scrollOffset:i}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=ht(()=>{let e=null,r=null,i=this.calculateRange();return i&&(e=i.startIndex,r=i.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,r]},(e,r,i,n,s)=>n===null||s===null?[]:e({startIndex:n,endIndex:s,overscan:r,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let r=this.options.indexAttribute,i=e.getAttribute(r);return i?parseInt(i,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(e,r)=>{let i=this.indexFromElement(e),n=this.measurementsCache[i];if(!n)return;let s=n.key,a=this.elementsCache.get(s);a!==e&&(a&&this.observer.unobserve(a),this.observer.observe(e),this.elementsCache.set(s,e)),e.isConnected&&this.resizeItem(i,this.options.measureElement(e,r,this))},this.resizeItem=(e,r)=>{var a;let i=this.measurementsCache[e];if(!i)return;let n=(a=this.itemSizeCache.get(i.key))!=null?a:i.size,s=r-n;s!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,s,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=s,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,r)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((r,i)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(i))});return}this._measureElement(e,void 0)},this.getVirtualItems=ht(()=>[this.getIndexes(),this.getMeasurements()],(e,r)=>{let i=[];for(let n=0,s=e.length;n<s;n++){let a=e[n],l=r[a];i.push(l)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let r=this.getMeasurements();if(r.length!==0)return jr(r[ws(0,r.length-1,i=>jr(r[i]).start,e)])},this.getOffsetForAlignment=(e,r)=>{let i=this.getSize(),n=this.getScrollOffset();r==="auto"&&e>=n+i&&(r="end"),r==="end"&&(e-=i);let s=this.options.horizontal?"scrollWidth":"scrollHeight",l=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-i;return Math.max(Math.min(l,e),0)},this.getOffsetForIndex=(e,r="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let i=this.measurementsCache[e];if(!i)return;let n=this.getSize(),s=this.getScrollOffset();if(r==="auto")if(i.end>=s+n-this.options.scrollPaddingEnd)r="end";else if(i.start<=s+this.options.scrollPaddingStart)r="start";else return[s,r];let a=i.start-this.options.scrollPaddingStart+(i.size-n)/2;switch(r){case"center":return[this.getOffsetForAlignment(a,r),r];case"end":return[this.getOffsetForAlignment(i.end+this.options.scrollPaddingEnd,r),r];default:return[this.getOffsetForAlignment(i.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:i}={})=>{this.cancelScrollToIndex(),i==="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:i})},this.scrollToIndex=(e,{align:r="auto",behavior:i}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let n=this.getOffsetForIndex(e,r);if(!n)return;let[s,a]=n;this._scrollToOffset(s,{adjustments:void 0,behavior:i}),i!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[m]=jr(this.getOffsetForIndex(e,a));Es(m,this.getScrollOffset())||this.scrollToIndex(e,{align:a,behavior:i})}else this.scrollToIndex(e,{align:a,behavior:i})}))},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 n;var e;let r=this.getMeasurements(),i;return r.length===0?i=this.options.paddingStart:i=this.options.lanes===1?(n=(e=r[r.length-1])==null?void 0:e.end)!=null?n:0:Math.max(...r.slice(-this.options.lanes).map(s=>s.end)),Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:r,behavior:i})=>{this.options.scrollToFn(e,{behavior:i,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}},ws=(o,t,e,r)=>{for(;o<=t;){let i=(o+t)/2|0,n=e(i);if(n<r)o=i+1;else if(n>r)t=i-1;else return i}return o>0?o-1:0};function Tl({measurements:o,outerSize:t,scrollOffset:e}){let r=o.length-1,n=ws(0,r,a=>o[a].start,e),s=n;for(;s<r&&o[s].end<e+t;)s++;return{startIndex:n,endIndex:s}}var ti=class{constructor(t,e){this.cleanup=()=>{},(this.host=t).addController(this);let r={...e,onChange:(i,n)=>{var s;this.host.updateComplete.then(()=>this.host.requestUpdate()),(s=e.onChange)==null||s.call(e,i,n)}};this.virtualizer=new Kr(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Qr=class extends ti{constructor(t,e){super(t,{observeElementRect:Ss,observeElementOffset:_s,scrollToFn:Is,...e})}};var{I:Qy}=Ni;var Cs=o=>o.strings===void 0;var ar=(o,t)=>{var r;let e=o._$AN;if(e===void 0)return!1;for(let i of e)(r=i._$AO)==null||r.call(i,t,!1),ar(i,t);return!0},Jr=o=>{let t,e;do{if((t=o._$AM)===void 0)break;e=t._$AN,e.delete(o),o=t}while((e==null?void 0:e.size)===0)},Ls=o=>{for(let t;t=o._$AM;o=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(o))break;e.add(o),_l(t)}};function Al(o){this._$AN!==void 0?(Jr(this),this._$AM=o,Ls(this)):this._$AM=o}function Sl(o,t=!1,e=0){let r=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(r))for(let n=e;n<r.length;n++)ar(r[n],!1),Jr(r[n]);else r!=null&&(ar(r,!1),Jr(r));else ar(this,o)}var _l=o=>{var t,e;o.type==Cr.CHILD&&((t=o._$AP)!=null||(o._$AP=Sl),(e=o._$AQ)!=null||(o._$AQ=Al))},eo=class extends St{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),Ls(this),this.isConnected=t._$AU}_$AO(t,e=!0){var r,i;t!==this.isConnected&&(this.isConnected=t,t?(r=this.reconnected)==null||r.call(this):(i=this.disconnected)==null||i.call(this)),e&&(ar(this,t),Jr(this))}setValue(t){if(Cs(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 Rs=()=>new oi,oi=class{},ri=new WeakMap,Ns=Yt(class extends eo{render(o){return x}update(o,[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=o.options)==null?void 0:r.host,this.rt(this.ct=o.element)),x}rt(o){var t;if(this.isConnected||(o=void 0),typeof this.Y=="function"){let e=(t=this.ht)!=null?t:globalThis,r=ri.get(e);r===void 0&&(r=new WeakMap,ri.set(e,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.set(this.Y,o),o!==void 0&&this.Y.call(this.ht,o)}else this.Y.value=o}get lt(){var o,t,e;return typeof this.Y=="function"?(t=ri.get((o=this.ht)!=null?o: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 Il=[g`
2291
+ color: hsl(${Math.max(0,Math.min(120-120*_,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(m=e==null?void 0:e.onChange)==null||m.call(e,i),i}}function Zr(o,t){if(o===void 0)throw new Error(`Unexpected undefined${t?`: ${t}`:""}`);return o}var xs=(o,t)=>Math.abs(o-t)<1,Es=(o,t,e)=>{let r;return function(...i){o.clearTimeout(r),r=o.setTimeout(()=>t.apply(this,i),e)}};var vl=o=>o,bl=o=>{let t=Math.max(o.startIndex-o.overscan,0),e=Math.min(o.endIndex+o.overscan,o.count-1),r=[];for(let i=t;i<=e;i++)r.push(i);return r},As=(o,t)=>{let e=o.scrollElement;if(!e)return;let r=o.targetWindow;if(!r)return;let i=s=>{let{width:a,height:l}=s;t({width:Math.round(a),height:Math.round(l)})};if(i(e.getBoundingClientRect()),!r.ResizeObserver)return()=>{};let n=new r.ResizeObserver(s=>{let a=s[0];if(a!=null&&a.borderBoxSize){let l=a.borderBoxSize[0];if(l){i({width:l.inlineSize,height:l.blockSize});return}}i(e.getBoundingClientRect())});return n.observe(e,{box:"border-box"}),()=>{n.unobserve(e)}},Ts={passive:!0};var yl=typeof window>"u"?!0:"onscrollend"in window,Ss=(o,t)=>{let e=o.scrollElement;if(!e)return;let r=o.targetWindow;if(!r)return;let i=0,n=o.options.useScrollendEvent&&yl?()=>{}:Es(r,()=>{t(i,!1)},o.options.isScrollingResetDelay),s=m=>()=>{let{horizontal:h,isRtl:p}=o.options;i=h?e.scrollLeft*(p&&-1||1):e.scrollTop,n(),t(i,m)},a=s(!0),l=s(!1);return l(),e.addEventListener("scroll",a,Ts),e.addEventListener("scrollend",l,Ts),()=>{e.removeEventListener("scroll",a),e.removeEventListener("scrollend",l)}};var xl=(o,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(o.getBoundingClientRect()[e.options.horizontal?"width":"height"])};var _s=(o,{adjustments:t=0,behavior:e},r)=>{var i,n;let s=o+t;(n=(i=r.scrollElement)==null?void 0:i.scrollTo)==null||n.call(i,{[r.options.horizontal?"left":"top"]:s,behavior:e})},jr=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(i=>{i.forEach(n=>{this._measureElement(n.target,n)})}));return{disconnect:()=>{var i;(i=r())==null||i.disconnect(),e=null},observe:i=>{var n;return(n=r())==null?void 0:n.observe(i,{box:"border-box"})},unobserve:i=>{var n;return(n=r())==null?void 0:n.unobserve(i)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([r,i])=>{typeof i>"u"&&delete e[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:vl,rangeExtractor:bl,onChange:()=>{},measureElement:xl,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,i;(i=(r=this.options).onChange)==null||i.call(r,this,e)},this.maybeNotify=mt(()=>(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 i;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=(i=(e=this.scrollElement)==null?void 0:e.window)!=null?i:null,this.elementsCache.forEach(n=>{this.observer.observe(n)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,n=>{this.scrollRect=n,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(n,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<n?"forward":"backward":null,this.scrollOffset=n,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 i=new Map,n=new Map;for(let s=r-1;s>=0;s--){let a=e[s];if(i.has(a.lane))continue;let l=n.get(a.lane);if(l==null||a.end>l.end?n.set(a.lane,a):a.end<l.end&&i.set(a.lane,!0),i.size===this.options.lanes)break}return n.size===this.options.lanes?Array.from(n.values()).sort((s,a)=>s.end===a.end?s.index-a.index:s.end-a.end)[0]:void 0},this.getMeasurementOptions=mt(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,r,i,n,s)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:r,scrollMargin:i,getItemKey:n,enabled:s}),{key:!1}),this.getMeasurements=mt(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:r,scrollMargin:i,getItemKey:n,enabled:s},a)=>{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 l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let m=this.measurementsCache.slice(0,l);for(let h=l;h<e;h++){let p=n(h),v=this.options.lanes===1?m[h-1]:this.getFurthestMeasurement(m,h),f=v?v.end+this.options.gap:r+i,b=a.get(p),T=typeof b=="number"?b:this.options.estimateSize(h),_=f+T,S=v?v.lane:h%this.options.lanes;m[h]={index:h,start:f,size:T,end:_,key:p,lane:S}}return this.measurementsCache=m,m},{key:!1,debug:()=>this.options.debug}),this.calculateRange=mt(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,r,i)=>this.range=e.length>0&&r>0?El({measurements:e,outerSize:r,scrollOffset:i}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=mt(()=>{let e=null,r=null,i=this.calculateRange();return i&&(e=i.startIndex,r=i.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,r]},(e,r,i,n,s)=>n===null||s===null?[]:e({startIndex:n,endIndex:s,overscan:r,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let r=this.options.indexAttribute,i=e.getAttribute(r);return i?parseInt(i,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(e,r)=>{let i=this.indexFromElement(e),n=this.measurementsCache[i];if(!n)return;let s=n.key,a=this.elementsCache.get(s);a!==e&&(a&&this.observer.unobserve(a),this.observer.observe(e),this.elementsCache.set(s,e)),e.isConnected&&this.resizeItem(i,this.options.measureElement(e,r,this))},this.resizeItem=(e,r)=>{var a;let i=this.measurementsCache[e];if(!i)return;let n=(a=this.itemSizeCache.get(i.key))!=null?a:i.size,s=r-n;s!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,s,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=s,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,r)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((r,i)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(i))});return}this._measureElement(e,void 0)},this.getVirtualItems=mt(()=>[this.getIndexes(),this.getMeasurements()],(e,r)=>{let i=[];for(let n=0,s=e.length;n<s;n++){let a=e[n],l=r[a];i.push(l)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let r=this.getMeasurements();if(r.length!==0)return Zr(r[ws(0,r.length-1,i=>Zr(r[i]).start,e)])},this.getOffsetForAlignment=(e,r)=>{let i=this.getSize(),n=this.getScrollOffset();r==="auto"&&e>=n+i&&(r="end"),r==="end"&&(e-=i);let s=this.options.horizontal?"scrollWidth":"scrollHeight",l=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-i;return Math.max(Math.min(l,e),0)},this.getOffsetForIndex=(e,r="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let i=this.measurementsCache[e];if(!i)return;let n=this.getSize(),s=this.getScrollOffset();if(r==="auto")if(i.end>=s+n-this.options.scrollPaddingEnd)r="end";else if(i.start<=s+this.options.scrollPaddingStart)r="start";else return[s,r];let a=i.start-this.options.scrollPaddingStart+(i.size-n)/2;switch(r){case"center":return[this.getOffsetForAlignment(a,r),r];case"end":return[this.getOffsetForAlignment(i.end+this.options.scrollPaddingEnd,r),r];default:return[this.getOffsetForAlignment(i.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:i}={})=>{this.cancelScrollToIndex(),i==="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:i})},this.scrollToIndex=(e,{align:r="auto",behavior:i}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let n=this.getOffsetForIndex(e,r);if(!n)return;let[s,a]=n;this._scrollToOffset(s,{adjustments:void 0,behavior:i}),i!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[m]=Zr(this.getOffsetForIndex(e,a));xs(m,this.getScrollOffset())||this.scrollToIndex(e,{align:a,behavior:i})}else this.scrollToIndex(e,{align:a,behavior:i})}))},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 n;var e;let r=this.getMeasurements(),i;return r.length===0?i=this.options.paddingStart:i=this.options.lanes===1?(n=(e=r[r.length-1])==null?void 0:e.end)!=null?n:0:Math.max(...r.slice(-this.options.lanes).map(s=>s.end)),Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:r,behavior:i})=>{this.options.scrollToFn(e,{behavior:i,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}},ws=(o,t,e,r)=>{for(;o<=t;){let i=(o+t)/2|0,n=e(i);if(n<r)o=i+1;else if(n>r)t=i-1;else return i}return o>0?o-1:0};function El({measurements:o,outerSize:t,scrollOffset:e}){let r=o.length-1,n=ws(0,r,a=>o[a].start,e),s=n;for(;s<r&&o[s].end<e+t;)s++;return{startIndex:n,endIndex:s}}var ei=class{constructor(t,e){this.cleanup=()=>{},(this.host=t).addController(this);let r={...e,onChange:(i,n)=>{var s;this.host.updateComplete.then(()=>this.host.requestUpdate()),(s=e.onChange)==null||s.call(e,i,n)}};this.virtualizer=new jr(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Kr=class extends ei{constructor(t,e){super(t,{observeElementRect:As,observeElementOffset:Ss,scrollToFn:_s,...e})}};var{I:Yy}=ki;var Is=o=>o.strings===void 0;var nr=(o,t)=>{var r;let e=o._$AN;if(e===void 0)return!1;for(let i of e)(r=i._$AO)==null||r.call(i,t,!1),nr(i,t);return!0},Qr=o=>{let t,e;do{if((t=o._$AM)===void 0)break;e=t._$AN,e.delete(o),o=t}while((e==null?void 0:e.size)===0)},Cs=o=>{for(let t;t=o._$AM;o=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(o))break;e.add(o),Sl(t)}};function Tl(o){this._$AN!==void 0?(Qr(this),this._$AM=o,Cs(this)):this._$AM=o}function Al(o,t=!1,e=0){let r=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(r))for(let n=e;n<r.length;n++)nr(r[n],!1),Qr(r[n]);else r!=null&&(nr(r,!1),Qr(r));else nr(this,o)}var Sl=o=>{var t,e;o.type==Ir.CHILD&&((t=o._$AP)!=null||(o._$AP=Al),(e=o._$AQ)!=null||(o._$AQ=Tl))},Jr=class extends Tt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),Cs(this),this.isConnected=t._$AU}_$AO(t,e=!0){var r,i;t!==this.isConnected&&(this.isConnected=t,t?(r=this.reconnected)==null||r.call(this):(i=this.disconnected)==null||i.call(this)),e&&(nr(this,t),Qr(this))}setValue(t){if(Is(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 Rs=()=>new ri,ri=class{},ti=new WeakMap,ks=Bt(class extends Jr{render(o){return x}update(o,[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=o.options)==null?void 0:r.host,this.rt(this.ct=o.element)),x}rt(o){var t;if(this.isConnected||(o=void 0),typeof this.Y=="function"){let e=(t=this.ht)!=null?t:globalThis,r=ti.get(e);r===void 0&&(r=new WeakMap,ti.set(e,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.set(this.Y,o),o!==void 0&&this.Y.call(this.ht,o)}else this.Y.value=o}get lt(){var o,t,e;return typeof this.Y=="function"?(t=ti.get((o=this.ht)!=null?o: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 _l=[g`
2266
2292
  :host {
2267
2293
  .mdc-virtualizedlist-scroll {
2268
2294
  height: 100%;
@@ -2274,19 +2300,19 @@
2274
2300
  width: 100%;
2275
2301
  }
2276
2302
  }
2277
- `],ks=Il;var Os=y.constructTagName("virtualizedlist"),ux=y.constructTagName("virtualizedwrapper"),zs={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0}};var ut=class extends E{constructor(){super();this.virtualizerprops=zs.VIRTUALIZER_PROPS;this.scrollElementRef=Rs();this.virtualizerController=null,this.virtualizer=null,this.setlistdata=null,this.onscroll=null}update(e){var r;super.update(e),e.get("virtualizerprops")&&((r=this.virtualizer)==null||r.setOptions({...this.virtualizer.options,...this.virtualizerprops}),this.requestUpdate())}connectedCallback(){var e;this.virtualizerController=new Qr(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,m;this.virtualizer=e.getVirtualizer();let{getVirtualItems:r,measureElement:i,getTotalSize:n}=this.virtualizer,s=r(),a={position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${(m=(l=s[0])==null?void 0:l.start)!=null?m:0}px)`};return this.setlistdata&&this.setlistdata({virtualItems:s,measureElement:i,listStyle:a}),u`<div
2303
+ `],Ls=_l;var Ns=y.constructTagName("virtualizedlist"),lx=y.constructTagName("virtualizedwrapper"),Os={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0}};var ht=class extends E{constructor(){super();this.virtualizerprops=Os.VIRTUALIZER_PROPS;this.scrollElementRef=Rs();this.virtualizerController=null,this.virtualizer=null,this.setlistdata=null,this.onscroll=null}update(e){var r;super.update(e),e.get("virtualizerprops")&&((r=this.virtualizer)==null||r.setOptions({...this.virtualizer.options,...this.virtualizerprops}),this.requestUpdate())}connectedCallback(){var e;this.virtualizerController=new Kr(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,m;this.virtualizer=e.getVirtualizer();let{getVirtualItems:r,measureElement:i,getTotalSize:n}=this.virtualizer,s=r(),a={position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${(m=(l=s[0])==null?void 0:l.start)!=null?m:0}px)`};return this.setlistdata&&this.setlistdata({virtualItems:s,measureElement:i,listStyle:a}),u`<div
2278
2304
  class="mdc-virtualizedlist-container"
2279
2305
  style="height: ${n()}px;"
2280
2306
  >
2281
2307
  <slot></slot>
2282
2308
  </div>`}render(){return u`<div
2283
- ${Ns(this.scrollElementRef)}
2309
+ ${ks(this.scrollElementRef)}
2284
2310
  class="mdc-virtualizedlist-scroll"
2285
2311
  @scroll=${this.onscroll&&this.onscroll}
2286
2312
  >
2287
2313
  ${this.virtualizerController?this.getVirtualizedListWrapper(this.virtualizerController):u``}
2288
2314
  </div>
2289
- `}};ut.styles=[...E.styles,...ks],c([d({type:Function,attribute:"onscroll"})],ut.prototype,"onscroll",2),c([d({type:Object,attribute:"virtualizerprops"})],ut.prototype,"virtualizerprops",2),c([d({type:Function,attribute:"setlistdata"})],ut.prototype,"setlistdata",2);var ii=ut;ii.register(Os);var wl=ii;var Cl=[C,g`
2315
+ `}};ht.styles=[...E.styles,...Ls],c([d({type:Function,attribute:"onscroll"})],ht.prototype,"onscroll",2),c([d({type:Object,attribute:"virtualizerprops"})],ht.prototype,"virtualizerprops",2),c([d({type:Function,attribute:"setlistdata"})],ht.prototype,"setlistdata",2);var oi=ht;oi.register(Ns);var wl=oi;var Il=[C,g`
2290
2316
 
2291
2317
  :host {
2292
2318
  --mdc-tab-content-gap: 0.5rem;
@@ -2529,12 +2555,12 @@
2529
2555
  color: var(--mdc-tab-pill-active-color-disabled);
2530
2556
  }
2531
2557
 
2532
- `,...$()],Ms=Cl;var Ds=y.constructTagName("tab"),ni={GLASS:"glass",LINE:"line",PILL:"pill"},si={VARIANT:ni.PILL};var kt=class extends de($e){constructor(){super();this.variant=si.VARIANT;this.role="tab",this.softDisabled=void 0,this.size=void 0,this.type=void 0}modifyIconName(e){this.iconName&&(e?(this.prevIconName=this.iconName,this.iconName=`${Xt(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(e){this.setAttribute("variant",Object.values(ni).includes(e)?e:si.VARIANT)}setActive(e,r){e.setAttribute("aria-selected",r?"true":"false"),this.modifyIconName(r)}executeAction(){this.active=!this.active}update(e){super.update(e),e.has("variant")&&this.setVariant(this.variant)}render(){return u`
2558
+ `,...$()],zs=Il;var Ms=y.constructTagName("tab"),ii={GLASS:"glass",LINE:"line",PILL:"pill"},ni={VARIANT:ii.PILL};var kt=class extends de(De){constructor(){super();this.variant=ni.VARIANT;this.role="tab",this.softDisabled=void 0,this.size=void 0,this.type=void 0}modifyIconName(e){this.iconName&&(e?(this.prevIconName=this.iconName,this.iconName=`${Yt(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(e){this.setAttribute("variant",Object.values(ii).includes(e)?e:ni.VARIANT)}setActive(e,r){e.setAttribute("aria-selected",r?"true":"false"),this.modifyIconName(r)}executeAction(){this.active=!this.active}update(e){super.update(e),e.has("variant")&&this.setVariant(this.variant)}render(){return u`
2533
2559
  <div part="container">
2534
2560
  ${this.iconName?u` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:x}
2535
2561
  ${this.text?u` <mdc-text
2536
- type=${this.active?z.BODY_MIDSIZE_BOLD:z.BODY_MIDSIZE_MEDIUM}
2537
- tagname=${M.SPAN}
2562
+ type=${this.active?O.BODY_MIDSIZE_BOLD:O.BODY_MIDSIZE_MEDIUM}
2563
+ tagname=${z.SPAN}
2538
2564
  data-text=${this.text}
2539
2565
  part="text"
2540
2566
  >${this.text}</mdc-text
@@ -2543,7 +2569,7 @@
2543
2569
  <slot name="chip"></slot>
2544
2570
  </div>
2545
2571
  <div part="indicator"></div>
2546
- `}};kt.styles=[...$e.styles,...Ms],c([d({type:String,reflect:!0})],kt.prototype,"text",2),c([d({type:String,reflect:!0})],kt.prototype,"variant",2);var ai=kt;ai.register(Ds);var Ll=ai;var $s=y.constructTagName("formfieldgroup"),li={RADIOGROUP:"radiogroup",GROUP:"group"};var Rl=g`
2572
+ `}};kt.styles=[...De.styles,...zs],c([d({type:String,reflect:!0})],kt.prototype,"text",2),c([d({type:String,reflect:!0})],kt.prototype,"variant",2);var si=kt;si.register(Ms);var Cl=si;var Ds=y.constructTagName("formfieldgroup"),ai={RADIOGROUP:"radiogroup",GROUP:"group"};var Rl=g`
2547
2573
 
2548
2574
  :host::part(container) {
2549
2575
  display: flex;
@@ -2560,12 +2586,12 @@
2560
2586
  :host::part(label-text){
2561
2587
  font-weight: bold;
2562
2588
  }
2563
- `,Ps=[Rl];var to=class extends q(ee){constructor(){super();this.isRadio=!1;this.shouldRenderLabel=!1,this.id="",this.helpTextType=void 0,this.disabled=void 0}render(){var e;return u`
2589
+ `,$s=[Rl];var eo=class extends W(ee){constructor(){super();this.isRadio=!1;this.shouldRenderLabel=!1,this.id="",this.helpTextType=void 0,this.disabled=void 0}render(){var e;return u`
2564
2590
  <div
2565
2591
  part="container"
2566
- role="${this.isRadio?li.RADIOGROUP:li.GROUP}"
2567
- aria-labelledby="${V.HEADING_ID}"
2568
- aria-describedby="${V.HELPER_TEXT_ID}"
2592
+ role="${this.isRadio?ai.RADIOGROUP:ai.GROUP}"
2593
+ aria-labelledby="${H.HEADING_ID}"
2594
+ aria-describedby="${A(this.helpText?H.HELPER_TEXT_ID:"")}"
2569
2595
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
2570
2596
  >
2571
2597
  <div part="group-header">
@@ -2574,7 +2600,7 @@
2574
2600
  </div>
2575
2601
  <slot></slot>
2576
2602
  </div>
2577
- `}};to.styles=[...ee.styles,...Ps];var ci=to;ci.register($s);var ro=ci;var Nl=[C,g`
2603
+ `}};eo.styles=[...ee.styles,...$s];var li=eo;li.register(Ds);var to=li;var kl=[C,g`
2578
2604
  :host {
2579
2605
  --mdc-spinner-default-color: var(--mds-color-theme-control-active-normal);
2580
2606
  --mdc-spinner-inverted-color: var(--mds-color-theme-inverted-control-active-normal);
@@ -2636,11 +2662,11 @@
2636
2662
  stroke-dashoffset: -292;
2637
2663
  }
2638
2664
  }
2639
- `],Us=Nl;var Hs=y.constructTagName("spinner"),kl={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Ol={STANDALONE:"standalone",BUTTON:"button"},oo={VARIANT:Ol.STANDALONE,SIZE:kl.MIDSIZE,INVERTED:!1};var Ge=class extends E{constructor(){super(...arguments);this.inverted=oo.INVERTED;this.size=oo.SIZE;this.ariaLabel=null;this.variant=oo.VARIANT}updated(e){super.updated(e),e.has("ariaLabel")&&(this.role=this.ariaLabel?"img":null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return u`
2665
+ `],Ps=kl;var Us=y.constructTagName("spinner"),Ll={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Nl={STANDALONE:"standalone",BUTTON:"button"},ro={VARIANT:Nl.STANDALONE,SIZE:Ll.MIDSIZE,INVERTED:!1};var Fe=class extends E{constructor(){super(...arguments);this.inverted=ro.INVERTED;this.size=ro.SIZE;this.ariaLabel=null;this.variant=ro.VARIANT}updated(e){super.updated(e),e.has("ariaLabel")&&(this.role=this.ariaLabel?"img":null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return u`
2640
2666
  <svg part="container" viewBox="0 0 100 100">
2641
2667
  <circle part="circle" cx="50" cy="50" r="46"></circle>
2642
2668
  </svg>
2643
- `}};Ge.styles=[...E.styles,...Us],c([d({type:Boolean,reflect:!0})],Ge.prototype,"inverted",2),c([d({type:String,reflect:!0})],Ge.prototype,"size",2),c([d({type:String,attribute:"aria-label"})],Ge.prototype,"ariaLabel",2),c([d({type:String,reflect:!0})],Ge.prototype,"variant",2);var di=Ge;di.register(Hs);var zl=di;var io=class extends ge(ro){constructor(){super(),this.isRadio=!0}firstUpdated(){var t,e,r,i,n;(n=(i=(r=(e=Array.from(((t=this.shadowRoot)==null?void 0:t.querySelectorAll("slot"))||[]))==null?void 0:e.flatMap(s=>s.assignedElements({flatten:!0})))==null?void 0:r.filter(s=>s.tagName.toLowerCase()===Zr))==null?void 0:i.filter(s=>!s.hasAttribute("name")))==null||n.forEach(s=>s.setAttribute("name",this.name))}};io.styles=[...ro.styles];var mi=io;var Vs=y.constructTagName("radiogroup");mi.register(Vs);var Ml=mi;})();
2669
+ `}};Fe.styles=[...E.styles,...Ps],c([d({type:Boolean,reflect:!0})],Fe.prototype,"inverted",2),c([d({type:String,reflect:!0})],Fe.prototype,"size",2),c([d({type:String,attribute:"aria-label"})],Fe.prototype,"ariaLabel",2),c([d({type:String,reflect:!0})],Fe.prototype,"variant",2);var ci=Fe;ci.register(Us);var Ol=ci;var sr=class extends to{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var e,r,i,n,s;(s=(n=(i=(r=Array.from(((e=this.shadowRoot)==null?void 0:e.querySelectorAll("slot"))||[]))==null?void 0:r.flatMap(a=>a.assignedElements({flatten:!0})))==null?void 0:i.filter(a=>a.tagName.toLowerCase()===Xr))==null?void 0:n.filter(a=>!a.hasAttribute("name")))==null||s.forEach(a=>{a.setAttribute("name",this.name),this.requiredLabel&&a.setAttribute("required-label",this.requiredLabel)})}};sr.styles=[...to.styles],c([d({type:String})],sr.prototype,"name",2);var di=sr;var Vs=y.constructTagName("radiogroup");di.register(Vs);var zl=di;})();
2644
2670
  /*! Bundled license information:
2645
2671
 
2646
2672
  @lit/reactive-element/decorators/custom-element.js: