@webwriter/quiz 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +6 -6
- package/custom.d.ts +175 -175
- package/dist/widgets/webwriter-choice-item.js +58 -13
- package/dist/widgets/webwriter-choice.js +64 -19
- package/dist/widgets/webwriter-cloze-gap.js +59 -14
- package/dist/widgets/webwriter-cloze.js +56 -11
- package/dist/widgets/webwriter-mark.js +56 -11
- package/dist/widgets/webwriter-order-item.js +56 -11
- package/dist/widgets/webwriter-order.js +64 -19
- package/dist/widgets/webwriter-pairing.js +59 -14
- package/dist/widgets/webwriter-quiz.js +67 -22
- package/dist/widgets/webwriter-speech.js +66 -20
- package/dist/widgets/webwriter-task.js +534 -308
- package/dist/widgets/webwriter-text.js +60 -14
- package/package.json +200 -200
- package/src/lib/combobox.ts +455 -455
- package/src/snippets/choice.html +7 -7
- package/src/snippets/cloze.html +3 -3
- package/src/snippets/mark.html +3 -3
- package/src/snippets/order.html +7 -7
- package/src/snippets/pairing.html +9 -9
- package/src/snippets/speech.html +3 -3
- package/src/snippets/text.html +3 -3
- package/src/snippets/wordsearch.html +3 -3
- package/src/widgets/webwriter-choice-item.ts +250 -250
- package/src/widgets/webwriter-choice.ts +309 -309
- package/src/widgets/webwriter-cloze-gap.ts +216 -216
- package/src/widgets/webwriter-cloze.ts +135 -135
- package/src/widgets/webwriter-mark.ts +434 -434
- package/src/widgets/webwriter-order-item.ts +444 -444
- package/src/widgets/webwriter-order.ts +272 -272
- package/src/widgets/webwriter-pairing-item.ts +155 -155
- package/src/widgets/webwriter-pairing.ts +187 -187
- package/src/widgets/webwriter-quiz.ts +280 -280
- package/src/widgets/webwriter-speech.ts +267 -267
- package/src/widgets/webwriter-task-explainer.ts +37 -37
- package/src/widgets/webwriter-task-hint.ts +16 -16
- package/src/widgets/webwriter-task-prompt.ts +17 -17
- package/src/widgets/webwriter-task.ts +543 -543
- package/src/widgets/webwriter-text.ts +130 -130
- package/tsconfig.json +6 -6
|
@@ -54,44 +54,44 @@ var e = t.ShadowRoot && (void 0 === t.ShadyCSS || t.ShadyCSS.nativeShadow) && "a
|
|
|
54
54
|
var s = Symbol();
|
|
55
55
|
var o = /* @__PURE__ */ new WeakMap();
|
|
56
56
|
var n = class {
|
|
57
|
-
constructor(
|
|
57
|
+
constructor(t7, e7, o7) {
|
|
58
58
|
if (this._$cssResult$ = true, o7 !== s) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
59
|
-
this.cssText =
|
|
59
|
+
this.cssText = t7, this.t = e7;
|
|
60
60
|
}
|
|
61
61
|
get styleSheet() {
|
|
62
|
-
let
|
|
62
|
+
let t7 = this.o;
|
|
63
63
|
const s3 = this.t;
|
|
64
|
-
if (e && void 0 ===
|
|
64
|
+
if (e && void 0 === t7) {
|
|
65
65
|
const e7 = void 0 !== s3 && 1 === s3.length;
|
|
66
|
-
e7 && (
|
|
66
|
+
e7 && (t7 = o.get(s3)), void 0 === t7 && ((this.o = t7 = new CSSStyleSheet()).replaceSync(this.cssText), e7 && o.set(s3, t7));
|
|
67
67
|
}
|
|
68
|
-
return
|
|
68
|
+
return t7;
|
|
69
69
|
}
|
|
70
70
|
toString() {
|
|
71
71
|
return this.cssText;
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
|
-
var r = (
|
|
75
|
-
var i = (
|
|
76
|
-
const o7 = 1 ===
|
|
77
|
-
if (true ===
|
|
78
|
-
if ("number" == typeof
|
|
79
|
-
throw Error("Value passed to 'css' function must be a 'css' function result: " +
|
|
80
|
-
})(s3) +
|
|
81
|
-
return new n(o7,
|
|
74
|
+
var r = (t7) => new n("string" == typeof t7 ? t7 : t7 + "", void 0, s);
|
|
75
|
+
var i = (t7, ...e7) => {
|
|
76
|
+
const o7 = 1 === t7.length ? t7[0] : e7.reduce((e8, s3, o8) => e8 + ((t8) => {
|
|
77
|
+
if (true === t8._$cssResult$) return t8.cssText;
|
|
78
|
+
if ("number" == typeof t8) return t8;
|
|
79
|
+
throw Error("Value passed to 'css' function must be a 'css' function result: " + t8 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
80
|
+
})(s3) + t7[o8 + 1], t7[0]);
|
|
81
|
+
return new n(o7, t7, s);
|
|
82
82
|
};
|
|
83
83
|
var S = (s3, o7) => {
|
|
84
|
-
if (e) s3.adoptedStyleSheets = o7.map((
|
|
84
|
+
if (e) s3.adoptedStyleSheets = o7.map((t7) => t7 instanceof CSSStyleSheet ? t7 : t7.styleSheet);
|
|
85
85
|
else for (const e7 of o7) {
|
|
86
86
|
const o8 = document.createElement("style"), n6 = t.litNonce;
|
|
87
87
|
void 0 !== n6 && o8.setAttribute("nonce", n6), o8.textContent = e7.cssText, s3.appendChild(o8);
|
|
88
88
|
}
|
|
89
89
|
};
|
|
90
|
-
var c = e ? (
|
|
90
|
+
var c = e ? (t7) => t7 : (t7) => t7 instanceof CSSStyleSheet ? ((t8) => {
|
|
91
91
|
let e7 = "";
|
|
92
|
-
for (const s3 of
|
|
92
|
+
for (const s3 of t8.cssRules) e7 += s3.cssText;
|
|
93
93
|
return r(e7);
|
|
94
|
-
})(
|
|
94
|
+
})(t7) : t7;
|
|
95
95
|
|
|
96
96
|
// ../../node_modules/lit/node_modules/@lit/reactive-element/reactive-element.js
|
|
97
97
|
var { is: i2, defineProperty: e2, getOwnPropertyDescriptor: r2, getOwnPropertyNames: h, getOwnPropertySymbols: o2, getPrototypeOf: n2 } = Object;
|
|
@@ -99,88 +99,88 @@ var a = globalThis;
|
|
|
99
99
|
var c2 = a.trustedTypes;
|
|
100
100
|
var l = c2 ? c2.emptyScript : "";
|
|
101
101
|
var p = a.reactiveElementPolyfillSupport;
|
|
102
|
-
var d = (
|
|
103
|
-
var u = { toAttribute(
|
|
102
|
+
var d = (t7, s3) => t7;
|
|
103
|
+
var u = { toAttribute(t7, s3) {
|
|
104
104
|
switch (s3) {
|
|
105
105
|
case Boolean:
|
|
106
|
-
|
|
106
|
+
t7 = t7 ? l : null;
|
|
107
107
|
break;
|
|
108
108
|
case Object:
|
|
109
109
|
case Array:
|
|
110
|
-
|
|
110
|
+
t7 = null == t7 ? t7 : JSON.stringify(t7);
|
|
111
111
|
}
|
|
112
|
-
return
|
|
113
|
-
}, fromAttribute(
|
|
114
|
-
let i4 =
|
|
112
|
+
return t7;
|
|
113
|
+
}, fromAttribute(t7, s3) {
|
|
114
|
+
let i4 = t7;
|
|
115
115
|
switch (s3) {
|
|
116
116
|
case Boolean:
|
|
117
|
-
i4 = null !==
|
|
117
|
+
i4 = null !== t7;
|
|
118
118
|
break;
|
|
119
119
|
case Number:
|
|
120
|
-
i4 = null ===
|
|
120
|
+
i4 = null === t7 ? null : Number(t7);
|
|
121
121
|
break;
|
|
122
122
|
case Object:
|
|
123
123
|
case Array:
|
|
124
124
|
try {
|
|
125
|
-
i4 = JSON.parse(
|
|
126
|
-
} catch (
|
|
125
|
+
i4 = JSON.parse(t7);
|
|
126
|
+
} catch (t8) {
|
|
127
127
|
i4 = null;
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
return i4;
|
|
131
131
|
} };
|
|
132
|
-
var f = (
|
|
132
|
+
var f = (t7, s3) => !i2(t7, s3);
|
|
133
133
|
var y = { attribute: true, type: String, converter: u, reflect: false, hasChanged: f };
|
|
134
134
|
Symbol.metadata ??= Symbol("metadata"), a.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
135
135
|
var b = class extends HTMLElement {
|
|
136
|
-
static addInitializer(
|
|
137
|
-
this._$Ei(), (this.l ??= []).push(
|
|
136
|
+
static addInitializer(t7) {
|
|
137
|
+
this._$Ei(), (this.l ??= []).push(t7);
|
|
138
138
|
}
|
|
139
139
|
static get observedAttributes() {
|
|
140
140
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
141
141
|
}
|
|
142
|
-
static createProperty(
|
|
143
|
-
if (s3.state && (s3.attribute = false), this._$Ei(), this.elementProperties.set(
|
|
144
|
-
const i4 = Symbol(), r7 = this.getPropertyDescriptor(
|
|
145
|
-
void 0 !== r7 && e2(this.prototype,
|
|
142
|
+
static createProperty(t7, s3 = y) {
|
|
143
|
+
if (s3.state && (s3.attribute = false), this._$Ei(), this.elementProperties.set(t7, s3), !s3.noAccessor) {
|
|
144
|
+
const i4 = Symbol(), r7 = this.getPropertyDescriptor(t7, i4, s3);
|
|
145
|
+
void 0 !== r7 && e2(this.prototype, t7, r7);
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
|
-
static getPropertyDescriptor(
|
|
149
|
-
const { get: e7, set: h5 } = r2(this.prototype,
|
|
148
|
+
static getPropertyDescriptor(t7, s3, i4) {
|
|
149
|
+
const { get: e7, set: h5 } = r2(this.prototype, t7) ?? { get() {
|
|
150
150
|
return this[s3];
|
|
151
|
-
}, set(
|
|
152
|
-
this[s3] =
|
|
151
|
+
}, set(t8) {
|
|
152
|
+
this[s3] = t8;
|
|
153
153
|
} };
|
|
154
154
|
return { get() {
|
|
155
155
|
return e7?.call(this);
|
|
156
156
|
}, set(s4) {
|
|
157
157
|
const r7 = e7?.call(this);
|
|
158
|
-
h5.call(this, s4), this.requestUpdate(
|
|
158
|
+
h5.call(this, s4), this.requestUpdate(t7, r7, i4);
|
|
159
159
|
}, configurable: true, enumerable: true };
|
|
160
160
|
}
|
|
161
|
-
static getPropertyOptions(
|
|
162
|
-
return this.elementProperties.get(
|
|
161
|
+
static getPropertyOptions(t7) {
|
|
162
|
+
return this.elementProperties.get(t7) ?? y;
|
|
163
163
|
}
|
|
164
164
|
static _$Ei() {
|
|
165
165
|
if (this.hasOwnProperty(d("elementProperties"))) return;
|
|
166
|
-
const
|
|
167
|
-
|
|
166
|
+
const t7 = n2(this);
|
|
167
|
+
t7.finalize(), void 0 !== t7.l && (this.l = [...t7.l]), this.elementProperties = new Map(t7.elementProperties);
|
|
168
168
|
}
|
|
169
169
|
static finalize() {
|
|
170
170
|
if (this.hasOwnProperty(d("finalized"))) return;
|
|
171
171
|
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d("properties"))) {
|
|
172
|
-
const
|
|
173
|
-
for (const i4 of s3) this.createProperty(i4,
|
|
172
|
+
const t8 = this.properties, s3 = [...h(t8), ...o2(t8)];
|
|
173
|
+
for (const i4 of s3) this.createProperty(i4, t8[i4]);
|
|
174
174
|
}
|
|
175
|
-
const
|
|
176
|
-
if (null !==
|
|
177
|
-
const s3 = litPropertyMetadata.get(
|
|
178
|
-
if (void 0 !== s3) for (const [
|
|
175
|
+
const t7 = this[Symbol.metadata];
|
|
176
|
+
if (null !== t7) {
|
|
177
|
+
const s3 = litPropertyMetadata.get(t7);
|
|
178
|
+
if (void 0 !== s3) for (const [t8, i4] of s3) this.elementProperties.set(t8, i4);
|
|
179
179
|
}
|
|
180
180
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
181
|
-
for (const [
|
|
182
|
-
const i4 = this._$Eu(
|
|
183
|
-
void 0 !== i4 && this._$Eh.set(i4,
|
|
181
|
+
for (const [t8, s3] of this.elementProperties) {
|
|
182
|
+
const i4 = this._$Eu(t8, s3);
|
|
183
|
+
void 0 !== i4 && this._$Eh.set(i4, t8);
|
|
184
184
|
}
|
|
185
185
|
this.elementStyles = this.finalizeStyles(this.styles);
|
|
186
186
|
}
|
|
@@ -192,75 +192,75 @@ var b = class extends HTMLElement {
|
|
|
192
192
|
} else void 0 !== s3 && i4.push(c(s3));
|
|
193
193
|
return i4;
|
|
194
194
|
}
|
|
195
|
-
static _$Eu(
|
|
195
|
+
static _$Eu(t7, s3) {
|
|
196
196
|
const i4 = s3.attribute;
|
|
197
|
-
return false === i4 ? void 0 : "string" == typeof i4 ? i4 : "string" == typeof
|
|
197
|
+
return false === i4 ? void 0 : "string" == typeof i4 ? i4 : "string" == typeof t7 ? t7.toLowerCase() : void 0;
|
|
198
198
|
}
|
|
199
199
|
constructor() {
|
|
200
200
|
super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
|
|
201
201
|
}
|
|
202
202
|
_$Ev() {
|
|
203
|
-
this._$ES = new Promise((
|
|
203
|
+
this._$ES = new Promise((t7) => this.enableUpdating = t7), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t7) => t7(this));
|
|
204
204
|
}
|
|
205
|
-
addController(
|
|
206
|
-
(this._$EO ??= /* @__PURE__ */ new Set()).add(
|
|
205
|
+
addController(t7) {
|
|
206
|
+
(this._$EO ??= /* @__PURE__ */ new Set()).add(t7), void 0 !== this.renderRoot && this.isConnected && t7.hostConnected?.();
|
|
207
207
|
}
|
|
208
|
-
removeController(
|
|
209
|
-
this._$EO?.delete(
|
|
208
|
+
removeController(t7) {
|
|
209
|
+
this._$EO?.delete(t7);
|
|
210
210
|
}
|
|
211
211
|
_$E_() {
|
|
212
|
-
const
|
|
213
|
-
for (const i4 of s3.keys()) this.hasOwnProperty(i4) && (
|
|
214
|
-
|
|
212
|
+
const t7 = /* @__PURE__ */ new Map(), s3 = this.constructor.elementProperties;
|
|
213
|
+
for (const i4 of s3.keys()) this.hasOwnProperty(i4) && (t7.set(i4, this[i4]), delete this[i4]);
|
|
214
|
+
t7.size > 0 && (this._$Ep = t7);
|
|
215
215
|
}
|
|
216
216
|
createRenderRoot() {
|
|
217
|
-
const
|
|
218
|
-
return S(
|
|
217
|
+
const t7 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
218
|
+
return S(t7, this.constructor.elementStyles), t7;
|
|
219
219
|
}
|
|
220
220
|
connectedCallback() {
|
|
221
|
-
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach((
|
|
221
|
+
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach((t7) => t7.hostConnected?.());
|
|
222
222
|
}
|
|
223
|
-
enableUpdating(
|
|
223
|
+
enableUpdating(t7) {
|
|
224
224
|
}
|
|
225
225
|
disconnectedCallback() {
|
|
226
|
-
this._$EO?.forEach((
|
|
226
|
+
this._$EO?.forEach((t7) => t7.hostDisconnected?.());
|
|
227
227
|
}
|
|
228
|
-
attributeChangedCallback(
|
|
229
|
-
this._$AK(
|
|
228
|
+
attributeChangedCallback(t7, s3, i4) {
|
|
229
|
+
this._$AK(t7, i4);
|
|
230
230
|
}
|
|
231
|
-
_$EC(
|
|
232
|
-
const i4 = this.constructor.elementProperties.get(
|
|
231
|
+
_$EC(t7, s3) {
|
|
232
|
+
const i4 = this.constructor.elementProperties.get(t7), e7 = this.constructor._$Eu(t7, i4);
|
|
233
233
|
if (void 0 !== e7 && true === i4.reflect) {
|
|
234
234
|
const r7 = (void 0 !== i4.converter?.toAttribute ? i4.converter : u).toAttribute(s3, i4.type);
|
|
235
|
-
this._$Em =
|
|
235
|
+
this._$Em = t7, null == r7 ? this.removeAttribute(e7) : this.setAttribute(e7, r7), this._$Em = null;
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
|
-
_$AK(
|
|
239
|
-
const i4 = this.constructor, e7 = i4._$Eh.get(
|
|
238
|
+
_$AK(t7, s3) {
|
|
239
|
+
const i4 = this.constructor, e7 = i4._$Eh.get(t7);
|
|
240
240
|
if (void 0 !== e7 && this._$Em !== e7) {
|
|
241
|
-
const
|
|
242
|
-
this._$Em = e7, this[e7] = r7.fromAttribute(s3,
|
|
241
|
+
const t8 = i4.getPropertyOptions(e7), r7 = "function" == typeof t8.converter ? { fromAttribute: t8.converter } : void 0 !== t8.converter?.fromAttribute ? t8.converter : u;
|
|
242
|
+
this._$Em = e7, this[e7] = r7.fromAttribute(s3, t8.type), this._$Em = null;
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
|
-
requestUpdate(
|
|
246
|
-
if (void 0 !==
|
|
247
|
-
if (i4 ??= this.constructor.getPropertyOptions(
|
|
248
|
-
this.P(
|
|
245
|
+
requestUpdate(t7, s3, i4) {
|
|
246
|
+
if (void 0 !== t7) {
|
|
247
|
+
if (i4 ??= this.constructor.getPropertyOptions(t7), !(i4.hasChanged ?? f)(this[t7], s3)) return;
|
|
248
|
+
this.P(t7, s3, i4);
|
|
249
249
|
}
|
|
250
250
|
false === this.isUpdatePending && (this._$ES = this._$ET());
|
|
251
251
|
}
|
|
252
|
-
P(
|
|
253
|
-
this._$AL.has(
|
|
252
|
+
P(t7, s3, i4) {
|
|
253
|
+
this._$AL.has(t7) || this._$AL.set(t7, s3), true === i4.reflect && this._$Em !== t7 && (this._$Ej ??= /* @__PURE__ */ new Set()).add(t7);
|
|
254
254
|
}
|
|
255
255
|
async _$ET() {
|
|
256
256
|
this.isUpdatePending = true;
|
|
257
257
|
try {
|
|
258
258
|
await this._$ES;
|
|
259
|
-
} catch (
|
|
260
|
-
Promise.reject(
|
|
259
|
+
} catch (t8) {
|
|
260
|
+
Promise.reject(t8);
|
|
261
261
|
}
|
|
262
|
-
const
|
|
263
|
-
return null !=
|
|
262
|
+
const t7 = this.scheduleUpdate();
|
|
263
|
+
return null != t7 && await t7, !this.isUpdatePending;
|
|
264
264
|
}
|
|
265
265
|
scheduleUpdate() {
|
|
266
266
|
return this.performUpdate();
|
|
@@ -269,25 +269,25 @@ var b = class extends HTMLElement {
|
|
|
269
269
|
if (!this.isUpdatePending) return;
|
|
270
270
|
if (!this.hasUpdated) {
|
|
271
271
|
if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
|
|
272
|
-
for (const [
|
|
272
|
+
for (const [t9, s4] of this._$Ep) this[t9] = s4;
|
|
273
273
|
this._$Ep = void 0;
|
|
274
274
|
}
|
|
275
|
-
const
|
|
276
|
-
if (
|
|
275
|
+
const t8 = this.constructor.elementProperties;
|
|
276
|
+
if (t8.size > 0) for (const [s4, i4] of t8) true !== i4.wrapped || this._$AL.has(s4) || void 0 === this[s4] || this.P(s4, this[s4], i4);
|
|
277
277
|
}
|
|
278
|
-
let
|
|
278
|
+
let t7 = false;
|
|
279
279
|
const s3 = this._$AL;
|
|
280
280
|
try {
|
|
281
|
-
|
|
281
|
+
t7 = this.shouldUpdate(s3), t7 ? (this.willUpdate(s3), this._$EO?.forEach((t8) => t8.hostUpdate?.()), this.update(s3)) : this._$EU();
|
|
282
282
|
} catch (s4) {
|
|
283
|
-
throw
|
|
283
|
+
throw t7 = false, this._$EU(), s4;
|
|
284
284
|
}
|
|
285
|
-
|
|
285
|
+
t7 && this._$AE(s3);
|
|
286
286
|
}
|
|
287
|
-
willUpdate(
|
|
287
|
+
willUpdate(t7) {
|
|
288
288
|
}
|
|
289
|
-
_$AE(
|
|
290
|
-
this._$EO?.forEach((
|
|
289
|
+
_$AE(t7) {
|
|
290
|
+
this._$EO?.forEach((t8) => t8.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t7)), this.updated(t7);
|
|
291
291
|
}
|
|
292
292
|
_$EU() {
|
|
293
293
|
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
|
|
@@ -298,15 +298,15 @@ var b = class extends HTMLElement {
|
|
|
298
298
|
getUpdateComplete() {
|
|
299
299
|
return this._$ES;
|
|
300
300
|
}
|
|
301
|
-
shouldUpdate(
|
|
301
|
+
shouldUpdate(t7) {
|
|
302
302
|
return true;
|
|
303
303
|
}
|
|
304
|
-
update(
|
|
305
|
-
this._$Ej &&= this._$Ej.forEach((
|
|
304
|
+
update(t7) {
|
|
305
|
+
this._$Ej &&= this._$Ej.forEach((t8) => this._$EC(t8, this[t8])), this._$EU();
|
|
306
306
|
}
|
|
307
|
-
updated(
|
|
307
|
+
updated(t7) {
|
|
308
308
|
}
|
|
309
|
-
firstUpdated(
|
|
309
|
+
firstUpdated(t7) {
|
|
310
310
|
}
|
|
311
311
|
};
|
|
312
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");
|
|
@@ -314,16 +314,16 @@ b.elementStyles = [], b.shadowRootOptions = { mode: "open" }, b[d("elementProper
|
|
|
314
314
|
// ../../node_modules/lit/node_modules/lit-html/lit-html.js
|
|
315
315
|
var n3 = globalThis;
|
|
316
316
|
var c3 = n3.trustedTypes;
|
|
317
|
-
var h2 = c3 ? c3.createPolicy("lit-html", { createHTML: (
|
|
317
|
+
var h2 = c3 ? c3.createPolicy("lit-html", { createHTML: (t7) => t7 }) : void 0;
|
|
318
318
|
var f2 = "$lit$";
|
|
319
319
|
var v = `lit$${Math.random().toFixed(9).slice(2)}$`;
|
|
320
320
|
var m = "?" + v;
|
|
321
321
|
var _ = `<${m}>`;
|
|
322
322
|
var w = document;
|
|
323
323
|
var lt = () => w.createComment("");
|
|
324
|
-
var st = (
|
|
324
|
+
var st = (t7) => null === t7 || "object" != typeof t7 && "function" != typeof t7;
|
|
325
325
|
var g = Array.isArray;
|
|
326
|
-
var $ = (
|
|
326
|
+
var $ = (t7) => g(t7) || "function" == typeof t7?.[Symbol.iterator];
|
|
327
327
|
var x = "[ \n\f\r]";
|
|
328
328
|
var T = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
|
|
329
329
|
var E = /-->/g;
|
|
@@ -333,7 +333,7 @@ var O = RegExp(`>|${x}(?:([^\\s"'>=/]+)(${x}*=${x}*(?:[^
|
|
|
333
333
|
var S2 = /'/g;
|
|
334
334
|
var j = /"/g;
|
|
335
335
|
var M = /^(?:script|style|textarea|title)$/i;
|
|
336
|
-
var P = (
|
|
336
|
+
var P = (t7) => (i4, ...s3) => ({ _$litType$: t7, strings: i4, values: s3 });
|
|
337
337
|
var ke = P(1);
|
|
338
338
|
var Oe = P(2);
|
|
339
339
|
var Se = P(3);
|
|
@@ -341,68 +341,68 @@ var R = Symbol.for("lit-noChange");
|
|
|
341
341
|
var D = Symbol.for("lit-nothing");
|
|
342
342
|
var V = /* @__PURE__ */ new WeakMap();
|
|
343
343
|
var I = w.createTreeWalker(w, 129);
|
|
344
|
-
function N(
|
|
345
|
-
if (!g(
|
|
344
|
+
function N(t7, i4) {
|
|
345
|
+
if (!g(t7) || !t7.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
346
346
|
return void 0 !== h2 ? h2.createHTML(i4) : i4;
|
|
347
347
|
}
|
|
348
|
-
var U = (
|
|
349
|
-
const s3 =
|
|
348
|
+
var U = (t7, i4) => {
|
|
349
|
+
const s3 = t7.length - 1, e7 = [];
|
|
350
350
|
let h5, o7 = 2 === i4 ? "<svg>" : 3 === i4 ? "<math>" : "", n6 = T;
|
|
351
351
|
for (let i5 = 0; i5 < s3; i5++) {
|
|
352
|
-
const s4 =
|
|
352
|
+
const s4 = t7[i5];
|
|
353
353
|
let r7, l3, c5 = -1, a3 = 0;
|
|
354
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 &&
|
|
355
|
+
const u3 = n6 === O && t7[i5 + 1].startsWith("/>") ? " " : "";
|
|
356
356
|
o7 += n6 === T ? s4 + _ : c5 >= 0 ? (e7.push(r7), s4.slice(0, c5) + f2 + s4.slice(c5) + v + u3) : s4 + v + (-2 === c5 ? i5 : u3);
|
|
357
357
|
}
|
|
358
|
-
return [N(
|
|
358
|
+
return [N(t7, o7 + (t7[s3] || "<?>") + (2 === i4 ? "</svg>" : 3 === i4 ? "</math>" : "")), e7];
|
|
359
359
|
};
|
|
360
360
|
var B = class _B2 {
|
|
361
|
-
constructor({ strings:
|
|
361
|
+
constructor({ strings: t7, _$litType$: i4 }, s3) {
|
|
362
362
|
let e7;
|
|
363
363
|
this.parts = [];
|
|
364
364
|
let h5 = 0, o7 = 0;
|
|
365
|
-
const n6 =
|
|
365
|
+
const n6 = t7.length - 1, r7 = this.parts, [l3, a3] = U(t7, i4);
|
|
366
366
|
if (this.el = _B2.createElement(l3, s3), I.currentNode = this.el.content, 2 === i4 || 3 === i4) {
|
|
367
|
-
const
|
|
368
|
-
|
|
367
|
+
const t8 = this.el.content.firstChild;
|
|
368
|
+
t8.replaceWith(...t8.childNodes);
|
|
369
369
|
}
|
|
370
370
|
for (; null !== (e7 = I.nextNode()) && r7.length < n6; ) {
|
|
371
371
|
if (1 === e7.nodeType) {
|
|
372
|
-
if (e7.hasAttributes()) for (const
|
|
373
|
-
const i5 = a3[o7++], s4 = e7.getAttribute(
|
|
374
|
-
r7.push({ type: 1, index: h5, name: n7[2], strings: s4, ctor: "." === n7[1] ? Y : "?" === n7[1] ? Z : "@" === n7[1] ? q : G }), e7.removeAttribute(
|
|
375
|
-
} else
|
|
372
|
+
if (e7.hasAttributes()) for (const t8 of e7.getAttributeNames()) if (t8.endsWith(f2)) {
|
|
373
|
+
const i5 = a3[o7++], s4 = e7.getAttribute(t8).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 }), e7.removeAttribute(t8);
|
|
375
|
+
} else t8.startsWith(v) && (r7.push({ type: 6, index: h5 }), e7.removeAttribute(t8));
|
|
376
376
|
if (M.test(e7.tagName)) {
|
|
377
|
-
const
|
|
377
|
+
const t8 = e7.textContent.split(v), i5 = t8.length - 1;
|
|
378
378
|
if (i5 > 0) {
|
|
379
379
|
e7.textContent = c3 ? c3.emptyScript : "";
|
|
380
|
-
for (let s4 = 0; s4 < i5; s4++) e7.append(
|
|
381
|
-
e7.append(
|
|
380
|
+
for (let s4 = 0; s4 < i5; s4++) e7.append(t8[s4], lt()), I.nextNode(), r7.push({ type: 2, index: ++h5 });
|
|
381
|
+
e7.append(t8[i5], lt());
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
384
|
} else if (8 === e7.nodeType) if (e7.data === m) r7.push({ type: 2, index: h5 });
|
|
385
385
|
else {
|
|
386
|
-
let
|
|
387
|
-
for (; -1 !== (
|
|
386
|
+
let t8 = -1;
|
|
387
|
+
for (; -1 !== (t8 = e7.data.indexOf(v, t8 + 1)); ) r7.push({ type: 7, index: h5 }), t8 += v.length - 1;
|
|
388
388
|
}
|
|
389
389
|
h5++;
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
|
-
static createElement(
|
|
392
|
+
static createElement(t7, i4) {
|
|
393
393
|
const s3 = w.createElement("template");
|
|
394
|
-
return s3.innerHTML =
|
|
394
|
+
return s3.innerHTML = t7, s3;
|
|
395
395
|
}
|
|
396
396
|
};
|
|
397
|
-
function z(
|
|
397
|
+
function z(t7, i4, s3 = t7, e7) {
|
|
398
398
|
if (i4 === R) return i4;
|
|
399
399
|
let h5 = void 0 !== e7 ? s3.o?.[e7] : s3.l;
|
|
400
400
|
const o7 = st(i4) ? void 0 : i4._$litDirective$;
|
|
401
|
-
return h5?.constructor !== o7 && (h5?._$AO?.(false), void 0 === o7 ? h5 = void 0 : (h5 = new o7(
|
|
401
|
+
return h5?.constructor !== o7 && (h5?._$AO?.(false), void 0 === o7 ? h5 = void 0 : (h5 = new o7(t7), h5._$AT(t7, s3, e7)), void 0 !== e7 ? (s3.o ??= [])[e7] = h5 : s3.l = h5), void 0 !== h5 && (i4 = z(t7, h5._$AS(t7, i4.values), h5, e7)), i4;
|
|
402
402
|
}
|
|
403
403
|
var F = class {
|
|
404
|
-
constructor(
|
|
405
|
-
this._$AV = [], this._$AN = void 0, this._$AD =
|
|
404
|
+
constructor(t7, i4) {
|
|
405
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t7, this._$AM = i4;
|
|
406
406
|
}
|
|
407
407
|
get parentNode() {
|
|
408
408
|
return this._$AM.parentNode;
|
|
@@ -410,35 +410,35 @@ var F = class {
|
|
|
410
410
|
get _$AU() {
|
|
411
411
|
return this._$AM._$AU;
|
|
412
412
|
}
|
|
413
|
-
u(
|
|
414
|
-
const { el: { content: i4 }, parts: s3 } = this._$AD, e7 = (
|
|
413
|
+
u(t7) {
|
|
414
|
+
const { el: { content: i4 }, parts: s3 } = this._$AD, e7 = (t7?.creationScope ?? w).importNode(i4, true);
|
|
415
415
|
I.currentNode = e7;
|
|
416
416
|
let h5 = I.nextNode(), o7 = 0, n6 = 0, r7 = s3[0];
|
|
417
417
|
for (; void 0 !== r7; ) {
|
|
418
418
|
if (o7 === r7.index) {
|
|
419
419
|
let i5;
|
|
420
|
-
2 === r7.type ? i5 = new et(h5, h5.nextSibling, this,
|
|
420
|
+
2 === r7.type ? i5 = new et(h5, h5.nextSibling, this, t7) : 1 === r7.type ? i5 = new r7.ctor(h5, r7.name, r7.strings, this, t7) : 6 === r7.type && (i5 = new K(h5, this, t7)), this._$AV.push(i5), r7 = s3[++n6];
|
|
421
421
|
}
|
|
422
422
|
o7 !== r7?.index && (h5 = I.nextNode(), o7++);
|
|
423
423
|
}
|
|
424
424
|
return I.currentNode = w, e7;
|
|
425
425
|
}
|
|
426
|
-
p(
|
|
426
|
+
p(t7) {
|
|
427
427
|
let i4 = 0;
|
|
428
|
-
for (const s3 of this._$AV) void 0 !== s3 && (void 0 !== s3.strings ? (s3._$AI(
|
|
428
|
+
for (const s3 of this._$AV) void 0 !== s3 && (void 0 !== s3.strings ? (s3._$AI(t7, s3, i4), i4 += s3.strings.length - 2) : s3._$AI(t7[i4])), i4++;
|
|
429
429
|
}
|
|
430
430
|
};
|
|
431
431
|
var et = class _et2 {
|
|
432
432
|
get _$AU() {
|
|
433
433
|
return this._$AM?._$AU ?? this.v;
|
|
434
434
|
}
|
|
435
|
-
constructor(
|
|
436
|
-
this.type = 2, this._$AH = D, this._$AN = void 0, this._$AA =
|
|
435
|
+
constructor(t7, i4, s3, e7) {
|
|
436
|
+
this.type = 2, this._$AH = D, this._$AN = void 0, this._$AA = t7, this._$AB = i4, this._$AM = s3, this.options = e7, this.v = e7?.isConnected ?? true;
|
|
437
437
|
}
|
|
438
438
|
get parentNode() {
|
|
439
|
-
let
|
|
439
|
+
let t7 = this._$AA.parentNode;
|
|
440
440
|
const i4 = this._$AM;
|
|
441
|
-
return void 0 !== i4 && 11 ===
|
|
441
|
+
return void 0 !== i4 && 11 === t7?.nodeType && (t7 = i4.parentNode), t7;
|
|
442
442
|
}
|
|
443
443
|
get startNode() {
|
|
444
444
|
return this._$AA;
|
|
@@ -446,45 +446,45 @@ var et = class _et2 {
|
|
|
446
446
|
get endNode() {
|
|
447
447
|
return this._$AB;
|
|
448
448
|
}
|
|
449
|
-
_$AI(
|
|
450
|
-
|
|
449
|
+
_$AI(t7, i4 = this) {
|
|
450
|
+
t7 = z(this, t7, i4), st(t7) ? t7 === D || null == t7 || "" === t7 ? (this._$AH !== D && this._$AR(), this._$AH = D) : t7 !== this._$AH && t7 !== R && this._(t7) : void 0 !== t7._$litType$ ? this.$(t7) : void 0 !== t7.nodeType ? this.T(t7) : $(t7) ? this.k(t7) : this._(t7);
|
|
451
451
|
}
|
|
452
|
-
O(
|
|
453
|
-
return this._$AA.parentNode.insertBefore(
|
|
452
|
+
O(t7) {
|
|
453
|
+
return this._$AA.parentNode.insertBefore(t7, this._$AB);
|
|
454
454
|
}
|
|
455
|
-
T(
|
|
456
|
-
this._$AH !==
|
|
455
|
+
T(t7) {
|
|
456
|
+
this._$AH !== t7 && (this._$AR(), this._$AH = this.O(t7));
|
|
457
457
|
}
|
|
458
|
-
_(
|
|
459
|
-
this._$AH !== D && st(this._$AH) ? this._$AA.nextSibling.data =
|
|
458
|
+
_(t7) {
|
|
459
|
+
this._$AH !== D && st(this._$AH) ? this._$AA.nextSibling.data = t7 : this.T(w.createTextNode(t7)), this._$AH = t7;
|
|
460
460
|
}
|
|
461
|
-
$(
|
|
462
|
-
const { values: i4, _$litType$: s3 } =
|
|
461
|
+
$(t7) {
|
|
462
|
+
const { values: i4, _$litType$: s3 } = t7, e7 = "number" == typeof s3 ? this._$AC(t7) : (void 0 === s3.el && (s3.el = B.createElement(N(s3.h, s3.h[0]), this.options)), s3);
|
|
463
463
|
if (this._$AH?._$AD === e7) this._$AH.p(i4);
|
|
464
464
|
else {
|
|
465
|
-
const
|
|
466
|
-
|
|
465
|
+
const t8 = new F(e7, this), s4 = t8.u(this.options);
|
|
466
|
+
t8.p(i4), this.T(s4), this._$AH = t8;
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
_$AC(
|
|
470
|
-
let i4 = V.get(
|
|
471
|
-
return void 0 === i4 && V.set(
|
|
469
|
+
_$AC(t7) {
|
|
470
|
+
let i4 = V.get(t7.strings);
|
|
471
|
+
return void 0 === i4 && V.set(t7.strings, i4 = new B(t7)), i4;
|
|
472
472
|
}
|
|
473
|
-
k(
|
|
473
|
+
k(t7) {
|
|
474
474
|
g(this._$AH) || (this._$AH = [], this._$AR());
|
|
475
475
|
const i4 = this._$AH;
|
|
476
476
|
let s3, e7 = 0;
|
|
477
|
-
for (const h5 of
|
|
477
|
+
for (const h5 of t7) e7 === i4.length ? i4.push(s3 = new _et2(this.O(lt()), this.O(lt()), this, this.options)) : s3 = i4[e7], s3._$AI(h5), e7++;
|
|
478
478
|
e7 < i4.length && (this._$AR(s3 && s3._$AB.nextSibling, e7), i4.length = e7);
|
|
479
479
|
}
|
|
480
|
-
_$AR(
|
|
481
|
-
for (this._$AP?.(false, true, i4);
|
|
482
|
-
const i5 =
|
|
483
|
-
|
|
480
|
+
_$AR(t7 = this._$AA.nextSibling, i4) {
|
|
481
|
+
for (this._$AP?.(false, true, i4); t7 && t7 !== this._$AB; ) {
|
|
482
|
+
const i5 = t7.nextSibling;
|
|
483
|
+
t7.remove(), t7 = i5;
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
|
-
setConnected(
|
|
487
|
-
void 0 === this._$AM && (this.v =
|
|
486
|
+
setConnected(t7) {
|
|
487
|
+
void 0 === this._$AM && (this.v = t7, this._$AP?.(t7));
|
|
488
488
|
}
|
|
489
489
|
};
|
|
490
490
|
var G = class {
|
|
@@ -494,75 +494,75 @@ var G = class {
|
|
|
494
494
|
get _$AU() {
|
|
495
495
|
return this._$AM._$AU;
|
|
496
496
|
}
|
|
497
|
-
constructor(
|
|
498
|
-
this.type = 1, this._$AH = D, this._$AN = void 0, this.element =
|
|
497
|
+
constructor(t7, i4, s3, e7, h5) {
|
|
498
|
+
this.type = 1, this._$AH = D, this._$AN = void 0, this.element = t7, this.name = i4, this._$AM = e7, this.options = h5, s3.length > 2 || "" !== s3[0] || "" !== s3[1] ? (this._$AH = Array(s3.length - 1).fill(new String()), this.strings = s3) : this._$AH = D;
|
|
499
499
|
}
|
|
500
|
-
_$AI(
|
|
500
|
+
_$AI(t7, i4 = this, s3, e7) {
|
|
501
501
|
const h5 = this.strings;
|
|
502
502
|
let o7 = false;
|
|
503
|
-
if (void 0 === h5)
|
|
503
|
+
if (void 0 === h5) t7 = z(this, t7, i4, 0), o7 = !st(t7) || t7 !== this._$AH && t7 !== R, o7 && (this._$AH = t7);
|
|
504
504
|
else {
|
|
505
|
-
const e8 =
|
|
505
|
+
const e8 = t7;
|
|
506
506
|
let n6, r7;
|
|
507
|
-
for (
|
|
507
|
+
for (t7 = h5[0], n6 = 0; n6 < h5.length - 1; n6++) r7 = z(this, e8[s3 + n6], i4, n6), r7 === R && (r7 = this._$AH[n6]), o7 ||= !st(r7) || r7 !== this._$AH[n6], r7 === D ? t7 = D : t7 !== D && (t7 += (r7 ?? "") + h5[n6 + 1]), this._$AH[n6] = r7;
|
|
508
508
|
}
|
|
509
|
-
o7 && !e7 && this.j(
|
|
509
|
+
o7 && !e7 && this.j(t7);
|
|
510
510
|
}
|
|
511
|
-
j(
|
|
512
|
-
|
|
511
|
+
j(t7) {
|
|
512
|
+
t7 === D ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t7 ?? "");
|
|
513
513
|
}
|
|
514
514
|
};
|
|
515
515
|
var Y = class extends G {
|
|
516
516
|
constructor() {
|
|
517
517
|
super(...arguments), this.type = 3;
|
|
518
518
|
}
|
|
519
|
-
j(
|
|
520
|
-
this.element[this.name] =
|
|
519
|
+
j(t7) {
|
|
520
|
+
this.element[this.name] = t7 === D ? void 0 : t7;
|
|
521
521
|
}
|
|
522
522
|
};
|
|
523
523
|
var Z = class extends G {
|
|
524
524
|
constructor() {
|
|
525
525
|
super(...arguments), this.type = 4;
|
|
526
526
|
}
|
|
527
|
-
j(
|
|
528
|
-
this.element.toggleAttribute(this.name, !!
|
|
527
|
+
j(t7) {
|
|
528
|
+
this.element.toggleAttribute(this.name, !!t7 && t7 !== D);
|
|
529
529
|
}
|
|
530
530
|
};
|
|
531
531
|
var q = class extends G {
|
|
532
|
-
constructor(
|
|
533
|
-
super(
|
|
532
|
+
constructor(t7, i4, s3, e7, h5) {
|
|
533
|
+
super(t7, i4, s3, e7, h5), this.type = 5;
|
|
534
534
|
}
|
|
535
|
-
_$AI(
|
|
536
|
-
if ((
|
|
537
|
-
const s3 = this._$AH, e7 =
|
|
538
|
-
e7 && this.element.removeEventListener(this.name, this, s3), h5 && this.element.addEventListener(this.name, this,
|
|
535
|
+
_$AI(t7, i4 = this) {
|
|
536
|
+
if ((t7 = z(this, t7, i4, 0) ?? D) === R) return;
|
|
537
|
+
const s3 = this._$AH, e7 = t7 === D && s3 !== D || t7.capture !== s3.capture || t7.once !== s3.once || t7.passive !== s3.passive, h5 = t7 !== D && (s3 === D || e7);
|
|
538
|
+
e7 && this.element.removeEventListener(this.name, this, s3), h5 && this.element.addEventListener(this.name, this, t7), this._$AH = t7;
|
|
539
539
|
}
|
|
540
|
-
handleEvent(
|
|
541
|
-
"function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element,
|
|
540
|
+
handleEvent(t7) {
|
|
541
|
+
"function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t7) : this._$AH.handleEvent(t7);
|
|
542
542
|
}
|
|
543
543
|
};
|
|
544
544
|
var K = class {
|
|
545
|
-
constructor(
|
|
546
|
-
this.element =
|
|
545
|
+
constructor(t7, i4, s3) {
|
|
546
|
+
this.element = t7, this.type = 6, this._$AN = void 0, this._$AM = i4, this.options = s3;
|
|
547
547
|
}
|
|
548
548
|
get _$AU() {
|
|
549
549
|
return this._$AM._$AU;
|
|
550
550
|
}
|
|
551
|
-
_$AI(
|
|
552
|
-
z(this,
|
|
551
|
+
_$AI(t7) {
|
|
552
|
+
z(this, t7);
|
|
553
553
|
}
|
|
554
554
|
};
|
|
555
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
556
|
var Re = n3.litHtmlPolyfillSupport;
|
|
557
557
|
Re?.(B, et), (n3.litHtmlVersions ??= []).push("3.2.0");
|
|
558
|
-
var Q = (
|
|
558
|
+
var Q = (t7, i4, s3) => {
|
|
559
559
|
const e7 = s3?.renderBefore ?? i4;
|
|
560
560
|
let h5 = e7._$litPart$;
|
|
561
561
|
if (void 0 === h5) {
|
|
562
|
-
const
|
|
563
|
-
e7._$litPart$ = h5 = new et(i4.insertBefore(lt(),
|
|
562
|
+
const t8 = s3?.renderBefore ?? null;
|
|
563
|
+
e7._$litPart$ = h5 = new et(i4.insertBefore(lt(), t8), t8, void 0, s3 ?? {});
|
|
564
564
|
}
|
|
565
|
-
return h5._$AI(
|
|
565
|
+
return h5._$AI(t7), h5;
|
|
566
566
|
};
|
|
567
567
|
|
|
568
568
|
// ../../node_modules/lit/node_modules/lit-element/lit-element.js
|
|
@@ -571,12 +571,12 @@ var h3 = class extends b {
|
|
|
571
571
|
super(...arguments), this.renderOptions = { host: this }, this.o = void 0;
|
|
572
572
|
}
|
|
573
573
|
createRenderRoot() {
|
|
574
|
-
const
|
|
575
|
-
return this.renderOptions.renderBefore ??=
|
|
574
|
+
const t7 = super.createRenderRoot();
|
|
575
|
+
return this.renderOptions.renderBefore ??= t7.firstChild, t7;
|
|
576
576
|
}
|
|
577
|
-
update(
|
|
577
|
+
update(t7) {
|
|
578
578
|
const e7 = this.render();
|
|
579
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(
|
|
579
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t7), this.o = Q(e7, this.renderRoot, this.renderOptions);
|
|
580
580
|
}
|
|
581
581
|
connectedCallback() {
|
|
582
582
|
super.connectedCallback(), this.o?.setConnected(true);
|
|
@@ -595,20 +595,20 @@ f3?.({ LitElement: h3 });
|
|
|
595
595
|
|
|
596
596
|
// ../../node_modules/lit/node_modules/lit-html/directive.js
|
|
597
597
|
var t2 = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 };
|
|
598
|
-
var e3 = (
|
|
598
|
+
var e3 = (t7) => (...e7) => ({ _$litDirective$: t7, values: e7 });
|
|
599
599
|
var i3 = class {
|
|
600
|
-
constructor(
|
|
600
|
+
constructor(t7) {
|
|
601
601
|
}
|
|
602
602
|
get _$AU() {
|
|
603
603
|
return this._$AM._$AU;
|
|
604
604
|
}
|
|
605
|
-
_$AT(
|
|
606
|
-
this.t =
|
|
605
|
+
_$AT(t7, e7, i4) {
|
|
606
|
+
this.t = t7, this._$AM = e7, this.i = i4;
|
|
607
607
|
}
|
|
608
|
-
_$AS(
|
|
609
|
-
return this.update(
|
|
608
|
+
_$AS(t7, e7) {
|
|
609
|
+
return this.update(t7, e7);
|
|
610
610
|
}
|
|
611
|
-
update(
|
|
611
|
+
update(t7, e7) {
|
|
612
612
|
return this.render(...e7);
|
|
613
613
|
}
|
|
614
614
|
};
|
|
@@ -620,22 +620,22 @@ var se = e3(class extends i3 {
|
|
|
620
620
|
constructor(e7) {
|
|
621
621
|
if (super(e7), e7.type !== t2.ATTRIBUTE || "style" !== e7.name || e7.strings?.length > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
|
|
622
622
|
}
|
|
623
|
-
render(
|
|
624
|
-
return Object.keys(
|
|
625
|
-
const s3 =
|
|
623
|
+
render(t7) {
|
|
624
|
+
return Object.keys(t7).reduce((e7, r7) => {
|
|
625
|
+
const s3 = t7[r7];
|
|
626
626
|
return null == s3 ? e7 : e7 + `${r7 = r7.includes("-") ? r7 : r7.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${s3};`;
|
|
627
627
|
}, "");
|
|
628
628
|
}
|
|
629
|
-
update(
|
|
630
|
-
const { style: r7 } =
|
|
629
|
+
update(t7, [e7]) {
|
|
630
|
+
const { style: r7 } = t7.element;
|
|
631
631
|
if (void 0 === this.ft) return this.ft = new Set(Object.keys(e7)), this.render(e7);
|
|
632
|
-
for (const
|
|
633
|
-
for (const
|
|
634
|
-
const s3 = e7[
|
|
632
|
+
for (const t8 of this.ft) null == e7[t8] && (this.ft.delete(t8), t8.includes("-") ? r7.removeProperty(t8) : r7[t8] = null);
|
|
633
|
+
for (const t8 in e7) {
|
|
634
|
+
const s3 = e7[t8];
|
|
635
635
|
if (null != s3) {
|
|
636
|
-
this.ft.add(
|
|
636
|
+
this.ft.add(t8);
|
|
637
637
|
const e8 = "string" == typeof s3 && s3.endsWith(ie);
|
|
638
|
-
|
|
638
|
+
t8.includes("-") || e8 ? r7.setProperty(t8, e8 ? s3.slice(0, -11) : s3, e8 ? ee : "") : r7[t8] = s3;
|
|
639
639
|
}
|
|
640
640
|
}
|
|
641
641
|
return R;
|
|
@@ -1384,40 +1384,40 @@ __publicField2(LitElementWw, "options", {});
|
|
|
1384
1384
|
__publicField2(LitElementWw, "actions", {});
|
|
1385
1385
|
|
|
1386
1386
|
// ../../node_modules/lit/node_modules/@lit/reactive-element/decorators/custom-element.js
|
|
1387
|
-
var t4 = (
|
|
1387
|
+
var t4 = (t7) => (e7, o7) => {
|
|
1388
1388
|
void 0 !== o7 ? o7.addInitializer(() => {
|
|
1389
|
-
customElements.define(
|
|
1390
|
-
}) : customElements.define(
|
|
1389
|
+
customElements.define(t7, e7);
|
|
1390
|
+
}) : customElements.define(t7, e7);
|
|
1391
1391
|
};
|
|
1392
1392
|
|
|
1393
1393
|
// ../../node_modules/lit/node_modules/@lit/reactive-element/decorators/property.js
|
|
1394
1394
|
var o4 = { attribute: true, type: String, converter: u, reflect: false, hasChanged: f };
|
|
1395
|
-
var r4 = (
|
|
1395
|
+
var r4 = (t7 = o4, e7, r7) => {
|
|
1396
1396
|
const { kind: n6, metadata: i4 } = r7;
|
|
1397
1397
|
let s3 = globalThis.litPropertyMetadata.get(i4);
|
|
1398
|
-
if (void 0 === s3 && globalThis.litPropertyMetadata.set(i4, s3 = /* @__PURE__ */ new Map()), s3.set(r7.name,
|
|
1398
|
+
if (void 0 === s3 && globalThis.litPropertyMetadata.set(i4, s3 = /* @__PURE__ */ new Map()), s3.set(r7.name, t7), "accessor" === n6) {
|
|
1399
1399
|
const { name: o7 } = r7;
|
|
1400
1400
|
return { set(r8) {
|
|
1401
1401
|
const n7 = e7.get.call(this);
|
|
1402
|
-
e7.set.call(this, r8), this.requestUpdate(o7, n7,
|
|
1402
|
+
e7.set.call(this, r8), this.requestUpdate(o7, n7, t7);
|
|
1403
1403
|
}, init(e8) {
|
|
1404
|
-
return void 0 !== e8 && this.P(o7, void 0,
|
|
1404
|
+
return void 0 !== e8 && this.P(o7, void 0, t7), e8;
|
|
1405
1405
|
} };
|
|
1406
1406
|
}
|
|
1407
1407
|
if ("setter" === n6) {
|
|
1408
1408
|
const { name: o7 } = r7;
|
|
1409
1409
|
return function(r8) {
|
|
1410
1410
|
const n7 = this[o7];
|
|
1411
|
-
e7.call(this, r8), this.requestUpdate(o7, n7,
|
|
1411
|
+
e7.call(this, r8), this.requestUpdate(o7, n7, t7);
|
|
1412
1412
|
};
|
|
1413
1413
|
}
|
|
1414
1414
|
throw Error("Unsupported decorator location: " + n6);
|
|
1415
1415
|
};
|
|
1416
|
-
function n5(
|
|
1417
|
-
return (e7, o7) => "object" == typeof o7 ? r4(
|
|
1416
|
+
function n5(t7) {
|
|
1417
|
+
return (e7, o7) => "object" == typeof o7 ? r4(t7, e7, o7) : ((t8, e8, o8) => {
|
|
1418
1418
|
const r7 = e8.hasOwnProperty(o8);
|
|
1419
|
-
return e8.constructor.createProperty(o8, r7 ? { ...
|
|
1420
|
-
})(
|
|
1419
|
+
return e8.constructor.createProperty(o8, r7 ? { ...t8, wrapped: true } : t8), r7 ? Object.getOwnPropertyDescriptor(e8, o8) : void 0;
|
|
1420
|
+
})(t7, e7, o7);
|
|
1421
1421
|
}
|
|
1422
1422
|
|
|
1423
1423
|
// ../../node_modules/lit/node_modules/@lit/reactive-element/decorators/state.js
|
|
@@ -1425,25 +1425,33 @@ function r5(r7) {
|
|
|
1425
1425
|
return n5({ ...r7, state: true, attribute: false });
|
|
1426
1426
|
}
|
|
1427
1427
|
|
|
1428
|
+
// ../../node_modules/lit/node_modules/@lit/reactive-element/decorators/event-options.js
|
|
1429
|
+
function t5(t7) {
|
|
1430
|
+
return (n6, o7) => {
|
|
1431
|
+
const c5 = "function" == typeof n6 ? n6 : n6[o7];
|
|
1432
|
+
Object.assign(c5, t7);
|
|
1433
|
+
};
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1428
1436
|
// ../../node_modules/lit/node_modules/@lit/reactive-element/decorators/base.js
|
|
1429
|
-
var e5 = (e7,
|
|
1437
|
+
var e5 = (e7, t7, c5) => (c5.configurable = true, c5.enumerable = true, Reflect.decorate && "object" != typeof t7 && Object.defineProperty(e7, t7, c5), c5);
|
|
1430
1438
|
|
|
1431
1439
|
// ../../node_modules/lit/node_modules/@lit/reactive-element/decorators/query.js
|
|
1432
1440
|
function e6(e7, r7) {
|
|
1433
1441
|
return (n6, s3, i4) => {
|
|
1434
|
-
const o7 = (
|
|
1442
|
+
const o7 = (t7) => t7.renderRoot?.querySelector(e7) ?? null;
|
|
1435
1443
|
if (r7) {
|
|
1436
1444
|
const { get: e8, set: r8 } = "object" == typeof s3 ? n6 : i4 ?? (() => {
|
|
1437
|
-
const
|
|
1445
|
+
const t7 = Symbol();
|
|
1438
1446
|
return { get() {
|
|
1439
|
-
return this[
|
|
1447
|
+
return this[t7];
|
|
1440
1448
|
}, set(e9) {
|
|
1441
|
-
this[
|
|
1449
|
+
this[t7] = e9;
|
|
1442
1450
|
} };
|
|
1443
1451
|
})();
|
|
1444
1452
|
return e5(n6, s3, { get() {
|
|
1445
|
-
let
|
|
1446
|
-
return void 0 ===
|
|
1453
|
+
let t7 = e8.call(this);
|
|
1454
|
+
return void 0 === t7 && (t7 = o7(this), (null !== t7 || this.hasUpdated) && r8.call(this, t7)), t7;
|
|
1447
1455
|
} });
|
|
1448
1456
|
}
|
|
1449
1457
|
return e5(n6, s3, { get() {
|
|
@@ -1457,8 +1465,8 @@ function o5(o7) {
|
|
|
1457
1465
|
return (e7, n6) => {
|
|
1458
1466
|
const { slot: r7, selector: s3 } = o7 ?? {}, c5 = "slot" + (r7 ? `[name=${r7}]` : ":not([name])");
|
|
1459
1467
|
return e5(e7, n6, { get() {
|
|
1460
|
-
const
|
|
1461
|
-
return void 0 === s3 ? e8 : e8.filter((
|
|
1468
|
+
const t7 = this.renderRoot?.querySelector(c5), e8 = t7?.assignedElements(o7) ?? [];
|
|
1469
|
+
return void 0 === s3 ? e8 : e8.filter((t8) => t8.matches(s3));
|
|
1462
1470
|
} });
|
|
1463
1471
|
};
|
|
1464
1472
|
}
|
|
@@ -1698,7 +1706,7 @@ var icon_styles_default = i`
|
|
|
1698
1706
|
}
|
|
1699
1707
|
`;
|
|
1700
1708
|
|
|
1701
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
1709
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.B3BW2AY6.js
|
|
1702
1710
|
var __defProp3 = Object.defineProperty;
|
|
1703
1711
|
var __defProps = Object.defineProperties;
|
|
1704
1712
|
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
|
@@ -1728,8 +1736,26 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
1728
1736
|
__defProp3(target, key, result);
|
|
1729
1737
|
return result;
|
|
1730
1738
|
};
|
|
1739
|
+
var __accessCheck3 = (obj, member, msg) => {
|
|
1740
|
+
if (!member.has(obj))
|
|
1741
|
+
throw TypeError("Cannot " + msg);
|
|
1742
|
+
};
|
|
1743
|
+
var __privateGet3 = (obj, member, getter) => {
|
|
1744
|
+
__accessCheck3(obj, member, "read from private field");
|
|
1745
|
+
return getter ? getter.call(obj) : member.get(obj);
|
|
1746
|
+
};
|
|
1747
|
+
var __privateAdd3 = (obj, member, value) => {
|
|
1748
|
+
if (member.has(obj))
|
|
1749
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
1750
|
+
member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
1751
|
+
};
|
|
1752
|
+
var __privateSet3 = (obj, member, value, setter) => {
|
|
1753
|
+
__accessCheck3(obj, member, "write to private field");
|
|
1754
|
+
setter ? setter.call(obj, value) : member.set(obj, value);
|
|
1755
|
+
return value;
|
|
1756
|
+
};
|
|
1731
1757
|
|
|
1732
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
1758
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.CCJUT23E.js
|
|
1733
1759
|
function watch(propertyName, options) {
|
|
1734
1760
|
const resolvedOptions = __spreadValues({
|
|
1735
1761
|
waitUntilFirstUpdate: false
|
|
@@ -1772,10 +1798,13 @@ var component_styles_default = i`
|
|
|
1772
1798
|
}
|
|
1773
1799
|
`;
|
|
1774
1800
|
|
|
1775
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
1801
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.NLWS5DN7.js
|
|
1802
|
+
var _hasRecordedInitialProperties;
|
|
1776
1803
|
var ShoelaceElement = class extends h3 {
|
|
1777
1804
|
constructor() {
|
|
1778
1805
|
super();
|
|
1806
|
+
__privateAdd3(this, _hasRecordedInitialProperties, false);
|
|
1807
|
+
this.initialReflectedProperties = /* @__PURE__ */ new Map();
|
|
1779
1808
|
Object.entries(this.constructor.dependencies).forEach(([name, component]) => {
|
|
1780
1809
|
this.constructor.define(name, component);
|
|
1781
1810
|
});
|
|
@@ -1817,8 +1846,30 @@ var ShoelaceElement = class extends h3 {
|
|
|
1817
1846
|
`Attempted to register <${name}>${newVersion}, but <${name}>${existingVersion} has already been registered.`
|
|
1818
1847
|
);
|
|
1819
1848
|
}
|
|
1849
|
+
attributeChangedCallback(name, oldValue, newValue) {
|
|
1850
|
+
if (!__privateGet3(this, _hasRecordedInitialProperties)) {
|
|
1851
|
+
this.constructor.elementProperties.forEach(
|
|
1852
|
+
(obj, prop) => {
|
|
1853
|
+
if (obj.reflect && this[prop] != null) {
|
|
1854
|
+
this.initialReflectedProperties.set(prop, this[prop]);
|
|
1855
|
+
}
|
|
1856
|
+
}
|
|
1857
|
+
);
|
|
1858
|
+
__privateSet3(this, _hasRecordedInitialProperties, true);
|
|
1859
|
+
}
|
|
1860
|
+
super.attributeChangedCallback(name, oldValue, newValue);
|
|
1861
|
+
}
|
|
1862
|
+
willUpdate(changedProperties) {
|
|
1863
|
+
super.willUpdate(changedProperties);
|
|
1864
|
+
this.initialReflectedProperties.forEach((value, prop) => {
|
|
1865
|
+
if (changedProperties.has(prop) && this[prop] == null) {
|
|
1866
|
+
this[prop] = value;
|
|
1867
|
+
}
|
|
1868
|
+
});
|
|
1869
|
+
}
|
|
1820
1870
|
};
|
|
1821
|
-
|
|
1871
|
+
_hasRecordedInitialProperties = /* @__PURE__ */ new WeakMap();
|
|
1872
|
+
ShoelaceElement.version = "2.17.1";
|
|
1822
1873
|
ShoelaceElement.dependencies = {};
|
|
1823
1874
|
__decorateClass([
|
|
1824
1875
|
n5()
|
|
@@ -1829,9 +1880,9 @@ __decorateClass([
|
|
|
1829
1880
|
|
|
1830
1881
|
// ../../node_modules/lit/node_modules/lit-html/directive-helpers.js
|
|
1831
1882
|
var { I: et3 } = si;
|
|
1832
|
-
var nt = (o7,
|
|
1883
|
+
var nt = (o7, t7) => void 0 === t7 ? void 0 !== o7?._$litType$ : o7?._$litType$ === t7;
|
|
1833
1884
|
|
|
1834
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
1885
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.O7VCMB7W.js
|
|
1835
1886
|
var CACHEABLE_ERROR = Symbol();
|
|
1836
1887
|
var RETRYABLE_ERROR = Symbol();
|
|
1837
1888
|
var parser;
|
|
@@ -1852,11 +1903,6 @@ var SlIcon = class extends ShoelaceElement {
|
|
|
1852
1903
|
this.svg = ke`<svg part="svg">
|
|
1853
1904
|
<use part="use" href="${url}"></use>
|
|
1854
1905
|
</svg>`;
|
|
1855
|
-
await this.updateComplete;
|
|
1856
|
-
const svg = this.shadowRoot.querySelector("[part='svg']");
|
|
1857
|
-
if (typeof library2.mutator === "function") {
|
|
1858
|
-
library2.mutator(svg);
|
|
1859
|
-
}
|
|
1860
1906
|
return this.svg;
|
|
1861
1907
|
}
|
|
1862
1908
|
try {
|
|
@@ -1946,6 +1992,13 @@ var SlIcon = class extends ShoelaceElement {
|
|
|
1946
1992
|
}
|
|
1947
1993
|
if (nt(svg)) {
|
|
1948
1994
|
this.svg = svg;
|
|
1995
|
+
if (library2) {
|
|
1996
|
+
await this.updateComplete;
|
|
1997
|
+
const shadowSVG = this.shadowRoot.querySelector("[part='svg']");
|
|
1998
|
+
if (typeof library2.mutator === "function" && shadowSVG) {
|
|
1999
|
+
library2.mutator(shadowSVG);
|
|
2000
|
+
}
|
|
2001
|
+
}
|
|
1949
2002
|
return;
|
|
1950
2003
|
}
|
|
1951
2004
|
switch (svg) {
|
|
@@ -1992,20 +2045,20 @@ var Rt = e3(class extends i3 {
|
|
|
1992
2045
|
constructor(s3) {
|
|
1993
2046
|
if (super(s3), s3.type !== t2.ATTRIBUTE || "class" !== s3.name || s3.strings?.length > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
1994
2047
|
}
|
|
1995
|
-
render(
|
|
1996
|
-
return " " + Object.keys(
|
|
2048
|
+
render(t7) {
|
|
2049
|
+
return " " + Object.keys(t7).filter((s3) => t7[s3]).join(" ") + " ";
|
|
1997
2050
|
}
|
|
1998
|
-
update(
|
|
2051
|
+
update(t7, [s3]) {
|
|
1999
2052
|
if (void 0 === this.st) {
|
|
2000
|
-
this.st = /* @__PURE__ */ new Set(), void 0 !==
|
|
2001
|
-
for (const
|
|
2053
|
+
this.st = /* @__PURE__ */ new Set(), void 0 !== t7.strings && (this.nt = new Set(t7.strings.join(" ").split(/\s/).filter((t8) => "" !== t8)));
|
|
2054
|
+
for (const t8 in s3) s3[t8] && !this.nt?.has(t8) && this.st.add(t8);
|
|
2002
2055
|
return this.render(s3);
|
|
2003
2056
|
}
|
|
2004
|
-
const i4 =
|
|
2005
|
-
for (const
|
|
2006
|
-
for (const
|
|
2007
|
-
const r7 = !!s3[
|
|
2008
|
-
r7 === this.st.has(
|
|
2057
|
+
const i4 = t7.element.classList;
|
|
2058
|
+
for (const t8 of this.st) t8 in s3 || (i4.remove(t8), this.st.delete(t8));
|
|
2059
|
+
for (const t8 in s3) {
|
|
2060
|
+
const r7 = !!s3[t8];
|
|
2061
|
+
r7 === this.st.has(t8) || this.nt?.has(t8) || (r7 ? (i4.add(t8), this.st.add(t8)) : (i4.remove(t8), this.st.delete(t8)));
|
|
2009
2062
|
}
|
|
2010
2063
|
return R;
|
|
2011
2064
|
}
|
|
@@ -2013,16 +2066,16 @@ var Rt = e3(class extends i3 {
|
|
|
2013
2066
|
|
|
2014
2067
|
// ../../node_modules/lit/node_modules/lit-html/static.js
|
|
2015
2068
|
var $e = Symbol.for("");
|
|
2016
|
-
var xe = (
|
|
2017
|
-
if (
|
|
2069
|
+
var xe = (t7) => {
|
|
2070
|
+
if (t7?.r === $e) return t7?._$litStatic$;
|
|
2018
2071
|
};
|
|
2019
|
-
var er = (
|
|
2020
|
-
if (void 0 !==
|
|
2021
|
-
throw Error(`Value passed to 'literal' function must be a 'literal' result: ${
|
|
2072
|
+
var er = (t7, ...r7) => ({ _$litStatic$: r7.reduce((r8, e7, a3) => r8 + ((t8) => {
|
|
2073
|
+
if (void 0 !== t8._$litStatic$) return t8._$litStatic$;
|
|
2074
|
+
throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t8}. Use 'unsafeStatic' to pass non-literal values, but
|
|
2022
2075
|
take care to ensure page security.`);
|
|
2023
|
-
})(e7) +
|
|
2076
|
+
})(e7) + t7[a3 + 1], t7[0]), r: $e });
|
|
2024
2077
|
var Te = /* @__PURE__ */ new Map();
|
|
2025
|
-
var Ee = (
|
|
2078
|
+
var Ee = (t7) => (r7, ...e7) => {
|
|
2026
2079
|
const a3 = e7.length;
|
|
2027
2080
|
let o7, s3;
|
|
2028
2081
|
const i4 = [], l3 = [];
|
|
@@ -2032,19 +2085,19 @@ var Ee = (t6) => (r7, ...e7) => {
|
|
|
2032
2085
|
u3 !== a3 && l3.push(s3), i4.push(n6), u3++;
|
|
2033
2086
|
}
|
|
2034
2087
|
if (u3 === a3 && i4.push(r7[a3]), c5) {
|
|
2035
|
-
const
|
|
2036
|
-
void 0 === (r7 = Te.get(
|
|
2088
|
+
const t8 = i4.join("$$lit$$");
|
|
2089
|
+
void 0 === (r7 = Te.get(t8)) && (i4.raw = i4, Te.set(t8, r7 = i4)), e7 = l3;
|
|
2037
2090
|
}
|
|
2038
|
-
return
|
|
2091
|
+
return t7(r7, ...e7);
|
|
2039
2092
|
};
|
|
2040
2093
|
var ke3 = Ee(ke);
|
|
2041
2094
|
var Oe3 = Ee(Oe);
|
|
2042
2095
|
var Se3 = Ee(Se);
|
|
2043
2096
|
|
|
2044
2097
|
// ../../node_modules/lit/node_modules/lit-html/directives/if-defined.js
|
|
2045
|
-
var to = (
|
|
2098
|
+
var to = (t7) => t7 ?? D;
|
|
2046
2099
|
|
|
2047
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
2100
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.AYP3HPB7.js
|
|
2048
2101
|
var SlIconButton = class extends ShoelaceElement {
|
|
2049
2102
|
constructor() {
|
|
2050
2103
|
super(...arguments);
|
|
@@ -2219,15 +2272,15 @@ documentElementObserver.observe(document.documentElement, {
|
|
|
2219
2272
|
attributeFilter: ["dir", "lang"]
|
|
2220
2273
|
});
|
|
2221
2274
|
function registerTranslation(...translation2) {
|
|
2222
|
-
translation2.map((
|
|
2223
|
-
const code =
|
|
2275
|
+
translation2.map((t7) => {
|
|
2276
|
+
const code = t7.$code.toLowerCase();
|
|
2224
2277
|
if (translations.has(code)) {
|
|
2225
|
-
translations.set(code, Object.assign(Object.assign({}, translations.get(code)),
|
|
2278
|
+
translations.set(code, Object.assign(Object.assign({}, translations.get(code)), t7));
|
|
2226
2279
|
} else {
|
|
2227
|
-
translations.set(code,
|
|
2280
|
+
translations.set(code, t7);
|
|
2228
2281
|
}
|
|
2229
2282
|
if (!fallback) {
|
|
2230
|
-
fallback =
|
|
2283
|
+
fallback = t7;
|
|
2231
2284
|
}
|
|
2232
2285
|
});
|
|
2233
2286
|
update();
|
|
@@ -2349,7 +2402,7 @@ var LocalizeController2 = class extends LocalizeController {
|
|
|
2349
2402
|
};
|
|
2350
2403
|
registerTranslation(en_default);
|
|
2351
2404
|
|
|
2352
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
2405
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.R2T2D3TO.js
|
|
2353
2406
|
var SlSpinner = class extends ShoelaceElement {
|
|
2354
2407
|
constructor() {
|
|
2355
2408
|
super(...arguments);
|
|
@@ -2366,7 +2419,7 @@ var SlSpinner = class extends ShoelaceElement {
|
|
|
2366
2419
|
};
|
|
2367
2420
|
SlSpinner.styles = [component_styles_default, spinner_styles_default];
|
|
2368
2421
|
|
|
2369
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
2422
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.2RCF7SLU.js
|
|
2370
2423
|
var formCollections = /* @__PURE__ */ new WeakMap();
|
|
2371
2424
|
var reportValidityOverloads = /* @__PURE__ */ new WeakMap();
|
|
2372
2425
|
var checkValidityOverloads = /* @__PURE__ */ new WeakMap();
|
|
@@ -3298,7 +3351,7 @@ var HasSlotController = class {
|
|
|
3298
3351
|
}
|
|
3299
3352
|
};
|
|
3300
3353
|
|
|
3301
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
3354
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.OEHLR4TU.js
|
|
3302
3355
|
var SlButton = class extends ShoelaceElement {
|
|
3303
3356
|
constructor() {
|
|
3304
3357
|
super(...arguments);
|
|
@@ -3447,7 +3500,7 @@ var SlButton = class extends ShoelaceElement {
|
|
|
3447
3500
|
title=${this.title}
|
|
3448
3501
|
name=${to(isLink ? void 0 : this.name)}
|
|
3449
3502
|
value=${to(isLink ? void 0 : this.value)}
|
|
3450
|
-
href=${to(isLink ? this.href : void 0)}
|
|
3503
|
+
href=${to(isLink && !this.disabled ? this.href : void 0)}
|
|
3451
3504
|
target=${to(isLink ? this.target : void 0)}
|
|
3452
3505
|
download=${to(isLink ? this.download : void 0)}
|
|
3453
3506
|
rel=${to(isLink ? this.rel : void 0)}
|
|
@@ -3637,7 +3690,7 @@ var details_styles_default = i`
|
|
|
3637
3690
|
}
|
|
3638
3691
|
`;
|
|
3639
3692
|
|
|
3640
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
3693
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.UW6SLYOK.js
|
|
3641
3694
|
var defaultAnimationRegistry = /* @__PURE__ */ new Map();
|
|
3642
3695
|
var customAnimationRegistry = /* @__PURE__ */ new WeakMap();
|
|
3643
3696
|
function ensureAnimation(animation) {
|
|
@@ -3683,7 +3736,7 @@ function waitForEvent(el, eventName) {
|
|
|
3683
3736
|
});
|
|
3684
3737
|
}
|
|
3685
3738
|
|
|
3686
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
3739
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.3EPZX5HE.js
|
|
3687
3740
|
function animateTo(el, keyframes, options) {
|
|
3688
3741
|
return new Promise((resolve) => {
|
|
3689
3742
|
if ((options == null ? void 0 : options.duration) === Infinity) {
|
|
@@ -3716,7 +3769,7 @@ function shimKeyframesHeightAuto(keyframes, calculatedHeight) {
|
|
|
3716
3769
|
}));
|
|
3717
3770
|
}
|
|
3718
3771
|
|
|
3719
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
3772
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.OPBM3XMX.js
|
|
3720
3773
|
var SlDetails = class extends ShoelaceElement {
|
|
3721
3774
|
constructor() {
|
|
3722
3775
|
super(...arguments);
|
|
@@ -3743,8 +3796,9 @@ var SlDetails = class extends ShoelaceElement {
|
|
|
3743
3796
|
this.detailsObserver.observe(this.details, { attributes: true });
|
|
3744
3797
|
}
|
|
3745
3798
|
disconnectedCallback() {
|
|
3799
|
+
var _a3;
|
|
3746
3800
|
super.disconnectedCallback();
|
|
3747
|
-
this.detailsObserver.disconnect();
|
|
3801
|
+
(_a3 = this.detailsObserver) == null ? void 0 : _a3.disconnect();
|
|
3748
3802
|
}
|
|
3749
3803
|
handleSummaryClick(event) {
|
|
3750
3804
|
event.preventDefault();
|
|
@@ -5292,26 +5346,26 @@ var computePosition2 = (reference, floating, options) => {
|
|
|
5292
5346
|
};
|
|
5293
5347
|
|
|
5294
5348
|
// ../../node_modules/composed-offset-position/dist/composed-offset-position.browser.min.mjs
|
|
5295
|
-
function
|
|
5296
|
-
return r6(
|
|
5349
|
+
function t6(t7) {
|
|
5350
|
+
return r6(t7);
|
|
5297
5351
|
}
|
|
5298
|
-
function o6(
|
|
5299
|
-
return
|
|
5352
|
+
function o6(t7) {
|
|
5353
|
+
return t7.assignedSlot ? t7.assignedSlot : t7.parentNode instanceof ShadowRoot ? t7.parentNode.host : t7.parentNode;
|
|
5300
5354
|
}
|
|
5301
|
-
function r6(
|
|
5302
|
-
for (let e7 =
|
|
5303
|
-
for (let e7 = o6(
|
|
5355
|
+
function r6(t7) {
|
|
5356
|
+
for (let e7 = t7; e7; e7 = o6(e7)) if (e7 instanceof Element && "none" === getComputedStyle(e7).display) return null;
|
|
5357
|
+
for (let e7 = o6(t7); e7; e7 = o6(e7)) {
|
|
5304
5358
|
if (!(e7 instanceof Element)) continue;
|
|
5305
|
-
const
|
|
5306
|
-
if ("contents" !==
|
|
5307
|
-
if ("static" !==
|
|
5359
|
+
const t8 = getComputedStyle(e7);
|
|
5360
|
+
if ("contents" !== t8.display) {
|
|
5361
|
+
if ("static" !== t8.position || "none" !== t8.filter) return e7;
|
|
5308
5362
|
if ("BODY" === e7.tagName) return e7;
|
|
5309
5363
|
}
|
|
5310
5364
|
}
|
|
5311
5365
|
return null;
|
|
5312
5366
|
}
|
|
5313
5367
|
|
|
5314
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
5368
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.H24ENZMO.js
|
|
5315
5369
|
function isVirtualElement(e7) {
|
|
5316
5370
|
return e7 !== null && typeof e7 === "object" && "getBoundingClientRect" in e7 && ("contextElement" in e7 ? e7 instanceof Element : true);
|
|
5317
5371
|
}
|
|
@@ -5438,7 +5492,7 @@ var SlPopup = class extends ShoelaceElement {
|
|
|
5438
5492
|
if (this.anchorEl instanceof HTMLSlotElement) {
|
|
5439
5493
|
this.anchorEl = this.anchorEl.assignedElements({ flatten: true })[0];
|
|
5440
5494
|
}
|
|
5441
|
-
if (this.anchorEl) {
|
|
5495
|
+
if (this.anchorEl && this.active) {
|
|
5442
5496
|
this.start();
|
|
5443
5497
|
}
|
|
5444
5498
|
}
|
|
@@ -5538,7 +5592,7 @@ var SlPopup = class extends ShoelaceElement {
|
|
|
5538
5592
|
})
|
|
5539
5593
|
);
|
|
5540
5594
|
}
|
|
5541
|
-
const getOffsetParent2 = this.strategy === "absolute" ? (element) => platform.getOffsetParent(element,
|
|
5595
|
+
const getOffsetParent2 = this.strategy === "absolute" ? (element) => platform.getOffsetParent(element, t6) : platform.getOffsetParent;
|
|
5542
5596
|
computePosition2(this.anchorEl, this.popup, {
|
|
5543
5597
|
placement: this.placement,
|
|
5544
5598
|
middleware,
|
|
@@ -5713,7 +5767,7 @@ var button_group_styles_default = i`
|
|
|
5713
5767
|
}
|
|
5714
5768
|
`;
|
|
5715
5769
|
|
|
5716
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
5770
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.RBPP5PLA.js
|
|
5717
5771
|
var SlButtonGroup = class extends ShoelaceElement {
|
|
5718
5772
|
constructor() {
|
|
5719
5773
|
super(...arguments);
|
|
@@ -5786,7 +5840,7 @@ function findButton(el) {
|
|
|
5786
5840
|
return (_a3 = el.closest(selector)) != null ? _a3 : el.querySelector(selector);
|
|
5787
5841
|
}
|
|
5788
5842
|
|
|
5789
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
5843
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.XJU7WU2G.js
|
|
5790
5844
|
var tab_group_styles_default = i`
|
|
5791
5845
|
:host {
|
|
5792
5846
|
--indicator-color: var(--sl-color-primary-600);
|
|
@@ -5818,6 +5872,11 @@ var tab_group_styles_default = i`
|
|
|
5818
5872
|
padding: 0 var(--sl-spacing-x-large);
|
|
5819
5873
|
}
|
|
5820
5874
|
|
|
5875
|
+
.tab-group--has-scroll-controls .tab-group__scroll-button--start--hidden,
|
|
5876
|
+
.tab-group--has-scroll-controls .tab-group__scroll-button--end--hidden {
|
|
5877
|
+
visibility: hidden;
|
|
5878
|
+
}
|
|
5879
|
+
|
|
5821
5880
|
.tab-group__body {
|
|
5822
5881
|
display: block;
|
|
5823
5882
|
overflow: auto;
|
|
@@ -6018,6 +6077,72 @@ var tab_group_styles_default = i`
|
|
|
6018
6077
|
}
|
|
6019
6078
|
`;
|
|
6020
6079
|
|
|
6080
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.5VKIB4HA.js
|
|
6081
|
+
var resize_observer_styles_default = i`
|
|
6082
|
+
:host {
|
|
6083
|
+
display: contents;
|
|
6084
|
+
}
|
|
6085
|
+
`;
|
|
6086
|
+
|
|
6087
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.YJK4WDCI.js
|
|
6088
|
+
var SlResizeObserver = class extends ShoelaceElement {
|
|
6089
|
+
constructor() {
|
|
6090
|
+
super(...arguments);
|
|
6091
|
+
this.observedElements = [];
|
|
6092
|
+
this.disabled = false;
|
|
6093
|
+
}
|
|
6094
|
+
connectedCallback() {
|
|
6095
|
+
super.connectedCallback();
|
|
6096
|
+
this.resizeObserver = new ResizeObserver((entries) => {
|
|
6097
|
+
this.emit("sl-resize", { detail: { entries } });
|
|
6098
|
+
});
|
|
6099
|
+
if (!this.disabled) {
|
|
6100
|
+
this.startObserver();
|
|
6101
|
+
}
|
|
6102
|
+
}
|
|
6103
|
+
disconnectedCallback() {
|
|
6104
|
+
super.disconnectedCallback();
|
|
6105
|
+
this.stopObserver();
|
|
6106
|
+
}
|
|
6107
|
+
handleSlotChange() {
|
|
6108
|
+
if (!this.disabled) {
|
|
6109
|
+
this.startObserver();
|
|
6110
|
+
}
|
|
6111
|
+
}
|
|
6112
|
+
startObserver() {
|
|
6113
|
+
const slot = this.shadowRoot.querySelector("slot");
|
|
6114
|
+
if (slot !== null) {
|
|
6115
|
+
const elements = slot.assignedElements({ flatten: true });
|
|
6116
|
+
this.observedElements.forEach((el) => this.resizeObserver.unobserve(el));
|
|
6117
|
+
this.observedElements = [];
|
|
6118
|
+
elements.forEach((el) => {
|
|
6119
|
+
this.resizeObserver.observe(el);
|
|
6120
|
+
this.observedElements.push(el);
|
|
6121
|
+
});
|
|
6122
|
+
}
|
|
6123
|
+
}
|
|
6124
|
+
stopObserver() {
|
|
6125
|
+
this.resizeObserver.disconnect();
|
|
6126
|
+
}
|
|
6127
|
+
handleDisabledChange() {
|
|
6128
|
+
if (this.disabled) {
|
|
6129
|
+
this.stopObserver();
|
|
6130
|
+
} else {
|
|
6131
|
+
this.startObserver();
|
|
6132
|
+
}
|
|
6133
|
+
}
|
|
6134
|
+
render() {
|
|
6135
|
+
return ke` <slot @slotchange=${this.handleSlotChange}></slot> `;
|
|
6136
|
+
}
|
|
6137
|
+
};
|
|
6138
|
+
SlResizeObserver.styles = [component_styles_default, resize_observer_styles_default];
|
|
6139
|
+
__decorateClass([
|
|
6140
|
+
n5({ type: Boolean, reflect: true })
|
|
6141
|
+
], SlResizeObserver.prototype, "disabled", 2);
|
|
6142
|
+
__decorateClass([
|
|
6143
|
+
watch("disabled", { waitUntilFirstUpdate: true })
|
|
6144
|
+
], SlResizeObserver.prototype, "handleDisabledChange", 1);
|
|
6145
|
+
|
|
6021
6146
|
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.RWUUFNUL.js
|
|
6022
6147
|
function getOffset(element, parent) {
|
|
6023
6148
|
return {
|
|
@@ -6049,7 +6174,7 @@ function scrollIntoView(element, container, direction = "vertical", behavior = "
|
|
|
6049
6174
|
}
|
|
6050
6175
|
}
|
|
6051
6176
|
|
|
6052
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
6177
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.SXFLAUBY.js
|
|
6053
6178
|
var SlTabGroup = class extends ShoelaceElement {
|
|
6054
6179
|
constructor() {
|
|
6055
6180
|
super(...arguments);
|
|
@@ -6058,9 +6183,13 @@ var SlTabGroup = class extends ShoelaceElement {
|
|
|
6058
6183
|
this.focusableTabs = [];
|
|
6059
6184
|
this.panels = [];
|
|
6060
6185
|
this.hasScrollControls = false;
|
|
6186
|
+
this.shouldHideScrollStartButton = false;
|
|
6187
|
+
this.shouldHideScrollEndButton = false;
|
|
6061
6188
|
this.placement = "top";
|
|
6062
6189
|
this.activation = "auto";
|
|
6063
6190
|
this.noScrollControls = false;
|
|
6191
|
+
this.fixedScrollControls = false;
|
|
6192
|
+
this.scrollOffset = 1;
|
|
6064
6193
|
}
|
|
6065
6194
|
connectedCallback() {
|
|
6066
6195
|
const whenAllDefined = Promise.all([
|
|
@@ -6098,9 +6227,10 @@ var SlTabGroup = class extends ShoelaceElement {
|
|
|
6098
6227
|
});
|
|
6099
6228
|
}
|
|
6100
6229
|
disconnectedCallback() {
|
|
6230
|
+
var _a3, _b;
|
|
6101
6231
|
super.disconnectedCallback();
|
|
6102
|
-
this.mutationObserver.disconnect();
|
|
6103
|
-
this.resizeObserver.unobserve(this.nav);
|
|
6232
|
+
(_a3 = this.mutationObserver) == null ? void 0 : _a3.disconnect();
|
|
6233
|
+
(_b = this.resizeObserver) == null ? void 0 : _b.unobserve(this.nav);
|
|
6104
6234
|
}
|
|
6105
6235
|
getAllTabs() {
|
|
6106
6236
|
const slot = this.shadowRoot.querySelector('slot[name="nav"]');
|
|
@@ -6137,7 +6267,7 @@ var SlTabGroup = class extends ShoelaceElement {
|
|
|
6137
6267
|
}
|
|
6138
6268
|
}
|
|
6139
6269
|
if (["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Home", "End"].includes(event.key)) {
|
|
6140
|
-
const activeEl = this.tabs.find((
|
|
6270
|
+
const activeEl = this.tabs.find((t7) => t7.matches(":focus"));
|
|
6141
6271
|
const isRtl = this.matches(":dir(rtl)");
|
|
6142
6272
|
let nextTab = null;
|
|
6143
6273
|
if ((activeEl == null ? void 0 : activeEl.tagName.toLowerCase()) === "sl-tab") {
|
|
@@ -6281,12 +6411,25 @@ var SlTabGroup = class extends ShoelaceElement {
|
|
|
6281
6411
|
}
|
|
6282
6412
|
return nextTab;
|
|
6283
6413
|
}
|
|
6414
|
+
updateScrollButtons() {
|
|
6415
|
+
if (this.hasScrollControls && !this.fixedScrollControls) {
|
|
6416
|
+
this.shouldHideScrollStartButton = this.scrollFromStart() <= this.scrollOffset;
|
|
6417
|
+
this.shouldHideScrollEndButton = this.isScrolledToEnd();
|
|
6418
|
+
}
|
|
6419
|
+
}
|
|
6420
|
+
isScrolledToEnd() {
|
|
6421
|
+
return this.scrollFromStart() + this.nav.clientWidth >= this.nav.scrollWidth - this.scrollOffset;
|
|
6422
|
+
}
|
|
6423
|
+
scrollFromStart() {
|
|
6424
|
+
return this.localize.dir() === "rtl" ? -this.nav.scrollLeft : this.nav.scrollLeft;
|
|
6425
|
+
}
|
|
6284
6426
|
updateScrollControls() {
|
|
6285
6427
|
if (this.noScrollControls) {
|
|
6286
6428
|
this.hasScrollControls = false;
|
|
6287
6429
|
} else {
|
|
6288
6430
|
this.hasScrollControls = ["top", "bottom"].includes(this.placement) && this.nav.scrollWidth > this.nav.clientWidth + 1;
|
|
6289
6431
|
}
|
|
6432
|
+
this.updateScrollButtons();
|
|
6290
6433
|
}
|
|
6291
6434
|
syncIndicator() {
|
|
6292
6435
|
const tab = this.getActiveTab();
|
|
@@ -6326,18 +6469,26 @@ var SlTabGroup = class extends ShoelaceElement {
|
|
|
6326
6469
|
<sl-icon-button
|
|
6327
6470
|
part="scroll-button scroll-button--start"
|
|
6328
6471
|
exportparts="base:scroll-button__base"
|
|
6329
|
-
class
|
|
6472
|
+
class=${Rt({
|
|
6473
|
+
"tab-group__scroll-button": true,
|
|
6474
|
+
"tab-group__scroll-button--start": true,
|
|
6475
|
+
"tab-group__scroll-button--start--hidden": this.shouldHideScrollStartButton
|
|
6476
|
+
})}
|
|
6330
6477
|
name=${isRtl ? "chevron-right" : "chevron-left"}
|
|
6331
6478
|
library="system"
|
|
6479
|
+
tabindex="-1"
|
|
6480
|
+
aria-hidden="true"
|
|
6332
6481
|
label=${this.localize.term("scrollToStart")}
|
|
6333
6482
|
@click=${this.handleScrollToStart}
|
|
6334
6483
|
></sl-icon-button>
|
|
6335
6484
|
` : ""}
|
|
6336
6485
|
|
|
6337
|
-
<div class="tab-group__nav">
|
|
6486
|
+
<div class="tab-group__nav" @scrollend=${this.updateScrollButtons}>
|
|
6338
6487
|
<div part="tabs" class="tab-group__tabs" role="tablist">
|
|
6339
6488
|
<div part="active-tab-indicator" class="tab-group__indicator"></div>
|
|
6340
|
-
<
|
|
6489
|
+
<sl-resize-observer @sl-resize=${this.syncIndicator}>
|
|
6490
|
+
<slot name="nav" @slotchange=${this.syncTabsAndPanels}></slot>
|
|
6491
|
+
</sl-resize-observer>
|
|
6341
6492
|
</div>
|
|
6342
6493
|
</div>
|
|
6343
6494
|
|
|
@@ -6345,9 +6496,15 @@ var SlTabGroup = class extends ShoelaceElement {
|
|
|
6345
6496
|
<sl-icon-button
|
|
6346
6497
|
part="scroll-button scroll-button--end"
|
|
6347
6498
|
exportparts="base:scroll-button__base"
|
|
6348
|
-
class
|
|
6499
|
+
class=${Rt({
|
|
6500
|
+
"tab-group__scroll-button": true,
|
|
6501
|
+
"tab-group__scroll-button--end": true,
|
|
6502
|
+
"tab-group__scroll-button--end--hidden": this.shouldHideScrollEndButton
|
|
6503
|
+
})}
|
|
6349
6504
|
name=${isRtl ? "chevron-left" : "chevron-right"}
|
|
6350
6505
|
library="system"
|
|
6506
|
+
tabindex="-1"
|
|
6507
|
+
aria-hidden="true"
|
|
6351
6508
|
label=${this.localize.term("scrollToEnd")}
|
|
6352
6509
|
@click=${this.handleScrollToEnd}
|
|
6353
6510
|
></sl-icon-button>
|
|
@@ -6360,7 +6517,7 @@ var SlTabGroup = class extends ShoelaceElement {
|
|
|
6360
6517
|
}
|
|
6361
6518
|
};
|
|
6362
6519
|
SlTabGroup.styles = [component_styles_default, tab_group_styles_default];
|
|
6363
|
-
SlTabGroup.dependencies = { "sl-icon-button": SlIconButton };
|
|
6520
|
+
SlTabGroup.dependencies = { "sl-icon-button": SlIconButton, "sl-resize-observer": SlResizeObserver };
|
|
6364
6521
|
__decorateClass([
|
|
6365
6522
|
e6(".tab-group")
|
|
6366
6523
|
], SlTabGroup.prototype, "tabGroup", 2);
|
|
@@ -6376,6 +6533,12 @@ __decorateClass([
|
|
|
6376
6533
|
__decorateClass([
|
|
6377
6534
|
r5()
|
|
6378
6535
|
], SlTabGroup.prototype, "hasScrollControls", 2);
|
|
6536
|
+
__decorateClass([
|
|
6537
|
+
r5()
|
|
6538
|
+
], SlTabGroup.prototype, "shouldHideScrollStartButton", 2);
|
|
6539
|
+
__decorateClass([
|
|
6540
|
+
r5()
|
|
6541
|
+
], SlTabGroup.prototype, "shouldHideScrollEndButton", 2);
|
|
6379
6542
|
__decorateClass([
|
|
6380
6543
|
n5()
|
|
6381
6544
|
], SlTabGroup.prototype, "placement", 2);
|
|
@@ -6385,6 +6548,12 @@ __decorateClass([
|
|
|
6385
6548
|
__decorateClass([
|
|
6386
6549
|
n5({ attribute: "no-scroll-controls", type: Boolean })
|
|
6387
6550
|
], SlTabGroup.prototype, "noScrollControls", 2);
|
|
6551
|
+
__decorateClass([
|
|
6552
|
+
n5({ attribute: "fixed-scroll-controls", type: Boolean })
|
|
6553
|
+
], SlTabGroup.prototype, "fixedScrollControls", 2);
|
|
6554
|
+
__decorateClass([
|
|
6555
|
+
t5({ passive: true })
|
|
6556
|
+
], SlTabGroup.prototype, "updateScrollButtons", 1);
|
|
6388
6557
|
__decorateClass([
|
|
6389
6558
|
watch("noScrollControls", { waitUntilFirstUpdate: true })
|
|
6390
6559
|
], SlTabGroup.prototype, "updateScrollControls", 1);
|
|
@@ -6392,6 +6561,63 @@ __decorateClass([
|
|
|
6392
6561
|
watch("placement", { waitUntilFirstUpdate: true })
|
|
6393
6562
|
], SlTabGroup.prototype, "syncIndicator", 1);
|
|
6394
6563
|
|
|
6564
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.RISKC4J7.js
|
|
6565
|
+
var debounce = (fn, delay) => {
|
|
6566
|
+
let timerId = 0;
|
|
6567
|
+
return function(...args) {
|
|
6568
|
+
window.clearTimeout(timerId);
|
|
6569
|
+
timerId = window.setTimeout(() => {
|
|
6570
|
+
fn.call(this, ...args);
|
|
6571
|
+
}, delay);
|
|
6572
|
+
};
|
|
6573
|
+
};
|
|
6574
|
+
var decorate = (proto, method, decorateFn) => {
|
|
6575
|
+
const superFn = proto[method];
|
|
6576
|
+
proto[method] = function(...args) {
|
|
6577
|
+
superFn.call(this, ...args);
|
|
6578
|
+
decorateFn.call(this, superFn, ...args);
|
|
6579
|
+
};
|
|
6580
|
+
};
|
|
6581
|
+
var isSupported = "onscrollend" in window;
|
|
6582
|
+
if (!isSupported) {
|
|
6583
|
+
const pointers = /* @__PURE__ */ new Set();
|
|
6584
|
+
const scrollHandlers = /* @__PURE__ */ new WeakMap();
|
|
6585
|
+
const handlePointerDown = (event) => {
|
|
6586
|
+
for (const touch of event.changedTouches) {
|
|
6587
|
+
pointers.add(touch.identifier);
|
|
6588
|
+
}
|
|
6589
|
+
};
|
|
6590
|
+
const handlePointerUp = (event) => {
|
|
6591
|
+
for (const touch of event.changedTouches) {
|
|
6592
|
+
pointers.delete(touch.identifier);
|
|
6593
|
+
}
|
|
6594
|
+
};
|
|
6595
|
+
document.addEventListener("touchstart", handlePointerDown, true);
|
|
6596
|
+
document.addEventListener("touchend", handlePointerUp, true);
|
|
6597
|
+
document.addEventListener("touchcancel", handlePointerUp, true);
|
|
6598
|
+
decorate(EventTarget.prototype, "addEventListener", function(addEventListener, type) {
|
|
6599
|
+
if (type !== "scrollend")
|
|
6600
|
+
return;
|
|
6601
|
+
const handleScrollEnd = debounce(() => {
|
|
6602
|
+
if (!pointers.size) {
|
|
6603
|
+
this.dispatchEvent(new Event("scrollend"));
|
|
6604
|
+
} else {
|
|
6605
|
+
handleScrollEnd();
|
|
6606
|
+
}
|
|
6607
|
+
}, 100);
|
|
6608
|
+
addEventListener.call(this, "scroll", handleScrollEnd, { passive: true });
|
|
6609
|
+
scrollHandlers.set(this, handleScrollEnd);
|
|
6610
|
+
});
|
|
6611
|
+
decorate(EventTarget.prototype, "removeEventListener", function(removeEventListener, type) {
|
|
6612
|
+
if (type !== "scrollend")
|
|
6613
|
+
return;
|
|
6614
|
+
const scrollHandler = scrollHandlers.get(this);
|
|
6615
|
+
if (scrollHandler) {
|
|
6616
|
+
removeEventListener.call(this, "scroll", scrollHandler, { passive: true });
|
|
6617
|
+
}
|
|
6618
|
+
});
|
|
6619
|
+
}
|
|
6620
|
+
|
|
6395
6621
|
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.LE3KWASX.js
|
|
6396
6622
|
var tab_styles_default = i`
|
|
6397
6623
|
:host {
|
|
@@ -6463,7 +6689,7 @@ var tab_styles_default = i`
|
|
|
6463
6689
|
}
|
|
6464
6690
|
`;
|
|
6465
6691
|
|
|
6466
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
6692
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.PET5PMJP.js
|
|
6467
6693
|
var id = 0;
|
|
6468
6694
|
var SlTab = class extends ShoelaceElement {
|
|
6469
6695
|
constructor() {
|
|
@@ -6570,7 +6796,7 @@ var tab_panel_styles_default = i`
|
|
|
6570
6796
|
}
|
|
6571
6797
|
`;
|
|
6572
6798
|
|
|
6573
|
-
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.
|
|
6799
|
+
// ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.F3F3MIHY.js
|
|
6574
6800
|
var id2 = 0;
|
|
6575
6801
|
var SlTabPanel = class extends ShoelaceElement {
|
|
6576
6802
|
constructor() {
|