@pie-players/pie-section-player-tools-tts-settings 0.3.55 → 0.3.56
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,4 +1,4 @@
|
|
|
1
|
-
import { t as
|
|
1
|
+
import { t as x } from "./defineProperty-Dt7ri80W.js";
|
|
2
2
|
var Vd = Object.create, Pl = Object.defineProperty, Ud = Object.getOwnPropertyDescriptor, qd = Object.getOwnPropertyNames, Gd = Object.getPrototypeOf, Kd = Object.prototype.hasOwnProperty, Tm = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), Yd = (e, t, r, n) => {
|
|
3
3
|
if (t && typeof t == "object" || typeof t == "function")
|
|
4
4
|
for (var i = qd(t), o = 0, s = i.length, a; o < s; o++)
|
|
@@ -35,10 +35,10 @@ function Ll() {
|
|
|
35
35
|
reject: t
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
|
-
var of = 1 << 24, Be = 1024, je = 2048, br = 4096,
|
|
38
|
+
var of = 1 << 24, Be = 1024, je = 2048, br = 4096, xs = 8192, sf = 16384, Es = 32768, Fa = 1 << 25, Ri = 65536, km = 1 << 17, xm = 1 << 18, qr = 1 << 19, af = 1 << 20, _n = 1 << 25, Cn = 65536, Da = 1 << 21, lf = 1 << 22, vi = 1 << 23, or = /* @__PURE__ */ Symbol("$state"), $l = /* @__PURE__ */ Symbol("legacy props"), cf = /* @__PURE__ */ Symbol(""), uf = /* @__PURE__ */ Symbol("proxy path"), Yo = /* @__PURE__ */ Symbol("attributes"), Xo = /* @__PURE__ */ Symbol("class"), Jo = /* @__PURE__ */ Symbol("style"), ii = /* @__PURE__ */ Symbol("text"), wn = /* @__PURE__ */ Symbol("form reset");
|
|
39
39
|
var Li = new class extends Error {
|
|
40
40
|
constructor(...t) {
|
|
41
|
-
super(...t),
|
|
41
|
+
super(...t), x(this, "name", "StaleReactionError"), x(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
42
42
|
}
|
|
43
43
|
}(), $i = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
44
44
|
function As(e) {
|
|
@@ -89,7 +89,7 @@ function Ni(e) {
|
|
|
89
89
|
function kf() {
|
|
90
90
|
console.warn("https://svelte.dev/e/select_multiple_invalid_value");
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function xf() {
|
|
93
93
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
94
94
|
}
|
|
95
95
|
var D = !1;
|
|
@@ -139,11 +139,11 @@ function Wl(e) {
|
|
|
139
139
|
function zl(e) {
|
|
140
140
|
return e === this.v;
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function Ef(e, t) {
|
|
143
143
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
144
144
|
}
|
|
145
145
|
function Hl(e) {
|
|
146
|
-
return !
|
|
146
|
+
return !Ef(e, this.v);
|
|
147
147
|
}
|
|
148
148
|
var Fe = !1, On = !1;
|
|
149
149
|
function ja(e, t) {
|
|
@@ -266,10 +266,10 @@ function F(e, t, r) {
|
|
|
266
266
|
function g(e, t) {
|
|
267
267
|
return e.get(Y(e, t));
|
|
268
268
|
}
|
|
269
|
-
var Gl, mi = null, Pr = null, j = null,
|
|
269
|
+
var Gl, mi = null, Pr = null, j = null, xn = null, xe = null, Qo = null, Tn = !1, Lo = !1, Dr = null, yi = null, Kl = 0;
|
|
270
270
|
var Pf = 1, bi = /* @__PURE__ */ new WeakMap(), sr = /* @__PURE__ */ new WeakMap(), tr = /* @__PURE__ */ new WeakMap(), _i = /* @__PURE__ */ new WeakMap(), Jn = /* @__PURE__ */ new WeakMap(), Rr = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), vn = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap(), Zo = /* @__PURE__ */ new WeakMap(), vr = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), Bt = /* @__PURE__ */ new WeakMap(), oi = /* @__PURE__ */ new WeakMap(), gn = /* @__PURE__ */ new WeakMap(), de = /* @__PURE__ */ new WeakSet(), _r = class Yl {
|
|
271
271
|
constructor() {
|
|
272
|
-
Cs(this, de),
|
|
272
|
+
Cs(this, de), x(this, "id", Pf++), q(this, bi, !1), x(this, "linked", !0), q(this, sr, null), q(this, tr, null), x(this, "async_deriveds", /* @__PURE__ */ new Map()), x(this, "current", /* @__PURE__ */ new Map()), x(this, "previous", /* @__PURE__ */ new Map()), q(this, _i, /* @__PURE__ */ new Set()), q(this, Jn, /* @__PURE__ */ new Set()), q(this, Rr, 0), q(this, Jt, /* @__PURE__ */ new Map()), q(this, vn, null), q(this, We, []), q(this, Zo, []), q(this, vr, /* @__PURE__ */ new Set()), q(this, St, /* @__PURE__ */ new Set()), q(this, Bt, /* @__PURE__ */ new Map()), q(this, oi, /* @__PURE__ */ new Set()), x(this, "is_fork", !1), q(this, gn, !1), Pr === null ? mi = Pr = this : (F(tr, Pr, this), F(sr, this, Pr)), Pr = this;
|
|
273
273
|
}
|
|
274
274
|
skip_effect(t) {
|
|
275
275
|
g(Bt, this).has(t) || g(Bt, this).set(t, {
|
|
@@ -289,19 +289,19 @@ var Pf = 1, bi = /* @__PURE__ */ new WeakMap(), sr = /* @__PURE__ */ new WeakMap
|
|
|
289
289
|
g(oi, this).add(t);
|
|
290
290
|
}
|
|
291
291
|
capture(t, r, n = !1) {
|
|
292
|
-
t.v !== ge && !this.previous.has(t) && this.previous.set(t, t.v), (t.f & 8388608) === 0 && (this.current.set(t, [r, n]),
|
|
292
|
+
t.v !== ge && !this.previous.has(t) && this.previous.set(t, t.v), (t.f & 8388608) === 0 && (this.current.set(t, [r, n]), xe?.set(t, r)), this.is_fork || (t.v = r);
|
|
293
293
|
}
|
|
294
294
|
activate() {
|
|
295
295
|
j = this;
|
|
296
296
|
}
|
|
297
297
|
deactivate() {
|
|
298
|
-
j = null,
|
|
298
|
+
j = null, xe = null;
|
|
299
299
|
}
|
|
300
300
|
flush() {
|
|
301
301
|
try {
|
|
302
302
|
Lo = !0, j = this, Y(de, this, wi).call(this);
|
|
303
303
|
} finally {
|
|
304
|
-
Kl = 0, Qo = null, Dr = null, yi = null, Lo = !1, j = null,
|
|
304
|
+
Kl = 0, Qo = null, Dr = null, yi = null, Lo = !1, j = null, xe = null, cr.clear();
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
307
|
discard() {
|
|
@@ -351,11 +351,11 @@ var Pf = 1, bi = /* @__PURE__ */ new WeakMap(), sr = /* @__PURE__ */ new WeakMap
|
|
|
351
351
|
}
|
|
352
352
|
apply() {
|
|
353
353
|
if (!Fe || !this.is_fork && g(sr, this) === null && g(tr, this) === null) {
|
|
354
|
-
|
|
354
|
+
xe = null;
|
|
355
355
|
return;
|
|
356
356
|
}
|
|
357
|
-
|
|
358
|
-
for (const [r, [n]] of this.current)
|
|
357
|
+
xe = /* @__PURE__ */ new Map();
|
|
358
|
+
for (const [r, [n]] of this.current) xe.set(r, n);
|
|
359
359
|
for (let r = mi; r !== null; r = g(tr, r))
|
|
360
360
|
if (!(r === this || r.is_fork)) {
|
|
361
361
|
var t = !1;
|
|
@@ -367,7 +367,7 @@ var Pf = 1, bi = /* @__PURE__ */ new WeakMap(), sr = /* @__PURE__ */ new WeakMap
|
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
369
|
if (!t)
|
|
370
|
-
for (const [n, i] of r.previous)
|
|
370
|
+
for (const [n, i] of r.previous) xe.has(n) || xe.set(n, i);
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
373
|
schedule(t) {
|
|
@@ -434,7 +434,7 @@ function wi() {
|
|
|
434
434
|
}
|
|
435
435
|
g(vr, this).clear(), g(St, this).clear();
|
|
436
436
|
for (const a of g(_i, this)) a(this);
|
|
437
|
-
g(_i, this).clear(),
|
|
437
|
+
g(_i, this).clear(), xn = this, Ua(r), Ua(t), xn = null, g(vn, this)?.resolve();
|
|
438
438
|
var s = j;
|
|
439
439
|
if (g(Rr, this) === 0 && (g(We, this).length === 0 || s !== null) && (Y(de, this, Ti).call(this), Fe && (Y(de, this, $f).call(this), j = s)), g(We, this).length > 0) if (s !== null) {
|
|
440
440
|
const a = s;
|
|
@@ -644,11 +644,11 @@ var zf = Ri | qr;
|
|
|
644
644
|
function Hf(e, t, r, n) {
|
|
645
645
|
new Bf(e, t, r, n);
|
|
646
646
|
}
|
|
647
|
-
var Ze = /* @__PURE__ */ new WeakMap(), es = /* @__PURE__ */ new WeakMap(), st = /* @__PURE__ */ new WeakMap(),
|
|
647
|
+
var Ze = /* @__PURE__ */ new WeakMap(), es = /* @__PURE__ */ new WeakMap(), st = /* @__PURE__ */ new WeakMap(), En = /* @__PURE__ */ new WeakMap(), ze = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), Je = /* @__PURE__ */ new WeakMap(), ar = /* @__PURE__ */ new WeakMap(), Lr = /* @__PURE__ */ new WeakMap(), lr = /* @__PURE__ */ new WeakMap(), Qn = /* @__PURE__ */ new WeakMap(), ts = /* @__PURE__ */ new WeakMap(), rs = /* @__PURE__ */ new WeakMap(), Kt = /* @__PURE__ */ new WeakMap(), qa = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakSet(), Bf = class {
|
|
648
648
|
constructor(e, t, r, n) {
|
|
649
|
-
Cs(this, Se),
|
|
649
|
+
Cs(this, Se), x(this, "parent", void 0), x(this, "is_pending", !1), x(this, "transform_error", void 0), q(this, Ze, void 0), q(this, es, D ? J : null), q(this, st, void 0), q(this, En, void 0), q(this, ze, void 0), q(this, at, null), q(this, Le, null), q(this, Je, null), q(this, ar, null), q(this, Lr, 0), q(this, lr, 0), q(this, Qn, !1), q(this, ts, /* @__PURE__ */ new Set()), q(this, rs, /* @__PURE__ */ new Set()), q(this, Kt, null), q(this, qa, Wf(() => (F(Kt, this, gr(g(Lr, this))), () => {
|
|
650
650
|
F(Kt, this, null);
|
|
651
|
-
}))), F(Ze, this, e), F(st, this, t), F(
|
|
651
|
+
}))), F(Ze, this, e), F(st, this, t), F(En, this, (i) => {
|
|
652
652
|
var o = K;
|
|
653
653
|
o.b = this, o.f |= 128, r(i);
|
|
654
654
|
}), this.parent = K.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i), F(ze, this, Bi(() => {
|
|
@@ -689,7 +689,7 @@ var Ze = /* @__PURE__ */ new WeakMap(), es = /* @__PURE__ */ new WeakMap(), st =
|
|
|
689
689
|
};
|
|
690
690
|
function Ff() {
|
|
691
691
|
try {
|
|
692
|
-
F(at, this, Ce(() => g(
|
|
692
|
+
F(at, this, Ce(() => g(En, this).call(this, g(Ze, this))));
|
|
693
693
|
} catch (e) {
|
|
694
694
|
this.error(e);
|
|
695
695
|
}
|
|
@@ -704,8 +704,8 @@ function Df(e) {
|
|
|
704
704
|
function jf() {
|
|
705
705
|
const e = g(st, this).pending;
|
|
706
706
|
e && (this.is_pending = !0, F(Le, this, Ce(() => e(g(Ze, this)))), lt(() => {
|
|
707
|
-
var t = F(ar, this, document.createDocumentFragment()), r =
|
|
708
|
-
t.append(r), F(at, this, Y(Se, this, ns).call(this, () => Ce(() => g(
|
|
707
|
+
var t = F(ar, this, document.createDocumentFragment()), r = Ee();
|
|
708
|
+
t.append(r), F(at, this, Y(Se, this, ns).call(this, () => Ce(() => g(En, this).call(this, r)))), g(lr, this) === 0 && (g(Ze, this).before(t), F(ar, this, null), wr(g(Le, this), () => {
|
|
709
709
|
F(Le, this, null);
|
|
710
710
|
}), Y(Se, this, Ps).call(this, j));
|
|
711
711
|
}));
|
|
@@ -713,7 +713,7 @@ function jf() {
|
|
|
713
713
|
function ec() {
|
|
714
714
|
try {
|
|
715
715
|
if (this.is_pending = this.has_pending_snippet(), F(lr, this, 0), F(Lr, this, 0), F(at, this, Ce(() => {
|
|
716
|
-
g(
|
|
716
|
+
g(En, this).call(this, g(Ze, this));
|
|
717
717
|
})), g(lr, this) > 0) {
|
|
718
718
|
var e = F(ar, this, document.createDocumentFragment());
|
|
719
719
|
Bs(g(at, this), e);
|
|
@@ -757,7 +757,7 @@ function Ga(e) {
|
|
|
757
757
|
var n = !1, i = !1;
|
|
758
758
|
const o = () => {
|
|
759
759
|
if (n) {
|
|
760
|
-
|
|
760
|
+
xf();
|
|
761
761
|
return;
|
|
762
762
|
}
|
|
763
763
|
n = !0, i && Tf(), g(Je, this) !== null && wr(g(Je, this), () => {
|
|
@@ -916,7 +916,7 @@ function qf(e) {
|
|
|
916
916
|
}
|
|
917
917
|
function Ls(e) {
|
|
918
918
|
var t, r = K, n = e.parent;
|
|
919
|
-
if (!
|
|
919
|
+
if (!Et && n !== null && e.v !== ge && (n.f & 24576) !== 0)
|
|
920
920
|
return Sf(), e.v;
|
|
921
921
|
ct(n);
|
|
922
922
|
try {
|
|
@@ -928,11 +928,11 @@ function Ls(e) {
|
|
|
928
928
|
}
|
|
929
929
|
function ic(e) {
|
|
930
930
|
var t = Ls(e);
|
|
931
|
-
if (!e.equals(t) && (e.wv = Tc(), (!j?.is_fork || e.deps === null) && (j !== null ? (j.capture(e, t, !0),
|
|
931
|
+
if (!e.equals(t) && (e.wv = Tc(), (!j?.is_fork || e.deps === null) && (j !== null ? (j.capture(e, t, !0), xn?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
|
|
932
932
|
ce(e, Be);
|
|
933
933
|
return;
|
|
934
934
|
}
|
|
935
|
-
|
|
935
|
+
Et || (xe !== null ? (Ws() || j?.is_fork) && xe.set(e, t) : Ms(e));
|
|
936
936
|
}
|
|
937
937
|
function Gf(e) {
|
|
938
938
|
if (e.effects !== null)
|
|
@@ -976,11 +976,11 @@ function _(e, t, r = !1) {
|
|
|
976
976
|
}
|
|
977
977
|
function jr(e, t, r = null) {
|
|
978
978
|
if (!e.equals(t)) {
|
|
979
|
-
cr.set(e,
|
|
979
|
+
cr.set(e, Et ? t : e.v);
|
|
980
980
|
var n = _r.ensure();
|
|
981
981
|
if (n.capture(e, t), (e.f & 2) !== 0) {
|
|
982
982
|
const i = e;
|
|
983
|
-
(e.f & 2048) !== 0 && Ls(i),
|
|
983
|
+
(e.f & 2048) !== 0 && Ls(i), xe === null && Ms(i);
|
|
984
984
|
}
|
|
985
985
|
e.wv = Tc(), lc(e, je, r), In() && K !== null && (K.f & 1024) !== 0 && (K.f & 96) === 0 && (Ne === null ? uh([e]) : Ne.push(e)), !n.is_fork && ki.size > 0 && !sc && Kf();
|
|
986
986
|
}
|
|
@@ -1013,7 +1013,7 @@ function lc(e, t, r) {
|
|
|
1013
1013
|
if (d && ce(a, t), (l & 131072) !== 0) ki.add(a);
|
|
1014
1014
|
else if ((l & 2) !== 0) {
|
|
1015
1015
|
var h = a;
|
|
1016
|
-
|
|
1016
|
+
xe?.delete(h), (l & 65536) === 0 && (l & 512 && (K === null || (K.f & 2097152) === 0) && (a.f |= Cn), lc(h, br, r));
|
|
1017
1017
|
} else if (d) {
|
|
1018
1018
|
var f = a;
|
|
1019
1019
|
(l & 16) !== 0 && ot !== null && ot.add(f), r !== null ? r.push(f) : Is(f);
|
|
@@ -1067,8 +1067,8 @@ function He(e) {
|
|
|
1067
1067
|
if (v === or) return e;
|
|
1068
1068
|
var T = r.get(v), k = v in f;
|
|
1069
1069
|
if (T === void 0 && (!k || ir(f, v)?.writable) && (T = a(() => {
|
|
1070
|
-
var
|
|
1071
|
-
return
|
|
1070
|
+
var E = /* @__PURE__ */ W(He(k ? f[v] : ge), o);
|
|
1071
|
+
return E;
|
|
1072
1072
|
}), r.set(v, T)), T !== void 0) {
|
|
1073
1073
|
var w = u(T);
|
|
1074
1074
|
return w === ge ? void 0 : w;
|
|
@@ -1101,9 +1101,9 @@ function He(e) {
|
|
|
1101
1101
|
},
|
|
1102
1102
|
set(f, v, y, T) {
|
|
1103
1103
|
var k = r.get(v), w = v in f;
|
|
1104
|
-
if (n && v === "length") for (var
|
|
1105
|
-
var R = r.get(
|
|
1106
|
-
R !== void 0 ? _(R, ge) :
|
|
1104
|
+
if (n && v === "length") for (var E = y; E < k.v; E += 1) {
|
|
1105
|
+
var R = r.get(E + "");
|
|
1106
|
+
R !== void 0 ? _(R, ge) : E in f && (R = a(() => /* @__PURE__ */ W(ge, o)), r.set(E + "", R));
|
|
1107
1107
|
}
|
|
1108
1108
|
if (k === void 0)
|
|
1109
1109
|
(!w || ir(f, v)?.writable) && (k = a(() => /* @__PURE__ */ W(void 0, o)), _(k, He(y)), r.set(v, k));
|
|
@@ -1157,11 +1157,11 @@ function is() {
|
|
|
1157
1157
|
uc = ir(t, "firstChild").get, dc = ir(t, "nextSibling").get, Ba(e) && (e[Xo] = void 0, e[Yo] = null, e[Jo] = void 0, e.__e = void 0), Ba(r) && (r[ii] = void 0);
|
|
1158
1158
|
}
|
|
1159
1159
|
}
|
|
1160
|
-
function
|
|
1160
|
+
function Ee(e = "") {
|
|
1161
1161
|
return document.createTextNode(e);
|
|
1162
1162
|
}
|
|
1163
1163
|
// @__NO_SIDE_EFFECTS__
|
|
1164
|
-
function
|
|
1164
|
+
function xt(e) {
|
|
1165
1165
|
return uc.call(e);
|
|
1166
1166
|
}
|
|
1167
1167
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1169,23 +1169,23 @@ function ut(e) {
|
|
|
1169
1169
|
return dc.call(e);
|
|
1170
1170
|
}
|
|
1171
1171
|
function O(e, t) {
|
|
1172
|
-
if (!D) return /* @__PURE__ */
|
|
1173
|
-
var r = /* @__PURE__ */
|
|
1174
|
-
if (r === null) r = J.appendChild(
|
|
1172
|
+
if (!D) return /* @__PURE__ */ xt(e);
|
|
1173
|
+
var r = /* @__PURE__ */ xt(J);
|
|
1174
|
+
if (r === null) r = J.appendChild(Ee());
|
|
1175
1175
|
else if (t && r.nodeType !== 3) {
|
|
1176
|
-
var n =
|
|
1176
|
+
var n = Ee();
|
|
1177
1177
|
return r?.before(n), ye(n), n;
|
|
1178
1178
|
}
|
|
1179
1179
|
return t && zi(r), ye(r), r;
|
|
1180
1180
|
}
|
|
1181
1181
|
function Zf(e, t = !1) {
|
|
1182
1182
|
if (!D) {
|
|
1183
|
-
var r = /* @__PURE__ */
|
|
1183
|
+
var r = /* @__PURE__ */ xt(e);
|
|
1184
1184
|
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ ut(r) : r;
|
|
1185
1185
|
}
|
|
1186
1186
|
if (t) {
|
|
1187
1187
|
if (J?.nodeType !== 3) {
|
|
1188
|
-
var n =
|
|
1188
|
+
var n = Ee();
|
|
1189
1189
|
return J?.before(n), ye(n), n;
|
|
1190
1190
|
}
|
|
1191
1191
|
zi(J);
|
|
@@ -1199,7 +1199,7 @@ function A(e, t = 1, r = !1) {
|
|
|
1199
1199
|
if (!D) return n;
|
|
1200
1200
|
if (r) {
|
|
1201
1201
|
if (n?.nodeType !== 3) {
|
|
1202
|
-
var o =
|
|
1202
|
+
var o = Ee();
|
|
1203
1203
|
return n === null ? i?.after(o) : n.before(o), ye(o), o;
|
|
1204
1204
|
}
|
|
1205
1205
|
zi(n);
|
|
@@ -1210,7 +1210,7 @@ function $s(e) {
|
|
|
1210
1210
|
e.textContent = "";
|
|
1211
1211
|
}
|
|
1212
1212
|
function fc() {
|
|
1213
|
-
return !Fe || ot !== null ? !1 : (K.f &
|
|
1213
|
+
return !Fe || ot !== null ? !1 : (K.f & Es) !== 0;
|
|
1214
1214
|
}
|
|
1215
1215
|
function Wi(e, t, r) {
|
|
1216
1216
|
return t == null || t === "http://www.w3.org/1999/xhtml" ? r ? document.createElement(e, { is: r }) : document.createElement(e) : r ? document.createElementNS(t, e, { is: r }) : document.createElementNS(t, e);
|
|
@@ -1230,7 +1230,7 @@ function eh(e, t) {
|
|
|
1230
1230
|
}
|
|
1231
1231
|
}
|
|
1232
1232
|
function th(e) {
|
|
1233
|
-
D && /* @__PURE__ */
|
|
1233
|
+
D && /* @__PURE__ */ xt(e) !== null && $s(e);
|
|
1234
1234
|
}
|
|
1235
1235
|
var Xa = !1;
|
|
1236
1236
|
function hc() {
|
|
@@ -1257,7 +1257,7 @@ function Ns(e, t, r, n = r) {
|
|
|
1257
1257
|
} : e[wn] = () => n(!0), hc();
|
|
1258
1258
|
}
|
|
1259
1259
|
function rh(e) {
|
|
1260
|
-
K === null && (X === null && vf(e), pf()),
|
|
1260
|
+
K === null && (X === null && vf(e), pf()), Et && hf(e);
|
|
1261
1261
|
}
|
|
1262
1262
|
function nh(e, t) {
|
|
1263
1263
|
var r = t.last;
|
|
@@ -1265,7 +1265,7 @@ function nh(e, t) {
|
|
|
1265
1265
|
}
|
|
1266
1266
|
function tt(e, t) {
|
|
1267
1267
|
var r = K;
|
|
1268
|
-
r !== null && (r.f & 8192) !== 0 && (e |=
|
|
1268
|
+
r !== null && (r.f & 8192) !== 0 && (e |= xs);
|
|
1269
1269
|
var n = {
|
|
1270
1270
|
ctx: ae,
|
|
1271
1271
|
deps: null,
|
|
@@ -1361,7 +1361,7 @@ function Ce(e) {
|
|
|
1361
1361
|
function gc(e) {
|
|
1362
1362
|
var t = e.teardown;
|
|
1363
1363
|
if (t !== null) {
|
|
1364
|
-
const r =
|
|
1364
|
+
const r = Et, n = X;
|
|
1365
1365
|
Ja(!0), De(null);
|
|
1366
1366
|
try {
|
|
1367
1367
|
t.call(null);
|
|
@@ -1419,7 +1419,7 @@ function wr(e, t, r = !0) {
|
|
|
1419
1419
|
}
|
|
1420
1420
|
function yc(e, t, r) {
|
|
1421
1421
|
if ((e.f & 8192) === 0) {
|
|
1422
|
-
e.f ^=
|
|
1422
|
+
e.f ^= xs;
|
|
1423
1423
|
var n = e.nodes && e.nodes.t;
|
|
1424
1424
|
if (n !== null)
|
|
1425
1425
|
for (const a of n) (a.is_global || r) && t.push(a);
|
|
@@ -1433,12 +1433,12 @@ function yc(e, t, r) {
|
|
|
1433
1433
|
}
|
|
1434
1434
|
}
|
|
1435
1435
|
}
|
|
1436
|
-
function
|
|
1436
|
+
function xi(e) {
|
|
1437
1437
|
bc(e, !0);
|
|
1438
1438
|
}
|
|
1439
1439
|
function bc(e, t) {
|
|
1440
1440
|
if ((e.f & 8192) !== 0) {
|
|
1441
|
-
e.f ^=
|
|
1441
|
+
e.f ^= xs, (e.f & 1024) === 0 && (ce(e, je), _r.ensure().schedule(e));
|
|
1442
1442
|
for (var r = e.first; r !== null; ) {
|
|
1443
1443
|
var n = r.next, i = (r.f & 65536) !== 0 || (r.f & 32) !== 0;
|
|
1444
1444
|
bc(r, i ? t : !1), r = n;
|
|
@@ -1455,9 +1455,9 @@ function Bs(e, t) {
|
|
|
1455
1455
|
t.append(r), r = i;
|
|
1456
1456
|
}
|
|
1457
1457
|
}
|
|
1458
|
-
var ch = null, ai = !1,
|
|
1458
|
+
var ch = null, ai = !1, Et = !1;
|
|
1459
1459
|
function Ja(e) {
|
|
1460
|
-
|
|
1460
|
+
Et = e;
|
|
1461
1461
|
}
|
|
1462
1462
|
var X = null, Qe = !1;
|
|
1463
1463
|
function De(e) {
|
|
@@ -1490,7 +1490,7 @@ function Ln(e) {
|
|
|
1490
1490
|
var o = r[i];
|
|
1491
1491
|
if (Ln(o) && ic(o), o.wv > e.wv) return !0;
|
|
1492
1492
|
}
|
|
1493
|
-
(t & 512) !== 0 &&
|
|
1493
|
+
(t & 512) !== 0 && xe === null && ce(e, Be);
|
|
1494
1494
|
}
|
|
1495
1495
|
return !1;
|
|
1496
1496
|
}
|
|
@@ -1510,7 +1510,7 @@ function kc(e) {
|
|
|
1510
1510
|
try {
|
|
1511
1511
|
e.f |= Da;
|
|
1512
1512
|
var h = e.fn, f = h();
|
|
1513
|
-
e.f |=
|
|
1513
|
+
e.f |= Es;
|
|
1514
1514
|
var v = e.deps, y = j?.is_fork;
|
|
1515
1515
|
if (Me !== null) {
|
|
1516
1516
|
var T;
|
|
@@ -1598,30 +1598,30 @@ function u(e) {
|
|
|
1598
1598
|
var s, a;
|
|
1599
1599
|
}
|
|
1600
1600
|
}
|
|
1601
|
-
if (
|
|
1601
|
+
if (Et && cr.has(e)) return cr.get(e);
|
|
1602
1602
|
if (t) {
|
|
1603
1603
|
var l = e;
|
|
1604
|
-
if (
|
|
1604
|
+
if (Et) {
|
|
1605
1605
|
var d = l.v;
|
|
1606
|
-
return ((l.f & 1024) === 0 && l.reactions !== null ||
|
|
1606
|
+
return ((l.f & 1024) === 0 && l.reactions !== null || Ec(l)) && (d = Ls(l)), cr.set(l, d), d;
|
|
1607
1607
|
}
|
|
1608
|
-
var h = (l.f & 512) === 0 && !Qe && X !== null && (ai || (X.f & 512) !== 0), f = (l.f &
|
|
1609
|
-
Ln(l) && (h && (l.f |= 512), ic(l)), h && !f && (oc(l),
|
|
1608
|
+
var h = (l.f & 512) === 0 && !Qe && X !== null && (ai || (X.f & 512) !== 0), f = (l.f & Es) === 0;
|
|
1609
|
+
Ln(l) && (h && (l.f |= 512), ic(l)), h && !f && (oc(l), xc(l));
|
|
1610
1610
|
}
|
|
1611
|
-
if (
|
|
1611
|
+
if (xe?.has(e)) return xe.get(e);
|
|
1612
1612
|
if ((e.f & 8388608) !== 0) throw e.v;
|
|
1613
1613
|
return e.v;
|
|
1614
1614
|
}
|
|
1615
|
-
function
|
|
1615
|
+
function xc(e) {
|
|
1616
1616
|
if (e.f |= 512, e.deps !== null)
|
|
1617
1617
|
for (const t of e.deps)
|
|
1618
|
-
(t.reactions ?? (t.reactions = [])).push(e), (t.f & 2) !== 0 && (t.f & 512) === 0 && (oc(t),
|
|
1618
|
+
(t.reactions ?? (t.reactions = [])).push(e), (t.f & 2) !== 0 && (t.f & 512) === 0 && (oc(t), xc(t));
|
|
1619
1619
|
}
|
|
1620
|
-
function
|
|
1620
|
+
function Ec(e) {
|
|
1621
1621
|
if (e.v === ge) return !0;
|
|
1622
1622
|
if (e.deps === null) return !1;
|
|
1623
1623
|
for (const t of e.deps)
|
|
1624
|
-
if (cr.has(t) || (t.f & 2) !== 0 &&
|
|
1624
|
+
if (cr.has(t) || (t.f & 2) !== 0 && Ec(t)) return !0;
|
|
1625
1625
|
return !1;
|
|
1626
1626
|
}
|
|
1627
1627
|
function Dt(e) {
|
|
@@ -1717,10 +1717,10 @@ function Te(e, t) {
|
|
|
1717
1717
|
return () => {
|
|
1718
1718
|
if (D)
|
|
1719
1719
|
return kt(J, null), J;
|
|
1720
|
-
i === void 0 && (i = gh(o ? e : "<!>" + e), r || (i = /* @__PURE__ */
|
|
1720
|
+
i === void 0 && (i = gh(o ? e : "<!>" + e), r || (i = /* @__PURE__ */ xt(i)));
|
|
1721
1721
|
var s = n || cc ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1722
1722
|
if (r) {
|
|
1723
|
-
var a = /* @__PURE__ */
|
|
1723
|
+
var a = /* @__PURE__ */ xt(s), l = s.lastChild;
|
|
1724
1724
|
kt(a, l);
|
|
1725
1725
|
} else kt(s, s);
|
|
1726
1726
|
return s;
|
|
@@ -1728,16 +1728,16 @@ function Te(e, t) {
|
|
|
1728
1728
|
}
|
|
1729
1729
|
function Yt(e = "") {
|
|
1730
1730
|
if (!D) {
|
|
1731
|
-
var t =
|
|
1731
|
+
var t = Ee(e + "");
|
|
1732
1732
|
return kt(t, t), t;
|
|
1733
1733
|
}
|
|
1734
1734
|
var r = J;
|
|
1735
|
-
return r.nodeType !== 3 ? (r.before(r =
|
|
1735
|
+
return r.nodeType !== 3 ? (r.before(r = Ee()), ye(r)) : zi(r), kt(r, r), r;
|
|
1736
1736
|
}
|
|
1737
1737
|
function mh() {
|
|
1738
1738
|
if (D)
|
|
1739
1739
|
return kt(J, null), J;
|
|
1740
|
-
var e = document.createDocumentFragment(), t = document.createComment(""), r =
|
|
1740
|
+
var e = document.createDocumentFragment(), t = document.createComment(""), r = Ee();
|
|
1741
1741
|
return e.append(t, r), kt(t, r), e;
|
|
1742
1742
|
}
|
|
1743
1743
|
function ee(e, t) {
|
|
@@ -1842,16 +1842,16 @@ var Am = [
|
|
|
1842
1842
|
"disablePictureInPicture",
|
|
1843
1843
|
"disableRemotePlayback"
|
|
1844
1844
|
], kh = ["touchstart", "touchmove"];
|
|
1845
|
-
function
|
|
1845
|
+
function xh(e) {
|
|
1846
1846
|
return kh.includes(e);
|
|
1847
1847
|
}
|
|
1848
|
-
var
|
|
1848
|
+
var Eh = [
|
|
1849
1849
|
"$state",
|
|
1850
1850
|
"$state.raw",
|
|
1851
1851
|
"$derived",
|
|
1852
1852
|
"$derived.by"
|
|
1853
1853
|
], Mm = [
|
|
1854
|
-
...
|
|
1854
|
+
...Eh,
|
|
1855
1855
|
"$state.eager",
|
|
1856
1856
|
"$state.snapshot",
|
|
1857
1857
|
"$props",
|
|
@@ -1890,7 +1890,7 @@ function Ch(e, t) {
|
|
|
1890
1890
|
is(), t.intro = t.intro ?? !1;
|
|
1891
1891
|
const r = t.target, n = D, i = J;
|
|
1892
1892
|
try {
|
|
1893
|
-
for (var o = /* @__PURE__ */
|
|
1893
|
+
for (var o = /* @__PURE__ */ xt(r); o && (o.nodeType !== 8 || o.data !== "["); ) o = /* @__PURE__ */ ut(o);
|
|
1894
1894
|
if (!o) throw Hr;
|
|
1895
1895
|
Re(!0), ye(o);
|
|
1896
1896
|
const s = Oc(e, {
|
|
@@ -1910,7 +1910,7 @@ var ti = /* @__PURE__ */ new Map();
|
|
|
1910
1910
|
function Oc(e, { target: t, anchor: r, props: n = {}, events: i, context: o, intro: s = !0, transformError: a }) {
|
|
1911
1911
|
is();
|
|
1912
1912
|
var l = void 0, d = oh(() => {
|
|
1913
|
-
var h = r ?? t.appendChild(
|
|
1913
|
+
var h = r ?? t.appendChild(Ee());
|
|
1914
1914
|
Hf(h, { pending: () => {
|
|
1915
1915
|
} }, (y) => {
|
|
1916
1916
|
Bl({});
|
|
@@ -1924,12 +1924,12 @@ function Oc(e, { target: t, anchor: r, props: n = {}, events: i, context: o, int
|
|
|
1924
1924
|
var k = y[T];
|
|
1925
1925
|
if (!f.has(k)) {
|
|
1926
1926
|
f.add(k);
|
|
1927
|
-
var w =
|
|
1927
|
+
var w = xh(k);
|
|
1928
1928
|
for (const U of [t, document]) {
|
|
1929
|
-
var
|
|
1930
|
-
|
|
1931
|
-
var R =
|
|
1932
|
-
R === void 0 ? (U.addEventListener(k, ss, { passive: w }),
|
|
1929
|
+
var E = ti.get(U);
|
|
1930
|
+
E === void 0 && (E = /* @__PURE__ */ new Map(), ti.set(U, E));
|
|
1931
|
+
var R = E.get(k);
|
|
1932
|
+
R === void 0 ? (U.addEventListener(k, ss, { passive: w }), E.set(k, 1)) : E.set(k, R + 1);
|
|
1933
1933
|
}
|
|
1934
1934
|
}
|
|
1935
1935
|
}
|
|
@@ -1951,14 +1951,14 @@ function Oh(e, t) {
|
|
|
1951
1951
|
}
|
|
1952
1952
|
var Tt = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakMap(), Ye = /* @__PURE__ */ new WeakMap(), cn = /* @__PURE__ */ new WeakMap(), $o = /* @__PURE__ */ new WeakMap(), No = /* @__PURE__ */ new WeakMap(), el = /* @__PURE__ */ new WeakMap(), Ic = class {
|
|
1953
1953
|
constructor(e, t = !0) {
|
|
1954
|
-
|
|
1954
|
+
x(this, "anchor", void 0), q(this, Tt, /* @__PURE__ */ new Map()), q(this, Nt, /* @__PURE__ */ new Map()), q(this, Ye, /* @__PURE__ */ new Map()), q(this, cn, /* @__PURE__ */ new Set()), q(this, $o, !0), q(this, No, (r) => {
|
|
1955
1955
|
if (g(Tt, this).has(r)) {
|
|
1956
1956
|
var n = g(Tt, this).get(r), i = g(Nt, this).get(n);
|
|
1957
1957
|
if (i)
|
|
1958
|
-
|
|
1958
|
+
xi(i), g(cn, this).delete(n);
|
|
1959
1959
|
else {
|
|
1960
1960
|
var o = g(Ye, this).get(n);
|
|
1961
|
-
o && (
|
|
1961
|
+
o && (xi(o.effect), g(Nt, this).set(n, o.effect), g(Ye, this).delete(n), o.fragment.lastChild.remove(), this.anchor.before(o.fragment), i = o.effect);
|
|
1962
1962
|
}
|
|
1963
1963
|
for (const [s, a] of g(Tt, this)) {
|
|
1964
1964
|
if (g(Tt, this).delete(s), s === r) break;
|
|
@@ -1970,7 +1970,7 @@ var Tt = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakMap(), Ye =
|
|
|
1970
1970
|
const l = () => {
|
|
1971
1971
|
if (Array.from(g(Tt, this).values()).includes(s)) {
|
|
1972
1972
|
var d = document.createDocumentFragment();
|
|
1973
|
-
Bs(a, d), d.append(
|
|
1973
|
+
Bs(a, d), d.append(Ee()), g(Ye, this).set(s, {
|
|
1974
1974
|
effect: a,
|
|
1975
1975
|
fragment: d
|
|
1976
1976
|
});
|
|
@@ -1989,7 +1989,7 @@ var Tt = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakMap(), Ye =
|
|
|
1989
1989
|
ensure(e, t) {
|
|
1990
1990
|
var r = j, n = fc();
|
|
1991
1991
|
if (t && !g(Nt, this).has(e) && !g(Ye, this).has(e)) if (n) {
|
|
1992
|
-
var i = document.createDocumentFragment(), o =
|
|
1992
|
+
var i = document.createDocumentFragment(), o = Ee();
|
|
1993
1993
|
i.append(o), g(Ye, this).set(e, {
|
|
1994
1994
|
effect: Ce(() => t(o)),
|
|
1995
1995
|
fragment: i
|
|
@@ -2105,36 +2105,36 @@ function Cr(e, t, r, n, i, o = null) {
|
|
|
2105
2105
|
var s = e, a = /* @__PURE__ */ new Map();
|
|
2106
2106
|
if ((t & 4) !== 0) {
|
|
2107
2107
|
var l = e;
|
|
2108
|
-
s = D ? ye(/* @__PURE__ */
|
|
2108
|
+
s = D ? ye(/* @__PURE__ */ xt(l)) : l.appendChild(Ee());
|
|
2109
2109
|
}
|
|
2110
2110
|
D && Br();
|
|
2111
2111
|
var d = null, h = /* @__PURE__ */ Rs(() => {
|
|
2112
|
-
var
|
|
2113
|
-
return Ii(
|
|
2112
|
+
var E = r();
|
|
2113
|
+
return Ii(E) ? E : E == null ? [] : Pi(E);
|
|
2114
2114
|
}), f, v = /* @__PURE__ */ new Map(), y = !0;
|
|
2115
|
-
function T(
|
|
2116
|
-
(w.effect.f & 16384) === 0 && (w.pending.delete(
|
|
2115
|
+
function T(E) {
|
|
2116
|
+
(w.effect.f & 16384) === 0 && (w.pending.delete(E), w.fallback = d, Nh(w, f, s, t, n), d !== null && (f.length === 0 ? (d.f & 33554432) === 0 ? xi(d) : (d.f ^= _n, yn(d, null, s)) : wr(d, () => {
|
|
2117
2117
|
d = null;
|
|
2118
2118
|
})));
|
|
2119
2119
|
}
|
|
2120
|
-
function k(
|
|
2121
|
-
w.pending.delete(
|
|
2120
|
+
function k(E) {
|
|
2121
|
+
w.pending.delete(E);
|
|
2122
2122
|
}
|
|
2123
2123
|
var w = {
|
|
2124
2124
|
effect: Bi(() => {
|
|
2125
2125
|
f = u(h);
|
|
2126
|
-
var
|
|
2126
|
+
var E = f.length;
|
|
2127
2127
|
let R = !1;
|
|
2128
|
-
D && Wl(s) === "[!" != (
|
|
2129
|
-
for (var U = /* @__PURE__ */ new Set(), M = j, z = fc(), G = 0; G <
|
|
2128
|
+
D && Wl(s) === "[!" != (E === 0) && (s = gi(), ye(s), Re(!1), R = !0);
|
|
2129
|
+
for (var U = /* @__PURE__ */ new Set(), M = j, z = fc(), G = 0; G < E; G += 1) {
|
|
2130
2130
|
D && J.nodeType === 8 && J.data === "]" && (s = J, R = !0, Re(!1));
|
|
2131
2131
|
var te = f[G], Z = n(te, G);
|
|
2132
2132
|
if (0)
|
|
2133
2133
|
var fe;
|
|
2134
2134
|
var ne = y ? null : a.get(Z);
|
|
2135
|
-
ne ? (ne.v && jr(ne.v, te), ne.i && jr(ne.i, G), z && M.unskip_effect(ne.e)) : (ne = Wh(a, y ? s : ri ?? (ri =
|
|
2135
|
+
ne ? (ne.v && jr(ne.v, te), ne.i && jr(ne.i, G), z && M.unskip_effect(ne.e)) : (ne = Wh(a, y ? s : ri ?? (ri = Ee()), te, Z, G, i, t, r), y || (ne.e.f |= _n), a.set(Z, ne)), U.add(Z);
|
|
2136
2136
|
}
|
|
2137
|
-
if (
|
|
2137
|
+
if (E === 0 && o && !d && (y ? d = Ce(() => o(s)) : (d = Ce(() => o(ri ?? (ri = Ee()))), d.f |= _n)), E > U.size && ff("", "", ""), D && E > 0 && ye(gi()), !y)
|
|
2138
2138
|
if (v.set(M, U), z) {
|
|
2139
2139
|
for (const [Kr, Yr] of a) U.has(Kr) || M.skip_effect(Yr.e);
|
|
2140
2140
|
M.oncommit(T), M.ondiscard(k);
|
|
@@ -2154,13 +2154,13 @@ function un(e) {
|
|
|
2154
2154
|
return e;
|
|
2155
2155
|
}
|
|
2156
2156
|
function Nh(e, t, r, n, i) {
|
|
2157
|
-
var o = (n & 8) !== 0, s = t.length, a = e.items, l = un(e.effect.first), d, h = null, f, v = [], y = [], T, k, w,
|
|
2158
|
-
if (o) for (
|
|
2159
|
-
T = t[
|
|
2160
|
-
for (
|
|
2161
|
-
if (T = t[
|
|
2157
|
+
var o = (n & 8) !== 0, s = t.length, a = e.items, l = un(e.effect.first), d, h = null, f, v = [], y = [], T, k, w, E;
|
|
2158
|
+
if (o) for (E = 0; E < s; E += 1)
|
|
2159
|
+
T = t[E], k = i(T, E), w = a.get(k).e, (w.f & 33554432) === 0 && (w.nodes?.a?.measure(), (f ?? (f = /* @__PURE__ */ new Set())).add(w));
|
|
2160
|
+
for (E = 0; E < s; E += 1) {
|
|
2161
|
+
if (T = t[E], k = i(T, E), w = a.get(k).e, e.outrogroups !== null) for (const ne of e.outrogroups)
|
|
2162
2162
|
ne.pending.delete(w), ne.done.delete(w);
|
|
2163
|
-
if ((w.f & 8192) !== 0 && (
|
|
2163
|
+
if ((w.f & 8192) !== 0 && (xi(w), o && (w.nodes?.a?.unfix(), (f ?? (f = /* @__PURE__ */ new Set())).delete(w))), (w.f & 33554432) !== 0)
|
|
2164
2164
|
if (w.f ^= _n, w === l) yn(w, null, r);
|
|
2165
2165
|
else {
|
|
2166
2166
|
var R = h ? h.next : l;
|
|
@@ -2175,7 +2175,7 @@ function Nh(e, t, r, n, i) {
|
|
|
2175
2175
|
var z = v[0], G = v[v.length - 1];
|
|
2176
2176
|
for (M = 0; M < v.length; M += 1) yn(v[M], U, r);
|
|
2177
2177
|
for (M = 0; M < y.length; M += 1) d.delete(y[M]);
|
|
2178
|
-
Wt(e, z.prev, G.next), Wt(e, h, z), Wt(e, G, U), l = U, h = G,
|
|
2178
|
+
Wt(e, z.prev, G.next), Wt(e, h, z), Wt(e, G, U), l = U, h = G, E -= 1, v = [], y = [];
|
|
2179
2179
|
} else
|
|
2180
2180
|
d.delete(w), yn(w, l, r), Wt(e, w.prev, w.next), Wt(e, w, h === null ? e.effect.first : h.next), Wt(e, h, w), h = w;
|
|
2181
2181
|
continue;
|
|
@@ -2200,8 +2200,8 @@ function Nh(e, t, r, n, i) {
|
|
|
2200
2200
|
if (Z > 0) {
|
|
2201
2201
|
var fe = (n & 4) !== 0 && s === 0 ? r : null;
|
|
2202
2202
|
if (o) {
|
|
2203
|
-
for (
|
|
2204
|
-
for (
|
|
2203
|
+
for (E = 0; E < Z; E += 1) te[E].nodes?.a?.measure();
|
|
2204
|
+
for (E = 0; E < Z; E += 1) te[E].nodes?.a?.fix();
|
|
2205
2205
|
}
|
|
2206
2206
|
$h(e, te, fe);
|
|
2207
2207
|
}
|
|
@@ -2254,7 +2254,7 @@ function Hh(e, t, r, n, i, o) {
|
|
|
2254
2254
|
if (l = D ? l : Wi(v, y), kt(l, l), n) {
|
|
2255
2255
|
var k = null;
|
|
2256
2256
|
D && Mh(v) && l.append(k = document.createComment(""));
|
|
2257
|
-
var w = D ? /* @__PURE__ */
|
|
2257
|
+
var w = D ? /* @__PURE__ */ xt(l) : l.appendChild(Ee());
|
|
2258
2258
|
D && (w === null ? Re(!1) : ye(w)), tl(h), n(l, w), k?.remove(), tl(null);
|
|
2259
2259
|
}
|
|
2260
2260
|
K.nodes.end = l, T.before(l);
|
|
@@ -2381,7 +2381,7 @@ function $c(e, t, r, n) {
|
|
|
2381
2381
|
} else n && (Array.isArray(n) ? (zo(e, r?.[0], n[0]), zo(e, r?.[1], n[1], "important")) : zo(e, r, n));
|
|
2382
2382
|
return n;
|
|
2383
2383
|
}
|
|
2384
|
-
function
|
|
2384
|
+
function Ei(e, t, r = !1) {
|
|
2385
2385
|
if (e.multiple) {
|
|
2386
2386
|
if (t == null) return;
|
|
2387
2387
|
if (!Ii(t)) return kf();
|
|
@@ -2396,7 +2396,7 @@ function xi(e, t, r = !1) {
|
|
|
2396
2396
|
}
|
|
2397
2397
|
function Nc(e) {
|
|
2398
2398
|
var t = new MutationObserver(() => {
|
|
2399
|
-
|
|
2399
|
+
Ei(e, e.__value);
|
|
2400
2400
|
});
|
|
2401
2401
|
t.observe(e, {
|
|
2402
2402
|
childList: !0,
|
|
@@ -2420,10 +2420,10 @@ function Xe(e, t, r = t) {
|
|
|
2420
2420
|
}), Pn(() => {
|
|
2421
2421
|
var o = t();
|
|
2422
2422
|
if (e === document.activeElement) {
|
|
2423
|
-
var s = Fe ?
|
|
2423
|
+
var s = Fe ? xn : j;
|
|
2424
2424
|
if (n.has(s)) return;
|
|
2425
2425
|
}
|
|
2426
|
-
if (
|
|
2426
|
+
if (Ei(e, o, i), i && o === void 0) {
|
|
2427
2427
|
var a = e.querySelector(":checked");
|
|
2428
2428
|
a !== null && (o = kn(a), r(o));
|
|
2429
2429
|
}
|
|
@@ -2496,12 +2496,12 @@ function Xh(e, t, r, n, i = !1, o = !1) {
|
|
|
2496
2496
|
if (w === "on") {
|
|
2497
2497
|
const G = {}, te = "$$" + M;
|
|
2498
2498
|
let Z = M.slice(2);
|
|
2499
|
-
var
|
|
2500
|
-
if (yh(Z) && (Z = Z.slice(0, -7), G.capture = !0), !
|
|
2499
|
+
var E = _h(Z);
|
|
2500
|
+
if (yh(Z) && (Z = Z.slice(0, -7), G.capture = !0), !E && k) {
|
|
2501
2501
|
if (z != null) continue;
|
|
2502
2502
|
e.removeEventListener(Z, f[te], G), f[te] = null;
|
|
2503
2503
|
}
|
|
2504
|
-
if (
|
|
2504
|
+
if (E)
|
|
2505
2505
|
we(Z, e, z), Mc([Z]);
|
|
2506
2506
|
else if (z != null) {
|
|
2507
2507
|
let fe = function(ne) {
|
|
@@ -2540,17 +2540,17 @@ function Jh(e, t, r = [], n = [], i = [], o, s = !1, a = !1) {
|
|
|
2540
2540
|
var d = void 0, h = {}, f = e.nodeName === Kh, v = !1;
|
|
2541
2541
|
if (vc(() => {
|
|
2542
2542
|
var T = t(...l.map(u)), k = Xh(e, d, T, o, s, a);
|
|
2543
|
-
v && f && "value" in T &&
|
|
2544
|
-
for (let
|
|
2545
|
-
for (let
|
|
2546
|
-
var w = T[
|
|
2547
|
-
|
|
2543
|
+
v && f && "value" in T && Ei(e, T.value);
|
|
2544
|
+
for (let E of Object.getOwnPropertySymbols(h)) T[E] || be(h[E]);
|
|
2545
|
+
for (let E of Object.getOwnPropertySymbols(T)) {
|
|
2546
|
+
var w = T[E];
|
|
2547
|
+
E.description === "@attach" && (!d || w !== d[E]) && (h[E] && be(h[E]), h[E] = Ce(() => Fh(e, () => w))), k[E] = w;
|
|
2548
2548
|
}
|
|
2549
2549
|
d = k;
|
|
2550
2550
|
}), f) {
|
|
2551
2551
|
var y = e;
|
|
2552
2552
|
Pn(() => {
|
|
2553
|
-
|
|
2553
|
+
Ei(y, d.value, !0), Nc(y);
|
|
2554
2554
|
});
|
|
2555
2555
|
}
|
|
2556
2556
|
v = !0;
|
|
@@ -2589,7 +2589,7 @@ function Or(e, t, r = t) {
|
|
|
2589
2589
|
}), (D && e.defaultValue !== e.value || Dt(t) == null && e.value) && (r(Ho(e) ? Bo(e.value) : e.value), j !== null && n.add(j)), Rn(() => {
|
|
2590
2590
|
var i = t();
|
|
2591
2591
|
if (e === document.activeElement) {
|
|
2592
|
-
var o = Fe ?
|
|
2592
|
+
var o = Fe ? xn : j;
|
|
2593
2593
|
if (n.has(o)) return;
|
|
2594
2594
|
}
|
|
2595
2595
|
Ho(e) && i === Bo(e.value) || e.type === "date" && !i && !e.value || i !== e.value && (e.value = i ?? "");
|
|
@@ -2631,7 +2631,7 @@ function Zh() {
|
|
|
2631
2631
|
}
|
|
2632
2632
|
}));
|
|
2633
2633
|
}
|
|
2634
|
-
|
|
2634
|
+
x(Dc, "entries", /* @__PURE__ */ new WeakMap());
|
|
2635
2635
|
function Do(e, t) {
|
|
2636
2636
|
return e === t || e?.[or] === t;
|
|
2637
2637
|
}
|
|
@@ -2678,15 +2678,15 @@ function hn(e, t, r, n) {
|
|
|
2678
2678
|
return arguments.length > 0 ? ((!i || !z || w || T) && f(z ? k() : M), M) : k();
|
|
2679
2679
|
});
|
|
2680
2680
|
}
|
|
2681
|
-
var
|
|
2681
|
+
var E = !1, R = ((r & 1) !== 0 ? An : Rs)(() => (E = !1, k()));
|
|
2682
2682
|
o && u(R);
|
|
2683
2683
|
var U = K;
|
|
2684
2684
|
return (function(M, z) {
|
|
2685
2685
|
if (arguments.length > 0) {
|
|
2686
2686
|
const G = z ? u(R) : i && o ? He(M) : M;
|
|
2687
|
-
return _(R, G),
|
|
2687
|
+
return _(R, G), E = !0, a !== void 0 && (a = G), M;
|
|
2688
2688
|
}
|
|
2689
|
-
return
|
|
2689
|
+
return Et && E || (U.f & 16384) !== 0 ? R.v : u(R);
|
|
2690
2690
|
});
|
|
2691
2691
|
}
|
|
2692
2692
|
function ep(e) {
|
|
@@ -2754,7 +2754,7 @@ var Xt = /* @__PURE__ */ new WeakMap(), it = /* @__PURE__ */ new WeakMap(), tp =
|
|
|
2754
2754
|
}, jc;
|
|
2755
2755
|
typeof HTMLElement == "function" && (jc = class extends HTMLElement {
|
|
2756
2756
|
constructor(e, t, r) {
|
|
2757
|
-
super(),
|
|
2757
|
+
super(), x(this, "$$ctor", void 0), x(this, "$$s", void 0), x(this, "$$c", void 0), x(this, "$$cn", !1), x(this, "$$d", {}), x(this, "$$r", !1), x(this, "$$p_d", {}), x(this, "$$l", {}), x(this, "$$l_u", /* @__PURE__ */ new Map()), x(this, "$$me", void 0), x(this, "$$shadowRoot", null), this.$$ctor = e, this.$$s = t, r && (this.$$shadowRoot = this.attachShadow(r));
|
|
2758
2758
|
}
|
|
2759
2759
|
addEventListener(e, t, r) {
|
|
2760
2760
|
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
@@ -2957,7 +2957,7 @@ var zr;
|
|
|
2957
2957
|
})(zr || (zr = {}));
|
|
2958
2958
|
var Vc = class us {
|
|
2959
2959
|
constructor(t = {}) {
|
|
2960
|
-
if (
|
|
2960
|
+
if (x(this, "config", void 0), x(this, "ttsWordHighlight", null), x(this, "ttsSentenceHighlight", null), x(this, "ttsWordElementHighlights", /* @__PURE__ */ new Set()), x(this, "ttsSentenceElementHighlights", /* @__PURE__ */ new Set()), x(this, "annotations", /* @__PURE__ */ new Map()), x(this, "colorHighlights", /* @__PURE__ */ new Map()), x(this, "nextAnnotationId", 1), x(this, "supported", !1), x(this, "rangeSerializer", void 0), x(this, "themeObserver", null), x(this, "explicitTTSColorOverride", null), this.config = t, this.rangeSerializer = new ip(), typeof CSS > "u" || !("highlights" in CSS)) {
|
|
2961
2961
|
console.warn("CSS Custom Highlight API not supported (SSR or unsupported browser)");
|
|
2962
2962
|
return;
|
|
2963
2963
|
}
|
|
@@ -3074,7 +3074,7 @@ var Vc = class us {
|
|
|
3074
3074
|
}
|
|
3075
3075
|
fe > v && (v = fe, f = z);
|
|
3076
3076
|
}
|
|
3077
|
-
const y = Math.max(0.24, Math.min(0.85, f * 0.55)), T = Math.max(0.55, Math.min(0.95, f + 0.2)), k = Math.max(0.22, Math.min(0.6, f * 0.45)), w = l,
|
|
3077
|
+
const y = Math.max(0.24, Math.min(0.85, f * 0.55)), T = Math.max(0.55, Math.min(0.95, f + 0.2)), k = Math.max(0.22, Math.min(0.6, f * 0.45)), w = l, E = this.blend(w, a, T), R = this.contrastRatio(E, a), U = this.relativeLuminance(a) > 0.45 ? [
|
|
3078
3078
|
0,
|
|
3079
3079
|
0,
|
|
3080
3080
|
0
|
|
@@ -3367,8 +3367,8 @@ var Vc = class us {
|
|
|
3367
3367
|
}
|
|
3368
3368
|
}
|
|
3369
3369
|
};
|
|
3370
|
-
|
|
3371
|
-
|
|
3370
|
+
x(Vc, "SENTENCE_FALLBACK_SELECTOR", "math, mjx-container, svg, img, canvas, [role='img']");
|
|
3371
|
+
x(Vc, "WORD_FALLBACK_SELECTOR", "svg, img, canvas, [role='img']");
|
|
3372
3372
|
function Uc(e) {
|
|
3373
3373
|
return (...t) => {
|
|
3374
3374
|
console.debug(`[${e}]`, ...t);
|
|
@@ -3509,7 +3509,7 @@ function sl(e) {
|
|
|
3509
3509
|
}
|
|
3510
3510
|
var pp = class {
|
|
3511
3511
|
constructor() {
|
|
3512
|
-
|
|
3512
|
+
x(this, "tools", /* @__PURE__ */ new Map()), x(this, "pnpIndex", /* @__PURE__ */ new Map()), x(this, "componentOverrides", {}), x(this, "moduleLoaders", /* @__PURE__ */ new Map()), x(this, "loadedToolModules", /* @__PURE__ */ new Set()), x(this, "moduleLoadPromises", /* @__PURE__ */ new Map());
|
|
3513
3513
|
}
|
|
3514
3514
|
normalizeToolId(e) {
|
|
3515
3515
|
return qc(e);
|
|
@@ -3792,7 +3792,7 @@ function Ds(e, t, r) {
|
|
|
3792
3792
|
}
|
|
3793
3793
|
var Tp = class {
|
|
3794
3794
|
constructor() {
|
|
3795
|
-
|
|
3795
|
+
x(this, "providerId", "desmos-calculator"), x(this, "providerName", "Desmos Calculator"), x(this, "category", "calculator"), x(this, "version", "1.10"), x(this, "requiresAuth", !0), x(this, "desmosProvider", null), x(this, "config", null);
|
|
3796
3796
|
}
|
|
3797
3797
|
async emitTelemetry(e, t) {
|
|
3798
3798
|
try {
|
|
@@ -3914,14 +3914,14 @@ var Tp = class {
|
|
|
3914
3914
|
if (a) return a;
|
|
3915
3915
|
}
|
|
3916
3916
|
return e[0] || null;
|
|
3917
|
-
},
|
|
3917
|
+
}, xp = (e) => !e.default, Xc = class {
|
|
3918
3918
|
constructor() {
|
|
3919
|
-
|
|
3919
|
+
x(this, "providerId", "browser"), x(this, "providerName", "Browser Speech Synthesis"), x(this, "version", "1.0.0");
|
|
3920
3920
|
}
|
|
3921
3921
|
async initialize(e) {
|
|
3922
3922
|
if (typeof window > "u") throw new Error("BrowserTTSProvider requires browser environment");
|
|
3923
3923
|
if (!("speechSynthesis" in window)) throw new Error("Browser does not support Speech Synthesis API");
|
|
3924
|
-
return new
|
|
3924
|
+
return new Ep(e);
|
|
3925
3925
|
}
|
|
3926
3926
|
supportsFeature(e) {
|
|
3927
3927
|
return !0;
|
|
@@ -3939,9 +3939,9 @@ var Tp = class {
|
|
|
3939
3939
|
}
|
|
3940
3940
|
destroy() {
|
|
3941
3941
|
}
|
|
3942
|
-
},
|
|
3942
|
+
}, Ep = class {
|
|
3943
3943
|
constructor(e) {
|
|
3944
|
-
|
|
3944
|
+
x(this, "utterance", null), x(this, "config", null), x(this, "_isPlaying", !1), x(this, "_isPaused", !1), x(this, "speakRunId", 0), x(this, "onWordBoundary", void 0), this.config = e;
|
|
3945
3945
|
}
|
|
3946
3946
|
async speak(e) {
|
|
3947
3947
|
if (!this.config) throw new Error("TTS not initialized");
|
|
@@ -4027,7 +4027,7 @@ var Tp = class {
|
|
|
4027
4027
|
const o = new SpeechSynthesisUtterance(e);
|
|
4028
4028
|
this.utterance = o;
|
|
4029
4029
|
const s = kp(speechSynthesis.getVoices(), this.config?.voice);
|
|
4030
|
-
s &&
|
|
4030
|
+
s && xp(s) && (o.voice = s), this.config?.rate && (o.rate = this.config.rate), this.config?.pitch && (o.pitch = this.config.pitch);
|
|
4031
4031
|
const a = () => {
|
|
4032
4032
|
this.utterance === o && (this.utterance = null);
|
|
4033
4033
|
};
|
|
@@ -4090,7 +4090,7 @@ var Tp = class {
|
|
|
4090
4090
|
}
|
|
4091
4091
|
}
|
|
4092
4092
|
constructor(e = "browser") {
|
|
4093
|
-
|
|
4093
|
+
x(this, "providerId", "tts-service"), x(this, "providerName", "Text-to-Speech"), x(this, "category", "tts"), x(this, "version", "1.0"), x(this, "requiresAuth", void 0), x(this, "ttsProvider", null), x(this, "config", null), this.requiresAuth = e !== "browser";
|
|
4094
4094
|
}
|
|
4095
4095
|
async initialize(e) {
|
|
4096
4096
|
if (this.ttsProvider) {
|
|
@@ -4363,26 +4363,26 @@ var Np = {
|
|
|
4363
4363
|
const y = v.textContent || "", T = y.match(/\S/), k = T ? T[0] : null;
|
|
4364
4364
|
!o && !s && eu(l, k, t) && (n.push(" "), a && r.set(i, a), i++, s = !0);
|
|
4365
4365
|
for (let w = 0; w < y.length; w++) {
|
|
4366
|
-
const
|
|
4367
|
-
o ? R || (o = !1, n.push(
|
|
4366
|
+
const E = y[w], R = /\s/.test(E);
|
|
4367
|
+
o ? R || (o = !1, n.push(E), r.set(i, {
|
|
4368
4368
|
node: v,
|
|
4369
4369
|
offset: w
|
|
4370
4370
|
}), a = {
|
|
4371
4371
|
node: v,
|
|
4372
4372
|
offset: w
|
|
4373
|
-
}, i++, s = !1, l =
|
|
4373
|
+
}, i++, s = !1, l = E) : R ? (s || (n.push(" "), r.set(i, {
|
|
4374
4374
|
node: v,
|
|
4375
4375
|
offset: w
|
|
4376
4376
|
}), a = {
|
|
4377
4377
|
node: v,
|
|
4378
4378
|
offset: w
|
|
4379
|
-
}, i++), s = !0) : (n.push(
|
|
4379
|
+
}, i++), s = !0) : (n.push(E), r.set(i, {
|
|
4380
4380
|
node: v,
|
|
4381
4381
|
offset: w
|
|
4382
4382
|
}), a = {
|
|
4383
4383
|
node: v,
|
|
4384
4384
|
offset: w
|
|
4385
|
-
}, i++, s = !1, l =
|
|
4385
|
+
}, i++, s = !1, l = E);
|
|
4386
4386
|
}
|
|
4387
4387
|
}
|
|
4388
4388
|
h = d.nextNode();
|
|
@@ -4605,7 +4605,8 @@ var Np = {
|
|
|
4605
4605
|
controlsRow: {
|
|
4606
4606
|
reserveSpace: !0,
|
|
4607
4607
|
expandWhenToolActive: !1
|
|
4608
|
-
}
|
|
4608
|
+
},
|
|
4609
|
+
headerOverlay: { expandWhenToolActive: !1 }
|
|
4609
4610
|
};
|
|
4610
4611
|
case "expanding-row":
|
|
4611
4612
|
return {
|
|
@@ -4613,7 +4614,17 @@ var Np = {
|
|
|
4613
4614
|
controlsRow: {
|
|
4614
4615
|
reserveSpace: !1,
|
|
4615
4616
|
expandWhenToolActive: !0
|
|
4616
|
-
}
|
|
4617
|
+
},
|
|
4618
|
+
headerOverlay: { expandWhenToolActive: !1 }
|
|
4619
|
+
};
|
|
4620
|
+
case "floating-overlay":
|
|
4621
|
+
return {
|
|
4622
|
+
mount: "before-buttons",
|
|
4623
|
+
controlsRow: {
|
|
4624
|
+
reserveSpace: !1,
|
|
4625
|
+
expandWhenToolActive: !1
|
|
4626
|
+
},
|
|
4627
|
+
headerOverlay: { expandWhenToolActive: !1 }
|
|
4617
4628
|
};
|
|
4618
4629
|
default:
|
|
4619
4630
|
return {
|
|
@@ -4621,7 +4632,8 @@ var Np = {
|
|
|
4621
4632
|
controlsRow: {
|
|
4622
4633
|
reserveSpace: !1,
|
|
4623
4634
|
expandWhenToolActive: !1
|
|
4624
|
-
}
|
|
4635
|
+
},
|
|
4636
|
+
headerOverlay: { expandWhenToolActive: !0 }
|
|
4625
4637
|
};
|
|
4626
4638
|
}
|
|
4627
4639
|
}, pn = /* @__PURE__ */ new Map(), Jp = "__pieToolElementUnmount", gl = "pie-tool-active-change", Qp = {
|
|
@@ -4679,10 +4691,13 @@ var Np = {
|
|
|
4679
4691
|
elements: [{
|
|
4680
4692
|
element: l(),
|
|
4681
4693
|
mount: d.mount,
|
|
4682
|
-
layoutHints: {
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4694
|
+
layoutHints: {
|
|
4695
|
+
controlsRow: {
|
|
4696
|
+
reserveSpace: d.controlsRow.reserveSpace,
|
|
4697
|
+
showWhenToolActive: d.controlsRow.expandWhenToolActive
|
|
4698
|
+
},
|
|
4699
|
+
headerOverlay: { showWhenToolActive: d.headerOverlay.expandWhenToolActive }
|
|
4700
|
+
}
|
|
4686
4701
|
}],
|
|
4687
4702
|
subscribeActive: (h) => {
|
|
4688
4703
|
const f = l(), v = (y) => {
|
|
@@ -5618,7 +5633,7 @@ var vv = /* @__PURE__ */ new Set([
|
|
|
5618
5633
|
start: t,
|
|
5619
5634
|
length: Math.min(r, n.end - t)
|
|
5620
5635
|
} : null;
|
|
5621
|
-
},
|
|
5636
|
+
}, xv = (e, t, r = 1, n) => {
|
|
5622
5637
|
if (e.boundaryOffsetMode === "unsupported" || !Number.isFinite(t)) return null;
|
|
5623
5638
|
const i = Math.max(1, Number.isFinite(r) ? r : 1);
|
|
5624
5639
|
if (n && /^<[^>]+>$/.test(n.trim())) return null;
|
|
@@ -5632,7 +5647,7 @@ var vv = /* @__PURE__ */ new Set([
|
|
|
5632
5647
|
return o || s;
|
|
5633
5648
|
}
|
|
5634
5649
|
return Sl(e, t, i) || Tl(e, t, i);
|
|
5635
|
-
},
|
|
5650
|
+
}, Ev = (e, t) => {
|
|
5636
5651
|
if (e.playbackMode === "region-fallback") return null;
|
|
5637
5652
|
const r = e.anchors.find((o) => o.spokenStart <= t && t < o.spokenEnd);
|
|
5638
5653
|
if (r) return {
|
|
@@ -6431,7 +6446,7 @@ var vv = /* @__PURE__ */ new Set([
|
|
|
6431
6446
|
if (e.type !== "text" || !e.sourceElement) return !1;
|
|
6432
6447
|
const t = e.sourceElement.tagName.toUpperCase(), r = (e.sourceElement.getAttribute("role") || "").toLowerCase();
|
|
6433
6448
|
return Tg.has(t) || Sg.has(r);
|
|
6434
|
-
},
|
|
6449
|
+
}, xg = async (e) => {
|
|
6435
6450
|
const t = e.resolveMathSpeech ?? _g, { visibleText: r } = e, n = [];
|
|
6436
6451
|
let i = 0;
|
|
6437
6452
|
const o = (a) => {
|
|
@@ -6488,7 +6503,7 @@ var vv = /* @__PURE__ */ new Set([
|
|
|
6488
6503
|
visibleText: r,
|
|
6489
6504
|
plainSpeechText: le(s.join(" "))
|
|
6490
6505
|
};
|
|
6491
|
-
},
|
|
6506
|
+
}, Eg = (e) => (e || "en").split("-")[0].toLowerCase() || "en", Ag = "sre-v1", Mg = 256, _s = (e) => Array.isArray(e) ? `array:[${e.map(_s).join(",")}]` : e && typeof e == "object" ? `object:{${Object.entries(e).sort(([t], [r]) => t.localeCompare(r)).map(([t, r]) => `${JSON.stringify(t)}:${_s(r)}`).join(",")}}` : e === null ? "null:null" : typeof e > "u" ? "undefined:" : typeof e == "function" ? `function:${e.name || "anonymous"}` : typeof e == "symbol" ? `symbol:${String(e)}` : typeof e == "bigint" ? `bigint:${e.toString()}` : typeof e == "number" ? Number.isFinite(e) ? `number:${e}` : `number:${String(e)}` : `${typeof e}:${JSON.stringify(e)}`, xl = (e, t, r, n) => `${Ag}\0${Eg(e)}\0${t ? "ssml" : "plain"}\0${_s(r ?? null)}\0${n}`, Cg = (e = {}) => {
|
|
6492
6507
|
const t = Math.max(1, e.maxEntries ?? Mg), r = e.resolve ?? ((o, s) => ru([o], s)), n = /* @__PURE__ */ new Map(), i = (o, s) => {
|
|
6493
6508
|
for (n.delete(o), n.set(o, s); n.size > t; ) {
|
|
6494
6509
|
const a = n.keys().next().value;
|
|
@@ -6496,14 +6511,14 @@ var vv = /* @__PURE__ */ new Set([
|
|
|
6496
6511
|
}
|
|
6497
6512
|
};
|
|
6498
6513
|
return async (o, s) => {
|
|
6499
|
-
const a = Vi(s.mathSpeech), l = s.produceSsml === !0, d =
|
|
6514
|
+
const a = Vi(s.mathSpeech), l = s.produceSsml === !0, d = xl(s.language, l, a, o.mathml), h = n.get(d);
|
|
6500
6515
|
if (h)
|
|
6501
6516
|
return n.delete(d), n.set(d, h), h;
|
|
6502
6517
|
const f = await r(o, {
|
|
6503
6518
|
...s,
|
|
6504
6519
|
mathSpeech: a
|
|
6505
6520
|
});
|
|
6506
|
-
return l && f.ssml && t > 1 && i(
|
|
6521
|
+
return l && f.ssml && t > 1 && i(xl(s.language, !1, a, o.mathml), {
|
|
6507
6522
|
speechText: f.speechText,
|
|
6508
6523
|
usedMathSpeech: f.usedMathSpeech,
|
|
6509
6524
|
usedFallback: f.usedFallback
|
|
@@ -6548,7 +6563,7 @@ var vv = /* @__PURE__ */ new Set([
|
|
|
6548
6563
|
};
|
|
6549
6564
|
let n, i;
|
|
6550
6565
|
if (e.catalogAlignment)
|
|
6551
|
-
n =
|
|
6566
|
+
n = xv(e.catalogAlignment, t.position, t.length, t.word), i = e.catalogAlignment.spokenText;
|
|
6552
6567
|
else {
|
|
6553
6568
|
const o = Ig(e, t);
|
|
6554
6569
|
n = o.boundary, i = o.spokenText;
|
|
@@ -6593,12 +6608,12 @@ var vv = /* @__PURE__ */ new Set([
|
|
|
6593
6608
|
quality: "region",
|
|
6594
6609
|
confidence: e.confidence,
|
|
6595
6610
|
reason: e.reason
|
|
6596
|
-
},
|
|
6611
|
+
}, xu = /* @__PURE__ */ new Map([
|
|
6597
6612
|
["mi", "mjx-mi"],
|
|
6598
6613
|
["mn", "mjx-mn"],
|
|
6599
6614
|
["mo", "mjx-mo"],
|
|
6600
6615
|
["mtext", "mjx-mtext"]
|
|
6601
|
-
]), ws = "mi,mn,mo,mtext",
|
|
6616
|
+
]), ws = "mi,mn,mo,mtext", Eu = "mjx-mi,mjx-mn,mjx-mo,mjx-mtext", Au = [
|
|
6602
6617
|
"mjx-mfrac",
|
|
6603
6618
|
"mjx-msqrt",
|
|
6604
6619
|
"mjx-mroot",
|
|
@@ -6613,7 +6628,7 @@ var vv = /* @__PURE__ */ new Set([
|
|
|
6613
6628
|
t = t.parentElement;
|
|
6614
6629
|
}
|
|
6615
6630
|
return null;
|
|
6616
|
-
},
|
|
6631
|
+
}, El = (e) => !e || Ui(e) ? !1 : !Gr(e), Cu = (e) => {
|
|
6617
6632
|
const t = e.getBoundingClientRect?.();
|
|
6618
6633
|
return !!(t && t.width > 0 && t.height > 0);
|
|
6619
6634
|
}, Ts = (e) => {
|
|
@@ -6626,17 +6641,17 @@ var vv = /* @__PURE__ */ new Set([
|
|
|
6626
6641
|
}, Ou = (e, t) => {
|
|
6627
6642
|
if (e.length === 0 || e.length !== t.length) return !1;
|
|
6628
6643
|
for (let r = 0; r < e.length; r += 1) {
|
|
6629
|
-
const n =
|
|
6644
|
+
const n = xu.get(e[r].localName.toLowerCase());
|
|
6630
6645
|
if (!n || t[r].localName.toLowerCase() !== n) return !1;
|
|
6631
6646
|
}
|
|
6632
6647
|
return !0;
|
|
6633
6648
|
}, Lg = (e, t) => {
|
|
6634
|
-
if (!e || !
|
|
6649
|
+
if (!e || !xu.has(e.localName.toLowerCase()) || t.querySelector(Au)) return null;
|
|
6635
6650
|
const r = Ts(e), n = t.querySelector("mjx-math");
|
|
6636
6651
|
if (!r || !n) return null;
|
|
6637
6652
|
const i = Array.from(r.querySelectorAll(ws)), o = i.indexOf(e);
|
|
6638
6653
|
if (o < 0) return null;
|
|
6639
|
-
const s = Array.from(n.querySelectorAll(
|
|
6654
|
+
const s = Array.from(n.querySelectorAll(Eu));
|
|
6640
6655
|
if (!Ou(i, s)) return null;
|
|
6641
6656
|
const a = s[o];
|
|
6642
6657
|
return !a || !Cu(a) ? null : a;
|
|
@@ -6646,7 +6661,7 @@ var vv = /* @__PURE__ */ new Set([
|
|
|
6646
6661
|
if (t.querySelector(Au)) return "expression";
|
|
6647
6662
|
const n = Ts(e) ?? e, i = t.querySelector("mjx-math");
|
|
6648
6663
|
if (!i) return "expression";
|
|
6649
|
-
const o = Array.from(n.querySelectorAll(ws)), s = Array.from(i.querySelectorAll(
|
|
6664
|
+
const o = Array.from(n.querySelectorAll(ws)), s = Array.from(i.querySelectorAll(Eu));
|
|
6650
6665
|
return Ou(o, s) && s.some((a) => Cu(a)) ? "token" : "expression";
|
|
6651
6666
|
}
|
|
6652
6667
|
const r = Ts(e) ?? e;
|
|
@@ -6665,13 +6680,13 @@ var vv = /* @__PURE__ */ new Set([
|
|
|
6665
6680
|
element: r
|
|
6666
6681
|
};
|
|
6667
6682
|
}
|
|
6668
|
-
return e.type === "text-range" ?
|
|
6683
|
+
return e.type === "text-range" ? El(e.node.parentElement) ? {
|
|
6669
6684
|
type: "text-range",
|
|
6670
6685
|
quality: "semantic-token",
|
|
6671
6686
|
node: e.node,
|
|
6672
6687
|
startOffset: e.startOffset,
|
|
6673
6688
|
endOffset: e.endOffset
|
|
6674
|
-
} : null :
|
|
6689
|
+
} : null : El(e.element) ? {
|
|
6675
6690
|
type: "element",
|
|
6676
6691
|
quality: e.quality === "region-fallback" ? "expression" : "semantic-token",
|
|
6677
6692
|
element: e.element
|
|
@@ -6716,7 +6731,7 @@ var vv = /* @__PURE__ */ new Set([
|
|
|
6716
6731
|
}
|
|
6717
6732
|
}, Hg = (e, t) => {
|
|
6718
6733
|
if (!e.catalogAlignment || t.chunkSpokenStart === null) return null;
|
|
6719
|
-
const r =
|
|
6734
|
+
const r = Ev(e.catalogAlignment, t.chunkSpokenStart);
|
|
6720
6735
|
if (!r) return null;
|
|
6721
6736
|
const n = Iu(e.visibleMap, r.start, r.end);
|
|
6722
6737
|
return n ? {
|
|
@@ -6867,7 +6882,7 @@ var vv = /* @__PURE__ */ new Set([
|
|
|
6867
6882
|
}
|
|
6868
6883
|
return n;
|
|
6869
6884
|
}, Qg = async (e) => {
|
|
6870
|
-
const t = bn(e.contentRoot, e.textProcessingOptions), r = await
|
|
6885
|
+
const t = bn(e.contentRoot, e.textProcessingOptions), r = await xg({
|
|
6871
6886
|
chunks: t.chunks,
|
|
6872
6887
|
visibleText: t.visibleText,
|
|
6873
6888
|
language: e.language,
|
|
@@ -6955,7 +6970,7 @@ var vv = /* @__PURE__ */ new Set([
|
|
|
6955
6970
|
})(ie || (ie = {}));
|
|
6956
6971
|
var Lu = (e, t) => e === t || e.startContainer === t.startContainer && e.startOffset === t.startOffset && e.endContainer === t.endContainer && e.endOffset === t.endOffset, nm = (e, t) => e === t ? !0 : !e || !t || e.type !== t.type || e.quality !== t.quality ? !1 : e.type === "range" && t.type === "range" ? Lu(e.range, t.range) : e.type === "element" && t.type === "element" ? e.element === t.element : e.type === "text-range" && t.type === "text-range" ? e.node === t.node && e.startOffset === t.startOffset && e.endOffset === t.endOffset : !1, im = class ks {
|
|
6957
6972
|
constructor() {
|
|
6958
|
-
|
|
6973
|
+
x(this, "currentProvider", null), x(this, "provider", null), x(this, "highlightCoordinator", null), x(this, "highlightTargetResolverProvider", null), x(this, "catalogResolver", null), x(this, "state", ie.IDLE), x(this, "ttsConfig", {}), x(this, "currentText", null), x(this, "currentContentElement", null), x(this, "normalizedToDOM", /* @__PURE__ */ new Map()), x(this, "listeners", /* @__PURE__ */ new Map()), x(this, "lastError", null), x(this, "speakRunId", 0), x(this, "currentBoundaryOffset", 0), x(this, "activeWordBoundaryOffset", 0), x(this, "seekSegments", []), x(this, "playbackChunks", []), x(this, "sentenceHighlightSegments", []), x(this, "currentSeekSegmentIndex", 0), x(this, "activeSentenceStartOffset", null), x(this, "activeHighlightMode", "word"), x(this, "lastRenderedRegionTarget", null), x(this, "telemetryReporter", null), x(this, "generatedMathSpeechResolver", Cg());
|
|
6959
6974
|
}
|
|
6960
6975
|
debugLog(t, r) {
|
|
6961
6976
|
ks.debugEnabled && (r === void 0 ? console.debug(t) : console.debug(t, r));
|
|
@@ -7627,10 +7642,10 @@ var Lu = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
|
|
|
7627
7642
|
const y = bn(f, this.getTextProcessingOptions(r.language)), T = y.visibleText || le(f.textContent || ""), k = uu({
|
|
7628
7643
|
speechText: v.content,
|
|
7629
7644
|
visibleText: T
|
|
7630
|
-
}), w = a(f, T),
|
|
7645
|
+
}), w = a(f, T), E = w ? Oi({
|
|
7631
7646
|
mathElement: w,
|
|
7632
7647
|
speechText: v.content
|
|
7633
|
-
}) : void 0, R =
|
|
7648
|
+
}) : void 0, R = E ? void 0 : l(f).map((M) => ({
|
|
7634
7649
|
element: M,
|
|
7635
7650
|
alignment: Oi({
|
|
7636
7651
|
mathElement: M,
|
|
@@ -7645,7 +7660,7 @@ var Lu = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
|
|
|
7645
7660
|
speechMatchesVisibleText: U === T,
|
|
7646
7661
|
playbackMode: k.playbackMode,
|
|
7647
7662
|
alignment: k,
|
|
7648
|
-
mathAlignment:
|
|
7663
|
+
mathAlignment: E,
|
|
7649
7664
|
mathAlignments: R,
|
|
7650
7665
|
visibleMap: y.map
|
|
7651
7666
|
});
|
|
@@ -8016,7 +8031,7 @@ var Lu = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
|
|
|
8016
8031
|
});
|
|
8017
8032
|
}
|
|
8018
8033
|
};
|
|
8019
|
-
|
|
8034
|
+
x(im, "debugEnabled", (() => {
|
|
8020
8035
|
try {
|
|
8021
8036
|
if (typeof process < "u" && process.env?.PIE_TTS_DEBUG === "1") return !0;
|
|
8022
8037
|
} catch {
|
|
@@ -8050,7 +8065,7 @@ function _m(e, t) {
|
|
|
8050
8065
|
1,
|
|
8051
8066
|
1.25
|
|
8052
8067
|
], n = Rh(), i = "/api/tts", o = "pie:section-player-tools:tts-settings";
|
|
8053
|
-
let s = hn(t, "toolkitCoordinator", 7, null), a = hn(t, "apiEndpoint", 7, "/api/tts"), l = hn(t, "storageKey", 7, o), d = hn(t, "adapters", 23, () => ({})), h = hn(t, "customProviders", 23, () => []), f = /* @__PURE__ */ W("browser"), v = /* @__PURE__ */ W(null), y = /* @__PURE__ */ W(null), T = /* @__PURE__ */ W(!1), k = /* @__PURE__ */ W(!1), w = /* @__PURE__ */ W(null),
|
|
8068
|
+
let s = hn(t, "toolkitCoordinator", 7, null), a = hn(t, "apiEndpoint", 7, "/api/tts"), l = hn(t, "storageKey", 7, o), d = hn(t, "adapters", 23, () => ({})), h = hn(t, "customProviders", 23, () => []), f = /* @__PURE__ */ W("browser"), v = /* @__PURE__ */ W(null), y = /* @__PURE__ */ W(null), T = /* @__PURE__ */ W(!1), k = /* @__PURE__ */ W(!1), w = /* @__PURE__ */ W(null), E = /* @__PURE__ */ W(null), R = /* @__PURE__ */ W("plain"), U = /* @__PURE__ */ W(""), M = /* @__PURE__ */ W(null), z = /* @__PURE__ */ W(-1), G = /* @__PURE__ */ W(0), te = /* @__PURE__ */ W(He({})), Z = /* @__PURE__ */ W(He({})), fe = /* @__PURE__ */ W(He({})), ne = /* @__PURE__ */ W(""), Kr = /* @__PURE__ */ W(1), Yr = /* @__PURE__ */ W(1), ft = /* @__PURE__ */ W("left-aligned"), ht = /* @__PURE__ */ W(""), Xr = /* @__PURE__ */ W(void 0), Nn = /* @__PURE__ */ W(""), pt = /* @__PURE__ */ W(!0), jt = /* @__PURE__ */ W(""), It = /* @__PURE__ */ W("en-US"), Jr = /* @__PURE__ */ W(""), rt = /* @__PURE__ */ W("neural"), Tr = /* @__PURE__ */ W(24e3), Sr = /* @__PURE__ */ W("mp3"), Qr = /* @__PURE__ */ W("word"), vt = /* @__PURE__ */ W(""), qi = /* @__PURE__ */ W(1), Vt = /* @__PURE__ */ W(""), Pt = /* @__PURE__ */ W("en-US"), Ut = /* @__PURE__ */ W(""), qt = /* @__PURE__ */ W("wavenet"), gt = /* @__PURE__ */ W(""), Gi = /* @__PURE__ */ W(1), mt = /* @__PURE__ */ W(He({
|
|
8054
8069
|
checked: !1,
|
|
8055
8070
|
loading: !1,
|
|
8056
8071
|
available: !1,
|
|
@@ -8071,7 +8086,7 @@ function _m(e, t) {
|
|
|
8071
8086
|
message: null,
|
|
8072
8087
|
detail: null,
|
|
8073
8088
|
voices: []
|
|
8074
|
-
})), bt = null, kr = null, Ki = null, me = null, Wn = 0, Yi = /* @__PURE__ */ W(null), zn = /* @__PURE__ */ W(null), Hn = /* @__PURE__ */ W(null),
|
|
8089
|
+
})), bt = null, kr = null, Ki = null, me = null, Wn = 0, Yi = /* @__PURE__ */ W(null), zn = /* @__PURE__ */ W(null), Hn = /* @__PURE__ */ W(null), xr = null;
|
|
8075
8090
|
function $u(c, p = {}) {
|
|
8076
8091
|
const m = () => Array.from(c.querySelectorAll("button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex='-1'])")).filter(($) => $.offsetParent !== null || $.getClientRects().length > 0), b = document.activeElement, S = ($) => {
|
|
8077
8092
|
if ($.key === "Escape") {
|
|
@@ -8116,7 +8131,7 @@ function _m(e, t) {
|
|
|
8116
8131
|
console.debug(`${Bn} ${c}`);
|
|
8117
8132
|
}
|
|
8118
8133
|
}
|
|
8119
|
-
function
|
|
8134
|
+
function Er(c, p) {
|
|
8120
8135
|
if (!(typeof console > "u")) {
|
|
8121
8136
|
if (p) {
|
|
8122
8137
|
console.info(`${Bn} browser:${c}`, p);
|
|
@@ -8724,7 +8739,7 @@ function _m(e, t) {
|
|
|
8724
8739
|
}, 40);
|
|
8725
8740
|
}
|
|
8726
8741
|
function nn() {
|
|
8727
|
-
lo(), _(w, null), _(M, null), Ki?.(), Ki = null, kr && typeof window < "u" && "speechSynthesis" in window && (
|
|
8742
|
+
lo(), _(w, null), _(M, null), Ki?.(), Ki = null, kr && typeof window < "u" && "speechSynthesis" in window && (Er("cancel"), window.speechSynthesis.cancel()), kr = null, bt && (bt.pause(), bt.src = "", bt = null), _(k, !1), _(E, null);
|
|
8728
8743
|
}
|
|
8729
8744
|
function fd(c, p) {
|
|
8730
8745
|
if (c.length === 0) return c;
|
|
@@ -8843,7 +8858,7 @@ function _m(e, t) {
|
|
|
8843
8858
|
const m = c.getVoices(), b = Hu(m, u(ne) || void 0);
|
|
8844
8859
|
b && Bu(b) && (p.voice = b);
|
|
8845
8860
|
const S = ud(u(U));
|
|
8846
|
-
|
|
8861
|
+
Er("prepare", {
|
|
8847
8862
|
textLength: p.text.length,
|
|
8848
8863
|
rate: p.rate,
|
|
8849
8864
|
pitch: p.pitch,
|
|
@@ -8857,7 +8872,7 @@ function _m(e, t) {
|
|
|
8857
8872
|
L || (L = !0, kr === p && (kr = null), P());
|
|
8858
8873
|
};
|
|
8859
8874
|
p.onstart = () => {
|
|
8860
|
-
|
|
8875
|
+
Er("start");
|
|
8861
8876
|
const P = S[0];
|
|
8862
8877
|
P && (_(z, P.start, !0), _(G, Math.max(1, P.end - P.start), !0));
|
|
8863
8878
|
}, p.onboundary = (P) => {
|
|
@@ -8865,15 +8880,15 @@ function _m(e, t) {
|
|
|
8865
8880
|
const N = Number(P.charIndex || 0), B = S.find((oe) => N >= oe.start && N < oe.end);
|
|
8866
8881
|
B && (_(z, B.start, !0), _(G, Math.max(1, B.end - B.start), !0));
|
|
8867
8882
|
}, p.onend = () => {
|
|
8868
|
-
|
|
8883
|
+
Er("end"), V($);
|
|
8869
8884
|
}, p.onerror = (P) => {
|
|
8870
8885
|
const N = String(P?.error || "");
|
|
8871
|
-
if (
|
|
8886
|
+
if (Er("error", { error: N || "unknown" }), N === "interrupted" || N === "canceled") {
|
|
8872
8887
|
V($);
|
|
8873
8888
|
return;
|
|
8874
8889
|
}
|
|
8875
8890
|
V(() => I(/* @__PURE__ */ new Error("Failed to play browser voice preview.")));
|
|
8876
|
-
},
|
|
8891
|
+
}, Er("speak"), c.speak(p);
|
|
8877
8892
|
});
|
|
8878
8893
|
}
|
|
8879
8894
|
async function ua() {
|
|
@@ -8881,7 +8896,7 @@ function _m(e, t) {
|
|
|
8881
8896
|
_(w, "Cannot preview while this TTS service is unavailable.");
|
|
8882
8897
|
return;
|
|
8883
8898
|
}
|
|
8884
|
-
if (u(k) && u(
|
|
8899
|
+
if (u(k) && u(E) === u(f)) {
|
|
8885
8900
|
Wn += 1, nn();
|
|
8886
8901
|
return;
|
|
8887
8902
|
}
|
|
@@ -8893,9 +8908,9 @@ function _m(e, t) {
|
|
|
8893
8908
|
_(w, "SSML preview is not supported in the Browser backend.");
|
|
8894
8909
|
return;
|
|
8895
8910
|
}
|
|
8896
|
-
u(k) || u(
|
|
8911
|
+
u(k) || u(E) || bt || kr ? nn() : (lo(), _(M, null));
|
|
8897
8912
|
const c = ++Wn;
|
|
8898
|
-
_(k, !0), _(
|
|
8913
|
+
_(k, !0), _(E, u(f), !0);
|
|
8899
8914
|
try {
|
|
8900
8915
|
if (_t(u(f)))
|
|
8901
8916
|
u(f) === "browser" ? await vd() : u(f) === "polly" ? (u(R) === "ssml" && _(M, "Some Polly neural voices reject certain SSML tags (for example emphasis). Use basic SSML tags if preview fails."), await ca("polly")) : (u(R) === "ssml" && _(M, "Google SSML preview preserves authored SSML, so word tracking is disabled."), await ca("google"));
|
|
@@ -8913,7 +8928,7 @@ function _m(e, t) {
|
|
|
8913
8928
|
} catch (p) {
|
|
8914
8929
|
c === Wn && _(w, p instanceof Error ? p.message : String(p), !0);
|
|
8915
8930
|
} finally {
|
|
8916
|
-
c === Wn && (lo(), _(k, !1), _(
|
|
8931
|
+
c === Wn && (lo(), _(k, !1), _(E, null));
|
|
8917
8932
|
}
|
|
8918
8933
|
}
|
|
8919
8934
|
async function da() {
|
|
@@ -9026,13 +9041,13 @@ function _m(e, t) {
|
|
|
9026
9041
|
nd(), ra(), oo();
|
|
9027
9042
|
}), si(() => {
|
|
9028
9043
|
if (u(zn))
|
|
9029
|
-
return
|
|
9044
|
+
return xr?.(), xr = $u(u(zn), {
|
|
9030
9045
|
initialFocus: u(Hn),
|
|
9031
9046
|
onEscape: Dn
|
|
9032
9047
|
}), queueMicrotask(() => {
|
|
9033
9048
|
u(Hn)?.focus?.();
|
|
9034
9049
|
}), () => {
|
|
9035
|
-
|
|
9050
|
+
xr?.(), xr = null;
|
|
9036
9051
|
};
|
|
9037
9052
|
}), si(() => {
|
|
9038
9053
|
u(tn), Dt(() => {
|
|
@@ -9051,7 +9066,7 @@ function _m(e, t) {
|
|
|
9051
9066
|
p.removeEventListener("availability", m), p.removeEventListener("apply-request", b), p.removeEventListener("preview-request", S);
|
|
9052
9067
|
};
|
|
9053
9068
|
}), Ih(() => {
|
|
9054
|
-
|
|
9069
|
+
xr?.(), xr = null, nn();
|
|
9055
9070
|
});
|
|
9056
9071
|
var gd = {
|
|
9057
9072
|
get toolkitCoordinator() {
|
|
@@ -9129,12 +9144,12 @@ function _m(e, t) {
|
|
|
9129
9144
|
});
|
|
9130
9145
|
var kd = A(ba, 2);
|
|
9131
9146
|
C(wo);
|
|
9132
|
-
var _a = A(wo, 2),
|
|
9147
|
+
var _a = A(wo, 2), xd = (c) => {
|
|
9133
9148
|
var p = am(), m = O(p), b = O(m, !0);
|
|
9134
9149
|
C(m), C(p), pe((S) => ve(b, S), [() => Ve().detail]), ee(c, p);
|
|
9135
|
-
},
|
|
9150
|
+
}, Ed = /* @__PURE__ */ Ke(() => Ve().detail);
|
|
9136
9151
|
Ie(_a, (c) => {
|
|
9137
|
-
u(
|
|
9152
|
+
u(Ed) && c(xd);
|
|
9138
9153
|
});
|
|
9139
9154
|
var wa = A(_a, 2), Ad = (c) => {
|
|
9140
9155
|
var p = um(), m = O(p), b = A(O(m), 2), S = O(b);
|
|
@@ -9295,9 +9310,9 @@ function _m(e, t) {
|
|
|
9295
9310
|
var ko = A(Kn, 2);
|
|
9296
9311
|
let ka;
|
|
9297
9312
|
C(Ta), C(So);
|
|
9298
|
-
var
|
|
9299
|
-
th(
|
|
9300
|
-
var
|
|
9313
|
+
var xo = A(So, 4);
|
|
9314
|
+
th(xo);
|
|
9315
|
+
var Eo = A(xo, 2), xa = O(Eo), Ea = A(xa, 2), Id = O(Ea), Pd = (c) => {
|
|
9301
9316
|
var p = Yt("SSML is unsupported in Browser preview.");
|
|
9302
9317
|
ee(c, p);
|
|
9303
9318
|
}, Rd = (c) => {
|
|
@@ -9312,8 +9327,8 @@ function _m(e, t) {
|
|
|
9312
9327
|
};
|
|
9313
9328
|
Ie(Id, (c) => {
|
|
9314
9329
|
u(f) === "browser" && u(R) === "ssml" ? c(Pd) : u(f) === "google" && u(R) === "ssml" ? c(Rd, 1) : u($d) ? c(Ld, 2) : c(Nd, -1);
|
|
9315
|
-
}), C(
|
|
9316
|
-
var Aa = A(
|
|
9330
|
+
}), C(Ea), C(Eo);
|
|
9331
|
+
var Aa = A(Eo, 2);
|
|
9317
9332
|
Cr(Aa, 21, () => dd(u(U)), Mr, (c, p) => {
|
|
9318
9333
|
var m = Ol();
|
|
9319
9334
|
let b;
|
|
@@ -9354,10 +9369,10 @@ function _m(e, t) {
|
|
|
9354
9369
|
C(on);
|
|
9355
9370
|
var Yn = A(on, 2), Dd = O(Yn, !0);
|
|
9356
9371
|
return C(Yn), C(Pa), C(co), jo(co, (c) => _(zn, c), () => u(zn)), C(qn), pe((c, p) => {
|
|
9357
|
-
ve(md, `Item header row reservation: ${u(id) ? "Enabled" : "Disabled"}`), ve(bd, u(pt) ? "Highlighting each part of a formula as it is read, falling back to the whole formula when alignment is uncertain." : "Highlighting each formula as a single block instead of breaking it into parts."), Sa = $r(Kn, 1, "btn btn-xs join-item", null, Sa, { "btn-active": u(R) === "plain" }), dr(Kn, "aria-pressed", u(R) === "plain"), ka = $r(ko, 1, "btn btn-xs join-item", null, ka, { "btn-active": u(R) === "ssml" }), dr(ko, "aria-pressed", u(R) === "ssml"), on.disabled = c, ve(Fd, u(k) && u(
|
|
9372
|
+
ve(md, `Item header row reservation: ${u(id) ? "Enabled" : "Disabled"}`), ve(bd, u(pt) ? "Highlighting each part of a formula as it is read, falling back to the whole formula when alignment is uncertain." : "Highlighting each formula as a single block instead of breaking it into parts."), Sa = $r(Kn, 1, "btn btn-xs join-item", null, Sa, { "btn-active": u(R) === "plain" }), dr(Kn, "aria-pressed", u(R) === "plain"), ka = $r(ko, 1, "btn btn-xs join-item", null, ka, { "btn-active": u(R) === "ssml" }), dr(ko, "aria-pressed", u(R) === "ssml"), on.disabled = c, ve(Fd, u(k) && u(E) === u(f) ? "Stop preview" : "Preview voice"), Yn.disabled = p, ve(Dd, u(T) ? "Applying..." : "Apply");
|
|
9358
9373
|
}, [() => !Ve().available || u(T) || !cd(), () => u(T) || !Ve().available]), we("click", fa, Dn), Xe(Gn, () => u(ft), (c) => _(ft, c)), Or(yo, () => u(ht), (c) => _(ht, c)), we("click", yd, Vu), Qh(bo, () => u(pt), (c) => _(pt, c)), we("click", kd, () => {
|
|
9359
9374
|
oo();
|
|
9360
|
-
}), we("click", Kn, () => aa("plain")), we("click", ko, () => aa("ssml")), Or(
|
|
9375
|
+
}), we("click", Kn, () => aa("plain")), we("click", ko, () => aa("ssml")), Or(xo, () => u(U), (c) => _(U, c)), we("click", xa, Un), we("click", Ra, Dn), we("click", on, () => {
|
|
9361
9376
|
ua();
|
|
9362
9377
|
}), we("click", Yn, () => {
|
|
9363
9378
|
da();
|