@pie-players/pie-tool-line-reader 0.3.59 → 0.3.61

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.
@@ -34,7 +34,7 @@ function Xi() {
34
34
  reject: t
35
35
  };
36
36
  }
37
- var gd = 1 << 24, te = 1024, re = 2048, et = 4096, Sr = 8192, ma = 16384, wr = 32768, Zr = 1 << 25, kr = 65536, vd = 1 << 17, md = 1 << 18, bt = 1 << 19, ya = 1 << 20, Nt = 65536, ei = 1 << 21, ba = 1 << 22, cn = 1 << 23, Ot = /* @__PURE__ */ Symbol("$state"), Ji = /* @__PURE__ */ Symbol("legacy props"), Ta = /* @__PURE__ */ Symbol(""), _a = /* @__PURE__ */ Symbol("proxy path"), Gn = /* @__PURE__ */ Symbol("attributes"), Yn = /* @__PURE__ */ Symbol("class"), Kn = /* @__PURE__ */ Symbol("style"), Jt = /* @__PURE__ */ Symbol("text");
37
+ var gd = 1 << 24, te = 1024, re = 2048, et = 4096, Sr = 8192, ma = 16384, wr = 32768, Zr = 1 << 25, kr = 65536, vd = 1 << 17, md = 1 << 18, yt = 1 << 19, ba = 1 << 20, Nt = 65536, ei = 1 << 21, ya = 1 << 22, cn = 1 << 23, Ot = /* @__PURE__ */ Symbol("$state"), Ji = /* @__PURE__ */ Symbol("legacy props"), Ta = /* @__PURE__ */ Symbol(""), _a = /* @__PURE__ */ Symbol("proxy path"), Gn = /* @__PURE__ */ Symbol("attributes"), Yn = /* @__PURE__ */ Symbol("class"), Kn = /* @__PURE__ */ Symbol("style"), Jt = /* @__PURE__ */ Symbol("text");
38
38
  var wn = new class extends Error {
39
39
  constructor(...t) {
40
40
  super(...t), g(this, "name", "StaleReactionError"), g(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
@@ -55,10 +55,10 @@ function Ea() {
55
55
  function Aa(e) {
56
56
  throw new Error("https://svelte.dev/e/effect_orphan");
57
57
  }
58
- function Ma() {
58
+ function Ca() {
59
59
  throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
60
60
  }
61
- function Ca() {
61
+ function Ma() {
62
62
  throw new Error("https://svelte.dev/e/hydration_failed");
63
63
  }
64
64
  function Oa(e) {
@@ -169,7 +169,7 @@ function ro(e) {
169
169
  var t = L, n = t.e;
170
170
  if (n !== null) {
171
171
  t.e = null;
172
- for (var r of n) Co(r);
172
+ for (var r of n) Mo(r);
173
173
  }
174
174
  return e !== void 0 && (t.x = e), t.i = !0, L = t.p, e ?? {};
175
175
  }
@@ -524,7 +524,7 @@ function Ga() {
524
524
  return f ? f[0] !== h[0] || f[1] !== h[1] : !0;
525
525
  }).map(([u]) => u);
526
526
  if (a.length > 0)
527
- for (const u of d(Qn, this)) (u.f & 155648) === 0 && Mr(u, a, o) && ((u.f & 4194320) !== 0 ? (N(u, re), c.schedule(u)) : d(Je, c).add(u));
527
+ for (const u of d(Qn, this)) (u.f & 155648) === 0 && Cr(u, a, o) && ((u.f & 4194320) !== 0 ? (N(u, re), c.schedule(u)) : d(Je, c).add(u));
528
528
  if (d(Z, c).length > 0 && !d(Et, c)) {
529
529
  c.apply();
530
530
  for (var l of d(Z, c)) k(W, c, fo).call(c, l, [], []);
@@ -561,7 +561,7 @@ function Ya() {
561
561
  var t;
562
562
  }
563
563
  try {
564
- Ma();
564
+ Ca();
565
565
  } catch (n) {
566
566
  Pe(n, Jn);
567
567
  }
@@ -595,20 +595,20 @@ function po(e, t, n, r) {
595
595
  if (!n.has(e) && (n.add(e), e.reactions !== null))
596
596
  for (const i of e.reactions) {
597
597
  const o = i.f;
598
- (o & 2) !== 0 ? po(i, t, n, r) : (o & 4194320) !== 0 && (o & 2048) === 0 && Mr(i, t, r) && (N(i, re), Cr(i));
598
+ (o & 2) !== 0 ? po(i, t, n, r) : (o & 4194320) !== 0 && (o & 2048) === 0 && Cr(i, t, r) && (N(i, re), Mr(i));
599
599
  }
600
600
  }
601
- function Mr(e, t, n) {
601
+ function Cr(e, t, n) {
602
602
  const r = n.get(e);
603
603
  if (r !== void 0) return r;
604
604
  if (e.deps !== null) for (const i of e.deps) {
605
605
  if (sn.call(t, i)) return !0;
606
- if ((i.f & 2) !== 0 && Mr(i, t, n))
606
+ if ((i.f & 2) !== 0 && Cr(i, t, n))
607
607
  return n.set(i, !0), !0;
608
608
  }
609
609
  return n.set(e, !1), !1;
610
610
  }
611
- function Cr(e) {
611
+ function Mr(e) {
612
612
  x.schedule(e);
613
613
  }
614
614
  function go(e, t) {
@@ -633,7 +633,7 @@ function Ka(e) {
633
633
  })));
634
634
  };
635
635
  }
636
- var Xa = kr | bt;
636
+ var Xa = kr | yt;
637
637
  function Ja(e, t, n, r) {
638
638
  new Qa(e, t, n, r);
639
639
  }
@@ -666,8 +666,8 @@ var ae = /* @__PURE__ */ new WeakMap(), er = /* @__PURE__ */ new WeakMap(), de =
666
666
  return !!d(de, this).pending;
667
667
  }
668
668
  update_pending_count(e, t) {
669
- k(j, this, yo).call(this, e, t), T(st, this, d(st, this) + e), !(!d(Ne, this) || d(Yt, this)) && (T(Yt, this, !0), pt(() => {
670
- T(Yt, this, !1), d(Ne, this) && yn(d(Ne, this), d(st, this));
669
+ k(j, this, bo).call(this, e, t), T(st, this, d(st, this) + e), !(!d(Ne, this) || d(Yt, this)) && (T(Yt, this, !0), pt(() => {
670
+ T(Yt, this, !1), d(Ne, this) && bn(d(Ne, this), d(st, this));
671
671
  }));
672
672
  }
673
673
  get_effect_pending() {
@@ -731,11 +731,11 @@ function rr(e) {
731
731
  ge(t), ne(n), ft(r);
732
732
  }
733
733
  }
734
- function yo(e, t) {
734
+ function bo(e, t) {
735
735
  if (!this.has_pending_snippet()) {
736
736
  if (this.parent) {
737
737
  var n;
738
- k(j, n = this.parent, yo).call(n, e, t);
738
+ k(j, n = this.parent, bo).call(n, e, t);
739
739
  }
740
740
  return;
741
741
  }
@@ -805,7 +805,7 @@ function nl(e, t, n, r) {
805
805
  vn();
806
806
  }
807
807
  }
808
- var u = bo();
808
+ var u = yo();
809
809
  if (n.length === 0) {
810
810
  l.then(() => c(t.map(i))).finally(u);
811
811
  return;
@@ -827,7 +827,7 @@ function rl() {
827
827
  function vn(e = !0) {
828
828
  ge(null), ne(null), ft(null), e && x?.deactivate();
829
829
  }
830
- function bo() {
830
+ function yo() {
831
831
  var e = S, t = e.b, n = x, r = !!t?.is_rendered();
832
832
  return t?.update_pending_count(1, n), n.increment(r, e), () => {
833
833
  t?.update_pending_count(-1, n), n.decrement(r, e);
@@ -836,7 +836,7 @@ function bo() {
836
836
  // @__NO_SIDE_EFFECTS__
837
837
  function Lt(e) {
838
838
  var t = 2 | re;
839
- return S !== null && (S.f |= bt), {
839
+ return S !== null && (S.f |= yt), {
840
840
  ctx: L,
841
841
  deps: null,
842
842
  effects: null,
@@ -857,7 +857,7 @@ function il(e, t, n) {
857
857
  let r = S;
858
858
  r === null && ka();
859
859
  var i = void 0, o = Ht(B), s = !A, a = /* @__PURE__ */ new Set();
860
- return bl(() => {
860
+ return yl(() => {
861
861
  var l = S, c = Xi();
862
862
  i = c.promise;
863
863
  try {
@@ -869,13 +869,13 @@ function il(e, t, n) {
869
869
  }
870
870
  var u = x;
871
871
  if (s) {
872
- if ((l.f & 32768) !== 0) var h = bo();
872
+ if ((l.f & 32768) !== 0) var h = yo();
873
873
  if (r.b?.is_rendered()) u.async_deriveds.get(l)?.reject(Kt);
874
874
  else for (const p of a.values()) p.reject(Kt);
875
875
  a.add(c), u.async_deriveds.set(l, c);
876
876
  }
877
877
  const f = (p, m = void 0) => {
878
- h?.(), a.delete(c), m !== Kt && (u.activate(), m ? (o.f |= cn, yn(o, m)) : ((o.f & 8388608) !== 0 && (o.f ^= cn), yn(o, p)), u.deactivate());
878
+ h?.(), a.delete(c), m !== Kt && (u.activate(), m ? (o.f |= cn, bn(o, m)) : ((o.f & 8388608) !== 0 && (o.f ^= cn), bn(o, p)), u.deactivate());
879
879
  };
880
880
  c.promise.then(f, (p) => f(null, p || "unknown"));
881
881
  }), vl(() => {
@@ -965,9 +965,9 @@ function al(e, t = !1, n = !0) {
965
965
  function $(e, t, n = !1) {
966
966
  A !== null && (!se || (A.f & 131072) !== 0) && zt() && (A.f & 4325394) !== 0 && (le === null || !le.has(e)) && Ra();
967
967
  let r = n ? fe(t) : t;
968
- return yn(e, r, hn);
968
+ return bn(e, r, hn);
969
969
  }
970
- function yn(e, t, n = null) {
970
+ function bn(e, t, n = null) {
971
971
  if (!e.equals(t)) {
972
972
  Ge.set(e, ke ? t : e.v);
973
973
  var r = tt.ensure();
@@ -1009,7 +1009,7 @@ function ko(e, t, n) {
1009
1009
  q?.delete(u), (l & 65536) === 0 && (l & 512 && (S === null || (S.f & 2097152) === 0) && (a.f |= Nt), ko(u, et, n));
1010
1010
  } else if (c) {
1011
1011
  var h = a;
1012
- (l & 16) !== 0 && he !== null && he.add(h), n !== null ? n.push(h) : Cr(h);
1012
+ (l & 16) !== 0 && he !== null && he.add(h), n !== null ? n.push(h) : Mr(h);
1013
1013
  }
1014
1014
  }
1015
1015
  }
@@ -1041,8 +1041,8 @@ function fe(e) {
1041
1041
  (!("value" in p) || p.configurable === !1 || p.enumerable === !1 || p.writable === !1) && Ia();
1042
1042
  var m = n.get(f);
1043
1043
  return m === void 0 ? a(() => {
1044
- var y = /* @__PURE__ */ z(p.value, o);
1045
- return n.set(f, y), y;
1044
+ var b = /* @__PURE__ */ z(p.value, o);
1045
+ return n.set(f, b), b;
1046
1046
  }) : $(m, p.value, !0), !0;
1047
1047
  },
1048
1048
  deleteProperty(h, f) {
@@ -1058,13 +1058,13 @@ function fe(e) {
1058
1058
  },
1059
1059
  get(h, f, p) {
1060
1060
  if (f === Ot) return e;
1061
- var m = n.get(f), y = f in h;
1062
- if (m === void 0 && (!y || je(h, f)?.writable) && (m = a(() => {
1063
- var E = /* @__PURE__ */ z(fe(y ? h[f] : B), o);
1061
+ var m = n.get(f), b = f in h;
1062
+ if (m === void 0 && (!b || je(h, f)?.writable) && (m = a(() => {
1063
+ var E = /* @__PURE__ */ z(fe(b ? h[f] : B), o);
1064
1064
  return E;
1065
1065
  }), n.set(f, m)), m !== void 0) {
1066
- var b = v(m);
1067
- return b === B ? void 0 : b;
1066
+ var y = v(m);
1067
+ return y === B ? void 0 : y;
1068
1068
  }
1069
1069
  return Reflect.get(h, f, p);
1070
1070
  },
@@ -1074,11 +1074,11 @@ function fe(e) {
1074
1074
  var m = n.get(f);
1075
1075
  m && (p.value = v(m));
1076
1076
  } else if (p === void 0) {
1077
- var y = n.get(f), b = y?.v;
1078
- if (y !== void 0 && b !== B) return {
1077
+ var b = n.get(f), y = b?.v;
1078
+ if (b !== void 0 && y !== B) return {
1079
1079
  enumerable: !0,
1080
1080
  configurable: !0,
1081
- value: b,
1081
+ value: y,
1082
1082
  writable: !0
1083
1083
  };
1084
1084
  }
@@ -1088,25 +1088,25 @@ function fe(e) {
1088
1088
  if (f === Ot) return !0;
1089
1089
  var p = n.get(f), m = p !== void 0 && p.v !== B || Reflect.has(h, f);
1090
1090
  return (p !== void 0 || S !== null && (!m || je(h, f)?.writable)) && (p === void 0 && (p = a(() => {
1091
- var y = /* @__PURE__ */ z(m ? fe(h[f]) : B, o);
1092
- return y;
1091
+ var b = /* @__PURE__ */ z(m ? fe(h[f]) : B, o);
1092
+ return b;
1093
1093
  }), n.set(f, p)), v(p) === B) ? !1 : m;
1094
1094
  },
1095
1095
  set(h, f, p, m) {
1096
- var y = n.get(f), b = f in h;
1097
- if (r && f === "length") for (var E = p; E < y.v; E += 1) {
1096
+ var b = n.get(f), y = f in h;
1097
+ if (r && f === "length") for (var E = p; E < b.v; E += 1) {
1098
1098
  var R = n.get(E + "");
1099
1099
  R !== void 0 ? $(R, B) : E in h && (R = a(() => /* @__PURE__ */ z(B, o)), n.set(E + "", R));
1100
1100
  }
1101
- if (y === void 0)
1102
- (!b || je(h, f)?.writable) && (y = a(() => /* @__PURE__ */ z(void 0, o)), $(y, fe(p)), n.set(f, y));
1101
+ if (b === void 0)
1102
+ (!y || je(h, f)?.writable) && (b = a(() => /* @__PURE__ */ z(void 0, o)), $(b, fe(p)), n.set(f, b));
1103
1103
  else {
1104
- b = y.v !== B;
1104
+ y = b.v !== B;
1105
1105
  var F = a(() => fe(p));
1106
- $(y, F);
1106
+ $(b, F);
1107
1107
  }
1108
- var M = Reflect.getOwnPropertyDescriptor(h, f);
1109
- if (M?.set && M.set.call(m, p), !b) {
1108
+ var C = Reflect.getOwnPropertyDescriptor(h, f);
1109
+ if (C?.set && C.set.call(m, p), !y) {
1110
1110
  if (r && typeof f == "string") {
1111
1111
  var U = n.get("length"), H = Number(f);
1112
1112
  Number.isInteger(H) && H >= U.v && $(U, H + 1);
@@ -1117,9 +1117,9 @@ function fe(e) {
1117
1117
  },
1118
1118
  ownKeys(h) {
1119
1119
  v(i);
1120
- var f = Reflect.ownKeys(h).filter((y) => {
1121
- var b = n.get(y);
1122
- return b === void 0 || b.v !== B;
1120
+ var f = Reflect.ownKeys(h).filter((b) => {
1121
+ var y = n.get(b);
1122
+ return y === void 0 || y.v !== B;
1123
1123
  });
1124
1124
  for (var [p, m] of n) m.v !== B && !(p in h) && f.push(p);
1125
1125
  return f;
@@ -1204,7 +1204,7 @@ function Rr(e) {
1204
1204
  for (; t !== null && t.nodeType === 3; )
1205
1205
  t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
1206
1206
  }
1207
- function Mo(e) {
1207
+ function Co(e) {
1208
1208
  var t = A, n = S;
1209
1209
  ne(null), ge(null);
1210
1210
  try {
@@ -1263,27 +1263,27 @@ function vl(e) {
1263
1263
  const t = ve(8, null);
1264
1264
  return N(t, te), t.teardown = e, t;
1265
1265
  }
1266
- function Mt(e) {
1266
+ function Ct(e) {
1267
1267
  pl("$effect");
1268
1268
  var t = S.f;
1269
1269
  if (!A && (t & 32) !== 0 && L !== null && !L.i) {
1270
1270
  var n = L;
1271
1271
  (n.e ?? (n.e = [])).push(e);
1272
- } else return Co(e);
1272
+ } else return Mo(e);
1273
1273
  }
1274
- function Co(e) {
1275
- return ve(4 | ya, e);
1274
+ function Mo(e) {
1275
+ return ve(4 | ba, e);
1276
1276
  }
1277
1277
  function ml(e) {
1278
1278
  tt.ensure();
1279
- const t = ve(64 | bt, e);
1279
+ const t = ve(64 | yt, e);
1280
1280
  return () => {
1281
1281
  Y(t);
1282
1282
  };
1283
1283
  }
1284
- function yl(e) {
1284
+ function bl(e) {
1285
1285
  tt.ensure();
1286
- const t = ve(64 | bt, e);
1286
+ const t = ve(64 | yt, e);
1287
1287
  return (n = {}) => new Promise((r) => {
1288
1288
  n.outro ? Bt(t, () => {
1289
1289
  Y(t), r(void 0);
@@ -1293,8 +1293,8 @@ function yl(e) {
1293
1293
  function Oo(e) {
1294
1294
  return ve(4, e);
1295
1295
  }
1296
- function bl(e) {
1297
- return ve(ba | bt, e);
1296
+ function yl(e) {
1297
+ return ve(ya | yt, e);
1298
1298
  }
1299
1299
  function Pr(e, t = 0) {
1300
1300
  return ve(8 | t, e);
@@ -1309,7 +1309,7 @@ function Io(e, t = 0) {
1309
1309
  return n;
1310
1310
  }
1311
1311
  function we(e) {
1312
- return ve(32 | bt, e);
1312
+ return ve(32 | yt, e);
1313
1313
  }
1314
1314
  function $o(e) {
1315
1315
  var t = e.teardown;
@@ -1327,7 +1327,7 @@ function Nr(e, t = !1) {
1327
1327
  var n = e.first;
1328
1328
  for (e.first = e.last = null; n !== null; ) {
1329
1329
  const i = n.ac;
1330
- i !== null && Mo(() => {
1330
+ i !== null && Co(() => {
1331
1331
  i.abort(wn);
1332
1332
  });
1333
1333
  var r = n.next;
@@ -1452,12 +1452,12 @@ function Bo(e, t, n = !0) {
1452
1452
  if (r !== null && !(!_e && le !== null && le.has(e)))
1453
1453
  for (var i = 0; i < r.length; i++) {
1454
1454
  var o = r[i];
1455
- (o.f & 2) !== 0 ? Bo(o, t, !1) : t === o && (n ? N(o, re) : (o.f & 1024) !== 0 && N(o, et), Cr(o));
1455
+ (o.f & 2) !== 0 ? Bo(o, t, !1) : t === o && (n ? N(o, re) : (o.f & 1024) !== 0 && N(o, et), Mr(o));
1456
1456
  }
1457
1457
  }
1458
1458
  function Do(e) {
1459
1459
  var t = G, n = K, r = Q, i = A, o = le, s = L, a = se, l = Ye, c = e.f;
1460
- G = null, K = 0, Q = null, A = (c & 96) === 0 ? e : null, le = null, ft(e.ctx), se = !1, Ye = ++De, e.ac !== null && (Mo(() => {
1460
+ G = null, K = 0, Q = null, A = (c & 96) === 0 ? e : null, le = null, ft(e.ctx), se = !1, Ye = ++De, e.ac !== null && (Co(() => {
1461
1461
  e.ac.abort(wn);
1462
1462
  }), e.ac = null);
1463
1463
  try {
@@ -1471,19 +1471,19 @@ function Do(e) {
1471
1471
  for (f.length = K + G.length, m = 0; m < G.length; m++) f[K + m] = G[m];
1472
1472
  else e.deps = f = G;
1473
1473
  if (Lr() && (e.f & 512) !== 0) for (m = K; m < f.length; m++) {
1474
- var y;
1475
- ((y = f[m]).reactions ?? (y.reactions = [])).push(e);
1474
+ var b;
1475
+ ((b = f[m]).reactions ?? (b.reactions = [])).push(e);
1476
1476
  }
1477
1477
  } else !p && f !== null && K < f.length && (Pt(e, K), f.length = K);
1478
1478
  if (zt() && Q !== null && !se && f !== null && (e.f & 6146) === 0) for (m = 0; m < Q.length; m++) Bo(Q[m], e);
1479
1479
  if (i !== null && i !== e) {
1480
- if (De++, i.deps !== null) for (let b = 0; b < n; b += 1) i.deps[b].rv = De;
1481
- if (t !== null) for (const b of t) b.rv = De;
1480
+ if (De++, i.deps !== null) for (let y = 0; y < n; y += 1) i.deps[y].rv = De;
1481
+ if (t !== null) for (const y of t) y.rv = De;
1482
1482
  Q !== null && (r === null ? r = Q : r.push(...Q));
1483
1483
  }
1484
1484
  return (e.f & 8388608) !== 0 && (e.f ^= cn), h;
1485
- } catch (b) {
1486
- return oo(b);
1485
+ } catch (y) {
1486
+ return oo(y);
1487
1487
  } finally {
1488
1488
  e.f ^= ei, G = t, K = n, Q = r, A = i, le = o, ft(s), se = a, Ye = l;
1489
1489
  }
@@ -1616,15 +1616,15 @@ function vi(e) {
1616
1616
  try {
1617
1617
  var m = o[ct]?.[r];
1618
1618
  m != null && (!o.disabled || e.target === o) && m.call(o, e);
1619
- } catch (y) {
1620
- f ? p.push(y) : f = y;
1619
+ } catch (b) {
1620
+ f ? p.push(b) : f = b;
1621
1621
  }
1622
1622
  if (e.cancelBubble) break;
1623
1623
  s++, o = s < i.length ? i[s] : null;
1624
1624
  }
1625
1625
  if (f) {
1626
- for (let y of p) queueMicrotask(() => {
1627
- throw y;
1626
+ for (let b of p) queueMicrotask(() => {
1627
+ throw b;
1628
1628
  });
1629
1629
  throw f;
1630
1630
  }
@@ -1637,7 +1637,7 @@ var El = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.t
1637
1637
  function Al(e) {
1638
1638
  return El?.createHTML(e) ?? e;
1639
1639
  }
1640
- function Ml(e) {
1640
+ function Cl(e) {
1641
1641
  var t = $r("template");
1642
1642
  return t.innerHTML = Al(e.replaceAll("<!>", "<!---->")), t.content;
1643
1643
  }
@@ -1656,7 +1656,7 @@ function qo(e, t) {
1656
1656
  return () => {
1657
1657
  if (I)
1658
1658
  return ut(O, null), O;
1659
- i === void 0 && (i = Ml(o ? e : "<!>" + e), n || (i = /* @__PURE__ */ vt(i)));
1659
+ i === void 0 && (i = Cl(o ? e : "<!>" + e), n || (i = /* @__PURE__ */ vt(i)));
1660
1660
  var s = r || xo ? document.importNode(i, !0) : i.cloneNode(!0);
1661
1661
  if (n) {
1662
1662
  var a = /* @__PURE__ */ vt(s), l = s.lastChild;
@@ -1665,7 +1665,7 @@ function qo(e, t) {
1665
1665
  return s;
1666
1666
  };
1667
1667
  }
1668
- function Cl() {
1668
+ function Ml() {
1669
1669
  if (I)
1670
1670
  return ut(O, null), O;
1671
1671
  var e = document.createDocumentFragment(), t = document.createComment(""), n = Se();
@@ -1708,7 +1708,7 @@ var Ol = [
1708
1708
  "defer",
1709
1709
  "disablepictureinpicture",
1710
1710
  "disableremoteplayback"
1711
- ], bd = [
1711
+ ], yd = [
1712
1712
  ...Ol,
1713
1713
  "formNoValidate",
1714
1714
  "isMap",
@@ -1772,7 +1772,7 @@ function Pl(e, t) {
1772
1772
  } catch (s) {
1773
1773
  if (s instanceof Error && s.message.split(`
1774
1774
  `).some((a) => a.startsWith("https://svelte.dev/e/"))) throw s;
1775
- return s !== dt && console.warn("Failed to hydrate: ", s), t.recover === !1 && Ca(), ir(), dl(n), lt(!1), Uo(e, t);
1775
+ return s !== dt && console.warn("Failed to hydrate: ", s), t.recover === !1 && Ma(), ir(), dl(n), lt(!1), Uo(e, t);
1776
1776
  } finally {
1777
1777
  lt(r), ce(i);
1778
1778
  }
@@ -1780,7 +1780,7 @@ function Pl(e, t) {
1780
1780
  var Xt = /* @__PURE__ */ new Map();
1781
1781
  function Go(e, { target: t, anchor: n, props: r = {}, events: i, context: o, intro: s = !0, transformError: a }) {
1782
1782
  ir();
1783
- var l = void 0, c = yl(() => {
1783
+ var l = void 0, c = bl(() => {
1784
1784
  var u = n ?? t.appendChild(Se());
1785
1785
  Ja(u, { pending: () => {
1786
1786
  } }, (p) => {
@@ -1792,23 +1792,23 @@ function Go(e, { target: t, anchor: n, props: r = {}, events: i, context: o, int
1792
1792
  }, a);
1793
1793
  var h = /* @__PURE__ */ new Set(), f = (p) => {
1794
1794
  for (var m = 0; m < p.length; m++) {
1795
- var y = p[m];
1796
- if (!h.has(y)) {
1797
- h.add(y);
1798
- var b = $l(y);
1795
+ var b = p[m];
1796
+ if (!h.has(b)) {
1797
+ h.add(b);
1798
+ var y = $l(b);
1799
1799
  for (const F of [t, document]) {
1800
1800
  var E = Xt.get(F);
1801
1801
  E === void 0 && (E = /* @__PURE__ */ new Map(), Xt.set(F, E));
1802
- var R = E.get(y);
1803
- R === void 0 ? (F.addEventListener(y, vi, { passive: b }), E.set(y, 1)) : E.set(y, R + 1);
1802
+ var R = E.get(b);
1803
+ R === void 0 ? (F.addEventListener(b, vi, { passive: y }), E.set(b, 1)) : E.set(b, R + 1);
1804
1804
  }
1805
1805
  }
1806
1806
  }
1807
1807
  };
1808
1808
  return f(ha(Vo)), or.add(f), () => {
1809
- for (var p of h) for (const b of [t, document]) {
1810
- var m = Xt.get(b), y = m.get(p);
1811
- --y == 0 ? (b.removeEventListener(p, vi), m.delete(p), m.size === 0 && Xt.delete(b)) : m.set(p, y);
1809
+ for (var p of h) for (const y of [t, document]) {
1810
+ var m = Xt.get(y), b = m.get(p);
1811
+ --b == 0 ? (y.removeEventListener(p, vi), m.delete(p), m.size === 0 && Xt.delete(y)) : m.set(p, b);
1812
1812
  }
1813
1813
  or.delete(f), u !== n && u.parentNode?.removeChild(u);
1814
1814
  };
@@ -1820,26 +1820,26 @@ function Nl(e, t) {
1820
1820
  const n = sr.get(e);
1821
1821
  return n ? (sr.delete(e), n(t)) : Promise.resolve();
1822
1822
  }
1823
- var be = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakMap(), Nn = /* @__PURE__ */ new WeakMap(), Wn = /* @__PURE__ */ new WeakMap(), yi = /* @__PURE__ */ new WeakMap(), Wl = class {
1823
+ var ye = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakMap(), Nn = /* @__PURE__ */ new WeakMap(), Wn = /* @__PURE__ */ new WeakMap(), bi = /* @__PURE__ */ new WeakMap(), Wl = class {
1824
1824
  constructor(e, t = !0) {
1825
- g(this, "anchor", void 0), _(this, be, /* @__PURE__ */ new Map()), _(this, Ie, /* @__PURE__ */ new Map()), _(this, ie, /* @__PURE__ */ new Map()), _(this, wt, /* @__PURE__ */ new Set()), _(this, Nn, !0), _(this, Wn, (n) => {
1826
- if (d(be, this).has(n)) {
1827
- var r = d(be, this).get(n), i = d(Ie, this).get(r);
1825
+ g(this, "anchor", void 0), _(this, ye, /* @__PURE__ */ new Map()), _(this, Ie, /* @__PURE__ */ new Map()), _(this, ie, /* @__PURE__ */ new Map()), _(this, wt, /* @__PURE__ */ new Set()), _(this, Nn, !0), _(this, Wn, (n) => {
1826
+ if (d(ye, this).has(n)) {
1827
+ var r = d(ye, this).get(n), i = d(Ie, this).get(r);
1828
1828
  if (i)
1829
1829
  hi(i), d(wt, this).delete(r);
1830
1830
  else {
1831
1831
  var o = d(ie, this).get(r);
1832
1832
  o && (hi(o.effect), d(Ie, this).set(r, o.effect), d(ie, this).delete(r), o.fragment.lastChild.remove(), this.anchor.before(o.fragment), i = o.effect);
1833
1833
  }
1834
- for (const [s, a] of d(be, this)) {
1835
- if (d(be, this).delete(s), s === n) break;
1834
+ for (const [s, a] of d(ye, this)) {
1835
+ if (d(ye, this).delete(s), s === n) break;
1836
1836
  const l = d(ie, this).get(a);
1837
1837
  l && (Y(l.effect), d(ie, this).delete(a));
1838
1838
  }
1839
1839
  for (const [s, a] of d(Ie, this)) {
1840
1840
  if (s === r || d(wt, this).has(s)) continue;
1841
1841
  const l = () => {
1842
- if (Array.from(d(be, this).values()).includes(s)) {
1842
+ if (Array.from(d(ye, this).values()).includes(s)) {
1843
1843
  var c = document.createDocumentFragment();
1844
1844
  No(a, c), c.append(Se()), d(ie, this).set(s, {
1845
1845
  effect: a,
@@ -1851,9 +1851,9 @@ var be = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), ie =
1851
1851
  d(Nn, this) || !i ? (d(wt, this).add(s), Bt(a, l, !1)) : l();
1852
1852
  }
1853
1853
  }
1854
- }), _(this, yi, (n) => {
1855
- d(be, this).delete(n);
1856
- const r = Array.from(d(be, this).values());
1854
+ }), _(this, bi, (n) => {
1855
+ d(ye, this).delete(n);
1856
+ const r = Array.from(d(ye, this).values());
1857
1857
  for (const [i, o] of d(ie, this)) r.includes(i) || (Y(o.effect), d(ie, this).delete(i));
1858
1858
  }), this.anchor = e, T(Nn, this, t);
1859
1859
  }
@@ -1866,16 +1866,16 @@ var be = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), ie =
1866
1866
  fragment: i
1867
1867
  });
1868
1868
  } else d(Ie, this).set(e, we(() => t(this.anchor)));
1869
- if (d(be, this).set(n, e), r) {
1869
+ if (d(ye, this).set(n, e), r) {
1870
1870
  for (const [s, a] of d(Ie, this)) s === e ? n.unskip_effect(a) : n.skip_effect(a);
1871
1871
  for (const [s, a] of d(ie, this)) s === e ? n.unskip_effect(a.effect) : n.skip_effect(a.effect);
1872
- n.oncommit(d(Wn, this)), n.ondiscard(d(yi, this));
1872
+ n.oncommit(d(Wn, this)), n.ondiscard(d(bi, this));
1873
1873
  } else
1874
1874
  I && (this.anchor = O), d(Wn, this).call(this, n);
1875
1875
  }
1876
1876
  };
1877
1877
  function zl(e) {
1878
- L === null && wa("onMount"), Wt && L.l !== null ? Hl(L).m.push(e) : Mt(() => {
1878
+ L === null && wa("onMount"), Wt && L.l !== null ? Hl(L).m.push(e) : Ct(() => {
1879
1879
  const t = xn(e);
1880
1880
  if (typeof t == "function") return t;
1881
1881
  });
@@ -1888,7 +1888,7 @@ function Hl(e) {
1888
1888
  m: []
1889
1889
  });
1890
1890
  }
1891
- function bi(e, t, n = !1) {
1891
+ function yi(e, t, n = !1) {
1892
1892
  var r;
1893
1893
  I && (r = O, xr());
1894
1894
  var i = new Wl(e), o = n ? kr : 0;
@@ -1952,12 +1952,12 @@ function Fl(e, t) {
1952
1952
  var o = !1, s = 0, a = !1, l = [];
1953
1953
  r && l.push(...Object.keys(r).map(zn)), i && l.push(...Object.keys(i).map(zn));
1954
1954
  var c = 0, u = -1;
1955
- const y = e.length;
1956
- for (var h = 0; h < y; h++) {
1955
+ const b = e.length;
1956
+ for (var h = 0; h < b; h++) {
1957
1957
  var f = e[h];
1958
1958
  if (a ? f === "/" && e[h - 1] === "*" && (a = !1) : o ? o === f && (o = !1) : f === "/" && e[h + 1] === "*" ? a = !0 : f === '"' || f === "'" ? o = f : f === "(" ? s++ : f === ")" && s--, !a && o === !1 && s === 0) {
1959
1959
  if (f === ":" && u === -1) u = h;
1960
- else if (f === ";" || h === y - 1) {
1960
+ else if (f === ";" || h === b - 1) {
1961
1961
  if (u !== -1) {
1962
1962
  var p = zn(e.substring(c, u).trim());
1963
1963
  if (!l.includes(p)) {
@@ -2028,21 +2028,21 @@ function Kl(e) {
2028
2028
  }
2029
2029
  return n;
2030
2030
  }
2031
- var Yo, at = /* @__PURE__ */ new WeakMap(), bn = /* @__PURE__ */ new WeakMap(), Bn = /* @__PURE__ */ new WeakMap(), wi = /* @__PURE__ */ new WeakSet(), Ko = class {
2031
+ var Yo, at = /* @__PURE__ */ new WeakMap(), yn = /* @__PURE__ */ new WeakMap(), Bn = /* @__PURE__ */ new WeakMap(), wi = /* @__PURE__ */ new WeakSet(), Ko = class {
2032
2032
  constructor(e) {
2033
- Ar(this, wi), _(this, at, /* @__PURE__ */ new WeakMap()), _(this, bn, void 0), _(this, Bn, void 0), T(Bn, this, e);
2033
+ Ar(this, wi), _(this, at, /* @__PURE__ */ new WeakMap()), _(this, yn, void 0), _(this, Bn, void 0), T(Bn, this, e);
2034
2034
  }
2035
2035
  observe(e, t) {
2036
2036
  var n = d(at, this).get(e) || /* @__PURE__ */ new Set();
2037
2037
  return n.add(t), d(at, this).set(e, n), k(wi, this, Xl).call(this).observe(e, d(Bn, this)), () => {
2038
2038
  var r = d(at, this).get(e);
2039
- r.delete(t), r.size === 0 && (d(at, this).delete(e), d(bn, this).unobserve(e));
2039
+ r.delete(t), r.size === 0 && (d(at, this).delete(e), d(yn, this).unobserve(e));
2040
2040
  };
2041
2041
  }
2042
2042
  };
2043
2043
  Yo = Ko;
2044
2044
  function Xl() {
2045
- return d(bn, this) ?? T(bn, this, new ResizeObserver((e) => {
2045
+ return d(yn, this) ?? T(yn, this, new ResizeObserver((e) => {
2046
2046
  for (var t of e) {
2047
2047
  Yo.entries.set(t.target, t);
2048
2048
  for (var n of d(at, this).get(t.target) || []) n(t);
@@ -2078,31 +2078,31 @@ function ki(e, t, n, r) {
2078
2078
  let h;
2079
2079
  if (o) {
2080
2080
  var f = Ot in e || Ji in e;
2081
- h = je(e, t)?.set ?? (f && t in e ? (M) => e[t] = M : void 0);
2081
+ h = je(e, t)?.set ?? (f && t in e ? (C) => e[t] = C : void 0);
2082
2082
  }
2083
2083
  var p, m = !1;
2084
2084
  o ? [p, m] = ja(() => e[t]) : p = e[t], p === void 0 && r !== void 0 && (p = u(), h && (i && Oa(t), h(p)));
2085
- var y;
2086
- if (i ? y = () => {
2087
- var M = e[t];
2088
- return M === void 0 ? u() : (l = !0, M);
2089
- } : y = () => {
2090
- var M = e[t];
2091
- return M !== void 0 && (a = void 0), M === void 0 ? a : M;
2092
- }, i && (n & 4) === 0) return y;
2085
+ var b;
2086
+ if (i ? b = () => {
2087
+ var C = e[t];
2088
+ return C === void 0 ? u() : (l = !0, C);
2089
+ } : b = () => {
2090
+ var C = e[t];
2091
+ return C !== void 0 && (a = void 0), C === void 0 ? a : C;
2092
+ }, i && (n & 4) === 0) return b;
2093
2093
  if (h) {
2094
- var b = e.$$legacy;
2095
- return (function(M, U) {
2096
- return arguments.length > 0 ? ((!i || !U || b || m) && h(U ? y() : M), M) : y();
2094
+ var y = e.$$legacy;
2095
+ return (function(C, U) {
2096
+ return arguments.length > 0 ? ((!i || !U || y || m) && h(U ? b() : C), C) : b();
2097
2097
  });
2098
2098
  }
2099
- var E = !1, R = ((n & 1) !== 0 ? Lt : To)(() => (E = !1, y()));
2099
+ var E = !1, R = ((n & 1) !== 0 ? Lt : To)(() => (E = !1, b()));
2100
2100
  o && v(R);
2101
2101
  var F = S;
2102
- return (function(M, U) {
2102
+ return (function(C, U) {
2103
2103
  if (arguments.length > 0) {
2104
- const H = U ? v(R) : i && o ? fe(M) : M;
2105
- return $(R, H), E = !0, a !== void 0 && (a = H), M;
2104
+ const H = U ? v(R) : i && o ? fe(C) : C;
2105
+ return $(R, H), E = !0, a !== void 0 && (a = H), C;
2106
2106
  }
2107
2107
  return ke && E || (F.f & 16384) !== 0 ? R.v : v(R);
2108
2108
  });
@@ -2550,7 +2550,7 @@ var Jo = class ar {
2550
2550
  }
2551
2551
  Vt > f && (f = Vt, h = U);
2552
2552
  }
2553
- const p = Math.max(0.24, Math.min(0.85, h * 0.55)), m = Math.max(0.55, Math.min(0.95, h + 0.2)), y = Math.max(0.22, Math.min(0.6, h * 0.45)), b = l, E = this.blend(b, a, m), R = this.contrastRatio(E, a), F = this.relativeLuminance(a) > 0.45 ? [
2553
+ const p = Math.max(0.24, Math.min(0.85, h * 0.55)), m = Math.max(0.55, Math.min(0.95, h + 0.2)), b = Math.max(0.22, Math.min(0.6, h * 0.45)), y = l, E = this.blend(y, a, m), R = this.contrastRatio(E, a), F = this.relativeLuminance(a) > 0.45 ? [
2554
2554
  0,
2555
2555
  0,
2556
2556
  0
@@ -2558,12 +2558,12 @@ var Jo = class ar {
2558
2558
  255,
2559
2559
  255,
2560
2560
  255
2561
- ], M = R >= 1.35 ? b : F;
2561
+ ], C = R >= 1.35 ? y : F;
2562
2562
  return {
2563
2563
  wordHighlight: `rgba(${c[0]}, ${c[1]}, ${c[2]}, ${h})`,
2564
2564
  sentenceHighlight: `rgba(${c[0]}, ${c[1]}, ${c[2]}, ${p})`,
2565
- wordUnderline: `rgba(${M[0]}, ${M[1]}, ${M[2]}, ${m})`,
2566
- wordShadow: `rgba(${M[0]}, ${M[1]}, ${M[2]}, ${y})`
2565
+ wordUnderline: `rgba(${C[0]}, ${C[1]}, ${C[2]}, ${m})`,
2566
+ wordShadow: `rgba(${C[0]}, ${C[1]}, ${C[2]}, ${b})`
2567
2567
  };
2568
2568
  }
2569
2569
  applyAdaptiveTTSStyle(t) {
@@ -2650,6 +2650,116 @@ var Jo = class ar {
2650
2650
  text-underline-offset: 2px;
2651
2651
  color: inherit;
2652
2652
  }
2653
+
2654
+ /* The blocks below cover annotation swatches, print, and reduced motion.
2655
+ They deliberately do NOT retune the TTS layers: applyAdaptiveTTSStyle()
2656
+ writes the pie-tts custom properties inline on documentElement on every
2657
+ paint and on theme change, so a media query that only varies a var()
2658
+ fallback for those can never take effect. Annotation colours have no such
2659
+ adaptive path -- they are fixed swatches a student chose -- so a media
2660
+ query is the only way to adjust them, and each keeps its var() so a host
2661
+ override still wins.
2662
+
2663
+ The names above are spelled without their leading dashes on purpose.
2664
+ check-theme-tokens scans comments, and its token pattern stops at the
2665
+ first non-alphanumeric character, so writing the wildcard form reads as
2666
+ consumption of a shorter token that is not in the registry and fails the
2667
+ check. Spell property names in full, or omit the dashes. */
2668
+
2669
+ @media (prefers-color-scheme: dark) {
2670
+ ::highlight(annotation-yellow) {
2671
+ background-color: var(--pie-annotation-yellow-highlight, rgba(139, 117, 0, 0.6));
2672
+ }
2673
+ ::highlight(annotation-green) {
2674
+ background-color: var(--pie-annotation-green-highlight, rgba(45, 92, 63, 0.6));
2675
+ }
2676
+ ::highlight(annotation-blue) {
2677
+ background-color: var(--pie-annotation-blue-highlight, rgba(0, 102, 170, 0.6));
2678
+ }
2679
+ ::highlight(annotation-pink) {
2680
+ background-color: var(--pie-annotation-pink-highlight, rgba(139, 51, 74, 0.6));
2681
+ }
2682
+ ::highlight(annotation-orange) {
2683
+ background-color: var(--pie-annotation-orange-highlight, rgba(154, 99, 0, 0.6));
2684
+ }
2685
+ ::highlight(annotation-underline) {
2686
+ text-decoration-color: var(--pie-primary, #4da6ff);
2687
+ }
2688
+ }
2689
+
2690
+ /* WCAG 2.2 SC 1.4.11 non-text contrast: a highlight is the only indication
2691
+ that text is annotated, so the swatches saturate and the underline
2692
+ thickens when the user asks for more contrast.
2693
+
2694
+ The value is "more", not "high". The stylesheet this was recovered from
2695
+ used prefers-contrast: high, which is not a valid value for the feature
2696
+ -- the keywords are no-preference, more, less, custom. An invalid query
2697
+ evaluates to "not all", so that block could never have matched in any
2698
+ browser even had the file been loaded. Verified with matchMedia under
2699
+ emulation: "high" stays false where "more" flips true. */
2700
+ @media (prefers-contrast: more) {
2701
+ ::highlight(annotation-yellow) {
2702
+ background-color: var(--pie-annotation-yellow-highlight, rgba(255, 255, 0, 0.7));
2703
+ }
2704
+ ::highlight(annotation-green) {
2705
+ background-color: var(--pie-annotation-green-highlight, rgba(0, 255, 127, 0.7));
2706
+ }
2707
+ ::highlight(annotation-blue) {
2708
+ background-color: var(--pie-annotation-blue-highlight, rgba(0, 191, 255, 0.7));
2709
+ }
2710
+ ::highlight(annotation-pink) {
2711
+ background-color: var(--pie-annotation-pink-highlight, rgba(255, 105, 180, 0.7));
2712
+ }
2713
+ ::highlight(annotation-orange) {
2714
+ background-color: var(--pie-annotation-orange-highlight, rgba(255, 165, 0, 0.85));
2715
+ }
2716
+ ::highlight(annotation-underline) {
2717
+ text-decoration-thickness: 3px;
2718
+ }
2719
+ }
2720
+
2721
+ @media print {
2722
+ /* TTS highlighting is a transient read-along cue, not content. */
2723
+ ::highlight(tts-word),
2724
+ ::highlight(tts-sentence),
2725
+ [data-pie-tts-word-element="true"],
2726
+ [data-pie-tts-sentence-element="true"] {
2727
+ background-color: transparent;
2728
+ text-decoration: none;
2729
+ text-shadow: none;
2730
+ border-bottom: none;
2731
+ }
2732
+
2733
+ /* Annotations are student work and must survive printing, but a fill
2734
+ that reads fine on screen can print as an illegible wash, so each
2735
+ becomes an underline that keeps its colour coding. */
2736
+ ::highlight(annotation-yellow),
2737
+ ::highlight(annotation-green),
2738
+ ::highlight(annotation-blue),
2739
+ ::highlight(annotation-pink),
2740
+ ::highlight(annotation-orange) {
2741
+ background-color: transparent;
2742
+ border-bottom: 2px solid currentColor;
2743
+ }
2744
+ ::highlight(annotation-yellow) { border-bottom-color: #ffeb3b; }
2745
+ ::highlight(annotation-green) { border-bottom-color: #a6e1c5; }
2746
+ ::highlight(annotation-blue) { border-bottom-color: #a7e0f6; }
2747
+ ::highlight(annotation-pink) { border-bottom-color: #ff9fae; }
2748
+ ::highlight(annotation-orange) { border-bottom-color: #ffa500; }
2749
+ ::highlight(annotation-underline) {
2750
+ text-decoration-color: #000;
2751
+ border-bottom: none;
2752
+ }
2753
+ }
2754
+
2755
+ /* text-shadow is a direct property rather than a var(), so unlike the
2756
+ other TTS rules this one is not overridden by the adaptive path. */
2757
+ @media (prefers-reduced-motion: reduce) {
2758
+ ::highlight(tts-word),
2759
+ [data-pie-tts-word-element="true"] {
2760
+ text-shadow: none;
2761
+ }
2762
+ }
2653
2763
  `, document.head.appendChild(t);
2654
2764
  }
2655
2765
  highlightTTSWord(t, n, r) {
@@ -2983,7 +3093,7 @@ function xi(e) {
2983
3093
  if (typeof e.isVisibleInContext != "function") throw new Error(`Invalid tool registration "${e.toolId}": "isVisibleInContext" must be a function.`);
2984
3094
  if (typeof e.renderToolbar != "function") throw new Error(`Invalid tool registration "${e.toolId}": "renderToolbar" must be a function.`);
2985
3095
  }
2986
- var yc = class {
3096
+ var bc = class {
2987
3097
  constructor() {
2988
3098
  g(this, "tools", /* @__PURE__ */ new Map()), g(this, "pnpIndex", /* @__PURE__ */ new Map()), g(this, "componentOverrides", {}), g(this, "moduleLoaders", /* @__PURE__ */ new Map()), g(this, "loadedToolModules", /* @__PURE__ */ new Set()), g(this, "moduleLoadPromises", /* @__PURE__ */ new Map());
2989
3099
  }
@@ -3129,7 +3239,7 @@ var yc = class {
3129
3239
  function es(e) {
3130
3240
  return e.level === "item";
3131
3241
  }
3132
- function bc(e) {
3242
+ function yc(e) {
3133
3243
  return e.level === "passage";
3134
3244
  }
3135
3245
  function Tc(e) {
@@ -3173,7 +3283,7 @@ function Wr(e) {
3173
3283
  }
3174
3284
  return r.filter(Boolean).join(" ").trim();
3175
3285
  }
3176
- if (bc(e)) {
3286
+ if (yc(e)) {
3177
3287
  const t = e.passage;
3178
3288
  if (!t?.config) return "";
3179
3289
  const n = t.config, r = [], i = (l) => l.replace(/<[^>]*>/g, " ").trim();
@@ -3214,9 +3324,11 @@ function _c(e) {
3214
3324
  "pie-multiple-choice",
3215
3325
  "pie-inline-choice",
3216
3326
  "pie-select-text",
3327
+ "pie-ebsr",
3217
3328
  "multiple-choice",
3218
3329
  "inline-choice",
3219
- "select-text"
3330
+ "select-text",
3331
+ "ebsr"
3220
3332
  ];
3221
3333
  if (ts(e)) {
3222
3334
  const n = e.item.config;
@@ -3236,7 +3348,7 @@ function _c(e) {
3236
3348
  }
3237
3349
  return !1;
3238
3350
  }
3239
- function Mn(e) {
3351
+ function Cn(e) {
3240
3352
  return Wr(e).trim().length >= 10;
3241
3353
  }
3242
3354
  function Sc(e) {
@@ -3370,7 +3482,7 @@ var Ec = class {
3370
3482
  text: e,
3371
3483
  offset: 0
3372
3484
  }];
3373
- }, ns = (e) => String(e || "").trim().toLowerCase(), Ac = () => ns((typeof navigator < "u" ? navigator.language || navigator.languages?.[0] : "") || "en-US"), Mc = (e, t) => {
3485
+ }, ns = (e) => String(e || "").trim().toLowerCase(), Ac = () => ns((typeof navigator < "u" ? navigator.language || navigator.languages?.[0] : "") || "en-US"), Cc = (e, t) => {
3374
3486
  if (t) {
3375
3487
  const s = e.find((a) => a.name === t);
3376
3488
  if (s) return s;
@@ -3390,7 +3502,7 @@ var Ec = class {
3390
3502
  if (a) return a;
3391
3503
  }
3392
3504
  return e[0] || null;
3393
- }, Cc = (e) => !e.default, rs = class {
3505
+ }, Mc = (e) => !e.default, rs = class {
3394
3506
  constructor() {
3395
3507
  g(this, "providerId", "browser"), g(this, "providerName", "Browser Speech Synthesis"), g(this, "version", "1.0.0");
3396
3508
  }
@@ -3502,8 +3614,8 @@ var Ec = class {
3502
3614
  }
3503
3615
  const o = new SpeechSynthesisUtterance(e);
3504
3616
  this.utterance = o;
3505
- const s = Mc(speechSynthesis.getVoices(), this.config?.voice);
3506
- s && Cc(s) && (o.voice = s), this.config?.rate && (o.rate = this.config.rate), this.config?.pitch && (o.pitch = this.config.pitch);
3617
+ const s = Cc(speechSynthesis.getVoices(), this.config?.voice);
3618
+ s && Mc(s) && (o.voice = s), this.config?.rate && (o.rate = this.config.rate), this.config?.pitch && (o.pitch = this.config.pitch);
3507
3619
  const a = () => {
3508
3620
  this.utterance === o && (this.utterance = null);
3509
3621
  };
@@ -3836,28 +3948,28 @@ var Bc = {
3836
3948
  for (; u; ) {
3837
3949
  const f = u;
3838
3950
  if (f.parentElement && !Tt(f, e)) {
3839
- const p = f.textContent || "", m = p.match(/\S/), y = m ? m[0] : null;
3840
- !o && !s && as(l, y, t) && (r.push(" "), a && n.set(i, a), i++, s = !0);
3841
- for (let b = 0; b < p.length; b++) {
3842
- const E = p[b], R = /\s/.test(E);
3951
+ const p = f.textContent || "", m = p.match(/\S/), b = m ? m[0] : null;
3952
+ !o && !s && as(l, b, t) && (r.push(" "), a && n.set(i, a), i++, s = !0);
3953
+ for (let y = 0; y < p.length; y++) {
3954
+ const E = p[y], R = /\s/.test(E);
3843
3955
  o ? R || (o = !1, r.push(E), n.set(i, {
3844
3956
  node: f,
3845
- offset: b
3957
+ offset: y
3846
3958
  }), a = {
3847
3959
  node: f,
3848
- offset: b
3960
+ offset: y
3849
3961
  }, i++, s = !1, l = E) : R ? (s || (r.push(" "), n.set(i, {
3850
3962
  node: f,
3851
- offset: b
3963
+ offset: y
3852
3964
  }), a = {
3853
3965
  node: f,
3854
- offset: b
3966
+ offset: y
3855
3967
  }, i++), s = !0) : (r.push(E), n.set(i, {
3856
3968
  node: f,
3857
- offset: b
3969
+ offset: y
3858
3970
  }), a = {
3859
3971
  node: f,
3860
- offset: b
3972
+ offset: y
3861
3973
  }, i++, s = !1, l = E);
3862
3974
  }
3863
3975
  }
@@ -3869,13 +3981,13 @@ var Bc = {
3869
3981
  text: h,
3870
3982
  map: n
3871
3983
  };
3872
- }, Vn = null, Mi = Promise.resolve(), Dc = (e) => (e || "en").split("-")[0].toLowerCase() || "en", Fc = async () => (Vn || (Vn = import("./sre-yGY3u7Xp.js").then((e) => /* @__PURE__ */ la(e.default, 1)).then((e) => {
3984
+ }, Vn = null, Ci = Promise.resolve(), Dc = (e) => (e || "en").split("-")[0].toLowerCase() || "en", Fc = async () => (Vn || (Vn = import("./sre-yGY3u7Xp.js").then((e) => /* @__PURE__ */ la(e.default, 1)).then((e) => {
3873
3985
  const t = e.default || e;
3874
3986
  if (!t || typeof t.toSpeech != "function") throw new Error("speech-rule-engine did not expose toSpeech");
3875
3987
  return t;
3876
- })), Vn), jc = (e) => e === "en" ? "clearspeak" : "mathspeak", Ci = (e) => !!e && typeof e == "object" && !Array.isArray(e), Oi = (e) => typeof e == "string" && e.trim() ? e.trim() : void 0, Cn = (e) => {
3877
- if (!Ci(e)) return;
3878
- const t = Oi(e.domain), n = Oi(e.style), r = Ci(e.engineOptions) ? e.engineOptions : void 0;
3988
+ })), Vn), jc = (e) => e === "en" ? "clearspeak" : "mathspeak", Mi = (e) => !!e && typeof e == "object" && !Array.isArray(e), Oi = (e) => typeof e == "string" && e.trim() ? e.trim() : void 0, Mn = (e) => {
3989
+ if (!Mi(e)) return;
3990
+ const t = Oi(e.domain), n = Oi(e.style), r = Mi(e.engineOptions) ? e.engineOptions : void 0;
3879
3991
  if (!(!t && !n && !r))
3880
3992
  return {
3881
3993
  ...t ? { domain: t } : {},
@@ -3883,7 +3995,7 @@ var Bc = {
3883
3995
  ...r ? { engineOptions: r } : {}
3884
3996
  };
3885
3997
  }, Vc = async (e, t, n, r) => {
3886
- const i = Dc(t), o = Cn(r);
3998
+ const i = Dc(t), o = Mn(r);
3887
3999
  await e.setupEngine?.({
3888
4000
  ...o?.engineOptions || {},
3889
4001
  locale: i,
@@ -3893,8 +4005,8 @@ var Bc = {
3893
4005
  markup: n
3894
4006
  }), await e.engineReady?.();
3895
4007
  }, qc = async (e) => {
3896
- const t = Mi.then(e, e);
3897
- return Mi = t.then(() => {
4008
+ const t = Ci.then(e, e);
4009
+ return Ci = t.then(() => {
3898
4010
  }, () => {
3899
4011
  }), t;
3900
4012
  }, ls = async (e, t, n, r, i) => qc(async () => (await Vc(e, n, r, i), e.toSpeech(t))), Uc = (e) => e.replace(/^\s*<\?xml[^>]*\?>\s*/i, ""), Gc = async (e, t, n, r) => {
@@ -4036,7 +4148,7 @@ var Bc = {
4036
4148
  ...n
4037
4149
  });
4038
4150
  }, ur = (e) => e.backend || "browser", hs = (e, t) => t === "polly" || t === "google" ? t : e.serverProvider || e.provider, ds = (e, t) => e.transportMode || (t === "custom" ? "custom" : "pie"), Qc = (e) => {
4039
- const t = ur(e), n = hs(e, t), r = ds(e, n), i = Cn(e.mathSpeech);
4151
+ const t = ur(e), n = hs(e, t), r = ds(e, n), i = Mn(e.mathSpeech);
4040
4152
  return {
4041
4153
  voice: e.defaultVoice,
4042
4154
  rate: e.rate,
@@ -4138,7 +4250,7 @@ var Bc = {
4138
4250
  "speechOutput"
4139
4251
  ],
4140
4252
  isVisibleInContext(e) {
4141
- return Mn(e);
4253
+ return Cn(e);
4142
4254
  },
4143
4255
  renderToolbar(e, t) {
4144
4256
  const n = () => qn(t.toolkitCoordinator?.getToolConfig(this.toolId) || void 0), r = () => rn(n().speedOptions), i = () => fs(n()), o = () => Zc(n()), s = zr(this.toolId, t.scope.level, t.scope.scopeId), a = () => {
@@ -4180,7 +4292,7 @@ var Bc = {
4180
4292
  };
4181
4293
  }
4182
4294
  };
4183
- function Me(e, t) {
4295
+ function Ce(e, t) {
4184
4296
  const n = zr(e, t.scope.level, t.scope.scopeId);
4185
4297
  return {
4186
4298
  fullToolId: n,
@@ -4191,7 +4303,7 @@ function Me(e, t) {
4191
4303
  }
4192
4304
  };
4193
4305
  }
4194
- function Ce(e) {
4306
+ function Me(e) {
4195
4307
  const t = e.isActive();
4196
4308
  e.button.active = t, e.overlay.visible = t, e.onActiveChange?.(t);
4197
4309
  }
@@ -4213,7 +4325,7 @@ var nu = {
4213
4325
  return An(e);
4214
4326
  },
4215
4327
  renderToolbar(e, t) {
4216
- const n = Me(this.toolId, t), r = {
4328
+ const n = Ce(this.toolId, t), r = {
4217
4329
  toolId: this.toolId,
4218
4330
  label: this.name,
4219
4331
  icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
@@ -4231,7 +4343,7 @@ var nu = {
4231
4343
  mount: "after-buttons"
4232
4344
  }],
4233
4345
  sync: () => {
4234
- Ce({
4346
+ Me({
4235
4347
  button: r,
4236
4348
  overlay: o,
4237
4349
  isActive: n.isActive
@@ -4255,7 +4367,7 @@ var nu = {
4255
4367
  return An(e);
4256
4368
  },
4257
4369
  renderToolbar(e, t) {
4258
- const n = Me(this.toolId, t), r = {
4370
+ const n = Ce(this.toolId, t), r = {
4259
4371
  toolId: this.toolId,
4260
4372
  label: this.name,
4261
4373
  icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
@@ -4273,7 +4385,7 @@ var nu = {
4273
4385
  mount: "after-buttons"
4274
4386
  }],
4275
4387
  sync: () => {
4276
- Ce({
4388
+ Me({
4277
4389
  button: r,
4278
4390
  overlay: o,
4279
4391
  isActive: n.isActive
@@ -4298,7 +4410,7 @@ var nu = {
4298
4410
  return _c(e);
4299
4411
  },
4300
4412
  renderToolbar(e, t) {
4301
- const n = Me(this.toolId, t), r = t.componentOverrides ?? {}, i = me(this.toolId, e, t, r);
4413
+ const n = Ce(this.toolId, t), r = t.componentOverrides ?? {}, i = me(this.toolId, e, t, r);
4302
4414
  i.setAttribute("tool-id", n.fullToolId), i.setAttribute("strategy", "strikethrough"), i.setAttribute("button-alignment", "inline");
4303
4415
  const o = {
4304
4416
  toolId: this.toolId,
@@ -4318,7 +4430,7 @@ var nu = {
4318
4430
  mount: "after-buttons"
4319
4431
  }],
4320
4432
  sync: () => {
4321
- Ce({
4433
+ Me({
4322
4434
  button: o,
4323
4435
  overlay: i,
4324
4436
  isActive: n.isActive
@@ -4347,10 +4459,10 @@ var nu = {
4347
4459
  "annotation"
4348
4460
  ],
4349
4461
  isVisibleInContext(e) {
4350
- return Mn(e);
4462
+ return Cn(e);
4351
4463
  },
4352
4464
  renderToolbar(e, t) {
4353
- const n = Me(this.toolId, t), r = {
4465
+ const n = Ce(this.toolId, t), r = {
4354
4466
  toolId: this.toolId,
4355
4467
  label: this.name,
4356
4468
  icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
@@ -4368,7 +4480,7 @@ var nu = {
4368
4480
  mount: "after-buttons"
4369
4481
  }],
4370
4482
  sync: () => {
4371
- Ce({
4483
+ Me({
4372
4484
  button: r,
4373
4485
  overlay: o,
4374
4486
  isActive: n.isActive,
@@ -4399,10 +4511,10 @@ var nu = {
4399
4511
  "trackingGuide"
4400
4512
  ],
4401
4513
  isVisibleInContext(e) {
4402
- return Mn(e);
4514
+ return Cn(e);
4403
4515
  },
4404
4516
  renderToolbar(e, t) {
4405
- const n = Me(this.toolId, t), r = {
4517
+ const n = Ce(this.toolId, t), r = {
4406
4518
  toolId: this.toolId,
4407
4519
  label: this.name,
4408
4520
  icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
@@ -4420,7 +4532,7 @@ var nu = {
4420
4532
  mount: "after-buttons"
4421
4533
  }],
4422
4534
  sync: () => {
4423
- Ce({
4535
+ Me({
4424
4536
  button: r,
4425
4537
  overlay: o,
4426
4538
  isActive: n.isActive
@@ -4447,7 +4559,7 @@ var nu = {
4447
4559
  return !0;
4448
4560
  },
4449
4561
  renderToolbar(e, t) {
4450
- const n = Me(this.toolId, t), r = {
4562
+ const n = Ce(this.toolId, t), r = {
4451
4563
  toolId: this.toolId,
4452
4564
  label: this.name,
4453
4565
  icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
@@ -4475,7 +4587,7 @@ var nu = {
4475
4587
  }
4476
4588
  }],
4477
4589
  sync: () => {
4478
- Ce({
4590
+ Me({
4479
4591
  button: r,
4480
4592
  overlay: o,
4481
4593
  isActive: n.isActive
@@ -4505,10 +4617,10 @@ var nu = {
4505
4617
  "annotation"
4506
4618
  ],
4507
4619
  isVisibleInContext(e) {
4508
- return Mn(e);
4620
+ return Cn(e);
4509
4621
  },
4510
4622
  renderToolbar(e, t) {
4511
- const n = Me(this.toolId, t), r = {
4623
+ const n = Ce(this.toolId, t), r = {
4512
4624
  toolId: this.toolId,
4513
4625
  label: this.name,
4514
4626
  icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
@@ -4526,7 +4638,7 @@ var nu = {
4526
4638
  mount: "after-buttons"
4527
4639
  }],
4528
4640
  sync: () => {
4529
- Ce({
4641
+ Me({
4530
4642
  button: r,
4531
4643
  overlay: o,
4532
4644
  isActive: n.isActive
@@ -4551,7 +4663,7 @@ var nu = {
4551
4663
  return An(e);
4552
4664
  },
4553
4665
  renderToolbar(e, t) {
4554
- const n = Me(this.toolId, t), r = {
4666
+ const n = Ce(this.toolId, t), r = {
4555
4667
  toolId: this.toolId,
4556
4668
  label: this.name,
4557
4669
  icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
@@ -4579,7 +4691,7 @@ var nu = {
4579
4691
  }
4580
4692
  }],
4581
4693
  sync: () => {
4582
- Ce({
4694
+ Me({
4583
4695
  button: r,
4584
4696
  overlay: o,
4585
4697
  isActive: n.isActive
@@ -4603,7 +4715,7 @@ var nu = {
4603
4715
  return Sc(e);
4604
4716
  },
4605
4717
  renderToolbar(e, t) {
4606
- const n = Me(this.toolId, t), r = {
4718
+ const n = Ce(this.toolId, t), r = {
4607
4719
  toolId: this.toolId,
4608
4720
  label: this.name,
4609
4721
  icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
@@ -4631,7 +4743,7 @@ var nu = {
4631
4743
  }
4632
4744
  }],
4633
4745
  sync: () => {
4634
- Ce({
4746
+ Me({
4635
4747
  button: r,
4636
4748
  overlay: o,
4637
4749
  isActive: n.isActive
@@ -4654,7 +4766,7 @@ var nu = {
4654
4766
  uu
4655
4767
  ];
4656
4768
  function du(e = {}) {
4657
- const t = new yc(), n = {
4769
+ const t = new bc(), n = {
4658
4770
  toolTagMap: {
4659
4771
  ...is,
4660
4772
  ...e.toolTagMap || {}
@@ -4800,11 +4912,11 @@ var vu = gu(), Ad = {
4800
4912
  itemGlossary: "itemGlossary",
4801
4913
  tutorialAvailable: "tutorialAvailable"
4802
4914
  }
4803
- }, Md = Object.values(mu).flatMap((e) => Object.values(e)), Cd = Qo("ToolCoordinator"), hr;
4915
+ }, Cd = Object.values(mu).flatMap((e) => Object.values(e)), Md = Qo("ToolCoordinator"), hr;
4804
4916
  (function(e) {
4805
4917
  e[e.BASE = 0] = "BASE", e[e.TOOL = 1e3] = "TOOL", e[e.MODAL = 2e3] = "MODAL", e[e.CONTROL = 3e3] = "CONTROL", e[e.HIGHLIGHT = 4e3] = "HIGHLIGHT";
4806
4918
  })(hr || (hr = {}));
4807
- var yu = /* @__PURE__ */ new Set([
4919
+ var bu = /* @__PURE__ */ new Set([
4808
4920
  "speak",
4809
4921
  "p",
4810
4922
  "s",
@@ -4818,7 +4930,7 @@ var yu = /* @__PURE__ */ new Set([
4818
4930
  char: t[r],
4819
4931
  rawOffset: n === null ? null : n + r
4820
4932
  });
4821
- }, bu = (e, t, n) => {
4933
+ }, yu = (e, t, n) => {
4822
4934
  const r = t.slice(n).match(/^&(quot|apos|lt|gt|nbsp|amp|#160);/i);
4823
4935
  return r ? (on(e, ps(r[0]), n), r[0].length) : 0;
4824
4936
  }, Wi = (e) => {
@@ -4852,7 +4964,7 @@ var yu = /* @__PURE__ */ new Set([
4852
4964
  const s = e[i];
4853
4965
  if (s !== "<") {
4854
4966
  if (s === "&") {
4855
- const f = bu(t, e, i);
4967
+ const f = yu(t, e, i);
4856
4968
  if (f > 0) {
4857
4969
  i += f;
4858
4970
  continue;
@@ -4887,7 +4999,7 @@ var yu = /* @__PURE__ */ new Set([
4887
4999
  i = a + 1;
4888
5000
  continue;
4889
5001
  }
4890
- c && !yu.has(c) && !Ni.has(c) && c !== "break" && c !== "sub" && (n = !0), !u && (c === "p" || c === "s") && Wi(t), i = a + 1;
5002
+ c && !bu.has(c) && !Ni.has(c) && c !== "break" && c !== "sub" && (n = !0), !u && (c === "p" || c === "s") && Wi(t), i = a + 1;
4891
5003
  }
4892
5004
  const o = Tu(t);
4893
5005
  return {
@@ -5025,8 +5137,8 @@ var yu = /* @__PURE__ */ new Set([
5025
5137
  for (let u = 0; u < l; u++) {
5026
5138
  const h = n[u];
5027
5139
  if (h.spokenEndToken <= c.spokenStartToken && h.visibleToken < c.visibleToken) {
5028
- const f = c.spokenStartToken - h.spokenEndToken, p = c.visibleToken - h.visibleToken - 1, m = Math.max(0, Math.abs(f - p) - 2), y = r[u] + c.score - m;
5029
- y > r[l] && (r[l] = y, i[l] = u);
5140
+ const f = c.spokenStartToken - h.spokenEndToken, p = c.visibleToken - h.visibleToken - 1, m = Math.max(0, Math.abs(f - p) - 2), b = r[u] + c.score - m;
5141
+ b > r[l] && (r[l] = b, i[l] = u);
5030
5142
  }
5031
5143
  }
5032
5144
  }
@@ -5065,12 +5177,12 @@ var yu = /* @__PURE__ */ new Set([
5065
5177
  visibleTokens: o,
5066
5178
  rawToSpokenOffsetMap: t.rawToSpokenOffsetMap
5067
5179
  };
5068
- }, Dr = (e, t) => e.find((n) => n.start <= t && t < n.end) || null, ys = (e) => {
5180
+ }, Dr = (e, t) => e.find((n) => n.start <= t && t < n.end) || null, bs = (e) => {
5069
5181
  if (!e || /^<[^>]+>$/.test(e.trim())) return null;
5070
5182
  const t = dr(e)[0];
5071
5183
  return t ? vs.get(t.normalized) || t.normalized : null;
5072
5184
  }, zi = (e, t, n) => {
5073
- const r = ys(n);
5185
+ const r = bs(n);
5074
5186
  if (!t || !r) return !1;
5075
5187
  const i = Dr(e.spokenTokens, t.start);
5076
5188
  return i ? fr(i) === r : !1;
@@ -5098,7 +5210,7 @@ var yu = /* @__PURE__ */ new Set([
5098
5210
  start: t,
5099
5211
  length: Math.min(n, r.end - t)
5100
5212
  } : null;
5101
- }, Mu = (e, t, n = 1, r) => {
5213
+ }, Cu = (e, t, n = 1, r) => {
5102
5214
  if (e.boundaryOffsetMode === "unsupported" || !Number.isFinite(t)) return null;
5103
5215
  const i = Math.max(1, Number.isFinite(n) ? n : 1);
5104
5216
  if (r && /^<[^>]+>$/.test(r.trim())) return null;
@@ -5107,12 +5219,12 @@ var yu = /* @__PURE__ */ new Set([
5107
5219
  if (r) {
5108
5220
  if (zi(e, o, r)) return o;
5109
5221
  if (zi(e, s, r)) return s;
5110
- if (ys(r)) return null;
5222
+ if (bs(r)) return null;
5111
5223
  }
5112
5224
  return o || s;
5113
5225
  }
5114
5226
  return Di(e, t, i) || Bi(e, t, i);
5115
- }, Cu = (e, t) => {
5227
+ }, Mu = (e, t) => {
5116
5228
  if (e.playbackMode === "region-fallback") return null;
5117
5229
  const n = e.anchors.find((o) => o.spokenStart <= t && t < o.spokenEnd);
5118
5230
  if (n) return {
@@ -5163,7 +5275,7 @@ var yu = /* @__PURE__ */ new Set([
5163
5275
  ["⁢", "implicit-multiply"],
5164
5276
  ["⁣", "invisible-separator"],
5165
5277
  ["⁤", "invisible-plus"]
5166
- ]), bs = /* @__PURE__ */ new Map([["2", ["squared"]], ["3", ["cubed"]]]), $u = /* @__PURE__ */ new Map([
5278
+ ]), ys = /* @__PURE__ */ new Map([["2", ["squared"]], ["3", ["cubed"]]]), $u = /* @__PURE__ */ new Map([
5167
5279
  ["msqrt", "radical"],
5168
5280
  ["mroot", "radical"],
5169
5281
  ["msub", "subscript"],
@@ -5173,7 +5285,7 @@ var yu = /* @__PURE__ */ new Set([
5173
5285
  ["munderover", "underoverscript"],
5174
5286
  ["mmultiscripts", "multiscript"],
5175
5287
  ["menclose", "enclosure"]
5176
- ]), Ru = (e) => e.replace(/\s+/g, " ").trim(), Xe = (e) => (e.localName || e.tagName || "").toLowerCase(), Lu = (e) => e.nodeType === Node.ELEMENT_NODE, yt = (e) => Array.from(e.childNodes).filter(Lu), Fr = (e) => Ru(e.textContent || ""), xe = (e, t) => ({
5288
+ ]), Ru = (e) => e.replace(/\s+/g, " ").trim(), Xe = (e) => (e.localName || e.tagName || "").toLowerCase(), Lu = (e) => e.nodeType === Node.ELEMENT_NODE, bt = (e) => Array.from(e.childNodes).filter(Lu), Fr = (e) => Ru(e.textContent || ""), xe = (e, t) => ({
5177
5289
  type: "element-range",
5178
5290
  quality: t,
5179
5291
  element: e
@@ -5193,7 +5305,7 @@ var yu = /* @__PURE__ */ new Set([
5193
5305
  default:
5194
5306
  return "unknown";
5195
5307
  }
5196
- }, Nu = (e, t) => t === "operator" ? e === "−" ? "-" : e : e.toLowerCase(), Wu = (e, t, n) => n === "fraction" ? ["over", "divided by"] : n === "superscript" ? bs.get(e) ?? [] : e === "|" ? ["absolute value"] : t === "operator" ? Ou.get(e) || [] : [], Qe = (e) => {
5308
+ }, Nu = (e, t) => t === "operator" ? e === "−" ? "-" : e : e.toLowerCase(), Wu = (e, t, n) => n === "fraction" ? ["over", "divided by"] : n === "superscript" ? ys.get(e) ?? [] : e === "|" ? ["absolute value"] : t === "operator" ? Ou.get(e) || [] : [], Qe = (e) => {
5197
5309
  const t = e.normalized ?? Nu(e.text, e.kind || "unknown");
5198
5310
  return {
5199
5311
  id: `math-token-${e.state.nextId++}`,
@@ -5210,9 +5322,9 @@ var yu = /* @__PURE__ */ new Set([
5210
5322
  }, Ze = (e, t, n = "tokens") => {
5211
5323
  e[n].push(t);
5212
5324
  }, Ts = (e, t, n) => {
5213
- yt(e).forEach((r, i) => Ee(r, t, `${n}/${Xe(r)}[${i}]`));
5325
+ bt(e).forEach((r, i) => Ee(r, t, `${n}/${Xe(r)}[${i}]`));
5214
5326
  }, zu = (e, t, n) => {
5215
- const r = yt(e);
5327
+ const r = bt(e);
5216
5328
  r[0] && Ee(r[0], t, `${n}/numerator`), Ze(t, Qe({
5217
5329
  state: t,
5218
5330
  kind: "structure",
@@ -5242,12 +5354,12 @@ var yu = /* @__PURE__ */ new Set([
5242
5354
  target: xe(e, "element-range")
5243
5355
  }));
5244
5356
  }, Bu = (e, t, n) => {
5245
- const r = yt(e);
5357
+ const r = bt(e);
5246
5358
  r[0] && Ee(r[0], t, `${n}/base`);
5247
5359
  const i = r[1];
5248
5360
  if (!i) return;
5249
5361
  const o = Fr(i);
5250
- if (bs.has(o)) {
5362
+ if (ys.has(o)) {
5251
5363
  Ze(t, Qe({
5252
5364
  state: t,
5253
5365
  kind: "structure",
@@ -5274,7 +5386,7 @@ var yu = /* @__PURE__ */ new Set([
5274
5386
  }));
5275
5387
  }, Fu = (e, t, n) => {
5276
5388
  let r = 0;
5277
- for (const i of yt(e))
5389
+ for (const i of bt(e))
5278
5390
  (Xe(i) === "mtr" || Xe(i) === "mlabeledtr") && (r++, Ze(t, Qe({
5279
5391
  state: t,
5280
5392
  kind: "layout",
@@ -5306,7 +5418,7 @@ var yu = /* @__PURE__ */ new Set([
5306
5418
  case "annotation-xml":
5307
5419
  return;
5308
5420
  case "semantics": {
5309
- const i = yt(e).find((o) => {
5421
+ const i = bt(e).find((o) => {
5310
5422
  const s = Xe(o);
5311
5423
  return s !== "annotation" && s !== "annotation-xml";
5312
5424
  });
@@ -5336,7 +5448,7 @@ var yu = /* @__PURE__ */ new Set([
5336
5448
  case "mphantom":
5337
5449
  return;
5338
5450
  case "maction": {
5339
- const i = yt(e)[0];
5451
+ const i = bt(e)[0];
5340
5452
  i && Ee(i, t, `${n}/action`);
5341
5453
  return;
5342
5454
  }
@@ -5672,7 +5784,7 @@ var yu = /* @__PURE__ */ new Set([
5672
5784
  lastCharWasWhitespace: !1,
5673
5785
  lastMapped: null,
5674
5786
  options: e
5675
- }), Es = (e) => e.classList?.contains("MathJax") || e.tagName?.toLowerCase() === "mjx-container", As = (e) => e.tagName?.toLowerCase() === "mjx-assistive-mml", Ms = (e) => {
5787
+ }), Es = (e) => e.classList?.contains("MathJax") || e.tagName?.toLowerCase() === "mjx-container", As = (e) => e.tagName?.toLowerCase() === "mjx-assistive-mml", Cs = (e) => {
5676
5788
  const t = e.tagName?.toLowerCase();
5677
5789
  return t === "annotation" || t === "annotation-xml";
5678
5790
  }, dh = (e) => {
@@ -5729,9 +5841,9 @@ var yu = /* @__PURE__ */ new Set([
5729
5841
  n = n.parentElement;
5730
5842
  }
5731
5843
  return r || t;
5732
- }, yh = (e) => !!(typeof e.querySelector == "function" && e.querySelector("math, [data-mathml], .MathJax, mjx-container, mjx-assistive-mml")) || e.tagName?.toLowerCase() === "math" || e.hasAttribute?.("data-mathml") || Es(e), Fe = (e, t, n) => {
5844
+ }, bh = (e) => !!(typeof e.querySelector == "function" && e.querySelector("math, [data-mathml], .MathJax, mjx-container, mjx-assistive-mml")) || e.tagName?.toLowerCase() === "math" || e.hasAttribute?.("data-mathml") || Es(e), Fe = (e, t, n) => {
5733
5845
  /[.,;:!?]/.test(t) && e.chars.length > 0 && e.chars[e.chars.length - 1] === " " && (e.chars.pop(), e.position--, e.map.delete(e.position)), e.chars.push(t), n ? (e.map.set(e.position, n), e.lastMapped = n) : e.lastMapped && e.map.set(e.position, e.lastMapped), e.position++;
5734
- }, Cs = (e, t) => {
5846
+ }, Ms = (e, t) => {
5735
5847
  if (e.inLeadingWhitespace || e.lastCharWasWhitespace || e.chars.length === 0) return !1;
5736
5848
  const n = e.chars[e.chars.length - 1];
5737
5849
  return as(n, t, e.options);
@@ -5754,7 +5866,7 @@ var yu = /* @__PURE__ */ new Set([
5754
5866
  }), e.lastCharWasWhitespace = !0;
5755
5867
  continue;
5756
5868
  }
5757
- !r && Cs(e, o) && Fe(e, " ", {
5869
+ !r && Ms(e, o) && Fe(e, " ", {
5758
5870
  node: t,
5759
5871
  offset: i
5760
5872
  }), Fe(e, o, {
@@ -5762,7 +5874,7 @@ var yu = /* @__PURE__ */ new Set([
5762
5874
  offset: i
5763
5875
  }), r = !0, e.lastCharWasWhitespace = !1;
5764
5876
  }
5765
- }, bh = (e, t) => {
5877
+ }, yh = (e, t) => {
5766
5878
  for (let n = 0; n < t.text.length; n++) {
5767
5879
  const r = t.text[n], i = /\s/.test(r), o = t.map.get(n) || null, s = o?.node || e.lastMapped?.node || null, a = o?.offset ?? e.lastMapped?.offset ?? 0, l = o ? {
5768
5880
  node: o.node,
@@ -5779,7 +5891,7 @@ var yu = /* @__PURE__ */ new Set([
5779
5891
  e.lastCharWasWhitespace || Fe(e, " ", l), e.lastCharWasWhitespace = !0;
5780
5892
  continue;
5781
5893
  }
5782
- n === 0 && Cs(e, r) && Fe(e, " ", l), Fe(e, r, l), e.lastCharWasWhitespace = !1, o ? (e.map.set(e.position - 1, {
5894
+ n === 0 && Ms(e, r) && Fe(e, " ", l), Fe(e, r, l), e.lastCharWasWhitespace = !1, o ? (e.map.set(e.position - 1, {
5783
5895
  node: o.node,
5784
5896
  offset: o.offset
5785
5897
  }), e.lastMapped = {
@@ -5802,7 +5914,7 @@ var yu = /* @__PURE__ */ new Set([
5802
5914
  }
5803
5915
  if (i.nodeType !== 1) return;
5804
5916
  const o = i;
5805
- if (!Ms(o))
5917
+ if (!Cs(o))
5806
5918
  for (const s of Array.from(o.childNodes)) r(s);
5807
5919
  };
5808
5920
  return r(t.documentElement), P(n.join(" "));
@@ -5815,7 +5927,7 @@ var yu = /* @__PURE__ */ new Set([
5815
5927
  }
5816
5928
  if (a.nodeType !== 1) return;
5817
5929
  const l = a;
5818
- if (!(As(l) || Ms(l)))
5930
+ if (!(As(l) || Cs(l)))
5819
5931
  for (const c of Array.from(l.childNodes)) i(c);
5820
5932
  };
5821
5933
  i(e), Is(r);
@@ -5856,7 +5968,7 @@ var yu = /* @__PURE__ */ new Set([
5856
5968
  if (f) {
5857
5969
  a();
5858
5970
  const p = _h(h, f, t);
5859
- bh(n, p);
5971
+ yh(n, p);
5860
5972
  const m = P(p.text);
5861
5973
  r.push({
5862
5974
  type: "math",
@@ -5878,8 +5990,8 @@ var yu = /* @__PURE__ */ new Set([
5878
5990
  chunks: r,
5879
5991
  containsMathMarkup: s
5880
5992
  };
5881
- }, Ct = (e, t) => {
5882
- if (!yh(e)) {
5993
+ }, Mt = (e, t) => {
5994
+ if (!bh(e)) {
5883
5995
  const { text: n, map: r } = Tn(e, t);
5884
5996
  return {
5885
5997
  visibleText: n,
@@ -5911,7 +6023,7 @@ var yu = /* @__PURE__ */ new Set([
5911
6023
  if (e.type !== "text" || !e.sourceElement) return !1;
5912
6024
  const t = e.sourceElement.tagName.toUpperCase(), n = (e.sourceElement.getAttribute("role") || "").toLowerCase();
5913
6025
  return xh.has(t) || Eh.has(n);
5914
- }, Mh = async (e) => {
6026
+ }, Ch = async (e) => {
5915
6027
  const t = e.resolveMathSpeech ?? wh, { visibleText: n } = e, r = [];
5916
6028
  let i = 0;
5917
6029
  const o = (a) => {
@@ -5929,18 +6041,18 @@ var yu = /* @__PURE__ */ new Set([
5929
6041
  offset: 0
5930
6042
  }] : Hr(l.text, { locale: e.language });
5931
6043
  for (const m of p) {
5932
- const y = P(m.text);
5933
- if (!y) continue;
5934
- const b = o(y);
6044
+ const b = P(m.text);
6045
+ if (!b) continue;
6046
+ const y = o(b);
5935
6047
  r.push({
5936
6048
  sourceChunkIndex: a,
5937
6049
  segment: {
5938
6050
  kind: "prose",
5939
- spokenText: y,
5940
- visibleText: y,
5941
- visibleSpan: b
6051
+ spokenText: b,
6052
+ visibleText: b,
6053
+ visibleSpan: y
5942
6054
  }
5943
- }), s.push(y);
6055
+ }), s.push(b);
5944
6056
  }
5945
6057
  continue;
5946
6058
  }
@@ -5968,7 +6080,7 @@ var yu = /* @__PURE__ */ new Set([
5968
6080
  visibleText: n,
5969
6081
  plainSpeechText: P(s.join(" "))
5970
6082
  };
5971
- }, Ch = (e) => (e || "en").split("-")[0].toLowerCase() || "en", Oh = "sre-v1", Ih = 256, mr = (e) => Array.isArray(e) ? `array:[${e.map(mr).join(",")}]` : e && typeof e == "object" ? `object:{${Object.entries(e).sort(([t], [n]) => t.localeCompare(n)).map(([t, n]) => `${JSON.stringify(t)}:${mr(n)}`).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)}`, ji = (e, t, n, r) => `${Oh}\0${Ch(e)}\0${t ? "ssml" : "plain"}\0${mr(n ?? null)}\0${r}`, $h = (e = {}) => {
6083
+ }, Mh = (e) => (e || "en").split("-")[0].toLowerCase() || "en", Oh = "sre-v1", Ih = 256, mr = (e) => Array.isArray(e) ? `array:[${e.map(mr).join(",")}]` : e && typeof e == "object" ? `object:{${Object.entries(e).sort(([t], [n]) => t.localeCompare(n)).map(([t, n]) => `${JSON.stringify(t)}:${mr(n)}`).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)}`, ji = (e, t, n, r) => `${Oh}\0${Mh(e)}\0${t ? "ssml" : "plain"}\0${mr(n ?? null)}\0${r}`, $h = (e = {}) => {
5972
6084
  const t = Math.max(1, e.maxEntries ?? Ih), n = e.resolve ?? ((o, s) => cs([o], s)), r = /* @__PURE__ */ new Map(), i = (o, s) => {
5973
6085
  for (r.delete(o), r.set(o, s); r.size > t; ) {
5974
6086
  const a = r.keys().next().value;
@@ -5976,7 +6088,7 @@ var yu = /* @__PURE__ */ new Set([
5976
6088
  }
5977
6089
  };
5978
6090
  return async (o, s) => {
5979
- const a = Cn(s.mathSpeech), l = s.produceSsml === !0, c = ji(s.language, l, a, o.mathml), u = r.get(c);
6091
+ const a = Mn(s.mathSpeech), l = s.produceSsml === !0, c = ji(s.language, l, a, o.mathml), u = r.get(c);
5980
6092
  if (u)
5981
6093
  return r.delete(c), r.set(c, u), u;
5982
6094
  const h = await n(o, {
@@ -6028,7 +6140,7 @@ var yu = /* @__PURE__ */ new Set([
6028
6140
  };
6029
6141
  let r, i;
6030
6142
  if (e.catalogAlignment)
6031
- r = Mu(e.catalogAlignment, t.position, t.length, t.word), i = e.catalogAlignment.spokenText;
6143
+ r = Cu(e.catalogAlignment, t.position, t.length, t.word), i = e.catalogAlignment.spokenText;
6032
6144
  else {
6033
6145
  const o = Lh(e, t);
6034
6146
  r = o.boundary, i = o.spokenText;
@@ -6078,7 +6190,7 @@ var yu = /* @__PURE__ */ new Set([
6078
6190
  ["mn", "mjx-mn"],
6079
6191
  ["mo", "mjx-mo"],
6080
6192
  ["mtext", "mjx-mtext"]
6081
- ]), yr = "mi,mn,mo,mtext", Rs = "mjx-mi,mjx-mn,mjx-mo,mjx-mtext", Ls = [
6193
+ ]), br = "mi,mn,mo,mtext", Rs = "mjx-mi,mjx-mn,mjx-mo,mjx-mtext", Ls = [
6082
6194
  "mjx-mfrac",
6083
6195
  "mjx-msqrt",
6084
6196
  "mjx-mroot",
@@ -6096,7 +6208,7 @@ var yu = /* @__PURE__ */ new Set([
6096
6208
  }, Vi = (e) => !e || On(e) ? !1 : !Tt(e), Ns = (e) => {
6097
6209
  const t = e.getBoundingClientRect?.();
6098
6210
  return !!(t && t.width > 0 && t.height > 0);
6099
- }, br = (e) => {
6211
+ }, yr = (e) => {
6100
6212
  let t = e;
6101
6213
  for (; t; ) {
6102
6214
  if (t.localName?.toLowerCase() === "math") return t;
@@ -6112,9 +6224,9 @@ var yu = /* @__PURE__ */ new Set([
6112
6224
  return !0;
6113
6225
  }, Wh = (e, t) => {
6114
6226
  if (!e || !$s.has(e.localName.toLowerCase()) || t.querySelector(Ls)) return null;
6115
- const n = br(e), r = t.querySelector("mjx-math");
6227
+ const n = yr(e), r = t.querySelector("mjx-math");
6116
6228
  if (!n || !r) return null;
6117
- const i = Array.from(n.querySelectorAll(yr)), o = i.indexOf(e);
6229
+ const i = Array.from(n.querySelectorAll(br)), o = i.indexOf(e);
6118
6230
  if (o < 0) return null;
6119
6231
  const s = Array.from(r.querySelectorAll(Rs));
6120
6232
  if (!Ws(i, s)) return null;
@@ -6124,13 +6236,13 @@ var yu = /* @__PURE__ */ new Set([
6124
6236
  const t = On(e);
6125
6237
  if (t) {
6126
6238
  if (t.querySelector(Ls)) return "expression";
6127
- const r = br(e) ?? e, i = t.querySelector("mjx-math");
6239
+ const r = yr(e) ?? e, i = t.querySelector("mjx-math");
6128
6240
  if (!i) return "expression";
6129
- const o = Array.from(r.querySelectorAll(yr)), s = Array.from(i.querySelectorAll(Rs));
6241
+ const o = Array.from(r.querySelectorAll(br)), s = Array.from(i.querySelectorAll(Rs));
6130
6242
  return Ws(o, s) && s.some((a) => Ns(a)) ? "token" : "expression";
6131
6243
  }
6132
- const n = br(e) ?? e;
6133
- return Array.from(n.querySelectorAll(yr)).some((r) => !Tt(r)) ? "token" : "expression";
6244
+ const n = yr(e) ?? e;
6245
+ return Array.from(n.querySelectorAll(br)).some((r) => !Tt(r)) ? "token" : "expression";
6134
6246
  }, Tr = (e) => {
6135
6247
  const t = Ps(e), n = On(t);
6136
6248
  if (n) {
@@ -6196,7 +6308,7 @@ var yu = /* @__PURE__ */ new Set([
6196
6308
  }
6197
6309
  }, Fh = (e, t) => {
6198
6310
  if (!e.catalogAlignment || t.chunkSpokenStart === null) return null;
6199
- const n = Cu(e.catalogAlignment, t.chunkSpokenStart);
6311
+ const n = Mu(e.catalogAlignment, t.chunkSpokenStart);
6200
6312
  if (!n) return null;
6201
6313
  const r = zs(e.visibleMap, n.start, n.end);
6202
6314
  return r ? {
@@ -6347,7 +6459,7 @@ var yu = /* @__PURE__ */ new Set([
6347
6459
  }
6348
6460
  return r;
6349
6461
  }, td = async (e) => {
6350
- const t = Ct(e.contentRoot, e.textProcessingOptions), n = await Mh({
6462
+ const t = Mt(e.contentRoot, e.textProcessingOptions), n = await Ch({
6351
6463
  chunks: t.chunks,
6352
6464
  visibleText: t.visibleText,
6353
6465
  language: e.language,
@@ -6429,13 +6541,13 @@ var yu = /* @__PURE__ */ new Set([
6429
6541
  }) : void 0,
6430
6542
  plainFallback: Bs(e, t)
6431
6543
  };
6432
- }, id = (e, t = {}) => e.items.map(({ segment: n, anchor: r }) => n.kind === "prose" ? nd(n, r) : t.format === "ssml" && n.ssml ? rd(n, r, n.ssml) : Bs(n, r)), od = "pie-tts-control-handoff", C;
6544
+ }, id = (e, t = {}) => e.items.map(({ segment: n, anchor: r }) => n.kind === "prose" ? nd(n, r) : t.format === "ssml" && n.ssml ? rd(n, r, n.ssml) : Bs(n, r)), od = "pie-tts-control-handoff", M;
6433
6545
  (function(e) {
6434
6546
  e.IDLE = "idle", e.LOADING = "loading", e.PLAYING = "playing", e.PAUSED = "paused", e.ERROR = "error";
6435
- })(C || (C = {}));
6547
+ })(M || (M = {}));
6436
6548
  var Ds = (e, t) => e === t || e.startContainer === t.startContainer && e.startOffset === t.startOffset && e.endContainer === t.endContainer && e.endOffset === t.endOffset, sd = (e, t) => e === t ? !0 : !e || !t || e.type !== t.type || e.quality !== t.quality ? !1 : e.type === "range" && t.type === "range" ? Ds(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, ad = class _r {
6437
6549
  constructor() {
6438
- g(this, "currentProvider", null), g(this, "provider", null), g(this, "highlightCoordinator", null), g(this, "highlightTargetResolverProvider", null), g(this, "catalogResolver", null), g(this, "state", C.IDLE), g(this, "ttsConfig", {}), g(this, "currentText", null), g(this, "currentContentElement", null), g(this, "normalizedToDOM", /* @__PURE__ */ new Map()), g(this, "listeners", /* @__PURE__ */ new Map()), g(this, "lastError", null), g(this, "speakRunId", 0), g(this, "currentBoundaryOffset", 0), g(this, "activeWordBoundaryOffset", 0), g(this, "seekSegments", []), g(this, "playbackChunks", []), g(this, "sentenceHighlightSegments", []), g(this, "currentSeekSegmentIndex", 0), g(this, "activeSentenceStartOffset", null), g(this, "activeHighlightMode", "word"), g(this, "lastRenderedRegionTarget", null), g(this, "telemetryReporter", null), g(this, "generatedMathSpeechResolver", $h());
6550
+ g(this, "currentProvider", null), g(this, "provider", null), g(this, "highlightCoordinator", null), g(this, "highlightTargetResolverProvider", null), g(this, "catalogResolver", null), g(this, "state", M.IDLE), g(this, "ttsConfig", {}), g(this, "currentText", null), g(this, "currentContentElement", null), g(this, "normalizedToDOM", /* @__PURE__ */ new Map()), g(this, "listeners", /* @__PURE__ */ new Map()), g(this, "lastError", null), g(this, "speakRunId", 0), g(this, "currentBoundaryOffset", 0), g(this, "activeWordBoundaryOffset", 0), g(this, "seekSegments", []), g(this, "playbackChunks", []), g(this, "sentenceHighlightSegments", []), g(this, "currentSeekSegmentIndex", 0), g(this, "activeSentenceStartOffset", null), g(this, "activeHighlightMode", "word"), g(this, "lastRenderedRegionTarget", null), g(this, "telemetryReporter", null), g(this, "generatedMathSpeechResolver", $h());
6439
6551
  }
6440
6552
  debugLog(t, n) {
6441
6553
  _r.debugEnabled && (n === void 0 ? console.debug(t) : console.debug(t, n));
@@ -6615,7 +6727,7 @@ var Ds = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
6615
6727
  }
6616
6728
  getMathSpeechOptions() {
6617
6729
  const t = (this.ttsConfig.providerOptions || {}).mathSpeech;
6618
- return Cn(t);
6730
+ return Mn(t);
6619
6731
  }
6620
6732
  buildPositionMap(t, n, r) {
6621
6733
  this.normalizedToDOM.clear();
@@ -6794,10 +6906,10 @@ var Ds = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
6794
6906
  }
6795
6907
  let u = a;
6796
6908
  for (const h of [...c, l]) {
6797
- const f = r.substring(u, h), p = f.match(/^\s*/)?.[0].length || 0, m = f.match(/\s*$/)?.[0].length || 0, y = u + p, b = h - m;
6798
- b > y && o.push({
6799
- text: r.substring(y, b),
6800
- startOffset: y,
6909
+ const f = r.substring(u, h), p = f.match(/^\s*/)?.[0].length || 0, m = f.match(/\s*$/)?.[0].length || 0, b = u + p, y = h - m;
6910
+ y > b && o.push({
6911
+ text: r.substring(b, y),
6912
+ startOffset: b,
6801
6913
  pauseMsAfter: 0
6802
6914
  }), u = h;
6803
6915
  }
@@ -6919,31 +7031,31 @@ var Ds = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
6919
7031
  }), this.initializeSpeakTracking(a, n);
6920
7032
  const p = n?.highlightModeOverride || (h ? this.resolveHighlightMode() : "sentence");
6921
7033
  this.activeHighlightMode = p, this.activeWordBoundaryOffset = n?.wordBoundaryOffset || 0;
6922
- const m = this.hasExplicitBreakSemantics(o), y = !!this.currentContentElement && !c && !m && h;
6923
- if (this.playbackChunks = f?.length ? f : [], this.seekSegments = this.playbackChunks.length ? this.createSeekSegmentsFromSpeechChunks(this.playbackChunks) : m || !h ? [] : y && this.currentContentElement ? this.createSpeechPlan(this.currentContentElement, l) : this.createSeekSegmentsFromText(a), this.sentenceHighlightSegments = m ? [] : this.createSentenceHighlightSegments({
7034
+ const m = this.hasExplicitBreakSemantics(o), b = !!this.currentContentElement && !c && !m && h;
7035
+ if (this.playbackChunks = f?.length ? f : [], this.seekSegments = this.playbackChunks.length ? this.createSeekSegmentsFromSpeechChunks(this.playbackChunks) : m || !h ? [] : b && this.currentContentElement ? this.createSpeechPlan(this.currentContentElement, l) : this.createSeekSegmentsFromText(a), this.sentenceHighlightSegments = m ? [] : this.createSentenceHighlightSegments({
6924
7036
  contentToSpeak: a,
6925
- shouldUsePlan: y,
7037
+ shouldUsePlan: b,
6926
7038
  playbackSegments: this.seekSegments
6927
- }), this.setState(C.LOADING), this.prepareHighlightsForSpeak({
7039
+ }), this.setState(M.LOADING), this.prepareHighlightsForSpeak({
6928
7040
  contentToSpeak: a,
6929
7041
  options: n,
6930
7042
  highlightMode: p,
6931
- shouldUsePlan: y
7043
+ shouldUsePlan: b
6932
7044
  }), h ? this.configureWordBoundaryHighlighting({
6933
7045
  highlightMode: p,
6934
7046
  wordBoundaryOffset: n?.wordBoundaryOffset || 0
6935
- }) : this.clearWordBoundaryHighlighting(), this.setState(C.PLAYING), await this.executeSpeakPlayback({
6936
- shouldUsePlan: y,
7047
+ }) : this.clearWordBoundaryHighlighting(), this.setState(M.PLAYING), await this.executeSpeakPlayback({
7048
+ shouldUsePlan: b,
6937
7049
  runId: r,
6938
7050
  highlightMode: p,
6939
7051
  contentToSpeak: s,
6940
7052
  speechChunks: f
6941
7053
  }), r !== this.speakRunId) return;
6942
- this.setState(C.IDLE), this.clearHighlightsAndTracking();
7054
+ this.setState(M.IDLE), this.clearHighlightsAndTracking();
6943
7055
  } catch (i) {
6944
7056
  let o = i;
6945
7057
  if (console.error("TTS error:", o), this.lastError = o instanceof Error ? o.message : String(o), r !== this.speakRunId) return;
6946
- throw this.setState(C.ERROR), this.clearHighlightsAndTracking(), o;
7058
+ throw this.setState(M.ERROR), this.clearHighlightsAndTracking(), o;
6947
7059
  }
6948
7060
  }
6949
7061
  async switchProviderToBrowser(t, n) {
@@ -7019,7 +7131,7 @@ var Ds = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
7019
7131
  context: n.catalogContext
7020
7132
  });
7021
7133
  if (o) {
7022
- const s = n?.contentElement && Ct(n.contentElement, this.getTextProcessingOptions(n.language)).visibleText || r, a = P(o.content);
7134
+ const s = n?.contentElement && Mt(n.contentElement, this.getTextProcessingOptions(n.language)).visibleText || r, a = P(o.content);
7023
7135
  return this.debugLog(`[TTSService] Using catalog content for "${n.catalogId}" (${o.language})`), {
7024
7136
  contentToSpeak: o.content,
7025
7137
  speechText: o.content,
@@ -7053,7 +7165,7 @@ var Ds = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
7053
7165
  if (!this.catalogResolver) return null;
7054
7166
  const i = this.collectCatalogSpeechChunks(t, r);
7055
7167
  if (!i.some((a) => a.sourceElement)) return null;
7056
- const o = P(i.map((a) => a.speechText).join(" ")), s = Ct(t, this.getTextProcessingOptions(r.language)).visibleText || n;
7168
+ const o = P(i.map((a) => a.speechText).join(" ")), s = Mt(t, this.getTextProcessingOptions(r.language)).visibleText || n;
7057
7169
  return {
7058
7170
  contentToSpeak: o,
7059
7171
  speechText: o,
@@ -7089,8 +7201,8 @@ var Ds = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
7089
7201
  }, a = (u, h) => {
7090
7202
  const f = l(u);
7091
7203
  if (f.length !== 1) return null;
7092
- const p = f[0], m = Ct(p, this.getTextProcessingOptions(n.language)).visibleText || P(p.textContent || ""), y = (b) => P(b).replace(/\s+/g, "");
7093
- return y(m) === y(h) ? p : null;
7204
+ const p = f[0], m = Mt(p, this.getTextProcessingOptions(n.language)).visibleText || P(p.textContent || ""), b = (y) => P(y).replace(/\s+/g, "");
7205
+ return b(m) === b(h) ? p : null;
7094
7206
  }, l = (u) => {
7095
7207
  const h = Array.from(u.querySelectorAll("math"));
7096
7208
  return u.localName?.toLowerCase() === "math" ? [u, ...h] : h;
@@ -7104,16 +7216,16 @@ var Ds = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
7104
7216
  const h = u, f = s(h);
7105
7217
  if (f) {
7106
7218
  o();
7107
- const p = Ct(h, this.getTextProcessingOptions(n.language)), m = p.visibleText || P(h.textContent || ""), y = ms({
7219
+ const p = Mt(h, this.getTextProcessingOptions(n.language)), m = p.visibleText || P(h.textContent || ""), b = ms({
7108
7220
  speechText: f.content,
7109
7221
  visibleText: m
7110
- }), b = a(h, m), E = b ? Sn({
7111
- mathElement: b,
7222
+ }), y = a(h, m), E = y ? Sn({
7223
+ mathElement: y,
7112
7224
  speechText: f.content
7113
- }) : void 0, R = E ? void 0 : l(h).map((M) => ({
7114
- element: M,
7225
+ }) : void 0, R = E ? void 0 : l(h).map((C) => ({
7226
+ element: C,
7115
7227
  alignment: Sn({
7116
- mathElement: M,
7228
+ mathElement: C,
7117
7229
  speechText: f.content
7118
7230
  })
7119
7231
  })), F = P(f.content);
@@ -7123,8 +7235,8 @@ var Ds = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
7123
7235
  sourceElement: h,
7124
7236
  regionElement: Hs(h, t),
7125
7237
  speechMatchesVisibleText: F === m,
7126
- playbackMode: y.playbackMode,
7127
- alignment: y,
7238
+ playbackMode: b.playbackMode,
7239
+ alignment: b,
7128
7240
  mathAlignment: E,
7129
7241
  mathAlignments: R,
7130
7242
  visibleMap: p.map
@@ -7369,10 +7481,10 @@ var Ds = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
7369
7481
  });
7370
7482
  }
7371
7483
  pause() {
7372
- this.provider && this.state === C.PLAYING && (this.provider.pause(), this.setState(C.PAUSED));
7484
+ this.provider && this.state === M.PLAYING && (this.provider.pause(), this.setState(M.PAUSED));
7373
7485
  }
7374
7486
  resume() {
7375
- this.provider && this.state === C.PAUSED && (this.provider.resume(), this.setState(C.PLAYING));
7487
+ this.provider && this.state === M.PAUSED && (this.provider.resume(), this.setState(M.PLAYING));
7376
7488
  }
7377
7489
  normalizePlaybackRate(t) {
7378
7490
  return Number.isFinite(t) ? Math.max(0.25, Math.min(4, t)) : 1;
@@ -7382,7 +7494,7 @@ var Ds = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
7382
7494
  const n = Math.max(0, Math.min(this.seekSegments.length - 1, t)), r = this.playbackChunks.length ? this.playbackChunks.slice(n) : null;
7383
7495
  this.speakRunId += 1, this.provider.onWordBoundary = void 0, this.provider.stop(), this.currentSeekSegmentIndex = n;
7384
7496
  const i = ++this.speakRunId, o = this.seekSegments.slice(n);
7385
- this.setState(C.PLAYING);
7497
+ this.setState(M.PLAYING);
7386
7498
  try {
7387
7499
  if (this.configureWordBoundaryHighlighting({
7388
7500
  highlightMode: this.activeHighlightMode,
@@ -7396,18 +7508,18 @@ var Ds = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
7396
7508
  }
7397
7509
  else await this.speakWithPlan(o, i, { highlightMode: this.activeHighlightMode });
7398
7510
  if (i !== this.speakRunId) return;
7399
- this.setState(C.IDLE), this.clearHighlightsAndTracking(), this.highlightTargetResolverProvider = null;
7511
+ this.setState(M.IDLE), this.clearHighlightsAndTracking(), this.highlightTargetResolverProvider = null;
7400
7512
  } catch (s) {
7401
7513
  if (i !== this.speakRunId) return;
7402
- throw this.lastError = s instanceof Error ? s.message : String(s), this.setState(C.ERROR), this.clearHighlightsAndTracking(), this.highlightTargetResolverProvider = null, s;
7514
+ throw this.lastError = s instanceof Error ? s.message : String(s), this.setState(M.ERROR), this.clearHighlightsAndTracking(), this.highlightTargetResolverProvider = null, s;
7403
7515
  }
7404
7516
  }
7405
7517
  async setPlaybackRate(t) {
7406
7518
  const n = this.normalizePlaybackRate(t);
7407
- await this.updateSettings({ rate: n }), !(this.state !== C.PLAYING || !this.currentText || this.seekSegments.length === 0 || this.hasExplicitBreakSemantics(this.currentText)) && await this.restartFromSeekIndex(this.getCurrentSeekSegmentIndex());
7519
+ await this.updateSettings({ rate: n }), !(this.state !== M.PLAYING || !this.currentText || this.seekSegments.length === 0 || this.hasExplicitBreakSemantics(this.currentText)) && await this.restartFromSeekIndex(this.getCurrentSeekSegmentIndex());
7408
7520
  }
7409
7521
  async seekBy(t) {
7410
- if (!this.provider || !this.currentText || this.state !== C.PLAYING && this.state !== C.PAUSED || this.hasExplicitBreakSemantics(this.currentText) || this.seekSegments.length === 0) return;
7522
+ if (!this.provider || !this.currentText || this.state !== M.PLAYING && this.state !== M.PAUSED || this.hasExplicitBreakSemantics(this.currentText) || this.seekSegments.length === 0) return;
7411
7523
  const n = Number.isFinite(t) ? Math.trunc(t) : 0;
7412
7524
  if (n === 0) return;
7413
7525
  const r = this.getCurrentSeekSegmentIndex(), i = Math.max(0, Math.min(this.seekSegments.length - 1, r + n));
@@ -7422,16 +7534,16 @@ var Ds = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
7422
7534
  await this.seekBy(-n);
7423
7535
  }
7424
7536
  stop() {
7425
- this.provider && (this.speakRunId += 1, this.provider.onWordBoundary = void 0, this.provider.stop(), this.highlightTargetResolverProvider = null, this.setState(C.IDLE), this.currentText = null, this.highlightCoordinator && this.highlightCoordinator.clearTTS(), this.lastRenderedRegionTarget = null, this.currentContentElement = null, this.normalizedToDOM.clear(), this.currentBoundaryOffset = 0, this.activeWordBoundaryOffset = 0, this.seekSegments = [], this.playbackChunks = [], this.sentenceHighlightSegments = [], this.currentSeekSegmentIndex = 0, this.activeSentenceStartOffset = null);
7537
+ this.provider && (this.speakRunId += 1, this.provider.onWordBoundary = void 0, this.provider.stop(), this.highlightTargetResolverProvider = null, this.setState(M.IDLE), this.currentText = null, this.highlightCoordinator && this.highlightCoordinator.clearTTS(), this.lastRenderedRegionTarget = null, this.currentContentElement = null, this.normalizedToDOM.clear(), this.currentBoundaryOffset = 0, this.activeWordBoundaryOffset = 0, this.seekSegments = [], this.playbackChunks = [], this.sentenceHighlightSegments = [], this.currentSeekSegmentIndex = 0, this.activeSentenceStartOffset = null);
7426
7538
  }
7427
7539
  requestControlHandoff() {
7428
7540
  typeof window > "u" || window.dispatchEvent(new CustomEvent(od, { detail: { source: "host" } }));
7429
7541
  }
7430
7542
  isPlaying() {
7431
- return this.state === C.PLAYING;
7543
+ return this.state === M.PLAYING;
7432
7544
  }
7433
7545
  isPaused() {
7434
- return this.state === C.PAUSED;
7546
+ return this.state === M.PAUSED;
7435
7547
  }
7436
7548
  getState() {
7437
7549
  return this.state;
@@ -7459,8 +7571,8 @@ var Ds = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
7459
7571
  providerId: "tts",
7460
7572
  previousState: n,
7461
7573
  state: t
7462
- }), t === C.PLAYING) {
7463
- const r = n === C.PAUSED ? "pie-tool-playback-resume" : "pie-tool-playback-start";
7574
+ }), t === M.PLAYING) {
7575
+ const r = n === M.PAUSED ? "pie-tool-playback-resume" : "pie-tool-playback-start";
7464
7576
  this.emitTelemetry(r, {
7465
7577
  toolId: "textToSpeech",
7466
7578
  providerId: "tts",
@@ -7469,7 +7581,7 @@ var Ds = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
7469
7581
  });
7470
7582
  return;
7471
7583
  }
7472
- if (t === C.PAUSED) {
7584
+ if (t === M.PAUSED) {
7473
7585
  this.emitTelemetry("pie-tool-playback-pause", {
7474
7586
  toolId: "textToSpeech",
7475
7587
  providerId: "tts",
@@ -7478,7 +7590,7 @@ var Ds = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
7478
7590
  });
7479
7591
  return;
7480
7592
  }
7481
- if (t === C.ERROR) {
7593
+ if (t === M.ERROR) {
7482
7594
  this.emitTelemetry("pie-tool-playback-error", {
7483
7595
  toolId: "textToSpeech",
7484
7596
  providerId: "tts",
@@ -7488,7 +7600,7 @@ var Ds = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
7488
7600
  });
7489
7601
  return;
7490
7602
  }
7491
- t === C.IDLE && (n === C.PLAYING || n === C.PAUSED || n === C.LOADING) && this.emitTelemetry("pie-tool-playback-stop", {
7603
+ t === M.IDLE && (n === M.PLAYING || n === M.PAUSED || n === M.LOADING) && this.emitTelemetry("pie-tool-playback-stop", {
7492
7604
  toolId: "textToSpeech",
7493
7605
  providerId: "tts",
7494
7606
  previousState: n,
@@ -7547,7 +7659,7 @@ function hd(e, t) {
7547
7659
  width: 0,
7548
7660
  height: 0,
7549
7661
  mouseY: 0
7550
- })), m = /* @__PURE__ */ z(""), y = /* @__PURE__ */ z("#ffff00"), b = /* @__PURE__ */ z(0.3), E = /* @__PURE__ */ z("highlight"), R = /* @__PURE__ */ z(!1);
7662
+ })), m = /* @__PURE__ */ z(""), b = /* @__PURE__ */ z("#ffff00"), y = /* @__PURE__ */ z(0.3), E = /* @__PURE__ */ z("highlight"), R = /* @__PURE__ */ z(!1);
7551
7663
  const F = [
7552
7664
  {
7553
7665
  name: "Yellow",
@@ -7569,8 +7681,8 @@ function hd(e, t) {
7569
7681
  name: "Orange",
7570
7682
  value: "#ffa500"
7571
7683
  }
7572
- ], M = 10, U = 10;
7573
- Mt(() => {
7684
+ ], C = 10, U = 10;
7685
+ Ct(() => {
7574
7686
  if (v(o))
7575
7687
  return ac(v(o), (w) => {
7576
7688
  $(s, w, !0);
@@ -7580,11 +7692,11 @@ function hd(e, t) {
7580
7692
  $(m, w, !0), setTimeout(() => $(m, ""), 1e3);
7581
7693
  }
7582
7694
  function jt() {
7583
- const w = (F.findIndex((D) => D.value === v(y)) + 1) % F.length;
7584
- $(y, F[w].value, !0), H(`Color changed to ${F[w].name}`);
7695
+ const w = (F.findIndex((D) => D.value === v(b)) + 1) % F.length;
7696
+ $(b, F[w].value, !0), H(`Color changed to ${F[w].name}`);
7585
7697
  }
7586
7698
  function _t(w) {
7587
- $(b, Math.max(0.1, Math.min(0.9, v(b) + w)), !0), H(`Opacity ${Math.round(v(b) * 100)}%`);
7699
+ $(y, Math.max(0.1, Math.min(0.9, v(y) + w)), !0), H(`Opacity ${Math.round(v(y) * 100)}%`);
7588
7700
  }
7589
7701
  function Vt() {
7590
7702
  $(E, v(E) === "highlight" ? "obscure" : "highlight", !0), H(`Mode changed to ${v(E) === "highlight" ? "highlight" : "masking"}`);
@@ -7622,16 +7734,16 @@ function hd(e, t) {
7622
7734
  let D = !1;
7623
7735
  switch (w.key) {
7624
7736
  case "ArrowUp":
7625
- v(u).y -= M, H(`Moved up to ${Math.round(v(u).y)}`), D = !0;
7737
+ v(u).y -= C, H(`Moved up to ${Math.round(v(u).y)}`), D = !0;
7626
7738
  break;
7627
7739
  case "ArrowDown":
7628
- v(u).y += M, H(`Moved down to ${Math.round(v(u).y)}`), D = !0;
7740
+ v(u).y += C, H(`Moved down to ${Math.round(v(u).y)}`), D = !0;
7629
7741
  break;
7630
7742
  case "ArrowLeft":
7631
- v(u).x -= M, H(`Moved left to ${Math.round(v(u).x)}`), D = !0;
7743
+ v(u).x -= C, H(`Moved left to ${Math.round(v(u).x)}`), D = !0;
7632
7744
  break;
7633
7745
  case "ArrowRight":
7634
- v(u).x += M, H(`Moved right to ${Math.round(v(u).x)}`), D = !0;
7746
+ v(u).x += C, H(`Moved right to ${Math.round(v(u).x)}`), D = !0;
7635
7747
  break;
7636
7748
  case "+":
7637
7749
  case "=":
@@ -7658,16 +7770,16 @@ function hd(e, t) {
7658
7770
  }
7659
7771
  D && w.preventDefault();
7660
7772
  }
7661
- Mt(() => {
7773
+ Ct(() => {
7662
7774
  v(a) && r() && !v(R) && (v(a).registerTool(r(), "Line Reader", void 0, hr.TOOL), $(R, !0));
7663
7775
  }), zl(() => () => {
7664
7776
  v(a) && r() && v(a).unregisterTool(r());
7665
- }), Mt(() => {
7777
+ }), Ct(() => {
7666
7778
  v(a) && v(o) && r() && v(a).updateToolElement(r(), v(o));
7667
- }), Mt(() => {
7779
+ }), Ct(() => {
7668
7780
  n() && v(o) && setTimeout(() => v(o)?.focus(), 100);
7669
7781
  });
7670
- let Us = /* @__PURE__ */ ai(() => v(y) + Math.round(v(b) * 255).toString(16).padStart(2, "0"));
7782
+ let Us = /* @__PURE__ */ ai(() => v(b) + Math.round(v(y) * 255).toString(16).padStart(2, "0"));
7671
7783
  var Gs = {
7672
7784
  get visible() {
7673
7785
  return n();
@@ -7681,26 +7793,26 @@ function hd(e, t) {
7681
7793
  set toolId(w = "lineReader") {
7682
7794
  r(w), Zn();
7683
7795
  }
7684
- }, Vr = Cl(), Ys = Pn(Vr), Ks = (w) => {
7796
+ }, Vr = Ml(), Ys = Pn(Vr), Ks = (w) => {
7685
7797
  var D = cd(), Rn = Pn(D), Xs = ci(Rn, !0);
7686
7798
  ti(Rn);
7687
- var qr = St(Rn, 2), Js = (ye) => {
7799
+ var qr = St(Rn, 2), Js = (be) => {
7688
7800
  var qt = ld(), Gr = Pn(qt), Yr = St(Gr, 2), Kr = St(Yr, 2), Zs = St(Kr, 2);
7689
7801
  ui((ea, ta) => {
7690
7802
  nt(Gr, `height: ${ea ?? ""}px;`), nt(Yr, `top: ${v(u).y + v(h).height / 2}px;`), nt(Kr, `top: ${v(u).y - v(h).height / 2}px; height: ${v(h).height ?? ""}px; width: ${ta ?? ""}px;`), nt(Zs, `top: ${v(u).y - v(h).height / 2}px; height: ${v(h).height ?? ""}px; left: ${v(u).x + v(h).width / 2}px;`);
7691
- }, [() => Math.max(0, v(u).y - v(h).height / 2), () => Math.max(0, v(u).x - v(h).width / 2)]), en(ye, qt);
7803
+ }, [() => Math.max(0, v(u).y - v(h).height / 2), () => Math.max(0, v(u).x - v(h).width / 2)]), en(be, qt);
7692
7804
  };
7693
- bi(qr, (ye) => {
7694
- v(E) === "obscure" && ye(Js);
7805
+ yi(qr, (be) => {
7806
+ v(E) === "obscure" && be(Js);
7695
7807
  });
7696
7808
  var Oe = St(qr, 2);
7697
7809
  let Ur;
7698
7810
  var Qs = ci(Oe);
7699
- Qi(2), ti(Oe), Jl(Oe, (ye) => $(o, ye), () => v(o)), ui((ye, qt) => {
7700
- Ll(Xs, v(m)), Ur = jl(Oe, 1, "pie-tool-line-reader svelte-1a3d6dx", null, Ur, { "pie-tool-line-reader--masking-mode": v(E) === "obscure" }), nt(Oe, `left: ${v(u).x ?? ""}px; top: ${v(u).y ?? ""}px; width: ${v(h).width ?? ""}px; height: ${v(h).height ?? ""}px;`), Gl(Oe, "aria-label", `Line Reader tool. Mode: ${v(E) === "highlight" ? "Highlight" : "Masking"}. Use arrow keys to move, +/- to resize height, C to change color, [ and ] to adjust opacity, M to toggle mode. Current color: ${ye ?? ""}, Opacity: ${qt ?? ""}%`), nt(Qs, `background-color: ${v(Us) ?? ""};`);
7701
- }, [() => F.find((ye) => ye.value === v(y))?.name, () => Math.round(v(b) * 100)]), pi("pointerdown", Oe, Fs), pi("keydown", Oe, qs), en(w, D);
7811
+ Qi(2), ti(Oe), Jl(Oe, (be) => $(o, be), () => v(o)), ui((be, qt) => {
7812
+ Ll(Xs, v(m)), Ur = jl(Oe, 1, "pie-tool-line-reader svelte-1a3d6dx", null, Ur, { "pie-tool-line-reader--masking-mode": v(E) === "obscure" }), nt(Oe, `left: ${v(u).x ?? ""}px; top: ${v(u).y ?? ""}px; width: ${v(h).width ?? ""}px; height: ${v(h).height ?? ""}px;`), Gl(Oe, "aria-label", `Line Reader tool. Mode: ${v(E) === "highlight" ? "Highlight" : "Masking"}. Use arrow keys to move, +/- to resize height, C to change color, [ and ] to adjust opacity, M to toggle mode. Current color: ${be ?? ""}, Opacity: ${qt ?? ""}%`), nt(Qs, `background-color: ${v(Us) ?? ""};`);
7813
+ }, [() => F.find((be) => be.value === v(b))?.name, () => Math.round(v(y) * 100)]), pi("pointerdown", Oe, Fs), pi("keydown", Oe, qs), en(w, D);
7702
7814
  };
7703
- return bi(Ys, (w) => {
7815
+ return yi(Ys, (w) => {
7704
7816
  n() && w(Ks);
7705
7817
  }), en(e, Vr), ro(Gs);
7706
7818
  }