@momentum-design/components 0.4.13 → 0.4.14

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 Me=Object.defineProperty;var Oe=Object.getOwnPropertyDescriptor;var d=(o,t,e,s)=>{for(var i=s>1?void 0:s?Oe(t,e):t,n=o.length-1,r;n>=0;n--)(r=o[n])&&(i=(s?r(t,e,i):r(i))||i);return s&&i&&Me(t,e,i),i};var st=globalThis,it=st.ShadowRoot&&(st.ShadyCSS===void 0||st.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,bt=Symbol(),jt=new WeakMap,G=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==bt)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(it&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=jt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&jt.set(e,t))}return t}toString(){return this.cssText}},Gt=o=>new G(typeof o=="string"?o:o+"",void 0,bt),f=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((s,i,n)=>s+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+o[n+1],o[0]);return new G(e,o,bt)},Et=(o,t)=>{if(it)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let s=document.createElement("style"),i=st.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,o.appendChild(s)}},ot=it?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return Gt(e)})(o):o;var{is:Ie,defineProperty:He,getOwnPropertyDescriptor:ke,getOwnPropertyNames:De,getOwnPropertySymbols:qe,getPrototypeOf:Fe}=Object,C=globalThis,Vt=C.trustedTypes,je=Vt?Vt.emptyScript:"",At=C.reactiveElementPolyfillSupport,V=(o,t)=>o,W={toAttribute(o,t){switch(t){case Boolean:o=o?je: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}},rt=(o,t)=>!Ie(o,t),Wt={attribute:!0,type:String,converter:W,reflect:!1,hasChanged:rt},Xt,Bt;(Xt=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Bt=C.litPropertyMetadata)!=null||(C.litPropertyMetadata=new WeakMap);var A=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=Wt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&He(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){var r;let{get:i,set:n}=(r=ke(this.prototype,t))!=null?r:{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,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:Wt}static _$Ei(){if(this.hasOwnProperty(V("elementProperties")))return;let t=Fe(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(V("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(V("properties"))){let e=this.properties,s=[...De(e),...qe(e)];for(let i of s)this.createProperty(i,e[i])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,i]of e)this.elementProperties.set(s,i)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let i=this._$Eu(e,s);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let i of s)e.unshift(ot(i))}else t!==void 0&&e.push(ot(t));return e}static _$Eu(t,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s: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,s;((e=this._$EO)!=null?e:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((s=t.hostConnected)==null||s.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var e;let t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return Et(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(s=>{var i;return(i=s.hostConnected)==null?void 0:i.call(s)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EC(t,e){var n;let s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){let r=(((n=s.converter)==null?void 0:n.toAttribute)!==void 0?s.converter:W).toAttribute(e,s.type);this._$Em=t,r==null?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){var n;let s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let r=s.getPropertyOptions(i),a=typeof r.converter=="function"?{fromAttribute:r.converter}:((n=r.converter)==null?void 0:n.fromAttribute)!==void 0?r.converter:W;this._$Em=i,this[i]=a.fromAttribute(e,r.type),this._$Em=null}}requestUpdate(t,e,s){var i;if(t!==void 0){if(s!=null||(s=this.constructor.getPropertyOptions(t)),!((i=s.hasChanged)!=null?i:rt)(this[t],e))return;this.P(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,s){var i;this._$AL.has(t)||this._$AL.set(t,e),s.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 s,i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((s=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[r,a]of this._$Ep)this[r]=a;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[r,a]of n)a.wrapped!==!0||this._$AL.has(r)||this[r]===void 0||this.P(r,this[r],a)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach(n=>{var r;return(r=n.hostUpdate)==null?void 0:r.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(s=>{var i;return(i=s.hostUpdated)==null?void 0:i.call(s)}),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){}},Zt;A.elementStyles=[],A.shadowRootOptions={mode:"open"},A[V("elementProperties")]=new Map,A[V("finalized")]=new Map,At==null||At({ReactiveElement:A}),((Zt=C.reactiveElementVersions)!=null?Zt:C.reactiveElementVersions=[]).push("2.0.4");var Ge={attribute:!0,type:String,converter:W,reflect:!1,hasChanged:rt},Ve=(o=Ge,t,e)=>{let{kind:s,metadata:i}=e,n=globalThis.litPropertyMetadata.get(i);if(n===void 0&&globalThis.litPropertyMetadata.set(i,n=new Map),n.set(e.name,o),s==="accessor"){let{name:r}=e;return{set(a){let l=t.get.call(this);t.set.call(this,a),this.requestUpdate(r,l,o)},init(a){return a!==void 0&&this.P(r,void 0,o),a}}}if(s==="setter"){let{name:r}=e;return function(a){let l=this[r];t.call(this,a),this.requestUpdate(r,l,o)}}throw Error("Unsupported decorator location: "+s)};function h(o){return(t,e)=>typeof e=="object"?Ve(o,t,e):((s,i,n)=>{let r=i.hasOwnProperty(n);return i.constructor.createProperty(n,r?{...s,wrapped:!0}:s),r?Object.getOwnPropertyDescriptor(i,n):void 0})(o,t,e)}function O(o){return h({...o,state:!0,attribute:!1})}var We={PREFIX:"mdc",SEPARATOR:"-"},Xe={NAMESPACE:We},St=Xe;var Be=o=>[St.NAMESPACE.PREFIX,o].join(St.NAMESPACE.SEPARATOR),y={constructTagName:Be};var at=y.constructTagName("themeprovider"),_t={THEMECLASS:"mds-theme-stable-darkWebex"};var B=globalThis,lt=B.trustedTypes,Yt=lt?lt.createPolicy("lit-html",{createHTML:o=>o}):void 0,ie="$lit$",w=`lit$${Math.random().toFixed(9).slice(2)}$`,oe="?"+w,Ze=`<${oe}>`,L=document,Z=()=>L.createComment(""),Y=o=>o===null||typeof o!="object"&&typeof o!="function",Pt=Array.isArray,Ye=o=>Pt(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",Tt=`[
2
- \f\r]`,X=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Kt=/-->/g,Jt=/>/g,P=RegExp(`>|${Tt}(?:([^\\s"'>=/]+)(${Tt}*=${Tt}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Qt=/'/g,te=/"/g,re=/^(?:script|style|textarea|title)$/i,Ut=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),p=Ut(1),Ys=Ut(2),Ks=Ut(3),S=Symbol.for("lit-noChange"),g=Symbol.for("lit-nothing"),ee=new WeakMap,U=L.createTreeWalker(L,129);function ne(o,t){if(!Pt(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Yt!==void 0?Yt.createHTML(t):t}var Ke=(o,t)=>{let e=o.length-1,s=[],i,n=t===2?"<svg>":t===3?"<math>":"",r=X;for(let a=0;a<e;a++){let l=o[a],u,c,m=-1,E=0;for(;E<l.length&&(r.lastIndex=E,c=r.exec(l),c!==null);)E=r.lastIndex,r===X?c[1]==="!--"?r=Kt:c[1]!==void 0?r=Jt:c[2]!==void 0?(re.test(c[2])&&(i=RegExp("</"+c[2],"g")),r=P):c[3]!==void 0&&(r=P):r===P?c[0]===">"?(r=i!=null?i:X,m=-1):c[1]===void 0?m=-2:(m=r.lastIndex-c[2].length,u=c[1],r=c[3]===void 0?P:c[3]==='"'?te:Qt):r===te||r===Qt?r=P:r===Kt||r===Jt?r=X:(r=P,i=void 0);let $=r===P&&o[a+1].startsWith("/>")?" ":"";n+=r===X?l+Ze:m>=0?(s.push(u),l.slice(0,m)+ie+l.slice(m)+w+$):l+w+(m===-2?a:$)}return[ne(o,n+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},K=class o{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let n=0,r=0,a=t.length-1,l=this.parts,[u,c]=Ke(t,e);if(this.el=o.createElement(u,s),U.currentNode=this.el.content,e===2||e===3){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(i=U.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let m of i.getAttributeNames())if(m.endsWith(ie)){let E=c[r++],$=i.getAttribute(m).split(w),et=/([.?@])?(.*)/.exec(E);l.push({type:1,index:n,name:et[2],strings:$,ctor:et[1]==="."?wt:et[1]==="?"?zt:et[1]==="@"?Nt:H}),i.removeAttribute(m)}else m.startsWith(w)&&(l.push({type:6,index:n}),i.removeAttribute(m));if(re.test(i.tagName)){let m=i.textContent.split(w),E=m.length-1;if(E>0){i.textContent=lt?lt.emptyScript:"";for(let $=0;$<E;$++)i.append(m[$],Z()),U.nextNode(),l.push({type:2,index:++n});i.append(m[E],Z())}}}else if(i.nodeType===8)if(i.data===oe)l.push({type:2,index:n});else{let m=-1;for(;(m=i.data.indexOf(w,m+1))!==-1;)l.push({type:7,index:n}),m+=w.length-1}n++}}static createElement(t,e){let s=L.createElement("template");return s.innerHTML=t,s}};function I(o,t,e=o,s){var r,a,l;if(t===S)return t;let i=s!==void 0?(r=e.o)==null?void 0:r[s]:e.l,n=Y(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,s)),s!==void 0?((l=e.o)!=null?l:e.o=[])[s]=i:e.l=i),i!==void 0&&(t=I(o,i._$AS(o,t.values),i,s)),t}var Ct=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 u;let{el:{content:e},parts:s}=this._$AD,i=((u=t==null?void 0:t.creationScope)!=null?u:L).importNode(e,!0);U.currentNode=i;let n=U.nextNode(),r=0,a=0,l=s[0];for(;l!==void 0;){if(r===l.index){let c;l.type===2?c=new J(n,n.nextSibling,this,t):l.type===1?c=new l.ctor(n,l.name,l.strings,this,t):l.type===6&&(c=new Rt(n,this,t)),this._$AV.push(c),l=s[++a]}r!==(l==null?void 0:l.index)&&(n=U.nextNode(),r++)}return U.currentNode=L,i}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},J=class o{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this.v}constructor(t,e,s,i){var n;this.type=2,this._$AH=g,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,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=I(this,t,e),Y(t)?t===g||t==null||t===""?(this._$AH!==g&&this._$AR(),this._$AH=g):t!==this._$AH&&t!==S&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ye(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==g&&Y(this._$AH)?this._$AA.nextSibling.data=t:this.T(L.createTextNode(t)),this._$AH=t}$(t){var n;let{values:e,_$litType$:s}=t,i=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=K.createElement(ne(s.h,s.h[0]),this.options)),s);if(((n=this._$AH)==null?void 0:n._$AD)===i)this._$AH.p(e);else{let r=new Ct(i,this),a=r.u(this.options);r.p(e),this.T(a),this._$AH=r}}_$AC(t){let e=ee.get(t.strings);return e===void 0&&ee.set(t.strings,e=new K(t)),e}k(t){Pt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,i=0;for(let n of t)i===e.length?e.push(s=new o(this.O(Z()),this.O(Z()),this,this.options)):s=e[i],s._$AI(n),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.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))}},H=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,n){this.type=1,this._$AH=g,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=g}_$AI(t,e=this,s,i){let n=this.strings,r=!1;if(n===void 0)t=I(this,t,e,0),r=!Y(t)||t!==this._$AH&&t!==S,r&&(this._$AH=t);else{let a=t,l,u;for(t=n[0],l=0;l<n.length-1;l++)u=I(this,a[s+l],e,l),u===S&&(u=this._$AH[l]),r||(r=!Y(u)||u!==this._$AH[l]),u===g?t=g:t!==g&&(t+=(u!=null?u:"")+n[l+1]),this._$AH[l]=u}r&&!i&&this.j(t)}j(t){t===g?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},wt=class extends H{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===g?void 0:t}},zt=class extends H{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==g)}},Nt=class extends H{constructor(t,e,s,i,n){super(t,e,s,i,n),this.type=5}_$AI(t,e=this){var r;if((t=(r=I(this,t,e,0))!=null?r:g)===S)return;let s=this._$AH,i=t===g&&s!==g||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==g&&(s===g||i);i&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,s;typeof this._$AH=="function"?this._$AH.call((s=(e=this.options)==null?void 0:e.host)!=null?s:this.element,t):this._$AH.handleEvent(t)}},Rt=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){I(this,t)}};var $t=B.litHtmlPolyfillSupport,se;$t==null||$t(K,J),((se=B.litHtmlVersions)!=null?se:B.litHtmlVersions=[]).push("3.2.0");var ae=(o,t,e)=>{var n,r;let s=(n=e==null?void 0:e.renderBefore)!=null?n:t,i=s._$litPart$;if(i===void 0){let a=(r=e==null?void 0:e.renderBefore)!=null?r:null;s._$litPart$=i=new J(t.insertBefore(Z(),a),a,void 0,e!=null?e:{})}return i._$AI(o),i};var z=class extends A{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var e,s;let t=super.createRenderRoot();return(s=(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=ae(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 S}},le;z._$litElement$=!0,z.finalized=!0,(le=globalThis.litElementHydrateSupport)==null||le.call(globalThis,{LitElement:z});var Lt=globalThis.litElementPolyfillSupport;Lt==null||Lt({LitElement:z});var de;((de=globalThis.litElementVersions)!=null?de:globalThis.litElementVersions=[]).push("4.1.0");var he=f`
1
+ "use strict";(()=>{var Me=Object.defineProperty;var ke=Object.getOwnPropertyDescriptor;var d=(o,t,e,r)=>{for(var s=r>1?void 0:r?ke(t,e):t,n=o.length-1,i;n>=0;n--)(i=o[n])&&(s=(r?i(t,e,s):i(s))||s);return r&&s&&Me(t,e,s),s};var it=globalThis,nt=it.ShadowRoot&&(it.ShadyCSS===void 0||it.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,St=Symbol(),Wt=new WeakMap,B=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==St)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(nt&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=Wt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&Wt.set(e,t))}return t}toString(){return this.cssText}},Yt=o=>new B(typeof o=="string"?o:o+"",void 0,St),g=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((r,s,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.")})(s)+o[n+1],o[0]);return new B(e,o,St)},Tt=(o,t)=>{if(nt)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),s=it.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=e.cssText,o.appendChild(r)}},at=nt?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return Yt(e)})(o):o;var{is:He,defineProperty:De,getOwnPropertyDescriptor:qe,getOwnPropertyNames:Fe,getOwnPropertySymbols:Ge,getPrototypeOf:Ve}=Object,w=globalThis,Zt=w.trustedTypes,je=Zt?Zt.emptyScript:"",Ct=w.reactiveElementPolyfillSupport,X=(o,t)=>o,W={toAttribute(o,t){switch(t){case Boolean:o=o?je: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}},lt=(o,t)=>!He(o,t),Kt={attribute:!0,type:String,converter:W,reflect:!1,hasChanged:lt},Jt,Qt;(Jt=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Qt=w.litPropertyMetadata)!=null||(w.litPropertyMetadata=new WeakMap);var _=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=Kt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let r=Symbol(),s=this.getPropertyDescriptor(t,r,e);s!==void 0&&De(this.prototype,t,s)}}static getPropertyDescriptor(t,e,r){var i;let{get:s,set:n}=(i=qe(this.prototype,t))!=null?i:{get(){return this[e]},set(a){this[e]=a}};return{get(){return s==null?void 0:s.call(this)},set(a){let l=s==null?void 0:s.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:Kt}static _$Ei(){if(this.hasOwnProperty(X("elementProperties")))return;let t=Ve(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(X("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(X("properties"))){let e=this.properties,r=[...Fe(e),...Ge(e)];for(let s of r)this.createProperty(s,e[s])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,s]of e)this.elementProperties.set(r,s)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let s=this._$Eu(e,r);s!==void 0&&this._$Eh.set(s,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 s of r)e.unshift(at(s))}else t!==void 0&&e.push(at(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 Tt(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 s;return(s=r.hostConnected)==null?void 0:s.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),s=this.constructor._$Eu(t,r);if(s!==void 0&&r.reflect===!0){let i=(((n=r.converter)==null?void 0:n.toAttribute)!==void 0?r.converter:W).toAttribute(e,r.type);this._$Em=t,i==null?this.removeAttribute(s):this.setAttribute(s,i),this._$Em=null}}_$AK(t,e){var n;let r=this.constructor,s=r._$Eh.get(t);if(s!==void 0&&this._$Em!==s){let i=r.getPropertyOptions(s),a=typeof i.converter=="function"?{fromAttribute:i.converter}:((n=i.converter)==null?void 0:n.fromAttribute)!==void 0?i.converter:W;this._$Em=s,this[s]=a.fromAttribute(e,i.type),this._$Em=null}}requestUpdate(t,e,r){var s;if(t!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(t)),!((s=r.hasChanged)!=null?s:lt)(this[t],e))return;this.P(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,r){var s;this._$AL.has(t)||this._$AL.set(t,e),r.reflect===!0&&this._$Em!==t&&((s=this._$Ej)!=null?s: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,s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[i,a]of this._$Ep)this[i]=a;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,a]of n)a.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],a)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(n=>{var i;return(i=n.hostUpdate)==null?void 0:i.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 s;return(s=r.hostUpdated)==null?void 0:s.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){}},te;_.elementStyles=[],_.shadowRootOptions={mode:"open"},_[X("elementProperties")]=new Map,_[X("finalized")]=new Map,Ct==null||Ct({ReactiveElement:_}),((te=w.reactiveElementVersions)!=null?te:w.reactiveElementVersions=[]).push("2.0.4");var Be={attribute:!0,type:String,converter:W,reflect:!1,hasChanged:lt},Xe=(o=Be,t,e)=>{let{kind:r,metadata:s}=e,n=globalThis.litPropertyMetadata.get(s);if(n===void 0&&globalThis.litPropertyMetadata.set(s,n=new Map),n.set(e.name,o),r==="accessor"){let{name:i}=e;return{set(a){let l=t.get.call(this);t.set.call(this,a),this.requestUpdate(i,l,o)},init(a){return a!==void 0&&this.P(i,void 0,o),a}}}if(r==="setter"){let{name:i}=e;return function(a){let l=this[i];t.call(this,a),this.requestUpdate(i,l,o)}}throw Error("Unsupported decorator location: "+r)};function c(o){return(t,e)=>typeof e=="object"?Xe(o,t,e):((r,s,n)=>{let i=s.hasOwnProperty(n);return s.constructor.createProperty(n,i?{...r,wrapped:!0}:r),i?Object.getOwnPropertyDescriptor(s,n):void 0})(o,t,e)}function k(o){return c({...o,state:!0,attribute:!1})}var We={PREFIX:"mdc",SEPARATOR:"-"},Ye={NAMESPACE:We},$t=Ye;var Ze=o=>[$t.NAMESPACE.PREFIX,o].join($t.NAMESPACE.SEPARATOR),x={constructTagName:Ze};var ct=x.constructTagName("themeprovider"),Nt={THEMECLASS:"mds-theme-stable-darkWebex"};var Z=globalThis,mt=Z.trustedTypes,ee=mt?mt.createPolicy("lit-html",{createHTML:o=>o}):void 0,le="$lit$",R=`lit$${Math.random().toFixed(9).slice(2)}$`,de="?"+R,Ke=`<${de}>`,L=document,K=()=>L.createComment(""),J=o=>o===null||typeof o!="object"&&typeof o!="function",Lt=Array.isArray,Je=o=>Lt(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",wt=`[
2
+ \f\r]`,Y=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,re=/-->/g,se=/>/g,U=RegExp(`>|${wt}(?:([^\\s"'>=/]+)(${wt}*=${wt}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),oe=/'/g,ie=/"/g,ce=/^(?:script|style|textarea|title)$/i,Mt=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),h=Mt(1),Kr=Mt(2),Jr=Mt(3),S=Symbol.for("lit-noChange"),f=Symbol.for("lit-nothing"),ne=new WeakMap,I=L.createTreeWalker(L,129);function me(o,t){if(!Lt(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return ee!==void 0?ee.createHTML(t):t}var Qe=(o,t)=>{let e=o.length-1,r=[],s,n=t===2?"<svg>":t===3?"<math>":"",i=Y;for(let a=0;a<e;a++){let l=o[a],u,p,m=-1,A=0;for(;A<l.length&&(i.lastIndex=A,p=i.exec(l),p!==null);)A=i.lastIndex,i===Y?p[1]==="!--"?i=re:p[1]!==void 0?i=se:p[2]!==void 0?(ce.test(p[2])&&(s=RegExp("</"+p[2],"g")),i=U):p[3]!==void 0&&(i=U):i===U?p[0]===">"?(i=s!=null?s:Y,m=-1):p[1]===void 0?m=-2:(m=i.lastIndex-p[2].length,u=p[1],i=p[3]===void 0?U:p[3]==='"'?ie:oe):i===ie||i===oe?i=U:i===re||i===se?i=Y:(i=U,s=void 0);let N=i===U&&o[a+1].startsWith("/>")?" ":"";n+=i===Y?l+Ke:m>=0?(r.push(u),l.slice(0,m)+le+l.slice(m)+R+N):l+R+(m===-2?a:N)}return[me(o,n+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},Q=class o{constructor({strings:t,_$litType$:e},r){let s;this.parts=[];let n=0,i=0,a=t.length-1,l=this.parts,[u,p]=Qe(t,e);if(this.el=o.createElement(u,r),I.currentNode=this.el.content,e===2||e===3){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(s=I.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(let m of s.getAttributeNames())if(m.endsWith(le)){let A=p[i++],N=s.getAttribute(m).split(R),ot=/([.?@])?(.*)/.exec(A);l.push({type:1,index:n,name:ot[2],strings:N,ctor:ot[1]==="."?Ot:ot[1]==="?"?Pt:ot[1]==="@"?Ut:D}),s.removeAttribute(m)}else m.startsWith(R)&&(l.push({type:6,index:n}),s.removeAttribute(m));if(ce.test(s.tagName)){let m=s.textContent.split(R),A=m.length-1;if(A>0){s.textContent=mt?mt.emptyScript:"";for(let N=0;N<A;N++)s.append(m[N],K()),I.nextNode(),l.push({type:2,index:++n});s.append(m[A],K())}}}else if(s.nodeType===8)if(s.data===de)l.push({type:2,index:n});else{let m=-1;for(;(m=s.data.indexOf(R,m+1))!==-1;)l.push({type:7,index:n}),m+=R.length-1}n++}}static createElement(t,e){let r=L.createElement("template");return r.innerHTML=t,r}};function H(o,t,e=o,r){var i,a,l;if(t===S)return t;let s=r!==void 0?(i=e.o)==null?void 0:i[r]:e.l,n=J(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==n&&((a=s==null?void 0:s._$AO)==null||a.call(s,!1),n===void 0?s=void 0:(s=new n(o),s._$AT(o,e,r)),r!==void 0?((l=e.o)!=null?l:e.o=[])[r]=s:e.l=s),s!==void 0&&(t=H(o,s._$AS(o,t.values),s,r)),t}var zt=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 u;let{el:{content:e},parts:r}=this._$AD,s=((u=t==null?void 0:t.creationScope)!=null?u:L).importNode(e,!0);I.currentNode=s;let n=I.nextNode(),i=0,a=0,l=r[0];for(;l!==void 0;){if(i===l.index){let p;l.type===2?p=new tt(n,n.nextSibling,this,t):l.type===1?p=new l.ctor(n,l.name,l.strings,this,t):l.type===6&&(p=new It(n,this,t)),this._$AV.push(p),l=r[++a]}i!==(l==null?void 0:l.index)&&(n=I.nextNode(),i++)}return I.currentNode=L,s}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++}},tt=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,s){var n;this.type=2,this._$AH=f,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=s,this.v=(n=s==null?void 0:s.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=H(this,t,e),J(t)?t===f||t==null||t===""?(this._$AH!==f&&this._$AR(),this._$AH=f):t!==this._$AH&&t!==S&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Je(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!==f&&J(this._$AH)?this._$AA.nextSibling.data=t:this.T(L.createTextNode(t)),this._$AH=t}$(t){var n;let{values:e,_$litType$:r}=t,s=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=Q.createElement(me(r.h,r.h[0]),this.options)),r);if(((n=this._$AH)==null?void 0:n._$AD)===s)this._$AH.p(e);else{let i=new zt(s,this),a=i.u(this.options);i.p(e),this.T(a),this._$AH=i}}_$AC(t){let e=ne.get(t.strings);return e===void 0&&ne.set(t.strings,e=new Q(t)),e}k(t){Lt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,s=0;for(let n of t)s===e.length?e.push(r=new o(this.O(K()),this.O(K()),this,this.options)):r=e[s],r._$AI(n),s++;s<e.length&&(this._$AR(r&&r._$AB.nextSibling,s),e.length=s)}_$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 s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this.v=t,(e=this._$AP)==null||e.call(this,t))}},D=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,s,n){this.type=1,this._$AH=f,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=f}_$AI(t,e=this,r,s){let n=this.strings,i=!1;if(n===void 0)t=H(this,t,e,0),i=!J(t)||t!==this._$AH&&t!==S,i&&(this._$AH=t);else{let a=t,l,u;for(t=n[0],l=0;l<n.length-1;l++)u=H(this,a[r+l],e,l),u===S&&(u=this._$AH[l]),i||(i=!J(u)||u!==this._$AH[l]),u===f?t=f:t!==f&&(t+=(u!=null?u:"")+n[l+1]),this._$AH[l]=u}i&&!s&&this.j(t)}j(t){t===f?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},Ot=class extends D{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===f?void 0:t}},Pt=class extends D{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==f)}},Ut=class extends D{constructor(t,e,r,s,n){super(t,e,r,s,n),this.type=5}_$AI(t,e=this){var i;if((t=(i=H(this,t,e,0))!=null?i:f)===S)return;let r=this._$AH,s=t===f&&r!==f||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==f&&(r===f||s);s&&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)}},It=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){H(this,t)}};var Rt=Z.litHtmlPolyfillSupport,ae;Rt==null||Rt(Q,tt),((ae=Z.litHtmlVersions)!=null?ae:Z.litHtmlVersions=[]).push("3.2.0");var he=(o,t,e)=>{var n,i;let r=(n=e==null?void 0:e.renderBefore)!=null?n:t,s=r._$litPart$;if(s===void 0){let a=(i=e==null?void 0:e.renderBefore)!=null?i:null;r._$litPart$=s=new tt(t.insertBefore(K(),a),a,void 0,e!=null?e:{})}return s._$AI(o),s};var z=class extends _{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=he(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 S}},pe;z._$litElement$=!0,z.finalized=!0,(pe=globalThis.litElementHydrateSupport)==null||pe.call(globalThis,{LitElement:z});var kt=globalThis.litElementPolyfillSupport;kt==null||kt({LitElement:z});var ue;((ue=globalThis.litElementVersions)!=null?ue:globalThis.litElementVersions=[]).push("4.1.0");var ge=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 dt=class extends z{static register(t){customElements.get(t)||customElements.define(t,this)}};dt.styles=[he];var pe=dt;var x=pe;var N=class extends Event{constructor(t,e,s){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=e,this.subscribe=s!=null?s:!1}};var k=class{constructor(t,e,s,i){var n;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(r,a)=>{this.unsubscribe&&(this.unsubscribe!==a&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=r,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(r,a)),this.unsubscribe=a},this.host=t,e.context!==void 0){let r=e;this.context=r.context,this.callback=r.callback,this.subscribe=(n=r.subscribe)!=null?n:!1}else this.context=e,this.callback=s,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 N(this.context,this.t,this.subscribe))}};var ht=class{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){let s=e||!Object.is(t,this.o);this.o=t,s&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(let[e,{disposer:s}]of this.subscriptions)e(this.o,s)},t!==void 0&&(this.value=t)}addCallback(t,e,s){if(!s)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 Mt=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},D=class extends ht{constructor(t,e,s){var i,n;super(e.context!==void 0?e.initialValue:s),this.onContextRequest=r=>{let a=r.composedPath()[0];r.context===this.context&&a!==this.host&&(r.stopPropagation(),this.addCallback(r.callback,a,r.subscribe))},this.onProviderRequest=r=>{let a=r.composedPath()[0];if(r.context!==this.context||a===this.host)return;let l=new Set;for(let[u,{consumerHost:c}]of this.subscriptions)l.has(u)||(l.add(u),c.dispatchEvent(new N(this.context,u,!0)));r.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 Mt(this.context))}};var Je=f`
13
+ `;var ht=class extends z{static register(t){customElements.get(t)||customElements.define(t,this)}};ht.styles=[ge];var fe=ht;var b=fe;var O=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 q=class{constructor(t,e,r,s){var n;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(i,a)=>{this.unsubscribe&&(this.unsubscribe!==a&&(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,a)),this.unsubscribe=a},this.host=t,e.context!==void 0){let i=e;this.context=i.context,this.callback=i.callback,this.subscribe=(n=i.subscribe)!=null?n:!1}else this.context=e,this.callback=r,this.subscribe=s!=null?s:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new O(this.context,this.t,this.subscribe))}};var pt=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:s}=this.subscriptions.get(t);t(this.value,s)}clearCallbacks(){this.subscriptions.clear()}};var Ht=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},F=class extends pt{constructor(t,e,r){var s,n;super(e.context!==void 0?e.initialValue:r),this.onContextRequest=i=>{let a=i.composedPath()[0];i.context===this.context&&a!==this.host&&(i.stopPropagation(),this.addCallback(i.callback,a,i.subscribe))},this.onProviderRequest=i=>{let a=i.composedPath()[0];if(i.context!==this.context||a===this.host)return;let l=new Set;for(let[u,{consumerHost:p}]of this.subscriptions)l.has(u)||(l.add(u),p.dispatchEvent(new O(this.context,u,!0)));i.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(n=(s=this.host).addController)==null||n.call(s,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Ht(this.context))}};var tr=g`
14
14
  :host {
15
15
  display: contents;
16
16
  }
17
- `,ce=Je;var pt=class extends x{constructor({context:t,initialValue:e}){super(),this.context=new D(this,{context:t,initialValue:e})}render(){return this.updateContext(),p`<slot></slot>`}};pt.styles=[...x.styles,ce];var ue=pt;var q=ue;var mt=class{constructor(t){this.themeclass=t}};mt.context=at;var ct=mt;var Qe=f`
17
+ `,ve=tr;var ut=class extends b{constructor({context:t,initialValue:e}){super(),this.context=new F(this,{context:t,initialValue:e})}render(){return this.updateContext(),h`<slot></slot>`}};ut.styles=[...b.styles,ve];var xe=ut;var G=xe;var gt=class{constructor(t){this.themeclass=t}};gt.context=ct;var ft=gt;var er=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);
@@ -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
- `,fe=[Qe];var F=class extends q{constructor(){super({context:ct.context,initialValue:new ct(_t.THEMECLASS)});this.themeclass=_t.THEMECLASS}static get Context(){return ct.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(" "))}};F.styles=[...q.styles,...fe],d([O()],F.prototype,"currentThemeClass",2),d([h({type:String})],F.prototype,"themeclass",2);var Ot=F;Ot.register(at);var ts=Ot;var ut=f`
30
+ `,ye=[er];var V=class extends G{constructor(){super({context:ft.context,initialValue:new ft(Nt.THEMECLASS)});this.themeclass=Nt.THEMECLASS}static get Context(){return ft.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(" "))}};V.styles=[...G.styles,...ye],d([k()],V.prototype,"currentThemeClass",2),d([c({type:String})],V.prototype,"themeclass",2);var Dt=V;Dt.register(ct);var rr=Dt;var bt=g`
31
31
  :host {
32
32
  align-items: center;
33
33
  display: flex;
@@ -35,7 +35,7 @@
35
35
  justify-content: center;
36
36
  width: fit-content;
37
37
  }
