@momentum-design/components 0.10.2 → 0.10.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
- "use strict";(()=>{var mo=Object.defineProperty;var ho=Object.getOwnPropertyDescriptor;var a=(s,e,t,o)=>{for(var r=o>1?void 0:o?ho(e,t):e,n=s.length-1,i;n>=0;n--)(i=s[n])&&(r=(o?i(e,t,r):i(r))||r);return o&&r&&mo(e,t,r),r};var be=globalThis,ve=be.ShadowRoot&&(be.ShadyCSS===void 0||be.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ue=Symbol(),ht=new WeakMap,te=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==Ue)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(ve&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=ht.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&ht.set(t,e))}return e}toString(){return this.cssText}},pt=s=>new te(typeof s=="string"?s:s+"",void 0,Ue),h=(s,...e)=>{let t=s.length===1?s[0]:e.reduce((o,r,n)=>o+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+s[n+1],s[0]);return new te(t,s,Ue)},Pe=(s,e)=>{if(ve)s.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let o=document.createElement("style"),r=be.litNonce;r!==void 0&&o.setAttribute("nonce",r),o.textContent=t.cssText,s.appendChild(o)}},ye=ve?s=>s:s=>s instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return pt(t)})(s):s;var{is:po,defineProperty:uo,getOwnPropertyDescriptor:go,getOwnPropertyNames:fo,getOwnPropertySymbols:bo,getPrototypeOf:vo}=Object,w=globalThis,ut=w.trustedTypes,yo=ut?ut.emptyScript:"",De=w.reactiveElementPolyfillSupport,oe=(s,e)=>s,re={toAttribute(s,e){switch(e){case Boolean:s=s?yo:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,e){let t=s;switch(e){case Boolean:t=s!==null;break;case Number:t=s===null?null:Number(s);break;case Object:case Array:try{t=JSON.parse(s)}catch{t=null}}return t}},xe=(s,e)=>!po(s,e),gt={attribute:!0,type:String,converter:re,reflect:!1,hasChanged:xe},ft,bt;(ft=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(bt=w.litPropertyMetadata)!=null||(w.litPropertyMetadata=new WeakMap);var C=class extends HTMLElement{static addInitializer(e){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=gt){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let o=Symbol(),r=this.getPropertyDescriptor(e,o,t);r!==void 0&&uo(this.prototype,e,r)}}static getPropertyDescriptor(e,t,o){var i;let{get:r,set:n}=(i=go(this.prototype,e))!=null?i:{get(){return this[t]},set(d){this[t]=d}};return{get(){return r==null?void 0:r.call(this)},set(d){let c=r==null?void 0:r.call(this);n.call(this,d),this.requestUpdate(e,c,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return(t=this.elementProperties.get(e))!=null?t:gt}static _$Ei(){if(this.hasOwnProperty(oe("elementProperties")))return;let e=vo(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(oe("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(oe("properties"))){let t=this.properties,o=[...fo(t),...bo(t)];for(let r of o)this.createProperty(r,t[r])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[o,r]of t)this.elementProperties.set(o,r)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let r=this._$Eu(t,o);r!==void 0&&this._$Eh.set(r,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let r of o)t.unshift(ye(r))}else e!==void 0&&t.push(ye(e));return t}static _$Eu(e,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t,o;((t=this._$EO)!=null?t:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((o=e.hostConnected)==null||o.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var t;let e=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return Pe(e,this.constructor.elementStyles),e}connectedCallback(){var e,t;(e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(o=>{var r;return(r=o.hostConnected)==null?void 0:r.call(o)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var o;return(o=t.hostDisconnected)==null?void 0:o.call(t)})}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$EC(e,t){var n;let o=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,o);if(r!==void 0&&o.reflect===!0){let i=(((n=o.converter)==null?void 0:n.toAttribute)!==void 0?o.converter:re).toAttribute(t,o.type);this._$Em=e,i==null?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(e,t){var n;let o=this.constructor,r=o._$Eh.get(e);if(r!==void 0&&this._$Em!==r){let i=o.getPropertyOptions(r),d=typeof i.converter=="function"?{fromAttribute:i.converter}:((n=i.converter)==null?void 0:n.fromAttribute)!==void 0?i.converter:re;this._$Em=r,this[r]=d.fromAttribute(t,i.type),this._$Em=null}}requestUpdate(e,t,o){var r;if(e!==void 0){if(o!=null||(o=this.constructor.getPropertyOptions(e)),!((r=o.hasChanged)!=null?r:xe)(this[e],t))return;this.P(e,t,o)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,t,o){var r;this._$AL.has(e)||this._$AL.set(e,t),o.reflect===!0&&this._$Em!==e&&((r=this._$Ej)!=null?r:this._$Ej=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var o,r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((o=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[i,d]of this._$Ep)this[i]=d;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,d]of n)d.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],d)}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(r=this._$EO)==null||r.forEach(n=>{var i;return(i=n.hostUpdate)==null?void 0:i.call(n)}),this.update(t)):this._$EU()}catch(n){throw e=!1,this._$EU(),n}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(o=>{var r;return(r=o.hostUpdated)==null?void 0:r.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(e){}firstUpdated(e){}},vt;C.elementStyles=[],C.shadowRootOptions={mode:"open"},C[oe("elementProperties")]=new Map,C[oe("finalized")]=new Map,De==null||De({ReactiveElement:C}),((vt=w.reactiveElementVersions)!=null?vt:w.reactiveElementVersions=[]).push("2.0.4");var xo={attribute:!0,type:String,converter:re,reflect:!1,hasChanged:xe},Eo=(s=xo,e,t)=>{let{kind:o,metadata:r}=t,n=globalThis.litPropertyMetadata.get(r);if(n===void 0&&globalThis.litPropertyMetadata.set(r,n=new Map),n.set(t.name,s),o==="accessor"){let{name:i}=t;return{set(d){let c=e.get.call(this);e.set.call(this,d),this.requestUpdate(i,c,s)},init(d){return d!==void 0&&this.P(i,void 0,s),d}}}if(o==="setter"){let{name:i}=t;return function(d){let c=this[i];e.call(this,d),this.requestUpdate(i,c,s)}}throw Error("Unsupported decorator location: "+o)};function l(s){return(e,t)=>typeof t=="object"?Eo(s,e,t):((o,r,n)=>{let i=r.hasOwnProperty(n);return r.constructor.createProperty(n,i?{...o,wrapped:!0}:o),i?Object.getOwnPropertyDescriptor(r,n):void 0})(s,e,t)}function I(s){return l({...s,state:!0,attribute:!1})}var _o={PREFIX:"mdc",SEPARATOR:"-"},Ao={NAMESPACE:_o},He=Ao;var So=s=>[He.NAMESPACE.PREFIX,s].join(He.NAMESPACE.SEPARATOR),v={constructTagName:So};var _e=v.constructTagName("themeprovider"),Ge={THEMECLASS:"mds-theme-stable-darkWebex"};var ie=globalThis,Ae=ie.trustedTypes,yt=Ae?Ae.createPolicy("lit-html",{createHTML:s=>s}):void 0,Ct="$lit$",O=`lit$${Math.random().toFixed(9).slice(2)}$`,It="?"+O,To=`<${It}>`,V=document,ne=()=>V.createComment(""),ae=s=>s===null||typeof s!="object"&&typeof s!="function",Ze=Array.isArray,Co=s=>Ze(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",Be=`[
1
+ "use strict";(()=>{var mr=Object.defineProperty;var hr=Object.getOwnPropertyDescriptor;var a=(s,e,t,r)=>{for(var o=r>1?void 0:r?hr(e,t):e,n=s.length-1,i;n>=0;n--)(i=s[n])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&mr(e,t,o),o};var be=globalThis,ve=be.ShadowRoot&&(be.ShadyCSS===void 0||be.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ue=Symbol(),ht=new WeakMap,te=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==Ue)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(ve&&e===void 0){let r=t!==void 0&&t.length===1;r&&(e=ht.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&ht.set(t,e))}return e}toString(){return this.cssText}},pt=s=>new te(typeof s=="string"?s:s+"",void 0,Ue),h=(s,...e)=>{let t=s.length===1?s[0]:e.reduce((r,o,n)=>r+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+s[n+1],s[0]);return new te(t,s,Ue)},Pe=(s,e)=>{if(ve)s.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let r=document.createElement("style"),o=be.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=t.cssText,s.appendChild(r)}},ye=ve?s=>s:s=>s instanceof CSSStyleSheet?(e=>{let t="";for(let r of e.cssRules)t+=r.cssText;return pt(t)})(s):s;var{is:pr,defineProperty:ur,getOwnPropertyDescriptor:gr,getOwnPropertyNames:fr,getOwnPropertySymbols:br,getPrototypeOf:vr}=Object,w=globalThis,ut=w.trustedTypes,yr=ut?ut.emptyScript:"",De=w.reactiveElementPolyfillSupport,re=(s,e)=>s,oe={toAttribute(s,e){switch(e){case Boolean:s=s?yr:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,e){let t=s;switch(e){case Boolean:t=s!==null;break;case Number:t=s===null?null:Number(s);break;case Object:case Array:try{t=JSON.parse(s)}catch{t=null}}return t}},xe=(s,e)=>!pr(s,e),gt={attribute:!0,type:String,converter:oe,reflect:!1,hasChanged:xe},ft,bt;(ft=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(bt=w.litPropertyMetadata)!=null||(w.litPropertyMetadata=new WeakMap);var I=class extends HTMLElement{static addInitializer(e){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=gt){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let r=Symbol(),o=this.getPropertyDescriptor(e,r,t);o!==void 0&&ur(this.prototype,e,o)}}static getPropertyDescriptor(e,t,r){var i;let{get:o,set:n}=(i=gr(this.prototype,e))!=null?i:{get(){return this[t]},set(d){this[t]=d}};return{get(){return o==null?void 0:o.call(this)},set(d){let c=o==null?void 0:o.call(this);n.call(this,d),this.requestUpdate(e,c,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return(t=this.elementProperties.get(e))!=null?t:gt}static _$Ei(){if(this.hasOwnProperty(re("elementProperties")))return;let e=vr(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(re("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(re("properties"))){let t=this.properties,r=[...fr(t),...br(t)];for(let o of r)this.createProperty(o,t[o])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[r,o]of t)this.elementProperties.set(r,o)}this._$Eh=new Map;for(let[t,r]of this.elementProperties){let o=this._$Eu(t,r);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let r=new Set(e.flat(1/0).reverse());for(let o of r)t.unshift(ye(o))}else e!==void 0&&t.push(ye(e));return t}static _$Eu(e,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t,r;((t=this._$EO)!=null?t:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)==null||r.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var t;let e=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return Pe(e,this.constructor.elementStyles),e}connectedCallback(){var e,t;(e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(r=>{var o;return(o=r.hostConnected)==null?void 0:o.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EC(e,t){var n;let r=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,r);if(o!==void 0&&r.reflect===!0){let i=(((n=r.converter)==null?void 0:n.toAttribute)!==void 0?r.converter:oe).toAttribute(t,r.type);this._$Em=e,i==null?this.removeAttribute(o):this.setAttribute(o,i),this._$Em=null}}_$AK(e,t){var n;let r=this.constructor,o=r._$Eh.get(e);if(o!==void 0&&this._$Em!==o){let i=r.getPropertyOptions(o),d=typeof i.converter=="function"?{fromAttribute:i.converter}:((n=i.converter)==null?void 0:n.fromAttribute)!==void 0?i.converter:oe;this._$Em=o,this[o]=d.fromAttribute(t,i.type),this._$Em=null}}requestUpdate(e,t,r){var o;if(e!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(e)),!((o=r.hasChanged)!=null?o:xe)(this[e],t))return;this.P(e,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,t,r){var o;this._$AL.has(e)||this._$AL.set(e,t),r.reflect===!0&&this._$Em!==e&&((o=this._$Ej)!=null?o:this._$Ej=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[i,d]of this._$Ep)this[i]=d;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,d]of n)d.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],d)}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(o=this._$EO)==null||o.forEach(n=>{var i;return(i=n.hostUpdate)==null?void 0:i.call(n)}),this.update(t)):this._$EU()}catch(n){throw e=!1,this._$EU(),n}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(r=>{var o;return(o=r.hostUpdated)==null?void 0:o.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(e){}firstUpdated(e){}},vt;I.elementStyles=[],I.shadowRootOptions={mode:"open"},I[re("elementProperties")]=new Map,I[re("finalized")]=new Map,De==null||De({ReactiveElement:I}),((vt=w.reactiveElementVersions)!=null?vt:w.reactiveElementVersions=[]).push("2.0.4");var xr={attribute:!0,type:String,converter:oe,reflect:!1,hasChanged:xe},Er=(s=xr,e,t)=>{let{kind:r,metadata:o}=t,n=globalThis.litPropertyMetadata.get(o);if(n===void 0&&globalThis.litPropertyMetadata.set(o,n=new Map),n.set(t.name,s),r==="accessor"){let{name:i}=t;return{set(d){let c=e.get.call(this);e.set.call(this,d),this.requestUpdate(i,c,s)},init(d){return d!==void 0&&this.P(i,void 0,s),d}}}if(r==="setter"){let{name:i}=t;return function(d){let c=this[i];e.call(this,d),this.requestUpdate(i,c,s)}}throw Error("Unsupported decorator location: "+r)};function l(s){return(e,t)=>typeof t=="object"?Er(s,e,t):((r,o,n)=>{let i=o.hasOwnProperty(n);return o.constructor.createProperty(n,i?{...r,wrapped:!0}:r),i?Object.getOwnPropertyDescriptor(o,n):void 0})(s,e,t)}function C(s){return l({...s,state:!0,attribute:!1})}var _r={PREFIX:"mdc",SEPARATOR:"-"},Ar={NAMESPACE:_r},He=Ar;var Sr=s=>[He.NAMESPACE.PREFIX,s].join(He.NAMESPACE.SEPARATOR),v={constructTagName:Sr};var _e=v.constructTagName("themeprovider"),Ge={THEMECLASS:"mds-theme-stable-darkWebex"};var ie=globalThis,Ae=ie.trustedTypes,yt=Ae?Ae.createPolicy("lit-html",{createHTML:s=>s}):void 0,It="$lit$",O=`lit$${Math.random().toFixed(9).slice(2)}$`,Ct="?"+O,Tr=`<${Ct}>`,V=document,ne=()=>V.createComment(""),ae=s=>s===null||typeof s!="object"&&typeof s!="function",Ze=Array.isArray,Ir=s=>Ze(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",Be=`[
2
2
  \f\r]`,se=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,xt=/-->/g,Et=/>/g,G=RegExp(`>|${Be}(?:([^\\s"'>=/]+)(${Be}*=${Be}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),_t=/'/g,At=/"/g,Nt=/^(?:script|style|textarea|title)$/i,We=s=>(e,...t)=>({_$litType$:s,strings:e,values:t}),m=We(1),wr=We(2),Or=We(3),N=Symbol.for("lit-noChange"),b=Symbol.for("lit-nothing"),St=new WeakMap,B=V.createTreeWalker(V,129);function Rt(s,e){if(!Ze(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return yt!==void 0?yt.createHTML(e):e}var Io=(s,e)=>{let t=s.length-1,o=[],r,n=e===2?"<svg>":e===3?"<math>":"",i=se;for(let d=0;d<t;d++){let c=s[d],f,g,u=-1,T=0;for(;T<c.length&&(i.lastIndex=T,g=i.exec(c),g!==null);)T=i.lastIndex,i===se?g[1]==="!--"?i=xt:g[1]!==void 0?i=Et:g[2]!==void 0?(Nt.test(g[2])&&(r=RegExp("</"+g[2],"g")),i=G):g[3]!==void 0&&(i=G):i===G?g[0]===">"?(i=r!=null?r:se,u=-1):g[1]===void 0?u=-2:(u=i.lastIndex-g[2].length,f=g[1],i=g[3]===void 0?G:g[3]==='"'?At:_t):i===At||i===_t?i=G:i===xt||i===Et?i=se:(i=G,r=void 0);let $=i===G&&s[d+1].startsWith("/>")?" ":"";n+=i===se?c+To:u>=0?(o.push(f),c.slice(0,u)+Ct+c.slice(u)+O+$):c+O+(u===-2?d:$)}return[Rt(s,n+(s[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]},de=class s{constructor({strings:e,_$litType$:t},o){let r;this.parts=[];let n=0,i=0,d=e.length-1,c=this.parts,[f,g]=Io(e,t);if(this.el=s.createElement(f,o),B.currentNode=this.el.content,t===2||t===3){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(r=B.nextNode())!==null&&c.length<d;){if(r.nodeType===1){if(r.hasAttributes())for(let u of r.getAttributeNames())if(u.endsWith(Ct)){let T=g[i++],$=r.getAttribute(u).split(O),fe=/([.?@])?(.*)/.exec(T);c.push({type:1,index:n,name:fe[2],strings:$,ctor:fe[1]==="."?qe:fe[1]==="?"?Fe:fe[1]==="@"?je:X}),r.removeAttribute(u)}else u.startsWith(O)&&(c.push({type:6,index:n}),r.removeAttribute(u));if(Nt.test(r.tagName)){let u=r.textContent.split(O),T=u.length-1;if(T>0){r.textContent=Ae?Ae.emptyScript:"";for(let $=0;$<T;$++)r.append(u[$],ne()),B.nextNode(),c.push({type:2,index:++n});r.append(u[T],ne())}}}else if(r.nodeType===8)if(r.data===It)c.push({type:2,index:n});else{let u=-1;for(;(u=r.data.indexOf(O,u+1))!==-1;)c.push({type:7,index:n}),u+=O.length-1}n++}}static createElement(e,t){let o=V.createElement("template");return o.innerHTML=e,o}};function j(s,e,t=s,o){var i,d,c;if(e===N)return e;let r=o!==void 0?(i=t.o)==null?void 0:i[o]:t.l,n=ae(e)?void 0:e._$litDirective$;return(r==null?void 0:r.constructor)!==n&&((d=r==null?void 0:r._$AO)==null||d.call(r,!1),n===void 0?r=void 0:(r=new n(s),r._$AT(s,t,o)),o!==void 0?((c=t.o)!=null?c:t.o=[])[o]=r:t.l=r),r!==void 0&&(e=j(s,r._$AS(s,e.values),r,o)),e}var Ye=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var f;let{el:{content:t},parts:o}=this._$AD,r=((f=e==null?void 0:e.creationScope)!=null?f:V).importNode(t,!0);B.currentNode=r;let n=B.nextNode(),i=0,d=0,c=o[0];for(;c!==void 0;){if(i===c.index){let g;c.type===2?g=new ce(n,n.nextSibling,this,e):c.type===1?g=new c.ctor(n,c.name,c.strings,this,e):c.type===6&&(g=new Xe(n,this,e)),this._$AV.push(g),c=o[++d]}i!==(c==null?void 0:c.index)&&(n=B.nextNode(),i++)}return B.currentNode=V,r}p(e){let t=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}},ce=class s{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this.v}constructor(e,t,o,r){var n;this.type=2,this._$AH=b,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=r,this.v=(n=r==null?void 0:r.isConnected)!=null?n:!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=j(this,e,t),ae(e)?e===b||e==null||e===""?(this._$AH!==b&&this._$AR(),this._$AH=b):e!==this._$AH&&e!==N&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Co(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==b&&ae(this._$AH)?this._$AA.nextSibling.data=e:this.T(V.createTextNode(e)),this._$AH=e}$(e){var n;let{values:t,_$litType$:o}=e,r=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=de.createElement(Rt(o.h,o.h[0]),this.options)),o);if(((n=this._$AH)==null?void 0:n._$AD)===r)this._$AH.p(t);else{let i=new Ye(r,this),d=i.u(this.options);i.p(t),this.T(d),this._$AH=i}}_$AC(e){let t=St.get(e.strings);return t===void 0&&St.set(e.strings,t=new de(e)),t}k(e){Ze(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,r=0;for(let n of e)r===t.length?t.push(o=new s(this.O(ne()),this.O(ne()),this,this.options)):o=t[r],o._$AI(n),r++;r<t.length&&(this._$AR(o&&o._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){var o;for((o=this._$AP)==null?void 0:o.call(this,!1,!0,t);e&&e!==this._$AB;){let r=e.nextSibling;e.remove(),e=r}}setConnected(e){var t;this._$AM===void 0&&(this.v=e,(t=this._$AP)==null||t.call(this,e))}},X=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,r,n){this.type=1,this._$AH=b,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=n,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=b}_$AI(e,t=this,o,r){let n=this.strings,i=!1;if(n===void 0)e=j(this,e,t,0),i=!ae(e)||e!==this._$AH&&e!==N,i&&(this._$AH=e);else{let d=e,c,f;for(e=n[0],c=0;c<n.length-1;c++)f=j(this,d[o+c],t,c),f===N&&(f=this._$AH[c]),i||(i=!ae(f)||f!==this._$AH[c]),f===b?e=b:e!==b&&(e+=(f!=null?f:"")+n[c+1]),this._$AH[c]=f}i&&!r&&this.j(e)}j(e){e===b?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}},qe=class extends X{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===b?void 0:e}},Fe=class extends X{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==b)}},je=class extends X{constructor(e,t,o,r,n){super(e,t,o,r,n),this.type=5}_$AI(e,t=this){var i;if((e=(i=j(this,e,t,0))!=null?i:b)===N)return;let o=this._$AH,r=e===b&&o!==b||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,n=e!==b&&(o===b||r);r&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,o;typeof this._$AH=="function"?this._$AH.call((o=(t=this.options)==null?void 0:t.host)!=null?o:this.element,e):this._$AH.handleEvent(e)}},Xe=class{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){j(this,e)}};var Ve=ie.litHtmlPolyfillSupport,Tt;Ve==null||Ve(de,ce),((Tt=ie.litHtmlVersions)!=null?Tt:ie.litHtmlVersions=[]).push("3.2.0");var zt=(s,e,t)=>{var n,i;let o=(n=t==null?void 0:t.renderBefore)!=null?n:e,r=o._$litPart$;if(r===void 0){let d=(i=t==null?void 0:t.renderBefore)!=null?i:null;o._$litPart$=r=new ce(e.insertBefore(ne(),d),d,void 0,t!=null?t:{})}return r._$AI(s),r};var M=class extends C{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,o;let e=super.createRenderRoot();return(o=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=e.firstChild),e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this.o=zt(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this.o)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.o)==null||e.setConnected(!1)}render(){return N}},Lt;M._$litElement$=!0,M.finalized=!0,(Lt=globalThis.litElementHydrateSupport)==null||Lt.call(globalThis,{LitElement:M});var Ke=globalThis.litElementPolyfillSupport;Ke==null||Ke({LitElement:M});var $t;(($t=globalThis.litElementVersions)!=null?$t:globalThis.litElementVersions=[]).push("4.1.0");var wt=h`
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),_t=/'/g,At=/"/g,Nt=/^(?:script|style|textarea|title)$/i,We=s=>(e,...t)=>({_$litType$:s,strings:e,values:t}),m=We(1),Oo=We(2),Mo=We(3),N=Symbol.for("lit-noChange"),b=Symbol.for("lit-nothing"),St=new WeakMap,B=V.createTreeWalker(V,129);function Rt(s,e){if(!Ze(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return yt!==void 0?yt.createHTML(e):e}var Cr=(s,e)=>{let t=s.length-1,r=[],o,n=e===2?"<svg>":e===3?"<math>":"",i=se;for(let d=0;d<t;d++){let c=s[d],f,g,u=-1,T=0;for(;T<c.length&&(i.lastIndex=T,g=i.exec(c),g!==null);)T=i.lastIndex,i===se?g[1]==="!--"?i=xt:g[1]!==void 0?i=Et:g[2]!==void 0?(Nt.test(g[2])&&(o=RegExp("</"+g[2],"g")),i=G):g[3]!==void 0&&(i=G):i===G?g[0]===">"?(i=o!=null?o:se,u=-1):g[1]===void 0?u=-2:(u=i.lastIndex-g[2].length,f=g[1],i=g[3]===void 0?G:g[3]==='"'?At:_t):i===At||i===_t?i=G:i===xt||i===Et?i=se:(i=G,o=void 0);let $=i===G&&s[d+1].startsWith("/>")?" ":"";n+=i===se?c+Tr:u>=0?(r.push(f),c.slice(0,u)+It+c.slice(u)+O+$):c+O+(u===-2?d:$)}return[Rt(s,n+(s[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},de=class s{constructor({strings:e,_$litType$:t},r){let o;this.parts=[];let n=0,i=0,d=e.length-1,c=this.parts,[f,g]=Cr(e,t);if(this.el=s.createElement(f,r),B.currentNode=this.el.content,t===2||t===3){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(o=B.nextNode())!==null&&c.length<d;){if(o.nodeType===1){if(o.hasAttributes())for(let u of o.getAttributeNames())if(u.endsWith(It)){let T=g[i++],$=o.getAttribute(u).split(O),fe=/([.?@])?(.*)/.exec(T);c.push({type:1,index:n,name:fe[2],strings:$,ctor:fe[1]==="."?qe:fe[1]==="?"?Fe:fe[1]==="@"?je:X}),o.removeAttribute(u)}else u.startsWith(O)&&(c.push({type:6,index:n}),o.removeAttribute(u));if(Nt.test(o.tagName)){let u=o.textContent.split(O),T=u.length-1;if(T>0){o.textContent=Ae?Ae.emptyScript:"";for(let $=0;$<T;$++)o.append(u[$],ne()),B.nextNode(),c.push({type:2,index:++n});o.append(u[T],ne())}}}else if(o.nodeType===8)if(o.data===Ct)c.push({type:2,index:n});else{let u=-1;for(;(u=o.data.indexOf(O,u+1))!==-1;)c.push({type:7,index:n}),u+=O.length-1}n++}}static createElement(e,t){let r=V.createElement("template");return r.innerHTML=e,r}};function j(s,e,t=s,r){var i,d,c;if(e===N)return e;let o=r!==void 0?(i=t.o)==null?void 0:i[r]:t.l,n=ae(e)?void 0:e._$litDirective$;return(o==null?void 0:o.constructor)!==n&&((d=o==null?void 0:o._$AO)==null||d.call(o,!1),n===void 0?o=void 0:(o=new n(s),o._$AT(s,t,r)),r!==void 0?((c=t.o)!=null?c:t.o=[])[r]=o:t.l=o),o!==void 0&&(e=j(s,o._$AS(s,e.values),o,r)),e}var Ye=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var f;let{el:{content:t},parts:r}=this._$AD,o=((f=e==null?void 0:e.creationScope)!=null?f:V).importNode(t,!0);B.currentNode=o;let n=B.nextNode(),i=0,d=0,c=r[0];for(;c!==void 0;){if(i===c.index){let g;c.type===2?g=new ce(n,n.nextSibling,this,e):c.type===1?g=new c.ctor(n,c.name,c.strings,this,e):c.type===6&&(g=new Xe(n,this,e)),this._$AV.push(g),c=r[++d]}i!==(c==null?void 0:c.index)&&(n=B.nextNode(),i++)}return B.currentNode=V,o}p(e){let t=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}},ce=class s{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this.v}constructor(e,t,r,o){var n;this.type=2,this._$AH=b,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=o,this.v=(n=o==null?void 0:o.isConnected)!=null?n:!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=j(this,e,t),ae(e)?e===b||e==null||e===""?(this._$AH!==b&&this._$AR(),this._$AH=b):e!==this._$AH&&e!==N&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ir(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==b&&ae(this._$AH)?this._$AA.nextSibling.data=e:this.T(V.createTextNode(e)),this._$AH=e}$(e){var n;let{values:t,_$litType$:r}=e,o=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=de.createElement(Rt(r.h,r.h[0]),this.options)),r);if(((n=this._$AH)==null?void 0:n._$AD)===o)this._$AH.p(t);else{let i=new Ye(o,this),d=i.u(this.options);i.p(t),this.T(d),this._$AH=i}}_$AC(e){let t=St.get(e.strings);return t===void 0&&St.set(e.strings,t=new de(e)),t}k(e){Ze(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,o=0;for(let n of e)o===t.length?t.push(r=new s(this.O(ne()),this.O(ne()),this,this.options)):r=t[o],r._$AI(n),o++;o<t.length&&(this._$AR(r&&r._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);e&&e!==this._$AB;){let o=e.nextSibling;e.remove(),e=o}}setConnected(e){var t;this._$AM===void 0&&(this.v=e,(t=this._$AP)==null||t.call(this,e))}},X=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,o,n){this.type=1,this._$AH=b,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=b}_$AI(e,t=this,r,o){let n=this.strings,i=!1;if(n===void 0)e=j(this,e,t,0),i=!ae(e)||e!==this._$AH&&e!==N,i&&(this._$AH=e);else{let d=e,c,f;for(e=n[0],c=0;c<n.length-1;c++)f=j(this,d[r+c],t,c),f===N&&(f=this._$AH[c]),i||(i=!ae(f)||f!==this._$AH[c]),f===b?e=b:e!==b&&(e+=(f!=null?f:"")+n[c+1]),this._$AH[c]=f}i&&!o&&this.j(e)}j(e){e===b?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}},qe=class extends X{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===b?void 0:e}},Fe=class extends X{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==b)}},je=class extends X{constructor(e,t,r,o,n){super(e,t,r,o,n),this.type=5}_$AI(e,t=this){var i;if((e=(i=j(this,e,t,0))!=null?i:b)===N)return;let r=this._$AH,o=e===b&&r!==b||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,n=e!==b&&(r===b||o);o&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)==null?void 0:t.host)!=null?r:this.element,e):this._$AH.handleEvent(e)}},Xe=class{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){j(this,e)}};var Ve=ie.litHtmlPolyfillSupport,Tt;Ve==null||Ve(de,ce),((Tt=ie.litHtmlVersions)!=null?Tt:ie.litHtmlVersions=[]).push("3.2.0");var zt=(s,e,t)=>{var n,i;let r=(n=t==null?void 0:t.renderBefore)!=null?n:e,o=r._$litPart$;if(o===void 0){let d=(i=t==null?void 0:t.renderBefore)!=null?i:null;r._$litPart$=o=new ce(e.insertBefore(ne(),d),d,void 0,t!=null?t:{})}return o._$AI(s),o};var M=class extends I{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,r;let e=super.createRenderRoot();return(r=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=e.firstChild),e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this.o=zt(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this.o)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.o)==null||e.setConnected(!1)}render(){return N}},Lt;M._$litElement$=!0,M.finalized=!0,(Lt=globalThis.litElementHydrateSupport)==null||Lt.call(globalThis,{LitElement:M});var Ke=globalThis.litElementPolyfillSupport;Ke==null||Ke({LitElement:M});var $t;(($t=globalThis.litElementVersions)!=null?$t:globalThis.litElementVersions=[]).push("4.1.0");var wt=h`
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 Se=class extends M{static register(e){customElements.get(e)||customElements.define(e,this)}};Se.styles=[wt];var Ot=Se;var p=Ot;var k=class extends Event{constructor(e,t,o){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.callback=t,this.subscribe=o!=null?o:!1}};var Z=class{constructor(e,t,o,r){var n;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(i,d)=>{this.unsubscribe&&(this.unsubscribe!==d&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=i,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(i,d)),this.unsubscribe=d},this.host=e,t.context!==void 0){let i=t;this.context=i.context,this.callback=i.callback,this.subscribe=(n=i.subscribe)!=null?n:!1}else this.context=t,this.callback=o,this.subscribe=r!=null?r:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new k(this.context,this.t,this.subscribe))}};var Te=class{get value(){return this.o}set value(e){this.setValue(e)}setValue(e,t=!1){let o=t||!Object.is(e,this.o);this.o=e,o&&this.updateObservers()}constructor(e){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:o}]of this.subscriptions)t(this.o,o)},e!==void 0&&(this.value=e)}addCallback(e,t,o){if(!o)return void e(this.value);this.subscriptions.has(e)||this.subscriptions.set(e,{disposer:()=>{this.subscriptions.delete(e)},consumerHost:t});let{disposer:r}=this.subscriptions.get(e);e(this.value,r)}clearCallbacks(){this.subscriptions.clear()}};var Qe=class extends Event{constructor(e){super("context-provider",{bubbles:!0,composed:!0}),this.context=e}},W=class extends Te{constructor(e,t,o){var r,n;super(t.context!==void 0?t.initialValue:o),this.onContextRequest=i=>{let d=i.composedPath()[0];i.context===this.context&&d!==this.host&&(i.stopPropagation(),this.addCallback(i.callback,d,i.subscribe))},this.onProviderRequest=i=>{let d=i.composedPath()[0];if(i.context!==this.context||d===this.host)return;let c=new Set;for(let[f,{consumerHost:g}]of this.subscriptions)c.has(f)||(c.add(f),g.dispatchEvent(new k(this.context,f,!0)));i.stopPropagation()},this.host=e,t.context!==void 0?this.context=t.context:this.context=t,this.attachListeners(),(n=(r=this.host).addController)==null||n.call(r,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Qe(this.context))}};var No=h`
13
+ `;var Se=class extends M{static register(e){customElements.get(e)||customElements.define(e,this)}};Se.styles=[wt];var Ot=Se;var p=Ot;var k=class extends Event{constructor(e,t,r){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.callback=t,this.subscribe=r!=null?r:!1}};var Z=class{constructor(e,t,r,o){var n;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(i,d)=>{this.unsubscribe&&(this.unsubscribe!==d&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=i,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(i,d)),this.unsubscribe=d},this.host=e,t.context!==void 0){let i=t;this.context=i.context,this.callback=i.callback,this.subscribe=(n=i.subscribe)!=null?n:!1}else this.context=t,this.callback=r,this.subscribe=o!=null?o:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new k(this.context,this.t,this.subscribe))}};var Te=class{get value(){return this.o}set value(e){this.setValue(e)}setValue(e,t=!1){let r=t||!Object.is(e,this.o);this.o=e,r&&this.updateObservers()}constructor(e){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:r}]of this.subscriptions)t(this.o,r)},e!==void 0&&(this.value=e)}addCallback(e,t,r){if(!r)return void e(this.value);this.subscriptions.has(e)||this.subscriptions.set(e,{disposer:()=>{this.subscriptions.delete(e)},consumerHost:t});let{disposer:o}=this.subscriptions.get(e);e(this.value,o)}clearCallbacks(){this.subscriptions.clear()}};var Qe=class extends Event{constructor(e){super("context-provider",{bubbles:!0,composed:!0}),this.context=e}},W=class extends Te{constructor(e,t,r){var o,n;super(t.context!==void 0?t.initialValue:r),this.onContextRequest=i=>{let d=i.composedPath()[0];i.context===this.context&&d!==this.host&&(i.stopPropagation(),this.addCallback(i.callback,d,i.subscribe))},this.onProviderRequest=i=>{let d=i.composedPath()[0];if(i.context!==this.context||d===this.host)return;let c=new Set;for(let[f,{consumerHost:g}]of this.subscriptions)c.has(f)||(c.add(f),g.dispatchEvent(new k(this.context,f,!0)));i.stopPropagation()},this.host=e,t.context!==void 0?this.context=t.context:this.context=t,this.attachListeners(),(n=(o=this.host).addController)==null||n.call(o,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Qe(this.context))}};var Nr=h`
14
14
  :host {
15
15
  display: contents;
16
16
  }
17
- `,kt=No;var Ce=class extends p{constructor({context:e,initialValue:t}){super(),this.context=new W(this,{context:e,initialValue:t})}render(){return this.updateContext(),m`<slot></slot>`}};Ce.styles=[...p.styles,kt];var Ut=Ce;var K=Ut;var Ie=class{constructor(e){this.themeclass=e}};Ie.context=_e;var Ne=Ie;var Ro=h`
17
+ `,kt=Nr;var Ie=class extends p{constructor({context:e,initialValue:t}){super(),this.context=new W(this,{context:e,initialValue:t})}render(){return this.updateContext(),m`<slot></slot>`}};Ie.styles=[...p.styles,kt];var Ut=Ie;var K=Ut;var Ce=class{constructor(e){this.themeclass=e}};Ce.context=_e;var Ne=Ce;var Rr=h`
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);
@@ -27,7 +27,7 @@
27
27
  font-weight: var(--mdc-themeprovider-font-weight);
28
28
  letter-spacing: var(--mdc-themeprovider-letter-spacing-adjustment);
29
29
  }
30
- `,Pt=[Ro];var Q=class extends K{constructor(){super({context:Ne.context,initialValue:new Ne(Ge.THEMECLASS)});this.themeclass=Ge.THEMECLASS}static get Context(){return Ne.context}updated(t){super.updated(t),t.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(" "))}};Q.styles=[...K.styles,...Pt],a([I()],Q.prototype,"currentThemeClass",2),a([l({type:String})],Q.prototype,"themeclass",2);var Je=Q;Je.register(_e);var zo=Je;var U=h`
30
+ `,Pt=[Rr];var Q=class extends K{constructor(){super({context:Ne.context,initialValue:new Ne(Ge.THEMECLASS)});this.themeclass=Ge.THEMECLASS}static get Context(){return Ne.context}updated(t){super.updated(t),t.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(" "))}};Q.styles=[...K.styles,...Pt],a([C()],Q.prototype,"currentThemeClass",2),a([l({type:String})],Q.prototype,"themeclass",2);var Je=Q;Je.register(_e);var zr=Je;var U=h`
31
31
  :host {
32
32
  align-items: center;
33
33
  display: flex;
@@ -65,16 +65,16 @@
65
65
  outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
66
66
  }
67
67
  }
68
- `;var Lo=[U,h`
68
+ `;var Lr=[U,h`
69
69
  :host {
70
70
  --mdc-icon-fill-color: currentColor;
71
71
  }
72
- svg {
72
+ :host::part(icon) {
73
73
  height: 100%;
74
74
  width: 100%;
75
75
  fill: var(--mdc-icon-fill-color);
76
76
  }
77
- `],Ht=Lo;var $o=s=>{let{host:e,context:t,subscribe:o}=s;return new Z(e,{context:t,subscribe:o!=null?o:!0})},wo={consume:$o},Gt=wo;var Re=v.constructTagName("iconprovider"),Bt=["svg"],Vt=["em","rem","px"],Oo={px:16,em:1,rem:1},P={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:Oo.em};var ze=class{};ze.context=Re;var Le=ze;var Y=class extends K{constructor(){super({context:Le.context,initialValue:new Le});this.fileExtension=P.FILE_EXTENSION;this.lengthUnit=P.LENGTH_UNIT;this.size=P.SIZE}static get Context(){return Le.context}updateValuesInContext(){this.fileExtension&&Bt.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=P.FILE_EXTENSION,this.context.value.fileExtension=P.FILE_EXTENSION),this.context.value.url=this.url,this.context.value.size=this.size,this.lengthUnit&&Vt.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=P.LENGTH_UNIT,this.context.value.lengthUnit=P.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size)&&(this.updateValuesInContext(),this.context.updateObservers())}};a([l({type:String})],Y.prototype,"url",2),a([l({type:String,attribute:"file-extension",reflect:!0})],Y.prototype,"fileExtension",2),a([l({type:String,attribute:"length-unit",reflect:!0})],Y.prototype,"lengthUnit",2),a([l({type:Number,reflect:!0})],Y.prototype,"size",2);var le=Y;var Yt=async(s,e,t)=>{let o=await fetch(`${s}/${e}.${t}`);if(!o.ok)throw new Error("There was a problem while fetching the icon!");let r=await o.text(),n=new DOMParser().parseFromString(r,"text/html").body.children[0];return n.setAttribute("data-name",e),n};var qt=v.constructTagName("icon"),et={NAME:void 0,SIZE:1};var A=class extends p{constructor(){super(...arguments);this.name=et.NAME;this.ariaLabel=null;this.iconProviderContext=Gt.consume({host:this,context:le.Context})}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:t,url:o}=this.iconProviderContext.value;if(o&&t&&this.name){let r=await Yt(o,this.name,t);this.iconData=r,this.setRoleOnIcon(),this.setAriaLabelOnIcon(),this.setAriaHiddenOnIcon()}}}updateSize(){var t;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let o=`${this.computedIconSize}${(t=this.lengthUnit)!=null?t:this.lengthUnitFromContext}`;this.style.width=o,this.style.height=o}}setRoleOnIcon(){this.role=this.ariaLabel?"img":null}setAriaHiddenOnIcon(){var t;(t=this.iconData)==null||t.setAttribute("aria-hidden","true")}setAriaLabelOnIcon(){var t,o;this.ariaLabel?(t=this.iconData)==null||t.setAttribute("aria-label",this.ariaLabel):(o=this.iconData)==null||o.removeAttribute("aria-label")}get computedIconSize(){var t,o;return(o=(t=this.size)!=null?t:this.sizeFromContext)!=null?o:et.SIZE}updated(t){var o,r,n,i;super.updated(t),t.has("name")&&this.getIconData().catch(d=>{console.error(d)}),t.has("ariaLabel")&&(this.setRoleOnIcon(),this.setAriaLabelOnIcon()),(t.has("size")||t.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((o=this.iconProviderContext.value)==null?void 0:o.lengthUnit)&&(this.lengthUnitFromContext=(r=this.iconProviderContext.value)==null?void 0:r.lengthUnit,this.updateSize()),this.sizeFromContext!==((n=this.iconProviderContext.value)==null?void 0:n.size)&&(this.sizeFromContext=(i=this.iconProviderContext.value)==null?void 0:i.size,this.updateSize())}render(){return m` ${this.iconData} `}};A.styles=[...p.styles,...Ht],a([I()],A.prototype,"iconData",2),a([I()],A.prototype,"lengthUnitFromContext",2),a([I()],A.prototype,"sizeFromContext",2),a([l({type:String,reflect:!0})],A.prototype,"name",2),a([l({type:Number})],A.prototype,"size",2),a([l({type:String,attribute:"length-unit"})],A.prototype,"lengthUnit",2),a([l({type:String,attribute:"aria-label"})],A.prototype,"ariaLabel",2);var tt=A;tt.register(qt);var Mo=tt;le.register(Re);var ko=le;var me=s=>s!=null?s:b;var Uo=h`
77
+ `],Ht=Lr;var $r=s=>{let{host:e,context:t,subscribe:r}=s;return new Z(e,{context:t,subscribe:r!=null?r:!0})},wr={consume:$r},Gt=wr;var Re=v.constructTagName("iconprovider"),Bt=["svg"],Vt=["em","rem","px"],Or={px:16,em:1,rem:1},P={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:Or.em};var ze=class{};ze.context=Re;var Le=ze;var Y=class extends K{constructor(){super({context:Le.context,initialValue:new Le});this.fileExtension=P.FILE_EXTENSION;this.lengthUnit=P.LENGTH_UNIT;this.size=P.SIZE}static get Context(){return Le.context}updateValuesInContext(){this.fileExtension&&Bt.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=P.FILE_EXTENSION,this.context.value.fileExtension=P.FILE_EXTENSION),this.context.value.url=this.url,this.context.value.size=this.size,this.lengthUnit&&Vt.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=P.LENGTH_UNIT,this.context.value.lengthUnit=P.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size)&&(this.updateValuesInContext(),this.context.updateObservers())}};a([l({type:String})],Y.prototype,"url",2),a([l({type:String,attribute:"file-extension",reflect:!0})],Y.prototype,"fileExtension",2),a([l({type:String,attribute:"length-unit",reflect:!0})],Y.prototype,"lengthUnit",2),a([l({type:Number,reflect:!0})],Y.prototype,"size",2);var le=Y;var Yt=async(s,e,t)=>{let r=await fetch(`${s}/${e}.${t}`);if(!r.ok)throw new Error("There was a problem while fetching the icon!");let o=await r.text(),n=new DOMParser().parseFromString(o,"text/html").body.children[0];return n.setAttribute("data-name",e),n.setAttribute("part","icon"),n};var qt=v.constructTagName("icon"),et={NAME:void 0,SIZE:1};var A=class extends p{constructor(){super(...arguments);this.name=et.NAME;this.ariaLabel=null;this.iconProviderContext=Gt.consume({host:this,context:le.Context})}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:t,url:r}=this.iconProviderContext.value;if(r&&t&&this.name){let o=await Yt(r,this.name,t);this.iconData=o,this.setRoleOnIcon(),this.setAriaLabelOnIcon(),this.setAriaHiddenOnIcon()}}}updateSize(){var t;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let r=`${this.computedIconSize}${(t=this.lengthUnit)!=null?t:this.lengthUnitFromContext}`;this.style.width=r,this.style.height=r}}setRoleOnIcon(){this.role=this.ariaLabel?"img":null}setAriaHiddenOnIcon(){var t;(t=this.iconData)==null||t.setAttribute("aria-hidden","true")}setAriaLabelOnIcon(){var t,r;this.ariaLabel?(t=this.iconData)==null||t.setAttribute("aria-label",this.ariaLabel):(r=this.iconData)==null||r.removeAttribute("aria-label")}get computedIconSize(){var t,r;return(r=(t=this.size)!=null?t:this.sizeFromContext)!=null?r:et.SIZE}updated(t){var r,o,n,i;super.updated(t),t.has("name")&&this.getIconData().catch(d=>{console.error(d)}),t.has("ariaLabel")&&(this.setRoleOnIcon(),this.setAriaLabelOnIcon()),(t.has("size")||t.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((r=this.iconProviderContext.value)==null?void 0:r.lengthUnit)&&(this.lengthUnitFromContext=(o=this.iconProviderContext.value)==null?void 0:o.lengthUnit,this.updateSize()),this.sizeFromContext!==((n=this.iconProviderContext.value)==null?void 0:n.size)&&(this.sizeFromContext=(i=this.iconProviderContext.value)==null?void 0:i.size,this.updateSize())}render(){return m` ${this.iconData} `}};A.styles=[...p.styles,...Ht],a([C()],A.prototype,"iconData",2),a([C()],A.prototype,"lengthUnitFromContext",2),a([C()],A.prototype,"sizeFromContext",2),a([l({type:String,reflect:!0})],A.prototype,"name",2),a([l({type:Number})],A.prototype,"size",2),a([l({type:String,attribute:"length-unit"})],A.prototype,"lengthUnit",2),a([l({type:String,attribute:"aria-label"})],A.prototype,"ariaLabel",2);var tt=A;tt.register(qt);var Mr=tt;le.register(Re);var kr=le;var me=s=>s!=null?s:b;var Ur=h`
78
78
  :host {
79
79
  display: flex;
80
80
  justify-content: center;
@@ -89,12 +89,12 @@
89
89
  width: inherit;
90
90
  object-fit: cover;
91
91
  }
92
- `,Ft=[Uo];var jt=v.constructTagName("avatar"),Xt="rem",ot={TYPE:"photo",SIZE:1.5};var D=class extends p{constructor(){super(...arguments);this.type=ot.TYPE;this.size=ot.SIZE}updateSize(){if(this.size){let t=`${this.size}${Xt}`;this.style.width=t,this.style.height=t}}updated(t){super.updated(t),t.has("size")&&this.updateSize()}photoTemplate(){return m`
92
+ `,Ft=[Ur];var jt=v.constructTagName("avatar"),Xt="rem",rt={TYPE:"photo",SIZE:1.5};var D=class extends p{constructor(){super(...arguments);this.type=rt.TYPE;this.size=rt.SIZE}updateSize(){if(this.size){let t=`${this.size}${Xt}`;this.style.width=t,this.style.height=t}}updated(t){super.updated(t),t.has("size")&&this.updateSize()}photoTemplate(){return m`
93
93
  <img
94
94
  src="${me(this.src)}"
95
95
  alt="${me(this.alt)}"
96
96
  />
97
- `}render(){let t;return this.type==="photo"?t=this.photoTemplate():t=m``,m`${t}`}};D.styles=[...p.styles,...Ft],a([l({type:String,reflect:!0})],D.prototype,"type",2),a([l({type:String})],D.prototype,"alt",2),a([l({type:String})],D.prototype,"src",2),a([l({type:Number})],D.prototype,"size",2);var rt=D;rt.register(jt);var Po=rt;var Zt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Wt=s=>(...e)=>({_$litDirective$:s,values:e}),$e=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this.t=e,this._$AM=t,this.i=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var we=Wt(class extends $e{constructor(s){var e;if(super(s),s.type!==Zt.ATTRIBUTE||s.name!=="class"||((e=s.strings)==null?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter(e=>s[e]).join(" ")+" "}update(s,[e]){var o,r;if(this.st===void 0){this.st=new Set,s.strings!==void 0&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(let n in e)e[n]&&!((o=this.nt)!=null&&o.has(n))&&this.st.add(n);return this.render(e)}let t=s.element.classList;for(let n of this.st)n in e||(t.remove(n),this.st.delete(n));for(let n in e){let i=!!e[n];i===this.st.has(n)||(r=this.nt)!=null&&r.has(n)||(i?(t.add(n),this.st.add(n)):(t.remove(n),this.st.delete(n)))}return N}});var Kt=v.constructTagName("text"),st={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"},E={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},_={TYPE:st.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:E.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var Qt=v.constructTagName("badge"),R={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Oe={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},Me={PRIMARY:"primary",SECONDARY:"secondary"},he={SUCCESS:"success",WARNING:"warning",ERROR:"error"},un={...Me,...he},H={TYPE:R.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:Me.PRIMARY,ICON_SIZE:1};var Do=[U,h`
97
+ `}render(){let t;return this.type==="photo"?t=this.photoTemplate():t=m``,m`${t}`}};D.styles=[...p.styles,...Ft],a([l({type:String,reflect:!0})],D.prototype,"type",2),a([l({type:String})],D.prototype,"alt",2),a([l({type:String})],D.prototype,"src",2),a([l({type:Number})],D.prototype,"size",2);var ot=D;ot.register(jt);var Pr=ot;var Zt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Wt=s=>(...e)=>({_$litDirective$:s,values:e}),$e=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this.t=e,this._$AM=t,this.i=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var we=Wt(class extends $e{constructor(s){var e;if(super(s),s.type!==Zt.ATTRIBUTE||s.name!=="class"||((e=s.strings)==null?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter(e=>s[e]).join(" ")+" "}update(s,[e]){var r,o;if(this.st===void 0){this.st=new Set,s.strings!==void 0&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(let n in e)e[n]&&!((r=this.nt)!=null&&r.has(n))&&this.st.add(n);return this.render(e)}let t=s.element.classList;for(let n of this.st)n in e||(t.remove(n),this.st.delete(n));for(let n in e){let i=!!e[n];i===this.st.has(n)||(o=this.nt)!=null&&o.has(n)||(i?(t.add(n),this.st.add(n)):(t.remove(n),this.st.delete(n)))}return N}});var Kt=v.constructTagName("text"),st={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"},E={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},_={TYPE:st.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:E.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var Qt=v.constructTagName("badge"),R={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Oe={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},Me={PRIMARY:"primary",SECONDARY:"secondary"},he={SUCCESS:"success",WARNING:"warning",ERROR:"error"},gn={...Me,...he},H={TYPE:R.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:Me.PRIMARY,ICON_SIZE:1};var Dr=[U,h`
98
98
  :host {
99
99
  --mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
100
100
  --mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
@@ -163,9 +163,9 @@
163
163
  outline: 0.125rem solid;
164
164
  }
165
165
  }
166
- `],Jt=Do;var S=class extends p{constructor(){super(...arguments);this.variant=H.VARIANT;this.maxCounter=H.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(t,o){return o===void 0||typeof o!="number"||t===0?"":o>t?`${t}+`:t>H.MAX_COUNTER_LIMIT||o>H.MAX_COUNTER_LIMIT?`${H.MAX_COUNTER_LIMIT}+`:o.toString()}getBadgeIcon(t,o){return m`
166
+ `],Jt=Dr;var S=class extends p{constructor(){super(...arguments);this.variant=H.VARIANT;this.maxCounter=H.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(t,r){return r===void 0||typeof r!="number"||t===0?"":r>t?`${t}+`:t>H.MAX_COUNTER_LIMIT||r>H.MAX_COUNTER_LIMIT?`${H.MAX_COUNTER_LIMIT}+`:r.toString()}getBadgeIcon(t,r){return m`
167
167
  <mdc-icon
168
- class="mdc-badge-icon ${we({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${o}`]:!0})}"
168
+ class="mdc-badge-icon ${we({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${r}`]:!0})}"
169
169
  name="${me(t)}"
170
170
  size="${H.ICON_SIZE}"
171
171
  ></mdc-icon>
@@ -177,7 +177,7 @@
177
177
  >
178
178
  ${this.getCounterText(this.maxCounter,this.counter)}
179
179
  </mdc-text>
180
- `}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(Me).includes(this.variant)&&(this.variant=H.VARIANT);let{iconName:t,type:o,variant:r}=this;switch(o){case R.ICON:return this.getBadgeIcon(t||"",r);case R.COUNTER:return this.getBadgeCounterText();case R.SUCCESS:return this.getBadgeIcon(Oe.SUCCESS_ICON_NAME,he.SUCCESS);case R.WARNING:return this.getBadgeIcon(Oe.WARNING_ICON_NAME,he.WARNING);case R.ERROR:return this.getBadgeIcon(Oe.ERROR_ICON_NAME,he.ERROR);case R.DOT:default:return this.type=R.DOT,this.getBadgeDot()}}update(t){super.update(t),t.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};S.styles=[...p.styles,...Jt],a([l({type:String,reflect:!0})],S.prototype,"type",2),a([l({type:String,attribute:"icon-name"})],S.prototype,"iconName",2),a([l({type:String,reflect:!0})],S.prototype,"variant",2),a([l({type:Number})],S.prototype,"counter",2),a([l({type:Number,attribute:"max-counter",reflect:!0})],S.prototype,"maxCounter",2),a([l({type:Boolean})],S.prototype,"overlay",2),a([l({type:String,attribute:"aria-label"})],S.prototype,"ariaLabel",2);var it=S;var eo=h`
180
+ `}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(Me).includes(this.variant)&&(this.variant=H.VARIANT);let{iconName:t,type:r,variant:o}=this;switch(r){case R.ICON:return this.getBadgeIcon(t||"",o);case R.COUNTER:return this.getBadgeCounterText();case R.SUCCESS:return this.getBadgeIcon(Oe.SUCCESS_ICON_NAME,he.SUCCESS);case R.WARNING:return this.getBadgeIcon(Oe.WARNING_ICON_NAME,he.WARNING);case R.ERROR:return this.getBadgeIcon(Oe.ERROR_ICON_NAME,he.ERROR);case R.DOT:default:return this.type=R.DOT,this.getBadgeDot()}}update(t){super.update(t),t.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};S.styles=[...p.styles,...Jt],a([l({type:String,reflect:!0})],S.prototype,"type",2),a([l({type:String,attribute:"icon-name"})],S.prototype,"iconName",2),a([l({type:String,reflect:!0})],S.prototype,"variant",2),a([l({type:Number})],S.prototype,"counter",2),a([l({type:Number,attribute:"max-counter",reflect:!0})],S.prototype,"maxCounter",2),a([l({type:Boolean})],S.prototype,"overlay",2),a([l({type:String,attribute:"aria-label"})],S.prototype,"ariaLabel",2);var it=S;var er=h`
181
181
  :host([tagname])::part(text) {
182
182
  font-size: unset;
183
183
  font-weight: unset;
@@ -417,14 +417,14 @@
417
417
  text-decoration: var(--mds-font-apps-body-small-regular-text-decoration);
418
418
  text-transform: var(--mds-font-apps-body-small-regular-text-case);
419
419
  }
420
- `;var Ho=[h`
420
+ `;var Hr=[h`
421
421
  :host {
422
422
  --mdc-text-font-family: var(--mdc-themeprovider-font-family);
423
423
 
424
424
  display: block;
425
425
  font-family: var(--mdc-text-font-family);
426
426
  }
427
- `,eo],to=Ho;var J=class extends p{constructor(){super(...arguments);this.type=_.TYPE;this.tagname=_.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case E.H1:return m`<h1 part=${_.CSS_PART_TEXT}><slot></slot></h1>`;case E.H2:return m`<h2 part=${_.CSS_PART_TEXT}><slot></slot></h2>`;case E.H3:return m`<h3 part=${_.CSS_PART_TEXT}><slot></slot></h3>`;case E.H4:return m`<h4 part=${_.CSS_PART_TEXT}><slot></slot></h4>`;case E.H5:return m`<h5 part=${_.CSS_PART_TEXT}><slot></slot></h5>`;case E.H6:return m`<h6 part=${_.CSS_PART_TEXT}><slot></slot></h6>`;case E.DIV:return m`<div part=${_.CSS_PART_TEXT}><slot></slot></div>`;case E.SPAN:return m`<span part=${_.CSS_PART_TEXT}><slot></slot></span>`;case E.SMALL:return m`<small part=${_.CSS_PART_TEXT}><slot></slot></small>`;case E.P:default:return m`<p part=${_.CSS_PART_TEXT}><slot></slot></p>`}}};J.styles=[...p.styles,...to],a([l({attribute:"type",reflect:!0,type:String})],J.prototype,"type",2),a([l({attribute:"tagname",reflect:!0,type:String})],J.prototype,"tagname",2);var nt=J;nt.register(Kt);var Go=nt;it.register(Qt);var Bo=it;var oo=v.constructTagName("presence"),x={ACTIVE:"active",AWAY:"away",AWAY_CALLING:"away-calling",BUSY:"busy",DND:"dnd",MEETING:"meeting",ON_CALL:"on-call",ON_DEVICE:"on-device",ON_MOBILE:"on-mobile",PAUSE:"pause",PTO:"pto",PRESENTING:"presenting",QUIET:"quiet",SCHEDULED:"scheduled"},z={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},pe={TYPE:x.ACTIVE,SIZE:z.SMALL};var Vo=[U,h`
427
+ `,er],tr=Hr;var J=class extends p{constructor(){super(...arguments);this.type=_.TYPE;this.tagname=_.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case E.H1:return m`<h1 part=${_.CSS_PART_TEXT}><slot></slot></h1>`;case E.H2:return m`<h2 part=${_.CSS_PART_TEXT}><slot></slot></h2>`;case E.H3:return m`<h3 part=${_.CSS_PART_TEXT}><slot></slot></h3>`;case E.H4:return m`<h4 part=${_.CSS_PART_TEXT}><slot></slot></h4>`;case E.H5:return m`<h5 part=${_.CSS_PART_TEXT}><slot></slot></h5>`;case E.H6:return m`<h6 part=${_.CSS_PART_TEXT}><slot></slot></h6>`;case E.DIV:return m`<div part=${_.CSS_PART_TEXT}><slot></slot></div>`;case E.SPAN:return m`<span part=${_.CSS_PART_TEXT}><slot></slot></span>`;case E.SMALL:return m`<small part=${_.CSS_PART_TEXT}><slot></slot></small>`;case E.P:default:return m`<p part=${_.CSS_PART_TEXT}><slot></slot></p>`}}};J.styles=[...p.styles,...tr],a([l({attribute:"type",reflect:!0,type:String})],J.prototype,"type",2),a([l({attribute:"tagname",reflect:!0,type:String})],J.prototype,"tagname",2);var nt=J;nt.register(Kt);var Gr=nt;it.register(Qt);var Br=it;var rr=v.constructTagName("presence"),x={ACTIVE:"active",AWAY:"away",AWAY_CALLING:"away-calling",BUSY:"busy",DND:"dnd",MEETING:"meeting",ON_CALL:"on-call",ON_DEVICE:"on-device",ON_MOBILE:"on-mobile",PAUSE:"pause",PTO:"pto",PRESENTING:"presenting",QUIET:"quiet",SCHEDULED:"scheduled"},z={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},pe={TYPE:x.ACTIVE,SIZE:z.SMALL};var Vr=[U,h`
428
428
  :host {
429
429
  --mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
430
430
 
@@ -532,7 +532,7 @@
532
532
  .mdc-presence-icon__scheduled {
533
533
  color: var(--mdc-presence-scheduled-background-color);
534
534
  }
535
- `],ro=Vo;var ee=class extends p{constructor(){super(...arguments);this.type=pe.TYPE;this.size=pe.SIZE}get iconSize(){switch(this.size){case z.MIDSIZE:return 1.16125;case z.LARGE:return 1.30625;case z.X_LARGE:return 1.596875;case z.XX_LARGE:return 2.25;case z.XX_SMALL:case z.X_SMALL:case z.SMALL:default:return this.size=pe.SIZE,.875}}get icon(){switch(this.type){case x.AWAY:return"recents-presence-badge-filled";case x.AWAY_CALLING:return"away-calling-presence-filled";case x.BUSY:return"busy-presence-bold";case x.DND:return"dnd-presence-badge-filled";case x.MEETING:return"camera-filled";case x.ON_CALL:return"handset-filled";case x.ON_DEVICE:return"generic-device-video-badge-filled";case x.ON_MOBILE:return"phone-badge-filled";case x.PAUSE:return"pause-badge-filled";case x.PTO:return"pto-presence-filled";case x.PRESENTING:return"share-screen-badge-filled";case x.QUIET:return"quiet-hours-presence-filled";case x.SCHEDULED:return"meetings-presence-badge-filled";case x.ACTIVE:default:return this.type=pe.TYPE,"active-presence-small-filled"}}render(){return m`
535
+ `],or=Vr;var sr=s=>{switch(s){case x.AWAY:return"recents-presence-badge-filled";case x.AWAY_CALLING:return"away-calling-presence-filled";case x.BUSY:return"busy-presence-bold";case x.DND:return"dnd-presence-badge-filled";case x.MEETING:return"camera-filled";case x.ON_CALL:return"handset-filled";case x.ON_DEVICE:return"generic-device-video-badge-filled";case x.ON_MOBILE:return"phone-badge-filled";case x.PAUSE:return"pause-badge-filled";case x.PTO:return"pto-presence-filled";case x.PRESENTING:return"share-screen-badge-filled";case x.QUIET:return"quiet-hours-presence-filled";case x.SCHEDULED:return"meetings-presence-badge-filled";case x.ACTIVE:default:return"active-presence-small-filled"}};var ee=class extends p{constructor(){super(...arguments);this.type=pe.TYPE;this.size=pe.SIZE}get iconSize(){switch(this.size){case z.MIDSIZE:return 1.16125;case z.LARGE:return 1.30625;case z.X_LARGE:return 1.596875;case z.XX_LARGE:return 2.25;case z.XX_SMALL:case z.X_SMALL:case z.SMALL:default:return this.size=pe.SIZE,.875}}get icon(){let t=sr(this.type);return t==="active-presence-small-filled"&&(this.type=pe.TYPE),t}render(){return m`
536
536
  <div class="mdc-presence mdc-presence__${this.size}">
537
537
  <mdc-icon
538
538
  class="mdc-presence-icon mdc-presence-icon__${this.type}"
@@ -540,7 +540,7 @@
540
540
  size="${this.iconSize}"
541
541
  ></mdc-icon>
542
542
  </div>
543
- `}};ee.styles=[...p.styles,...ro],a([l({type:String,reflect:!0})],ee.prototype,"type",2),a([l({type:String,reflect:!0})],ee.prototype,"size",2);var at=ee;at.register(oo);var Yo=at;var qo=[U,h`
543
+ `}};ee.styles=[...p.styles,...or],a([l({type:String,reflect:!0})],ee.prototype,"type",2),a([l({type:String,reflect:!0})],ee.prototype,"size",2);var at=ee;at.register(rr);var Yr=at;var qr=[U,h`
544
544
  :host {
545
545
  cursor: pointer;
546
546
  border-radius: 1.25rem;
@@ -731,7 +731,7 @@
731
731
  --mdc-button-secondary-hover-background-color: var(--mds-color-theme-button-secondary-hover);
732
732
  --mdc-button-secondary-pressed-background-color: var(--mds-color-theme-button-secondary-pressed);
733
733
  }
734
- `,Dt],so=qo;var io=v.constructTagName("button"),ue={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},ke={40:40,32:32,28:28,24:24},q={64:64,52:52,20:20,...ke},dt={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},F={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},Fo={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},L={VARIANT:ue.PRIMARY,SIZE:ke[32],COLOR:dt.DEFAULT,TYPE_INTERNAL:F.ICON,TYPE:Fo.BUTTON};var no=s=>{switch(s){case q[64]:return 2;case q[52]:return 1.75;case q[40]:return 1.25;default:return 1}},ct=s=>{let e=s.split("-"),t=["bold","filled","regular","light"];return e.filter(o=>!t.includes(o)).join("-")};var y=class extends p{constructor(){super();this.active=!1;this.disabled=!1;this.softDisabled=!1;this.variant=L.VARIANT;this.size=L.SIZE;this.color=L.COLOR;this.tabIndex=0;this.role="button";this.type=L.TYPE;this.typeInternal=L.TYPE_INTERNAL;this.iconSize=1;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.internals=this.attachInternals()}get form(){return this.internals.form}update(t){super.update(t),t.has("disabled")&&this.setDisabled(this,this.disabled),t.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),t.has("active")&&(this.setAriaPressed(this,this.active),this.modifyIconName(this.active)),t.has("size")&&this.setSize(this.size),t.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),t.has("color")&&this.setColor(this.color),t.has("typeInternal")&&(this.setSize(this.size),this.setClassBasedOnType(this.typeInternal)),(t.has("prefixIcon")||t.has("postfixIcon"))&&this.inferButtonType()}executeAction(){this.type==="submit"&&this.internals.form&&this.internals.form.requestSubmit(),this.type==="reset"&&this.internals.form&&this.internals.form.reset()}modifyIconName(t){t?(this.prefixIcon&&(this.prevPrefixIcon=this.prefixIcon,this.prefixIcon=`${ct(this.prefixIcon)}-filled`),this.postfixIcon&&(this.prevPostfixIcon=this.postfixIcon,this.postfixIcon=`${ct(this.postfixIcon)}-filled`)):(this.prevPrefixIcon&&(this.prefixIcon=this.prevPrefixIcon),this.prevPostfixIcon&&(this.postfixIcon=this.prevPostfixIcon))}setClassBasedOnType(t){t===F.ICON?this.classList.add("mdc-icon-button"):this.classList.remove("mdc-icon-button")}setVariant(t){this.setAttribute("variant",Object.values(ue).includes(t)?t:L.VARIANT)}setSize(t){let r=this.typeInternal===F.ICON?Object.values(q).includes(t)&&!(t===q[20]&&this.variant!==ue.TERTIARY):Object.values(ke).includes(t);this.setAttribute("size",r?`${t}`:`${L.SIZE}`),this.iconSize=no(t)}setColor(t){!Object.values(dt).includes(t)||this.variant===ue.TERTIARY?this.setAttribute("color",`${L.COLOR}`):this.setAttribute("color",t)}setAriaPressed(t,o){o?t.setAttribute("aria-pressed","true"):t.removeAttribute("aria-pressed")}setSoftDisabled(t,o){o?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")}setDisabled(t,o){o?(t.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex=this.prevTabindex,t.removeAttribute("aria-disabled"))}triggerClickEvent(){let t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(t),this.executeAction()}handleKeyDown(t){["Enter"," "].includes(t.key)&&(this.classList.add("pressed"),t.key==="Enter"&&this.triggerClickEvent())}handleKeyUp(t){["Enter"," "].includes(t.key)&&(this.classList.remove("pressed"),t.key===" "&&this.triggerClickEvent())}inferButtonType(){var o,r;let t=(r=(o=this.shadowRoot)==null?void 0:o.querySelector("slot"))==null?void 0:r.assignedNodes().length;t&&(this.prefixIcon||this.postfixIcon)?this.typeInternal=F.PILL_WITH_ICON:!t&&(this.prefixIcon||this.postfixIcon)?this.typeInternal=F.ICON:this.typeInternal=F.PILL}render(){return m`
734
+ `,Dt],ir=qr;var nr=v.constructTagName("button"),ue={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},ke={40:40,32:32,28:28,24:24},q={64:64,52:52,20:20,...ke},dt={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},F={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},Fr={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},L={VARIANT:ue.PRIMARY,SIZE:ke[32],COLOR:dt.DEFAULT,TYPE_INTERNAL:F.ICON,TYPE:Fr.BUTTON};var ar=s=>{switch(s){case q[64]:return 2;case q[52]:return 1.75;case q[40]:return 1.25;default:return 1}},ct=s=>{let e=s.split("-"),t=["bold","filled","regular","light"];return e.filter(r=>!t.includes(r)).join("-")};var y=class extends p{constructor(){super();this.active=!1;this.disabled=!1;this.softDisabled=!1;this.variant=L.VARIANT;this.size=L.SIZE;this.color=L.COLOR;this.tabIndex=0;this.role="button";this.type=L.TYPE;this.typeInternal=L.TYPE_INTERNAL;this.iconSize=1;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.internals=this.attachInternals()}get form(){return this.internals.form}update(t){super.update(t),t.has("disabled")&&this.setDisabled(this,this.disabled),t.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),t.has("active")&&(this.setAriaPressed(this,this.active),this.modifyIconName(this.active)),t.has("size")&&this.setSize(this.size),t.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),t.has("color")&&this.setColor(this.color),t.has("typeInternal")&&(this.setSize(this.size),this.setClassBasedOnType(this.typeInternal)),(t.has("prefixIcon")||t.has("postfixIcon"))&&this.inferButtonType()}executeAction(){this.type==="submit"&&this.internals.form&&this.internals.form.requestSubmit(),this.type==="reset"&&this.internals.form&&this.internals.form.reset()}modifyIconName(t){t?(this.prefixIcon&&(this.prevPrefixIcon=this.prefixIcon,this.prefixIcon=`${ct(this.prefixIcon)}-filled`),this.postfixIcon&&(this.prevPostfixIcon=this.postfixIcon,this.postfixIcon=`${ct(this.postfixIcon)}-filled`)):(this.prevPrefixIcon&&(this.prefixIcon=this.prevPrefixIcon),this.prevPostfixIcon&&(this.postfixIcon=this.prevPostfixIcon))}setClassBasedOnType(t){t===F.ICON?this.classList.add("mdc-icon-button"):this.classList.remove("mdc-icon-button")}setVariant(t){this.setAttribute("variant",Object.values(ue).includes(t)?t:L.VARIANT)}setSize(t){let o=this.typeInternal===F.ICON?Object.values(q).includes(t)&&!(t===q[20]&&this.variant!==ue.TERTIARY):Object.values(ke).includes(t);this.setAttribute("size",o?`${t}`:`${L.SIZE}`),this.iconSize=ar(t)}setColor(t){!Object.values(dt).includes(t)||this.variant===ue.TERTIARY?this.setAttribute("color",`${L.COLOR}`):this.setAttribute("color",t)}setAriaPressed(t,r){r?t.setAttribute("aria-pressed",""):t.removeAttribute("aria-pressed")}setSoftDisabled(t,r){r?t.setAttribute("aria-disabled",""):t.removeAttribute("aria-disabled")}setDisabled(t,r){r?(t.setAttribute("aria-disabled",""),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex=this.prevTabindex,t.removeAttribute("aria-disabled"))}triggerClickEvent(){let t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(t),this.executeAction()}handleKeyDown(t){["Enter"," "].includes(t.key)&&(this.classList.add("pressed"),t.key==="Enter"&&this.triggerClickEvent())}handleKeyUp(t){["Enter"," "].includes(t.key)&&(this.classList.remove("pressed"),t.key===" "&&this.triggerClickEvent())}inferButtonType(){var r,o;let t=(o=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"))==null?void 0:o.assignedNodes().length;t&&(this.prefixIcon||this.postfixIcon)?this.typeInternal=F.PILL_WITH_ICON:!t&&(this.prefixIcon||this.postfixIcon)?this.typeInternal=F.ICON:this.typeInternal=F.PILL}render(){return m`
735
735
  ${this.prefixIcon?m`
736
736
  <mdc-icon
737
737
  name="${this.prefixIcon}"
@@ -747,7 +747,7 @@
747
747
  size=${this.iconSize}
748
748
  length-unit="rem">
749
749
  </mdc-icon>`:""}
750
- `}};y.formAssociated=!0,y.styles=[...p.styles,...so],a([l({type:Boolean})],y.prototype,"active",2),a([l({type:Boolean})],y.prototype,"disabled",2),a([l({type:Boolean,attribute:"soft-disabled"})],y.prototype,"softDisabled",2),a([l({type:String,attribute:"prefix-icon"})],y.prototype,"prefixIcon",2),a([l({type:String,attribute:"postfix-icon"})],y.prototype,"postfixIcon",2),a([l({type:String})],y.prototype,"variant",2),a([l({type:Number})],y.prototype,"size",2),a([l({type:String})],y.prototype,"color",2),a([l({type:Number,reflect:!0})],y.prototype,"tabIndex",2),a([l({type:String,reflect:!0})],y.prototype,"role",2),a([l({reflect:!0})],y.prototype,"type",2),a([I()],y.prototype,"typeInternal",2),a([I()],y.prototype,"iconSize",2);var lt=y;lt.register(io);var jo=lt;var Xo=h`
750
+ `}};y.formAssociated=!0,y.styles=[...p.styles,...ir],a([l({type:Boolean})],y.prototype,"active",2),a([l({type:Boolean})],y.prototype,"disabled",2),a([l({type:Boolean,attribute:"soft-disabled"})],y.prototype,"softDisabled",2),a([l({type:String,attribute:"prefix-icon",reflect:!0})],y.prototype,"prefixIcon",2),a([l({type:String,attribute:"postfix-icon",reflect:!0})],y.prototype,"postfixIcon",2),a([l({type:String})],y.prototype,"variant",2),a([l({type:Number})],y.prototype,"size",2),a([l({type:String})],y.prototype,"color",2),a([l({type:Number,reflect:!0})],y.prototype,"tabIndex",2),a([l({type:String,reflect:!0})],y.prototype,"role",2),a([l({reflect:!0})],y.prototype,"type",2),a([C()],y.prototype,"typeInternal",2),a([C()],y.prototype,"iconSize",2);var lt=y;lt.register(nr);var jr=lt;var Xr=h`
751
751
  :host {
752
752
  --mdc-bullet-background-color: var(--mds-color-theme-outline-secondary-normal);
753
753
  --mdc-bullet-size-small: 0.25rem;
@@ -768,7 +768,7 @@
768
768
  :host([size="large"]) {
769
769
  height: var(--mdc-bullet-size-large);
770
770
  }
771
- `,ao=[Xo];var co=v.constructTagName("bullet"),lo={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var ge=class extends p{constructor(){super(...arguments);this.size=lo.SMALL}};ge.styles=[...p.styles,...ao],a([l({type:String,reflect:!0})],ge.prototype,"size",2);var mt=ge;mt.register(co);var Zo=mt;})();
771
+ `,dr=[Xr];var cr=v.constructTagName("bullet"),lr={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var ge=class extends p{constructor(){super(...arguments);this.size=lr.SMALL}};ge.styles=[...p.styles,...dr],a([l({type:String,reflect:!0})],ge.prototype,"size",2);var mt=ge;mt.register(cr);var Zr=mt;})();
772
772
  /*! Bundled license information:
773
773
 
774
774
  @lit/reactive-element/decorators/custom-element.js: