@pie-qti/player-elements 0.1.22 → 0.1.23
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/{define-Bkc2UFCK.js → define-CqE08oOW.js} +2832 -2424
- package/dist/define-CqE08oOW.js.map +1 -0
- package/dist/{dist-C0bIgnik.js → dist-B1Rc9Jhz.js} +4 -4
- package/dist/{dist-C0bIgnik.js.map → dist-B1Rc9Jhz.js.map} +1 -1
- package/dist/dist-CQEJemjs.js +5061 -0
- package/dist/dist-CQEJemjs.js.map +1 -0
- package/dist/{dist-_mWRIrTg.js → dist-CsEP48m1.js} +2353 -2660
- package/dist/dist-CsEP48m1.js.map +1 -0
- package/dist/{dist-CPyrAOfS.js → dist-DQ_jFQFX.js} +20 -11
- package/dist/dist-DQ_jFQFX.js.map +1 -0
- package/dist/{element-BrpUrZI4.js → element-DU-n15ch.js} +2 -2
- package/dist/{element-BrpUrZI4.js.map → element-DU-n15ch.js.map} +1 -1
- package/dist/{element-class-DWoLXp_r-ms67Krq-.js → element-class-DBV-1lkb-BeszDwN_.js} +524 -496
- package/dist/element-class-DBV-1lkb-BeszDwN_.js.map +1 -0
- package/dist/elements.js +3 -3
- package/dist/index.js +2 -2
- package/dist/item-toolbar-element-iE73NEkH.js +1922 -0
- package/dist/item-toolbar-element-iE73NEkH.js.map +1 -0
- package/dist/pie-assessment-toolkit-element-BGOTMhdG.js +8300 -0
- package/dist/pie-assessment-toolkit-element-BGOTMhdG.js.map +1 -0
- package/dist/{pie-tool-calculator-BGp3etqJ.js → pie-tool-calculator-CkQb5qxg.js} +969 -952
- package/dist/pie-tool-calculator-CkQb5qxg.js.map +1 -0
- package/dist/register-players.js +1 -1
- package/dist/register.js +4591 -6734
- package/dist/register.js.map +1 -1
- package/dist/{resolveItems-XtUnsftV.js → resolveItems-DhQQhD2k.js} +2 -2
- package/dist/{resolveItems-XtUnsftV.js.map → resolveItems-DhQQhD2k.js.map} +1 -1
- package/dist/{root-DBWhDxjY.js → root-Dqg3cyBt.js} +12 -12
- package/dist/root-Dqg3cyBt.js.map +1 -0
- package/dist/tool-tts-inline-CA3VjWU4.js +3670 -0
- package/dist/tool-tts-inline-CA3VjWU4.js.map +1 -0
- package/dist/{tag-names-DV56RHJk.js → types-BFOGFD4R.js} +4 -22
- package/dist/types-BFOGFD4R.js.map +1 -0
- package/package.json +7 -7
- package/dist/define-Bkc2UFCK.js.map +0 -1
- package/dist/dist-CPyrAOfS.js.map +0 -1
- package/dist/dist-DU1nH3y8.js +0 -1247
- package/dist/dist-DU1nH3y8.js.map +0 -1
- package/dist/dist-_mWRIrTg.js.map +0 -1
- package/dist/element-class-DWoLXp_r-ms67Krq-.js.map +0 -1
- package/dist/item-toolbar-element-DFppTi_H.js +0 -6015
- package/dist/item-toolbar-element-DFppTi_H.js.map +0 -1
- package/dist/pie-assessment-toolkit-element-DlSFT_I2.js +0 -28479
- package/dist/pie-assessment-toolkit-element-DlSFT_I2.js.map +0 -1
- package/dist/pie-tool-calculator-BGp3etqJ.js.map +0 -1
- package/dist/root-DBWhDxjY.js.map +0 -1
- package/dist/tag-names-DV56RHJk.js.map +0 -1
- package/dist/tool-tts-inline-DVUYjVnD.js +0 -2574
- package/dist/tool-tts-inline-DVUYjVnD.js.map +0 -1
|
@@ -0,0 +1,3670 @@
|
|
|
1
|
+
import { _ as e, a as t, f as n, g as r, h as i, v as a } from "./dist-CsEP48m1.js";
|
|
2
|
+
//#region ../../node_modules/.bun/@pie-players+pie-tool-tts-inline@0.3.67+03501a34a1c61663/node_modules/@pie-players/pie-tool-tts-inline/dist/tool-tts-inline.js
|
|
3
|
+
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5");
|
|
4
|
+
var o = {}, s = Symbol("uninitialized"), c = "http://www.w3.org/1999/xhtml", l = Array.isArray, u = Array.prototype.indexOf, d = Array.prototype.includes, f = Array.from, p = Object.keys, m = Object.defineProperty, h = Object.getOwnPropertyDescriptor, g = Object.getOwnPropertyDescriptors, _ = Object.prototype, v = Array.prototype, y = Object.getPrototypeOf, ee = Object.isExtensible, b = () => {};
|
|
5
|
+
function x(e) {
|
|
6
|
+
for (var t = 0; t < e.length; t++) e[t]();
|
|
7
|
+
}
|
|
8
|
+
function te() {
|
|
9
|
+
var e, t;
|
|
10
|
+
return {
|
|
11
|
+
promise: new Promise((n, r) => {
|
|
12
|
+
e = n, t = r;
|
|
13
|
+
}),
|
|
14
|
+
resolve: e,
|
|
15
|
+
reject: t
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
var S = 1024, C = 2048, ne = 4096, w = 8192, T = 16384, re = 32768, ie = 1 << 25, E = 65536, ae = 1 << 19, D = 1 << 20, oe = 1 << 25, se = 65536, O = 1 << 21, ce = 1 << 22, k = 1 << 23, A = Symbol("$state"), j = Symbol("legacy props"), le = Symbol(""), ue = Symbol("attributes"), de = Symbol("class"), fe = Symbol("style"), pe = Symbol("text"), me = new class extends Error {
|
|
19
|
+
name = "StaleReactionError";
|
|
20
|
+
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
21
|
+
}(), he = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
22
|
+
function ge() {
|
|
23
|
+
throw Error("https://svelte.dev/e/async_derived_orphan");
|
|
24
|
+
}
|
|
25
|
+
function _e(e, t, n) {
|
|
26
|
+
throw Error("https://svelte.dev/e/each_key_duplicate");
|
|
27
|
+
}
|
|
28
|
+
function ve(e) {
|
|
29
|
+
throw Error("https://svelte.dev/e/effect_in_teardown");
|
|
30
|
+
}
|
|
31
|
+
function ye() {
|
|
32
|
+
throw Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
33
|
+
}
|
|
34
|
+
function be(e) {
|
|
35
|
+
throw Error("https://svelte.dev/e/effect_orphan");
|
|
36
|
+
}
|
|
37
|
+
function xe() {
|
|
38
|
+
throw Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
39
|
+
}
|
|
40
|
+
function Se() {
|
|
41
|
+
throw Error("https://svelte.dev/e/hydration_failed");
|
|
42
|
+
}
|
|
43
|
+
function Ce(e) {
|
|
44
|
+
throw Error("https://svelte.dev/e/props_invalid_value");
|
|
45
|
+
}
|
|
46
|
+
function we() {
|
|
47
|
+
throw Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
48
|
+
}
|
|
49
|
+
function Te() {
|
|
50
|
+
throw Error("https://svelte.dev/e/state_prototype_fixed");
|
|
51
|
+
}
|
|
52
|
+
function Ee() {
|
|
53
|
+
throw Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
54
|
+
}
|
|
55
|
+
function De() {
|
|
56
|
+
throw Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
57
|
+
}
|
|
58
|
+
function Oe() {
|
|
59
|
+
console.warn("https://svelte.dev/e/derived_inert");
|
|
60
|
+
}
|
|
61
|
+
function ke(e) {
|
|
62
|
+
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
63
|
+
}
|
|
64
|
+
function Ae() {
|
|
65
|
+
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
66
|
+
}
|
|
67
|
+
var M = !1;
|
|
68
|
+
function N(e) {
|
|
69
|
+
M = e;
|
|
70
|
+
}
|
|
71
|
+
var P;
|
|
72
|
+
function F(e) {
|
|
73
|
+
if (e === null) throw ke(), o;
|
|
74
|
+
return P = e;
|
|
75
|
+
}
|
|
76
|
+
function je() {
|
|
77
|
+
return F(/* @__PURE__ */ Qt(P));
|
|
78
|
+
}
|
|
79
|
+
function Me(e) {
|
|
80
|
+
if (M) {
|
|
81
|
+
if (/* @__PURE__ */ Qt(P) !== null) throw ke(), o;
|
|
82
|
+
P = e;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
function Ne(e = 1) {
|
|
86
|
+
if (M) {
|
|
87
|
+
for (var t = e, n = P; t--;) n = /* @__PURE__ */ Qt(n);
|
|
88
|
+
P = n;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
function Pe(e = !0) {
|
|
92
|
+
for (var t = 0, n = P;;) {
|
|
93
|
+
if (n.nodeType === 8) {
|
|
94
|
+
var r = n.data;
|
|
95
|
+
if (r === "]") {
|
|
96
|
+
if (t === 0) return n;
|
|
97
|
+
--t;
|
|
98
|
+
} else (r === "[" || r === "[!" || r[0] === "[" && !isNaN(Number(r.slice(1)))) && (t += 1);
|
|
99
|
+
}
|
|
100
|
+
var i = /* @__PURE__ */ Qt(n);
|
|
101
|
+
e && n.remove(), n = i;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
function Fe(e) {
|
|
105
|
+
if (!e || e.nodeType !== 8) throw ke(), o;
|
|
106
|
+
return e.data;
|
|
107
|
+
}
|
|
108
|
+
function Ie(e) {
|
|
109
|
+
return e === this.v;
|
|
110
|
+
}
|
|
111
|
+
function Le(e, t) {
|
|
112
|
+
return e == e ? e !== t || typeof e == "object" && !!e || typeof e == "function" : t == t;
|
|
113
|
+
}
|
|
114
|
+
function Re(e) {
|
|
115
|
+
return !Le(e, this.v);
|
|
116
|
+
}
|
|
117
|
+
var I = null;
|
|
118
|
+
function ze(e) {
|
|
119
|
+
I = e;
|
|
120
|
+
}
|
|
121
|
+
function Be(e, t = !1, n) {
|
|
122
|
+
I = {
|
|
123
|
+
p: I,
|
|
124
|
+
i: !1,
|
|
125
|
+
c: null,
|
|
126
|
+
e: null,
|
|
127
|
+
s: e,
|
|
128
|
+
x: null,
|
|
129
|
+
r: J,
|
|
130
|
+
l: null
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
function Ve(e) {
|
|
134
|
+
var t = I, n = t.e;
|
|
135
|
+
if (n !== null) {
|
|
136
|
+
t.e = null;
|
|
137
|
+
for (var r of n) pn(r);
|
|
138
|
+
}
|
|
139
|
+
return e !== void 0 && (t.x = e), t.i = !0, I = t.p, e ?? {};
|
|
140
|
+
}
|
|
141
|
+
function He() {
|
|
142
|
+
return !0;
|
|
143
|
+
}
|
|
144
|
+
var Ue = [];
|
|
145
|
+
function We() {
|
|
146
|
+
var e = Ue;
|
|
147
|
+
Ue = [], x(e);
|
|
148
|
+
}
|
|
149
|
+
function Ge(e) {
|
|
150
|
+
if (Ue.length === 0 && !St) {
|
|
151
|
+
var t = Ue;
|
|
152
|
+
queueMicrotask(() => {
|
|
153
|
+
t === Ue && We();
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
Ue.push(e);
|
|
157
|
+
}
|
|
158
|
+
function Ke() {
|
|
159
|
+
for (; Ue.length > 0;) We();
|
|
160
|
+
}
|
|
161
|
+
function qe(e) {
|
|
162
|
+
var t = J;
|
|
163
|
+
if (t === null) return K.f |= k, e;
|
|
164
|
+
if (!(t.f & 32768) && !(t.f & 4)) throw e;
|
|
165
|
+
L(e, t);
|
|
166
|
+
}
|
|
167
|
+
function L(e, t) {
|
|
168
|
+
if (!(t !== null && t.f & 16384)) {
|
|
169
|
+
for (; t !== null;) {
|
|
170
|
+
if (t.f & 128) {
|
|
171
|
+
if (!(t.f & 32768)) throw e;
|
|
172
|
+
try {
|
|
173
|
+
t.b.error(e);
|
|
174
|
+
return;
|
|
175
|
+
} catch (t) {
|
|
176
|
+
e = t;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
t = t.parent;
|
|
180
|
+
}
|
|
181
|
+
throw e;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
var Je = ~(C | ne | S);
|
|
185
|
+
function R(e, t) {
|
|
186
|
+
e.f = e.f & Je | t;
|
|
187
|
+
}
|
|
188
|
+
function Ye(e) {
|
|
189
|
+
e.f & 512 || e.deps === null ? R(e, S) : R(e, ne);
|
|
190
|
+
}
|
|
191
|
+
function Xe(e) {
|
|
192
|
+
if (e !== null) for (let t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^= se, Xe(t.deps));
|
|
193
|
+
}
|
|
194
|
+
function Ze(e, t, n) {
|
|
195
|
+
e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), Xe(e.deps), R(e, S);
|
|
196
|
+
}
|
|
197
|
+
var Qe = !1;
|
|
198
|
+
function $e(e) {
|
|
199
|
+
var t = Qe;
|
|
200
|
+
try {
|
|
201
|
+
return Qe = !1, [e(), Qe];
|
|
202
|
+
} finally {
|
|
203
|
+
Qe = t;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
function et(e) {
|
|
207
|
+
var t = K, n = J;
|
|
208
|
+
q(null), In(null);
|
|
209
|
+
try {
|
|
210
|
+
return e();
|
|
211
|
+
} finally {
|
|
212
|
+
q(t), In(n);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
function tt(e) {
|
|
216
|
+
let t = 0, n = zt(0), r;
|
|
217
|
+
return () => {
|
|
218
|
+
un() && (Z(n), vn(() => (t === 0 && (r = er(() => e(() => Ut(n)))), t += 1, () => {
|
|
219
|
+
Ge(() => {
|
|
220
|
+
--t, t === 0 && (r?.(), r = void 0, Ut(n));
|
|
221
|
+
});
|
|
222
|
+
})));
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
var nt = E | ae;
|
|
226
|
+
function rt(e, t, n, r) {
|
|
227
|
+
new it(e, t, n, r);
|
|
228
|
+
}
|
|
229
|
+
var it = class {
|
|
230
|
+
parent;
|
|
231
|
+
is_pending = !1;
|
|
232
|
+
transform_error;
|
|
233
|
+
#e;
|
|
234
|
+
#t = M ? P : null;
|
|
235
|
+
#n;
|
|
236
|
+
#r;
|
|
237
|
+
#i;
|
|
238
|
+
#a = null;
|
|
239
|
+
#o = null;
|
|
240
|
+
#s = null;
|
|
241
|
+
#c = null;
|
|
242
|
+
#l = 0;
|
|
243
|
+
#u = 0;
|
|
244
|
+
#d = !1;
|
|
245
|
+
#f = /* @__PURE__ */ new Set();
|
|
246
|
+
#p = /* @__PURE__ */ new Set();
|
|
247
|
+
#m = null;
|
|
248
|
+
#h = tt(() => (this.#m = zt(this.#l), () => {
|
|
249
|
+
this.#m = null;
|
|
250
|
+
}));
|
|
251
|
+
constructor(e, t, n, r) {
|
|
252
|
+
this.#e = e, this.#n = t, this.#r = (e) => {
|
|
253
|
+
var t = J;
|
|
254
|
+
t.b = this, t.f |= 128, n(e);
|
|
255
|
+
}, this.parent = J.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = bn(() => {
|
|
256
|
+
if (M) {
|
|
257
|
+
let e = this.#t;
|
|
258
|
+
je();
|
|
259
|
+
let t = e.data === "[!";
|
|
260
|
+
if (e.data.startsWith("[?")) {
|
|
261
|
+
let t = JSON.parse(e.data.slice(2));
|
|
262
|
+
this.#_(t);
|
|
263
|
+
} else t ? this.#y() : this.#g();
|
|
264
|
+
} else this.#b();
|
|
265
|
+
}, nt), M && (this.#e = P);
|
|
266
|
+
}
|
|
267
|
+
#g() {
|
|
268
|
+
try {
|
|
269
|
+
this.#a = W(() => this.#r(this.#e));
|
|
270
|
+
} catch (e) {
|
|
271
|
+
this.error(e);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
#_(e) {
|
|
275
|
+
let t = this.#n.failed, { reset: n, invoke_onerror: r } = this.#v(e);
|
|
276
|
+
Ge(r), t && (this.#s = W(() => {
|
|
277
|
+
t(this.#e, () => e, () => n);
|
|
278
|
+
}));
|
|
279
|
+
}
|
|
280
|
+
#v(e) {
|
|
281
|
+
var t = !1, n = !1;
|
|
282
|
+
let r = () => {
|
|
283
|
+
if (t) {
|
|
284
|
+
Ae();
|
|
285
|
+
return;
|
|
286
|
+
}
|
|
287
|
+
t = !0, n && De(), this.#s !== null && En(this.#s, () => {
|
|
288
|
+
this.#s = null;
|
|
289
|
+
}), this.#S(() => {
|
|
290
|
+
this.#b();
|
|
291
|
+
});
|
|
292
|
+
};
|
|
293
|
+
return {
|
|
294
|
+
reset: r,
|
|
295
|
+
invoke_onerror: () => {
|
|
296
|
+
try {
|
|
297
|
+
n = !0, this.#n.onerror?.(e, r), n = !1;
|
|
298
|
+
} catch (e) {
|
|
299
|
+
L(e, this.#i && this.#i.parent);
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
#y() {
|
|
305
|
+
let e = this.#n.pending;
|
|
306
|
+
e && (this.is_pending = !0, this.#o = W(() => e(this.#e)), Ge(() => {
|
|
307
|
+
var e = this.#c = document.createDocumentFragment(), t = U();
|
|
308
|
+
e.append(t), this.#a = this.#S(() => W(() => this.#r(t))), this.#u === 0 && (this.#e.before(e), this.#c = null, En(this.#o, () => {
|
|
309
|
+
this.#o = null;
|
|
310
|
+
}), this.#x(B));
|
|
311
|
+
}));
|
|
312
|
+
}
|
|
313
|
+
#b() {
|
|
314
|
+
try {
|
|
315
|
+
if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#l = 0, this.#a = W(() => {
|
|
316
|
+
this.#r(this.#e);
|
|
317
|
+
}), this.#u > 0) {
|
|
318
|
+
var e = this.#c = document.createDocumentFragment();
|
|
319
|
+
An(this.#a, e);
|
|
320
|
+
let t = this.#n.pending;
|
|
321
|
+
this.#o = W(() => t(this.#e));
|
|
322
|
+
} else this.#x(B);
|
|
323
|
+
} catch (e) {
|
|
324
|
+
this.error(e);
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
#x(e) {
|
|
328
|
+
this.is_pending = !1, e.transfer_effects(this.#f, this.#p);
|
|
329
|
+
}
|
|
330
|
+
defer_effect(e) {
|
|
331
|
+
Ze(e, this.#f, this.#p);
|
|
332
|
+
}
|
|
333
|
+
is_rendered() {
|
|
334
|
+
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
335
|
+
}
|
|
336
|
+
has_pending_snippet() {
|
|
337
|
+
return !!this.#n.pending;
|
|
338
|
+
}
|
|
339
|
+
#S(e) {
|
|
340
|
+
var t = J, n = K, r = I;
|
|
341
|
+
In(this.#i), q(this.#i), ze(this.#i.ctx);
|
|
342
|
+
try {
|
|
343
|
+
return Ot.ensure(), e();
|
|
344
|
+
} catch (e) {
|
|
345
|
+
return qe(e), null;
|
|
346
|
+
} finally {
|
|
347
|
+
In(t), q(n), ze(r);
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
#C(e, t) {
|
|
351
|
+
if (!this.has_pending_snippet()) {
|
|
352
|
+
this.parent && this.parent.#C(e, t);
|
|
353
|
+
return;
|
|
354
|
+
}
|
|
355
|
+
this.#u += e, this.#u === 0 && (this.#x(t), this.#o && En(this.#o, () => {
|
|
356
|
+
this.#o = null;
|
|
357
|
+
}), this.#c &&= (this.#e.before(this.#c), null));
|
|
358
|
+
}
|
|
359
|
+
update_pending_count(e, t) {
|
|
360
|
+
this.#C(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, Ge(() => {
|
|
361
|
+
this.#d = !1, this.#m && Vt(this.#m, this.#l);
|
|
362
|
+
}));
|
|
363
|
+
}
|
|
364
|
+
get_effect_pending() {
|
|
365
|
+
return this.#h(), Z(this.#m);
|
|
366
|
+
}
|
|
367
|
+
error(e) {
|
|
368
|
+
if (!this.#n.onerror && !this.#n.failed) throw e;
|
|
369
|
+
B?.is_fork ? (this.#a && B.skip_effect(this.#a), this.#o && B.skip_effect(this.#o), this.#s && B.skip_effect(this.#s), B.oncommit(() => {
|
|
370
|
+
this.#w(e);
|
|
371
|
+
})) : this.#w(e);
|
|
372
|
+
}
|
|
373
|
+
#w(e) {
|
|
374
|
+
this.#a &&= (G(this.#a), null), this.#o &&= (G(this.#o), null), this.#s &&= (G(this.#s), null), M && (F(this.#t), Ne(), F(Pe()));
|
|
375
|
+
let t = this.#n.failed, n = (e) => {
|
|
376
|
+
let { reset: n, invoke_onerror: r } = this.#v(e);
|
|
377
|
+
r(), t && (this.#s = this.#S(() => {
|
|
378
|
+
try {
|
|
379
|
+
return W(() => {
|
|
380
|
+
var r = J;
|
|
381
|
+
r.b = this, r.f |= 128, t(this.#e, () => e, () => n);
|
|
382
|
+
});
|
|
383
|
+
} catch (e) {
|
|
384
|
+
return L(e, this.#i.parent), null;
|
|
385
|
+
}
|
|
386
|
+
}));
|
|
387
|
+
};
|
|
388
|
+
Ge(() => {
|
|
389
|
+
var t;
|
|
390
|
+
try {
|
|
391
|
+
t = this.transform_error(e);
|
|
392
|
+
} catch (e) {
|
|
393
|
+
L(e, this.#i && this.#i.parent);
|
|
394
|
+
return;
|
|
395
|
+
}
|
|
396
|
+
typeof t == "object" && t && typeof t.then == "function" ? t.then(n, (e) => L(e, this.#i && this.#i.parent)) : n(t);
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
};
|
|
400
|
+
function at(e, t, n, r) {
|
|
401
|
+
let i = He() ? lt : ft;
|
|
402
|
+
var a = e.filter((e) => !e.settled), o = t.map(i);
|
|
403
|
+
if (n.length === 0 && a.length === 0) {
|
|
404
|
+
r(o);
|
|
405
|
+
return;
|
|
406
|
+
}
|
|
407
|
+
var s = J, c = ot(), l = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
|
|
408
|
+
function u(e) {
|
|
409
|
+
if (!(s.f & 16384)) {
|
|
410
|
+
c();
|
|
411
|
+
try {
|
|
412
|
+
r([...o, ...e]);
|
|
413
|
+
} catch (e) {
|
|
414
|
+
L(e, s);
|
|
415
|
+
}
|
|
416
|
+
st();
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
var d = ct();
|
|
420
|
+
if (n.length === 0) {
|
|
421
|
+
l.then(() => u([])).finally(d);
|
|
422
|
+
return;
|
|
423
|
+
}
|
|
424
|
+
function f() {
|
|
425
|
+
Promise.all(n.map((e) => /* @__PURE__ */ dt(e))).then(u).catch((e) => L(e, s)).finally(d);
|
|
426
|
+
}
|
|
427
|
+
l ? l.then(() => {
|
|
428
|
+
c(), f(), st();
|
|
429
|
+
}) : f();
|
|
430
|
+
}
|
|
431
|
+
function ot() {
|
|
432
|
+
var e = J, t = K, n = I, r = B;
|
|
433
|
+
return function(i = !0) {
|
|
434
|
+
In(e), q(t), ze(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
|
|
435
|
+
};
|
|
436
|
+
}
|
|
437
|
+
function st(e = !0) {
|
|
438
|
+
In(null), q(null), ze(null), e && B?.deactivate();
|
|
439
|
+
}
|
|
440
|
+
function ct() {
|
|
441
|
+
var e = J, t = e.b, n = B, r = !!t?.is_rendered();
|
|
442
|
+
return t?.update_pending_count(1, n), n.increment(r, e), () => {
|
|
443
|
+
t?.update_pending_count(-1, n), n.decrement(r, e);
|
|
444
|
+
};
|
|
445
|
+
}
|
|
446
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
447
|
+
function lt(e) {
|
|
448
|
+
var t = 2 | C;
|
|
449
|
+
return J !== null && (J.f |= ae), {
|
|
450
|
+
ctx: I,
|
|
451
|
+
deps: null,
|
|
452
|
+
effects: null,
|
|
453
|
+
equals: Ie,
|
|
454
|
+
f: t,
|
|
455
|
+
fn: e,
|
|
456
|
+
reactions: null,
|
|
457
|
+
rv: 0,
|
|
458
|
+
v: s,
|
|
459
|
+
wv: 0,
|
|
460
|
+
parent: J,
|
|
461
|
+
ac: null
|
|
462
|
+
};
|
|
463
|
+
}
|
|
464
|
+
var ut = Symbol("obsolete");
|
|
465
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
466
|
+
function dt(e, t, n) {
|
|
467
|
+
let r = J;
|
|
468
|
+
r === null && ge();
|
|
469
|
+
var i = void 0, a = zt(s), o = !K, c = /* @__PURE__ */ new Set();
|
|
470
|
+
return _n(() => {
|
|
471
|
+
var t = J, n = te();
|
|
472
|
+
i = n.promise;
|
|
473
|
+
try {
|
|
474
|
+
Promise.resolve(e()).then(n.resolve, (e) => {
|
|
475
|
+
e !== me && n.reject(e);
|
|
476
|
+
}).finally(st);
|
|
477
|
+
} catch (e) {
|
|
478
|
+
n.reject(e), st();
|
|
479
|
+
}
|
|
480
|
+
var s = B;
|
|
481
|
+
if (o) {
|
|
482
|
+
if (t.f & 32768) var l = ct();
|
|
483
|
+
if (r.b?.is_rendered()) s.async_deriveds.get(t)?.reject(ut);
|
|
484
|
+
else for (let e of c.values()) e.reject(ut);
|
|
485
|
+
c.add(n), s.async_deriveds.set(t, n);
|
|
486
|
+
}
|
|
487
|
+
let u = (e, t = void 0) => {
|
|
488
|
+
l?.(), c.delete(n), t !== ut && (s.activate(), t ? (a.f |= k, Vt(a, t)) : (a.f & 8388608 && (a.f ^= k), Vt(a, e)), s.deactivate());
|
|
489
|
+
};
|
|
490
|
+
n.promise.then(u, (e) => u(null, e || "unknown"));
|
|
491
|
+
}), dn(() => {
|
|
492
|
+
for (let e of c) e.reject(ut);
|
|
493
|
+
}), new Promise((e) => {
|
|
494
|
+
function t(n) {
|
|
495
|
+
function r() {
|
|
496
|
+
n === i ? e(a) : t(i);
|
|
497
|
+
}
|
|
498
|
+
n.then(r, r);
|
|
499
|
+
}
|
|
500
|
+
t(i);
|
|
501
|
+
});
|
|
502
|
+
}
|
|
503
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
504
|
+
function z(e) {
|
|
505
|
+
let t = /* @__PURE__ */ lt(e);
|
|
506
|
+
return Rn(t), t;
|
|
507
|
+
}
|
|
508
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
509
|
+
function ft(e) {
|
|
510
|
+
let t = /* @__PURE__ */ lt(e);
|
|
511
|
+
return t.equals = Re, t;
|
|
512
|
+
}
|
|
513
|
+
function pt(e) {
|
|
514
|
+
var t = e.effects;
|
|
515
|
+
if (t !== null) {
|
|
516
|
+
e.effects = null;
|
|
517
|
+
for (var n = 0; n < t.length; n += 1) G(t[n]);
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
function mt(e) {
|
|
521
|
+
var t, n = J, r = e.parent;
|
|
522
|
+
if (!Nn && r !== null && e.v !== s && r.f & 24576) return Oe(), e.v;
|
|
523
|
+
In(r);
|
|
524
|
+
try {
|
|
525
|
+
e.f &= ~se, pt(e), t = Jn(e);
|
|
526
|
+
} finally {
|
|
527
|
+
In(n);
|
|
528
|
+
}
|
|
529
|
+
return t;
|
|
530
|
+
}
|
|
531
|
+
function ht(e) {
|
|
532
|
+
var t = mt(e);
|
|
533
|
+
if (!e.equals(t) && (e.wv = Gn(), (!B?.is_fork || e.deps === null) && (B === null ? e.v = t : (B.capture(e, t, !0), yt?.capture(e, t, !0)), e.deps === null))) {
|
|
534
|
+
R(e, S);
|
|
535
|
+
return;
|
|
536
|
+
}
|
|
537
|
+
Nn || (bt === null ? Ye(e) : (un() || B?.is_fork) && bt.set(e, t));
|
|
538
|
+
}
|
|
539
|
+
function gt(e) {
|
|
540
|
+
if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && et(() => {
|
|
541
|
+
t.ac.abort(me), t.ac = null;
|
|
542
|
+
}), t.fn !== null && (t.teardown = b), Xn(t, 0), Sn(t));
|
|
543
|
+
}
|
|
544
|
+
function _t(e) {
|
|
545
|
+
if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && Zn(t);
|
|
546
|
+
}
|
|
547
|
+
var vt = null, B = null, yt = null, bt = null, xt = null, St = !1, Ct = !1, wt = null, Tt = null, Et = 0, Dt = 1, Ot = class e {
|
|
548
|
+
id = Dt++;
|
|
549
|
+
#e = !1;
|
|
550
|
+
linked = !0;
|
|
551
|
+
#t = null;
|
|
552
|
+
#n = null;
|
|
553
|
+
async_deriveds = /* @__PURE__ */ new Map();
|
|
554
|
+
current = /* @__PURE__ */ new Map();
|
|
555
|
+
previous = /* @__PURE__ */ new Map();
|
|
556
|
+
#r = /* @__PURE__ */ new Set();
|
|
557
|
+
#i = /* @__PURE__ */ new Set();
|
|
558
|
+
#a = 0;
|
|
559
|
+
#o = /* @__PURE__ */ new Map();
|
|
560
|
+
#s = null;
|
|
561
|
+
#c = [];
|
|
562
|
+
#l = [];
|
|
563
|
+
#u = /* @__PURE__ */ new Set();
|
|
564
|
+
#d = /* @__PURE__ */ new Set();
|
|
565
|
+
#f = /* @__PURE__ */ new Map();
|
|
566
|
+
#p = /* @__PURE__ */ new Set();
|
|
567
|
+
is_fork = !1;
|
|
568
|
+
#m = !1;
|
|
569
|
+
constructor() {
|
|
570
|
+
vt === null ? vt = this : (vt.#n = this, this.#t = vt), vt = this;
|
|
571
|
+
}
|
|
572
|
+
#h() {
|
|
573
|
+
if (this.is_fork) return !0;
|
|
574
|
+
for (let n of this.#o.keys()) {
|
|
575
|
+
for (var e = n, t = !1; e.parent !== null;) {
|
|
576
|
+
if (this.#f.has(e)) {
|
|
577
|
+
t = !0;
|
|
578
|
+
break;
|
|
579
|
+
}
|
|
580
|
+
e = e.parent;
|
|
581
|
+
}
|
|
582
|
+
if (!t) return !0;
|
|
583
|
+
}
|
|
584
|
+
return !1;
|
|
585
|
+
}
|
|
586
|
+
skip_effect(e) {
|
|
587
|
+
this.#f.has(e) || this.#f.set(e, {
|
|
588
|
+
d: [],
|
|
589
|
+
m: []
|
|
590
|
+
}), this.#p.delete(e);
|
|
591
|
+
}
|
|
592
|
+
unskip_effect(e, t = (e) => this.schedule(e)) {
|
|
593
|
+
var n = this.#f.get(e);
|
|
594
|
+
if (n) {
|
|
595
|
+
this.#f.delete(e);
|
|
596
|
+
for (var r of n.d) R(r, C), t(r);
|
|
597
|
+
for (r of n.m) R(r, ne), t(r);
|
|
598
|
+
}
|
|
599
|
+
this.#p.add(e);
|
|
600
|
+
}
|
|
601
|
+
#g() {
|
|
602
|
+
this.#e = !0, Et++ > 1e3 && (this.#x(), At());
|
|
603
|
+
for (let e of this.#u) this.#d.delete(e), R(e, C), this.schedule(e);
|
|
604
|
+
for (let e of this.#d) R(e, ne), this.schedule(e);
|
|
605
|
+
let t = this.#c;
|
|
606
|
+
this.#c = [], this.apply();
|
|
607
|
+
var n = wt = [], r = [], i = Tt = [];
|
|
608
|
+
for (let e of t) try {
|
|
609
|
+
this.#_(e, n, r);
|
|
610
|
+
} catch (t) {
|
|
611
|
+
throw Ft(e), this.#h() || this.discard(), t;
|
|
612
|
+
}
|
|
613
|
+
if (B = null, i.length > 0) {
|
|
614
|
+
var a = e.ensure();
|
|
615
|
+
for (let e of i) a.schedule(e);
|
|
616
|
+
}
|
|
617
|
+
if (wt = null, Tt = null, this.#h()) {
|
|
618
|
+
this.#b(r), this.#b(n);
|
|
619
|
+
for (let [e, t] of this.#f) Pt(e, t);
|
|
620
|
+
i.length > 0 && B.#g();
|
|
621
|
+
return;
|
|
622
|
+
}
|
|
623
|
+
let o = this.#v();
|
|
624
|
+
if (o) {
|
|
625
|
+
this.#b(r), this.#b(n), o.#y(this);
|
|
626
|
+
return;
|
|
627
|
+
}
|
|
628
|
+
this.#u.clear(), this.#d.clear();
|
|
629
|
+
for (let e of this.#r) e(this);
|
|
630
|
+
this.#r.clear(), yt = this, Mt(r), Mt(n), yt = null, this.#s?.resolve();
|
|
631
|
+
var s = B;
|
|
632
|
+
if (this.#a === 0 && (this.#c.length === 0 || s !== null) && this.#x(), this.#c.length > 0) {
|
|
633
|
+
if (s !== null) {
|
|
634
|
+
let e = s;
|
|
635
|
+
e.#c.push(...this.#c.filter((t) => !e.#c.includes(t)));
|
|
636
|
+
} else s = this;
|
|
637
|
+
}
|
|
638
|
+
s !== null && s.#g();
|
|
639
|
+
}
|
|
640
|
+
#_(e, t, n) {
|
|
641
|
+
e.f ^= S;
|
|
642
|
+
for (var r = e.first; r !== null;) {
|
|
643
|
+
var i = r.f, a = !!(i & 96);
|
|
644
|
+
if (!(a && i & 1024 || i & 8192 || this.#f.has(r)) && r.fn !== null) {
|
|
645
|
+
a ? r.f ^= S : i & 4 ? t.push(r) : Kn(r) && (i & 16 && this.#d.add(r), Zn(r));
|
|
646
|
+
var o = r.first;
|
|
647
|
+
if (o !== null) {
|
|
648
|
+
r = o;
|
|
649
|
+
continue;
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
for (; r !== null;) {
|
|
653
|
+
var s = r.next;
|
|
654
|
+
if (s !== null) {
|
|
655
|
+
r = s;
|
|
656
|
+
break;
|
|
657
|
+
}
|
|
658
|
+
r = r.parent;
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
#v() {
|
|
663
|
+
for (var e = this.#t; e !== null;) {
|
|
664
|
+
if (!e.is_fork) {
|
|
665
|
+
for (let [t, [, n]] of this.current) if (e.current.has(t) && !n) return e;
|
|
666
|
+
}
|
|
667
|
+
e = e.#t;
|
|
668
|
+
}
|
|
669
|
+
return null;
|
|
670
|
+
}
|
|
671
|
+
#y(e) {
|
|
672
|
+
for (let [t, n] of e.current) !this.previous.has(t) && e.previous.has(t) && this.previous.set(t, e.previous.get(t)), this.current.set(t, n);
|
|
673
|
+
for (let [t, n] of e.async_deriveds) {
|
|
674
|
+
let e = this.async_deriveds.get(t);
|
|
675
|
+
e && n.promise.then(e.resolve).catch(e.reject);
|
|
676
|
+
}
|
|
677
|
+
e.async_deriveds.clear(), this.transfer_effects(e.#u, e.#d);
|
|
678
|
+
let t = (e) => {
|
|
679
|
+
var n = e.reactions;
|
|
680
|
+
if (n !== null && !(e.f & 2 && !(e.f & 6144))) for (let e of n) {
|
|
681
|
+
var r = e.f;
|
|
682
|
+
if (r & 2) t(e);
|
|
683
|
+
else {
|
|
684
|
+
var i = e;
|
|
685
|
+
r & 4194320 && !this.async_deriveds.has(i) && (this.#d.delete(i), R(i, C), this.schedule(i));
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
};
|
|
689
|
+
for (let e of this.current.keys()) t(e);
|
|
690
|
+
this.oncommit(() => e.discard()), e.#x(), B = this, this.#g();
|
|
691
|
+
}
|
|
692
|
+
#b(e) {
|
|
693
|
+
for (var t = 0; t < e.length; t += 1) Ze(e[t], this.#u, this.#d);
|
|
694
|
+
}
|
|
695
|
+
capture(e, t, n = !1) {
|
|
696
|
+
e.v !== s && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, n]), bt?.set(e, t)), this.is_fork || (e.v = t);
|
|
697
|
+
}
|
|
698
|
+
activate() {
|
|
699
|
+
B = this;
|
|
700
|
+
}
|
|
701
|
+
deactivate() {
|
|
702
|
+
B = null, bt = null;
|
|
703
|
+
}
|
|
704
|
+
flush() {
|
|
705
|
+
try {
|
|
706
|
+
Ct = !0, B = this, this.#g();
|
|
707
|
+
} finally {
|
|
708
|
+
Et = 0, xt = null, wt = null, Tt = null, Ct = !1, B = null, bt = null, Lt.clear();
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
discard() {
|
|
712
|
+
for (let e of this.#i) e(this);
|
|
713
|
+
this.#i.clear();
|
|
714
|
+
for (let e of this.async_deriveds.values()) e.reject(ut);
|
|
715
|
+
this.#x(), this.#s?.resolve();
|
|
716
|
+
}
|
|
717
|
+
register_created_effect(e) {
|
|
718
|
+
this.#l.push(e);
|
|
719
|
+
}
|
|
720
|
+
increment(e, t) {
|
|
721
|
+
if (this.#a += 1, e) {
|
|
722
|
+
let e = this.#o.get(t) ?? 0;
|
|
723
|
+
this.#o.set(t, e + 1);
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
decrement(e, t) {
|
|
727
|
+
if (--this.#a, e) {
|
|
728
|
+
let e = this.#o.get(t) ?? 0;
|
|
729
|
+
e === 1 ? this.#o.delete(t) : this.#o.set(t, e - 1);
|
|
730
|
+
}
|
|
731
|
+
this.#m || (this.#m = !0, Ge(() => {
|
|
732
|
+
this.#m = !1, this.linked && this.flush();
|
|
733
|
+
}));
|
|
734
|
+
}
|
|
735
|
+
transfer_effects(e, t) {
|
|
736
|
+
for (let t of e) this.#u.add(t);
|
|
737
|
+
for (let e of t) this.#d.add(e);
|
|
738
|
+
e.clear(), t.clear();
|
|
739
|
+
}
|
|
740
|
+
oncommit(e) {
|
|
741
|
+
this.#r.add(e);
|
|
742
|
+
}
|
|
743
|
+
ondiscard(e) {
|
|
744
|
+
this.#i.add(e);
|
|
745
|
+
}
|
|
746
|
+
settled() {
|
|
747
|
+
return (this.#s ??= te()).promise;
|
|
748
|
+
}
|
|
749
|
+
static ensure() {
|
|
750
|
+
if (B === null) {
|
|
751
|
+
let t = B = new e();
|
|
752
|
+
!Ct && !St && Ge(() => {
|
|
753
|
+
t.#e || t.flush();
|
|
754
|
+
});
|
|
755
|
+
}
|
|
756
|
+
return B;
|
|
757
|
+
}
|
|
758
|
+
apply() {
|
|
759
|
+
bt = null;
|
|
760
|
+
}
|
|
761
|
+
schedule(e) {
|
|
762
|
+
if (xt = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
|
|
763
|
+
e.b.defer_effect(e);
|
|
764
|
+
return;
|
|
765
|
+
}
|
|
766
|
+
for (var t = e; t.parent !== null;) {
|
|
767
|
+
t = t.parent;
|
|
768
|
+
var n = t.f;
|
|
769
|
+
if (wt !== null && t === J && (K === null || !(K.f & 2))) return;
|
|
770
|
+
if (n & 96) {
|
|
771
|
+
if (!(n & 1024)) return;
|
|
772
|
+
t.f ^= S;
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
this.#c.push(t);
|
|
776
|
+
}
|
|
777
|
+
#x() {
|
|
778
|
+
if (this.linked) {
|
|
779
|
+
var e = this.#t, t = this.#n;
|
|
780
|
+
e === null || (e.#n = t), t === null ? vt = e : t.#t = e, this.linked = !1;
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
};
|
|
784
|
+
function kt(e) {
|
|
785
|
+
var t = St;
|
|
786
|
+
St = !0;
|
|
787
|
+
try {
|
|
788
|
+
var n;
|
|
789
|
+
for (e && (B !== null && !B.is_fork && B.flush(), n = e());;) {
|
|
790
|
+
if (Ke(), B === null) return n;
|
|
791
|
+
B.flush();
|
|
792
|
+
}
|
|
793
|
+
} finally {
|
|
794
|
+
St = t;
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
function At() {
|
|
798
|
+
try {
|
|
799
|
+
xe();
|
|
800
|
+
} catch (e) {
|
|
801
|
+
L(e, xt);
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
var jt = null;
|
|
805
|
+
function Mt(e) {
|
|
806
|
+
var t = e.length;
|
|
807
|
+
if (t !== 0) {
|
|
808
|
+
for (var n = 0; n < t;) {
|
|
809
|
+
var r = e[n++];
|
|
810
|
+
if (!(r.f & 24576) && Kn(r) && (jt = /* @__PURE__ */ new Set(), Zn(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && Tn(r), jt?.size > 0)) {
|
|
811
|
+
Lt.clear();
|
|
812
|
+
for (let e of jt) {
|
|
813
|
+
if (e.f & 24576) continue;
|
|
814
|
+
let t = [e], n = e.parent;
|
|
815
|
+
for (; n !== null;) jt.has(n) && (jt.delete(n), t.push(n)), n = n.parent;
|
|
816
|
+
for (let e = t.length - 1; e >= 0; e--) {
|
|
817
|
+
let n = t[e];
|
|
818
|
+
n.f & 24576 || Zn(n);
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
jt.clear();
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
jt = null;
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
function Nt(e) {
|
|
828
|
+
B.schedule(e);
|
|
829
|
+
}
|
|
830
|
+
function Pt(e, t) {
|
|
831
|
+
if (!(e.f & 32 && e.f & 1024)) {
|
|
832
|
+
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), R(e, S);
|
|
833
|
+
for (var n = e.first; n !== null;) Pt(n, t), n = n.next;
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
function Ft(e) {
|
|
837
|
+
R(e, S);
|
|
838
|
+
for (var t = e.first; t !== null;) Ft(t), t = t.next;
|
|
839
|
+
}
|
|
840
|
+
var It = /* @__PURE__ */ new Set(), Lt = /* @__PURE__ */ new Map(), Rt = !1;
|
|
841
|
+
function zt(e, t) {
|
|
842
|
+
return {
|
|
843
|
+
f: 0,
|
|
844
|
+
v: e,
|
|
845
|
+
reactions: null,
|
|
846
|
+
equals: Ie,
|
|
847
|
+
rv: 0,
|
|
848
|
+
wv: 0
|
|
849
|
+
};
|
|
850
|
+
}
|
|
851
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
852
|
+
function V(e, t) {
|
|
853
|
+
let n = zt(e, t);
|
|
854
|
+
return Rn(n), n;
|
|
855
|
+
}
|
|
856
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
857
|
+
function Bt(e, t = !1, n = !0) {
|
|
858
|
+
let r = zt(e);
|
|
859
|
+
return t || (r.equals = Re), r;
|
|
860
|
+
}
|
|
861
|
+
function H(e, t, n = !1) {
|
|
862
|
+
return K !== null && (!Fn || K.f & 131072) && He() && K.f & 4325394 && (Ln === null || !Ln.has(e)) && Ee(), Vt(e, n ? Gt(t) : t, Tt);
|
|
863
|
+
}
|
|
864
|
+
function Vt(e, t, n = null) {
|
|
865
|
+
if (!e.equals(t)) {
|
|
866
|
+
Lt.set(e, Nn ? t : e.v);
|
|
867
|
+
var r = Ot.ensure();
|
|
868
|
+
if (r.capture(e, t), e.f & 2) {
|
|
869
|
+
let t = e;
|
|
870
|
+
e.f & 2048 && mt(t), bt === null && Ye(t);
|
|
871
|
+
}
|
|
872
|
+
e.wv = Gn(), Wt(e, C, n), He() && J !== null && J.f & 1024 && !(J.f & 96) && (zn === null ? Bn([e]) : zn.push(e)), !r.is_fork && It.size > 0 && !Rt && Ht();
|
|
873
|
+
}
|
|
874
|
+
return t;
|
|
875
|
+
}
|
|
876
|
+
function Ht() {
|
|
877
|
+
Rt = !1;
|
|
878
|
+
for (let e of It) {
|
|
879
|
+
e.f & 1024 && R(e, ne);
|
|
880
|
+
let t;
|
|
881
|
+
try {
|
|
882
|
+
t = Kn(e);
|
|
883
|
+
} catch {
|
|
884
|
+
t = !0;
|
|
885
|
+
}
|
|
886
|
+
t && Zn(e);
|
|
887
|
+
}
|
|
888
|
+
It.clear();
|
|
889
|
+
}
|
|
890
|
+
function Ut(e) {
|
|
891
|
+
H(e, e.v + 1);
|
|
892
|
+
}
|
|
893
|
+
function Wt(e, t, n) {
|
|
894
|
+
var r = e.reactions;
|
|
895
|
+
if (r !== null) for (var i = He(), a = r.length, o = 0; o < a; o++) {
|
|
896
|
+
var s = r[o], c = s.f;
|
|
897
|
+
if (!(!i && s === J)) {
|
|
898
|
+
var l = (c & C) === 0;
|
|
899
|
+
if (l && R(s, t), c & 131072) It.add(s);
|
|
900
|
+
else if (c & 2) {
|
|
901
|
+
var u = s;
|
|
902
|
+
bt?.delete(u), c & 65536 || (c & 512 && (J === null || !(J.f & 2097152)) && (s.f |= se), Wt(u, ne, n));
|
|
903
|
+
} else if (l) {
|
|
904
|
+
var d = s;
|
|
905
|
+
c & 16 && jt !== null && jt.add(d), n === null ? Nt(d) : n.push(d);
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
function Gt(e) {
|
|
911
|
+
if (typeof e != "object" || !e || A in e) return e;
|
|
912
|
+
let t = y(e);
|
|
913
|
+
if (t !== _ && t !== v) return e;
|
|
914
|
+
var n = /* @__PURE__ */ new Map(), r = l(e), i = /* @__PURE__ */ V(0), a = null, o = Un, c = (e) => {
|
|
915
|
+
if (Un === o) return e();
|
|
916
|
+
var t = K, n = Un;
|
|
917
|
+
q(null), Wn(o);
|
|
918
|
+
var r = e();
|
|
919
|
+
return q(t), Wn(n), r;
|
|
920
|
+
};
|
|
921
|
+
return r && n.set("length", /* @__PURE__ */ V(e.length, a)), new Proxy(e, {
|
|
922
|
+
defineProperty(e, t, r) {
|
|
923
|
+
(!("value" in r) || r.configurable === !1 || r.enumerable === !1 || r.writable === !1) && we();
|
|
924
|
+
var i = n.get(t);
|
|
925
|
+
return i === void 0 ? c(() => {
|
|
926
|
+
var e = /* @__PURE__ */ V(r.value, a);
|
|
927
|
+
return n.set(t, e), e;
|
|
928
|
+
}) : H(i, r.value, !0), !0;
|
|
929
|
+
},
|
|
930
|
+
deleteProperty(e, t) {
|
|
931
|
+
var r = n.get(t);
|
|
932
|
+
if (r === void 0) {
|
|
933
|
+
if (t in e) {
|
|
934
|
+
let e = c(() => /* @__PURE__ */ V(s, a));
|
|
935
|
+
n.set(t, e), Ut(i);
|
|
936
|
+
}
|
|
937
|
+
} else H(r, s), Ut(i);
|
|
938
|
+
return !0;
|
|
939
|
+
},
|
|
940
|
+
get(t, r, i) {
|
|
941
|
+
if (r === A) return e;
|
|
942
|
+
var o = n.get(r), l = r in t;
|
|
943
|
+
if (o === void 0 && (!l || h(t, r)?.writable) && (o = c(() => /* @__PURE__ */ V(Gt(l ? t[r] : s), a)), n.set(r, o)), o !== void 0) {
|
|
944
|
+
var u = Z(o);
|
|
945
|
+
return u === s ? void 0 : u;
|
|
946
|
+
}
|
|
947
|
+
return Reflect.get(t, r, i);
|
|
948
|
+
},
|
|
949
|
+
getOwnPropertyDescriptor(e, t) {
|
|
950
|
+
var r = Reflect.getOwnPropertyDescriptor(e, t);
|
|
951
|
+
if (r && "value" in r) {
|
|
952
|
+
var i = n.get(t);
|
|
953
|
+
i && (r.value = Z(i));
|
|
954
|
+
} else if (r === void 0) {
|
|
955
|
+
var a = n.get(t), o = a?.v;
|
|
956
|
+
if (a !== void 0 && o !== s) return {
|
|
957
|
+
enumerable: !0,
|
|
958
|
+
configurable: !0,
|
|
959
|
+
value: o,
|
|
960
|
+
writable: !0
|
|
961
|
+
};
|
|
962
|
+
}
|
|
963
|
+
return r;
|
|
964
|
+
},
|
|
965
|
+
has(e, t) {
|
|
966
|
+
if (t === A) return !0;
|
|
967
|
+
var r = n.get(t), i = r !== void 0 && r.v !== s || Reflect.has(e, t);
|
|
968
|
+
return (r !== void 0 || J !== null && (!i || h(e, t)?.writable)) && (r === void 0 && (r = c(() => /* @__PURE__ */ V(i ? Gt(e[t]) : s, a)), n.set(t, r)), Z(r) === s) ? !1 : i;
|
|
969
|
+
},
|
|
970
|
+
set(e, t, o, l) {
|
|
971
|
+
var u = n.get(t), d = t in e;
|
|
972
|
+
if (r && t === "length") for (var f = o; f < u.v; f += 1) {
|
|
973
|
+
var p = n.get(f + "");
|
|
974
|
+
p === void 0 ? f in e && (p = c(() => /* @__PURE__ */ V(s, a)), n.set(f + "", p)) : H(p, s);
|
|
975
|
+
}
|
|
976
|
+
if (u === void 0) (!d || h(e, t)?.writable) && (u = c(() => /* @__PURE__ */ V(void 0, a)), H(u, Gt(o)), n.set(t, u));
|
|
977
|
+
else {
|
|
978
|
+
d = u.v !== s;
|
|
979
|
+
var m = c(() => Gt(o));
|
|
980
|
+
H(u, m);
|
|
981
|
+
}
|
|
982
|
+
var g = Reflect.getOwnPropertyDescriptor(e, t);
|
|
983
|
+
if (g?.set && g.set.call(l, o), !d) {
|
|
984
|
+
if (r && typeof t == "string") {
|
|
985
|
+
var _ = n.get("length"), v = Number(t);
|
|
986
|
+
Number.isInteger(v) && v >= _.v && H(_, v + 1);
|
|
987
|
+
}
|
|
988
|
+
Ut(i);
|
|
989
|
+
}
|
|
990
|
+
return !0;
|
|
991
|
+
},
|
|
992
|
+
ownKeys(e) {
|
|
993
|
+
Z(i);
|
|
994
|
+
var t = Reflect.ownKeys(e).filter((e) => {
|
|
995
|
+
var t = n.get(e);
|
|
996
|
+
return t === void 0 || t.v !== s;
|
|
997
|
+
});
|
|
998
|
+
for (var [r, a] of n) a.v !== s && !(r in e) && t.push(r);
|
|
999
|
+
return t;
|
|
1000
|
+
},
|
|
1001
|
+
setPrototypeOf() {
|
|
1002
|
+
Te();
|
|
1003
|
+
}
|
|
1004
|
+
});
|
|
1005
|
+
}
|
|
1006
|
+
var Kt, qt, Jt, Yt;
|
|
1007
|
+
function Xt() {
|
|
1008
|
+
if (Kt === void 0) {
|
|
1009
|
+
Kt = window, qt = /Firefox/.test(navigator.userAgent);
|
|
1010
|
+
var e = Element.prototype, t = Node.prototype, n = Text.prototype;
|
|
1011
|
+
Jt = h(t, "firstChild").get, Yt = h(t, "nextSibling").get, ee(e) && (e[de] = void 0, e[ue] = null, e[fe] = void 0, e.__e = void 0), ee(n) && (n[pe] = void 0);
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
function U(e = "") {
|
|
1015
|
+
return document.createTextNode(e);
|
|
1016
|
+
}
|
|
1017
|
+
/*@__NO_SIDE_EFFECTS__*/
|
|
1018
|
+
function Zt(e) {
|
|
1019
|
+
return Jt.call(e);
|
|
1020
|
+
}
|
|
1021
|
+
/*@__NO_SIDE_EFFECTS__*/
|
|
1022
|
+
function Qt(e) {
|
|
1023
|
+
return Yt.call(e);
|
|
1024
|
+
}
|
|
1025
|
+
function $t(e, t) {
|
|
1026
|
+
if (!M) return /* @__PURE__ */ Zt(e);
|
|
1027
|
+
var n = /* @__PURE__ */ Zt(P);
|
|
1028
|
+
if (n === null) n = P.appendChild(U());
|
|
1029
|
+
else if (t && n.nodeType !== 3) {
|
|
1030
|
+
var r = U();
|
|
1031
|
+
return n?.before(r), F(r), r;
|
|
1032
|
+
}
|
|
1033
|
+
return t && on(n), F(n), n;
|
|
1034
|
+
}
|
|
1035
|
+
function en(e, t = !1) {
|
|
1036
|
+
if (!M) {
|
|
1037
|
+
var n = /* @__PURE__ */ Zt(e);
|
|
1038
|
+
return n instanceof Comment && n.data === "" ? /* @__PURE__ */ Qt(n) : n;
|
|
1039
|
+
}
|
|
1040
|
+
if (t) {
|
|
1041
|
+
if (P?.nodeType !== 3) {
|
|
1042
|
+
var r = U();
|
|
1043
|
+
return P?.before(r), F(r), r;
|
|
1044
|
+
}
|
|
1045
|
+
on(P);
|
|
1046
|
+
}
|
|
1047
|
+
return P;
|
|
1048
|
+
}
|
|
1049
|
+
function tn(e, t = 1, n = !1) {
|
|
1050
|
+
let r = M ? P : e;
|
|
1051
|
+
for (var i; t--;) i = r, r = /* @__PURE__ */ Qt(r);
|
|
1052
|
+
if (!M) return r;
|
|
1053
|
+
if (n) {
|
|
1054
|
+
if (r?.nodeType !== 3) {
|
|
1055
|
+
var a = U();
|
|
1056
|
+
return r === null ? i?.after(a) : r.before(a), F(a), a;
|
|
1057
|
+
}
|
|
1058
|
+
on(r);
|
|
1059
|
+
}
|
|
1060
|
+
return F(r), r;
|
|
1061
|
+
}
|
|
1062
|
+
function nn(e) {
|
|
1063
|
+
e.textContent = "";
|
|
1064
|
+
}
|
|
1065
|
+
function rn() {
|
|
1066
|
+
return !1;
|
|
1067
|
+
}
|
|
1068
|
+
function an(e, t, n) {
|
|
1069
|
+
return t == null || t === "http://www.w3.org/1999/xhtml" ? n ? document.createElement(e, { is: n }) : document.createElement(e) : n ? document.createElementNS(t, e, { is: n }) : document.createElementNS(t, e);
|
|
1070
|
+
}
|
|
1071
|
+
function on(e) {
|
|
1072
|
+
if (e.nodeValue.length < 65536) return;
|
|
1073
|
+
let t = e.nextSibling;
|
|
1074
|
+
for (; t !== null && t.nodeType === 3;) t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
|
|
1075
|
+
}
|
|
1076
|
+
function sn(e) {
|
|
1077
|
+
J === null && (K === null && be(e), ye()), Nn && ve(e);
|
|
1078
|
+
}
|
|
1079
|
+
function cn(e, t) {
|
|
1080
|
+
var n = t.last;
|
|
1081
|
+
n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
|
|
1082
|
+
}
|
|
1083
|
+
function ln(e, t) {
|
|
1084
|
+
var n = J;
|
|
1085
|
+
n !== null && n.f & 8192 && (e |= w);
|
|
1086
|
+
var r = {
|
|
1087
|
+
ctx: I,
|
|
1088
|
+
deps: null,
|
|
1089
|
+
nodes: null,
|
|
1090
|
+
f: e | C | 512,
|
|
1091
|
+
first: null,
|
|
1092
|
+
fn: t,
|
|
1093
|
+
last: null,
|
|
1094
|
+
next: null,
|
|
1095
|
+
parent: n,
|
|
1096
|
+
b: n && n.b,
|
|
1097
|
+
prev: null,
|
|
1098
|
+
teardown: null,
|
|
1099
|
+
wv: 0,
|
|
1100
|
+
ac: null
|
|
1101
|
+
};
|
|
1102
|
+
B?.register_created_effect(r);
|
|
1103
|
+
var i = r;
|
|
1104
|
+
if (e & 4) wt === null ? Ot.ensure().schedule(r) : wt.push(r);
|
|
1105
|
+
else if (t !== null) {
|
|
1106
|
+
try {
|
|
1107
|
+
Zn(r);
|
|
1108
|
+
} catch (e) {
|
|
1109
|
+
throw G(r), e;
|
|
1110
|
+
}
|
|
1111
|
+
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && !(i.f & 524288) && (i = i.first, e & 16 && e & 65536 && i !== null && (i.f |= E));
|
|
1112
|
+
}
|
|
1113
|
+
if (i !== null && (i.parent = n, n !== null && cn(i, n), K !== null && K.f & 2 && !(e & 64))) {
|
|
1114
|
+
var a = K;
|
|
1115
|
+
(a.effects ??= []).push(i);
|
|
1116
|
+
}
|
|
1117
|
+
return r;
|
|
1118
|
+
}
|
|
1119
|
+
function un() {
|
|
1120
|
+
return K !== null && !Fn;
|
|
1121
|
+
}
|
|
1122
|
+
function dn(e) {
|
|
1123
|
+
let t = ln(8, null);
|
|
1124
|
+
return R(t, S), t.teardown = e, t;
|
|
1125
|
+
}
|
|
1126
|
+
function fn(e) {
|
|
1127
|
+
sn("$effect");
|
|
1128
|
+
var t = J.f;
|
|
1129
|
+
if (!K && t & 32 && I !== null && !I.i) {
|
|
1130
|
+
var n = I;
|
|
1131
|
+
(n.e ??= []).push(e);
|
|
1132
|
+
} else return pn(e);
|
|
1133
|
+
}
|
|
1134
|
+
function pn(e) {
|
|
1135
|
+
return ln(4 | D, e);
|
|
1136
|
+
}
|
|
1137
|
+
function mn(e) {
|
|
1138
|
+
Ot.ensure();
|
|
1139
|
+
let t = ln(64 | ae, e);
|
|
1140
|
+
return () => {
|
|
1141
|
+
G(t);
|
|
1142
|
+
};
|
|
1143
|
+
}
|
|
1144
|
+
function hn(e) {
|
|
1145
|
+
Ot.ensure();
|
|
1146
|
+
let t = ln(64 | ae, e);
|
|
1147
|
+
return (e = {}) => new Promise((n) => {
|
|
1148
|
+
e.outro ? En(t, () => {
|
|
1149
|
+
G(t), n(void 0);
|
|
1150
|
+
}) : (G(t), n(void 0));
|
|
1151
|
+
});
|
|
1152
|
+
}
|
|
1153
|
+
function gn(e) {
|
|
1154
|
+
return ln(4, e);
|
|
1155
|
+
}
|
|
1156
|
+
function _n(e) {
|
|
1157
|
+
return ln(ce | ae, e);
|
|
1158
|
+
}
|
|
1159
|
+
function vn(e, t = 0) {
|
|
1160
|
+
return ln(8 | t, e);
|
|
1161
|
+
}
|
|
1162
|
+
function yn(e, t = [], n = [], r = []) {
|
|
1163
|
+
at(r, t, n, (t) => {
|
|
1164
|
+
ln(8, () => {
|
|
1165
|
+
e(...t.map(Z));
|
|
1166
|
+
});
|
|
1167
|
+
});
|
|
1168
|
+
}
|
|
1169
|
+
function bn(e, t = 0) {
|
|
1170
|
+
return ln(16 | t, e);
|
|
1171
|
+
}
|
|
1172
|
+
function W(e) {
|
|
1173
|
+
return ln(32 | ae, e);
|
|
1174
|
+
}
|
|
1175
|
+
function xn(e) {
|
|
1176
|
+
var t = e.teardown;
|
|
1177
|
+
if (t !== null) {
|
|
1178
|
+
let e = Nn, n = K;
|
|
1179
|
+
Pn(!0), q(null);
|
|
1180
|
+
try {
|
|
1181
|
+
t.call(null);
|
|
1182
|
+
} finally {
|
|
1183
|
+
Pn(e), q(n);
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
function Sn(e, t = !1) {
|
|
1188
|
+
var n = e.first;
|
|
1189
|
+
for (e.first = e.last = null; n !== null;) {
|
|
1190
|
+
let e = n.ac;
|
|
1191
|
+
e !== null && et(() => {
|
|
1192
|
+
e.abort(me);
|
|
1193
|
+
});
|
|
1194
|
+
var r = n.next;
|
|
1195
|
+
n.f & 64 ? n.parent = null : G(n, t), n = r;
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
function Cn(e) {
|
|
1199
|
+
for (var t = e.first; t !== null;) {
|
|
1200
|
+
var n = t.next;
|
|
1201
|
+
t.f & 32 || G(t), t = n;
|
|
1202
|
+
}
|
|
1203
|
+
}
|
|
1204
|
+
function G(e, t = !0) {
|
|
1205
|
+
var n = !1;
|
|
1206
|
+
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (wn(e.nodes.start, e.nodes.end), n = !0), e.f |= ie, Sn(e, t && !n), Xn(e, 0);
|
|
1207
|
+
var r = e.nodes && e.nodes.t;
|
|
1208
|
+
if (r !== null) for (let e of r) e.stop();
|
|
1209
|
+
xn(e), e.f ^= ie, e.f |= T;
|
|
1210
|
+
var i = e.parent;
|
|
1211
|
+
i !== null && i.first !== null && Tn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1212
|
+
}
|
|
1213
|
+
function wn(e, t) {
|
|
1214
|
+
for (; e !== null;) {
|
|
1215
|
+
var n = e === t ? null : /* @__PURE__ */ Qt(e);
|
|
1216
|
+
e.remove(), e = n;
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
function Tn(e) {
|
|
1220
|
+
var t = e.parent, n = e.prev, r = e.next;
|
|
1221
|
+
n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
|
|
1222
|
+
}
|
|
1223
|
+
function En(e, t, n = !0) {
|
|
1224
|
+
var r = [];
|
|
1225
|
+
Dn(e, r, !0);
|
|
1226
|
+
var i = () => {
|
|
1227
|
+
n && G(e), t && t();
|
|
1228
|
+
}, a = r.length;
|
|
1229
|
+
if (a > 0) {
|
|
1230
|
+
var o = () => --a || i();
|
|
1231
|
+
for (var s of r) s.out(o);
|
|
1232
|
+
} else i();
|
|
1233
|
+
}
|
|
1234
|
+
function Dn(e, t, n) {
|
|
1235
|
+
if (!(e.f & 8192)) {
|
|
1236
|
+
e.f ^= w;
|
|
1237
|
+
var r = e.nodes && e.nodes.t;
|
|
1238
|
+
if (r !== null) for (let e of r) (e.is_global || n) && t.push(e);
|
|
1239
|
+
for (var i = e.first; i !== null;) {
|
|
1240
|
+
var a = i.next;
|
|
1241
|
+
if (!(i.f & 64)) {
|
|
1242
|
+
var o = !!(i.f & 65536) || !!(i.f & 32) && !!(e.f & 16);
|
|
1243
|
+
Dn(i, t, o ? n : !1);
|
|
1244
|
+
}
|
|
1245
|
+
i = a;
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1249
|
+
function On(e) {
|
|
1250
|
+
kn(e, !0);
|
|
1251
|
+
}
|
|
1252
|
+
function kn(e, t) {
|
|
1253
|
+
if (e.f & 8192) {
|
|
1254
|
+
e.f ^= w, e.f & 1024 || (R(e, C), Ot.ensure().schedule(e));
|
|
1255
|
+
for (var n = e.first; n !== null;) {
|
|
1256
|
+
var r = n.next, i = !!(n.f & 65536) || !!(n.f & 32);
|
|
1257
|
+
kn(n, i ? t : !1), n = r;
|
|
1258
|
+
}
|
|
1259
|
+
var a = e.nodes && e.nodes.t;
|
|
1260
|
+
if (a !== null) for (let e of a) (e.is_global || t) && e.in();
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
function An(e, t) {
|
|
1264
|
+
if (e.nodes) for (var n = e.nodes.start, r = e.nodes.end; n !== null;) {
|
|
1265
|
+
var i = n === r ? null : /* @__PURE__ */ Qt(n);
|
|
1266
|
+
t.append(n), n = i;
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
var jn = null, Mn = !1, Nn = !1;
|
|
1270
|
+
function Pn(e) {
|
|
1271
|
+
Nn = e;
|
|
1272
|
+
}
|
|
1273
|
+
var K = null, Fn = !1;
|
|
1274
|
+
function q(e) {
|
|
1275
|
+
K = e;
|
|
1276
|
+
}
|
|
1277
|
+
var J = null;
|
|
1278
|
+
function In(e) {
|
|
1279
|
+
J = e;
|
|
1280
|
+
}
|
|
1281
|
+
var Ln = null;
|
|
1282
|
+
function Rn(e) {
|
|
1283
|
+
K !== null && (Ln ??= /* @__PURE__ */ new Set()).add(e);
|
|
1284
|
+
}
|
|
1285
|
+
var Y = null, X = 0, zn = null;
|
|
1286
|
+
function Bn(e) {
|
|
1287
|
+
zn = e;
|
|
1288
|
+
}
|
|
1289
|
+
var Vn = 1, Hn = 0, Un = Hn;
|
|
1290
|
+
function Wn(e) {
|
|
1291
|
+
Un = e;
|
|
1292
|
+
}
|
|
1293
|
+
function Gn() {
|
|
1294
|
+
return ++Vn;
|
|
1295
|
+
}
|
|
1296
|
+
function Kn(e) {
|
|
1297
|
+
var t = e.f;
|
|
1298
|
+
if (t & 2048) return !0;
|
|
1299
|
+
if (t & 2 && (e.f &= ~se), t & 4096) {
|
|
1300
|
+
for (var n = e.deps, r = n.length, i = 0; i < r; i++) {
|
|
1301
|
+
var a = n[i];
|
|
1302
|
+
if (Kn(a) && ht(a), a.wv > e.wv) return !0;
|
|
1303
|
+
}
|
|
1304
|
+
t & 512 && bt === null && R(e, S);
|
|
1305
|
+
}
|
|
1306
|
+
return !1;
|
|
1307
|
+
}
|
|
1308
|
+
function qn(e, t, n = !0) {
|
|
1309
|
+
var r = e.reactions;
|
|
1310
|
+
if (r !== null && !(Ln !== null && Ln.has(e))) for (var i = 0; i < r.length; i++) {
|
|
1311
|
+
var a = r[i];
|
|
1312
|
+
a.f & 2 ? qn(a, t, !1) : t === a && (n ? R(a, C) : a.f & 1024 && R(a, ne), Nt(a));
|
|
1313
|
+
}
|
|
1314
|
+
}
|
|
1315
|
+
function Jn(e) {
|
|
1316
|
+
var t = Y, n = X, r = zn, i = K, a = Ln, o = I, s = Fn, c = Un, l = e.f;
|
|
1317
|
+
Y = null, X = 0, zn = null, K = l & 96 ? null : e, Ln = null, ze(e.ctx), Fn = !1, Un = ++Hn, e.ac !== null && (et(() => {
|
|
1318
|
+
e.ac.abort(me);
|
|
1319
|
+
}), e.ac = null);
|
|
1320
|
+
try {
|
|
1321
|
+
e.f |= O;
|
|
1322
|
+
var u = e.fn, d = u();
|
|
1323
|
+
e.f |= re;
|
|
1324
|
+
var f = e.deps, p = B?.is_fork;
|
|
1325
|
+
if (Y !== null) {
|
|
1326
|
+
var m;
|
|
1327
|
+
if (p || Xn(e, X), f !== null && X > 0) for (f.length = X + Y.length, m = 0; m < Y.length; m++) f[X + m] = Y[m];
|
|
1328
|
+
else e.deps = f = Y;
|
|
1329
|
+
if (un() && e.f & 512) for (m = X; m < f.length; m++) (f[m].reactions ??= []).push(e);
|
|
1330
|
+
} else !p && f !== null && X < f.length && (Xn(e, X), f.length = X);
|
|
1331
|
+
if (He() && zn !== null && !Fn && f !== null && !(e.f & 6146)) for (m = 0; m < zn.length; m++) qn(zn[m], e);
|
|
1332
|
+
if (i !== null && i !== e) {
|
|
1333
|
+
if (Hn++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = Hn;
|
|
1334
|
+
if (t !== null) for (let e of t) e.rv = Hn;
|
|
1335
|
+
zn !== null && (r === null ? r = zn : r.push(...zn));
|
|
1336
|
+
}
|
|
1337
|
+
return e.f & 8388608 && (e.f ^= k), d;
|
|
1338
|
+
} catch (e) {
|
|
1339
|
+
return qe(e);
|
|
1340
|
+
} finally {
|
|
1341
|
+
e.f ^= O, Y = t, X = n, zn = r, K = i, Ln = a, ze(o), Fn = s, Un = c;
|
|
1342
|
+
}
|
|
1343
|
+
}
|
|
1344
|
+
function Yn(e, t) {
|
|
1345
|
+
let n = t.reactions;
|
|
1346
|
+
if (n !== null) {
|
|
1347
|
+
var r = u.call(n, e);
|
|
1348
|
+
if (r !== -1) {
|
|
1349
|
+
var i = n.length - 1;
|
|
1350
|
+
i === 0 ? n = t.reactions = null : (n[r] = n[i], n.pop());
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
if (n === null && t.f & 2 && (Y === null || !d.call(Y, t))) {
|
|
1354
|
+
var a = t;
|
|
1355
|
+
a.f & 512 && (a.f ^= 512, a.f &= ~se), a.v !== s && Ye(a), a.ac !== null && et(() => {
|
|
1356
|
+
a.ac.abort(me), a.ac = null, R(a, C);
|
|
1357
|
+
}), gt(a), Xn(a, 0);
|
|
1358
|
+
}
|
|
1359
|
+
}
|
|
1360
|
+
function Xn(e, t) {
|
|
1361
|
+
var n = e.deps;
|
|
1362
|
+
if (n !== null) for (var r = t; r < n.length; r++) Yn(e, n[r]);
|
|
1363
|
+
}
|
|
1364
|
+
function Zn(e) {
|
|
1365
|
+
var t = e.f;
|
|
1366
|
+
if (!(t & 16384)) {
|
|
1367
|
+
R(e, S);
|
|
1368
|
+
var n = J, r = Mn;
|
|
1369
|
+
J = e, Mn = !(t & 96);
|
|
1370
|
+
try {
|
|
1371
|
+
t & 16777232 ? Cn(e) : Sn(e), xn(e);
|
|
1372
|
+
var i = Jn(e);
|
|
1373
|
+
e.teardown = typeof i == "function" ? i : null, e.wv = Vn;
|
|
1374
|
+
} finally {
|
|
1375
|
+
Mn = r, J = n;
|
|
1376
|
+
}
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
function Z(e) {
|
|
1380
|
+
var t = !!(e.f & 2);
|
|
1381
|
+
if (jn?.add(e), K !== null && !Fn && !(J !== null && J.f & 16384) && (Ln === null || !Ln.has(e))) {
|
|
1382
|
+
var n = K.deps;
|
|
1383
|
+
if (K.f & 2097152) e.rv < Hn && (e.rv = Hn, Y === null && n !== null && n[X] === e ? X++ : Y === null ? Y = [e] : Y.push(e));
|
|
1384
|
+
else {
|
|
1385
|
+
K.deps ??= [], d.call(K.deps, e) || K.deps.push(e);
|
|
1386
|
+
var r = e.reactions;
|
|
1387
|
+
r === null ? e.reactions = [K] : d.call(r, K) || r.push(K);
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
if (Nn && Lt.has(e)) return Lt.get(e);
|
|
1391
|
+
if (t) {
|
|
1392
|
+
var i = e;
|
|
1393
|
+
if (Nn) {
|
|
1394
|
+
var a = i.v;
|
|
1395
|
+
return (!(i.f & 1024) && i.reactions !== null || $n(i)) && (a = mt(i)), Lt.set(i, a), a;
|
|
1396
|
+
}
|
|
1397
|
+
var o = !(i.f & 512) && !Fn && K !== null && (Mn || !!(K.f & 512)), s = (i.f & re) === 0;
|
|
1398
|
+
Kn(i) && (o && (i.f |= 512), ht(i)), o && !s && (_t(i), Qn(i));
|
|
1399
|
+
}
|
|
1400
|
+
if (bt?.has(e)) return bt.get(e);
|
|
1401
|
+
if (e.f & 8388608) throw e.v;
|
|
1402
|
+
return e.v;
|
|
1403
|
+
}
|
|
1404
|
+
function Qn(e) {
|
|
1405
|
+
if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (_t(t), Qn(t));
|
|
1406
|
+
}
|
|
1407
|
+
function $n(e) {
|
|
1408
|
+
if (e.v === s) return !0;
|
|
1409
|
+
if (e.deps === null) return !1;
|
|
1410
|
+
for (let t of e.deps) if (Lt.has(t) || t.f & 2 && $n(t)) return !0;
|
|
1411
|
+
return !1;
|
|
1412
|
+
}
|
|
1413
|
+
function er(e) {
|
|
1414
|
+
var t = Fn;
|
|
1415
|
+
try {
|
|
1416
|
+
return Fn = !0, e();
|
|
1417
|
+
} finally {
|
|
1418
|
+
Fn = t;
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1421
|
+
function tr(e) {
|
|
1422
|
+
if (!(typeof e != "object" || !e || e instanceof EventTarget)) {
|
|
1423
|
+
if (A in e) nr(e);
|
|
1424
|
+
else if (!Array.isArray(e)) for (let t in e) {
|
|
1425
|
+
let n = e[t];
|
|
1426
|
+
typeof n == "object" && n && A in n && nr(n);
|
|
1427
|
+
}
|
|
1428
|
+
}
|
|
1429
|
+
}
|
|
1430
|
+
function nr(e, t = /* @__PURE__ */ new Set()) {
|
|
1431
|
+
if (typeof e == "object" && e && !(e instanceof EventTarget) && !t.has(e)) {
|
|
1432
|
+
t.add(e), e instanceof Date && e.getTime();
|
|
1433
|
+
for (let n in e) try {
|
|
1434
|
+
nr(e[n], t);
|
|
1435
|
+
} catch {}
|
|
1436
|
+
let n = y(e);
|
|
1437
|
+
if (n !== Object.prototype && n !== Array.prototype && n !== Map.prototype && n !== Set.prototype && n !== Date.prototype) {
|
|
1438
|
+
let t = g(n);
|
|
1439
|
+
for (let n in t) {
|
|
1440
|
+
let r = t[n].get;
|
|
1441
|
+
if (r) try {
|
|
1442
|
+
r.call(e);
|
|
1443
|
+
} catch {}
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
}
|
|
1447
|
+
}
|
|
1448
|
+
var rr = Symbol("events"), ir = /* @__PURE__ */ new Set(), ar = /* @__PURE__ */ new Set();
|
|
1449
|
+
function or(e, t, n) {
|
|
1450
|
+
(t[rr] ??= {})[e] = n;
|
|
1451
|
+
}
|
|
1452
|
+
function sr(e) {
|
|
1453
|
+
for (var t = 0; t < e.length; t++) ir.add(e[t]);
|
|
1454
|
+
for (var n of ar) n(e);
|
|
1455
|
+
}
|
|
1456
|
+
var cr = null;
|
|
1457
|
+
function lr(e) {
|
|
1458
|
+
var t = this, n = t.ownerDocument, r = e.type, i = e.composedPath?.() || [], a = i[0] || e.target;
|
|
1459
|
+
cr = e;
|
|
1460
|
+
var o = 0, s = cr === e && e[rr];
|
|
1461
|
+
if (s) {
|
|
1462
|
+
var c = i.indexOf(s);
|
|
1463
|
+
if (c !== -1 && (t === document || t === window)) {
|
|
1464
|
+
e[rr] = t;
|
|
1465
|
+
return;
|
|
1466
|
+
}
|
|
1467
|
+
var l = i.indexOf(t);
|
|
1468
|
+
if (l === -1) return;
|
|
1469
|
+
c <= l && (o = c);
|
|
1470
|
+
}
|
|
1471
|
+
if (a = i[o] || e.target, a !== t) {
|
|
1472
|
+
m(e, "currentTarget", {
|
|
1473
|
+
configurable: !0,
|
|
1474
|
+
get() {
|
|
1475
|
+
return a || n;
|
|
1476
|
+
}
|
|
1477
|
+
});
|
|
1478
|
+
var u = K, d = J;
|
|
1479
|
+
q(null), In(null);
|
|
1480
|
+
try {
|
|
1481
|
+
for (var f, p = []; a !== null && a !== t;) {
|
|
1482
|
+
try {
|
|
1483
|
+
var h = a[rr]?.[r];
|
|
1484
|
+
h != null && (!a.disabled || e.target === a) && h.call(a, e);
|
|
1485
|
+
} catch (e) {
|
|
1486
|
+
f ? p.push(e) : f = e;
|
|
1487
|
+
}
|
|
1488
|
+
if (e.cancelBubble) break;
|
|
1489
|
+
o++, a = o < i.length ? i[o] : null;
|
|
1490
|
+
}
|
|
1491
|
+
if (f) {
|
|
1492
|
+
for (let e of p) queueMicrotask(() => {
|
|
1493
|
+
throw e;
|
|
1494
|
+
});
|
|
1495
|
+
throw f;
|
|
1496
|
+
}
|
|
1497
|
+
} finally {
|
|
1498
|
+
e[rr] = t, delete e.currentTarget, q(u), In(d);
|
|
1499
|
+
}
|
|
1500
|
+
}
|
|
1501
|
+
}
|
|
1502
|
+
var ur = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
|
|
1503
|
+
function dr(e) {
|
|
1504
|
+
return ur?.createHTML(e) ?? e;
|
|
1505
|
+
}
|
|
1506
|
+
function fr(e) {
|
|
1507
|
+
var t = an("template");
|
|
1508
|
+
return t.innerHTML = dr(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1509
|
+
}
|
|
1510
|
+
function pr(e, t) {
|
|
1511
|
+
var n = J;
|
|
1512
|
+
n.nodes === null && (n.nodes = {
|
|
1513
|
+
start: e,
|
|
1514
|
+
end: t,
|
|
1515
|
+
a: null,
|
|
1516
|
+
t: null
|
|
1517
|
+
});
|
|
1518
|
+
}
|
|
1519
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
1520
|
+
function mr(e, t) {
|
|
1521
|
+
var n = !!(t & 1), r = !!(t & 2), i, a = !e.startsWith("<!>");
|
|
1522
|
+
return () => {
|
|
1523
|
+
if (M) return pr(P, null), P;
|
|
1524
|
+
i === void 0 && (i = fr(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ Zt(i)));
|
|
1525
|
+
var t = r || qt ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1526
|
+
if (n) {
|
|
1527
|
+
var o = /* @__PURE__ */ Zt(t), s = t.lastChild;
|
|
1528
|
+
pr(o, s);
|
|
1529
|
+
} else pr(t, t);
|
|
1530
|
+
return t;
|
|
1531
|
+
};
|
|
1532
|
+
}
|
|
1533
|
+
function hr() {
|
|
1534
|
+
if (M) return pr(P, null), P;
|
|
1535
|
+
var e = document.createDocumentFragment(), t = document.createComment(""), n = U();
|
|
1536
|
+
return e.append(t, n), pr(t, n), e;
|
|
1537
|
+
}
|
|
1538
|
+
function Q(e, t) {
|
|
1539
|
+
if (M) {
|
|
1540
|
+
var n = J;
|
|
1541
|
+
(!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = P), je();
|
|
1542
|
+
return;
|
|
1543
|
+
}
|
|
1544
|
+
e !== null && e.before(t);
|
|
1545
|
+
}
|
|
1546
|
+
[.../* @__PURE__ */ "allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback".split(".")];
|
|
1547
|
+
var gr = ["touchstart", "touchmove"];
|
|
1548
|
+
function _r(e) {
|
|
1549
|
+
return gr.includes(e);
|
|
1550
|
+
}
|
|
1551
|
+
function vr(e, t) {
|
|
1552
|
+
var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1553
|
+
n !== (e[pe] ??= e.nodeValue) && (e[pe] = n, e.nodeValue = `${n}`);
|
|
1554
|
+
}
|
|
1555
|
+
function yr(e, t) {
|
|
1556
|
+
return Sr(e, t);
|
|
1557
|
+
}
|
|
1558
|
+
function br(e, t) {
|
|
1559
|
+
Xt(), t.intro = t.intro ?? !1;
|
|
1560
|
+
let n = t.target, r = M, i = P;
|
|
1561
|
+
try {
|
|
1562
|
+
for (var a = /* @__PURE__ */ Zt(n); a && (a.nodeType !== 8 || a.data !== "[");) a = /* @__PURE__ */ Qt(a);
|
|
1563
|
+
if (!a) throw o;
|
|
1564
|
+
N(!0), F(a);
|
|
1565
|
+
let r = Sr(e, {
|
|
1566
|
+
...t,
|
|
1567
|
+
anchor: a
|
|
1568
|
+
});
|
|
1569
|
+
return N(!1), r;
|
|
1570
|
+
} catch (r) {
|
|
1571
|
+
if (r instanceof Error && r.message.split("\n").some((e) => e.startsWith("https://svelte.dev/e/"))) throw r;
|
|
1572
|
+
return r !== o && console.warn("Failed to hydrate: ", r), t.recover === !1 && Se(), Xt(), nn(n), N(!1), yr(e, t);
|
|
1573
|
+
} finally {
|
|
1574
|
+
N(r), F(i);
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1577
|
+
var xr = /* @__PURE__ */ new Map();
|
|
1578
|
+
function Sr(e, { target: t, anchor: n, props: r = {}, events: i, context: a, intro: s = !0, transformError: c }) {
|
|
1579
|
+
Xt();
|
|
1580
|
+
var l = void 0, u = hn(() => {
|
|
1581
|
+
var s = n ?? t.appendChild(U());
|
|
1582
|
+
rt(s, { pending: () => {} }, (t) => {
|
|
1583
|
+
Be({});
|
|
1584
|
+
var n = I;
|
|
1585
|
+
if (a && (n.c = a), i && (r.$$events = i), M && pr(t, null), l = e(t, r) || {}, M && (J.nodes.end = P, P === null || P.nodeType !== 8 || P.data !== "]")) throw ke(), o;
|
|
1586
|
+
Ve();
|
|
1587
|
+
}, c);
|
|
1588
|
+
var u = /* @__PURE__ */ new Set(), d = (e) => {
|
|
1589
|
+
for (var n = 0; n < e.length; n++) {
|
|
1590
|
+
var r = e[n];
|
|
1591
|
+
if (!u.has(r)) {
|
|
1592
|
+
u.add(r);
|
|
1593
|
+
var i = _r(r);
|
|
1594
|
+
for (let e of [t, document]) {
|
|
1595
|
+
var a = xr.get(e);
|
|
1596
|
+
a === void 0 && (a = /* @__PURE__ */ new Map(), xr.set(e, a));
|
|
1597
|
+
var o = a.get(r);
|
|
1598
|
+
o === void 0 ? (e.addEventListener(r, lr, { passive: i }), a.set(r, 1)) : a.set(r, o + 1);
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
}
|
|
1602
|
+
};
|
|
1603
|
+
return d(f(ir)), ar.add(d), () => {
|
|
1604
|
+
for (var e of u) for (let n of [t, document]) {
|
|
1605
|
+
var r = xr.get(n), i = r.get(e);
|
|
1606
|
+
--i == 0 ? (n.removeEventListener(e, lr), r.delete(e), r.size === 0 && xr.delete(n)) : r.set(e, i);
|
|
1607
|
+
}
|
|
1608
|
+
ar.delete(d), s !== n && s.parentNode?.removeChild(s);
|
|
1609
|
+
};
|
|
1610
|
+
});
|
|
1611
|
+
return Cr.set(l, u), l;
|
|
1612
|
+
}
|
|
1613
|
+
var Cr = /* @__PURE__ */ new WeakMap();
|
|
1614
|
+
function wr(e, t) {
|
|
1615
|
+
let n = Cr.get(e);
|
|
1616
|
+
return n ? (Cr.delete(e), n(t)) : Promise.resolve();
|
|
1617
|
+
}
|
|
1618
|
+
var Tr = class {
|
|
1619
|
+
anchor;
|
|
1620
|
+
#e = /* @__PURE__ */ new Map();
|
|
1621
|
+
#t = /* @__PURE__ */ new Map();
|
|
1622
|
+
#n = /* @__PURE__ */ new Map();
|
|
1623
|
+
#r = /* @__PURE__ */ new Set();
|
|
1624
|
+
#i = !0;
|
|
1625
|
+
constructor(e, t = !0) {
|
|
1626
|
+
this.anchor = e, this.#i = t;
|
|
1627
|
+
}
|
|
1628
|
+
#a = (e) => {
|
|
1629
|
+
if (this.#e.has(e)) {
|
|
1630
|
+
var t = this.#e.get(e), n = this.#t.get(t);
|
|
1631
|
+
if (n) On(n), this.#r.delete(t);
|
|
1632
|
+
else {
|
|
1633
|
+
var r = this.#n.get(t);
|
|
1634
|
+
r && (On(r.effect), this.#t.set(t, r.effect), this.#n.delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);
|
|
1635
|
+
}
|
|
1636
|
+
for (let [t, n] of this.#e) {
|
|
1637
|
+
if (this.#e.delete(t), t === e) break;
|
|
1638
|
+
let r = this.#n.get(n);
|
|
1639
|
+
r && (G(r.effect), this.#n.delete(n));
|
|
1640
|
+
}
|
|
1641
|
+
for (let [e, r] of this.#t) {
|
|
1642
|
+
if (e === t || this.#r.has(e)) continue;
|
|
1643
|
+
let i = () => {
|
|
1644
|
+
if (Array.from(this.#e.values()).includes(e)) {
|
|
1645
|
+
var t = document.createDocumentFragment();
|
|
1646
|
+
An(r, t), t.append(U()), this.#n.set(e, {
|
|
1647
|
+
effect: r,
|
|
1648
|
+
fragment: t
|
|
1649
|
+
});
|
|
1650
|
+
} else G(r);
|
|
1651
|
+
this.#r.delete(e), this.#t.delete(e);
|
|
1652
|
+
};
|
|
1653
|
+
this.#i || !n ? (this.#r.add(e), En(r, i, !1)) : i();
|
|
1654
|
+
}
|
|
1655
|
+
}
|
|
1656
|
+
};
|
|
1657
|
+
#o = (e) => {
|
|
1658
|
+
this.#e.delete(e);
|
|
1659
|
+
let t = Array.from(this.#e.values());
|
|
1660
|
+
for (let [e, n] of this.#n) t.includes(e) || (G(n.effect), this.#n.delete(e));
|
|
1661
|
+
};
|
|
1662
|
+
ensure(e, t) {
|
|
1663
|
+
var n = B, r = rn();
|
|
1664
|
+
if (t && !this.#t.has(e) && !this.#n.has(e)) {
|
|
1665
|
+
if (r) {
|
|
1666
|
+
var i = document.createDocumentFragment(), a = U();
|
|
1667
|
+
i.append(a), this.#n.set(e, {
|
|
1668
|
+
effect: W(() => t(a)),
|
|
1669
|
+
fragment: i
|
|
1670
|
+
});
|
|
1671
|
+
} else this.#t.set(e, W(() => t(this.anchor)));
|
|
1672
|
+
}
|
|
1673
|
+
if (this.#e.set(n, e), r) {
|
|
1674
|
+
for (let [t, r] of this.#t) t === e ? n.unskip_effect(r) : n.skip_effect(r);
|
|
1675
|
+
for (let [t, r] of this.#n) t === e ? n.unskip_effect(r.effect) : n.skip_effect(r.effect);
|
|
1676
|
+
n.oncommit(this.#a), n.ondiscard(this.#o);
|
|
1677
|
+
} else M && (this.anchor = P), this.#a(n);
|
|
1678
|
+
}
|
|
1679
|
+
};
|
|
1680
|
+
function Er(e, t, n = !1) {
|
|
1681
|
+
var r;
|
|
1682
|
+
M && (r = P, je());
|
|
1683
|
+
var i = new Tr(e), a = n ? E : 0;
|
|
1684
|
+
function o(e, t) {
|
|
1685
|
+
if (M) {
|
|
1686
|
+
var n = Fe(r);
|
|
1687
|
+
if (e !== parseInt(n.substring(1))) {
|
|
1688
|
+
var a = Pe();
|
|
1689
|
+
F(a), i.anchor = a, N(!1), i.ensure(e, t), N(!0);
|
|
1690
|
+
return;
|
|
1691
|
+
}
|
|
1692
|
+
}
|
|
1693
|
+
i.ensure(e, t);
|
|
1694
|
+
}
|
|
1695
|
+
bn(() => {
|
|
1696
|
+
var e = !1;
|
|
1697
|
+
t((t, n = 0) => {
|
|
1698
|
+
e = !0, o(n, t);
|
|
1699
|
+
}), e || o(-1, null);
|
|
1700
|
+
}, a);
|
|
1701
|
+
}
|
|
1702
|
+
function Dr(e, t, n) {
|
|
1703
|
+
for (var r = [], i = t.length, a, o = t.length, s = 0; s < i; s++) {
|
|
1704
|
+
let n = t[s];
|
|
1705
|
+
En(n, () => {
|
|
1706
|
+
if (a) {
|
|
1707
|
+
if (a.pending.delete(n), a.done.add(n), a.pending.size === 0) {
|
|
1708
|
+
var t = e.outrogroups;
|
|
1709
|
+
Or(e, f(a.done)), t.delete(a), t.size === 0 && (e.outrogroups = null);
|
|
1710
|
+
}
|
|
1711
|
+
} else --o;
|
|
1712
|
+
}, !1);
|
|
1713
|
+
}
|
|
1714
|
+
if (o === 0) {
|
|
1715
|
+
var c = r.length === 0 && n !== null;
|
|
1716
|
+
if (c) {
|
|
1717
|
+
var l = n, u = l.parentNode;
|
|
1718
|
+
nn(u), u.append(l), e.items.clear();
|
|
1719
|
+
}
|
|
1720
|
+
Or(e, t, !c);
|
|
1721
|
+
} else a = {
|
|
1722
|
+
pending: new Set(t),
|
|
1723
|
+
done: /* @__PURE__ */ new Set()
|
|
1724
|
+
}, (e.outrogroups ??= /* @__PURE__ */ new Set()).add(a);
|
|
1725
|
+
}
|
|
1726
|
+
function Or(e, t, n = !0) {
|
|
1727
|
+
var r;
|
|
1728
|
+
if (e.pending.size > 0) {
|
|
1729
|
+
r = /* @__PURE__ */ new Set();
|
|
1730
|
+
for (let t of e.pending.values()) for (let n of t) r.add(e.items.get(n).e);
|
|
1731
|
+
}
|
|
1732
|
+
for (var i = 0; i < t.length; i++) {
|
|
1733
|
+
var a = t[i];
|
|
1734
|
+
r?.has(a) ? (a.f |= oe, An(a, document.createDocumentFragment())) : G(t[i], n);
|
|
1735
|
+
}
|
|
1736
|
+
}
|
|
1737
|
+
var kr;
|
|
1738
|
+
function Ar(e, t, n, r, i, a = null) {
|
|
1739
|
+
var o = e, s = /* @__PURE__ */ new Map();
|
|
1740
|
+
if (t & 4) {
|
|
1741
|
+
var c = e;
|
|
1742
|
+
o = M ? F(/* @__PURE__ */ Zt(c)) : c.appendChild(U());
|
|
1743
|
+
}
|
|
1744
|
+
M && je();
|
|
1745
|
+
var u = null, d = /* @__PURE__ */ ft(() => {
|
|
1746
|
+
var e = n();
|
|
1747
|
+
return l(e) ? e : e == null ? [] : f(e);
|
|
1748
|
+
}), p, m = /* @__PURE__ */ new Map(), h = !0;
|
|
1749
|
+
function g(e) {
|
|
1750
|
+
v.effect.f & 16384 || (v.pending.delete(e), v.fallback = u, Mr(v, p, o, t, r), u !== null && (p.length === 0 ? u.f & 33554432 ? (u.f ^= oe, Pr(u, null, o)) : On(u) : En(u, () => {
|
|
1751
|
+
u = null;
|
|
1752
|
+
})));
|
|
1753
|
+
}
|
|
1754
|
+
function _(e) {
|
|
1755
|
+
v.pending.delete(e);
|
|
1756
|
+
}
|
|
1757
|
+
var v = {
|
|
1758
|
+
effect: bn(() => {
|
|
1759
|
+
p = Z(d);
|
|
1760
|
+
var e = p.length;
|
|
1761
|
+
let c = !1;
|
|
1762
|
+
M && Fe(o) === "[!" != (e === 0) && (o = Pe(), F(o), N(!1), c = !0);
|
|
1763
|
+
for (var l = /* @__PURE__ */ new Set(), f = B, v = rn(), y = 0; y < e; y += 1) {
|
|
1764
|
+
M && P.nodeType === 8 && P.data === "]" && (o = P, c = !0, N(!1));
|
|
1765
|
+
var ee = p[y], b = r(ee, y), x = h ? null : s.get(b);
|
|
1766
|
+
x ? (x.v && Vt(x.v, ee), x.i && Vt(x.i, y), v && f.unskip_effect(x.e)) : (x = Nr(s, h ? o : kr ??= U(), ee, b, y, i, t, n), h || (x.e.f |= oe), s.set(b, x)), l.add(b);
|
|
1767
|
+
}
|
|
1768
|
+
if (e === 0 && a && !u && (h ? u = W(() => a(o)) : (u = W(() => a(kr ??= U())), u.f |= oe)), e > l.size && _e("", "", ""), M && e > 0 && F(Pe()), !h) {
|
|
1769
|
+
if (m.set(f, l), v) {
|
|
1770
|
+
for (let [e, t] of s) l.has(e) || f.skip_effect(t.e);
|
|
1771
|
+
f.oncommit(g), f.ondiscard(_);
|
|
1772
|
+
} else g(f);
|
|
1773
|
+
}
|
|
1774
|
+
c && N(!0), Z(d);
|
|
1775
|
+
}),
|
|
1776
|
+
flags: t,
|
|
1777
|
+
items: s,
|
|
1778
|
+
pending: m,
|
|
1779
|
+
outrogroups: null,
|
|
1780
|
+
fallback: u
|
|
1781
|
+
};
|
|
1782
|
+
h = !1, M && (o = P);
|
|
1783
|
+
}
|
|
1784
|
+
function jr(e) {
|
|
1785
|
+
for (; e !== null && !(e.f & 32);) e = e.next;
|
|
1786
|
+
return e;
|
|
1787
|
+
}
|
|
1788
|
+
function Mr(e, t, n, r, i) {
|
|
1789
|
+
var a = !!(r & 8), o = t.length, s = e.items, c = jr(e.effect.first), l, u = null, d, p = [], m = [], h, g, _, v;
|
|
1790
|
+
if (a) for (v = 0; v < o; v += 1) h = t[v], g = i(h, v), _ = s.get(g).e, _.f & 33554432 || (_.nodes?.a?.measure(), (d ??= /* @__PURE__ */ new Set()).add(_));
|
|
1791
|
+
for (v = 0; v < o; v += 1) {
|
|
1792
|
+
if (h = t[v], g = i(h, v), _ = s.get(g).e, e.outrogroups !== null) for (let t of e.outrogroups) t.pending.delete(_), t.done.delete(_);
|
|
1793
|
+
if (_.f & 8192 && (On(_), a && (_.nodes?.a?.unfix(), (d ??= /* @__PURE__ */ new Set()).delete(_))), _.f & 33554432) {
|
|
1794
|
+
if (_.f ^= oe, _ === c) Pr(_, null, n);
|
|
1795
|
+
else {
|
|
1796
|
+
var y = u ? u.next : c;
|
|
1797
|
+
_ === e.effect.last && (e.effect.last = _.prev), _.prev && (_.prev.next = _.next), _.next && (_.next.prev = _.prev), Fr(e, u, _), Fr(e, _, y), Pr(_, y, n), u = _, p = [], m = [], c = jr(u.next);
|
|
1798
|
+
continue;
|
|
1799
|
+
}
|
|
1800
|
+
}
|
|
1801
|
+
if (_ !== c) {
|
|
1802
|
+
if (l !== void 0 && l.has(_)) {
|
|
1803
|
+
if (p.length < m.length) {
|
|
1804
|
+
var ee = m[0], b;
|
|
1805
|
+
u = ee.prev;
|
|
1806
|
+
var x = p[0], te = p[p.length - 1];
|
|
1807
|
+
for (b = 0; b < p.length; b += 1) Pr(p[b], ee, n);
|
|
1808
|
+
for (b = 0; b < m.length; b += 1) l.delete(m[b]);
|
|
1809
|
+
Fr(e, x.prev, te.next), Fr(e, u, x), Fr(e, te, ee), c = ee, u = te, --v, p = [], m = [];
|
|
1810
|
+
} else l.delete(_), Pr(_, c, n), Fr(e, _.prev, _.next), Fr(e, _, u === null ? e.effect.first : u.next), Fr(e, u, _), u = _;
|
|
1811
|
+
continue;
|
|
1812
|
+
}
|
|
1813
|
+
for (p = [], m = []; c !== null && c !== _;) (l ??= /* @__PURE__ */ new Set()).add(c), m.push(c), c = jr(c.next);
|
|
1814
|
+
if (c === null) continue;
|
|
1815
|
+
}
|
|
1816
|
+
_.f & 33554432 || p.push(_), u = _, c = jr(_.next);
|
|
1817
|
+
}
|
|
1818
|
+
if (e.outrogroups !== null) {
|
|
1819
|
+
for (let t of e.outrogroups) t.pending.size === 0 && (Or(e, f(t.done)), e.outrogroups?.delete(t));
|
|
1820
|
+
e.outrogroups.size === 0 && (e.outrogroups = null);
|
|
1821
|
+
}
|
|
1822
|
+
if (c !== null || l !== void 0) {
|
|
1823
|
+
var S = [];
|
|
1824
|
+
if (l !== void 0) for (_ of l) _.f & 8192 || S.push(_);
|
|
1825
|
+
for (; c !== null;) !(c.f & 8192) && c !== e.fallback && S.push(c), c = jr(c.next);
|
|
1826
|
+
var C = S.length;
|
|
1827
|
+
if (C > 0) {
|
|
1828
|
+
var ne = r & 4 && o === 0 ? n : null;
|
|
1829
|
+
if (a) {
|
|
1830
|
+
for (v = 0; v < C; v += 1) S[v].nodes?.a?.measure();
|
|
1831
|
+
for (v = 0; v < C; v += 1) S[v].nodes?.a?.fix();
|
|
1832
|
+
}
|
|
1833
|
+
Dr(e, S, ne);
|
|
1834
|
+
}
|
|
1835
|
+
}
|
|
1836
|
+
a && Ge(() => {
|
|
1837
|
+
if (d !== void 0) for (_ of d) _.nodes?.a?.apply();
|
|
1838
|
+
});
|
|
1839
|
+
}
|
|
1840
|
+
function Nr(e, t, n, r, i, a, o, s) {
|
|
1841
|
+
var c = o & 1 ? o & 16 ? zt(n) : /* @__PURE__ */ Bt(n, !1, !1) : null, l = o & 2 ? zt(i) : null;
|
|
1842
|
+
return {
|
|
1843
|
+
v: c,
|
|
1844
|
+
i: l,
|
|
1845
|
+
e: W(() => (a(t, c ?? n, l ?? i, s), () => {
|
|
1846
|
+
e.delete(r);
|
|
1847
|
+
}))
|
|
1848
|
+
};
|
|
1849
|
+
}
|
|
1850
|
+
function Pr(e, t, n) {
|
|
1851
|
+
if (e.nodes) for (var r = e.nodes.start, i = e.nodes.end, a = t && !(t.f & 33554432) ? t.nodes.start : n; r !== null;) {
|
|
1852
|
+
var o = /* @__PURE__ */ Qt(r);
|
|
1853
|
+
if (a.before(r), r === i) return;
|
|
1854
|
+
r = o;
|
|
1855
|
+
}
|
|
1856
|
+
}
|
|
1857
|
+
function Fr(e, t, n) {
|
|
1858
|
+
t === null ? e.effect.first = n : t.next = n, n === null ? e.effect.last = t : n.prev = t;
|
|
1859
|
+
}
|
|
1860
|
+
function Ir(e, t) {
|
|
1861
|
+
gn(() => {
|
|
1862
|
+
var n = e.getRootNode(), r = n.host ? n : n.head ?? n.ownerDocument.head;
|
|
1863
|
+
if (!r.querySelector("#" + t.hash)) {
|
|
1864
|
+
let e = an("style");
|
|
1865
|
+
e.id = t.hash, e.textContent = t.code, r.appendChild(e);
|
|
1866
|
+
}
|
|
1867
|
+
});
|
|
1868
|
+
}
|
|
1869
|
+
function Lr(e, t, n) {
|
|
1870
|
+
gn(() => {
|
|
1871
|
+
var r = er(() => t(e, n?.()) || {});
|
|
1872
|
+
if (n && r?.update) {
|
|
1873
|
+
var i = !1, a = {};
|
|
1874
|
+
vn(() => {
|
|
1875
|
+
var e = n();
|
|
1876
|
+
tr(e), i && Le(a, e) && (a = e, r.update(e));
|
|
1877
|
+
}), i = !0;
|
|
1878
|
+
}
|
|
1879
|
+
if (r?.destroy) return () => r.destroy();
|
|
1880
|
+
});
|
|
1881
|
+
}
|
|
1882
|
+
var Rr = [..." \n\r\f\xA0\v"];
|
|
1883
|
+
function zr(e, t, n) {
|
|
1884
|
+
var r = e == null ? "" : "" + e;
|
|
1885
|
+
if (t && (r = r ? r + " " + t : t), n) {
|
|
1886
|
+
for (var i of Object.keys(n)) if (n[i]) r = r ? r + " " + i : i;
|
|
1887
|
+
else if (r.length) for (var a = i.length, o = 0; (o = r.indexOf(i, o)) >= 0;) {
|
|
1888
|
+
var s = o + a;
|
|
1889
|
+
(o === 0 || Rr.includes(r[o - 1])) && (s === r.length || Rr.includes(r[s])) ? r = (o === 0 ? "" : r.substring(0, o)) + r.substring(s + 1) : o = s;
|
|
1890
|
+
}
|
|
1891
|
+
}
|
|
1892
|
+
return r === "" ? null : r;
|
|
1893
|
+
}
|
|
1894
|
+
function Br(e, t = !1) {
|
|
1895
|
+
var n = t ? " !important;" : ";", r = "";
|
|
1896
|
+
for (var i of Object.keys(e)) {
|
|
1897
|
+
var a = e[i];
|
|
1898
|
+
a != null && a !== "" && (r += " " + i + ": " + a + n);
|
|
1899
|
+
}
|
|
1900
|
+
return r;
|
|
1901
|
+
}
|
|
1902
|
+
function Vr(e) {
|
|
1903
|
+
return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
|
|
1904
|
+
}
|
|
1905
|
+
function Hr(e, t) {
|
|
1906
|
+
if (t) {
|
|
1907
|
+
var n = "", r, i;
|
|
1908
|
+
if (Array.isArray(t) ? (r = t[0], i = t[1]) : r = t, e) {
|
|
1909
|
+
e = String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim();
|
|
1910
|
+
var a = !1, o = 0, s = !1, c = [];
|
|
1911
|
+
r && c.push(...Object.keys(r).map(Vr)), i && c.push(...Object.keys(i).map(Vr));
|
|
1912
|
+
var l = 0, u = -1;
|
|
1913
|
+
let t = e.length;
|
|
1914
|
+
for (var d = 0; d < t; d++) {
|
|
1915
|
+
var f = e[d];
|
|
1916
|
+
if (s ? f === "/" && e[d - 1] === "*" && (s = !1) : a ? a === f && (a = !1) : f === "/" && e[d + 1] === "*" ? s = !0 : f === "\"" || f === "'" ? a = f : f === "(" ? o++ : f === ")" && o--, !s && a === !1 && o === 0) {
|
|
1917
|
+
if (f === ":" && u === -1) u = d;
|
|
1918
|
+
else if (f === ";" || d === t - 1) {
|
|
1919
|
+
if (u !== -1) {
|
|
1920
|
+
var p = Vr(e.substring(l, u).trim());
|
|
1921
|
+
if (!c.includes(p)) {
|
|
1922
|
+
f !== ";" && d++;
|
|
1923
|
+
var m = e.substring(l, d).trim();
|
|
1924
|
+
n += " " + m + ";";
|
|
1925
|
+
}
|
|
1926
|
+
}
|
|
1927
|
+
l = d + 1, u = -1;
|
|
1928
|
+
}
|
|
1929
|
+
}
|
|
1930
|
+
}
|
|
1931
|
+
}
|
|
1932
|
+
return r && (n += Br(r)), i && (n += Br(i, !0)), n = n.trim(), n === "" ? null : n;
|
|
1933
|
+
}
|
|
1934
|
+
return e == null ? null : String(e);
|
|
1935
|
+
}
|
|
1936
|
+
function Ur(e, t, n, r, i, a) {
|
|
1937
|
+
var o = e[de];
|
|
1938
|
+
if (M || o !== n || o === void 0) {
|
|
1939
|
+
var s = zr(n, r, a);
|
|
1940
|
+
(!M || s !== e.getAttribute("class")) && (s == null ? e.removeAttribute("class") : t ? e.className = s : e.setAttribute("class", s)), e[de] = n;
|
|
1941
|
+
} else if (a && i !== a) for (var c in a) {
|
|
1942
|
+
var l = !!a[c];
|
|
1943
|
+
(i == null || l !== !!i[c]) && e.classList.toggle(c, l);
|
|
1944
|
+
}
|
|
1945
|
+
return a;
|
|
1946
|
+
}
|
|
1947
|
+
function Wr(e, t = {}, n, r) {
|
|
1948
|
+
for (var i in n) {
|
|
1949
|
+
var a = n[i];
|
|
1950
|
+
t[i] !== a && (n[i] == null ? e.style.removeProperty(i) : e.style.setProperty(i, a, r));
|
|
1951
|
+
}
|
|
1952
|
+
}
|
|
1953
|
+
function Gr(e, t, n, r) {
|
|
1954
|
+
var i = e[fe];
|
|
1955
|
+
if (M || i !== t) {
|
|
1956
|
+
var a = Hr(t, r);
|
|
1957
|
+
(!M || a !== e.getAttribute("style")) && (a == null ? e.removeAttribute("style") : e.style.cssText = a), e[fe] = t;
|
|
1958
|
+
} else r && (Array.isArray(r) ? (Wr(e, n?.[0], r[0]), Wr(e, n?.[1], r[1], "important")) : Wr(e, n, r));
|
|
1959
|
+
return r;
|
|
1960
|
+
}
|
|
1961
|
+
var Kr = Symbol("is custom element"), qr = Symbol("is html"), Jr = he ? "link" : "LINK";
|
|
1962
|
+
function Yr(e, t, n, r) {
|
|
1963
|
+
var i = Zr(e);
|
|
1964
|
+
M && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Jr) || i[t] !== (i[t] = n) && (t === "loading" && (e[le] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && $r(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
|
|
1965
|
+
}
|
|
1966
|
+
function Xr(e, t, n) {
|
|
1967
|
+
var r = K, i = J;
|
|
1968
|
+
let a = M;
|
|
1969
|
+
M && N(!1), q(null), In(null);
|
|
1970
|
+
try {
|
|
1971
|
+
t !== "style" && (Qr.has(e.getAttribute("is") || e.nodeName) || !customElements || customElements.get(e.getAttribute("is") || e.nodeName.toLowerCase()) ? $r(e).includes(t) : n && typeof n == "object") ? e[t] = n : Yr(e, t, n == null ? n : String(n));
|
|
1972
|
+
} finally {
|
|
1973
|
+
q(r), In(i), a && N(!0);
|
|
1974
|
+
}
|
|
1975
|
+
}
|
|
1976
|
+
function Zr(e) {
|
|
1977
|
+
return e[ue] ??= {
|
|
1978
|
+
[Kr]: e.nodeName.includes("-"),
|
|
1979
|
+
[qr]: e.namespaceURI === c
|
|
1980
|
+
};
|
|
1981
|
+
}
|
|
1982
|
+
var Qr = /* @__PURE__ */ new Map();
|
|
1983
|
+
function $r(e) {
|
|
1984
|
+
var t = e.getAttribute("is") || e.nodeName, n = Qr.get(t);
|
|
1985
|
+
if (n) return n;
|
|
1986
|
+
Qr.set(t, n = []);
|
|
1987
|
+
for (var r, i = e, a = Element.prototype; a !== i;) {
|
|
1988
|
+
for (var o in r = g(i), r) r[o].set && o !== "innerHTML" && o !== "textContent" && o !== "innerText" && n.push(o);
|
|
1989
|
+
i = y(i);
|
|
1990
|
+
}
|
|
1991
|
+
return n;
|
|
1992
|
+
}
|
|
1993
|
+
function ei(e, t) {
|
|
1994
|
+
return e === t || e?.[A] === t;
|
|
1995
|
+
}
|
|
1996
|
+
function ti(e = {}, t, n, r) {
|
|
1997
|
+
var i = I.r, a = J;
|
|
1998
|
+
return gn(() => {
|
|
1999
|
+
var o, s;
|
|
2000
|
+
return vn(() => {
|
|
2001
|
+
o = s, s = r?.() || [], er(() => {
|
|
2002
|
+
ei(n(...s), e) || (t(e, ...s), o && ei(n(...o), e) && t(null, ...o));
|
|
2003
|
+
});
|
|
2004
|
+
}), () => {
|
|
2005
|
+
let r = a;
|
|
2006
|
+
for (; r !== i && r.parent !== null && r.parent.f & 33554432;) r = r.parent;
|
|
2007
|
+
let o = () => {
|
|
2008
|
+
s && ei(n(...s), e) && t(null, ...s);
|
|
2009
|
+
}, c = r.teardown;
|
|
2010
|
+
r.teardown = () => {
|
|
2011
|
+
o(), c?.();
|
|
2012
|
+
};
|
|
2013
|
+
};
|
|
2014
|
+
}), e;
|
|
2015
|
+
}
|
|
2016
|
+
function ni(e, t, n, r) {
|
|
2017
|
+
var i = !0, a = !!(n & 8), o = !!(n & 16), s = r, c = !0, l = void 0, u = () => o && i ? (l ??= /* @__PURE__ */ lt(r), Z(l)) : (c && (c = !1, s = o ? er(r) : r), s);
|
|
2018
|
+
let d;
|
|
2019
|
+
if (a) {
|
|
2020
|
+
var f = A in e || j in e;
|
|
2021
|
+
d = h(e, t)?.set ?? (f && t in e ? (n) => e[t] = n : void 0);
|
|
2022
|
+
}
|
|
2023
|
+
var p, m = !1;
|
|
2024
|
+
a ? [p, m] = $e(() => e[t]) : p = e[t], p === void 0 && r !== void 0 && (p = u(), d && (i && Ce(t), d(p)));
|
|
2025
|
+
var g = i ? () => {
|
|
2026
|
+
var n = e[t];
|
|
2027
|
+
return n === void 0 ? u() : (c = !0, n);
|
|
2028
|
+
} : () => {
|
|
2029
|
+
var n = e[t];
|
|
2030
|
+
return n !== void 0 && (s = void 0), n === void 0 ? s : n;
|
|
2031
|
+
};
|
|
2032
|
+
if (i && !(n & 4)) return g;
|
|
2033
|
+
if (d) {
|
|
2034
|
+
var _ = e.$$legacy;
|
|
2035
|
+
return (function(e, t) {
|
|
2036
|
+
return arguments.length > 0 ? ((!i || !t || _ || m) && d(t ? g() : e), e) : g();
|
|
2037
|
+
});
|
|
2038
|
+
}
|
|
2039
|
+
var v = !1, y = (n & 1 ? lt : ft)(() => (v = !1, g()));
|
|
2040
|
+
a && Z(y);
|
|
2041
|
+
var ee = J;
|
|
2042
|
+
return (function(e, t) {
|
|
2043
|
+
if (arguments.length > 0) {
|
|
2044
|
+
let n = t ? Z(y) : i && a ? Gt(e) : e;
|
|
2045
|
+
return H(y, n), v = !0, s !== void 0 && (s = n), e;
|
|
2046
|
+
}
|
|
2047
|
+
return Nn && v || ee.f & 16384 ? y.v : Z(y);
|
|
2048
|
+
});
|
|
2049
|
+
}
|
|
2050
|
+
function ri(e) {
|
|
2051
|
+
return new ii(e);
|
|
2052
|
+
}
|
|
2053
|
+
var ii = class {
|
|
2054
|
+
#e;
|
|
2055
|
+
#t;
|
|
2056
|
+
constructor(e) {
|
|
2057
|
+
var t = /* @__PURE__ */ new Map(), n = (e, n) => {
|
|
2058
|
+
var r = /* @__PURE__ */ Bt(n, !1, !1);
|
|
2059
|
+
return t.set(e, r), r;
|
|
2060
|
+
};
|
|
2061
|
+
let r = new Proxy({
|
|
2062
|
+
...e.props || {},
|
|
2063
|
+
$$events: {}
|
|
2064
|
+
}, {
|
|
2065
|
+
get(e, r) {
|
|
2066
|
+
return Z(t.get(r) ?? n(r, Reflect.get(e, r)));
|
|
2067
|
+
},
|
|
2068
|
+
has(e, r) {
|
|
2069
|
+
return r === j || (Z(t.get(r) ?? n(r, Reflect.get(e, r))), Reflect.has(e, r));
|
|
2070
|
+
},
|
|
2071
|
+
set(e, r, i) {
|
|
2072
|
+
return H(t.get(r) ?? n(r, i), i), Reflect.set(e, r, i);
|
|
2073
|
+
}
|
|
2074
|
+
});
|
|
2075
|
+
this.#t = (e.hydrate ? br : yr)(e.component, {
|
|
2076
|
+
target: e.target,
|
|
2077
|
+
anchor: e.anchor,
|
|
2078
|
+
props: r,
|
|
2079
|
+
context: e.context,
|
|
2080
|
+
intro: e.intro ?? !1,
|
|
2081
|
+
recover: e.recover,
|
|
2082
|
+
transformError: e.transformError
|
|
2083
|
+
}), (!e?.props?.$$host || e.sync === !1) && kt(), this.#e = r.$$events;
|
|
2084
|
+
for (let e of Object.keys(this.#t)) e === "$set" || e === "$destroy" || e === "$on" || m(this, e, {
|
|
2085
|
+
get() {
|
|
2086
|
+
return this.#t[e];
|
|
2087
|
+
},
|
|
2088
|
+
set(t) {
|
|
2089
|
+
this.#t[e] = t;
|
|
2090
|
+
},
|
|
2091
|
+
enumerable: !0
|
|
2092
|
+
});
|
|
2093
|
+
this.#t.$set = (e) => {
|
|
2094
|
+
Object.assign(r, e);
|
|
2095
|
+
}, this.#t.$destroy = () => {
|
|
2096
|
+
wr(this.#t);
|
|
2097
|
+
};
|
|
2098
|
+
}
|
|
2099
|
+
$set(e) {
|
|
2100
|
+
this.#t.$set(e);
|
|
2101
|
+
}
|
|
2102
|
+
$on(e, t) {
|
|
2103
|
+
this.#e[e] = this.#e[e] || [];
|
|
2104
|
+
let n = (...e) => t.call(this, ...e);
|
|
2105
|
+
return this.#e[e].push(n), () => {
|
|
2106
|
+
this.#e[e] = this.#e[e].filter((e) => e !== n);
|
|
2107
|
+
};
|
|
2108
|
+
}
|
|
2109
|
+
$destroy() {
|
|
2110
|
+
this.#t.$destroy();
|
|
2111
|
+
}
|
|
2112
|
+
}, ai;
|
|
2113
|
+
typeof HTMLElement == "function" && (ai = class extends HTMLElement {
|
|
2114
|
+
$$ctor;
|
|
2115
|
+
$$s;
|
|
2116
|
+
$$c;
|
|
2117
|
+
$$cn = !1;
|
|
2118
|
+
$$d = {};
|
|
2119
|
+
$$r = !1;
|
|
2120
|
+
$$p_d = {};
|
|
2121
|
+
$$l = {};
|
|
2122
|
+
$$l_u = /* @__PURE__ */ new Map();
|
|
2123
|
+
$$me;
|
|
2124
|
+
$$shadowRoot = null;
|
|
2125
|
+
constructor(e, t, n) {
|
|
2126
|
+
super(), this.$$ctor = e, this.$$s = t, n && (this.$$shadowRoot = this.attachShadow(n));
|
|
2127
|
+
}
|
|
2128
|
+
addEventListener(e, t, n) {
|
|
2129
|
+
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
2130
|
+
let n = this.$$c.$on(e, t);
|
|
2131
|
+
this.$$l_u.set(t, n);
|
|
2132
|
+
}
|
|
2133
|
+
super.addEventListener(e, t, n);
|
|
2134
|
+
}
|
|
2135
|
+
removeEventListener(e, t, n) {
|
|
2136
|
+
if (super.removeEventListener(e, t, n), this.$$c) {
|
|
2137
|
+
let e = this.$$l_u.get(t);
|
|
2138
|
+
e && (e(), this.$$l_u.delete(t));
|
|
2139
|
+
}
|
|
2140
|
+
}
|
|
2141
|
+
async connectedCallback() {
|
|
2142
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
2143
|
+
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
2144
|
+
function e(e) {
|
|
2145
|
+
return (t) => {
|
|
2146
|
+
let n = an("slot");
|
|
2147
|
+
e !== "default" && (n.name = e), Q(t, n);
|
|
2148
|
+
};
|
|
2149
|
+
}
|
|
2150
|
+
let t = {}, n = si(this);
|
|
2151
|
+
for (let r of this.$$s) r in n && (r === "default" && !this.$$d.children ? (this.$$d.children = e(r), t.default = !0) : t[r] = e(r));
|
|
2152
|
+
for (let e of this.attributes) {
|
|
2153
|
+
let t = this.$$g_p(e.name);
|
|
2154
|
+
t in this.$$d || (this.$$d[t] = oi(t, e.value, this.$$p_d, "toProp"));
|
|
2155
|
+
}
|
|
2156
|
+
for (let e in this.$$p_d) !(e in this.$$d) && this[e] !== void 0 && (this.$$d[e] = this[e], delete this[e]);
|
|
2157
|
+
this.$$c = ri({
|
|
2158
|
+
component: this.$$ctor,
|
|
2159
|
+
target: this.$$shadowRoot || this,
|
|
2160
|
+
props: {
|
|
2161
|
+
...this.$$d,
|
|
2162
|
+
$$slots: t,
|
|
2163
|
+
$$host: this
|
|
2164
|
+
}
|
|
2165
|
+
}), this.$$me = mn(() => {
|
|
2166
|
+
vn(() => {
|
|
2167
|
+
this.$$r = !0;
|
|
2168
|
+
for (let e of p(this.$$c)) {
|
|
2169
|
+
if (!this.$$p_d[e]?.reflect) continue;
|
|
2170
|
+
this.$$d[e] = this.$$c[e];
|
|
2171
|
+
let t = oi(e, this.$$d[e], this.$$p_d, "toAttribute");
|
|
2172
|
+
t == null ? this.removeAttribute(this.$$p_d[e].attribute || e) : this.setAttribute(this.$$p_d[e].attribute || e, t);
|
|
2173
|
+
}
|
|
2174
|
+
this.$$r = !1;
|
|
2175
|
+
});
|
|
2176
|
+
});
|
|
2177
|
+
for (let e in this.$$l) for (let t of this.$$l[e]) {
|
|
2178
|
+
let n = this.$$c.$on(e, t);
|
|
2179
|
+
this.$$l_u.set(t, n);
|
|
2180
|
+
}
|
|
2181
|
+
this.$$l = {};
|
|
2182
|
+
}
|
|
2183
|
+
}
|
|
2184
|
+
attributeChangedCallback(e, t, n) {
|
|
2185
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = oi(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
2186
|
+
}
|
|
2187
|
+
disconnectedCallback() {
|
|
2188
|
+
this.$$cn = !1, Promise.resolve().then(() => {
|
|
2189
|
+
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$me(), this.$$c = void 0);
|
|
2190
|
+
});
|
|
2191
|
+
}
|
|
2192
|
+
$$g_p(e) {
|
|
2193
|
+
return p(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
|
|
2194
|
+
}
|
|
2195
|
+
});
|
|
2196
|
+
function oi(e, t, n, r) {
|
|
2197
|
+
let i = n[e]?.type;
|
|
2198
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e]) return t;
|
|
2199
|
+
if (r === "toAttribute") switch (i) {
|
|
2200
|
+
case "Object":
|
|
2201
|
+
case "Array": return t == null ? null : JSON.stringify(t);
|
|
2202
|
+
case "Boolean": return t ? "" : null;
|
|
2203
|
+
case "Number": return t ?? null;
|
|
2204
|
+
default: return t;
|
|
2205
|
+
}
|
|
2206
|
+
else switch (i) {
|
|
2207
|
+
case "Object":
|
|
2208
|
+
case "Array": return t && JSON.parse(t);
|
|
2209
|
+
case "Boolean": return t;
|
|
2210
|
+
case "Number": return t == null ? t : +t;
|
|
2211
|
+
default: return t;
|
|
2212
|
+
}
|
|
2213
|
+
}
|
|
2214
|
+
function si(e) {
|
|
2215
|
+
let t = {};
|
|
2216
|
+
return e.childNodes.forEach((e) => {
|
|
2217
|
+
t[e.slot || "default"] = !0;
|
|
2218
|
+
}), t;
|
|
2219
|
+
}
|
|
2220
|
+
function ci(e, t, n, r, i, a) {
|
|
2221
|
+
let o = class extends ai {
|
|
2222
|
+
constructor() {
|
|
2223
|
+
super(e, n, i), this.$$p_d = t;
|
|
2224
|
+
}
|
|
2225
|
+
static get observedAttributes() {
|
|
2226
|
+
return p(t).map((e) => (t[e].attribute || e).toLowerCase());
|
|
2227
|
+
}
|
|
2228
|
+
};
|
|
2229
|
+
return p(t).forEach((e) => {
|
|
2230
|
+
m(o.prototype, e, {
|
|
2231
|
+
get() {
|
|
2232
|
+
return this.$$c && e in this.$$c ? this.$$c[e] : this.$$d[e];
|
|
2233
|
+
},
|
|
2234
|
+
set(n) {
|
|
2235
|
+
n = oi(e, n, t), this.$$d[e] = n;
|
|
2236
|
+
var r = this.$$c;
|
|
2237
|
+
r && (h(r, e)?.get ? r[e] = n : r.$set({ [e]: n }));
|
|
2238
|
+
}
|
|
2239
|
+
});
|
|
2240
|
+
}), r.forEach((e) => {
|
|
2241
|
+
m(o.prototype, e, { get() {
|
|
2242
|
+
return this.$$c?.[e];
|
|
2243
|
+
} });
|
|
2244
|
+
}), a && (o = a(o)), e.element = o, o;
|
|
2245
|
+
}
|
|
2246
|
+
var li = globalThis, ui = li.ShadowRoot && (li.ShadyCSS === void 0 || li.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, di = Symbol(), fi = /* @__PURE__ */ new WeakMap(), pi = class {
|
|
2247
|
+
constructor(e, t, n) {
|
|
2248
|
+
if (this._$cssResult$ = !0, n !== di) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
2249
|
+
this.cssText = e, this.t = t;
|
|
2250
|
+
}
|
|
2251
|
+
get styleSheet() {
|
|
2252
|
+
let e = this.o, t = this.t;
|
|
2253
|
+
if (ui && e === void 0) {
|
|
2254
|
+
let n = t !== void 0 && t.length === 1;
|
|
2255
|
+
n && (e = fi.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), n && fi.set(t, e));
|
|
2256
|
+
}
|
|
2257
|
+
return e;
|
|
2258
|
+
}
|
|
2259
|
+
toString() {
|
|
2260
|
+
return this.cssText;
|
|
2261
|
+
}
|
|
2262
|
+
}, mi = (e) => new pi(typeof e == "string" ? e : e + "", void 0, di), hi = (e, t) => {
|
|
2263
|
+
if (ui) e.adoptedStyleSheets = t.map(((e) => e instanceof CSSStyleSheet ? e : e.styleSheet));
|
|
2264
|
+
else for (let n of t) {
|
|
2265
|
+
let t = document.createElement("style"), r = li.litNonce;
|
|
2266
|
+
r !== void 0 && t.setAttribute("nonce", r), t.textContent = n.cssText, e.appendChild(t);
|
|
2267
|
+
}
|
|
2268
|
+
}, gi = ui ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((e) => {
|
|
2269
|
+
let t = "";
|
|
2270
|
+
for (let n of e.cssRules) t += n.cssText;
|
|
2271
|
+
return mi(t);
|
|
2272
|
+
})(e) : e, { is: _i, defineProperty: vi, getOwnPropertyDescriptor: yi, getOwnPropertyNames: bi, getOwnPropertySymbols: xi, getPrototypeOf: Si } = Object, Ci = globalThis, wi = Ci.trustedTypes, Ti = wi ? wi.emptyScript : "", Ei = Ci.reactiveElementPolyfillSupport, Di = (e, t) => e, Oi = {
|
|
2273
|
+
toAttribute(e, t) {
|
|
2274
|
+
switch (t) {
|
|
2275
|
+
case Boolean:
|
|
2276
|
+
e = e ? Ti : null;
|
|
2277
|
+
break;
|
|
2278
|
+
case Object:
|
|
2279
|
+
case Array: e = e == null ? e : JSON.stringify(e);
|
|
2280
|
+
}
|
|
2281
|
+
return e;
|
|
2282
|
+
},
|
|
2283
|
+
fromAttribute(e, t) {
|
|
2284
|
+
let n = e;
|
|
2285
|
+
switch (t) {
|
|
2286
|
+
case Boolean:
|
|
2287
|
+
n = e !== null;
|
|
2288
|
+
break;
|
|
2289
|
+
case Number:
|
|
2290
|
+
n = e === null ? null : Number(e);
|
|
2291
|
+
break;
|
|
2292
|
+
case Object:
|
|
2293
|
+
case Array: try {
|
|
2294
|
+
n = JSON.parse(e);
|
|
2295
|
+
} catch {
|
|
2296
|
+
n = null;
|
|
2297
|
+
}
|
|
2298
|
+
}
|
|
2299
|
+
return n;
|
|
2300
|
+
}
|
|
2301
|
+
}, ki = (e, t) => !_i(e, t), Ai = {
|
|
2302
|
+
attribute: !0,
|
|
2303
|
+
type: String,
|
|
2304
|
+
converter: Oi,
|
|
2305
|
+
reflect: !1,
|
|
2306
|
+
useDefault: !1,
|
|
2307
|
+
hasChanged: ki
|
|
2308
|
+
};
|
|
2309
|
+
Symbol.metadata ??= Symbol("metadata"), Ci.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
2310
|
+
var ji = class extends HTMLElement {
|
|
2311
|
+
static addInitializer(e) {
|
|
2312
|
+
this._$Ei(), (this.l ??= []).push(e);
|
|
2313
|
+
}
|
|
2314
|
+
static get observedAttributes() {
|
|
2315
|
+
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
2316
|
+
}
|
|
2317
|
+
static createProperty(e, t = Ai) {
|
|
2318
|
+
if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(e, t), !t.noAccessor) {
|
|
2319
|
+
let n = Symbol(), r = this.getPropertyDescriptor(e, n, t);
|
|
2320
|
+
r !== void 0 && vi(this.prototype, e, r);
|
|
2321
|
+
}
|
|
2322
|
+
}
|
|
2323
|
+
static getPropertyDescriptor(e, t, n) {
|
|
2324
|
+
let { get: r, set: i } = yi(this.prototype, e) ?? {
|
|
2325
|
+
get() {
|
|
2326
|
+
return this[t];
|
|
2327
|
+
},
|
|
2328
|
+
set(e) {
|
|
2329
|
+
this[t] = e;
|
|
2330
|
+
}
|
|
2331
|
+
};
|
|
2332
|
+
return {
|
|
2333
|
+
get: r,
|
|
2334
|
+
set(t) {
|
|
2335
|
+
let a = r?.call(this);
|
|
2336
|
+
i?.call(this, t), this.requestUpdate(e, a, n);
|
|
2337
|
+
},
|
|
2338
|
+
configurable: !0,
|
|
2339
|
+
enumerable: !0
|
|
2340
|
+
};
|
|
2341
|
+
}
|
|
2342
|
+
static getPropertyOptions(e) {
|
|
2343
|
+
return this.elementProperties.get(e) ?? Ai;
|
|
2344
|
+
}
|
|
2345
|
+
static _$Ei() {
|
|
2346
|
+
if (this.hasOwnProperty(Di("elementProperties"))) return;
|
|
2347
|
+
let e = Si(this);
|
|
2348
|
+
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
|
2349
|
+
}
|
|
2350
|
+
static finalize() {
|
|
2351
|
+
if (this.hasOwnProperty(Di("finalized"))) return;
|
|
2352
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Di("properties"))) {
|
|
2353
|
+
let e = this.properties, t = [...bi(e), ...xi(e)];
|
|
2354
|
+
for (let n of t) this.createProperty(n, e[n]);
|
|
2355
|
+
}
|
|
2356
|
+
let e = this[Symbol.metadata];
|
|
2357
|
+
if (e !== null) {
|
|
2358
|
+
let t = litPropertyMetadata.get(e);
|
|
2359
|
+
if (t !== void 0) for (let [e, n] of t) this.elementProperties.set(e, n);
|
|
2360
|
+
}
|
|
2361
|
+
this._$Eh = /* @__PURE__ */ new Map();
|
|
2362
|
+
for (let [e, t] of this.elementProperties) {
|
|
2363
|
+
let n = this._$Eu(e, t);
|
|
2364
|
+
n !== void 0 && this._$Eh.set(n, e);
|
|
2365
|
+
}
|
|
2366
|
+
this.elementStyles = this.finalizeStyles(this.styles);
|
|
2367
|
+
}
|
|
2368
|
+
static finalizeStyles(e) {
|
|
2369
|
+
let t = [];
|
|
2370
|
+
if (Array.isArray(e)) {
|
|
2371
|
+
let n = new Set(e.flat(Infinity).reverse());
|
|
2372
|
+
for (let e of n) t.unshift(gi(e));
|
|
2373
|
+
} else e !== void 0 && t.push(gi(e));
|
|
2374
|
+
return t;
|
|
2375
|
+
}
|
|
2376
|
+
static _$Eu(e, t) {
|
|
2377
|
+
let n = t.attribute;
|
|
2378
|
+
return n === !1 ? void 0 : typeof n == "string" ? n : typeof e == "string" ? e.toLowerCase() : void 0;
|
|
2379
|
+
}
|
|
2380
|
+
constructor() {
|
|
2381
|
+
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
|
|
2382
|
+
}
|
|
2383
|
+
_$Ev() {
|
|
2384
|
+
this._$ES = new Promise(((e) => this.enableUpdating = e)), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach(((e) => e(this)));
|
|
2385
|
+
}
|
|
2386
|
+
addController(e) {
|
|
2387
|
+
(this._$EO ??= /* @__PURE__ */ new Set()).add(e), this.renderRoot !== void 0 && this.isConnected && e.hostConnected?.();
|
|
2388
|
+
}
|
|
2389
|
+
removeController(e) {
|
|
2390
|
+
this._$EO?.delete(e);
|
|
2391
|
+
}
|
|
2392
|
+
_$E_() {
|
|
2393
|
+
let e = /* @__PURE__ */ new Map(), t = this.constructor.elementProperties;
|
|
2394
|
+
for (let n of t.keys()) this.hasOwnProperty(n) && (e.set(n, this[n]), delete this[n]);
|
|
2395
|
+
e.size > 0 && (this._$Ep = e);
|
|
2396
|
+
}
|
|
2397
|
+
createRenderRoot() {
|
|
2398
|
+
let e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
2399
|
+
return hi(e, this.constructor.elementStyles), e;
|
|
2400
|
+
}
|
|
2401
|
+
connectedCallback() {
|
|
2402
|
+
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach(((e) => e.hostConnected?.()));
|
|
2403
|
+
}
|
|
2404
|
+
enableUpdating(e) {}
|
|
2405
|
+
disconnectedCallback() {
|
|
2406
|
+
this._$EO?.forEach(((e) => e.hostDisconnected?.()));
|
|
2407
|
+
}
|
|
2408
|
+
attributeChangedCallback(e, t, n) {
|
|
2409
|
+
this._$AK(e, n);
|
|
2410
|
+
}
|
|
2411
|
+
_$ET(e, t) {
|
|
2412
|
+
let n = this.constructor.elementProperties.get(e), r = this.constructor._$Eu(e, n);
|
|
2413
|
+
if (r !== void 0 && n.reflect === !0) {
|
|
2414
|
+
let i = (n.converter?.toAttribute === void 0 ? Oi : n.converter).toAttribute(t, n.type);
|
|
2415
|
+
this._$Em = e, i == null ? this.removeAttribute(r) : this.setAttribute(r, i), this._$Em = null;
|
|
2416
|
+
}
|
|
2417
|
+
}
|
|
2418
|
+
_$AK(e, t) {
|
|
2419
|
+
let n = this.constructor, r = n._$Eh.get(e);
|
|
2420
|
+
if (r !== void 0 && this._$Em !== r) {
|
|
2421
|
+
let e = n.getPropertyOptions(r), i = typeof e.converter == "function" ? { fromAttribute: e.converter } : e.converter?.fromAttribute === void 0 ? Oi : e.converter;
|
|
2422
|
+
this._$Em = r;
|
|
2423
|
+
let a = i.fromAttribute(t, e.type);
|
|
2424
|
+
this[r] = a ?? this._$Ej?.get(r) ?? a, this._$Em = null;
|
|
2425
|
+
}
|
|
2426
|
+
}
|
|
2427
|
+
requestUpdate(e, t, n) {
|
|
2428
|
+
if (e !== void 0) {
|
|
2429
|
+
let r = this.constructor, i = this[e];
|
|
2430
|
+
if (n ??= r.getPropertyOptions(e), !((n.hasChanged ?? ki)(i, t) || n.useDefault && n.reflect && i === this._$Ej?.get(e) && !this.hasAttribute(r._$Eu(e, n)))) return;
|
|
2431
|
+
this.C(e, t, n);
|
|
2432
|
+
}
|
|
2433
|
+
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
2434
|
+
}
|
|
2435
|
+
C(e, t, { useDefault: n, reflect: r, wrapped: i }, a) {
|
|
2436
|
+
n && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(e) && (this._$Ej.set(e, a ?? t ?? this[e]), i !== !0 || a !== void 0) || (this._$AL.has(e) || (this.hasUpdated || n || (t = void 0), this._$AL.set(e, t)), r === !0 && this._$Em !== e && (this._$Eq ??= /* @__PURE__ */ new Set()).add(e));
|
|
2437
|
+
}
|
|
2438
|
+
async _$EP() {
|
|
2439
|
+
this.isUpdatePending = !0;
|
|
2440
|
+
try {
|
|
2441
|
+
await this._$ES;
|
|
2442
|
+
} catch (e) {
|
|
2443
|
+
Promise.reject(e);
|
|
2444
|
+
}
|
|
2445
|
+
let e = this.scheduleUpdate();
|
|
2446
|
+
return e != null && await e, !this.isUpdatePending;
|
|
2447
|
+
}
|
|
2448
|
+
scheduleUpdate() {
|
|
2449
|
+
return this.performUpdate();
|
|
2450
|
+
}
|
|
2451
|
+
performUpdate() {
|
|
2452
|
+
if (!this.isUpdatePending) return;
|
|
2453
|
+
if (!this.hasUpdated) {
|
|
2454
|
+
if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
|
|
2455
|
+
for (let [e, t] of this._$Ep) this[e] = t;
|
|
2456
|
+
this._$Ep = void 0;
|
|
2457
|
+
}
|
|
2458
|
+
let e = this.constructor.elementProperties;
|
|
2459
|
+
if (e.size > 0) for (let [t, n] of e) {
|
|
2460
|
+
let { wrapped: e } = n, r = this[t];
|
|
2461
|
+
e !== !0 || this._$AL.has(t) || r === void 0 || this.C(t, void 0, n, r);
|
|
2462
|
+
}
|
|
2463
|
+
}
|
|
2464
|
+
let e = !1, t = this._$AL;
|
|
2465
|
+
try {
|
|
2466
|
+
e = this.shouldUpdate(t), e ? (this.willUpdate(t), this._$EO?.forEach(((e) => e.hostUpdate?.())), this.update(t)) : this._$EM();
|
|
2467
|
+
} catch (t) {
|
|
2468
|
+
throw e = !1, this._$EM(), t;
|
|
2469
|
+
}
|
|
2470
|
+
e && this._$AE(t);
|
|
2471
|
+
}
|
|
2472
|
+
willUpdate(e) {}
|
|
2473
|
+
_$AE(e) {
|
|
2474
|
+
this._$EO?.forEach(((e) => e.hostUpdated?.())), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e);
|
|
2475
|
+
}
|
|
2476
|
+
_$EM() {
|
|
2477
|
+
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
|
|
2478
|
+
}
|
|
2479
|
+
get updateComplete() {
|
|
2480
|
+
return this.getUpdateComplete();
|
|
2481
|
+
}
|
|
2482
|
+
getUpdateComplete() {
|
|
2483
|
+
return this._$ES;
|
|
2484
|
+
}
|
|
2485
|
+
shouldUpdate(e) {
|
|
2486
|
+
return !0;
|
|
2487
|
+
}
|
|
2488
|
+
update(e) {
|
|
2489
|
+
this._$Eq &&= this._$Eq.forEach(((e) => this._$ET(e, this[e]))), this._$EM();
|
|
2490
|
+
}
|
|
2491
|
+
updated(e) {}
|
|
2492
|
+
firstUpdated(e) {}
|
|
2493
|
+
};
|
|
2494
|
+
ji.elementStyles = [], ji.shadowRootOptions = { mode: "open" }, ji[Di("elementProperties")] = /* @__PURE__ */ new Map(), ji[Di("finalized")] = /* @__PURE__ */ new Map(), Ei?.({ ReactiveElement: ji }), (Ci.reactiveElementVersions ??= []).push("2.1.1");
|
|
2495
|
+
var Mi = globalThis, Ni = Mi.trustedTypes, Pi = Ni ? Ni.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Fi = "$lit$", Ii = `lit$${Math.random().toFixed(9).slice(2)}$`, Li = "?" + Ii, Ri = `<${Li}>`, zi = document, Bi = () => zi.createComment(""), Vi = (e) => e === null || typeof e != "object" && typeof e != "function", Hi = Array.isArray, Ui = (e) => Hi(e) || typeof e?.[Symbol.iterator] == "function", Wi = "[ \n\f\r]", Gi = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ki = /-->/g, qi = />/g, Ji = RegExp(`>|${Wi}(?:([^\\s"'>=/]+)(${Wi}*=${Wi}*(?:[^
|
|
2496
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Yi = /'/g, Xi = /"/g, Zi = /^(?:script|style|textarea|title)$/i, Qi = ((e) => (t, ...n) => ({
|
|
2497
|
+
_$litType$: e,
|
|
2498
|
+
strings: t,
|
|
2499
|
+
values: n
|
|
2500
|
+
}))(1), $i = Symbol.for("lit-noChange"), $ = Symbol.for("lit-nothing"), ea = /* @__PURE__ */ new WeakMap(), ta = zi.createTreeWalker(zi, 129);
|
|
2501
|
+
function na(e, t) {
|
|
2502
|
+
if (!Hi(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
2503
|
+
return Pi === void 0 ? t : Pi.createHTML(t);
|
|
2504
|
+
}
|
|
2505
|
+
var ra = (e, t) => {
|
|
2506
|
+
let n = e.length - 1, r = [], i, a = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = Gi;
|
|
2507
|
+
for (let t = 0; t < n; t++) {
|
|
2508
|
+
let n = e[t], s, c, l = -1, u = 0;
|
|
2509
|
+
for (; u < n.length && (o.lastIndex = u, c = o.exec(n), c !== null);) u = o.lastIndex, o === Gi ? c[1] === "!--" ? o = Ki : c[1] === void 0 ? c[2] === void 0 ? c[3] !== void 0 && (o = Ji) : (Zi.test(c[2]) && (i = RegExp("</" + c[2], "g")), o = Ji) : o = qi : o === Ji ? c[0] === ">" ? (o = i ?? Gi, l = -1) : c[1] === void 0 ? l = -2 : (l = o.lastIndex - c[2].length, s = c[1], o = c[3] === void 0 ? Ji : c[3] === "\"" ? Xi : Yi) : o === Xi || o === Yi ? o = Ji : o === Ki || o === qi ? o = Gi : (o = Ji, i = void 0);
|
|
2510
|
+
let d = o === Ji && e[t + 1].startsWith("/>") ? " " : "";
|
|
2511
|
+
a += o === Gi ? n + Ri : l >= 0 ? (r.push(s), n.slice(0, l) + Fi + n.slice(l) + Ii + d) : n + Ii + (l === -2 ? t : d);
|
|
2512
|
+
}
|
|
2513
|
+
return [na(e, a + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
|
|
2514
|
+
}, ia = class e {
|
|
2515
|
+
constructor({ strings: t, _$litType$: n }, r) {
|
|
2516
|
+
let i;
|
|
2517
|
+
this.parts = [];
|
|
2518
|
+
let a = 0, o = 0, s = t.length - 1, c = this.parts, [l, u] = ra(t, n);
|
|
2519
|
+
if (this.el = e.createElement(l, r), ta.currentNode = this.el.content, n === 2 || n === 3) {
|
|
2520
|
+
let e = this.el.content.firstChild;
|
|
2521
|
+
e.replaceWith(...e.childNodes);
|
|
2522
|
+
}
|
|
2523
|
+
for (; (i = ta.nextNode()) !== null && c.length < s;) {
|
|
2524
|
+
if (i.nodeType === 1) {
|
|
2525
|
+
if (i.hasAttributes()) for (let e of i.getAttributeNames()) if (e.endsWith(Fi)) {
|
|
2526
|
+
let t = u[o++], n = i.getAttribute(e).split(Ii), r = /([.?@])?(.*)/.exec(t);
|
|
2527
|
+
c.push({
|
|
2528
|
+
type: 1,
|
|
2529
|
+
index: a,
|
|
2530
|
+
name: r[2],
|
|
2531
|
+
strings: n,
|
|
2532
|
+
ctor: r[1] === "." ? la : r[1] === "?" ? ua : r[1] === "@" ? da : ca
|
|
2533
|
+
}), i.removeAttribute(e);
|
|
2534
|
+
} else e.startsWith(Ii) && (c.push({
|
|
2535
|
+
type: 6,
|
|
2536
|
+
index: a
|
|
2537
|
+
}), i.removeAttribute(e));
|
|
2538
|
+
if (Zi.test(i.tagName)) {
|
|
2539
|
+
let e = i.textContent.split(Ii), t = e.length - 1;
|
|
2540
|
+
if (t > 0) {
|
|
2541
|
+
i.textContent = Ni ? Ni.emptyScript : "";
|
|
2542
|
+
for (let n = 0; n < t; n++) i.append(e[n], Bi()), ta.nextNode(), c.push({
|
|
2543
|
+
type: 2,
|
|
2544
|
+
index: ++a
|
|
2545
|
+
});
|
|
2546
|
+
i.append(e[t], Bi());
|
|
2547
|
+
}
|
|
2548
|
+
}
|
|
2549
|
+
} else if (i.nodeType === 8) {
|
|
2550
|
+
if (i.data === Li) c.push({
|
|
2551
|
+
type: 2,
|
|
2552
|
+
index: a
|
|
2553
|
+
});
|
|
2554
|
+
else {
|
|
2555
|
+
let e = -1;
|
|
2556
|
+
for (; (e = i.data.indexOf(Ii, e + 1)) !== -1;) c.push({
|
|
2557
|
+
type: 7,
|
|
2558
|
+
index: a
|
|
2559
|
+
}), e += Ii.length - 1;
|
|
2560
|
+
}
|
|
2561
|
+
}
|
|
2562
|
+
a++;
|
|
2563
|
+
}
|
|
2564
|
+
}
|
|
2565
|
+
static createElement(e, t) {
|
|
2566
|
+
let n = zi.createElement("template");
|
|
2567
|
+
return n.innerHTML = e, n;
|
|
2568
|
+
}
|
|
2569
|
+
};
|
|
2570
|
+
function aa(e, t, n = e, r) {
|
|
2571
|
+
if (t === $i) return t;
|
|
2572
|
+
let i = r === void 0 ? n._$Cl : n._$Co?.[r], a = Vi(t) ? void 0 : t._$litDirective$;
|
|
2573
|
+
return i?.constructor !== a && (i?._$AO?.(!1), a === void 0 ? i = void 0 : (i = new a(e), i._$AT(e, n, r)), r === void 0 ? n._$Cl = i : (n._$Co ??= [])[r] = i), i !== void 0 && (t = aa(e, i._$AS(e, t.values), i, r)), t;
|
|
2574
|
+
}
|
|
2575
|
+
var oa = class {
|
|
2576
|
+
constructor(e, t) {
|
|
2577
|
+
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
|
|
2578
|
+
}
|
|
2579
|
+
get parentNode() {
|
|
2580
|
+
return this._$AM.parentNode;
|
|
2581
|
+
}
|
|
2582
|
+
get _$AU() {
|
|
2583
|
+
return this._$AM._$AU;
|
|
2584
|
+
}
|
|
2585
|
+
u(e) {
|
|
2586
|
+
let { el: { content: t }, parts: n } = this._$AD, r = (e?.creationScope ?? zi).importNode(t, !0);
|
|
2587
|
+
ta.currentNode = r;
|
|
2588
|
+
let i = ta.nextNode(), a = 0, o = 0, s = n[0];
|
|
2589
|
+
for (; s !== void 0;) {
|
|
2590
|
+
if (a === s.index) {
|
|
2591
|
+
let t;
|
|
2592
|
+
s.type === 2 ? t = new sa(i, i.nextSibling, this, e) : s.type === 1 ? t = new s.ctor(i, s.name, s.strings, this, e) : s.type === 6 && (t = new fa(i, this, e)), this._$AV.push(t), s = n[++o];
|
|
2593
|
+
}
|
|
2594
|
+
a !== s?.index && (i = ta.nextNode(), a++);
|
|
2595
|
+
}
|
|
2596
|
+
return ta.currentNode = zi, r;
|
|
2597
|
+
}
|
|
2598
|
+
p(e) {
|
|
2599
|
+
let t = 0;
|
|
2600
|
+
for (let n of this._$AV) n !== void 0 && (n.strings === void 0 ? n._$AI(e[t]) : (n._$AI(e, n, t), t += n.strings.length - 2)), t++;
|
|
2601
|
+
}
|
|
2602
|
+
}, sa = class e {
|
|
2603
|
+
get _$AU() {
|
|
2604
|
+
return this._$AM?._$AU ?? this._$Cv;
|
|
2605
|
+
}
|
|
2606
|
+
constructor(e, t, n, r) {
|
|
2607
|
+
this.type = 2, this._$AH = $, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = n, this.options = r, this._$Cv = r?.isConnected ?? !0;
|
|
2608
|
+
}
|
|
2609
|
+
get parentNode() {
|
|
2610
|
+
let e = this._$AA.parentNode, t = this._$AM;
|
|
2611
|
+
return t !== void 0 && e?.nodeType === 11 && (e = t.parentNode), e;
|
|
2612
|
+
}
|
|
2613
|
+
get startNode() {
|
|
2614
|
+
return this._$AA;
|
|
2615
|
+
}
|
|
2616
|
+
get endNode() {
|
|
2617
|
+
return this._$AB;
|
|
2618
|
+
}
|
|
2619
|
+
_$AI(e, t = this) {
|
|
2620
|
+
e = aa(this, e, t), Vi(e) ? e === $ || e == null || e === "" ? (this._$AH !== $ && this._$AR(), this._$AH = $) : e !== this._$AH && e !== $i && this._(e) : e._$litType$ === void 0 ? e.nodeType === void 0 ? Ui(e) ? this.k(e) : this._(e) : this.T(e) : this.$(e);
|
|
2621
|
+
}
|
|
2622
|
+
O(e) {
|
|
2623
|
+
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
2624
|
+
}
|
|
2625
|
+
T(e) {
|
|
2626
|
+
this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
|
|
2627
|
+
}
|
|
2628
|
+
_(e) {
|
|
2629
|
+
this._$AH !== $ && Vi(this._$AH) ? this._$AA.nextSibling.data = e : this.T(zi.createTextNode(e)), this._$AH = e;
|
|
2630
|
+
}
|
|
2631
|
+
$(e) {
|
|
2632
|
+
let { values: t, _$litType$: n } = e, r = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = ia.createElement(na(n.h, n.h[0]), this.options)), n);
|
|
2633
|
+
if (this._$AH?._$AD === r) this._$AH.p(t);
|
|
2634
|
+
else {
|
|
2635
|
+
let e = new oa(r, this), n = e.u(this.options);
|
|
2636
|
+
e.p(t), this.T(n), this._$AH = e;
|
|
2637
|
+
}
|
|
2638
|
+
}
|
|
2639
|
+
_$AC(e) {
|
|
2640
|
+
let t = ea.get(e.strings);
|
|
2641
|
+
return t === void 0 && ea.set(e.strings, t = new ia(e)), t;
|
|
2642
|
+
}
|
|
2643
|
+
k(t) {
|
|
2644
|
+
Hi(this._$AH) || (this._$AH = [], this._$AR());
|
|
2645
|
+
let n = this._$AH, r, i = 0;
|
|
2646
|
+
for (let a of t) i === n.length ? n.push(r = new e(this.O(Bi()), this.O(Bi()), this, this.options)) : r = n[i], r._$AI(a), i++;
|
|
2647
|
+
i < n.length && (this._$AR(r && r._$AB.nextSibling, i), n.length = i);
|
|
2648
|
+
}
|
|
2649
|
+
_$AR(e = this._$AA.nextSibling, t) {
|
|
2650
|
+
for (this._$AP?.(!1, !0, t); e !== this._$AB;) {
|
|
2651
|
+
let t = e.nextSibling;
|
|
2652
|
+
e.remove(), e = t;
|
|
2653
|
+
}
|
|
2654
|
+
}
|
|
2655
|
+
setConnected(e) {
|
|
2656
|
+
this._$AM === void 0 && (this._$Cv = e, this._$AP?.(e));
|
|
2657
|
+
}
|
|
2658
|
+
}, ca = class {
|
|
2659
|
+
get tagName() {
|
|
2660
|
+
return this.element.tagName;
|
|
2661
|
+
}
|
|
2662
|
+
get _$AU() {
|
|
2663
|
+
return this._$AM._$AU;
|
|
2664
|
+
}
|
|
2665
|
+
constructor(e, t, n, r, i) {
|
|
2666
|
+
this.type = 1, this._$AH = $, this._$AN = void 0, this.element = e, this.name = t, this._$AM = r, this.options = i, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(/* @__PURE__ */ new String()), this.strings = n) : this._$AH = $;
|
|
2667
|
+
}
|
|
2668
|
+
_$AI(e, t = this, n, r) {
|
|
2669
|
+
let i = this.strings, a = !1;
|
|
2670
|
+
if (i === void 0) e = aa(this, e, t, 0), a = !Vi(e) || e !== this._$AH && e !== $i, a && (this._$AH = e);
|
|
2671
|
+
else {
|
|
2672
|
+
let r = e, o, s;
|
|
2673
|
+
for (e = i[0], o = 0; o < i.length - 1; o++) s = aa(this, r[n + o], t, o), s === $i && (s = this._$AH[o]), a ||= !Vi(s) || s !== this._$AH[o], s === $ ? e = $ : e !== $ && (e += (s ?? "") + i[o + 1]), this._$AH[o] = s;
|
|
2674
|
+
}
|
|
2675
|
+
a && !r && this.j(e);
|
|
2676
|
+
}
|
|
2677
|
+
j(e) {
|
|
2678
|
+
e === $ ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
2679
|
+
}
|
|
2680
|
+
}, la = class extends ca {
|
|
2681
|
+
constructor() {
|
|
2682
|
+
super(...arguments), this.type = 3;
|
|
2683
|
+
}
|
|
2684
|
+
j(e) {
|
|
2685
|
+
this.element[this.name] = e === $ ? void 0 : e;
|
|
2686
|
+
}
|
|
2687
|
+
}, ua = class extends ca {
|
|
2688
|
+
constructor() {
|
|
2689
|
+
super(...arguments), this.type = 4;
|
|
2690
|
+
}
|
|
2691
|
+
j(e) {
|
|
2692
|
+
this.element.toggleAttribute(this.name, !!e && e !== $);
|
|
2693
|
+
}
|
|
2694
|
+
}, da = class extends ca {
|
|
2695
|
+
constructor(e, t, n, r, i) {
|
|
2696
|
+
super(e, t, n, r, i), this.type = 5;
|
|
2697
|
+
}
|
|
2698
|
+
_$AI(e, t = this) {
|
|
2699
|
+
if ((e = aa(this, e, t, 0) ?? $) === $i) return;
|
|
2700
|
+
let n = this._$AH, r = e === $ && n !== $ || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, i = e !== $ && (n === $ || r);
|
|
2701
|
+
r && this.element.removeEventListener(this.name, this, n), i && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
2702
|
+
}
|
|
2703
|
+
handleEvent(e) {
|
|
2704
|
+
typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
|
|
2705
|
+
}
|
|
2706
|
+
}, fa = class {
|
|
2707
|
+
constructor(e, t, n) {
|
|
2708
|
+
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = n;
|
|
2709
|
+
}
|
|
2710
|
+
get _$AU() {
|
|
2711
|
+
return this._$AM._$AU;
|
|
2712
|
+
}
|
|
2713
|
+
_$AI(e) {
|
|
2714
|
+
aa(this, e);
|
|
2715
|
+
}
|
|
2716
|
+
}, pa = Mi.litHtmlPolyfillSupport;
|
|
2717
|
+
pa?.(ia, sa), (Mi.litHtmlVersions ??= []).push("3.3.1");
|
|
2718
|
+
var ma = (e, t, n) => {
|
|
2719
|
+
let r = n?.renderBefore ?? t, i = r._$litPart$;
|
|
2720
|
+
if (i === void 0) {
|
|
2721
|
+
let e = n?.renderBefore ?? null;
|
|
2722
|
+
r._$litPart$ = i = new sa(t.insertBefore(Bi(), e), e, void 0, n ?? {});
|
|
2723
|
+
}
|
|
2724
|
+
return i._$AI(e), i;
|
|
2725
|
+
}, ha = globalThis, ga = class extends ji {
|
|
2726
|
+
constructor() {
|
|
2727
|
+
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
2728
|
+
}
|
|
2729
|
+
createRenderRoot() {
|
|
2730
|
+
let e = super.createRenderRoot();
|
|
2731
|
+
return this.renderOptions.renderBefore ??= e.firstChild, e;
|
|
2732
|
+
}
|
|
2733
|
+
update(e) {
|
|
2734
|
+
let t = this.render();
|
|
2735
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = ma(t, this.renderRoot, this.renderOptions);
|
|
2736
|
+
}
|
|
2737
|
+
connectedCallback() {
|
|
2738
|
+
super.connectedCallback(), this._$Do?.setConnected(!0);
|
|
2739
|
+
}
|
|
2740
|
+
disconnectedCallback() {
|
|
2741
|
+
super.disconnectedCallback(), this._$Do?.setConnected(!1);
|
|
2742
|
+
}
|
|
2743
|
+
render() {
|
|
2744
|
+
return $i;
|
|
2745
|
+
}
|
|
2746
|
+
};
|
|
2747
|
+
ga._$litElement$ = !0, ga.finalized = !0, ha.litElementHydrateSupport?.({ LitElement: ga });
|
|
2748
|
+
var _a = ha.litElementPolyfillSupport;
|
|
2749
|
+
_a?.({ LitElement: ga }), (ha.litElementVersions ??= []).push("4.2.1");
|
|
2750
|
+
var va = (e) => (t, n) => {
|
|
2751
|
+
n === void 0 ? customElements.get(e) || customElements.define(e, t) : n.addInitializer((() => {
|
|
2752
|
+
customElements.get(e) || customElements.define(e, t);
|
|
2753
|
+
}));
|
|
2754
|
+
}, ya = {
|
|
2755
|
+
attribute: !0,
|
|
2756
|
+
type: String,
|
|
2757
|
+
converter: Oi,
|
|
2758
|
+
reflect: !1,
|
|
2759
|
+
hasChanged: ki
|
|
2760
|
+
}, ba = (e = ya, t, n) => {
|
|
2761
|
+
let { kind: r, metadata: i } = n, a = globalThis.litPropertyMetadata.get(i);
|
|
2762
|
+
if (a === void 0 && globalThis.litPropertyMetadata.set(i, a = /* @__PURE__ */ new Map()), r === "setter" && ((e = Object.create(e)).wrapped = !0), a.set(n.name, e), r === "accessor") {
|
|
2763
|
+
let { name: r } = n;
|
|
2764
|
+
return {
|
|
2765
|
+
set(n) {
|
|
2766
|
+
let i = t.get.call(this);
|
|
2767
|
+
t.set.call(this, n), this.requestUpdate(r, i, e);
|
|
2768
|
+
},
|
|
2769
|
+
init(t) {
|
|
2770
|
+
return t !== void 0 && this.C(r, void 0, e, t), t;
|
|
2771
|
+
}
|
|
2772
|
+
};
|
|
2773
|
+
}
|
|
2774
|
+
if (r === "setter") {
|
|
2775
|
+
let { name: r } = n;
|
|
2776
|
+
return function(n) {
|
|
2777
|
+
let i = this[r];
|
|
2778
|
+
t.call(this, n), this.requestUpdate(r, i, e);
|
|
2779
|
+
};
|
|
2780
|
+
}
|
|
2781
|
+
throw Error("Unsupported decorator location: " + r);
|
|
2782
|
+
};
|
|
2783
|
+
function xa(e) {
|
|
2784
|
+
return (t, n) => typeof n == "object" ? ba(e, t, n) : ((e, t, n) => {
|
|
2785
|
+
let r = t.hasOwnProperty(n);
|
|
2786
|
+
return t.constructor.createProperty(n, e), r ? Object.getOwnPropertyDescriptor(t, n) : void 0;
|
|
2787
|
+
})(e, t, n);
|
|
2788
|
+
}
|
|
2789
|
+
var Sa = Object.defineProperty, Ca = Object.getOwnPropertyDescriptor, wa = (e, t, n, r) => {
|
|
2790
|
+
for (var i = r > 1 ? void 0 : r ? Ca(t, n) : t, a = e.length - 1, o; a >= 0; a--) (o = e[a]) && (i = (r ? o(t, n, i) : o(i)) || i);
|
|
2791
|
+
return r && i && Sa(t, n, i), i;
|
|
2792
|
+
}, Ta = class extends ga {
|
|
2793
|
+
constructor() {
|
|
2794
|
+
super(...arguments), this.variant = "primary", this.size = "default", this.type = "circle", this.state = "default", this.iconName = "home", this.disabled = !1, this.buttonAriaLabel = "Icon button";
|
|
2795
|
+
}
|
|
2796
|
+
createRenderRoot() {
|
|
2797
|
+
return this;
|
|
2798
|
+
}
|
|
2799
|
+
connectedCallback() {
|
|
2800
|
+
if (super.connectedCallback(), !document.querySelector("link[href*=\"Roboto\"]")) {
|
|
2801
|
+
let e = document.createElement("link");
|
|
2802
|
+
e.rel = "stylesheet", e.href = "https://ui.renaissance.com/fonts/Roboto/style.css", document.head.appendChild(e);
|
|
2803
|
+
}
|
|
2804
|
+
}
|
|
2805
|
+
set shape(e) {
|
|
2806
|
+
this.type = e;
|
|
2807
|
+
}
|
|
2808
|
+
get shape() {
|
|
2809
|
+
return this.type;
|
|
2810
|
+
}
|
|
2811
|
+
get buttonClasses() {
|
|
2812
|
+
return [
|
|
2813
|
+
"nds-icon-button",
|
|
2814
|
+
`nds-icon-button--${this.variant}`,
|
|
2815
|
+
`nds-icon-button--${this.size}`,
|
|
2816
|
+
`nds-icon-button--${this.type}`,
|
|
2817
|
+
this.state === "default" ? "" : `nds-icon-button--${this.state}`,
|
|
2818
|
+
this.disabled ? "nds-icon-button--disabled" : ""
|
|
2819
|
+
].filter(Boolean).join(" ");
|
|
2820
|
+
}
|
|
2821
|
+
handleClick(e) {
|
|
2822
|
+
if (this.disabled) {
|
|
2823
|
+
e.preventDefault(), e.stopPropagation();
|
|
2824
|
+
return;
|
|
2825
|
+
}
|
|
2826
|
+
this.dispatchEvent(new CustomEvent("icon-button-click", {
|
|
2827
|
+
bubbles: !0,
|
|
2828
|
+
composed: !0,
|
|
2829
|
+
detail: { originalEvent: e }
|
|
2830
|
+
}));
|
|
2831
|
+
}
|
|
2832
|
+
render() {
|
|
2833
|
+
return Qi`
|
|
2834
|
+
<style>
|
|
2835
|
+
nds-icon-button {
|
|
2836
|
+
display: inline-block;
|
|
2837
|
+
}
|
|
2838
|
+
|
|
2839
|
+
.nds-icon-button {
|
|
2840
|
+
display: inline-flex;
|
|
2841
|
+
align-items: center;
|
|
2842
|
+
justify-content: center;
|
|
2843
|
+
cursor: pointer;
|
|
2844
|
+
font-family: var(--font-family-roboto, "Roboto", sans-serif);
|
|
2845
|
+
font-weight: var(--font-weight-regular, 400);
|
|
2846
|
+
line-height: 1;
|
|
2847
|
+
text-decoration: none;
|
|
2848
|
+
background: none;
|
|
2849
|
+
position: relative;
|
|
2850
|
+
box-sizing: border-box;
|
|
2851
|
+
margin: 0;
|
|
2852
|
+
padding: 0;
|
|
2853
|
+
border: none;
|
|
2854
|
+
transition: background-color 0.2s ease-in-out,
|
|
2855
|
+
color 0.2s ease-in-out,
|
|
2856
|
+
box-shadow 0.2s ease-in-out;
|
|
2857
|
+
}
|
|
2858
|
+
|
|
2859
|
+
/* ── Sizes ── */
|
|
2860
|
+
.nds-icon-button--small {
|
|
2861
|
+
width: var(--height-32, 32px);
|
|
2862
|
+
height: var(--height-32, 32px);
|
|
2863
|
+
}
|
|
2864
|
+
|
|
2865
|
+
.nds-icon-button--medium {
|
|
2866
|
+
width: var(--height-36, 36px);
|
|
2867
|
+
height: var(--height-36, 36px);
|
|
2868
|
+
}
|
|
2869
|
+
|
|
2870
|
+
.nds-icon-button--default {
|
|
2871
|
+
width: var(--height-40, 40px);
|
|
2872
|
+
height: var(--height-40, 40px);
|
|
2873
|
+
}
|
|
2874
|
+
|
|
2875
|
+
.nds-icon-button--large {
|
|
2876
|
+
width: var(--height-48, 48px);
|
|
2877
|
+
height: var(--height-48, 48px);
|
|
2878
|
+
}
|
|
2879
|
+
|
|
2880
|
+
/* ── Shapes ── */
|
|
2881
|
+
.nds-icon-button--circle {
|
|
2882
|
+
border-radius: var(--radius-circle, 50%);
|
|
2883
|
+
}
|
|
2884
|
+
|
|
2885
|
+
.nds-icon-button--rounded {
|
|
2886
|
+
border-radius: var(--radius-8, 8px);
|
|
2887
|
+
}
|
|
2888
|
+
|
|
2889
|
+
/* ── Primary ── */
|
|
2890
|
+
.nds-icon-button--primary {
|
|
2891
|
+
background-color: var(--color-interactive-blue, #146eb3);
|
|
2892
|
+
color: var(--color-primary-white, #ffffff);
|
|
2893
|
+
}
|
|
2894
|
+
|
|
2895
|
+
.nds-icon-button--primary:hover:not(:disabled):not(.nds-icon-button--disabled) {
|
|
2896
|
+
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
|
|
2897
|
+
}
|
|
2898
|
+
|
|
2899
|
+
.nds-icon-button--primary:active:not(:disabled):not(.nds-icon-button--disabled) {
|
|
2900
|
+
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
|
|
2901
|
+
}
|
|
2902
|
+
|
|
2903
|
+
/* ── Secondary ── */
|
|
2904
|
+
.nds-icon-button--secondary {
|
|
2905
|
+
background-color: var(--color-primary-white, #ffffff);
|
|
2906
|
+
color: var(--color-interactive-blue, #146eb3);
|
|
2907
|
+
box-shadow: inset 0 0 0 var(--stroke-1, 1px) var(--color-interactive-blue, #146eb3);
|
|
2908
|
+
}
|
|
2909
|
+
|
|
2910
|
+
.nds-icon-button--secondary:hover:not(:disabled):not(.nds-icon-button--disabled) {
|
|
2911
|
+
background-color: var(--color-interactive-blue, #146eb3);
|
|
2912
|
+
color: var(--color-primary-white, #ffffff);
|
|
2913
|
+
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
|
|
2914
|
+
}
|
|
2915
|
+
|
|
2916
|
+
.nds-icon-button--secondary:active:not(:disabled):not(.nds-icon-button--disabled) {
|
|
2917
|
+
background-color: var(--color-interactive-blue, #146eb3);
|
|
2918
|
+
color: var(--color-primary-white, #ffffff);
|
|
2919
|
+
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
|
|
2920
|
+
}
|
|
2921
|
+
|
|
2922
|
+
/* ── Tertiary ── */
|
|
2923
|
+
.nds-icon-button--tertiary {
|
|
2924
|
+
background-color: var(--color-new-gray, #f3f5f7);
|
|
2925
|
+
color: var(--color-interactive-blue, #146eb3);
|
|
2926
|
+
}
|
|
2927
|
+
|
|
2928
|
+
.nds-icon-button--tertiary:hover:not(:disabled):not(.nds-icon-button--disabled) {
|
|
2929
|
+
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-interactive-blue, #146eb3);
|
|
2930
|
+
}
|
|
2931
|
+
|
|
2932
|
+
.nds-icon-button--tertiary:active:not(:disabled):not(.nds-icon-button--disabled) {
|
|
2933
|
+
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
|
|
2934
|
+
}
|
|
2935
|
+
|
|
2936
|
+
/* ── Ghost ── */
|
|
2937
|
+
.nds-icon-button--ghost {
|
|
2938
|
+
background-color: transparent;
|
|
2939
|
+
color: var(--color-interactive-blue, #146eb3);
|
|
2940
|
+
}
|
|
2941
|
+
|
|
2942
|
+
.nds-icon-button--ghost:hover:not(:disabled):not(.nds-icon-button--disabled) {
|
|
2943
|
+
background-color: var(--color-new-gray, #f3f5f7);
|
|
2944
|
+
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-interactive-blue, #146eb3);
|
|
2945
|
+
}
|
|
2946
|
+
|
|
2947
|
+
.nds-icon-button--ghost:active:not(:disabled):not(.nds-icon-button--disabled) {
|
|
2948
|
+
background-color: var(--color-new-gray, #f3f5f7);
|
|
2949
|
+
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
|
|
2950
|
+
}
|
|
2951
|
+
|
|
2952
|
+
/* ── Dark (for dark backgrounds) ── */
|
|
2953
|
+
.nds-icon-button--dark {
|
|
2954
|
+
background-color: transparent;
|
|
2955
|
+
color: var(--color-primary-white, #ffffff);
|
|
2956
|
+
box-shadow: inset 0 0 0 var(--stroke-1, 1px) var(--color-primary-white, #ffffff);
|
|
2957
|
+
}
|
|
2958
|
+
|
|
2959
|
+
.nds-icon-button--dark:hover:not(:disabled):not(.nds-icon-button--disabled) {
|
|
2960
|
+
background-color: var(--color-interactive-blue, #146eb3);
|
|
2961
|
+
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-white, #ffffff);
|
|
2962
|
+
}
|
|
2963
|
+
|
|
2964
|
+
.nds-icon-button--dark:active:not(:disabled):not(.nds-icon-button--disabled) {
|
|
2965
|
+
background-color: var(--color-interactive-blue, #146eb3);
|
|
2966
|
+
box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-white, #ffffff);
|
|
2967
|
+
}
|
|
2968
|
+
|
|
2969
|
+
/* ── Disabled ── */
|
|
2970
|
+
.nds-icon-button--disabled,
|
|
2971
|
+
.nds-icon-button:disabled {
|
|
2972
|
+
opacity: 0.5;
|
|
2973
|
+
cursor: not-allowed;
|
|
2974
|
+
}
|
|
2975
|
+
|
|
2976
|
+
/* ── Icon sizing ── */
|
|
2977
|
+
.nds-icon-button__icon {
|
|
2978
|
+
line-height: 1;
|
|
2979
|
+
display: inline-flex;
|
|
2980
|
+
align-items: center;
|
|
2981
|
+
justify-content: center;
|
|
2982
|
+
color: inherit;
|
|
2983
|
+
}
|
|
2984
|
+
|
|
2985
|
+
.nds-icon-button--small .nds-icon-button__icon {
|
|
2986
|
+
font-size: var(--nds-icon-small, 12px);
|
|
2987
|
+
}
|
|
2988
|
+
|
|
2989
|
+
.nds-icon-button--medium .nds-icon-button__icon {
|
|
2990
|
+
font-size: var(--nds-icon-medium, 14px);
|
|
2991
|
+
}
|
|
2992
|
+
|
|
2993
|
+
.nds-icon-button--default .nds-icon-button__icon {
|
|
2994
|
+
font-size: var(--nds-icon-default, 16px);
|
|
2995
|
+
}
|
|
2996
|
+
|
|
2997
|
+
.nds-icon-button--large .nds-icon-button__icon {
|
|
2998
|
+
font-size: var(--nds-icon-large, 20px);
|
|
2999
|
+
}
|
|
3000
|
+
|
|
3001
|
+
/* ── Focus ── */
|
|
3002
|
+
.nds-icon-button:focus-visible {
|
|
3003
|
+
outline: 2px solid var(--color-focus-blue, #2b87ff);
|
|
3004
|
+
outline-offset: 2px;
|
|
3005
|
+
}
|
|
3006
|
+
|
|
3007
|
+
/* ── Reduced motion ── */
|
|
3008
|
+
@media (prefers-reduced-motion: reduce) {
|
|
3009
|
+
.nds-icon-button {
|
|
3010
|
+
transition: none;
|
|
3011
|
+
}
|
|
3012
|
+
}
|
|
3013
|
+
</style>
|
|
3014
|
+
<button
|
|
3015
|
+
type="button"
|
|
3016
|
+
class="${this.buttonClasses}"
|
|
3017
|
+
?disabled="${this.disabled}"
|
|
3018
|
+
aria-disabled="${this.disabled ? "true" : "false"}"
|
|
3019
|
+
aria-label="${this.buttonAriaLabel}"
|
|
3020
|
+
@click="${this.handleClick}"
|
|
3021
|
+
>
|
|
3022
|
+
<i class="fa-light fa-${this.iconName} nds-icon-button__icon" aria-hidden="true"></i>
|
|
3023
|
+
</button>
|
|
3024
|
+
`;
|
|
3025
|
+
}
|
|
3026
|
+
};
|
|
3027
|
+
wa([xa()], Ta.prototype, "variant", 2), wa([xa()], Ta.prototype, "size", 2), wa([xa()], Ta.prototype, "type", 2), wa([xa()], Ta.prototype, "state", 2), wa([xa({ attribute: "icon-name" })], Ta.prototype, "iconName", 2), wa([xa({ type: Boolean })], Ta.prototype, "disabled", 2), wa([xa({ attribute: "button-aria-label" })], Ta.prototype, "buttonAriaLabel", 2), wa([xa()], Ta.prototype, "shape", 1), Ta = wa([va("nds-icon-button")], Ta);
|
|
3028
|
+
var Ea = {
|
|
3029
|
+
maxZoom: 2,
|
|
3030
|
+
minCompensation: .25
|
|
3031
|
+
};
|
|
3032
|
+
function Da(e, t) {
|
|
3033
|
+
let n = e / t;
|
|
3034
|
+
return Number.isFinite(n) && n > 0 ? n : 1;
|
|
3035
|
+
}
|
|
3036
|
+
function Oa(e, t, n) {
|
|
3037
|
+
return Math.max(n, Math.min(1, t / e));
|
|
3038
|
+
}
|
|
3039
|
+
function ka(e) {
|
|
3040
|
+
let { maxZoom: t, minCompensation: n } = e, r = /* @__PURE__ */ V(1), i = /* @__PURE__ */ V(1);
|
|
3041
|
+
function a() {
|
|
3042
|
+
let e = Da(window.outerWidth, window.innerWidth);
|
|
3043
|
+
H(i, e, !0), H(r, Oa(e, t, n), !0);
|
|
3044
|
+
}
|
|
3045
|
+
return fn(() => {
|
|
3046
|
+
if (!(typeof window > "u")) return a(), window.addEventListener("resize", a), () => window.removeEventListener("resize", a);
|
|
3047
|
+
}), {
|
|
3048
|
+
get current() {
|
|
3049
|
+
return Z(r);
|
|
3050
|
+
},
|
|
3051
|
+
get zoom() {
|
|
3052
|
+
return Z(i);
|
|
3053
|
+
}
|
|
3054
|
+
};
|
|
3055
|
+
}
|
|
3056
|
+
var Aa = /* @__PURE__ */ mr("<nds-icon-button></nds-icon-button>", 2), ja = /* @__PURE__ */ mr("<button type=\"button\"><i aria-hidden=\"true\"></i></button>"), Ma = /* @__PURE__ */ mr("<span class=\"pie-tool-tts-inline__trigger-zoom svelte-18mzc0g\"><!></span>"), Na = /* @__PURE__ */ mr("<button type=\"button\" role=\"radio\" data-pie-tts-control=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--speed svelte-18mzc0g\"><span class=\"pie-tool-tts-inline__speed-label svelte-18mzc0g\"> </span></button>"), Pa = /* @__PURE__ */ mr("<div role=\"radiogroup\" aria-label=\"Playback speed\"></div>"), Fa = /* @__PURE__ */ mr("<div role=\"toolbar\" aria-label=\"Reading controls\" tabindex=\"-1\"><!> <button type=\"button\" data-pie-tts-control=\"\" data-pie-tts-media=\"\" data-pie-tts-seek=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-18mzc0g\" aria-label=\"Rewind\"><i class=\"fa-solid fa-backward pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"></i></button> <button type=\"button\" data-pie-tts-control=\"\" data-pie-tts-media=\"\" data-pie-tts-seek=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-18mzc0g\" aria-label=\"Fast-forward\"><i class=\"fa-solid fa-forward pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"></i></button> <button type=\"button\" data-pie-tts-control=\"\" data-pie-tts-media=\"\" data-pie-tts-stop=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-18mzc0g\" aria-label=\"Stop reading\"><i class=\"fa-solid fa-stop pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"></i></button></div>"), Ia = /* @__PURE__ */ mr("<!> <!>", 1), La = /* @__PURE__ */ mr("<div><!> <div class=\"pie-sr-only svelte-18mzc0g\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\"> </div></div>"), Ra = {
|
|
3057
|
+
hash: "svelte-18mzc0g",
|
|
3058
|
+
code: "\n /* Lay the component out as a flex box, not the default inline custom element.\n As `display: inline` the host is blockified into a block flex item that\n wraps its content in a line box, so the inline-flex root sits on the text\n baseline — a zoom-shrunk play button then rides that baseline and drifts\n LOW versus the calculator button (whose flex-item wrapper has no line box).\n inline-flex + center removes the line box and keeps the trigger centered. */:host {display:inline-flex;align-items:center;}.pie-tool-tts-inline.svelte-18mzc0g {position:relative;display:inline-flex;align-items:center;\n /* Gap between trigger and panel lives outside the zoomed buttons, so it\n is compensated separately or it keeps growing with browser zoom. */gap:calc(0.5rem * var(--pie-tts-zoom-comp, 1));}.pie-tool-tts-inline--controls-row.svelte-18mzc0g {width:100%;justify-content:flex-end;}\n\n /* The play/pause trigger and the \"more\" overflow control are now\n <nds-icon-button> hosts; the NDS component owns their shape, colours,\n hover/active/focus states, and the filled active (`variant=\"primary\"`)\n appearance. This class only drives the host's size via NDS's own size\n custom properties (see the size variants below), so the light-DOM inner\n button matches the toolbar's md/sm/lg dimensions. */\n /* Freeze the play/pause button at its 200%-zoom appearance (factor is 1 at\n zoom <= 200%, so behaviour below that is unchanged). The zoom goes on this\n wrapper, not the nds-icon-button host — see the snippet. */.pie-tool-tts-inline__trigger-zoom.svelte-18mzc0g {display:inline-flex;zoom:var(--pie-tts-zoom-comp, 1);}.pie-tool-tts-inline__trigger.svelte-18mzc0g {display:inline-flex;\n /* Outer button size follows the toolbar size variants (below); the glyph\n keeps the NDS-native icon size (size=\"small\") so it isn't oversized. */--height-32: 2rem;\n /* Host-settable accent: the NDS tertiary glyph colour derives from\n --color-interactive-blue, remapped here to the same chain the panel\n paints with. It defaults through --pie-button-color so the glyph follows\n the active theme; the literal is the no-theme last resort. */--color-interactive-blue: var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));\n /* NDS palette bridge — keep in sync with the copies in\n assessment-toolkit ItemToolBar and section-player SectionItemsPane\n (asserted by scripts/check-theme-tokens.mjs). The vendored button\n paints its fill, its on-accent glyph, its hover ring and its focus\n ring from the NDS design-system palette, which no PIE theme sets, so\n a tertiary trigger kept a #f3f5f7 pill on every page — and once the\n glyph followed the theme, a light glyph landed on that light pill. */--color-new-gray: var(--pie-background-dark, #f3f5f7);--color-primary-white: var(--pie-white, #ffffff);--color-primary-black: var(--pie-text, #000000);--color-focus-blue: var(--pie-button-focus-outline, #2b87ff);}\n\n /* Non-NDS fallback trigger (host opted out of nds-icon-button). Inherits\n the plain `__control` box; only override to keep the round trigger\n shape and the themeable accent colour on its glyph. */.pie-tool-tts-inline__trigger--plain.svelte-18mzc0g {border-radius:50%;color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));}\n\n /* Active/open trigger hooks (PIE-727).\n ---------------------------------------------------------------------------\n README documents --pie-tool-trigger-active-background / -color /\n -border-color as the supported way to style this trigger while its panel is\n open, instead of overriding broad tokens like --pie-primary. The component\n had stopped honouring all three, so a host following the docs got nothing.\n These rules restore them, matching how tool-calculator-inline-desmos wires\n the same three hooks.\n ---------------------------------------------------------------------------\n Every fallback is the value this element already resolves to when the hook\n is unset, so adding these rules changes nothing by default. That is\n deliberate: unlike the calculator, this trigger has never had a filled\n active look, and introducing one here would restyle the control for every\n host. Hosts opt in by setting a hook; nobody is opted in by us.\n\n Keyed off [aria-expanded='true'], which the markup already maintains, so\n there is no new state to keep in sync. */.pie-tool-tts-inline__trigger--plain[aria-expanded=\"true\"].svelte-18mzc0g {\n /* All three fallbacks are `__control`'s chains, including the glyph colour.\n Not `--plain`'s: that rule also declares `color`, but `__control` repeats\n it further down the sheet at equal specificity, so `__control` wins and\n `--plain`'s accent declaration never applies. Measured in Chromium: the\n plain trigger's glyph is --pie-button-color either way. */background:var(\n --pie-tool-trigger-active-background,\n var(--pie-button-background-color, var(--pie-button-bg, var(--pie-background, #fff)))\n );color:var(\n --pie-tool-trigger-active-color,\n var(--pie-button-color, var(--pie-text, #222))\n );border-color:var(\n --pie-tool-trigger-active-border-color,\n var(--pie-button-border-color, var(--pie-button-border, var(--pie-border, #c6c6c6)))\n );}\n\n /* NDS variant: its glyph colour derives from --color-interactive-blue, so the\n accent is remapped rather than painted, exactly as the base rule does. Only\n the foreground hook applies -- background and border are owned by the NDS\n button's own internals, and setting them on this host element would paint a\n box the tertiary button does not currently have. */.pie-tool-tts-inline__trigger:not(.pie-tool-tts-inline__trigger--plain)[aria-expanded=\"true\"].svelte-18mzc0g {--color-interactive-blue: var(\n --pie-tool-trigger-active-color,\n var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)))\n );}.pie-tool-tts-inline__control.svelte-18mzc0g:hover:not(:disabled) {background-color:var(--pie-button-hover-background-color, var(--pie-button-hover-bg, var(--pie-secondary-background, #f2f4f8)));transform:translateY(-1px);box-shadow:0 2px 6px color-mix(in srgb, var(--pie-shadow, #000) 14%, transparent);}.pie-tool-tts-inline__control.svelte-18mzc0g:active:not(:disabled) {transform:translateY(0);box-shadow:none;}.pie-tool-tts-inline__control.svelte-18mzc0g:focus-visible {outline:2px solid var(--pie-focus-outline, var(--pie-button-focus-outline, var(--pie-primary, #0066cc)));outline-offset:2px;box-shadow:0 0 0 4px color-mix(in srgb, var(--pie-primary, #0066cc) 22%, transparent);}\n\n /* Activating play/pause deliberately KEEPS focus on the trigger while the\n controls panel opens beside it, so where focus sits has to stay visible —\n including after a pointer activation, where the browser suppresses\n :focus-visible and would paint no ring at all. Scoped to\n `:focus:not(:focus-visible)` so it only fills that gap: genuine keyboard\n focus keeps whatever the shared `__control` rule (plain trigger) or the NDS\n component (nds-icon-button) already paints, untouched.\n Two selectors because the two trigger variants focus different nodes: the\n plain fallback IS the button, while <nds-icon-button> holds focus on an\n inner light-DOM <button> that Lit creates — so it carries no Svelte scoping\n class and must be reached with :global(). */.pie-tool-tts-inline__trigger.svelte-18mzc0g:focus:not(:focus-visible),\n .pie-tool-tts-inline__trigger.svelte-18mzc0g button:focus:not(:focus-visible) {outline:2px solid var(--pie-focus-outline, var(--pie-button-focus-outline, var(--pie-primary, #0066cc)));outline-offset:2px;}.pie-tool-tts-inline__panel.svelte-18mzc0g {display:inline-flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;\n /* Buttons inside are zoom-capped (see __control); compensate the panel's\n own spacing/height with the same factor so its chrome doesn't keep\n growing around the frozen buttons past 200%. */gap:calc(0.25rem * var(--pie-tts-zoom-comp, 1));box-sizing:border-box;min-height:calc(var(--pie-tts-controls-row-height, 2.875rem) * var(--pie-tts-zoom-comp, 1));padding:calc(0.25rem * var(--pie-tts-zoom-comp, 1)) calc(0.5rem * var(--pie-tts-zoom-comp, 1));background:var(--pie-surface, var(--pie-background, #fff));border:1px solid var(--pie-border, #d0d0d0);border-radius:0.5rem;}.pie-tool-tts-inline__panel--floating.svelte-18mzc0g {position:absolute;z-index:2;top:50%;right:0;left:auto;}.pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g {\n /* Fixed so it escapes overflow-clipping ancestors; top / right /\n max-width are set inline by measureLeftAlignedOverlay(). */position:fixed;}.pie-tool-tts-inline__panel--row.svelte-18mzc0g {position:absolute;z-index:2;top:100%;right:0;left:auto;}.pie-tool-tts-inline__control.svelte-18mzc0g {display:inline-flex;align-items:center;justify-content:center;\n /* Cap each control (rewind / fast-forward / stop / speed) at its\n 200%-zoom size; matches the trigger and the passage/questions toggle. */zoom:var(--pie-tts-zoom-comp, 1);width:2rem;height:2rem;border:1px solid var(--pie-button-border-color, var(--pie-button-border, var(--pie-border, #c6c6c6)));border-radius:0.25rem;background:var(--pie-button-background-color, var(--pie-button-bg, var(--pie-background, #fff)));color:var(--pie-button-color, var(--pie-text, #222));cursor:pointer;transition:background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;}\n\n /* Icon-only panel controls (rewind / fast-forward / stop) are round to match\n the circular NDS trigger; the pill-shaped speed radios keep square corners. */.pie-tool-tts-inline__control--secondary.svelte-18mzc0g {border-radius:50%;}.pie-tool-tts-inline__speed-group.svelte-18mzc0g {display:inline-flex;flex-wrap:wrap;align-items:center;gap:calc(0.25rem * var(--pie-tts-zoom-comp, 1));}.pie-tool-tts-inline__control--speed.svelte-18mzc0g {width:auto;height:2rem;padding:0;font-size:1rem;font-weight:500;letter-spacing:0;white-space:nowrap;}.pie-tool-tts-inline__control--speed[aria-checked='true'].svelte-18mzc0g {border-color:var(--pie-primary, #1565c0);background:color-mix(in srgb, var(--pie-primary, #1565c0) 14%, var(--pie-background, #fff));color:var(--pie-primary, #1565c0);font-weight:600;}.pie-tool-tts-inline__speed-label.svelte-18mzc0g {line-height:1.2;\n /* Render speed labels lowercase regardless of the configured casing.\n Applied to the visible text only; the radio's accessible name comes\n from aria-label (option.ariaLabel), so screen readers still hear the\n canonical \"Slow speed\" / \"Normal speed\" / \"Fast speed\". */text-transform:lowercase;}\n\n /* Reserve the bold (selected) width — stacked popper only. Switching the\n selected speed there would otherwise change the label width and resize the\n fit-content card. The ghost is a zero-height, hidden grid row whose bold text\n sets the column width. The inline (roomy) row keeps its natural sizing. */.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g .pie-tool-tts-inline__speed-label:where(.svelte-18mzc0g) {display:inline-grid;justify-items:center;}.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g .pie-tool-tts-inline__speed-label:where(.svelte-18mzc0g)::before {content:attr(data-label);height:0;overflow:hidden;font-weight:700;visibility:hidden;}.pie-tool-tts-inline__control.svelte-18mzc0g:disabled {cursor:not-allowed;opacity:0.6;}\n\n /* ── Overlay layouts (floating-overlay + left-aligned) ──────────────────────\n The Knowledge-Check design keeps the controls on the surrounding\n Question/Passage header: a low-chrome card, icon-only media glyphs, and speed\n radios as plain text with the selected one lifted into a chip.\n\n Shape comes from that design; colour comes from the theme. The overlay used\n to paint literals (#146eb3 glyphs on a #fff card with a #f3f5f7 chip), which\n left a blue-on-white panel floating over every non-default theme — a DaisyUI\n `valentine` page rendered a pink player with a blue TTS panel. Each surface\n now defaults through a canonical token and keeps its literal only as the\n no-theme last resort.\n\n Foregrounds resolve through --pie-button-color (DaisyUI base-content), the\n one family whose contrast against the card is guaranteed in every shipped\n theme: --pie-primary and --pie-tertiary are `direct` mappings of DaisyUI\n slots chosen to pair with their own -content colour, so an accent glyph taken\n from either drops to 1.37:1 on `pastel` and 11 of 35 themes fall under 3:1.\n Selection is signalled by the chip and the bolder weight rather than by hue.\n\n Host knobs, all unchanged: --pie-tts-button-color (accent),\n --pie-tts-inline-muted-color, --pie-tts-selected-bg,\n --pie-selected-button-background/-border, --pie-tts-menu-shadow. */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g,\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g {min-height:0;height:calc(3rem * var(--pie-tts-zoom-comp, 1)); /* Figma: 48px */justify-content:center;gap:calc(0.375rem * var(--pie-tts-zoom-comp, 1));\n /* --pie-white, not --pie-background: the base light theme sets\n --pie-background to rgba(255,255,255,0) so page content shows through,\n and a floating card cannot be transparent. --pie-white is the theme's\n opaque page surface (DaisyUI base-100; #000 under the dark theme). */background:var(--pie-tts-selected-bg, var(--pie-surface, var(--pie-white, #fff)));\n /* The Figma card is shadow-only, but the shadow is black: once the card\n takes a dark theme's surface it has no visible edge left. A hairline\n derived from the text colour reads on either. Not --pie-border: a host\n that wants borderless controls sets that to transparent, which is\n exactly the case where the shadow is the only edge. --pie-tts-card-border\n is the opt-out (`transparent` restores the shadow-only card). */border:1px solid var(--pie-tts-card-border, color-mix(in srgb, var(--pie-text, #000) 15%, transparent));border-radius:0.5rem; /* Figma: --radius-8 (8px) */box-shadow:var(--pie-tts-menu-shadow, 0 1px 5px 0 rgba(0, 0, 0, 0.3));}\n\n /* Compact: the popper card holds the media row (rewind / fast-forward / stop)\n on top and the speed radios stacked below. The white card bg + shadow come\n from the shared overlay rule above; this only tunes the compact layout. */.pie-tool-tts-inline__panel--compact.svelte-18mzc0g {gap:0;width:fit-content;min-width:calc(7.5rem * var(--pie-tts-zoom-comp, 1)); /* ~120px floor; grows with content beyond that */height:auto; /* stacked popper grows past the 48px roomy toolbar height */padding:0;}\n\n /* Media controls (rewind / fast-forward / stop): accent glyph, no chrome. */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--secondary:where(.svelte-18mzc0g),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--secondary:where(.svelte-18mzc0g) {border:0;background:transparent;color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));}.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--secondary:where(.svelte-18mzc0g):hover:not(:disabled),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--secondary:where(.svelte-18mzc0g):hover:not(:disabled) {transform:none;box-shadow:none;background:color-mix(in srgb, var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222))) 12%, transparent);}\n\n /* Speed radios (inline / roomy): plain muted text with breathing room between\n options — min-width + side padding, matching the original inline spacing. */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g) {min-width:2.75rem;padding:0 0.625rem;border:1px solid transparent;background:transparent;box-shadow:none;\n /* Unselected labels are text on the card, so they take the full text colour\n rather than a dimmed mix: DaisyUI only guarantees base-content against the\n surface, and `valentine` is 5.46:1 there — a 10% dim already lands under\n 4.5:1. Hosts that want them dimmer set --pie-tts-inline-muted-color. */color:var(--pie-tts-inline-muted-color, var(--pie-button-color, var(--pie-text, #5b6b73)));font-size:1rem;}.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g):hover:not(:disabled),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g):hover:not(:disabled) {transform:none;box-shadow:none;background:color-mix(in srgb, var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222))) 8%, transparent);}\n\n /* Selected inline radio: \"chip\" treatment. Placed after the muted rule so it\n wins at equal specificity. The fill is --pie-button-active-bg, which the\n DaisyUI mapping already tunes (base-300 at 70% toward base-100) to hold\n base-content text at 4.5:1 in every shipped theme. */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-18mzc0g),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-18mzc0g) {border:1px solid var(--pie-selected-button-border, var(--pie-button-border, var(--pie-border, #d9dada)));border-radius:6px;background:var(--pie-selected-button-background, var(--pie-button-active-bg, #f3f5f7));color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));font-weight:600;}\n\n /* ── Compact left-aligned overlay ───────────────────────────────────────────\n Inside the popper card the media controls occupy the top row and the speed\n radios drop onto their own full-width line below, stacked vertically.\n `order` puts the speeds after the media buttons even though they are first in\n the DOM; flex-basis:100% forces the wrap so media occupy the top line. */.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g {order:1;flex-basis:100%;flex-direction:column;align-items:center;gap:0.125rem;}\n\n /* In the card every option reads in the accent colour; the selected one is\n lifted into a bordered chip. Options size to their content and centre (no\n full-width stretch), keeping the popper compact. */.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g) {justify-content:center;width:auto;min-width:0;height:auto;padding:0.25rem 0.75rem;border:1px solid transparent;border-radius:0.5rem;background:transparent;box-shadow:none;color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));font-size:0.75rem;font-weight:500;}.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-18mzc0g) {border:1px solid var(--pie-selected-button-border, var(--pie-button-border, var(--pie-border, #d9dada)));border-radius:6px;background:var(--pie-selected-button-background, var(--pie-button-active-bg, #f3f5f7));color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));font-weight:700;}\n\n /* Trigger size variants set the NDS outer size (--height-32); the glyph keeps\n the NDS-native icon size (host renders size=\"small\"). */.pie-tool-tts-inline__trigger--sm.svelte-18mzc0g {--height-32: 1.75rem;}.pie-tool-tts-inline__trigger--md.svelte-18mzc0g {--height-32: 2rem;}.pie-tool-tts-inline__trigger--lg.svelte-18mzc0g {--height-32: 2.5rem;}.pie-tool-tts-inline__icon.svelte-18mzc0g {font-size:1rem;line-height:1;color:currentColor;}\n\n @media (max-width: 839px) {.pie-tool-tts-inline.svelte-18mzc0g {gap:0.375rem;}.pie-tool-tts-inline__panel--compact.svelte-18mzc0g {padding:0;}\n\n /* NOTE: the trigger's --height-32 is intentionally NOT shrunk here. Browser\n zoom narrows the CSS viewport enough to trip this breakpoint, which would\n drop the play button to 1.75rem while the calculator button (furnished by\n the toolbar) stays 2rem, mismatching them under zoom. Size is governed by\n the zoom-compensation cap instead. */.pie-tool-tts-inline__control.svelte-18mzc0g {width:1.75rem;height:1.75rem;}.pie-tool-tts-inline__control.svelte-18mzc0g .pie-tool-tts-inline__icon:where(.svelte-18mzc0g) {font-size:1rem;}.pie-tool-tts-inline__control--speed.svelte-18mzc0g {width:auto;min-width:2.5rem;height:1.75rem;padding:0 0.5rem;}\n\n /* drop font-size on smaller screens */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g) {font-size:0.75rem;}\n }.pie-sr-only.svelte-18mzc0g {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;}\n\n @media (prefers-reduced-motion: reduce) {.pie-tool-tts-inline__control.svelte-18mzc0g {transition:none !important;}\n }"
|
|
3059
|
+
};
|
|
3060
|
+
function za(o, s) {
|
|
3061
|
+
Be(s, !0), Ir(o, Ra);
|
|
3062
|
+
let c = ni(s, "catalogId", 7, ""), l = ni(s, "language", 7, "en-US"), u = ni(s, "size", 7, "md"), d = ni(s, "speedOptions", 7, void 0), f = ni(s, "showSingleSpeedOption", 7, !1), p = ni(s, "layoutMode", 7, "expanding-row"), m = typeof window < "u", h = "__pie_tts_inline_active_owner__", g = "pie-tts-inline-owner-change", _ = ["/_fa-pro/fontawesome.min.css", "/_fa-pro/light.min.css"], v = "https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/css/all.min.css", y = /font.?awesome|fa-?pro/i, ee = !1, b = () => {
|
|
3063
|
+
if (!(!m || ee)) {
|
|
3064
|
+
if (ee = !0, !document.querySelector("link[href*=\"Roboto\"]")) {
|
|
3065
|
+
let e = document.createElement("link");
|
|
3066
|
+
e.rel = "stylesheet", e.href = "https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap", document.head.appendChild(e);
|
|
3067
|
+
}
|
|
3068
|
+
if (!Array.from(document.querySelectorAll("link[rel=\"stylesheet\"][href]")).some((e) => y.test(e.href))) {
|
|
3069
|
+
if (!document.querySelector(`link[href="${v}"]`)) {
|
|
3070
|
+
let e = document.createElement("link");
|
|
3071
|
+
e.rel = "stylesheet", e.href = v, document.head.appendChild(e);
|
|
3072
|
+
}
|
|
3073
|
+
for (let e of _) {
|
|
3074
|
+
if (document.querySelector(`link[href="${e}"]`)) continue;
|
|
3075
|
+
let t = document.createElement("link");
|
|
3076
|
+
t.rel = "stylesheet", t.href = e, document.head.appendChild(t);
|
|
3077
|
+
}
|
|
3078
|
+
}
|
|
3079
|
+
}
|
|
3080
|
+
}, x = "__pieFaTtsShadowInstalled", te = (e) => {
|
|
3081
|
+
let t = e.getRootNode();
|
|
3082
|
+
if (!(t instanceof ShadowRoot)) return;
|
|
3083
|
+
let n = t;
|
|
3084
|
+
if (n[x]) return;
|
|
3085
|
+
n[x] = !0;
|
|
3086
|
+
let r = /* @__PURE__ */ new Set(), i = (e) => {
|
|
3087
|
+
if (!e || r.has(e)) return;
|
|
3088
|
+
r.add(e);
|
|
3089
|
+
let n = document.createElement("link");
|
|
3090
|
+
n.rel = "stylesheet", n.href = e, t.appendChild(n);
|
|
3091
|
+
}, a = Array.from(document.querySelectorAll("link[rel=\"stylesheet\"][href]")).filter((e) => y.test(e.href));
|
|
3092
|
+
for (let e of a) i(e.href);
|
|
3093
|
+
}, S = (e) => {
|
|
3094
|
+
b(), te(e);
|
|
3095
|
+
let t = () => {
|
|
3096
|
+
for (let t of e.querySelectorAll("i.fa-light")) t.classList.remove("fa-light"), t.classList.add("fa-solid");
|
|
3097
|
+
};
|
|
3098
|
+
t();
|
|
3099
|
+
let n = new MutationObserver(t);
|
|
3100
|
+
return n.observe(e, {
|
|
3101
|
+
childList: !0,
|
|
3102
|
+
subtree: !0,
|
|
3103
|
+
attributes: !0,
|
|
3104
|
+
attributeFilter: ["class"]
|
|
3105
|
+
}), { destroy() {
|
|
3106
|
+
n.disconnect();
|
|
3107
|
+
} };
|
|
3108
|
+
}, C = (e, t) => {
|
|
3109
|
+
let n = t, r = () => {
|
|
3110
|
+
let t = e.querySelector("button");
|
|
3111
|
+
if (t) for (let [e, r] of Object.entries(n)) r == null ? t.removeAttribute(e) : t.setAttribute(e, r);
|
|
3112
|
+
};
|
|
3113
|
+
r();
|
|
3114
|
+
let i = new MutationObserver(r);
|
|
3115
|
+
return i.observe(e, {
|
|
3116
|
+
childList: !0,
|
|
3117
|
+
subtree: !0
|
|
3118
|
+
}), {
|
|
3119
|
+
update(e) {
|
|
3120
|
+
n = e, r();
|
|
3121
|
+
},
|
|
3122
|
+
destroy() {
|
|
3123
|
+
i.disconnect();
|
|
3124
|
+
}
|
|
3125
|
+
};
|
|
3126
|
+
}, ne = (e) => (b(), te(e), {}), w = /* @__PURE__ */ V(void 0), T = /* @__PURE__ */ V(void 0), re = /* @__PURE__ */ V(null), ie = /* @__PURE__ */ z(() => Z(re)?.ndsIcons === !0), E = /* @__PURE__ */ V(null), ae = /* @__PURE__ */ V(null), D = /* @__PURE__ */ z(() => Z(re)?.ttsService), oe = /* @__PURE__ */ z(() => Z(re)?.highlightCoordinator), se = /* @__PURE__ */ z(() => Z(ae)?.scopeElement || Z(E)?.scopeElement || null), O = /* @__PURE__ */ V(!1), ce = /* @__PURE__ */ V(!1), k = /* @__PURE__ */ V(!1), A = /* @__PURE__ */ V(!1), j = /* @__PURE__ */ V(""), le = /* @__PURE__ */ V(null), ue = /* @__PURE__ */ V(null), de = /* @__PURE__ */ V(!1), fe = /* @__PURE__ */ V(!1), pe = /* @__PURE__ */ V(!1), me = null, he = /* @__PURE__ */ z(() => Z(de) || Z(fe)), ge = null, _e = /* @__PURE__ */ z(() => t(d())), ve = /* @__PURE__ */ z(() => Ae(Z(_e))), ye = /* @__PURE__ */ z(() => Z(_e).length > 1 || f() ? Z(_e) : []), be = /* @__PURE__ */ z(() => Z(le) !== null && Z(ue) === Z(ve) && Z(_e).some((e) => e.rate === Z(le)) ? Z(le) : M(Z(_e))), xe = `pie-tts-inline-instance-${Math.random().toString(36).slice(2)}`, Se = `pie-tts-inline-${Math.random().toString(36).slice(2)}`, Ce = `${xe}-controls`;
|
|
3127
|
+
function we() {
|
|
3128
|
+
if (!m) return null;
|
|
3129
|
+
let e = window[h];
|
|
3130
|
+
return typeof e == "string" ? e : null;
|
|
3131
|
+
}
|
|
3132
|
+
function Te() {
|
|
3133
|
+
return we() === xe;
|
|
3134
|
+
}
|
|
3135
|
+
function Ee(e, t) {
|
|
3136
|
+
m && window.dispatchEvent(new CustomEvent(g, { detail: {
|
|
3137
|
+
ownerId: e,
|
|
3138
|
+
previousOwnerId: t
|
|
3139
|
+
} }));
|
|
3140
|
+
}
|
|
3141
|
+
function De() {
|
|
3142
|
+
if (!m) return;
|
|
3143
|
+
let e = we();
|
|
3144
|
+
e !== xe && (window[h] = xe, Ee(xe, e));
|
|
3145
|
+
}
|
|
3146
|
+
function Oe() {
|
|
3147
|
+
m && we() === xe && (delete window[h], Ee(null, xe));
|
|
3148
|
+
}
|
|
3149
|
+
function ke(e = "", t = !1) {
|
|
3150
|
+
H(fe, !1), H(k, !1), H(A, !1), H(O, t, !0), H(j, e, !0);
|
|
3151
|
+
}
|
|
3152
|
+
function Ae(e) {
|
|
3153
|
+
return e.map((e) => `${e.rate}:${e.label}:${e.ariaLabel}:${e.isDefault ? "1" : "0"}`).join("|");
|
|
3154
|
+
}
|
|
3155
|
+
function M(e) {
|
|
3156
|
+
return e.find((e) => e.isDefault)?.rate ?? e.find((e) => e.rate === 1)?.rate ?? e[0]?.rate ?? 1;
|
|
3157
|
+
}
|
|
3158
|
+
async function N(e, t) {
|
|
3159
|
+
if (typeof e.setPlaybackRate == "function") {
|
|
3160
|
+
await e.setPlaybackRate(t);
|
|
3161
|
+
return;
|
|
3162
|
+
}
|
|
3163
|
+
await e.updateSettings({ rate: t });
|
|
3164
|
+
}
|
|
3165
|
+
function P() {
|
|
3166
|
+
if (!Z(w) || !Z(T)) return !1;
|
|
3167
|
+
let e = Z(w).getRootNode();
|
|
3168
|
+
if (!(e instanceof ShadowRoot)) return !1;
|
|
3169
|
+
let t = e.activeElement;
|
|
3170
|
+
return !!(t && Z(T).contains(t));
|
|
3171
|
+
}
|
|
3172
|
+
function F() {
|
|
3173
|
+
if (!Z(T)) return !1;
|
|
3174
|
+
let e = Z(T).getRootNode();
|
|
3175
|
+
if (!(e instanceof ShadowRoot)) return !1;
|
|
3176
|
+
let t = e.activeElement;
|
|
3177
|
+
return !t || !Z(T).contains(t) ? !1 : t.matches(Re);
|
|
3178
|
+
}
|
|
3179
|
+
function je() {
|
|
3180
|
+
let e = Z(T)?.querySelector(I);
|
|
3181
|
+
if (e && !e.disabled) {
|
|
3182
|
+
e.focus();
|
|
3183
|
+
return;
|
|
3184
|
+
}
|
|
3185
|
+
Ne(!0);
|
|
3186
|
+
}
|
|
3187
|
+
function Ne(e) {
|
|
3188
|
+
if (!Z(w) || !e) return;
|
|
3189
|
+
let t = Z(w).getRootNode();
|
|
3190
|
+
if (!(t instanceof ShadowRoot)) return;
|
|
3191
|
+
let n = t.querySelector(".pie-tool-tts-inline__trigger");
|
|
3192
|
+
(n?.querySelector("button") ?? n)?.focus();
|
|
3193
|
+
}
|
|
3194
|
+
function Pe(e = "Reading switched to another section", t = !1) {
|
|
3195
|
+
if (!Z(pe) && !(!Z(O) && !Te())) {
|
|
3196
|
+
H(pe, !0);
|
|
3197
|
+
try {
|
|
3198
|
+
let n = P();
|
|
3199
|
+
Te() && Oe(), ke(e), L(), t && queueMicrotask(() => {
|
|
3200
|
+
Ne(n);
|
|
3201
|
+
});
|
|
3202
|
+
} finally {
|
|
3203
|
+
H(pe, !1);
|
|
3204
|
+
}
|
|
3205
|
+
}
|
|
3206
|
+
}
|
|
3207
|
+
fn(() => {
|
|
3208
|
+
if (Z(w)) return r(Z(w), (e) => {
|
|
3209
|
+
H(re, e, !0);
|
|
3210
|
+
});
|
|
3211
|
+
}), fn(() => {
|
|
3212
|
+
if (!Z(w)) return;
|
|
3213
|
+
let t = e(Z(w), (e) => {
|
|
3214
|
+
H(E, e, !0);
|
|
3215
|
+
}), n = i(Z(w), (e) => {
|
|
3216
|
+
H(ae, e, !0);
|
|
3217
|
+
});
|
|
3218
|
+
return () => {
|
|
3219
|
+
n(), t();
|
|
3220
|
+
};
|
|
3221
|
+
}), fn(() => {
|
|
3222
|
+
if (!Z(D)) return;
|
|
3223
|
+
let e = (e) => {
|
|
3224
|
+
if (!Z(O) || !Te()) {
|
|
3225
|
+
H(k, !1), H(A, !1);
|
|
3226
|
+
return;
|
|
3227
|
+
}
|
|
3228
|
+
H(k, e === "playing" || e === "paused", !0), H(A, e === "paused");
|
|
3229
|
+
}, t = (t) => {
|
|
3230
|
+
let n = String(t), r = F();
|
|
3231
|
+
e(n), n === "playing" && H(fe, !1), n === "playing" && Z(j) === "Starting reading" && H(j, "Reading started"), (n === "error" || n === "idle") && H(fe, !1), r && !Z(k) && queueMicrotask(je);
|
|
3232
|
+
};
|
|
3233
|
+
return Z(D).onStateChange(Se, t), e(Z(D).getState()), () => {
|
|
3234
|
+
Z(D).offStateChange(Se, t);
|
|
3235
|
+
};
|
|
3236
|
+
}), fn(() => {
|
|
3237
|
+
if (!m) return;
|
|
3238
|
+
let e = (e) => {
|
|
3239
|
+
let { ownerId: t = null, previousOwnerId: n = null } = e.detail || {};
|
|
3240
|
+
n === xe && t !== xe && Pe("Reading switched to another section");
|
|
3241
|
+
};
|
|
3242
|
+
return window.addEventListener(g, e), () => {
|
|
3243
|
+
window.removeEventListener(g, e);
|
|
3244
|
+
};
|
|
3245
|
+
}), fn(() => {
|
|
3246
|
+
if (!m) return;
|
|
3247
|
+
let e = () => {
|
|
3248
|
+
Pe("Reading switched to another section", !0);
|
|
3249
|
+
};
|
|
3250
|
+
return window.addEventListener(n, e), () => {
|
|
3251
|
+
window.removeEventListener(n, e);
|
|
3252
|
+
};
|
|
3253
|
+
}), fn(() => () => {
|
|
3254
|
+
Oe(), L();
|
|
3255
|
+
});
|
|
3256
|
+
async function Fe() {
|
|
3257
|
+
if (!Z(D)) return !1;
|
|
3258
|
+
try {
|
|
3259
|
+
return await Z(re)?.toolkitCoordinator?.ensureTTSReady?.(), !0;
|
|
3260
|
+
} catch (e) {
|
|
3261
|
+
return console.error("[TTS Inline] Failed to initialize TTS:", e), !1;
|
|
3262
|
+
}
|
|
3263
|
+
}
|
|
3264
|
+
let Ie = "[data-pie-tts-speed-rate]", Le = "[data-pie-tts-media]", Re = "[data-pie-tts-seek]", I = "[data-pie-tts-stop]";
|
|
3265
|
+
function ze(e) {
|
|
3266
|
+
return Z(T) ? Array.from(Z(T).querySelectorAll(e)).filter((e) => !e.disabled && window.getComputedStyle(e).display !== "none") : [];
|
|
3267
|
+
}
|
|
3268
|
+
function He(e, t) {
|
|
3269
|
+
let n = ze(e);
|
|
3270
|
+
if (!n.length) return;
|
|
3271
|
+
let r = n[(t + n.length) % n.length];
|
|
3272
|
+
if (r.focus(), e !== Ie) return;
|
|
3273
|
+
let i = Number(r.dataset.pieTtsSpeedRate), a = Z(ye).find((e) => e.rate === i);
|
|
3274
|
+
a && et(a);
|
|
3275
|
+
}
|
|
3276
|
+
function Ue(e, t) {
|
|
3277
|
+
let n = ze(e);
|
|
3278
|
+
if (!n.length) return;
|
|
3279
|
+
let r = Z(T)?.getRootNode(), i = r instanceof ShadowRoot ? r.activeElement : null, a = i ? n.indexOf(i) : -1;
|
|
3280
|
+
He(e, a === -1 ? 0 : a + t);
|
|
3281
|
+
}
|
|
3282
|
+
function We(e, t) {
|
|
3283
|
+
switch (t.key) {
|
|
3284
|
+
case "ArrowDown":
|
|
3285
|
+
case "ArrowRight":
|
|
3286
|
+
t.preventDefault(), Ue(e, 1);
|
|
3287
|
+
break;
|
|
3288
|
+
case "ArrowUp":
|
|
3289
|
+
case "ArrowLeft":
|
|
3290
|
+
t.preventDefault(), Ue(e, -1);
|
|
3291
|
+
break;
|
|
3292
|
+
case "Home":
|
|
3293
|
+
t.preventDefault(), He(e, 0);
|
|
3294
|
+
break;
|
|
3295
|
+
case "End": t.preventDefault(), He(e, -1);
|
|
3296
|
+
}
|
|
3297
|
+
}
|
|
3298
|
+
function Ge() {
|
|
3299
|
+
if (!Z(se)) return null;
|
|
3300
|
+
let e = Z(se);
|
|
3301
|
+
if (e.getAttribute?.("data-region") === "content") return e;
|
|
3302
|
+
let t = e.querySelector?.("[data-region='content']");
|
|
3303
|
+
return t instanceof Element ? t : e;
|
|
3304
|
+
}
|
|
3305
|
+
function Ke() {
|
|
3306
|
+
if (Z(E)) return a({
|
|
3307
|
+
kind: Z(E).kind,
|
|
3308
|
+
assessmentId: Z(re)?.assessmentId,
|
|
3309
|
+
sectionId: Z(re)?.sectionId,
|
|
3310
|
+
itemId: Z(E).itemId,
|
|
3311
|
+
canonicalItemId: Z(E).canonicalItemId || Z(E).itemId
|
|
3312
|
+
});
|
|
3313
|
+
}
|
|
3314
|
+
function qe(e) {
|
|
3315
|
+
return L(), me = Z(D)?.setHighlightTargetResolverProvider?.(() => ({
|
|
3316
|
+
context: {
|
|
3317
|
+
scopeElement: Z(ae)?.scopeElement || e || null,
|
|
3318
|
+
kind: Z(E)?.kind,
|
|
3319
|
+
itemId: Z(E)?.itemId,
|
|
3320
|
+
canonicalItemId: Z(E)?.canonicalItemId,
|
|
3321
|
+
contentKind: Z(E)?.contentKind,
|
|
3322
|
+
regionPolicy: Z(E)?.regionPolicy
|
|
3323
|
+
},
|
|
3324
|
+
resolver: Z(ae)?.ttsHighlightTargetResolver || null
|
|
3325
|
+
})) || null, me;
|
|
3326
|
+
}
|
|
3327
|
+
function L(e = me) {
|
|
3328
|
+
e?.(), e === me && (me = null);
|
|
3329
|
+
}
|
|
3330
|
+
function Je() {
|
|
3331
|
+
if (!Te()) return !1;
|
|
3332
|
+
let e = String(Z(D)?.getState?.() || "");
|
|
3333
|
+
return e === "playing" || e === "paused" || e === "loading";
|
|
3334
|
+
}
|
|
3335
|
+
function R(e) {
|
|
3336
|
+
let t = P();
|
|
3337
|
+
ke("Unable to start reading"), Te() && Oe(), Z(oe) && Z(oe).clearTTS(), L(e), t && queueMicrotask(() => {
|
|
3338
|
+
Ne(!0);
|
|
3339
|
+
});
|
|
3340
|
+
}
|
|
3341
|
+
async function Ye() {
|
|
3342
|
+
if (!Z(D)) return;
|
|
3343
|
+
let e = null, t = Ge();
|
|
3344
|
+
if (!t) {
|
|
3345
|
+
console.warn("[TTS Inline] No target container found from shell scope context");
|
|
3346
|
+
return;
|
|
3347
|
+
}
|
|
3348
|
+
try {
|
|
3349
|
+
H(O, !0);
|
|
3350
|
+
let n = t.textContent || "";
|
|
3351
|
+
if (!n) {
|
|
3352
|
+
console.warn("[TTS Inline] No text content found");
|
|
3353
|
+
return;
|
|
3354
|
+
}
|
|
3355
|
+
Z(oe) && Z(D).setHighlightCoordinator && Z(D).setHighlightCoordinator(Z(oe)), await N(Z(D), Z(be)), ge = {
|
|
3356
|
+
service: Z(D),
|
|
3357
|
+
choicesKey: Z(ve)
|
|
3358
|
+
}, e = qe(t), Z(D).setRootElement?.(t), H(fe, !0), H(j, "Starting reading"), Z(D).speak(n, {
|
|
3359
|
+
catalogId: c() || void 0,
|
|
3360
|
+
catalogContext: Ke(),
|
|
3361
|
+
language: l(),
|
|
3362
|
+
contentElement: t
|
|
3363
|
+
}).catch((t) => {
|
|
3364
|
+
console.error("[TTS Inline] Error:", t), R(e);
|
|
3365
|
+
}).finally(() => {
|
|
3366
|
+
Je() || L(e);
|
|
3367
|
+
});
|
|
3368
|
+
} catch (t) {
|
|
3369
|
+
console.error("[TTS Inline] Error:", t), R(e);
|
|
3370
|
+
}
|
|
3371
|
+
}
|
|
3372
|
+
async function Xe() {
|
|
3373
|
+
if (Z(D) && !(Z(he) || Te() && String(Z(D).getState?.() || "") === "loading")) {
|
|
3374
|
+
if (Te() && Z(A)) {
|
|
3375
|
+
Z(D).resume(), H(j, "Reading resumed");
|
|
3376
|
+
return;
|
|
3377
|
+
}
|
|
3378
|
+
if (Te() && Z(k) && !Z(A)) {
|
|
3379
|
+
Z(D).pause(), H(j, "Reading paused");
|
|
3380
|
+
return;
|
|
3381
|
+
}
|
|
3382
|
+
if (!Z(de)) {
|
|
3383
|
+
H(de, !0);
|
|
3384
|
+
try {
|
|
3385
|
+
if (H(j, "Initializing text-to-speech"), !await Fe()) {
|
|
3386
|
+
H(j, "Unable to initialize text-to-speech. Try again.");
|
|
3387
|
+
return;
|
|
3388
|
+
}
|
|
3389
|
+
let e = String(Z(D).getState?.() || "");
|
|
3390
|
+
(e === "playing" || e === "paused" || e === "loading") && !Te() && Z(D).stop(), De(), await Ye();
|
|
3391
|
+
} finally {
|
|
3392
|
+
H(de, !1);
|
|
3393
|
+
}
|
|
3394
|
+
}
|
|
3395
|
+
}
|
|
3396
|
+
}
|
|
3397
|
+
function Ze() {
|
|
3398
|
+
if (!Z(D)) return;
|
|
3399
|
+
let e = P();
|
|
3400
|
+
Z(D).stop(), Oe(), ke("Reading stopped"), Z(oe) && Z(oe).clearTTS(), L(), e && queueMicrotask(() => {
|
|
3401
|
+
Ne(!0);
|
|
3402
|
+
});
|
|
3403
|
+
}
|
|
3404
|
+
async function Qe() {
|
|
3405
|
+
if (!(!Z(D) || !Z(k))) try {
|
|
3406
|
+
await Z(D).seekForward?.(1), H(j, "Skipped forward");
|
|
3407
|
+
} catch (e) {
|
|
3408
|
+
console.error("[TTS Inline] Seek forward failed:", e), H(j, "Unable to skip forward");
|
|
3409
|
+
}
|
|
3410
|
+
}
|
|
3411
|
+
async function $e() {
|
|
3412
|
+
if (!(!Z(D) || !Z(k))) try {
|
|
3413
|
+
await Z(D).seekBackward?.(1), H(j, "Skipped backward");
|
|
3414
|
+
} catch (e) {
|
|
3415
|
+
console.error("[TTS Inline] Seek backward failed:", e), H(j, "Unable to skip backward");
|
|
3416
|
+
}
|
|
3417
|
+
}
|
|
3418
|
+
async function et(e) {
|
|
3419
|
+
let t = Z(D);
|
|
3420
|
+
if (!t) return;
|
|
3421
|
+
if (Z(be) === e.rate) {
|
|
3422
|
+
H(j, `Playback speed ${e.label}`);
|
|
3423
|
+
return;
|
|
3424
|
+
}
|
|
3425
|
+
let n = Z(le), r = Z(ue);
|
|
3426
|
+
H(le, e.rate, !0), H(ue, Z(ve), !0), H(j, `Playback speed ${e.label}`);
|
|
3427
|
+
let i = {
|
|
3428
|
+
service: t,
|
|
3429
|
+
choicesKey: Z(ve)
|
|
3430
|
+
};
|
|
3431
|
+
ge = i;
|
|
3432
|
+
try {
|
|
3433
|
+
await N(t, e.rate);
|
|
3434
|
+
} catch (e) {
|
|
3435
|
+
ge === i && (ge = null), console.error("[TTS Inline] Playback speed change failed:", e), H(le, n, !0), H(ue, r, !0), H(j, "Unable to change playback speed");
|
|
3436
|
+
}
|
|
3437
|
+
}
|
|
3438
|
+
let tt = /* @__PURE__ */ z(() => u() === "sm" ? "pie-tool-tts-inline__trigger--sm" : u() === "lg" ? "pie-tool-tts-inline__trigger--lg" : "pie-tool-tts-inline__trigger--md"), nt = /* @__PURE__ */ z(() => p() === "reserved-row" || p() === "expanding-row"), rt = /* @__PURE__ */ z(() => p() === "floating-overlay"), it = /* @__PURE__ */ z(() => p() === "left-aligned"), at = /* @__PURE__ */ z(() => Z(rt) || Z(it)), ot = ka(Ea), st = "[data-pie-tool-overlay-boundary]", ct = /* @__PURE__ */ V(""), lt = /* @__PURE__ */ V(0);
|
|
3439
|
+
fn(() => {
|
|
3440
|
+
let e = Z(D), t = Z(ve), n = Z(k) || Z(A);
|
|
3441
|
+
if (!e || !n || !Te() || ge?.service === e && ge.choicesKey === t) return;
|
|
3442
|
+
let r = {
|
|
3443
|
+
service: e,
|
|
3444
|
+
choicesKey: t
|
|
3445
|
+
};
|
|
3446
|
+
ge = r;
|
|
3447
|
+
let i = !1;
|
|
3448
|
+
return queueMicrotask(() => {
|
|
3449
|
+
i || ge !== r || N(e, Z(be)).catch((e) => {
|
|
3450
|
+
ge === r && (ge = null), console.error("[TTS Inline] External playback speed sync failed:", e);
|
|
3451
|
+
});
|
|
3452
|
+
}), () => {
|
|
3453
|
+
i = !0;
|
|
3454
|
+
};
|
|
3455
|
+
});
|
|
3456
|
+
function ut(e, t) {
|
|
3457
|
+
let n = e;
|
|
3458
|
+
for (; n;) {
|
|
3459
|
+
if (n.matches?.(t)) return n;
|
|
3460
|
+
n = n.parentElement ?? (n.getRootNode() instanceof ShadowRoot ? n.getRootNode().host : null);
|
|
3461
|
+
}
|
|
3462
|
+
return null;
|
|
3463
|
+
}
|
|
3464
|
+
function dt() {
|
|
3465
|
+
let e = Z(w)?.getRootNode();
|
|
3466
|
+
return e instanceof ShadowRoot ? e.querySelector(".pie-tool-tts-inline__trigger") : null;
|
|
3467
|
+
}
|
|
3468
|
+
function ft(e) {
|
|
3469
|
+
let t = window.getComputedStyle(e), n = parseFloat(t.columnGap || t.gap) || 0, r = (parseFloat(t.paddingLeft) || 0) + (parseFloat(t.paddingRight) || 0) + (parseFloat(t.borderLeftWidth) || 0) + (parseFloat(t.borderRightWidth) || 0), i = Array.from(e.children).filter((e) => window.getComputedStyle(e).display !== "none");
|
|
3470
|
+
return i.length ? i.reduce((e, t) => e + t.offsetWidth, 0) + (i.length - 1) * n + r : 0;
|
|
3471
|
+
}
|
|
3472
|
+
function pt() {
|
|
3473
|
+
let e = dt();
|
|
3474
|
+
if (!e || !Z(T)) return;
|
|
3475
|
+
let t = e.getBoundingClientRect(), n = ut(e, st)?.getBoundingClientRect().left ?? 0, r = Math.max(0, t.left - n - 16);
|
|
3476
|
+
if (!Z(ce)) {
|
|
3477
|
+
let e = ft(Z(T));
|
|
3478
|
+
e > 0 && H(lt, e, !0);
|
|
3479
|
+
}
|
|
3480
|
+
H(ce, Z(lt) > 0 && r < Z(lt), !0);
|
|
3481
|
+
let i = Z(T).offsetHeight || t.height;
|
|
3482
|
+
H(ct, `top: ${Z(ce) ? t.top : t.top + t.height / 2 - i / 2}px; right: ${window.innerWidth - t.left + 8}px; left: auto; max-width: min(${r}px, var(--pie-tts-left-aligned-panel-width, ${r}px));`);
|
|
3483
|
+
}
|
|
3484
|
+
fn(() => {
|
|
3485
|
+
if (!Z(it) || !Z(O)) {
|
|
3486
|
+
H(ct, ""), H(ce, !1), H(lt, 0);
|
|
3487
|
+
return;
|
|
3488
|
+
}
|
|
3489
|
+
if (typeof window > "u") return;
|
|
3490
|
+
let e = 0, t = () => {
|
|
3491
|
+
e ||= window.requestAnimationFrame(() => {
|
|
3492
|
+
e = 0, pt();
|
|
3493
|
+
});
|
|
3494
|
+
};
|
|
3495
|
+
pt(), window.addEventListener("resize", t), window.addEventListener("scroll", t, !0);
|
|
3496
|
+
let n = dt(), r = new ResizeObserver(t);
|
|
3497
|
+
n && r.observe(n), Z(T) && r.observe(Z(T));
|
|
3498
|
+
let i = n ? ut(n, st) : null;
|
|
3499
|
+
i && r.observe(i);
|
|
3500
|
+
let a = i?.querySelector("[data-pie-tool-overlay-protect]");
|
|
3501
|
+
return a && r.observe(a), () => {
|
|
3502
|
+
e && window.cancelAnimationFrame(e), window.removeEventListener("resize", t), window.removeEventListener("scroll", t, !0), r.disconnect();
|
|
3503
|
+
};
|
|
3504
|
+
});
|
|
3505
|
+
function mt() {
|
|
3506
|
+
if (!Z(w)) return null;
|
|
3507
|
+
let e = Z(w).getRootNode();
|
|
3508
|
+
return e instanceof ShadowRoot ? e.host : null;
|
|
3509
|
+
}
|
|
3510
|
+
fn(() => {
|
|
3511
|
+
let e = mt();
|
|
3512
|
+
if (!e) return;
|
|
3513
|
+
let t = Z(O) === !0;
|
|
3514
|
+
e.setAttribute("data-active", t ? "true" : "false");
|
|
3515
|
+
let n = !1;
|
|
3516
|
+
return queueMicrotask(() => {
|
|
3517
|
+
n || e.dispatchEvent(new CustomEvent("pie-tool-active-change", {
|
|
3518
|
+
detail: { active: t },
|
|
3519
|
+
bubbles: !0,
|
|
3520
|
+
composed: !0
|
|
3521
|
+
}));
|
|
3522
|
+
}), () => {
|
|
3523
|
+
n = !0;
|
|
3524
|
+
};
|
|
3525
|
+
});
|
|
3526
|
+
var ht = {
|
|
3527
|
+
get catalogId() {
|
|
3528
|
+
return c();
|
|
3529
|
+
},
|
|
3530
|
+
set catalogId(e = "") {
|
|
3531
|
+
c(e), kt();
|
|
3532
|
+
},
|
|
3533
|
+
get language() {
|
|
3534
|
+
return l();
|
|
3535
|
+
},
|
|
3536
|
+
set language(e = "en-US") {
|
|
3537
|
+
l(e), kt();
|
|
3538
|
+
},
|
|
3539
|
+
get size() {
|
|
3540
|
+
return u();
|
|
3541
|
+
},
|
|
3542
|
+
set size(e = "md") {
|
|
3543
|
+
u(e), kt();
|
|
3544
|
+
},
|
|
3545
|
+
get speedOptions() {
|
|
3546
|
+
return d();
|
|
3547
|
+
},
|
|
3548
|
+
set speedOptions(e = void 0) {
|
|
3549
|
+
d(e), kt();
|
|
3550
|
+
},
|
|
3551
|
+
get showSingleSpeedOption() {
|
|
3552
|
+
return f();
|
|
3553
|
+
},
|
|
3554
|
+
set showSingleSpeedOption(e = !1) {
|
|
3555
|
+
f(e), kt();
|
|
3556
|
+
},
|
|
3557
|
+
get layoutMode() {
|
|
3558
|
+
return p();
|
|
3559
|
+
},
|
|
3560
|
+
set layoutMode(e = "expanding-row") {
|
|
3561
|
+
p(e), kt();
|
|
3562
|
+
}
|
|
3563
|
+
}, gt = hr(), _t = en(gt), vt = (e) => {
|
|
3564
|
+
var t = La();
|
|
3565
|
+
let n;
|
|
3566
|
+
{
|
|
3567
|
+
let e = (e) => {
|
|
3568
|
+
var t = Ma(), n = $t(t), r = (e) => {
|
|
3569
|
+
var t = Aa();
|
|
3570
|
+
Xr(t, "type", "circle"), Xr(t, "size", "small"), Xr(t, "variant", "tertiary"), yn(() => Xr(t, "icon-name", Z(k) && !Z(A) ? "pause" : "play")), yn(() => Xr(t, "button-aria-label", Z(k) && !Z(A) ? "Pause reading" : Z(A) ? "Resume reading" : "Play reading")), yn(() => Xr(t, "disabled", !Z(D))), Lr(t, (e) => S?.(e)), Lr(t, (e, t) => C?.(e, t), () => ({
|
|
3571
|
+
"aria-expanded": Z(O) ? "true" : "false",
|
|
3572
|
+
"aria-controls": Z(O) ? Ce : null,
|
|
3573
|
+
"aria-pressed": Z(O) ? "true" : "false",
|
|
3574
|
+
"aria-busy": Z(he) ? "true" : null
|
|
3575
|
+
})), yn(() => Ur(t, 1, `pie-tool-tts-inline__trigger ${Z(tt) ?? ""}`, "svelte-18mzc0g")), or("click", t, Xe), Q(e, t);
|
|
3576
|
+
}, i = (e) => {
|
|
3577
|
+
var t = ja(), n = $t(t);
|
|
3578
|
+
Me(t), Lr(t, (e) => ne?.(e)), yn(() => {
|
|
3579
|
+
Ur(t, 1, `pie-tool-tts-inline__control pie-tool-tts-inline__trigger pie-tool-tts-inline__trigger--plain ${Z(tt) ?? ""}`, "svelte-18mzc0g"), Yr(t, "aria-expanded", Z(O) ? "true" : "false"), Yr(t, "aria-controls", Z(O) ? Ce : void 0), Yr(t, "aria-pressed", Z(O) ? "true" : "false"), Yr(t, "aria-label", Z(k) && !Z(A) ? "Pause reading" : Z(A) ? "Resume reading" : "Play reading"), Yr(t, "aria-busy", Z(he) ? "true" : void 0), t.disabled = !Z(D), Ur(n, 1, `fa-solid ${Z(k) && !Z(A) ? "fa-pause" : "fa-play"} pie-tool-tts-inline__icon`, "svelte-18mzc0g");
|
|
3580
|
+
}), or("click", t, Xe), Q(e, t);
|
|
3581
|
+
};
|
|
3582
|
+
Er(n, (e) => {
|
|
3583
|
+
Z(ie) ? e(r) : e(i, -1);
|
|
3584
|
+
}), Me(t), Q(e, t);
|
|
3585
|
+
}, n = (e) => {
|
|
3586
|
+
var t = hr(), n = en(t), r = (e) => {
|
|
3587
|
+
var t = Fa();
|
|
3588
|
+
let n;
|
|
3589
|
+
var r = $t(t), i = (e) => {
|
|
3590
|
+
var t = Pa();
|
|
3591
|
+
let n;
|
|
3592
|
+
Ar(t, 21, () => Z(ye), (e) => e.rate, (e, t) => {
|
|
3593
|
+
var n = Na(), r = $t(n), i = $t(r, !0);
|
|
3594
|
+
Me(r), Me(n), yn(() => {
|
|
3595
|
+
Yr(n, "data-pie-tts-speed-rate", Z(t).rate), Yr(n, "tabindex", Z(be) === Z(t).rate ? 0 : -1), Yr(n, "aria-label", Z(t).ariaLabel), Yr(n, "aria-checked", Z(be) === Z(t).rate), n.disabled = !Z(D), Yr(r, "data-label", Z(t).label), vr(i, Z(t).label);
|
|
3596
|
+
}), or("click", n, () => et(Z(t))), or("keydown", n, (e) => We(Ie, e)), Q(e, n);
|
|
3597
|
+
}), Me(t), yn(() => n = Ur(t, 1, "pie-tool-tts-inline__speed-group svelte-18mzc0g", null, n, { "pie-tool-tts-inline__speed-group--stacked": Z(ce) })), Q(e, t);
|
|
3598
|
+
};
|
|
3599
|
+
Er(r, (e) => {
|
|
3600
|
+
Z(ye).length > 0 && e(i);
|
|
3601
|
+
});
|
|
3602
|
+
var a = tn(r, 2), o = tn(a, 2), s = tn(o, 2);
|
|
3603
|
+
Me(t), ti(t, (e) => H(T, e), () => Z(T)), yn(() => {
|
|
3604
|
+
Yr(t, "id", Ce), n = Ur(t, 1, "pie-tool-tts-inline__panel svelte-18mzc0g", null, n, {
|
|
3605
|
+
"pie-tool-tts-inline__panel--floating": Z(rt),
|
|
3606
|
+
"pie-tool-tts-inline__panel--row": Z(nt),
|
|
3607
|
+
"pie-tool-tts-inline__panel--left-aligned-inline": Z(it),
|
|
3608
|
+
"pie-tool-tts-inline__panel--compact": Z(it) && Z(ce)
|
|
3609
|
+
}), Gr(t, Z(it) ? Z(ct) : ""), a.disabled = !Z(D) || !Z(k), o.disabled = !Z(D) || !Z(k), s.disabled = !Z(D);
|
|
3610
|
+
}), or("click", a, $e), or("keydown", a, (e) => We(Le, e)), or("click", o, Qe), or("keydown", o, (e) => We(Le, e)), or("click", s, Ze), or("keydown", s, (e) => We(Le, e)), Q(e, t);
|
|
3611
|
+
};
|
|
3612
|
+
Er(n, (e) => {
|
|
3613
|
+
Z(O) && e(r);
|
|
3614
|
+
}), Q(e, t);
|
|
3615
|
+
};
|
|
3616
|
+
var r = $t(t), i = (t) => {
|
|
3617
|
+
var r = Ia(), i = en(r);
|
|
3618
|
+
n(i), e(tn(i, 2)), Q(t, r);
|
|
3619
|
+
}, a = (t) => {
|
|
3620
|
+
var r = Ia(), i = en(r);
|
|
3621
|
+
e(i), n(tn(i, 2)), Q(t, r);
|
|
3622
|
+
};
|
|
3623
|
+
Er(r, (e) => {
|
|
3624
|
+
Z(at) ? e(i) : e(a, -1);
|
|
3625
|
+
});
|
|
3626
|
+
var o = tn(r, 2), s = $t(o, !0);
|
|
3627
|
+
Me(o), Me(t), ti(t, (e) => H(w, e), () => Z(w)), yn(() => vr(s, Z(j)));
|
|
3628
|
+
}
|
|
3629
|
+
yn(() => {
|
|
3630
|
+
n = Ur(t, 1, "pie-tool-tts-inline svelte-18mzc0g", null, n, {
|
|
3631
|
+
"pie-tool-tts-inline--controls-row": Z(nt),
|
|
3632
|
+
"pie-tool-tts-inline--floating": Z(rt),
|
|
3633
|
+
"pie-tool-tts-inline--left-aligned": Z(it)
|
|
3634
|
+
}), Gr(t, `--pie-tts-zoom-comp: ${ot.current};`);
|
|
3635
|
+
}), Q(e, t);
|
|
3636
|
+
};
|
|
3637
|
+
return Er(_t, (e) => {
|
|
3638
|
+
m && e(vt);
|
|
3639
|
+
}), Q(o, gt), Ve(ht);
|
|
3640
|
+
}
|
|
3641
|
+
sr(["click", "keydown"]), customElements.define("pie-tool-tts-inline", ci(za, {
|
|
3642
|
+
catalogId: {
|
|
3643
|
+
attribute: "catalog-id",
|
|
3644
|
+
type: "String"
|
|
3645
|
+
},
|
|
3646
|
+
language: {
|
|
3647
|
+
attribute: "language",
|
|
3648
|
+
type: "String"
|
|
3649
|
+
},
|
|
3650
|
+
size: {
|
|
3651
|
+
attribute: "size",
|
|
3652
|
+
type: "String"
|
|
3653
|
+
},
|
|
3654
|
+
speedOptions: {
|
|
3655
|
+
attribute: "speed-options",
|
|
3656
|
+
type: "Array"
|
|
3657
|
+
},
|
|
3658
|
+
showSingleSpeedOption: {
|
|
3659
|
+
attribute: "show-single-speed-option",
|
|
3660
|
+
type: "Boolean"
|
|
3661
|
+
},
|
|
3662
|
+
layoutMode: {
|
|
3663
|
+
attribute: "layout-mode",
|
|
3664
|
+
type: "String"
|
|
3665
|
+
}
|
|
3666
|
+
}, [], [], { mode: "open" }));
|
|
3667
|
+
//#endregion
|
|
3668
|
+
export { za as default };
|
|
3669
|
+
|
|
3670
|
+
//# sourceMappingURL=tool-tts-inline-CA3VjWU4.js.map
|