@pie-players/pie-tool-tts-inline 0.3.70 → 0.3.72

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.
@@ -42,17 +42,17 @@ function I(e) {
42
42
  return F = e;
43
43
  }
44
44
  function ye() {
45
- return I(/* @__PURE__ */ qt(F));
45
+ return I(/* @__PURE__ */ Jt(F));
46
46
  }
47
47
  function be(e) {
48
48
  if (N) {
49
- if (/* @__PURE__ */ qt(F) !== null) throw _e(), o;
49
+ if (/* @__PURE__ */ Jt(F) !== null) throw _e(), o;
50
50
  F = e;
51
51
  }
52
52
  }
53
53
  function xe(e = 1) {
54
54
  if (N) {
55
- for (var t = e, n = F; t--;) n = /* @__PURE__ */ qt(n);
55
+ for (var t = e, n = F; t--;) n = /* @__PURE__ */ Jt(n);
56
56
  F = n;
57
57
  }
58
58
  }
@@ -65,7 +65,7 @@ function L(e = !0) {
65
65
  --t;
66
66
  } else (r === "[" || r === "[!" || r[0] === "[" && !isNaN(Number(r.slice(1)))) && (t += 1);
67
67
  }
68
- var i = /* @__PURE__ */ qt(n);
68
+ var i = /* @__PURE__ */ Jt(n);
69
69
  e && n.remove(), n = i;
70
70
  }
71
71
  }
@@ -136,7 +136,7 @@ function ze(e, t = !1, n) {
136
136
  e: null,
137
137
  s: e,
138
138
  x: null,
139
- r: J,
139
+ r: q,
140
140
  l: null
141
141
  };
142
142
  }
@@ -144,7 +144,7 @@ function Be(e) {
144
144
  var t = R, n = t.e;
145
145
  if (n !== null) {
146
146
  t.e = null;
147
- for (var r of n) dn(r);
147
+ for (var r of n) fn(r);
148
148
  }
149
149
  return e !== void 0 && (t.x = e), t.i = !0, R = t.p, Ve(e);
150
150
  }
@@ -162,7 +162,7 @@ function We() {
162
162
  Ue = [], x(e);
163
163
  }
