@pure-ds/core 0.3.2 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/src/js/pds-core/pds-generator.d.ts +2 -0
- package/dist/types/src/js/pds-core/pds-generator.d.ts.map +1 -1
- package/dist/types/src/js/pds-core/pds-registry.d.ts +2 -7
- package/dist/types/src/js/pds-core/pds-registry.d.ts.map +1 -1
- package/dist/types/src/js/pds.d.ts.map +1 -1
- package/package.json +1 -1
- package/public/assets/js/app.js +9777 -430
- package/public/assets/js/app.js.map +7 -0
- package/public/assets/js/lit.js +1048 -3
- package/public/assets/js/lit.js.map +7 -0
- package/public/assets/js/pds.js +6665 -309
- package/public/assets/js/pds.js.map +7 -0
- package/src/js/pds-core/pds-generator.js +38 -9
- package/src/js/pds-core/pds-registry.js +7 -57
- package/src/js/pds.js +25 -16
package/public/assets/js/lit.js
CHANGED
|
@@ -1,6 +1,1050 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ut=/'/g,Ht=/"/g,Ot=/^(?:script|style|textarea|title)$/i,ut=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),F=ut(1),ft=ut(2),Dt=ut(3),_=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Rt=new WeakMap,x=w.createTreeWalker(w,129);function Lt(s,t){if(!pt(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Tt!==void 0?Tt.createHTML(t):t}var kt=(s,t)=>{let e=s.length-1,i=[],r,o=t===2?"<svg>":t===3?"<math>":"",n=D;for(let c=0;c<e;c++){let a=s[c],l,p,h=-1,f=0;for(;f<a.length&&(n.lastIndex=f,p=n.exec(a),p!==null);)f=n.lastIndex,n===D?p[1]==="!--"?n=Pt:p[1]!==void 0?n=Mt:p[2]!==void 0?(Ot.test(p[2])&&(r=RegExp("</"+p[2],"g")),n=E):p[3]!==void 0&&(n=E):n===E?p[0]===">"?(n=r??D,h=-1):p[1]===void 0?h=-2:(h=n.lastIndex-p[2].length,l=p[1],n=p[3]===void 0?E:p[3]==='"'?Ht:Ut):n===Ht||n===Ut?n=E:n===Pt||n===Mt?n=D:(n=E,r=void 0);let u=n===E&&s[c+1].startsWith("/>")?" ":"";o+=n===D?a+oe:h>=0?(i.push(l),a.slice(0,h)+lt+a.slice(h)+y+u):a+y+(h===-2?c:u)}return[Lt(s,o+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]},V=class s{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,n=0,c=t.length-1,a=this.parts,[l,p]=kt(t,e);if(this.el=s.createElement(l,i),x.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=x.nextNode())!==null&&a.length<c;){if(r.nodeType===1){if(r.hasAttributes())for(let h of r.getAttributeNames())if(h.endsWith(lt)){let f=p[n++],u=r.getAttribute(h).split(y),$=/([.?@])?(.*)/.exec(f);a.push({type:1,index:o,name:$[2],strings:u,ctor:$[1]==="."?q:$[1]==="?"?Z:$[1]==="@"?Y:T}),r.removeAttribute(h)}else h.startsWith(y)&&(a.push({type:6,index:o}),r.removeAttribute(h));if(Ot.test(r.tagName)){let h=r.textContent.split(y),f=h.length-1;if(f>0){r.textContent=W?W.emptyScript:"";for(let u=0;u<f;u++)r.append(h[u],L()),x.nextNode(),a.push({type:2,index:++o});r.append(h[f],L())}}}else if(r.nodeType===8)if(r.data===dt)a.push({type:2,index:o});else{let h=-1;for(;(h=r.data.indexOf(y,h+1))!==-1;)a.push({type:7,index:o}),h+=y.length-1}o++}}static createElement(t,e){let i=w.createElement("template");return i.innerHTML=t,i}};function b(s,t,e=s,i){if(t===_)return t;let r=i!==void 0?e._$Co?.[i]:e._$Cl,o=k(t)?void 0:t._$litDirective$;return r?.constructor!==o&&(r?._$AO?.(!1),o===void 0?r=void 0:(r=new o(s),r._$AT(s,e,i)),i!==void 0?(e._$Co??=[])[i]=r:e._$Cl=r),r!==void 0&&(t=b(s,r._$AS(s,t.values),r,i)),t}var K=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){let{el:{content:e},parts:i}=this._$AD,r=(t?.creationScope??w).importNode(e,!0);x.currentNode=r;let o=x.nextNode(),n=0,c=0,a=i[0];for(;a!==void 0;){if(n===a.index){let l;a.type===2?l=new U(o,o.nextSibling,this,t):a.type===1?l=new a.ctor(o,a.name,a.strings,this,t):a.type===6&&(l=new X(o,this,t)),this._$AV.push(l),a=i[++c]}n!==a?.index&&(o=x.nextNode(),n++)}return x.currentNode=w,r}p(t){let e=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},U=class s{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,r){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==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),k(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==_&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Nt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&k(this._$AH)?this._$AA.nextSibling.data=t:this.T(w.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:i}=t,r=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=V.createElement(Lt(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===r)this._$AH.p(e);else{let o=new K(r,this),n=o.u(this.options);o.p(e),this.T(n),this._$AH=o}}_$AC(t){let e=Rt.get(t.strings);return e===void 0&&Rt.set(t.strings,e=new V(t)),e}k(t){pt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,i,r=0;for(let o of t)r===e.length?e.push(i=new s(this.O(L()),this.O(L()),this,this.options)):i=e[r],i._$AI(o),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},T=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,r,o){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=d}_$AI(t,e=this,i,r){let o=this.strings,n=!1;if(o===void 0)t=b(this,t,e,0),n=!k(t)||t!==this._$AH&&t!==_,n&&(this._$AH=t);else{let c=t,a,l;for(t=o[0],a=0;a<o.length-1;a++)l=b(this,c[i+a],e,a),l===_&&(l=this._$AH[a]),n||=!k(l)||l!==this._$AH[a],l===d?t=d:t!==d&&(t+=(l??"")+o[a+1]),this._$AH[a]=l}n&&!r&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},q=class extends T{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},Z=class extends T{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},Y=class extends T{constructor(t,e,i,r,o){super(t,e,i,r,o),this.type=5}_$AI(t,e=this){if((t=b(this,t,e,0)??d)===_)return;let i=this._$AH,r=t===d&&i!==d||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==d&&(i===d||r);r&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},X=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){b(this,t)}},Vt={M:lt,P:y,A:dt,C:1,L:kt,R:K,D:Nt,V:b,I:U,H:T,N:Z,U:Y,B:q,F:X},ne=ct.litHtmlPolyfillSupport;ne?.(V,U),(ct.litHtmlVersions??=[]).push("3.3.1");var $t=(s,t,e)=>{let i=e?.renderBefore??t,r=i._$litPart$;if(r===void 0){let o=e?.renderBefore??null;i._$litPart$=r=new U(t.insertBefore(L(),o),o,void 0,e??{})}return r._$AI(s),r};var _t=globalThis,P=class extends v{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=$t(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return _}};P._$litElement$=!0,P.finalized=!0,_t.litElementHydrateSupport?.({LitElement:P});var ae=_t.litElementPolyfillSupport;ae?.({LitElement:P});(_t.litElementVersions??=[]).push("4.2.1");var S={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},m=s=>(...t)=>({_$litDirective$:s,values:t}),A=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var{I:he}=Vt,Bt=s=>s===null||typeof s!="object"&&typeof s!="function";var It=s=>s.strings===void 0,jt=()=>document.createComment(""),H=(s,t,e)=>{let i=s._$AA.parentNode,r=t===void 0?s._$AB:t._$AA;if(e===void 0){let o=i.insertBefore(jt(),r),n=i.insertBefore(jt(),r);e=new he(o,n,s,s.options)}else{let o=e._$AB.nextSibling,n=e._$AM,c=n!==s;if(c){let a;e._$AQ?.(s),e._$AM=s,e._$AP!==void 0&&(a=s._$AU)!==n._$AU&&e._$AP(a)}if(o!==r||c){let a=e._$AA;for(;a!==o;){let l=a.nextSibling;i.insertBefore(a,r),a=l}}}return e},C=(s,t,e=s)=>(s._$AI(t,e),s),ce={},J=(s,t=ce)=>s._$AH=t,Gt=s=>s._$AH,Q=s=>{s._$AR(),s._$AA.remove()};var zt=(s,t,e)=>{let i=new Map;for(let r=t;r<=e;r++)i.set(s[r],r);return i},Xe=m(class extends A{constructor(s){if(super(s),s.type!==S.CHILD)throw Error("repeat() can only be used in text expressions")}dt(s,t,e){let i;e===void 0?e=t:t!==void 0&&(i=t);let r=[],o=[],n=0;for(let c of s)r[n]=i?i(c,n):n,o[n]=e(c,n),n++;return{values:o,keys:r}}render(s,t,e){return this.dt(s,t,e).values}update(s,[t,e,i]){let r=Gt(s),{values:o,keys:n}=this.dt(t,e,i);if(!Array.isArray(r))return this.ut=n,o;let c=this.ut??=[],a=[],l,p,h=0,f=r.length-1,u=0,$=o.length-1;for(;h<=f&&u<=$;)if(r[h]===null)h++;else if(r[f]===null)f--;else if(c[h]===n[u])a[u]=C(r[h],o[u]),h++,u++;else if(c[f]===n[$])a[$]=C(r[f],o[$]),f--,$--;else if(c[h]===n[$])a[$]=C(r[h],o[$]),H(s,a[$+1],r[h]),h++,$--;else if(c[f]===n[u])a[u]=C(r[f],o[u]),H(s,r[h],r[f]),f--,u++;else if(l===void 0&&(l=zt(n,u,$),p=zt(c,h,f)),l.has(c[h]))if(l.has(c[f])){let g=p.get(n[u]),it=g!==void 0?r[g]:null;if(it===null){let yt=H(s,r[h]);C(yt,o[u]),a[u]=yt}else a[u]=C(it,o[u]),H(s,r[h],it),r[g]=null;u++}else Q(r[f]),f--;else Q(r[h]),h++;for(;u<=$;){let g=H(s,a[$+1]);C(g,o[u]),a[u++]=g}for(;h<=f;){let g=r[h++];g!==null&&Q(g)}return this.ut=n,J(s,a),_}});var rs=m(class extends A{constructor(){super(...arguments),this.key=d}render(s,t){return this.key=s,t}update(s,[t,e]){return t!==this.key&&(J(s),this.key=t),e}});var ds=m(class extends A{constructor(s){if(super(s),s.type!==S.ATTRIBUTE||s.name!=="class"||s.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter(t=>s[t]).join(" ")+" "}update(s,[t]){if(this.st===void 0){this.st=new Set,s.strings!==void 0&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in t)t[i]&&!this.nt?.has(i)&&this.st.add(i);return this.render(t)}let e=s.element.classList;for(let i of this.st)i in t||(e.remove(i),this.st.delete(i));for(let i in t){let r=!!t[i];r===this.st.has(i)||this.nt?.has(i)||(r?(e.add(i),this.st.add(i)):(e.remove(i),this.st.delete(i)))}return _}});var j=(s,t)=>{let e=s._$AN;if(e===void 0)return!1;for(let i of e)i._$AO?.(t,!1),j(i,t);return!0},tt=s=>{let t,e;do{if((t=s._$AM)===void 0)break;e=t._$AN,e.delete(s),s=t}while(e?.size===0)},Wt=s=>{for(let t;t=s._$AM;s=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(s))break;e.add(s),pe(t)}};function le(s){this._$AN!==void 0?(tt(this),this._$AM=s,Wt(this)):this._$AM=s}function de(s,t=!1,e=0){let i=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(i))for(let o=e;o<i.length;o++)j(i[o],!1),tt(i[o]);else i!=null&&(j(i,!1),tt(i));else j(this,s)}var pe=s=>{s.type==S.CHILD&&(s._$AP??=de,s._$AQ??=le)},R=class extends A{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,i){super._$AT(t,e,i),Wt(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(j(this,t),tt(this))}setValue(t){if(It(this._$Ct))this._$Ct._$AI(t,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};var ue=()=>new At,At=class{},mt=new WeakMap,fe=m(class extends R{render(s){return d}update(s,[t]){let e=t!==this.G;return e&&this.G!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.G=t,this.ht=s.options?.host,this.rt(this.ct=s.element)),d}rt(s){if(this.isConnected||(s=void 0),typeof this.G=="function"){let t=this.ht??globalThis,e=mt.get(t);e===void 0&&(e=new WeakMap,mt.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,s),s!==void 0&&this.G.call(this.ht,s)}else this.G.value=s}get lt(){return typeof this.G=="function"?mt.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var $e=s=>s??d;var et=class{constructor(t){this.G=t}disconnect(){this.G=void 0}reconnect(t){this.G=t}deref(){return this.G}},st=class{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){this.Y??=new Promise(t=>this.Z=t)}resume(){this.Z?.(),this.Y=this.Z=void 0}};var Kt=s=>!Bt(s)&&typeof s.then=="function",qt=1073741823,gt=class extends R{constructor(){super(...arguments),this._$Cwt=qt,this._$Cbt=[],this._$CK=new et(this),this._$CX=new st}render(...t){return t.find(e=>!Kt(e))??_}update(t,e){let i=this._$Cbt,r=i.length;this._$Cbt=e;let o=this._$CK,n=this._$CX;this.isConnected||this.disconnected();for(let c=0;c<e.length&&!(c>this._$Cwt);c++){let a=e[c];if(!Kt(a))return this._$Cwt=c,a;c<r&&a===i[c]||(this._$Cwt=qt,r=0,Promise.resolve(a).then(async l=>{for(;n.get();)await n.get();let p=o.deref();if(p!==void 0){let h=p._$Cbt.indexOf(a);h>-1&&h<p._$Cwt&&(p._$Cwt=h,p.setValue(l))}}))}return _}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}},_e=m(gt);var M=class extends A{constructor(t){if(super(t),this.it=d,t.type!==S.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===d||t==null)return this._t=void 0,this.it=t;if(t===_)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;let e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}};M.directiveName="unsafeHTML",M.resultType=1;var me=m(M);var B=class extends M{};B.directiveName="unsafeSVG",B.resultType=2;var Ae=m(B);var ge=["127.0.0.1","localhost"].includes(window.location.hostname),ve=s=>typeof s!="string"&&"strTag"in s;function ye(s){let t="";for(let e=0;e<=s.length-1;e++)t+=s[e],e<s.length-1&&(t+=`{${e}}`);return t}function Se(s,t){return s.replace(/\{(\d+)\}/g,(e,i)=>t(i))}var Ce=(s,t,e)=>{let i=ye(s),r=Zt(i,e);return Se(r,o=>t[o])};function Zt(s,t={}){window.__strings=window.__strings??{};let e=window.__strings[s]?.content;return!e&&ge&&console.log("\u{1F310}",s,t.desc?`(${t.desc})`:""),window.env?.DEBUG_TRANSLATIONS?`__${e??s}`:e??s}var Ee=(s,t={})=>s?ve(s)?Ce(s.strings,s.values,t):Zt(s,t):"";var Xt=Symbol.for(""),xe=s=>{if(s?.r===Xt)return s?._$litStatic$},we=s=>({_$litStatic$:s,r:Xt});var Yt=new Map,vt=s=>(t,...e)=>{let i=e.length,r,o,n=[],c=[],a,l=0,p=!1;for(;l<i;){for(a=t[l];l<i&&(o=e[l],(r=xe(o))!==void 0);)a+=r+t[++l],p=!0;l!==i&&c.push(o),n.push(a),l++}if(l===i&&n.push(t[i]),p){let h=n.join("$$lit$$");(t=Yt.get(h))===void 0&&(n.raw=n,Yt.set(h,t=n)),e=c}return s(t,...e)},be=vt(F),Js=vt(ft),Qs=vt(Dt);var ri=F,oi=ot;async function ni(s){try{window.__strings=await fetch(`/assets/locales/${s}.json`).then(t=>t.json())}catch{window.__strings={}}}export{P as LitElement,ds as classMap,ue as createRef,oi as css,ri as html,$e as ifDefined,rs as keyed,ni as loadLocale,Ee as msg,d as nothing,fe as ref,$t as render,Xe as repeat,be as staticHtml,ft as svg,me as unsafeHTML,Ae as unsafeSVG,we as unsafeStatic,_e as until};
|
|
1
|
+
// node_modules/@lit/reactive-element/css-tag.js
|
|
2
|
+
var t = globalThis;
|
|
3
|
+
var e = t.ShadowRoot && (void 0 === t.ShadyCSS || t.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
|
|
4
|
+
var s = Symbol();
|
|
5
|
+
var o = /* @__PURE__ */ new WeakMap();
|
|
6
|
+
var n = class {
|
|
7
|
+
constructor(t6, e8, o11) {
|
|
8
|
+
if (this._$cssResult$ = true, o11 !== s)
|
|
9
|
+
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
10
|
+
this.cssText = t6, this.t = e8;
|
|
11
|
+
}
|
|
12
|
+
get styleSheet() {
|
|
13
|
+
let t6 = this.o;
|
|
14
|
+
const s8 = this.t;
|
|
15
|
+
if (e && void 0 === t6) {
|
|
16
|
+
const e8 = void 0 !== s8 && 1 === s8.length;
|
|
17
|
+
e8 && (t6 = o.get(s8)), void 0 === t6 && ((this.o = t6 = new CSSStyleSheet()).replaceSync(this.cssText), e8 && o.set(s8, t6));
|
|
18
|
+
}
|
|
19
|
+
return t6;
|
|
20
|
+
}
|
|
21
|
+
toString() {
|
|
22
|
+
return this.cssText;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
var r = (t6) => new n("string" == typeof t6 ? t6 : t6 + "", void 0, s);
|
|
26
|
+
var i = (t6, ...e8) => {
|
|
27
|
+
const o11 = 1 === t6.length ? t6[0] : e8.reduce((e9, s8, o12) => e9 + ((t7) => {
|
|
28
|
+
if (true === t7._$cssResult$)
|
|
29
|
+
return t7.cssText;
|
|
30
|
+
if ("number" == typeof t7)
|
|
31
|
+
return t7;
|
|
32
|
+
throw Error("Value passed to 'css' function must be a 'css' function result: " + t7 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
33
|
+
})(s8) + t6[o12 + 1], t6[0]);
|
|
34
|
+
return new n(o11, t6, s);
|
|
35
|
+
};
|
|
36
|
+
var S = (s8, o11) => {
|
|
37
|
+
if (e)
|
|
38
|
+
s8.adoptedStyleSheets = o11.map((t6) => t6 instanceof CSSStyleSheet ? t6 : t6.styleSheet);
|
|
39
|
+
else
|
|
40
|
+
for (const e8 of o11) {
|
|
41
|
+
const o12 = document.createElement("style"), n8 = t.litNonce;
|
|
42
|
+
void 0 !== n8 && o12.setAttribute("nonce", n8), o12.textContent = e8.cssText, s8.appendChild(o12);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
var c = e ? (t6) => t6 : (t6) => t6 instanceof CSSStyleSheet ? ((t7) => {
|
|
46
|
+
let e8 = "";
|
|
47
|
+
for (const s8 of t7.cssRules)
|
|
48
|
+
e8 += s8.cssText;
|
|
49
|
+
return r(e8);
|
|
50
|
+
})(t6) : t6;
|
|
51
|
+
|
|
52
|
+
// node_modules/@lit/reactive-element/reactive-element.js
|
|
53
|
+
var { is: i2, defineProperty: e2, getOwnPropertyDescriptor: h, getOwnPropertyNames: r2, getOwnPropertySymbols: o2, getPrototypeOf: n2 } = Object;
|
|
54
|
+
var a = globalThis;
|
|
55
|
+
var c2 = a.trustedTypes;
|
|
56
|
+
var l = c2 ? c2.emptyScript : "";
|
|
57
|
+
var p = a.reactiveElementPolyfillSupport;
|
|
58
|
+
var d = (t6, s8) => t6;
|
|
59
|
+
var u = { toAttribute(t6, s8) {
|
|
60
|
+
switch (s8) {
|
|
61
|
+
case Boolean:
|
|
62
|
+
t6 = t6 ? l : null;
|
|
63
|
+
break;
|
|
64
|
+
case Object:
|
|
65
|
+
case Array:
|
|
66
|
+
t6 = null == t6 ? t6 : JSON.stringify(t6);
|
|
67
|
+
}
|
|
68
|
+
return t6;
|
|
69
|
+
}, fromAttribute(t6, s8) {
|
|
70
|
+
let i9 = t6;
|
|
71
|
+
switch (s8) {
|
|
72
|
+
case Boolean:
|
|
73
|
+
i9 = null !== t6;
|
|
74
|
+
break;
|
|
75
|
+
case Number:
|
|
76
|
+
i9 = null === t6 ? null : Number(t6);
|
|
77
|
+
break;
|
|
78
|
+
case Object:
|
|
79
|
+
case Array:
|
|
80
|
+
try {
|
|
81
|
+
i9 = JSON.parse(t6);
|
|
82
|
+
} catch (t7) {
|
|
83
|
+
i9 = null;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return i9;
|
|
87
|
+
} };
|
|
88
|
+
var f = (t6, s8) => !i2(t6, s8);
|
|
89
|
+
var b = { attribute: true, type: String, converter: u, reflect: false, useDefault: false, hasChanged: f };
|
|
90
|
+
Symbol.metadata ??= Symbol("metadata"), a.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
91
|
+
var y = class extends HTMLElement {
|
|
92
|
+
static addInitializer(t6) {
|
|
93
|
+
this._$Ei(), (this.l ??= []).push(t6);
|
|
94
|
+
}
|
|
95
|
+
static get observedAttributes() {
|
|
96
|
+
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
97
|
+
}
|
|
98
|
+
static createProperty(t6, s8 = b) {
|
|
99
|
+
if (s8.state && (s8.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t6) && ((s8 = Object.create(s8)).wrapped = true), this.elementProperties.set(t6, s8), !s8.noAccessor) {
|
|
100
|
+
const i9 = Symbol(), h6 = this.getPropertyDescriptor(t6, i9, s8);
|
|
101
|
+
void 0 !== h6 && e2(this.prototype, t6, h6);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
static getPropertyDescriptor(t6, s8, i9) {
|
|
105
|
+
const { get: e8, set: r6 } = h(this.prototype, t6) ?? { get() {
|
|
106
|
+
return this[s8];
|
|
107
|
+
}, set(t7) {
|
|
108
|
+
this[s8] = t7;
|
|
109
|
+
} };
|
|
110
|
+
return { get: e8, set(s9) {
|
|
111
|
+
const h6 = e8?.call(this);
|
|
112
|
+
r6?.call(this, s9), this.requestUpdate(t6, h6, i9);
|
|
113
|
+
}, configurable: true, enumerable: true };
|
|
114
|
+
}
|
|
115
|
+
static getPropertyOptions(t6) {
|
|
116
|
+
return this.elementProperties.get(t6) ?? b;
|
|
117
|
+
}
|
|
118
|
+
static _$Ei() {
|
|
119
|
+
if (this.hasOwnProperty(d("elementProperties")))
|
|
120
|
+
return;
|
|
121
|
+
const t6 = n2(this);
|
|
122
|
+
t6.finalize(), void 0 !== t6.l && (this.l = [...t6.l]), this.elementProperties = new Map(t6.elementProperties);
|
|
123
|
+
}
|
|
124
|
+
static finalize() {
|
|
125
|
+
if (this.hasOwnProperty(d("finalized")))
|
|
126
|
+
return;
|
|
127
|
+
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d("properties"))) {
|
|
128
|
+
const t7 = this.properties, s8 = [...r2(t7), ...o2(t7)];
|
|
129
|
+
for (const i9 of s8)
|
|
130
|
+
this.createProperty(i9, t7[i9]);
|
|
131
|
+
}
|
|
132
|
+
const t6 = this[Symbol.metadata];
|
|
133
|
+
if (null !== t6) {
|
|
134
|
+
const s8 = litPropertyMetadata.get(t6);
|
|
135
|
+
if (void 0 !== s8)
|
|
136
|
+
for (const [t7, i9] of s8)
|
|
137
|
+
this.elementProperties.set(t7, i9);
|
|
138
|
+
}
|
|
139
|
+
this._$Eh = /* @__PURE__ */ new Map();
|
|
140
|
+
for (const [t7, s8] of this.elementProperties) {
|
|
141
|
+
const i9 = this._$Eu(t7, s8);
|
|
142
|
+
void 0 !== i9 && this._$Eh.set(i9, t7);
|
|
143
|
+
}
|
|
144
|
+
this.elementStyles = this.finalizeStyles(this.styles);
|
|
145
|
+
}
|
|
146
|
+
static finalizeStyles(s8) {
|
|
147
|
+
const i9 = [];
|
|
148
|
+
if (Array.isArray(s8)) {
|
|
149
|
+
const e8 = new Set(s8.flat(1 / 0).reverse());
|
|
150
|
+
for (const s9 of e8)
|
|
151
|
+
i9.unshift(c(s9));
|
|
152
|
+
} else
|
|
153
|
+
void 0 !== s8 && i9.push(c(s8));
|
|
154
|
+
return i9;
|
|
155
|
+
}
|
|
156
|
+
static _$Eu(t6, s8) {
|
|
157
|
+
const i9 = s8.attribute;
|
|
158
|
+
return false === i9 ? void 0 : "string" == typeof i9 ? i9 : "string" == typeof t6 ? t6.toLowerCase() : void 0;
|
|
159
|
+
}
|
|
160
|
+
constructor() {
|
|
161
|
+
super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
|
|
162
|
+
}
|
|
163
|
+
_$Ev() {
|
|
164
|
+
this._$ES = new Promise((t6) => this.enableUpdating = t6), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t6) => t6(this));
|
|
165
|
+
}
|
|
166
|
+
addController(t6) {
|
|
167
|
+
(this._$EO ??= /* @__PURE__ */ new Set()).add(t6), void 0 !== this.renderRoot && this.isConnected && t6.hostConnected?.();
|
|
168
|
+
}
|
|
169
|
+
removeController(t6) {
|
|
170
|
+
this._$EO?.delete(t6);
|
|
171
|
+
}
|
|
172
|
+
_$E_() {
|
|
173
|
+
const t6 = /* @__PURE__ */ new Map(), s8 = this.constructor.elementProperties;
|
|
174
|
+
for (const i9 of s8.keys())
|
|
175
|
+
this.hasOwnProperty(i9) && (t6.set(i9, this[i9]), delete this[i9]);
|
|
176
|
+
t6.size > 0 && (this._$Ep = t6);
|
|
177
|
+
}
|
|
178
|
+
createRenderRoot() {
|
|
179
|
+
const t6 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
180
|
+
return S(t6, this.constructor.elementStyles), t6;
|
|
181
|
+
}
|
|
182
|
+
connectedCallback() {
|
|
183
|
+
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach((t6) => t6.hostConnected?.());
|
|
184
|
+
}
|
|
185
|
+
enableUpdating(t6) {
|
|
186
|
+
}
|
|
187
|
+
disconnectedCallback() {
|
|
188
|
+
this._$EO?.forEach((t6) => t6.hostDisconnected?.());
|
|
189
|
+
}
|
|
190
|
+
attributeChangedCallback(t6, s8, i9) {
|
|
191
|
+
this._$AK(t6, i9);
|
|
192
|
+
}
|
|
193
|
+
_$ET(t6, s8) {
|
|
194
|
+
const i9 = this.constructor.elementProperties.get(t6), e8 = this.constructor._$Eu(t6, i9);
|
|
195
|
+
if (void 0 !== e8 && true === i9.reflect) {
|
|
196
|
+
const h6 = (void 0 !== i9.converter?.toAttribute ? i9.converter : u).toAttribute(s8, i9.type);
|
|
197
|
+
this._$Em = t6, null == h6 ? this.removeAttribute(e8) : this.setAttribute(e8, h6), this._$Em = null;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
_$AK(t6, s8) {
|
|
201
|
+
const i9 = this.constructor, e8 = i9._$Eh.get(t6);
|
|
202
|
+
if (void 0 !== e8 && this._$Em !== e8) {
|
|
203
|
+
const t7 = i9.getPropertyOptions(e8), h6 = "function" == typeof t7.converter ? { fromAttribute: t7.converter } : void 0 !== t7.converter?.fromAttribute ? t7.converter : u;
|
|
204
|
+
this._$Em = e8;
|
|
205
|
+
const r6 = h6.fromAttribute(s8, t7.type);
|
|
206
|
+
this[e8] = r6 ?? this._$Ej?.get(e8) ?? r6, this._$Em = null;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
requestUpdate(t6, s8, i9) {
|
|
210
|
+
if (void 0 !== t6) {
|
|
211
|
+
const e8 = this.constructor, h6 = this[t6];
|
|
212
|
+
if (i9 ??= e8.getPropertyOptions(t6), !((i9.hasChanged ?? f)(h6, s8) || i9.useDefault && i9.reflect && h6 === this._$Ej?.get(t6) && !this.hasAttribute(e8._$Eu(t6, i9))))
|
|
213
|
+
return;
|
|
214
|
+
this.C(t6, s8, i9);
|
|
215
|
+
}
|
|
216
|
+
false === this.isUpdatePending && (this._$ES = this._$EP());
|
|
217
|
+
}
|
|
218
|
+
C(t6, s8, { useDefault: i9, reflect: e8, wrapped: h6 }, r6) {
|
|
219
|
+
i9 && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t6) && (this._$Ej.set(t6, r6 ?? s8 ?? this[t6]), true !== h6 || void 0 !== r6) || (this._$AL.has(t6) || (this.hasUpdated || i9 || (s8 = void 0), this._$AL.set(t6, s8)), true === e8 && this._$Em !== t6 && (this._$Eq ??= /* @__PURE__ */ new Set()).add(t6));
|
|
220
|
+
}
|
|
221
|
+
async _$EP() {
|
|
222
|
+
this.isUpdatePending = true;
|
|
223
|
+
try {
|
|
224
|
+
await this._$ES;
|
|
225
|
+
} catch (t7) {
|
|
226
|
+
Promise.reject(t7);
|
|
227
|
+
}
|
|
228
|
+
const t6 = this.scheduleUpdate();
|
|
229
|
+
return null != t6 && await t6, !this.isUpdatePending;
|
|
230
|
+
}
|
|
231
|
+
scheduleUpdate() {
|
|
232
|
+
return this.performUpdate();
|
|
233
|
+
}
|
|
234
|
+
performUpdate() {
|
|
235
|
+
if (!this.isUpdatePending)
|
|
236
|
+
return;
|
|
237
|
+
if (!this.hasUpdated) {
|
|
238
|
+
if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
|
|
239
|
+
for (const [t8, s9] of this._$Ep)
|
|
240
|
+
this[t8] = s9;
|
|
241
|
+
this._$Ep = void 0;
|
|
242
|
+
}
|
|
243
|
+
const t7 = this.constructor.elementProperties;
|
|
244
|
+
if (t7.size > 0)
|
|
245
|
+
for (const [s9, i9] of t7) {
|
|
246
|
+
const { wrapped: t8 } = i9, e8 = this[s9];
|
|
247
|
+
true !== t8 || this._$AL.has(s9) || void 0 === e8 || this.C(s9, void 0, i9, e8);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
let t6 = false;
|
|
251
|
+
const s8 = this._$AL;
|
|
252
|
+
try {
|
|
253
|
+
t6 = this.shouldUpdate(s8), t6 ? (this.willUpdate(s8), this._$EO?.forEach((t7) => t7.hostUpdate?.()), this.update(s8)) : this._$EM();
|
|
254
|
+
} catch (s9) {
|
|
255
|
+
throw t6 = false, this._$EM(), s9;
|
|
256
|
+
}
|
|
257
|
+
t6 && this._$AE(s8);
|
|
258
|
+
}
|
|
259
|
+
willUpdate(t6) {
|
|
260
|
+
}
|
|
261
|
+
_$AE(t6) {
|
|
262
|
+
this._$EO?.forEach((t7) => t7.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t6)), this.updated(t6);
|
|
263
|
+
}
|
|
264
|
+
_$EM() {
|
|
265
|
+
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
|
|
266
|
+
}
|
|
267
|
+
get updateComplete() {
|
|
268
|
+
return this.getUpdateComplete();
|
|
269
|
+
}
|
|
270
|
+
getUpdateComplete() {
|
|
271
|
+
return this._$ES;
|
|
272
|
+
}
|
|
273
|
+
shouldUpdate(t6) {
|
|
274
|
+
return true;
|
|
275
|
+
}
|
|
276
|
+
update(t6) {
|
|
277
|
+
this._$Eq &&= this._$Eq.forEach((t7) => this._$ET(t7, this[t7])), this._$EM();
|
|
278
|
+
}
|
|
279
|
+
updated(t6) {
|
|
280
|
+
}
|
|
281
|
+
firstUpdated(t6) {
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[d("elementProperties")] = /* @__PURE__ */ new Map(), y[d("finalized")] = /* @__PURE__ */ new Map(), p?.({ ReactiveElement: y }), (a.reactiveElementVersions ??= []).push("2.1.1");
|
|
285
|
+
|
|
286
|
+
// node_modules/lit-html/lit-html.js
|
|
287
|
+
var t2 = globalThis;
|
|
288
|
+
var i3 = t2.trustedTypes;
|
|
289
|
+
var s2 = i3 ? i3.createPolicy("lit-html", { createHTML: (t6) => t6 }) : void 0;
|
|
290
|
+
var e3 = "$lit$";
|
|
291
|
+
var h2 = `lit$${Math.random().toFixed(9).slice(2)}$`;
|
|
292
|
+
var o3 = "?" + h2;
|
|
293
|
+
var n3 = `<${o3}>`;
|
|
294
|
+
var r3 = document;
|
|
295
|
+
var l2 = () => r3.createComment("");
|
|
296
|
+
var c3 = (t6) => null === t6 || "object" != typeof t6 && "function" != typeof t6;
|
|
297
|
+
var a2 = Array.isArray;
|
|
298
|
+
var u2 = (t6) => a2(t6) || "function" == typeof t6?.[Symbol.iterator];
|
|
299
|
+
var d2 = "[ \n\f\r]";
|
|
300
|
+
var f2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
|
|
301
|
+
var v = /-->/g;
|
|
302
|
+
var _ = />/g;
|
|
303
|
+
var m = RegExp(`>|${d2}(?:([^\\s"'>=/]+)(${d2}*=${d2}*(?:[^
|
|
304
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g");
|
|
305
|
+
var p2 = /'/g;
|
|
306
|
+
var g = /"/g;
|
|
307
|
+
var $ = /^(?:script|style|textarea|title)$/i;
|
|
308
|
+
var y2 = (t6) => (i9, ...s8) => ({ _$litType$: t6, strings: i9, values: s8 });
|
|
309
|
+
var x = y2(1);
|
|
310
|
+
var b2 = y2(2);
|
|
311
|
+
var w = y2(3);
|
|
312
|
+
var T = Symbol.for("lit-noChange");
|
|
313
|
+
var E = Symbol.for("lit-nothing");
|
|
314
|
+
var A = /* @__PURE__ */ new WeakMap();
|
|
315
|
+
var C = r3.createTreeWalker(r3, 129);
|
|
316
|
+
function P(t6, i9) {
|
|
317
|
+
if (!a2(t6) || !t6.hasOwnProperty("raw"))
|
|
318
|
+
throw Error("invalid template strings array");
|
|
319
|
+
return void 0 !== s2 ? s2.createHTML(i9) : i9;
|
|
320
|
+
}
|
|
321
|
+
var V = (t6, i9) => {
|
|
322
|
+
const s8 = t6.length - 1, o11 = [];
|
|
323
|
+
let r6, l4 = 2 === i9 ? "<svg>" : 3 === i9 ? "<math>" : "", c8 = f2;
|
|
324
|
+
for (let i10 = 0; i10 < s8; i10++) {
|
|
325
|
+
const s9 = t6[i10];
|
|
326
|
+
let a4, u6, d3 = -1, y3 = 0;
|
|
327
|
+
for (; y3 < s9.length && (c8.lastIndex = y3, u6 = c8.exec(s9), null !== u6); )
|
|
328
|
+
y3 = c8.lastIndex, c8 === f2 ? "!--" === u6[1] ? c8 = v : void 0 !== u6[1] ? c8 = _ : void 0 !== u6[2] ? ($.test(u6[2]) && (r6 = RegExp("</" + u6[2], "g")), c8 = m) : void 0 !== u6[3] && (c8 = m) : c8 === m ? ">" === u6[0] ? (c8 = r6 ?? f2, d3 = -1) : void 0 === u6[1] ? d3 = -2 : (d3 = c8.lastIndex - u6[2].length, a4 = u6[1], c8 = void 0 === u6[3] ? m : '"' === u6[3] ? g : p2) : c8 === g || c8 === p2 ? c8 = m : c8 === v || c8 === _ ? c8 = f2 : (c8 = m, r6 = void 0);
|
|
329
|
+
const x2 = c8 === m && t6[i10 + 1].startsWith("/>") ? " " : "";
|
|
330
|
+
l4 += c8 === f2 ? s9 + n3 : d3 >= 0 ? (o11.push(a4), s9.slice(0, d3) + e3 + s9.slice(d3) + h2 + x2) : s9 + h2 + (-2 === d3 ? i10 : x2);
|
|
331
|
+
}
|
|
332
|
+
return [P(t6, l4 + (t6[s8] || "<?>") + (2 === i9 ? "</svg>" : 3 === i9 ? "</math>" : "")), o11];
|
|
333
|
+
};
|
|
334
|
+
var N = class _N {
|
|
335
|
+
constructor({ strings: t6, _$litType$: s8 }, n8) {
|
|
336
|
+
let r6;
|
|
337
|
+
this.parts = [];
|
|
338
|
+
let c8 = 0, a4 = 0;
|
|
339
|
+
const u6 = t6.length - 1, d3 = this.parts, [f5, v3] = V(t6, s8);
|
|
340
|
+
if (this.el = _N.createElement(f5, n8), C.currentNode = this.el.content, 2 === s8 || 3 === s8) {
|
|
341
|
+
const t7 = this.el.content.firstChild;
|
|
342
|
+
t7.replaceWith(...t7.childNodes);
|
|
343
|
+
}
|
|
344
|
+
for (; null !== (r6 = C.nextNode()) && d3.length < u6; ) {
|
|
345
|
+
if (1 === r6.nodeType) {
|
|
346
|
+
if (r6.hasAttributes())
|
|
347
|
+
for (const t7 of r6.getAttributeNames())
|
|
348
|
+
if (t7.endsWith(e3)) {
|
|
349
|
+
const i9 = v3[a4++], s9 = r6.getAttribute(t7).split(h2), e8 = /([.?@])?(.*)/.exec(i9);
|
|
350
|
+
d3.push({ type: 1, index: c8, name: e8[2], strings: s9, ctor: "." === e8[1] ? H : "?" === e8[1] ? I : "@" === e8[1] ? L : k }), r6.removeAttribute(t7);
|
|
351
|
+
} else
|
|
352
|
+
t7.startsWith(h2) && (d3.push({ type: 6, index: c8 }), r6.removeAttribute(t7));
|
|
353
|
+
if ($.test(r6.tagName)) {
|
|
354
|
+
const t7 = r6.textContent.split(h2), s9 = t7.length - 1;
|
|
355
|
+
if (s9 > 0) {
|
|
356
|
+
r6.textContent = i3 ? i3.emptyScript : "";
|
|
357
|
+
for (let i9 = 0; i9 < s9; i9++)
|
|
358
|
+
r6.append(t7[i9], l2()), C.nextNode(), d3.push({ type: 2, index: ++c8 });
|
|
359
|
+
r6.append(t7[s9], l2());
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
} else if (8 === r6.nodeType)
|
|
363
|
+
if (r6.data === o3)
|
|
364
|
+
d3.push({ type: 2, index: c8 });
|
|
365
|
+
else {
|
|
366
|
+
let t7 = -1;
|
|
367
|
+
for (; -1 !== (t7 = r6.data.indexOf(h2, t7 + 1)); )
|
|
368
|
+
d3.push({ type: 7, index: c8 }), t7 += h2.length - 1;
|
|
369
|
+
}
|
|
370
|
+
c8++;
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
static createElement(t6, i9) {
|
|
374
|
+
const s8 = r3.createElement("template");
|
|
375
|
+
return s8.innerHTML = t6, s8;
|
|
376
|
+
}
|
|
377
|
+
};
|
|
378
|
+
function S2(t6, i9, s8 = t6, e8) {
|
|
379
|
+
if (i9 === T)
|
|
380
|
+
return i9;
|
|
381
|
+
let h6 = void 0 !== e8 ? s8._$Co?.[e8] : s8._$Cl;
|
|
382
|
+
const o11 = c3(i9) ? void 0 : i9._$litDirective$;
|
|
383
|
+
return h6?.constructor !== o11 && (h6?._$AO?.(false), void 0 === o11 ? h6 = void 0 : (h6 = new o11(t6), h6._$AT(t6, s8, e8)), void 0 !== e8 ? (s8._$Co ??= [])[e8] = h6 : s8._$Cl = h6), void 0 !== h6 && (i9 = S2(t6, h6._$AS(t6, i9.values), h6, e8)), i9;
|
|
384
|
+
}
|
|
385
|
+
var M = class {
|
|
386
|
+
constructor(t6, i9) {
|
|
387
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t6, this._$AM = i9;
|
|
388
|
+
}
|
|
389
|
+
get parentNode() {
|
|
390
|
+
return this._$AM.parentNode;
|
|
391
|
+
}
|
|
392
|
+
get _$AU() {
|
|
393
|
+
return this._$AM._$AU;
|
|
394
|
+
}
|
|
395
|
+
u(t6) {
|
|
396
|
+
const { el: { content: i9 }, parts: s8 } = this._$AD, e8 = (t6?.creationScope ?? r3).importNode(i9, true);
|
|
397
|
+
C.currentNode = e8;
|
|
398
|
+
let h6 = C.nextNode(), o11 = 0, n8 = 0, l4 = s8[0];
|
|
399
|
+
for (; void 0 !== l4; ) {
|
|
400
|
+
if (o11 === l4.index) {
|
|
401
|
+
let i10;
|
|
402
|
+
2 === l4.type ? i10 = new R(h6, h6.nextSibling, this, t6) : 1 === l4.type ? i10 = new l4.ctor(h6, l4.name, l4.strings, this, t6) : 6 === l4.type && (i10 = new z(h6, this, t6)), this._$AV.push(i10), l4 = s8[++n8];
|
|
403
|
+
}
|
|
404
|
+
o11 !== l4?.index && (h6 = C.nextNode(), o11++);
|
|
405
|
+
}
|
|
406
|
+
return C.currentNode = r3, e8;
|
|
407
|
+
}
|
|
408
|
+
p(t6) {
|
|
409
|
+
let i9 = 0;
|
|
410
|
+
for (const s8 of this._$AV)
|
|
411
|
+
void 0 !== s8 && (void 0 !== s8.strings ? (s8._$AI(t6, s8, i9), i9 += s8.strings.length - 2) : s8._$AI(t6[i9])), i9++;
|
|
412
|
+
}
|
|
413
|
+
};
|
|
414
|
+
var R = class _R {
|
|
415
|
+
get _$AU() {
|
|
416
|
+
return this._$AM?._$AU ?? this._$Cv;
|
|
417
|
+
}
|
|
418
|
+
constructor(t6, i9, s8, e8) {
|
|
419
|
+
this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t6, this._$AB = i9, this._$AM = s8, this.options = e8, this._$Cv = e8?.isConnected ?? true;
|
|
420
|
+
}
|
|
421
|
+
get parentNode() {
|
|
422
|
+
let t6 = this._$AA.parentNode;
|
|
423
|
+
const i9 = this._$AM;
|
|
424
|
+
return void 0 !== i9 && 11 === t6?.nodeType && (t6 = i9.parentNode), t6;
|
|
425
|
+
}
|
|
426
|
+
get startNode() {
|
|
427
|
+
return this._$AA;
|
|
428
|
+
}
|
|
429
|
+
get endNode() {
|
|
430
|
+
return this._$AB;
|
|
431
|
+
}
|
|
432
|
+
_$AI(t6, i9 = this) {
|
|
433
|
+
t6 = S2(this, t6, i9), c3(t6) ? t6 === E || null == t6 || "" === t6 ? (this._$AH !== E && this._$AR(), this._$AH = E) : t6 !== this._$AH && t6 !== T && this._(t6) : void 0 !== t6._$litType$ ? this.$(t6) : void 0 !== t6.nodeType ? this.T(t6) : u2(t6) ? this.k(t6) : this._(t6);
|
|
434
|
+
}
|
|
435
|
+
O(t6) {
|
|
436
|
+
return this._$AA.parentNode.insertBefore(t6, this._$AB);
|
|
437
|
+
}
|
|
438
|
+
T(t6) {
|
|
439
|
+
this._$AH !== t6 && (this._$AR(), this._$AH = this.O(t6));
|
|
440
|
+
}
|
|
441
|
+
_(t6) {
|
|
442
|
+
this._$AH !== E && c3(this._$AH) ? this._$AA.nextSibling.data = t6 : this.T(r3.createTextNode(t6)), this._$AH = t6;
|
|
443
|
+
}
|
|
444
|
+
$(t6) {
|
|
445
|
+
const { values: i9, _$litType$: s8 } = t6, e8 = "number" == typeof s8 ? this._$AC(t6) : (void 0 === s8.el && (s8.el = N.createElement(P(s8.h, s8.h[0]), this.options)), s8);
|
|
446
|
+
if (this._$AH?._$AD === e8)
|
|
447
|
+
this._$AH.p(i9);
|
|
448
|
+
else {
|
|
449
|
+
const t7 = new M(e8, this), s9 = t7.u(this.options);
|
|
450
|
+
t7.p(i9), this.T(s9), this._$AH = t7;
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
_$AC(t6) {
|
|
454
|
+
let i9 = A.get(t6.strings);
|
|
455
|
+
return void 0 === i9 && A.set(t6.strings, i9 = new N(t6)), i9;
|
|
456
|
+
}
|
|
457
|
+
k(t6) {
|
|
458
|
+
a2(this._$AH) || (this._$AH = [], this._$AR());
|
|
459
|
+
const i9 = this._$AH;
|
|
460
|
+
let s8, e8 = 0;
|
|
461
|
+
for (const h6 of t6)
|
|
462
|
+
e8 === i9.length ? i9.push(s8 = new _R(this.O(l2()), this.O(l2()), this, this.options)) : s8 = i9[e8], s8._$AI(h6), e8++;
|
|
463
|
+
e8 < i9.length && (this._$AR(s8 && s8._$AB.nextSibling, e8), i9.length = e8);
|
|
464
|
+
}
|
|
465
|
+
_$AR(t6 = this._$AA.nextSibling, i9) {
|
|
466
|
+
for (this._$AP?.(false, true, i9); t6 !== this._$AB; ) {
|
|
467
|
+
const i10 = t6.nextSibling;
|
|
468
|
+
t6.remove(), t6 = i10;
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
setConnected(t6) {
|
|
472
|
+
void 0 === this._$AM && (this._$Cv = t6, this._$AP?.(t6));
|
|
473
|
+
}
|
|
474
|
+
};
|
|
475
|
+
var k = class {
|
|
476
|
+
get tagName() {
|
|
477
|
+
return this.element.tagName;
|
|
478
|
+
}
|
|
479
|
+
get _$AU() {
|
|
480
|
+
return this._$AM._$AU;
|
|
481
|
+
}
|
|
482
|
+
constructor(t6, i9, s8, e8, h6) {
|
|
483
|
+
this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t6, this.name = i9, this._$AM = e8, this.options = h6, s8.length > 2 || "" !== s8[0] || "" !== s8[1] ? (this._$AH = Array(s8.length - 1).fill(new String()), this.strings = s8) : this._$AH = E;
|
|
484
|
+
}
|
|
485
|
+
_$AI(t6, i9 = this, s8, e8) {
|
|
486
|
+
const h6 = this.strings;
|
|
487
|
+
let o11 = false;
|
|
488
|
+
if (void 0 === h6)
|
|
489
|
+
t6 = S2(this, t6, i9, 0), o11 = !c3(t6) || t6 !== this._$AH && t6 !== T, o11 && (this._$AH = t6);
|
|
490
|
+
else {
|
|
491
|
+
const e9 = t6;
|
|
492
|
+
let n8, r6;
|
|
493
|
+
for (t6 = h6[0], n8 = 0; n8 < h6.length - 1; n8++)
|
|
494
|
+
r6 = S2(this, e9[s8 + n8], i9, n8), r6 === T && (r6 = this._$AH[n8]), o11 ||= !c3(r6) || r6 !== this._$AH[n8], r6 === E ? t6 = E : t6 !== E && (t6 += (r6 ?? "") + h6[n8 + 1]), this._$AH[n8] = r6;
|
|
495
|
+
}
|
|
496
|
+
o11 && !e8 && this.j(t6);
|
|
497
|
+
}
|
|
498
|
+
j(t6) {
|
|
499
|
+
t6 === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t6 ?? "");
|
|
500
|
+
}
|
|
501
|
+
};
|
|
502
|
+
var H = class extends k {
|
|
503
|
+
constructor() {
|
|
504
|
+
super(...arguments), this.type = 3;
|
|
505
|
+
}
|
|
506
|
+
j(t6) {
|
|
507
|
+
this.element[this.name] = t6 === E ? void 0 : t6;
|
|
508
|
+
}
|
|
509
|
+
};
|
|
510
|
+
var I = class extends k {
|
|
511
|
+
constructor() {
|
|
512
|
+
super(...arguments), this.type = 4;
|
|
513
|
+
}
|
|
514
|
+
j(t6) {
|
|
515
|
+
this.element.toggleAttribute(this.name, !!t6 && t6 !== E);
|
|
516
|
+
}
|
|
517
|
+
};
|
|
518
|
+
var L = class extends k {
|
|
519
|
+
constructor(t6, i9, s8, e8, h6) {
|
|
520
|
+
super(t6, i9, s8, e8, h6), this.type = 5;
|
|
521
|
+
}
|
|
522
|
+
_$AI(t6, i9 = this) {
|
|
523
|
+
if ((t6 = S2(this, t6, i9, 0) ?? E) === T)
|
|
524
|
+
return;
|
|
525
|
+
const s8 = this._$AH, e8 = t6 === E && s8 !== E || t6.capture !== s8.capture || t6.once !== s8.once || t6.passive !== s8.passive, h6 = t6 !== E && (s8 === E || e8);
|
|
526
|
+
e8 && this.element.removeEventListener(this.name, this, s8), h6 && this.element.addEventListener(this.name, this, t6), this._$AH = t6;
|
|
527
|
+
}
|
|
528
|
+
handleEvent(t6) {
|
|
529
|
+
"function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t6) : this._$AH.handleEvent(t6);
|
|
530
|
+
}
|
|
531
|
+
};
|
|
532
|
+
var z = class {
|
|
533
|
+
constructor(t6, i9, s8) {
|
|
534
|
+
this.element = t6, this.type = 6, this._$AN = void 0, this._$AM = i9, this.options = s8;
|
|
535
|
+
}
|
|
536
|
+
get _$AU() {
|
|
537
|
+
return this._$AM._$AU;
|
|
538
|
+
}
|
|
539
|
+
_$AI(t6) {
|
|
540
|
+
S2(this, t6);
|
|
541
|
+
}
|
|
542
|
+
};
|
|
543
|
+
var Z = { M: e3, P: h2, A: o3, C: 1, L: V, R: M, D: u2, V: S2, I: R, H: k, N: I, U: L, B: H, F: z };
|
|
544
|
+
var j = t2.litHtmlPolyfillSupport;
|
|
545
|
+
j?.(N, R), (t2.litHtmlVersions ??= []).push("3.3.1");
|
|
546
|
+
var B = (t6, i9, s8) => {
|
|
547
|
+
const e8 = s8?.renderBefore ?? i9;
|
|
548
|
+
let h6 = e8._$litPart$;
|
|
549
|
+
if (void 0 === h6) {
|
|
550
|
+
const t7 = s8?.renderBefore ?? null;
|
|
551
|
+
e8._$litPart$ = h6 = new R(i9.insertBefore(l2(), t7), t7, void 0, s8 ?? {});
|
|
552
|
+
}
|
|
553
|
+
return h6._$AI(t6), h6;
|
|
554
|
+
};
|
|
555
|
+
|
|
556
|
+
// node_modules/lit-element/lit-element.js
|
|
557
|
+
var s3 = globalThis;
|
|
558
|
+
var i4 = class extends y {
|
|
559
|
+
constructor() {
|
|
560
|
+
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
561
|
+
}
|
|
562
|
+
createRenderRoot() {
|
|
563
|
+
const t6 = super.createRenderRoot();
|
|
564
|
+
return this.renderOptions.renderBefore ??= t6.firstChild, t6;
|
|
565
|
+
}
|
|
566
|
+
update(t6) {
|
|
567
|
+
const r6 = this.render();
|
|
568
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t6), this._$Do = B(r6, this.renderRoot, this.renderOptions);
|
|
569
|
+
}
|
|
570
|
+
connectedCallback() {
|
|
571
|
+
super.connectedCallback(), this._$Do?.setConnected(true);
|
|
572
|
+
}
|
|
573
|
+
disconnectedCallback() {
|
|
574
|
+
super.disconnectedCallback(), this._$Do?.setConnected(false);
|
|
575
|
+
}
|
|
576
|
+
render() {
|
|
577
|
+
return T;
|
|
578
|
+
}
|
|
579
|
+
};
|
|
580
|
+
i4._$litElement$ = true, i4["finalized"] = true, s3.litElementHydrateSupport?.({ LitElement: i4 });
|
|
581
|
+
var o4 = s3.litElementPolyfillSupport;
|
|
582
|
+
o4?.({ LitElement: i4 });
|
|
583
|
+
(s3.litElementVersions ??= []).push("4.2.1");
|
|
584
|
+
|
|
585
|
+
// node_modules/lit-html/directive.js
|
|
586
|
+
var t3 = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 };
|
|
587
|
+
var e4 = (t6) => (...e8) => ({ _$litDirective$: t6, values: e8 });
|
|
588
|
+
var i5 = class {
|
|
589
|
+
constructor(t6) {
|
|
590
|
+
}
|
|
591
|
+
get _$AU() {
|
|
592
|
+
return this._$AM._$AU;
|
|
593
|
+
}
|
|
594
|
+
_$AT(t6, e8, i9) {
|
|
595
|
+
this._$Ct = t6, this._$AM = e8, this._$Ci = i9;
|
|
596
|
+
}
|
|
597
|
+
_$AS(t6, e8) {
|
|
598
|
+
return this.update(t6, e8);
|
|
599
|
+
}
|
|
600
|
+
update(t6, e8) {
|
|
601
|
+
return this.render(...e8);
|
|
602
|
+
}
|
|
603
|
+
};
|
|
604
|
+
|
|
605
|
+
// node_modules/lit-html/directive-helpers.js
|
|
606
|
+
var { I: t4 } = Z;
|
|
607
|
+
var i6 = (o11) => null === o11 || "object" != typeof o11 && "function" != typeof o11;
|
|
608
|
+
var f3 = (o11) => void 0 === o11.strings;
|
|
609
|
+
var r4 = () => document.createComment("");
|
|
610
|
+
var s4 = (o11, i9, n8) => {
|
|
611
|
+
const e8 = o11._$AA.parentNode, l4 = void 0 === i9 ? o11._$AB : i9._$AA;
|
|
612
|
+
if (void 0 === n8) {
|
|
613
|
+
const i10 = e8.insertBefore(r4(), l4), d3 = e8.insertBefore(r4(), l4);
|
|
614
|
+
n8 = new t4(i10, d3, o11, o11.options);
|
|
615
|
+
} else {
|
|
616
|
+
const t6 = n8._$AB.nextSibling, i10 = n8._$AM, d3 = i10 !== o11;
|
|
617
|
+
if (d3) {
|
|
618
|
+
let t7;
|
|
619
|
+
n8._$AQ?.(o11), n8._$AM = o11, void 0 !== n8._$AP && (t7 = o11._$AU) !== i10._$AU && n8._$AP(t7);
|
|
620
|
+
}
|
|
621
|
+
if (t6 !== l4 || d3) {
|
|
622
|
+
let o12 = n8._$AA;
|
|
623
|
+
for (; o12 !== t6; ) {
|
|
624
|
+
const t7 = o12.nextSibling;
|
|
625
|
+
e8.insertBefore(o12, l4), o12 = t7;
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
return n8;
|
|
630
|
+
};
|
|
631
|
+
var v2 = (o11, t6, i9 = o11) => (o11._$AI(t6, i9), o11);
|
|
632
|
+
var u3 = {};
|
|
633
|
+
var m2 = (o11, t6 = u3) => o11._$AH = t6;
|
|
634
|
+
var p3 = (o11) => o11._$AH;
|
|
635
|
+
var M2 = (o11) => {
|
|
636
|
+
o11._$AR(), o11._$AA.remove();
|
|
637
|
+
};
|
|
638
|
+
|
|
639
|
+
// node_modules/lit-html/directives/repeat.js
|
|
640
|
+
var u4 = (e8, s8, t6) => {
|
|
641
|
+
const r6 = /* @__PURE__ */ new Map();
|
|
642
|
+
for (let l4 = s8; l4 <= t6; l4++)
|
|
643
|
+
r6.set(e8[l4], l4);
|
|
644
|
+
return r6;
|
|
645
|
+
};
|
|
646
|
+
var c4 = e4(class extends i5 {
|
|
647
|
+
constructor(e8) {
|
|
648
|
+
if (super(e8), e8.type !== t3.CHILD)
|
|
649
|
+
throw Error("repeat() can only be used in text expressions");
|
|
650
|
+
}
|
|
651
|
+
dt(e8, s8, t6) {
|
|
652
|
+
let r6;
|
|
653
|
+
void 0 === t6 ? t6 = s8 : void 0 !== s8 && (r6 = s8);
|
|
654
|
+
const l4 = [], o11 = [];
|
|
655
|
+
let i9 = 0;
|
|
656
|
+
for (const s9 of e8)
|
|
657
|
+
l4[i9] = r6 ? r6(s9, i9) : i9, o11[i9] = t6(s9, i9), i9++;
|
|
658
|
+
return { values: o11, keys: l4 };
|
|
659
|
+
}
|
|
660
|
+
render(e8, s8, t6) {
|
|
661
|
+
return this.dt(e8, s8, t6).values;
|
|
662
|
+
}
|
|
663
|
+
update(s8, [t6, r6, c8]) {
|
|
664
|
+
const d3 = p3(s8), { values: p4, keys: a4 } = this.dt(t6, r6, c8);
|
|
665
|
+
if (!Array.isArray(d3))
|
|
666
|
+
return this.ut = a4, p4;
|
|
667
|
+
const h6 = this.ut ??= [], v3 = [];
|
|
668
|
+
let m4, y3, x2 = 0, j2 = d3.length - 1, k2 = 0, w2 = p4.length - 1;
|
|
669
|
+
for (; x2 <= j2 && k2 <= w2; )
|
|
670
|
+
if (null === d3[x2])
|
|
671
|
+
x2++;
|
|
672
|
+
else if (null === d3[j2])
|
|
673
|
+
j2--;
|
|
674
|
+
else if (h6[x2] === a4[k2])
|
|
675
|
+
v3[k2] = v2(d3[x2], p4[k2]), x2++, k2++;
|
|
676
|
+
else if (h6[j2] === a4[w2])
|
|
677
|
+
v3[w2] = v2(d3[j2], p4[w2]), j2--, w2--;
|
|
678
|
+
else if (h6[x2] === a4[w2])
|
|
679
|
+
v3[w2] = v2(d3[x2], p4[w2]), s4(s8, v3[w2 + 1], d3[x2]), x2++, w2--;
|
|
680
|
+
else if (h6[j2] === a4[k2])
|
|
681
|
+
v3[k2] = v2(d3[j2], p4[k2]), s4(s8, d3[x2], d3[j2]), j2--, k2++;
|
|
682
|
+
else if (void 0 === m4 && (m4 = u4(a4, k2, w2), y3 = u4(h6, x2, j2)), m4.has(h6[x2]))
|
|
683
|
+
if (m4.has(h6[j2])) {
|
|
684
|
+
const e8 = y3.get(a4[k2]), t7 = void 0 !== e8 ? d3[e8] : null;
|
|
685
|
+
if (null === t7) {
|
|
686
|
+
const e9 = s4(s8, d3[x2]);
|
|
687
|
+
v2(e9, p4[k2]), v3[k2] = e9;
|
|
688
|
+
} else
|
|
689
|
+
v3[k2] = v2(t7, p4[k2]), s4(s8, d3[x2], t7), d3[e8] = null;
|
|
690
|
+
k2++;
|
|
691
|
+
} else
|
|
692
|
+
M2(d3[j2]), j2--;
|
|
693
|
+
else
|
|
694
|
+
M2(d3[x2]), x2++;
|
|
695
|
+
for (; k2 <= w2; ) {
|
|
696
|
+
const e8 = s4(s8, v3[w2 + 1]);
|
|
697
|
+
v2(e8, p4[k2]), v3[k2++] = e8;
|
|
698
|
+
}
|
|
699
|
+
for (; x2 <= j2; ) {
|
|
700
|
+
const e8 = d3[x2++];
|
|
701
|
+
null !== e8 && M2(e8);
|
|
702
|
+
}
|
|
703
|
+
return this.ut = a4, m2(s8, v3), T;
|
|
704
|
+
}
|
|
705
|
+
});
|
|
706
|
+
|
|
707
|
+
// node_modules/lit-html/directives/keyed.js
|
|
708
|
+
var i7 = e4(class extends i5 {
|
|
709
|
+
constructor() {
|
|
710
|
+
super(...arguments), this.key = E;
|
|
711
|
+
}
|
|
712
|
+
render(r6, t6) {
|
|
713
|
+
return this.key = r6, t6;
|
|
714
|
+
}
|
|
715
|
+
update(r6, [t6, e8]) {
|
|
716
|
+
return t6 !== this.key && (m2(r6), this.key = t6), e8;
|
|
717
|
+
}
|
|
718
|
+
});
|
|
719
|
+
|
|
720
|
+
// node_modules/lit-html/directives/class-map.js
|
|
721
|
+
var e5 = e4(class extends i5 {
|
|
722
|
+
constructor(t6) {
|
|
723
|
+
if (super(t6), t6.type !== t3.ATTRIBUTE || "class" !== t6.name || t6.strings?.length > 2)
|
|
724
|
+
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
725
|
+
}
|
|
726
|
+
render(t6) {
|
|
727
|
+
return " " + Object.keys(t6).filter((s8) => t6[s8]).join(" ") + " ";
|
|
728
|
+
}
|
|
729
|
+
update(s8, [i9]) {
|
|
730
|
+
if (void 0 === this.st) {
|
|
731
|
+
this.st = /* @__PURE__ */ new Set(), void 0 !== s8.strings && (this.nt = new Set(s8.strings.join(" ").split(/\s/).filter((t6) => "" !== t6)));
|
|
732
|
+
for (const t6 in i9)
|
|
733
|
+
i9[t6] && !this.nt?.has(t6) && this.st.add(t6);
|
|
734
|
+
return this.render(i9);
|
|
735
|
+
}
|
|
736
|
+
const r6 = s8.element.classList;
|
|
737
|
+
for (const t6 of this.st)
|
|
738
|
+
t6 in i9 || (r6.remove(t6), this.st.delete(t6));
|
|
739
|
+
for (const t6 in i9) {
|
|
740
|
+
const s9 = !!i9[t6];
|
|
741
|
+
s9 === this.st.has(t6) || this.nt?.has(t6) || (s9 ? (r6.add(t6), this.st.add(t6)) : (r6.remove(t6), this.st.delete(t6)));
|
|
742
|
+
}
|
|
743
|
+
return T;
|
|
744
|
+
}
|
|
745
|
+
});
|
|
746
|
+
|
|
747
|
+
// node_modules/lit-html/async-directive.js
|
|
748
|
+
var s5 = (i9, t6) => {
|
|
749
|
+
const e8 = i9._$AN;
|
|
750
|
+
if (void 0 === e8)
|
|
751
|
+
return false;
|
|
752
|
+
for (const i10 of e8)
|
|
753
|
+
i10._$AO?.(t6, false), s5(i10, t6);
|
|
754
|
+
return true;
|
|
755
|
+
};
|
|
756
|
+
var o5 = (i9) => {
|
|
757
|
+
let t6, e8;
|
|
758
|
+
do {
|
|
759
|
+
if (void 0 === (t6 = i9._$AM))
|
|
760
|
+
break;
|
|
761
|
+
e8 = t6._$AN, e8.delete(i9), i9 = t6;
|
|
762
|
+
} while (0 === e8?.size);
|
|
763
|
+
};
|
|
764
|
+
var r5 = (i9) => {
|
|
765
|
+
for (let t6; t6 = i9._$AM; i9 = t6) {
|
|
766
|
+
let e8 = t6._$AN;
|
|
767
|
+
if (void 0 === e8)
|
|
768
|
+
t6._$AN = e8 = /* @__PURE__ */ new Set();
|
|
769
|
+
else if (e8.has(i9))
|
|
770
|
+
break;
|
|
771
|
+
e8.add(i9), c5(t6);
|
|
772
|
+
}
|
|
773
|
+
};
|
|
774
|
+
function h3(i9) {
|
|
775
|
+
void 0 !== this._$AN ? (o5(this), this._$AM = i9, r5(this)) : this._$AM = i9;
|
|
776
|
+
}
|
|
777
|
+
function n4(i9, t6 = false, e8 = 0) {
|
|
778
|
+
const r6 = this._$AH, h6 = this._$AN;
|
|
779
|
+
if (void 0 !== h6 && 0 !== h6.size)
|
|
780
|
+
if (t6)
|
|
781
|
+
if (Array.isArray(r6))
|
|
782
|
+
for (let i10 = e8; i10 < r6.length; i10++)
|
|
783
|
+
s5(r6[i10], false), o5(r6[i10]);
|
|
784
|
+
else
|
|
785
|
+
null != r6 && (s5(r6, false), o5(r6));
|
|
786
|
+
else
|
|
787
|
+
s5(this, i9);
|
|
788
|
+
}
|
|
789
|
+
var c5 = (i9) => {
|
|
790
|
+
i9.type == t3.CHILD && (i9._$AP ??= n4, i9._$AQ ??= h3);
|
|
791
|
+
};
|
|
792
|
+
var f4 = class extends i5 {
|
|
793
|
+
constructor() {
|
|
794
|
+
super(...arguments), this._$AN = void 0;
|
|
795
|
+
}
|
|
796
|
+
_$AT(i9, t6, e8) {
|
|
797
|
+
super._$AT(i9, t6, e8), r5(this), this.isConnected = i9._$AU;
|
|
798
|
+
}
|
|
799
|
+
_$AO(i9, t6 = true) {
|
|
800
|
+
i9 !== this.isConnected && (this.isConnected = i9, i9 ? this.reconnected?.() : this.disconnected?.()), t6 && (s5(this, i9), o5(this));
|
|
801
|
+
}
|
|
802
|
+
setValue(t6) {
|
|
803
|
+
if (f3(this._$Ct))
|
|
804
|
+
this._$Ct._$AI(t6, this);
|
|
805
|
+
else {
|
|
806
|
+
const i9 = [...this._$Ct._$AH];
|
|
807
|
+
i9[this._$Ci] = t6, this._$Ct._$AI(i9, this, 0);
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
disconnected() {
|
|
811
|
+
}
|
|
812
|
+
reconnected() {
|
|
813
|
+
}
|
|
814
|
+
};
|
|
815
|
+
|
|
816
|
+
// node_modules/lit-html/directives/ref.js
|
|
817
|
+
var e6 = () => new h4();
|
|
818
|
+
var h4 = class {
|
|
819
|
+
};
|
|
820
|
+
var o6 = /* @__PURE__ */ new WeakMap();
|
|
821
|
+
var n5 = e4(class extends f4 {
|
|
822
|
+
render(i9) {
|
|
823
|
+
return E;
|
|
824
|
+
}
|
|
825
|
+
update(i9, [s8]) {
|
|
826
|
+
const e8 = s8 !== this.G;
|
|
827
|
+
return e8 && void 0 !== this.G && this.rt(void 0), (e8 || this.lt !== this.ct) && (this.G = s8, this.ht = i9.options?.host, this.rt(this.ct = i9.element)), E;
|
|
828
|
+
}
|
|
829
|
+
rt(t6) {
|
|
830
|
+
if (this.isConnected || (t6 = void 0), "function" == typeof this.G) {
|
|
831
|
+
const i9 = this.ht ?? globalThis;
|
|
832
|
+
let s8 = o6.get(i9);
|
|
833
|
+
void 0 === s8 && (s8 = /* @__PURE__ */ new WeakMap(), o6.set(i9, s8)), void 0 !== s8.get(this.G) && this.G.call(this.ht, void 0), s8.set(this.G, t6), void 0 !== t6 && this.G.call(this.ht, t6);
|
|
834
|
+
} else
|
|
835
|
+
this.G.value = t6;
|
|
836
|
+
}
|
|
837
|
+
get lt() {
|
|
838
|
+
return "function" == typeof this.G ? o6.get(this.ht ?? globalThis)?.get(this.G) : this.G?.value;
|
|
839
|
+
}
|
|
840
|
+
disconnected() {
|
|
841
|
+
this.lt === this.ct && this.rt(void 0);
|
|
842
|
+
}
|
|
843
|
+
reconnected() {
|
|
844
|
+
this.rt(this.ct);
|
|
845
|
+
}
|
|
846
|
+
});
|
|
847
|
+
|
|
848
|
+
// node_modules/lit-html/directives/if-defined.js
|
|
849
|
+
var o7 = (o11) => o11 ?? E;
|
|
850
|
+
|
|
851
|
+
// node_modules/lit-html/directives/private-async-helpers.js
|
|
852
|
+
var s6 = class {
|
|
853
|
+
constructor(t6) {
|
|
854
|
+
this.G = t6;
|
|
855
|
+
}
|
|
856
|
+
disconnect() {
|
|
857
|
+
this.G = void 0;
|
|
858
|
+
}
|
|
859
|
+
reconnect(t6) {
|
|
860
|
+
this.G = t6;
|
|
861
|
+
}
|
|
862
|
+
deref() {
|
|
863
|
+
return this.G;
|
|
864
|
+
}
|
|
865
|
+
};
|
|
866
|
+
var i8 = class {
|
|
867
|
+
constructor() {
|
|
868
|
+
this.Y = void 0, this.Z = void 0;
|
|
869
|
+
}
|
|
870
|
+
get() {
|
|
871
|
+
return this.Y;
|
|
872
|
+
}
|
|
873
|
+
pause() {
|
|
874
|
+
this.Y ??= new Promise((t6) => this.Z = t6);
|
|
875
|
+
}
|
|
876
|
+
resume() {
|
|
877
|
+
this.Z?.(), this.Y = this.Z = void 0;
|
|
878
|
+
}
|
|
879
|
+
};
|
|
880
|
+
|
|
881
|
+
// node_modules/lit-html/directives/until.js
|
|
882
|
+
var n6 = (t6) => !i6(t6) && "function" == typeof t6.then;
|
|
883
|
+
var h5 = 1073741823;
|
|
884
|
+
var c6 = class extends f4 {
|
|
885
|
+
constructor() {
|
|
886
|
+
super(...arguments), this._$Cwt = h5, this._$Cbt = [], this._$CK = new s6(this), this._$CX = new i8();
|
|
887
|
+
}
|
|
888
|
+
render(...s8) {
|
|
889
|
+
return s8.find((t6) => !n6(t6)) ?? T;
|
|
890
|
+
}
|
|
891
|
+
update(s8, i9) {
|
|
892
|
+
const e8 = this._$Cbt;
|
|
893
|
+
let r6 = e8.length;
|
|
894
|
+
this._$Cbt = i9;
|
|
895
|
+
const o11 = this._$CK, c8 = this._$CX;
|
|
896
|
+
this.isConnected || this.disconnected();
|
|
897
|
+
for (let t6 = 0; t6 < i9.length && !(t6 > this._$Cwt); t6++) {
|
|
898
|
+
const s9 = i9[t6];
|
|
899
|
+
if (!n6(s9))
|
|
900
|
+
return this._$Cwt = t6, s9;
|
|
901
|
+
t6 < r6 && s9 === e8[t6] || (this._$Cwt = h5, r6 = 0, Promise.resolve(s9).then(async (t7) => {
|
|
902
|
+
for (; c8.get(); )
|
|
903
|
+
await c8.get();
|
|
904
|
+
const i10 = o11.deref();
|
|
905
|
+
if (void 0 !== i10) {
|
|
906
|
+
const e9 = i10._$Cbt.indexOf(s9);
|
|
907
|
+
e9 > -1 && e9 < i10._$Cwt && (i10._$Cwt = e9, i10.setValue(t7));
|
|
908
|
+
}
|
|
909
|
+
}));
|
|
910
|
+
}
|
|
911
|
+
return T;
|
|
912
|
+
}
|
|
913
|
+
disconnected() {
|
|
914
|
+
this._$CK.disconnect(), this._$CX.pause();
|
|
915
|
+
}
|
|
916
|
+
reconnected() {
|
|
917
|
+
this._$CK.reconnect(this), this._$CX.resume();
|
|
918
|
+
}
|
|
919
|
+
};
|
|
920
|
+
var m3 = e4(c6);
|
|
921
|
+
|
|
922
|
+
// node_modules/lit-html/directives/unsafe-html.js
|
|
923
|
+
var e7 = class extends i5 {
|
|
924
|
+
constructor(i9) {
|
|
925
|
+
if (super(i9), this.it = E, i9.type !== t3.CHILD)
|
|
926
|
+
throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
927
|
+
}
|
|
928
|
+
render(r6) {
|
|
929
|
+
if (r6 === E || null == r6)
|
|
930
|
+
return this._t = void 0, this.it = r6;
|
|
931
|
+
if (r6 === T)
|
|
932
|
+
return r6;
|
|
933
|
+
if ("string" != typeof r6)
|
|
934
|
+
throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
935
|
+
if (r6 === this.it)
|
|
936
|
+
return this._t;
|
|
937
|
+
this.it = r6;
|
|
938
|
+
const s8 = [r6];
|
|
939
|
+
return s8.raw = s8, this._t = { _$litType$: this.constructor.resultType, strings: s8, values: [] };
|
|
940
|
+
}
|
|
941
|
+
};
|
|
942
|
+
e7.directiveName = "unsafeHTML", e7.resultType = 1;
|
|
943
|
+
var o8 = e4(e7);
|
|
944
|
+
|
|
945
|
+
// node_modules/lit-html/directives/unsafe-svg.js
|
|
946
|
+
var t5 = class extends e7 {
|
|
947
|
+
};
|
|
948
|
+
t5.directiveName = "unsafeSVG", t5.resultType = 2;
|
|
949
|
+
var o9 = e4(t5);
|
|
950
|
+
|
|
951
|
+
// src/js/common/msg.js
|
|
952
|
+
var isLocal = ["127.0.0.1", "localhost"].includes(window.location.hostname);
|
|
953
|
+
var isStrTagged = (val) => typeof val !== "string" && "strTag" in val;
|
|
954
|
+
function collateStrings(strings) {
|
|
955
|
+
let s8 = "";
|
|
956
|
+
for (let i9 = 0; i9 <= strings.length - 1; i9++) {
|
|
957
|
+
s8 += strings[i9];
|
|
958
|
+
if (i9 < strings.length - 1)
|
|
959
|
+
s8 += `{${i9}}`;
|
|
960
|
+
}
|
|
961
|
+
return s8;
|
|
962
|
+
}
|
|
963
|
+
function replacePlaceholders(str, callback) {
|
|
964
|
+
return str.replace(/\{(\d+)\}/g, (match, index) => callback(index));
|
|
965
|
+
}
|
|
966
|
+
var joinStringsAndValues = (strings, values, options) => {
|
|
967
|
+
const matchString = collateStrings(strings);
|
|
968
|
+
const tra = getTrans(matchString, options);
|
|
969
|
+
return replacePlaceholders(tra, (index) => {
|
|
970
|
+
return values[index];
|
|
971
|
+
});
|
|
972
|
+
};
|
|
973
|
+
function getTrans(t6, options = {}) {
|
|
974
|
+
window.__strings = window.__strings ?? {};
|
|
975
|
+
const tra = window.__strings[t6]?.content;
|
|
976
|
+
if (!tra && isLocal) {
|
|
977
|
+
console.log("\u{1F310}", t6, options.desc ? `(${options.desc})` : ``);
|
|
978
|
+
}
|
|
979
|
+
if (window.env?.DEBUG_TRANSLATIONS)
|
|
980
|
+
return `__${tra ?? t6}`;
|
|
981
|
+
return tra ?? t6;
|
|
982
|
+
}
|
|
983
|
+
var msg = (template, options = {}) => {
|
|
984
|
+
if (!template)
|
|
985
|
+
return "";
|
|
986
|
+
return isStrTagged(template) ? joinStringsAndValues(template.strings, template.values, options) : getTrans(template, options);
|
|
987
|
+
};
|
|
988
|
+
|
|
989
|
+
// node_modules/lit-html/static.js
|
|
990
|
+
var a3 = Symbol.for("");
|
|
991
|
+
var o10 = (t6) => {
|
|
992
|
+
if (t6?.r === a3)
|
|
993
|
+
return t6?._$litStatic$;
|
|
994
|
+
};
|
|
995
|
+
var s7 = (t6) => ({ _$litStatic$: t6, r: a3 });
|
|
996
|
+
var l3 = /* @__PURE__ */ new Map();
|
|
997
|
+
var n7 = (t6) => (r6, ...e8) => {
|
|
998
|
+
const a4 = e8.length;
|
|
999
|
+
let s8, i9;
|
|
1000
|
+
const n8 = [], u6 = [];
|
|
1001
|
+
let c8, $3 = 0, f5 = false;
|
|
1002
|
+
for (; $3 < a4; ) {
|
|
1003
|
+
for (c8 = r6[$3]; $3 < a4 && void 0 !== (i9 = e8[$3], s8 = o10(i9)); )
|
|
1004
|
+
c8 += s8 + r6[++$3], f5 = true;
|
|
1005
|
+
$3 !== a4 && u6.push(i9), n8.push(c8), $3++;
|
|
1006
|
+
}
|
|
1007
|
+
if ($3 === a4 && n8.push(r6[a4]), f5) {
|
|
1008
|
+
const t7 = n8.join("$$lit$$");
|
|
1009
|
+
void 0 === (r6 = l3.get(t7)) && (n8.raw = n8, l3.set(t7, r6 = n8)), e8 = u6;
|
|
1010
|
+
}
|
|
1011
|
+
return t6(r6, ...e8);
|
|
1012
|
+
};
|
|
1013
|
+
var u5 = n7(x);
|
|
1014
|
+
var c7 = n7(b2);
|
|
1015
|
+
var $2 = n7(w);
|
|
1016
|
+
|
|
1017
|
+
// src/js/lit.js
|
|
1018
|
+
var html = x;
|
|
1019
|
+
var css = i;
|
|
1020
|
+
async function loadLocale(locale) {
|
|
1021
|
+
try {
|
|
1022
|
+
window.__strings = await fetch(`/assets/locales/${locale}.json`).then((r6) => r6.json());
|
|
1023
|
+
} catch {
|
|
1024
|
+
window.__strings = {};
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
export {
|
|
1028
|
+
i4 as LitElement,
|
|
1029
|
+
e5 as classMap,
|
|
1030
|
+
e6 as createRef,
|
|
1031
|
+
css,
|
|
1032
|
+
html,
|
|
1033
|
+
o7 as ifDefined,
|
|
1034
|
+
i7 as keyed,
|
|
1035
|
+
loadLocale,
|
|
1036
|
+
msg,
|
|
1037
|
+
E as nothing,
|
|
1038
|
+
n5 as ref,
|
|
1039
|
+
B as render,
|
|
1040
|
+
c4 as repeat,
|
|
1041
|
+
u5 as staticHtml,
|
|
1042
|
+
b2 as svg,
|
|
1043
|
+
o8 as unsafeHTML,
|
|
1044
|
+
o9 as unsafeSVG,
|
|
1045
|
+
s7 as unsafeStatic,
|
|
1046
|
+
m3 as until
|
|
1047
|
+
};
|
|
4
1048
|
/*! Bundled license information:
|
|
5
1049
|
|
|
6
1050
|
@lit/reactive-element/css-tag.js:
|
|
@@ -129,3 +1173,4 @@ lit-html/static.js:
|
|
|
129
1173
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
130
1174
|
*)
|
|
131
1175
|
*/
|
|
1176
|
+
//# sourceMappingURL=lit.js.map
|