@florid-kit/components 0.8.8 → 0.8.9

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/index.js CHANGED
@@ -2,21 +2,21 @@
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const at=globalThis,$t=at.ShadowRoot&&(at.ShadyCSS===void 0||at.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,_t=Symbol(),It=new WeakMap;let Ft=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==_t)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if($t&&t===void 0){const r=e!==void 0&&e.length===1;r&&(t=It.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&It.set(e,t))}return t}toString(){return this.cssText}};const Xt=o=>new Ft(typeof o=="string"?o:o+"",void 0,_t),y=(o,...t)=>{const e=o.length===1?o[0]:t.reduce((r,i,s)=>r+(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.")})(i)+o[s+1],o[0]);return new Ft(e,o,_t)},Jt=(o,t)=>{if($t)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const r=document.createElement("style"),i=at.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=e.cssText,o.appendChild(r)}},Ot=$t?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return Xt(e)})(o):o;/**
5
+ */const lt=globalThis,$t=lt.ShadowRoot&&(lt.ShadyCSS===void 0||lt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,_t=Symbol(),It=new WeakMap;let Nt=class{constructor(t,e,n){if(this._$cssResult$=!0,n!==_t)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if($t&&t===void 0){const n=e!==void 0&&e.length===1;n&&(t=It.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&It.set(e,t))}return t}toString(){return this.cssText}};const Yt=o=>new Nt(typeof o=="string"?o:o+"",void 0,_t),y=(o,...t)=>{const e=o.length===1?o[0]:t.reduce((n,i,s)=>n+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+o[s+1],o[0]);return new Nt(e,o,_t)},Qt=(o,t)=>{if($t)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const n=document.createElement("style"),i=lt.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=e.cssText,o.appendChild(n)}},Ot=$t?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return Yt(e)})(o):o;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */const{is:Yt,defineProperty:Qt,getOwnPropertyDescriptor:te,getOwnPropertyNames:ee,getOwnPropertySymbols:oe,getPrototypeOf:ie}=Object,z=globalThis,Pt=z.trustedTypes,re=Pt?Pt.emptyScript:"",vt=z.reactiveElementPolyfillSupport,J=(o,t)=>o,lt={toAttribute(o,t){switch(t){case Boolean:o=o?re:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},Ct=(o,t)=>!Yt(o,t),Bt={attribute:!0,type:String,converter:lt,reflect:!1,useDefault:!1,hasChanged:Ct};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),z.litPropertyMetadata??(z.litPropertyMetadata=new WeakMap);let V=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Bt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const r=Symbol(),i=this.getPropertyDescriptor(t,r,e);i!==void 0&&Qt(this.prototype,t,i)}}static getPropertyDescriptor(t,e,r){const{get:i,set:s}=te(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get:i,set(n){const h=i==null?void 0:i.call(this);s==null||s.call(this,n),this.requestUpdate(t,h,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Bt}static _$Ei(){if(this.hasOwnProperty(J("elementProperties")))return;const t=ie(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(J("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(J("properties"))){const e=this.properties,r=[...ee(e),...oe(e)];for(const i of r)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[r,i]of e)this.elementProperties.set(r,i)}this._$Eh=new Map;for(const[e,r]of this.elementProperties){const i=this._$Eu(e,r);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const i of r)e.unshift(Ot(i))}else t!==void 0&&e.push(Ot(t));return e}static _$Eu(t,e){const r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Jt(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostConnected)==null?void 0:r.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostDisconnected)==null?void 0:r.call(e)})}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$ET(t,e){var s;const r=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,r);if(i!==void 0&&r.reflect===!0){const n=(((s=r.converter)==null?void 0:s.toAttribute)!==void 0?r.converter:lt).toAttribute(e,r.type);this._$Em=t,n==null?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(t,e){var s,n;const r=this.constructor,i=r._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const h=r.getPropertyOptions(i),c=typeof h.converter=="function"?{fromAttribute:h.converter}:((s=h.converter)==null?void 0:s.fromAttribute)!==void 0?h.converter:lt;this._$Em=i,this[i]=c.fromAttribute(e,h.type)??((n=this._$Ej)==null?void 0:n.get(i))??null,this._$Em=null}}requestUpdate(t,e,r){var i;if(t!==void 0){const s=this.constructor,n=this[t];if(r??(r=s.getPropertyOptions(t)),!((r.hasChanged??Ct)(n,e)||r.useDefault&&r.reflect&&n===((i=this._$Ej)==null?void 0:i.get(t))&&!this.hasAttribute(s._$Eu(t,r))))return;this.C(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:r,reflect:i,wrapped:s},n){r&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,n??e??this[t]),s!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||r||(e=void 0),this._$AL.set(t,e)),i===!0&&this._$Em!==t&&(this._$Eq??(this._$Eq=new Set)).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,n]of this._$Ep)this[s]=n;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[s,n]of i){const{wrapped:h}=n,c=this[s];h!==!0||this._$AL.has(s)||c===void 0||this.C(s,void 0,n,c)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(r=this._$EO)==null||r.forEach(i=>{var s;return(s=i.hostUpdate)==null?void 0:s.call(i)}),this.update(e)):this._$EM()}catch(i){throw t=!1,this._$EM(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(r=>{var i;return(i=r.hostUpdated)==null?void 0:i.call(r)}),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=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}};V.elementStyles=[],V.shadowRootOptions={mode:"open"},V[J("elementProperties")]=new Map,V[J("finalized")]=new Map,vt==null||vt({ReactiveElement:V}),(z.reactiveElementVersions??(z.reactiveElementVersions=[])).push("2.1.0");/**
9
+ */const{is:te,defineProperty:ee,getOwnPropertyDescriptor:oe,getOwnPropertyNames:ie,getOwnPropertySymbols:ne,getPrototypeOf:re}=Object,D=globalThis,Pt=D.trustedTypes,se=Pt?Pt.emptyScript:"",vt=D.reactiveElementPolyfillSupport,Y=(o,t)=>o,ct={toAttribute(o,t){switch(t){case Boolean:o=o?se:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},Ct=(o,t)=>!te(o,t),Bt={attribute:!0,type:String,converter:ct,reflect:!1,useDefault:!1,hasChanged:Ct};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),D.litPropertyMetadata??(D.litPropertyMetadata=new WeakMap);let q=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Bt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const n=Symbol(),i=this.getPropertyDescriptor(t,n,e);i!==void 0&&ee(this.prototype,t,i)}}static getPropertyDescriptor(t,e,n){const{get:i,set:s}=oe(this.prototype,t)??{get(){return this[e]},set(r){this[e]=r}};return{get:i,set(r){const h=i==null?void 0:i.call(this);s==null||s.call(this,r),this.requestUpdate(t,h,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Bt}static _$Ei(){if(this.hasOwnProperty(Y("elementProperties")))return;const t=re(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Y("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Y("properties"))){const e=this.properties,n=[...ie(e),...ne(e)];for(const i of n)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[n,i]of e)this.elementProperties.set(n,i)}this._$Eh=new Map;for(const[e,n]of this.elementProperties){const i=this._$Eu(e,n);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const i of n)e.unshift(Ot(i))}else t!==void 0&&e.push(Ot(t));return e}static _$Eu(t,e){const n=e.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const n of e.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Qt(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var n;return(n=e.hostConnected)==null?void 0:n.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var n;return(n=e.hostDisconnected)==null?void 0:n.call(e)})}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$ET(t,e){var s;const n=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,n);if(i!==void 0&&n.reflect===!0){const r=(((s=n.converter)==null?void 0:s.toAttribute)!==void 0?n.converter:ct).toAttribute(e,n.type);this._$Em=t,r==null?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){var s,r;const n=this.constructor,i=n._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const h=n.getPropertyOptions(i),c=typeof h.converter=="function"?{fromAttribute:h.converter}:((s=h.converter)==null?void 0:s.fromAttribute)!==void 0?h.converter:ct;this._$Em=i,this[i]=c.fromAttribute(e,h.type)??((r=this._$Ej)==null?void 0:r.get(i))??null,this._$Em=null}}requestUpdate(t,e,n){var i;if(t!==void 0){const s=this.constructor,r=this[t];if(n??(n=s.getPropertyOptions(t)),!((n.hasChanged??Ct)(r,e)||n.useDefault&&n.reflect&&r===((i=this._$Ej)==null?void 0:i.get(t))&&!this.hasAttribute(s._$Eu(t,n))))return;this.C(t,e,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:n,reflect:i,wrapped:s},r){n&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,r??e??this[t]),s!==!0||r!==void 0)||(this._$AL.has(t)||(this.hasUpdated||n||(e=void 0),this._$AL.set(t,e)),i===!0&&this._$Em!==t&&(this._$Eq??(this._$Eq=new Set)).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var n;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,r]of this._$Ep)this[s]=r;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[s,r]of i){const{wrapped:h}=r,c=this[s];h!==!0||this._$AL.has(s)||c===void 0||this.C(s,void 0,r,c)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(n=this._$EO)==null||n.forEach(i=>{var s;return(s=i.hostUpdate)==null?void 0:s.call(i)}),this.update(e)):this._$EM()}catch(i){throw t=!1,this._$EM(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(n=>{var i;return(i=n.hostUpdated)==null?void 0:i.call(n)}),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=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}};q.elementStyles=[],q.shadowRootOptions={mode:"open"},q[Y("elementProperties")]=new Map,q[Y("finalized")]=new Map,vt==null||vt({ReactiveElement:q}),(D.reactiveElementVersions??(D.reactiveElementVersions=[])).push("2.1.0");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const Y=globalThis,ct=Y.trustedTypes,zt=ct?ct.createPolicy("lit-html",{createHTML:o=>o}):void 0,Nt="$lit$",B=`lit$${Math.random().toFixed(9).slice(2)}$`,Rt="?"+B,ne=`<${Rt}>`,F=document,Q=()=>F.createComment(""),tt=o=>o===null||typeof o!="object"&&typeof o!="function",kt=Array.isArray,se=o=>kt(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",gt=`[
14
- \f\r]`,X=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Dt=/-->/g,Ht=/>/g,T=RegExp(`>|${gt}(?:([^\\s"'>=/]+)(${gt}*=${gt}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Mt=/'/g,Tt=/"/g,Vt=/^(?:script|style|textarea|title)$/i,ae=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),l=ae(1),D=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),jt=new WeakMap,j=F.createTreeWalker(F,129);function Zt(o,t){if(!kt(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return zt!==void 0?zt.createHTML(t):t}const le=(o,t)=>{const e=o.length-1,r=[];let i,s=t===2?"<svg>":t===3?"<math>":"",n=X;for(let h=0;h<e;h++){const c=o[h];let v,f,p=-1,L=0;for(;L<c.length&&(n.lastIndex=L,f=n.exec(c),f!==null);)L=n.lastIndex,n===X?f[1]==="!--"?n=Dt:f[1]!==void 0?n=Ht:f[2]!==void 0?(Vt.test(f[2])&&(i=RegExp("</"+f[2],"g")),n=T):f[3]!==void 0&&(n=T):n===T?f[0]===">"?(n=i??X,p=-1):f[1]===void 0?p=-2:(p=n.lastIndex-f[2].length,v=f[1],n=f[3]===void 0?T:f[3]==='"'?Tt:Mt):n===Tt||n===Mt?n=T:n===Dt||n===Ht?n=X:(n=T,i=void 0);const P=n===T&&o[h+1].startsWith("/>")?" ":"";s+=n===X?c+ne:p>=0?(r.push(v),c.slice(0,p)+Nt+c.slice(p)+B+P):c+B+(p===-2?h:P)}return[Zt(o,s+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]};class et{constructor({strings:t,_$litType$:e},r){let i;this.parts=[];let s=0,n=0;const h=t.length-1,c=this.parts,[v,f]=le(t,e);if(this.el=et.createElement(v,r),j.currentNode=this.el.content,e===2||e===3){const p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(i=j.nextNode())!==null&&c.length<h;){if(i.nodeType===1){if(i.hasAttributes())for(const p of i.getAttributeNames())if(p.endsWith(Nt)){const L=f[n++],P=i.getAttribute(p).split(B),st=/([.?@])?(.*)/.exec(L);c.push({type:1,index:s,name:st[2],strings:P,ctor:st[1]==="."?he:st[1]==="?"?de:st[1]==="@"?pe:ht}),i.removeAttribute(p)}else p.startsWith(B)&&(c.push({type:6,index:s}),i.removeAttribute(p));if(Vt.test(i.tagName)){const p=i.textContent.split(B),L=p.length-1;if(L>0){i.textContent=ct?ct.emptyScript:"";for(let P=0;P<L;P++)i.append(p[P],Q()),j.nextNode(),c.push({type:2,index:++s});i.append(p[L],Q())}}}else if(i.nodeType===8)if(i.data===Rt)c.push({type:2,index:s});else{let p=-1;for(;(p=i.data.indexOf(B,p+1))!==-1;)c.push({type:7,index:s}),p+=B.length-1}s++}}static createElement(t,e){const r=F.createElement("template");return r.innerHTML=t,r}}function Z(o,t,e=o,r){var n,h;if(t===D)return t;let i=r!==void 0?(n=e._$Co)==null?void 0:n[r]:e._$Cl;const s=tt(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==s&&((h=i==null?void 0:i._$AO)==null||h.call(i,!1),s===void 0?i=void 0:(i=new s(o),i._$AT(o,e,r)),r!==void 0?(e._$Co??(e._$Co=[]))[r]=i:e._$Cl=i),i!==void 0&&(t=Z(o,i._$AS(o,t.values),i,r)),t}class ce{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:r}=this._$AD,i=((t==null?void 0:t.creationScope)??F).importNode(e,!0);j.currentNode=i;let s=j.nextNode(),n=0,h=0,c=r[0];for(;c!==void 0;){if(n===c.index){let v;c.type===2?v=new nt(s,s.nextSibling,this,t):c.type===1?v=new c.ctor(s,c.name,c.strings,this,t):c.type===6&&(v=new ue(s,this,t)),this._$AV.push(v),c=r[++h]}n!==(c==null?void 0:c.index)&&(s=j.nextNode(),n++)}return j.currentNode=F,i}p(t){let e=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class nt{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,r,i){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=i,this._$Cv=(i==null?void 0:i.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Z(this,t,e),tt(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==D&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):se(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!==d&&tt(this._$AH)?this._$AA.nextSibling.data=t:this.T(F.createTextNode(t)),this._$AH=t}$(t){var s;const{values:e,_$litType$:r}=t,i=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=et.createElement(Zt(r.h,r.h[0]),this.options)),r);if(((s=this._$AH)==null?void 0:s._$AD)===i)this._$AH.p(e);else{const n=new ce(i,this),h=n.u(this.options);n.p(e),this.T(h),this._$AH=n}}_$AC(t){let e=jt.get(t.strings);return e===void 0&&jt.set(t.strings,e=new et(t)),e}k(t){kt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,i=0;for(const s of t)i===e.length?e.push(r=new nt(this.O(Q()),this.O(Q()),this,this.options)):r=e[i],r._$AI(s),i++;i<e.length&&(this._$AR(r&&r._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class ht{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,i,s){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=d}_$AI(t,e=this,r,i){const s=this.strings;let n=!1;if(s===void 0)t=Z(this,t,e,0),n=!tt(t)||t!==this._$AH&&t!==D,n&&(this._$AH=t);else{const h=t;let c,v;for(t=s[0],c=0;c<s.length-1;c++)v=Z(this,h[r+c],e,c),v===D&&(v=this._$AH[c]),n||(n=!tt(v)||v!==this._$AH[c]),v===d?t=d:t!==d&&(t+=(v??"")+s[c+1]),this._$AH[c]=v}n&&!i&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class he extends ht{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}}class de extends ht{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}}class pe extends ht{constructor(t,e,r,i,s){super(t,e,r,i,s),this.type=5}_$AI(t,e=this){if((t=Z(this,t,e,0)??d)===D)return;const r=this._$AH,i=t===d&&r!==d||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==d&&(r===d||i);i&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class ue{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){Z(this,t)}}const bt=Y.litHtmlPolyfillSupport;bt==null||bt(et,nt),(Y.litHtmlVersions??(Y.litHtmlVersions=[])).push("3.3.0");const ve=(o,t,e)=>{const r=(e==null?void 0:e.renderBefore)??t;let i=r._$litPart$;if(i===void 0){const s=(e==null?void 0:e.renderBefore)??null;r._$litPart$=i=new nt(t.insertBefore(Q(),s),s,void 0,e??{})}return i._$AI(o),i};/**
13
+ */const Q=globalThis,ht=Q.trustedTypes,zt=ht?ht.createPolicy("lit-html",{createHTML:o=>o}):void 0,Ft="$lit$",z=`lit$${Math.random().toFixed(9).slice(2)}$`,Rt="?"+z,ae=`<${Rt}>`,R=document,tt=()=>R.createComment(""),et=o=>o===null||typeof o!="object"&&typeof o!="function",kt=Array.isArray,le=o=>kt(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",bt=`[
14
+ \f\r]`,J=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Dt=/-->/g,Ht=/>/g,U=RegExp(`>|${bt}(?:([^\\s"'>=/]+)(${bt}*=${bt}*(?:[^
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Mt=/'/g,Tt=/"/g,Vt=/^(?:script|style|textarea|title)$/i,ce=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),l=ce(1),H=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),jt=new WeakMap,N=R.createTreeWalker(R,129);function Zt(o,t){if(!kt(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return zt!==void 0?zt.createHTML(t):t}const he=(o,t)=>{const e=o.length-1,n=[];let i,s=t===2?"<svg>":t===3?"<math>":"",r=J;for(let h=0;h<e;h++){const c=o[h];let v,f,p=-1,I=0;for(;I<c.length&&(r.lastIndex=I,f=r.exec(c),f!==null);)I=r.lastIndex,r===J?f[1]==="!--"?r=Dt:f[1]!==void 0?r=Ht:f[2]!==void 0?(Vt.test(f[2])&&(i=RegExp("</"+f[2],"g")),r=U):f[3]!==void 0&&(r=U):r===U?f[0]===">"?(r=i??J,p=-1):f[1]===void 0?p=-2:(p=r.lastIndex-f[2].length,v=f[1],r=f[3]===void 0?U:f[3]==='"'?Tt:Mt):r===Tt||r===Mt?r=U:r===Dt||r===Ht?r=J:(r=U,i=void 0);const B=r===U&&o[h+1].startsWith("/>")?" ":"";s+=r===J?c+ae:p>=0?(n.push(v),c.slice(0,p)+Ft+c.slice(p)+z+B):c+z+(p===-2?h:B)}return[Zt(o,s+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]};class ot{constructor({strings:t,_$litType$:e},n){let i;this.parts=[];let s=0,r=0;const h=t.length-1,c=this.parts,[v,f]=he(t,e);if(this.el=ot.createElement(v,n),N.currentNode=this.el.content,e===2||e===3){const p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(i=N.nextNode())!==null&&c.length<h;){if(i.nodeType===1){if(i.hasAttributes())for(const p of i.getAttributeNames())if(p.endsWith(Ft)){const I=f[r++],B=i.getAttribute(p).split(z),at=/([.?@])?(.*)/.exec(I);c.push({type:1,index:s,name:at[2],strings:B,ctor:at[1]==="."?pe:at[1]==="?"?ue:at[1]==="@"?ve:dt}),i.removeAttribute(p)}else p.startsWith(z)&&(c.push({type:6,index:s}),i.removeAttribute(p));if(Vt.test(i.tagName)){const p=i.textContent.split(z),I=p.length-1;if(I>0){i.textContent=ht?ht.emptyScript:"";for(let B=0;B<I;B++)i.append(p[B],tt()),N.nextNode(),c.push({type:2,index:++s});i.append(p[I],tt())}}}else if(i.nodeType===8)if(i.data===Rt)c.push({type:2,index:s});else{let p=-1;for(;(p=i.data.indexOf(z,p+1))!==-1;)c.push({type:7,index:s}),p+=z.length-1}s++}}static createElement(t,e){const n=R.createElement("template");return n.innerHTML=t,n}}function W(o,t,e=o,n){var r,h;if(t===H)return t;let i=n!==void 0?(r=e._$Co)==null?void 0:r[n]:e._$Cl;const s=et(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==s&&((h=i==null?void 0:i._$AO)==null||h.call(i,!1),s===void 0?i=void 0:(i=new s(o),i._$AT(o,e,n)),n!==void 0?(e._$Co??(e._$Co=[]))[n]=i:e._$Cl=i),i!==void 0&&(t=W(o,i._$AS(o,t.values),i,n)),t}class de{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:n}=this._$AD,i=((t==null?void 0:t.creationScope)??R).importNode(e,!0);N.currentNode=i;let s=N.nextNode(),r=0,h=0,c=n[0];for(;c!==void 0;){if(r===c.index){let v;c.type===2?v=new st(s,s.nextSibling,this,t):c.type===1?v=new c.ctor(s,c.name,c.strings,this,t):c.type===6&&(v=new be(s,this,t)),this._$AV.push(v),c=n[++h]}r!==(c==null?void 0:c.index)&&(s=N.nextNode(),r++)}return N.currentNode=R,i}p(t){let e=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}}class st{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,n,i){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=i,this._$Cv=(i==null?void 0:i.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=W(this,t,e),et(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==H&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):le(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!==d&&et(this._$AH)?this._$AA.nextSibling.data=t:this.T(R.createTextNode(t)),this._$AH=t}$(t){var s;const{values:e,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=ot.createElement(Zt(n.h,n.h[0]),this.options)),n);if(((s=this._$AH)==null?void 0:s._$AD)===i)this._$AH.p(e);else{const r=new de(i,this),h=r.u(this.options);r.p(e),this.T(h),this._$AH=r}}_$AC(t){let e=jt.get(t.strings);return e===void 0&&jt.set(t.strings,e=new ot(t)),e}k(t){kt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,i=0;for(const s of t)i===e.length?e.push(n=new st(this.O(tt()),this.O(tt()),this,this.options)):n=e[i],n._$AI(s),i++;i<e.length&&(this._$AR(n&&n._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var n;for((n=this._$AP)==null?void 0:n.call(this,!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class dt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,n,i,s){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=d}_$AI(t,e=this,n,i){const s=this.strings;let r=!1;if(s===void 0)t=W(this,t,e,0),r=!et(t)||t!==this._$AH&&t!==H,r&&(this._$AH=t);else{const h=t;let c,v;for(t=s[0],c=0;c<s.length-1;c++)v=W(this,h[n+c],e,c),v===H&&(v=this._$AH[c]),r||(r=!et(v)||v!==this._$AH[c]),v===d?t=d:t!==d&&(t+=(v??"")+s[c+1]),this._$AH[c]=v}r&&!i&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class pe extends dt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}}class ue extends dt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}}class ve extends dt{constructor(t,e,n,i,s){super(t,e,n,i,s),this.type=5}_$AI(t,e=this){if((t=W(this,t,e,0)??d)===H)return;const n=this._$AH,i=t===d&&n!==d||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,s=t!==d&&(n===d||i);i&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class be{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){W(this,t)}}const gt=Q.litHtmlPolyfillSupport;gt==null||gt(ot,st),(Q.litHtmlVersions??(Q.litHtmlVersions=[])).push("3.3.0");const ge=(o,t,e)=>{const n=(e==null?void 0:e.renderBefore)??t;let i=n._$litPart$;if(i===void 0){const s=(e==null?void 0:e.renderBefore)??null;n._$litPart$=i=new st(t.insertBefore(tt(),s),s,void 0,e??{})}return i._$AI(o),i};/**
16
16
  * @license
17
17
  * Copyright 2017 Google LLC
18
18
  * SPDX-License-Identifier: BSD-3-Clause
19
- */const U=globalThis;let g=class extends V{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ve(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return D}};var Ut;g._$litElement$=!0,g.finalized=!0,(Ut=U.litElementHydrateSupport)==null||Ut.call(U,{LitElement:g});const ft=U.litElementPolyfillSupport;ft==null||ft({LitElement:g});(U.litElementVersions??(U.litElementVersions=[])).push("4.2.0");/**
19
+ */const F=globalThis;let b=class extends q{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ge(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return H}};var Ut;b._$litElement$=!0,b.finalized=!0,(Ut=F.litElementHydrateSupport)==null||Ut.call(F,{LitElement:b});const ft=F.litElementPolyfillSupport;ft==null||ft({LitElement:b});(F.litElementVersions??(F.litElementVersions=[])).push("4.2.0");/**
20
20
  * @license
21
21
  * Copyright 2017 Google LLC
22
22
  * SPDX-License-Identifier: BSD-3-Clause
@@ -24,11 +24,11 @@
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */const ge={attribute:!0,type:String,converter:lt,reflect:!1,hasChanged:Ct},be=(o=ge,t,e)=>{const{kind:r,metadata:i}=e;let s=globalThis.litPropertyMetadata.get(i);if(s===void 0&&globalThis.litPropertyMetadata.set(i,s=new Map),r==="setter"&&((o=Object.create(o)).wrapped=!0),s.set(e.name,o),r==="accessor"){const{name:n}=e;return{set(h){const c=t.get.call(this);t.set.call(this,h),this.requestUpdate(n,c,o)},init(h){return h!==void 0&&this.C(n,void 0,o,h),h}}}if(r==="setter"){const{name:n}=e;return function(h){const c=this[n];t.call(this,h),this.requestUpdate(n,c,o)}}throw Error("Unsupported decorator location: "+r)};function a(o){return(t,e)=>typeof e=="object"?be(o,t,e):((r,i,s)=>{const n=i.hasOwnProperty(s);return i.constructor.createProperty(s,r),n?Object.getOwnPropertyDescriptor(i,s):void 0})(o,t,e)}/**
27
+ */const fe={attribute:!0,type:String,converter:ct,reflect:!1,hasChanged:Ct},ye=(o=fe,t,e)=>{const{kind:n,metadata:i}=e;let s=globalThis.litPropertyMetadata.get(i);if(s===void 0&&globalThis.litPropertyMetadata.set(i,s=new Map),n==="setter"&&((o=Object.create(o)).wrapped=!0),s.set(e.name,o),n==="accessor"){const{name:r}=e;return{set(h){const c=t.get.call(this);t.set.call(this,h),this.requestUpdate(r,c,o)},init(h){return h!==void 0&&this.C(r,void 0,o,h),h}}}if(n==="setter"){const{name:r}=e;return function(h){const c=this[r];t.call(this,h),this.requestUpdate(r,c,o)}}throw Error("Unsupported decorator location: "+n)};function a(o){return(t,e)=>typeof e=="object"?ye(o,t,e):((n,i,s)=>{const r=i.hasOwnProperty(s);return i.constructor.createProperty(s,n),r?Object.getOwnPropertyDescriptor(i,s):void 0})(o,t,e)}/**
28
28
  * @license
29
29
  * Copyright 2017 Google LLC
30
30
  * SPDX-License-Identifier: BSD-3-Clause
31
- */function N(o){return a({...o,state:!0,attribute:!1})}const fe=y`
31
+ */function V(o){return a({...o,state:!0,attribute:!1})}const qt=y`
32
32
  outline: 1px dashed var(--button-border-color);
33
33
  outline-offset: 2px;
34
34
  outline: dashed black;
@@ -40,11 +40,11 @@
40
40
  * @license
41
41
  * Copyright 2023 Google LLC
42
42
  * SPDX-License-Identifier: Apache-2.0
43
- */const At=Symbol("internals"),yt=Symbol("privateInternals");function ye(o){var t;class e extends o{get[(t=At,t)](){return this[yt]||(this[yt]=this.attachInternals()),this[yt]}}return e}/**
43
+ */const At=Symbol("internals"),yt=Symbol("privateInternals");function Wt(o){var t;class e extends o{get[(t=At,t)](){return this[yt]||(this[yt]=this.attachInternals()),this[yt]}}return e}/**
44
44
  * @license
45
45
  * Copyright 2023 Google LLC
46
46
  * SPDX-License-Identifier: Apache-2.0
47
- */function me(o){o.addInitializer(t=>{const e=t;e.addEventListener("click",async r=>{const{type:i,[At]:s}=e,{form:n}=s;if(!(!n||i==="button")&&(await new Promise(h=>{setTimeout(h)}),!r.defaultPrevented)){if(i==="reset"){n.reset();return}n.addEventListener("submit",h=>{Object.defineProperty(h,"submitter",{configurable:!0,enumerable:!0,get:()=>e})},{capture:!0,once:!0}),s.setFormValue(e.value),n.requestSubmit()}})})}const we=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
47
+ */function me(o){o.addInitializer(t=>{const e=t;e.addEventListener("click",async n=>{const{type:i,[At]:s}=e,{form:r}=s;if(!(!r||i==="button")&&(await new Promise(h=>{setTimeout(h)}),!n.defaultPrevented)){if(i==="reset"){r.reset();return}r.addEventListener("submit",h=>{Object.defineProperty(h,"submitter",{configurable:!0,enumerable:!0,get:()=>e})},{capture:!0,once:!0}),s.setFormValue(e.value),r.requestSubmit()}})})}const we=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
48
48
  <path d="M8 3.6275C7.06799 0.971489 3.25399 -0.0226278 1.67414 2.30983C0.0877404 4.65197 1.67414 6.99412 2.62598 8.33249C3.0147 8.87905 8 14 8 14C8 14 12.9853 8.87905 13.374 8.33249C14.3259 6.99412 15.9123 4.65197 14.3259 2.30983C12.746 -0.0226277 8.97167 0.971489 8 3.6275Z" stroke="#3F2B2E" stroke-linecap="round"/>
49
49
  </svg>
50
50
  `,xe=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -122,22 +122,22 @@
122
122
  <rect x="1" width="2" height="8" fill="#3F2B2E"/>
123
123
  <rect x="5" width="2" height="8" fill="#3F2B2E"/>
124
124
  </svg>
125
- `,Fe=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
125
+ `,Ne=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
126
126
  <path d="M10.5037 5.99925C10.7795 5.99925 11.0037 6.22311 11.0037 6.49925V14.2922L13.1462 12.1448C13.3411 11.9498 13.6573 11.95 13.8523 12.1448H13.8533C14.0482 12.34 14.0481 12.6565 13.8533 12.8518L10.8572 15.8518C10.6618 16.0471 10.3455 16.0471 10.1501 15.8518L7.15406 12.8518C6.96522 12.6557 6.96774 12.3444 7.15992 12.1516C7.35242 11.9588 7.66416 11.9556 7.86011 12.1448L10.0046 14.2922V6.49925C10.0046 6.22319 10.228 5.99938 10.5037 5.99925ZM5.15699 0.145737C5.35218 -0.0485278 5.66791 -0.0486304 5.86304 0.145737L8.85913 3.14574C9.04829 3.34183 9.04562 3.65402 8.85327 3.84691C8.66066 4.03978 8.34902 4.04225 8.15308 3.85277L6.00952 1.70628V9.49925C6.0095 9.77533 5.78621 9.99918 5.5105 9.99925C5.23473 9.99925 5.0115 9.77538 5.01148 9.49925V1.70628L2.86695 3.85179C2.74288 3.98695 2.55447 4.04321 2.37671 3.99828C2.1991 3.95328 2.06051 3.81475 2.01538 3.63695C1.97026 3.45902 2.02608 3.27015 2.16089 3.14574L5.15699 0.145737Z" fill="#001022"/>
127
127
  </svg>
128
- `,G={wishlist:we,playerv:xe,chevronRight:$e,chevronLeft:_e,icoPlus:Oe,icoMinus:Pe,"star-0":Ce,"star-25":ke,"star-50":Ae,"star-75":Se,"star-100":Ee,cross:Le,search:Ie,arrowLeft:Be,arrowTop:ze,cart:De,notifyme:He,triangledown:Me,triangleup:Te,checkstroke:je,pause:Ue,mapDualArrow:Fe};/**
128
+ `,X={wishlist:we,playerv:xe,chevronRight:$e,chevronLeft:_e,icoPlus:Oe,icoMinus:Pe,"star-0":Ce,"star-25":ke,"star-50":Ae,"star-75":Se,"star-100":Ee,cross:Le,search:Ie,arrowLeft:Be,arrowTop:ze,cart:De,notifyme:He,triangledown:Me,triangleup:Te,checkstroke:je,pause:Ue,mapDualArrow:Ne};/**
129
129
  * @license
130
130
  * Copyright 2017 Google LLC
131
131
  * SPDX-License-Identifier: BSD-3-Clause
132
- */const qt={ATTRIBUTE:1,CHILD:2},Wt=o=>(...t)=>({_$litDirective$:o,values:t});let Kt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this._$Ct=t,this._$AM=e,this._$Ci=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};/**
132
+ */const Kt={ATTRIBUTE:1,CHILD:2},Gt=o=>(...t)=>({_$litDirective$:o,values:t});let Xt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,n){this._$Ct=t,this._$AM=e,this._$Ci=n}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};/**
133
133
  * @license
134
134
  * Copyright 2017 Google LLC
135
135
  * SPDX-License-Identifier: BSD-3-Clause
136
- */class mt extends Kt{constructor(t){if(super(t),this.it=d,t.type!==qt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===d||t==null)return this._t=void 0,this.it=t;if(t===D)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}mt.directiveName="unsafeHTML",mt.resultType=1;/**
136
+ */class mt extends Xt{constructor(t){if(super(t),this.it=d,t.type!==Kt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===d||t==null)return this._t=void 0,this.it=t;if(t===H)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}mt.directiveName="unsafeHTML",mt.resultType=1;/**
137
137
  * @license
138
138
  * Copyright 2017 Google LLC
139
139
  * SPDX-License-Identifier: BSD-3-Clause
140
- */class wt extends mt{}wt.directiveName="unsafeSVG",wt.resultType=2;const H=Wt(wt);var Ne=Object.defineProperty,Re=Object.getOwnPropertyDescriptor,w=(o,t,e,r)=>{for(var i=r>1?void 0:r?Re(t,e):t,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(t,e,i):n(i))||i);return r&&i&&Ne(t,e,i),i};const Ve=ye(g);let u=class extends Ve{constructor(){super(...arguments),this.type="submit",this.value="",this.variant="primary",this.text="",this.textsecond="",this.fullwidth=!1,this.disabled=!1,this.startIconModel="",this.endIconModel="",this.startIcon=!1,this.endIcon=!1,this.panelTarget="",this.href="",this.target=""}get name(){return this.getAttribute("name")??""}set name(o){this.setAttribute("name",o)}get form(){return this[At].form}handleClick(){if(this.panelTarget){const o=document.getElementById(this.panelTarget);o!=null&&o.openPanel&&typeof o.openPanel=="function"?o.openPanel():console.warn(`[o-button] No side panel with id="${this.panelTarget}" found or it does not have an openPanel method.`)}}render(){return this.href?this.renderLink():this.renderButton()}renderIcon(o){const t=o==="start"?this.startIconModel:this.endIconModel;if(!t)return d;const e=G[t].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"');return l`<span class="${o==="start"?"icon-start":"icon-end"}">${H(e)}</span>`}renderButton(){const o=this.text||this.textsecond;return l`
140
+ */class wt extends mt{}wt.directiveName="unsafeSVG",wt.resultType=2;const M=Gt(wt);var Fe=Object.defineProperty,Re=Object.getOwnPropertyDescriptor,w=(o,t,e,n)=>{for(var i=n>1?void 0:n?Re(t,e):t,s=o.length-1,r;s>=0;s--)(r=o[s])&&(i=(n?r(t,e,i):r(i))||i);return n&&i&&Fe(t,e,i),i};const Ve=Wt(b);let u=class extends Ve{constructor(){super(...arguments),this.type="submit",this.value="",this.variant="primary",this.text="",this.textsecond="",this.fullwidth=!1,this.disabled=!1,this.startIconModel="",this.endIconModel="",this.startIcon=!1,this.endIcon=!1,this.panelTarget="",this.href="",this.target=""}get name(){return this.getAttribute("name")??""}set name(o){this.setAttribute("name",o)}get form(){return this[At].form}handleClick(){if(this.panelTarget){const o=document.getElementById(this.panelTarget);o!=null&&o.openPanel&&typeof o.openPanel=="function"?o.openPanel():console.warn(`[o-button] No side panel with id="${this.panelTarget}" found or it does not have an openPanel method.`)}}render(){return this.href?this.renderLink():this.renderButton()}renderIcon(o){const t=o==="start"?this.startIconModel:this.endIconModel;if(!t)return d;const e=X[t].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"');return l`<span class="${o==="start"?"icon-start":"icon-end"}">${M(e)}</span>`}renderButton(){const o=this.text||this.textsecond;return l`
141
141
  <button type=${this.type} class="button" ?disabled=${this.disabled} @click=${this.handleClick}>
142
142
  ${this.startIcon?this.renderIcon("start"):d}
143
143
  ${o?l`
@@ -272,7 +272,7 @@
272
272
  }
273
273
 
274
274
  .button:focus-visible {
275
- ${fe};
275
+ ${qt};
276
276
  }
277
277
 
278
278
  span.text + span.text::before {
@@ -322,12 +322,12 @@
322
322
  transform: translateX(4px);
323
323
  }
324
324
  //End icon movment on hover
325
- `;w([a()],u.prototype,"type",2);w([a({reflect:!0})],u.prototype,"value",2);w([a({type:String,reflect:!0})],u.prototype,"variant",2);w([a({type:String})],u.prototype,"text",2);w([a({type:String})],u.prototype,"textsecond",2);w([a({type:Boolean,reflect:!0})],u.prototype,"fullwidth",2);w([a({type:Boolean,reflect:!0})],u.prototype,"disabled",2);w([a({type:String,reflect:!0})],u.prototype,"startIconModel",2);w([a({type:String,reflect:!0})],u.prototype,"endIconModel",2);w([a({type:Boolean,reflect:!0,attribute:"starticon"})],u.prototype,"startIcon",2);w([a({type:Boolean,reflect:!0,attribute:"endicon"})],u.prototype,"endIcon",2);w([a({type:String,attribute:"paneltarget",reflect:!0})],u.prototype,"panelTarget",2);w([a({type:String})],u.prototype,"href",2);w([a({type:String})],u.prototype,"target",2);u=w([x("o-button")],u);var Ze=Object.defineProperty,qe=Object.getOwnPropertyDescriptor,dt=(o,t,e,r)=>{for(var i=r>1?void 0:r?qe(t,e):t,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(t,e,i):n(i))||i);return r&&i&&Ze(t,e,i),i};let q=class extends g{constructor(){super(...arguments),this.status="empty",this.ariaDescribedBy="a-product-name",this.label="Add to wishlist",this.toggleStatus=()=>{this.status=this.status==="empty"?"filled":"empty",this.setAttribute("aria-pressed",String(this.status==="filled")),this.dispatchEvent(new CustomEvent("wishlist-toggle",{detail:{status:this.status},bubbles:!0,composed:!0}))}}connectedCallback(){super.connectedCallback(),this.setAttribute("tabindex","0"),this.setAttribute("role","button"),this.setAttribute("aria-pressed",String(this.status==="filled"))}firstUpdated(){this.addEventListener("click",this.toggleStatus),this.addEventListener("keydown",this.handleKeydown)}handleKeydown(o){(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),this.toggleStatus())}render(){const o=G.wishlist.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"');return l`
325
+ `;w([a()],u.prototype,"type",2);w([a({reflect:!0})],u.prototype,"value",2);w([a({type:String,reflect:!0})],u.prototype,"variant",2);w([a({type:String})],u.prototype,"text",2);w([a({type:String})],u.prototype,"textsecond",2);w([a({type:Boolean,reflect:!0})],u.prototype,"fullwidth",2);w([a({type:Boolean,reflect:!0})],u.prototype,"disabled",2);w([a({type:String,reflect:!0})],u.prototype,"startIconModel",2);w([a({type:String,reflect:!0})],u.prototype,"endIconModel",2);w([a({type:Boolean,reflect:!0,attribute:"starticon"})],u.prototype,"startIcon",2);w([a({type:Boolean,reflect:!0,attribute:"endicon"})],u.prototype,"endIcon",2);w([a({type:String,attribute:"paneltarget",reflect:!0})],u.prototype,"panelTarget",2);w([a({type:String})],u.prototype,"href",2);w([a({type:String})],u.prototype,"target",2);u=w([x("o-button")],u);var Ze=Object.defineProperty,qe=Object.getOwnPropertyDescriptor,pt=(o,t,e,n)=>{for(var i=n>1?void 0:n?qe(t,e):t,s=o.length-1,r;s>=0;s--)(r=o[s])&&(i=(n?r(t,e,i):r(i))||i);return n&&i&&Ze(t,e,i),i};let K=class extends b{constructor(){super(...arguments),this.status="empty",this.ariaDescribedBy="a-product-name",this.label="Add to wishlist",this.toggleStatus=()=>{this.status=this.status==="empty"?"filled":"empty",this.setAttribute("aria-pressed",String(this.status==="filled")),this.dispatchEvent(new CustomEvent("wishlist-toggle",{detail:{status:this.status},bubbles:!0,composed:!0}))}}connectedCallback(){super.connectedCallback(),this.setAttribute("tabindex","0"),this.setAttribute("role","button"),this.setAttribute("aria-pressed",String(this.status==="filled"))}firstUpdated(){this.addEventListener("click",this.toggleStatus),this.addEventListener("keydown",this.handleKeydown)}handleKeydown(o){(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),this.toggleStatus())}render(){const o=X.wishlist.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"');return l`
326
326
  <button type="button" aria-describedby="${this.ariaDescribedBy}" class="wishlist-button">
327
327
  <span class="sr-only">${this.label}</span>
328
- ${H(o)}
328
+ ${M(o)}
329
329
  </button>
330
- `}setStatus(o){this.status=o,this.setAttribute("aria-pressed",String(this.status==="filled")),this.requestUpdate()}setAriaDescribedBy(o){this.ariaDescribedBy=o,this.requestUpdate()}setLabel(o){this.label=o,this.requestUpdate()}};q.styles=y`
330
+ `}setStatus(o){this.status=o,this.setAttribute("aria-pressed",String(this.status==="filled")),this.requestUpdate()}setAriaDescribedBy(o){this.ariaDescribedBy=o,this.requestUpdate()}setLabel(o){this.label=o,this.requestUpdate()}};K.styles=y`
331
331
  :host {
332
332
  display: inline-flex;
333
333
  justify-content: center;
@@ -390,14 +390,14 @@
390
390
  width: 0.1rem !important;
391
391
  white-space: nowrap !important;
392
392
  }
393
- `;dt([a({type:String,reflect:!0})],q.prototype,"status",2);dt([a({type:String,reflect:!0})],q.prototype,"ariaDescribedBy",2);dt([a({type:String,reflect:!0})],q.prototype,"label",2);q=dt([x("o-wishlist-button")],q);/**
393
+ `;pt([a({type:String,reflect:!0})],K.prototype,"status",2);pt([a({type:String,reflect:!0})],K.prototype,"ariaDescribedBy",2);pt([a({type:String,reflect:!0})],K.prototype,"label",2);K=pt([x("o-wishlist-button")],K);/**
394
394
  * @license
395
395
  * Copyright 2018 Google LLC
396
396
  * SPDX-License-Identifier: BSD-3-Clause
397
- */const $=o=>o??d;var We=Object.defineProperty,Ke=Object.getOwnPropertyDescriptor,S=(o,t,e,r)=>{for(var i=r>1?void 0:r?Ke(t,e):t,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(t,e,i):n(i))||i);return r&&i&&We(t,e,i),i};let _=class extends g{constructor(){super(...arguments),this.bgstyle="background-light",this.size="medium",this.status="empty",this.type="button",this.strokewidth="1",this.icon="wishlist",this.disabled=!1,this.showSrLabel=!1,this.srLabel=""}updated(o){super.updated(o),this.style.setProperty("--icon-stroke-width",this.strokewidth)}render(){const o=G[this.icon]??"",t=`icon-${this.icon}`,e=o.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"'),r=this.showSrLabel?l`<span class="sr-only">${this.srLabel}</span>`:null,i=this.showSrLabel?null:"icon";return l`
397
+ */const $=o=>o??d;var We=Object.defineProperty,Ke=Object.getOwnPropertyDescriptor,E=(o,t,e,n)=>{for(var i=n>1?void 0:n?Ke(t,e):t,s=o.length-1,r;s>=0;s--)(r=o[s])&&(i=(n?r(t,e,i):r(i))||i);return n&&i&&We(t,e,i),i};let _=class extends b{constructor(){super(...arguments),this.bgstyle="background-light",this.size="medium",this.status="empty",this.type="button",this.strokewidth="1",this.icon="wishlist",this.disabled=!1,this.showSrLabel=!1,this.srLabel=""}updated(o){super.updated(o),this.style.setProperty("--icon-stroke-width",this.strokewidth)}render(){const o=X[this.icon]??"",t=`icon-${this.icon}`,e=o.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"'),n=this.showSrLabel?l`<span class="sr-only">${this.srLabel}</span>`:null,i=this.showSrLabel?null:"icon";return l`
398
398
  ${this.type==="span"?l`
399
399
  <span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}" ?disabled="${this.disabled}">
400
- ${H(e)}
400
+ ${M(e)}
401
401
  </span>
402
402
  `:l`
403
403
  <button
@@ -406,8 +406,8 @@
406
406
  class="icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}"
407
407
  ?disabled="${this.disabled}"
408
408
  >
409
- ${H(e)}
410
- ${r}
409
+ ${M(e)}
410
+ ${n}
411
411
  </button>
412
412
  `}
413
413
  `}};_.styles=y`
@@ -616,7 +616,7 @@
616
616
  .sr-only {
617
617
  display: none;
618
618
  }
619
- `;S([a({type:String,reflect:!0})],_.prototype,"bgstyle",2);S([a({type:String,reflect:!0})],_.prototype,"size",2);S([a({type:String,reflect:!0})],_.prototype,"status",2);S([a({type:String,reflect:!0})],_.prototype,"type",2);S([a({type:String})],_.prototype,"strokewidth",2);S([a({type:String})],_.prototype,"icon",2);S([a({type:Boolean,reflect:!0})],_.prototype,"disabled",2);S([a({type:Boolean})],_.prototype,"showSrLabel",2);S([a({type:String})],_.prototype,"srLabel",2);_=S([x("o-icon-button")],_);var Ge=Object.defineProperty,Xe=Object.getOwnPropertyDescriptor,R=(o,t,e,r)=>{for(var i=r>1?void 0:r?Xe(t,e):t,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(t,e,i):n(i))||i);return r&&i&&Ge(t,e,i),i};let I=class extends g{constructor(){super(...arguments),this.href="",this.target="",this.template="standard",this.inverse=!1,this.endIcon=!1,this.reverseEndIcon=!1}_handleClick(o){(!this.href||this.href==="#")&&o.preventDefault()}render(){const o=this.href||"#";return l`
619
+ `;E([a({type:String,reflect:!0})],_.prototype,"bgstyle",2);E([a({type:String,reflect:!0})],_.prototype,"size",2);E([a({type:String,reflect:!0})],_.prototype,"status",2);E([a({type:String,reflect:!0})],_.prototype,"type",2);E([a({type:String})],_.prototype,"strokewidth",2);E([a({type:String})],_.prototype,"icon",2);E([a({type:Boolean,reflect:!0})],_.prototype,"disabled",2);E([a({type:Boolean})],_.prototype,"showSrLabel",2);E([a({type:String})],_.prototype,"srLabel",2);_=E([x("o-icon-button")],_);var Ge=Object.defineProperty,Xe=Object.getOwnPropertyDescriptor,Z=(o,t,e,n)=>{for(var i=n>1?void 0:n?Xe(t,e):t,s=o.length-1,r;s>=0;s--)(r=o[s])&&(i=(n?r(t,e,i):r(i))||i);return n&&i&&Ge(t,e,i),i};let O=class extends b{constructor(){super(...arguments),this.href="",this.target="",this.template="standard",this.inverse=!1,this.endIcon=!1,this.reverseEndIcon=!1}_handleClick(o){(!this.href||this.href==="#")&&o.preventDefault()}render(){const o=this.href||"#";return l`
620
620
  <a
621
621
  href="${o}"
622
622
  target="${$(this.target||void 0)}"
@@ -642,7 +642,7 @@
642
642
  ></o-icon-button>
643
643
  `:null}
644
644
  </a>
645
- `}};I.styles=y`
645
+ `}};O.styles=y`
646
646
  :host([template="standard"]) a {
647
647
  color: var(--color-content-action-secondary);
648
648
  font-size: var(--font-size-200);
@@ -729,14 +729,14 @@
729
729
  height: 1px;
730
730
  }
731
731
  /* End of underline effect */
732
- `;R([a({type:String})],I.prototype,"href",2);R([a({type:String})],I.prototype,"target",2);R([a({type:String,reflect:!0})],I.prototype,"template",2);R([a({type:Boolean,reflect:!0})],I.prototype,"inverse",2);R([a({type:Boolean,reflect:!0})],I.prototype,"endIcon",2);R([a({type:Boolean,reflect:!0})],I.prototype,"reverseEndIcon",2);I=R([x("o-link")],I);var Je=Object.defineProperty,Ye=Object.getOwnPropertyDescriptor,pt=(o,t,e,r)=>{for(var i=r>1?void 0:r?Ye(t,e):t,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(t,e,i):n(i))||i);return r&&i&&Je(t,e,i),i};let W=class extends g{constructor(){super(...arguments),this.rating=0}getStarKeys(){const o=[];for(let t=0;t<5;t++){const e=this.rating-t;let r;e>=1?r=100:e<=0?r=0:r=Math.round(e*100/25)*25,o.push(`star-${r}`)}return o}render(){const o=this.getStarKeys();return l`
732
+ `;Z([a({type:String})],O.prototype,"href",2);Z([a({type:String})],O.prototype,"target",2);Z([a({type:String,reflect:!0})],O.prototype,"template",2);Z([a({type:Boolean,reflect:!0})],O.prototype,"inverse",2);Z([a({type:Boolean,reflect:!0})],O.prototype,"endIcon",2);Z([a({type:Boolean,reflect:!0})],O.prototype,"reverseEndIcon",2);O=Z([x("o-link")],O);var Je=Object.defineProperty,Ye=Object.getOwnPropertyDescriptor,ut=(o,t,e,n)=>{for(var i=n>1?void 0:n?Ye(t,e):t,s=o.length-1,r;s>=0;s--)(r=o[s])&&(i=(n?r(t,e,i):r(i))||i);return n&&i&&Je(t,e,i),i};let G=class extends b{constructor(){super(...arguments),this.rating=0}getStarKeys(){const o=[];for(let t=0;t<5;t++){const e=this.rating-t;let n;e>=1?n=100:e<=0?n=0:n=Math.round(e*100/25)*25,o.push(`star-${n}`)}return o}render(){const o=this.getStarKeys();return l`
733
733
  <div class="rating">
734
734
  <div class="stars">
735
- ${o.map(t=>l`<span class="star">${H(G[t]??"")}</span>`)}
735
+ ${o.map(t=>l`<span class="star">${M(X[t]??"")}</span>`)}
736
736
  </div>
737
737
  ${this.reviewCount!=null&&this.href!=null?l`<o-link template="review" href="${this.href}">${this.reviewCount}</o-link>`:null}
738
738
  </div>
739
- `}};W.styles=y`
739
+ `}};G.styles=y`
740
740
  svg {
741
741
  width: 12px;
742
742
  height: 12px;
@@ -769,7 +769,7 @@
769
769
  text-decoration: underline;
770
770
  cursor: pointer;
771
771
  }
772
- `;pt([a({type:Number})],W.prototype,"rating",2);pt([a({type:String})],W.prototype,"reviewCount",2);pt([a({type:String})],W.prototype,"href",2);W=pt([x("o-rating")],W);var Qe=Object.defineProperty,to=Object.getOwnPropertyDescriptor,m=(o,t,e,r)=>{for(var i=r>1?void 0:r?to(t,e):t,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(t,e,i):n(i))||i);return r&&i&&Qe(t,e,i),i};let b=class extends g{constructor(){super(...arguments),this.open=!1,this.showHeader=!0,this.showFooter=!1,this.showHeaderStartIcon=!1,this.headerTitle="",this.closeButtonLabel="Close the modal",this.firstButtonLabel="Close",this.firstButtonVariant="primary",this.secondaryButtonLabel="",this.secondaryButtonVariant="secondary",this.disablePortal=!1,this.zIndex=99,this.initialized=!1,this.previousFocusedElement=null,this.handleKeyDown=o=>{this.open&&(o.key==="Escape"?this.closePanel():o.key==="Tab"&&this.trapFocus(o))}}connectedCallback(){super.connectedCallback(),!this.disablePortal&&this.parentElement!==document.body&&document.body.appendChild(this),window.addEventListener("keydown",this.handleKeyDown),this.updateComplete.then(()=>{this.initialized=!0})}disconnectedCallback(){document.body.style.overflow="",document.body.removeAttribute("data-side-panel"),window.removeEventListener("keydown",this.handleKeyDown),super.disconnectedCallback()}trapFocus(o){const t=this.getFocusableElements();if(t.length===0)return;const e=t[0],r=t[t.length-1];o.shiftKey&&document.activeElement===e?(o.preventDefault(),r.focus()):!o.shiftKey&&document.activeElement===r&&(o.preventDefault(),e.focus())}getFocusableElements(){const o=this.renderRoot.querySelector(".panel");return o?Array.from(o.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')).filter(t=>!t.hasAttribute("disabled")):[]}openPanel(){this.previousFocusedElement=document.activeElement,this.open=!0,document.body.style.overflow="hidden",document.body.setAttribute("data-side-panel","open"),this.updateComplete.then(()=>{const o=this.getFocusableElements()[0];o==null||o.focus()})}closePanel(){var o;this.open=!1,document.body.style.overflow="",document.body.removeAttribute("data-side-panel"),(o=this.previousFocusedElement)==null||o.focus(),this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}handleFirstClick(){typeof this.onFirstButtonClick=="function"&&this.onFirstButtonClick(),this.closePanel()}handleSecondaryClick(){typeof this.onSecondaryButtonClick=="function"&&this.onSecondaryButtonClick(),this.closePanel()}updated(){this.style.setProperty("--z-overlay",`${this.zIndex}`),this.style.setProperty("--z-panel",`${this.zIndex+1}`)}render(){return l`
772
+ `;ut([a({type:Number})],G.prototype,"rating",2);ut([a({type:String})],G.prototype,"reviewCount",2);ut([a({type:String})],G.prototype,"href",2);G=ut([x("o-rating")],G);var Qe=Object.defineProperty,to=Object.getOwnPropertyDescriptor,m=(o,t,e,n)=>{for(var i=n>1?void 0:n?to(t,e):t,s=o.length-1,r;s>=0;s--)(r=o[s])&&(i=(n?r(t,e,i):r(i))||i);return n&&i&&Qe(t,e,i),i};let g=class extends b{constructor(){super(...arguments),this.open=!1,this.showHeader=!0,this.showFooter=!1,this.showHeaderStartIcon=!1,this.headerTitle="",this.closeButtonLabel="Close the modal",this.firstButtonLabel="Close",this.firstButtonVariant="primary",this.secondaryButtonLabel="",this.secondaryButtonVariant="secondary",this.disablePortal=!1,this.zIndex=99,this.initialized=!1,this.previousFocusedElement=null,this.handleKeyDown=o=>{this.open&&(o.key==="Escape"?this.closePanel():o.key==="Tab"&&this.trapFocus(o))}}connectedCallback(){super.connectedCallback(),!this.disablePortal&&this.parentElement!==document.body&&document.body.appendChild(this),window.addEventListener("keydown",this.handleKeyDown),this.updateComplete.then(()=>{this.initialized=!0})}disconnectedCallback(){document.body.style.overflow="",document.body.removeAttribute("data-side-panel"),window.removeEventListener("keydown",this.handleKeyDown),super.disconnectedCallback()}trapFocus(o){const t=this.getFocusableElements();if(t.length===0)return;const e=t[0],n=t[t.length-1];o.shiftKey&&document.activeElement===e?(o.preventDefault(),n.focus()):!o.shiftKey&&document.activeElement===n&&(o.preventDefault(),e.focus())}getFocusableElements(){const o=this.renderRoot.querySelector(".panel");return o?Array.from(o.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')).filter(t=>!t.hasAttribute("disabled")):[]}openPanel(){this.previousFocusedElement=document.activeElement,this.open=!0,document.body.style.overflow="hidden",document.body.setAttribute("data-side-panel","open"),this.updateComplete.then(()=>{const o=this.getFocusableElements()[0];o==null||o.focus()})}closePanel(){var o;this.open=!1,document.body.style.overflow="",document.body.removeAttribute("data-side-panel"),(o=this.previousFocusedElement)==null||o.focus(),this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}handleFirstClick(){typeof this.onFirstButtonClick=="function"&&this.onFirstButtonClick(),this.closePanel()}handleSecondaryClick(){typeof this.onSecondaryButtonClick=="function"&&this.onSecondaryButtonClick(),this.closePanel()}updated(){this.style.setProperty("--z-overlay",`${this.zIndex}`),this.style.setProperty("--z-panel",`${this.zIndex+1}`)}render(){return l`
773
773
  <div class="overlay" style="z-index: ${this.zIndex}" @click=${this.closePanel}></div>
774
774
  <div
775
775
  class="panel"
@@ -815,7 +815,7 @@
815
815
  </div>
816
816
  `:null}
817
817
  </div>
818
- `}};b.styles=y`
818
+ `}};g.styles=y`
819
819
  :host {
820
820
  --z-overlay: 99;
821
821
  --z-panel: 100;
@@ -955,7 +955,7 @@
955
955
  --line-height: var(--line-height-280);
956
956
  }
957
957
  }
958
- `;m([a({type:Boolean,reflect:!0})],b.prototype,"open",2);m([a({type:Boolean,reflect:!0})],b.prototype,"showHeader",2);m([a({type:Boolean,reflect:!0})],b.prototype,"showFooter",2);m([a({type:Boolean,reflect:!0})],b.prototype,"showHeaderStartIcon",2);m([a({type:String,reflect:!0})],b.prototype,"headerTitle",2);m([a({type:String,reflect:!0})],b.prototype,"closeButtonLabel",2);m([a({type:String,reflect:!0})],b.prototype,"firstButtonLabel",2);m([a({type:String,reflect:!0})],b.prototype,"firstButtonVariant",2);m([a({type:Function})],b.prototype,"onFirstButtonClick",2);m([a({type:String,reflect:!0})],b.prototype,"secondaryButtonLabel",2);m([a({type:String,reflect:!0})],b.prototype,"secondaryButtonVariant",2);m([a({type:Function})],b.prototype,"onSecondaryButtonClick",2);m([a({type:Boolean,reflect:!0})],b.prototype,"disablePortal",2);m([a({type:Number,reflect:!0})],b.prototype,"zIndex",2);m([a({type:Boolean,reflect:!0})],b.prototype,"initialized",2);b=m([x("o-side-panel")],b);var eo=Object.defineProperty,oo=Object.getOwnPropertyDescriptor,M=(o,t,e,r)=>{for(var i=r>1?void 0:r?oo(t,e):t,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(t,e,i):n(i))||i);return r&&i&&eo(t,e,i),i};let A=class extends g{constructor(){super(...arguments),this.thumbnails=[],this.activeIndex=0,this.disabledIndexes=[],this.maxWidth="100%",this.altressource="visual",this.focusedIndex=0,this.playerIconTemplate=l`
958
+ `;m([a({type:Boolean,reflect:!0})],g.prototype,"open",2);m([a({type:Boolean,reflect:!0})],g.prototype,"showHeader",2);m([a({type:Boolean,reflect:!0})],g.prototype,"showFooter",2);m([a({type:Boolean,reflect:!0})],g.prototype,"showHeaderStartIcon",2);m([a({type:String,reflect:!0})],g.prototype,"headerTitle",2);m([a({type:String,reflect:!0})],g.prototype,"closeButtonLabel",2);m([a({type:String,reflect:!0})],g.prototype,"firstButtonLabel",2);m([a({type:String,reflect:!0})],g.prototype,"firstButtonVariant",2);m([a({type:Function})],g.prototype,"onFirstButtonClick",2);m([a({type:String,reflect:!0})],g.prototype,"secondaryButtonLabel",2);m([a({type:String,reflect:!0})],g.prototype,"secondaryButtonVariant",2);m([a({type:Function})],g.prototype,"onSecondaryButtonClick",2);m([a({type:Boolean,reflect:!0})],g.prototype,"disablePortal",2);m([a({type:Number,reflect:!0})],g.prototype,"zIndex",2);m([a({type:Boolean,reflect:!0})],g.prototype,"initialized",2);g=m([x("o-side-panel")],g);var eo=Object.defineProperty,oo=Object.getOwnPropertyDescriptor,T=(o,t,e,n)=>{for(var i=n>1?void 0:n?oo(t,e):t,s=o.length-1,r;s>=0;s--)(r=o[s])&&(i=(n?r(t,e,i):r(i))||i);return n&&i&&eo(t,e,i),i};let A=class extends b{constructor(){super(...arguments),this.thumbnails=[],this.activeIndex=0,this.disabledIndexes=[],this.maxWidth="100%",this.altressource="visual",this.focusedIndex=0,this.playerIconTemplate=l`
959
959
  <o-icon-button
960
960
  icon="playerv"
961
961
  size="xsmall"
@@ -966,19 +966,19 @@
966
966
  ></o-icon-button>
967
967
  `}handleKeyDown(o){o.key==="ArrowRight"?(o.preventDefault(),this.focusNext()):o.key==="ArrowLeft"?(o.preventDefault(),this.focusPrevious()):(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),this.selectThumbnail(this.focusedIndex))}focusNext(){let o=this.focusedIndex+1;for(;this.disabledIndexes.includes(o)&&o<this.thumbnails.length;)o++;o<this.thumbnails.length&&(this.focusedIndex=o,this.focusThumbnail(o))}focusPrevious(){let o=this.focusedIndex-1;for(;this.disabledIndexes.includes(o)&&o>=0;)o--;o>=0&&(this.focusedIndex=o,this.focusThumbnail(o))}focusThumbnail(o){const t=this.renderRoot.querySelector(`[data-index="${o}"]`);t==null||t.focus()}selectThumbnail(o){this.disabledIndexes.includes(o)||(this.activeIndex=o,this.swiperInstance&&typeof this.swiperInstance.slideTo=="function"&&this.swiperInstance.slideTo(o),this.dispatchEvent(new CustomEvent("thumbnail-select",{detail:{index:o}})))}onFocus(o){const t=o.currentTarget,e=Number(t.dataset.index);this.focusedIndex=e,this.renderRoot.querySelectorAll(".thumb").forEach(i=>{i.classList.remove("a--tabfocus")}),t.classList.add("a--tabfocus"),this.requestUpdate()}onBlur(o){setTimeout(()=>{var e;const t=(e=this.shadowRoot)==null?void 0:e.activeElement;(!t||!t.classList.contains("thumb"))&&this.renderRoot.querySelectorAll(".thumb").forEach(i=>i.classList.remove("a--tabfocus"))},0)}render(){return l`
968
968
  <ul class="scroll-container" style="max-width: ${this.maxWidth};">
969
- ${this.thumbnails.map((o,t)=>{const e=this.disabledIndexes.includes(t),r=this.activeIndex===t,i=o.type==="video",s=i?`video ${t}`:`${this.altressource} ${t+1}`;return l`
969
+ ${this.thumbnails.map((o,t)=>{const e=this.disabledIndexes.includes(t),n=this.activeIndex===t,i=o.type==="video",s=i?`video ${t}`:`${this.altressource} ${t+1}`;return l`
970
970
  <li class="thumb-wrapper">
971
971
  <button
972
972
  class="thumb"
973
973
  data-index="${t}"
974
974
  ?disabled=${e}
975
975
  aria-selected="${this.focusedIndex===t}"
976
- aria-current=${r?"true":"false"}
976
+ aria-current=${n?"true":"false"}
977
977
  tabindex="${this.disabledIndexes.includes(t)?-1:0}"
978
978
  @click=${()=>this.selectThumbnail(t)}
979
979
  @keydown=${this.handleKeyDown}
980
- @focus=${n=>this.onFocus(n)}
981
- @blur=${n=>this.onBlur(n)}
980
+ @focus=${r=>this.onFocus(r)}
981
+ @blur=${r=>this.onBlur(r)}
982
982
  >
983
983
  <img alt="${s}" src="${o.src}" />
984
984
  </button>
@@ -1091,9 +1091,9 @@
1091
1091
  height: 0;
1092
1092
  width: 0;
1093
1093
  }
1094
- `;M([a({type:Array})],A.prototype,"thumbnails",2);M([a({type:Number})],A.prototype,"activeIndex",2);M([a({type:Array})],A.prototype,"disabledIndexes",2);M([a({type:String})],A.prototype,"maxWidth",2);M([a({type:String})],A.prototype,"altressource",2);M([a({type:Object})],A.prototype,"swiperInstance",2);M([N()],A.prototype,"focusedIndex",2);A=M([x("thumbnail-navigation")],A);var io=Object.defineProperty,ro=Object.getOwnPropertyDescriptor,St=(o,t,e,r)=>{for(var i=r>1?void 0:r?ro(t,e):t,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(t,e,i):n(i))||i);return r&&i&&io(t,e,i),i};let ot=class extends g{constructor(){super(...arguments),this.type="",this.bgstyle="background-white"}render(){return l`
1094
+ `;T([a({type:Array})],A.prototype,"thumbnails",2);T([a({type:Number})],A.prototype,"activeIndex",2);T([a({type:Array})],A.prototype,"disabledIndexes",2);T([a({type:String})],A.prototype,"maxWidth",2);T([a({type:String})],A.prototype,"altressource",2);T([a({type:Object})],A.prototype,"swiperInstance",2);T([V()],A.prototype,"focusedIndex",2);A=T([x("thumbnail-navigation")],A);var io=Object.defineProperty,no=Object.getOwnPropertyDescriptor,St=(o,t,e,n)=>{for(var i=n>1?void 0:n?no(t,e):t,s=o.length-1,r;s>=0;s--)(r=o[s])&&(i=(n?r(t,e,i):r(i))||i);return n&&i&&io(t,e,i),i};let it=class extends b{constructor(){super(...arguments),this.type="",this.bgstyle="background-white"}render(){return l`
1095
1095
  <span class="tag ${this.bgstyle}"><slot></slot></span>
1096
- `}};ot.styles=y`
1096
+ `}};it.styles=y`
1097
1097
  .tag {
1098
1098
  display: inline-block;
1099
1099
  padding: var(--spacing-2-xs) var(--spacing-s);
@@ -1148,12 +1148,12 @@
1148
1148
  background-color: var(--color-content-success);
1149
1149
  }
1150
1150
 
1151
- `;St([a({type:String,reflect:!0})],ot.prototype,"type",2);St([a({type:String,reflect:!0})],ot.prototype,"bgstyle",2);ot=St([x("o-tag")],ot);var no=Object.defineProperty,so=Object.getOwnPropertyDescriptor,Et=(o,t,e,r)=>{for(var i=r>1?void 0:r?so(t,e):t,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(t,e,i):n(i))||i);return r&&i&&no(t,e,i),i};let it=class extends g{constructor(){super(...arguments),this.type="top",this.text=""}render(){return l`
1151
+ `;St([a({type:String,reflect:!0})],it.prototype,"type",2);St([a({type:String,reflect:!0})],it.prototype,"bgstyle",2);it=St([x("o-tag")],it);var ro=Object.defineProperty,so=Object.getOwnPropertyDescriptor,Et=(o,t,e,n)=>{for(var i=n>1?void 0:n?so(t,e):t,s=o.length-1,r;s>=0;s--)(r=o[s])&&(i=(n?r(t,e,i):r(i))||i);return n&&i&&ro(t,e,i),i};let nt=class extends b{constructor(){super(...arguments),this.type="top",this.text=""}render(){return l`
1152
1152
  <div class="tooltip">
1153
1153
  <span class="tooltiptext">${this.text}</span>
1154
1154
  <slot></slot>
1155
1155
  </div>
1156
- `}};it.styles=y`
1156
+ `}};nt.styles=y`
1157
1157
  .tooltip {
1158
1158
  position: relative;
1159
1159
  display: inline-block;
@@ -1245,7 +1245,7 @@
1245
1245
  border-color: transparent var(--color-alpha-dark-strongest) transparent transparent;
1246
1246
  }
1247
1247
 
1248
- `;Et([a({type:String,reflect:!0})],it.prototype,"type",2);Et([a({type:String,reflect:!0})],it.prototype,"text",2);it=Et([x("o-tooltip")],it);var ao=Object.defineProperty,lo=Object.getOwnPropertyDescriptor,O=(o,t,e,r)=>{for(var i=r>1?void 0:r?lo(t,e):t,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(t,e,i):n(i))||i);return r&&i&&ao(t,e,i),i};let k=class extends g{constructor(){super(...arguments),this.options=[],this.value="",this.name="",this.disabled=!1,this.width="100%",this.open=!1,this.activeIndex=-1,this.menuWidth="",this._handleOutsideClick=o=>{this.contains(o.target)||(this.open=!1,this.activeIndex=-1)}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this._handleOutsideClick),super.disconnectedCallback()}toggle(){var o;if(!this.disabled){if(this.open=!this.open,this.activeIndex=this.open?this.options.findIndex(t=>t.value===this.value):-1,this.open&&this.width==="auto"){const t=(o=this.renderRoot)==null?void 0:o.querySelector("button");t&&(this.menuWidth=`${t.getBoundingClientRect().width}px`)}this.open&&this.updateComplete.then(()=>{this._focusActiveOption()})}}_focusActiveOption(){var t;const o=(t=this.renderRoot)==null?void 0:t.querySelector(`#option-${this.activeIndex}`);o==null||o.focus()}selectOption(o){this.value=o.value,this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value,url:o.url}})),this.open=!1,this.activeIndex=-1}handleKeydown(o){if(this.disabled){o.preventDefault();return}if(!this.open){(o.key==="ArrowDown"||o.key==="ArrowUp")&&(o.preventDefault(),this.open=!0,this.activeIndex=this.options.findIndex(t=>t.value===this.value),this.updateComplete.then(()=>this._focusActiveOption()));return}switch(o.key){case"ArrowDown":o.preventDefault(),this.activeIndex=(this.activeIndex+1)%this.options.length,this.updateComplete.then(()=>this._focusActiveOption());break;case"ArrowUp":o.preventDefault(),this.activeIndex=(this.activeIndex-1+this.options.length)%this.options.length,this.updateComplete.then(()=>this._focusActiveOption());break;case"Home":o.preventDefault(),this.activeIndex=0,this.updateComplete.then(()=>this._focusActiveOption());break;case"End":o.preventDefault(),this.activeIndex=this.options.length-1,this.updateComplete.then(()=>this._focusActiveOption());break;case"Enter":o.preventDefault(),this.activeIndex>=0&&this.selectOption(this.options[this.activeIndex]);break;case"Escape":o.preventDefault(),this.open=!1,this.activeIndex=-1;break}}updated(o){this.options.length>0&&(this.options.some(e=>e.value===this.value)||(this.value=this.options[0].value))}render(){const o=G.checkstroke.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"'),t=this.options.find(e=>e.value===this.value);return l`
1248
+ `;Et([a({type:String,reflect:!0})],nt.prototype,"type",2);Et([a({type:String,reflect:!0})],nt.prototype,"text",2);nt=Et([x("o-tooltip")],nt);var ao=Object.defineProperty,lo=Object.getOwnPropertyDescriptor,P=(o,t,e,n)=>{for(var i=n>1?void 0:n?lo(t,e):t,s=o.length-1,r;s>=0;s--)(r=o[s])&&(i=(n?r(t,e,i):r(i))||i);return n&&i&&ao(t,e,i),i};let k=class extends b{constructor(){super(...arguments),this.options=[],this.value="",this.name="",this.disabled=!1,this.width="100%",this.open=!1,this.activeIndex=-1,this.menuWidth="",this._handleOutsideClick=o=>{this.contains(o.target)||(this.open=!1,this.activeIndex=-1)}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this._handleOutsideClick),super.disconnectedCallback()}toggle(){var o;if(!this.disabled){if(this.open=!this.open,this.activeIndex=this.open?this.options.findIndex(t=>t.value===this.value):-1,this.open&&this.width==="auto"){const t=(o=this.renderRoot)==null?void 0:o.querySelector("button");t&&(this.menuWidth=`${t.getBoundingClientRect().width}px`)}this.open&&this.updateComplete.then(()=>{this._focusActiveOption()})}}_focusActiveOption(){var t;const o=(t=this.renderRoot)==null?void 0:t.querySelector(`#option-${this.activeIndex}`);o==null||o.focus()}selectOption(o){this.value=o.value,this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value,url:o.url}})),this.open=!1,this.activeIndex=-1}handleKeydown(o){if(this.disabled){o.preventDefault();return}if(!this.open){(o.key==="ArrowDown"||o.key==="ArrowUp")&&(o.preventDefault(),this.open=!0,this.activeIndex=this.options.findIndex(t=>t.value===this.value),this.updateComplete.then(()=>this._focusActiveOption()));return}switch(o.key){case"ArrowDown":o.preventDefault(),this.activeIndex=(this.activeIndex+1)%this.options.length,this.updateComplete.then(()=>this._focusActiveOption());break;case"ArrowUp":o.preventDefault(),this.activeIndex=(this.activeIndex-1+this.options.length)%this.options.length,this.updateComplete.then(()=>this._focusActiveOption());break;case"Home":o.preventDefault(),this.activeIndex=0,this.updateComplete.then(()=>this._focusActiveOption());break;case"End":o.preventDefault(),this.activeIndex=this.options.length-1,this.updateComplete.then(()=>this._focusActiveOption());break;case"Enter":o.preventDefault(),this.activeIndex>=0&&this.selectOption(this.options[this.activeIndex]);break;case"Escape":o.preventDefault(),this.open=!1,this.activeIndex=-1;break}}updated(o){this.options.length>0&&(this.options.some(e=>e.value===this.value)||(this.value=this.options[0].value))}render(){const o=X.checkstroke.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"'),t=this.options.find(e=>e.value===this.value);return l`
1249
1249
  <button
1250
1250
  role="combobox"
1251
1251
  aria-haspopup="listbox"
@@ -1273,22 +1273,22 @@
1273
1273
  aria-activedescendant="${this.activeIndex>=0?"option-"+this.activeIndex:""}"
1274
1274
  style=${`width: ${this.width};`}
1275
1275
  >
1276
- ${this.options.map((e,r)=>l`
1276
+ ${this.options.map((e,n)=>l`
1277
1277
  <li
1278
- id="option-${r}"
1278
+ id="option-${n}"
1279
1279
  role="option"
1280
1280
  aria-selected="${e.value===this.value}"
1281
- tabindex="${r===this.activeIndex?"0":"-1"}"
1282
- class="${r===this.activeIndex?"active":""} ${e.disabled?"disabled":""}"
1281
+ tabindex="${n===this.activeIndex?"0":"-1"}"
1282
+ class="${n===this.activeIndex?"active":""} ${e.disabled?"disabled":""}"
1283
1283
  @click=${()=>this.selectOption(e)}
1284
1284
  >
1285
1285
  ${e.url?l`
1286
1286
  <a href="${e.url}">
1287
1287
  <span>${e.label}</span>
1288
- ${e.value===this.value?l`<span class="check">${H(o)}</span>`:null}
1288
+ ${e.value===this.value?l`<span class="check">${M(o)}</span>`:null}
1289
1289
  </a>`:l`
1290
1290
  <span>${e.label}</span>
1291
- ${e.value===this.value?l`<span class="check">${H(o)}</span>`:null}`}
1291
+ ${e.value===this.value?l`<span class="check">${M(o)}</span>`:null}`}
1292
1292
  </li>`)}
1293
1293
  </ul>`:null}
1294
1294
 
@@ -1432,7 +1432,7 @@
1432
1432
  input[type="hidden"] {
1433
1433
  display: none;
1434
1434
  }
1435
- `;O([a({type:Array,reflect:!0})],k.prototype,"options",2);O([a({type:String,reflect:!0})],k.prototype,"value",2);O([a({type:String,reflect:!0})],k.prototype,"name",2);O([a({type:Boolean,reflect:!0})],k.prototype,"disabled",2);O([a({type:String,reflect:!0})],k.prototype,"width",2);O([N()],k.prototype,"open",2);O([N()],k.prototype,"activeIndex",2);O([N()],k.prototype,"menuWidth",2);k=O([x("o-dropdown")],k);var co=Object.getOwnPropertyDescriptor,ho=(o,t,e,r)=>{for(var i=r>1?void 0:r?co(t,e):t,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=n(i)||i);return i};let xt=class extends g{render(){return l` <span class="dots"></span> `}};xt.styles=y`
1435
+ `;P([a({type:Array,reflect:!0})],k.prototype,"options",2);P([a({type:String,reflect:!0})],k.prototype,"value",2);P([a({type:String,reflect:!0})],k.prototype,"name",2);P([a({type:Boolean,reflect:!0})],k.prototype,"disabled",2);P([a({type:String,reflect:!0})],k.prototype,"width",2);P([V()],k.prototype,"open",2);P([V()],k.prototype,"activeIndex",2);P([V()],k.prototype,"menuWidth",2);k=P([x("o-dropdown")],k);var co=Object.getOwnPropertyDescriptor,ho=(o,t,e,n)=>{for(var i=n>1?void 0:n?co(t,e):t,s=o.length-1,r;s>=0;s--)(r=o[s])&&(i=r(i)||i);return i};let xt=class extends b{render(){return l` <span class="dots"></span> `}};xt.styles=y`
1436
1436
  :host {
1437
1437
  display: flex;
1438
1438
  align-items: center;
@@ -1483,7 +1483,7 @@
1483
1483
  background-color: var(--color-container-action-primary-pressed);
1484
1484
  }
1485
1485
  }
1486
- `;xt=ho([x("o-dots")],xt);var po=Object.defineProperty,uo=Object.getOwnPropertyDescriptor,E=(o,t,e,r)=>{for(var i=r>1?void 0:r?uo(t,e):t,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(t,e,i):n(i))||i);return r&&i&&po(t,e,i),i};let C=class extends g{constructor(){super(...arguments),this.options=[],this.value="",this.name="",this.additionaltext="+X variant(s)",this.disabled=!1,this.width="100%",this.open=!1,this.activeIndex=-1,this.menuWidth="",this._handleOutsideClick=o=>{this.contains(o.target)||(this.open=!1,this.activeIndex=-1)}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this._handleOutsideClick),super.disconnectedCallback()}toggle(){var o;if(!this.disabled){if(this.open=!this.open,this.activeIndex=this.open?this.options.findIndex(t=>t.value===this.value):-1,this.open&&this.width==="auto"){const t=(o=this.renderRoot)==null?void 0:o.querySelector("button");t&&(this.menuWidth=`${t.getBoundingClientRect().width}px`)}this.open&&this.updateComplete.then(()=>this._focusActiveOption())}}_focusActiveOption(){var t;const o=(t=this.renderRoot)==null?void 0:t.querySelector(`#option-${this.activeIndex}`);o==null||o.focus()}selectOption(o){this.value=o.value,this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value,url:o.url}})),this.open=!1,this.activeIndex=-1}handleKeydown(o){if(this.disabled){o.preventDefault();return}if(!this.open){(o.key==="ArrowDown"||o.key==="ArrowUp")&&(o.preventDefault(),this.open=!0,this.activeIndex=this.options.findIndex(t=>t.value===this.value),this.updateComplete.then(()=>this._focusActiveOption()));return}switch(o.key){case"ArrowDown":o.preventDefault(),this.activeIndex=(this.activeIndex+1)%this.options.length,this.updateComplete.then(()=>this._focusActiveOption());break;case"ArrowUp":o.preventDefault(),this.activeIndex=(this.activeIndex-1+this.options.length)%this.options.length,this.updateComplete.then(()=>this._focusActiveOption());break;case"Home":o.preventDefault(),this.activeIndex=0,this.updateComplete.then(()=>this._focusActiveOption());break;case"End":o.preventDefault(),this.activeIndex=this.options.length-1,this.updateComplete.then(()=>this._focusActiveOption());break;case"Enter":o.preventDefault(),this.activeIndex>=0&&this.selectOption(this.options[this.activeIndex]);break;case"Escape":o.preventDefault(),this.open=!1,this.activeIndex=-1;break}}updated(){this.options.length>0&&(this.options.some(t=>t.value===this.value)||(this.value=this.options[0].value))}render(){const o=G.checkstroke.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"'),t=this.options.find(e=>e.value===this.value);return l`
1486
+ `;xt=ho([x("o-dots")],xt);var po=Object.defineProperty,uo=Object.getOwnPropertyDescriptor,L=(o,t,e,n)=>{for(var i=n>1?void 0:n?uo(t,e):t,s=o.length-1,r;s>=0;s--)(r=o[s])&&(i=(n?r(t,e,i):r(i))||i);return n&&i&&po(t,e,i),i};let C=class extends b{constructor(){super(...arguments),this.options=[],this.value="",this.name="",this.additionaltext="+X variant(s)",this.disabled=!1,this.width="100%",this.open=!1,this.activeIndex=-1,this.menuWidth="",this._handleOutsideClick=o=>{this.contains(o.target)||(this.open=!1,this.activeIndex=-1)}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this._handleOutsideClick),super.disconnectedCallback()}toggle(){var o;if(!this.disabled){if(this.open=!this.open,this.activeIndex=this.open?this.options.findIndex(t=>t.value===this.value):-1,this.open&&this.width==="auto"){const t=(o=this.renderRoot)==null?void 0:o.querySelector("button");t&&(this.menuWidth=`${t.getBoundingClientRect().width}px`)}this.open&&this.updateComplete.then(()=>this._focusActiveOption())}}_focusActiveOption(){var t;const o=(t=this.renderRoot)==null?void 0:t.querySelector(`#option-${this.activeIndex}`);o==null||o.focus()}selectOption(o){this.value=o.value,this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value,url:o.url}})),this.open=!1,this.activeIndex=-1}handleKeydown(o){if(this.disabled){o.preventDefault();return}if(!this.open){(o.key==="ArrowDown"||o.key==="ArrowUp")&&(o.preventDefault(),this.open=!0,this.activeIndex=this.options.findIndex(t=>t.value===this.value),this.updateComplete.then(()=>this._focusActiveOption()));return}switch(o.key){case"ArrowDown":o.preventDefault(),this.activeIndex=(this.activeIndex+1)%this.options.length,this.updateComplete.then(()=>this._focusActiveOption());break;case"ArrowUp":o.preventDefault(),this.activeIndex=(this.activeIndex-1+this.options.length)%this.options.length,this.updateComplete.then(()=>this._focusActiveOption());break;case"Home":o.preventDefault(),this.activeIndex=0,this.updateComplete.then(()=>this._focusActiveOption());break;case"End":o.preventDefault(),this.activeIndex=this.options.length-1,this.updateComplete.then(()=>this._focusActiveOption());break;case"Enter":o.preventDefault(),this.activeIndex>=0&&this.selectOption(this.options[this.activeIndex]);break;case"Escape":o.preventDefault(),this.open=!1,this.activeIndex=-1;break}}updated(){this.options.length>0&&(this.options.some(t=>t.value===this.value)||(this.value=this.options[0].value))}render(){const o=X.checkstroke.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"'),t=this.options.find(e=>e.value===this.value);return l`
1487
1487
  <button
1488
1488
  role="combobox"
1489
1489
  aria-haspopup="listbox"
@@ -1521,14 +1521,14 @@
1521
1521
  aria-activedescendant="${this.activeIndex>=0?"option-"+this.activeIndex:""}"
1522
1522
  style=${`width: ${this.width};`}
1523
1523
  >
1524
- ${this.options.map((e,r)=>l`
1524
+ ${this.options.map((e,n)=>l`
1525
1525
  <li
1526
- id="option-${r}"
1526
+ id="option-${n}"
1527
1527
  role="option"
1528
1528
  aria-selected="${e.value===this.value}"
1529
1529
  aria-disabled="${e.disabled?"true":"false"}"
1530
- tabindex="${r===this.activeIndex?"0":"-1"}"
1531
- class="${r===this.activeIndex?"active":""} ${e.disabled?"disabled":""}"
1530
+ tabindex="${n===this.activeIndex?"0":"-1"}"
1531
+ class="${n===this.activeIndex?"active":""} ${e.disabled?"disabled":""}"
1532
1532
  @click=${()=>this.selectOption(e)}
1533
1533
  >
1534
1534
  <a href="${$(e.url)}">
@@ -1537,7 +1537,7 @@
1537
1537
  <div class="right">
1538
1538
  <span class="additional-text">${$(e.additionaltext)}</span>
1539
1539
  ${e.value===this.value&&!e.additionaltext?l`
1540
- <span class="check">${H(o)}</span>`:null}
1540
+ <span class="check">${M(o)}</span>`:null}
1541
1541
  </div>
1542
1542
  </a>
1543
1543
  </li>
@@ -1720,12 +1720,12 @@
1720
1720
  input[type="hidden"] {
1721
1721
  display: none;
1722
1722
  }
1723
- `;E([a({type:Array,reflect:!0})],C.prototype,"options",2);E([a({type:String,reflect:!0})],C.prototype,"value",2);E([a({type:String,reflect:!0})],C.prototype,"name",2);E([a({type:String,reflect:!0})],C.prototype,"additionaltext",2);E([a({type:Boolean,reflect:!0})],C.prototype,"disabled",2);E([a({type:String,reflect:!0})],C.prototype,"width",2);E([N()],C.prototype,"open",2);E([N()],C.prototype,"activeIndex",2);E([N()],C.prototype,"menuWidth",2);C=E([x("o-dropdown-variant")],C);/**
1723
+ `;L([a({type:Array,reflect:!0})],C.prototype,"options",2);L([a({type:String,reflect:!0})],C.prototype,"value",2);L([a({type:String,reflect:!0})],C.prototype,"name",2);L([a({type:String,reflect:!0})],C.prototype,"additionaltext",2);L([a({type:Boolean,reflect:!0})],C.prototype,"disabled",2);L([a({type:String,reflect:!0})],C.prototype,"width",2);L([V()],C.prototype,"open",2);L([V()],C.prototype,"activeIndex",2);L([V()],C.prototype,"menuWidth",2);C=L([x("o-dropdown-variant")],C);/**
1724
1724
  * @license
1725
1725
  * Copyright 2018 Google LLC
1726
1726
  * SPDX-License-Identifier: BSD-3-Clause
1727
- */const Gt="important",vo=" !"+Gt,go=Wt(class extends Kt{constructor(o){var t;if(super(o),o.type!==qt.ATTRIBUTE||o.name!=="style"||((t=o.strings)==null?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((t,e)=>{const r=o[e];return r==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(o,[t]){const{style:e}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const r of this.ft)t[r]==null&&(this.ft.delete(r),r.includes("-")?e.removeProperty(r):e[r]=null);for(const r in t){const i=t[r];if(i!=null){this.ft.add(r);const s=typeof i=="string"&&i.endsWith(vo);r.includes("-")||s?e.setProperty(r,s?i.slice(0,-11):i,s?Gt:""):e[r]=i}}return D}});var bo=Object.defineProperty,fo=Object.getOwnPropertyDescriptor,Lt=(o,t,e,r)=>{for(var i=r>1?void 0:r?fo(t,e):t,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(t,e,i):n(i))||i);return r&&i&&bo(t,e,i),i};let rt=class extends g{constructor(){super(...arguments),this.option={},this.imageSize=64}render(){const o=this.option.clickable,t={width:`${this.imageSize}px`,height:`${this.imageSize}px`},e=l`
1728
- ${this.option.imgurl?l`<img src="${this.option.imgurl}" alt="${$(this.option.title)}" aria-hidden="true" style=${go(t)} />`:""}
1727
+ */const Jt="important",vo=" !"+Jt,bo=Gt(class extends Xt{constructor(o){var t;if(super(o),o.type!==Kt.ATTRIBUTE||o.name!=="style"||((t=o.strings)==null?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((t,e)=>{const n=o[e];return n==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(o,[t]){const{style:e}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const n of this.ft)t[n]==null&&(this.ft.delete(n),n.includes("-")?e.removeProperty(n):e[n]=null);for(const n in t){const i=t[n];if(i!=null){this.ft.add(n);const s=typeof i=="string"&&i.endsWith(vo);n.includes("-")||s?e.setProperty(n,s?i.slice(0,-11):i,s?Jt:""):e[n]=i}}return H}});var go=Object.defineProperty,fo=Object.getOwnPropertyDescriptor,Lt=(o,t,e,n)=>{for(var i=n>1?void 0:n?fo(t,e):t,s=o.length-1,r;s>=0;s--)(r=o[s])&&(i=(n?r(t,e,i):r(i))||i);return n&&i&&go(t,e,i),i};let rt=class extends b{constructor(){super(...arguments),this.option={},this.imageSize=64}render(){const o=this.option.clickable,t={width:`${this.imageSize}px`,height:`${this.imageSize}px`},e=l`
1728
+ ${this.option.imgurl?l`<img src="${this.option.imgurl}" alt="${$(this.option.title)}" aria-hidden="true" style=${bo(t)} />`:""}
1729
1729
  <div class="m-reassurance-content">
1730
1730
  <h3 class="a-reassurance-text">${$(this.option.title)}</h3>
1731
1731
  <p class="a-reassurance-description">${$(this.option.description)}</p>
@@ -1811,46 +1811,98 @@
1811
1811
  overflow: hidden;
1812
1812
  }
1813
1813
  }
1814
- `;Lt([a({type:Object,reflect:!0})],rt.prototype,"option",2);Lt([a({type:Number,reflect:!0})],rt.prototype,"imageSize",2);rt=Lt([x("o-reassurance")],rt);var yo=Object.defineProperty,mo=Object.getOwnPropertyDescriptor,ut=(o,t,e,r)=>{for(var i=r>1?void 0:r?mo(t,e):t,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(t,e,i):n(i))||i);return r&&i&&yo(t,e,i),i};let K=class extends g{constructor(){super(...arguments),this.type="",this.text="",this.link=""}render(){return l`
1815
- <div class="o-chip">
1816
- <a href="${this.link}" class="o-chip-text">${this.text}</a>
1817
- </div>
1818
- `}};K.styles=y`
1819
- .o-chip {
1820
- font-size: var(--font-size-150);
1821
- font-weight: var(--font-weight-400);
1822
- border: solid var(--border-m) var(--color-border-secondary);
1823
- padding: var(--spacing-m) var(--spacing-xl);
1824
- background-color: var(--color-container-action-secondary-default);
1825
- border-radius: var(--radius-m);
1826
- width: fit-content;
1827
- font-family: var(--font-family-loccitane-sans);
1828
-
1829
-
1830
-
1831
- a {
1832
- font-size: var(--font-size-150);
1833
- line-height: var(--line-height-200);
1834
- letter-spacing: var(--letter-spacing-000);
1835
- font-weight: var(--font-weight-400);
1836
- text-decoration: none;
1837
- color: var(--color-content-action-secondary);
1838
- }
1814
+ `;Lt([a({type:Object,reflect:!0})],rt.prototype,"option",2);Lt([a({type:Number,reflect:!0})],rt.prototype,"imageSize",2);rt=Lt([x("o-reassurance")],rt);var yo=Object.defineProperty,mo=Object.getOwnPropertyDescriptor,j=(o,t,e,n)=>{for(var i=n>1?void 0:n?mo(t,e):t,s=o.length-1,r;s>=0;s--)(r=o[s])&&(i=(n?r(t,e,i):r(i))||i);return n&&i&&yo(t,e,i),i};const wo=Wt(b);let S=class extends wo{constructor(){super(...arguments),this.link="",this.name="",this.value="",this.text="",this.size="standard",this.selected=!1,this.fullwidth=!1}handleClick(o){this.selected||(this.selected=!0)}render(){const o=this.text;return this.link?l`
1815
+ <a href="${this.link}" class="o-chip">
1816
+ ${o?this.text:l`<slot></slot>`}
1817
+ </a>
1818
+ `:l`
1819
+ <button type="button" class="button" @click=${this.handleClick}
1820
+ aria-label=${this.ariaLabel} aria-pressed=${this.selected}>
1821
+ ${o?this.text:l`<slot></slot>`}
1822
+ </button>
1823
+ `}};S.styles=y`
1824
+ :host {
1825
+ cursor: pointer;
1826
+ display: inline-flex;
1827
+ --button-bg: var(--color-container-action-secondary-default);
1828
+ --button-bg-hover: var(--color-container-action-secondary-hover);
1829
+ --button-bg-pressed: var(--color-container-action-secondary-pressed);
1830
+ --button-text: var(--color-content-action-secondary);
1831
+ --button-text-hover: var(--color-content-action-secondary);
1832
+ --button-border: var(--color-border-secondary);
1833
+ --button-border-width: var(--border-m);
1834
+ --button-padding: var(--spacing-xs) var(--spacing-m);
1835
+ --button-endicon-svg-width: 0px; /* No endicon SVG for secondary button */
1836
+ }
1839
1837
 
1840
- &:hover {
1841
- background-color: var(--color-container-action-secondary-hover);
1842
- }
1843
- }
1838
+ :host([fullwidth]) {
1839
+ width: 100%;
1840
+ }
1844
1841
 
1845
- :host([type="active"]) .o-chip {
1846
- background-color: var(--color-container-filter-default);
1842
+ :host([selected]) {
1843
+ --button-bg: var(--color-container-filter-default);
1844
+ --button-bg-hover: var(--color-container-filter-hover);
1845
+ --button-bg-pressed: var(--color-container-filter-pressed);
1846
+ --button-text: var(--color-content-action-primary);
1847
+ --button-text-hover: var(--color-content-action-primary);
1848
+ --button-border: transparent;
1849
+ --button-border-width: var(--border-m);
1850
+ }
1847
1851
 
1848
- a {
1849
- color: var(--color-content-action-primary);
1850
- }
1852
+ :host([size="large"]) {
1853
+ --button-padding: var(--spacing-m) var(--spacing-3-xl);
1854
+ }
1851
1855
 
1852
- &:hover {
1853
- background-color: var(--color-container-filter-hover);
1854
- }
1855
- }
1856
- `;ut([a({type:String,reflect:!0})],K.prototype,"type",2);ut([a({type:String,reflect:!0})],K.prototype,"text",2);ut([a({type:String,reflect:!0})],K.prototype,"link",2);K=ut([x("o-chip")],K);
1856
+ .o-chip,
1857
+ .button {
1858
+ display: inline-flex;
1859
+ align-items: center;
1860
+ justify-content: center;
1861
+ width: 100%;
1862
+ gap: var(--spacing-2-xs);
1863
+ height: 100%;
1864
+ background-color: var(--button-bg);
1865
+ color: var(--button-text);
1866
+ border: var(--button-border-width, var(--border-m)) solid var(--button-border);
1867
+ border-radius: var(--radius-m);
1868
+ font-family: var(--font-family-loccitane-sans);
1869
+ font-size: var(--font-size-150);
1870
+ font-weight: var(--font-weight-400);
1871
+ line-height: var(--line-height-200);
1872
+ min-width: 64px;
1873
+ padding: var(--button-padding);
1874
+ text-decoration: none;
1875
+ cursor: inherit;
1876
+ box-sizing: border-box;
1877
+
1878
+ span {
1879
+ font-family: var(--font-family-loccitane-sans);
1880
+ font-size: var(--font-size-150);
1881
+ font-weight: var(--font-weight-400);
1882
+ line-height: var(--line-height-200);
1883
+ }
1884
+
1885
+ &:hover {
1886
+ background-color: var(--button-bg-hover);
1887
+ color: var(--button-text-hover);
1888
+ }
1889
+
1890
+ &:active {
1891
+ background-color: var(--button-bg-pressed);
1892
+ }
1893
+
1894
+ &:focus-visible {
1895
+ ${qt};
1896
+ }
1897
+ }
1898
+
1899
+ span.text + span.text::before {
1900
+ content: "•";
1901
+ margin-right: 8px;
1902
+ }
1903
+
1904
+ .button > * {
1905
+ display: inline-flex;
1906
+ align-items: center;
1907
+ }
1908
+ `;j([a({type:String,reflect:!0})],S.prototype,"link",2);j([a({reflect:!0})],S.prototype,"name",2);j([a({reflect:!0})],S.prototype,"value",2);j([a({type:String})],S.prototype,"text",2);j([a({type:String,reflect:!0})],S.prototype,"size",2);j([a({type:Boolean,reflect:!0})],S.prototype,"selected",2);j([a({type:Boolean,reflect:!0})],S.prototype,"fullwidth",2);S=j([x("o-chip")],S);