diff --git a/integration/__fixtures__/server-express/dist_expected/client/about/index.html b/integration/__fixtures__/server-express/dist_expected/client/about/index.html index e23a443..38ed924 100644 --- a/integration/__fixtures__/server-express/dist_expected/client/about/index.html +++ b/integration/__fixtures__/server-express/dist_expected/client/about/index.html @@ -15,8 +15,8 @@ Gracile About - - + + @@ -25,5 +25,6 @@

the About Page

- + + diff --git a/integration/__fixtures__/server-express/dist_expected/client/assets/_assets-methods-my-el-2-_K7WEQ-5.css b/integration/__fixtures__/server-express/dist_expected/client/assets/_assets-methods-my-el-2-B-0f4ddQ.css similarity index 100% rename from integration/__fixtures__/server-express/dist_expected/client/assets/_assets-methods-my-el-2-_K7WEQ-5.css rename to integration/__fixtures__/server-express/dist_expected/client/assets/_assets-methods-my-el-2-B-0f4ddQ.css diff --git a/integration/__fixtures__/server-express/dist_expected/client/assets/_assets-methods-my-el-BZ8-Dbhw.css b/integration/__fixtures__/server-express/dist_expected/client/assets/_assets-methods-my-el-Bq1tmW6L.css similarity index 100% rename from integration/__fixtures__/server-express/dist_expected/client/assets/_assets-methods-my-el-BZ8-Dbhw.css rename to integration/__fixtures__/server-express/dist_expected/client/assets/_assets-methods-my-el-Bq1tmW6L.css diff --git a/integration/__fixtures__/server-express/dist_expected/client/assets/document-aADsc6DG.css b/integration/__fixtures__/server-express/dist_expected/client/assets/document-17MCeMxd.css similarity index 100% rename from integration/__fixtures__/server-express/dist_expected/client/assets/document-aADsc6DG.css rename to integration/__fixtures__/server-express/dist_expected/client/assets/document-17MCeMxd.css diff --git a/integration/__fixtures__/server-express/dist_expected/client/assets/document.client-CMOVr55R.js b/integration/__fixtures__/server-express/dist_expected/client/assets/document.client-CMOVr55R.js deleted file mode 100644 index 7cb2cb7..0000000 --- a/integration/__fixtures__/server-express/dist_expected/client/assets/document.client-CMOVr55R.js +++ /dev/null @@ -1,23 +0,0 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const n of e)if(n.type==="childList")for(const o of n.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function i(e){const n={};return e.integrity&&(n.integrity=e.integrity),e.referrerPolicy&&(n.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?n.credentials="include":e.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function r(e){if(e.ep)return;e.ep=!0;const n=i(e);fetch(e.href,n)}})();/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const O=globalThis,C=O.trustedTypes,U=C?C.createPolicy("lit-html",{createHTML:s=>s}):void 0,M="$lit$",A=`lit$${Math.random().toFixed(9).slice(2)}$`,L="?"+A,tt=`<${L}>`,g=document,w=()=>g.createComment(""),H=s=>s===null||typeof s!="object"&&typeof s!="function",k=Array.isArray,F=s=>k(s)||typeof s?.[Symbol.iterator]=="function",R=`[ -\f\r]`,x=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,B=/-->/g,D=/>/g,_=RegExp(`>|${R}(?:([^\\s"'>=/]+)(${R}*=${R}*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`,"g"),j=/'/g,V=/"/g,G=/^(?:script|style|textarea|title)$/i,y=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),W=new WeakMap,m=g.createTreeWalker(g,129);function z(s,t){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return U!==void 0?U.createHTML(t):t}const Z=(s,t)=>{const i=s.length-1,r=[];let e,n=t===2?"":"",o=x;for(let h=0;h"?(o=e??x,c=-1):d[1]===void 0?c=-2:(c=o.lastIndex-d[2].length,a=d[1],o=d[3]===void 0?_:d[3]==='"'?V:j):o===V||o===j?o=_:o===B||o===D?o=x:(o=_,e=void 0);const f=o===_&&s[h+1].startsWith("/>")?" ":"";n+=o===x?l+tt:c>=0?(r.push(a),l.slice(0,c)+M+l.slice(c)+A+f):l+A+(c===-2?h:f)}return[z(s,n+(s[i]||"")+(t===2?"":"")),r]};class P{constructor({strings:t,_$litType$:i},r){let e;this.parts=[];let n=0,o=0;const h=t.length-1,l=this.parts,[a,d]=Z(t,i);if(this.el=P.createElement(a,r),m.currentNode=this.el.content,i===2){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(e=m.nextNode())!==null&&l.length0){e.textContent=C?C.emptyScript:"";for(let f=0;f<$;f++)e.append(c[f],w()),m.nextNode(),l.push({type:2,index:++n});e.append(c[$],w())}}}else if(e.nodeType===8)if(e.data===L)l.push({type:2,index:n});else{let c=-1;for(;(c=e.data.indexOf(A,c+1))!==-1;)l.push({type:7,index:n}),c+=A.length-1}n++}}static createElement(t,i){const r=g.createElement("template");return r.innerHTML=t,r}}function v(s,t,i=s,r){if(t===y)return t;let e=r!==void 0?i._$Co?.[r]:i._$Cl;const n=H(t)?void 0:t._$litDirective$;return e?.constructor!==n&&(e?._$AO?.(!1),n===void 0?e=void 0:(e=new n(s),e._$AT(s,i,r)),r!==void 0?(i._$Co??=[])[r]=e:i._$Cl=e),e!==void 0&&(t=v(s,e._$AS(s,t.values),e,r)),t}class Y{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:r}=this._$AD,e=(t?.creationScope??g).importNode(i,!0);m.currentNode=e;let n=m.nextNode(),o=0,h=0,l=r[0];for(;l!==void 0;){if(o===l.index){let a;l.type===2?a=new b(n,n.nextSibling,this,t):l.type===1?a=new l.ctor(n,l.name,l.strings,this,t):l.type===6&&(a=new Q(n,this,t)),this._$AV.push(a),l=r[++h]}o!==l?.index&&(n=m.nextNode(),o++)}return m.currentNode=g,e}p(t){let i=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,i),i+=r.strings.length-2):r._$AI(t[i])),i++}}class b{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,r,e){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=r,this.options=e,this._$Cv=e?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return i!==void 0&&t?.nodeType===11&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=v(this,t,i),H(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==y&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):F(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!==p&&H(this._$AH)?this._$AA.nextSibling.data=t:this.T(g.createTextNode(t)),this._$AH=t}$(t){const{values:i,_$litType$:r}=t,e=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=P.createElement(z(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===e)this._$AH.p(i);else{const n=new Y(e,this),o=n.u(this.options);n.p(i),this.T(o),this._$AH=n}}_$AC(t){let i=W.get(t.strings);return i===void 0&&W.set(t.strings,i=new P(t)),i}k(t){k(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let r,e=0;for(const n of t)e===i.length?i.push(r=new b(this.S(w()),this.S(w()),this,this.options)):r=i[e],r._$AI(n),e++;e2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=p}_$AI(t,i=this,r,e){const n=this.strings;let o=!1;if(n===void 0)t=v(this,t,i,0),o=!H(t)||t!==this._$AH&&t!==y,o&&(this._$AH=t);else{const h=t;let l,a;for(t=n[0],l=0;l{const r=i?.renderBefore??t;let e=r._$litPart$;if(e===void 0){const n=i?.renderBefore??null;r._$litPart$=e=new b(t.insertBefore(w(),n),n,void 0,i??{})}return e._$AI(s),e};/** - * @license - * Copyright 2019 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */let S=null;const it={boundAttributeSuffix:u.P,marker:u.A,markerMatch:u.C,HTML_RESULT:u.M,getTemplateHtml:u.L,overrideDirectiveResolve:(s,t)=>class extends s{_$AS(i,r){return t(this,r)}},patchDirectiveResolve:(s,t)=>{if(s.prototype._$AS!==t){S??=s.prototype._$AS.name;for(let i=s.prototype;i!==Object.prototype;i=Object.getPrototypeOf(i))if(i.hasOwnProperty(S))return void(i[S]=t);throw Error("Internal error: It is possible that both dev mode and production mode Lit was mixed together during SSR. Please comment on the issue: https://github.com/lit/lit/issues/4527")}},setDirectiveClass(s,t){s._$litDirective$=t},getAttributePartCommittedValue:(s,t,i)=>{let r=y;return s.j=e=>r=e,s._$AI(t,s,i),r},connectedDisconnectable:s=>({...s,_$AU:!0}),resolveDirective:u.V,AttributePart:u.H,PropertyPart:u.B,BooleanAttributePart:u.N,EventPart:u.U,ElementPart:u.F,TemplateInstance:u.R,isIterable:u.D,ChildPart:u.I};/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const T={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6};/** - * @license - * Copyright 2020 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const nt=s=>s===null||typeof s!="object"&&typeof s!="function",st=(s,t)=>s?._$litType$!==void 0,ot=s=>s?._$litType$?.h!=null,lt=s=>s.strings===void 0;/** - * @license - * Copyright 2019 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const{TemplateInstance:at,isIterable:ht,resolveDirective:X,ChildPart:E,ElementPart:ct}=it,dt=(s,t,i={})=>{if(t._$litPart$!==void 0)throw Error("container already contains a live render");let r,e,n;const o=[],h=document.createTreeWalker(t,NodeFilter.SHOW_COMMENT);let l;for(;(l=h.nextNode())!==null;){const a=l.data;if(a.startsWith("lit-part")){if(o.length===0&&r!==void 0)throw Error(`There must be only one root part per container. Found a part marker (${l}) when we already have a root part marker (${e})`);n=pt(s,l,o,i),r===void 0&&(r=n),e??=l}else if(a.startsWith("lit-node"))$t(l,o,i);else if(a.startsWith("/lit-part")){if(o.length===1&&n!==r)throw Error("internal error");n=ut(l,n,o)}}if(r===void 0){const a=t instanceof ShadowRoot?"{container.host.localName}'s shadow root":t instanceof DocumentFragment?"DocumentFragment":t.localName;console.error(`There should be exactly one root part in a render container, but we didn't find any in ${a}.`)}t._$litPart$=r},pt=(s,t,i,r)=>{let e,n;if(i.length===0)n=new E(t,null,void 0,r),e=s;else{const o=i[i.length-1];if(o.type==="template-instance")n=new E(t,null,o.instance,r),o.instance._$AV.push(n),e=o.result.values[o.instancePartIndex++],o.templatePartIndex++;else if(o.type==="iterable"){n=new E(t,null,o.part,r);const h=o.iterator.next();if(h.done)throw e=void 0,o.done=!0,Error("Unhandled shorter than expected iterable");e=h.value,o.part._$AH.push(n)}else n=new E(t,null,o.part,r)}if(e=X(n,e),e===y)i.push({part:n,type:"leaf"});else if(nt(e))i.push({part:n,type:"leaf"}),n._$AH=e;else if(st(e)){if(ot(e))throw Error("compiled templates are not supported");const o="lit-part "+At(e);if(t.data!==o)throw Error("Hydration value mismatch: Unexpected TemplateResult rendered to part");{const h=E.prototype._$AC(e),l=new at(h,n);i.push({type:"template-instance",instance:l,part:n,templatePartIndex:0,instancePartIndex:0,result:e}),n._$AH=l}}else ht(e)?(i.push({part:n,type:"iterable",value:e,iterator:e[Symbol.iterator](),done:!1}),n._$AH=[]):(i.push({part:n,type:"leaf"}),n._$AH=e??"");return n},ut=(s,t,i)=>{if(t===void 0)throw Error("unbalanced part marker");t._$AB=s;const r=i.pop();if(r.type==="iterable"&&!r.iterator.next().done)throw Error("unexpected longer than expected iterable");if(i.length>0)return i[i.length-1].part},$t=(s,t,i)=>{const r=/lit-node (\d+)/.exec(s.data),e=parseInt(r[1]),n=s.nextElementSibling;if(n===null)throw Error("could not find node for attribute parts");n.removeAttribute("defer-hydration");const o=t[t.length-1];if(o.type!=="template-instance")throw Error("Hydration value mismatch: Primitive found where TemplateResult expected. This usually occurs due to conditional rendering that resulted in a different value or template being rendered between the server and client.");{const h=o.instance;for(;;){const l=h._$AD.parts[o.templatePartIndex];if(l===void 0||l.type!==T.ATTRIBUTE&&l.type!==T.ELEMENT||l.index!==e)break;if(l.type===T.ATTRIBUTE){const a=new l.ctor(n,l.name,l.strings,o.instance,i),d=lt(a)?o.result.values[o.instancePartIndex]:o.result.values,c=!(a.type===T.EVENT||a.type===T.PROPERTY);a._$AI(d,a,o.instancePartIndex,c),o.instancePartIndex+=l.strings.length-1,h._$AV.push(a)}else{const a=new ct(n,o.instance,i);X(a,o.result.values[o.instancePartIndex++]),h._$AV.push(a)}o.templatePartIndex++}}},At=s=>{const t=new Uint32Array(2).fill(5381);for(const r of s.strings)for(let e=0;e{const t=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(s),"observedAttributes").get;Object.defineProperty(s,"observedAttributes",{get(){return[...t.call(this),"defer-hydration"]}});const i=s.prototype.attributeChangedCallback;s.prototype.attributeChangedCallback=function(o,h,l){o==="defer-hydration"&&l===null&&r.call(this),i.call(this,o,h,l)};const r=s.prototype.connectedCallback;s.prototype.connectedCallback=function(){this.hasAttribute("defer-hydration")||r.call(this)};const e=s.prototype.createRenderRoot;s.prototype.createRenderRoot=function(){return this.shadowRoot?(this._$AG=!0,this.shadowRoot):e.call(this)};const n=Object.getPrototypeOf(s.prototype).update;s.prototype.update=function(o){const h=this.render();if(n.call(this,o),this._$AG){this._$AG=!1;for(let l=0;l{for(const n of e)if(n.type==="childList")for(const o of n.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function r(e){const n={};return e.integrity&&(n.integrity=e.integrity),e.referrerPolicy&&(n.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?n.credentials="include":e.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function i(e){if(e.ep)return;e.ep=!0;const n=r(e);fetch(e.href,n)}})();/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const S=globalThis,C=S.trustedTypes,B=C?C.createPolicy("lit-html",{createHTML:s=>s}):void 0,M="$lit$",A=`lit$${Math.random().toFixed(9).slice(2)}$`,L="?"+A,tt=`<${L}>`,g=document,H=()=>g.createComment(""),P=s=>s===null||typeof s!="object"&&typeof s!="function",U=Array.isArray,F=s=>U(s)||typeof s?.[Symbol.iterator]=="function",O=`[ +\f\r]`,x=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D=/-->/g,j=/>/g,_=RegExp(`>|${O}(?:([^\\s"'>=/]+)(${O}*=${O}*(?:[^ +\f\r"'\`<>=]|("|')|))|$)`,"g"),V=/'/g,W=/"/g,G=/^(?:script|style|textarea|title)$/i,y=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),k=new WeakMap,m=g.createTreeWalker(g,129);function z(s,t){if(!U(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return B!==void 0?B.createHTML(t):t}const Z=(s,t)=>{const r=s.length-1,i=[];let e,n=t===2?"":t===3?"":"",o=x;for(let h=0;h"?(o=e??x,c=-1):d[1]===void 0?c=-2:(c=o.lastIndex-d[2].length,a=d[1],o=d[3]===void 0?_:d[3]==='"'?W:V):o===W||o===V?o=_:o===D||o===j?o=x:(o=_,e=void 0);const f=o===_&&s[h+1].startsWith("/>")?" ":"";n+=o===x?l+tt:c>=0?(i.push(a),l.slice(0,c)+M+l.slice(c)+A+f):l+A+(c===-2?h:f)}return[z(s,n+(s[r]||"")+(t===2?"":t===3?"":"")),i]};class w{constructor({strings:t,_$litType$:r},i){let e;this.parts=[];let n=0,o=0;const h=t.length-1,l=this.parts,[a,d]=Z(t,r);if(this.el=w.createElement(a,i),m.currentNode=this.el.content,r===2||r===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(e=m.nextNode())!==null&&l.length0){e.textContent=C?C.emptyScript:"";for(let f=0;f<$;f++)e.append(c[f],H()),m.nextNode(),l.push({type:2,index:++n});e.append(c[$],H())}}}else if(e.nodeType===8)if(e.data===L)l.push({type:2,index:n});else{let c=-1;for(;(c=e.data.indexOf(A,c+1))!==-1;)l.push({type:7,index:n}),c+=A.length-1}n++}}static createElement(t,r){const i=g.createElement("template");return i.innerHTML=t,i}}function v(s,t,r=s,i){if(t===y)return t;let e=i!==void 0?r._$Co?.[i]:r._$Cl;const n=P(t)?void 0:t._$litDirective$;return e?.constructor!==n&&(e?._$AO?.(!1),n===void 0?e=void 0:(e=new n(s),e._$AT(s,r,i)),i!==void 0?(r._$Co??=[])[i]=e:r._$Cl=e),e!==void 0&&(t=v(s,e._$AS(s,t.values),e,i)),t}class Y{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:r},parts:i}=this._$AD,e=(t?.creationScope??g).importNode(r,!0);m.currentNode=e;let n=m.nextNode(),o=0,h=0,l=i[0];for(;l!==void 0;){if(o===l.index){let a;l.type===2?a=new b(n,n.nextSibling,this,t):l.type===1?a=new l.ctor(n,l.name,l.strings,this,t):l.type===6&&(a=new Q(n,this,t)),this._$AV.push(a),l=i[++h]}o!==l?.index&&(n=m.nextNode(),o++)}return m.currentNode=g,e}p(t){let r=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,r),r+=i.strings.length-2):i._$AI(t[r])),r++}}class b{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,i,e){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=i,this.options=e,this._$Cv=e?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=v(this,t,r),P(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==y&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):F(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!==p&&P(this._$AH)?this._$AA.nextSibling.data=t:this.T(g.createTextNode(t)),this._$AH=t}$(t){const{values:r,_$litType$:i}=t,e=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=w.createElement(z(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===e)this._$AH.p(r);else{const n=new Y(e,this),o=n.u(this.options);n.p(r),this.T(o),this._$AH=n}}_$AC(t){let r=k.get(t.strings);return r===void 0&&k.set(t.strings,r=new w(t)),r}k(t){U(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let i,e=0;for(const n of t)e===r.length?r.push(i=new b(this.O(H()),this.O(H()),this,this.options)):i=r[e],i._$AI(n),e++;e2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=p}_$AI(t,r=this,i,e){const n=this.strings;let o=!1;if(n===void 0)t=v(this,t,r,0),o=!P(t)||t!==this._$AH&&t!==y,o&&(this._$AH=t);else{const h=t;let l,a;for(t=n[0],l=0;l{const i=r?.renderBefore??t;let e=i._$litPart$;if(e===void 0){const n=r?.renderBefore??null;i._$litPart$=e=new b(t.insertBefore(H(),n),n,void 0,r??{})}return e._$AI(s),e};/** + * @license + * Copyright 2019 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */let R=null;const it={boundAttributeSuffix:u.M,marker:u.P,markerMatch:u.A,HTML_RESULT:u.C,getTemplateHtml:u.L,overrideDirectiveResolve:(s,t)=>class extends s{_$AS(r,i){return t(this,i)}},patchDirectiveResolve:(s,t)=>{if(s.prototype._$AS!==t){R??=s.prototype._$AS.name;for(let r=s.prototype;r!==Object.prototype;r=Object.getPrototypeOf(r))if(r.hasOwnProperty(R))return void(r[R]=t);throw Error("Internal error: It is possible that both dev mode and production mode Lit was mixed together during SSR. Please comment on the issue: https://github.com/lit/lit/issues/4527")}},setDirectiveClass(s,t){s._$litDirective$=t},getAttributePartCommittedValue:(s,t,r)=>{let i=y;return s.j=e=>i=e,s._$AI(t,s,r),i},connectedDisconnectable:s=>({...s,_$AU:!0}),resolveDirective:u.V,AttributePart:u.H,PropertyPart:u.B,BooleanAttributePart:u.N,EventPart:u.U,ElementPart:u.F,TemplateInstance:u.R,isIterable:u.D,ChildPart:u.I};/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const T={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6};/** + * @license + * Copyright 2020 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const nt=s=>s===null||typeof s!="object"&&typeof s!="function",st=(s,t)=>s?._$litType$!==void 0,ot=s=>s?._$litType$?.h!=null,lt=s=>s.strings===void 0;/** + * @license + * Copyright 2019 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const{TemplateInstance:at,isIterable:ht,resolveDirective:X,ChildPart:E,ElementPart:ct}=it,dt=(s,t,r={})=>{if(t._$litPart$!==void 0)throw Error("container already contains a live render");let i,e,n;const o=[],h=document.createTreeWalker(t,NodeFilter.SHOW_COMMENT);let l;for(;(l=h.nextNode())!==null;){const a=l.data;if(a.startsWith("lit-part")){if(o.length===0&&i!==void 0)throw Error(`There must be only one root part per container. Found a part marker (${l}) when we already have a root part marker (${e})`);n=pt(s,l,o,r),i===void 0&&(i=n),e??=l}else if(a.startsWith("lit-node"))$t(l,o,r);else if(a.startsWith("/lit-part")){if(o.length===1&&n!==i)throw Error("internal error");n=ut(l,n,o)}}if(i===void 0){const a=t instanceof ShadowRoot?"{container.host.localName}'s shadow root":t instanceof DocumentFragment?"DocumentFragment":t.localName;console.error(`There should be exactly one root part in a render container, but we didn't find any in ${a}.`)}t._$litPart$=i},pt=(s,t,r,i)=>{let e,n;if(r.length===0)n=new E(t,null,void 0,i),e=s;else{const o=r[r.length-1];if(o.type==="template-instance")n=new E(t,null,o.instance,i),o.instance._$AV.push(n),e=o.result.values[o.instancePartIndex++],o.templatePartIndex++;else if(o.type==="iterable"){n=new E(t,null,o.part,i);const h=o.iterator.next();if(h.done)throw e=void 0,o.done=!0,Error("Unhandled shorter than expected iterable");e=h.value,o.part._$AH.push(n)}else n=new E(t,null,o.part,i)}if(e=X(n,e),e===y)r.push({part:n,type:"leaf"});else if(nt(e))r.push({part:n,type:"leaf"}),n._$AH=e;else if(st(e)){if(ot(e))throw Error("compiled templates are not supported");const o="lit-part "+At(e);if(t.data!==o)throw Error("Hydration value mismatch: Unexpected TemplateResult rendered to part");{const h=E.prototype._$AC(e),l=new at(h,n);r.push({type:"template-instance",instance:l,part:n,templatePartIndex:0,instancePartIndex:0,result:e}),n._$AH=l}}else ht(e)?(r.push({part:n,type:"iterable",value:e,iterator:e[Symbol.iterator](),done:!1}),n._$AH=[]):(r.push({part:n,type:"leaf"}),n._$AH=e??"");return n},ut=(s,t,r)=>{if(t===void 0)throw Error("unbalanced part marker");t._$AB=s;const i=r.pop();if(i.type==="iterable"&&!i.iterator.next().done)throw Error("unexpected longer than expected iterable");if(r.length>0)return r[r.length-1].part},$t=(s,t,r)=>{const i=/lit-node (\d+)/.exec(s.data),e=parseInt(i[1]),n=s.nextElementSibling;if(n===null)throw Error("could not find node for attribute parts");n.removeAttribute("defer-hydration");const o=t[t.length-1];if(o.type!=="template-instance")throw Error("Hydration value mismatch: Primitive found where TemplateResult expected. This usually occurs due to conditional rendering that resulted in a different value or template being rendered between the server and client.");{const h=o.instance;for(;;){const l=h._$AD.parts[o.templatePartIndex];if(l===void 0||l.type!==T.ATTRIBUTE&&l.type!==T.ELEMENT||l.index!==e)break;if(l.type===T.ATTRIBUTE){const a=new l.ctor(n,l.name,l.strings,o.instance,r),d=lt(a)?o.result.values[o.instancePartIndex]:o.result.values,c=!(a.type===T.EVENT||a.type===T.PROPERTY);a._$AI(d,a,o.instancePartIndex,c),o.instancePartIndex+=l.strings.length-1,h._$AV.push(a)}else{const a=new ct(n,o.instance,r);X(a,o.result.values[o.instancePartIndex++]),h._$AV.push(a)}o.templatePartIndex++}}},At=s=>{const t=new Uint32Array(2).fill(5381);for(const i of s.strings)for(let e=0;e{const t=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(s),"observedAttributes").get;Object.defineProperty(s,"observedAttributes",{get(){return[...t.call(this),"defer-hydration"]}});const r=s.prototype.attributeChangedCallback;s.prototype.attributeChangedCallback=function(o,h,l){o==="defer-hydration"&&l===null&&i.call(this),r.call(this,o,h,l)};const i=s.prototype.connectedCallback;s.prototype.connectedCallback=function(){this.hasAttribute("defer-hydration")||i.call(this)};const e=s.prototype.createRenderRoot;s.prototype.createRenderRoot=function(){return this.shadowRoot?(this._$AG=!0,this.shadowRoot):e.call(this)};const n=Object.getPrototypeOf(s.prototype).update;s.prototype.update=function(o){const h=this.render();if(n.call(this,o),this._$AG){this._$AG=!1;for(let l=0;lGracile Contact - - + + @@ -25,5 +25,6 @@

the Contact Page

- + + diff --git a/integration/__fixtures__/server-express/dist_expected/server/chunk/assets-methods.js b/integration/__fixtures__/server-express/dist_expected/server/chunk/assets-methods.js index a95c800..d430853 100644 --- a/integration/__fixtures__/server-express/dist_expected/server/chunk/assets-methods.js +++ b/integration/__fixtures__/server-express/dist_expected/server/chunk/assets-methods.js @@ -4,9 +4,9 @@ import { d as document } from './document.js'; import { css, LitElement, html } from 'lit'; import { state, property, customElement } from 'lit/decorators.js'; -const customStylesheet = "/assets/_assets-methods-my-el-2-_K7WEQ-5.css"; +const customStylesheet = "/assets/_assets-methods-my-el-2-B-0f4ddQ.css"; -const styles = "/assets/_assets-methods-my-el-BZ8-Dbhw.css"; +const styles = "/assets/_assets-methods-my-el-Bq1tmW6L.css"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; diff --git a/integration/__fixtures__/server-express/dist_expected/server/entrypoint.js b/integration/__fixtures__/server-express/dist_expected/server/entrypoint.js index d6d6b4d..d721ebf 100644 --- a/integration/__fixtures__/server-express/dist_expected/server/entrypoint.js +++ b/integration/__fixtures__/server-express/dist_expected/server/entrypoint.js @@ -161,47 +161,47 @@ const routeImports = new Map( const routeAssets = new Map([ [ "/404/", - " \n\n \n" + " \n\n \n" ], [ "/about/", - " \n\n \n" + " \n\n \n" ], [ "/assets-methods/", - " \n\n \n" + " \n\n \n" ], [ "/contact/", - " \n\n \n" + " \n\n \n" ], [ "/foo/bar/", - "\t\n\n\t\n\n\t\n" + "\t\n\n\t\n\n\t\n" ], [ "/", - "\t\n\n\t\n\n\t\n\n\t\n" + "\t\n\n\t\n\n\t\n\n\t\n" ], [ "/private/", - " \n\n \n" + " \n\n \n" ], [ "/response-init/", - " \n\n \n" + " \n\n \n" ], [ "/route-premises/", - " \n\n \n" + " \n\n \n" ], [ "/template-failure/", - " \n\n \n" + " \n\n \n" ], [ "/throws/", - " \n\n \n" + " \n\n \n" ] ]); diff --git a/integration/__fixtures__/server-express/src/routes/_404_prod_express_expected._html b/integration/__fixtures__/server-express/src/routes/_404_prod_express_expected._html index a234a36..2800c72 100644 --- a/integration/__fixtures__/server-express/src/routes/_404_prod_express_expected._html +++ b/integration/__fixtures__/server-express/src/routes/_404_prod_express_expected._html @@ -17,10 +17,10 @@ - + diff --git a/integration/__fixtures__/server-express/src/routes/_404_prod_hono_expected._html b/integration/__fixtures__/server-express/src/routes/_404_prod_hono_expected._html index a234a36..2800c72 100644 --- a/integration/__fixtures__/server-express/src/routes/_404_prod_hono_expected._html +++ b/integration/__fixtures__/server-express/src/routes/_404_prod_hono_expected._html @@ -17,10 +17,10 @@ - + diff --git a/integration/__fixtures__/server-express/src/routes/_about_prod_express_expected._html b/integration/__fixtures__/server-express/src/routes/_about_prod_express_expected._html index 33d0648..f9e66fd 100644 --- a/integration/__fixtures__/server-express/src/routes/_about_prod_express_expected._html +++ b/integration/__fixtures__/server-express/src/routes/_about_prod_express_expected._html @@ -17,9 +17,9 @@ - + diff --git a/integration/__fixtures__/server-express/src/routes/_about_prod_hono_expected._html b/integration/__fixtures__/server-express/src/routes/_about_prod_hono_expected._html index 33d0648..f9e66fd 100644 --- a/integration/__fixtures__/server-express/src/routes/_about_prod_hono_expected._html +++ b/integration/__fixtures__/server-express/src/routes/_about_prod_hono_expected._html @@ -17,9 +17,9 @@ - + diff --git a/integration/__fixtures__/server-express/src/routes/_assets-methods_prod_express_expected._html b/integration/__fixtures__/server-express/src/routes/_assets-methods_prod_express_expected._html index 439e68d..99e1432 100644 --- a/integration/__fixtures__/server-express/src/routes/_assets-methods_prod_express_expected._html +++ b/integration/__fixtures__/server-express/src/routes/_assets-methods_prod_express_expected._html @@ -17,16 +17,16 @@ - + - - + + \ No newline at end of file diff --git a/integration/__fixtures__/static-site/dist_expected/03-custom-elements/00-lit-full/index.html b/integration/__fixtures__/static-site/dist_expected/03-custom-elements/00-lit-full/index.html index 1b7a17a..945855f 100644 --- a/integration/__fixtures__/static-site/dist_expected/03-custom-elements/00-lit-full/index.html +++ b/integration/__fixtures__/static-site/dist_expected/03-custom-elements/00-lit-full/index.html @@ -6,7 +6,7 @@ Document - With Lit hydration - + @@ -27,6 +27,7 @@
0 - + + \ No newline at end of file diff --git a/integration/__fixtures__/static-site/dist_expected/09-metadata/00-metadata/index.html b/integration/__fixtures__/static-site/dist_expected/09-metadata/00-metadata/index.html index 115fcad..8c81e2c 100644 --- a/integration/__fixtures__/static-site/dist_expected/09-metadata/00-metadata/index.html +++ b/integration/__fixtures__/static-site/dist_expected/09-metadata/00-metadata/index.html @@ -4,6 +4,7 @@ + Hello Metadata
/09-metadata/00-metadata/ - + + \ No newline at end of file diff --git a/integration/__fixtures__/static-site/dist_expected/10-svg/00-svg/index.html b/integration/__fixtures__/static-site/dist_expected/10-svg/00-svg/index.html index 511dd8a..511c990 100644 --- a/integration/__fixtures__/static-site/dist_expected/10-svg/00-svg/index.html +++ b/integration/__fixtures__/static-site/dist_expected/10-svg/00-svg/index.html @@ -25,6 +25,7 @@

Hello SVGs


- + + \ No newline at end of file diff --git a/integration/__fixtures__/static-site/dist_expected/11-markdown/05-preset-marked/index.html b/integration/__fixtures__/static-site/dist_expected/11-markdown/05-preset-marked/index.html index 767abbf..a82c8ff 100644 --- a/integration/__fixtures__/static-site/dist_expected/11-markdown/05-preset-marked/index.html +++ b/integration/__fixtures__/static-site/dist_expected/11-markdown/05-preset-marked/index.html @@ -1260,6 +1260,7 @@

Hey I'm nested!

Shoelace Typography
- + + \ No newline at end of file diff --git a/integration/__fixtures__/static-site/dist_expected/12-route-premises/01-page-zebra/index.html b/integration/__fixtures__/static-site/dist_expected/12-route-premises/01-page-zebra/index.html index c66358e..34e30cb 100644 --- a/integration/__fixtures__/static-site/dist_expected/12-route-premises/01-page-zebra/index.html +++ b/integration/__fixtures__/static-site/dist_expected/12-route-premises/01-page-zebra/index.html @@ -32,6 +32,7 @@

Hello Client Router - Zebra

] ] - + + \ No newline at end of file diff --git a/integration/__fixtures__/static-site/dist_expected/12-route-premises/02-page-lion/index.html b/integration/__fixtures__/static-site/dist_expected/12-route-premises/02-page-lion/index.html index 17a3d41..8e03435 100644 --- a/integration/__fixtures__/static-site/dist_expected/12-route-premises/02-page-lion/index.html +++ b/integration/__fixtures__/static-site/dist_expected/12-route-premises/02-page-lion/index.html @@ -32,6 +32,7 @@

