diff --git a/apps/shared/ClawdisKit/Tools/CanvasA2UI/bootstrap.js b/apps/shared/ClawdisKit/Tools/CanvasA2UI/bootstrap.js
index d4df8ebce..5d099e1d1 100644
--- a/apps/shared/ClawdisKit/Tools/CanvasA2UI/bootstrap.js
+++ b/apps/shared/ClawdisKit/Tools/CanvasA2UI/bootstrap.js
@@ -239,6 +239,22 @@ class ClawdisA2UIHost extends LitElement {
color: rgba(255, 223, 223, 0.98);
}
+ .empty {
+ position: absolute;
+ left: 50%;
+ transform: translateX(-50%);
+ top: var(--clawdis-a2ui-empty-top, var(--clawdis-a2ui-status-top, 12px));
+ text-align: center;
+ opacity: 0.8;
+ padding: 10px 12px;
+ pointer-events: none;
+ }
+
+ .empty-title {
+ font-weight: 700;
+ margin-bottom: 6px;
+ }
+
.spinner {
width: 12px;
height: 12px;
@@ -429,8 +445,8 @@ class ClawdisA2UIHost extends LitElement {
render() {
if (this.surfaces.length === 0) {
- return html`
-
Canvas (A2UI)
+ return html`
+
Canvas (A2UI)
Waiting for A2UI messages…
`;
}
diff --git a/src/canvas-host/a2ui/.bundle.hash b/src/canvas-host/a2ui/.bundle.hash
new file mode 100644
index 000000000..3c65ad422
--- /dev/null
+++ b/src/canvas-host/a2ui/.bundle.hash
@@ -0,0 +1 @@
+fb0fb0904efd421ea04c63e416231a7e94f2821725d68039e4168cc16f0a5bba
diff --git a/src/canvas-host/a2ui/a2ui.bundle.js b/src/canvas-host/a2ui/a2ui.bundle.js
index aad7e4d51..fe6a9b220 100644
--- a/src/canvas-host/a2ui/a2ui.bundle.js
+++ b/src/canvas-host/a2ui/a2ui.bundle.js
@@ -1,5 +1,5 @@
var __defProp$1 = Object.defineProperty;
-var __exportAll = (all, symbols) => {
+var __export = (all, symbols) => {
let target = {};
for (var name in all) {
__defProp$1(target, name, {
@@ -18,10 +18,10 @@ var __exportAll = (all, symbols) => {
* Copyright 2019 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
-const t$6 = globalThis, e$13 = t$6.ShadowRoot && (void 0 === t$6.ShadyCSS || t$6.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$8 = Symbol(), o$14 = new WeakMap();
-var n$12 = class {
- constructor(t$7, e$14, o$15) {
- if (this._$cssResult$ = !0, o$15 !== s$8) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
+const t$6 = globalThis, e$13 = t$6.ShadowRoot && (void 0 === t$6.ShadyCSS || t$6.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$8 = Symbol(), o$13 = new WeakMap();
+var n$10 = class {
+ constructor(t$7, e$14, o$14) {
+ if (this._$cssResult$ = !0, o$14 !== s$8) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
this.cssText = t$7, this.t = e$14;
}
get styleSheet() {
@@ -29,7 +29,7 @@ var n$12 = class {
const s$9 = this.t;
if (e$13 && void 0 === t$7) {
const e$14 = void 0 !== s$9 && 1 === s$9.length;
- e$14 && (t$7 = o$14.get(s$9)), void 0 === t$7 && ((this.o = t$7 = new CSSStyleSheet()).replaceSync(this.cssText), e$14 && o$14.set(s$9, t$7));
+ e$14 && (t$7 = o$13.get(s$9)), void 0 === t$7 && ((this.o = t$7 = new CSSStyleSheet()).replaceSync(this.cssText), e$14 && o$13.set(s$9, t$7));
}
return t$7;
}
@@ -37,30 +37,30 @@ var n$12 = class {
return this.cssText;
}
};
-const r$11 = (t$7) => new n$12("string" == typeof t$7 ? t$7 : t$7 + "", void 0, s$8), i$9 = (t$7, ...e$14) => {
- const o$15 = 1 === t$7.length ? t$7[0] : e$14.reduce((e$15, s$9, o$16) => e$15 + ((t$8) => {
+const r$10 = (t$7) => new n$10("string" == typeof t$7 ? t$7 : t$7 + "", void 0, s$8), i$9 = (t$7, ...e$14) => {
+ const o$14 = 1 === t$7.length ? t$7[0] : e$14.reduce(((e$15, s$9, o$15) => e$15 + ((t$8) => {
if (!0 === t$8._$cssResult$) return t$8.cssText;
if ("number" == typeof t$8) return t$8;
throw Error("Value passed to 'css' function must be a 'css' function result: " + t$8 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
- })(s$9) + t$7[o$16 + 1], t$7[0]);
- return new n$12(o$15, t$7, s$8);
-}, S$1 = (s$9, o$15) => {
- if (e$13) s$9.adoptedStyleSheets = o$15.map((t$7) => t$7 instanceof CSSStyleSheet ? t$7 : t$7.styleSheet);
- else for (const e$14 of o$15) {
- const o$16 = document.createElement("style"), n$13 = t$6.litNonce;
- void 0 !== n$13 && o$16.setAttribute("nonce", n$13), o$16.textContent = e$14.cssText, s$9.appendChild(o$16);
+ })(s$9) + t$7[o$15 + 1]), t$7[0]);
+ return new n$10(o$14, t$7, s$8);
+}, S$1 = (s$9, o$14) => {
+ if (e$13) s$9.adoptedStyleSheets = o$14.map(((t$7) => t$7 instanceof CSSStyleSheet ? t$7 : t$7.styleSheet));
+ else for (const e$14 of o$14) {
+ const o$15 = document.createElement("style"), n$11 = t$6.litNonce;
+ void 0 !== n$11 && o$15.setAttribute("nonce", n$11), o$15.textContent = e$14.cssText, s$9.appendChild(o$15);
}
}, c$6 = e$13 ? (t$7) => t$7 : (t$7) => t$7 instanceof CSSStyleSheet ? ((t$8) => {
let e$14 = "";
for (const s$9 of t$8.cssRules) e$14 += s$9.cssText;
- return r$11(e$14);
+ return r$10(e$14);
})(t$7) : t$7;
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
-*/ const { is: i$8, defineProperty: e$12, getOwnPropertyDescriptor: h$6, getOwnPropertyNames: r$10, getOwnPropertySymbols: o$13, getPrototypeOf: n$11 } = Object, a$1 = globalThis, c$5 = a$1.trustedTypes, l$4 = c$5 ? c$5.emptyScript : "", p$2 = a$1.reactiveElementPolyfillSupport, d$2 = (t$7, s$9) => t$7, u$3 = {
+*/ const { is: i$8, defineProperty: e$12, getOwnPropertyDescriptor: h$6, getOwnPropertyNames: r$9, getOwnPropertySymbols: o$12, getPrototypeOf: n$9 } = Object, a$1 = globalThis, c$5 = a$1.trustedTypes, l$4 = c$5 ? c$5.emptyScript : "", p$2 = a$1.reactiveElementPolyfillSupport, d$2 = (t$7, s$9) => t$7, u$3 = {
toAttribute(t$7, s$9) {
switch (s$9) {
case Boolean:
@@ -112,7 +112,7 @@ var y$1 = class extends HTMLElement {
}
}
static getPropertyDescriptor(t$7, s$9, i$10) {
- const { get: e$14, set: r$12 } = h$6(this.prototype, t$7) ?? {
+ const { get: e$14, set: r$11 } = h$6(this.prototype, t$7) ?? {
get() {
return this[s$9];
},
@@ -124,7 +124,7 @@ var y$1 = class extends HTMLElement {
get: e$14,
set(s$10) {
const h$7 = e$14?.call(this);
- r$12?.call(this, s$10), this.requestUpdate(t$7, h$7, i$10);
+ r$11?.call(this, s$10), this.requestUpdate(t$7, h$7, i$10);
},
configurable: !0,
enumerable: !0
@@ -135,13 +135,13 @@ var y$1 = class extends HTMLElement {
}
static _$Ei() {
if (this.hasOwnProperty(d$2("elementProperties"))) return;
- const t$7 = n$11(this);
+ const t$7 = n$9(this);
t$7.finalize(), void 0 !== t$7.l && (this.l = [...t$7.l]), this.elementProperties = new Map(t$7.elementProperties);
}
static finalize() {
if (this.hasOwnProperty(d$2("finalized"))) return;
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(d$2("properties"))) {
- const t$8 = this.properties, s$9 = [...r$10(t$8), ...o$13(t$8)];
+ const t$8 = this.properties, s$9 = [...r$9(t$8), ...o$12(t$8)];
for (const i$10 of s$9) this.createProperty(i$10, t$8[i$10]);
}
const t$7 = this[Symbol.metadata];
@@ -172,7 +172,7 @@ var y$1 = class extends HTMLElement {
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
}
_$Ev() {
- this._$ES = new Promise((t$7) => this.enableUpdating = t$7), this._$AL = new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t$7) => t$7(this));
+ this._$ES = new Promise(((t$7) => this.enableUpdating = t$7)), this._$AL = new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach(((t$7) => t$7(this)));
}
addController(t$7) {
(this._$EO ??= new Set()).add(t$7), void 0 !== this.renderRoot && this.isConnected && t$7.hostConnected?.();
@@ -190,11 +190,11 @@ var y$1 = class extends HTMLElement {
return S$1(t$7, this.constructor.elementStyles), t$7;
}
connectedCallback() {
- this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach((t$7) => t$7.hostConnected?.());
+ this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach(((t$7) => t$7.hostConnected?.()));
}
enableUpdating(t$7) {}
disconnectedCallback() {
- this._$EO?.forEach((t$7) => t$7.hostDisconnected?.());
+ this._$EO?.forEach(((t$7) => t$7.hostDisconnected?.()));
}
attributeChangedCallback(t$7, s$9, i$10) {
this._$AK(t$7, i$10);
@@ -211,20 +211,20 @@ var y$1 = class extends HTMLElement {
if (void 0 !== e$14 && this._$Em !== e$14) {
const t$8 = i$10.getPropertyOptions(e$14), h$7 = "function" == typeof t$8.converter ? { fromAttribute: t$8.converter } : void 0 !== t$8.converter?.fromAttribute ? t$8.converter : u$3;
this._$Em = e$14;
- const r$12 = h$7.fromAttribute(s$9, t$8.type);
- this[e$14] = r$12 ?? this._$Ej?.get(e$14) ?? r$12, this._$Em = null;
+ const r$11 = h$7.fromAttribute(s$9, t$8.type);
+ this[e$14] = r$11 ?? this._$Ej?.get(e$14) ?? r$11, this._$Em = null;
}
}
- requestUpdate(t$7, s$9, i$10, e$14 = !1, h$7) {
+ requestUpdate(t$7, s$9, i$10) {
if (void 0 !== t$7) {
- const r$12 = this.constructor;
- if (!1 === e$14 && (h$7 = this[t$7]), i$10 ??= r$12.getPropertyOptions(t$7), !((i$10.hasChanged ?? f$3)(h$7, s$9) || i$10.useDefault && i$10.reflect && h$7 === this._$Ej?.get(t$7) && !this.hasAttribute(r$12._$Eu(t$7, i$10)))) return;
+ const e$14 = this.constructor, h$7 = this[t$7];
+ if (i$10 ??= e$14.getPropertyOptions(t$7), !((i$10.hasChanged ?? f$3)(h$7, s$9) || i$10.useDefault && i$10.reflect && h$7 === this._$Ej?.get(t$7) && !this.hasAttribute(e$14._$Eu(t$7, i$10)))) return;
this.C(t$7, s$9, i$10);
}
!1 === this.isUpdatePending && (this._$ES = this._$EP());
}
- C(t$7, s$9, { useDefault: i$10, reflect: e$14, wrapped: h$7 }, r$12) {
- i$10 && !(this._$Ej ??= new Map()).has(t$7) && (this._$Ej.set(t$7, r$12 ?? s$9 ?? this[t$7]), !0 !== h$7 || void 0 !== r$12) || (this._$AL.has(t$7) || (this.hasUpdated || i$10 || (s$9 = void 0), this._$AL.set(t$7, s$9)), !0 === e$14 && this._$Em !== t$7 && (this._$Eq ??= new Set()).add(t$7));
+ C(t$7, s$9, { useDefault: i$10, reflect: e$14, wrapped: h$7 }, r$11) {
+ i$10 && !(this._$Ej ??= new Map()).has(t$7) && (this._$Ej.set(t$7, r$11 ?? s$9 ?? this[t$7]), !0 !== h$7 || void 0 !== r$11) || (this._$AL.has(t$7) || (this.hasUpdated || i$10 || (s$9 = void 0), this._$AL.set(t$7, s$9)), !0 === e$14 && this._$Em !== t$7 && (this._$Eq ??= new Set()).add(t$7));
}
async _$EP() {
this.isUpdatePending = !0;
@@ -255,7 +255,7 @@ var y$1 = class extends HTMLElement {
let t$7 = !1;
const s$9 = this._$AL;
try {
- t$7 = this.shouldUpdate(s$9), t$7 ? (this.willUpdate(s$9), this._$EO?.forEach((t$8) => t$8.hostUpdate?.()), this.update(s$9)) : this._$EM();
+ t$7 = this.shouldUpdate(s$9), t$7 ? (this.willUpdate(s$9), this._$EO?.forEach(((t$8) => t$8.hostUpdate?.())), this.update(s$9)) : this._$EM();
} catch (s$10) {
throw t$7 = !1, this._$EM(), s$10;
}
@@ -263,7 +263,7 @@ var y$1 = class extends HTMLElement {
}
willUpdate(t$7) {}
_$AE(t$7) {
- this._$EO?.forEach((t$8) => t$8.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t$7)), this.updated(t$7);
+ this._$EO?.forEach(((t$8) => t$8.hostUpdated?.())), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t$7)), this.updated(t$7);
}
_$EM() {
this._$AL = new Map(), this.isUpdatePending = !1;
@@ -278,101 +278,101 @@ var y$1 = class extends HTMLElement {
return !0;
}
update(t$7) {
- this._$Eq &&= this._$Eq.forEach((t$8) => this._$ET(t$8, this[t$8])), this._$EM();
+ this._$Eq &&= this._$Eq.forEach(((t$8) => this._$ET(t$8, this[t$8]))), this._$EM();
}
updated(t$7) {}
firstUpdated(t$7) {}
};
-y$1.elementStyles = [], y$1.shadowRootOptions = { mode: "open" }, y$1[d$2("elementProperties")] = new Map(), y$1[d$2("finalized")] = new Map(), p$2?.({ ReactiveElement: y$1 }), (a$1.reactiveElementVersions ??= []).push("2.1.2");
+y$1.elementStyles = [], y$1.shadowRootOptions = { mode: "open" }, y$1[d$2("elementProperties")] = new Map(), y$1[d$2("finalized")] = new Map(), p$2?.({ ReactiveElement: y$1 }), (a$1.reactiveElementVersions ??= []).push("2.1.1");
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
-const t$5 = globalThis, i$7 = (t$7) => t$7, s$7 = t$5.trustedTypes, e$11 = s$7 ? s$7.createPolicy("lit-html", { createHTML: (t$7) => t$7 }) : void 0, h$5 = "$lit$", o$12 = `lit$${Math.random().toFixed(9).slice(2)}$`, n$10 = "?" + o$12, r$9 = `<${n$10}>`, l$3 = document, c$4 = () => l$3.createComment(""), a = (t$7) => null === t$7 || "object" != typeof t$7 && "function" != typeof t$7, u$2 = Array.isArray, d$1 = (t$7) => u$2(t$7) || "function" == typeof t$7?.[Symbol.iterator], f$2 = "[ \n\f\r]", v$1 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, _ = /-->/g, m$2 = />/g, p$1 = RegExp(`>|${f$2}(?:([^\\s"'>=/]+)(${f$2}*=${f$2}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"), g = /'/g, $ = /"/g, y = /^(?:script|style|textarea|title)$/i, x = (t$7) => (i$10, ...s$9) => ({
+const t$5 = globalThis, i$7 = t$5.trustedTypes, s$7 = i$7 ? i$7.createPolicy("lit-html", { createHTML: (t$7) => t$7 }) : void 0, e$11 = "$lit$", h$5 = `lit$${Math.random().toFixed(9).slice(2)}$`, o$11 = "?" + h$5, n$8 = `<${o$11}>`, r$8 = document, l$3 = () => r$8.createComment(""), c$4 = (t$7) => null === t$7 || "object" != typeof t$7 && "function" != typeof t$7, a = Array.isArray, u$2 = (t$7) => a(t$7) || "function" == typeof t$7?.[Symbol.iterator], d$1 = "[ \n\f\r]", f$2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, v$1 = /-->/g, _ = />/g, m$2 = RegExp(`>|${d$1}(?:([^\\s"'>=/]+)(${d$1}*=${d$1}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"), p$1 = /'/g, g = /"/g, $ = /^(?:script|style|textarea|title)$/i, y = (t$7) => (i$10, ...s$9) => ({
_$litType$: t$7,
strings: i$10,
values: s$9
-}), b = x(1), w = x(2), T = x(3), E = Symbol.for("lit-noChange"), A = Symbol.for("lit-nothing"), C = new WeakMap(), P = l$3.createTreeWalker(l$3, 129);
-function V(t$7, i$10) {
- if (!u$2(t$7) || !t$7.hasOwnProperty("raw")) throw Error("invalid template strings array");
- return void 0 !== e$11 ? e$11.createHTML(i$10) : i$10;
+}), x = y(1), b = y(2), w = y(3), T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = new WeakMap(), C = r$8.createTreeWalker(r$8, 129);
+function P(t$7, i$10) {
+ if (!a(t$7) || !t$7.hasOwnProperty("raw")) throw Error("invalid template strings array");
+ return void 0 !== s$7 ? s$7.createHTML(i$10) : i$10;
}
-const N = (t$7, i$10) => {
- const s$9 = t$7.length - 1, e$14 = [];
- let n$13, l$5 = 2 === i$10 ? "
" : 3 === i$10 ? "" : "")), o$14];
};
-var S = class S {
- constructor({ strings: t$7, _$litType$: i$10 }, e$14) {
- let r$12;
+var N = class N {
+ constructor({ strings: t$7, _$litType$: s$9 }, n$11) {
+ let r$11;
this.parts = [];
- let l$5 = 0, a$2 = 0;
- const u$4 = t$7.length - 1, d$3 = this.parts, [f$4, v$2] = N(t$7, i$10);
- if (this.el = S.createElement(f$4, e$14), P.currentNode = this.el.content, 2 === i$10 || 3 === i$10) {
+ let c$7 = 0, a$2 = 0;
+ const u$4 = t$7.length - 1, d$3 = this.parts, [f$4, v$2] = V(t$7, s$9);
+ if (this.el = N.createElement(f$4, n$11), C.currentNode = this.el.content, 2 === s$9 || 3 === s$9) {
const t$8 = this.el.content.firstChild;
t$8.replaceWith(...t$8.childNodes);
}
- for (; null !== (r$12 = P.nextNode()) && d$3.length < u$4;) {
- if (1 === r$12.nodeType) {
- if (r$12.hasAttributes()) for (const t$8 of r$12.getAttributeNames()) if (t$8.endsWith(h$5)) {
- const i$11 = v$2[a$2++], s$9 = r$12.getAttribute(t$8).split(o$12), e$15 = /([.?@])?(.*)/.exec(i$11);
+ for (; null !== (r$11 = C.nextNode()) && d$3.length < u$4;) {
+ if (1 === r$11.nodeType) {
+ if (r$11.hasAttributes()) for (const t$8 of r$11.getAttributeNames()) if (t$8.endsWith(e$11)) {
+ const i$10 = v$2[a$2++], s$10 = r$11.getAttribute(t$8).split(h$5), e$14 = /([.?@])?(.*)/.exec(i$10);
d$3.push({
type: 1,
- index: l$5,
- name: e$15[2],
- strings: s$9,
- ctor: "." === e$15[1] ? I : "?" === e$15[1] ? L : "@" === e$15[1] ? z : H
- }), r$12.removeAttribute(t$8);
- } else t$8.startsWith(o$12) && (d$3.push({
+ index: c$7,
+ name: e$14[2],
+ strings: s$10,
+ ctor: "." === e$14[1] ? H : "?" === e$14[1] ? I : "@" === e$14[1] ? L : k
+ }), r$11.removeAttribute(t$8);
+ } else t$8.startsWith(h$5) && (d$3.push({
type: 6,
- index: l$5
- }), r$12.removeAttribute(t$8));
- if (y.test(r$12.tagName)) {
- const t$8 = r$12.textContent.split(o$12), i$11 = t$8.length - 1;
- if (i$11 > 0) {
- r$12.textContent = s$7 ? s$7.emptyScript : "";
- for (let s$9 = 0; s$9 < i$11; s$9++) r$12.append(t$8[s$9], c$4()), P.nextNode(), d$3.push({
+ index: c$7
+ }), r$11.removeAttribute(t$8));
+ if ($.test(r$11.tagName)) {
+ const t$8 = r$11.textContent.split(h$5), s$10 = t$8.length - 1;
+ if (s$10 > 0) {
+ r$11.textContent = i$7 ? i$7.emptyScript : "";
+ for (let i$10 = 0; i$10 < s$10; i$10++) r$11.append(t$8[i$10], l$3()), C.nextNode(), d$3.push({
type: 2,
- index: ++l$5
+ index: ++c$7
});
- r$12.append(t$8[i$11], c$4());
+ r$11.append(t$8[s$10], l$3());
}
}
- } else if (8 === r$12.nodeType) if (r$12.data === n$10) d$3.push({
+ } else if (8 === r$11.nodeType) if (r$11.data === o$11) d$3.push({
type: 2,
- index: l$5
+ index: c$7
});
else {
let t$8 = -1;
- for (; -1 !== (t$8 = r$12.data.indexOf(o$12, t$8 + 1));) d$3.push({
+ for (; -1 !== (t$8 = r$11.data.indexOf(h$5, t$8 + 1));) d$3.push({
type: 7,
- index: l$5
- }), t$8 += o$12.length - 1;
+ index: c$7
+ }), t$8 += h$5.length - 1;
}
- l$5++;
+ c$7++;
}
}
static createElement(t$7, i$10) {
- const s$9 = l$3.createElement("template");
+ const s$9 = r$8.createElement("template");
return s$9.innerHTML = t$7, s$9;
}
};
-function M$1(t$7, i$10, s$9 = t$7, e$14) {
- if (i$10 === E) return i$10;
+function S(t$7, i$10, s$9 = t$7, e$14) {
+ if (i$10 === T) return i$10;
let h$7 = void 0 !== e$14 ? s$9._$Co?.[e$14] : s$9._$Cl;
- const o$15 = a(i$10) ? void 0 : i$10._$litDirective$;
- return h$7?.constructor !== o$15 && (h$7?._$AO?.(!1), void 0 === o$15 ? h$7 = void 0 : (h$7 = new o$15(t$7), h$7._$AT(t$7, s$9, e$14)), void 0 !== e$14 ? (s$9._$Co ??= [])[e$14] = h$7 : s$9._$Cl = h$7), void 0 !== h$7 && (i$10 = M$1(t$7, h$7._$AS(t$7, i$10.values), h$7, e$14)), i$10;
+ const o$14 = c$4(i$10) ? void 0 : i$10._$litDirective$;
+ return h$7?.constructor !== o$14 && (h$7?._$AO?.(!1), void 0 === o$14 ? h$7 = void 0 : (h$7 = new o$14(t$7), h$7._$AT(t$7, s$9, e$14)), void 0 !== e$14 ? (s$9._$Co ??= [])[e$14] = h$7 : s$9._$Cl = h$7), void 0 !== h$7 && (i$10 = S(t$7, h$7._$AS(t$7, i$10.values), h$7, e$14)), i$10;
}
-var R = class {
+var M$1 = class {
constructor(t$7, i$10) {
this._$AV = [], this._$AN = void 0, this._$AD = t$7, this._$AM = i$10;
}
@@ -383,29 +383,29 @@ var R = class {
return this._$AM._$AU;
}
u(t$7) {
- const { el: { content: i$10 }, parts: s$9 } = this._$AD, e$14 = (t$7?.creationScope ?? l$3).importNode(i$10, !0);
- P.currentNode = e$14;
- let h$7 = P.nextNode(), o$15 = 0, n$13 = 0, r$12 = s$9[0];
- for (; void 0 !== r$12;) {
- if (o$15 === r$12.index) {
+ const { el: { content: i$10 }, parts: s$9 } = this._$AD, e$14 = (t$7?.creationScope ?? r$8).importNode(i$10, !0);
+ C.currentNode = e$14;
+ let h$7 = C.nextNode(), o$14 = 0, n$11 = 0, l$5 = s$9[0];
+ for (; void 0 !== l$5;) {
+ if (o$14 === l$5.index) {
let i$11;
- 2 === r$12.type ? i$11 = new k(h$7, h$7.nextSibling, this, t$7) : 1 === r$12.type ? i$11 = new r$12.ctor(h$7, r$12.name, r$12.strings, this, t$7) : 6 === r$12.type && (i$11 = new Z(h$7, this, t$7)), this._$AV.push(i$11), r$12 = s$9[++n$13];
+ 2 === l$5.type ? i$11 = new R(h$7, h$7.nextSibling, this, t$7) : 1 === l$5.type ? i$11 = new l$5.ctor(h$7, l$5.name, l$5.strings, this, t$7) : 6 === l$5.type && (i$11 = new z(h$7, this, t$7)), this._$AV.push(i$11), l$5 = s$9[++n$11];
}
- o$15 !== r$12?.index && (h$7 = P.nextNode(), o$15++);
+ o$14 !== l$5?.index && (h$7 = C.nextNode(), o$14++);
}
- return P.currentNode = l$3, e$14;
+ return C.currentNode = r$8, e$14;
}
p(t$7) {
let i$10 = 0;
for (const s$9 of this._$AV) void 0 !== s$9 && (void 0 !== s$9.strings ? (s$9._$AI(t$7, s$9, i$10), i$10 += s$9.strings.length - 2) : s$9._$AI(t$7[i$10])), i$10++;
}
};
-var k = class k {
+var R = class R {
get _$AU() {
return this._$AM?._$AU ?? this._$Cv;
}
constructor(t$7, i$10, s$9, e$14) {
- this.type = 2, this._$AH = A, this._$AN = void 0, this._$AA = t$7, this._$AB = i$10, this._$AM = s$9, this.options = e$14, this._$Cv = e$14?.isConnected ?? !0;
+ this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t$7, this._$AB = i$10, this._$AM = s$9, this.options = e$14, this._$Cv = e$14?.isConnected ?? !0;
}
get parentNode() {
let t$7 = this._$AA.parentNode;
@@ -419,7 +419,7 @@ var k = class k {
return this._$AB;
}
_$AI(t$7, i$10 = this) {
- t$7 = M$1(this, t$7, i$10), a(t$7) ? t$7 === A || null == t$7 || "" === t$7 ? (this._$AH !== A && this._$AR(), this._$AH = A) : t$7 !== this._$AH && t$7 !== E && this._(t$7) : void 0 !== t$7._$litType$ ? this.$(t$7) : void 0 !== t$7.nodeType ? this.T(t$7) : d$1(t$7) ? this.k(t$7) : this._(t$7);
+ t$7 = S(this, t$7, i$10), c$4(t$7) ? t$7 === E || null == t$7 || "" === t$7 ? (this._$AH !== E && this._$AR(), this._$AH = E) : t$7 !== this._$AH && t$7 !== T && this._(t$7) : void 0 !== t$7._$litType$ ? this.$(t$7) : void 0 !== t$7.nodeType ? this.T(t$7) : u$2(t$7) ? this.k(t$7) : this._(t$7);
}
O(t$7) {
return this._$AA.parentNode.insertBefore(t$7, this._$AB);
@@ -428,38 +428,38 @@ var k = class k {
this._$AH !== t$7 && (this._$AR(), this._$AH = this.O(t$7));
}
_(t$7) {
- this._$AH !== A && a(this._$AH) ? this._$AA.nextSibling.data = t$7 : this.T(l$3.createTextNode(t$7)), this._$AH = t$7;
+ this._$AH !== E && c$4(this._$AH) ? this._$AA.nextSibling.data = t$7 : this.T(r$8.createTextNode(t$7)), this._$AH = t$7;
}
$(t$7) {
- const { values: i$10, _$litType$: s$9 } = t$7, e$14 = "number" == typeof s$9 ? this._$AC(t$7) : (void 0 === s$9.el && (s$9.el = S.createElement(V(s$9.h, s$9.h[0]), this.options)), s$9);
+ const { values: i$10, _$litType$: s$9 } = t$7, e$14 = "number" == typeof s$9 ? this._$AC(t$7) : (void 0 === s$9.el && (s$9.el = N.createElement(P(s$9.h, s$9.h[0]), this.options)), s$9);
if (this._$AH?._$AD === e$14) this._$AH.p(i$10);
else {
- const t$8 = new R(e$14, this), s$10 = t$8.u(this.options);
+ const t$8 = new M$1(e$14, this), s$10 = t$8.u(this.options);
t$8.p(i$10), this.T(s$10), this._$AH = t$8;
}
}
_$AC(t$7) {
- let i$10 = C.get(t$7.strings);
- return void 0 === i$10 && C.set(t$7.strings, i$10 = new S(t$7)), i$10;
+ let i$10 = A.get(t$7.strings);
+ return void 0 === i$10 && A.set(t$7.strings, i$10 = new N(t$7)), i$10;
}
k(t$7) {
- u$2(this._$AH) || (this._$AH = [], this._$AR());
+ a(this._$AH) || (this._$AH = [], this._$AR());
const i$10 = this._$AH;
let s$9, e$14 = 0;
- for (const h$7 of t$7) e$14 === i$10.length ? i$10.push(s$9 = new k(this.O(c$4()), this.O(c$4()), this, this.options)) : s$9 = i$10[e$14], s$9._$AI(h$7), e$14++;
+ for (const h$7 of t$7) e$14 === i$10.length ? i$10.push(s$9 = new R(this.O(l$3()), this.O(l$3()), this, this.options)) : s$9 = i$10[e$14], s$9._$AI(h$7), e$14++;
e$14 < i$10.length && (this._$AR(s$9 && s$9._$AB.nextSibling, e$14), i$10.length = e$14);
}
- _$AR(t$7 = this._$AA.nextSibling, s$9) {
- for (this._$AP?.(!1, !0, s$9); t$7 !== this._$AB;) {
- const s$10 = i$7(t$7).nextSibling;
- i$7(t$7).remove(), t$7 = s$10;
+ _$AR(t$7 = this._$AA.nextSibling, i$10) {
+ for (this._$AP?.(!1, !0, i$10); t$7 !== this._$AB;) {
+ const i$11 = t$7.nextSibling;
+ t$7.remove(), t$7 = i$11;
}
}
setConnected(t$7) {
void 0 === this._$AM && (this._$Cv = t$7, this._$AP?.(t$7));
}
};
-var H = class {
+var k = class {
get tagName() {
return this.element.tagName;
}
@@ -467,53 +467,53 @@ var H = class {
return this._$AM._$AU;
}
constructor(t$7, i$10, s$9, e$14, h$7) {
- this.type = 1, this._$AH = A, this._$AN = void 0, this.element = t$7, this.name = i$10, this._$AM = e$14, this.options = h$7, s$9.length > 2 || "" !== s$9[0] || "" !== s$9[1] ? (this._$AH = Array(s$9.length - 1).fill(new String()), this.strings = s$9) : this._$AH = A;
+ this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t$7, this.name = i$10, this._$AM = e$14, this.options = h$7, s$9.length > 2 || "" !== s$9[0] || "" !== s$9[1] ? (this._$AH = Array(s$9.length - 1).fill(new String()), this.strings = s$9) : this._$AH = E;
}
_$AI(t$7, i$10 = this, s$9, e$14) {
const h$7 = this.strings;
- let o$15 = !1;
- if (void 0 === h$7) t$7 = M$1(this, t$7, i$10, 0), o$15 = !a(t$7) || t$7 !== this._$AH && t$7 !== E, o$15 && (this._$AH = t$7);
+ let o$14 = !1;
+ if (void 0 === h$7) t$7 = S(this, t$7, i$10, 0), o$14 = !c$4(t$7) || t$7 !== this._$AH && t$7 !== T, o$14 && (this._$AH = t$7);
else {
const e$15 = t$7;
- let n$13, r$12;
- for (t$7 = h$7[0], n$13 = 0; n$13 < h$7.length - 1; n$13++) r$12 = M$1(this, e$15[s$9 + n$13], i$10, n$13), r$12 === E && (r$12 = this._$AH[n$13]), o$15 ||= !a(r$12) || r$12 !== this._$AH[n$13], r$12 === A ? t$7 = A : t$7 !== A && (t$7 += (r$12 ?? "") + h$7[n$13 + 1]), this._$AH[n$13] = r$12;
+ let n$11, r$11;
+ for (t$7 = h$7[0], n$11 = 0; n$11 < h$7.length - 1; n$11++) r$11 = S(this, e$15[s$9 + n$11], i$10, n$11), r$11 === T && (r$11 = this._$AH[n$11]), o$14 ||= !c$4(r$11) || r$11 !== this._$AH[n$11], r$11 === E ? t$7 = E : t$7 !== E && (t$7 += (r$11 ?? "") + h$7[n$11 + 1]), this._$AH[n$11] = r$11;
}
- o$15 && !e$14 && this.j(t$7);
+ o$14 && !e$14 && this.j(t$7);
}
j(t$7) {
- t$7 === A ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t$7 ?? "");
+ t$7 === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t$7 ?? "");
}
};
-var I = class extends H {
+var H = class extends k {
constructor() {
super(...arguments), this.type = 3;
}
j(t$7) {
- this.element[this.name] = t$7 === A ? void 0 : t$7;
+ this.element[this.name] = t$7 === E ? void 0 : t$7;
}
};
-var L = class extends H {
+var I = class extends k {
constructor() {
super(...arguments), this.type = 4;
}
j(t$7) {
- this.element.toggleAttribute(this.name, !!t$7 && t$7 !== A);
+ this.element.toggleAttribute(this.name, !!t$7 && t$7 !== E);
}
};
-var z = class extends H {
+var L = class extends k {
constructor(t$7, i$10, s$9, e$14, h$7) {
super(t$7, i$10, s$9, e$14, h$7), this.type = 5;
}
_$AI(t$7, i$10 = this) {
- if ((t$7 = M$1(this, t$7, i$10, 0) ?? A) === E) return;
- const s$9 = this._$AH, e$14 = t$7 === A && s$9 !== A || t$7.capture !== s$9.capture || t$7.once !== s$9.once || t$7.passive !== s$9.passive, h$7 = t$7 !== A && (s$9 === A || e$14);
+ if ((t$7 = S(this, t$7, i$10, 0) ?? E) === T) return;
+ const s$9 = this._$AH, e$14 = t$7 === E && s$9 !== E || t$7.capture !== s$9.capture || t$7.once !== s$9.once || t$7.passive !== s$9.passive, h$7 = t$7 !== E && (s$9 === E || e$14);
e$14 && this.element.removeEventListener(this.name, this, s$9), h$7 && this.element.addEventListener(this.name, this, t$7), this._$AH = t$7;
}
handleEvent(t$7) {
"function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t$7) : this._$AH.handleEvent(t$7);
}
};
-var Z = class {
+var z = class {
constructor(t$7, i$10, s$9) {
this.element = t$7, this.type = 6, this._$AN = void 0, this._$AM = i$10, this.options = s$9;
}
@@ -521,32 +521,32 @@ var Z = class {
return this._$AM._$AU;
}
_$AI(t$7) {
- M$1(this, t$7);
+ S(this, t$7);
}
};
-const j$1 = {
- M: h$5,
- P: o$12,
- A: n$10,
+const Z = {
+ M: e$11,
+ P: h$5,
+ A: o$11,
C: 1,
- L: N,
- R,
- D: d$1,
- V: M$1,
- I: k,
- H,
- N: L,
- U: z,
- B: I,
- F: Z
-}, B = t$5.litHtmlPolyfillSupport;
-B?.(S, k), (t$5.litHtmlVersions ??= []).push("3.3.2");
-const D = (t$7, i$10, s$9) => {
+ L: V,
+ R: M$1,
+ D: u$2,
+ V: S,
+ I: R,
+ H: k,
+ N: I,
+ U: L,
+ B: H,
+ F: z
+}, j = t$5.litHtmlPolyfillSupport;
+j?.(N, R), (t$5.litHtmlVersions ??= []).push("3.3.1");
+const B = (t$7, i$10, s$9) => {
const e$14 = s$9?.renderBefore ?? i$10;
let h$7 = e$14._$litPart$;
if (void 0 === h$7) {
const t$8 = s$9?.renderBefore ?? null;
- e$14._$litPart$ = h$7 = new k(i$10.insertBefore(c$4(), t$8), t$8, void 0, s$9 ?? {});
+ e$14._$litPart$ = h$7 = new R(i$10.insertBefore(l$3(), t$8), t$8, void 0, s$9 ?? {});
}
return h$7._$AI(t$7), h$7;
};
@@ -565,8 +565,8 @@ var i$6 = class extends y$1 {
return this.renderOptions.renderBefore ??= t$7.firstChild, t$7;
}
update(t$7) {
- const r$12 = this.render();
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t$7), this._$Do = D(r$12, this.renderRoot, this.renderOptions);
+ const r$11 = this.render();
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t$7), this._$Do = B(r$11, this.renderRoot, this.renderOptions);
}
connectedCallback() {
super.connectedCallback(), this._$Do?.setConnected(!0);
@@ -575,26 +575,26 @@ var i$6 = class extends y$1 {
super.disconnectedCallback(), this._$Do?.setConnected(!1);
}
render() {
- return E;
+ return T;
}
};
i$6._$litElement$ = !0, i$6["finalized"] = !0, s$6.litElementHydrateSupport?.({ LitElement: i$6 });
-const o$11 = s$6.litElementPolyfillSupport;
-o$11?.({ LitElement: i$6 });
-const n$9 = {
- _$AK: (t$7, e$14, r$12) => {
- t$7._$AK(e$14, r$12);
+const o$10 = s$6.litElementPolyfillSupport;
+o$10?.({ LitElement: i$6 });
+const n$7 = {
+ _$AK: (t$7, e$14, r$11) => {
+ t$7._$AK(e$14, r$11);
},
_$AL: (t$7) => t$7._$AL
};
-(s$6.litElementVersions ??= []).push("4.2.2");
+(s$6.litElementVersions ??= []).push("4.2.1");
/**
* @license
* Copyright 2022 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
-const o$10 = !1;
+const o$9 = !1;
/**
* @license
@@ -632,34 +632,34 @@ var i$5 = class {
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
-*/ const { I: t$3 } = j$1, i$4 = (o$15) => o$15, n$8 = (o$15) => null === o$15 || "object" != typeof o$15 && "function" != typeof o$15, e$9 = {
+*/ const { I: t$3 } = Z, i$4 = (o$14) => null === o$14 || "object" != typeof o$14 && "function" != typeof o$14, n$6 = {
HTML: 1,
SVG: 2,
MATHML: 3
-}, l$2 = (o$15, t$7) => void 0 === t$7 ? void 0 !== o$15?._$litType$ : o$15?._$litType$ === t$7, d = (o$15) => null != o$15?._$litType$?.h, c$3 = (o$15) => void 0 !== o$15?._$litDirective$, f$1 = (o$15) => o$15?._$litDirective$, r$8 = (o$15) => void 0 === o$15.strings, s$5 = () => document.createComment(""), v = (o$15, n$13, e$14) => {
- const l$5 = o$15._$AA.parentNode, d$3 = void 0 === n$13 ? o$15._$AB : n$13._$AA;
- if (void 0 === e$14) {
- const i$10 = l$5.insertBefore(s$5(), d$3), n$14 = l$5.insertBefore(s$5(), d$3);
- e$14 = new t$3(i$10, n$14, o$15, o$15.options);
+}, e$9 = (o$14, t$7) => void 0 === t$7 ? void 0 !== o$14?._$litType$ : o$14?._$litType$ === t$7, l$2 = (o$14) => null != o$14?._$litType$?.h, d = (o$14) => void 0 !== o$14?._$litDirective$, c$3 = (o$14) => o$14?._$litDirective$, f$1 = (o$14) => void 0 === o$14.strings, r$7 = () => document.createComment(""), s$5 = (o$14, i$10, n$11) => {
+ const e$14 = o$14._$AA.parentNode, l$5 = void 0 === i$10 ? o$14._$AB : i$10._$AA;
+ if (void 0 === n$11) {
+ const i$11 = e$14.insertBefore(r$7(), l$5), d$3 = e$14.insertBefore(r$7(), l$5);
+ n$11 = new t$3(i$11, d$3, o$14, o$14.options);
} else {
- const t$7 = e$14._$AB.nextSibling, n$14 = e$14._$AM, c$7 = n$14 !== o$15;
- if (c$7) {
+ const t$7 = n$11._$AB.nextSibling, i$11 = n$11._$AM, d$3 = i$11 !== o$14;
+ if (d$3) {
let t$8;
- e$14._$AQ?.(o$15), e$14._$AM = o$15, void 0 !== e$14._$AP && (t$8 = o$15._$AU) !== n$14._$AU && e$14._$AP(t$8);
+ n$11._$AQ?.(o$14), n$11._$AM = o$14, void 0 !== n$11._$AP && (t$8 = o$14._$AU) !== i$11._$AU && n$11._$AP(t$8);
}
- if (t$7 !== d$3 || c$7) {
- let o$16 = e$14._$AA;
- for (; o$16 !== t$7;) {
- const t$8 = i$4(o$16).nextSibling;
- i$4(l$5).insertBefore(o$16, d$3), o$16 = t$8;
+ if (t$7 !== l$5 || d$3) {
+ let o$15 = n$11._$AA;
+ for (; o$15 !== t$7;) {
+ const t$8 = o$15.nextSibling;
+ e$14.insertBefore(o$15, l$5), o$15 = t$8;
}
}
}
- return e$14;
-}, u$1 = (o$15, t$7, i$10 = o$15) => (o$15._$AI(t$7, i$10), o$15), m$1 = {}, p = (o$15, t$7 = m$1) => o$15._$AH = t$7, M = (o$15) => o$15._$AH, h$4 = (o$15) => {
- o$15._$AR(), o$15._$AA.remove();
-}, j = (o$15) => {
- o$15._$AR();
+ return n$11;
+}, v = (o$14, t$7, i$10 = o$14) => (o$14._$AI(t$7, i$10), o$14), u$1 = {}, m$1 = (o$14, t$7 = u$1) => o$14._$AH = t$7, p = (o$14) => o$14._$AH, M = (o$14) => {
+ o$14._$AR(), o$14._$AA.remove();
+}, h$4 = (o$14) => {
+ o$14._$AR();
};
/**
@@ -668,56 +668,56 @@ var i$5 = class {
* SPDX-License-Identifier: BSD-3-Clause
*/
const u = (e$14, s$9, t$7) => {
- const r$12 = new Map();
- for (let l$5 = s$9; l$5 <= t$7; l$5++) r$12.set(e$14[l$5], l$5);
- return r$12;
+ const r$11 = new Map();
+ for (let l$5 = s$9; l$5 <= t$7; l$5++) r$11.set(e$14[l$5], l$5);
+ return r$11;
}, c$2 = e$10(class extends i$5 {
constructor(e$14) {
if (super(e$14), e$14.type !== t$4.CHILD) throw Error("repeat() can only be used in text expressions");
}
dt(e$14, s$9, t$7) {
- let r$12;
- void 0 === t$7 ? t$7 = s$9 : void 0 !== s$9 && (r$12 = s$9);
- const l$5 = [], o$15 = [];
+ let r$11;
+ void 0 === t$7 ? t$7 = s$9 : void 0 !== s$9 && (r$11 = s$9);
+ const l$5 = [], o$14 = [];
let i$10 = 0;
- for (const s$10 of e$14) l$5[i$10] = r$12 ? r$12(s$10, i$10) : i$10, o$15[i$10] = t$7(s$10, i$10), i$10++;
+ for (const s$10 of e$14) l$5[i$10] = r$11 ? r$11(s$10, i$10) : i$10, o$14[i$10] = t$7(s$10, i$10), i$10++;
return {
- values: o$15,
+ values: o$14,
keys: l$5
};
}
render(e$14, s$9, t$7) {
return this.dt(e$14, s$9, t$7).values;
}
- update(s$9, [t$7, r$12, c$7]) {
- const d$3 = M(s$9), { values: p$3, keys: a$2 } = this.dt(t$7, r$12, c$7);
+ update(s$9, [t$7, r$11, c$7]) {
+ const d$3 = p(s$9), { values: p$3, keys: a$2 } = this.dt(t$7, r$11, c$7);
if (!Array.isArray(d$3)) return this.ut = a$2, p$3;
const h$7 = this.ut ??= [], v$2 = [];
- let m$3, y$2, x$1 = 0, j$2 = d$3.length - 1, k$1 = 0, w$1 = p$3.length - 1;
- for (; x$1 <= j$2 && k$1 <= w$1;) if (null === d$3[x$1]) x$1++;
- else if (null === d$3[j$2]) j$2--;
- else if (h$7[x$1] === a$2[k$1]) v$2[k$1] = u$1(d$3[x$1], p$3[k$1]), x$1++, k$1++;
- else if (h$7[j$2] === a$2[w$1]) v$2[w$1] = u$1(d$3[j$2], p$3[w$1]), j$2--, w$1--;
- else if (h$7[x$1] === a$2[w$1]) v$2[w$1] = u$1(d$3[x$1], p$3[w$1]), v(s$9, v$2[w$1 + 1], d$3[x$1]), x$1++, w$1--;
- else if (h$7[j$2] === a$2[k$1]) v$2[k$1] = u$1(d$3[j$2], p$3[k$1]), v(s$9, d$3[x$1], d$3[j$2]), j$2--, k$1++;
- else if (void 0 === m$3 && (m$3 = u(a$2, k$1, w$1), y$2 = u(h$7, x$1, j$2)), m$3.has(h$7[x$1])) if (m$3.has(h$7[j$2])) {
+ let m$3, y$2, x$1 = 0, j$1 = d$3.length - 1, k$1 = 0, w$1 = p$3.length - 1;
+ for (; x$1 <= j$1 && k$1 <= w$1;) if (null === d$3[x$1]) x$1++;
+ else if (null === d$3[j$1]) j$1--;
+ else if (h$7[x$1] === a$2[k$1]) v$2[k$1] = v(d$3[x$1], p$3[k$1]), x$1++, k$1++;
+ else if (h$7[j$1] === a$2[w$1]) v$2[w$1] = v(d$3[j$1], p$3[w$1]), j$1--, w$1--;
+ else if (h$7[x$1] === a$2[w$1]) v$2[w$1] = v(d$3[x$1], p$3[w$1]), s$5(s$9, v$2[w$1 + 1], d$3[x$1]), x$1++, w$1--;
+ else if (h$7[j$1] === a$2[k$1]) v$2[k$1] = v(d$3[j$1], p$3[k$1]), s$5(s$9, d$3[x$1], d$3[j$1]), j$1--, k$1++;
+ else if (void 0 === m$3 && (m$3 = u(a$2, k$1, w$1), y$2 = u(h$7, x$1, j$1)), m$3.has(h$7[x$1])) if (m$3.has(h$7[j$1])) {
const e$14 = y$2.get(a$2[k$1]), t$8 = void 0 !== e$14 ? d$3[e$14] : null;
if (null === t$8) {
- const e$15 = v(s$9, d$3[x$1]);
- u$1(e$15, p$3[k$1]), v$2[k$1] = e$15;
- } else v$2[k$1] = u$1(t$8, p$3[k$1]), v(s$9, d$3[x$1], t$8), d$3[e$14] = null;
+ const e$15 = s$5(s$9, d$3[x$1]);
+ v(e$15, p$3[k$1]), v$2[k$1] = e$15;
+ } else v$2[k$1] = v(t$8, p$3[k$1]), s$5(s$9, d$3[x$1], t$8), d$3[e$14] = null;
k$1++;
- } else h$4(d$3[j$2]), j$2--;
- else h$4(d$3[x$1]), x$1++;
+ } else M(d$3[j$1]), j$1--;
+ else M(d$3[x$1]), x$1++;
for (; k$1 <= w$1;) {
- const e$14 = v(s$9, v$2[w$1 + 1]);
- u$1(e$14, p$3[k$1]), v$2[k$1++] = e$14;
+ const e$14 = s$5(s$9, v$2[w$1 + 1]);
+ v(e$14, p$3[k$1]), v$2[k$1++] = e$14;
}
- for (; x$1 <= j$2;) {
+ for (; x$1 <= j$1;) {
const e$14 = d$3[x$1++];
- null !== e$14 && h$4(e$14);
+ null !== e$14 && M(e$14);
}
- return this.ut = a$2, p(s$9, v$2), E;
+ return this.ut = a$2, m$1(s$9, v$2), T;
}
});
@@ -727,11 +727,11 @@ const u = (e$14, s$9, t$7) => {
* SPDX-License-Identifier: BSD-3-Clause
*/
var s$4 = class extends Event {
- constructor(s$9, t$7, e$14, o$15) {
+ constructor(s$9, t$7, e$14, o$14) {
super("context-request", {
bubbles: !0,
composed: !0
- }), this.context = s$9, this.contextTarget = t$7, this.callback = e$14, this.subscribe = o$15 ?? !1;
+ }), this.context = s$9, this.contextTarget = t$7, this.callback = e$14, this.subscribe = o$14 ?? !1;
}
};
@@ -740,8 +740,8 @@ var s$4 = class extends Event {
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
-function n$7(n$13) {
- return n$13;
+function n$5(n$11) {
+ return n$11;
}
/**
@@ -850,21 +850,21 @@ var i$3 = class extends s$2 {
const s$9 = this.pendingContextRequests.get(t$7.context);
if (void 0 === s$9) return;
this.pendingContextRequests.delete(t$7.context);
- const { requests: o$15 } = s$9;
- for (const { elementRef: s$10, callbackRef: n$13 } of o$15) {
- const o$16 = s$10.deref(), c$7 = n$13.deref();
- void 0 === o$16 || void 0 === c$7 || o$16.dispatchEvent(new s$4(t$7.context, o$16, c$7, !0));
+ const { requests: o$14 } = s$9;
+ for (const { elementRef: s$10, callbackRef: n$11 } of o$14) {
+ const o$15 = s$10.deref(), c$7 = n$11.deref();
+ void 0 === o$15 || void 0 === c$7 || o$15.dispatchEvent(new s$4(t$7.context, o$15, c$7, !0));
}
}, this.onContextRequest = (e$14) => {
if (!0 !== e$14.subscribe) return;
const t$7 = e$14.contextTarget ?? e$14.composedPath()[0], s$9 = e$14.callback;
- let o$15 = this.pendingContextRequests.get(e$14.context);
- void 0 === o$15 && this.pendingContextRequests.set(e$14.context, o$15 = {
+ let o$14 = this.pendingContextRequests.get(e$14.context);
+ void 0 === o$14 && this.pendingContextRequests.set(e$14.context, o$14 = {
callbacks: new WeakMap(),
requests: []
});
- let n$13 = o$15.callbacks.get(t$7);
- void 0 === n$13 && o$15.callbacks.set(t$7, n$13 = new WeakSet()), n$13.has(s$9) || (n$13.add(s$9), o$15.requests.push({
+ let n$11 = o$14.callbacks.get(t$7);
+ void 0 === n$11 && o$14.callbacks.set(t$7, n$11 = new WeakSet()), n$11.has(s$9) || (n$11.add(s$9), o$14.requests.push({
elementRef: new WeakRef(t$7),
callbackRef: new WeakRef(s$9)
}));
@@ -883,50 +883,50 @@ var i$3 = class extends s$2 {
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/ function e$7({ context: e$14 }) {
- return (n$13, i$10) => {
- const r$12 = new WeakMap();
+ return (n$11, i$10) => {
+ const r$11 = new WeakMap();
if ("object" == typeof i$10) return {
get() {
- return n$13.get.call(this);
+ return n$11.get.call(this);
},
set(t$7) {
- return r$12.get(this).setValue(t$7), n$13.set.call(this, t$7);
+ return r$11.get(this).setValue(t$7), n$11.set.call(this, t$7);
},
- init(n$14) {
- return r$12.set(this, new i$3(this, {
+ init(n$12) {
+ return r$11.set(this, new i$3(this, {
context: e$14,
- initialValue: n$14
- })), n$14;
+ initialValue: n$12
+ })), n$12;
}
};
{
- n$13.constructor.addInitializer(((n$14) => {
- r$12.set(n$14, new i$3(n$14, { context: e$14 }));
+ n$11.constructor.addInitializer(((n$12) => {
+ r$11.set(n$12, new i$3(n$12, { context: e$14 }));
}));
- const o$15 = Object.getOwnPropertyDescriptor(n$13, i$10);
+ const o$14 = Object.getOwnPropertyDescriptor(n$11, i$10);
let s$9;
- if (void 0 === o$15) {
+ if (void 0 === o$14) {
const t$7 = new WeakMap();
s$9 = {
get() {
return t$7.get(this);
},
set(e$15) {
- r$12.get(this).setValue(e$15), t$7.set(this, e$15);
+ r$11.get(this).setValue(e$15), t$7.set(this, e$15);
},
configurable: !0,
enumerable: !0
};
} else {
- const t$7 = o$15.set;
+ const t$7 = o$14.set;
s$9 = {
- ...o$15,
+ ...o$14,
set(e$15) {
- r$12.get(this).setValue(e$15), t$7?.call(this, e$15);
+ r$11.get(this).setValue(e$15), t$7?.call(this, e$15);
}
};
}
- return void Object.defineProperty(n$13, i$10, s$9);
+ return void Object.defineProperty(n$11, i$10, s$9);
}
};
}
@@ -936,20 +936,20 @@ var i$3 = class extends s$2 {
* Copyright 2022 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/ function c$1({ context: c$7, subscribe: e$14 }) {
- return (o$15, n$13) => {
- "object" == typeof n$13 ? n$13.addInitializer((function() {
+ return (o$14, n$11) => {
+ "object" == typeof n$11 ? n$11.addInitializer((function() {
new s$3(this, {
context: c$7,
callback: (t$7) => {
- o$15.set.call(this, t$7);
+ o$14.set.call(this, t$7);
},
subscribe: e$14
});
- })) : o$15.constructor.addInitializer(((o$16) => {
- new s$3(o$16, {
+ })) : o$14.constructor.addInitializer(((o$15) => {
+ new s$3(o$15, {
context: c$7,
callback: (t$7) => {
- o$16[n$13] = t$7;
+ o$15[n$11] = t$7;
},
subscribe: e$14
});
@@ -1120,9 +1120,9 @@ const color = (src) => `
${src.map((key) => {
const inverseKey = getInverseKey(key);
const vals = [`.color-bgc-${key} { background-color: light-dark(var(${toProp(key)}), var(${toProp(inverseKey)})); }`, `.color-bbgc-${key}::backdrop { background-color: light-dark(var(${toProp(key)}), var(${toProp(inverseKey)})); }`];
- for (let o$15 = .1; o$15 < 1; o$15 += .1) {
- vals.push(`.color-bbgc-${key}_${(o$15 * 100).toFixed(0)}::backdrop {
- background-color: light-dark(oklch(from var(${toProp(key)}) l c h / calc(alpha * ${o$15.toFixed(1)})), oklch(from var(${toProp(inverseKey)}) l c h / calc(alpha * ${o$15.toFixed(1)})) );
+ for (let o$14 = .1; o$14 < 1; o$14 += .1) {
+ vals.push(`.color-bbgc-${key}_${(o$14 * 100).toFixed(0)}::backdrop {
+ background-color: light-dark(oklch(from var(${toProp(key)}) l c h / calc(alpha * ${o$14.toFixed(1)})), oklch(from var(${toProp(inverseKey)}) l c h / calc(alpha * ${o$14.toFixed(1)})) );
}
`);
}
@@ -1553,7 +1553,7 @@ const structuralStyles$1 = [
type$1
].flat(Infinity).join("\n");
-var guards_exports = /* @__PURE__ */ __exportAll({
+var guards_exports = /* @__PURE__ */ __export({
isComponentArrayReference: () => isComponentArrayReference,
isObject: () => isObject$1,
isPath: () => isPath,
@@ -2643,7 +2643,7 @@ var Signal;
if (!(0, Signal2.isComputed)(sink) && !(0, Signal2.isWatcher)(sink)) {
throw new TypeError("Called introspectSources without a Computed or Watcher argument");
}
- return ((_a3 = sink[NODE].producerNode) == null ? void 0 : _a3.map((n$13) => n$13.wrapper)) ?? [];
+ return ((_a3 = sink[NODE].producerNode) == null ? void 0 : _a3.map((n$11) => n$11.wrapper)) ?? [];
}
subtle2.introspectSources = introspectSources;
function introspectSinks(signal) {
@@ -2651,7 +2651,7 @@ var Signal;
if (!(0, Signal2.isComputed)(signal) && !(0, Signal2.isState)(signal)) {
throw new TypeError("Called introspectSinks without a Signal argument");
}
- return ((_a3 = signal[NODE].liveConsumerNode) == null ? void 0 : _a3.map((n$13) => n$13.wrapper)) ?? [];
+ return ((_a3 = signal[NODE].liveConsumerNode) == null ? void 0 : _a3.map((n$11) => n$11.wrapper)) ?? [];
}
subtle2.introspectSinks = introspectSinks;
function hasSinks(signal) {
@@ -2728,7 +2728,7 @@ var Signal;
throw new TypeError("Called getPending without Watcher receiver");
}
const node = this[NODE];
- return node.producerNode.filter((n$13) => n$13.dirty).map((n$13) => n$13.wrapper);
+ return node.producerNode.filter((n$11) => n$11.dirty).map((n$11) => n$11.wrapper);
}
}
_a2 = NODE;
@@ -3893,60 +3893,60 @@ const Schemas = { A2UIClientEventMessage: server_to_client_with_standard_catalog
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
-const t$1 = (t$7) => (e$14, o$15) => {
- void 0 !== o$15 ? o$15.addInitializer(() => {
+const t$1 = (t$7) => (e$14, o$14) => {
+ void 0 !== o$14 ? o$14.addInitializer((() => {
customElements.define(t$7, e$14);
- }) : customElements.define(t$7, e$14);
+ })) : customElements.define(t$7, e$14);
};
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
-*/ const o$9 = {
+*/ const o$8 = {
attribute: !0,
type: String,
converter: u$3,
reflect: !1,
hasChanged: f$3
-}, r$7 = (t$7 = o$9, e$14, r$12) => {
- const { kind: n$13, metadata: i$10 } = r$12;
+}, r$6 = (t$7 = o$8, e$14, r$11) => {
+ const { kind: n$11, metadata: i$10 } = r$11;
let s$9 = globalThis.litPropertyMetadata.get(i$10);
- if (void 0 === s$9 && globalThis.litPropertyMetadata.set(i$10, s$9 = new Map()), "setter" === n$13 && ((t$7 = Object.create(t$7)).wrapped = !0), s$9.set(r$12.name, t$7), "accessor" === n$13) {
- const { name: o$15 } = r$12;
+ if (void 0 === s$9 && globalThis.litPropertyMetadata.set(i$10, s$9 = new Map()), "setter" === n$11 && ((t$7 = Object.create(t$7)).wrapped = !0), s$9.set(r$11.name, t$7), "accessor" === n$11) {
+ const { name: o$14 } = r$11;
return {
- set(r$13) {
- const n$14 = e$14.get.call(this);
- e$14.set.call(this, r$13), this.requestUpdate(o$15, n$14, t$7, !0, r$13);
+ set(r$12) {
+ const n$12 = e$14.get.call(this);
+ e$14.set.call(this, r$12), this.requestUpdate(o$14, n$12, t$7);
},
init(e$15) {
- return void 0 !== e$15 && this.C(o$15, void 0, t$7, e$15), e$15;
+ return void 0 !== e$15 && this.C(o$14, void 0, t$7, e$15), e$15;
}
};
}
- if ("setter" === n$13) {
- const { name: o$15 } = r$12;
- return function(r$13) {
- const n$14 = this[o$15];
- e$14.call(this, r$13), this.requestUpdate(o$15, n$14, t$7, !0, r$13);
+ if ("setter" === n$11) {
+ const { name: o$14 } = r$11;
+ return function(r$12) {
+ const n$12 = this[o$14];
+ e$14.call(this, r$12), this.requestUpdate(o$14, n$12, t$7);
};
}
- throw Error("Unsupported decorator location: " + n$13);
+ throw Error("Unsupported decorator location: " + n$11);
};
-function n$6(t$7) {
- return (e$14, o$15) => "object" == typeof o$15 ? r$7(t$7, e$14, o$15) : ((t$8, e$15, o$16) => {
- const r$12 = e$15.hasOwnProperty(o$16);
- return e$15.constructor.createProperty(o$16, t$8), r$12 ? Object.getOwnPropertyDescriptor(e$15, o$16) : void 0;
- })(t$7, e$14, o$15);
+function n$4(t$7) {
+ return (e$14, o$14) => "object" == typeof o$14 ? r$6(t$7, e$14, o$14) : ((t$8, e$15, o$15) => {
+ const r$11 = e$15.hasOwnProperty(o$15);
+ return e$15.constructor.createProperty(o$15, t$8), r$11 ? Object.getOwnPropertyDescriptor(e$15, o$15) : void 0;
+ })(t$7, e$14, o$14);
}
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
-*/ function r$6(r$12) {
- return n$6({
- ...r$12,
+*/ function r$5(r$11) {
+ return n$4({
+ ...r$11,
state: !0,
attribute: !1
});
@@ -3958,8 +3958,8 @@ function n$6(t$7) {
* SPDX-License-Identifier: BSD-3-Clause
*/
function t(t$7) {
- return (n$13, o$15) => {
- const c$7 = "function" == typeof n$13 ? n$13 : n$13[o$15];
+ return (n$11, o$14) => {
+ const c$7 = "function" == typeof n$11 ? n$11 : n$11[o$14];
Object.assign(c$7, t$7);
};
}
@@ -3975,11 +3975,11 @@ const e$6 = (e$14, t$7, c$7) => (c$7.configurable = !0, c$7.enumerable = !0, Ref
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
-*/ function e$5(e$14, r$12) {
- return (n$13, s$9, i$10) => {
- const o$15 = (t$7) => t$7.renderRoot?.querySelector(e$14) ?? null;
- if (r$12) {
- const { get: e$15, set: r$13 } = "object" == typeof s$9 ? n$13 : i$10 ?? (() => {
+*/ function e$5(e$14, r$11) {
+ return (n$11, s$9, i$10) => {
+ const o$14 = (t$7) => t$7.renderRoot?.querySelector(e$14) ?? null;
+ if (r$11) {
+ const { get: e$15, set: r$12 } = "object" == typeof s$9 ? n$11 : i$10 ?? (() => {
const t$7 = Symbol();
return {
get() {
@@ -3990,13 +3990,13 @@ const e$6 = (e$14, t$7, c$7) => (c$7.configurable = !0, c$7.enumerable = !0, Ref
}
};
})();
- return e$6(n$13, s$9, { get() {
+ return e$6(n$11, s$9, { get() {
let t$7 = e$15.call(this);
- return void 0 === t$7 && (t$7 = o$15(this), (null !== t$7 || this.hasUpdated) && r$13.call(this, t$7)), t$7;
+ return void 0 === t$7 && (t$7 = o$14(this), (null !== t$7 || this.hasUpdated) && r$12.call(this, t$7)), t$7;
} });
}
- return e$6(n$13, s$9, { get() {
- return o$15(this);
+ return e$6(n$11, s$9, { get() {
+ return o$14(this);
} });
};
}
@@ -4007,9 +4007,9 @@ const e$6 = (e$14, t$7, c$7) => (c$7.configurable = !0, c$7.enumerable = !0, Ref
* SPDX-License-Identifier: BSD-3-Clause
*/
let e$4;
-function r$5(r$12) {
- return (n$13, o$15) => e$6(n$13, o$15, { get() {
- return (this.renderRoot ?? (e$4 ??= document.createDocumentFragment())).querySelectorAll(r$12);
+function r$4(r$11) {
+ return (n$11, o$14) => e$6(n$11, o$14, { get() {
+ return (this.renderRoot ?? (e$4 ??= document.createDocumentFragment())).querySelectorAll(r$11);
} });
}
@@ -4018,9 +4018,9 @@ function r$5(r$12) {
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
-function r$4(r$12) {
- return (n$13, e$14) => e$6(n$13, e$14, { async get() {
- return await this.updateComplete, this.renderRoot?.querySelector(r$12) ?? null;
+function r$3(r$11) {
+ return (n$11, e$14) => e$6(n$11, e$14, { async get() {
+ return await this.updateComplete, this.renderRoot?.querySelector(r$11) ?? null;
} });
}
@@ -4028,12 +4028,12 @@ function r$4(r$12) {
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
-*/ function o$8(o$15) {
- return (e$14, n$13) => {
- const { slot: r$12, selector: s$9 } = o$15 ?? {}, c$7 = "slot" + (r$12 ? `[name=${r$12}]` : ":not([name])");
- return e$6(e$14, n$13, { get() {
- const t$7 = this.renderRoot?.querySelector(c$7), e$15 = t$7?.assignedElements(o$15) ?? [];
- return void 0 === s$9 ? e$15 : e$15.filter((t$8) => t$8.matches(s$9));
+*/ function o$7(o$14) {
+ return (e$14, n$11) => {
+ const { slot: r$11, selector: s$9 } = o$14 ?? {}, c$7 = "slot" + (r$11 ? `[name=${r$11}]` : ":not([name])");
+ return e$6(e$14, n$11, { get() {
+ const t$7 = this.renderRoot?.querySelector(c$7), e$15 = t$7?.assignedElements(o$14) ?? [];
+ return void 0 === s$9 ? e$15 : e$15.filter(((t$8) => t$8.matches(s$9)));
} });
};
}
@@ -4042,12 +4042,12 @@ function r$4(r$12) {
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
-*/ function n$5(n$13) {
- return (o$15, r$12) => {
- const { slot: e$14 } = n$13 ?? {}, s$9 = "slot" + (e$14 ? `[name=${e$14}]` : ":not([name])");
- return e$6(o$15, r$12, { get() {
+*/ function n$3(n$11) {
+ return (o$14, r$11) => {
+ const { slot: e$14 } = n$11 ?? {}, s$9 = "slot" + (e$14 ? `[name=${e$14}]` : ":not([name])");
+ return e$6(o$14, r$11, { get() {
const t$7 = this.renderRoot?.querySelector(s$9);
- return t$7?.assignedNodes(n$13) ?? [];
+ return t$7?.assignedNodes(n$11) ?? [];
} });
};
}
@@ -4056,75 +4056,59 @@ function r$4(r$12) {
* @license
* Copyright 2023 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
-*/ let i$2 = !1;
-const s$1 = new Signal.subtle.Watcher(() => {
- i$2 || (i$2 = !0, queueMicrotask(() => {
- i$2 = !1;
- for (const t$7 of s$1.getPending()) t$7.get();
- s$1.watch();
- }));
-}), h$3 = Symbol("SignalWatcherBrand"), e$3 = new FinalizationRegistry((i$10) => {
- i$10.unwatch(...Signal.subtle.introspectSources(i$10));
-}), n$4 = new WeakMap();
-function o$7(i$10) {
- return !0 === i$10[h$3] ? (console.warn("SignalWatcher should not be applied to the same class more than once."), i$10) : class extends i$10 {
+*/ const i$2 = Symbol("SignalWatcherBrand"), s$1 = new FinalizationRegistry((({ watcher: t$7, signal: i$10 }) => {
+ t$7.unwatch(i$10);
+})), h$3 = new WeakMap();
+function e$3(e$14) {
+ return !0 === e$14[i$2] ? (console.warn("SignalWatcher should not be applied to the same class more than once."), e$14) : class extends e$14 {
constructor() {
- super(...arguments), this._$St = new Map(), this._$So = new Signal.State(0), this._$Si = !1;
+ super(...arguments), this._$St = new Signal.State(0), this._$Si = !1, this._$So = !0, this._$Sh = new Set();
}
_$Sl() {
- var t$7, i$11;
- const s$9 = [], h$7 = [];
- this._$St.forEach((t$8, i$12) => {
- ((null == t$8 ? void 0 : t$8.beforeUpdate) ? s$9 : h$7).push(i$12);
- });
- const e$14 = null === (t$7 = this.h) || void 0 === t$7 ? void 0 : t$7.getPending().filter((t$8) => t$8 !== this._$Su && !this._$St.has(t$8));
- s$9.forEach((t$8) => t$8.get()), null === (i$11 = this._$Su) || void 0 === i$11 || i$11.get(), e$14.forEach((t$8) => t$8.get()), h$7.forEach((t$8) => t$8.get());
- }
- _$Sv() {
- this.isUpdatePending || queueMicrotask(() => {
- this.isUpdatePending || this._$Sl();
- });
- }
- _$S_() {
- if (void 0 !== this.h) return;
- this._$Su = new Signal.Computed(() => {
- this._$So.get(), super.performUpdate();
- });
- const i$11 = this.h = new Signal.subtle.Watcher(function() {
- const t$7 = n$4.get(this);
- void 0 !== t$7 && (!1 === t$7._$Si && (new Set(this.getPending()).has(t$7._$Su) ? t$7.requestUpdate() : t$7._$Sv()), this.watch());
- });
- n$4.set(i$11, this), e$3.register(this, i$11), i$11.watch(this._$Su), i$11.watch(...Array.from(this._$St).map(([t$7]) => t$7));
+ if (void 0 !== this._$Su) return;
+ this._$Sv = new Signal.Computed((() => {
+ this._$St.get(), super.performUpdate();
+ }));
+ const i$10 = this._$Su = new Signal.subtle.Watcher((function() {
+ const t$7 = h$3.get(this);
+ void 0 !== t$7 && (!1 === t$7._$Si && t$7.requestUpdate(), this.watch());
+ }));
+ h$3.set(i$10, this), s$1.register(this, {
+ watcher: i$10,
+ signal: this._$Sv
+ }), i$10.watch(this._$Sv);
}
_$Sp() {
- if (void 0 === this.h) return;
- let i$11 = !1;
- this.h.unwatch(...Signal.subtle.introspectSources(this.h).filter((t$7) => {
- var s$9;
- const h$7 = !0 !== (null === (s$9 = this._$St.get(t$7)) || void 0 === s$9 ? void 0 : s$9.manualDispose);
- return h$7 && this._$St.delete(t$7), i$11 || (i$11 = !h$7), h$7;
- })), i$11 || (this._$Su = void 0, this.h = void 0, this._$St.clear());
- }
- updateEffect(i$11, s$9) {
- var h$7;
- this._$S_();
- const e$14 = new Signal.Computed(() => {
- i$11();
- });
- return this.h.watch(e$14), this._$St.set(e$14, s$9), null !== (h$7 = null == s$9 ? void 0 : s$9.beforeUpdate) && void 0 !== h$7 && h$7 ? Signal.subtle.untrack(() => e$14.get()) : this.updateComplete.then(() => Signal.subtle.untrack(() => e$14.get())), () => {
- this._$St.delete(e$14), this.h.unwatch(e$14), !1 === this.isConnected && this._$Sp();
- };
+ void 0 !== this._$Su && (this._$Su.unwatch(this._$Sv), this._$Sv = void 0, this._$Su = void 0);
}
performUpdate() {
- this.isUpdatePending && (this._$S_(), this._$Si = !0, this._$So.set(this._$So.get() + 1), this._$Si = !1, this._$Sl());
+ this.isUpdatePending && (this._$Sl(), this._$Si = !0, this._$St.set(this._$St.get() + 1), this._$Si = !1, this._$Sv.get());
+ }
+ update(t$7) {
+ try {
+ this._$So ? (this._$So = !1, super.update(t$7)) : this._$Sh.forEach(((t$8) => t$8.commit()));
+ } finally {
+ this.isUpdatePending = !1, this._$Sh.clear();
+ }
+ }
+ requestUpdate(t$7, i$10, s$9) {
+ this._$So = !0, super.requestUpdate(t$7, i$10, s$9);
}
connectedCallback() {
super.connectedCallback(), this.requestUpdate();
}
disconnectedCallback() {
- super.disconnectedCallback(), queueMicrotask(() => {
+ super.disconnectedCallback(), queueMicrotask((() => {
!1 === this.isConnected && this._$Sp();
- });
+ }));
+ }
+ _(t$7) {
+ this._$Sh.add(t$7);
+ const i$10 = this._$So;
+ this.requestUpdate(), this._$So = i$10;
+ }
+ m(t$7) {
+ this._$Sh.delete(t$7);
}
};
}
@@ -4144,7 +4128,7 @@ function o$7(i$10) {
if (void 0 === (t$7 = i$10._$AM)) break;
e$14 = t$7._$AN, e$14.delete(i$10), i$10 = t$7;
} while (0 === e$14?.size);
-}, r$3 = (i$10) => {
+}, r$2 = (i$10) => {
for (let t$7; t$7 = i$10._$AM; i$10 = t$7) {
let e$14 = t$7._$AN;
if (void 0 === e$14) t$7._$AN = e$14 = new Set();
@@ -4153,29 +4137,29 @@ function o$7(i$10) {
}
};
function h$2(i$10) {
- void 0 !== this._$AN ? (o$6(this), this._$AM = i$10, r$3(this)) : this._$AM = i$10;
+ void 0 !== this._$AN ? (o$6(this), this._$AM = i$10, r$2(this)) : this._$AM = i$10;
}
-function n$3(i$10, t$7 = !1, e$14 = 0) {
- const r$12 = this._$AH, h$7 = this._$AN;
- if (void 0 !== h$7 && 0 !== h$7.size) if (t$7) if (Array.isArray(r$12)) for (let i$11 = e$14; i$11 < r$12.length; i$11++) s(r$12[i$11], !1), o$6(r$12[i$11]);
- else null != r$12 && (s(r$12, !1), o$6(r$12));
+function n$2(i$10, t$7 = !1, e$14 = 0) {
+ const r$11 = this._$AH, h$7 = this._$AN;
+ if (void 0 !== h$7 && 0 !== h$7.size) if (t$7) if (Array.isArray(r$11)) for (let i$11 = e$14; i$11 < r$11.length; i$11++) s(r$11[i$11], !1), o$6(r$11[i$11]);
+ else null != r$11 && (s(r$11, !1), o$6(r$11));
else s(this, i$10);
}
const c = (i$10) => {
- i$10.type == t$4.CHILD && (i$10._$AP ??= n$3, i$10._$AQ ??= h$2);
+ i$10.type == t$4.CHILD && (i$10._$AP ??= n$2, i$10._$AQ ??= h$2);
};
var f = class extends i$5 {
constructor() {
super(...arguments), this._$AN = void 0;
}
_$AT(i$10, t$7, e$14) {
- super._$AT(i$10, t$7, e$14), r$3(this), this.isConnected = i$10._$AU;
+ super._$AT(i$10, t$7, e$14), r$2(this), this.isConnected = i$10._$AU;
}
_$AO(i$10, t$7 = !0) {
i$10 !== this.isConnected && (this.isConnected = i$10, i$10 ? this.reconnected?.() : this.disconnected?.()), t$7 && (s(this, i$10), o$6(this));
}
setValue(t$7) {
- if (r$8(this._$Ct)) this._$Ct._$AI(t$7, this);
+ if (f$1(this._$Ct)) this._$Ct._$AI(t$7, this);
else {
const i$10 = [...this._$Ct._$AH];
i$10[this._$Ci] = t$7, this._$Ct._$AI(i$10, this, 0);
@@ -4189,67 +4173,66 @@ var f = class extends i$5 {
* @license
* Copyright 2023 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
-*/
-let o$5 = !1;
-const n$2 = new Signal.subtle.Watcher(async () => {
- o$5 || (o$5 = !0, queueMicrotask(() => {
- o$5 = !1;
- for (const i$10 of n$2.getPending()) i$10.get();
- n$2.watch();
- }));
-});
-var r$2 = class extends f {
- _$S_() {
- var i$10, t$7;
- void 0 === this._$Sm && (this._$Sj = new Signal.Computed(() => {
- var i$11;
- const t$8 = null === (i$11 = this._$SW) || void 0 === i$11 ? void 0 : i$11.get();
- return this.setValue(t$8), t$8;
- }), this._$Sm = null !== (t$7 = null === (i$10 = this._$Sk) || void 0 === i$10 ? void 0 : i$10.h) && void 0 !== t$7 ? t$7 : n$2, this._$Sm.watch(this._$Sj), Signal.subtle.untrack(() => {
+*/ var h$1 = class extends f {
+ _$Sl() {
+ if (void 0 !== this._$Su) return;
+ this._$SW = new Signal.Computed((() => {
var i$11;
return null === (i$11 = this._$Sj) || void 0 === i$11 ? void 0 : i$11.get();
}));
+ const i$10 = this._$Su = new Signal.subtle.Watcher((() => {
+ var t$7;
+ null === (t$7 = this._$SO) || void 0 === t$7 || t$7._(this), i$10.watch();
+ }));
+ i$10.watch(this._$SW);
}
_$Sp() {
- void 0 !== this._$Sm && (this._$Sm.unwatch(this._$SW), this._$Sm = void 0);
+ var i$10;
+ void 0 !== this._$Su && (this._$Su.unwatch(this._$SW), this._$SW = void 0, this._$Su = void 0, null === (i$10 = this._$SO) || void 0 === i$10 || i$10.m(this));
+ }
+ commit() {
+ this.setValue(Signal.subtle.untrack((() => {
+ var i$10;
+ return null === (i$10 = this._$SW) || void 0 === i$10 ? void 0 : i$10.get();
+ })));
}
render(i$10) {
- return Signal.subtle.untrack(() => i$10.get());
+ return Signal.subtle.untrack((() => i$10.get()));
}
update(i$10, [t$7]) {
- var o$15, n$13;
- return null !== (o$15 = this._$Sk) && void 0 !== o$15 || (this._$Sk = null === (n$13 = i$10.options) || void 0 === n$13 ? void 0 : n$13.host), t$7 !== this._$SW && void 0 !== this._$SW && this._$Sp(), this._$SW = t$7, this._$S_(), Signal.subtle.untrack(() => this._$SW.get());
+ var h$7, o$14;
+ return null !== (h$7 = this._$SO) && void 0 !== h$7 || (this._$SO = null === (o$14 = i$10.options) || void 0 === o$14 ? void 0 : o$14.host), t$7 !== this._$Sj && void 0 !== this._$Sj && this._$Sp(), this._$Sj = t$7, this._$Sl(), Signal.subtle.untrack((() => this._$SW.get()));
}
disconnected() {
this._$Sp();
}
reconnected() {
- this._$S_();
+ this._$Sl();
}
};
-const h$1 = e$10(r$2);
+const o$5 = e$10(h$1);
/**
* @license
* Copyright 2023 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
-*/ const m = (o$15) => (t$7, ...m$3) => o$15(t$7, ...m$3.map((o$16) => o$16 instanceof Signal.State || o$16 instanceof Signal.Computed ? h$1(o$16) : o$16)), l$1 = m(b), r$1 = m(w);
+*/ const m = (o$14) => (t$7, ...m$3) => o$14(t$7, ...m$3.map(((o$15) => o$15 instanceof Signal.State || o$15 instanceof Signal.Computed ? o$5(o$15) : o$15))), l$1 = m(x), r$1 = m(b);
/**
* @license
* Copyright 2023 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
-*/ const l = Signal.State, o$4 = Signal.Computed, r = (l$5, o$15) => new Signal.State(l$5, o$15), i$1 = (l$5, o$15) => new Signal.Computed(l$5, o$15);
+*/ const l = Signal.State, o$4 = Signal.Computed, r = (l$5, o$14) => new Signal.State(l$5, o$14), i$1 = (l$5, o$14) => new Signal.Computed(l$5, o$14);
/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
-function* o$3(o$15, f$4) {
- if (void 0 !== o$15) {
+function* o$3(o$14, f$4) {
+ if (void 0 !== o$14) {
let i$10 = 0;
- for (const t$7 of o$15) yield f$4(t$7, i$10++);
+ for (const t$7 of o$14) yield f$4(t$7, i$10++);
}
}
@@ -4282,9 +4265,9 @@ function effect(cb) {
};
}
-const themeContext = n$7("A2UITheme");
+const themeContext = n$5("A2UITheme");
-const structuralStyles = r$11(structuralStyles$1);
+const structuralStyles = r$10(structuralStyles$1);
var ComponentRegistry = class {
constructor() {
@@ -4360,7 +4343,7 @@ let Root = (() => {
let _classDescriptor;
let _classExtraInitializers = [];
let _classThis;
- let _classSuper = o$7(i$6);
+ let _classSuper = e$3(i$6);
let _instanceExtraInitializers = [];
let _surfaceId_decorators;
let _surfaceId_initializers = [];
@@ -4390,14 +4373,14 @@ let Root = (() => {
}
static {
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
- _surfaceId_decorators = [n$6()];
- _component_decorators = [n$6()];
+ _surfaceId_decorators = [n$4()];
+ _component_decorators = [n$4()];
_theme_decorators = [c$1({ context: themeContext })];
- _childComponents_decorators = [n$6({ attribute: false })];
- _processor_decorators = [n$6({ attribute: false })];
- _dataContextPath_decorators = [n$6()];
- _enableCustomElements_decorators = [n$6()];
- _set_weight_decorators = [n$6()];
+ _childComponents_decorators = [n$4({ attribute: false })];
+ _processor_decorators = [n$4({ attribute: false })];
+ _dataContextPath_decorators = [n$4()];
+ _enableCustomElements_decorators = [n$4()];
+ _set_weight_decorators = [n$4()];
__esDecorate$19(this, null, _surfaceId_decorators, {
kind: "accessor",
name: "surfaceId",
@@ -4602,7 +4585,7 @@ let Root = (() => {
this.#lightDomEffectDisposer = effect(() => {
const allChildren = this.childComponents ?? null;
const lightDomTemplate = this.renderComponentTree(allChildren);
- D(lightDomTemplate, this, { host: this });
+ B(lightDomTemplate, this, { host: this });
});
}
}
@@ -4620,12 +4603,12 @@ let Root = (() => {
*/
renderComponentTree(components) {
if (!components) {
- return A;
+ return E;
}
if (!Array.isArray(components)) {
- return A;
+ return E;
}
- return b` ${o$3(components, (component) => {
+ return x` ${o$3(components, (component) => {
if (this.enableCustomElements) {
const registeredCtor = componentRegistry.get(component.type);
const elCtor = registeredCtor || customElements.get(component.type);
@@ -4644,16 +4627,16 @@ let Root = (() => {
for (const [prop, val] of Object.entries(component.properties)) {
el[prop] = val;
}
- return b`${el}`;
+ return x`${el}`;
}
}
switch (component.type) {
case "List": {
const node = component;
const childComponents = node.properties.children;
- return b`
{
if (!childComponents && node.properties.child) {
childComponents = [node.properties.child];
}
- return b` {
}
case "Column": {
const node = component;
- return b` {
}
case "Row": {
const node = component;
- return b` {
}
case "Image": {
const node = component;
- return b` {
}
case "Icon": {
const node = component;
- return b` {
}
case "AudioPlayer": {
const node = component;
- return b` {
}
case "Button": {
const node = component;
- return b` {
}
case "Text": {
const node = component;
- return b` {
}
case "CheckBox": {
const node = component;
- return b` {
}
case "DateTimeInput": {
const node = component;
- return b` {
}
case "Divider": {
const node = component;
- return b` {
}
case "MultipleChoice": {
const node = component;
- return b` {
}
case "Slider": {
const node = component;
- return b` {
}
case "TextField": {
const node = component;
- return b` {
}
case "Video": {
const node = component;
- return b` {
childComponents.push(item.child);
}
}
- return b` {
const node = component;
const childComponents = [node.properties.entryPointChild, node.properties.contentChild];
node.properties.entryPointChild.slotName = "entry";
- return b` {
const registeredCtor = componentRegistry.get(component.type);
const elCtor = registeredCtor || customElements.get(component.type);
if (!elCtor) {
- return b`Unknown element ${component.type}`;
+ return x`Unknown element ${component.type}`;
}
const el = new elCtor();
el.id = node.id;
@@ -4967,10 +4950,10 @@ let Root = (() => {
for (const [prop, val] of Object.entries(component.properties)) {
el[prop] = val;
}
- return b`${el}`;
+ return x`${el}`;
}
render() {
- return b``;
+ return x``;
}
static {
__runInitializers$19(_classThis, _classExtraInitializers);
@@ -4988,21 +4971,21 @@ let Root = (() => {
if (super(t$7), t$7.type !== t$4.ATTRIBUTE || "class" !== t$7.name || t$7.strings?.length > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
}
render(t$7) {
- return " " + Object.keys(t$7).filter((s$9) => t$7[s$9]).join(" ") + " ";
+ return " " + Object.keys(t$7).filter(((s$9) => t$7[s$9])).join(" ") + " ";
}
update(s$9, [i$10]) {
if (void 0 === this.st) {
- this.st = new Set(), void 0 !== s$9.strings && (this.nt = new Set(s$9.strings.join(" ").split(/\s/).filter((t$7) => "" !== t$7)));
+ this.st = new Set(), void 0 !== s$9.strings && (this.nt = new Set(s$9.strings.join(" ").split(/\s/).filter(((t$7) => "" !== t$7))));
for (const t$7 in i$10) i$10[t$7] && !this.nt?.has(t$7) && this.st.add(t$7);
return this.render(i$10);
}
- const r$12 = s$9.element.classList;
- for (const t$7 of this.st) t$7 in i$10 || (r$12.remove(t$7), this.st.delete(t$7));
+ const r$11 = s$9.element.classList;
+ for (const t$7 of this.st) t$7 in i$10 || (r$11.remove(t$7), this.st.delete(t$7));
for (const t$7 in i$10) {
const s$10 = !!i$10[t$7];
- s$10 === this.st.has(t$7) || this.nt?.has(t$7) || (s$10 ? (r$12.add(t$7), this.st.add(t$7)) : (r$12.remove(t$7), this.st.delete(t$7)));
+ s$10 === this.st.has(t$7) || this.nt?.has(t$7) || (s$10 ? (r$11.add(t$7), this.st.add(t$7)) : (r$11.remove(t$7), this.st.delete(t$7)));
}
- return E;
+ return T;
}
});
@@ -5015,24 +4998,24 @@ let Root = (() => {
if (super(t$7), t$7.type !== t$4.ATTRIBUTE || "style" !== t$7.name || t$7.strings?.length > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
}
render(t$7) {
- return Object.keys(t$7).reduce((e$14, r$12) => {
- const s$9 = t$7[r$12];
- return null == s$9 ? e$14 : e$14 + `${r$12 = r$12.includes("-") ? r$12 : r$12.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${s$9};`;
- }, "");
+ return Object.keys(t$7).reduce(((e$14, r$11) => {
+ const s$9 = t$7[r$11];
+ return null == s$9 ? e$14 : e$14 + `${r$11 = r$11.includes("-") ? r$11 : r$11.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${s$9};`;
+ }), "");
}
- update(e$14, [r$12]) {
+ update(e$14, [r$11]) {
const { style: s$9 } = e$14.element;
- if (void 0 === this.ft) return this.ft = new Set(Object.keys(r$12)), this.render(r$12);
- for (const t$7 of this.ft) null == r$12[t$7] && (this.ft.delete(t$7), t$7.includes("-") ? s$9.removeProperty(t$7) : s$9[t$7] = null);
- for (const t$7 in r$12) {
- const e$15 = r$12[t$7];
+ if (void 0 === this.ft) return this.ft = new Set(Object.keys(r$11)), this.render(r$11);
+ for (const t$7 of this.ft) null == r$11[t$7] && (this.ft.delete(t$7), t$7.includes("-") ? s$9.removeProperty(t$7) : s$9[t$7] = null);
+ for (const t$7 in r$11) {
+ const e$15 = r$11[t$7];
if (null != e$15) {
this.ft.add(t$7);
- const r$13 = "string" == typeof e$15 && e$15.endsWith(i);
- t$7.includes("-") || r$13 ? s$9.setProperty(t$7, r$13 ? e$15.slice(0, -11) : e$15, r$13 ? n$1 : "") : s$9[t$7] = e$15;
+ const r$12 = "string" == typeof e$15 && e$15.endsWith(i);
+ t$7.includes("-") || r$12 ? s$9.setProperty(t$7, r$12 ? e$15.slice(0, -11) : e$15, r$12 ? n$1 : "") : s$9[t$7] = e$15;
}
}
- return E;
+ return T;
}
});
@@ -5093,7 +5076,7 @@ let Audio = (() => {
}
static {
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
- _url_decorators = [n$6()];
+ _url_decorators = [n$4()];
__esDecorate$18(this, null, _url_decorators, {
kind: "accessor",
name: "url",
@@ -5149,33 +5132,33 @@ let Audio = (() => {
}
#renderAudio() {
if (!this.url) {
- return A;
+ return E;
}
if (this.url && typeof this.url === "object") {
if ("literalString" in this.url) {
- return b``;
+ return x``;
} else if ("literal" in this.url) {
- return b``;
+ return x``;
} else if (this.url && "path" in this.url && this.url.path) {
if (!this.processor || !this.component) {
- return b`(no processor)`;
+ return x`(no processor)`;
}
const audioUrl = this.processor.getData(this.component, this.url.path, this.surfaceId ?? A2uiMessageProcessor.DEFAULT_SURFACE_ID);
if (!audioUrl) {
- return b`Invalid audio URL`;
+ return x`Invalid audio URL`;
}
if (typeof audioUrl !== "string") {
- return b`Invalid audio URL`;
+ return x`Invalid audio URL`;
}
- return b``;
+ return x``;
}
}
- return b`(empty)`;
+ return x`(empty)`;
}
render() {
- return b``;
@@ -5248,7 +5231,7 @@ let Button = (() => {
}
static {
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
- _action_decorators = [n$6()];
+ _action_decorators = [n$4()];
__esDecorate$17(this, null, _action_decorators, {
kind: "accessor",
name: "action",
@@ -5293,9 +5276,9 @@ let Button = (() => {
`];
}
render() {
- return b`