@pie-players/pie-section-player 0.3.52 → 0.3.53

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.
@@ -248,11 +248,11 @@ function Cf(e, t) {
248
248
  throw e;
249
249
  }
250
250
  var OJ = ~(il | Hm | qa);
251
- function li(e, t) {
251
+ function ui(e, t) {
252
252
  e.f = e.f & OJ | t;
253
253
  }
254
254
  function zx(e) {
255
- (e.f & 512) !== 0 || e.deps === null ? li(e, qa) : li(e, Hm);
255
+ (e.f & 512) !== 0 || e.deps === null ? ui(e, qa) : ui(e, Hm);
256
256
  }
257
257
  function Mj(e) {
258
258
  if (e !== null)
@@ -260,7 +260,7 @@ function Mj(e) {
260
260
  (t.f & 2) === 0 || (t.f & 65536) === 0 || (t.f ^= AS, Mj(t.deps));
261
261
  }
262
262
  function Pj(e, t, n) {
263
- (e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && n.add(e), Mj(e.deps), li(e, qa);
263
+ (e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && n.add(e), Mj(e.deps), ui(e, qa);
264
264
  }
265
265
  var MJ = !1, Yw = !1;
266
266
  function PJ(e) {
@@ -291,9 +291,9 @@ function E(e, t) {
291
291
  return e.get(Le(e, t));
292
292
  }
293
293
  var Dj, c_ = null, Lg = null, or = null, HN = null, Bo = null, jN = null, fE = !1, d1 = !1, kv = null, u_ = null, Fj = 0;
294
- var LJ = 1, d_ = /* @__PURE__ */ new WeakMap(), Sp = /* @__PURE__ */ new WeakMap(), Yh = /* @__PURE__ */ new WeakMap(), f_ = /* @__PURE__ */ new WeakMap(), Kw = /* @__PURE__ */ new WeakMap(), Dg = /* @__PURE__ */ new WeakMap(), Hh = /* @__PURE__ */ new WeakMap(), Wb = /* @__PURE__ */ new WeakMap(), ya = /* @__PURE__ */ new WeakMap(), zN = /* @__PURE__ */ new WeakMap(), om = /* @__PURE__ */ new WeakMap(), sd = /* @__PURE__ */ new WeakMap(), vf = /* @__PURE__ */ new WeakMap(), a0 = /* @__PURE__ */ new WeakMap(), Vb = /* @__PURE__ */ new WeakMap(), pi = /* @__PURE__ */ new WeakSet(), jm = class Uj {
294
+ var LJ = 1, d_ = /* @__PURE__ */ new WeakMap(), Sp = /* @__PURE__ */ new WeakMap(), Yh = /* @__PURE__ */ new WeakMap(), f_ = /* @__PURE__ */ new WeakMap(), Kw = /* @__PURE__ */ new WeakMap(), Dg = /* @__PURE__ */ new WeakMap(), Hh = /* @__PURE__ */ new WeakMap(), Wb = /* @__PURE__ */ new WeakMap(), ya = /* @__PURE__ */ new WeakMap(), zN = /* @__PURE__ */ new WeakMap(), om = /* @__PURE__ */ new WeakMap(), sd = /* @__PURE__ */ new WeakMap(), vf = /* @__PURE__ */ new WeakMap(), a0 = /* @__PURE__ */ new WeakMap(), Vb = /* @__PURE__ */ new WeakMap(), gi = /* @__PURE__ */ new WeakSet(), jm = class Uj {
295
295
  constructor() {
296
- os(this, pi), $(this, "id", LJ++), Ce(this, d_, !1), $(this, "linked", !0), Ce(this, Sp, null), Ce(this, Yh, null), $(this, "async_deriveds", /* @__PURE__ */ new Map()), $(this, "current", /* @__PURE__ */ new Map()), $(this, "previous", /* @__PURE__ */ new Map()), Ce(this, f_, /* @__PURE__ */ new Set()), Ce(this, Kw, /* @__PURE__ */ new Set()), Ce(this, Dg, 0), Ce(this, Hh, /* @__PURE__ */ new Map()), Ce(this, Wb, null), Ce(this, ya, []), Ce(this, zN, []), Ce(this, om, /* @__PURE__ */ new Set()), Ce(this, sd, /* @__PURE__ */ new Set()), Ce(this, vf, /* @__PURE__ */ new Map()), Ce(this, a0, /* @__PURE__ */ new Set()), $(this, "is_fork", !1), Ce(this, Vb, !1), Lg === null ? c_ = Lg = this : (pe(Yh, Lg, this), pe(Sp, this, Lg)), Lg = this;
296
+ os(this, gi), $(this, "id", LJ++), Ce(this, d_, !1), $(this, "linked", !0), Ce(this, Sp, null), Ce(this, Yh, null), $(this, "async_deriveds", /* @__PURE__ */ new Map()), $(this, "current", /* @__PURE__ */ new Map()), $(this, "previous", /* @__PURE__ */ new Map()), Ce(this, f_, /* @__PURE__ */ new Set()), Ce(this, Kw, /* @__PURE__ */ new Set()), Ce(this, Dg, 0), Ce(this, Hh, /* @__PURE__ */ new Map()), Ce(this, Wb, null), Ce(this, ya, []), Ce(this, zN, []), Ce(this, om, /* @__PURE__ */ new Set()), Ce(this, sd, /* @__PURE__ */ new Set()), Ce(this, vf, /* @__PURE__ */ new Map()), Ce(this, a0, /* @__PURE__ */ new Set()), $(this, "is_fork", !1), Ce(this, Vb, !1), Lg === null ? c_ = Lg = this : (pe(Yh, Lg, this), pe(Sp, this, Lg)), Lg = this;
297
297
  }
298
298
  skip_effect(t) {
299
299
  E(vf, this).has(t) || E(vf, this).set(t, {
@@ -306,9 +306,9 @@ var LJ = 1, d_ = /* @__PURE__ */ new WeakMap(), Sp = /* @__PURE__ */ new WeakMap
306
306
  if (r) {
307
307
  E(vf, this).delete(t);
308
308
  for (var i of r.d)
309
- li(i, il), n(i);
309
+ ui(i, il), n(i);
310
310
  for (i of r.m)
311
- li(i, Hm), n(i);
311
+ ui(i, Hm), n(i);
312
312
  }
313
313
  E(a0, this).add(t);
314
314
  }
@@ -323,14 +323,14 @@ var LJ = 1, d_ = /* @__PURE__ */ new WeakMap(), Sp = /* @__PURE__ */ new WeakMap
323
323
  }
324
324
  flush() {
325
325
  try {
326
- d1 = !0, or = this, Le(pi, this, h_).call(this);
326
+ d1 = !0, or = this, Le(gi, this, h_).call(this);
327
327
  } finally {
328
328
  Fj = 0, jN = null, kv = null, u_ = null, d1 = !1, or = null, Bo = null, _p.clear();
329
329
  }
330
330
  }
331
331
  discard() {
332
332
  for (const t of E(Kw, this)) t(this);
333
- E(Kw, this).clear(), Le(pi, this, p_).call(this), E(Wb, this)?.resolve();
333
+ E(Kw, this).clear(), Le(gi, this, p_).call(this), E(Wb, this)?.resolve();
334
334
  }
335
335
  register_created_effect(t) {
336
336
  E(zN, this).push(t);
@@ -428,43 +428,43 @@ function cD() {
428
428
  return !1;
429
429
  }
430
430
  function h_() {
431
- pe(d_, this, !0), Fj++ > 1e3 && (Le(pi, this, p_).call(this), BJ());
431
+ pe(d_, this, !0), Fj++ > 1e3 && (Le(gi, this, p_).call(this), BJ());
432
432
  for (const d of E(om, this))
433
- E(sd, this).delete(d), li(d, il), this.schedule(d);
433
+ E(sd, this).delete(d), ui(d, il), this.schedule(d);
434
434
  for (const d of E(sd, this))
435
- li(d, Hm), this.schedule(d);
435
+ ui(d, Hm), this.schedule(d);
436
436
  const e = E(ya, this);
437
437
  pe(ya, this, []), this.apply();
438
438
  var t = kv = [], n = [], r = u_ = [];
439
439
  for (const d of e) try {
440
- Le(pi, this, Bj).call(this, d, t, n);
440
+ Le(gi, this, Bj).call(this, d, t, n);
441
441
  } catch (f) {
442
- throw zj(d), Le(pi, this, cD).call(this) || this.discard(), f;
442
+ throw zj(d), Le(gi, this, cD).call(this) || this.discard(), f;
443
443
  }
444
444
  if (or = null, r.length > 0) {
445
445
  var i = Dj.ensure();
446
446
  for (const d of r) i.schedule(d);
447
447
  }
448
- if (kv = null, u_ = null, Le(pi, this, cD).call(this)) {
449
- Le(pi, this, qb).call(this, n), Le(pi, this, qb).call(this, t);
448
+ if (kv = null, u_ = null, Le(gi, this, cD).call(this)) {
449
+ Le(gi, this, qb).call(this, n), Le(gi, this, qb).call(this, t);
450
450
  for (const [d, f] of E(vf, this)) jj(d, f);
451
- r.length > 0 && Le(pi, or, h_).call(or);
451
+ r.length > 0 && Le(gi, or, h_).call(or);
452
452
  return;
453
453
  }
454
- const s = Le(pi, this, DJ).call(this);
454
+ const s = Le(gi, this, DJ).call(this);
455
455
  if (s) {
456
- Le(pi, this, qb).call(this, n), Le(pi, this, qb).call(this, t), Le(pi, s, FJ).call(s, this);
456
+ Le(gi, this, qb).call(this, n), Le(gi, this, qb).call(this, t), Le(gi, s, FJ).call(s, this);
457
457
  return;
458
458
  }
459
459
  E(om, this).clear(), E(sd, this).clear();
460
460
  for (const d of E(f_, this)) d(this);
461
461
  E(f_, this).clear(), HN = this, uD(n), uD(t), HN = null, E(Wb, this)?.resolve();
462
462
  var c = or;
463
- if (E(Dg, this) === 0 && (E(ya, this).length === 0 || c !== null) && (Le(pi, this, p_).call(this), eu && (Le(pi, this, UJ).call(this), or = c)), E(ya, this).length > 0) if (c !== null) {
463
+ if (E(Dg, this) === 0 && (E(ya, this).length === 0 || c !== null) && (Le(gi, this, p_).call(this), eu && (Le(gi, this, UJ).call(this), or = c)), E(ya, this).length > 0) if (c !== null) {
464
464
  const d = c;
465
465
  E(ya, d).push(...E(ya, this).filter((f) => !E(ya, d).includes(f)));
466
466
  } else c = this;
467
- c !== null && Le(pi, c, h_).call(c);
467
+ c !== null && Le(gi, c, h_).call(c);
468
468
  }
469
469
  function Bj(e, t, n) {
470
470
  e.f ^= qa;
@@ -513,12 +513,12 @@ function FJ(e) {
513
513
  if ((i & 2) !== 0) t(c);
514
514
  else {
515
515
  var s = c;
516
- i & 4194320 && !this.async_deriveds.has(s) && (E(sd, this).delete(s), li(s, il), this.schedule(s));
516
+ i & 4194320 && !this.async_deriveds.has(s) && (E(sd, this).delete(s), ui(s, il), this.schedule(s));
517
517
  }
518
518
  }
519
519
  };
520
520
  for (const n of this.current.keys()) t(n);
521
- this.oncommit(() => e.discard()), Le(pi, e, p_).call(e), or = this, Le(pi, this, h_).call(this);
521
+ this.oncommit(() => e.discard()), Le(gi, e, p_).call(e), or = this, Le(gi, this, h_).call(this);
522
522
  }
523
523
  function qb(e) {
524
524
  for (var t = 0; t < e.length; t += 1) Pj(e[t], E(om, this), E(sd, this));
@@ -544,7 +544,7 @@ function UJ() {
544
544
  e && m.discard();
545
545
  else if (t.length > 0) {
546
546
  if (e) for (const p of E(a0, this)) m.unskip_effect(p, (g) => {
547
- (g.f & 4194320) !== 0 ? m.schedule(g) : Le(pi, m, qb).call(m, [g]);
547
+ (g.f & 4194320) !== 0 ? m.schedule(g) : Le(gi, m, qb).call(m, [g]);
548
548
  });
549
549
  m.activate();
550
550
  var i = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Map();
@@ -555,10 +555,10 @@ function UJ() {
555
555
  return v ? v[0] !== g[0] || v[1] !== g[1] : !0;
556
556
  }).map(([p]) => p);
557
557
  if (d.length > 0)
558
- for (const p of E(zN, this)) (p.f & 155648) === 0 && Wx(p, d, s) && ((p.f & 4194320) !== 0 ? (li(p, il), m.schedule(p)) : E(om, m).add(p));
558
+ for (const p of E(zN, this)) (p.f & 155648) === 0 && Wx(p, d, s) && ((p.f & 4194320) !== 0 ? (ui(p, il), m.schedule(p)) : E(om, m).add(p));
559
559
  if (E(ya, m).length > 0 && !E(Vb, m)) {
560
560
  m.apply();
561
- for (var f of E(ya, m)) Le(pi, m, Bj).call(m, f, [], []);
561
+ for (var f of E(ya, m)) Le(gi, m, Bj).call(m, f, [], []);
562
562
  pe(ya, m, []);
563
563
  }
564
564
  m.deactivate();
@@ -626,7 +626,7 @@ function Hj(e, t, n, r) {
626
626
  if (!n.has(e) && (n.add(e), e.reactions !== null))
627
627
  for (const i of e.reactions) {
628
628
  const s = i.f;
629
- (s & 2) !== 0 ? Hj(i, t, n, r) : (s & 4194320) !== 0 && (s & 2048) === 0 && Wx(i, t, r) && (li(i, il), Vx(i));
629
+ (s & 2) !== 0 ? Hj(i, t, n, r) : (s & 4194320) !== 0 && (s & 2048) === 0 && Wx(i, t, r) && (ui(i, il), Vx(i));
630
630
  }
631
631
  }
632
632
  function Wx(e, t, n) {
@@ -644,13 +644,13 @@ function Vx(e) {
644
644
  }
645
645
  function jj(e, t) {
646
646
  if (!((e.f & 32) !== 0 && (e.f & 1024) !== 0)) {
647
- (e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e), li(e, qa);
647
+ (e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e), ui(e, qa);
648
648
  for (var n = e.first; n !== null; )
649
649
  jj(n, t), n = n.next;
650
650
  }
651
651
  }
652
652
  function zj(e) {
653
- li(e, qa);
653
+ ui(e, qa);
654
654
  for (var t = e.first; t !== null; )
655
655
  zj(t), t = t.next;
656
656
  }
@@ -953,7 +953,7 @@ function Yx(e) {
953
953
  function Gj(e) {
954
954
  var t = Yx(e);
955
955
  if (!e.equals(t) && (e.wv = u5(), (!or?.is_fork || e.deps === null) && (or !== null ? (or.capture(e, t, !0), HN?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
956
- li(e, qa);
956
+ ui(e, qa);
957
957
  return;
958
958
  }
959
959
  md || (Bo !== null ? (Jx() || or?.is_fork) && Bo.set(e, t) : zx(e));
@@ -1013,7 +1013,7 @@ function xv(e, t, n = null) {
1013
1013
  function QJ() {
1014
1014
  Kj = !1;
1015
1015
  for (const e of g_) {
1016
- (e.f & 1024) !== 0 && li(e, Hm);
1016
+ (e.f & 1024) !== 0 && ui(e, Hm);
1017
1017
  let t;
1018
1018
  try {
1019
1019
  t = kS(e);
@@ -1034,7 +1034,7 @@ function Jj(e, t, n) {
1034
1034
  var d = r[c], f = d.f;
1035
1035
  if (!(!i && d === Pn)) {
1036
1036
  var m = (f & il) === 0;
1037
- if (m && li(d, t), (f & 131072) !== 0) g_.add(d);
1037
+ if (m && ui(d, t), (f & 131072) !== 0) g_.add(d);
1038
1038
  else if ((f & 2) !== 0) {
1039
1039
  var p = d;
1040
1040
  Bo?.delete(p), (f & 65536) === 0 && (f & 512 && (Pn === null || (Pn.f & 2097152) === 0) && (d.f |= AS), Jj(p, Hm, n));
@@ -1292,7 +1292,7 @@ function Jx() {
1292
1292
  }
1293
1293
  function Zx(e) {
1294
1294
  const t = cu(8, null);
1295
- return li(t, qa), t.teardown = e, t;
1295
+ return ui(t, qa), t.teardown = e, t;
1296
1296
  }
1297
1297
  function Vn(e) {
1298
1298
  rZ("$effect");
@@ -1373,7 +1373,7 @@ function lZ(e) {
1373
1373
  }
1374
1374
  function Xo(e, t = !0) {
1375
1375
  var n = !1;
1376
- (t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (cZ(e.nodes.start, e.nodes.end), n = !0), li(e, sD), e$(e, t && !n), ME(e, 0);
1376
+ (t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (cZ(e.nodes.start, e.nodes.end), n = !0), ui(e, sD), e$(e, t && !n), ME(e, 0);
1377
1377
  var r = e.nodes && e.nodes.t;
1378
1378
  if (r !== null) for (const s of r) s.stop();
1379
1379
  i5(e), e.f ^= sD, e.f |= aJ;
@@ -1422,7 +1422,7 @@ function v_(e) {
1422
1422
  }
1423
1423
  function a5(e, t) {
1424
1424
  if ((e.f & 8192) !== 0) {
1425
- e.f ^= Hx, (e.f & 1024) === 0 && (li(e, il), jm.ensure().schedule(e));
1425
+ e.f ^= Hx, (e.f & 1024) === 0 && (ui(e, il), jm.ensure().schedule(e));
1426
1426
  for (var n = e.first; n !== null; ) {
1427
1427
  var r = n.next, i = (n.f & 65536) !== 0 || (n.f & 32) !== 0;
1428
1428
  a5(n, i ? t : !1), n = r;
@@ -1474,7 +1474,7 @@ function kS(e) {
1474
1474
  var s = n[i];
1475
1475
  if (kS(s) && Gj(s), s.wv > e.wv) return !0;
1476
1476
  }
1477
- (t & 512) !== 0 && Bo === null && li(e, qa);
1477
+ (t & 512) !== 0 && Bo === null && ui(e, qa);
1478
1478
  }
1479
1479
  return !1;
1480
1480
  }
@@ -1483,7 +1483,7 @@ function d5(e, t, n = !0) {
1483
1483
  if (r !== null && !(!eu && Ll !== null && Ll.has(e)))
1484
1484
  for (var i = 0; i < r.length; i++) {
1485
1485
  var s = r[i];
1486
- (s.f & 2) !== 0 ? d5(s, t, !1) : t === s && (n ? li(s, il) : (s.f & 1024) !== 0 && li(s, Hm), Vx(s));
1486
+ (s.f & 2) !== 0 ? d5(s, t, !1) : t === s && (n ? ui(s, il) : (s.f & 1024) !== 0 && ui(s, Hm), Vx(s));
1487
1487
  }
1488
1488
  }
1489
1489
  function f5(e) {
@@ -1541,7 +1541,7 @@ function ME(e, t) {
1541
1541
  function $v(e) {
1542
1542
  var t = e.f;
1543
1543
  if ((t & 16384) === 0) {
1544
- li(e, qa);
1544
+ ui(e, qa);
1545
1545
  var n = Pn, r = l0;
1546
1546
  if (Pn = e, l0 = !0, 0)
1547
1547
  var i, s;
@@ -4914,7 +4914,7 @@ var i3 = {
4914
4914
  }
4915
4915
  };
4916
4916
  }
4917
- }, Ei = (e) => e.trim().replace(/\s+/g, " "), Z5 = () => /[\p{L}]+|\d+(?:\.\d+)?|[±√=+\-*/()²³^×÷≤≥≠≈<>|%°'′\u2062]/gu, Q5 = (e) => {
4917
+ }, oi = (e) => e.trim().replace(/\s+/g, " "), Z5 = () => /[\p{L}]+|\d+(?:\.\d+)?|[±√=+\-*/()²³^×÷≤≥≠≈<>|%°'′\u2062]/gu, Q5 = (e) => {
4918
4918
  if (e.hidden || e.tagName?.toLowerCase() === "mjx-assistive-mml" || e.getAttribute("aria-hidden") === "true" || e.hasAttribute("inert")) return !0;
4919
4919
  const t = e.classList;
4920
4920
  if (t?.contains("sr-only") || t?.contains("pie-sr-only") || t?.contains("visually-hidden")) return !0;
@@ -5030,7 +5030,7 @@ var i3 = {
5030
5030
  }
5031
5031
  }, nz = async (e, t = {}) => {
5032
5032
  if (!e.some((m) => m.type === "math")) return {
5033
- speechText: Ei(e.map((m) => m.type === "text" ? m.text : m.fallbackText).join(" ")),
5033
+ speechText: oi(e.map((m) => m.type === "text" ? m.text : m.fallbackText).join(" ")),
5034
5034
  usedMathSpeech: !1,
5035
5035
  usedFallback: !1
5036
5036
  };
@@ -5043,7 +5043,7 @@ var i3 = {
5043
5043
  }
5044
5044
  try {
5045
5045
  n || (n = await s());
5046
- const p = Ei(await tz(n, m.mathml, t.language, "none", t.mathSpeech));
5046
+ const p = oi(await tz(n, m.mathml, t.language, "none", t.mathSpeech));
5047
5047
  if (p) {
5048
5048
  c.push(p), r = !0;
5049
5049
  continue;
@@ -5053,7 +5053,7 @@ var i3 = {
5053
5053
  i = !0, console.debug("[TTSService] Math speech generation failed; using visible fallback", { message: p instanceof Error ? p.message : String(p) }), c.push(m.fallbackText);
5054
5054
  }
5055
5055
  }
5056
- const d = Ei(c.join(" "));
5056
+ const d = oi(c.join(" "));
5057
5057
  let f;
5058
5058
  return t.produceSsml && n && r && e.length === 1 && e[0].type === "math" && (f = await d3(n, e[0].mathml, t.language, t.mathSpeech) ?? void 0), {
5059
5059
  speechText: d,
@@ -6017,7 +6017,7 @@ var D3 = class {
6017
6017
  }
6018
6018
  const s = B3(t);
6019
6019
  return {
6020
- spokenText: Ei(s.text),
6020
+ spokenText: oi(s.text),
6021
6021
  rawToSpokenOffsetMap: s.rawToSpokenOffsetMap,
6022
6022
  unsupportedSemantic: n,
6023
6023
  hasMarkup: r
@@ -6178,7 +6178,7 @@ var D3 = class {
6178
6178
  const r = e.length / Math.max(1, Math.min(t.length, n.length)), i = e.reduce((s, c) => s + c.score, 0) / e.length / 10;
6179
6179
  return Math.min(1, r * i);
6180
6180
  }, dz = (e) => {
6181
- const t = cz(e.speechText), n = Ei(e.visibleText), r = t.spokenText, i = lR(r), s = lR(n), c = t.unsupportedSemantic ? [] : q3(i, s), d = G3(c, i, s), f = r === n && r.length > 0, m = c.length === 1 && c[0].score === 10 && i.length <= 2 && s.length <= 2, p = t.unsupportedSemantic ? "region-fallback" : f ? "exact-word" : (c.length >= 2 || m) && d >= 0.12 ? "anchor-span" : "region-fallback", g = t.unsupportedSemantic ? "unsupported" : t.hasMarkup ? "raw-ssml" : "plain-spoken-text";
6181
+ const t = cz(e.speechText), n = oi(e.visibleText), r = t.spokenText, i = lR(r), s = lR(n), c = t.unsupportedSemantic ? [] : q3(i, s), d = G3(c, i, s), f = r === n && r.length > 0, m = c.length === 1 && c[0].score === 10 && i.length <= 2 && s.length <= 2, p = t.unsupportedSemantic ? "region-fallback" : f ? "exact-word" : (c.length >= 2 || m) && d >= 0.12 ? "anchor-span" : "region-fallback", g = t.unsupportedSemantic ? "unsupported" : t.hasMarkup ? "raw-ssml" : "plain-spoken-text";
6182
6182
  return {
6183
6183
  speechText: e.speechText,
6184
6184
  spokenText: r,
@@ -6931,7 +6931,7 @@ var D3 = class {
6931
6931
  if (!wz(s))
6932
6932
  for (const c of Array.from(s.childNodes)) r(c);
6933
6933
  };
6934
- return r(t.documentElement), Ei(n.join(" "));
6934
+ return r(t.documentElement), oi(n.join(" "));
6935
6935
  }, Hee = (e, t, n) => {
6936
6936
  const r = bz(n), i = (d) => {
6937
6937
  if (Ny(d, e)) return;
@@ -6945,7 +6945,7 @@ var D3 = class {
6945
6945
  for (const m of Array.from(f.childNodes)) i(m);
6946
6946
  };
6947
6947
  i(e), Iz(r);
6948
- const s = Ei(r.chars.join(""));
6948
+ const s = oi(r.chars.join(""));
6949
6949
  if (s) return {
6950
6950
  text: s,
6951
6951
  map: r.map
@@ -6962,7 +6962,7 @@ var D3 = class {
6962
6962
  const n = bz(t), r = [];
6963
6963
  let i = 0, s, c = !1;
6964
6964
  const d = () => {
6965
- const p = Ei(n.chars.slice(i, n.chars.length).join(""));
6965
+ const p = oi(n.chars.slice(i, n.chars.length).join(""));
6966
6966
  p && r.push({
6967
6967
  type: "text",
6968
6968
  text: p,
@@ -6983,7 +6983,7 @@ var D3 = class {
6983
6983
  d();
6984
6984
  const b = Hee(g, v, t);
6985
6985
  Uee(n, b);
6986
- const w = Ei(b.text);
6986
+ const w = oi(b.text);
6987
6987
  r.push({
6988
6988
  type: "math",
6989
6989
  mathml: v,
@@ -7041,7 +7041,7 @@ var D3 = class {
7041
7041
  const t = e.resolveMathSpeech ?? zee, { visibleText: n } = e, r = [];
7042
7042
  let i = 0;
7043
7043
  const s = (d) => {
7044
- const f = Ei(d), m = n.indexOf(f, i), p = m >= 0 ? m : i, g = p + f.length;
7044
+ const f = oi(d), m = n.indexOf(f, i), p = m >= 0 ? m : i, g = p + f.length;
7045
7045
  return i = g, {
7046
7046
  start: p,
7047
7047
  end: g
@@ -7055,7 +7055,7 @@ var D3 = class {
7055
7055
  offset: 0
7056
7056
  }] : l$(f.text, { locale: e.language });
7057
7057
  for (const w of b) {
7058
- const _ = Ei(w.text);
7058
+ const _ = oi(w.text);
7059
7059
  if (!_) continue;
7060
7060
  const A = s(_);
7061
7061
  r.push({
@@ -7092,7 +7092,7 @@ var D3 = class {
7092
7092
  segments: r,
7093
7093
  locale: Wee(e.language),
7094
7094
  visibleText: n,
7095
- plainSpeechText: Ei(c.join(" "))
7095
+ plainSpeechText: oi(c.join(" "))
7096
7096
  };
7097
7097
  }, Kee = (e) => (e || "en").split("-")[0].toLowerCase() || "en", Xee = "sre-v1", Jee = 256, hR = (e) => Array.isArray(e) ? `array:[${e.map(hR).join(",")}]` : e && typeof e == "object" ? `object:{${Object.entries(e).sort(([t], [n]) => t.localeCompare(n)).map(([t, n]) => `${JSON.stringify(t)}:${hR(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)}`, QD = (e, t, n, r) => `${Xee}\0${Kee(e)}\0${t ? "ssml" : "plain"}\0${hR(n ?? null)}\0${r}`, Zee = (e = {}) => {
7098
7098
  const t = Math.max(1, e.maxEntries ?? Jee), n = e.resolve ?? ((s, c) => nz([s], c)), r = /* @__PURE__ */ new Map(), i = (s, c) => {
@@ -7561,7 +7561,7 @@ var D3 = class {
7561
7561
  })(Br || (Br = {}));
7562
7562
  var Pz = (e, t) => e === t || e.startContainer === t.startContainer && e.startOffset === t.startOffset && e.endContainer === t.endContainer && e.endOffset === t.endOffset, Cte = (e, t) => e === t ? !0 : !e || !t || e.type !== t.type || e.quality !== t.quality ? !1 : e.type === "range" && t.type === "range" ? Pz(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, Ate = class vR {
7563
7563
  constructor() {
7564
- $(this, "currentProvider", null), $(this, "provider", null), $(this, "highlightCoordinator", null), $(this, "highlightTargetResolverProvider", null), $(this, "catalogResolver", null), $(this, "state", Br.IDLE), $(this, "ttsConfig", {}), $(this, "currentText", null), $(this, "currentContentElement", null), $(this, "normalizedToDOM", /* @__PURE__ */ new Map()), $(this, "listeners", /* @__PURE__ */ new Map()), $(this, "lastError", null), $(this, "speakRunId", 0), $(this, "currentBoundaryOffset", 0), $(this, "activeWordBoundaryOffset", 0), $(this, "seekSegments", []), $(this, "sentenceHighlightSegments", []), $(this, "currentSeekSegmentIndex", 0), $(this, "activeSentenceStartOffset", null), $(this, "activeHighlightMode", "word"), $(this, "lastRenderedRegionTarget", null), $(this, "telemetryReporter", null), $(this, "generatedMathSpeechResolver", Zee());
7564
+ $(this, "currentProvider", null), $(this, "provider", null), $(this, "highlightCoordinator", null), $(this, "highlightTargetResolverProvider", null), $(this, "catalogResolver", null), $(this, "state", Br.IDLE), $(this, "ttsConfig", {}), $(this, "currentText", null), $(this, "currentContentElement", null), $(this, "normalizedToDOM", /* @__PURE__ */ new Map()), $(this, "listeners", /* @__PURE__ */ new Map()), $(this, "lastError", null), $(this, "speakRunId", 0), $(this, "currentBoundaryOffset", 0), $(this, "activeWordBoundaryOffset", 0), $(this, "seekSegments", []), $(this, "playbackChunks", []), $(this, "sentenceHighlightSegments", []), $(this, "currentSeekSegmentIndex", 0), $(this, "activeSentenceStartOffset", null), $(this, "activeHighlightMode", "word"), $(this, "lastRenderedRegionTarget", null), $(this, "telemetryReporter", null), $(this, "generatedMathSpeechResolver", Zee());
7565
7565
  }
7566
7566
  debugLog(t, n) {
7567
7567
  vR.debugEnabled && (n === void 0 ? console.debug(t) : console.debug(t, n));
@@ -7936,6 +7936,17 @@ var Pz = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
7936
7936
  const r = t.playbackSegments.map((i) => i.startOffset).filter((i) => i > 0);
7937
7937
  return this.splitSegmentsAtBoundaries(n, r, t.contentToSpeak);
7938
7938
  }
7939
+ createSeekSegmentsFromSpeechChunks(t) {
7940
+ let n = 0;
7941
+ return t.map((r) => {
7942
+ const i = oi(r.plainFallback?.speechText || (this.hasExplicitBreakSemantics(r.speechText) ? r.visibleText : r.speechText) || r.visibleText) || r.visibleText || "", s = {
7943
+ text: i,
7944
+ startOffset: n,
7945
+ pauseMsAfter: 0
7946
+ };
7947
+ return n += Math.max(1, i.length + 1), s;
7948
+ });
7949
+ }
7939
7950
  getCurrentSeekSegmentIndex() {
7940
7951
  if (this.seekSegments.length === 0) return 0;
7941
7952
  let t = 0;
@@ -8035,7 +8046,7 @@ var Pz = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
8035
8046
  const b = n?.highlightModeOverride || (g ? this.resolveHighlightMode() : "sentence");
8036
8047
  this.activeHighlightMode = b, this.activeWordBoundaryOffset = n?.wordBoundaryOffset || 0;
8037
8048
  const w = this.hasExplicitBreakSemantics(s), _ = !!this.currentContentElement && !m && !w && g;
8038
- if (this.seekSegments = w || !g ? [] : _ && this.currentContentElement ? this.createSpeechPlan(this.currentContentElement, f) : this.createSeekSegmentsFromText(d), this.sentenceHighlightSegments = w ? [] : this.createSentenceHighlightSegments({
8049
+ if (this.playbackChunks = v?.length ? v : [], this.seekSegments = this.playbackChunks.length ? this.createSeekSegmentsFromSpeechChunks(this.playbackChunks) : w || !g ? [] : _ && this.currentContentElement ? this.createSpeechPlan(this.currentContentElement, f) : this.createSeekSegmentsFromText(d), this.sentenceHighlightSegments = w ? [] : this.createSentenceHighlightSegments({
8039
8050
  contentToSpeak: d,
8040
8051
  shouldUsePlan: _,
8041
8052
  playbackSegments: this.seekSegments
@@ -8114,7 +8125,7 @@ var Pz = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
8114
8125
  }, "updateSettings" in this.provider && typeof this.provider.updateSettings == "function" && await this.provider.updateSettings({ providerOptions: s });
8115
8126
  }
8116
8127
  async resolveSpeechContent(t, n) {
8117
- const r = Ei(t);
8128
+ const r = oi(t);
8118
8129
  if (n?.ignoreCatalogs) return {
8119
8130
  contentToSpeak: r,
8120
8131
  speechText: r,
@@ -8134,7 +8145,7 @@ var Pz = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
8134
8145
  context: n.catalogContext
8135
8146
  });
8136
8147
  if (s) {
8137
- const c = n?.contentElement && Yb(n.contentElement, this.getTextProcessingOptions(n.language)).visibleText || r, d = Ei(s.content);
8148
+ const c = n?.contentElement && Yb(n.contentElement, this.getTextProcessingOptions(n.language)).visibleText || r, d = oi(s.content);
8138
8149
  return this.debugLog(`[TTSService] Using catalog content for "${n.catalogId}" (${s.language})`), {
8139
8150
  contentToSpeak: s.content,
8140
8151
  speechText: s.content,
@@ -8168,7 +8179,7 @@ var Pz = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
8168
8179
  if (!this.catalogResolver) return null;
8169
8180
  const i = this.collectCatalogSpeechChunks(t, r);
8170
8181
  if (!i.some((d) => d.sourceElement)) return null;
8171
- const s = Ei(i.map((d) => d.speechText).join(" ")), c = Yb(t, this.getTextProcessingOptions(r.language)).visibleText || n;
8182
+ const s = oi(i.map((d) => d.speechText).join(" ")), c = Yb(t, this.getTextProcessingOptions(r.language)).visibleText || n;
8172
8183
  return {
8173
8184
  contentToSpeak: s,
8174
8185
  speechText: s,
@@ -8186,7 +8197,7 @@ var Pz = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
8186
8197
  const r = [];
8187
8198
  let i = "";
8188
8199
  const s = () => {
8189
- const p = Ei(i);
8200
+ const p = oi(i);
8190
8201
  i = "", p && r.push({
8191
8202
  speechText: p,
8192
8203
  visibleText: p,
@@ -8204,7 +8215,7 @@ var Pz = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
8204
8215
  }, d = (p, g) => {
8205
8216
  const v = f(p);
8206
8217
  if (v.length !== 1) return null;
8207
- const b = v[0], w = Yb(b, this.getTextProcessingOptions(n.language)).visibleText || Ei(b.textContent || ""), _ = (A) => Ei(A).replace(/\s+/g, "");
8218
+ const b = v[0], w = Yb(b, this.getTextProcessingOptions(n.language)).visibleText || oi(b.textContent || ""), _ = (A) => oi(A).replace(/\s+/g, "");
8208
8219
  return _(w) === _(g) ? b : null;
8209
8220
  }, f = (p) => {
8210
8221
  const g = Array.from(p.querySelectorAll("math"));
@@ -8219,7 +8230,7 @@ var Pz = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
8219
8230
  const g = p, v = c(g);
8220
8231
  if (v) {
8221
8232
  s();
8222
- const b = Yb(g, this.getTextProcessingOptions(n.language)), w = b.visibleText || Ei(g.textContent || ""), _ = dz({
8233
+ const b = Yb(g, this.getTextProcessingOptions(n.language)), w = b.visibleText || oi(g.textContent || ""), _ = dz({
8223
8234
  speechText: v.content,
8224
8235
  visibleText: w
8225
8236
  }), A = d(g, w), O = A ? w_({
@@ -8231,7 +8242,7 @@ var Pz = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
8231
8242
  mathElement: P,
8232
8243
  speechText: v.content
8233
8244
  })
8234
- })), V = Ei(v.content);
8245
+ })), V = oi(v.content);
8235
8246
  r.push({
8236
8247
  speechText: v.content,
8237
8248
  visibleText: w,
@@ -8294,7 +8305,7 @@ var Pz = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
8294
8305
  });
8295
8306
  }
8296
8307
  initializeSpeakTracking(t, n) {
8297
- this.currentText = t, this.currentContentElement = n?.contentElement || null, this.lastError = null, this.currentBoundaryOffset = 0, this.currentSeekSegmentIndex = 0, this.activeSentenceStartOffset = null;
8308
+ this.currentText = t, this.currentContentElement = n?.contentElement || null, this.lastError = null, this.currentBoundaryOffset = 0, this.playbackChunks = [], this.currentSeekSegmentIndex = 0, this.activeSentenceStartOffset = null;
8298
8309
  }
8299
8310
  prepareHighlightsForSpeak(t) {
8300
8311
  if (!this.currentContentElement || !this.highlightCoordinator || (this.buildPositionMap(this.currentContentElement, t.contentToSpeak, t.options?.language), t.highlightMode === "sentence" && t.shouldUsePlan)) return;
@@ -8439,9 +8450,13 @@ var Pz = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
8439
8450
  }
8440
8451
  async executeSpeakPlayback(t) {
8441
8452
  if (t.speechChunks?.length && this.provider) {
8442
- for (const n of t.speechChunks) {
8453
+ for (let n = 0; n < t.speechChunks.length; n++) {
8443
8454
  if (t.runId !== this.speakRunId) return;
8444
- await this.speakCatalogChunk(n, t.runId);
8455
+ this.currentSeekSegmentIndex = n;
8456
+ const r = this.seekSegments[n];
8457
+ r && (this.currentBoundaryOffset = r.startOffset);
8458
+ const i = t.speechChunks[n];
8459
+ await this.speakCatalogChunk(i, t.runId);
8445
8460
  }
8446
8461
  return;
8447
8462
  }
@@ -8453,7 +8468,7 @@ var Pz = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
8453
8468
  this.provider && await this.provider.speak(t.contentToSpeak);
8454
8469
  }
8455
8470
  clearHighlightsAndTracking() {
8456
- this.highlightCoordinator && this.highlightCoordinator.clearTTS(), this.lastRenderedRegionTarget = null, this.currentContentElement = null, this.normalizedToDOM.clear(), this.currentBoundaryOffset = 0, this.activeWordBoundaryOffset = 0, this.seekSegments = [], this.sentenceHighlightSegments = [], this.currentSeekSegmentIndex = 0, this.activeSentenceStartOffset = null;
8471
+ 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;
8457
8472
  }
8458
8473
  async speakRange(t, n) {
8459
8474
  if (!this.provider) throw new Error("TTS service not initialized");
@@ -8467,7 +8482,7 @@ var Pz = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
8467
8482
  if (!i) return;
8468
8483
  const s = document.createRange();
8469
8484
  s.selectNodeContents(i), s.setEnd(t.startContainer, t.startOffset);
8470
- const c = s.toString(), d = Ei(c), f = d.length + (/\s$/.test(c) && d ? 1 : 0);
8485
+ const c = s.toString(), d = oi(c), f = d.length + (/\s$/.test(c) && d ? 1 : 0);
8471
8486
  this.debugLog("[TTSService] speakRange offset calculation:", {
8472
8487
  selectedText: r,
8473
8488
  textBeforeRange: c.substring(0, 100),
@@ -8490,19 +8505,27 @@ var Pz = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
8490
8505
  }
8491
8506
  async restartFromSeekIndex(t) {
8492
8507
  if (!this.provider || this.seekSegments.length === 0) return;
8493
- const n = Math.max(0, Math.min(this.seekSegments.length - 1, t));
8508
+ const n = Math.max(0, Math.min(this.seekSegments.length - 1, t)), r = this.playbackChunks.length ? this.playbackChunks.slice(n) : null;
8494
8509
  this.speakRunId += 1, this.provider.onWordBoundary = void 0, this.provider.stop(), this.currentSeekSegmentIndex = n;
8495
- const r = ++this.speakRunId, i = this.seekSegments.slice(n);
8510
+ const i = ++this.speakRunId, s = this.seekSegments.slice(n);
8496
8511
  this.setState(Br.PLAYING);
8497
8512
  try {
8498
8513
  if (this.configureWordBoundaryHighlighting({
8499
8514
  highlightMode: this.activeHighlightMode,
8500
8515
  wordBoundaryOffset: this.activeWordBoundaryOffset
8501
- }), await this.speakWithPlan(i, r, { highlightMode: this.activeHighlightMode }), r !== this.speakRunId) return;
8516
+ }), r) for (let c = 0; c < r.length; c++) {
8517
+ if (i !== this.speakRunId) return;
8518
+ const d = n + c;
8519
+ this.currentSeekSegmentIndex = d;
8520
+ const f = this.seekSegments[d];
8521
+ f && (this.currentBoundaryOffset = f.startOffset), await this.speakCatalogChunk(r[c], i);
8522
+ }
8523
+ else await this.speakWithPlan(s, i, { highlightMode: this.activeHighlightMode });
8524
+ if (i !== this.speakRunId) return;
8502
8525
  this.setState(Br.IDLE), this.clearHighlightsAndTracking(), this.highlightTargetResolverProvider = null;
8503
- } catch (s) {
8504
- if (r !== this.speakRunId) return;
8505
- throw this.lastError = s instanceof Error ? s.message : String(s), this.setState(Br.ERROR), this.clearHighlightsAndTracking(), this.highlightTargetResolverProvider = null, s;
8526
+ } catch (c) {
8527
+ if (i !== this.speakRunId) return;
8528
+ throw this.lastError = c instanceof Error ? c.message : String(c), this.setState(Br.ERROR), this.clearHighlightsAndTracking(), this.highlightTargetResolverProvider = null, c;
8506
8529
  }
8507
8530
  }
8508
8531
  async setPlaybackRate(t) {
@@ -8525,7 +8548,7 @@ var Pz = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
8525
8548
  await this.seekBy(-n);
8526
8549
  }
8527
8550
  stop() {
8528
- this.provider && (this.speakRunId += 1, this.provider.onWordBoundary = void 0, this.provider.stop(), this.highlightTargetResolverProvider = null, this.setState(Br.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.sentenceHighlightSegments = [], this.currentSeekSegmentIndex = 0, this.activeSentenceStartOffset = null);
8551
+ this.provider && (this.speakRunId += 1, this.provider.onWordBoundary = void 0, this.provider.stop(), this.highlightTargetResolverProvider = null, this.setState(Br.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);
8529
8552
  }
8530
8553
  requestControlHandoff() {
8531
8554
  typeof window > "u" || window.dispatchEvent(new CustomEvent(Ite, { detail: { source: "host" } }));
@@ -11315,9 +11338,9 @@ function tie(e, t) {
11315
11338
  if (!Pt) throw new Error("invariant(...) was not guarded by if (DEV)");
11316
11339
  e || kre(t);
11317
11340
  }
11318
- var oi = null;
11341
+ var ai = null;
11319
11342
  function Uv(e) {
11320
- oi = e;
11343
+ ai = e;
11321
11344
  }
11322
11345
  var BE = null;
11323
11346
  function C_(e) {
@@ -11328,8 +11351,8 @@ function k2(e) {
11328
11351
  pm = e;
11329
11352
  }
11330
11353
  function lW(e, t = !1, n) {
11331
- oi = {
11332
- p: oi,
11354
+ ai = {
11355
+ p: ai,
11333
11356
  i: !1,
11334
11357
  c: null,
11335
11358
  e: null,
@@ -11341,18 +11364,18 @@ function lW(e, t = !1, n) {
11341
11364
  u: null,
11342
11365
  $: []
11343
11366
  } : null
11344
- }, Pt && (oi.function = n, pm = n);
11367
+ }, Pt && (ai.function = n, pm = n);
11345
11368
  }
11346
11369
  function cW(e) {
11347
- var t = oi, n = t.e;
11370
+ var t = ai, n = t.e;
11348
11371
  if (n !== null) {
11349
11372
  t.e = null;
11350
11373
  for (var r of n) PW(r);
11351
11374
  }
11352
- return e !== void 0 && (t.x = e), t.i = !0, oi = t.p, Pt && (pm = oi?.function ?? null), e ?? {};
11375
+ return e !== void 0 && (t.x = e), t.i = !0, ai = t.p, Pt && (pm = ai?.function ?? null), e ?? {};
11353
11376
  }
11354
11377
  function FS() {
11355
- return !EC || oi !== null && oi.l === null;
11378
+ return !EC || ai !== null && ai.l === null;
11356
11379
  }
11357
11380
  var Zh = [];
11358
11381
  function uW() {
@@ -11417,11 +11440,11 @@ function fW(e) {
11417
11440
  t && (tu(e, "message", { value: t.message }), tu(e, "stack", { value: t.stack }));
11418
11441
  }
11419
11442
  var iie = ~(Bi | rc | Ni);
11420
- function ci(e, t) {
11443
+ function di(e, t) {
11421
11444
  e.f = e.f & iie | t;
11422
11445
  }
11423
11446
  function E$(e) {
11424
- (e.f & La) !== 0 || e.deps === null ? ci(e, Ni) : ci(e, rc);
11447
+ (e.f & La) !== 0 || e.deps === null ? di(e, Ni) : di(e, rc);
11425
11448
  }
11426
11449
  function hW(e) {
11427
11450
  if (e !== null)
@@ -11429,7 +11452,7 @@ function hW(e) {
11429
11452
  (t.f & eo) === 0 || (t.f & Yf) === 0 || (t.f ^= Yf, hW(t.deps));
11430
11453
  }
11431
11454
  function pW(e, t, n) {
11432
- (e.f & Bi) !== 0 ? t.add(e) : (e.f & rc) !== 0 && n.add(e), hW(e.deps), ci(e, Ni);
11455
+ (e.f & Bi) !== 0 ? t.add(e) : (e.f & rc) !== 0 && n.add(e), hW(e.deps), di(e, Ni);
11433
11456
  }
11434
11457
  var oie = !1, aT = !1;
11435
11458
  function sie(e) {
@@ -11440,9 +11463,9 @@ function sie(e) {
11440
11463
  aT = t;
11441
11464
  }
11442
11465
  }
11443
- var A_ = null, Bg = null, Yn = null, kR = null, Ho = null, xR = null, pE = !1, k1 = !1, Bv = null, N_ = null, mW = 0, $R = /* @__PURE__ */ new Set(), aie = 1, R_ = /* @__PURE__ */ new WeakMap(), Rp = /* @__PURE__ */ new WeakMap(), Qh = /* @__PURE__ */ new WeakMap(), k_ = /* @__PURE__ */ new WeakMap(), lT = /* @__PURE__ */ new WeakMap(), Hg = /* @__PURE__ */ new WeakMap(), jh = /* @__PURE__ */ new WeakMap(), Xb = /* @__PURE__ */ new WeakMap(), $s = /* @__PURE__ */ new WeakMap(), OR = /* @__PURE__ */ new WeakMap(), gm = /* @__PURE__ */ new WeakMap(), ad = /* @__PURE__ */ new WeakMap(), bf = /* @__PURE__ */ new WeakMap(), m0 = /* @__PURE__ */ new WeakMap(), uv = /* @__PURE__ */ new WeakMap(), mi = /* @__PURE__ */ new WeakSet(), qm = class gW {
11466
+ var A_ = null, Bg = null, Yn = null, kR = null, Ho = null, xR = null, pE = !1, k1 = !1, Bv = null, N_ = null, mW = 0, $R = /* @__PURE__ */ new Set(), aie = 1, R_ = /* @__PURE__ */ new WeakMap(), Rp = /* @__PURE__ */ new WeakMap(), Qh = /* @__PURE__ */ new WeakMap(), k_ = /* @__PURE__ */ new WeakMap(), lT = /* @__PURE__ */ new WeakMap(), Hg = /* @__PURE__ */ new WeakMap(), jh = /* @__PURE__ */ new WeakMap(), Xb = /* @__PURE__ */ new WeakMap(), $s = /* @__PURE__ */ new WeakMap(), OR = /* @__PURE__ */ new WeakMap(), gm = /* @__PURE__ */ new WeakMap(), ad = /* @__PURE__ */ new WeakMap(), bf = /* @__PURE__ */ new WeakMap(), m0 = /* @__PURE__ */ new WeakMap(), uv = /* @__PURE__ */ new WeakMap(), vi = /* @__PURE__ */ new WeakSet(), qm = class gW {
11444
11467
  constructor() {
11445
- os(this, mi), $(this, "id", aie++), Ce(this, R_, !1), $(this, "linked", !0), Ce(this, Rp, null), Ce(this, Qh, null), $(this, "async_deriveds", /* @__PURE__ */ new Map()), $(this, "current", /* @__PURE__ */ new Map()), $(this, "previous", /* @__PURE__ */ new Map()), Ce(this, k_, /* @__PURE__ */ new Set()), Ce(this, lT, /* @__PURE__ */ new Set()), Ce(this, Hg, 0), Ce(this, jh, /* @__PURE__ */ new Map()), Ce(this, Xb, null), Ce(this, $s, []), Ce(this, OR, []), Ce(this, gm, /* @__PURE__ */ new Set()), Ce(this, ad, /* @__PURE__ */ new Set()), Ce(this, bf, /* @__PURE__ */ new Map()), Ce(this, m0, /* @__PURE__ */ new Set()), $(this, "is_fork", !1), Ce(this, uv, !1), Bg === null ? A_ = Bg = this : (pe(Qh, Bg, this), pe(Rp, this, Bg)), Bg = this;
11468
+ os(this, vi), $(this, "id", aie++), Ce(this, R_, !1), $(this, "linked", !0), Ce(this, Rp, null), Ce(this, Qh, null), $(this, "async_deriveds", /* @__PURE__ */ new Map()), $(this, "current", /* @__PURE__ */ new Map()), $(this, "previous", /* @__PURE__ */ new Map()), Ce(this, k_, /* @__PURE__ */ new Set()), Ce(this, lT, /* @__PURE__ */ new Set()), Ce(this, Hg, 0), Ce(this, jh, /* @__PURE__ */ new Map()), Ce(this, Xb, null), Ce(this, $s, []), Ce(this, OR, []), Ce(this, gm, /* @__PURE__ */ new Set()), Ce(this, ad, /* @__PURE__ */ new Set()), Ce(this, bf, /* @__PURE__ */ new Map()), Ce(this, m0, /* @__PURE__ */ new Set()), $(this, "is_fork", !1), Ce(this, uv, !1), Bg === null ? A_ = Bg = this : (pe(Qh, Bg, this), pe(Rp, this, Bg)), Bg = this;
11446
11469
  }
11447
11470
  skip_effect(t) {
11448
11471
  E(bf, this).has(t) || E(bf, this).set(t, {
@@ -11455,9 +11478,9 @@ var A_ = null, Bg = null, Yn = null, kR = null, Ho = null, xR = null, pE = !1, k
11455
11478
  if (r) {
11456
11479
  E(bf, this).delete(t);
11457
11480
  for (var i of r.d)
11458
- ci(i, Bi), n(i);
11481
+ di(i, Bi), n(i);
11459
11482
  for (i of r.m)
11460
- ci(i, rc), n(i);
11483
+ di(i, rc), n(i);
11461
11484
  }
11462
11485
  E(m0, this).add(t);
11463
11486
  }
@@ -11472,14 +11495,14 @@ var A_ = null, Bg = null, Yn = null, kR = null, Ho = null, xR = null, pE = !1, k
11472
11495
  }
11473
11496
  flush() {
11474
11497
  try {
11475
- Pt && $R.clear(), k1 = !0, Yn = this, Le(mi, this, x_).call(this);
11498
+ Pt && $R.clear(), k1 = !0, Yn = this, Le(vi, this, x_).call(this);
11476
11499
  } finally {
11477
11500
  if (mW = 0, xR = null, Bv = null, N_ = null, k1 = !1, Yn = null, Ho = null, $p.clear(), Pt) for (const t of $R) t.updated = null;
11478
11501
  }
11479
11502
  }
11480
11503
  discard() {
11481
11504
  for (const t of E(lT, this)) t(this);
11482
- E(lT, this).clear(), Le(mi, this, $_).call(this), E(Xb, this)?.resolve();
11505
+ E(lT, this).clear(), Le(vi, this, $_).call(this), E(Xb, this)?.resolve();
11483
11506
  }
11484
11507
  register_created_effect(t) {
11485
11508
  E(OR, this).push(t);
@@ -11577,43 +11600,43 @@ function x2() {
11577
11600
  return !1;
11578
11601
  }
11579
11602
  function x_() {
11580
- if (pe(R_, this, !0), mW++ > 1e3 && (Le(mi, this, $_).call(this), die()), Pt) for (const d of this.current.keys()) $R.add(d);
11603
+ if (pe(R_, this, !0), mW++ > 1e3 && (Le(vi, this, $_).call(this), die()), Pt) for (const d of this.current.keys()) $R.add(d);
11581
11604
  for (const d of E(gm, this))
11582
- E(ad, this).delete(d), ci(d, Bi), this.schedule(d);
11605
+ E(ad, this).delete(d), di(d, Bi), this.schedule(d);
11583
11606
  for (const d of E(ad, this))
11584
- ci(d, rc), this.schedule(d);
11607
+ di(d, rc), this.schedule(d);
11585
11608
  const e = E($s, this);
11586
11609
  pe($s, this, []), this.apply();
11587
11610
  var t = Bv = [], n = [], r = N_ = [];
11588
11611
  for (const d of e) try {
11589
- Le(mi, this, vW).call(this, d, t, n);
11612
+ Le(vi, this, vW).call(this, d, t, n);
11590
11613
  } catch (f) {
11591
- throw EW(d), Le(mi, this, x2).call(this) || this.discard(), f;
11614
+ throw EW(d), Le(vi, this, x2).call(this) || this.discard(), f;
11592
11615
  }
11593
11616
  if (Yn = null, r.length > 0) {
11594
11617
  var i = qz.ensure();
11595
11618
  for (const d of r) i.schedule(d);
11596
11619
  }
11597
- if (Bv = null, N_ = null, Le(mi, this, x2).call(this)) {
11598
- Le(mi, this, Jb).call(this, n), Le(mi, this, Jb).call(this, t);
11620
+ if (Bv = null, N_ = null, Le(vi, this, x2).call(this)) {
11621
+ Le(vi, this, Jb).call(this, n), Le(vi, this, Jb).call(this, t);
11599
11622
  for (const [d, f] of E(bf, this)) bW(d, f);
11600
- r.length > 0 && Le(mi, Yn, x_).call(Yn);
11623
+ r.length > 0 && Le(vi, Yn, x_).call(Yn);
11601
11624
  return;
11602
11625
  }
11603
- const s = Le(mi, this, lie).call(this);
11626
+ const s = Le(vi, this, lie).call(this);
11604
11627
  if (s) {
11605
- Le(mi, this, Jb).call(this, n), Le(mi, this, Jb).call(this, t), Le(mi, s, cie).call(s, this);
11628
+ Le(vi, this, Jb).call(this, n), Le(vi, this, Jb).call(this, t), Le(vi, s, cie).call(s, this);
11606
11629
  return;
11607
11630
  }
11608
11631
  E(gm, this).clear(), E(ad, this).clear();
11609
11632
  for (const d of E(k_, this)) d(this);
11610
11633
  E(k_, this).clear(), kR = this, $2(n), $2(t), kR = null, E(Xb, this)?.resolve();
11611
11634
  var c = Yn;
11612
- if (E(Hg, this) === 0 && (E($s, this).length === 0 || c !== null) && (Le(mi, this, $_).call(this), yd && (Le(mi, this, uie).call(this), Yn = c)), E($s, this).length > 0) if (c !== null) {
11635
+ if (E(Hg, this) === 0 && (E($s, this).length === 0 || c !== null) && (Le(vi, this, $_).call(this), yd && (Le(vi, this, uie).call(this), Yn = c)), E($s, this).length > 0) if (c !== null) {
11613
11636
  const d = c;
11614
11637
  E($s, d).push(...E($s, this).filter((f) => !E($s, d).includes(f)));
11615
11638
  } else c = this;
11616
- c !== null && Le(mi, c, x_).call(c);
11639
+ c !== null && Le(vi, c, x_).call(c);
11617
11640
  }
11618
11641
  function vW(e, t, n) {
11619
11642
  e.f ^= Ni;
@@ -11662,12 +11685,12 @@ function cie(e) {
11662
11685
  if ((i & eo) !== 0) t(c);
11663
11686
  else {
11664
11687
  var s = c;
11665
- i & (fm | Jl) && !this.async_deriveds.has(s) && (E(ad, this).delete(s), ci(s, Bi), this.schedule(s));
11688
+ i & (fm | Jl) && !this.async_deriveds.has(s) && (E(ad, this).delete(s), di(s, Bi), this.schedule(s));
11666
11689
  }
11667
11690
  }
11668
11691
  };
11669
11692
  for (const n of this.current.keys()) t(n);
11670
- this.oncommit(() => e.discard()), Le(mi, e, $_).call(e), Yn = this, Le(mi, this, x_).call(this);
11693
+ this.oncommit(() => e.discard()), Le(vi, e, $_).call(e), Yn = this, Le(vi, this, x_).call(this);
11671
11694
  }
11672
11695
  function Jb(e) {
11673
11696
  for (var t = 0; t < e.length; t += 1) pW(e[t], E(gm, this), E(ad, this));
@@ -11693,7 +11716,7 @@ function uie() {
11693
11716
  e && m.discard();
11694
11717
  else if (t.length > 0) {
11695
11718
  if (Pt && !E(uv, m) && tie(E($s, m).length === 0, "Batch has scheduled roots"), e) for (const p of E(m0, this)) m.unskip_effect(p, (g) => {
11696
- (g.f & (Jl | fm)) !== 0 ? m.schedule(g) : Le(mi, m, Jb).call(m, [g]);
11719
+ (g.f & (Jl | fm)) !== 0 ? m.schedule(g) : Le(vi, m, Jb).call(m, [g]);
11697
11720
  });
11698
11721
  m.activate();
11699
11722
  var i = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Map();
@@ -11704,10 +11727,10 @@ function uie() {
11704
11727
  return v ? v[0] !== g[0] || v[1] !== g[1] : !0;
11705
11728
  }).map(([p]) => p);
11706
11729
  if (d.length > 0)
11707
- for (const p of E(OR, this)) (p.f & (Ws | Jo | FE)) === 0 && S$(p, d, s) && ((p.f & (fm | Jl)) !== 0 ? (ci(p, Bi), m.schedule(p)) : E(gm, m).add(p));
11730
+ for (const p of E(OR, this)) (p.f & (Ws | Jo | FE)) === 0 && S$(p, d, s) && ((p.f & (fm | Jl)) !== 0 ? (di(p, Bi), m.schedule(p)) : E(gm, m).add(p));
11708
11731
  if (E($s, m).length > 0 && !E(uv, m)) {
11709
11732
  m.apply();
11710
- for (var f of E($s, m)) Le(mi, m, vW).call(m, f, [], []);
11733
+ for (var f of E($s, m)) Le(vi, m, vW).call(m, f, [], []);
11711
11734
  pe($s, m, []);
11712
11735
  }
11713
11736
  m.deactivate();
@@ -11781,7 +11804,7 @@ function yW(e, t, n, r) {
11781
11804
  if (!n.has(e) && (n.add(e), e.reactions !== null))
11782
11805
  for (const i of e.reactions) {
11783
11806
  const s = i.f;
11784
- (s & eo) !== 0 ? yW(i, t, n, r) : (s & (fm | Jl)) !== 0 && (s & Bi) === 0 && S$(i, t, r) && (ci(i, Bi), w$(i));
11807
+ (s & eo) !== 0 ? yW(i, t, n, r) : (s & (fm | Jl)) !== 0 && (s & Bi) === 0 && S$(i, t, r) && (di(i, Bi), w$(i));
11785
11808
  }
11786
11809
  }
11787
11810
  function S$(e, t, n) {
@@ -11799,13 +11822,13 @@ function w$(e) {
11799
11822
  }
11800
11823
  function bW(e, t) {
11801
11824
  if (!((e.f & nc) !== 0 && (e.f & Ni) !== 0)) {
11802
- (e.f & Bi) !== 0 ? t.d.push(e) : (e.f & rc) !== 0 && t.m.push(e), ci(e, Ni);
11825
+ (e.f & Bi) !== 0 ? t.d.push(e) : (e.f & rc) !== 0 && t.m.push(e), di(e, Ni);
11803
11826
  for (var n = e.first; n !== null; )
11804
11827
  bW(n, t), n = n.next;
11805
11828
  }
11806
11829
  }
11807
11830
  function EW(e) {
11808
- ci(e, Ni);
11831
+ di(e, Ni);
11809
11832
  for (var t = e.first; t !== null; )
11810
11833
  EW(t), t = t.next;
11811
11834
  }
@@ -11907,7 +11930,7 @@ function T$(e) {
11907
11930
  this.is_pending = !1, e.transfer_effects(E(PR, this), E(LR, this));
11908
11931
  }
11909
11932
  function DR(e) {
11910
- var t = Un, n = tr, r = oi;
11933
+ var t = Un, n = tr, r = ai;
11911
11934
  Fl(E(Ea, this)), Ja(E(Ea, this)), Uv(E(Ea, this).ctx);
11912
11935
  try {
11913
11936
  return qm.ensure(), e();
@@ -12004,7 +12027,7 @@ function bie(e, t, n, r) {
12004
12027
  }) : g();
12005
12028
  }
12006
12029
  function Eie() {
12007
- var e = Un, t = tr, n = oi, r = Yn;
12030
+ var e = Un, t = tr, n = ai, r = Yn;
12008
12031
  if (Pt) var i = BE;
12009
12032
  return function(c = !0) {
12010
12033
  Fl(e), Ja(t), Uv(n), c && (e.f & Ws) === 0 && (r?.activate(), r?.apply()), Pt && (_W(null), C_(i));
@@ -12028,7 +12051,7 @@ function jE(e) {
12028
12051
  var t = eo | Bi;
12029
12052
  Un !== null && (Un.f |= Vm);
12030
12053
  const n = {
12031
- ctx: oi,
12054
+ ctx: ai,
12032
12055
  deps: null,
12033
12056
  effects: null,
12034
12057
  equals: iW,
@@ -12136,7 +12159,7 @@ function I$(e) {
12136
12159
  function IW(e) {
12137
12160
  var t = I$(e);
12138
12161
  if (!e.equals(t) && (e.wv = M$(), (!Yn?.is_fork || e.deps === null) && (Yn !== null ? (Yn.capture(e, t, !0), kR?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
12139
- ci(e, Ni);
12162
+ di(e, Ni);
12140
12163
  return;
12141
12164
  }
12142
12165
  bd || (Ho !== null ? (R$() || Yn?.is_fork) && Ho.set(e, t) : E$(e));
@@ -12174,9 +12197,9 @@ function jo(e, t) {
12174
12197
  }
12175
12198
  function AW(e, t = !1, n = !0) {
12176
12199
  const r = vm(e);
12177
- if (t || (r.equals = sW), EC && n && oi !== null && oi.l !== null) {
12200
+ if (t || (r.equals = sW), EC && n && ai !== null && ai.l !== null) {
12178
12201
  var i;
12179
- ((i = oi.l).s ?? (i.s = [])).push(r);
12202
+ ((i = ai.l).s ?? (i.s = [])).push(r);
12180
12203
  }
12181
12204
  return r;
12182
12205
  }
@@ -12220,7 +12243,7 @@ function jv(e, t, n = null) {
12220
12243
  function NW() {
12221
12244
  C$ = !1;
12222
12245
  for (const e of Hv) {
12223
- (e.f & Ni) !== 0 && ci(e, rc);
12246
+ (e.f & Ni) !== 0 && di(e, rc);
12224
12247
  let t;
12225
12248
  try {
12226
12249
  t = US(e);
@@ -12241,7 +12264,7 @@ function RW(e, t, n) {
12241
12264
  var d = r[c], f = d.f;
12242
12265
  if (!(!i && d === Un)) {
12243
12266
  var m = (f & Bi) === 0;
12244
- if (m && ci(d, t), (f & FE) !== 0) Hv.add(d);
12267
+ if (m && di(d, t), (f & FE) !== 0) Hv.add(d);
12245
12268
  else if ((f & eo) !== 0) {
12246
12269
  var p = d;
12247
12270
  Ho?.delete(p), (f & Yf) === 0 && (f & La && (Un === null || (Un.f & UE) === 0) && (d.f |= Yf), RW(p, rc, n));
@@ -12525,7 +12548,7 @@ function hu(e, t) {
12525
12548
  if (Pt) for (; n !== null && (n.f & FE) !== 0; ) n = n.parent;
12526
12549
  n !== null && (n.f & Jo) !== 0 && (e |= Jo);
12527
12550
  var r = {
12528
- ctx: oi,
12551
+ ctx: ai,
12529
12552
  deps: null,
12530
12553
  nodes: null,
12531
12554
  f: e | Bi | La,
@@ -12562,13 +12585,13 @@ function R$() {
12562
12585
  }
12563
12586
  function kie(e) {
12564
12587
  const t = hu(LS, null);
12565
- return ci(t, Ni), t.teardown = e, t;
12588
+ return di(t, Ni), t.teardown = e, t;
12566
12589
  }
12567
12590
  function Pu(e) {
12568
12591
  Nie("$effect"), Pt && tu(e, "name", { value: "$effect" });
12569
12592
  var t = Un.f;
12570
- if (!tr && (t & nc) !== 0 && oi !== null && !oi.i) {
12571
- var n = oi;
12593
+ if (!tr && (t & nc) !== 0 && ai !== null && !ai.i) {
12594
+ var n = ai;
12572
12595
  (n.e ?? (n.e = [])).push(e);
12573
12596
  } else return PW(e);
12574
12597
  }
@@ -12643,7 +12666,7 @@ function Mie(e) {
12643
12666
  }
12644
12667
  function Zo(e, t = !0) {
12645
12668
  var n = !1;
12646
- (t || (e.f & Tre) !== 0) && e.nodes !== null && e.nodes.end !== null && (DW(e.nodes.start, e.nodes.end), n = !0), ci(e, CR), $$(e, t && !n), zE(e, 0);
12669
+ (t || (e.f & Tre) !== 0) && e.nodes !== null && e.nodes.end !== null && (DW(e.nodes.start, e.nodes.end), n = !0), di(e, CR), $$(e, t && !n), zE(e, 0);
12647
12670
  var r = e.nodes && e.nodes.t;
12648
12671
  if (r !== null) for (const s of r) s.stop();
12649
12672
  LW(e), e.f ^= CR, e.f |= Ws;
@@ -12692,7 +12715,7 @@ function M_(e) {
12692
12715
  }
12693
12716
  function BW(e, t) {
12694
12717
  if ((e.f & Jo) !== 0) {
12695
- e.f ^= Jo, (e.f & Ni) === 0 && (ci(e, Bi), qm.ensure().schedule(e));
12718
+ e.f ^= Jo, (e.f & Ni) === 0 && (di(e, Bi), qm.ensure().schedule(e));
12696
12719
  for (var n = e.first; n !== null; ) {
12697
12720
  var r = n.next, i = (n.f & Lv) !== 0 || (n.f & nc) !== 0;
12698
12721
  BW(n, i ? t : !1), n = r;
@@ -12744,7 +12767,7 @@ function US(e) {
12744
12767
  var s = n[i];
12745
12768
  if (US(s) && IW(s), s.wv > e.wv) return !0;
12746
12769
  }
12747
- (t & La) !== 0 && Ho === null && ci(e, Ni);
12770
+ (t & La) !== 0 && Ho === null && di(e, Ni);
12748
12771
  }
12749
12772
  return !1;
12750
12773
  }
@@ -12753,11 +12776,11 @@ function zW(e, t, n = !0) {
12753
12776
  if (r !== null && !(!yd && Ul !== null && Ul.has(e)))
12754
12777
  for (var i = 0; i < r.length; i++) {
12755
12778
  var s = r[i];
12756
- (s.f & eo) !== 0 ? zW(s, t, !1) : t === s && (n ? ci(s, Bi) : (s.f & Ni) !== 0 && ci(s, rc), w$(s));
12779
+ (s.f & eo) !== 0 ? zW(s, t, !1) : t === s && (n ? di(s, Bi) : (s.f & Ni) !== 0 && di(s, rc), w$(s));
12757
12780
  }
12758
12781
  }
12759
12782
  function UR(e) {
12760
- var t = co, n = ds, r = fa, i = tr, s = Ul, c = oi, d = Ds, f = Op, m = e.f;
12783
+ var t = co, n = ds, r = fa, i = tr, s = Ul, c = ai, d = Ds, f = Op, m = e.f;
12761
12784
  co = null, ds = 0, fa = null, tr = (m & (nc | Md)) === 0 ? e : null, Ul = null, Uv(e.ctx), Ds = !1, Op = ++tp, e.ac !== null && (MW(() => {
12762
12785
  e.ac.abort(yC);
12763
12786
  }), e.ac = null);
@@ -12811,7 +12834,7 @@ function zE(e, t) {
12811
12834
  function zv(e) {
12812
12835
  var t = e.f;
12813
12836
  if ((t & Ws) === 0) {
12814
- ci(e, Ni);
12837
+ di(e, Ni);
12815
12838
  var n = Un, r = v0;
12816
12839
  if (Un = e, v0 = !0, Pt) {
12817
12840
  var i = pm;
@@ -13065,7 +13088,7 @@ function YW(e, { target: t, anchor: n, props: r = {}, events: i, context: s, int
13065
13088
  pie(p, { pending: () => {
13066
13089
  } }, (b) => {
13067
13090
  lW({});
13068
- var w = oi;
13091
+ var w = ai;
13069
13092
  if (s && (w.c = s), i && (r.$$events = i), br && ld(b, null), f = e(b, r) || {}, br && (Un.nodes.end = mr, mr === null || mr.nodeType !== ky || mr.data !== g$))
13070
13093
  throw DS(), dm;
13071
13094
  cW();
@@ -13537,7 +13560,7 @@ function D1(e, t) {
13537
13560
  return e === t || e?.[qc] === t;
13538
13561
  }
13539
13562
  function hoe(e = {}, t, n, r) {
13540
- var i = oi.r, s = Un;
13563
+ var i = ai.r, s = Un;
13541
13564
  return k$(() => {
13542
13565
  var c, d;
13543
13566
  return wC(() => {
@@ -18031,17 +18054,17 @@ function Rf(e, t) {
18031
18054
  throw e;
18032
18055
  }
18033
18056
  var Fae = ~(al | Ym | Za);
18034
- function ui(e, t) {
18057
+ function fi(e, t) {
18035
18058
  e.f = e.f & Fae | t;
18036
18059
  }
18037
18060
  function z$(e) {
18038
- (e.f & 512) !== 0 || e.deps === null ? ui(e, Za) : ui(e, Ym);
18061
+ (e.f & 512) !== 0 || e.deps === null ? fi(e, Za) : fi(e, Ym);
18039
18062
  }
18040
18063
  function A7(e) {
18041
18064
  if (e !== null) for (const t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^= BS, A7(t.deps));
18042
18065
  }
18043
18066
  function N7(e, t, n) {
18044
- (e.f & 2048) !== 0 ? t.add(e) : e.f & 4096 && n.add(e), A7(e.deps), ui(e, Za);
18067
+ (e.f & 2048) !== 0 ? t.add(e) : e.f & 4096 && n.add(e), A7(e.deps), fi(e, Za);
18045
18068
  }
18046
18069
  var Uae = !1, yT = !1;
18047
18070
  function Bae(e) {
@@ -18071,9 +18094,9 @@ function On(e, t, n) {
18071
18094
  function Oe(e, t) {
18072
18095
  return e.get(er(e, t));
18073
18096
  }
18074
- var k7, V_ = null, Vg = null, ur = null, ZR = null, zo = null, QR = null, bE = !1, j1 = !1, Xv = null, q_ = null, x7 = 0, Hae = 1, G_ = /* @__PURE__ */ new WeakMap(), Pp = /* @__PURE__ */ new WeakMap(), ip = /* @__PURE__ */ new WeakMap(), Y_ = /* @__PURE__ */ new WeakMap(), bT = /* @__PURE__ */ new WeakMap(), qg = /* @__PURE__ */ new WeakMap(), zh = /* @__PURE__ */ new WeakMap(), Qb = /* @__PURE__ */ new WeakMap(), Sa = /* @__PURE__ */ new WeakMap(), ek = /* @__PURE__ */ new WeakMap(), Em = /* @__PURE__ */ new WeakMap(), cd = /* @__PURE__ */ new WeakMap(), Sf = /* @__PURE__ */ new WeakMap(), _0 = /* @__PURE__ */ new WeakMap(), eE = /* @__PURE__ */ new WeakMap(), gi = /* @__PURE__ */ new WeakSet(), Km = class $7 {
18097
+ var k7, V_ = null, Vg = null, ur = null, ZR = null, zo = null, QR = null, bE = !1, j1 = !1, Xv = null, q_ = null, x7 = 0, Hae = 1, G_ = /* @__PURE__ */ new WeakMap(), Pp = /* @__PURE__ */ new WeakMap(), ip = /* @__PURE__ */ new WeakMap(), Y_ = /* @__PURE__ */ new WeakMap(), bT = /* @__PURE__ */ new WeakMap(), qg = /* @__PURE__ */ new WeakMap(), zh = /* @__PURE__ */ new WeakMap(), Qb = /* @__PURE__ */ new WeakMap(), Sa = /* @__PURE__ */ new WeakMap(), ek = /* @__PURE__ */ new WeakMap(), Em = /* @__PURE__ */ new WeakMap(), cd = /* @__PURE__ */ new WeakMap(), Sf = /* @__PURE__ */ new WeakMap(), _0 = /* @__PURE__ */ new WeakMap(), eE = /* @__PURE__ */ new WeakMap(), yi = /* @__PURE__ */ new WeakSet(), Km = class $7 {
18075
18098
  constructor() {
18076
- W$(this, gi), vt(this, "id", Hae++), Dn(this, G_, !1), vt(this, "linked", !0), Dn(this, Pp, null), Dn(this, ip, null), vt(this, "async_deriveds", /* @__PURE__ */ new Map()), vt(this, "current", /* @__PURE__ */ new Map()), vt(this, "previous", /* @__PURE__ */ new Map()), Dn(this, Y_, /* @__PURE__ */ new Set()), Dn(this, bT, /* @__PURE__ */ new Set()), Dn(this, qg, 0), Dn(this, zh, /* @__PURE__ */ new Map()), Dn(this, Qb, null), Dn(this, Sa, []), Dn(this, ek, []), Dn(this, Em, /* @__PURE__ */ new Set()), Dn(this, cd, /* @__PURE__ */ new Set()), Dn(this, Sf, /* @__PURE__ */ new Map()), Dn(this, _0, /* @__PURE__ */ new Set()), vt(this, "is_fork", !1), Dn(this, eE, !1), Vg === null ? V_ = Vg = this : (On(ip, Vg, this), On(Pp, this, Vg)), Vg = this;
18099
+ W$(this, yi), vt(this, "id", Hae++), Dn(this, G_, !1), vt(this, "linked", !0), Dn(this, Pp, null), Dn(this, ip, null), vt(this, "async_deriveds", /* @__PURE__ */ new Map()), vt(this, "current", /* @__PURE__ */ new Map()), vt(this, "previous", /* @__PURE__ */ new Map()), Dn(this, Y_, /* @__PURE__ */ new Set()), Dn(this, bT, /* @__PURE__ */ new Set()), Dn(this, qg, 0), Dn(this, zh, /* @__PURE__ */ new Map()), Dn(this, Qb, null), Dn(this, Sa, []), Dn(this, ek, []), Dn(this, Em, /* @__PURE__ */ new Set()), Dn(this, cd, /* @__PURE__ */ new Set()), Dn(this, Sf, /* @__PURE__ */ new Map()), Dn(this, _0, /* @__PURE__ */ new Set()), vt(this, "is_fork", !1), Dn(this, eE, !1), Vg === null ? V_ = Vg = this : (On(ip, Vg, this), On(Pp, this, Vg)), Vg = this;
18077
18100
  }
18078
18101
  skip_effect(t) {
18079
18102
  Oe(Sf, this).has(t) || Oe(Sf, this).set(t, {
@@ -18085,8 +18108,8 @@ var k7, V_ = null, Vg = null, ur = null, ZR = null, zo = null, QR = null, bE = !
18085
18108
  var r = Oe(Sf, this).get(t);
18086
18109
  if (r) {
18087
18110
  Oe(Sf, this).delete(t);
18088
- for (var i of r.d) ui(i, al), n(i);
18089
- for (i of r.m) ui(i, Ym), n(i);
18111
+ for (var i of r.d) fi(i, al), n(i);
18112
+ for (i of r.m) fi(i, Ym), n(i);
18090
18113
  }
18091
18114
  Oe(_0, this).add(t);
18092
18115
  }
@@ -18101,14 +18124,14 @@ var k7, V_ = null, Vg = null, ur = null, ZR = null, zo = null, QR = null, bE = !
18101
18124
  }
18102
18125
  flush() {
18103
18126
  try {
18104
- j1 = !0, ur = this, er(gi, this, K_).call(this);
18127
+ j1 = !0, ur = this, er(yi, this, K_).call(this);
18105
18128
  } finally {
18106
18129
  x7 = 0, QR = null, Xv = null, q_ = null, j1 = !1, ur = null, zo = null, Fp.clear();
18107
18130
  }
18108
18131
  }
18109
18132
  discard() {
18110
18133
  for (const t of Oe(bT, this)) t(this);
18111
- Oe(bT, this).clear(), er(gi, this, X_).call(this), Oe(Qb, this)?.resolve();
18134
+ Oe(bT, this).clear(), er(yi, this, X_).call(this), Oe(Qb, this)?.resolve();
18112
18135
  }
18113
18136
  register_created_effect(t) {
18114
18137
  Oe(ek, this).push(t);
@@ -18202,41 +18225,41 @@ function NF() {
18202
18225
  return !1;
18203
18226
  }
18204
18227
  function K_() {
18205
- On(G_, this, !0), x7++ > 1e3 && (er(gi, this, X_).call(this), Vae());
18206
- for (const d of Oe(Em, this)) Oe(cd, this).delete(d), ui(d, al), this.schedule(d);
18207
- for (const d of Oe(cd, this)) ui(d, Ym), this.schedule(d);
18228
+ On(G_, this, !0), x7++ > 1e3 && (er(yi, this, X_).call(this), Vae());
18229
+ for (const d of Oe(Em, this)) Oe(cd, this).delete(d), fi(d, al), this.schedule(d);
18230
+ for (const d of Oe(cd, this)) fi(d, Ym), this.schedule(d);
18208
18231
  const e = Oe(Sa, this);
18209
18232
  On(Sa, this, []), this.apply();
18210
18233
  var t = Xv = [], n = [], r = q_ = [];
18211
18234
  for (const d of e) try {
18212
- er(gi, this, O7).call(this, d, t, n);
18235
+ er(yi, this, O7).call(this, d, t, n);
18213
18236
  } catch (f) {
18214
- throw L7(d), er(gi, this, NF).call(this) || this.discard(), f;
18237
+ throw L7(d), er(yi, this, NF).call(this) || this.discard(), f;
18215
18238
  }
18216
18239
  if (ur = null, r.length > 0) {
18217
18240
  var i = k7.ensure();
18218
18241
  for (const d of r) i.schedule(d);
18219
18242
  }
18220
- if (Xv = null, q_ = null, er(gi, this, NF).call(this)) {
18221
- er(gi, this, tE).call(this, n), er(gi, this, tE).call(this, t);
18243
+ if (Xv = null, q_ = null, er(yi, this, NF).call(this)) {
18244
+ er(yi, this, tE).call(this, n), er(yi, this, tE).call(this, t);
18222
18245
  for (const [d, f] of Oe(Sf, this)) P7(d, f);
18223
- r.length > 0 && er(gi, ur, K_).call(ur);
18246
+ r.length > 0 && er(yi, ur, K_).call(ur);
18224
18247
  return;
18225
18248
  }
18226
- const s = er(gi, this, jae).call(this);
18249
+ const s = er(yi, this, jae).call(this);
18227
18250
  if (s) {
18228
- er(gi, this, tE).call(this, n), er(gi, this, tE).call(this, t), er(gi, s, zae).call(s, this);
18251
+ er(yi, this, tE).call(this, n), er(yi, this, tE).call(this, t), er(yi, s, zae).call(s, this);
18229
18252
  return;
18230
18253
  }
18231
18254
  Oe(Em, this).clear(), Oe(cd, this).clear();
18232
18255
  for (const d of Oe(Y_, this)) d(this);
18233
18256
  Oe(Y_, this).clear(), ZR = this, RF(n), RF(t), ZR = null, Oe(Qb, this)?.resolve();
18234
18257
  var c = ur;
18235
- if (Oe(qg, this) === 0 && (Oe(Sa, this).length === 0 || c !== null) && (er(gi, this, X_).call(this), ru && (er(gi, this, Wae).call(this), ur = c)), Oe(Sa, this).length > 0) if (c !== null) {
18258
+ if (Oe(qg, this) === 0 && (Oe(Sa, this).length === 0 || c !== null) && (er(yi, this, X_).call(this), ru && (er(yi, this, Wae).call(this), ur = c)), Oe(Sa, this).length > 0) if (c !== null) {
18236
18259
  const d = c;
18237
18260
  Oe(Sa, d).push(...Oe(Sa, this).filter((f) => !Oe(Sa, d).includes(f)));
18238
18261
  } else c = this;
18239
- c !== null && er(gi, c, K_).call(c);
18262
+ c !== null && er(yi, c, K_).call(c);
18240
18263
  }
18241
18264
  function O7(e, t, n) {
18242
18265
  e.f ^= Za;
@@ -18283,12 +18306,12 @@ function zae(e) {
18283
18306
  if ((i & 2) !== 0) t(c);
18284
18307
  else {
18285
18308
  var s = c;
18286
- i & 4194320 && !this.async_deriveds.has(s) && (Oe(cd, this).delete(s), ui(s, al), this.schedule(s));
18309
+ i & 4194320 && !this.async_deriveds.has(s) && (Oe(cd, this).delete(s), fi(s, al), this.schedule(s));
18287
18310
  }
18288
18311
  }
18289
18312
  };
18290
18313
  for (const n of this.current.keys()) t(n);
18291
- this.oncommit(() => e.discard()), er(gi, e, X_).call(e), ur = this, er(gi, this, K_).call(this);
18314
+ this.oncommit(() => e.discard()), er(yi, e, X_).call(e), ur = this, er(yi, this, K_).call(this);
18292
18315
  }
18293
18316
  function tE(e) {
18294
18317
  for (var t = 0; t < e.length; t += 1) N7(e[t], Oe(Em, this), Oe(cd, this));
@@ -18313,7 +18336,7 @@ function Wae() {
18313
18336
  if (r.length === 0) e && m.discard();
18314
18337
  else if (t.length > 0) {
18315
18338
  if (e) for (const p of Oe(_0, this)) m.unskip_effect(p, (g) => {
18316
- (g.f & 4194320) !== 0 ? m.schedule(g) : er(gi, m, tE).call(m, [g]);
18339
+ (g.f & 4194320) !== 0 ? m.schedule(g) : er(yi, m, tE).call(m, [g]);
18317
18340
  });
18318
18341
  m.activate();
18319
18342
  var i = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Map();
@@ -18323,10 +18346,10 @@ function Wae() {
18323
18346
  const v = this.current.get(p);
18324
18347
  return v ? v[0] !== g[0] || v[1] !== g[1] : !0;
18325
18348
  }).map(([p]) => p);
18326
- if (d.length > 0) for (const p of Oe(ek, this)) !(p.f & 155648) && V$(p, d, s) && ((p.f & 4194320) !== 0 ? (ui(p, al), m.schedule(p)) : Oe(Em, m).add(p));
18349
+ if (d.length > 0) for (const p of Oe(ek, this)) !(p.f & 155648) && V$(p, d, s) && ((p.f & 4194320) !== 0 ? (fi(p, al), m.schedule(p)) : Oe(Em, m).add(p));
18327
18350
  if (Oe(Sa, m).length > 0 && !Oe(eE, m)) {
18328
18351
  m.apply();
18329
- for (var f of Oe(Sa, m)) er(gi, m, O7).call(m, f, [], []);
18352
+ for (var f of Oe(Sa, m)) er(yi, m, O7).call(m, f, [], []);
18330
18353
  On(Sa, m, []);
18331
18354
  }
18332
18355
  m.deactivate();
@@ -18387,7 +18410,7 @@ function RF(e) {
18387
18410
  function M7(e, t, n, r) {
18388
18411
  if (!n.has(e) && (n.add(e), e.reactions !== null)) for (const i of e.reactions) {
18389
18412
  const s = i.f;
18390
- (s & 2) !== 0 ? M7(i, t, n, r) : s & 4194320 && !(s & 2048) && V$(i, t, r) && (ui(i, al), q$(i));
18413
+ (s & 2) !== 0 ? M7(i, t, n, r) : s & 4194320 && !(s & 2048) && V$(i, t, r) && (fi(i, al), q$(i));
18391
18414
  }
18392
18415
  }
18393
18416
  function V$(e, t, n) {
@@ -18404,12 +18427,12 @@ function q$(e) {
18404
18427
  }
18405
18428
  function P7(e, t) {
18406
18429
  if (!((e.f & 32) !== 0 && (e.f & 1024) !== 0)) {
18407
- (e.f & 2048) !== 0 ? t.d.push(e) : e.f & 4096 && t.m.push(e), ui(e, Za);
18430
+ (e.f & 2048) !== 0 ? t.d.push(e) : e.f & 4096 && t.m.push(e), fi(e, Za);
18408
18431
  for (var n = e.first; n !== null; ) P7(n, t), n = n.next;
18409
18432
  }
18410
18433
  }
18411
18434
  function L7(e) {
18412
- ui(e, Za);
18435
+ fi(e, Za);
18413
18436
  for (var t = e.first; t !== null; ) L7(t), t = t.next;
18414
18437
  }
18415
18438
  function qae(e) {
@@ -18709,7 +18732,7 @@ function Y$(e) {
18709
18732
  function H7(e) {
18710
18733
  var t = Y$(e);
18711
18734
  if (!e.equals(t) && (e.wv = oV(), (!ur?.is_fork || e.deps === null) && (ur !== null ? (ur.capture(e, t, !0), ZR?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
18712
- ui(e, Za);
18735
+ fi(e, Za);
18713
18736
  return;
18714
18737
  }
18715
18738
  wd || (zo !== null ? (X$() || ur?.is_fork) && zo.set(e, t) : z$(e));
@@ -18763,7 +18786,7 @@ function Q_(e, t, n = null) {
18763
18786
  function ole() {
18764
18787
  z7 = !1;
18765
18788
  for (const e of Z_) {
18766
- e.f & 1024 && ui(e, Ym);
18789
+ e.f & 1024 && fi(e, Ym);
18767
18790
  let t;
18768
18791
  try {
18769
18792
  t = WS(e);
@@ -18783,7 +18806,7 @@ function W7(e, t, n) {
18783
18806
  var d = r[c], f = d.f;
18784
18807
  if (!(!i && d === qn)) {
18785
18808
  var m = (f & al) === 0;
18786
- if (m && ui(d, t), (f & 131072) !== 0) Z_.add(d);
18809
+ if (m && fi(d, t), (f & 131072) !== 0) Z_.add(d);
18787
18810
  else if ((f & 2) !== 0) {
18788
18811
  var p = d;
18789
18812
  zo?.delete(p), !(f & 65536) && (f & 512 && (qn === null || !(qn.f & 2097152)) && (d.f |= BS), W7(p, Ym, n));
@@ -19017,7 +19040,7 @@ function X$() {
19017
19040
  }
19018
19041
  function ule(e) {
19019
19042
  const t = gu(8, null);
19020
- return ui(t, Za), t.teardown = e, t;
19043
+ return fi(t, Za), t.teardown = e, t;
19021
19044
  }
19022
19045
  function Ao(e) {
19023
19046
  lle("$effect");
@@ -19097,7 +19120,7 @@ function ple(e) {
19097
19120
  }
19098
19121
  function bs(e, t = !0) {
19099
19122
  var n = !1;
19100
- (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (Z7(e.nodes.start, e.nodes.end), n = !0), ui(e, CF), Z$(e, t && !n), XE(e, 0);
19123
+ (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (Z7(e.nodes.start, e.nodes.end), n = !0), fi(e, CF), Z$(e, t && !n), XE(e, 0);
19101
19124
  var r = e.nodes && e.nodes.t;
19102
19125
  if (r !== null) for (const s of r) s.stop();
19103
19126
  J7(e), e.f ^= CF, e.f |= mae;
@@ -19145,7 +19168,7 @@ function MF(e) {
19145
19168
  }
19146
19169
  function tV(e, t) {
19147
19170
  if ((e.f & 8192) !== 0) {
19148
- e.f ^= H$, !(e.f & 1024) && (ui(e, al), Km.ensure().schedule(e));
19171
+ e.f ^= H$, !(e.f & 1024) && (fi(e, al), Km.ensure().schedule(e));
19149
19172
  for (var n = e.first; n !== null; ) {
19150
19173
  var r = n.next, i = (n.f & 65536) !== 0 || (n.f & 32) !== 0;
19151
19174
  tV(n, i ? t : !1), n = r;
@@ -19195,7 +19218,7 @@ function WS(e) {
19195
19218
  var s = n[i];
19196
19219
  if (WS(s) && H7(s), s.wv > e.wv) return !0;
19197
19220
  }
19198
- t & 512 && zo === null && ui(e, Za);
19221
+ t & 512 && zo === null && fi(e, Za);
19199
19222
  }
19200
19223
  return !1;
19201
19224
  }
@@ -19203,7 +19226,7 @@ function sV(e, t, n = !0) {
19203
19226
  var r = e.reactions;
19204
19227
  if (r !== null && !(!ru && Hl !== null && Hl.has(e))) for (var i = 0; i < r.length; i++) {
19205
19228
  var s = r[i];
19206
- (s.f & 2) !== 0 ? sV(s, t, !1) : t === s && (n ? ui(s, al) : s.f & 1024 && ui(s, Ym), q$(s));
19229
+ (s.f & 2) !== 0 ? sV(s, t, !1) : t === s && (n ? fi(s, al) : s.f & 1024 && fi(s, Ym), q$(s));
19207
19230
  }
19208
19231
  }
19209
19232
  function aV(e) {
@@ -19259,7 +19282,7 @@ function XE(e, t) {
19259
19282
  function Jv(e) {
19260
19283
  var t = e.f;
19261
19284
  if ((t & 16384) === 0) {
19262
- ui(e, Za);
19285
+ fi(e, Za);
19263
19286
  var n = qn, r = I0;
19264
19287
  qn = e, I0 = !0;
19265
19288
  try {
@@ -42398,7 +42421,7 @@ ${UP(S, se)}`;
42398
42421
  return o.id;
42399
42422
  }).join(",");
42400
42423
  }
42401
- function hi(l, o) {
42424
+ function mi(l, o) {
42402
42425
  l.setAttribute(mt.TYPE, o.type);
42403
42426
  const a = o.allAttributes();
42404
42427
  for (let h, y = 0; h = a[y]; y++) l.setAttribute(HA + h[0].toLowerCase(), h[1]);
@@ -42920,9 +42943,9 @@ ${UP(S, se)}`;
42920
42943
  let a;
42921
42944
  if (o) return a = o.getMathml(), me.getInstance().generate(() => ["WALKING END: ", l.toString()]), Sg(a);
42922
42945
  if (l.mathml.length === 1) {
42923
- if (me.getInstance().output("Walktree Case 0"), !l.childNodes.length) return me.getInstance().output("Walktree Case 0.1"), a = l.mathml[0], hi(a, l), me.getInstance().generate(() => ["WALKING END: ", l.toString()]), Sg(a);
42946
+ if (me.getInstance().output("Walktree Case 0"), !l.childNodes.length) return me.getInstance().output("Walktree Case 0.1"), a = l.mathml[0], mi(a, l), me.getInstance().generate(() => ["WALKING END: ", l.toString()]), Sg(a);
42924
42947
  const S = l.childNodes[0];
42925
- if (l.childNodes.length === 1 && S.type === I.EMPTY) return me.getInstance().output("Walktree Case 0.2"), a = l.mathml[0], hi(a, l), a.appendChild(Vr(S)), me.getInstance().generate(() => ["WALKING END: ", l.toString()]), Sg(a);
42948
+ if (l.childNodes.length === 1 && S.type === I.EMPTY) return me.getInstance().output("Walktree Case 0.2"), a = l.mathml[0], mi(a, l), a.appendChild(Vr(S)), me.getInstance().generate(() => ["WALKING END: ", l.toString()]), Sg(a);
42926
42949
  l.childNodes.forEach((C) => {
42927
42950
  C.mathml.length || C.addMathmlNodes([fL(C)]);
42928
42951
  });
@@ -42996,7 +43019,7 @@ ${UP(S, se)}`;
42996
43019
  }
42997
43020
  oX(S, yn, Ye), C.shift();
42998
43021
  }
42999
- })(a, y, l), GA.has(l.id) || (GA.set(l.id, !0), hi(a, l)), me.getInstance().generate(() => ["WALKING END: ", l.toString()]), Sg(a, l);
43022
+ })(a, y, l), GA.has(l.id) || (GA.set(l.id, !0), mi(a, l)), me.getInstance().generate(() => ["WALKING END: ", l.toString()]), Sg(a, l);
43000
43023
  }
43001
43024
  function Eg(l, o) {
43002
43025
  const a = (function(y) {
@@ -43169,7 +43192,7 @@ ${UP(S, se)}`;
43169
43192
  }
43170
43193
  function fL(l) {
43171
43194
  const o = dn("mo"), a = cn(l.textContent);
43172
- return o.appendChild(a), hi(o, l), o.setAttribute(mt.ADDED, "true"), o;
43195
+ return o.appendChild(a), mi(o, l), o.setAttribute(mt.ADDED, "true"), o;
43173
43196
  }
43174
43197
  function hL(l, o) {
43175
43198
  const a = l.type + (l.textContent ? "," + l.textContent : "");
@@ -43229,7 +43252,7 @@ ${UP(S, se)}`;
43229
43252
  const a = Yd();
43230
43253
  ft(this.mml, a), a.appendChild(this.mml), this.mml = a;
43231
43254
  }
43232
- return hi(this.mml, this.semantic), this.mml;
43255
+ return mi(this.mml, this.semantic), this.mml;
43233
43256
  }
43234
43257
  }
43235
43258
  class gL extends ul {
@@ -43240,7 +43263,7 @@ ${UP(S, se)}`;
43240
43263
  getMathml() {
43241
43264
  Vr(this.semantic.childNodes[0]), Vr(this.semantic.childNodes[1]);
43242
43265
  const o = this.semantic.mathmlTree, a = Eg([this.semantic.childNodes[0].mathmlTree, o], this.semantic);
43243
- return hi(a, this.semantic), a;
43266
+ return mi(a, this.semantic), a;
43244
43267
  }
43245
43268
  }
43246
43269
  class XA extends ul {
@@ -43254,7 +43277,7 @@ ${UP(S, se)}`;
43254
43277
  }
43255
43278
  getMathml() {
43256
43279
  const o = this.semantic.childNodes[0], a = o.childNodes[0], u = this.semantic.childNodes[1], h = o.childNodes[1], y = Vr(u), S = Vr(a), C = Vr(h);
43257
- return hi(this.mml, this.semantic), this.mml.setAttribute(mt.CHILDREN, jA([
43280
+ return mi(this.mml, this.semantic), this.mml.setAttribute(mt.CHILDREN, jA([
43258
43281
  a,
43259
43282
  h,
43260
43283
  u
@@ -43279,7 +43302,7 @@ ${UP(S, se)}`;
43279
43302
  }
43280
43303
  static createNone_(o) {
43281
43304
  const a = dn("none");
43282
- return o && hi(a, o), a.setAttribute(mt.ADDED, "true"), a;
43305
+ return o && mi(a, o), a.setAttribute(mt.ADDED, "true"), a;
43283
43306
  }
43284
43307
  constructor(o) {
43285
43308
  super(o), this.mml = o.mathmlTree;
@@ -43310,7 +43333,7 @@ ${UP(S, se)}`;
43310
43333
  }
43311
43334
  getMathml() {
43312
43335
  let o, a, u;
43313
- if (hi(this.mml, this.semantic), this.semantic.childNodes[0] && this.semantic.childNodes[0].role === x.SUBSUP) {
43336
+ if (mi(this.mml, this.semantic), this.semantic.childNodes[0] && this.semantic.childNodes[0].role === x.SUBSUP) {
43314
43337
  const y = this.semantic.childNodes[0];
43315
43338
  o = y.childNodes[0], a = dl.multiscriptIndex(this.semantic.childNodes[1]), u = dl.multiscriptIndex(y.childNodes[1]);
43316
43339
  const S = [
@@ -43346,7 +43369,7 @@ ${UP(S, se)}`;
43346
43369
  getMathml() {
43347
43370
  Vr(this.semantic.childNodes[0]);
43348
43371
  const o = dl.multiscriptIndex(this.semantic.childNodes[1]), a = dl.multiscriptIndex(this.semantic.childNodes[2]), u = dl.multiscriptIndex(this.semantic.childNodes[3]), h = dl.multiscriptIndex(this.semantic.childNodes[4]);
43349
- hi(this.mml, this.semantic);
43372
+ mi(this.mml, this.semantic);
43350
43373
  const y = [
43351
43374
  this.semantic.id,
43352
43375
  this.semantic.childNodes[0].id,
@@ -43398,11 +43421,11 @@ ${UP(S, se)}`;
43398
43421
  rewrite_() {
43399
43422
  let o = this.semantic, a = null;
43400
43423
  const u = this.introduceNewLayer_();
43401
- for (hi(u, this.fenced.parent); !this.fencedElement(o); ) {
43424
+ for (mi(u, this.fenced.parent); !this.fencedElement(o); ) {
43402
43425
  const h = o.mathmlTree, y = this.specialCase_(o, h);
43403
43426
  if (y) o = y;
43404
43427
  else {
43405
- hi(h, o);
43428
+ mi(h, o);
43406
43429
  const j = [];
43407
43430
  for (let se, ye = 1; se = o.childNodes[ye]; ye++) j.push(Vr(se));
43408
43431
  o = o.childNodes[0];
@@ -43463,10 +43486,10 @@ ${UP(S, se)}`;
43463
43486
  if (o.hasAnnotation("Emph", "top") || o.hasAnnotation("Emph", "fence") || !o.hasAnnotation("Emph", "left") && !o.hasAnnotation("Emph", "right")) {
43464
43487
  if (!o.mathmlTree || Et(o.mathmlTree) === ht.MTABLE && (!((a = o.annotation.Emph) === null || a === void 0) && a.length) && o.annotation.Emph[0] !== "table") {
43465
43488
  const h = Yd();
43466
- hi(h, o), this.mrows.unshift(h);
43489
+ mi(h, o), this.mrows.unshift(h);
43467
43490
  } else {
43468
43491
  if (Et(o.mathmlTree) === ht.MTABLE && (!((u = o.annotation.Emph) === null || u === void 0) && u.length) && o.annotation.Emph[0] === "table") return void this.finalizeTable(o);
43469
- hi(o.mathmlTree, o);
43492
+ mi(o.mathmlTree, o);
43470
43493
  }
43471
43494
  if (o.childNodes.forEach(this.recurseToTable.bind(this)), o.textContent || o.type === "punctuated") {
43472
43495
  hL(o, o.contentNodes.map((h) => {
@@ -43479,7 +43502,7 @@ ${UP(S, se)}`;
43479
43502
  } else Vr(o);
43480
43503
  }
43481
43504
  finalizeTable(o) {
43482
- hi(o.mathmlTree, o), o.contentNodes.forEach((a) => {
43505
+ mi(o.mathmlTree, o), o.contentNodes.forEach((a) => {
43483
43506
  Vr(a);
43484
43507
  }), o.childNodes.forEach((a) => {
43485
43508
  Vr(a);
@@ -43500,7 +43523,7 @@ ${UP(S, se)}`;
43500
43523
  }
43501
43524
  getMathml() {
43502
43525
  const o = this.semantic.childNodes;
43503
- return this.semantic.type !== I.LIMBOTH && this.mml.childNodes.length >= 3 && (this.mml = Eg([this.mml], this.semantic)), hi(this.mml, this.semantic), o[0].mathmlTree || (o[0].mathmlTree = this.semantic.mathmlTree), o.forEach(Uw.walkTree_), this.mml;
43526
+ return this.semantic.type !== I.LIMBOTH && this.mml.childNodes.length >= 3 && (this.mml = Eg([this.mml], this.semantic)), mi(this.mml, this.semantic), o[0].mathmlTree || (o[0].mathmlTree = this.semantic.mathmlTree), o.forEach(Uw.walkTree_), this.mml;
43504
43527
  }
43505
43528
  }
43506
43529
  class yL extends ul {
@@ -43511,7 +43534,7 @@ ${UP(S, se)}`;
43511
43534
  super(o), this.mml = o.mathmlTree;
43512
43535
  }
43513
43536
  getMathml() {
43514
- return this.semantic.contentNodes.length && Vr(this.semantic.contentNodes[0]), this.semantic.childNodes.length && Vr(this.semantic.childNodes[0]), hi(this.mml, this.semantic), this.mml;
43537
+ return this.semantic.contentNodes.length && Vr(this.semantic.contentNodes[0]), this.semantic.childNodes.length && Vr(this.semantic.childNodes[0]), mi(this.mml, this.semantic), this.mml;
43515
43538
  }
43516
43539
  }
43517
43540
  class bL extends ul {
@@ -43523,10 +43546,10 @@ ${UP(S, se)}`;
43523
43546
  }
43524
43547
  getMathml() {
43525
43548
  return this.semantic.childNodes.length ? (this.semantic.contentNodes.forEach(function(o) {
43526
- Vr(o), hi(o.mathmlTree, o);
43549
+ Vr(o), mi(o.mathmlTree, o);
43527
43550
  }), this.semantic.childNodes.forEach(function(o) {
43528
43551
  Vr(o);
43529
- }), hi(this.mml, this.semantic), this.mml.getAttribute("data-semantic-id") === this.mml.getAttribute("data-semantic-parent") && this.mml.removeAttribute("data-semantic-parent"), this.mml) : this.mml;
43552
+ }), mi(this.mml, this.semantic), this.mml.getAttribute("data-semantic-id") === this.mml.getAttribute("data-semantic-parent") && this.mml.removeAttribute("data-semantic-parent"), this.mml) : this.mml;
43530
43553
  }
43531
43554
  }
43532
43555
  class EL extends ul {
@@ -43546,7 +43569,7 @@ ${UP(S, se)}`;
43546
43569
  a && u.push(a), this.mml = Eg(u, this.semantic);
43547
43570
  }
43548
43571
  else this.mml = Eg([o].concat(this.inner, [a]), this.semantic);
43549
- return hi(this.mml, this.semantic), this.mml;
43572
+ return mi(this.mml, this.semantic), this.mml;
43550
43573
  }
43551
43574
  }
43552
43575
  class SL extends ul {
@@ -43558,7 +43581,7 @@ ${UP(S, se)}`;
43558
43581
  }
43559
43582
  getMathml() {
43560
43583
  const o = [], a = pL(this.semantic, o);
43561
- return this.mml = Eg(o, this.semantic), hi(this.mml, this.semantic), this.mml.removeAttribute(mt.CONTENT), ub(this.mml, a), this.mml;
43584
+ return this.mml = Eg(o, this.semantic), mi(this.mml, this.semantic), this.mml.removeAttribute(mt.CONTENT), ub(this.mml, a), this.mml;
43562
43585
  }
43563
43586
  }
43564
43587
  function dX(l, o) {
@@ -46398,9 +46421,9 @@ function Bpe(e, t) {
46398
46421
  if (!Jt) throw new Error("invariant(...) was not guarded by if (DEV)");
46399
46422
  e || gpe(t);
46400
46423
  }
46401
- var si = null;
46424
+ var li = null;
46402
46425
  function ny(e) {
46403
- si = e;
46426
+ li = e;
46404
46427
  }
46405
46428
  var sS = null;
46406
46429
  function lI(e) {
@@ -46411,8 +46434,8 @@ function lB(e) {
46411
46434
  qS = e;
46412
46435
  }
46413
46436
  function H6(e, t = !1, n) {
46414
- si = {
46415
- p: si,
46437
+ li = {
46438
+ p: li,
46416
46439
  i: !1,
46417
46440
  c: null,
46418
46441
  e: null,
@@ -46424,18 +46447,18 @@ function H6(e, t = !1, n) {
46424
46447
  u: null,
46425
46448
  $: []
46426
46449
  } : null
46427
- }, Jt && (si.function = n, qS = n);
46450
+ }, Jt && (li.function = n, qS = n);
46428
46451
  }
46429
46452
  function j6(e) {
46430
- var t = si, n = t.e;
46453
+ var t = li, n = t.e;
46431
46454
  if (n !== null) {
46432
46455
  t.e = null;
46433
46456
  for (var r of n) fq(r);
46434
46457
  }
46435
- return e !== void 0 && (t.x = e), t.i = !0, si = t.p, Jt && (qS = si?.function ?? null), e ?? {};
46458
+ return e !== void 0 && (t.x = e), t.i = !0, li = t.p, Jt && (qS = li?.function ?? null), e ?? {};
46436
46459
  }
46437
46460
  function GS() {
46438
- return !UC || si !== null && si.l === null;
46461
+ return !UC || li !== null && li.l === null;
46439
46462
  }
46440
46463
  var ap = [];
46441
46464
  function z6() {
@@ -46500,11 +46523,11 @@ function V6(e) {
46500
46523
  t && (ou(e, "message", { value: t.message }), ou(e, "stack", { value: t.stack }));
46501
46524
  }
46502
46525
  var zpe = ~(Hi | oc | Ri);
46503
- function di(e, t) {
46526
+ function hi(e, t) {
46504
46527
  e.f = e.f & zpe | t;
46505
46528
  }
46506
46529
  function bO(e) {
46507
- (e.f & Ua) !== 0 || e.deps === null ? di(e, Ri) : di(e, oc);
46530
+ (e.f & Ua) !== 0 || e.deps === null ? hi(e, Ri) : hi(e, oc);
46508
46531
  }
46509
46532
  function q6(e) {
46510
46533
  if (e !== null)
@@ -46512,7 +46535,7 @@ function q6(e) {
46512
46535
  (t.f & to) === 0 || (t.f & Kf) === 0 || (t.f ^= Kf, q6(t.deps));
46513
46536
  }
46514
46537
  function G6(e, t, n) {
46515
- (e.f & Hi) !== 0 ? t.add(e) : (e.f & oc) !== 0 && n.add(e), q6(e.deps), di(e, Ri);
46538
+ (e.f & Hi) !== 0 ? t.add(e) : (e.f & oc) !== 0 && n.add(e), q6(e.deps), hi(e, Ri);
46516
46539
  }
46517
46540
  var Wpe = !1, $T = !1;
46518
46541
  function Vpe(e) {
@@ -46523,9 +46546,9 @@ function Vpe(e) {
46523
46546
  $T = t;
46524
46547
  }
46525
46548
  }
46526
- var cI = null, Kg = null, sr = null, Ik = null, Wo = null, Ck = null, _E = !1, sN = !1, iy = null, uI = null, Y6 = 0, Ak = /* @__PURE__ */ new Set(), qpe = 1, dI = /* @__PURE__ */ new WeakMap(), Bp = /* @__PURE__ */ new WeakMap(), lp = /* @__PURE__ */ new WeakMap(), fI = /* @__PURE__ */ new WeakMap(), OT = /* @__PURE__ */ new WeakMap(), Xg = /* @__PURE__ */ new WeakMap(), Wh = /* @__PURE__ */ new WeakMap(), rE = /* @__PURE__ */ new WeakMap(), Os = /* @__PURE__ */ new WeakMap(), Nk = /* @__PURE__ */ new WeakMap(), Im = /* @__PURE__ */ new WeakMap(), dd = /* @__PURE__ */ new WeakMap(), wf = /* @__PURE__ */ new WeakMap(), M0 = /* @__PURE__ */ new WeakMap(), mv = /* @__PURE__ */ new WeakMap(), vi = /* @__PURE__ */ new WeakSet(), Zm = class K6 {
46549
+ var cI = null, Kg = null, sr = null, Ik = null, Wo = null, Ck = null, _E = !1, sN = !1, iy = null, uI = null, Y6 = 0, Ak = /* @__PURE__ */ new Set(), qpe = 1, dI = /* @__PURE__ */ new WeakMap(), Bp = /* @__PURE__ */ new WeakMap(), lp = /* @__PURE__ */ new WeakMap(), fI = /* @__PURE__ */ new WeakMap(), OT = /* @__PURE__ */ new WeakMap(), Xg = /* @__PURE__ */ new WeakMap(), Wh = /* @__PURE__ */ new WeakMap(), rE = /* @__PURE__ */ new WeakMap(), Os = /* @__PURE__ */ new WeakMap(), Nk = /* @__PURE__ */ new WeakMap(), Im = /* @__PURE__ */ new WeakMap(), dd = /* @__PURE__ */ new WeakMap(), wf = /* @__PURE__ */ new WeakMap(), M0 = /* @__PURE__ */ new WeakMap(), mv = /* @__PURE__ */ new WeakMap(), bi = /* @__PURE__ */ new WeakSet(), Zm = class K6 {
46527
46550
  constructor() {
46528
- os(this, vi), $(this, "id", qpe++), Ce(this, dI, !1), $(this, "linked", !0), Ce(this, Bp, null), Ce(this, lp, null), $(this, "async_deriveds", /* @__PURE__ */ new Map()), $(this, "current", /* @__PURE__ */ new Map()), $(this, "previous", /* @__PURE__ */ new Map()), Ce(this, fI, /* @__PURE__ */ new Set()), Ce(this, OT, /* @__PURE__ */ new Set()), Ce(this, Xg, 0), Ce(this, Wh, /* @__PURE__ */ new Map()), Ce(this, rE, null), Ce(this, Os, []), Ce(this, Nk, []), Ce(this, Im, /* @__PURE__ */ new Set()), Ce(this, dd, /* @__PURE__ */ new Set()), Ce(this, wf, /* @__PURE__ */ new Map()), Ce(this, M0, /* @__PURE__ */ new Set()), $(this, "is_fork", !1), Ce(this, mv, !1), Kg === null ? cI = Kg = this : (pe(lp, Kg, this), pe(Bp, this, Kg)), Kg = this;
46551
+ os(this, bi), $(this, "id", qpe++), Ce(this, dI, !1), $(this, "linked", !0), Ce(this, Bp, null), Ce(this, lp, null), $(this, "async_deriveds", /* @__PURE__ */ new Map()), $(this, "current", /* @__PURE__ */ new Map()), $(this, "previous", /* @__PURE__ */ new Map()), Ce(this, fI, /* @__PURE__ */ new Set()), Ce(this, OT, /* @__PURE__ */ new Set()), Ce(this, Xg, 0), Ce(this, Wh, /* @__PURE__ */ new Map()), Ce(this, rE, null), Ce(this, Os, []), Ce(this, Nk, []), Ce(this, Im, /* @__PURE__ */ new Set()), Ce(this, dd, /* @__PURE__ */ new Set()), Ce(this, wf, /* @__PURE__ */ new Map()), Ce(this, M0, /* @__PURE__ */ new Set()), $(this, "is_fork", !1), Ce(this, mv, !1), Kg === null ? cI = Kg = this : (pe(lp, Kg, this), pe(Bp, this, Kg)), Kg = this;
46529
46552
  }
46530
46553
  skip_effect(t) {
46531
46554
  E(wf, this).has(t) || E(wf, this).set(t, {
@@ -46538,9 +46561,9 @@ var cI = null, Kg = null, sr = null, Ik = null, Wo = null, Ck = null, _E = !1, s
46538
46561
  if (r) {
46539
46562
  E(wf, this).delete(t);
46540
46563
  for (var i of r.d)
46541
- di(i, Hi), n(i);
46564
+ hi(i, Hi), n(i);
46542
46565
  for (i of r.m)
46543
- di(i, oc), n(i);
46566
+ hi(i, oc), n(i);
46544
46567
  }
46545
46568
  E(M0, this).add(t);
46546
46569
  }
@@ -46555,14 +46578,14 @@ var cI = null, Kg = null, sr = null, Ik = null, Wo = null, Ck = null, _E = !1, s
46555
46578
  }
46556
46579
  flush() {
46557
46580
  try {
46558
- Jt && Ak.clear(), sN = !0, sr = this, Le(vi, this, hI).call(this);
46581
+ Jt && Ak.clear(), sN = !0, sr = this, Le(bi, this, hI).call(this);
46559
46582
  } finally {
46560
46583
  if (Y6 = 0, Ck = null, iy = null, uI = null, sN = !1, sr = null, Wo = null, zp.clear(), Jt) for (const t of Ak) t.updated = null;
46561
46584
  }
46562
46585
  }
46563
46586
  discard() {
46564
46587
  for (const t of E(OT, this)) t(this);
46565
- E(OT, this).clear(), Le(vi, this, pI).call(this), E(rE, this)?.resolve();
46588
+ E(OT, this).clear(), Le(bi, this, pI).call(this), E(rE, this)?.resolve();
46566
46589
  }
46567
46590
  register_created_effect(t) {
46568
46591
  E(Nk, this).push(t);
@@ -46660,43 +46683,43 @@ function cB() {
46660
46683
  return !1;
46661
46684
  }
46662
46685
  function hI() {
46663
- if (pe(dI, this, !0), Y6++ > 1e3 && (Le(vi, this, pI).call(this), Xpe()), Jt) for (const d of this.current.keys()) Ak.add(d);
46686
+ if (pe(dI, this, !0), Y6++ > 1e3 && (Le(bi, this, pI).call(this), Xpe()), Jt) for (const d of this.current.keys()) Ak.add(d);
46664
46687
  for (const d of E(Im, this))
46665
- E(dd, this).delete(d), di(d, Hi), this.schedule(d);
46688
+ E(dd, this).delete(d), hi(d, Hi), this.schedule(d);
46666
46689
  for (const d of E(dd, this))
46667
- di(d, oc), this.schedule(d);
46690
+ hi(d, oc), this.schedule(d);
46668
46691
  const e = E(Os, this);
46669
46692
  pe(Os, this, []), this.apply();
46670
46693
  var t = iy = [], n = [], r = uI = [];
46671
46694
  for (const d of e) try {
46672
- Le(vi, this, X6).call(this, d, t, n);
46695
+ Le(bi, this, X6).call(this, d, t, n);
46673
46696
  } catch (f) {
46674
- throw Q6(d), Le(vi, this, cB).call(this) || this.discard(), f;
46697
+ throw Q6(d), Le(bi, this, cB).call(this) || this.discard(), f;
46675
46698
  }
46676
46699
  if (sr = null, r.length > 0) {
46677
46700
  var i = R6.ensure();
46678
46701
  for (const d of r) i.schedule(d);
46679
46702
  }
46680
- if (iy = null, uI = null, Le(vi, this, cB).call(this)) {
46681
- Le(vi, this, iE).call(this, n), Le(vi, this, iE).call(this, t);
46703
+ if (iy = null, uI = null, Le(bi, this, cB).call(this)) {
46704
+ Le(bi, this, iE).call(this, n), Le(bi, this, iE).call(this, t);
46682
46705
  for (const [d, f] of E(wf, this)) Z6(d, f);
46683
- r.length > 0 && Le(vi, sr, hI).call(sr);
46706
+ r.length > 0 && Le(bi, sr, hI).call(sr);
46684
46707
  return;
46685
46708
  }
46686
- const s = Le(vi, this, Gpe).call(this);
46709
+ const s = Le(bi, this, Gpe).call(this);
46687
46710
  if (s) {
46688
- Le(vi, this, iE).call(this, n), Le(vi, this, iE).call(this, t), Le(vi, s, Ype).call(s, this);
46711
+ Le(bi, this, iE).call(this, n), Le(bi, this, iE).call(this, t), Le(bi, s, Ype).call(s, this);
46689
46712
  return;
46690
46713
  }
46691
46714
  E(Im, this).clear(), E(dd, this).clear();
46692
46715
  for (const d of E(fI, this)) d(this);
46693
46716
  E(fI, this).clear(), Ik = this, uB(n), uB(t), Ik = null, E(rE, this)?.resolve();
46694
46717
  var c = sr;
46695
- if (E(Xg, this) === 0 && (E(Os, this).length === 0 || c !== null) && (Le(vi, this, pI).call(this), Td && (Le(vi, this, Kpe).call(this), sr = c)), E(Os, this).length > 0) if (c !== null) {
46718
+ if (E(Xg, this) === 0 && (E(Os, this).length === 0 || c !== null) && (Le(bi, this, pI).call(this), Td && (Le(bi, this, Kpe).call(this), sr = c)), E(Os, this).length > 0) if (c !== null) {
46696
46719
  const d = c;
46697
46720
  E(Os, d).push(...E(Os, this).filter((f) => !E(Os, d).includes(f)));
46698
46721
  } else c = this;
46699
- c !== null && Le(vi, c, hI).call(c);
46722
+ c !== null && Le(bi, c, hI).call(c);
46700
46723
  }
46701
46724
  function X6(e, t, n) {
46702
46725
  e.f ^= Ri;
@@ -46745,12 +46768,12 @@ function Ype(e) {
46745
46768
  if ((i & to) !== 0) t(c);
46746
46769
  else {
46747
46770
  var s = c;
46748
- i & (Tm | Zl) && !this.async_deriveds.has(s) && (E(dd, this).delete(s), di(s, Hi), this.schedule(s));
46771
+ i & (Tm | Zl) && !this.async_deriveds.has(s) && (E(dd, this).delete(s), hi(s, Hi), this.schedule(s));
46749
46772
  }
46750
46773
  }
46751
46774
  };
46752
46775
  for (const n of this.current.keys()) t(n);
46753
- this.oncommit(() => e.discard()), Le(vi, e, pI).call(e), sr = this, Le(vi, this, hI).call(this);
46776
+ this.oncommit(() => e.discard()), Le(bi, e, pI).call(e), sr = this, Le(bi, this, hI).call(this);
46754
46777
  }
46755
46778
  function iE(e) {
46756
46779
  for (var t = 0; t < e.length; t += 1) G6(e[t], E(Im, this), E(dd, this));
@@ -46776,7 +46799,7 @@ function Kpe() {
46776
46799
  e && m.discard();
46777
46800
  else if (t.length > 0) {
46778
46801
  if (Jt && !E(mv, m) && Bpe(E(Os, m).length === 0, "Batch has scheduled roots"), e) for (const p of E(M0, this)) m.unskip_effect(p, (g) => {
46779
- (g.f & (Zl | Tm)) !== 0 ? m.schedule(g) : Le(vi, m, iE).call(m, [g]);
46802
+ (g.f & (Zl | Tm)) !== 0 ? m.schedule(g) : Le(bi, m, iE).call(m, [g]);
46780
46803
  });
46781
46804
  m.activate();
46782
46805
  var i = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Map();
@@ -46787,10 +46810,10 @@ function Kpe() {
46787
46810
  return v ? v[0] !== g[0] || v[1] !== g[1] : !0;
46788
46811
  }).map(([p]) => p);
46789
46812
  if (d.length > 0)
46790
- for (const p of E(Nk, this)) (p.f & (Ha | Ba | iS)) === 0 && EO(p, d, s) && ((p.f & (Tm | Zl)) !== 0 ? (di(p, Hi), m.schedule(p)) : E(Im, m).add(p));
46813
+ for (const p of E(Nk, this)) (p.f & (Ha | Ba | iS)) === 0 && EO(p, d, s) && ((p.f & (Tm | Zl)) !== 0 ? (hi(p, Hi), m.schedule(p)) : E(Im, m).add(p));
46791
46814
  if (E(Os, m).length > 0 && !E(mv, m)) {
46792
46815
  m.apply();
46793
- for (var f of E(Os, m)) Le(vi, m, X6).call(m, f, [], []);
46816
+ for (var f of E(Os, m)) Le(bi, m, X6).call(m, f, [], []);
46794
46817
  pe(Os, m, []);
46795
46818
  }
46796
46819
  m.deactivate();
@@ -46864,7 +46887,7 @@ function J6(e, t, n, r) {
46864
46887
  if (!n.has(e) && (n.add(e), e.reactions !== null))
46865
46888
  for (const i of e.reactions) {
46866
46889
  const s = i.f;
46867
- (s & to) !== 0 ? J6(i, t, n, r) : (s & (Tm | Zl)) !== 0 && (s & Hi) === 0 && EO(i, t, r) && (di(i, Hi), SO(i));
46890
+ (s & to) !== 0 ? J6(i, t, n, r) : (s & (Tm | Zl)) !== 0 && (s & Hi) === 0 && EO(i, t, r) && (hi(i, Hi), SO(i));
46868
46891
  }
46869
46892
  }
46870
46893
  function EO(e, t, n) {
@@ -46882,13 +46905,13 @@ function SO(e) {
46882
46905
  }
46883
46906
  function Z6(e, t) {
46884
46907
  if (!((e.f & bu) !== 0 && (e.f & Ri) !== 0)) {
46885
- (e.f & Hi) !== 0 ? t.d.push(e) : (e.f & oc) !== 0 && t.m.push(e), di(e, Ri);
46908
+ (e.f & Hi) !== 0 ? t.d.push(e) : (e.f & oc) !== 0 && t.m.push(e), hi(e, Ri);
46886
46909
  for (var n = e.first; n !== null; )
46887
46910
  Z6(n, t), n = n.next;
46888
46911
  }
46889
46912
  }
46890
46913
  function Q6(e) {
46891
- di(e, Ri);
46914
+ hi(e, Ri);
46892
46915
  for (var t = e.first; t !== null; )
46893
46916
  Q6(t), t = t.next;
46894
46917
  }
@@ -46990,7 +47013,7 @@ function wO(e) {
46990
47013
  this.is_pending = !1, e.transfer_effects(E(kk, this), E(xk, this));
46991
47014
  }
46992
47015
  function $k(e) {
46993
- var t = jn, n = nr, r = si;
47016
+ var t = jn, n = nr, r = li;
46994
47017
  zl(E(Ta, this)), tl(E(Ta, this)), ny(E(Ta, this).ctx);
46995
47018
  try {
46996
47019
  return Zm.ensure(), e();
@@ -47087,7 +47110,7 @@ function ime(e, t, n, r) {
47087
47110
  }) : g();
47088
47111
  }
47089
47112
  function ome() {
47090
- var e = jn, t = nr, n = si, r = sr;
47113
+ var e = jn, t = nr, n = li, r = sr;
47091
47114
  if (Jt) var i = sS;
47092
47115
  return function(c = !0) {
47093
47116
  zl(e), tl(t), ny(n), c && (e.f & Ha) === 0 && (r?.activate(), r?.apply()), Jt && (rq(null), lI(i));
@@ -47111,7 +47134,7 @@ function lS(e) {
47111
47134
  var t = to | Hi;
47112
47135
  jn !== null && (jn.f |= Jm);
47113
47136
  const n = {
47114
- ctx: si,
47137
+ ctx: li,
47115
47138
  deps: null,
47116
47139
  effects: null,
47117
47140
  equals: F6,
@@ -47219,7 +47242,7 @@ function TO(e) {
47219
47242
  function oq(e) {
47220
47243
  var t = TO(e);
47221
47244
  if (!e.equals(t) && (e.wv = xO(), (!sr?.is_fork || e.deps === null) && (sr !== null ? (sr.capture(e, t, !0), Ik?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
47222
- di(e, Ri);
47245
+ hi(e, Ri);
47223
47246
  return;
47224
47247
  }
47225
47248
  Cd || (Wo !== null ? (NO() || sr?.is_fork) && Wo.set(e, t) : bO(e));
@@ -47257,9 +47280,9 @@ function Qr(e, t) {
47257
47280
  }
47258
47281
  function cme(e, t = !1, n = !0) {
47259
47282
  const r = YS(e);
47260
- if (t || (r.equals = U6), UC && n && si !== null && si.l !== null) {
47283
+ if (t || (r.equals = U6), UC && n && li !== null && li.l !== null) {
47261
47284
  var i;
47262
- ((i = si.l).s ?? (i.s = [])).push(r);
47285
+ ((i = li.l).s ?? (i.s = [])).push(r);
47263
47286
  }
47264
47287
  return r;
47265
47288
  }
@@ -47303,7 +47326,7 @@ function gI(e, t, n = null) {
47303
47326
  function aq() {
47304
47327
  _O = !1;
47305
47328
  for (const e of oy) {
47306
- (e.f & Ri) !== 0 && di(e, oc);
47329
+ (e.f & Ri) !== 0 && hi(e, oc);
47307
47330
  let t;
47308
47331
  try {
47309
47332
  t = XS(e);
@@ -47324,7 +47347,7 @@ function lq(e, t, n) {
47324
47347
  var d = r[c], f = d.f;
47325
47348
  if (!(!i && d === jn)) {
47326
47349
  var m = (f & Hi) === 0;
47327
- if (m && di(d, t), (f & iS) !== 0) oy.add(d);
47350
+ if (m && hi(d, t), (f & iS) !== 0) oy.add(d);
47328
47351
  else if ((f & to) !== 0) {
47329
47352
  var p = d;
47330
47353
  Wo?.delete(p), (f & Kf) === 0 && (f & Ua && (jn === null || (jn.f & oS) === 0) && (d.f |= Kf), lq(p, oc, n));
@@ -47608,7 +47631,7 @@ function Eu(e, t) {
47608
47631
  if (Jt) for (; n !== null && (n.f & iS) !== 0; ) n = n.parent;
47609
47632
  n !== null && (n.f & Ba) !== 0 && (e |= Ba);
47610
47633
  var r = {
47611
- ctx: si,
47634
+ ctx: li,
47612
47635
  deps: null,
47613
47636
  nodes: null,
47614
47637
  f: e | Hi | Ua,
@@ -47645,13 +47668,13 @@ function NO() {
47645
47668
  }
47646
47669
  function yme(e) {
47647
47670
  const t = Eu(VS, null);
47648
- return di(t, Ri), t.teardown = e, t;
47671
+ return hi(t, Ri), t.teardown = e, t;
47649
47672
  }
47650
47673
  function Xr(e) {
47651
47674
  gme("$effect"), Jt && ou(e, "name", { value: "$effect" });
47652
47675
  var t = jn.f;
47653
- if (!nr && (t & bu) !== 0 && si !== null && !si.i) {
47654
- var n = si;
47676
+ if (!nr && (t & bu) !== 0 && li !== null && !li.i) {
47677
+ var n = li;
47655
47678
  (n.e ?? (n.e = [])).push(e);
47656
47679
  } else return fq(e);
47657
47680
  }
@@ -47726,7 +47749,7 @@ function Tme(e) {
47726
47749
  }
47727
47750
  function Ss(e, t = !0) {
47728
47751
  var n = !1;
47729
- (t || (e.f & upe) !== 0) && e.nodes !== null && e.nodes.end !== null && (_me(e.nodes.start, e.nodes.end), n = !0), di(e, Tk), kO(e, t && !n), cS(e, 0);
47752
+ (t || (e.f & upe) !== 0) && e.nodes !== null && e.nodes.end !== null && (_me(e.nodes.start, e.nodes.end), n = !0), hi(e, Tk), kO(e, t && !n), cS(e, 0);
47730
47753
  var r = e.nodes && e.nodes.t;
47731
47754
  if (r !== null) for (const s of r) s.stop();
47732
47755
  mq(e), e.f ^= Tk, e.f |= Ha;
@@ -47775,7 +47798,7 @@ function vB(e) {
47775
47798
  }
47776
47799
  function yq(e, t) {
47777
47800
  if ((e.f & Ba) !== 0) {
47778
- e.f ^= Ba, (e.f & Ri) === 0 && (di(e, Hi), Zm.ensure().schedule(e));
47801
+ e.f ^= Ba, (e.f & Ri) === 0 && (hi(e, Hi), Zm.ensure().schedule(e));
47779
47802
  for (var n = e.first; n !== null; ) {
47780
47803
  var r = n.next, i = (n.f & ey) !== 0 || (n.f & bu) !== 0;
47781
47804
  yq(n, i ? t : !1), n = r;
@@ -47827,7 +47850,7 @@ function XS(e) {
47827
47850
  var s = n[i];
47828
47851
  if (XS(s) && oq(s), s.wv > e.wv) return !0;
47829
47852
  }
47830
- (t & Ua) !== 0 && Wo === null && di(e, Ri);
47853
+ (t & Ua) !== 0 && Wo === null && hi(e, Ri);
47831
47854
  }
47832
47855
  return !1;
47833
47856
  }
@@ -47836,11 +47859,11 @@ function wq(e, t, n = !0) {
47836
47859
  if (r !== null && !(!Td && Wl !== null && Wl.has(e)))
47837
47860
  for (var i = 0; i < r.length; i++) {
47838
47861
  var s = r[i];
47839
- (s.f & to) !== 0 ? wq(s, t, !1) : t === s && (n ? di(s, Hi) : (s.f & Ri) !== 0 && di(s, oc), SO(s));
47862
+ (s.f & to) !== 0 ? wq(s, t, !1) : t === s && (n ? hi(s, Hi) : (s.f & Ri) !== 0 && hi(s, oc), SO(s));
47840
47863
  }
47841
47864
  }
47842
47865
  function Mk(e) {
47843
- var t = uo, n = fs, r = pa, i = nr, s = Wl, c = si, d = Fs, f = Wp, m = e.f;
47866
+ var t = uo, n = fs, r = pa, i = nr, s = Wl, c = li, d = Fs, f = Wp, m = e.f;
47844
47867
  uo = null, fs = 0, pa = null, nr = (m & (bu | Ld)) === 0 ? e : null, Wl = null, ny(e.ctx), Fs = !1, Wp = ++cp, e.ac !== null && (dq(() => {
47845
47868
  e.ac.abort(MC);
47846
47869
  }), e.ac = null);
@@ -47894,7 +47917,7 @@ function cS(e, t) {
47894
47917
  function ay(e) {
47895
47918
  var t = e.f;
47896
47919
  if ((t & Ha) === 0) {
47897
- di(e, Ri);
47920
+ hi(e, Ri);
47898
47921
  var n = jn, r = L0;
47899
47922
  if (jn = e, L0 = !0, Jt) {
47900
47923
  var i = qS;
@@ -48105,7 +48128,7 @@ function Aq(e, { target: t, anchor: n, props: r = {}, events: i, context: s, int
48105
48128
  Qpe(p, { pending: () => {
48106
48129
  } }, (b) => {
48107
48130
  H6({});
48108
- var w = si;
48131
+ var w = li;
48109
48132
  if (s && (w.c = s), i && (r.$$events = i), Ti && Cv(b, null), f = e(b, r) || {}, Ti && (jn.nodes.end = zr, zr === null || zr.nodeType !== LC || zr.data !== O6))
48110
48133
  throw DC(), Qv;
48111
48134
  j6();
@@ -48279,7 +48302,7 @@ function pN(e, t) {
48279
48302
  return e === t || e?.[Bf] === t;
48280
48303
  }
48281
48304
  function zme(e = {}, t, n, r) {
48282
- var i = si.r, s = jn;
48305
+ var i = li.r, s = jn;
48283
48306
  return hq(() => {
48284
48307
  var c, d;
48285
48308
  return RO(() => {
@@ -49672,7 +49695,7 @@ var Rge = {
49672
49695
  }
49673
49696
  };
49674
49697
  }
49675
- }, Si = (e) => e.trim().replace(/\s+/g, " "), Lq = () => /[\p{L}]+|\d+(?:\.\d+)?|[±√=+\-*/()²³^×÷≤≥≠≈<>|%°'′\u2062]/gu, Dq = (e) => {
49698
+ }, si = (e) => e.trim().replace(/\s+/g, " "), Lq = () => /[\p{L}]+|\d+(?:\.\d+)?|[±√=+\-*/()²³^×÷≤≥≠≈<>|%°'′\u2062]/gu, Dq = (e) => {
49676
49699
  if (e.hidden || e.tagName?.toLowerCase() === "mjx-assistive-mml" || e.getAttribute("aria-hidden") === "true" || e.hasAttribute("inert")) return !0;
49677
49700
  const t = e.classList;
49678
49701
  if (t?.contains("sr-only") || t?.contains("pie-sr-only") || t?.contains("visually-hidden")) return !0;
@@ -49788,7 +49811,7 @@ var Rge = {
49788
49811
  }
49789
49812
  }, Bq = async (e, t = {}) => {
49790
49813
  if (!e.some((m) => m.type === "math")) return {
49791
- speechText: Si(e.map((m) => m.type === "text" ? m.text : m.fallbackText).join(" ")),
49814
+ speechText: si(e.map((m) => m.type === "text" ? m.text : m.fallbackText).join(" ")),
49792
49815
  usedMathSpeech: !1,
49793
49816
  usedFallback: !1
49794
49817
  };
@@ -49801,7 +49824,7 @@ var Rge = {
49801
49824
  }
49802
49825
  try {
49803
49826
  n || (n = await s());
49804
- const p = Si(await Uq(n, m.mathml, t.language, "none", t.mathSpeech));
49827
+ const p = si(await Uq(n, m.mathml, t.language, "none", t.mathSpeech));
49805
49828
  if (p) {
49806
49829
  c.push(p), r = !0;
49807
49830
  continue;
@@ -49811,7 +49834,7 @@ var Rge = {
49811
49834
  i = !0, console.debug("[TTSService] Math speech generation failed; using visible fallback", { message: p instanceof Error ? p.message : String(p) }), c.push(m.fallbackText);
49812
49835
  }
49813
49836
  }
49814
- const d = Si(c.join(" "));
49837
+ const d = si(c.join(" "));
49815
49838
  let f;
49816
49839
  return t.produceSsml && n && r && e.length === 1 && e[0].type === "math" && (f = await Lge(n, e[0].mathml, t.language, t.mathSpeech) ?? void 0), {
49817
49840
  speechText: d,
@@ -51843,7 +51866,7 @@ var dve = class {
51843
51866
  }
51844
51867
  const s = pve(t);
51845
51868
  return {
51846
- spokenText: Si(s.text),
51869
+ spokenText: si(s.text),
51847
51870
  rawToSpokenOffsetMap: s.rawToSpokenOffsetMap,
51848
51871
  unsupportedSemantic: n,
51849
51872
  hasMarkup: r
@@ -52004,7 +52027,7 @@ var dve = class {
52004
52027
  const r = e.length / Math.max(1, Math.min(t.length, n.length)), i = e.reduce((s, c) => s + c.score, 0) / e.length / 10;
52005
52028
  return Math.min(1, r * i);
52006
52029
  }, e8 = (e) => {
52007
- const t = Zq(e.speechText), n = Si(e.visibleText), r = t.spokenText, i = zk(r), s = zk(n), c = t.unsupportedSemantic ? [] : Eve(i, s), d = Sve(c, i, s), f = r === n && r.length > 0, m = c.length === 1 && c[0].score === 10 && i.length <= 2 && s.length <= 2, p = t.unsupportedSemantic ? "region-fallback" : f ? "exact-word" : (c.length >= 2 || m) && d >= 0.12 ? "anchor-span" : "region-fallback", g = t.unsupportedSemantic ? "unsupported" : t.hasMarkup ? "raw-ssml" : "plain-spoken-text";
52030
+ const t = Zq(e.speechText), n = si(e.visibleText), r = t.spokenText, i = zk(r), s = zk(n), c = t.unsupportedSemantic ? [] : Eve(i, s), d = Sve(c, i, s), f = r === n && r.length > 0, m = c.length === 1 && c[0].score === 10 && i.length <= 2 && s.length <= 2, p = t.unsupportedSemantic ? "region-fallback" : f ? "exact-word" : (c.length >= 2 || m) && d >= 0.12 ? "anchor-span" : "region-fallback", g = t.unsupportedSemantic ? "unsupported" : t.hasMarkup ? "raw-ssml" : "plain-spoken-text";
52008
52031
  return {
52009
52032
  speechText: e.speechText,
52010
52033
  spokenText: r,
@@ -52757,7 +52780,7 @@ var dve = class {
52757
52780
  if (!d8(s))
52758
52781
  for (const c of Array.from(s.childNodes)) r(c);
52759
52782
  };
52760
- return r(t.documentElement), Si(n.join(" "));
52783
+ return r(t.documentElement), si(n.join(" "));
52761
52784
  }, mye = (e, t, n) => {
52762
52785
  const r = l8(n), i = (d) => {
52763
52786
  if (Ly(d, e)) return;
@@ -52771,7 +52794,7 @@ var dve = class {
52771
52794
  for (const m of Array.from(f.childNodes)) i(m);
52772
52795
  };
52773
52796
  i(e), p8(r);
52774
- const s = Si(r.chars.join(""));
52797
+ const s = si(r.chars.join(""));
52775
52798
  if (s) return {
52776
52799
  text: s,
52777
52800
  map: r.map
@@ -52788,7 +52811,7 @@ var dve = class {
52788
52811
  const n = l8(t), r = [];
52789
52812
  let i = 0, s, c = !1;
52790
52813
  const d = () => {
52791
- const p = Si(n.chars.slice(i, n.chars.length).join(""));
52814
+ const p = si(n.chars.slice(i, n.chars.length).join(""));
52792
52815
  p && r.push({
52793
52816
  type: "text",
52794
52817
  text: p,
@@ -52809,7 +52832,7 @@ var dve = class {
52809
52832
  d();
52810
52833
  const b = mye(g, v, t);
52811
52834
  hye(n, b);
52812
- const w = Si(b.text);
52835
+ const w = si(b.text);
52813
52836
  r.push({
52814
52837
  type: "math",
52815
52838
  mathml: v,
@@ -52867,7 +52890,7 @@ var dve = class {
52867
52890
  const t = e.resolveMathSpeech ?? vye, { visibleText: n } = e, r = [];
52868
52891
  let i = 0;
52869
52892
  const s = (d) => {
52870
- const f = Si(d), m = n.indexOf(f, i), p = m >= 0 ? m : i, g = p + f.length;
52893
+ const f = si(d), m = n.indexOf(f, i), p = m >= 0 ? m : i, g = p + f.length;
52871
52894
  return i = g, {
52872
52895
  start: p,
52873
52896
  end: g
@@ -52881,7 +52904,7 @@ var dve = class {
52881
52904
  offset: 0
52882
52905
  }] : PO(f.text, { locale: e.language });
52883
52906
  for (const w of b) {
52884
- const _ = Si(w.text);
52907
+ const _ = si(w.text);
52885
52908
  if (!_) continue;
52886
52909
  const A = s(_);
52887
52910
  r.push({
@@ -52918,7 +52941,7 @@ var dve = class {
52918
52941
  segments: r,
52919
52942
  locale: yye(e.language),
52920
52943
  visibleText: n,
52921
- plainSpeechText: Si(c.join(" "))
52944
+ plainSpeechText: si(c.join(" "))
52922
52945
  };
52923
52946
  }, Tye = (e) => (e || "en").split("-")[0].toLowerCase() || "en", _ye = "sre-v1", Iye = 256, Yk = (e) => Array.isArray(e) ? `array:[${e.map(Yk).join(",")}]` : e && typeof e == "object" ? `object:{${Object.entries(e).sort(([t], [n]) => t.localeCompare(n)).map(([t, n]) => `${JSON.stringify(t)}:${Yk(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)}`, GB = (e, t, n, r) => `${_ye}\0${Tye(e)}\0${t ? "ssml" : "plain"}\0${Yk(n ?? null)}\0${r}`, Cye = (e = {}) => {
52924
52947
  const t = Math.max(1, e.maxEntries ?? Iye), n = e.resolve ?? ((s, c) => Bq([s], c)), r = /* @__PURE__ */ new Map(), i = (s, c) => {
@@ -53387,7 +53410,7 @@ var dve = class {
53387
53410
  })(Hr || (Hr = {}));
53388
53411
  var _8 = (e, t) => e === t || e.startContainer === t.startContainer && e.startOffset === t.startOffset && e.endContainer === t.endContainer && e.endOffset === t.endOffset, ebe = (e, t) => e === t ? !0 : !e || !t || e.type !== t.type || e.quality !== t.quality ? !1 : e.type === "range" && t.type === "range" ? _8(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, I8 = class Zk {
53389
53412
  constructor() {
53390
- $(this, "currentProvider", null), $(this, "provider", null), $(this, "highlightCoordinator", null), $(this, "highlightTargetResolverProvider", null), $(this, "catalogResolver", null), $(this, "state", Hr.IDLE), $(this, "ttsConfig", {}), $(this, "currentText", null), $(this, "currentContentElement", null), $(this, "normalizedToDOM", /* @__PURE__ */ new Map()), $(this, "listeners", /* @__PURE__ */ new Map()), $(this, "lastError", null), $(this, "speakRunId", 0), $(this, "currentBoundaryOffset", 0), $(this, "activeWordBoundaryOffset", 0), $(this, "seekSegments", []), $(this, "sentenceHighlightSegments", []), $(this, "currentSeekSegmentIndex", 0), $(this, "activeSentenceStartOffset", null), $(this, "activeHighlightMode", "word"), $(this, "lastRenderedRegionTarget", null), $(this, "telemetryReporter", null), $(this, "generatedMathSpeechResolver", Cye());
53413
+ $(this, "currentProvider", null), $(this, "provider", null), $(this, "highlightCoordinator", null), $(this, "highlightTargetResolverProvider", null), $(this, "catalogResolver", null), $(this, "state", Hr.IDLE), $(this, "ttsConfig", {}), $(this, "currentText", null), $(this, "currentContentElement", null), $(this, "normalizedToDOM", /* @__PURE__ */ new Map()), $(this, "listeners", /* @__PURE__ */ new Map()), $(this, "lastError", null), $(this, "speakRunId", 0), $(this, "currentBoundaryOffset", 0), $(this, "activeWordBoundaryOffset", 0), $(this, "seekSegments", []), $(this, "playbackChunks", []), $(this, "sentenceHighlightSegments", []), $(this, "currentSeekSegmentIndex", 0), $(this, "activeSentenceStartOffset", null), $(this, "activeHighlightMode", "word"), $(this, "lastRenderedRegionTarget", null), $(this, "telemetryReporter", null), $(this, "generatedMathSpeechResolver", Cye());
53391
53414
  }
53392
53415
  debugLog(t, n) {
53393
53416
  Zk.debugEnabled && (n === void 0 ? console.debug(t) : console.debug(t, n));
@@ -53762,6 +53785,17 @@ var _8 = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
53762
53785
  const r = t.playbackSegments.map((i) => i.startOffset).filter((i) => i > 0);
53763
53786
  return this.splitSegmentsAtBoundaries(n, r, t.contentToSpeak);
53764
53787
  }
53788
+ createSeekSegmentsFromSpeechChunks(t) {
53789
+ let n = 0;
53790
+ return t.map((r) => {
53791
+ const i = si(r.plainFallback?.speechText || (this.hasExplicitBreakSemantics(r.speechText) ? r.visibleText : r.speechText) || r.visibleText) || r.visibleText || "", s = {
53792
+ text: i,
53793
+ startOffset: n,
53794
+ pauseMsAfter: 0
53795
+ };
53796
+ return n += Math.max(1, i.length + 1), s;
53797
+ });
53798
+ }
53765
53799
  getCurrentSeekSegmentIndex() {
53766
53800
  if (this.seekSegments.length === 0) return 0;
53767
53801
  let t = 0;
@@ -53861,7 +53895,7 @@ var _8 = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
53861
53895
  const b = n?.highlightModeOverride || (g ? this.resolveHighlightMode() : "sentence");
53862
53896
  this.activeHighlightMode = b, this.activeWordBoundaryOffset = n?.wordBoundaryOffset || 0;
53863
53897
  const w = this.hasExplicitBreakSemantics(s), _ = !!this.currentContentElement && !m && !w && g;
53864
- if (this.seekSegments = w || !g ? [] : _ && this.currentContentElement ? this.createSpeechPlan(this.currentContentElement, f) : this.createSeekSegmentsFromText(d), this.sentenceHighlightSegments = w ? [] : this.createSentenceHighlightSegments({
53898
+ if (this.playbackChunks = v?.length ? v : [], this.seekSegments = this.playbackChunks.length ? this.createSeekSegmentsFromSpeechChunks(this.playbackChunks) : w || !g ? [] : _ && this.currentContentElement ? this.createSpeechPlan(this.currentContentElement, f) : this.createSeekSegmentsFromText(d), this.sentenceHighlightSegments = w ? [] : this.createSentenceHighlightSegments({
53865
53899
  contentToSpeak: d,
53866
53900
  shouldUsePlan: _,
53867
53901
  playbackSegments: this.seekSegments
@@ -53940,7 +53974,7 @@ var _8 = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
53940
53974
  }, "updateSettings" in this.provider && typeof this.provider.updateSettings == "function" && await this.provider.updateSettings({ providerOptions: s });
53941
53975
  }
53942
53976
  async resolveSpeechContent(t, n) {
53943
- const r = Si(t);
53977
+ const r = si(t);
53944
53978
  if (n?.ignoreCatalogs) return {
53945
53979
  contentToSpeak: r,
53946
53980
  speechText: r,
@@ -53960,7 +53994,7 @@ var _8 = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
53960
53994
  context: n.catalogContext
53961
53995
  });
53962
53996
  if (s) {
53963
- const c = n?.contentElement && oE(n.contentElement, this.getTextProcessingOptions(n.language)).visibleText || r, d = Si(s.content);
53997
+ const c = n?.contentElement && oE(n.contentElement, this.getTextProcessingOptions(n.language)).visibleText || r, d = si(s.content);
53964
53998
  return this.debugLog(`[TTSService] Using catalog content for "${n.catalogId}" (${s.language})`), {
53965
53999
  contentToSpeak: s.content,
53966
54000
  speechText: s.content,
@@ -53994,7 +54028,7 @@ var _8 = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
53994
54028
  if (!this.catalogResolver) return null;
53995
54029
  const i = this.collectCatalogSpeechChunks(t, r);
53996
54030
  if (!i.some((d) => d.sourceElement)) return null;
53997
- const s = Si(i.map((d) => d.speechText).join(" ")), c = oE(t, this.getTextProcessingOptions(r.language)).visibleText || n;
54031
+ const s = si(i.map((d) => d.speechText).join(" ")), c = oE(t, this.getTextProcessingOptions(r.language)).visibleText || n;
53998
54032
  return {
53999
54033
  contentToSpeak: s,
54000
54034
  speechText: s,
@@ -54012,7 +54046,7 @@ var _8 = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
54012
54046
  const r = [];
54013
54047
  let i = "";
54014
54048
  const s = () => {
54015
- const p = Si(i);
54049
+ const p = si(i);
54016
54050
  i = "", p && r.push({
54017
54051
  speechText: p,
54018
54052
  visibleText: p,
@@ -54030,7 +54064,7 @@ var _8 = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
54030
54064
  }, d = (p, g) => {
54031
54065
  const v = f(p);
54032
54066
  if (v.length !== 1) return null;
54033
- const b = v[0], w = oE(b, this.getTextProcessingOptions(n.language)).visibleText || Si(b.textContent || ""), _ = (A) => Si(A).replace(/\s+/g, "");
54067
+ const b = v[0], w = oE(b, this.getTextProcessingOptions(n.language)).visibleText || si(b.textContent || ""), _ = (A) => si(A).replace(/\s+/g, "");
54034
54068
  return _(w) === _(g) ? b : null;
54035
54069
  }, f = (p) => {
54036
54070
  const g = Array.from(p.querySelectorAll("math"));
@@ -54045,7 +54079,7 @@ var _8 = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
54045
54079
  const g = p, v = c(g);
54046
54080
  if (v) {
54047
54081
  s();
54048
- const b = oE(g, this.getTextProcessingOptions(n.language)), w = b.visibleText || Si(g.textContent || ""), _ = e8({
54082
+ const b = oE(g, this.getTextProcessingOptions(n.language)), w = b.visibleText || si(g.textContent || ""), _ = e8({
54049
54083
  speechText: v.content,
54050
54084
  visibleText: w
54051
54085
  }), A = d(g, w), O = A ? wI({
@@ -54057,7 +54091,7 @@ var _8 = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
54057
54091
  mathElement: P,
54058
54092
  speechText: v.content
54059
54093
  })
54060
- })), V = Si(v.content);
54094
+ })), V = si(v.content);
54061
54095
  r.push({
54062
54096
  speechText: v.content,
54063
54097
  visibleText: w,
@@ -54120,7 +54154,7 @@ var _8 = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
54120
54154
  });
54121
54155
  }
54122
54156
  initializeSpeakTracking(t, n) {
54123
- this.currentText = t, this.currentContentElement = n?.contentElement || null, this.lastError = null, this.currentBoundaryOffset = 0, this.currentSeekSegmentIndex = 0, this.activeSentenceStartOffset = null;
54157
+ this.currentText = t, this.currentContentElement = n?.contentElement || null, this.lastError = null, this.currentBoundaryOffset = 0, this.playbackChunks = [], this.currentSeekSegmentIndex = 0, this.activeSentenceStartOffset = null;
54124
54158
  }
54125
54159
  prepareHighlightsForSpeak(t) {
54126
54160
  if (!this.currentContentElement || !this.highlightCoordinator || (this.buildPositionMap(this.currentContentElement, t.contentToSpeak, t.options?.language), t.highlightMode === "sentence" && t.shouldUsePlan)) return;
@@ -54265,9 +54299,13 @@ var _8 = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
54265
54299
  }
54266
54300
  async executeSpeakPlayback(t) {
54267
54301
  if (t.speechChunks?.length && this.provider) {
54268
- for (const n of t.speechChunks) {
54302
+ for (let n = 0; n < t.speechChunks.length; n++) {
54269
54303
  if (t.runId !== this.speakRunId) return;
54270
- await this.speakCatalogChunk(n, t.runId);
54304
+ this.currentSeekSegmentIndex = n;
54305
+ const r = this.seekSegments[n];
54306
+ r && (this.currentBoundaryOffset = r.startOffset);
54307
+ const i = t.speechChunks[n];
54308
+ await this.speakCatalogChunk(i, t.runId);
54271
54309
  }
54272
54310
  return;
54273
54311
  }
@@ -54279,7 +54317,7 @@ var _8 = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
54279
54317
  this.provider && await this.provider.speak(t.contentToSpeak);
54280
54318
  }
54281
54319
  clearHighlightsAndTracking() {
54282
- this.highlightCoordinator && this.highlightCoordinator.clearTTS(), this.lastRenderedRegionTarget = null, this.currentContentElement = null, this.normalizedToDOM.clear(), this.currentBoundaryOffset = 0, this.activeWordBoundaryOffset = 0, this.seekSegments = [], this.sentenceHighlightSegments = [], this.currentSeekSegmentIndex = 0, this.activeSentenceStartOffset = null;
54320
+ 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;
54283
54321
  }
54284
54322
  async speakRange(t, n) {
54285
54323
  if (!this.provider) throw new Error("TTS service not initialized");
@@ -54293,7 +54331,7 @@ var _8 = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
54293
54331
  if (!i) return;
54294
54332
  const s = document.createRange();
54295
54333
  s.selectNodeContents(i), s.setEnd(t.startContainer, t.startOffset);
54296
- const c = s.toString(), d = Si(c), f = d.length + (/\s$/.test(c) && d ? 1 : 0);
54334
+ const c = s.toString(), d = si(c), f = d.length + (/\s$/.test(c) && d ? 1 : 0);
54297
54335
  this.debugLog("[TTSService] speakRange offset calculation:", {
54298
54336
  selectedText: r,
54299
54337
  textBeforeRange: c.substring(0, 100),
@@ -54316,19 +54354,27 @@ var _8 = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
54316
54354
  }
54317
54355
  async restartFromSeekIndex(t) {
54318
54356
  if (!this.provider || this.seekSegments.length === 0) return;
54319
- const n = Math.max(0, Math.min(this.seekSegments.length - 1, t));
54357
+ const n = Math.max(0, Math.min(this.seekSegments.length - 1, t)), r = this.playbackChunks.length ? this.playbackChunks.slice(n) : null;
54320
54358
  this.speakRunId += 1, this.provider.onWordBoundary = void 0, this.provider.stop(), this.currentSeekSegmentIndex = n;
54321
- const r = ++this.speakRunId, i = this.seekSegments.slice(n);
54359
+ const i = ++this.speakRunId, s = this.seekSegments.slice(n);
54322
54360
  this.setState(Hr.PLAYING);
54323
54361
  try {
54324
54362
  if (this.configureWordBoundaryHighlighting({
54325
54363
  highlightMode: this.activeHighlightMode,
54326
54364
  wordBoundaryOffset: this.activeWordBoundaryOffset
54327
- }), await this.speakWithPlan(i, r, { highlightMode: this.activeHighlightMode }), r !== this.speakRunId) return;
54365
+ }), r) for (let c = 0; c < r.length; c++) {
54366
+ if (i !== this.speakRunId) return;
54367
+ const d = n + c;
54368
+ this.currentSeekSegmentIndex = d;
54369
+ const f = this.seekSegments[d];
54370
+ f && (this.currentBoundaryOffset = f.startOffset), await this.speakCatalogChunk(r[c], i);
54371
+ }
54372
+ else await this.speakWithPlan(s, i, { highlightMode: this.activeHighlightMode });
54373
+ if (i !== this.speakRunId) return;
54328
54374
  this.setState(Hr.IDLE), this.clearHighlightsAndTracking(), this.highlightTargetResolverProvider = null;
54329
- } catch (s) {
54330
- if (r !== this.speakRunId) return;
54331
- throw this.lastError = s instanceof Error ? s.message : String(s), this.setState(Hr.ERROR), this.clearHighlightsAndTracking(), this.highlightTargetResolverProvider = null, s;
54375
+ } catch (c) {
54376
+ if (i !== this.speakRunId) return;
54377
+ throw this.lastError = c instanceof Error ? c.message : String(c), this.setState(Hr.ERROR), this.clearHighlightsAndTracking(), this.highlightTargetResolverProvider = null, c;
54332
54378
  }
54333
54379
  }
54334
54380
  async setPlaybackRate(t) {
@@ -54351,7 +54397,7 @@ var _8 = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
54351
54397
  await this.seekBy(-n);
54352
54398
  }
54353
54399
  stop() {
54354
- this.provider && (this.speakRunId += 1, this.provider.onWordBoundary = void 0, this.provider.stop(), this.highlightTargetResolverProvider = null, this.setState(Hr.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.sentenceHighlightSegments = [], this.currentSeekSegmentIndex = 0, this.activeSentenceStartOffset = null);
54400
+ this.provider && (this.speakRunId += 1, this.provider.onWordBoundary = void 0, this.provider.stop(), this.highlightTargetResolverProvider = null, this.setState(Hr.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);
54355
54401
  }
54356
54402
  requestControlHandoff() {
54357
54403
  typeof window > "u" || window.dispatchEvent(new CustomEvent(Qye, { detail: { source: "host" } }));
@@ -58971,9 +59017,9 @@ function uSe(e) {
58971
59017
  jT = t;
58972
59018
  }
58973
59019
  }
58974
- var NI = null, ev = null, dr = null, tx = null, Vo = null, nx = null, CE = !1, SN = !1, fy = null, RI = null, e9 = 0, rx = /* @__PURE__ */ new Set(), dSe = 1, kI = /* @__PURE__ */ new WeakMap(), Yp = /* @__PURE__ */ new WeakMap(), fp = /* @__PURE__ */ new WeakMap(), xI = /* @__PURE__ */ new WeakMap(), zT = /* @__PURE__ */ new WeakMap(), tv = /* @__PURE__ */ new WeakMap(), Vh = /* @__PURE__ */ new WeakMap(), sE = /* @__PURE__ */ new WeakMap(), Ms = /* @__PURE__ */ new WeakMap(), ix = /* @__PURE__ */ new WeakMap(), xm = /* @__PURE__ */ new WeakMap(), fd = /* @__PURE__ */ new WeakMap(), Tf = /* @__PURE__ */ new WeakMap(), V0 = /* @__PURE__ */ new WeakMap(), vv = /* @__PURE__ */ new WeakMap(), yi = /* @__PURE__ */ new WeakSet(), Dy = class t9 {
59020
+ var NI = null, ev = null, dr = null, tx = null, Vo = null, nx = null, CE = !1, SN = !1, fy = null, RI = null, e9 = 0, rx = /* @__PURE__ */ new Set(), dSe = 1, kI = /* @__PURE__ */ new WeakMap(), Yp = /* @__PURE__ */ new WeakMap(), fp = /* @__PURE__ */ new WeakMap(), xI = /* @__PURE__ */ new WeakMap(), zT = /* @__PURE__ */ new WeakMap(), tv = /* @__PURE__ */ new WeakMap(), Vh = /* @__PURE__ */ new WeakMap(), sE = /* @__PURE__ */ new WeakMap(), Ms = /* @__PURE__ */ new WeakMap(), ix = /* @__PURE__ */ new WeakMap(), xm = /* @__PURE__ */ new WeakMap(), fd = /* @__PURE__ */ new WeakMap(), Tf = /* @__PURE__ */ new WeakMap(), V0 = /* @__PURE__ */ new WeakMap(), vv = /* @__PURE__ */ new WeakMap(), Ei = /* @__PURE__ */ new WeakSet(), Dy = class t9 {
58975
59021
  constructor() {
58976
- os(this, yi), $(this, "id", dSe++), Ce(this, kI, !1), $(this, "linked", !0), Ce(this, Yp, null), Ce(this, fp, null), $(this, "async_deriveds", /* @__PURE__ */ new Map()), $(this, "current", /* @__PURE__ */ new Map()), $(this, "previous", /* @__PURE__ */ new Map()), Ce(this, xI, /* @__PURE__ */ new Set()), Ce(this, zT, /* @__PURE__ */ new Set()), Ce(this, tv, 0), Ce(this, Vh, /* @__PURE__ */ new Map()), Ce(this, sE, null), Ce(this, Ms, []), Ce(this, ix, []), Ce(this, xm, /* @__PURE__ */ new Set()), Ce(this, fd, /* @__PURE__ */ new Set()), Ce(this, Tf, /* @__PURE__ */ new Map()), Ce(this, V0, /* @__PURE__ */ new Set()), $(this, "is_fork", !1), Ce(this, vv, !1), ev === null ? NI = ev = this : (pe(fp, ev, this), pe(Yp, this, ev)), ev = this;
59022
+ os(this, Ei), $(this, "id", dSe++), Ce(this, kI, !1), $(this, "linked", !0), Ce(this, Yp, null), Ce(this, fp, null), $(this, "async_deriveds", /* @__PURE__ */ new Map()), $(this, "current", /* @__PURE__ */ new Map()), $(this, "previous", /* @__PURE__ */ new Map()), Ce(this, xI, /* @__PURE__ */ new Set()), Ce(this, zT, /* @__PURE__ */ new Set()), Ce(this, tv, 0), Ce(this, Vh, /* @__PURE__ */ new Map()), Ce(this, sE, null), Ce(this, Ms, []), Ce(this, ix, []), Ce(this, xm, /* @__PURE__ */ new Set()), Ce(this, fd, /* @__PURE__ */ new Set()), Ce(this, Tf, /* @__PURE__ */ new Map()), Ce(this, V0, /* @__PURE__ */ new Set()), $(this, "is_fork", !1), Ce(this, vv, !1), ev === null ? NI = ev = this : (pe(fp, ev, this), pe(Yp, this, ev)), ev = this;
58977
59023
  }
58978
59024
  skip_effect(t) {
58979
59025
  E(Tf, this).has(t) || E(Tf, this).set(t, {
@@ -59003,14 +59049,14 @@ var NI = null, ev = null, dr = null, tx = null, Vo = null, nx = null, CE = !1, S
59003
59049
  }
59004
59050
  flush() {
59005
59051
  try {
59006
- sn && rx.clear(), SN = !0, dr = this, Le(yi, this, $I).call(this);
59052
+ sn && rx.clear(), SN = !0, dr = this, Le(Ei, this, $I).call(this);
59007
59053
  } finally {
59008
59054
  if (e9 = 0, nx = null, fy = null, RI = null, SN = !1, dr = null, Vo = null, Jp.clear(), sn) for (const t of rx) t.updated = null;
59009
59055
  }
59010
59056
  }
59011
59057
  discard() {
59012
59058
  for (const t of E(zT, this)) t(this);
59013
- E(zT, this).clear(), Le(yi, this, OI).call(this), E(sE, this)?.resolve();
59059
+ E(zT, this).clear(), Le(Ei, this, OI).call(this), E(sE, this)?.resolve();
59014
59060
  }
59015
59061
  register_created_effect(t) {
59016
59062
  E(ix, this).push(t);
@@ -59108,7 +59154,7 @@ function uH() {
59108
59154
  return !1;
59109
59155
  }
59110
59156
  function $I() {
59111
- if (pe(kI, this, !0), e9++ > 1e3 && (Le(yi, this, OI).call(this), mSe()), sn) for (const d of this.current.keys()) rx.add(d);
59157
+ if (pe(kI, this, !0), e9++ > 1e3 && (Le(Ei, this, OI).call(this), mSe()), sn) for (const d of this.current.keys()) rx.add(d);
59112
59158
  for (const d of E(xm, this))
59113
59159
  E(fd, this).delete(d), _i(d, Ji), this.schedule(d);
59114
59160
  for (const d of E(fd, this))
@@ -59117,34 +59163,34 @@ function $I() {
59117
59163
  pe(Ms, this, []), this.apply();
59118
59164
  var t = fy = [], n = [], r = RI = [];
59119
59165
  for (const d of e) try {
59120
- Le(yi, this, n9).call(this, d, t, n);
59166
+ Le(Ei, this, n9).call(this, d, t, n);
59121
59167
  } catch (f) {
59122
- throw o9(d), Le(yi, this, uH).call(this) || this.discard(), f;
59168
+ throw o9(d), Le(Ei, this, uH).call(this) || this.discard(), f;
59123
59169
  }
59124
59170
  if (dr = null, r.length > 0) {
59125
59171
  var i = k8.ensure();
59126
59172
  for (const d of r) i.schedule(d);
59127
59173
  }
59128
- if (fy = null, RI = null, Le(yi, this, uH).call(this)) {
59129
- Le(yi, this, aE).call(this, n), Le(yi, this, aE).call(this, t);
59174
+ if (fy = null, RI = null, Le(Ei, this, uH).call(this)) {
59175
+ Le(Ei, this, aE).call(this, n), Le(Ei, this, aE).call(this, t);
59130
59176
  for (const [d, f] of E(Tf, this)) i9(d, f);
59131
- r.length > 0 && Le(yi, dr, $I).call(dr);
59177
+ r.length > 0 && Le(Ei, dr, $I).call(dr);
59132
59178
  return;
59133
59179
  }
59134
- const s = Le(yi, this, fSe).call(this);
59180
+ const s = Le(Ei, this, fSe).call(this);
59135
59181
  if (s) {
59136
- Le(yi, this, aE).call(this, n), Le(yi, this, aE).call(this, t), Le(yi, s, hSe).call(s, this);
59182
+ Le(Ei, this, aE).call(this, n), Le(Ei, this, aE).call(this, t), Le(Ei, s, hSe).call(s, this);
59137
59183
  return;
59138
59184
  }
59139
59185
  E(xm, this).clear(), E(fd, this).clear();
59140
59186
  for (const d of E(xI, this)) d(this);
59141
59187
  E(xI, this).clear(), tx = this, dH(n), dH(t), tx = null, E(sE, this)?.resolve();
59142
59188
  var c = dr;
59143
- if (E(tv, this) === 0 && (E(Ms, this).length === 0 || c !== null) && (Le(yi, this, OI).call(this), Rm && (Le(yi, this, pSe).call(this), dr = c)), E(Ms, this).length > 0) if (c !== null) {
59189
+ if (E(tv, this) === 0 && (E(Ms, this).length === 0 || c !== null) && (Le(Ei, this, OI).call(this), Rm && (Le(Ei, this, pSe).call(this), dr = c)), E(Ms, this).length > 0) if (c !== null) {
59144
59190
  const d = c;
59145
59191
  E(Ms, d).push(...E(Ms, this).filter((f) => !E(Ms, d).includes(f)));
59146
59192
  } else c = this;
59147
- c !== null && Le(yi, c, $I).call(c);
59193
+ c !== null && Le(Ei, c, $I).call(c);
59148
59194
  }
59149
59195
  function n9(e, t, n) {
59150
59196
  e.f ^= Ui;
@@ -59198,7 +59244,7 @@ function hSe(e) {
59198
59244
  }
59199
59245
  };
59200
59246
  for (const n of this.current.keys()) t(n);
59201
- this.oncommit(() => e.discard()), Le(yi, e, OI).call(e), dr = this, Le(yi, this, $I).call(this);
59247
+ this.oncommit(() => e.discard()), Le(Ei, e, OI).call(e), dr = this, Le(Ei, this, $I).call(this);
59202
59248
  }
59203
59249
  function aE(e) {
59204
59250
  for (var t = 0; t < e.length; t += 1) Q8(e[t], E(xm, this), E(fd, this));
@@ -59224,7 +59270,7 @@ function pSe() {
59224
59270
  e && m.discard();
59225
59271
  else if (t.length > 0) {
59226
59272
  if (sn && !E(vv, m) && oSe(E(Ms, m).length === 0, "Batch has scheduled roots"), e) for (const p of E(V0, this)) m.unskip_effect(p, (g) => {
59227
- (g.f & (ec | Nm)) !== 0 ? m.schedule(g) : Le(yi, m, aE).call(m, [g]);
59273
+ (g.f & (ec | Nm)) !== 0 ? m.schedule(g) : Le(Ei, m, aE).call(m, [g]);
59228
59274
  });
59229
59275
  m.activate();
59230
59276
  var i = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Map();
@@ -59238,7 +59284,7 @@ function pSe() {
59238
59284
  for (const p of E(ix, this)) (p.f & (za | Xc | dS)) === 0 && GO(p, d, s) && ((p.f & (Nm | ec)) !== 0 ? (_i(p, Ji), m.schedule(p)) : E(xm, m).add(p));
59239
59285
  if (E(Ms, m).length > 0 && !E(vv, m)) {
59240
59286
  m.apply();
59241
- for (var f of E(Ms, m)) Le(yi, m, n9).call(m, f, [], []);
59287
+ for (var f of E(Ms, m)) Le(Ei, m, n9).call(m, f, [], []);
59242
59288
  pe(Ms, m, []);
59243
59289
  }
59244
59290
  m.deactivate();
@@ -61091,9 +61137,9 @@ function fTe(e, t) {
61091
61137
  if (!Lt) throw new Error("invariant(...) was not guarded by if (DEV)");
61092
61138
  e || Hwe(t);
61093
61139
  }
61094
- var ai = null;
61140
+ var ci = null;
61095
61141
  function yy(e) {
61096
- ai = e;
61142
+ ci = e;
61097
61143
  }
61098
61144
  var ES = null;
61099
61145
  function BI(e) {
@@ -61104,8 +61150,8 @@ function NH(e) {
61104
61150
  Lm = e;
61105
61151
  }
61106
61152
  function K9(e, t = !1, n) {
61107
- ai = {
61108
- p: ai,
61153
+ ci = {
61154
+ p: ci,
61109
61155
  i: !1,
61110
61156
  c: null,
61111
61157
  e: null,
@@ -61117,18 +61163,18 @@ function K9(e, t = !1, n) {
61117
61163
  u: null,
61118
61164
  $: []
61119
61165
  } : null
61120
- }, Lt && (ai.function = n, Lm = n);
61166
+ }, Lt && (ci.function = n, Lm = n);
61121
61167
  }
61122
61168
  function X9(e) {
61123
- var t = ai, n = t.e;
61169
+ var t = ci, n = t.e;
61124
61170
  if (n !== null) {
61125
61171
  t.e = null;
61126
61172
  for (var r of n) wG(r);
61127
61173
  }
61128
- return e !== void 0 && (t.x = e), t.i = !0, ai = t.p, Lt && (Lm = ai?.function ?? null), e ?? {};
61174
+ return e !== void 0 && (t.x = e), t.i = !0, ci = t.p, Lt && (Lm = ci?.function ?? null), e ?? {};
61129
61175
  }
61130
61176
  function sw() {
61131
- return !YC || ai !== null && ai.l === null;
61177
+ return !YC || ci !== null && ci.l === null;
61132
61178
  }
61133
61179
  var pp = [];
61134
61180
  function J9() {
@@ -61193,11 +61239,11 @@ function Q9(e) {
61193
61239
  t && (su(e, "message", { value: t.message }), su(e, "stack", { value: t.stack }));
61194
61240
  }
61195
61241
  var mTe = ~(ji | lc | ki);
61196
- function fi(e, t) {
61242
+ function pi(e, t) {
61197
61243
  e.f = e.f & mTe | t;
61198
61244
  }
61199
61245
  function aM(e) {
61200
- (e.f & Wa) !== 0 || e.deps === null ? fi(e, ki) : fi(e, lc);
61246
+ (e.f & Wa) !== 0 || e.deps === null ? pi(e, ki) : pi(e, lc);
61201
61247
  }
61202
61248
  function eG(e) {
61203
61249
  if (e !== null)
@@ -61205,7 +61251,7 @@ function eG(e) {
61205
61251
  (t.f & ro) === 0 || (t.f & Zf) === 0 || (t.f ^= Zf, eG(t.deps));
61206
61252
  }
61207
61253
  function tG(e, t, n) {
61208
- (e.f & ji) !== 0 ? t.add(e) : (e.f & lc) !== 0 && n.add(e), eG(e.deps), fi(e, ki);
61254
+ (e.f & ji) !== 0 ? t.add(e) : (e.f & lc) !== 0 && n.add(e), eG(e.deps), pi(e, ki);
61209
61255
  }
61210
61256
  var gTe = !1, KT = !1;
61211
61257
  function vTe(e) {
@@ -61216,9 +61262,9 @@ function vTe(e) {
61216
61262
  KT = t;
61217
61263
  }
61218
61264
  }
61219
- var HI = null, iv = null, Kn = null, Ex = null, qo = null, Sx = null, NE = !1, CN = !1, by = null, jI = null, nG = 0, wx = /* @__PURE__ */ new Set(), yTe = 1, zI = /* @__PURE__ */ new WeakMap(), Qp = /* @__PURE__ */ new WeakMap(), mp = /* @__PURE__ */ new WeakMap(), WI = /* @__PURE__ */ new WeakMap(), XT = /* @__PURE__ */ new WeakMap(), ov = /* @__PURE__ */ new WeakMap(), qh = /* @__PURE__ */ new WeakMap(), lE = /* @__PURE__ */ new WeakMap(), Ps = /* @__PURE__ */ new WeakMap(), Tx = /* @__PURE__ */ new WeakMap(), Fm = /* @__PURE__ */ new WeakMap(), hd = /* @__PURE__ */ new WeakMap(), _f = /* @__PURE__ */ new WeakMap(), X0 = /* @__PURE__ */ new WeakMap(), bv = /* @__PURE__ */ new WeakMap(), bi = /* @__PURE__ */ new WeakSet(), ng = class rG {
61265
+ var HI = null, iv = null, Kn = null, Ex = null, qo = null, Sx = null, NE = !1, CN = !1, by = null, jI = null, nG = 0, wx = /* @__PURE__ */ new Set(), yTe = 1, zI = /* @__PURE__ */ new WeakMap(), Qp = /* @__PURE__ */ new WeakMap(), mp = /* @__PURE__ */ new WeakMap(), WI = /* @__PURE__ */ new WeakMap(), XT = /* @__PURE__ */ new WeakMap(), ov = /* @__PURE__ */ new WeakMap(), qh = /* @__PURE__ */ new WeakMap(), lE = /* @__PURE__ */ new WeakMap(), Ps = /* @__PURE__ */ new WeakMap(), Tx = /* @__PURE__ */ new WeakMap(), Fm = /* @__PURE__ */ new WeakMap(), hd = /* @__PURE__ */ new WeakMap(), _f = /* @__PURE__ */ new WeakMap(), X0 = /* @__PURE__ */ new WeakMap(), bv = /* @__PURE__ */ new WeakMap(), Si = /* @__PURE__ */ new WeakSet(), ng = class rG {
61220
61266
  constructor() {
61221
- os(this, bi), $(this, "id", yTe++), Ce(this, zI, !1), $(this, "linked", !0), Ce(this, Qp, null), Ce(this, mp, null), $(this, "async_deriveds", /* @__PURE__ */ new Map()), $(this, "current", /* @__PURE__ */ new Map()), $(this, "previous", /* @__PURE__ */ new Map()), Ce(this, WI, /* @__PURE__ */ new Set()), Ce(this, XT, /* @__PURE__ */ new Set()), Ce(this, ov, 0), Ce(this, qh, /* @__PURE__ */ new Map()), Ce(this, lE, null), Ce(this, Ps, []), Ce(this, Tx, []), Ce(this, Fm, /* @__PURE__ */ new Set()), Ce(this, hd, /* @__PURE__ */ new Set()), Ce(this, _f, /* @__PURE__ */ new Map()), Ce(this, X0, /* @__PURE__ */ new Set()), $(this, "is_fork", !1), Ce(this, bv, !1), iv === null ? HI = iv = this : (pe(mp, iv, this), pe(Qp, this, iv)), iv = this;
61267
+ os(this, Si), $(this, "id", yTe++), Ce(this, zI, !1), $(this, "linked", !0), Ce(this, Qp, null), Ce(this, mp, null), $(this, "async_deriveds", /* @__PURE__ */ new Map()), $(this, "current", /* @__PURE__ */ new Map()), $(this, "previous", /* @__PURE__ */ new Map()), Ce(this, WI, /* @__PURE__ */ new Set()), Ce(this, XT, /* @__PURE__ */ new Set()), Ce(this, ov, 0), Ce(this, qh, /* @__PURE__ */ new Map()), Ce(this, lE, null), Ce(this, Ps, []), Ce(this, Tx, []), Ce(this, Fm, /* @__PURE__ */ new Set()), Ce(this, hd, /* @__PURE__ */ new Set()), Ce(this, _f, /* @__PURE__ */ new Map()), Ce(this, X0, /* @__PURE__ */ new Set()), $(this, "is_fork", !1), Ce(this, bv, !1), iv === null ? HI = iv = this : (pe(mp, iv, this), pe(Qp, this, iv)), iv = this;
61222
61268
  }
61223
61269
  skip_effect(t) {
61224
61270
  E(_f, this).has(t) || E(_f, this).set(t, {
@@ -61231,9 +61277,9 @@ var HI = null, iv = null, Kn = null, Ex = null, qo = null, Sx = null, NE = !1, C
61231
61277
  if (r) {
61232
61278
  E(_f, this).delete(t);
61233
61279
  for (var i of r.d)
61234
- fi(i, ji), n(i);
61280
+ pi(i, ji), n(i);
61235
61281
  for (i of r.m)
61236
- fi(i, lc), n(i);
61282
+ pi(i, lc), n(i);
61237
61283
  }
61238
61284
  E(X0, this).add(t);
61239
61285
  }
@@ -61248,14 +61294,14 @@ var HI = null, iv = null, Kn = null, Ex = null, qo = null, Sx = null, NE = !1, C
61248
61294
  }
61249
61295
  flush() {
61250
61296
  try {
61251
- Lt && wx.clear(), CN = !0, Kn = this, Le(bi, this, VI).call(this);
61297
+ Lt && wx.clear(), CN = !0, Kn = this, Le(Si, this, VI).call(this);
61252
61298
  } finally {
61253
61299
  if (nG = 0, Sx = null, by = null, jI = null, CN = !1, Kn = null, qo = null, nm.clear(), Lt) for (const t of wx) t.updated = null;
61254
61300
  }
61255
61301
  }
61256
61302
  discard() {
61257
61303
  for (const t of E(XT, this)) t(this);
61258
- E(XT, this).clear(), Le(bi, this, qI).call(this), E(lE, this)?.resolve();
61304
+ E(XT, this).clear(), Le(Si, this, qI).call(this), E(lE, this)?.resolve();
61259
61305
  }
61260
61306
  register_created_effect(t) {
61261
61307
  E(Tx, this).push(t);
@@ -61353,43 +61399,43 @@ function RH() {
61353
61399
  return !1;
61354
61400
  }
61355
61401
  function VI() {
61356
- if (pe(zI, this, !0), nG++ > 1e3 && (Le(bi, this, qI).call(this), wTe()), Lt) for (const d of this.current.keys()) wx.add(d);
61402
+ if (pe(zI, this, !0), nG++ > 1e3 && (Le(Si, this, qI).call(this), wTe()), Lt) for (const d of this.current.keys()) wx.add(d);
61357
61403
  for (const d of E(Fm, this))
61358
- E(hd, this).delete(d), fi(d, ji), this.schedule(d);
61404
+ E(hd, this).delete(d), pi(d, ji), this.schedule(d);
61359
61405
  for (const d of E(hd, this))
61360
- fi(d, lc), this.schedule(d);
61406
+ pi(d, lc), this.schedule(d);
61361
61407
  const e = E(Ps, this);
61362
61408
  pe(Ps, this, []), this.apply();
61363
61409
  var t = by = [], n = [], r = jI = [];
61364
61410
  for (const d of e) try {
61365
- Le(bi, this, iG).call(this, d, t, n);
61411
+ Le(Si, this, iG).call(this, d, t, n);
61366
61412
  } catch (f) {
61367
- throw aG(d), Le(bi, this, RH).call(this) || this.discard(), f;
61413
+ throw aG(d), Le(Si, this, RH).call(this) || this.discard(), f;
61368
61414
  }
61369
61415
  if (Kn = null, r.length > 0) {
61370
61416
  var i = $8.ensure();
61371
61417
  for (const d of r) i.schedule(d);
61372
61418
  }
61373
- if (by = null, jI = null, Le(bi, this, RH).call(this)) {
61374
- Le(bi, this, cE).call(this, n), Le(bi, this, cE).call(this, t);
61419
+ if (by = null, jI = null, Le(Si, this, RH).call(this)) {
61420
+ Le(Si, this, cE).call(this, n), Le(Si, this, cE).call(this, t);
61375
61421
  for (const [d, f] of E(_f, this)) sG(d, f);
61376
- r.length > 0 && Le(bi, Kn, VI).call(Kn);
61422
+ r.length > 0 && Le(Si, Kn, VI).call(Kn);
61377
61423
  return;
61378
61424
  }
61379
- const s = Le(bi, this, bTe).call(this);
61425
+ const s = Le(Si, this, bTe).call(this);
61380
61426
  if (s) {
61381
- Le(bi, this, cE).call(this, n), Le(bi, this, cE).call(this, t), Le(bi, s, ETe).call(s, this);
61427
+ Le(Si, this, cE).call(this, n), Le(Si, this, cE).call(this, t), Le(Si, s, ETe).call(s, this);
61382
61428
  return;
61383
61429
  }
61384
61430
  E(Fm, this).clear(), E(hd, this).clear();
61385
61431
  for (const d of E(WI, this)) d(this);
61386
61432
  E(WI, this).clear(), Ex = this, kH(n), kH(t), Ex = null, E(lE, this)?.resolve();
61387
61433
  var c = Kn;
61388
- if (E(ov, this) === 0 && (E(Ps, this).length === 0 || c !== null) && (Le(bi, this, qI).call(this), kd && (Le(bi, this, STe).call(this), Kn = c)), E(Ps, this).length > 0) if (c !== null) {
61434
+ if (E(ov, this) === 0 && (E(Ps, this).length === 0 || c !== null) && (Le(Si, this, qI).call(this), kd && (Le(Si, this, STe).call(this), Kn = c)), E(Ps, this).length > 0) if (c !== null) {
61389
61435
  const d = c;
61390
61436
  E(Ps, d).push(...E(Ps, this).filter((f) => !E(Ps, d).includes(f)));
61391
61437
  } else c = this;
61392
- c !== null && Le(bi, c, VI).call(c);
61438
+ c !== null && Le(Si, c, VI).call(c);
61393
61439
  }
61394
61440
  function iG(e, t, n) {
61395
61441
  e.f ^= ki;
@@ -61438,12 +61484,12 @@ function ETe(e) {
61438
61484
  if ((i & ro) !== 0) t(c);
61439
61485
  else {
61440
61486
  var s = c;
61441
- i & (Mm | tc) && !this.async_deriveds.has(s) && (E(hd, this).delete(s), fi(s, ji), this.schedule(s));
61487
+ i & (Mm | tc) && !this.async_deriveds.has(s) && (E(hd, this).delete(s), pi(s, ji), this.schedule(s));
61442
61488
  }
61443
61489
  }
61444
61490
  };
61445
61491
  for (const n of this.current.keys()) t(n);
61446
- this.oncommit(() => e.discard()), Le(bi, e, qI).call(e), Kn = this, Le(bi, this, VI).call(this);
61492
+ this.oncommit(() => e.discard()), Le(Si, e, qI).call(e), Kn = this, Le(Si, this, VI).call(this);
61447
61493
  }
61448
61494
  function cE(e) {
61449
61495
  for (var t = 0; t < e.length; t += 1) tG(e[t], E(Fm, this), E(hd, this));
@@ -61469,7 +61515,7 @@ function STe() {
61469
61515
  e && m.discard();
61470
61516
  else if (t.length > 0) {
61471
61517
  if (Lt && !E(bv, m) && fTe(E(Ps, m).length === 0, "Batch has scheduled roots"), e) for (const p of E(X0, this)) m.unskip_effect(p, (g) => {
61472
- (g.f & (tc | Mm)) !== 0 ? m.schedule(g) : Le(bi, m, cE).call(m, [g]);
61518
+ (g.f & (tc | Mm)) !== 0 ? m.schedule(g) : Le(Si, m, cE).call(m, [g]);
61473
61519
  });
61474
61520
  m.activate();
61475
61521
  var i = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Map();
@@ -61480,10 +61526,10 @@ function STe() {
61480
61526
  return v ? v[0] !== g[0] || v[1] !== g[1] : !0;
61481
61527
  }).map(([p]) => p);
61482
61528
  if (d.length > 0)
61483
- for (const p of E(Tx, this)) (p.f & (Xs | Qo | yS)) === 0 && lM(p, d, s) && ((p.f & (Mm | tc)) !== 0 ? (fi(p, ji), m.schedule(p)) : E(Fm, m).add(p));
61529
+ for (const p of E(Tx, this)) (p.f & (Xs | Qo | yS)) === 0 && lM(p, d, s) && ((p.f & (Mm | tc)) !== 0 ? (pi(p, ji), m.schedule(p)) : E(Fm, m).add(p));
61484
61530
  if (E(Ps, m).length > 0 && !E(bv, m)) {
61485
61531
  m.apply();
61486
- for (var f of E(Ps, m)) Le(bi, m, iG).call(m, f, [], []);
61532
+ for (var f of E(Ps, m)) Le(Si, m, iG).call(m, f, [], []);
61487
61533
  pe(Ps, m, []);
61488
61534
  }
61489
61535
  m.deactivate();
@@ -61557,7 +61603,7 @@ function oG(e, t, n, r) {
61557
61603
  if (!n.has(e) && (n.add(e), e.reactions !== null))
61558
61604
  for (const i of e.reactions) {
61559
61605
  const s = i.f;
61560
- (s & ro) !== 0 ? oG(i, t, n, r) : (s & (Mm | tc)) !== 0 && (s & ji) === 0 && lM(i, t, r) && (fi(i, ji), cM(i));
61606
+ (s & ro) !== 0 ? oG(i, t, n, r) : (s & (Mm | tc)) !== 0 && (s & ji) === 0 && lM(i, t, r) && (pi(i, ji), cM(i));
61561
61607
  }
61562
61608
  }
61563
61609
  function lM(e, t, n) {
@@ -61575,13 +61621,13 @@ function cM(e) {
61575
61621
  }
61576
61622
  function sG(e, t) {
61577
61623
  if (!((e.f & ac) !== 0 && (e.f & ki) !== 0)) {
61578
- (e.f & ji) !== 0 ? t.d.push(e) : (e.f & lc) !== 0 && t.m.push(e), fi(e, ki);
61624
+ (e.f & ji) !== 0 ? t.d.push(e) : (e.f & lc) !== 0 && t.m.push(e), pi(e, ki);
61579
61625
  for (var n = e.first; n !== null; )
61580
61626
  sG(n, t), n = n.next;
61581
61627
  }
61582
61628
  }
61583
61629
  function aG(e) {
61584
- fi(e, ki);
61630
+ pi(e, ki);
61585
61631
  for (var t = e.first; t !== null; )
61586
61632
  aG(t), t = t.next;
61587
61633
  }
@@ -61683,7 +61729,7 @@ function uM(e) {
61683
61729
  this.is_pending = !1, e.transfer_effects(E(Ix, this), E(Cx, this));
61684
61730
  }
61685
61731
  function Ax(e) {
61686
- var t = Bn, n = rr, r = ai;
61732
+ var t = Bn, n = rr, r = ci;
61687
61733
  Kl(E(Ia, this)), rl(E(Ia, this)), yy(E(Ia, this).ctx);
61688
61734
  try {
61689
61735
  return ng.ensure(), e();
@@ -61780,7 +61826,7 @@ function kTe(e, t, n, r) {
61780
61826
  }) : g();
61781
61827
  }
61782
61828
  function xTe() {
61783
- var e = Bn, t = rr, n = ai, r = Kn;
61829
+ var e = Bn, t = rr, n = ci, r = Kn;
61784
61830
  if (Lt) var i = ES;
61785
61831
  return function(c = !0) {
61786
61832
  Kl(e), rl(t), yy(n), c && (e.f & Xs) === 0 && (r?.activate(), r?.apply()), Lt && (dG(null), BI(i));
@@ -61804,7 +61850,7 @@ function wS(e) {
61804
61850
  var t = ro | ji;
61805
61851
  Bn !== null && (Bn.f |= tg);
61806
61852
  const n = {
61807
- ctx: ai,
61853
+ ctx: ci,
61808
61854
  deps: null,
61809
61855
  effects: null,
61810
61856
  equals: V9,
@@ -61912,7 +61958,7 @@ function fM(e) {
61912
61958
  function fG(e) {
61913
61959
  var t = fM(e);
61914
61960
  if (!e.equals(t) && (e.wv = SM(), (!Kn?.is_fork || e.deps === null) && (Kn !== null ? (Kn.capture(e, t, !0), Ex?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
61915
- fi(e, ki);
61961
+ pi(e, ki);
61916
61962
  return;
61917
61963
  }
61918
61964
  xd || (qo !== null ? (gM() || Kn?.is_fork) && qo.set(e, t) : aM(e));
@@ -61950,9 +61996,9 @@ function Go(e, t) {
61950
61996
  }
61951
61997
  function pG(e, t = !1, n = !0) {
61952
61998
  const r = Um(e);
61953
- if (t || (r.equals = G9), YC && n && ai !== null && ai.l !== null) {
61999
+ if (t || (r.equals = G9), YC && n && ci !== null && ci.l !== null) {
61954
62000
  var i;
61955
- ((i = ai.l).s ?? (i.s = [])).push(r);
62001
+ ((i = ci.l).s ?? (i.s = [])).push(r);
61956
62002
  }
61957
62003
  return r;
61958
62004
  }
@@ -61996,7 +62042,7 @@ function Sy(e, t, n = null) {
61996
62042
  function mG() {
61997
62043
  hM = !1;
61998
62044
  for (const e of Ey) {
61999
- (e.f & ki) !== 0 && fi(e, lc);
62045
+ (e.f & ki) !== 0 && pi(e, lc);
62000
62046
  let t;
62001
62047
  try {
62002
62048
  t = aw(e);
@@ -62017,7 +62063,7 @@ function gG(e, t, n) {
62017
62063
  var d = r[c], f = d.f;
62018
62064
  if (!(!i && d === Bn)) {
62019
62065
  var m = (f & ji) === 0;
62020
- if (m && fi(d, t), (f & yS) !== 0) Ey.add(d);
62066
+ if (m && pi(d, t), (f & yS) !== 0) Ey.add(d);
62021
62067
  else if ((f & ro) !== 0) {
62022
62068
  var p = d;
62023
62069
  qo?.delete(p), (f & Zf) === 0 && (f & Wa && (Bn === null || (Bn.f & bS) === 0) && (d.f |= Zf), gG(p, lc, n));
@@ -62301,7 +62347,7 @@ function Tu(e, t) {
62301
62347
  if (Lt) for (; n !== null && (n.f & yS) !== 0; ) n = n.parent;
62302
62348
  n !== null && (n.f & Qo) !== 0 && (e |= Qo);
62303
62349
  var r = {
62304
- ctx: ai,
62350
+ ctx: ci,
62305
62351
  deps: null,
62306
62352
  nodes: null,
62307
62353
  f: e | ji | Wa,
@@ -62338,13 +62384,13 @@ function gM() {
62338
62384
  }
62339
62385
  function HTe(e) {
62340
62386
  const t = Tu(iw, null);
62341
- return fi(t, ki), t.teardown = e, t;
62387
+ return pi(t, ki), t.teardown = e, t;
62342
62388
  }
62343
62389
  function Yu(e) {
62344
62390
  UTe("$effect"), Lt && su(e, "name", { value: "$effect" });
62345
62391
  var t = Bn.f;
62346
- if (!rr && (t & ac) !== 0 && ai !== null && !ai.i) {
62347
- var n = ai;
62392
+ if (!rr && (t & ac) !== 0 && ci !== null && !ci.i) {
62393
+ var n = ci;
62348
62394
  (n.e ?? (n.e = [])).push(e);
62349
62395
  } else return wG(e);
62350
62396
  }
@@ -62419,7 +62465,7 @@ function VTe(e) {
62419
62465
  }
62420
62466
  function es(e, t = !0) {
62421
62467
  var n = !1;
62422
- (t || (e.f & Mwe) !== 0) && e.nodes !== null && e.nodes.end !== null && (_G(e.nodes.start, e.nodes.end), n = !0), fi(e, gx), bM(e, t && !n), TS(e, 0);
62468
+ (t || (e.f & Mwe) !== 0) && e.nodes !== null && e.nodes.end !== null && (_G(e.nodes.start, e.nodes.end), n = !0), pi(e, gx), bM(e, t && !n), TS(e, 0);
62423
62469
  var r = e.nodes && e.nodes.t;
62424
62470
  if (r !== null) for (const s of r) s.stop();
62425
62471
  TG(e), e.f ^= gx, e.f |= Xs;
@@ -62468,7 +62514,7 @@ function YI(e) {
62468
62514
  }
62469
62515
  function AG(e, t) {
62470
62516
  if ((e.f & Qo) !== 0) {
62471
- e.f ^= Qo, (e.f & ki) === 0 && (fi(e, ji), ng.ensure().schedule(e));
62517
+ e.f ^= Qo, (e.f & ki) === 0 && (pi(e, ji), ng.ensure().schedule(e));
62472
62518
  for (var n = e.first; n !== null; ) {
62473
62519
  var r = n.next, i = (n.f & my) !== 0 || (n.f & ac) !== 0;
62474
62520
  AG(n, i ? t : !1), n = r;
@@ -62520,7 +62566,7 @@ function aw(e) {
62520
62566
  var s = n[i];
62521
62567
  if (aw(s) && fG(s), s.wv > e.wv) return !0;
62522
62568
  }
62523
- (t & Wa) !== 0 && qo === null && fi(e, ki);
62569
+ (t & Wa) !== 0 && qo === null && pi(e, ki);
62524
62570
  }
62525
62571
  return !1;
62526
62572
  }
@@ -62529,11 +62575,11 @@ function kG(e, t, n = !0) {
62529
62575
  if (r !== null && !(!kd && Xl !== null && Xl.has(e)))
62530
62576
  for (var i = 0; i < r.length; i++) {
62531
62577
  var s = r[i];
62532
- (s.f & ro) !== 0 ? kG(s, t, !1) : t === s && (n ? fi(s, ji) : (s.f & ki) !== 0 && fi(s, lc), cM(s));
62578
+ (s.f & ro) !== 0 ? kG(s, t, !1) : t === s && (n ? pi(s, ji) : (s.f & ki) !== 0 && pi(s, lc), cM(s));
62533
62579
  }
62534
62580
  }
62535
62581
  function Rx(e) {
62536
- var t = ho, n = ps, r = ga, i = rr, s = Xl, c = ai, d = Hs, f = rm, m = e.f;
62582
+ var t = ho, n = ps, r = ga, i = rr, s = Xl, c = ci, d = Hs, f = rm, m = e.f;
62537
62583
  ho = null, ps = 0, ga = null, rr = (m & (ac | jd)) === 0 ? e : null, Xl = null, yy(e.ctx), Hs = !1, rm = ++vp, e.ac !== null && (SG(() => {
62538
62584
  e.ac.abort(qC);
62539
62585
  }), e.ac = null);
@@ -62587,7 +62633,7 @@ function TS(e, t) {
62587
62633
  function wy(e) {
62588
62634
  var t = e.f;
62589
62635
  if ((t & Xs) === 0) {
62590
- fi(e, ki);
62636
+ pi(e, ki);
62591
62637
  var n = Bn, r = Z0;
62592
62638
  if (Bn = e, Z0 = !0, Lt) {
62593
62639
  var i = Lm;
@@ -62841,7 +62887,7 @@ function PG(e, { target: t, anchor: n, props: r = {}, events: i, context: s, int
62841
62887
  ITe(p, { pending: () => {
62842
62888
  } }, (b) => {
62843
62889
  K9({});
62844
- var w = ai;
62890
+ var w = ci;
62845
62891
  if (s && (w.c = s), i && (r.$$events = i), Er && pd(b, null), f = e(b, r) || {}, Er && (Bn.nodes.end = gr, gr === null || gr.nodeType !== By || gr.data !== rM))
62846
62892
  throw ow(), Om;
62847
62893
  X9();
@@ -63313,7 +63359,7 @@ function ON(e, t) {
63313
63359
  return e === t || e?.[Zc] === t;
63314
63360
  }
63315
63361
  function _0e(e = {}, t, n, r) {
63316
- var i = ai.r, s = Bn;
63362
+ var i = ci.r, s = Bn;
63317
63363
  return vM(() => {
63318
63364
  var c, d;
63319
63365
  return XC(() => {