@pie-players/pie-section-player-tools-tts-settings 0.3.21 → 0.3.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.
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
if (typeof window < "u") {
|
|
2
|
-
var
|
|
3
|
-
((
|
|
2
|
+
var Ls, Rs;
|
|
3
|
+
((Ls = (Rs = window).__svelte ?? (Rs.__svelte = {})).v ?? (Ls.v = /* @__PURE__ */ new Set())).add("5");
|
|
4
4
|
}
|
|
5
5
|
var sr = {}, oe = Symbol(), If = Symbol("filename");
|
|
6
6
|
var oo = "http://www.w3.org/2000/svg";
|
|
7
|
-
var Mn = Array.isArray, uo = Array.prototype.indexOf, ar = Array.prototype.includes, An = Array.from, gn = Object.keys, mn = Object.defineProperty, jt = Object.getOwnPropertyDescriptor, fo = Object.getOwnPropertyDescriptors, co = Object.prototype, vo = Array.prototype,
|
|
7
|
+
var Mn = Array.isArray, uo = Array.prototype.indexOf, ar = Array.prototype.includes, An = Array.from, gn = Object.keys, mn = Object.defineProperty, jt = Object.getOwnPropertyDescriptor, fo = Object.getOwnPropertyDescriptors, co = Object.prototype, vo = Array.prototype, ra = Object.getPrototypeOf, Ns = Object.isExtensible, po = () => {
|
|
8
8
|
};
|
|
9
9
|
function ho(e) {
|
|
10
10
|
for (var t = 0; t < e.length; t++) e[t]();
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function na() {
|
|
13
13
|
var e, t;
|
|
14
14
|
return {
|
|
15
15
|
promise: new Promise((r, n) => {
|
|
@@ -49,7 +49,7 @@ function ne(e, t, r) {
|
|
|
49
49
|
writable: !0
|
|
50
50
|
}) : e[t] = r, e;
|
|
51
51
|
}
|
|
52
|
-
var mo = 1 << 24, Ce = 1024, Xe = 2048, Bt = 4096, Ri = 8192, yo = 16384, Ni = 32768,
|
|
52
|
+
var mo = 1 << 24, Ce = 1024, Xe = 2048, Bt = 4096, Ri = 8192, yo = 16384, Ni = 32768, Os = 1 << 25, Pn = 65536, jf = 1 << 17, Wf = 1 << 18, dr = 1 << 19, bo = 1 << 20, Or = 1 << 25, zr = 65536, Is = 1 << 21, wo = 1 << 22, yn = 1 << 23, Wt = Symbol("$state"), ia = Symbol("legacy props"), ko = Symbol(""), So = Symbol("proxy path"), ot = new class extends Error {
|
|
53
53
|
constructor(...t) {
|
|
54
54
|
super(...t), ne(this, "name", "StaleReactionError"), ne(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
55
55
|
}
|
|
@@ -122,7 +122,7 @@ function T(e) {
|
|
|
122
122
|
Y = e;
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function sa(e = 1) {
|
|
126
126
|
if (O) {
|
|
127
127
|
for (var t = e, r = Y; t--; ) r = /* @__PURE__ */ Ze(r);
|
|
128
128
|
Y = r;
|
|
@@ -141,22 +141,22 @@ function bn(e = !0) {
|
|
|
141
141
|
e && r.remove(), r = i;
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function aa(e) {
|
|
145
145
|
if (!e || e.nodeType !== 8)
|
|
146
146
|
throw Ln(), sr;
|
|
147
147
|
return e.data;
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function la(e) {
|
|
150
150
|
return e === this.v;
|
|
151
151
|
}
|
|
152
152
|
function Wo(e, t) {
|
|
153
153
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function oa(e) {
|
|
156
156
|
return !Wo(e, this.v);
|
|
157
157
|
}
|
|
158
158
|
var Ve = !1, Br = !1;
|
|
159
|
-
function
|
|
159
|
+
function js(e, t) {
|
|
160
160
|
return e.label = t, Fo(e.v, t), e;
|
|
161
161
|
}
|
|
162
162
|
function Fo(e, t) {
|
|
@@ -166,7 +166,7 @@ var te = null;
|
|
|
166
166
|
function or(e) {
|
|
167
167
|
te = e;
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function ua(e, t = !1, r) {
|
|
170
170
|
te = {
|
|
171
171
|
p: te,
|
|
172
172
|
i: !1,
|
|
@@ -182,11 +182,11 @@ function oa(e, t = !1, r) {
|
|
|
182
182
|
} : null
|
|
183
183
|
};
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function fa(e) {
|
|
186
186
|
var t = te, r = t.e;
|
|
187
187
|
if (r !== null) {
|
|
188
188
|
t.e = null;
|
|
189
|
-
for (var n of r)
|
|
189
|
+
for (var n of r) Fa(n);
|
|
190
190
|
}
|
|
191
191
|
return e !== void 0 && (t.x = e), t.i = !0, te = t.p, e ?? {};
|
|
192
192
|
}
|
|
@@ -194,7 +194,7 @@ function Dr() {
|
|
|
194
194
|
return !Br || te !== null && te.l === null;
|
|
195
195
|
}
|
|
196
196
|
var Ot = [];
|
|
197
|
-
function
|
|
197
|
+
function ca() {
|
|
198
198
|
var e = Ot;
|
|
199
199
|
Ot = [], ho(e);
|
|
200
200
|
}
|
|
@@ -202,15 +202,15 @@ function Ye(e) {
|
|
|
202
202
|
if (Ot.length === 0 && !Ir) {
|
|
203
203
|
var t = Ot;
|
|
204
204
|
queueMicrotask(() => {
|
|
205
|
-
t === Ot &&
|
|
205
|
+
t === Ot && ca();
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
208
|
Ot.push(e);
|
|
209
209
|
}
|
|
210
210
|
function Vo() {
|
|
211
|
-
for (; Ot.length > 0; )
|
|
211
|
+
for (; Ot.length > 0; ) ca();
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function da(e) {
|
|
214
214
|
var t = z;
|
|
215
215
|
if (t === null)
|
|
216
216
|
return H.f |= yn, e;
|
|
@@ -240,13 +240,13 @@ function ie(e, t) {
|
|
|
240
240
|
function Ii(e) {
|
|
241
241
|
e.f & 512 || e.deps === null ? ie(e, Ce) : ie(e, Bt);
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function va(e) {
|
|
244
244
|
if (e !== null)
|
|
245
245
|
for (const t of e)
|
|
246
|
-
!(t.f & 2) || !(t.f & 65536) || (t.f ^= zr,
|
|
246
|
+
!(t.f & 2) || !(t.f & 65536) || (t.f ^= zr, va(t.deps));
|
|
247
247
|
}
|
|
248
|
-
function
|
|
249
|
-
e.f & 2048 ? t.add(e) : e.f & 4096 && r.add(e),
|
|
248
|
+
function pa(e, t, r) {
|
|
249
|
+
e.f & 2048 ? t.add(e) : e.f & 4096 && r.add(e), va(e.deps), ie(e, Ce);
|
|
250
250
|
}
|
|
251
251
|
var Uo = !1, sn = !1;
|
|
252
252
|
function zo(e) {
|
|
@@ -257,14 +257,14 @@ function zo(e) {
|
|
|
257
257
|
sn = t;
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function ha(e, t) {
|
|
261
261
|
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
262
262
|
}
|
|
263
263
|
function ji(e, t) {
|
|
264
|
-
|
|
264
|
+
ha(e, t), t.add(e);
|
|
265
265
|
}
|
|
266
266
|
function B(e, t, r) {
|
|
267
|
-
|
|
267
|
+
ha(e, t), t.set(e, r);
|
|
268
268
|
}
|
|
269
269
|
function Q(e, t, r) {
|
|
270
270
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : r;
|
|
@@ -276,8 +276,8 @@ function v(e, t) {
|
|
|
276
276
|
function W(e, t, r) {
|
|
277
277
|
return e.set(Q(e, t), r), r;
|
|
278
278
|
}
|
|
279
|
-
var
|
|
280
|
-
var Bo = 1, Sn = /* @__PURE__ */ new WeakMap(), an = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap(), er = /* @__PURE__ */ new WeakMap(), vn = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), Vr = /* @__PURE__ */ new WeakMap(), Ft = /* @__PURE__ */ new WeakMap(), Rt = /* @__PURE__ */ new WeakMap(), ln = /* @__PURE__ */ new WeakMap(), He = /* @__PURE__ */ new WeakSet(), Dt = class
|
|
279
|
+
var _a, ut = /* @__PURE__ */ new Set(), G = null, wn = null, we = null, ki = null, Ir = !1, di = !1, ur = null, kn = null, ga = 0;
|
|
280
|
+
var Bo = 1, Sn = /* @__PURE__ */ new WeakMap(), an = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap(), er = /* @__PURE__ */ new WeakMap(), vn = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), Vr = /* @__PURE__ */ new WeakMap(), Ft = /* @__PURE__ */ new WeakMap(), Rt = /* @__PURE__ */ new WeakMap(), ln = /* @__PURE__ */ new WeakMap(), He = /* @__PURE__ */ new WeakSet(), Dt = class ma {
|
|
281
281
|
constructor() {
|
|
282
282
|
ji(this, He), ne(this, "id", Bo++), ne(this, "current", /* @__PURE__ */ new Map()), ne(this, "previous", /* @__PURE__ */ new Map()), B(this, Sn, /* @__PURE__ */ new Set()), B(this, an, /* @__PURE__ */ new Set()), B(this, Qt, 0), B(this, er, 0), B(this, vn, null), B(this, Ie, []), B(this, Vr, /* @__PURE__ */ new Set()), B(this, Ft, /* @__PURE__ */ new Set()), B(this, Rt, /* @__PURE__ */ new Map()), ne(this, "is_fork", !1), B(this, ln, !1);
|
|
283
283
|
}
|
|
@@ -309,9 +309,9 @@ var Bo = 1, Sn = /* @__PURE__ */ new WeakMap(), an = /* @__PURE__ */ new WeakMap
|
|
|
309
309
|
flush() {
|
|
310
310
|
var t = null;
|
|
311
311
|
try {
|
|
312
|
-
di = !0, G = this, Q(He, this,
|
|
312
|
+
di = !0, G = this, Q(He, this, ya).call(this);
|
|
313
313
|
} finally {
|
|
314
|
-
|
|
314
|
+
ga = 0, ki = null, ur = null, kn = null, di = !1, G = null, we = null, kt.clear();
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
discard() {
|
|
@@ -338,11 +338,11 @@ var Bo = 1, Sn = /* @__PURE__ */ new WeakMap(), an = /* @__PURE__ */ new WeakMap
|
|
|
338
338
|
v(an, this).add(t);
|
|
339
339
|
}
|
|
340
340
|
settled() {
|
|
341
|
-
return (v(vn, this) ?? W(vn, this,
|
|
341
|
+
return (v(vn, this) ?? W(vn, this, na())).promise;
|
|
342
342
|
}
|
|
343
343
|
static ensure() {
|
|
344
344
|
if (G === null) {
|
|
345
|
-
const t = G = new
|
|
345
|
+
const t = G = new ma();
|
|
346
346
|
di || (ut.add(G), Ir || Ye(() => {
|
|
347
347
|
G === t && t.flush();
|
|
348
348
|
}));
|
|
@@ -377,12 +377,12 @@ var Bo = 1, Sn = /* @__PURE__ */ new WeakMap(), an = /* @__PURE__ */ new WeakMap
|
|
|
377
377
|
v(Ie, this).push(r);
|
|
378
378
|
}
|
|
379
379
|
};
|
|
380
|
-
|
|
381
|
-
function
|
|
380
|
+
_a = Dt;
|
|
381
|
+
function Ws() {
|
|
382
382
|
return this.is_fork || v(er, this) > 0;
|
|
383
383
|
}
|
|
384
|
-
function
|
|
385
|
-
if (
|
|
384
|
+
function ya() {
|
|
385
|
+
if (ga++ > 1e3 && (ut.delete(this), Go()), !Q(He, this, Ws).call(this)) {
|
|
386
386
|
for (const f of v(Vr, this))
|
|
387
387
|
v(Ft, this).delete(f), ie(f, Xe), this.schedule(f);
|
|
388
388
|
for (const f of v(Ft, this))
|
|
@@ -392,30 +392,30 @@ function ma() {
|
|
|
392
392
|
W(Ie, this, []), this.apply();
|
|
393
393
|
var t = ur = [], r = [], n = kn = [];
|
|
394
394
|
for (const f of e) try {
|
|
395
|
-
Q(He, this,
|
|
395
|
+
Q(He, this, ba).call(this, f, t, r);
|
|
396
396
|
} catch (u) {
|
|
397
|
-
throw
|
|
397
|
+
throw $a(f), u;
|
|
398
398
|
}
|
|
399
399
|
if (G = null, n.length > 0) {
|
|
400
|
-
var i =
|
|
400
|
+
var i = _a.ensure();
|
|
401
401
|
for (const f of n) i.schedule(f);
|
|
402
402
|
}
|
|
403
|
-
if (ur = null, kn = null, Q(He, this,
|
|
404
|
-
Q(He, this,
|
|
405
|
-
for (const [f, u] of v(Rt, this))
|
|
403
|
+
if (ur = null, kn = null, Q(He, this, Ws).call(this)) {
|
|
404
|
+
Q(He, this, Fs).call(this, r), Q(He, this, Fs).call(this, t);
|
|
405
|
+
for (const [f, u] of v(Rt, this)) Sa(f, u);
|
|
406
406
|
} else {
|
|
407
407
|
v(Qt, this) === 0 && ut.delete(this), v(Vr, this).clear(), v(Ft, this).clear();
|
|
408
408
|
for (const f of v(Sn, this)) f(this);
|
|
409
|
-
v(Sn, this).clear(), wn = this,
|
|
409
|
+
v(Sn, this).clear(), wn = this, Vs(r), Vs(t), wn = null, v(vn, this)?.resolve();
|
|
410
410
|
}
|
|
411
411
|
var a = G;
|
|
412
412
|
if (v(Ie, this).length > 0) {
|
|
413
413
|
const f = a ?? (a = this);
|
|
414
414
|
v(Ie, f).push(...v(Ie, this).filter((u) => !v(Ie, f).includes(u)));
|
|
415
415
|
}
|
|
416
|
-
a !== null && (ut.add(a), Q(He, a,
|
|
416
|
+
a !== null && (ut.add(a), Q(He, a, ya).call(a)), ut.has(this) || Q(He, this, Do).call(this);
|
|
417
417
|
}
|
|
418
|
-
function
|
|
418
|
+
function ba(e, t, r) {
|
|
419
419
|
e.f ^= Ce;
|
|
420
420
|
for (var n = e.first; n !== null; ) {
|
|
421
421
|
var i = n.f, a = (i & 96) !== 0;
|
|
@@ -437,8 +437,8 @@ function ya(e, t, r) {
|
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
-
function
|
|
441
|
-
for (var t = 0; t < e.length; t += 1)
|
|
440
|
+
function Fs(e) {
|
|
441
|
+
for (var t = 0; t < e.length; t += 1) pa(e[t], v(Vr, this), v(Ft, this));
|
|
442
442
|
}
|
|
443
443
|
function Do() {
|
|
444
444
|
for (const u of ut) {
|
|
@@ -454,10 +454,10 @@ function Do() {
|
|
|
454
454
|
else if (t.length > 0) {
|
|
455
455
|
u.activate();
|
|
456
456
|
var n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map();
|
|
457
|
-
for (var a of t)
|
|
457
|
+
for (var a of t) wa(a, r, n, i);
|
|
458
458
|
if (v(Ie, u).length > 0) {
|
|
459
459
|
u.apply();
|
|
460
|
-
for (var f of v(Ie, u)) Q(He, u,
|
|
460
|
+
for (var f of v(Ie, u)) Q(He, u, ba).call(u, f, [], []);
|
|
461
461
|
W(Ie, u, []);
|
|
462
462
|
}
|
|
463
463
|
u.deactivate();
|
|
@@ -490,12 +490,12 @@ function Go() {
|
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
492
|
var Ke = null;
|
|
493
|
-
function
|
|
493
|
+
function Vs(e) {
|
|
494
494
|
var t = e.length;
|
|
495
495
|
if (t !== 0) {
|
|
496
496
|
for (var r = 0; r < t; ) {
|
|
497
497
|
var n = e[r++];
|
|
498
|
-
if (!(n.f & 24576) && Hr(n) && (Ke = /* @__PURE__ */ new Set(), cr(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null &&
|
|
498
|
+
if (!(n.f & 24576) && Hr(n) && (Ke = /* @__PURE__ */ new Set(), cr(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && Ua(n), Ke?.size > 0)) {
|
|
499
499
|
kt.clear();
|
|
500
500
|
for (const i of Ke) {
|
|
501
501
|
if (i.f & 24576) continue;
|
|
@@ -514,19 +514,19 @@ function Fs(e) {
|
|
|
514
514
|
Ke = null;
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
|
-
function
|
|
517
|
+
function wa(e, t, r, n) {
|
|
518
518
|
if (!r.has(e) && (r.add(e), e.reactions !== null))
|
|
519
519
|
for (const i of e.reactions) {
|
|
520
520
|
const a = i.f;
|
|
521
|
-
a & 2 ?
|
|
521
|
+
a & 2 ? wa(i, t, r, n) : a & 4194320 && !(a & 2048) && ka(i, t, n) && (ie(i, Xe), Wi(i));
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
|
-
function
|
|
524
|
+
function ka(e, t, r) {
|
|
525
525
|
const n = r.get(e);
|
|
526
526
|
if (n !== void 0) return n;
|
|
527
527
|
if (e.deps !== null) for (const i of e.deps) {
|
|
528
528
|
if (ar.call(t, i)) return !0;
|
|
529
|
-
if (i.f & 2 &&
|
|
529
|
+
if (i.f & 2 && ka(i, t, r))
|
|
530
530
|
return r.set(i, !0), !0;
|
|
531
531
|
}
|
|
532
532
|
return r.set(e, !1), !1;
|
|
@@ -534,17 +534,17 @@ function wa(e, t, r) {
|
|
|
534
534
|
function Wi(e) {
|
|
535
535
|
G.schedule(e);
|
|
536
536
|
}
|
|
537
|
-
function
|
|
537
|
+
function Sa(e, t) {
|
|
538
538
|
if (!(e.f & 32 && e.f & 1024)) {
|
|
539
539
|
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), ie(e, Ce);
|
|
540
540
|
for (var r = e.first; r !== null; )
|
|
541
|
-
|
|
541
|
+
Sa(r, t), r = r.next;
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
|
-
function
|
|
544
|
+
function $a(e) {
|
|
545
545
|
ie(e, Ce);
|
|
546
546
|
for (var t = e.first; t !== null; )
|
|
547
|
-
|
|
547
|
+
$a(t), t = t.next;
|
|
548
548
|
}
|
|
549
549
|
function Ho(e) {
|
|
550
550
|
let t = 0, r = zt(0), n;
|
|
@@ -560,9 +560,9 @@ var Ko = Pn | dr;
|
|
|
560
560
|
function Yo(e, t, r, n) {
|
|
561
561
|
new Jo(e, t, r, n);
|
|
562
562
|
}
|
|
563
|
-
var je = /* @__PURE__ */ new WeakMap(), vi = /* @__PURE__ */ new WeakMap(), yt = /* @__PURE__ */ new WeakMap(), qr = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), Vt = /* @__PURE__ */ new WeakMap(), tr = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), on = /* @__PURE__ */ new WeakMap(), Si = /* @__PURE__ */ new WeakMap(), $i = /* @__PURE__ */ new WeakMap(), Pt = /* @__PURE__ */ new WeakMap(),
|
|
563
|
+
var je = /* @__PURE__ */ new WeakMap(), vi = /* @__PURE__ */ new WeakMap(), yt = /* @__PURE__ */ new WeakMap(), qr = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), Vt = /* @__PURE__ */ new WeakMap(), tr = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), on = /* @__PURE__ */ new WeakMap(), Si = /* @__PURE__ */ new WeakMap(), $i = /* @__PURE__ */ new WeakMap(), Pt = /* @__PURE__ */ new WeakMap(), qs = /* @__PURE__ */ new WeakMap(), ye = /* @__PURE__ */ new WeakSet(), Jo = class {
|
|
564
564
|
constructor(e, t, r, n) {
|
|
565
|
-
ji(this, ye), ne(this, "parent", void 0), ne(this, "is_pending", !1), ne(this, "transform_error", void 0), B(this, je, void 0), B(this, vi, O ? Y : null), B(this, yt, void 0), B(this, qr, void 0), B(this, Te, void 0), B(this, wt, null), B(this, We, null), B(this, lt, null), B(this, Vt, null), B(this, tr, 0), B(this, qt, 0), B(this, on, !1), B(this, Si, /* @__PURE__ */ new Set()), B(this, $i, /* @__PURE__ */ new Set()), B(this, Pt, null), B(this,
|
|
565
|
+
ji(this, ye), ne(this, "parent", void 0), ne(this, "is_pending", !1), ne(this, "transform_error", void 0), B(this, je, void 0), B(this, vi, O ? Y : null), B(this, yt, void 0), B(this, qr, void 0), B(this, Te, void 0), B(this, wt, null), B(this, We, null), B(this, lt, null), B(this, Vt, null), B(this, tr, 0), B(this, qt, 0), B(this, on, !1), B(this, Si, /* @__PURE__ */ new Set()), B(this, $i, /* @__PURE__ */ new Set()), B(this, Pt, null), B(this, qs, Ho(() => (W(Pt, this, zt(v(tr, this))), () => {
|
|
566
566
|
W(Pt, this, null);
|
|
567
567
|
}))), W(je, this, e), W(yt, this, t), W(qr, this, (i) => {
|
|
568
568
|
var a = z;
|
|
@@ -576,11 +576,11 @@ var je = /* @__PURE__ */ new WeakMap(), vi = /* @__PURE__ */ new WeakMap(), yt =
|
|
|
576
576
|
const f = JSON.parse(i.data.slice(2));
|
|
577
577
|
Q(ye, this, Zo).call(this, f);
|
|
578
578
|
} else a ? Q(ye, this, Qo).call(this) : Q(ye, this, Xo).call(this);
|
|
579
|
-
} else Q(ye, this,
|
|
579
|
+
} else Q(ye, this, Us).call(this);
|
|
580
580
|
}, Ko)), O && W(je, this, Y);
|
|
581
581
|
}
|
|
582
582
|
defer_effect(e) {
|
|
583
|
-
|
|
583
|
+
pa(e, v(Si, this), v($i, this));
|
|
584
584
|
}
|
|
585
585
|
is_rendered() {
|
|
586
586
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
@@ -589,18 +589,18 @@ var je = /* @__PURE__ */ new WeakMap(), vi = /* @__PURE__ */ new WeakMap(), yt =
|
|
|
589
589
|
return !!v(yt, this).pending;
|
|
590
590
|
}
|
|
591
591
|
update_pending_count(e, t) {
|
|
592
|
-
Q(ye, this,
|
|
592
|
+
Q(ye, this, xa).call(this, e, t), W(tr, this, v(tr, this) + e), !(!v(Pt, this) || v(on, this)) && (W(on, this, !0), Ye(() => {
|
|
593
593
|
W(on, this, !1), v(Pt, this) && fr(v(Pt, this), v(tr, this));
|
|
594
594
|
}));
|
|
595
595
|
}
|
|
596
596
|
get_effect_pending() {
|
|
597
|
-
return v(
|
|
597
|
+
return v(qs, this).call(this), s(v(Pt, this));
|
|
598
598
|
}
|
|
599
599
|
error(e) {
|
|
600
600
|
var t = v(yt, this).onerror;
|
|
601
601
|
let r = v(yt, this).failed;
|
|
602
602
|
if (!t && !r) throw e;
|
|
603
|
-
v(wt, this) && (fe(v(wt, this)), W(wt, this, null)), v(We, this) && (fe(v(We, this)), W(We, this, null)), v(lt, this) && (fe(v(lt, this)), W(lt, this, null)), O && (ue(v(vi, this)),
|
|
603
|
+
v(wt, this) && (fe(v(wt, this)), W(wt, this, null)), v(We, this) && (fe(v(We, this)), W(We, this, null)), v(lt, this) && (fe(v(lt, this)), W(lt, this, null)), O && (ue(v(vi, this)), sa(), ue(bn()));
|
|
604
604
|
var n = !1, i = !1;
|
|
605
605
|
const a = () => {
|
|
606
606
|
if (n) {
|
|
@@ -610,7 +610,7 @@ var je = /* @__PURE__ */ new WeakMap(), vi = /* @__PURE__ */ new WeakMap(), yt =
|
|
|
610
610
|
n = !0, i && Oo(), v(lt, this) !== null && Gt(v(lt, this), () => {
|
|
611
611
|
W(lt, this, null);
|
|
612
612
|
}), Q(ye, this, xi).call(this, () => {
|
|
613
|
-
Q(ye, this,
|
|
613
|
+
Q(ye, this, Us).call(this);
|
|
614
614
|
});
|
|
615
615
|
}, f = (u) => {
|
|
616
616
|
try {
|
|
@@ -664,7 +664,7 @@ function Qo() {
|
|
|
664
664
|
}), Q(ye, this, Fi).call(this, G));
|
|
665
665
|
}));
|
|
666
666
|
}
|
|
667
|
-
function
|
|
667
|
+
function Us() {
|
|
668
668
|
try {
|
|
669
669
|
if (this.is_pending = this.has_pending_snippet(), W(qt, this, 0), W(tr, this, 0), W(wt, this, ke(() => {
|
|
670
670
|
v(qr, this).call(this, v(je, this));
|
|
@@ -687,16 +687,16 @@ function xi(e) {
|
|
|
687
687
|
try {
|
|
688
688
|
return Dt.ensure(), e();
|
|
689
689
|
} catch (i) {
|
|
690
|
-
return
|
|
690
|
+
return da(i), null;
|
|
691
691
|
} finally {
|
|
692
692
|
Je(t), Le(r), or(n);
|
|
693
693
|
}
|
|
694
694
|
}
|
|
695
|
-
function
|
|
695
|
+
function xa(e, t) {
|
|
696
696
|
if (!this.has_pending_snippet()) {
|
|
697
697
|
if (this.parent) {
|
|
698
698
|
var r;
|
|
699
|
-
Q(ye, r = this.parent,
|
|
699
|
+
Q(ye, r = this.parent, xa).call(r, e, t);
|
|
700
700
|
}
|
|
701
701
|
return;
|
|
702
702
|
}
|
|
@@ -704,7 +704,7 @@ function $a(e, t) {
|
|
|
704
704
|
W(We, this, null);
|
|
705
705
|
}), v(Vt, this) && (v(je, this).before(v(Vt, this)), W(Vt, this, null)));
|
|
706
706
|
}
|
|
707
|
-
function
|
|
707
|
+
function Ea(e, t, r, n) {
|
|
708
708
|
const i = Dr() ? Rn : Vi;
|
|
709
709
|
var a = e.filter((h) => !h.settled);
|
|
710
710
|
if (r.length === 0 && a.length === 0) {
|
|
@@ -725,7 +725,7 @@ function xa(e, t, r, n) {
|
|
|
725
725
|
d.then(() => m(t.map(i)));
|
|
726
726
|
return;
|
|
727
727
|
}
|
|
728
|
-
var _ =
|
|
728
|
+
var _ = Ta();
|
|
729
729
|
function y() {
|
|
730
730
|
Promise.all(r.map((h) => /* @__PURE__ */ tu(h))).then((h) => m([...t.map(i), ...h])).catch((h) => bt(h, f)).finally(() => _());
|
|
731
731
|
}
|
|
@@ -743,7 +743,7 @@ function eu() {
|
|
|
743
743
|
function $n(e = !0) {
|
|
744
744
|
Je(null), Le(null), or(null), e && G?.deactivate();
|
|
745
745
|
}
|
|
746
|
-
function
|
|
746
|
+
function Ta() {
|
|
747
747
|
var e = z.b, t = G, r = e.is_rendered();
|
|
748
748
|
return e.update_pending_count(1, t), t.increment(r), (n = !1) => {
|
|
749
749
|
e.update_pending_count(-1, t), t.decrement(r, n);
|
|
@@ -756,7 +756,7 @@ function Rn(e) {
|
|
|
756
756
|
ctx: te,
|
|
757
757
|
deps: null,
|
|
758
758
|
effects: null,
|
|
759
|
-
equals:
|
|
759
|
+
equals: la,
|
|
760
760
|
f: t,
|
|
761
761
|
fn: e,
|
|
762
762
|
reactions: null,
|
|
@@ -773,7 +773,7 @@ function tu(e, t, r) {
|
|
|
773
773
|
n === null && $o();
|
|
774
774
|
var i = void 0, a = zt(oe), f = !H, u = /* @__PURE__ */ new Map();
|
|
775
775
|
return gu(() => {
|
|
776
|
-
var d = z, m =
|
|
776
|
+
var d = z, m = na();
|
|
777
777
|
i = m.promise;
|
|
778
778
|
try {
|
|
779
779
|
Promise.resolve(e()).then(m.resolve, m.reject).finally($n);
|
|
@@ -782,7 +782,7 @@ function tu(e, t, r) {
|
|
|
782
782
|
}
|
|
783
783
|
var _ = G;
|
|
784
784
|
if (f) {
|
|
785
|
-
if (d.f & 32768) var y =
|
|
785
|
+
if (d.f & 32768) var y = Ta();
|
|
786
786
|
if (n.b.is_rendered())
|
|
787
787
|
u.get(_)?.reject(ot), u.delete(_);
|
|
788
788
|
else {
|
|
@@ -821,12 +821,12 @@ function tu(e, t, r) {
|
|
|
821
821
|
// @__NO_SIDE_EFFECTS__
|
|
822
822
|
function Ct(e) {
|
|
823
823
|
const t = /* @__PURE__ */ Rn(e);
|
|
824
|
-
return Ve ||
|
|
824
|
+
return Ve || Da(t), t;
|
|
825
825
|
}
|
|
826
826
|
// @__NO_SIDE_EFFECTS__
|
|
827
827
|
function Vi(e) {
|
|
828
828
|
const t = /* @__PURE__ */ Rn(e);
|
|
829
|
-
return t.equals =
|
|
829
|
+
return t.equals = oa, t;
|
|
830
830
|
}
|
|
831
831
|
function ru(e) {
|
|
832
832
|
var t = e.effects;
|
|
@@ -849,15 +849,15 @@ function qi(e) {
|
|
|
849
849
|
} finally {
|
|
850
850
|
}
|
|
851
851
|
else try {
|
|
852
|
-
e.f &= ~zr, ru(e), t =
|
|
852
|
+
e.f &= ~zr, ru(e), t = Ya(e);
|
|
853
853
|
} finally {
|
|
854
854
|
Je(r);
|
|
855
855
|
}
|
|
856
856
|
return t;
|
|
857
857
|
}
|
|
858
|
-
function
|
|
858
|
+
function Ma(e) {
|
|
859
859
|
var t = e.v, r = qi(e);
|
|
860
|
-
if (!e.equals(r) && (e.wv =
|
|
860
|
+
if (!e.equals(r) && (e.wv = Ha(), (!G?.is_fork || e.deps === null) && (e.v = r, G?.capture(e, t), e.deps === null))) {
|
|
861
861
|
ie(e, Ce);
|
|
862
862
|
return;
|
|
863
863
|
}
|
|
@@ -867,18 +867,18 @@ function iu(e) {
|
|
|
867
867
|
if (e.effects !== null)
|
|
868
868
|
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(ot), t.teardown = po, t.ac = null, Ur(t, 0), Di(t));
|
|
869
869
|
}
|
|
870
|
-
function
|
|
870
|
+
function Aa(e) {
|
|
871
871
|
if (e.effects !== null)
|
|
872
872
|
for (const t of e.effects) t.teardown && cr(t);
|
|
873
873
|
}
|
|
874
874
|
var Ei = /* @__PURE__ */ new Set(), kt = /* @__PURE__ */ new Map();
|
|
875
|
-
var
|
|
875
|
+
var Pa = !1;
|
|
876
876
|
function zt(e, t) {
|
|
877
877
|
var r = {
|
|
878
878
|
f: 0,
|
|
879
879
|
v: e,
|
|
880
880
|
reactions: null,
|
|
881
|
-
equals:
|
|
881
|
+
equals: la,
|
|
882
882
|
rv: 0,
|
|
883
883
|
wv: 0
|
|
884
884
|
};
|
|
@@ -887,12 +887,12 @@ function zt(e, t) {
|
|
|
887
887
|
// @__NO_SIDE_EFFECTS__
|
|
888
888
|
function N(e, t) {
|
|
889
889
|
const r = zt(e, t);
|
|
890
|
-
return
|
|
890
|
+
return Da(r), r;
|
|
891
891
|
}
|
|
892
892
|
// @__NO_SIDE_EFFECTS__
|
|
893
|
-
function
|
|
893
|
+
function Ca(e, t = !1, r = !0) {
|
|
894
894
|
const n = zt(e);
|
|
895
|
-
if (t || (n.equals =
|
|
895
|
+
if (t || (n.equals = oa), Br && r && te !== null && te.l !== null) {
|
|
896
896
|
var i;
|
|
897
897
|
((i = te.l).s ?? (i.s = [])).push(n);
|
|
898
898
|
}
|
|
@@ -912,12 +912,12 @@ function fr(e, t, r = null) {
|
|
|
912
912
|
const a = e;
|
|
913
913
|
e.f & 2048 && qi(a), we === null && Ii(a);
|
|
914
914
|
}
|
|
915
|
-
e.wv =
|
|
915
|
+
e.wv = Ha(), La(e, Xe, r), Dr() && z !== null && z.f & 1024 && !(z.f & 96) && (Me === null ? wu([e]) : Me.push(e)), !i.is_fork && Ei.size > 0 && !Pa && su();
|
|
916
916
|
}
|
|
917
917
|
return t;
|
|
918
918
|
}
|
|
919
919
|
function su() {
|
|
920
|
-
|
|
920
|
+
Pa = !1;
|
|
921
921
|
for (const e of Ei)
|
|
922
922
|
e.f & 1024 && ie(e, Bt), Hr(e) && cr(e);
|
|
923
923
|
Ei.clear();
|
|
@@ -925,7 +925,7 @@ function su() {
|
|
|
925
925
|
function jr(e) {
|
|
926
926
|
g(e, e.v + 1);
|
|
927
927
|
}
|
|
928
|
-
function
|
|
928
|
+
function La(e, t, r) {
|
|
929
929
|
var n = e.reactions;
|
|
930
930
|
if (n !== null)
|
|
931
931
|
for (var i = Dr(), a = n.length, f = 0; f < a; f++) {
|
|
@@ -934,7 +934,7 @@ function Ca(e, t, r) {
|
|
|
934
934
|
var m = (d & Xe) === 0;
|
|
935
935
|
if (m && ie(u, t), d & 2) {
|
|
936
936
|
var _ = u;
|
|
937
|
-
we?.delete(_), d & 65536 || (d & 512 && (u.f |= zr),
|
|
937
|
+
we?.delete(_), d & 65536 || (d & 512 && (u.f |= zr), La(_, Bt, r));
|
|
938
938
|
} else if (m) {
|
|
939
939
|
var y = u;
|
|
940
940
|
d & 16 && Ke !== null && Ke.add(y), r !== null ? r.push(y) : Wi(y);
|
|
@@ -945,22 +945,22 @@ function Ca(e, t, r) {
|
|
|
945
945
|
var au = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
|
|
946
946
|
function Ae(e) {
|
|
947
947
|
if (typeof e != "object" || e === null || Wt in e) return e;
|
|
948
|
-
const t =
|
|
948
|
+
const t = ra(e);
|
|
949
949
|
if (t !== co && t !== vo) return e;
|
|
950
950
|
var r = /* @__PURE__ */ new Map(), n = Mn(e), i = /* @__PURE__ */ N(0), a = null, f = Ut, u = (y) => {
|
|
951
951
|
if (Ut === f) return y();
|
|
952
952
|
var h = H, w = Ut;
|
|
953
|
-
Le(null),
|
|
953
|
+
Le(null), Hs(f);
|
|
954
954
|
var S = y();
|
|
955
|
-
return Le(h),
|
|
955
|
+
return Le(h), Hs(w), S;
|
|
956
956
|
};
|
|
957
957
|
n && r.set("length", /* @__PURE__ */ N(e.length, a));
|
|
958
958
|
var d = "";
|
|
959
959
|
let m = !1;
|
|
960
960
|
function _(y) {
|
|
961
961
|
if (!m) {
|
|
962
|
-
m = !0, d = y,
|
|
963
|
-
for (const [h, w] of r)
|
|
962
|
+
m = !0, d = y, js(i, `${d} version`);
|
|
963
|
+
for (const [h, w] of r) js(w, lu(d, h));
|
|
964
964
|
m = !1;
|
|
965
965
|
}
|
|
966
966
|
}
|
|
@@ -1060,7 +1060,7 @@ function Ae(e) {
|
|
|
1060
1060
|
function lu(e, t) {
|
|
1061
1061
|
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : au.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
|
|
1062
1062
|
}
|
|
1063
|
-
function
|
|
1063
|
+
function zs(e) {
|
|
1064
1064
|
try {
|
|
1065
1065
|
if (e !== null && typeof e == "object" && Wt in e) return e[Wt];
|
|
1066
1066
|
} catch {
|
|
@@ -1068,14 +1068,14 @@ function Us(e) {
|
|
|
1068
1068
|
return e;
|
|
1069
1069
|
}
|
|
1070
1070
|
function ou(e, t) {
|
|
1071
|
-
return Object.is(
|
|
1071
|
+
return Object.is(zs(e), zs(t));
|
|
1072
1072
|
}
|
|
1073
|
-
var
|
|
1073
|
+
var Bs, uu, Ra, Na, Oa;
|
|
1074
1074
|
function Ti() {
|
|
1075
|
-
if (
|
|
1076
|
-
|
|
1075
|
+
if (Bs === void 0) {
|
|
1076
|
+
Bs = window, uu = document, Ra = /Firefox/.test(navigator.userAgent);
|
|
1077
1077
|
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
1078
|
-
|
|
1078
|
+
Na = jt(t, "firstChild").get, Oa = jt(t, "nextSibling").get, Ns(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), Ns(r) && (r.__t = void 0);
|
|
1079
1079
|
}
|
|
1080
1080
|
}
|
|
1081
1081
|
function _e(e = "") {
|
|
@@ -1083,11 +1083,11 @@ function _e(e = "") {
|
|
|
1083
1083
|
}
|
|
1084
1084
|
// @__NO_SIDE_EFFECTS__
|
|
1085
1085
|
function ct(e) {
|
|
1086
|
-
return
|
|
1086
|
+
return Na.call(e);
|
|
1087
1087
|
}
|
|
1088
1088
|
// @__NO_SIDE_EFFECTS__
|
|
1089
1089
|
function Ze(e) {
|
|
1090
|
-
return
|
|
1090
|
+
return Oa.call(e);
|
|
1091
1091
|
}
|
|
1092
1092
|
function M(e, t) {
|
|
1093
1093
|
if (!O) return /* @__PURE__ */ ct(e);
|
|
@@ -1130,7 +1130,7 @@ function E(e, t = 1, r = !1) {
|
|
|
1130
1130
|
function Ui(e) {
|
|
1131
1131
|
e.textContent = "";
|
|
1132
1132
|
}
|
|
1133
|
-
function
|
|
1133
|
+
function Ia() {
|
|
1134
1134
|
return !Ve || Ke !== null ? !1 : (z.f & Ni) !== 0;
|
|
1135
1135
|
}
|
|
1136
1136
|
function Nn(e, t, r) {
|
|
@@ -1154,9 +1154,9 @@ function cu(e, t) {
|
|
|
1154
1154
|
function du(e) {
|
|
1155
1155
|
O && /* @__PURE__ */ ct(e) !== null && Ui(e);
|
|
1156
1156
|
}
|
|
1157
|
-
var
|
|
1158
|
-
function
|
|
1159
|
-
|
|
1157
|
+
var Ds = !1;
|
|
1158
|
+
function ja() {
|
|
1159
|
+
Ds || (Ds = !0, document.addEventListener("reset", (e) => {
|
|
1160
1160
|
Promise.resolve().then(() => {
|
|
1161
1161
|
if (!e.defaultPrevented) for (const t of e.target.elements) t.__on_r?.();
|
|
1162
1162
|
});
|
|
@@ -1171,12 +1171,12 @@ function In(e) {
|
|
|
1171
1171
|
Le(t), Je(r);
|
|
1172
1172
|
}
|
|
1173
1173
|
}
|
|
1174
|
-
function
|
|
1174
|
+
function Wa(e, t, r, n = r) {
|
|
1175
1175
|
e.addEventListener(t, () => In(r));
|
|
1176
1176
|
const i = e.__on_r;
|
|
1177
1177
|
i ? e.__on_r = () => {
|
|
1178
1178
|
i(), n(!0);
|
|
1179
|
-
} : e.__on_r = () => n(!0),
|
|
1179
|
+
} : e.__on_r = () => n(!0), ja();
|
|
1180
1180
|
}
|
|
1181
1181
|
function vu(e) {
|
|
1182
1182
|
z === null && (H === null && Mo(e), To()), St && Eo(e);
|
|
@@ -1232,9 +1232,9 @@ function pn(e) {
|
|
|
1232
1232
|
if (!H && t & 32 && !(t & 32768)) {
|
|
1233
1233
|
var r = te;
|
|
1234
1234
|
(r.e ?? (r.e = [])).push(e);
|
|
1235
|
-
} else return
|
|
1235
|
+
} else return Fa(e);
|
|
1236
1236
|
}
|
|
1237
|
-
function
|
|
1237
|
+
function Fa(e) {
|
|
1238
1238
|
return qe(4 | bo, e);
|
|
1239
1239
|
}
|
|
1240
1240
|
function hu(e) {
|
|
@@ -1263,7 +1263,7 @@ function jn(e, t = 0) {
|
|
|
1263
1263
|
return qe(8 | t, e);
|
|
1264
1264
|
}
|
|
1265
1265
|
function de(e, t = [], r = [], n = []) {
|
|
1266
|
-
|
|
1266
|
+
Ea(n, t, r, (i) => {
|
|
1267
1267
|
qe(8, () => e(...i.map(s)));
|
|
1268
1268
|
});
|
|
1269
1269
|
}
|
|
@@ -1271,22 +1271,22 @@ function Wn(e, t = 0) {
|
|
|
1271
1271
|
var r = qe(16 | t, e);
|
|
1272
1272
|
return r;
|
|
1273
1273
|
}
|
|
1274
|
-
function
|
|
1274
|
+
function Va(e, t = 0) {
|
|
1275
1275
|
var r = qe(mo | t, e);
|
|
1276
1276
|
return r;
|
|
1277
1277
|
}
|
|
1278
1278
|
function ke(e) {
|
|
1279
1279
|
return qe(32 | dr, e);
|
|
1280
1280
|
}
|
|
1281
|
-
function
|
|
1281
|
+
function qa(e) {
|
|
1282
1282
|
var t = e.teardown;
|
|
1283
1283
|
if (t !== null) {
|
|
1284
1284
|
const r = St, n = H;
|
|
1285
|
-
|
|
1285
|
+
Gs(!0), Le(null);
|
|
1286
1286
|
try {
|
|
1287
1287
|
t.call(null);
|
|
1288
1288
|
} finally {
|
|
1289
|
-
|
|
1289
|
+
Gs(r), Le(n);
|
|
1290
1290
|
}
|
|
1291
1291
|
}
|
|
1292
1292
|
}
|
|
@@ -1309,12 +1309,12 @@ function mu(e) {
|
|
|
1309
1309
|
}
|
|
1310
1310
|
function fe(e, t = !0) {
|
|
1311
1311
|
var r = !1;
|
|
1312
|
-
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (yu(e.nodes.start, e.nodes.end), r = !0), ie(e,
|
|
1312
|
+
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (yu(e.nodes.start, e.nodes.end), r = !0), ie(e, Os), Di(e, t && !r), Ur(e, 0);
|
|
1313
1313
|
var n = e.nodes && e.nodes.t;
|
|
1314
1314
|
if (n !== null) for (const a of n) a.stop();
|
|
1315
|
-
|
|
1315
|
+
qa(e), e.f ^= Os, e.f |= yo;
|
|
1316
1316
|
var i = e.parent;
|
|
1317
|
-
i !== null && i.first !== null &&
|
|
1317
|
+
i !== null && i.first !== null && Ua(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
|
|
1318
1318
|
}
|
|
1319
1319
|
function yu(e, t) {
|
|
1320
1320
|
for (; e !== null; ) {
|
|
@@ -1322,13 +1322,13 @@ function yu(e, t) {
|
|
|
1322
1322
|
e.remove(), e = r;
|
|
1323
1323
|
}
|
|
1324
1324
|
}
|
|
1325
|
-
function
|
|
1325
|
+
function Ua(e) {
|
|
1326
1326
|
var t = e.parent, r = e.prev, n = e.next;
|
|
1327
1327
|
r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
|
|
1328
1328
|
}
|
|
1329
1329
|
function Gt(e, t, r = !0) {
|
|
1330
1330
|
var n = [];
|
|
1331
|
-
|
|
1331
|
+
za(e, n, !0);
|
|
1332
1332
|
var i = () => {
|
|
1333
1333
|
r && fe(e), t && t();
|
|
1334
1334
|
}, a = n.length;
|
|
@@ -1337,7 +1337,7 @@ function Gt(e, t, r = !0) {
|
|
|
1337
1337
|
for (var u of n) u.out(f);
|
|
1338
1338
|
} else i();
|
|
1339
1339
|
}
|
|
1340
|
-
function
|
|
1340
|
+
function za(e, t, r) {
|
|
1341
1341
|
if (!(e.f & 8192)) {
|
|
1342
1342
|
e.f ^= Ri;
|
|
1343
1343
|
var n = e.nodes && e.nodes.t;
|
|
@@ -1345,19 +1345,19 @@ function Ua(e, t, r) {
|
|
|
1345
1345
|
for (const u of n) (u.is_global || r) && t.push(u);
|
|
1346
1346
|
for (var i = e.first; i !== null; ) {
|
|
1347
1347
|
var a = i.next, f = (i.f & 65536) !== 0 || (i.f & 32) !== 0 && (e.f & 16) !== 0;
|
|
1348
|
-
|
|
1348
|
+
za(i, t, f ? r : !1), i = a;
|
|
1349
1349
|
}
|
|
1350
1350
|
}
|
|
1351
1351
|
}
|
|
1352
1352
|
function Gi(e) {
|
|
1353
|
-
|
|
1353
|
+
Ba(e, !0);
|
|
1354
1354
|
}
|
|
1355
|
-
function
|
|
1355
|
+
function Ba(e, t) {
|
|
1356
1356
|
if (e.f & 8192) {
|
|
1357
1357
|
e.f ^= Ri, e.f & 1024 || (ie(e, Xe), Dt.ensure().schedule(e));
|
|
1358
1358
|
for (var r = e.first; r !== null; ) {
|
|
1359
1359
|
var n = r.next, i = (r.f & 65536) !== 0 || (r.f & 32) !== 0;
|
|
1360
|
-
|
|
1360
|
+
Ba(r, i ? t : !1), r = n;
|
|
1361
1361
|
}
|
|
1362
1362
|
var a = e.nodes && e.nodes.t;
|
|
1363
1363
|
if (a !== null)
|
|
@@ -1372,7 +1372,7 @@ function Hi(e, t) {
|
|
|
1372
1372
|
}
|
|
1373
1373
|
}
|
|
1374
1374
|
var bu = null, hn = !1, St = !1;
|
|
1375
|
-
function
|
|
1375
|
+
function Gs(e) {
|
|
1376
1376
|
St = e;
|
|
1377
1377
|
}
|
|
1378
1378
|
var H = null, Fe = !1;
|
|
@@ -1384,19 +1384,19 @@ function Je(e) {
|
|
|
1384
1384
|
z = e;
|
|
1385
1385
|
}
|
|
1386
1386
|
var Pe = null;
|
|
1387
|
-
function
|
|
1387
|
+
function Da(e) {
|
|
1388
1388
|
H !== null && (!Ve || H.f & 2) && (Pe === null ? Pe = [e] : Pe.push(e));
|
|
1389
1389
|
}
|
|
1390
1390
|
var be = null, xe = 0, Me = null;
|
|
1391
1391
|
function wu(e) {
|
|
1392
1392
|
Me = e;
|
|
1393
1393
|
}
|
|
1394
|
-
var
|
|
1395
|
-
function
|
|
1394
|
+
var Ga = 1, It = 0, Ut = It;
|
|
1395
|
+
function Hs(e) {
|
|
1396
1396
|
Ut = e;
|
|
1397
1397
|
}
|
|
1398
|
-
function
|
|
1399
|
-
return ++
|
|
1398
|
+
function Ha() {
|
|
1399
|
+
return ++Ga;
|
|
1400
1400
|
}
|
|
1401
1401
|
function Hr(e) {
|
|
1402
1402
|
var t = e.f;
|
|
@@ -1404,27 +1404,27 @@ function Hr(e) {
|
|
|
1404
1404
|
if (t & 2 && (e.f &= ~zr), t & 4096) {
|
|
1405
1405
|
for (var r = e.deps, n = r.length, i = 0; i < n; i++) {
|
|
1406
1406
|
var a = r[i];
|
|
1407
|
-
if (Hr(a) &&
|
|
1407
|
+
if (Hr(a) && Ma(a), a.wv > e.wv) return !0;
|
|
1408
1408
|
}
|
|
1409
1409
|
t & 512 && we === null && ie(e, Ce);
|
|
1410
1410
|
}
|
|
1411
1411
|
return !1;
|
|
1412
1412
|
}
|
|
1413
|
-
function
|
|
1413
|
+
function Ka(e, t, r = !0) {
|
|
1414
1414
|
var n = e.reactions;
|
|
1415
1415
|
if (n !== null && !(!Ve && Pe !== null && ar.call(Pe, e)))
|
|
1416
1416
|
for (var i = 0; i < n.length; i++) {
|
|
1417
1417
|
var a = n[i];
|
|
1418
|
-
a.f & 2 ?
|
|
1418
|
+
a.f & 2 ? Ka(a, t, !1) : t === a && (r ? ie(a, Xe) : a.f & 1024 && ie(a, Bt), Wi(a));
|
|
1419
1419
|
}
|
|
1420
1420
|
}
|
|
1421
|
-
function
|
|
1421
|
+
function Ya(e) {
|
|
1422
1422
|
var t = be, r = xe, n = Me, i = H, a = Pe, f = te, u = Fe, d = Ut, m = e.f;
|
|
1423
1423
|
be = null, xe = 0, Me = null, H = m & 96 ? null : e, Pe = null, or(e.ctx), Fe = !1, Ut = ++It, e.ac !== null && (In(() => {
|
|
1424
1424
|
e.ac.abort(ot);
|
|
1425
1425
|
}), e.ac = null);
|
|
1426
1426
|
try {
|
|
1427
|
-
e.f |=
|
|
1427
|
+
e.f |= Is;
|
|
1428
1428
|
var _ = e.fn, y = _();
|
|
1429
1429
|
e.f |= Ni;
|
|
1430
1430
|
var h = e.deps, w = G?.is_fork;
|
|
@@ -1438,7 +1438,7 @@ function Ka(e) {
|
|
|
1438
1438
|
((x = h[S]).reactions ?? (x.reactions = [])).push(e);
|
|
1439
1439
|
}
|
|
1440
1440
|
} else !w && h !== null && xe < h.length && (Ur(e, xe), h.length = xe);
|
|
1441
|
-
if (Dr() && Me !== null && !Fe && h !== null && !(e.f & 6146)) for (S = 0; S < Me.length; S++)
|
|
1441
|
+
if (Dr() && Me !== null && !Fe && h !== null && !(e.f & 6146)) for (S = 0; S < Me.length; S++) Ka(Me[S], e);
|
|
1442
1442
|
if (i !== null && i !== e) {
|
|
1443
1443
|
if (It++, i.deps !== null) for (let b = 0; b < r; b += 1) i.deps[b].rv = It;
|
|
1444
1444
|
if (t !== null) for (const b of t) b.rv = It;
|
|
@@ -1446,9 +1446,9 @@ function Ka(e) {
|
|
|
1446
1446
|
}
|
|
1447
1447
|
return e.f & 8388608 && (e.f ^= yn), y;
|
|
1448
1448
|
} catch (b) {
|
|
1449
|
-
return
|
|
1449
|
+
return da(b);
|
|
1450
1450
|
} finally {
|
|
1451
|
-
e.f ^=
|
|
1451
|
+
e.f ^= Is, be = t, xe = r, Me = n, H = i, Pe = a, or(f), Fe = u, Ut = d;
|
|
1452
1452
|
}
|
|
1453
1453
|
}
|
|
1454
1454
|
function ku(e, t) {
|
|
@@ -1478,9 +1478,9 @@ function cr(e) {
|
|
|
1478
1478
|
if (z = e, hn = !0, 0)
|
|
1479
1479
|
var i, a;
|
|
1480
1480
|
try {
|
|
1481
|
-
t & 16777232 ? mu(e) : Di(e),
|
|
1482
|
-
var f =
|
|
1483
|
-
if (e.teardown = typeof f == "function" ? f : null, e.wv =
|
|
1481
|
+
t & 16777232 ? mu(e) : Di(e), qa(e);
|
|
1482
|
+
var f = Ya(e);
|
|
1483
|
+
if (e.teardown = typeof f == "function" ? f : null, e.wv = Ga, 0)
|
|
1484
1484
|
for (var u of e.deps) ;
|
|
1485
1485
|
} finally {
|
|
1486
1486
|
hn = n, z = r;
|
|
@@ -1519,25 +1519,25 @@ function s(e) {
|
|
|
1519
1519
|
var d = e;
|
|
1520
1520
|
if (St) {
|
|
1521
1521
|
var m = d.v;
|
|
1522
|
-
return (!(d.f & 1024) && d.reactions !== null ||
|
|
1522
|
+
return (!(d.f & 1024) && d.reactions !== null || Xa(d)) && (m = qi(d)), kt.set(d, m), m;
|
|
1523
1523
|
}
|
|
1524
1524
|
var _ = (d.f & 512) === 0 && !Fe && H !== null && (hn || (H.f & 512) !== 0), y = (d.f & Ni) === 0;
|
|
1525
|
-
Hr(d) && (_ && (d.f |= 512),
|
|
1525
|
+
Hr(d) && (_ && (d.f |= 512), Ma(d)), _ && !y && (Aa(d), Ja(d));
|
|
1526
1526
|
}
|
|
1527
1527
|
if (we?.has(e)) return we.get(e);
|
|
1528
1528
|
if (e.f & 8388608) throw e.v;
|
|
1529
1529
|
return e.v;
|
|
1530
1530
|
}
|
|
1531
|
-
function
|
|
1531
|
+
function Ja(e) {
|
|
1532
1532
|
if (e.f |= 512, e.deps !== null)
|
|
1533
1533
|
for (const t of e.deps)
|
|
1534
|
-
(t.reactions ?? (t.reactions = [])).push(e), t.f & 2 && !(t.f & 512) && (
|
|
1534
|
+
(t.reactions ?? (t.reactions = [])).push(e), t.f & 2 && !(t.f & 512) && (Aa(t), Ja(t));
|
|
1535
1535
|
}
|
|
1536
|
-
function
|
|
1536
|
+
function Xa(e) {
|
|
1537
1537
|
if (e.v === oe) return !0;
|
|
1538
1538
|
if (e.deps === null) return !1;
|
|
1539
1539
|
for (const t of e.deps)
|
|
1540
|
-
if (kt.has(t) || t.f & 2 &&
|
|
1540
|
+
if (kt.has(t) || t.f & 2 && Xa(t)) return !0;
|
|
1541
1541
|
return !1;
|
|
1542
1542
|
}
|
|
1543
1543
|
function Ht(e) {
|
|
@@ -1548,7 +1548,7 @@ function Ht(e) {
|
|
|
1548
1548
|
Fe = t;
|
|
1549
1549
|
}
|
|
1550
1550
|
}
|
|
1551
|
-
var ir = Symbol("events"),
|
|
1551
|
+
var ir = Symbol("events"), Za = /* @__PURE__ */ new Set(), Mi = /* @__PURE__ */ new Set();
|
|
1552
1552
|
function $u(e, t, r, n = {}) {
|
|
1553
1553
|
function i(a) {
|
|
1554
1554
|
if (n.capture || Ai.call(t, a), !a.cancelBubble) return In(() => r?.call(this, a));
|
|
@@ -1560,15 +1560,15 @@ function $u(e, t, r, n = {}) {
|
|
|
1560
1560
|
function ve(e, t, r) {
|
|
1561
1561
|
(t[ir] ?? (t[ir] = {}))[e] = r;
|
|
1562
1562
|
}
|
|
1563
|
-
function
|
|
1564
|
-
for (var t = 0; t < e.length; t++)
|
|
1563
|
+
function Qa(e) {
|
|
1564
|
+
for (var t = 0; t < e.length; t++) Za.add(e[t]);
|
|
1565
1565
|
for (var r of Mi) r(e);
|
|
1566
1566
|
}
|
|
1567
|
-
var
|
|
1567
|
+
var Ks = null;
|
|
1568
1568
|
function Ai(e) {
|
|
1569
1569
|
var t = this, r = t.ownerDocument, n = e.type, i = e.composedPath?.() || [], a = i[0] || e.target;
|
|
1570
|
-
|
|
1571
|
-
var f = 0, u =
|
|
1570
|
+
Ks = e;
|
|
1571
|
+
var f = 0, u = Ks === e && e[ir];
|
|
1572
1572
|
if (u) {
|
|
1573
1573
|
var d = i.indexOf(u);
|
|
1574
1574
|
if (d !== -1 && (t === document || t === window)) {
|
|
@@ -1635,7 +1635,7 @@ function ae(e, t) {
|
|
|
1635
1635
|
if (O)
|
|
1636
1636
|
return ft(Y, null), Y;
|
|
1637
1637
|
i === void 0 && (i = Tu(a ? e : "<!>" + e), r || (i = /* @__PURE__ */ ct(i)));
|
|
1638
|
-
var f = n ||
|
|
1638
|
+
var f = n || Ra ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1639
1639
|
if (r) {
|
|
1640
1640
|
var u = /* @__PURE__ */ ct(f), d = f.lastChild;
|
|
1641
1641
|
ft(u, d);
|
|
@@ -1800,8 +1800,8 @@ function he(e, t) {
|
|
|
1800
1800
|
var r = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1801
1801
|
r !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = r, e.nodeValue = `${r}`);
|
|
1802
1802
|
}
|
|
1803
|
-
function
|
|
1804
|
-
return
|
|
1803
|
+
function el(e, t) {
|
|
1804
|
+
return tl(e, t);
|
|
1805
1805
|
}
|
|
1806
1806
|
function Vu(e, t) {
|
|
1807
1807
|
Ti(), t.intro = t.intro ?? !1;
|
|
@@ -1810,7 +1810,7 @@ function Vu(e, t) {
|
|
|
1810
1810
|
for (var a = /* @__PURE__ */ ct(r); a && (a.nodeType !== 8 || a.data !== "["); ) a = /* @__PURE__ */ Ze(a);
|
|
1811
1811
|
if (!a) throw sr;
|
|
1812
1812
|
Ee(!0), ue(a);
|
|
1813
|
-
const f =
|
|
1813
|
+
const f = tl(e, {
|
|
1814
1814
|
...t,
|
|
1815
1815
|
anchor: a
|
|
1816
1816
|
});
|
|
@@ -1818,23 +1818,23 @@ function Vu(e, t) {
|
|
|
1818
1818
|
} catch (f) {
|
|
1819
1819
|
if (f instanceof Error && f.message.split(`
|
|
1820
1820
|
`).some((u) => u.startsWith("https://svelte.dev/e/"))) throw f;
|
|
1821
|
-
return f !== sr && console.warn("Failed to hydrate: ", f), t.recover === !1 && Po(), Ti(), Ui(r), Ee(!1),
|
|
1821
|
+
return f !== sr && console.warn("Failed to hydrate: ", f), t.recover === !1 && Po(), Ti(), Ui(r), Ee(!1), el(e, t);
|
|
1822
1822
|
} finally {
|
|
1823
1823
|
Ee(n), ue(i);
|
|
1824
1824
|
}
|
|
1825
1825
|
}
|
|
1826
1826
|
var cn = /* @__PURE__ */ new Map();
|
|
1827
|
-
function
|
|
1827
|
+
function tl(e, { target: t, anchor: r, props: n = {}, events: i, context: a, intro: f = !0, transformError: u }) {
|
|
1828
1828
|
Ti();
|
|
1829
1829
|
var d = void 0, m = _u(() => {
|
|
1830
1830
|
var _ = r ?? t.appendChild(_e());
|
|
1831
1831
|
Yo(_, { pending: () => {
|
|
1832
1832
|
} }, (w) => {
|
|
1833
|
-
|
|
1833
|
+
ua({});
|
|
1834
1834
|
var S = te;
|
|
1835
1835
|
if (a && (S.c = a), i && (n.$$events = i), O && ft(w, null), Pi = f, d = e(w, n) || {}, Pi = !0, O && (z.nodes.end = Y, Y === null || Y.nodeType !== 8 || Y.data !== "]"))
|
|
1836
1836
|
throw Ln(), sr;
|
|
1837
|
-
|
|
1837
|
+
fa();
|
|
1838
1838
|
}, u);
|
|
1839
1839
|
var y = /* @__PURE__ */ new Set(), h = (w) => {
|
|
1840
1840
|
for (var S = 0; S < w.length; S++) {
|
|
@@ -1851,7 +1851,7 @@ function el(e, { target: t, anchor: r, props: n = {}, events: i, context: a, int
|
|
|
1851
1851
|
}
|
|
1852
1852
|
}
|
|
1853
1853
|
};
|
|
1854
|
-
return h(An(
|
|
1854
|
+
return h(An(Za)), Mi.add(h), () => {
|
|
1855
1855
|
for (var w of y) for (const b of [t, document]) {
|
|
1856
1856
|
var S = cn.get(b), x = S.get(w);
|
|
1857
1857
|
--x == 0 ? (b.removeEventListener(w, Ai), S.delete(w), S.size === 0 && cn.delete(b)) : S.set(w, x);
|
|
@@ -1866,7 +1866,7 @@ function qu(e, t) {
|
|
|
1866
1866
|
const r = Ci.get(e);
|
|
1867
1867
|
return r ? (Ci.delete(e), r(t)) : Promise.resolve();
|
|
1868
1868
|
}
|
|
1869
|
-
var at = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), xr = /* @__PURE__ */ new WeakMap(), pi = /* @__PURE__ */ new WeakMap(), hi = /* @__PURE__ */ new WeakMap(),
|
|
1869
|
+
var at = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), xr = /* @__PURE__ */ new WeakMap(), pi = /* @__PURE__ */ new WeakMap(), hi = /* @__PURE__ */ new WeakMap(), Ys = /* @__PURE__ */ new WeakMap(), rl = class {
|
|
1870
1870
|
constructor(e, t = !0) {
|
|
1871
1871
|
ne(this, "anchor", void 0), B(this, at, /* @__PURE__ */ new Map()), B(this, gt, /* @__PURE__ */ new Map()), B(this, Oe, /* @__PURE__ */ new Map()), B(this, xr, /* @__PURE__ */ new Set()), B(this, pi, !0), B(this, hi, (r) => {
|
|
1872
1872
|
if (v(at, this).has(r)) {
|
|
@@ -1897,14 +1897,14 @@ var at = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), Oe =
|
|
|
1897
1897
|
v(pi, this) || !i ? (v(xr, this).add(f), Gt(u, d, !1)) : d();
|
|
1898
1898
|
}
|
|
1899
1899
|
}
|
|
1900
|
-
}), B(this,
|
|
1900
|
+
}), B(this, Ys, (r) => {
|
|
1901
1901
|
v(at, this).delete(r);
|
|
1902
1902
|
const n = Array.from(v(at, this).values());
|
|
1903
1903
|
for (const [i, a] of v(Oe, this)) n.includes(i) || (fe(a.effect), v(Oe, this).delete(i));
|
|
1904
1904
|
}), this.anchor = e, W(pi, this, t);
|
|
1905
1905
|
}
|
|
1906
1906
|
ensure(e, t) {
|
|
1907
|
-
var r = G, n =
|
|
1907
|
+
var r = G, n = Ia();
|
|
1908
1908
|
if (t && !v(gt, this).has(e) && !v(Oe, this).has(e)) if (n) {
|
|
1909
1909
|
var i = document.createDocumentFragment(), a = _e();
|
|
1910
1910
|
i.append(a), v(Oe, this).set(e, {
|
|
@@ -1915,19 +1915,19 @@ var at = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), Oe =
|
|
|
1915
1915
|
if (v(at, this).set(r, e), n) {
|
|
1916
1916
|
for (const [f, u] of v(gt, this)) f === e ? r.unskip_effect(u) : r.skip_effect(u);
|
|
1917
1917
|
for (const [f, u] of v(Oe, this)) f === e ? r.unskip_effect(u.effect) : r.skip_effect(u.effect);
|
|
1918
|
-
r.oncommit(v(hi, this)), r.ondiscard(v(
|
|
1918
|
+
r.oncommit(v(hi, this)), r.ondiscard(v(Ys, this));
|
|
1919
1919
|
} else
|
|
1920
1920
|
O && (this.anchor = Y), v(hi, this).call(this, r);
|
|
1921
1921
|
}
|
|
1922
1922
|
};
|
|
1923
|
-
function
|
|
1923
|
+
function nl(e) {
|
|
1924
1924
|
te === null && Oi("onMount"), Br && te.l !== null ? Du(te).m.push(e) : pn(() => {
|
|
1925
1925
|
const t = Ht(e);
|
|
1926
1926
|
if (typeof t == "function") return t;
|
|
1927
1927
|
});
|
|
1928
1928
|
}
|
|
1929
1929
|
function Uu(e) {
|
|
1930
|
-
te === null && Oi("onDestroy"),
|
|
1930
|
+
te === null && Oi("onDestroy"), nl(() => () => Ht(e));
|
|
1931
1931
|
}
|
|
1932
1932
|
function zu(e, t, { bubbles: r = !1, cancelable: n = !1 } = {}) {
|
|
1933
1933
|
return new CustomEvent(e, {
|
|
@@ -1959,10 +1959,10 @@ function Du(e) {
|
|
|
1959
1959
|
function Be(e, t, r = !1) {
|
|
1960
1960
|
var n;
|
|
1961
1961
|
O && (n = Y, lr());
|
|
1962
|
-
var i = new
|
|
1962
|
+
var i = new rl(e), a = r ? Pn : 0;
|
|
1963
1963
|
function f(u, d) {
|
|
1964
1964
|
if (O) {
|
|
1965
|
-
var m =
|
|
1965
|
+
var m = aa(n);
|
|
1966
1966
|
if (u !== parseInt(m.substring(1))) {
|
|
1967
1967
|
var _ = bn();
|
|
1968
1968
|
ue(_), i.anchor = _, Ee(!1), i.ensure(u, d), Ee(!0);
|
|
@@ -2042,8 +2042,8 @@ function Tr(e, t, r, n, i, a = null) {
|
|
|
2042
2042
|
y = s(_);
|
|
2043
2043
|
var $ = y.length;
|
|
2044
2044
|
let C = !1;
|
|
2045
|
-
O &&
|
|
2046
|
-
for (var F = /* @__PURE__ */ new Set(), A = G, U =
|
|
2045
|
+
O && aa(f) === "[!" != ($ === 0) && (f = bn(), ue(f), Ee(!1), C = !0);
|
|
2046
|
+
for (var F = /* @__PURE__ */ new Set(), A = G, U = Ia(), D = 0; D < $; D += 1) {
|
|
2047
2047
|
O && Y.nodeType === 8 && Y.data === "]" && (f = Y, C = !0, Ee(!1));
|
|
2048
2048
|
var ee = y[D], K = n(ee, D);
|
|
2049
2049
|
if (0)
|
|
@@ -2129,7 +2129,7 @@ function Hu(e, t, r, n, i) {
|
|
|
2129
2129
|
});
|
|
2130
2130
|
}
|
|
2131
2131
|
function Ku(e, t, r, n, i, a, f, u) {
|
|
2132
|
-
var d = f & 1 ? f & 16 ? zt(r) : /* @__PURE__ */
|
|
2132
|
+
var d = f & 1 ? f & 16 ? zt(r) : /* @__PURE__ */ Ca(r, !1, !1) : null, m = f & 2 ? zt(i) : null;
|
|
2133
2133
|
return {
|
|
2134
2134
|
v: d,
|
|
2135
2135
|
i: m,
|
|
@@ -2150,7 +2150,7 @@ function mt(e, t, r) {
|
|
|
2150
2150
|
t === null ? e.effect.first = r : t.next = r, r === null ? e.effect.last = t : r.prev = t;
|
|
2151
2151
|
}
|
|
2152
2152
|
var Yu = null;
|
|
2153
|
-
function
|
|
2153
|
+
function Js(e) {
|
|
2154
2154
|
Yu = e;
|
|
2155
2155
|
}
|
|
2156
2156
|
function Ju(e, t, r, n, i, a) {
|
|
@@ -2158,7 +2158,7 @@ function Ju(e, t, r, n, i, a) {
|
|
|
2158
2158
|
O && lr();
|
|
2159
2159
|
var u = !1, d = null;
|
|
2160
2160
|
O && Y.nodeType === 1 && (d = Y, lr());
|
|
2161
|
-
var m = O ? Y : e, _ = z, y = new
|
|
2161
|
+
var m = O ? Y : e, _ = z, y = new rl(m, !1);
|
|
2162
2162
|
Wn(() => {
|
|
2163
2163
|
const h = t() || null;
|
|
2164
2164
|
var w = i ? i() : r || h === "svg" ? oo : void 0;
|
|
@@ -2171,7 +2171,7 @@ function Ju(e, t, r, n, i, a) {
|
|
|
2171
2171
|
if (d = O ? d : Nn(h, w), ft(d, d), n) {
|
|
2172
2172
|
O && Fu(h) && d.append(document.createComment(""));
|
|
2173
2173
|
var x = O ? /* @__PURE__ */ ct(d) : d.appendChild(_e());
|
|
2174
|
-
O && (x === null ? Ee(!1) : ue(x)),
|
|
2174
|
+
O && (x === null ? Ee(!1) : ue(x)), Js(_), n(d, x), Js(null);
|
|
2175
2175
|
}
|
|
2176
2176
|
z.nodes.end = d, S.before(d);
|
|
2177
2177
|
}
|
|
@@ -2194,29 +2194,29 @@ function Xu(e, t) {
|
|
|
2194
2194
|
}
|
|
2195
2195
|
function Zu(e, t) {
|
|
2196
2196
|
var r = void 0, n;
|
|
2197
|
-
|
|
2197
|
+
Va(() => {
|
|
2198
2198
|
r !== (r = t()) && (n && (fe(n), n = null), r && (n = ke(() => {
|
|
2199
2199
|
Gr(() => r(e));
|
|
2200
2200
|
})));
|
|
2201
2201
|
});
|
|
2202
2202
|
}
|
|
2203
|
-
function
|
|
2203
|
+
function il(e) {
|
|
2204
2204
|
var t, r, n = "";
|
|
2205
2205
|
if (typeof e == "string" || typeof e == "number") n += e;
|
|
2206
2206
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
2207
2207
|
var i = e.length;
|
|
2208
|
-
for (t = 0; t < i; t++) e[t] && (r =
|
|
2208
|
+
for (t = 0; t < i; t++) e[t] && (r = il(e[t])) && (n && (n += " "), n += r);
|
|
2209
2209
|
} else for (r in e) e[r] && (n && (n += " "), n += r);
|
|
2210
2210
|
return n;
|
|
2211
2211
|
}
|
|
2212
2212
|
function Qu() {
|
|
2213
|
-
for (var e, t, r = 0, n = "", i = arguments.length; r < i; r++) (e = arguments[r]) && (t =
|
|
2213
|
+
for (var e, t, r = 0, n = "", i = arguments.length; r < i; r++) (e = arguments[r]) && (t = il(e)) && (n && (n += " "), n += t);
|
|
2214
2214
|
return n;
|
|
2215
2215
|
}
|
|
2216
|
-
function
|
|
2216
|
+
function sl(e) {
|
|
2217
2217
|
return typeof e == "object" ? Qu(e) : e ?? "";
|
|
2218
2218
|
}
|
|
2219
|
-
var
|
|
2219
|
+
var Xs = [...`
|
|
2220
2220
|
\r\f \v\uFEFF`];
|
|
2221
2221
|
function ef(e, t, r) {
|
|
2222
2222
|
var n = e == null ? "" : "" + e;
|
|
@@ -2225,12 +2225,12 @@ function ef(e, t, r) {
|
|
|
2225
2225
|
else if (n.length)
|
|
2226
2226
|
for (var a = i.length, f = 0; (f = n.indexOf(i, f)) >= 0; ) {
|
|
2227
2227
|
var u = f + a;
|
|
2228
|
-
(f === 0 ||
|
|
2228
|
+
(f === 0 || Xs.includes(n[f - 1])) && (u === n.length || Xs.includes(n[u])) ? n = (f === 0 ? "" : n.substring(0, f)) + n.substring(u + 1) : f = u;
|
|
2229
2229
|
}
|
|
2230
2230
|
}
|
|
2231
2231
|
return n === "" ? null : n;
|
|
2232
2232
|
}
|
|
2233
|
-
function
|
|
2233
|
+
function Zs(e, t = !1) {
|
|
2234
2234
|
var r = t ? " !important;" : ";", n = "";
|
|
2235
2235
|
for (var i of Object.keys(e)) {
|
|
2236
2236
|
var a = e[i];
|
|
@@ -2268,7 +2268,7 @@ function tf(e, t) {
|
|
|
2268
2268
|
}
|
|
2269
2269
|
}
|
|
2270
2270
|
}
|
|
2271
|
-
return n && (r +=
|
|
2271
|
+
return n && (r += Zs(n)), i && (r += Zs(i, !0)), r = r.trim(), r === "" ? null : r;
|
|
2272
2272
|
}
|
|
2273
2273
|
return e == null ? null : String(e);
|
|
2274
2274
|
}
|
|
@@ -2289,7 +2289,7 @@ function gi(e, t = {}, r, n) {
|
|
|
2289
2289
|
t[i] !== a && (r[i] == null ? e.style.removeProperty(i) : e.style.setProperty(i, a, n));
|
|
2290
2290
|
}
|
|
2291
2291
|
}
|
|
2292
|
-
function
|
|
2292
|
+
function al(e, t, r, n) {
|
|
2293
2293
|
var i = e.__style;
|
|
2294
2294
|
if (O || i !== t) {
|
|
2295
2295
|
var a = tf(t, n);
|
|
@@ -2310,7 +2310,7 @@ function xn(e, t, r = !1) {
|
|
|
2310
2310
|
}
|
|
2311
2311
|
(!r || t !== void 0) && (e.selectedIndex = -1);
|
|
2312
2312
|
}
|
|
2313
|
-
function
|
|
2313
|
+
function ll(e) {
|
|
2314
2314
|
var t = new MutationObserver(() => {
|
|
2315
2315
|
xn(e, e.__value);
|
|
2316
2316
|
});
|
|
@@ -2325,7 +2325,7 @@ function al(e) {
|
|
|
2325
2325
|
}
|
|
2326
2326
|
function De(e, t, r = t) {
|
|
2327
2327
|
var n = /* @__PURE__ */ new WeakSet(), i = !0;
|
|
2328
|
-
|
|
2328
|
+
Wa(e, "change", (a) => {
|
|
2329
2329
|
var f = a ? "[selected]" : ":checked", u;
|
|
2330
2330
|
if (e.multiple) u = [].map.call(e.querySelectorAll(f), Wr);
|
|
2331
2331
|
else {
|
|
@@ -2344,12 +2344,12 @@ function De(e, t, r = t) {
|
|
|
2344
2344
|
u !== null && (a = Wr(u), r(a));
|
|
2345
2345
|
}
|
|
2346
2346
|
e.__value = a, i = !1;
|
|
2347
|
-
}),
|
|
2347
|
+
}), ll(e);
|
|
2348
2348
|
}
|
|
2349
2349
|
function Wr(e) {
|
|
2350
2350
|
return "__value" in e ? e.__value : e.value;
|
|
2351
2351
|
}
|
|
2352
|
-
var Ar = Symbol("class"), Pr = Symbol("style"),
|
|
2352
|
+
var Ar = Symbol("class"), Pr = Symbol("style"), ol = Symbol("is custom element"), ul = Symbol("is html"), rf = Cn ? "link" : "LINK", nf = Cn ? "input" : "INPUT", sf = Cn ? "option" : "OPTION", af = Cn ? "select" : "SELECT";
|
|
2353
2353
|
function Nr(e) {
|
|
2354
2354
|
if (O) {
|
|
2355
2355
|
var t = !1, r = () => {
|
|
@@ -2364,32 +2364,32 @@ function Nr(e) {
|
|
|
2364
2364
|
}
|
|
2365
2365
|
}
|
|
2366
2366
|
};
|
|
2367
|
-
e.__on_r = r, Ye(r),
|
|
2367
|
+
e.__on_r = r, Ye(r), ja();
|
|
2368
2368
|
}
|
|
2369
2369
|
}
|
|
2370
2370
|
function lf(e, t) {
|
|
2371
2371
|
t ? e.hasAttribute("selected") || e.setAttribute("selected", "") : e.removeAttribute("selected");
|
|
2372
2372
|
}
|
|
2373
2373
|
function En(e, t, r, n) {
|
|
2374
|
-
var i =
|
|
2374
|
+
var i = fl(e);
|
|
2375
2375
|
if (O && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === rf)) {
|
|
2376
2376
|
n || void 0;
|
|
2377
2377
|
return;
|
|
2378
2378
|
}
|
|
2379
|
-
i[t] !== (i[t] = r) && (t === "loading" && (e[ko] = r), r == null ? e.removeAttribute(t) : typeof r != "string" &&
|
|
2379
|
+
i[t] !== (i[t] = r) && (t === "loading" && (e[ko] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && cl(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
|
|
2380
2380
|
}
|
|
2381
2381
|
function of(e, t, r, n, i = !1, a = !1) {
|
|
2382
2382
|
if (O && i && e.nodeName === nf) {
|
|
2383
2383
|
var f = e;
|
|
2384
2384
|
(f.type === "checkbox" ? "defaultChecked" : "defaultValue") in r || Nr(f);
|
|
2385
2385
|
}
|
|
2386
|
-
var u =
|
|
2386
|
+
var u = fl(e), d = u[ol], m = !u[ul];
|
|
2387
2387
|
let _ = O && d;
|
|
2388
2388
|
_ && Ee(!1);
|
|
2389
2389
|
var y = t || {}, h = e.nodeName === sf;
|
|
2390
2390
|
for (var w in t) w in r || (r[w] = null);
|
|
2391
|
-
r.class ? r.class =
|
|
2392
|
-
var S =
|
|
2391
|
+
r.class ? r.class = sl(r.class) : (n || r[Ar]) && (r.class = null), r[Pr] && (r.style ?? (r.style = null));
|
|
2392
|
+
var S = cl(e);
|
|
2393
2393
|
for (const A in r) {
|
|
2394
2394
|
let U = r[A];
|
|
2395
2395
|
if (h && A === "value" && U == null) {
|
|
@@ -2401,7 +2401,7 @@ function of(e, t, r, n, i = !1, a = !1) {
|
|
|
2401
2401
|
continue;
|
|
2402
2402
|
}
|
|
2403
2403
|
if (A === "style") {
|
|
2404
|
-
|
|
2404
|
+
al(e, U, t?.[Pr], r[Pr]), y[A] = U, y[Pr] = r[Pr];
|
|
2405
2405
|
continue;
|
|
2406
2406
|
}
|
|
2407
2407
|
var x = y[A];
|
|
@@ -2418,7 +2418,7 @@ function of(e, t, r, n, i = !1, a = !1) {
|
|
|
2418
2418
|
e.removeEventListener(K, y[ee], D), y[ee] = null;
|
|
2419
2419
|
}
|
|
2420
2420
|
if ($)
|
|
2421
|
-
ve(K, e, U),
|
|
2421
|
+
ve(K, e, U), Qa([K]);
|
|
2422
2422
|
else if (U != null) {
|
|
2423
2423
|
let ge = function(re) {
|
|
2424
2424
|
y[A].call(this, re);
|
|
@@ -2452,9 +2452,9 @@ function of(e, t, r, n, i = !1, a = !1) {
|
|
|
2452
2452
|
return _ && Ee(!0), y;
|
|
2453
2453
|
}
|
|
2454
2454
|
function uf(e, t, r = [], n = [], i = [], a, f = !1, u = !1) {
|
|
2455
|
-
|
|
2455
|
+
Ea(i, r, n, (d) => {
|
|
2456
2456
|
var m = void 0, _ = {}, y = e.nodeName === af, h = !1;
|
|
2457
|
-
if (
|
|
2457
|
+
if (Va(() => {
|
|
2458
2458
|
var S = t(...d.map(s)), x = of(e, m, S, a, f, u);
|
|
2459
2459
|
h && y && "value" in S && xn(e, S.value);
|
|
2460
2460
|
for (let $ of Object.getOwnPropertySymbols(_)) S[$] || fe(_[$]);
|
|
@@ -2466,33 +2466,33 @@ function uf(e, t, r = [], n = [], i = [], a, f = !1, u = !1) {
|
|
|
2466
2466
|
}), y) {
|
|
2467
2467
|
var w = e;
|
|
2468
2468
|
Gr(() => {
|
|
2469
|
-
xn(w, m.value, !0),
|
|
2469
|
+
xn(w, m.value, !0), ll(w);
|
|
2470
2470
|
});
|
|
2471
2471
|
}
|
|
2472
2472
|
h = !0;
|
|
2473
2473
|
});
|
|
2474
2474
|
}
|
|
2475
|
-
function
|
|
2475
|
+
function fl(e) {
|
|
2476
2476
|
return e.__attributes ?? (e.__attributes = {
|
|
2477
|
-
[
|
|
2478
|
-
[
|
|
2477
|
+
[ol]: e.nodeName.includes("-"),
|
|
2478
|
+
[ul]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
|
|
2479
2479
|
});
|
|
2480
2480
|
}
|
|
2481
|
-
var
|
|
2482
|
-
function
|
|
2483
|
-
var t = e.getAttribute("is") || e.nodeName, r =
|
|
2481
|
+
var Qs = /* @__PURE__ */ new Map();
|
|
2482
|
+
function cl(e) {
|
|
2483
|
+
var t = e.getAttribute("is") || e.nodeName, r = Qs.get(t);
|
|
2484
2484
|
if (r) return r;
|
|
2485
|
-
|
|
2485
|
+
Qs.set(t, r = []);
|
|
2486
2486
|
for (var n, i = e, a = Element.prototype; a !== i; ) {
|
|
2487
2487
|
n = fo(i);
|
|
2488
2488
|
for (var f in n) n[f].set && r.push(f);
|
|
2489
|
-
i =
|
|
2489
|
+
i = ra(i);
|
|
2490
2490
|
}
|
|
2491
2491
|
return r;
|
|
2492
2492
|
}
|
|
2493
2493
|
function Cr(e, t, r = t) {
|
|
2494
2494
|
var n = /* @__PURE__ */ new WeakSet();
|
|
2495
|
-
|
|
2495
|
+
Wa(e, "input", async (i) => {
|
|
2496
2496
|
var a = i ? e.defaultValue : e.value;
|
|
2497
2497
|
if (a = mi(e) ? yi(a) : a, r(a), G !== null && n.add(G), await Su(), a !== (a = t())) {
|
|
2498
2498
|
var f = e.selectionStart, u = e.selectionEnd, d = e.value.length;
|
|
@@ -2517,29 +2517,29 @@ function mi(e) {
|
|
|
2517
2517
|
function yi(e) {
|
|
2518
2518
|
return e === "" ? null : +e;
|
|
2519
2519
|
}
|
|
2520
|
-
var
|
|
2520
|
+
var dl, nr = /* @__PURE__ */ new WeakMap(), Tn = /* @__PURE__ */ new WeakMap(), bi = /* @__PURE__ */ new WeakMap(), ea = /* @__PURE__ */ new WeakSet(), vl = class {
|
|
2521
2521
|
constructor(e) {
|
|
2522
|
-
ji(this,
|
|
2522
|
+
ji(this, ea), B(this, nr, /* @__PURE__ */ new WeakMap()), B(this, Tn, void 0), B(this, bi, void 0), W(bi, this, e);
|
|
2523
2523
|
}
|
|
2524
2524
|
observe(e, t) {
|
|
2525
2525
|
var r = v(nr, this).get(e) || /* @__PURE__ */ new Set();
|
|
2526
|
-
return r.add(t), v(nr, this).set(e, r), Q(
|
|
2526
|
+
return r.add(t), v(nr, this).set(e, r), Q(ea, this, ff).call(this).observe(e, v(bi, this)), () => {
|
|
2527
2527
|
var n = v(nr, this).get(e);
|
|
2528
2528
|
n.delete(t), n.size === 0 && (v(nr, this).delete(e), v(Tn, this).unobserve(e));
|
|
2529
2529
|
};
|
|
2530
2530
|
}
|
|
2531
2531
|
};
|
|
2532
|
-
|
|
2532
|
+
dl = vl;
|
|
2533
2533
|
function ff() {
|
|
2534
2534
|
return v(Tn, this) ?? W(Tn, this, new ResizeObserver((e) => {
|
|
2535
2535
|
for (var t of e) {
|
|
2536
|
-
|
|
2536
|
+
dl.entries.set(t.target, t);
|
|
2537
2537
|
for (var r of v(nr, this).get(t.target) || []) r(t);
|
|
2538
2538
|
}
|
|
2539
2539
|
}));
|
|
2540
2540
|
}
|
|
2541
|
-
ne(
|
|
2542
|
-
function
|
|
2541
|
+
ne(vl, "entries", /* @__PURE__ */ new WeakMap());
|
|
2542
|
+
function ta(e, t) {
|
|
2543
2543
|
return e === t || e?.[Wt] === t;
|
|
2544
2544
|
}
|
|
2545
2545
|
function wi(e = {}, t, r, n) {
|
|
@@ -2548,13 +2548,13 @@ function wi(e = {}, t, r, n) {
|
|
|
2548
2548
|
var f, u;
|
|
2549
2549
|
return jn(() => {
|
|
2550
2550
|
f = u, u = n?.() || [], Ht(() => {
|
|
2551
|
-
e !== r(...u) && (t(e, ...u), f &&
|
|
2551
|
+
e !== r(...u) && (t(e, ...u), f && ta(r(...f), e) && t(null, ...f));
|
|
2552
2552
|
});
|
|
2553
2553
|
}), () => {
|
|
2554
2554
|
let d = a;
|
|
2555
2555
|
for (; d !== i && d.parent !== null && d.parent.f & 33554432; ) d = d.parent;
|
|
2556
2556
|
const m = () => {
|
|
2557
|
-
u &&
|
|
2557
|
+
u && ta(r(...u), e) && t(null, ...u);
|
|
2558
2558
|
}, _ = d.teardown;
|
|
2559
2559
|
d.teardown = () => {
|
|
2560
2560
|
m(), _?.();
|
|
@@ -2566,7 +2566,7 @@ function Lr(e, t, r, n) {
|
|
|
2566
2566
|
var i = !Br || (r & 2) !== 0, a = (r & 8) !== 0, f = (r & 16) !== 0, u = n, d = !0, m = () => (d && (d = !1, u = f ? Ht(n) : n), u);
|
|
2567
2567
|
let _;
|
|
2568
2568
|
if (a) {
|
|
2569
|
-
var y = Wt in e ||
|
|
2569
|
+
var y = Wt in e || ia in e;
|
|
2570
2570
|
_ = jt(e, t)?.set ?? (y && t in e ? (F) => e[t] = F : void 0);
|
|
2571
2571
|
}
|
|
2572
2572
|
var h, w = !1;
|
|
@@ -2603,7 +2603,7 @@ var Lt = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), df =
|
|
|
2603
2603
|
constructor(e) {
|
|
2604
2604
|
B(this, Lt, void 0), B(this, Ge, void 0);
|
|
2605
2605
|
var t = /* @__PURE__ */ new Map(), r = (i, a) => {
|
|
2606
|
-
var f = /* @__PURE__ */
|
|
2606
|
+
var f = /* @__PURE__ */ Ca(a, !1, !1);
|
|
2607
2607
|
return t.set(i, f), f;
|
|
2608
2608
|
};
|
|
2609
2609
|
const n = new Proxy({
|
|
@@ -2614,13 +2614,13 @@ var Lt = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), df =
|
|
|
2614
2614
|
return s(t.get(a) ?? r(a, Reflect.get(i, a)));
|
|
2615
2615
|
},
|
|
2616
2616
|
has(i, a) {
|
|
2617
|
-
return a ===
|
|
2617
|
+
return a === ia ? !0 : (s(t.get(a) ?? r(a, Reflect.get(i, a))), Reflect.has(i, a));
|
|
2618
2618
|
},
|
|
2619
2619
|
set(i, a, f) {
|
|
2620
2620
|
return g(t.get(a) ?? r(a, f), f), Reflect.set(i, a, f);
|
|
2621
2621
|
}
|
|
2622
2622
|
});
|
|
2623
|
-
W(Ge, this, (e.hydrate ? Vu :
|
|
2623
|
+
W(Ge, this, (e.hydrate ? Vu : el)(e.component, {
|
|
2624
2624
|
target: e.target,
|
|
2625
2625
|
anchor: e.anchor,
|
|
2626
2626
|
props: n,
|
|
@@ -2658,8 +2658,8 @@ var Lt = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), df =
|
|
|
2658
2658
|
$destroy() {
|
|
2659
2659
|
v(Ge, this).$destroy();
|
|
2660
2660
|
}
|
|
2661
|
-
},
|
|
2662
|
-
typeof HTMLElement == "function" && (
|
|
2661
|
+
}, pl;
|
|
2662
|
+
typeof HTMLElement == "function" && (pl = class extends HTMLElement {
|
|
2663
2663
|
constructor(e, t, r) {
|
|
2664
2664
|
super(), ne(this, "$$ctor", void 0), ne(this, "$$s", void 0), ne(this, "$$c", void 0), ne(this, "$$cn", !1), ne(this, "$$d", {}), ne(this, "$$r", !1), ne(this, "$$p_d", {}), ne(this, "$$l", {}), ne(this, "$$l_u", /* @__PURE__ */ new Map()), ne(this, "$$me", void 0), ne(this, "$$shadowRoot", null), this.$$ctor = e, this.$$s = t, r && (this.$$shadowRoot = this.attachShadow(r));
|
|
2665
2665
|
}
|
|
@@ -2764,7 +2764,7 @@ function vf(e) {
|
|
|
2764
2764
|
}), t;
|
|
2765
2765
|
}
|
|
2766
2766
|
function pf(e, t, r, n, i, a) {
|
|
2767
|
-
let f = class extends
|
|
2767
|
+
let f = class extends pl {
|
|
2768
2768
|
constructor() {
|
|
2769
2769
|
super(e, r, i), this.$$p_d = t;
|
|
2770
2770
|
}
|
|
@@ -2798,7 +2798,7 @@ var hf = /* @__PURE__ */ ae("<button> </button>"), _f = /* @__PURE__ */ ae('<spa
|
|
|
2798
2798
|
"Courier New", monospace;}.pie-tts-preview-row.svelte-3sm1sy {display:flex;align-items:center;justify-content:space-between;gap:0.5rem;}.pie-tts-preview-track.svelte-3sm1sy {margin-top:0.15rem;border:1px dashed var(--color-base-300);border-radius:0.5rem;padding:0.4rem 0.5rem;min-height:2.6rem;white-space:pre-wrap;font-size:0.75rem;line-height:1.4;}.pie-tts-preview-active.svelte-3sm1sy {background:color-mix(in srgb, var(--color-warning) 40%, transparent);border-radius:0.15rem;}`
|
|
2799
2799
|
};
|
|
2800
2800
|
function Of(e, t) {
|
|
2801
|
-
|
|
2801
|
+
ua(t, !0), Xu(e, Nf);
|
|
2802
2802
|
const r = Bu(), n = "/api/tts", i = "pie:section-player-tools:tts-settings";
|
|
2803
2803
|
let a = Lr(t, "toolkitCoordinator", 7, null), f = Lr(t, "apiEndpoint", 7, "/api/tts"), u = Lr(t, "storageKey", 7, i), d = Lr(t, "adapters", 23, () => ({})), m = Lr(t, "customProviders", 23, () => []), _ = /* @__PURE__ */ N("browser"), y = /* @__PURE__ */ N(null), h = /* @__PURE__ */ N(null), w = /* @__PURE__ */ N(!1), S = /* @__PURE__ */ N(!1), x = /* @__PURE__ */ N(null), b = /* @__PURE__ */ N(null), $ = /* @__PURE__ */ N("plain"), C = /* @__PURE__ */ N(""), F = /* @__PURE__ */ N(null), A = /* @__PURE__ */ N(-1), U = /* @__PURE__ */ N(0), D = /* @__PURE__ */ N(Ae({})), ee = /* @__PURE__ */ N(Ae({})), K = /* @__PURE__ */ N(Ae({})), ge = /* @__PURE__ */ N(""), re = /* @__PURE__ */ N(1), vr = /* @__PURE__ */ N(1), Qe = /* @__PURE__ */ N(""), dt = /* @__PURE__ */ N("en-US"), pr = /* @__PURE__ */ N(""), Ue = /* @__PURE__ */ N("neural"), Kt = /* @__PURE__ */ N(24e3), Yt = /* @__PURE__ */ N("mp3"), hr = /* @__PURE__ */ N("word"), et = /* @__PURE__ */ N(""), Fn = /* @__PURE__ */ N(1), $t = /* @__PURE__ */ N(""), vt = /* @__PURE__ */ N("en-US"), xt = /* @__PURE__ */ N(""), Et = /* @__PURE__ */ N("wavenet"), tt = /* @__PURE__ */ N(""), Vn = /* @__PURE__ */ N(1), Tt = /* @__PURE__ */ N(Ae({
|
|
2804
2804
|
checked: !1,
|
|
@@ -2822,7 +2822,7 @@ function Of(e, t) {
|
|
|
2822
2822
|
detail: null,
|
|
2823
2823
|
voices: []
|
|
2824
2824
|
})), ht = null, le = null, Kr = 0, qn = /* @__PURE__ */ N(null), Yr = /* @__PURE__ */ N(null), Jr = /* @__PURE__ */ N(null), Jt = null;
|
|
2825
|
-
function
|
|
2825
|
+
function hl(l, o = {}) {
|
|
2826
2826
|
const c = () => Array.from(l.querySelectorAll("button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex='-1'])")).filter((P) => P.offsetParent !== null || P.getClientRects().length > 0), p = document.activeElement, k = (P) => {
|
|
2827
2827
|
if (P.key === "Escape") {
|
|
2828
2828
|
o.onEscape?.();
|
|
@@ -2844,10 +2844,10 @@ function Of(e, t) {
|
|
|
2844
2844
|
browser: "This is a browser voice sample. You should hear clear playback and see tracking updates.",
|
|
2845
2845
|
polly: "This is an AWS Polly voice sample. You should hear this text and see tracking updates.",
|
|
2846
2846
|
google: "This is a Google Cloud TTS voice sample. You should hear this text and see tracking updates."
|
|
2847
|
-
},
|
|
2847
|
+
}, _l = {
|
|
2848
2848
|
polly: '<speak>This is an AWS Polly SSML sample. <break time="300ms"/> The voice should honor this markup.</speak>',
|
|
2849
2849
|
google: '<speak>This is a <prosody rate="95%">Google Cloud SSML sample</prosody>. <break time="250ms"/> The preview preserves authored SSML.</speak>'
|
|
2850
|
-
},
|
|
2850
|
+
}, gl = [
|
|
2851
2851
|
"browser",
|
|
2852
2852
|
"polly",
|
|
2853
2853
|
"google"
|
|
@@ -2862,14 +2862,14 @@ function Of(e, t) {
|
|
|
2862
2862
|
}
|
|
2863
2863
|
}
|
|
2864
2864
|
const gr = /* @__PURE__ */ Ct(() => {
|
|
2865
|
-
const l = new Set(
|
|
2865
|
+
const l = new Set(gl), o = [], c = /* @__PURE__ */ new Set();
|
|
2866
2866
|
for (const p of m() || []) {
|
|
2867
2867
|
if (!p || typeof p != "object") continue;
|
|
2868
2868
|
const k = String(p.id || "").trim();
|
|
2869
2869
|
!k || l.has(k) || c.has(k) || (c.add(k), o.push(p));
|
|
2870
2870
|
}
|
|
2871
2871
|
return o;
|
|
2872
|
-
}),
|
|
2872
|
+
}), ml = /* @__PURE__ */ Ct(() => [
|
|
2873
2873
|
{
|
|
2874
2874
|
id: "browser",
|
|
2875
2875
|
label: "Browser"
|
|
@@ -2918,7 +2918,7 @@ function Of(e, t) {
|
|
|
2918
2918
|
if (!o) throw new Error(`Custom provider '${l}' is not registered.`);
|
|
2919
2919
|
return o;
|
|
2920
2920
|
}
|
|
2921
|
-
async function
|
|
2921
|
+
async function yl(l) {
|
|
2922
2922
|
const o = zn(l), c = {
|
|
2923
2923
|
checked: !0,
|
|
2924
2924
|
loading: !0,
|
|
@@ -2964,18 +2964,18 @@ function Of(e, t) {
|
|
|
2964
2964
|
}
|
|
2965
2965
|
}, !0);
|
|
2966
2966
|
}
|
|
2967
|
-
function
|
|
2967
|
+
function bl(l, o) {
|
|
2968
2968
|
const c = o?.detail || {};
|
|
2969
2969
|
!c.state || typeof c.state != "object" || Xi(l, c.state);
|
|
2970
2970
|
}
|
|
2971
|
-
function
|
|
2971
|
+
function wl(l, o) {
|
|
2972
2972
|
const c = o?.detail || {};
|
|
2973
2973
|
g(K, {
|
|
2974
2974
|
...s(K),
|
|
2975
2975
|
[l]: Ji(c)
|
|
2976
2976
|
}, !0);
|
|
2977
2977
|
}
|
|
2978
|
-
function
|
|
2978
|
+
function kl(l) {
|
|
2979
2979
|
return {
|
|
2980
2980
|
toolkitCoordinator: a(),
|
|
2981
2981
|
apiEndpoint: ze(),
|
|
@@ -2983,15 +2983,15 @@ function Of(e, t) {
|
|
|
2983
2983
|
...l.componentProps || {}
|
|
2984
2984
|
};
|
|
2985
2985
|
}
|
|
2986
|
-
async function
|
|
2986
|
+
async function Sl(l, o) {
|
|
2987
2987
|
const c = o?.detail || {};
|
|
2988
2988
|
!c || typeof c != "object" || !c.config || (g(ee, {
|
|
2989
2989
|
...s(ee),
|
|
2990
2990
|
[l]: c
|
|
2991
|
-
}, !0), await
|
|
2991
|
+
}, !0), await fs());
|
|
2992
2992
|
}
|
|
2993
|
-
async function
|
|
2994
|
-
s(_) !== l && ns(l), await
|
|
2993
|
+
async function $l(l) {
|
|
2994
|
+
s(_) !== l && ns(l), await us();
|
|
2995
2995
|
}
|
|
2996
2996
|
function Xt(l) {
|
|
2997
2997
|
const o = Number(l);
|
|
@@ -3016,8 +3016,8 @@ function Of(e, t) {
|
|
|
3016
3016
|
function Qi() {
|
|
3017
3017
|
return String(u() || "").trim() || i;
|
|
3018
3018
|
}
|
|
3019
|
-
function
|
|
3020
|
-
const l = a()?.getToolConfig?.("tts") || {}, o =
|
|
3019
|
+
function xl() {
|
|
3020
|
+
const l = a()?.getToolConfig?.("tts") || {}, o = El(), c = o ? {
|
|
3021
3021
|
...l,
|
|
3022
3022
|
...o
|
|
3023
3023
|
} : l, p = ze(), k = c?.backend;
|
|
@@ -3050,7 +3050,7 @@ function Of(e, t) {
|
|
|
3050
3050
|
const c = Object.fromEntries(Object.entries(s(ee)).filter(([p]) => !!l[p]));
|
|
3051
3051
|
Dn(s(D), l) || g(D, l, !0), Dn(s(K), o) || g(K, o, !0), Dn(s(ee), c) || g(ee, c, !0), !nt(s(_)) && !l[s(_)] && g(_, "browser");
|
|
3052
3052
|
}
|
|
3053
|
-
function
|
|
3053
|
+
function El() {
|
|
3054
3054
|
if (typeof window > "u") return null;
|
|
3055
3055
|
try {
|
|
3056
3056
|
const l = window.localStorage.getItem(Qi());
|
|
@@ -3068,7 +3068,7 @@ function Of(e, t) {
|
|
|
3068
3068
|
} catch {
|
|
3069
3069
|
}
|
|
3070
3070
|
}
|
|
3071
|
-
async function
|
|
3071
|
+
async function Tl() {
|
|
3072
3072
|
g(Tt, {
|
|
3073
3073
|
...s(Tt),
|
|
3074
3074
|
checked: !0,
|
|
@@ -3120,13 +3120,13 @@ function Of(e, t) {
|
|
|
3120
3120
|
return {};
|
|
3121
3121
|
}
|
|
3122
3122
|
}
|
|
3123
|
-
function
|
|
3123
|
+
function Ml() {
|
|
3124
3124
|
const l = new URL(_t(s(Qe), ze()), window.location.origin);
|
|
3125
3125
|
l.pathname = `${l.pathname.replace(/\/+$/, "")}/polly/voices`;
|
|
3126
3126
|
const o = l;
|
|
3127
3127
|
return s(dt) && o.searchParams.set("language", s(dt)), s(pr) && o.searchParams.set("gender", s(pr)), s(Ue) && o.searchParams.set("engine", s(Ue)), o;
|
|
3128
3128
|
}
|
|
3129
|
-
function
|
|
3129
|
+
function Al() {
|
|
3130
3130
|
const l = new URL(_t(s($t), ze()), window.location.origin);
|
|
3131
3131
|
l.pathname = `${l.pathname.replace(/\/+$/, "")}/google/voices`;
|
|
3132
3132
|
const o = l;
|
|
@@ -3141,7 +3141,7 @@ function Of(e, t) {
|
|
|
3141
3141
|
detail: null
|
|
3142
3142
|
}, !0);
|
|
3143
3143
|
try {
|
|
3144
|
-
const l =
|
|
3144
|
+
const l = Ml(), o = await d().fetchPollyVoices?.({
|
|
3145
3145
|
endpoint: _t(s(Qe), ze()),
|
|
3146
3146
|
language: s(dt),
|
|
3147
3147
|
gender: s(pr),
|
|
@@ -3180,7 +3180,7 @@ function Of(e, t) {
|
|
|
3180
3180
|
detail: null
|
|
3181
3181
|
}, !0);
|
|
3182
3182
|
try {
|
|
3183
|
-
const l =
|
|
3183
|
+
const l = Al(), o = await d().fetchGoogleVoices?.({
|
|
3184
3184
|
endpoint: _t(s($t), ze()),
|
|
3185
3185
|
language: s(vt),
|
|
3186
3186
|
gender: s(xt),
|
|
@@ -3212,7 +3212,7 @@ function Of(e, t) {
|
|
|
3212
3212
|
}
|
|
3213
3213
|
async function Hn() {
|
|
3214
3214
|
if (s(_) === "browser") {
|
|
3215
|
-
await
|
|
3215
|
+
await Tl();
|
|
3216
3216
|
return;
|
|
3217
3217
|
}
|
|
3218
3218
|
if (s(_) === "polly") {
|
|
@@ -3223,7 +3223,7 @@ function Of(e, t) {
|
|
|
3223
3223
|
await rs();
|
|
3224
3224
|
return;
|
|
3225
3225
|
}
|
|
3226
|
-
await
|
|
3226
|
+
await yl(s(_));
|
|
3227
3227
|
}
|
|
3228
3228
|
function Kn() {
|
|
3229
3229
|
s(_) === "polly" && ts();
|
|
@@ -3244,7 +3244,7 @@ function Of(e, t) {
|
|
|
3244
3244
|
voices: []
|
|
3245
3245
|
};
|
|
3246
3246
|
}
|
|
3247
|
-
function
|
|
3247
|
+
function Pl() {
|
|
3248
3248
|
return nt(s(_)) ? !0 : s(Se) ? typeof s(Se).preview == "function" : !1;
|
|
3249
3249
|
}
|
|
3250
3250
|
function mr(l) {
|
|
@@ -3266,7 +3266,7 @@ function Of(e, t) {
|
|
|
3266
3266
|
function is(l) {
|
|
3267
3267
|
return l === "browser" ? "This is a browser voice sample." : l === "polly" ? "This is an AWS Polly voice sample." : "This is a Google Cloud TTS voice sample.";
|
|
3268
3268
|
}
|
|
3269
|
-
function
|
|
3269
|
+
function ss() {
|
|
3270
3270
|
le !== null && typeof window < "u" && window.clearInterval(le), le = null, g(A, -1), g(U, 0);
|
|
3271
3271
|
}
|
|
3272
3272
|
function Cl(l) {
|
|
@@ -3315,15 +3315,15 @@ function Of(e, t) {
|
|
|
3315
3315
|
g(C, Ki.browser, !0);
|
|
3316
3316
|
return;
|
|
3317
3317
|
}
|
|
3318
|
-
g(C,
|
|
3318
|
+
g(C, _l[s(_)], !0);
|
|
3319
3319
|
return;
|
|
3320
3320
|
}
|
|
3321
3321
|
g(C, Ki[s(_)], !0);
|
|
3322
3322
|
}
|
|
3323
|
-
function
|
|
3323
|
+
function as(l) {
|
|
3324
3324
|
s($) !== l && (yr(), g($, l, !0), g(x, null), g(F, null), en());
|
|
3325
3325
|
}
|
|
3326
|
-
function
|
|
3326
|
+
function ls(l, o) {
|
|
3327
3327
|
le !== null && window.clearInterval(le);
|
|
3328
3328
|
const c = [...o].sort((L, R) => L.time !== R.time ? L.time - R.time : L.start !== R.start ? L.start - R.start : L.end - R.end);
|
|
3329
3329
|
if (c.length === 0) return;
|
|
@@ -3352,7 +3352,7 @@ function Of(e, t) {
|
|
|
3352
3352
|
}, 40);
|
|
3353
3353
|
}
|
|
3354
3354
|
function yr() {
|
|
3355
|
-
|
|
3355
|
+
ss(), g(x, null), g(F, null), typeof window < "u" && "speechSynthesis" in window && window.speechSynthesis.cancel(), ht && (ht.pause(), ht.src = "", ht = null), g(S, !1), g(b, null);
|
|
3356
3356
|
}
|
|
3357
3357
|
function Rl(l, o) {
|
|
3358
3358
|
if (l.length === 0) return l;
|
|
@@ -3416,7 +3416,7 @@ function Of(e, t) {
|
|
|
3416
3416
|
normalizedFirst: k[0],
|
|
3417
3417
|
rawLast: o[o.length - 1],
|
|
3418
3418
|
normalizedLast: k[k.length - 1]
|
|
3419
|
-
}),
|
|
3419
|
+
}), ls(c, k);
|
|
3420
3420
|
} else _r("marks:missing", { audioUrl: l });
|
|
3421
3421
|
await new Promise((p, k) => {
|
|
3422
3422
|
c.onended = () => {
|
|
@@ -3426,7 +3426,7 @@ function Of(e, t) {
|
|
|
3426
3426
|
}, c.play().catch(k);
|
|
3427
3427
|
}), ht = null;
|
|
3428
3428
|
}
|
|
3429
|
-
async function
|
|
3429
|
+
async function os(l) {
|
|
3430
3430
|
const o = _t(s(l === "polly" ? Qe : $t), ze()), c = !(l === "google" && s($) === "ssml"), p = {
|
|
3431
3431
|
text: s(C).trim() || is(l),
|
|
3432
3432
|
provider: l,
|
|
@@ -3455,7 +3455,7 @@ function Of(e, t) {
|
|
|
3455
3455
|
const I = new Blob([new Uint8Array(V)], { type: L }), j = URL.createObjectURL(I), J = new Audio(j);
|
|
3456
3456
|
ht = J;
|
|
3457
3457
|
const se = Array.isArray(k?.speechMarks) ? k.speechMarks : [];
|
|
3458
|
-
c && se.length > 0 &&
|
|
3458
|
+
c && se.length > 0 && ls(J, se), await new Promise((q, X) => {
|
|
3459
3459
|
J.onended = () => {
|
|
3460
3460
|
le !== null && (window.clearInterval(le), le = null), URL.revokeObjectURL(j), q();
|
|
3461
3461
|
}, J.onerror = () => {
|
|
@@ -3479,7 +3479,7 @@ function Of(e, t) {
|
|
|
3479
3479
|
o.onend = () => c(), o.onerror = () => p(/* @__PURE__ */ new Error("Failed to play browser voice preview.")), l.speak(o);
|
|
3480
3480
|
});
|
|
3481
3481
|
}
|
|
3482
|
-
async function
|
|
3482
|
+
async function us() {
|
|
3483
3483
|
if (g(x, null), g(F, null), !Re().available) {
|
|
3484
3484
|
g(x, "Cannot preview while this TTS service is unavailable.");
|
|
3485
3485
|
return;
|
|
@@ -3501,7 +3501,7 @@ function Of(e, t) {
|
|
|
3501
3501
|
g(S, !0), g(b, s(_), !0);
|
|
3502
3502
|
try {
|
|
3503
3503
|
if (nt(s(_)))
|
|
3504
|
-
s(_) === "browser" ? await Il() : s(_) === "polly" ? (s($) === "ssml" && g(F, "Some Polly neural voices reject certain SSML tags (for example emphasis). Use basic SSML tags if preview fails."), await
|
|
3504
|
+
s(_) === "browser" ? await Il() : s(_) === "polly" ? (s($) === "ssml" && g(F, "Some Polly neural voices reject certain SSML tags (for example emphasis). Use basic SSML tags if preview fails."), await os("polly")) : (s($) === "ssml" && g(F, "Google SSML preview preserves authored SSML, so word tracking is disabled."), await os("google"));
|
|
3505
3505
|
else {
|
|
3506
3506
|
const o = zn(s(_)), c = await o.preview?.(Un(o.id, {
|
|
3507
3507
|
previewText: s(C),
|
|
@@ -3516,10 +3516,10 @@ function Of(e, t) {
|
|
|
3516
3516
|
} catch (o) {
|
|
3517
3517
|
l === Kr && g(x, o instanceof Error ? o.message : String(o), !0);
|
|
3518
3518
|
} finally {
|
|
3519
|
-
l === Kr && (g(S, !1), g(b, null));
|
|
3519
|
+
l === Kr && (ss(), g(S, !1), g(b, null));
|
|
3520
3520
|
}
|
|
3521
3521
|
}
|
|
3522
|
-
async function
|
|
3522
|
+
async function fs() {
|
|
3523
3523
|
if (g(y, null), g(h, null), !Re().available) {
|
|
3524
3524
|
g(h, "Cannot apply settings while this TTS service is unavailable.");
|
|
3525
3525
|
return;
|
|
@@ -3534,6 +3534,8 @@ function Of(e, t) {
|
|
|
3534
3534
|
if (s(_) === "browser") {
|
|
3535
3535
|
const l = {
|
|
3536
3536
|
backend: "browser",
|
|
3537
|
+
serverProvider: void 0,
|
|
3538
|
+
provider: void 0,
|
|
3537
3539
|
defaultVoice: mr("browser"),
|
|
3538
3540
|
rate: Xt(s(re)),
|
|
3539
3541
|
pitch: Bn(s(vr)),
|
|
@@ -3546,6 +3548,8 @@ function Of(e, t) {
|
|
|
3546
3548
|
} else if (s(_) === "polly") {
|
|
3547
3549
|
const l = {
|
|
3548
3550
|
backend: "polly",
|
|
3551
|
+
serverProvider: "polly",
|
|
3552
|
+
provider: "polly",
|
|
3549
3553
|
apiEndpoint: _t(s(Qe), ze()),
|
|
3550
3554
|
transportMode: "pie",
|
|
3551
3555
|
endpointMode: "synthesizePath",
|
|
@@ -3571,6 +3575,8 @@ function Of(e, t) {
|
|
|
3571
3575
|
} else {
|
|
3572
3576
|
const l = {
|
|
3573
3577
|
backend: "google",
|
|
3578
|
+
serverProvider: "google",
|
|
3579
|
+
provider: "google",
|
|
3574
3580
|
apiEndpoint: _t(s($t), ze()),
|
|
3575
3581
|
transportMode: "pie",
|
|
3576
3582
|
endpointMode: "synthesizePath",
|
|
@@ -3605,11 +3611,11 @@ function Of(e, t) {
|
|
|
3605
3611
|
g(w, !1);
|
|
3606
3612
|
}
|
|
3607
3613
|
}
|
|
3608
|
-
|
|
3609
|
-
|
|
3614
|
+
nl(() => {
|
|
3615
|
+
xl(), es(), Hn();
|
|
3610
3616
|
}), pn(() => {
|
|
3611
3617
|
if (s(Yr))
|
|
3612
|
-
return Jt?.(), Jt =
|
|
3618
|
+
return Jt?.(), Jt = hl(s(Yr), {
|
|
3613
3619
|
initialFocus: s(Jr),
|
|
3614
3620
|
onEscape: Xr
|
|
3615
3621
|
}), queueMicrotask(() => {
|
|
@@ -3625,7 +3631,7 @@ function Of(e, t) {
|
|
|
3625
3631
|
s(Se);
|
|
3626
3632
|
const l = s(Se), o = s(qn);
|
|
3627
3633
|
if (!l || l.mode !== "component" || !o) return;
|
|
3628
|
-
const c = (P) =>
|
|
3634
|
+
const c = (P) => wl(l.id, P), p = (P) => void Sl(l.id, P), k = () => void $l(l.id);
|
|
3629
3635
|
return o.addEventListener("availability", c), o.addEventListener("apply-request", p), o.addEventListener("preview-request", k), () => {
|
|
3630
3636
|
o.removeEventListener("availability", c), o.removeEventListener("apply-request", p), o.removeEventListener("preview-request", k);
|
|
3631
3637
|
};
|
|
@@ -3664,11 +3670,11 @@ function Of(e, t) {
|
|
|
3664
3670
|
m(l), Nt();
|
|
3665
3671
|
}
|
|
3666
3672
|
}, tn = Rf();
|
|
3667
|
-
|
|
3668
|
-
var Jn = M(tn), Xn = M(Jn),
|
|
3669
|
-
wi(
|
|
3673
|
+
al(tn, "z-index: 200000;");
|
|
3674
|
+
var Jn = M(tn), Xn = M(Jn), cs = E(M(Xn), 2);
|
|
3675
|
+
wi(cs, (l) => g(Jr, l), () => s(Jr)), T(Xn);
|
|
3670
3676
|
var Zn = E(Xn, 2);
|
|
3671
|
-
Tr(Zn, 21, () => s(
|
|
3677
|
+
Tr(Zn, 21, () => s(ml), Er, (l, o) => {
|
|
3672
3678
|
var c = hf();
|
|
3673
3679
|
let p;
|
|
3674
3680
|
var k = M(c, !0);
|
|
@@ -3676,28 +3682,28 @@ function Of(e, t) {
|
|
|
3676
3682
|
p = rr(c, 1, "btn btn-sm join-item", null, p, { "btn-active": s(_) === s(o).id }), he(k, s(o).label);
|
|
3677
3683
|
}), ve("click", c, () => ns(s(o).id)), Z(l, c);
|
|
3678
3684
|
}), T(Zn);
|
|
3679
|
-
var Qn = E(Zn, 2),
|
|
3685
|
+
var Qn = E(Zn, 2), ds = M(Qn), Wl = (l) => {
|
|
3680
3686
|
var o = _f();
|
|
3681
|
-
|
|
3687
|
+
sa(2), Z(l, o);
|
|
3682
3688
|
}, Fl = /* @__PURE__ */ Ct(() => Re().loading), Vl = (l) => {
|
|
3683
3689
|
var o = gf(), c = M(o, !0);
|
|
3684
3690
|
T(o), de((p, k) => {
|
|
3685
3691
|
rr(o, 1, p, "svelte-3sm1sy"), he(c, k);
|
|
3686
|
-
}, [() =>
|
|
3692
|
+
}, [() => sl(Re().available ? "pie-tts-ok" : "pie-tts-error"), () => Re().message]), Z(l, o);
|
|
3687
3693
|
}, ql = /* @__PURE__ */ Ct(() => Re().checked);
|
|
3688
|
-
Be(
|
|
3694
|
+
Be(ds, (l) => {
|
|
3689
3695
|
s(Fl) ? l(Wl) : s(ql) && l(Vl, 1);
|
|
3690
3696
|
});
|
|
3691
|
-
var Ul = E(
|
|
3697
|
+
var Ul = E(ds, 2);
|
|
3692
3698
|
T(Qn);
|
|
3693
|
-
var
|
|
3699
|
+
var vs = E(Qn, 2), zl = (l) => {
|
|
3694
3700
|
var o = mf(), c = M(o), p = M(c, !0);
|
|
3695
3701
|
T(c), T(o), de((k) => he(p, k), [() => Re().detail]), Z(l, o);
|
|
3696
3702
|
}, Bl = /* @__PURE__ */ Ct(() => Re().detail);
|
|
3697
|
-
Be(
|
|
3703
|
+
Be(vs, (l) => {
|
|
3698
3704
|
s(Bl) && l(zl);
|
|
3699
3705
|
});
|
|
3700
|
-
var
|
|
3706
|
+
var ps = E(vs, 2), Dl = (l) => {
|
|
3701
3707
|
var o = bf(), c = M(o), p = E(M(c), 2), k = M(p);
|
|
3702
3708
|
k.value = k.__value = "";
|
|
3703
3709
|
var P = E(k);
|
|
@@ -3732,9 +3738,9 @@ function Of(e, t) {
|
|
|
3732
3738
|
Tr(wr, 17, () => s(pt).voices, Er, (ce, At) => {
|
|
3733
3739
|
var $r = wf(), lo = M($r);
|
|
3734
3740
|
T($r);
|
|
3735
|
-
var
|
|
3741
|
+
var Cs = {};
|
|
3736
3742
|
de(() => {
|
|
3737
|
-
he(lo, `${(s(At).name || s(At).id) ?? ""} (${(s(At).languageCode || "n/a") ?? ""})`),
|
|
3743
|
+
he(lo, `${(s(At).name || s(At).id) ?? ""} (${(s(At).languageCode || "n/a") ?? ""})`), Cs !== (Cs = s(At).id || s(At).name || "") && ($r.value = ($r.__value = s(At).id || s(At).name || "") ?? "");
|
|
3738
3744
|
}), Z(ce, $r);
|
|
3739
3745
|
}), T(Zt), T(it);
|
|
3740
3746
|
var nn = E(it, 2), pe = M(nn), Ne = E(M(pe), 2), st = M(Ne);
|
|
@@ -3749,12 +3755,12 @@ function Of(e, t) {
|
|
|
3749
3755
|
oi.value = oi.__value = 16e3;
|
|
3750
3756
|
var ui = E(oi);
|
|
3751
3757
|
ui.value = ui.__value = 22050;
|
|
3752
|
-
var
|
|
3753
|
-
|
|
3754
|
-
var
|
|
3758
|
+
var Ms = E(ui);
|
|
3759
|
+
Ms.value = Ms.__value = 24e3, T(ai), T(si);
|
|
3760
|
+
var As = E(si, 2), fi = E(M(As), 2), ci = M(fi);
|
|
3755
3761
|
ci.value = ci.__value = "word";
|
|
3756
|
-
var
|
|
3757
|
-
|
|
3762
|
+
var Ps = E(ci);
|
|
3763
|
+
Ps.value = Ps.__value = "word+sentence", T(fi), T(As), T(nn), T(o), de(() => o.disabled = !s(pt).available), Cr(p, () => s(Qe), (ce) => g(Qe, ce)), ve("change", L, Kn), Cr(L, () => s(dt), (ce) => g(dt, ce)), ve("change", V, Kn), De(V, () => s(pr), (ce) => g(pr, ce)), ve("change", X, Kn), De(X, () => s(Ue), (ce) => g(Ue, ce)), De(Zt, () => s(et), (ce) => g(et, ce)), De(Ne, () => s(Yt), (ce) => g(Yt, ce)), De(ai, () => s(Kt), (ce) => g(Kt, ce)), De(fi, () => s(hr), (ce) => g(hr, ce)), Z(l, o);
|
|
3758
3764
|
}, Hl = (l) => {
|
|
3759
3765
|
var o = $f(), c = M(o), p = E(M(c), 2);
|
|
3760
3766
|
Nr(p), T(c);
|
|
@@ -3799,12 +3805,12 @@ function Of(e, t) {
|
|
|
3799
3805
|
var J = Mu(), se = fu(J);
|
|
3800
3806
|
Ju(se, () => s(Se).tagName, !1, (q, X) => {
|
|
3801
3807
|
wi(q, (me) => g(qn, me, !0), () => s(qn));
|
|
3802
|
-
var $e = (me) =>
|
|
3808
|
+
var $e = (me) => bl(s(Se).id, me);
|
|
3803
3809
|
uf(q, (me) => ({
|
|
3804
3810
|
class: "pie-tts-custom-provider-element",
|
|
3805
3811
|
...me,
|
|
3806
3812
|
onchange: $e
|
|
3807
|
-
}), [() =>
|
|
3813
|
+
}), [() => kl(s(Se))], void 0, void 0, "svelte-3sm1sy");
|
|
3808
3814
|
}), Z(j, J);
|
|
3809
3815
|
}, I = (j) => {
|
|
3810
3816
|
var J = Ef();
|
|
@@ -3816,17 +3822,17 @@ function Of(e, t) {
|
|
|
3816
3822
|
o.disabled = j, he(k, s(Se).label);
|
|
3817
3823
|
}, [() => !Re().available]), Z(l, o);
|
|
3818
3824
|
};
|
|
3819
|
-
Be(
|
|
3825
|
+
Be(ps, (l) => {
|
|
3820
3826
|
s(_) === "browser" ? l(Dl) : s(_) === "polly" ? l(Gl, 1) : s(_) === "google" ? l(Hl, 2) : s(Se) && l(Kl, 3);
|
|
3821
3827
|
});
|
|
3822
|
-
var ei = E(
|
|
3823
|
-
let
|
|
3824
|
-
var
|
|
3825
|
-
let
|
|
3826
|
-
T(
|
|
3828
|
+
var ei = E(ps, 2), ti = M(ei), hs = E(M(ti), 2), ri = M(hs);
|
|
3829
|
+
let _s;
|
|
3830
|
+
var gs = E(ri, 2);
|
|
3831
|
+
let ms;
|
|
3832
|
+
T(hs), T(ti);
|
|
3827
3833
|
var ni = E(ti, 4);
|
|
3828
3834
|
du(ni);
|
|
3829
|
-
var ii = E(ni, 2),
|
|
3835
|
+
var ii = E(ni, 2), ys = M(ii), bs = E(ys, 2), Yl = M(bs), Jl = (l) => {
|
|
3830
3836
|
var o = un("SSML is unsupported in Browser preview.");
|
|
3831
3837
|
Z(l, o);
|
|
3832
3838
|
}, Xl = (l) => {
|
|
@@ -3841,52 +3847,52 @@ function Of(e, t) {
|
|
|
3841
3847
|
};
|
|
3842
3848
|
Be(Yl, (l) => {
|
|
3843
3849
|
s(_) === "browser" && s($) === "ssml" ? l(Jl) : s(_) === "google" && s($) === "ssml" ? l(Xl, 1) : s(Ql) ? l(Zl, 2) : l(eo, -1);
|
|
3844
|
-
}), T(
|
|
3845
|
-
var
|
|
3846
|
-
Tr(
|
|
3850
|
+
}), T(bs), T(ii);
|
|
3851
|
+
var ws = E(ii, 2);
|
|
3852
|
+
Tr(ws, 21, () => Ll(s(C)), Er, (l, o) => {
|
|
3847
3853
|
var c = Mf();
|
|
3848
3854
|
let p;
|
|
3849
3855
|
var k = M(c, !0);
|
|
3850
3856
|
T(c), de(() => {
|
|
3851
3857
|
p = rr(c, 1, "svelte-3sm1sy", null, p, { "pie-tts-preview-active": s(o).active }), he(k, s(o).text);
|
|
3852
3858
|
}), Z(l, c);
|
|
3853
|
-
}), T(
|
|
3854
|
-
var
|
|
3859
|
+
}), T(ws), T(ei);
|
|
3860
|
+
var ks = E(ei, 2), to = (l) => {
|
|
3855
3861
|
var o = Af(), c = M(o), p = M(c, !0);
|
|
3856
3862
|
T(c), T(o), de(() => he(p, s(y))), Z(l, o);
|
|
3857
3863
|
};
|
|
3858
|
-
Be(
|
|
3864
|
+
Be(ks, (l) => {
|
|
3859
3865
|
s(y) && l(to);
|
|
3860
3866
|
});
|
|
3861
|
-
var
|
|
3867
|
+
var Ss = E(ks, 2), ro = (l) => {
|
|
3862
3868
|
var o = Pf(), c = M(o), p = M(c, !0);
|
|
3863
3869
|
T(c), T(o), de(() => he(p, s(h))), Z(l, o);
|
|
3864
3870
|
};
|
|
3865
|
-
Be(
|
|
3871
|
+
Be(Ss, (l) => {
|
|
3866
3872
|
s(h) && l(ro);
|
|
3867
3873
|
});
|
|
3868
|
-
var
|
|
3874
|
+
var $s = E(Ss, 2), no = (l) => {
|
|
3869
3875
|
var o = Cf(), c = M(o), p = M(c, !0);
|
|
3870
3876
|
T(c), T(o), de(() => he(p, s(x))), Z(l, o);
|
|
3871
3877
|
};
|
|
3872
|
-
Be(
|
|
3878
|
+
Be($s, (l) => {
|
|
3873
3879
|
s(x) && l(no);
|
|
3874
3880
|
});
|
|
3875
|
-
var
|
|
3881
|
+
var xs = E($s, 2), io = (l) => {
|
|
3876
3882
|
var o = Lf(), c = M(o), p = M(c, !0);
|
|
3877
3883
|
T(c), T(o), de(() => he(p, s(F))), Z(l, o);
|
|
3878
3884
|
};
|
|
3879
|
-
Be(
|
|
3885
|
+
Be(xs, (l) => {
|
|
3880
3886
|
s(F) && l(io);
|
|
3881
3887
|
});
|
|
3882
|
-
var
|
|
3888
|
+
var Es = E(xs, 2), Ts = M(Es), br = E(Ts, 2), so = M(br, !0);
|
|
3883
3889
|
T(br);
|
|
3884
3890
|
var rn = E(br, 2), ao = M(rn, !0);
|
|
3885
|
-
return T(rn), T(
|
|
3886
|
-
|
|
3887
|
-
}, [() => !Re().available || s(w) || !
|
|
3891
|
+
return T(rn), T(Es), T(Jn), wi(Jn, (l) => g(Yr, l), () => s(Yr)), T(tn), de((l, o) => {
|
|
3892
|
+
_s = rr(ri, 1, "btn btn-xs join-item", null, _s, { "btn-active": s($) === "plain" }), ms = rr(gs, 1, "btn btn-xs join-item", null, ms, { "btn-active": s($) === "ssml" }), br.disabled = l, he(so, s(S) && s(b) === s(_) ? "Stop preview" : "Preview voice"), rn.disabled = o, he(ao, s(w) ? "Applying..." : "Apply");
|
|
3893
|
+
}, [() => !Re().available || s(w) || !Pl(), () => s(w) || !Re().available]), ve("click", cs, Xr), ve("click", Ul, () => void Hn()), ve("click", ri, () => as("plain")), ve("click", gs, () => as("ssml")), Cr(ni, () => s(C), (l) => g(C, l)), ve("click", ys, en), ve("click", Ts, Xr), ve("click", br, () => void us()), ve("click", rn, () => void fs()), Z(e, tn), fa(jl);
|
|
3888
3894
|
}
|
|
3889
|
-
|
|
3895
|
+
Qa(["click", "change"]);
|
|
3890
3896
|
customElements.define("pie-section-player-tools-tts-settings", pf(Of, {
|
|
3891
3897
|
toolkitCoordinator: {
|
|
3892
3898
|
attribute: "toolkit-coordinator",
|