Hello Client Router - Lion

] ] - + + \ No newline at end of file diff --git a/integration/__fixtures__/static-site/dist_expected/404.html b/integration/__fixtures__/static-site/dist_expected/404.html index 00cd71e..df00da2 100644 --- a/integration/__fixtures__/static-site/dist_expected/404.html +++ b/integration/__fixtures__/static-site/dist_expected/404.html @@ -12,6 +12,7 @@

⚠️ 404 not found!!

http://gracile-static/404/ not found.

- + + \ No newline at end of file diff --git a/integration/__fixtures__/static-site/dist_expected/assets/index-CuWS9hnN.js b/integration/__fixtures__/static-site/dist_expected/assets/index-DEvY0BoU.js similarity index 57% rename from integration/__fixtures__/static-site/dist_expected/assets/index-CuWS9hnN.js rename to integration/__fixtures__/static-site/dist_expected/assets/index-DEvY0BoU.js index 4cc7bdc..5758492 100644 --- a/integration/__fixtures__/static-site/dist_expected/assets/index-CuWS9hnN.js +++ b/integration/__fixtures__/static-site/dist_expected/assets/index-DEvY0BoU.js @@ -2,37 +2,37 @@ import"./modulepreload-polyfill-B5Qt9EMX.js";/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const T=globalThis,D=T.trustedTypes,Y=D?D.createPolicy("lit-html",{createHTML:r=>r}):void 0,F="$lit$",f=`lit$${Math.random().toFixed(9).slice(2)}$`,q="?"+f,vt=`<${q}>`,v=document,O=()=>v.createComment(""),R=r=>r===null||typeof r!="object"&&typeof r!="function",at=Array.isArray,lt=r=>at(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",j=`[ -\f\r]`,P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Z=/-->/g,Q=/>/g,A=RegExp(`>|${j}(?:([^\\s"'>=/]+)(${j}*=${j}*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`,"g"),X=/'/g,tt=/"/g,ht=/^(?:script|style|textarea|title)$/i,bt=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),Et=bt(1),y=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),et=new WeakMap,g=v.createTreeWalker(v,129);function ct(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Y!==void 0?Y.createHTML(t):t}const dt=(r,t)=>{const e=r.length-1,s=[];let i,o=t===2?"":"",n=P;for(let l=0;l"?(n=i??P,c=-1):d[1]===void 0?c=-2:(c=n.lastIndex-d[2].length,h=d[1],n=d[3]===void 0?A:d[3]==='"'?tt:X):n===tt||n===X?n=A:n===Z||n===Q?n=P:(n=A,i=void 0);const _=n===A&&r[l+1].startsWith("/>")?" ":"";o+=n===P?a+vt:c>=0?(s.push(h),a.slice(0,c)+F+a.slice(c)+f+_):a+f+(c===-2?l:_)}return[ct(r,o+(r[e]||"")+(t===2?"":"")),s]};class H{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let o=0,n=0;const l=t.length-1,a=this.parts,[h,d]=dt(t,e);if(this.el=H.createElement(h,s),g.currentNode=this.el.content,e===2){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(i=g.nextNode())!==null&&a.length0){i.textContent=D?D.emptyScript:"";for(let _=0;_<$;_++)i.append(c[_],O()),g.nextNode(),a.push({type:2,index:++o});i.append(c[$],O())}}}else if(i.nodeType===8)if(i.data===q)a.push({type:2,index:o});else{let c=-1;for(;(c=i.data.indexOf(f,c+1))!==-1;)a.push({type:7,index:o}),c+=f.length-1}o++}}static createElement(t,e){const s=v.createElement("template");return s.innerHTML=t,s}}function b(r,t,e=r,s){var n,l;if(t===y)return t;let i=s!==void 0?(n=e._$Co)==null?void 0:n[s]:e._$Cl;const o=R(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==o&&((l=i==null?void 0:i._$AO)==null||l.call(i,!1),o===void 0?i=void 0:(i=new o(r),i._$AT(r,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=i:e._$Cl=i),i!==void 0&&(t=b(r,i._$AS(r,t.values),i,s)),t}let pt=class{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,i=((t==null?void 0:t.creationScope)??v).importNode(e,!0);g.currentNode=i;let o=g.nextNode(),n=0,l=0,a=s[0];for(;a!==void 0;){if(n===a.index){let h;a.type===2?h=new S(o,o.nextSibling,this,t):a.type===1?h=new a.ctor(o,a.name,a.strings,this,t):a.type===6&&(h=new _t(o,this,t)),this._$AV.push(h),a=s[++l]}n!==(a==null?void 0:a.index)&&(o=g.nextNode(),n++)}return g.currentNode=v,i}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 S{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=(i==null?void 0:i.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=b(this,t,e),R(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==y&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):lt(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!==p&&R(this._$AH)?this._$AA.nextSibling.data=t:this.T(v.createTextNode(t)),this._$AH=t}$(t){var o;const{values:e,_$litType$:s}=t,i=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=H.createElement(ct(s.h,s.h[0]),this.options)),s);if(((o=this._$AH)==null?void 0:o._$AD)===i)this._$AH.p(e);else{const n=new pt(i,this),l=n.u(this.options);n.p(e),this.T(l),this._$AH=n}}_$AC(t){let e=et.get(t.strings);return e===void 0&&et.set(t.strings,e=new H(t)),e}k(t){at(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const o of t)i===e.length?e.push(s=new S(this.S(O()),this.S(O()),this,this.options)):s=e[i],s._$AI(o),i++;i2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=p}_$AI(t,e=this,s,i){const o=this.strings;let n=!1;if(o===void 0)t=b(this,t,e,0),n=!R(t)||t!==this._$AH&&t!==y,n&&(this._$AH=t);else{const l=t;let a,h;for(t=o[0],a=0;a{const s=(e==null?void 0:e.renderBefore)??t;let i=s._$litPart$;if(i===void 0){const o=(e==null?void 0:e.renderBefore)??null;s._$litPart$=i=new S(t.insertBefore(O(),o),o,void 0,e??{})}return i._$AI(r),i};/** + */const T=globalThis,D=T.trustedTypes,Y=D?D.createPolicy("lit-html",{createHTML:r=>r}):void 0,F="$lit$",f=`lit$${Math.random().toFixed(9).slice(2)}$`,q="?"+f,vt=`<${q}>`,v=document,U=()=>v.createComment(""),R=r=>r===null||typeof r!="object"&&typeof r!="function",G=Array.isArray,lt=r=>G(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",j=`[ +\f\r]`,w=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Q=/-->/g,X=/>/g,A=RegExp(`>|${j}(?:([^\\s"'>=/]+)(${j}*=${j}*(?:[^ +\f\r"'\`<>=]|("|')|))|$)`,"g"),tt=/'/g,et=/"/g,ht=/^(?:script|style|textarea|title)$/i,bt=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),Et=bt(1),y=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),st=new WeakMap,g=v.createTreeWalker(v,129);function ct(r,t){if(!G(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Y!==void 0?Y.createHTML(t):t}const dt=(r,t)=>{const e=r.length-1,s=[];let i,o=t===2?"":t===3?"":"",n=w;for(let l=0;l"?(n=i??w,c=-1):d[1]===void 0?c=-2:(c=n.lastIndex-d[2].length,h=d[1],n=d[3]===void 0?A:d[3]==='"'?et:tt):n===et||n===tt?n=A:n===Q||n===X?n=w:(n=A,i=void 0);const _=n===A&&r[l+1].startsWith("/>")?" ":"";o+=n===w?a+vt:c>=0?(s.push(h),a.slice(0,c)+F+a.slice(c)+f+_):a+f+(c===-2?l:_)}return[ct(r,o+(r[e]||"")+(t===2?"":t===3?"":"")),s]};class H{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let o=0,n=0;const l=t.length-1,a=this.parts,[h,d]=dt(t,e);if(this.el=H.createElement(h,s),g.currentNode=this.el.content,e===2||e===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(i=g.nextNode())!==null&&a.length0){i.textContent=D?D.emptyScript:"";for(let _=0;_<$;_++)i.append(c[_],U()),g.nextNode(),a.push({type:2,index:++o});i.append(c[$],U())}}}else if(i.nodeType===8)if(i.data===q)a.push({type:2,index:o});else{let c=-1;for(;(c=i.data.indexOf(f,c+1))!==-1;)a.push({type:7,index:o}),c+=f.length-1}o++}}static createElement(t,e){const s=v.createElement("template");return s.innerHTML=t,s}}function b(r,t,e=r,s){var n,l;if(t===y)return t;let i=s!==void 0?(n=e._$Co)==null?void 0:n[s]:e._$Cl;const o=R(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==o&&((l=i==null?void 0:i._$AO)==null||l.call(i,!1),o===void 0?i=void 0:(i=new o(r),i._$AT(r,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=i:e._$Cl=i),i!==void 0&&(t=b(r,i._$AS(r,t.values),i,s)),t}class pt{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,i=((t==null?void 0:t.creationScope)??v).importNode(e,!0);g.currentNode=i;let o=g.nextNode(),n=0,l=0,a=s[0];for(;a!==void 0;){if(n===a.index){let h;a.type===2?h=new P(o,o.nextSibling,this,t):a.type===1?h=new a.ctor(o,a.name,a.strings,this,t):a.type===6&&(h=new _t(o,this,t)),this._$AV.push(h),a=s[++l]}n!==(a==null?void 0:a.index)&&(o=g.nextNode(),n++)}return g.currentNode=v,i}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 P{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=(i==null?void 0:i.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=b(this,t,e),R(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==y&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):lt(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!==p&&R(this._$AH)?this._$AA.nextSibling.data=t:this.T(v.createTextNode(t)),this._$AH=t}$(t){var o;const{values:e,_$litType$:s}=t,i=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=H.createElement(ct(s.h,s.h[0]),this.options)),s);if(((o=this._$AH)==null?void 0:o._$AD)===i)this._$AH.p(e);else{const n=new pt(i,this),l=n.u(this.options);n.p(e),this.T(l),this._$AH=n}}_$AC(t){let e=st.get(t.strings);return e===void 0&&st.set(t.strings,e=new H(t)),e}k(t){G(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const o of t)i===e.length?e.push(s=new P(this.O(U()),this.O(U()),this,this.options)):s=e[i],s._$AI(o),i++;i2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=p}_$AI(t,e=this,s,i){const o=this.strings;let n=!1;if(o===void 0)t=b(this,t,e,0),n=!R(t)||t!==this._$AH&&t!==y,n&&(this._$AH=t);else{const l=t;let a,h;for(t=o[0],a=0;a{const s=(e==null?void 0:e.renderBefore)??t;let i=s._$litPart$;if(i===void 0){const o=(e==null?void 0:e.renderBefore)??null;s._$litPart$=i=new P(t.insertBefore(U(),o),o,void 0,e??{})}return i._$AI(r),i};/** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */let z=null;const St={boundAttributeSuffix:u.P,marker:u.A,markerMatch:u.C,HTML_RESULT:u.M,getTemplateHtml:u.L,overrideDirectiveResolve:(r,t)=>class extends r{_$AS(e,s){return t(this,s)}},patchDirectiveResolve:(r,t)=>{if(r.prototype._$AS!==t){z??(z=r.prototype._$AS.name);for(let e=r.prototype;e!==Object.prototype;e=Object.getPrototypeOf(e))if(e.hasOwnProperty(z))return void(e[z]=t);throw Error("Internal error: It is possible that both dev mode and production mode Lit was mixed together during SSR. Please comment on the issue: https://github.com/lit/lit/issues/4527")}},setDirectiveClass(r,t){r._$litDirective$=t},getAttributePartCommittedValue:(r,t,e)=>{let s=y;return r.j=i=>s=i,r._$AI(t,r,e),s},connectedDisconnectable:r=>({...r,_$AU:!0}),resolveDirective:u.V,AttributePart:u.H,PropertyPart:u.B,BooleanAttributePart:u.N,EventPart:u.U,ElementPart:u.F,TemplateInstance:u.R,isIterable:u.D,ChildPart:u.I};/** + */let z=null;const Pt={boundAttributeSuffix:u.M,marker:u.P,markerMatch:u.A,HTML_RESULT:u.C,getTemplateHtml:u.L,overrideDirectiveResolve:(r,t)=>class extends r{_$AS(e,s){return t(this,s)}},patchDirectiveResolve:(r,t)=>{if(r.prototype._$AS!==t){z??(z=r.prototype._$AS.name);for(let e=r.prototype;e!==Object.prototype;e=Object.getPrototypeOf(e))if(e.hasOwnProperty(z))return void(e[z]=t);throw Error("Internal error: It is possible that both dev mode and production mode Lit was mixed together during SSR. Please comment on the issue: https://github.com/lit/lit/issues/4527")}},setDirectiveClass(r,t){r._$litDirective$=t},getAttributePartCommittedValue:(r,t,e)=>{let s=y;return r.j=i=>s=i,r._$AI(t,r,e),s},connectedDisconnectable:r=>({...r,_$AU:!0}),resolveDirective:u.V,AttributePart:u.H,PropertyPart:u.B,BooleanAttributePart:u.N,EventPart:u.U,ElementPart:u.F,TemplateInstance:u.R,isIterable:u.D,ChildPart:u.I};/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const w={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6};/** + */const S={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6};/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const Pt=r=>r===null||typeof r!="object"&&typeof r!="function",wt=(r,t)=>(r==null?void 0:r._$litType$)!==void 0,Ct=r=>{var t;return((t=r==null?void 0:r._$litType$)==null?void 0:t.h)!=null},Tt=r=>r.strings===void 0;/** + */const wt=r=>r===null||typeof r!="object"&&typeof r!="function",St=(r,t)=>(r==null?void 0:r._$litType$)!==void 0,Ct=r=>{var t;return((t=r==null?void 0:r._$litType$)==null?void 0:t.h)!=null},Tt=r=>r.strings===void 0;/** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const{TemplateInstance:xt,isIterable:Ut,resolveDirective:yt,ChildPart:C,ElementPart:Ot}=St,Rt=(r,t,e={})=>{if(t._$litPart$!==void 0)throw Error("container already contains a live render");let s,i,o;const n=[],l=document.createTreeWalker(t,NodeFilter.SHOW_COMMENT);let a;for(;(a=l.nextNode())!==null;){const h=a.data;if(h.startsWith("lit-part")){if(n.length===0&&s!==void 0)throw Error(`There must be only one root part per container. Found a part marker (${a}) when we already have a root part marker (${i})`);o=Ht(r,a,n,e),s===void 0&&(s=o),i??(i=a)}else if(h.startsWith("lit-node"))It(a,n,e);else if(h.startsWith("/lit-part")){if(n.length===1&&o!==s)throw Error("internal error");o=Nt(a,o,n)}}if(s===void 0){const h=t instanceof ShadowRoot?"{container.host.localName}'s shadow root":t instanceof DocumentFragment?"DocumentFragment":t.localName;console.error(`There should be exactly one root part in a render container, but we didn't find any in ${h}.`)}t._$litPart$=s},Ht=(r,t,e,s)=>{let i,o;if(e.length===0)o=new C(t,null,void 0,s),i=r;else{const n=e[e.length-1];if(n.type==="template-instance")o=new C(t,null,n.instance,s),n.instance._$AV.push(o),i=n.result.values[n.instancePartIndex++],n.templatePartIndex++;else if(n.type==="iterable"){o=new C(t,null,n.part,s);const l=n.iterator.next();if(l.done)throw i=void 0,n.done=!0,Error("Unhandled shorter than expected iterable");i=l.value,n.part._$AH.push(o)}else o=new C(t,null,n.part,s)}if(i=yt(o,i),i===y)e.push({part:o,type:"leaf"});else if(Pt(i))e.push({part:o,type:"leaf"}),o._$AH=i;else if(wt(i)){if(Ct(i))throw Error("compiled templates are not supported");const n="lit-part "+Mt(i);if(t.data!==n)throw Error("Hydration value mismatch: Unexpected TemplateResult rendered to part");{const l=C.prototype._$AC(i),a=new xt(l,o);e.push({type:"template-instance",instance:a,part:o,templatePartIndex:0,instancePartIndex:0,result:i}),o._$AH=a}}else Ut(i)?(e.push({part:o,type:"iterable",value:i,iterator:i[Symbol.iterator](),done:!1}),o._$AH=[]):(e.push({part:o,type:"leaf"}),o._$AH=i??"");return o},Nt=(r,t,e)=>{if(t===void 0)throw Error("unbalanced part marker");t._$AB=r;const s=e.pop();if(s.type==="iterable"&&!s.iterator.next().done)throw Error("unexpected longer than expected iterable");if(e.length>0)return e[e.length-1].part},It=(r,t,e)=>{const s=/lit-node (\d+)/.exec(r.data),i=parseInt(s[1]),o=r.nextElementSibling;if(o===null)throw Error("could not find node for attribute parts");o.removeAttribute("defer-hydration");const n=t[t.length-1];if(n.type!=="template-instance")throw Error("Hydration value mismatch: Primitive found where TemplateResult expected. This usually occurs due to conditional rendering that resulted in a different value or template being rendered between the server and client.");{const l=n.instance;for(;;){const a=l._$AD.parts[n.templatePartIndex];if(a===void 0||a.type!==w.ATTRIBUTE&&a.type!==w.ELEMENT||a.index!==i)break;if(a.type===w.ATTRIBUTE){const h=new a.ctor(o,a.name,a.strings,n.instance,e),d=Tt(h)?n.result.values[n.instancePartIndex]:n.result.values,c=!(h.type===w.EVENT||h.type===w.PROPERTY);h._$AI(d,h,n.instancePartIndex,c),n.instancePartIndex+=a.strings.length-1,l._$AV.push(h)}else{const h=new Ot(o,n.instance,e);yt(h,n.result.values[n.instancePartIndex++]),l._$AV.push(h)}n.templatePartIndex++}}},Mt=r=>{const t=new Uint32Array(2).fill(5381);for(const s of r.strings)for(let i=0;i{const t=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(r),"observedAttributes").get;Object.defineProperty(r,"observedAttributes",{get(){return[...t.call(this),"defer-hydration"]}});const e=r.prototype.attributeChangedCallback;r.prototype.attributeChangedCallback=function(n,l,a){n==="defer-hydration"&&a===null&&s.call(this),e.call(this,n,l,a)};const s=r.prototype.connectedCallback;r.prototype.connectedCallback=function(){this.hasAttribute("defer-hydration")||s.call(this)};const i=r.prototype.createRenderRoot;r.prototype.createRenderRoot=function(){return this.shadowRoot?(this._$AG=!0,this.shadowRoot):i.call(this)};const o=Object.getPrototypeOf(r.prototype).update;r.prototype.update=function(n){const l=this.render();if(o.call(this,n),this._$AG){this._$AG=!1;for(let a=0;a{if(t._$litPart$!==void 0)throw Error("container already contains a live render");let s,i,o;const n=[],l=document.createTreeWalker(t,NodeFilter.SHOW_COMMENT);let a;for(;(a=l.nextNode())!==null;){const h=a.data;if(h.startsWith("lit-part")){if(n.length===0&&s!==void 0)throw Error(`There must be only one root part per container. Found a part marker (${a}) when we already have a root part marker (${i})`);o=Ht(r,a,n,e),s===void 0&&(s=o),i??(i=a)}else if(h.startsWith("lit-node"))It(a,n,e);else if(h.startsWith("/lit-part")){if(n.length===1&&o!==s)throw Error("internal error");o=Nt(a,o,n)}}if(s===void 0){const h=t instanceof ShadowRoot?"{container.host.localName}'s shadow root":t instanceof DocumentFragment?"DocumentFragment":t.localName;console.error(`There should be exactly one root part in a render container, but we didn't find any in ${h}.`)}t._$litPart$=s},Ht=(r,t,e,s)=>{let i,o;if(e.length===0)o=new C(t,null,void 0,s),i=r;else{const n=e[e.length-1];if(n.type==="template-instance")o=new C(t,null,n.instance,s),n.instance._$AV.push(o),i=n.result.values[n.instancePartIndex++],n.templatePartIndex++;else if(n.type==="iterable"){o=new C(t,null,n.part,s);const l=n.iterator.next();if(l.done)throw i=void 0,n.done=!0,Error("Unhandled shorter than expected iterable");i=l.value,n.part._$AH.push(o)}else o=new C(t,null,n.part,s)}if(i=yt(o,i),i===y)e.push({part:o,type:"leaf"});else if(wt(i))e.push({part:o,type:"leaf"}),o._$AH=i;else if(St(i)){if(Ct(i))throw Error("compiled templates are not supported");const n="lit-part "+Mt(i);if(t.data!==n)throw Error("Hydration value mismatch: Unexpected TemplateResult rendered to part");{const l=C.prototype._$AC(i),a=new xt(l,o);e.push({type:"template-instance",instance:a,part:o,templatePartIndex:0,instancePartIndex:0,result:i}),o._$AH=a}}else Ot(i)?(e.push({part:o,type:"iterable",value:i,iterator:i[Symbol.iterator](),done:!1}),o._$AH=[]):(e.push({part:o,type:"leaf"}),o._$AH=i??"");return o},Nt=(r,t,e)=>{if(t===void 0)throw Error("unbalanced part marker");t._$AB=r;const s=e.pop();if(s.type==="iterable"&&!s.iterator.next().done)throw Error("unexpected longer than expected iterable");if(e.length>0)return e[e.length-1].part},It=(r,t,e)=>{const s=/lit-node (\d+)/.exec(r.data),i=parseInt(s[1]),o=r.nextElementSibling;if(o===null)throw Error("could not find node for attribute parts");o.removeAttribute("defer-hydration");const n=t[t.length-1];if(n.type!=="template-instance")throw Error("Hydration value mismatch: Primitive found where TemplateResult expected. This usually occurs due to conditional rendering that resulted in a different value or template being rendered between the server and client.");{const l=n.instance;for(;;){const a=l._$AD.parts[n.templatePartIndex];if(a===void 0||a.type!==S.ATTRIBUTE&&a.type!==S.ELEMENT||a.index!==i)break;if(a.type===S.ATTRIBUTE){const h=new a.ctor(o,a.name,a.strings,n.instance,e),d=Tt(h)?n.result.values[n.instancePartIndex]:n.result.values,c=!(h.type===S.EVENT||h.type===S.PROPERTY);h._$AI(d,h,n.instancePartIndex,c),n.instancePartIndex+=a.strings.length-1,l._$AV.push(h)}else{const h=new Ut(o,n.instance,e);yt(h,n.result.values[n.instancePartIndex++]),l._$AV.push(h)}n.templatePartIndex++}}},Mt=r=>{const t=new Uint32Array(2).fill(5381);for(const s of r.strings)for(let i=0;i{const t=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(r),"observedAttributes").get;Object.defineProperty(r,"observedAttributes",{get(){return[...t.call(this),"defer-hydration"]}});const e=r.prototype.attributeChangedCallback;r.prototype.attributeChangedCallback=function(n,l,a){n==="defer-hydration"&&a===null&&s.call(this),e.call(this,n,l,a)};const s=r.prototype.connectedCallback;r.prototype.connectedCallback=function(){this.hasAttribute("defer-hydration")||s.call(this)};const i=r.prototype.createRenderRoot;r.prototype.createRenderRoot=function(){return this.shadowRoot?(this._$AG=!0,this.shadowRoot):i.call(this)};const o=Object.getPrototypeOf(r.prototype).update;r.prototype.update=function(n){const l=this.render();if(o.call(this,n),this._$AG){this._$AG=!1;for(let a=0;anew At(typeof r=="string"?r:r+"",void 0,J),kt=(r,...t)=>{const e=r.length===1?r[0]:t.reduce((s,i,o)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+r[o+1],r[0]);return new At(e,r,J)},Lt=(r,t)=>{if(G)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),i=M.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,r.appendChild(s)}},it=G?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return Dt(e)})(r):r;/** + */const M=globalThis,Z=M.ShadowRoot&&(M.ShadyCSS===void 0||M.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,J=Symbol(),it=new WeakMap;let At=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==J)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(Z&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=it.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&it.set(e,t))}return t}toString(){return this.cssText}};const Dt=r=>new At(typeof r=="string"?r:r+"",void 0,J),kt=(r,...t)=>{const e=r.length===1?r[0]:t.reduce((s,i,o)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+r[o+1],r[0]);return new At(e,r,J)},Lt=(r,t)=>{if(Z)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),i=M.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,r.appendChild(s)}},rt=Z?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return Dt(e)})(r):r;/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const{is:jt,defineProperty:Bt,getOwnPropertyDescriptor:zt,getOwnPropertyNames:Vt,getOwnPropertySymbols:Wt,getPrototypeOf:Ft}=Object,m=globalThis,rt=m.trustedTypes,qt=rt?rt.emptyScript:"",V=m.reactiveElementPolyfillSupport,x=(r,t)=>r,k={toAttribute(r,t){switch(t){case Boolean:r=r?qt:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},K=(r,t)=>!jt(r,t),nt={attribute:!0,type:String,converter:k,reflect:!1,hasChanged:K};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),m.litPropertyMetadata??(m.litPropertyMetadata=new WeakMap);class E 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=nt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&Bt(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:o}=zt(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get(){return i==null?void 0:i.call(this)},set(n){const l=i==null?void 0:i.call(this);o.call(this,n),this.requestUpdate(t,l,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??nt}static _$Ei(){if(this.hasOwnProperty(x("elementProperties")))return;const t=Ft(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(x("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(x("properties"))){const e=this.properties,s=[...Vt(e),...Wt(e)];for(const i of s)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,i]of e)this.elementProperties.set(s,i)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const i=this._$Eu(e,s);i!==void 0&&this._$Eh.set(i,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 i of s)e.unshift(it(i))}else t!==void 0&&e.push(it(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 Lt(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)}_$EC(t,e){var o;const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){const n=(((o=s.converter)==null?void 0:o.toAttribute)!==void 0?s.converter:k).toAttribute(e,s.type);this._$Em=t,n==null?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(t,e){var o;const s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const n=s.getPropertyOptions(i),l=typeof n.converter=="function"?{fromAttribute:n.converter}:((o=n.converter)==null?void 0:o.fromAttribute)!==void 0?n.converter:k;this._$Em=i,this[i]=l.fromAttribute(e,n.type),this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){if(s??(s=this.constructor.getPropertyOptions(t)),!(s.hasChanged??K)(this[t],e))return;this.P(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){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[o,n]of this._$Ep)this[o]=n;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[o,n]of i)n.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],n)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(i=>{var o;return(o=i.hostUpdate)==null?void 0:o.call(i)}),this.update(e)):this._$EU()}catch(i){throw t=!1,this._$EU(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(s=>{var i;return(i=s.hostUpdated)==null?void 0:i.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}}E.elementStyles=[],E.shadowRootOptions={mode:"open"},E[x("elementProperties")]=new Map,E[x("finalized")]=new Map,V==null||V({ReactiveElement:E}),(m.reactiveElementVersions??(m.reactiveElementVersions=[])).push("2.0.4");/** + */const{is:jt,defineProperty:Bt,getOwnPropertyDescriptor:zt,getOwnPropertyNames:Vt,getOwnPropertySymbols:Wt,getPrototypeOf:Ft}=Object,m=globalThis,nt=m.trustedTypes,qt=nt?nt.emptyScript:"",V=m.reactiveElementPolyfillSupport,x=(r,t)=>r,k={toAttribute(r,t){switch(t){case Boolean:r=r?qt:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},K=(r,t)=>!jt(r,t),ot={attribute:!0,type:String,converter:k,reflect:!1,hasChanged:K};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),m.litPropertyMetadata??(m.litPropertyMetadata=new WeakMap);class E 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=ot){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&Bt(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:o}=zt(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get(){return i==null?void 0:i.call(this)},set(n){const l=i==null?void 0:i.call(this);o.call(this,n),this.requestUpdate(t,l,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ot}static _$Ei(){if(this.hasOwnProperty(x("elementProperties")))return;const t=Ft(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(x("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(x("properties"))){const e=this.properties,s=[...Vt(e),...Wt(e)];for(const i of s)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,i]of e)this.elementProperties.set(s,i)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const i=this._$Eu(e,s);i!==void 0&&this._$Eh.set(i,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 i of s)e.unshift(rt(i))}else t!==void 0&&e.push(rt(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 Lt(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)}_$EC(t,e){var o;const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){const n=(((o=s.converter)==null?void 0:o.toAttribute)!==void 0?s.converter:k).toAttribute(e,s.type);this._$Em=t,n==null?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(t,e){var o;const s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const n=s.getPropertyOptions(i),l=typeof n.converter=="function"?{fromAttribute:n.converter}:((o=n.converter)==null?void 0:o.fromAttribute)!==void 0?n.converter:k;this._$Em=i,this[i]=l.fromAttribute(e,n.type),this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){if(s??(s=this.constructor.getPropertyOptions(t)),!(s.hasChanged??K)(this[t],e))return;this.P(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){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[o,n]of this._$Ep)this[o]=n;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[o,n]of i)n.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],n)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(i=>{var o;return(o=i.hostUpdate)==null?void 0:o.call(i)}),this.update(e)):this._$EU()}catch(i){throw t=!1,this._$EU(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(s=>{var i;return(i=s.hostUpdated)==null?void 0:i.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}}E.elementStyles=[],E.shadowRootOptions={mode:"open"},E[x("elementProperties")]=new Map,E[x("finalized")]=new Map,V==null||V({ReactiveElement:E}),(m.reactiveElementVersions??(m.reactiveElementVersions=[])).push("2.0.4");/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */class U extends E{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=mt(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 y}}var ot;U._$litElement$=!0,U.finalized=!0,(ot=globalThis.litElementHydrateSupport)==null||ot.call(globalThis,{LitElement:U});const W=globalThis.litElementPolyfillSupport;W==null||W({LitElement:U});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.5");/** + */let O=class extends E{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=mt(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 y}};var at;O._$litElement$=!0,O.finalized=!0,(at=globalThis.litElementHydrateSupport)==null||at.call(globalThis,{LitElement:O});const W=globalThis.litElementPolyfillSupport;W==null||W({LitElement:O});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause @@ -40,7 +40,7 @@ import"./modulepreload-polyfill-B5Qt9EMX.js";/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const Jt={attribute:!0,type:String,converter:k,reflect:!1,hasChanged:K},Kt=(r=Jt,t,e)=>{const{kind:s,metadata:i}=e;let o=globalThis.litPropertyMetadata.get(i);if(o===void 0&&globalThis.litPropertyMetadata.set(i,o=new Map),o.set(e.name,r),s==="accessor"){const{name:n}=e;return{set(l){const a=t.get.call(this);t.set.call(this,l),this.requestUpdate(n,a,r)},init(l){return l!==void 0&&this.P(n,void 0,r),l}}}if(s==="setter"){const{name:n}=e;return function(l){const a=this[n];t.call(this,l),this.requestUpdate(n,a,r)}}throw Error("Unsupported decorator location: "+s)};function Yt(r){return(t,e)=>typeof e=="object"?Kt(r,t,e):((s,i,o)=>{const n=i.hasOwnProperty(o);return i.constructor.createProperty(o,n?{...s,wrapped:!0}:s),n?Object.getOwnPropertyDescriptor(i,o):void 0})(r,t,e)}var Zt=Object.defineProperty,Qt=Object.getOwnPropertyDescriptor,gt=(r,t,e,s)=>{for(var i=s>1?void 0:s?Qt(t,e):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Zt(t,e,i),i};let L=class extends U{constructor(){super(...arguments),this.count=0}render(){return Et` + */const Zt={attribute:!0,type:String,converter:k,reflect:!1,hasChanged:K},Jt=(r=Zt,t,e)=>{const{kind:s,metadata:i}=e;let o=globalThis.litPropertyMetadata.get(i);if(o===void 0&&globalThis.litPropertyMetadata.set(i,o=new Map),o.set(e.name,r),s==="accessor"){const{name:n}=e;return{set(l){const a=t.get.call(this);t.set.call(this,l),this.requestUpdate(n,a,r)},init(l){return l!==void 0&&this.P(n,void 0,r),l}}}if(s==="setter"){const{name:n}=e;return function(l){const a=this[n];t.call(this,l),this.requestUpdate(n,a,r)}}throw Error("Unsupported decorator location: "+s)};function Kt(r){return(t,e)=>typeof e=="object"?Jt(r,t,e):((s,i,o)=>{const n=i.hasOwnProperty(o);return i.constructor.createProperty(o,n?{...s,wrapped:!0}:s),n?Object.getOwnPropertyDescriptor(i,o):void 0})(r,t,e)}var Yt=Object.defineProperty,Qt=Object.getOwnPropertyDescriptor,gt=(r,t,e,s)=>{for(var i=s>1?void 0:s?Qt(t,e):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Yt(t,e,i),i};let L=class extends O{constructor(){super(...arguments),this.count=0}render(){return Et`