UNPKG

@webwriter/chemdraw

Version:

Periodic table of the elements. Each element can be focused on to get a brief overview of its properties.

1,132 lines (1,128 loc) 219 kB
var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __knownSymbol = (name, symbol) => (symbol = Symbol[name]) ? symbol : Symbol.for("Symbol." + name); var __typeError = (msg) => { throw TypeError(msg); }; var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); var __decoratorStart = (base) => [, , , __create(base?.[__knownSymbol("metadata")] ?? null)]; var __decoratorStrings = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"]; var __expectFn = (fn) => fn !== void 0 && typeof fn !== "function" ? __typeError("Function expected") : fn; var __decoratorContext = (kind, name, done, metadata, fns) => ({ kind: __decoratorStrings[kind], name, metadata, addInitializer: (fn) => done._ ? __typeError("Already initialized") : fns.push(__expectFn(fn || null)) }); var __decoratorMetadata = (array, target) => __defNormalProp(target, __knownSymbol("metadata"), array[3]); var __runInitializers = (array, flags, self, value) => { for (var i8 = 0, fns = array[flags >> 1], n9 = fns && fns.length; i8 < n9; i8++) flags & 1 ? fns[i8].call(self) : value = fns[i8].call(self, value); return value; }; var __decorateElement = (array, flags, name, decorators, target, extra) => { var fn, it, done, ctx, access, k3 = flags & 7, s7 = !!(flags & 8), p5 = !!(flags & 16); var j2 = k3 > 3 ? array.length + 1 : k3 ? s7 ? 1 : 2 : 0, key = __decoratorStrings[k3 + 5]; var initializers = k3 > 3 && (array[j2 - 1] = []), extraInitializers = array[j2] || (array[j2] = []); var desc = k3 && (!p5 && !s7 && (target = target.prototype), k3 < 5 && (k3 > 3 || !p5) && __getOwnPropDesc(k3 < 4 ? target : { get [name]() { return __privateGet(this, extra); }, set [name](x3) { return __privateSet(this, extra, x3); } }, name)); k3 ? p5 && k3 < 4 && __name(extra, (k3 > 2 ? "set " : k3 > 1 ? "get " : "") + name) : __name(target, name); for (var i8 = decorators.length - 1; i8 >= 0; i8--) { ctx = __decoratorContext(k3, name, done = {}, array[3], extraInitializers); if (k3) { ctx.static = s7, ctx.private = p5, access = ctx.access = { has: p5 ? (x3) => __privateIn(target, x3) : (x3) => name in x3 }; if (k3 ^ 3) access.get = p5 ? (x3) => (k3 ^ 1 ? __privateGet : __privateMethod)(x3, target, k3 ^ 4 ? extra : desc.get) : (x3) => x3[name]; if (k3 > 2) access.set = p5 ? (x3, y5) => __privateSet(x3, target, y5, k3 ^ 4 ? extra : desc.set) : (x3, y5) => x3[name] = y5; } it = (0, decorators[i8])(k3 ? k3 < 4 ? p5 ? extra : desc[key] : k3 > 4 ? void 0 : { get: desc.get, set: desc.set } : target, ctx), done._ = 1; if (k3 ^ 4 || it === void 0) __expectFn(it) && (k3 > 4 ? initializers.unshift(it) : k3 ? p5 ? extra = it : desc[key] = it : target = it); else if (typeof it !== "object" || it === null) __typeError("Object expected"); else __expectFn(fn = it.get) && (desc.get = fn), __expectFn(fn = it.set) && (desc.set = fn), __expectFn(fn = it.init) && initializers.unshift(fn); } return k3 || __decoratorMetadata(array, target), desc && __defProp(target, name, desc), p5 ? k3 ^ 4 ? extra : desc : target; }; var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg); var __privateIn = (member, obj) => Object(obj) !== obj ? __typeError('Cannot use the "in" operator on this value') : member.has(obj); var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj)); var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value); var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value); var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method); // node_modules/@webwriter/lit/index.js var __create2 = Object.create; var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; var __knownSymbol2 = (name, symbol) => (symbol = Symbol[name]) ? symbol : Symbol.for("Symbol." + name); var __typeError2 = (msg) => { throw TypeError(msg); }; var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; var __name2 = (target, value) => __defProp2(target, "name", { value, configurable: true }); var __decoratorStart2 = (base) => [, , , __create2(base?.[__knownSymbol2("metadata")] ?? null)]; var __decoratorStrings2 = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"]; var __expectFn2 = (fn) => fn !== void 0 && typeof fn !== "function" ? __typeError2("Function expected") : fn; var __decoratorContext2 = (kind, name, done, metadata, fns) => ({ kind: __decoratorStrings2[kind], name, metadata, addInitializer: (fn) => done._ ? __typeError2("Already initialized") : fns.push(__expectFn2(fn || null)) }); var __decoratorMetadata2 = (array, target) => __defNormalProp2(target, __knownSymbol2("metadata"), array[3]); var __runInitializers2 = (array, flags, self, value) => { for (var i52 = 0, fns = array[flags >> 1], n52 = fns && fns.length; i52 < n52; i52++) flags & 1 ? fns[i52].call(self) : value = fns[i52].call(self, value); return value; }; var __decorateElement2 = (array, flags, name, decorators, target, extra) => { var fn, it, done, ctx, access, k22 = flags & 7, s42 = !!(flags & 8), p32 = !!(flags & 16); var j2 = k22 > 3 ? array.length + 1 : k22 ? s42 ? 1 : 2 : 0, key = __decoratorStrings2[k22 + 5]; var initializers = k22 > 3 && (array[j2 - 1] = []), extraInitializers = array[j2] || (array[j2] = []); var desc = k22 && (!p32 && !s42 && (target = target.prototype), k22 < 5 && (k22 > 3 || !p32) && __getOwnPropDesc2(k22 < 4 ? target : { get [name]() { return __privateGet2(this, extra); }, set [name](x22) { return __privateSet2(this, extra, x22); } }, name)); k22 ? p32 && k22 < 4 && __name2(extra, (k22 > 2 ? "set " : k22 > 1 ? "get " : "") + name) : __name2(target, name); for (var i52 = decorators.length - 1; i52 >= 0; i52--) { ctx = __decoratorContext2(k22, name, done = {}, array[3], extraInitializers); if (k22) { ctx.static = s42, ctx.private = p32, access = ctx.access = { has: p32 ? (x22) => __privateIn2(target, x22) : (x22) => name in x22 }; if (k22 ^ 3) access.get = p32 ? (x22) => (k22 ^ 1 ? __privateGet2 : __privateMethod2)(x22, target, k22 ^ 4 ? extra : desc.get) : (x22) => x22[name]; if (k22 > 2) access.set = p32 ? (x22, y32) => __privateSet2(x22, target, y32, k22 ^ 4 ? extra : desc.set) : (x22, y32) => x22[name] = y32; } it = (0, decorators[i52])(k22 ? k22 < 4 ? p32 ? extra : desc[key] : k22 > 4 ? void 0 : { get: desc.get, set: desc.set } : target, ctx), done._ = 1; if (k22 ^ 4 || it === void 0) __expectFn2(it) && (k22 > 4 ? initializers.unshift(it) : k22 ? p32 ? extra = it : desc[key] = it : target = it); else if (typeof it !== "object" || it === null) __typeError2("Object expected"); else __expectFn2(fn = it.get) && (desc.get = fn), __expectFn2(fn = it.set) && (desc.set = fn), __expectFn2(fn = it.init) && initializers.unshift(fn); } return k22 || __decoratorMetadata2(array, target), desc && __defProp2(target, name, desc), p32 ? k22 ^ 4 ? extra : desc : target; }; var __publicField = (obj, key, value) => __defNormalProp2(obj, typeof key !== "symbol" ? key + "" : key, value); var __accessCheck2 = (obj, member, msg) => member.has(obj) || __typeError2("Cannot " + msg); var __privateIn2 = (member, obj) => Object(obj) !== obj ? __typeError2('Cannot use the "in" operator on this value') : member.has(obj); var __privateGet2 = (obj, member, getter) => (__accessCheck2(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj)); var __privateAdd2 = (obj, member, value) => member.has(obj) ? __typeError2("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value); var __privateSet2 = (obj, member, value, setter) => (__accessCheck2(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value); var __privateMethod2 = (obj, member, method) => (__accessCheck2(obj, member, "access private method"), method); var t = globalThis; var e = t.ShadowRoot && (void 0 === t.ShadyCSS || t.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype; var s = Symbol(); var o = /* @__PURE__ */ new WeakMap(); var n = class { constructor(t32, e52, o62) { if (this._$cssResult$ = true, o62 !== s) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead."); this.cssText = t32, this.t = e52; } get styleSheet() { let t32 = this.o; const s42 = this.t; if (e && void 0 === t32) { const e52 = void 0 !== s42 && 1 === s42.length; e52 && (t32 = o.get(s42)), void 0 === t32 && ((this.o = t32 = new CSSStyleSheet()).replaceSync(this.cssText), e52 && o.set(s42, t32)); } return t32; } toString() { return this.cssText; } }; var r = (t32) => new n("string" == typeof t32 ? t32 : t32 + "", void 0, s); var S = (s42, o62) => { if (e) s42.adoptedStyleSheets = o62.map((t32) => t32 instanceof CSSStyleSheet ? t32 : t32.styleSheet); else for (const e52 of o62) { const o72 = document.createElement("style"), n52 = t.litNonce; void 0 !== n52 && o72.setAttribute("nonce", n52), o72.textContent = e52.cssText, s42.appendChild(o72); } }; var c = e ? (t32) => t32 : (t32) => t32 instanceof CSSStyleSheet ? ((t42) => { let e52 = ""; for (const s42 of t42.cssRules) e52 += s42.cssText; return r(e52); })(t32) : t32; var { is: i2, defineProperty: e2, getOwnPropertyDescriptor: h, getOwnPropertyNames: r2, getOwnPropertySymbols: o2, getPrototypeOf: n2 } = Object; var a = globalThis; var c2 = a.trustedTypes; var l = c2 ? c2.emptyScript : ""; var p = a.reactiveElementPolyfillSupport; var d = (t32, s42) => t32; var u = { toAttribute(t32, s42) { switch (s42) { case Boolean: t32 = t32 ? l : null; break; case Object: case Array: t32 = null == t32 ? t32 : JSON.stringify(t32); } return t32; }, fromAttribute(t32, s42) { let i52 = t32; switch (s42) { case Boolean: i52 = null !== t32; break; case Number: i52 = null === t32 ? null : Number(t32); break; case Object: case Array: try { i52 = JSON.parse(t32); } catch (t42) { i52 = null; } } return i52; } }; var f = (t32, s42) => !i2(t32, s42); var b = { attribute: true, type: String, converter: u, reflect: false, useDefault: false, hasChanged: f }; Symbol.metadata ??= Symbol("metadata"), a.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap(); var y = class extends HTMLElement { static addInitializer(t32) { this._$Ei(), (this.l ??= []).push(t32); } static get observedAttributes() { return this.finalize(), this._$Eh && [...this._$Eh.keys()]; } static createProperty(t32, s42 = b) { if (s42.state && (s42.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t32) && ((s42 = Object.create(s42)).wrapped = true), this.elementProperties.set(t32, s42), !s42.noAccessor) { const i52 = Symbol(), h32 = this.getPropertyDescriptor(t32, i52, s42); void 0 !== h32 && e2(this.prototype, t32, h32); } } static getPropertyDescriptor(t32, s42, i52) { const { get: e52, set: r52 } = h(this.prototype, t32) ?? { get() { return this[s42]; }, set(t42) { this[s42] = t42; } }; return { get: e52, set(s52) { const h32 = e52?.call(this); r52?.call(this, s52), this.requestUpdate(t32, h32, i52); }, configurable: true, enumerable: true }; } static getPropertyOptions(t32) { return this.elementProperties.get(t32) ?? b; } static _$Ei() { if (this.hasOwnProperty(d("elementProperties"))) return; const t32 = n2(this); t32.finalize(), void 0 !== t32.l && (this.l = [...t32.l]), this.elementProperties = new Map(t32.elementProperties); } static finalize() { if (this.hasOwnProperty(d("finalized"))) return; if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d("properties"))) { const t42 = this.properties, s42 = [...r2(t42), ...o2(t42)]; for (const i52 of s42) this.createProperty(i52, t42[i52]); } const t32 = this[Symbol.metadata]; if (null !== t32) { const s42 = litPropertyMetadata.get(t32); if (void 0 !== s42) for (const [t42, i52] of s42) this.elementProperties.set(t42, i52); } this._$Eh = /* @__PURE__ */ new Map(); for (const [t42, s42] of this.elementProperties) { const i52 = this._$Eu(t42, s42); void 0 !== i52 && this._$Eh.set(i52, t42); } this.elementStyles = this.finalizeStyles(this.styles); } static finalizeStyles(s42) { const i52 = []; if (Array.isArray(s42)) { const e52 = new Set(s42.flat(1 / 0).reverse()); for (const s52 of e52) i52.unshift(c(s52)); } else void 0 !== s42 && i52.push(c(s42)); return i52; } static _$Eu(t32, s42) { const i52 = s42.attribute; return false === i52 ? void 0 : "string" == typeof i52 ? i52 : "string" == typeof t32 ? t32.toLowerCase() : void 0; } constructor() { super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev(); } _$Ev() { this._$ES = new Promise((t32) => this.enableUpdating = t32), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t32) => t32(this)); } addController(t32) { (this._$EO ??= /* @__PURE__ */ new Set()).add(t32), void 0 !== this.renderRoot && this.isConnected && t32.hostConnected?.(); } removeController(t32) { this._$EO?.delete(t32); } _$E_() { const t32 = /* @__PURE__ */ new Map(), s42 = this.constructor.elementProperties; for (const i52 of s42.keys()) this.hasOwnProperty(i52) && (t32.set(i52, this[i52]), delete this[i52]); t32.size > 0 && (this._$Ep = t32); } createRenderRoot() { const t32 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions); return S(t32, this.constructor.elementStyles), t32; } connectedCallback() { this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach((t32) => t32.hostConnected?.()); } enableUpdating(t32) { } disconnectedCallback() { this._$EO?.forEach((t32) => t32.hostDisconnected?.()); } attributeChangedCallback(t32, s42, i52) { this._$AK(t32, i52); } _$ET(t32, s42) { const i52 = this.constructor.elementProperties.get(t32), e52 = this.constructor._$Eu(t32, i52); if (void 0 !== e52 && true === i52.reflect) { const h32 = (void 0 !== i52.converter?.toAttribute ? i52.converter : u).toAttribute(s42, i52.type); this._$Em = t32, null == h32 ? this.removeAttribute(e52) : this.setAttribute(e52, h32), this._$Em = null; } } _$AK(t32, s42) { const i52 = this.constructor, e52 = i52._$Eh.get(t32); if (void 0 !== e52 && this._$Em !== e52) { const t42 = i52.getPropertyOptions(e52), h32 = "function" == typeof t42.converter ? { fromAttribute: t42.converter } : void 0 !== t42.converter?.fromAttribute ? t42.converter : u; this._$Em = e52, this[e52] = h32.fromAttribute(s42, t42.type) ?? this._$Ej?.get(e52) ?? null, this._$Em = null; } } requestUpdate(t32, s42, i52) { if (void 0 !== t32) { const e52 = this.constructor, h32 = this[t32]; if (i52 ??= e52.getPropertyOptions(t32), !((i52.hasChanged ?? f)(h32, s42) || i52.useDefault && i52.reflect && h32 === this._$Ej?.get(t32) && !this.hasAttribute(e52._$Eu(t32, i52)))) return; this.C(t32, s42, i52); } false === this.isUpdatePending && (this._$ES = this._$EP()); } C(t32, s42, { useDefault: i52, reflect: e52, wrapped: h32 }, r52) { i52 && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t32) && (this._$Ej.set(t32, r52 ?? s42 ?? this[t32]), true !== h32 || void 0 !== r52) || (this._$AL.has(t32) || (this.hasUpdated || i52 || (s42 = void 0), this._$AL.set(t32, s42)), true === e52 && this._$Em !== t32 && (this._$Eq ??= /* @__PURE__ */ new Set()).add(t32)); } async _$EP() { this.isUpdatePending = true; try { await this._$ES; } catch (t42) { Promise.reject(t42); } const t32 = this.scheduleUpdate(); return null != t32 && await t32, !this.isUpdatePending; } scheduleUpdate() { return this.performUpdate(); } performUpdate() { if (!this.isUpdatePending) return; if (!this.hasUpdated) { if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) { for (const [t52, s52] of this._$Ep) this[t52] = s52; this._$Ep = void 0; } const t42 = this.constructor.elementProperties; if (t42.size > 0) for (const [s52, i52] of t42) { const { wrapped: t52 } = i52, e52 = this[s52]; true !== t52 || this._$AL.has(s52) || void 0 === e52 || this.C(s52, void 0, i52, e52); } } let t32 = false; const s42 = this._$AL; try { t32 = this.shouldUpdate(s42), t32 ? (this.willUpdate(s42), this._$EO?.forEach((t42) => t42.hostUpdate?.()), this.update(s42)) : this._$EM(); } catch (s52) { throw t32 = false, this._$EM(), s52; } t32 && this._$AE(s42); } willUpdate(t32) { } _$AE(t32) { this._$EO?.forEach((t42) => t42.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t32)), this.updated(t32); } _$EM() { this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false; } get updateComplete() { return this.getUpdateComplete(); } getUpdateComplete() { return this._$ES; } shouldUpdate(t32) { return true; } update(t32) { this._$Eq &&= this._$Eq.forEach((t42) => this._$ET(t42, this[t42])), this._$EM(); } updated(t32) { } firstUpdated(t32) { } }; 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.0"); var t2 = globalThis; var i3 = t2.trustedTypes; var s2 = i3 ? i3.createPolicy("lit-html", { createHTML: (t32) => t32 }) : void 0; var e3 = "$lit$"; var h2 = `lit$${Math.random().toFixed(9).slice(2)}$`; var o3 = "?" + h2; var n3 = `<${o3}>`; var r3 = document; var l2 = () => r3.createComment(""); var c3 = (t32) => null === t32 || "object" != typeof t32 && "function" != typeof t32; var a2 = Array.isArray; var u2 = (t32) => a2(t32) || "function" == typeof t32?.[Symbol.iterator]; var d2 = "[ \n\f\r]"; var f2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g; var v = /-->/g; var _ = />/g; var m = RegExp(`>|${d2}(?:([^\\s"'>=/]+)(${d2}*=${d2}*(?:[^ \f\r"'\`<>=]|("|')|))|$)`, "g"); var p2 = /'/g; var g = /"/g; var $ = /^(?:script|style|textarea|title)$/i; var y2 = (t32) => (i52, ...s42) => ({ _$litType$: t32, strings: i52, values: s42 }); var x = y2(1); var b2 = y2(2); var w = y2(3); var T = Symbol.for("lit-noChange"); var E = Symbol.for("lit-nothing"); var A = /* @__PURE__ */ new WeakMap(); var C = r3.createTreeWalker(r3, 129); function P(t32, i52) { if (!a2(t32) || !t32.hasOwnProperty("raw")) throw Error("invalid template strings array"); return void 0 !== s2 ? s2.createHTML(i52) : i52; } var V = (t32, i52) => { const s42 = t32.length - 1, o62 = []; let r52, l32 = 2 === i52 ? "<svg>" : 3 === i52 ? "<math>" : "", c42 = f2; for (let i62 = 0; i62 < s42; i62++) { const s52 = t32[i62]; let a32, u32, d32 = -1, y32 = 0; for (; y32 < s52.length && (c42.lastIndex = y32, u32 = c42.exec(s52), null !== u32); ) y32 = c42.lastIndex, c42 === f2 ? "!--" === u32[1] ? c42 = v : void 0 !== u32[1] ? c42 = _ : void 0 !== u32[2] ? ($.test(u32[2]) && (r52 = RegExp("</" + u32[2], "g")), c42 = m) : void 0 !== u32[3] && (c42 = m) : c42 === m ? ">" === u32[0] ? (c42 = r52 ?? f2, d32 = -1) : void 0 === u32[1] ? d32 = -2 : (d32 = c42.lastIndex - u32[2].length, a32 = u32[1], c42 = void 0 === u32[3] ? m : '"' === u32[3] ? g : p2) : c42 === g || c42 === p2 ? c42 = m : c42 === v || c42 === _ ? c42 = f2 : (c42 = m, r52 = void 0); const x22 = c42 === m && t32[i62 + 1].startsWith("/>") ? " " : ""; l32 += c42 === f2 ? s52 + n3 : d32 >= 0 ? (o62.push(a32), s52.slice(0, d32) + e3 + s52.slice(d32) + h2 + x22) : s52 + h2 + (-2 === d32 ? i62 : x22); } return [P(t32, l32 + (t32[s42] || "<?>") + (2 === i52 ? "</svg>" : 3 === i52 ? "</math>" : "")), o62]; }; var N = class _N { constructor({ strings: t32, _$litType$: s42 }, n52) { let r52; this.parts = []; let c42 = 0, a32 = 0; const u32 = t32.length - 1, d32 = this.parts, [f32, v22] = V(t32, s42); if (this.el = _N.createElement(f32, n52), C.currentNode = this.el.content, 2 === s42 || 3 === s42) { const t42 = this.el.content.firstChild; t42.replaceWith(...t42.childNodes); } for (; null !== (r52 = C.nextNode()) && d32.length < u32; ) { if (1 === r52.nodeType) { if (r52.hasAttributes()) for (const t42 of r52.getAttributeNames()) if (t42.endsWith(e3)) { const i52 = v22[a32++], s52 = r52.getAttribute(t42).split(h2), e52 = /([.?@])?(.*)/.exec(i52); d32.push({ type: 1, index: c42, name: e52[2], strings: s52, ctor: "." === e52[1] ? H : "?" === e52[1] ? I : "@" === e52[1] ? L : k }), r52.removeAttribute(t42); } else t42.startsWith(h2) && (d32.push({ type: 6, index: c42 }), r52.removeAttribute(t42)); if ($.test(r52.tagName)) { const t42 = r52.textContent.split(h2), s52 = t42.length - 1; if (s52 > 0) { r52.textContent = i3 ? i3.emptyScript : ""; for (let i52 = 0; i52 < s52; i52++) r52.append(t42[i52], l2()), C.nextNode(), d32.push({ type: 2, index: ++c42 }); r52.append(t42[s52], l2()); } } } else if (8 === r52.nodeType) if (r52.data === o3) d32.push({ type: 2, index: c42 }); else { let t42 = -1; for (; -1 !== (t42 = r52.data.indexOf(h2, t42 + 1)); ) d32.push({ type: 7, index: c42 }), t42 += h2.length - 1; } c42++; } } static createElement(t32, i52) { const s42 = r3.createElement("template"); return s42.innerHTML = t32, s42; } }; function S2(t32, i52, s42 = t32, e52) { if (i52 === T) return i52; let h32 = void 0 !== e52 ? s42._$Co?.[e52] : s42._$Cl; const o62 = c3(i52) ? void 0 : i52._$litDirective$; return h32?.constructor !== o62 && (h32?._$AO?.(false), void 0 === o62 ? h32 = void 0 : (h32 = new o62(t32), h32._$AT(t32, s42, e52)), void 0 !== e52 ? (s42._$Co ??= [])[e52] = h32 : s42._$Cl = h32), void 0 !== h32 && (i52 = S2(t32, h32._$AS(t32, i52.values), h32, e52)), i52; } var M = class { constructor(t32, i52) { this._$AV = [], this._$AN = void 0, this._$AD = t32, this._$AM = i52; } get parentNode() { return this._$AM.parentNode; } get _$AU() { return this._$AM._$AU; } u(t32) { const { el: { content: i52 }, parts: s42 } = this._$AD, e52 = (t32?.creationScope ?? r3).importNode(i52, true); C.currentNode = e52; let h32 = C.nextNode(), o62 = 0, n52 = 0, l32 = s42[0]; for (; void 0 !== l32; ) { if (o62 === l32.index) { let i62; 2 === l32.type ? i62 = new R(h32, h32.nextSibling, this, t32) : 1 === l32.type ? i62 = new l32.ctor(h32, l32.name, l32.strings, this, t32) : 6 === l32.type && (i62 = new z(h32, this, t32)), this._$AV.push(i62), l32 = s42[++n52]; } o62 !== l32?.index && (h32 = C.nextNode(), o62++); } return C.currentNode = r3, e52; } p(t32) { let i52 = 0; for (const s42 of this._$AV) void 0 !== s42 && (void 0 !== s42.strings ? (s42._$AI(t32, s42, i52), i52 += s42.strings.length - 2) : s42._$AI(t32[i52])), i52++; } }; var R = class _R { get _$AU() { return this._$AM?._$AU ?? this._$Cv; } constructor(t32, i52, s42, e52) { this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t32, this._$AB = i52, this._$AM = s42, this.options = e52, this._$Cv = e52?.isConnected ?? true; } get parentNode() { let t32 = this._$AA.parentNode; const i52 = this._$AM; return void 0 !== i52 && 11 === t32?.nodeType && (t32 = i52.parentNode), t32; } get startNode() { return this._$AA; } get endNode() { return this._$AB; } _$AI(t32, i52 = this) { t32 = S2(this, t32, i52), c3(t32) ? t32 === E || null == t32 || "" === t32 ? (this._$AH !== E && this._$AR(), this._$AH = E) : t32 !== this._$AH && t32 !== T && this._(t32) : void 0 !== t32._$litType$ ? this.$(t32) : void 0 !== t32.nodeType ? this.T(t32) : u2(t32) ? this.k(t32) : this._(t32); } O(t32) { return this._$AA.parentNode.insertBefore(t32, this._$AB); } T(t32) { this._$AH !== t32 && (this._$AR(), this._$AH = this.O(t32)); } _(t32) { this._$AH !== E && c3(this._$AH) ? this._$AA.nextSibling.data = t32 : this.T(r3.createTextNode(t32)), this._$AH = t32; } $(t32) { const { values: i52, _$litType$: s42 } = t32, e52 = "number" == typeof s42 ? this._$AC(t32) : (void 0 === s42.el && (s42.el = N.createElement(P(s42.h, s42.h[0]), this.options)), s42); if (this._$AH?._$AD === e52) this._$AH.p(i52); else { const t42 = new M(e52, this), s52 = t42.u(this.options); t42.p(i52), this.T(s52), this._$AH = t42; } } _$AC(t32) { let i52 = A.get(t32.strings); return void 0 === i52 && A.set(t32.strings, i52 = new N(t32)), i52; } k(t32) { a2(this._$AH) || (this._$AH = [], this._$AR()); const i52 = this._$AH; let s42, e52 = 0; for (const h32 of t32) e52 === i52.length ? i52.push(s42 = new _R(this.O(l2()), this.O(l2()), this, this.options)) : s42 = i52[e52], s42._$AI(h32), e52++; e52 < i52.length && (this._$AR(s42 && s42._$AB.nextSibling, e52), i52.length = e52); } _$AR(t32 = this._$AA.nextSibling, i52) { for (this._$AP?.(false, true, i52); t32 && t32 !== this._$AB; ) { const i62 = t32.nextSibling; t32.remove(), t32 = i62; } } setConnected(t32) { void 0 === this._$AM && (this._$Cv = t32, this._$AP?.(t32)); } }; var k = class { get tagName() { return this.element.tagName; } get _$AU() { return this._$AM._$AU; } constructor(t32, i52, s42, e52, h32) { this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t32, this.name = i52, this._$AM = e52, this.options = h32, s42.length > 2 || "" !== s42[0] || "" !== s42[1] ? (this._$AH = Array(s42.length - 1).fill(new String()), this.strings = s42) : this._$AH = E; } _$AI(t32, i52 = this, s42, e52) { const h32 = this.strings; let o62 = false; if (void 0 === h32) t32 = S2(this, t32, i52, 0), o62 = !c3(t32) || t32 !== this._$AH && t32 !== T, o62 && (this._$AH = t32); else { const e62 = t32; let n52, r52; for (t32 = h32[0], n52 = 0; n52 < h32.length - 1; n52++) r52 = S2(this, e62[s42 + n52], i52, n52), r52 === T && (r52 = this._$AH[n52]), o62 ||= !c3(r52) || r52 !== this._$AH[n52], r52 === E ? t32 = E : t32 !== E && (t32 += (r52 ?? "") + h32[n52 + 1]), this._$AH[n52] = r52; } o62 && !e52 && this.j(t32); } j(t32) { t32 === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t32 ?? ""); } }; var H = class extends k { constructor() { super(...arguments), this.type = 3; } j(t32) { this.element[this.name] = t32 === E ? void 0 : t32; } }; var I = class extends k { constructor() { super(...arguments), this.type = 4; } j(t32) { this.element.toggleAttribute(this.name, !!t32 && t32 !== E); } }; var L = class extends k { constructor(t32, i52, s42, e52, h32) { super(t32, i52, s42, e52, h32), this.type = 5; } _$AI(t32, i52 = this) { if ((t32 = S2(this, t32, i52, 0) ?? E) === T) return; const s42 = this._$AH, e52 = t32 === E && s42 !== E || t32.capture !== s42.capture || t32.once !== s42.once || t32.passive !== s42.passive, h32 = t32 !== E && (s42 === E || e52); e52 && this.element.removeEventListener(this.name, this, s42), h32 && this.element.addEventListener(this.name, this, t32), this._$AH = t32; } handleEvent(t32) { "function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t32) : this._$AH.handleEvent(t32); } }; var z = class { constructor(t32, i52, s42) { this.element = t32, this.type = 6, this._$AN = void 0, this._$AM = i52, this.options = s42; } get _$AU() { return this._$AM._$AU; } _$AI(t32) { S2(this, t32); } }; var j = t2.litHtmlPolyfillSupport; j?.(N, R), (t2.litHtmlVersions ??= []).push("3.3.0"); var B = (t32, i52, s42) => { const e52 = s42?.renderBefore ?? i52; let h32 = e52._$litPart$; if (void 0 === h32) { const t42 = s42?.renderBefore ?? null; e52._$litPart$ = h32 = new R(i52.insertBefore(l2(), t42), t42, void 0, s42 ?? {}); } return h32._$AI(t32), h32; }; var s3 = globalThis; var i4 = class extends y { constructor() { super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0; } createRenderRoot() { const t32 = super.createRenderRoot(); return this.renderOptions.renderBefore ??= t32.firstChild, t32; } update(t32) { const r52 = this.render(); this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t32), this._$Do = B(r52, this.renderRoot, this.renderOptions); } connectedCallback() { super.connectedCallback(), this._$Do?.setConnected(true); } disconnectedCallback() { super.disconnectedCallback(), this._$Do?.setConnected(false); } render() { return T; } }; i4._$litElement$ = true, i4["finalized"] = true, s3.litElementHydrateSupport?.({ LitElement: i4 }); var o4 = s3.litElementPolyfillSupport; o4?.({ LitElement: i4 }); (s3.litElementVersions ??= []).push("4.2.0"); var o5 = { attribute: true, type: String, converter: u, reflect: false, hasChanged: f }; var r4 = (t32 = o5, e52, r52) => { const { kind: n52, metadata: i52 } = r52; let s42 = globalThis.litPropertyMetadata.get(i52); if (void 0 === s42 && globalThis.litPropertyMetadata.set(i52, s42 = /* @__PURE__ */ new Map()), "setter" === n52 && ((t32 = Object.create(t32)).wrapped = true), s42.set(r52.name, t32), "accessor" === n52) { const { name: o62 } = r52; return { set(r62) { const n62 = e52.get.call(this); e52.set.call(this, r62), this.requestUpdate(o62, n62, t32); }, init(e62) { return void 0 !== e62 && this.C(o62, void 0, t32, e62), e62; } }; } if ("setter" === n52) { const { name: o62 } = r52; return function(r62) { const n62 = this[o62]; e52.call(this, r62), this.requestUpdate(o62, n62, t32); }; } throw Error("Unsupported decorator location: " + n52); }; function n4(t32) { return (e52, o62) => "object" == typeof o62 ? r4(t32, e52, o62) : ((t42, e62, o72) => { const r52 = e62.hasOwnProperty(o72); return e62.constructor.createProperty(o72, t42), r52 ? Object.getOwnPropertyDescriptor(e62, o72) : void 0; })(t32, e52, o62); } var appliedClassMixins = /* @__PURE__ */ new WeakMap(); function wasMixinPreviouslyApplied(mixin, superClass) { let klass = superClass; while (klass) { if (appliedClassMixins.get(klass) === mixin) { return true; } klass = Object.getPrototypeOf(klass); } return false; } function dedupeMixin(mixin) { return (superClass) => { if (wasMixinPreviouslyApplied(mixin, superClass)) { return superClass; } const mixedClass = mixin(superClass); appliedClassMixins.set(mixedClass, mixin); return mixedClass; }; } var version = "3.0.0"; var versions = window.scopedElementsVersions || (window.scopedElementsVersions = []); if (!versions.includes(version)) { versions.push(version); } var ScopedElementsMixinImplementation = (superclass) => ( /** @type {ScopedElementsHost} */ class ScopedElementsHost extends superclass { /** * Obtains the scoped elements definitions map if specified. * * @type {ScopedElementsMap=} */ static scopedElements; static get scopedElementsVersion() { return version; } /** @type {CustomElementRegistry=} */ static __registry; /** * Obtains the CustomElementRegistry associated to the ShadowRoot. * * @returns {CustomElementRegistry=} */ get registry() { return ( /** @type {typeof ScopedElementsHost} */ this.constructor.__registry ); } /** * Set the CustomElementRegistry associated to the ShadowRoot * * @param {CustomElementRegistry} registry */ set registry(registry) { this.constructor.__registry = registry; } /** * @param {ShadowRootInit} options * @returns {ShadowRoot} */ attachShadow(options) { const { scopedElements } = ( /** @type {typeof ScopedElementsHost} */ this.constructor ); const shouldCreateRegistry = !this.registry || // @ts-ignore this.registry === this.constructor.__registry && !Object.prototype.hasOwnProperty.call(this.constructor, "__registry"); if (shouldCreateRegistry) { this.registry = new CustomElementRegistry(); for (const [tagName, klass] of Object.entries(scopedElements ?? {})) { this.registry.define(tagName, klass); } } return super.attachShadow({ ...options, // The polyfill currently expects the registry to be passed as `customElements` customElements: this.registry, // But the proposal has moved forward, and renamed it to `registry` // For backwards compatibility, we pass it as both registry: this.registry }); } } ); var ScopedElementsMixin = dedupeMixin(ScopedElementsMixinImplementation); var ScopedElementsMixinImplementation2 = (superclass) => ( /** @type {ScopedElementsHost} */ class ScopedElementsHost extends ScopedElementsMixin(superclass) { createRenderRoot() { const { shadowRootOptions, elementStyles } = ( /** @type {TypeofLitElement} */ this.constructor ); const shadowRoot = this.attachShadow(shadowRootOptions); this.renderOptions.creationScope = shadowRoot; S(shadowRoot, elementStyles); this.renderOptions.renderBefore ??= shadowRoot.firstChild; return shadowRoot; } } ); var ScopedElementsMixin2 = dedupeMixin(ScopedElementsMixinImplementation2); var _lang_dec; var _contentEditable_dec; var _a; var _init; var _contentEditable; var _lang; var LitElementWw = class extends (_a = ScopedElementsMixin2(i4), _contentEditable_dec = [n4({ type: String, attribute: true, reflect: true })], _lang_dec = [n4({ type: String, attribute: true, reflect: true })], _a) { constructor() { super(...arguments); __runInitializers2(_init, 5, this); __publicField(this, "options"); __publicField(this, "actions", {}); __publicField(this, "localize"); __privateAdd2(this, _contentEditable, __runInitializers2(_init, 8, this)), __runInitializers2(_init, 11, this); __privateAdd2(this, _lang, ""); __publicField(this, "_inTransaction", false); } get lang() { return (__privateGet2(this, _lang) || this.parentElement?.closest("[lang]")?.lang) ?? ""; } set lang(value) { __privateSet2(this, _lang, value); this.localize?.setLocale(value).finally(() => this.requestUpdate("lang")); } connectedCallback() { super.connectedCallback(); this.localize?.setLocale(this.lang).finally(() => this.requestUpdate()); this.getAttributeNames().forEach((k22) => this.setAttribute(k22, this.getAttribute(k22))); } }; _init = __decoratorStart2(_a); _contentEditable = /* @__PURE__ */ new WeakMap(); _lang = /* @__PURE__ */ new WeakMap(); __decorateElement2(_init, 4, "contentEditable", _contentEditable_dec, LitElementWw, _contentEditable); __decorateElement2(_init, 3, "lang", _lang_dec, LitElementWw); __decoratorMetadata2(_init, LitElementWw); __publicField(LitElementWw, "scopedElements", {}); __publicField(LitElementWw, "options", {}); __publicField(LitElementWw, "actions", {}); // node_modules/@lit/reactive-element/css-tag.js var t3 = globalThis; var e4 = t3.ShadowRoot && (void 0 === t3.ShadyCSS || t3.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype; var s4 = Symbol(); var o6 = /* @__PURE__ */ new WeakMap(); var n5 = class { constructor(t6, e8, o11) { if (this._$cssResult$ = true, o11 !== s4) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead."); this.cssText = t6, this.t = e8; } get styleSheet() { let t6 = this.o; const s7 = this.t; if (e4 && void 0 === t6) { const e8 = void 0 !== s7 && 1 === s7.length; e8 && (t6 = o6.get(s7)), void 0 === t6 && ((this.o = t6 = new CSSStyleSheet()).replaceSync(this.cssText), e8 && o6.set(s7, t6)); } return t6; } toString() { return this.cssText; } }; var r5 = (t6) => new n5("string" == typeof t6 ? t6 : t6 + "", void 0, s4); var i = (t6, ...e8) => { const o11 = 1 === t6.length ? t6[0] : e8.reduce((e9, s7, o12) => e9 + ((t7) => { if (true === t7._$cssResult$) return t7.cssText; if ("number" == typeof t7) return t7; 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."); })(s7) + t6[o12 + 1], t6[0]); return new n5(o11, t6, s4); }; var S3 = (s7, o11) => { if (e4) s7.adoptedStyleSheets = o11.map((t6) => t6 instanceof CSSStyleSheet ? t6 : t6.styleSheet); else for (const e8 of o11) { const o12 = document.createElement("style"), n9 = t3.litNonce; void 0 !== n9 && o12.setAttribute("nonce", n9), o12.textContent = e8.cssText, s7.appendChild(o12); } }; var c4 = e4 ? (t6) => t6 : (t6) => t6 instanceof CSSStyleSheet ? ((t7) => { let e8 = ""; for (const s7 of t7.cssRules) e8 += s7.cssText; return r5(e8); })(t6) : t6; // node_modules/@lit/reactive-element/reactive-element.js var { is: i5, defineProperty: e5, getOwnPropertyDescriptor: h3, getOwnPropertyNames: r6, getOwnPropertySymbols: o7, getPrototypeOf: n6 } = Object; var a3 = globalThis; var c5 = a3.trustedTypes; var l3 = c5 ? c5.emptyScript : ""; var p3 = a3.reactiveElementPolyfillSupport; var d3 = (t6, s7) => t6; var u3 = { toAttribute(t6, s7) { switch (s7) { case Boolean: t6 = t6 ? l3 : null; break; case Object: case Array: t6 = null == t6 ? t6 : JSON.stringify(t6); } return t6; }, fromAttribute(t6, s7) { let i8 = t6; switch (s7) { case Boolean: i8 = null !== t6; break; case Number: i8 = null === t6 ? null : Number(t6); break; case Object: case Array: try { i8 = JSON.parse(t6); } catch (t7) { i8 = null; } } return i8; } }; var f3 = (t6, s7) => !i5(t6, s7); var b3 = { attribute: true, type: String, converter: u3, reflect: false, useDefault: false, hasChanged: f3 }; Symbol.metadata ??= Symbol("metadata"), a3.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap(); var y3 = class extends HTMLElement { static addInitializer(t6) { this._$Ei(), (this.l ??= []).push(t6); } static get observedAttributes() { return this.finalize(), this._$Eh && [...this._$Eh.keys()]; } static createProperty(t6, s7 = b3) { if (s7.state && (s7.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t6) && ((s7 = Object.create(s7)).wrapped = true), this.elementProperties.set(t6, s7), !s7.noAccessor) { const i8 = Symbol(), h5 = this.getPropertyDescriptor(t6, i8, s7); void 0 !== h5 && e5(this.prototype, t6, h5); } } static getPropertyDescriptor(t6, s7, i8) { const { get: e8, set: r9 } = h3(this.prototype, t6) ?? { get() { return this[s7]; }, set(t7) { this[s7] = t7; } }; return { get: e8, set(s8) { const h5 = e8?.call(this); r9?.call(this, s8), this.requestUpdate(t6, h5, i8); }, configurable: true, enumerable: true }; } static getPropertyOptions(t6) { return this.elementProperties.get(t6) ?? b3; } static _$Ei() { if (this.hasOwnProperty(d3("elementProperties"))) return; const t6 = n6(this); t6.finalize(), void 0 !== t6.l && (this.l = [...t6.l]), this.elementProperties = new Map(t6.elementProperties); } static finalize() { if (this.hasOwnProperty(d3("finalized"))) return; if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d3("properties"))) { const t7 = this.properties, s7 = [...r6(t7), ...o7(t7)]; for (const i8 of s7) this.createProperty(i8, t7[i8]); } const t6 = this[Symbol.metadata]; if (null !== t6) { const s7 = litPropertyMetadata.get(t6); if (void 0 !== s7) for (const [t7, i8] of s7) this.elementProperties.set(t7, i8); } this._$Eh = /* @__PURE__ */ new Map(); for (const [t7, s7] of this.elementProperties) { const i8 = this._$Eu(t7, s7); void 0 !== i8 && this._$Eh.set(i8, t7); } this.elementStyles = this.finalizeStyles(this.styles); } static finalizeStyles(s7) { const i8 = []; if (Array.isArray(s7)) { const e8 = new Set(s7.flat(1 / 0).reverse()); for (const s8 of e8) i8.unshift(c4(s8)); } else void 0 !== s7 && i8.push(c4(s7)); return i8; } static _$Eu(t6, s7) { const i8 = s7.attribute; return false === i8 ? void 0 : "string" == typeof i8 ? i8 : "string" == typeof t6 ? t6.toLowerCase() : void 0; } constructor() { super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev(); } _$Ev() { this._$ES = new Promise((t6) => this.enableUpdating = t6), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t6) => t6(this)); } addController(t6) { (this._$EO ??= /* @__PURE__ */ new Set()).add(t6), void 0 !== this.renderRoot && this.isConnected && t6.hostConnected?.(); } removeController(t6) { this._$EO?.delete(t6); } _$E_() { const t6 = /* @__PURE__ */ new Map(), s7 = this.constructor.elementProperties; for (const i8 of s7.keys()) this.hasOwnProperty(i8) && (t6.set(i8, this[i8]), delete this[i8]); t6.size > 0 && (this._$Ep = t6); } createRenderRoot() { const t6 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions); return S3(t6, this.constructor.elementStyles), t6; } connectedCallback() { this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach((t6) => t6.hostConnected?.()); } enableUpdating(t6) { } disconnectedCallback() { this._$EO?.forEach((t6) => t6.hostDisconnected?.()); } attributeChangedCallback(t6, s7, i8) { this._$AK(t6, i8); } _$ET(t6, s7) { const i8 = this.constructor.elementProperties.get(t6), e8 = this.constructor._$Eu(t6, i8); if (void 0 !== e8 && true === i8.reflect) { const h5 = (void 0 !== i8.converter?.toAttribute ? i8.converter : u3).toAttribute(s7, i8.type); this._$Em = t6, null == h5 ? this.removeAttribute(e8) : this.setAttribute(e8, h5), this._$Em = null; } } _$AK(t6, s7) { const i8 = this.constructor, e8 = i8._$Eh.get(t6); if (void 0 !== e8 && this._$Em !== e8) { const t7 = i8.getPropertyOptions(e8), h5 = "function" == typeof t7.converter ? { fromAttribute: t7.converter } : void 0 !== t7.converter?.fromAttribute ? t7.converter : u3; this._$Em = e8; const r9 = h5.fromAttribute(s7, t7.type); this[e8] = r9 ?? this._$Ej?.get(e8) ?? r9, this._$Em = null; } } requestUpdate(t6, s7, i8, e8 = false, h5) { if (void 0 !== t6) { const r9 = this.constructor; if (false === e8 && (h5 = this[t6]), i8 ??= r9.getPropertyOptions(t6), !((i8.hasChanged ?? f3)(h5, s7) || i8.useDefault && i8.reflect && h5 === this._$Ej?.get(t6) && !this.hasAttribute(r9._$Eu(t6, i8)))) return; this.C(t6, s7, i8); } false === this.isUpdatePending && (this._$ES = this._$EP()); } C(t6, s7, { useDefault: i8, reflect: e8, wrapped: h5 }, r9) { i8 && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t6) && (this._$Ej.set(t6, r9 ?? s7 ?? this[t6]), true !== h5 || void 0 !== r9) || (this._$AL.has(t6) || (this.hasUpdated || i8 || (s7 = void 0), this._$AL.set(t6, s7)), true === e8 && this._$Em !== t6 && (this._$Eq ??= /* @__PURE__ */ new Set()).add(t6)); } async _$EP() { this.isUpdatePending = true; try { await this._$ES; } catch (t7) { Promise.reject(t7); } const t6 = this.scheduleUpdate(); return null != t6 && await t6, !this.isUpdatePending; } scheduleUpdate() { return this.performUpdate(); } performUpdate() { if (!this.isUpdatePending) return; if (!this.hasUpdated) { if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) { for (const [t8, s8] of this._$Ep) this[t8] = s8; this._$Ep = void 0; } const t7 = this.constructor.elementProperties; if (t7.size > 0) for (const [s8, i8] of t7) { const { wrapped: t8 } = i8, e8 = this[s8]; true !== t8 || this._$AL.has(s8) || void 0 === e8 || this.C(s8, void 0, i8, e8); } } let t6 = false; const s7 = this._$AL; try { t6 = this.shouldUpdate(s7), t6 ? (this.willUpdate(s7), this._$EO?.forEach((t7) => t7.hostUpdate?.()), this.update(s7)) : this._$EM(); } catch (s8) { throw t6 = false, this._$EM(), s8; } t6 && this._$AE(s7); } willUpdate(t6) { } _$AE(t6) { this._$EO?.forEach((t7) => t7.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t6)), this.updated(t6); } _$EM() { this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false; } get updateComplete() { return this.getUpdateComplete(); } getUpdateComplete() { return this._$ES; } shouldUpdate(t6) { return true; } update(t6) { this._$Eq &&= this._$Eq.forEach((t7) => this._$ET(t7, this[t7])), this._$EM(); } updated(t6) { } firstUpdated(t6) { } }; y3.elementStyles = [], y3.shadowRootOptions = { mode: "open" }, y3[d3("elementProperties")] = /* @__PURE__ */ new Map(), y3[d3("finalized")] = /* @__PURE__ */ new Map(), p3?.({ ReactiveElement: y3 }), (a3.reactiveElementVersions ??= []).push("2.1.2"); // node_modules/lit-html/lit-html.js var t4 = globalThis; var i6 = (t6) => t6; var s5 = t4.trustedTypes; var e6 = s5 ? s5.createPolicy("lit-html", { createHTML: (t6) => t6 }) : void 0; var h4 = "$lit$"; var o8 = `lit$${Math.random().toFixed(9).slice(2)}$`; var n7 = "?" + o8; var r7 = `<${n7}>`; var l4 = document; var c6 = () => l4.createComment(""); var a4 = (t6) => null === t6 || "object" != typeof t6 && "function" != typeof t6; var u4 = Array.isArray; var d4 = (t6) => u4(t6) || "function" == typeof t6?.[Symbol.iterator]; var f4 = "[ \n\f\r]"; var v2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g; var _2 = /-->/g; var m2 = />/g; var p4 = RegExp(`>|${f4}(?:([^\\s"'>=/]+)(${f4}*=${f4}*(?:[^ \f\r"'\`<>=]|("|')|))|$)`, "g"); var g2 = /'/g; var $2 = /"/g; var y4 = /^(?:script|style|textarea|title)$/i; var x2 = (t6) => (i8, ...s7) => ({ _$litType$: t6, strings: i8, values: s7 }); var b4 = x2(1); var w2 = x2(2); var T2 = x2(3); var E2 = Symbol.for("lit-noChange"); var A2 = Symbol.for("lit-nothing"); var C2 = /* @__PURE__ */ new WeakMap(); var P2 = l4.createTreeWalker(l4, 129); function V2(t6, i8) { if (!u4(t6) || !t6.hasOwnProperty("raw")) throw Error("invalid template strings array"); return void 0 !== e6 ? e6.createHTML(i8) : i8; } var N2 = (t6, i8) => { const s7 = t6.length - 1, e8 = []; let n9, l5 = 2 === i8 ? "<svg>" : 3 === i8 ? "<math>" : "", c7 = v2; for (let i9 = 0; i9 < s7; i9++) { const s8 = t6[i9]; let a5, u5, d5 = -1, f5 = 0; for (; f5 < s8.length && (c7.lastIndex = f5, u5 = c7.exec(s8), null !== u5); ) f5 = c7.lastIndex, c7 === v2 ? "!--" === u5[1] ? c7 = _2 : void 0 !== u5[1] ? c7 = m2 : void 0 !== u5[2] ? (y4.test(u5[2]) && (n9 = RegExp("</" + u5[2], "g")), c7 = p4) : void 0 !== u5[3] && (c7 = p4) : c7 === p4 ? ">" === u5[0] ? (c7 = n9 ?? v2, d5 = -1) : void 0 === u5[1] ? d5 = -2 : (d5 = c7.lastIndex - u5[2].length, a5 = u5[1], c7 = void 0 === u5[3] ? p4 : '"' === u5[3] ? $2 : g2) : c7 === $2 || c7 === g2 ? c7 = p4 : c7 === _2 || c7 === m2 ? c7 = v2 : (c7 = p4, n9 = void 0); const x3 = c7 === p4 && t6[i9 + 1].startsWith("/>") ? " " : ""; l5 += c7 === v2 ? s8 + r7 : d5 >= 0 ? (e8.push(a5), s8.slice(0, d5) + h4 + s8.slice(d5) + o8 + x3) : s8 + o8 + (-2 === d5 ? i9 : x3); } return [V2(t6, l5 + (t6[s7] || "<?>") + (2 === i8 ? "</svg>" : 3 === i8 ? "</math>" : "")), e8]; }; var S4 = class _S { constructor({ strings: t6, _$litType$: i8 }, e8) { let r9; this.parts = []; let l5 = 0, a5 = 0; const u5 = t6.length - 1, d5 = this.parts, [f5, v3] = N2(t6, i8); if (this.el = _S.createElement(f5, e8), P2.currentNode = this.el.content, 2 === i8 || 3 === i8) { const t7 = this.el.content.firstChild; t7.replaceWith(...t7.childNodes); } for (; null !== (r9 = P2.nextNode()) && d5.length < u5; ) { if (1 === r9.nodeType) { if (r9.hasAttributes()) for (const t7 of r9.getAttributeNames()) if (t7.endsWith(h4)) { const i9 = v3[a5++], s7 = r9.getAttribute(t7).split(o8), e9 = /([.?@])?(.*)/.exec(i9); d5.push({ type: 1, index: l5, name: e9[2], strings: s7,