@webwriter/quiz 1.0.2 → 1.0.3
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/dist/widgets/webwriter-choice-item.js +3212 -59
- package/dist/widgets/webwriter-choice.js +4896 -79
- package/dist/widgets/webwriter-cloze-gap.js +4047 -179
- package/dist/widgets/webwriter-cloze.js +2370 -36
- package/dist/widgets/webwriter-mark.js +2426 -61
- package/dist/widgets/webwriter-order-item.js +2402 -68
- package/dist/widgets/webwriter-order.js +4945 -135
- package/dist/widgets/webwriter-pairing-item.js +1581 -48
- package/dist/widgets/webwriter-pairing.js +3641 -72
- package/dist/widgets/webwriter-quiz.js +6893 -76
- package/dist/widgets/webwriter-speech.js +6219 -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 +6906 -101
- package/dist/widgets/webwriter-text.js +3998 -54
- package/package.json +1 -1
|
@@ -13,109 +13,3429 @@ 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
|
+
};
|
|
43
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
44
|
+
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
45
|
+
var __privateIn = (member, obj) => Object(obj) !== obj ? __typeError('Cannot use the "in" operator on this value') : member.has(obj);
|
|
46
|
+
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
47
|
+
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
48
|
+
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
49
|
+
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
50
|
+
|
|
51
|
+
// ../../node_modules/lit/node_modules/@lit/reactive-element/css-tag.js
|
|
52
|
+
var t = globalThis;
|
|
53
|
+
var e = t.ShadowRoot && (void 0 === t.ShadyCSS || t.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
|
|
54
|
+
var s = Symbol();
|
|
55
|
+
var o = /* @__PURE__ */ new WeakMap();
|
|
56
|
+
var n = class {
|
|
57
|
+
constructor(t5, e8, 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 = e8;
|
|
60
|
+
}
|
|
61
|
+
get styleSheet() {
|
|
62
|
+
let t5 = this.o;
|
|
63
|
+
const s3 = this.t;
|
|
64
|
+
if (e && void 0 === t5) {
|
|
65
|
+
const e8 = void 0 !== s3 && 1 === s3.length;
|
|
66
|
+
e8 && (t5 = o.get(s3)), void 0 === t5 && ((this.o = t5 = new CSSStyleSheet()).replaceSync(this.cssText), e8 && 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, ...e8) => {
|
|
76
|
+
const o5 = 1 === t5.length ? t5[0] : e8.reduce((e9, s3, o6) => e9 + ((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 e8 of o5) {
|
|
86
|
+
const o6 = document.createElement("style"), n6 = t.litNonce;
|
|
87
|
+
void 0 !== n6 && o6.setAttribute("nonce", n6), o6.textContent = e8.cssText, s3.appendChild(o6);
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
var c = e ? (t5) => t5 : (t5) => t5 instanceof CSSStyleSheet ? ((t6) => {
|
|
91
|
+
let e8 = "";
|
|
92
|
+
for (const s3 of t6.cssRules) e8 += s3.cssText;
|
|
93
|
+
return r(e8);
|
|
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(), r7 = this.getPropertyDescriptor(t5, i4, s3);
|
|
145
|
+
void 0 !== r7 && e2(this.prototype, t5, r7);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
static getPropertyDescriptor(t5, s3, i4) {
|
|
149
|
+
const { get: e8, set: h5 } = r2(this.prototype, t5) ?? { get() {
|
|
150
|
+
return this[s3];
|
|
151
|
+
}, set(t6) {
|
|
152
|
+
this[s3] = t6;
|
|
153
|
+
} };
|
|
154
|
+
return { get() {
|
|
155
|
+
return e8?.call(this);
|
|
156
|
+
}, set(s4) {
|
|
157
|
+
const r7 = e8?.call(this);
|
|
158
|
+
h5.call(this, s4), this.requestUpdate(t5, r7, 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 e8 = new Set(s3.flat(1 / 0).reverse());
|
|
191
|
+
for (const s4 of e8) 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), e8 = this.constructor._$Eu(t5, i4);
|
|
233
|
+
if (void 0 !== e8 && true === i4.reflect) {
|
|
234
|
+
const r7 = (void 0 !== i4.converter?.toAttribute ? i4.converter : u).toAttribute(s3, i4.type);
|
|
235
|
+
this._$Em = t5, null == r7 ? this.removeAttribute(e8) : this.setAttribute(e8, r7), this._$Em = null;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
_$AK(t5, s3) {
|
|
239
|
+
const i4 = this.constructor, e8 = i4._$Eh.get(t5);
|
|
240
|
+
if (void 0 !== e8 && this._$Em !== e8) {
|
|
241
|
+
const t6 = i4.getPropertyOptions(e8), r7 = "function" == typeof t6.converter ? { fromAttribute: t6.converter } : void 0 !== t6.converter?.fromAttribute ? t6.converter : u;
|
|
242
|
+
this._$Em = e8, this[e8] = r7.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, e8 = [];
|
|
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 r7, 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, r7 = 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 ? (e8.push(r7), 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>" : "")), e8];
|
|
359
|
+
};
|
|
360
|
+
var B = class _B2 {
|
|
361
|
+
constructor({ strings: t5, _$litType$: i4 }, s3) {
|
|
362
|
+
let e8;
|
|
363
|
+
this.parts = [];
|
|
364
|
+
let h5 = 0, o5 = 0;
|
|
365
|
+
const n6 = t5.length - 1, r7 = 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 !== (e8 = I.nextNode()) && r7.length < n6; ) {
|
|
371
|
+
if (1 === e8.nodeType) {
|
|
372
|
+
if (e8.hasAttributes()) for (const t6 of e8.getAttributeNames()) if (t6.endsWith(f2)) {
|
|
373
|
+
const i5 = a3[o5++], s4 = e8.getAttribute(t6).split(v), n7 = /([.?@])?(.*)/.exec(i5);
|
|
374
|
+
r7.push({ type: 1, index: h5, name: n7[2], strings: s4, ctor: "." === n7[1] ? Y : "?" === n7[1] ? Z : "@" === n7[1] ? q : G }), e8.removeAttribute(t6);
|
|
375
|
+
} else t6.startsWith(v) && (r7.push({ type: 6, index: h5 }), e8.removeAttribute(t6));
|
|
376
|
+
if (M.test(e8.tagName)) {
|
|
377
|
+
const t6 = e8.textContent.split(v), i5 = t6.length - 1;
|
|
378
|
+
if (i5 > 0) {
|
|
379
|
+
e8.textContent = c3 ? c3.emptyScript : "";
|
|
380
|
+
for (let s4 = 0; s4 < i5; s4++) e8.append(t6[s4], lt()), I.nextNode(), r7.push({ type: 2, index: ++h5 });
|
|
381
|
+
e8.append(t6[i5], lt());
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
} else if (8 === e8.nodeType) if (e8.data === m) r7.push({ type: 2, index: h5 });
|
|
385
|
+
else {
|
|
386
|
+
let t6 = -1;
|
|
387
|
+
for (; -1 !== (t6 = e8.data.indexOf(v, t6 + 1)); ) r7.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, e8) {
|
|
398
|
+
if (i4 === R) return i4;
|
|
399
|
+
let h5 = void 0 !== e8 ? s3.o?.[e8] : 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, e8)), void 0 !== e8 ? (s3.o ??= [])[e8] = h5 : s3.l = h5), void 0 !== h5 && (i4 = z(t5, h5._$AS(t5, i4.values), h5, e8)), 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, e8 = (t5?.creationScope ?? w).importNode(i4, true);
|
|
415
|
+
I.currentNode = e8;
|
|
416
|
+
let h5 = I.nextNode(), o5 = 0, n6 = 0, r7 = s3[0];
|
|
417
|
+
for (; void 0 !== r7; ) {
|
|
418
|
+
if (o5 === r7.index) {
|
|
419
|
+
let i5;
|
|
420
|
+
2 === r7.type ? i5 = new et(h5, h5.nextSibling, this, t5) : 1 === r7.type ? i5 = new r7.ctor(h5, r7.name, r7.strings, this, t5) : 6 === r7.type && (i5 = new K(h5, this, t5)), this._$AV.push(i5), r7 = s3[++n6];
|
|
421
|
+
}
|
|
422
|
+
o5 !== r7?.index && (h5 = I.nextNode(), o5++);
|
|
423
|
+
}
|
|
424
|
+
return I.currentNode = w, e8;
|
|
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, e8) {
|
|
436
|
+
this.type = 2, this._$AH = D, this._$AN = void 0, this._$AA = t5, this._$AB = i4, this._$AM = s3, this.options = e8, this.v = e8?.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, e8 = "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 === e8) this._$AH.p(i4);
|
|
464
|
+
else {
|
|
465
|
+
const t6 = new F(e8, 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, e8 = 0;
|
|
477
|
+
for (const h5 of t5) e8 === i4.length ? i4.push(s3 = new _et2(this.O(lt()), this.O(lt()), this, this.options)) : s3 = i4[e8], s3._$AI(h5), e8++;
|
|
478
|
+
e8 < i4.length && (this._$AR(s3 && s3._$AB.nextSibling, e8), i4.length = e8);
|
|
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, e8, h5) {
|
|
498
|
+
this.type = 1, this._$AH = D, this._$AN = void 0, this.element = t5, this.name = i4, this._$AM = e8, 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, e8) {
|
|
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 e9 = t5;
|
|
506
|
+
let n6, r7;
|
|
507
|
+
for (t5 = h5[0], n6 = 0; n6 < h5.length - 1; n6++) r7 = z(this, e9[s3 + n6], i4, n6), r7 === R && (r7 = this._$AH[n6]), o5 ||= !st(r7) || r7 !== this._$AH[n6], r7 === D ? t5 = D : t5 !== D && (t5 += (r7 ?? "") + h5[n6 + 1]), this._$AH[n6] = r7;
|
|
508
|
+
}
|
|
509
|
+
o5 && !e8 && 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, e8, h5) {
|
|
533
|
+
super(t5, i4, s3, e8, 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, e8 = t5 === D && s3 !== D || t5.capture !== s3.capture || t5.once !== s3.once || t5.passive !== s3.passive, h5 = t5 !== D && (s3 === D || e8);
|
|
538
|
+
e8 && 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 e8 = s3?.renderBefore ?? i4;
|
|
560
|
+
let h5 = e8._$litPart$;
|
|
561
|
+
if (void 0 === h5) {
|
|
562
|
+
const t6 = s3?.renderBefore ?? null;
|
|
563
|
+
e8._$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 e8 = this.render();
|
|
579
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t5), this.o = Q(e8, 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
|
+
// ../lit/index.js
|
|
597
|
+
var __create2 = Object.create;
|
|
598
|
+
var __defProp2 = Object.defineProperty;
|
|
599
|
+
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
600
|
+
var __knownSymbol2 = (name, symbol) => (symbol = Symbol[name]) ? symbol : Symbol.for("Symbol." + name);
|
|
601
|
+
var __typeError2 = (msg) => {
|
|
602
|
+
throw TypeError(msg);
|
|
603
|
+
};
|
|
604
|
+
var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
605
|
+
var __name2 = (target, value) => __defProp2(target, "name", { value, configurable: true });
|
|
606
|
+
var __decoratorStart2 = (base) => [, , , __create2(base?.[__knownSymbol2("metadata")] ?? null)];
|
|
607
|
+
var __decoratorStrings2 = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"];
|
|
608
|
+
var __expectFn2 = (fn) => fn !== void 0 && typeof fn !== "function" ? __typeError2("Function expected") : fn;
|
|
609
|
+
var __decoratorContext2 = (kind, name, done, metadata, fns) => ({ kind: __decoratorStrings2[kind], name, metadata, addInitializer: (fn) => done._ ? __typeError2("Already initialized") : fns.push(__expectFn2(fn || null)) });
|
|
610
|
+
var __decoratorMetadata2 = (array, target) => __defNormalProp2(target, __knownSymbol2("metadata"), array[3]);
|
|
611
|
+
var __runInitializers2 = (array, flags, self, value) => {
|
|
612
|
+
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);
|
|
613
|
+
return value;
|
|
614
|
+
};
|
|
615
|
+
var __decorateElement2 = (array, flags, name, decorators, target, extra) => {
|
|
616
|
+
var fn, it, done, ctx, access, k22 = flags & 7, s22 = !!(flags & 8), p22 = !!(flags & 16);
|
|
617
|
+
var j22 = k22 > 3 ? array.length + 1 : k22 ? s22 ? 1 : 2 : 0, key = __decoratorStrings2[k22 + 5];
|
|
618
|
+
var initializers = k22 > 3 && (array[j22 - 1] = []), extraInitializers = array[j22] || (array[j22] = []);
|
|
619
|
+
var desc = k22 && (!p22 && !s22 && (target = target.prototype), k22 < 5 && (k22 > 3 || !p22) && __getOwnPropDesc2(k22 < 4 ? target : { get [name]() {
|
|
620
|
+
return __privateGet2(this, extra);
|
|
621
|
+
}, set [name](x22) {
|
|
622
|
+
return __privateSet2(this, extra, x22);
|
|
623
|
+
} }, name));
|
|
624
|
+
k22 ? p22 && k22 < 4 && __name2(extra, (k22 > 2 ? "set " : k22 > 1 ? "get " : "") + name) : __name2(target, name);
|
|
625
|
+
for (var i32 = decorators.length - 1; i32 >= 0; i32--) {
|
|
626
|
+
ctx = __decoratorContext2(k22, name, done = {}, array[3], extraInitializers);
|
|
627
|
+
if (k22) {
|
|
628
|
+
ctx.static = s22, ctx.private = p22, access = ctx.access = { has: p22 ? (x22) => __privateIn2(target, x22) : (x22) => name in x22 };
|
|
629
|
+
if (k22 ^ 3) access.get = p22 ? (x22) => (k22 ^ 1 ? __privateGet2 : __privateMethod2)(x22, target, k22 ^ 4 ? extra : desc.get) : (x22) => x22[name];
|
|
630
|
+
if (k22 > 2) access.set = p22 ? (x22, y22) => __privateSet2(x22, target, y22, k22 ^ 4 ? extra : desc.set) : (x22, y22) => x22[name] = y22;
|
|
631
|
+
}
|
|
632
|
+
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;
|
|
633
|
+
if (k22 ^ 4 || it === void 0) __expectFn2(it) && (k22 > 4 ? initializers.unshift(it) : k22 ? p22 ? extra = it : desc[key] = it : target = it);
|
|
634
|
+
else if (typeof it !== "object" || it === null) __typeError2("Object expected");
|
|
635
|
+
else __expectFn2(fn = it.get) && (desc.get = fn), __expectFn2(fn = it.set) && (desc.set = fn), __expectFn2(fn = it.init) && initializers.unshift(fn);
|
|
636
|
+
}
|
|
637
|
+
return k22 || __decoratorMetadata2(array, target), desc && __defProp2(target, name, desc), p22 ? k22 ^ 4 ? extra : desc : target;
|
|
638
|
+
};
|
|
639
|
+
var __publicField2 = (obj, key, value) => __defNormalProp2(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
640
|
+
var __accessCheck2 = (obj, member, msg) => member.has(obj) || __typeError2("Cannot " + msg);
|
|
641
|
+
var __privateIn2 = (member, obj) => Object(obj) !== obj ? __typeError2('Cannot use the "in" operator on this value') : member.has(obj);
|
|
642
|
+
var __privateGet2 = (obj, member, getter) => (__accessCheck2(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
643
|
+
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);
|
|
644
|
+
var __privateSet2 = (obj, member, value, setter) => (__accessCheck2(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
645
|
+
var __privateMethod2 = (obj, member, method) => (__accessCheck2(obj, member, "access private method"), method);
|
|
646
|
+
var t2 = globalThis;
|
|
647
|
+
var e3 = t2.ShadowRoot && (void 0 === t2.ShadyCSS || t2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
|
|
648
|
+
var s2 = Symbol();
|
|
649
|
+
var o3 = /* @__PURE__ */ new WeakMap();
|
|
650
|
+
var n4 = class {
|
|
651
|
+
constructor(t22, e42, o42) {
|
|
652
|
+
if (this._$cssResult$ = true, o42 !== s2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
653
|
+
this.cssText = t22, this.t = e42;
|
|
654
|
+
}
|
|
655
|
+
get styleSheet() {
|
|
656
|
+
let t22 = this.o;
|
|
657
|
+
const s22 = this.t;
|
|
658
|
+
if (e3 && void 0 === t22) {
|
|
659
|
+
const e42 = void 0 !== s22 && 1 === s22.length;
|
|
660
|
+
e42 && (t22 = o3.get(s22)), void 0 === t22 && ((this.o = t22 = new CSSStyleSheet()).replaceSync(this.cssText), e42 && o3.set(s22, t22));
|
|
661
|
+
}
|
|
662
|
+
return t22;
|
|
663
|
+
}
|
|
664
|
+
toString() {
|
|
665
|
+
return this.cssText;
|
|
666
|
+
}
|
|
667
|
+
};
|
|
668
|
+
var r3 = (t22) => new n4("string" == typeof t22 ? t22 : t22 + "", void 0, s2);
|
|
669
|
+
var S3 = (s22, o42) => {
|
|
670
|
+
if (e3) s22.adoptedStyleSheets = o42.map((t22) => t22 instanceof CSSStyleSheet ? t22 : t22.styleSheet);
|
|
671
|
+
else for (const e42 of o42) {
|
|
672
|
+
const o5 = document.createElement("style"), n52 = t2.litNonce;
|
|
673
|
+
void 0 !== n52 && o5.setAttribute("nonce", n52), o5.textContent = e42.cssText, s22.appendChild(o5);
|
|
674
|
+
}
|
|
675
|
+
};
|
|
676
|
+
var c4 = e3 ? (t22) => t22 : (t22) => t22 instanceof CSSStyleSheet ? ((t32) => {
|
|
677
|
+
let e42 = "";
|
|
678
|
+
for (const s22 of t32.cssRules) e42 += s22.cssText;
|
|
679
|
+
return r3(e42);
|
|
680
|
+
})(t22) : t22;
|
|
681
|
+
var { is: i22, defineProperty: e22, getOwnPropertyDescriptor: r22, getOwnPropertyNames: h4, getOwnPropertySymbols: o22, getPrototypeOf: n22 } = Object;
|
|
682
|
+
var a2 = globalThis;
|
|
683
|
+
var c22 = a2.trustedTypes;
|
|
684
|
+
var l2 = c22 ? c22.emptyScript : "";
|
|
685
|
+
var p2 = a2.reactiveElementPolyfillSupport;
|
|
686
|
+
var d2 = (t22, s22) => t22;
|
|
687
|
+
var u2 = { toAttribute(t22, s22) {
|
|
688
|
+
switch (s22) {
|
|
689
|
+
case Boolean:
|
|
690
|
+
t22 = t22 ? l2 : null;
|
|
691
|
+
break;
|
|
692
|
+
case Object:
|
|
693
|
+
case Array:
|
|
694
|
+
t22 = null == t22 ? t22 : JSON.stringify(t22);
|
|
695
|
+
}
|
|
696
|
+
return t22;
|
|
697
|
+
}, fromAttribute(t22, s22) {
|
|
698
|
+
let i32 = t22;
|
|
699
|
+
switch (s22) {
|
|
700
|
+
case Boolean:
|
|
701
|
+
i32 = null !== t22;
|
|
702
|
+
break;
|
|
703
|
+
case Number:
|
|
704
|
+
i32 = null === t22 ? null : Number(t22);
|
|
705
|
+
break;
|
|
706
|
+
case Object:
|
|
707
|
+
case Array:
|
|
708
|
+
try {
|
|
709
|
+
i32 = JSON.parse(t22);
|
|
710
|
+
} catch (t32) {
|
|
711
|
+
i32 = null;
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
return i32;
|
|
715
|
+
} };
|
|
716
|
+
var f4 = (t22, s22) => !i22(t22, s22);
|
|
717
|
+
var y2 = { attribute: true, type: String, converter: u2, reflect: false, hasChanged: f4 };
|
|
718
|
+
Symbol.metadata ??= Symbol("metadata"), a2.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
719
|
+
var b2 = class extends HTMLElement {
|
|
720
|
+
static addInitializer(t22) {
|
|
721
|
+
this._$Ei(), (this.l ??= []).push(t22);
|
|
722
|
+
}
|
|
723
|
+
static get observedAttributes() {
|
|
724
|
+
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
725
|
+
}
|
|
726
|
+
static createProperty(t22, s22 = y2) {
|
|
727
|
+
if (s22.state && (s22.attribute = false), this._$Ei(), this.elementProperties.set(t22, s22), !s22.noAccessor) {
|
|
728
|
+
const i32 = Symbol(), r42 = this.getPropertyDescriptor(t22, i32, s22);
|
|
729
|
+
void 0 !== r42 && e22(this.prototype, t22, r42);
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
static getPropertyDescriptor(t22, s22, i32) {
|
|
733
|
+
const { get: e42, set: h42 } = r22(this.prototype, t22) ?? { get() {
|
|
734
|
+
return this[s22];
|
|
735
|
+
}, set(t32) {
|
|
736
|
+
this[s22] = t32;
|
|
737
|
+
} };
|
|
738
|
+
return { get() {
|
|
739
|
+
return e42?.call(this);
|
|
740
|
+
}, set(s3) {
|
|
741
|
+
const r42 = e42?.call(this);
|
|
742
|
+
h42.call(this, s3), this.requestUpdate(t22, r42, i32);
|
|
743
|
+
}, configurable: true, enumerable: true };
|
|
744
|
+
}
|
|
745
|
+
static getPropertyOptions(t22) {
|
|
746
|
+
return this.elementProperties.get(t22) ?? y2;
|
|
747
|
+
}
|
|
748
|
+
static _$Ei() {
|
|
749
|
+
if (this.hasOwnProperty(d2("elementProperties"))) return;
|
|
750
|
+
const t22 = n22(this);
|
|
751
|
+
t22.finalize(), void 0 !== t22.l && (this.l = [...t22.l]), this.elementProperties = new Map(t22.elementProperties);
|
|
752
|
+
}
|
|
753
|
+
static finalize() {
|
|
754
|
+
if (this.hasOwnProperty(d2("finalized"))) return;
|
|
755
|
+
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d2("properties"))) {
|
|
756
|
+
const t32 = this.properties, s22 = [...h4(t32), ...o22(t32)];
|
|
757
|
+
for (const i32 of s22) this.createProperty(i32, t32[i32]);
|
|
758
|
+
}
|
|
759
|
+
const t22 = this[Symbol.metadata];
|
|
760
|
+
if (null !== t22) {
|
|
761
|
+
const s22 = litPropertyMetadata.get(t22);
|
|
762
|
+
if (void 0 !== s22) for (const [t32, i32] of s22) this.elementProperties.set(t32, i32);
|
|
763
|
+
}
|
|
764
|
+
this._$Eh = /* @__PURE__ */ new Map();
|
|
765
|
+
for (const [t32, s22] of this.elementProperties) {
|
|
766
|
+
const i32 = this._$Eu(t32, s22);
|
|
767
|
+
void 0 !== i32 && this._$Eh.set(i32, t32);
|
|
768
|
+
}
|
|
769
|
+
this.elementStyles = this.finalizeStyles(this.styles);
|
|
770
|
+
}
|
|
771
|
+
static finalizeStyles(s22) {
|
|
772
|
+
const i32 = [];
|
|
773
|
+
if (Array.isArray(s22)) {
|
|
774
|
+
const e42 = new Set(s22.flat(1 / 0).reverse());
|
|
775
|
+
for (const s3 of e42) i32.unshift(c4(s3));
|
|
776
|
+
} else void 0 !== s22 && i32.push(c4(s22));
|
|
777
|
+
return i32;
|
|
778
|
+
}
|
|
779
|
+
static _$Eu(t22, s22) {
|
|
780
|
+
const i32 = s22.attribute;
|
|
781
|
+
return false === i32 ? void 0 : "string" == typeof i32 ? i32 : "string" == typeof t22 ? t22.toLowerCase() : void 0;
|
|
782
|
+
}
|
|
783
|
+
constructor() {
|
|
784
|
+
super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
|
|
785
|
+
}
|
|
786
|
+
_$Ev() {
|
|
787
|
+
this._$ES = new Promise((t22) => this.enableUpdating = t22), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t22) => t22(this));
|
|
788
|
+
}
|
|
789
|
+
addController(t22) {
|
|
790
|
+
(this._$EO ??= /* @__PURE__ */ new Set()).add(t22), void 0 !== this.renderRoot && this.isConnected && t22.hostConnected?.();
|
|
791
|
+
}
|
|
792
|
+
removeController(t22) {
|
|
793
|
+
this._$EO?.delete(t22);
|
|
794
|
+
}
|
|
795
|
+
_$E_() {
|
|
796
|
+
const t22 = /* @__PURE__ */ new Map(), s22 = this.constructor.elementProperties;
|
|
797
|
+
for (const i32 of s22.keys()) this.hasOwnProperty(i32) && (t22.set(i32, this[i32]), delete this[i32]);
|
|
798
|
+
t22.size > 0 && (this._$Ep = t22);
|
|
799
|
+
}
|
|
800
|
+
createRenderRoot() {
|
|
801
|
+
const t22 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
802
|
+
return S3(t22, this.constructor.elementStyles), t22;
|
|
803
|
+
}
|
|
804
|
+
connectedCallback() {
|
|
805
|
+
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach((t22) => t22.hostConnected?.());
|
|
806
|
+
}
|
|
807
|
+
enableUpdating(t22) {
|
|
808
|
+
}
|
|
809
|
+
disconnectedCallback() {
|
|
810
|
+
this._$EO?.forEach((t22) => t22.hostDisconnected?.());
|
|
811
|
+
}
|
|
812
|
+
attributeChangedCallback(t22, s22, i32) {
|
|
813
|
+
this._$AK(t22, i32);
|
|
814
|
+
}
|
|
815
|
+
_$EC(t22, s22) {
|
|
816
|
+
const i32 = this.constructor.elementProperties.get(t22), e42 = this.constructor._$Eu(t22, i32);
|
|
817
|
+
if (void 0 !== e42 && true === i32.reflect) {
|
|
818
|
+
const r42 = (void 0 !== i32.converter?.toAttribute ? i32.converter : u2).toAttribute(s22, i32.type);
|
|
819
|
+
this._$Em = t22, null == r42 ? this.removeAttribute(e42) : this.setAttribute(e42, r42), this._$Em = null;
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
_$AK(t22, s22) {
|
|
823
|
+
const i32 = this.constructor, e42 = i32._$Eh.get(t22);
|
|
824
|
+
if (void 0 !== e42 && this._$Em !== e42) {
|
|
825
|
+
const t32 = i32.getPropertyOptions(e42), r42 = "function" == typeof t32.converter ? { fromAttribute: t32.converter } : void 0 !== t32.converter?.fromAttribute ? t32.converter : u2;
|
|
826
|
+
this._$Em = e42, this[e42] = r42.fromAttribute(s22, t32.type), this._$Em = null;
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
requestUpdate(t22, s22, i32) {
|
|
830
|
+
if (void 0 !== t22) {
|
|
831
|
+
if (i32 ??= this.constructor.getPropertyOptions(t22), !(i32.hasChanged ?? f4)(this[t22], s22)) return;
|
|
832
|
+
this.P(t22, s22, i32);
|
|
833
|
+
}
|
|
834
|
+
false === this.isUpdatePending && (this._$ES = this._$ET());
|
|
835
|
+
}
|
|
836
|
+
P(t22, s22, i32) {
|
|
837
|
+
this._$AL.has(t22) || this._$AL.set(t22, s22), true === i32.reflect && this._$Em !== t22 && (this._$Ej ??= /* @__PURE__ */ new Set()).add(t22);
|
|
838
|
+
}
|
|
839
|
+
async _$ET() {
|
|
840
|
+
this.isUpdatePending = true;
|
|
841
|
+
try {
|
|
842
|
+
await this._$ES;
|
|
843
|
+
} catch (t32) {
|
|
844
|
+
Promise.reject(t32);
|
|
845
|
+
}
|
|
846
|
+
const t22 = this.scheduleUpdate();
|
|
847
|
+
return null != t22 && await t22, !this.isUpdatePending;
|
|
848
|
+
}
|
|
849
|
+
scheduleUpdate() {
|
|
850
|
+
return this.performUpdate();
|
|
851
|
+
}
|
|
852
|
+
performUpdate() {
|
|
853
|
+
if (!this.isUpdatePending) return;
|
|
854
|
+
if (!this.hasUpdated) {
|
|
855
|
+
if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
|
|
856
|
+
for (const [t42, s3] of this._$Ep) this[t42] = s3;
|
|
857
|
+
this._$Ep = void 0;
|
|
858
|
+
}
|
|
859
|
+
const t32 = this.constructor.elementProperties;
|
|
860
|
+
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);
|
|
861
|
+
}
|
|
862
|
+
let t22 = false;
|
|
863
|
+
const s22 = this._$AL;
|
|
864
|
+
try {
|
|
865
|
+
t22 = this.shouldUpdate(s22), t22 ? (this.willUpdate(s22), this._$EO?.forEach((t32) => t32.hostUpdate?.()), this.update(s22)) : this._$EU();
|
|
866
|
+
} catch (s3) {
|
|
867
|
+
throw t22 = false, this._$EU(), s3;
|
|
868
|
+
}
|
|
869
|
+
t22 && this._$AE(s22);
|
|
870
|
+
}
|
|
871
|
+
willUpdate(t22) {
|
|
872
|
+
}
|
|
873
|
+
_$AE(t22) {
|
|
874
|
+
this._$EO?.forEach((t32) => t32.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t22)), this.updated(t22);
|
|
875
|
+
}
|
|
876
|
+
_$EU() {
|
|
877
|
+
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
|
|
878
|
+
}
|
|
879
|
+
get updateComplete() {
|
|
880
|
+
return this.getUpdateComplete();
|
|
881
|
+
}
|
|
882
|
+
getUpdateComplete() {
|
|
883
|
+
return this._$ES;
|
|
884
|
+
}
|
|
885
|
+
shouldUpdate(t22) {
|
|
886
|
+
return true;
|
|
887
|
+
}
|
|
888
|
+
update(t22) {
|
|
889
|
+
this._$Ej &&= this._$Ej.forEach((t32) => this._$EC(t32, this[t32])), this._$EU();
|
|
890
|
+
}
|
|
891
|
+
updated(t22) {
|
|
892
|
+
}
|
|
893
|
+
firstUpdated(t22) {
|
|
894
|
+
}
|
|
895
|
+
};
|
|
896
|
+
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");
|
|
897
|
+
var n32 = globalThis;
|
|
898
|
+
var c32 = n32.trustedTypes;
|
|
899
|
+
var h22 = c32 ? c32.createPolicy("lit-html", { createHTML: (t22) => t22 }) : void 0;
|
|
900
|
+
var f22 = "$lit$";
|
|
901
|
+
var v2 = `lit$${Math.random().toFixed(9).slice(2)}$`;
|
|
902
|
+
var m2 = "?" + v2;
|
|
903
|
+
var _2 = `<${m2}>`;
|
|
904
|
+
var w2 = document;
|
|
905
|
+
var lt2 = () => w2.createComment("");
|
|
906
|
+
var st2 = (t22) => null === t22 || "object" != typeof t22 && "function" != typeof t22;
|
|
907
|
+
var g2 = Array.isArray;
|
|
908
|
+
var $2 = (t22) => g2(t22) || "function" == typeof t22?.[Symbol.iterator];
|
|
909
|
+
var x2 = "[ \n\f\r]";
|
|
910
|
+
var T2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
|
|
911
|
+
var E2 = /-->/g;
|
|
912
|
+
var k2 = />/g;
|
|
913
|
+
var O2 = RegExp(`>|${x2}(?:([^\\s"'>=/]+)(${x2}*=${x2}*(?:[^
|
|
914
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g");
|
|
915
|
+
var S22 = /'/g;
|
|
916
|
+
var j2 = /"/g;
|
|
917
|
+
var M2 = /^(?:script|style|textarea|title)$/i;
|
|
918
|
+
var P2 = (t22) => (i32, ...s22) => ({ _$litType$: t22, strings: i32, values: s22 });
|
|
919
|
+
var ke2 = P2(1);
|
|
920
|
+
var Oe2 = P2(2);
|
|
921
|
+
var Se2 = P2(3);
|
|
922
|
+
var R2 = Symbol.for("lit-noChange");
|
|
923
|
+
var D2 = Symbol.for("lit-nothing");
|
|
924
|
+
var V2 = /* @__PURE__ */ new WeakMap();
|
|
925
|
+
var I2 = w2.createTreeWalker(w2, 129);
|
|
926
|
+
function N2(t22, i32) {
|
|
927
|
+
if (!g2(t22) || !t22.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
928
|
+
return void 0 !== h22 ? h22.createHTML(i32) : i32;
|
|
929
|
+
}
|
|
930
|
+
var U2 = (t22, i32) => {
|
|
931
|
+
const s22 = t22.length - 1, e42 = [];
|
|
932
|
+
let h42, o42 = 2 === i32 ? "<svg>" : 3 === i32 ? "<math>" : "", n52 = T2;
|
|
933
|
+
for (let i4 = 0; i4 < s22; i4++) {
|
|
934
|
+
const s3 = t22[i4];
|
|
935
|
+
let r42, l22, c42 = -1, a22 = 0;
|
|
936
|
+
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);
|
|
937
|
+
const u22 = n52 === O2 && t22[i4 + 1].startsWith("/>") ? " " : "";
|
|
938
|
+
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);
|
|
939
|
+
}
|
|
940
|
+
return [N2(t22, o42 + (t22[s22] || "<?>") + (2 === i32 ? "</svg>" : 3 === i32 ? "</math>" : "")), e42];
|
|
941
|
+
};
|
|
942
|
+
var B2 = class _B {
|
|
943
|
+
constructor({ strings: t22, _$litType$: i32 }, s22) {
|
|
944
|
+
let e42;
|
|
945
|
+
this.parts = [];
|
|
946
|
+
let h42 = 0, o42 = 0;
|
|
947
|
+
const n52 = t22.length - 1, r42 = this.parts, [l22, a22] = U2(t22, i32);
|
|
948
|
+
if (this.el = _B.createElement(l22, s22), I2.currentNode = this.el.content, 2 === i32 || 3 === i32) {
|
|
949
|
+
const t32 = this.el.content.firstChild;
|
|
950
|
+
t32.replaceWith(...t32.childNodes);
|
|
951
|
+
}
|
|
952
|
+
for (; null !== (e42 = I2.nextNode()) && r42.length < n52; ) {
|
|
953
|
+
if (1 === e42.nodeType) {
|
|
954
|
+
if (e42.hasAttributes()) for (const t32 of e42.getAttributeNames()) if (t32.endsWith(f22)) {
|
|
955
|
+
const i4 = a22[o42++], s3 = e42.getAttribute(t32).split(v2), n6 = /([.?@])?(.*)/.exec(i4);
|
|
956
|
+
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);
|
|
957
|
+
} else t32.startsWith(v2) && (r42.push({ type: 6, index: h42 }), e42.removeAttribute(t32));
|
|
958
|
+
if (M2.test(e42.tagName)) {
|
|
959
|
+
const t32 = e42.textContent.split(v2), i4 = t32.length - 1;
|
|
960
|
+
if (i4 > 0) {
|
|
961
|
+
e42.textContent = c32 ? c32.emptyScript : "";
|
|
962
|
+
for (let s3 = 0; s3 < i4; s3++) e42.append(t32[s3], lt2()), I2.nextNode(), r42.push({ type: 2, index: ++h42 });
|
|
963
|
+
e42.append(t32[i4], lt2());
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
} else if (8 === e42.nodeType) if (e42.data === m2) r42.push({ type: 2, index: h42 });
|
|
967
|
+
else {
|
|
968
|
+
let t32 = -1;
|
|
969
|
+
for (; -1 !== (t32 = e42.data.indexOf(v2, t32 + 1)); ) r42.push({ type: 7, index: h42 }), t32 += v2.length - 1;
|
|
970
|
+
}
|
|
971
|
+
h42++;
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
static createElement(t22, i32) {
|
|
975
|
+
const s22 = w2.createElement("template");
|
|
976
|
+
return s22.innerHTML = t22, s22;
|
|
977
|
+
}
|
|
978
|
+
};
|
|
979
|
+
function z2(t22, i32, s22 = t22, e42) {
|
|
980
|
+
if (i32 === R2) return i32;
|
|
981
|
+
let h42 = void 0 !== e42 ? s22.o?.[e42] : s22.l;
|
|
982
|
+
const o42 = st2(i32) ? void 0 : i32._$litDirective$;
|
|
983
|
+
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;
|
|
984
|
+
}
|
|
985
|
+
var F2 = class {
|
|
986
|
+
constructor(t22, i32) {
|
|
987
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t22, this._$AM = i32;
|
|
988
|
+
}
|
|
989
|
+
get parentNode() {
|
|
990
|
+
return this._$AM.parentNode;
|
|
991
|
+
}
|
|
992
|
+
get _$AU() {
|
|
993
|
+
return this._$AM._$AU;
|
|
994
|
+
}
|
|
995
|
+
u(t22) {
|
|
996
|
+
const { el: { content: i32 }, parts: s22 } = this._$AD, e42 = (t22?.creationScope ?? w2).importNode(i32, true);
|
|
997
|
+
I2.currentNode = e42;
|
|
998
|
+
let h42 = I2.nextNode(), o42 = 0, n52 = 0, r42 = s22[0];
|
|
999
|
+
for (; void 0 !== r42; ) {
|
|
1000
|
+
if (o42 === r42.index) {
|
|
1001
|
+
let i4;
|
|
1002
|
+
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];
|
|
1003
|
+
}
|
|
1004
|
+
o42 !== r42?.index && (h42 = I2.nextNode(), o42++);
|
|
1005
|
+
}
|
|
1006
|
+
return I2.currentNode = w2, e42;
|
|
1007
|
+
}
|
|
1008
|
+
p(t22) {
|
|
1009
|
+
let i32 = 0;
|
|
1010
|
+
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++;
|
|
1011
|
+
}
|
|
1012
|
+
};
|
|
1013
|
+
var et2 = class _et {
|
|
1014
|
+
get _$AU() {
|
|
1015
|
+
return this._$AM?._$AU ?? this.v;
|
|
1016
|
+
}
|
|
1017
|
+
constructor(t22, i32, s22, e42) {
|
|
1018
|
+
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;
|
|
1019
|
+
}
|
|
1020
|
+
get parentNode() {
|
|
1021
|
+
let t22 = this._$AA.parentNode;
|
|
1022
|
+
const i32 = this._$AM;
|
|
1023
|
+
return void 0 !== i32 && 11 === t22?.nodeType && (t22 = i32.parentNode), t22;
|
|
1024
|
+
}
|
|
1025
|
+
get startNode() {
|
|
1026
|
+
return this._$AA;
|
|
1027
|
+
}
|
|
1028
|
+
get endNode() {
|
|
1029
|
+
return this._$AB;
|
|
1030
|
+
}
|
|
1031
|
+
_$AI(t22, i32 = this) {
|
|
1032
|
+
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);
|
|
1033
|
+
}
|
|
1034
|
+
O(t22) {
|
|
1035
|
+
return this._$AA.parentNode.insertBefore(t22, this._$AB);
|
|
1036
|
+
}
|
|
1037
|
+
T(t22) {
|
|
1038
|
+
this._$AH !== t22 && (this._$AR(), this._$AH = this.O(t22));
|
|
1039
|
+
}
|
|
1040
|
+
_(t22) {
|
|
1041
|
+
this._$AH !== D2 && st2(this._$AH) ? this._$AA.nextSibling.data = t22 : this.T(w2.createTextNode(t22)), this._$AH = t22;
|
|
1042
|
+
}
|
|
1043
|
+
$(t22) {
|
|
1044
|
+
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);
|
|
1045
|
+
if (this._$AH?._$AD === e42) this._$AH.p(i32);
|
|
1046
|
+
else {
|
|
1047
|
+
const t32 = new F2(e42, this), s3 = t32.u(this.options);
|
|
1048
|
+
t32.p(i32), this.T(s3), this._$AH = t32;
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
_$AC(t22) {
|
|
1052
|
+
let i32 = V2.get(t22.strings);
|
|
1053
|
+
return void 0 === i32 && V2.set(t22.strings, i32 = new B2(t22)), i32;
|
|
1054
|
+
}
|
|
1055
|
+
k(t22) {
|
|
1056
|
+
g2(this._$AH) || (this._$AH = [], this._$AR());
|
|
1057
|
+
const i32 = this._$AH;
|
|
1058
|
+
let s22, e42 = 0;
|
|
1059
|
+
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++;
|
|
1060
|
+
e42 < i32.length && (this._$AR(s22 && s22._$AB.nextSibling, e42), i32.length = e42);
|
|
1061
|
+
}
|
|
1062
|
+
_$AR(t22 = this._$AA.nextSibling, i32) {
|
|
1063
|
+
for (this._$AP?.(false, true, i32); t22 && t22 !== this._$AB; ) {
|
|
1064
|
+
const i4 = t22.nextSibling;
|
|
1065
|
+
t22.remove(), t22 = i4;
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
setConnected(t22) {
|
|
1069
|
+
void 0 === this._$AM && (this.v = t22, this._$AP?.(t22));
|
|
1070
|
+
}
|
|
1071
|
+
};
|
|
1072
|
+
var G2 = class {
|
|
1073
|
+
get tagName() {
|
|
1074
|
+
return this.element.tagName;
|
|
1075
|
+
}
|
|
1076
|
+
get _$AU() {
|
|
1077
|
+
return this._$AM._$AU;
|
|
1078
|
+
}
|
|
1079
|
+
constructor(t22, i32, s22, e42, h42) {
|
|
1080
|
+
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;
|
|
1081
|
+
}
|
|
1082
|
+
_$AI(t22, i32 = this, s22, e42) {
|
|
1083
|
+
const h42 = this.strings;
|
|
1084
|
+
let o42 = false;
|
|
1085
|
+
if (void 0 === h42) t22 = z2(this, t22, i32, 0), o42 = !st2(t22) || t22 !== this._$AH && t22 !== R2, o42 && (this._$AH = t22);
|
|
1086
|
+
else {
|
|
1087
|
+
const e52 = t22;
|
|
1088
|
+
let n52, r42;
|
|
1089
|
+
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;
|
|
1090
|
+
}
|
|
1091
|
+
o42 && !e42 && this.j(t22);
|
|
1092
|
+
}
|
|
1093
|
+
j(t22) {
|
|
1094
|
+
t22 === D2 ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t22 ?? "");
|
|
1095
|
+
}
|
|
1096
|
+
};
|
|
1097
|
+
var Y2 = class extends G2 {
|
|
1098
|
+
constructor() {
|
|
1099
|
+
super(...arguments), this.type = 3;
|
|
1100
|
+
}
|
|
1101
|
+
j(t22) {
|
|
1102
|
+
this.element[this.name] = t22 === D2 ? void 0 : t22;
|
|
1103
|
+
}
|
|
1104
|
+
};
|
|
1105
|
+
var Z2 = class extends G2 {
|
|
1106
|
+
constructor() {
|
|
1107
|
+
super(...arguments), this.type = 4;
|
|
1108
|
+
}
|
|
1109
|
+
j(t22) {
|
|
1110
|
+
this.element.toggleAttribute(this.name, !!t22 && t22 !== D2);
|
|
1111
|
+
}
|
|
1112
|
+
};
|
|
1113
|
+
var q2 = class extends G2 {
|
|
1114
|
+
constructor(t22, i32, s22, e42, h42) {
|
|
1115
|
+
super(t22, i32, s22, e42, h42), this.type = 5;
|
|
1116
|
+
}
|
|
1117
|
+
_$AI(t22, i32 = this) {
|
|
1118
|
+
if ((t22 = z2(this, t22, i32, 0) ?? D2) === R2) return;
|
|
1119
|
+
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);
|
|
1120
|
+
e42 && this.element.removeEventListener(this.name, this, s22), h42 && this.element.addEventListener(this.name, this, t22), this._$AH = t22;
|
|
1121
|
+
}
|
|
1122
|
+
handleEvent(t22) {
|
|
1123
|
+
"function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t22) : this._$AH.handleEvent(t22);
|
|
1124
|
+
}
|
|
1125
|
+
};
|
|
1126
|
+
var K2 = class {
|
|
1127
|
+
constructor(t22, i32, s22) {
|
|
1128
|
+
this.element = t22, this.type = 6, this._$AN = void 0, this._$AM = i32, this.options = s22;
|
|
1129
|
+
}
|
|
1130
|
+
get _$AU() {
|
|
1131
|
+
return this._$AM._$AU;
|
|
1132
|
+
}
|
|
1133
|
+
_$AI(t22) {
|
|
1134
|
+
z2(this, t22);
|
|
1135
|
+
}
|
|
1136
|
+
};
|
|
1137
|
+
var Re2 = n32.litHtmlPolyfillSupport;
|
|
1138
|
+
Re2?.(B2, et2), (n32.litHtmlVersions ??= []).push("3.2.0");
|
|
1139
|
+
var Q2 = (t22, i32, s22) => {
|
|
1140
|
+
const e42 = s22?.renderBefore ?? i32;
|
|
1141
|
+
let h42 = e42._$litPart$;
|
|
1142
|
+
if (void 0 === h42) {
|
|
1143
|
+
const t32 = s22?.renderBefore ?? null;
|
|
1144
|
+
e42._$litPart$ = h42 = new et2(i32.insertBefore(lt2(), t32), t32, void 0, s22 ?? {});
|
|
1145
|
+
}
|
|
1146
|
+
return h42._$AI(t22), h42;
|
|
1147
|
+
};
|
|
1148
|
+
var h32 = class extends b2 {
|
|
1149
|
+
constructor() {
|
|
1150
|
+
super(...arguments), this.renderOptions = { host: this }, this.o = void 0;
|
|
1151
|
+
}
|
|
1152
|
+
createRenderRoot() {
|
|
1153
|
+
const t22 = super.createRenderRoot();
|
|
1154
|
+
return this.renderOptions.renderBefore ??= t22.firstChild, t22;
|
|
1155
|
+
}
|
|
1156
|
+
update(t22) {
|
|
1157
|
+
const e42 = this.render();
|
|
1158
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t22), this.o = Q2(e42, this.renderRoot, this.renderOptions);
|
|
1159
|
+
}
|
|
1160
|
+
connectedCallback() {
|
|
1161
|
+
super.connectedCallback(), this.o?.setConnected(true);
|
|
1162
|
+
}
|
|
1163
|
+
disconnectedCallback() {
|
|
1164
|
+
super.disconnectedCallback(), this.o?.setConnected(false);
|
|
1165
|
+
}
|
|
1166
|
+
render() {
|
|
1167
|
+
return R2;
|
|
1168
|
+
}
|
|
1169
|
+
};
|
|
1170
|
+
h32._$litElement$ = true, h32["finalized"] = true, globalThis.litElementHydrateSupport?.({ LitElement: h32 });
|
|
1171
|
+
var f32 = globalThis.litElementPolyfillSupport;
|
|
1172
|
+
f32?.({ LitElement: h32 });
|
|
1173
|
+
(globalThis.litElementVersions ??= []).push("4.1.0");
|
|
1174
|
+
var o32 = { attribute: true, type: String, converter: u2, reflect: false, hasChanged: f4 };
|
|
1175
|
+
var r32 = (t22 = o32, e42, r42) => {
|
|
1176
|
+
const { kind: n52, metadata: i32 } = r42;
|
|
1177
|
+
let s22 = globalThis.litPropertyMetadata.get(i32);
|
|
1178
|
+
if (void 0 === s22 && globalThis.litPropertyMetadata.set(i32, s22 = /* @__PURE__ */ new Map()), s22.set(r42.name, t22), "accessor" === n52) {
|
|
1179
|
+
const { name: o42 } = r42;
|
|
1180
|
+
return { set(r52) {
|
|
1181
|
+
const n6 = e42.get.call(this);
|
|
1182
|
+
e42.set.call(this, r52), this.requestUpdate(o42, n6, t22);
|
|
1183
|
+
}, init(e52) {
|
|
1184
|
+
return void 0 !== e52 && this.P(o42, void 0, t22), e52;
|
|
1185
|
+
} };
|
|
1186
|
+
}
|
|
1187
|
+
if ("setter" === n52) {
|
|
1188
|
+
const { name: o42 } = r42;
|
|
1189
|
+
return function(r52) {
|
|
1190
|
+
const n6 = this[o42];
|
|
1191
|
+
e42.call(this, r52), this.requestUpdate(o42, n6, t22);
|
|
1192
|
+
};
|
|
1193
|
+
}
|
|
1194
|
+
throw Error("Unsupported decorator location: " + n52);
|
|
1195
|
+
};
|
|
1196
|
+
function n42(t22) {
|
|
1197
|
+
return (e42, o42) => "object" == typeof o42 ? r32(t22, e42, o42) : ((t32, e52, o5) => {
|
|
1198
|
+
const r42 = e52.hasOwnProperty(o5);
|
|
1199
|
+
return e52.constructor.createProperty(o5, r42 ? { ...t32, wrapped: true } : t32), r42 ? Object.getOwnPropertyDescriptor(e52, o5) : void 0;
|
|
1200
|
+
})(t22, e42, o42);
|
|
1201
|
+
}
|
|
1202
|
+
var appliedClassMixins = /* @__PURE__ */ new WeakMap();
|
|
1203
|
+
function wasMixinPreviouslyApplied(mixin, superClass) {
|
|
1204
|
+
let klass = superClass;
|
|
1205
|
+
while (klass) {
|
|
1206
|
+
if (appliedClassMixins.get(klass) === mixin) {
|
|
1207
|
+
return true;
|
|
1208
|
+
}
|
|
1209
|
+
klass = Object.getPrototypeOf(klass);
|
|
1210
|
+
}
|
|
1211
|
+
return false;
|
|
1212
|
+
}
|
|
1213
|
+
function dedupeMixin(mixin) {
|
|
1214
|
+
return (superClass) => {
|
|
1215
|
+
if (wasMixinPreviouslyApplied(mixin, superClass)) {
|
|
1216
|
+
return superClass;
|
|
1217
|
+
}
|
|
1218
|
+
const mixedClass = mixin(superClass);
|
|
1219
|
+
appliedClassMixins.set(mixedClass, mixin);
|
|
1220
|
+
return mixedClass;
|
|
1221
|
+
};
|
|
1222
|
+
}
|
|
1223
|
+
var version = "3.0.0";
|
|
1224
|
+
var versions = window.scopedElementsVersions || (window.scopedElementsVersions = []);
|
|
1225
|
+
if (!versions.includes(version)) {
|
|
1226
|
+
versions.push(version);
|
|
1227
|
+
}
|
|
1228
|
+
var ScopedElementsMixinImplementation = (superclass) => (
|
|
1229
|
+
/** @type {ScopedElementsHost} */
|
|
1230
|
+
class ScopedElementsHost extends superclass {
|
|
1231
|
+
/**
|
|
1232
|
+
* Obtains the scoped elements definitions map if specified.
|
|
1233
|
+
*
|
|
1234
|
+
* @type {ScopedElementsMap=}
|
|
1235
|
+
*/
|
|
1236
|
+
static scopedElements;
|
|
1237
|
+
static get scopedElementsVersion() {
|
|
1238
|
+
return version;
|
|
1239
|
+
}
|
|
1240
|
+
/** @type {CustomElementRegistry=} */
|
|
1241
|
+
static __registry;
|
|
1242
|
+
/**
|
|
1243
|
+
* Obtains the CustomElementRegistry associated to the ShadowRoot.
|
|
1244
|
+
*
|
|
1245
|
+
* @returns {CustomElementRegistry=}
|
|
1246
|
+
*/
|
|
1247
|
+
get registry() {
|
|
1248
|
+
return (
|
|
1249
|
+
/** @type {typeof ScopedElementsHost} */
|
|
1250
|
+
this.constructor.__registry
|
|
1251
|
+
);
|
|
1252
|
+
}
|
|
1253
|
+
/**
|
|
1254
|
+
* Set the CustomElementRegistry associated to the ShadowRoot
|
|
1255
|
+
*
|
|
1256
|
+
* @param {CustomElementRegistry} registry
|
|
1257
|
+
*/
|
|
1258
|
+
set registry(registry2) {
|
|
1259
|
+
this.constructor.__registry = registry2;
|
|
1260
|
+
}
|
|
1261
|
+
/**
|
|
1262
|
+
* @param {ShadowRootInit} options
|
|
1263
|
+
* @returns {ShadowRoot}
|
|
1264
|
+
*/
|
|
1265
|
+
attachShadow(options) {
|
|
1266
|
+
const { scopedElements } = (
|
|
1267
|
+
/** @type {typeof ScopedElementsHost} */
|
|
1268
|
+
this.constructor
|
|
1269
|
+
);
|
|
1270
|
+
const shouldCreateRegistry = !this.registry || // @ts-ignore
|
|
1271
|
+
this.registry === this.constructor.__registry && !Object.prototype.hasOwnProperty.call(this.constructor, "__registry");
|
|
1272
|
+
if (shouldCreateRegistry) {
|
|
1273
|
+
this.registry = new CustomElementRegistry();
|
|
1274
|
+
for (const [tagName, klass] of Object.entries(scopedElements ?? {})) {
|
|
1275
|
+
this.registry.define(tagName, klass);
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1278
|
+
return super.attachShadow({
|
|
1279
|
+
...options,
|
|
1280
|
+
// The polyfill currently expects the registry to be passed as `customElements`
|
|
1281
|
+
customElements: this.registry,
|
|
1282
|
+
// But the proposal has moved forward, and renamed it to `registry`
|
|
1283
|
+
// For backwards compatibility, we pass it as both
|
|
1284
|
+
registry: this.registry
|
|
1285
|
+
});
|
|
1286
|
+
}
|
|
1287
|
+
}
|
|
1288
|
+
);
|
|
1289
|
+
var ScopedElementsMixin = dedupeMixin(ScopedElementsMixinImplementation);
|
|
1290
|
+
var ScopedElementsMixinImplementation2 = (superclass) => (
|
|
1291
|
+
/** @type {ScopedElementsHost} */
|
|
1292
|
+
class ScopedElementsHost extends ScopedElementsMixin(superclass) {
|
|
1293
|
+
createRenderRoot() {
|
|
1294
|
+
const { shadowRootOptions, elementStyles } = (
|
|
1295
|
+
/** @type {TypeofLitElement} */
|
|
1296
|
+
this.constructor
|
|
1297
|
+
);
|
|
1298
|
+
const shadowRoot = this.attachShadow(shadowRootOptions);
|
|
1299
|
+
this.renderOptions.creationScope = shadowRoot;
|
|
1300
|
+
S3(shadowRoot, elementStyles);
|
|
1301
|
+
this.renderOptions.renderBefore ??= shadowRoot.firstChild;
|
|
1302
|
+
return shadowRoot;
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
);
|
|
1306
|
+
var ScopedElementsMixin2 = dedupeMixin(ScopedElementsMixinImplementation2);
|
|
1307
|
+
function option(decl = { type: "string" }) {
|
|
1308
|
+
return (target, context) => {
|
|
1309
|
+
function init() {
|
|
1310
|
+
this.constructor["options"] = { ...this.constructor["options"], [context.name]: decl };
|
|
1311
|
+
}
|
|
1312
|
+
context.addInitializer(init);
|
|
1313
|
+
};
|
|
1314
|
+
}
|
|
1315
|
+
var _lang_dec;
|
|
1316
|
+
var _contentEditable_dec;
|
|
1317
|
+
var _a;
|
|
1318
|
+
var _init;
|
|
1319
|
+
var _contentEditable;
|
|
1320
|
+
var _lang;
|
|
1321
|
+
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) {
|
|
1322
|
+
constructor() {
|
|
1323
|
+
super(...arguments);
|
|
1324
|
+
__publicField2(this, "options");
|
|
1325
|
+
__publicField2(this, "actions", {});
|
|
1326
|
+
__privateAdd2(this, _contentEditable, __runInitializers2(_init, 8, this)), __runInitializers2(_init, 11, this);
|
|
1327
|
+
__privateAdd2(this, _lang, __runInitializers2(_init, 12, this)), __runInitializers2(_init, 15, this);
|
|
1328
|
+
__publicField2(this, "_inTransaction", false);
|
|
1329
|
+
}
|
|
1330
|
+
connectedCallback() {
|
|
1331
|
+
super.connectedCallback();
|
|
1332
|
+
this.getAttributeNames().forEach((k22) => this.setAttribute(k22, this.getAttribute(k22)));
|
|
1333
|
+
}
|
|
1334
|
+
};
|
|
1335
|
+
_init = __decoratorStart2(_a);
|
|
1336
|
+
_contentEditable = /* @__PURE__ */ new WeakMap();
|
|
1337
|
+
_lang = /* @__PURE__ */ new WeakMap();
|
|
1338
|
+
__decorateElement2(_init, 4, "contentEditable", _contentEditable_dec, LitElementWw, _contentEditable);
|
|
1339
|
+
__decorateElement2(_init, 4, "lang", _lang_dec, LitElementWw, _lang);
|
|
1340
|
+
__decoratorMetadata2(_init, LitElementWw);
|
|
1341
|
+
__publicField2(LitElementWw, "shadowRootOptions", { ...h32.shadowRootOptions });
|
|
1342
|
+
__publicField2(LitElementWw, "options", {});
|
|
1343
|
+
__publicField2(LitElementWw, "actions", {});
|
|
1344
|
+
|
|
1345
|
+
// ../../node_modules/lit/node_modules/@lit/reactive-element/decorators/custom-element.js
|
|
1346
|
+
var t3 = (t5) => (e8, o5) => {
|
|
1347
|
+
void 0 !== o5 ? o5.addInitializer(() => {
|
|
1348
|
+
customElements.define(t5, e8);
|
|
1349
|
+
}) : customElements.define(t5, e8);
|
|
1350
|
+
};
|
|
1351
|
+
|
|
1352
|
+
// ../../node_modules/lit/node_modules/@lit/reactive-element/decorators/property.js
|
|
1353
|
+
var o4 = { attribute: true, type: String, converter: u, reflect: false, hasChanged: f };
|
|
1354
|
+
var r4 = (t5 = o4, e8, r7) => {
|
|
1355
|
+
const { kind: n6, metadata: i4 } = r7;
|
|
1356
|
+
let s3 = globalThis.litPropertyMetadata.get(i4);
|
|
1357
|
+
if (void 0 === s3 && globalThis.litPropertyMetadata.set(i4, s3 = /* @__PURE__ */ new Map()), s3.set(r7.name, t5), "accessor" === n6) {
|
|
1358
|
+
const { name: o5 } = r7;
|
|
1359
|
+
return { set(r8) {
|
|
1360
|
+
const n7 = e8.get.call(this);
|
|
1361
|
+
e8.set.call(this, r8), this.requestUpdate(o5, n7, t5);
|
|
1362
|
+
}, init(e9) {
|
|
1363
|
+
return void 0 !== e9 && this.P(o5, void 0, t5), e9;
|
|
1364
|
+
} };
|
|
1365
|
+
}
|
|
1366
|
+
if ("setter" === n6) {
|
|
1367
|
+
const { name: o5 } = r7;
|
|
1368
|
+
return function(r8) {
|
|
1369
|
+
const n7 = this[o5];
|
|
1370
|
+
e8.call(this, r8), this.requestUpdate(o5, n7, t5);
|
|
1371
|
+
};
|
|
1372
|
+
}
|
|
1373
|
+
throw Error("Unsupported decorator location: " + n6);
|
|
1374
|
+
};
|
|
1375
|
+
function n5(t5) {
|
|
1376
|
+
return (e8, o5) => "object" == typeof o5 ? r4(t5, e8, o5) : ((t6, e9, o6) => {
|
|
1377
|
+
const r7 = e9.hasOwnProperty(o6);
|
|
1378
|
+
return e9.constructor.createProperty(o6, r7 ? { ...t6, wrapped: true } : t6), r7 ? Object.getOwnPropertyDescriptor(e9, o6) : void 0;
|
|
1379
|
+
})(t5, e8, o5);
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
// ../../node_modules/lit/node_modules/@lit/reactive-element/decorators/state.js
|
|
1383
|
+
function r5(r7) {
|
|
1384
|
+
return n5({ ...r7, state: true, attribute: false });
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
// ../../node_modules/lit/node_modules/@lit/reactive-element/decorators/base.js
|
|
1388
|
+
var e4 = (e8, t5, c5) => (c5.configurable = true, c5.enumerable = true, Reflect.decorate && "object" != typeof t5 && Object.defineProperty(e8, t5, c5), c5);
|
|
1389
|
+
|
|
1390
|
+
// ../../node_modules/lit/node_modules/@lit/reactive-element/decorators/query.js
|
|
1391
|
+
function e5(e8, r7) {
|
|
1392
|
+
return (n6, s3, i4) => {
|
|
1393
|
+
const o5 = (t5) => t5.renderRoot?.querySelector(e8) ?? null;
|
|
1394
|
+
if (r7) {
|
|
1395
|
+
const { get: e9, set: r8 } = "object" == typeof s3 ? n6 : i4 ?? (() => {
|
|
1396
|
+
const t5 = Symbol();
|
|
1397
|
+
return { get() {
|
|
1398
|
+
return this[t5];
|
|
1399
|
+
}, set(e10) {
|
|
1400
|
+
this[t5] = e10;
|
|
1401
|
+
} };
|
|
1402
|
+
})();
|
|
1403
|
+
return e4(n6, s3, { get() {
|
|
1404
|
+
let t5 = e9.call(this);
|
|
1405
|
+
return void 0 === t5 && (t5 = o5(this), (null !== t5 || this.hasUpdated) && r8.call(this, t5)), t5;
|
|
1406
|
+
} });
|
|
1407
|
+
}
|
|
1408
|
+
return e4(n6, s3, { get() {
|
|
1409
|
+
return o5(this);
|
|
1410
|
+
} });
|
|
1411
|
+
};
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
// ../../node_modules/lit/node_modules/@lit/reactive-element/decorators/query-all.js
|
|
1415
|
+
var e6;
|
|
1416
|
+
function r6(r7) {
|
|
1417
|
+
return (n6, o5) => e4(n6, o5, { get() {
|
|
1418
|
+
return (this.renderRoot ?? (e6 ??= document.createDocumentFragment())).querySelectorAll(r7);
|
|
1419
|
+
} });
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
// ../../node_modules/bootstrap-icons/icons/plus.svg
|
|
1423
|
+
var plus_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-plus" viewBox="0 0 16 16">%0A <path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4"/>%0A</svg>';
|
|
1424
|
+
|
|
1425
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.7DUCI5S4.js
|
|
1426
|
+
var spinner_styles_default = i`
|
|
1427
|
+
:host {
|
|
1428
|
+
--track-width: 2px;
|
|
1429
|
+
--track-color: rgb(128 128 128 / 25%);
|
|
1430
|
+
--indicator-color: var(--sl-color-primary-600);
|
|
1431
|
+
--speed: 2s;
|
|
1432
|
+
|
|
1433
|
+
display: inline-flex;
|
|
1434
|
+
width: 1em;
|
|
1435
|
+
height: 1em;
|
|
1436
|
+
flex: none;
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
.spinner {
|
|
1440
|
+
flex: 1 1 auto;
|
|
1441
|
+
height: 100%;
|
|
1442
|
+
width: 100%;
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1445
|
+
.spinner__track,
|
|
1446
|
+
.spinner__indicator {
|
|
1447
|
+
fill: none;
|
|
1448
|
+
stroke-width: var(--track-width);
|
|
1449
|
+
r: calc(0.5em - var(--track-width) / 2);
|
|
1450
|
+
cx: 0.5em;
|
|
1451
|
+
cy: 0.5em;
|
|
1452
|
+
transform-origin: 50% 50%;
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
.spinner__track {
|
|
1456
|
+
stroke: var(--track-color);
|
|
1457
|
+
transform-origin: 0% 0%;
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
.spinner__indicator {
|
|
1461
|
+
stroke: var(--indicator-color);
|
|
1462
|
+
stroke-linecap: round;
|
|
1463
|
+
stroke-dasharray: 150% 75%;
|
|
1464
|
+
animation: spin var(--speed) linear infinite;
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
@keyframes spin {
|
|
1468
|
+
0% {
|
|
1469
|
+
transform: rotate(0deg);
|
|
1470
|
+
stroke-dasharray: 0.05em, 3em;
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
50% {
|
|
1474
|
+
transform: rotate(450deg);
|
|
1475
|
+
stroke-dasharray: 1.375em, 1.375em;
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
100% {
|
|
1479
|
+
transform: rotate(1080deg);
|
|
1480
|
+
stroke-dasharray: 0.05em, 3em;
|
|
1481
|
+
}
|
|
1482
|
+
}
|
|
1483
|
+
`;
|
|
1484
|
+
|
|
1485
|
+
// ../../node_modules/@shoelace-style/localize/dist/index.js
|
|
1486
|
+
var connectedElements = /* @__PURE__ */ new Set();
|
|
1487
|
+
var documentElementObserver = new MutationObserver(update);
|
|
1488
|
+
var translations = /* @__PURE__ */ new Map();
|
|
1489
|
+
var documentDirection = document.documentElement.dir || "ltr";
|
|
1490
|
+
var documentLanguage = document.documentElement.lang || navigator.language;
|
|
1491
|
+
var fallback;
|
|
1492
|
+
documentElementObserver.observe(document.documentElement, {
|
|
1493
|
+
attributes: true,
|
|
1494
|
+
attributeFilter: ["dir", "lang"]
|
|
1495
|
+
});
|
|
1496
|
+
function registerTranslation(...translation2) {
|
|
1497
|
+
translation2.map((t5) => {
|
|
1498
|
+
const code = t5.$code.toLowerCase();
|
|
1499
|
+
if (translations.has(code)) {
|
|
1500
|
+
translations.set(code, Object.assign(Object.assign({}, translations.get(code)), t5));
|
|
1501
|
+
} else {
|
|
1502
|
+
translations.set(code, t5);
|
|
1503
|
+
}
|
|
1504
|
+
if (!fallback) {
|
|
1505
|
+
fallback = t5;
|
|
1506
|
+
}
|
|
1507
|
+
});
|
|
1508
|
+
update();
|
|
1509
|
+
}
|
|
1510
|
+
function update() {
|
|
1511
|
+
documentDirection = document.documentElement.dir || "ltr";
|
|
1512
|
+
documentLanguage = document.documentElement.lang || navigator.language;
|
|
1513
|
+
[...connectedElements.keys()].map((el) => {
|
|
1514
|
+
if (typeof el.requestUpdate === "function") {
|
|
1515
|
+
el.requestUpdate();
|
|
1516
|
+
}
|
|
1517
|
+
});
|
|
1518
|
+
}
|
|
1519
|
+
var LocalizeController = class {
|
|
1520
|
+
constructor(host) {
|
|
1521
|
+
this.host = host;
|
|
1522
|
+
this.host.addController(this);
|
|
1523
|
+
}
|
|
1524
|
+
hostConnected() {
|
|
1525
|
+
connectedElements.add(this.host);
|
|
1526
|
+
}
|
|
1527
|
+
hostDisconnected() {
|
|
1528
|
+
connectedElements.delete(this.host);
|
|
1529
|
+
}
|
|
1530
|
+
dir() {
|
|
1531
|
+
return `${this.host.dir || documentDirection}`.toLowerCase();
|
|
1532
|
+
}
|
|
1533
|
+
lang() {
|
|
1534
|
+
return `${this.host.lang || documentLanguage}`.toLowerCase();
|
|
1535
|
+
}
|
|
1536
|
+
getTranslationData(lang) {
|
|
1537
|
+
var _a3, _b;
|
|
1538
|
+
const locale = new Intl.Locale(lang.replace(/_/g, "-"));
|
|
1539
|
+
const language = locale === null || locale === void 0 ? void 0 : locale.language.toLowerCase();
|
|
1540
|
+
const region = (_b = (_a3 = locale === null || locale === void 0 ? void 0 : locale.region) === null || _a3 === void 0 ? void 0 : _a3.toLowerCase()) !== null && _b !== void 0 ? _b : "";
|
|
1541
|
+
const primary = translations.get(`${language}-${region}`);
|
|
1542
|
+
const secondary = translations.get(language);
|
|
1543
|
+
return { locale, language, region, primary, secondary };
|
|
1544
|
+
}
|
|
1545
|
+
exists(key, options) {
|
|
1546
|
+
var _a3;
|
|
1547
|
+
const { primary, secondary } = this.getTranslationData((_a3 = options.lang) !== null && _a3 !== void 0 ? _a3 : this.lang());
|
|
1548
|
+
options = Object.assign({ includeFallback: false }, options);
|
|
1549
|
+
if (primary && primary[key] || secondary && secondary[key] || options.includeFallback && fallback && fallback[key]) {
|
|
1550
|
+
return true;
|
|
1551
|
+
}
|
|
1552
|
+
return false;
|
|
1553
|
+
}
|
|
1554
|
+
term(key, ...args) {
|
|
1555
|
+
const { primary, secondary } = this.getTranslationData(this.lang());
|
|
1556
|
+
let term;
|
|
1557
|
+
if (primary && primary[key]) {
|
|
1558
|
+
term = primary[key];
|
|
1559
|
+
} else if (secondary && secondary[key]) {
|
|
1560
|
+
term = secondary[key];
|
|
1561
|
+
} else if (fallback && fallback[key]) {
|
|
1562
|
+
term = fallback[key];
|
|
1563
|
+
} else {
|
|
1564
|
+
console.error(`No translation found for: ${String(key)}`);
|
|
1565
|
+
return String(key);
|
|
1566
|
+
}
|
|
1567
|
+
if (typeof term === "function") {
|
|
1568
|
+
return term(...args);
|
|
1569
|
+
}
|
|
1570
|
+
return term;
|
|
1571
|
+
}
|
|
1572
|
+
date(dateToFormat, options) {
|
|
1573
|
+
dateToFormat = new Date(dateToFormat);
|
|
1574
|
+
return new Intl.DateTimeFormat(this.lang(), options).format(dateToFormat);
|
|
1575
|
+
}
|
|
1576
|
+
number(numberToFormat, options) {
|
|
1577
|
+
numberToFormat = Number(numberToFormat);
|
|
1578
|
+
return isNaN(numberToFormat) ? "" : new Intl.NumberFormat(this.lang(), options).format(numberToFormat);
|
|
1579
|
+
}
|
|
1580
|
+
relativeTime(value, unit, options) {
|
|
1581
|
+
return new Intl.RelativeTimeFormat(this.lang(), options).format(value, unit);
|
|
1582
|
+
}
|
|
1583
|
+
};
|
|
1584
|
+
|
|
1585
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.MAS2SHYD.js
|
|
1586
|
+
var translation = {
|
|
1587
|
+
$code: "en",
|
|
1588
|
+
$name: "English",
|
|
1589
|
+
$dir: "ltr",
|
|
1590
|
+
carousel: "Carousel",
|
|
1591
|
+
clearEntry: "Clear entry",
|
|
1592
|
+
close: "Close",
|
|
1593
|
+
copied: "Copied",
|
|
1594
|
+
copy: "Copy",
|
|
1595
|
+
currentValue: "Current value",
|
|
1596
|
+
error: "Error",
|
|
1597
|
+
goToSlide: (slide, count) => `Go to slide ${slide} of ${count}`,
|
|
1598
|
+
hidePassword: "Hide password",
|
|
1599
|
+
loading: "Loading",
|
|
1600
|
+
nextSlide: "Next slide",
|
|
1601
|
+
numOptionsSelected: (num) => {
|
|
1602
|
+
if (num === 0)
|
|
1603
|
+
return "No options selected";
|
|
1604
|
+
if (num === 1)
|
|
1605
|
+
return "1 option selected";
|
|
1606
|
+
return `${num} options selected`;
|
|
1607
|
+
},
|
|
1608
|
+
previousSlide: "Previous slide",
|
|
1609
|
+
progress: "Progress",
|
|
1610
|
+
remove: "Remove",
|
|
1611
|
+
resize: "Resize",
|
|
1612
|
+
scrollToEnd: "Scroll to end",
|
|
1613
|
+
scrollToStart: "Scroll to start",
|
|
1614
|
+
selectAColorFromTheScreen: "Select a color from the screen",
|
|
1615
|
+
showPassword: "Show password",
|
|
1616
|
+
slideNum: (slide) => `Slide ${slide}`,
|
|
1617
|
+
toggleColorFormat: "Toggle color format"
|
|
1618
|
+
};
|
|
1619
|
+
registerTranslation(translation);
|
|
1620
|
+
var en_default = translation;
|
|
1621
|
+
|
|
1622
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.WLV3FVBR.js
|
|
1623
|
+
var LocalizeController2 = class extends LocalizeController {
|
|
1624
|
+
};
|
|
1625
|
+
registerTranslation(en_default);
|
|
1626
|
+
|
|
1627
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.TUVJKY7S.js
|
|
1628
|
+
var component_styles_default = i`
|
|
1629
|
+
:host {
|
|
1630
|
+
box-sizing: border-box;
|
|
1631
|
+
}
|
|
1632
|
+
|
|
1633
|
+
:host *,
|
|
1634
|
+
:host *::before,
|
|
1635
|
+
:host *::after {
|
|
1636
|
+
box-sizing: inherit;
|
|
1637
|
+
}
|
|
1638
|
+
|
|
1639
|
+
[hidden] {
|
|
1640
|
+
display: none !important;
|
|
1641
|
+
}
|
|
1642
|
+
`;
|
|
1643
|
+
|
|
1644
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.IFDWM6P4.js
|
|
1645
|
+
var __defProp3 = Object.defineProperty;
|
|
1646
|
+
var __defProps = Object.defineProperties;
|
|
1647
|
+
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
|
1648
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
1649
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
1650
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1651
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
1652
|
+
var __defNormalProp3 = (obj, key, value) => key in obj ? __defProp3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1653
|
+
var __spreadValues = (a3, b3) => {
|
|
1654
|
+
for (var prop in b3 || (b3 = {}))
|
|
1655
|
+
if (__hasOwnProp.call(b3, prop))
|
|
1656
|
+
__defNormalProp3(a3, prop, b3[prop]);
|
|
1657
|
+
if (__getOwnPropSymbols)
|
|
1658
|
+
for (var prop of __getOwnPropSymbols(b3)) {
|
|
1659
|
+
if (__propIsEnum.call(b3, prop))
|
|
1660
|
+
__defNormalProp3(a3, prop, b3[prop]);
|
|
1661
|
+
}
|
|
1662
|
+
return a3;
|
|
1663
|
+
};
|
|
1664
|
+
var __spreadProps = (a3, b3) => __defProps(a3, __getOwnPropDescs(b3));
|
|
1665
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
1666
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc3(target, key) : target;
|
|
1667
|
+
for (var i4 = decorators.length - 1, decorator; i4 >= 0; i4--)
|
|
1668
|
+
if (decorator = decorators[i4])
|
|
1669
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
1670
|
+
if (kind && result)
|
|
1671
|
+
__defProp3(target, key, result);
|
|
1672
|
+
return result;
|
|
1673
|
+
};
|
|
1674
|
+
|
|
1675
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.5THGRZAA.js
|
|
1676
|
+
var ShoelaceElement = class extends h3 {
|
|
1677
|
+
constructor() {
|
|
1678
|
+
super();
|
|
1679
|
+
Object.entries(this.constructor.dependencies).forEach(([name, component]) => {
|
|
1680
|
+
this.constructor.define(name, component);
|
|
1681
|
+
});
|
|
1682
|
+
}
|
|
1683
|
+
emit(name, options) {
|
|
1684
|
+
const event = new CustomEvent(name, __spreadValues({
|
|
1685
|
+
bubbles: true,
|
|
1686
|
+
cancelable: false,
|
|
1687
|
+
composed: true,
|
|
1688
|
+
detail: {}
|
|
1689
|
+
}, options));
|
|
1690
|
+
this.dispatchEvent(event);
|
|
1691
|
+
return event;
|
|
1692
|
+
}
|
|
1693
|
+
/* eslint-enable */
|
|
1694
|
+
static define(name, elementConstructor = this, options = {}) {
|
|
1695
|
+
const currentlyRegisteredConstructor = customElements.get(name);
|
|
1696
|
+
if (!currentlyRegisteredConstructor) {
|
|
1697
|
+
try {
|
|
1698
|
+
customElements.define(name, elementConstructor, options);
|
|
1699
|
+
} catch (_err) {
|
|
1700
|
+
customElements.define(name, class extends elementConstructor {
|
|
1701
|
+
}, options);
|
|
1702
|
+
}
|
|
1703
|
+
return;
|
|
1704
|
+
}
|
|
1705
|
+
let newVersion = " (unknown version)";
|
|
1706
|
+
let existingVersion = newVersion;
|
|
1707
|
+
if ("version" in elementConstructor && elementConstructor.version) {
|
|
1708
|
+
newVersion = " v" + elementConstructor.version;
|
|
1709
|
+
}
|
|
1710
|
+
if ("version" in currentlyRegisteredConstructor && currentlyRegisteredConstructor.version) {
|
|
1711
|
+
existingVersion = " v" + currentlyRegisteredConstructor.version;
|
|
1712
|
+
}
|
|
1713
|
+
if (newVersion && existingVersion && newVersion === existingVersion) {
|
|
1714
|
+
return;
|
|
1715
|
+
}
|
|
1716
|
+
console.warn(
|
|
1717
|
+
`Attempted to register <${name}>${newVersion}, but <${name}>${existingVersion} has already been registered.`
|
|
1718
|
+
);
|
|
1719
|
+
}
|
|
1720
|
+
};
|
|
1721
|
+
ShoelaceElement.version = "2.16.0";
|
|
1722
|
+
ShoelaceElement.dependencies = {};
|
|
1723
|
+
__decorateClass([
|
|
1724
|
+
n5()
|
|
1725
|
+
], ShoelaceElement.prototype, "dir", 2);
|
|
1726
|
+
__decorateClass([
|
|
1727
|
+
n5()
|
|
1728
|
+
], ShoelaceElement.prototype, "lang", 2);
|
|
1729
|
+
|
|
1730
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.7HOIOSC7.js
|
|
1731
|
+
var SlSpinner = class extends ShoelaceElement {
|
|
1732
|
+
constructor() {
|
|
1733
|
+
super(...arguments);
|
|
1734
|
+
this.localize = new LocalizeController2(this);
|
|
1735
|
+
}
|
|
1736
|
+
render() {
|
|
1737
|
+
return ke`
|
|
1738
|
+
<svg part="base" class="spinner" role="progressbar" aria-label=${this.localize.term("loading")}>
|
|
1739
|
+
<circle class="spinner__track"></circle>
|
|
1740
|
+
<circle class="spinner__indicator"></circle>
|
|
1741
|
+
</svg>
|
|
1742
|
+
`;
|
|
1743
|
+
}
|
|
1744
|
+
};
|
|
1745
|
+
SlSpinner.styles = [component_styles_default, spinner_styles_default];
|
|
1746
|
+
|
|
1747
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.KWPBDQ6I.js
|
|
1748
|
+
var formCollections = /* @__PURE__ */ new WeakMap();
|
|
1749
|
+
var reportValidityOverloads = /* @__PURE__ */ new WeakMap();
|
|
1750
|
+
var checkValidityOverloads = /* @__PURE__ */ new WeakMap();
|
|
1751
|
+
var userInteractedControls = /* @__PURE__ */ new WeakSet();
|
|
1752
|
+
var interactions = /* @__PURE__ */ new WeakMap();
|
|
1753
|
+
var FormControlController = class {
|
|
1754
|
+
constructor(host, options) {
|
|
1755
|
+
this.handleFormData = (event) => {
|
|
1756
|
+
const disabled = this.options.disabled(this.host);
|
|
1757
|
+
const name = this.options.name(this.host);
|
|
1758
|
+
const value = this.options.value(this.host);
|
|
1759
|
+
const isButton = this.host.tagName.toLowerCase() === "sl-button";
|
|
1760
|
+
if (this.host.isConnected && !disabled && !isButton && typeof name === "string" && name.length > 0 && typeof value !== "undefined") {
|
|
1761
|
+
if (Array.isArray(value)) {
|
|
1762
|
+
value.forEach((val) => {
|
|
1763
|
+
event.formData.append(name, val.toString());
|
|
1764
|
+
});
|
|
1765
|
+
} else {
|
|
1766
|
+
event.formData.append(name, value.toString());
|
|
1767
|
+
}
|
|
1768
|
+
}
|
|
1769
|
+
};
|
|
1770
|
+
this.handleFormSubmit = (event) => {
|
|
1771
|
+
var _a3;
|
|
1772
|
+
const disabled = this.options.disabled(this.host);
|
|
1773
|
+
const reportValidity = this.options.reportValidity;
|
|
1774
|
+
if (this.form && !this.form.noValidate) {
|
|
1775
|
+
(_a3 = formCollections.get(this.form)) == null ? void 0 : _a3.forEach((control) => {
|
|
1776
|
+
this.setUserInteracted(control, true);
|
|
1777
|
+
});
|
|
1778
|
+
}
|
|
1779
|
+
if (this.form && !this.form.noValidate && !disabled && !reportValidity(this.host)) {
|
|
1780
|
+
event.preventDefault();
|
|
1781
|
+
event.stopImmediatePropagation();
|
|
1782
|
+
}
|
|
1783
|
+
};
|
|
1784
|
+
this.handleFormReset = () => {
|
|
1785
|
+
this.options.setValue(this.host, this.options.defaultValue(this.host));
|
|
1786
|
+
this.setUserInteracted(this.host, false);
|
|
1787
|
+
interactions.set(this.host, []);
|
|
1788
|
+
};
|
|
1789
|
+
this.handleInteraction = (event) => {
|
|
1790
|
+
const emittedEvents = interactions.get(this.host);
|
|
1791
|
+
if (!emittedEvents.includes(event.type)) {
|
|
1792
|
+
emittedEvents.push(event.type);
|
|
1793
|
+
}
|
|
1794
|
+
if (emittedEvents.length === this.options.assumeInteractionOn.length) {
|
|
1795
|
+
this.setUserInteracted(this.host, true);
|
|
1796
|
+
}
|
|
1797
|
+
};
|
|
1798
|
+
this.checkFormValidity = () => {
|
|
1799
|
+
if (this.form && !this.form.noValidate) {
|
|
1800
|
+
const elements = this.form.querySelectorAll("*");
|
|
1801
|
+
for (const element of elements) {
|
|
1802
|
+
if (typeof element.checkValidity === "function") {
|
|
1803
|
+
if (!element.checkValidity()) {
|
|
1804
|
+
return false;
|
|
1805
|
+
}
|
|
1806
|
+
}
|
|
1807
|
+
}
|
|
1808
|
+
}
|
|
1809
|
+
return true;
|
|
1810
|
+
};
|
|
1811
|
+
this.reportFormValidity = () => {
|
|
1812
|
+
if (this.form && !this.form.noValidate) {
|
|
1813
|
+
const elements = this.form.querySelectorAll("*");
|
|
1814
|
+
for (const element of elements) {
|
|
1815
|
+
if (typeof element.reportValidity === "function") {
|
|
1816
|
+
if (!element.reportValidity()) {
|
|
1817
|
+
return false;
|
|
1818
|
+
}
|
|
1819
|
+
}
|
|
1820
|
+
}
|
|
1821
|
+
}
|
|
1822
|
+
return true;
|
|
1823
|
+
};
|
|
1824
|
+
(this.host = host).addController(this);
|
|
1825
|
+
this.options = __spreadValues({
|
|
1826
|
+
form: (input) => {
|
|
1827
|
+
const formId = input.form;
|
|
1828
|
+
if (formId) {
|
|
1829
|
+
const root = input.getRootNode();
|
|
1830
|
+
const form = root.querySelector(`#${formId}`);
|
|
1831
|
+
if (form) {
|
|
1832
|
+
return form;
|
|
1833
|
+
}
|
|
1834
|
+
}
|
|
1835
|
+
return input.closest("form");
|
|
1836
|
+
},
|
|
1837
|
+
name: (input) => input.name,
|
|
1838
|
+
value: (input) => input.value,
|
|
1839
|
+
defaultValue: (input) => input.defaultValue,
|
|
1840
|
+
disabled: (input) => {
|
|
1841
|
+
var _a3;
|
|
1842
|
+
return (_a3 = input.disabled) != null ? _a3 : false;
|
|
1843
|
+
},
|
|
1844
|
+
reportValidity: (input) => typeof input.reportValidity === "function" ? input.reportValidity() : true,
|
|
1845
|
+
checkValidity: (input) => typeof input.checkValidity === "function" ? input.checkValidity() : true,
|
|
1846
|
+
setValue: (input, value) => input.value = value,
|
|
1847
|
+
assumeInteractionOn: ["sl-input"]
|
|
1848
|
+
}, options);
|
|
1849
|
+
}
|
|
1850
|
+
hostConnected() {
|
|
1851
|
+
const form = this.options.form(this.host);
|
|
1852
|
+
if (form) {
|
|
1853
|
+
this.attachForm(form);
|
|
1854
|
+
}
|
|
1855
|
+
interactions.set(this.host, []);
|
|
1856
|
+
this.options.assumeInteractionOn.forEach((event) => {
|
|
1857
|
+
this.host.addEventListener(event, this.handleInteraction);
|
|
1858
|
+
});
|
|
1859
|
+
}
|
|
1860
|
+
hostDisconnected() {
|
|
1861
|
+
this.detachForm();
|
|
1862
|
+
interactions.delete(this.host);
|
|
1863
|
+
this.options.assumeInteractionOn.forEach((event) => {
|
|
1864
|
+
this.host.removeEventListener(event, this.handleInteraction);
|
|
1865
|
+
});
|
|
1866
|
+
}
|
|
1867
|
+
hostUpdated() {
|
|
1868
|
+
const form = this.options.form(this.host);
|
|
1869
|
+
if (!form) {
|
|
1870
|
+
this.detachForm();
|
|
1871
|
+
}
|
|
1872
|
+
if (form && this.form !== form) {
|
|
1873
|
+
this.detachForm();
|
|
1874
|
+
this.attachForm(form);
|
|
1875
|
+
}
|
|
1876
|
+
if (this.host.hasUpdated) {
|
|
1877
|
+
this.setValidity(this.host.validity.valid);
|
|
1878
|
+
}
|
|
1879
|
+
}
|
|
1880
|
+
attachForm(form) {
|
|
1881
|
+
if (form) {
|
|
1882
|
+
this.form = form;
|
|
1883
|
+
if (formCollections.has(this.form)) {
|
|
1884
|
+
formCollections.get(this.form).add(this.host);
|
|
1885
|
+
} else {
|
|
1886
|
+
formCollections.set(this.form, /* @__PURE__ */ new Set([this.host]));
|
|
1887
|
+
}
|
|
1888
|
+
this.form.addEventListener("formdata", this.handleFormData);
|
|
1889
|
+
this.form.addEventListener("submit", this.handleFormSubmit);
|
|
1890
|
+
this.form.addEventListener("reset", this.handleFormReset);
|
|
1891
|
+
if (!reportValidityOverloads.has(this.form)) {
|
|
1892
|
+
reportValidityOverloads.set(this.form, this.form.reportValidity);
|
|
1893
|
+
this.form.reportValidity = () => this.reportFormValidity();
|
|
1894
|
+
}
|
|
1895
|
+
if (!checkValidityOverloads.has(this.form)) {
|
|
1896
|
+
checkValidityOverloads.set(this.form, this.form.checkValidity);
|
|
1897
|
+
this.form.checkValidity = () => this.checkFormValidity();
|
|
1898
|
+
}
|
|
1899
|
+
} else {
|
|
1900
|
+
this.form = void 0;
|
|
1901
|
+
}
|
|
1902
|
+
}
|
|
1903
|
+
detachForm() {
|
|
1904
|
+
if (!this.form)
|
|
1905
|
+
return;
|
|
1906
|
+
const formCollection = formCollections.get(this.form);
|
|
1907
|
+
if (!formCollection) {
|
|
1908
|
+
return;
|
|
1909
|
+
}
|
|
1910
|
+
formCollection.delete(this.host);
|
|
1911
|
+
if (formCollection.size <= 0) {
|
|
1912
|
+
this.form.removeEventListener("formdata", this.handleFormData);
|
|
1913
|
+
this.form.removeEventListener("submit", this.handleFormSubmit);
|
|
1914
|
+
this.form.removeEventListener("reset", this.handleFormReset);
|
|
1915
|
+
if (reportValidityOverloads.has(this.form)) {
|
|
1916
|
+
this.form.reportValidity = reportValidityOverloads.get(this.form);
|
|
1917
|
+
reportValidityOverloads.delete(this.form);
|
|
1918
|
+
}
|
|
1919
|
+
if (checkValidityOverloads.has(this.form)) {
|
|
1920
|
+
this.form.checkValidity = checkValidityOverloads.get(this.form);
|
|
1921
|
+
checkValidityOverloads.delete(this.form);
|
|
1922
|
+
}
|
|
1923
|
+
this.form = void 0;
|
|
1924
|
+
}
|
|
1925
|
+
}
|
|
1926
|
+
setUserInteracted(el, hasInteracted) {
|
|
1927
|
+
if (hasInteracted) {
|
|
1928
|
+
userInteractedControls.add(el);
|
|
1929
|
+
} else {
|
|
1930
|
+
userInteractedControls.delete(el);
|
|
1931
|
+
}
|
|
1932
|
+
el.requestUpdate();
|
|
1933
|
+
}
|
|
1934
|
+
doAction(type, submitter) {
|
|
1935
|
+
if (this.form) {
|
|
1936
|
+
const button = document.createElement("button");
|
|
1937
|
+
button.type = type;
|
|
1938
|
+
button.style.position = "absolute";
|
|
1939
|
+
button.style.width = "0";
|
|
1940
|
+
button.style.height = "0";
|
|
1941
|
+
button.style.clipPath = "inset(50%)";
|
|
1942
|
+
button.style.overflow = "hidden";
|
|
1943
|
+
button.style.whiteSpace = "nowrap";
|
|
1944
|
+
if (submitter) {
|
|
1945
|
+
button.name = submitter.name;
|
|
1946
|
+
button.value = submitter.value;
|
|
1947
|
+
["formaction", "formenctype", "formmethod", "formnovalidate", "formtarget"].forEach((attr) => {
|
|
1948
|
+
if (submitter.hasAttribute(attr)) {
|
|
1949
|
+
button.setAttribute(attr, submitter.getAttribute(attr));
|
|
1950
|
+
}
|
|
1951
|
+
});
|
|
1952
|
+
}
|
|
1953
|
+
this.form.append(button);
|
|
1954
|
+
button.click();
|
|
1955
|
+
button.remove();
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
/** Returns the associated `<form>` element, if one exists. */
|
|
1959
|
+
getForm() {
|
|
1960
|
+
var _a3;
|
|
1961
|
+
return (_a3 = this.form) != null ? _a3 : null;
|
|
1962
|
+
}
|
|
1963
|
+
/** Resets the form, restoring all the control to their default value */
|
|
1964
|
+
reset(submitter) {
|
|
1965
|
+
this.doAction("reset", submitter);
|
|
1966
|
+
}
|
|
1967
|
+
/** Submits the form, triggering validation and form data injection. */
|
|
1968
|
+
submit(submitter) {
|
|
1969
|
+
this.doAction("submit", submitter);
|
|
1970
|
+
}
|
|
1971
|
+
/**
|
|
1972
|
+
* Synchronously sets the form control's validity. Call this when you know the future validity but need to update
|
|
1973
|
+
* the host element immediately, i.e. before Lit updates the component in the next update.
|
|
1974
|
+
*/
|
|
1975
|
+
setValidity(isValid) {
|
|
1976
|
+
const host = this.host;
|
|
1977
|
+
const hasInteracted = Boolean(userInteractedControls.has(host));
|
|
1978
|
+
const required = Boolean(host.required);
|
|
1979
|
+
host.toggleAttribute("data-required", required);
|
|
1980
|
+
host.toggleAttribute("data-optional", !required);
|
|
1981
|
+
host.toggleAttribute("data-invalid", !isValid);
|
|
1982
|
+
host.toggleAttribute("data-valid", isValid);
|
|
1983
|
+
host.toggleAttribute("data-user-invalid", !isValid && hasInteracted);
|
|
1984
|
+
host.toggleAttribute("data-user-valid", isValid && hasInteracted);
|
|
1985
|
+
}
|
|
1986
|
+
/**
|
|
1987
|
+
* Updates the form control's validity based on the current value of `host.validity.valid`. Call this when anything
|
|
1988
|
+
* that affects constraint validation changes so the component receives the correct validity states.
|
|
1989
|
+
*/
|
|
1990
|
+
updateValidity() {
|
|
1991
|
+
const host = this.host;
|
|
1992
|
+
this.setValidity(host.validity.valid);
|
|
1993
|
+
}
|
|
1994
|
+
/**
|
|
1995
|
+
* Dispatches a non-bubbling, cancelable custom event of type `sl-invalid`.
|
|
1996
|
+
* If the `sl-invalid` event will be cancelled then the original `invalid`
|
|
1997
|
+
* event (which may have been passed as argument) will also be cancelled.
|
|
1998
|
+
* If no original `invalid` event has been passed then the `sl-invalid`
|
|
1999
|
+
* event will be cancelled before being dispatched.
|
|
2000
|
+
*/
|
|
2001
|
+
emitInvalidEvent(originalInvalidEvent) {
|
|
2002
|
+
const slInvalidEvent = new CustomEvent("sl-invalid", {
|
|
2003
|
+
bubbles: false,
|
|
2004
|
+
composed: false,
|
|
2005
|
+
cancelable: true,
|
|
2006
|
+
detail: {}
|
|
2007
|
+
});
|
|
2008
|
+
if (!originalInvalidEvent) {
|
|
2009
|
+
slInvalidEvent.preventDefault();
|
|
2010
|
+
}
|
|
2011
|
+
if (!this.host.dispatchEvent(slInvalidEvent)) {
|
|
2012
|
+
originalInvalidEvent == null ? void 0 : originalInvalidEvent.preventDefault();
|
|
2013
|
+
}
|
|
2014
|
+
}
|
|
2015
|
+
};
|
|
2016
|
+
var validValidityState = Object.freeze({
|
|
2017
|
+
badInput: false,
|
|
2018
|
+
customError: false,
|
|
2019
|
+
patternMismatch: false,
|
|
2020
|
+
rangeOverflow: false,
|
|
2021
|
+
rangeUnderflow: false,
|
|
2022
|
+
stepMismatch: false,
|
|
2023
|
+
tooLong: false,
|
|
2024
|
+
tooShort: false,
|
|
2025
|
+
typeMismatch: false,
|
|
2026
|
+
valid: true,
|
|
2027
|
+
valueMissing: false
|
|
2028
|
+
});
|
|
2029
|
+
var valueMissingValidityState = Object.freeze(__spreadProps(__spreadValues({}, validValidityState), {
|
|
2030
|
+
valid: false,
|
|
2031
|
+
valueMissing: true
|
|
2032
|
+
}));
|
|
2033
|
+
var customErrorValidityState = Object.freeze(__spreadProps(__spreadValues({}, validValidityState), {
|
|
2034
|
+
valid: false,
|
|
2035
|
+
customError: true
|
|
2036
|
+
}));
|
|
2037
|
+
|
|
2038
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.MAQXLKQ7.js
|
|
2039
|
+
var button_styles_default = i`
|
|
2040
|
+
:host {
|
|
2041
|
+
display: inline-block;
|
|
2042
|
+
position: relative;
|
|
2043
|
+
width: auto;
|
|
2044
|
+
cursor: pointer;
|
|
2045
|
+
}
|
|
2046
|
+
|
|
2047
|
+
.button {
|
|
2048
|
+
display: inline-flex;
|
|
2049
|
+
align-items: stretch;
|
|
2050
|
+
justify-content: center;
|
|
2051
|
+
width: 100%;
|
|
2052
|
+
border-style: solid;
|
|
2053
|
+
border-width: var(--sl-input-border-width);
|
|
2054
|
+
font-family: var(--sl-input-font-family);
|
|
2055
|
+
font-weight: var(--sl-font-weight-semibold);
|
|
2056
|
+
text-decoration: none;
|
|
2057
|
+
user-select: none;
|
|
2058
|
+
-webkit-user-select: none;
|
|
2059
|
+
white-space: nowrap;
|
|
2060
|
+
vertical-align: middle;
|
|
2061
|
+
padding: 0;
|
|
2062
|
+
transition:
|
|
2063
|
+
var(--sl-transition-x-fast) background-color,
|
|
2064
|
+
var(--sl-transition-x-fast) color,
|
|
2065
|
+
var(--sl-transition-x-fast) border,
|
|
2066
|
+
var(--sl-transition-x-fast) box-shadow;
|
|
2067
|
+
cursor: inherit;
|
|
2068
|
+
}
|
|
2069
|
+
|
|
2070
|
+
.button::-moz-focus-inner {
|
|
2071
|
+
border: 0;
|
|
2072
|
+
}
|
|
2073
|
+
|
|
2074
|
+
.button:focus {
|
|
2075
|
+
outline: none;
|
|
2076
|
+
}
|
|
2077
|
+
|
|
2078
|
+
.button:focus-visible {
|
|
2079
|
+
outline: var(--sl-focus-ring);
|
|
2080
|
+
outline-offset: var(--sl-focus-ring-offset);
|
|
2081
|
+
}
|
|
2082
|
+
|
|
2083
|
+
.button--disabled {
|
|
2084
|
+
opacity: 0.5;
|
|
2085
|
+
cursor: not-allowed;
|
|
2086
|
+
}
|
|
2087
|
+
|
|
2088
|
+
/* When disabled, prevent mouse events from bubbling up from children */
|
|
2089
|
+
.button--disabled * {
|
|
2090
|
+
pointer-events: none;
|
|
2091
|
+
}
|
|
2092
|
+
|
|
2093
|
+
.button__prefix,
|
|
2094
|
+
.button__suffix {
|
|
2095
|
+
flex: 0 0 auto;
|
|
2096
|
+
display: flex;
|
|
2097
|
+
align-items: center;
|
|
2098
|
+
pointer-events: none;
|
|
2099
|
+
}
|
|
2100
|
+
|
|
2101
|
+
.button__label {
|
|
2102
|
+
display: inline-block;
|
|
2103
|
+
}
|
|
2104
|
+
|
|
2105
|
+
.button__label::slotted(sl-icon) {
|
|
2106
|
+
vertical-align: -2px;
|
|
2107
|
+
}
|
|
2108
|
+
|
|
2109
|
+
/*
|
|
2110
|
+
* Standard buttons
|
|
2111
|
+
*/
|
|
2112
|
+
|
|
2113
|
+
/* Default */
|
|
2114
|
+
.button--standard.button--default {
|
|
2115
|
+
background-color: var(--sl-color-neutral-0);
|
|
2116
|
+
border-color: var(--sl-input-border-color);
|
|
2117
|
+
color: var(--sl-color-neutral-700);
|
|
2118
|
+
}
|
|
2119
|
+
|
|
2120
|
+
.button--standard.button--default:hover:not(.button--disabled) {
|
|
2121
|
+
background-color: var(--sl-color-primary-50);
|
|
2122
|
+
border-color: var(--sl-color-primary-300);
|
|
2123
|
+
color: var(--sl-color-primary-700);
|
|
2124
|
+
}
|
|
2125
|
+
|
|
2126
|
+
.button--standard.button--default:active:not(.button--disabled) {
|
|
2127
|
+
background-color: var(--sl-color-primary-100);
|
|
2128
|
+
border-color: var(--sl-color-primary-400);
|
|
2129
|
+
color: var(--sl-color-primary-700);
|
|
2130
|
+
}
|
|
2131
|
+
|
|
2132
|
+
/* Primary */
|
|
2133
|
+
.button--standard.button--primary {
|
|
2134
|
+
background-color: var(--sl-color-primary-600);
|
|
2135
|
+
border-color: var(--sl-color-primary-600);
|
|
2136
|
+
color: var(--sl-color-neutral-0);
|
|
2137
|
+
}
|
|
2138
|
+
|
|
2139
|
+
.button--standard.button--primary:hover:not(.button--disabled) {
|
|
2140
|
+
background-color: var(--sl-color-primary-500);
|
|
2141
|
+
border-color: var(--sl-color-primary-500);
|
|
2142
|
+
color: var(--sl-color-neutral-0);
|
|
2143
|
+
}
|
|
2144
|
+
|
|
2145
|
+
.button--standard.button--primary:active:not(.button--disabled) {
|
|
2146
|
+
background-color: var(--sl-color-primary-600);
|
|
2147
|
+
border-color: var(--sl-color-primary-600);
|
|
2148
|
+
color: var(--sl-color-neutral-0);
|
|
2149
|
+
}
|
|
2150
|
+
|
|
2151
|
+
/* Success */
|
|
2152
|
+
.button--standard.button--success {
|
|
2153
|
+
background-color: var(--sl-color-success-600);
|
|
2154
|
+
border-color: var(--sl-color-success-600);
|
|
2155
|
+
color: var(--sl-color-neutral-0);
|
|
2156
|
+
}
|
|
2157
|
+
|
|
2158
|
+
.button--standard.button--success:hover:not(.button--disabled) {
|
|
2159
|
+
background-color: var(--sl-color-success-500);
|
|
2160
|
+
border-color: var(--sl-color-success-500);
|
|
2161
|
+
color: var(--sl-color-neutral-0);
|
|
2162
|
+
}
|
|
2163
|
+
|
|
2164
|
+
.button--standard.button--success:active:not(.button--disabled) {
|
|
2165
|
+
background-color: var(--sl-color-success-600);
|
|
2166
|
+
border-color: var(--sl-color-success-600);
|
|
2167
|
+
color: var(--sl-color-neutral-0);
|
|
2168
|
+
}
|
|
2169
|
+
|
|
2170
|
+
/* Neutral */
|
|
2171
|
+
.button--standard.button--neutral {
|
|
2172
|
+
background-color: var(--sl-color-neutral-600);
|
|
2173
|
+
border-color: var(--sl-color-neutral-600);
|
|
2174
|
+
color: var(--sl-color-neutral-0);
|
|
2175
|
+
}
|
|
2176
|
+
|
|
2177
|
+
.button--standard.button--neutral:hover:not(.button--disabled) {
|
|
2178
|
+
background-color: var(--sl-color-neutral-500);
|
|
2179
|
+
border-color: var(--sl-color-neutral-500);
|
|
2180
|
+
color: var(--sl-color-neutral-0);
|
|
2181
|
+
}
|
|
2182
|
+
|
|
2183
|
+
.button--standard.button--neutral:active:not(.button--disabled) {
|
|
2184
|
+
background-color: var(--sl-color-neutral-600);
|
|
2185
|
+
border-color: var(--sl-color-neutral-600);
|
|
2186
|
+
color: var(--sl-color-neutral-0);
|
|
2187
|
+
}
|
|
2188
|
+
|
|
2189
|
+
/* Warning */
|
|
2190
|
+
.button--standard.button--warning {
|
|
2191
|
+
background-color: var(--sl-color-warning-600);
|
|
2192
|
+
border-color: var(--sl-color-warning-600);
|
|
2193
|
+
color: var(--sl-color-neutral-0);
|
|
2194
|
+
}
|
|
2195
|
+
.button--standard.button--warning:hover:not(.button--disabled) {
|
|
2196
|
+
background-color: var(--sl-color-warning-500);
|
|
2197
|
+
border-color: var(--sl-color-warning-500);
|
|
2198
|
+
color: var(--sl-color-neutral-0);
|
|
2199
|
+
}
|
|
2200
|
+
|
|
2201
|
+
.button--standard.button--warning:active:not(.button--disabled) {
|
|
2202
|
+
background-color: var(--sl-color-warning-600);
|
|
2203
|
+
border-color: var(--sl-color-warning-600);
|
|
2204
|
+
color: var(--sl-color-neutral-0);
|
|
2205
|
+
}
|
|
2206
|
+
|
|
2207
|
+
/* Danger */
|
|
2208
|
+
.button--standard.button--danger {
|
|
2209
|
+
background-color: var(--sl-color-danger-600);
|
|
2210
|
+
border-color: var(--sl-color-danger-600);
|
|
2211
|
+
color: var(--sl-color-neutral-0);
|
|
2212
|
+
}
|
|
2213
|
+
|
|
2214
|
+
.button--standard.button--danger:hover:not(.button--disabled) {
|
|
2215
|
+
background-color: var(--sl-color-danger-500);
|
|
2216
|
+
border-color: var(--sl-color-danger-500);
|
|
2217
|
+
color: var(--sl-color-neutral-0);
|
|
2218
|
+
}
|
|
2219
|
+
|
|
2220
|
+
.button--standard.button--danger:active:not(.button--disabled) {
|
|
2221
|
+
background-color: var(--sl-color-danger-600);
|
|
2222
|
+
border-color: var(--sl-color-danger-600);
|
|
2223
|
+
color: var(--sl-color-neutral-0);
|
|
2224
|
+
}
|
|
2225
|
+
|
|
2226
|
+
/*
|
|
2227
|
+
* Outline buttons
|
|
2228
|
+
*/
|
|
2229
|
+
|
|
2230
|
+
.button--outline {
|
|
2231
|
+
background: none;
|
|
2232
|
+
border: solid 1px;
|
|
2233
|
+
}
|
|
2234
|
+
|
|
2235
|
+
/* Default */
|
|
2236
|
+
.button--outline.button--default {
|
|
2237
|
+
border-color: var(--sl-input-border-color);
|
|
2238
|
+
color: var(--sl-color-neutral-700);
|
|
2239
|
+
}
|
|
2240
|
+
|
|
2241
|
+
.button--outline.button--default:hover:not(.button--disabled),
|
|
2242
|
+
.button--outline.button--default.button--checked:not(.button--disabled) {
|
|
2243
|
+
border-color: var(--sl-color-primary-600);
|
|
2244
|
+
background-color: var(--sl-color-primary-600);
|
|
2245
|
+
color: var(--sl-color-neutral-0);
|
|
2246
|
+
}
|
|
2247
|
+
|
|
2248
|
+
.button--outline.button--default:active:not(.button--disabled) {
|
|
2249
|
+
border-color: var(--sl-color-primary-700);
|
|
2250
|
+
background-color: var(--sl-color-primary-700);
|
|
2251
|
+
color: var(--sl-color-neutral-0);
|
|
2252
|
+
}
|
|
2253
|
+
|
|
2254
|
+
/* Primary */
|
|
2255
|
+
.button--outline.button--primary {
|
|
2256
|
+
border-color: var(--sl-color-primary-600);
|
|
2257
|
+
color: var(--sl-color-primary-600);
|
|
2258
|
+
}
|
|
2259
|
+
|
|
2260
|
+
.button--outline.button--primary:hover:not(.button--disabled),
|
|
2261
|
+
.button--outline.button--primary.button--checked:not(.button--disabled) {
|
|
2262
|
+
background-color: var(--sl-color-primary-600);
|
|
2263
|
+
color: var(--sl-color-neutral-0);
|
|
2264
|
+
}
|
|
2265
|
+
|
|
2266
|
+
.button--outline.button--primary:active:not(.button--disabled) {
|
|
2267
|
+
border-color: var(--sl-color-primary-700);
|
|
2268
|
+
background-color: var(--sl-color-primary-700);
|
|
2269
|
+
color: var(--sl-color-neutral-0);
|
|
2270
|
+
}
|
|
2271
|
+
|
|
2272
|
+
/* Success */
|
|
2273
|
+
.button--outline.button--success {
|
|
2274
|
+
border-color: var(--sl-color-success-600);
|
|
2275
|
+
color: var(--sl-color-success-600);
|
|
2276
|
+
}
|
|
2277
|
+
|
|
2278
|
+
.button--outline.button--success:hover:not(.button--disabled),
|
|
2279
|
+
.button--outline.button--success.button--checked:not(.button--disabled) {
|
|
2280
|
+
background-color: var(--sl-color-success-600);
|
|
2281
|
+
color: var(--sl-color-neutral-0);
|
|
2282
|
+
}
|
|
2283
|
+
|
|
2284
|
+
.button--outline.button--success:active:not(.button--disabled) {
|
|
2285
|
+
border-color: var(--sl-color-success-700);
|
|
2286
|
+
background-color: var(--sl-color-success-700);
|
|
2287
|
+
color: var(--sl-color-neutral-0);
|
|
2288
|
+
}
|
|
2289
|
+
|
|
2290
|
+
/* Neutral */
|
|
2291
|
+
.button--outline.button--neutral {
|
|
2292
|
+
border-color: var(--sl-color-neutral-600);
|
|
2293
|
+
color: var(--sl-color-neutral-600);
|
|
2294
|
+
}
|
|
2295
|
+
|
|
2296
|
+
.button--outline.button--neutral:hover:not(.button--disabled),
|
|
2297
|
+
.button--outline.button--neutral.button--checked:not(.button--disabled) {
|
|
2298
|
+
background-color: var(--sl-color-neutral-600);
|
|
2299
|
+
color: var(--sl-color-neutral-0);
|
|
2300
|
+
}
|
|
2301
|
+
|
|
2302
|
+
.button--outline.button--neutral:active:not(.button--disabled) {
|
|
2303
|
+
border-color: var(--sl-color-neutral-700);
|
|
2304
|
+
background-color: var(--sl-color-neutral-700);
|
|
2305
|
+
color: var(--sl-color-neutral-0);
|
|
2306
|
+
}
|
|
2307
|
+
|
|
2308
|
+
/* Warning */
|
|
2309
|
+
.button--outline.button--warning {
|
|
2310
|
+
border-color: var(--sl-color-warning-600);
|
|
2311
|
+
color: var(--sl-color-warning-600);
|
|
2312
|
+
}
|
|
2313
|
+
|
|
2314
|
+
.button--outline.button--warning:hover:not(.button--disabled),
|
|
2315
|
+
.button--outline.button--warning.button--checked:not(.button--disabled) {
|
|
2316
|
+
background-color: var(--sl-color-warning-600);
|
|
2317
|
+
color: var(--sl-color-neutral-0);
|
|
2318
|
+
}
|
|
2319
|
+
|
|
2320
|
+
.button--outline.button--warning:active:not(.button--disabled) {
|
|
2321
|
+
border-color: var(--sl-color-warning-700);
|
|
2322
|
+
background-color: var(--sl-color-warning-700);
|
|
2323
|
+
color: var(--sl-color-neutral-0);
|
|
2324
|
+
}
|
|
2325
|
+
|
|
2326
|
+
/* Danger */
|
|
2327
|
+
.button--outline.button--danger {
|
|
2328
|
+
border-color: var(--sl-color-danger-600);
|
|
2329
|
+
color: var(--sl-color-danger-600);
|
|
2330
|
+
}
|
|
2331
|
+
|
|
2332
|
+
.button--outline.button--danger:hover:not(.button--disabled),
|
|
2333
|
+
.button--outline.button--danger.button--checked:not(.button--disabled) {
|
|
2334
|
+
background-color: var(--sl-color-danger-600);
|
|
2335
|
+
color: var(--sl-color-neutral-0);
|
|
2336
|
+
}
|
|
2337
|
+
|
|
2338
|
+
.button--outline.button--danger:active:not(.button--disabled) {
|
|
2339
|
+
border-color: var(--sl-color-danger-700);
|
|
2340
|
+
background-color: var(--sl-color-danger-700);
|
|
2341
|
+
color: var(--sl-color-neutral-0);
|
|
2342
|
+
}
|
|
2343
|
+
|
|
2344
|
+
@media (forced-colors: active) {
|
|
2345
|
+
.button.button--outline.button--checked:not(.button--disabled) {
|
|
2346
|
+
outline: solid 2px transparent;
|
|
2347
|
+
}
|
|
2348
|
+
}
|
|
2349
|
+
|
|
2350
|
+
/*
|
|
2351
|
+
* Text buttons
|
|
2352
|
+
*/
|
|
2353
|
+
|
|
2354
|
+
.button--text {
|
|
2355
|
+
background-color: transparent;
|
|
2356
|
+
border-color: transparent;
|
|
2357
|
+
color: var(--sl-color-primary-600);
|
|
2358
|
+
}
|
|
2359
|
+
|
|
2360
|
+
.button--text:hover:not(.button--disabled) {
|
|
2361
|
+
background-color: transparent;
|
|
2362
|
+
border-color: transparent;
|
|
2363
|
+
color: var(--sl-color-primary-500);
|
|
2364
|
+
}
|
|
2365
|
+
|
|
2366
|
+
.button--text:focus-visible:not(.button--disabled) {
|
|
2367
|
+
background-color: transparent;
|
|
2368
|
+
border-color: transparent;
|
|
2369
|
+
color: var(--sl-color-primary-500);
|
|
2370
|
+
}
|
|
2371
|
+
|
|
2372
|
+
.button--text:active:not(.button--disabled) {
|
|
2373
|
+
background-color: transparent;
|
|
2374
|
+
border-color: transparent;
|
|
2375
|
+
color: var(--sl-color-primary-700);
|
|
2376
|
+
}
|
|
2377
|
+
|
|
2378
|
+
/*
|
|
2379
|
+
* Size modifiers
|
|
2380
|
+
*/
|
|
2381
|
+
|
|
2382
|
+
.button--small {
|
|
2383
|
+
height: auto;
|
|
2384
|
+
min-height: var(--sl-input-height-small);
|
|
2385
|
+
font-size: var(--sl-button-font-size-small);
|
|
2386
|
+
line-height: calc(var(--sl-input-height-small) - var(--sl-input-border-width) * 2);
|
|
2387
|
+
border-radius: var(--sl-input-border-radius-small);
|
|
2388
|
+
}
|
|
2389
|
+
|
|
2390
|
+
.button--medium {
|
|
2391
|
+
height: auto;
|
|
2392
|
+
min-height: var(--sl-input-height-medium);
|
|
2393
|
+
font-size: var(--sl-button-font-size-medium);
|
|
2394
|
+
line-height: calc(var(--sl-input-height-medium) - var(--sl-input-border-width) * 2);
|
|
2395
|
+
border-radius: var(--sl-input-border-radius-medium);
|
|
2396
|
+
}
|
|
2397
|
+
|
|
2398
|
+
.button--large {
|
|
2399
|
+
height: auto;
|
|
2400
|
+
min-height: var(--sl-input-height-large);
|
|
2401
|
+
font-size: var(--sl-button-font-size-large);
|
|
2402
|
+
line-height: calc(var(--sl-input-height-large) - var(--sl-input-border-width) * 2);
|
|
2403
|
+
border-radius: var(--sl-input-border-radius-large);
|
|
2404
|
+
}
|
|
2405
|
+
|
|
2406
|
+
/*
|
|
2407
|
+
* Pill modifier
|
|
2408
|
+
*/
|
|
2409
|
+
|
|
2410
|
+
.button--pill.button--small {
|
|
2411
|
+
border-radius: var(--sl-input-height-small);
|
|
2412
|
+
}
|
|
2413
|
+
|
|
2414
|
+
.button--pill.button--medium {
|
|
2415
|
+
border-radius: var(--sl-input-height-medium);
|
|
2416
|
+
}
|
|
2417
|
+
|
|
2418
|
+
.button--pill.button--large {
|
|
2419
|
+
border-radius: var(--sl-input-height-large);
|
|
2420
|
+
}
|
|
2421
|
+
|
|
2422
|
+
/*
|
|
2423
|
+
* Circle modifier
|
|
2424
|
+
*/
|
|
2425
|
+
|
|
2426
|
+
.button--circle {
|
|
2427
|
+
padding-left: 0;
|
|
2428
|
+
padding-right: 0;
|
|
2429
|
+
}
|
|
2430
|
+
|
|
2431
|
+
.button--circle.button--small {
|
|
2432
|
+
width: var(--sl-input-height-small);
|
|
2433
|
+
border-radius: 50%;
|
|
2434
|
+
}
|
|
2435
|
+
|
|
2436
|
+
.button--circle.button--medium {
|
|
2437
|
+
width: var(--sl-input-height-medium);
|
|
2438
|
+
border-radius: 50%;
|
|
2439
|
+
}
|
|
2440
|
+
|
|
2441
|
+
.button--circle.button--large {
|
|
2442
|
+
width: var(--sl-input-height-large);
|
|
2443
|
+
border-radius: 50%;
|
|
2444
|
+
}
|
|
2445
|
+
|
|
2446
|
+
.button--circle .button__prefix,
|
|
2447
|
+
.button--circle .button__suffix,
|
|
2448
|
+
.button--circle .button__caret {
|
|
2449
|
+
display: none;
|
|
2450
|
+
}
|
|
2451
|
+
|
|
2452
|
+
/*
|
|
2453
|
+
* Caret modifier
|
|
2454
|
+
*/
|
|
2455
|
+
|
|
2456
|
+
.button--caret .button__suffix {
|
|
2457
|
+
display: none;
|
|
2458
|
+
}
|
|
2459
|
+
|
|
2460
|
+
.button--caret .button__caret {
|
|
2461
|
+
height: auto;
|
|
2462
|
+
}
|
|
2463
|
+
|
|
2464
|
+
/*
|
|
2465
|
+
* Loading modifier
|
|
2466
|
+
*/
|
|
2467
|
+
|
|
2468
|
+
.button--loading {
|
|
2469
|
+
position: relative;
|
|
2470
|
+
cursor: wait;
|
|
2471
|
+
}
|
|
2472
|
+
|
|
2473
|
+
.button--loading .button__prefix,
|
|
2474
|
+
.button--loading .button__label,
|
|
2475
|
+
.button--loading .button__suffix,
|
|
2476
|
+
.button--loading .button__caret {
|
|
2477
|
+
visibility: hidden;
|
|
2478
|
+
}
|
|
2479
|
+
|
|
2480
|
+
.button--loading sl-spinner {
|
|
2481
|
+
--indicator-color: currentColor;
|
|
2482
|
+
position: absolute;
|
|
2483
|
+
font-size: 1em;
|
|
2484
|
+
height: 1em;
|
|
2485
|
+
width: 1em;
|
|
2486
|
+
top: calc(50% - 0.5em);
|
|
2487
|
+
left: calc(50% - 0.5em);
|
|
2488
|
+
}
|
|
2489
|
+
|
|
2490
|
+
/*
|
|
2491
|
+
* Badges
|
|
2492
|
+
*/
|
|
2493
|
+
|
|
2494
|
+
.button ::slotted(sl-badge) {
|
|
2495
|
+
position: absolute;
|
|
2496
|
+
top: 0;
|
|
2497
|
+
right: 0;
|
|
2498
|
+
translate: 50% -50%;
|
|
2499
|
+
pointer-events: none;
|
|
2500
|
+
}
|
|
2501
|
+
|
|
2502
|
+
.button--rtl ::slotted(sl-badge) {
|
|
2503
|
+
right: auto;
|
|
2504
|
+
left: 0;
|
|
2505
|
+
translate: -50% -50%;
|
|
2506
|
+
}
|
|
2507
|
+
|
|
2508
|
+
/*
|
|
2509
|
+
* Button spacing
|
|
2510
|
+
*/
|
|
2511
|
+
|
|
2512
|
+
.button--has-label.button--small .button__label {
|
|
2513
|
+
padding: 0 var(--sl-spacing-small);
|
|
2514
|
+
}
|
|
2515
|
+
|
|
2516
|
+
.button--has-label.button--medium .button__label {
|
|
2517
|
+
padding: 0 var(--sl-spacing-medium);
|
|
2518
|
+
}
|
|
2519
|
+
|
|
2520
|
+
.button--has-label.button--large .button__label {
|
|
2521
|
+
padding: 0 var(--sl-spacing-large);
|
|
2522
|
+
}
|
|
2523
|
+
|
|
2524
|
+
.button--has-prefix.button--small {
|
|
2525
|
+
padding-inline-start: var(--sl-spacing-x-small);
|
|
2526
|
+
}
|
|
2527
|
+
|
|
2528
|
+
.button--has-prefix.button--small .button__label {
|
|
2529
|
+
padding-inline-start: var(--sl-spacing-x-small);
|
|
2530
|
+
}
|
|
2531
|
+
|
|
2532
|
+
.button--has-prefix.button--medium {
|
|
2533
|
+
padding-inline-start: var(--sl-spacing-small);
|
|
2534
|
+
}
|
|
2535
|
+
|
|
2536
|
+
.button--has-prefix.button--medium .button__label {
|
|
2537
|
+
padding-inline-start: var(--sl-spacing-small);
|
|
2538
|
+
}
|
|
2539
|
+
|
|
2540
|
+
.button--has-prefix.button--large {
|
|
2541
|
+
padding-inline-start: var(--sl-spacing-small);
|
|
2542
|
+
}
|
|
2543
|
+
|
|
2544
|
+
.button--has-prefix.button--large .button__label {
|
|
2545
|
+
padding-inline-start: var(--sl-spacing-small);
|
|
2546
|
+
}
|
|
2547
|
+
|
|
2548
|
+
.button--has-suffix.button--small,
|
|
2549
|
+
.button--caret.button--small {
|
|
2550
|
+
padding-inline-end: var(--sl-spacing-x-small);
|
|
2551
|
+
}
|
|
2552
|
+
|
|
2553
|
+
.button--has-suffix.button--small .button__label,
|
|
2554
|
+
.button--caret.button--small .button__label {
|
|
2555
|
+
padding-inline-end: var(--sl-spacing-x-small);
|
|
2556
|
+
}
|
|
2557
|
+
|
|
2558
|
+
.button--has-suffix.button--medium,
|
|
2559
|
+
.button--caret.button--medium {
|
|
2560
|
+
padding-inline-end: var(--sl-spacing-small);
|
|
2561
|
+
}
|
|
2562
|
+
|
|
2563
|
+
.button--has-suffix.button--medium .button__label,
|
|
2564
|
+
.button--caret.button--medium .button__label {
|
|
2565
|
+
padding-inline-end: var(--sl-spacing-small);
|
|
2566
|
+
}
|
|
2567
|
+
|
|
2568
|
+
.button--has-suffix.button--large,
|
|
2569
|
+
.button--caret.button--large {
|
|
2570
|
+
padding-inline-end: var(--sl-spacing-small);
|
|
2571
|
+
}
|
|
2572
|
+
|
|
2573
|
+
.button--has-suffix.button--large .button__label,
|
|
2574
|
+
.button--caret.button--large .button__label {
|
|
2575
|
+
padding-inline-end: var(--sl-spacing-small);
|
|
2576
|
+
}
|
|
2577
|
+
|
|
2578
|
+
/*
|
|
2579
|
+
* Button groups support a variety of button types (e.g. buttons with tooltips, buttons as dropdown triggers, etc.).
|
|
2580
|
+
* This means buttons aren't always direct descendants of the button group, thus we can't target them with the
|
|
2581
|
+
* ::slotted selector. To work around this, the button group component does some magic to add these special classes to
|
|
2582
|
+
* buttons and we style them here instead.
|
|
2583
|
+
*/
|
|
2584
|
+
|
|
2585
|
+
:host([data-sl-button-group__button--first]:not([data-sl-button-group__button--last])) .button {
|
|
2586
|
+
border-start-end-radius: 0;
|
|
2587
|
+
border-end-end-radius: 0;
|
|
2588
|
+
}
|
|
2589
|
+
|
|
2590
|
+
:host([data-sl-button-group__button--inner]) .button {
|
|
2591
|
+
border-radius: 0;
|
|
2592
|
+
}
|
|
2593
|
+
|
|
2594
|
+
:host([data-sl-button-group__button--last]:not([data-sl-button-group__button--first])) .button {
|
|
2595
|
+
border-start-start-radius: 0;
|
|
2596
|
+
border-end-start-radius: 0;
|
|
2597
|
+
}
|
|
2598
|
+
|
|
2599
|
+
/* All except the first */
|
|
2600
|
+
:host([data-sl-button-group__button]:not([data-sl-button-group__button--first])) {
|
|
2601
|
+
margin-inline-start: calc(-1 * var(--sl-input-border-width));
|
|
2602
|
+
}
|
|
2603
|
+
|
|
2604
|
+
/* Add a visual separator between solid buttons */
|
|
2605
|
+
:host(
|
|
2606
|
+
[data-sl-button-group__button]:not(
|
|
2607
|
+
[data-sl-button-group__button--first],
|
|
2608
|
+
[data-sl-button-group__button--radio],
|
|
2609
|
+
[variant='default']
|
|
2610
|
+
):not(:hover)
|
|
2611
|
+
)
|
|
2612
|
+
.button:after {
|
|
2613
|
+
content: '';
|
|
2614
|
+
position: absolute;
|
|
2615
|
+
top: 0;
|
|
2616
|
+
inset-inline-start: 0;
|
|
2617
|
+
bottom: 0;
|
|
2618
|
+
border-left: solid 1px rgb(128 128 128 / 33%);
|
|
2619
|
+
mix-blend-mode: multiply;
|
|
2620
|
+
}
|
|
2621
|
+
|
|
2622
|
+
/* Bump hovered, focused, and checked buttons up so their focus ring isn't clipped */
|
|
2623
|
+
:host([data-sl-button-group__button--hover]) {
|
|
2624
|
+
z-index: 1;
|
|
2625
|
+
}
|
|
2626
|
+
|
|
2627
|
+
/* Focus and checked are always on top */
|
|
2628
|
+
:host([data-sl-button-group__button--focus]),
|
|
2629
|
+
:host([data-sl-button-group__button][checked]) {
|
|
2630
|
+
z-index: 2;
|
|
2631
|
+
}
|
|
2632
|
+
`;
|
|
2633
|
+
|
|
2634
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.NYIIDP5N.js
|
|
2635
|
+
var HasSlotController = class {
|
|
2636
|
+
constructor(host, ...slotNames) {
|
|
2637
|
+
this.slotNames = [];
|
|
2638
|
+
this.handleSlotChange = (event) => {
|
|
2639
|
+
const slot = event.target;
|
|
2640
|
+
if (this.slotNames.includes("[default]") && !slot.name || slot.name && this.slotNames.includes(slot.name)) {
|
|
2641
|
+
this.host.requestUpdate();
|
|
2642
|
+
}
|
|
2643
|
+
};
|
|
2644
|
+
(this.host = host).addController(this);
|
|
2645
|
+
this.slotNames = slotNames;
|
|
2646
|
+
}
|
|
2647
|
+
hasDefaultSlot() {
|
|
2648
|
+
return [...this.host.childNodes].some((node) => {
|
|
2649
|
+
if (node.nodeType === node.TEXT_NODE && node.textContent.trim() !== "") {
|
|
2650
|
+
return true;
|
|
2651
|
+
}
|
|
2652
|
+
if (node.nodeType === node.ELEMENT_NODE) {
|
|
2653
|
+
const el = node;
|
|
2654
|
+
const tagName = el.tagName.toLowerCase();
|
|
2655
|
+
if (tagName === "sl-visually-hidden") {
|
|
2656
|
+
return false;
|
|
2657
|
+
}
|
|
2658
|
+
if (!el.hasAttribute("slot")) {
|
|
2659
|
+
return true;
|
|
2660
|
+
}
|
|
2661
|
+
}
|
|
2662
|
+
return false;
|
|
2663
|
+
});
|
|
2664
|
+
}
|
|
2665
|
+
hasNamedSlot(name) {
|
|
2666
|
+
return this.host.querySelector(`:scope > [slot="${name}"]`) !== null;
|
|
2667
|
+
}
|
|
2668
|
+
test(slotName) {
|
|
2669
|
+
return slotName === "[default]" ? this.hasDefaultSlot() : this.hasNamedSlot(slotName);
|
|
2670
|
+
}
|
|
2671
|
+
hostConnected() {
|
|
2672
|
+
this.host.shadowRoot.addEventListener("slotchange", this.handleSlotChange);
|
|
2673
|
+
}
|
|
2674
|
+
hostDisconnected() {
|
|
2675
|
+
this.host.shadowRoot.removeEventListener("slotchange", this.handleSlotChange);
|
|
2676
|
+
}
|
|
42
2677
|
};
|
|
43
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
44
|
-
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
45
|
-
var __privateIn = (member, obj) => Object(obj) !== obj ? __typeError('Cannot use the "in" operator on this value') : member.has(obj);
|
|
46
|
-
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
47
|
-
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
48
|
-
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
49
|
-
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
50
2678
|
|
|
51
|
-
//
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
2679
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.3Y6SB6QS.js
|
|
2680
|
+
var basePath = "";
|
|
2681
|
+
function setBasePath(path) {
|
|
2682
|
+
basePath = path;
|
|
2683
|
+
}
|
|
2684
|
+
function getBasePath(subpath = "") {
|
|
2685
|
+
if (!basePath) {
|
|
2686
|
+
const scripts = [...document.getElementsByTagName("script")];
|
|
2687
|
+
const configScript = scripts.find((script) => script.hasAttribute("data-shoelace"));
|
|
2688
|
+
if (configScript) {
|
|
2689
|
+
setBasePath(configScript.getAttribute("data-shoelace"));
|
|
2690
|
+
} else {
|
|
2691
|
+
const fallbackScript = scripts.find((s3) => {
|
|
2692
|
+
return /shoelace(\.min)?\.js($|\?)/.test(s3.src) || /shoelace-autoloader(\.min)?\.js($|\?)/.test(s3.src);
|
|
2693
|
+
});
|
|
2694
|
+
let path = "";
|
|
2695
|
+
if (fallbackScript) {
|
|
2696
|
+
path = fallbackScript.getAttribute("src");
|
|
2697
|
+
}
|
|
2698
|
+
setBasePath(path.split("/").slice(0, -1).join("/"));
|
|
2699
|
+
}
|
|
2700
|
+
}
|
|
2701
|
+
return basePath.replace(/\/$/, "") + (subpath ? `/${subpath.replace(/^\//, "")}` : ``);
|
|
2702
|
+
}
|
|
55
2703
|
|
|
56
|
-
// ../../node_modules
|
|
57
|
-
var
|
|
2704
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.P7ZG6EMR.js
|
|
2705
|
+
var library = {
|
|
2706
|
+
name: "default",
|
|
2707
|
+
resolver: (name) => getBasePath(`assets/icons/${name}.svg`)
|
|
2708
|
+
};
|
|
2709
|
+
var library_default_default = library;
|
|
2710
|
+
|
|
2711
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.3TFKS637.js
|
|
2712
|
+
var icons = {
|
|
2713
|
+
caret: `
|
|
2714
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
2715
|
+
<polyline points="6 9 12 15 18 9"></polyline>
|
|
2716
|
+
</svg>
|
|
2717
|
+
`,
|
|
2718
|
+
check: `
|
|
2719
|
+
<svg part="checked-icon" class="checkbox__icon" viewBox="0 0 16 16">
|
|
2720
|
+
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">
|
|
2721
|
+
<g stroke="currentColor">
|
|
2722
|
+
<g transform="translate(3.428571, 3.428571)">
|
|
2723
|
+
<path d="M0,5.71428571 L3.42857143,9.14285714"></path>
|
|
2724
|
+
<path d="M9.14285714,0 L3.42857143,9.14285714"></path>
|
|
2725
|
+
</g>
|
|
2726
|
+
</g>
|
|
2727
|
+
</g>
|
|
2728
|
+
</svg>
|
|
2729
|
+
`,
|
|
2730
|
+
"chevron-down": `
|
|
2731
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-down" viewBox="0 0 16 16">
|
|
2732
|
+
<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"/>
|
|
2733
|
+
</svg>
|
|
2734
|
+
`,
|
|
2735
|
+
"chevron-left": `
|
|
2736
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-left" viewBox="0 0 16 16">
|
|
2737
|
+
<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"/>
|
|
2738
|
+
</svg>
|
|
2739
|
+
`,
|
|
2740
|
+
"chevron-right": `
|
|
2741
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-right" viewBox="0 0 16 16">
|
|
2742
|
+
<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"/>
|
|
2743
|
+
</svg>
|
|
2744
|
+
`,
|
|
2745
|
+
copy: `
|
|
2746
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-copy" viewBox="0 0 16 16">
|
|
2747
|
+
<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"/>
|
|
2748
|
+
</svg>
|
|
2749
|
+
`,
|
|
2750
|
+
eye: `
|
|
2751
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eye" viewBox="0 0 16 16">
|
|
2752
|
+
<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"/>
|
|
2753
|
+
<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"/>
|
|
2754
|
+
</svg>
|
|
2755
|
+
`,
|
|
2756
|
+
"eye-slash": `
|
|
2757
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eye-slash" viewBox="0 0 16 16">
|
|
2758
|
+
<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"/>
|
|
2759
|
+
<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"/>
|
|
2760
|
+
<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"/>
|
|
2761
|
+
</svg>
|
|
2762
|
+
`,
|
|
2763
|
+
eyedropper: `
|
|
2764
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eyedropper" viewBox="0 0 16 16">
|
|
2765
|
+
<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>
|
|
2766
|
+
</svg>
|
|
2767
|
+
`,
|
|
2768
|
+
"grip-vertical": `
|
|
2769
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-grip-vertical" viewBox="0 0 16 16">
|
|
2770
|
+
<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>
|
|
2771
|
+
</svg>
|
|
2772
|
+
`,
|
|
2773
|
+
indeterminate: `
|
|
2774
|
+
<svg part="indeterminate-icon" class="checkbox__icon" viewBox="0 0 16 16">
|
|
2775
|
+
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">
|
|
2776
|
+
<g stroke="currentColor" stroke-width="2">
|
|
2777
|
+
<g transform="translate(2.285714, 6.857143)">
|
|
2778
|
+
<path d="M10.2857143,1.14285714 L1.14285714,1.14285714"></path>
|
|
2779
|
+
</g>
|
|
2780
|
+
</g>
|
|
2781
|
+
</g>
|
|
2782
|
+
</svg>
|
|
2783
|
+
`,
|
|
2784
|
+
"person-fill": `
|
|
2785
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-person-fill" viewBox="0 0 16 16">
|
|
2786
|
+
<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"/>
|
|
2787
|
+
</svg>
|
|
2788
|
+
`,
|
|
2789
|
+
"play-fill": `
|
|
2790
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-play-fill" viewBox="0 0 16 16">
|
|
2791
|
+
<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>
|
|
2792
|
+
</svg>
|
|
2793
|
+
`,
|
|
2794
|
+
"pause-fill": `
|
|
2795
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-pause-fill" viewBox="0 0 16 16">
|
|
2796
|
+
<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>
|
|
2797
|
+
</svg>
|
|
2798
|
+
`,
|
|
2799
|
+
radio: `
|
|
2800
|
+
<svg part="checked-icon" class="radio__icon" viewBox="0 0 16 16">
|
|
2801
|
+
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
2802
|
+
<g fill="currentColor">
|
|
2803
|
+
<circle cx="8" cy="8" r="3.42857143"></circle>
|
|
2804
|
+
</g>
|
|
2805
|
+
</g>
|
|
2806
|
+
</svg>
|
|
2807
|
+
`,
|
|
2808
|
+
"star-fill": `
|
|
2809
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-star-fill" viewBox="0 0 16 16">
|
|
2810
|
+
<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"/>
|
|
2811
|
+
</svg>
|
|
2812
|
+
`,
|
|
2813
|
+
"x-lg": `
|
|
2814
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-lg" viewBox="0 0 16 16">
|
|
2815
|
+
<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"/>
|
|
2816
|
+
</svg>
|
|
2817
|
+
`,
|
|
2818
|
+
"x-circle-fill": `
|
|
2819
|
+
<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">
|
|
2820
|
+
<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>
|
|
2821
|
+
</svg>
|
|
2822
|
+
`
|
|
2823
|
+
};
|
|
2824
|
+
var systemLibrary = {
|
|
2825
|
+
name: "system",
|
|
2826
|
+
resolver: (name) => {
|
|
2827
|
+
if (name in icons) {
|
|
2828
|
+
return `data:image/svg+xml,${encodeURIComponent(icons[name])}`;
|
|
2829
|
+
}
|
|
2830
|
+
return "";
|
|
2831
|
+
}
|
|
2832
|
+
};
|
|
2833
|
+
var library_system_default = systemLibrary;
|
|
2834
|
+
|
|
2835
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.ZL53POKZ.js
|
|
2836
|
+
var registry = [library_default_default, library_system_default];
|
|
2837
|
+
var watchedIcons = [];
|
|
2838
|
+
function watchIcon(icon) {
|
|
2839
|
+
watchedIcons.push(icon);
|
|
2840
|
+
}
|
|
2841
|
+
function unwatchIcon(icon) {
|
|
2842
|
+
watchedIcons = watchedIcons.filter((el) => el !== icon);
|
|
2843
|
+
}
|
|
2844
|
+
function getIconLibrary(name) {
|
|
2845
|
+
return registry.find((lib) => lib.name === name);
|
|
2846
|
+
}
|
|
2847
|
+
|
|
2848
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.QLXRCYS4.js
|
|
2849
|
+
var icon_styles_default = i`
|
|
2850
|
+
:host {
|
|
2851
|
+
display: inline-block;
|
|
2852
|
+
width: 1em;
|
|
2853
|
+
height: 1em;
|
|
2854
|
+
box-sizing: content-box !important;
|
|
2855
|
+
}
|
|
2856
|
+
|
|
2857
|
+
svg {
|
|
2858
|
+
display: block;
|
|
2859
|
+
height: 100%;
|
|
2860
|
+
width: 100%;
|
|
2861
|
+
}
|
|
2862
|
+
`;
|
|
2863
|
+
|
|
2864
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.2FB5TK5H.js
|
|
2865
|
+
function watch(propertyName, options) {
|
|
2866
|
+
const resolvedOptions = __spreadValues({
|
|
2867
|
+
waitUntilFirstUpdate: false
|
|
2868
|
+
}, options);
|
|
2869
|
+
return (proto, decoratedFnName) => {
|
|
2870
|
+
const { update: update2 } = proto;
|
|
2871
|
+
const watchedProperties = Array.isArray(propertyName) ? propertyName : [propertyName];
|
|
2872
|
+
proto.update = function(changedProps) {
|
|
2873
|
+
watchedProperties.forEach((property) => {
|
|
2874
|
+
const key = property;
|
|
2875
|
+
if (changedProps.has(key)) {
|
|
2876
|
+
const oldValue = changedProps.get(key);
|
|
2877
|
+
const newValue = this[key];
|
|
2878
|
+
if (oldValue !== newValue) {
|
|
2879
|
+
if (!resolvedOptions.waitUntilFirstUpdate || this.hasUpdated) {
|
|
2880
|
+
this[decoratedFnName](oldValue, newValue);
|
|
2881
|
+
}
|
|
2882
|
+
}
|
|
2883
|
+
}
|
|
2884
|
+
});
|
|
2885
|
+
update2.call(this, changedProps);
|
|
2886
|
+
};
|
|
2887
|
+
};
|
|
2888
|
+
}
|
|
2889
|
+
|
|
2890
|
+
// ../../node_modules/lit/node_modules/lit-html/directive-helpers.js
|
|
2891
|
+
var { I: et3 } = si;
|
|
2892
|
+
var nt = (o5, t5) => void 0 === t5 ? void 0 !== o5?._$litType$ : o5?._$litType$ === t5;
|
|
2893
|
+
|
|
2894
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.ALSPWWWG.js
|
|
2895
|
+
var CACHEABLE_ERROR = Symbol();
|
|
2896
|
+
var RETRYABLE_ERROR = Symbol();
|
|
2897
|
+
var parser;
|
|
2898
|
+
var iconCache = /* @__PURE__ */ new Map();
|
|
2899
|
+
var SlIcon = class extends ShoelaceElement {
|
|
2900
|
+
constructor() {
|
|
2901
|
+
super(...arguments);
|
|
2902
|
+
this.initialRender = false;
|
|
2903
|
+
this.svg = null;
|
|
2904
|
+
this.label = "";
|
|
2905
|
+
this.library = "default";
|
|
2906
|
+
}
|
|
2907
|
+
/** Given a URL, this function returns the resulting SVG element or an appropriate error symbol. */
|
|
2908
|
+
async resolveIcon(url, library2) {
|
|
2909
|
+
var _a3;
|
|
2910
|
+
let fileData;
|
|
2911
|
+
if (library2 == null ? void 0 : library2.spriteSheet) {
|
|
2912
|
+
this.svg = ke`<svg part="svg">
|
|
2913
|
+
<use part="use" href="${url}"></use>
|
|
2914
|
+
</svg>`;
|
|
2915
|
+
await this.updateComplete;
|
|
2916
|
+
const svg = this.shadowRoot.querySelector("[part='svg']");
|
|
2917
|
+
if (typeof library2.mutator === "function") {
|
|
2918
|
+
library2.mutator(svg);
|
|
2919
|
+
}
|
|
2920
|
+
return this.svg;
|
|
2921
|
+
}
|
|
2922
|
+
try {
|
|
2923
|
+
fileData = await fetch(url, { mode: "cors" });
|
|
2924
|
+
if (!fileData.ok)
|
|
2925
|
+
return fileData.status === 410 ? CACHEABLE_ERROR : RETRYABLE_ERROR;
|
|
2926
|
+
} catch (e8) {
|
|
2927
|
+
return RETRYABLE_ERROR;
|
|
2928
|
+
}
|
|
2929
|
+
try {
|
|
2930
|
+
const div = document.createElement("div");
|
|
2931
|
+
div.innerHTML = await fileData.text();
|
|
2932
|
+
const svg = div.firstElementChild;
|
|
2933
|
+
if (((_a3 = svg == null ? void 0 : svg.tagName) == null ? void 0 : _a3.toLowerCase()) !== "svg")
|
|
2934
|
+
return CACHEABLE_ERROR;
|
|
2935
|
+
if (!parser)
|
|
2936
|
+
parser = new DOMParser();
|
|
2937
|
+
const doc = parser.parseFromString(svg.outerHTML, "text/html");
|
|
2938
|
+
const svgEl = doc.body.querySelector("svg");
|
|
2939
|
+
if (!svgEl)
|
|
2940
|
+
return CACHEABLE_ERROR;
|
|
2941
|
+
svgEl.part.add("svg");
|
|
2942
|
+
return document.adoptNode(svgEl);
|
|
2943
|
+
} catch (e8) {
|
|
2944
|
+
return CACHEABLE_ERROR;
|
|
2945
|
+
}
|
|
2946
|
+
}
|
|
2947
|
+
connectedCallback() {
|
|
2948
|
+
super.connectedCallback();
|
|
2949
|
+
watchIcon(this);
|
|
2950
|
+
}
|
|
2951
|
+
firstUpdated() {
|
|
2952
|
+
this.initialRender = true;
|
|
2953
|
+
this.setIcon();
|
|
2954
|
+
}
|
|
2955
|
+
disconnectedCallback() {
|
|
2956
|
+
super.disconnectedCallback();
|
|
2957
|
+
unwatchIcon(this);
|
|
2958
|
+
}
|
|
2959
|
+
getIconSource() {
|
|
2960
|
+
const library2 = getIconLibrary(this.library);
|
|
2961
|
+
if (this.name && library2) {
|
|
2962
|
+
return {
|
|
2963
|
+
url: library2.resolver(this.name),
|
|
2964
|
+
fromLibrary: true
|
|
2965
|
+
};
|
|
2966
|
+
}
|
|
2967
|
+
return {
|
|
2968
|
+
url: this.src,
|
|
2969
|
+
fromLibrary: false
|
|
2970
|
+
};
|
|
2971
|
+
}
|
|
2972
|
+
handleLabelChange() {
|
|
2973
|
+
const hasLabel = typeof this.label === "string" && this.label.length > 0;
|
|
2974
|
+
if (hasLabel) {
|
|
2975
|
+
this.setAttribute("role", "img");
|
|
2976
|
+
this.setAttribute("aria-label", this.label);
|
|
2977
|
+
this.removeAttribute("aria-hidden");
|
|
2978
|
+
} else {
|
|
2979
|
+
this.removeAttribute("role");
|
|
2980
|
+
this.removeAttribute("aria-label");
|
|
2981
|
+
this.setAttribute("aria-hidden", "true");
|
|
2982
|
+
}
|
|
2983
|
+
}
|
|
2984
|
+
async setIcon() {
|
|
2985
|
+
var _a3;
|
|
2986
|
+
const { url, fromLibrary } = this.getIconSource();
|
|
2987
|
+
const library2 = fromLibrary ? getIconLibrary(this.library) : void 0;
|
|
2988
|
+
if (!url) {
|
|
2989
|
+
this.svg = null;
|
|
2990
|
+
return;
|
|
2991
|
+
}
|
|
2992
|
+
let iconResolver = iconCache.get(url);
|
|
2993
|
+
if (!iconResolver) {
|
|
2994
|
+
iconResolver = this.resolveIcon(url, library2);
|
|
2995
|
+
iconCache.set(url, iconResolver);
|
|
2996
|
+
}
|
|
2997
|
+
if (!this.initialRender) {
|
|
2998
|
+
return;
|
|
2999
|
+
}
|
|
3000
|
+
const svg = await iconResolver;
|
|
3001
|
+
if (svg === RETRYABLE_ERROR) {
|
|
3002
|
+
iconCache.delete(url);
|
|
3003
|
+
}
|
|
3004
|
+
if (url !== this.getIconSource().url) {
|
|
3005
|
+
return;
|
|
3006
|
+
}
|
|
3007
|
+
if (nt(svg)) {
|
|
3008
|
+
this.svg = svg;
|
|
3009
|
+
return;
|
|
3010
|
+
}
|
|
3011
|
+
switch (svg) {
|
|
3012
|
+
case RETRYABLE_ERROR:
|
|
3013
|
+
case CACHEABLE_ERROR:
|
|
3014
|
+
this.svg = null;
|
|
3015
|
+
this.emit("sl-error");
|
|
3016
|
+
break;
|
|
3017
|
+
default:
|
|
3018
|
+
this.svg = svg.cloneNode(true);
|
|
3019
|
+
(_a3 = library2 == null ? void 0 : library2.mutator) == null ? void 0 : _a3.call(library2, this.svg);
|
|
3020
|
+
this.emit("sl-load");
|
|
3021
|
+
}
|
|
3022
|
+
}
|
|
3023
|
+
render() {
|
|
3024
|
+
return this.svg;
|
|
3025
|
+
}
|
|
3026
|
+
};
|
|
3027
|
+
SlIcon.styles = [component_styles_default, icon_styles_default];
|
|
3028
|
+
__decorateClass([
|
|
3029
|
+
r5()
|
|
3030
|
+
], SlIcon.prototype, "svg", 2);
|
|
3031
|
+
__decorateClass([
|
|
3032
|
+
n5({ reflect: true })
|
|
3033
|
+
], SlIcon.prototype, "name", 2);
|
|
3034
|
+
__decorateClass([
|
|
3035
|
+
n5()
|
|
3036
|
+
], SlIcon.prototype, "src", 2);
|
|
3037
|
+
__decorateClass([
|
|
3038
|
+
n5()
|
|
3039
|
+
], SlIcon.prototype, "label", 2);
|
|
3040
|
+
__decorateClass([
|
|
3041
|
+
n5({ reflect: true })
|
|
3042
|
+
], SlIcon.prototype, "library", 2);
|
|
3043
|
+
__decorateClass([
|
|
3044
|
+
watch("label")
|
|
3045
|
+
], SlIcon.prototype, "handleLabelChange", 1);
|
|
3046
|
+
__decorateClass([
|
|
3047
|
+
watch(["name", "src", "library"])
|
|
3048
|
+
], SlIcon.prototype, "setIcon", 1);
|
|
3049
|
+
|
|
3050
|
+
// ../../node_modules/lit/node_modules/lit-html/directive.js
|
|
3051
|
+
var t4 = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 };
|
|
3052
|
+
var e7 = (t5) => (...e8) => ({ _$litDirective$: t5, values: e8 });
|
|
3053
|
+
var i3 = class {
|
|
3054
|
+
constructor(t5) {
|
|
3055
|
+
}
|
|
3056
|
+
get _$AU() {
|
|
3057
|
+
return this._$AM._$AU;
|
|
3058
|
+
}
|
|
3059
|
+
_$AT(t5, e8, i4) {
|
|
3060
|
+
this.t = t5, this._$AM = e8, this.i = i4;
|
|
3061
|
+
}
|
|
3062
|
+
_$AS(t5, e8) {
|
|
3063
|
+
return this.update(t5, e8);
|
|
3064
|
+
}
|
|
3065
|
+
update(t5, e8) {
|
|
3066
|
+
return this.render(...e8);
|
|
3067
|
+
}
|
|
3068
|
+
};
|
|
3069
|
+
|
|
3070
|
+
// ../../node_modules/lit/node_modules/lit-html/directives/class-map.js
|
|
3071
|
+
var Rt = e7(class extends i3 {
|
|
3072
|
+
constructor(s3) {
|
|
3073
|
+
if (super(s3), s3.type !== t4.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.");
|
|
3074
|
+
}
|
|
3075
|
+
render(t5) {
|
|
3076
|
+
return " " + Object.keys(t5).filter((s3) => t5[s3]).join(" ") + " ";
|
|
3077
|
+
}
|
|
3078
|
+
update(t5, [s3]) {
|
|
3079
|
+
if (void 0 === this.st) {
|
|
3080
|
+
this.st = /* @__PURE__ */ new Set(), void 0 !== t5.strings && (this.nt = new Set(t5.strings.join(" ").split(/\s/).filter((t6) => "" !== t6)));
|
|
3081
|
+
for (const t6 in s3) s3[t6] && !this.nt?.has(t6) && this.st.add(t6);
|
|
3082
|
+
return this.render(s3);
|
|
3083
|
+
}
|
|
3084
|
+
const i4 = t5.element.classList;
|
|
3085
|
+
for (const t6 of this.st) t6 in s3 || (i4.remove(t6), this.st.delete(t6));
|
|
3086
|
+
for (const t6 in s3) {
|
|
3087
|
+
const r7 = !!s3[t6];
|
|
3088
|
+
r7 === this.st.has(t6) || this.nt?.has(t6) || (r7 ? (i4.add(t6), this.st.add(t6)) : (i4.remove(t6), this.st.delete(t6)));
|
|
3089
|
+
}
|
|
3090
|
+
return R;
|
|
3091
|
+
}
|
|
3092
|
+
});
|
|
3093
|
+
|
|
3094
|
+
// ../../node_modules/lit/node_modules/lit-html/static.js
|
|
3095
|
+
var $e = Symbol.for("");
|
|
3096
|
+
var xe = (t5) => {
|
|
3097
|
+
if (t5?.r === $e) return t5?._$litStatic$;
|
|
3098
|
+
};
|
|
3099
|
+
var er = (t5, ...r7) => ({ _$litStatic$: r7.reduce((r8, e8, a3) => r8 + ((t6) => {
|
|
3100
|
+
if (void 0 !== t6._$litStatic$) return t6._$litStatic$;
|
|
3101
|
+
throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t6}. Use 'unsafeStatic' to pass non-literal values, but
|
|
3102
|
+
take care to ensure page security.`);
|
|
3103
|
+
})(e8) + t5[a3 + 1], t5[0]), r: $e });
|
|
3104
|
+
var Te = /* @__PURE__ */ new Map();
|
|
3105
|
+
var Ee = (t5) => (r7, ...e8) => {
|
|
3106
|
+
const a3 = e8.length;
|
|
3107
|
+
let o5, s3;
|
|
3108
|
+
const i4 = [], l3 = [];
|
|
3109
|
+
let n6, u3 = 0, c5 = false;
|
|
3110
|
+
for (; u3 < a3; ) {
|
|
3111
|
+
for (n6 = r7[u3]; u3 < a3 && void 0 !== (s3 = e8[u3], o5 = xe(s3)); ) n6 += o5 + r7[++u3], c5 = true;
|
|
3112
|
+
u3 !== a3 && l3.push(s3), i4.push(n6), u3++;
|
|
3113
|
+
}
|
|
3114
|
+
if (u3 === a3 && i4.push(r7[a3]), c5) {
|
|
3115
|
+
const t6 = i4.join("$$lit$$");
|
|
3116
|
+
void 0 === (r7 = Te.get(t6)) && (i4.raw = i4, Te.set(t6, r7 = i4)), e8 = l3;
|
|
3117
|
+
}
|
|
3118
|
+
return t5(r7, ...e8);
|
|
3119
|
+
};
|
|
3120
|
+
var ke3 = Ee(ke);
|
|
3121
|
+
var Oe3 = Ee(Oe);
|
|
3122
|
+
var Se3 = Ee(Se);
|
|
3123
|
+
|
|
3124
|
+
// ../../node_modules/lit/node_modules/lit-html/directives/if-defined.js
|
|
3125
|
+
var to = (t5) => t5 ?? D;
|
|
3126
|
+
|
|
3127
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.MR6SHCJO.js
|
|
3128
|
+
var SlButton = class extends ShoelaceElement {
|
|
3129
|
+
constructor() {
|
|
3130
|
+
super(...arguments);
|
|
3131
|
+
this.formControlController = new FormControlController(this, {
|
|
3132
|
+
assumeInteractionOn: ["click"]
|
|
3133
|
+
});
|
|
3134
|
+
this.hasSlotController = new HasSlotController(this, "[default]", "prefix", "suffix");
|
|
3135
|
+
this.localize = new LocalizeController2(this);
|
|
3136
|
+
this.hasFocus = false;
|
|
3137
|
+
this.invalid = false;
|
|
3138
|
+
this.title = "";
|
|
3139
|
+
this.variant = "default";
|
|
3140
|
+
this.size = "medium";
|
|
3141
|
+
this.caret = false;
|
|
3142
|
+
this.disabled = false;
|
|
3143
|
+
this.loading = false;
|
|
3144
|
+
this.outline = false;
|
|
3145
|
+
this.pill = false;
|
|
3146
|
+
this.circle = false;
|
|
3147
|
+
this.type = "button";
|
|
3148
|
+
this.name = "";
|
|
3149
|
+
this.value = "";
|
|
3150
|
+
this.href = "";
|
|
3151
|
+
this.rel = "noreferrer noopener";
|
|
3152
|
+
}
|
|
3153
|
+
/** Gets the validity state object */
|
|
3154
|
+
get validity() {
|
|
3155
|
+
if (this.isButton()) {
|
|
3156
|
+
return this.button.validity;
|
|
3157
|
+
}
|
|
3158
|
+
return validValidityState;
|
|
3159
|
+
}
|
|
3160
|
+
/** Gets the validation message */
|
|
3161
|
+
get validationMessage() {
|
|
3162
|
+
if (this.isButton()) {
|
|
3163
|
+
return this.button.validationMessage;
|
|
3164
|
+
}
|
|
3165
|
+
return "";
|
|
3166
|
+
}
|
|
3167
|
+
firstUpdated() {
|
|
3168
|
+
if (this.isButton()) {
|
|
3169
|
+
this.formControlController.updateValidity();
|
|
3170
|
+
}
|
|
3171
|
+
}
|
|
3172
|
+
handleBlur() {
|
|
3173
|
+
this.hasFocus = false;
|
|
3174
|
+
this.emit("sl-blur");
|
|
3175
|
+
}
|
|
3176
|
+
handleFocus() {
|
|
3177
|
+
this.hasFocus = true;
|
|
3178
|
+
this.emit("sl-focus");
|
|
3179
|
+
}
|
|
3180
|
+
handleClick() {
|
|
3181
|
+
if (this.type === "submit") {
|
|
3182
|
+
this.formControlController.submit(this);
|
|
3183
|
+
}
|
|
3184
|
+
if (this.type === "reset") {
|
|
3185
|
+
this.formControlController.reset(this);
|
|
3186
|
+
}
|
|
3187
|
+
}
|
|
3188
|
+
handleInvalid(event) {
|
|
3189
|
+
this.formControlController.setValidity(false);
|
|
3190
|
+
this.formControlController.emitInvalidEvent(event);
|
|
3191
|
+
}
|
|
3192
|
+
isButton() {
|
|
3193
|
+
return this.href ? false : true;
|
|
3194
|
+
}
|
|
3195
|
+
isLink() {
|
|
3196
|
+
return this.href ? true : false;
|
|
3197
|
+
}
|
|
3198
|
+
handleDisabledChange() {
|
|
3199
|
+
if (this.isButton()) {
|
|
3200
|
+
this.formControlController.setValidity(this.disabled);
|
|
3201
|
+
}
|
|
3202
|
+
}
|
|
3203
|
+
/** Simulates a click on the button. */
|
|
3204
|
+
click() {
|
|
3205
|
+
this.button.click();
|
|
3206
|
+
}
|
|
3207
|
+
/** Sets focus on the button. */
|
|
3208
|
+
focus(options) {
|
|
3209
|
+
this.button.focus(options);
|
|
3210
|
+
}
|
|
3211
|
+
/** Removes focus from the button. */
|
|
3212
|
+
blur() {
|
|
3213
|
+
this.button.blur();
|
|
3214
|
+
}
|
|
3215
|
+
/** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */
|
|
3216
|
+
checkValidity() {
|
|
3217
|
+
if (this.isButton()) {
|
|
3218
|
+
return this.button.checkValidity();
|
|
3219
|
+
}
|
|
3220
|
+
return true;
|
|
3221
|
+
}
|
|
3222
|
+
/** Gets the associated form, if one exists. */
|
|
3223
|
+
getForm() {
|
|
3224
|
+
return this.formControlController.getForm();
|
|
3225
|
+
}
|
|
3226
|
+
/** Checks for validity and shows the browser's validation message if the control is invalid. */
|
|
3227
|
+
reportValidity() {
|
|
3228
|
+
if (this.isButton()) {
|
|
3229
|
+
return this.button.reportValidity();
|
|
3230
|
+
}
|
|
3231
|
+
return true;
|
|
3232
|
+
}
|
|
3233
|
+
/** Sets a custom validation message. Pass an empty string to restore validity. */
|
|
3234
|
+
setCustomValidity(message) {
|
|
3235
|
+
if (this.isButton()) {
|
|
3236
|
+
this.button.setCustomValidity(message);
|
|
3237
|
+
this.formControlController.updateValidity();
|
|
3238
|
+
}
|
|
3239
|
+
}
|
|
3240
|
+
render() {
|
|
3241
|
+
const isLink = this.isLink();
|
|
3242
|
+
const tag = isLink ? er`a` : er`button`;
|
|
3243
|
+
return ke3`
|
|
3244
|
+
<${tag}
|
|
3245
|
+
part="base"
|
|
3246
|
+
class=${Rt({
|
|
3247
|
+
button: true,
|
|
3248
|
+
"button--default": this.variant === "default",
|
|
3249
|
+
"button--primary": this.variant === "primary",
|
|
3250
|
+
"button--success": this.variant === "success",
|
|
3251
|
+
"button--neutral": this.variant === "neutral",
|
|
3252
|
+
"button--warning": this.variant === "warning",
|
|
3253
|
+
"button--danger": this.variant === "danger",
|
|
3254
|
+
"button--text": this.variant === "text",
|
|
3255
|
+
"button--small": this.size === "small",
|
|
3256
|
+
"button--medium": this.size === "medium",
|
|
3257
|
+
"button--large": this.size === "large",
|
|
3258
|
+
"button--caret": this.caret,
|
|
3259
|
+
"button--circle": this.circle,
|
|
3260
|
+
"button--disabled": this.disabled,
|
|
3261
|
+
"button--focused": this.hasFocus,
|
|
3262
|
+
"button--loading": this.loading,
|
|
3263
|
+
"button--standard": !this.outline,
|
|
3264
|
+
"button--outline": this.outline,
|
|
3265
|
+
"button--pill": this.pill,
|
|
3266
|
+
"button--rtl": this.localize.dir() === "rtl",
|
|
3267
|
+
"button--has-label": this.hasSlotController.test("[default]"),
|
|
3268
|
+
"button--has-prefix": this.hasSlotController.test("prefix"),
|
|
3269
|
+
"button--has-suffix": this.hasSlotController.test("suffix")
|
|
3270
|
+
})}
|
|
3271
|
+
?disabled=${to(isLink ? void 0 : this.disabled)}
|
|
3272
|
+
type=${to(isLink ? void 0 : this.type)}
|
|
3273
|
+
title=${this.title}
|
|
3274
|
+
name=${to(isLink ? void 0 : this.name)}
|
|
3275
|
+
value=${to(isLink ? void 0 : this.value)}
|
|
3276
|
+
href=${to(isLink ? this.href : void 0)}
|
|
3277
|
+
target=${to(isLink ? this.target : void 0)}
|
|
3278
|
+
download=${to(isLink ? this.download : void 0)}
|
|
3279
|
+
rel=${to(isLink ? this.rel : void 0)}
|
|
3280
|
+
role=${to(isLink ? void 0 : "button")}
|
|
3281
|
+
aria-disabled=${this.disabled ? "true" : "false"}
|
|
3282
|
+
tabindex=${this.disabled ? "-1" : "0"}
|
|
3283
|
+
@blur=${this.handleBlur}
|
|
3284
|
+
@focus=${this.handleFocus}
|
|
3285
|
+
@invalid=${this.isButton() ? this.handleInvalid : null}
|
|
3286
|
+
@click=${this.handleClick}
|
|
3287
|
+
>
|
|
3288
|
+
<slot name="prefix" part="prefix" class="button__prefix"></slot>
|
|
3289
|
+
<slot part="label" class="button__label"></slot>
|
|
3290
|
+
<slot name="suffix" part="suffix" class="button__suffix"></slot>
|
|
3291
|
+
${this.caret ? ke3` <sl-icon part="caret" class="button__caret" library="system" name="caret"></sl-icon> ` : ""}
|
|
3292
|
+
${this.loading ? ke3`<sl-spinner part="spinner"></sl-spinner>` : ""}
|
|
3293
|
+
</${tag}>
|
|
3294
|
+
`;
|
|
3295
|
+
}
|
|
3296
|
+
};
|
|
3297
|
+
SlButton.styles = [component_styles_default, button_styles_default];
|
|
3298
|
+
SlButton.dependencies = {
|
|
3299
|
+
"sl-icon": SlIcon,
|
|
3300
|
+
"sl-spinner": SlSpinner
|
|
3301
|
+
};
|
|
3302
|
+
__decorateClass([
|
|
3303
|
+
e5(".button")
|
|
3304
|
+
], SlButton.prototype, "button", 2);
|
|
3305
|
+
__decorateClass([
|
|
3306
|
+
r5()
|
|
3307
|
+
], SlButton.prototype, "hasFocus", 2);
|
|
3308
|
+
__decorateClass([
|
|
3309
|
+
r5()
|
|
3310
|
+
], SlButton.prototype, "invalid", 2);
|
|
3311
|
+
__decorateClass([
|
|
3312
|
+
n5()
|
|
3313
|
+
], SlButton.prototype, "title", 2);
|
|
3314
|
+
__decorateClass([
|
|
3315
|
+
n5({ reflect: true })
|
|
3316
|
+
], SlButton.prototype, "variant", 2);
|
|
3317
|
+
__decorateClass([
|
|
3318
|
+
n5({ reflect: true })
|
|
3319
|
+
], SlButton.prototype, "size", 2);
|
|
3320
|
+
__decorateClass([
|
|
3321
|
+
n5({ type: Boolean, reflect: true })
|
|
3322
|
+
], SlButton.prototype, "caret", 2);
|
|
3323
|
+
__decorateClass([
|
|
3324
|
+
n5({ type: Boolean, reflect: true })
|
|
3325
|
+
], SlButton.prototype, "disabled", 2);
|
|
3326
|
+
__decorateClass([
|
|
3327
|
+
n5({ type: Boolean, reflect: true })
|
|
3328
|
+
], SlButton.prototype, "loading", 2);
|
|
3329
|
+
__decorateClass([
|
|
3330
|
+
n5({ type: Boolean, reflect: true })
|
|
3331
|
+
], SlButton.prototype, "outline", 2);
|
|
3332
|
+
__decorateClass([
|
|
3333
|
+
n5({ type: Boolean, reflect: true })
|
|
3334
|
+
], SlButton.prototype, "pill", 2);
|
|
3335
|
+
__decorateClass([
|
|
3336
|
+
n5({ type: Boolean, reflect: true })
|
|
3337
|
+
], SlButton.prototype, "circle", 2);
|
|
3338
|
+
__decorateClass([
|
|
3339
|
+
n5()
|
|
3340
|
+
], SlButton.prototype, "type", 2);
|
|
3341
|
+
__decorateClass([
|
|
3342
|
+
n5()
|
|
3343
|
+
], SlButton.prototype, "name", 2);
|
|
3344
|
+
__decorateClass([
|
|
3345
|
+
n5()
|
|
3346
|
+
], SlButton.prototype, "value", 2);
|
|
3347
|
+
__decorateClass([
|
|
3348
|
+
n5()
|
|
3349
|
+
], SlButton.prototype, "href", 2);
|
|
3350
|
+
__decorateClass([
|
|
3351
|
+
n5()
|
|
3352
|
+
], SlButton.prototype, "target", 2);
|
|
3353
|
+
__decorateClass([
|
|
3354
|
+
n5()
|
|
3355
|
+
], SlButton.prototype, "rel", 2);
|
|
3356
|
+
__decorateClass([
|
|
3357
|
+
n5()
|
|
3358
|
+
], SlButton.prototype, "download", 2);
|
|
3359
|
+
__decorateClass([
|
|
3360
|
+
n5()
|
|
3361
|
+
], SlButton.prototype, "form", 2);
|
|
3362
|
+
__decorateClass([
|
|
3363
|
+
n5({ attribute: "formaction" })
|
|
3364
|
+
], SlButton.prototype, "formAction", 2);
|
|
3365
|
+
__decorateClass([
|
|
3366
|
+
n5({ attribute: "formenctype" })
|
|
3367
|
+
], SlButton.prototype, "formEnctype", 2);
|
|
3368
|
+
__decorateClass([
|
|
3369
|
+
n5({ attribute: "formmethod" })
|
|
3370
|
+
], SlButton.prototype, "formMethod", 2);
|
|
3371
|
+
__decorateClass([
|
|
3372
|
+
n5({ attribute: "formnovalidate", type: Boolean })
|
|
3373
|
+
], SlButton.prototype, "formNoValidate", 2);
|
|
3374
|
+
__decorateClass([
|
|
3375
|
+
n5({ attribute: "formtarget" })
|
|
3376
|
+
], SlButton.prototype, "formTarget", 2);
|
|
3377
|
+
__decorateClass([
|
|
3378
|
+
watch("disabled", { waitUntilFirstUpdate: true })
|
|
3379
|
+
], SlButton.prototype, "handleDisabledChange", 1);
|
|
58
3380
|
|
|
59
3381
|
// src/widgets/webwriter-pairing.ts
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
var
|
|
63
|
-
_WebwriterPairing_decorators = [customElement("webwriter-pairing")];
|
|
64
|
-
var WebwriterPairing = class extends (_a = LitElementWw, _mode_dec = [property({ attribute: true, reflect: true }), option({ type: "select", options: [
|
|
3382
|
+
var _slots_dec, _solution_dec, _mode_dec, _a2, _WebwriterPairing_decorators, _init2, _mode, _solution, _slots;
|
|
3383
|
+
_WebwriterPairing_decorators = [t3("webwriter-pairing")];
|
|
3384
|
+
var WebwriterPairing = class extends (_a2 = LitElementWw, _mode_dec = [n5({ attribute: true, reflect: true }), option({ type: "select", options: [
|
|
65
3385
|
{ value: "drag" },
|
|
66
3386
|
{ value: "memory" }
|
|
67
|
-
] })], _solution_dec = [
|
|
3387
|
+
] })], _solution_dec = [n5({ type: Array, attribute: true, reflect: true })], _slots_dec = [r6("slot")], _a2) {
|
|
68
3388
|
constructor() {
|
|
69
3389
|
super(...arguments);
|
|
70
|
-
__privateAdd(this, _mode, __runInitializers(
|
|
71
|
-
__privateAdd(this, _solution, __runInitializers(
|
|
3390
|
+
__privateAdd(this, _mode, __runInitializers(_init2, 8, this, "drag")), __runInitializers(_init2, 11, this);
|
|
3391
|
+
__privateAdd(this, _solution, __runInitializers(_init2, 12, this, [])), __runInitializers(_init2, 15, this);
|
|
72
3392
|
__publicField(this, "addItem", () => {
|
|
73
3393
|
const item = document.createElement("webwriter-pairing-item");
|
|
74
3394
|
const picture = document.createElement("picture");
|
|
75
3395
|
item.appendChild(picture);
|
|
76
3396
|
this.appendChild(item);
|
|
77
3397
|
});
|
|
78
|
-
__publicField(this, "Pair", (
|
|
79
|
-
return
|
|
80
|
-
<slot class="a-slot" name=${`${
|
|
81
|
-
<slot class="b-slot" name=${`${
|
|
3398
|
+
__publicField(this, "Pair", (i4) => {
|
|
3399
|
+
return ke`<div class="pair">
|
|
3400
|
+
<slot class="a-slot" name=${`${i4}a`}></slot>
|
|
3401
|
+
<slot class="b-slot" name=${`${i4}b`}></slot>
|
|
82
3402
|
</div>`;
|
|
83
3403
|
});
|
|
84
3404
|
__publicField(this, "observer");
|
|
85
|
-
__privateAdd(this, _slots, __runInitializers(
|
|
3405
|
+
__privateAdd(this, _slots, __runInitializers(_init2, 16, this)), __runInitializers(_init2, 19, this);
|
|
86
3406
|
}
|
|
87
3407
|
getPairSlot() {
|
|
88
3408
|
}
|
|
89
3409
|
get pairs() {
|
|
90
3410
|
let allPairs = Array.from(this.children);
|
|
91
|
-
for (const [
|
|
92
|
-
const elA = this.querySelector(`webwriter-pairing-item#${
|
|
93
|
-
const elB = this.querySelector(`webwriter-pairing-item#${
|
|
3411
|
+
for (const [a3, b3] of this.solution) {
|
|
3412
|
+
const elA = this.querySelector(`webwriter-pairing-item#${a3}`);
|
|
3413
|
+
const elB = this.querySelector(`webwriter-pairing-item#${b3}`);
|
|
94
3414
|
allPairs.splice(allPairs.indexOf(elA), 1, [elA, elB]);
|
|
95
3415
|
allPairs.splice(allPairs.indexOf(elB), 1);
|
|
96
3416
|
}
|
|
97
3417
|
return allPairs;
|
|
98
3418
|
}
|
|
99
|
-
pair(
|
|
3419
|
+
pair(a3, b3) {
|
|
100
3420
|
let pairIds = this.pairs.map((entry) => Array.isArray(entry) ? [entry[0].id, entry[1].id] : entry.id);
|
|
101
|
-
const pairIndexOfA = this.solution.findIndex((val) => Array.isArray(val) && val.includes(
|
|
102
|
-
const pairIndexOfB = this.solution.findIndex((val) => Array.isArray(val) && val.includes(
|
|
103
|
-
if (!
|
|
104
|
-
pairIds.splice(pairIndexOfA, 1, pairIds[pairIndexOfA].filter((id) => id !==
|
|
105
|
-
pairIds.push(
|
|
3421
|
+
const pairIndexOfA = this.solution.findIndex((val) => Array.isArray(val) && val.includes(a3));
|
|
3422
|
+
const pairIndexOfB = this.solution.findIndex((val) => Array.isArray(val) && val.includes(b3));
|
|
3423
|
+
if (!b3) {
|
|
3424
|
+
pairIds.splice(pairIndexOfA, 1, pairIds[pairIndexOfA].filter((id) => id !== a3)[0]);
|
|
3425
|
+
pairIds.push(a3);
|
|
106
3426
|
} else {
|
|
107
3427
|
if (pairIndexOfB !== -1) {
|
|
108
|
-
pairIds.splice(pairIndexOfB, 1, pairIds[pairIndexOfB].filter((id) => id !==
|
|
3428
|
+
pairIds.splice(pairIndexOfB, 1, pairIds[pairIndexOfB].filter((id) => id !== b3)[0]);
|
|
109
3429
|
}
|
|
110
|
-
const indexOfA = this.solution.indexOf(
|
|
111
|
-
pairIds.splice(indexOfA, 1, [
|
|
112
|
-
pairIds = pairIds.filter((id) => id !==
|
|
3430
|
+
const indexOfA = this.solution.indexOf(a3);
|
|
3431
|
+
pairIds.splice(indexOfA, 1, [a3, b3]);
|
|
3432
|
+
pairIds = pairIds.filter((id) => id !== b3);
|
|
113
3433
|
}
|
|
114
3434
|
this.solution = pairIds.filter((entry) => Array.isArray(entry));
|
|
115
3435
|
}
|
|
116
|
-
handlePairWith(
|
|
117
|
-
if (
|
|
118
|
-
this.pair(
|
|
3436
|
+
handlePairWith(e8) {
|
|
3437
|
+
if (e8.type === "ww-pairwith") {
|
|
3438
|
+
this.pair(e8.target.id, e8.detail.with);
|
|
119
3439
|
}
|
|
120
3440
|
}
|
|
121
3441
|
connectedCallback() {
|
|
@@ -138,9 +3458,9 @@ var WebwriterPairing = class extends (_a = LitElementWw, _mode_dec = [property({
|
|
|
138
3458
|
const slots = Array.from(this.slots);
|
|
139
3459
|
for (const value of this.pairs) {
|
|
140
3460
|
if (Array.isArray(value)) {
|
|
141
|
-
const [
|
|
142
|
-
slots.shift().assign(
|
|
143
|
-
slots.shift().assign(
|
|
3461
|
+
const [a3, b3] = value;
|
|
3462
|
+
slots.shift().assign(a3);
|
|
3463
|
+
slots.shift().assign(b3);
|
|
144
3464
|
} else {
|
|
145
3465
|
slots.shift().assign(value);
|
|
146
3466
|
slots.shift();
|
|
@@ -148,28 +3468,28 @@ var WebwriterPairing = class extends (_a = LitElementWw, _mode_dec = [property({
|
|
|
148
3468
|
}
|
|
149
3469
|
}
|
|
150
3470
|
render() {
|
|
151
|
-
return
|
|
152
|
-
${this.pairs.map((el,
|
|
3471
|
+
return ke`
|
|
3472
|
+
${this.pairs.map((el, i4) => this.Pair(i4))}
|
|
153
3473
|
<sl-button @click=${this.addItem}>
|
|
154
3474
|
<sl-icon src=${plus_default}></sl-icon>
|
|
155
3475
|
</sl-button>
|
|
156
3476
|
`;
|
|
157
3477
|
}
|
|
158
3478
|
};
|
|
159
|
-
|
|
3479
|
+
_init2 = __decoratorStart(_a2);
|
|
160
3480
|
_mode = new WeakMap();
|
|
161
3481
|
_solution = new WeakMap();
|
|
162
3482
|
_slots = new WeakMap();
|
|
163
|
-
__decorateElement(
|
|
164
|
-
__decorateElement(
|
|
165
|
-
__decorateElement(
|
|
166
|
-
WebwriterPairing = __decorateElement(
|
|
3483
|
+
__decorateElement(_init2, 4, "mode", _mode_dec, WebwriterPairing, _mode);
|
|
3484
|
+
__decorateElement(_init2, 4, "solution", _solution_dec, WebwriterPairing, _solution);
|
|
3485
|
+
__decorateElement(_init2, 4, "slots", _slots_dec, WebwriterPairing, _slots);
|
|
3486
|
+
WebwriterPairing = __decorateElement(_init2, 0, "WebwriterPairing", _WebwriterPairing_decorators, WebwriterPairing);
|
|
167
3487
|
__publicField(WebwriterPairing, "shadowRootOptions", { ...LitElementWw.shadowRootOptions, slotAssignment: "manual" });
|
|
168
3488
|
__publicField(WebwriterPairing, "scopedElements", {
|
|
169
3489
|
"sl-button": SlButton,
|
|
170
3490
|
"sl-icon": SlIcon
|
|
171
3491
|
});
|
|
172
|
-
__publicField(WebwriterPairing, "styles",
|
|
3492
|
+
__publicField(WebwriterPairing, "styles", i`
|
|
173
3493
|
:host {
|
|
174
3494
|
display: flex !important;
|
|
175
3495
|
flex-direction: row;
|
|
@@ -218,7 +3538,256 @@ __publicField(WebwriterPairing, "styles", css`
|
|
|
218
3538
|
}
|
|
219
3539
|
|
|
220
3540
|
`);
|
|
221
|
-
__runInitializers(
|
|
3541
|
+
__runInitializers(_init2, 1, WebwriterPairing);
|
|
222
3542
|
export {
|
|
223
3543
|
WebwriterPairing
|
|
224
3544
|
};
|
|
3545
|
+
/*! Bundled license information:
|
|
3546
|
+
|
|
3547
|
+
@lit/reactive-element/css-tag.js:
|
|
3548
|
+
(**
|
|
3549
|
+
* @license
|
|
3550
|
+
* Copyright 2019 Google LLC
|
|
3551
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3552
|
+
*)
|
|
3553
|
+
|
|
3554
|
+
@lit/reactive-element/reactive-element.js:
|
|
3555
|
+
(**
|
|
3556
|
+
* @license
|
|
3557
|
+
* Copyright 2017 Google LLC
|
|
3558
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3559
|
+
*)
|
|
3560
|
+
|
|
3561
|
+
lit-html/lit-html.js:
|
|
3562
|
+
(**
|
|
3563
|
+
* @license
|
|
3564
|
+
* Copyright 2017 Google LLC
|
|
3565
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3566
|
+
*)
|
|
3567
|
+
|
|
3568
|
+
lit-element/lit-element.js:
|
|
3569
|
+
(**
|
|
3570
|
+
* @license
|
|
3571
|
+
* Copyright 2017 Google LLC
|
|
3572
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3573
|
+
*)
|
|
3574
|
+
|
|
3575
|
+
lit-html/is-server.js:
|
|
3576
|
+
(**
|
|
3577
|
+
* @license
|
|
3578
|
+
* Copyright 2022 Google LLC
|
|
3579
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3580
|
+
*)
|
|
3581
|
+
|
|
3582
|
+
@lit/reactive-element/decorators/custom-element.js:
|
|
3583
|
+
(**
|
|
3584
|
+
* @license
|
|
3585
|
+
* Copyright 2017 Google LLC
|
|
3586
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3587
|
+
*)
|
|
3588
|
+
|
|
3589
|
+
@lit/reactive-element/decorators/property.js:
|
|
3590
|
+
(**
|
|
3591
|
+
* @license
|
|
3592
|
+
* Copyright 2017 Google LLC
|
|
3593
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3594
|
+
*)
|
|
3595
|
+
|
|
3596
|
+
@lit/reactive-element/decorators/state.js:
|
|
3597
|
+
(**
|
|
3598
|
+
* @license
|
|
3599
|
+
* Copyright 2017 Google LLC
|
|
3600
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3601
|
+
*)
|
|
3602
|
+
|
|
3603
|
+
@lit/reactive-element/decorators/event-options.js:
|
|
3604
|
+
(**
|
|
3605
|
+
* @license
|
|
3606
|
+
* Copyright 2017 Google LLC
|
|
3607
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3608
|
+
*)
|
|
3609
|
+
|
|
3610
|
+
@lit/reactive-element/decorators/base.js:
|
|
3611
|
+
(**
|
|
3612
|
+
* @license
|
|
3613
|
+
* Copyright 2017 Google LLC
|
|
3614
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3615
|
+
*)
|
|
3616
|
+
|
|
3617
|
+
@lit/reactive-element/decorators/query.js:
|
|
3618
|
+
(**
|
|
3619
|
+
* @license
|
|
3620
|
+
* Copyright 2017 Google LLC
|
|
3621
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3622
|
+
*)
|
|
3623
|
+
|
|
3624
|
+
@lit/reactive-element/decorators/query-all.js:
|
|
3625
|
+
(**
|
|
3626
|
+
* @license
|
|
3627
|
+
* Copyright 2017 Google LLC
|
|
3628
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3629
|
+
*)
|
|
3630
|
+
|
|
3631
|
+
@lit/reactive-element/decorators/query-async.js:
|
|
3632
|
+
(**
|
|
3633
|
+
* @license
|
|
3634
|
+
* Copyright 2017 Google LLC
|
|
3635
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3636
|
+
*)
|
|
3637
|
+
|
|
3638
|
+
@lit/reactive-element/decorators/query-assigned-elements.js:
|
|
3639
|
+
(**
|
|
3640
|
+
* @license
|
|
3641
|
+
* Copyright 2021 Google LLC
|
|
3642
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3643
|
+
*)
|
|
3644
|
+
|
|
3645
|
+
@lit/reactive-element/decorators/query-assigned-nodes.js:
|
|
3646
|
+
(**
|
|
3647
|
+
* @license
|
|
3648
|
+
* Copyright 2017 Google LLC
|
|
3649
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3650
|
+
*)
|
|
3651
|
+
*/
|
|
3652
|
+
/*! Bundled license information:
|
|
3653
|
+
|
|
3654
|
+
@lit/reactive-element/css-tag.js:
|
|
3655
|
+
(**
|
|
3656
|
+
* @license
|
|
3657
|
+
* Copyright 2019 Google LLC
|
|
3658
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3659
|
+
*)
|
|
3660
|
+
|
|
3661
|
+
@lit/reactive-element/reactive-element.js:
|
|
3662
|
+
(**
|
|
3663
|
+
* @license
|
|
3664
|
+
* Copyright 2017 Google LLC
|
|
3665
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3666
|
+
*)
|
|
3667
|
+
|
|
3668
|
+
lit-html/lit-html.js:
|
|
3669
|
+
(**
|
|
3670
|
+
* @license
|
|
3671
|
+
* Copyright 2017 Google LLC
|
|
3672
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3673
|
+
*)
|
|
3674
|
+
|
|
3675
|
+
lit-element/lit-element.js:
|
|
3676
|
+
(**
|
|
3677
|
+
* @license
|
|
3678
|
+
* Copyright 2017 Google LLC
|
|
3679
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3680
|
+
*)
|
|
3681
|
+
|
|
3682
|
+
lit-html/is-server.js:
|
|
3683
|
+
(**
|
|
3684
|
+
* @license
|
|
3685
|
+
* Copyright 2022 Google LLC
|
|
3686
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3687
|
+
*)
|
|
3688
|
+
|
|
3689
|
+
@lit/reactive-element/decorators/custom-element.js:
|
|
3690
|
+
(**
|
|
3691
|
+
* @license
|
|
3692
|
+
* Copyright 2017 Google LLC
|
|
3693
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3694
|
+
*)
|
|
3695
|
+
|
|
3696
|
+
@lit/reactive-element/decorators/property.js:
|
|
3697
|
+
(**
|
|
3698
|
+
* @license
|
|
3699
|
+
* Copyright 2017 Google LLC
|
|
3700
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3701
|
+
*)
|
|
3702
|
+
|
|
3703
|
+
@lit/reactive-element/decorators/state.js:
|
|
3704
|
+
(**
|
|
3705
|
+
* @license
|
|
3706
|
+
* Copyright 2017 Google LLC
|
|
3707
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3708
|
+
*)
|
|
3709
|
+
|
|
3710
|
+
@lit/reactive-element/decorators/event-options.js:
|
|
3711
|
+
(**
|
|
3712
|
+
* @license
|
|
3713
|
+
* Copyright 2017 Google LLC
|
|
3714
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3715
|
+
*)
|
|
3716
|
+
|
|
3717
|
+
@lit/reactive-element/decorators/base.js:
|
|
3718
|
+
(**
|
|
3719
|
+
* @license
|
|
3720
|
+
* Copyright 2017 Google LLC
|
|
3721
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3722
|
+
*)
|
|
3723
|
+
|
|
3724
|
+
@lit/reactive-element/decorators/query.js:
|
|
3725
|
+
(**
|
|
3726
|
+
* @license
|
|
3727
|
+
* Copyright 2017 Google LLC
|
|
3728
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3729
|
+
*)
|
|
3730
|
+
|
|
3731
|
+
@lit/reactive-element/decorators/query-all.js:
|
|
3732
|
+
(**
|
|
3733
|
+
* @license
|
|
3734
|
+
* Copyright 2017 Google LLC
|
|
3735
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3736
|
+
*)
|
|
3737
|
+
|
|
3738
|
+
@lit/reactive-element/decorators/query-async.js:
|
|
3739
|
+
(**
|
|
3740
|
+
* @license
|
|
3741
|
+
* Copyright 2017 Google LLC
|
|
3742
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3743
|
+
*)
|
|
3744
|
+
|
|
3745
|
+
@lit/reactive-element/decorators/query-assigned-elements.js:
|
|
3746
|
+
(**
|
|
3747
|
+
* @license
|
|
3748
|
+
* Copyright 2021 Google LLC
|
|
3749
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3750
|
+
*)
|
|
3751
|
+
|
|
3752
|
+
@lit/reactive-element/decorators/query-assigned-nodes.js:
|
|
3753
|
+
(**
|
|
3754
|
+
* @license
|
|
3755
|
+
* Copyright 2017 Google LLC
|
|
3756
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3757
|
+
*)
|
|
3758
|
+
|
|
3759
|
+
lit-html/directive-helpers.js:
|
|
3760
|
+
(**
|
|
3761
|
+
* @license
|
|
3762
|
+
* Copyright 2020 Google LLC
|
|
3763
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3764
|
+
*)
|
|
3765
|
+
|
|
3766
|
+
lit-html/directive.js:
|
|
3767
|
+
(**
|
|
3768
|
+
* @license
|
|
3769
|
+
* Copyright 2017 Google LLC
|
|
3770
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3771
|
+
*)
|
|
3772
|
+
|
|
3773
|
+
lit-html/directives/class-map.js:
|
|
3774
|
+
(**
|
|
3775
|
+
* @license
|
|
3776
|
+
* Copyright 2018 Google LLC
|
|
3777
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3778
|
+
*)
|
|
3779
|
+
|
|
3780
|
+
lit-html/static.js:
|
|
3781
|
+
(**
|
|
3782
|
+
* @license
|
|
3783
|
+
* Copyright 2020 Google LLC
|
|
3784
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3785
|
+
*)
|
|
3786
|
+
|
|
3787
|
+
lit-html/directives/if-defined.js:
|
|
3788
|
+
(**
|
|
3789
|
+
* @license
|
|
3790
|
+
* Copyright 2018 Google LLC
|
|
3791
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3792
|
+
*)
|
|
3793
|
+
*/
|