@loadsmart/miranda-wc 1.8.0 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/components/button/base-button.styles.d.ts +3 -0
  2. package/dist/components/button/base-button.styles.d.ts.map +1 -0
  3. package/dist/components/button/button.d.ts +7 -6
  4. package/dist/components/button/button.d.ts.map +1 -1
  5. package/dist/components/button/button.styles.d.ts +1 -1
  6. package/dist/components/button/button.styles.d.ts.map +1 -1
  7. package/dist/components/card/card-body.d.ts +1 -1
  8. package/dist/components/card/card-subtitle.d.ts +1 -1
  9. package/dist/components/card/card-title.d.ts +1 -1
  10. package/dist/components/card/card.d.ts +1 -1
  11. package/dist/components/divider/divider.d.ts +1 -1
  12. package/dist/components/layout/box/box.d.ts +1 -1
  13. package/dist/components/layout/grid/grid.d.ts +1 -1
  14. package/dist/components/layout/group/group.d.ts +1 -1
  15. package/dist/components/layout/layout.types.d.ts +1 -1
  16. package/dist/components/layout/layout.types.d.ts.map +1 -1
  17. package/dist/components/layout/sidebar/sidebar.d.ts +1 -1
  18. package/dist/components/layout/stack/stack.d.ts +1 -1
  19. package/dist/components/progress-bar/progress-bar.d.ts +1 -1
  20. package/dist/components/text/text.d.ts +2 -2
  21. package/dist/components/text/text.d.ts.map +1 -1
  22. package/dist/components/toggle-group/index.d.ts +5 -0
  23. package/dist/components/toggle-group/index.d.ts.map +1 -0
  24. package/dist/components/toggle-group/toggle-group.constants.d.ts +2 -0
  25. package/dist/components/toggle-group/toggle-group.constants.d.ts.map +1 -0
  26. package/dist/components/toggle-group/toggle-group.cy.d.ts +3 -0
  27. package/dist/components/toggle-group/toggle-group.cy.d.ts.map +1 -0
  28. package/dist/components/toggle-group/toggle-group.d.ts +88 -0
  29. package/dist/components/toggle-group/toggle-group.d.ts.map +1 -0
  30. package/dist/components/toggle-group/toggle-group.styles.d.ts +3 -0
  31. package/dist/components/toggle-group/toggle-group.styles.d.ts.map +1 -0
  32. package/dist/components/toggle-group/toggle.d.ts +56 -0
  33. package/dist/components/toggle-group/toggle.d.ts.map +1 -0
  34. package/dist/components/toggle-group/toggle.styles.d.ts +3 -0
  35. package/dist/components/toggle-group/toggle.styles.d.ts.map +1 -0
  36. package/dist/controllers/selection/index.d.ts +3 -0
  37. package/dist/controllers/selection/index.d.ts.map +1 -0
  38. package/dist/controllers/selection/selection.controller.d.ts +41 -0
  39. package/dist/controllers/selection/selection.controller.d.ts.map +1 -0
  40. package/dist/index.d.ts +4 -3
  41. package/dist/index.d.ts.map +1 -1
  42. package/dist/index.js +579 -459
  43. package/dist/index.js.map +1 -1
  44. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3,150 +3,398 @@
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
5
  */