38
- `,yo=f`
38
+ `,yo=g`
39
39
  :host {
40
40
  --mdc-focus-ring-inner-color: var(--mds-color-theme-focus-0);
41
41
  --mdc-focus-ring-middle-color: var(--mds-color-theme-focus-1);
@@ -56,7 +56,7 @@
56
56
  0 0 0 var(--mdc-focus-ring-middle-width) var(--mdc-focus-ring-middle-color),
57
57
  0 0 0 var(--mdc-focus-ring-outer-width) var(--mdc-focus-ring-outer-color);
58
58
  }
59
- `;var es=[ut,f`
59
+ `;var sr=[bt,g`
60
60
  :host {
61
61
  --mdc-icon-fill-color: currentColor;
62
62
  }
@@ -65,7 +65,7 @@
65
65
  width: 100%;
66
66
  fill: var(--mdc-icon-fill-color);
67
67
  }
68
- `],ge=es;var ss=o=>{let{host:t,context:e,subscribe:s}=o;return new k(t,{context:e,subscribe:s!=null?s:!0})},is={consume:ss},xe=is;var ft=y.constructTagName("iconprovider"),ve=["svg"],ye=["em","rem","px"],_={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",LENGTH_UNIT_SIZE:{px:16,em:1,rem:1}};var gt=class{};gt.context=ft;var xt=gt;var M=class extends q{constructor(){super({context:xt.context,initialValue:new xt});this.fileExtension=_.FILE_EXTENSION;this.lengthUnit=_.LENGTH_UNIT;this.size=_.LENGTH_UNIT_SIZE[_.LENGTH_UNIT]}static get Context(){return xt.context}updateValuesInContext(){this.fileExtension&&ve.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=_.FILE_EXTENSION,this.context.value.fileExtension=_.FILE_EXTENSION),this.context.value.url=this.url,this.context.value.size=this.size,this.lengthUnit&&ye.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=_.LENGTH_UNIT,this.context.value.lengthUnit=_.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())}};d([h({type:String})],M.prototype,"url",2),d([h({type:String,attribute:"file-extension",reflect:!0})],M.prototype,"fileExtension",2),d([h({type:String,attribute:"length-unit",reflect:!0})],M.prototype,"lengthUnit",2),d([h({type:Number,reflect:!0})],M.prototype,"size",2);var Q=M;var be=async(o,t,e)=>{let s=await fetch(`${o}/${t}.${e}`);if(!s.ok)throw new Error("There was a problem while fetching the icon!");let i=await s.text();return new DOMParser().parseFromString(i,"text/html").body.children[0]};var Ee=y.constructTagName("icon"),It={NAME:void 0,SIZE:1};var b=class extends x{constructor(){super(...arguments);this.name=It.NAME;this.ariaLabel=null;this.iconProviderContext=xe.consume({host:this,context:Q.Context})}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:e,url:s}=this.iconProviderContext.value;if(s&&e&&this.name){let i=await be(s,this.name,e);this.iconData=i,this.setRoleOnIcon(),this.setAriaLabelOnIcon(),this.setAriaHiddenOnIcon()}}}updateSize(){var e;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let s=`${this.computedIconSize}${(e=this.lengthUnit)!=null?e:this.lengthUnitFromContext}`;this.style.width=s,this.style.height=s}}setRoleOnIcon(){this.role=this.ariaLabel?"img":null}setAriaHiddenOnIcon(){var e;(e=this.iconData)==null||e.setAttribute("aria-hidden","true")}setAriaLabelOnIcon(){var e,s;this.ariaLabel?(e=this.iconData)==null||e.setAttribute("aria-label",this.ariaLabel):(s=this.iconData)==null||s.removeAttribute("aria-label")}get computedIconSize(){var e,s;return(s=(e=this.size)!=null?e:this.sizeFromContext)!=null?s:It.SIZE}updated(e){var s,i,n,r;super.updated(e),e.has("name")&&this.getIconData().catch(a=>{console.error(a)}),e.has("ariaLabel")&&(this.setRoleOnIcon(),this.setAriaLabelOnIcon()),(e.has("size")||e.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((s=this.iconProviderContext.value)==null?void 0:s.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=(r=this.iconProviderContext.value)==null?void 0:r.size,this.updateSize())}render(){return p` ${this.iconData} `}};b.styles=[...x.styles,...ge],d([O()],b.prototype,"iconData",2),d([O()],b.prototype,"lengthUnitFromContext",2),d([O()],b.prototype,"sizeFromContext",2),d([h({type:String,reflect:!0})],b.prototype,"name",2),d([h({type:Number})],b.prototype,"size",2),d([h({type:String,attribute:"length-unit"})],b.prototype,"lengthUnit",2),d([h({type:String,attribute:"aria-label"})],b.prototype,"ariaLabel",2);var Ht=b;Ht.register(Ee);var os=Ht;Q.register(ft);var rs=Q;var tt=o=>o!=null?o:g;var ns=f`
68
+ `],Ee=sr;var or=o=>{let{host:t,context:e,subscribe:r}=o;return new q(t,{context:e,subscribe:r!=null?r:!0})},ir={consume:or},Ae=ir;var vt=x.constructTagName("iconprovider"),_e=["svg"],Se=["em","rem","px"],T={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",LENGTH_UNIT_SIZE:{px:16,em:1,rem:1}};var xt=class{};xt.context=vt;var yt=xt;var M=class extends G{constructor(){super({context:yt.context,initialValue:new yt});this.fileExtension=T.FILE_EXTENSION;this.lengthUnit=T.LENGTH_UNIT;this.size=T.LENGTH_UNIT_SIZE[T.LENGTH_UNIT]}static get Context(){return yt.context}updateValuesInContext(){this.fileExtension&&_e.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=T.FILE_EXTENSION,this.context.value.fileExtension=T.FILE_EXTENSION),this.context.value.url=this.url,this.context.value.size=this.size,this.lengthUnit&&Se.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=T.LENGTH_UNIT,this.context.value.lengthUnit=T.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())}};d([c({type:String})],M.prototype,"url",2),d([c({type:String,attribute:"file-extension",reflect:!0})],M.prototype,"fileExtension",2),d([c({type:String,attribute:"length-unit",reflect:!0})],M.prototype,"lengthUnit",2),d([c({type:Number,reflect:!0})],M.prototype,"size",2);var et=M;var Te=async(o,t,e)=>{let r=await fetch(`${o}/${t}.${e}`);if(!r.ok)throw new Error("There was a problem while fetching the icon!");let s=await r.text();return new DOMParser().parseFromString(s,"text/html").body.children[0]};var Ce=x.constructTagName("icon"),qt={NAME:void 0,SIZE:1};var y=class extends b{constructor(){super(...arguments);this.name=qt.NAME;this.ariaLabel=null;this.iconProviderContext=Ae.consume({host:this,context:et.Context})}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:e,url:r}=this.iconProviderContext.value;if(r&&e&&this.name){let s=await Te(r,this.name,e);this.iconData=s,this.setRoleOnIcon(),this.setAriaLabelOnIcon(),this.setAriaHiddenOnIcon()}}}updateSize(){var e;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let r=`${this.computedIconSize}${(e=this.lengthUnit)!=null?e:this.lengthUnitFromContext}`;this.style.width=r,this.style.height=r}}setRoleOnIcon(){this.role=this.ariaLabel?"img":null}setAriaHiddenOnIcon(){var e;(e=this.iconData)==null||e.setAttribute("aria-hidden","true")}setAriaLabelOnIcon(){var e,r;this.ariaLabel?(e=this.iconData)==null||e.setAttribute("aria-label",this.ariaLabel):(r=this.iconData)==null||r.removeAttribute("aria-label")}get computedIconSize(){var e,r;return(r=(e=this.size)!=null?e:this.sizeFromContext)!=null?r:qt.SIZE}updated(e){var r,s,n,i;super.updated(e),e.has("name")&&this.getIconData().catch(a=>{console.error(a)}),e.has("ariaLabel")&&(this.setRoleOnIcon(),this.setAriaLabelOnIcon()),(e.has("size")||e.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((r=this.iconProviderContext.value)==null?void 0:r.lengthUnit)&&(this.lengthUnitFromContext=(s=this.iconProviderContext.value)==null?void 0:s.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 h` ${this.iconData} `}};y.styles=[...b.styles,...Ee],d([k()],y.prototype,"iconData",2),d([k()],y.prototype,"lengthUnitFromContext",2),d([k()],y.prototype,"sizeFromContext",2),d([c({type:String,reflect:!0})],y.prototype,"name",2),d([c({type:Number})],y.prototype,"size",2),d([c({type:String,attribute:"length-unit"})],y.prototype,"lengthUnit",2),d([c({type:String,attribute:"aria-label"})],y.prototype,"ariaLabel",2);var Ft=y;Ft.register(Ce);var nr=Ft;et.register(vt);var ar=et;var rt=o=>o!=null?o:f;var lr=g`
69
69
  :host {
70
70
  display: flex;
71
71
  justify-content: center;
@@ -80,33 +80,88 @@
80
80
  width: inherit;
81
81
  object-fit: cover;
82
82
  }
