/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */
const t=globalThis,s=t.ShadowRoot&&(t.ShadyCSS===void 0||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),e=new WeakMap;let n=class t{constructor(t,s,e){if(this._$cssResult$=true,e!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=s}get styleSheet(){let t=this.o;const i=this.t;if(s&&t===void 0){const s=i!==void 0&&i.length===1;s&&(t=e.get(i)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&e.set(i,t))}return t}toString(){return this.cssText}};const r=t=>new n(typeof t=="string"?t:t+"",void 0,i),o=(t,...s)=>{const e=t.length===1?t[0]:s.reduce(((s,i,e)=>s+(t=>{if(t._$cssResult$===true)return t.cssText;if(typeof t=="number")return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[e+1]),t[0]);return new n(e,t,i)},h=(i,e)=>{if(s)i.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const s of e){const e=document.createElement("style"),n=t.litNonce;n!==void 0&&e.setAttribute("nonce",n),e.textContent=s.cssText,i.appendChild(e)}},l=s?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let s="";for(const i of t.cssRules)s+=i.cssText;return r(s)})(t):t
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */;const{is:u,defineProperty:a,getOwnPropertyDescriptor:c,getOwnPropertyNames:d,getOwnPropertySymbols:v,getPrototypeOf:f}=Object,p=globalThis,g=p.trustedTypes,b=g?g.emptyScript:"",y=p.reactiveElementPolyfillSupport,m=(t,s)=>t,S={toAttribute(t,s){switch(s){case Boolean:t=t?b:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=t!==null;break;case Number:i=t===null?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},w=(t,s)=>!u(t,s),$={attribute:true,type:String,converter:S,reflect:false,hasChanged:w};Symbol.metadata!=null||(Symbol.metadata=Symbol("metadata")),p.litPropertyMetadata!=null||(p.litPropertyMetadata=new WeakMap);class A extends HTMLElement{static addInitializer(t){var s;this._$Ei(),((s=this.l)!=null?s:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=$){if(s.state&&(s.attribute=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),e=this.getPropertyDescriptor(t,i,s);e!==void 0&&a(this.prototype,t,e)}}static getPropertyDescriptor(t,s,i){var e;const{get:n,set:r}=(e=c(this.prototype,t))!=null?e:{get(){return this[s]},set(t){this[s]=t}};return{get(){return n==null?void 0:n.call(this)},set(s){const e=n==null?void 0:n.call(this);r.call(this,s),this.requestUpdate(t,e,i)},configurable:true,enumerable:true}}static getPropertyOptions(t){var s;return(s=this.elementProperties.get(t))!=null?s:$}static _$Ei(){if(this.hasOwnProperty(m("elementProperties")))return;const t=f(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(m("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(m("properties"))){const t=this.properties,s=[...d(t),...v(t)];for(const i of s)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(t!==null){const s=litPropertyMetadata.get(t);if(s!==void 0)for(const[t,i]of s)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const s=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)s.unshift(l(t))}else t!==void 0&&s.push(l(t));return s}static _$Eu(t,s){const i=s.attribute;return i===false?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach((t=>t(this)))}addController(t){var s,i;((s=this._$EO)!=null?s:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)==null||i.call(t))}removeController(t){var s;(s=this._$EO)==null||s.delete(t)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var t;const s=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return h(s,this.constructor.elementStyles),s}connectedCallback(){var t;this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(true),(t=this._$EO)==null||t.forEach((t=>{var s;return(s=t.hostConnected)==null?void 0:s.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach((t=>{var s;return(s=t.hostDisconnected)==null?void 0:s.call(t)}))}attributeChangedCallback(t,s,i){this._$AK(t,i)}_$EC(t,s){var i;const e=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,e);if(n!==void 0&&e.reflect===true){const r=(((i=e.converter)==null?void 0:i.toAttribute)!==void 0?e.converter:S).toAttribute(s,e.type);this._$Em=t,r==null?this.removeAttribute(n):this.setAttribute(n,r),this._$Em=null}}_$AK(t,s){var i;const e=this.constructor,n=e._$Eh.get(t);if(n!==void 0&&this._$Em!==n){const t=e.getPropertyOptions(n),r=typeof t.converter=="function"?{fromAttribute:t.converter}:((i=t.converter)==null?void 0:i.fromAttribute)!==void 0?t.converter:S;this._$Em=n,this[n]=r.fromAttribute(s,t.type),this._$Em=null}}requestUpdate(t,s,i){var e;if(t!==void 0){if(i!=null||(i=this.constructor.getPropertyOptions(t)),!((e=i.hasChanged)!=null?e:w)(this[t],s))return;this.P(t,s,i)}this.isUpdatePending===false&&(this._$ES=this._$ET())}P(t,s,i){var e;this._$AL.has(t)||this._$AL.set(t,s),i.reflect===true&&this._$Em!==t&&((e=this._$Ej)!=null?e:this._$Ej=new Set).add(t)}async _$ET(){this.isUpdatePending=true;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t)i.wrapped!==true||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],i)}let s=false;const i=this._$AL;try{s=this.shouldUpdate(i),s?(this.willUpdate(i),(t=this._$EO)==null||t.forEach((t=>{var s;return(s=t.hostUpdate)==null?void 0:s.call(t)})),this.update(i)):this._$EU()}catch(t){throw s=false,this._$EU(),t}s&&this._$AE(i)}willUpdate(t){}_$AE(t){var s;(s=this._$EO)==null||s.forEach((t=>{var s;return(s=t.hostUpdated)==null?void 0:s.call(t)})),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=false}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach((t=>this._$EC(t,this[t])))),this._$EU()}updated(t){}firstUpdated(t){}}var _;A.elementStyles=[],A.shadowRootOptions={mode:"open"},A[m("elementProperties")]=new Map,A[m("finalized")]=new Map,y==null||y({ReactiveElement:A}),((_=p.reactiveElementVersions)!=null?_:p.reactiveElementVersions=[]).push("2.0.4");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const C=globalThis,E=C.trustedTypes,O=E?E.createPolicy("lit-html",{createHTML:t=>t}):void 0,T="$lit$",U=`lit$${Math.random().toFixed(9).slice(2)}$`,j="?"+U,M=`<${j}>`,k=document,x=()=>k.createComment(""),P=t=>t===null||typeof t!="object"&&typeof t!="function",N=Array.isArray,R=t=>N(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",z=`[ \t\n\f\r]`,I=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,L=/-->/g,D=/>/g,W=RegExp(`>|${z}(?:([^\\s"'>=/]+)(${z}*=${z}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),B=/'/g,H=/"/g,J=/^(?:script|style|textarea|title)$/i,Z=t=>(s,...i)=>({_$litType$:t,strings:s,values:i}),q=Z(1),K=Z(2),V=Symbol.for("lit-noChange"),F=Symbol.for("lit-nothing"),G=new WeakMap,Q=k.createTreeWalker(k,129);function X(t,s){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return O!==void 0?O.createHTML(s):s}const Y=(t,s)=>{const i=t.length-1,e=[];let n,r=s===2?"<svg>":"",o=I;for(let s=0;s<i;s++){const i=t[s];let h,l,u=-1,a=0;for(;a<i.length&&(o.lastIndex=a,l=o.exec(i),l!==null);)a=o.lastIndex,o===I?l[1]==="!--"?o=L:l[1]!==void 0?o=D:l[2]!==void 0?(J.test(l[2])&&(n=RegExp("</"+l[2],"g")),o=W):l[3]!==void 0&&(o=W):o===W?l[0]===">"?(o=n!=null?n:I,u=-1):l[1]===void 0?u=-2:(u=o.lastIndex-l[2].length,h=l[1],o=l[3]===void 0?W:l[3]==='"'?H:B):o===H||o===B?o=W:o===L||o===D?o=I:(o=W,n=void 0);const c=o===W&&t[s+1].startsWith("/>")?" ":"";r+=o===I?i+M:u>=0?(e.push(h),i.slice(0,u)+T+i.slice(u)+U+c):i+U+(u===-2?s:c)}return[X(t,r+(t[i]||"<?>")+(s===2?"</svg>":"")),e]};class tt{constructor({strings:t,_$litType$:s},i){let e;this.parts=[];let n=0,r=0;const o=t.length-1,h=this.parts,[l,u]=Y(t,s);if(this.el=tt.createElement(l,i),Q.currentNode=this.el.content,s===2){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;(e=Q.nextNode())!==null&&h.length<o;){if(e.nodeType===1){if(e.hasAttributes())for(const t of e.getAttributeNames())if(t.endsWith(T)){const s=u[r++],i=e.getAttribute(t).split(U),o=/([.?@])?(.*)/.exec(s);h.push({type:1,index:n,name:o[2],strings:i,ctor:o[1]==="."?rt:o[1]==="?"?ot:o[1]==="@"?ht:nt}),e.removeAttribute(t)}else t.startsWith(U)&&(h.push({type:6,index:n}),e.removeAttribute(t));if(J.test(e.tagName)){const t=e.textContent.split(U),s=t.length-1;if(s>0){e.textContent=E?E.emptyScript:"";for(let i=0;i<s;i++)e.append(t[i],x()),Q.nextNode(),h.push({type:2,index:++n});e.append(t[s],x())}}}else if(e.nodeType===8)if(e.data===j)h.push({type:2,index:n});else{let t=-1;for(;(t=e.data.indexOf(U,t+1))!==-1;)h.push({type:7,index:n}),t+=U.length-1}n++}}static createElement(t,s){const i=k.createElement("template");return i.innerHTML=t,i}}function st(t,s,i=t,e){var n,r,o;if(s===V)return s;let h=e!==void 0?(n=i._$Co)==null?void 0:n[e]:i._$Cl;const l=P(s)?void 0:s._$litDirective$;return(h==null?void 0:h.constructor)!==l&&((r=h==null?void 0:h._$AO)==null||r.call(h,false),l===void 0?h=void 0:(h=new l(t),h._$AT(t,i,e)),e!==void 0?((o=i._$Co)!=null?o:i._$Co=[])[e]=h:i._$Cl=h),h!==void 0&&(s=st(t,h._$AS(t,s.values),h,e)),s}class it{constructor(t,s){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=s}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var s;const{el:{content:i},parts:e}=this._$AD,n=((s=t==null?void 0:t.creationScope)!=null?s:k).importNode(i,true);Q.currentNode=n;let r=Q.nextNode(),o=0,h=0,l=e[0];for(;l!==void 0;){if(o===l.index){let s;l.type===2?s=new et(r,r.nextSibling,this,t):l.type===1?s=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(s=new lt(r,this,t)),this._$AV.push(s),l=e[++h]}o!==(l==null?void 0:l.index)&&(r=Q.nextNode(),o++)}return Q.currentNode=k,n}p(t){let s=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,s),s+=i.strings.length-2):i._$AI(t[s])),s++}}let et=class t{get _$AU(){var t,s;return(s=(t=this._$AM)==null?void 0:t._$AU)!=null?s:this._$Cv}constructor(t,s,i,e){var n;this.type=2,this._$AH=F,this._$AN=void 0,this._$AA=t,this._$AB=s,this._$AM=i,this.options=e,this._$Cv=(n=e==null?void 0:e.isConnected)!=null?n:true}get parentNode(){let t=this._$AA.parentNode;const s=this._$AM;return s!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=s.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,s=this){t=st(this,t,s),P(t)?t===F||t==null||t===""?(this._$AH!==F&&this._$AR(),this._$AH=F):t!==this._$AH&&t!==V&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):R(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==F&&P(this._$AH)?this._$AA.nextSibling.data=t:this.T(k.createTextNode(t)),this._$AH=t}$(t){var s;const{values:i,_$litType$:e}=t,n=typeof e=="number"?this._$AC(t):(e.el===void 0&&(e.el=tt.createElement(X(e.h,e.h[0]),this.options)),e);if(((s=this._$AH)==null?void 0:s._$AD)===n)this._$AH.p(i);else{const t=new it(n,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t}}_$AC(t){let s=G.get(t.strings);return s===void 0&&G.set(t.strings,s=new tt(t)),s}k(s){N(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,n=0;for(const r of s)n===i.length?i.push(e=new t(this.S(x()),this.S(x()),this,this.options)):e=i[n],e._$AI(r),n++;n<i.length&&(this._$AR(e&&e._$AB.nextSibling,n),i.length=n)}_$AR(t=this._$AA.nextSibling,s){var i;for((i=this._$AP)==null?void 0:i.call(this,false,true,s);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var s;this._$AM===void 0&&(this._$Cv=t,(s=this._$AP)==null||s.call(this,t))}};class nt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,s,i,e,n){this.type=1,this._$AH=F,this._$AN=void 0,this.element=t,this.name=s,this._$AM=e,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=F}_$AI(t,s=this,i,e){const n=this.strings;let r=false;if(n===void 0)t=st(this,t,s,0),r=!P(t)||t!==this._$AH&&t!==V,r&&(this._$AH=t);else{const e=t;let o,h;for(t=n[0],o=0;o<n.length-1;o++)h=st(this,e[i+o],s,o),h===V&&(h=this._$AH[o]),r||(r=!P(h)||h!==this._$AH[o]),h===F?t=F:t!==F&&(t+=(h!=null?h:"")+n[o+1]),this._$AH[o]=h}r&&!e&&this.j(t)}j(t){t===F?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class rt extends nt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===F?void 0:t}}class ot extends nt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==F)}}class ht extends nt{constructor(t,s,i,e,n){super(t,s,i,e,n),this.type=5}_$AI(t,s=this){var i;if((t=(i=st(this,t,s,0))!=null?i:F)===V)return;const e=this._$AH,n=t===F&&e!==F||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,r=t!==F&&(e===F||n);n&&this.element.removeEventListener(this.name,this,e),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var s,i;typeof this._$AH=="function"?this._$AH.call((i=(s=this.options)==null?void 0:s.host)!=null?i:this.element,t):this._$AH.handleEvent(t)}}class lt{constructor(t,s,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=s,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){st(this,t)}}const ut=C.litHtmlPolyfillSupport;var at;ut==null||ut(tt,et),((at=C.litHtmlVersions)!=null?at:C.litHtmlVersions=[]).push("3.1.4");const ct=(t,s,i)=>{var e,n;const r=(e=i==null?void 0:i.renderBefore)!=null?e:s;let o=r._$litPart$;if(o===void 0){const t=(n=i==null?void 0:i.renderBefore)!=null?n:null;r._$litPart$=o=new et(s.insertBefore(x(),t),t,void 0,i!=null?i:{})}return o._$AI(t),o};
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */class dt extends A{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const s=super.createRenderRoot();return(t=this.renderOptions).renderBefore!=null||(t.renderBefore=s.firstChild),s}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ct(s,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(true)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(false)}render(){return V}}var vt;dt._$litElement$=true,dt.finalized=true,(vt=globalThis.litElementHydrateSupport)==null||vt.call(globalThis,{LitElement:dt});const ft=globalThis.litElementPolyfillSupport;ft==null||ft({LitElement:dt});var pt;((pt=globalThis.litElementVersions)!=null?pt:globalThis.litElementVersions=[]).push("4.0.6");
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const gt=t=>(s,i)=>{i!==void 0?i.addInitializer((()=>{customElements.define(t,s)})):customElements.define(t,s)};var bt=Object.defineProperty,yt=Object.defineProperties;var mt=Object.getOwnPropertyDescriptors;var St=Object.getOwnPropertySymbols;var wt=Object.prototype.hasOwnProperty,$t=Object.prototype.propertyIsEnumerable;var At=(t,s,i)=>s in t?bt(t,s,{enumerable:true,configurable:true,writable:true,value:i}):t[s]=i,_t=(t,s)=>{for(var i in s||(s={}))wt.call(s,i)&&At(t,i,s[i]);if(St)for(var i of St(s))$t.call(s,i)&&At(t,i,s[i]);return t},Ct=(t,s)=>yt(t,mt(s))
/**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */;const Et={attribute:true,type:String,converter:S,reflect:false,hasChanged:w},Ot=(t=Et,s,i)=>{const{kind:e,metadata:n}=i;let r=globalThis.litPropertyMetadata.get(n);if(r===void 0&&globalThis.litPropertyMetadata.set(n,r=new Map),r.set(i.name,t),e==="accessor"){const{name:e}=i;return{set(i){const n=s.get.call(this);s.set.call(this,i),this.requestUpdate(e,n,t)},init(s){return s!==void 0&&this.P(e,void 0,t),s}}}if(e==="setter"){const{name:e}=i;return function(i){const n=this[e];s.call(this,i),this.requestUpdate(e,n,t)}}throw Error("Unsupported decorator location: "+e)};function Tt(t){return(s,i)=>typeof i=="object"?Ot(t,s,i):((t,s,i)=>{const e=s.hasOwnProperty(i);return s.constructor.createProperty(i,e?Ct(_t({},t),{wrapped:true}):t),e?Object.getOwnPropertyDescriptor(s,i):void 0})(t,s,i)}export{Tt as O,q as Y,dt as n,o as p,gt as s,K as t};
//# sourceMappingURL=p-BaxMpaXp.js.map