@webwriter/quiz 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/LICENSE +6 -6
  2. package/custom.d.ts +175 -175
  3. package/dist/widgets/webwriter-choice-item.js +3257 -59
  4. package/dist/widgets/webwriter-choice.js +4941 -79
  5. package/dist/widgets/webwriter-cloze-gap.js +4092 -179
  6. package/dist/widgets/webwriter-cloze.js +2415 -36
  7. package/dist/widgets/webwriter-mark.js +2471 -61
  8. package/dist/widgets/webwriter-order-item.js +2447 -68
  9. package/dist/widgets/webwriter-order.js +4990 -135
  10. package/dist/widgets/webwriter-pairing-item.js +1581 -48
  11. package/dist/widgets/webwriter-pairing.js +3686 -72
  12. package/dist/widgets/webwriter-quiz.js +6938 -76
  13. package/dist/widgets/webwriter-speech.js +6265 -76
  14. package/dist/widgets/webwriter-task-explainer.js +1564 -31
  15. package/dist/widgets/webwriter-task-hint.js +1523 -28
  16. package/dist/widgets/webwriter-task-prompt.js +1586 -29
  17. package/dist/widgets/webwriter-task.js +7132 -101
  18. package/dist/widgets/webwriter-text.js +4044 -54
  19. package/package.json +200 -200
  20. package/src/lib/combobox.ts +455 -455
  21. package/src/snippets/choice.html +7 -7
  22. package/src/snippets/cloze.html +3 -3
  23. package/src/snippets/mark.html +3 -3
  24. package/src/snippets/order.html +7 -7
  25. package/src/snippets/pairing.html +9 -9
  26. package/src/snippets/speech.html +3 -3
  27. package/src/snippets/text.html +3 -3
  28. package/src/snippets/wordsearch.html +3 -3
  29. package/src/widgets/webwriter-choice-item.ts +250 -250
  30. package/src/widgets/webwriter-choice.ts +309 -309
  31. package/src/widgets/webwriter-cloze-gap.ts +216 -216
  32. package/src/widgets/webwriter-cloze.ts +135 -135
  33. package/src/widgets/webwriter-mark.ts +434 -434
  34. package/src/widgets/webwriter-order-item.ts +444 -444
  35. package/src/widgets/webwriter-order.ts +272 -272
  36. package/src/widgets/webwriter-pairing-item.ts +155 -155
  37. package/src/widgets/webwriter-pairing.ts +187 -187
  38. package/src/widgets/webwriter-quiz.ts +280 -280
  39. package/src/widgets/webwriter-speech.ts +267 -267
  40. package/src/widgets/webwriter-task-explainer.ts +37 -37
  41. package/src/widgets/webwriter-task-hint.ts +16 -16
  42. package/src/widgets/webwriter-task-prompt.ts +17 -17
  43. package/src/widgets/webwriter-task.ts +543 -543
  44. package/src/widgets/webwriter-text.ts +130 -130
  45. package/tsconfig.json +6 -6
@@ -13,51 +13,2986 @@ var __expectFn = (fn) => fn !== void 0 && typeof fn !== "function" ? __typeError
13
13
  var __decoratorContext = (kind, name, done, metadata, fns) => ({ kind: __decoratorStrings[kind], name, metadata, addInitializer: (fn) => done._ ? __typeError("Already initialized") : fns.push(__expectFn(fn || null)) });
14
14
  var __decoratorMetadata = (array, target) => __defNormalProp(target, __knownSymbol("metadata"), array[3]);
15
15
  var __runInitializers = (array, flags, self, value) => {
16
- for (var i = 0, fns = array[flags >> 1], n = fns && fns.length; i < n; i++) flags & 1 ? fns[i].call(self) : value = fns[i].call(self, value);
16
+ for (var i4 = 0, fns = array[flags >> 1], n6 = fns && fns.length; i4 < n6; i4++) flags & 1 ? fns[i4].call(self) : value = fns[i4].call(self, value);
17
17
  return value;
18
18
  };
