|
|
|
|
@@ -3,7 +3,6 @@
|
|
|
|
|
* Copyright 2019 Google LLC
|
|
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
|
*/
|
|
|
|
|
var _a;
|
|
|
|
|
const t$1 = globalThis, e$2 = t$1.ShadowRoot && (void 0 === t$1.ShadyCSS || t$1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$2 = Symbol(), o$3 = /* @__PURE__ */ new WeakMap();
|
|
|
|
|
let n$2 = class n {
|
|
|
|
|
constructor(t2, e2, o2) {
|
|
|
|
|
@@ -24,7 +23,7 @@ let n$2 = class n {
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
const r$2 = (t2) => new n$2("string" == typeof t2 ? t2 : t2 + "", void 0, s$2), S$1 = (s2, o2) => {
|
|
|
|
|
if (e$2) s2.adoptedStyleSheets = o2.map((t2) => t2 instanceof CSSStyleSheet ? t2 : t2.styleSheet);
|
|
|
|
|
if (e$2) s2.adoptedStyleSheets = o2.map(((t2) => t2 instanceof CSSStyleSheet ? t2 : t2.styleSheet));
|
|
|
|
|
else for (const e2 of o2) {
|
|
|
|
|
const o3 = document.createElement("style"), n3 = t$1.litNonce;
|
|
|
|
|
void 0 !== n3 && o3.setAttribute("nonce", n3), o3.textContent = e2.cssText, s2.appendChild(o3);
|
|
|
|
|
@@ -68,10 +67,10 @@ const { is: i$2, defineProperty: e$1, getOwnPropertyDescriptor: h$1, getOwnPrope
|
|
|
|
|
}
|
|
|
|
|
return i2;
|
|
|
|
|
} }, f$1 = (t2, s2) => !i$2(t2, s2), b = { attribute: true, type: String, converter: u$1, reflect: false, useDefault: false, hasChanged: f$1 };
|
|
|
|
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), a$1.litPropertyMetadata ?? (a$1.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
|
|
|
Symbol.metadata ??= Symbol("metadata"), a$1.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
|
|
|
let y$1 = class y extends HTMLElement {
|
|
|
|
|
static addInitializer(t2) {
|
|
|
|
|
this._$Ei(), (this.l ?? (this.l = [])).push(t2);
|
|
|
|
|
this._$Ei(), (this.l ??= []).push(t2);
|
|
|
|
|
}
|
|
|
|
|
static get observedAttributes() {
|
|
|
|
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
|
|
|
@@ -89,8 +88,8 @@ let y$1 = class y extends HTMLElement {
|
|
|
|
|
this[s2] = t3;
|
|
|
|
|
} };
|
|
|
|
|
return { get: e2, set(s3) {
|
|
|
|
|
const h2 = e2 == null ? void 0 : e2.call(this);
|
|
|
|
|
r2 == null ? void 0 : r2.call(this, s3), this.requestUpdate(t2, h2, i2);
|
|
|
|
|
const h2 = e2?.call(this);
|
|
|
|
|
r2?.call(this, s3), this.requestUpdate(t2, h2, i2);
|
|
|
|
|
}, configurable: true, enumerable: true };
|
|
|
|
|
}
|
|
|
|
|
static getPropertyOptions(t2) {
|
|
|
|
|
@@ -135,16 +134,13 @@ let y$1 = class y extends HTMLElement {
|
|
|
|
|
super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
|
|
|
|
|
}
|
|
|
|
|
_$Ev() {
|
|
|
|
|
var _a2;
|
|
|
|
|
this._$ES = new Promise((t2) => this.enableUpdating = t2), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (_a2 = this.constructor.l) == null ? void 0 : _a2.forEach((t2) => t2(this));
|
|
|
|
|
this._$ES = new Promise(((t2) => this.enableUpdating = t2)), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach(((t2) => t2(this)));
|
|
|
|
|
}
|
|
|
|
|
addController(t2) {
|
|
|
|
|
var _a2;
|
|
|
|
|
(this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t2), void 0 !== this.renderRoot && this.isConnected && ((_a2 = t2.hostConnected) == null ? void 0 : _a2.call(t2));
|
|
|
|
|
(this._$EO ??= /* @__PURE__ */ new Set()).add(t2), void 0 !== this.renderRoot && this.isConnected && t2.hostConnected?.();
|
|
|
|
|
}
|
|
|
|
|
removeController(t2) {
|
|
|
|
|
var _a2;
|
|
|
|
|
(_a2 = this._$EO) == null ? void 0 : _a2.delete(t2);
|
|
|
|
|
this._$EO?.delete(t2);
|
|
|
|
|
}
|
|
|
|
|
_$E_() {
|
|
|
|
|
const t2 = /* @__PURE__ */ new Map(), s2 = this.constructor.elementProperties;
|
|
|
|
|
@@ -156,51 +152,42 @@ let y$1 = class y extends HTMLElement {
|
|
|
|
|
return S$1(t2, this.constructor.elementStyles), t2;
|
|
|
|
|
}
|
|
|
|
|
connectedCallback() {
|
|
|
|
|
var _a2;
|
|
|
|
|
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(true), (_a2 = this._$EO) == null ? void 0 : _a2.forEach((t2) => {
|
|
|
|
|
var _a3;
|
|
|
|
|
return (_a3 = t2.hostConnected) == null ? void 0 : _a3.call(t2);
|
|
|
|
|
});
|
|
|
|
|
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach(((t2) => t2.hostConnected?.()));
|
|
|
|
|
}
|
|
|
|
|
enableUpdating(t2) {
|
|
|
|
|
}
|
|
|
|
|
disconnectedCallback() {
|
|
|
|
|
var _a2;
|
|
|
|
|
(_a2 = this._$EO) == null ? void 0 : _a2.forEach((t2) => {
|
|
|
|
|
var _a3;
|
|
|
|
|
return (_a3 = t2.hostDisconnected) == null ? void 0 : _a3.call(t2);
|
|
|
|
|
});
|
|
|
|
|
this._$EO?.forEach(((t2) => t2.hostDisconnected?.()));
|
|
|
|
|
}
|
|
|
|
|
attributeChangedCallback(t2, s2, i2) {
|
|
|
|
|
this._$AK(t2, i2);
|
|
|
|
|
}
|
|
|
|
|
_$ET(t2, s2) {
|
|
|
|
|
var _a2;
|
|
|
|
|
const i2 = this.constructor.elementProperties.get(t2), e2 = this.constructor._$Eu(t2, i2);
|
|
|
|
|
if (void 0 !== e2 && true === i2.reflect) {
|
|
|
|
|
const h2 = (void 0 !== ((_a2 = i2.converter) == null ? void 0 : _a2.toAttribute) ? i2.converter : u$1).toAttribute(s2, i2.type);
|
|
|
|
|
const h2 = (void 0 !== i2.converter?.toAttribute ? i2.converter : u$1).toAttribute(s2, i2.type);
|
|
|
|
|
this._$Em = t2, null == h2 ? this.removeAttribute(e2) : this.setAttribute(e2, h2), this._$Em = null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
_$AK(t2, s2) {
|
|
|
|
|
var _a2, _b;
|
|
|
|
|
const i2 = this.constructor, e2 = i2._$Eh.get(t2);
|
|
|
|
|
if (void 0 !== e2 && this._$Em !== e2) {
|
|
|
|
|
const t3 = i2.getPropertyOptions(e2), h2 = "function" == typeof t3.converter ? { fromAttribute: t3.converter } : void 0 !== ((_a2 = t3.converter) == null ? void 0 : _a2.fromAttribute) ? t3.converter : u$1;
|
|
|
|
|
this._$Em = e2, this[e2] = h2.fromAttribute(s2, t3.type) ?? ((_b = this._$Ej) == null ? void 0 : _b.get(e2)) ?? null, this._$Em = null;
|
|
|
|
|
const t3 = i2.getPropertyOptions(e2), h2 = "function" == typeof t3.converter ? { fromAttribute: t3.converter } : void 0 !== t3.converter?.fromAttribute ? t3.converter : u$1;
|
|
|
|
|
this._$Em = e2;
|
|
|
|
|
const r2 = h2.fromAttribute(s2, t3.type);
|
|
|
|
|
this[e2] = r2 ?? this._$Ej?.get(e2) ?? r2, this._$Em = null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
requestUpdate(t2, s2, i2) {
|
|
|
|
|
var _a2;
|
|
|
|
|
if (void 0 !== t2) {
|
|
|
|
|
const e2 = this.constructor, h2 = this[t2];
|
|
|
|
|
if (i2 ?? (i2 = e2.getPropertyOptions(t2)), !((i2.hasChanged ?? f$1)(h2, s2) || i2.useDefault && i2.reflect && h2 === ((_a2 = this._$Ej) == null ? void 0 : _a2.get(t2)) && !this.hasAttribute(e2._$Eu(t2, i2)))) return;
|
|
|
|
|
if (i2 ??= e2.getPropertyOptions(t2), !((i2.hasChanged ?? f$1)(h2, s2) || i2.useDefault && i2.reflect && h2 === this._$Ej?.get(t2) && !this.hasAttribute(e2._$Eu(t2, i2)))) return;
|
|
|
|
|
this.C(t2, s2, i2);
|
|
|
|
|
}
|
|
|
|
|
false === this.isUpdatePending && (this._$ES = this._$EP());
|
|
|
|
|
}
|
|
|
|
|
C(t2, s2, { useDefault: i2, reflect: e2, wrapped: h2 }, r2) {
|
|
|
|
|
i2 && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t2) && (this._$Ej.set(t2, r2 ?? s2 ?? this[t2]), true !== h2 || void 0 !== r2) || (this._$AL.has(t2) || (this.hasUpdated || i2 || (s2 = void 0), this._$AL.set(t2, s2)), true === e2 && this._$Em !== t2 && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t2));
|
|
|
|
|
i2 && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t2) && (this._$Ej.set(t2, r2 ?? s2 ?? this[t2]), true !== h2 || void 0 !== r2) || (this._$AL.has(t2) || (this.hasUpdated || i2 || (s2 = void 0), this._$AL.set(t2, s2)), true === e2 && this._$Em !== t2 && (this._$Eq ??= /* @__PURE__ */ new Set()).add(t2));
|
|
|
|
|
}
|
|
|
|
|
async _$EP() {
|
|
|
|
|
this.isUpdatePending = true;
|
|
|
|
|
@@ -216,10 +203,9 @@ let y$1 = class y extends HTMLElement {
|
|
|
|
|
return this.performUpdate();
|
|
|
|
|
}
|
|
|
|
|
performUpdate() {
|
|
|
|
|
var _a2;
|
|
|
|
|
if (!this.isUpdatePending) return;
|
|
|
|
|
if (!this.hasUpdated) {
|
|
|
|
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
|
|
|
if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
|
|
|
|
|
for (const [t4, s3] of this._$Ep) this[t4] = s3;
|
|
|
|
|
this._$Ep = void 0;
|
|
|
|
|
}
|
|
|
|
|
@@ -232,10 +218,7 @@ let y$1 = class y extends HTMLElement {
|
|
|
|
|
let t2 = false;
|
|
|
|
|
const s2 = this._$AL;
|
|
|
|
|
try {
|
|
|
|
|
t2 = this.shouldUpdate(s2), t2 ? (this.willUpdate(s2), (_a2 = this._$EO) == null ? void 0 : _a2.forEach((t3) => {
|
|
|
|
|
var _a3;
|
|
|
|
|
return (_a3 = t3.hostUpdate) == null ? void 0 : _a3.call(t3);
|
|
|
|
|
}), this.update(s2)) : this._$EM();
|
|
|
|
|
t2 = this.shouldUpdate(s2), t2 ? (this.willUpdate(s2), this._$EO?.forEach(((t3) => t3.hostUpdate?.())), this.update(s2)) : this._$EM();
|
|
|
|
|
} catch (s3) {
|
|
|
|
|
throw t2 = false, this._$EM(), s3;
|
|
|
|
|
}
|
|
|
|
|
@@ -244,11 +227,7 @@ let y$1 = class y extends HTMLElement {
|
|
|
|
|
willUpdate(t2) {
|
|
|
|
|
}
|
|
|
|
|
_$AE(t2) {
|
|
|
|
|
var _a2;
|
|
|
|
|
(_a2 = this._$EO) == null ? void 0 : _a2.forEach((t3) => {
|
|
|
|
|
var _a3;
|
|
|
|
|
return (_a3 = t3.hostUpdated) == null ? void 0 : _a3.call(t3);
|
|
|
|
|
}), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t2)), this.updated(t2);
|
|
|
|
|
this._$EO?.forEach(((t3) => t3.hostUpdated?.())), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t2)), this.updated(t2);
|
|
|
|
|
}
|
|
|
|
|
_$EM() {
|
|
|
|
|
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
|
|
|
|
|
@@ -263,20 +242,20 @@ let y$1 = class y extends HTMLElement {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
update(t2) {
|
|
|
|
|
this._$Eq && (this._$Eq = this._$Eq.forEach((t3) => this._$ET(t3, this[t3]))), this._$EM();
|
|
|
|
|
this._$Eq &&= this._$Eq.forEach(((t3) => this._$ET(t3, this[t3]))), this._$EM();
|
|
|
|
|
}
|
|
|
|
|
updated(t2) {
|
|
|
|
|
}
|
|
|
|
|
firstUpdated(t2) {
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
y$1.elementStyles = [], y$1.shadowRootOptions = { mode: "open" }, y$1[d$1("elementProperties")] = /* @__PURE__ */ new Map(), y$1[d$1("finalized")] = /* @__PURE__ */ new Map(), p$1 == null ? void 0 : p$1({ ReactiveElement: y$1 }), (a$1.reactiveElementVersions ?? (a$1.reactiveElementVersions = [])).push("2.1.0");
|
|
|
|
|
y$1.elementStyles = [], y$1.shadowRootOptions = { mode: "open" }, y$1[d$1("elementProperties")] = /* @__PURE__ */ new Map(), y$1[d$1("finalized")] = /* @__PURE__ */ new Map(), p$1?.({ ReactiveElement: y$1 }), (a$1.reactiveElementVersions ??= []).push("2.1.1");
|
|
|
|
|
/**
|
|
|
|
|
* @license
|
|
|
|
|
* Copyright 2017 Google LLC
|
|
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
|
*/
|
|
|
|
|
const t = globalThis, i$1 = t.trustedTypes, s$1 = i$1 ? i$1.createPolicy("lit-html", { createHTML: (t2) => t2 }) : void 0, e = "$lit$", h = `lit$${Math.random().toFixed(9).slice(2)}$`, o$1 = "?" + h, n2 = `<${o$1}>`, r = document, l = () => r.createComment(""), c = (t2) => null === t2 || "object" != typeof t2 && "function" != typeof t2, a = Array.isArray, u = (t2) => a(t2) || "function" == typeof (t2 == null ? void 0 : t2[Symbol.iterator]), d = "[ \n\f\r]", f = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, v = /-->/g, _ = />/g, m = RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^
|
|
|
|
|
const t = globalThis, i$1 = t.trustedTypes, s$1 = i$1 ? i$1.createPolicy("lit-html", { createHTML: (t2) => t2 }) : void 0, e = "$lit$", h = `lit$${Math.random().toFixed(9).slice(2)}$`, o$1 = "?" + h, n2 = `<${o$1}>`, r = document, l = () => r.createComment(""), c = (t2) => null === t2 || "object" != typeof t2 && "function" != typeof t2, a = Array.isArray, u = (t2) => a(t2) || "function" == typeof t2?.[Symbol.iterator], d = "[ \n\f\r]", f = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, v = /-->/g, _ = />/g, m = RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^
|
|
|
|
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), p = /'/g, g = /"/g, $ = /^(?:script|style|textarea|title)$/i, y2 = (t2) => (i2, ...s2) => ({ _$litType$: t2, strings: i2, values: s2 }), x = y2(1), T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = /* @__PURE__ */ new WeakMap(), C = r.createTreeWalker(r, 129);
|
|
|
|
|
function P(t2, i2) {
|
|
|
|
|
if (!a(t2) || !t2.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
|
|
|
@@ -332,11 +311,10 @@ class N {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function S(t2, i2, s2 = t2, e2) {
|
|
|
|
|
var _a2, _b;
|
|
|
|
|
if (i2 === T) return i2;
|
|
|
|
|
let h2 = void 0 !== e2 ? (_a2 = s2._$Co) == null ? void 0 : _a2[e2] : s2._$Cl;
|
|
|
|
|
let h2 = void 0 !== e2 ? s2._$Co?.[e2] : s2._$Cl;
|
|
|
|
|
const o2 = c(i2) ? void 0 : i2._$litDirective$;
|
|
|
|
|
return (h2 == null ? void 0 : h2.constructor) !== o2 && ((_b = h2 == null ? void 0 : h2._$AO) == null ? void 0 : _b.call(h2, false), void 0 === o2 ? h2 = void 0 : (h2 = new o2(t2), h2._$AT(t2, s2, e2)), void 0 !== e2 ? (s2._$Co ?? (s2._$Co = []))[e2] = h2 : s2._$Cl = h2), void 0 !== h2 && (i2 = S(t2, h2._$AS(t2, i2.values), h2, e2)), i2;
|
|
|
|
|
return h2?.constructor !== o2 && (h2?._$AO?.(false), void 0 === o2 ? h2 = void 0 : (h2 = new o2(t2), h2._$AT(t2, s2, e2)), void 0 !== e2 ? (s2._$Co ??= [])[e2] = h2 : s2._$Cl = h2), void 0 !== h2 && (i2 = S(t2, h2._$AS(t2, i2.values), h2, e2)), i2;
|
|
|
|
|
}
|
|
|
|
|
class M {
|
|
|
|
|
constructor(t2, i2) {
|
|
|
|
|
@@ -349,7 +327,7 @@ class M {
|
|
|
|
|
return this._$AM._$AU;
|
|
|
|
|
}
|
|
|
|
|
u(t2) {
|
|
|
|
|
const { el: { content: i2 }, parts: s2 } = this._$AD, e2 = ((t2 == null ? void 0 : t2.creationScope) ?? r).importNode(i2, true);
|
|
|
|
|
const { el: { content: i2 }, parts: s2 } = this._$AD, e2 = (t2?.creationScope ?? r).importNode(i2, true);
|
|
|
|
|
C.currentNode = e2;
|
|
|
|
|
let h2 = C.nextNode(), o2 = 0, n3 = 0, l2 = s2[0];
|
|
|
|
|
for (; void 0 !== l2; ) {
|
|
|
|
|
@@ -357,7 +335,7 @@ class M {
|
|
|
|
|
let i3;
|
|
|
|
|
2 === l2.type ? i3 = new R(h2, h2.nextSibling, this, t2) : 1 === l2.type ? i3 = new l2.ctor(h2, l2.name, l2.strings, this, t2) : 6 === l2.type && (i3 = new z(h2, this, t2)), this._$AV.push(i3), l2 = s2[++n3];
|
|
|
|
|
}
|
|
|
|
|
o2 !== (l2 == null ? void 0 : l2.index) && (h2 = C.nextNode(), o2++);
|
|
|
|
|
o2 !== l2?.index && (h2 = C.nextNode(), o2++);
|
|
|
|
|
}
|
|
|
|
|
return C.currentNode = r, e2;
|
|
|
|
|
}
|
|
|
|
|
@@ -368,16 +346,15 @@ class M {
|
|
|
|
|
}
|
|
|
|
|
class R {
|
|
|
|
|
get _$AU() {
|
|
|
|
|
var _a2;
|
|
|
|
|
return ((_a2 = this._$AM) == null ? void 0 : _a2._$AU) ?? this._$Cv;
|
|
|
|
|
return this._$AM?._$AU ?? this._$Cv;
|
|
|
|
|
}
|
|
|
|
|
constructor(t2, i2, s2, e2) {
|
|
|
|
|
this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t2, this._$AB = i2, this._$AM = s2, this.options = e2, this._$Cv = (e2 == null ? void 0 : e2.isConnected) ?? true;
|
|
|
|
|
this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t2, this._$AB = i2, this._$AM = s2, this.options = e2, this._$Cv = e2?.isConnected ?? true;
|
|
|
|
|
}
|
|
|
|
|
get parentNode() {
|
|
|
|
|
let t2 = this._$AA.parentNode;
|
|
|
|
|
const i2 = this._$AM;
|
|
|
|
|
return void 0 !== i2 && 11 === (t2 == null ? void 0 : t2.nodeType) && (t2 = i2.parentNode), t2;
|
|
|
|
|
return void 0 !== i2 && 11 === t2?.nodeType && (t2 = i2.parentNode), t2;
|
|
|
|
|
}
|
|
|
|
|
get startNode() {
|
|
|
|
|
return this._$AA;
|
|
|
|
|
@@ -398,9 +375,8 @@ class R {
|
|
|
|
|
this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t2 : this.T(r.createTextNode(t2)), this._$AH = t2;
|
|
|
|
|
}
|
|
|
|
|
$(t2) {
|
|
|
|
|
var _a2;
|
|
|
|
|
const { values: i2, _$litType$: s2 } = t2, e2 = "number" == typeof s2 ? this._$AC(t2) : (void 0 === s2.el && (s2.el = N.createElement(P(s2.h, s2.h[0]), this.options)), s2);
|
|
|
|
|
if (((_a2 = this._$AH) == null ? void 0 : _a2._$AD) === e2) this._$AH.p(i2);
|
|
|
|
|
if (this._$AH?._$AD === e2) this._$AH.p(i2);
|
|
|
|
|
else {
|
|
|
|
|
const t3 = new M(e2, this), s3 = t3.u(this.options);
|
|
|
|
|
t3.p(i2), this.T(s3), this._$AH = t3;
|
|
|
|
|
@@ -418,15 +394,13 @@ class R {
|
|
|
|
|
e2 < i2.length && (this._$AR(s2 && s2._$AB.nextSibling, e2), i2.length = e2);
|
|
|
|
|
}
|
|
|
|
|
_$AR(t2 = this._$AA.nextSibling, i2) {
|
|
|
|
|
var _a2;
|
|
|
|
|
for ((_a2 = this._$AP) == null ? void 0 : _a2.call(this, false, true, i2); t2 && t2 !== this._$AB; ) {
|
|
|
|
|
for (this._$AP?.(false, true, i2); t2 !== this._$AB; ) {
|
|
|
|
|
const i3 = t2.nextSibling;
|
|
|
|
|
t2.remove(), t2 = i3;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
setConnected(t2) {
|
|
|
|
|
var _a2;
|
|
|
|
|
void 0 === this._$AM && (this._$Cv = t2, (_a2 = this._$AP) == null ? void 0 : _a2.call(this, t2));
|
|
|
|
|
void 0 === this._$AM && (this._$Cv = t2, this._$AP?.(t2));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
class k {
|
|
|
|
|
@@ -446,7 +420,7 @@ class k {
|
|
|
|
|
else {
|
|
|
|
|
const e3 = t2;
|
|
|
|
|
let n3, r2;
|
|
|
|
|
for (t2 = h2[0], n3 = 0; n3 < h2.length - 1; n3++) r2 = S(this, e3[s2 + n3], i2, n3), r2 === T && (r2 = this._$AH[n3]), o2 || (o2 = !c(r2) || r2 !== this._$AH[n3]), r2 === E ? t2 = E : t2 !== E && (t2 += (r2 ?? "") + h2[n3 + 1]), this._$AH[n3] = r2;
|
|
|
|
|
for (t2 = h2[0], n3 = 0; n3 < h2.length - 1; n3++) r2 = S(this, e3[s2 + n3], i2, n3), r2 === T && (r2 = this._$AH[n3]), o2 ||= !c(r2) || r2 !== this._$AH[n3], r2 === E ? t2 = E : t2 !== E && (t2 += (r2 ?? "") + h2[n3 + 1]), this._$AH[n3] = r2;
|
|
|
|
|
}
|
|
|
|
|
o2 && !e2 && this.j(t2);
|
|
|
|
|
}
|
|
|
|
|
@@ -480,8 +454,7 @@ class L extends k {
|
|
|
|
|
e2 && this.element.removeEventListener(this.name, this, s2), h2 && this.element.addEventListener(this.name, this, t2), this._$AH = t2;
|
|
|
|
|
}
|
|
|
|
|
handleEvent(t2) {
|
|
|
|
|
var _a2;
|
|
|
|
|
"function" == typeof this._$AH ? this._$AH.call(((_a2 = this.options) == null ? void 0 : _a2.host) ?? this.element, t2) : this._$AH.handleEvent(t2);
|
|
|
|
|
"function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t2) : this._$AH.handleEvent(t2);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
class z {
|
|
|
|
|
@@ -496,12 +469,12 @@ class z {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
const j = t.litHtmlPolyfillSupport;
|
|
|
|
|
j == null ? void 0 : j(N, R), (t.litHtmlVersions ?? (t.litHtmlVersions = [])).push("3.3.0");
|
|
|
|
|
j?.(N, R), (t.litHtmlVersions ??= []).push("3.3.1");
|
|
|
|
|
const B = (t2, i2, s2) => {
|
|
|
|
|
const e2 = (s2 == null ? void 0 : s2.renderBefore) ?? i2;
|
|
|
|
|
const e2 = s2?.renderBefore ?? i2;
|
|
|
|
|
let h2 = e2._$litPart$;
|
|
|
|
|
if (void 0 === h2) {
|
|
|
|
|
const t3 = (s2 == null ? void 0 : s2.renderBefore) ?? null;
|
|
|
|
|
const t3 = s2?.renderBefore ?? null;
|
|
|
|
|
e2._$litPart$ = h2 = new R(i2.insertBefore(l(), t3), t3, void 0, s2 ?? {});
|
|
|
|
|
}
|
|
|
|
|
return h2._$AI(t2), h2;
|
|
|
|
|
@@ -517,30 +490,27 @@ class i extends y$1 {
|
|
|
|
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
|
|
|
}
|
|
|
|
|
createRenderRoot() {
|
|
|
|
|
var _a2;
|
|
|
|
|
const t2 = super.createRenderRoot();
|
|
|
|
|
return (_a2 = this.renderOptions).renderBefore ?? (_a2.renderBefore = t2.firstChild), t2;
|
|
|
|
|
return this.renderOptions.renderBefore ??= t2.firstChild, t2;
|
|
|
|
|
}
|
|
|
|
|
update(t2) {
|
|
|
|
|
const r2 = this.render();
|
|
|
|
|
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t2), this._$Do = B(r2, this.renderRoot, this.renderOptions);
|
|
|
|
|
}
|
|
|
|
|
connectedCallback() {
|
|
|
|
|
var _a2;
|
|
|
|
|
super.connectedCallback(), (_a2 = this._$Do) == null ? void 0 : _a2.setConnected(true);
|
|
|
|
|
super.connectedCallback(), this._$Do?.setConnected(true);
|
|
|
|
|
}
|
|
|
|
|
disconnectedCallback() {
|
|
|
|
|
var _a2;
|
|
|
|
|
super.disconnectedCallback(), (_a2 = this._$Do) == null ? void 0 : _a2.setConnected(false);
|
|
|
|
|
super.disconnectedCallback(), this._$Do?.setConnected(false);
|
|
|
|
|
}
|
|
|
|
|
render() {
|
|
|
|
|
return T;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
i._$litElement$ = true, i["finalized"] = true, (_a = s.litElementHydrateSupport) == null ? void 0 : _a.call(s, { LitElement: i });
|
|
|
|
|
i._$litElement$ = true, i["finalized"] = true, s.litElementHydrateSupport?.({ LitElement: i });
|
|
|
|
|
const o = s.litElementPolyfillSupport;
|
|
|
|
|
o == null ? void 0 : o({ LitElement: i });
|
|
|
|
|
(s.litElementVersions ?? (s.litElementVersions = [])).push("4.2.0");
|
|
|
|
|
o?.({ LitElement: i });
|
|
|
|
|
(s.litElementVersions ??= []).push("4.2.1");
|
|
|
|
|
export {
|
|
|
|
|
E,
|
|
|
|
|
f$1 as f,
|