@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.
- package/LICENSE +6 -6
- package/custom.d.ts +175 -175
- package/dist/widgets/webwriter-choice-item.js +3257 -59
- package/dist/widgets/webwriter-choice.js +4941 -79
- package/dist/widgets/webwriter-cloze-gap.js +4092 -179
- package/dist/widgets/webwriter-cloze.js +2415 -36
- package/dist/widgets/webwriter-mark.js +2471 -61
- package/dist/widgets/webwriter-order-item.js +2447 -68
- package/dist/widgets/webwriter-order.js +4990 -135
- package/dist/widgets/webwriter-pairing-item.js +1581 -48
- package/dist/widgets/webwriter-pairing.js +3686 -72
- package/dist/widgets/webwriter-quiz.js +6938 -76
- package/dist/widgets/webwriter-speech.js +6265 -76
- package/dist/widgets/webwriter-task-explainer.js +1564 -31
- package/dist/widgets/webwriter-task-hint.js +1523 -28
- package/dist/widgets/webwriter-task-prompt.js +1586 -29
- package/dist/widgets/webwriter-task.js +7132 -101
- package/dist/widgets/webwriter-text.js +4044 -54
- package/package.json +200 -200
- package/src/lib/combobox.ts +455 -455
- package/src/snippets/choice.html +7 -7
- package/src/snippets/cloze.html +3 -3
- package/src/snippets/mark.html +3 -3
- package/src/snippets/order.html +7 -7
- package/src/snippets/pairing.html +9 -9
- package/src/snippets/speech.html +3 -3
- package/src/snippets/text.html +3 -3
- package/src/snippets/wordsearch.html +3 -3
- package/src/widgets/webwriter-choice-item.ts +250 -250
- package/src/widgets/webwriter-choice.ts +309 -309
- package/src/widgets/webwriter-cloze-gap.ts +216 -216
- package/src/widgets/webwriter-cloze.ts +135 -135
- package/src/widgets/webwriter-mark.ts +434 -434
- package/src/widgets/webwriter-order-item.ts +444 -444
- package/src/widgets/webwriter-order.ts +272 -272
- package/src/widgets/webwriter-pairing-item.ts +155 -155
- package/src/widgets/webwriter-pairing.ts +187 -187
- package/src/widgets/webwriter-quiz.ts +280 -280
- package/src/widgets/webwriter-speech.ts +267 -267
- package/src/widgets/webwriter-task-explainer.ts +37 -37
- package/src/widgets/webwriter-task-hint.ts +16 -16
- package/src/widgets/webwriter-task-prompt.ts +17 -17
- package/src/widgets/webwriter-task.ts +543 -543
- package/src/widgets/webwriter-text.ts +130 -130
- package/tsconfig.json +6 -6
|
@@ -13,32 +13,32 @@ 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
|
|
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,
|
|
21
|
-
var
|
|
22
|
-
var initializers =
|
|
23
|
-
var desc =
|
|
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](
|
|
26
|
-
return __privateSet(this, extra,
|
|
25
|
+
}, set [name](x3) {
|
|
26
|
+
return __privateSet(this, extra, x3);
|
|
27
27
|
} }, name));
|
|
28
|
-
|
|
29
|
-
for (var
|
|
30
|
-
ctx = __decoratorContext(
|
|
31
|
-
if (
|
|
32
|
-
ctx.static =
|
|
33
|
-
if (
|
|
34
|
-
if (
|
|
35
|
-
}
|
|
36
|
-
it = (0, decorators[
|
|
37
|
-
if (
|
|
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
|
|
41
|
+
return k3 || __decoratorMetadata(array, target), desc && __defProp(target, name, desc), p3 ? k3 ^ 4 ? extra : desc : target;
|
|
42
42
|
};
|
|
43
43
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
44
44
|
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
@@ -48,12 +48,2135 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
48
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
49
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
50
50
|
|
|
51
|
-
//
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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
|
+
// ../lit/index.js
|
|
646
|
+
var __create2 = Object.create;
|
|
647
|
+
var __defProp2 = Object.defineProperty;
|
|
648
|
+
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
649
|
+
var __knownSymbol2 = (name, symbol) => (symbol = Symbol[name]) ? symbol : Symbol.for("Symbol." + name);
|
|
650
|
+
var __typeError2 = (msg) => {
|
|
651
|
+
throw TypeError(msg);
|
|
652
|
+
};
|
|
653
|
+
var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
654
|
+
var __name2 = (target, value) => __defProp2(target, "name", { value, configurable: true });
|
|
655
|
+
var __decoratorStart2 = (base) => [, , , __create2(base?.[__knownSymbol2("metadata")] ?? null)];
|
|
656
|
+
var __decoratorStrings2 = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"];
|
|
657
|
+
var __expectFn2 = (fn) => fn !== void 0 && typeof fn !== "function" ? __typeError2("Function expected") : fn;
|
|
658
|
+
var __decoratorContext2 = (kind, name, done, metadata, fns) => ({ kind: __decoratorStrings2[kind], name, metadata, addInitializer: (fn) => done._ ? __typeError2("Already initialized") : fns.push(__expectFn2(fn || null)) });
|
|
659
|
+
var __decoratorMetadata2 = (array, target) => __defNormalProp2(target, __knownSymbol2("metadata"), array[3]);
|
|
660
|
+
var __runInitializers2 = (array, flags, self, value) => {
|
|
661
|
+
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);
|
|
662
|
+
return value;
|
|
663
|
+
};
|
|
664
|
+
var __decorateElement2 = (array, flags, name, decorators, target, extra) => {
|
|
665
|
+
var fn, it, done, ctx, access, k22 = flags & 7, s22 = !!(flags & 8), p22 = !!(flags & 16);
|
|
666
|
+
var j22 = k22 > 3 ? array.length + 1 : k22 ? s22 ? 1 : 2 : 0, key = __decoratorStrings2[k22 + 5];
|
|
667
|
+
var initializers = k22 > 3 && (array[j22 - 1] = []), extraInitializers = array[j22] || (array[j22] = []);
|
|
668
|
+
var desc = k22 && (!p22 && !s22 && (target = target.prototype), k22 < 5 && (k22 > 3 || !p22) && __getOwnPropDesc2(k22 < 4 ? target : { get [name]() {
|
|
669
|
+
return __privateGet2(this, extra);
|
|
670
|
+
}, set [name](x22) {
|
|
671
|
+
return __privateSet2(this, extra, x22);
|
|
672
|
+
} }, name));
|
|
673
|
+
k22 ? p22 && k22 < 4 && __name2(extra, (k22 > 2 ? "set " : k22 > 1 ? "get " : "") + name) : __name2(target, name);
|
|
674
|
+
for (var i32 = decorators.length - 1; i32 >= 0; i32--) {
|
|
675
|
+
ctx = __decoratorContext2(k22, name, done = {}, array[3], extraInitializers);
|
|
676
|
+
if (k22) {
|
|
677
|
+
ctx.static = s22, ctx.private = p22, access = ctx.access = { has: p22 ? (x22) => __privateIn2(target, x22) : (x22) => name in x22 };
|
|
678
|
+
if (k22 ^ 3) access.get = p22 ? (x22) => (k22 ^ 1 ? __privateGet2 : __privateMethod2)(x22, target, k22 ^ 4 ? extra : desc.get) : (x22) => x22[name];
|
|
679
|
+
if (k22 > 2) access.set = p22 ? (x22, y22) => __privateSet2(x22, target, y22, k22 ^ 4 ? extra : desc.set) : (x22, y22) => x22[name] = y22;
|
|
680
|
+
}
|
|
681
|
+
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;
|
|
682
|
+
if (k22 ^ 4 || it === void 0) __expectFn2(it) && (k22 > 4 ? initializers.unshift(it) : k22 ? p22 ? extra = it : desc[key] = it : target = it);
|
|
683
|
+
else if (typeof it !== "object" || it === null) __typeError2("Object expected");
|
|
684
|
+
else __expectFn2(fn = it.get) && (desc.get = fn), __expectFn2(fn = it.set) && (desc.set = fn), __expectFn2(fn = it.init) && initializers.unshift(fn);
|
|
685
|
+
}
|
|
686
|
+
return k22 || __decoratorMetadata2(array, target), desc && __defProp2(target, name, desc), p22 ? k22 ^ 4 ? extra : desc : target;
|
|
687
|
+
};
|
|
688
|
+
var __publicField2 = (obj, key, value) => __defNormalProp2(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
689
|
+
var __accessCheck2 = (obj, member, msg) => member.has(obj) || __typeError2("Cannot " + msg);
|
|
690
|
+
var __privateIn2 = (member, obj) => Object(obj) !== obj ? __typeError2('Cannot use the "in" operator on this value') : member.has(obj);
|
|
691
|
+
var __privateGet2 = (obj, member, getter) => (__accessCheck2(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
692
|
+
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);
|
|
693
|
+
var __privateSet2 = (obj, member, value, setter) => (__accessCheck2(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
694
|
+
var __privateMethod2 = (obj, member, method) => (__accessCheck2(obj, member, "access private method"), method);
|
|
695
|
+
var t3 = globalThis;
|
|
696
|
+
var e4 = t3.ShadowRoot && (void 0 === t3.ShadyCSS || t3.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
|
|
697
|
+
var s2 = Symbol();
|
|
698
|
+
var o3 = /* @__PURE__ */ new WeakMap();
|
|
699
|
+
var n4 = class {
|
|
700
|
+
constructor(t22, e42, o42) {
|
|
701
|
+
if (this._$cssResult$ = true, o42 !== s2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
702
|
+
this.cssText = t22, this.t = e42;
|
|
703
|
+
}
|
|
704
|
+
get styleSheet() {
|
|
705
|
+
let t22 = this.o;
|
|
706
|
+
const s22 = this.t;
|
|
707
|
+
if (e4 && void 0 === t22) {
|
|
708
|
+
const e42 = void 0 !== s22 && 1 === s22.length;
|
|
709
|
+
e42 && (t22 = o3.get(s22)), void 0 === t22 && ((this.o = t22 = new CSSStyleSheet()).replaceSync(this.cssText), e42 && o3.set(s22, t22));
|
|
710
|
+
}
|
|
711
|
+
return t22;
|
|
712
|
+
}
|
|
713
|
+
toString() {
|
|
714
|
+
return this.cssText;
|
|
715
|
+
}
|
|
716
|
+
};
|
|
717
|
+
var r3 = (t22) => new n4("string" == typeof t22 ? t22 : t22 + "", void 0, s2);
|
|
718
|
+
var S3 = (s22, o42) => {
|
|
719
|
+
if (e4) s22.adoptedStyleSheets = o42.map((t22) => t22 instanceof CSSStyleSheet ? t22 : t22.styleSheet);
|
|
720
|
+
else for (const e42 of o42) {
|
|
721
|
+
const o5 = document.createElement("style"), n52 = t3.litNonce;
|
|
722
|
+
void 0 !== n52 && o5.setAttribute("nonce", n52), o5.textContent = e42.cssText, s22.appendChild(o5);
|
|
723
|
+
}
|
|
724
|
+
};
|
|
725
|
+
var c4 = e4 ? (t22) => t22 : (t22) => t22 instanceof CSSStyleSheet ? ((t32) => {
|
|
726
|
+
let e42 = "";
|
|
727
|
+
for (const s22 of t32.cssRules) e42 += s22.cssText;
|
|
728
|
+
return r3(e42);
|
|
729
|
+
})(t22) : t22;
|
|
730
|
+
var { is: i22, defineProperty: e22, getOwnPropertyDescriptor: r22, getOwnPropertyNames: h4, getOwnPropertySymbols: o22, getPrototypeOf: n22 } = Object;
|
|
731
|
+
var a2 = globalThis;
|
|
732
|
+
var c22 = a2.trustedTypes;
|
|
733
|
+
var l2 = c22 ? c22.emptyScript : "";
|
|
734
|
+
var p2 = a2.reactiveElementPolyfillSupport;
|
|
735
|
+
var d2 = (t22, s22) => t22;
|
|
736
|
+
var u2 = { toAttribute(t22, s22) {
|
|
737
|
+
switch (s22) {
|
|
738
|
+
case Boolean:
|
|
739
|
+
t22 = t22 ? l2 : null;
|
|
740
|
+
break;
|
|
741
|
+
case Object:
|
|
742
|
+
case Array:
|
|
743
|
+
t22 = null == t22 ? t22 : JSON.stringify(t22);
|
|
744
|
+
}
|
|
745
|
+
return t22;
|
|
746
|
+
}, fromAttribute(t22, s22) {
|
|
747
|
+
let i32 = t22;
|
|
748
|
+
switch (s22) {
|
|
749
|
+
case Boolean:
|
|
750
|
+
i32 = null !== t22;
|
|
751
|
+
break;
|
|
752
|
+
case Number:
|
|
753
|
+
i32 = null === t22 ? null : Number(t22);
|
|
754
|
+
break;
|
|
755
|
+
case Object:
|
|
756
|
+
case Array:
|
|
757
|
+
try {
|
|
758
|
+
i32 = JSON.parse(t22);
|
|
759
|
+
} catch (t32) {
|
|
760
|
+
i32 = null;
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
return i32;
|
|
764
|
+
} };
|
|
765
|
+
var f4 = (t22, s22) => !i22(t22, s22);
|
|
766
|
+
var y2 = { attribute: true, type: String, converter: u2, reflect: false, hasChanged: f4 };
|
|
767
|
+
Symbol.metadata ??= Symbol("metadata"), a2.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
768
|
+
var b2 = class extends HTMLElement {
|
|
769
|
+
static addInitializer(t22) {
|
|
770
|
+
this._$Ei(), (this.l ??= []).push(t22);
|
|
771
|
+
}
|
|
772
|
+
static get observedAttributes() {
|
|
773
|
+
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
774
|
+
}
|
|
775
|
+
static createProperty(t22, s22 = y2) {
|
|
776
|
+
if (s22.state && (s22.attribute = false), this._$Ei(), this.elementProperties.set(t22, s22), !s22.noAccessor) {
|
|
777
|
+
const i32 = Symbol(), r42 = this.getPropertyDescriptor(t22, i32, s22);
|
|
778
|
+
void 0 !== r42 && e22(this.prototype, t22, r42);
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
static getPropertyDescriptor(t22, s22, i32) {
|
|
782
|
+
const { get: e42, set: h42 } = r22(this.prototype, t22) ?? { get() {
|
|
783
|
+
return this[s22];
|
|
784
|
+
}, set(t32) {
|
|
785
|
+
this[s22] = t32;
|
|
786
|
+
} };
|
|
787
|
+
return { get() {
|
|
788
|
+
return e42?.call(this);
|
|
789
|
+
}, set(s3) {
|
|
790
|
+
const r42 = e42?.call(this);
|
|
791
|
+
h42.call(this, s3), this.requestUpdate(t22, r42, i32);
|
|
792
|
+
}, configurable: true, enumerable: true };
|
|
793
|
+
}
|
|
794
|
+
static getPropertyOptions(t22) {
|
|
795
|
+
return this.elementProperties.get(t22) ?? y2;
|
|
796
|
+
}
|
|
797
|
+
static _$Ei() {
|
|
798
|
+
if (this.hasOwnProperty(d2("elementProperties"))) return;
|
|
799
|
+
const t22 = n22(this);
|
|
800
|
+
t22.finalize(), void 0 !== t22.l && (this.l = [...t22.l]), this.elementProperties = new Map(t22.elementProperties);
|
|
801
|
+
}
|
|
802
|
+
static finalize() {
|
|
803
|
+
if (this.hasOwnProperty(d2("finalized"))) return;
|
|
804
|
+
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d2("properties"))) {
|
|
805
|
+
const t32 = this.properties, s22 = [...h4(t32), ...o22(t32)];
|
|
806
|
+
for (const i32 of s22) this.createProperty(i32, t32[i32]);
|
|
807
|
+
}
|
|
808
|
+
const t22 = this[Symbol.metadata];
|
|
809
|
+
if (null !== t22) {
|
|
810
|
+
const s22 = litPropertyMetadata.get(t22);
|
|
811
|
+
if (void 0 !== s22) for (const [t32, i32] of s22) this.elementProperties.set(t32, i32);
|
|
812
|
+
}
|
|
813
|
+
this._$Eh = /* @__PURE__ */ new Map();
|
|
814
|
+
for (const [t32, s22] of this.elementProperties) {
|
|
815
|
+
const i32 = this._$Eu(t32, s22);
|
|
816
|
+
void 0 !== i32 && this._$Eh.set(i32, t32);
|
|
817
|
+
}
|
|
818
|
+
this.elementStyles = this.finalizeStyles(this.styles);
|
|
819
|
+
}
|
|
820
|
+
static finalizeStyles(s22) {
|
|
821
|
+
const i32 = [];
|
|
822
|
+
if (Array.isArray(s22)) {
|
|
823
|
+
const e42 = new Set(s22.flat(1 / 0).reverse());
|
|
824
|
+
for (const s3 of e42) i32.unshift(c4(s3));
|
|
825
|
+
} else void 0 !== s22 && i32.push(c4(s22));
|
|
826
|
+
return i32;
|
|
827
|
+
}
|
|
828
|
+
static _$Eu(t22, s22) {
|
|
829
|
+
const i32 = s22.attribute;
|
|
830
|
+
return false === i32 ? void 0 : "string" == typeof i32 ? i32 : "string" == typeof t22 ? t22.toLowerCase() : void 0;
|
|
831
|
+
}
|
|
832
|
+
constructor() {
|
|
833
|
+
super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
|
|
834
|
+
}
|
|
835
|
+
_$Ev() {
|
|
836
|
+
this._$ES = new Promise((t22) => this.enableUpdating = t22), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t22) => t22(this));
|
|
837
|
+
}
|
|
838
|
+
addController(t22) {
|
|
839
|
+
(this._$EO ??= /* @__PURE__ */ new Set()).add(t22), void 0 !== this.renderRoot && this.isConnected && t22.hostConnected?.();
|
|
840
|
+
}
|
|
841
|
+
removeController(t22) {
|
|
842
|
+
this._$EO?.delete(t22);
|
|
843
|
+
}
|
|
844
|
+
_$E_() {
|
|
845
|
+
const t22 = /* @__PURE__ */ new Map(), s22 = this.constructor.elementProperties;
|
|
846
|
+
for (const i32 of s22.keys()) this.hasOwnProperty(i32) && (t22.set(i32, this[i32]), delete this[i32]);
|
|
847
|
+
t22.size > 0 && (this._$Ep = t22);
|
|
848
|
+
}
|
|
849
|
+
createRenderRoot() {
|
|
850
|
+
const t22 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
851
|
+
return S3(t22, this.constructor.elementStyles), t22;
|
|
852
|
+
}
|
|
853
|
+
connectedCallback() {
|
|
854
|
+
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach((t22) => t22.hostConnected?.());
|
|
855
|
+
}
|
|
856
|
+
enableUpdating(t22) {
|
|
857
|
+
}
|
|
858
|
+
disconnectedCallback() {
|
|
859
|
+
this._$EO?.forEach((t22) => t22.hostDisconnected?.());
|
|
860
|
+
}
|
|
861
|
+
attributeChangedCallback(t22, s22, i32) {
|
|
862
|
+
this._$AK(t22, i32);
|
|
863
|
+
}
|
|
864
|
+
_$EC(t22, s22) {
|
|
865
|
+
const i32 = this.constructor.elementProperties.get(t22), e42 = this.constructor._$Eu(t22, i32);
|
|
866
|
+
if (void 0 !== e42 && true === i32.reflect) {
|
|
867
|
+
const r42 = (void 0 !== i32.converter?.toAttribute ? i32.converter : u2).toAttribute(s22, i32.type);
|
|
868
|
+
this._$Em = t22, null == r42 ? this.removeAttribute(e42) : this.setAttribute(e42, r42), this._$Em = null;
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
_$AK(t22, s22) {
|
|
872
|
+
const i32 = this.constructor, e42 = i32._$Eh.get(t22);
|
|
873
|
+
if (void 0 !== e42 && this._$Em !== e42) {
|
|
874
|
+
const t32 = i32.getPropertyOptions(e42), r42 = "function" == typeof t32.converter ? { fromAttribute: t32.converter } : void 0 !== t32.converter?.fromAttribute ? t32.converter : u2;
|
|
875
|
+
this._$Em = e42, this[e42] = r42.fromAttribute(s22, t32.type), this._$Em = null;
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
requestUpdate(t22, s22, i32) {
|
|
879
|
+
if (void 0 !== t22) {
|
|
880
|
+
if (i32 ??= this.constructor.getPropertyOptions(t22), !(i32.hasChanged ?? f4)(this[t22], s22)) return;
|
|
881
|
+
this.P(t22, s22, i32);
|
|
882
|
+
}
|
|
883
|
+
false === this.isUpdatePending && (this._$ES = this._$ET());
|
|
884
|
+
}
|
|
885
|
+
P(t22, s22, i32) {
|
|
886
|
+
this._$AL.has(t22) || this._$AL.set(t22, s22), true === i32.reflect && this._$Em !== t22 && (this._$Ej ??= /* @__PURE__ */ new Set()).add(t22);
|
|
887
|
+
}
|
|
888
|
+
async _$ET() {
|
|
889
|
+
this.isUpdatePending = true;
|
|
890
|
+
try {
|
|
891
|
+
await this._$ES;
|
|
892
|
+
} catch (t32) {
|
|
893
|
+
Promise.reject(t32);
|
|
894
|
+
}
|
|
895
|
+
const t22 = this.scheduleUpdate();
|
|
896
|
+
return null != t22 && await t22, !this.isUpdatePending;
|
|
897
|
+
}
|
|
898
|
+
scheduleUpdate() {
|
|
899
|
+
return this.performUpdate();
|
|
900
|
+
}
|
|
901
|
+
performUpdate() {
|
|
902
|
+
if (!this.isUpdatePending) return;
|
|
903
|
+
if (!this.hasUpdated) {
|
|
904
|
+
if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
|
|
905
|
+
for (const [t42, s3] of this._$Ep) this[t42] = s3;
|
|
906
|
+
this._$Ep = void 0;
|
|
907
|
+
}
|
|
908
|
+
const t32 = this.constructor.elementProperties;
|
|
909
|
+
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);
|
|
910
|
+
}
|
|
911
|
+
let t22 = false;
|
|
912
|
+
const s22 = this._$AL;
|
|
913
|
+
try {
|
|
914
|
+
t22 = this.shouldUpdate(s22), t22 ? (this.willUpdate(s22), this._$EO?.forEach((t32) => t32.hostUpdate?.()), this.update(s22)) : this._$EU();
|
|
915
|
+
} catch (s3) {
|
|
916
|
+
throw t22 = false, this._$EU(), s3;
|
|
917
|
+
}
|
|
918
|
+
t22 && this._$AE(s22);
|
|
919
|
+
}
|
|
920
|
+
willUpdate(t22) {
|
|
921
|
+
}
|
|
922
|
+
_$AE(t22) {
|
|
923
|
+
this._$EO?.forEach((t32) => t32.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t22)), this.updated(t22);
|
|
924
|
+
}
|
|
925
|
+
_$EU() {
|
|
926
|
+
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
|
|
927
|
+
}
|
|
928
|
+
get updateComplete() {
|
|
929
|
+
return this.getUpdateComplete();
|
|
930
|
+
}
|
|
931
|
+
getUpdateComplete() {
|
|
932
|
+
return this._$ES;
|
|
933
|
+
}
|
|
934
|
+
shouldUpdate(t22) {
|
|
935
|
+
return true;
|
|
936
|
+
}
|
|
937
|
+
update(t22) {
|
|
938
|
+
this._$Ej &&= this._$Ej.forEach((t32) => this._$EC(t32, this[t32])), this._$EU();
|
|
939
|
+
}
|
|
940
|
+
updated(t22) {
|
|
941
|
+
}
|
|
942
|
+
firstUpdated(t22) {
|
|
943
|
+
}
|
|
944
|
+
};
|
|
945
|
+
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");
|
|
946
|
+
var n32 = globalThis;
|
|
947
|
+
var c32 = n32.trustedTypes;
|
|
948
|
+
var h22 = c32 ? c32.createPolicy("lit-html", { createHTML: (t22) => t22 }) : void 0;
|
|
949
|
+
var f22 = "$lit$";
|
|
950
|
+
var v2 = `lit$${Math.random().toFixed(9).slice(2)}$`;
|
|
951
|
+
var m2 = "?" + v2;
|
|
952
|
+
var _2 = `<${m2}>`;
|
|
953
|
+
var w2 = document;
|
|
954
|
+
var lt2 = () => w2.createComment("");
|
|
955
|
+
var st2 = (t22) => null === t22 || "object" != typeof t22 && "function" != typeof t22;
|
|
956
|
+
var g2 = Array.isArray;
|
|
957
|
+
var $2 = (t22) => g2(t22) || "function" == typeof t22?.[Symbol.iterator];
|
|
958
|
+
var x2 = "[ \n\f\r]";
|
|
959
|
+
var T2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
|
|
960
|
+
var E2 = /-->/g;
|
|
961
|
+
var k2 = />/g;
|
|
962
|
+
var O2 = RegExp(`>|${x2}(?:([^\\s"'>=/]+)(${x2}*=${x2}*(?:[^
|
|
963
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g");
|
|
964
|
+
var S22 = /'/g;
|
|
965
|
+
var j2 = /"/g;
|
|
966
|
+
var M2 = /^(?:script|style|textarea|title)$/i;
|
|
967
|
+
var P2 = (t22) => (i32, ...s22) => ({ _$litType$: t22, strings: i32, values: s22 });
|
|
968
|
+
var ke2 = P2(1);
|
|
969
|
+
var Oe2 = P2(2);
|
|
970
|
+
var Se2 = P2(3);
|
|
971
|
+
var R2 = Symbol.for("lit-noChange");
|
|
972
|
+
var D2 = Symbol.for("lit-nothing");
|
|
973
|
+
var V2 = /* @__PURE__ */ new WeakMap();
|
|
974
|
+
var I2 = w2.createTreeWalker(w2, 129);
|
|
975
|
+
function N2(t22, i32) {
|
|
976
|
+
if (!g2(t22) || !t22.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
977
|
+
return void 0 !== h22 ? h22.createHTML(i32) : i32;
|
|
978
|
+
}
|
|
979
|
+
var U2 = (t22, i32) => {
|
|
980
|
+
const s22 = t22.length - 1, e42 = [];
|
|
981
|
+
let h42, o42 = 2 === i32 ? "<svg>" : 3 === i32 ? "<math>" : "", n52 = T2;
|
|
982
|
+
for (let i4 = 0; i4 < s22; i4++) {
|
|
983
|
+
const s3 = t22[i4];
|
|
984
|
+
let r42, l22, c42 = -1, a22 = 0;
|
|
985
|
+
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);
|
|
986
|
+
const u22 = n52 === O2 && t22[i4 + 1].startsWith("/>") ? " " : "";
|
|
987
|
+
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);
|
|
988
|
+
}
|
|
989
|
+
return [N2(t22, o42 + (t22[s22] || "<?>") + (2 === i32 ? "</svg>" : 3 === i32 ? "</math>" : "")), e42];
|
|
990
|
+
};
|
|
991
|
+
var B2 = class _B {
|
|
992
|
+
constructor({ strings: t22, _$litType$: i32 }, s22) {
|
|
993
|
+
let e42;
|
|
994
|
+
this.parts = [];
|
|
995
|
+
let h42 = 0, o42 = 0;
|
|
996
|
+
const n52 = t22.length - 1, r42 = this.parts, [l22, a22] = U2(t22, i32);
|
|
997
|
+
if (this.el = _B.createElement(l22, s22), I2.currentNode = this.el.content, 2 === i32 || 3 === i32) {
|
|
998
|
+
const t32 = this.el.content.firstChild;
|
|
999
|
+
t32.replaceWith(...t32.childNodes);
|
|
1000
|
+
}
|
|
1001
|
+
for (; null !== (e42 = I2.nextNode()) && r42.length < n52; ) {
|
|
1002
|
+
if (1 === e42.nodeType) {
|
|
1003
|
+
if (e42.hasAttributes()) for (const t32 of e42.getAttributeNames()) if (t32.endsWith(f22)) {
|
|
1004
|
+
const i4 = a22[o42++], s3 = e42.getAttribute(t32).split(v2), n6 = /([.?@])?(.*)/.exec(i4);
|
|
1005
|
+
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);
|
|
1006
|
+
} else t32.startsWith(v2) && (r42.push({ type: 6, index: h42 }), e42.removeAttribute(t32));
|
|
1007
|
+
if (M2.test(e42.tagName)) {
|
|
1008
|
+
const t32 = e42.textContent.split(v2), i4 = t32.length - 1;
|
|
1009
|
+
if (i4 > 0) {
|
|
1010
|
+
e42.textContent = c32 ? c32.emptyScript : "";
|
|
1011
|
+
for (let s3 = 0; s3 < i4; s3++) e42.append(t32[s3], lt2()), I2.nextNode(), r42.push({ type: 2, index: ++h42 });
|
|
1012
|
+
e42.append(t32[i4], lt2());
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
} else if (8 === e42.nodeType) if (e42.data === m2) r42.push({ type: 2, index: h42 });
|
|
1016
|
+
else {
|
|
1017
|
+
let t32 = -1;
|
|
1018
|
+
for (; -1 !== (t32 = e42.data.indexOf(v2, t32 + 1)); ) r42.push({ type: 7, index: h42 }), t32 += v2.length - 1;
|
|
1019
|
+
}
|
|
1020
|
+
h42++;
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
static createElement(t22, i32) {
|
|
1024
|
+
const s22 = w2.createElement("template");
|
|
1025
|
+
return s22.innerHTML = t22, s22;
|
|
1026
|
+
}
|
|
1027
|
+
};
|
|
1028
|
+
function z2(t22, i32, s22 = t22, e42) {
|
|
1029
|
+
if (i32 === R2) return i32;
|
|
1030
|
+
let h42 = void 0 !== e42 ? s22.o?.[e42] : s22.l;
|
|
1031
|
+
const o42 = st2(i32) ? void 0 : i32._$litDirective$;
|
|
1032
|
+
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;
|
|
1033
|
+
}
|
|
1034
|
+
var F2 = class {
|
|
1035
|
+
constructor(t22, i32) {
|
|
1036
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t22, this._$AM = i32;
|
|
1037
|
+
}
|
|
1038
|
+
get parentNode() {
|
|
1039
|
+
return this._$AM.parentNode;
|
|
1040
|
+
}
|
|
1041
|
+
get _$AU() {
|
|
1042
|
+
return this._$AM._$AU;
|
|
1043
|
+
}
|
|
1044
|
+
u(t22) {
|
|
1045
|
+
const { el: { content: i32 }, parts: s22 } = this._$AD, e42 = (t22?.creationScope ?? w2).importNode(i32, true);
|
|
1046
|
+
I2.currentNode = e42;
|
|
1047
|
+
let h42 = I2.nextNode(), o42 = 0, n52 = 0, r42 = s22[0];
|
|
1048
|
+
for (; void 0 !== r42; ) {
|
|
1049
|
+
if (o42 === r42.index) {
|
|
1050
|
+
let i4;
|
|
1051
|
+
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];
|
|
1052
|
+
}
|
|
1053
|
+
o42 !== r42?.index && (h42 = I2.nextNode(), o42++);
|
|
1054
|
+
}
|
|
1055
|
+
return I2.currentNode = w2, e42;
|
|
1056
|
+
}
|
|
1057
|
+
p(t22) {
|
|
1058
|
+
let i32 = 0;
|
|
1059
|
+
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++;
|
|
1060
|
+
}
|
|
1061
|
+
};
|
|
1062
|
+
var et2 = class _et {
|
|
1063
|
+
get _$AU() {
|
|
1064
|
+
return this._$AM?._$AU ?? this.v;
|
|
1065
|
+
}
|
|
1066
|
+
constructor(t22, i32, s22, e42) {
|
|
1067
|
+
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;
|
|
1068
|
+
}
|
|
1069
|
+
get parentNode() {
|
|
1070
|
+
let t22 = this._$AA.parentNode;
|
|
1071
|
+
const i32 = this._$AM;
|
|
1072
|
+
return void 0 !== i32 && 11 === t22?.nodeType && (t22 = i32.parentNode), t22;
|
|
1073
|
+
}
|
|
1074
|
+
get startNode() {
|
|
1075
|
+
return this._$AA;
|
|
1076
|
+
}
|
|
1077
|
+
get endNode() {
|
|
1078
|
+
return this._$AB;
|
|
1079
|
+
}
|
|
1080
|
+
_$AI(t22, i32 = this) {
|
|
1081
|
+
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);
|
|
1082
|
+
}
|
|
1083
|
+
O(t22) {
|
|
1084
|
+
return this._$AA.parentNode.insertBefore(t22, this._$AB);
|
|
1085
|
+
}
|
|
1086
|
+
T(t22) {
|
|
1087
|
+
this._$AH !== t22 && (this._$AR(), this._$AH = this.O(t22));
|
|
1088
|
+
}
|
|
1089
|
+
_(t22) {
|
|
1090
|
+
this._$AH !== D2 && st2(this._$AH) ? this._$AA.nextSibling.data = t22 : this.T(w2.createTextNode(t22)), this._$AH = t22;
|
|
1091
|
+
}
|
|
1092
|
+
$(t22) {
|
|
1093
|
+
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);
|
|
1094
|
+
if (this._$AH?._$AD === e42) this._$AH.p(i32);
|
|
1095
|
+
else {
|
|
1096
|
+
const t32 = new F2(e42, this), s3 = t32.u(this.options);
|
|
1097
|
+
t32.p(i32), this.T(s3), this._$AH = t32;
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
_$AC(t22) {
|
|
1101
|
+
let i32 = V2.get(t22.strings);
|
|
1102
|
+
return void 0 === i32 && V2.set(t22.strings, i32 = new B2(t22)), i32;
|
|
1103
|
+
}
|
|
1104
|
+
k(t22) {
|
|
1105
|
+
g2(this._$AH) || (this._$AH = [], this._$AR());
|
|
1106
|
+
const i32 = this._$AH;
|
|
1107
|
+
let s22, e42 = 0;
|
|
1108
|
+
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++;
|
|
1109
|
+
e42 < i32.length && (this._$AR(s22 && s22._$AB.nextSibling, e42), i32.length = e42);
|
|
1110
|
+
}
|
|
1111
|
+
_$AR(t22 = this._$AA.nextSibling, i32) {
|
|
1112
|
+
for (this._$AP?.(false, true, i32); t22 && t22 !== this._$AB; ) {
|
|
1113
|
+
const i4 = t22.nextSibling;
|
|
1114
|
+
t22.remove(), t22 = i4;
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
setConnected(t22) {
|
|
1118
|
+
void 0 === this._$AM && (this.v = t22, this._$AP?.(t22));
|
|
1119
|
+
}
|
|
1120
|
+
};
|
|
1121
|
+
var G2 = class {
|
|
1122
|
+
get tagName() {
|
|
1123
|
+
return this.element.tagName;
|
|
1124
|
+
}
|
|
1125
|
+
get _$AU() {
|
|
1126
|
+
return this._$AM._$AU;
|
|
1127
|
+
}
|
|
1128
|
+
constructor(t22, i32, s22, e42, h42) {
|
|
1129
|
+
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;
|
|
1130
|
+
}
|
|
1131
|
+
_$AI(t22, i32 = this, s22, e42) {
|
|
1132
|
+
const h42 = this.strings;
|
|
1133
|
+
let o42 = false;
|
|
1134
|
+
if (void 0 === h42) t22 = z2(this, t22, i32, 0), o42 = !st2(t22) || t22 !== this._$AH && t22 !== R2, o42 && (this._$AH = t22);
|
|
1135
|
+
else {
|
|
1136
|
+
const e52 = t22;
|
|
1137
|
+
let n52, r42;
|
|
1138
|
+
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;
|
|
1139
|
+
}
|
|
1140
|
+
o42 && !e42 && this.j(t22);
|
|
1141
|
+
}
|
|
1142
|
+
j(t22) {
|
|
1143
|
+
t22 === D2 ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t22 ?? "");
|
|
1144
|
+
}
|
|
1145
|
+
};
|
|
1146
|
+
var Y2 = class extends G2 {
|
|
1147
|
+
constructor() {
|
|
1148
|
+
super(...arguments), this.type = 3;
|
|
1149
|
+
}
|
|
1150
|
+
j(t22) {
|
|
1151
|
+
this.element[this.name] = t22 === D2 ? void 0 : t22;
|
|
1152
|
+
}
|
|
1153
|
+
};
|
|
1154
|
+
var Z2 = class extends G2 {
|
|
1155
|
+
constructor() {
|
|
1156
|
+
super(...arguments), this.type = 4;
|
|
1157
|
+
}
|
|
1158
|
+
j(t22) {
|
|
1159
|
+
this.element.toggleAttribute(this.name, !!t22 && t22 !== D2);
|
|
1160
|
+
}
|
|
1161
|
+
};
|
|
1162
|
+
var q2 = class extends G2 {
|
|
1163
|
+
constructor(t22, i32, s22, e42, h42) {
|
|
1164
|
+
super(t22, i32, s22, e42, h42), this.type = 5;
|
|
1165
|
+
}
|
|
1166
|
+
_$AI(t22, i32 = this) {
|
|
1167
|
+
if ((t22 = z2(this, t22, i32, 0) ?? D2) === R2) return;
|
|
1168
|
+
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);
|
|
1169
|
+
e42 && this.element.removeEventListener(this.name, this, s22), h42 && this.element.addEventListener(this.name, this, t22), this._$AH = t22;
|
|
1170
|
+
}
|
|
1171
|
+
handleEvent(t22) {
|
|
1172
|
+
"function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t22) : this._$AH.handleEvent(t22);
|
|
1173
|
+
}
|
|
1174
|
+
};
|
|
1175
|
+
var K2 = class {
|
|
1176
|
+
constructor(t22, i32, s22) {
|
|
1177
|
+
this.element = t22, this.type = 6, this._$AN = void 0, this._$AM = i32, this.options = s22;
|
|
1178
|
+
}
|
|
1179
|
+
get _$AU() {
|
|
1180
|
+
return this._$AM._$AU;
|
|
1181
|
+
}
|
|
1182
|
+
_$AI(t22) {
|
|
1183
|
+
z2(this, t22);
|
|
1184
|
+
}
|
|
1185
|
+
};
|
|
1186
|
+
var Re2 = n32.litHtmlPolyfillSupport;
|
|
1187
|
+
Re2?.(B2, et2), (n32.litHtmlVersions ??= []).push("3.2.0");
|
|
1188
|
+
var Q2 = (t22, i32, s22) => {
|
|
1189
|
+
const e42 = s22?.renderBefore ?? i32;
|
|
1190
|
+
let h42 = e42._$litPart$;
|
|
1191
|
+
if (void 0 === h42) {
|
|
1192
|
+
const t32 = s22?.renderBefore ?? null;
|
|
1193
|
+
e42._$litPart$ = h42 = new et2(i32.insertBefore(lt2(), t32), t32, void 0, s22 ?? {});
|
|
1194
|
+
}
|
|
1195
|
+
return h42._$AI(t22), h42;
|
|
1196
|
+
};
|
|
1197
|
+
var h32 = class extends b2 {
|
|
1198
|
+
constructor() {
|
|
1199
|
+
super(...arguments), this.renderOptions = { host: this }, this.o = void 0;
|
|
1200
|
+
}
|
|
1201
|
+
createRenderRoot() {
|
|
1202
|
+
const t22 = super.createRenderRoot();
|
|
1203
|
+
return this.renderOptions.renderBefore ??= t22.firstChild, t22;
|
|
1204
|
+
}
|
|
1205
|
+
update(t22) {
|
|
1206
|
+
const e42 = this.render();
|
|
1207
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t22), this.o = Q2(e42, this.renderRoot, this.renderOptions);
|
|
1208
|
+
}
|
|
1209
|
+
connectedCallback() {
|
|
1210
|
+
super.connectedCallback(), this.o?.setConnected(true);
|
|
1211
|
+
}
|
|
1212
|
+
disconnectedCallback() {
|
|
1213
|
+
super.disconnectedCallback(), this.o?.setConnected(false);
|
|
1214
|
+
}
|
|
1215
|
+
render() {
|
|
1216
|
+
return R2;
|
|
1217
|
+
}
|
|
1218
|
+
};
|
|
1219
|
+
h32._$litElement$ = true, h32["finalized"] = true, globalThis.litElementHydrateSupport?.({ LitElement: h32 });
|
|
1220
|
+
var f32 = globalThis.litElementPolyfillSupport;
|
|
1221
|
+
f32?.({ LitElement: h32 });
|
|
1222
|
+
(globalThis.litElementVersions ??= []).push("4.1.0");
|
|
1223
|
+
var o32 = { attribute: true, type: String, converter: u2, reflect: false, hasChanged: f4 };
|
|
1224
|
+
var r32 = (t22 = o32, e42, r42) => {
|
|
1225
|
+
const { kind: n52, metadata: i32 } = r42;
|
|
1226
|
+
let s22 = globalThis.litPropertyMetadata.get(i32);
|
|
1227
|
+
if (void 0 === s22 && globalThis.litPropertyMetadata.set(i32, s22 = /* @__PURE__ */ new Map()), s22.set(r42.name, t22), "accessor" === n52) {
|
|
1228
|
+
const { name: o42 } = r42;
|
|
1229
|
+
return { set(r52) {
|
|
1230
|
+
const n6 = e42.get.call(this);
|
|
1231
|
+
e42.set.call(this, r52), this.requestUpdate(o42, n6, t22);
|
|
1232
|
+
}, init(e52) {
|
|
1233
|
+
return void 0 !== e52 && this.P(o42, void 0, t22), e52;
|
|
1234
|
+
} };
|
|
1235
|
+
}
|
|
1236
|
+
if ("setter" === n52) {
|
|
1237
|
+
const { name: o42 } = r42;
|
|
1238
|
+
return function(r52) {
|
|
1239
|
+
const n6 = this[o42];
|
|
1240
|
+
e42.call(this, r52), this.requestUpdate(o42, n6, t22);
|
|
1241
|
+
};
|
|
1242
|
+
}
|
|
1243
|
+
throw Error("Unsupported decorator location: " + n52);
|
|
1244
|
+
};
|
|
1245
|
+
function n42(t22) {
|
|
1246
|
+
return (e42, o42) => "object" == typeof o42 ? r32(t22, e42, o42) : ((t32, e52, o5) => {
|
|
1247
|
+
const r42 = e52.hasOwnProperty(o5);
|
|
1248
|
+
return e52.constructor.createProperty(o5, r42 ? { ...t32, wrapped: true } : t32), r42 ? Object.getOwnPropertyDescriptor(e52, o5) : void 0;
|
|
1249
|
+
})(t22, e42, o42);
|
|
1250
|
+
}
|
|
1251
|
+
var appliedClassMixins = /* @__PURE__ */ new WeakMap();
|
|
1252
|
+
function wasMixinPreviouslyApplied(mixin, superClass) {
|
|
1253
|
+
let klass = superClass;
|
|
1254
|
+
while (klass) {
|
|
1255
|
+
if (appliedClassMixins.get(klass) === mixin) {
|
|
1256
|
+
return true;
|
|
1257
|
+
}
|
|
1258
|
+
klass = Object.getPrototypeOf(klass);
|
|
1259
|
+
}
|
|
1260
|
+
return false;
|
|
1261
|
+
}
|
|
1262
|
+
function dedupeMixin(mixin) {
|
|
1263
|
+
return (superClass) => {
|
|
1264
|
+
if (wasMixinPreviouslyApplied(mixin, superClass)) {
|
|
1265
|
+
return superClass;
|
|
1266
|
+
}
|
|
1267
|
+
const mixedClass = mixin(superClass);
|
|
1268
|
+
appliedClassMixins.set(mixedClass, mixin);
|
|
1269
|
+
return mixedClass;
|
|
1270
|
+
};
|
|
1271
|
+
}
|
|
1272
|
+
var version = "3.0.0";
|
|
1273
|
+
var versions = window.scopedElementsVersions || (window.scopedElementsVersions = []);
|
|
1274
|
+
if (!versions.includes(version)) {
|
|
1275
|
+
versions.push(version);
|
|
1276
|
+
}
|
|
1277
|
+
var ScopedElementsMixinImplementation = (superclass) => (
|
|
1278
|
+
/** @type {ScopedElementsHost} */
|
|
1279
|
+
class ScopedElementsHost extends superclass {
|
|
1280
|
+
/**
|
|
1281
|
+
* Obtains the scoped elements definitions map if specified.
|
|
1282
|
+
*
|
|
1283
|
+
* @type {ScopedElementsMap=}
|
|
1284
|
+
*/
|
|
1285
|
+
static scopedElements;
|
|
1286
|
+
static get scopedElementsVersion() {
|
|
1287
|
+
return version;
|
|
1288
|
+
}
|
|
1289
|
+
/** @type {CustomElementRegistry=} */
|
|
1290
|
+
static __registry;
|
|
1291
|
+
/**
|
|
1292
|
+
* Obtains the CustomElementRegistry associated to the ShadowRoot.
|
|
1293
|
+
*
|
|
1294
|
+
* @returns {CustomElementRegistry=}
|
|
1295
|
+
*/
|
|
1296
|
+
get registry() {
|
|
1297
|
+
return (
|
|
1298
|
+
/** @type {typeof ScopedElementsHost} */
|
|
1299
|
+
this.constructor.__registry
|
|
1300
|
+
);
|
|
1301
|
+
}
|
|
1302
|
+
/**
|
|
1303
|
+
* Set the CustomElementRegistry associated to the ShadowRoot
|
|
1304
|
+
*
|
|
1305
|
+
* @param {CustomElementRegistry} registry
|
|
1306
|
+
*/
|
|
1307
|
+
set registry(registry2) {
|
|
1308
|
+
this.constructor.__registry = registry2;
|
|
1309
|
+
}
|
|
1310
|
+
/**
|
|
1311
|
+
* @param {ShadowRootInit} options
|
|
1312
|
+
* @returns {ShadowRoot}
|
|
1313
|
+
*/
|
|
1314
|
+
attachShadow(options) {
|
|
1315
|
+
const { scopedElements } = (
|
|
1316
|
+
/** @type {typeof ScopedElementsHost} */
|
|
1317
|
+
this.constructor
|
|
1318
|
+
);
|
|
1319
|
+
const shouldCreateRegistry = !this.registry || // @ts-ignore
|
|
1320
|
+
this.registry === this.constructor.__registry && !Object.prototype.hasOwnProperty.call(this.constructor, "__registry");
|
|
1321
|
+
if (shouldCreateRegistry) {
|
|
1322
|
+
this.registry = new CustomElementRegistry();
|
|
1323
|
+
for (const [tagName, klass] of Object.entries(scopedElements ?? {})) {
|
|
1324
|
+
this.registry.define(tagName, klass);
|
|
1325
|
+
}
|
|
1326
|
+
}
|
|
1327
|
+
return super.attachShadow({
|
|
1328
|
+
...options,
|
|
1329
|
+
// The polyfill currently expects the registry to be passed as `customElements`
|
|
1330
|
+
customElements: this.registry,
|
|
1331
|
+
// But the proposal has moved forward, and renamed it to `registry`
|
|
1332
|
+
// For backwards compatibility, we pass it as both
|
|
1333
|
+
registry: this.registry
|
|
1334
|
+
});
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
);
|
|
1338
|
+
var ScopedElementsMixin = dedupeMixin(ScopedElementsMixinImplementation);
|
|
1339
|
+
var ScopedElementsMixinImplementation2 = (superclass) => (
|
|
1340
|
+
/** @type {ScopedElementsHost} */
|
|
1341
|
+
class ScopedElementsHost extends ScopedElementsMixin(superclass) {
|
|
1342
|
+
createRenderRoot() {
|
|
1343
|
+
const { shadowRootOptions, elementStyles } = (
|
|
1344
|
+
/** @type {TypeofLitElement} */
|
|
1345
|
+
this.constructor
|
|
1346
|
+
);
|
|
1347
|
+
const shadowRoot = this.attachShadow(shadowRootOptions);
|
|
1348
|
+
this.renderOptions.creationScope = shadowRoot;
|
|
1349
|
+
S3(shadowRoot, elementStyles);
|
|
1350
|
+
this.renderOptions.renderBefore ??= shadowRoot.firstChild;
|
|
1351
|
+
return shadowRoot;
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
);
|
|
1355
|
+
var ScopedElementsMixin2 = dedupeMixin(ScopedElementsMixinImplementation2);
|
|
1356
|
+
var _lang_dec;
|
|
1357
|
+
var _contentEditable_dec;
|
|
1358
|
+
var _a;
|
|
1359
|
+
var _init;
|
|
1360
|
+
var _contentEditable;
|
|
1361
|
+
var _lang;
|
|
1362
|
+
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) {
|
|
1363
|
+
constructor() {
|
|
1364
|
+
super(...arguments);
|
|
1365
|
+
__publicField2(this, "options");
|
|
1366
|
+
__publicField2(this, "actions", {});
|
|
1367
|
+
__privateAdd2(this, _contentEditable, __runInitializers2(_init, 8, this)), __runInitializers2(_init, 11, this);
|
|
1368
|
+
__privateAdd2(this, _lang, __runInitializers2(_init, 12, this)), __runInitializers2(_init, 15, this);
|
|
1369
|
+
__publicField2(this, "_inTransaction", false);
|
|
1370
|
+
}
|
|
1371
|
+
connectedCallback() {
|
|
1372
|
+
super.connectedCallback();
|
|
1373
|
+
this.getAttributeNames().forEach((k22) => this.setAttribute(k22, this.getAttribute(k22)));
|
|
1374
|
+
}
|
|
1375
|
+
};
|
|
1376
|
+
_init = __decoratorStart2(_a);
|
|
1377
|
+
_contentEditable = /* @__PURE__ */ new WeakMap();
|
|
1378
|
+
_lang = /* @__PURE__ */ new WeakMap();
|
|
1379
|
+
__decorateElement2(_init, 4, "contentEditable", _contentEditable_dec, LitElementWw, _contentEditable);
|
|
1380
|
+
__decorateElement2(_init, 4, "lang", _lang_dec, LitElementWw, _lang);
|
|
1381
|
+
__decoratorMetadata2(_init, LitElementWw);
|
|
1382
|
+
__publicField2(LitElementWw, "shadowRootOptions", { ...h32.shadowRootOptions });
|
|
1383
|
+
__publicField2(LitElementWw, "options", {});
|
|
1384
|
+
__publicField2(LitElementWw, "actions", {});
|
|
1385
|
+
|
|
1386
|
+
// ../../node_modules/lit/node_modules/@lit/reactive-element/decorators/custom-element.js
|
|
1387
|
+
var t4 = (t5) => (e7, o5) => {
|
|
1388
|
+
void 0 !== o5 ? o5.addInitializer(() => {
|
|
1389
|
+
customElements.define(t5, e7);
|
|
1390
|
+
}) : customElements.define(t5, e7);
|
|
1391
|
+
};
|
|
1392
|
+
|
|
1393
|
+
// ../../node_modules/lit/node_modules/@lit/reactive-element/decorators/property.js
|
|
1394
|
+
var o4 = { attribute: true, type: String, converter: u, reflect: false, hasChanged: f };
|
|
1395
|
+
var r4 = (t5 = o4, e7, r6) => {
|
|
1396
|
+
const { kind: n6, metadata: i4 } = r6;
|
|
1397
|
+
let s3 = globalThis.litPropertyMetadata.get(i4);
|
|
1398
|
+
if (void 0 === s3 && globalThis.litPropertyMetadata.set(i4, s3 = /* @__PURE__ */ new Map()), s3.set(r6.name, t5), "accessor" === n6) {
|
|
1399
|
+
const { name: o5 } = r6;
|
|
1400
|
+
return { set(r7) {
|
|
1401
|
+
const n7 = e7.get.call(this);
|
|
1402
|
+
e7.set.call(this, r7), this.requestUpdate(o5, n7, t5);
|
|
1403
|
+
}, init(e8) {
|
|
1404
|
+
return void 0 !== e8 && this.P(o5, void 0, t5), e8;
|
|
1405
|
+
} };
|
|
1406
|
+
}
|
|
1407
|
+
if ("setter" === n6) {
|
|
1408
|
+
const { name: o5 } = r6;
|
|
1409
|
+
return function(r7) {
|
|
1410
|
+
const n7 = this[o5];
|
|
1411
|
+
e7.call(this, r7), this.requestUpdate(o5, n7, t5);
|
|
1412
|
+
};
|
|
1413
|
+
}
|
|
1414
|
+
throw Error("Unsupported decorator location: " + n6);
|
|
1415
|
+
};
|
|
1416
|
+
function n5(t5) {
|
|
1417
|
+
return (e7, o5) => "object" == typeof o5 ? r4(t5, e7, o5) : ((t6, e8, o6) => {
|
|
1418
|
+
const r6 = e8.hasOwnProperty(o6);
|
|
1419
|
+
return e8.constructor.createProperty(o6, r6 ? { ...t6, wrapped: true } : t6), r6 ? Object.getOwnPropertyDescriptor(e8, o6) : void 0;
|
|
1420
|
+
})(t5, e7, o5);
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
// ../../node_modules/lit/node_modules/@lit/reactive-element/decorators/state.js
|
|
1424
|
+
function r5(r6) {
|
|
1425
|
+
return n5({ ...r6, state: true, attribute: false });
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
// ../../node_modules/lit/node_modules/@lit/reactive-element/decorators/base.js
|
|
1429
|
+
var e5 = (e7, t5, c5) => (c5.configurable = true, c5.enumerable = true, Reflect.decorate && "object" != typeof t5 && Object.defineProperty(e7, t5, c5), c5);
|
|
1430
|
+
|
|
1431
|
+
// ../../node_modules/lit/node_modules/@lit/reactive-element/decorators/query.js
|
|
1432
|
+
function e6(e7, r6) {
|
|
1433
|
+
return (n6, s3, i4) => {
|
|
1434
|
+
const o5 = (t5) => t5.renderRoot?.querySelector(e7) ?? null;
|
|
1435
|
+
if (r6) {
|
|
1436
|
+
const { get: e8, set: r7 } = "object" == typeof s3 ? n6 : i4 ?? (() => {
|
|
1437
|
+
const t5 = Symbol();
|
|
1438
|
+
return { get() {
|
|
1439
|
+
return this[t5];
|
|
1440
|
+
}, set(e9) {
|
|
1441
|
+
this[t5] = e9;
|
|
1442
|
+
} };
|
|
1443
|
+
})();
|
|
1444
|
+
return e5(n6, s3, { get() {
|
|
1445
|
+
let t5 = e8.call(this);
|
|
1446
|
+
return void 0 === t5 && (t5 = o5(this), (null !== t5 || this.hasUpdated) && r7.call(this, t5)), t5;
|
|
1447
|
+
} });
|
|
1448
|
+
}
|
|
1449
|
+
return e5(n6, s3, { get() {
|
|
1450
|
+
return o5(this);
|
|
1451
|
+
} });
|
|
1452
|
+
};
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.6I2T3DLI.js
|
|
1456
|
+
var icon_button_styles_default = i`
|
|
1457
|
+
:host {
|
|
1458
|
+
display: inline-block;
|
|
1459
|
+
color: var(--sl-color-neutral-600);
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
.icon-button {
|
|
1463
|
+
flex: 0 0 auto;
|
|
1464
|
+
display: flex;
|
|
1465
|
+
align-items: center;
|
|
1466
|
+
background: none;
|
|
1467
|
+
border: none;
|
|
1468
|
+
border-radius: var(--sl-border-radius-medium);
|
|
1469
|
+
font-size: inherit;
|
|
1470
|
+
color: inherit;
|
|
1471
|
+
padding: var(--sl-spacing-x-small);
|
|
1472
|
+
cursor: pointer;
|
|
1473
|
+
transition: var(--sl-transition-x-fast) color;
|
|
1474
|
+
-webkit-appearance: none;
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
.icon-button:hover:not(.icon-button--disabled),
|
|
1478
|
+
.icon-button:focus-visible:not(.icon-button--disabled) {
|
|
1479
|
+
color: var(--sl-color-primary-600);
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
.icon-button:active:not(.icon-button--disabled) {
|
|
1483
|
+
color: var(--sl-color-primary-700);
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1486
|
+
.icon-button:focus {
|
|
1487
|
+
outline: none;
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
.icon-button--disabled {
|
|
1491
|
+
opacity: 0.5;
|
|
1492
|
+
cursor: not-allowed;
|
|
1493
|
+
}
|
|
1494
|
+
|
|
1495
|
+
.icon-button:focus-visible {
|
|
1496
|
+
outline: var(--sl-focus-ring);
|
|
1497
|
+
outline-offset: var(--sl-focus-ring-offset);
|
|
1498
|
+
}
|
|
1499
|
+
|
|
1500
|
+
.icon-button__icon {
|
|
1501
|
+
pointer-events: none;
|
|
1502
|
+
}
|
|
1503
|
+
`;
|
|
1504
|
+
|
|
1505
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.3Y6SB6QS.js
|
|
1506
|
+
var basePath = "";
|
|
1507
|
+
function setBasePath(path) {
|
|
1508
|
+
basePath = path;
|
|
1509
|
+
}
|
|
1510
|
+
function getBasePath(subpath = "") {
|
|
1511
|
+
if (!basePath) {
|
|
1512
|
+
const scripts = [...document.getElementsByTagName("script")];
|
|
1513
|
+
const configScript = scripts.find((script) => script.hasAttribute("data-shoelace"));
|
|
1514
|
+
if (configScript) {
|
|
1515
|
+
setBasePath(configScript.getAttribute("data-shoelace"));
|
|
1516
|
+
} else {
|
|
1517
|
+
const fallbackScript = scripts.find((s3) => {
|
|
1518
|
+
return /shoelace(\.min)?\.js($|\?)/.test(s3.src) || /shoelace-autoloader(\.min)?\.js($|\?)/.test(s3.src);
|
|
1519
|
+
});
|
|
1520
|
+
let path = "";
|
|
1521
|
+
if (fallbackScript) {
|
|
1522
|
+
path = fallbackScript.getAttribute("src");
|
|
1523
|
+
}
|
|
1524
|
+
setBasePath(path.split("/").slice(0, -1).join("/"));
|
|
1525
|
+
}
|
|
1526
|
+
}
|
|
1527
|
+
return basePath.replace(/\/$/, "") + (subpath ? `/${subpath.replace(/^\//, "")}` : ``);
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.P7ZG6EMR.js
|
|
1531
|
+
var library = {
|
|
1532
|
+
name: "default",
|
|
1533
|
+
resolver: (name) => getBasePath(`assets/icons/${name}.svg`)
|
|
1534
|
+
};
|
|
1535
|
+
var library_default_default = library;
|
|
1536
|
+
|
|
1537
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.3TFKS637.js
|
|
1538
|
+
var icons = {
|
|
1539
|
+
caret: `
|
|
1540
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
1541
|
+
<polyline points="6 9 12 15 18 9"></polyline>
|
|
1542
|
+
</svg>
|
|
1543
|
+
`,
|
|
1544
|
+
check: `
|
|
1545
|
+
<svg part="checked-icon" class="checkbox__icon" viewBox="0 0 16 16">
|
|
1546
|
+
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">
|
|
1547
|
+
<g stroke="currentColor">
|
|
1548
|
+
<g transform="translate(3.428571, 3.428571)">
|
|
1549
|
+
<path d="M0,5.71428571 L3.42857143,9.14285714"></path>
|
|
1550
|
+
<path d="M9.14285714,0 L3.42857143,9.14285714"></path>
|
|
1551
|
+
</g>
|
|
1552
|
+
</g>
|
|
1553
|
+
</g>
|
|
1554
|
+
</svg>
|
|
1555
|
+
`,
|
|
1556
|
+
"chevron-down": `
|
|
1557
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-down" viewBox="0 0 16 16">
|
|
1558
|
+
<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"/>
|
|
1559
|
+
</svg>
|
|
1560
|
+
`,
|
|
1561
|
+
"chevron-left": `
|
|
1562
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-left" viewBox="0 0 16 16">
|
|
1563
|
+
<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"/>
|
|
1564
|
+
</svg>
|
|
1565
|
+
`,
|
|
1566
|
+
"chevron-right": `
|
|
1567
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-right" viewBox="0 0 16 16">
|
|
1568
|
+
<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"/>
|
|
1569
|
+
</svg>
|
|
1570
|
+
`,
|
|
1571
|
+
copy: `
|
|
1572
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-copy" viewBox="0 0 16 16">
|
|
1573
|
+
<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"/>
|
|
1574
|
+
</svg>
|
|
1575
|
+
`,
|
|
1576
|
+
eye: `
|
|
1577
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eye" viewBox="0 0 16 16">
|
|
1578
|
+
<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"/>
|
|
1579
|
+
<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"/>
|
|
1580
|
+
</svg>
|
|
1581
|
+
`,
|
|
1582
|
+
"eye-slash": `
|
|
1583
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eye-slash" viewBox="0 0 16 16">
|
|
1584
|
+
<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"/>
|
|
1585
|
+
<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"/>
|
|
1586
|
+
<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"/>
|
|
1587
|
+
</svg>
|
|
1588
|
+
`,
|
|
1589
|
+
eyedropper: `
|
|
1590
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eyedropper" viewBox="0 0 16 16">
|
|
1591
|
+
<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>
|
|
1592
|
+
</svg>
|
|
1593
|
+
`,
|
|
1594
|
+
"grip-vertical": `
|
|
1595
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-grip-vertical" viewBox="0 0 16 16">
|
|
1596
|
+
<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>
|
|
1597
|
+
</svg>
|
|
1598
|
+
`,
|
|
1599
|
+
indeterminate: `
|
|
1600
|
+
<svg part="indeterminate-icon" class="checkbox__icon" viewBox="0 0 16 16">
|
|
1601
|
+
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">
|
|
1602
|
+
<g stroke="currentColor" stroke-width="2">
|
|
1603
|
+
<g transform="translate(2.285714, 6.857143)">
|
|
1604
|
+
<path d="M10.2857143,1.14285714 L1.14285714,1.14285714"></path>
|
|
1605
|
+
</g>
|
|
1606
|
+
</g>
|
|
1607
|
+
</g>
|
|
1608
|
+
</svg>
|
|
1609
|
+
`,
|
|
1610
|
+
"person-fill": `
|
|
1611
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-person-fill" viewBox="0 0 16 16">
|
|
1612
|
+
<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"/>
|
|
1613
|
+
</svg>
|
|
1614
|
+
`,
|
|
1615
|
+
"play-fill": `
|
|
1616
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-play-fill" viewBox="0 0 16 16">
|
|
1617
|
+
<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>
|
|
1618
|
+
</svg>
|
|
1619
|
+
`,
|
|
1620
|
+
"pause-fill": `
|
|
1621
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-pause-fill" viewBox="0 0 16 16">
|
|
1622
|
+
<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>
|
|
1623
|
+
</svg>
|
|
1624
|
+
`,
|
|
1625
|
+
radio: `
|
|
1626
|
+
<svg part="checked-icon" class="radio__icon" viewBox="0 0 16 16">
|
|
1627
|
+
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
1628
|
+
<g fill="currentColor">
|
|
1629
|
+
<circle cx="8" cy="8" r="3.42857143"></circle>
|
|
1630
|
+
</g>
|
|
1631
|
+
</g>
|
|
1632
|
+
</svg>
|
|
1633
|
+
`,
|
|
1634
|
+
"star-fill": `
|
|
1635
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-star-fill" viewBox="0 0 16 16">
|
|
1636
|
+
<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"/>
|
|
1637
|
+
</svg>
|
|
1638
|
+
`,
|
|
1639
|
+
"x-lg": `
|
|
1640
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-lg" viewBox="0 0 16 16">
|
|
1641
|
+
<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"/>
|
|
1642
|
+
</svg>
|
|
1643
|
+
`,
|
|
1644
|
+
"x-circle-fill": `
|
|
1645
|
+
<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">
|
|
1646
|
+
<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>
|
|
1647
|
+
</svg>
|
|
1648
|
+
`
|
|
1649
|
+
};
|
|
1650
|
+
var systemLibrary = {
|
|
1651
|
+
name: "system",
|
|
1652
|
+
resolver: (name) => {
|
|
1653
|
+
if (name in icons) {
|
|
1654
|
+
return `data:image/svg+xml,${encodeURIComponent(icons[name])}`;
|
|
1655
|
+
}
|
|
1656
|
+
return "";
|
|
1657
|
+
}
|
|
1658
|
+
};
|
|
1659
|
+
var library_system_default = systemLibrary;
|
|
1660
|
+
|
|
1661
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.ZL53POKZ.js
|
|
1662
|
+
var registry = [library_default_default, library_system_default];
|
|
1663
|
+
var watchedIcons = [];
|
|
1664
|
+
function watchIcon(icon) {
|
|
1665
|
+
watchedIcons.push(icon);
|
|
1666
|
+
}
|
|
1667
|
+
function unwatchIcon(icon) {
|
|
1668
|
+
watchedIcons = watchedIcons.filter((el) => el !== icon);
|
|
1669
|
+
}
|
|
1670
|
+
function getIconLibrary(name) {
|
|
1671
|
+
return registry.find((lib) => lib.name === name);
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1674
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.QLXRCYS4.js
|
|
1675
|
+
var icon_styles_default = i`
|
|
1676
|
+
:host {
|
|
1677
|
+
display: inline-block;
|
|
1678
|
+
width: 1em;
|
|
1679
|
+
height: 1em;
|
|
1680
|
+
box-sizing: content-box !important;
|
|
1681
|
+
}
|
|
1682
|
+
|
|
1683
|
+
svg {
|
|
1684
|
+
display: block;
|
|
1685
|
+
height: 100%;
|
|
1686
|
+
width: 100%;
|
|
1687
|
+
}
|
|
1688
|
+
`;
|
|
1689
|
+
|
|
1690
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.B3BW2AY6.js
|
|
1691
|
+
var __defProp3 = Object.defineProperty;
|
|
1692
|
+
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
|
1693
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
1694
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1695
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
1696
|
+
var __defNormalProp3 = (obj, key, value) => key in obj ? __defProp3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1697
|
+
var __spreadValues = (a3, b3) => {
|
|
1698
|
+
for (var prop in b3 || (b3 = {}))
|
|
1699
|
+
if (__hasOwnProp.call(b3, prop))
|
|
1700
|
+
__defNormalProp3(a3, prop, b3[prop]);
|
|
1701
|
+
if (__getOwnPropSymbols)
|
|
1702
|
+
for (var prop of __getOwnPropSymbols(b3)) {
|
|
1703
|
+
if (__propIsEnum.call(b3, prop))
|
|
1704
|
+
__defNormalProp3(a3, prop, b3[prop]);
|
|
1705
|
+
}
|
|
1706
|
+
return a3;
|
|
1707
|
+
};
|
|
1708
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
1709
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc3(target, key) : target;
|
|
1710
|
+
for (var i4 = decorators.length - 1, decorator; i4 >= 0; i4--)
|
|
1711
|
+
if (decorator = decorators[i4])
|
|
1712
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
1713
|
+
if (kind && result)
|
|
1714
|
+
__defProp3(target, key, result);
|
|
1715
|
+
return result;
|
|
1716
|
+
};
|
|
1717
|
+
var __accessCheck3 = (obj, member, msg) => {
|
|
1718
|
+
if (!member.has(obj))
|
|
1719
|
+
throw TypeError("Cannot " + msg);
|
|
1720
|
+
};
|
|
1721
|
+
var __privateGet3 = (obj, member, getter) => {
|
|
1722
|
+
__accessCheck3(obj, member, "read from private field");
|
|
1723
|
+
return getter ? getter.call(obj) : member.get(obj);
|
|
1724
|
+
};
|
|
1725
|
+
var __privateAdd3 = (obj, member, value) => {
|
|
1726
|
+
if (member.has(obj))
|
|
1727
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
1728
|
+
member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
1729
|
+
};
|
|
1730
|
+
var __privateSet3 = (obj, member, value, setter) => {
|
|
1731
|
+
__accessCheck3(obj, member, "write to private field");
|
|
1732
|
+
setter ? setter.call(obj, value) : member.set(obj, value);
|
|
1733
|
+
return value;
|
|
1734
|
+
};
|
|
1735
|
+
|
|
1736
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.CCJUT23E.js
|
|
1737
|
+
function watch(propertyName, options) {
|
|
1738
|
+
const resolvedOptions = __spreadValues({
|
|
1739
|
+
waitUntilFirstUpdate: false
|
|
1740
|
+
}, options);
|
|
1741
|
+
return (proto, decoratedFnName) => {
|
|
1742
|
+
const { update } = proto;
|
|
1743
|
+
const watchedProperties = Array.isArray(propertyName) ? propertyName : [propertyName];
|
|
1744
|
+
proto.update = function(changedProps) {
|
|
1745
|
+
watchedProperties.forEach((property) => {
|
|
1746
|
+
const key = property;
|
|
1747
|
+
if (changedProps.has(key)) {
|
|
1748
|
+
const oldValue = changedProps.get(key);
|
|
1749
|
+
const newValue = this[key];
|
|
1750
|
+
if (oldValue !== newValue) {
|
|
1751
|
+
if (!resolvedOptions.waitUntilFirstUpdate || this.hasUpdated) {
|
|
1752
|
+
this[decoratedFnName](oldValue, newValue);
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
});
|
|
1757
|
+
update.call(this, changedProps);
|
|
1758
|
+
};
|
|
1759
|
+
};
|
|
1760
|
+
}
|
|
1761
|
+
|
|
1762
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.TUVJKY7S.js
|
|
1763
|
+
var component_styles_default = i`
|
|
1764
|
+
:host {
|
|
1765
|
+
box-sizing: border-box;
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1768
|
+
:host *,
|
|
1769
|
+
:host *::before,
|
|
1770
|
+
:host *::after {
|
|
1771
|
+
box-sizing: inherit;
|
|
1772
|
+
}
|
|
1773
|
+
|
|
1774
|
+
[hidden] {
|
|
1775
|
+
display: none !important;
|
|
1776
|
+
}
|
|
1777
|
+
`;
|
|
1778
|
+
|
|
1779
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.NLWS5DN7.js
|
|
1780
|
+
var _hasRecordedInitialProperties;
|
|
1781
|
+
var ShoelaceElement = class extends h3 {
|
|
1782
|
+
constructor() {
|
|
1783
|
+
super();
|
|
1784
|
+
__privateAdd3(this, _hasRecordedInitialProperties, false);
|
|
1785
|
+
this.initialReflectedProperties = /* @__PURE__ */ new Map();
|
|
1786
|
+
Object.entries(this.constructor.dependencies).forEach(([name, component]) => {
|
|
1787
|
+
this.constructor.define(name, component);
|
|
1788
|
+
});
|
|
1789
|
+
}
|
|
1790
|
+
emit(name, options) {
|
|
1791
|
+
const event = new CustomEvent(name, __spreadValues({
|
|
1792
|
+
bubbles: true,
|
|
1793
|
+
cancelable: false,
|
|
1794
|
+
composed: true,
|
|
1795
|
+
detail: {}
|
|
1796
|
+
}, options));
|
|
1797
|
+
this.dispatchEvent(event);
|
|
1798
|
+
return event;
|
|
1799
|
+
}
|
|
1800
|
+
/* eslint-enable */
|
|
1801
|
+
static define(name, elementConstructor = this, options = {}) {
|
|
1802
|
+
const currentlyRegisteredConstructor = customElements.get(name);
|
|
1803
|
+
if (!currentlyRegisteredConstructor) {
|
|
1804
|
+
try {
|
|
1805
|
+
customElements.define(name, elementConstructor, options);
|
|
1806
|
+
} catch (_err) {
|
|
1807
|
+
customElements.define(name, class extends elementConstructor {
|
|
1808
|
+
}, options);
|
|
1809
|
+
}
|
|
1810
|
+
return;
|
|
1811
|
+
}
|
|
1812
|
+
let newVersion = " (unknown version)";
|
|
1813
|
+
let existingVersion = newVersion;
|
|
1814
|
+
if ("version" in elementConstructor && elementConstructor.version) {
|
|
1815
|
+
newVersion = " v" + elementConstructor.version;
|
|
1816
|
+
}
|
|
1817
|
+
if ("version" in currentlyRegisteredConstructor && currentlyRegisteredConstructor.version) {
|
|
1818
|
+
existingVersion = " v" + currentlyRegisteredConstructor.version;
|
|
1819
|
+
}
|
|
1820
|
+
if (newVersion && existingVersion && newVersion === existingVersion) {
|
|
1821
|
+
return;
|
|
1822
|
+
}
|
|
1823
|
+
console.warn(
|
|
1824
|
+
`Attempted to register <${name}>${newVersion}, but <${name}>${existingVersion} has already been registered.`
|
|
1825
|
+
);
|
|
1826
|
+
}
|
|
1827
|
+
attributeChangedCallback(name, oldValue, newValue) {
|
|
1828
|
+
if (!__privateGet3(this, _hasRecordedInitialProperties)) {
|
|
1829
|
+
this.constructor.elementProperties.forEach(
|
|
1830
|
+
(obj, prop) => {
|
|
1831
|
+
if (obj.reflect && this[prop] != null) {
|
|
1832
|
+
this.initialReflectedProperties.set(prop, this[prop]);
|
|
1833
|
+
}
|
|
1834
|
+
}
|
|
1835
|
+
);
|
|
1836
|
+
__privateSet3(this, _hasRecordedInitialProperties, true);
|
|
1837
|
+
}
|
|
1838
|
+
super.attributeChangedCallback(name, oldValue, newValue);
|
|
1839
|
+
}
|
|
1840
|
+
willUpdate(changedProperties) {
|
|
1841
|
+
super.willUpdate(changedProperties);
|
|
1842
|
+
this.initialReflectedProperties.forEach((value, prop) => {
|
|
1843
|
+
if (changedProperties.has(prop) && this[prop] == null) {
|
|
1844
|
+
this[prop] = value;
|
|
1845
|
+
}
|
|
1846
|
+
});
|
|
1847
|
+
}
|
|
1848
|
+
};
|
|
1849
|
+
_hasRecordedInitialProperties = /* @__PURE__ */ new WeakMap();
|
|
1850
|
+
ShoelaceElement.version = "2.17.1";
|
|
1851
|
+
ShoelaceElement.dependencies = {};
|
|
1852
|
+
__decorateClass([
|
|
1853
|
+
n5()
|
|
1854
|
+
], ShoelaceElement.prototype, "dir", 2);
|
|
1855
|
+
__decorateClass([
|
|
1856
|
+
n5()
|
|
1857
|
+
], ShoelaceElement.prototype, "lang", 2);
|
|
1858
|
+
|
|
1859
|
+
// ../../node_modules/lit/node_modules/lit-html/directive-helpers.js
|
|
1860
|
+
var { I: et3 } = si;
|
|
1861
|
+
var nt = (o5, t5) => void 0 === t5 ? void 0 !== o5?._$litType$ : o5?._$litType$ === t5;
|
|
1862
|
+
|
|
1863
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.O7VCMB7W.js
|
|
1864
|
+
var CACHEABLE_ERROR = Symbol();
|
|
1865
|
+
var RETRYABLE_ERROR = Symbol();
|
|
1866
|
+
var parser;
|
|
1867
|
+
var iconCache = /* @__PURE__ */ new Map();
|
|
1868
|
+
var SlIcon = class extends ShoelaceElement {
|
|
1869
|
+
constructor() {
|
|
1870
|
+
super(...arguments);
|
|
1871
|
+
this.initialRender = false;
|
|
1872
|
+
this.svg = null;
|
|
1873
|
+
this.label = "";
|
|
1874
|
+
this.library = "default";
|
|
1875
|
+
}
|
|
1876
|
+
/** Given a URL, this function returns the resulting SVG element or an appropriate error symbol. */
|
|
1877
|
+
async resolveIcon(url, library2) {
|
|
1878
|
+
var _a3;
|
|
1879
|
+
let fileData;
|
|
1880
|
+
if (library2 == null ? void 0 : library2.spriteSheet) {
|
|
1881
|
+
this.svg = ke`<svg part="svg">
|
|
1882
|
+
<use part="use" href="${url}"></use>
|
|
1883
|
+
</svg>`;
|
|
1884
|
+
return this.svg;
|
|
1885
|
+
}
|
|
1886
|
+
try {
|
|
1887
|
+
fileData = await fetch(url, { mode: "cors" });
|
|
1888
|
+
if (!fileData.ok)
|
|
1889
|
+
return fileData.status === 410 ? CACHEABLE_ERROR : RETRYABLE_ERROR;
|
|
1890
|
+
} catch (e7) {
|
|
1891
|
+
return RETRYABLE_ERROR;
|
|
1892
|
+
}
|
|
1893
|
+
try {
|
|
1894
|
+
const div = document.createElement("div");
|
|
1895
|
+
div.innerHTML = await fileData.text();
|
|
1896
|
+
const svg = div.firstElementChild;
|
|
1897
|
+
if (((_a3 = svg == null ? void 0 : svg.tagName) == null ? void 0 : _a3.toLowerCase()) !== "svg")
|
|
1898
|
+
return CACHEABLE_ERROR;
|
|
1899
|
+
if (!parser)
|
|
1900
|
+
parser = new DOMParser();
|
|
1901
|
+
const doc = parser.parseFromString(svg.outerHTML, "text/html");
|
|
1902
|
+
const svgEl = doc.body.querySelector("svg");
|
|
1903
|
+
if (!svgEl)
|
|
1904
|
+
return CACHEABLE_ERROR;
|
|
1905
|
+
svgEl.part.add("svg");
|
|
1906
|
+
return document.adoptNode(svgEl);
|
|
1907
|
+
} catch (e7) {
|
|
1908
|
+
return CACHEABLE_ERROR;
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1911
|
+
connectedCallback() {
|
|
1912
|
+
super.connectedCallback();
|
|
1913
|
+
watchIcon(this);
|
|
1914
|
+
}
|
|
1915
|
+
firstUpdated() {
|
|
1916
|
+
this.initialRender = true;
|
|
1917
|
+
this.setIcon();
|
|
1918
|
+
}
|
|
1919
|
+
disconnectedCallback() {
|
|
1920
|
+
super.disconnectedCallback();
|
|
1921
|
+
unwatchIcon(this);
|
|
1922
|
+
}
|
|
1923
|
+
getIconSource() {
|
|
1924
|
+
const library2 = getIconLibrary(this.library);
|
|
1925
|
+
if (this.name && library2) {
|
|
1926
|
+
return {
|
|
1927
|
+
url: library2.resolver(this.name),
|
|
1928
|
+
fromLibrary: true
|
|
1929
|
+
};
|
|
1930
|
+
}
|
|
1931
|
+
return {
|
|
1932
|
+
url: this.src,
|
|
1933
|
+
fromLibrary: false
|
|
1934
|
+
};
|
|
1935
|
+
}
|
|
1936
|
+
handleLabelChange() {
|
|
1937
|
+
const hasLabel = typeof this.label === "string" && this.label.length > 0;
|
|
1938
|
+
if (hasLabel) {
|
|
1939
|
+
this.setAttribute("role", "img");
|
|
1940
|
+
this.setAttribute("aria-label", this.label);
|
|
1941
|
+
this.removeAttribute("aria-hidden");
|
|
1942
|
+
} else {
|
|
1943
|
+
this.removeAttribute("role");
|
|
1944
|
+
this.removeAttribute("aria-label");
|
|
1945
|
+
this.setAttribute("aria-hidden", "true");
|
|
1946
|
+
}
|
|
1947
|
+
}
|
|
1948
|
+
async setIcon() {
|
|
1949
|
+
var _a3;
|
|
1950
|
+
const { url, fromLibrary } = this.getIconSource();
|
|
1951
|
+
const library2 = fromLibrary ? getIconLibrary(this.library) : void 0;
|
|
1952
|
+
if (!url) {
|
|
1953
|
+
this.svg = null;
|
|
1954
|
+
return;
|
|
1955
|
+
}
|
|
1956
|
+
let iconResolver = iconCache.get(url);
|
|
1957
|
+
if (!iconResolver) {
|
|
1958
|
+
iconResolver = this.resolveIcon(url, library2);
|
|
1959
|
+
iconCache.set(url, iconResolver);
|
|
1960
|
+
}
|
|
1961
|
+
if (!this.initialRender) {
|
|
1962
|
+
return;
|
|
1963
|
+
}
|
|
1964
|
+
const svg = await iconResolver;
|
|
1965
|
+
if (svg === RETRYABLE_ERROR) {
|
|
1966
|
+
iconCache.delete(url);
|
|
1967
|
+
}
|
|
1968
|
+
if (url !== this.getIconSource().url) {
|
|
1969
|
+
return;
|
|
1970
|
+
}
|
|
1971
|
+
if (nt(svg)) {
|
|
1972
|
+
this.svg = svg;
|
|
1973
|
+
if (library2) {
|
|
1974
|
+
await this.updateComplete;
|
|
1975
|
+
const shadowSVG = this.shadowRoot.querySelector("[part='svg']");
|
|
1976
|
+
if (typeof library2.mutator === "function" && shadowSVG) {
|
|
1977
|
+
library2.mutator(shadowSVG);
|
|
1978
|
+
}
|
|
1979
|
+
}
|
|
1980
|
+
return;
|
|
1981
|
+
}
|
|
1982
|
+
switch (svg) {
|
|
1983
|
+
case RETRYABLE_ERROR:
|
|
1984
|
+
case CACHEABLE_ERROR:
|
|
1985
|
+
this.svg = null;
|
|
1986
|
+
this.emit("sl-error");
|
|
1987
|
+
break;
|
|
1988
|
+
default:
|
|
1989
|
+
this.svg = svg.cloneNode(true);
|
|
1990
|
+
(_a3 = library2 == null ? void 0 : library2.mutator) == null ? void 0 : _a3.call(library2, this.svg);
|
|
1991
|
+
this.emit("sl-load");
|
|
1992
|
+
}
|
|
1993
|
+
}
|
|
1994
|
+
render() {
|
|
1995
|
+
return this.svg;
|
|
1996
|
+
}
|
|
1997
|
+
};
|
|
1998
|
+
SlIcon.styles = [component_styles_default, icon_styles_default];
|
|
1999
|
+
__decorateClass([
|
|
2000
|
+
r5()
|
|
2001
|
+
], SlIcon.prototype, "svg", 2);
|
|
2002
|
+
__decorateClass([
|
|
2003
|
+
n5({ reflect: true })
|
|
2004
|
+
], SlIcon.prototype, "name", 2);
|
|
2005
|
+
__decorateClass([
|
|
2006
|
+
n5()
|
|
2007
|
+
], SlIcon.prototype, "src", 2);
|
|
2008
|
+
__decorateClass([
|
|
2009
|
+
n5()
|
|
2010
|
+
], SlIcon.prototype, "label", 2);
|
|
2011
|
+
__decorateClass([
|
|
2012
|
+
n5({ reflect: true })
|
|
2013
|
+
], SlIcon.prototype, "library", 2);
|
|
2014
|
+
__decorateClass([
|
|
2015
|
+
watch("label")
|
|
2016
|
+
], SlIcon.prototype, "handleLabelChange", 1);
|
|
2017
|
+
__decorateClass([
|
|
2018
|
+
watch(["name", "src", "library"])
|
|
2019
|
+
], SlIcon.prototype, "setIcon", 1);
|
|
2020
|
+
|
|
2021
|
+
// ../../node_modules/lit/node_modules/lit-html/directives/class-map.js
|
|
2022
|
+
var Rt = e3(class extends i3 {
|
|
2023
|
+
constructor(s3) {
|
|
2024
|
+
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.");
|
|
2025
|
+
}
|
|
2026
|
+
render(t5) {
|
|
2027
|
+
return " " + Object.keys(t5).filter((s3) => t5[s3]).join(" ") + " ";
|
|
2028
|
+
}
|
|
2029
|
+
update(t5, [s3]) {
|
|
2030
|
+
if (void 0 === this.st) {
|
|
2031
|
+
this.st = /* @__PURE__ */ new Set(), void 0 !== t5.strings && (this.nt = new Set(t5.strings.join(" ").split(/\s/).filter((t6) => "" !== t6)));
|
|
2032
|
+
for (const t6 in s3) s3[t6] && !this.nt?.has(t6) && this.st.add(t6);
|
|
2033
|
+
return this.render(s3);
|
|
2034
|
+
}
|
|
2035
|
+
const i4 = t5.element.classList;
|
|
2036
|
+
for (const t6 of this.st) t6 in s3 || (i4.remove(t6), this.st.delete(t6));
|
|
2037
|
+
for (const t6 in s3) {
|
|
2038
|
+
const r6 = !!s3[t6];
|
|
2039
|
+
r6 === this.st.has(t6) || this.nt?.has(t6) || (r6 ? (i4.add(t6), this.st.add(t6)) : (i4.remove(t6), this.st.delete(t6)));
|
|
2040
|
+
}
|
|
2041
|
+
return R;
|
|
2042
|
+
}
|
|
2043
|
+
});
|
|
2044
|
+
|
|
2045
|
+
// ../../node_modules/lit/node_modules/lit-html/static.js
|
|
2046
|
+
var $e = Symbol.for("");
|
|
2047
|
+
var xe = (t5) => {
|
|
2048
|
+
if (t5?.r === $e) return t5?._$litStatic$;
|
|
2049
|
+
};
|
|
2050
|
+
var er = (t5, ...r6) => ({ _$litStatic$: r6.reduce((r7, e7, a3) => r7 + ((t6) => {
|
|
2051
|
+
if (void 0 !== t6._$litStatic$) return t6._$litStatic$;
|
|
2052
|
+
throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t6}. Use 'unsafeStatic' to pass non-literal values, but
|
|
2053
|
+
take care to ensure page security.`);
|
|
2054
|
+
})(e7) + t5[a3 + 1], t5[0]), r: $e });
|
|
2055
|
+
var Te = /* @__PURE__ */ new Map();
|
|
2056
|
+
var Ee = (t5) => (r6, ...e7) => {
|
|
2057
|
+
const a3 = e7.length;
|
|
2058
|
+
let o5, s3;
|
|
2059
|
+
const i4 = [], l3 = [];
|
|
2060
|
+
let n6, u3 = 0, c5 = false;
|
|
2061
|
+
for (; u3 < a3; ) {
|
|
2062
|
+
for (n6 = r6[u3]; u3 < a3 && void 0 !== (s3 = e7[u3], o5 = xe(s3)); ) n6 += o5 + r6[++u3], c5 = true;
|
|
2063
|
+
u3 !== a3 && l3.push(s3), i4.push(n6), u3++;
|
|
2064
|
+
}
|
|
2065
|
+
if (u3 === a3 && i4.push(r6[a3]), c5) {
|
|
2066
|
+
const t6 = i4.join("$$lit$$");
|
|
2067
|
+
void 0 === (r6 = Te.get(t6)) && (i4.raw = i4, Te.set(t6, r6 = i4)), e7 = l3;
|
|
2068
|
+
}
|
|
2069
|
+
return t5(r6, ...e7);
|
|
2070
|
+
};
|
|
2071
|
+
var ke3 = Ee(ke);
|
|
2072
|
+
var Oe3 = Ee(Oe);
|
|
2073
|
+
var Se3 = Ee(Se);
|
|
2074
|
+
|
|
2075
|
+
// ../../node_modules/lit/node_modules/lit-html/directives/if-defined.js
|
|
2076
|
+
var to = (t5) => t5 ?? D;
|
|
2077
|
+
|
|
2078
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.AYP3HPB7.js
|
|
2079
|
+
var SlIconButton = class extends ShoelaceElement {
|
|
2080
|
+
constructor() {
|
|
2081
|
+
super(...arguments);
|
|
2082
|
+
this.hasFocus = false;
|
|
2083
|
+
this.label = "";
|
|
2084
|
+
this.disabled = false;
|
|
2085
|
+
}
|
|
2086
|
+
handleBlur() {
|
|
2087
|
+
this.hasFocus = false;
|
|
2088
|
+
this.emit("sl-blur");
|
|
2089
|
+
}
|
|
2090
|
+
handleFocus() {
|
|
2091
|
+
this.hasFocus = true;
|
|
2092
|
+
this.emit("sl-focus");
|
|
2093
|
+
}
|
|
2094
|
+
handleClick(event) {
|
|
2095
|
+
if (this.disabled) {
|
|
2096
|
+
event.preventDefault();
|
|
2097
|
+
event.stopPropagation();
|
|
2098
|
+
}
|
|
2099
|
+
}
|
|
2100
|
+
/** Simulates a click on the icon button. */
|
|
2101
|
+
click() {
|
|
2102
|
+
this.button.click();
|
|
2103
|
+
}
|
|
2104
|
+
/** Sets focus on the icon button. */
|
|
2105
|
+
focus(options) {
|
|
2106
|
+
this.button.focus(options);
|
|
2107
|
+
}
|
|
2108
|
+
/** Removes focus from the icon button. */
|
|
2109
|
+
blur() {
|
|
2110
|
+
this.button.blur();
|
|
2111
|
+
}
|
|
2112
|
+
render() {
|
|
2113
|
+
const isLink = this.href ? true : false;
|
|
2114
|
+
const tag = isLink ? er`a` : er`button`;
|
|
2115
|
+
return ke3`
|
|
2116
|
+
<${tag}
|
|
2117
|
+
part="base"
|
|
2118
|
+
class=${Rt({
|
|
2119
|
+
"icon-button": true,
|
|
2120
|
+
"icon-button--disabled": !isLink && this.disabled,
|
|
2121
|
+
"icon-button--focused": this.hasFocus
|
|
2122
|
+
})}
|
|
2123
|
+
?disabled=${to(isLink ? void 0 : this.disabled)}
|
|
2124
|
+
type=${to(isLink ? void 0 : "button")}
|
|
2125
|
+
href=${to(isLink ? this.href : void 0)}
|
|
2126
|
+
target=${to(isLink ? this.target : void 0)}
|
|
2127
|
+
download=${to(isLink ? this.download : void 0)}
|
|
2128
|
+
rel=${to(isLink && this.target ? "noreferrer noopener" : void 0)}
|
|
2129
|
+
role=${to(isLink ? void 0 : "button")}
|
|
2130
|
+
aria-disabled=${this.disabled ? "true" : "false"}
|
|
2131
|
+
aria-label="${this.label}"
|
|
2132
|
+
tabindex=${this.disabled ? "-1" : "0"}
|
|
2133
|
+
@blur=${this.handleBlur}
|
|
2134
|
+
@focus=${this.handleFocus}
|
|
2135
|
+
@click=${this.handleClick}
|
|
2136
|
+
>
|
|
2137
|
+
<sl-icon
|
|
2138
|
+
class="icon-button__icon"
|
|
2139
|
+
name=${to(this.name)}
|
|
2140
|
+
library=${to(this.library)}
|
|
2141
|
+
src=${to(this.src)}
|
|
2142
|
+
aria-hidden="true"
|
|
2143
|
+
></sl-icon>
|
|
2144
|
+
</${tag}>
|
|
2145
|
+
`;
|
|
2146
|
+
}
|
|
2147
|
+
};
|
|
2148
|
+
SlIconButton.styles = [component_styles_default, icon_button_styles_default];
|
|
2149
|
+
SlIconButton.dependencies = { "sl-icon": SlIcon };
|
|
2150
|
+
__decorateClass([
|
|
2151
|
+
e6(".icon-button")
|
|
2152
|
+
], SlIconButton.prototype, "button", 2);
|
|
2153
|
+
__decorateClass([
|
|
2154
|
+
r5()
|
|
2155
|
+
], SlIconButton.prototype, "hasFocus", 2);
|
|
2156
|
+
__decorateClass([
|
|
2157
|
+
n5()
|
|
2158
|
+
], SlIconButton.prototype, "name", 2);
|
|
2159
|
+
__decorateClass([
|
|
2160
|
+
n5()
|
|
2161
|
+
], SlIconButton.prototype, "library", 2);
|
|
2162
|
+
__decorateClass([
|
|
2163
|
+
n5()
|
|
2164
|
+
], SlIconButton.prototype, "src", 2);
|
|
2165
|
+
__decorateClass([
|
|
2166
|
+
n5()
|
|
2167
|
+
], SlIconButton.prototype, "href", 2);
|
|
2168
|
+
__decorateClass([
|
|
2169
|
+
n5()
|
|
2170
|
+
], SlIconButton.prototype, "target", 2);
|
|
2171
|
+
__decorateClass([
|
|
2172
|
+
n5()
|
|
2173
|
+
], SlIconButton.prototype, "download", 2);
|
|
2174
|
+
__decorateClass([
|
|
2175
|
+
n5()
|
|
2176
|
+
], SlIconButton.prototype, "label", 2);
|
|
2177
|
+
__decorateClass([
|
|
2178
|
+
n5({ type: Boolean, reflect: true })
|
|
2179
|
+
], SlIconButton.prototype, "disabled", 2);
|
|
57
2180
|
|
|
58
2181
|
// ../../node_modules/bootstrap-icons/icons/arrow-up.svg
|
|
59
2182
|
var arrow_up_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-up" viewBox="0 0 16 16">%0A <path fill-rule="evenodd" d="M8 15a.5.5 0 0 0 .5-.5V2.707l3.146 3.147a.5.5 0 0 0 .708-.708l-4-4a.5.5 0 0 0-.708 0l-4 4a.5.5 0 1 0 .708.708L7.5 2.707V14.5a.5.5 0 0 0 .5.5"/>%0A</svg>';
|
|
@@ -62,69 +2185,69 @@ var arrow_up_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/sv
|
|
|
62
2185
|
var arrow_down_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-down" viewBox="0 0 16 16">%0A <path fill-rule="evenodd" d="M8 1a.5.5 0 0 1 .5.5v11.793l3.146-3.147a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L7.5 13.293V1.5A.5.5 0 0 1 8 1"/>%0A</svg>';
|
|
63
2186
|
|
|
64
2187
|
// src/widgets/webwriter-order-item.ts
|
|
65
|
-
var _contentSlotEl_dec, _baseEl_dec, _hideOrderButtons_dec, _validOrder_dec, _layout_dec, _dropPreview_dec, _draggable_dec,
|
|
66
|
-
_WebwriterOrderItem_decorators = [
|
|
67
|
-
var _WebwriterOrderItem = class _WebwriterOrderItem extends (
|
|
2188
|
+
var _contentSlotEl_dec, _baseEl_dec, _hideOrderButtons_dec, _validOrder_dec, _layout_dec, _dropPreview_dec, _draggable_dec, _a2, _WebwriterOrderItem_decorators, _init2, _draggable, _dropPreview, _layout, _validOrder, _hideOrderButtons, _baseEl, _contentSlotEl;
|
|
2189
|
+
_WebwriterOrderItem_decorators = [t4("webwriter-order-item")];
|
|
2190
|
+
var _WebwriterOrderItem = class _WebwriterOrderItem extends (_a2 = LitElementWw, _draggable_dec = [n5({ attribute: true, reflect: true, converter: { toAttribute: (v3) => v3 ? "true" : "false", fromAttribute: (attr) => attr === "true" } })], _dropPreview_dec = [n5({ type: String, attribute: true, reflect: true })], _layout_dec = [n5({ type: String, attribute: true, reflect: true })], _validOrder_dec = [n5({ type: Number, attribute: false })], _hideOrderButtons_dec = [n5({ type: Boolean, attribute: true, reflect: true })], _baseEl_dec = [e6("[part=base]")], _contentSlotEl_dec = [e6("#content")], _a2) {
|
|
68
2191
|
constructor() {
|
|
69
2192
|
super(...arguments);
|
|
70
|
-
__privateAdd(this, _draggable, __runInitializers(
|
|
2193
|
+
__privateAdd(this, _draggable, __runInitializers(_init2, 8, this, true)), __runInitializers(_init2, 11, this);
|
|
71
2194
|
__publicField(this, "msg", (str) => this.lang in _WebwriterOrderItem.localization ? _WebwriterOrderItem.localization[this.lang][str] ?? str : str);
|
|
72
2195
|
__publicField(this, "emitClearDropPreview", () => {
|
|
73
2196
|
this.dispatchEvent(new CustomEvent("webwriter-clear-drop-preview", { bubbles: true }));
|
|
74
2197
|
});
|
|
75
|
-
__privateAdd(this, _dropPreview, __runInitializers(
|
|
76
|
-
__privateAdd(this, _layout, __runInitializers(
|
|
77
|
-
__privateAdd(this, _validOrder, __runInitializers(
|
|
78
|
-
__privateAdd(this, _hideOrderButtons, __runInitializers(
|
|
79
|
-
__publicField(this, "handleClick", (
|
|
80
|
-
if (
|
|
2198
|
+
__privateAdd(this, _dropPreview, __runInitializers(_init2, 12, this)), __runInitializers(_init2, 15, this);
|
|
2199
|
+
__privateAdd(this, _layout, __runInitializers(_init2, 16, this, "list")), __runInitializers(_init2, 19, this);
|
|
2200
|
+
__privateAdd(this, _validOrder, __runInitializers(_init2, 20, this)), __runInitializers(_init2, 23, this);
|
|
2201
|
+
__privateAdd(this, _hideOrderButtons, __runInitializers(_init2, 24, this, false)), __runInitializers(_init2, 27, this);
|
|
2202
|
+
__publicField(this, "handleClick", (e7, up = false) => {
|
|
2203
|
+
if (e7.target.id === "up") {
|
|
81
2204
|
this.dispatchEvent(new CustomEvent("ww-moveup", { bubbles: true }));
|
|
82
2205
|
} else {
|
|
83
2206
|
this.dispatchEvent(new CustomEvent("ww-movedown", { bubbles: true }));
|
|
84
2207
|
}
|
|
85
|
-
|
|
2208
|
+
e7.stopPropagation();
|
|
86
2209
|
});
|
|
87
|
-
__privateAdd(this, _baseEl, __runInitializers(
|
|
88
|
-
__privateAdd(this, _contentSlotEl, __runInitializers(
|
|
2210
|
+
__privateAdd(this, _baseEl, __runInitializers(_init2, 28, this)), __runInitializers(_init2, 31, this);
|
|
2211
|
+
__privateAdd(this, _contentSlotEl, __runInitializers(_init2, 32, this)), __runInitializers(_init2, 35, this);
|
|
89
2212
|
__publicField(this, "observer");
|
|
90
2213
|
}
|
|
91
2214
|
get elementIndex() {
|
|
92
2215
|
return Array.from(this.parentElement?.children ?? []).indexOf(this);
|
|
93
2216
|
}
|
|
94
|
-
getSibling(
|
|
95
|
-
return this.parentElement.children.item(
|
|
2217
|
+
getSibling(i4) {
|
|
2218
|
+
return this.parentElement.children.item(i4);
|
|
96
2219
|
}
|
|
97
2220
|
connectedCallback() {
|
|
98
2221
|
super.connectedCallback();
|
|
99
2222
|
this.dropPreview = void 0;
|
|
100
|
-
this.addEventListener("dragstart", (
|
|
2223
|
+
this.addEventListener("dragstart", (e7) => {
|
|
101
2224
|
this.dropPreview = void 0;
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
2225
|
+
e7.dataTransfer.setData("text/html", this.outerHTML);
|
|
2226
|
+
e7.dataTransfer.setData("text/plain", this.id);
|
|
2227
|
+
e7.stopPropagation();
|
|
105
2228
|
});
|
|
106
|
-
this.addEventListener("drop", (
|
|
107
|
-
|
|
108
|
-
const id =
|
|
109
|
-
const inTopHalf =
|
|
110
|
-
const inLeftHalf =
|
|
2229
|
+
this.addEventListener("drop", (e7) => {
|
|
2230
|
+
e7.stopPropagation();
|
|
2231
|
+
const id = e7.dataTransfer.getData("text/plain");
|
|
2232
|
+
const inTopHalf = e7.offsetY < this.offsetHeight / 2;
|
|
2233
|
+
const inLeftHalf = e7.offsetX < this.offsetWidth / 2;
|
|
111
2234
|
const el = document.querySelector(`webwriter-order-item#${id}`);
|
|
112
2235
|
const offset = (this.layout === "tiles" ? inLeftHalf : inTopHalf) ? 0 : 1;
|
|
113
2236
|
el.dispatchEvent(new CustomEvent("ww-moveto", { bubbles: true, detail: { i: this.elementIndex + offset } }));
|
|
114
2237
|
}, { passive: true });
|
|
115
|
-
this.addEventListener("dragover", (
|
|
116
|
-
const inTopHalf =
|
|
117
|
-
const inLeftHalf =
|
|
2238
|
+
this.addEventListener("dragover", (e7) => {
|
|
2239
|
+
const inTopHalf = e7.offsetY < this.offsetHeight / 2;
|
|
2240
|
+
const inLeftHalf = e7.offsetX < this.offsetWidth / 2;
|
|
118
2241
|
if (this.layout === "tiles") {
|
|
119
2242
|
this.dropPreview = inLeftHalf ? "left" : "right";
|
|
120
2243
|
} else {
|
|
121
2244
|
this.dropPreview = inTopHalf ? "top" : "bottom";
|
|
122
2245
|
}
|
|
123
|
-
|
|
124
|
-
|
|
2246
|
+
e7.preventDefault();
|
|
2247
|
+
e7.stopImmediatePropagation();
|
|
125
2248
|
});
|
|
126
2249
|
this.addEventListener("dragleave", () => this.emitClearDropPreview(), { passive: true });
|
|
127
|
-
document.addEventListener("dragend", (
|
|
2250
|
+
document.addEventListener("dragend", (e7) => {
|
|
128
2251
|
this.emitClearDropPreview();
|
|
129
2252
|
}, { passive: true });
|
|
130
2253
|
}
|
|
@@ -175,11 +2298,11 @@ var _WebwriterOrderItem = class _WebwriterOrderItem extends (_a = LitElementWw,
|
|
|
175
2298
|
return this.elementIndex === this.validOrder;
|
|
176
2299
|
}
|
|
177
2300
|
render() {
|
|
178
|
-
const solution = this.validOrder !== void 0 ?
|
|
179
|
-
return
|
|
2301
|
+
const solution = this.validOrder !== void 0 ? ke`<span class="solution" ?data-valid=${this.elementIndex === this.validOrder}>${this.validOrder + 1}</span>` : null;
|
|
2302
|
+
return ke`<ol part="base" start=${this.elementIndex + 1}>
|
|
180
2303
|
${this.layout === "list" ? solution : null}
|
|
181
2304
|
<li id="main-li">
|
|
182
|
-
<slot id="content" style=${
|
|
2305
|
+
<slot id="content" style=${se({ "--ww-placeholder": `"${this.msg("Option")}"`, "--offset": `${this.contentSlotEl?.offsetLeft + 1}px` })}></slot>
|
|
183
2306
|
</li>
|
|
184
2307
|
<div id="order-buttons" part="order-buttons" draggable="false">
|
|
185
2308
|
<sl-icon-button ?disabled=${!this.previousElementSibling} id="up" class="order-button user-only" src=${arrow_up_default} @click=${this.handleClick} @mouseup=${() => this.draggable = true}></sl-icon-button>
|
|
@@ -193,7 +2316,7 @@ var _WebwriterOrderItem = class _WebwriterOrderItem extends (_a = LitElementWw,
|
|
|
193
2316
|
<div id="handle"></div>`;
|
|
194
2317
|
}
|
|
195
2318
|
};
|
|
196
|
-
|
|
2319
|
+
_init2 = __decoratorStart(_a2);
|
|
197
2320
|
_draggable = new WeakMap();
|
|
198
2321
|
_dropPreview = new WeakMap();
|
|
199
2322
|
_layout = new WeakMap();
|
|
@@ -201,19 +2324,19 @@ _validOrder = new WeakMap();
|
|
|
201
2324
|
_hideOrderButtons = new WeakMap();
|
|
202
2325
|
_baseEl = new WeakMap();
|
|
203
2326
|
_contentSlotEl = new WeakMap();
|
|
204
|
-
__decorateElement(
|
|
205
|
-
__decorateElement(
|
|
206
|
-
__decorateElement(
|
|
207
|
-
__decorateElement(
|
|
208
|
-
__decorateElement(
|
|
209
|
-
__decorateElement(
|
|
210
|
-
__decorateElement(
|
|
211
|
-
_WebwriterOrderItem = __decorateElement(
|
|
2327
|
+
__decorateElement(_init2, 4, "draggable", _draggable_dec, _WebwriterOrderItem, _draggable);
|
|
2328
|
+
__decorateElement(_init2, 4, "dropPreview", _dropPreview_dec, _WebwriterOrderItem, _dropPreview);
|
|
2329
|
+
__decorateElement(_init2, 4, "layout", _layout_dec, _WebwriterOrderItem, _layout);
|
|
2330
|
+
__decorateElement(_init2, 4, "validOrder", _validOrder_dec, _WebwriterOrderItem, _validOrder);
|
|
2331
|
+
__decorateElement(_init2, 4, "hideOrderButtons", _hideOrderButtons_dec, _WebwriterOrderItem, _hideOrderButtons);
|
|
2332
|
+
__decorateElement(_init2, 4, "baseEl", _baseEl_dec, _WebwriterOrderItem, _baseEl);
|
|
2333
|
+
__decorateElement(_init2, 4, "contentSlotEl", _contentSlotEl_dec, _WebwriterOrderItem, _contentSlotEl);
|
|
2334
|
+
_WebwriterOrderItem = __decorateElement(_init2, 0, "WebwriterOrderItem", _WebwriterOrderItem_decorators, _WebwriterOrderItem);
|
|
212
2335
|
__publicField(_WebwriterOrderItem, "localization", {});
|
|
213
2336
|
__publicField(_WebwriterOrderItem, "scopedElements", {
|
|
214
2337
|
"sl-icon-button": SlIconButton
|
|
215
2338
|
});
|
|
216
|
-
__publicField(_WebwriterOrderItem, "styles",
|
|
2339
|
+
__publicField(_WebwriterOrderItem, "styles", i`
|
|
217
2340
|
|
|
218
2341
|
:host {
|
|
219
2342
|
position: relative;
|
|
@@ -457,8 +2580,264 @@ __publicField(_WebwriterOrderItem, "styles", css`
|
|
|
457
2580
|
|
|
458
2581
|
}
|
|
459
2582
|
`);
|
|
460
|
-
__runInitializers(
|
|
2583
|
+
__runInitializers(_init2, 1, _WebwriterOrderItem);
|
|
461
2584
|
var WebwriterOrderItem = _WebwriterOrderItem;
|
|
462
2585
|
export {
|
|
463
2586
|
WebwriterOrderItem
|
|
464
2587
|
};
|
|
2588
|
+
/*! Bundled license information:
|
|
2589
|
+
|
|
2590
|
+
@lit/reactive-element/css-tag.js:
|
|
2591
|
+
(**
|
|
2592
|
+
* @license
|
|
2593
|
+
* Copyright 2019 Google LLC
|
|
2594
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2595
|
+
*)
|
|
2596
|
+
|
|
2597
|
+
@lit/reactive-element/reactive-element.js:
|
|
2598
|
+
(**
|
|
2599
|
+
* @license
|
|
2600
|
+
* Copyright 2017 Google LLC
|
|
2601
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2602
|
+
*)
|
|
2603
|
+
|
|
2604
|
+
lit-html/lit-html.js:
|
|
2605
|
+
(**
|
|
2606
|
+
* @license
|
|
2607
|
+
* Copyright 2017 Google LLC
|
|
2608
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2609
|
+
*)
|
|
2610
|
+
|
|
2611
|
+
lit-element/lit-element.js:
|
|
2612
|
+
(**
|
|
2613
|
+
* @license
|
|
2614
|
+
* Copyright 2017 Google LLC
|
|
2615
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2616
|
+
*)
|
|
2617
|
+
|
|
2618
|
+
lit-html/is-server.js:
|
|
2619
|
+
(**
|
|
2620
|
+
* @license
|
|
2621
|
+
* Copyright 2022 Google LLC
|
|
2622
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2623
|
+
*)
|
|
2624
|
+
|
|
2625
|
+
@lit/reactive-element/decorators/custom-element.js:
|
|
2626
|
+
(**
|
|
2627
|
+
* @license
|
|
2628
|
+
* Copyright 2017 Google LLC
|
|
2629
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2630
|
+
*)
|
|
2631
|
+
|
|
2632
|
+
@lit/reactive-element/decorators/property.js:
|
|
2633
|
+
(**
|
|
2634
|
+
* @license
|
|
2635
|
+
* Copyright 2017 Google LLC
|
|
2636
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2637
|
+
*)
|
|
2638
|
+
|
|
2639
|
+
@lit/reactive-element/decorators/state.js:
|
|
2640
|
+
(**
|
|
2641
|
+
* @license
|
|
2642
|
+
* Copyright 2017 Google LLC
|
|
2643
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2644
|
+
*)
|
|
2645
|
+
|
|
2646
|
+
@lit/reactive-element/decorators/event-options.js:
|
|
2647
|
+
(**
|
|
2648
|
+
* @license
|
|
2649
|
+
* Copyright 2017 Google LLC
|
|
2650
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2651
|
+
*)
|
|
2652
|
+
|
|
2653
|
+
@lit/reactive-element/decorators/base.js:
|
|
2654
|
+
(**
|
|
2655
|
+
* @license
|
|
2656
|
+
* Copyright 2017 Google LLC
|
|
2657
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2658
|
+
*)
|
|
2659
|
+
|
|
2660
|
+
@lit/reactive-element/decorators/query.js:
|
|
2661
|
+
(**
|
|
2662
|
+
* @license
|
|
2663
|
+
* Copyright 2017 Google LLC
|
|
2664
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2665
|
+
*)
|
|
2666
|
+
|
|
2667
|
+
@lit/reactive-element/decorators/query-all.js:
|
|
2668
|
+
(**
|
|
2669
|
+
* @license
|
|
2670
|
+
* Copyright 2017 Google LLC
|
|
2671
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2672
|
+
*)
|
|
2673
|
+
|
|
2674
|
+
@lit/reactive-element/decorators/query-async.js:
|
|
2675
|
+
(**
|
|
2676
|
+
* @license
|
|
2677
|
+
* Copyright 2017 Google LLC
|
|
2678
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2679
|
+
*)
|
|
2680
|
+
|
|
2681
|
+
@lit/reactive-element/decorators/query-assigned-elements.js:
|
|
2682
|
+
(**
|
|
2683
|
+
* @license
|
|
2684
|
+
* Copyright 2021 Google LLC
|
|
2685
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2686
|
+
*)
|
|
2687
|
+
|
|
2688
|
+
@lit/reactive-element/decorators/query-assigned-nodes.js:
|
|
2689
|
+
(**
|
|
2690
|
+
* @license
|
|
2691
|
+
* Copyright 2017 Google LLC
|
|
2692
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2693
|
+
*)
|
|
2694
|
+
*/
|
|
2695
|
+
/*! Bundled license information:
|
|
2696
|
+
|
|
2697
|
+
@lit/reactive-element/css-tag.js:
|
|
2698
|
+
(**
|
|
2699
|
+
* @license
|
|
2700
|
+
* Copyright 2019 Google LLC
|
|
2701
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2702
|
+
*)
|
|
2703
|
+
|
|
2704
|
+
@lit/reactive-element/reactive-element.js:
|
|
2705
|
+
(**
|
|
2706
|
+
* @license
|
|
2707
|
+
* Copyright 2017 Google LLC
|
|
2708
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2709
|
+
*)
|
|
2710
|
+
|
|
2711
|
+
lit-html/lit-html.js:
|
|
2712
|
+
(**
|
|
2713
|
+
* @license
|
|
2714
|
+
* Copyright 2017 Google LLC
|
|
2715
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2716
|
+
*)
|
|
2717
|
+
|
|
2718
|
+
lit-element/lit-element.js:
|
|
2719
|
+
(**
|
|
2720
|
+
* @license
|
|
2721
|
+
* Copyright 2017 Google LLC
|
|
2722
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2723
|
+
*)
|
|
2724
|
+
|
|
2725
|
+
lit-html/is-server.js:
|
|
2726
|
+
(**
|
|
2727
|
+
* @license
|
|
2728
|
+
* Copyright 2022 Google LLC
|
|
2729
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2730
|
+
*)
|
|
2731
|
+
|
|
2732
|
+
lit-html/directive.js:
|
|
2733
|
+
(**
|
|
2734
|
+
* @license
|
|
2735
|
+
* Copyright 2017 Google LLC
|
|
2736
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2737
|
+
*)
|
|
2738
|
+
|
|
2739
|
+
lit-html/directives/style-map.js:
|
|
2740
|
+
(**
|
|
2741
|
+
* @license
|
|
2742
|
+
* Copyright 2018 Google LLC
|
|
2743
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2744
|
+
*)
|
|
2745
|
+
|
|
2746
|
+
@lit/reactive-element/decorators/custom-element.js:
|
|
2747
|
+
(**
|
|
2748
|
+
* @license
|
|
2749
|
+
* Copyright 2017 Google LLC
|
|
2750
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2751
|
+
*)
|
|
2752
|
+
|
|
2753
|
+
@lit/reactive-element/decorators/property.js:
|
|
2754
|
+
(**
|
|
2755
|
+
* @license
|
|
2756
|
+
* Copyright 2017 Google LLC
|
|
2757
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2758
|
+
*)
|
|
2759
|
+
|
|
2760
|
+
@lit/reactive-element/decorators/state.js:
|
|
2761
|
+
(**
|
|
2762
|
+
* @license
|
|
2763
|
+
* Copyright 2017 Google LLC
|
|
2764
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2765
|
+
*)
|
|
2766
|
+
|
|
2767
|
+
@lit/reactive-element/decorators/event-options.js:
|
|
2768
|
+
(**
|
|
2769
|
+
* @license
|
|
2770
|
+
* Copyright 2017 Google LLC
|
|
2771
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2772
|
+
*)
|
|
2773
|
+
|
|
2774
|
+
@lit/reactive-element/decorators/base.js:
|
|
2775
|
+
(**
|
|
2776
|
+
* @license
|
|
2777
|
+
* Copyright 2017 Google LLC
|
|
2778
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2779
|
+
*)
|
|
2780
|
+
|
|
2781
|
+
@lit/reactive-element/decorators/query.js:
|
|
2782
|
+
(**
|
|
2783
|
+
* @license
|
|
2784
|
+
* Copyright 2017 Google LLC
|
|
2785
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2786
|
+
*)
|
|
2787
|
+
|
|
2788
|
+
@lit/reactive-element/decorators/query-all.js:
|
|
2789
|
+
(**
|
|
2790
|
+
* @license
|
|
2791
|
+
* Copyright 2017 Google LLC
|
|
2792
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2793
|
+
*)
|
|
2794
|
+
|
|
2795
|
+
@lit/reactive-element/decorators/query-async.js:
|
|
2796
|
+
(**
|
|
2797
|
+
* @license
|
|
2798
|
+
* Copyright 2017 Google LLC
|
|
2799
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2800
|
+
*)
|
|
2801
|
+
|
|
2802
|
+
@lit/reactive-element/decorators/query-assigned-elements.js:
|
|
2803
|
+
(**
|
|
2804
|
+
* @license
|
|
2805
|
+
* Copyright 2021 Google LLC
|
|
2806
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2807
|
+
*)
|
|
2808
|
+
|
|
2809
|
+
@lit/reactive-element/decorators/query-assigned-nodes.js:
|
|
2810
|
+
(**
|
|
2811
|
+
* @license
|
|
2812
|
+
* Copyright 2017 Google LLC
|
|
2813
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2814
|
+
*)
|
|
2815
|
+
|
|
2816
|
+
lit-html/directive-helpers.js:
|
|
2817
|
+
(**
|
|
2818
|
+
* @license
|
|
2819
|
+
* Copyright 2020 Google LLC
|
|
2820
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2821
|
+
*)
|
|
2822
|
+
|
|
2823
|
+
lit-html/directives/class-map.js:
|
|
2824
|
+
(**
|
|
2825
|
+
* @license
|
|
2826
|
+
* Copyright 2018 Google LLC
|
|
2827
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2828
|
+
*)
|
|
2829
|
+
|
|
2830
|
+
lit-html/static.js:
|
|
2831
|
+
(**
|
|
2832
|
+
* @license
|
|
2833
|
+
* Copyright 2020 Google LLC
|
|
2834
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2835
|
+
*)
|
|
2836
|
+
|
|
2837
|
+
lit-html/directives/if-defined.js:
|
|
2838
|
+
(**
|
|
2839
|
+
* @license
|
|
2840
|
+
* Copyright 2018 Google LLC
|
|
2841
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2842
|
+
*)
|
|
2843
|
+
*/
|