83
- `,Ae=[ns];var Se=y.constructTagName("avatar"),_e="rem",kt={TYPE:"photo",SIZE:1.5};var R=class extends x{constructor(){super(...arguments);this.type=kt.TYPE;this.size=kt.SIZE}updateSize(){if(this.size){let e=`${this.size}${_e}`;this.style.width=e,this.style.height=e}}updated(e){super.updated(e),e.has("size")&&this.updateSize()}photoTemplate(){return p`
83
+ `,$e=[lr];var Ne=x.constructTagName("avatar"),we="rem",Gt={TYPE:"photo",SIZE:1.5};var P=class extends b{constructor(){super(...arguments);this.type=Gt.TYPE;this.size=Gt.SIZE}updateSize(){if(this.size){let e=`${this.size}${we}`;this.style.width=e,this.style.height=e}}updated(e){super.updated(e),e.has("size")&&this.updateSize()}photoTemplate(){return h`
84
84
  <img
85
- src="${tt(this.src)}"
86
- alt="${tt(this.alt)}"
85
+ src="${rt(this.src)}"
86
+ alt="${rt(this.alt)}"
87
87
  />
88
- `}render(){let e;return this.type==="photo"?e=this.photoTemplate():e=p``,p`${e}`}};R.styles=[...x.styles,...Ae],d([h({type:String,reflect:!0})],R.prototype,"type",2),d([h({type:String})],R.prototype,"alt",2),d([h({type:String})],R.prototype,"src",2),d([h({type:Number})],R.prototype,"size",2);var Dt=R;Dt.register(Se);var as=Dt;var Te={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},$e=o=>(...t)=>({_$litDirective$:o,values:t}),vt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this.t=t,this._$AM=e,this.i=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var Ce="important",ls=" !"+Ce,we=$e(class extends vt{constructor(o){var t;if(super(o),o.type!==Te.ATTRIBUTE||o.name!=="style"||((t=o.strings)==null?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((t,e)=>{let s=o[e];return s==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(o,[t]){let{style:e}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let s of this.ft)t[s]==null&&(this.ft.delete(s),s.includes("-")?e.removeProperty(s):e[s]=null);for(let s in t){let i=t[s];if(i!=null){this.ft.add(s);let n=typeof i=="string"&&i.endsWith(ls);s.includes("-")||n?e.setProperty(s,n?i.slice(0,-11):i,n?Ce:""):e[s]=i}}return S}});var ze=y.constructTagName("badge"),Ne="warning-badge-filled",yt={TYPE:"regular",SIZE:1,LENGTH_UNIT:"rem"};var ds=[ut,f`
88
+ `}render(){let e;return this.type==="photo"?e=this.photoTemplate():e=h``,h`${e}`}};P.styles=[...b.styles,...$e],d([c({type:String,reflect:!0})],P.prototype,"type",2),d([c({type:String})],P.prototype,"alt",2),d([c({type:String})],P.prototype,"src",2),d([c({type:Number})],P.prototype,"size",2);var Vt=P;Vt.register(Ne);var dr=Vt;var Re={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ze=o=>(...t)=>({_$litDirective$:o,values:t}),Et=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 At=ze(class extends Et{constructor(o){var t;if(super(o),o.type!==Re.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,s;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 i=!!t[n];i===this.st.has(n)||(s=this.nt)!=null&&s.has(n)||(i?(e.add(n),this.st.add(n)):(e.remove(n),this.st.delete(n)))}return S}});var Oe=x.constructTagName("badge"),C={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},_t={SUCCESS_ICON_NAME:"check-circle-filled",WARNING_ICON_NAME:"warning-filled",ERROR_ICON_NAME:"error-legacy-filled"},jt={PRIMARY:"primary",SECONDARY:"secondary"},st={SUCCESS:"success",WARNING:"warning",ERROR:"error"},$={TYPE:C.DOT,LENGTH_UNIT:"rem",MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:jt.PRIMARY,ICON_SIZE:1};var cr=[bt,g`
89
89
  :host {
90
- --mdc-badge-icon-background-color: var(--mds-color-theme-background-accent-normal);
91
- --mdc-badge-icon-color: var(--mds-color-theme-common-text-primary-normal);
90
+ --mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
91
+ --mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
92
+
93
+ --mdc-badge-secondary-foreground-color: var(--mds-color-theme-text-secondary-normal);
94
+ --mdc-badge-secondary-background-color: var(--mds-color-theme-background-alert-default-normal);
95
+
96
+ --mdc-badge-success-foreground-color: var(--mds-color-theme-text-success-normal);
97
+ --mdc-badge-success-background-color: var(--mds-color-theme-background-alert-success-normal);
98
+
99
+ --mdc-badge-warning-foreground-color: var(--mds-color-theme-text-warning-normal);
100
+ --mdc-badge-warning-background-color: var(--mds-color-theme-background-alert-warning-normal);
101
+
102
+ --mdc-badge-error-foreground-color: var(--mds-color-theme-text-error-normal);
103
+ --mdc-badge-error-background-color: var(--mds-color-theme-background-alert-error-normal);
104
+
105
+ --mdc-badge-overlay-background-color: var(--mds-color-theme-background-solid-primary-normal);
106
+
107
+ color: var(--mdc-badge-primary-foreground-color);
92
108
  }