164
164
  function Ge(e) {
165
- if (Ue.length === 0 && !gt) {
165
+ if (Ue.length === 0 && !_t) {
166
166
  var t = Ue;
167
167
  queueMicrotask(() => {
168
168
  t === Ue && We();
@@ -204,12 +204,12 @@ function Qe(e) {
204
204
  //#endregion
205
205
  //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
206
206
  function $e(e) {
207
- var t = K, n = J;
208
- q(null), Fn(null);
207
+ var t = G, n = q;
208
+ K(null), In(null);
209
209
  try {
210
210
  return e();
211
211
  } finally {
212
- q(t), Fn(n);
212
+ K(t), In(n);
213
213
  }
214
214
  }
215
215
  //#endregion
@@ -221,14 +221,14 @@ function et(e, t, n, r) {
221
221
  r(o);
222
222
  return;
223
223
  }
224
- var s = J, c = tt(), l = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
224
+ var s = q, c = tt(), l = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
225
225
  function u(e) {
226
226
  if (!(s.f & 16384)) {
227
227
  c();
228
228
  try {
229
229
  r([...o, ...e]);
230
230
  } catch (e) {
231
- rn(e, s);
231
+ an(e, s);
232
232
  }
233
233
  nt();
234
234
  }
@@ -239,23 +239,23 @@ function et(e, t, n, r) {
239
239
  return;
240
240
  }
241
241
  function f() {
242
- Promise.all(n.map((e) => /* @__PURE__ */ ot(e))).then(u).catch((e) => rn(e, s)).finally(d);
242
+ Promise.all(n.map((e) => /* @__PURE__ */ ot(e))).then(u).catch((e) => an(e, s)).finally(d);
243
243
  }
244
244
  l ? l.then(() => {
245
245
  c(), f(), nt();
246
246
  }) : f();
247
247
  }
248
248
  function tt() {
249
- var e = J, t = K, n = R, r = V;
249
+ var e = q, t = G, n = R, r = V;
250
250
  return function(i = !0) {
251
- Fn(e), q(t), Re(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
251
+ In(e), K(t), Re(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
252
252
  };
253
253
  }
254
254
  function nt(e = !0) {
255
- Fn(null), q(null), Re(null), e && V?.deactivate();
255
+ In(null), K(null), Re(null), e && V?.deactivate();
256
256
  }
257
257
  function rt() {
258
- var e = J, t = e.b, n = V, r = !!t?.is_rendered();
258
+ var e = q, t = e.b, n = V, r = !!t?.is_rendered();
259
259
  return t?.update_pending_count(1, n), n.increment(r, e), () => {
260
260
  t?.update_pending_count(-1, n), n.decrement(r, e);
261
261
  };
@@ -263,7 +263,7 @@ function rt() {
263
263
  /*#__NO_SIDE_EFFECTS__*/
264
264
  function it(e) {
265
265
  var t = 2 | C;
266
- return J !== null && (J.f |= D), {
266
+ return q !== null && (q.f |= D), {
267
267
  ctx: R,
268
268
  deps: null,
269
269
  effects: null,
@@ -274,18 +274,18 @@ function it(e) {
274
274
  rv: 0,
275
275
  v: s,
276
276
  wv: 0,
277
- parent: J,
277
+ parent: q,
278
278
  ac: null
279
279
  };
280
280
  }
281
281
  var at = Symbol("obsolete");
282
282
  /*#__NO_SIDE_EFFECTS__*/
283
283
  function ot(e, t, n) {
284
- let r = J;
284
+ let r = q;
285
285
  r === null && Ee();
286
- var i = void 0, a = Nt(s), o = !K, c = /* @__PURE__ */ new Set();
287
- return hn(() => {
288
- var t = J, n = te();
286
+ var i = void 0, a = Pt(s), o = !G, c = /* @__PURE__ */ new Set();
287
+ return gn(() => {
288
+ var t = q, n = te();
289
289
  i = n.promise;
290
290
  try {
291
291
  Promise.resolve(e()).then(n.resolve, (e) => {
@@ -302,10 +302,10 @@ function ot(e, t, n) {
302
302
  c.add(n), s.async_deriveds.set(t, n);
303
303
  }
304
304
  let u = (e, t = void 0) => {
305
- l?.(), c.delete(n), t !== at && (s.activate(), t ? (a.f |= ce, Ft(a, t)) : (a.f & 8388608 && (a.f ^= ce), Ft(a, e)), s.deactivate());
305
+ l?.(), c.delete(n), t !== at && (s.activate(), t ? (a.f |= ce, It(a, t)) : (a.f & 8388608 && (a.f ^= ce), It(a, e)), s.deactivate());
306
306
  };
307
307
  n.promise.then(u, (e) => u(null, e || "unknown"));
308
- }), ln(() => {
308
+ }), un(() => {
309
309
  for (let e of c) e.reject(at);
310
310
  }), new Promise((e) => {
311
311
  function t(n) {
@@ -320,7 +320,7 @@ function ot(e, t, n) {
320
320
  /*#__NO_SIDE_EFFECTS__*/
321
321
  function B(e) {
322
322
  let t = /* @__PURE__ */ it(e);
323
- return Ln(t), t;
323
+ return Rn(t), t;
324
324
  }
325
325
  /*#__NO_SIDE_EFFECTS__*/
326
326
  function st(e) {
@@ -331,17 +331,17 @@ function ct(e) {
331
331
  var t = e.effects;
332
332
  if (t !== null) {
333
333
  e.effects = null;
334
- for (var n = 0; n < t.length; n += 1) G(t[n]);
334
+ for (var n = 0; n < t.length; n += 1) W(t[n]);
335
335
  }
336
336
  }
337
337
  function lt(e) {
338
- var t, n = J, r = e.parent;
339
- if (!Mn && r !== null && e.v !== s && r.f & 24576) return ge(), e.v;
340
- Fn(r);
338
+ var t, n = q, r = e.parent;
339
+ if (!Nn && r !== null && e.v !== s && r.f & 24576) return ge(), e.v;
340
+ In(r);
341
341
  try {
342
342
  e.f &= ~oe, ct(e), t = qn(e);
343
343
  } finally {
344
- Fn(n);
344
+ In(n);
345
345
  }
346
346
  return t;
347
347
  }
@@ -351,20 +351,20 @@ function ut(e) {
351
351
  z(e, S);
352
352
  return;
353
353
  }
354
- Mn || (H === null ? Je(e) : (cn() || V?.is_fork) && H.set(e, t));
354
+ Nn || (ht === null ? Je(e) : (ln() || V?.is_fork) && ht.set(e, t));
355
355
  }
356
356
  function dt(e) {
357
357
  if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && $e(() => {
358
358
  t.ac.abort(me), t.ac = null;
359
- }), t.fn !== null && (t.teardown = b), Xn(t, 0), xn(t));
359
+ }), t.fn !== null && (t.teardown = b), Xn(t, 0), Sn(t));
360
360
  }
361
361
  function ft(e) {
362
362
  if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && Zn(t);
363
363
  }
364
364
  //#endregion
365
365
  //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/batch.js
366
- var pt = null, V = null, mt = null, H = null, ht = null, gt = !1, _t = !1, vt = null, yt = null, bt = 0, xt = 1, St = class e {
367
- id = xt++;
366
+ var pt = null, V = null, mt = null, ht = null, gt = null, _t = !1, vt = !1, yt = null, bt = null, xt = 0, St = 1, Ct = class e {
367
+ id = St++;
368
368
  #e = !1;
369
369
  linked = !0;
370
370
  #t = null;
@@ -418,24 +418,24 @@ var pt = null, V = null, mt = null, H = null, ht = null, gt = !1, _t = !1, vt =
418
418
  this.#p.add(e);
419
419
  }
420
420
  #g() {
421
- this.#e = !0, bt++ > 1e3 && (this.#x(), wt());
421
+ this.#e = !0, xt++ > 1e3 && (this.#x(), Tt());
422
422
  for (let e of this.#u) this.#d.delete(e), z(e, C), this.schedule(e);
423
423
  for (let e of this.#d) z(e, ne), this.schedule(e);
424
424
  let t = this.#c;
425
425
  this.#c = [], this.apply();
426
- var n = vt = [], r = [], i = yt = [];
426
+ var n = yt = [], r = [], i = bt = [];
427
427
  for (let e of t) try {
428
428
  this.#_(e, n, r);
429
429
  } catch (t) {
430
- throw kt(e), this.#h() || this.discard(), t;
430
+ throw At(e), this.#h() || this.discard(), t;
431
431
  }
432
432
  if (V = null, i.length > 0) {
433
433
  var a = e.ensure();
434
434
  for (let e of i) a.schedule(e);
435
435
  }
436
- if (vt = null, yt = null, this.#h()) {
436
+ if (yt = null, bt = null, this.#h()) {
437
437
  this.#b(r), this.#b(n);
438
- for (let [e, t] of this.#f) Ot(e, t);
438
+ for (let [e, t] of this.#f) kt(e, t);
439
439
  i.length > 0 && V.#g();
440
440
  return;
441
441
  }
@@ -446,7 +446,7 @@ var pt = null, V = null, mt = null, H = null, ht = null, gt = !1, _t = !1, vt =
446
446
  }
447
447
  this.#u.clear(), this.#d.clear();
448
448
  for (let e of this.#r) e(this);
449
- this.#r.clear(), mt = this, Et(r), Et(n), mt = null, this.#s?.resolve();
449
+ this.#r.clear(), mt = this, Dt(r), Dt(n), mt = null, this.#s?.resolve();
450
450
  var s = V;
451
451
  if (this.#a === 0 && (this.#c.length === 0 || s !== null) && this.#x(), this.#c.length > 0) {
452
452
  if (s !== null) {
@@ -454,7 +454,7 @@ var pt = null, V = null, mt = null, H = null, ht = null, gt = !1, _t = !1, vt =
454
454
  e.#c.push(...this.#c.filter((t) => !e.#c.includes(t)));
455
455
  } else s = this;
456
456
  }
457
- s !== null && (jt.clear(), s.#g());
457
+ s !== null && (Mt.clear(), s.#g());
458
458
  }
459
459
  #_(e, t, n) {
460
460
  e.f ^= S;
@@ -512,19 +512,19 @@ var pt = null, V = null, mt = null, H = null, ht = null, gt = !1, _t = !1, vt =
512
512
  for (var t = 0; t < e.length; t += 1) Xe(e[t], this.#u, this.#d);
513
513
  }
514
514
  capture(e, t, n = !1) {
515
- e.v !== s && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, n]), H?.set(e, t)), this.is_fork || (e.v = t);
515
+ e.v !== s && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, n]), ht?.set(e, t)), this.is_fork || (e.v = t);
516
516
  }
517
517
  activate() {
518
518
  V = this;
519
519
  }
520
520
  deactivate() {
521
- V = null, H = null;
521
+ V = null, ht = null;
522
522
  }
523
523
  flush() {
524
524
  try {
525
- _t = !0, V = this, this.#g();
525
+ vt = !0, V = this, this.#g();
526
526
  } finally {
527
- bt = 0, ht = null, vt = null, yt = null, _t = !1, V = null, H = null, jt.clear();
527
+ xt = 0, gt = null, yt = null, bt = null, vt = !1, V = null, ht = null, Mt.clear();
528
528
  }
529
529
  }
530
530
  discard() {
@@ -568,24 +568,24 @@ var pt = null, V = null, mt = null, H = null, ht = null, gt = !1, _t = !1, vt =
568
568
  static ensure() {
569
569
  if (V === null) {
570
570
  let t = V = new e();
571
- !_t && !gt && Ge(() => {
571
+ !vt && !_t && Ge(() => {
572
572
  t.#e || t.flush();
573
573
  });
574
574
  }
575
575
  return V;
576
576
  }
577
577
  apply() {
578
- H = null;
578
+ ht = null;
579
579
  }
580
580
  schedule(e) {
581
- if (ht = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
581
+ if (gt = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
582
582
  e.b.defer_effect(e);
583
583
  return;
584
584
  }
585
585
  for (var t = e; t.parent !== null;) {
586
586
  t = t.parent;
587
587
  var n = t.f;
588
- if (vt !== null && t === J && (K === null || !(K.f & 2))) return;
588
+ if (yt !== null && t === q && (G === null || !(G.f & 2))) return;
589
589
  if (n & 96) {
590
590
  if (!(n & 1024)) return;
591
591
  t.f ^= S;
@@ -600,9 +600,9 @@ var pt = null, V = null, mt = null, H = null, ht = null, gt = !1, _t = !1, vt =
600
600
  }
601
601
  }
602
602
  };
603
- function Ct(e) {
604
- var t = gt;
605
- gt = !0;
603
+ function wt(e) {
604
+ var t = _t;
605
+ _t = !0;
606
606
  try {
607
607
  var n;
608
608
  for (e && (V !== null && !V.is_fork && V.flush(), n = e());;) {
@@ -610,56 +610,56 @@ function Ct(e) {
610
610
  V.flush();
611
611
  }
612
612
  } finally {
613
- gt = t;
613
+ _t = t;
614
614
  }
615
615
  }
616
- function wt() {
616
+ function Tt() {
617
617
  try {
618
618
  je();
619
619
  } catch (e) {
620
- rn(e, ht);
620
+ an(e, gt);
621
621
  }
622
622
  }
623
- var Tt = null;
624
- function Et(e) {
623
+ var Et = null;
624
+ function Dt(e) {
625
625
  var t = e.length;
626
626
  if (t !== 0) {
627
627
  for (var n = 0; n < t;) {
628
628
  var r = e[n++];
629
- if (!(r.f & 24576) && Gn(r) && (Tt = /* @__PURE__ */ new Set(), Zn(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && wn(r), Tt?.size > 0)) {
630
- jt.clear();
631
- for (let e of Tt) {
629
+ if (!(r.f & 24576) && Gn(r) && (Et = /* @__PURE__ */ new Set(), Zn(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && Tn(r), Et?.size > 0)) {
630
+ Mt.clear();
631
+ for (let e of Et) {
632
632
  if (e.f & 24576) continue;
633
633
  let t = [e], n = e.parent;
634
- for (; n !== null;) Tt.has(n) && (Tt.delete(n), t.push(n)), n = n.parent;
634
+ for (; n !== null;) Et.has(n) && (Et.delete(n), t.push(n)), n = n.parent;
635
635
  for (let e = t.length - 1; e >= 0; e--) {
636
636
  let n = t[e];
637
637
  n.f & 24576 || Zn(n);
638
638
  }
639
639
  }
640
- Tt.clear();
640
+ Et.clear();
641
641
  }
642
642
  }
643
- Tt = null;
643
+ Et = null;
644
644
  }
645
645
  }
646
- function Dt(e) {
646
+ function Ot(e) {
647
647
  V.schedule(e);
648
648
  }
649
- function Ot(e, t) {
649
+ function kt(e, t) {
650
650
  if (!(e.f & 32 && e.f & 1024)) {
651
651
  e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), z(e, S);
652
- for (var n = e.first; n !== null;) Ot(n, t), n = n.next;
652
+ for (var n = e.first; n !== null;) kt(n, t), n = n.next;
653
653
  }
654
654
  }
655
- function kt(e) {
655
+ function At(e) {
656
656
  z(e, S);
657
- for (var t = e.first; t !== null;) kt(t), t = t.next;
657
+ for (var t = e.first; t !== null;) At(t), t = t.next;
658
658
  }
659
659
  //#endregion
660
660
  //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/sources.js
661
- var At = /* @__PURE__ */ new Set(), jt = /* @__PURE__ */ new Map(), Mt = !1;
662
- function Nt(e, t) {
661
+ var jt = /* @__PURE__ */ new Set(), Mt = /* @__PURE__ */ new Map(), Nt = !1;
662
+ function Pt(e, t) {
663
663
  return {
664
664
  f: 0,
665
665
  v: e,
@@ -670,33 +670,33 @@ function Nt(e, t) {
670
670
  };
671
671
  }
672
672
  /*#__NO_SIDE_EFFECTS__*/
673
- function U(e, t) {
674
- let n = Nt(e, t);
675
- return Ln(n), n;
673
+ function H(e, t) {
674
+ let n = Pt(e, t);
675
+ return Rn(n), n;
676
676
  }
677
677
  /*#__NO_SIDE_EFFECTS__*/
678
- function Pt(e, t = !1, n = !0) {
679
- let r = Nt(e);
678
+ function Ft(e, t = !1, n = !0) {
679
+ let r = Pt(e);
680
680
  return t || (r.equals = Te), r;
681
681
  }
682
- function W(e, t, n = !1) {
683
- return K !== null && (!Pn || K.f & 131072) && He() && K.f & 4325394 && (In === null || !In.has(e)) && Ie(), Ft(e, n ? zt(t) : t, yt);
682
+ function U(e, t, n = !1) {
683
+ return G !== null && (!Fn || G.f & 131072) && He() && G.f & 4325394 && (Ln === null || !Ln.has(e)) && Ie(), It(e, n ? Bt(t) : t, bt);
684
684
  }
685
- function Ft(e, t, n = null) {
685
+ function It(e, t, n = null) {
686
686
  if (!e.equals(t)) {
687
- Mn ? jt.set(e, t) : jt.has(e) || jt.set(e, e.v);
688
- var r = St.ensure();
687
+ Nn ? Mt.set(e, t) : Mt.has(e) || Mt.set(e, e.v);
688
+ var r = Ct.ensure();
689
689
  if (r.capture(e, t), e.f & 2) {
690
690
  let t = e;
691
- e.f & 2048 && lt(t), H === null && Je(t);
691
+ e.f & 2048 && lt(t), ht === null && Je(t);
692
692
  }
693
- e.wv = Wn(), Rt(e, C, n), He() && J !== null && J.f & 1024 && !(J.f & 96) && (Rn === null ? zn([e]) : Rn.push(e)), !r.is_fork && At.size > 0 && !Mt && It();
693
+ e.wv = Wn(), zt(e, C, n), He() && q !== null && q.f & 1024 && !(q.f & 96) && (X === null ? zn([e]) : X.push(e)), !r.is_fork && jt.size > 0 && !Nt && Lt();
694
694
  }
695
695
  return t;
696
696
  }
697
- function It() {
698
- Mt = !1;
699
- for (let e of At) {
697
+ function Lt() {
698
+ Nt = !1;
699
+ for (let e of jt) {
700
700
  e.f & 1024 && z(e, ne);
701
701
  let t;
702
702
  try {
@@ -706,62 +706,62 @@ function It() {
706
706
  }
707
707
  t && Zn(e);
708
708
  }
709
- At.clear();
709
+ jt.clear();
710
710
  }
711
- function Lt(e) {
712
- W(e, e.v + 1);
711
+ function Rt(e) {
712
+ U(e, e.v + 1);
713
713
  }
714
- function Rt(e, t, n) {
714
+ function zt(e, t, n) {
715
715
  var r = e.reactions;
716
716
  if (r !== null) for (var i = He(), a = r.length, o = 0; o < a; o++) {
717
717
  var s = r[o], c = s.f;
718
- if (!(!i && s === J)) {
718
+ if (!(!i && s === q)) {
719
719
  var l = (c & C) === 0;
720
- if (l && z(s, t), c & 131072) At.add(s);
720
+ if (l && z(s, t), c & 131072) jt.add(s);
721
721
  else if (c & 2) {
722
722
  var u = s;
723
- H?.delete(u), c & 65536 || (c & 512 && (J === null || !(J.f & 2097152)) && (s.f |= oe), Rt(u, ne, n));
723
+ ht?.delete(u), c & 65536 || (c & 512 && (q === null || !(q.f & 2097152)) && (s.f |= oe), zt(u, ne, n));
724
724
  } else if (l) {
725
725
  var d = s;
726
- c & 16 && Tt !== null && Tt.add(d), n === null ? Dt(d) : n.push(d);
726
+ c & 16 && Et !== null && Et.add(d), n === null ? Ot(d) : n.push(d);
727
727
  }
728
728
  }
729
729
  }
730
730
  }
731
- function zt(e) {
731
+ function Bt(e) {
732
732
  if (typeof e != "object" || !e || A in e || j in e) return e;
733
733
  let t = y(e);
734
734
  if (t !== _ && t !== v) return e;
735
- var n = /* @__PURE__ */ new Map(), r = l(e), i = /* @__PURE__ */ U(0), a = null, o = Hn, c = (e) => {
735
+ var n = /* @__PURE__ */ new Map(), r = l(e), i = /* @__PURE__ */ H(0), a = null, o = Hn, c = (e) => {
736
736
  if (Hn === o) return e();
737
- var t = K, n = Hn;
738
- q(null), Un(o);
737
+ var t = G, n = Hn;
738
+ K(null), Un(o);
739
739
  var r = e();
740
- return q(t), Un(n), r;
740
+ return K(t), Un(n), r;
741
741
  };
742
- return r && n.set("length", /* @__PURE__ */ U(e.length, a)), new Proxy(e, {
742
+ return r && n.set("length", /* @__PURE__ */ H(e.length, a)), new Proxy(e, {
743
743
  defineProperty(e, t, r) {
744
744
  (!("value" in r) || r.configurable === !1 || r.enumerable === !1 || r.writable === !1) && Pe();
745
745
  var i = n.get(t);
746
746
  return i === void 0 ? c(() => {
747
- var e = /* @__PURE__ */ U(r.value, a);
747
+ var e = /* @__PURE__ */ H(r.value, a);
748
748
  return n.set(t, e), e;
749
- }) : W(i, r.value, !0), !0;
749
+ }) : U(i, r.value, !0), !0;
750
750
  },
751
751
  deleteProperty(e, t) {
752
752
  var r = n.get(t);
753
753
  if (r === void 0) {
754
754
  if (t in e) {
755
- let e = c(() => /* @__PURE__ */ U(s, a));
756
- n.set(t, e), Lt(i);
755
+ let e = c(() => /* @__PURE__ */ H(s, a));
756
+ n.set(t, e), Rt(i);
757
757
  }
758
- } else W(r, s), Lt(i);
758
+ } else U(r, s), Rt(i);
759
759
  return !0;
760
760
  },
761
761
  get(t, r, i) {
762
762
  if (r === A) return e;
763
763
  var o = n.get(r), l = r in t;
764
- if (o === void 0 && (!l || h(t, r)?.writable) && (o = c(() => /* @__PURE__ */ U(zt(l ? t[r] : s), a)), n.set(r, o)), o !== void 0) {
764
+ if (o === void 0 && (!l || h(t, r)?.writable) && (o = c(() => /* @__PURE__ */ H(Bt(l ? t[r] : s), a)), n.set(r, o)), o !== void 0) {
765
765
  var u = Z(o);
766
766
  return u === s ? void 0 : u;
767
767
  }
@@ -786,27 +786,27 @@ function zt(e) {
786
786
  has(e, t) {
787
787
  if (t === A) return !0;
788
788
  var r = n.get(t), i = r !== void 0 && r.v !== s || Reflect.has(e, t);
789
- return (r !== void 0 || J !== null && (!i || h(e, t)?.writable)) && (r === void 0 && (r = c(() => /* @__PURE__ */ U(i ? zt(e[t]) : s, a)), n.set(t, r)), Z(r) === s) ? !1 : i;
789
+ return (r !== void 0 || q !== null && (!i || h(e, t)?.writable)) && (r === void 0 && (r = c(() => /* @__PURE__ */ H(i ? Bt(e[t]) : s, a)), n.set(t, r)), Z(r) === s) ? !1 : i;
790
790
  },
791
791
  set(e, t, o, l) {
792
792
  var u = n.get(t), d = t in e;
793
793
  if (r && t === "length") for (var f = o; f < u.v; f += 1) {
794
794
  var p = n.get(f + "");
795
- p === void 0 ? f in e && (p = c(() => /* @__PURE__ */ U(s, a)), n.set(f + "", p)) : W(p, s);
795
+ p === void 0 ? f in e && (p = c(() => /* @__PURE__ */ H(s, a)), n.set(f + "", p)) : U(p, s);
796
796
  }
797
- if (u === void 0) (!d || h(e, t)?.writable) && (u = c(() => /* @__PURE__ */ U(void 0, a)), W(u, zt(o)), n.set(t, u));
797
+ if (u === void 0) (!d || h(e, t)?.writable) && (u = c(() => /* @__PURE__ */ H(void 0, a)), U(u, Bt(o)), n.set(t, u));
798
798
  else {
799
799
  d = u.v !== s;
800
- var m = c(() => zt(o));
801
- W(u, m);
800
+ var m = c(() => Bt(o));
801
+ U(u, m);
802
802
  }
803
803
  var g = Reflect.getOwnPropertyDescriptor(e, t);
804
804
  if (g?.set && g.set.call(l, o), !d) {
805
805
  if (r && typeof t == "string") {
806
806
  var _ = n.get("length"), v = Number(t);
807
- Number.isInteger(v) && v >= _.v && W(_, v + 1);
807
+ Number.isInteger(v) && v >= _.v && U(_, v + 1);
808
808
  }
809
- Lt(i);
809
+ Rt(i);
810
810
  }
811
811
  return !0;
812
812
  },
@@ -824,88 +824,88 @@ function zt(e) {
824
824
  }
825
825
  });
826
826
  }
827
- var Bt, Vt, Ht, Ut;
828
- function Wt() {
829
- if (Bt === void 0) {
830
- Bt = window, Vt = /Firefox/.test(navigator.userAgent);
827
+ var Vt, Ht, Ut, Wt;
828
+ function Gt() {
829
+ if (Vt === void 0) {
830
+ Vt = window, Ht = /Firefox/.test(navigator.userAgent);
831
831
  var e = Element.prototype, t = Node.prototype, n = Text.prototype;
832
- Ht = h(t, "firstChild").get, Ut = h(t, "nextSibling").get, ee(e) && (e[de] = void 0, e[ue] = null, e[fe] = void 0, e.__e = void 0), ee(n) && (n[pe] = void 0);
832
+ Ut = h(t, "firstChild").get, Wt = h(t, "nextSibling").get, ee(e) && (e[de] = void 0, e[ue] = null, e[fe] = void 0, e.__e = void 0), ee(n) && (n[pe] = void 0);
833
833
  }
834
834
  }
835
- function Gt(e = "") {
835
+ function Kt(e = "") {
836
836
  return document.createTextNode(e);
837
837
  }
838
838
  /*@__NO_SIDE_EFFECTS__*/
839
- function Kt(e) {
840
- return Ht.call(e);
841
- }
842
- /*@__NO_SIDE_EFFECTS__*/
843
839
  function qt(e) {
844
840
  return Ut.call(e);
845
841
  }
846
- function Jt(e, t) {
847
- if (!N) return /* @__PURE__ */ Kt(e);
848
- var n = /* @__PURE__ */ Kt(F);
849
- if (n === null) n = F.appendChild(Gt());
842
+ /*@__NO_SIDE_EFFECTS__*/
843
+ function Jt(e) {
844
+ return Wt.call(e);
845
+ }
846
+ function Yt(e, t) {
847
+ if (!N) return /* @__PURE__ */ qt(e);
848
+ var n = /* @__PURE__ */ qt(F);
849
+ if (n === null) n = F.appendChild(Kt());
850
850
  else if (t && n.nodeType !== 3) {
851
- var r = Gt();
851
+ var r = Kt();
852
852
  return n?.before(r), I(r), r;
853
853
  }
854
- return t && tn(n), I(n), n;
854
+ return t && nn(n), I(n), n;
855
855
  }
856
- function Yt(e, t = !1) {
856
+ function Xt(e, t = !1) {
857
857
  if (!N) {
858
- var n = /* @__PURE__ */ Kt(e);
859
- return n instanceof Comment && n.data === "" ? /* @__PURE__ */ qt(n) : n;
858
+ var n = /* @__PURE__ */ qt(e);
859
+ return n instanceof Comment && n.data === "" ? /* @__PURE__ */ Jt(n) : n;
860
860
  }
861
861
  if (t) {
862
862
  if (F?.nodeType !== 3) {
863
- var r = Gt();
863
+ var r = Kt();
864
864
  return F?.before(r), I(r), r;
865
865
  }
866
- tn(F);
866
+ nn(F);
867
867
  }
868
868
  return F;
869
869
  }
870
- function Xt(e, t = !1) {
871
- if (!N) return /* @__PURE__ */ Kt(e);
872
- var n = Jt(e, t);
870
+ function Zt(e, t = !1) {
871
+ if (!N) return /* @__PURE__ */ qt(e);
872
+ var n = Yt(e, t);
873
873
  return be(e), n;
874
874
  }
875
- function Zt(e, t = 1, n = !1) {
875
+ function Qt(e, t = 1, n = !1) {
876
876
  let r = N ? F : e;
877
- for (var i; t--;) i = r, r = /* @__PURE__ */ qt(r);
877
+ for (var i; t--;) i = r, r = /* @__PURE__ */ Jt(r);
878
878
  if (!N) return r;
879
879
  if (n) {
880
880
  if (r?.nodeType !== 3) {
881
- var a = Gt();
881
+ var a = Kt();
882
882
  return r === null ? i?.after(a) : r.before(a), I(a), a;
883
883
  }
884
- tn(r);
884
+ nn(r);
885
885
  }
886
886
  return I(r), r;
887
887
  }
888
- function Qt(e) {
888
+ function $t(e) {
889
889
  e.textContent = "";
890
890
  }
891
- function $t() {
891
+ function en() {
892
892
  return !1;
893
893
  }
894
- function en(e, t, n) {
894
+ function tn(e, t, n) {
895
895
  return t == null || t === "http://www.w3.org/1999/xhtml" ? n ? document.createElement(e, { is: n }) : document.createElement(e) : n ? document.createElementNS(t, e, { is: n }) : document.createElementNS(t, e);
896
896
  }
897
- function tn(e) {
897
+ function nn(e) {
898
898
  if (e.nodeValue.length < 65536) return;
899
899
  let t = e.nextSibling;
900
900
  for (; t !== null && t.nodeType === 3;) t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
901
901
  }
902
- function nn(e) {
903
- var t = J;
904
- if (t === null) return K.f |= ce, e;
902
+ function rn(e) {
903
+ var t = q;
904
+ if (t === null) return G.f |= ce, e;
905
905
  if (!(t.f & 32768) && !(t.f & 4)) throw e;
906
- rn(e, t);
906
+ an(e, t);
907
907
  }
908
- function rn(e, t) {
908
+ function an(e, t) {
909
909
  if (!(t !== null && t.f & 16384)) {
910
910
  for (; t !== null;) {
911
911
  if (t.f & 128 && !(t.f & 33570816)) {
@@ -924,15 +924,15 @@ function rn(e, t) {
924
924
  }
925
925
  //#endregion
926
926
  //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/effects.js
927
- function an(e) {
928
- J === null && (K === null && Ae(e), ke()), Mn && Oe(e);
927
+ function on(e) {
928
+ q === null && (G === null && Ae(e), ke()), Nn && Oe(e);
929
929
  }
930
- function on(e, t) {
930
+ function sn(e, t) {
931
931
  var n = t.last;
932
932
  n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
933
933
  }
934
- function sn(e, t) {
935
- var n = J;
934
+ function cn(e, t) {
935
+ var n = q;
936
936
  n !== null && n.f & 8192 && (e |= w);
937
937
  var r = {
938
938
  ctx: R,
@@ -952,92 +952,92 @@ function sn(e, t) {
952
952
  };
953
953
  V?.register_created_effect(r);
954
954
  var i = r;
955
- if (e & 4) vt === null ? St.ensure().schedule(r) : vt.push(r);
955
+ if (e & 4) yt === null ? Ct.ensure().schedule(r) : yt.push(r);
956
956
  else if (t !== null) {
957
957
  try {
958
958
  Zn(r);
959
959
  } catch (e) {
960
- throw G(r), e;
960
+ throw W(r), e;
961
961
  }
962
962
  i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && !(i.f & 524288) && (i = i.first, e & 16 && e & 65536 && i !== null && (i.f |= E));
963
963
  }
964
- if (i !== null && (i.parent = n, n !== null && on(i, n), K !== null && K.f & 2 && !(e & 64))) {
965
- var a = K;
964
+ if (i !== null && (i.parent = n, n !== null && sn(i, n), G !== null && G.f & 2 && !(e & 64))) {
965
+ var a = G;
966
966
  (a.effects ??= []).push(i);
967
967
  }
968
968
  return r;
969
969
  }
970
- function cn() {
971
- return K !== null && !Pn;
970
+ function ln() {
971
+ return G !== null && !Fn;
972
972
  }
973
- function ln(e) {
974
- let t = sn(8, null);
973
+ function un(e) {
974
+ let t = cn(8, null);
975
975
  return z(t, S), t.teardown = e, t;
976
976
  }
977
- function un(e) {
978
- an("$effect");
979
- var t = J.f;
980
- if (!K && t & 32 && R !== null && !R.i) {
977
+ function dn(e) {
978
+ on("$effect");
979
+ var t = q.f;
980
+ if (!G && t & 32 && R !== null && !R.i) {
981
981
  var n = R;
982
982
  (n.e ??= []).push(e);
983
- } else return dn(e);
984
- }
985
- function dn(e) {
986
- return sn(4 | ae, e);
983
+ } else return fn(e);
987
984
  }
988
985
  function fn(e) {
989
- St.ensure();
990
- let t = sn(64 | D, e);
986
+ return cn(4 | ae, e);
987
+ }
988
+ function pn(e) {
989
+ Ct.ensure();
990
+ let t = cn(64 | D, e);
991
991
  return () => {
992
- G(t);
992
+ W(t);
993
993
  };
994
994
  }
995
- function pn(e) {
996
- St.ensure();
997
- let t = sn(64 | D, e);
995
+ function mn(e) {
996
+ Ct.ensure();
997
+ let t = cn(64 | D, e);
998
998
  return (e = {}) => new Promise((n) => {
999
- e.outro ? Tn(t, () => {
1000
- G(t), n(void 0);
1001
- }) : (G(t), n(void 0));
999
+ e.outro ? En(t, () => {
1000
+ W(t), n(void 0);
1001
+ }) : (W(t), n(void 0));
1002
1002
  });
1003
1003
  }
1004
- function mn(e) {
1005
- return sn(4, e);
1006
- }
1007
1004
  function hn(e) {
1008
- return sn(k | D, e);
1005
+ return cn(4, e);
1009
1006
  }
1010
- function gn(e, t = 0) {
1011
- return sn(8 | t, e);
1007
+ function gn(e) {
1008
+ return cn(k | D, e);
1012
1009
  }
1013
- function _n(e, t = [], n = [], r = []) {
1010
+ function _n(e, t = 0) {
1011
+ return cn(8 | t, e);
1012
+ }
1013
+ function vn(e, t = [], n = [], r = []) {
1014
1014
  et(r, t, n, (t) => {
1015
- sn(8, () => {
1015
+ cn(8, () => {
1016
1016
  e(...t.map(Z));
1017
1017
  });
1018
1018
  });
1019
1019
  }
1020
- function vn(e, t = 0) {
1021
- return sn(16 | t, e);
1022
- }
1023
- function yn(e) {
1024
- return sn(32 | D, e);
1020
+ function yn(e, t = 0) {
1021
+ return cn(16 | t, e);
1025
1022
  }
1026
1023
  function bn(e) {
1024
+ return cn(32 | D, e);
1025
+ }
1026
+ function xn(e) {
1027
1027
  var t = e.teardown;
1028
1028
  if (t !== null) {
1029
- let n = Mn, r = K;
1030
- Nn(!0), q(null);
1029
+ let n = Nn, r = G;
1030
+ Pn(!0), K(null);
1031
1031
  try {
1032
1032
  t.call(null);
1033
1033
  } catch (t) {
1034
- rn(t, e.parent);
1034
+ an(t, e.parent);
1035
1035
  } finally {
1036
- Nn(n), q(r);
1036
+ Pn(n), K(r);
1037
1037
  }
1038
1038
  }
1039
1039
  }
1040
- function xn(e, t = !1) {
1040
+ function Sn(e, t = !1) {
1041
1041
  var n = e.first;
1042
1042
  for (e.first = e.last = null; n !== null;) {
1043
1043
  let e = n.ac;
@@ -1045,46 +1045,46 @@ function xn(e, t = !1) {
1045
1045
  e.abort(me);
1046
1046
  });
1047
1047
  var r = n.next;
1048
- n.f & 64 ? n.parent = null : G(n, t), n = r;
1048
+ n.f & 64 ? n.parent = null : W(n, t), n = r;
1049
1049
  }
1050
1050
  }
1051
- function Sn(e) {
1051
+ function Cn(e) {
1052
1052
  for (var t = e.first; t !== null;) {
1053
1053
  var n = t.next;
1054
- t.f & 32 || G(t), t = n;
1054
+ t.f & 32 || W(t), t = n;
1055
1055
  }
1056
1056
  }
1057
- function G(e, t = !0) {
1057
+ function W(e, t = !0) {
1058
1058
  var n = !1;
1059
- (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (Cn(e.nodes.start, e.nodes.end), n = !0), e.f |= ie, xn(e, t && !n), Xn(e, 0);
1059
+ (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (wn(e.nodes.start, e.nodes.end), n = !0), e.f |= ie, Sn(e, t && !n), Xn(e, 0);
1060
1060
  var r = e.nodes && e.nodes.t;
1061
1061
  if (r !== null) for (let e of r) e.stop();
1062
- bn(e), e.f ^= ie, e.f |= T;
1062
+ xn(e), e.f ^= ie, e.f |= T;
1063
1063
  var i = e.parent;
1064
- i !== null && i.first !== null && wn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1064
+ i !== null && i.first !== null && Tn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1065
1065
  }
1066
- function Cn(e, t) {
1066
+ function wn(e, t) {
1067
1067
  for (; e !== null;) {
1068
- var n = e === t ? null : /* @__PURE__ */ qt(e);
1068
+ var n = e === t ? null : /* @__PURE__ */ Jt(e);
1069
1069
  e.remove(), e = n;
1070
1070
  }
1071
1071
  }
1072
- function wn(e) {
1072
+ function Tn(e) {
1073
1073
  var t = e.parent, n = e.prev, r = e.next;
1074
1074
  n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
1075
1075
  }
1076
- function Tn(e, t, n = !0) {
1076
+ function En(e, t, n = !0) {
1077
1077
  var r = [];
1078
- e.f |= 256, En(e, r, !0);
1078
+ e.f |= 256, Dn(e, r, !0);
1079
1079
  var i = () => {
1080
- n && G(e), t && t();
1080
+ n && W(e), t && t();
1081
1081
  }, a = r.length;
1082
1082
  if (a > 0) {
1083
1083
  var o = () => --a || i();
1084
1084
  for (var s of r) s.out(o);
1085
1085
  } else i();
1086
1086
  }
1087
- function En(e, t, n) {
1087
+ function Dn(e, t, n) {
1088
1088
  if (!(e.f & 8192)) {
1089
1089
  e.f ^= w;
1090
1090
  var r = e.nodes && e.nodes.t;
@@ -1093,53 +1093,53 @@ function En(e, t, n) {
1093
1093
  var a = i.next;
1094
1094
  if (!(i.f & 64)) {
1095
1095
  var o = !!(i.f & 65536) || !!(i.f & 32) && !!(e.f & 16);
1096
- En(i, t, o ? n : !1);
1096
+ Dn(i, t, o ? n : !1);
1097
1097
  }
1098
1098
  i = a;
1099
1099
  }
1100
1100
  }
1101
1101
  }
1102
- function Dn(e) {
1103
- e.f &= -257, On(e, !0);
1102
+ function On(e) {
1103
+ e.f &= -257, kn(e, !0);
1104
1104
  }
1105
- function On(e, t) {
1105
+ function kn(e, t) {
1106
1106
  if (!(e.f & 256) && e.f & 8192) {
1107
- e.f ^= w, e.f & 1024 || (z(e, C), St.ensure().schedule(e));
1107
+ e.f ^= w, e.f & 1024 || (z(e, C), Ct.ensure().schedule(e));
1108
1108
  for (var n = e.first; n !== null;) {
1109
1109
  var r = n.next, i = !!(n.f & 65536) || !!(n.f & 32);
1110
- On(n, i ? t : !1), n = r;
1110
+ kn(n, i ? t : !1), n = r;
1111
1111
  }
1112
1112
  var a = e.nodes && e.nodes.t;
1113
1113
  if (a !== null) for (let e of a) (e.is_global || t) && e.in();
1114
1114
  }
1115
1115
  }
1116
- function kn(e, t) {
1116
+ function An(e, t) {
1117
1117
  if (e.nodes) for (var n = e.nodes.start, r = e.nodes.end; n !== null;) {
1118
- var i = n === r ? null : /* @__PURE__ */ qt(n);
1118
+ var i = n === r ? null : /* @__PURE__ */ Jt(n);
1119
1119
  t.append(n), n = i;
1120
1120
  }
1121
1121
  }
1122
1122
  //#endregion
1123
1123
  //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/legacy.js
1124
- var An = null, jn = !1, Mn = !1;
1125
- function Nn(e) {
1126
- Mn = e;
1124
+ var jn = null, Mn = !1, Nn = !1;
1125
+ function Pn(e) {
1126
+ Nn = e;
1127
1127
  }
1128
- var K = null, Pn = !1;
1129
- function q(e) {
1130
- K = e;
1128
+ var G = null, Fn = !1;
1129
+ function K(e) {
1130
+ G = e;
1131
1131
  }
1132
- var J = null;
1133
- function Fn(e) {
1134
- J = e;
1132
+ var q = null;
1133
+ function In(e) {
1134
+ q = e;
1135
1135
  }
1136
- var In = null;
1137
- function Ln(e) {
1138
- K !== null && (In ??= /* @__PURE__ */ new Set()).add(e);
1136
+ var Ln = null;
1137
+ function Rn(e) {
1138
+ G !== null && (Ln ??= /* @__PURE__ */ new Set()).add(e);
1139
1139
  }
1140
- var Y = null, X = 0, Rn = null;
1140
+ var J = null, Y = 0, X = null;
1141
1141
  function zn(e) {
1142
- Rn = e;
1142
+ X = e;
1143
1143
  }
1144
1144
  var Bn = 1, Vn = 0, Hn = Vn;
1145
1145
  function Un(e) {
@@ -1156,20 +1156,20 @@ function Gn(e) {
1156
1156
  var a = n[i];
1157
1157
  if (Gn(a) && ut(a), a.wv > e.wv) return !0;
1158
1158
  }
1159
- t & 512 && H === null && z(e, S);
1159
+ t & 512 && ht === null && z(e, S);
1160
1160
  }
1161
1161
  return !1;
1162
1162
  }
1163
1163
  function Kn(e, t, n = !0) {
1164
1164
  var r = e.reactions;
1165
- if (r !== null && !(In !== null && In.has(e))) for (var i = 0; i < r.length; i++) {
1165
+ if (r !== null && !(Ln !== null && Ln.has(e))) for (var i = 0; i < r.length; i++) {
1166
1166
  var a = r[i];
1167
- a.f & 2 ? Kn(a, t, !1) : t === a && (n ? z(a, C) : a.f & 1024 && z(a, ne), Dt(a));
1167
+ a.f & 2 ? Kn(a, t, !1) : t === a && (n ? z(a, C) : a.f & 1024 && z(a, ne), Ot(a));
1168
1168
  }
1169
1169
  }
1170
1170
  function qn(e) {
1171
- var t = Y, n = X, r = Rn, i = K, a = In, o = R, s = Pn, c = Hn, l = e.f;
1172
- Y = null, X = 0, Rn = null, K = l & 96 ? null : e, In = null, Re(e.ctx), Pn = !1, Hn = ++Vn, e.ac !== null && ($e(() => {
1171
+ var t = J, n = Y, r = X, i = G, a = Ln, o = R, s = Fn, c = Hn, l = e.f;
1172
+ J = null, Y = 0, X = null, G = l & 96 ? null : e, Ln = null, Re(e.ctx), Fn = !1, Hn = ++Vn, e.ac !== null && ($e(() => {
1173
1173
  e.ac.abort(me);
1174
1174
  }), e.ac = null);
1175
1175
  try {
@@ -1177,27 +1177,27 @@ function qn(e) {
1177
1177
  var u = e.fn, d = u();
1178
1178
  e.f |= re;
1179
1179
  var f = Jn(e);
1180
- if (He() && Rn !== null && !Pn && f !== null && !(e.f & 6146)) for (var p = 0; p < Rn.length; p++) Kn(Rn[p], e);
1180
+ if (He() && X !== null && !Fn && f !== null && !(e.f & 6146)) for (var p = 0; p < X.length; p++) Kn(X[p], e);
1181
1181
  if (i !== null && i !== e) {
1182
1182
  if (Vn++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = Vn;
1183
1183
  if (t !== null) for (let e of t) e.rv = Vn;
1184
- Rn !== null && (r === null ? r = Rn : r.push(...Rn));
1184
+ X !== null && (r === null ? r = X : r.push(...X));
1185
1185
  }
1186
1186
  return e.f & 8388608 && (e.f ^= ce), d;
1187
1187
  } catch (t) {
1188
- return Jn(e), nn(t);
1188
+ return Jn(e), rn(t);
1189
1189
  } finally {
1190
- e.f ^= se, Y = t, X = n, Rn = r, K = i, In = a, Re(o), Pn = s, Hn = c;
1190
+ e.f ^= se, J = t, Y = n, X = r, G = i, Ln = a, Re(o), Fn = s, Hn = c;
1191
1191
  }
1192
1192
  }
1193
1193
  function Jn(e) {
1194
1194
  var t = e.deps, n = V?.is_fork;
1195
- if (Y !== null) {
1195
+ if (J !== null) {
1196
1196
  var r;
1197
- if (n || Xn(e, X), t !== null && X > 0) for (t.length = X + Y.length, r = 0; r < Y.length; r++) t[X + r] = Y[r];
1198
- else e.deps = t = Y;
1199
- if (cn() && e.f & 512) for (r = X; r < t.length; r++) (t[r].reactions ??= []).push(e);
1200
- } else !n && t !== null && X < t.length && (Xn(e, X), t.length = X);
1197
+ if (n || Xn(e, Y), t !== null && Y > 0) for (t.length = Y + J.length, r = 0; r < J.length; r++) t[Y + r] = J[r];
1198
+ else e.deps = t = J;
1199
+ if (ln() && e.f & 512) for (r = Y; r < t.length; r++) (t[r].reactions ??= []).push(e);
1200
+ } else !n && t !== null && Y < t.length && (Xn(e, Y), t.length = Y);
1201
1201
  return t;
1202
1202
  }
1203
1203
  function Yn(e, t) {
@@ -1209,7 +1209,7 @@ function Yn(e, t) {
1209
1209
  i === 0 ? n = t.reactions = null : (n[r] = n[i], n.pop());
1210
1210
  }
1211
1211
  }
1212
- if (n === null && t.f & 2 && (Y === null || !d.call(Y, t))) {
1212
+ if (n === null && t.f & 2 && (J === null || !d.call(J, t))) {
1213
1213
  var a = t;
1214
1214
  a.f & 512 && (a.f ^= 512, a.f &= ~oe), a.v !== s && Je(a), a.ac !== null && $e(() => {
1215
1215
  a.ac.abort(me), a.ac = null, z(a, C);
@@ -1224,39 +1224,39 @@ function Zn(e) {
1224
1224
  var t = e.f;
1225
1225
  if (!(t & 16384)) {
1226
1226
  z(e, S);
1227
- var n = J, r = jn;
1228
- J = e, jn = !(t & 96);
1227
+ var n = q, r = Mn;
1228
+ q = e, Mn = !(t & 96);
1229
1229
  try {
1230
- t & 16777232 ? Sn(e) : xn(e), bn(e);
1230
+ t & 16777232 ? Cn(e) : Sn(e), xn(e);
1231
1231
  var i = qn(e);
1232
1232
  e.teardown = typeof i == "function" ? i : null, e.wv = Bn;
1233
1233
  } finally {
1234
- jn = r, J = n;
1234
+ Mn = r, q = n;
1235
1235
  }
1236
1236
  }
1237
1237
  }
1238
1238
  function Z(e) {
1239
1239
  var t = !!(e.f & 2);
1240
- if (An?.add(e), K !== null && !Pn && !(J !== null && J.f & 16384) && (In === null || !In.has(e))) {
1241
- var n = K.deps;
1242
- if (K.f & 2097152) e.rv < Vn && (e.rv = Vn, Y === null && n !== null && n[X] === e ? X++ : Y === null ? Y = [e] : Y.push(e));
1240
+ if (jn?.add(e), G !== null && !Fn && !(q !== null && q.f & 16384) && (Ln === null || !Ln.has(e))) {
1241
+ var n = G.deps;
1242
+ if (G.f & 2097152) e.rv < Vn && (e.rv = Vn, J === null && n !== null && n[Y] === e ? Y++ : J === null ? J = [e] : J.push(e));
1243
1243
  else {
1244
- K.deps ??= [], d.call(K.deps, e) || K.deps.push(e);
1244
+ G.deps ??= [], d.call(G.deps, e) || G.deps.push(e);
1245
1245
  var r = e.reactions;
1246
- r === null ? e.reactions = [K] : d.call(r, K) || r.push(K);
1246
+ r === null ? e.reactions = [G] : d.call(r, G) || r.push(G);
1247
1247
  }
1248
1248
  }
1249
- if (Mn && jt.has(e)) return jt.get(e);
1249
+ if (Nn && Mt.has(e)) return Mt.get(e);
1250
1250
  if (t) {
1251
1251
  var i = e;
1252
- if (Mn) {
1252
+ if (Nn) {
1253
1253
  var a = i.v;
1254
- return (!(i.f & 1024) && i.reactions !== null || $n(i)) && (a = lt(i)), jt.set(i, a), a;
1254
+ return (!(i.f & 1024) && i.reactions !== null || $n(i)) && (a = lt(i)), Mt.set(i, a), a;
1255
1255
  }
1256
- var o = !(i.f & 512) && !Pn && K !== null && (jn || !!(K.f & 512)), s = (i.f & re) === 0;
1256
+ var o = !(i.f & 512) && !Fn && G !== null && (Mn || !!(G.f & 512)), s = (i.f & re) === 0;
1257
1257
  Gn(i) && (o && (i.f |= 512), ut(i)), o && !s && (ft(i), Qn(i));
1258
1258
  }
1259
- if (H?.has(e)) return H.get(e);
1259
+ if (ht?.has(e)) return ht.get(e);
1260
1260
  if (e.f & 8388608) throw e.v;
1261
1261
  return e.v;
1262
1262
  }
@@ -1266,15 +1266,15 @@ function Qn(e) {
1266
1266
  function $n(e) {
1267
1267
  if (e.v === s) return !0;
1268
1268
  if (e.deps === null) return !1;
1269
- for (let t of e.deps) if (jt.has(t) || t.f & 2 && $n(t)) return !0;
1269
+ for (let t of e.deps) if (Mt.has(t) || t.f & 2 && $n(t)) return !0;
1270
1270
  return !1;
1271
1271
  }
1272
1272
  function er(e) {
1273
- var t = Pn;
1273
+ var t = Fn;
1274
1274
  try {
1275
- return Pn = !0, e();
1275
+ return Fn = !0, e();
1276
1276
  } finally {
1277
- Pn = t;
1277
+ Fn = t;
1278
1278
  }
1279
1279
  }
1280
1280
  function tr(e) {
@@ -1338,8 +1338,8 @@ function ur(e) {
1338
1338
  return a || n;
1339
1339
  }
1340
1340
  });
1341
- var u = K, d = J;
1342
- q(null), Fn(null);
1341
+ var u = G, d = q;
1342
+ K(null), In(null);
1343
1343
  try {
1344
1344
  for (var f, p = []; a !== null && a !== t;) {
1345
1345
  try {
@@ -1358,7 +1358,7 @@ function ur(e) {
1358
1358
  throw f;
1359
1359
  }
1360
1360
  } finally {
1361
- e[rr] = t, delete e.currentTarget, q(u), Fn(d);
1361
+ e[rr] = t, delete e.currentTarget, K(u), In(d);
1362
1362
  }
1363
1363
  }
1364
1364
  }
@@ -1369,13 +1369,13 @@ function fr(e) {
1369
1369
  return dr?.createHTML(e) ?? e;
1370
1370
  }
1371
1371
  function pr(e) {
1372
- var t = en("template");
1372
+ var t = tn("template");
1373
1373
  return t.innerHTML = fr(e.replaceAll("<!>", "<!---->")), t.content;
1374
1374
  }
1375
1375
  //#endregion
1376
1376
  //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/template.js
1377
1377
  function mr(e, t) {
1378
- var n = J;
1378
+ var n = q;
1379
1379
  n.nodes === null && (n.nodes = {
1380
1380
  start: e,
1381
1381
  end: t,
@@ -1388,10 +1388,10 @@ function hr(e, t) {
1388
1388
  var n = !!(t & 1), r = !!(t & 2), i, a = !e.startsWith("<!>");
1389
1389
  return () => {
1390
1390
  if (N) return mr(F, null), F;
1391
- i === void 0 && (i = pr(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ Kt(i)));
1392
- var t = r || Vt ? document.importNode(i, !0) : i.cloneNode(!0);
1391
+ i === void 0 && (i = pr(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ qt(i)));
1392
+ var t = r || Ht ? document.importNode(i, !0) : i.cloneNode(!0);
1393
1393
  if (n) {
1394
- var o = /* @__PURE__ */ Kt(t), s = t.lastChild;
1394
+ var o = /* @__PURE__ */ qt(t), s = t.lastChild;
1395
1395
  mr(o, s);
1396
1396
  } else mr(t, t);
1397
1397
  return t;
@@ -1399,12 +1399,12 @@ function hr(e, t) {
1399
1399
  }
1400
1400
  function gr() {
1401
1401
  if (N) return mr(F, null), F;
1402
- var e = document.createDocumentFragment(), t = document.createComment(""), n = Gt();
1402
+ var e = document.createDocumentFragment(), t = document.createComment(""), n = Kt();
1403
1403
  return e.append(t, n), mr(t, n), e;
1404
1404
  }
1405
1405
  function _r(e, t) {
1406
1406
  if (N) {
1407
- var n = J;
1407
+ var n = q;
1408
1408
  (!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = F), ye();
1409
1409
  return;
1410
1410
  }
@@ -1418,11 +1418,11 @@ function yr(e) {
1418
1418
  //#endregion
1419
1419
  //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/reactivity/create-subscriber.js
1420
1420
  function br(e) {
1421
- let t = 0, n = Nt(0), r;
1421
+ let t = 0, n = Pt(0), r;
1422
1422
  return () => {
1423
- cn() && (Z(n), gn(() => (t === 0 && (r = er(() => e(() => Lt(n)))), t += 1, () => {
1423
+ ln() && (Z(n), _n(() => (t === 0 && (r = er(() => e(() => Rt(n)))), t += 1, () => {
1424
1424
  Ge(() => {
1425
- --t, t === 0 && (r?.(), r = void 0, Lt(n));
1425
+ --t, t === 0 && (r?.(), r = void 0, Rt(n));
1426
1426
  });
1427
1427
  })));
1428
1428
  };
@@ -1452,14 +1452,14 @@ var Cr = class {
1452
1452
  #f = /* @__PURE__ */ new Set();
1453
1453
  #p = /* @__PURE__ */ new Set();
1454
1454
  #m = null;
1455
- #h = br(() => (this.#m = Nt(this.#l), () => {
1455
+ #h = br(() => (this.#m = Pt(this.#l), () => {
1456
1456
  this.#m = null;
1457
1457
  }));
1458
1458
  constructor(e, t, n, r) {
1459
1459
  this.#e = e, this.#n = t, this.#r = (e) => {
1460
- var t = J;
1460
+ var t = q;
1461
1461
  t.b = this, t.f |= 128, n(e);
1462
- }, this.parent = J.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = vn(() => {
1462
+ }, this.parent = q.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = yn(() => {
1463
1463
  if (N) {
1464
1464
  let e = this.#t;
1465
1465
  ye();
@@ -1473,14 +1473,14 @@ var Cr = class {
1473
1473
  }
1474
1474
  #g() {
1475
1475
  try {
1476
- this.#a = yn(() => this.#r(this.#e));
1476
+ this.#a = bn(() => this.#r(this.#e));
1477
1477
  } catch (e) {
1478
1478
  this.error(e);
1479
1479
  }
1480
1480
  }
1481
1481
  #_(e) {
1482
1482
  let t = this.#n.failed, { reset: n, invoke_onerror: r } = this.#v(e);
1483
- Ge(r), t && (this.#s = yn(() => {
1483
+ Ge(r), t && (this.#s = bn(() => {
1484
1484
  t(this.#e, () => e, () => n);
1485
1485
  }));
1486
1486
  }
@@ -1491,7 +1491,7 @@ var Cr = class {
1491
1491
  ve();
1492
1492
  return;
1493
1493
  }
1494
- t = !0, n && Le(), this.#s !== null && Tn(this.#s, () => {
1494
+ t = !0, n && Le(), this.#s !== null && En(this.#s, () => {
1495
1495
  this.#s = null;
1496
1496
  }), this.#S(() => {
1497
1497
  this.#b();
@@ -1503,23 +1503,23 @@ var Cr = class {
1503
1503
  try {
1504
1504
  n = !0, this.#n.onerror?.(e, r), n = !1;
1505
1505
  } catch (e) {
1506
- rn(e, this.#i && this.#i.parent);
1506
+ an(e, this.#i && this.#i.parent);
1507
1507
  }
1508
1508
  }
1509
1509
  };
1510
1510
  }
1511
1511
  #y() {
1512
1512
  let e = this.#n.pending;
1513
- e && (this.is_pending = !0, this.#o = yn(() => e(this.#e)), Ge(() => {
1514
- var e = this.#c = document.createDocumentFragment(), t = Gt(), n = !1;
1513
+ e && (this.is_pending = !0, this.#o = bn(() => e(this.#e)), Ge(() => {
1514
+ var e = this.#c = document.createDocumentFragment(), t = Kt(), n = !1;
1515
1515
  if (e.append(t), this.#a = this.#S(() => {
1516
1516
  try {
1517
- return yn(() => this.#r(t));
1517
+ return bn(() => this.#r(t));
1518
1518
  } catch (e) {
1519
1519
  try {
1520
1520
  this.error(e), n = !0;
1521
1521
  } catch (e) {
1522
- rn(e, this.#i.parent);
1522
+ an(e, this.#i.parent);
1523
1523
  }
1524
1524
  return null;
1525
1525
  }
@@ -1527,20 +1527,20 @@ var Cr = class {
1527
1527
  this.#c = null, n && this.#x(V);
1528
1528
  return;
1529
1529
  }
1530
- this.#u === 0 && (this.#e.before(e), this.#c = null, Tn(this.#o, () => {
1530
+ this.#u === 0 && (this.#e.before(e), this.#c = null, En(this.#o, () => {
1531
1531
  this.#o = null;
1532
1532
  }), this.#x(V));
1533
1533
  }));
1534
1534
  }
1535
1535
  #b() {
1536
1536
  try {
1537
- if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#l = 0, this.#a = yn(() => {
1537
+ if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#l = 0, this.#a = bn(() => {
1538
1538
  this.#r(this.#e);
1539
1539
  }), this.#u > 0) {
1540
1540
  var e = this.#c = document.createDocumentFragment();
1541
- kn(this.#a, e);
1541
+ An(this.#a, e);
1542
1542
  let t = this.#n.pending;
1543
- this.#o = yn(() => t(this.#e));
1543
+ this.#o = bn(() => t(this.#e));
1544
1544
  } else this.#x(V);
1545
1545
  } catch (e) {
1546
1546
  this.error(e);
@@ -1559,12 +1559,12 @@ var Cr = class {
1559
1559
  return !!this.#n.pending;
1560
1560
  }
1561
1561
  #S(e) {
1562
- var t = J, n = K, r = R;
1563
- Fn(this.#i), q(this.#i), Re(this.#i.ctx);
1562
+ var t = q, n = G, r = R;
1563
+ In(this.#i), K(this.#i), Re(this.#i.ctx);
1564
1564
  try {
1565
- return St.ensure(), e();
1565
+ return Ct.ensure(), e();
1566
1566
  } finally {
1567
- Fn(t), q(n), Re(r);
1567
+ In(t), K(n), Re(r);
1568
1568
  }
1569
1569
  }
1570
1570
  #C(e, t) {
@@ -1572,13 +1572,13 @@ var Cr = class {
1572
1572
  this.parent && this.parent.#C(e, t);
1573
1573
  return;
1574
1574
  }
1575
- this.#u += e, this.#u === 0 && (this.#x(t), this.#o && Tn(this.#o, () => {
1575
+ this.#u += e, this.#u === 0 && (this.#x(t), this.#o && En(this.#o, () => {
1576
1576
  this.#o = null;
1577
1577
  }), this.#c &&= (this.#e.before(this.#c), null));
1578
1578
  }
1579
1579
  update_pending_count(e, t) {
1580
1580
  this.#C(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, Ge(() => {
1581
- this.#d = !1, this.#m && Ft(this.#m, this.#l);
1581
+ this.#d = !1, this.#m && It(this.#m, this.#l);
1582
1582
  }));
1583
1583
  }
1584
1584
  get_effect_pending() {
@@ -1591,17 +1591,17 @@ var Cr = class {
1591
1591
  })) : this.#w(e);
1592
1592
  }
1593
1593
  #w(e) {
1594
- this.#a &&= (G(this.#a), null), this.#o &&= (G(this.#o), null), this.#s &&= (G(this.#s), null), N && (I(this.#t), xe(), I(L()));
1594
+ this.#a &&= (W(this.#a), null), this.#o &&= (W(this.#o), null), this.#s &&= (W(this.#s), null), N && (I(this.#t), xe(), I(L()));
1595
1595
  let t = this.#n.failed, n = (e) => {
1596
1596
  let { reset: n, invoke_onerror: r } = this.#v(e);
1597
1597
  r(), t && (this.#s = this.#S(() => {
1598
1598
  try {
1599
- return yn(() => {
1600
- var r = J;
1599
+ return bn(() => {
1600
+ var r = q;
1601
1601
  r.b = this, r.f |= 128, t(this.#e, () => e, () => n);
1602
1602
  });
1603
1603
  } catch (e) {
1604
- return rn(e, this.#i.parent), null;
1604
+ return an(e, this.#i.parent), null;
1605
1605
  }
1606
1606
  }));
1607
1607
  };
@@ -1610,10 +1610,10 @@ var Cr = class {
1610
1610
  try {
1611
1611
  t = this.transform_error(e);
1612
1612
  } catch (e) {
1613
- rn(e, this.#i && this.#i.parent);
1613
+ an(e, this.#i && this.#i.parent);
1614
1614
  return;
1615
1615
  }
1616
- typeof t == "object" && t && typeof t.then == "function" ? t.then(n, (e) => rn(e, this.#i && this.#i.parent)) : n(t);
1616
+ typeof t == "object" && t && typeof t.then == "function" ? t.then(n, (e) => an(e, this.#i && this.#i.parent)) : n(t);
1617
1617
  });
1618
1618
  }
1619
1619
  };
@@ -1625,10 +1625,10 @@ function Tr(e, t) {
1625
1625
  return Or(e, t);
1626
1626
  }
1627
1627
  function Er(e, t) {
1628
- Wt(), t.intro = t.intro ?? !1;
1628
+ Gt(), t.intro = t.intro ?? !1;
1629
1629
  let n = t.target, r = N, i = F;
1630
1630
  try {
1631
- for (var a = /* @__PURE__ */ Kt(n); a && (a.nodeType !== 8 || a.data !== "[");) a = /* @__PURE__ */ qt(a);
1631
+ for (var a = /* @__PURE__ */ qt(n); a && (a.nodeType !== 8 || a.data !== "[");) a = /* @__PURE__ */ Jt(a);
1632
1632
  if (!a) throw o;
1633
1633
  P(!0), I(a);
1634
1634
  let r = Or(e, {
@@ -1638,20 +1638,20 @@ function Er(e, t) {
1638
1638
  return P(!1), r;
1639
1639
  } catch (r) {
1640
1640
  if (r instanceof Error && r.message.split("\n").some((e) => e.startsWith("https://svelte.dev/e/"))) throw r;
1641
- return r !== o && console.warn("Failed to hydrate: ", r), t.recover === !1 && Me(), Wt(), Qt(n), P(!1), Tr(e, t);
1641
+ return r !== o && console.warn("Failed to hydrate: ", r), t.recover === !1 && Me(), Gt(), $t(n), P(!1), Tr(e, t);
1642
1642
  } finally {
1643
1643
  P(r), I(i);
1644
1644
  }
1645
1645
  }
1646
1646
  var Dr = /* @__PURE__ */ new Map();
1647
1647
  function Or(e, { target: t, anchor: n, props: r = {}, events: i, context: a, intro: s = !0, transformError: c }) {
1648
- Wt();
1649
- var l = void 0, u = pn(() => {
1650
- var s = n ?? t.appendChild(Gt());
1648
+ Gt();
1649
+ var l = void 0, u = mn(() => {
1650
+ var s = n ?? t.appendChild(Kt());
1651
1651
  Sr(s, { pending: () => {} }, (t) => {
1652
1652
  ze({});
1653
1653
  var n = R;
1654
- if (a && (n.c = a), i && (r.$$events = i), N && mr(t, null), l = e(t, r) || Ve(), N && (J.nodes.end = F, F === null || F.nodeType !== 8 || F.data !== "]")) throw _e(), o;
1654
+ if (a && (n.c = a), i && (r.$$events = i), N && mr(t, null), l = e(t, r) || Ve(), N && (q.nodes.end = F, F === null || F.nodeType !== 8 || F.data !== "]")) throw _e(), o;
1655
1655
  Be();
1656
1656
  }, c);
1657
1657
  var u = /* @__PURE__ */ new Set(), d = (e) => {
@@ -1699,47 +1699,47 @@ var jr = class {
1699
1699
  #a = (e) => {
1700
1700
  if (this.#e.has(e)) {
1701
1701
  var t = this.#e.get(e), n = this.#t.get(t);
1702
- if (n) Dn(n), this.#r.delete(t);
1702
+ if (n) On(n), this.#r.delete(t);
1703
1703
  else {
1704
1704
  var r = this.#n.get(t);
1705
- r && (Dn(r.effect), this.#t.set(t, r.effect), this.#n.delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);
1705
+ r && (On(r.effect), this.#t.set(t, r.effect), this.#n.delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);
1706
1706
  }
1707
1707
  for (let [t, n] of this.#e) {
1708
1708
  if (this.#e.delete(t), t === e) break;
1709
1709
  let r = this.#n.get(n);
1710
- r && (G(r.effect), this.#n.delete(n));
1710
+ r && (W(r.effect), this.#n.delete(n));
1711
1711
  }
1712
1712
  for (let [e, r] of this.#t) {
1713
1713
  if (e === t || this.#r.has(e)) continue;
1714
1714
  let i = () => {
1715
1715
  if (Array.from(this.#e.values()).includes(e)) {
1716
1716
  var t = document.createDocumentFragment();
1717
- kn(r, t), t.append(Gt()), this.#n.set(e, {
1717
+ An(r, t), t.append(Kt()), this.#n.set(e, {
1718
1718
  effect: r,
1719
1719
  fragment: t
1720
1720
  });
1721
- } else G(r);
1721
+ } else W(r);
1722
1722
  this.#r.delete(e), this.#t.delete(e);
1723
1723
  };
1724
- this.#i || !n ? (this.#r.add(e), Tn(r, i, !1)) : i();
1724
+ this.#i || !n ? (this.#r.add(e), En(r, i, !1)) : i();
1725
1725
  }
1726
1726
  }
1727
1727
  };
1728
1728
  #o = (e) => {
1729
1729
  this.#e.delete(e);
1730
1730
  let t = Array.from(this.#e.values());
1731
- for (let [e, n] of this.#n) t.includes(e) || (G(n.effect), this.#n.delete(e));
1731
+ for (let [e, n] of this.#n) t.includes(e) || (W(n.effect), this.#n.delete(e));
1732
1732
  };
1733
1733
  ensure(e, t) {
1734
- var n = V, r = $t();
1734
+ var n = V, r = en();
1735
1735
  if (t && !this.#t.has(e) && !this.#n.has(e)) {
1736
1736
  if (r) {
1737
- var i = document.createDocumentFragment(), a = Gt();
1737
+ var i = document.createDocumentFragment(), a = Kt();
1738
1738
  i.append(a), this.#n.set(e, {
1739
- effect: yn(() => t(a)),
1739
+ effect: bn(() => t(a)),
1740
1740
  fragment: i
1741
1741
  });
1742
- } else this.#t.set(e, yn(() => t(this.anchor)));
1742
+ } else this.#t.set(e, bn(() => t(this.anchor)));
1743
1743
  }
1744
1744
  if (this.#e.set(n, e), r) {
1745
1745
  for (let [t, r] of this.#t) t === e ? n.unskip_effect(r) : n.skip_effect(r);
@@ -1765,7 +1765,7 @@ function Mr(e, t, n = !1) {
1765
1765
  }
1766
1766
  i.ensure(e, t);
1767
1767
  }
1768
- vn(() => {
1768
+ yn(() => {
1769
1769
  var e = !1;
1770
1770
  t((t, n = 0) => {
1771
1771
  e = !0, o(n, t);
@@ -1777,7 +1777,7 @@ function Mr(e, t, n = !1) {
1777
1777
  function Nr(e, t, n) {
1778
1778
  for (var r = [], i = t.length, a, o = t.length, s = 0; s < i; s++) {
1779
1779
  let n = t[s];
1780
- Tn(n, () => {
1780
+ En(n, () => {
1781
1781
  if (a) {
1782
1782
  if (a.pending.delete(n), a.done.add(n), a.pending.size === 0) {
1783
1783
  var t = e.outrogroups;
@@ -1790,7 +1790,7 @@ function Nr(e, t, n) {
1790
1790
  var c = r.length === 0 && n !== null && e.pending.size === 0;
1791
1791
  if (c) {
1792
1792
  var l = n, u = l.parentNode;
1793
- Qt(u), u.append(l), e.items.clear();
1793
+ $t(u), u.append(l), e.items.clear();
1794
1794
  }
1795
1795
  Pr(e, t, !c);
1796
1796
  } else a = {
@@ -1806,7 +1806,7 @@ function Pr(e, t, n = !0) {
1806
1806
  }
1807
1807
  for (var i = 0; i < t.length; i++) {
1808
1808
  var a = t[i];
1809
- r?.has(a) ? (a.f |= O, kn(a, document.createDocumentFragment())) : G(t[i], n);
1809
+ r?.has(a) ? (a.f |= O, An(a, document.createDocumentFragment())) : W(t[i], n);
1810
1810
  }
1811
1811
  }
1812
1812
  var Fr;
@@ -1814,7 +1814,7 @@ function Ir(e, t, n, r, i, a = null) {
1814
1814
  var o = e, s = /* @__PURE__ */ new Map();
1815
1815
  if (t & 4) {
1816
1816
  var c = e;
1817
- o = N ? I(/* @__PURE__ */ Kt(c)) : c.appendChild(Gt());
1817
+ o = N ? I(/* @__PURE__ */ qt(c)) : c.appendChild(Kt());
1818
1818
  }
1819
1819
  N && ye();
1820
1820
  var u = null, d = /* @__PURE__ */ st(() => {
@@ -1822,7 +1822,7 @@ function Ir(e, t, n, r, i, a = null) {
1822
1822
  return l(e) ? e : e == null ? [] : f(e);
1823
1823
  }), p, m = /* @__PURE__ */ new Map(), h = !0;
1824
1824
  function g(e) {
1825
- v.effect.f & 16384 || (v.pending.delete(e), v.fallback = u, Rr(v, p, o, t, r), u !== null && (p.length === 0 ? u.f & 33554432 ? (u.f ^= O, Br(u, null, o)) : Dn(u) : Tn(u, () => {
1825
+ v.effect.f & 16384 || (v.pending.delete(e), v.fallback = u, Rr(v, p, o, t, r), u !== null && (p.length === 0 ? u.f & 33554432 ? (u.f ^= O, Br(u, null, o)) : On(u) : En(u, () => {
1826
1826
  u = null;
1827
1827
  })));
1828
1828
  }
@@ -1830,17 +1830,17 @@ function Ir(e, t, n, r, i, a = null) {
1830
1830
  v.pending.delete(e);
1831
1831
  }
1832
1832
  var v = {
1833
- effect: vn(() => {
1833
+ effect: yn(() => {
1834
1834
  p = Z(d);
1835
1835
  var e = p.length;
1836
1836
  let c = !1;
1837
1837
  N && Se(o) === "[!" != (e === 0) && (o = L(), I(o), P(!1), c = !0);
1838
- for (var l = /* @__PURE__ */ new Set(), f = V, v = $t(), y = 0; y < e; y += 1) {
1838
+ for (var l = /* @__PURE__ */ new Set(), f = V, v = en(), y = 0; y < e; y += 1) {
1839
1839
  N && F.nodeType === 8 && F.data === "]" && (o = F, c = !0, P(!1));
1840
1840
  var ee = p[y], b = r(ee, y), x = h ? null : s.get(b);
1841
- x ? (x.v && Ft(x.v, ee), x.i && Ft(x.i, y), v && f.unskip_effect(x.e)) : (x = zr(s, h ? o : Fr ??= Gt(), ee, b, y, i, t, n), h || (x.e.f |= O), s.set(b, x)), l.add(b);
1841
+ x ? (x.v && It(x.v, ee), x.i && It(x.i, y), v && f.unskip_effect(x.e)) : (x = zr(s, h ? o : Fr ??= Kt(), ee, b, y, i, t, n), h || (x.e.f |= O), s.set(b, x)), l.add(b);
1842
1842
  }
1843
- if (e === 0 && a && !u && (h ? u = yn(() => a(o)) : (u = yn(() => a(Fr ??= Gt())), u.f |= O)), e > l.size && De("", "", ""), N && e > 0 && I(L()), !h) {
1843
+ if (e === 0 && a && !u && (h ? u = bn(() => a(o)) : (u = bn(() => a(Fr ??= Kt())), u.f |= O)), e > l.size && De("", "", ""), N && e > 0 && I(L()), !h) {
1844
1844
  if (m.set(f, l), v) {
1845
1845
  for (let [e, t] of s) l.has(e) || f.skip_effect(t.e);
1846
1846
  f.oncommit(g), f.ondiscard(_);
@@ -1865,7 +1865,7 @@ function Rr(e, t, n, r, i) {
1865
1865
  if (a) for (v = 0; v < o; v += 1) h = t[v], g = i(h, v), _ = s.get(g).e, _.f & 33554432 || (_.nodes?.a?.measure(), (d ??= /* @__PURE__ */ new Set()).add(_));
1866
1866
  for (v = 0; v < o; v += 1) {
1867
1867
  if (h = t[v], g = i(h, v), _ = s.get(g).e, e.outrogroups !== null) for (let t of e.outrogroups) t.pending.delete(_), t.done.delete(_);
1868
- if (_.f & 8192 && (Dn(_), a && (_.nodes?.a?.unfix(), (d ??= /* @__PURE__ */ new Set()).delete(_))), _.f & 33554432) {
1868
+ if (_.f & 8192 && (On(_), a && (_.nodes?.a?.unfix(), (d ??= /* @__PURE__ */ new Set()).delete(_))), _.f & 33554432) {
1869
1869
  if (_.f ^= O, _ === c) Br(_, null, n);
1870
1870
  else {
1871
1871
  var y = u ? u.next : c;
@@ -1913,18 +1913,18 @@ function Rr(e, t, n, r, i) {
1913
1913
  });
1914
1914
  }
1915
1915
  function zr(e, t, n, r, i, a, o, s) {
1916
- var c = o & 1 ? o & 16 ? Nt(n) : /* @__PURE__ */ Pt(n, !1, !1) : null, l = o & 2 ? Nt(i) : null;
1916
+ var c = o & 1 ? o & 16 ? Pt(n) : /* @__PURE__ */ Ft(n, !1, !1) : null, l = o & 2 ? Pt(i) : null;
1917
1917
  return {
1918
1918
  v: c,
1919
1919
  i: l,
1920
- e: yn(() => (a(t, c ?? n, l ?? i, s), () => {
1920
+ e: bn(() => (a(t, c ?? n, l ?? i, s), () => {
1921
1921
  e.delete(r);
1922
1922
  }))
1923
1923
  };
1924
1924
  }
1925
1925
  function Br(e, t, n) {
1926
1926
  if (e.nodes) for (var r = e.nodes.start, i = e.nodes.end, a = t && !(t.f & 33554432) ? t.nodes.start : n; r !== null;) {
1927
- var o = /* @__PURE__ */ qt(r);
1927
+ var o = /* @__PURE__ */ Jt(r);
1928
1928
  if (a.before(r), r === i) return;
1929
1929
  r = o;
1930
1930
  }
@@ -1935,11 +1935,11 @@ function Vr(e, t, n) {
1935
1935
  //#endregion
1936
1936
  //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/css.js
1937
1937
  function Hr(e, t) {
1938
- mn(() => {
1939
- e = J?.parent?.nodes?.start ?? e;
1938
+ hn(() => {
1939
+ e = q?.parent?.nodes?.start ?? e;
1940
1940
  var n = e.getRootNode(), r = n.host ? n : n.head ?? n.ownerDocument.head;
1941
1941
  if (!r.querySelector("#" + t.hash)) {
1942
- let e = en("style");
1942
+ let e = tn("style");
1943
1943
  e.id = t.hash, e.textContent = t.code, r.appendChild(e);
1944
1944
  }
1945
1945
  });
@@ -1947,11 +1947,11 @@ function Hr(e, t) {
1947
1947
  //#endregion
1948
1948
  //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/elements/actions.js
1949
1949
  function Ur(e, t, n) {
1950
- mn(() => {
1950
+ hn(() => {
1951
1951
  var r = er(() => t(e, n?.()) || {});
1952
1952
  if (n && r?.update) {
1953
1953
  var i = !1, a = {};
1954
- gn(() => {
1954
+ _n(() => {
1955
1955
  var e = n();
1956
1956
  tr(e), i && we(a, e) && (a = e, r.update(e));
1957
1957
  }), i = !0;
@@ -2052,13 +2052,13 @@ function Q(e, t, n, r) {
2052
2052
  N && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === ei) || i[t] !== (i[t] = n) && (t === "loading" && (e[le] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && ii(e).has(t) ? e[t] = n : e.setAttribute(t, n));
2053
2053
  }
2054
2054
  function ti(e, t, n) {
2055
- var r = K, i = J;
2055
+ var r = G, i = q;
2056
2056
  let a = N;
2057
- N && P(!1), q(null), Fn(null);
2057
+ N && P(!1), K(null), In(null);
2058
2058
  try {
2059
2059
  t !== "style" && (ri.has(e.getAttribute("is") || e.nodeName) || !customElements || customElements.get(e.getAttribute("is") || e.nodeName.toLowerCase()) ? ii(e).has(t) : n && typeof n == "object") ? e[t] = n : Q(e, t, n == null ? n : String(n));
2060
2060
  } finally {
2061
- q(r), Fn(i), a && P(!0);
2061
+ K(r), In(i), a && P(!0);
2062
2062
  }
2063
2063
  }
2064
2064
  function ni(e) {
@@ -2084,10 +2084,10 @@ function ai(e, t) {
2084
2084
  return e === t || e?.[A] === t;
2085
2085
  }
2086
2086
  function oi(e = Ve(), t, n, r) {
2087
- var i = R.r, a = J;
2088
- return mn(() => {
2087
+ var i = R.r, a = q;
2088
+ return hn(() => {
2089
2089
  var o, s;
2090
- return gn(() => {
2090
+ return _n(() => {
2091
2091
  o = s, s = r?.() || [], er(() => {
2092
2092
  ai(n(...s), e) || (t(e, ...s), o && ai(n(...o), e) && t(null, ...o));
2093
2093
  });
@@ -2130,13 +2130,13 @@ function si(e, t, n, r) {
2130
2130
  }
2131
2131
  var v = !1, y = (n & 1 ? it : st)(() => (v = !1, g()));
2132
2132
  a && Z(y);
2133
- var ee = J;
2133
+ var ee = q;
2134
2134
  return (function(e, t) {
2135
2135
  if (arguments.length > 0) {
2136
- let n = t ? Z(y) : i && a ? zt(e) : e;
2137
- return W(y, n), v = !0, s !== void 0 && (s = n), e;
2136
+ let n = t ? Z(y) : i && a ? Bt(e) : e;
2137
+ return U(y, n), v = !0, s !== void 0 && (s = n), e;
2138
2138
  }
2139
- return Mn && v || ee.f & 16384 ? y.v : Z(y);
2139
+ return Nn && v || ee.f & 16384 ? y.v : Z(y);
2140
2140
  });
2141
2141
  }
2142
2142
  //#endregion
@@ -2149,7 +2149,7 @@ var li = class {
2149
2149
  #t;
2150
2150
  constructor(e) {
2151
2151
  var t = /* @__PURE__ */ new Map(), n = (e, n) => {
2152
- var r = /* @__PURE__ */ Pt(n, !1, !1);
2152
+ var r = /* @__PURE__ */ Ft(n, !1, !1);
2153
2153
  return t.set(e, r), r;
2154
2154
  };
2155
2155
  let r = new Proxy({
@@ -2163,7 +2163,7 @@ var li = class {
2163
2163
  return r === M || (Z(t.get(r) ?? n(r, Reflect.get(e, r))), Reflect.has(e, r));
2164
2164
  },
2165
2165
  set(e, r, i) {
2166
- return W(t.get(r) ?? n(r, i), i), Reflect.set(e, r, i);
2166
+ return U(t.get(r) ?? n(r, i), i), Reflect.set(e, r, i);
2167
2167
  }
2168
2168
  });
2169
2169
  this.#t = (e.hydrate ? Er : Tr)(e.component, {
@@ -2174,7 +2174,7 @@ var li = class {
2174
2174
  intro: e.intro ?? !1,
2175
2175
  recover: e.recover,
2176
2176
  transformError: e.transformError
2177
- }), (!e?.props?.$$host || e.sync === !1) && Ct(), this.#e = r.$$events;
2177
+ }), (!e?.props?.$$host || e.sync === !1) && wt(), this.#e = r.$$events;
2178
2178
  for (let e of Object.keys(this.#t)) e !== "$set" && e !== "$destroy" && e !== "$on" && m(this, e, {
2179
2179
  get() {
2180
2180
  return this.#t[e];
@@ -2237,7 +2237,7 @@ typeof HTMLElement == "function" && (ui = class extends HTMLElement {
2237
2237
  if (await Promise.resolve(), !this.$$cn || this.$$c) return;
2238
2238
  function e(e) {
2239
2239
  return (t) => {
2240
- let n = en("slot");
2240
+ let n = tn("slot");
2241
2241
  e !== "default" && (n.name = e), _r(t, n);
2242
2242
  };
2243
2243
  }
@@ -2256,8 +2256,8 @@ typeof HTMLElement == "function" && (ui = class extends HTMLElement {
2256
2256
  $$slots: t,
2257
2257
  $$host: this
2258
2258
  }
2259
- }), this.$$me = fn(() => {
2260
- gn(() => {
2259
+ }), this.$$me = pn(() => {
2260
+ _n(() => {
2261
2261
  this.$$r = !0;
2262
2262
  for (let e of p(this.$$c)) {
2263
2263
  if (!this.$$p_d[e]?.reflect) continue;
@@ -3122,44 +3122,12 @@ var Da = Object.defineProperty, Oa = Object.getOwnPropertyDescriptor, ka = (e, t
3122
3122
  };
3123
3123
  ka([Ea()], Aa.prototype, "variant", 2), ka([Ea()], Aa.prototype, "size", 2), ka([Ea()], Aa.prototype, "type", 2), ka([Ea()], Aa.prototype, "state", 2), ka([Ea({ attribute: "icon-name" })], Aa.prototype, "iconName", 2), ka([Ea({ type: Boolean })], Aa.prototype, "disabled", 2), ka([Ea({ attribute: "button-aria-label" })], Aa.prototype, "buttonAriaLabel", 2), ka([Ea()], Aa.prototype, "shape", 1), Aa = ka([Ca("nds-icon-button")], Aa);
3124
3124
  //#endregion
3125
- //#region ../players-shared/src/ui/zoom-compensation.ts
3126
- var ja = {
3127
- maxZoom: 2,
3128
- minCompensation: .25
3129
- };
3130
- function Ma(e, t) {
3131
- let n = e / t;
3132
- return Number.isFinite(n) && n > 0 ? n : 1;
3133
- }
3134
- function Na(e, t, n) {
3135
- return Math.max(n, Math.min(1, t / e));
3136
- }
3137
- //#endregion
3138
- //#region ../players-shared/src/ui/use-zoom-compensation.svelte.ts
3139
- function Pa(e) {
3140
- let { maxZoom: t, minCompensation: n } = e, r = /* @__PURE__ */ U(1), i = /* @__PURE__ */ U(1);
3141
- function a() {
3142
- let e = Ma(window.outerWidth, window.innerWidth);
3143
- W(i, e, !0), W(r, Na(e, t, n), !0);
3144
- }
3145
- return un(() => {
3146
- if (!(typeof window > "u")) return a(), window.addEventListener("resize", a), () => window.removeEventListener("resize", a);
3147
- }), {
3148
- get current() {
3149
- return Z(r);
3150
- },
3151
- get zoom() {
3152
- return Z(i);
3153
- }
3154
- };
3155
- }
3156
- //#endregion
3157
3125
  //#region ../players-shared/dist/i18n/language-tags.js
3158
- function Fa(e) {
3126
+ function ja(e) {
3159
3127
  return e ? e.trim().replace(/_/g, "-").split(/[.@]/)[0].toLowerCase() : "";
3160
3128
  }
3161
- function Ia(e) {
3162
- let t = Fa(e);
3129
+ function Ma(e) {
3130
+ let t = ja(e);
3163
3131
  if (!t) return [];
3164
3132
  let n = t.split("-"), r = [];
3165
3133
  for (let e = n.length; e > 0; e--) {
@@ -3168,15 +3136,15 @@ function Ia(e) {
3168
3136
  }
3169
3137
  return r;
3170
3138
  }
3171
- function La(e, t) {
3172
- for (let n of Ia(e)) {
3173
- let e = t.find((e) => Fa(e) === n);
3139
+ function Na(e, t) {
3140
+ for (let n of Ma(e)) {
3141
+ let e = t.find((e) => ja(e) === n);
3174
3142
  if (e != null) return e;
3175
3143
  }
3176
3144
  }
3177
3145
  //#endregion
3178
3146
  //#region ../players-shared/dist/i18n/messages/en-US.js
3179
- var Ra = {
3147
+ var Pa = {
3180
3148
  common: {
3181
3149
  close: "Close",
3182
3150
  cancel: "Cancel",
@@ -3238,7 +3206,9 @@ var Ra = {
3238
3206
  resizePassageAndMediaA11y: "Resize passage and media panels",
3239
3207
  assessment: {
3240
3208
  sectionPosition: "Section {position} of {total}",
3241
- noSections: "No sections"
3209
+ noSections: "No sections",
3210
+ loadFailed: "The assessment could not be loaded. Try again.",
3211
+ restoreFailed: "Your saved answers for this section could not be restored. Try again."
3242
3212
  },
3243
3213
  formative: {
3244
3214
  checkAnswer: "Check answer",
@@ -3675,7 +3645,7 @@ var Ra = {
3675
3645
  coordinatorUnavailable: "Toolkit coordinator is not available for text-to-speech updates."
3676
3646
  }
3677
3647
  }
3678
- }, za = "en-US", Ba = /* @__PURE__ */ new Set([
3648
+ }, Fa = "en-US", Ia = /* @__PURE__ */ new Set([
3679
3649
  "ar",
3680
3650
  "ckb",
3681
3651
  "dv",
@@ -3691,7 +3661,7 @@ var Ra = {
3691
3661
  "ug",
3692
3662
  "ur",
3693
3663
  "yi"
3694
- ]), Va = /* @__PURE__ */ new Set([
3664
+ ]), La = /* @__PURE__ */ new Set([
3695
3665
  "zero",
3696
3666
  "one",
3697
3667
  "two",
@@ -3699,20 +3669,20 @@ var Ra = {
3699
3669
  "many",
3700
3670
  "other"
3701
3671
  ]);
3702
- function Ha(e) {
3672
+ function Ra(e) {
3703
3673
  if (typeof e != "object" || !e) return !1;
3704
3674
  let t = Object.keys(e);
3705
- return t.length > 0 && t.every((e) => Va.has(e));
3675
+ return t.length > 0 && t.every((e) => La.has(e));
3706
3676
  }
3707
- function Ua(e) {
3677
+ function za(e) {
3708
3678
  try {
3709
3679
  let t = new Intl.Locale(e).textInfo;
3710
3680
  if (t?.direction === "rtl" || t?.direction === "ltr") return t.direction;
3711
3681
  } catch {}
3712
- let t = Fa(e).split("-")[0] ?? "";
3713
- return Ba.has(t) ? "rtl" : "ltr";
3682
+ let t = ja(e).split("-")[0] ?? "";
3683
+ return Ia.has(t) ? "rtl" : "ltr";
3714
3684
  }
3715
- var Wa = class e {
3685
+ var Ba = class e {
3716
3686
  static pluralRules = /* @__PURE__ */ new Map();
3717
3687
  locale;
3718
3688
  fallbackLocale;
@@ -3722,7 +3692,7 @@ var Wa = class e {
3722
3692
  listeners = /* @__PURE__ */ new Set();
3723
3693
  config;
3724
3694
  constructor(e = {}) {
3725
- this.config = { ...e }, this.fallbackLocale = Ga(e.fallbackLocale) || "en-US", this.catalogs = /* @__PURE__ */ new Map([[za, Ra]]), this.customMessages = { ...e.customMessages ?? {} }, this.loading = /* @__PURE__ */ new Map(), this.locale = this.resolveLocaleTag(e.locale) ?? "en-US";
3695
+ this.config = { ...e }, this.fallbackLocale = Va(e.fallbackLocale) || "en-US", this.catalogs = /* @__PURE__ */ new Map([[Fa, Pa]]), this.customMessages = { ...e.customMessages ?? {} }, this.loading = /* @__PURE__ */ new Map(), this.locale = this.resolveLocaleTag(e.locale) ?? "en-US";
3726
3696
  }
3727
3697
  async initialize(e) {
3728
3698
  if (this.config = {
@@ -3737,7 +3707,7 @@ var Wa = class e {
3737
3707
  async setLocale(e) {
3738
3708
  let t = this.resolveLocaleTag(e);
3739
3709
  if (!t) {
3740
- this.locale = Ga(e) || "en-US", this.notify();
3710
+ this.locale = Va(e) || "en-US", this.notify();
3741
3711
  return;
3742
3712
  }
3743
3713
  if (!this.catalogs.has(t)) {
@@ -3757,14 +3727,14 @@ var Wa = class e {
3757
3727
  }
3758
3728
  t(e, t) {
3759
3729
  let n = this.lookup(e);
3760
- return n === void 0 ? (this.config.onMissingKey?.(e, this.locale), e) : qa(n, t);
3730
+ return n === void 0 ? (this.config.onMissingKey?.(e, this.locale), e) : Ua(n, t);
3761
3731
  }
3762
3732
  plural(e, t) {
3763
3733
  let n = this.lookupNode(e);
3764
- return n === void 0 || !Ha(n) ? this.t(e, t) : qa(n[this.selectPluralCategory(t.count)] ?? n.other, t);
3734
+ return n === void 0 || !Ra(n) ? this.t(e, t) : Ua(n[this.selectPluralCategory(t.count)] ?? n.other, t);
3765
3735
  }
3766
3736
  getDirection() {
3767
- return Ua(this.locale);
3737
+ return za(this.locale);
3768
3738
  }
3769
3739
  getAvailableLocales() {
3770
3740
  return [.../* @__PURE__ */ new Set([
@@ -3786,11 +3756,11 @@ var Wa = class e {
3786
3756
  return this.lookup(e) !== void 0;
3787
3757
  }
3788
3758
  addCustomMessages(e, t) {
3789
- let n = Ga(e);
3790
- this.customMessages[n] = Ja(this.customMessages[n] ?? {}, t), this.notify();
3759
+ let n = Va(e);
3760
+ this.customMessages[n] = Wa(this.customMessages[n] ?? {}, t), this.notify();
3791
3761
  }
3792
3762
  withLocale(t) {
3793
- let n = this.resolveLocaleTag(t) ?? Ga(t);
3763
+ let n = this.resolveLocaleTag(t) ?? Va(t);
3794
3764
  if (n === this.locale) return this;
3795
3765
  let r = new e({
3796
3766
  ...this.config,
@@ -3802,14 +3772,14 @@ var Wa = class e {
3802
3772
  try {
3803
3773
  return new Intl.NumberFormat(this.locale, t).format(e);
3804
3774
  } catch {
3805
- return new Intl.NumberFormat(za, t).format(e);
3775
+ return new Intl.NumberFormat(Fa, t).format(e);
3806
3776
  }
3807
3777
  }
3808
3778
  formatDate(e, t) {
3809
3779
  try {
3810
3780
  return new Intl.DateTimeFormat(this.locale, t).format(e);
3811
3781
  } catch {
3812
- return new Intl.DateTimeFormat(za, t).format(e);
3782
+ return new Intl.DateTimeFormat(Fa, t).format(e);
3813
3783
  }
3814
3784
  }
3815
3785
  getBundle(e = this.locale) {
@@ -3819,15 +3789,15 @@ var Wa = class e {
3819
3789
  if (n) return {
3820
3790
  locale: t,
3821
3791
  translations: n,
3822
- direction: Ua(t)
3792
+ direction: za(t)
3823
3793
  };
3824
3794
  }
3825
3795
  resolveLocaleTag(e) {
3826
3796
  if (!e) return;
3827
- let t = this.getAvailableLocales(), n = La(e, t);
3797
+ let t = this.getAvailableLocales(), n = Na(e, t);
3828
3798
  if (n) return n;
3829
- let r = Fa(e).split("-")[0];
3830
- if (r) return t.find((e) => Fa(e).split("-")[0] === r);
3799
+ let r = ja(e).split("-")[0];
3800
+ if (r) return t.find((e) => ja(e).split("-")[0] === r);
3831
3801
  }
3832
3802
  async loadCatalog(e) {
3833
3803
  let t = this.config.loadCatalog;
@@ -3845,14 +3815,14 @@ var Wa = class e {
3845
3815
  this.catalogs.get(this.fallbackLocale)
3846
3816
  ];
3847
3817
  for (let n of t) {
3848
- let t = Ka(n, e);
3818
+ let t = Ha(n, e);
3849
3819
  if (t !== void 0) return t;
3850
3820
  }
3851
3821
  }
3852
3822
  lookup(e) {
3853
3823
  let t = this.lookupNode(e);
3854
3824
  if (typeof t == "string") return t;
3855
- if (t !== void 0 && Ha(t)) return t.other;
3825
+ if (t !== void 0 && Ra(t)) return t.other;
3856
3826
  }
3857
3827
  selectPluralCategory(t) {
3858
3828
  let n = e.pluralRules.get(this.locale);
@@ -3870,35 +3840,35 @@ var Wa = class e {
3870
3840
  for (let e of this.listeners) e();
3871
3841
  }
3872
3842
  };
3873
- function Ga(e) {
3843
+ function Va(e) {
3874
3844
  return e ? e.trim().replace(/_/g, "-") : "";
3875
3845
  }
3876
- function Ka(e, t) {
3846
+ function Ha(e, t) {
3877
3847
  if (!e) return;
3878
3848
  let n = e;
3879
3849
  for (let e of t.split(".")) if (typeof n != "object" || !n || (n = n[e], n === void 0)) return;
3880
3850
  return n;
3881
3851
  }
3882
- function qa(e, t) {
3852
+ function Ua(e, t) {
3883
3853
  return t ? e.replace(/\{(\w+)\}/g, (e, n) => {
3884
3854
  let r = t[n];
3885
3855
  return r == null ? e : String(r);
3886
3856
  }) : e;
3887
3857
  }
3888
- function Ja(e, t) {
3858
+ function Wa(e, t) {
3889
3859
  let n = { ...e };
3890
3860
  for (let [e, r] of Object.entries(t)) {
3891
3861
  let t = n[e];
3892
- n[e] = r && typeof r == "object" && t && typeof t == "object" ? Ja(t, r) : r;
3862
+ n[e] = r && typeof r == "object" && t && typeof t == "object" ? Wa(t, r) : r;
3893
3863
  }
3894
3864
  return n;
3895
3865
  }
3896
- var Ya;
3897
- function Xa() {
3898
- return Ya ||= new Wa(), Ya;
3866
+ var Ga;
3867
+ function Ka() {
3868
+ return Ga ||= new Ba(), Ga;
3899
3869
  }
3900
- function Za(e) {
3901
- let t = e?.i18n ?? Xa();
3870
+ function qa(e) {
3871
+ let t = e?.i18n ?? Ka();
3902
3872
  return {
3903
3873
  getLocale: () => t.getLocale(),
3904
3874
  setLocale: (e) => t.setLocale(e),
@@ -3911,12 +3881,12 @@ function Za(e) {
3911
3881
  }
3912
3882
  //#endregion
3913
3883
  //#region tool-tts-inline.svelte
3914
- var Qa = /* @__PURE__ */ hr("<nds-icon-button></nds-icon-button>", 2), $a = /* @__PURE__ */ hr("<button type=\"button\"><i aria-hidden=\"true\"></i></button>"), eo = /* @__PURE__ */ hr("<span class=\"pie-tool-tts-inline__trigger-zoom svelte-18mzc0g\"><!></span>"), to = /* @__PURE__ */ hr("<button type=\"button\" role=\"radio\" data-pie-tts-control=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--speed svelte-18mzc0g\"><span class=\"pie-tool-tts-inline__speed-label svelte-18mzc0g\"> </span></button>"), no = /* @__PURE__ */ hr("<div role=\"radiogroup\"></div>"), ro = /* @__PURE__ */ hr("<div role=\"toolbar\" tabindex=\"-1\"><!> <button type=\"button\" data-pie-tts-control=\"\" data-pie-tts-media=\"\" data-pie-tts-seek=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-18mzc0g\"><i class=\"fa-solid fa-backward pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"></i></button> <button type=\"button\" data-pie-tts-control=\"\" data-pie-tts-media=\"\" data-pie-tts-seek=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-18mzc0g\"><i class=\"fa-solid fa-forward pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"></i></button> <button type=\"button\" data-pie-tts-control=\"\" data-pie-tts-media=\"\" data-pie-tts-stop=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-18mzc0g\"><i class=\"fa-solid fa-stop pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"></i></button></div>"), io = /* @__PURE__ */ hr("<!> <!>", 1), ao = /* @__PURE__ */ hr("<div><!> <div class=\"pie-sr-only svelte-18mzc0g\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\"> </div></div>"), oo = {
3884
+ var Ja = /* @__PURE__ */ hr("<nds-icon-button></nds-icon-button>", 2), Ya = /* @__PURE__ */ hr("<button type=\"button\"><i aria-hidden=\"true\"></i></button>"), Xa = /* @__PURE__ */ hr("<span class=\"pie-tool-tts-inline__trigger-zoom svelte-18mzc0g\"><!></span>"), Za = /* @__PURE__ */ hr("<button type=\"button\" role=\"radio\" data-pie-tts-control=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--speed svelte-18mzc0g\"><span class=\"pie-tool-tts-inline__speed-label svelte-18mzc0g\"> </span></button>"), Qa = /* @__PURE__ */ hr("<div role=\"radiogroup\"></div>"), $a = /* @__PURE__ */ hr("<div role=\"toolbar\" tabindex=\"-1\"><!> <button type=\"button\" data-pie-tts-control=\"\" data-pie-tts-media=\"\" data-pie-tts-seek=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-18mzc0g\"><i class=\"fa-solid fa-backward pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"></i></button> <button type=\"button\" data-pie-tts-control=\"\" data-pie-tts-media=\"\" data-pie-tts-seek=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-18mzc0g\"><i class=\"fa-solid fa-forward pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"></i></button> <button type=\"button\" data-pie-tts-control=\"\" data-pie-tts-media=\"\" data-pie-tts-stop=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-18mzc0g\"><i class=\"fa-solid fa-stop pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"></i></button></div>"), eo = /* @__PURE__ */ hr("<!> <!>", 1), to = /* @__PURE__ */ hr("<div><!> <div class=\"pie-sr-only svelte-18mzc0g\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\"> </div></div>"), no = {
3915
3885
  hash: "svelte-18mzc0g",
3916
- code: "\n /* Lay the component out as a flex box, not the default inline custom element.\n As `display: inline` the host is blockified into a block flex item that\n wraps its content in a line box, so the inline-flex root sits on the text\n baseline — a zoom-shrunk play button then rides that baseline and drifts\n LOW versus the calculator button (whose flex-item wrapper has no line box).\n inline-flex + center removes the line box and keeps the trigger centered. */:host {display:inline-flex;align-items:center;}.pie-tool-tts-inline.svelte-18mzc0g {position:relative;display:inline-flex;align-items:center;\n /* Gap between trigger and panel lives outside the zoomed buttons, so it\n is compensated separately or it keeps growing with browser zoom. */gap:calc(0.5rem * var(--pie-tts-zoom-comp, 1));}.pie-tool-tts-inline--controls-row.svelte-18mzc0g {width:100%;justify-content:flex-end;}\n\n /* The play/pause trigger and the \"more\" overflow control are now\n <nds-icon-button> hosts; the NDS component owns their shape, colours,\n hover/active/focus states, and the filled active (`variant=\"primary\"`)\n appearance. This class only drives the host's size via NDS's own size\n custom properties (see the size variants below), so the light-DOM inner\n button matches the toolbar's md/sm/lg dimensions. */\n /* Freeze the play/pause button at its 200%-zoom appearance (factor is 1 at\n zoom <= 200%, so behaviour below that is unchanged). The zoom goes on this\n wrapper, not the nds-icon-button host — see the snippet. */.pie-tool-tts-inline__trigger-zoom.svelte-18mzc0g {display:inline-flex;zoom:var(--pie-tts-zoom-comp, 1);}.pie-tool-tts-inline__trigger.svelte-18mzc0g {display:inline-flex;\n /* Outer button size follows the toolbar size variants (below); the glyph\n keeps the NDS-native icon size (size=\"small\") so it isn't oversized. */--height-32: 2rem;\n /* Host-settable accent: the NDS tertiary glyph colour derives from\n --color-interactive-blue, remapped here to the same chain the panel\n paints with. It defaults through --pie-button-color so the glyph follows\n the active theme; the literal is the no-theme last resort. */--color-interactive-blue: var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));\n /* NDS palette bridge — keep in sync with the copies in\n assessment-toolkit ItemToolBar and section-player SectionItemsPane\n (asserted by scripts/check-theme-tokens.mjs). The vendored button\n paints its fill, its on-accent glyph, its hover ring and its focus\n ring from the NDS design-system palette, which no PIE theme sets, so\n a tertiary trigger kept a #f3f5f7 pill on every page — and once the\n glyph followed the theme, a light glyph landed on that light pill. */--color-new-gray: var(--pie-background-dark, #f3f5f7);--color-primary-white: var(--pie-white, #ffffff);--color-primary-black: var(--pie-text, #000000);--color-focus-blue: var(--pie-button-focus-outline, #2b87ff);}\n\n /* Non-NDS fallback trigger (host opted out of nds-icon-button). Inherits\n the plain `__control` box; only override to keep the round trigger\n shape and the themeable accent colour on its glyph. */.pie-tool-tts-inline__trigger--plain.svelte-18mzc0g {border-radius:50%;color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));}\n\n /* Active/open trigger hooks (PIE-727).\n ---------------------------------------------------------------------------\n README documents --pie-tool-trigger-active-background / -color /\n -border-color as the supported way to style this trigger while its panel is\n open, instead of overriding broad tokens like --pie-primary. The component\n had stopped honouring all three, so a host following the docs got nothing.\n These rules restore them, matching how tool-calculator-inline-desmos wires\n the same three hooks.\n ---------------------------------------------------------------------------\n Every fallback is the value this element already resolves to when the hook\n is unset, so adding these rules changes nothing by default. That is\n deliberate: unlike the calculator, this trigger has never had a filled\n active look, and introducing one here would restyle the control for every\n host. Hosts opt in by setting a hook; nobody is opted in by us.\n\n Keyed off [aria-expanded='true'], which the markup already maintains, so\n there is no new state to keep in sync. */.pie-tool-tts-inline__trigger--plain[aria-expanded=\"true\"].svelte-18mzc0g {\n /* All three fallbacks are `__control`'s chains, including the glyph colour.\n Not `--plain`'s: that rule also declares `color`, but `__control` repeats\n it further down the sheet at equal specificity, so `__control` wins and\n `--plain`'s accent declaration never applies. Measured in Chromium: the\n plain trigger's glyph is --pie-button-color either way. */background:var(\n --pie-tool-trigger-active-background,\n var(--pie-button-background-color, var(--pie-button-bg, var(--pie-background, #fff)))\n );color:var(\n --pie-tool-trigger-active-color,\n var(--pie-button-color, var(--pie-text, #222))\n );border-color:var(\n --pie-tool-trigger-active-border-color,\n var(--pie-button-border-color, var(--pie-button-border, var(--pie-border, #c6c6c6)))\n );}\n\n /* NDS variant: its glyph colour derives from --color-interactive-blue, so the\n accent is remapped rather than painted, exactly as the base rule does. Only\n the foreground hook applies -- background and border are owned by the NDS\n button's own internals, and setting them on this host element would paint a\n box the tertiary button does not currently have. */.pie-tool-tts-inline__trigger:not(.pie-tool-tts-inline__trigger--plain)[aria-expanded=\"true\"].svelte-18mzc0g {--color-interactive-blue: var(\n --pie-tool-trigger-active-color,\n var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)))\n );}.pie-tool-tts-inline__control.svelte-18mzc0g:hover:not(:disabled) {background-color:var(--pie-button-hover-background-color, var(--pie-button-hover-bg, var(--pie-secondary-background, #f2f4f8)));transform:translateY(-1px);box-shadow:0 2px 6px color-mix(in srgb, var(--pie-shadow, #000) 14%, transparent);}.pie-tool-tts-inline__control.svelte-18mzc0g:active:not(:disabled) {transform:translateY(0);box-shadow:none;}.pie-tool-tts-inline__control.svelte-18mzc0g:focus-visible {outline:2px solid var(--pie-focus-outline, var(--pie-button-focus-outline, var(--pie-primary, #0066cc)));outline-offset:2px;box-shadow:0 0 0 4px color-mix(in srgb, var(--pie-primary, #0066cc) 22%, transparent);}\n\n /* Activating play/pause deliberately KEEPS focus on the trigger while the\n controls panel opens beside it, so where focus sits has to stay visible —\n including after a pointer activation, where the browser suppresses\n :focus-visible and would paint no ring at all. Scoped to\n `:focus:not(:focus-visible)` so it only fills that gap: genuine keyboard\n focus keeps whatever the shared `__control` rule (plain trigger) or the NDS\n component (nds-icon-button) already paints, untouched.\n Two selectors because the two trigger variants focus different nodes: the\n plain fallback IS the button, while <nds-icon-button> holds focus on an\n inner light-DOM <button> that Lit creates — so it carries no Svelte scoping\n class and must be reached with :global(). */.pie-tool-tts-inline__trigger.svelte-18mzc0g:focus:not(:focus-visible),\n .pie-tool-tts-inline__trigger.svelte-18mzc0g button:focus:not(:focus-visible) {outline:2px solid var(--pie-focus-outline, var(--pie-button-focus-outline, var(--pie-primary, #0066cc)));outline-offset:2px;}.pie-tool-tts-inline__panel.svelte-18mzc0g {display:inline-flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;\n /* Buttons inside are zoom-capped (see __control); compensate the panel's\n own spacing/height with the same factor so its chrome doesn't keep\n growing around the frozen buttons past 200%. */gap:calc(0.25rem * var(--pie-tts-zoom-comp, 1));box-sizing:border-box;min-height:calc(var(--pie-tts-controls-row-height, 2.875rem) * var(--pie-tts-zoom-comp, 1));padding:calc(0.25rem * var(--pie-tts-zoom-comp, 1)) calc(0.5rem * var(--pie-tts-zoom-comp, 1));background:var(--pie-surface, var(--pie-background, #fff));border:1px solid var(--pie-border, #d0d0d0);border-radius:0.5rem;}.pie-tool-tts-inline__panel--floating.svelte-18mzc0g {position:absolute;z-index:2;top:50%;right:0;left:auto;}.pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g {\n /* Fixed so it escapes overflow-clipping ancestors; top / right /\n max-width are set inline by measureLeftAlignedOverlay(). */position:fixed;}.pie-tool-tts-inline__panel--row.svelte-18mzc0g {position:absolute;z-index:2;top:100%;right:0;left:auto;}.pie-tool-tts-inline__control.svelte-18mzc0g {display:inline-flex;align-items:center;justify-content:center;\n /* Cap each control (rewind / fast-forward / stop / speed) at its\n 200%-zoom size; matches the trigger and the passage/questions toggle. */zoom:var(--pie-tts-zoom-comp, 1);width:2rem;height:2rem;border:1px solid var(--pie-button-border-color, var(--pie-button-border, var(--pie-border, #c6c6c6)));border-radius:0.25rem;background:var(--pie-button-background-color, var(--pie-button-bg, var(--pie-background, #fff)));color:var(--pie-button-color, var(--pie-text, #222));cursor:pointer;transition:background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;}\n\n /* Icon-only panel controls (rewind / fast-forward / stop) are round to match\n the circular NDS trigger; the pill-shaped speed radios keep square corners. */.pie-tool-tts-inline__control--secondary.svelte-18mzc0g {border-radius:50%;}.pie-tool-tts-inline__speed-group.svelte-18mzc0g {display:inline-flex;flex-wrap:wrap;align-items:center;gap:calc(0.25rem * var(--pie-tts-zoom-comp, 1));}.pie-tool-tts-inline__control--speed.svelte-18mzc0g {width:auto;height:2rem;padding:0;font-size:1rem;font-weight:500;letter-spacing:0;white-space:nowrap;}.pie-tool-tts-inline__control--speed[aria-checked='true'].svelte-18mzc0g {border-color:var(--pie-primary, #1565c0);background:color-mix(in srgb, var(--pie-primary, #1565c0) 14%, var(--pie-background, #fff));color:var(--pie-primary, #1565c0);font-weight:600;}.pie-tool-tts-inline__speed-label.svelte-18mzc0g {line-height:1.2;\n /* Render speed labels lowercase regardless of the configured casing.\n Applied to the visible text only; the radio's accessible name comes\n from aria-label (option.ariaLabel), so screen readers still hear the\n canonical \"Slow speed\" / \"Normal speed\" / \"Fast speed\". */text-transform:lowercase;}\n\n /* Reserve the bold (selected) width — stacked popper only. Switching the\n selected speed there would otherwise change the label width and resize the\n fit-content card. The ghost is a zero-height, hidden grid row whose bold text\n sets the column width. The inline (roomy) row keeps its natural sizing. */.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g .pie-tool-tts-inline__speed-label:where(.svelte-18mzc0g) {display:inline-grid;justify-items:center;}.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g .pie-tool-tts-inline__speed-label:where(.svelte-18mzc0g)::before {content:attr(data-label);height:0;overflow:hidden;font-weight:700;visibility:hidden;}.pie-tool-tts-inline__control.svelte-18mzc0g:disabled {cursor:not-allowed;opacity:0.6;}\n\n /* ── Overlay layouts (floating-overlay + left-aligned) ──────────────────────\n The Knowledge-Check design keeps the controls on the surrounding\n Question/Passage header: a low-chrome card, icon-only media glyphs, and speed\n radios as plain text with the selected one lifted into a chip.\n\n Shape comes from that design; colour comes from the theme. The overlay used\n to paint literals (#146eb3 glyphs on a #fff card with a #f3f5f7 chip), which\n left a blue-on-white panel floating over every non-default theme — a DaisyUI\n `valentine` page rendered a pink player with a blue TTS panel. Each surface\n now defaults through a canonical token and keeps its literal only as the\n no-theme last resort.\n\n Foregrounds resolve through --pie-button-color (DaisyUI base-content), the\n one family whose contrast against the card is guaranteed in every shipped\n theme: --pie-primary and --pie-tertiary are `direct` mappings of DaisyUI\n slots chosen to pair with their own -content colour, so an accent glyph taken\n from either drops to 1.37:1 on `pastel` and 11 of 35 themes fall under 3:1.\n Selection is signalled by the chip and the bolder weight rather than by hue.\n\n Host knobs, all unchanged: --pie-tts-button-color (accent),\n --pie-tts-inline-muted-color, --pie-tts-selected-bg,\n --pie-selected-button-background/-border, --pie-tts-menu-shadow. */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g,\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g {min-height:0;height:calc(3rem * var(--pie-tts-zoom-comp, 1)); /* Figma: 48px */justify-content:center;gap:calc(0.375rem * var(--pie-tts-zoom-comp, 1));\n /* --pie-white is the surface role every built-in sets to its page colour\n (DaisyUI base-100; #000 under the dark theme). --pie-background is the\n page token, which a host may point at its own backdrop, and a floating\n card needs a surface it owns. */background:var(--pie-tts-selected-bg, var(--pie-surface, var(--pie-white, #fff)));\n /* The Figma card is shadow-only, but the shadow is black: once the card\n takes a dark theme's surface it has no visible edge left. A hairline\n derived from the text colour reads on either. Not --pie-border: a host\n that wants borderless controls sets that to transparent, which is\n exactly the case where the shadow is the only edge. --pie-tts-card-border\n is the opt-out (`transparent` restores the shadow-only card). */border:1px solid var(--pie-tts-card-border, color-mix(in srgb, var(--pie-text, #000) 15%, transparent));border-radius:0.5rem; /* Figma: --radius-8 (8px) */box-shadow:var(--pie-tts-menu-shadow, 0 1px 5px 0 rgba(0, 0, 0, 0.3));}\n\n /* Compact: the popper card holds the media row (rewind / fast-forward / stop)\n on top and the speed radios stacked below. The white card bg + shadow come\n from the shared overlay rule above; this only tunes the compact layout. */.pie-tool-tts-inline__panel--compact.svelte-18mzc0g {gap:0;width:fit-content;min-width:calc(7.5rem * var(--pie-tts-zoom-comp, 1)); /* ~120px floor; grows with content beyond that */height:auto; /* stacked popper grows past the 48px roomy toolbar height */padding:0;}\n\n /* Media controls (rewind / fast-forward / stop): accent glyph, no chrome. */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--secondary:where(.svelte-18mzc0g),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--secondary:where(.svelte-18mzc0g) {border:0;background:transparent;color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));}.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--secondary:where(.svelte-18mzc0g):hover:not(:disabled),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--secondary:where(.svelte-18mzc0g):hover:not(:disabled) {transform:none;box-shadow:none;background:color-mix(in srgb, var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222))) 12%, transparent);}\n\n /* Speed radios (inline / roomy): plain muted text with breathing room between\n options — min-width + side padding, matching the original inline spacing. */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g) {min-width:2.75rem;padding:0 0.625rem;border:1px solid transparent;background:transparent;box-shadow:none;\n /* Unselected labels are text on the card, so they take the full text colour\n rather than a dimmed mix: DaisyUI only guarantees base-content against the\n surface, and `valentine` is 5.46:1 there — a 10% dim already lands under\n 4.5:1. Hosts that want them dimmer set --pie-tts-inline-muted-color. */color:var(--pie-tts-inline-muted-color, var(--pie-button-color, var(--pie-text, #5b6b73)));font-size:1rem;}.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g):hover:not(:disabled),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g):hover:not(:disabled) {transform:none;box-shadow:none;background:color-mix(in srgb, var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222))) 8%, transparent);}\n\n /* Selected inline radio: \"chip\" treatment. Placed after the muted rule so it\n wins at equal specificity. The fill is --pie-button-active-bg, which the\n DaisyUI mapping already tunes (base-300 at 70% toward base-100) to hold\n base-content text at 4.5:1 in every shipped theme. */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-18mzc0g),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-18mzc0g) {border:1px solid var(--pie-selected-button-border, var(--pie-button-border, var(--pie-border, #d9dada)));border-radius:6px;background:var(--pie-selected-button-background, var(--pie-button-active-bg, #f3f5f7));color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));font-weight:600;}\n\n /* ── Compact left-aligned overlay ───────────────────────────────────────────\n Inside the popper card the media controls occupy the top row and the speed\n radios drop onto their own full-width line below, stacked vertically.\n `order` puts the speeds after the media buttons even though they are first in\n the DOM; flex-basis:100% forces the wrap so media occupy the top line. */.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g {order:1;flex-basis:100%;flex-direction:column;align-items:center;gap:0.125rem;}\n\n /* In the card every option reads in the accent colour; the selected one is\n lifted into a bordered chip. Options size to their content and centre (no\n full-width stretch), keeping the popper compact. */.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g) {justify-content:center;width:auto;min-width:0;height:auto;padding:0.25rem 0.75rem;border:1px solid transparent;border-radius:0.5rem;background:transparent;box-shadow:none;color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));font-size:0.75rem;font-weight:500;}.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-18mzc0g) {border:1px solid var(--pie-selected-button-border, var(--pie-button-border, var(--pie-border, #d9dada)));border-radius:6px;background:var(--pie-selected-button-background, var(--pie-button-active-bg, #f3f5f7));color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));font-weight:700;}\n\n /* Trigger size variants set the NDS outer size (--height-32); the glyph keeps\n the NDS-native icon size (host renders size=\"small\"). */.pie-tool-tts-inline__trigger--sm.svelte-18mzc0g {--height-32: 1.75rem;}.pie-tool-tts-inline__trigger--md.svelte-18mzc0g {--height-32: 2rem;}.pie-tool-tts-inline__trigger--lg.svelte-18mzc0g {--height-32: 2.5rem;}.pie-tool-tts-inline__icon.svelte-18mzc0g {font-size:1rem;line-height:1;color:currentColor;}\n\n @media (max-width: 839px) {.pie-tool-tts-inline.svelte-18mzc0g {gap:0.375rem;}.pie-tool-tts-inline__panel--compact.svelte-18mzc0g {padding:0;}\n\n /* NOTE: the trigger's --height-32 is intentionally NOT shrunk here. Browser\n zoom narrows the CSS viewport enough to trip this breakpoint, which would\n drop the play button to 1.75rem while the calculator button (furnished by\n the toolbar) stays 2rem, mismatching them under zoom. Size is governed by\n the zoom-compensation cap instead. */.pie-tool-tts-inline__control.svelte-18mzc0g {width:1.75rem;height:1.75rem;}.pie-tool-tts-inline__control.svelte-18mzc0g .pie-tool-tts-inline__icon:where(.svelte-18mzc0g) {font-size:1rem;}.pie-tool-tts-inline__control--speed.svelte-18mzc0g {width:auto;min-width:2.5rem;height:1.75rem;padding:0 0.5rem;}\n\n /* drop font-size on smaller screens */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g) {font-size:0.75rem;}\n }.pie-sr-only.svelte-18mzc0g {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;}\n\n @media (prefers-reduced-motion: reduce) {.pie-tool-tts-inline__control.svelte-18mzc0g {transition:none !important;}\n }"
3886
+ code: "\n /* Lay the component out as a flex box, not the default inline custom element.\n As `display: inline` the host is blockified into a block flex item that\n wraps its content in a line box, so the inline-flex root sits on the text\n baseline — a play button then rides that baseline and drifts\n LOW versus the calculator button (whose flex-item wrapper has no line box).\n inline-flex + center removes the line box and keeps the trigger centered. */:host {display:inline-flex;align-items:center;}.pie-tool-tts-inline.svelte-18mzc0g {position:relative;display:inline-flex;align-items:center;gap:0.5rem;}.pie-tool-tts-inline--controls-row.svelte-18mzc0g {width:100%;justify-content:flex-end;}\n\n /* The play/pause trigger and the \"more\" overflow control are now\n <nds-icon-button> hosts; the NDS component owns their shape, colours,\n hover/active/focus states, and the filled active (`variant=\"primary\"`)\n appearance. This class only drives the host's size via NDS's own size\n custom properties (see the size variants below), so the light-DOM inner\n button matches the toolbar's md/sm/lg dimensions. */.pie-tool-tts-inline__trigger-zoom.svelte-18mzc0g {display:inline-flex;}.pie-tool-tts-inline__trigger.svelte-18mzc0g {display:inline-flex;\n /* Outer button size follows the toolbar size variants (below); the glyph\n keeps the NDS-native icon size (size=\"small\") so it isn't oversized. */--height-32: 2rem;\n /* Host-settable accent: the NDS tertiary glyph colour derives from\n --color-interactive-blue, remapped here to the same chain the panel\n paints with. It defaults through --pie-button-color so the glyph follows\n the active theme; the literal is the no-theme last resort. */--color-interactive-blue: var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));\n /* NDS palette bridge — keep in sync with the copies in\n assessment-toolkit ItemToolBar and section-player SectionItemsPane\n (asserted by scripts/check-theme-tokens.mjs). The vendored button\n paints its fill, its on-accent glyph, its hover ring and its focus\n ring from the NDS design-system palette, which no PIE theme sets, so\n a tertiary trigger kept a #f3f5f7 pill on every page — and once the\n glyph followed the theme, a light glyph landed on that light pill. */--color-new-gray: var(--pie-background-dark, #f3f5f7);--color-primary-white: var(--pie-white, #ffffff);--color-primary-black: var(--pie-text, #000000);--color-focus-blue: var(--pie-button-focus-outline, #2b87ff);}\n\n /* Non-NDS fallback trigger (host opted out of nds-icon-button). Inherits\n the plain `__control` box; only override to keep the round trigger\n shape and the themeable accent colour on its glyph. */.pie-tool-tts-inline__trigger--plain.svelte-18mzc0g {border-radius:50%;color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));}\n\n /* Active/open trigger hooks (PIE-727).\n ---------------------------------------------------------------------------\n README documents --pie-tool-trigger-active-background / -color /\n -border-color as the supported way to style this trigger while its panel is\n open, instead of overriding broad tokens like --pie-primary. The component\n had stopped honouring all three, so a host following the docs got nothing.\n These rules restore them, matching how tool-calculator-inline-desmos wires\n the same three hooks.\n ---------------------------------------------------------------------------\n Every fallback is the value this element already resolves to when the hook\n is unset, so adding these rules changes nothing by default. That is\n deliberate: unlike the calculator, this trigger has never had a filled\n active look, and introducing one here would restyle the control for every\n host. Hosts opt in by setting a hook; nobody is opted in by us.\n\n Keyed off [aria-expanded='true'], which the markup already maintains, so\n there is no new state to keep in sync. */.pie-tool-tts-inline__trigger--plain[aria-expanded=\"true\"].svelte-18mzc0g {\n /* All three fallbacks are `__control`'s chains, including the glyph colour.\n Not `--plain`'s: that rule also declares `color`, but `__control` repeats\n it further down the sheet at equal specificity, so `__control` wins and\n `--plain`'s accent declaration never applies. Measured in Chromium: the\n plain trigger's glyph is --pie-button-color either way. */background:var(\n --pie-tool-trigger-active-background,\n var(--pie-button-background-color, var(--pie-button-bg, var(--pie-background, #fff)))\n );color:var(\n --pie-tool-trigger-active-color,\n var(--pie-button-color, var(--pie-text, #222))\n );border-color:var(\n --pie-tool-trigger-active-border-color,\n var(--pie-button-border-color, var(--pie-button-border, var(--pie-border, #c6c6c6)))\n );}\n\n /* NDS variant: its glyph colour derives from --color-interactive-blue, so the\n accent is remapped rather than painted, exactly as the base rule does. Only\n the foreground hook applies -- background and border are owned by the NDS\n button's own internals, and setting them on this host element would paint a\n box the tertiary button does not currently have. */.pie-tool-tts-inline__trigger:not(.pie-tool-tts-inline__trigger--plain)[aria-expanded=\"true\"].svelte-18mzc0g {--color-interactive-blue: var(\n --pie-tool-trigger-active-color,\n var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)))\n );}.pie-tool-tts-inline__control.svelte-18mzc0g:hover:not(:disabled) {background-color:var(--pie-button-hover-background-color, var(--pie-button-hover-bg, var(--pie-secondary-background, #f2f4f8)));transform:translateY(-1px);box-shadow:0 2px 6px color-mix(in srgb, var(--pie-shadow, #000) 14%, transparent);}.pie-tool-tts-inline__control.svelte-18mzc0g:active:not(:disabled) {transform:translateY(0);box-shadow:none;}.pie-tool-tts-inline__control.svelte-18mzc0g:focus-visible {outline:2px solid var(--pie-focus-outline, var(--pie-button-focus-outline, var(--pie-primary, #0066cc)));outline-offset:2px;box-shadow:0 0 0 4px color-mix(in srgb, var(--pie-primary, #0066cc) 22%, transparent);}\n\n /* Activating play/pause deliberately KEEPS focus on the trigger while the\n controls panel opens beside it, so where focus sits has to stay visible —\n including after a pointer activation, where the browser suppresses\n :focus-visible and would paint no ring at all. Scoped to\n `:focus:not(:focus-visible)` so it only fills that gap: genuine keyboard\n focus keeps whatever the shared `__control` rule (plain trigger) or the NDS\n component (nds-icon-button) already paints, untouched.\n Two selectors because the two trigger variants focus different nodes: the\n plain fallback IS the button, while <nds-icon-button> holds focus on an\n inner light-DOM <button> that Lit creates — so it carries no Svelte scoping\n class and must be reached with :global(). */.pie-tool-tts-inline__trigger.svelte-18mzc0g:focus:not(:focus-visible),\n .pie-tool-tts-inline__trigger.svelte-18mzc0g button:focus:not(:focus-visible) {outline:2px solid var(--pie-focus-outline, var(--pie-button-focus-outline, var(--pie-primary, #0066cc)));outline-offset:2px;}.pie-tool-tts-inline__panel.svelte-18mzc0g {display:inline-flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:0.25rem;box-sizing:border-box;min-height:var(--pie-tts-controls-row-height, 2.875rem);padding:0.25rem 0.5rem;background:var(--pie-surface, var(--pie-background, #fff));border:1px solid var(--pie-border, #d0d0d0);border-radius:0.5rem;}.pie-tool-tts-inline__panel--floating.svelte-18mzc0g {position:absolute;z-index:2;top:50%;right:0;left:auto;}.pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g {\n /* Fixed so it escapes overflow-clipping ancestors; top / right /\n max-width are set inline by measureLeftAlignedOverlay(). */position:fixed;}.pie-tool-tts-inline__panel--row.svelte-18mzc0g {position:absolute;z-index:2;top:100%;right:0;left:auto;}.pie-tool-tts-inline__control.svelte-18mzc0g {display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:1px solid var(--pie-button-border-color, var(--pie-button-border, var(--pie-border, #c6c6c6)));border-radius:0.25rem;background:var(--pie-button-background-color, var(--pie-button-bg, var(--pie-background, #fff)));color:var(--pie-button-color, var(--pie-text, #222));cursor:pointer;transition:background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;}\n\n /* Icon-only panel controls (rewind / fast-forward / stop) are round to match\n the circular NDS trigger; the pill-shaped speed radios keep square corners. */.pie-tool-tts-inline__control--secondary.svelte-18mzc0g {border-radius:50%;}.pie-tool-tts-inline__speed-group.svelte-18mzc0g {display:inline-flex;flex-wrap:wrap;align-items:center;gap:0.25rem;}.pie-tool-tts-inline__control--speed.svelte-18mzc0g {width:auto;height:2rem;padding:0;font-size:1rem;font-weight:500;letter-spacing:0;white-space:nowrap;}.pie-tool-tts-inline__control--speed[aria-checked='true'].svelte-18mzc0g {border-color:var(--pie-primary, #1565c0);background:color-mix(in srgb, var(--pie-primary, #1565c0) 14%, var(--pie-background, #fff));color:var(--pie-primary, #1565c0);font-weight:600;}.pie-tool-tts-inline__speed-label.svelte-18mzc0g {line-height:1.2;\n /* Render speed labels lowercase regardless of the configured casing.\n Applied to the visible text only; the radio's accessible name comes\n from aria-label (option.ariaLabel), so screen readers still hear the\n canonical \"Slow speed\" / \"Normal speed\" / \"Fast speed\". */text-transform:lowercase;}\n\n /* Reserve the bold (selected) width — stacked popper only. Switching the\n selected speed there would otherwise change the label width and resize the\n fit-content card. The ghost is a zero-height, hidden grid row whose bold text\n sets the column width. The inline (roomy) row keeps its natural sizing. */.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g .pie-tool-tts-inline__speed-label:where(.svelte-18mzc0g) {display:inline-grid;justify-items:center;}.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g .pie-tool-tts-inline__speed-label:where(.svelte-18mzc0g)::before {content:attr(data-label);height:0;overflow:hidden;font-weight:700;visibility:hidden;}.pie-tool-tts-inline__control.svelte-18mzc0g:disabled {cursor:not-allowed;opacity:0.6;}\n\n /* ── Overlay layouts (floating-overlay + left-aligned) ──────────────────────\n The Knowledge-Check design keeps the controls on the surrounding\n Question/Passage header: a low-chrome card, icon-only media glyphs, and speed\n radios as plain text with the selected one lifted into a chip.\n\n Shape comes from that design; colour comes from the theme. The overlay used\n to paint literals (#146eb3 glyphs on a #fff card with a #f3f5f7 chip), which\n left a blue-on-white panel floating over every non-default theme — a DaisyUI\n `valentine` page rendered a pink player with a blue TTS panel. Each surface\n now defaults through a canonical token and keeps its literal only as the\n no-theme last resort.\n\n Foregrounds resolve through --pie-button-color (DaisyUI base-content), the\n one family whose contrast against the card is guaranteed in every shipped\n theme: --pie-primary and --pie-tertiary are `direct` mappings of DaisyUI\n slots chosen to pair with their own -content colour, so an accent glyph taken\n from either drops to 1.37:1 on `pastel` and 11 of 35 themes fall under 3:1.\n Selection is signalled by the chip and the bolder weight rather than by hue.\n\n Host knobs, all unchanged: --pie-tts-button-color (accent),\n --pie-tts-inline-muted-color, --pie-tts-selected-bg,\n --pie-selected-button-background/-border, --pie-tts-menu-shadow. */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g,\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g {min-height:0;height:3rem; /* Figma: 48px */justify-content:center;gap:0.375rem;\n /* The raised surface is certified with control text and focus rings.\n --pie-white remains the fallback for hosts with no surface token. */background:var(--pie-tts-selected-bg, var(--pie-surface, var(--pie-white, #fff)));\n /* The Figma card is shadow-only, but the shadow is black: once the card\n takes a dark theme's surface it has no visible edge left. A hairline\n derived from the text colour reads on either. Not --pie-border: a host\n that wants borderless controls sets that to transparent, which is\n exactly the case where the shadow is the only edge. --pie-tts-card-border\n is the opt-out (`transparent` restores the shadow-only card). */border:1px solid var(--pie-tts-card-border, color-mix(in srgb, var(--pie-text, #000) 15%, transparent));border-radius:0.5rem; /* Figma: --radius-8 (8px) */box-shadow:var(--pie-tts-menu-shadow, 0 1px 5px 0 rgba(0, 0, 0, 0.3));}\n\n /* Compact: the popper card holds the media row (rewind / fast-forward / stop)\n on top and the speed radios stacked below. The white card bg + shadow come\n from the shared overlay rule above; this only tunes the compact layout. */.pie-tool-tts-inline__panel--compact.svelte-18mzc0g {gap:0;width:fit-content;min-width:7.5rem; /* ~120px floor; grows with content beyond that */height:auto; /* stacked popper grows past the 48px roomy toolbar height */padding:0;}\n\n /* Media controls (rewind / fast-forward / stop): accent glyph, no chrome. */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--secondary:where(.svelte-18mzc0g),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--secondary:where(.svelte-18mzc0g) {border:0;background:transparent;color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));}.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--secondary:where(.svelte-18mzc0g):hover:not(:disabled),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--secondary:where(.svelte-18mzc0g):hover:not(:disabled) {transform:none;box-shadow:none;background:color-mix(in srgb, var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222))) 12%, transparent);}\n\n /* Speed radios (inline / roomy): plain muted text with breathing room between\n options — min-width + side padding, matching the original inline spacing. */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g) {min-width:2.75rem;padding:0 0.625rem;border:1px solid transparent;background:transparent;box-shadow:none;\n /* Unselected labels are text on the card, so they take the full text colour\n rather than a dimmed mix: the raised surface has little contrast margin\n in `valentine`. Hosts that want them dimmer set --pie-tts-inline-muted-color. */color:var(--pie-tts-inline-muted-color, var(--pie-button-color, var(--pie-text, #5b6b73)));font-size:1rem;}.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g):hover:not(:disabled),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g):hover:not(:disabled) {transform:none;box-shadow:none;background:color-mix(in srgb, var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222))) 8%, transparent);}\n\n /* Selected inline radio: \"chip\" treatment. Placed after the muted rule so it\n wins at equal specificity. The fill is --pie-button-active-bg, which the\n DaisyUI mapping already tunes (base-300 at 70% toward base-100) to hold\n base-content text at 4.5:1 in every shipped theme. */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-18mzc0g),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-18mzc0g) {border:1px solid var(--pie-selected-button-border, var(--pie-button-border, var(--pie-border, #d9dada)));border-radius:6px;background:var(--pie-selected-button-background, var(--pie-button-active-bg, #f3f5f7));color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));font-weight:600;}\n\n /* ── Compact left-aligned overlay ───────────────────────────────────────────\n Inside the popper card the media controls occupy the top row and the speed\n radios drop onto their own full-width line below, stacked vertically.\n `order` puts the speeds after the media buttons even though they are first in\n the DOM; flex-basis:100% forces the wrap so media occupy the top line. */.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g {order:1;flex-basis:100%;flex-direction:column;align-items:center;gap:0.125rem;}\n\n /* In the card every option reads in the accent colour; the selected one is\n lifted into a bordered chip. Options size to their content and centre (no\n full-width stretch), keeping the popper compact. */.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g) {justify-content:center;width:auto;min-width:0;height:auto;padding:0.25rem 0.75rem;border:1px solid transparent;border-radius:0.5rem;background:transparent;box-shadow:none;color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));font-size:0.75rem;font-weight:500;}.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-18mzc0g) {border:1px solid var(--pie-selected-button-border, var(--pie-button-border, var(--pie-border, #d9dada)));border-radius:6px;background:var(--pie-selected-button-background, var(--pie-button-active-bg, #f3f5f7));color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));font-weight:700;}\n\n /* Trigger size variants set the NDS outer size (--height-32); the glyph keeps\n the NDS-native icon size (host renders size=\"small\"). */.pie-tool-tts-inline__trigger--sm.svelte-18mzc0g {--height-32: 1.75rem;}.pie-tool-tts-inline__trigger--md.svelte-18mzc0g {--height-32: 2rem;}.pie-tool-tts-inline__trigger--lg.svelte-18mzc0g {--height-32: 2.5rem;}.pie-tool-tts-inline__icon.svelte-18mzc0g {font-size:1rem;line-height:1;color:currentColor;}\n\n @media (max-width: 839px) {.pie-tool-tts-inline.svelte-18mzc0g {gap:0.375rem;}.pie-tool-tts-inline__panel--compact.svelte-18mzc0g {padding:0;}\n\n /* Keep trigger sizes consistent with the calculator at this breakpoint. */.pie-tool-tts-inline__control.svelte-18mzc0g:not(.pie-tool-tts-inline__trigger) {width:1.75rem;height:1.75rem;}.pie-tool-tts-inline__control.svelte-18mzc0g .pie-tool-tts-inline__icon:where(.svelte-18mzc0g) {font-size:1rem;}.pie-tool-tts-inline__control--speed.svelte-18mzc0g {width:auto;min-width:2.5rem;height:1.75rem;padding:0 0.5rem;}\n\n /* drop font-size on smaller screens */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g) {font-size:0.75rem;}\n }.pie-sr-only.svelte-18mzc0g {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;}\n\n @media (prefers-reduced-motion: reduce) {.pie-tool-tts-inline__control.svelte-18mzc0g {transition:none !important;}\n }"
3917
3887
  };
3918
- function so(o, s) {
3919
- ze(s, !0), Hr(o, oo);
3888
+ function ro(o, s) {
3889
+ ze(s, !0), Hr(o, no);
3920
3890
  let c = si(s, "catalogId", 7, ""), l = si(s, "language", 7, "en-US"), u = si(s, "size", 7, "md"), d = si(s, "speedOptions", 7, void 0), f = si(s, "showSingleSpeedOption", 7, !1), p = si(s, "layoutMode", 7, "expanding-row"), m = typeof window < "u", h = "__pie_tts_inline_active_owner__", g = "pie-tts-inline-owner-change", _ = ["/_fa-pro/fontawesome.min.css", "/_fa-pro/light.min.css"], v = "https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/css/all.min.css", y = /font.?awesome|fa-?pro/i, ee = !1, b = () => {
3921
3891
  if (!(!m || ee)) {
3922
3892
  if (ee = !0, !document.querySelector("link[href*=\"Roboto\"]")) {
@@ -3981,7 +3951,7 @@ function so(o, s) {
3981
3951
  i.disconnect();
3982
3952
  }
3983
3953
  };
3984
- }, ne = (e) => (b(), te(e), {}), w = /* @__PURE__ */ U(void 0), T = /* @__PURE__ */ U(void 0), re = /* @__PURE__ */ U(null), ie = /* @__PURE__ */ B(() => Z(re)?.ndsIcons === !0), E = /* @__PURE__ */ B(() => Za(Z(re))), D = /* @__PURE__ */ U(null), ae = /* @__PURE__ */ U(null), O = /* @__PURE__ */ B(() => Z(re)?.ttsService), oe = /* @__PURE__ */ B(() => Z(re)?.highlightCoordinator), se = /* @__PURE__ */ B(() => Z(ae)?.scopeElement || Z(D)?.scopeElement || null), k = /* @__PURE__ */ U(!1), ce = /* @__PURE__ */ U(!1), A = /* @__PURE__ */ U(!1), j = /* @__PURE__ */ U(!1), M = /* @__PURE__ */ U(""), le = /* @__PURE__ */ U(null), ue = /* @__PURE__ */ U(null), de = /* @__PURE__ */ U(!1), fe = /* @__PURE__ */ U(!1), pe = /* @__PURE__ */ U(!1), me = null, he = /* @__PURE__ */ B(() => Z(de) || Z(fe)), ge = null, _e = /* @__PURE__ */ B(() => a(d())), ve = /* @__PURE__ */ B(() => Ee(Z(_e))), N = /* @__PURE__ */ B(() => Z(_e).length > 1 || f() ? Z(_e) : []), P = /* @__PURE__ */ B(() => Z(le) !== null && Z(ue) === Z(ve) && Z(_e).some((e) => e.rate === Z(le)) ? Z(le) : De(Z(_e))), F = `pie-tts-inline-instance-${Math.random().toString(36).slice(2)}`, I = `pie-tts-inline-${Math.random().toString(36).slice(2)}`, ye = `${F}-controls`;
3954
+ }, ne = (e) => (b(), te(e), {}), w = /* @__PURE__ */ H(void 0), T = /* @__PURE__ */ H(void 0), re = /* @__PURE__ */ H(null), ie = /* @__PURE__ */ B(() => Z(re)?.ndsIcons === !0), E = /* @__PURE__ */ B(() => qa(Z(re))), D = /* @__PURE__ */ H(null), ae = /* @__PURE__ */ H(null), O = /* @__PURE__ */ B(() => Z(re)?.ttsService), oe = /* @__PURE__ */ B(() => Z(re)?.highlightCoordinator), se = /* @__PURE__ */ B(() => Z(ae)?.scopeElement || Z(D)?.scopeElement || null), k = /* @__PURE__ */ H(!1), ce = /* @__PURE__ */ H(!1), A = /* @__PURE__ */ H(!1), j = /* @__PURE__ */ H(!1), M = /* @__PURE__ */ H(""), le = /* @__PURE__ */ H(null), ue = /* @__PURE__ */ H(null), de = /* @__PURE__ */ H(!1), fe = /* @__PURE__ */ H(!1), pe = /* @__PURE__ */ H(!1), me = null, he = /* @__PURE__ */ B(() => Z(de) || Z(fe)), ge = null, _e = /* @__PURE__ */ B(() => a(d())), ve = /* @__PURE__ */ B(() => Ee(Z(_e))), N = /* @__PURE__ */ B(() => Z(_e).length > 1 || f() ? Z(_e) : []), P = /* @__PURE__ */ B(() => Z(le) !== null && Z(ue) === Z(ve) && Z(_e).some((e) => e.rate === Z(le)) ? Z(le) : De(Z(_e))), F = `pie-tts-inline-instance-${Math.random().toString(36).slice(2)}`, I = `pie-tts-inline-${Math.random().toString(36).slice(2)}`, ye = `${F}-controls`;
3985
3955
  function xe() {
3986
3956
  if (!m) return null;
3987
3957
  let e = window[h];
@@ -4005,7 +3975,7 @@ function so(o, s) {
4005
3975
  m && xe() === F && (delete window[h], Se(null, F));
4006
3976
  }
4007
3977
  function Te(e = "", t = !1) {
4008
- W(fe, !1), W(A, !1), W(j, !1), W(k, t, !0), W(M, e, !0);
3978
+ U(fe, !1), U(A, !1), U(j, !1), U(k, t, !0), U(M, e, !0);
4009
3979
  }
4010
3980
  function Ee(e) {
4011
3981
  return e.map((e) => `${e.rate}:${e.label}:${e.ariaLabel}:${e.isDefault ? "1" : "0"}`).join("|");
@@ -4051,47 +4021,47 @@ function so(o, s) {
4051
4021
  }
4052
4022
  function Ne(e = Z(E).t("tools.textToSpeech.inline.switchedSection"), t = !1) {
4053
4023
  if (!Z(pe) && !(!Z(k) && !L())) {
4054
- W(pe, !0);
4024
+ U(pe, !0);
4055
4025
  try {
4056
4026
  let n = ke();
4057
4027
  L() && we(), Te(e), qe(), t && queueMicrotask(() => {
4058
4028
  Me(n);
4059
4029
  });
4060
4030
  } finally {
4061
- W(pe, !1);
4031
+ U(pe, !1);
4062
4032
  }
4063
4033
  }
4064
4034
  }
4065
- un(() => {
4035
+ dn(() => {
4066
4036
  if (Z(w)) return r(Z(w), (e) => {
4067
- W(re, e, !0);
4037
+ U(re, e, !0);
4068
4038
  });
4069
- }), un(() => {
4039
+ }), dn(() => {
4070
4040
  if (!Z(w)) return;
4071
4041
  let e = i(Z(w), (e) => {
4072
- W(D, e, !0);
4042
+ U(D, e, !0);
4073
4043
  }), t = n(Z(w), (e) => {
4074
- W(ae, e, !0);
4044
+ U(ae, e, !0);
4075
4045
  });
4076
4046
  return () => {
4077
4047
  t(), e();
4078
4048
  };
4079
- }), un(() => {
4049
+ }), dn(() => {
4080
4050
  if (!Z(O)) return;
4081
4051
  let e = (e) => {
4082
4052
  if (!Z(k) || !L()) {
4083
- W(A, !1), W(j, !1);
4053
+ U(A, !1), U(j, !1);
4084
4054
  return;
4085
4055
  }
4086
- W(A, e === "playing" || e === "paused", !0), W(j, e === "paused");
4056
+ U(A, e === "playing" || e === "paused", !0), U(j, e === "paused");
4087
4057
  }, t = (t) => {
4088
4058
  let n = String(t), r = Ae();
4089
- e(n), n === "playing" && (Z(fe) && W(M, Z(E).t("tools.textToSpeech.inline.started"), !0), W(fe, !1)), (n === "error" || n === "idle") && W(fe, !1), r && !Z(A) && queueMicrotask(je);
4059
+ e(n), n === "playing" && (Z(fe) && U(M, Z(E).t("tools.textToSpeech.inline.started"), !0), U(fe, !1)), (n === "error" || n === "idle") && U(fe, !1), r && !Z(A) && queueMicrotask(je);
4090
4060
  };
4091
4061
  return Z(O).onStateChange(I, t), e(Z(O).getState()), () => {
4092
4062
  Z(O).offStateChange(I, t);
4093
4063
  };
4094
- }), un(() => {
4064
+ }), dn(() => {
4095
4065
  if (!m) return;
4096
4066
  let e = (e) => {
4097
4067
  let { ownerId: t = null, previousOwnerId: n = null } = e.detail || {};
@@ -4100,7 +4070,7 @@ function so(o, s) {
4100
4070
  return window.addEventListener(g, e), () => {
4101
4071
  window.removeEventListener(g, e);
4102
4072
  };
4103
- }), un(() => {
4073
+ }), dn(() => {
4104
4074
  if (!m) return;
4105
4075
  let t = () => {
4106
4076
  Ne(Z(E).t("tools.textToSpeech.inline.switchedSection"), !0);
@@ -4108,7 +4078,7 @@ function so(o, s) {
4108
4078
  return window.addEventListener(e, t), () => {
4109
4079
  window.removeEventListener(e, t);
4110
4080
  };
4111
- }), un(() => () => {
4081
+ }), dn(() => () => {
4112
4082
  we(), qe();
4113
4083
  });
4114
4084
  async function Pe() {
@@ -4204,7 +4174,7 @@ function so(o, s) {
4204
4174
  return;
4205
4175
  }
4206
4176
  try {
4207
- W(k, !0);
4177
+ U(k, !0);
4208
4178
  let n = t.textContent || "";
4209
4179
  if (!n) {
4210
4180
  console.warn("[TTS Inline] No text content found");
@@ -4213,7 +4183,7 @@ function so(o, s) {
4213
4183
  Z(oe) && Z(O).setHighlightCoordinator && Z(O).setHighlightCoordinator(Z(oe)), await Oe(Z(O), Z(P)), ge = {
4214
4184
  service: Z(O),
4215
4185
  choicesKey: Z(ve)
4216
- }, e = Ke(t), Z(O).setRootElement?.(t), W(fe, !0), W(M, Z(E).t("tools.textToSpeech.inline.starting"), !0), Z(O).speak(n, {
4186
+ }, e = Ke(t), Z(O).setRootElement?.(t), U(fe, !0), U(M, Z(E).t("tools.textToSpeech.inline.starting"), !0), Z(O).speak(n, {
4217
4187
  catalogId: c() || void 0,
4218
4188
  catalogContext: Ge(),
4219
4189
  language: l(),
@@ -4230,24 +4200,24 @@ function so(o, s) {
4230
4200
  async function Xe() {
4231
4201
  if (Z(O) && !(Z(he) || L() && String(Z(O).getState?.() || "") === "loading")) {
4232
4202
  if (L() && Z(j)) {
4233
- Z(O).resume(), W(M, Z(E).t("tools.textToSpeech.inline.resumed"), !0);
4203
+ Z(O).resume(), U(M, Z(E).t("tools.textToSpeech.inline.resumed"), !0);
4234
4204
  return;
4235
4205
  }
4236
4206
  if (L() && Z(A) && !Z(j)) {
4237
- Z(O).pause(), W(M, Z(E).t("tools.textToSpeech.inline.pausedAnnouncement"), !0);
4207
+ Z(O).pause(), U(M, Z(E).t("tools.textToSpeech.inline.pausedAnnouncement"), !0);
4238
4208
  return;
4239
4209
  }
4240
4210
  if (!Z(de)) {
4241
- W(de, !0);
4211
+ U(de, !0);
4242
4212
  try {
4243
- if (W(M, Z(E).t("tools.textToSpeech.inline.initializing"), !0), !await Pe()) {
4244
- W(M, Z(E).t("tools.textToSpeech.inline.initFailed"), !0);
4213
+ if (U(M, Z(E).t("tools.textToSpeech.inline.initializing"), !0), !await Pe()) {
4214
+ U(M, Z(E).t("tools.textToSpeech.inline.initFailed"), !0);
4245
4215
  return;
4246
4216
  }
4247
4217
  let e = String(Z(O).getState?.() || "");
4248
4218
  (e === "playing" || e === "paused" || e === "loading") && !L() && Z(O).stop(), Ce(), await Ye();
4249
4219
  } finally {
4250
- W(de, !1);
4220
+ U(de, !1);
4251
4221
  }
4252
4222
  }
4253
4223
  }
@@ -4261,27 +4231,27 @@ function so(o, s) {
4261
4231
  }
4262
4232
  async function Qe() {
4263
4233
  if (!(!Z(O) || !Z(A))) try {
4264
- await Z(O).seekForward?.(1), W(M, Z(E).t("tools.textToSpeech.inline.skippedForward"), !0);
4234
+ await Z(O).seekForward?.(1), U(M, Z(E).t("tools.textToSpeech.inline.skippedForward"), !0);
4265
4235
  } catch (e) {
4266
- console.error("[TTS Inline] Seek forward failed:", e), W(M, Z(E).t("tools.textToSpeech.inline.skipForwardFailed"), !0);
4236
+ console.error("[TTS Inline] Seek forward failed:", e), U(M, Z(E).t("tools.textToSpeech.inline.skipForwardFailed"), !0);
4267
4237
  }
4268
4238
  }
4269
4239
  async function $e() {
4270
4240
  if (!(!Z(O) || !Z(A))) try {
4271
- await Z(O).seekBackward?.(1), W(M, Z(E).t("tools.textToSpeech.inline.skippedBackward"), !0);
4241
+ await Z(O).seekBackward?.(1), U(M, Z(E).t("tools.textToSpeech.inline.skippedBackward"), !0);
4272
4242
  } catch (e) {
4273
- console.error("[TTS Inline] Seek backward failed:", e), W(M, Z(E).t("tools.textToSpeech.inline.skipBackwardFailed"), !0);
4243
+ console.error("[TTS Inline] Seek backward failed:", e), U(M, Z(E).t("tools.textToSpeech.inline.skipBackwardFailed"), !0);
4274
4244
  }
4275
4245
  }
4276
4246
  async function et(e) {
4277
4247
  let t = Z(O);
4278
4248
  if (!t) return;
4279
4249
  if (Z(P) === e.rate) {
4280
- W(M, Z(E).t("tools.textToSpeech.inline.speedAnnounce", { label: e.label }), !0);
4250
+ U(M, Z(E).t("tools.textToSpeech.inline.speedAnnounce", { label: e.label }), !0);
4281
4251
  return;
4282
4252
  }
4283
4253
  let n = Z(le), r = Z(ue);
4284
- W(le, e.rate, !0), W(ue, Z(ve), !0), W(M, Z(E).t("tools.textToSpeech.inline.speedAnnounce", { label: e.label }), !0);
4254
+ U(le, e.rate, !0), U(ue, Z(ve), !0), U(M, Z(E).t("tools.textToSpeech.inline.speedAnnounce", { label: e.label }), !0);
4285
4255
  let i = {
4286
4256
  service: t,
4287
4257
  choicesKey: Z(ve)
@@ -4290,11 +4260,11 @@ function so(o, s) {
4290
4260
  try {
4291
4261
  await Oe(t, e.rate);
4292
4262
  } catch (e) {
4293
- ge === i && (ge = null), console.error("[TTS Inline] Playback speed change failed:", e), W(le, n, !0), W(ue, r, !0), W(M, Z(E).t("tools.textToSpeech.inline.speedChangeFailed"), !0);
4263
+ ge === i && (ge = null), console.error("[TTS Inline] Playback speed change failed:", e), U(le, n, !0), U(ue, r, !0), U(M, Z(E).t("tools.textToSpeech.inline.speedChangeFailed"), !0);
4294
4264
  }
4295
4265
  }
4296
- let tt = /* @__PURE__ */ B(() => u() === "sm" ? "pie-tool-tts-inline__trigger--sm" : u() === "lg" ? "pie-tool-tts-inline__trigger--lg" : "pie-tool-tts-inline__trigger--md"), nt = /* @__PURE__ */ B(() => p() === "reserved-row" || p() === "expanding-row"), rt = /* @__PURE__ */ B(() => p() === "floating-overlay"), it = /* @__PURE__ */ B(() => p() === "left-aligned"), at = /* @__PURE__ */ B(() => Z(rt) || Z(it)), ot = Pa(ja), st = "[data-pie-tool-overlay-boundary]", ct = /* @__PURE__ */ U(""), lt = /* @__PURE__ */ U(0);
4297
- un(() => {
4266
+ let tt = /* @__PURE__ */ B(() => u() === "sm" ? "pie-tool-tts-inline__trigger--sm" : u() === "lg" ? "pie-tool-tts-inline__trigger--lg" : "pie-tool-tts-inline__trigger--md"), nt = /* @__PURE__ */ B(() => p() === "reserved-row" || p() === "expanding-row"), rt = /* @__PURE__ */ B(() => p() === "floating-overlay"), it = /* @__PURE__ */ B(() => p() === "left-aligned"), at = /* @__PURE__ */ B(() => Z(rt) || Z(it)), ot = "[data-pie-tool-overlay-boundary]", st = /* @__PURE__ */ H(""), ct = /* @__PURE__ */ H(0);
4267
+ dn(() => {
4298
4268
  let e = Z(O), t = Z(ve), n = Z(A) || Z(j);
4299
4269
  if (!e || !n || !L() || ge?.service === e && ge.choicesKey === t) return;
4300
4270
  let r = {
@@ -4313,7 +4283,7 @@ function so(o, s) {
4313
4283
  i = !0;
4314
4284
  };
4315
4285
  });
4316
- function ut(e, t) {
4286
+ function lt(e, t) {
4317
4287
  let n = e;
4318
4288
  for (; n;) {
4319
4289
  if (n.matches?.(t)) return n;
@@ -4321,54 +4291,64 @@ function so(o, s) {
4321
4291
  }
4322
4292
  return null;
4323
4293
  }
4324
- function dt() {
4294
+ function ut() {
4325
4295
  let e = Z(w)?.getRootNode();
4326
4296
  return e instanceof ShadowRoot ? e.querySelector(".pie-tool-tts-inline__trigger") : null;
4327
4297
  }
4328
- function ft(e) {
4298
+ function dt(e) {
4329
4299
  let t = window.getComputedStyle(e), n = parseFloat(t.columnGap || t.gap) || 0, r = (parseFloat(t.paddingLeft) || 0) + (parseFloat(t.paddingRight) || 0) + (parseFloat(t.borderLeftWidth) || 0) + (parseFloat(t.borderRightWidth) || 0), i = Array.from(e.children).filter((e) => window.getComputedStyle(e).display !== "none");
4330
4300
  return i.length ? i.reduce((e, t) => e + t.offsetWidth, 0) + (i.length - 1) * n + r : 0;
4331
4301
  }
4332
- function pt() {
4333
- let e = dt();
4302
+ function ft() {
4303
+ let e = ut();
4334
4304
  if (!e || !Z(T)) return;
4335
- let t = e.getBoundingClientRect(), n = ut(e, st)?.getBoundingClientRect().left ?? 0, r = Math.max(0, t.left - n - 16);
4305
+ let t = e.getBoundingClientRect(), n = lt(e, ot), r = n?.getBoundingClientRect().left ?? 0, i = Math.max(0, t.left - r - 16);
4336
4306
  if (!Z(ce)) {
4337
- let e = ft(Z(T));
4338
- e > 0 && W(lt, e, !0);
4307
+ let e = dt(Z(T));
4308
+ e > 0 && U(ct, e, !0);
4339
4309
  }
4340
- W(ce, Z(lt) > 0 && r < Z(lt), !0);
4341
- let i = Z(T).offsetHeight || t.height, a = Z(ce) ? t.top : t.top + t.height / 2 - i / 2, o = window.innerWidth - t.left + 8;
4342
- W(ct, `top: ${a}px; right: ${o}px; left: auto; max-width: min(${r}px, var(--pie-tts-left-aligned-panel-width, ${r}px));`);
4343
- }
4344
- un(() => {
4345
- if (!Z(it) || !Z(k)) {
4346
- W(ct, ""), W(ce, !1), W(lt, 0);
4310
+ U(ce, Z(ct) > 0 && i < Z(ct), !0);
4311
+ let a = parseFloat(window.getComputedStyle(Z(T)).minWidth) || 0;
4312
+ if (Z(ce) && i < a) {
4313
+ let e = n?.getBoundingClientRect(), r = Math.max(0, e?.left ?? 0) + 8, i = Math.min(window.innerWidth, e?.right ?? window.innerWidth) - 8, a = Math.max(0, i - r), o = Math.min(Z(T).offsetWidth, a), s = Math.max(r, Math.min(t.right - o, i - o));
4314
+ U(st, `top: ${t.bottom + 8}px; left: ${s}px; right: auto; min-width: min(7.5rem, ${a}px); max-width: min(${a}px, var(--pie-tts-left-aligned-panel-width, ${a}px));`);
4347
4315
  return;
4348
4316
  }
4317
+ let o = Z(T).offsetHeight || t.height, s = Z(ce) ? t.top : t.top + t.height / 2 - o / 2, c = t.bottom > 0 && t.top < window.innerHeight ? Math.max(8, Math.min(s, window.innerHeight - o - 8)) : s, l = window.innerWidth - t.left + 8;
4318
+ U(st, `top: ${c}px; right: ${l}px; left: auto; max-width: min(${i}px, var(--pie-tts-left-aligned-panel-width, ${i}px));`);
4319
+ }
4320
+ dn(() => {
4321
+ if (!(Z(it) && Z(k))) {
4322
+ let e = !1;
4323
+ return queueMicrotask(() => {
4324
+ e || (U(st, ""), U(ce, !1), U(ct, 0));
4325
+ }), () => {
4326
+ e = !0;
4327
+ };
4328
+ }
4349
4329
  if (typeof window > "u") return;
4350
4330
  let e = 0, t = () => {
4351
4331
  e ||= window.requestAnimationFrame(() => {
4352
- e = 0, pt();
4332
+ e = 0, ft();
4353
4333
  });
4354
4334
  };
4355
- pt(), window.addEventListener("resize", t), window.addEventListener("scroll", t, !0);
4356
- let n = dt(), r = new ResizeObserver(t);
4335
+ t(), window.addEventListener("resize", t), window.addEventListener("scroll", t, !0);
4336
+ let n = ut(), r = new ResizeObserver(t);
4357
4337
  n && r.observe(n), Z(T) && r.observe(Z(T));
4358
- let i = n ? ut(n, st) : null;
4338
+ let i = n ? lt(n, ot) : null;
4359
4339
  i && r.observe(i);
4360
4340
  let a = i?.querySelector("[data-pie-tool-overlay-protect]");
4361
4341
  return a && r.observe(a), () => {
4362
4342
  e && window.cancelAnimationFrame(e), window.removeEventListener("resize", t), window.removeEventListener("scroll", t, !0), r.disconnect();
4363
4343
  };
4364
4344
  });
4365
- function V() {
4345
+ function pt() {
4366
4346
  if (!Z(w)) return null;
4367
4347
  let e = Z(w).getRootNode();
4368
4348
  return e instanceof ShadowRoot ? e.host : null;
4369
4349
  }
4370
- un(() => {
4371
- let e = V();
4350
+ dn(() => {
4351
+ let e = pt();
4372
4352
  if (!e) return;
4373
4353
  let t = Z(k) === !0;
4374
4354
  e.setAttribute("data-active", t ? "true" : "false");
@@ -4383,59 +4363,59 @@ function so(o, s) {
4383
4363
  n = !0;
4384
4364
  };
4385
4365
  });
4386
- var mt = {
4366
+ var V = {
4387
4367
  get catalogId() {
4388
4368
  return c();
4389
4369
  },
4390
4370
  set catalogId(e = "") {
4391
- c(e), Ct();
4371
+ c(e), wt();
4392
4372
  },
4393
4373
  get language() {
4394
4374
  return l();
4395
4375
  },
4396
4376
  set language(e = "en-US") {
4397
- l(e), Ct();
4377
+ l(e), wt();
4398
4378
  },
4399
4379
  get size() {
4400
4380
  return u();
4401
4381
  },
4402
4382
  set size(e = "md") {
4403
- u(e), Ct();
4383
+ u(e), wt();
4404
4384
  },
4405
4385
  get speedOptions() {
4406
4386
  return d();
4407
4387
  },
4408
4388
  set speedOptions(e = void 0) {
4409
- d(e), Ct();
4389
+ d(e), wt();
4410
4390
  },
4411
4391
  get showSingleSpeedOption() {
4412
4392
  return f();
4413
4393
  },
4414
4394
  set showSingleSpeedOption(e = !1) {
4415
- f(e), Ct();
4395
+ f(e), wt();
4416
4396
  },
4417
4397
  get layoutMode() {
4418
4398
  return p();
4419
4399
  },
4420
4400
  set layoutMode(e = "expanding-row") {
4421
- p(e), Ct();
4401
+ p(e), wt();
4422
4402
  }
4423
- }, H = gr(), ht = Yt(H), gt = (e) => {
4424
- var t = ao();
4403
+ }, mt = gr(), ht = Xt(mt), gt = (e) => {
4404
+ var t = to();
4425
4405
  let n;
4426
4406
  {
4427
4407
  let e = (e) => {
4428
- var t = eo(), n = Jt(t), r = (e) => {
4429
- var t = Qa();
4430
- ti(t, "type", "circle"), ti(t, "size", "small"), ti(t, "variant", "tertiary"), _n(() => ti(t, "icon-name", Z(A) && !Z(j) ? "pause" : "play")), _n((e) => ti(t, "button-aria-label", e), [() => Z(E).t(Z(A) && !Z(j) ? "tools.textToSpeech.inline.pauseA11y" : Z(j) ? "tools.textToSpeech.inline.resumeA11y" : "tools.textToSpeech.inline.playA11y")]), _n(() => ti(t, "disabled", !Z(O))), Ur(t, (e) => S?.(e)), Ur(t, (e, t) => C?.(e, t), () => ({
4408
+ var t = Xa(), n = Yt(t), r = (e) => {
4409
+ var t = Ja();
4410
+ ti(t, "type", "circle"), ti(t, "size", "small"), ti(t, "variant", "tertiary"), vn(() => ti(t, "icon-name", Z(A) && !Z(j) ? "pause" : "play")), vn((e) => ti(t, "button-aria-label", e), [() => Z(E).t(Z(A) && !Z(j) ? "tools.textToSpeech.inline.pauseA11y" : Z(j) ? "tools.textToSpeech.inline.resumeA11y" : "tools.textToSpeech.inline.playA11y")]), vn(() => ti(t, "disabled", !Z(O))), Ur(t, (e) => S?.(e)), Ur(t, (e, t) => C?.(e, t), () => ({
4431
4411
  "aria-expanded": Z(k) ? "true" : "false",
4432
4412
  "aria-controls": Z(k) ? ye : null,
4433
4413
  "aria-pressed": Z(k) ? "true" : "false",
4434
4414
  "aria-busy": Z(he) ? "true" : null
4435
- })), _n(() => Yr(t, 1, `pie-tool-tts-inline__trigger ${Z(tt) ?? ""}`, "svelte-18mzc0g")), or("click", t, Xe), _r(e, t);
4415
+ })), vn(() => Yr(t, 1, `pie-tool-tts-inline__trigger ${Z(tt) ?? ""}`, "svelte-18mzc0g")), or("click", t, Xe), _r(e, t);
4436
4416
  }, i = (e) => {
4437
- var t = $a(), n = Xt(t);
4438
- Ur(t, (e) => ne?.(e)), _n((e) => {
4417
+ var t = Ya(), n = Zt(t);
4418
+ Ur(t, (e) => ne?.(e)), vn((e) => {
4439
4419
  Yr(t, 1, `pie-tool-tts-inline__control pie-tool-tts-inline__trigger pie-tool-tts-inline__trigger--plain ${Z(tt) ?? ""}`, "svelte-18mzc0g"), Q(t, "aria-expanded", Z(k) ? "true" : "false"), Q(t, "aria-controls", Z(k) ? ye : void 0), Q(t, "aria-pressed", Z(k) ? "true" : "false"), Q(t, "aria-label", e), Q(t, "aria-busy", Z(he) ? "true" : void 0), t.disabled = !Z(O), Yr(n, 1, `fa-solid ${Z(A) && !Z(j) ? "fa-pause" : "fa-play"} pie-tool-tts-inline__icon`, "svelte-18mzc0g");
4440
4420
  }, [() => Z(E).t(Z(A) && !Z(j) ? "tools.textToSpeech.inline.pauseA11y" : Z(j) ? "tools.textToSpeech.inline.resumeA11y" : "tools.textToSpeech.inline.playA11y")]), or("click", t, Xe), _r(e, t);
4441
4421
  };
@@ -4443,32 +4423,32 @@ function so(o, s) {
4443
4423
  Z(ie) ? e(r) : e(i, -1);
4444
4424
  }), be(t), _r(e, t);
4445
4425
  }, n = (e) => {
4446
- var t = gr(), n = Yt(t), r = (e) => {
4447
- var t = ro();
4426
+ var t = gr(), n = Xt(t), r = (e) => {
4427
+ var t = $a();
4448
4428
  let n;
4449
- var r = Jt(t), i = (e) => {
4450
- var t = no();
4429
+ var r = Yt(t), i = (e) => {
4430
+ var t = Qa();
4451
4431
  let n;
4452
4432
  Ir(t, 21, () => Z(N), (e) => e.rate, (e, t) => {
4453
- var n = to(), r = Jt(n), i = Xt(r, !0);
4454
- be(n), _n(() => {
4433
+ var n = Za(), r = Yt(n), i = Zt(r, !0);
4434
+ be(n), vn(() => {
4455
4435
  Q(n, "data-pie-tts-speed-rate", Z(t).rate), Q(n, "tabindex", Z(P) === Z(t).rate ? 0 : -1), Q(n, "aria-label", Z(t).ariaLabel), Q(n, "aria-checked", Z(P) === Z(t).rate), n.disabled = !Z(O), Q(r, "data-label", Z(t).label), wr(i, Z(t).label);
4456
4436
  }), or("click", n, () => et(Z(t))), or("keydown", n, (e) => Ue(Fe, e)), _r(e, n);
4457
- }), be(t), _n((e) => {
4437
+ }), be(t), vn((e) => {
4458
4438
  n = Yr(t, 1, "pie-tool-tts-inline__speed-group svelte-18mzc0g", null, n, { "pie-tool-tts-inline__speed-group--stacked": Z(ce) }), Q(t, "aria-label", e);
4459
4439
  }, [() => Z(E).t("tools.textToSpeech.inline.playbackSpeedA11y")]), _r(e, t);
4460
4440
  };
4461
4441
  Mr(r, (e) => {
4462
4442
  Z(N).length > 0 && e(i);
4463
4443
  });
4464
- var a = Zt(r, 2), o = Zt(a, 2), s = Zt(o, 2);
4465
- be(t), oi(t, (e) => W(T, e), () => Z(T)), _n((e, r, i, c) => {
4444
+ var a = Qt(r, 2), o = Qt(a, 2), s = Qt(o, 2);
4445
+ be(t), oi(t, (e) => U(T, e), () => Z(T)), vn((e, r, i, c) => {
4466
4446
  Q(t, "id", ye), n = Yr(t, 1, "pie-tool-tts-inline__panel svelte-18mzc0g", null, n, {
4467
4447
  "pie-tool-tts-inline__panel--floating": Z(rt),
4468
4448
  "pie-tool-tts-inline__panel--row": Z(nt),
4469
4449
  "pie-tool-tts-inline__panel--left-aligned-inline": Z(it),
4470
4450
  "pie-tool-tts-inline__panel--compact": Z(it) && Z(ce)
4471
- }), Zr(t, Z(it) ? Z(ct) : ""), Q(t, "aria-label", e), Q(a, "aria-label", r), a.disabled = !Z(O) || !Z(A), Q(o, "aria-label", i), o.disabled = !Z(O) || !Z(A), Q(s, "aria-label", c), s.disabled = !Z(O);
4451
+ }), Zr(t, Z(it) ? Z(st) : ""), Q(t, "aria-label", e), Q(a, "aria-label", r), a.disabled = !Z(O) || !Z(A), Q(o, "aria-label", i), o.disabled = !Z(O) || !Z(A), Q(s, "aria-label", c), s.disabled = !Z(O);
4472
4452
  }, [
4473
4453
  () => Z(E).t("tools.textToSpeech.inline.controlsA11y"),
4474
4454
  () => Z(E).t("tools.textToSpeech.inline.rewindA11y"),
@@ -4480,36 +4460,34 @@ function so(o, s) {
4480
4460
  Z(k) && e(r);
4481
4461
  }), _r(e, t);
4482
4462
  };
4483
- var r = Jt(t), i = (t) => {
4484
- var r = io(), i = Yt(r);
4463
+ var r = Yt(t), i = (t) => {
4464
+ var r = eo(), i = Xt(r);
4485
4465
  n(i);
4486
- var a = Zt(i, 2);
4466
+ var a = Qt(i, 2);
4487
4467
  e(a), _r(t, r);
4488
4468
  }, a = (t) => {
4489
- var r = io(), i = Yt(r);
4469
+ var r = eo(), i = Xt(r);
4490
4470
  e(i);
4491
- var a = Zt(i, 2);
4471
+ var a = Qt(i, 2);
4492
4472
  n(a), _r(t, r);
4493
4473
  };
4494
4474
  Mr(r, (e) => {
4495
4475
  Z(at) ? e(i) : e(a, -1);
4496
4476
  });
4497
- var o = Xt(Zt(r, 2), !0);
4498
- be(t), oi(t, (e) => W(w, e), () => Z(w)), _n(() => wr(o, Z(M)));
4477
+ var o = Zt(Qt(r, 2), !0);
4478
+ be(t), oi(t, (e) => U(w, e), () => Z(w)), vn(() => wr(o, Z(M)));
4499
4479
  }
4500
- _n(() => {
4501
- n = Yr(t, 1, "pie-tool-tts-inline svelte-18mzc0g", null, n, {
4502
- "pie-tool-tts-inline--controls-row": Z(nt),
4503
- "pie-tool-tts-inline--floating": Z(rt),
4504
- "pie-tool-tts-inline--left-aligned": Z(it)
4505
- }), Zr(t, `--pie-tts-zoom-comp: ${ot.current};`);
4506
- }), _r(e, t);
4480
+ vn(() => n = Yr(t, 1, "pie-tool-tts-inline svelte-18mzc0g", null, n, {
4481
+ "pie-tool-tts-inline--controls-row": Z(nt),
4482
+ "pie-tool-tts-inline--floating": Z(rt),
4483
+ "pie-tool-tts-inline--left-aligned": Z(it)
4484
+ })), _r(e, t);
4507
4485
  };
4508
4486
  return Mr(ht, (e) => {
4509
4487
  m && e(gt);
4510
- }), _r(o, H), Be(mt);
4488
+ }), _r(o, mt), Be(V);
4511
4489
  }
4512
- sr(["click", "keydown"]), customElements.define("pie-tool-tts-inline", pi(so, {
4490
+ sr(["click", "keydown"]), customElements.define("pie-tool-tts-inline", pi(ro, {
4513
4491
  catalogId: {
4514
4492
  attribute: "catalog-id",
4515
4493
  type: "String"
@@ -4536,4 +4514,4 @@ sr(["click", "keydown"]), customElements.define("pie-tool-tts-inline", pi(so, {
4536
4514
  }
4537
4515
  }, [], [], { mode: "open" }));
4538
4516
  //#endregion
4539
- export { so as default };
4517
+ export { ro as default };