19
19
  var __decorateElement = (array, flags, name, decorators, target, extra) => {
20
- var fn, it, done, ctx, access, k = flags & 7, s = !!(flags & 8), p = !!(flags & 16);
21
- var j = k > 3 ? array.length + 1 : k ? s ? 1 : 2 : 0, key = __decoratorStrings[k + 5];
22
- var initializers = k > 3 && (array[j - 1] = []), extraInitializers = array[j] || (array[j] = []);
23
- var desc = k && (!p && !s && (target = target.prototype), k < 5 && (k > 3 || !p) && __getOwnPropDesc(k < 4 ? target : { get [name]() {
20
+ var fn, it, done, ctx, access, k3 = flags & 7, s3 = !!(flags & 8), p3 = !!(flags & 16);
21
+ var j3 = k3 > 3 ? array.length + 1 : k3 ? s3 ? 1 : 2 : 0, key = __decoratorStrings[k3 + 5];
22
+ var initializers = k3 > 3 && (array[j3 - 1] = []), extraInitializers = array[j3] || (array[j3] = []);
23
+ var desc = k3 && (!p3 && !s3 && (target = target.prototype), k3 < 5 && (k3 > 3 || !p3) && __getOwnPropDesc(k3 < 4 ? target : { get [name]() {
24
24
  return __privateGet(this, extra);
25
- }, set [name](x) {
26
- return __privateSet(this, extra, x);
25
+ }, set [name](x3) {
26
+ return __privateSet(this, extra, x3);
27
27
  } }, name));
28
- k ? p && k < 4 && __name(extra, (k > 2 ? "set " : k > 1 ? "get " : "") + name) : __name(target, name);
29
- for (var i = decorators.length - 1; i >= 0; i--) {
30
- ctx = __decoratorContext(k, name, done = {}, array[3], extraInitializers);
31
- if (k) {
32
- ctx.static = s, ctx.private = p, access = ctx.access = { has: p ? (x) => __privateIn(target, x) : (x) => name in x };
33
- if (k ^ 3) access.get = p ? (x) => (k ^ 1 ? __privateGet : __privateMethod)(x, target, k ^ 4 ? extra : desc.get) : (x) => x[name];
34
- if (k > 2) access.set = p ? (x, y) => __privateSet(x, target, y, k ^ 4 ? extra : desc.set) : (x, y) => x[name] = y;
35
- }
36
- it = (0, decorators[i])(k ? k < 4 ? p ? extra : desc[key] : k > 4 ? void 0 : { get: desc.get, set: desc.set } : target, ctx), done._ = 1;
37
- if (k ^ 4 || it === void 0) __expectFn(it) && (k > 4 ? initializers.unshift(it) : k ? p ? extra = it : desc[key] = it : target = it);
28
+ k3 ? p3 && k3 < 4 && __name(extra, (k3 > 2 ? "set " : k3 > 1 ? "get " : "") + name) : __name(target, name);
29
+ for (var i4 = decorators.length - 1; i4 >= 0; i4--) {
30
+ ctx = __decoratorContext(k3, name, done = {}, array[3], extraInitializers);
31
+ if (k3) {
32
+ ctx.static = s3, ctx.private = p3, access = ctx.access = { has: p3 ? (x3) => __privateIn(target, x3) : (x3) => name in x3 };
33
+ if (k3 ^ 3) access.get = p3 ? (x3) => (k3 ^ 1 ? __privateGet : __privateMethod)(x3, target, k3 ^ 4 ? extra : desc.get) : (x3) => x3[name];
34
+ if (k3 > 2) access.set = p3 ? (x3, y3) => __privateSet(x3, target, y3, k3 ^ 4 ? extra : desc.set) : (x3, y3) => x3[name] = y3;
35
+ }
36
+ it = (0, decorators[i4])(k3 ? k3 < 4 ? p3 ? extra : desc[key] : k3 > 4 ? void 0 : { get: desc.get, set: desc.set } : target, ctx), done._ = 1;
37
+ if (k3 ^ 4 || it === void 0) __expectFn(it) && (k3 > 4 ? initializers.unshift(it) : k3 ? p3 ? extra = it : desc[key] = it : target = it);
38
38
  else if (typeof it !== "object" || it === null) __typeError("Object expected");
39
39
  else __expectFn(fn = it.get) && (desc.get = fn), __expectFn(fn = it.set) && (desc.set = fn), __expectFn(fn = it.init) && initializers.unshift(fn);
40
40
  }
41
- return k || __decoratorMetadata(array, target), desc && __defProp(target, name, desc), p ? k ^ 4 ? extra : desc : target;
41
+ return k3 || __decoratorMetadata(array, target), desc && __defProp(target, name, desc), p3 ? k3 ^ 4 ? extra : desc : target;
42
+ };
43
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
44
+ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
45
+ var __privateIn = (member, obj) => Object(obj) !== obj ? __typeError('Cannot use the "in" operator on this value') : member.has(obj);
46
+ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
47
+ 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);
48
+ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
49
+ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
50
+
51
+ // ../../node_modules/lit/node_modules/@lit/reactive-element/css-tag.js
52
+ var t = globalThis;
53
+ var e = t.ShadowRoot && (void 0 === t.ShadyCSS || t.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
54
+ var s = Symbol();
55
+ var o = /* @__PURE__ */ new WeakMap();
56
+ var n = class {
57
+ constructor(t5, e7, o5) {
58
+ if (this._$cssResult$ = true, o5 !== s) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
59
+ this.cssText = t5, this.t = e7;
60
+ }
61
+ get styleSheet() {
62
+ let t5 = this.o;
63
+ const s3 = this.t;
64
+ if (e && void 0 === t5) {
65
+ const e7 = void 0 !== s3 && 1 === s3.length;
66
+ e7 && (t5 = o.get(s3)), void 0 === t5 && ((this.o = t5 = new CSSStyleSheet()).replaceSync(this.cssText), e7 && o.set(s3, t5));
67
+ }
68
+ return t5;
69
+ }
70
+ toString() {
71
+ return this.cssText;
72
+ }
73
+ };
74
+ var r = (t5) => new n("string" == typeof t5 ? t5 : t5 + "", void 0, s);
75
+ var i = (t5, ...e7) => {
76
+ const o5 = 1 === t5.length ? t5[0] : e7.reduce((e8, s3, o6) => e8 + ((t6) => {
77
+ if (true === t6._$cssResult$) return t6.cssText;
78
+ if ("number" == typeof t6) return t6;
79
+ throw Error("Value passed to 'css' function must be a 'css' function result: " + t6 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
80
+ })(s3) + t5[o6 + 1], t5[0]);
81
+ return new n(o5, t5, s);
82
+ };
83
+ var S = (s3, o5) => {
84
+ if (e) s3.adoptedStyleSheets = o5.map((t5) => t5 instanceof CSSStyleSheet ? t5 : t5.styleSheet);
85
+ else for (const e7 of o5) {
86
+ const o6 = document.createElement("style"), n6 = t.litNonce;
87
+ void 0 !== n6 && o6.setAttribute("nonce", n6), o6.textContent = e7.cssText, s3.appendChild(o6);
88
+ }
89
+ };
90
+ var c = e ? (t5) => t5 : (t5) => t5 instanceof CSSStyleSheet ? ((t6) => {
91
+ let e7 = "";
92
+ for (const s3 of t6.cssRules) e7 += s3.cssText;
93
+ return r(e7);
94
+ })(t5) : t5;
95
+
96
+ // ../../node_modules/lit/node_modules/@lit/reactive-element/reactive-element.js
97
+ var { is: i2, defineProperty: e2, getOwnPropertyDescriptor: r2, getOwnPropertyNames: h, getOwnPropertySymbols: o2, getPrototypeOf: n2 } = Object;
98
+ var a = globalThis;
99
+ var c2 = a.trustedTypes;
100
+ var l = c2 ? c2.emptyScript : "";
101
+ var p = a.reactiveElementPolyfillSupport;
102
+ var d = (t5, s3) => t5;
103
+ var u = { toAttribute(t5, s3) {
104
+ switch (s3) {
105
+ case Boolean:
106
+ t5 = t5 ? l : null;
107
+ break;
108
+ case Object:
109
+ case Array:
110
+ t5 = null == t5 ? t5 : JSON.stringify(t5);
111
+ }
112
+ return t5;
113
+ }, fromAttribute(t5, s3) {
114
+ let i4 = t5;
115
+ switch (s3) {
116
+ case Boolean:
117
+ i4 = null !== t5;
118
+ break;
119
+ case Number:
120
+ i4 = null === t5 ? null : Number(t5);
121
+ break;
122
+ case Object:
123
+ case Array:
124
+ try {
125
+ i4 = JSON.parse(t5);
126
+ } catch (t6) {
127
+ i4 = null;
128
+ }
129
+ }
130
+ return i4;
131
+ } };
132
+ var f = (t5, s3) => !i2(t5, s3);
133
+ var y = { attribute: true, type: String, converter: u, reflect: false, hasChanged: f };
134
+ Symbol.metadata ??= Symbol("metadata"), a.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
135
+ var b = class extends HTMLElement {
136
+ static addInitializer(t5) {
137
+ this._$Ei(), (this.l ??= []).push(t5);
138
+ }
139
+ static get observedAttributes() {
140
+ return this.finalize(), this._$Eh && [...this._$Eh.keys()];
141
+ }
142
+ static createProperty(t5, s3 = y) {
143
+ if (s3.state && (s3.attribute = false), this._$Ei(), this.elementProperties.set(t5, s3), !s3.noAccessor) {
144
+ const i4 = Symbol(), r6 = this.getPropertyDescriptor(t5, i4, s3);
145
+ void 0 !== r6 && e2(this.prototype, t5, r6);
146
+ }
147
+ }
148
+ static getPropertyDescriptor(t5, s3, i4) {
149
+ const { get: e7, set: h5 } = r2(this.prototype, t5) ?? { get() {
150
+ return this[s3];
151
+ }, set(t6) {
152
+ this[s3] = t6;
153
+ } };
154
+ return { get() {
155
+ return e7?.call(this);
156
+ }, set(s4) {
157
+ const r6 = e7?.call(this);
158
+ h5.call(this, s4), this.requestUpdate(t5, r6, i4);
159
+ }, configurable: true, enumerable: true };
160
+ }
161
+ static getPropertyOptions(t5) {
162
+ return this.elementProperties.get(t5) ?? y;
163
+ }
164
+ static _$Ei() {
165
+ if (this.hasOwnProperty(d("elementProperties"))) return;
166
+ const t5 = n2(this);
167
+ t5.finalize(), void 0 !== t5.l && (this.l = [...t5.l]), this.elementProperties = new Map(t5.elementProperties);
168
+ }
169
+ static finalize() {
170
+ if (this.hasOwnProperty(d("finalized"))) return;
171
+ if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d("properties"))) {
172
+ const t6 = this.properties, s3 = [...h(t6), ...o2(t6)];
173
+ for (const i4 of s3) this.createProperty(i4, t6[i4]);
174
+ }
175
+ const t5 = this[Symbol.metadata];
176
+ if (null !== t5) {
177
+ const s3 = litPropertyMetadata.get(t5);
178
+ if (void 0 !== s3) for (const [t6, i4] of s3) this.elementProperties.set(t6, i4);
179
+ }
180
+ this._$Eh = /* @__PURE__ */ new Map();
181
+ for (const [t6, s3] of this.elementProperties) {
182
+ const i4 = this._$Eu(t6, s3);
183
+ void 0 !== i4 && this._$Eh.set(i4, t6);
184
+ }
185
+ this.elementStyles = this.finalizeStyles(this.styles);
186
+ }
187
+ static finalizeStyles(s3) {
188
+ const i4 = [];
189
+ if (Array.isArray(s3)) {
190
+ const e7 = new Set(s3.flat(1 / 0).reverse());
191
+ for (const s4 of e7) i4.unshift(c(s4));
192
+ } else void 0 !== s3 && i4.push(c(s3));
193
+ return i4;
194
+ }
195
+ static _$Eu(t5, s3) {
196
+ const i4 = s3.attribute;
197
+ return false === i4 ? void 0 : "string" == typeof i4 ? i4 : "string" == typeof t5 ? t5.toLowerCase() : void 0;
198
+ }
199
+ constructor() {
200
+ super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
201
+ }
202
+ _$Ev() {
203
+ this._$ES = new Promise((t5) => this.enableUpdating = t5), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t5) => t5(this));
204
+ }
205
+ addController(t5) {
206
+ (this._$EO ??= /* @__PURE__ */ new Set()).add(t5), void 0 !== this.renderRoot && this.isConnected && t5.hostConnected?.();
207
+ }
208
+ removeController(t5) {
209
+ this._$EO?.delete(t5);
210
+ }
211
+ _$E_() {
212
+ const t5 = /* @__PURE__ */ new Map(), s3 = this.constructor.elementProperties;
213
+ for (const i4 of s3.keys()) this.hasOwnProperty(i4) && (t5.set(i4, this[i4]), delete this[i4]);
214
+ t5.size > 0 && (this._$Ep = t5);
215
+ }
216
+ createRenderRoot() {
217
+ const t5 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
218
+ return S(t5, this.constructor.elementStyles), t5;
219
+ }
220
+ connectedCallback() {
221
+ this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach((t5) => t5.hostConnected?.());
222
+ }
223
+ enableUpdating(t5) {
224
+ }
225
+ disconnectedCallback() {
226
+ this._$EO?.forEach((t5) => t5.hostDisconnected?.());
227
+ }
228
+ attributeChangedCallback(t5, s3, i4) {
229
+ this._$AK(t5, i4);
230
+ }
231
+ _$EC(t5, s3) {
232
+ const i4 = this.constructor.elementProperties.get(t5), e7 = this.constructor._$Eu(t5, i4);
233
+ if (void 0 !== e7 && true === i4.reflect) {
234
+ const r6 = (void 0 !== i4.converter?.toAttribute ? i4.converter : u).toAttribute(s3, i4.type);
235
+ this._$Em = t5, null == r6 ? this.removeAttribute(e7) : this.setAttribute(e7, r6), this._$Em = null;
236
+ }
237
+ }
238
+ _$AK(t5, s3) {
239
+ const i4 = this.constructor, e7 = i4._$Eh.get(t5);
240
+ if (void 0 !== e7 && this._$Em !== e7) {
241
+ const t6 = i4.getPropertyOptions(e7), r6 = "function" == typeof t6.converter ? { fromAttribute: t6.converter } : void 0 !== t6.converter?.fromAttribute ? t6.converter : u;
242
+ this._$Em = e7, this[e7] = r6.fromAttribute(s3, t6.type), this._$Em = null;
243
+ }
244
+ }
245
+ requestUpdate(t5, s3, i4) {
246
+ if (void 0 !== t5) {
247
+ if (i4 ??= this.constructor.getPropertyOptions(t5), !(i4.hasChanged ?? f)(this[t5], s3)) return;
248
+ this.P(t5, s3, i4);
249
+ }
250
+ false === this.isUpdatePending && (this._$ES = this._$ET());
251
+ }
252
+ P(t5, s3, i4) {
253
+ this._$AL.has(t5) || this._$AL.set(t5, s3), true === i4.reflect && this._$Em !== t5 && (this._$Ej ??= /* @__PURE__ */ new Set()).add(t5);
254
+ }
255
+ async _$ET() {
256
+ this.isUpdatePending = true;
257
+ try {
258
+ await this._$ES;
259
+ } catch (t6) {
260
+ Promise.reject(t6);
261
+ }
262
+ const t5 = this.scheduleUpdate();
263
+ return null != t5 && await t5, !this.isUpdatePending;
264
+ }
265
+ scheduleUpdate() {
266
+ return this.performUpdate();
267
+ }
268
+ performUpdate() {
269
+ if (!this.isUpdatePending) return;
270
+ if (!this.hasUpdated) {
271
+ if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
272
+ for (const [t7, s4] of this._$Ep) this[t7] = s4;
273
+ this._$Ep = void 0;
274
+ }
275
+ const t6 = this.constructor.elementProperties;
276
+ if (t6.size > 0) for (const [s4, i4] of t6) true !== i4.wrapped || this._$AL.has(s4) || void 0 === this[s4] || this.P(s4, this[s4], i4);
277
+ }
278
+ let t5 = false;
279
+ const s3 = this._$AL;
280
+ try {
281
+ t5 = this.shouldUpdate(s3), t5 ? (this.willUpdate(s3), this._$EO?.forEach((t6) => t6.hostUpdate?.()), this.update(s3)) : this._$EU();
282
+ } catch (s4) {
283
+ throw t5 = false, this._$EU(), s4;
284
+ }
285
+ t5 && this._$AE(s3);
286
+ }
287
+ willUpdate(t5) {
288
+ }
289
+ _$AE(t5) {
290
+ this._$EO?.forEach((t6) => t6.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t5)), this.updated(t5);
291
+ }
292
+ _$EU() {
293
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
294
+ }
295
+ get updateComplete() {
296
+ return this.getUpdateComplete();
297
+ }
298
+ getUpdateComplete() {
299
+ return this._$ES;
300
+ }
301
+ shouldUpdate(t5) {
302
+ return true;
303
+ }
304
+ update(t5) {
305
+ this._$Ej &&= this._$Ej.forEach((t6) => this._$EC(t6, this[t6])), this._$EU();
306
+ }
307
+ updated(t5) {
308
+ }
309
+ firstUpdated(t5) {
310
+ }
311
+ };
312
+ b.elementStyles = [], b.shadowRootOptions = { mode: "open" }, b[d("elementProperties")] = /* @__PURE__ */ new Map(), b[d("finalized")] = /* @__PURE__ */ new Map(), p?.({ ReactiveElement: b }), (a.reactiveElementVersions ??= []).push("2.0.4");
313
+
314
+ // ../../node_modules/lit/node_modules/lit-html/lit-html.js
315
+ var n3 = globalThis;
316
+ var c3 = n3.trustedTypes;
317
+ var h2 = c3 ? c3.createPolicy("lit-html", { createHTML: (t5) => t5 }) : void 0;
318
+ var f2 = "$lit$";
319
+ var v = `lit$${Math.random().toFixed(9).slice(2)}$`;
320
+ var m = "?" + v;
321
+ var _ = `<${m}>`;
322
+ var w = document;
323
+ var lt = () => w.createComment("");
324
+ var st = (t5) => null === t5 || "object" != typeof t5 && "function" != typeof t5;
325
+ var g = Array.isArray;
326
+ var $ = (t5) => g(t5) || "function" == typeof t5?.[Symbol.iterator];
327
+ var x = "[ \n\f\r]";
328
+ var T = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
329
+ var E = /-->/g;
330
+ var k = />/g;
331
+ var O = RegExp(`>|${x}(?:([^\\s"'>=/]+)(${x}*=${x}*(?:[^
332
+ \f\r"'\`<>=]|("|')|))|$)`, "g");
333
+ var S2 = /'/g;
334
+ var j = /"/g;
335
+ var M = /^(?:script|style|textarea|title)$/i;
336
+ var P = (t5) => (i4, ...s3) => ({ _$litType$: t5, strings: i4, values: s3 });
337
+ var ke = P(1);
338
+ var Oe = P(2);
339
+ var Se = P(3);
340
+ var R = Symbol.for("lit-noChange");
341
+ var D = Symbol.for("lit-nothing");
342
+ var V = /* @__PURE__ */ new WeakMap();
343
+ var I = w.createTreeWalker(w, 129);
344
+ function N(t5, i4) {
345
+ if (!g(t5) || !t5.hasOwnProperty("raw")) throw Error("invalid template strings array");
346
+ return void 0 !== h2 ? h2.createHTML(i4) : i4;
347
+ }
348
+ var U = (t5, i4) => {
349
+ const s3 = t5.length - 1, e7 = [];
350
+ let h5, o5 = 2 === i4 ? "<svg>" : 3 === i4 ? "<math>" : "", n6 = T;
351
+ for (let i5 = 0; i5 < s3; i5++) {
352
+ const s4 = t5[i5];
353
+ let r6, l3, c5 = -1, a3 = 0;
354
+ for (; a3 < s4.length && (n6.lastIndex = a3, l3 = n6.exec(s4), null !== l3); ) a3 = n6.lastIndex, n6 === T ? "!--" === l3[1] ? n6 = E : void 0 !== l3[1] ? n6 = k : void 0 !== l3[2] ? (M.test(l3[2]) && (h5 = RegExp("</" + l3[2], "g")), n6 = O) : void 0 !== l3[3] && (n6 = O) : n6 === O ? ">" === l3[0] ? (n6 = h5 ?? T, c5 = -1) : void 0 === l3[1] ? c5 = -2 : (c5 = n6.lastIndex - l3[2].length, r6 = l3[1], n6 = void 0 === l3[3] ? O : '"' === l3[3] ? j : S2) : n6 === j || n6 === S2 ? n6 = O : n6 === E || n6 === k ? n6 = T : (n6 = O, h5 = void 0);
355
+ const u3 = n6 === O && t5[i5 + 1].startsWith("/>") ? " " : "";
356
+ o5 += n6 === T ? s4 + _ : c5 >= 0 ? (e7.push(r6), s4.slice(0, c5) + f2 + s4.slice(c5) + v + u3) : s4 + v + (-2 === c5 ? i5 : u3);
357
+ }
358
+ return [N(t5, o5 + (t5[s3] || "<?>") + (2 === i4 ? "</svg>" : 3 === i4 ? "</math>" : "")), e7];
359
+ };
360
+ var B = class _B2 {
361
+ constructor({ strings: t5, _$litType$: i4 }, s3) {
362
+ let e7;
363
+ this.parts = [];
364
+ let h5 = 0, o5 = 0;
365
+ const n6 = t5.length - 1, r6 = this.parts, [l3, a3] = U(t5, i4);
366
+ if (this.el = _B2.createElement(l3, s3), I.currentNode = this.el.content, 2 === i4 || 3 === i4) {
367
+ const t6 = this.el.content.firstChild;
368
+ t6.replaceWith(...t6.childNodes);
369
+ }
370
+ for (; null !== (e7 = I.nextNode()) && r6.length < n6; ) {
371
+ if (1 === e7.nodeType) {
372
+ if (e7.hasAttributes()) for (const t6 of e7.getAttributeNames()) if (t6.endsWith(f2)) {
373
+ const i5 = a3[o5++], s4 = e7.getAttribute(t6).split(v), n7 = /([.?@])?(.*)/.exec(i5);
374
+ r6.push({ type: 1, index: h5, name: n7[2], strings: s4, ctor: "." === n7[1] ? Y : "?" === n7[1] ? Z : "@" === n7[1] ? q : G }), e7.removeAttribute(t6);
375
+ } else t6.startsWith(v) && (r6.push({ type: 6, index: h5 }), e7.removeAttribute(t6));
376
+ if (M.test(e7.tagName)) {
377
+ const t6 = e7.textContent.split(v), i5 = t6.length - 1;
378
+ if (i5 > 0) {
379
+ e7.textContent = c3 ? c3.emptyScript : "";
380
+ for (let s4 = 0; s4 < i5; s4++) e7.append(t6[s4], lt()), I.nextNode(), r6.push({ type: 2, index: ++h5 });
381
+ e7.append(t6[i5], lt());
382
+ }
383
+ }
384
+ } else if (8 === e7.nodeType) if (e7.data === m) r6.push({ type: 2, index: h5 });
385
+ else {
386
+ let t6 = -1;
387
+ for (; -1 !== (t6 = e7.data.indexOf(v, t6 + 1)); ) r6.push({ type: 7, index: h5 }), t6 += v.length - 1;
388
+ }
389
+ h5++;
390
+ }
391
+ }
392
+ static createElement(t5, i4) {
393
+ const s3 = w.createElement("template");
394
+ return s3.innerHTML = t5, s3;
395
+ }
396
+ };
397
+ function z(t5, i4, s3 = t5, e7) {
398
+ if (i4 === R) return i4;
399
+ let h5 = void 0 !== e7 ? s3.o?.[e7] : s3.l;
400
+ const o5 = st(i4) ? void 0 : i4._$litDirective$;
401
+ return h5?.constructor !== o5 && (h5?._$AO?.(false), void 0 === o5 ? h5 = void 0 : (h5 = new o5(t5), h5._$AT(t5, s3, e7)), void 0 !== e7 ? (s3.o ??= [])[e7] = h5 : s3.l = h5), void 0 !== h5 && (i4 = z(t5, h5._$AS(t5, i4.values), h5, e7)), i4;
402
+ }
403
+ var F = class {
404
+ constructor(t5, i4) {
405
+ this._$AV = [], this._$AN = void 0, this._$AD = t5, this._$AM = i4;
406
+ }
407
+ get parentNode() {
408
+ return this._$AM.parentNode;
409
+ }
410
+ get _$AU() {
411
+ return this._$AM._$AU;
412
+ }
413
+ u(t5) {
414
+ const { el: { content: i4 }, parts: s3 } = this._$AD, e7 = (t5?.creationScope ?? w).importNode(i4, true);
415
+ I.currentNode = e7;
416
+ let h5 = I.nextNode(), o5 = 0, n6 = 0, r6 = s3[0];
417
+ for (; void 0 !== r6; ) {
418
+ if (o5 === r6.index) {
419
+ let i5;
420
+ 2 === r6.type ? i5 = new et(h5, h5.nextSibling, this, t5) : 1 === r6.type ? i5 = new r6.ctor(h5, r6.name, r6.strings, this, t5) : 6 === r6.type && (i5 = new K(h5, this, t5)), this._$AV.push(i5), r6 = s3[++n6];
421
+ }
422
+ o5 !== r6?.index && (h5 = I.nextNode(), o5++);
423
+ }
424
+ return I.currentNode = w, e7;
425
+ }
426
+ p(t5) {
427
+ let i4 = 0;
428
+ for (const s3 of this._$AV) void 0 !== s3 && (void 0 !== s3.strings ? (s3._$AI(t5, s3, i4), i4 += s3.strings.length - 2) : s3._$AI(t5[i4])), i4++;
429
+ }
430
+ };
431
+ var et = class _et2 {
432
+ get _$AU() {
433
+ return this._$AM?._$AU ?? this.v;
434
+ }
435
+ constructor(t5, i4, s3, e7) {
436
+ this.type = 2, this._$AH = D, this._$AN = void 0, this._$AA = t5, this._$AB = i4, this._$AM = s3, this.options = e7, this.v = e7?.isConnected ?? true;
437
+ }
438
+ get parentNode() {
439
+ let t5 = this._$AA.parentNode;
440
+ const i4 = this._$AM;
441
+ return void 0 !== i4 && 11 === t5?.nodeType && (t5 = i4.parentNode), t5;
442
+ }
443
+ get startNode() {
444
+ return this._$AA;
445
+ }
446
+ get endNode() {
447
+ return this._$AB;
448
+ }
449
+ _$AI(t5, i4 = this) {
450
+ t5 = z(this, t5, i4), st(t5) ? t5 === D || null == t5 || "" === t5 ? (this._$AH !== D && this._$AR(), this._$AH = D) : t5 !== this._$AH && t5 !== R && this._(t5) : void 0 !== t5._$litType$ ? this.$(t5) : void 0 !== t5.nodeType ? this.T(t5) : $(t5) ? this.k(t5) : this._(t5);
451
+ }
452
+ O(t5) {
453
+ return this._$AA.parentNode.insertBefore(t5, this._$AB);
454
+ }
455
+ T(t5) {
456
+ this._$AH !== t5 && (this._$AR(), this._$AH = this.O(t5));
457
+ }
458
+ _(t5) {
459
+ this._$AH !== D && st(this._$AH) ? this._$AA.nextSibling.data = t5 : this.T(w.createTextNode(t5)), this._$AH = t5;
460
+ }
461
+ $(t5) {
462
+ const { values: i4, _$litType$: s3 } = t5, e7 = "number" == typeof s3 ? this._$AC(t5) : (void 0 === s3.el && (s3.el = B.createElement(N(s3.h, s3.h[0]), this.options)), s3);
463
+ if (this._$AH?._$AD === e7) this._$AH.p(i4);
464
+ else {
465
+ const t6 = new F(e7, this), s4 = t6.u(this.options);
466
+ t6.p(i4), this.T(s4), this._$AH = t6;
467
+ }
468
+ }
469
+ _$AC(t5) {
470
+ let i4 = V.get(t5.strings);
471
+ return void 0 === i4 && V.set(t5.strings, i4 = new B(t5)), i4;
472
+ }
473
+ k(t5) {
474
+ g(this._$AH) || (this._$AH = [], this._$AR());
475
+ const i4 = this._$AH;
476
+ let s3, e7 = 0;
477
+ for (const h5 of t5) e7 === i4.length ? i4.push(s3 = new _et2(this.O(lt()), this.O(lt()), this, this.options)) : s3 = i4[e7], s3._$AI(h5), e7++;
478
+ e7 < i4.length && (this._$AR(s3 && s3._$AB.nextSibling, e7), i4.length = e7);
479
+ }
480
+ _$AR(t5 = this._$AA.nextSibling, i4) {
481
+ for (this._$AP?.(false, true, i4); t5 && t5 !== this._$AB; ) {
482
+ const i5 = t5.nextSibling;
483
+ t5.remove(), t5 = i5;
484
+ }
485
+ }
486
+ setConnected(t5) {
487
+ void 0 === this._$AM && (this.v = t5, this._$AP?.(t5));
488
+ }
489
+ };
490
+ var G = class {
491
+ get tagName() {
492
+ return this.element.tagName;
493
+ }
494
+ get _$AU() {
495
+ return this._$AM._$AU;
496
+ }
497
+ constructor(t5, i4, s3, e7, h5) {
498
+ this.type = 1, this._$AH = D, this._$AN = void 0, this.element = t5, this.name = i4, this._$AM = e7, this.options = h5, s3.length > 2 || "" !== s3[0] || "" !== s3[1] ? (this._$AH = Array(s3.length - 1).fill(new String()), this.strings = s3) : this._$AH = D;
499
+ }
500
+ _$AI(t5, i4 = this, s3, e7) {
501
+ const h5 = this.strings;
502
+ let o5 = false;
503
+ if (void 0 === h5) t5 = z(this, t5, i4, 0), o5 = !st(t5) || t5 !== this._$AH && t5 !== R, o5 && (this._$AH = t5);
504
+ else {
505
+ const e8 = t5;
506
+ let n6, r6;
507
+ for (t5 = h5[0], n6 = 0; n6 < h5.length - 1; n6++) r6 = z(this, e8[s3 + n6], i4, n6), r6 === R && (r6 = this._$AH[n6]), o5 ||= !st(r6) || r6 !== this._$AH[n6], r6 === D ? t5 = D : t5 !== D && (t5 += (r6 ?? "") + h5[n6 + 1]), this._$AH[n6] = r6;
508
+ }
509
+ o5 && !e7 && this.j(t5);
510
+ }
511
+ j(t5) {
512
+ t5 === D ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t5 ?? "");
513
+ }
514
+ };
515
+ var Y = class extends G {
516
+ constructor() {
517
+ super(...arguments), this.type = 3;
518
+ }
519
+ j(t5) {
520
+ this.element[this.name] = t5 === D ? void 0 : t5;
521
+ }
522
+ };
523
+ var Z = class extends G {
524
+ constructor() {
525
+ super(...arguments), this.type = 4;
526
+ }
527
+ j(t5) {
528
+ this.element.toggleAttribute(this.name, !!t5 && t5 !== D);
529
+ }
530
+ };
531
+ var q = class extends G {
532
+ constructor(t5, i4, s3, e7, h5) {
533
+ super(t5, i4, s3, e7, h5), this.type = 5;
534
+ }
535
+ _$AI(t5, i4 = this) {
536
+ if ((t5 = z(this, t5, i4, 0) ?? D) === R) return;
537
+ const s3 = this._$AH, e7 = t5 === D && s3 !== D || t5.capture !== s3.capture || t5.once !== s3.once || t5.passive !== s3.passive, h5 = t5 !== D && (s3 === D || e7);
538
+ e7 && this.element.removeEventListener(this.name, this, s3), h5 && this.element.addEventListener(this.name, this, t5), this._$AH = t5;
539
+ }
540
+ handleEvent(t5) {
541
+ "function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t5) : this._$AH.handleEvent(t5);
542
+ }
543
+ };
544
+ var K = class {
545
+ constructor(t5, i4, s3) {
546
+ this.element = t5, this.type = 6, this._$AN = void 0, this._$AM = i4, this.options = s3;
547
+ }
548
+ get _$AU() {
549
+ return this._$AM._$AU;
550
+ }
551
+ _$AI(t5) {
552
+ z(this, t5);
553
+ }
554
+ };
555
+ var si = { M: f2, 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 };
556
+ var Re = n3.litHtmlPolyfillSupport;
557
+ Re?.(B, et), (n3.litHtmlVersions ??= []).push("3.2.0");
558
+ var Q = (t5, i4, s3) => {
559
+ const e7 = s3?.renderBefore ?? i4;
560
+ let h5 = e7._$litPart$;
561
+ if (void 0 === h5) {
562
+ const t6 = s3?.renderBefore ?? null;
563
+ e7._$litPart$ = h5 = new et(i4.insertBefore(lt(), t6), t6, void 0, s3 ?? {});
564
+ }
565
+ return h5._$AI(t5), h5;
566
+ };
567
+
568
+ // ../../node_modules/lit/node_modules/lit-element/lit-element.js
569
+ var h3 = class extends b {
570
+ constructor() {
571
+ super(...arguments), this.renderOptions = { host: this }, this.o = void 0;
572
+ }
573
+ createRenderRoot() {
574
+ const t5 = super.createRenderRoot();
575
+ return this.renderOptions.renderBefore ??= t5.firstChild, t5;
576
+ }
577
+ update(t5) {
578
+ const e7 = this.render();
579
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t5), this.o = Q(e7, this.renderRoot, this.renderOptions);
580
+ }
581
+ connectedCallback() {
582
+ super.connectedCallback(), this.o?.setConnected(true);
583
+ }
584
+ disconnectedCallback() {
585
+ super.disconnectedCallback(), this.o?.setConnected(false);
586
+ }
587
+ render() {
588
+ return R;
589
+ }
590
+ };
591
+ h3._$litElement$ = true, h3["finalized"] = true, globalThis.litElementHydrateSupport?.({ LitElement: h3 });
592
+ var f3 = globalThis.litElementPolyfillSupport;
593
+ f3?.({ LitElement: h3 });
594
+ (globalThis.litElementVersions ??= []).push("4.1.0");
595
+
596
+ // ../../node_modules/lit/node_modules/lit-html/directive.js
597
+ var t2 = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 };
598
+ var e3 = (t5) => (...e7) => ({ _$litDirective$: t5, values: e7 });
599
+ var i3 = class {
600
+ constructor(t5) {
601
+ }
602
+ get _$AU() {
603
+ return this._$AM._$AU;
604
+ }
605
+ _$AT(t5, e7, i4) {
606
+ this.t = t5, this._$AM = e7, this.i = i4;
607
+ }
608
+ _$AS(t5, e7) {
609
+ return this.update(t5, e7);
610
+ }
611
+ update(t5, e7) {
612
+ return this.render(...e7);
613
+ }
614
+ };
615
+
616
+ // ../../node_modules/lit/node_modules/lit-html/directives/style-map.js
617
+ var ee = "important";
618
+ var ie = " !" + ee;
619
+ var se = e3(class extends i3 {
620
+ constructor(e7) {
621
+ if (super(e7), e7.type !== t2.ATTRIBUTE || "style" !== e7.name || e7.strings?.length > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
622
+ }
623
+ render(t5) {
624
+ return Object.keys(t5).reduce((e7, r6) => {
625
+ const s3 = t5[r6];
626
+ return null == s3 ? e7 : e7 + `${r6 = r6.includes("-") ? r6 : r6.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${s3};`;
627
+ }, "");
628
+ }
629
+ update(t5, [e7]) {
630
+ const { style: r6 } = t5.element;
631
+ if (void 0 === this.ft) return this.ft = new Set(Object.keys(e7)), this.render(e7);
632
+ for (const t6 of this.ft) null == e7[t6] && (this.ft.delete(t6), t6.includes("-") ? r6.removeProperty(t6) : r6[t6] = null);
633
+ for (const t6 in e7) {
634
+ const s3 = e7[t6];
635
+ if (null != s3) {
636
+ this.ft.add(t6);
637
+ const e8 = "string" == typeof s3 && s3.endsWith(ie);
638
+ t6.includes("-") || e8 ? r6.setProperty(t6, e8 ? s3.slice(0, -11) : s3, e8 ? ee : "") : r6[t6] = s3;
639
+ }
640
+ }
641
+ return R;
642
+ }
643
+ });
644
+
645
+ // ../../node_modules/lit/node_modules/lit-html/directives/class-map.js
646
+ var Rt = e3(class extends i3 {
647
+ constructor(s3) {
648
+ if (super(s3), s3.type !== t2.ATTRIBUTE || "class" !== s3.name || s3.strings?.length > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
649
+ }
650
+ render(t5) {
651
+ return " " + Object.keys(t5).filter((s3) => t5[s3]).join(" ") + " ";
652
+ }
653
+ update(t5, [s3]) {
654
+ if (void 0 === this.st) {
655
+ this.st = /* @__PURE__ */ new Set(), void 0 !== t5.strings && (this.nt = new Set(t5.strings.join(" ").split(/\s/).filter((t6) => "" !== t6)));
656
+ for (const t6 in s3) s3[t6] && !this.nt?.has(t6) && this.st.add(t6);
657
+ return this.render(s3);
658
+ }
659
+ const i4 = t5.element.classList;
660
+ for (const t6 of this.st) t6 in s3 || (i4.remove(t6), this.st.delete(t6));
661
+ for (const t6 in s3) {
662
+ const r6 = !!s3[t6];
663
+ r6 === this.st.has(t6) || this.nt?.has(t6) || (r6 ? (i4.add(t6), this.st.add(t6)) : (i4.remove(t6), this.st.delete(t6)));
664
+ }
665
+ return R;
666
+ }
667
+ });
668
+
669
+ // ../lit/index.js
670
+ var __create2 = Object.create;
671
+ var __defProp2 = Object.defineProperty;
672
+ var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
673
+ var __knownSymbol2 = (name, symbol) => (symbol = Symbol[name]) ? symbol : Symbol.for("Symbol." + name);
674
+ var __typeError2 = (msg) => {
675
+ throw TypeError(msg);
676
+ };
677
+ var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
678
+ var __name2 = (target, value) => __defProp2(target, "name", { value, configurable: true });
679
+ var __decoratorStart2 = (base) => [, , , __create2(base?.[__knownSymbol2("metadata")] ?? null)];
680
+ var __decoratorStrings2 = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"];
681
+ var __expectFn2 = (fn) => fn !== void 0 && typeof fn !== "function" ? __typeError2("Function expected") : fn;
682
+ var __decoratorContext2 = (kind, name, done, metadata, fns) => ({ kind: __decoratorStrings2[kind], name, metadata, addInitializer: (fn) => done._ ? __typeError2("Already initialized") : fns.push(__expectFn2(fn || null)) });
683
+ var __decoratorMetadata2 = (array, target) => __defNormalProp2(target, __knownSymbol2("metadata"), array[3]);
684
+ var __runInitializers2 = (array, flags, self, value) => {
685
+ for (var i32 = 0, fns = array[flags >> 1], n52 = fns && fns.length; i32 < n52; i32++) flags & 1 ? fns[i32].call(self) : value = fns[i32].call(self, value);
686
+ return value;
687
+ };
688
+ var __decorateElement2 = (array, flags, name, decorators, target, extra) => {
689
+ var fn, it, done, ctx, access, k22 = flags & 7, s22 = !!(flags & 8), p22 = !!(flags & 16);
690
+ var j22 = k22 > 3 ? array.length + 1 : k22 ? s22 ? 1 : 2 : 0, key = __decoratorStrings2[k22 + 5];
691
+ var initializers = k22 > 3 && (array[j22 - 1] = []), extraInitializers = array[j22] || (array[j22] = []);
692
+ var desc = k22 && (!p22 && !s22 && (target = target.prototype), k22 < 5 && (k22 > 3 || !p22) && __getOwnPropDesc2(k22 < 4 ? target : { get [name]() {
693
+ return __privateGet2(this, extra);
694
+ }, set [name](x22) {
695
+ return __privateSet2(this, extra, x22);
696
+ } }, name));
697
+ k22 ? p22 && k22 < 4 && __name2(extra, (k22 > 2 ? "set " : k22 > 1 ? "get " : "") + name) : __name2(target, name);
698
+ for (var i32 = decorators.length - 1; i32 >= 0; i32--) {
699
+ ctx = __decoratorContext2(k22, name, done = {}, array[3], extraInitializers);
700
+ if (k22) {
701
+ ctx.static = s22, ctx.private = p22, access = ctx.access = { has: p22 ? (x22) => __privateIn2(target, x22) : (x22) => name in x22 };
702
+ if (k22 ^ 3) access.get = p22 ? (x22) => (k22 ^ 1 ? __privateGet2 : __privateMethod2)(x22, target, k22 ^ 4 ? extra : desc.get) : (x22) => x22[name];
703
+ if (k22 > 2) access.set = p22 ? (x22, y22) => __privateSet2(x22, target, y22, k22 ^ 4 ? extra : desc.set) : (x22, y22) => x22[name] = y22;
704
+ }
705
+ it = (0, decorators[i32])(k22 ? k22 < 4 ? p22 ? extra : desc[key] : k22 > 4 ? void 0 : { get: desc.get, set: desc.set } : target, ctx), done._ = 1;
706
+ if (k22 ^ 4 || it === void 0) __expectFn2(it) && (k22 > 4 ? initializers.unshift(it) : k22 ? p22 ? extra = it : desc[key] = it : target = it);
707
+ else if (typeof it !== "object" || it === null) __typeError2("Object expected");
708
+ else __expectFn2(fn = it.get) && (desc.get = fn), __expectFn2(fn = it.set) && (desc.set = fn), __expectFn2(fn = it.init) && initializers.unshift(fn);
709
+ }
710
+ return k22 || __decoratorMetadata2(array, target), desc && __defProp2(target, name, desc), p22 ? k22 ^ 4 ? extra : desc : target;
711
+ };
712
+ var __publicField2 = (obj, key, value) => __defNormalProp2(obj, typeof key !== "symbol" ? key + "" : key, value);
713
+ var __accessCheck2 = (obj, member, msg) => member.has(obj) || __typeError2("Cannot " + msg);
714
+ var __privateIn2 = (member, obj) => Object(obj) !== obj ? __typeError2('Cannot use the "in" operator on this value') : member.has(obj);
715
+ var __privateGet2 = (obj, member, getter) => (__accessCheck2(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
716
+ 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);
717
+ var __privateSet2 = (obj, member, value, setter) => (__accessCheck2(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
718
+ var __privateMethod2 = (obj, member, method) => (__accessCheck2(obj, member, "access private method"), method);
719
+ var t3 = globalThis;
720
+ var e4 = t3.ShadowRoot && (void 0 === t3.ShadyCSS || t3.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
721
+ var s2 = Symbol();
722
+ var o3 = /* @__PURE__ */ new WeakMap();
723
+ var n4 = class {
724
+ constructor(t22, e42, o42) {
725
+ if (this._$cssResult$ = true, o42 !== s2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
726
+ this.cssText = t22, this.t = e42;
727
+ }
728
+ get styleSheet() {
729
+ let t22 = this.o;
730
+ const s22 = this.t;
731
+ if (e4 && void 0 === t22) {
732
+ const e42 = void 0 !== s22 && 1 === s22.length;
733
+ e42 && (t22 = o3.get(s22)), void 0 === t22 && ((this.o = t22 = new CSSStyleSheet()).replaceSync(this.cssText), e42 && o3.set(s22, t22));
734
+ }
735
+ return t22;
736
+ }
737
+ toString() {
738
+ return this.cssText;
739
+ }
740
+ };
741
+ var r3 = (t22) => new n4("string" == typeof t22 ? t22 : t22 + "", void 0, s2);
742
+ var S3 = (s22, o42) => {
743
+ if (e4) s22.adoptedStyleSheets = o42.map((t22) => t22 instanceof CSSStyleSheet ? t22 : t22.styleSheet);
744
+ else for (const e42 of o42) {
745
+ const o5 = document.createElement("style"), n52 = t3.litNonce;
746
+ void 0 !== n52 && o5.setAttribute("nonce", n52), o5.textContent = e42.cssText, s22.appendChild(o5);
747
+ }
748
+ };
749
+ var c4 = e4 ? (t22) => t22 : (t22) => t22 instanceof CSSStyleSheet ? ((t32) => {
750
+ let e42 = "";
751
+ for (const s22 of t32.cssRules) e42 += s22.cssText;
752
+ return r3(e42);
753
+ })(t22) : t22;
754
+ var { is: i22, defineProperty: e22, getOwnPropertyDescriptor: r22, getOwnPropertyNames: h4, getOwnPropertySymbols: o22, getPrototypeOf: n22 } = Object;
755
+ var a2 = globalThis;
756
+ var c22 = a2.trustedTypes;
757
+ var l2 = c22 ? c22.emptyScript : "";
758
+ var p2 = a2.reactiveElementPolyfillSupport;
759
+ var d2 = (t22, s22) => t22;
760
+ var u2 = { toAttribute(t22, s22) {
761
+ switch (s22) {
762
+ case Boolean:
763
+ t22 = t22 ? l2 : null;
764
+ break;
765
+ case Object:
766
+ case Array:
767
+ t22 = null == t22 ? t22 : JSON.stringify(t22);
768
+ }
769
+ return t22;
770
+ }, fromAttribute(t22, s22) {
771
+ let i32 = t22;
772
+ switch (s22) {
773
+ case Boolean:
774
+ i32 = null !== t22;
775
+ break;
776
+ case Number:
777
+ i32 = null === t22 ? null : Number(t22);
778
+ break;
779
+ case Object:
780
+ case Array:
781
+ try {
782
+ i32 = JSON.parse(t22);
783
+ } catch (t32) {
784
+ i32 = null;
785
+ }
786
+ }
787
+ return i32;
788
+ } };
789
+ var f4 = (t22, s22) => !i22(t22, s22);
790
+ var y2 = { attribute: true, type: String, converter: u2, reflect: false, hasChanged: f4 };
791
+ Symbol.metadata ??= Symbol("metadata"), a2.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
792
+ var b2 = class extends HTMLElement {
793
+ static addInitializer(t22) {
794
+ this._$Ei(), (this.l ??= []).push(t22);
795
+ }
796
+ static get observedAttributes() {
797
+ return this.finalize(), this._$Eh && [...this._$Eh.keys()];
798
+ }
799
+ static createProperty(t22, s22 = y2) {
800
+ if (s22.state && (s22.attribute = false), this._$Ei(), this.elementProperties.set(t22, s22), !s22.noAccessor) {
801
+ const i32 = Symbol(), r42 = this.getPropertyDescriptor(t22, i32, s22);
802
+ void 0 !== r42 && e22(this.prototype, t22, r42);
803
+ }
804
+ }
805
+ static getPropertyDescriptor(t22, s22, i32) {
806
+ const { get: e42, set: h42 } = r22(this.prototype, t22) ?? { get() {
807
+ return this[s22];
808
+ }, set(t32) {
809
+ this[s22] = t32;
810
+ } };
811
+ return { get() {
812
+ return e42?.call(this);
813
+ }, set(s3) {
814
+ const r42 = e42?.call(this);
815
+ h42.call(this, s3), this.requestUpdate(t22, r42, i32);
816
+ }, configurable: true, enumerable: true };
817
+ }
818
+ static getPropertyOptions(t22) {
819
+ return this.elementProperties.get(t22) ?? y2;
820
+ }
821
+ static _$Ei() {
822
+ if (this.hasOwnProperty(d2("elementProperties"))) return;
823
+ const t22 = n22(this);
824
+ t22.finalize(), void 0 !== t22.l && (this.l = [...t22.l]), this.elementProperties = new Map(t22.elementProperties);
825
+ }
826
+ static finalize() {
827
+ if (this.hasOwnProperty(d2("finalized"))) return;
828
+ if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d2("properties"))) {
829
+ const t32 = this.properties, s22 = [...h4(t32), ...o22(t32)];
830
+ for (const i32 of s22) this.createProperty(i32, t32[i32]);
831
+ }
832
+ const t22 = this[Symbol.metadata];
833
+ if (null !== t22) {
834
+ const s22 = litPropertyMetadata.get(t22);
835
+ if (void 0 !== s22) for (const [t32, i32] of s22) this.elementProperties.set(t32, i32);
836
+ }
837
+ this._$Eh = /* @__PURE__ */ new Map();
838
+ for (const [t32, s22] of this.elementProperties) {
839
+ const i32 = this._$Eu(t32, s22);
840
+ void 0 !== i32 && this._$Eh.set(i32, t32);
841
+ }
842
+ this.elementStyles = this.finalizeStyles(this.styles);
843
+ }
844
+ static finalizeStyles(s22) {
845
+ const i32 = [];
846
+ if (Array.isArray(s22)) {
847
+ const e42 = new Set(s22.flat(1 / 0).reverse());
848
+ for (const s3 of e42) i32.unshift(c4(s3));
849
+ } else void 0 !== s22 && i32.push(c4(s22));
850
+ return i32;
851
+ }
852
+ static _$Eu(t22, s22) {
853
+ const i32 = s22.attribute;
854
+ return false === i32 ? void 0 : "string" == typeof i32 ? i32 : "string" == typeof t22 ? t22.toLowerCase() : void 0;
855
+ }
856
+ constructor() {
857
+ super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
858
+ }
859
+ _$Ev() {
860
+ this._$ES = new Promise((t22) => this.enableUpdating = t22), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t22) => t22(this));
861
+ }
862
+ addController(t22) {
863
+ (this._$EO ??= /* @__PURE__ */ new Set()).add(t22), void 0 !== this.renderRoot && this.isConnected && t22.hostConnected?.();
864
+ }
865
+ removeController(t22) {
866
+ this._$EO?.delete(t22);
867
+ }
868
+ _$E_() {
869
+ const t22 = /* @__PURE__ */ new Map(), s22 = this.constructor.elementProperties;
870
+ for (const i32 of s22.keys()) this.hasOwnProperty(i32) && (t22.set(i32, this[i32]), delete this[i32]);
871
+ t22.size > 0 && (this._$Ep = t22);
872
+ }
873
+ createRenderRoot() {
874
+ const t22 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
875
+ return S3(t22, this.constructor.elementStyles), t22;
876
+ }
877
+ connectedCallback() {
878
+ this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach((t22) => t22.hostConnected?.());
879
+ }
880
+ enableUpdating(t22) {
881
+ }
882
+ disconnectedCallback() {
883
+ this._$EO?.forEach((t22) => t22.hostDisconnected?.());
884
+ }
885
+ attributeChangedCallback(t22, s22, i32) {
886
+ this._$AK(t22, i32);
887
+ }
888
+ _$EC(t22, s22) {
889
+ const i32 = this.constructor.elementProperties.get(t22), e42 = this.constructor._$Eu(t22, i32);
890
+ if (void 0 !== e42 && true === i32.reflect) {
891
+ const r42 = (void 0 !== i32.converter?.toAttribute ? i32.converter : u2).toAttribute(s22, i32.type);
892
+ this._$Em = t22, null == r42 ? this.removeAttribute(e42) : this.setAttribute(e42, r42), this._$Em = null;
893
+ }
894
+ }
895
+ _$AK(t22, s22) {
896
+ const i32 = this.constructor, e42 = i32._$Eh.get(t22);
897
+ if (void 0 !== e42 && this._$Em !== e42) {
898
+ const t32 = i32.getPropertyOptions(e42), r42 = "function" == typeof t32.converter ? { fromAttribute: t32.converter } : void 0 !== t32.converter?.fromAttribute ? t32.converter : u2;
899
+ this._$Em = e42, this[e42] = r42.fromAttribute(s22, t32.type), this._$Em = null;
900
+ }
901
+ }
902
+ requestUpdate(t22, s22, i32) {
903
+ if (void 0 !== t22) {
904
+ if (i32 ??= this.constructor.getPropertyOptions(t22), !(i32.hasChanged ?? f4)(this[t22], s22)) return;
905
+ this.P(t22, s22, i32);
906
+ }
907
+ false === this.isUpdatePending && (this._$ES = this._$ET());
908
+ }
909
+ P(t22, s22, i32) {
910
+ this._$AL.has(t22) || this._$AL.set(t22, s22), true === i32.reflect && this._$Em !== t22 && (this._$Ej ??= /* @__PURE__ */ new Set()).add(t22);
911
+ }
912
+ async _$ET() {
913
+ this.isUpdatePending = true;
914
+ try {
915
+ await this._$ES;
916
+ } catch (t32) {
917
+ Promise.reject(t32);
918
+ }
919
+ const t22 = this.scheduleUpdate();
920
+ return null != t22 && await t22, !this.isUpdatePending;
921
+ }
922
+ scheduleUpdate() {
923
+ return this.performUpdate();
924
+ }
925
+ performUpdate() {
926
+ if (!this.isUpdatePending) return;
927
+ if (!this.hasUpdated) {
928
+ if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
929
+ for (const [t42, s3] of this._$Ep) this[t42] = s3;
930
+ this._$Ep = void 0;
931
+ }
932
+ const t32 = this.constructor.elementProperties;
933
+ if (t32.size > 0) for (const [s3, i32] of t32) true !== i32.wrapped || this._$AL.has(s3) || void 0 === this[s3] || this.P(s3, this[s3], i32);
934
+ }
935
+ let t22 = false;
936
+ const s22 = this._$AL;
937
+ try {
938
+ t22 = this.shouldUpdate(s22), t22 ? (this.willUpdate(s22), this._$EO?.forEach((t32) => t32.hostUpdate?.()), this.update(s22)) : this._$EU();
939
+ } catch (s3) {
940
+ throw t22 = false, this._$EU(), s3;
941
+ }
942
+ t22 && this._$AE(s22);
943
+ }
944
+ willUpdate(t22) {
945
+ }
946
+ _$AE(t22) {
947
+ this._$EO?.forEach((t32) => t32.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t22)), this.updated(t22);
948
+ }
949
+ _$EU() {
950
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
951
+ }
952
+ get updateComplete() {
953
+ return this.getUpdateComplete();
954
+ }
955
+ getUpdateComplete() {
956
+ return this._$ES;
957
+ }
958
+ shouldUpdate(t22) {
959
+ return true;
960
+ }
961
+ update(t22) {
962
+ this._$Ej &&= this._$Ej.forEach((t32) => this._$EC(t32, this[t32])), this._$EU();
963
+ }
964
+ updated(t22) {
965
+ }
966
+ firstUpdated(t22) {
967
+ }
968
+ };
969
+ b2.elementStyles = [], b2.shadowRootOptions = { mode: "open" }, b2[d2("elementProperties")] = /* @__PURE__ */ new Map(), b2[d2("finalized")] = /* @__PURE__ */ new Map(), p2?.({ ReactiveElement: b2 }), (a2.reactiveElementVersions ??= []).push("2.0.4");
970
+ var n32 = globalThis;
971
+ var c32 = n32.trustedTypes;
972
+ var h22 = c32 ? c32.createPolicy("lit-html", { createHTML: (t22) => t22 }) : void 0;
973
+ var f22 = "$lit$";
974
+ var v2 = `lit$${Math.random().toFixed(9).slice(2)}$`;
975
+ var m2 = "?" + v2;
976
+ var _2 = `<${m2}>`;
977
+ var w2 = document;
978
+ var lt2 = () => w2.createComment("");
979
+ var st2 = (t22) => null === t22 || "object" != typeof t22 && "function" != typeof t22;
980
+ var g2 = Array.isArray;
981
+ var $2 = (t22) => g2(t22) || "function" == typeof t22?.[Symbol.iterator];
982
+ var x2 = "[ \n\f\r]";
983
+ var T2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
984
+ var E2 = /-->/g;
985
+ var k2 = />/g;
986
+ var O2 = RegExp(`>|${x2}(?:([^\\s"'>=/]+)(${x2}*=${x2}*(?:[^
987
+ \f\r"'\`<>=]|("|')|))|$)`, "g");
988
+ var S22 = /'/g;
989
+ var j2 = /"/g;
990
+ var M2 = /^(?:script|style|textarea|title)$/i;
991
+ var P2 = (t22) => (i32, ...s22) => ({ _$litType$: t22, strings: i32, values: s22 });
992
+ var ke2 = P2(1);
993
+ var Oe2 = P2(2);
994
+ var Se2 = P2(3);
995
+ var R2 = Symbol.for("lit-noChange");
996
+ var D2 = Symbol.for("lit-nothing");
997
+ var V2 = /* @__PURE__ */ new WeakMap();
998
+ var I2 = w2.createTreeWalker(w2, 129);
999
+ function N2(t22, i32) {
1000
+ if (!g2(t22) || !t22.hasOwnProperty("raw")) throw Error("invalid template strings array");
1001
+ return void 0 !== h22 ? h22.createHTML(i32) : i32;
1002
+ }
1003
+ var U2 = (t22, i32) => {
1004
+ const s22 = t22.length - 1, e42 = [];
1005
+ let h42, o42 = 2 === i32 ? "<svg>" : 3 === i32 ? "<math>" : "", n52 = T2;
1006
+ for (let i4 = 0; i4 < s22; i4++) {
1007
+ const s3 = t22[i4];
1008
+ let r42, l22, c42 = -1, a22 = 0;
1009
+ for (; a22 < s3.length && (n52.lastIndex = a22, l22 = n52.exec(s3), null !== l22); ) a22 = n52.lastIndex, n52 === T2 ? "!--" === l22[1] ? n52 = E2 : void 0 !== l22[1] ? n52 = k2 : void 0 !== l22[2] ? (M2.test(l22[2]) && (h42 = RegExp("</" + l22[2], "g")), n52 = O2) : void 0 !== l22[3] && (n52 = O2) : n52 === O2 ? ">" === l22[0] ? (n52 = h42 ?? T2, c42 = -1) : void 0 === l22[1] ? c42 = -2 : (c42 = n52.lastIndex - l22[2].length, r42 = l22[1], n52 = void 0 === l22[3] ? O2 : '"' === l22[3] ? j2 : S22) : n52 === j2 || n52 === S22 ? n52 = O2 : n52 === E2 || n52 === k2 ? n52 = T2 : (n52 = O2, h42 = void 0);
1010
+ const u22 = n52 === O2 && t22[i4 + 1].startsWith("/>") ? " " : "";
1011
+ o42 += n52 === T2 ? s3 + _2 : c42 >= 0 ? (e42.push(r42), s3.slice(0, c42) + f22 + s3.slice(c42) + v2 + u22) : s3 + v2 + (-2 === c42 ? i4 : u22);
1012
+ }
1013
+ return [N2(t22, o42 + (t22[s22] || "<?>") + (2 === i32 ? "</svg>" : 3 === i32 ? "</math>" : "")), e42];
1014
+ };
1015
+ var B2 = class _B {
1016
+ constructor({ strings: t22, _$litType$: i32 }, s22) {
1017
+ let e42;
1018
+ this.parts = [];
1019
+ let h42 = 0, o42 = 0;
1020
+ const n52 = t22.length - 1, r42 = this.parts, [l22, a22] = U2(t22, i32);
1021
+ if (this.el = _B.createElement(l22, s22), I2.currentNode = this.el.content, 2 === i32 || 3 === i32) {
1022
+ const t32 = this.el.content.firstChild;
1023
+ t32.replaceWith(...t32.childNodes);
1024
+ }
1025
+ for (; null !== (e42 = I2.nextNode()) && r42.length < n52; ) {
1026
+ if (1 === e42.nodeType) {
1027
+ if (e42.hasAttributes()) for (const t32 of e42.getAttributeNames()) if (t32.endsWith(f22)) {
1028
+ const i4 = a22[o42++], s3 = e42.getAttribute(t32).split(v2), n6 = /([.?@])?(.*)/.exec(i4);
1029
+ r42.push({ type: 1, index: h42, name: n6[2], strings: s3, ctor: "." === n6[1] ? Y2 : "?" === n6[1] ? Z2 : "@" === n6[1] ? q2 : G2 }), e42.removeAttribute(t32);
1030
+ } else t32.startsWith(v2) && (r42.push({ type: 6, index: h42 }), e42.removeAttribute(t32));
1031
+ if (M2.test(e42.tagName)) {
1032
+ const t32 = e42.textContent.split(v2), i4 = t32.length - 1;
1033
+ if (i4 > 0) {
1034
+ e42.textContent = c32 ? c32.emptyScript : "";
1035
+ for (let s3 = 0; s3 < i4; s3++) e42.append(t32[s3], lt2()), I2.nextNode(), r42.push({ type: 2, index: ++h42 });
1036
+ e42.append(t32[i4], lt2());
1037
+ }
1038
+ }
1039
+ } else if (8 === e42.nodeType) if (e42.data === m2) r42.push({ type: 2, index: h42 });
1040
+ else {
1041
+ let t32 = -1;
1042
+ for (; -1 !== (t32 = e42.data.indexOf(v2, t32 + 1)); ) r42.push({ type: 7, index: h42 }), t32 += v2.length - 1;
1043
+ }
1044
+ h42++;
1045
+ }
1046
+ }
1047
+ static createElement(t22, i32) {
1048
+ const s22 = w2.createElement("template");
1049
+ return s22.innerHTML = t22, s22;
1050
+ }
1051
+ };
1052
+ function z2(t22, i32, s22 = t22, e42) {
1053
+ if (i32 === R2) return i32;
1054
+ let h42 = void 0 !== e42 ? s22.o?.[e42] : s22.l;
1055
+ const o42 = st2(i32) ? void 0 : i32._$litDirective$;
1056
+ return h42?.constructor !== o42 && (h42?._$AO?.(false), void 0 === o42 ? h42 = void 0 : (h42 = new o42(t22), h42._$AT(t22, s22, e42)), void 0 !== e42 ? (s22.o ??= [])[e42] = h42 : s22.l = h42), void 0 !== h42 && (i32 = z2(t22, h42._$AS(t22, i32.values), h42, e42)), i32;
1057
+ }
1058
+ var F2 = class {
1059
+ constructor(t22, i32) {
1060
+ this._$AV = [], this._$AN = void 0, this._$AD = t22, this._$AM = i32;
1061
+ }
1062
+ get parentNode() {
1063
+ return this._$AM.parentNode;
1064
+ }
1065
+ get _$AU() {
1066
+ return this._$AM._$AU;
1067
+ }
1068
+ u(t22) {
1069
+ const { el: { content: i32 }, parts: s22 } = this._$AD, e42 = (t22?.creationScope ?? w2).importNode(i32, true);
1070
+ I2.currentNode = e42;
1071
+ let h42 = I2.nextNode(), o42 = 0, n52 = 0, r42 = s22[0];
1072
+ for (; void 0 !== r42; ) {
1073
+ if (o42 === r42.index) {
1074
+ let i4;
1075
+ 2 === r42.type ? i4 = new et2(h42, h42.nextSibling, this, t22) : 1 === r42.type ? i4 = new r42.ctor(h42, r42.name, r42.strings, this, t22) : 6 === r42.type && (i4 = new K2(h42, this, t22)), this._$AV.push(i4), r42 = s22[++n52];
1076
+ }
1077
+ o42 !== r42?.index && (h42 = I2.nextNode(), o42++);
1078
+ }
1079
+ return I2.currentNode = w2, e42;
1080
+ }
1081
+ p(t22) {
1082
+ let i32 = 0;
1083
+ for (const s22 of this._$AV) void 0 !== s22 && (void 0 !== s22.strings ? (s22._$AI(t22, s22, i32), i32 += s22.strings.length - 2) : s22._$AI(t22[i32])), i32++;
1084
+ }
1085
+ };
1086
+ var et2 = class _et {
1087
+ get _$AU() {
1088
+ return this._$AM?._$AU ?? this.v;
1089
+ }
1090
+ constructor(t22, i32, s22, e42) {
1091
+ this.type = 2, this._$AH = D2, this._$AN = void 0, this._$AA = t22, this._$AB = i32, this._$AM = s22, this.options = e42, this.v = e42?.isConnected ?? true;
1092
+ }
1093
+ get parentNode() {
1094
+ let t22 = this._$AA.parentNode;
1095
+ const i32 = this._$AM;
1096
+ return void 0 !== i32 && 11 === t22?.nodeType && (t22 = i32.parentNode), t22;
1097
+ }
1098
+ get startNode() {
1099
+ return this._$AA;
1100
+ }
1101
+ get endNode() {
1102
+ return this._$AB;
1103
+ }
1104
+ _$AI(t22, i32 = this) {
1105
+ t22 = z2(this, t22, i32), st2(t22) ? t22 === D2 || null == t22 || "" === t22 ? (this._$AH !== D2 && this._$AR(), this._$AH = D2) : t22 !== this._$AH && t22 !== R2 && this._(t22) : void 0 !== t22._$litType$ ? this.$(t22) : void 0 !== t22.nodeType ? this.T(t22) : $2(t22) ? this.k(t22) : this._(t22);
1106
+ }
1107
+ O(t22) {
1108
+ return this._$AA.parentNode.insertBefore(t22, this._$AB);
1109
+ }
1110
+ T(t22) {
1111
+ this._$AH !== t22 && (this._$AR(), this._$AH = this.O(t22));
1112
+ }
1113
+ _(t22) {
1114
+ this._$AH !== D2 && st2(this._$AH) ? this._$AA.nextSibling.data = t22 : this.T(w2.createTextNode(t22)), this._$AH = t22;
1115
+ }
1116
+ $(t22) {
1117
+ const { values: i32, _$litType$: s22 } = t22, e42 = "number" == typeof s22 ? this._$AC(t22) : (void 0 === s22.el && (s22.el = B2.createElement(N2(s22.h, s22.h[0]), this.options)), s22);
1118
+ if (this._$AH?._$AD === e42) this._$AH.p(i32);
1119
+ else {
1120
+ const t32 = new F2(e42, this), s3 = t32.u(this.options);
1121
+ t32.p(i32), this.T(s3), this._$AH = t32;
1122
+ }
1123
+ }
1124
+ _$AC(t22) {
1125
+ let i32 = V2.get(t22.strings);
1126
+ return void 0 === i32 && V2.set(t22.strings, i32 = new B2(t22)), i32;
1127
+ }
1128
+ k(t22) {
1129
+ g2(this._$AH) || (this._$AH = [], this._$AR());
1130
+ const i32 = this._$AH;
1131
+ let s22, e42 = 0;
1132
+ for (const h42 of t22) e42 === i32.length ? i32.push(s22 = new _et(this.O(lt2()), this.O(lt2()), this, this.options)) : s22 = i32[e42], s22._$AI(h42), e42++;
1133
+ e42 < i32.length && (this._$AR(s22 && s22._$AB.nextSibling, e42), i32.length = e42);
1134
+ }
1135
+ _$AR(t22 = this._$AA.nextSibling, i32) {
1136
+ for (this._$AP?.(false, true, i32); t22 && t22 !== this._$AB; ) {
1137
+ const i4 = t22.nextSibling;
1138
+ t22.remove(), t22 = i4;
1139
+ }
1140
+ }
1141
+ setConnected(t22) {
1142
+ void 0 === this._$AM && (this.v = t22, this._$AP?.(t22));
1143
+ }
1144
+ };
1145
+ var G2 = class {
1146
+ get tagName() {
1147
+ return this.element.tagName;
1148
+ }
1149
+ get _$AU() {
1150
+ return this._$AM._$AU;
1151
+ }
1152
+ constructor(t22, i32, s22, e42, h42) {
1153
+ this.type = 1, this._$AH = D2, this._$AN = void 0, this.element = t22, this.name = i32, this._$AM = e42, this.options = h42, s22.length > 2 || "" !== s22[0] || "" !== s22[1] ? (this._$AH = Array(s22.length - 1).fill(new String()), this.strings = s22) : this._$AH = D2;
1154
+ }
1155
+ _$AI(t22, i32 = this, s22, e42) {
1156
+ const h42 = this.strings;
1157
+ let o42 = false;
1158
+ if (void 0 === h42) t22 = z2(this, t22, i32, 0), o42 = !st2(t22) || t22 !== this._$AH && t22 !== R2, o42 && (this._$AH = t22);
1159
+ else {
1160
+ const e52 = t22;
1161
+ let n52, r42;
1162
+ for (t22 = h42[0], n52 = 0; n52 < h42.length - 1; n52++) r42 = z2(this, e52[s22 + n52], i32, n52), r42 === R2 && (r42 = this._$AH[n52]), o42 ||= !st2(r42) || r42 !== this._$AH[n52], r42 === D2 ? t22 = D2 : t22 !== D2 && (t22 += (r42 ?? "") + h42[n52 + 1]), this._$AH[n52] = r42;
1163
+ }
1164
+ o42 && !e42 && this.j(t22);
1165
+ }
1166
+ j(t22) {
1167
+ t22 === D2 ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t22 ?? "");
1168
+ }
1169
+ };
1170
+ var Y2 = class extends G2 {
1171
+ constructor() {
1172
+ super(...arguments), this.type = 3;
1173
+ }
1174
+ j(t22) {
1175
+ this.element[this.name] = t22 === D2 ? void 0 : t22;
1176
+ }
1177
+ };
1178
+ var Z2 = class extends G2 {
1179
+ constructor() {
1180
+ super(...arguments), this.type = 4;
1181
+ }
1182
+ j(t22) {
1183
+ this.element.toggleAttribute(this.name, !!t22 && t22 !== D2);
1184
+ }
1185
+ };
1186
+ var q2 = class extends G2 {
1187
+ constructor(t22, i32, s22, e42, h42) {
1188
+ super(t22, i32, s22, e42, h42), this.type = 5;
1189
+ }
1190
+ _$AI(t22, i32 = this) {
1191
+ if ((t22 = z2(this, t22, i32, 0) ?? D2) === R2) return;
1192
+ const s22 = this._$AH, e42 = t22 === D2 && s22 !== D2 || t22.capture !== s22.capture || t22.once !== s22.once || t22.passive !== s22.passive, h42 = t22 !== D2 && (s22 === D2 || e42);
1193
+ e42 && this.element.removeEventListener(this.name, this, s22), h42 && this.element.addEventListener(this.name, this, t22), this._$AH = t22;
1194
+ }
1195
+ handleEvent(t22) {
1196
+ "function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t22) : this._$AH.handleEvent(t22);
1197
+ }
1198
+ };
1199
+ var K2 = class {
1200
+ constructor(t22, i32, s22) {
1201
+ this.element = t22, this.type = 6, this._$AN = void 0, this._$AM = i32, this.options = s22;
1202
+ }
1203
+ get _$AU() {
1204
+ return this._$AM._$AU;
1205
+ }
1206
+ _$AI(t22) {
1207
+ z2(this, t22);
1208
+ }
1209
+ };
1210
+ var Re2 = n32.litHtmlPolyfillSupport;
1211
+ Re2?.(B2, et2), (n32.litHtmlVersions ??= []).push("3.2.0");
1212
+ var Q2 = (t22, i32, s22) => {
1213
+ const e42 = s22?.renderBefore ?? i32;
1214
+ let h42 = e42._$litPart$;
1215
+ if (void 0 === h42) {
1216
+ const t32 = s22?.renderBefore ?? null;
1217
+ e42._$litPart$ = h42 = new et2(i32.insertBefore(lt2(), t32), t32, void 0, s22 ?? {});
1218
+ }
1219
+ return h42._$AI(t22), h42;
1220
+ };
1221
+ var h32 = class extends b2 {
1222
+ constructor() {
1223
+ super(...arguments), this.renderOptions = { host: this }, this.o = void 0;
1224
+ }
1225
+ createRenderRoot() {
1226
+ const t22 = super.createRenderRoot();
1227
+ return this.renderOptions.renderBefore ??= t22.firstChild, t22;
1228
+ }
1229
+ update(t22) {
1230
+ const e42 = this.render();
1231
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t22), this.o = Q2(e42, this.renderRoot, this.renderOptions);
1232
+ }
1233
+ connectedCallback() {
1234
+ super.connectedCallback(), this.o?.setConnected(true);
1235
+ }
1236
+ disconnectedCallback() {
1237
+ super.disconnectedCallback(), this.o?.setConnected(false);
1238
+ }
1239
+ render() {
1240
+ return R2;
1241
+ }
1242
+ };
1243
+ h32._$litElement$ = true, h32["finalized"] = true, globalThis.litElementHydrateSupport?.({ LitElement: h32 });
1244
+ var f32 = globalThis.litElementPolyfillSupport;
1245
+ f32?.({ LitElement: h32 });
1246
+ (globalThis.litElementVersions ??= []).push("4.1.0");
1247
+ var o32 = { attribute: true, type: String, converter: u2, reflect: false, hasChanged: f4 };
1248
+ var r32 = (t22 = o32, e42, r42) => {
1249
+ const { kind: n52, metadata: i32 } = r42;
1250
+ let s22 = globalThis.litPropertyMetadata.get(i32);
1251
+ if (void 0 === s22 && globalThis.litPropertyMetadata.set(i32, s22 = /* @__PURE__ */ new Map()), s22.set(r42.name, t22), "accessor" === n52) {
1252
+ const { name: o42 } = r42;
1253
+ return { set(r52) {
1254
+ const n6 = e42.get.call(this);
1255
+ e42.set.call(this, r52), this.requestUpdate(o42, n6, t22);
1256
+ }, init(e52) {
1257
+ return void 0 !== e52 && this.P(o42, void 0, t22), e52;
1258
+ } };
1259
+ }
1260
+ if ("setter" === n52) {
1261
+ const { name: o42 } = r42;
1262
+ return function(r52) {
1263
+ const n6 = this[o42];
1264
+ e42.call(this, r52), this.requestUpdate(o42, n6, t22);
1265
+ };
1266
+ }
1267
+ throw Error("Unsupported decorator location: " + n52);
1268
+ };
1269
+ function n42(t22) {
1270
+ return (e42, o42) => "object" == typeof o42 ? r32(t22, e42, o42) : ((t32, e52, o5) => {
1271
+ const r42 = e52.hasOwnProperty(o5);
1272
+ return e52.constructor.createProperty(o5, r42 ? { ...t32, wrapped: true } : t32), r42 ? Object.getOwnPropertyDescriptor(e52, o5) : void 0;
1273
+ })(t22, e42, o42);
1274
+ }
1275
+ var appliedClassMixins = /* @__PURE__ */ new WeakMap();
1276
+ function wasMixinPreviouslyApplied(mixin, superClass) {
1277
+ let klass = superClass;
1278
+ while (klass) {
1279
+ if (appliedClassMixins.get(klass) === mixin) {
1280
+ return true;
1281
+ }
1282
+ klass = Object.getPrototypeOf(klass);
1283
+ }
1284
+ return false;
1285
+ }
1286
+ function dedupeMixin(mixin) {
1287
+ return (superClass) => {
1288
+ if (wasMixinPreviouslyApplied(mixin, superClass)) {
1289
+ return superClass;
1290
+ }
1291
+ const mixedClass = mixin(superClass);
1292
+ appliedClassMixins.set(mixedClass, mixin);
1293
+ return mixedClass;
1294
+ };
1295
+ }
1296
+ var version = "3.0.0";
1297
+ var versions = window.scopedElementsVersions || (window.scopedElementsVersions = []);
1298
+ if (!versions.includes(version)) {
1299
+ versions.push(version);
1300
+ }
1301
+ var ScopedElementsMixinImplementation = (superclass) => (
1302
+ /** @type {ScopedElementsHost} */
1303
+ class ScopedElementsHost extends superclass {
1304
+ /**
1305
+ * Obtains the scoped elements definitions map if specified.
1306
+ *
1307
+ * @type {ScopedElementsMap=}
1308
+ */
1309
+ static scopedElements;
1310
+ static get scopedElementsVersion() {
1311
+ return version;
1312
+ }
1313
+ /** @type {CustomElementRegistry=} */
1314
+ static __registry;
1315
+ /**
1316
+ * Obtains the CustomElementRegistry associated to the ShadowRoot.
1317
+ *
1318
+ * @returns {CustomElementRegistry=}
1319
+ */
1320
+ get registry() {
1321
+ return (
1322
+ /** @type {typeof ScopedElementsHost} */
1323
+ this.constructor.__registry
1324
+ );
1325
+ }
1326
+ /**
1327
+ * Set the CustomElementRegistry associated to the ShadowRoot
1328
+ *
1329
+ * @param {CustomElementRegistry} registry
1330
+ */
1331
+ set registry(registry2) {
1332
+ this.constructor.__registry = registry2;
1333
+ }
1334
+ /**
1335
+ * @param {ShadowRootInit} options
1336
+ * @returns {ShadowRoot}
1337
+ */
1338
+ attachShadow(options) {
1339
+ const { scopedElements } = (
1340
+ /** @type {typeof ScopedElementsHost} */
1341
+ this.constructor
1342
+ );
1343
+ const shouldCreateRegistry = !this.registry || // @ts-ignore
1344
+ this.registry === this.constructor.__registry && !Object.prototype.hasOwnProperty.call(this.constructor, "__registry");
1345
+ if (shouldCreateRegistry) {
1346
+ this.registry = new CustomElementRegistry();
1347
+ for (const [tagName, klass] of Object.entries(scopedElements ?? {})) {
1348
+ this.registry.define(tagName, klass);
1349
+ }
1350
+ }
1351
+ return super.attachShadow({
1352
+ ...options,
1353
+ // The polyfill currently expects the registry to be passed as `customElements`
1354
+ customElements: this.registry,
1355
+ // But the proposal has moved forward, and renamed it to `registry`
1356
+ // For backwards compatibility, we pass it as both
1357
+ registry: this.registry
1358
+ });
1359
+ }
1360
+ }
1361
+ );
1362
+ var ScopedElementsMixin = dedupeMixin(ScopedElementsMixinImplementation);
1363
+ var ScopedElementsMixinImplementation2 = (superclass) => (
1364
+ /** @type {ScopedElementsHost} */
1365
+ class ScopedElementsHost extends ScopedElementsMixin(superclass) {
1366
+ createRenderRoot() {
1367
+ const { shadowRootOptions, elementStyles } = (
1368
+ /** @type {TypeofLitElement} */
1369
+ this.constructor
1370
+ );
1371
+ const shadowRoot = this.attachShadow(shadowRootOptions);
1372
+ this.renderOptions.creationScope = shadowRoot;
1373
+ S3(shadowRoot, elementStyles);
1374
+ this.renderOptions.renderBefore ??= shadowRoot.firstChild;
1375
+ return shadowRoot;
1376
+ }
1377
+ }
1378
+ );
1379
+ var ScopedElementsMixin2 = dedupeMixin(ScopedElementsMixinImplementation2);
1380
+ var _lang_dec;
1381
+ var _contentEditable_dec;
1382
+ var _a;
1383
+ var _init;
1384
+ var _contentEditable;
1385
+ var _lang;
1386
+ var LitElementWw = class extends (_a = ScopedElementsMixin2(h32), _contentEditable_dec = [n42({ type: String, attribute: true, reflect: true })], _lang_dec = [n42({ type: String, attribute: true, reflect: true })], _a) {
1387
+ constructor() {
1388
+ super(...arguments);
1389
+ __publicField2(this, "options");
1390
+ __publicField2(this, "actions", {});
1391
+ __privateAdd2(this, _contentEditable, __runInitializers2(_init, 8, this)), __runInitializers2(_init, 11, this);
1392
+ __privateAdd2(this, _lang, __runInitializers2(_init, 12, this)), __runInitializers2(_init, 15, this);
1393
+ __publicField2(this, "_inTransaction", false);
1394
+ }
1395
+ connectedCallback() {
1396
+ super.connectedCallback();
1397
+ this.getAttributeNames().forEach((k22) => this.setAttribute(k22, this.getAttribute(k22)));
1398
+ }
1399
+ };
1400
+ _init = __decoratorStart2(_a);
1401
+ _contentEditable = /* @__PURE__ */ new WeakMap();
1402
+ _lang = /* @__PURE__ */ new WeakMap();
1403
+ __decorateElement2(_init, 4, "contentEditable", _contentEditable_dec, LitElementWw, _contentEditable);
1404
+ __decorateElement2(_init, 4, "lang", _lang_dec, LitElementWw, _lang);
1405
+ __decoratorMetadata2(_init, LitElementWw);
1406
+ __publicField2(LitElementWw, "shadowRootOptions", { ...h32.shadowRootOptions });
1407
+ __publicField2(LitElementWw, "options", {});
1408
+ __publicField2(LitElementWw, "actions", {});
1409
+
1410
+ // ../../node_modules/lit/node_modules/@lit/reactive-element/decorators/custom-element.js
1411
+ var t4 = (t5) => (e7, o5) => {
1412
+ void 0 !== o5 ? o5.addInitializer(() => {
1413
+ customElements.define(t5, e7);
1414
+ }) : customElements.define(t5, e7);
1415
+ };
1416
+
1417
+ // ../../node_modules/lit/node_modules/@lit/reactive-element/decorators/property.js
1418
+ var o4 = { attribute: true, type: String, converter: u, reflect: false, hasChanged: f };
1419
+ var r4 = (t5 = o4, e7, r6) => {
1420
+ const { kind: n6, metadata: i4 } = r6;
1421
+ let s3 = globalThis.litPropertyMetadata.get(i4);
1422
+ if (void 0 === s3 && globalThis.litPropertyMetadata.set(i4, s3 = /* @__PURE__ */ new Map()), s3.set(r6.name, t5), "accessor" === n6) {
1423
+ const { name: o5 } = r6;
1424
+ return { set(r7) {
1425
+ const n7 = e7.get.call(this);
1426
+ e7.set.call(this, r7), this.requestUpdate(o5, n7, t5);
1427
+ }, init(e8) {
1428
+ return void 0 !== e8 && this.P(o5, void 0, t5), e8;
1429
+ } };
1430
+ }
1431
+ if ("setter" === n6) {
1432
+ const { name: o5 } = r6;
1433
+ return function(r7) {
1434
+ const n7 = this[o5];
1435
+ e7.call(this, r7), this.requestUpdate(o5, n7, t5);
1436
+ };
1437
+ }
1438
+ throw Error("Unsupported decorator location: " + n6);
1439
+ };
1440
+ function n5(t5) {
1441
+ return (e7, o5) => "object" == typeof o5 ? r4(t5, e7, o5) : ((t6, e8, o6) => {
1442
+ const r6 = e8.hasOwnProperty(o6);
1443
+ return e8.constructor.createProperty(o6, r6 ? { ...t6, wrapped: true } : t6), r6 ? Object.getOwnPropertyDescriptor(e8, o6) : void 0;
1444
+ })(t5, e7, o5);
1445
+ }
1446
+
1447
+ // ../../node_modules/lit/node_modules/@lit/reactive-element/decorators/state.js
1448
+ function r5(r6) {
1449
+ return n5({ ...r6, state: true, attribute: false });
1450
+ }
1451
+
1452
+ // ../../node_modules/lit/node_modules/@lit/reactive-element/decorators/base.js
1453
+ var e5 = (e7, t5, c5) => (c5.configurable = true, c5.enumerable = true, Reflect.decorate && "object" != typeof t5 && Object.defineProperty(e7, t5, c5), c5);
1454
+
1455
+ // ../../node_modules/lit/node_modules/@lit/reactive-element/decorators/query.js
1456
+ function e6(e7, r6) {
1457
+ return (n6, s3, i4) => {
1458
+ const o5 = (t5) => t5.renderRoot?.querySelector(e7) ?? null;
1459
+ if (r6) {
1460
+ const { get: e8, set: r7 } = "object" == typeof s3 ? n6 : i4 ?? (() => {
1461
+ const t5 = Symbol();
1462
+ return { get() {
1463
+ return this[t5];
1464
+ }, set(e9) {
1465
+ this[t5] = e9;
1466
+ } };
1467
+ })();
1468
+ return e5(n6, s3, { get() {
1469
+ let t5 = e8.call(this);
1470
+ return void 0 === t5 && (t5 = o5(this), (null !== t5 || this.hasUpdated) && r7.call(this, t5)), t5;
1471
+ } });
1472
+ }
1473
+ return e5(n6, s3, { get() {
1474
+ return o5(this);
1475
+ } });
1476
+ };
1477
+ }
1478
+
1479
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.FKMWLPHV.js
1480
+ var radio_styles_default = i`
1481
+ :host {
1482
+ display: block;
1483
+ }
1484
+
1485
+ :host(:focus-visible) {
1486
+ outline: 0px;
1487
+ }
1488
+
1489
+ .radio {
1490
+ display: inline-flex;
1491
+ align-items: top;
1492
+ font-family: var(--sl-input-font-family);
1493
+ font-size: var(--sl-input-font-size-medium);
1494
+ font-weight: var(--sl-input-font-weight);
1495
+ color: var(--sl-input-label-color);
1496
+ vertical-align: middle;
1497
+ cursor: pointer;
1498
+ }
1499
+
1500
+ .radio--small {
1501
+ --toggle-size: var(--sl-toggle-size-small);
1502
+ font-size: var(--sl-input-font-size-small);
1503
+ }
1504
+
1505
+ .radio--medium {
1506
+ --toggle-size: var(--sl-toggle-size-medium);
1507
+ font-size: var(--sl-input-font-size-medium);
1508
+ }
1509
+
1510
+ .radio--large {
1511
+ --toggle-size: var(--sl-toggle-size-large);
1512
+ font-size: var(--sl-input-font-size-large);
1513
+ }
1514
+
1515
+ .radio__checked-icon {
1516
+ display: inline-flex;
1517
+ width: var(--toggle-size);
1518
+ height: var(--toggle-size);
1519
+ }
1520
+
1521
+ .radio__control {
1522
+ flex: 0 0 auto;
1523
+ position: relative;
1524
+ display: inline-flex;
1525
+ align-items: center;
1526
+ justify-content: center;
1527
+ width: var(--toggle-size);
1528
+ height: var(--toggle-size);
1529
+ border: solid var(--sl-input-border-width) var(--sl-input-border-color);
1530
+ border-radius: 50%;
1531
+ background-color: var(--sl-input-background-color);
1532
+ color: transparent;
1533
+ transition:
1534
+ var(--sl-transition-fast) border-color,
1535
+ var(--sl-transition-fast) background-color,
1536
+ var(--sl-transition-fast) color,
1537
+ var(--sl-transition-fast) box-shadow;
1538
+ }
1539
+
1540
+ .radio__input {
1541
+ position: absolute;
1542
+ opacity: 0;
1543
+ padding: 0;
1544
+ margin: 0;
1545
+ pointer-events: none;
1546
+ }
1547
+
1548
+ /* Hover */
1549
+ .radio:not(.radio--checked):not(.radio--disabled) .radio__control:hover {
1550
+ border-color: var(--sl-input-border-color-hover);
1551
+ background-color: var(--sl-input-background-color-hover);
1552
+ }
1553
+
1554
+ /* Checked */
1555
+ .radio--checked .radio__control {
1556
+ color: var(--sl-color-neutral-0);
1557
+ border-color: var(--sl-color-primary-600);
1558
+ background-color: var(--sl-color-primary-600);
1559
+ }
1560
+
1561
+ /* Checked + hover */
1562
+ .radio.radio--checked:not(.radio--disabled) .radio__control:hover {
1563
+ border-color: var(--sl-color-primary-500);
1564
+ background-color: var(--sl-color-primary-500);
1565
+ }
1566
+
1567
+ /* Checked + focus */
1568
+ :host(:focus-visible) .radio__control {
1569
+ outline: var(--sl-focus-ring);
1570
+ outline-offset: var(--sl-focus-ring-offset);
1571
+ }
1572
+
1573
+ /* Disabled */
1574
+ .radio--disabled {
1575
+ opacity: 0.5;
1576
+ cursor: not-allowed;
1577
+ }
1578
+
1579
+ /* When the control isn't checked, hide the circle for Windows High Contrast mode a11y */
1580
+ .radio:not(.radio--checked) svg circle {
1581
+ opacity: 0;
1582
+ }
1583
+
1584
+ .radio__label {
1585
+ display: inline-block;
1586
+ color: var(--sl-input-label-color);
1587
+ line-height: var(--toggle-size);
1588
+ margin-inline-start: 0.5em;
1589
+ user-select: none;
1590
+ -webkit-user-select: none;
1591
+ }
1592
+ `;
1593
+
1594
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.3Y6SB6QS.js
1595
+ var basePath = "";
1596
+ function setBasePath(path) {
1597
+ basePath = path;
1598
+ }
1599
+ function getBasePath(subpath = "") {
1600
+ if (!basePath) {
1601
+ const scripts = [...document.getElementsByTagName("script")];
1602
+ const configScript = scripts.find((script) => script.hasAttribute("data-shoelace"));
1603
+ if (configScript) {
1604
+ setBasePath(configScript.getAttribute("data-shoelace"));
1605
+ } else {
1606
+ const fallbackScript = scripts.find((s3) => {
1607
+ return /shoelace(\.min)?\.js($|\?)/.test(s3.src) || /shoelace-autoloader(\.min)?\.js($|\?)/.test(s3.src);
1608
+ });
1609
+ let path = "";
1610
+ if (fallbackScript) {
1611
+ path = fallbackScript.getAttribute("src");
1612
+ }
1613
+ setBasePath(path.split("/").slice(0, -1).join("/"));
1614
+ }
1615
+ }
1616
+ return basePath.replace(/\/$/, "") + (subpath ? `/${subpath.replace(/^\//, "")}` : ``);
1617
+ }
1618
+
1619
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.P7ZG6EMR.js
1620
+ var library = {
1621
+ name: "default",
1622
+ resolver: (name) => getBasePath(`assets/icons/${name}.svg`)
1623
+ };
1624
+ var library_default_default = library;
1625
+
1626
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.3TFKS637.js
1627
+ var icons = {
1628
+ caret: `
1629
+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
1630
+ <polyline points="6 9 12 15 18 9"></polyline>
1631
+ </svg>
1632
+ `,
1633
+ check: `
1634
+ <svg part="checked-icon" class="checkbox__icon" viewBox="0 0 16 16">
1635
+ <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">
1636
+ <g stroke="currentColor">
1637
+ <g transform="translate(3.428571, 3.428571)">
1638
+ <path d="M0,5.71428571 L3.42857143,9.14285714"></path>
1639
+ <path d="M9.14285714,0 L3.42857143,9.14285714"></path>
1640
+ </g>
1641
+ </g>
1642
+ </g>
1643
+ </svg>
1644
+ `,
1645
+ "chevron-down": `
1646
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-down" viewBox="0 0 16 16">
1647
+ <path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/>
1648
+ </svg>
1649
+ `,
1650
+ "chevron-left": `
1651
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-left" viewBox="0 0 16 16">
1652
+ <path fill-rule="evenodd" d="M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"/>
1653
+ </svg>
1654
+ `,
1655
+ "chevron-right": `
1656
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-right" viewBox="0 0 16 16">
1657
+ <path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"/>
1658
+ </svg>
1659
+ `,
1660
+ copy: `
1661
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-copy" viewBox="0 0 16 16">
1662
+ <path fill-rule="evenodd" d="M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V2Zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H6ZM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1H2Z"/>
1663
+ </svg>
1664
+ `,
1665
+ eye: `
1666
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eye" viewBox="0 0 16 16">
1667
+ <path d="M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.134 13.134 0 0 1 1.172 8z"/>
1668
+ <path d="M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z"/>
1669
+ </svg>
1670
+ `,
1671
+ "eye-slash": `
1672
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eye-slash" viewBox="0 0 16 16">
1673
+ <path d="M13.359 11.238C15.06 9.72 16 8 16 8s-3-5.5-8-5.5a7.028 7.028 0 0 0-2.79.588l.77.771A5.944 5.944 0 0 1 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.134 13.134 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755-.165.165-.337.328-.517.486l.708.709z"/>
1674
+ <path d="M11.297 9.176a3.5 3.5 0 0 0-4.474-4.474l.823.823a2.5 2.5 0 0 1 2.829 2.829l.822.822zm-2.943 1.299.822.822a3.5 3.5 0 0 1-4.474-4.474l.823.823a2.5 2.5 0 0 0 2.829 2.829z"/>
1675
+ <path d="M3.35 5.47c-.18.16-.353.322-.518.487A13.134 13.134 0 0 0 1.172 8l.195.288c.335.48.83 1.12 1.465 1.755C4.121 11.332 5.881 12.5 8 12.5c.716 0 1.39-.133 2.02-.36l.77.772A7.029 7.029 0 0 1 8 13.5C3 13.5 0 8 0 8s.939-1.721 2.641-3.238l.708.709zm10.296 8.884-12-12 .708-.708 12 12-.708.708z"/>
1676
+ </svg>
1677
+ `,
1678
+ eyedropper: `
1679
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eyedropper" viewBox="0 0 16 16">
1680
+ <path d="M13.354.646a1.207 1.207 0 0 0-1.708 0L8.5 3.793l-.646-.647a.5.5 0 1 0-.708.708L8.293 5l-7.147 7.146A.5.5 0 0 0 1 12.5v1.793l-.854.853a.5.5 0 1 0 .708.707L1.707 15H3.5a.5.5 0 0 0 .354-.146L11 7.707l1.146 1.147a.5.5 0 0 0 .708-.708l-.647-.646 3.147-3.146a1.207 1.207 0 0 0 0-1.708l-2-2zM2 12.707l7-7L10.293 7l-7 7H2v-1.293z"></path>
1681
+ </svg>
1682
+ `,
1683
+ "grip-vertical": `
1684
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-grip-vertical" viewBox="0 0 16 16">
1685
+ <path d="M7 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM7 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM7 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"></path>
1686
+ </svg>
1687
+ `,
1688
+ indeterminate: `
1689
+ <svg part="indeterminate-icon" class="checkbox__icon" viewBox="0 0 16 16">
1690
+ <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">
1691
+ <g stroke="currentColor" stroke-width="2">
1692
+ <g transform="translate(2.285714, 6.857143)">
1693
+ <path d="M10.2857143,1.14285714 L1.14285714,1.14285714"></path>
1694
+ </g>
1695
+ </g>
1696
+ </g>
1697
+ </svg>
1698
+ `,
1699
+ "person-fill": `
1700
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-person-fill" viewBox="0 0 16 16">
1701
+ <path d="M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"/>
1702
+ </svg>
1703
+ `,
1704
+ "play-fill": `
1705
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-play-fill" viewBox="0 0 16 16">
1706
+ <path d="m11.596 8.697-6.363 3.692c-.54.313-1.233-.066-1.233-.697V4.308c0-.63.692-1.01 1.233-.696l6.363 3.692a.802.802 0 0 1 0 1.393z"></path>
1707
+ </svg>
1708
+ `,
1709
+ "pause-fill": `
1710
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-pause-fill" viewBox="0 0 16 16">
1711
+ <path d="M5.5 3.5A1.5 1.5 0 0 1 7 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5zm5 0A1.5 1.5 0 0 1 12 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5z"></path>
1712
+ </svg>
1713
+ `,
1714
+ radio: `
1715
+ <svg part="checked-icon" class="radio__icon" viewBox="0 0 16 16">
1716
+ <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
1717
+ <g fill="currentColor">
1718
+ <circle cx="8" cy="8" r="3.42857143"></circle>
1719
+ </g>
1720
+ </g>
1721
+ </svg>
1722
+ `,
1723
+ "star-fill": `
1724
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-star-fill" viewBox="0 0 16 16">
1725
+ <path d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"/>
1726
+ </svg>
1727
+ `,
1728
+ "x-lg": `
1729
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-lg" viewBox="0 0 16 16">
1730
+ <path d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z"/>
1731
+ </svg>
1732
+ `,
1733
+ "x-circle-fill": `
1734
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-circle-fill" viewBox="0 0 16 16">
1735
+ <path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293 5.354 4.646z"></path>
1736
+ </svg>
1737
+ `
1738
+ };
1739
+ var systemLibrary = {
1740
+ name: "system",
1741
+ resolver: (name) => {
1742
+ if (name in icons) {
1743
+ return `data:image/svg+xml,${encodeURIComponent(icons[name])}`;
1744
+ }
1745
+ return "";
1746
+ }
1747
+ };
1748
+ var library_system_default = systemLibrary;
1749
+
1750
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.ZL53POKZ.js
1751
+ var registry = [library_default_default, library_system_default];
1752
+ var watchedIcons = [];
1753
+ function watchIcon(icon) {
1754
+ watchedIcons.push(icon);
1755
+ }
1756
+ function unwatchIcon(icon) {
1757
+ watchedIcons = watchedIcons.filter((el) => el !== icon);
1758
+ }
1759
+ function getIconLibrary(name) {
1760
+ return registry.find((lib) => lib.name === name);
1761
+ }
1762
+
1763
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.QLXRCYS4.js
1764
+ var icon_styles_default = i`
1765
+ :host {
1766
+ display: inline-block;
1767
+ width: 1em;
1768
+ height: 1em;
1769
+ box-sizing: content-box !important;
1770
+ }
1771
+
1772
+ svg {
1773
+ display: block;
1774
+ height: 100%;
1775
+ width: 100%;
1776
+ }
1777
+ `;
1778
+
1779
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.B3BW2AY6.js
1780
+ var __defProp3 = Object.defineProperty;
1781
+ var __defProps = Object.defineProperties;
1782
+ var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
1783
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
1784
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
1785
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
1786
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
1787
+ var __defNormalProp3 = (obj, key, value) => key in obj ? __defProp3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1788
+ var __spreadValues = (a3, b3) => {
1789
+ for (var prop in b3 || (b3 = {}))
1790
+ if (__hasOwnProp.call(b3, prop))
1791
+ __defNormalProp3(a3, prop, b3[prop]);
1792
+ if (__getOwnPropSymbols)
1793
+ for (var prop of __getOwnPropSymbols(b3)) {
1794
+ if (__propIsEnum.call(b3, prop))
1795
+ __defNormalProp3(a3, prop, b3[prop]);
1796
+ }
1797
+ return a3;
1798
+ };
1799
+ var __spreadProps = (a3, b3) => __defProps(a3, __getOwnPropDescs(b3));
1800
+ var __decorateClass = (decorators, target, key, kind) => {
1801
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc3(target, key) : target;
1802
+ for (var i4 = decorators.length - 1, decorator; i4 >= 0; i4--)
1803
+ if (decorator = decorators[i4])
1804
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
1805
+ if (kind && result)
1806
+ __defProp3(target, key, result);
1807
+ return result;
1808
+ };
1809
+ var __accessCheck3 = (obj, member, msg) => {
1810
+ if (!member.has(obj))
1811
+ throw TypeError("Cannot " + msg);
1812
+ };
1813
+ var __privateGet3 = (obj, member, getter) => {
1814
+ __accessCheck3(obj, member, "read from private field");
1815
+ return getter ? getter.call(obj) : member.get(obj);
1816
+ };
1817
+ var __privateAdd3 = (obj, member, value) => {
1818
+ if (member.has(obj))
1819
+ throw TypeError("Cannot add the same private member more than once");
1820
+ member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
1821
+ };
1822
+ var __privateSet3 = (obj, member, value, setter) => {
1823
+ __accessCheck3(obj, member, "write to private field");
1824
+ setter ? setter.call(obj, value) : member.set(obj, value);
1825
+ return value;
1826
+ };
1827
+
1828
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.CCJUT23E.js
1829
+ function watch(propertyName, options) {
1830
+ const resolvedOptions = __spreadValues({
1831
+ waitUntilFirstUpdate: false
1832
+ }, options);
1833
+ return (proto, decoratedFnName) => {
1834
+ const { update } = proto;
1835
+ const watchedProperties = Array.isArray(propertyName) ? propertyName : [propertyName];
1836
+ proto.update = function(changedProps) {
1837
+ watchedProperties.forEach((property) => {
1838
+ const key = property;
1839
+ if (changedProps.has(key)) {
1840
+ const oldValue = changedProps.get(key);
1841
+ const newValue = this[key];
1842
+ if (oldValue !== newValue) {
1843
+ if (!resolvedOptions.waitUntilFirstUpdate || this.hasUpdated) {
1844
+ this[decoratedFnName](oldValue, newValue);
1845
+ }
1846
+ }
1847
+ }
1848
+ });
1849
+ update.call(this, changedProps);
1850
+ };
1851
+ };
1852
+ }
1853
+
1854
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.TUVJKY7S.js
1855
+ var component_styles_default = i`
1856
+ :host {
1857
+ box-sizing: border-box;
1858
+ }
1859
+
1860
+ :host *,
1861
+ :host *::before,
1862
+ :host *::after {
1863
+ box-sizing: inherit;
1864
+ }
1865
+
1866
+ [hidden] {
1867
+ display: none !important;
1868
+ }
1869
+ `;
1870
+
1871
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.NLWS5DN7.js
1872
+ var _hasRecordedInitialProperties;
1873
+ var ShoelaceElement = class extends h3 {
1874
+ constructor() {
1875
+ super();
1876
+ __privateAdd3(this, _hasRecordedInitialProperties, false);
1877
+ this.initialReflectedProperties = /* @__PURE__ */ new Map();
1878
+ Object.entries(this.constructor.dependencies).forEach(([name, component]) => {
1879
+ this.constructor.define(name, component);
1880
+ });
1881
+ }
1882
+ emit(name, options) {
1883
+ const event = new CustomEvent(name, __spreadValues({
1884
+ bubbles: true,
1885
+ cancelable: false,
1886
+ composed: true,
1887
+ detail: {}
1888
+ }, options));
1889
+ this.dispatchEvent(event);
1890
+ return event;
1891
+ }
1892
+ /* eslint-enable */
1893
+ static define(name, elementConstructor = this, options = {}) {
1894
+ const currentlyRegisteredConstructor = customElements.get(name);
1895
+ if (!currentlyRegisteredConstructor) {
1896
+ try {
1897
+ customElements.define(name, elementConstructor, options);
1898
+ } catch (_err) {
1899
+ customElements.define(name, class extends elementConstructor {
1900
+ }, options);
1901
+ }
1902
+ return;
1903
+ }
1904
+ let newVersion = " (unknown version)";
1905
+ let existingVersion = newVersion;
1906
+ if ("version" in elementConstructor && elementConstructor.version) {
1907
+ newVersion = " v" + elementConstructor.version;
1908
+ }
1909
+ if ("version" in currentlyRegisteredConstructor && currentlyRegisteredConstructor.version) {
1910
+ existingVersion = " v" + currentlyRegisteredConstructor.version;
1911
+ }
1912
+ if (newVersion && existingVersion && newVersion === existingVersion) {
1913
+ return;
1914
+ }
1915
+ console.warn(
1916
+ `Attempted to register <${name}>${newVersion}, but <${name}>${existingVersion} has already been registered.`
1917
+ );
1918
+ }
1919
+ attributeChangedCallback(name, oldValue, newValue) {
1920
+ if (!__privateGet3(this, _hasRecordedInitialProperties)) {
1921
+ this.constructor.elementProperties.forEach(
1922
+ (obj, prop) => {
1923
+ if (obj.reflect && this[prop] != null) {
1924
+ this.initialReflectedProperties.set(prop, this[prop]);
1925
+ }
1926
+ }
1927
+ );
1928
+ __privateSet3(this, _hasRecordedInitialProperties, true);
1929
+ }
1930
+ super.attributeChangedCallback(name, oldValue, newValue);
1931
+ }
1932
+ willUpdate(changedProperties) {
1933
+ super.willUpdate(changedProperties);
1934
+ this.initialReflectedProperties.forEach((value, prop) => {
1935
+ if (changedProperties.has(prop) && this[prop] == null) {
1936
+ this[prop] = value;
1937
+ }
1938
+ });
1939
+ }
42
1940
  };
43
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
44
- var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
45
- var __privateIn = (member, obj) => Object(obj) !== obj ? __typeError('Cannot use the "in" operator on this value') : member.has(obj);
46
- var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
47
- 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);
48
- var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
49
- var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
1941
+ _hasRecordedInitialProperties = /* @__PURE__ */ new WeakMap();
1942
+ ShoelaceElement.version = "2.17.1";
1943
+ ShoelaceElement.dependencies = {};
1944
+ __decorateClass([
1945
+ n5()
1946
+ ], ShoelaceElement.prototype, "dir", 2);
1947
+ __decorateClass([
1948
+ n5()
1949
+ ], ShoelaceElement.prototype, "lang", 2);
50
1950
 
51
- // src/widgets/webwriter-choice-item.ts
52
- import { css, html } from "lit";
53
- import { styleMap } from "lit/directives/style-map.js";
54
- import { classMap } from "lit/directives/class-map.js";
55
- import { LitElementWw } from "@webwriter/lit";
56
- import { customElement, property, query } from "lit/decorators.js";
57
- import SlRadio from "@shoelace-style/shoelace/dist/components/radio/radio.component.js";
58
- import SlCheckbox from "@shoelace-style/shoelace/dist/components/checkbox/checkbox.component.js";
59
- import SlIcon from "@shoelace-style/shoelace/dist/components/icon/icon.component.js";
60
- import { keyed } from "lit/directives/keyed.js";
1951
+ // ../../node_modules/lit/node_modules/lit-html/directive-helpers.js
1952
+ var { I: et3 } = si;
1953
+ var nt = (o5, t5) => void 0 === t5 ? void 0 !== o5?._$litType$ : o5?._$litType$ === t5;
1954
+ var rt = (o5) => void 0 === o5.strings;
1955
+ var ht = {};
1956
+ var dt = (o5, t5 = ht) => o5._$AH = t5;
1957
+
1958
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.O7VCMB7W.js
1959
+ var CACHEABLE_ERROR = Symbol();
1960
+ var RETRYABLE_ERROR = Symbol();
1961
+ var parser;
1962
+ var iconCache = /* @__PURE__ */ new Map();
1963
+ var SlIcon = class extends ShoelaceElement {
1964
+ constructor() {
1965
+ super(...arguments);
1966
+ this.initialRender = false;
1967
+ this.svg = null;
1968
+ this.label = "";
1969
+ this.library = "default";
1970
+ }
1971
+ /** Given a URL, this function returns the resulting SVG element or an appropriate error symbol. */
1972
+ async resolveIcon(url, library2) {
1973
+ var _a3;
1974
+ let fileData;
1975
+ if (library2 == null ? void 0 : library2.spriteSheet) {
1976
+ this.svg = ke`<svg part="svg">
1977
+ <use part="use" href="${url}"></use>
1978
+ </svg>`;
1979
+ return this.svg;
1980
+ }
1981
+ try {
1982
+ fileData = await fetch(url, { mode: "cors" });
1983
+ if (!fileData.ok)
1984
+ return fileData.status === 410 ? CACHEABLE_ERROR : RETRYABLE_ERROR;
1985
+ } catch (e7) {
1986
+ return RETRYABLE_ERROR;
1987
+ }
1988
+ try {
1989
+ const div = document.createElement("div");
1990
+ div.innerHTML = await fileData.text();
1991
+ const svg = div.firstElementChild;
1992
+ if (((_a3 = svg == null ? void 0 : svg.tagName) == null ? void 0 : _a3.toLowerCase()) !== "svg")
1993
+ return CACHEABLE_ERROR;
1994
+ if (!parser)
1995
+ parser = new DOMParser();
1996
+ const doc = parser.parseFromString(svg.outerHTML, "text/html");
1997
+ const svgEl = doc.body.querySelector("svg");
1998
+ if (!svgEl)
1999
+ return CACHEABLE_ERROR;
2000
+ svgEl.part.add("svg");
2001
+ return document.adoptNode(svgEl);
2002
+ } catch (e7) {
2003
+ return CACHEABLE_ERROR;
2004
+ }
2005
+ }
2006
+ connectedCallback() {
2007
+ super.connectedCallback();
2008
+ watchIcon(this);
2009
+ }
2010
+ firstUpdated() {
2011
+ this.initialRender = true;
2012
+ this.setIcon();
2013
+ }
2014
+ disconnectedCallback() {
2015
+ super.disconnectedCallback();
2016
+ unwatchIcon(this);
2017
+ }
2018
+ getIconSource() {
2019
+ const library2 = getIconLibrary(this.library);
2020
+ if (this.name && library2) {
2021
+ return {
2022
+ url: library2.resolver(this.name),
2023
+ fromLibrary: true
2024
+ };
2025
+ }
2026
+ return {
2027
+ url: this.src,
2028
+ fromLibrary: false
2029
+ };
2030
+ }
2031
+ handleLabelChange() {
2032
+ const hasLabel = typeof this.label === "string" && this.label.length > 0;
2033
+ if (hasLabel) {
2034
+ this.setAttribute("role", "img");
2035
+ this.setAttribute("aria-label", this.label);
2036
+ this.removeAttribute("aria-hidden");
2037
+ } else {
2038
+ this.removeAttribute("role");
2039
+ this.removeAttribute("aria-label");
2040
+ this.setAttribute("aria-hidden", "true");
2041
+ }
2042
+ }
2043
+ async setIcon() {
2044
+ var _a3;
2045
+ const { url, fromLibrary } = this.getIconSource();
2046
+ const library2 = fromLibrary ? getIconLibrary(this.library) : void 0;
2047
+ if (!url) {
2048
+ this.svg = null;
2049
+ return;
2050
+ }
2051
+ let iconResolver = iconCache.get(url);
2052
+ if (!iconResolver) {
2053
+ iconResolver = this.resolveIcon(url, library2);
2054
+ iconCache.set(url, iconResolver);
2055
+ }
2056
+ if (!this.initialRender) {
2057
+ return;
2058
+ }
2059
+ const svg = await iconResolver;
2060
+ if (svg === RETRYABLE_ERROR) {
2061
+ iconCache.delete(url);
2062
+ }
2063
+ if (url !== this.getIconSource().url) {
2064
+ return;
2065
+ }
2066
+ if (nt(svg)) {
2067
+ this.svg = svg;
2068
+ if (library2) {
2069
+ await this.updateComplete;
2070
+ const shadowSVG = this.shadowRoot.querySelector("[part='svg']");
2071
+ if (typeof library2.mutator === "function" && shadowSVG) {
2072
+ library2.mutator(shadowSVG);
2073
+ }
2074
+ }
2075
+ return;
2076
+ }
2077
+ switch (svg) {
2078
+ case RETRYABLE_ERROR:
2079
+ case CACHEABLE_ERROR:
2080
+ this.svg = null;
2081
+ this.emit("sl-error");
2082
+ break;
2083
+ default:
2084
+ this.svg = svg.cloneNode(true);
2085
+ (_a3 = library2 == null ? void 0 : library2.mutator) == null ? void 0 : _a3.call(library2, this.svg);
2086
+ this.emit("sl-load");
2087
+ }
2088
+ }
2089
+ render() {
2090
+ return this.svg;
2091
+ }
2092
+ };
2093
+ SlIcon.styles = [component_styles_default, icon_styles_default];
2094
+ __decorateClass([
2095
+ r5()
2096
+ ], SlIcon.prototype, "svg", 2);
2097
+ __decorateClass([
2098
+ n5({ reflect: true })
2099
+ ], SlIcon.prototype, "name", 2);
2100
+ __decorateClass([
2101
+ n5()
2102
+ ], SlIcon.prototype, "src", 2);
2103
+ __decorateClass([
2104
+ n5()
2105
+ ], SlIcon.prototype, "label", 2);
2106
+ __decorateClass([
2107
+ n5({ reflect: true })
2108
+ ], SlIcon.prototype, "library", 2);
2109
+ __decorateClass([
2110
+ watch("label")
2111
+ ], SlIcon.prototype, "handleLabelChange", 1);
2112
+ __decorateClass([
2113
+ watch(["name", "src", "library"])
2114
+ ], SlIcon.prototype, "setIcon", 1);
2115
+
2116
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.N5H7JIU3.js
2117
+ var SlRadio = class extends ShoelaceElement {
2118
+ constructor() {
2119
+ super();
2120
+ this.checked = false;
2121
+ this.hasFocus = false;
2122
+ this.size = "medium";
2123
+ this.disabled = false;
2124
+ this.handleBlur = () => {
2125
+ this.hasFocus = false;
2126
+ this.emit("sl-blur");
2127
+ };
2128
+ this.handleClick = () => {
2129
+ if (!this.disabled) {
2130
+ this.checked = true;
2131
+ }
2132
+ };
2133
+ this.handleFocus = () => {
2134
+ this.hasFocus = true;
2135
+ this.emit("sl-focus");
2136
+ };
2137
+ this.addEventListener("blur", this.handleBlur);
2138
+ this.addEventListener("click", this.handleClick);
2139
+ this.addEventListener("focus", this.handleFocus);
2140
+ }
2141
+ connectedCallback() {
2142
+ super.connectedCallback();
2143
+ this.setInitialAttributes();
2144
+ }
2145
+ setInitialAttributes() {
2146
+ this.setAttribute("role", "radio");
2147
+ this.setAttribute("tabindex", "-1");
2148
+ this.setAttribute("aria-disabled", this.disabled ? "true" : "false");
2149
+ }
2150
+ handleCheckedChange() {
2151
+ this.setAttribute("aria-checked", this.checked ? "true" : "false");
2152
+ this.setAttribute("tabindex", this.checked ? "0" : "-1");
2153
+ }
2154
+ handleDisabledChange() {
2155
+ this.setAttribute("aria-disabled", this.disabled ? "true" : "false");
2156
+ }
2157
+ render() {
2158
+ return ke`
2159
+ <span
2160
+ part="base"
2161
+ class=${Rt({
2162
+ radio: true,
2163
+ "radio--checked": this.checked,
2164
+ "radio--disabled": this.disabled,
2165
+ "radio--focused": this.hasFocus,
2166
+ "radio--small": this.size === "small",
2167
+ "radio--medium": this.size === "medium",
2168
+ "radio--large": this.size === "large"
2169
+ })}
2170
+ >
2171
+ <span part="${`control${this.checked ? " control--checked" : ""}`}" class="radio__control">
2172
+ ${this.checked ? ke` <sl-icon part="checked-icon" class="radio__checked-icon" library="system" name="radio"></sl-icon> ` : ""}
2173
+ </span>
2174
+
2175
+ <slot part="label" class="radio__label"></slot>
2176
+ </span>
2177
+ `;
2178
+ }
2179
+ };
2180
+ SlRadio.styles = [component_styles_default, radio_styles_default];
2181
+ SlRadio.dependencies = { "sl-icon": SlIcon };
2182
+ __decorateClass([
2183
+ r5()
2184
+ ], SlRadio.prototype, "checked", 2);
2185
+ __decorateClass([
2186
+ r5()
2187
+ ], SlRadio.prototype, "hasFocus", 2);
2188
+ __decorateClass([
2189
+ n5()
2190
+ ], SlRadio.prototype, "value", 2);
2191
+ __decorateClass([
2192
+ n5({ reflect: true })
2193
+ ], SlRadio.prototype, "size", 2);
2194
+ __decorateClass([
2195
+ n5({ type: Boolean, reflect: true })
2196
+ ], SlRadio.prototype, "disabled", 2);
2197
+ __decorateClass([
2198
+ watch("checked")
2199
+ ], SlRadio.prototype, "handleCheckedChange", 1);
2200
+ __decorateClass([
2201
+ watch("disabled", { waitUntilFirstUpdate: true })
2202
+ ], SlRadio.prototype, "handleDisabledChange", 1);
2203
+
2204
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.R3NF57O3.js
2205
+ var checkbox_styles_default = i`
2206
+ :host {
2207
+ display: inline-block;
2208
+ }
2209
+
2210
+ .checkbox {
2211
+ position: relative;
2212
+ display: inline-flex;
2213
+ align-items: flex-start;
2214
+ font-family: var(--sl-input-font-family);
2215
+ font-weight: var(--sl-input-font-weight);
2216
+ color: var(--sl-input-label-color);
2217
+ vertical-align: middle;
2218
+ cursor: pointer;
2219
+ }
2220
+
2221
+ .checkbox--small {
2222
+ --toggle-size: var(--sl-toggle-size-small);
2223
+ font-size: var(--sl-input-font-size-small);
2224
+ }
2225
+
2226
+ .checkbox--medium {
2227
+ --toggle-size: var(--sl-toggle-size-medium);
2228
+ font-size: var(--sl-input-font-size-medium);
2229
+ }
2230
+
2231
+ .checkbox--large {
2232
+ --toggle-size: var(--sl-toggle-size-large);
2233
+ font-size: var(--sl-input-font-size-large);
2234
+ }
2235
+
2236
+ .checkbox__control {
2237
+ flex: 0 0 auto;
2238
+ position: relative;
2239
+ display: inline-flex;
2240
+ align-items: center;
2241
+ justify-content: center;
2242
+ width: var(--toggle-size);
2243
+ height: var(--toggle-size);
2244
+ border: solid var(--sl-input-border-width) var(--sl-input-border-color);
2245
+ border-radius: 2px;
2246
+ background-color: var(--sl-input-background-color);
2247
+ color: var(--sl-color-neutral-0);
2248
+ transition:
2249
+ var(--sl-transition-fast) border-color,
2250
+ var(--sl-transition-fast) background-color,
2251
+ var(--sl-transition-fast) color,
2252
+ var(--sl-transition-fast) box-shadow;
2253
+ }
2254
+
2255
+ .checkbox__input {
2256
+ position: absolute;
2257
+ opacity: 0;
2258
+ padding: 0;
2259
+ margin: 0;
2260
+ pointer-events: none;
2261
+ }
2262
+
2263
+ .checkbox__checked-icon,
2264
+ .checkbox__indeterminate-icon {
2265
+ display: inline-flex;
2266
+ width: var(--toggle-size);
2267
+ height: var(--toggle-size);
2268
+ }
2269
+
2270
+ /* Hover */
2271
+ .checkbox:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover {
2272
+ border-color: var(--sl-input-border-color-hover);
2273
+ background-color: var(--sl-input-background-color-hover);
2274
+ }
2275
+
2276
+ /* Focus */
2277
+ .checkbox:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__input:focus-visible ~ .checkbox__control {
2278
+ outline: var(--sl-focus-ring);
2279
+ outline-offset: var(--sl-focus-ring-offset);
2280
+ }
2281
+
2282
+ /* Checked/indeterminate */
2283
+ .checkbox--checked .checkbox__control,
2284
+ .checkbox--indeterminate .checkbox__control {
2285
+ border-color: var(--sl-color-primary-600);
2286
+ background-color: var(--sl-color-primary-600);
2287
+ }
2288
+
2289
+ /* Checked/indeterminate + hover */
2290
+ .checkbox.checkbox--checked:not(.checkbox--disabled) .checkbox__control:hover,
2291
+ .checkbox.checkbox--indeterminate:not(.checkbox--disabled) .checkbox__control:hover {
2292
+ border-color: var(--sl-color-primary-500);
2293
+ background-color: var(--sl-color-primary-500);
2294
+ }
2295
+
2296
+ /* Checked/indeterminate + focus */
2297
+ .checkbox.checkbox--checked:not(.checkbox--disabled) .checkbox__input:focus-visible ~ .checkbox__control,
2298
+ .checkbox.checkbox--indeterminate:not(.checkbox--disabled) .checkbox__input:focus-visible ~ .checkbox__control {
2299
+ outline: var(--sl-focus-ring);
2300
+ outline-offset: var(--sl-focus-ring-offset);
2301
+ }
2302
+
2303
+ /* Disabled */
2304
+ .checkbox--disabled {
2305
+ opacity: 0.5;
2306
+ cursor: not-allowed;
2307
+ }
2308
+
2309
+ .checkbox__label {
2310
+ display: inline-block;
2311
+ color: var(--sl-input-label-color);
2312
+ line-height: var(--toggle-size);
2313
+ margin-inline-start: 0.5em;
2314
+ user-select: none;
2315
+ -webkit-user-select: none;
2316
+ }
2317
+
2318
+ :host([required]) .checkbox__label::after {
2319
+ content: var(--sl-input-required-content);
2320
+ color: var(--sl-input-required-content-color);
2321
+ margin-inline-start: var(--sl-input-required-content-offset);
2322
+ }
2323
+ `;
2324
+
2325
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.GI7VDIWX.js
2326
+ var defaultValue = (propertyName = "value") => (proto, key) => {
2327
+ const ctor = proto.constructor;
2328
+ const attributeChangedCallback = ctor.prototype.attributeChangedCallback;
2329
+ ctor.prototype.attributeChangedCallback = function(name, old, value) {
2330
+ var _a3;
2331
+ const options = ctor.getPropertyOptions(propertyName);
2332
+ const attributeName = typeof options.attribute === "string" ? options.attribute : propertyName;
2333
+ if (name === attributeName) {
2334
+ const converter = options.converter || u;
2335
+ const fromAttribute = typeof converter === "function" ? converter : (_a3 = converter == null ? void 0 : converter.fromAttribute) != null ? _a3 : u.fromAttribute;
2336
+ const newValue = fromAttribute(value, options.type);
2337
+ if (this[propertyName] !== newValue) {
2338
+ this[key] = newValue;
2339
+ }
2340
+ }
2341
+ attributeChangedCallback.call(this, name, old, value);
2342
+ };
2343
+ };
2344
+
2345
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.SI4ACBFK.js
2346
+ var form_control_styles_default = i`
2347
+ .form-control .form-control__label {
2348
+ display: none;
2349
+ }
2350
+
2351
+ .form-control .form-control__help-text {
2352
+ display: none;
2353
+ }
2354
+
2355
+ /* Label */
2356
+ .form-control--has-label .form-control__label {
2357
+ display: inline-block;
2358
+ color: var(--sl-input-label-color);
2359
+ margin-bottom: var(--sl-spacing-3x-small);
2360
+ }
2361
+
2362
+ .form-control--has-label.form-control--small .form-control__label {
2363
+ font-size: var(--sl-input-label-font-size-small);
2364
+ }
2365
+
2366
+ .form-control--has-label.form-control--medium .form-control__label {
2367
+ font-size: var(--sl-input-label-font-size-medium);
2368
+ }
2369
+
2370
+ .form-control--has-label.form-control--large .form-control__label {
2371
+ font-size: var(--sl-input-label-font-size-large);
2372
+ }
2373
+
2374
+ :host([required]) .form-control--has-label .form-control__label::after {
2375
+ content: var(--sl-input-required-content);
2376
+ margin-inline-start: var(--sl-input-required-content-offset);
2377
+ color: var(--sl-input-required-content-color);
2378
+ }
2379
+
2380
+ /* Help text */
2381
+ .form-control--has-help-text .form-control__help-text {
2382
+ display: block;
2383
+ color: var(--sl-input-help-text-color);
2384
+ margin-top: var(--sl-spacing-3x-small);
2385
+ }
2386
+
2387
+ .form-control--has-help-text.form-control--small .form-control__help-text {
2388
+ font-size: var(--sl-input-help-text-font-size-small);
2389
+ }
2390
+
2391
+ .form-control--has-help-text.form-control--medium .form-control__help-text {
2392
+ font-size: var(--sl-input-help-text-font-size-medium);
2393
+ }
2394
+
2395
+ .form-control--has-help-text.form-control--large .form-control__help-text {
2396
+ font-size: var(--sl-input-help-text-font-size-large);
2397
+ }
2398
+
2399
+ .form-control--has-help-text.form-control--radio-group .form-control__help-text {
2400
+ margin-top: var(--sl-spacing-2x-small);
2401
+ }
2402
+ `;
2403
+
2404
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.2RCF7SLU.js
2405
+ var formCollections = /* @__PURE__ */ new WeakMap();
2406
+ var reportValidityOverloads = /* @__PURE__ */ new WeakMap();
2407
+ var checkValidityOverloads = /* @__PURE__ */ new WeakMap();
2408
+ var userInteractedControls = /* @__PURE__ */ new WeakSet();
2409
+ var interactions = /* @__PURE__ */ new WeakMap();
2410
+ var FormControlController = class {
2411
+ constructor(host, options) {
2412
+ this.handleFormData = (event) => {
2413
+ const disabled = this.options.disabled(this.host);
2414
+ const name = this.options.name(this.host);
2415
+ const value = this.options.value(this.host);
2416
+ const isButton = this.host.tagName.toLowerCase() === "sl-button";
2417
+ if (this.host.isConnected && !disabled && !isButton && typeof name === "string" && name.length > 0 && typeof value !== "undefined") {
2418
+ if (Array.isArray(value)) {
2419
+ value.forEach((val) => {
2420
+ event.formData.append(name, val.toString());
2421
+ });
2422
+ } else {
2423
+ event.formData.append(name, value.toString());
2424
+ }
2425
+ }
2426
+ };
2427
+ this.handleFormSubmit = (event) => {
2428
+ var _a3;
2429
+ const disabled = this.options.disabled(this.host);
2430
+ const reportValidity = this.options.reportValidity;
2431
+ if (this.form && !this.form.noValidate) {
2432
+ (_a3 = formCollections.get(this.form)) == null ? void 0 : _a3.forEach((control) => {
2433
+ this.setUserInteracted(control, true);
2434
+ });
2435
+ }
2436
+ if (this.form && !this.form.noValidate && !disabled && !reportValidity(this.host)) {
2437
+ event.preventDefault();
2438
+ event.stopImmediatePropagation();
2439
+ }
2440
+ };
2441
+ this.handleFormReset = () => {
2442
+ this.options.setValue(this.host, this.options.defaultValue(this.host));
2443
+ this.setUserInteracted(this.host, false);
2444
+ interactions.set(this.host, []);
2445
+ };
2446
+ this.handleInteraction = (event) => {
2447
+ const emittedEvents = interactions.get(this.host);
2448
+ if (!emittedEvents.includes(event.type)) {
2449
+ emittedEvents.push(event.type);
2450
+ }
2451
+ if (emittedEvents.length === this.options.assumeInteractionOn.length) {
2452
+ this.setUserInteracted(this.host, true);
2453
+ }
2454
+ };
2455
+ this.checkFormValidity = () => {
2456
+ if (this.form && !this.form.noValidate) {
2457
+ const elements = this.form.querySelectorAll("*");
2458
+ for (const element of elements) {
2459
+ if (typeof element.checkValidity === "function") {
2460
+ if (!element.checkValidity()) {
2461
+ return false;
2462
+ }
2463
+ }
2464
+ }
2465
+ }
2466
+ return true;
2467
+ };
2468
+ this.reportFormValidity = () => {
2469
+ if (this.form && !this.form.noValidate) {
2470
+ const elements = this.form.querySelectorAll("*");
2471
+ for (const element of elements) {
2472
+ if (typeof element.reportValidity === "function") {
2473
+ if (!element.reportValidity()) {
2474
+ return false;
2475
+ }
2476
+ }
2477
+ }
2478
+ }
2479
+ return true;
2480
+ };
2481
+ (this.host = host).addController(this);
2482
+ this.options = __spreadValues({
2483
+ form: (input) => {
2484
+ const formId = input.form;
2485
+ if (formId) {
2486
+ const root = input.getRootNode();
2487
+ const form = root.querySelector(`#${formId}`);
2488
+ if (form) {
2489
+ return form;
2490
+ }
2491
+ }
2492
+ return input.closest("form");
2493
+ },
2494
+ name: (input) => input.name,
2495
+ value: (input) => input.value,
2496
+ defaultValue: (input) => input.defaultValue,
2497
+ disabled: (input) => {
2498
+ var _a3;
2499
+ return (_a3 = input.disabled) != null ? _a3 : false;
2500
+ },
2501
+ reportValidity: (input) => typeof input.reportValidity === "function" ? input.reportValidity() : true,
2502
+ checkValidity: (input) => typeof input.checkValidity === "function" ? input.checkValidity() : true,
2503
+ setValue: (input, value) => input.value = value,
2504
+ assumeInteractionOn: ["sl-input"]
2505
+ }, options);
2506
+ }
2507
+ hostConnected() {
2508
+ const form = this.options.form(this.host);
2509
+ if (form) {
2510
+ this.attachForm(form);
2511
+ }
2512
+ interactions.set(this.host, []);
2513
+ this.options.assumeInteractionOn.forEach((event) => {
2514
+ this.host.addEventListener(event, this.handleInteraction);
2515
+ });
2516
+ }
2517
+ hostDisconnected() {
2518
+ this.detachForm();
2519
+ interactions.delete(this.host);
2520
+ this.options.assumeInteractionOn.forEach((event) => {
2521
+ this.host.removeEventListener(event, this.handleInteraction);
2522
+ });
2523
+ }
2524
+ hostUpdated() {
2525
+ const form = this.options.form(this.host);
2526
+ if (!form) {
2527
+ this.detachForm();
2528
+ }
2529
+ if (form && this.form !== form) {
2530
+ this.detachForm();
2531
+ this.attachForm(form);
2532
+ }
2533
+ if (this.host.hasUpdated) {
2534
+ this.setValidity(this.host.validity.valid);
2535
+ }
2536
+ }
2537
+ attachForm(form) {
2538
+ if (form) {
2539
+ this.form = form;
2540
+ if (formCollections.has(this.form)) {
2541
+ formCollections.get(this.form).add(this.host);
2542
+ } else {
2543
+ formCollections.set(this.form, /* @__PURE__ */ new Set([this.host]));
2544
+ }
2545
+ this.form.addEventListener("formdata", this.handleFormData);
2546
+ this.form.addEventListener("submit", this.handleFormSubmit);
2547
+ this.form.addEventListener("reset", this.handleFormReset);
2548
+ if (!reportValidityOverloads.has(this.form)) {
2549
+ reportValidityOverloads.set(this.form, this.form.reportValidity);
2550
+ this.form.reportValidity = () => this.reportFormValidity();
2551
+ }
2552
+ if (!checkValidityOverloads.has(this.form)) {
2553
+ checkValidityOverloads.set(this.form, this.form.checkValidity);
2554
+ this.form.checkValidity = () => this.checkFormValidity();
2555
+ }
2556
+ } else {
2557
+ this.form = void 0;
2558
+ }
2559
+ }
2560
+ detachForm() {
2561
+ if (!this.form)
2562
+ return;
2563
+ const formCollection = formCollections.get(this.form);
2564
+ if (!formCollection) {
2565
+ return;
2566
+ }
2567
+ formCollection.delete(this.host);
2568
+ if (formCollection.size <= 0) {
2569
+ this.form.removeEventListener("formdata", this.handleFormData);
2570
+ this.form.removeEventListener("submit", this.handleFormSubmit);
2571
+ this.form.removeEventListener("reset", this.handleFormReset);
2572
+ if (reportValidityOverloads.has(this.form)) {
2573
+ this.form.reportValidity = reportValidityOverloads.get(this.form);
2574
+ reportValidityOverloads.delete(this.form);
2575
+ }
2576
+ if (checkValidityOverloads.has(this.form)) {
2577
+ this.form.checkValidity = checkValidityOverloads.get(this.form);
2578
+ checkValidityOverloads.delete(this.form);
2579
+ }
2580
+ this.form = void 0;
2581
+ }
2582
+ }
2583
+ setUserInteracted(el, hasInteracted) {
2584
+ if (hasInteracted) {
2585
+ userInteractedControls.add(el);
2586
+ } else {
2587
+ userInteractedControls.delete(el);
2588
+ }
2589
+ el.requestUpdate();
2590
+ }
2591
+ doAction(type, submitter) {
2592
+ if (this.form) {
2593
+ const button = document.createElement("button");
2594
+ button.type = type;
2595
+ button.style.position = "absolute";
2596
+ button.style.width = "0";
2597
+ button.style.height = "0";
2598
+ button.style.clipPath = "inset(50%)";
2599
+ button.style.overflow = "hidden";
2600
+ button.style.whiteSpace = "nowrap";
2601
+ if (submitter) {
2602
+ button.name = submitter.name;
2603
+ button.value = submitter.value;
2604
+ ["formaction", "formenctype", "formmethod", "formnovalidate", "formtarget"].forEach((attr) => {
2605
+ if (submitter.hasAttribute(attr)) {
2606
+ button.setAttribute(attr, submitter.getAttribute(attr));
2607
+ }
2608
+ });
2609
+ }
2610
+ this.form.append(button);
2611
+ button.click();
2612
+ button.remove();
2613
+ }
2614
+ }
2615
+ /** Returns the associated `<form>` element, if one exists. */
2616
+ getForm() {
2617
+ var _a3;
2618
+ return (_a3 = this.form) != null ? _a3 : null;
2619
+ }
2620
+ /** Resets the form, restoring all the control to their default value */
2621
+ reset(submitter) {
2622
+ this.doAction("reset", submitter);
2623
+ }
2624
+ /** Submits the form, triggering validation and form data injection. */
2625
+ submit(submitter) {
2626
+ this.doAction("submit", submitter);
2627
+ }
2628
+ /**
2629
+ * Synchronously sets the form control's validity. Call this when you know the future validity but need to update
2630
+ * the host element immediately, i.e. before Lit updates the component in the next update.
2631
+ */
2632
+ setValidity(isValid) {
2633
+ const host = this.host;
2634
+ const hasInteracted = Boolean(userInteractedControls.has(host));
2635
+ const required = Boolean(host.required);
2636
+ host.toggleAttribute("data-required", required);
2637
+ host.toggleAttribute("data-optional", !required);
2638
+ host.toggleAttribute("data-invalid", !isValid);
2639
+ host.toggleAttribute("data-valid", isValid);
2640
+ host.toggleAttribute("data-user-invalid", !isValid && hasInteracted);
2641
+ host.toggleAttribute("data-user-valid", isValid && hasInteracted);
2642
+ }
2643
+ /**
2644
+ * Updates the form control's validity based on the current value of `host.validity.valid`. Call this when anything
2645
+ * that affects constraint validation changes so the component receives the correct validity states.
2646
+ */
2647
+ updateValidity() {
2648
+ const host = this.host;
2649
+ this.setValidity(host.validity.valid);
2650
+ }
2651
+ /**
2652
+ * Dispatches a non-bubbling, cancelable custom event of type `sl-invalid`.
2653
+ * If the `sl-invalid` event will be cancelled then the original `invalid`
2654
+ * event (which may have been passed as argument) will also be cancelled.
2655
+ * If no original `invalid` event has been passed then the `sl-invalid`
2656
+ * event will be cancelled before being dispatched.
2657
+ */
2658
+ emitInvalidEvent(originalInvalidEvent) {
2659
+ const slInvalidEvent = new CustomEvent("sl-invalid", {
2660
+ bubbles: false,
2661
+ composed: false,
2662
+ cancelable: true,
2663
+ detail: {}
2664
+ });
2665
+ if (!originalInvalidEvent) {
2666
+ slInvalidEvent.preventDefault();
2667
+ }
2668
+ if (!this.host.dispatchEvent(slInvalidEvent)) {
2669
+ originalInvalidEvent == null ? void 0 : originalInvalidEvent.preventDefault();
2670
+ }
2671
+ }
2672
+ };
2673
+ var validValidityState = Object.freeze({
2674
+ badInput: false,
2675
+ customError: false,
2676
+ patternMismatch: false,
2677
+ rangeOverflow: false,
2678
+ rangeUnderflow: false,
2679
+ stepMismatch: false,
2680
+ tooLong: false,
2681
+ tooShort: false,
2682
+ typeMismatch: false,
2683
+ valid: true,
2684
+ valueMissing: false
2685
+ });
2686
+ var valueMissingValidityState = Object.freeze(__spreadProps(__spreadValues({}, validValidityState), {
2687
+ valid: false,
2688
+ valueMissing: true
2689
+ }));
2690
+ var customErrorValidityState = Object.freeze(__spreadProps(__spreadValues({}, validValidityState), {
2691
+ valid: false,
2692
+ customError: true
2693
+ }));
2694
+
2695
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.NYIIDP5N.js
2696
+ var HasSlotController = class {
2697
+ constructor(host, ...slotNames) {
2698
+ this.slotNames = [];
2699
+ this.handleSlotChange = (event) => {
2700
+ const slot = event.target;
2701
+ if (this.slotNames.includes("[default]") && !slot.name || slot.name && this.slotNames.includes(slot.name)) {
2702
+ this.host.requestUpdate();
2703
+ }
2704
+ };
2705
+ (this.host = host).addController(this);
2706
+ this.slotNames = slotNames;
2707
+ }
2708
+ hasDefaultSlot() {
2709
+ return [...this.host.childNodes].some((node) => {
2710
+ if (node.nodeType === node.TEXT_NODE && node.textContent.trim() !== "") {
2711
+ return true;
2712
+ }
2713
+ if (node.nodeType === node.ELEMENT_NODE) {
2714
+ const el = node;
2715
+ const tagName = el.tagName.toLowerCase();
2716
+ if (tagName === "sl-visually-hidden") {
2717
+ return false;
2718
+ }
2719
+ if (!el.hasAttribute("slot")) {
2720
+ return true;
2721
+ }
2722
+ }
2723
+ return false;
2724
+ });
2725
+ }
2726
+ hasNamedSlot(name) {
2727
+ return this.host.querySelector(`:scope > [slot="${name}"]`) !== null;
2728
+ }
2729
+ test(slotName) {
2730
+ return slotName === "[default]" ? this.hasDefaultSlot() : this.hasNamedSlot(slotName);
2731
+ }
2732
+ hostConnected() {
2733
+ this.host.shadowRoot.addEventListener("slotchange", this.handleSlotChange);
2734
+ }
2735
+ hostDisconnected() {
2736
+ this.host.shadowRoot.removeEventListener("slotchange", this.handleSlotChange);
2737
+ }
2738
+ };
2739
+
2740
+ // ../../node_modules/lit/node_modules/lit-html/directives/if-defined.js
2741
+ var to = (t5) => t5 ?? D;
2742
+
2743
+ // ../../node_modules/lit/node_modules/lit-html/directives/live.js
2744
+ var Ft = e3(class extends i3 {
2745
+ constructor(r6) {
2746
+ if (super(r6), r6.type !== t2.PROPERTY && r6.type !== t2.ATTRIBUTE && r6.type !== t2.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
2747
+ if (!rt(r6)) throw Error("`live` bindings can only contain a single expression");
2748
+ }
2749
+ render(r6) {
2750
+ return r6;
2751
+ }
2752
+ update(r6, [e7]) {
2753
+ if (e7 === R || e7 === D) return e7;
2754
+ const i4 = r6.element, n6 = r6.name;
2755
+ if (r6.type === t2.PROPERTY) {
2756
+ if (e7 === i4[n6]) return R;
2757
+ } else if (r6.type === t2.BOOLEAN_ATTRIBUTE) {
2758
+ if (!!e7 === i4.hasAttribute(n6)) return R;
2759
+ } else if (r6.type === t2.ATTRIBUTE && i4.getAttribute(n6) === e7 + "") return R;
2760
+ return dt(r6), e7;
2761
+ }
2762
+ });
2763
+
2764
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.CX3DZWHK.js
2765
+ var SlCheckbox = class extends ShoelaceElement {
2766
+ constructor() {
2767
+ super(...arguments);
2768
+ this.formControlController = new FormControlController(this, {
2769
+ value: (control) => control.checked ? control.value || "on" : void 0,
2770
+ defaultValue: (control) => control.defaultChecked,
2771
+ setValue: (control, checked) => control.checked = checked
2772
+ });
2773
+ this.hasSlotController = new HasSlotController(this, "help-text");
2774
+ this.hasFocus = false;
2775
+ this.title = "";
2776
+ this.name = "";
2777
+ this.size = "medium";
2778
+ this.disabled = false;
2779
+ this.checked = false;
2780
+ this.indeterminate = false;
2781
+ this.defaultChecked = false;
2782
+ this.form = "";
2783
+ this.required = false;
2784
+ this.helpText = "";
2785
+ }
2786
+ /** Gets the validity state object */
2787
+ get validity() {
2788
+ return this.input.validity;
2789
+ }
2790
+ /** Gets the validation message */
2791
+ get validationMessage() {
2792
+ return this.input.validationMessage;
2793
+ }
2794
+ firstUpdated() {
2795
+ this.formControlController.updateValidity();
2796
+ }
2797
+ handleClick() {
2798
+ this.checked = !this.checked;
2799
+ this.indeterminate = false;
2800
+ this.emit("sl-change");
2801
+ }
2802
+ handleBlur() {
2803
+ this.hasFocus = false;
2804
+ this.emit("sl-blur");
2805
+ }
2806
+ handleInput() {
2807
+ this.emit("sl-input");
2808
+ }
2809
+ handleInvalid(event) {
2810
+ this.formControlController.setValidity(false);
2811
+ this.formControlController.emitInvalidEvent(event);
2812
+ }
2813
+ handleFocus() {
2814
+ this.hasFocus = true;
2815
+ this.emit("sl-focus");
2816
+ }
2817
+ handleDisabledChange() {
2818
+ this.formControlController.setValidity(this.disabled);
2819
+ }
2820
+ handleStateChange() {
2821
+ this.input.checked = this.checked;
2822
+ this.input.indeterminate = this.indeterminate;
2823
+ this.formControlController.updateValidity();
2824
+ }
2825
+ /** Simulates a click on the checkbox. */
2826
+ click() {
2827
+ this.input.click();
2828
+ }
2829
+ /** Sets focus on the checkbox. */
2830
+ focus(options) {
2831
+ this.input.focus(options);
2832
+ }
2833
+ /** Removes focus from the checkbox. */
2834
+ blur() {
2835
+ this.input.blur();
2836
+ }
2837
+ /** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */
2838
+ checkValidity() {
2839
+ return this.input.checkValidity();
2840
+ }
2841
+ /** Gets the associated form, if one exists. */
2842
+ getForm() {
2843
+ return this.formControlController.getForm();
2844
+ }
2845
+ /** Checks for validity and shows the browser's validation message if the control is invalid. */
2846
+ reportValidity() {
2847
+ return this.input.reportValidity();
2848
+ }
2849
+ /**
2850
+ * Sets a custom validation message. The value provided will be shown to the user when the form is submitted. To clear
2851
+ * the custom validation message, call this method with an empty string.
2852
+ */
2853
+ setCustomValidity(message) {
2854
+ this.input.setCustomValidity(message);
2855
+ this.formControlController.updateValidity();
2856
+ }
2857
+ render() {
2858
+ const hasHelpTextSlot = this.hasSlotController.test("help-text");
2859
+ const hasHelpText = this.helpText ? true : !!hasHelpTextSlot;
2860
+ return ke`
2861
+ <div
2862
+ class=${Rt({
2863
+ "form-control": true,
2864
+ "form-control--small": this.size === "small",
2865
+ "form-control--medium": this.size === "medium",
2866
+ "form-control--large": this.size === "large",
2867
+ "form-control--has-help-text": hasHelpText
2868
+ })}
2869
+ >
2870
+ <label
2871
+ part="base"
2872
+ class=${Rt({
2873
+ checkbox: true,
2874
+ "checkbox--checked": this.checked,
2875
+ "checkbox--disabled": this.disabled,
2876
+ "checkbox--focused": this.hasFocus,
2877
+ "checkbox--indeterminate": this.indeterminate,
2878
+ "checkbox--small": this.size === "small",
2879
+ "checkbox--medium": this.size === "medium",
2880
+ "checkbox--large": this.size === "large"
2881
+ })}
2882
+ >
2883
+ <input
2884
+ class="checkbox__input"
2885
+ type="checkbox"
2886
+ title=${this.title}
2887
+ name=${this.name}
2888
+ value=${to(this.value)}
2889
+ .indeterminate=${Ft(this.indeterminate)}
2890
+ .checked=${Ft(this.checked)}
2891
+ .disabled=${this.disabled}
2892
+ .required=${this.required}
2893
+ aria-checked=${this.checked ? "true" : "false"}
2894
+ aria-describedby="help-text"
2895
+ @click=${this.handleClick}
2896
+ @input=${this.handleInput}
2897
+ @invalid=${this.handleInvalid}
2898
+ @blur=${this.handleBlur}
2899
+ @focus=${this.handleFocus}
2900
+ />
2901
+
2902
+ <span
2903
+ part="control${this.checked ? " control--checked" : ""}${this.indeterminate ? " control--indeterminate" : ""}"
2904
+ class="checkbox__control"
2905
+ >
2906
+ ${this.checked ? ke`
2907
+ <sl-icon part="checked-icon" class="checkbox__checked-icon" library="system" name="check"></sl-icon>
2908
+ ` : ""}
2909
+ ${!this.checked && this.indeterminate ? ke`
2910
+ <sl-icon
2911
+ part="indeterminate-icon"
2912
+ class="checkbox__indeterminate-icon"
2913
+ library="system"
2914
+ name="indeterminate"
2915
+ ></sl-icon>
2916
+ ` : ""}
2917
+ </span>
2918
+
2919
+ <div part="label" class="checkbox__label">
2920
+ <slot></slot>
2921
+ </div>
2922
+ </label>
2923
+
2924
+ <div
2925
+ aria-hidden=${hasHelpText ? "false" : "true"}
2926
+ class="form-control__help-text"
2927
+ id="help-text"
2928
+ part="form-control-help-text"
2929
+ >
2930
+ <slot name="help-text">${this.helpText}</slot>
2931
+ </div>
2932
+ </div>
2933
+ `;
2934
+ }
2935
+ };
2936
+ SlCheckbox.styles = [component_styles_default, form_control_styles_default, checkbox_styles_default];
2937
+ SlCheckbox.dependencies = { "sl-icon": SlIcon };
2938
+ __decorateClass([
2939
+ e6('input[type="checkbox"]')
2940
+ ], SlCheckbox.prototype, "input", 2);
2941
+ __decorateClass([
2942
+ r5()
2943
+ ], SlCheckbox.prototype, "hasFocus", 2);
2944
+ __decorateClass([
2945
+ n5()
2946
+ ], SlCheckbox.prototype, "title", 2);
2947
+ __decorateClass([
2948
+ n5()
2949
+ ], SlCheckbox.prototype, "name", 2);
2950
+ __decorateClass([
2951
+ n5()
2952
+ ], SlCheckbox.prototype, "value", 2);
2953
+ __decorateClass([
2954
+ n5({ reflect: true })
2955
+ ], SlCheckbox.prototype, "size", 2);
2956
+ __decorateClass([
2957
+ n5({ type: Boolean, reflect: true })
2958
+ ], SlCheckbox.prototype, "disabled", 2);
2959
+ __decorateClass([
2960
+ n5({ type: Boolean, reflect: true })
2961
+ ], SlCheckbox.prototype, "checked", 2);
2962
+ __decorateClass([
2963
+ n5({ type: Boolean, reflect: true })
2964
+ ], SlCheckbox.prototype, "indeterminate", 2);
2965
+ __decorateClass([
2966
+ defaultValue("checked")
2967
+ ], SlCheckbox.prototype, "defaultChecked", 2);
2968
+ __decorateClass([
2969
+ n5({ reflect: true })
2970
+ ], SlCheckbox.prototype, "form", 2);
2971
+ __decorateClass([
2972
+ n5({ type: Boolean, reflect: true })
2973
+ ], SlCheckbox.prototype, "required", 2);
2974
+ __decorateClass([
2975
+ n5({ attribute: "help-text" })
2976
+ ], SlCheckbox.prototype, "helpText", 2);
2977
+ __decorateClass([
2978
+ watch("disabled", { waitUntilFirstUpdate: true })
2979
+ ], SlCheckbox.prototype, "handleDisabledChange", 1);
2980
+ __decorateClass([
2981
+ watch(["checked", "indeterminate"], { waitUntilFirstUpdate: true })
2982
+ ], SlCheckbox.prototype, "handleStateChange", 1);
2983
+
2984
+ // ../../node_modules/lit/node_modules/lit-html/directives/keyed.js
2985
+ var Bt = e3(class extends i3 {
2986
+ constructor() {
2987
+ super(...arguments), this.key = D;
2988
+ }
2989
+ render(r6, t5) {
2990
+ return this.key = r6, t5;
2991
+ }
2992
+ update(r6, [t5, e7]) {
2993
+ return t5 !== this.key && (dt(r6), this.key = t5), e7;
2994
+ }
2995
+ });
61
2996
 
62
2997
  // ../../node_modules/bootstrap-icons/icons/x.svg
63
2998
  var x_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x" viewBox="0 0 16 16">%0A <path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708"/>%0A</svg>';
@@ -66,32 +3001,32 @@ var x_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" widt
66
3001
  var check_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-check" viewBox="0 0 16 16">%0A <path d="M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425z"/>%0A</svg>';
67
3002
 
68
3003
  // src/widgets/webwriter-choice-item.ts
69
- var _checkbox_dec, _layout_dec, _valid_dec, _active_dec, _a, _WebwriterChoiceItem_decorators, _init, _active, _valid, _layout, _checkbox;
70
- _WebwriterChoiceItem_decorators = [customElement("webwriter-choice-item")];
71
- var _WebwriterChoiceItem = class _WebwriterChoiceItem extends (_a = LitElementWw, _active_dec = [property({ type: Boolean, attribute: false })], _valid_dec = [property({ type: Boolean, attribute: false })], _layout_dec = [property({ type: String, attribute: true, reflect: true })], _checkbox_dec = [query("sl-checkbox")], _a) {
3004
+ var _checkbox_dec, _layout_dec, _valid_dec, _active_dec, _a2, _WebwriterChoiceItem_decorators, _init2, _active, _valid, _layout, _checkbox;
3005
+ _WebwriterChoiceItem_decorators = [t4("webwriter-choice-item")];
3006
+ var _WebwriterChoiceItem = class _WebwriterChoiceItem extends (_a2 = LitElementWw, _active_dec = [n5({ type: Boolean, attribute: false })], _valid_dec = [n5({ type: Boolean, attribute: false })], _layout_dec = [n5({ type: String, attribute: true, reflect: true })], _checkbox_dec = [e6("sl-checkbox")], _a2) {
72
3007
  constructor() {
73
3008
  super(...arguments);
74
3009
  __publicField(this, "msg", (str) => this.lang in _WebwriterChoiceItem.localization ? _WebwriterChoiceItem.localization[this.lang][str] ?? str : str);
75
- __privateAdd(this, _active, __runInitializers(_init, 8, this, false)), __runInitializers(_init, 11, this);
76
- __privateAdd(this, _valid, __runInitializers(_init, 12, this)), __runInitializers(_init, 15, this);
77
- __privateAdd(this, _layout, __runInitializers(_init, 16, this, "list")), __runInitializers(_init, 19, this);
78
- __publicField(this, "handleClick", (e) => {
79
- const checkboxClicked = e.composedPath().some((v) => v?.classList?.contains("checkbox__control"));
3010
+ __privateAdd(this, _active, __runInitializers(_init2, 8, this, false)), __runInitializers(_init2, 11, this);
3011
+ __privateAdd(this, _valid, __runInitializers(_init2, 12, this)), __runInitializers(_init2, 15, this);
3012
+ __privateAdd(this, _layout, __runInitializers(_init2, 16, this, "list")), __runInitializers(_init2, 19, this);
3013
+ __publicField(this, "handleClick", (e7) => {
3014
+ const checkboxClicked = e7.composedPath().some((v3) => v3?.classList?.contains("checkbox__control"));
80
3015
  const editable = this.isContentEditable;
81
3016
  if (editable && !checkboxClicked) {
82
- e.preventDefault();
3017
+ e7.preventDefault();
83
3018
  } else {
84
- e.stopImmediatePropagation();
3019
+ e7.stopImmediatePropagation();
85
3020
  }
86
3021
  });
87
- __publicField(this, "handleChange", (e) => {
3022
+ __publicField(this, "handleChange", (e7) => {
88
3023
  if (this.isContentEditable) {
89
3024
  this.valid = !this.valid;
90
3025
  } else {
91
3026
  this.active = !this.active;
92
3027
  }
93
3028
  });
94
- __privateAdd(this, _checkbox, __runInitializers(_init, 20, this)), __runInitializers(_init, 23, this);
3029
+ __privateAdd(this, _checkbox, __runInitializers(_init2, 20, this)), __runInitializers(_init2, 23, this);
95
3030
  __publicField(this, "observer");
96
3031
  }
97
3032
  async updated(_changedProperties) {
@@ -121,31 +3056,31 @@ var _WebwriterChoiceItem = class _WebwriterChoiceItem extends (_a = LitElementWw
121
3056
  this.observer?.disconnect();
122
3057
  }
123
3058
  render() {
124
- return keyed(this.layout, html`
125
- ${this.valid !== void 0 && (this.active || !this.active && this.valid) ? html`<sl-icon class="solution user-only" ?data-valid=${this.valid} src=${this.valid ? check_default : x_default}></sl-icon>` : null}
126
- <sl-checkbox class=${classMap({ valid: this.valid, active: this.active })} exportparts="base, control, label" @click=${this.handleClick} @sl-change=${this.handleChange} ?checked=${this.isContentEditable ? this.valid : this.active}>
127
- <slot part="slot" style=${styleMap({ "--ww-placeholder": `"${this.msg("Option")}"` })}></slot>
3059
+ return Bt(this.layout, ke`
3060
+ ${this.valid !== void 0 && (this.active || !this.active && this.valid) ? ke`<sl-icon class="solution user-only" ?data-valid=${this.valid} src=${this.valid ? check_default : x_default}></sl-icon>` : null}
3061
+ <sl-checkbox class=${Rt({ valid: this.valid, active: this.active })} exportparts="base, control, label" @click=${this.handleClick} @sl-change=${this.handleChange} ?checked=${this.isContentEditable ? this.valid : this.active}>
3062
+ <slot part="slot" style=${se({ "--ww-placeholder": `"${this.msg("Option")}"` })}></slot>
128
3063
  </sl-checkbox>
129
3064
  `);
130
3065
  }
131
3066
  };
132
- _init = __decoratorStart(_a);
3067
+ _init2 = __decoratorStart(_a2);
133
3068
  _active = new WeakMap();
134
3069
  _valid = new WeakMap();
135
3070
  _layout = new WeakMap();
136
3071
  _checkbox = new WeakMap();
137
- __decorateElement(_init, 4, "active", _active_dec, _WebwriterChoiceItem, _active);
138
- __decorateElement(_init, 4, "valid", _valid_dec, _WebwriterChoiceItem, _valid);
139
- __decorateElement(_init, 4, "layout", _layout_dec, _WebwriterChoiceItem, _layout);
140
- __decorateElement(_init, 4, "checkbox", _checkbox_dec, _WebwriterChoiceItem, _checkbox);
141
- _WebwriterChoiceItem = __decorateElement(_init, 0, "WebwriterChoiceItem", _WebwriterChoiceItem_decorators, _WebwriterChoiceItem);
3072
+ __decorateElement(_init2, 4, "active", _active_dec, _WebwriterChoiceItem, _active);
3073
+ __decorateElement(_init2, 4, "valid", _valid_dec, _WebwriterChoiceItem, _valid);
3074
+ __decorateElement(_init2, 4, "layout", _layout_dec, _WebwriterChoiceItem, _layout);
3075
+ __decorateElement(_init2, 4, "checkbox", _checkbox_dec, _WebwriterChoiceItem, _checkbox);
3076
+ _WebwriterChoiceItem = __decorateElement(_init2, 0, "WebwriterChoiceItem", _WebwriterChoiceItem_decorators, _WebwriterChoiceItem);
142
3077
  __publicField(_WebwriterChoiceItem, "localization", {});
143
3078
  __publicField(_WebwriterChoiceItem, "scopedElements", {
144
3079
  "sl-radio": SlRadio,
145
3080
  "sl-checkbox": SlCheckbox,
146
3081
  "sl-icon": SlIcon
147
3082
  });
148
- __publicField(_WebwriterChoiceItem, "styles", css`
3083
+ __publicField(_WebwriterChoiceItem, "styles", i`
149
3084
 
150
3085
  :host {
151
3086
  width: 100%;
@@ -281,8 +3216,271 @@ __publicField(_WebwriterChoiceItem, "styles", css`
281
3216
  }
282
3217
  }
283
3218
  `);
284
- __runInitializers(_init, 1, _WebwriterChoiceItem);
3219
+ __runInitializers(_init2, 1, _WebwriterChoiceItem);
285
3220
  var WebwriterChoiceItem = _WebwriterChoiceItem;
286
3221
  export {
287
3222
  WebwriterChoiceItem
288
3223
  };
3224
+ /*! Bundled license information:
3225
+
3226
+ @lit/reactive-element/css-tag.js:
3227
+ (**
3228
+ * @license
3229
+ * Copyright 2019 Google LLC
3230
+ * SPDX-License-Identifier: BSD-3-Clause
3231
+ *)
3232
+
3233
+ @lit/reactive-element/reactive-element.js:
3234
+ (**
3235
+ * @license
3236
+ * Copyright 2017 Google LLC
3237
+ * SPDX-License-Identifier: BSD-3-Clause
3238
+ *)
3239
+
3240
+ lit-html/lit-html.js:
3241
+ (**
3242
+ * @license
3243
+ * Copyright 2017 Google LLC
3244
+ * SPDX-License-Identifier: BSD-3-Clause
3245
+ *)
3246
+
3247
+ lit-element/lit-element.js:
3248
+ (**
3249
+ * @license
3250
+ * Copyright 2017 Google LLC
3251
+ * SPDX-License-Identifier: BSD-3-Clause
3252
+ *)
3253
+
3254
+ lit-html/is-server.js:
3255
+ (**
3256
+ * @license
3257
+ * Copyright 2022 Google LLC
3258
+ * SPDX-License-Identifier: BSD-3-Clause
3259
+ *)
3260
+
3261
+ @lit/reactive-element/decorators/custom-element.js:
3262
+ (**
3263
+ * @license
3264
+ * Copyright 2017 Google LLC
3265
+ * SPDX-License-Identifier: BSD-3-Clause
3266
+ *)
3267
+
3268
+ @lit/reactive-element/decorators/property.js:
3269
+ (**
3270
+ * @license
3271
+ * Copyright 2017 Google LLC
3272
+ * SPDX-License-Identifier: BSD-3-Clause
3273
+ *)
3274
+
3275
+ @lit/reactive-element/decorators/state.js:
3276
+ (**
3277
+ * @license
3278
+ * Copyright 2017 Google LLC
3279
+ * SPDX-License-Identifier: BSD-3-Clause
3280
+ *)
3281
+
3282
+ @lit/reactive-element/decorators/event-options.js:
3283
+ (**
3284
+ * @license
3285
+ * Copyright 2017 Google LLC
3286
+ * SPDX-License-Identifier: BSD-3-Clause
3287
+ *)
3288
+
3289
+ @lit/reactive-element/decorators/base.js:
3290
+ (**
3291
+ * @license
3292
+ * Copyright 2017 Google LLC
3293
+ * SPDX-License-Identifier: BSD-3-Clause
3294
+ *)
3295
+
3296
+ @lit/reactive-element/decorators/query.js:
3297
+ (**
3298
+ * @license
3299
+ * Copyright 2017 Google LLC
3300
+ * SPDX-License-Identifier: BSD-3-Clause
3301
+ *)
3302
+
3303
+ @lit/reactive-element/decorators/query-all.js:
3304
+ (**
3305
+ * @license
3306
+ * Copyright 2017 Google LLC
3307
+ * SPDX-License-Identifier: BSD-3-Clause
3308
+ *)
3309
+
3310
+ @lit/reactive-element/decorators/query-async.js:
3311
+ (**
3312
+ * @license
3313
+ * Copyright 2017 Google LLC
3314
+ * SPDX-License-Identifier: BSD-3-Clause
3315
+ *)
3316
+
3317
+ @lit/reactive-element/decorators/query-assigned-elements.js:
3318
+ (**
3319
+ * @license
3320
+ * Copyright 2021 Google LLC
3321
+ * SPDX-License-Identifier: BSD-3-Clause
3322
+ *)
3323
+
3324
+ @lit/reactive-element/decorators/query-assigned-nodes.js:
3325
+ (**
3326
+ * @license
3327
+ * Copyright 2017 Google LLC
3328
+ * SPDX-License-Identifier: BSD-3-Clause
3329
+ *)
3330
+ */
3331
+ /*! Bundled license information:
3332
+
3333
+ @lit/reactive-element/css-tag.js:
3334
+ (**
3335
+ * @license
3336
+ * Copyright 2019 Google LLC
3337
+ * SPDX-License-Identifier: BSD-3-Clause
3338
+ *)
3339
+
3340
+ @lit/reactive-element/reactive-element.js:
3341
+ (**
3342
+ * @license
3343
+ * Copyright 2017 Google LLC
3344
+ * SPDX-License-Identifier: BSD-3-Clause
3345
+ *)
3346
+
3347
+ lit-html/lit-html.js:
3348
+ (**
3349
+ * @license
3350
+ * Copyright 2017 Google LLC
3351
+ * SPDX-License-Identifier: BSD-3-Clause
3352
+ *)
3353
+
3354
+ lit-element/lit-element.js:
3355
+ (**
3356
+ * @license
3357
+ * Copyright 2017 Google LLC
3358
+ * SPDX-License-Identifier: BSD-3-Clause
3359
+ *)
3360
+
3361
+ lit-html/is-server.js:
3362
+ (**
3363
+ * @license
3364
+ * Copyright 2022 Google LLC
3365
+ * SPDX-License-Identifier: BSD-3-Clause
3366
+ *)
3367
+
3368
+ lit-html/directive.js:
3369
+ (**
3370
+ * @license
3371
+ * Copyright 2017 Google LLC
3372
+ * SPDX-License-Identifier: BSD-3-Clause
3373
+ *)
3374
+
3375
+ lit-html/directives/style-map.js:
3376
+ (**
3377
+ * @license
3378
+ * Copyright 2018 Google LLC
3379
+ * SPDX-License-Identifier: BSD-3-Clause
3380
+ *)
3381
+
3382
+ lit-html/directives/class-map.js:
3383
+ (**
3384
+ * @license
3385
+ * Copyright 2018 Google LLC
3386
+ * SPDX-License-Identifier: BSD-3-Clause
3387
+ *)
3388
+
3389
+ @lit/reactive-element/decorators/custom-element.js:
3390
+ (**
3391
+ * @license
3392
+ * Copyright 2017 Google LLC
3393
+ * SPDX-License-Identifier: BSD-3-Clause
3394
+ *)
3395
+
3396
+ @lit/reactive-element/decorators/property.js:
3397
+ (**
3398
+ * @license
3399
+ * Copyright 2017 Google LLC
3400
+ * SPDX-License-Identifier: BSD-3-Clause
3401
+ *)
3402
+
3403
+ @lit/reactive-element/decorators/state.js:
3404
+ (**
3405
+ * @license
3406
+ * Copyright 2017 Google LLC
3407
+ * SPDX-License-Identifier: BSD-3-Clause
3408
+ *)
3409
+
3410
+ @lit/reactive-element/decorators/event-options.js:
3411
+ (**
3412
+ * @license
3413
+ * Copyright 2017 Google LLC
3414
+ * SPDX-License-Identifier: BSD-3-Clause
3415
+ *)
3416
+
3417
+ @lit/reactive-element/decorators/base.js:
3418
+ (**
3419
+ * @license
3420
+ * Copyright 2017 Google LLC
3421
+ * SPDX-License-Identifier: BSD-3-Clause
3422
+ *)
3423
+
3424
+ @lit/reactive-element/decorators/query.js:
3425
+ (**
3426
+ * @license
3427
+ * Copyright 2017 Google LLC
3428
+ * SPDX-License-Identifier: BSD-3-Clause
3429
+ *)
3430
+
3431
+ @lit/reactive-element/decorators/query-all.js:
3432
+ (**
3433
+ * @license
3434
+ * Copyright 2017 Google LLC
3435
+ * SPDX-License-Identifier: BSD-3-Clause
3436
+ *)
3437
+
3438
+ @lit/reactive-element/decorators/query-async.js:
3439
+ (**
3440
+ * @license
3441
+ * Copyright 2017 Google LLC
3442
+ * SPDX-License-Identifier: BSD-3-Clause
3443
+ *)
3444
+
3445
+ @lit/reactive-element/decorators/query-assigned-elements.js:
3446
+ (**
3447
+ * @license
3448
+ * Copyright 2021 Google LLC
3449
+ * SPDX-License-Identifier: BSD-3-Clause
3450
+ *)
3451
+
3452
+ @lit/reactive-element/decorators/query-assigned-nodes.js:
3453
+ (**
3454
+ * @license
3455
+ * Copyright 2017 Google LLC
3456
+ * SPDX-License-Identifier: BSD-3-Clause
3457
+ *)
3458
+
3459
+ lit-html/directive-helpers.js:
3460
+ (**
3461
+ * @license
3462
+ * Copyright 2020 Google LLC
3463
+ * SPDX-License-Identifier: BSD-3-Clause
3464
+ *)
3465
+
3466
+ lit-html/directives/if-defined.js:
3467
+ (**
3468
+ * @license
3469
+ * Copyright 2018 Google LLC
3470
+ * SPDX-License-Identifier: BSD-3-Clause
3471
+ *)
3472
+
3473
+ lit-html/directives/live.js:
3474
+ (**
3475
+ * @license
3476
+ * Copyright 2020 Google LLC
3477
+ * SPDX-License-Identifier: BSD-3-Clause
3478
+ *)
3479
+
3480
+ lit-html/directives/keyed.js:
3481
+ (**
3482
+ * @license
3483
+ * Copyright 2021 Google LLC
3484
+ * SPDX-License-Identifier: BSD-3-Clause
3485
+ *)
3486
+ */