@momentum-design/components 0.3.0 → 0.4.1

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 He=Object.defineProperty;var ke=Object.getOwnPropertyDescriptor;var l=(r,t,e,s)=>{for(var i=s>1?void 0:s?ke(t,e):t,n=r.length-1,o;n>=0;n--)(o=r[n])&&(i=(s?o(t,e,i):o(i))||i);return s&&i&&He(t,e,i),i};var et=globalThis,st=et.ShadowRoot&&(et.ShadyCSS===void 0||et.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,bt=Symbol(),qt=new WeakMap,q=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(st&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=qt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&qt.set(e,t))}return t}toString(){return this.cssText}},jt=r=>new q(typeof r=="string"?r:r+"",void 0,bt),f=(r,...t)=>{let e=r.length===1?r[0]:t.reduce((s,i,n)=>s+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+r[n+1],r[0]);return new q(e,r,bt)},Et=(r,t)=>{if(st)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let s=document.createElement("style"),i=et.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,r.appendChild(s)}},it=st?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return jt(e)})(r):r;var{is:De,defineProperty:Fe,getOwnPropertyDescriptor:qe,getOwnPropertyNames:je,getOwnPropertySymbols:Ge,getPrototypeOf:Ve}=Object,C=globalThis,Gt=C.trustedTypes,We=Gt?Gt.emptyScript:"",At=C.reactiveElementPolyfillSupport,j=(r,t)=>r,G={toAttribute(r,t){switch(t){case Boolean:r=r?We:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},rt=(r,t)=>!De(r,t),Vt={attribute:!0,type:String,converter:G,reflect:!1,hasChanged:rt},Wt,Bt;(Wt=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Bt=C.litPropertyMetadata)!=null||(C.litPropertyMetadata=new WeakMap);var E=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=Vt){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&&Fe(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){var o;let{get:i,set:n}=(o=qe(this.prototype,t))!=null?o:{get(){return this[e]},set(a){this[e]=a}};return{get(){return i==null?void 0:i.call(this)},set(a){let c=i==null?void 0:i.call(this);n.call(this,a),this.requestUpdate(t,c,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:Vt}static _$Ei(){if(this.hasOwnProperty(j("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(j("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(j("properties"))){let e=this.properties,s=[...je(e),...Ge(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(it(i))}else t!==void 0&&e.push(it(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 o=(((n=s.converter)==null?void 0:n.toAttribute)!==void 0?s.converter:G).toAttribute(e,s.type);this._$Em=t,o==null?this.removeAttribute(i):this.setAttribute(i,o),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 o=s.getPropertyOptions(i),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((n=o.converter)==null?void 0:n.fromAttribute)!==void 0?o.converter:G;this._$Em=i,this[i]=a.fromAttribute(e,o.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[o,a]of this._$Ep)this[o]=a;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[o,a]of n)a.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],a)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach(n=>{var o;return(o=n.hostUpdate)==null?void 0:o.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){}},Yt;E.elementStyles=[],E.shadowRootOptions={mode:"open"},E[j("elementProperties")]=new Map,E[j("finalized")]=new Map,At==null||At({ReactiveElement:E}),((Yt=C.reactiveElementVersions)!=null?Yt:C.reactiveElementVersions=[]).push("2.0.4");var Be={attribute:!0,type:String,converter:G,reflect:!1,hasChanged:rt},Ye=(r=Be,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,r),s==="accessor"){let{name:o}=e;return{set(a){let c=t.get.call(this);t.set.call(this,a),this.requestUpdate(o,c,r)},init(a){return a!==void 0&&this.P(o,void 0,r),a}}}if(s==="setter"){let{name:o}=e;return function(a){let c=this[o];t.call(this,a),this.requestUpdate(o,c,r)}}throw Error("Unsupported decorator location: "+s)};function h(r){return(t,e)=>typeof e=="object"?Ye(r,t,e):((s,i,n)=>{let o=i.hasOwnProperty(n);return i.constructor.createProperty(n,o?{...s,wrapped:!0}:s),o?Object.getOwnPropertyDescriptor(i,n):void 0})(r,t,e)}function M(r){return h({...r,state:!0,attribute:!1})}var Ze={PREFIX:"mdc",SEPARATOR:"-"},Xe={NAMESPACE:Ze},St=Xe;var Ke=r=>[St.NAMESPACE.PREFIX,r].join(St.NAMESPACE.SEPARATOR),x={constructTagName:Ke};var nt=x.constructTagName("themeprovider"),at={THEMECLASS:"mds-theme-stable-darkWebex",TYPOGRAPHYCLASS:"mds-typography"};var W=globalThis,ct=W.trustedTypes,Zt=ct?ct.createPolicy("lit-html",{createHTML:r=>r}):void 0,se="$lit$",T=`lit$${Math.random().toFixed(9).slice(2)}$`,ie="?"+T,Je=`<${ie}>`,L=document,B=()=>L.createComment(""),Y=r=>r===null||typeof r!="object"&&typeof r!="function",Pt=Array.isArray,Qe=r=>Pt(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",_t=`[
2
- \f\r]`,V=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Xt=/-->/g,Kt=/>/g,P=RegExp(`>|${_t}(?:([^\\s"'>=/]+)(${_t}*=${_t}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Jt=/'/g,Qt=/"/g,re=/^(?:script|style|textarea|title)$/i,Ut=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),g=Ut(1),Qs=Ut(2),ti=Ut(3),A=Symbol.for("lit-noChange"),u=Symbol.for("lit-nothing"),te=new WeakMap,U=L.createTreeWalker(L,129);function oe(r,t){if(!Pt(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Zt!==void 0?Zt.createHTML(t):t}var ts=(r,t)=>{let e=r.length-1,s=[],i,n=t===2?"<svg>":t===3?"<math>":"",o=V;for(let a=0;a<e;a++){let c=r[a],m,d,p=-1,b=0;for(;b<c.length&&(o.lastIndex=b,d=o.exec(c),d!==null);)b=o.lastIndex,o===V?d[1]==="!--"?o=Xt:d[1]!==void 0?o=Kt:d[2]!==void 0?(re.test(d[2])&&(i=RegExp("</"+d[2],"g")),o=P):d[3]!==void 0&&(o=P):o===P?d[0]===">"?(o=i!=null?i:V,p=-1):d[1]===void 0?p=-2:(p=o.lastIndex-d[2].length,m=d[1],o=d[3]===void 0?P:d[3]==='"'?Qt:Jt):o===Qt||o===Jt?o=P:o===Xt||o===Kt?o=V:(o=P,i=void 0);let $=o===P&&r[a+1].startsWith("/>")?" ":"";n+=o===V?c+Je:p>=0?(s.push(m),c.slice(0,p)+se+c.slice(p)+T+$):c+T+(p===-2?a:$)}return[oe(r,n+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},Z=class r{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let n=0,o=0,a=t.length-1,c=this.parts,[m,d]=ts(t,e);if(this.el=r.createElement(m,s),U.currentNode=this.el.content,e===2||e===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(i=U.nextNode())!==null&&c.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let p of i.getAttributeNames())if(p.endsWith(se)){let b=d[o++],$=i.getAttribute(p).split(T),tt=/([.?@])?(.*)/.exec(b);c.push({type:1,index:n,name:tt[2],strings:$,ctor:tt[1]==="."?Tt:tt[1]==="?"?Nt:tt[1]==="@"?wt:z}),i.removeAttribute(p)}else p.startsWith(T)&&(c.push({type:6,index:n}),i.removeAttribute(p));if(re.test(i.tagName)){let p=i.textContent.split(T),b=p.length-1;if(b>0){i.textContent=ct?ct.emptyScript:"";for(let $=0;$<b;$++)i.append(p[$],B()),U.nextNode(),c.push({type:2,index:++n});i.append(p[b],B())}}}else if(i.nodeType===8)if(i.data===ie)c.push({type:2,index:n});else{let p=-1;for(;(p=i.data.indexOf(T,p+1))!==-1;)c.push({type:7,index:n}),p+=T.length-1}n++}}static createElement(t,e){let s=L.createElement("template");return s.innerHTML=t,s}};function I(r,t,e=r,s){var o,a,c;if(t===A)return t;let i=s!==void 0?(o=e.o)==null?void 0:o[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(r),i._$AT(r,e,s)),s!==void 0?((c=e.o)!=null?c:e.o=[])[s]=i:e.l=i),i!==void 0&&(t=I(r,i._$AS(r,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 m;let{el:{content:e},parts:s}=this._$AD,i=((m=t==null?void 0:t.creationScope)!=null?m:L).importNode(e,!0);U.currentNode=i;let n=U.nextNode(),o=0,a=0,c=s[0];for(;c!==void 0;){if(o===c.index){let d;c.type===2?d=new X(n,n.nextSibling,this,t):c.type===1?d=new c.ctor(n,c.name,c.strings,this,t):c.type===6&&(d=new Rt(n,this,t)),this._$AV.push(d),c=s[++a]}o!==(c==null?void 0:c.index)&&(n=U.nextNode(),o++)}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++}},X=class r{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=u,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===u||t==null||t===""?(this._$AH!==u&&this._$AR(),this._$AH=u):t!==this._$AH&&t!==A&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Qe(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!==u&&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=Z.createElement(oe(s.h,s.h[0]),this.options)),s);if(((n=this._$AH)==null?void 0:n._$AD)===i)this._$AH.p(e);else{let o=new Ct(i,this),a=o.u(this.options);o.p(e),this.T(a),this._$AH=o}}_$AC(t){let e=te.get(t.strings);return e===void 0&&te.set(t.strings,e=new Z(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 r(this.O(B()),this.O(B()),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))}},z=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,n){this.type=1,this._$AH=u,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=u}_$AI(t,e=this,s,i){let n=this.strings,o=!1;if(n===void 0)t=I(this,t,e,0),o=!Y(t)||t!==this._$AH&&t!==A,o&&(this._$AH=t);else{let a=t,c,m;for(t=n[0],c=0;c<n.length-1;c++)m=I(this,a[s+c],e,c),m===A&&(m=this._$AH[c]),o||(o=!Y(m)||m!==this._$AH[c]),m===u?t=u:t!==u&&(t+=(m!=null?m:"")+n[c+1]),this._$AH[c]=m}o&&!i&&this.j(t)}j(t){t===u?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},Tt=class extends z{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===u?void 0:t}},Nt=class extends z{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==u)}},wt=class extends z{constructor(t,e,s,i,n){super(t,e,s,i,n),this.type=5}_$AI(t,e=this){var o;if((t=(o=I(this,t,e,0))!=null?o:u)===A)return;let s=this._$AH,i=t===u&&s!==u||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==u&&(s===u||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=W.litHtmlPolyfillSupport,ee;$t==null||$t(Z,X),((ee=W.litHtmlVersions)!=null?ee:W.litHtmlVersions=[]).push("3.2.0");var ne=(r,t,e)=>{var n,o;let s=(n=e==null?void 0:e.renderBefore)!=null?n:t,i=s._$litPart$;if(i===void 0){let a=(o=e==null?void 0:e.renderBefore)!=null?o:null;s._$litPart$=i=new X(t.insertBefore(B(),a),a,void 0,e!=null?e:{})}return i._$AI(r),i};var N=class extends E{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=ne(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 A}},ae;N._$litElement$=!0,N.finalized=!0,(ae=globalThis.litElementHydrateSupport)==null||ae.call(globalThis,{LitElement:N});var Lt=globalThis.litElementPolyfillSupport;Lt==null||Lt({LitElement:N});var ce;((ce=globalThis.litElementVersions)!=null?ce:globalThis.litElementVersions=[]).push("4.1.0");var le=f`
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,Et=Symbol(),Gt=new WeakMap,j=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==Et)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=Gt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Gt.set(e,t))}return t}toString(){return this.cssText}},jt=o=>new j(typeof o=="string"?o:o+"",void 0,Et),g=(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 j(e,o,Et)},At=(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 jt(e)})(o):o;var{is:Ie,defineProperty:He,getOwnPropertyDescriptor:ke,getOwnPropertyNames:De,getOwnPropertySymbols:qe,getPrototypeOf:Fe}=Object,C=globalThis,Vt=C.trustedTypes,Ge=Vt?Vt.emptyScript:"",St=C.reactiveElementPolyfillSupport,V=(o,t)=>o,W={toAttribute(o,t){switch(t){case Boolean:o=o?Ge: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 At(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){}},Yt;A.elementStyles=[],A.shadowRootOptions={mode:"open"},A[V("elementProperties")]=new Map,A[V("finalized")]=new Map,St==null||St({ReactiveElement:A}),((Yt=C.reactiveElementVersions)!=null?Yt:C.reactiveElementVersions=[]).push("2.0.4");var je={attribute:!0,type:String,converter:W,reflect:!1,hasChanged:rt},Ve=(o=je,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},_t=Xe;var Be=o=>[_t.NAMESPACE.PREFIX,o].join(_t.NAMESPACE.SEPARATOR),y={constructTagName:Be};var at=y.constructTagName("themeprovider"),lt={THEMECLASS:"mds-theme-stable-darkWebex",TYPOGRAPHYCLASS:"mds-typography"};var B=globalThis,dt=B.trustedTypes,Zt=dt?dt.createPolicy("lit-html",{createHTML:o=>o}):void 0,ie="$lit$",z=`lit$${Math.random().toFixed(9).slice(2)}$`,oe="?"+z,Ye=`<${oe}>`,L=document,Y=()=>L.createComment(""),Z=o=>o===null||typeof o!="object"&&typeof o!="function",Pt=Array.isArray,Ze=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),Zs=Ut(2),Ks=Ut(3),S=Symbol.for("lit-noChange"),f=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 Zt!==void 0?Zt.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+Ye:m>=0?(s.push(u),l.slice(0,m)+ie+l.slice(m)+z+$):l+z+(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(z),et=/([.?@])?(.*)/.exec(E);l.push({type:1,index:n,name:et[2],strings:$,ctor:et[1]==="."?zt:et[1]==="?"?wt:et[1]==="@"?Nt:H}),i.removeAttribute(m)}else m.startsWith(z)&&(l.push({type:6,index:n}),i.removeAttribute(m));if(re.test(i.tagName)){let m=i.textContent.split(z),E=m.length-1;if(E>0){i.textContent=dt?dt.emptyScript:"";for(let $=0;$<E;$++)i.append(m[$],Y()),U.nextNode(),l.push({type:2,index:++n});i.append(m[E],Y())}}}else if(i.nodeType===8)if(i.data===oe)l.push({type:2,index:n});else{let m=-1;for(;(m=i.data.indexOf(z,m+1))!==-1;)l.push({type:7,index:n}),m+=z.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=Z(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=f,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),Z(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):Ze(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&&Z(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(Y()),this.O(Y()),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=f,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=f}_$AI(t,e=this,s,i){let n=this.strings,r=!1;if(n===void 0)t=I(this,t,e,0),r=!Z(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=!Z(u)||u!==this._$AH[l]),u===f?t=f:t!==f&&(t+=(u!=null?u:"")+n[l+1]),this._$AH[l]=u}r&&!i&&this.j(t)}j(t){t===f?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},zt=class extends H{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===f?void 0:t}},wt=class extends H{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==f)}},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:f)===S)return;let s=this._$AH,i=t===f&&s!==f||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==f&&(s===f||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(Y(),a),a,void 0,e!=null?e:{})}return i._$AI(o),i};var w=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;w._$litElement$=!0,w.finalized=!0,(le=globalThis.litElementHydrateSupport)==null||le.call(globalThis,{LitElement:w});var Lt=globalThis.litElementPolyfillSupport;Lt==null||Lt({LitElement:w});var de;((de=globalThis.litElementVersions)!=null?de:globalThis.litElementVersions=[]).push("4.1.0");var he=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 lt=class extends N{static register(t){customElements.get(t)||customElements.define(t,this)}};lt.styles=[le];var he=lt;var y=he;var w=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 H=class{constructor(t,e,s,i){var n;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(o,a)=>{this.unsubscribe&&(this.unsubscribe!==a&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=o,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(o,a)),this.unsubscribe=a},this.host=t,e.context!==void 0){let o=e;this.context=o.context,this.callback=o.callback,this.subscribe=(n=o.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 w(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 Ot=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},k=class extends ht{constructor(t,e,s){var i,n;super(e.context!==void 0?e.initialValue:s),this.onContextRequest=o=>{let a=o.composedPath()[0];o.context===this.context&&a!==this.host&&(o.stopPropagation(),this.addCallback(o.callback,a,o.subscribe))},this.onProviderRequest=o=>{let a=o.composedPath()[0];if(o.context!==this.context||a===this.host)return;let c=new Set;for(let[m,{consumerHost:d}]of this.subscriptions)c.has(m)||(c.add(m),d.dispatchEvent(new w(this.context,m,!0)));o.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 Ot(this.context))}};var es=f`
13
+ `;var ht=class extends w{static register(t){customElements.get(t)||customElements.define(t,this)}};ht.styles=[he];var pe=ht;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 pt=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 pt{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=g`
14
14
  :host {
15
15
  display: contents;
16
16
  }
17
- `,de=es;var pt=class extends y{constructor({context:t,initialValue:e}){super(),this.context=new k(this,{context:t,initialValue:e})}render(){return this.updateContext(),g`<slot></slot>`}};pt.styles=[...y.styles,de];var me=pt;var D=me;var dt=class{constructor(t){this.themeclass=t}};dt.context=nt;var mt=dt;var ss=f`
17
+ `,ce=Je;var mt=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>`}};mt.styles=[...x.styles,ce];var ue=mt;var q=ue;var ct=class{constructor(t){this.themeclass=t}};ct.context=at;var ut=ct;var Qe=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
- `,ue=[ss];var F=class extends D{constructor(){super({context:mt.context,initialValue:new mt(at.THEMECLASS)});this.themeclass=at.THEMECLASS}static get Context(){return mt.context}connectedCallback(){super.connectedCallback(),this.classList.add(at.TYPOGRAPHYCLASS)}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=[...D.styles,...ue],l([M()],F.prototype,"currentThemeClass",2),l([h({type:String})],F.prototype,"themeclass",2);var Mt=F;Mt.register(nt);var is=Mt;var ut=f`
30
+ `,fe=[Qe];var F=class extends q{constructor(){super({context:ut.context,initialValue:new ut(lt.THEMECLASS)});this.themeclass=lt.THEMECLASS}static get Context(){return ut.context}connectedCallback(){super.connectedCallback(),this.classList.add(lt.TYPOGRAPHYCLASS)}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 ft=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
- `;var rs=[ut,f`
38
+ `;var es=[ft,g`
39
39
  :host {
40
40
  --mdc-icon-fill-color: currentColor;
41
41
  }
@@ -44,7 +44,7 @@
44
44
  width: 100%;
45
45
  fill: var(--mdc-icon-fill-color);
46
46
  }
47
- `],fe=rs;var os=r=>{let{host:t,context:e,subscribe:s}=r;return new H(t,{context:e,subscribe:s!=null?s:!0})},ns={consume:os},ge=ns;var ft=x.constructTagName("iconprovider"),ye=["svg"],xe=["em","rem","px"],S={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",LENGTH_UNIT_SIZE:{px:16,em:1,rem:1}};var gt=class{};gt.context=ft;var yt=gt;var O=class extends D{constructor(){super({context:yt.context,initialValue:new yt});this.fileExtension=S.FILE_EXTENSION;this.lengthUnit=S.LENGTH_UNIT;this.size=S.LENGTH_UNIT_SIZE[S.LENGTH_UNIT]}static get Context(){return yt.context}updateValuesInContext(){this.fileExtension&&ye.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=S.FILE_EXTENSION,this.context.value.fileExtension=S.FILE_EXTENSION),this.context.value.url=this.url,this.context.value.size=this.size,this.lengthUnit&&xe.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=S.LENGTH_UNIT,this.context.value.lengthUnit=S.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())}};l([h({type:String})],O.prototype,"url",2),l([h({type:String,attribute:"file-extension",reflect:!0})],O.prototype,"fileExtension",2),l([h({type:String,attribute:"length-unit",reflect:!0})],O.prototype,"lengthUnit",2),l([h({type:Number,reflect:!0})],O.prototype,"size",2);var K=O;var ve=async(r,t,e)=>{let s=await fetch(`${r}/${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 be=x.constructTagName("icon"),It={NAME:void 0,SIZE:1};var v=class extends y{constructor(){super(...arguments);this.name=It.NAME;this.ariaLabel=null;this.iconProviderContext=ge.consume({host:this,context:K.Context})}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:e,url:s}=this.iconProviderContext.value;if(s&&e&&this.name){let i=await ve(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,o;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=(o=this.iconProviderContext.value)==null?void 0:o.size,this.updateSize())}render(){return g` ${this.iconData} `}};v.styles=[...y.styles,...fe],l([M()],v.prototype,"iconData",2),l([M()],v.prototype,"lengthUnitFromContext",2),l([M()],v.prototype,"sizeFromContext",2),l([h({type:String,reflect:!0})],v.prototype,"name",2),l([h({type:Number})],v.prototype,"size",2),l([h({type:String,attribute:"length-unit"})],v.prototype,"lengthUnit",2),l([h({type:String,attribute:"aria-label"})],v.prototype,"ariaLabel",2);var zt=v;zt.register(be);var as=zt;K.register(ft);var cs=K;var J=r=>r!=null?r:u;var ls=f`
47
+ `],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 gt=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 xt=class{};xt.context=gt;var vt=xt;var M=class extends q{constructor(){super({context:vt.context,initialValue:new vt});this.fileExtension=_.FILE_EXTENSION;this.lengthUnit=_.LENGTH_UNIT;this.size=_.LENGTH_UNIT_SIZE[_.LENGTH_UNIT]}static get Context(){return vt.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(gt);var rs=Q;var tt=o=>o!=null?o:f;var ns=g`
48
48
  :host {
49
49
  display: flex;
50
50
  justify-content: center;
@@ -59,12 +59,12 @@
59
59
  width: inherit;
60
60
  object-fit: cover;
61
61
  }
62
- `,Ee=[ls];var Ae=x.constructTagName("avatar"),Se="rem",Ht={TYPE:"photo",SIZE:1.5};var R=class extends y{constructor(){super(...arguments);this.type=Ht.TYPE;this.size=Ht.SIZE}updateSize(){if(this.size){let e=`${this.size}${Se}`;this.style.width=e,this.style.height=e}}updated(e){super.updated(e),e.has("size")&&this.updateSize()}photoTemplate(){return g`
62
+ `,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`
63
63
  <img
64
- src="${J(this.src)}"
65
- alt="${J(this.alt)}"
64
+ src="${tt(this.src)}"
65
+ alt="${tt(this.alt)}"
66
66
  />
67
- `}render(){let e;return this.type==="photo"?e=this.photoTemplate():e=g``,g`${e}`}};R.styles=[...y.styles,...Ee],l([h({type:String,reflect:!0})],R.prototype,"type",2),l([h({type:String})],R.prototype,"alt",2),l([h({type:String})],R.prototype,"src",2),l([h({type:Number})],R.prototype,"size",2);var kt=R;kt.register(Ae);var hs=kt;var _e={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},$e=r=>(...t)=>({_$litDirective$:r,values:t}),xt=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",ps=" !"+Ce,Te=$e(class extends xt{constructor(r){var t;if(super(r),r.type!==_e.ATTRIBUTE||r.name!=="style"||((t=r.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(r){return Object.keys(r).reduce((t,e)=>{let s=r[e];return s==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(r,[t]){let{style:e}=r.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(ps);s.includes("-")||n?e.setProperty(s,n?i.slice(0,-11):i,n?Ce:""):e[s]=i}}return A}});var Ne=x.constructTagName("badge"),we="warning-badge-filled",vt={TYPE:"regular",SIZE:1,LENGTH_UNIT:"rem"};var ds=[ut,f`
67
+ `}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}),yt=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,ze=$e(class extends yt{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 we=y.constructTagName("badge"),Ne="warning-badge-filled",bt={TYPE:"regular",SIZE:1,LENGTH_UNIT:"rem"};var ds=[ft,g`
68
68
  :host {
69
69
  --mdc-badge-icon-background-color: var(--mds-color-theme-background-accent-normal);
70
70
  --mdc-badge-icon-color: var(--mds-color-theme-common-text-primary-normal);
@@ -83,110 +83,248 @@
83
83
  height: 80%;
84
84
  width: 80%;
85
85
  }
86
- `],Re=ds;var _=class extends y{constructor(){super(...arguments);this.type=vt.TYPE;this.size=vt.SIZE;this.lengthUnit=vt.LENGTH_UNIT}updateSize(){}updated(e){super.updated(e),(e.has("size")||e.has("lengthUnit"))&&this.updateSize()}iconTemplate(){return g`<div class="mdc-badge-icon-container">
87
- <mdc-icon name=${J(this.iconName)} size="100" length-unit="%"></mdc-icon>
88
- </div>`}textTemplate(){return g`${this.text}`}warningTemplate(){return g` <mdc-icon name="${we}" 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=g``;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=g``;break}return g`<div class="mdc-badge-container" style=${Te(i)}>${e}</div>`}};_.styles=[...y.styles,...Re],l([h({type:String,reflect:!0})],_.prototype,"type",2),l([h({type:Number})],_.prototype,"size",2),l([h({type:String,attribute:"length-unit"})],_.prototype,"lengthUnit",2),l([h({type:String,attribute:"icon-name"})],_.prototype,"iconName",2),l([h({type:String})],_.prototype,"text",2);var Dt=_;Dt.register(Ne);var ms=Dt;var Pe=f`
89
- :host([type="heading-1"]) {
90
- font-size: 7.5rem;
91
- font-style: normal;
92
- font-weight: 700;
93
- line-height: 125%; /* 9.375rem */
94
- text-transform: capitalize;
95
- }
96
-
97
- :host([type="heading-2"]) {
98
- font-size: 6rem;
99
- font-style: normal;
100
- font-weight: 700;
101
- line-height: 125%; /* 7.5rem */
102
- text-transform: capitalize;
103
- }
104
-
105
- :host([type="heading-3"]) {
106
- font-size: 3rem;
107
- font-style: normal;
108
- font-weight: 700;
109
- line-height: 125%; /* 3.75rem */
110
- }
111
-
112
- :host([type="heading-4"]) {
113
- font-size: 2.5rem;
114
- font-style: normal;
115
- font-weight: 700;
116
- line-height: 125%; /* 3.125rem */
117
- }
118
-
119
- :host([type="heading-5"]) {
120
- font-size: 2rem;
121
- font-style: normal;
122
- font-weight: 700;
123
- line-height: 125%; /* 2.5rem */
124
- letter-spacing: 0.5rem;
125
- text-transform: uppercase;
126
- }
127
-
128
- :host([type="heading-6"]) {
129
- font-size: 1.75rem;
130
- font-style: normal;
131
- font-weight: 700;
132
- line-height: 3rem; /* 171.429% */
133
- }
134
-
135
- :host([type="heading-7"]) {
136
- font-size: 1.5rem;
137
- font-style: normal;
138
- font-weight: 700;
139
- line-height: 140%; /* 2.1rem */
140
- }
141
-
142
- :host([type="body-large"]) {
143
- font-size: 2rem;
144
- font-style: normal;
145
- font-weight: 400;
146
- line-height: 150%; /* 3rem */
147
- margin-block-end: 1.875em; /* paragraph spacing, 30px */
148
- }
149
-
150
- :host([type="body-regular"]) {
151
- font-size: 1.5rem;
152
- font-style: normal;
153
- font-weight: 400;
154
- line-height: 150%; /* 2.25rem */
155
- margin-block-end: 1.5em; /* paragraph spacing, 24px */
156
- }
157
-
158
- :host([type="body-small"]) {
159
- font-size: 1.25rem;
160
- font-style: normal;
161
- font-weight: 400;
162
- line-height: 150%; /* 1.875rem */
163
- margin-block-end: 0.125rem; /* paragraph spacing, 2px */
164
- }
165
-
166
- :host([type="image-title"]) {
167
- font-size: 1rem;
168
- font-style: normal;
169
- font-weight: 700;
170
- line-height: 150%; /* 1.5rem */
171
- letter-spacing: 0.04rem;
172
- text-transform: uppercase;
173
- }
174
-
175
- :host([type="label"]) {
176
- font-size: 1rem;
177
- font-style: normal;
178
- font-weight: 700;
179
- line-height: 150%; /* 1.5rem */
180
- letter-spacing: 0.02rem;
181
- }
182
- `;var us=[f`
86
+ `],Re=ds;var T=class extends x{constructor(){super(...arguments);this.type=bt.TYPE;this.size=bt.SIZE;this.lengthUnit=bt.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">
87
+ <mdc-icon name=${tt(this.iconName)} size="100" length-unit="%"></mdc-icon>
88
+ </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=${ze(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(we);var hs=qt;var Pe=g`
89
+ :host([type="headline-small-regular"])::part(text) {
90
+ font-size: var(--mds-font-apps-headline-small-regular-font-size);
91
+ font-weight: var(--mds-font-apps-headline-small-regular-font-weight);
92
+ line-height: var(--mds-font-apps-headline-small-regular-line-height);
93
+ text-decoration: var(--mds-font-apps-headline-small-regular-text-decoration);
94
+ text-transform: var(--mds-font-apps-headline-small-regular-text-case);
95
+ }
96
+
97
+ :host([type="headline-small-light"])::part(text) {
98
+ font-size: var(--mds-font-apps-headline-small-light-font-size);
99
+ font-weight: var(--mds-font-apps-headline-small-light-font-weight);
100
+ line-height: var(--mds-font-apps-headline-small-light-line-height);
101
+ text-decoration: var(--mds-font-apps-headline-small-light-text-decoration);
102
+ text-transform: var(--mds-font-apps-headline-small-light-text-case);
103
+ }
104
+
105
+ :host([type="heading-xlarge-bold"])::part(text) {
106
+ font-size: var(--mds-font-apps-heading-xlarge-bold-font-size);
107
+ font-weight: var(--mds-font-apps-heading-xlarge-bold-font-weight);
108
+ line-height: var(--mds-font-apps-heading-xlarge-bold-line-height);
109
+ text-decoration: var(--mds-font-apps-heading-xlarge-bold-text-decoration);
110
+ text-transform: var(--mds-font-apps-heading-xlarge-bold-text-case);
111
+ }
112
+
113
+ :host([type="heading-xlarge-medium"])::part(text) {
114
+ font-size: var(--mds-font-apps-heading-xlarge-medium-font-size);
115
+ font-weight: var(--mds-font-apps-heading-xlarge-medium-font-weight);
116
+ line-height: var(--mds-font-apps-heading-xlarge-medium-line-height);
117
+ text-decoration: var(--mds-font-apps-heading-xlarge-medium-text-decoration);
118
+ text-transform: var(--mds-font-apps-heading-xlarge-medium-text-case);
119
+ }
120
+
121
+ :host([type="heading-xlarge-regular"])::part(text) {
122
+ font-size: var(--mds-font-apps-heading-xlarge-regular-font-size);
123
+ font-weight: var(--mds-font-apps-heading-xlarge-regular-font-weight);
124
+ line-height: var(--mds-font-apps-heading-xlarge-regular-line-height);
125
+ text-decoration: var(--mds-font-apps-heading-xlarge-regular-text-decoration);
126
+ text-transform: var(--mds-font-apps-heading-xlarge-regular-text-case);
127
+ }
128
+
129
+ :host([type="heading-large-bold"])::part(text) {
130
+ font-size: var(--mds-font-apps-heading-large-bold-font-size);
131
+ font-weight: var(--mds-font-apps-heading-large-bold-font-weight);
132
+ line-height: var(--mds-font-apps-heading-large-bold-line-height);
133
+ text-decoration: var(--mds-font-apps-heading-large-bold-text-decoration);
134
+ text-transform: var(--mds-font-apps-heading-large-bold-text-case);
135
+ }
136
+
137
+ :host([type="heading-large-medium"])::part(text) {
138
+ font-size: var(--mds-font-apps-heading-large-medium-font-size);
139
+ font-weight: var(--mds-font-apps-heading-large-medium-font-weight);
140
+ line-height: var(--mds-font-apps-heading-large-medium-line-height);
141
+ text-decoration: var(--mds-font-apps-heading-large-medium-text-decoration);
142
+ text-transform: var(--mds-font-apps-heading-large-medium-text-case);
143
+ }
144
+
145
+ :host([type="heading-large-regular"])::part(text) {
146
+ font-size: var(--mds-font-apps-heading-large-regular-font-size);
147
+ font-weight: var(--mds-font-apps-heading-large-regular-font-weight);
148
+ line-height: var(--mds-font-apps-heading-large-regular-line-height);
149
+ text-decoration: var(--mds-font-apps-heading-large-regular-text-decoration);
150
+ text-transform: var(--mds-font-apps-heading-large-regular-text-case);
151
+ }
152
+
153
+ :host([type="heading-midsize-bold"])::part(text) {
154
+ font-size: var(--mds-font-apps-heading-midsize-bold-font-size);
155
+ font-weight: var(--mds-font-apps-heading-midsize-bold-font-weight);
156
+ line-height: var(--mds-font-apps-heading-midsize-bold-line-height);
157
+ text-decoration: var(--mds-font-apps-heading-midsize-bold-text-decoration);
158
+ text-transform: var(--mds-font-apps-heading-midsize-bold-text-case);
159
+ }
160
+
161
+ :host([type="heading-midsize-medium"])::part(text) {
162
+ font-size: var(--mds-font-apps-heading-midsize-medium-font-size);
163
+ font-weight: var(--mds-font-apps-heading-midsize-medium-font-weight);
164
+ line-height: var(--mds-font-apps-heading-midsize-medium-line-height);
165
+ text-decoration: var(--mds-font-apps-heading-midsize-medium-text-decoration);
166
+ text-transform: var(--mds-font-apps-heading-midsize-medium-text-case);
167
+ }
168
+
169
+ :host([type="heading-midsize-regular"])::part(text) {
170
+ font-size: var(--mds-font-apps-heading-midsize-regular-font-size);
171
+ font-weight: var(--mds-font-apps-heading-midsize-regular-font-weight);
172
+ line-height: var(--mds-font-apps-heading-midsize-regular-line-height);
173
+ text-decoration: var(--mds-font-apps-heading-midsize-regular-text-decoration);
174
+ text-transform: var(--mds-font-apps-heading-midsize-regular-text-case);
175
+ }
176
+
177
+ :host([type="heading-small-bold"])::part(text) {
178
+ font-size: var(--mds-font-apps-heading-small-bold-font-size);
179
+ font-weight: var(--mds-font-apps-heading-small-bold-font-weight);
180
+ line-height: var(--mds-font-apps-heading-small-bold-line-height);
181
+ text-decoration: var(--mds-font-apps-heading-small-bold-text-decoration);
182
+ text-transform: var(--mds-font-apps-heading-small-bold-text-case);
183
+ }
184
+
185
+ :host([type="heading-small-medium"])::part(text) {
186
+ font-size: var(--mds-font-apps-heading-small-medium-font-size);
187
+ font-weight: var(--mds-font-apps-heading-small-medium-font-weight);
188
+ line-height: var(--mds-font-apps-heading-small-medium-line-height);
189
+ text-decoration: var(--mds-font-apps-heading-small-medium-text-decoration);
190
+ text-transform: var(--mds-font-apps-heading-small-medium-text-case);
191
+ }
192
+
193
+ :host([type="heading-small-regular"])::part(text) {
194
+ font-size: var(--mds-font-apps-heading-small-regular-font-size);
195
+ font-weight: var(--mds-font-apps-heading-small-regular-font-weight);
196
+ line-height: var(--mds-font-apps-heading-small-regular-line-height);
197
+ text-decoration: var(--mds-font-apps-heading-small-regular-text-decoration);
198
+ text-transform: var(--mds-font-apps-heading-small-regular-text-case);
199
+ }
200
+
201
+ :host([type="body-large-bold"])::part(text) {
202
+ font-size: var(--mds-font-apps-body-large-bold-font-size);
203
+ font-weight: var(--mds-font-apps-body-large-bold-font-weight);
204
+ line-height: var(--mds-font-apps-body-large-bold-line-height);
205
+ text-decoration: var(--mds-font-apps-body-large-bold-text-decoration);
206
+ text-transform: var(--mds-font-apps-body-large-bold-text-case);
207
+ }
208
+
209
+ :host([type="body-large-medium-underline"])::part(text) {
210
+ font-size: var(--mds-font-apps-body-large-medium-underline-font-size);
211
+ font-weight: var(--mds-font-apps-body-large-medium-underline-font-weight);
212
+ line-height: var(--mds-font-apps-body-large-medium-underline-line-height);
213
+ text-decoration: var(--mds-font-apps-body-large-medium-underline-text-decoration);
214
+ text-transform: var(--mds-font-apps-body-large-medium-underline-text-case);
215
+ }
216
+
217
+ :host([type="body-large-medium"])::part(text) {
218
+ font-size: var(--mds-font-apps-body-large-medium-font-size);
219
+ font-weight: var(--mds-font-apps-body-large-medium-font-weight);
220
+ line-height: var(--mds-font-apps-body-large-medium-line-height);
221
+ text-decoration: var(--mds-font-apps-body-large-medium-text-decoration);
222
+ text-transform: var(--mds-font-apps-body-large-medium-text-case);
223
+ }
224
+
225
+ :host([type="body-large-regular-underline"])::part(text) {
226
+ font-size: var(--mds-font-apps-body-large-regular-underline-font-size);
227
+ font-weight: var(--mds-font-apps-body-large-regular-underline-font-weight);
228
+ line-height: var(--mds-font-apps-body-large-regular-underline-line-height);
229
+ text-decoration: var(--mds-font-apps-body-large-regular-underline-text-decoration);
230
+ text-transform: var(--mds-font-apps-body-large-regular-underline-text-case);
231
+ }
232
+
233
+ :host([type="body-large-regular"])::part(text) {
234
+ font-size: var(--mds-font-apps-body-large-regular-font-size);
235
+ font-weight: var(--mds-font-apps-body-large-regular-font-weight);
236
+ line-height: var(--mds-font-apps-body-large-regular-line-height);
237
+ text-decoration: var(--mds-font-apps-body-large-regular-text-decoration);
238
+ text-transform: var(--mds-font-apps-body-large-regular-text-case);
239
+ }
240
+
241
+ :host([type="body-midsize-bold"])::part(text) {
242
+ font-size: var(--mds-font-apps-body-midsize-bold-font-size);
243
+ font-weight: var(--mds-font-apps-body-midsize-bold-font-weight);
244
+ line-height: var(--mds-font-apps-body-midsize-bold-line-height);
245
+ text-decoration: var(--mds-font-apps-body-midsize-bold-text-decoration);
246
+ text-transform: var(--mds-font-apps-body-midsize-bold-text-case);
247
+ }
248
+
249
+ :host([type="body-midsize-medium-underline"])::part(text) {
250
+ font-size: var(--mds-font-apps-body-midsize-medium-underline-font-size);
251
+ font-weight: var(--mds-font-apps-body-midsize-medium-underline-font-weight);
252
+ line-height: var(--mds-font-apps-body-midsize-medium-underline-line-height);
253
+ text-decoration: var(--mds-font-apps-body-midsize-medium-underline-text-decoration);
254
+ text-transform: var(--mds-font-apps-body-midsize-medium-underline-text-case);
255
+ }
256
+
257
+ :host([type="body-midsize-medium"])::part(text) {
258
+ font-size: var(--mds-font-apps-body-midsize-medium-font-size);
259
+ font-weight: var(--mds-font-apps-body-midsize-medium-font-weight);
260
+ line-height: var(--mds-font-apps-body-midsize-medium-line-height);
261
+ text-decoration: var(--mds-font-apps-body-midsize-medium-text-decoration);
262
+ text-transform: var(--mds-font-apps-body-midsize-medium-text-case);
263
+ }
264
+
265
+ :host([type="body-midsize-regular-underline"])::part(text) {
266
+ font-size: var(--mds-font-apps-body-midsize-regular-underline-font-size);
267
+ font-weight: var(--mds-font-apps-body-midsize-regular-underline-font-weight);
268
+ line-height: var(--mds-font-apps-body-midsize-regular-underline-line-height);
269
+ text-decoration: var(--mds-font-apps-body-midsize-regular-underline-text-decoration);
270
+ text-transform: var(--mds-font-apps-body-midsize-regular-underline-text-case);
271
+ }
272
+
273
+ :host([type="body-midsize-regular"])::part(text) {
274
+ font-size: var(--mds-font-apps-body-midsize-regular-font-size);
275
+ font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
276
+ line-height: var(--mds-font-apps-body-midsize-regular-line-height);
277
+ text-decoration: var(--mds-font-apps-body-midsize-regular-text-decoration);
278
+ text-transform: var(--mds-font-apps-body-midsize-regular-text-case);
279
+ }
280
+
281
+ :host([type="body-small-bold"])::part(text) {
282
+ font-size: var(--mds-font-apps-body-small-bold-font-size);
283
+ font-weight: var(--mds-font-apps-body-small-bold-font-weight);
284
+ line-height: var(--mds-font-apps-body-small-bold-line-height);
285
+ text-decoration: var(--mds-font-apps-body-small-bold-text-decoration);
286
+ text-transform: var(--mds-font-apps-body-small-bold-text-case);
287
+ }
288
+
289
+ :host([type="body-small-medium-underline"])::part(text) {
290
+ font-size: var(--mds-font-apps-body-small-medium-underline-font-size);
291
+ font-weight: var(--mds-font-apps-body-small-medium-underline-font-weight);
292
+ line-height: var(--mds-font-apps-body-small-medium-underline-line-height);
293
+ text-decoration: var(--mds-font-apps-body-small-medium-underline-text-decoration);
294
+ text-transform: var(--mds-font-apps-body-small-medium-underline-text-case);
295
+ }
296
+
297
+ :host([type="body-small-medium"])::part(text) {
298
+ font-size: var(--mds-font-apps-body-small-medium-font-size);
299
+ font-weight: var(--mds-font-apps-body-small-medium-font-weight);
300
+ line-height: var(--mds-font-apps-body-small-medium-line-height);
301
+ text-decoration: var(--mds-font-apps-body-small-medium-text-decoration);
302
+ text-transform: var(--mds-font-apps-body-small-medium-text-case);
303
+ }
304
+
305
+ :host([type="body-small-regular-underline"])::part(text) {
306
+ font-size: var(--mds-font-apps-body-small-regular-underline-font-size);
307
+ font-weight: var(--mds-font-apps-body-small-regular-underline-font-weight);
308
+ line-height: var(--mds-font-apps-body-small-regular-underline-line-height);
309
+ text-decoration: var(--mds-font-apps-body-small-regular-underline-text-decoration);
310
+ text-transform: var(--mds-font-apps-body-small-regular-underline-text-case);
311
+ }
312
+
313
+ :host([type="body-small-regular"])::part(text) {
314
+ font-size: var(--mds-font-apps-body-small-regular-font-size);
315
+ font-weight: var(--mds-font-apps-body-small-regular-font-weight);
316
+ line-height: var(--mds-font-apps-body-small-regular-line-height);
317
+ text-decoration: var(--mds-font-apps-body-small-regular-text-decoration);
318
+ text-transform: var(--mds-font-apps-body-small-regular-text-case);
319
+ }
320
+ `;var ps=[g`
183
321
  :host {
184
322
  --mdc-text-font-family: var(--mdc-themeprovider-font-family);
185
323
 
186
324
  display: block;
187
325
  font-family: var(--mdc-text-font-family);
188
326
  }
189
- `,Pe],Ue=us;var Le=r=>{let t=r.split("-");return{firstPart:t[0],secondPart:t[1]}},Oe=r=>{let{firstPart:t,secondPart:e}=Le(r);return t==="heading"&&+e>0&&+e<7},Me=r=>r?Oe(r)?"heading":"paragraph":null,Ie=r=>{if(r&&Oe(r)){let{secondPart:t}=Le(r);return t}return null};var Q=class extends y{handleTypeChanged(){this.role=Me(this.type),this.ariaLevel=Ie(this.type)}updated(t){super.updated(t),t.has("type")&&this.handleTypeChanged()}render(){return g`<slot></slot>`}};Q.styles=[...y.styles,...Ue],l([h({attribute:"type",reflect:!0,type:String})],Q.prototype,"type",2);var Ft=Q;var ze=x.constructTagName("text");Ft.register(ze);var fs=Ft;})();
327
+ `,Pe],Ue=ps;var Le=y.constructTagName("text");var v={TYPE:"body-midsize-regular",TEXT_ELEMENT_TAGNAME:"p",CSS_PART_TEXT:"text"};var G=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>`}}};G.styles=[...x.styles,...Ue],d([h({attribute:"type",reflect:!0,type:String})],G.prototype,"type",2),d([h({attribute:"tagname",reflect:!0,type:String})],G.prototype,"tagname",2);var Ft=G;Ft.register(Le);var ms=Ft;})();
190
328
  /*! Bundled license information:
191
329
 
192
330
  @lit/reactive-element/decorators/custom-element.js: