@cas-smartdesign/lit-slider 7.0.5 → 7.0.6

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.
@@ -1,42 +1,45 @@
1
- var window;(window||={})["@cas-smartdesign/lit-slider"]=(()=>{var pt=Object.defineProperty;var re=Object.getOwnPropertyDescriptor;var oe=Object.getOwnPropertyNames;var ne=Object.prototype.hasOwnProperty;var ae=(e,t)=>{for(var i in t)pt(e,i,{get:t[i],enumerable:!0})},le=(e,t,i,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of oe(t))!ne.call(e,r)&&r!==i&&pt(e,r,{get:()=>t[r],enumerable:!(s=re(t,r))||s.enumerable});return e};var he=e=>le(pt({},"__esModule",{value:!0}),e);var je={};ae(je,{default:()=>ht});var st=window,rt=st.ShadowRoot&&(st.ShadyCSS===void 0||st.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ft=Symbol(),Vt=new WeakMap,G=class{constructor(t,i,s){if(this._$cssResult$=!0,s!==ft)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=i}get styleSheet(){let t=this.o,i=this.t;if(rt&&t===void 0){let s=i!==void 0&&i.length===1;s&&(t=Vt.get(i)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Vt.set(i,t))}return t}toString(){return this.cssText}},k=e=>new G(typeof e=="string"?e:e+"",void 0,ft),I=(e,...t)=>{let i=e.length===1?e[0]:t.reduce((s,r,o)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[o+1],e[0]);return new G(i,e,ft)},vt=(e,t)=>{rt?e.adoptedStyleSheets=t.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet):t.forEach(i=>{let s=document.createElement("style"),r=st.litNonce;r!==void 0&&s.setAttribute("nonce",r),s.textContent=i.cssText,e.appendChild(s)})},ot=rt?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let i="";for(let s of t.cssRules)i+=s.cssText;return k(i)})(e):e;var gt,nt=window,Tt=nt.trustedTypes,ce=Tt?Tt.emptyScript:"",Nt=nt.reactiveElementPolyfillSupport,bt={toAttribute(e,t){switch(t){case Boolean:e=e?ce:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=e!==null;break;case Number:i=e===null?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch{i=null}}return i}},Ot=(e,t)=>t!==e&&(t==t||e==e),mt={attribute:!0,type:String,converter:bt,reflect:!1,hasChanged:Ot},$t="finalized",C=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var i;this.finalize(),((i=this.h)!==null&&i!==void 0?i:this.h=[]).push(t)}static get observedAttributes(){this.finalize();let t=[];return this.elementProperties.forEach((i,s)=>{let r=this._$Ep(s,i);r!==void 0&&(this._$Ev.set(r,s),t.push(r))}),t}static createProperty(t,i=mt){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){let s=typeof t=="symbol"?Symbol():"__"+t,r=this.getPropertyDescriptor(t,s,i);r!==void 0&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,i,s){return{get(){return this[i]},set(r){let o=this[t];this[i]=r,this.requestUpdate(t,o,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||mt}static finalize(){if(this.hasOwnProperty($t))return!1;this[$t]=!0;let t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let i=this.properties,s=[...Object.getOwnPropertyNames(i),...Object.getOwnPropertySymbols(i)];for(let r of s)this.createProperty(r,i[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let i=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let r of s)i.unshift(ot(r))}else t!==void 0&&i.push(ot(t));return i}static _$Ep(t,i){let s=i.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(i=>this.enableUpdating=i),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(i=>i(this))}addController(t){var i,s;((i=this._$ES)!==null&&i!==void 0?i:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((s=t.hostConnected)===null||s===void 0||s.call(t))}removeController(t){var i;(i=this._$ES)===null||i===void 0||i.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])})}createRenderRoot(){var t;let i=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return vt(i,this.constructor.elementStyles),i}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(i=>{var s;return(s=i.hostConnected)===null||s===void 0?void 0:s.call(i)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(i=>{var s;return(s=i.hostDisconnected)===null||s===void 0?void 0:s.call(i)})}attributeChangedCallback(t,i,s){this._$AK(t,s)}_$EO(t,i,s=mt){var r;let o=this.constructor._$Ep(t,s);if(o!==void 0&&s.reflect===!0){let n=(((r=s.converter)===null||r===void 0?void 0:r.toAttribute)!==void 0?s.converter:bt).toAttribute(i,s.type);this._$El=t,n==null?this.removeAttribute(o):this.setAttribute(o,n),this._$El=null}}_$AK(t,i){var s;let r=this.constructor,o=r._$Ev.get(t);if(o!==void 0&&this._$El!==o){let n=r.getPropertyOptions(o),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((s=n.converter)===null||s===void 0?void 0:s.fromAttribute)!==void 0?n.converter:bt;this._$El=o,this[o]=a.fromAttribute(i,n.type),this._$El=null}}requestUpdate(t,i,s){let r=!0;t!==void 0&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||Ot)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),s.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,s))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(i){Promise.reject(i)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((r,o)=>this[o]=r),this._$Ei=void 0);let i=!1,s=this._$AL;try{i=this.shouldUpdate(s),i?(this.willUpdate(s),(t=this._$ES)===null||t===void 0||t.forEach(r=>{var o;return(o=r.hostUpdate)===null||o===void 0?void 0:o.call(r)}),this.update(s)):this._$Ek()}catch(r){throw i=!1,this._$Ek(),r}i&&this._$AE(s)}willUpdate(t){}_$AE(t){var i;(i=this._$ES)===null||i===void 0||i.forEach(s=>{var r;return(r=s.hostUpdated)===null||r===void 0?void 0:r.call(s)}),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){this._$EC!==void 0&&(this._$EC.forEach((i,s)=>this._$EO(s,this[s],i)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};C[$t]=!0,C.elementProperties=new Map,C.elementStyles=[],C.shadowRootOptions={mode:"open"},Nt?.({ReactiveElement:C}),((gt=nt.reactiveElementVersions)!==null&&gt!==void 0?gt:nt.reactiveElementVersions=[]).push("1.6.3");var yt,at=window,B=at.trustedTypes,Ut=B?B.createPolicy("lit-html",{createHTML:e=>e}):void 0,wt="$lit$",M=`lit$${(Math.random()+"").slice(9)}$`,Wt="?"+M,ue=`<${Wt}>`,R=document,J=()=>R.createComment(""),Y=e=>e===null||typeof e!="object"&&typeof e!="function",Xt=Array.isArray,de=e=>Xt(e)||typeof e?.[Symbol.iterator]=="function",_t=`[
1
+ var window;(window||={})["@cas-smartdesign/lit-slider"]=(()=>{var pt=Object.defineProperty;var re=Object.getOwnPropertyDescriptor;var oe=Object.getOwnPropertyNames;var ne=Object.prototype.hasOwnProperty;var ae=(e,t)=>{for(var i in t)pt(e,i,{get:t[i],enumerable:!0})},le=(e,t,i,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of oe(t))!ne.call(e,r)&&r!==i&&pt(e,r,{get:()=>t[r],enumerable:!(s=re(t,r))||s.enumerable});return e};var he=e=>le(pt({},"__esModule",{value:!0}),e);var Fe={};ae(Fe,{default:()=>ht});var st=window,rt=st.ShadowRoot&&(st.ShadyCSS===void 0||st.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ft=Symbol(),Dt=new WeakMap,G=class{constructor(t,i,s){if(this._$cssResult$=!0,s!==ft)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=i}get styleSheet(){let t=this.o,i=this.t;if(rt&&t===void 0){let s=i!==void 0&&i.length===1;s&&(t=Dt.get(i)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Dt.set(i,t))}return t}toString(){return this.cssText}},k=e=>new G(typeof e=="string"?e:e+"",void 0,ft),V=(e,...t)=>{let i=e.length===1?e[0]:t.reduce((s,r,o)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[o+1],e[0]);return new G(i,e,ft)},vt=(e,t)=>{rt?e.adoptedStyleSheets=t.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet):t.forEach(i=>{let s=document.createElement("style"),r=st.litNonce;r!==void 0&&s.setAttribute("nonce",r),s.textContent=i.cssText,e.appendChild(s)})},ot=rt?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let i="";for(let s of t.cssRules)i+=s.cssText;return k(i)})(e):e;var mt,nt=window,Tt=nt.trustedTypes,ce=Tt?Tt.emptyScript:"",Nt=nt.reactiveElementPolyfillSupport,bt={toAttribute(e,t){switch(t){case Boolean:e=e?ce:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=e!==null;break;case Number:i=e===null?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch{i=null}}return i}},Ot=(e,t)=>t!==e&&(t==t||e==e),gt={attribute:!0,type:String,converter:bt,reflect:!1,hasChanged:Ot},$t="finalized",P=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var i;this.finalize(),((i=this.h)!==null&&i!==void 0?i:this.h=[]).push(t)}static get observedAttributes(){this.finalize();let t=[];return this.elementProperties.forEach((i,s)=>{let r=this._$Ep(s,i);r!==void 0&&(this._$Ev.set(r,s),t.push(r))}),t}static createProperty(t,i=gt){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){let s=typeof t=="symbol"?Symbol():"__"+t,r=this.getPropertyDescriptor(t,s,i);r!==void 0&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,i,s){return{get(){return this[i]},set(r){let o=this[t];this[i]=r,this.requestUpdate(t,o,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||gt}static finalize(){if(this.hasOwnProperty($t))return!1;this[$t]=!0;let t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let i=this.properties,s=[...Object.getOwnPropertyNames(i),...Object.getOwnPropertySymbols(i)];for(let r of s)this.createProperty(r,i[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let i=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let r of s)i.unshift(ot(r))}else t!==void 0&&i.push(ot(t));return i}static _$Ep(t,i){let s=i.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(i=>this.enableUpdating=i),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(i=>i(this))}addController(t){var i,s;((i=this._$ES)!==null&&i!==void 0?i:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((s=t.hostConnected)===null||s===void 0||s.call(t))}removeController(t){var i;(i=this._$ES)===null||i===void 0||i.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])})}createRenderRoot(){var t;let i=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return vt(i,this.constructor.elementStyles),i}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(i=>{var s;return(s=i.hostConnected)===null||s===void 0?void 0:s.call(i)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(i=>{var s;return(s=i.hostDisconnected)===null||s===void 0?void 0:s.call(i)})}attributeChangedCallback(t,i,s){this._$AK(t,s)}_$EO(t,i,s=gt){var r;let o=this.constructor._$Ep(t,s);if(o!==void 0&&s.reflect===!0){let n=(((r=s.converter)===null||r===void 0?void 0:r.toAttribute)!==void 0?s.converter:bt).toAttribute(i,s.type);this._$El=t,n==null?this.removeAttribute(o):this.setAttribute(o,n),this._$El=null}}_$AK(t,i){var s;let r=this.constructor,o=r._$Ev.get(t);if(o!==void 0&&this._$El!==o){let n=r.getPropertyOptions(o),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((s=n.converter)===null||s===void 0?void 0:s.fromAttribute)!==void 0?n.converter:bt;this._$El=o,this[o]=a.fromAttribute(i,n.type),this._$El=null}}requestUpdate(t,i,s){let r=!0;t!==void 0&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||Ot)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),s.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,s))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(i){Promise.reject(i)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((r,o)=>this[o]=r),this._$Ei=void 0);let i=!1,s=this._$AL;try{i=this.shouldUpdate(s),i?(this.willUpdate(s),(t=this._$ES)===null||t===void 0||t.forEach(r=>{var o;return(o=r.hostUpdate)===null||o===void 0?void 0:o.call(r)}),this.update(s)):this._$Ek()}catch(r){throw i=!1,this._$Ek(),r}i&&this._$AE(s)}willUpdate(t){}_$AE(t){var i;(i=this._$ES)===null||i===void 0||i.forEach(s=>{var r;return(r=s.hostUpdated)===null||r===void 0?void 0:r.call(s)}),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){this._$EC!==void 0&&(this._$EC.forEach((i,s)=>this._$EO(s,this[s],i)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};P[$t]=!0,P.elementProperties=new Map,P.elementStyles=[],P.shadowRootOptions={mode:"open"},Nt?.({ReactiveElement:P}),((mt=nt.reactiveElementVersions)!==null&&mt!==void 0?mt:nt.reactiveElementVersions=[]).push("1.6.3");var yt,at=window,B=at.trustedTypes,Ut=B?B.createPolicy("lit-html",{createHTML:e=>e}):void 0,wt="$lit$",M=`lit$${(Math.random()+"").slice(9)}$`,Wt="?"+M,ue=`<${Wt}>`,R=document,J=()=>R.createComment(""),Y=e=>e===null||typeof e!="object"&&typeof e!="function",Xt=Array.isArray,de=e=>Xt(e)||typeof e?.[Symbol.iterator]=="function",_t=`[
2
2
  \f\r]`,K=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Bt=/-->/g,Ht=/>/g,L=RegExp(`>|${_t}(?:([^\\s"'>=/]+)(${_t}*=${_t}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),zt=/'/g,jt=/"/g,Gt=/^(?:script|style|textarea|title)$/i,Kt=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),y=Kt(1),Ke=Kt(2),V=Symbol.for("lit-noChange"),g=Symbol.for("lit-nothing"),Ft=new WeakMap,D=R.createTreeWalker(R,129,null,!1);function Jt(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ut!==void 0?Ut.createHTML(t):t}var pe=(e,t)=>{let i=e.length-1,s=[],r,o=t===2?"<svg>":"",n=K;for(let a=0;a<i;a++){let l=e[a],h,d,c=-1,f=0;for(;f<l.length&&(n.lastIndex=f,d=n.exec(l),d!==null);)f=n.lastIndex,n===K?d[1]==="!--"?n=Bt:d[1]!==void 0?n=Ht:d[2]!==void 0?(Gt.test(d[2])&&(r=RegExp("</"+d[2],"g")),n=L):d[3]!==void 0&&(n=L):n===L?d[0]===">"?(n=r??K,c=-1):d[1]===void 0?c=-2:(c=n.lastIndex-d[2].length,h=d[1],n=d[3]===void 0?L:d[3]==='"'?jt:zt):n===jt||n===zt?n=L:n===Bt||n===Ht?n=K:(n=L,r=void 0);let $=n===L&&e[a+1].startsWith("/>")?" ":"";o+=n===K?l+ue:c>=0?(s.push(h),l.slice(0,c)+wt+l.slice(c)+M+$):l+M+(c===-2?(s.push(void 0),a):$)}return[Jt(e,o+(e[i]||"<?>")+(t===2?"</svg>":"")),s]},Z=class e{constructor({strings:t,_$litType$:i},s){let r;this.parts=[];let o=0,n=0,a=t.length-1,l=this.parts,[h,d]=pe(t,i);if(this.el=e.createElement(h,s),D.currentNode=this.el.content,i===2){let c=this.el.content,f=c.firstChild;f.remove(),c.append(...f.childNodes)}for(;(r=D.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes()){let c=[];for(let f of r.getAttributeNames())if(f.endsWith(wt)||f.startsWith(M)){let $=d[n++];if(c.push(f),$!==void 0){let ct=r.getAttribute($.toLowerCase()+wt).split(M),v=/([.?@])?(.*)/.exec($);l.push({type:1,index:o,name:v[2],strings:ct,ctor:v[1]==="."?At:v[1]==="?"?xt:v[1]==="@"?St:z})}else l.push({type:6,index:o})}for(let f of c)r.removeAttribute(f)}if(Gt.test(r.tagName)){let c=r.textContent.split(M),f=c.length-1;if(f>0){r.textContent=B?B.emptyScript:"";for(let $=0;$<f;$++)r.append(c[$],J()),D.nextNode(),l.push({type:2,index:++o});r.append(c[f],J())}}}else if(r.nodeType===8)if(r.data===Wt)l.push({type:2,index:o});else{let c=-1;for(;(c=r.data.indexOf(M,c+1))!==-1;)l.push({type:7,index:o}),c+=M.length-1}o++}}static createElement(t,i){let s=R.createElement("template");return s.innerHTML=t,s}};function H(e,t,i=e,s){var r,o,n,a;if(t===V)return t;let l=s!==void 0?(r=i._$Co)===null||r===void 0?void 0:r[s]:i._$Cl,h=Y(t)?void 0:t._$litDirective$;return l?.constructor!==h&&((o=l?._$AO)===null||o===void 0||o.call(l,!1),h===void 0?l=void 0:(l=new h(e),l._$AT(e,i,s)),s!==void 0?((n=(a=i)._$Co)!==null&&n!==void 0?n:a._$Co=[])[s]=l:i._$Cl=l),l!==void 0&&(t=H(e,l._$AS(e,t.values),l,s)),t}var Et=class{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;let{el:{content:s},parts:r}=this._$AD,o=((i=t?.creationScope)!==null&&i!==void 0?i:R).importNode(s,!0);D.currentNode=o;let n=D.nextNode(),a=0,l=0,h=r[0];for(;h!==void 0;){if(a===h.index){let d;h.type===2?d=new Q(n,n.nextSibling,this,t):h.type===1?d=new h.ctor(n,h.name,h.strings,this,t):h.type===6&&(d=new Ct(n,this,t)),this._$AV.push(d),h=r[++l]}a!==h?.index&&(n=D.nextNode(),a++)}return D.currentNode=R,o}v(t){let i=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}},Q=class e{constructor(t,i,s,r){var o;this.type=2,this._$AH=g,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=r,this._$Cp=(o=r?.isConnected)===null||o===void 0||o}get _$AU(){var t,i;return(i=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&i!==void 0?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode,i=this._$AM;return i!==void 0&&t?.nodeType===11&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=H(this,t,i),Y(t)?t===g||t==null||t===""?(this._$AH!==g&&this._$AR(),this._$AH=g):t!==this._$AH&&t!==V&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):de(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==g&&Y(this._$AH)?this._$AA.nextSibling.data=t:this.$(R.createTextNode(t)),this._$AH=t}g(t){var i;let{values:s,_$litType$:r}=t,o=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=Z.createElement(Jt(r.h,r.h[0]),this.options)),r);if(((i=this._$AH)===null||i===void 0?void 0:i._$AD)===o)this._$AH.v(s);else{let n=new Et(o,this),a=n.u(this.options);n.v(s),this.$(a),this._$AH=n}}_$AC(t){let i=Ft.get(t.strings);return i===void 0&&Ft.set(t.strings,i=new Z(t)),i}T(t){Xt(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,s,r=0;for(let o of t)r===i.length?i.push(s=new e(this.k(J()),this.k(J()),this,this.options)):s=i[r],s._$AI(o),r++;r<i.length&&(this._$AR(s&&s._$AB.nextSibling,r),i.length=r)}_$AR(t=this._$AA.nextSibling,i){var s;for((s=this._$AP)===null||s===void 0||s.call(this,!1,!0,i);t&&t!==this._$AB;){let r=t.nextSibling;t.remove(),t=r}}setConnected(t){var i;this._$AM===void 0&&(this._$Cp=t,(i=this._$AP)===null||i===void 0||i.call(this,t))}},z=class{constructor(t,i,s,r,o){this.type=1,this._$AH=g,this._$AN=void 0,this.element=t,this.name=i,this._$AM=r,this.options=o,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=g}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,s,r){let o=this.strings,n=!1;if(o===void 0)t=H(this,t,i,0),n=!Y(t)||t!==this._$AH&&t!==V,n&&(this._$AH=t);else{let a=t,l,h;for(t=o[0],l=0;l<o.length-1;l++)h=H(this,a[s+l],i,l),h===V&&(h=this._$AH[l]),n||(n=!Y(h)||h!==this._$AH[l]),h===g?t=g:t!==g&&(t+=(h??"")+o[l+1]),this._$AH[l]=h}n&&!r&&this.j(t)}j(t){t===g?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},At=class extends z{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===g?void 0:t}},fe=B?B.emptyScript:"",xt=class extends z{constructor(){super(...arguments),this.type=4}j(t){t&&t!==g?this.element.setAttribute(this.name,fe):this.element.removeAttribute(this.name)}},St=class extends z{constructor(t,i,s,r,o){super(t,i,s,r,o),this.type=5}_$AI(t,i=this){var s;if((t=(s=H(this,t,i,0))!==null&&s!==void 0?s:g)===V)return;let r=this._$AH,o=t===g&&r!==g||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==g&&(r===g||o);o&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,s;typeof this._$AH=="function"?this._$AH.call((s=(i=this.options)===null||i===void 0?void 0:i.host)!==null&&s!==void 0?s:this.element,t):this._$AH.handleEvent(t)}},Ct=class{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){H(this,t)}};var qt=at.litHtmlPolyfillSupport;qt?.(Z,Q),((yt=at.litHtmlVersions)!==null&&yt!==void 0?yt:at.litHtmlVersions=[]).push("2.8.0");var Yt=(e,t,i)=>{var s,r;let o=(s=i?.renderBefore)!==null&&s!==void 0?s:t,n=o._$litPart$;if(n===void 0){let a=(r=i?.renderBefore)!==null&&r!==void 0?r:null;o._$litPart$=n=new Q(t.insertBefore(J(),a),a,void 0,i??{})}return n._$AI(e),n};var Pt,kt;var w=class extends C{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,i;let s=super.createRenderRoot();return(t=(i=this.renderOptions).renderBefore)!==null&&t!==void 0||(i.renderBefore=s.firstChild),s}update(t){let i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Yt(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return V}};w.finalized=!0,w._$litElement$=!0,(Pt=globalThis.litElementHydrateSupport)===null||Pt===void 0||Pt.call(globalThis,{LitElement:w});var Zt=globalThis.litElementPolyfillSupport;Zt?.({LitElement:w});((kt=globalThis.litElementVersions)!==null&&kt!==void 0?kt:globalThis.litElementVersions=[]).push("3.3.3");var ve=(e,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(i){i.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){typeof t.initializer=="function"&&(this[t.key]=t.initializer.call(this))},finisher(i){i.createProperty(t.key,e)}},ge=(e,t,i)=>{t.constructor.createProperty(i,e)};function u(e){return(t,i)=>i!==void 0?ge(e,t,i):ve(e,t)}var tt="a-f\\d",me=`#?[${tt}]{3}[${tt}]?`,be=`#?[${tt}]{6}([${tt}]{2})?`,$e=new RegExp(`[^#${tt}]`,"gi"),ye=new RegExp(`^${me}$|^${be}$`,"i");function Mt(e,t={}){if(typeof e!="string"||$e.test(e)||!ye.test(e))throw new TypeError("Expected a valid hex string");e=e.replace(/^#/,"");let i=1;e.length===8&&(i=Number.parseInt(e.slice(6,8),16)/255,e=e.slice(0,6)),e.length===4&&(i=Number.parseInt(e.slice(3,4).repeat(2),16)/255,e=e.slice(0,3)),e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);let s=Number.parseInt(e,16),r=s>>16,o=s>>8&255,n=s&255,a=typeof t.alpha=="number"?t.alpha:i;if(t.format==="array")return[r,o,n,a];if(t.format==="css"){let l=a===1?"":` / ${Number((a*100).toFixed(2))}%`;return`rgb(${r} ${o} ${n}${l})`}return{red:r,green:o,blue:n,alpha:a}}var P=e=>e??g;var _e=":host{display:inline-block;font-size:13px;line-height:20px;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;color:#111;contain:content}:host([hidden]){display:none!important}:host([level=warn i]){color:#555}:host([level=suggest i]){color:#bf8800}:host([level=error i]){color:#cc0017}:host([level=warn]){color:#555}:host([level=suggest]){color:#bf8800}:host([level=error]){color:#cc0017}.icon{height:12px;width:12px;padding-right:4px;margin-bottom:-1px}",we="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cstyle%20id='style3'%3e%20.st0{fill:%23fff}.st1{fill:%23c00}%20%3c/style%3e%3cg%20id='g5'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20id='path9'/%3e%3c/g%3e%3cg%20id='g11'%3e%3cpath%20class='st0'%20id='rect13'%20d='M5.5%202.5h1v4h-1z'/%3e%3cpath%20class='st1'%20d='M6%203v3-3m1-1H5v5h2V2z'%20id='path15'/%3e%3c/g%3e%3cg%20id='g17'%3e%3cpath%20class='st0'%20id='rect19'%20d='M5.5%208.5h1v1h-1z'/%3e%3cpath%20class='st1'%20id='polygon21'%20d='M7%208H5v2h2V8z'/%3e%3c/g%3e%3c/svg%3e",Ee="data:image/svg+xml,%3csvg%20id='Ebene_1'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cstyle%3e%20.st0{fill:%23bf8800}%20%3c/style%3e%3cpath%20class='st0'%20d='M12%20.8l11%2019.8v1.3H1v-1.3L12%20.8zm.8-.6h-1.6L0%2020v3h24v-3L12.8.2z'/%3e%3cpath%20class='st0'%20d='M11%208h2v8h-2zm0%2010h2v2h-2z'/%3e%3c/svg%3e",Ae="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20fill='%23555'/%3e%3cpath%20d='M6%209V6v3m-1%201h2V5H5v5zm2-8H5v2h2z'%20class='st1'%20fill='%23555'/%3e%3c/svg%3e",xe=Object.defineProperty,Se=Object.getOwnPropertyDescriptor,Lt=(e,t,i,s)=>{for(var r=s>1?void 0:s?Se(t,i):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(r=(s?n(t,i,r):n(r))||r);return s&&r&&xe(t,i,r),r},j,et=(j=class extends w{static parseLevel(e){if(e){let t=Object.keys(F).find(i=>i.toLowerCase()===e.toLowerCase());return t&&F[t]}}static get styles(){return[I`
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),zt=/'/g,Ft=/"/g,Gt=/^(?:script|style|textarea|title)$/i,Kt=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),y=Kt(1),Ke=Kt(2),D=Symbol.for("lit-noChange"),g=Symbol.for("lit-nothing"),jt=new WeakMap,I=R.createTreeWalker(R,129,null,!1);function Jt(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ut!==void 0?Ut.createHTML(t):t}var pe=(e,t)=>{let i=e.length-1,s=[],r,o=t===2?"<svg>":"",n=K;for(let a=0;a<i;a++){let l=e[a],h,d,c=-1,f=0;for(;f<l.length&&(n.lastIndex=f,d=n.exec(l),d!==null);)f=n.lastIndex,n===K?d[1]==="!--"?n=Bt:d[1]!==void 0?n=Ht:d[2]!==void 0?(Gt.test(d[2])&&(r=RegExp("</"+d[2],"g")),n=L):d[3]!==void 0&&(n=L):n===L?d[0]===">"?(n=r??K,c=-1):d[1]===void 0?c=-2:(c=n.lastIndex-d[2].length,h=d[1],n=d[3]===void 0?L:d[3]==='"'?Ft:zt):n===Ft||n===zt?n=L:n===Bt||n===Ht?n=K:(n=L,r=void 0);let $=n===L&&e[a+1].startsWith("/>")?" ":"";o+=n===K?l+ue:c>=0?(s.push(h),l.slice(0,c)+wt+l.slice(c)+M+$):l+M+(c===-2?(s.push(void 0),a):$)}return[Jt(e,o+(e[i]||"<?>")+(t===2?"</svg>":"")),s]},Z=class e{constructor({strings:t,_$litType$:i},s){let r;this.parts=[];let o=0,n=0,a=t.length-1,l=this.parts,[h,d]=pe(t,i);if(this.el=e.createElement(h,s),I.currentNode=this.el.content,i===2){let c=this.el.content,f=c.firstChild;f.remove(),c.append(...f.childNodes)}for(;(r=I.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes()){let c=[];for(let f of r.getAttributeNames())if(f.endsWith(wt)||f.startsWith(M)){let $=d[n++];if(c.push(f),$!==void 0){let ct=r.getAttribute($.toLowerCase()+wt).split(M),v=/([.?@])?(.*)/.exec($);l.push({type:1,index:o,name:v[2],strings:ct,ctor:v[1]==="."?xt:v[1]==="?"?At:v[1]==="@"?St:z})}else l.push({type:6,index:o})}for(let f of c)r.removeAttribute(f)}if(Gt.test(r.tagName)){let c=r.textContent.split(M),f=c.length-1;if(f>0){r.textContent=B?B.emptyScript:"";for(let $=0;$<f;$++)r.append(c[$],J()),I.nextNode(),l.push({type:2,index:++o});r.append(c[f],J())}}}else if(r.nodeType===8)if(r.data===Wt)l.push({type:2,index:o});else{let c=-1;for(;(c=r.data.indexOf(M,c+1))!==-1;)l.push({type:7,index:o}),c+=M.length-1}o++}}static createElement(t,i){let s=R.createElement("template");return s.innerHTML=t,s}};function H(e,t,i=e,s){var r,o,n,a;if(t===D)return t;let l=s!==void 0?(r=i._$Co)===null||r===void 0?void 0:r[s]:i._$Cl,h=Y(t)?void 0:t._$litDirective$;return l?.constructor!==h&&((o=l?._$AO)===null||o===void 0||o.call(l,!1),h===void 0?l=void 0:(l=new h(e),l._$AT(e,i,s)),s!==void 0?((n=(a=i)._$Co)!==null&&n!==void 0?n:a._$Co=[])[s]=l:i._$Cl=l),l!==void 0&&(t=H(e,l._$AS(e,t.values),l,s)),t}var Et=class{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;let{el:{content:s},parts:r}=this._$AD,o=((i=t?.creationScope)!==null&&i!==void 0?i:R).importNode(s,!0);I.currentNode=o;let n=I.nextNode(),a=0,l=0,h=r[0];for(;h!==void 0;){if(a===h.index){let d;h.type===2?d=new Q(n,n.nextSibling,this,t):h.type===1?d=new h.ctor(n,h.name,h.strings,this,t):h.type===6&&(d=new Ct(n,this,t)),this._$AV.push(d),h=r[++l]}a!==h?.index&&(n=I.nextNode(),a++)}return I.currentNode=R,o}v(t){let i=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}},Q=class e{constructor(t,i,s,r){var o;this.type=2,this._$AH=g,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=r,this._$Cp=(o=r?.isConnected)===null||o===void 0||o}get _$AU(){var t,i;return(i=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&i!==void 0?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode,i=this._$AM;return i!==void 0&&t?.nodeType===11&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=H(this,t,i),Y(t)?t===g||t==null||t===""?(this._$AH!==g&&this._$AR(),this._$AH=g):t!==this._$AH&&t!==D&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):de(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==g&&Y(this._$AH)?this._$AA.nextSibling.data=t:this.$(R.createTextNode(t)),this._$AH=t}g(t){var i;let{values:s,_$litType$:r}=t,o=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=Z.createElement(Jt(r.h,r.h[0]),this.options)),r);if(((i=this._$AH)===null||i===void 0?void 0:i._$AD)===o)this._$AH.v(s);else{let n=new Et(o,this),a=n.u(this.options);n.v(s),this.$(a),this._$AH=n}}_$AC(t){let i=jt.get(t.strings);return i===void 0&&jt.set(t.strings,i=new Z(t)),i}T(t){Xt(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,s,r=0;for(let o of t)r===i.length?i.push(s=new e(this.k(J()),this.k(J()),this,this.options)):s=i[r],s._$AI(o),r++;r<i.length&&(this._$AR(s&&s._$AB.nextSibling,r),i.length=r)}_$AR(t=this._$AA.nextSibling,i){var s;for((s=this._$AP)===null||s===void 0||s.call(this,!1,!0,i);t&&t!==this._$AB;){let r=t.nextSibling;t.remove(),t=r}}setConnected(t){var i;this._$AM===void 0&&(this._$Cp=t,(i=this._$AP)===null||i===void 0||i.call(this,t))}},z=class{constructor(t,i,s,r,o){this.type=1,this._$AH=g,this._$AN=void 0,this.element=t,this.name=i,this._$AM=r,this.options=o,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=g}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,s,r){let o=this.strings,n=!1;if(o===void 0)t=H(this,t,i,0),n=!Y(t)||t!==this._$AH&&t!==D,n&&(this._$AH=t);else{let a=t,l,h;for(t=o[0],l=0;l<o.length-1;l++)h=H(this,a[s+l],i,l),h===D&&(h=this._$AH[l]),n||(n=!Y(h)||h!==this._$AH[l]),h===g?t=g:t!==g&&(t+=(h??"")+o[l+1]),this._$AH[l]=h}n&&!r&&this.j(t)}j(t){t===g?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},xt=class extends z{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===g?void 0:t}},fe=B?B.emptyScript:"",At=class extends z{constructor(){super(...arguments),this.type=4}j(t){t&&t!==g?this.element.setAttribute(this.name,fe):this.element.removeAttribute(this.name)}},St=class extends z{constructor(t,i,s,r,o){super(t,i,s,r,o),this.type=5}_$AI(t,i=this){var s;if((t=(s=H(this,t,i,0))!==null&&s!==void 0?s:g)===D)return;let r=this._$AH,o=t===g&&r!==g||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==g&&(r===g||o);o&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,s;typeof this._$AH=="function"?this._$AH.call((s=(i=this.options)===null||i===void 0?void 0:i.host)!==null&&s!==void 0?s:this.element,t):this._$AH.handleEvent(t)}},Ct=class{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){H(this,t)}};var qt=at.litHtmlPolyfillSupport;qt?.(Z,Q),((yt=at.litHtmlVersions)!==null&&yt!==void 0?yt:at.litHtmlVersions=[]).push("2.8.0");var Yt=(e,t,i)=>{var s,r;let o=(s=i?.renderBefore)!==null&&s!==void 0?s:t,n=o._$litPart$;if(n===void 0){let a=(r=i?.renderBefore)!==null&&r!==void 0?r:null;o._$litPart$=n=new Q(t.insertBefore(J(),a),a,void 0,i??{})}return n._$AI(e),n};var Pt,kt;var w=class extends P{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,i;let s=super.createRenderRoot();return(t=(i=this.renderOptions).renderBefore)!==null&&t!==void 0||(i.renderBefore=s.firstChild),s}update(t){let i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Yt(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return D}};w.finalized=!0,w._$litElement$=!0,(Pt=globalThis.litElementHydrateSupport)===null||Pt===void 0||Pt.call(globalThis,{LitElement:w});var Zt=globalThis.litElementPolyfillSupport;Zt?.({LitElement:w});((kt=globalThis.litElementVersions)!==null&&kt!==void 0?kt:globalThis.litElementVersions=[]).push("3.3.3");var ve=(e,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(i){i.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){typeof t.initializer=="function"&&(this[t.key]=t.initializer.call(this))},finisher(i){i.createProperty(t.key,e)}},me=(e,t,i)=>{t.constructor.createProperty(i,e)};function u(e){return(t,i)=>i!==void 0?me(e,t,i):ve(e,t)}var tt="a-f\\d",ge=`#?[${tt}]{3}[${tt}]?`,be=`#?[${tt}]{6}([${tt}]{2})?`,$e=new RegExp(`[^#${tt}]`,"gi"),ye=new RegExp(`^${ge}$|^${be}$`,"i");function Mt(e,t={}){if(typeof e!="string"||$e.test(e)||!ye.test(e))throw new TypeError("Expected a valid hex string");e=e.replace(/^#/,"");let i=1;e.length===8&&(i=Number.parseInt(e.slice(6,8),16)/255,e=e.slice(0,6)),e.length===4&&(i=Number.parseInt(e.slice(3,4).repeat(2),16)/255,e=e.slice(0,3)),e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);let s=Number.parseInt(e,16),r=s>>16,o=s>>8&255,n=s&255,a=typeof t.alpha=="number"?t.alpha:i;if(t.format==="array")return[r,o,n,a];if(t.format==="css"){let l=a===1?"":` / ${Number((a*100).toFixed(2))}%`;return`rgb(${r} ${o} ${n}${l})`}return{red:r,green:o,blue:n,alpha:a}}var A=e=>e??g;var _e=":host{display:inline-block;font-size:13px;line-height:20px;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;color:#111;contain:content}:host([hidden]){display:none!important}:host([level=warn i]){color:#555}:host([level=suggest i]){color:#bf8800}:host([level=error i]){color:#cc0017}:host([level=warn]){color:#555}:host([level=suggest]){color:#bf8800}:host([level=error]){color:#cc0017}.icon{height:12px;width:12px;padding-right:4px;margin-bottom:-1px}",we="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cstyle%20id='style3'%3e%20.st0{fill:%23fff}.st1{fill:%23c00}%20%3c/style%3e%3cg%20id='g5'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20id='path9'/%3e%3c/g%3e%3cg%20id='g11'%3e%3cpath%20class='st0'%20id='rect13'%20d='M5.5%202.5h1v4h-1z'/%3e%3cpath%20class='st1'%20d='M6%203v3-3m1-1H5v5h2V2z'%20id='path15'/%3e%3c/g%3e%3cg%20id='g17'%3e%3cpath%20class='st0'%20id='rect19'%20d='M5.5%208.5h1v1h-1z'/%3e%3cpath%20class='st1'%20id='polygon21'%20d='M7%208H5v2h2V8z'/%3e%3c/g%3e%3c/svg%3e",Ee="data:image/svg+xml,%3csvg%20id='Ebene_1'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cstyle%3e%20.st0{fill:%23bf8800}%20%3c/style%3e%3cpath%20class='st0'%20d='M12%20.8l11%2019.8v1.3H1v-1.3L12%20.8zm.8-.6h-1.6L0%2020v3h24v-3L12.8.2z'/%3e%3cpath%20class='st0'%20d='M11%208h2v8h-2zm0%2010h2v2h-2z'/%3e%3c/svg%3e",xe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20fill='%23555'/%3e%3cpath%20d='M6%209V6v3m-1%201h2V5H5v5zm2-8H5v2h2z'%20class='st1'%20fill='%23555'/%3e%3c/svg%3e",Ae=Object.defineProperty,Se=Object.getOwnPropertyDescriptor,Lt=(e,t,i,s)=>{for(var r=s>1?void 0:s?Se(t,i):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(r=(s?n(t,i,r):n(r))||r);return s&&r&&Ae(t,i,r),r},F,et=(F=class extends w{static parseLevel(e){if(e){let t=Object.keys(j).find(i=>i.toLowerCase()===e.toLowerCase());return t&&j[t]}}static get styles(){return[V`
4
4
  ${k(_e)}
5
- `]}render(){return y`${this.iconToUse&&y`<img class="icon" src="${this.iconToUse}">`}${this.message}`}get iconToUse(){return this.icon||this._defaultIconPath}shouldUpdate(e){return e.has("level")&&(this._defaultIconPath=this.iconForLevel,!this.icon)?!0:super.shouldUpdate(e)}get iconForLevel(){switch(j.parseLevel(this.level)){case"warn":return Ae;case"suggest":return Ee;case"error":return we;default:return null}}},j.ID="sd-field-validation-message",j.levelConverter={fromAttribute(e){return j.parseLevel(e)},toAttribute(e){return e&&e.toLowerCase()}},j);Lt([u({type:String,attribute:!0})],et.prototype,"message",2);Lt([u({type:String,attribute:!0})],et.prototype,"icon",2);Lt([u({converter:et.levelConverter,reflect:!0})],et.prototype,"level",2);var It=et,F=(e=>(e.Warn="warn",e.Suggest="suggest",e.Error="error",e))(F||{});customElements.get(It.ID)||customElements.define(It.ID,It);var Ce=":host{display:inline-flex;position:relative;cursor:text;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;font-size:16px;color:#111;contain:layout style;flex-direction:column}:host([hidden]),:host([type=hidden]){display:none!important}:host([effective-disabled]){opacity:.6;cursor:default;filter:grayscale(100%)}:host([effective-disabled]) .unfocused-line,:host([effective-disabled]) .focused-line{border-bottom-style:dashed}:host(:not([effective-disabled]):focus) .focused-line,:host(:not([effective-disabled])[focused]) .focused-line{transform:none;transition:transform .25s}:host(:not([effective-disabled]):focus) .label.float,:host(:not([effective-disabled])[focused]) .label.float{color:var(--sd-input-focused-color, #1467ba)}:host([inactive]) .input{pointer-events:none}:host([effective-disabled]:focus),:host([effective-disabled][focused]){box-shadow:0 0 0 1px #111}:host(:not([effective-disabled])[validationlevel]) .focused-line{transform:none;transition:transform .25s}:host([validationlevel=warn i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #555555)}:host([validationlevel=warn i]) .label,:host([validationlevel=warn i]) .validation-message{color:var(--sd-input-validation-color, #555555)!important}:host([validationlevel=suggest i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #bf8800)}:host([validationlevel=suggest i]) .label,:host([validationlevel=suggest i]) .validation-message{color:var(--sd-input-validation-color, #bf8800)!important}:host([validationlevel=error i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #cc0017)}:host([validationlevel=error i]) .label,:host([validationlevel=error i]) .validation-message{color:var(--sd-input-validation-color, #cc0017)!important}:host([validationlevel=warn]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #555555)}:host([validationlevel=warn]) .label,:host([validationlevel=warn]) .validation-message{color:var(--sd-input-validation-color, #555555)!important}:host([validationlevel=suggest]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #bf8800)}:host([validationlevel=suggest]) .label,:host([validationlevel=suggest]) .validation-message{color:var(--sd-input-validation-color, #bf8800)!important}:host([validationlevel=error]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #cc0017)}:host([validationlevel=error]) .label,:host([validationlevel=error]) .validation-message{color:var(--sd-input-validation-color, #cc0017)!important}.validation-message-wrapper{position:relative}.validation-message{position:absolute;left:0;right:0}.label.float{transform:translateY(-75%) scale(.75);width:133%}.label:not(.float){max-width:100%}.floated-label-placeholder{height:20px;width:100%}.label{position:absolute;top:0;left:0;line-height:24px;pointer-events:none;color:var(--sd-input-color, #767676);transition:transform .25s,width .25s;transform-origin:left top}.input-wrapper{position:relative;display:flex;flex-direction:row;align-items:center;background-color:var(--input-wrapper-background-color)}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-wrapper{flex-direction:column;align-items:baseline}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-container{width:100%}:host([extended-prefix]:not(:focus-within)) .input-container,:host([extended-prefix][effective-disabled]) .input-container{width:0px}.input-container{line-height:var(--sd-input-line-height, 24px);flex:1 1 auto}.input{width:100%;background:var(--sd-input-background, transparent);font-family:inherit;font-size:inherit;text-align:inherit;color:inherit;border:none;outline:none;resize:none;padding-left:0;padding-right:0}.input:-webkit-autofill{animation-name:onautofillstart}.input:not(:-webkit-autofill){animation-name:onautofillcancel}@keyframes onautofillstart{0%{outline:none}}@keyframes onautofillcancel{0%{outline:none}}.label,input.input,.validation-message{text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.input::-ms-clear{display:none}.input::placeholder{color:var(--sd-input-color, #767676)}.input:-ms-input-placeholder{color:var(--sd-input-color, #767676)}.input::-ms-input-placeholder{color:var(--sd-input-color, #767676)}.underline{height:2px;width:100%;position:relative}.unfocused-line,.focused-line{position:absolute;top:0;right:0;bottom:0;left:0}.unfocused-line{border-bottom:1px solid var(--sd-input-underline-color, #959595)}.focused-line{border-bottom:2px solid var(--sd-input-focused-color, #1467ba);transform-origin:center center;transform:scale3d(0,1,1)}.prefix,.suffix{display:flex;flex-wrap:nowrap}.prefix ::slotted(*),.suffix ::slotted(*){display:flex}",Pe=Object.defineProperty,ke=Object.getOwnPropertyDescriptor,b=(e,t,i,s)=>{for(var r=s>1?void 0:s?ke(t,i):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(r=(s?n(t,i,r):n(r))||r);return s&&r&&Pe(t,i,r),r},Me="sd-lit-input",Qt="delegatesFocus"in window.ShadowRoot.prototype,Ie=0,x,m=(x=class extends w{constructor(){super(),this.rows=1,this.effectiveDisabled=!1,this.type="text",this.autocomplete="off";let e=Ie++;this._validationMessageId=x.ID+"_message_"+e,this._inputId=x.ID+"_input_"+e,this.attachInternals&&!this.activeShadyDOM&&(this._internals=this.attachInternals())}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabIndex")||(this.tabIndex=0)}firstUpdated(e){super.firstUpdated(e),this.initAutocompleted(this.inputElement),this.updateInitialValue(),this.hasAttribute("disabled")&&(this.disabled=!0),this.inputElement.oninput=t=>{this.autocompleted=t.inputType==="insertReplacementText"||!("data"in t),this.currentText=this.inputElement.value,this.fireValueChange(!0)},this.inputElement.onchange=()=>this.fireValueChange(),Qt||(this.inputElement.onfocus=()=>this.setAttribute("focused",""),this.inputElement.onblur=()=>this.removeAttribute("focused"),this.addEventListener("focus",t=>{t.target===this&&this.inputElement.focus()})),this.addEventListener("keydown",t=>{var i,s;t.key=="Enter"&&((s=(i=this._internals)==null?void 0:i.form)==null||s.requestSubmit())}),this._initialized=!0}initAutocompleted(e){let t=i=>{/^onautofillstart(-sd-lit-input-\d+|\s?)$/.test(i.animationName)?this.autocompleted=!0:/^onautofillcancel(-sd-lit-input-\d+|\s?)$/.test(i.animationName)&&(this.autocompleted=!1)};this.activeShadyDOM?(this._needsAutocompletedCheck=!0,this.activeShadyDOM.nativeMethods.addEventListener.call(e,"animationstart",t)):e.addEventListener("animationstart",t)}get activeShadyDOM(){let e=window.ShadyDOM;return e&&e.inUse?e:null}updateInitialValue(){typeof this.currentText<"u"?this.value=this.currentText:this.value=this.getAttribute("value"),this.value&&(this.currentText=this.inputElement.value),this._initialValue=this.value}get disabled(){return this.hasAttribute("disabled")}set disabled(e){e?this.setAttribute("disabled",""):this.removeAttribute("disabled"),this._internals||(this.effectiveDisabled=e)}get inputElement(){return this.shadowRoot&&!this._inputElement&&(this._inputElement=this.shadowRoot.querySelector(".input")),this._inputElement}get value(){return this.inputElement&&this.inputElement.value}set value(e){this.currentText=e||"",this.inputElement&&(this.inputElement.value=this.currentText),this.setFormValue(this.currentText)}get selectionStart(){return this.inputElement?this.inputElement.selectionStart:0}focus(){this.inputElement?this.inputElement.focus():super.focus()}select(){this.inputElement&&this.inputElement.select()}setSelectionRange(e,t){this.updateComplete.then(()=>{this.inputElement&&this.inputElement.setSelectionRange(e,t)})}static get styles(){return[I`
5
+ `]}render(){return y`${this.iconToUse&&y`<img class="icon" src="${this.iconToUse}">`}${this.message}`}get iconToUse(){return this.icon||this._defaultIconPath}shouldUpdate(e){return e.has("level")&&(this._defaultIconPath=this.iconForLevel,!this.icon)?!0:super.shouldUpdate(e)}get iconForLevel(){switch(F.parseLevel(this.level)){case"warn":return xe;case"suggest":return Ee;case"error":return we;default:return null}}},F.ID="sd-field-validation-message",F.levelConverter={fromAttribute(e){return F.parseLevel(e)},toAttribute(e){return e&&e.toLowerCase()}},F);Lt([u({type:String,attribute:!0})],et.prototype,"message",2);Lt([u({type:String,attribute:!0})],et.prototype,"icon",2);Lt([u({converter:et.levelConverter,reflect:!0})],et.prototype,"level",2);var Vt=et,j=(e=>(e.Warn="warn",e.Suggest="suggest",e.Error="error",e))(j||{});customElements.get(Vt.ID)||customElements.define(Vt.ID,Vt);var Ce=":host{display:inline-flex;position:relative;cursor:text;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;font-size:16px;color:#111;contain:layout style;flex-direction:column}:host([hidden]),:host([type=hidden]){display:none!important}:host([effective-disabled]){opacity:.6;cursor:default;filter:grayscale(100%)}:host([effective-disabled]) .unfocused-line,:host([effective-disabled]) .focused-line{border-bottom-style:dashed}:host(:not([effective-disabled]):focus) .focused-line,:host(:not([effective-disabled])[focused]) .focused-line{transform:none;transition:transform .25s}:host(:not([effective-disabled]):focus) .label.float,:host(:not([effective-disabled])[focused]) .label.float{color:var(--sd-input-focused-color, #1467ba)}:host([inactive]) .input{pointer-events:none}:host([effective-disabled]:focus),:host([effective-disabled][focused]){box-shadow:0 0 0 1px #111}:host(:not([effective-disabled])[validationlevel]) .focused-line,:host(:not([effective-disabled]):invalid) .focused-line{transform:none;transition:transform .25s}:host([validationlevel=warn i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #555555)}:host([validationlevel=warn i]) .label,:host([validationlevel=warn i]) .validation-message{color:var(--sd-input-validation-color, #555555)!important}:host([validationlevel=suggest i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #bf8800)}:host([validationlevel=suggest i]) .label,:host([validationlevel=suggest i]) .validation-message{color:var(--sd-input-validation-color, #bf8800)!important}:host([validationlevel=error i]) .focused-line,:host(:not([validationlevel]):invalid) .focused-line{border-bottom-color:var(--sd-input-validation-color, #cc0017)}:host([validationlevel=error i]) .label,:host([validationlevel=error i]) .validation-message,:host(:not([validationlevel]):invalid) .label,:host(:not([validationlevel]):invalid) .validation-message{color:var(--sd-input-validation-color, #cc0017)!important}.validation-message-wrapper{position:relative}.validation-message{position:absolute;left:0;right:0}.label.float{transform:translateY(-75%) scale(.75);width:133%}.label:not(.float){max-width:100%}.floated-label-placeholder{height:20px;width:100%}.label{position:absolute;top:0;left:0;line-height:24px;pointer-events:none;color:var(--sd-input-color, #767676);transition:transform .25s,width .25s;transform-origin:left top}.input-wrapper{position:relative;display:flex;flex-direction:row;align-items:center;background-color:var(--input-wrapper-background-color)}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-wrapper{flex-direction:column;align-items:baseline}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-container{width:100%}:host([extended-prefix]:not(:focus-within)) .input-container,:host([extended-prefix][effective-disabled]) .input-container{width:0px}.input-container{line-height:var(--sd-input-line-height, 24px);flex:1 1 auto}.input{width:100%;background:var(--sd-input-background, transparent);font-family:inherit;font-size:inherit;text-align:inherit;color:inherit;border:none;outline:none;resize:none;padding-left:0;padding-right:0}.input:-webkit-autofill{animation-name:onautofillstart}.input:not(:-webkit-autofill){animation-name:onautofillcancel}@keyframes onautofillstart{0%{outline:none}}@keyframes onautofillcancel{0%{outline:none}}.label,input.input,.validation-message{text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.input::placeholder{color:var(--sd-input-color, #767676)}.underline{height:2px;width:100%;position:relative}.unfocused-line,.focused-line{position:absolute;top:0;right:0;bottom:0;left:0}.unfocused-line{border-bottom:1px solid var(--sd-input-underline-color, #959595)}.focused-line{border-bottom:2px solid var(--sd-input-focused-color, #1467ba);transform-origin:center center;transform:scale3d(0,1,1)}.prefix,.suffix{display:flex;flex-wrap:nowrap;max-width:100%}.prefix ::slotted(*),.suffix ::slotted(*){display:flex}",Pe=Object.defineProperty,ke=Object.getOwnPropertyDescriptor,b=(e,t,i,s)=>{for(var r=s>1?void 0:s?ke(t,i):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(r=(s?n(t,i,r):n(r))||r);return s&&r&&Pe(t,i,r),r},Me="sd-lit-input",Qt="delegatesFocus"in window.ShadowRoot.prototype,Ve=0,S,m=(S=class extends w{constructor(){super(),this.rows=1,this.effectiveDisabled=!1,this.type="text",this.autocomplete="off";let e=Ve++;this._validationMessageId=S.ID+"_message_"+e,this._inputId=S.ID+"_input_"+e,this.attachInternals&&!this.activeShadyDOM&&(this._internals=this.attachInternals())}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabIndex")||(this.tabIndex=0)}firstUpdated(e){super.firstUpdated(e),this.initAutocompleted(this.inputElement),this.updateInitialValue(),this.updateFormValidity(),this.hasAttribute("disabled")&&(this.disabled=!0),this.inputElement.oninput=t=>{this.autocompleted=t.inputType==="insertReplacementText"||!("data"in t),this.currentText=this.inputElement.value,this.fireValueChange(!0)},this.inputElement.onchange=()=>this.fireValueChange(),Qt||(this.inputElement.onfocus=()=>this.setAttribute("focused",""),this.inputElement.onblur=()=>this.removeAttribute("focused"),this.addEventListener("focus",t=>{t.target===this&&this.inputElement.focus()})),this.inputElement.addEventListener("keyup",()=>{this.updateFormValidity()}),this.addEventListener("keydown",t=>{var i,s;t.key=="Enter"&&((s=(i=this._internals)==null?void 0:i.form)==null||s.requestSubmit())}),this._initialized=!0}initAutocompleted(e){let t=i=>{/^onautofillstart(-sd-lit-input-\d+|\s?)$/.test(i.animationName)?this.autocompleted=!0:/^onautofillcancel(-sd-lit-input-\d+|\s?)$/.test(i.animationName)&&(this.autocompleted=!1)};this.activeShadyDOM?(this._needsAutocompletedCheck=!0,this.activeShadyDOM.nativeMethods.addEventListener.call(e,"animationstart",t)):e.addEventListener("animationstart",t)}get activeShadyDOM(){let e=window.ShadyDOM;return e&&e.inUse?e:null}updateInitialValue(){typeof this.currentText<"u"?this.value=this.currentText:this.value=this.getAttribute("value"),this.value&&(this.currentText=this.inputElement.value),this._initialValue=this.value}get disabled(){return this.hasAttribute("disabled")}set disabled(e){e?this.setAttribute("disabled",""):this.removeAttribute("disabled"),this._internals||(this.effectiveDisabled=e)}get inputElement(){return this.shadowRoot&&!this._inputElement&&(this._inputElement=this.shadowRoot.querySelector(".input")),this._inputElement}get value(){return this.inputElement&&this.inputElement.value}set value(e){this.currentText=e||"",this.inputElement&&(this.inputElement.value=this.currentText),this.setFormValue(this.currentText)}get selectionStart(){return this.inputElement?this.inputElement.selectionStart:0}focus(){this.inputElement?this.inputElement.focus():super.focus()}select(){this.inputElement&&this.inputElement.select()}setSelectionRange(e,t){this.updateComplete.then(()=>{this.inputElement&&this.inputElement.setSelectionRange(e,t)})}static get styles(){return[V`
6
6
  ${k(Ce)}
7
- `]}render(){let e;return this.rows===1?e=y`
7
+ `]}render(){var e;let t,i=this.validationMessage||((e=this._internals)==null?void 0:e.validationMessage);return this.rows===1?t=y`
8
8
  <input
9
9
  id=${this._inputId}
10
10
  class="input"
11
11
  .type=${this.type}
12
- placeholder=${P(this.placeholder||void 0)}
13
- name=${P(this.name||void 0)}
12
+ placeholder=${A(this.placeholder||void 0)}
13
+ name=${A(this.name||void 0)}
14
14
  aria-disabled=${this.effectiveDisabled}
15
15
  autocomplete=${this.autocomplete}
16
16
  ?disabled=${this.inactive}
17
17
  ?readonly=${this.readonly||this.effectiveDisabled}
18
18
  ?required=${this.required}
19
- maxlength=${this.maxlength>0?this.maxlength:x.DEFAULT_MAX_LENGTH}
19
+ maxlength=${this.maxlength>0?this.maxlength:S.DEFAULT_MAX_LENGTH}
20
20
  aria-describedby=${this._validationMessageId}
21
- aria-invalid=${P(!!this.validationMessage||void 0)}
22
- aria-label=${P(this.sdAriaLabel||void 0)}
21
+ aria-invalid=${A(!!i||void 0)}
22
+ aria-label=${A(this.sdAriaLabel||void 0)}
23
+ min=${A(this.min||void 0)}
24
+ max=${A(this.max||void 0)}
25
+ pattern=${A(this.pattern||void 0)}
23
26
  />
24
- `:e=y`
27
+ `:t=y`
25
28
  <textarea
26
29
  id=${this._inputId}
27
30
  class="input"
28
- placeholder=${P(this.placeholder||void 0)}
29
- name=${P(this.name||void 0)}
31
+ placeholder=${A(this.placeholder||void 0)}
32
+ name=${A(this.name||void 0)}
30
33
  aria-disabled=${this.effectiveDisabled}
31
34
  autocomplete=${this.autocomplete}
32
35
  ?disabled=${this.inactive}
33
36
  ?readonly=${this.readonly||this.effectiveDisabled}
34
37
  ?required=${this.required}
35
- maxlength=${this.maxlength>0?this.maxlength:x.DEFAULT_MAX_LENGTH}
38
+ maxlength=${this.maxlength>0?this.maxlength:S.DEFAULT_MAX_LENGTH}
36
39
  rows=${this.rows}
37
40
  aria-describedby=${this._validationMessageId}
38
- aria-invalid=${P(!!this.validationMessage||void 0)}
39
- aria-label=${P(this.sdAriaLabel||void 0)}
41
+ aria-invalid=${A(!!i||void 0)}
42
+ aria-label=${A(this.sdAriaLabel||void 0)}
40
43
  ></textarea>
41
44
  `,y`
42
45
  ${this.label?y` <div class="floated-label-placeholder" aria-hidden="true">&nbsp;</div> `:g}
@@ -48,7 +51,7 @@ var window;(window||={})["@cas-smartdesign/lit-slider"]=(()=>{var pt=Object.defi
48
51
  >${this.label}</label
49
52
  >
50
53
  `}
51
- ${e}
54
+ ${t}
52
55
  </div>
53
56
  <span class="suffix"><slot name="suffix"></slot></span>
54
57
  </div>
@@ -57,18 +60,18 @@ var window;(window||={})["@cas-smartdesign/lit-slider"]=(()=>{var pt=Object.defi
57
60
  <div class="focused-line"></div>
58
61
  </div>
59
62
  <div class="validation-message-wrapper" aria-hidden="true">
60
- ${this.validationMessage&&y`
63
+ ${i&&y`
61
64
  <sd-field-validation-message
62
65
  id=${this._validationMessageId}
63
66
  class="validation-message"
64
- .message=${this.validationMessage}
67
+ .message=${i}
65
68
  .icon=${this.validationIconSrc}
66
69
  .level=${this.validationLevel}
67
70
  >
68
71
  </sd-field-validation-message>
69
72
  `}
70
73
  </div>
71
- `}updated(e){super.updated(e),this._needsAutocompletedCheck&&!this.autocompleted&&setTimeout(()=>{try{this.autocompleted=this.autocompleted||!!this.shadowRoot.querySelector(":-webkit-autofill")}catch{}},0)}update(e){var t,i;if(super.update(e),e.has("validationMessage")&&(this.validationMessage?(this.validationLevel||(this.validationLevel=F.Error),(t=this._internals)==null||t.setValidity({customError:!0},this.validationMessage)):(this.validationLevel=null,(i=this._internals)==null||i.setValidity({}))),this._initialized&&e.has("rows"))throw Error("rows attribute cannot be changed after the input is attached to the DOM")}fireValueChange(e){this.dispatchEvent(new CustomEvent(`${e?"immediate-":""}value-change`,{detail:{value:this.value}})),this.setFormValue(this.value)}shouldFloat(){return this.alwaysFloatLabel||this.currentText||this.placeholder||this.autocompleted}setFormValue(e){var t;(t=this._internals)==null||t.setFormValue(e)}formResetCallback(){this.value=this._initialValue}formDisabledCallback(e){this.effectiveDisabled=e||this.hasAttribute("disabled")}formAssociatedCallback(e){this._needsAutocompletedCheck=!0}formStateRestoreCallback(e,t){typeof e=="string"&&(this.value=e)}},x.ID=Me,x.DEFAULT_MAX_LENGTH=524288,x.formAssociated=!0,x.shadowRootOptions={...w.shadowRootOptions,delegatesFocus:Qt},x);b([u({type:String,reflect:!0})],m.prototype,"label",2);b([u({type:String,attribute:!0})],m.prototype,"validationMessage",2);b([u({type:String,attribute:!0})],m.prototype,"validationIconSrc",2);b([u({type:F,attribute:!0,reflect:!0})],m.prototype,"validationLevel",2);b([u({type:String,hasChanged(e,t){return t!=null&&t!=e}})],m.prototype,"currentText",2);b([u({type:Boolean,attribute:!0})],m.prototype,"alwaysFloatLabel",2);b([u({type:Boolean,attribute:!0})],m.prototype,"autocompleted",2);b([u({type:Number,attribute:!0})],m.prototype,"rows",2);b([u({type:Boolean,reflect:!0,attribute:"effective-disabled"})],m.prototype,"effectiveDisabled",2);b([u({type:Boolean,reflect:!0,attribute:"extended-prefix"})],m.prototype,"extendedPrefix",2);b([u({type:String,reflect:!0})],m.prototype,"type",2);b([u({type:String,reflect:!0})],m.prototype,"placeholder",2);b([u({type:String,reflect:!0})],m.prototype,"sdAriaLabel",2);b([u({type:Number,reflect:!0})],m.prototype,"maxlength",2);b([u({type:Boolean,reflect:!0})],m.prototype,"readonly",2);b([u({type:Boolean,reflect:!0})],m.prototype,"required",2);b([u({type:String,reflect:!0})],m.prototype,"name",2);b([u({type:Boolean,reflect:!0})],m.prototype,"inactive",2);b([u({type:String,attribute:!0})],m.prototype,"autocomplete",2);var Dt=m;customElements.get(Dt.ID)||customElements.define(Dt.ID,Dt);var Le=20,De=1,T=1e6,te=1e6,Re=-7,Ve=21,Te=!1,it="[big.js] ",N=it+"Invalid ",lt=N+"decimal places",Ne=N+"rounding mode",ee=it+"Division by zero",p={},S=void 0,Oe=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function ie(){function e(t){var i=this;if(!(i instanceof e))return t===S?ie():new e(t);if(t instanceof e)i.s=t.s,i.e=t.e,i.c=t.c.slice();else{if(typeof t!="string"){if(e.strict===!0&&typeof t!="bigint")throw TypeError(N+"value");t=t===0&&1/t<0?"-0":String(t)}Ue(i,t)}i.constructor=e}return e.prototype=p,e.DP=Le,e.RM=De,e.NE=Re,e.PE=Ve,e.strict=Te,e.roundDown=0,e.roundHalfUp=1,e.roundHalfEven=2,e.roundUp=3,e}function Ue(e,t){var i,s,r;if(!Oe.test(t))throw Error(N+"number");for(e.s=t.charAt(0)=="-"?(t=t.slice(1),-1):1,(i=t.indexOf("."))>-1&&(t=t.replace(".","")),(s=t.search(/e/i))>0?(i<0&&(i=s),i+=+t.slice(s+1),t=t.substring(0,s)):i<0&&(i=t.length),r=t.length,s=0;s<r&&t.charAt(s)=="0";)++s;if(s==r)e.c=[e.e=0];else{for(;r>0&&t.charAt(--r)=="0";);for(e.e=i-s-1,e.c=[],i=0;s<=r;)e.c[i++]=+t.charAt(s++)}return e}function O(e,t,i,s){var r=e.c;if(i===S&&(i=e.constructor.RM),i!==0&&i!==1&&i!==2&&i!==3)throw Error(Ne);if(t<1)s=i===3&&(s||!!r[0])||t===0&&(i===1&&r[0]>=5||i===2&&(r[0]>5||r[0]===5&&(s||r[1]!==S))),r.length=1,s?(e.e=e.e-t+1,r[0]=1):r[0]=e.e=0;else if(t<r.length){if(s=i===1&&r[t]>=5||i===2&&(r[t]>5||r[t]===5&&(s||r[t+1]!==S||r[t-1]&1))||i===3&&(s||!!r[0]),r.length=t,s){for(;++r[--t]>9;)if(r[t]=0,t===0){++e.e,r.unshift(1);break}}for(t=r.length;!r[--t];)r.pop()}return e}function q(e,t,i){var s=e.e,r=e.c.join(""),o=r.length;if(t)r=r.charAt(0)+(o>1?"."+r.slice(1):"")+(s<0?"e":"e+")+s;else if(s<0){for(;++s;)r="0"+r;r="0."+r}else if(s>0)if(++s>o)for(s-=o;s--;)r+="0";else s<o&&(r=r.slice(0,s)+"."+r.slice(s));else o>1&&(r=r.charAt(0)+"."+r.slice(1));return e.s<0&&i?"-"+r:r}p.abs=function(){var e=new this.constructor(this);return e.s=1,e};p.cmp=function(e){var t,i=this,s=i.c,r=(e=new i.constructor(e)).c,o=i.s,n=e.s,a=i.e,l=e.e;if(!s[0]||!r[0])return s[0]?o:r[0]?-n:0;if(o!=n)return o;if(t=o<0,a!=l)return a>l^t?1:-1;for(n=(a=s.length)<(l=r.length)?a:l,o=-1;++o<n;)if(s[o]!=r[o])return s[o]>r[o]^t?1:-1;return a==l?0:a>l^t?1:-1};p.div=function(e){var t=this,i=t.constructor,s=t.c,r=(e=new i(e)).c,o=t.s==e.s?1:-1,n=i.DP;if(n!==~~n||n<0||n>T)throw Error(lt);if(!r[0])throw Error(ee);if(!s[0])return e.s=o,e.c=[e.e=0],e;var a,l,h,d,c,f=r.slice(),$=a=r.length,ct=s.length,v=s.slice(0,a),A=v.length,U=e,ut=U.c=[],dt=0,X=n+(U.e=t.e-e.e)+1;for(U.s=o,o=X<0?0:X,f.unshift(0);A++<a;)v.push(0);do{for(h=0;h<10;h++){if(a!=(A=v.length))d=a>A?1:-1;else for(c=-1,d=0;++c<a;)if(r[c]!=v[c]){d=r[c]>v[c]?1:-1;break}if(d<0){for(l=A==a?r:f;A;){if(v[--A]<l[A]){for(c=A;c&&!v[--c];)v[c]=9;--v[c],v[A]+=10}v[A]-=l[A]}for(;!v[0];)v.shift()}else break}ut[dt++]=d?h:++h,v[0]&&d?v[A]=s[$]||0:v=[s[$]]}while(($++<ct||v[0]!==S)&&o--);return!ut[0]&&dt!=1&&(ut.shift(),U.e--,X--),dt>X&&O(U,X,i.RM,v[0]!==S),U};p.eq=function(e){return this.cmp(e)===0};p.gt=function(e){return this.cmp(e)>0};p.gte=function(e){return this.cmp(e)>-1};p.lt=function(e){return this.cmp(e)<0};p.lte=function(e){return this.cmp(e)<1};p.minus=p.sub=function(e){var t,i,s,r,o=this,n=o.constructor,a=o.s,l=(e=new n(e)).s;if(a!=l)return e.s=-l,o.plus(e);var h=o.c.slice(),d=o.e,c=e.c,f=e.e;if(!h[0]||!c[0])return c[0]?e.s=-l:h[0]?e=new n(o):e.s=1,e;if(a=d-f){for((r=a<0)?(a=-a,s=h):(f=d,s=c),s.reverse(),l=a;l--;)s.push(0);s.reverse()}else for(i=((r=h.length<c.length)?h:c).length,a=l=0;l<i;l++)if(h[l]!=c[l]){r=h[l]<c[l];break}if(r&&(s=h,h=c,c=s,e.s=-e.s),(l=(i=c.length)-(t=h.length))>0)for(;l--;)h[t++]=0;for(l=t;i>a;){if(h[--i]<c[i]){for(t=i;t&&!h[--t];)h[t]=9;--h[t],h[i]+=10}h[i]-=c[i]}for(;h[--l]===0;)h.pop();for(;h[0]===0;)h.shift(),--f;return h[0]||(e.s=1,h=[f=0]),e.c=h,e.e=f,e};p.mod=function(e){var t,i=this,s=i.constructor,r=i.s,o=(e=new s(e)).s;if(!e.c[0])throw Error(ee);return i.s=e.s=1,t=e.cmp(i)==1,i.s=r,e.s=o,t?new s(i):(r=s.DP,o=s.RM,s.DP=s.RM=0,i=i.div(e),s.DP=r,s.RM=o,this.minus(i.times(e)))};p.neg=function(){var e=new this.constructor(this);return e.s=-e.s,e};p.plus=p.add=function(e){var t,i,s,r=this,o=r.constructor;if(e=new o(e),r.s!=e.s)return e.s=-e.s,r.minus(e);var n=r.e,a=r.c,l=e.e,h=e.c;if(!a[0]||!h[0])return h[0]||(a[0]?e=new o(r):e.s=r.s),e;if(a=a.slice(),t=n-l){for(t>0?(l=n,s=h):(t=-t,s=a),s.reverse();t--;)s.push(0);s.reverse()}for(a.length-h.length<0&&(s=h,h=a,a=s),t=h.length,i=0;t;a[t]%=10)i=(a[--t]=a[t]+h[t]+i)/10|0;for(i&&(a.unshift(i),++l),t=a.length;a[--t]===0;)a.pop();return e.c=a,e.e=l,e};p.pow=function(e){var t=this,i=new t.constructor("1"),s=i,r=e<0;if(e!==~~e||e<-te||e>te)throw Error(N+"exponent");for(r&&(e=-e);e&1&&(s=s.times(t)),e>>=1,!!e;)t=t.times(t);return r?i.div(s):s};p.prec=function(e,t){if(e!==~~e||e<1||e>T)throw Error(N+"precision");return O(new this.constructor(this),e,t)};p.round=function(e,t){if(e===S)e=0;else if(e!==~~e||e<-T||e>T)throw Error(lt);return O(new this.constructor(this),e+this.e+1,t)};p.sqrt=function(){var e,t,i,s=this,r=s.constructor,o=s.s,n=s.e,a=new r("0.5");if(!s.c[0])return new r(s);if(o<0)throw Error(it+"No square root");o=Math.sqrt(s+""),o===0||o===1/0?(t=s.c.join(""),t.length+n&1||(t+="0"),o=Math.sqrt(t),n=((n+1)/2|0)-(n<0||n&1),e=new r((o==1/0?"5e":(o=o.toExponential()).slice(0,o.indexOf("e")+1))+n)):e=new r(o+""),n=e.e+(r.DP+=4);do i=e,e=a.times(i.plus(s.div(i)));while(i.c.slice(0,n).join("")!==e.c.slice(0,n).join(""));return O(e,(r.DP-=4)+e.e+1,r.RM)};p.times=p.mul=function(e){var t,i=this,s=i.constructor,r=i.c,o=(e=new s(e)).c,n=r.length,a=o.length,l=i.e,h=e.e;if(e.s=i.s==e.s?1:-1,!r[0]||!o[0])return e.c=[e.e=0],e;for(e.e=l+h,n<a&&(t=r,r=o,o=t,h=n,n=a,a=h),t=new Array(h=n+a);h--;)t[h]=0;for(l=a;l--;){for(a=0,h=n+l;h>l;)a=t[h]+o[l]*r[h-l-1]+a,t[h--]=a%10,a=a/10|0;t[h]=a}for(a?++e.e:t.shift(),l=t.length;!t[--l];)t.pop();return e.c=t,e};p.toExponential=function(e,t){var i=this,s=i.c[0];if(e!==S){if(e!==~~e||e<0||e>T)throw Error(lt);for(i=O(new i.constructor(i),++e,t);i.c.length<e;)i.c.push(0)}return q(i,!0,!!s)};p.toFixed=function(e,t){var i=this,s=i.c[0];if(e!==S){if(e!==~~e||e<0||e>T)throw Error(lt);for(i=O(new i.constructor(i),e+i.e+1,t),e=e+i.e+1;i.c.length<e;)i.c.push(0)}return q(i,!1,!!s)};p[Symbol.for("nodejs.util.inspect.custom")]=p.toJSON=p.toString=function(){var e=this,t=e.constructor;return q(e,e.e<=t.NE||e.e>=t.PE,!!e.c[0])};p.toNumber=function(){var e=Number(q(this,!0,!0));if(this.constructor.strict===!0&&!this.eq(e.toString()))throw Error(it+"Imprecise conversion");return e};p.toPrecision=function(e,t){var i=this,s=i.constructor,r=i.c[0];if(e!==S){if(e!==~~e||e<1||e>T)throw Error(N+"precision");for(i=O(new s(i),e,t);i.c.length<e;)i.c.push(0)}return q(i,e<=i.e||i.e<=s.NE||i.e>=s.PE,!!r)};p.valueOf=function(){var e=this,t=e.constructor;if(t.strict===!0)throw Error(it+"valueOf disallowed");return q(e,e.e<=t.NE||e.e>=t.PE,!0)};var se=ie();var Rt=class{constructor(){this._rgbaColors=new Map,this._originalColors=new Map}get colors(){return this._originalColors}set colors(t){if(this._rgbaColors.clear(),this._originalColors=t,t&&t.size){if(Array.from(t.keys()).find(s=>s<0||s>1))throw Error("The keys of the colors must represent the relative value where the color is fully applied.");t.forEach((s,r)=>{let o=this.convertFromRGBAString(s)||this.convertFromHex(s);if(Object.keys(o).length===0&&o.constructor===Object)throw Error(`Cannot convert color: ${s} to rgba-color`);this._rgbaColors.set(r,o)});let i=Array.from(this._rgbaColors.entries()).sort();this._rgbaColors=new Map(i)}}blend(t){if(!this._rgbaColors.size)throw Error("It is not possible to blend without a color list.");let i,s;for(let o of this._rgbaColors)if(i||(i=o),o[0]<t)i=o;else if(o[0]===t){i=s=o;break}else{s=o;break}s||(s=i);let r=s[0]-i[0];return r?this.blendColors(i[1],s[1],(t-i[0])/r):this.convertToRGBAString(i[1])}blendColors(t,i,s){return this.convertToRGBAString({red:Math.round(t.red+(i.red-t.red)*s),green:Math.round(t.green+(i.green-t.green)*s),blue:Math.round(t.blue+(i.blue-t.blue)*s),alpha:t.alpha+(i.alpha-t.alpha)*s})}convertFromHex(t){let i=Mt(t);return i.alpha>1&&(i.alpha/=255),i}convertFromRGBAString(t){let i=t.match(/rgba?\((\d{1,3}), ?(\d{1,3}), ?(\d{1,3})\)?(?:, ?(\d(?:\.\d?))\))?/);return i?{red:parseInt(i[1],10),green:parseInt(i[2],10),blue:parseInt(i[3],10),alpha:parseInt(i[4],10)||1}:null}transparentize(t,i){return this.convertToRGBAString(this.convertFromRGBAString(t),i)}convertToRGBAString(t,i){return`rgba(${t.red},${t.green},${t.blue},${i||t.alpha})`}},Be=":host{display:block;position:relative;width:100%;height:48px;cursor:pointer;touch-action:none;contain:layout style}:host([hidden]){display:none!important}:host([disabled]){opacity:.6;cursor:default;filter:grayscale(100%)}:host([disabled]) sd-lit-input{opacity:1}#track-container{position:absolute;top:50%;left:0;height:2px;overflow:hidden}#track{position:absolute;width:100%;height:100%;transform-origin:left top;will-change:transform}:host(:focus) #thumb{top:11px;left:-14px;border-width:8px}#thumb[active]{top:7px!important;left:-18px!important;border-width:12px!important}#thumb{width:12px;height:12px;position:absolute;top:19px;left:-6px;border-radius:50%;border-width:0;background-clip:padding-box;-webkit-user-select:none;user-select:none;will-change:transform;border-style:solid}sd-lit-input{position:absolute;height:100%;width:var(--slider-suffix-width, 50px);right:0;text-align:center;outline:none;white-space:nowrap}sd-field-validation-message{position:absolute;bottom:0}",He=Object.defineProperty,ze=Object.getOwnPropertyDescriptor,E=(e,t,i,s)=>{for(var r=s>1?void 0:s?ze(t,i):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(r=(s?n(t,i,r):n(r))||r);return s&&r&&He(t,i,r),r},W,_=(W=class extends w{constructor(){super(),this.thumbPosition=0,this._value=0,this._relativeValue=0,this.min=0,this.max=1,this.colorBlender=new Rt,this.baseColor=W.defaultColor,this.resizeObserver=new ResizeObserver(()=>{window.requestAnimationFrame(()=>{this.lastKnownWidth!==this.trackContainerWidth&&(this.lastKnownWidth=this.trackContainerWidth,this.doUpdateRelativeValue(this._relativeValue,!0))})})}firstUpdated(e){super.firstUpdated(e),this.updateInitialValue(),this.addEventListener(this.useTouchEvents()?"touchstart":"pointerdown",t=>{!this.hasAttribute("disabled")&&t.composedPath().indexOf(this.inputElement)===-1&&(t.preventDefault(),t.pointerId&&this.setPointerCapture(t.pointerId),this.focus(),this.listenMoveEvents(t.clientX||t.changedTouches[0].clientX))}),this.addEventListener("keydown",this.handleKeyDown,!0),this.setAttribute("aria-valuemin",this.min.toString()),this.setAttribute("aria-valuemax",this.max.toString()),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0")}connectedCallback(){super.connectedCallback(),["colors","min","max","step","editable","inputSuffix","value"].forEach(e=>{this.upgradeProperty(e)}),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.lastKnownWidth=void 0,this.resizeObserver.disconnect()}upgradeProperty(e){if(Object.prototype.hasOwnProperty.call(this,e)){let t=this[e];delete this[e],this[e]=t}}updateInitialValue(){let e=Number.parseFloat(this.getAttribute("value"))||this._value;this.setValueInternal(e)&&(this.inputElement&&(this.inputElement.value=this.formattedValue()),this.fireBothValueChangeEvents())}shouldUpdate(e){return e.has("step")&&this.setValueInternal(this._value)&&this.fireBothValueChangeEvents(),super.shouldUpdate(e)}get value(){return this._value}set value(e){this.setValueInternal(e)&&this.fireBothValueChangeEvents()}roundToStep(e){let t=Number.parseFloat(e);if(Number.isNaN(t))return this._value;if(this.step){let i=se(t).div(this.step).round().mul(this.step);t=Number.parseFloat(i.toString())}return t}setValueInternal(e){let t=this.roundToStep(e);if(this._value!==t){let i=this._value;return this._value=t,this.relativeValue=(t-this.min)/(this.max-this.min),this.setAttribute("aria-valuenow",this._value.toString()),this.requestUpdate("value",i),!0}return!1}get relativeValue(){return this._relativeValue}set relativeValue(e){this._relativeValue!==e&&this.doUpdateRelativeValue(e)}doUpdateRelativeValue(e,t){this._relativeValue=e,this.thumbPosition=Math.min(Math.max(0,e),1)*this.trackContainerWidth;let i=this.min+(this.max-this.min)*this._relativeValue;this.setValueInternal(i),!t&&this.colors&&this.colors.size&&(this.baseColor=this.colorBlender.blend(this._relativeValue))}get colors(){return this.colorBlender.colors}set colors(e){this.colorBlender.colors=e,this.colors&&this.colors.size?this.baseColor=this.colorBlender.blend(this._relativeValue):this.baseColor=W.defaultColor}static get styles(){return[I`
74
+ `}updated(e){super.updated(e),this._needsAutocompletedCheck&&!this.autocompleted&&setTimeout(()=>{try{this.autocompleted=this.autocompleted||!!this.shadowRoot.querySelector(":-webkit-autofill")}catch{}},0),this.rows>1&&((e.has("min")||e.has("max")||e.has("pattern"))&&console.warn("min, max & pattern attributes are not supported with multiple rows configuration."),this.type!="text"&&console.warn(`type: ${this.type} is not supported with multiple rows configuration.`))}update(e){var t,i;if(super.update(e),e.has("validationMessage")&&(this.validationMessage?(this.validationLevel||(this.validationLevel=j.Error),(t=this._internals)==null||t.setValidity({customError:!0},this.validationMessage)):(this.validationLevel=null,(i=this._internals)==null||i.setValidity(this.inputElement.validity,this.inputElement.validationMessage))),this._initialized&&e.has("rows"))throw Error("rows attribute cannot be changed after the input is attached to the DOM")}fireValueChange(e){this.dispatchEvent(new CustomEvent(`${e?"immediate-":""}value-change`,{detail:{value:this.value}})),this.setFormValue(this.value),this.updateFormValidity()}updateFormValidity(){if(this.validationMessage==null){this._internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage);let e=this.shadowRoot.querySelector("sd-field-validation-message");this.requestUpdate("validationMessage",e==null?null:e.message)}}shouldFloat(){return this.alwaysFloatLabel||this.currentText||this.placeholder||this.autocompleted||this.type==="date"}setFormValue(e){var t;(t=this._internals)==null||t.setFormValue(e)}formResetCallback(){this.value=this._initialValue}formDisabledCallback(e){this.effectiveDisabled=e||this.hasAttribute("disabled")}formAssociatedCallback(e){this._needsAutocompletedCheck=!0}formStateRestoreCallback(e,t){typeof e=="string"&&(this.value=e)}},S.ID=Me,S.DEFAULT_MAX_LENGTH=524288,S.formAssociated=!0,S.shadowRootOptions={...w.shadowRootOptions,delegatesFocus:Qt},S);b([u({type:String,reflect:!0})],m.prototype,"label",2);b([u({type:String,attribute:!0})],m.prototype,"validationMessage",2);b([u({type:String,attribute:!0})],m.prototype,"validationIconSrc",2);b([u({type:j,attribute:!0,reflect:!0})],m.prototype,"validationLevel",2);b([u({type:String,hasChanged(e,t){return t!=null&&t!=e}})],m.prototype,"currentText",2);b([u({type:Boolean,attribute:!0})],m.prototype,"alwaysFloatLabel",2);b([u({type:Boolean,attribute:!0})],m.prototype,"autocompleted",2);b([u({type:Number,attribute:!0})],m.prototype,"rows",2);b([u({type:Boolean,reflect:!0,attribute:"effective-disabled"})],m.prototype,"effectiveDisabled",2);b([u({type:Boolean,reflect:!0,attribute:"extended-prefix"})],m.prototype,"extendedPrefix",2);b([u({type:String,reflect:!0})],m.prototype,"type",2);b([u({type:String,reflect:!0})],m.prototype,"placeholder",2);b([u({type:String,reflect:!0})],m.prototype,"sdAriaLabel",2);b([u({type:Number,reflect:!0})],m.prototype,"maxlength",2);b([u({type:Boolean,reflect:!0})],m.prototype,"readonly",2);b([u({type:Boolean,reflect:!0})],m.prototype,"required",2);b([u({type:String,reflect:!0})],m.prototype,"name",2);b([u({type:Boolean,reflect:!0})],m.prototype,"inactive",2);b([u({type:String,attribute:!0})],m.prototype,"autocomplete",2);b([u({type:String,attribute:!0})],m.prototype,"min",2);b([u({type:String,attribute:!0})],m.prototype,"max",2);b([u({type:String,attribute:!0})],m.prototype,"pattern",2);var It=m;customElements.get(It.ID)||customElements.define(It.ID,It);var Le=20,Ie=1,T=1e6,te=1e6,Re=-7,De=21,Te=!1,it="[big.js] ",N=it+"Invalid ",lt=N+"decimal places",Ne=N+"rounding mode",ee=it+"Division by zero",p={},C=void 0,Oe=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function ie(){function e(t){var i=this;if(!(i instanceof e))return t===C?ie():new e(t);if(t instanceof e)i.s=t.s,i.e=t.e,i.c=t.c.slice();else{if(typeof t!="string"){if(e.strict===!0&&typeof t!="bigint")throw TypeError(N+"value");t=t===0&&1/t<0?"-0":String(t)}Ue(i,t)}i.constructor=e}return e.prototype=p,e.DP=Le,e.RM=Ie,e.NE=Re,e.PE=De,e.strict=Te,e.roundDown=0,e.roundHalfUp=1,e.roundHalfEven=2,e.roundUp=3,e}function Ue(e,t){var i,s,r;if(!Oe.test(t))throw Error(N+"number");for(e.s=t.charAt(0)=="-"?(t=t.slice(1),-1):1,(i=t.indexOf("."))>-1&&(t=t.replace(".","")),(s=t.search(/e/i))>0?(i<0&&(i=s),i+=+t.slice(s+1),t=t.substring(0,s)):i<0&&(i=t.length),r=t.length,s=0;s<r&&t.charAt(s)=="0";)++s;if(s==r)e.c=[e.e=0];else{for(;r>0&&t.charAt(--r)=="0";);for(e.e=i-s-1,e.c=[],i=0;s<=r;)e.c[i++]=+t.charAt(s++)}return e}function O(e,t,i,s){var r=e.c;if(i===C&&(i=e.constructor.RM),i!==0&&i!==1&&i!==2&&i!==3)throw Error(Ne);if(t<1)s=i===3&&(s||!!r[0])||t===0&&(i===1&&r[0]>=5||i===2&&(r[0]>5||r[0]===5&&(s||r[1]!==C))),r.length=1,s?(e.e=e.e-t+1,r[0]=1):r[0]=e.e=0;else if(t<r.length){if(s=i===1&&r[t]>=5||i===2&&(r[t]>5||r[t]===5&&(s||r[t+1]!==C||r[t-1]&1))||i===3&&(s||!!r[0]),r.length=t,s){for(;++r[--t]>9;)if(r[t]=0,t===0){++e.e,r.unshift(1);break}}for(t=r.length;!r[--t];)r.pop()}return e}function q(e,t,i){var s=e.e,r=e.c.join(""),o=r.length;if(t)r=r.charAt(0)+(o>1?"."+r.slice(1):"")+(s<0?"e":"e+")+s;else if(s<0){for(;++s;)r="0"+r;r="0."+r}else if(s>0)if(++s>o)for(s-=o;s--;)r+="0";else s<o&&(r=r.slice(0,s)+"."+r.slice(s));else o>1&&(r=r.charAt(0)+"."+r.slice(1));return e.s<0&&i?"-"+r:r}p.abs=function(){var e=new this.constructor(this);return e.s=1,e};p.cmp=function(e){var t,i=this,s=i.c,r=(e=new i.constructor(e)).c,o=i.s,n=e.s,a=i.e,l=e.e;if(!s[0]||!r[0])return s[0]?o:r[0]?-n:0;if(o!=n)return o;if(t=o<0,a!=l)return a>l^t?1:-1;for(n=(a=s.length)<(l=r.length)?a:l,o=-1;++o<n;)if(s[o]!=r[o])return s[o]>r[o]^t?1:-1;return a==l?0:a>l^t?1:-1};p.div=function(e){var t=this,i=t.constructor,s=t.c,r=(e=new i(e)).c,o=t.s==e.s?1:-1,n=i.DP;if(n!==~~n||n<0||n>T)throw Error(lt);if(!r[0])throw Error(ee);if(!s[0])return e.s=o,e.c=[e.e=0],e;var a,l,h,d,c,f=r.slice(),$=a=r.length,ct=s.length,v=s.slice(0,a),x=v.length,U=e,ut=U.c=[],dt=0,X=n+(U.e=t.e-e.e)+1;for(U.s=o,o=X<0?0:X,f.unshift(0);x++<a;)v.push(0);do{for(h=0;h<10;h++){if(a!=(x=v.length))d=a>x?1:-1;else for(c=-1,d=0;++c<a;)if(r[c]!=v[c]){d=r[c]>v[c]?1:-1;break}if(d<0){for(l=x==a?r:f;x;){if(v[--x]<l[x]){for(c=x;c&&!v[--c];)v[c]=9;--v[c],v[x]+=10}v[x]-=l[x]}for(;!v[0];)v.shift()}else break}ut[dt++]=d?h:++h,v[0]&&d?v[x]=s[$]||0:v=[s[$]]}while(($++<ct||v[0]!==C)&&o--);return!ut[0]&&dt!=1&&(ut.shift(),U.e--,X--),dt>X&&O(U,X,i.RM,v[0]!==C),U};p.eq=function(e){return this.cmp(e)===0};p.gt=function(e){return this.cmp(e)>0};p.gte=function(e){return this.cmp(e)>-1};p.lt=function(e){return this.cmp(e)<0};p.lte=function(e){return this.cmp(e)<1};p.minus=p.sub=function(e){var t,i,s,r,o=this,n=o.constructor,a=o.s,l=(e=new n(e)).s;if(a!=l)return e.s=-l,o.plus(e);var h=o.c.slice(),d=o.e,c=e.c,f=e.e;if(!h[0]||!c[0])return c[0]?e.s=-l:h[0]?e=new n(o):e.s=1,e;if(a=d-f){for((r=a<0)?(a=-a,s=h):(f=d,s=c),s.reverse(),l=a;l--;)s.push(0);s.reverse()}else for(i=((r=h.length<c.length)?h:c).length,a=l=0;l<i;l++)if(h[l]!=c[l]){r=h[l]<c[l];break}if(r&&(s=h,h=c,c=s,e.s=-e.s),(l=(i=c.length)-(t=h.length))>0)for(;l--;)h[t++]=0;for(l=t;i>a;){if(h[--i]<c[i]){for(t=i;t&&!h[--t];)h[t]=9;--h[t],h[i]+=10}h[i]-=c[i]}for(;h[--l]===0;)h.pop();for(;h[0]===0;)h.shift(),--f;return h[0]||(e.s=1,h=[f=0]),e.c=h,e.e=f,e};p.mod=function(e){var t,i=this,s=i.constructor,r=i.s,o=(e=new s(e)).s;if(!e.c[0])throw Error(ee);return i.s=e.s=1,t=e.cmp(i)==1,i.s=r,e.s=o,t?new s(i):(r=s.DP,o=s.RM,s.DP=s.RM=0,i=i.div(e),s.DP=r,s.RM=o,this.minus(i.times(e)))};p.neg=function(){var e=new this.constructor(this);return e.s=-e.s,e};p.plus=p.add=function(e){var t,i,s,r=this,o=r.constructor;if(e=new o(e),r.s!=e.s)return e.s=-e.s,r.minus(e);var n=r.e,a=r.c,l=e.e,h=e.c;if(!a[0]||!h[0])return h[0]||(a[0]?e=new o(r):e.s=r.s),e;if(a=a.slice(),t=n-l){for(t>0?(l=n,s=h):(t=-t,s=a),s.reverse();t--;)s.push(0);s.reverse()}for(a.length-h.length<0&&(s=h,h=a,a=s),t=h.length,i=0;t;a[t]%=10)i=(a[--t]=a[t]+h[t]+i)/10|0;for(i&&(a.unshift(i),++l),t=a.length;a[--t]===0;)a.pop();return e.c=a,e.e=l,e};p.pow=function(e){var t=this,i=new t.constructor("1"),s=i,r=e<0;if(e!==~~e||e<-te||e>te)throw Error(N+"exponent");for(r&&(e=-e);e&1&&(s=s.times(t)),e>>=1,!!e;)t=t.times(t);return r?i.div(s):s};p.prec=function(e,t){if(e!==~~e||e<1||e>T)throw Error(N+"precision");return O(new this.constructor(this),e,t)};p.round=function(e,t){if(e===C)e=0;else if(e!==~~e||e<-T||e>T)throw Error(lt);return O(new this.constructor(this),e+this.e+1,t)};p.sqrt=function(){var e,t,i,s=this,r=s.constructor,o=s.s,n=s.e,a=new r("0.5");if(!s.c[0])return new r(s);if(o<0)throw Error(it+"No square root");o=Math.sqrt(s+""),o===0||o===1/0?(t=s.c.join(""),t.length+n&1||(t+="0"),o=Math.sqrt(t),n=((n+1)/2|0)-(n<0||n&1),e=new r((o==1/0?"5e":(o=o.toExponential()).slice(0,o.indexOf("e")+1))+n)):e=new r(o+""),n=e.e+(r.DP+=4);do i=e,e=a.times(i.plus(s.div(i)));while(i.c.slice(0,n).join("")!==e.c.slice(0,n).join(""));return O(e,(r.DP-=4)+e.e+1,r.RM)};p.times=p.mul=function(e){var t,i=this,s=i.constructor,r=i.c,o=(e=new s(e)).c,n=r.length,a=o.length,l=i.e,h=e.e;if(e.s=i.s==e.s?1:-1,!r[0]||!o[0])return e.c=[e.e=0],e;for(e.e=l+h,n<a&&(t=r,r=o,o=t,h=n,n=a,a=h),t=new Array(h=n+a);h--;)t[h]=0;for(l=a;l--;){for(a=0,h=n+l;h>l;)a=t[h]+o[l]*r[h-l-1]+a,t[h--]=a%10,a=a/10|0;t[h]=a}for(a?++e.e:t.shift(),l=t.length;!t[--l];)t.pop();return e.c=t,e};p.toExponential=function(e,t){var i=this,s=i.c[0];if(e!==C){if(e!==~~e||e<0||e>T)throw Error(lt);for(i=O(new i.constructor(i),++e,t);i.c.length<e;)i.c.push(0)}return q(i,!0,!!s)};p.toFixed=function(e,t){var i=this,s=i.c[0];if(e!==C){if(e!==~~e||e<0||e>T)throw Error(lt);for(i=O(new i.constructor(i),e+i.e+1,t),e=e+i.e+1;i.c.length<e;)i.c.push(0)}return q(i,!1,!!s)};p[Symbol.for("nodejs.util.inspect.custom")]=p.toJSON=p.toString=function(){var e=this,t=e.constructor;return q(e,e.e<=t.NE||e.e>=t.PE,!!e.c[0])};p.toNumber=function(){var e=Number(q(this,!0,!0));if(this.constructor.strict===!0&&!this.eq(e.toString()))throw Error(it+"Imprecise conversion");return e};p.toPrecision=function(e,t){var i=this,s=i.constructor,r=i.c[0];if(e!==C){if(e!==~~e||e<1||e>T)throw Error(N+"precision");for(i=O(new s(i),e,t);i.c.length<e;)i.c.push(0)}return q(i,e<=i.e||i.e<=s.NE||i.e>=s.PE,!!r)};p.valueOf=function(){var e=this,t=e.constructor;if(t.strict===!0)throw Error(it+"valueOf disallowed");return q(e,e.e<=t.NE||e.e>=t.PE,!0)};var se=ie();var Rt=class{constructor(){this._rgbaColors=new Map,this._originalColors=new Map}get colors(){return this._originalColors}set colors(t){if(this._rgbaColors.clear(),this._originalColors=t,t&&t.size){if(Array.from(t.keys()).find(s=>s<0||s>1))throw Error("The keys of the colors must represent the relative value where the color is fully applied.");t.forEach((s,r)=>{let o=this.convertFromRGBAString(s)||this.convertFromHex(s);if(Object.keys(o).length===0&&o.constructor===Object)throw Error(`Cannot convert color: ${s} to rgba-color`);this._rgbaColors.set(r,o)});let i=Array.from(this._rgbaColors.entries()).sort();this._rgbaColors=new Map(i)}}blend(t){if(!this._rgbaColors.size)throw Error("It is not possible to blend without a color list.");let i,s;for(let o of this._rgbaColors)if(i||(i=o),o[0]<t)i=o;else if(o[0]===t){i=s=o;break}else{s=o;break}s||(s=i);let r=s[0]-i[0];return r?this.blendColors(i[1],s[1],(t-i[0])/r):this.convertToRGBAString(i[1])}blendColors(t,i,s){return this.convertToRGBAString({red:Math.round(t.red+(i.red-t.red)*s),green:Math.round(t.green+(i.green-t.green)*s),blue:Math.round(t.blue+(i.blue-t.blue)*s),alpha:t.alpha+(i.alpha-t.alpha)*s})}convertFromHex(t){let i=Mt(t);return i.alpha>1&&(i.alpha/=255),i}convertFromRGBAString(t){let i=t.match(/rgba?\((\d{1,3}), ?(\d{1,3}), ?(\d{1,3})\)?(?:, ?(\d(?:\.\d?))\))?/);return i?{red:parseInt(i[1],10),green:parseInt(i[2],10),blue:parseInt(i[3],10),alpha:parseInt(i[4],10)||1}:null}transparentize(t,i){return this.convertToRGBAString(this.convertFromRGBAString(t),i)}convertToRGBAString(t,i){return`rgba(${t.red},${t.green},${t.blue},${i||t.alpha})`}},Be=":host{display:block;position:relative;width:100%;height:48px;cursor:pointer;touch-action:none;contain:layout style}:host([hidden]){display:none!important}:host([disabled]){opacity:.6;cursor:default;filter:grayscale(100%)}:host([disabled]) sd-lit-input{opacity:1}#track-container{position:absolute;top:50%;left:0;height:2px;overflow:hidden}#track{position:absolute;width:100%;height:100%;transform-origin:left top;will-change:transform}:host(:focus) #thumb{top:11px;left:-14px;border-width:8px}#thumb[active]{top:7px!important;left:-18px!important;border-width:12px!important}#thumb{width:12px;height:12px;position:absolute;top:19px;left:-6px;border-radius:50%;border-width:0;background-clip:padding-box;-webkit-user-select:none;user-select:none;will-change:transform;border-style:solid}sd-lit-input{position:absolute;height:100%;width:var(--slider-suffix-width, 50px);right:0;text-align:center;outline:none;white-space:nowrap}sd-field-validation-message{position:absolute;bottom:0}",He=Object.defineProperty,ze=Object.getOwnPropertyDescriptor,E=(e,t,i,s)=>{for(var r=s>1?void 0:s?ze(t,i):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(r=(s?n(t,i,r):n(r))||r);return s&&r&&He(t,i,r),r},W,_=(W=class extends w{constructor(){super(),this.thumbPosition=0,this._value=0,this._relativeValue=0,this.min=0,this.max=1,this.colorBlender=new Rt,this.baseColor=W.defaultColor,this.resizeObserver=new ResizeObserver(()=>{window.requestAnimationFrame(()=>{this.lastKnownWidth!==this.trackContainerWidth&&(this.lastKnownWidth=this.trackContainerWidth,this.doUpdateRelativeValue(this._relativeValue,!0))})})}firstUpdated(e){super.firstUpdated(e),this.updateInitialValue(),this.addEventListener(this.useTouchEvents()?"touchstart":"pointerdown",t=>{!this.hasAttribute("disabled")&&t.composedPath().indexOf(this.inputElement)===-1&&(t.preventDefault(),t.pointerId&&this.setPointerCapture(t.pointerId),this.focus(),this.listenMoveEvents(t.clientX||t.changedTouches[0].clientX))}),this.addEventListener("keydown",this.handleKeyDown,!0),this.setAttribute("aria-valuemin",this.min.toString()),this.setAttribute("aria-valuemax",this.max.toString()),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0")}connectedCallback(){super.connectedCallback(),["colors","min","max","step","editable","inputSuffix","value"].forEach(e=>{this.upgradeProperty(e)}),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.lastKnownWidth=void 0,this.resizeObserver.disconnect()}upgradeProperty(e){if(Object.prototype.hasOwnProperty.call(this,e)){let t=this[e];delete this[e],this[e]=t}}updateInitialValue(){let e=Number.parseFloat(this.getAttribute("value"))||this._value;this.setValueInternal(e)&&(this.inputElement&&(this.inputElement.value=this.formattedValue()),this.fireBothValueChangeEvents())}shouldUpdate(e){return e.has("step")&&this.setValueInternal(this._value)&&this.fireBothValueChangeEvents(),super.shouldUpdate(e)}get value(){return this._value}set value(e){this.setValueInternal(e)&&this.fireBothValueChangeEvents()}roundToStep(e){let t=Number.parseFloat(e);if(Number.isNaN(t))return this._value;if(this.step){let i=se(t).div(this.step).round().mul(this.step);t=Number.parseFloat(i.toString())}return t}setValueInternal(e){let t=this.roundToStep(e);if(this._value!==t){let i=this._value;return this._value=t,this.relativeValue=(t-this.min)/(this.max-this.min),this.setAttribute("aria-valuenow",this._value.toString()),this.requestUpdate("value",i),!0}return!1}get relativeValue(){return this._relativeValue}set relativeValue(e){this._relativeValue!==e&&this.doUpdateRelativeValue(e)}doUpdateRelativeValue(e,t){this._relativeValue=e,this.thumbPosition=Math.min(Math.max(0,e),1)*this.trackContainerWidth;let i=this.min+(this.max-this.min)*this._relativeValue;this.setValueInternal(i),!t&&this.colors&&this.colors.size&&(this.baseColor=this.colorBlender.blend(this._relativeValue))}get colors(){return this.colorBlender.colors}set colors(e){this.colorBlender.colors=e,this.colors&&this.colors.size?this.baseColor=this.colorBlender.blend(this._relativeValue):this.baseColor=W.defaultColor}static get styles(){return[V`
72
75
  ${k(Be)}
73
76
  `]}render(){let e=this.colorBlender.transparentize(this.baseColor,.26),t=`background-color:${e}; right: ${this.editable?"calc(var(--slider-suffix-width, 50px) + 8px)":"0"}`,i=`transform: scaleX(${this.relativeValue}); background-color:${this.baseColor};`,s=`transform: translateX(${this.thumbPosition}px); background-color:${this.baseColor}; border-color:${e};`;return y`
74
77
  <div id="track-container" style="${t}">
@@ -91,7 +94,7 @@ var window;(window||={})["@cas-smartdesign/lit-slider"]=(()=>{var pt=Object.defi
91
94
  >
92
95
  </sd-field-validation-message>
93
96
  `}
94
- `}listenMoveEvents(e){this.active=!0,this.onPointerMove(e);let t=[],i=r=>{r.stopPropagation(),r.preventDefault(),this.onPointerMove(r.clientX||r.changedTouches&&r.changedTouches[0].clientX)},s=()=>{this.active=!1,t.forEach(r=>r.remove()),this.fireValueChange()};this.useTouchEvents()?(t.push(this.addPointerEventListener("touchmove",i)),t.push(this.addPointerEventListener("touchend",s)),t.push(this.addPointerEventListener("touchcancel",s))):(t.push(this.addPointerEventListener("pointermove",i)),t.push(this.addPointerEventListener("pointerup",s)))}onPointerMove(e){this.updateAlreadyRequested||(this.updateAlreadyRequested=!0,window.requestAnimationFrame(async()=>{this.updateAlreadyRequested=!1,this.updateThumbPosition(e);let t=this.relativeValue;this.relativeValue=this.thumbPosition/this.trackContainerWidth,this.relativeValue!==t&&(await this.updateComplete,this.fireValueChange(!0),this.active||this.fireValueChange())}))}addPointerEventListener(e,t){return window.addEventListener(e,t,!0),{remove:()=>{window.removeEventListener(e,t,!0)}}}updateThumbPosition(e){if(this.thumbPosition=Math.min(this.trackContainerWidth,Math.max(0,e-this.getBoundingClientRect().left)),this.max-this.min>1){let t=this.trackContainerWidth/(this.max-this.min),i=this.thumbPosition%t;i&&(i<t/2?this.thumbPosition-=i:this.thumbPosition+=t-i)}}onInputValueChange(e){this.value=Number(e.detail.value.replace(RegExp(this.escapedDecimalSeparator),".")),String(this.value)!==String(e.detail.value)&&(e.target.value=String(this.value))}formattedValue(){return this.value.toString().replace(/\./,this.decimalSeparatorOrDefault)}get escapedDecimalSeparator(){return this.decimalSeparatorOrDefault.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}get decimalSeparatorOrDefault(){return this.decimalSeparator||1.1.toLocaleString(this.navigatorLanguage).substring(1,2)}get navigatorLanguage(){return navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.userLanguage||navigator.language||navigator.browserLanguage||"en"}handleKeyDown(e){if(!this.hasAttribute("disabled")&&e.composedPath().indexOf(this.inputElement)===-1){let t=this.step||(this.max-this.min)/100;switch(this.max-this.min>1&&(t=Math.round(t)||1),e.keyCode){case 37:case 40:this.value=Math.max(this.value-t,this.min),e.preventDefault();break;case 38:case 39:this.value=Math.min(this.value+t,this.max),e.preventDefault();break}}}get inputElement(){return this._inputElement||(this._inputElement=this.shadowRoot.querySelector("sd-lit-input")),this._inputElement}get trackContainer(){return this._trackContainer||(this._trackContainer=this.shadowRoot.querySelector("#track-container")),this._trackContainer}get trackContainerWidth(){return this.trackContainer&&this.trackContainer.offsetWidth}fireBothValueChangeEvents(){this.fireValueChange(!0),this.fireValueChange()}fireValueChange(e){this.dispatchEvent(new CustomEvent(`${e?"immediate-":""}value-change`,{detail:{value:this.value}}))}useTouchEvents(){return this.hasAttribute("use-touch-events")}},W.ID="sd-lit-slider",W.defaultColor="rgb(20, 103, 186)",W);E([u({type:Number})],_.prototype,"thumbPosition",2);E([u({type:Number,reflect:!0})],_.prototype,"min",2);E([u({type:Number,reflect:!0})],_.prototype,"max",2);E([u({type:Number,reflect:!0})],_.prototype,"step",2);E([u({type:Boolean,reflect:!0})],_.prototype,"editable",2);E([u({type:String,reflect:!0})],_.prototype,"inputSuffix",2);E([u({type:Boolean,reflect:!0})],_.prototype,"disabled",2);E([u({type:String,attribute:!0})],_.prototype,"validationMessage",2);E([u({type:String,attribute:!0})],_.prototype,"validationIconSrc",2);E([u({type:String,attribute:!0})],_.prototype,"validationLevel",2);E([u({type:String,attribute:!0})],_.prototype,"decimalSeparator",2);E([u({type:Boolean})],_.prototype,"active",2);E([u()],_.prototype,"baseColor",2);var ht=_;customElements.get(ht.ID)||customElements.define(ht.ID,ht);return he(je);})();
97
+ `}listenMoveEvents(e){this.active=!0,this.onPointerMove(e);let t=[],i=r=>{r.stopPropagation(),r.preventDefault(),this.onPointerMove(r.clientX||r.changedTouches&&r.changedTouches[0].clientX)},s=()=>{this.active=!1,t.forEach(r=>r.remove()),this.fireValueChange()};this.useTouchEvents()?(t.push(this.addPointerEventListener("touchmove",i)),t.push(this.addPointerEventListener("touchend",s)),t.push(this.addPointerEventListener("touchcancel",s))):(t.push(this.addPointerEventListener("pointermove",i)),t.push(this.addPointerEventListener("pointerup",s)))}onPointerMove(e){this.updateAlreadyRequested||(this.updateAlreadyRequested=!0,window.requestAnimationFrame(async()=>{this.updateAlreadyRequested=!1,this.updateThumbPosition(e);let t=this.relativeValue;this.relativeValue=this.thumbPosition/this.trackContainerWidth,this.relativeValue!==t&&(await this.updateComplete,this.fireValueChange(!0),this.active||this.fireValueChange())}))}addPointerEventListener(e,t){return window.addEventListener(e,t,!0),{remove:()=>{window.removeEventListener(e,t,!0)}}}updateThumbPosition(e){if(this.thumbPosition=Math.min(this.trackContainerWidth,Math.max(0,e-this.getBoundingClientRect().left)),this.max-this.min>1){let t=this.trackContainerWidth/(this.max-this.min),i=this.thumbPosition%t;i&&(i<t/2?this.thumbPosition-=i:this.thumbPosition+=t-i)}}onInputValueChange(e){this.value=Number(e.detail.value.replace(RegExp(this.escapedDecimalSeparator),".")),String(this.value)!==String(e.detail.value)&&(e.target.value=String(this.value))}formattedValue(){return this.value.toString().replace(/\./,this.decimalSeparatorOrDefault)}get escapedDecimalSeparator(){return this.decimalSeparatorOrDefault.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}get decimalSeparatorOrDefault(){return this.decimalSeparator||1.1.toLocaleString(this.navigatorLanguage).substring(1,2)}get navigatorLanguage(){return navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.userLanguage||navigator.language||navigator.browserLanguage||"en"}handleKeyDown(e){if(!this.hasAttribute("disabled")&&e.composedPath().indexOf(this.inputElement)===-1){let t=this.step||(this.max-this.min)/100;switch(this.max-this.min>1&&(t=Math.round(t)||1),e.keyCode){case 37:case 40:this.value=Math.max(this.value-t,this.min),e.preventDefault();break;case 38:case 39:this.value=Math.min(this.value+t,this.max),e.preventDefault();break}}}get inputElement(){return this._inputElement||(this._inputElement=this.shadowRoot.querySelector("sd-lit-input")),this._inputElement}get trackContainer(){return this._trackContainer||(this._trackContainer=this.shadowRoot.querySelector("#track-container")),this._trackContainer}get trackContainerWidth(){return this.trackContainer&&this.trackContainer.offsetWidth}fireBothValueChangeEvents(){this.fireValueChange(!0),this.fireValueChange()}fireValueChange(e){this.dispatchEvent(new CustomEvent(`${e?"immediate-":""}value-change`,{detail:{value:this.value}}))}useTouchEvents(){return this.hasAttribute("use-touch-events")}},W.ID="sd-lit-slider",W.defaultColor="rgb(20, 103, 186)",W);E([u({type:Number})],_.prototype,"thumbPosition",2);E([u({type:Number,reflect:!0})],_.prototype,"min",2);E([u({type:Number,reflect:!0})],_.prototype,"max",2);E([u({type:Number,reflect:!0})],_.prototype,"step",2);E([u({type:Boolean,reflect:!0})],_.prototype,"editable",2);E([u({type:String,reflect:!0})],_.prototype,"inputSuffix",2);E([u({type:Boolean,reflect:!0})],_.prototype,"disabled",2);E([u({type:String,attribute:!0})],_.prototype,"validationMessage",2);E([u({type:String,attribute:!0})],_.prototype,"validationIconSrc",2);E([u({type:String,attribute:!0})],_.prototype,"validationLevel",2);E([u({type:String,attribute:!0})],_.prototype,"decimalSeparator",2);E([u({type:Boolean})],_.prototype,"active",2);E([u()],_.prototype,"baseColor",2);var ht=_;customElements.get(ht.ID)||customElements.define(ht.ID,ht);return he(Fe);})();
95
98
  /*! Bundled license information:
96
99
 
97
100
  @lit/reactive-element/css-tag.js: