@epigraph/epigraph-std-lib 4.1.0 → 4.2.0
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/Epigraph/epigraph.cjs +1 -1
- package/dist/Epigraph/epigraph.d.ts +8 -0
- package/dist/Epigraph/epigraph.js +32 -16
- package/dist/Epigraph/epigraphBaseSolutions.cjs +1 -1
- package/dist/Epigraph/epigraphBaseSolutions.js +1 -1
- package/dist/EpigraphLibs/EpigraphNexusApi/epigraphNexusApi.cjs +1 -1
- package/dist/EpigraphLibs/EpigraphNexusApi/epigraphNexusApi.d.ts +34 -5
- package/dist/EpigraphLibs/EpigraphNexusApi/epigraphNexusApi.js +229 -64
- package/dist/EpigraphLibs/EpigraphQrCodeGenerator/epigraphQrCodeGenerator.cjs +4 -26
- package/dist/EpigraphLibs/EpigraphQrCodeGenerator/epigraphQrCodeGenerator.d.ts +2 -2
- package/dist/EpigraphLibs/EpigraphQrCodeGenerator/epigraphQrCodeGenerator.js +25 -356
- package/dist/lit-element-C3moVMGu.js +524 -0
- package/dist/lit-element-CYaaFRfk.cjs +19 -0
- package/package.json +1 -1
|
@@ -0,0 +1,524 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2019 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
+
*/
|
|
6
|
+
const U = globalThis, k = U.ShadowRoot && (U.ShadyCSS === void 0 || U.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, D = Symbol(), B = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
let Q = class {
|
|
8
|
+
constructor(t, e, s) {
|
|
9
|
+
if (this._$cssResult$ = !0, s !== D) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
10
|
+
this.cssText = t, this.t = e;
|
|
11
|
+
}
|
|
12
|
+
get styleSheet() {
|
|
13
|
+
let t = this.o;
|
|
14
|
+
const e = this.t;
|
|
15
|
+
if (k && t === void 0) {
|
|
16
|
+
const s = e !== void 0 && e.length === 1;
|
|
17
|
+
s && (t = B.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && B.set(e, t));
|
|
18
|
+
}
|
|
19
|
+
return t;
|
|
20
|
+
}
|
|
21
|
+
toString() {
|
|
22
|
+
return this.cssText;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
const it = (r) => new Q(typeof r == "string" ? r : r + "", void 0, D), Ct = (r, ...t) => {
|
|
26
|
+
const e = r.length === 1 ? r[0] : t.reduce((s, i, n) => s + ((o) => {
|
|
27
|
+
if (o._$cssResult$ === !0) return o.cssText;
|
|
28
|
+
if (typeof o == "number") return o;
|
|
29
|
+
throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
30
|
+
})(i) + r[n + 1], r[0]);
|
|
31
|
+
return new Q(e, r, D);
|
|
32
|
+
}, rt = (r, t) => {
|
|
33
|
+
if (k) r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
34
|
+
else for (const e of t) {
|
|
35
|
+
const s = document.createElement("style"), i = U.litNonce;
|
|
36
|
+
i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, r.appendChild(s);
|
|
37
|
+
}
|
|
38
|
+
}, I = k ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
|
|
39
|
+
let e = "";
|
|
40
|
+
for (const s of t.cssRules) e += s.cssText;
|
|
41
|
+
return it(e);
|
|
42
|
+
})(r) : r;
|
|
43
|
+
/**
|
|
44
|
+
* @license
|
|
45
|
+
* Copyright 2017 Google LLC
|
|
46
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
|
+
*/
|
|
48
|
+
const { is: nt, defineProperty: ot, getOwnPropertyDescriptor: ht, getOwnPropertyNames: at, getOwnPropertySymbols: lt, getPrototypeOf: ct } = Object, M = globalThis, V = M.trustedTypes, dt = V ? V.emptyScript : "", pt = M.reactiveElementPolyfillSupport, S = (r, t) => r, R = { toAttribute(r, t) {
|
|
49
|
+
switch (t) {
|
|
50
|
+
case Boolean:
|
|
51
|
+
r = r ? dt : null;
|
|
52
|
+
break;
|
|
53
|
+
case Object:
|
|
54
|
+
case Array:
|
|
55
|
+
r = r == null ? r : JSON.stringify(r);
|
|
56
|
+
}
|
|
57
|
+
return r;
|
|
58
|
+
}, fromAttribute(r, t) {
|
|
59
|
+
let e = r;
|
|
60
|
+
switch (t) {
|
|
61
|
+
case Boolean:
|
|
62
|
+
e = r !== null;
|
|
63
|
+
break;
|
|
64
|
+
case Number:
|
|
65
|
+
e = r === null ? null : Number(r);
|
|
66
|
+
break;
|
|
67
|
+
case Object:
|
|
68
|
+
case Array:
|
|
69
|
+
try {
|
|
70
|
+
e = JSON.parse(r);
|
|
71
|
+
} catch {
|
|
72
|
+
e = null;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return e;
|
|
76
|
+
} }, X = (r, t) => !nt(r, t), W = { attribute: !0, type: String, converter: R, reflect: !1, useDefault: !1, hasChanged: X };
|
|
77
|
+
Symbol.metadata ??= Symbol("metadata"), M.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
78
|
+
let y = class extends HTMLElement {
|
|
79
|
+
static addInitializer(t) {
|
|
80
|
+
this._$Ei(), (this.l ??= []).push(t);
|
|
81
|
+
}
|
|
82
|
+
static get observedAttributes() {
|
|
83
|
+
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
84
|
+
}
|
|
85
|
+
static createProperty(t, e = W) {
|
|
86
|
+
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
87
|
+
const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
|
|
88
|
+
i !== void 0 && ot(this.prototype, t, i);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
static getPropertyDescriptor(t, e, s) {
|
|
92
|
+
const { get: i, set: n } = ht(this.prototype, t) ?? { get() {
|
|
93
|
+
return this[e];
|
|
94
|
+
}, set(o) {
|
|
95
|
+
this[e] = o;
|
|
96
|
+
} };
|
|
97
|
+
return { get: i, set(o) {
|
|
98
|
+
const d = i?.call(this);
|
|
99
|
+
n?.call(this, o), this.requestUpdate(t, d, s);
|
|
100
|
+
}, configurable: !0, enumerable: !0 };
|
|
101
|
+
}
|
|
102
|
+
static getPropertyOptions(t) {
|
|
103
|
+
return this.elementProperties.get(t) ?? W;
|
|
104
|
+
}
|
|
105
|
+
static _$Ei() {
|
|
106
|
+
if (this.hasOwnProperty(S("elementProperties"))) return;
|
|
107
|
+
const t = ct(this);
|
|
108
|
+
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
109
|
+
}
|
|
110
|
+
static finalize() {
|
|
111
|
+
if (this.hasOwnProperty(S("finalized"))) return;
|
|
112
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(S("properties"))) {
|
|
113
|
+
const e = this.properties, s = [...at(e), ...lt(e)];
|
|
114
|
+
for (const i of s) this.createProperty(i, e[i]);
|
|
115
|
+
}
|
|
116
|
+
const t = this[Symbol.metadata];
|
|
117
|
+
if (t !== null) {
|
|
118
|
+
const e = litPropertyMetadata.get(t);
|
|
119
|
+
if (e !== void 0) for (const [s, i] of e) this.elementProperties.set(s, i);
|
|
120
|
+
}
|
|
121
|
+
this._$Eh = /* @__PURE__ */ new Map();
|
|
122
|
+
for (const [e, s] of this.elementProperties) {
|
|
123
|
+
const i = this._$Eu(e, s);
|
|
124
|
+
i !== void 0 && this._$Eh.set(i, e);
|
|
125
|
+
}
|
|
126
|
+
this.elementStyles = this.finalizeStyles(this.styles);
|
|
127
|
+
}
|
|
128
|
+
static finalizeStyles(t) {
|
|
129
|
+
const e = [];
|
|
130
|
+
if (Array.isArray(t)) {
|
|
131
|
+
const s = new Set(t.flat(1 / 0).reverse());
|
|
132
|
+
for (const i of s) e.unshift(I(i));
|
|
133
|
+
} else t !== void 0 && e.push(I(t));
|
|
134
|
+
return e;
|
|
135
|
+
}
|
|
136
|
+
static _$Eu(t, e) {
|
|
137
|
+
const s = e.attribute;
|
|
138
|
+
return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
|
|
139
|
+
}
|
|
140
|
+
constructor() {
|
|
141
|
+
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
|
|
142
|
+
}
|
|
143
|
+
_$Ev() {
|
|
144
|
+
this._$ES = new Promise((t) => this.enableUpdating = t), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t) => t(this));
|
|
145
|
+
}
|
|
146
|
+
addController(t) {
|
|
147
|
+
(this._$EO ??= /* @__PURE__ */ new Set()).add(t), this.renderRoot !== void 0 && this.isConnected && t.hostConnected?.();
|
|
148
|
+
}
|
|
149
|
+
removeController(t) {
|
|
150
|
+
this._$EO?.delete(t);
|
|
151
|
+
}
|
|
152
|
+
_$E_() {
|
|
153
|
+
const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
|
|
154
|
+
for (const s of e.keys()) this.hasOwnProperty(s) && (t.set(s, this[s]), delete this[s]);
|
|
155
|
+
t.size > 0 && (this._$Ep = t);
|
|
156
|
+
}
|
|
157
|
+
createRenderRoot() {
|
|
158
|
+
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
159
|
+
return rt(t, this.constructor.elementStyles), t;
|
|
160
|
+
}
|
|
161
|
+
connectedCallback() {
|
|
162
|
+
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach((t) => t.hostConnected?.());
|
|
163
|
+
}
|
|
164
|
+
enableUpdating(t) {
|
|
165
|
+
}
|
|
166
|
+
disconnectedCallback() {
|
|
167
|
+
this._$EO?.forEach((t) => t.hostDisconnected?.());
|
|
168
|
+
}
|
|
169
|
+
attributeChangedCallback(t, e, s) {
|
|
170
|
+
this._$AK(t, s);
|
|
171
|
+
}
|
|
172
|
+
_$ET(t, e) {
|
|
173
|
+
const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
|
|
174
|
+
if (i !== void 0 && s.reflect === !0) {
|
|
175
|
+
const n = (s.converter?.toAttribute !== void 0 ? s.converter : R).toAttribute(e, s.type);
|
|
176
|
+
this._$Em = t, n == null ? this.removeAttribute(i) : this.setAttribute(i, n), this._$Em = null;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
_$AK(t, e) {
|
|
180
|
+
const s = this.constructor, i = s._$Eh.get(t);
|
|
181
|
+
if (i !== void 0 && this._$Em !== i) {
|
|
182
|
+
const n = s.getPropertyOptions(i), o = typeof n.converter == "function" ? { fromAttribute: n.converter } : n.converter?.fromAttribute !== void 0 ? n.converter : R;
|
|
183
|
+
this._$Em = i, this[i] = o.fromAttribute(e, n.type) ?? this._$Ej?.get(i) ?? null, this._$Em = null;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
requestUpdate(t, e, s) {
|
|
187
|
+
if (t !== void 0) {
|
|
188
|
+
const i = this.constructor, n = this[t];
|
|
189
|
+
if (s ??= i.getPropertyOptions(t), !((s.hasChanged ?? X)(n, e) || s.useDefault && s.reflect && n === this._$Ej?.get(t) && !this.hasAttribute(i._$Eu(t, s)))) return;
|
|
190
|
+
this.C(t, e, s);
|
|
191
|
+
}
|
|
192
|
+
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
193
|
+
}
|
|
194
|
+
C(t, e, { useDefault: s, reflect: i, wrapped: n }, o) {
|
|
195
|
+
s && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t) && (this._$Ej.set(t, o ?? e ?? this[t]), n !== !0 || o !== void 0) || (this._$AL.has(t) || (this.hasUpdated || s || (e = void 0), this._$AL.set(t, e)), i === !0 && this._$Em !== t && (this._$Eq ??= /* @__PURE__ */ new Set()).add(t));
|
|
196
|
+
}
|
|
197
|
+
async _$EP() {
|
|
198
|
+
this.isUpdatePending = !0;
|
|
199
|
+
try {
|
|
200
|
+
await this._$ES;
|
|
201
|
+
} catch (e) {
|
|
202
|
+
Promise.reject(e);
|
|
203
|
+
}
|
|
204
|
+
const t = this.scheduleUpdate();
|
|
205
|
+
return t != null && await t, !this.isUpdatePending;
|
|
206
|
+
}
|
|
207
|
+
scheduleUpdate() {
|
|
208
|
+
return this.performUpdate();
|
|
209
|
+
}
|
|
210
|
+
performUpdate() {
|
|
211
|
+
if (!this.isUpdatePending) return;
|
|
212
|
+
if (!this.hasUpdated) {
|
|
213
|
+
if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
|
|
214
|
+
for (const [i, n] of this._$Ep) this[i] = n;
|
|
215
|
+
this._$Ep = void 0;
|
|
216
|
+
}
|
|
217
|
+
const s = this.constructor.elementProperties;
|
|
218
|
+
if (s.size > 0) for (const [i, n] of s) {
|
|
219
|
+
const { wrapped: o } = n, d = this[i];
|
|
220
|
+
o !== !0 || this._$AL.has(i) || d === void 0 || this.C(i, void 0, n, d);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
let t = !1;
|
|
224
|
+
const e = this._$AL;
|
|
225
|
+
try {
|
|
226
|
+
t = this.shouldUpdate(e), t ? (this.willUpdate(e), this._$EO?.forEach((s) => s.hostUpdate?.()), this.update(e)) : this._$EM();
|
|
227
|
+
} catch (s) {
|
|
228
|
+
throw t = !1, this._$EM(), s;
|
|
229
|
+
}
|
|
230
|
+
t && this._$AE(e);
|
|
231
|
+
}
|
|
232
|
+
willUpdate(t) {
|
|
233
|
+
}
|
|
234
|
+
_$AE(t) {
|
|
235
|
+
this._$EO?.forEach((e) => e.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
236
|
+
}
|
|
237
|
+
_$EM() {
|
|
238
|
+
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
|
|
239
|
+
}
|
|
240
|
+
get updateComplete() {
|
|
241
|
+
return this.getUpdateComplete();
|
|
242
|
+
}
|
|
243
|
+
getUpdateComplete() {
|
|
244
|
+
return this._$ES;
|
|
245
|
+
}
|
|
246
|
+
shouldUpdate(t) {
|
|
247
|
+
return !0;
|
|
248
|
+
}
|
|
249
|
+
update(t) {
|
|
250
|
+
this._$Eq &&= this._$Eq.forEach((e) => this._$ET(e, this[e])), this._$EM();
|
|
251
|
+
}
|
|
252
|
+
updated(t) {
|
|
253
|
+
}
|
|
254
|
+
firstUpdated(t) {
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[S("elementProperties")] = /* @__PURE__ */ new Map(), y[S("finalized")] = /* @__PURE__ */ new Map(), pt?.({ ReactiveElement: y }), (M.reactiveElementVersions ??= []).push("2.1.0");
|
|
258
|
+
/**
|
|
259
|
+
* @license
|
|
260
|
+
* Copyright 2017 Google LLC
|
|
261
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
262
|
+
*/
|
|
263
|
+
const L = globalThis, H = L.trustedTypes, q = H ? H.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, Y = "$lit$", _ = `lit$${Math.random().toFixed(9).slice(2)}$`, tt = "?" + _, ut = `<${tt}>`, m = document, b = () => m.createComment(""), w = (r) => r === null || typeof r != "object" && typeof r != "function", j = Array.isArray, $t = (r) => j(r) || typeof r?.[Symbol.iterator] == "function", N = `[
|
|
264
|
+
\f\r]`, E = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, J = /-->/g, K = />/g, f = RegExp(`>|${N}(?:([^\\s"'>=/]+)(${N}*=${N}*(?:[^
|
|
265
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Z = /'/g, F = /"/g, et = /^(?:script|style|textarea|title)$/i, _t = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), xt = _t(1), g = Symbol.for("lit-noChange"), c = Symbol.for("lit-nothing"), G = /* @__PURE__ */ new WeakMap(), A = m.createTreeWalker(m, 129);
|
|
266
|
+
function st(r, t) {
|
|
267
|
+
if (!j(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
268
|
+
return q !== void 0 ? q.createHTML(t) : t;
|
|
269
|
+
}
|
|
270
|
+
const ft = (r, t) => {
|
|
271
|
+
const e = r.length - 1, s = [];
|
|
272
|
+
let i, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = E;
|
|
273
|
+
for (let d = 0; d < e; d++) {
|
|
274
|
+
const h = r[d];
|
|
275
|
+
let l, p, a = -1, u = 0;
|
|
276
|
+
for (; u < h.length && (o.lastIndex = u, p = o.exec(h), p !== null); ) u = o.lastIndex, o === E ? p[1] === "!--" ? o = J : p[1] !== void 0 ? o = K : p[2] !== void 0 ? (et.test(p[2]) && (i = RegExp("</" + p[2], "g")), o = f) : p[3] !== void 0 && (o = f) : o === f ? p[0] === ">" ? (o = i ?? E, a = -1) : p[1] === void 0 ? a = -2 : (a = o.lastIndex - p[2].length, l = p[1], o = p[3] === void 0 ? f : p[3] === '"' ? F : Z) : o === F || o === Z ? o = f : o === J || o === K ? o = E : (o = f, i = void 0);
|
|
277
|
+
const $ = o === f && r[d + 1].startsWith("/>") ? " " : "";
|
|
278
|
+
n += o === E ? h + ut : a >= 0 ? (s.push(l), h.slice(0, a) + Y + h.slice(a) + _ + $) : h + _ + (a === -2 ? d : $);
|
|
279
|
+
}
|
|
280
|
+
return [st(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
281
|
+
};
|
|
282
|
+
class C {
|
|
283
|
+
constructor({ strings: t, _$litType$: e }, s) {
|
|
284
|
+
let i;
|
|
285
|
+
this.parts = [];
|
|
286
|
+
let n = 0, o = 0;
|
|
287
|
+
const d = t.length - 1, h = this.parts, [l, p] = ft(t, e);
|
|
288
|
+
if (this.el = C.createElement(l, s), A.currentNode = this.el.content, e === 2 || e === 3) {
|
|
289
|
+
const a = this.el.content.firstChild;
|
|
290
|
+
a.replaceWith(...a.childNodes);
|
|
291
|
+
}
|
|
292
|
+
for (; (i = A.nextNode()) !== null && h.length < d; ) {
|
|
293
|
+
if (i.nodeType === 1) {
|
|
294
|
+
if (i.hasAttributes()) for (const a of i.getAttributeNames()) if (a.endsWith(Y)) {
|
|
295
|
+
const u = p[o++], $ = i.getAttribute(a).split(_), x = /([.?@])?(.*)/.exec(u);
|
|
296
|
+
h.push({ type: 1, index: n, name: x[2], strings: $, ctor: x[1] === "." ? mt : x[1] === "?" ? yt : x[1] === "@" ? gt : T }), i.removeAttribute(a);
|
|
297
|
+
} else a.startsWith(_) && (h.push({ type: 6, index: n }), i.removeAttribute(a));
|
|
298
|
+
if (et.test(i.tagName)) {
|
|
299
|
+
const a = i.textContent.split(_), u = a.length - 1;
|
|
300
|
+
if (u > 0) {
|
|
301
|
+
i.textContent = H ? H.emptyScript : "";
|
|
302
|
+
for (let $ = 0; $ < u; $++) i.append(a[$], b()), A.nextNode(), h.push({ type: 2, index: ++n });
|
|
303
|
+
i.append(a[u], b());
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
} else if (i.nodeType === 8) if (i.data === tt) h.push({ type: 2, index: n });
|
|
307
|
+
else {
|
|
308
|
+
let a = -1;
|
|
309
|
+
for (; (a = i.data.indexOf(_, a + 1)) !== -1; ) h.push({ type: 7, index: n }), a += _.length - 1;
|
|
310
|
+
}
|
|
311
|
+
n++;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
static createElement(t, e) {
|
|
315
|
+
const s = m.createElement("template");
|
|
316
|
+
return s.innerHTML = t, s;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
function v(r, t, e = r, s) {
|
|
320
|
+
if (t === g) return t;
|
|
321
|
+
let i = s !== void 0 ? e._$Co?.[s] : e._$Cl;
|
|
322
|
+
const n = w(t) ? void 0 : t._$litDirective$;
|
|
323
|
+
return i?.constructor !== n && (i?._$AO?.(!1), n === void 0 ? i = void 0 : (i = new n(r), i._$AT(r, e, s)), s !== void 0 ? (e._$Co ??= [])[s] = i : e._$Cl = i), i !== void 0 && (t = v(r, i._$AS(r, t.values), i, s)), t;
|
|
324
|
+
}
|
|
325
|
+
class At {
|
|
326
|
+
constructor(t, e) {
|
|
327
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
328
|
+
}
|
|
329
|
+
get parentNode() {
|
|
330
|
+
return this._$AM.parentNode;
|
|
331
|
+
}
|
|
332
|
+
get _$AU() {
|
|
333
|
+
return this._$AM._$AU;
|
|
334
|
+
}
|
|
335
|
+
u(t) {
|
|
336
|
+
const { el: { content: e }, parts: s } = this._$AD, i = (t?.creationScope ?? m).importNode(e, !0);
|
|
337
|
+
A.currentNode = i;
|
|
338
|
+
let n = A.nextNode(), o = 0, d = 0, h = s[0];
|
|
339
|
+
for (; h !== void 0; ) {
|
|
340
|
+
if (o === h.index) {
|
|
341
|
+
let l;
|
|
342
|
+
h.type === 2 ? l = new P(n, n.nextSibling, this, t) : h.type === 1 ? l = new h.ctor(n, h.name, h.strings, this, t) : h.type === 6 && (l = new vt(n, this, t)), this._$AV.push(l), h = s[++d];
|
|
343
|
+
}
|
|
344
|
+
o !== h?.index && (n = A.nextNode(), o++);
|
|
345
|
+
}
|
|
346
|
+
return A.currentNode = m, i;
|
|
347
|
+
}
|
|
348
|
+
p(t) {
|
|
349
|
+
let e = 0;
|
|
350
|
+
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++;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
class P {
|
|
354
|
+
get _$AU() {
|
|
355
|
+
return this._$AM?._$AU ?? this._$Cv;
|
|
356
|
+
}
|
|
357
|
+
constructor(t, e, s, i) {
|
|
358
|
+
this.type = 2, this._$AH = c, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = i, this._$Cv = i?.isConnected ?? !0;
|
|
359
|
+
}
|
|
360
|
+
get parentNode() {
|
|
361
|
+
let t = this._$AA.parentNode;
|
|
362
|
+
const e = this._$AM;
|
|
363
|
+
return e !== void 0 && t?.nodeType === 11 && (t = e.parentNode), t;
|
|
364
|
+
}
|
|
365
|
+
get startNode() {
|
|
366
|
+
return this._$AA;
|
|
367
|
+
}
|
|
368
|
+
get endNode() {
|
|
369
|
+
return this._$AB;
|
|
370
|
+
}
|
|
371
|
+
_$AI(t, e = this) {
|
|
372
|
+
t = v(this, t, e), w(t) ? t === c || t == null || t === "" ? (this._$AH !== c && this._$AR(), this._$AH = c) : t !== this._$AH && t !== g && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : $t(t) ? this.k(t) : this._(t);
|
|
373
|
+
}
|
|
374
|
+
O(t) {
|
|
375
|
+
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
376
|
+
}
|
|
377
|
+
T(t) {
|
|
378
|
+
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
379
|
+
}
|
|
380
|
+
_(t) {
|
|
381
|
+
this._$AH !== c && w(this._$AH) ? this._$AA.nextSibling.data = t : this.T(m.createTextNode(t)), this._$AH = t;
|
|
382
|
+
}
|
|
383
|
+
$(t) {
|
|
384
|
+
const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = C.createElement(st(s.h, s.h[0]), this.options)), s);
|
|
385
|
+
if (this._$AH?._$AD === i) this._$AH.p(e);
|
|
386
|
+
else {
|
|
387
|
+
const n = new At(i, this), o = n.u(this.options);
|
|
388
|
+
n.p(e), this.T(o), this._$AH = n;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
_$AC(t) {
|
|
392
|
+
let e = G.get(t.strings);
|
|
393
|
+
return e === void 0 && G.set(t.strings, e = new C(t)), e;
|
|
394
|
+
}
|
|
395
|
+
k(t) {
|
|
396
|
+
j(this._$AH) || (this._$AH = [], this._$AR());
|
|
397
|
+
const e = this._$AH;
|
|
398
|
+
let s, i = 0;
|
|
399
|
+
for (const n of t) i === e.length ? e.push(s = new P(this.O(b()), this.O(b()), this, this.options)) : s = e[i], s._$AI(n), i++;
|
|
400
|
+
i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
|
|
401
|
+
}
|
|
402
|
+
_$AR(t = this._$AA.nextSibling, e) {
|
|
403
|
+
for (this._$AP?.(!1, !0, e); t && t !== this._$AB; ) {
|
|
404
|
+
const s = t.nextSibling;
|
|
405
|
+
t.remove(), t = s;
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
setConnected(t) {
|
|
409
|
+
this._$AM === void 0 && (this._$Cv = t, this._$AP?.(t));
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
class T {
|
|
413
|
+
get tagName() {
|
|
414
|
+
return this.element.tagName;
|
|
415
|
+
}
|
|
416
|
+
get _$AU() {
|
|
417
|
+
return this._$AM._$AU;
|
|
418
|
+
}
|
|
419
|
+
constructor(t, e, s, i, n) {
|
|
420
|
+
this.type = 1, this._$AH = c, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = n, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = c;
|
|
421
|
+
}
|
|
422
|
+
_$AI(t, e = this, s, i) {
|
|
423
|
+
const n = this.strings;
|
|
424
|
+
let o = !1;
|
|
425
|
+
if (n === void 0) t = v(this, t, e, 0), o = !w(t) || t !== this._$AH && t !== g, o && (this._$AH = t);
|
|
426
|
+
else {
|
|
427
|
+
const d = t;
|
|
428
|
+
let h, l;
|
|
429
|
+
for (t = n[0], h = 0; h < n.length - 1; h++) l = v(this, d[s + h], e, h), l === g && (l = this._$AH[h]), o ||= !w(l) || l !== this._$AH[h], l === c ? t = c : t !== c && (t += (l ?? "") + n[h + 1]), this._$AH[h] = l;
|
|
430
|
+
}
|
|
431
|
+
o && !i && this.j(t);
|
|
432
|
+
}
|
|
433
|
+
j(t) {
|
|
434
|
+
t === c ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
class mt extends T {
|
|
438
|
+
constructor() {
|
|
439
|
+
super(...arguments), this.type = 3;
|
|
440
|
+
}
|
|
441
|
+
j(t) {
|
|
442
|
+
this.element[this.name] = t === c ? void 0 : t;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
class yt extends T {
|
|
446
|
+
constructor() {
|
|
447
|
+
super(...arguments), this.type = 4;
|
|
448
|
+
}
|
|
449
|
+
j(t) {
|
|
450
|
+
this.element.toggleAttribute(this.name, !!t && t !== c);
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
class gt extends T {
|
|
454
|
+
constructor(t, e, s, i, n) {
|
|
455
|
+
super(t, e, s, i, n), this.type = 5;
|
|
456
|
+
}
|
|
457
|
+
_$AI(t, e = this) {
|
|
458
|
+
if ((t = v(this, t, e, 0) ?? c) === g) return;
|
|
459
|
+
const s = this._$AH, i = t === c && s !== c || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, n = t !== c && (s === c || i);
|
|
460
|
+
i && this.element.removeEventListener(this.name, this, s), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
461
|
+
}
|
|
462
|
+
handleEvent(t) {
|
|
463
|
+
typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, t) : this._$AH.handleEvent(t);
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
class vt {
|
|
467
|
+
constructor(t, e, s) {
|
|
468
|
+
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
|
|
469
|
+
}
|
|
470
|
+
get _$AU() {
|
|
471
|
+
return this._$AM._$AU;
|
|
472
|
+
}
|
|
473
|
+
_$AI(t) {
|
|
474
|
+
v(this, t);
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
const Et = L.litHtmlPolyfillSupport;
|
|
478
|
+
Et?.(C, P), (L.litHtmlVersions ??= []).push("3.3.0");
|
|
479
|
+
const St = (r, t, e) => {
|
|
480
|
+
const s = e?.renderBefore ?? t;
|
|
481
|
+
let i = s._$litPart$;
|
|
482
|
+
if (i === void 0) {
|
|
483
|
+
const n = e?.renderBefore ?? null;
|
|
484
|
+
s._$litPart$ = i = new P(t.insertBefore(b(), n), n, void 0, e ?? {});
|
|
485
|
+
}
|
|
486
|
+
return i._$AI(r), i;
|
|
487
|
+
};
|
|
488
|
+
/**
|
|
489
|
+
* @license
|
|
490
|
+
* Copyright 2017 Google LLC
|
|
491
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
492
|
+
*/
|
|
493
|
+
const z = globalThis;
|
|
494
|
+
class O extends y {
|
|
495
|
+
constructor() {
|
|
496
|
+
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
497
|
+
}
|
|
498
|
+
createRenderRoot() {
|
|
499
|
+
const t = super.createRenderRoot();
|
|
500
|
+
return this.renderOptions.renderBefore ??= t.firstChild, t;
|
|
501
|
+
}
|
|
502
|
+
update(t) {
|
|
503
|
+
const e = this.render();
|
|
504
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = St(e, this.renderRoot, this.renderOptions);
|
|
505
|
+
}
|
|
506
|
+
connectedCallback() {
|
|
507
|
+
super.connectedCallback(), this._$Do?.setConnected(!0);
|
|
508
|
+
}
|
|
509
|
+
disconnectedCallback() {
|
|
510
|
+
super.disconnectedCallback(), this._$Do?.setConnected(!1);
|
|
511
|
+
}
|
|
512
|
+
render() {
|
|
513
|
+
return g;
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
O._$litElement$ = !0, O.finalized = !0, z.litElementHydrateSupport?.({ LitElement: O });
|
|
517
|
+
const bt = z.litElementPolyfillSupport;
|
|
518
|
+
bt?.({ LitElement: O });
|
|
519
|
+
(z.litElementVersions ??= []).push("4.2.0");
|
|
520
|
+
export {
|
|
521
|
+
Ct as a,
|
|
522
|
+
O as i,
|
|
523
|
+
xt as x
|
|
524
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2019 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
+
*/const O=globalThis,k=O.ShadowRoot&&(O.ShadyCSS===void 0||O.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,D=Symbol(),B=new WeakMap;let Q=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==D)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(k&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=B.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&B.set(e,t))}return t}toString(){return this.cssText}};const it=r=>new Q(typeof r=="string"?r:r+"",void 0,D),rt=(r,...t)=>{const e=r.length===1?r[0]:t.reduce((s,i,n)=>s+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+r[n+1],r[0]);return new Q(e,r,D)},nt=(r,t)=>{if(k)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),i=O.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,r.appendChild(s)}},I=k?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return it(e)})(r):r;/**
|
|
6
|
+
* @license
|
|
7
|
+
* Copyright 2017 Google LLC
|
|
8
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
+
*/const{is:ot,defineProperty:ht,getOwnPropertyDescriptor:at,getOwnPropertyNames:lt,getOwnPropertySymbols:ct,getPrototypeOf:dt}=Object,M=globalThis,V=M.trustedTypes,pt=V?V.emptyScript:"",ut=M.reactiveElementPolyfillSupport,S=(r,t)=>r,R={toAttribute(r,t){switch(t){case Boolean:r=r?pt: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}},X=(r,t)=>!ot(r,t),W={attribute:!0,type:String,converter:R,reflect:!1,useDefault:!1,hasChanged:X};Symbol.metadata??=Symbol("metadata"),M.litPropertyMetadata??=new WeakMap;let y=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=W){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&ht(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:n}=at(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get:i,set(o){const d=i?.call(this);n?.call(this,o),this.requestUpdate(t,d,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??W}static _$Ei(){if(this.hasOwnProperty(S("elementProperties")))return;const t=dt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(S("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(S("properties"))){const e=this.properties,s=[...lt(e),...ct(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(I(i))}else t!==void 0&&e.push(I(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(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.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 nt(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){const n=(s.converter?.toAttribute!==void 0?s.converter:R).toAttribute(e,s.type);this._$Em=t,n==null?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(t,e){const s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const n=s.getPropertyOptions(i),o=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:R;this._$Em=i,this[i]=o.fromAttribute(e,n.type)??this._$Ej?.get(i)??null,this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){const i=this.constructor,n=this[t];if(s??=i.getPropertyOptions(t),!((s.hasChanged??X)(n,e)||s.useDefault&&s.reflect&&n===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:n},o){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,o??e??this[t]),n!==!0||o!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),i===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[i,n]of this._$Ep)this[i]=n;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[i,n]of s){const{wrapped:o}=n,d=this[i];o!==!0||this._$AL.has(i)||d===void 0||this.C(i,void 0,n,d)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(s=>s.hostUpdate?.()),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};y.elementStyles=[],y.shadowRootOptions={mode:"open"},y[S("elementProperties")]=new Map,y[S("finalized")]=new Map,ut?.({ReactiveElement:y}),(M.reactiveElementVersions??=[]).push("2.1.0");/**
|
|
10
|
+
* @license
|
|
11
|
+
* Copyright 2017 Google LLC
|
|
12
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
+
*/const L=globalThis,H=L.trustedTypes,q=H?H.createPolicy("lit-html",{createHTML:r=>r}):void 0,Y="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,tt="?"+_,$t=`<${tt}>`,m=document,w=()=>m.createComment(""),C=r=>r===null||typeof r!="object"&&typeof r!="function",j=Array.isArray,_t=r=>j(r)||typeof r?.[Symbol.iterator]=="function",N=`[
|
|
14
|
+
\f\r]`,E=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,J=/-->/g,K=/>/g,f=RegExp(`>|${N}(?:([^\\s"'>=/]+)(${N}*=${N}*(?:[^
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Z=/'/g,F=/"/g,et=/^(?:script|style|textarea|title)$/i,ft=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),At=ft(1),g=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),G=new WeakMap,A=m.createTreeWalker(m,129);function st(r,t){if(!j(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return q!==void 0?q.createHTML(t):t}const mt=(r,t)=>{const e=r.length-1,s=[];let i,n=t===2?"<svg>":t===3?"<math>":"",o=E;for(let d=0;d<e;d++){const h=r[d];let l,p,a=-1,u=0;for(;u<h.length&&(o.lastIndex=u,p=o.exec(h),p!==null);)u=o.lastIndex,o===E?p[1]==="!--"?o=J:p[1]!==void 0?o=K:p[2]!==void 0?(et.test(p[2])&&(i=RegExp("</"+p[2],"g")),o=f):p[3]!==void 0&&(o=f):o===f?p[0]===">"?(o=i??E,a=-1):p[1]===void 0?a=-2:(a=o.lastIndex-p[2].length,l=p[1],o=p[3]===void 0?f:p[3]==='"'?F:Z):o===F||o===Z?o=f:o===J||o===K?o=E:(o=f,i=void 0);const $=o===f&&r[d+1].startsWith("/>")?" ":"";n+=o===E?h+$t:a>=0?(s.push(l),h.slice(0,a)+Y+h.slice(a)+_+$):h+_+(a===-2?d:$)}return[st(r,n+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};class P{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let n=0,o=0;const d=t.length-1,h=this.parts,[l,p]=mt(t,e);if(this.el=P.createElement(l,s),A.currentNode=this.el.content,e===2||e===3){const a=this.el.content.firstChild;a.replaceWith(...a.childNodes)}for(;(i=A.nextNode())!==null&&h.length<d;){if(i.nodeType===1){if(i.hasAttributes())for(const a of i.getAttributeNames())if(a.endsWith(Y)){const u=p[o++],$=i.getAttribute(a).split(_),U=/([.?@])?(.*)/.exec(u);h.push({type:1,index:n,name:U[2],strings:$,ctor:U[1]==="."?gt:U[1]==="?"?vt:U[1]==="@"?Et:T}),i.removeAttribute(a)}else a.startsWith(_)&&(h.push({type:6,index:n}),i.removeAttribute(a));if(et.test(i.tagName)){const a=i.textContent.split(_),u=a.length-1;if(u>0){i.textContent=H?H.emptyScript:"";for(let $=0;$<u;$++)i.append(a[$],w()),A.nextNode(),h.push({type:2,index:++n});i.append(a[u],w())}}}else if(i.nodeType===8)if(i.data===tt)h.push({type:2,index:n});else{let a=-1;for(;(a=i.data.indexOf(_,a+1))!==-1;)h.push({type:7,index:n}),a+=_.length-1}n++}}static createElement(t,e){const s=m.createElement("template");return s.innerHTML=t,s}}function v(r,t,e=r,s){if(t===g)return t;let i=s!==void 0?e._$Co?.[s]:e._$Cl;const n=C(t)?void 0:t._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),n===void 0?i=void 0:(i=new n(r),i._$AT(r,e,s)),s!==void 0?(e._$Co??=[])[s]=i:e._$Cl=i),i!==void 0&&(t=v(r,i._$AS(r,t.values),i,s)),t}class yt{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?.creationScope??m).importNode(e,!0);A.currentNode=i;let n=A.nextNode(),o=0,d=0,h=s[0];for(;h!==void 0;){if(o===h.index){let l;h.type===2?l=new x(n,n.nextSibling,this,t):h.type===1?l=new h.ctor(n,h.name,h.strings,this,t):h.type===6&&(l=new St(n,this,t)),this._$AV.push(l),h=s[++d]}o!==h?.index&&(n=A.nextNode(),o++)}return A.currentNode=m,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 x{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const 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=v(this,t,e),C(t)?t===c||t==null||t===""?(this._$AH!==c&&this._$AR(),this._$AH=c):t!==this._$AH&&t!==g&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):_t(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!==c&&C(this._$AH)?this._$AA.nextSibling.data=t:this.T(m.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,i=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=P.createElement(st(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else{const n=new yt(i,this),o=n.u(this.options);n.p(e),this.T(o),this._$AH=n}}_$AC(t){let e=G.get(t.strings);return e===void 0&&G.set(t.strings,e=new P(t)),e}k(t){j(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const n of t)i===e.length?e.push(s=new x(this.O(w()),this.O(w()),this,this.options)):s=e[i],s._$AI(n),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}}class T{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,n){this.type=1,this._$AH=c,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=c}_$AI(t,e=this,s,i){const n=this.strings;let o=!1;if(n===void 0)t=v(this,t,e,0),o=!C(t)||t!==this._$AH&&t!==g,o&&(this._$AH=t);else{const d=t;let h,l;for(t=n[0],h=0;h<n.length-1;h++)l=v(this,d[s+h],e,h),l===g&&(l=this._$AH[h]),o||=!C(l)||l!==this._$AH[h],l===c?t=c:t!==c&&(t+=(l??"")+n[h+1]),this._$AH[h]=l}o&&!i&&this.j(t)}j(t){t===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class gt extends T{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===c?void 0:t}}class vt extends T{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==c)}}class Et extends T{constructor(t,e,s,i,n){super(t,e,s,i,n),this.type=5}_$AI(t,e=this){if((t=v(this,t,e,0)??c)===g)return;const s=this._$AH,i=t===c&&s!==c||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==c&&(s===c||i);i&&this.element.removeEventListener(this.name,this,s),n&&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)}}class St{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){v(this,t)}}const bt=L.litHtmlPolyfillSupport;bt?.(P,x),(L.litHtmlVersions??=[]).push("3.3.0");const wt=(r,t,e)=>{const s=e?.renderBefore??t;let i=s._$litPart$;if(i===void 0){const n=e?.renderBefore??null;s._$litPart$=i=new x(t.insertBefore(w(),n),n,void 0,e??{})}return i._$AI(r),i};/**
|
|
16
|
+
* @license
|
|
17
|
+
* Copyright 2017 Google LLC
|
|
18
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
|
+
*/const z=globalThis;class b extends y{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=wt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return g}}b._$litElement$=!0,b.finalized=!0,z.litElementHydrateSupport?.({LitElement:b});const Ct=z.litElementPolyfillSupport;Ct?.({LitElement:b});(z.litElementVersions??=[]).push("4.2.0");exports.i=b;exports.i$1=rt;exports.x=At;
|