93
-
94
- .mdc-badge-container {
109
+ .mdc-badge-overlay {
110
+ outline: 0.0625rem solid var(--mdc-badge-overlay-background-color);
111
+ }
112
+ .mdc-badge-text {
113
+ padding: 0 0.25rem;
114
+ border-radius: 6.25rem;
115
+ min-width: 1rem;
95
116
  display: flex;
96
117
  justify-content: center;
97
- align-items: center;
98
- border-radius: 9999px;
99
- background-color: var(--mdc-badge-icon-background-color);
100
- color: var(--mdc-badge-icon-color);
118
+ background-color: var(--mdc-badge-primary-background-color);
101
119
  }
102
-
103
- .mdc-badge-icon-container {
104
- height: 80%;
105
- width: 80%;
120
+ .mdc-badge-dot {
121
+ width: 0.75rem;
122
+ height: 0.75rem;
123
+ border-radius: 50%;
124
+ background-color: var(--mdc-badge-primary-background-color);
125
+ }
126
+ .mdc-badge-icon {
127
+ padding: 2px;
128
+ border-radius: 50%;
129
+ }
130
+ .mdc-badge-icon__primary {
131
+ background-color: var(--mdc-badge-primary-background-color);
132
+ }
133
+ .mdc-badge-icon__success {
134
+ background-color: var(--mdc-badge-success-background-color);
135
+ color: var(--mdc-badge-success-foreground-color);
136
+ }
137
+ .mdc-badge-icon__warning {
138
+ background-color: var(--mdc-badge-warning-background-color);
139
+ color: var(--mdc-badge-warning-foreground-color);
140
+ }
141
+ .mdc-badge-icon__error {
142
+ background-color: var(--mdc-badge-error-background-color);
143
+ color: var(--mdc-badge-error-foreground-color);
144
+ }
145
+ .mdc-badge-icon__secondary {
146
+ background-color: var(--mdc-badge-secondary-background-color);
147
+ color: var(--mdc-badge-secondary-foreground-color);
106
148
  }
107
- `],Re=ds;var T=class extends x{constructor(){super(...arguments);this.type=yt.TYPE;this.size=yt.SIZE;this.lengthUnit=yt.LENGTH_UNIT}updateSize(){}updated(e){super.updated(e),(e.has("size")||e.has("lengthUnit"))&&this.updateSize()}iconTemplate(){return p`<div class="mdc-badge-icon-container">
108
- <mdc-icon name=${tt(this.iconName)} size="100" length-unit="%"></mdc-icon>
109
- </div>`}textTemplate(){return p`${this.text}`}warningTemplate(){return p` <mdc-icon name="${Ne}" class="mdc-badge-warning"></mdc-icon> `}render(){let e,s=`${this.size}${this.lengthUnit}`,i={width:s,height:s};switch(this.type){case"regular":e=p``;break;case"icon":e=this.iconTemplate();break;case"text":e=this.textTemplate(),i={height:i.height};break;case"warning":e=this.warningTemplate();break;default:e=p``;break}return p`<div class="mdc-badge-container" style=${we(i)}>${e}</div>`}};T.styles=[...x.styles,...Re],d([h({type:String,reflect:!0})],T.prototype,"type",2),d([h({type:Number})],T.prototype,"size",2),d([h({type:String,attribute:"length-unit"})],T.prototype,"lengthUnit",2),d([h({type:String,attribute:"icon-name"})],T.prototype,"iconName",2),d([h({type:String})],T.prototype,"text",2);var qt=T;qt.register(ze);var hs=qt;var Pe=f`
149
+ `],Pe=cr;var E=class extends b{constructor(){super(...arguments);this.type=$.TYPE;this.variant=$.VARIANT;this.maxCounter=$.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,r){return r===void 0||typeof r!="number"?"":r>$.MAX_COUNTER_LIMIT?`${$.MAX_COUNTER_LIMIT}+`:r>e?`${e}+`:r.toString()}getBadgeIcon(e,r,s,n){return h`
150
+ <mdc-icon
151
+ class="mdc-badge-icon ${At(this.getIconClasses(r,s,n))}"
152
+ name="${rt(e)}"
153
+ length-unit="${$.LENGTH_UNIT}"
154
+ size="${$.ICON_SIZE}"
155
+ ></mdc-icon>
156
+ `}getBadgeDot(e){return h`<div class="mdc-badge-dot ${At({"mdc-badge-overlay":e})}"></div>`}getIconClasses(e,r,s){let n={"mdc-badge-overlay":e},i=s===C.ICON?jt:st,l={[`mdc-badge-icon__${Object.values(i).includes(r)?r:$.VARIANT}`]:!0};return{...n,...l}}getBadgeCounterText(e,r,s){return h`
157
+ <mdc-text
158
+ type="body-small-medium"
159
+ tagname="div"
160
+ class="mdc-badge-text ${At({"mdc-badge-overlay":r})}"
161
+ >
162
+ ${this.getCounterText(e,s)}
163
+ </mdc-text>
164
+ `}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){let{counter:e,iconName:r,maxCounter:s,overlay:n,type:i,variant:a}=this;switch(i){case C.DOT:return this.getBadgeDot(n);case C.ICON:return this.getBadgeIcon(r||"",n,a,i);case C.COUNTER:return this.getBadgeCounterText(s,n,e);case C.SUCCESS:return this.getBadgeIcon(_t.SUCCESS_ICON_NAME,n,st.SUCCESS);case C.WARNING:return this.getBadgeIcon(_t.WARNING_ICON_NAME,n,st.WARNING);case C.ERROR:return this.getBadgeIcon(_t.ERROR_ICON_NAME,n,st.ERROR);default:return h``}}update(e){super.update(e),e.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};E.styles=[...b.styles,...Pe],d([c({type:String,reflect:!0})],E.prototype,"type",2),d([c({type:String,attribute:"icon-name"})],E.prototype,"iconName",2),d([c({type:String})],E.prototype,"variant",2),d([c({type:Number})],E.prototype,"counter",2),d([c({type:Number,attribute:"max-counter"})],E.prototype,"maxCounter",2),d([c({type:Boolean})],E.prototype,"overlay",2),d([c({type:String,attribute:"aria-label"})],E.prototype,"ariaLabel",2);var Bt=E;var Ue=g`
110
165
  :host([type="headline-small-regular"])::part(text) {
111
166
  font-size: var(--mds-font-apps-headline-small-regular-font-size);
112
167
  font-weight: var(--mds-font-apps-headline-small-regular-font-weight);
@@ -338,14 +393,14 @@
338
393
  text-decoration: var(--mds-font-apps-body-small-regular-text-decoration);
339
394
  text-transform: var(--mds-font-apps-body-small-regular-text-case);
340
395
  }
341
- `;var ps=[f`
396
+ `;var mr=[g`
342
397
  :host {
343
398
  --mdc-text-font-family: var(--mdc-themeprovider-font-family);
344
399
 
345
400
  display: block;
346
401
  font-family: var(--mdc-text-font-family);
347
402
  }
348
- `,Pe],Ue=ps;var Le=y.constructTagName("text");var v={TYPE:"body-midsize-regular",TEXT_ELEMENT_TAGNAME:"p",CSS_PART_TEXT:"text"};var j=class extends x{constructor(){super(...arguments);this.type=v.TYPE;this.tagname=v.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case"h1":return p`<h1 part=${v.CSS_PART_TEXT}><slot></slot></h1>`;case"h2":return p`<h2 part=${v.CSS_PART_TEXT}><slot></slot></h2>`;case"h3":return p`<h3 part=${v.CSS_PART_TEXT}><slot></slot></h3>`;case"h4":return p`<h4 part=${v.CSS_PART_TEXT}><slot></slot></h4>`;case"h5":return p`<h5 part=${v.CSS_PART_TEXT}><slot></slot></h5>`;case"h6":return p`<h6 part=${v.CSS_PART_TEXT}><slot></slot></h6>`;case"div":return p`<div part=${v.CSS_PART_TEXT}><slot></slot></div>`;case"span":return p`<span part=${v.CSS_PART_TEXT}><slot></slot></span>`;case"small":return p`<small part=${v.CSS_PART_TEXT}><slot></slot></small>`;case"p":default:return p`<p part=${v.CSS_PART_TEXT}><slot></slot></p>`}}};j.styles=[...x.styles,...Ue],d([h({attribute:"type",reflect:!0,type:String})],j.prototype,"type",2),d([h({attribute:"tagname",reflect:!0,type:String})],j.prototype,"tagname",2);var Ft=j;Ft.register(Le);var ms=Ft;})();
403
+ `,Ue],Ie=mr;var Le=x.constructTagName("text");var v={TYPE:"body-midsize-regular",TEXT_ELEMENT_TAGNAME:"p",CSS_PART_TEXT:"text"};var j=class extends b{constructor(){super(...arguments);this.type=v.TYPE;this.tagname=v.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case"h1":return h`<h1 part=${v.CSS_PART_TEXT}><slot></slot></h1>`;case"h2":return h`<h2 part=${v.CSS_PART_TEXT}><slot></slot></h2>`;case"h3":return h`<h3 part=${v.CSS_PART_TEXT}><slot></slot></h3>`;case"h4":return h`<h4 part=${v.CSS_PART_TEXT}><slot></slot></h4>`;case"h5":return h`<h5 part=${v.CSS_PART_TEXT}><slot></slot></h5>`;case"h6":return h`<h6 part=${v.CSS_PART_TEXT}><slot></slot></h6>`;case"div":return h`<div part=${v.CSS_PART_TEXT}><slot></slot></div>`;case"span":return h`<span part=${v.CSS_PART_TEXT}><slot></slot></span>`;case"small":return h`<small part=${v.CSS_PART_TEXT}><slot></slot></small>`;case"p":default:return h`<p part=${v.CSS_PART_TEXT}><slot></slot></p>`}}};j.styles=[...b.styles,...Ie],d([c({attribute:"type",reflect:!0,type:String})],j.prototype,"type",2),d([c({attribute:"tagname",reflect:!0,type:String})],j.prototype,"tagname",2);var Xt=j;Xt.register(Le);var hr=Xt;Bt.register(Oe);var pr=Bt;})();
349
404
  /*! Bundled license information:
350
405
 
351
406
  @lit/reactive-element/decorators/custom-element.js:
@@ -523,7 +578,7 @@ lit-html/directive.js:
523
578
  * SPDX-License-Identifier: BSD-3-Clause
524
579
  *)
525
580
 
526
- lit-html/directives/style-map.js:
581
+ lit-html/directives/class-map.js:
527
582
  (**
528
583
  * @license
529
584
  * Copyright 2018 Google LLC