@cas-smartdesign/lit-slider 7.2.2 → 7.2.3

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.
package/dist/docs/doc.mjs CHANGED
@@ -422,7 +422,7 @@ document.querySelectorAll("[validate-it] sd-lit-slider").forEach((slider: Slider
422
422
  >
423
423
  </sd-field-validation-message>
424
424
  `}
425
- `}listenMoveEvents(e){this.active=!0,this.onPointerMove(e);const i=[],r=s=>{s.stopPropagation(),s.preventDefault(),this.onPointerMove(s.clientX||s.changedTouches&&s.changedTouches[0].clientX)},n=()=>{this.active=!1,i.forEach(s=>s.remove()),this.fireValueChange()};this.useTouchEvents()?(i.push(this.addPointerEventListener("touchmove",r)),i.push(this.addPointerEventListener("touchend",n)),i.push(this.addPointerEventListener("touchcancel",n))):(i.push(this.addPointerEventListener("pointermove",r)),i.push(this.addPointerEventListener("pointerup",n)))}onPointerMove(e){this.updateAlreadyRequested||(this.updateAlreadyRequested=!0,window.requestAnimationFrame(async()=>{this.updateAlreadyRequested=!1,this.updateThumbPosition(e);const i=this.relativeValue;this.relativeValue=this.thumbPosition/this.trackContainerWidth,this.relativeValue!==i&&(await this.updateComplete,this.fireValueChange(!0),this.active||this.fireValueChange())}))}addPointerEventListener(e,i){return window.addEventListener(e,i,!0),{remove:()=>{window.removeEventListener(e,i,!0)}}}updateThumbPosition(e){if(this.thumbPosition=Math.min(this.trackContainerWidth,Math.max(0,e-this.getBoundingClientRect().left)),this.max-this.min>1){const i=this.trackContainerWidth/(this.max-this.min),r=this.thumbPosition%i;r&&(r<i/2?this.thumbPosition-=r:this.thumbPosition+=i-r)}}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 i=this.step||(this.max-this.min)/100;switch(this.max-this.min>1&&(i=Math.round(i)||1),e.keyCode){case 37:case 40:this.value=Math.max(this.value-i,this.min),e.preventDefault();break;case 38:case 39:this.value=Math.min(this.value+i,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")}},Se.ID="sd-lit-slider",Se.defaultColor="rgb(20, 103, 186)",Se);de([q({type:Number})],ce.prototype,"thumbPosition");de([q({type:Number,reflect:!0})],ce.prototype,"min");de([q({type:Number,reflect:!0})],ce.prototype,"max");de([q({type:Number,reflect:!0})],ce.prototype,"step");de([q({type:Boolean,reflect:!0})],ce.prototype,"editable");de([q({type:Boolean,reflect:!0})],ce.prototype,"clampValue");de([q({type:String,reflect:!0})],ce.prototype,"inputSuffix");de([q({type:Boolean,reflect:!0})],ce.prototype,"disabled");de([q({type:String,attribute:!0})],ce.prototype,"validationMessage");de([q({type:String,attribute:!0})],ce.prototype,"validationIconSrc");de([q({type:String,attribute:!0})],ce.prototype,"validationLevel");de([q({type:String,attribute:!0})],ce.prototype,"decimalSeparator");de([q({type:Boolean})],ce.prototype,"active");de([q()],ce.prototype,"baseColor");let Qt=ce;customElements.get(Qt.ID)||customElements.define(Qt.ID,Qt);function ir(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function yo(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var i=function r(){var n=!1;try{n=this instanceof r}catch{}return n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};i.prototype=e.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(i,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}),i}var xt={exports:{}},yn;function wo(){if(yn)return xt.exports;yn=1;var t=String,e=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t,blackBright:t,redBright:t,greenBright:t,yellowBright:t,blueBright:t,magentaBright:t,cyanBright:t,whiteBright:t,bgBlackBright:t,bgRedBright:t,bgGreenBright:t,bgYellowBright:t,bgBlueBright:t,bgMagentaBright:t,bgCyanBright:t,bgWhiteBright:t}};return xt.exports=e(),xt.exports.createColors=e,xt.exports}const xo={},Eo=Object.freeze(Object.defineProperty({__proto__:null,default:xo},Symbol.toStringTag,{value:"Module"})),be=yo(Eo);var ei,wn;function Ii(){if(wn)return ei;wn=1;let t=wo(),e=be;class i extends Error{constructor(n,s,a,d,g,h){super(n),this.name="CssSyntaxError",this.reason=n,g&&(this.file=g),d&&(this.source=d),h&&(this.plugin=h),typeof s<"u"&&typeof a<"u"&&(typeof s=="number"?(this.line=s,this.column=a):(this.line=s.line,this.column=s.column,this.endLine=a.line,this.endColumn=a.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,i)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(n){if(!this.source)return"";let s=this.source;n==null&&(n=t.isColorSupported);let a=u=>u,d=u=>u,g=u=>u;if(n){let{bold:u,gray:p,red:f}=t.createColors(!0);d=b=>u(f(b)),a=b=>p(b),e&&(g=b=>e(b))}let h=s.split(/\r?\n/),o=Math.max(this.line-3,0),l=Math.min(this.line+2,h.length),c=String(l).length;return h.slice(o,l).map((u,p)=>{let f=o+1+p,b=" "+(" "+f).slice(-c)+" | ";if(f===this.line){if(u.length>160){let _=20,w=Math.max(0,this.column-_),y=Math.max(this.column+_,this.endColumn+_),v=u.slice(w,y),S=a(b.replace(/\d/g," "))+u.slice(0,Math.min(this.column-1,_-1)).replace(/[^\t]/g," ");return d(">")+a(b)+g(v)+`
425
+ `}listenMoveEvents(e){this.active=!0,this.onPointerMove(e);const i=[],r=s=>{s.stopPropagation(),s.preventDefault(),this.onPointerMove(s.clientX||s.changedTouches&&s.changedTouches[0].clientX)},n=()=>{this.active=!1,i.forEach(s=>s.remove()),this.fireValueChange()};this.useTouchEvents()?(i.push(this.addPointerEventListener("touchmove",r)),i.push(this.addPointerEventListener("touchend",n)),i.push(this.addPointerEventListener("touchcancel",n))):(i.push(this.addPointerEventListener("pointermove",r)),i.push(this.addPointerEventListener("pointerup",n)))}onPointerMove(e){this.updateAlreadyRequested||(this.updateAlreadyRequested=!0,window.requestAnimationFrame(async()=>{this.updateAlreadyRequested=!1,this.updateThumbPosition(e);const i=this.relativeValue;this.relativeValue=this.thumbPosition/this.trackContainerWidth,this.relativeValue!==i&&(await this.updateComplete,this.fireValueChange(!0),this.active||this.fireValueChange())}))}addPointerEventListener(e,i){return window.addEventListener(e,i,!0),{remove:()=>{window.removeEventListener(e,i,!0)}}}updateThumbPosition(e){if(this.thumbPosition=Math.min(this.trackContainerWidth,Math.max(0,Math.round(e-this.getBoundingClientRect().left))),this.max-this.min>1){const i=this.trackContainerWidth/(this.max-this.min);this.thumbPosition%i&&(this.thumbPosition=Math.round(Math.ceil(this.thumbPosition/i)*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 i=this.step||(this.max-this.min)/100;switch(this.max-this.min>1&&(i=Math.round(i)||1),e.keyCode){case 37:case 40:this.value=Math.max(this.value-i,this.min),e.preventDefault();break;case 38:case 39:this.value=Math.min(this.value+i,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")}},Se.ID="sd-lit-slider",Se.defaultColor="rgb(20, 103, 186)",Se);de([q({type:Number})],ce.prototype,"thumbPosition");de([q({type:Number,reflect:!0})],ce.prototype,"min");de([q({type:Number,reflect:!0})],ce.prototype,"max");de([q({type:Number,reflect:!0})],ce.prototype,"step");de([q({type:Boolean,reflect:!0})],ce.prototype,"editable");de([q({type:Boolean,reflect:!0})],ce.prototype,"clampValue");de([q({type:String,reflect:!0})],ce.prototype,"inputSuffix");de([q({type:Boolean,reflect:!0})],ce.prototype,"disabled");de([q({type:String,attribute:!0})],ce.prototype,"validationMessage");de([q({type:String,attribute:!0})],ce.prototype,"validationIconSrc");de([q({type:String,attribute:!0})],ce.prototype,"validationLevel");de([q({type:String,attribute:!0})],ce.prototype,"decimalSeparator");de([q({type:Boolean})],ce.prototype,"active");de([q()],ce.prototype,"baseColor");let Qt=ce;customElements.get(Qt.ID)||customElements.define(Qt.ID,Qt);function ir(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function yo(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var i=function r(){var n=!1;try{n=this instanceof r}catch{}return n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};i.prototype=e.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(i,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}),i}var xt={exports:{}},yn;function wo(){if(yn)return xt.exports;yn=1;var t=String,e=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t,blackBright:t,redBright:t,greenBright:t,yellowBright:t,blueBright:t,magentaBright:t,cyanBright:t,whiteBright:t,bgBlackBright:t,bgRedBright:t,bgGreenBright:t,bgYellowBright:t,bgBlueBright:t,bgMagentaBright:t,bgCyanBright:t,bgWhiteBright:t}};return xt.exports=e(),xt.exports.createColors=e,xt.exports}const xo={},Eo=Object.freeze(Object.defineProperty({__proto__:null,default:xo},Symbol.toStringTag,{value:"Module"})),be=yo(Eo);var ei,wn;function Ii(){if(wn)return ei;wn=1;let t=wo(),e=be;class i extends Error{constructor(n,s,a,d,g,h){super(n),this.name="CssSyntaxError",this.reason=n,g&&(this.file=g),d&&(this.source=d),h&&(this.plugin=h),typeof s<"u"&&typeof a<"u"&&(typeof s=="number"?(this.line=s,this.column=a):(this.line=s.line,this.column=s.column,this.endLine=a.line,this.endColumn=a.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,i)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(n){if(!this.source)return"";let s=this.source;n==null&&(n=t.isColorSupported);let a=u=>u,d=u=>u,g=u=>u;if(n){let{bold:u,gray:p,red:f}=t.createColors(!0);d=b=>u(f(b)),a=b=>p(b),e&&(g=b=>e(b))}let h=s.split(/\r?\n/),o=Math.max(this.line-3,0),l=Math.min(this.line+2,h.length),c=String(l).length;return h.slice(o,l).map((u,p)=>{let f=o+1+p,b=" "+(" "+f).slice(-c)+" | ";if(f===this.line){if(u.length>160){let _=20,w=Math.max(0,this.column-_),y=Math.max(this.column+_,this.endColumn+_),v=u.slice(w,y),S=a(b.replace(/\d/g," "))+u.slice(0,Math.min(this.column-1,_-1)).replace(/[^\t]/g," ");return d(">")+a(b)+g(v)+`
426
426
  `+S+d("^")}let x=a(b.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return d(">")+a(b)+g(u)+`
427
427
  `+x+d("^")}return" "+a(b)+g(u)}).join(`
428
428
  `)}toString(){let n=this.showSourceCode();return n&&(n=`
@@ -1,9 +1,9 @@
1
- var window;(window||={})["@cas-smartdesign/lit-slider"]=(()=>{var ft=Object.defineProperty;var Yt=Object.getOwnPropertyDescriptor;var Qt=Object.getOwnPropertyNames;var te=Object.prototype.hasOwnProperty;var ee=(e,t)=>{for(var i in t)ft(e,i,{get:t[i],enumerable:!0})},ie=(e,t,i,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Qt(t))!te.call(e,r)&&r!==i&&ft(e,r,{get:()=>t[r],enumerable:!(s=Yt(t,r))||s.enumerable});return e};var se=e=>ie(ft({},"__esModule",{value:!0}),e);var ze={};ee(ze,{default:()=>ut});var ot=globalThis,nt=ot.ShadowRoot&&(ot.ShadyCSS===void 0||ot.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,vt=Symbol(),Dt=new WeakMap,X=class{constructor(t,i,s){if(this._$cssResult$=!0,s!==vt)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(nt&&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}},M=e=>new X(typeof e=="string"?e:e+"",void 0,vt),R=(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 X(i,e,vt)},Vt=(e,t)=>{if(nt)e.adoptedStyleSheets=t.map((i=>i instanceof CSSStyleSheet?i:i.styleSheet));else for(let i of t){let s=document.createElement("style"),r=ot.litNonce;r!==void 0&&s.setAttribute("nonce",r),s.textContent=i.cssText,e.appendChild(s)}},mt=nt?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let i="";for(let s of t.cssRules)i+=s.cssText;return M(i)})(e):e;var{is:re,defineProperty:oe,getOwnPropertyDescriptor:ne,getOwnPropertyNames:ae,getOwnPropertySymbols:le,getPrototypeOf:he}=Object,at=globalThis,Lt=at.trustedTypes,ce=Lt?Lt.emptyScript:"",ue=at.reactiveElementPolyfillSupport,G=(e,t)=>e,K={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}},lt=(e,t)=>!re(e,t),Tt={attribute:!0,type:String,converter:K,reflect:!1,useDefault:!1,hasChanged:lt};Symbol.metadata??=Symbol("metadata"),at.litPropertyMetadata??=new WeakMap;var P=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,i=Tt){if(i.state&&(i.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((i=Object.create(i)).wrapped=!0),this.elementProperties.set(t,i),!i.noAccessor){let s=Symbol(),r=this.getPropertyDescriptor(t,s,i);r!==void 0&&oe(this.prototype,t,r)}}static getPropertyDescriptor(t,i,s){let{get:r,set:o}=ne(this.prototype,t)??{get(){return this[i]},set(n){this[i]=n}};return{get:r,set(n){let a=r?.call(this);o?.call(this,n),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Tt}static _$Ei(){if(this.hasOwnProperty(G("elementProperties")))return;let t=he(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(G("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(G("properties"))){let i=this.properties,s=[...ae(i),...le(i)];for(let r of s)this.createProperty(r,i[r])}let t=this[Symbol.metadata];if(t!==null){let i=litPropertyMetadata.get(t);if(i!==void 0)for(let[s,r]of i)this.elementProperties.set(s,r)}this._$Eh=new Map;for(let[i,s]of this.elementProperties){let r=this._$Eu(i,s);r!==void 0&&this._$Eh.set(r,i)}this.elementStyles=this.finalizeStyles(this.styles)}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(mt(r))}else t!==void 0&&i.push(mt(t));return i}static _$Eu(t,i){let s=i.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,i=this.constructor.elementProperties;for(let s of i.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Vt(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,i,s){this._$AK(t,s)}_$ET(t,i){let s=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,s);if(r!==void 0&&s.reflect===!0){let o=(s.converter?.toAttribute!==void 0?s.converter:K).toAttribute(i,s.type);this._$Em=t,o==null?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}_$AK(t,i){let s=this.constructor,r=s._$Eh.get(t);if(r!==void 0&&this._$Em!==r){let o=s.getPropertyOptions(r),n=typeof o.converter=="function"?{fromAttribute:o.converter}:o.converter?.fromAttribute!==void 0?o.converter:K;this._$Em=r;let a=n.fromAttribute(i,o.type);this[r]=a??this._$Ej?.get(r)??a,this._$Em=null}}requestUpdate(t,i,s){if(t!==void 0){let r=this.constructor,o=this[t];if(s??=r.getPropertyOptions(t),!((s.hasChanged??lt)(o,i)||s.useDefault&&s.reflect&&o===this._$Ej?.get(t)&&!this.hasAttribute(r._$Eu(t,s))))return;this.C(t,i,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,i,{useDefault:s,reflect:r,wrapped:o},n){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??i??this[t]),o!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(i=void 0),this._$AL.set(t,i)),r===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[r,o]of this._$Ep)this[r]=o;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[r,o]of s){let{wrapped:n}=o,a=this[r];n!==!0||this._$AL.has(r)||a===void 0||this.C(r,void 0,o,a)}}let t=!1,i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),this._$EO?.forEach((s=>s.hostUpdate?.())),this.update(i)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(i)}willUpdate(t){}_$AE(t){this._$EO?.forEach((i=>i.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((i=>this._$ET(i,this[i]))),this._$EM()}updated(t){}firstUpdated(t){}};P.elementStyles=[],P.shadowRootOptions={mode:"open"},P[G("elementProperties")]=new Map,P[G("finalized")]=new Map,ue?.({ReactiveElement:P}),(at.reactiveElementVersions??=[]).push("2.1.1");var Et=globalThis,ht=Et.trustedTypes,It=ht?ht.createPolicy("lit-html",{createHTML:e=>e}):void 0,zt="$lit$",k=`lit$${Math.random().toFixed(9).slice(2)}$`,qt="?"+k,de=`<${qt}>`,L=document,Z=()=>L.createComment(""),Y=e=>e===null||typeof e!="object"&&typeof e!="function",xt=Array.isArray,pe=e=>xt(e)||typeof e?.[Symbol.iterator]=="function",gt=`[
1
+ var window;(window||={})["@cas-smartdesign/lit-slider"]=(()=>{var ft=Object.defineProperty;var Yt=Object.getOwnPropertyDescriptor;var Qt=Object.getOwnPropertyNames;var te=Object.prototype.hasOwnProperty;var ee=(e,t)=>{for(var i in t)ft(e,i,{get:t[i],enumerable:!0})},ie=(e,t,i,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Qt(t))!te.call(e,r)&&r!==i&&ft(e,r,{get:()=>t[r],enumerable:!(s=Yt(t,r))||s.enumerable});return e};var se=e=>ie(ft({},"__esModule",{value:!0}),e);var ze={};ee(ze,{default:()=>ut});var ot=globalThis,nt=ot.ShadowRoot&&(ot.ShadyCSS===void 0||ot.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,vt=Symbol(),Dt=new WeakMap,X=class{constructor(t,i,s){if(this._$cssResult$=!0,s!==vt)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(nt&&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}},P=e=>new X(typeof e=="string"?e:e+"",void 0,vt),R=(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 X(i,e,vt)},Vt=(e,t)=>{if(nt)e.adoptedStyleSheets=t.map((i=>i instanceof CSSStyleSheet?i:i.styleSheet));else for(let i of t){let s=document.createElement("style"),r=ot.litNonce;r!==void 0&&s.setAttribute("nonce",r),s.textContent=i.cssText,e.appendChild(s)}},mt=nt?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let i="";for(let s of t.cssRules)i+=s.cssText;return P(i)})(e):e;var{is:re,defineProperty:oe,getOwnPropertyDescriptor:ne,getOwnPropertyNames:ae,getOwnPropertySymbols:le,getPrototypeOf:he}=Object,at=globalThis,Lt=at.trustedTypes,ce=Lt?Lt.emptyScript:"",ue=at.reactiveElementPolyfillSupport,G=(e,t)=>e,K={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}},lt=(e,t)=>!re(e,t),Tt={attribute:!0,type:String,converter:K,reflect:!1,useDefault:!1,hasChanged:lt};Symbol.metadata??=Symbol("metadata"),at.litPropertyMetadata??=new WeakMap;var M=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,i=Tt){if(i.state&&(i.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((i=Object.create(i)).wrapped=!0),this.elementProperties.set(t,i),!i.noAccessor){let s=Symbol(),r=this.getPropertyDescriptor(t,s,i);r!==void 0&&oe(this.prototype,t,r)}}static getPropertyDescriptor(t,i,s){let{get:r,set:o}=ne(this.prototype,t)??{get(){return this[i]},set(n){this[i]=n}};return{get:r,set(n){let a=r?.call(this);o?.call(this,n),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Tt}static _$Ei(){if(this.hasOwnProperty(G("elementProperties")))return;let t=he(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(G("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(G("properties"))){let i=this.properties,s=[...ae(i),...le(i)];for(let r of s)this.createProperty(r,i[r])}let t=this[Symbol.metadata];if(t!==null){let i=litPropertyMetadata.get(t);if(i!==void 0)for(let[s,r]of i)this.elementProperties.set(s,r)}this._$Eh=new Map;for(let[i,s]of this.elementProperties){let r=this._$Eu(i,s);r!==void 0&&this._$Eh.set(r,i)}this.elementStyles=this.finalizeStyles(this.styles)}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(mt(r))}else t!==void 0&&i.push(mt(t));return i}static _$Eu(t,i){let s=i.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,i=this.constructor.elementProperties;for(let s of i.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Vt(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,i,s){this._$AK(t,s)}_$ET(t,i){let s=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,s);if(r!==void 0&&s.reflect===!0){let o=(s.converter?.toAttribute!==void 0?s.converter:K).toAttribute(i,s.type);this._$Em=t,o==null?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}_$AK(t,i){let s=this.constructor,r=s._$Eh.get(t);if(r!==void 0&&this._$Em!==r){let o=s.getPropertyOptions(r),n=typeof o.converter=="function"?{fromAttribute:o.converter}:o.converter?.fromAttribute!==void 0?o.converter:K;this._$Em=r;let a=n.fromAttribute(i,o.type);this[r]=a??this._$Ej?.get(r)??a,this._$Em=null}}requestUpdate(t,i,s){if(t!==void 0){let r=this.constructor,o=this[t];if(s??=r.getPropertyOptions(t),!((s.hasChanged??lt)(o,i)||s.useDefault&&s.reflect&&o===this._$Ej?.get(t)&&!this.hasAttribute(r._$Eu(t,s))))return;this.C(t,i,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,i,{useDefault:s,reflect:r,wrapped:o},n){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??i??this[t]),o!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(i=void 0),this._$AL.set(t,i)),r===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[r,o]of this._$Ep)this[r]=o;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[r,o]of s){let{wrapped:n}=o,a=this[r];n!==!0||this._$AL.has(r)||a===void 0||this.C(r,void 0,o,a)}}let t=!1,i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),this._$EO?.forEach((s=>s.hostUpdate?.())),this.update(i)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(i)}willUpdate(t){}_$AE(t){this._$EO?.forEach((i=>i.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((i=>this._$ET(i,this[i]))),this._$EM()}updated(t){}firstUpdated(t){}};M.elementStyles=[],M.shadowRootOptions={mode:"open"},M[G("elementProperties")]=new Map,M[G("finalized")]=new Map,ue?.({ReactiveElement:M}),(at.reactiveElementVersions??=[]).push("2.1.1");var Et=globalThis,ht=Et.trustedTypes,It=ht?ht.createPolicy("lit-html",{createHTML:e=>e}):void 0,zt="$lit$",k=`lit$${Math.random().toFixed(9).slice(2)}$`,qt="?"+k,de=`<${qt}>`,L=document,Z=()=>L.createComment(""),Y=e=>e===null||typeof e!="object"&&typeof e!="function",xt=Array.isArray,pe=e=>xt(e)||typeof e?.[Symbol.iterator]=="function",gt=`[
2
2
  \f\r]`,J=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ot=/-->/g,Nt=/>/g,D=RegExp(`>|${gt}(?:([^\\s"'>=/]+)(${gt}*=${gt}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ut=/'/g,Bt=/"/g,Ft=/^(?:script|style|textarea|title)$/i,At=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),y=At(1),Ge=At(2),Ke=At(3),T=Symbol.for("lit-noChange"),v=Symbol.for("lit-nothing"),Ht=new WeakMap,V=L.createTreeWalker(L,129);function jt(e,t){if(!xt(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return It!==void 0?It.createHTML(t):t}var fe=(e,t)=>{let i=e.length-1,s=[],r,o=t===2?"<svg>":t===3?"<math>":"",n=J;for(let a=0;a<i;a++){let l=e[a],h,p,c=-1,g=0;for(;g<l.length&&(n.lastIndex=g,p=n.exec(l),p!==null);)g=n.lastIndex,n===J?p[1]==="!--"?n=Ot:p[1]!==void 0?n=Nt:p[2]!==void 0?(Ft.test(p[2])&&(r=RegExp("</"+p[2],"g")),n=D):p[3]!==void 0&&(n=D):n===D?p[0]===">"?(n=r??J,c=-1):p[1]===void 0?c=-2:(c=n.lastIndex-p[2].length,h=p[1],n=p[3]===void 0?D:p[3]==='"'?Bt:Ut):n===Bt||n===Ut?n=D:n===Ot||n===Nt?n=J:(n=D,r=void 0);let E=n===D&&e[a+1].startsWith("/>")?" ":"";o+=n===J?l+de:c>=0?(s.push(h),l.slice(0,c)+zt+l.slice(c)+k+E):l+k+(c===-2?a:E)}return[jt(e,o+(e[i]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},Q=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,p]=fe(t,i);if(this.el=e.createElement(h,s),V.currentNode=this.el.content,i===2||i===3){let c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(r=V.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(let c of r.getAttributeNames())if(c.endsWith(zt)){let g=p[n++],E=r.getAttribute(c).split(k),B=/([.?@])?(.*)/.exec(g);l.push({type:1,index:o,name:B[2],strings:E,ctor:B[1]==="."?$t:B[1]==="?"?yt:B[1]==="@"?_t:q}),r.removeAttribute(c)}else c.startsWith(k)&&(l.push({type:6,index:o}),r.removeAttribute(c));if(Ft.test(r.tagName)){let c=r.textContent.split(k),g=c.length-1;if(g>0){r.textContent=ht?ht.emptyScript:"";for(let E=0;E<g;E++)r.append(c[E],Z()),V.nextNode(),l.push({type:2,index:++o});r.append(c[g],Z())}}}else if(r.nodeType===8)if(r.data===qt)l.push({type:2,index:o});else{let c=-1;for(;(c=r.data.indexOf(k,c+1))!==-1;)l.push({type:7,index:o}),c+=k.length-1}o++}}static createElement(t,i){let s=L.createElement("template");return s.innerHTML=t,s}};function z(e,t,i=e,s){if(t===T)return t;let r=s!==void 0?i._$Co?.[s]:i._$Cl,o=Y(t)?void 0:t._$litDirective$;return r?.constructor!==o&&(r?._$AO?.(!1),o===void 0?r=void 0:(r=new o(e),r._$AT(e,i,s)),s!==void 0?(i._$Co??=[])[s]=r:i._$Cl=r),r!==void 0&&(t=z(e,r._$AS(e,t.values),r,s)),t}var bt=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){let{el:{content:i},parts:s}=this._$AD,r=(t?.creationScope??L).importNode(i,!0);V.currentNode=r;let o=V.nextNode(),n=0,a=0,l=s[0];for(;l!==void 0;){if(n===l.index){let h;l.type===2?h=new tt(o,o.nextSibling,this,t):l.type===1?h=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(h=new wt(o,this,t)),this._$AV.push(h),l=s[++a]}n!==l?.index&&(o=V.nextNode(),n++)}return V.currentNode=L,r}p(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++}},tt=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,r){this.type=2,this._$AH=v,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=r,this._$Cv=r?.isConnected??!0}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=z(this,t,i),Y(t)?t===v||t==null||t===""?(this._$AH!==v&&this._$AR(),this._$AH=v):t!==this._$AH&&t!==T&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):pe(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==v&&Y(this._$AH)?this._$AA.nextSibling.data=t:this.T(L.createTextNode(t)),this._$AH=t}$(t){let{values:i,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=Q.createElement(jt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===r)this._$AH.p(i);else{let o=new bt(r,this),n=o.u(this.options);o.p(i),this.T(n),this._$AH=o}}_$AC(t){let i=Ht.get(t.strings);return i===void 0&&Ht.set(t.strings,i=new Q(t)),i}k(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.O(Z()),this.O(Z()),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){for(this._$AP?.(!1,!0,i);t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},q=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,r,o){this.type=1,this._$AH=v,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=v}_$AI(t,i=this,s,r){let o=this.strings,n=!1;if(o===void 0)t=z(this,t,i,0),n=!Y(t)||t!==this._$AH&&t!==T,n&&(this._$AH=t);else{let a=t,l,h;for(t=o[0],l=0;l<o.length-1;l++)h=z(this,a[s+l],i,l),h===T&&(h=this._$AH[l]),n||=!Y(h)||h!==this._$AH[l],h===v?t=v:t!==v&&(t+=(h??"")+o[l+1]),this._$AH[l]=h}n&&!r&&this.j(t)}j(t){t===v?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},$t=class extends q{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===v?void 0:t}},yt=class extends q{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==v)}},_t=class extends q{constructor(t,i,s,r,o){super(t,i,s,r,o),this.type=5}_$AI(t,i=this){if((t=z(this,t,i,0)??v)===T)return;let s=this._$AH,r=t===v&&s!==v||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==v&&(s===v||r);r&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},wt=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){z(this,t)}};var ve=Et.litHtmlPolyfillSupport;ve?.(Q,tt),(Et.litHtmlVersions??=[]).push("3.3.1");var Wt=(e,t,i)=>{let s=i?.renderBefore??t,r=s._$litPart$;if(r===void 0){let o=i?.renderBefore??null;s._$litPart$=r=new tt(t.insertBefore(Z(),o),o,void 0,i??{})}return r._$AI(e),r};var St=globalThis,w=class extends P{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Wt(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return T}};w._$litElement$=!0,w.finalized=!0,St.litElementHydrateSupport?.({LitElement:w});var me=St.litElementPolyfillSupport;me?.({LitElement:w});(St.litElementVersions??=[]).push("4.2.1");var ge={attribute:!0,type:String,converter:K,reflect:!1,hasChanged:lt},be=(e=ge,t,i)=>{let{kind:s,metadata:r}=i,o=globalThis.litPropertyMetadata.get(r);if(o===void 0&&globalThis.litPropertyMetadata.set(r,o=new Map),s==="setter"&&((e=Object.create(e)).wrapped=!0),o.set(i.name,e),s==="accessor"){let{name:n}=i;return{set(a){let l=t.get.call(this);t.set.call(this,a),this.requestUpdate(n,l,e)},init(a){return a!==void 0&&this.C(n,void 0,e,a),a}}}if(s==="setter"){let{name:n}=i;return function(a){let l=this[n];t.call(this,a),this.requestUpdate(n,l,e)}}throw Error("Unsupported decorator location: "+s)};function u(e){return(t,i)=>typeof i=="object"?be(e,t,i):((s,r,o)=>{let n=r.hasOwnProperty(o);return r.constructor.createProperty(o,s),n?Object.getOwnPropertyDescriptor(r,o):void 0})(e,t,i)}var et="a-f\\d",$e=`#?[${et}]{3}[${et}]?`,ye=`#?[${et}]{6}([${et}]{2})?`,_e=new RegExp(`[^#${et}]`,"gi"),we=new RegExp(`^${$e}$|^${ye}$`,"i");function Ct(e,t={}){if(typeof e!="string"||_e.test(e)||!we.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??v;var Ee=":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}",xe="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",Ae="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",Se="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",Ce=Object.defineProperty,Mt=(e,t,i,s)=>{for(var r=void 0,o=e.length-1,n;o>=0;o--)(n=e[o])&&(r=n(t,i,r)||r);return r&&Ce(t,i,r),r},F,it=(F=class extends w{static parseLevel(e){if(e){let t=Object.keys(st).find(i=>i.toLowerCase()===e.toLowerCase());return t&&st[t]}}static get styles(){return[R`
4
- ${M(Ee)}
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 Se;case"suggest":return Ae;case"error":return xe;default:return null}}},F.ID="sd-field-validation-message",F.levelConverter={fromAttribute(e){return F.parseLevel(e)},toAttribute(e){return e&&e.toLowerCase()}},F);Mt([u({type:String,attribute:!0})],it.prototype,"message");Mt([u({type:String,attribute:!0})],it.prototype,"icon");Mt([u({converter:it.levelConverter,reflect:!0})],it.prototype,"level");var Pt=it,st=(e=>(e.Warn="warn",e.Suggest="suggest",e.Error="error",e))(st||{});customElements.get(Pt.ID)||customElements.define(Pt.ID,Pt);var Pe=":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{min-height:var(--sd-input-validation-message-minheight, 0px);position:relative;font-size:0}.validation-message{position:relative;position:var(--sd-input-validation-message-minheight, 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{text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.validation-message{text-overflow:ellipsis;overflow-x:hidden;white-space:normal;white-space:var(--sd-input-validation-message-minheight, nowrap)}.input::placeholder{color:var(--sd-input-color, #767676)}.underline{height:2px;width:100%;position:relative}.unfocused-line,.focused-line{position:absolute;inset: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}",Me=Object.defineProperty,m=(e,t,i,s)=>{for(var r=void 0,o=e.length-1,n;o>=0;o--)(n=e[o])&&(r=n(t,i,r)||r);return r&&Me(t,i,r),r},ke="sd-lit-input",Xt="delegatesFocus"in window.ShadowRoot.prototype,Re=0,S,f=(S=class extends w{constructor(){super(),this.rows=1,this.effectiveDisabled=!1,this.type="text",this.autocomplete="off";let e=Re++;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(),Xt||(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=>{t.key=="Enter"&&this._internals?.form?.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[R`
6
- ${M(Pe)}
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ut=/'/g,Bt=/"/g,Ft=/^(?:script|style|textarea|title)$/i,At=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),y=At(1),Ge=At(2),Ke=At(3),T=Symbol.for("lit-noChange"),v=Symbol.for("lit-nothing"),Ht=new WeakMap,V=L.createTreeWalker(L,129);function jt(e,t){if(!xt(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return It!==void 0?It.createHTML(t):t}var fe=(e,t)=>{let i=e.length-1,s=[],r,o=t===2?"<svg>":t===3?"<math>":"",n=J;for(let a=0;a<i;a++){let l=e[a],h,p,c=-1,g=0;for(;g<l.length&&(n.lastIndex=g,p=n.exec(l),p!==null);)g=n.lastIndex,n===J?p[1]==="!--"?n=Ot:p[1]!==void 0?n=Nt:p[2]!==void 0?(Ft.test(p[2])&&(r=RegExp("</"+p[2],"g")),n=D):p[3]!==void 0&&(n=D):n===D?p[0]===">"?(n=r??J,c=-1):p[1]===void 0?c=-2:(c=n.lastIndex-p[2].length,h=p[1],n=p[3]===void 0?D:p[3]==='"'?Bt:Ut):n===Bt||n===Ut?n=D:n===Ot||n===Nt?n=J:(n=D,r=void 0);let E=n===D&&e[a+1].startsWith("/>")?" ":"";o+=n===J?l+de:c>=0?(s.push(h),l.slice(0,c)+zt+l.slice(c)+k+E):l+k+(c===-2?a:E)}return[jt(e,o+(e[i]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},Q=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,p]=fe(t,i);if(this.el=e.createElement(h,s),V.currentNode=this.el.content,i===2||i===3){let c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(r=V.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(let c of r.getAttributeNames())if(c.endsWith(zt)){let g=p[n++],E=r.getAttribute(c).split(k),B=/([.?@])?(.*)/.exec(g);l.push({type:1,index:o,name:B[2],strings:E,ctor:B[1]==="."?$t:B[1]==="?"?yt:B[1]==="@"?_t:q}),r.removeAttribute(c)}else c.startsWith(k)&&(l.push({type:6,index:o}),r.removeAttribute(c));if(Ft.test(r.tagName)){let c=r.textContent.split(k),g=c.length-1;if(g>0){r.textContent=ht?ht.emptyScript:"";for(let E=0;E<g;E++)r.append(c[E],Z()),V.nextNode(),l.push({type:2,index:++o});r.append(c[g],Z())}}}else if(r.nodeType===8)if(r.data===qt)l.push({type:2,index:o});else{let c=-1;for(;(c=r.data.indexOf(k,c+1))!==-1;)l.push({type:7,index:o}),c+=k.length-1}o++}}static createElement(t,i){let s=L.createElement("template");return s.innerHTML=t,s}};function z(e,t,i=e,s){if(t===T)return t;let r=s!==void 0?i._$Co?.[s]:i._$Cl,o=Y(t)?void 0:t._$litDirective$;return r?.constructor!==o&&(r?._$AO?.(!1),o===void 0?r=void 0:(r=new o(e),r._$AT(e,i,s)),s!==void 0?(i._$Co??=[])[s]=r:i._$Cl=r),r!==void 0&&(t=z(e,r._$AS(e,t.values),r,s)),t}var bt=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){let{el:{content:i},parts:s}=this._$AD,r=(t?.creationScope??L).importNode(i,!0);V.currentNode=r;let o=V.nextNode(),n=0,a=0,l=s[0];for(;l!==void 0;){if(n===l.index){let h;l.type===2?h=new tt(o,o.nextSibling,this,t):l.type===1?h=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(h=new wt(o,this,t)),this._$AV.push(h),l=s[++a]}n!==l?.index&&(o=V.nextNode(),n++)}return V.currentNode=L,r}p(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++}},tt=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,r){this.type=2,this._$AH=v,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=r,this._$Cv=r?.isConnected??!0}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=z(this,t,i),Y(t)?t===v||t==null||t===""?(this._$AH!==v&&this._$AR(),this._$AH=v):t!==this._$AH&&t!==T&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):pe(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==v&&Y(this._$AH)?this._$AA.nextSibling.data=t:this.T(L.createTextNode(t)),this._$AH=t}$(t){let{values:i,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=Q.createElement(jt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===r)this._$AH.p(i);else{let o=new bt(r,this),n=o.u(this.options);o.p(i),this.T(n),this._$AH=o}}_$AC(t){let i=Ht.get(t.strings);return i===void 0&&Ht.set(t.strings,i=new Q(t)),i}k(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.O(Z()),this.O(Z()),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){for(this._$AP?.(!1,!0,i);t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},q=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,r,o){this.type=1,this._$AH=v,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=v}_$AI(t,i=this,s,r){let o=this.strings,n=!1;if(o===void 0)t=z(this,t,i,0),n=!Y(t)||t!==this._$AH&&t!==T,n&&(this._$AH=t);else{let a=t,l,h;for(t=o[0],l=0;l<o.length-1;l++)h=z(this,a[s+l],i,l),h===T&&(h=this._$AH[l]),n||=!Y(h)||h!==this._$AH[l],h===v?t=v:t!==v&&(t+=(h??"")+o[l+1]),this._$AH[l]=h}n&&!r&&this.j(t)}j(t){t===v?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},$t=class extends q{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===v?void 0:t}},yt=class extends q{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==v)}},_t=class extends q{constructor(t,i,s,r,o){super(t,i,s,r,o),this.type=5}_$AI(t,i=this){if((t=z(this,t,i,0)??v)===T)return;let s=this._$AH,r=t===v&&s!==v||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==v&&(s===v||r);r&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},wt=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){z(this,t)}};var ve=Et.litHtmlPolyfillSupport;ve?.(Q,tt),(Et.litHtmlVersions??=[]).push("3.3.1");var Wt=(e,t,i)=>{let s=i?.renderBefore??t,r=s._$litPart$;if(r===void 0){let o=i?.renderBefore??null;s._$litPart$=r=new tt(t.insertBefore(Z(),o),o,void 0,i??{})}return r._$AI(e),r};var St=globalThis,w=class extends M{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Wt(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return T}};w._$litElement$=!0,w.finalized=!0,St.litElementHydrateSupport?.({LitElement:w});var me=St.litElementPolyfillSupport;me?.({LitElement:w});(St.litElementVersions??=[]).push("4.2.1");var ge={attribute:!0,type:String,converter:K,reflect:!1,hasChanged:lt},be=(e=ge,t,i)=>{let{kind:s,metadata:r}=i,o=globalThis.litPropertyMetadata.get(r);if(o===void 0&&globalThis.litPropertyMetadata.set(r,o=new Map),s==="setter"&&((e=Object.create(e)).wrapped=!0),o.set(i.name,e),s==="accessor"){let{name:n}=i;return{set(a){let l=t.get.call(this);t.set.call(this,a),this.requestUpdate(n,l,e)},init(a){return a!==void 0&&this.C(n,void 0,e,a),a}}}if(s==="setter"){let{name:n}=i;return function(a){let l=this[n];t.call(this,a),this.requestUpdate(n,l,e)}}throw Error("Unsupported decorator location: "+s)};function u(e){return(t,i)=>typeof i=="object"?be(e,t,i):((s,r,o)=>{let n=r.hasOwnProperty(o);return r.constructor.createProperty(o,s),n?Object.getOwnPropertyDescriptor(r,o):void 0})(e,t,i)}var et="a-f\\d",$e=`#?[${et}]{3}[${et}]?`,ye=`#?[${et}]{6}([${et}]{2})?`,_e=new RegExp(`[^#${et}]`,"gi"),we=new RegExp(`^${$e}$|^${ye}$`,"i");function Ct(e,t={}){if(typeof e!="string"||_e.test(e)||!we.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??v;var Ee=":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}",xe="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",Ae="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",Se="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",Ce=Object.defineProperty,Pt=(e,t,i,s)=>{for(var r=void 0,o=e.length-1,n;o>=0;o--)(n=e[o])&&(r=n(t,i,r)||r);return r&&Ce(t,i,r),r},F,it=(F=class extends w{static parseLevel(e){if(e){let t=Object.keys(st).find(i=>i.toLowerCase()===e.toLowerCase());return t&&st[t]}}static get styles(){return[R`
4
+ ${P(Ee)}
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 Se;case"suggest":return Ae;case"error":return xe;default:return null}}},F.ID="sd-field-validation-message",F.levelConverter={fromAttribute(e){return F.parseLevel(e)},toAttribute(e){return e&&e.toLowerCase()}},F);Pt([u({type:String,attribute:!0})],it.prototype,"message");Pt([u({type:String,attribute:!0})],it.prototype,"icon");Pt([u({converter:it.levelConverter,reflect:!0})],it.prototype,"level");var Mt=it,st=(e=>(e.Warn="warn",e.Suggest="suggest",e.Error="error",e))(st||{});customElements.get(Mt.ID)||customElements.define(Mt.ID,Mt);var Me=":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{min-height:var(--sd-input-validation-message-minheight, 0px);position:relative;font-size:0}.validation-message{position:relative;position:var(--sd-input-validation-message-minheight, 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{text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.validation-message{text-overflow:ellipsis;overflow-x:hidden;white-space:normal;white-space:var(--sd-input-validation-message-minheight, nowrap)}.input::placeholder{color:var(--sd-input-color, #767676)}.underline{height:2px;width:100%;position:relative}.unfocused-line,.focused-line{position:absolute;inset: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,m=(e,t,i,s)=>{for(var r=void 0,o=e.length-1,n;o>=0;o--)(n=e[o])&&(r=n(t,i,r)||r);return r&&Pe(t,i,r),r},ke="sd-lit-input",Xt="delegatesFocus"in window.ShadowRoot.prototype,Re=0,S,f=(S=class extends w{constructor(){super(),this.rows=1,this.effectiveDisabled=!1,this.type="text",this.autocomplete="off";let e=Re++;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(),Xt||(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=>{t.key=="Enter"&&this._internals?.form?.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[R`
6
+ ${P(Me)}
7
7
  `]}render(){let e,t=this.validationMessage||this.inputElement?.validationMessage,i=t||this.validationLevel!=null;return this.rows===1?e=y`
8
8
  <input
9
9
  id=${this._inputId}
@@ -72,7 +72,7 @@ var window;(window||={})["@cas-smartdesign/lit-slider"]=(()=>{var ft=Object.defi
72
72
  `}
73
73
  </div>
74
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){if(super.update(e),e.has("validationMessage")&&(this.validationMessage?this._internals?.setValidity({customError:!0},this.validationMessage):this._internals?.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)}updateFormValidity(){if(this.validationMessage==null&&this.inputElement!=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){this._internals?.setFormValue(e),this.updateFormValidity()}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=ke,S.DEFAULT_MAX_LENGTH=524288,S.formAssociated=!0,S.shadowRootOptions={...w.shadowRootOptions,delegatesFocus:Xt},S);m([u({type:String,reflect:!0})],f.prototype,"label");m([u({type:String,attribute:!0})],f.prototype,"validationMessage");m([u({type:String,attribute:!0})],f.prototype,"validationIconSrc");m([u({type:st,attribute:!0,reflect:!0})],f.prototype,"validationLevel");m([u({type:String,hasChanged(e,t){return t!=null&&t!=e}})],f.prototype,"currentText");m([u({type:Boolean,attribute:!0})],f.prototype,"alwaysFloatLabel");m([u({type:Boolean,attribute:!0})],f.prototype,"autocompleted");m([u({type:Number,attribute:!0})],f.prototype,"rows");m([u({type:Boolean,reflect:!0,attribute:"effective-disabled"})],f.prototype,"effectiveDisabled");m([u({type:Boolean,reflect:!0,attribute:"extended-prefix"})],f.prototype,"extendedPrefix");m([u({type:String,reflect:!0})],f.prototype,"type");m([u({type:String,reflect:!0})],f.prototype,"placeholder");m([u({type:String,reflect:!0})],f.prototype,"sdAriaLabel");m([u({type:Number,reflect:!0})],f.prototype,"maxlength");m([u({type:Boolean,reflect:!0})],f.prototype,"readonly");m([u({type:Boolean,reflect:!0})],f.prototype,"required");m([u({type:String,reflect:!0})],f.prototype,"name");m([u({type:Boolean,reflect:!0})],f.prototype,"inactive");m([u({type:String,attribute:!0})],f.prototype,"autocomplete");m([u({type:String,attribute:!0})],f.prototype,"min");m([u({type:String,attribute:!0})],f.prototype,"max");m([u({type:String,attribute:!0})],f.prototype,"pattern");var kt=f;customElements.get(kt.ID)||customElements.define(kt.ID,kt);var De=20,Ve=1,I=1e6,Gt=1e6,Le=-7,Te=21,Ie=!1,rt="[big.js] ",O=rt+"Invalid ",ct=O+"decimal places",Oe=O+"rounding mode",Kt=rt+"Division by zero",d={},C=void 0,Ne=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function Jt(){function e(t){var i=this;if(!(i instanceof e))return t===C&&arguments.length===0?Jt():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(O+"value");t=t===0&&1/t<0?"-0":String(t)}Ue(i,t)}i.constructor=e}return e.prototype=d,e.DP=De,e.RM=Ve,e.NE=Le,e.PE=Te,e.strict=Ie,e.roundDown=0,e.roundHalfUp=1,e.roundHalfEven=2,e.roundUp=3,e}function Ue(e,t){var i,s,r;if(!Ne.test(t))throw Error(O+"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 N(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(Oe);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 U(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}d.abs=function(){var e=new this.constructor(this);return e.s=1,e};d.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};d.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>I)throw Error(ct);if(!r[0])throw Error(Kt);if(!s[0])return e.s=o,e.c=[e.e=0],e;var a,l,h,p,c,g=r.slice(),E=a=r.length,B=s.length,b=s.slice(0,a),x=b.length,H=e,dt=H.c=[],pt=0,W=n+(H.e=t.e-e.e)+1;for(H.s=o,o=W<0?0:W,g.unshift(0);x++<a;)b.push(0);do{for(h=0;h<10;h++){if(a!=(x=b.length))p=a>x?1:-1;else for(c=-1,p=0;++c<a;)if(r[c]!=b[c]){p=r[c]>b[c]?1:-1;break}if(p<0){for(l=x==a?r:g;x;){if(b[--x]<l[x]){for(c=x;c&&!b[--c];)b[c]=9;--b[c],b[x]+=10}b[x]-=l[x]}for(;!b[0];)b.shift()}else break}dt[pt++]=p?h:++h,b[0]&&p?b[x]=s[E]||0:b=[s[E]]}while((E++<B||b[0]!==C)&&o--);return!dt[0]&&pt!=1&&(dt.shift(),H.e--,W--),pt>W&&N(H,W,i.RM,b[0]!==C),H};d.eq=function(e){return this.cmp(e)===0};d.gt=function(e){return this.cmp(e)>0};d.gte=function(e){return this.cmp(e)>-1};d.lt=function(e){return this.cmp(e)<0};d.lte=function(e){return this.cmp(e)<1};d.minus=d.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(),p=o.e,c=e.c,g=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=p-g){for((r=a<0)?(a=-a,s=h):(g=p,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(),--g;return h[0]||(e.s=1,h=[g=0]),e.c=h,e.e=g,e};d.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(Kt);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)))};d.neg=function(){var e=new this.constructor(this);return e.s=-e.s,e};d.plus=d.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};d.pow=function(e){var t=this,i=new t.constructor("1"),s=i,r=e<0;if(e!==~~e||e<-Gt||e>Gt)throw Error(O+"exponent");for(r&&(e=-e);e&1&&(s=s.times(t)),e>>=1,!!e;)t=t.times(t);return r?i.div(s):s};d.prec=function(e,t){if(e!==~~e||e<1||e>I)throw Error(O+"precision");return N(new this.constructor(this),e,t)};d.round=function(e,t){if(e===C)e=0;else if(e!==~~e||e<-I||e>I)throw Error(ct);return N(new this.constructor(this),e+this.e+1,t)};d.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(rt+"No square root");o=Math.sqrt(+U(s,!0,!0)),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 N(e,(r.DP-=4)+e.e+1,r.RM)};d.times=d.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};d.toExponential=function(e,t){var i=this,s=i.c[0];if(e!==C){if(e!==~~e||e<0||e>I)throw Error(ct);for(i=N(new i.constructor(i),++e,t);i.c.length<e;)i.c.push(0)}return U(i,!0,!!s)};d.toFixed=function(e,t){var i=this,s=i.c[0];if(e!==C){if(e!==~~e||e<0||e>I)throw Error(ct);for(i=N(new i.constructor(i),e+i.e+1,t),e=e+i.e+1;i.c.length<e;)i.c.push(0)}return U(i,!1,!!s)};d.toJSON=d.toString=function(){var e=this,t=e.constructor;return U(e,e.e<=t.NE||e.e>=t.PE,!!e.c[0])};typeof Symbol<"u"&&(d[Symbol.for("nodejs.util.inspect.custom")]=d.toJSON);d.toNumber=function(){var e=+U(this,!0,!0);if(this.constructor.strict===!0&&!this.eq(e.toString()))throw Error(rt+"Imprecise conversion");return e};d.toPrecision=function(e,t){var i=this,s=i.constructor,r=i.c[0];if(e!==C){if(e!==~~e||e<1||e>I)throw Error(O+"precision");for(i=N(new s(i),e,t);i.c.length<e;)i.c.push(0)}return U(i,e<=i.e||i.e<=s.NE||i.e>=s.PE,!!r)};d.valueOf=function(){var e=this,t=e.constructor;if(t.strict===!0)throw Error(rt+"valueOf disallowed");return U(e,e.e<=t.NE||e.e>=t.PE,!0)};var Zt=Jt();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=Ct(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,_=(e,t,i,s)=>{for(var r=void 0,o=e.length-1,n;o>=0;o--)(n=e[o])&&(r=n(t,i,r)||r);return r&&He(t,i,r),r},j,$=(j=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=j.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.updateValue(Number.parseFloat(this.getAttribute("value"))||this._value),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}}static get observedAttributes(){let e=super.observedAttributes;return e.push("value"),e}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),(e==="value"||e=="step")&&this.hasUpdated&&this.updateValue(Number.parseFloat(i))}updateValue(e){this.setValueInternal(e)&&(this.inputElement&&(this.inputElement.value=this.formattedValue()),this._value!=e&&this.fireBothValueChangeEvents())}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&&t>=this.min&&t<=this.max){let i=new Zt(t).minus(this.min).div(this.step).round().mul(this.step).plus(this.min);t=Number.parseFloat(i.toString())}return t}setValueInternal(e){let t=this.roundToStep(e),i=this.clampValue?Math.max(this.min,Math.min(this.max,t)):t;if(this._value!==i){let s=this._value;return this._value=i,this.relativeValue=(i-this.min)/(this.max-this.min),this.setAttribute("aria-valuenow",this._value.toString()),this.requestUpdate("value",s),!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=j.defaultColor}static get styles(){return[R`
75
- ${M(Be)}
75
+ ${P(Be)}
76
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`
77
77
  <div id="track-container" style="${t}">
78
78
  <div id="track" style="${i}"></div>
@@ -94,7 +94,7 @@ var window;(window||={})["@cas-smartdesign/lit-slider"]=(()=>{var ft=Object.defi
94
94
  >
95
95
  </sd-field-validation-message>
96
96
  `}
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")}},j.ID="sd-lit-slider",j.defaultColor="rgb(20, 103, 186)",j);_([u({type:Number})],$.prototype,"thumbPosition");_([u({type:Number,reflect:!0})],$.prototype,"min");_([u({type:Number,reflect:!0})],$.prototype,"max");_([u({type:Number,reflect:!0})],$.prototype,"step");_([u({type:Boolean,reflect:!0})],$.prototype,"editable");_([u({type:Boolean,reflect:!0})],$.prototype,"clampValue");_([u({type:String,reflect:!0})],$.prototype,"inputSuffix");_([u({type:Boolean,reflect:!0})],$.prototype,"disabled");_([u({type:String,attribute:!0})],$.prototype,"validationMessage");_([u({type:String,attribute:!0})],$.prototype,"validationIconSrc");_([u({type:String,attribute:!0})],$.prototype,"validationLevel");_([u({type:String,attribute:!0})],$.prototype,"decimalSeparator");_([u({type:Boolean})],$.prototype,"active");_([u()],$.prototype,"baseColor");var ut=$;customElements.get(ut.ID)||customElements.define(ut.ID,ut);return se(ze);})();
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,Math.round(e-this.getBoundingClientRect().left))),this.max-this.min>1){let t=this.trackContainerWidth/(this.max-this.min);this.thumbPosition%t&&(this.thumbPosition=Math.round(Math.ceil(this.thumbPosition/t)*t))}}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")}},j.ID="sd-lit-slider",j.defaultColor="rgb(20, 103, 186)",j);_([u({type:Number})],$.prototype,"thumbPosition");_([u({type:Number,reflect:!0})],$.prototype,"min");_([u({type:Number,reflect:!0})],$.prototype,"max");_([u({type:Number,reflect:!0})],$.prototype,"step");_([u({type:Boolean,reflect:!0})],$.prototype,"editable");_([u({type:Boolean,reflect:!0})],$.prototype,"clampValue");_([u({type:String,reflect:!0})],$.prototype,"inputSuffix");_([u({type:Boolean,reflect:!0})],$.prototype,"disabled");_([u({type:String,attribute:!0})],$.prototype,"validationMessage");_([u({type:String,attribute:!0})],$.prototype,"validationIconSrc");_([u({type:String,attribute:!0})],$.prototype,"validationLevel");_([u({type:String,attribute:!0})],$.prototype,"decimalSeparator");_([u({type:Boolean})],$.prototype,"active");_([u()],$.prototype,"baseColor");var ut=$;customElements.get(ut.ID)||customElements.define(ut.ID,ut);return se(ze);})();
98
98
  /*! Bundled license information:
99
99
 
100
100
  @lit/reactive-element/css-tag.js: