@florid-kit/components 0.3.18 → 0.3.20

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/aria.d.ts CHANGED
@@ -15,7 +15,7 @@ export type ARIAAttribute = ARIAPropertyToAttribute<ARIAProperty>;
15
15
  /**
16
16
  * Accessibility Object Model aria attributes.
17
17
  */
18
- export declare const ARIA_ATTRIBUTES: ("aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-current" | "aria-description" | "aria-disabled" | "aria-expanded" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext")[];
18
+ export declare const ARIA_ATTRIBUTES: ("aria-pressed" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-current" | "aria-description" | "aria-disabled" | "aria-expanded" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-placeholder" | "aria-posinset" | "aria-readonly" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext")[];
19
19
  /**
20
20
  * Checks if an attribute is one of the AOM aria attributes.
21
21
  *
@@ -6,9 +6,11 @@ export declare class OccitaneWishlistButton extends LitElement {
6
6
  status: Status;
7
7
  ariaDescribedBy: string;
8
8
  label: string;
9
- protected render(): import('lit').TemplateResult<1>;
10
- private handleClick;
9
+ connectedCallback(): void;
10
+ protected firstUpdated(): void;
11
+ private handleKeydown;
11
12
  private toggleStatus;
13
+ protected render(): import('lit').TemplateResult<1>;
12
14
  setStatus(status: Status): void;
13
15
  setAriaDescribedBy(ariaDescribedBy: string): void;
14
16
  setLabel(label: string): void;
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 W=globalThis,at=W.ShadowRoot&&(W.ShadyCSS===void 0||W.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,lt=Symbol(),ut=new WeakMap;let At=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==lt)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(at&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=ut.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&ut.set(e,t))}return t}toString(){return this.cssText}};const Pt=o=>new At(typeof o=="string"?o:o+"",void 0,lt),E=(o,...t)=>{const e=o.length===1?o[0]:t.reduce((s,n,i)=>s+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+o[i+1],o[0]);return new At(e,o,lt)},Bt=(o,t)=>{if(at)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),n=W.litNonce;n!==void 0&&s.setAttribute("nonce",n),s.textContent=e.cssText,o.appendChild(s)}},ft=at?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return Pt(e)})(o):o;/**
5
+ */const W=globalThis,at=W.ShadowRoot&&(W.ShadyCSS===void 0||W.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,lt=Symbol(),ut=new WeakMap;let At=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==lt)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(at&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=ut.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&ut.set(e,t))}return t}toString(){return this.cssText}};const Pt=o=>new At(typeof o=="string"?o:o+"",void 0,lt),E=(o,...t)=>{const e=o.length===1?o[0]:t.reduce((s,n,i)=>s+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+o[i+1],o[0]);return new At(e,o,lt)},kt=(o,t)=>{if(at)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),n=W.litNonce;n!==void 0&&s.setAttribute("nonce",n),s.textContent=e.cssText,o.appendChild(s)}},ft=at?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return Pt(e)})(o):o;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */const{is:kt,defineProperty:Ot,getOwnPropertyDescriptor:Ht,getOwnPropertyNames:Mt,getOwnPropertySymbols:It,getPrototypeOf:zt}=Object,S=globalThis,gt=S.trustedTypes,Ut=gt?gt.emptyScript:"",tt=S.reactiveElementPolyfillSupport,N=(o,t)=>o,G={toAttribute(o,t){switch(t){case Boolean:o=o?Ut: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)=>!kt(o,t),vt={attribute:!0,type:String,converter:G,reflect:!1,useDefault:!1,hasChanged:ct};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),S.litPropertyMetadata??(S.litPropertyMetadata=new WeakMap);let M=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=vt){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 s=Symbol(),n=this.getPropertyDescriptor(t,s,e);n!==void 0&&Ot(this.prototype,t,n)}}static getPropertyDescriptor(t,e,s){const{get:n,set:i}=Ht(this.prototype,t)??{get(){return this[e]},set(r){this[e]=r}};return{get:n,set(r){const c=n==null?void 0:n.call(this);i==null||i.call(this,r),this.requestUpdate(t,c,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??vt}static _$Ei(){if(this.hasOwnProperty(N("elementProperties")))return;const t=zt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(N("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(N("properties"))){const e=this.properties,s=[...Mt(e),...It(e)];for(const n of s)this.createProperty(n,e[n])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,n]of e)this.elementProperties.set(s,n)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const n=this._$Eu(e,s);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const n of s)e.unshift(ft(n))}else t!==void 0&&e.push(ft(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(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 s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Bt(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 s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){var i;const s=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,s);if(n!==void 0&&s.reflect===!0){const r=(((i=s.converter)==null?void 0:i.toAttribute)!==void 0?s.converter:G).toAttribute(e,s.type);this._$Em=t,r==null?this.removeAttribute(n):this.setAttribute(n,r),this._$Em=null}}_$AK(t,e){var i,r;const s=this.constructor,n=s._$Eh.get(t);if(n!==void 0&&this._$Em!==n){const c=s.getPropertyOptions(n),a=typeof c.converter=="function"?{fromAttribute:c.converter}:((i=c.converter)==null?void 0:i.fromAttribute)!==void 0?c.converter:G;this._$Em=n,this[n]=a.fromAttribute(e,c.type)??((r=this._$Ej)==null?void 0:r.get(n))??null,this._$Em=null}}requestUpdate(t,e,s){var n;if(t!==void 0){const i=this.constructor,r=this[t];if(s??(s=i.getPropertyOptions(t)),!((s.hasChanged??ct)(r,e)||s.useDefault&&s.reflect&&r===((n=this._$Ej)==null?void 0:n.get(t))&&!this.hasAttribute(i._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:n,wrapped:i},r){s&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,r??e??this[t]),i!==!0||r!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),n===!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 s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[i,r]of this._$Ep)this[i]=r;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[i,r]of n){const{wrapped:c}=r,a=this[i];c!==!0||this._$AL.has(i)||a===void 0||this.C(i,void 0,r,a)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(n=>{var i;return(i=n.hostUpdate)==null?void 0:i.call(n)}),this.update(e)):this._$EM()}catch(n){throw t=!1,this._$EM(),n}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(s=>{var n;return(n=s.hostUpdated)==null?void 0:n.call(s)}),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){}};M.elementStyles=[],M.shadowRootOptions={mode:"open"},M[N("elementProperties")]=new Map,M[N("finalized")]=new Map,tt==null||tt({ReactiveElement:M}),(S.reactiveElementVersions??(S.reactiveElementVersions=[])).push("2.1.0");/**
9
+ */const{is:Bt,defineProperty:Ot,getOwnPropertyDescriptor:Ht,getOwnPropertyNames:Mt,getOwnPropertySymbols:It,getPrototypeOf:zt}=Object,S=globalThis,gt=S.trustedTypes,Ut=gt?gt.emptyScript:"",tt=S.reactiveElementPolyfillSupport,N=(o,t)=>o,K={toAttribute(o,t){switch(t){case Boolean:o=o?Ut: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)=>!Bt(o,t),vt={attribute:!0,type:String,converter:K,reflect:!1,useDefault:!1,hasChanged:ct};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),S.litPropertyMetadata??(S.litPropertyMetadata=new WeakMap);let M=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=vt){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 s=Symbol(),n=this.getPropertyDescriptor(t,s,e);n!==void 0&&Ot(this.prototype,t,n)}}static getPropertyDescriptor(t,e,s){const{get:n,set:i}=Ht(this.prototype,t)??{get(){return this[e]},set(r){this[e]=r}};return{get:n,set(r){const c=n==null?void 0:n.call(this);i==null||i.call(this,r),this.requestUpdate(t,c,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??vt}static _$Ei(){if(this.hasOwnProperty(N("elementProperties")))return;const t=zt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(N("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(N("properties"))){const e=this.properties,s=[...Mt(e),...It(e)];for(const n of s)this.createProperty(n,e[n])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,n]of e)this.elementProperties.set(s,n)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const n=this._$Eu(e,s);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const n of s)e.unshift(ft(n))}else t!==void 0&&e.push(ft(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(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 s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return kt(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 s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){var i;const s=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,s);if(n!==void 0&&s.reflect===!0){const r=(((i=s.converter)==null?void 0:i.toAttribute)!==void 0?s.converter:K).toAttribute(e,s.type);this._$Em=t,r==null?this.removeAttribute(n):this.setAttribute(n,r),this._$Em=null}}_$AK(t,e){var i,r;const s=this.constructor,n=s._$Eh.get(t);if(n!==void 0&&this._$Em!==n){const c=s.getPropertyOptions(n),a=typeof c.converter=="function"?{fromAttribute:c.converter}:((i=c.converter)==null?void 0:i.fromAttribute)!==void 0?c.converter:K;this._$Em=n,this[n]=a.fromAttribute(e,c.type)??((r=this._$Ej)==null?void 0:r.get(n))??null,this._$Em=null}}requestUpdate(t,e,s){var n;if(t!==void 0){const i=this.constructor,r=this[t];if(s??(s=i.getPropertyOptions(t)),!((s.hasChanged??ct)(r,e)||s.useDefault&&s.reflect&&r===((n=this._$Ej)==null?void 0:n.get(t))&&!this.hasAttribute(i._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:n,wrapped:i},r){s&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,r??e??this[t]),i!==!0||r!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),n===!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 s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[i,r]of this._$Ep)this[i]=r;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[i,r]of n){const{wrapped:c}=r,a=this[i];c!==!0||this._$AL.has(i)||a===void 0||this.C(i,void 0,r,a)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(n=>{var i;return(i=n.hostUpdate)==null?void 0:i.call(n)}),this.update(e)):this._$EM()}catch(n){throw t=!1,this._$EM(),n}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(s=>{var n;return(n=s.hostUpdated)==null?void 0:n.call(s)}),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){}};M.elementStyles=[],M.shadowRootOptions={mode:"open"},M[N("elementProperties")]=new Map,M[N("finalized")]=new Map,tt==null||tt({ReactiveElement:M}),(S.reactiveElementVersions??(S.reactiveElementVersions=[])).push("2.1.0");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const j=globalThis,K=j.trustedTypes,bt=K?K.createPolicy("lit-html",{createHTML:o=>o}):void 0,St="$lit$",A=`lit$${Math.random().toFixed(9).slice(2)}$`,Et="?"+A,Tt=`<${Et}>`,k=document,R=()=>k.createComment(""),F=o=>o===null||typeof o!="object"&&typeof o!="function",ht=Array.isArray,Dt=o=>ht(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",et=`[
13
+ */const j=globalThis,G=j.trustedTypes,bt=G?G.createPolicy("lit-html",{createHTML:o=>o}):void 0,St="$lit$",A=`lit$${Math.random().toFixed(9).slice(2)}$`,Et="?"+A,Tt=`<${Et}>`,B=document,R=()=>B.createComment(""),F=o=>o===null||typeof o!="object"&&typeof o!="function",ht=Array.isArray,Dt=o=>ht(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",et=`[
14
14
  \f\r]`,D=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,yt=/-->/g,$t=/>/g,L=RegExp(`>|${et}(?:([^\\s"'>=/]+)(${et}*=${et}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),mt=/'/g,wt=/"/g,Ct=/^(?:script|style|textarea|title)$/i,Nt=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),p=Nt(1),O=Symbol.for("lit-noChange"),h=Symbol.for("lit-nothing"),_t=new WeakMap,P=k.createTreeWalker(k,129);function Lt(o,t){if(!ht(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return bt!==void 0?bt.createHTML(t):t}const jt=(o,t)=>{const e=o.length-1,s=[];let n,i=t===2?"<svg>":t===3?"<math>":"",r=D;for(let c=0;c<e;c++){const a=o[c];let f,g,d=-1,w=0;for(;w<a.length&&(r.lastIndex=w,g=r.exec(a),g!==null);)w=r.lastIndex,r===D?g[1]==="!--"?r=yt:g[1]!==void 0?r=$t:g[2]!==void 0?(Ct.test(g[2])&&(n=RegExp("</"+g[2],"g")),r=L):g[3]!==void 0&&(r=L):r===L?g[0]===">"?(r=n??D,d=-1):g[1]===void 0?d=-2:(d=r.lastIndex-g[2].length,f=g[1],r=g[3]===void 0?L:g[3]==='"'?wt:mt):r===wt||r===mt?r=L:r===yt||r===$t?r=D:(r=L,n=void 0);const x=r===L&&o[c+1].startsWith("/>")?" ":"";i+=r===D?a+Tt:d>=0?(s.push(f),a.slice(0,d)+St+a.slice(d)+A+x):a+A+(d===-2?c:x)}return[Lt(o,i+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};class V{constructor({strings:t,_$litType$:e},s){let n;this.parts=[];let i=0,r=0;const c=t.length-1,a=this.parts,[f,g]=jt(t,e);if(this.el=V.createElement(f,s),P.currentNode=this.el.content,e===2||e===3){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(n=P.nextNode())!==null&&a.length<c;){if(n.nodeType===1){if(n.hasAttributes())for(const d of n.getAttributeNames())if(d.endsWith(St)){const w=g[r++],x=n.getAttribute(d).split(A),q=/([.?@])?(.*)/.exec(w);a.push({type:1,index:i,name:q[2],strings:x,ctor:q[1]==="."?Ft:q[1]==="?"?Vt:q[1]==="@"?Zt:J}),n.removeAttribute(d)}else d.startsWith(A)&&(a.push({type:6,index:i}),n.removeAttribute(d));if(Ct.test(n.tagName)){const d=n.textContent.split(A),w=d.length-1;if(w>0){n.textContent=K?K.emptyScript:"";for(let x=0;x<w;x++)n.append(d[x],R()),P.nextNode(),a.push({type:2,index:++i});n.append(d[w],R())}}}else if(n.nodeType===8)if(n.data===Et)a.push({type:2,index:i});else{let d=-1;for(;(d=n.data.indexOf(A,d+1))!==-1;)a.push({type:7,index:i}),d+=A.length-1}i++}}static createElement(t,e){const s=k.createElement("template");return s.innerHTML=t,s}}function I(o,t,e=o,s){var r,c;if(t===O)return t;let n=s!==void 0?(r=e._$Co)==null?void 0:r[s]:e._$Cl;const i=F(t)?void 0:t._$litDirective$;return(n==null?void 0:n.constructor)!==i&&((c=n==null?void 0:n._$AO)==null||c.call(n,!1),i===void 0?n=void 0:(n=new i(o),n._$AT(o,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=n:e._$Cl=n),n!==void 0&&(t=I(o,n._$AS(o,t.values),n,s)),t}class Rt{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:s}=this._$AD,n=((t==null?void 0:t.creationScope)??k).importNode(e,!0);P.currentNode=n;let i=P.nextNode(),r=0,c=0,a=s[0];for(;a!==void 0;){if(r===a.index){let f;a.type===2?f=new Z(i,i.nextSibling,this,t):a.type===1?f=new a.ctor(i,a.name,a.strings,this,t):a.type===6&&(f=new qt(i,this,t)),this._$AV.push(f),a=s[++c]}r!==(a==null?void 0:a.index)&&(i=P.nextNode(),r++)}return P.currentNode=k,n}p(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class Z{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,s,n){this.type=2,this._$AH=h,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=n,this._$Cv=(n==null?void 0:n.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=I(this,t,e),F(t)?t===h||t==null||t===""?(this._$AH!==h&&this._$AR(),this._$AH=h):t!==this._$AH&&t!==O&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Dt(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!==h&&F(this._$AH)?this._$AA.nextSibling.data=t:this.T(k.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:s}=t,n=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=V.createElement(Lt(s.h,s.h[0]),this.options)),s);if(((i=this._$AH)==null?void 0:i._$AD)===n)this._$AH.p(e);else{const r=new Rt(n,this),c=r.u(this.options);r.p(e),this.T(c),this._$AH=r}}_$AC(t){let e=_t.get(t.strings);return e===void 0&&_t.set(t.strings,e=new V(t)),e}k(t){ht(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,n=0;for(const i of t)n===e.length?e.push(s=new Z(this.O(R()),this.O(R()),this,this.options)):s=e[n],s._$AI(i),n++;n<e.length&&(this._$AR(s&&s._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t&&t!==this._$AB;){const n=t.nextSibling;t.remove(),t=n}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class J{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,n,i){this.type=1,this._$AH=h,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=i,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=h}_$AI(t,e=this,s,n){const i=this.strings;let r=!1;if(i===void 0)t=I(this,t,e,0),r=!F(t)||t!==this._$AH&&t!==O,r&&(this._$AH=t);else{const c=t;let a,f;for(t=i[0],a=0;a<i.length-1;a++)f=I(this,c[s+a],e,a),f===O&&(f=this._$AH[a]),r||(r=!F(f)||f!==this._$AH[a]),f===h?t=h:t!==h&&(t+=(f??"")+i[a+1]),this._$AH[a]=f}r&&!n&&this.j(t)}j(t){t===h?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Ft extends J{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===h?void 0:t}}class Vt extends J{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==h)}}class Zt extends J{constructor(t,e,s,n,i){super(t,e,s,n,i),this.type=5}_$AI(t,e=this){if((t=I(this,t,e,0)??h)===O)return;const s=this._$AH,n=t===h&&s!==h||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,i=t!==h&&(s===h||n);n&&this.element.removeEventListener(this.name,this,s),i&&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 qt{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){I(this,t)}}const st=j.litHtmlPolyfillSupport;st==null||st(V,Z),(j.litHtmlVersions??(j.litHtmlVersions=[])).push("3.3.0");const Wt=(o,t,e)=>{const s=(e==null?void 0:e.renderBefore)??t;let n=s._$litPart$;if(n===void 0){const i=(e==null?void 0:e.renderBefore)??null;s._$litPart$=n=new Z(t.insertBefore(R(),i),i,void 0,e??{})}return n._$AI(o),n};/**
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),mt=/'/g,wt=/"/g,Ct=/^(?:script|style|textarea|title)$/i,Nt=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),d=Nt(1),O=Symbol.for("lit-noChange"),h=Symbol.for("lit-nothing"),_t=new WeakMap,P=B.createTreeWalker(B,129);function Lt(o,t){if(!ht(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return bt!==void 0?bt.createHTML(t):t}const jt=(o,t)=>{const e=o.length-1,s=[];let n,i=t===2?"<svg>":t===3?"<math>":"",r=D;for(let c=0;c<e;c++){const a=o[c];let f,g,p=-1,w=0;for(;w<a.length&&(r.lastIndex=w,g=r.exec(a),g!==null);)w=r.lastIndex,r===D?g[1]==="!--"?r=yt:g[1]!==void 0?r=$t:g[2]!==void 0?(Ct.test(g[2])&&(n=RegExp("</"+g[2],"g")),r=L):g[3]!==void 0&&(r=L):r===L?g[0]===">"?(r=n??D,p=-1):g[1]===void 0?p=-2:(p=r.lastIndex-g[2].length,f=g[1],r=g[3]===void 0?L:g[3]==='"'?wt:mt):r===wt||r===mt?r=L:r===yt||r===$t?r=D:(r=L,n=void 0);const x=r===L&&o[c+1].startsWith("/>")?" ":"";i+=r===D?a+Tt:p>=0?(s.push(f),a.slice(0,p)+St+a.slice(p)+A+x):a+A+(p===-2?c:x)}return[Lt(o,i+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};class V{constructor({strings:t,_$litType$:e},s){let n;this.parts=[];let i=0,r=0;const c=t.length-1,a=this.parts,[f,g]=jt(t,e);if(this.el=V.createElement(f,s),P.currentNode=this.el.content,e===2||e===3){const p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(n=P.nextNode())!==null&&a.length<c;){if(n.nodeType===1){if(n.hasAttributes())for(const p of n.getAttributeNames())if(p.endsWith(St)){const w=g[r++],x=n.getAttribute(p).split(A),q=/([.?@])?(.*)/.exec(w);a.push({type:1,index:i,name:q[2],strings:x,ctor:q[1]==="."?Ft:q[1]==="?"?Vt:q[1]==="@"?Zt:J}),n.removeAttribute(p)}else p.startsWith(A)&&(a.push({type:6,index:i}),n.removeAttribute(p));if(Ct.test(n.tagName)){const p=n.textContent.split(A),w=p.length-1;if(w>0){n.textContent=G?G.emptyScript:"";for(let x=0;x<w;x++)n.append(p[x],R()),P.nextNode(),a.push({type:2,index:++i});n.append(p[w],R())}}}else if(n.nodeType===8)if(n.data===Et)a.push({type:2,index:i});else{let p=-1;for(;(p=n.data.indexOf(A,p+1))!==-1;)a.push({type:7,index:i}),p+=A.length-1}i++}}static createElement(t,e){const s=B.createElement("template");return s.innerHTML=t,s}}function I(o,t,e=o,s){var r,c;if(t===O)return t;let n=s!==void 0?(r=e._$Co)==null?void 0:r[s]:e._$Cl;const i=F(t)?void 0:t._$litDirective$;return(n==null?void 0:n.constructor)!==i&&((c=n==null?void 0:n._$AO)==null||c.call(n,!1),i===void 0?n=void 0:(n=new i(o),n._$AT(o,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=n:e._$Cl=n),n!==void 0&&(t=I(o,n._$AS(o,t.values),n,s)),t}class Rt{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:s}=this._$AD,n=((t==null?void 0:t.creationScope)??B).importNode(e,!0);P.currentNode=n;let i=P.nextNode(),r=0,c=0,a=s[0];for(;a!==void 0;){if(r===a.index){let f;a.type===2?f=new Z(i,i.nextSibling,this,t):a.type===1?f=new a.ctor(i,a.name,a.strings,this,t):a.type===6&&(f=new qt(i,this,t)),this._$AV.push(f),a=s[++c]}r!==(a==null?void 0:a.index)&&(i=P.nextNode(),r++)}return P.currentNode=B,n}p(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class Z{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,s,n){this.type=2,this._$AH=h,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=n,this._$Cv=(n==null?void 0:n.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=I(this,t,e),F(t)?t===h||t==null||t===""?(this._$AH!==h&&this._$AR(),this._$AH=h):t!==this._$AH&&t!==O&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Dt(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!==h&&F(this._$AH)?this._$AA.nextSibling.data=t:this.T(B.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:s}=t,n=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=V.createElement(Lt(s.h,s.h[0]),this.options)),s);if(((i=this._$AH)==null?void 0:i._$AD)===n)this._$AH.p(e);else{const r=new Rt(n,this),c=r.u(this.options);r.p(e),this.T(c),this._$AH=r}}_$AC(t){let e=_t.get(t.strings);return e===void 0&&_t.set(t.strings,e=new V(t)),e}k(t){ht(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,n=0;for(const i of t)n===e.length?e.push(s=new Z(this.O(R()),this.O(R()),this,this.options)):s=e[n],s._$AI(i),n++;n<e.length&&(this._$AR(s&&s._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t&&t!==this._$AB;){const n=t.nextSibling;t.remove(),t=n}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class J{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,n,i){this.type=1,this._$AH=h,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=i,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=h}_$AI(t,e=this,s,n){const i=this.strings;let r=!1;if(i===void 0)t=I(this,t,e,0),r=!F(t)||t!==this._$AH&&t!==O,r&&(this._$AH=t);else{const c=t;let a,f;for(t=i[0],a=0;a<i.length-1;a++)f=I(this,c[s+a],e,a),f===O&&(f=this._$AH[a]),r||(r=!F(f)||f!==this._$AH[a]),f===h?t=h:t!==h&&(t+=(f??"")+i[a+1]),this._$AH[a]=f}r&&!n&&this.j(t)}j(t){t===h?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Ft extends J{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===h?void 0:t}}class Vt extends J{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==h)}}class Zt extends J{constructor(t,e,s,n,i){super(t,e,s,n,i),this.type=5}_$AI(t,e=this){if((t=I(this,t,e,0)??h)===O)return;const s=this._$AH,n=t===h&&s!==h||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,i=t!==h&&(s===h||n);n&&this.element.removeEventListener(this.name,this,s),i&&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 qt{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){I(this,t)}}const st=j.litHtmlPolyfillSupport;st==null||st(V,Z),(j.litHtmlVersions??(j.litHtmlVersions=[])).push("3.3.0");const Wt=(o,t,e)=>{const s=(e==null?void 0:e.renderBefore)??t;let n=s._$litPart$;if(n===void 0){const i=(e==null?void 0:e.renderBefore)??null;s._$litPart$=n=new Z(t.insertBefore(R(),i),i,void 0,e??{})}return n._$AI(o),n};/**
16
16
  * @license
17
17
  * Copyright 2017 Google LLC
18
18
  * SPDX-License-Identifier: BSD-3-Clause
19
- */const B=globalThis;let $=class extends M{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=Wt(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 O}};var xt;$._$litElement$=!0,$.finalized=!0,(xt=B.litElementHydrateSupport)==null||xt.call(B,{LitElement:$});const nt=B.litElementPolyfillSupport;nt==null||nt({LitElement:$});(B.litElementVersions??(B.litElementVersions=[])).push("4.2.0");/**
19
+ */const k=globalThis;let $=class extends M{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=Wt(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 O}};var xt;$._$litElement$=!0,$.finalized=!0,(xt=k.litElementHydrateSupport)==null||xt.call(k,{LitElement:$});const nt=k.litElementPolyfillSupport;nt==null||nt({LitElement:$});(k.litElementVersions??(k.litElementVersions=[])).push("4.2.0");/**
20
20
  * @license
21
21
  * Copyright 2017 Google LLC
22
22
  * SPDX-License-Identifier: BSD-3-Clause
@@ -24,7 +24,7 @@
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */const Gt={attribute:!0,type:String,converter:G,reflect:!1,hasChanged:ct},Kt=(o=Gt,t,e)=>{const{kind:s,metadata:n}=e;let i=globalThis.litPropertyMetadata.get(n);if(i===void 0&&globalThis.litPropertyMetadata.set(n,i=new Map),s==="setter"&&((o=Object.create(o)).wrapped=!0),i.set(e.name,o),s==="accessor"){const{name:r}=e;return{set(c){const a=t.get.call(this);t.set.call(this,c),this.requestUpdate(r,a,o)},init(c){return c!==void 0&&this.C(r,void 0,o,c),c}}}if(s==="setter"){const{name:r}=e;return function(c){const a=this[r];t.call(this,c),this.requestUpdate(r,a,o)}}throw Error("Unsupported decorator location: "+s)};function l(o){return(t,e)=>typeof e=="object"?Kt(o,t,e):((s,n,i)=>{const r=n.hasOwnProperty(i);return n.constructor.createProperty(i,s),r?Object.getOwnPropertyDescriptor(n,i):void 0})(o,t,e)}const Xt=E`
27
+ */const Kt={attribute:!0,type:String,converter:K,reflect:!1,hasChanged:ct},Gt=(o=Kt,t,e)=>{const{kind:s,metadata:n}=e;let i=globalThis.litPropertyMetadata.get(n);if(i===void 0&&globalThis.litPropertyMetadata.set(n,i=new Map),s==="setter"&&((o=Object.create(o)).wrapped=!0),i.set(e.name,o),s==="accessor"){const{name:r}=e;return{set(c){const a=t.get.call(this);t.set.call(this,c),this.requestUpdate(r,a,o)},init(c){return c!==void 0&&this.C(r,void 0,o,c),c}}}if(s==="setter"){const{name:r}=e;return function(c){const a=this[r];t.call(this,c),this.requestUpdate(r,a,o)}}throw Error("Unsupported decorator location: "+s)};function l(o){return(t,e)=>typeof e=="object"?Gt(o,t,e):((s,n,i)=>{const r=n.hasOwnProperty(i);return n.constructor.createProperty(i,s),r?Object.getOwnPropertyDescriptor(n,i):void 0})(o,t,e)}const Xt=E`
28
28
  outline: 1px dashed var(--button-border-color);
29
29
  outline-offset: 2px;
30
30
  outline: dashed black;
@@ -36,11 +36,11 @@
36
36
  * @license
37
37
  * Copyright 2023 Google LLC
38
38
  * SPDX-License-Identifier: Apache-2.0
39
- */const pt=Symbol("internals"),ot=Symbol("privateInternals");function Jt(o){var t;class e extends o{get[(t=pt,t)](){return this[ot]||(this[ot]=this.attachInternals()),this[ot]}}return e}/**
39
+ */const dt=Symbol("internals"),ot=Symbol("privateInternals");function Jt(o){var t;class e extends o{get[(t=dt,t)](){return this[ot]||(this[ot]=this.attachInternals()),this[ot]}}return e}/**
40
40
  * @license
41
41
  * Copyright 2023 Google LLC
42
42
  * SPDX-License-Identifier: Apache-2.0
43
- */function Qt(o){o.addInitializer(t=>{const e=t;e.addEventListener("click",async s=>{const{type:n,[pt]:i}=e,{form:r}=i;if(!(!r||n==="button")&&(await new Promise(c=>{setTimeout(c)}),!s.defaultPrevented)){if(n==="reset"){r.reset();return}r.addEventListener("submit",c=>{Object.defineProperty(c,"submitter",{configurable:!0,enumerable:!0,get:()=>e})},{capture:!0,once:!0}),i.setFormValue(e.value),r.requestSubmit()}})})}/**
43
+ */function Qt(o){o.addInitializer(t=>{const e=t;e.addEventListener("click",async s=>{const{type:n,[dt]:i}=e,{form:r}=i;if(!(!r||n==="button")&&(await new Promise(c=>{setTimeout(c)}),!s.defaultPrevented)){if(n==="reset"){r.reset();return}r.addEventListener("submit",c=>{Object.defineProperty(c,"submitter",{configurable:!0,enumerable:!0,get:()=>e})},{capture:!0,once:!0}),i.setFormValue(e.value),r.requestSubmit()}})})}/**
44
44
  * @license
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
@@ -79,11 +79,11 @@
79
79
  `,he=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
80
80
  <path d="M12.2834 14.4585L7.98873 11.3928L3.69404 14.4585L5.33977 9.4972L1 6.39639H6.36554L8 1.4585L9.63446 6.39639H15L10.6602 9.4972L12.306 14.4585H12.2834Z" fill="#3F2B2E"/>
81
81
  </svg>
82
- `,pe=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
82
+ `,de=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
83
83
  <path d="M2 2L14 14" stroke="#3F2B2E"/>
84
84
  <path d="M14 2L2 14" stroke="#3F2B2E"/>
85
85
  </svg>
86
- `,de=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
86
+ `,pe=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
87
87
  <path d="M7.12506 1C10.5018 1 13.2509 3.74834 13.251 7.125C13.2511 8.59738 12.7172 10.0206 11.7491 11.1299L14.8731 14.2539C15.0433 14.4253 15.0435 14.7018 14.8731 14.873C14.7913 14.9555 14.6797 15.002 14.5635 15.002C14.4475 15.0019 14.3357 14.9554 14.254 14.873L11.1309 11.749C10.0555 12.6818 8.6564 13.251 7.12506 13.251C3.7484 13.2508 1.00006 10.5017 1.00006 7.125C1.00025 3.74846 3.74852 1.00019 7.12506 1ZM7.12506 1.875C4.22971 1.87522 1.87506 4.23058 1.87506 7.12598C1.87532 10.0212 4.22987 12.3758 7.12506 12.376C10.0204 12.376 12.3758 10.0213 12.376 7.12598C12.376 4.23044 10.0206 1.875 7.12506 1.875Z" fill="#3F2B2E"/>
88
88
  </svg>
89
89
  `,ue=`<?xml version="1.0" encoding="utf-8"?>
@@ -105,12 +105,12 @@
105
105
  </style>
106
106
  <path class="st0" d="M27.3,20.7H12.7c-0.4,0-0.7-0.3-0.7-0.7s0.3-0.7,0.7-0.7h14.7c0.4,0,0.7,0.3,0.7,0.7S27.7,20.7,27.3,20.7z"/>
107
107
  </svg>
108
- `,dt={wishlist:se,playerv:ne,chevronRight:oe,chevronLeft:re,icoPlus:ue,icoMinus:fe,"star-0":ie,"star-25":ae,"star-50":le,"star-75":ce,"star-100":he,cross:pe,search:de};var ge=Object.defineProperty,ve=Object.getOwnPropertyDescriptor,C=(o,t,e,s)=>{for(var n=s>1?void 0:s?ve(t,e):t,i=o.length-1,r;i>=0;i--)(r=o[i])&&(n=(s?r(t,e,n):r(n))||n);return s&&n&&ge(t,e,n),n};let m=class extends ${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}updated(o){super.updated(o),this.style.setProperty("--icon-stroke-width",this.strokewidth)}render(){const o=dt[this.icon]??"",t=`icon-${this.icon}`,e=o.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"');return p`
109
- ${this.type==="span"?p`
108
+ `,pt={wishlist:se,playerv:ne,chevronRight:oe,chevronLeft:re,icoPlus:ue,icoMinus:fe,"star-0":ie,"star-25":ae,"star-50":le,"star-75":ce,"star-100":he,cross:de,search:pe};var ge=Object.defineProperty,ve=Object.getOwnPropertyDescriptor,C=(o,t,e,s)=>{for(var n=s>1?void 0:s?ve(t,e):t,i=o.length-1,r;i>=0;i--)(r=o[i])&&(n=(s?r(t,e,n):r(n))||n);return s&&n&&ge(t,e,n),n};let m=class extends ${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}updated(o){super.updated(o),this.style.setProperty("--icon-stroke-width",this.strokewidth)}render(){const o=pt[this.icon]??"",t=`icon-${this.icon}`,e=o.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"');return d`
109
+ ${this.type==="span"?d`
110
110
  <span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}" ?disabled="${this.disabled}">
111
111
  ${X(e)}
112
112
  </span>
113
- `:p`
113
+ `:d`
114
114
  <button
115
115
  type="button"
116
116
  aria-label="icon"
@@ -277,7 +277,7 @@
277
277
  }
278
278
 
279
279
  }
280
- `;C([l({type:String,reflect:!0})],m.prototype,"bgstyle",2);C([l({type:String,reflect:!0})],m.prototype,"size",2);C([l({type:String,reflect:!0})],m.prototype,"status",2);C([l({type:String,reflect:!0})],m.prototype,"type",2);C([l({type:String})],m.prototype,"strokewidth",2);C([l({type:String})],m.prototype,"icon",2);C([l({type:Boolean,reflect:!0})],m.prototype,"disabled",2);m=C([T("o-icon-button")],m);var be=Object.defineProperty,ye=Object.getOwnPropertyDescriptor,v=(o,t,e,s)=>{for(var n=s>1?void 0:s?ye(t,e):t,i=o.length-1,r;i>=0;i--)(r=o[i])&&(n=(s?r(t,e,n):r(n))||n);return s&&n&&be(t,e,n),n};const $e=Jt($);let u=class extends $e{constructor(){super(...arguments),this.type="submit",this.value="",this.variant="primary",this.text="",this.textsecond="",this.fullwidth=!1,this.disabled=!1,this.iconstrokewidth="1",this.startIcon=!1,this.endIcon=!1,this.iconSize="small",this.icon="",this.href="",this.target=""}get name(){return this.getAttribute("name")??""}set name(o){this.setAttribute("name",o)}get form(){return this[pt].form}render(){return this.href?this.renderLink():this.renderButton()}renderIcon(o){return this.icon?p`<o-icon-button
280
+ `;C([l({type:String,reflect:!0})],m.prototype,"bgstyle",2);C([l({type:String,reflect:!0})],m.prototype,"size",2);C([l({type:String,reflect:!0})],m.prototype,"status",2);C([l({type:String,reflect:!0})],m.prototype,"type",2);C([l({type:String})],m.prototype,"strokewidth",2);C([l({type:String})],m.prototype,"icon",2);C([l({type:Boolean,reflect:!0})],m.prototype,"disabled",2);m=C([T("o-icon-button")],m);var be=Object.defineProperty,ye=Object.getOwnPropertyDescriptor,v=(o,t,e,s)=>{for(var n=s>1?void 0:s?ye(t,e):t,i=o.length-1,r;i>=0;i--)(r=o[i])&&(n=(s?r(t,e,n):r(n))||n);return s&&n&&be(t,e,n),n};const $e=Jt($);let u=class extends $e{constructor(){super(...arguments),this.type="submit",this.value="",this.variant="primary",this.text="",this.textsecond="",this.fullwidth=!1,this.disabled=!1,this.iconstrokewidth="1",this.startIcon=!1,this.endIcon=!1,this.iconSize="small",this.icon="",this.href="",this.target=""}get name(){return this.getAttribute("name")??""}set name(o){this.setAttribute("name",o)}get form(){return this[dt].form}render(){return this.href?this.renderLink():this.renderButton()}renderIcon(o){return this.icon?d`<o-icon-button
281
281
  class=${o==="start"?"icon-start":"icon-end"}
282
282
  icon=${this.icon}
283
283
  bgstyle="${this.variant==="primary"?"none-light":"none-contrast"}"
@@ -286,16 +286,16 @@
286
286
  type="span"
287
287
  aria-hidden="true"
288
288
  ?disabled=${this.disabled}
289
- ></o-icon-button>`:h}renderButton(){const o=this.text||this.textsecond;return p`
289
+ ></o-icon-button>`:h}renderButton(){const o=this.text||this.textsecond;return d`
290
290
  <button class="button" ?disabled=${this.disabled}>
291
291
  ${this.startIcon?this.renderIcon("start"):h}
292
- ${o?p`
293
- ${this.text?p`<span>${this.text}</span>`:h}
294
- ${this.textsecond?p`<span>${this.textsecond}</span>`:h}
295
- `:p`<slot></slot>`}
292
+ ${o?d`
293
+ ${this.text?d`<span>${this.text}</span>`:h}
294
+ ${this.textsecond?d`<span>${this.textsecond}</span>`:h}
295
+ `:d`<slot></slot>`}
296
296
  ${this.endIcon?this.renderIcon("end"):h}
297
297
  </button>
298
- `}renderLink(){const o=this.text||this.textsecond;return p`
298
+ `}renderLink(){const o=this.text||this.textsecond;return d`
299
299
  <a
300
300
  href=${this.href}
301
301
  target=${this.target||h}
@@ -303,10 +303,10 @@
303
303
  ?disabled=${this.disabled}
304
304
  >
305
305
  ${this.startIcon?this.renderIcon("start"):h}
306
- ${o?p`
307
- ${this.text?p`<span>${this.text}</span>`:h}
308
- ${this.textsecond?p`<span>${this.textsecond}</span>`:h}
309
- `:p`<slot></slot>`}
306
+ ${o?d`
307
+ ${this.text?d`<span>${this.text}</span>`:h}
308
+ ${this.textsecond?d`<span>${this.textsecond}</span>`:h}
309
+ `:d`<slot></slot>`}
310
310
  ${this.endIcon?this.renderIcon("end"):h}
311
311
  </a>
312
312
  `}};Qt(u);u.formAssociated=!0;u.styles=E`
@@ -438,58 +438,49 @@
438
438
  display: inline-flex;
439
439
  align-items: center;
440
440
  }
441
- `;v([l()],u.prototype,"type",2);v([l({reflect:!0})],u.prototype,"value",2);v([l({reflect:!0})],u.prototype,"variant",2);v([l({type:String})],u.prototype,"text",2);v([l({type:String})],u.prototype,"textsecond",2);v([l({reflect:!0,type:Boolean})],u.prototype,"fullwidth",2);v([l({reflect:!0,type:Boolean})],u.prototype,"disabled",2);v([l({type:String})],u.prototype,"iconstrokewidth",2);v([l({type:Boolean,reflect:!0})],u.prototype,"startIcon",2);v([l({type:Boolean,reflect:!0})],u.prototype,"endIcon",2);v([l({type:String,reflect:!0})],u.prototype,"iconSize",2);v([l({type:String})],u.prototype,"icon",2);v([l()],u.prototype,"href",2);v([l()],u.prototype,"target",2);u=v([T("o-button")],u);var me=Object.defineProperty,we=Object.getOwnPropertyDescriptor,Q=(o,t,e,s)=>{for(var n=s>1?void 0:s?we(t,e):t,i=o.length-1,r;i>=0;i--)(r=o[i])&&(n=(s?r(t,e,n):r(n))||n);return s&&n&&me(t,e,n),n};let z=class extends ${constructor(){super(...arguments),this.status="empty",this.ariaDescribedBy="a-product-name",this.label="Add to wishlist"}render(){const o=dt.wishlist.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"');return p`
442
- <button
443
- type="button"
444
- aria-describedby="${this.ariaDescribedBy}"
445
- class="wishlist-button"
446
- @click="${this.handleClick}"
447
- >
448
- <span class="sr-only">${this.label}</span>
449
- ${X(o)}
450
- </button>
451
- `}handleClick(o){this.toggleStatus(),this.dispatchEvent(new MouseEvent("click",{bubbles:!0,composed:!0}))}toggleStatus(){this.status=this.status=="empty"?"filled":"empty"}setStatus(o){this.status=o,this.requestUpdate()}setAriaDescribedBy(o){this.ariaDescribedBy=o,this.requestUpdate()}setLabel(o){this.label=o,this.requestUpdate()}};z.styles=E`
452
- :host {
441
+ `;v([l()],u.prototype,"type",2);v([l({reflect:!0})],u.prototype,"value",2);v([l({reflect:!0})],u.prototype,"variant",2);v([l({type:String})],u.prototype,"text",2);v([l({type:String})],u.prototype,"textsecond",2);v([l({reflect:!0,type:Boolean})],u.prototype,"fullwidth",2);v([l({reflect:!0,type:Boolean})],u.prototype,"disabled",2);v([l({type:String})],u.prototype,"iconstrokewidth",2);v([l({type:Boolean,reflect:!0})],u.prototype,"startIcon",2);v([l({type:Boolean,reflect:!0})],u.prototype,"endIcon",2);v([l({type:String,reflect:!0})],u.prototype,"iconSize",2);v([l({type:String})],u.prototype,"icon",2);v([l()],u.prototype,"href",2);v([l()],u.prototype,"target",2);u=v([T("o-button")],u);var me=Object.defineProperty,we=Object.getOwnPropertyDescriptor,Q=(o,t,e,s)=>{for(var n=s>1?void 0:s?we(t,e):t,i=o.length-1,r;i>=0;i--)(r=o[i])&&(n=(s?r(t,e,n):r(n))||n);return s&&n&&me(t,e,n),n};let z=class extends ${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=pt.wishlist.replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"');return d`
442
+ <button
443
+ type="button"
444
+ aria-describedby="${this.ariaDescribedBy}"
445
+ class="wishlist-button"
446
+ tabindex="-1"
447
+ >
448
+ <span class="sr-only">${this.label}</span>
449
+ ${X(o)}
450
+ </button>
451
+ `}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()}};z.styles=E`
452
+ :host {
453
453
  display: inline-flex;
454
454
  justify-content: center;
455
455
  align-items: center;
456
- cursor: pointer;
457
- }
456
+ outline: none;
457
+ }
458
458
 
459
- .wishlist-button {
460
- display: flex;
461
- justify-content: center;
462
- align-items: center;
463
- width: 40px;
464
- height: 40px;
465
- border: transparent;
466
- border-radius: var(--radius-full);
467
- background-color: var(--color-alpha-light-strong);
468
- position: relative;
469
- cursor: pointer;
470
- }
459
+ :host(:focus-visible) {
460
+ outline: 1px dashed var(--color-content-action-secondary);
461
+ outline-offset: 1px;
462
+ }
471
463
 
472
- .sr-only {
473
- border: 0 !important;
474
- clip: rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;
475
- -webkit-clip-path: inset(50%) !important;
476
- clip-path: inset(50%) !important;
477
- height: 0.1rem !important;
478
- margin: -0.1rem !important;
479
- overflow: hidden !important;
480
- padding: 0 !important;
481
- position: absolute !important;
482
- width: 0.1rem !important;
483
- white-space: nowrap !important;
464
+ .wishlist-button {
465
+ display: flex;
466
+ justify-content: center;
467
+ align-items: center;
468
+ width: 40px;
469
+ height: 40px;
470
+ border: transparent;
471
+ border-radius: var(--radius-full);
472
+ background-color: var(--color-alpha-light-strong);
473
+ position: relative;
474
+ cursor: pointer;
484
475
  }
485
476
 
486
- .wishlist-button:hover {
487
- background-color: var(--color-alpha-light-stronger);
488
- }
477
+ .wishlist-button:hover {
478
+ background-color: var(--color-alpha-light-stronger);
479
+ }
489
480
 
490
481
  :host([status="filled"]) .wishlist-button {
491
- background-color: var(--color-alpha-light-strongest);
492
- }
482
+ background-color: var(--color-alpha-light-strongest);
483
+ }
493
484
 
494
485
  .wishlist-button:hover svg path {
495
486
  fill: var(--color-content-action-secondary);
@@ -502,9 +493,23 @@
502
493
  :host([status="filled"]) .wishlist-button:hover svg path {
503
494
  fill: var(--color-alpha-light-strong);
504
495
  }
505
- `;Q([l({type:String,reflect:!0})],z.prototype,"status",2);Q([l({type:String,reflect:!0})],z.prototype,"ariaDescribedBy",2);Q([l({type:String,reflect:!0})],z.prototype,"label",2);z=Q([T("o-wishlist-button")],z);var _e=Object.defineProperty,xe=Object.getOwnPropertyDescriptor,H=(o,t,e,s)=>{for(var n=s>1?void 0:s?xe(t,e):t,i=o.length-1,r;i>=0;i--)(r=o[i])&&(n=(s?r(t,e,n):r(n))||n);return s&&n&&_e(t,e,n),n};let _=class extends ${constructor(){super(...arguments),this.href="",this.target="",this.template="standard",this.inverse=!1,this.endIcon=!1,this.reverseEndIcon=!1}render(){return p`
496
+
497
+ .sr-only {
498
+ border: 0 !important;
499
+ clip: rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;
500
+ -webkit-clip-path: inset(50%) !important;
501
+ clip-path: inset(50%) !important;
502
+ height: 0.1rem !important;
503
+ margin: -0.1rem !important;
504
+ overflow: hidden !important;
505
+ padding: 0 !important;
506
+ position: absolute !important;
507
+ width: 0.1rem !important;
508
+ white-space: nowrap !important;
509
+ }
510
+ `;Q([l({type:String,reflect:!0})],z.prototype,"status",2);Q([l({type:String,reflect:!0})],z.prototype,"ariaDescribedBy",2);Q([l({type:String,reflect:!0})],z.prototype,"label",2);z=Q([T("o-wishlist-button")],z);var _e=Object.defineProperty,xe=Object.getOwnPropertyDescriptor,H=(o,t,e,s)=>{for(var n=s>1?void 0:s?xe(t,e):t,i=o.length-1,r;i>=0;i--)(r=o[i])&&(n=(s?r(t,e,n):r(n))||n);return s&&n&&_e(t,e,n),n};let _=class extends ${constructor(){super(...arguments),this.href="",this.target="",this.template="standard",this.inverse=!1,this.endIcon=!1,this.reverseEndIcon=!1}render(){return d`
506
511
  <a href="${this.href}" target="${this.target}">
507
- ${this.endIcon&&this.reverseEndIcon?p`
512
+ ${this.endIcon&&this.reverseEndIcon?d`
508
513
  <o-icon-button
509
514
  icon="chevronLeft"
510
515
  bgstyle="${this.inverse?"none-light":"none-contrast"}"
@@ -514,7 +519,7 @@
514
519
  ></o-icon-button>
515
520
  `:null}
516
521
  <span class="link-text"><slot></slot></span>
517
- ${this.endIcon&&!this.reverseEndIcon?p`
522
+ ${this.endIcon&&!this.reverseEndIcon?d`
518
523
  <o-icon-button
519
524
  icon="chevronRight"
520
525
  bgstyle="${this.inverse?"none-light":"none-contrast"}"
@@ -611,12 +616,12 @@
611
616
  height: 1px;
612
617
  }
613
618
  /* End of underline effect */
614
- `;H([l({type:String})],_.prototype,"href",2);H([l({type:String})],_.prototype,"target",2);H([l({type:String,reflect:!0})],_.prototype,"template",2);H([l({type:Boolean,reflect:!0})],_.prototype,"inverse",2);H([l({type:Boolean,reflect:!0})],_.prototype,"endIcon",2);H([l({type:Boolean,reflect:!0})],_.prototype,"reverseEndIcon",2);_=H([T("o-link")],_);var Ae=Object.defineProperty,Se=Object.getOwnPropertyDescriptor,Y=(o,t,e,s)=>{for(var n=s>1?void 0:s?Se(t,e):t,i=o.length-1,r;i>=0;i--)(r=o[i])&&(n=(s?r(t,e,n):r(n))||n);return s&&n&&Ae(t,e,n),n};let U=class extends ${constructor(){super(...arguments),this.rating=0}getStarKeys(){const o=[];for(let t=0;t<5;t++){const e=this.rating-t;let s;e>=1?s=100:e<=0?s=0:s=Math.round(e*100/25)*25,o.push(`star-${s}`)}return o}render(){const o=this.getStarKeys();return p`
619
+ `;H([l({type:String})],_.prototype,"href",2);H([l({type:String})],_.prototype,"target",2);H([l({type:String,reflect:!0})],_.prototype,"template",2);H([l({type:Boolean,reflect:!0})],_.prototype,"inverse",2);H([l({type:Boolean,reflect:!0})],_.prototype,"endIcon",2);H([l({type:Boolean,reflect:!0})],_.prototype,"reverseEndIcon",2);_=H([T("o-link")],_);var Ae=Object.defineProperty,Se=Object.getOwnPropertyDescriptor,Y=(o,t,e,s)=>{for(var n=s>1?void 0:s?Se(t,e):t,i=o.length-1,r;i>=0;i--)(r=o[i])&&(n=(s?r(t,e,n):r(n))||n);return s&&n&&Ae(t,e,n),n};let U=class extends ${constructor(){super(...arguments),this.rating=0}getStarKeys(){const o=[];for(let t=0;t<5;t++){const e=this.rating-t;let s;e>=1?s=100:e<=0?s=0:s=Math.round(e*100/25)*25,o.push(`star-${s}`)}return o}render(){const o=this.getStarKeys();return d`
615
620
  <div class="rating">
616
621
  <div class="stars">
617
- ${o.map(t=>p`<span class="star">${X(dt[t]??"")}</span>`)}
622
+ ${o.map(t=>d`<span class="star">${X(pt[t]??"")}</span>`)}
618
623
  </div>
619
- ${this.reviewCount!=null&&this.href!=null?p`<o-link template="review" href="${this.href}">${this.reviewCount}</o-link>`:null}
624
+ ${this.reviewCount!=null&&this.href!=null?d`<o-link template="review" href="${this.href}">${this.reviewCount}</o-link>`:null}
620
625
  </div>
621
626
  `}};U.styles=E`
622
627
  svg {
@@ -651,7 +656,7 @@
651
656
  text-decoration: underline;
652
657
  cursor: pointer;
653
658
  }
654
- `;Y([l({type:Number})],U.prototype,"rating",2);Y([l({type:String})],U.prototype,"reviewCount",2);Y([l({type:String})],U.prototype,"href",2);U=Y([T("o-rating")],U);var Ee=Object.defineProperty,Ce=Object.getOwnPropertyDescriptor,y=(o,t,e,s)=>{for(var n=s>1?void 0:s?Ce(t,e):t,i=o.length-1,r;i>=0;i--)(r=o[i])&&(n=(s?r(t,e,n):r(n))||n);return s&&n&&Ee(t,e,n),n};let b=class extends ${constructor(){super(...arguments),this.open=!1,this.showHeader=!0,this.showFooter=!0,this.headerTitle="",this.closeButtonLabel="Close the modal",this.firstButtonLabel="First Button",this.firstButtonVariant="primary",this.secondaryButtonLabel="Second Button",this.secondaryButtonVariant="primary",this.previousFocusedElement=null,this.handleKeyDown=o=>{this.open&&(o.key==="Escape"?this.closePanel():o.key==="Tab"&&this.trapFocus(o))}}connectedCallback(){super.connectedCallback(),window.addEventListener("keydown",this.handleKeyDown)}disconnectedCallback(){window.removeEventListener("keydown",this.handleKeyDown),super.disconnectedCallback()}trapFocus(o){const t=this.getFocusableElements();if(t.length===0)return;const e=t[0],s=t[t.length-1];o.shiftKey&&document.activeElement===e?(o.preventDefault(),s.focus()):!o.shiftKey&&document.activeElement===s&&(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,this.updateComplete.then(()=>{const o=this.getFocusableElements()[0];o==null||o.focus()})}closePanel(){var o;this.open=!1,(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()}render(){return p`
659
+ `;Y([l({type:Number})],U.prototype,"rating",2);Y([l({type:String})],U.prototype,"reviewCount",2);Y([l({type:String})],U.prototype,"href",2);U=Y([T("o-rating")],U);var Ee=Object.defineProperty,Ce=Object.getOwnPropertyDescriptor,y=(o,t,e,s)=>{for(var n=s>1?void 0:s?Ce(t,e):t,i=o.length-1,r;i>=0;i--)(r=o[i])&&(n=(s?r(t,e,n):r(n))||n);return s&&n&&Ee(t,e,n),n};let b=class extends ${constructor(){super(...arguments),this.open=!1,this.showHeader=!0,this.showFooter=!1,this.headerTitle="",this.closeButtonLabel="Close the modal",this.firstButtonLabel="First Button",this.firstButtonVariant="primary",this.secondaryButtonLabel="Second Button",this.secondaryButtonVariant="primary",this.previousFocusedElement=null,this.handleKeyDown=o=>{this.open&&(o.key==="Escape"?this.closePanel():o.key==="Tab"&&this.trapFocus(o))}}connectedCallback(){super.connectedCallback(),window.addEventListener("keydown",this.handleKeyDown)}disconnectedCallback(){window.removeEventListener("keydown",this.handleKeyDown),super.disconnectedCallback()}trapFocus(o){const t=this.getFocusableElements();if(t.length===0)return;const e=t[0],s=t[t.length-1];o.shiftKey&&document.activeElement===e?(o.preventDefault(),s.focus()):!o.shiftKey&&document.activeElement===s&&(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,this.updateComplete.then(()=>{const o=this.getFocusableElements()[0];o==null||o.focus()})}closePanel(){var o;this.open=!1,(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()}render(){return d`
655
660
  <div class="overlay" @click=${this.closePanel}></div>
656
661
  <div
657
662
  class="panel"
@@ -661,7 +666,7 @@
661
666
  >
662
667
  <o-icon-button icon="cross" size="medium" class="close-btn" @click=${this.closePanel} aria-label="${this.closeButtonLabel}"></o-icon-button>
663
668
 
664
- ${this.showHeader?p`
669
+ ${this.showHeader?d`
665
670
  <div class="header">
666
671
  <span id="panel-title" class="panel-title">${this.headerTitle}</span>
667
672
  </div>
@@ -671,9 +676,9 @@
671
676
  <slot></slot>
672
677
  </div>
673
678
 
674
- ${this.showFooter&&this.firstButtonVariant&&this.firstButtonLabel||this.secondaryButtonVariant&&this.secondaryButtonLabel?p`
679
+ ${this.showFooter&&this.firstButtonVariant&&this.firstButtonLabel||this.secondaryButtonVariant&&this.secondaryButtonLabel?d`
675
680
  <div class="footer">
676
- ${this.firstButtonVariant&&this.firstButtonLabel?p`
681
+ ${this.firstButtonVariant&&this.firstButtonLabel?d`
677
682
  <o-button
678
683
  customclass="full"
679
684
  variant="${this.firstButtonVariant}"
@@ -683,7 +688,7 @@
683
688
  </o-button>
684
689
  `:null}
685
690
 
686
- ${this.secondaryButtonVariant&&this.secondaryButtonLabel?p`
691
+ ${this.secondaryButtonVariant&&this.secondaryButtonLabel?d`
687
692
  <o-button
688
693
  customclass="full"
689
694
  variant="${this.secondaryButtonVariant}"
@@ -792,4 +797,4 @@
792
797
  max-width: none;
793
798
  }
794
799
  }
795
- `;y([l({type:Boolean,reflect:!0})],b.prototype,"open",2);y([l({type:Boolean})],b.prototype,"showHeader",2);y([l({type:Boolean})],b.prototype,"showFooter",2);y([l({type:String})],b.prototype,"headerTitle",2);y([l({type:String})],b.prototype,"closeButtonLabel",2);y([l({type:String})],b.prototype,"firstButtonLabel",2);y([l({type:String})],b.prototype,"firstButtonVariant",2);y([l({type:Function})],b.prototype,"onFirstButtonClick",2);y([l({type:String})],b.prototype,"secondaryButtonLabel",2);y([l({type:String})],b.prototype,"secondaryButtonVariant",2);y([l({type:Function})],b.prototype,"onSecondaryButtonClick",2);b=y([T("o-side-panel")],b);
800
+ `;y([l({type:Boolean,reflect:!0})],b.prototype,"open",2);y([l({type:Boolean,reflect:!0})],b.prototype,"showHeader",2);y([l({type:Boolean,reflect:!0})],b.prototype,"showFooter",2);y([l({type:String,reflect:!0})],b.prototype,"headerTitle",2);y([l({type:String,reflect:!0})],b.prototype,"closeButtonLabel",2);y([l({type:String,reflect:!0})],b.prototype,"firstButtonLabel",2);y([l({type:String,reflect:!0})],b.prototype,"firstButtonVariant",2);y([l({type:Function})],b.prototype,"onFirstButtonClick",2);y([l({type:String,reflect:!0})],b.prototype,"secondaryButtonLabel",2);y([l({type:String,reflect:!0})],b.prototype,"secondaryButtonVariant",2);y([l({type:Function})],b.prototype,"onSecondaryButtonClick",2);b=y([T("o-side-panel")],b);
package/index.mjs CHANGED
@@ -29,7 +29,7 @@ const Pt = (o) => new At(typeof o == "string" ? o : o + "", void 0, lt), E = (o,
29
29
  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.");
30
30
  })(n) + o[i + 1], o[0]);
31
31
  return new At(e, o, lt);
32
- }, Bt = (o, t) => {
32
+ }, kt = (o, t) => {
33
33
  if (at) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
34
34
  else for (const e of t) {
35
35
  const s = document.createElement("style"), n = W.litNonce;
@@ -45,7 +45,7 @@ const Pt = (o) => new At(typeof o == "string" ? o : o + "", void 0, lt), E = (o,
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const { is: kt, defineProperty: Ot, getOwnPropertyDescriptor: Ht, getOwnPropertyNames: Mt, getOwnPropertySymbols: It, getPrototypeOf: zt } = Object, S = globalThis, gt = S.trustedTypes, Ut = gt ? gt.emptyScript : "", tt = S.reactiveElementPolyfillSupport, N = (o, t) => o, G = { toAttribute(o, t) {
48
+ const { is: Bt, defineProperty: Ot, getOwnPropertyDescriptor: Ht, getOwnPropertyNames: Mt, getOwnPropertySymbols: It, getPrototypeOf: zt } = Object, S = globalThis, gt = S.trustedTypes, Ut = gt ? gt.emptyScript : "", tt = S.reactiveElementPolyfillSupport, N = (o, t) => o, K = { toAttribute(o, t) {
49
49
  switch (t) {
50
50
  case Boolean:
51
51
  o = o ? Ut : null;
@@ -73,7 +73,7 @@ const { is: kt, defineProperty: Ot, getOwnPropertyDescriptor: Ht, getOwnProperty
73
73
  }
74
74
  }
75
75
  return e;
76
- } }, ct = (o, t) => !kt(o, t), vt = { attribute: !0, type: String, converter: G, reflect: !1, useDefault: !1, hasChanged: ct };
76
+ } }, ct = (o, t) => !Bt(o, t), vt = { attribute: !0, type: String, converter: K, reflect: !1, useDefault: !1, hasChanged: ct };
77
77
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), S.litPropertyMetadata ?? (S.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
78
  let M = class extends HTMLElement {
79
79
  static addInitializer(t) {
@@ -159,7 +159,7 @@ let M = class extends HTMLElement {
159
159
  }
160
160
  createRenderRoot() {
161
161
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
162
- return Bt(t, this.constructor.elementStyles), t;
162
+ return kt(t, this.constructor.elementStyles), t;
163
163
  }
164
164
  connectedCallback() {
165
165
  var t;
@@ -184,7 +184,7 @@ let M = class extends HTMLElement {
184
184
  var i;
185
185
  const s = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, s);
186
186
  if (n !== void 0 && s.reflect === !0) {
187
- const r = (((i = s.converter) == null ? void 0 : i.toAttribute) !== void 0 ? s.converter : G).toAttribute(e, s.type);
187
+ const r = (((i = s.converter) == null ? void 0 : i.toAttribute) !== void 0 ? s.converter : K).toAttribute(e, s.type);
188
188
  this._$Em = t, r == null ? this.removeAttribute(n) : this.setAttribute(n, r), this._$Em = null;
189
189
  }
190
190
  }
@@ -192,7 +192,7 @@ let M = class extends HTMLElement {
192
192
  var i, r;
193
193
  const s = this.constructor, n = s._$Eh.get(t);
194
194
  if (n !== void 0 && this._$Em !== n) {
195
- const c = s.getPropertyOptions(n), a = typeof c.converter == "function" ? { fromAttribute: c.converter } : ((i = c.converter) == null ? void 0 : i.fromAttribute) !== void 0 ? c.converter : G;
195
+ const c = s.getPropertyOptions(n), a = typeof c.converter == "function" ? { fromAttribute: c.converter } : ((i = c.converter) == null ? void 0 : i.fromAttribute) !== void 0 ? c.converter : K;
196
196
  this._$Em = n, this[n] = a.fromAttribute(e, c.type) ?? ((r = this._$Ej) == null ? void 0 : r.get(n)) ?? null, this._$Em = null;
197
197
  }
198
198
  }
@@ -282,9 +282,9 @@ M.elementStyles = [], M.shadowRootOptions = { mode: "open" }, M[N("elementProper
282
282
  * Copyright 2017 Google LLC
283
283
  * SPDX-License-Identifier: BSD-3-Clause
284
284
  */
285
- const j = globalThis, K = j.trustedTypes, bt = K ? K.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, St = "$lit$", A = `lit$${Math.random().toFixed(9).slice(2)}$`, Et = "?" + A, Tt = `<${Et}>`, k = document, R = () => k.createComment(""), F = (o) => o === null || typeof o != "object" && typeof o != "function", ht = Array.isArray, Dt = (o) => ht(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", et = `[
285
+ const j = globalThis, G = j.trustedTypes, bt = G ? G.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, St = "$lit$", A = `lit$${Math.random().toFixed(9).slice(2)}$`, Et = "?" + A, Tt = `<${Et}>`, B = document, R = () => B.createComment(""), F = (o) => o === null || typeof o != "object" && typeof o != "function", ht = Array.isArray, Dt = (o) => ht(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", et = `[
286
286
  \f\r]`, D = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, yt = /-->/g, $t = />/g, L = RegExp(`>|${et}(?:([^\\s"'>=/]+)(${et}*=${et}*(?:[^
287
- \f\r"'\`<>=]|("|')|))|$)`, "g"), mt = /'/g, wt = /"/g, Ct = /^(?:script|style|textarea|title)$/i, Nt = (o) => (t, ...e) => ({ _$litType$: o, strings: t, values: e }), p = Nt(1), O = Symbol.for("lit-noChange"), h = Symbol.for("lit-nothing"), _t = /* @__PURE__ */ new WeakMap(), P = k.createTreeWalker(k, 129);
287
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), mt = /'/g, wt = /"/g, Ct = /^(?:script|style|textarea|title)$/i, Nt = (o) => (t, ...e) => ({ _$litType$: o, strings: t, values: e }), d = Nt(1), O = Symbol.for("lit-noChange"), h = Symbol.for("lit-nothing"), _t = /* @__PURE__ */ new WeakMap(), P = B.createTreeWalker(B, 129);
288
288
  function Lt(o, t) {
289
289
  if (!ht(o) || !o.hasOwnProperty("raw")) throw Error("invalid template strings array");
290
290
  return bt !== void 0 ? bt.createHTML(t) : t;
@@ -294,10 +294,10 @@ const jt = (o, t) => {
294
294
  let n, i = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", r = D;
295
295
  for (let c = 0; c < e; c++) {
296
296
  const a = o[c];
297
- let f, g, d = -1, w = 0;
298
- for (; w < a.length && (r.lastIndex = w, g = r.exec(a), g !== null); ) w = r.lastIndex, r === D ? g[1] === "!--" ? r = yt : g[1] !== void 0 ? r = $t : g[2] !== void 0 ? (Ct.test(g[2]) && (n = RegExp("</" + g[2], "g")), r = L) : g[3] !== void 0 && (r = L) : r === L ? g[0] === ">" ? (r = n ?? D, d = -1) : g[1] === void 0 ? d = -2 : (d = r.lastIndex - g[2].length, f = g[1], r = g[3] === void 0 ? L : g[3] === '"' ? wt : mt) : r === wt || r === mt ? r = L : r === yt || r === $t ? r = D : (r = L, n = void 0);
297
+ let f, g, p = -1, w = 0;
298
+ for (; w < a.length && (r.lastIndex = w, g = r.exec(a), g !== null); ) w = r.lastIndex, r === D ? g[1] === "!--" ? r = yt : g[1] !== void 0 ? r = $t : g[2] !== void 0 ? (Ct.test(g[2]) && (n = RegExp("</" + g[2], "g")), r = L) : g[3] !== void 0 && (r = L) : r === L ? g[0] === ">" ? (r = n ?? D, p = -1) : g[1] === void 0 ? p = -2 : (p = r.lastIndex - g[2].length, f = g[1], r = g[3] === void 0 ? L : g[3] === '"' ? wt : mt) : r === wt || r === mt ? r = L : r === yt || r === $t ? r = D : (r = L, n = void 0);
299
299
  const x = r === L && o[c + 1].startsWith("/>") ? " " : "";
300
- i += r === D ? a + Tt : d >= 0 ? (s.push(f), a.slice(0, d) + St + a.slice(d) + A + x) : a + A + (d === -2 ? c : x);
300
+ i += r === D ? a + Tt : p >= 0 ? (s.push(f), a.slice(0, p) + St + a.slice(p) + A + x) : a + A + (p === -2 ? c : x);
301
301
  }
302
302
  return [Lt(o, i + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
303
303
  };
@@ -308,33 +308,33 @@ class V {
308
308
  let i = 0, r = 0;
309
309
  const c = t.length - 1, a = this.parts, [f, g] = jt(t, e);
310
310
  if (this.el = V.createElement(f, s), P.currentNode = this.el.content, e === 2 || e === 3) {
311
- const d = this.el.content.firstChild;
312
- d.replaceWith(...d.childNodes);
311
+ const p = this.el.content.firstChild;
312
+ p.replaceWith(...p.childNodes);
313
313
  }
314
314
  for (; (n = P.nextNode()) !== null && a.length < c; ) {
315
315
  if (n.nodeType === 1) {
316
- if (n.hasAttributes()) for (const d of n.getAttributeNames()) if (d.endsWith(St)) {
317
- const w = g[r++], x = n.getAttribute(d).split(A), q = /([.?@])?(.*)/.exec(w);
318
- a.push({ type: 1, index: i, name: q[2], strings: x, ctor: q[1] === "." ? Ft : q[1] === "?" ? Vt : q[1] === "@" ? Zt : J }), n.removeAttribute(d);
319
- } else d.startsWith(A) && (a.push({ type: 6, index: i }), n.removeAttribute(d));
316
+ if (n.hasAttributes()) for (const p of n.getAttributeNames()) if (p.endsWith(St)) {
317
+ const w = g[r++], x = n.getAttribute(p).split(A), q = /([.?@])?(.*)/.exec(w);
318
+ a.push({ type: 1, index: i, name: q[2], strings: x, ctor: q[1] === "." ? Ft : q[1] === "?" ? Vt : q[1] === "@" ? Zt : J }), n.removeAttribute(p);
319
+ } else p.startsWith(A) && (a.push({ type: 6, index: i }), n.removeAttribute(p));
320
320
  if (Ct.test(n.tagName)) {
321
- const d = n.textContent.split(A), w = d.length - 1;
321
+ const p = n.textContent.split(A), w = p.length - 1;
322
322
  if (w > 0) {
323
- n.textContent = K ? K.emptyScript : "";
324
- for (let x = 0; x < w; x++) n.append(d[x], R()), P.nextNode(), a.push({ type: 2, index: ++i });
325
- n.append(d[w], R());
323
+ n.textContent = G ? G.emptyScript : "";
324
+ for (let x = 0; x < w; x++) n.append(p[x], R()), P.nextNode(), a.push({ type: 2, index: ++i });
325
+ n.append(p[w], R());
326
326
  }
327
327
  }
328
328
  } else if (n.nodeType === 8) if (n.data === Et) a.push({ type: 2, index: i });
329
329
  else {
330
- let d = -1;
331
- for (; (d = n.data.indexOf(A, d + 1)) !== -1; ) a.push({ type: 7, index: i }), d += A.length - 1;
330
+ let p = -1;
331
+ for (; (p = n.data.indexOf(A, p + 1)) !== -1; ) a.push({ type: 7, index: i }), p += A.length - 1;
332
332
  }
333
333
  i++;
334
334
  }
335
335
  }
336
336
  static createElement(t, e) {
337
- const s = k.createElement("template");
337
+ const s = B.createElement("template");
338
338
  return s.innerHTML = t, s;
339
339
  }
340
340
  }
@@ -356,7 +356,7 @@ class Rt {
356
356
  return this._$AM._$AU;
357
357
  }
358
358
  u(t) {
359
- const { el: { content: e }, parts: s } = this._$AD, n = ((t == null ? void 0 : t.creationScope) ?? k).importNode(e, !0);
359
+ const { el: { content: e }, parts: s } = this._$AD, n = ((t == null ? void 0 : t.creationScope) ?? B).importNode(e, !0);
360
360
  P.currentNode = n;
361
361
  let i = P.nextNode(), r = 0, c = 0, a = s[0];
362
362
  for (; a !== void 0; ) {
@@ -366,7 +366,7 @@ class Rt {
366
366
  }
367
367
  r !== (a == null ? void 0 : a.index) && (i = P.nextNode(), r++);
368
368
  }
369
- return P.currentNode = k, n;
369
+ return P.currentNode = B, n;
370
370
  }
371
371
  p(t) {
372
372
  let e = 0;
@@ -402,7 +402,7 @@ class Z {
402
402
  this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
403
403
  }
404
404
  _(t) {
405
- this._$AH !== h && F(this._$AH) ? this._$AA.nextSibling.data = t : this.T(k.createTextNode(t)), this._$AH = t;
405
+ this._$AH !== h && F(this._$AH) ? this._$AA.nextSibling.data = t : this.T(B.createTextNode(t)), this._$AH = t;
406
406
  }
407
407
  $(t) {
408
408
  var i;
@@ -518,7 +518,7 @@ const Wt = (o, t, e) => {
518
518
  * Copyright 2017 Google LLC
519
519
  * SPDX-License-Identifier: BSD-3-Clause
520
520
  */
521
- const B = globalThis;
521
+ const k = globalThis;
522
522
  let $ = class extends M {
523
523
  constructor() {
524
524
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
@@ -545,10 +545,10 @@ let $ = class extends M {
545
545
  }
546
546
  };
547
547
  var xt;
548
- $._$litElement$ = !0, $.finalized = !0, (xt = B.litElementHydrateSupport) == null || xt.call(B, { LitElement: $ });
549
- const nt = B.litElementPolyfillSupport;
548
+ $._$litElement$ = !0, $.finalized = !0, (xt = k.litElementHydrateSupport) == null || xt.call(k, { LitElement: $ });
549
+ const nt = k.litElementPolyfillSupport;
550
550
  nt == null || nt({ LitElement: $ });
551
- (B.litElementVersions ?? (B.litElementVersions = [])).push("4.2.0");
551
+ (k.litElementVersions ?? (k.litElementVersions = [])).push("4.2.0");
552
552
  /**
553
553
  * @license
554
554
  * Copyright 2017 Google LLC
@@ -564,7 +564,7 @@ const T = (o) => (t, e) => {
564
564
  * Copyright 2017 Google LLC
565
565
  * SPDX-License-Identifier: BSD-3-Clause
566
566
  */
567
- const Gt = { attribute: !0, type: String, converter: G, reflect: !1, hasChanged: ct }, Kt = (o = Gt, t, e) => {
567
+ const Kt = { attribute: !0, type: String, converter: K, reflect: !1, hasChanged: ct }, Gt = (o = Kt, t, e) => {
568
568
  const { kind: s, metadata: n } = e;
569
569
  let i = globalThis.litPropertyMetadata.get(n);
570
570
  if (i === void 0 && globalThis.litPropertyMetadata.set(n, i = /* @__PURE__ */ new Map()), s === "setter" && ((o = Object.create(o)).wrapped = !0), i.set(e.name, o), s === "accessor") {
@@ -586,7 +586,7 @@ const Gt = { attribute: !0, type: String, converter: G, reflect: !1, hasChanged:
586
586
  throw Error("Unsupported decorator location: " + s);
587
587
  };
588
588
  function l(o) {
589
- return (t, e) => typeof e == "object" ? Kt(o, t, e) : ((s, n, i) => {
589
+ return (t, e) => typeof e == "object" ? Gt(o, t, e) : ((s, n, i) => {
590
590
  const r = n.hasOwnProperty(i);
591
591
  return n.constructor.createProperty(i, s), r ? Object.getOwnPropertyDescriptor(n, i) : void 0;
592
592
  })(o, t, e);
@@ -606,11 +606,11 @@ E`
606
606
  * Copyright 2023 Google LLC
607
607
  * SPDX-License-Identifier: Apache-2.0
608
608
  */
609
- const pt = Symbol("internals"), ot = Symbol("privateInternals");
609
+ const dt = Symbol("internals"), ot = Symbol("privateInternals");
610
610
  function Jt(o) {
611
611
  var t;
612
612
  class e extends o {
613
- get [(t = pt, t)]() {
613
+ get [(t = dt, t)]() {
614
614
  return this[ot] || (this[ot] = this.attachInternals()), this[ot];
615
615
  }
616
616
  }
@@ -625,7 +625,7 @@ function Qt(o) {
625
625
  o.addInitializer((t) => {
626
626
  const e = t;
627
627
  e.addEventListener("click", async (s) => {
628
- const { type: n, [pt]: i } = e, { form: r } = i;
628
+ const { type: n, [dt]: i } = e, { form: r } = i;
629
629
  if (!(!r || n === "button") && (await new Promise((c) => {
630
630
  setTimeout(c);
631
631
  }), !s.defaultPrevented)) {
@@ -725,11 +725,11 @@ const X = te(it), se = `<svg width="16" height="16" viewBox="0 0 16 16" fill="no
725
725
  `, he = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
726
726
  <path d="M12.2834 14.4585L7.98873 11.3928L3.69404 14.4585L5.33977 9.4972L1 6.39639H6.36554L8 1.4585L9.63446 6.39639H15L10.6602 9.4972L12.306 14.4585H12.2834Z" fill="#3F2B2E"/>
727
727
  </svg>
728
- `, pe = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
728
+ `, de = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
729
729
  <path d="M2 2L14 14" stroke="#3F2B2E"/>
730
730
  <path d="M14 2L2 14" stroke="#3F2B2E"/>
731
731
  </svg>
732
- `, de = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
732
+ `, pe = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
733
733
  <path d="M7.12506 1C10.5018 1 13.2509 3.74834 13.251 7.125C13.2511 8.59738 12.7172 10.0206 11.7491 11.1299L14.8731 14.2539C15.0433 14.4253 15.0435 14.7018 14.8731 14.873C14.7913 14.9555 14.6797 15.002 14.5635 15.002C14.4475 15.0019 14.3357 14.9554 14.254 14.873L11.1309 11.749C10.0555 12.6818 8.6564 13.251 7.12506 13.251C3.7484 13.2508 1.00006 10.5017 1.00006 7.125C1.00025 3.74846 3.74852 1.00019 7.12506 1ZM7.12506 1.875C4.22971 1.87522 1.87506 4.23058 1.87506 7.12598C1.87532 10.0212 4.22987 12.3758 7.12506 12.376C10.0204 12.376 12.3758 10.0213 12.376 7.12598C12.376 4.23044 10.0206 1.875 7.12506 1.875Z" fill="#3F2B2E"/>
734
734
  </svg>
735
735
  `, ue = `<?xml version="1.0" encoding="utf-8"?>
@@ -751,7 +751,7 @@ const X = te(it), se = `<svg width="16" height="16" viewBox="0 0 16 16" fill="no
751
751
  </style>
752
752
  <path class="st0" d="M27.3,20.7H12.7c-0.4,0-0.7-0.3-0.7-0.7s0.3-0.7,0.7-0.7h14.7c0.4,0,0.7,0.3,0.7,0.7S27.7,20.7,27.3,20.7z"/>
753
753
  </svg>
754
- `, dt = {
754
+ `, pt = {
755
755
  wishlist: se,
756
756
  playerv: ne,
757
757
  chevronRight: oe,
@@ -763,8 +763,8 @@ const X = te(it), se = `<svg width="16" height="16" viewBox="0 0 16 16" fill="no
763
763
  "star-50": le,
764
764
  "star-75": ce,
765
765
  "star-100": he,
766
- cross: pe,
767
- search: de
766
+ cross: de,
767
+ search: pe
768
768
  };
769
769
  var ge = Object.defineProperty, ve = Object.getOwnPropertyDescriptor, C = (o, t, e, s) => {
770
770
  for (var n = s > 1 ? void 0 : s ? ve(t, e) : t, i = o.length - 1, r; i >= 0; i--)
@@ -779,16 +779,16 @@ let m = class extends $ {
779
779
  super.updated(o), this.style.setProperty("--icon-stroke-width", this.strokewidth);
780
780
  }
781
781
  render() {
782
- const o = dt[this.icon] ?? "", t = `icon-${this.icon}`, e = o.replace(
782
+ const o = pt[this.icon] ?? "", t = `icon-${this.icon}`, e = o.replace(
783
783
  "<svg",
784
784
  '<svg aria-hidden="true" focusable="false" part="svg"'
785
785
  );
786
- return p`
787
- ${this.type === "span" ? p`
786
+ return d`
787
+ ${this.type === "span" ? d`
788
788
  <span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}" ?disabled="${this.disabled}">
789
789
  ${X(e)}
790
790
  </span>
791
- ` : p`
791
+ ` : d`
792
792
  <button
793
793
  type="button"
794
794
  aria-label="icon"
@@ -1000,13 +1000,13 @@ let u = class extends $e {
1000
1000
  this.setAttribute("name", o);
1001
1001
  }
1002
1002
  get form() {
1003
- return this[pt].form;
1003
+ return this[dt].form;
1004
1004
  }
1005
1005
  render() {
1006
1006
  return this.href ? this.renderLink() : this.renderButton();
1007
1007
  }
1008
1008
  renderIcon(o) {
1009
- return this.icon ? p`<o-icon-button
1009
+ return this.icon ? d`<o-icon-button
1010
1010
  class=${o === "start" ? "icon-start" : "icon-end"}
1011
1011
  icon=${this.icon}
1012
1012
  bgstyle="${this.variant === "primary" ? "none-light" : "none-contrast"}"
@@ -1019,20 +1019,20 @@ let u = class extends $e {
1019
1019
  }
1020
1020
  renderButton() {
1021
1021
  const o = this.text || this.textsecond;
1022
- return p`
1022
+ return d`
1023
1023
  <button class="button" ?disabled=${this.disabled}>
1024
1024
  ${this.startIcon ? this.renderIcon("start") : h}
1025
- ${o ? p`
1026
- ${this.text ? p`<span>${this.text}</span>` : h}
1027
- ${this.textsecond ? p`<span>${this.textsecond}</span>` : h}
1028
- ` : p`<slot></slot>`}
1025
+ ${o ? d`
1026
+ ${this.text ? d`<span>${this.text}</span>` : h}
1027
+ ${this.textsecond ? d`<span>${this.textsecond}</span>` : h}
1028
+ ` : d`<slot></slot>`}
1029
1029
  ${this.endIcon ? this.renderIcon("end") : h}
1030
1030
  </button>
1031
1031
  `;
1032
1032
  }
1033
1033
  renderLink() {
1034
1034
  const o = this.text || this.textsecond;
1035
- return p`
1035
+ return d`
1036
1036
  <a
1037
1037
  href=${this.href}
1038
1038
  target=${this.target || h}
@@ -1040,10 +1040,10 @@ let u = class extends $e {
1040
1040
  ?disabled=${this.disabled}
1041
1041
  >
1042
1042
  ${this.startIcon ? this.renderIcon("start") : h}
1043
- ${o ? p`
1044
- ${this.text ? p`<span>${this.text}</span>` : h}
1045
- ${this.textsecond ? p`<span>${this.textsecond}</span>` : h}
1046
- ` : p`<slot></slot>`}
1043
+ ${o ? d`
1044
+ ${this.text ? d`<span>${this.text}</span>` : h}
1045
+ ${this.textsecond ? d`<span>${this.textsecond}</span>` : h}
1046
+ ` : d`<slot></slot>`}
1047
1047
  ${this.endIcon ? this.renderIcon("end") : h}
1048
1048
  </a>
1049
1049
  `;
@@ -1233,36 +1233,42 @@ var me = Object.defineProperty, we = Object.getOwnPropertyDescriptor, Q = (o, t,
1233
1233
  };
1234
1234
  let z = class extends $ {
1235
1235
  constructor() {
1236
- super(...arguments), this.status = "empty", this.ariaDescribedBy = "a-product-name", this.label = "Add to wishlist";
1236
+ super(...arguments), this.status = "empty", this.ariaDescribedBy = "a-product-name", this.label = "Add to wishlist", this.toggleStatus = () => {
1237
+ this.status = this.status === "empty" ? "filled" : "empty", this.setAttribute("aria-pressed", String(this.status === "filled")), this.dispatchEvent(new CustomEvent("wishlist-toggle", {
1238
+ detail: { status: this.status },
1239
+ bubbles: !0,
1240
+ composed: !0
1241
+ }));
1242
+ };
1243
+ }
1244
+ connectedCallback() {
1245
+ super.connectedCallback(), this.setAttribute("tabindex", "0"), this.setAttribute("role", "button"), this.setAttribute("aria-pressed", String(this.status === "filled"));
1246
+ }
1247
+ firstUpdated() {
1248
+ this.addEventListener("click", this.toggleStatus), this.addEventListener("keydown", this.handleKeydown);
1249
+ }
1250
+ handleKeydown(o) {
1251
+ (o.key === "Enter" || o.key === " ") && (o.preventDefault(), this.toggleStatus());
1237
1252
  }
1238
1253
  render() {
1239
- const o = dt.wishlist.replace(
1254
+ const o = pt.wishlist.replace(
1240
1255
  "<svg",
1241
1256
  '<svg aria-hidden="true" focusable="false" part="svg"'
1242
1257
  );
1243
- return p`
1244
- <button
1245
- type="button"
1246
- aria-describedby="${this.ariaDescribedBy}"
1247
- class="wishlist-button"
1248
- @click="${this.handleClick}"
1249
- >
1250
- <span class="sr-only">${this.label}</span>
1251
- ${X(o)}
1252
- </button>
1253
- `;
1254
- }
1255
- handleClick(o) {
1256
- this.toggleStatus(), this.dispatchEvent(new MouseEvent("click", {
1257
- bubbles: !0,
1258
- composed: !0
1259
- }));
1260
- }
1261
- toggleStatus() {
1262
- this.status = this.status == "empty" ? "filled" : "empty";
1258
+ return d`
1259
+ <button
1260
+ type="button"
1261
+ aria-describedby="${this.ariaDescribedBy}"
1262
+ class="wishlist-button"
1263
+ tabindex="-1"
1264
+ >
1265
+ <span class="sr-only">${this.label}</span>
1266
+ ${X(o)}
1267
+ </button>
1268
+ `;
1263
1269
  }
1264
1270
  setStatus(o) {
1265
- this.status = o, this.requestUpdate();
1271
+ this.status = o, this.setAttribute("aria-pressed", String(this.status === "filled")), this.requestUpdate();
1266
1272
  }
1267
1273
  setAriaDescribedBy(o) {
1268
1274
  this.ariaDescribedBy = o, this.requestUpdate();
@@ -1272,47 +1278,38 @@ let z = class extends $ {
1272
1278
  }
1273
1279
  };
1274
1280
  z.styles = E`
1275
- :host {
1281
+ :host {
1276
1282
  display: inline-flex;
1277
1283
  justify-content: center;
1278
1284
  align-items: center;
1279
- cursor: pointer;
1280
- }
1285
+ outline: none;
1286
+ }
1281
1287
 
1282
- .wishlist-button {
1283
- display: flex;
1284
- justify-content: center;
1285
- align-items: center;
1286
- width: 40px;
1287
- height: 40px;
1288
- border: transparent;
1289
- border-radius: var(--radius-full);
1290
- background-color: var(--color-alpha-light-strong);
1291
- position: relative;
1292
- cursor: pointer;
1293
- }
1288
+ :host(:focus-visible) {
1289
+ outline: 1px dashed var(--color-content-action-secondary);
1290
+ outline-offset: 1px;
1291
+ }
1294
1292
 
1295
- .sr-only {
1296
- border: 0 !important;
1297
- clip: rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;
1298
- -webkit-clip-path: inset(50%) !important;
1299
- clip-path: inset(50%) !important;
1300
- height: 0.1rem !important;
1301
- margin: -0.1rem !important;
1302
- overflow: hidden !important;
1303
- padding: 0 !important;
1304
- position: absolute !important;
1305
- width: 0.1rem !important;
1306
- white-space: nowrap !important;
1293
+ .wishlist-button {
1294
+ display: flex;
1295
+ justify-content: center;
1296
+ align-items: center;
1297
+ width: 40px;
1298
+ height: 40px;
1299
+ border: transparent;
1300
+ border-radius: var(--radius-full);
1301
+ background-color: var(--color-alpha-light-strong);
1302
+ position: relative;
1303
+ cursor: pointer;
1307
1304
  }
1308
1305
 
1309
- .wishlist-button:hover {
1310
- background-color: var(--color-alpha-light-stronger);
1311
- }
1306
+ .wishlist-button:hover {
1307
+ background-color: var(--color-alpha-light-stronger);
1308
+ }
1312
1309
 
1313
1310
  :host([status="filled"]) .wishlist-button {
1314
- background-color: var(--color-alpha-light-strongest);
1315
- }
1311
+ background-color: var(--color-alpha-light-strongest);
1312
+ }
1316
1313
 
1317
1314
  .wishlist-button:hover svg path {
1318
1315
  fill: var(--color-content-action-secondary);
@@ -1325,7 +1322,21 @@ z.styles = E`
1325
1322
  :host([status="filled"]) .wishlist-button:hover svg path {
1326
1323
  fill: var(--color-alpha-light-strong);
1327
1324
  }
1328
- `;
1325
+
1326
+ .sr-only {
1327
+ border: 0 !important;
1328
+ clip: rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;
1329
+ -webkit-clip-path: inset(50%) !important;
1330
+ clip-path: inset(50%) !important;
1331
+ height: 0.1rem !important;
1332
+ margin: -0.1rem !important;
1333
+ overflow: hidden !important;
1334
+ padding: 0 !important;
1335
+ position: absolute !important;
1336
+ width: 0.1rem !important;
1337
+ white-space: nowrap !important;
1338
+ }
1339
+ `;
1329
1340
  Q([
1330
1341
  l({ type: String, reflect: !0 })
1331
1342
  ], z.prototype, "status", 2);
@@ -1348,9 +1359,9 @@ let _ = class extends $ {
1348
1359
  super(...arguments), this.href = "", this.target = "", this.template = "standard", this.inverse = !1, this.endIcon = !1, this.reverseEndIcon = !1;
1349
1360
  }
1350
1361
  render() {
1351
- return p`
1362
+ return d`
1352
1363
  <a href="${this.href}" target="${this.target}">
1353
- ${this.endIcon && this.reverseEndIcon ? p`
1364
+ ${this.endIcon && this.reverseEndIcon ? d`
1354
1365
  <o-icon-button
1355
1366
  icon="chevronLeft"
1356
1367
  bgstyle="${this.inverse ? "none-light" : "none-contrast"}"
@@ -1360,7 +1371,7 @@ let _ = class extends $ {
1360
1371
  ></o-icon-button>
1361
1372
  ` : null}
1362
1373
  <span class="link-text"><slot></slot></span>
1363
- ${this.endIcon && !this.reverseEndIcon ? p`
1374
+ ${this.endIcon && !this.reverseEndIcon ? d`
1364
1375
  <o-icon-button
1365
1376
  icon="chevronRight"
1366
1377
  bgstyle="${this.inverse ? "none-light" : "none-contrast"}"
@@ -1502,14 +1513,14 @@ let U = class extends $ {
1502
1513
  }
1503
1514
  render() {
1504
1515
  const o = this.getStarKeys();
1505
- return p`
1516
+ return d`
1506
1517
  <div class="rating">
1507
1518
  <div class="stars">
1508
1519
  ${o.map(
1509
- (t) => p`<span class="star">${X(dt[t] ?? "")}</span>`
1520
+ (t) => d`<span class="star">${X(pt[t] ?? "")}</span>`
1510
1521
  )}
1511
1522
  </div>
1512
- ${this.reviewCount != null && this.href != null ? p`<o-link template="review" href="${this.href}">${this.reviewCount}</o-link>` : null}
1523
+ ${this.reviewCount != null && this.href != null ? d`<o-link template="review" href="${this.href}">${this.reviewCount}</o-link>` : null}
1513
1524
  </div>
1514
1525
  `;
1515
1526
  }
@@ -1567,7 +1578,7 @@ var Ee = Object.defineProperty, Ce = Object.getOwnPropertyDescriptor, y = (o, t,
1567
1578
  };
1568
1579
  let b = class extends $ {
1569
1580
  constructor() {
1570
- super(...arguments), this.open = !1, this.showHeader = !0, this.showFooter = !0, this.headerTitle = "", this.closeButtonLabel = "Close the modal", this.firstButtonLabel = "First Button", this.firstButtonVariant = "primary", this.secondaryButtonLabel = "Second Button", this.secondaryButtonVariant = "primary", this.previousFocusedElement = null, this.handleKeyDown = (o) => {
1581
+ super(...arguments), this.open = !1, this.showHeader = !0, this.showFooter = !1, this.headerTitle = "", this.closeButtonLabel = "Close the modal", this.firstButtonLabel = "First Button", this.firstButtonVariant = "primary", this.secondaryButtonLabel = "Second Button", this.secondaryButtonVariant = "primary", this.previousFocusedElement = null, this.handleKeyDown = (o) => {
1571
1582
  this.open && (o.key === "Escape" ? this.closePanel() : o.key === "Tab" && this.trapFocus(o));
1572
1583
  };
1573
1584
  }
@@ -1610,7 +1621,7 @@ let b = class extends $ {
1610
1621
  typeof this.onSecondaryButtonClick == "function" && this.onSecondaryButtonClick(), this.closePanel();
1611
1622
  }
1612
1623
  render() {
1613
- return p`
1624
+ return d`
1614
1625
  <div class="overlay" @click=${this.closePanel}></div>
1615
1626
  <div
1616
1627
  class="panel"
@@ -1620,7 +1631,7 @@ let b = class extends $ {
1620
1631
  >
1621
1632
  <o-icon-button icon="cross" size="medium" class="close-btn" @click=${this.closePanel} aria-label="${this.closeButtonLabel}"></o-icon-button>
1622
1633
 
1623
- ${this.showHeader ? p`
1634
+ ${this.showHeader ? d`
1624
1635
  <div class="header">
1625
1636
  <span id="panel-title" class="panel-title">${this.headerTitle}</span>
1626
1637
  </div>
@@ -1630,9 +1641,9 @@ let b = class extends $ {
1630
1641
  <slot></slot>
1631
1642
  </div>
1632
1643
 
1633
- ${this.showFooter && this.firstButtonVariant && this.firstButtonLabel || this.secondaryButtonVariant && this.secondaryButtonLabel ? p`
1644
+ ${this.showFooter && this.firstButtonVariant && this.firstButtonLabel || this.secondaryButtonVariant && this.secondaryButtonLabel ? d`
1634
1645
  <div class="footer">
1635
- ${this.firstButtonVariant && this.firstButtonLabel ? p`
1646
+ ${this.firstButtonVariant && this.firstButtonLabel ? d`
1636
1647
  <o-button
1637
1648
  customclass="full"
1638
1649
  variant="${this.firstButtonVariant}"
@@ -1642,7 +1653,7 @@ let b = class extends $ {
1642
1653
  </o-button>
1643
1654
  ` : null}
1644
1655
 
1645
- ${this.secondaryButtonVariant && this.secondaryButtonLabel ? p`
1656
+ ${this.secondaryButtonVariant && this.secondaryButtonLabel ? d`
1646
1657
  <o-button
1647
1658
  customclass="full"
1648
1659
  variant="${this.secondaryButtonVariant}"
@@ -1759,31 +1770,31 @@ y([
1759
1770
  l({ type: Boolean, reflect: !0 })
1760
1771
  ], b.prototype, "open", 2);
1761
1772
  y([
1762
- l({ type: Boolean })
1773
+ l({ type: Boolean, reflect: !0 })
1763
1774
  ], b.prototype, "showHeader", 2);
1764
1775
  y([
1765
- l({ type: Boolean })
1776
+ l({ type: Boolean, reflect: !0 })
1766
1777
  ], b.prototype, "showFooter", 2);
1767
1778
  y([
1768
- l({ type: String })
1779
+ l({ type: String, reflect: !0 })
1769
1780
  ], b.prototype, "headerTitle", 2);
1770
1781
  y([
1771
- l({ type: String })
1782
+ l({ type: String, reflect: !0 })
1772
1783
  ], b.prototype, "closeButtonLabel", 2);
1773
1784
  y([
1774
- l({ type: String })
1785
+ l({ type: String, reflect: !0 })
1775
1786
  ], b.prototype, "firstButtonLabel", 2);
1776
1787
  y([
1777
- l({ type: String })
1788
+ l({ type: String, reflect: !0 })
1778
1789
  ], b.prototype, "firstButtonVariant", 2);
1779
1790
  y([
1780
1791
  l({ type: Function })
1781
1792
  ], b.prototype, "onFirstButtonClick", 2);
1782
1793
  y([
1783
- l({ type: String })
1794
+ l({ type: String, reflect: !0 })
1784
1795
  ], b.prototype, "secondaryButtonLabel", 2);
1785
1796
  y([
1786
- l({ type: String })
1797
+ l({ type: String, reflect: !0 })
1787
1798
  ], b.prototype, "secondaryButtonVariant", 2);
1788
1799
  y([
1789
1800
  l({ type: Function })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@florid-kit/components",
3
- "version": "0.3.18",
3
+ "version": "0.3.20",
4
4
  "main": "index.js",
5
5
  "module": "index.mjs",
6
6
  "typings": "index.d.ts",