6
- const t=window,o=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,n=Symbol(),r=new WeakMap;class i{constructor(t,o,r){if(this._$cssResult$=!0,r!==n)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=o}get styleSheet(){let t=this.o;const n=this.t;if(o&&void 0===t){const o=void 0!==n&&1===n.length;o&&(t=r.get(n)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&r.set(n,t))}return t}toString(){return this.cssText}}const e=t=>new i("string"==typeof t?t:t+"",void 0,n),s=(t,...o)=>{const r=1===t.length?t[0]:o.reduce(((o,n,r)=>o+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[r+1]),t[0]);return new i(r,t,n)},a=o?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let o="";for(const n of t.cssRules)o+=n.cssText;return e(o)})(t):t
6
+ const t=window,o=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),n=new WeakMap;class e{constructor(t,o,n){if(this._$cssResult$=!0,n!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=o}get styleSheet(){let t=this.o;const i=this.t;if(o&&void 0===t){const o=void 0!==i&&1===i.length;o&&(t=n.get(i)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&n.set(i,t))}return t}toString(){return this.cssText}}const r=t=>new e("string"==typeof t?t:t+"",void 0,i),s=(t,...o)=>{const n=1===t.length?t[0]:o.reduce(((o,i,n)=>o+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[n+1]),t[0]);return new e(n,t,i)},l=o?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let o="";for(const i of t.cssRules)o+=i.cssText;return r(o)})(t):t
7
7
  /**
8
8
  * @license
9
9
  * Copyright 2017 Google LLC
10
10
  * SPDX-License-Identifier: BSD-3-Clause
11
- */;var l;const d=window,c=d.trustedTypes,u=c?c.emptyScript:"",h=d.reactiveElementPolyfillSupport,b={toAttribute(t,o){switch(o){case Boolean:t=t?u:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,o){let n=t;switch(o){case Boolean:n=null!==t;break;case Number:n=null===t?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},m=(t,o)=>o!==t&&(o==o||t==t),g={attribute:!0,type:String,converter:b,reflect:!1,hasChanged:m};class p extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var o;null!==(o=this.h)&&void 0!==o||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((o,n)=>{const r=this._$Ep(n,o);void 0!==r&&(this._$Ev.set(r,n),t.push(r))})),t}static createProperty(t,o=g){if(o.state&&(o.attribute=!1),this.finalize(),this.elementProperties.set(t,o),!o.noAccessor&&!this.prototype.hasOwnProperty(t)){const n="symbol"==typeof t?Symbol():"__"+t,r=this.getPropertyDescriptor(t,n,o);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,o,n){return{get(){return this[o]},set(r){const i=this[t];this[o]=r,this.requestUpdate(t,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||g}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,o=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const n of o)this.createProperty(n,t[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const o=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const t of n)o.unshift(a(t))}else void 0!==t&&o.push(a(t));return o}static _$Ep(t,o){const n=o.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var o,n;(null!==(o=this._$ES)&&void 0!==o?o:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(n=t.hostConnected)||void 0===n||n.call(t))}removeController(t){var o;null===(o=this._$ES)||void 0===o||o.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,o)=>{this.hasOwnProperty(o)&&(this._$Ei.set(o,this[o]),delete this[o])}))}createRenderRoot(){var n;const r=null!==(n=this.shadowRoot)&&void 0!==n?n:this.attachShadow(this.constructor.shadowRootOptions);return((n,r)=>{o?n.adoptedStyleSheets=r.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):r.forEach((o=>{const r=document.createElement("style"),i=t.litNonce;void 0!==i&&r.setAttribute("nonce",i),r.textContent=o.cssText,n.appendChild(r)}))})(r,this.constructor.elementStyles),r}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var o;return null===(o=t.hostConnected)||void 0===o?void 0:o.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var o;return null===(o=t.hostDisconnected)||void 0===o?void 0:o.call(t)}))}attributeChangedCallback(t,o,n){this._$AK(t,n)}_$EO(t,o,n=g){var r;const i=this.constructor._$Ep(t,n);if(void 0!==i&&!0===n.reflect){const e=(void 0!==(null===(r=n.converter)||void 0===r?void 0:r.toAttribute)?n.converter:b).toAttribute(o,n.type);this._$El=t,null==e?this.removeAttribute(i):this.setAttribute(i,e),this._$El=null}}_$AK(t,o){var n;const r=this.constructor,i=r._$Ev.get(t);if(void 0!==i&&this._$El!==i){const t=r.getPropertyOptions(i),e="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(n=t.converter)||void 0===n?void 0:n.fromAttribute)?t.converter:b;this._$El=i,this[i]=e.fromAttribute(o,t.type),this._$El=null}}requestUpdate(t,o,n){let r=!0;void 0!==t&&(((n=n||this.constructor.getPropertyOptions(t)).hasChanged||m)(this[t],o)?(this._$AL.has(t)||this._$AL.set(t,o),!0===n.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,n))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,o)=>this[o]=t)),this._$Ei=void 0);let o=!1;const n=this._$AL;try{o=this.shouldUpdate(n),o?(this.willUpdate(n),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var o;return null===(o=t.hostUpdate)||void 0===o?void 0:o.call(t)})),this.update(n)):this._$Ek()}catch(t){throw o=!1,this._$Ek(),t}o&&this._$AE(n)}willUpdate(t){}_$AE(t){var o;null===(o=this._$ES)||void 0===o||o.forEach((t=>{var o;return null===(o=t.hostUpdated)||void 0===o?void 0:o.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,o)=>this._$EO(o,this[o],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
11
+ */;var a;const d=window,c=d.trustedTypes,u=c?c.emptyScript:"",h=d.reactiveElementPolyfillSupport,g={toAttribute(t,o){switch(o){case Boolean:t=t?u:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,o){let i=t;switch(o){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},b=(t,o)=>o!==t&&(o==o||t==t),m={attribute:!0,type:String,converter:g,reflect:!1,hasChanged:b};class p extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var o;null!==(o=this.h)&&void 0!==o||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((o,i)=>{const n=this._$Ep(i,o);void 0!==n&&(this._$Ev.set(n,i),t.push(n))})),t}static createProperty(t,o=m){if(o.state&&(o.attribute=!1),this.finalize(),this.elementProperties.set(t,o),!o.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,n=this.getPropertyDescriptor(t,i,o);void 0!==n&&Object.defineProperty(this.prototype,t,n)}}static getPropertyDescriptor(t,o,i){return{get(){return this[o]},set(n){const e=this[t];this[o]=n,this.requestUpdate(t,e,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||m}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,o=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of o)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const o=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)o.unshift(l(t))}else void 0!==t&&o.push(l(t));return o}static _$Ep(t,o){const i=o.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var o,i;(null!==(o=this._$ES)&&void 0!==o?o:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var o;null===(o=this._$ES)||void 0===o||o.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,o)=>{this.hasOwnProperty(o)&&(this._$Ei.set(o,this[o]),delete this[o])}))}createRenderRoot(){var i;const n=null!==(i=this.shadowRoot)&&void 0!==i?i:this.attachShadow(this.constructor.shadowRootOptions);return((i,n)=>{o?i.adoptedStyleSheets=n.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):n.forEach((o=>{const n=document.createElement("style"),e=t.litNonce;void 0!==e&&n.setAttribute("nonce",e),n.textContent=o.cssText,i.appendChild(n)}))})(n,this.constructor.elementStyles),n}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var o;return null===(o=t.hostConnected)||void 0===o?void 0:o.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var o;return null===(o=t.hostDisconnected)||void 0===o?void 0:o.call(t)}))}attributeChangedCallback(t,o,i){this._$AK(t,i)}_$EO(t,o,i=m){var n;const e=this.constructor._$Ep(t,i);if(void 0!==e&&!0===i.reflect){const r=(void 0!==(null===(n=i.converter)||void 0===n?void 0:n.toAttribute)?i.converter:g).toAttribute(o,i.type);this._$El=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$El=null}}_$AK(t,o){var i;const n=this.constructor,e=n._$Ev.get(t);if(void 0!==e&&this._$El!==e){const t=n.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:g;this._$El=e,this[e]=r.fromAttribute(o,t.type),this._$El=null}}requestUpdate(t,o,i){let n=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||b)(this[t],o)?(this._$AL.has(t)||this._$AL.set(t,o),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,o)=>this[o]=t)),this._$Ei=void 0);let o=!1;const i=this._$AL;try{o=this.shouldUpdate(i),o?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var o;return null===(o=t.hostUpdate)||void 0===o?void 0:o.call(t)})),this.update(i)):this._$Ek()}catch(t){throw o=!1,this._$Ek(),t}o&&this._$AE(i)}willUpdate(t){}_$AE(t){var o;null===(o=this._$ES)||void 0===o||o.forEach((t=>{var o;return null===(o=t.hostUpdated)||void 0===o?void 0:o.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,o)=>this._$EO(o,this[o],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
12
12
  /**
13
13
  * @license
14
14
  * Copyright 2017 Google LLC
15
15
  * SPDX-License-Identifier: BSD-3-Clause
16
16
  */
17
- var f;p.finalized=!0,p.elementProperties=new Map,p.elementStyles=[],p.shadowRootOptions={mode:"open"},null==h||h({ReactiveElement:p}),(null!==(l=d.reactiveElementVersions)&&void 0!==l?l:d.reactiveElementVersions=[]).push("1.4.1");const $=window,y=$.trustedTypes,v=y?y.createPolicy("lit-html",{createHTML:t=>t}):void 0,x=`lit$${(Math.random()+"").slice(9)}$`,w="?"+x,k=`<${w}>`,z=document,S=(t="")=>z.createComment(t),A=t=>null===t||"object"!=typeof t&&"function"!=typeof t,C=Array.isArray,j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,M=/>/g,E=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),O=/'/g,T=/"/g,U=/^(?:script|style|textarea|title)$/i,W=(t=>(o,...n)=>({_$litType$:t,strings:o,values:n}))(1),R=Symbol.for("lit-noChange"),N=Symbol.for("lit-nothing"),P=new WeakMap,B=z.createTreeWalker(z,129,null,!1),D=(t,o)=>{const n=t.length-1,r=[];let i,e=2===o?"<svg>":"",s=j;for(let o=0;o<n;o++){const n=t[o];let a,l,d=-1,c=0;for(;c<n.length&&(s.lastIndex=c,l=s.exec(n),null!==l);)c=s.lastIndex,s===j?"!--"===l[1]?s=_:void 0!==l[1]?s=M:void 0!==l[2]?(U.test(l[2])&&(i=RegExp("</"+l[2],"g")),s=E):void 0!==l[3]&&(s=E):s===E?">"===l[0]?(s=null!=i?i:j,d=-1):void 0===l[1]?d=-2:(d=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?E:'"'===l[3]?T:O):s===T||s===O?s=E:s===_||s===M?s=j:(s=E,i=void 0);const u=s===E&&t[o+1].startsWith("/>")?" ":"";e+=s===j?n+k:d>=0?(r.push(a),n.slice(0,d)+"$lit$"+n.slice(d)+x+u):n+x+(-2===d?(r.push(void 0),o):u)}const a=e+(t[n]||"<?>")+(2===o?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==v?v.createHTML(a):a,r]};class I{constructor({strings:t,_$litType$:o},n){let r;this.parts=[];let i=0,e=0;const s=t.length-1,a=this.parts,[l,d]=D(t,o);if(this.el=I.createElement(l,n),B.currentNode=this.el.content,2===o){const t=this.el.content,o=t.firstChild;o.remove(),t.append(...o.childNodes)}for(;null!==(r=B.nextNode())&&a.length<s;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const o of r.getAttributeNames())if(o.endsWith("$lit$")||o.startsWith(x)){const n=d[e++];if(t.push(o),void 0!==n){const t=r.getAttribute(n.toLowerCase()+"$lit$").split(x),o=/([.?@])?(.*)/.exec(n);a.push({type:1,index:i,name:o[2],strings:t,ctor:"."===o[1]?H:"?"===o[1]?K:"@"===o[1]?V:Z})}else a.push({type:6,index:i})}for(const o of t)r.removeAttribute(o)}if(U.test(r.tagName)){const t=r.textContent.split(x),o=t.length-1;if(o>0){r.textContent=y?y.emptyScript:"";for(let n=0;n<o;n++)r.append(t[n],S()),B.nextNode(),a.push({type:2,index:++i});r.append(t[o],S())}}}else if(8===r.nodeType)if(r.data===w)a.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(x,t+1));)a.push({type:7,index:i}),t+=x.length-1}i++}}static createElement(t,o){const n=z.createElement("template");return n.innerHTML=t,n}}function L(t,o,n=t,r){var i,e,s,a;if(o===R)return o;let l=void 0!==r?null===(i=n._$Cl)||void 0===i?void 0:i[r]:n._$Cu;const d=A(o)?void 0:o._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(e=null==l?void 0:l._$AO)||void 0===e||e.call(l,!1),void 0===d?l=void 0:(l=new d(t),l._$AT(t,n,r)),void 0!==r?(null!==(s=(a=n)._$Cl)&&void 0!==s?s:a._$Cl=[])[r]=l:n._$Cu=l),void 0!==l&&(o=L(t,l._$AS(t,o.values),l,r)),o}class G{constructor(t,o){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var o;const{el:{content:n},parts:r}=this._$AD,i=(null!==(o=null==t?void 0:t.creationScope)&&void 0!==o?o:z).importNode(n,!0);B.currentNode=i;let e=B.nextNode(),s=0,a=0,l=r[0];for(;void 0!==l;){if(s===l.index){let o;2===l.type?o=new J(e,e.nextSibling,this,t):1===l.type?o=new l.ctor(e,l.name,l.strings,this,t):6===l.type&&(o=new F(e,this,t)),this.v.push(o),l=r[++a]}s!==(null==l?void 0:l.index)&&(e=B.nextNode(),s++)}return i}m(t){let o=0;for(const n of this.v)void 0!==n&&(void 0!==n.strings?(n._$AI(t,n,o),o+=n.strings.length-2):n._$AI(t[o])),o++}}class J{constructor(t,o,n,r){var i;this.type=2,this._$AH=N,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=n,this.options=r,this._$C_=null===(i=null==r?void 0:r.isConnected)||void 0===i||i}get _$AU(){var t,o;return null!==(o=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==o?o:this._$C_}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===t.nodeType&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=L(this,t,o),A(t)?t===N||null==t||""===t?(this._$AH!==N&&this._$AR(),this._$AH=N):t!==this._$AH&&t!==R&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>C(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.O(t):this.$(t)}S(t,o=this._$AB){return this._$AA.parentNode.insertBefore(t,o)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}$(t){this._$AH!==N&&A(this._$AH)?this._$AA.nextSibling.data=t:this.k(z.createTextNode(t)),this._$AH=t}T(t){var o;const{values:n,_$litType$:r}=t,i="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=I.createElement(r.h,this.options)),r);if((null===(o=this._$AH)||void 0===o?void 0:o._$AD)===i)this._$AH.m(n);else{const t=new G(i,this),o=t.p(this.options);t.m(n),this.k(o),this._$AH=t}}_$AC(t){let o=P.get(t.strings);return void 0===o&&P.set(t.strings,o=new I(t)),o}O(t){C(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let n,r=0;for(const i of t)r===o.length?o.push(n=new J(this.S(S()),this.S(S()),this,this.options)):n=o[r],n._$AI(i),r++;r<o.length&&(this._$AR(n&&n._$AB.nextSibling,r),o.length=r)}_$AR(t=this._$AA.nextSibling,o){var n;for(null===(n=this._$AP)||void 0===n||n.call(this,!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){var o;void 0===this._$AM&&(this._$C_=t,null===(o=this._$AP)||void 0===o||o.call(this,t))}}class Z{constructor(t,o,n,r,i){this.type=1,this._$AH=N,this._$AN=void 0,this.element=t,this.name=o,this._$AM=r,this.options=i,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=N}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,o=this,n,r){const i=this.strings;let e=!1;if(void 0===i)t=L(this,t,o,0),e=!A(t)||t!==this._$AH&&t!==R,e&&(this._$AH=t);else{const r=t;let s,a;for(t=i[0],s=0;s<i.length-1;s++)a=L(this,r[n+s],o,s),a===R&&(a=this._$AH[s]),e||(e=!A(a)||a!==this._$AH[s]),a===N?t=N:t!==N&&(t+=(null!=a?a:"")+i[s+1]),this._$AH[s]=a}e&&!r&&this.P(t)}P(t){t===N?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class H extends Z{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===N?void 0:t}}const q=y?y.emptyScript:"";class K extends Z{constructor(){super(...arguments),this.type=4}P(t){t&&t!==N?this.element.setAttribute(this.name,q):this.element.removeAttribute(this.name)}}class V extends Z{constructor(t,o,n,r,i){super(t,o,n,r,i),this.type=5}_$AI(t,o=this){var n;if((t=null!==(n=L(this,t,o,0))&&void 0!==n?n:N)===R)return;const r=this._$AH,i=t===N&&r!==N||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,e=t!==N&&(r===N||i);i&&this.element.removeEventListener(this.name,this,r),e&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var o,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(o=this.options)||void 0===o?void 0:o.host)&&void 0!==n?n:this.element,t):this._$AH.handleEvent(t)}}class F{constructor(t,o,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){L(this,t)}}const Q=$.litHtmlPolyfillSupport;
17
+ var f;p.finalized=!0,p.elementProperties=new Map,p.elementStyles=[],p.shadowRootOptions={mode:"open"},null==h||h({ReactiveElement:p}),(null!==(a=d.reactiveElementVersions)&&void 0!==a?a:d.reactiveElementVersions=[]).push("1.4.1");const v=window,$=v.trustedTypes,y=$?$.createPolicy("lit-html",{createHTML:t=>t}):void 0,x=`lit$${(Math.random()+"").slice(9)}$`,w="?"+x,k=`<${w}>`,S=document,z=(t="")=>S.createComment(t),_=t=>null===t||"object"!=typeof t&&"function"!=typeof t,A=Array.isArray,C=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j=/-->/g,E=/>/g,M=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),T=/'/g,O=/"/g,U=/^(?:script|style|textarea|title)$/i,N=Symbol.for("lit-noChange"),R=Symbol.for("lit-nothing"),W=new WeakMap,B=S.createTreeWalker(S,129,null,!1);class L{constructor({strings:t,_$litType$:o},i){let n;this.parts=[];let e=0,r=0;const s=t.length-1,l=this.parts,[a,d]=((t,o)=>{const i=t.length-1,n=[];let e,r=2===o?"<svg>":"",s=C;for(let o=0;o<i;o++){const i=t[o];let l,a,d=-1,c=0;for(;c<i.length&&(s.lastIndex=c,a=s.exec(i),null!==a);)c=s.lastIndex,s===C?"!--"===a[1]?s=j:void 0!==a[1]?s=E:void 0!==a[2]?(U.test(a[2])&&(e=RegExp("</"+a[2],"g")),s=M):void 0!==a[3]&&(s=M):s===M?">"===a[0]?(s=null!=e?e:C,d=-1):void 0===a[1]?d=-2:(d=s.lastIndex-a[2].length,l=a[1],s=void 0===a[3]?M:'"'===a[3]?O:T):s===O||s===T?s=M:s===j||s===E?s=C:(s=M,e=void 0);const u=s===M&&t[o+1].startsWith("/>")?" ":"";r+=s===C?i+k:d>=0?(n.push(l),i.slice(0,d)+"$lit$"+i.slice(d)+x+u):i+x+(-2===d?(n.push(void 0),o):u)}const l=r+(t[i]||"<?>")+(2===o?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==y?y.createHTML(l):l,n]})(t,o);if(this.el=L.createElement(a,i),B.currentNode=this.el.content,2===o){const t=this.el.content,o=t.firstChild;o.remove(),t.append(...o.childNodes)}for(;null!==(n=B.nextNode())&&l.length<s;){if(1===n.nodeType){if(n.hasAttributes()){const t=[];for(const o of n.getAttributeNames())if(o.endsWith("$lit$")||o.startsWith(x)){const i=d[r++];if(t.push(o),void 0!==i){const t=n.getAttribute(i.toLowerCase()+"$lit$").split(x),o=/([.?@])?(.*)/.exec(i);l.push({type:1,index:e,name:o[2],strings:t,ctor:"."===o[1]?G:"?"===o[1]?H:"@"===o[1]?q:Z})}else l.push({type:6,index:e})}for(const o of t)n.removeAttribute(o)}if(U.test(n.tagName)){const t=n.textContent.split(x),o=t.length-1;if(o>0){n.textContent=$?$.emptyScript:"";for(let i=0;i<o;i++)n.append(t[i],z()),B.nextNode(),l.push({type:2,index:++e});n.append(t[o],z())}}}else if(8===n.nodeType)if(n.data===w)l.push({type:2,index:e});else{let t=-1;for(;-1!==(t=n.data.indexOf(x,t+1));)l.push({type:7,index:e}),t+=x.length-1}e++}}static createElement(t,o){const i=S.createElement("template");return i.innerHTML=t,i}}function D(t,o,i=t,n){var e,r,s,l;if(o===N)return o;let a=void 0!==n?null===(e=i._$Co)||void 0===e?void 0:e[n]:i._$Cl;const d=_(o)?void 0:o._$litDirective$;return(null==a?void 0:a.constructor)!==d&&(null===(r=null==a?void 0:a._$AO)||void 0===r||r.call(a,!1),void 0===d?a=void 0:(a=new d(t),a._$AT(t,i,n)),void 0!==n?(null!==(s=(l=i)._$Co)&&void 0!==s?s:l._$Co=[])[n]=a:i._$Cl=a),void 0!==a&&(o=D(t,a._$AS(t,o.values),a,n)),o}class I{constructor(t,o){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var o;const{el:{content:i},parts:n}=this._$AD,e=(null!==(o=null==t?void 0:t.creationScope)&&void 0!==o?o:S).importNode(i,!0);B.currentNode=e;let r=B.nextNode(),s=0,l=0,a=n[0];for(;void 0!==a;){if(s===a.index){let o;2===a.type?o=new P(r,r.nextSibling,this,t):1===a.type?o=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(o=new K(r,this,t)),this.u.push(o),a=n[++l]}s!==(null==a?void 0:a.index)&&(r=B.nextNode(),s++)}return e}p(t){let o=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,o),o+=i.strings.length-2):i._$AI(t[o])),o++}}class P{constructor(t,o,i,n){var e;this.type=2,this._$AH=R,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=i,this.options=n,this._$Cm=null===(e=null==n?void 0:n.isConnected)||void 0===e||e}get _$AU(){var t,o;return null!==(o=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==o?o:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===t.nodeType&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=D(this,t,o),_(t)?t===R||null==t||""===t?(this._$AH!==R&&this._$AR(),this._$AH=R):t!==this._$AH&&t!==N&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>A(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,o=this._$AB){return this._$AA.parentNode.insertBefore(t,o)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==R&&_(this._$AH)?this._$AA.nextSibling.data=t:this.T(S.createTextNode(t)),this._$AH=t}$(t){var o;const{values:i,_$litType$:n}=t,e="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=L.createElement(n.h,this.options)),n);if((null===(o=this._$AH)||void 0===o?void 0:o._$AD)===e)this._$AH.p(i);else{const t=new I(e,this),o=t.v(this.options);t.p(i),this.T(o),this._$AH=t}}_$AC(t){let o=W.get(t.strings);return void 0===o&&W.set(t.strings,o=new L(t)),o}k(t){A(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let i,n=0;for(const e of t)n===o.length?o.push(i=new P(this.O(z()),this.O(z()),this,this.options)):i=o[n],i._$AI(e),n++;n<o.length&&(this._$AR(i&&i._$AB.nextSibling,n),o.length=n)}_$AR(t=this._$AA.nextSibling,o){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){var o;void 0===this._$AM&&(this._$Cm=t,null===(o=this._$AP)||void 0===o||o.call(this,t))}}class Z{constructor(t,o,i,n,e){this.type=1,this._$AH=R,this._$AN=void 0,this.element=t,this.name=o,this._$AM=n,this.options=e,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=R}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,o=this,i,n){const e=this.strings;let r=!1;if(void 0===e)t=D(this,t,o,0),r=!_(t)||t!==this._$AH&&t!==N,r&&(this._$AH=t);else{const n=t;let s,l;for(t=e[0],s=0;s<e.length-1;s++)l=D(this,n[i+s],o,s),l===N&&(l=this._$AH[s]),r||(r=!_(l)||l!==this._$AH[s]),l===R?t=R:t!==R&&(t+=(null!=l?l:"")+e[s+1]),this._$AH[s]=l}r&&!n&&this.j(t)}j(t){t===R?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class G extends Z{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===R?void 0:t}}const J=$?$.emptyScript:"";class H extends Z{constructor(){super(...arguments),this.type=4}j(t){t&&t!==R?this.element.setAttribute(this.name,J):this.element.removeAttribute(this.name)}}class q extends Z{constructor(t,o,i,n,e){super(t,o,i,n,e),this.type=5}_$AI(t,o=this){var i;if((t=null!==(i=D(this,t,o,0))&&void 0!==i?i:R)===N)return;const n=this._$AH,e=t===R&&n!==R||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,r=t!==R&&(n===R||e);e&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var o,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(o=this.options)||void 0===o?void 0:o.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class K{constructor(t,o,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){D(this,t)}}const V=v.litHtmlPolyfillSupport;
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
21
21
  * SPDX-License-Identifier: BSD-3-Clause
22
22
  */
23
- var X,Y;null==Q||Q(I,J),(null!==(f=$.litHtmlVersions)&&void 0!==f?f:$.litHtmlVersions=[]).push("2.3.1");class tt extends p{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,o;const n=super.createRenderRoot();return null!==(t=(o=this.renderOptions).renderBefore)&&void 0!==t||(o.renderBefore=n.firstChild),n}update(t){const o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,o,n)=>{var r,i;const e=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:o;let s=e._$litPart$;if(void 0===s){const t=null!==(i=null==n?void 0:n.renderBefore)&&void 0!==i?i:null;e._$litPart$=s=new J(o.insertBefore(S(),t),t,void 0,null!=n?n:{})}return s._$AI(t),s})(o,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return R}}tt.finalized=!0,tt._$litElement$=!0,null===(X=globalThis.litElementHydrateSupport)||void 0===X||X.call(globalThis,{LitElement:tt});const ot=globalThis.litElementPolyfillSupport;null==ot||ot({LitElement:tt}),(null!==(Y=globalThis.litElementVersions)&&void 0!==Y?Y:globalThis.litElementVersions=[]).push("3.2.2");
23
+ var F;null==V||V(L,P),(null!==(f=v.litHtmlVersions)&&void 0!==f?f:v.litHtmlVersions=[]).push("2.4.0");const Q=window,X=Q.trustedTypes,Y=X?X.createPolicy("lit-html",{createHTML:t=>t}):void 0,tt=`lit$${(Math.random()+"").slice(9)}$`,ot="?"+tt,it=`<${ot}>`,nt=document,et=(t="")=>nt.createComment(t),rt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,st=Array.isArray,lt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,at=/-->/g,dt=/>/g,ct=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),ut=/'/g,ht=/"/g,gt=/^(?:script|style|textarea|title)$/i,bt=(t=>(o,...i)=>({_$litType$:t,strings:o,values:i}))(1),mt=Symbol.for("lit-noChange"),pt=Symbol.for("lit-nothing"),ft=new WeakMap,vt=nt.createTreeWalker(nt,129,null,!1),$t=(t,o)=>{const i=t.length-1,n=[];let e,r=2===o?"<svg>":"",s=lt;for(let o=0;o<i;o++){const i=t[o];let l,a,d=-1,c=0;for(;c<i.length&&(s.lastIndex=c,a=s.exec(i),null!==a);)c=s.lastIndex,s===lt?"!--"===a[1]?s=at:void 0!==a[1]?s=dt:void 0!==a[2]?(gt.test(a[2])&&(e=RegExp("</"+a[2],"g")),s=ct):void 0!==a[3]&&(s=ct):s===ct?">"===a[0]?(s=null!=e?e:lt,d=-1):void 0===a[1]?d=-2:(d=s.lastIndex-a[2].length,l=a[1],s=void 0===a[3]?ct:'"'===a[3]?ht:ut):s===ht||s===ut?s=ct:s===at||s===dt?s=lt:(s=ct,e=void 0);const u=s===ct&&t[o+1].startsWith("/>")?" ":"";r+=s===lt?i+it:d>=0?(n.push(l),i.slice(0,d)+"$lit$"+i.slice(d)+tt+u):i+tt+(-2===d?(n.push(void 0),o):u)}const l=r+(t[i]||"<?>")+(2===o?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==Y?Y.createHTML(l):l,n]};class yt{constructor({strings:t,_$litType$:o},i){let n;this.parts=[];let e=0,r=0;const s=t.length-1,l=this.parts,[a,d]=$t(t,o);if(this.el=yt.createElement(a,i),vt.currentNode=this.el.content,2===o){const t=this.el.content,o=t.firstChild;o.remove(),t.append(...o.childNodes)}for(;null!==(n=vt.nextNode())&&l.length<s;){if(1===n.nodeType){if(n.hasAttributes()){const t=[];for(const o of n.getAttributeNames())if(o.endsWith("$lit$")||o.startsWith(tt)){const i=d[r++];if(t.push(o),void 0!==i){const t=n.getAttribute(i.toLowerCase()+"$lit$").split(tt),o=/([.?@])?(.*)/.exec(i);l.push({type:1,index:e,name:o[2],strings:t,ctor:"."===o[1]?zt:"?"===o[1]?At:"@"===o[1]?Ct:St})}else l.push({type:6,index:e})}for(const o of t)n.removeAttribute(o)}if(gt.test(n.tagName)){const t=n.textContent.split(tt),o=t.length-1;if(o>0){n.textContent=X?X.emptyScript:"";for(let i=0;i<o;i++)n.append(t[i],et()),vt.nextNode(),l.push({type:2,index:++e});n.append(t[o],et())}}}else if(8===n.nodeType)if(n.data===ot)l.push({type:2,index:e});else{let t=-1;for(;-1!==(t=n.data.indexOf(tt,t+1));)l.push({type:7,index:e}),t+=tt.length-1}e++}}static createElement(t,o){const i=nt.createElement("template");return i.innerHTML=t,i}}function xt(t,o,i=t,n){var e,r,s,l;if(o===mt)return o;let a=void 0!==n?null===(e=i._$Cl)||void 0===e?void 0:e[n]:i._$Cu;const d=rt(o)?void 0:o._$litDirective$;return(null==a?void 0:a.constructor)!==d&&(null===(r=null==a?void 0:a._$AO)||void 0===r||r.call(a,!1),void 0===d?a=void 0:(a=new d(t),a._$AT(t,i,n)),void 0!==n?(null!==(s=(l=i)._$Cl)&&void 0!==s?s:l._$Cl=[])[n]=a:i._$Cu=a),void 0!==a&&(o=xt(t,a._$AS(t,o.values),a,n)),o}class wt{constructor(t,o){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var o;const{el:{content:i},parts:n}=this._$AD,e=(null!==(o=null==t?void 0:t.creationScope)&&void 0!==o?o:nt).importNode(i,!0);vt.currentNode=e;let r=vt.nextNode(),s=0,l=0,a=n[0];for(;void 0!==a;){if(s===a.index){let o;2===a.type?o=new kt(r,r.nextSibling,this,t):1===a.type?o=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(o=new jt(r,this,t)),this.v.push(o),a=n[++l]}s!==(null==a?void 0:a.index)&&(r=vt.nextNode(),s++)}return e}m(t){let o=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,o),o+=i.strings.length-2):i._$AI(t[o])),o++}}class kt{constructor(t,o,i,n){var e;this.type=2,this._$AH=pt,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=i,this.options=n,this._$C_=null===(e=null==n?void 0:n.isConnected)||void 0===e||e}get _$AU(){var t,o;return null!==(o=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==o?o:this._$C_}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===t.nodeType&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=xt(this,t,o),rt(t)?t===pt||null==t||""===t?(this._$AH!==pt&&this._$AR(),this._$AH=pt):t!==this._$AH&&t!==mt&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>st(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.O(t):this.$(t)}S(t,o=this._$AB){return this._$AA.parentNode.insertBefore(t,o)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}$(t){this._$AH!==pt&&rt(this._$AH)?this._$AA.nextSibling.data=t:this.k(nt.createTextNode(t)),this._$AH=t}T(t){var o;const{values:i,_$litType$:n}=t,e="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=yt.createElement(n.h,this.options)),n);if((null===(o=this._$AH)||void 0===o?void 0:o._$AD)===e)this._$AH.m(i);else{const t=new wt(e,this),o=t.p(this.options);t.m(i),this.k(o),this._$AH=t}}_$AC(t){let o=ft.get(t.strings);return void 0===o&&ft.set(t.strings,o=new yt(t)),o}O(t){st(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let i,n=0;for(const e of t)n===o.length?o.push(i=new kt(this.S(et()),this.S(et()),this,this.options)):i=o[n],i._$AI(e),n++;n<o.length&&(this._$AR(i&&i._$AB.nextSibling,n),o.length=n)}_$AR(t=this._$AA.nextSibling,o){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){var o;void 0===this._$AM&&(this._$C_=t,null===(o=this._$AP)||void 0===o||o.call(this,t))}}class St{constructor(t,o,i,n,e){this.type=1,this._$AH=pt,this._$AN=void 0,this.element=t,this.name=o,this._$AM=n,this.options=e,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=pt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,o=this,i,n){const e=this.strings;let r=!1;if(void 0===e)t=xt(this,t,o,0),r=!rt(t)||t!==this._$AH&&t!==mt,r&&(this._$AH=t);else{const n=t;let s,l;for(t=e[0],s=0;s<e.length-1;s++)l=xt(this,n[i+s],o,s),l===mt&&(l=this._$AH[s]),r||(r=!rt(l)||l!==this._$AH[s]),l===pt?t=pt:t!==pt&&(t+=(null!=l?l:"")+e[s+1]),this._$AH[s]=l}r&&!n&&this.P(t)}P(t){t===pt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class zt extends St{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===pt?void 0:t}}const _t=X?X.emptyScript:"";class At extends St{constructor(){super(...arguments),this.type=4}P(t){t&&t!==pt?this.element.setAttribute(this.name,_t):this.element.removeAttribute(this.name)}}class Ct extends St{constructor(t,o,i,n,e){super(t,o,i,n,e),this.type=5}_$AI(t,o=this){var i;if((t=null!==(i=xt(this,t,o,0))&&void 0!==i?i:pt)===mt)return;const n=this._$AH,e=t===pt&&n!==pt||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,r=t!==pt&&(n===pt||e);e&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var o,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(o=this.options)||void 0===o?void 0:o.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class jt{constructor(t,o,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){xt(this,t)}}const Et=Q.litHtmlPolyfillSupport;
24
24
  /**
25
25
  * @license
26
26
  * Copyright 2017 Google LLC
27
27
  * SPDX-License-Identifier: BSD-3-Clause
28
28
  */
29
- const nt=1,rt=t=>(...o)=>({_$litDirective$:t,values:o});class it{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,n){this._$Ct=t,this._$AM=o,this._$Ci=n}_$AS(t,o){return this.update(t,o)}update(t,o){return this.render(...o)}}
29
+ var Mt,Tt;null==Et||Et(yt,kt),(null!==(F=Q.litHtmlVersions)&&void 0!==F?F:Q.litHtmlVersions=[]).push("2.3.1");class Ot extends p{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,o;const i=super.createRenderRoot();return null!==(t=(o=this.renderOptions).renderBefore)&&void 0!==t||(o.renderBefore=i.firstChild),i}update(t){const o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,o,i)=>{var n,e;const r=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:o;let s=r._$litPart$;if(void 0===s){const t=null!==(e=null==i?void 0:i.renderBefore)&&void 0!==e?e:null;r._$litPart$=s=new kt(o.insertBefore(et(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(o,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return mt}}Ot.finalized=!0,Ot._$litElement$=!0,null===(Mt=globalThis.litElementHydrateSupport)||void 0===Mt||Mt.call(globalThis,{LitElement:Ot});const Ut=globalThis.litElementPolyfillSupport;null==Ut||Ut({LitElement:Ot}),(null!==(Tt=globalThis.litElementVersions)&&void 0!==Tt?Tt:globalThis.litElementVersions=[]).push("3.2.2");
30
30
  /**
31
31
  * @license
32
- * Copyright 2018 Google LLC
32
+ * Copyright 2017 Google LLC
33
33
  * SPDX-License-Identifier: BSD-3-Clause
34
- */const et=rt(class extends it{constructor(t){var o;if(super(t),t.type!==nt||"class"!==t.name||(null===(o=t.strings)||void 0===o?void 0:o.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((o=>t[o])).join(" ")+" "}update(t,[o]){var n,r;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in o)o[t]&&!(null===(n=this.st)||void 0===n?void 0:n.has(t))&&this.nt.add(t);return this.render(o)}const i=t.element.classList;this.nt.forEach((t=>{t in o||(i.remove(t),this.nt.delete(t))}));for(const t in o){const n=!!o[t];n===this.nt.has(t)||(null===(r=this.st)||void 0===r?void 0:r.has(t))||(n?(i.add(t),this.nt.add(t)):(i.remove(t),this.nt.delete(t)))}return R}}),st=rt(class extends it{constructor(t){var o;if(super(t),t.type!==nt||"style"!==t.name||(null===(o=t.strings)||void 0===o?void 0:o.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((o,n)=>{const r=t[n];return null==r?o:o+`${n=n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`}),"")}update(t,[o]){const{style:n}=t.element;if(void 0===this.vt){this.vt=new Set;for(const t in o)this.vt.add(t);return this.render(o)}this.vt.forEach((t=>{null==o[t]&&(this.vt.delete(t),t.includes("-")?n.removeProperty(t):n[t]="")}));for(const t in o){const r=o[t];null!=r&&(this.vt.add(t),t.includes("-")?n.setProperty(t,r):n[t]=r)}return R}});
34
+ */
35
+ const Nt=1,Rt=t=>(...o)=>({_$litDirective$:t,values:o});class Wt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,i){this._$Ct=t,this._$AM=o,this._$Ci=i}_$AS(t,o){return this.update(t,o)}update(t,o){return this.render(...o)}}
35
36
  /**
36
37
  * @license
37
38
  * Copyright 2018 Google LLC
38
39
  * SPDX-License-Identifier: BSD-3-Clause
39
- */var at,lt,dt={},ct={};ct.LoadsmartTheme={"brand-color-brand":"20, 214, 77","brand-color-brand-accent-1":"0, 215, 215","brand-color-brand-accent-2":"132, 241, 30","border-radius-none":"0px","border-radius-s":"4px","border-radius-m":"8px","border-radius-l":"16px","border-radius-circle":"50%","border-none":0,"border-thin":"1px","border-medium":"2px","border-thick":"4px","color-background-primary":"252, 252, 255","color-background-secondary":"248, 249, 251","color-background-tertiary":"230, 237, 242","color-background-highlight":"202, 219, 221","color-background-inverted":"32, 41, 49","color-background-secondary-inverted":"61, 74, 85","color-border":"193, 206, 217","color-divider":"230, 237, 242","color-brand":"20, 214, 77","color-brand-accent-1":"0, 215, 215","color-brand-accent-2":"132, 241, 30","color-primary-20":"202, 219, 221","color-primary-60":"0, 84, 84","color-primary-100":"0, 51, 51","color-accent-20":"229, 245, 255","color-accent-60":"0, 98, 159","color-accent-100":"15, 66, 97","color-neutral-0":"252, 252, 255","color-neutral-10":"248, 249, 251","color-neutral-20":"230, 237, 242","color-neutral-40":"193, 206, 217","color-neutral-60":"94, 118, 138","color-neutral-80":"92, 106, 118","color-neutral-90":"61, 74, 85","color-neutral-100":"32, 41, 49","color-success-20":"227, 247, 239","color-success-60":"3, 124, 94","color-success-100":"0, 94, 71","color-danger-20":"255, 233, 230","color-danger-60":"186, 27, 27","color-danger-100":"104, 0, 3","color-warning-20":"255, 243, 214","color-warning-60":"248, 182, 14","color-warning-100":"102, 63, 25","color-text-primary":"32, 41, 49","color-text-secondary":"61, 74, 85","color-text-tertiary":"92, 106, 118","color-text-placeholder":"94, 118, 138","color-text-disabled":"193, 206, 217","color-text-inverted":"252, 252, 255","color-text-secondary-inverted":"193, 206, 217","color-text-error":"186, 27, 27","color-text-highlight":"0, 98, 159","color-text-link":"0, 98, 159","font-family-default":"'Manrope', sans-serif","font-family-title":"'PlusJakartaSans', 'Manrope', sans-serif","font-size-1":"1.625rem","font-size-2":"1.25rem","font-size-3":"1rem","font-size-4":"0.875rem","font-size-5":"0.75rem","font-size-6":"0.625rem","font-weight-regular":500,"font-weight-medium":600,"font-weight-bold":700,"line-height-1":"100%","line-height-2":"125%","line-height-3":"130%","line-height-4":"140%","line-height-5":"150%","opacity-0":"0%","opacity-20":"20%","opacity-40":"40%","opacity-60":"60%","opacity-100":"100%","elevation-1":"0px 0px 2px rgba(94, 118, 138, 0.1), 0px 1px 6px 2px rgba(61, 74, 85, 0.15)","elevation-2":"0px 1px 3px rgba(94, 118, 138, 0.2), 0px 4px 8px 3px rgba(61, 74, 85, 0.15)","elevation-3":"0px 0px 4px rgba(94, 118, 138, 0.2), 0px 6px 12px 6px rgba(61, 74, 85, 0.15)","elevation-4":"0px 5px 6px 4px rgba(94, 118, 138, 0.2), 0px 8px 10px rgba(61, 74, 85, 0.1)","glow-primary":"0.0px 0.0px 4.0px 0px rgb(3, 124, 94, .5)","glow-warning":"0.0px 0.0px 4.0px 0px rgba(255, 206, 79, 1.0)","spacing-1":"4px","spacing-2":"8px","spacing-3":"12px","spacing-4":"16px","spacing-5":"20px","spacing-6":"24px","spacing-8":"32px","spacing-10":"40px","spacing-12":"48px","spacing-14":"56px","spacing-16":"64px","spacing-20":"80px","spacing-30":"120px","spacing-0-5":"2px","platform-font-default":"'Manrope', sans-serif","platform-font-title":"'PlusJakartaSans', 'Manrope', sans-serif"},Object.defineProperty(dt,"i",{value:!0});var ut=ct;function ht(t){return ut.LoadsmartTheme[t]}function bt(t){var o=ht(t);return null==o?o:"--m-".concat(t)}var mt=Object.keys(ut.LoadsmartTheme).filter((function(t){return!t.startsWith("brand-")&&!t.startsWith("platform-")}));function gt(t){return mt.filter((function(o){return o.startsWith(t)}))}var pt=gt("color-"),ft=gt("color-background-"),$t=gt("spacing-"),yt=gt("font-family-"),vt=gt("font-size-"),xt=gt("font-weight-"),wt=gt("line-height-"),kt=gt("border-"),zt=gt("border-radius-"),St=gt("opacity-"),At=gt("elevation-"),Ct=gt("glow-");function jt(t){return e(`\n\t\t${function(t){return e(`\n\t\tmargin-inline-end: ${t}\n\t`)}(t)};\n\t\t${function(t){return e(`\n\t\tmargin-inline-start: ${t}\n\t`)}(t)}\n\t`)}function _t(t){return e(`\n\t\t${function(t){return e(`\n\t\tmargin-block-start: ${t}\n\t`)}(t)};\n\t\t${function(t){return e(`\n\t\tmargin-block-end: ${t}\n\t`)}(t)}\n\t`)}function Mt(t){return e(`\n\t\t${function(t){return e(`\n\t\tpadding-inline-end: ${t}\n\t`)}(t)};\n\t\t${function(t){return e(`\n\t\tpadding-inline-start: ${t}\n\t`)}(t)}\n\t`)}function Et(t){return e(`\n\t\t${function(t){return e(`\n\t\tpadding-block-start: ${t}\n\t`)}(t)};\n\t\t${function(t){return e(`\n\t\tpadding-block-end: ${t}\n\t`)}(t)}\n\t`)}dt.BACKGROUND_COLOR_TOKENS=ft,dt.BORDER_RADIUS_TOKENS=zt,dt.BORDER_TOKENS=kt,dt.BORDER_WIDTH_TOKENS=["border-none","border-thin","border-medium","border-thick"],dt.COLOR_TOKENS=pt,dt.ELEVATION_TOKENS=At,dt.FONT_FAMILY_TOKENS=yt,dt.FONT_SIZE_TOKENS=vt,dt.FONT_WEIGHT_TOKENS=xt,dt.GLOW_TOKENS=Ct,dt.LINE_HEIGHT_TOKENS=wt,dt.OPACITY_TOKENS=St,dt.SPACING_TOKENS=$t,dt.TOKENS=mt,lt=dt.getToken=ht,at=dt.toCSSValue=function(t,o){var n=ht(t);return null==n?"":t.startsWith("color-")?"rgba(var(".concat(bt(t),", ").concat(n,"), ").concat(null!=o?o:1,")"):"var(".concat(bt(t),", ").concat(n,")")},dt.toCSSVariable=bt;var Ot=function(t){return null==t?[]:Array.isArray(t)?t:[t]};const Tt={property:"all",delay:"0s",duration:"0.35s",easing:"ease-in-out"};function Ut(t){const o=Ot(t).map((t=>function(t){const o={...Tt,...t};return e(`${o.property} ${o.duration} ${o.easing} ${o.delay}`)}(t))).join(", ");return e(`\n\t\ttransition: ${o}\n\t`)}function Wt(t){return e(at(t))}function Rt(t){const o=e("\n\t\tfont-style: normal;\n\t\tfont-stretch: normal;\n\t\tletter-spacing: normal;\n\n\t\tfont-synthesis: none;\n\t\ttext-rendering: optimizeLegibility;\n\t\t-webkit-font-smoothing: antialiased;\n\t\t-moz-osx-font-smoothing: grayscale;\n\t\t-webkit-text-size-adjust: 100%;\n\t");return e(`${o}\n${function(t){switch(t){case"heading-lg":return`\n\t\t\t\tfont-family: ${Wt("font-family-title")};\n\t\t\t\tline-height: ${Wt("line-height-2")};\n\t\t\t\tfont-size: ${Wt("font-size-1")};\n\t\t\t\tfont-weight: ${Wt("font-weight-bold")}\n\t\t\t`;case"heading-md-bold":return`\n\t\t\t\tfont-family: ${Wt("font-family-title")};\n\t\t\t\tline-height: ${Wt("line-height-2")};\n\t\t\t\tfont-size: ${Wt("font-size-2")};\n\t\t\t\tfont-weight: ${Wt("font-weight-bold")}\n\t\t\t`;case"heading-md":return`\n\t\t\t\tfont-family: ${Wt("font-family-title")};\n\t\t\t\tline-height: ${Wt("line-height-2")};\n\t\t\t\tfont-size: ${Wt("font-size-2")};\n\t\t\t\tfont-weight: ${Wt("font-weight-regular")}\n\t\t\t`;case"heading-sm-bold":return`\n\t\t\t\tfont-family: ${Wt("font-family-title")};\n\t\t\t\tline-height: ${Wt("line-height-3")};\n\t\t\t\tfont-size: ${Wt("font-size-3")};\n\t\t\t\tfont-weight: ${Wt("font-weight-bold")}\n\t\t\t`;case"heading-sm":return`\n\t\t\t\tfont-family: ${Wt("font-family-title")};\n\t\t\t\tline-height: ${Wt("line-height-3")};\n\t\t\t\tfont-size: ${Wt("font-size-3")};\n\t\t\t\tfont-weight: ${Wt("font-weight-regular")}\n\t\t\t`;case"body-md":return`\n\t\t\t\tfont-family: ${Wt("font-family-default")};\n\t\t\t\tline-height: ${Wt("line-height-5")};\n\t\t\t\tfont-size: ${Wt("font-size-4")};\n\t\t\t\tfont-weight: ${Wt("font-weight-regular")}\n\t\t\t`;case"body-md-underline":return`\n\t\t\t\tfont-family: ${Wt("font-family-default")};\n\t\t\t\tline-height: ${Wt("line-height-5")};\n\t\t\t\tfont-size: ${Wt("font-size-4")};\n\t\t\t\tfont-weight: ${Wt("font-weight-regular")};\n\t\t\t\ttext-decoration: underline\n\t\t\t`;case"body-md-bold":return`\n\t\t\t\tfont-family: ${Wt("font-family-default")};\n\t\t\t\tline-height: ${Wt("line-height-5")};\n\t\t\t\tfont-size: ${Wt("font-size-4")};\n\t\t\t\tfont-weight: ${Wt("font-weight-bold")}\n\t\t\t`;case"body-md-bold-underline":return`\n\t\t\t\tfont-family: ${Wt("font-family-default")};\n\t\t\t\tline-height: ${Wt("line-height-5")};\n\t\t\t\tfont-size: ${Wt("font-size-4")};\n\t\t\t\tfont-weight: ${Wt("font-weight-bold")};\n\t\t\t\ttext-decoration: underline\n\t\t\t`;case"body-sm":return`\n\t\t\t\tfont-family: ${Wt("font-family-default")};\n\t\t\t\tline-height: ${Wt("line-height-5")};\n\t\t\t\tfont-size: ${Wt("font-size-5")};\n\t\t\t\tfont-weight: ${Wt("font-weight-regular")}\n\t\t\t`;case"body-sm-underline":return`\n\t\t\t\tfont-family: ${Wt("font-family-default")};\n\t\t\t\tline-height: ${Wt("line-height-5")};\n\t\t\t\tfont-size: ${Wt("font-size-5")};\n\t\t\t\tfont-weight: ${Wt("font-weight-regular")};\n\t\t\t\ttext-decoration: underline\n\t\t\t`;case"body-sm-bold":return`\n\t\t\t\tfont-family: ${Wt("font-family-default")};\n\t\t\t\tline-height: ${Wt("line-height-5")};\n\t\t\t\tfont-size: ${Wt("font-size-5")};\n\t\t\t\tfont-weight: ${Wt("font-weight-bold")}\n\t\t\t`;case"body-sm-bold-underline":return`\n\t\t\t\tfont-family: ${Wt("font-family-default")};\n\t\t\t\tline-height: ${Wt("line-height-5")};\n\t\t\t\tfont-size: ${Wt("font-size-5")};\n\t\t\t\tfont-weight: ${Wt("font-weight-bold")};\n\t\t\t\ttext-decoration: underline\n\t\t\t`;case"number-md":return`\n\t\t\t\tfont-family: ${Wt("font-family-default")};\n\t\t\t\tline-height: ${Wt("line-height-2")};\n\t\t\t\tfont-size: ${Wt("font-size-4")};\n\t\t\t\tfont-weight: ${Wt("font-weight-regular")}\n\t\t\t`;case"number-sm":return`\n\t\t\t\tfont-family: ${Wt("font-family-default")};\n\t\t\t\tline-height: ${Wt("line-height-2")};\n\t\t\t\tfont-size: ${Wt("font-size-5")};\n\t\t\t\tfont-weight: ${Wt("font-weight-regular")}\n\t\t\t`;case"button-lg":return`\n\t\t\t\tfont-family: ${Wt("font-family-default")};\n\t\t\t\tline-height: ${Wt("line-height-1")};\n\t\t\t\tfont-size: ${Wt("font-size-3")};\n\t\t\t\tfont-weight: ${Wt("font-weight-bold")}\n\t\t\t`;case"button-md":return`\n\t\t\t\tfont-family: ${Wt("font-family-default")};\n\t\t\t\tline-height: ${Wt("line-height-1")};\n\t\t\t\tfont-size: ${Wt("font-size-4")};\n\t\t\t\tfont-weight: ${Wt("font-weight-bold")}\n\t\t\t`;case"button-sm":return`\n\t\t\t\tfont-family: ${Wt("font-family-default")};\n\t\t\t\tline-height: ${Wt("line-height-1")};\n\t\t\t\tfont-size: ${Wt("font-size-5")};\n\t\t\t\tfont-weight: ${Wt("font-weight-bold")}\n\t\t\t`;case"table-header-md":return`\n\t\t\t\tfont-family: ${Wt("font-family-default")};\n\t\t\t\tline-height: ${Wt("line-height-1")};\n\t\t\t\tfont-size: ${Wt("font-size-4")};\n\t\t\t\tfont-weight: ${Wt("font-weight-medium")};\n\t\t\t\ttext-transform: uppercase\n\t\t\t`;case"table-header-sm":return`\n\t\t\t\tfont-family: ${Wt("font-family-default")};\n\t\t\t\tline-height: ${Wt("line-height-1")};\n\t\t\t\tfont-size: ${Wt("font-size-5")};\n\t\t\t\tfont-weight: ${Wt("font-weight-medium")}\n\t\t\t`;case"chips-sm":return`\n\t\t\t\tfont-family: ${Wt("font-family-default")};\n\t\t\t\tline-height: ${Wt("line-height-1")};\n\t\t\t\tfont-size: ${Wt("font-size-6")};\n\t\t\t\tfont-weight: ${Wt("font-weight-bold")}\n\t\t\t`;default:return""}}(t)}`)}function Nt(t,o=""){return e(Ot(t).map((t=>[`${t}.is-disabled`,`${t}:disabled`].map((t=>[t,o].join(" "))).join(", "))).join(", "))}const Pt={active:function(t){return e(Ot(t).map((t=>`${t}:not(.is-disabled, :disabled):active`)).join(", "))},focus:function(t){return e(Ot(t).map((t=>`${t}:not(.is-disabled, :disabled):focus,\n\t\t\t\t${t}:not(.is-disabled, :disabled):focus-within,\n\t\t\t\t${t}:not(.is-disabled, :disabled).is-focused`)).join(", "))},hover:function(t){return e(Ot(t).map((t=>`${t}:not(.is-disabled, :disabled):hover`)).join(", "))}};function Bt(t,o=1){return e(at(t,o))}class Dt extends tt{constructor(){super(),this.variant="body-md",this.color="color-text-primary"}static get properties(){return{variant:{type:String,reflect:!0},color:{type:String}}}render(){return W`
40
- <span
41
- class=${et({"m-text":!0,"-body-md-bold-underline":"body-md-bold-underline"==this.variant,"-body-md-bold":"body-md-bold"==this.variant,"-body-md-underline":"body-md-underline"==this.variant,"-body-md":"body-md"==this.variant,"-body-sm-bold-underline":"body-sm-bold-underline"==this.variant,"-body-sm-bold":"body-sm-bold"==this.variant,"-body-sm-underline":"body-sm-underline"==this.variant,"-body-sm":"body-sm"==this.variant,"-button-lg":"button-lg"==this.variant,"-button-md":"button-md"==this.variant,"-button-sm":"button-sm"==this.variant,"-chips-sm":"chips-sm"==this.variant,"-heading-lg":"heading-lg"==this.variant,"-heading-md-bold":"heading-md-bold"==this.variant,"-heading-md":"heading-md"==this.variant,"-heading-sm-bold":"heading-sm-bold"==this.variant,"-heading-sm":"heading-sm"==this.variant,"-number-md":"number-md"==this.variant,"-number-sm":"number-sm"==this.variant,"-table-header-md":"table-header-md"==this.variant,"-table-header-sm":"table-header-sm"==this.variant})}
42
- style=${st({"--m-text-color":at(this.color)})}
43
- >
44
- <slot></slot>
45
- </span>
46
- `}}Dt.styles=[s`
40
+ */const Bt=Rt(class extends Wt{constructor(t){var o;if(super(t),t.type!==Nt||"class"!==t.name||(null===(o=t.strings)||void 0===o?void 0:o.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((o=>t[o])).join(" ")+" "}update(t,[o]){var i,n;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in o)o[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(o)}const e=t.element.classList;this.nt.forEach((t=>{t in o||(e.remove(t),this.nt.delete(t))}));for(const t in o){const i=!!o[t];i===this.nt.has(t)||(null===(n=this.st)||void 0===n?void 0:n.has(t))||(i?(e.add(t),this.nt.add(t)):(e.remove(t),this.nt.delete(t)))}return N}});var Lt,Dt,It={},Pt={};Pt.LoadsmartTheme={"brand-color-brand":"20, 214, 77","brand-color-brand-accent-1":"0, 215, 215","brand-color-brand-accent-2":"132, 241, 30","border-radius-none":"0px","border-radius-s":"4px","border-radius-m":"8px","border-radius-l":"16px","border-radius-circle":"50%","border-none":0,"border-thin":"1px","border-medium":"2px","border-thick":"4px","color-background-primary":"252, 252, 255","color-background-secondary":"248, 249, 251","color-background-tertiary":"230, 237, 242","color-background-highlight":"202, 219, 221","color-background-inverted":"32, 41, 49","color-background-secondary-inverted":"61, 74, 85","color-border":"193, 206, 217","color-divider":"230, 237, 242","color-brand":"20, 214, 77","color-brand-accent-1":"0, 215, 215","color-brand-accent-2":"132, 241, 30","color-primary-20":"202, 219, 221","color-primary-60":"0, 84, 84","color-primary-100":"0, 51, 51","color-accent-20":"229, 245, 255","color-accent-60":"0, 98, 159","color-accent-100":"15, 66, 97","color-neutral-0":"252, 252, 255","color-neutral-10":"248, 249, 251","color-neutral-20":"230, 237, 242","color-neutral-40":"193, 206, 217","color-neutral-60":"94, 118, 138","color-neutral-80":"92, 106, 118","color-neutral-90":"61, 74, 85","color-neutral-100":"32, 41, 49","color-success-20":"227, 247, 239","color-success-60":"3, 124, 94","color-success-100":"0, 94, 71","color-danger-20":"255, 233, 230","color-danger-60":"186, 27, 27","color-danger-100":"104, 0, 3","color-warning-20":"255, 243, 214","color-warning-60":"248, 182, 14","color-warning-100":"102, 63, 25","color-text-primary":"32, 41, 49","color-text-secondary":"61, 74, 85","color-text-tertiary":"92, 106, 118","color-text-placeholder":"94, 118, 138","color-text-disabled":"193, 206, 217","color-text-inverted":"252, 252, 255","color-text-secondary-inverted":"193, 206, 217","color-text-error":"186, 27, 27","color-text-highlight":"0, 98, 159","color-text-link":"0, 98, 159","font-family-default":"'Manrope', sans-serif","font-family-title":"'PlusJakartaSans', 'Manrope', sans-serif","font-size-1":"1.625rem","font-size-2":"1.25rem","font-size-3":"1rem","font-size-4":"0.875rem","font-size-5":"0.75rem","font-size-6":"0.625rem","font-weight-regular":500,"font-weight-medium":600,"font-weight-bold":700,"line-height-1":"100%","line-height-2":"125%","line-height-3":"130%","line-height-4":"140%","line-height-5":"150%","opacity-0":"0%","opacity-20":"20%","opacity-40":"40%","opacity-60":"60%","opacity-100":"100%","elevation-1":"0px 0px 2px rgba(94, 118, 138, 0.1), 0px 1px 6px 2px rgba(61, 74, 85, 0.15)","elevation-2":"0px 1px 3px rgba(94, 118, 138, 0.2), 0px 4px 8px 3px rgba(61, 74, 85, 0.15)","elevation-3":"0px 0px 4px rgba(94, 118, 138, 0.2), 0px 6px 12px 6px rgba(61, 74, 85, 0.15)","elevation-4":"0px 5px 6px 4px rgba(94, 118, 138, 0.2), 0px 8px 10px rgba(61, 74, 85, 0.1)","glow-primary":"0.0px 0.0px 4.0px 0px rgb(3, 124, 94, .5)","glow-warning":"0.0px 0.0px 4.0px 0px rgba(255, 206, 79, 1.0)","spacing-1":"4px","spacing-2":"8px","spacing-3":"12px","spacing-4":"16px","spacing-5":"20px","spacing-6":"24px","spacing-8":"32px","spacing-10":"40px","spacing-12":"48px","spacing-14":"56px","spacing-16":"64px","spacing-20":"80px","spacing-30":"120px","spacing-0-5":"2px","platform-font-default":"'Manrope', sans-serif","platform-font-title":"'PlusJakartaSans', 'Manrope', sans-serif"},Object.defineProperty(It,"i",{value:!0});var Zt=Pt;function Gt(t){return Zt.LoadsmartTheme[t]}function Jt(t){var o=Gt(t);return null==o?o:"--m-".concat(t)}var Ht=Object.keys(Zt.LoadsmartTheme).filter((function(t){return!t.startsWith("brand-")&&!t.startsWith("platform-")}));function qt(t){return Ht.filter((function(o){return o.startsWith(t)}))}var Kt=qt("color-"),Vt=qt("color-background-"),Ft=qt("spacing-"),Qt=qt("font-family-"),Xt=qt("font-size-"),Yt=qt("font-weight-"),to=qt("line-height-"),oo=qt("border-"),io=qt("border-radius-"),no=qt("opacity-"),eo=qt("elevation-"),ro=qt("glow-");function so(t){return r(Lt(t))}function lo(t,o=1){return r(Lt(t,o))}function ao(t){return r(`\n\t\t${function(t){return r(`\n\t\tmargin-inline-end: ${t}\n\t`)}(t)};\n\t\t${function(t){return r(`\n\t\tmargin-inline-start: ${t}\n\t`)}(t)}\n\t`)}function co(t){return r(`\n\t\t${function(t){return r(`\n\t\tmargin-block-start: ${t}\n\t`)}(t)};\n\t\t${function(t){return r(`\n\t\tmargin-block-end: ${t}\n\t`)}(t)}\n\t`)}function uo(t){return r(`\n\t\t${function(t){return r(`\n\t\tpadding-inline-end: ${t}\n\t`)}(t)};\n\t\t${function(t){return r(`\n\t\tpadding-inline-start: ${t}\n\t`)}(t)}\n\t`)}function ho(t){return r(`\n\t\t${function(t){return r(`\n\t\tpadding-block-start: ${t}\n\t`)}(t)};\n\t\t${function(t){return r(`\n\t\tpadding-block-end: ${t}\n\t`)}(t)}\n\t`)}It.BACKGROUND_COLOR_TOKENS=Vt,It.BORDER_RADIUS_TOKENS=io,It.BORDER_TOKENS=oo,It.BORDER_WIDTH_TOKENS=["border-none","border-thin","border-medium","border-thick"],It.COLOR_TOKENS=Kt,It.ELEVATION_TOKENS=eo,It.FONT_FAMILY_TOKENS=Qt,It.FONT_SIZE_TOKENS=Xt,It.FONT_WEIGHT_TOKENS=Yt,It.GLOW_TOKENS=ro,It.LINE_HEIGHT_TOKENS=to,It.OPACITY_TOKENS=no,It.SPACING_TOKENS=Ft,It.TOKENS=Ht,Dt=It.getToken=Gt,Lt=It.toCSSValue=function(t,o){var i=Gt(t);return null==i?"":t.startsWith("color-")?"rgba(var(".concat(Jt(t),", ").concat(i,"), ").concat(null!=o?o:1,")"):"var(".concat(Jt(t),", ").concat(i,")")},It.toCSSVariable=Jt;var go={toArray:function(t){return null==t?[]:Array.isArray(t)?t:[t]}},bo=go.toArray;const mo={property:"all",delay:"0s",duration:"0.35s",easing:"ease-in-out"};function po(t){const o=bo(t).map((t=>function(t){const o={...mo,...t};return r(`${o.property} ${o.duration} ${o.easing} ${o.delay}`)}(t))).join(", ");return r(`\n\t\ttransition: ${o}\n\t`)}function fo(t){const o=r("\n\t\tfont-style: normal;\n\t\tfont-stretch: normal;\n\t\tletter-spacing: normal;\n\n\t\tfont-synthesis: none;\n\t\ttext-rendering: optimizeLegibility;\n\t\t-webkit-font-smoothing: antialiased;\n\t\t-moz-osx-font-smoothing: grayscale;\n\t\t-webkit-text-size-adjust: 100%;\n\t");return r(`${o}\n${function(t){switch(t){case"heading-lg":return`\n\t\t\t\tfont-family: ${so("font-family-title")};\n\t\t\t\tline-height: ${so("line-height-2")};\n\t\t\t\tfont-size: ${so("font-size-1")};\n\t\t\t\tfont-weight: ${so("font-weight-bold")}\n\t\t\t`;case"heading-md-bold":return`\n\t\t\t\tfont-family: ${so("font-family-title")};\n\t\t\t\tline-height: ${so("line-height-2")};\n\t\t\t\tfont-size: ${so("font-size-2")};\n\t\t\t\tfont-weight: ${so("font-weight-bold")}\n\t\t\t`;case"heading-md":return`\n\t\t\t\tfont-family: ${so("font-family-title")};\n\t\t\t\tline-height: ${so("line-height-2")};\n\t\t\t\tfont-size: ${so("font-size-2")};\n\t\t\t\tfont-weight: ${so("font-weight-regular")}\n\t\t\t`;case"heading-sm-bold":return`\n\t\t\t\tfont-family: ${so("font-family-title")};\n\t\t\t\tline-height: ${so("line-height-3")};\n\t\t\t\tfont-size: ${so("font-size-3")};\n\t\t\t\tfont-weight: ${so("font-weight-bold")}\n\t\t\t`;case"heading-sm":return`\n\t\t\t\tfont-family: ${so("font-family-title")};\n\t\t\t\tline-height: ${so("line-height-3")};\n\t\t\t\tfont-size: ${so("font-size-3")};\n\t\t\t\tfont-weight: ${so("font-weight-regular")}\n\t\t\t`;case"body-md":return`\n\t\t\t\tfont-family: ${so("font-family-default")};\n\t\t\t\tline-height: ${so("line-height-5")};\n\t\t\t\tfont-size: ${so("font-size-4")};\n\t\t\t\tfont-weight: ${so("font-weight-regular")}\n\t\t\t`;case"body-md-underline":return`\n\t\t\t\tfont-family: ${so("font-family-default")};\n\t\t\t\tline-height: ${so("line-height-5")};\n\t\t\t\tfont-size: ${so("font-size-4")};\n\t\t\t\tfont-weight: ${so("font-weight-regular")};\n\t\t\t\ttext-decoration: underline\n\t\t\t`;case"body-md-bold":return`\n\t\t\t\tfont-family: ${so("font-family-default")};\n\t\t\t\tline-height: ${so("line-height-5")};\n\t\t\t\tfont-size: ${so("font-size-4")};\n\t\t\t\tfont-weight: ${so("font-weight-bold")}\n\t\t\t`;case"body-md-bold-underline":return`\n\t\t\t\tfont-family: ${so("font-family-default")};\n\t\t\t\tline-height: ${so("line-height-5")};\n\t\t\t\tfont-size: ${so("font-size-4")};\n\t\t\t\tfont-weight: ${so("font-weight-bold")};\n\t\t\t\ttext-decoration: underline\n\t\t\t`;case"body-sm":return`\n\t\t\t\tfont-family: ${so("font-family-default")};\n\t\t\t\tline-height: ${so("line-height-5")};\n\t\t\t\tfont-size: ${so("font-size-5")};\n\t\t\t\tfont-weight: ${so("font-weight-regular")}\n\t\t\t`;case"body-sm-underline":return`\n\t\t\t\tfont-family: ${so("font-family-default")};\n\t\t\t\tline-height: ${so("line-height-5")};\n\t\t\t\tfont-size: ${so("font-size-5")};\n\t\t\t\tfont-weight: ${so("font-weight-regular")};\n\t\t\t\ttext-decoration: underline\n\t\t\t`;case"body-sm-bold":return`\n\t\t\t\tfont-family: ${so("font-family-default")};\n\t\t\t\tline-height: ${so("line-height-5")};\n\t\t\t\tfont-size: ${so("font-size-5")};\n\t\t\t\tfont-weight: ${so("font-weight-bold")}\n\t\t\t`;case"body-sm-bold-underline":return`\n\t\t\t\tfont-family: ${so("font-family-default")};\n\t\t\t\tline-height: ${so("line-height-5")};\n\t\t\t\tfont-size: ${so("font-size-5")};\n\t\t\t\tfont-weight: ${so("font-weight-bold")};\n\t\t\t\ttext-decoration: underline\n\t\t\t`;case"number-md":return`\n\t\t\t\tfont-family: ${so("font-family-default")};\n\t\t\t\tline-height: ${so("line-height-2")};\n\t\t\t\tfont-size: ${so("font-size-4")};\n\t\t\t\tfont-weight: ${so("font-weight-regular")}\n\t\t\t`;case"number-sm":return`\n\t\t\t\tfont-family: ${so("font-family-default")};\n\t\t\t\tline-height: ${so("line-height-2")};\n\t\t\t\tfont-size: ${so("font-size-5")};\n\t\t\t\tfont-weight: ${so("font-weight-regular")}\n\t\t\t`;case"button-lg":return`\n\t\t\t\tfont-family: ${so("font-family-default")};\n\t\t\t\tline-height: ${so("line-height-1")};\n\t\t\t\tfont-size: ${so("font-size-3")};\n\t\t\t\tfont-weight: ${so("font-weight-bold")}\n\t\t\t`;case"button-md":return`\n\t\t\t\tfont-family: ${so("font-family-default")};\n\t\t\t\tline-height: ${so("line-height-1")};\n\t\t\t\tfont-size: ${so("font-size-4")};\n\t\t\t\tfont-weight: ${so("font-weight-bold")}\n\t\t\t`;case"button-sm":return`\n\t\t\t\tfont-family: ${so("font-family-default")};\n\t\t\t\tline-height: ${so("line-height-1")};\n\t\t\t\tfont-size: ${so("font-size-5")};\n\t\t\t\tfont-weight: ${so("font-weight-bold")}\n\t\t\t`;case"table-header-md":return`\n\t\t\t\tfont-family: ${so("font-family-default")};\n\t\t\t\tline-height: ${so("line-height-1")};\n\t\t\t\tfont-size: ${so("font-size-4")};\n\t\t\t\tfont-weight: ${so("font-weight-medium")};\n\t\t\t\ttext-transform: uppercase\n\t\t\t`;case"table-header-sm":return`\n\t\t\t\tfont-family: ${so("font-family-default")};\n\t\t\t\tline-height: ${so("line-height-1")};\n\t\t\t\tfont-size: ${so("font-size-5")};\n\t\t\t\tfont-weight: ${so("font-weight-medium")}\n\t\t\t`;case"chips-sm":return`\n\t\t\t\tfont-family: ${so("font-family-default")};\n\t\t\t\tline-height: ${so("line-height-1")};\n\t\t\t\tfont-size: ${so("font-size-6")};\n\t\t\t\tfont-weight: ${so("font-weight-bold")}\n\t\t\t`;default:return""}}(t)}`)}function vo(t,o=""){return r(bo(t).map((t=>[`${t}.is-disabled`,`${t}:disabled`].map((t=>[t,o].join(" "))).join(", "))).join(", "))}const $o={active:function(t){return r(bo(t).map((t=>`${t}:not(.is-disabled, :disabled):active`)).join(", "))},focus:function(t){return r(bo(t).map((t=>`${t}:not(.is-disabled, :disabled):focus,\n\t\t\t\t${t}:not(.is-disabled, :disabled):focus-within,\n\t\t\t\t${t}:not(.is-disabled, :disabled).is-focused`)).join(", "))},hover:function(t){return r(bo(t).map((t=>`${t}:not(.is-disabled, :disabled):hover`)).join(", "))}};function yo(){return s`
47
41
  :host {
48
- --m-text-color: ${Bt("color-text-primary")};
49
- }
50
-
51
- .m-text {
52
- ${Ut([{property:"color"}])};
53
-
54
- ${Rt()};
55
-
56
- display: inline-flex;
57
-
58
- color: var( --m-text-color );
59
- }
60
-
61
- .-body-md-bold-underline {
62
- ${Rt("body-md-bold-underline")};
63
- }
64
-
65
- .-body-md-bold {
66
- ${Rt("body-md-bold")};
67
- }
68
-
69
- .-body-md-underline {
70
- ${Rt("body-md-underline")};
71
- }
72
-
73
- .-body-md {
74
- ${Rt("body-md")};
42
+ --m-button-background-color: transparent;
43
+ --m-button-base-size: 40px;
44
+ --m-button-border-color: ${lo("color-neutral-90")};
45
+ --m-button-border-radius: ${so("border-radius-s")};
46
+ --m-button-color: ${lo("color-text-secondary")};
47
+ --m-button-outline-color: ${lo("color-primary-100")};
48
+ --m-button-outline-offset: 2px;
49
+ --m-button-padding-x: ${so("spacing-4")};
50
+ --m-button-padding-y: ${so("spacing-3")};
51
+ /**
52
+ * Useful when overriding via host :slotted query.
53
+ */
54
+ --m-button-font-size: ${so("font-size-4")};
75
55
  }
76
56
 
77
- .-body-sm-bold-underline {
78
- ${Rt("body-sm-bold-underline")};
79
- }
57
+ .button {
58
+ ${po([{property:"color"},{property:"background-color"},{property:"border-color"}])};
80
59
 
81
- .-body-sm-bold {
82
- ${Rt("body-sm-bold")};
83
- }
60
+ ${fo("button-md")};
61
+ font-size: var( --m-button-font-size );
84
62
 
85
- .-body-sm-underline {
86
- ${Rt("body-sm-underline")};
87
- }
63
+ cursor: pointer;
64
+ position: relative;
88
65
 
89
- .-body-sm {
90
- ${Rt("body-sm")};
91
- }
66
+ display: inline-flex;
67
+ align-items: center;
68
+ justify-content: center;
69
+ overflow: hidden;
92
70
 
93
- .-button-lg {
94
- ${Rt("button-lg")};
95
- }
71
+ block-size: var( --m-button-base-size );
72
+ box-sizing: border-box;
96
73
 
97
- .-button-md {
98
- ${Rt("button-md")};
99
- }
74
+ text-decoration: none;
100
75
 
101
- .-button-sm {
102
- ${Rt("button-sm")};
103
- }
76
+ gap: ${so("spacing-1")};
104
77
 
105
- .-chips-sm {
106
- ${Rt("chips-sm")};
107
- }
78
+ padding-inline: var( --m-button-padding-x );
79
+ padding-block: var( --m-button-padding-y );
108
80
 
109
- .-heading-lg {
110
- ${Rt("heading-lg")};
111
- }
81
+ background-color: var( --m-button-background-color );
82
+ color: var( --m-button-color );
83
+ border: 1px solid var( --m-button-border-color );
112
84
 
113
- .-heading-md-bold {
114
- ${Rt("heading-md-bold")};
85
+ border-radius: var( --m-button-border-radius );
115
86
  }
116
87
 
117
- .-heading-md {
118
- ${Rt("heading-md")};
88
+ ${vo(".button")} {
89
+ cursor: default;
119
90
  }
120
91
 
121
- .-heading-sm-bold {
122
- ${Rt("heading-sm-bold")};
92
+ ${vo(".button","*")} {
93
+ pointer-events: none;
123
94
  }
124
95
 
125
- .-heading-sm {
126
- ${Rt("heading-sm")};
96
+ ${$o.focus(".button")} {
97
+ outline: 1px solid var( --m-button-outline-color );
98
+ outline-offset: var( --m-button-outline-offset );
127
99
  }
128
100
 
129
- .-number-md {
130
- ${Rt("number-md")};
101
+ ${$o.hover(".button")} {
102
+ --m-button-background-color: ${lo("color-background-inverted")};
103
+ --m-button-border-color: ${lo("color-background-inverted")};
104
+ --m-button-color: ${lo("color-text-inverted")};
131
105
  }
132
106
 
133
- .-number-sm {
134
- ${Rt("number-sm")};
135
- }
107
+ ::slotted( * ) {
108
+ display: inline-flex;
109
+ align-items: center;
136
110
 
137
- .-table-header-md {
138
- ${Rt("table-header-md")};
111
+ ${o=0,r(`\n\t\t${uo(o)};\n\t\t${ho(o)}\n\t`)};
112
+ ${t=0,r(`\n\t\t${ao(t)};\n\t\t${co(t)}\n\t`)};
139
113
  }
140
114
 
141
- .-table-header-sm {
142
- ${Rt("table-header-sm")};
115
+ slot[name='leading']::slotted( span ),
116
+ slot[name='trailing']::slotted( span ) {
117
+ justify-content: center;
143
118
  }
144
- `],window.customElements.define("m-text",Dt);class It extends tt{constructor(){super(),this.flagged=!1,this.flagColor="color-background-inverted"}static get properties(){return{flagged:{type:Boolean},flagColor:{type:String,attribute:"flag-color"}}}render(){return W`
119
+ `;var t,o}class xo extends Ot{constructor(){super(),this.variant="secondary",this.size="default",this.type="button",this.disabled=!1,this.loading=!1}static get properties(){return{loading:{type:Boolean},disabled:{type:Boolean,reflect:!0},variant:{type:String},size:{type:String},type:{type:String}}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","button")}updated(t){super.updated(t),(t.has("disabled")||t.has("loading"))&&this._setDisabled()}render(){return bt`
120
+ <button
121
+ class=${Bt({button:!0,"-primary":"primary"==this.variant,"-secondary":"secondary"==this.variant,"-tertiary":"tertiary"==this.variant,"-warning":"warning"==this.variant,"-danger":"danger"==this.variant,"-icon":"icon"==this.variant,"-icon-secondary":"icon-secondary"==this.variant,"-small":"small"==this.size,"-default":"default"==this.size,"-large":"large"==this.size,"is-loading":Boolean(this.loading)})}
122
+ type=${this.type}
123
+ ?disabled="${this._isDisabled()}"
124
+ >
125
+ <!-- TODO: Replace this with the loading dots component as soon as it is ready. -->
126
+ ${this.loading&&!["icon","icon-secondary"].includes(this.variant)?bt`<span class="loader">&#x25cf;&#x25cf;&#x25cf;</span>`:pt}
127
+ <slot name="leading"></slot>
128
+ <slot></slot>
129
+ <slot name="trailing"></slot>
130
+ </button>
131
+ `}_isDisabled(){return Boolean(this.disabled)||Boolean(this.loading)}_setDisabled(){const t=this._isDisabled();this.setAttribute("aria-disabled",String(t))}}xo.styles=[[yo(),s`
132
+ .button.is-loading:not( .-icon, .-icon-secondary ) *:not( .loader ) {
133
+ visibility: hidden;
134
+ }
135
+
136
+ .button.-primary {
137
+ --m-button-background-color: ${lo("color-primary-60")};
138
+ --m-button-border-color: ${lo("color-primary-60")};
139
+ --m-button-color: ${lo("color-text-inverted")};
140
+ }
141
+
142
+ ${vo(".button.-primary")} {
143
+ --m-button-background-color: ${lo("color-primary-20")};
144
+ --m-button-border-color: ${lo("color-primary-20")};
145
+ }
146
+
147
+ ${$o.focus(".button.-primary")} {
148
+ --m-button-border-color: ${lo("color-primary-60")};
149
+ --m-button-outline-color: ${lo("color-primary-60")};
150
+ }
151
+
152
+ ${$o.hover(".button.-primary")},
153
+ ${$o.active(".button.-primary")} {
154
+ --m-button-background-color: ${lo("color-primary-100")};
155
+ --m-button-border-color: ${lo("color-primary-100")};
156
+ }
157
+
158
+ .button.-primary.is-loading {
159
+ --m-button-background-color: ${lo("color-primary-60")};
160
+ --m-button-border-color: ${lo("color-primary-60")};
161
+ --m-button-color: ${lo("color-text-inverted")};
162
+ }
163
+
164
+ .button.-secondary {
165
+ --m-button-background-color: transparent;
166
+ --m-button-border-color: ${lo("color-primary-100")};
167
+ --m-button-color: ${lo("color-primary-100")};
168
+ }
169
+
170
+ ${vo(".button.-secondary")} {
171
+ --m-button-border-color: ${lo("color-text-disabled")};
172
+ --m-button-color: ${lo("color-text-disabled")};
173
+ }
174
+
175
+ ${$o.focus(".button.-secondary")} {
176
+ --m-button-border-color: ${lo("color-primary-100")};
177
+ --m-button-color: ${lo("color-primary-100")};
178
+
179
+ --m-button-outline-color: ${lo("color-primary-60")};
180
+ }
181
+
182
+ ${$o.hover(".button.-secondary")},
183
+ ${$o.active(".button.-secondary")} {
184
+ --m-button-background-color: ${lo("color-background-tertiary")};
185
+ --m-button-border-color: ${lo("color-primary-60")};
186
+ --m-button-color: ${lo("color-primary-60")};
187
+ }
188
+
189
+ .button.-secondary.is-loading {
190
+ --m-button-background-color: transparent;
191
+
192
+ --m-button-border-color: ${lo("color-primary-100")};
193
+ --m-button-color: ${lo("color-primary-100")};
194
+ }
195
+
196
+ .button.-tertiary {
197
+ --m-button-background-color: transparent;
198
+ --m-button-border-color: transparent;
199
+ --m-button-color: ${lo("color-primary-100")};
200
+ }
201
+
202
+ ${vo(".button.-tertiary")} {
203
+ --m-button-color: ${lo("color-text-disabled")};
204
+ }
205
+
206
+ ${$o.focus(".button.-tertiary")} {
207
+ --m-button-color: ${lo("color-primary-100")};
208
+ --m-button-outline-color: ${lo("color-primary-60")};
209
+ }
210
+
211
+ ${$o.hover(".button.-tertiary")} {
212
+ --m-button-background-color: ${lo("color-background-tertiary")};
213
+ --m-button-border-color: ${lo("color-background-tertiary")};
214
+ --m-button-color: ${lo("color-primary-60")};
215
+ }
216
+
217
+ ${$o.active(".button.-tertiary")} {
218
+ --m-button-background-color: ${lo("color-neutral-20")};
219
+ --m-button-border-color: ${lo("color-neutral-20")};
220
+ --m-button-color: ${lo("color-primary-60")};
221
+ }
222
+
223
+ .button.-tertiary.is-loading {
224
+ --m-button-background-color: transparent;
225
+ --m-button-border-color: transparent;
226
+ --m-button-color: ${lo("color-primary-100")};
227
+ }
228
+
229
+ .button.-warning {
230
+ --m-button-background-color: ${lo("color-warning-60")};
231
+ --m-button-border-color: ${lo("color-warning-60")};
232
+ --m-button-color: ${lo("color-text-primary")};
233
+ }
234
+
235
+ ${vo(".button.-warning")} {
236
+ --m-button-background-color: ${lo("color-warning-20")};
237
+ --m-button-border-color: ${lo("color-warning-20")};
238
+ --m-button-color: ${lo("color-text-inverted")};
239
+ }
240
+
241
+ ${$o.focus(".button.-warning")} {
242
+ --m-button-background-color: ${lo("color-warning-60")};
243
+ --m-button-outline-color: ${lo("color-warning-60")};
244
+ }
245
+
246
+ ${$o.hover(".button.-warning")},
247
+ ${$o.active(".button.-warning")} {
248
+ --m-button-background-color: ${lo("color-warning-100")};
249
+ --m-button-border-color: ${lo("color-warning-100")};
250
+ --m-button-color: ${lo("color-text-inverted")};
251
+ }
252
+
253
+ .button.-warning.is-loading {
254
+ --m-button-background-color: ${lo("color-warning-60")};
255
+ --m-button-border-color: ${lo("color-warning-60")};
256
+ --m-button-color: ${lo("color-text-primary")};
257
+ }
258
+
259
+ .button.-danger {
260
+ --m-button-background-color: ${lo("color-danger-60")};
261
+ --m-button-border-color: ${lo("color-danger-60")};
262
+ --m-button-color: ${lo("color-text-inverted")};
263
+ }
264
+
265
+ ${vo(".button.-danger")} {
266
+ --m-button-background-color: ${lo("color-danger-20")};
267
+ --m-button-border-color: ${lo("color-danger-20")};
268
+ }
269
+
270
+ ${$o.focus(".button.-danger")} {
271
+ --m-button-background-color: ${lo("color-danger-60")};
272
+ --m-button-outline-color: ${lo("color-danger-60")};
273
+ }
274
+
275
+ ${$o.hover(".button.-danger")},
276
+ ${$o.active(".button.-danger")} {
277
+ --m-button-background-color: ${lo("color-danger-100")};
278
+ --m-button-border-color: ${lo("color-danger-100")};
279
+ }
280
+
281
+ .button.-danger.is-loading {
282
+ --m-button-background-color: ${lo("color-danger-60")};
283
+ --m-button-border-color: ${lo("color-danger-60")};
284
+ --m-button-color: ${lo("color-text-inverted")};
285
+ }
286
+
287
+ .button.-icon,
288
+ .button.-icon-secondary {
289
+ --m-button-border-radius: ${so("border-radius-circle")};
290
+ --m-button-color: ${lo("color-neutral-90")};
291
+ --m-button-padding-x: ${so("spacing-1")};
292
+ --m-button-padding-y: ${so("spacing-1")};
293
+
294
+ min-block-size: var( --m-button-base-size );
295
+ max-block-size: var( --m-button-base-size );
296
+ min-inline-size: var( --m-button-base-size );
297
+ max-inline-size: var( --m-button-base-size );
298
+ }
299
+
300
+ .button.-icon {
301
+ --m-button-background-color: ${lo("color-background-tertiary")};
302
+ --m-button-border-color: ${lo("color-background-tertiary")};
303
+ }
304
+
305
+ .button.-icon-secondary {
306
+ --m-button-background-color: transparent;
307
+ --m-button-border-color: transparent;
308
+ }
309
+
310
+ .button.-icon slot[name='leading']::slotted( * ),
311
+ .button.-icon slot[name='trailing']::slotted( * ),
312
+ .button.-icon-secondary slot[name='leading']::slotted( * ),
313
+ .button.-icon-secondary slot[name='trailing']::slotted( * ) {
314
+ display: none;
315
+ }
316
+
317
+ ${vo([".button.-icon",".button.-icon-secondary"])} {
318
+ --m-button-color: ${lo("color-neutral-40")};
319
+ }
320
+
321
+ ${vo(".button.-icon")} {
322
+ --m-button-background-color: ${lo("color-neutral-20")};
323
+ --m-button-border-color: ${lo("color-neutral-20")};
324
+ }
325
+
326
+ ${vo(".button.-icon-secondary")} {
327
+ --m-button-background-color: transparent;
328
+ --m-button-border-color: transparent;
329
+ }
330
+
331
+ ${$o.focus([".button.-icon",".button.-icon-secondary"])} {
332
+ --m-button-color: ${lo("color-primary-60")};
333
+ --m-button-outline-color: ${lo("color-primary-60")};
334
+ }
335
+
336
+ ${$o.focus(".button.-icon")} {
337
+ --m-button-background-color: ${lo("color-neutral-20")};
338
+ }
339
+
340
+ ${$o.focus(".button.-icon-secondary")} {
341
+ --m-button-background-color: transparent;
342
+ }
343
+
344
+ ${$o.hover([".button.-icon",".button.-icon-secondary"])},
345
+ ${$o.active([".button.-icon",".button.-icon-secondary"])} {
346
+ --m-button-color: ${lo("color-primary-60")};
347
+ }
348
+
349
+ ${$o.hover(".button.-icon")},
350
+ ${$o.active(".button.-icon")} {
351
+ --m-button-background-color: ${lo("color-background-highlight")};
352
+ --m-button-border-color: ${lo("color-background-highlight")};
353
+ }
354
+
355
+ ${$o.hover(".button.-icon-secondary")},
356
+ ${$o.active(".button.-icon-secondary")} {
357
+ --m-button-background-color: transparent;
358
+ --m-button-border-color: transparent;
359
+ }
360
+
361
+ .button.-small {
362
+ --m-button-padding-y: ${so("spacing-2")};
363
+ --m-button-base-size: 28px;
364
+
365
+ ${fo("button-sm")};
366
+ }
367
+
368
+ .button.-large {
369
+ --m-button-padding-y: ${so("spacing-4")};
370
+ --m-button-base-size: 48px;
371
+
372
+ ${fo("button-lg")};
373
+ }
374
+
375
+ /* TODO: to be removed when the loading dots component is ready */
376
+ .loader {
377
+ position: absolute;
378
+ inset: 0;
379
+
380
+ display: flex;
381
+ align-items: center;
382
+ justify-content: center;
383
+
384
+ pointer-events: none;
385
+ }
386
+ `]],window.customElements.define("m-button",xo);
387
+ /**
388
+ * @license
389
+ * Copyright 2018 Google LLC
390
+ * SPDX-License-Identifier: BSD-3-Clause
391
+ */
392
+ const wo=Rt(class extends Wt{constructor(t){var o;if(super(t),t.type!==Nt||"style"!==t.name||(null===(o=t.strings)||void 0===o?void 0:o.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((o,i)=>{const n=t[i];return null==n?o:o+`${i=i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`}),"")}update(t,[o]){const{style:i}=t.element;if(void 0===this.vt){this.vt=new Set;for(const t in o)this.vt.add(t);return this.render(o)}this.vt.forEach((t=>{null==o[t]&&(this.vt.delete(t),t.includes("-")?i.removeProperty(t):i[t]="")}));for(const t in o){const n=o[t];null!=n&&(this.vt.add(t),t.includes("-")?i.setProperty(t,n):i[t]=n)}return N}});class ko extends Ot{constructor(){super(),this.flagged=!1,this.flagColor="color-background-inverted"}static get properties(){return{flagged:{type:Boolean},flagColor:{type:String,attribute:"flag-color"}}}render(){return bt`
145
393
  <div
146
394
  class="m-card"
147
- style="${st({"--m-card-flag-color":at(this.flagColor)})}"
395
+ style="${wo({"--m-card-flag-color":Lt(this.flagColor)})}"
148
396
  >
149
- ${this.flagged?W`<span class="m-card-flag"></span>`:N}
397
+ ${this.flagged?bt`<span class="m-card-flag"></span>`:pt}
150
398
  <div class="m-card-content">
151
399
  <slot name="title"></slot>
152
400
  <slot name="subtitle"></slot>
@@ -154,9 +402,9 @@ const nt=1,rt=t=>(...o)=>({_$litDirective$:t,values:o});class it{constructor(t){
154
402
  <slot name="body"></slot>
155
403
  </div>
156
404
  </div>
157
- `}}It.styles=[s`
405
+ `}}ko.styles=[s`
158
406
  :host {
159
- --m-card-background-color: ${Bt("color-background-primary")};
407
+ --m-card-background-color: ${lo("color-background-primary")};
160
408
  }
161
409
 
162
410
  .m-card {
@@ -165,8 +413,8 @@ const nt=1,rt=t=>(...o)=>({_$litDirective$:t,values:o});class it{constructor(t){
165
413
  flex-direction: row;
166
414
 
167
415
  background-color: var( --m-card-background-color );
168
- border-radius: ${Wt("border-radius-s")};
169
- border: solid 1px ${Bt("color-divider")};
416
+ border-radius: ${so("border-radius-s")};
417
+ border: solid 1px ${lo("color-divider")};
170
418
  }
171
419
 
172
420
  .m-card-flag {
@@ -179,11 +427,11 @@ const nt=1,rt=t=>(...o)=>({_$litDirective$:t,values:o});class it{constructor(t){
179
427
  box-sizing: border-box;
180
428
  border: 1px solid var( --m-card-flag-color );
181
429
  background-color: var( --m-card-flag-color );
182
- width: ${Wt("border-thick")};
183
- border-top-left-radius: ${Wt("border-radius-s")};
430
+ width: ${so("border-thick")};
431
+ border-top-left-radius: ${so("border-radius-s")};
184
432
  border-top-right-radius: 0;
185
433
  border-bottom-right-radius: 0;
186
- border-bottom-left-radius: ${Wt("border-radius-s")};
434
+ border-bottom-left-radius: ${so("border-radius-s")};
187
435
  }
188
436
 
189
437
  .m-card-content {
@@ -193,58 +441,58 @@ const nt=1,rt=t=>(...o)=>({_$litDirective$:t,values:o});class it{constructor(t){
193
441
  }
194
442
 
195
443
  ::slotted( m-divider ) {
196
- --m-divider-margin-top: ${Wt("spacing-4")};
444
+ --m-divider-margin-top: ${so("spacing-4")};
197
445
  }
198
- `],window.customElements.define("m-card",It);class Lt extends tt{constructor(){super(),this.slot="body"}render(){return W`
446
+ `],window.customElements.define("m-card",ko);class So extends Ot{constructor(){super(),this.slot="body"}render(){return bt`
199
447
  <div class="m-card-body">
200
448
  <slot></slot>
201
449
  </div>
202
- `}}Lt.styles=[s`
450
+ `}}So.styles=[s`
203
451
  :host {
204
- --m-card-body-padding-x: ${Wt("spacing-4")};
205
- --m-card-body-padding-y: ${Wt("spacing-4")};
452
+ --m-card-body-padding-x: ${so("spacing-4")};
453
+ --m-card-body-padding-y: ${so("spacing-4")};
206
454
  }
207
455
 
208
456
  .m-card-body {
209
457
  padding: var( --m-card-body-padding-y ) var( --m-card-body-padding-x );
210
458
  }
211
- `],window.customElements.define("m-card-body",Lt);class Gt extends tt{constructor(){super(),this.slot="subtitle"}render(){return W`
459
+ `],window.customElements.define("m-card-body",So);class zo extends Ot{constructor(){super(),this.slot="subtitle"}render(){return bt`
212
460
  <div class="m-card-subtitle">
213
461
  <slot></slot>
214
462
  </div>
215
- `}}Gt.styles=[s`
463
+ `}}zo.styles=[s`
216
464
  :host {
217
- --m-card-subtitle-margin-top: ${Wt("spacing-2")};
218
- --m-card-subtitle-padding-x: ${Wt("spacing-4")};
465
+ --m-card-subtitle-margin-top: ${so("spacing-2")};
466
+ --m-card-subtitle-padding-x: ${so("spacing-4")};
219
467
  --m-card-subtitle-padding-y: 0;
220
468
  }
221
469
 
222
470
  .m-card-subtitle {
223
- ${Rt("body-md")};
471
+ ${fo("body-md")};
224
472
 
225
473
  margin-block-start: var( --m-card-subtitle-margin-top );
226
474
  padding: var( --m-card-subtitle-padding-y )
227
475
  var( --m-card-subtitle-padding-x );
228
476
 
229
- color: ${Bt("color-text-tertiary")};
477
+ color: ${lo("color-text-tertiary")};
230
478
  }
231
- `],window.customElements.define("m-card-subtitle",Gt);class Jt extends tt{constructor(){super(),this.slot="title"}render(){return W`
479
+ `],window.customElements.define("m-card-subtitle",zo);class _o extends Ot{constructor(){super(),this.slot="title"}render(){return bt`
232
480
  <div class="m-card-title">
233
481
  <slot name="leading"></slot>
234
482
  <slot></slot>
235
483
  </div>
236
- `}}Jt.styles=[s`
484
+ `}}_o.styles=[s`
237
485
  :host {
238
- --m-card-title-padding-x: ${Wt("spacing-4")};
239
- --m-card-title-padding-top: ${Wt("spacing-4")};
486
+ --m-card-title-padding-x: ${so("spacing-4")};
487
+ --m-card-title-padding-top: ${so("spacing-4")};
240
488
  }
241
489
 
242
490
  .m-card-title {
243
491
  padding: var( --m-card-title-padding-top ) var( --m-card-title-padding-x )
244
492
  0;
245
493
 
246
- ${Rt("heading-sm-bold")};
247
- color: ${Bt("color-text-primary")};
494
+ ${fo("heading-sm-bold")};
495
+ color: ${lo("color-text-primary")};
248
496
  }
249
497
 
250
498
  slot[name='leading']::slotted( * ) {
@@ -253,12 +501,12 @@ const nt=1,rt=t=>(...o)=>({_$litDirective$:t,values:o});class it{constructor(t){
253
501
  align-items: center;
254
502
  justify-content: center;
255
503
  pointer-events: none;
256
- margin-inline-end: ${Wt("spacing-1")};
504
+ margin-inline-end: ${so("spacing-1")};
257
505
  }
258
- `],window.customElements.define("m-card-title",Jt);class Zt extends tt{render(){return W` <hr class="m-divider" /> `}}function Ht(t,o,n){return Math.min(Math.max(o,t),n)}Zt.styles=[s`
506
+ `],window.customElements.define("m-card-title",_o);class Ao extends Ot{render(){return bt` <hr class="m-divider" /> `}}Ao.styles=[s`
259
507
  .m-divider {
260
508
  border: 0;
261
- border-block-end: solid 1px ${Bt("color-divider")};
509
+ border-block-end: solid 1px ${lo("color-divider")};
262
510
  margin-block-start: var(
263
511
  --m-divider-margin-top,
264
512
  var( --m-divider-margin-y, 0 )
@@ -268,61 +516,14 @@ const nt=1,rt=t=>(...o)=>({_$litDirective$:t,values:o});class it{constructor(t){
268
516
  var( --m-divider-margin-y, 0 )
269
517
  );
270
518
  }
271
- `],window.customElements.define("m-divider",Zt);function qt(t,o){return e(function(t,o){return void 0===o&&(o=16),"".concat(parseInt(String(t),10)/o,"rem")}(t,o))}class Kt extends tt{constructor(){super(),this._safeValue=0,this._safeMax=100,this.value=0,this.max=100}static get properties(){return{value:{type:Number,noAccessor:!0},max:{type:Number,noAccessor:!0}}}set value(t){const o=this._safeValue;this._safeValue=Ht(t,0,this._safeMax),this.requestUpdate("value",o)}get value(){return this._safeValue}set max(t){const o=this._safeMax;this._safeMax=t<=0?100:t,this._safeValue=Ht(this._safeValue,0,this._safeMax),this.requestUpdate("max",o)}get max(){return this._safeMax}connectedCallback(){super.connectedCallback(),this.setAttribute("role","progressbar"),this.setAttribute("aria-valuemin","0")}updated(){this.setAttribute("aria-valuenow",String(this._safeValue)),this.setAttribute("aria-valuemax",String(this._safeMax))}_getWidth(){return 100*this._safeValue/this._safeMax}render(){return W`
272
- <div class="bar">
273
- <span
274
- class="progress"
275
- style=${st({width:`${this._getWidth()}%`})}
276
- ></span>
277
- </div>
278
- `}}Kt.styles=[s`
279
- :host {
280
- --m-progress-bar-progress-background: linear-gradient(
281
- 45deg,
282
- ${Bt("color-brand-accent-1")} 22%,
283
- ${Bt("color-brand-accent-2")} 88%
284
- );
285
- }
286
-
287
- .bar {
288
- display: flex;
289
- flex-grow: 0;
290
- flex-shrink: 1;
291
- align-items: center;
292
- justify-content: center;
293
-
294
- position: relative;
295
- overflow: hidden;
296
-
297
- width: 100%;
298
- height: ${qt("8px")};
299
-
300
- border-radius: ${Wt("border-radius-s")};
301
-
302
- background-color: ${Bt("color-background-tertiary")};
303
- }
304
-
305
- .progress {
306
- position: absolute;
307
- top: 0;
308
- left: 0;
309
-
310
- ${Ut([{property:"width"}])};
311
-
312
- height: ${qt("8px")};
313
-
314
- border-radius: ${Wt("border-radius-s")};
315
-
316
- background: var( --m-progress-bar-progress-background );
317
- }
318
- `],window.customElements.define("m-progress-bar",Kt);const Vt=["center","flex-start","flex-end","stretch"],Ft=["center","flex-start","flex-end","space-between","space-around","space-evenly"],Qt={padding:"spacing-4",borderRadius:"border-radius-s",borderWidth:"border-none",borderColor:"color-background-highlight",textAlign:"left"};class Xt extends tt{constructor(){super(),this.padding=Qt.padding,this.borderRadius=Qt.borderRadius,this.borderWidth=Qt.borderWidth,this.borderColor=Qt.borderColor,this.textAlign=Qt.textAlign}static get properties(){return{padding:{type:String},backgroundColor:{type:String,attribute:"background-color"},borderRadius:{type:String,attribute:"border-radius"},borderWidth:{type:String,attribute:"border-width"},borderColor:{type:String,attribute:"border-color"},textAlign:{type:String,attribute:"text-align"}}}update(t){this.style.setProperty("--m-box-padding",at(this.padding)||at(Qt.padding)),this.style.setProperty("--m-box-background-color",at(this.backgroundColor)||"transparent"),this.style.setProperty("--m-box-border-radius",at(this.borderRadius)||at(Qt.borderRadius)),this.style.setProperty("--m-box-border-width",at(this.borderWidth)||at(Qt.borderWidth)),this.style.setProperty("--m-box-border-color",at(this.borderColor)||at(Qt.borderColor)),this.style.setProperty("--m-box-text-align",this.textAlign||Qt.textAlign),super.update(t)}render(){return W`<slot></slot>`}}Xt.styles=[s`
519
+ `],window.customElements.define("m-divider",Ao);const Co=["center","flex-start","flex-end","stretch"],jo=["center","flex-start","flex-end","space-between","space-around","space-evenly"],Eo={padding:"spacing-4",borderRadius:"border-radius-s",borderWidth:"border-none",borderColor:"color-background-highlight",textAlign:"left"};class Mo extends Ot{constructor(){super(),this.padding=Eo.padding,this.borderRadius=Eo.borderRadius,this.borderWidth=Eo.borderWidth,this.borderColor=Eo.borderColor,this.textAlign=Eo.textAlign}static get properties(){return{padding:{type:String},backgroundColor:{type:String,attribute:"background-color"},borderRadius:{type:String,attribute:"border-radius"},borderWidth:{type:String,attribute:"border-width"},borderColor:{type:String,attribute:"border-color"},textAlign:{type:String,attribute:"text-align"}}}update(t){this.style.setProperty("--m-box-padding",Lt(this.padding)||Lt(Eo.padding)),this.style.setProperty("--m-box-background-color",Lt(this.backgroundColor)||"transparent"),this.style.setProperty("--m-box-border-radius",Lt(this.borderRadius)||Lt(Eo.borderRadius)),this.style.setProperty("--m-box-border-width",Lt(this.borderWidth)||Lt(Eo.borderWidth)),this.style.setProperty("--m-box-border-color",Lt(this.borderColor)||Lt(Eo.borderColor)),this.style.setProperty("--m-box-text-align",this.textAlign||Eo.textAlign),super.update(t)}render(){return bt`<slot></slot>`}}Mo.styles=[s`
319
520
  :host {
320
- --m-box-padding: ${Wt(Qt.padding)};
521
+ --m-box-padding: ${so(Eo.padding)};
321
522
  --m-box-background-color: transparent;
322
- --m-box-border-radius: ${Wt(Qt.borderRadius)};
323
- --m-box-border-width: ${Wt(Qt.borderWidth)};
324
- --m-box-border-color: ${Bt(Qt.borderColor)};
325
- --m-box-text-align: ${e(Qt.textAlign)};
523
+ --m-box-border-radius: ${so(Eo.borderRadius)};
524
+ --m-box-border-width: ${so(Eo.borderWidth)};
525
+ --m-box-border-color: ${lo(Eo.borderColor)};
526
+ --m-box-text-align: ${r(Eo.textAlign)};
326
527
 
327
528
  box-sizing: border-box;
328
529
 
@@ -334,11 +535,11 @@ const nt=1,rt=t=>(...o)=>({_$litDirective$:t,values:o});class it{constructor(t){
334
535
  border-color: var( --m-box-border-color );
335
536
  text-align: var( --m-box-text-align );
336
537
  }
337
- `],window.customElements.define("m-box",Xt);const Yt={gap:"spacing-4",align:"stretch",justify:"flex-start"};class to extends tt{constructor(){super(),this.gap=Yt.gap,this.align=Yt.align,this.justify=Yt.justify}static get properties(){return{gap:{type:String},align:{type:String},justify:{type:String}}}update(t){this.style.setProperty("--m-group-gap",at(this.gap)||at(Yt.gap)),this.style.setProperty("--m-group-align",this.align||Yt.align),this.style.setProperty("--m-group-justify",this.justify||Yt.justify),super.update(t)}render(){return W`<slot></slot>`}}to.styles=[s`
538
+ `],window.customElements.define("m-box",Mo);const To={gap:"spacing-4",align:"stretch",justify:"flex-start"};class Oo extends Ot{constructor(){super(),this.gap=To.gap,this.align=To.align,this.justify=To.justify}static get properties(){return{gap:{type:String},align:{type:String},justify:{type:String}}}update(t){this.style.setProperty("--m-group-gap",Lt(this.gap)||Lt(To.gap)),this.style.setProperty("--m-group-align",this.align||To.align),this.style.setProperty("--m-group-justify",this.justify||To.justify),super.update(t)}render(){return bt`<slot></slot>`}}Oo.styles=[s`
338
539
  :host {
339
- --m-group-gap: ${Wt(Yt.gap)};
340
- --m-group-align: ${e(Yt.align)};
341
- --m-group-justify: ${e(Yt.justify)};
540
+ --m-group-gap: ${so(To.gap)};
541
+ --m-group-align: ${r(To.align)};
542
+ --m-group-justify: ${r(To.justify)};
342
543
 
343
544
  display: flex;
344
545
  flex-wrap: wrap;
@@ -346,11 +547,11 @@ const nt=1,rt=t=>(...o)=>({_$litDirective$:t,values:o});class it{constructor(t){
346
547
  align-items: var(--m-group-align);
347
548
  justify-content: var(--m-group-justify);
348
549
  }
349
- `],window.customElements.define("m-group",to);const oo={gap:"spacing-4",align:"stretch",justify:"flex-start"};class no extends tt{constructor(){super(),this.gap=oo.gap,this.align=oo.align,this.justify=oo.justify}static get properties(){return{gap:{type:String},align:{type:String},justify:{type:String}}}update(t){this.style.setProperty("--m-stack-gap",at(this.gap)||at(oo.gap)),this.style.setProperty("--m-stack-align",this.align||oo.align),this.style.setProperty("--m-stack-justify",this.justify||oo.justify),super.update(t)}render(){return W`<slot></slot>`}}no.styles=[s`
550
+ `],window.customElements.define("m-group",Oo);const Uo={gap:"spacing-4",align:"stretch",justify:"flex-start"};class No extends Ot{constructor(){super(),this.gap=Uo.gap,this.align=Uo.align,this.justify=Uo.justify}static get properties(){return{gap:{type:String},align:{type:String},justify:{type:String}}}update(t){this.style.setProperty("--m-stack-gap",Lt(this.gap)||Lt(Uo.gap)),this.style.setProperty("--m-stack-align",this.align||Uo.align),this.style.setProperty("--m-stack-justify",this.justify||Uo.justify),super.update(t)}render(){return bt`<slot></slot>`}}No.styles=[s`
350
551
  :host {
351
- --m-stack-gap: ${Wt(oo.gap)};
352
- --m-stack-align: ${e(oo.align)};
353
- --m-stack-justify: ${e(oo.justify)};
552
+ --m-stack-gap: ${so(Uo.gap)};
553
+ --m-stack-align: ${r(Uo.align)};
554
+ --m-stack-justify: ${r(Uo.justify)};
354
555
 
355
556
  display: flex;
356
557
  flex-direction: column;
@@ -359,10 +560,10 @@ const nt=1,rt=t=>(...o)=>({_$litDirective$:t,values:o});class it{constructor(t){
359
560
  align-items: var(--m-stack-align);
360
561
  justify-content: var(--m-stack-justify);
361
562
  }
362
- `],window.customElements.define("m-stack",no);const ro={gap:"spacing-4",minColumnWidth:lt("spacing-30")};class io extends tt{constructor(){super(),this.gap=ro.gap,this.minColumnWidth=ro.minColumnWidth}static get properties(){return{gap:{type:String},rowGap:{type:String,attribute:"row-gap"},columnGap:{type:String,attribute:"column-gap"},minColumnWidth:{type:String,attribute:"min-column-width"}}}update(t){t.has("gap")&&this.style.setProperty("--m-grid-gap",at(this.gap)||at(ro.gap)),t.has("rowGap")&&(this.rowGap?this.style.setProperty("--m-grid-row-gap",at(this.rowGap)):this.style.removeProperty("--m-grid-row-gap")),t.has("columnGap")&&(this.columnGap?this.style.setProperty("--m-grid-column-gap",at(this.columnGap)):this.style.removeProperty("--m-grid-column-gap")),t.has("minColumnWidth")&&this.style.setProperty("--m-grid-min-column-width",this.minColumnWidth||ro.minColumnWidth),super.update(t)}render(){return W`<slot></slot>`}}io.styles=[s`
563
+ `],window.customElements.define("m-stack",No);const Ro={gap:"spacing-4",minColumnWidth:Dt("spacing-30")};class Wo extends Ot{constructor(){super(),this.gap=Ro.gap,this.minColumnWidth=Ro.minColumnWidth}static get properties(){return{gap:{type:String},rowGap:{type:String,attribute:"row-gap"},columnGap:{type:String,attribute:"column-gap"},minColumnWidth:{type:String,attribute:"min-column-width"}}}update(t){t.has("gap")&&this.style.setProperty("--m-grid-gap",Lt(this.gap)||Lt(Ro.gap)),t.has("rowGap")&&(this.rowGap?this.style.setProperty("--m-grid-row-gap",Lt(this.rowGap)):this.style.removeProperty("--m-grid-row-gap")),t.has("columnGap")&&(this.columnGap?this.style.setProperty("--m-grid-column-gap",Lt(this.columnGap)):this.style.removeProperty("--m-grid-column-gap")),t.has("minColumnWidth")&&this.style.setProperty("--m-grid-min-column-width",this.minColumnWidth||Ro.minColumnWidth),super.update(t)}render(){return bt`<slot></slot>`}}Wo.styles=[s`
363
564
  :host {
364
- --m-grid-gap: ${Wt(ro.gap)};
365
- --m-grid-min-column-width: ${e(ro.minColumnWidth)};
565
+ --m-grid-gap: ${so(Ro.gap)};
566
+ --m-grid-min-column-width: ${r(Ro.minColumnWidth)};
366
567
 
367
568
  display: grid;
368
569
 
@@ -374,15 +575,15 @@ const nt=1,rt=t=>(...o)=>({_$litDirective$:t,values:o});class it{constructor(t){
374
575
  minmax( min( var( --m-grid-min-column-width ), 100% ), 1fr )
375
576
  );
376
577
  }
377
- `],window.customElements.define("m-grid",io);const eo={gap:"spacing-4",sideWidth:"auto",minContentWidth:"50%",reversed:!1};function so(t){return t?"row-reverse":"row"}class ao extends tt{constructor(){super(),this.gap=eo.gap,this.sideWidth=eo.sideWidth,this.minContentWidth=eo.minContentWidth,this.reversed=eo.reversed}static get properties(){return{gap:{type:String},sideWidth:{type:String,attribute:"side-width"},minContentWidth:{type:String,attribute:"min-content-width"},reversed:{type:Boolean}}}update(t){t.has("gap")&&this.style.setProperty("--m-sidebar-gap",at(this.gap)||at(eo.gap)),t.has("sideWidth")&&this.style.setProperty("--m-sidebar-side-width",this.sideWidth||eo.sideWidth),t.has("minContentWidth")&&this.style.setProperty("--m-sidebar-min-content-width",this.minContentWidth||eo.minContentWidth),t.has("reversed")&&this.style.setProperty("--m-sidebar-flex-direction",so(this.reversed)),super.update(t)}render(){return W`
578
+ `],window.customElements.define("m-grid",Wo);const Bo={gap:"spacing-4",sideWidth:"auto",minContentWidth:"50%",reversed:!1};function Lo(t){return t?"row-reverse":"row"}class Do extends Ot{constructor(){super(),this.gap=Bo.gap,this.sideWidth=Bo.sideWidth,this.minContentWidth=Bo.minContentWidth,this.reversed=Bo.reversed}static get properties(){return{gap:{type:String},sideWidth:{type:String,attribute:"side-width"},minContentWidth:{type:String,attribute:"min-content-width"},reversed:{type:Boolean}}}update(t){t.has("gap")&&this.style.setProperty("--m-sidebar-gap",Lt(this.gap)||Lt(Bo.gap)),t.has("sideWidth")&&this.style.setProperty("--m-sidebar-side-width",this.sideWidth||Bo.sideWidth),t.has("minContentWidth")&&this.style.setProperty("--m-sidebar-min-content-width",this.minContentWidth||Bo.minContentWidth),t.has("reversed")&&this.style.setProperty("--m-sidebar-flex-direction",Lo(this.reversed)),super.update(t)}render(){return bt`
378
579
  <slot name="sidebar"></slot>
379
580
  <slot name="content"></slot>
380
- `}}ao.styles=[s`
581
+ `}}function Io(t,o,i){return Math.min(Math.max(o,t),i)}Do.styles=[s`
381
582
  :host {
382
- --m-sidebar-gap: ${Wt(eo.gap)};
383
- --m-sidebar-flex-direction: ${e(so(eo.reversed))};
384
- --m-sidebar-side-width: ${e(eo.sideWidth)};
385
- --m-sidebar-min-content-width: ${e(eo.minContentWidth)};
583
+ --m-sidebar-gap: ${so(Bo.gap)};
584
+ --m-sidebar-flex-direction: ${r(Lo(Bo.reversed))};
585
+ --m-sidebar-side-width: ${r(Bo.sideWidth)};
586
+ --m-sidebar-min-content-width: ${r(Bo.minContentWidth)};
386
587
 
387
588
  display: flex;
388
589
  flex-wrap: wrap;
@@ -401,342 +602,261 @@ const nt=1,rt=t=>(...o)=>({_$litDirective$:t,values:o});class it{constructor(t){
401
602
  flex-grow: 999;
402
603
  min-width: var( --m-sidebar-min-content-width );
403
604
  }
404
- `],window.customElements.define("m-sidebar",ao);class lo extends tt{constructor(){super(),this.variant="secondary",this.size="default",this.type="button",this.disabled=!1,this.loading=!1}static get properties(){return{loading:{type:Boolean},disabled:{type:Boolean,reflect:!0},variant:{type:String},size:{type:String},type:{type:String}}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","button")}render(){return W`
405
- <button
406
- class=${et({"m-button":!0,"-primary":"primary"==this.variant,"-secondary":"secondary"==this.variant,"-tertiary":"tertiary"==this.variant,"-warning":"warning"==this.variant,"-danger":"danger"==this.variant,"-icon":"icon"==this.variant,"-icon-secondary":"icon-secondary"==this.variant,"-small":"small"==this.size,"-default":"default"==this.size,"-large":"large"==this.size,"is-loading":this.loading})}
407
- type=${this.type}
408
- ?disabled="${this._isDisabled()}"
409
- aria-disabled=${this._isDisabled()?"true":"false"}
410
- >
411
- <!-- TODO: Replace this with the loading dots component as soon as it is ready. -->
412
- ${this.loading&&!["icon","icon-secondary"].includes(this.variant)?W`<span class="loader">&#x25cf;&#x25cf;&#x25cf;</span>`:N}
413
- <slot name="leading"></slot>
414
- <slot></slot>
415
- <slot name="trailing"></slot>
416
- </button>
417
- `}_isDisabled(){return this.disabled||this.loading}}var co,uo;lo.styles=[s`
605
+ `],window.customElements.define("m-sidebar",Do);function Po(t,o){return r(function(t,o){return void 0===o&&(o=16),"".concat(parseInt(String(t),10)/o,"rem")}(t,o))}class Zo extends Ot{constructor(){super(),this._safeValue=0,this._safeMax=100,this.value=0,this.max=100}static get properties(){return{value:{type:Number,noAccessor:!0},max:{type:Number,noAccessor:!0}}}set value(t){const o=this._safeValue;this._safeValue=Io(t,0,this._safeMax),this.requestUpdate("value",o)}get value(){return this._safeValue}set max(t){const o=this._safeMax;this._safeMax=t<=0?100:t,this._safeValue=Io(this._safeValue,0,this._safeMax),this.requestUpdate("max",o)}get max(){return this._safeMax}connectedCallback(){super.connectedCallback(),this.setAttribute("role","progressbar"),this.setAttribute("aria-valuemin","0")}updated(){this.setAttribute("aria-valuenow",String(this._safeValue)),this.setAttribute("aria-valuemax",String(this._safeMax))}_getWidth(){return 100*this._safeValue/this._safeMax}render(){return bt`
606
+ <div class="bar">
607
+ <span
608
+ class="progress"
609
+ style=${wo({width:`${this._getWidth()}%`})}
610
+ ></span>
611
+ </div>
612
+ `}}Zo.styles=[s`
418
613
  :host {
419
- --m-button-background-color: transparent;
420
- --m-button-base-size: 40px;
421
- --m-button-border-color: ${Bt("color-neutral-90")};
422
- --m-button-border-radius: ${Wt("border-radius-s")};
423
- --m-button-color: ${Bt("color-text-secondary")};
424
- --m-button-outline-color: ${Bt("color-primary-100")};
425
- --m-button-outline-offset: 2px;
426
- --m-button-padding-x: ${Wt("spacing-4")};
427
- --m-button-padding-y: ${Wt("spacing-3")};
428
- }
429
-
430
- .m-button {
431
- ${Ut([{property:"color"},{property:"background-color"},{property:"border-color"}])};
432
-
433
- ${Rt("button-md")};
434
-
435
- cursor: pointer;
436
- position: relative;
437
-
438
- display: inline-flex;
439
- align-items: center;
440
- justify-content: center;
441
- overflow: hidden;
442
-
443
- block-size: var( --m-button-base-size );
444
-
445
- text-decoration: none;
446
-
447
- gap: ${Wt("spacing-1")};
448
-
449
- padding-inline: var( --m-button-padding-x );
450
- padding-block: var( --m-button-padding-y );
451
-
452
- background-color: var( --m-button-background-color );
453
- color: var( --m-button-color );
454
- border: 1px solid var( --m-button-border-color );
455
-
456
- border-radius: var( --m-button-border-radius );
457
- }
458
-
459
- ${Nt(".m-button")} {
460
- cursor: not-allowed;
461
- }
462
-
463
- ${Nt(".m-button","*")} {
464
- pointer-events: none;
465
- }
466
-
467
- ${Pt.focus(".m-button")} {
468
- outline: 1px solid var( --m-button-outline-color );
469
- outline-offset: var( --m-button-outline-offset );
470
- }
471
-
472
- ${Pt.hover(".m-button")} {
473
- --m-button-background-color: ${Bt("color-background-inverted")};
474
- --m-button-border-color: ${Bt("color-background-inverted")};
475
- --m-button-color: ${Bt("color-text-inverted")};
614
+ --m-progress-bar-progress-background: linear-gradient(
615
+ 45deg,
616
+ ${lo("color-brand-accent-1")} 22%,
617
+ ${lo("color-brand-accent-2")} 88%
618
+ );
476
619
  }
477
620
 
478
- ::slotted( * ),
479
- ::slotted( * ) {
480
- display: inline-flex;
621
+ .bar {
622
+ display: flex;
623
+ flex-grow: 0;
624
+ flex-shrink: 1;
481
625
  align-items: center;
482
-
483
- ${uo=0,e(`\n\t\t${Mt(uo)};\n\t\t${Et(uo)}\n\t`)};
484
- ${co=0,e(`\n\t\t${jt(co)};\n\t\t${_t(co)}\n\t`)};
485
- }
486
-
487
- slot[name='leading']::slotted( span ),
488
- slot[name='trailing']::slotted( span ) {
489
626
  justify-content: center;
490
- }
491
-
492
- .m-button.is-loading:not( .-icon, .-icon-secondary ) *:not( .loader ) {
493
- visibility: hidden;
494
- }
495
-
496
- .m-button.-primary {
497
- --m-button-background-color: ${Bt("color-primary-60")};
498
- --m-button-border-color: ${Bt("color-primary-60")};
499
- --m-button-color: ${Bt("color-text-inverted")};
500
- }
501
-
502
- ${Nt(".m-button.-primary")} {
503
- --m-button-background-color: ${Bt("color-primary-20")};
504
- --m-button-border-color: ${Bt("color-primary-20")};
505
- }
506
-
507
- ${Pt.focus(".m-button.-primary")} {
508
- --m-button-border-color: ${Bt("color-primary-60")};
509
- --m-button-outline-color: ${Bt("color-primary-60")};
510
- }
511
-
512
- ${Pt.hover(".m-button.-primary")},
513
- ${Pt.active(".m-button.-primary")} {
514
- --m-button-background-color: ${Bt("color-primary-100")};
515
- --m-button-border-color: ${Bt("color-primary-100")};
516
- }
517
-
518
- .m-button.-primary.is-loading {
519
- --m-button-background-color: ${Bt("color-primary-60")};
520
- --m-button-border-color: ${Bt("color-primary-60")};
521
- --m-button-color: ${Bt("color-text-inverted")};
522
- }
523
-
524
- .m-button.-secondary {
525
- --m-button-background-color: transparent;
526
- --m-button-border-color: ${Bt("color-primary-100")};
527
- --m-button-color: ${Bt("color-primary-100")};
528
- }
529
-
530
- ${Nt(".m-button.-secondary")} {
531
- --m-button-border-color: ${Bt("color-text-disabled")};
532
- --m-button-color: ${Bt("color-text-disabled")};
533
- }
534
627
 
535
- ${Pt.focus(".m-button.-secondary")} {
536
- --m-button-border-color: ${Bt("color-primary-100")};
537
- --m-button-color: ${Bt("color-primary-100")};
538
-
539
- --m-button-outline-color: ${Bt("color-primary-60")};
540
- }
628
+ position: relative;
629
+ overflow: hidden;
541
630
 
542
- ${Pt.hover(".m-button.-secondary")},${Pt.active(".m-button.-secondary")} {
543
- --m-button-background-color: ${Bt("color-background-tertiary")};
544
- --m-button-border-color: ${Bt("color-primary-60")};
545
- --m-button-color: ${Bt("color-primary-60")};
546
- }
631
+ width: 100%;
632
+ height: ${Po("8px")};
547
633
 
548
- .m-button.-secondary.is-loading {
549
- --m-button-background-color: transparent;
634
+ border-radius: ${so("border-radius-s")};
550
635
 
551
- --m-button-border-color: ${Bt("color-primary-100")};
552
- --m-button-color: ${Bt("color-primary-100")};
636
+ background-color: ${lo("color-background-tertiary")};
553
637
  }
554
638
 
555
- .m-button.-tertiary {
556
- --m-button-background-color: transparent;
557
- --m-button-border-color: transparent;
558
- --m-button-color: ${Bt("color-primary-100")};
559
- }
639
+ .progress {
640
+ position: absolute;
641
+ top: 0;
642
+ left: 0;
560
643
 
561
- ${Nt(".m-button.-tertiary")} {
562
- --m-button-color: ${Bt("color-text-disabled")};
563
- }
644
+ ${po([{property:"width"}])};
564
645
 
565
- ${Pt.focus(".m-button.-tertiary")} {
566
- --m-button-color: ${Bt("color-primary-100")};
567
- --m-button-outline-color: ${Bt("color-primary-60")};
568
- }
646
+ height: ${Po("8px")};
569
647
 
570
- ${Pt.hover(".m-button.-tertiary")} {
571
- --m-button-background-color: ${Bt("color-background-tertiary")};
572
- --m-button-border-color: ${Bt("color-background-tertiary")};
573
- --m-button-color: ${Bt("color-primary-60")};
574
- }
648
+ border-radius: ${so("border-radius-s")};
575
649
 
576
- ${Pt.active(".m-button.-tertiary")} {
577
- --m-button-background-color: ${Bt("color-neutral-20")};
578
- --m-button-border-color: ${Bt("color-neutral-20")};
579
- --m-button-color: ${Bt("color-primary-60")};
650
+ background: var( --m-progress-bar-progress-background );
580
651
  }
581
-
582
- .m-button.-tertiary.is-loading {
583
- --m-button-background-color: transparent;
584
- --m-button-border-color: transparent;
585
- --m-button-color: ${Bt("color-primary-100")};
652
+ `],window.customElements.define("m-progress-bar",Zo);class Go extends Ot{constructor(){super(),this.variant="body-md",this.color="color-text-primary"}static get properties(){return{variant:{type:String,reflect:!0},color:{type:String}}}render(){return bt`
653
+ <span
654
+ class=${Bt({"m-text":!0,"-body-md-bold-underline":"body-md-bold-underline"==this.variant,"-body-md-bold":"body-md-bold"==this.variant,"-body-md-underline":"body-md-underline"==this.variant,"-body-md":"body-md"==this.variant,"-body-sm-bold-underline":"body-sm-bold-underline"==this.variant,"-body-sm-bold":"body-sm-bold"==this.variant,"-body-sm-underline":"body-sm-underline"==this.variant,"-body-sm":"body-sm"==this.variant,"-button-lg":"button-lg"==this.variant,"-button-md":"button-md"==this.variant,"-button-sm":"button-sm"==this.variant,"-chips-sm":"chips-sm"==this.variant,"-heading-lg":"heading-lg"==this.variant,"-heading-md-bold":"heading-md-bold"==this.variant,"-heading-md":"heading-md"==this.variant,"-heading-sm-bold":"heading-sm-bold"==this.variant,"-heading-sm":"heading-sm"==this.variant,"-number-md":"number-md"==this.variant,"-number-sm":"number-sm"==this.variant,"-table-header-md":"table-header-md"==this.variant,"-table-header-sm":"table-header-sm"==this.variant})}
655
+ style=${wo({"--m-text-color":Lt(this.color)})}
656
+ >
657
+ <slot></slot>
658
+ </span>
659
+ `}}Go.styles=[s`
660
+ :host {
661
+ --m-text-color: ${lo("color-text-primary")};
586
662
  }
587
663
 
588
- .m-button.-warning {
589
- --m-button-background-color: ${Bt("color-warning-60")};
590
- --m-button-border-color: ${Bt("color-warning-60")};
591
- --m-button-color: ${Bt("color-text-primary")};
592
- }
664
+ .m-text {
665
+ ${po([{property:"color"}])};
593
666
 
594
- ${Nt(".m-button.-warning")} {
595
- --m-button-background-color: ${Bt("color-warning-20")};
596
- --m-button-border-color: ${Bt("color-warning-20")};
597
- --m-button-color: ${Bt("color-text-inverted")};
598
- }
667
+ ${fo()};
599
668
 
600
- ${Pt.focus(".m-button.-warning")} {
601
- --m-button-background-color: ${Bt("color-warning-60")};
602
- --m-button-outline-color: ${Bt("color-warning-60")};
603
- }
669
+ display: inline-flex;
604
670
 
605
- ${Pt.hover(".m-button.-warning")}, ${Pt.active(".m-button.-warning")} {
606
- --m-button-background-color: ${Bt("color-warning-100")};
607
- --m-button-border-color: ${Bt("color-warning-100")};
608
- --m-button-color: ${Bt("color-text-inverted")};
671
+ color: var( --m-text-color );
609
672
  }
610
673
 
611
- .m-button.-warning.is-loading {
612
- --m-button-background-color: ${Bt("color-warning-60")};
613
- --m-button-border-color: ${Bt("color-warning-60")};
614
- --m-button-color: ${Bt("color-text-primary")};
674
+ .-body-md-bold-underline {
675
+ ${fo("body-md-bold-underline")};
615
676
  }
616
677
 
617
- .m-button.-danger {
618
- --m-button-background-color: ${Bt("color-danger-60")};
619
- --m-button-border-color: ${Bt("color-danger-60")};
620
- --m-button-color: ${Bt("color-text-inverted")};
678
+ .-body-md-bold {
679
+ ${fo("body-md-bold")};
621
680
  }
622
681
 
623
- ${Nt(".m-button.-danger")} {
624
- --m-button-background-color: ${Bt("color-danger-20")};
625
- --m-button-border-color: ${Bt("color-danger-20")};
682
+ .-body-md-underline {
683
+ ${fo("body-md-underline")};
626
684
  }
627
685
 
628
- ${Pt.focus(".m-button.-danger")} {
629
- --m-button-background-color: ${Bt("color-danger-60")};
630
- --m-button-outline-color: ${Bt("color-danger-60")};
686
+ .-body-md {
687
+ ${fo("body-md")};
631
688
  }
632
689
 
633
- ${Pt.hover(".m-button.-danger")}, ${Pt.active(".m-button.-danger")} {
634
- --m-button-background-color: ${Bt("color-danger-100")};
635
- --m-button-border-color: ${Bt("color-danger-100")};
690
+ .-body-sm-bold-underline {
691
+ ${fo("body-sm-bold-underline")};
636
692
  }
637
693
 
638
- .m-button.-danger.is-loading {
639
- --m-button-background-color: ${Bt("color-danger-60")};
640
- --m-button-border-color: ${Bt("color-danger-60")};
641
- --m-button-color: ${Bt("color-text-inverted")};
694
+ .-body-sm-bold {
695
+ ${fo("body-sm-bold")};
642
696
  }
643
697
 
644
- .m-button.-icon,
645
- .m-button.-icon-secondary {
646
- --m-button-border-radius: ${Wt("border-radius-circle")};
647
- --m-button-color: ${Bt("color-neutral-90")};
648
- --m-button-padding-x: ${Wt("spacing-1")};
649
- --m-button-padding-y: ${Wt("spacing-1")};
650
-
651
- min-block-size: var( --m-button-base-size );
652
- max-block-size: var( --m-button-base-size );
653
- min-inline-size: var( --m-button-base-size );
654
- max-inline-size: var( --m-button-base-size );
698
+ .-body-sm-underline {
699
+ ${fo("body-sm-underline")};
655
700
  }
656
701
 
657
- .m-button.-icon {
658
- --m-button-background-color: ${Bt("color-background-tertiary")};
659
- --m-button-border-color: ${Bt("color-background-tertiary")};
702
+ .-body-sm {
703
+ ${fo("body-sm")};
660
704
  }
661
705
 
662
- .m-button.-icon-secondary {
663
- --m-button-background-color: transparent;
664
- --m-button-border-color: transparent;
706
+ .-button-lg {
707
+ ${fo("button-lg")};
665
708
  }
666
709
 
667
- .m-button.-icon slot[name='leading']::slotted( * ),
668
- .m-button.-icon slot[name='trailing']::slotted( * ),
669
- .m-button.-icon-secondary slot[name='leading']::slotted( * ),
670
- .m-button.-icon-secondary slot[name='trailing']::slotted( * ) {
671
- display: none;
710
+ .-button-md {
711
+ ${fo("button-md")};
672
712
  }
673
713
 
674
- ${Nt([".m-button.-icon",".m-button.-icon-secondary"])} {
675
- --m-button-color: ${Bt("color-neutral-40")};
714
+ .-button-sm {
715
+ ${fo("button-sm")};
676
716
  }
677
717
 
678
- ${Nt(".m-button.-icon")} {
679
- --m-button-background-color: ${Bt("color-neutral-20")};
680
- --m-button-border-color: ${Bt("color-neutral-20")};
718
+ .-chips-sm {
719
+ ${fo("chips-sm")};
681
720
  }
682
721
 
683
- ${Nt(".m-button.-icon-secondary")} {
684
- --m-button-background-color: transparent;
685
- --m-button-border-color: transparent;
722
+ .-heading-lg {
723
+ ${fo("heading-lg")};
686
724
  }
687
725
 
688
- ${Pt.focus([".m-button.-icon",".m-button.-icon-secondary"])} {
689
- --m-button-color: ${Bt("color-primary-60")};
690
- --m-button-outline-color: ${Bt("color-primary-60")};
726
+ .-heading-md-bold {
727
+ ${fo("heading-md-bold")};
691
728
  }
692
729
 
693
- ${Pt.focus(".m-button.-icon")} {
694
- --m-button-background-color: ${Bt("color-neutral-20")};
730
+ .-heading-md {
731
+ ${fo("heading-md")};
695
732
  }
696
733
 
697
- ${Pt.focus(".m-button.-icon-secondary")} {
698
- --m-button-background-color: transparent;
734
+ .-heading-sm-bold {
735
+ ${fo("heading-sm-bold")};
699
736
  }
700
737
 
701
- ${Pt.hover([".m-button.-icon",".m-button.-icon-secondary"])},
702
- ${Pt.active([".m-button.-icon",".m-button.-icon-secondary"])} {
703
- --m-button-color: ${Bt("color-primary-60")};
738
+ .-heading-sm {
739
+ ${fo("heading-sm")};
704
740
  }
705
741
 
706
- ${Pt.hover(".m-button.-icon")}, ${Pt.active(".m-button.-icon")} {
707
- --m-button-background-color: ${Bt("color-background-highlight")};
708
- --m-button-border-color: ${Bt("color-background-highlight")};
742
+ .-number-md {
743
+ ${fo("number-md")};
709
744
  }
710
745
 
711
- ${Pt.hover(".m-button.-icon-secondary")}, ${Pt.active(".m-button.-icon-secondary")} {
712
- --m-button-background-color: transparent;
713
- --m-button-border-color: transparent;
746
+ .-number-sm {
747
+ ${fo("number-sm")};
714
748
  }
715
749
 
716
- .m-button.-small {
717
- --m-button-padding-y: ${Wt("spacing-2")};
718
- --m-button-base-size: 28px;
719
-
720
- ${Rt("button-sm")};
750
+ .-table-header-md {
751
+ ${fo("table-header-md")};
721
752
  }
722
753
 
723
- .m-button.-large {
724
- --m-button-padding-y: ${Wt("spacing-4")};
725
- --m-button-base-size: 48px;
726
-
727
- ${Rt("button-lg")};
754
+ .-table-header-sm {
755
+ ${fo("table-header-sm")};
728
756
  }
757
+ `],window.customElements.define("m-text",Go);var Jo,Ho={};Object.defineProperty(Ho,"i",{value:!0});var qo=go;Ho.SELECTION_TYPES=["single","single-strict","multiple"],Jo=Ho.default=function(t){var o=t.type,i=void 0===o?"multiple":o;return"single"===i?{type:"single",init:function(t){return this.select(t,new Set)},select:function(t,o){var i=qo.toArray(t);if(0===i.length)return o;var n=new Set;return n.add(String(i[i.length-1])),n},unselect:function(t,o){var i=qo.toArray(t);if(0===i.length||0===o.size)return o;for(var n=new Set(o),e=0;e<i.length;e++)n.delete(String(i[e]));return n},toggle:function(t,o){var i=qo.toArray(t);if(0===i.length)return o;for(var n=new Set,e=0;e<i.length;e++){var r=String(i[e]);o.has(r)||(n.clear(),n.add(r))}return n},reset:function(t){return null==t?new Set:t},value:function(t){return null==t||0===t.size?null:Array.from(t)[0]}}:"single-strict"===i?{type:"single-strict",init:function(t){return this.select(t,new Set)},select:function(t,o){var i=qo.toArray(t);if(0===i.length)return o;var n=new Set;return n.add(String(i[i.length-1])),n},unselect:function(t,o){var i=qo.toArray(t);if(0===i.length||0===o.size)return o;for(var n=new Set(o),e=0;e<i.length&&o.size>1;e++)n.delete(String(i[e]));return n},toggle:function(t,o){var i=qo.toArray(t);if(0===i.length)return o;for(var n=new Set(o),e=0;e<i.length;e++){var r=String(i[e]);o.has(r)||(n.clear(),n.add(r))}return n},reset:function(t){return null==t?new Set:t},value:function(t){return null==t||0===t.size?null:Array.from(t)[0]}}:{type:"multiple",init:function(t){return this.select(t,new Set)},select:function(t,o){var i=qo.toArray(t);if(0===i.length)return o;for(var n=new Set(o),e=0;e<i.length;e++)n.add(String(i[e]));return n},unselect:function(t,o){var i=qo.toArray(t);if(0===i.length||0===o.size)return o;for(var n=new Set(o),e=0;e<i.length;e++)n.delete(String(i[e]));return n},toggle:function(t,o){var i=qo.toArray(t);if(0===i.length)return o;for(var n=new Set(o),e=0;e<i.length;e++){var r=String(i[e]);o.has(r)?n.delete(r):n.add(r)}return n},reset:function(t){return null==t?new Set:t},value:function(t){return null==t||0===t.size?null:Array.from(t)}}};class Ko{constructor(t,o,i){this.disabled=!1,this.event="m-select",this._handleSelectionEvent=t=>{if(this.disabled)return;if(null==this.type)return void console.warn("[SelectionController] Did you forget to set the selection type?");const{detail:{type:o,value:i}}=t;switch(o){case"select":this.select(bo(i));break;case"unselect":this.unselect(bo(i));break;case"toggle":this.toggle(bo(i))}},this.init=t=>{this.host.selection=this.strategy.init(t)},this.select=t=>{this.host.selection=this.strategy.select(t,this.host.selection),this._publish()},this.unselect=t=>{this.host.selection=this.strategy.unselect(t,this.host.selection),this._publish()},this.toggle=t=>{this.host.selection=this.strategy.toggle(t,this.host.selection),this._publish()},this.subscribe=()=>{this.host.addEventListener(this.event,this._handleSelectionEvent)},this.unsubscribe=()=>{this.host.removeEventListener(this.event,this._handleSelectionEvent)},this.host=t,this.type=o,this.event=i,this.strategy=Jo({type:o}),this.host.addController(this)}hostConnected(){this.subscribe()}hostDisconnected(){this.unsubscribe()}hostUpdate(){null!=this.host.type&&this.host.type!==this.type&&(this.unsubscribe(),this.host.removeController(this))}_publish(){const t={detail:{type:this.type,value:this.strategy.value(this.host.selection)},bubbles:!0,composed:!1};this.host.dispatchEvent(new CustomEvent("m-change",t))}}class Vo extends Ot{constructor(){super(),this._selectionController=null,this._defaultSlot=null,this.showCheck=!1,this.size="default",this.type="single",this.selection=new Set}static get properties(){return{disabled:{type:Boolean},role:{type:String,reflect:!0},showCheck:{type:Boolean,attribute:"show-check"},size:{type:String},type:{type:String},value:{},selection:{state:!0}}}update(t){super.update(t),(null!=t.get("type")&&null!=this.type||null==this._selectionController)&&(this._selectionController=new Ko(this,this.type,"m-toggle"),this._selectionController.init(bo(this.value)),this.role=["single","single-strict"].includes(this.type)?"radiogroup":"group"),t.has("value")&&this._selectionController.init(bo(this.value))}updated(t){super.updated(t),t.has("selection")&&this._getToggles().forEach((t=>{this._setToggleChecked(t)})),t.has("disabled")&&this._getToggles().forEach((t=>{this._setToggleDisabled(t)})),t.has("role")&&this._getToggles().forEach((t=>{this._setToggleRole(t)}))}render(){return bt`
758
+ <m-group
759
+ class=${Bt({"toggle-group":!0,"-single":"single"==this.type,"-single-strict":"single-strict"==this.type,"-multiple":"multiple"==this.type,"-small":"small"==this.size,"-show-check":this.showCheck})}
760
+ gap="spacing-1"
761
+ >
762
+ <slot></slot>
763
+ </m-group>
764
+ `}_getToggles(){return null==this._defaultSlot&&(this._defaultSlot=this.shadowRoot.querySelector("slot")),[...this._defaultSlot.assignedElements({flatten:!0})].filter((t=>"m-toggle"===t.tagName.toLowerCase()))}_setToggleRole(t){t.setAttribute("role",["single","single-strict"].includes(this.type)?"radio":"checkbox")}_setToggleChecked(t){t.checked=this.selection.has(t.value)}_setToggleDisabled(t){t.disabled=this.disabled}}Vo.styles=[[s`
765
+ .toggle-group {
766
+ inline-size: max-content;
767
+
768
+ border: 1px solid ${lo("color-border")};
769
+ padding: ${so("spacing-1")};
770
+
771
+ border-radius: ${so("border-radius-s")};
772
+ box-sizing: border-box;
773
+
774
+ block-size: 40px;
775
+ }
776
+
777
+ .toggle-group.-small {
778
+ block-size: 28px;
779
+ }
780
+
781
+ .toggle-group.-small ::slotted( m-toggle ) {
782
+ --m-toggle-base-size: 18px;
783
+ --m-toggle-font-size: ${so("font-size-5")};
784
+ --m-toggle-icon-size: 10px;
785
+ }
786
+
787
+ .toggle-group.-show-check ::slotted( m-toggle[aria-checked='true'] ) {
788
+ --m-toggle-icon-display: inline-flex;
789
+ }
790
+ `]],window.customElements.define("m-toggle-group",Vo);class Fo extends Ot{constructor(){super(),this.disabled=!1,this.checked=!1}static get properties(){return{checked:{type:Boolean},disabled:{type:Boolean,reflect:!0},role:{type:String,reflect:!0},value:{type:String}}}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this._handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._handleClick)}updated(t){super.updated(t),t.has("disabled")&&this._setDisabled(),t.has("checked")&&this._setChecked()}render(){return bt`
791
+ <button
792
+ type="button"
793
+ class=${Bt({button:!0,toggle:!0})}
794
+ role="${this.role}"
795
+ aria-checked="${this.checked}"
796
+ ?disabled="${this.disabled}"
797
+ >
798
+ <slot name="leading" slot="leading">
799
+ <!-- TODO: Isolate icons when we add another component that alse uses them -->
800
+ <svg
801
+ class="check-icon"
802
+ viewBox="0 0 48 48"
803
+ xmlns="http://www.w3.org/2000/svg"
804
+ >
805
+ <path
806
+ fill-rule="evenodd"
807
+ clip-rule="evenodd"
808
+ d="M44.4203 13.3431L40.1777 9.1005L18.9645 30.3137L9.06496 20.4142L4.82232 24.6569L14.7218 34.5563L18.9645 38.799L23.2071 34.5563L44.4203 13.3431Z"
809
+ />
810
+ </svg>
811
+ </slot>
729
812
 
730
- /* TODO: to be removed when the loading dots component is ready */
731
- .loader {
732
- position: absolute;
733
- inset: 0;
734
-
735
- display: flex;
736
- align-items: center;
737
- justify-content: center;
738
-
739
- pointer-events: none;
740
- }
741
- `],window.customElements.define("m-button",lo);export{Vt as ALIGN_ITEMS_VALUES,Xt as Box,lo as Button,It as Card,Lt as CardBody,Gt as CardSubtitle,Jt as CardTitle,Zt as Divider,io as Grid,to as Group,Ft as JUSTIFY_CONTENT_VALUES,Kt as ProgressBar,ao as Sidebar,no as Stack,Dt as Text,Qt as defaultBoxProps,ro as defaultGridProps,Yt as defaultGroupProps,eo as defaultSidebarProps,oo as defaultStackProps};
813
+ <slot></slot>
814
+ </button>
815
+ `}_handleClick(){if(this.disabled)return;this.checked=!this.checked;const t={detail:{value:this.value,type:"toggle"},bubbles:!0,composed:!1};this.dispatchEvent(new CustomEvent("m-toggle",t))}_setDisabled(){this.setAttribute("aria-disabled",String(this.disabled))}_setChecked(){this.setAttribute("aria-checked",String(this.checked))}}Fo.styles=[[yo(),s`
816
+ :host {
817
+ /*
818
+ * These custom properties are here because they are meant to be
819
+ * overriden via toggle-group styles.
820
+ */
821
+ --m-toggle-base-size: 30px;
822
+ --m-toggle-font-size: ${so("font-size-4")};
823
+ --m-toggle-icon-size: 12px;
824
+ --m-toggle-icon-display: none;
825
+ }
826
+
827
+ .toggle {
828
+ --m-button-border-color: transparent;
829
+ --m-button-color: ${lo("color-primary-100")};
830
+ --m-button-padding-x: ${so("spacing-2")};
831
+ --m-button-padding-y: 0;
832
+
833
+ --m-button-base-size: var( --m-toggle-base-size );
834
+ --m-button-font-size: var( --m-toggle-font-size );
835
+ }
836
+
837
+ ${vo([".toggle"])} {
838
+ --m-button-color: ${lo("color-text-disabled")};
839
+ }
840
+
841
+ [aria-checked='true'] {
842
+ --m-button-background-color: ${lo("color-primary-20")};
843
+ }
844
+
845
+ ${$o.hover(".toggle")} {
846
+ --m-button-background-color: ${lo("color-background-tertiary")};
847
+ --m-button-border-color: ${lo("color-background-tertiary")};
848
+ --m-button-color: ${lo("color-primary-100")};
849
+ }
850
+
851
+ .check-icon {
852
+ ${po([{property:"color"},{property:"fill"}])};
853
+
854
+ display: var( --m-toggle-icon-display );
855
+ color: var( --m-button-color );
856
+ fill: var( --m-button-color );
857
+
858
+ block-size: var( --m-toggle-icon-size );
859
+ inline-size: var( --m-toggle-icon-size );
860
+ }
861
+ `]],window.customElements.define("m-toggle",Fo);export{Co as ALIGN_ITEMS_VALUES,Mo as Box,xo as Button,ko as Card,So as CardBody,zo as CardSubtitle,_o as CardTitle,Ao as Divider,Wo as Grid,Oo as Group,jo as JUSTIFY_CONTENT_VALUES,Zo as ProgressBar,Do as Sidebar,No as Stack,Go as Text,Fo as Toggle,Vo as ToggleGroup,Eo as defaultBoxProps,Ro as defaultGridProps,To as defaultGroupProps,Bo as defaultSidebarProps,Uo as defaultStackProps};
742
862
  //# sourceMappingURL=index.js.map