UNPKG

rhino-editor

Version:

A custom element wrapped rich text editor

595 lines (585 loc) 22.1 kB
// node_modules/.pnpm/lit-html@3.2.0/node_modules/lit-html/lit-html.js var n = globalThis; var c = n.trustedTypes; var h = c ? c.createPolicy("lit-html", { createHTML: (t2) => t2 }) : void 0; var f = "$lit$"; var v = `lit$${Math.random().toFixed(9).slice(2)}$`; var m = "?" + v; var _ = `<${m}>`; var w = document; var lt = () => w.createComment(""); var st = (t2) => null === t2 || "object" != typeof t2 && "function" != typeof t2; var g = Array.isArray; var $ = (t2) => g(t2) || "function" == typeof t2?.[Symbol.iterator]; var x = "[ \n\f\r]"; var T = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g; var E = /-->/g; var k = />/g; var O = RegExp(`>|${x}(?:([^\\s"'>=/]+)(${x}*=${x}*(?:[^ \f\r"'\`<>=]|("|')|))|$)`, "g"); var S = /'/g; var j = /"/g; var M = /^(?:script|style|textarea|title)$/i; var P = (t2) => (i3, ...s2) => ({ _$litType$: t2, strings: i3, values: s2 }); var ke = P(1); var Oe = P(2); var Se = P(3); var R = Symbol.for("lit-noChange"); var D = Symbol.for("lit-nothing"); var V = /* @__PURE__ */ new WeakMap(); var I = w.createTreeWalker(w, 129); function N(t2, i3) { if (!g(t2) || !t2.hasOwnProperty("raw")) throw Error("invalid template strings array"); return void 0 !== h ? h.createHTML(i3) : i3; } var U = (t2, i3) => { const s2 = t2.length - 1, e3 = []; let h4, o3 = 2 === i3 ? "<svg>" : 3 === i3 ? "<math>" : "", n4 = T; for (let i4 = 0; i4 < s2; i4++) { const s3 = t2[i4]; let r3, l2, c4 = -1, a2 = 0; for (; a2 < s3.length && (n4.lastIndex = a2, l2 = n4.exec(s3), null !== l2); ) a2 = n4.lastIndex, n4 === T ? "!--" === l2[1] ? n4 = E : void 0 !== l2[1] ? n4 = k : void 0 !== l2[2] ? (M.test(l2[2]) && (h4 = RegExp("</" + l2[2], "g")), n4 = O) : void 0 !== l2[3] && (n4 = O) : n4 === O ? ">" === l2[0] ? (n4 = h4 ?? T, c4 = -1) : void 0 === l2[1] ? c4 = -2 : (c4 = n4.lastIndex - l2[2].length, r3 = l2[1], n4 = void 0 === l2[3] ? O : '"' === l2[3] ? j : S) : n4 === j || n4 === S ? n4 = O : n4 === E || n4 === k ? n4 = T : (n4 = O, h4 = void 0); const u2 = n4 === O && t2[i4 + 1].startsWith("/>") ? " " : ""; o3 += n4 === T ? s3 + _ : c4 >= 0 ? (e3.push(r3), s3.slice(0, c4) + f + s3.slice(c4) + v + u2) : s3 + v + (-2 === c4 ? i4 : u2); } return [N(t2, o3 + (t2[s2] || "<?>") + (2 === i3 ? "</svg>" : 3 === i3 ? "</math>" : "")), e3]; }; var B = class _B { constructor({ strings: t2, _$litType$: i3 }, s2) { let e3; this.parts = []; let h4 = 0, o3 = 0; const n4 = t2.length - 1, r3 = this.parts, [l2, a2] = U(t2, i3); if (this.el = _B.createElement(l2, s2), I.currentNode = this.el.content, 2 === i3 || 3 === i3) { const t3 = this.el.content.firstChild; t3.replaceWith(...t3.childNodes); } for (; null !== (e3 = I.nextNode()) && r3.length < n4; ) { if (1 === e3.nodeType) { if (e3.hasAttributes()) for (const t3 of e3.getAttributeNames()) if (t3.endsWith(f)) { const i4 = a2[o3++], s3 = e3.getAttribute(t3).split(v), n5 = /([.?@])?(.*)/.exec(i4); r3.push({ type: 1, index: h4, name: n5[2], strings: s3, ctor: "." === n5[1] ? Y : "?" === n5[1] ? Z : "@" === n5[1] ? q : G }), e3.removeAttribute(t3); } else t3.startsWith(v) && (r3.push({ type: 6, index: h4 }), e3.removeAttribute(t3)); if (M.test(e3.tagName)) { const t3 = e3.textContent.split(v), i4 = t3.length - 1; if (i4 > 0) { e3.textContent = c ? c.emptyScript : ""; for (let s3 = 0; s3 < i4; s3++) e3.append(t3[s3], lt()), I.nextNode(), r3.push({ type: 2, index: ++h4 }); e3.append(t3[i4], lt()); } } } else if (8 === e3.nodeType) if (e3.data === m) r3.push({ type: 2, index: h4 }); else { let t3 = -1; for (; -1 !== (t3 = e3.data.indexOf(v, t3 + 1)); ) r3.push({ type: 7, index: h4 }), t3 += v.length - 1; } h4++; } } static createElement(t2, i3) { const s2 = w.createElement("template"); return s2.innerHTML = t2, s2; } }; function z(t2, i3, s2 = t2, e3) { if (i3 === R) return i3; let h4 = void 0 !== e3 ? s2.o?.[e3] : s2.l; const o3 = st(i3) ? void 0 : i3._$litDirective$; return h4?.constructor !== o3 && (h4?._$AO?.(false), void 0 === o3 ? h4 = void 0 : (h4 = new o3(t2), h4._$AT(t2, s2, e3)), void 0 !== e3 ? (s2.o ?? (s2.o = []))[e3] = h4 : s2.l = h4), void 0 !== h4 && (i3 = z(t2, h4._$AS(t2, i3.values), h4, e3)), i3; } var F = class { constructor(t2, i3) { this._$AV = [], this._$AN = void 0, this._$AD = t2, this._$AM = i3; } get parentNode() { return this._$AM.parentNode; } get _$AU() { return this._$AM._$AU; } u(t2) { const { el: { content: i3 }, parts: s2 } = this._$AD, e3 = (t2?.creationScope ?? w).importNode(i3, true); I.currentNode = e3; let h4 = I.nextNode(), o3 = 0, n4 = 0, r3 = s2[0]; for (; void 0 !== r3; ) { if (o3 === r3.index) { let i4; 2 === r3.type ? i4 = new et(h4, h4.nextSibling, this, t2) : 1 === r3.type ? i4 = new r3.ctor(h4, r3.name, r3.strings, this, t2) : 6 === r3.type && (i4 = new K(h4, this, t2)), this._$AV.push(i4), r3 = s2[++n4]; } o3 !== r3?.index && (h4 = I.nextNode(), o3++); } return I.currentNode = w, e3; } p(t2) { let i3 = 0; for (const s2 of this._$AV) void 0 !== s2 && (void 0 !== s2.strings ? (s2._$AI(t2, s2, i3), i3 += s2.strings.length - 2) : s2._$AI(t2[i3])), i3++; } }; var et = class _et { get _$AU() { return this._$AM?._$AU ?? this.v; } constructor(t2, i3, s2, e3) { this.type = 2, this._$AH = D, this._$AN = void 0, this._$AA = t2, this._$AB = i3, this._$AM = s2, this.options = e3, this.v = e3?.isConnected ?? true; } get parentNode() { let t2 = this._$AA.parentNode; const i3 = this._$AM; return void 0 !== i3 && 11 === t2?.nodeType && (t2 = i3.parentNode), t2; } get startNode() { return this._$AA; } get endNode() { return this._$AB; } _$AI(t2, i3 = this) { t2 = z(this, t2, i3), st(t2) ? t2 === D || null == t2 || "" === t2 ? (this._$AH !== D && this._$AR(), this._$AH = D) : t2 !== this._$AH && t2 !== R && this._(t2) : void 0 !== t2._$litType$ ? this.$(t2) : void 0 !== t2.nodeType ? this.T(t2) : $(t2) ? this.k(t2) : this._(t2); } O(t2) { return this._$AA.parentNode.insertBefore(t2, this._$AB); } T(t2) { this._$AH !== t2 && (this._$AR(), this._$AH = this.O(t2)); } _(t2) { this._$AH !== D && st(this._$AH) ? this._$AA.nextSibling.data = t2 : this.T(w.createTextNode(t2)), this._$AH = t2; } $(t2) { const { values: i3, _$litType$: s2 } = t2, e3 = "number" == typeof s2 ? this._$AC(t2) : (void 0 === s2.el && (s2.el = B.createElement(N(s2.h, s2.h[0]), this.options)), s2); if (this._$AH?._$AD === e3) this._$AH.p(i3); else { const t3 = new F(e3, this), s3 = t3.u(this.options); t3.p(i3), this.T(s3), this._$AH = t3; } } _$AC(t2) { let i3 = V.get(t2.strings); return void 0 === i3 && V.set(t2.strings, i3 = new B(t2)), i3; } k(t2) { g(this._$AH) || (this._$AH = [], this._$AR()); const i3 = this._$AH; let s2, e3 = 0; for (const h4 of t2) e3 === i3.length ? i3.push(s2 = new _et(this.O(lt()), this.O(lt()), this, this.options)) : s2 = i3[e3], s2._$AI(h4), e3++; e3 < i3.length && (this._$AR(s2 && s2._$AB.nextSibling, e3), i3.length = e3); } _$AR(t2 = this._$AA.nextSibling, i3) { for (this._$AP?.(false, true, i3); t2 && t2 !== this._$AB; ) { const i4 = t2.nextSibling; t2.remove(), t2 = i4; } } setConnected(t2) { void 0 === this._$AM && (this.v = t2, this._$AP?.(t2)); } }; var G = class { get tagName() { return this.element.tagName; } get _$AU() { return this._$AM._$AU; } constructor(t2, i3, s2, e3, h4) { this.type = 1, this._$AH = D, this._$AN = void 0, this.element = t2, this.name = i3, this._$AM = e3, this.options = h4, s2.length > 2 || "" !== s2[0] || "" !== s2[1] ? (this._$AH = Array(s2.length - 1).fill(new String()), this.strings = s2) : this._$AH = D; } _$AI(t2, i3 = this, s2, e3) { const h4 = this.strings; let o3 = false; if (void 0 === h4) t2 = z(this, t2, i3, 0), o3 = !st(t2) || t2 !== this._$AH && t2 !== R, o3 && (this._$AH = t2); else { const e4 = t2; let n4, r3; for (t2 = h4[0], n4 = 0; n4 < h4.length - 1; n4++) r3 = z(this, e4[s2 + n4], i3, n4), r3 === R && (r3 = this._$AH[n4]), o3 || (o3 = !st(r3) || r3 !== this._$AH[n4]), r3 === D ? t2 = D : t2 !== D && (t2 += (r3 ?? "") + h4[n4 + 1]), this._$AH[n4] = r3; } o3 && !e3 && this.j(t2); } j(t2) { t2 === D ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t2 ?? ""); } }; var Y = class extends G { constructor() { super(...arguments), this.type = 3; } j(t2) { this.element[this.name] = t2 === D ? void 0 : t2; } }; var Z = class extends G { constructor() { super(...arguments), this.type = 4; } j(t2) { this.element.toggleAttribute(this.name, !!t2 && t2 !== D); } }; var q = class extends G { constructor(t2, i3, s2, e3, h4) { super(t2, i3, s2, e3, h4), this.type = 5; } _$AI(t2, i3 = this) { if ((t2 = z(this, t2, i3, 0) ?? D) === R) return; const s2 = this._$AH, e3 = t2 === D && s2 !== D || t2.capture !== s2.capture || t2.once !== s2.once || t2.passive !== s2.passive, h4 = t2 !== D && (s2 === D || e3); e3 && this.element.removeEventListener(this.name, this, s2), h4 && this.element.addEventListener(this.name, this, t2), this._$AH = t2; } handleEvent(t2) { "function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t2) : this._$AH.handleEvent(t2); } }; var K = class { constructor(t2, i3, s2) { this.element = t2, this.type = 6, this._$AN = void 0, this._$AM = i3, this.options = s2; } get _$AU() { return this._$AM._$AU; } _$AI(t2) { z(this, t2); } }; var si = { M: f, P: v, A: m, C: 1, L: U, R: F, D: $, V: z, I: et, H: G, N: Z, U: q, B: Y, F: K }; var Re = n.litHtmlPolyfillSupport; Re?.(B, et), (n.litHtmlVersions ?? (n.litHtmlVersions = [])).push("3.2.0"); var Q = (t2, i3, s2) => { const e3 = s2?.renderBefore ?? i3; let h4 = e3._$litPart$; if (void 0 === h4) { const t3 = s2?.renderBefore ?? null; e3._$litPart$ = h4 = new et(i3.insertBefore(lt(), t3), t3, void 0, s2 ?? {}); } return h4._$AI(t2), h4; }; // node_modules/.pnpm/@lit+reactive-element@2.0.4/node_modules/@lit/reactive-element/css-tag.js 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 n2 = class { constructor(t2, e3, o3) { if (this._$cssResult$ = true, o3 !== s) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead."); this.cssText = t2, this.t = e3; } get styleSheet() { let t2 = this.o; const s2 = this.t; if (e && void 0 === t2) { const e3 = void 0 !== s2 && 1 === s2.length; e3 && (t2 = o.get(s2)), void 0 === t2 && ((this.o = t2 = new CSSStyleSheet()).replaceSync(this.cssText), e3 && o.set(s2, t2)); } return t2; } toString() { return this.cssText; } }; var r = (t2) => new n2("string" == typeof t2 ? t2 : t2 + "", void 0, s); var i = (t2, ...e3) => { const o3 = 1 === t2.length ? t2[0] : e3.reduce((e4, s2, o4) => e4 + ((t3) => { if (true === t3._$cssResult$) return t3.cssText; if ("number" == typeof t3) return t3; throw Error("Value passed to 'css' function must be a 'css' function result: " + t3 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security."); })(s2) + t2[o4 + 1], t2[0]); return new n2(o3, t2, s); }; var S2 = (s2, o3) => { if (e) s2.adoptedStyleSheets = o3.map((t2) => t2 instanceof CSSStyleSheet ? t2 : t2.styleSheet); else for (const e3 of o3) { const o4 = document.createElement("style"), n4 = t.litNonce; void 0 !== n4 && o4.setAttribute("nonce", n4), o4.textContent = e3.cssText, s2.appendChild(o4); } }; var c2 = e ? (t2) => t2 : (t2) => t2 instanceof CSSStyleSheet ? ((t3) => { let e3 = ""; for (const s2 of t3.cssRules) e3 += s2.cssText; return r(e3); })(t2) : t2; // node_modules/.pnpm/@lit+reactive-element@2.0.4/node_modules/@lit/reactive-element/reactive-element.js var { is: i2, defineProperty: e2, getOwnPropertyDescriptor: r2, getOwnPropertyNames: h2, getOwnPropertySymbols: o2, getPrototypeOf: n3 } = Object; var a = globalThis; var c3 = a.trustedTypes; var l = c3 ? c3.emptyScript : ""; var p = a.reactiveElementPolyfillSupport; var d = (t2, s2) => t2; var u = { toAttribute(t2, s2) { switch (s2) { case Boolean: t2 = t2 ? l : null; break; case Object: case Array: t2 = null == t2 ? t2 : JSON.stringify(t2); } return t2; }, fromAttribute(t2, s2) { let i3 = t2; switch (s2) { case Boolean: i3 = null !== t2; break; case Number: i3 = null === t2 ? null : Number(t2); break; case Object: case Array: try { i3 = JSON.parse(t2); } catch (t3) { i3 = null; } } return i3; } }; var f2 = (t2, s2) => !i2(t2, s2); var y = { attribute: true, type: String, converter: u, reflect: false, hasChanged: f2 }; Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), a.litPropertyMetadata ?? (a.litPropertyMetadata = /* @__PURE__ */ new WeakMap()); var b = class extends HTMLElement { static addInitializer(t2) { this._$Ei(), (this.l ?? (this.l = [])).push(t2); } static get observedAttributes() { return this.finalize(), this._$Eh && [...this._$Eh.keys()]; } static createProperty(t2, s2 = y) { if (s2.state && (s2.attribute = false), this._$Ei(), this.elementProperties.set(t2, s2), !s2.noAccessor) { const i3 = Symbol(), r3 = this.getPropertyDescriptor(t2, i3, s2); void 0 !== r3 && e2(this.prototype, t2, r3); } } static getPropertyDescriptor(t2, s2, i3) { const { get: e3, set: h4 } = r2(this.prototype, t2) ?? { get() { return this[s2]; }, set(t3) { this[s2] = t3; } }; return { get() { return e3?.call(this); }, set(s3) { const r3 = e3?.call(this); h4.call(this, s3), this.requestUpdate(t2, r3, i3); }, configurable: true, enumerable: true }; } static getPropertyOptions(t2) { return this.elementProperties.get(t2) ?? y; } static _$Ei() { if (this.hasOwnProperty(d("elementProperties"))) return; const t2 = n3(this); t2.finalize(), void 0 !== t2.l && (this.l = [...t2.l]), this.elementProperties = new Map(t2.elementProperties); } static finalize() { if (this.hasOwnProperty(d("finalized"))) return; if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d("properties"))) { const t3 = this.properties, s2 = [...h2(t3), ...o2(t3)]; for (const i3 of s2) this.createProperty(i3, t3[i3]); } const t2 = this[Symbol.metadata]; if (null !== t2) { const s2 = litPropertyMetadata.get(t2); if (void 0 !== s2) for (const [t3, i3] of s2) this.elementProperties.set(t3, i3); } this._$Eh = /* @__PURE__ */ new Map(); for (const [t3, s2] of this.elementProperties) { const i3 = this._$Eu(t3, s2); void 0 !== i3 && this._$Eh.set(i3, t3); } this.elementStyles = this.finalizeStyles(this.styles); } static finalizeStyles(s2) { const i3 = []; if (Array.isArray(s2)) { const e3 = new Set(s2.flat(1 / 0).reverse()); for (const s3 of e3) i3.unshift(c2(s3)); } else void 0 !== s2 && i3.push(c2(s2)); return i3; } static _$Eu(t2, s2) { const i3 = s2.attribute; return false === i3 ? void 0 : "string" == typeof i3 ? i3 : "string" == typeof t2 ? t2.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((t2) => this.enableUpdating = t2), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t2) => t2(this)); } addController(t2) { (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t2), void 0 !== this.renderRoot && this.isConnected && t2.hostConnected?.(); } removeController(t2) { this._$EO?.delete(t2); } _$E_() { const t2 = /* @__PURE__ */ new Map(), s2 = this.constructor.elementProperties; for (const i3 of s2.keys()) this.hasOwnProperty(i3) && (t2.set(i3, this[i3]), delete this[i3]); t2.size > 0 && (this._$Ep = t2); } createRenderRoot() { const t2 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions); return S2(t2, this.constructor.elementStyles), t2; } connectedCallback() { this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(true), this._$EO?.forEach((t2) => t2.hostConnected?.()); } enableUpdating(t2) { } disconnectedCallback() { this._$EO?.forEach((t2) => t2.hostDisconnected?.()); } attributeChangedCallback(t2, s2, i3) { this._$AK(t2, i3); } _$EC(t2, s2) { const i3 = this.constructor.elementProperties.get(t2), e3 = this.constructor._$Eu(t2, i3); if (void 0 !== e3 && true === i3.reflect) { const r3 = (void 0 !== i3.converter?.toAttribute ? i3.converter : u).toAttribute(s2, i3.type); this._$Em = t2, null == r3 ? this.removeAttribute(e3) : this.setAttribute(e3, r3), this._$Em = null; } } _$AK(t2, s2) { const i3 = this.constructor, e3 = i3._$Eh.get(t2); if (void 0 !== e3 && this._$Em !== e3) { const t3 = i3.getPropertyOptions(e3), r3 = "function" == typeof t3.converter ? { fromAttribute: t3.converter } : void 0 !== t3.converter?.fromAttribute ? t3.converter : u; this._$Em = e3, this[e3] = r3.fromAttribute(s2, t3.type), this._$Em = null; } } requestUpdate(t2, s2, i3) { if (void 0 !== t2) { if (i3 ?? (i3 = this.constructor.getPropertyOptions(t2)), !(i3.hasChanged ?? f2)(this[t2], s2)) return; this.P(t2, s2, i3); } false === this.isUpdatePending && (this._$ES = this._$ET()); } P(t2, s2, i3) { this._$AL.has(t2) || this._$AL.set(t2, s2), true === i3.reflect && this._$Em !== t2 && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t2); } async _$ET() { this.isUpdatePending = true; try { await this._$ES; } catch (t3) { Promise.reject(t3); } const t2 = this.scheduleUpdate(); return null != t2 && await t2, !this.isUpdatePending; } scheduleUpdate() { return this.performUpdate(); } performUpdate() { if (!this.isUpdatePending) return; if (!this.hasUpdated) { if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) { for (const [t4, s3] of this._$Ep) this[t4] = s3; this._$Ep = void 0; } const t3 = this.constructor.elementProperties; if (t3.size > 0) for (const [s3, i3] of t3) true !== i3.wrapped || this._$AL.has(s3) || void 0 === this[s3] || this.P(s3, this[s3], i3); } let t2 = false; const s2 = this._$AL; try { t2 = this.shouldUpdate(s2), t2 ? (this.willUpdate(s2), this._$EO?.forEach((t3) => t3.hostUpdate?.()), this.update(s2)) : this._$EU(); } catch (s3) { throw t2 = false, this._$EU(), s3; } t2 && this._$AE(s2); } willUpdate(t2) { } _$AE(t2) { this._$EO?.forEach((t3) => t3.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t2)), this.updated(t2); } _$EU() { this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false; } get updateComplete() { return this.getUpdateComplete(); } getUpdateComplete() { return this._$ES; } shouldUpdate(t2) { return true; } update(t2) { this._$Ej && (this._$Ej = this._$Ej.forEach((t3) => this._$EC(t3, this[t3]))), this._$EU(); } updated(t2) { } firstUpdated(t2) { } }; b.elementStyles = [], b.shadowRootOptions = { mode: "open" }, b[d("elementProperties")] = /* @__PURE__ */ new Map(), b[d("finalized")] = /* @__PURE__ */ new Map(), p?.({ ReactiveElement: b }), (a.reactiveElementVersions ?? (a.reactiveElementVersions = [])).push("2.0.4"); // node_modules/.pnpm/lit-element@4.1.0/node_modules/lit-element/lit-element.js var h3 = class extends b { constructor() { super(...arguments), this.renderOptions = { host: this }, this.o = void 0; } createRenderRoot() { var _a; const t2 = super.createRenderRoot(); return (_a = this.renderOptions).renderBefore ?? (_a.renderBefore = t2.firstChild), t2; } update(t2) { const e3 = this.render(); this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t2), this.o = Q(e3, this.renderRoot, this.renderOptions); } connectedCallback() { super.connectedCallback(), this.o?.setConnected(true); } disconnectedCallback() { super.disconnectedCallback(), this.o?.setConnected(false); } render() { return R; } }; h3._$litElement$ = true, h3["finalized"] = true, globalThis.litElementHydrateSupport?.({ LitElement: h3 }); var f3 = globalThis.litElementPolyfillSupport; f3?.({ LitElement: h3 }); (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.0"); export { ke, Oe, R, D, si, Q, i, h3 as h }; /*! Bundled license information: lit-html/lit-html.js: (** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause *) @lit/reactive-element/css-tag.js: (** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause *) @lit/reactive-element/reactive-element.js: (** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause *) lit-element/lit-element.js: (** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause *) lit-html/is-server.js: (** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: BSD-3-Clause *) */ //# sourceMappingURL=chunk-7BUHDUOD.js.map