@pie-players/pie-tool-tts-inline 0.3.61 → 0.3.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  import { PIE_TTS_CONTROL_HANDOFF_EVENT as e, connectToolRegionScopeContext as t, connectToolRuntimeContext as n, connectToolShellContext as r, normalizeTTSSpeedControlOptions as i } from "@pie-players/pie-assessment-toolkit";
2
- //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/disclose-version.js
2
+ //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/disclose-version.js
3
3
  typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5");
4
4
  //#endregion
5
- //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/constants.js
5
+ //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/constants.js
6
6
  var a = {}, o = Symbol("uninitialized"), s = "http://www.w3.org/1999/xhtml", c = Array.isArray, l = Array.prototype.indexOf, u = Array.prototype.includes, d = Array.from, f = Object.keys, p = Object.defineProperty, m = Object.getOwnPropertyDescriptor, h = Object.getOwnPropertyDescriptors, g = Object.prototype, _ = Array.prototype, v = Object.getPrototypeOf, y = Object.isExtensible, ee = () => {};
7
7
  function b(e) {
8
8
  for (var t = 0; t < e.length; t++) e[t]();
@@ -17,12 +17,12 @@ function x() {
17
17
  reject: t
18
18
  };
19
19
  }
20
- var S = 1024, C = 2048, te = 4096, w = 8192, T = 16384, ne = 32768, re = 1 << 25, E = 65536, ie = 1 << 19, D = 1 << 20, O = 1 << 25, ae = 65536, k = 1 << 21, oe = 1 << 22, A = 1 << 23, j = Symbol("$state"), M = Symbol("legacy props"), se = Symbol(""), ce = Symbol("attributes"), N = Symbol("class"), le = Symbol("style"), ue = Symbol("text"), de = new class extends Error {
20
+ var S = 1024, C = 2048, te = 4096, w = 8192, T = 16384, E = 32768, ne = 1 << 25, D = 65536, re = 1 << 19, O = 1 << 20, k = 1 << 25, ie = 65536, A = 1 << 21, ae = 1 << 22, j = 1 << 23, M = Symbol("$state"), N = Symbol("legacy props"), oe = Symbol(""), se = Symbol("attributes"), ce = Symbol("class"), le = Symbol("style"), ue = Symbol("text"), de = new class extends Error {
21
21
  name = "StaleReactionError";
22
22
  message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
23
23
  }(), fe = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
24
24
  //#endregion
25
- //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/errors.js
25
+ //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/errors.js
26
26
  function pe() {
27
27
  throw Error("https://svelte.dev/e/async_derived_orphan");
28
28
  }
@@ -69,33 +69,33 @@ function De() {
69
69
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
70
70
  }
71
71
  //#endregion
72
- //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/hydration.js
72
+ //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/hydration.js
73
73
  var P = !1;
74
- function F(e) {
74
+ function Oe(e) {
75
75
  P = e;
76
76
  }
77
- var I;
78
- function L(e) {
77
+ var F;
78
+ function I(e) {
79
79
  if (e === null) throw Ee(), a;
80
- return I = e;
80
+ return F = e;
81
81
  }
82
- function Oe() {
83
- return L(/* @__PURE__ */ tn(I));
82
+ function ke() {
83
+ return I(/* @__PURE__ */ tn(F));
84
84
  }
85
- function ke(e) {
85
+ function Ae(e) {
86
86
  if (P) {
87
- if (/* @__PURE__ */ tn(I) !== null) throw Ee(), a;
88
- I = e;
87
+ if (/* @__PURE__ */ tn(F) !== null) throw Ee(), a;
88
+ F = e;
89
89
  }
90
90
  }
91
- function Ae(e = 1) {
91
+ function je(e = 1) {
92
92
  if (P) {
93
- for (var t = e, n = I; t--;) n = /* @__PURE__ */ tn(n);
94
- I = n;
93
+ for (var t = e, n = F; t--;) n = /* @__PURE__ */ tn(n);
94
+ F = n;
95
95
  }
96
96
  }
97
- function je(e = !0) {
98
- for (var t = 0, n = I;;) {
97
+ function Me(e = !0) {
98
+ for (var t = 0, n = F;;) {
99
99
  if (n.nodeType === 8) {
100
100
  var r = n.data;
101
101
  if (r === "]") {
@@ -107,96 +107,98 @@ function je(e = !0) {
107
107
  e && n.remove(), n = i;
108
108
  }
109
109
  }
110
- function Me(e) {
110
+ function Ne(e) {
111
111
  if (!e || e.nodeType !== 8) throw Ee(), a;
112
112
  return e.data;
113
113
  }
114
114
  //#endregion
115
- //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/equality.js
116
- function Ne(e) {
115
+ //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/reactivity/equality.js
116
+ function Pe(e) {
117
117
  return e === this.v;
118
118
  }
119
- function Pe(e, t) {
119
+ function Fe(e, t) {
120
120
  return e == e ? e !== t || typeof e == "object" && !!e || typeof e == "function" : t == t;
121
121
  }
122
- function Fe(e) {
123
- return !Pe(e, this.v);
122
+ function Ie(e) {
123
+ return !Fe(e, this.v);
124
124
  }
125
125
  //#endregion
126
- //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/flags/index.js
127
- var Ie = !1, Le = !1, R = null;
128
- function Re(e) {
129
- R = e;
130
- }
131
- function ze(e, t = !1, n) {
132
- R = {
133
- p: R,
126
+ //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/flags/index.js
127
+ var Le = !1, Re = !1, L = null;
128
+ function ze(e) {
129
+ L = e;
130
+ }
131
+ function Be(e, t = !1, n) {
132
+ L = {
133
+ p: L,
134
134
  i: !1,
135
135
  c: null,
136
136
  e: null,
137
137
  s: e,
138
138
  x: null,
139
- r: J,
140
- l: Le && !t ? {
139
+ r: Y,
140
+ l: Re && !t ? {
141
141
  s: null,
142
142
  u: null,
143
143
  $: []
144
144
  } : null
145
145
  };
146
146
  }
147
- function Be(e) {
148
- var t = R, n = t.e;
147
+ function Ve(e) {
148
+ var t = L, n = t.e;
149
149
  if (n !== null) {
150
150
  t.e = null;
151
- for (var r of n) _n(r);
151
+ for (var r of n) gn(r);
152
152
  }
153
- return e !== void 0 && (t.x = e), t.i = !0, R = t.p, e ?? {};
153
+ return e !== void 0 && (t.x = e), t.i = !0, L = t.p, e ?? {};
154
154
  }
155
- function Ve() {
156
- return !Le || R !== null && R.l === null;
155
+ function He() {
156
+ return !Re || L !== null && L.l === null;
157
157
  }
158
158
  //#endregion
159
- //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/task.js
160
- var He = [];
159
+ //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/task.js
160
+ var R = [];
161
161
  function Ue() {
162
- var e = He;
163
- He = [], b(e);
162
+ var e = R;
163
+ R = [], b(e);
164
164
  }
165
165
  function We(e) {
166
- if (He.length === 0 && !at) {
167
- var t = He;
166
+ if (R.length === 0 && !Ct) {
167
+ var t = R;
168
168
  queueMicrotask(() => {
169
- t === He && Ue();
169
+ t === R && Ue();
170
170
  });
171
171
  }
172
- He.push(e);
172
+ R.push(e);
173
173
  }
174
174
  function Ge() {
175
- for (; He.length > 0;) Ue();
175
+ for (; R.length > 0;) Ue();
176
176
  }
177
177
  function Ke(e) {
178
- var t = J;
179
- if (t === null) return K.f |= A, e;
178
+ var t = Y;
179
+ if (t === null) return q.f |= j, e;
180
180
  if (!(t.f & 32768) && !(t.f & 4)) throw e;
181
181
  qe(e, t);
182
182
  }
183
183
  function qe(e, t) {
184
- for (; t !== null;) {
185
- if (t.f & 128) {
186
- if (!(t.f & 32768)) throw e;
187
- try {
188
- t.b.error(e);
189
- return;
190
- } catch (t) {
191
- e = t;
184
+ if (!(t !== null && t.f & 16384)) {
185
+ for (; t !== null;) {
186
+ if (t.f & 128) {
187
+ if (!(t.f & 32768)) throw e;
188
+ try {
189
+ t.b.error(e);
190
+ return;
191
+ } catch (t) {
192
+ e = t;
193
+ }
192
194
  }
195
+ t = t.parent;
193
196
  }
194
- t = t.parent;
197
+ throw e;
195
198
  }
196
- throw e;
197
199
  }
198
200
  //#endregion
199
- //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/status.js
201
+ //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/reactivity/status.js
200
202
  var Je = ~(C | te | S);
201
203
  function z(e, t) {
202
204
  e.f = e.f & Je | t;
@@ -205,15 +207,15 @@ function Ye(e) {
205
207
  e.f & 512 || e.deps === null ? z(e, S) : z(e, te);
206
208
  }
207
209
  //#endregion
208
- //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/utils.js
210
+ //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/reactivity/utils.js
209
211
  function Xe(e) {
210
- if (e !== null) for (let t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^= ae, Xe(t.deps));
212
+ if (e !== null) for (let t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^= ie, Xe(t.deps));
211
213
  }
212
214
  function Ze(e, t, n) {
213
215
  e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), Xe(e.deps), z(e, S);
214
216
  }
215
217
  //#endregion
216
- //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/store.js
218
+ //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/reactivity/store.js
217
219
  var Qe = !1, $e = !1;
218
220
  function et(e) {
219
221
  var t = $e;
@@ -224,9 +226,358 @@ function et(e) {
224
226
  }
225
227
  }
226
228
  //#endregion
227
- //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/batch.js
228
- var tt = null, nt = null, B = null, rt = null, V = null, it = null, at = !1, ot = !1, st = null, ct = null, lt = 0, ut = 1, dt = class e {
229
- id = ut++;
229
+ //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
230
+ function tt(e) {
231
+ var t = q, n = Y;
232
+ J(null), Bn(null);
233
+ try {
234
+ return e();
235
+ } finally {
236
+ J(t), Bn(n);
237
+ }
238
+ }
239
+ //#endregion
240
+ //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/reactivity/create-subscriber.js
241
+ function nt(e) {
242
+ let t = 0, n = Ht(0), r;
243
+ return () => {
244
+ pn() && (Q(n), xn(() => (t === 0 && (r = ir(() => e(() => Kt(n)))), t += 1, () => {
245
+ We(() => {
246
+ --t, t === 0 && (r?.(), r = void 0, Kt(n));
247
+ });
248
+ })));
249
+ };
250
+ }
251
+ //#endregion
252
+ //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
253
+ var rt = D | re;
254
+ function it(e, t, n, r) {
255
+ new at(e, t, n, r);
256
+ }
257
+ var at = class {
258
+ parent;
259
+ is_pending = !1;
260
+ transform_error;
261
+ #e;
262
+ #t = P ? F : null;
263
+ #n;
264
+ #r;
265
+ #i;
266
+ #a = null;
267
+ #o = null;
268
+ #s = null;
269
+ #c = null;
270
+ #l = 0;
271
+ #u = 0;
272
+ #d = !1;
273
+ #f = /* @__PURE__ */ new Set();
274
+ #p = /* @__PURE__ */ new Set();
275
+ #m = null;
276
+ #h = nt(() => (this.#m = Ht(this.#l), () => {
277
+ this.#m = null;
278
+ }));
279
+ constructor(e, t, n, r) {
280
+ this.#e = e, this.#n = t, this.#r = (e) => {
281
+ var t = Y;
282
+ t.b = this, t.f |= 128, n(e);
283
+ }, this.parent = Y.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = Cn(() => {
284
+ if (P) {
285
+ let e = this.#t;
286
+ ke();
287
+ let t = e.data === "[!";
288
+ if (e.data.startsWith("[?")) {
289
+ let t = JSON.parse(e.data.slice(2));
290
+ this.#_(t);
291
+ } else t ? this.#y() : this.#g();
292
+ } else this.#b();
293
+ }, rt), P && (this.#e = F);
294
+ }
295
+ #g() {
296
+ try {
297
+ this.#a = wn(() => this.#r(this.#e));
298
+ } catch (e) {
299
+ this.error(e);
300
+ }
301
+ }
302
+ #_(e) {
303
+ let t = this.#n.failed, { reset: n, invoke_onerror: r } = this.#v(e);
304
+ We(r), t && (this.#s = wn(() => {
305
+ t(this.#e, () => e, () => n);
306
+ }));
307
+ }
308
+ #v(e) {
309
+ var t = !1, n = !1;
310
+ let r = () => {
311
+ if (t) {
312
+ De();
313
+ return;
314
+ }
315
+ t = !0, n && we(), this.#s !== null && An(this.#s, () => {
316
+ this.#s = null;
317
+ }), this.#S(() => {
318
+ this.#b();
319
+ });
320
+ };
321
+ return {
322
+ reset: r,
323
+ invoke_onerror: () => {
324
+ try {
325
+ n = !0, this.#n.onerror?.(e, r), n = !1;
326
+ } catch (e) {
327
+ qe(e, this.#i && this.#i.parent);
328
+ }
329
+ }
330
+ };
331
+ }
332
+ #y() {
333
+ let e = this.#n.pending;
334
+ e && (this.is_pending = !0, this.#o = wn(() => e(this.#e)), We(() => {
335
+ var e = this.#c = document.createDocumentFragment(), t = G();
336
+ e.append(t), this.#a = this.#S(() => wn(() => this.#r(t))), this.#u === 0 && (this.#e.before(e), this.#c = null, An(this.#o, () => {
337
+ this.#o = null;
338
+ }), this.#x(V));
339
+ }));
340
+ }
341
+ #b() {
342
+ try {
343
+ if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#l = 0, this.#a = wn(() => {
344
+ this.#r(this.#e);
345
+ }), this.#u > 0) {
346
+ var e = this.#c = document.createDocumentFragment();
347
+ Pn(this.#a, e);
348
+ let t = this.#n.pending;
349
+ this.#o = wn(() => t(this.#e));
350
+ } else this.#x(V);
351
+ } catch (e) {
352
+ this.error(e);
353
+ }
354
+ }
355
+ #x(e) {
356
+ this.is_pending = !1, e.transfer_effects(this.#f, this.#p);
357
+ }
358
+ defer_effect(e) {
359
+ Ze(e, this.#f, this.#p);
360
+ }
361
+ is_rendered() {
362
+ return !this.is_pending && (!this.parent || this.parent.is_rendered());
363
+ }
364
+ has_pending_snippet() {
365
+ return !!this.#n.pending;
366
+ }
367
+ #S(e) {
368
+ var t = Y, n = q, r = L;
369
+ Bn(this.#i), J(this.#i), ze(this.#i.ctx);
370
+ try {
371
+ return kt.ensure(), e();
372
+ } catch (e) {
373
+ return Ke(e), null;
374
+ } finally {
375
+ Bn(t), J(n), ze(r);
376
+ }
377
+ }
378
+ #C(e, t) {
379
+ if (!this.has_pending_snippet()) {
380
+ this.parent && this.parent.#C(e, t);
381
+ return;
382
+ }
383
+ this.#u += e, this.#u === 0 && (this.#x(t), this.#o && An(this.#o, () => {
384
+ this.#o = null;
385
+ }), this.#c &&= (this.#e.before(this.#c), null));
386
+ }
387
+ update_pending_count(e, t) {
388
+ this.#C(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, We(() => {
389
+ this.#d = !1, this.#m && Wt(this.#m, this.#l);
390
+ }));
391
+ }
392
+ get_effect_pending() {
393
+ return this.#h(), Q(this.#m);
394
+ }
395
+ error(e) {
396
+ if (!this.#n.onerror && !this.#n.failed) throw e;
397
+ V?.is_fork ? (this.#a && V.skip_effect(this.#a), this.#o && V.skip_effect(this.#o), this.#s && V.skip_effect(this.#s), V.oncommit(() => {
398
+ this.#w(e);
399
+ })) : this.#w(e);
400
+ }
401
+ #w(e) {
402
+ this.#a &&= (K(this.#a), null), this.#o &&= (K(this.#o), null), this.#s &&= (K(this.#s), null), P && (I(this.#t), je(), I(Me()));
403
+ let t = this.#n.failed, n = (e) => {
404
+ let { reset: n, invoke_onerror: r } = this.#v(e);
405
+ r(), t && (this.#s = this.#S(() => {
406
+ try {
407
+ return wn(() => {
408
+ var r = Y;
409
+ r.b = this, r.f |= 128, t(this.#e, () => e, () => n);
410
+ });
411
+ } catch (e) {
412
+ return qe(e, this.#i.parent), null;
413
+ }
414
+ }));
415
+ };
416
+ We(() => {
417
+ var t;
418
+ try {
419
+ t = this.transform_error(e);
420
+ } catch (e) {
421
+ qe(e, this.#i && this.#i.parent);
422
+ return;
423
+ }
424
+ typeof t == "object" && t && typeof t.then == "function" ? t.then(n, (e) => qe(e, this.#i && this.#i.parent)) : n(t);
425
+ });
426
+ }
427
+ };
428
+ //#endregion
429
+ //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/reactivity/async.js
430
+ function ot(e, t, n, r) {
431
+ let i = He() ? ut : pt;
432
+ var a = e.filter((e) => !e.settled), o = t.map(i);
433
+ if (n.length === 0 && a.length === 0) {
434
+ r(o);
435
+ return;
436
+ }
437
+ var s = Y, c = st(), l = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
438
+ function u(e) {
439
+ if (!(s.f & 16384)) {
440
+ c();
441
+ try {
442
+ r([...o, ...e]);
443
+ } catch (e) {
444
+ qe(e, s);
445
+ }
446
+ ct();
447
+ }
448
+ }
449
+ var d = lt();
450
+ if (n.length === 0) {
451
+ l.then(() => u([])).finally(d);
452
+ return;
453
+ }
454
+ function f() {
455
+ Promise.all(n.map((e) => /* @__PURE__ */ ft(e))).then(u).catch((e) => qe(e, s)).finally(d);
456
+ }
457
+ l ? l.then(() => {
458
+ c(), f(), ct();
459
+ }) : f();
460
+ }
461
+ function st() {
462
+ var e = Y, t = q, n = L, r = V;
463
+ return function(i = !0) {
464
+ Bn(e), J(t), ze(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
465
+ };
466
+ }
467
+ function ct(e = !0) {
468
+ Bn(null), J(null), ze(null), e && V?.deactivate();
469
+ }
470
+ function lt() {
471
+ var e = Y, t = e.b, n = V, r = !!t?.is_rendered();
472
+ return t?.update_pending_count(1, n), n.increment(r, e), () => {
473
+ t?.update_pending_count(-1, n), n.decrement(r, e);
474
+ };
475
+ }
476
+ /*#__NO_SIDE_EFFECTS__*/
477
+ function ut(e) {
478
+ var t = 2 | C;
479
+ return Y !== null && (Y.f |= re), {
480
+ ctx: L,
481
+ deps: null,
482
+ effects: null,
483
+ equals: Pe,
484
+ f: t,
485
+ fn: e,
486
+ reactions: null,
487
+ rv: 0,
488
+ v: o,
489
+ wv: 0,
490
+ parent: Y,
491
+ ac: null
492
+ };
493
+ }
494
+ var dt = Symbol("obsolete");
495
+ /*#__NO_SIDE_EFFECTS__*/
496
+ function ft(e, t, n) {
497
+ let r = Y;
498
+ r === null && pe();
499
+ var i = void 0, a = Ht(o), s = !q, c = /* @__PURE__ */ new Set();
500
+ return bn(() => {
501
+ var t = Y, n = x();
502
+ i = n.promise;
503
+ try {
504
+ Promise.resolve(e()).then(n.resolve, (e) => {
505
+ e !== de && n.reject(e);
506
+ }).finally(ct);
507
+ } catch (e) {
508
+ n.reject(e), ct();
509
+ }
510
+ var o = V;
511
+ if (s) {
512
+ if (t.f & 32768) var l = lt();
513
+ if (r.b?.is_rendered()) o.async_deriveds.get(t)?.reject(dt);
514
+ else for (let e of c.values()) e.reject(dt);
515
+ c.add(n), o.async_deriveds.set(t, n);
516
+ }
517
+ let u = (e, t = void 0) => {
518
+ l?.(), c.delete(n), t !== dt && (o.activate(), t ? (a.f |= j, Wt(a, t)) : (a.f & 8388608 && (a.f ^= j), Wt(a, e)), o.deactivate());
519
+ };
520
+ n.promise.then(u, (e) => u(null, e || "unknown"));
521
+ }), mn(() => {
522
+ for (let e of c) e.reject(dt);
523
+ }), new Promise((e) => {
524
+ function t(n) {
525
+ function r() {
526
+ n === i ? e(a) : t(i);
527
+ }
528
+ n.then(r, r);
529
+ }
530
+ t(i);
531
+ });
532
+ }
533
+ /*#__NO_SIDE_EFFECTS__*/
534
+ function B(e) {
535
+ let t = /* @__PURE__ */ ut(e);
536
+ return Le || Hn(t), t;
537
+ }
538
+ /*#__NO_SIDE_EFFECTS__*/
539
+ function pt(e) {
540
+ let t = /* @__PURE__ */ ut(e);
541
+ return t.equals = Ie, t;
542
+ }
543
+ function mt(e) {
544
+ var t = e.effects;
545
+ if (t !== null) {
546
+ e.effects = null;
547
+ for (var n = 0; n < t.length; n += 1) K(t[n]);
548
+ }
549
+ }
550
+ function ht(e) {
551
+ var t, n = Y, r = e.parent;
552
+ if (!Ln && r !== null && e.v !== o && r.f & 24576) return Te(), e.v;
553
+ Bn(r);
554
+ try {
555
+ e.f &= ~ie, mt(e), t = Qn(e);
556
+ } finally {
557
+ Bn(n);
558
+ }
559
+ return t;
560
+ }
561
+ function gt(e) {
562
+ var t = ht(e);
563
+ if (!e.equals(t) && (e.wv = Yn(), (!V?.is_fork || e.deps === null) && (V === null ? e.v = t : (V.capture(e, t, !0), xt?.capture(e, t, !0)), e.deps === null))) {
564
+ z(e, S);
565
+ return;
566
+ }
567
+ Ln || (H === null ? Ye(e) : (pn() || V?.is_fork) && H.set(e, t));
568
+ }
569
+ function _t(e) {
570
+ if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && tt(() => {
571
+ t.ac.abort(de), t.ac = null;
572
+ }), t.fn !== null && (t.teardown = ee), er(t, 0), En(t));
573
+ }
574
+ function vt(e) {
575
+ if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && tr(t);
576
+ }
577
+ //#endregion
578
+ //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/reactivity/batch.js
579
+ var yt = null, bt = null, V = null, xt = null, H = null, St = null, Ct = !1, wt = !1, Tt = null, Et = null, Dt = 0, Ot = 1, kt = class e {
580
+ id = Ot++;
230
581
  #e = !1;
231
582
  linked = !0;
232
583
  #t = null;
@@ -248,7 +599,7 @@ var tt = null, nt = null, B = null, rt = null, V = null, it = null, at = !1, ot
248
599
  is_fork = !1;
249
600
  #m = !1;
250
601
  constructor() {
251
- nt === null ? tt = nt = this : (nt.#n = this, this.#t = nt), nt = this;
602
+ bt === null ? yt = bt = this : (bt.#n = this, this.#t = bt), bt = this;
252
603
  }
253
604
  #h() {
254
605
  if (this.is_fork) return !0;
@@ -280,25 +631,25 @@ var tt = null, nt = null, B = null, rt = null, V = null, it = null, at = !1, ot
280
631
  this.#p.add(e);
281
632
  }
282
633
  #g() {
283
- this.#e = !0, lt++ > 1e3 && (this.#S(), pt());
634
+ this.#e = !0, Dt++ > 1e3 && (this.#S(), jt());
284
635
  for (let e of this.#u) this.#d.delete(e), z(e, C), this.schedule(e);
285
636
  for (let e of this.#d) z(e, te), this.schedule(e);
286
637
  let t = this.#c;
287
638
  this.#c = [], this.apply();
288
- var n = st = [], r = [], i = ct = [];
639
+ var n = Tt = [], r = [], i = Et = [];
289
640
  for (let e of t) try {
290
641
  this.#_(e, n, r);
291
642
  } catch (t) {
292
- throw bt(e), this.#h() || this.discard(), t;
643
+ throw Rt(e), this.#h() || this.discard(), t;
293
644
  }
294
- if (B = null, i.length > 0) {
645
+ if (V = null, i.length > 0) {
295
646
  var a = e.ensure();
296
647
  for (let e of i) a.schedule(e);
297
648
  }
298
- if (st = null, ct = null, this.#h()) {
649
+ if (Tt = null, Et = null, this.#h()) {
299
650
  this.#b(r), this.#b(n);
300
- for (let [e, t] of this.#f) yt(e, t);
301
- i.length > 0 && B.#g();
651
+ for (let [e, t] of this.#f) Lt(e, t);
652
+ i.length > 0 && V.#g();
302
653
  return;
303
654
  }
304
655
  let o = this.#v();
@@ -308,9 +659,9 @@ var tt = null, nt = null, B = null, rt = null, V = null, it = null, at = !1, ot
308
659
  }
309
660
  this.#u.clear(), this.#d.clear();
310
661
  for (let e of this.#r) e(this);
311
- this.#r.clear(), rt = this, ht(r), ht(n), rt = null, this.#s?.resolve();
312
- var s = B;
313
- if (this.#a === 0 && (this.#c.length === 0 || s !== null) && (this.#S(), Ie && (this.#x(), B = s)), this.#c.length > 0) if (s !== null) {
662
+ this.#r.clear(), xt = this, Nt(r), Nt(n), xt = null, this.#s?.resolve();
663
+ var s = V;
664
+ if (this.#a === 0 && (this.#c.length === 0 || s !== null) && (this.#S(), Le && (this.#x(), V = s)), this.#c.length > 0) if (s !== null) {
314
665
  let e = s;
315
666
  e.#c.push(...this.#c.filter((t) => !e.#c.includes(t)));
316
667
  } else s = this;
@@ -321,7 +672,7 @@ var tt = null, nt = null, B = null, rt = null, V = null, it = null, at = !1, ot
321
672
  for (var r = e.first; r !== null;) {
322
673
  var i = r.f, a = (i & 96) != 0;
323
674
  if (!(a && i & 1024 || i & 8192 || this.#f.has(r)) && r.fn !== null) {
324
- a ? r.f ^= S : i & 4 ? t.push(r) : Ie && i & 16777224 ? n.push(r) : Zn(r) && (i & 16 && this.#d.add(r), nr(r));
675
+ a ? r.f ^= S : i & 4 ? t.push(r) : Le && i & 16777224 ? n.push(r) : Xn(r) && (i & 16 && this.#d.add(r), tr(r));
325
676
  var o = r.first;
326
677
  if (o !== null) {
327
678
  r = o;
@@ -353,10 +704,10 @@ var tt = null, nt = null, B = null, rt = null, V = null, it = null, at = !1, ot
353
704
  let e = this.async_deriveds.get(t);
354
705
  e && n.promise.then(e.resolve).catch(e.reject);
355
706
  }
356
- this.transfer_effects(e.#u, e.#d);
707
+ e.async_deriveds.clear(), this.transfer_effects(e.#u, e.#d);
357
708
  let t = (e) => {
358
709
  var n = e.reactions;
359
- if (n !== null) for (let e of n) {
710
+ if (n !== null && !(e.f & 2 && !(e.f & 6144))) for (let e of n) {
360
711
  var r = e.f;
361
712
  if (r & 2) t(e);
362
713
  else {
@@ -366,71 +717,74 @@ var tt = null, nt = null, B = null, rt = null, V = null, it = null, at = !1, ot
366
717
  }
367
718
  };
368
719
  for (let e of this.current.keys()) t(e);
369
- this.oncommit(() => e.discard()), e.#S(), B = this, this.#g();
720
+ this.oncommit(() => e.discard()), e.#S(), V = this, this.#g();
370
721
  }
371
722
  #b(e) {
372
723
  for (var t = 0; t < e.length; t += 1) Ze(e[t], this.#u, this.#d);
373
724
  }
374
725
  capture(e, t, n = !1) {
375
- e.v !== o && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, n]), V?.set(e, t)), this.is_fork || (e.v = t);
726
+ e.v !== o && !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);
376
727
  }
377
728
  activate() {
378
- B = this;
729
+ V = this;
379
730
  }
380
731
  deactivate() {
381
- B = null, V = null;
732
+ V = null, H = null;
382
733
  }
383
734
  flush() {
384
735
  try {
385
- ot = !0, B = this, this.#g();
736
+ wt = !0, V = this, this.#g();
386
737
  } finally {
387
- lt = 0, it = null, st = null, ct = null, ot = !1, B = null, V = null, zt.clear();
738
+ Dt = 0, St = null, Tt = null, Et = null, wt = !1, V = null, H = null, Bt.clear();
388
739
  }
389
740
  }
390
741
  discard() {
391
742
  for (let e of this.#i) e(this);
392
- this.#i.clear(), this.#S(), this.#s?.resolve();
743
+ this.#i.clear();
744
+ for (let e of this.async_deriveds.values()) e.reject(dt);
745
+ this.#S(), this.#s?.resolve();
393
746
  }
394
747
  register_created_effect(e) {
395
748
  this.#l.push(e);
396
749
  }
397
750
  #x() {
398
- for (let l = tt; l !== null; l = l.#n) {
399
- var e = l.id < this.id, t = [];
751
+ for (let u = yt; u !== null; u = u.#n) {
752
+ var e = u.id < this.id, t = [];
400
753
  for (let [r, [i, a]] of this.current) {
401
- if (l.current.has(r)) {
402
- var n = l.current.get(r)[0];
403
- if (e && i !== n) l.current.set(r, [i, a]);
754
+ if (u.current.has(r)) {
755
+ var n = u.current.get(r)[0];
756
+ if (e && i !== n) u.current.set(r, [i, a]);
404
757
  else continue;
405
758
  }
406
759
  t.push(r);
407
760
  }
408
761
  if (e) for (let [e, t] of this.async_deriveds) {
409
- let n = l.async_deriveds.get(e);
762
+ let n = u.async_deriveds.get(e);
410
763
  n && t.promise.then(n.resolve).catch(n.reject);
411
764
  }
412
- if (l.#e) {
413
- var r = [...l.current.keys()].filter((e) => !l.current.get(e)[1] && !this.current.has(e));
414
- if (r.length === 0) e && l.discard();
765
+ var r = [...u.current.keys()].filter((e) => !u.current.get(e)[1]);
766
+ if (!(!u.#e || r.length === 0)) {
767
+ var i = r.filter((e) => !this.current.has(e));
768
+ if (i.length === 0) e && u.discard();
415
769
  else if (t.length > 0) {
416
- if (e) for (let e of this.#p) l.unskip_effect(e, (e) => {
417
- e.f & 4194320 ? l.schedule(e) : l.#b([e]);
770
+ if (e) for (let e of this.#p) u.unskip_effect(e, (e) => {
771
+ e.f & 4194320 ? u.schedule(e) : u.#b([e]);
418
772
  });
419
- l.activate();
420
- var i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Map();
421
- for (var o of t) gt(o, r, i, a);
422
- a = /* @__PURE__ */ new Map();
423
- var s = [...l.current].filter(([e, t]) => {
773
+ u.activate();
774
+ var a = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
775
+ for (var s of t) Pt(s, i, a, o);
776
+ o = /* @__PURE__ */ new Map();
777
+ var c = [...u.current].filter(([e, t]) => {
424
778
  let n = this.current.get(e);
425
779
  return n ? n[0] !== t[0] || n[1] !== t[1] : !0;
426
780
  }).map(([e]) => e);
427
- if (s.length > 0) for (let e of this.#l) !(e.f & 155648) && _t(e, s, a) && (e.f & 4194320 ? (z(e, C), l.schedule(e)) : l.#u.add(e));
428
- if (l.#c.length > 0 && !l.#m) {
429
- l.apply();
430
- for (var c of l.#c) l.#_(c, [], []);
431
- l.#c = [];
781
+ if (c.length > 0) for (let e of this.#l) !(e.f & 155648) && Ft(e, c, o) && (e.f & 4194320 ? (z(e, C), u.schedule(e)) : u.#u.add(e));
782
+ if (u.#c.length > 0 && !u.#m) {
783
+ u.apply();
784
+ for (var l of u.#c) u.#_(l, [], []);
785
+ u.#c = [];
432
786
  }
433
- l.deactivate();
787
+ u.deactivate();
434
788
  }
435
789
  }
436
790
  }
@@ -465,22 +819,22 @@ var tt = null, nt = null, B = null, rt = null, V = null, it = null, at = !1, ot
465
819
  return (this.#s ??= x()).promise;
466
820
  }
467
821
  static ensure() {
468
- if (B === null) {
469
- let t = B = new e();
470
- !ot && !at && We(() => {
822
+ if (V === null) {
823
+ let t = V = new e();
824
+ !wt && !Ct && We(() => {
471
825
  t.#e || t.flush();
472
826
  });
473
827
  }
474
- return B;
828
+ return V;
475
829
  }
476
830
  apply() {
477
- if (!Ie || !this.is_fork && this.#t === null && this.#n === null) {
478
- V = null;
831
+ if (!Le || !this.is_fork && this.#t === null && this.#n === null) {
832
+ H = null;
479
833
  return;
480
834
  }
481
- V = /* @__PURE__ */ new Map();
482
- for (let [e, [t]] of this.current) V.set(e, t);
483
- for (let t = tt; t !== null; t = t.#n) if (!(t === this || t.is_fork)) {
835
+ H = /* @__PURE__ */ new Map();
836
+ for (let [e, [t]] of this.current) H.set(e, t);
837
+ for (let t = yt; t !== null; t = t.#n) if (!(t === this || t.is_fork)) {
484
838
  var e = !1;
485
839
  if (t.id < this.id) {
486
840
  for (let [n, [, r]] of t.current) if (!r && this.current.has(n)) {
@@ -488,18 +842,18 @@ var tt = null, nt = null, B = null, rt = null, V = null, it = null, at = !1, ot
488
842
  break;
489
843
  }
490
844
  }
491
- if (!e) for (let [e, n] of t.previous) V.has(e) || V.set(e, n);
845
+ if (!e) for (let [e, n] of t.previous) H.has(e) || H.set(e, n);
492
846
  }
493
847
  }
494
848
  schedule(e) {
495
- if (it = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
849
+ if (St = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
496
850
  e.b.defer_effect(e);
497
851
  return;
498
852
  }
499
853
  for (var t = e; t.parent !== null;) {
500
854
  t = t.parent;
501
855
  var n = t.f;
502
- if (st !== null && t === J && (Ie || (K === null || !(K.f & 2)) && !Qe)) return;
856
+ if (Tt !== null && t === Y && (Le || (q === null || !(q.f & 2)) && !Qe)) return;
503
857
  if (n & 96) {
504
858
  if (!(n & 1024)) return;
505
859
  t.f ^= S;
@@ -510,492 +864,163 @@ var tt = null, nt = null, B = null, rt = null, V = null, it = null, at = !1, ot
510
864
  #S() {
511
865
  if (this.linked) {
512
866
  var e = this.#t, t = this.#n;
513
- e === null ? tt = t : e.#n = t, t === null ? nt = e : t.#t = e, this.linked = !1;
867
+ e === null ? yt = t : e.#n = t, t === null ? bt = e : t.#t = e, this.linked = !1;
514
868
  }
515
869
  }
516
870
  };
517
- function ft(e) {
518
- var t = at;
519
- at = !0;
871
+ function At(e) {
872
+ var t = Ct;
873
+ Ct = !0;
520
874
  try {
521
875
  var n;
522
- for (e && (B !== null && !B.is_fork && B.flush(), n = e());;) {
523
- if (Ge(), B === null) return n;
524
- B.flush();
876
+ for (e && (V !== null && !V.is_fork && V.flush(), n = e());;) {
877
+ if (Ge(), V === null) return n;
878
+ V.flush();
525
879
  }
526
880
  } finally {
527
- at = t;
881
+ Ct = t;
528
882
  }
529
883
  }
530
- function pt() {
884
+ function jt() {
531
885
  try {
532
886
  ve();
533
887
  } catch (e) {
534
- qe(e, it);
888
+ qe(e, St);
535
889
  }
536
890
  }
537
- var mt = null;
538
- function ht(e) {
891
+ var Mt = null;
892
+ function Nt(e) {
539
893
  var t = e.length;
540
894
  if (t !== 0) {
541
895
  for (var n = 0; n < t;) {
542
896
  var r = e[n++];
543
- if (!(r.f & 24576) && Zn(r) && (mt = /* @__PURE__ */ new Set(), nr(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && An(r), mt?.size > 0)) {
544
- zt.clear();
545
- for (let e of mt) {
897
+ if (!(r.f & 24576) && Xn(r) && (Mt = /* @__PURE__ */ new Set(), tr(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && kn(r), Mt?.size > 0)) {
898
+ Bt.clear();
899
+ for (let e of Mt) {
546
900
  if (e.f & 24576) continue;
547
901
  let t = [e], n = e.parent;
548
- for (; n !== null;) mt.has(n) && (mt.delete(n), t.push(n)), n = n.parent;
902
+ for (; n !== null;) Mt.has(n) && (Mt.delete(n), t.push(n)), n = n.parent;
549
903
  for (let e = t.length - 1; e >= 0; e--) {
550
904
  let n = t[e];
551
- n.f & 24576 || nr(n);
905
+ n.f & 24576 || tr(n);
552
906
  }
553
907
  }
554
- mt.clear();
908
+ Mt.clear();
555
909
  }
556
910
  }
557
- mt = null;
911
+ Mt = null;
558
912
  }
559
913
  }
560
- function gt(e, t, n, r) {
914
+ function Pt(e, t, n, r) {
561
915
  if (!n.has(e) && (n.add(e), e.reactions !== null)) for (let i of e.reactions) {
562
916
  let e = i.f;
563
- e & 2 ? gt(i, t, n, r) : e & 4194320 && !(e & 2048) && _t(i, t, r) && (z(i, C), vt(i));
917
+ e & 2 ? Pt(i, t, n, r) : e & 4194320 && !(e & 2048) && Ft(i, t, r) && (z(i, C), It(i));
564
918
  }
565
919
  }
566
- function _t(e, t, n) {
920
+ function Ft(e, t, n) {
567
921
  let r = n.get(e);
568
922
  if (r !== void 0) return r;
569
923
  if (e.deps !== null) for (let r of e.deps) {
570
924
  if (u.call(t, r)) return !0;
571
- if (r.f & 2 && _t(r, t, n)) return n.set(r, !0), !0;
925
+ if (r.f & 2 && Ft(r, t, n)) return n.set(r, !0), !0;
572
926
  }
573
927
  return n.set(e, !1), !1;
574
928
  }
575
- function vt(e) {
576
- B.schedule(e);
929
+ function It(e) {
930
+ V.schedule(e);
577
931
  }
578
- function yt(e, t) {
932
+ function Lt(e, t) {
579
933
  if (!(e.f & 32 && e.f & 1024)) {
580
934
  e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), z(e, S);
581
- for (var n = e.first; n !== null;) yt(n, t), n = n.next;
935
+ for (var n = e.first; n !== null;) Lt(n, t), n = n.next;
582
936
  }
583
937
  }
584
- function bt(e) {
938
+ function Rt(e) {
585
939
  z(e, S);
586
- for (var t = e.first; t !== null;) bt(t), t = t.next;
587
- }
588
- //#endregion
589
- //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/reactivity/create-subscriber.js
590
- function xt(e) {
591
- let t = 0, n = Vt(0), r;
592
- return () => {
593
- mn() && (Z(n), Sn(() => (t === 0 && (r = ar(() => e(() => Gt(n)))), t += 1, () => {
594
- We(() => {
595
- --t, t === 0 && (r?.(), r = void 0, Gt(n));
596
- });
597
- })));
598
- };
599
- }
600
- //#endregion
601
- //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
602
- var St = E | ie;
603
- function Ct(e, t, n, r) {
604
- new wt(e, t, n, r);
605
- }
606
- var wt = class {
607
- parent;
608
- is_pending = !1;
609
- transform_error;
610
- #e;
611
- #t = P ? I : null;
612
- #n;
613
- #r;
614
- #i;
615
- #a = null;
616
- #o = null;
617
- #s = null;
618
- #c = null;
619
- #l = 0;
620
- #u = 0;
621
- #d = !1;
622
- #f = /* @__PURE__ */ new Set();
623
- #p = /* @__PURE__ */ new Set();
624
- #m = null;
625
- #h = xt(() => (this.#m = Vt(this.#l), () => {
626
- this.#m = null;
627
- }));
628
- constructor(e, t, n, r) {
629
- this.#e = e, this.#n = t, this.#r = (e) => {
630
- var t = J;
631
- t.b = this, t.f |= 128, n(e);
632
- }, this.parent = J.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = wn(() => {
633
- if (P) {
634
- let e = this.#t;
635
- Oe();
636
- let t = e.data === "[!";
637
- if (e.data.startsWith("[?")) {
638
- let t = JSON.parse(e.data.slice(2));
639
- this.#_(t);
640
- } else t ? this.#v() : this.#g();
641
- } else this.#y();
642
- }, St), P && (this.#e = I);
643
- }
644
- #g() {
645
- try {
646
- this.#a = Tn(() => this.#r(this.#e));
647
- } catch (e) {
648
- this.error(e);
649
- }
650
- }
651
- #_(e) {
652
- let t = this.#n.failed;
653
- t && (this.#s = Tn(() => {
654
- t(this.#e, () => e, () => () => {});
655
- }));
656
- }
657
- #v() {
658
- let e = this.#n.pending;
659
- e && (this.is_pending = !0, this.#o = Tn(() => e(this.#e)), We(() => {
660
- var e = this.#c = document.createDocumentFragment(), t = $t();
661
- e.append(t), this.#a = this.#x(() => Tn(() => this.#r(t))), this.#u === 0 && (this.#e.before(e), this.#c = null, jn(this.#o, () => {
662
- this.#o = null;
663
- }), this.#b(B));
664
- }));
665
- }
666
- #y() {
667
- try {
668
- if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#l = 0, this.#a = Tn(() => {
669
- this.#r(this.#e);
670
- }), this.#u > 0) {
671
- var e = this.#c = document.createDocumentFragment();
672
- Fn(this.#a, e);
673
- let t = this.#n.pending;
674
- this.#o = Tn(() => t(this.#e));
675
- } else this.#b(B);
676
- } catch (e) {
677
- this.error(e);
678
- }
679
- }
680
- #b(e) {
681
- this.is_pending = !1, e.transfer_effects(this.#f, this.#p);
682
- }
683
- defer_effect(e) {
684
- Ze(e, this.#f, this.#p);
685
- }
686
- is_rendered() {
687
- return !this.is_pending && (!this.parent || this.parent.is_rendered());
688
- }
689
- has_pending_snippet() {
690
- return !!this.#n.pending;
691
- }
692
- #x(e) {
693
- var t = J, n = K, r = R;
694
- Vn(this.#i), q(this.#i), Re(this.#i.ctx);
695
- try {
696
- return dt.ensure(), e();
697
- } catch (e) {
698
- return Ke(e), null;
699
- } finally {
700
- Vn(t), q(n), Re(r);
701
- }
702
- }
703
- #S(e, t) {
704
- if (!this.has_pending_snippet()) {
705
- this.parent && this.parent.#S(e, t);
706
- return;
707
- }
708
- this.#u += e, this.#u === 0 && (this.#b(t), this.#o && jn(this.#o, () => {
709
- this.#o = null;
710
- }), this.#c &&= (this.#e.before(this.#c), null));
711
- }
712
- update_pending_count(e, t) {
713
- this.#S(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, We(() => {
714
- this.#d = !1, this.#m && Ut(this.#m, this.#l);
715
- }));
716
- }
717
- get_effect_pending() {
718
- return this.#h(), Z(this.#m);
719
- }
720
- error(e) {
721
- if (!this.#n.onerror && !this.#n.failed) throw e;
722
- B?.is_fork ? (this.#a && B.skip_effect(this.#a), this.#o && B.skip_effect(this.#o), this.#s && B.skip_effect(this.#s), B.oncommit(() => {
723
- this.#C(e);
724
- })) : this.#C(e);
725
- }
726
- #C(e) {
727
- this.#a &&= (G(this.#a), null), this.#o &&= (G(this.#o), null), this.#s &&= (G(this.#s), null), P && (L(this.#t), Ae(), L(je()));
728
- var t = this.#n.onerror;
729
- let n = this.#n.failed;
730
- var r = !1, i = !1;
731
- let a = () => {
732
- if (r) {
733
- De();
734
- return;
735
- }
736
- r = !0, i && we(), this.#s !== null && jn(this.#s, () => {
737
- this.#s = null;
738
- }), this.#x(() => {
739
- this.#y();
740
- });
741
- }, o = (e) => {
742
- try {
743
- i = !0, t?.(e, a), i = !1;
744
- } catch (e) {
745
- qe(e, this.#i && this.#i.parent);
746
- }
747
- n && (this.#s = this.#x(() => {
748
- try {
749
- return Tn(() => {
750
- var t = J;
751
- t.b = this, t.f |= 128, n(this.#e, () => e, () => a);
752
- });
753
- } catch (e) {
754
- return qe(e, this.#i.parent), null;
755
- }
756
- }));
757
- };
758
- We(() => {
759
- var t;
760
- try {
761
- t = this.transform_error(e);
762
- } catch (e) {
763
- qe(e, this.#i && this.#i.parent);
764
- return;
765
- }
766
- typeof t == "object" && t && typeof t.then == "function" ? t.then(o, (e) => qe(e, this.#i && this.#i.parent)) : o(t);
767
- });
768
- }
769
- };
770
- //#endregion
771
- //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/async.js
772
- function Tt(e, t, n, r) {
773
- let i = Ve() ? kt : Mt;
774
- var a = e.filter((e) => !e.settled);
775
- if (n.length === 0 && a.length === 0) {
776
- r(t.map(i));
777
- return;
778
- }
779
- var o = J, s = Et(), c = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
780
- function l(e) {
781
- if (!(o.f & 16384)) {
782
- s();
783
- try {
784
- r(e);
785
- } catch (e) {
786
- qe(e, o);
787
- }
788
- Dt();
789
- }
790
- }
791
- var u = Ot();
792
- if (n.length === 0) {
793
- c.then(() => l(t.map(i))).finally(u);
794
- return;
795
- }
796
- function d() {
797
- Promise.all(n.map((e) => /* @__PURE__ */ jt(e))).then((e) => l([...t.map(i), ...e])).catch((e) => qe(e, o)).finally(u);
798
- }
799
- c ? c.then(() => {
800
- s(), d(), Dt();
801
- }) : d();
802
- }
803
- function Et() {
804
- var e = J, t = K, n = R, r = B;
805
- return function(i = !0) {
806
- Vn(e), q(t), Re(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
807
- };
808
- }
809
- function Dt(e = !0) {
810
- Vn(null), q(null), Re(null), e && B?.deactivate();
811
- }
812
- function Ot() {
813
- var e = J, t = e.b, n = B, r = !!t?.is_rendered();
814
- return t?.update_pending_count(1, n), n.increment(r, e), () => {
815
- t?.update_pending_count(-1, n), n.decrement(r, e);
816
- };
817
- }
818
- /*#__NO_SIDE_EFFECTS__*/
819
- function kt(e) {
820
- var t = 2 | C;
821
- return J !== null && (J.f |= ie), {
822
- ctx: R,
823
- deps: null,
824
- effects: null,
825
- equals: Ne,
826
- f: t,
827
- fn: e,
828
- reactions: null,
829
- rv: 0,
830
- v: o,
831
- wv: 0,
832
- parent: J,
833
- ac: null
834
- };
835
- }
836
- var At = Symbol("obsolete");
837
- /*#__NO_SIDE_EFFECTS__*/
838
- function jt(e, t, n) {
839
- let r = J;
840
- r === null && pe();
841
- var i = void 0, a = Vt(o), s = !K, c = /* @__PURE__ */ new Set();
842
- return xn(() => {
843
- var t = J, n = x();
844
- i = n.promise;
845
- try {
846
- Promise.resolve(e()).then(n.resolve, (e) => {
847
- e !== de && n.reject(e);
848
- }).finally(Dt);
849
- } catch (e) {
850
- n.reject(e), Dt();
851
- }
852
- var o = B;
853
- if (s) {
854
- if (t.f & 32768) var l = Ot();
855
- if (r.b?.is_rendered()) o.async_deriveds.get(t)?.reject(At);
856
- else for (let e of c.values()) e.reject(At);
857
- c.add(n), o.async_deriveds.set(t, n);
858
- }
859
- let u = (e, t = void 0) => {
860
- l?.(), c.delete(n), t !== At && (o.activate(), t ? (a.f |= A, Ut(a, t)) : (a.f & 8388608 && (a.f ^= A), Ut(a, e)), o.deactivate());
861
- };
862
- n.promise.then(u, (e) => u(null, e || "unknown"));
863
- }), hn(() => {
864
- for (let e of c) e.reject(At);
865
- }), new Promise((e) => {
866
- function t(n) {
867
- function r() {
868
- n === i ? e(a) : t(i);
869
- }
870
- n.then(r, r);
871
- }
872
- t(i);
873
- });
874
- }
875
- /*#__NO_SIDE_EFFECTS__*/
876
- function H(e) {
877
- let t = /* @__PURE__ */ kt(e);
878
- return Ie || Un(t), t;
879
- }
880
- /*#__NO_SIDE_EFFECTS__*/
881
- function Mt(e) {
882
- let t = /* @__PURE__ */ kt(e);
883
- return t.equals = Fe, t;
884
- }
885
- function Nt(e) {
886
- var t = e.effects;
887
- if (t !== null) {
888
- e.effects = null;
889
- for (var n = 0; n < t.length; n += 1) G(t[n]);
890
- }
891
- }
892
- function Pt(e) {
893
- var t, n = J, r = e.parent;
894
- if (!Rn && r !== null && e.v !== o && r.f & 24576) return Te(), e.v;
895
- Vn(r);
896
- try {
897
- e.f &= ~ae, Nt(e), t = $n(e);
898
- } finally {
899
- Vn(n);
900
- }
901
- return t;
902
- }
903
- function Ft(e) {
904
- var t = Pt(e);
905
- if (!e.equals(t) && (e.wv = Xn(), (!B?.is_fork || e.deps === null) && (B === null ? e.v = t : (B.capture(e, t, !0), rt?.capture(e, t, !0)), e.deps === null))) {
906
- z(e, S);
907
- return;
908
- }
909
- Rn || (V === null ? Ye(e) : (mn() || B?.is_fork) && V.set(e, t));
910
- }
911
- function It(e) {
912
- if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(de), t.fn !== null && (t.teardown = ee), t.ac = null, tr(t, 0), Dn(t));
913
- }
914
- function Lt(e) {
915
- if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && nr(t);
940
+ for (var t = e.first; t !== null;) Rt(t), t = t.next;
916
941
  }
917
942
  //#endregion
918
- //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/sources.js
919
- var Rt = /* @__PURE__ */ new Set(), zt = /* @__PURE__ */ new Map(), Bt = !1;
920
- function Vt(e, t) {
943
+ //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/reactivity/sources.js
944
+ var zt = /* @__PURE__ */ new Set(), Bt = /* @__PURE__ */ new Map(), Vt = !1;
945
+ function Ht(e, t) {
921
946
  return {
922
947
  f: 0,
923
948
  v: e,
924
949
  reactions: null,
925
- equals: Ne,
950
+ equals: Pe,
926
951
  rv: 0,
927
952
  wv: 0
928
953
  };
929
954
  }
930
955
  /*#__NO_SIDE_EFFECTS__*/
931
956
  function U(e, t) {
932
- let n = Vt(e, t);
933
- return Un(n), n;
957
+ let n = Ht(e, t);
958
+ return Hn(n), n;
934
959
  }
935
960
  /*#__NO_SIDE_EFFECTS__*/
936
- function Ht(e, t = !1, n = !0) {
937
- let r = Vt(e);
938
- return t || (r.equals = Fe), Le && n && R !== null && R.l !== null && (R.l.s ??= []).push(r), r;
961
+ function Ut(e, t = !1, n = !0) {
962
+ let r = Ht(e);
963
+ return t || (r.equals = Ie), Re && n && L !== null && L.l !== null && (L.l.s ??= []).push(r), r;
939
964
  }
940
965
  function W(e, t, n = !1) {
941
- return K !== null && (!Bn || K.f & 131072) && Ve() && K.f & 4325394 && (Hn === null || !Hn.has(e)) && Ce(), Ut(e, n ? qt(t) : t, ct);
966
+ return q !== null && (!zn || q.f & 131072) && He() && q.f & 4325394 && (Vn === null || !Vn.has(e)) && Ce(), Wt(e, n ? Jt(t) : t, Et);
942
967
  }
943
- function Ut(e, t, n = null) {
968
+ function Wt(e, t, n = null) {
944
969
  if (!e.equals(t)) {
945
- zt.set(e, Rn ? t : e.v);
946
- var r = dt.ensure();
970
+ Bt.set(e, Ln ? t : e.v);
971
+ var r = kt.ensure();
947
972
  if (r.capture(e, t), e.f & 2) {
948
973
  let t = e;
949
- e.f & 2048 && Pt(t), V === null && Ye(t);
974
+ e.f & 2048 && ht(t), H === null && Ye(t);
950
975
  }
951
- e.wv = Xn(), Kt(e, C, n), Ve() && J !== null && J.f & 1024 && !(J.f & 96) && (Wn === null ? Gn([e]) : Wn.push(e)), !r.is_fork && Rt.size > 0 && !Bt && Wt();
976
+ e.wv = Yn(), qt(e, C, n), He() && Y !== null && Y.f & 1024 && !(Y.f & 96) && (Un === null ? Wn([e]) : Un.push(e)), !r.is_fork && zt.size > 0 && !Vt && Gt();
952
977
  }
953
978
  return t;
954
979
  }
955
- function Wt() {
956
- Bt = !1;
957
- for (let e of Rt) {
980
+ function Gt() {
981
+ Vt = !1;
982
+ for (let e of zt) {
958
983
  e.f & 1024 && z(e, te);
959
984
  let t;
960
985
  try {
961
- t = Zn(e);
986
+ t = Xn(e);
962
987
  } catch {
963
988
  t = !0;
964
989
  }
965
- t && nr(e);
990
+ t && tr(e);
966
991
  }
967
- Rt.clear();
992
+ zt.clear();
968
993
  }
969
- function Gt(e) {
994
+ function Kt(e) {
970
995
  W(e, e.v + 1);
971
996
  }
972
- function Kt(e, t, n) {
997
+ function qt(e, t, n) {
973
998
  var r = e.reactions;
974
- if (r !== null) for (var i = Ve(), a = r.length, o = 0; o < a; o++) {
999
+ if (r !== null) for (var i = He(), a = r.length, o = 0; o < a; o++) {
975
1000
  var s = r[o], c = s.f;
976
- if (!(!i && s === J)) {
1001
+ if (!(!i && s === Y)) {
977
1002
  var l = (c & C) === 0;
978
- if (l && z(s, t), c & 131072) Rt.add(s);
1003
+ if (l && z(s, t), c & 131072) zt.add(s);
979
1004
  else if (c & 2) {
980
1005
  var u = s;
981
- V?.delete(u), c & 65536 || (c & 512 && (J === null || !(J.f & 2097152)) && (s.f |= ae), Kt(u, te, n));
1006
+ H?.delete(u), c & 65536 || (c & 512 && (Y === null || !(Y.f & 2097152)) && (s.f |= ie), qt(u, te, n));
982
1007
  } else if (l) {
983
1008
  var d = s;
984
- c & 16 && mt !== null && mt.add(d), n === null ? vt(d) : n.push(d);
1009
+ c & 16 && Mt !== null && Mt.add(d), n === null ? It(d) : n.push(d);
985
1010
  }
986
1011
  }
987
1012
  }
988
1013
  }
989
- function qt(e) {
990
- if (typeof e != "object" || !e || j in e) return e;
1014
+ function Jt(e) {
1015
+ if (typeof e != "object" || !e || M in e) return e;
991
1016
  let t = v(e);
992
1017
  if (t !== g && t !== _) return e;
993
- var n = /* @__PURE__ */ new Map(), r = c(e), i = /* @__PURE__ */ U(0), a = null, s = Jn, l = (e) => {
994
- if (Jn === s) return e();
995
- var t = K, n = Jn;
996
- q(null), Yn(s);
1018
+ var n = /* @__PURE__ */ new Map(), r = c(e), i = /* @__PURE__ */ U(0), a = null, s = qn, l = (e) => {
1019
+ if (qn === s) return e();
1020
+ var t = q, n = qn;
1021
+ J(null), Jn(s);
997
1022
  var r = e();
998
- return q(t), Yn(n), r;
1023
+ return J(t), Jn(n), r;
999
1024
  };
1000
1025
  return r && n.set("length", /* @__PURE__ */ U(e.length, a)), new Proxy(e, {
1001
1026
  defineProperty(e, t, r) {
@@ -1011,16 +1036,16 @@ function qt(e) {
1011
1036
  if (r === void 0) {
1012
1037
  if (t in e) {
1013
1038
  let e = l(() => /* @__PURE__ */ U(o, a));
1014
- n.set(t, e), Gt(i);
1039
+ n.set(t, e), Kt(i);
1015
1040
  }
1016
- } else W(r, o), Gt(i);
1041
+ } else W(r, o), Kt(i);
1017
1042
  return !0;
1018
1043
  },
1019
1044
  get(t, r, i) {
1020
- if (r === j) return e;
1045
+ if (r === M) return e;
1021
1046
  var s = n.get(r), c = r in t;
1022
- if (s === void 0 && (!c || m(t, r)?.writable) && (s = l(() => /* @__PURE__ */ U(qt(c ? t[r] : o), a)), n.set(r, s)), s !== void 0) {
1023
- var u = Z(s);
1047
+ if (s === void 0 && (!c || m(t, r)?.writable) && (s = l(() => /* @__PURE__ */ U(Jt(c ? t[r] : o), a)), n.set(r, s)), s !== void 0) {
1048
+ var u = Q(s);
1024
1049
  return u === o ? void 0 : u;
1025
1050
  }
1026
1051
  return Reflect.get(t, r, i);
@@ -1029,7 +1054,7 @@ function qt(e) {
1029
1054
  var r = Reflect.getOwnPropertyDescriptor(e, t);
1030
1055
  if (r && "value" in r) {
1031
1056
  var i = n.get(t);
1032
- i && (r.value = Z(i));
1057
+ i && (r.value = Q(i));
1033
1058
  } else if (r === void 0) {
1034
1059
  var a = n.get(t), s = a?.v;
1035
1060
  if (a !== void 0 && s !== o) return {
@@ -1042,9 +1067,9 @@ function qt(e) {
1042
1067
  return r;
1043
1068
  },
1044
1069
  has(e, t) {
1045
- if (t === j) return !0;
1070
+ if (t === M) return !0;
1046
1071
  var r = n.get(t), i = r !== void 0 && r.v !== o || Reflect.has(e, t);
1047
- return (r !== void 0 || J !== null && (!i || m(e, t)?.writable)) && (r === void 0 && (r = l(() => /* @__PURE__ */ U(i ? qt(e[t]) : o, a)), n.set(t, r)), Z(r) === o) ? !1 : i;
1072
+ return (r !== void 0 || Y !== null && (!i || m(e, t)?.writable)) && (r === void 0 && (r = l(() => /* @__PURE__ */ U(i ? Jt(e[t]) : o, a)), n.set(t, r)), Q(r) === o) ? !1 : i;
1048
1073
  },
1049
1074
  set(e, t, s, c) {
1050
1075
  var u = n.get(t), d = t in e;
@@ -1052,10 +1077,10 @@ function qt(e) {
1052
1077
  var p = n.get(f + "");
1053
1078
  p === void 0 ? f in e && (p = l(() => /* @__PURE__ */ U(o, a)), n.set(f + "", p)) : W(p, o);
1054
1079
  }
1055
- if (u === void 0) (!d || m(e, t)?.writable) && (u = l(() => /* @__PURE__ */ U(void 0, a)), W(u, qt(s)), n.set(t, u));
1080
+ if (u === void 0) (!d || m(e, t)?.writable) && (u = l(() => /* @__PURE__ */ U(void 0, a)), W(u, Jt(s)), n.set(t, u));
1056
1081
  else {
1057
1082
  d = u.v !== o;
1058
- var h = l(() => qt(s));
1083
+ var h = l(() => Jt(s));
1059
1084
  W(u, h);
1060
1085
  }
1061
1086
  var g = Reflect.getOwnPropertyDescriptor(e, t);
@@ -1064,12 +1089,12 @@ function qt(e) {
1064
1089
  var _ = n.get("length"), v = Number(t);
1065
1090
  Number.isInteger(v) && v >= _.v && W(_, v + 1);
1066
1091
  }
1067
- Gt(i);
1092
+ Kt(i);
1068
1093
  }
1069
1094
  return !0;
1070
1095
  },
1071
1096
  ownKeys(e) {
1072
- Z(i);
1097
+ Q(i);
1073
1098
  var t = Reflect.ownKeys(e).filter((e) => {
1074
1099
  var t = n.get(e);
1075
1100
  return t === void 0 || t.v !== o;
@@ -1093,34 +1118,34 @@ new Set([
1093
1118
  "splice",
1094
1119
  "unshift"
1095
1120
  ]);
1096
- var Jt, Yt, Xt, Zt;
1097
- function Qt() {
1098
- if (Jt === void 0) {
1099
- Jt = window, Yt = /Firefox/.test(navigator.userAgent);
1121
+ var Yt, Xt, Zt, Qt;
1122
+ function $t() {
1123
+ if (Yt === void 0) {
1124
+ Yt = window, Xt = /Firefox/.test(navigator.userAgent);
1100
1125
  var e = Element.prototype, t = Node.prototype, n = Text.prototype;
1101
- Xt = m(t, "firstChild").get, Zt = m(t, "nextSibling").get, y(e) && (e[N] = void 0, e[ce] = null, e[le] = void 0, e.__e = void 0), y(n) && (n[ue] = void 0);
1126
+ Zt = m(t, "firstChild").get, Qt = m(t, "nextSibling").get, y(e) && (e[ce] = void 0, e[se] = null, e[le] = void 0, e.__e = void 0), y(n) && (n[ue] = void 0);
1102
1127
  }
1103
1128
  }
1104
- function $t(e = "") {
1129
+ function G(e = "") {
1105
1130
  return document.createTextNode(e);
1106
1131
  }
1107
1132
  /*@__NO_SIDE_EFFECTS__*/
1108
1133
  function en(e) {
1109
- return Xt.call(e);
1134
+ return Zt.call(e);
1110
1135
  }
1111
1136
  /*@__NO_SIDE_EFFECTS__*/
1112
1137
  function tn(e) {
1113
- return Zt.call(e);
1138
+ return Qt.call(e);
1114
1139
  }
1115
1140
  function nn(e, t) {
1116
1141
  if (!P) return /* @__PURE__ */ en(e);
1117
- var n = /* @__PURE__ */ en(I);
1118
- if (n === null) n = I.appendChild($t());
1142
+ var n = /* @__PURE__ */ en(F);
1143
+ if (n === null) n = F.appendChild(G());
1119
1144
  else if (t && n.nodeType !== 3) {
1120
- var r = $t();
1121
- return n?.before(r), L(r), r;
1145
+ var r = G();
1146
+ return n?.before(r), I(r), r;
1122
1147
  }
1123
- return t && ln(n), L(n), n;
1148
+ return t && ln(n), I(n), n;
1124
1149
  }
1125
1150
  function rn(e, t = !1) {
1126
1151
  if (!P) {
@@ -1128,32 +1153,32 @@ function rn(e, t = !1) {
1128
1153
  return n instanceof Comment && n.data === "" ? /* @__PURE__ */ tn(n) : n;
1129
1154
  }
1130
1155
  if (t) {
1131
- if (I?.nodeType !== 3) {
1132
- var r = $t();
1133
- return I?.before(r), L(r), r;
1156
+ if (F?.nodeType !== 3) {
1157
+ var r = G();
1158
+ return F?.before(r), I(r), r;
1134
1159
  }
1135
- ln(I);
1160
+ ln(F);
1136
1161
  }
1137
- return I;
1162
+ return F;
1138
1163
  }
1139
1164
  function an(e, t = 1, n = !1) {
1140
- let r = P ? I : e;
1165
+ let r = P ? F : e;
1141
1166
  for (var i; t--;) i = r, r = /* @__PURE__ */ tn(r);
1142
1167
  if (!P) return r;
1143
1168
  if (n) {
1144
1169
  if (r?.nodeType !== 3) {
1145
- var a = $t();
1146
- return r === null ? i?.after(a) : r.before(a), L(a), a;
1170
+ var a = G();
1171
+ return r === null ? i?.after(a) : r.before(a), I(a), a;
1147
1172
  }
1148
1173
  ln(r);
1149
1174
  }
1150
- return L(r), r;
1175
+ return I(r), r;
1151
1176
  }
1152
1177
  function on(e) {
1153
1178
  e.textContent = "";
1154
1179
  }
1155
1180
  function sn() {
1156
- return !Ie || mt !== null ? !1 : (J.f & ne) !== 0;
1181
+ return !Le || Mt !== null ? !1 : (Y.f & E) !== 0;
1157
1182
  }
1158
1183
  function cn(e, t, n) {
1159
1184
  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);
@@ -1164,30 +1189,19 @@ function ln(e) {
1164
1189
  for (; t !== null && t.nodeType === 3;) t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
1165
1190
  }
1166
1191
  //#endregion
1167
- //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
1192
+ //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/reactivity/effects.js
1168
1193
  function un(e) {
1169
- var t = K, n = J;
1170
- q(null), Vn(null);
1171
- try {
1172
- return e();
1173
- } finally {
1174
- q(t), Vn(n);
1175
- }
1176
- }
1177
- //#endregion
1178
- //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/effects.js
1179
- function dn(e) {
1180
- J === null && (K === null && _e(e), ge()), Rn && he(e);
1194
+ Y === null && (q === null && _e(e), ge()), Ln && he(e);
1181
1195
  }
1182
- function fn(e, t) {
1196
+ function dn(e, t) {
1183
1197
  var n = t.last;
1184
1198
  n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
1185
1199
  }
1186
- function pn(e, t) {
1187
- var n = J;
1200
+ function fn(e, t) {
1201
+ var n = Y;
1188
1202
  n !== null && n.f & 8192 && (e |= w);
1189
1203
  var r = {
1190
- ctx: R,
1204
+ ctx: L,
1191
1205
  deps: null,
1192
1206
  nodes: null,
1193
1207
  f: e | C | 512,
@@ -1202,137 +1216,139 @@ function pn(e, t) {
1202
1216
  wv: 0,
1203
1217
  ac: null
1204
1218
  };
1205
- B?.register_created_effect(r);
1219
+ V?.register_created_effect(r);
1206
1220
  var i = r;
1207
- if (e & 4) st === null ? dt.ensure().schedule(r) : st.push(r);
1221
+ if (e & 4) Tt === null ? kt.ensure().schedule(r) : Tt.push(r);
1208
1222
  else if (t !== null) {
1209
1223
  try {
1210
- nr(r);
1224
+ tr(r);
1211
1225
  } catch (e) {
1212
- throw G(r), e;
1226
+ throw K(r), e;
1213
1227
  }
1214
- 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));
1228
+ 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 |= D));
1215
1229
  }
1216
- if (i !== null && (i.parent = n, n !== null && fn(i, n), K !== null && K.f & 2 && !(e & 64))) {
1217
- var a = K;
1230
+ if (i !== null && (i.parent = n, n !== null && dn(i, n), q !== null && q.f & 2 && !(e & 64))) {
1231
+ var a = q;
1218
1232
  (a.effects ??= []).push(i);
1219
1233
  }
1220
1234
  return r;
1221
1235
  }
1222
- function mn() {
1223
- return K !== null && !Bn;
1236
+ function pn() {
1237
+ return q !== null && !zn;
1224
1238
  }
1225
- function hn(e) {
1226
- let t = pn(8, null);
1239
+ function mn(e) {
1240
+ let t = fn(8, null);
1227
1241
  return z(t, S), t.teardown = e, t;
1228
1242
  }
1229
- function gn(e) {
1230
- dn("$effect");
1231
- var t = J.f;
1232
- if (!K && t & 32 && R !== null && !R.i) {
1233
- var n = R;
1243
+ function hn(e) {
1244
+ un("$effect");
1245
+ var t = Y.f;
1246
+ if (!q && t & 32 && L !== null && !L.i) {
1247
+ var n = L;
1234
1248
  (n.e ??= []).push(e);
1235
- } else return _n(e);
1249
+ } else return gn(e);
1236
1250
  }
1237
- function _n(e) {
1238
- return pn(4 | D, e);
1251
+ function gn(e) {
1252
+ return fn(4 | O, e);
1239
1253
  }
1240
- function vn(e) {
1241
- dt.ensure();
1242
- let t = pn(64 | ie, e);
1254
+ function _n(e) {
1255
+ kt.ensure();
1256
+ let t = fn(64 | re, e);
1243
1257
  return () => {
1244
- G(t);
1258
+ K(t);
1245
1259
  };
1246
1260
  }
1247
- function yn(e) {
1248
- dt.ensure();
1249
- let t = pn(64 | ie, e);
1261
+ function vn(e) {
1262
+ kt.ensure();
1263
+ let t = fn(64 | re, e);
1250
1264
  return (e = {}) => new Promise((n) => {
1251
- e.outro ? jn(t, () => {
1252
- G(t), n(void 0);
1253
- }) : (G(t), n(void 0));
1265
+ e.outro ? An(t, () => {
1266
+ K(t), n(void 0);
1267
+ }) : (K(t), n(void 0));
1254
1268
  });
1255
1269
  }
1256
- function bn(e) {
1257
- return pn(4, e);
1270
+ function yn(e) {
1271
+ return fn(4, e);
1258
1272
  }
1259
- function xn(e) {
1260
- return pn(oe | ie, e);
1273
+ function bn(e) {
1274
+ return fn(ae | re, e);
1261
1275
  }
1262
- function Sn(e, t = 0) {
1263
- return pn(8 | t, e);
1276
+ function xn(e, t = 0) {
1277
+ return fn(8 | t, e);
1264
1278
  }
1265
- function Cn(e, t = [], n = [], r = []) {
1266
- Tt(r, t, n, (t) => {
1267
- pn(8, () => e(...t.map(Z)));
1279
+ function Sn(e, t = [], n = [], r = []) {
1280
+ ot(r, t, n, (t) => {
1281
+ fn(8, () => {
1282
+ e(...t.map(Q));
1283
+ });
1268
1284
  });
1269
1285
  }
1270
- function wn(e, t = 0) {
1271
- return pn(16 | t, e);
1286
+ function Cn(e, t = 0) {
1287
+ return fn(16 | t, e);
1272
1288
  }
1273
- function Tn(e) {
1274
- return pn(32 | ie, e);
1289
+ function wn(e) {
1290
+ return fn(32 | re, e);
1275
1291
  }
1276
- function En(e) {
1292
+ function Tn(e) {
1277
1293
  var t = e.teardown;
1278
1294
  if (t !== null) {
1279
- let e = Rn, n = K;
1280
- zn(!0), q(null);
1295
+ let e = Ln, n = q;
1296
+ Rn(!0), J(null);
1281
1297
  try {
1282
1298
  t.call(null);
1283
1299
  } finally {
1284
- zn(e), q(n);
1300
+ Rn(e), J(n);
1285
1301
  }
1286
1302
  }
1287
1303
  }
1288
- function Dn(e, t = !1) {
1304
+ function En(e, t = !1) {
1289
1305
  var n = e.first;
1290
1306
  for (e.first = e.last = null; n !== null;) {
1291
1307
  let e = n.ac;
1292
- e !== null && un(() => {
1308
+ e !== null && tt(() => {
1293
1309
  e.abort(de);
1294
1310
  });
1295
1311
  var r = n.next;
1296
- n.f & 64 ? n.parent = null : G(n, t), n = r;
1312
+ n.f & 64 ? n.parent = null : K(n, t), n = r;
1297
1313
  }
1298
1314
  }
1299
- function On(e) {
1315
+ function Dn(e) {
1300
1316
  for (var t = e.first; t !== null;) {
1301
1317
  var n = t.next;
1302
- t.f & 32 || G(t), t = n;
1318
+ t.f & 32 || K(t), t = n;
1303
1319
  }
1304
1320
  }
1305
- function G(e, t = !0) {
1321
+ function K(e, t = !0) {
1306
1322
  var n = !1;
1307
- (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (kn(e.nodes.start, e.nodes.end), n = !0), z(e, re), Dn(e, t && !n), tr(e, 0);
1323
+ (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (On(e.nodes.start, e.nodes.end), n = !0), e.f |= ne, En(e, t && !n), er(e, 0);
1308
1324
  var r = e.nodes && e.nodes.t;
1309
1325
  if (r !== null) for (let e of r) e.stop();
1310
- En(e), e.f ^= re, e.f |= T;
1326
+ Tn(e), e.f ^= ne, e.f |= T;
1311
1327
  var i = e.parent;
1312
- i !== null && i.first !== null && An(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1328
+ i !== null && i.first !== null && kn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1313
1329
  }
1314
- function kn(e, t) {
1330
+ function On(e, t) {
1315
1331
  for (; e !== null;) {
1316
1332
  var n = e === t ? null : /* @__PURE__ */ tn(e);
1317
1333
  e.remove(), e = n;
1318
1334
  }
1319
1335
  }
1320
- function An(e) {
1336
+ function kn(e) {
1321
1337
  var t = e.parent, n = e.prev, r = e.next;
1322
1338
  n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
1323
1339
  }
1324
- function jn(e, t, n = !0) {
1340
+ function An(e, t, n = !0) {
1325
1341
  var r = [];
1326
- Mn(e, r, !0);
1342
+ jn(e, r, !0);
1327
1343
  var i = () => {
1328
- n && G(e), t && t();
1344
+ n && K(e), t && t();
1329
1345
  }, a = r.length;
1330
1346
  if (a > 0) {
1331
1347
  var o = () => --a || i();
1332
1348
  for (var s of r) s.out(o);
1333
1349
  } else i();
1334
1350
  }
1335
- function Mn(e, t, n) {
1351
+ function jn(e, t, n) {
1336
1352
  if (!(e.f & 8192)) {
1337
1353
  e.f ^= w;
1338
1354
  var r = e.nodes && e.nodes.t;
@@ -1341,110 +1357,110 @@ function Mn(e, t, n) {
1341
1357
  var a = i.next;
1342
1358
  if (!(i.f & 64)) {
1343
1359
  var o = (i.f & 65536) != 0 || (i.f & 32) != 0 && (e.f & 16) != 0;
1344
- Mn(i, t, o ? n : !1);
1360
+ jn(i, t, o ? n : !1);
1345
1361
  }
1346
1362
  i = a;
1347
1363
  }
1348
1364
  }
1349
1365
  }
1350
- function Nn(e) {
1351
- Pn(e, !0);
1366
+ function Mn(e) {
1367
+ Nn(e, !0);
1352
1368
  }
1353
- function Pn(e, t) {
1369
+ function Nn(e, t) {
1354
1370
  if (e.f & 8192) {
1355
- e.f ^= w, e.f & 1024 || (z(e, C), dt.ensure().schedule(e));
1371
+ e.f ^= w, e.f & 1024 || (z(e, C), kt.ensure().schedule(e));
1356
1372
  for (var n = e.first; n !== null;) {
1357
1373
  var r = n.next, i = (n.f & 65536) != 0 || (n.f & 32) != 0;
1358
- Pn(n, i ? t : !1), n = r;
1374
+ Nn(n, i ? t : !1), n = r;
1359
1375
  }
1360
1376
  var a = e.nodes && e.nodes.t;
1361
1377
  if (a !== null) for (let e of a) (e.is_global || t) && e.in();
1362
1378
  }
1363
1379
  }
1364
- function Fn(e, t) {
1380
+ function Pn(e, t) {
1365
1381
  if (e.nodes) for (var n = e.nodes.start, r = e.nodes.end; n !== null;) {
1366
1382
  var i = n === r ? null : /* @__PURE__ */ tn(n);
1367
1383
  t.append(n), n = i;
1368
1384
  }
1369
1385
  }
1370
1386
  //#endregion
1371
- //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/legacy.js
1372
- var In = null, Ln = !1, Rn = !1;
1373
- function zn(e) {
1374
- Rn = e;
1387
+ //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/legacy.js
1388
+ var Fn = null, In = !1, Ln = !1;
1389
+ function Rn(e) {
1390
+ Ln = e;
1375
1391
  }
1376
- var K = null, Bn = !1;
1377
- function q(e) {
1378
- K = e;
1392
+ var q = null, zn = !1;
1393
+ function J(e) {
1394
+ q = e;
1379
1395
  }
1380
- var J = null;
1381
- function Vn(e) {
1382
- J = e;
1396
+ var Y = null;
1397
+ function Bn(e) {
1398
+ Y = e;
1383
1399
  }
1384
- var Hn = null;
1385
- function Un(e) {
1386
- K !== null && (!Ie || K.f & 2) && (Hn ??= /* @__PURE__ */ new Set()).add(e);
1400
+ var Vn = null;
1401
+ function Hn(e) {
1402
+ q !== null && (!Le || q.f & 2) && (Vn ??= /* @__PURE__ */ new Set()).add(e);
1387
1403
  }
1388
- var Y = null, X = 0, Wn = null;
1389
- function Gn(e) {
1390
- Wn = e;
1404
+ var X = null, Z = 0, Un = null;
1405
+ function Wn(e) {
1406
+ Un = e;
1391
1407
  }
1392
- var Kn = 1, qn = 0, Jn = qn;
1393
- function Yn(e) {
1394
- Jn = e;
1408
+ var Gn = 1, Kn = 0, qn = Kn;
1409
+ function Jn(e) {
1410
+ qn = e;
1395
1411
  }
1396
- function Xn() {
1397
- return ++Kn;
1412
+ function Yn() {
1413
+ return ++Gn;
1398
1414
  }
1399
- function Zn(e) {
1415
+ function Xn(e) {
1400
1416
  var t = e.f;
1401
1417
  if (t & 2048) return !0;
1402
- if (t & 2 && (e.f &= ~ae), t & 4096) {
1418
+ if (t & 2 && (e.f &= ~ie), t & 4096) {
1403
1419
  for (var n = e.deps, r = n.length, i = 0; i < r; i++) {
1404
1420
  var a = n[i];
1405
- if (Zn(a) && Ft(a), a.wv > e.wv) return !0;
1421
+ if (Xn(a) && gt(a), a.wv > e.wv) return !0;
1406
1422
  }
1407
- t & 512 && V === null && z(e, S);
1423
+ t & 512 && H === null && z(e, S);
1408
1424
  }
1409
1425
  return !1;
1410
1426
  }
1411
- function Qn(e, t, n = !0) {
1427
+ function Zn(e, t, n = !0) {
1412
1428
  var r = e.reactions;
1413
- if (r !== null && !(!Ie && Hn !== null && Hn.has(e))) for (var i = 0; i < r.length; i++) {
1429
+ if (r !== null && !(!Le && Vn !== null && Vn.has(e))) for (var i = 0; i < r.length; i++) {
1414
1430
  var a = r[i];
1415
- a.f & 2 ? Qn(a, t, !1) : t === a && (n ? z(a, C) : a.f & 1024 && z(a, te), vt(a));
1431
+ a.f & 2 ? Zn(a, t, !1) : t === a && (n ? z(a, C) : a.f & 1024 && z(a, te), It(a));
1416
1432
  }
1417
1433
  }
1418
- function $n(e) {
1419
- var t = Y, n = X, r = Wn, i = K, a = Hn, o = R, s = Bn, c = Jn, l = e.f;
1420
- Y = null, X = 0, Wn = null, K = l & 96 ? null : e, Hn = null, Re(e.ctx), Bn = !1, Jn = ++qn, e.ac !== null && (un(() => {
1434
+ function Qn(e) {
1435
+ var t = X, n = Z, r = Un, i = q, a = Vn, o = L, s = zn, c = qn, l = e.f;
1436
+ X = null, Z = 0, Un = null, q = l & 96 ? null : e, Vn = null, ze(e.ctx), zn = !1, qn = ++Kn, e.ac !== null && (tt(() => {
1421
1437
  e.ac.abort(de);
1422
1438
  }), e.ac = null);
1423
1439
  try {
1424
- e.f |= k;
1440
+ e.f |= A;
1425
1441
  var u = e.fn, d = u();
1426
- e.f |= ne;
1427
- var f = e.deps, p = B?.is_fork;
1428
- if (Y !== null) {
1442
+ e.f |= E;
1443
+ var f = e.deps, p = V?.is_fork;
1444
+ if (X !== null) {
1429
1445
  var m;
1430
- if (p || tr(e, X), f !== null && X > 0) for (f.length = X + Y.length, m = 0; m < Y.length; m++) f[X + m] = Y[m];
1431
- else e.deps = f = Y;
1432
- if (mn() && e.f & 512) for (m = X; m < f.length; m++) (f[m].reactions ??= []).push(e);
1433
- } else !p && f !== null && X < f.length && (tr(e, X), f.length = X);
1434
- if (Ve() && Wn !== null && !Bn && f !== null && !(e.f & 6146)) for (m = 0; m < Wn.length; m++) Qn(Wn[m], e);
1446
+ if (p || er(e, Z), f !== null && Z > 0) for (f.length = Z + X.length, m = 0; m < X.length; m++) f[Z + m] = X[m];
1447
+ else e.deps = f = X;
1448
+ if (pn() && e.f & 512) for (m = Z; m < f.length; m++) (f[m].reactions ??= []).push(e);
1449
+ } else !p && f !== null && Z < f.length && (er(e, Z), f.length = Z);
1450
+ if (He() && Un !== null && !zn && f !== null && !(e.f & 6146)) for (m = 0; m < Un.length; m++) Zn(Un[m], e);
1435
1451
  if (i !== null && i !== e) {
1436
- if (qn++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = qn;
1437
- if (t !== null) for (let e of t) e.rv = qn;
1438
- Wn !== null && (r === null ? r = Wn : r.push(...Wn));
1452
+ if (Kn++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = Kn;
1453
+ if (t !== null) for (let e of t) e.rv = Kn;
1454
+ Un !== null && (r === null ? r = Un : r.push(...Un));
1439
1455
  }
1440
- return e.f & 8388608 && (e.f ^= A), d;
1456
+ return e.f & 8388608 && (e.f ^= j), d;
1441
1457
  } catch (e) {
1442
1458
  return Ke(e);
1443
1459
  } finally {
1444
- e.f ^= k, Y = t, X = n, Wn = r, K = i, Hn = a, Re(o), Bn = s, Jn = c;
1460
+ e.f ^= A, X = t, Z = n, Un = r, q = i, Vn = a, ze(o), zn = s, qn = c;
1445
1461
  }
1446
1462
  }
1447
- function er(e, t) {
1463
+ function $n(e, t) {
1448
1464
  let n = t.reactions;
1449
1465
  if (n !== null) {
1450
1466
  var r = l.call(n, e);
@@ -1453,86 +1469,88 @@ function er(e, t) {
1453
1469
  i === 0 ? n = t.reactions = null : (n[r] = n[i], n.pop());
1454
1470
  }
1455
1471
  }
1456
- if (n === null && t.f & 2 && (Y === null || !u.call(Y, t))) {
1472
+ if (n === null && t.f & 2 && (X === null || !u.call(X, t))) {
1457
1473
  var a = t;
1458
- a.f & 512 && (a.f ^= 512, a.f &= ~ae), a.v !== o && Ye(a), It(a), tr(a, 0);
1474
+ a.f & 512 && (a.f ^= 512, a.f &= ~ie), a.v !== o && Ye(a), a.ac !== null && tt(() => {
1475
+ a.ac.abort(de), a.ac = null, z(a, C);
1476
+ }), _t(a), er(a, 0);
1459
1477
  }
1460
1478
  }
1461
- function tr(e, t) {
1479
+ function er(e, t) {
1462
1480
  var n = e.deps;
1463
- if (n !== null) for (var r = t; r < n.length; r++) er(e, n[r]);
1481
+ if (n !== null) for (var r = t; r < n.length; r++) $n(e, n[r]);
1464
1482
  }
1465
- function nr(e) {
1483
+ function tr(e) {
1466
1484
  var t = e.f;
1467
1485
  if (!(t & 16384)) {
1468
1486
  z(e, S);
1469
- var n = J, r = Ln;
1470
- J = e, Ln = !0;
1487
+ var n = Y, r = In;
1488
+ Y = e, In = (t & 96) == 0;
1471
1489
  try {
1472
- t & 16777232 ? On(e) : Dn(e), En(e);
1473
- var i = $n(e);
1474
- e.teardown = typeof i == "function" ? i : null, e.wv = Kn;
1490
+ t & 16777232 ? Dn(e) : En(e), Tn(e);
1491
+ var i = Qn(e);
1492
+ e.teardown = typeof i == "function" ? i : null, e.wv = Gn;
1475
1493
  } finally {
1476
- Ln = r, J = n;
1494
+ In = r, Y = n;
1477
1495
  }
1478
1496
  }
1479
1497
  }
1480
- function Z(e) {
1498
+ function Q(e) {
1481
1499
  var t = (e.f & 2) != 0;
1482
- if (In?.add(e), K !== null && !Bn && !(J !== null && J.f & 16384) && (Hn === null || !Hn.has(e))) {
1483
- var n = K.deps;
1484
- if (K.f & 2097152) e.rv < qn && (e.rv = qn, Y === null && n !== null && n[X] === e ? X++ : Y === null ? Y = [e] : Y.push(e));
1500
+ if (Fn?.add(e), q !== null && !zn && !(Y !== null && Y.f & 16384) && (Vn === null || !Vn.has(e))) {
1501
+ var n = q.deps;
1502
+ if (q.f & 2097152) e.rv < Kn && (e.rv = Kn, X === null && n !== null && n[Z] === e ? Z++ : X === null ? X = [e] : X.push(e));
1485
1503
  else {
1486
- K.deps ??= [], u.call(K.deps, e) || K.deps.push(e);
1504
+ q.deps ??= [], u.call(q.deps, e) || q.deps.push(e);
1487
1505
  var r = e.reactions;
1488
- r === null ? e.reactions = [K] : u.call(r, K) || r.push(K);
1506
+ r === null ? e.reactions = [q] : u.call(r, q) || r.push(q);
1489
1507
  }
1490
1508
  }
1491
- if (Rn && zt.has(e)) return zt.get(e);
1509
+ if (Ln && Bt.has(e)) return Bt.get(e);
1492
1510
  if (t) {
1493
1511
  var i = e;
1494
- if (Rn) {
1512
+ if (Ln) {
1495
1513
  var a = i.v;
1496
- return (!(i.f & 1024) && i.reactions !== null || ir(i)) && (a = Pt(i)), zt.set(i, a), a;
1514
+ return (!(i.f & 1024) && i.reactions !== null || rr(i)) && (a = ht(i)), Bt.set(i, a), a;
1497
1515
  }
1498
- var o = (i.f & 512) == 0 && !Bn && K !== null && (Ln || (K.f & 512) != 0), s = (i.f & ne) === 0;
1499
- Zn(i) && (o && (i.f |= 512), Ft(i)), o && !s && (Lt(i), rr(i));
1516
+ var o = (i.f & 512) == 0 && !zn && q !== null && (In || (q.f & 512) != 0), s = (i.f & E) === 0;
1517
+ Xn(i) && (o && (i.f |= 512), gt(i)), o && !s && (vt(i), nr(i));
1500
1518
  }
1501
- if (V?.has(e)) return V.get(e);
1519
+ if (H?.has(e)) return H.get(e);
1502
1520
  if (e.f & 8388608) throw e.v;
1503
1521
  return e.v;
1504
1522
  }
1505
- function rr(e) {
1506
- if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (Lt(t), rr(t));
1523
+ function nr(e) {
1524
+ if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (vt(t), nr(t));
1507
1525
  }
1508
- function ir(e) {
1526
+ function rr(e) {
1509
1527
  if (e.v === o) return !0;
1510
1528
  if (e.deps === null) return !1;
1511
- for (let t of e.deps) if (zt.has(t) || t.f & 2 && ir(t)) return !0;
1529
+ for (let t of e.deps) if (Bt.has(t) || t.f & 2 && rr(t)) return !0;
1512
1530
  return !1;
1513
1531
  }
1514
- function ar(e) {
1515
- var t = Bn;
1532
+ function ir(e) {
1533
+ var t = zn;
1516
1534
  try {
1517
- return Bn = !0, e();
1535
+ return zn = !0, e();
1518
1536
  } finally {
1519
- Bn = t;
1537
+ zn = t;
1520
1538
  }
1521
1539
  }
1522
- function or(e) {
1540
+ function ar(e) {
1523
1541
  if (!(typeof e != "object" || !e || e instanceof EventTarget)) {
1524
- if (j in e) sr(e);
1542
+ if (M in e) or(e);
1525
1543
  else if (!Array.isArray(e)) for (let t in e) {
1526
1544
  let n = e[t];
1527
- typeof n == "object" && n && j in n && sr(n);
1545
+ typeof n == "object" && n && M in n && or(n);
1528
1546
  }
1529
1547
  }
1530
1548
  }
1531
- function sr(e, t = /* @__PURE__ */ new Set()) {
1549
+ function or(e, t = /* @__PURE__ */ new Set()) {
1532
1550
  if (typeof e == "object" && e && !(e instanceof EventTarget) && !t.has(e)) {
1533
1551
  t.add(e), e instanceof Date && e.getTime();
1534
1552
  for (let n in e) try {
1535
- sr(e[n], t);
1553
+ or(e[n], t);
1536
1554
  } catch {}
1537
1555
  let n = v(e);
1538
1556
  if (n !== Object.prototype && n !== Array.prototype && n !== Map.prototype && n !== Set.prototype && n !== Date.prototype) {
@@ -1547,41 +1565,24 @@ function sr(e, t = /* @__PURE__ */ new Set()) {
1547
1565
  }
1548
1566
  }
1549
1567
  //#endregion
1550
- //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/elements/events.js
1551
- var cr = Symbol("events"), lr = /* @__PURE__ */ new Set(), ur = /* @__PURE__ */ new Set();
1552
- function dr(e, t, n, r = {}) {
1553
- function i(e) {
1554
- if (r.capture || gr.call(t, e), !e.cancelBubble) return un(() => n?.call(this, e));
1555
- }
1556
- return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? We(() => {
1557
- t.addEventListener(e, i, r);
1558
- }) : t.addEventListener(e, i, r), i;
1559
- }
1560
- function fr(e, t, n, r, i) {
1561
- var a = {
1562
- capture: r,
1563
- passive: i
1564
- }, o = dr(e, t, n, a);
1565
- (t === document.body || t === window || t === document || t instanceof HTMLMediaElement) && hn(() => {
1566
- t.removeEventListener(e, o, a);
1567
- });
1568
- }
1569
- function pr(e, t, n) {
1570
- (t[cr] ??= {})[e] = n;
1568
+ //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/elements/events.js
1569
+ var sr = Symbol("events"), cr = /* @__PURE__ */ new Set(), lr = /* @__PURE__ */ new Set();
1570
+ function ur(e, t, n) {
1571
+ (t[sr] ??= {})[e] = n;
1571
1572
  }
1572
- function mr(e) {
1573
- for (var t = 0; t < e.length; t++) lr.add(e[t]);
1574
- for (var n of ur) n(e);
1573
+ function dr(e) {
1574
+ for (var t = 0; t < e.length; t++) cr.add(e[t]);
1575
+ for (var n of lr) n(e);
1575
1576
  }
1576
- var hr = null;
1577
- function gr(e) {
1577
+ var fr = null;
1578
+ function pr(e) {
1578
1579
  var t = this, n = t.ownerDocument, r = e.type, i = e.composedPath?.() || [], a = i[0] || e.target;
1579
- hr = e;
1580
- var o = 0, s = hr === e && e[cr];
1580
+ fr = e;
1581
+ var o = 0, s = fr === e && e[sr];
1581
1582
  if (s) {
1582
1583
  var c = i.indexOf(s);
1583
1584
  if (c !== -1 && (t === document || t === window)) {
1584
- e[cr] = t;
1585
+ e[sr] = t;
1585
1586
  return;
1586
1587
  }
1587
1588
  var l = i.indexOf(t);
@@ -1595,12 +1596,12 @@ function gr(e) {
1595
1596
  return a || n;
1596
1597
  }
1597
1598
  });
1598
- var u = K, d = J;
1599
- q(null), Vn(null);
1599
+ var u = q, d = Y;
1600
+ J(null), Bn(null);
1600
1601
  try {
1601
1602
  for (var f, m = []; a !== null && a !== t;) {
1602
1603
  try {
1603
- var h = a[cr]?.[r];
1604
+ var h = a[sr]?.[r];
1604
1605
  h != null && (!a.disabled || e.target === a) && h.call(a, e);
1605
1606
  } catch (e) {
1606
1607
  f ? m.push(e) : f = e;
@@ -1615,24 +1616,24 @@ function gr(e) {
1615
1616
  throw f;
1616
1617
  }
1617
1618
  } finally {
1618
- e[cr] = t, delete e.currentTarget, q(u), Vn(d);
1619
+ e[sr] = t, delete e.currentTarget, J(u), Bn(d);
1619
1620
  }
1620
1621
  }
1621
1622
  }
1622
1623
  //#endregion
1623
- //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/reconciler.js
1624
- var _r = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
1625
- function vr(e) {
1626
- return _r?.createHTML(e) ?? e;
1624
+ //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/reconciler.js
1625
+ var mr = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
1626
+ function hr(e) {
1627
+ return mr?.createHTML(e) ?? e;
1627
1628
  }
1628
- function yr(e) {
1629
+ function gr(e) {
1629
1630
  var t = cn("template");
1630
- return t.innerHTML = vr(e.replaceAll("<!>", "<!---->")), t.content;
1631
+ return t.innerHTML = hr(e.replaceAll("<!>", "<!---->")), t.content;
1631
1632
  }
1632
1633
  //#endregion
1633
- //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/template.js
1634
- function br(e, t) {
1635
- var n = J;
1634
+ //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/template.js
1635
+ function _r(e, t) {
1636
+ var n = Y;
1636
1637
  n.nodes === null && (n.nodes = {
1637
1638
  start: e,
1638
1639
  end: t,
@@ -1641,107 +1642,107 @@ function br(e, t) {
1641
1642
  });
1642
1643
  }
1643
1644
  /*#__NO_SIDE_EFFECTS__*/
1644
- function xr(e, t) {
1645
+ function vr(e, t) {
1645
1646
  var n = (t & 1) != 0, r = (t & 2) != 0, i, a = !e.startsWith("<!>");
1646
1647
  return () => {
1647
- if (P) return br(I, null), I;
1648
- i === void 0 && (i = yr(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ en(i)));
1649
- var t = r || Yt ? document.importNode(i, !0) : i.cloneNode(!0);
1648
+ if (P) return _r(F, null), F;
1649
+ i === void 0 && (i = gr(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ en(i)));
1650
+ var t = r || Xt ? document.importNode(i, !0) : i.cloneNode(!0);
1650
1651
  if (n) {
1651
1652
  var o = /* @__PURE__ */ en(t), s = t.lastChild;
1652
- br(o, s);
1653
- } else br(t, t);
1653
+ _r(o, s);
1654
+ } else _r(t, t);
1654
1655
  return t;
1655
1656
  };
1656
1657
  }
1657
- function Sr() {
1658
- if (P) return br(I, null), I;
1659
- var e = document.createDocumentFragment(), t = document.createComment(""), n = $t();
1660
- return e.append(t, n), br(t, n), e;
1658
+ function yr() {
1659
+ if (P) return _r(F, null), F;
1660
+ var e = document.createDocumentFragment(), t = document.createComment(""), n = G();
1661
+ return e.append(t, n), _r(t, n), e;
1661
1662
  }
1662
- function Cr(e, t) {
1663
+ function br(e, t) {
1663
1664
  if (P) {
1664
- var n = J;
1665
- (!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = I), Oe();
1665
+ var n = Y;
1666
+ (!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = F), ke();
1666
1667
  return;
1667
1668
  }
1668
1669
  e !== null && e.before(t);
1669
1670
  }
1670
1671
  [.../* @__PURE__ */ "allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback".split(".")];
1671
- var wr = ["touchstart", "touchmove"];
1672
- function Tr(e) {
1673
- return wr.includes(e);
1672
+ var xr = ["touchstart", "touchmove"];
1673
+ function Sr(e) {
1674
+ return xr.includes(e);
1674
1675
  }
1675
- function Er(e, t) {
1676
+ function Cr(e, t) {
1676
1677
  var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
1677
1678
  n !== (e[ue] ??= e.nodeValue) && (e[ue] = n, e.nodeValue = `${n}`);
1678
1679
  }
1679
- function Dr(e, t) {
1680
- return Ar(e, t);
1680
+ function wr(e, t) {
1681
+ return Dr(e, t);
1681
1682
  }
1682
- function Or(e, t) {
1683
- Qt(), t.intro = t.intro ?? !1;
1684
- let n = t.target, r = P, i = I;
1683
+ function Tr(e, t) {
1684
+ $t(), t.intro = t.intro ?? !1;
1685
+ let n = t.target, r = P, i = F;
1685
1686
  try {
1686
1687
  for (var o = /* @__PURE__ */ en(n); o && (o.nodeType !== 8 || o.data !== "[");) o = /* @__PURE__ */ tn(o);
1687
1688
  if (!o) throw a;
1688
- F(!0), L(o);
1689
- let r = Ar(e, {
1689
+ Oe(!0), I(o);
1690
+ let r = Dr(e, {
1690
1691
  ...t,
1691
1692
  anchor: o
1692
1693
  });
1693
- return F(!1), r;
1694
+ return Oe(!1), r;
1694
1695
  } catch (r) {
1695
1696
  if (r instanceof Error && r.message.split("\n").some((e) => e.startsWith("https://svelte.dev/e/"))) throw r;
1696
- return r !== a && console.warn("Failed to hydrate: ", r), t.recover === !1 && ye(), Qt(), on(n), F(!1), Dr(e, t);
1697
+ return r !== a && console.warn("Failed to hydrate: ", r), t.recover === !1 && ye(), $t(), on(n), Oe(!1), wr(e, t);
1697
1698
  } finally {
1698
- F(r), L(i);
1699
- }
1700
- }
1701
- var kr = /* @__PURE__ */ new Map();
1702
- function Ar(e, { target: t, anchor: n, props: r = {}, events: i, context: o, intro: s = !0, transformError: c }) {
1703
- Qt();
1704
- var l = void 0, u = yn(() => {
1705
- var s = n ?? t.appendChild($t());
1706
- Ct(s, { pending: () => {} }, (t) => {
1707
- ze({});
1708
- var n = R;
1709
- if (o && (n.c = o), i && (r.$$events = i), P && br(t, null), l = e(t, r) || {}, P && (J.nodes.end = I, I === null || I.nodeType !== 8 || I.data !== "]")) throw Ee(), a;
1710
- Be();
1699
+ Oe(r), I(i);
1700
+ }
1701
+ }
1702
+ var Er = /* @__PURE__ */ new Map();
1703
+ function Dr(e, { target: t, anchor: n, props: r = {}, events: i, context: o, intro: s = !0, transformError: c }) {
1704
+ $t();
1705
+ var l = void 0, u = vn(() => {
1706
+ var s = n ?? t.appendChild(G());
1707
+ it(s, { pending: () => {} }, (t) => {
1708
+ Be({});
1709
+ var n = L;
1710
+ if (o && (n.c = o), i && (r.$$events = i), P && _r(t, null), l = e(t, r) || {}, P && (Y.nodes.end = F, F === null || F.nodeType !== 8 || F.data !== "]")) throw Ee(), a;
1711
+ Ve();
1711
1712
  }, c);
1712
1713
  var u = /* @__PURE__ */ new Set(), f = (e) => {
1713
1714
  for (var n = 0; n < e.length; n++) {
1714
1715
  var r = e[n];
1715
1716
  if (!u.has(r)) {
1716
1717
  u.add(r);
1717
- var i = Tr(r);
1718
+ var i = Sr(r);
1718
1719
  for (let e of [t, document]) {
1719
- var a = kr.get(e);
1720
- a === void 0 && (a = /* @__PURE__ */ new Map(), kr.set(e, a));
1720
+ var a = Er.get(e);
1721
+ a === void 0 && (a = /* @__PURE__ */ new Map(), Er.set(e, a));
1721
1722
  var o = a.get(r);
1722
- o === void 0 ? (e.addEventListener(r, gr, { passive: i }), a.set(r, 1)) : a.set(r, o + 1);
1723
+ o === void 0 ? (e.addEventListener(r, pr, { passive: i }), a.set(r, 1)) : a.set(r, o + 1);
1723
1724
  }
1724
1725
  }
1725
1726
  }
1726
1727
  };
1727
- return f(d(lr)), ur.add(f), () => {
1728
+ return f(d(cr)), lr.add(f), () => {
1728
1729
  for (var e of u) for (let n of [t, document]) {
1729
- var r = kr.get(n), i = r.get(e);
1730
- --i == 0 ? (n.removeEventListener(e, gr), r.delete(e), r.size === 0 && kr.delete(n)) : r.set(e, i);
1730
+ var r = Er.get(n), i = r.get(e);
1731
+ --i == 0 ? (n.removeEventListener(e, pr), r.delete(e), r.size === 0 && Er.delete(n)) : r.set(e, i);
1731
1732
  }
1732
- ur.delete(f), s !== n && s.parentNode?.removeChild(s);
1733
+ lr.delete(f), s !== n && s.parentNode?.removeChild(s);
1733
1734
  };
1734
1735
  });
1735
- return jr.set(l, u), l;
1736
+ return Or.set(l, u), l;
1736
1737
  }
1737
- var jr = /* @__PURE__ */ new WeakMap();
1738
- function Mr(e, t) {
1739
- let n = jr.get(e);
1740
- return n ? (jr.delete(e), n(t)) : Promise.resolve();
1738
+ var Or = /* @__PURE__ */ new WeakMap();
1739
+ function kr(e, t) {
1740
+ let n = Or.get(e);
1741
+ return n ? (Or.delete(e), n(t)) : Promise.resolve();
1741
1742
  }
1742
1743
  //#endregion
1743
- //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/blocks/branches.js
1744
- var Nr = class {
1744
+ //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/blocks/branches.js
1745
+ var Ar = class {
1745
1746
  anchor;
1746
1747
  #e = /* @__PURE__ */ new Map();
1747
1748
  #t = /* @__PURE__ */ new Map();
@@ -1754,71 +1755,71 @@ var Nr = class {
1754
1755
  #a = (e) => {
1755
1756
  if (this.#e.has(e)) {
1756
1757
  var t = this.#e.get(e), n = this.#t.get(t);
1757
- if (n) Nn(n), this.#r.delete(t);
1758
+ if (n) Mn(n), this.#r.delete(t);
1758
1759
  else {
1759
1760
  var r = this.#n.get(t);
1760
- r && (Nn(r.effect), this.#t.set(t, r.effect), this.#n.delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);
1761
+ r && (Mn(r.effect), this.#t.set(t, r.effect), this.#n.delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);
1761
1762
  }
1762
1763
  for (let [t, n] of this.#e) {
1763
1764
  if (this.#e.delete(t), t === e) break;
1764
1765
  let r = this.#n.get(n);
1765
- r && (G(r.effect), this.#n.delete(n));
1766
+ r && (K(r.effect), this.#n.delete(n));
1766
1767
  }
1767
1768
  for (let [e, r] of this.#t) {
1768
1769
  if (e === t || this.#r.has(e)) continue;
1769
1770
  let i = () => {
1770
1771
  if (Array.from(this.#e.values()).includes(e)) {
1771
1772
  var t = document.createDocumentFragment();
1772
- Fn(r, t), t.append($t()), this.#n.set(e, {
1773
+ Pn(r, t), t.append(G()), this.#n.set(e, {
1773
1774
  effect: r,
1774
1775
  fragment: t
1775
1776
  });
1776
- } else G(r);
1777
+ } else K(r);
1777
1778
  this.#r.delete(e), this.#t.delete(e);
1778
1779
  };
1779
- this.#i || !n ? (this.#r.add(e), jn(r, i, !1)) : i();
1780
+ this.#i || !n ? (this.#r.add(e), An(r, i, !1)) : i();
1780
1781
  }
1781
1782
  }
1782
1783
  };
1783
1784
  #o = (e) => {
1784
1785
  this.#e.delete(e);
1785
1786
  let t = Array.from(this.#e.values());
1786
- for (let [e, n] of this.#n) t.includes(e) || (G(n.effect), this.#n.delete(e));
1787
+ for (let [e, n] of this.#n) t.includes(e) || (K(n.effect), this.#n.delete(e));
1787
1788
  };
1788
1789
  ensure(e, t) {
1789
- var n = B, r = sn();
1790
+ var n = V, r = sn();
1790
1791
  if (t && !this.#t.has(e) && !this.#n.has(e)) if (r) {
1791
- var i = document.createDocumentFragment(), a = $t();
1792
+ var i = document.createDocumentFragment(), a = G();
1792
1793
  i.append(a), this.#n.set(e, {
1793
- effect: Tn(() => t(a)),
1794
+ effect: wn(() => t(a)),
1794
1795
  fragment: i
1795
1796
  });
1796
- } else this.#t.set(e, Tn(() => t(this.anchor)));
1797
+ } else this.#t.set(e, wn(() => t(this.anchor)));
1797
1798
  if (this.#e.set(n, e), r) {
1798
1799
  for (let [t, r] of this.#t) t === e ? n.unskip_effect(r) : n.skip_effect(r);
1799
1800
  for (let [t, r] of this.#n) t === e ? n.unskip_effect(r.effect) : n.skip_effect(r.effect);
1800
1801
  n.oncommit(this.#a), n.ondiscard(this.#o);
1801
- } else P && (this.anchor = I), this.#a(n);
1802
+ } else P && (this.anchor = F), this.#a(n);
1802
1803
  }
1803
1804
  };
1804
1805
  //#endregion
1805
- //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/blocks/if.js
1806
- function Pr(e, t, n = !1) {
1806
+ //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/blocks/if.js
1807
+ function jr(e, t, n = !1) {
1807
1808
  var r;
1808
- P && (r = I, Oe());
1809
- var i = new Nr(e), a = n ? E : 0;
1809
+ P && (r = F, ke());
1810
+ var i = new Ar(e), a = n ? D : 0;
1810
1811
  function o(e, t) {
1811
1812
  if (P) {
1812
- var n = Me(r);
1813
+ var n = Ne(r);
1813
1814
  if (e !== parseInt(n.substring(1))) {
1814
- var a = je();
1815
- L(a), i.anchor = a, F(!1), i.ensure(e, t), F(!0);
1815
+ var a = Me();
1816
+ I(a), i.anchor = a, Oe(!1), i.ensure(e, t), Oe(!0);
1816
1817
  return;
1817
1818
  }
1818
1819
  }
1819
1820
  i.ensure(e, t);
1820
1821
  }
1821
- wn(() => {
1822
+ Cn(() => {
1822
1823
  var e = !1;
1823
1824
  t((t, n = 0) => {
1824
1825
  e = !0, o(n, t);
@@ -1826,15 +1827,15 @@ function Pr(e, t, n = !1) {
1826
1827
  }, a);
1827
1828
  }
1828
1829
  //#endregion
1829
- //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/blocks/each.js
1830
- function Fr(e, t, n) {
1830
+ //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/blocks/each.js
1831
+ function Mr(e, t, n) {
1831
1832
  for (var r = [], i = t.length, a, o = t.length, s = 0; s < i; s++) {
1832
1833
  let n = t[s];
1833
- jn(n, () => {
1834
+ An(n, () => {
1834
1835
  if (a) {
1835
1836
  if (a.pending.delete(n), a.done.add(n), a.pending.size === 0) {
1836
1837
  var t = e.outrogroups;
1837
- Ir(e, d(a.done)), t.delete(a), t.size === 0 && (e.outrogroups = null);
1838
+ Nr(e, d(a.done)), t.delete(a), t.size === 0 && (e.outrogroups = null);
1838
1839
  }
1839
1840
  } else --o;
1840
1841
  }, !1);
@@ -1845,13 +1846,13 @@ function Fr(e, t, n) {
1845
1846
  var l = n, u = l.parentNode;
1846
1847
  on(u), u.append(l), e.items.clear();
1847
1848
  }
1848
- Ir(e, t, !c);
1849
+ Nr(e, t, !c);
1849
1850
  } else a = {
1850
1851
  pending: new Set(t),
1851
1852
  done: /* @__PURE__ */ new Set()
1852
1853
  }, (e.outrogroups ??= /* @__PURE__ */ new Set()).add(a);
1853
1854
  }
1854
- function Ir(e, t, n = !0) {
1855
+ function Nr(e, t, n = !0) {
1855
1856
  var r;
1856
1857
  if (e.pending.size > 0) {
1857
1858
  r = /* @__PURE__ */ new Set();
@@ -1859,23 +1860,23 @@ function Ir(e, t, n = !0) {
1859
1860
  }
1860
1861
  for (var i = 0; i < t.length; i++) {
1861
1862
  var a = t[i];
1862
- r?.has(a) ? (a.f |= O, Fn(a, document.createDocumentFragment())) : G(t[i], n);
1863
+ r?.has(a) ? (a.f |= k, Pn(a, document.createDocumentFragment())) : K(t[i], n);
1863
1864
  }
1864
1865
  }
1865
- var Lr;
1866
- function Rr(e, t, n, r, i, a = null) {
1866
+ var Pr;
1867
+ function Fr(e, t, n, r, i, a = null) {
1867
1868
  var o = e, s = /* @__PURE__ */ new Map();
1868
1869
  if (t & 4) {
1869
1870
  var l = e;
1870
- o = P ? L(/* @__PURE__ */ en(l)) : l.appendChild($t());
1871
+ o = P ? I(/* @__PURE__ */ en(l)) : l.appendChild(G());
1871
1872
  }
1872
- P && Oe();
1873
- var u = null, f = /* @__PURE__ */ Mt(() => {
1873
+ P && ke();
1874
+ var u = null, f = /* @__PURE__ */ pt(() => {
1874
1875
  var e = n();
1875
1876
  return c(e) ? e : e == null ? [] : d(e);
1876
1877
  }), p, m = /* @__PURE__ */ new Map(), h = !0;
1877
1878
  function g(e) {
1878
- v.effect.f & 16384 || (v.pending.delete(e), v.fallback = u, Br(v, p, o, t, r), u !== null && (p.length === 0 ? u.f & 33554432 ? (u.f ^= O, Hr(u, null, o)) : Nn(u) : jn(u, () => {
1879
+ v.effect.f & 16384 || (v.pending.delete(e), v.fallback = u, Lr(v, p, o, t, r), u !== null && (p.length === 0 ? u.f & 33554432 ? (u.f ^= k, zr(u, null, o)) : Mn(u) : An(u, () => {
1879
1880
  u = null;
1880
1881
  })));
1881
1882
  }
@@ -1883,21 +1884,21 @@ function Rr(e, t, n, r, i, a = null) {
1883
1884
  v.pending.delete(e);
1884
1885
  }
1885
1886
  var v = {
1886
- effect: wn(() => {
1887
- p = Z(f);
1887
+ effect: Cn(() => {
1888
+ p = Q(f);
1888
1889
  var e = p.length;
1889
1890
  let c = !1;
1890
- P && Me(o) === "[!" != (e === 0) && (o = je(), L(o), F(!1), c = !0);
1891
- for (var l = /* @__PURE__ */ new Set(), d = B, v = sn(), y = 0; y < e; y += 1) {
1892
- P && I.nodeType === 8 && I.data === "]" && (o = I, c = !0, F(!1));
1891
+ P && Ne(o) === "[!" != (e === 0) && (o = Me(), I(o), Oe(!1), c = !0);
1892
+ for (var l = /* @__PURE__ */ new Set(), d = V, v = sn(), y = 0; y < e; y += 1) {
1893
+ P && F.nodeType === 8 && F.data === "]" && (o = F, c = !0, Oe(!1));
1893
1894
  var ee = p[y], b = r(ee, y), x = h ? null : s.get(b);
1894
- x ? (x.v && Ut(x.v, ee), x.i && Ut(x.i, y), v && d.unskip_effect(x.e)) : (x = Vr(s, h ? o : Lr ??= $t(), ee, b, y, i, t, n), h || (x.e.f |= O), s.set(b, x)), l.add(b);
1895
+ x ? (x.v && Wt(x.v, ee), x.i && Wt(x.i, y), v && d.unskip_effect(x.e)) : (x = Rr(s, h ? o : Pr ??= G(), ee, b, y, i, t, n), h || (x.e.f |= k), s.set(b, x)), l.add(b);
1895
1896
  }
1896
- if (e === 0 && a && !u && (h ? u = Tn(() => a(o)) : (u = Tn(() => a(Lr ??= $t())), u.f |= O)), e > l.size && me("", "", ""), P && e > 0 && L(je()), !h) if (m.set(d, l), v) {
1897
+ if (e === 0 && a && !u && (h ? u = wn(() => a(o)) : (u = wn(() => a(Pr ??= G())), u.f |= k)), e > l.size && me("", "", ""), P && e > 0 && I(Me()), !h) if (m.set(d, l), v) {
1897
1898
  for (let [e, t] of s) l.has(e) || d.skip_effect(t.e);
1898
1899
  d.oncommit(g), d.ondiscard(_);
1899
1900
  } else g(d);
1900
- c && F(!0), Z(f);
1901
+ c && Oe(!0), Q(f);
1901
1902
  }),
1902
1903
  flags: t,
1903
1904
  items: s,
@@ -1905,21 +1906,21 @@ function Rr(e, t, n, r, i, a = null) {
1905
1906
  outrogroups: null,
1906
1907
  fallback: u
1907
1908
  };
1908
- h = !1, P && (o = I);
1909
+ h = !1, P && (o = F);
1909
1910
  }
1910
- function zr(e) {
1911
+ function Ir(e) {
1911
1912
  for (; e !== null && !(e.f & 32);) e = e.next;
1912
1913
  return e;
1913
1914
  }
1914
- function Br(e, t, n, r, i) {
1915
- var a = (r & 8) != 0, o = t.length, s = e.items, c = zr(e.effect.first), l, u = null, f, p = [], m = [], h, g, _, v;
1915
+ function Lr(e, t, n, r, i) {
1916
+ var a = (r & 8) != 0, o = t.length, s = e.items, c = Ir(e.effect.first), l, u = null, f, p = [], m = [], h, g, _, v;
1916
1917
  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(), (f ??= /* @__PURE__ */ new Set()).add(_));
1917
1918
  for (v = 0; v < o; v += 1) {
1918
1919
  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(_);
1919
- if (_.f & 8192 && (Nn(_), a && (_.nodes?.a?.unfix(), (f ??= /* @__PURE__ */ new Set()).delete(_))), _.f & 33554432) if (_.f ^= O, _ === c) Hr(_, null, n);
1920
+ if (_.f & 8192 && (Mn(_), a && (_.nodes?.a?.unfix(), (f ??= /* @__PURE__ */ new Set()).delete(_))), _.f & 33554432) if (_.f ^= k, _ === c) zr(_, null, n);
1920
1921
  else {
1921
1922
  var y = u ? u.next : c;
1922
- _ === e.effect.last && (e.effect.last = _.prev), _.prev && (_.prev.next = _.next), _.next && (_.next.prev = _.prev), Ur(e, u, _), Ur(e, _, y), Hr(_, y, n), u = _, p = [], m = [], c = zr(u.next);
1923
+ _ === e.effect.last && (e.effect.last = _.prev), _.prev && (_.prev.next = _.next), _.next && (_.next.prev = _.prev), Br(e, u, _), Br(e, _, y), zr(_, y, n), u = _, p = [], m = [], c = Ir(u.next);
1923
1924
  continue;
1924
1925
  }
1925
1926
  if (_ !== c) {
@@ -1928,25 +1929,25 @@ function Br(e, t, n, r, i) {
1928
1929
  var ee = m[0], b;
1929
1930
  u = ee.prev;
1930
1931
  var x = p[0], S = p[p.length - 1];
1931
- for (b = 0; b < p.length; b += 1) Hr(p[b], ee, n);
1932
+ for (b = 0; b < p.length; b += 1) zr(p[b], ee, n);
1932
1933
  for (b = 0; b < m.length; b += 1) l.delete(m[b]);
1933
- Ur(e, x.prev, S.next), Ur(e, u, x), Ur(e, S, ee), c = ee, u = S, --v, p = [], m = [];
1934
- } else l.delete(_), Hr(_, c, n), Ur(e, _.prev, _.next), Ur(e, _, u === null ? e.effect.first : u.next), Ur(e, u, _), u = _;
1934
+ Br(e, x.prev, S.next), Br(e, u, x), Br(e, S, ee), c = ee, u = S, --v, p = [], m = [];
1935
+ } else l.delete(_), zr(_, c, n), Br(e, _.prev, _.next), Br(e, _, u === null ? e.effect.first : u.next), Br(e, u, _), u = _;
1935
1936
  continue;
1936
1937
  }
1937
- for (p = [], m = []; c !== null && c !== _;) (l ??= /* @__PURE__ */ new Set()).add(c), m.push(c), c = zr(c.next);
1938
+ for (p = [], m = []; c !== null && c !== _;) (l ??= /* @__PURE__ */ new Set()).add(c), m.push(c), c = Ir(c.next);
1938
1939
  if (c === null) continue;
1939
1940
  }
1940
- _.f & 33554432 || p.push(_), u = _, c = zr(_.next);
1941
+ _.f & 33554432 || p.push(_), u = _, c = Ir(_.next);
1941
1942
  }
1942
1943
  if (e.outrogroups !== null) {
1943
- for (let t of e.outrogroups) t.pending.size === 0 && (Ir(e, d(t.done)), e.outrogroups?.delete(t));
1944
+ for (let t of e.outrogroups) t.pending.size === 0 && (Nr(e, d(t.done)), e.outrogroups?.delete(t));
1944
1945
  e.outrogroups.size === 0 && (e.outrogroups = null);
1945
1946
  }
1946
1947
  if (c !== null || l !== void 0) {
1947
1948
  var C = [];
1948
1949
  if (l !== void 0) for (_ of l) _.f & 8192 || C.push(_);
1949
- for (; c !== null;) !(c.f & 8192) && c !== e.fallback && C.push(c), c = zr(c.next);
1950
+ for (; c !== null;) !(c.f & 8192) && c !== e.fallback && C.push(c), c = Ir(c.next);
1950
1951
  var te = C.length;
1951
1952
  if (te > 0) {
1952
1953
  var w = r & 4 && o === 0 ? n : null;
@@ -1954,37 +1955,37 @@ function Br(e, t, n, r, i) {
1954
1955
  for (v = 0; v < te; v += 1) C[v].nodes?.a?.measure();
1955
1956
  for (v = 0; v < te; v += 1) C[v].nodes?.a?.fix();
1956
1957
  }
1957
- Fr(e, C, w);
1958
+ Mr(e, C, w);
1958
1959
  }
1959
1960
  }
1960
1961
  a && We(() => {
1961
1962
  if (f !== void 0) for (_ of f) _.nodes?.a?.apply();
1962
1963
  });
1963
1964
  }
1964
- function Vr(e, t, n, r, i, a, o, s) {
1965
- var c = o & 1 ? o & 16 ? Vt(n) : /* @__PURE__ */ Ht(n, !1, !1) : null, l = o & 2 ? Vt(i) : null;
1965
+ function Rr(e, t, n, r, i, a, o, s) {
1966
+ var c = o & 1 ? o & 16 ? Ht(n) : /* @__PURE__ */ Ut(n, !1, !1) : null, l = o & 2 ? Ht(i) : null;
1966
1967
  return {
1967
1968
  v: c,
1968
1969
  i: l,
1969
- e: Tn(() => (a(t, c ?? n, l ?? i, s), () => {
1970
+ e: wn(() => (a(t, c ?? n, l ?? i, s), () => {
1970
1971
  e.delete(r);
1971
1972
  }))
1972
1973
  };
1973
1974
  }
1974
- function Hr(e, t, n) {
1975
+ function zr(e, t, n) {
1975
1976
  if (e.nodes) for (var r = e.nodes.start, i = e.nodes.end, a = t && !(t.f & 33554432) ? t.nodes.start : n; r !== null;) {
1976
1977
  var o = /* @__PURE__ */ tn(r);
1977
1978
  if (a.before(r), r === i) return;
1978
1979
  r = o;
1979
1980
  }
1980
1981
  }
1981
- function Ur(e, t, n) {
1982
+ function Br(e, t, n) {
1982
1983
  t === null ? e.effect.first = n : t.next = n, n === null ? e.effect.last = t : n.prev = t;
1983
1984
  }
1984
1985
  //#endregion
1985
- //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/css.js
1986
- function Wr(e, t) {
1987
- bn(() => {
1986
+ //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/css.js
1987
+ function Vr(e, t) {
1988
+ yn(() => {
1988
1989
  var n = e.getRootNode(), r = n.host ? n : n.head ?? n.ownerDocument.head;
1989
1990
  if (!r.querySelector("#" + t.hash)) {
1990
1991
  let e = cn("style");
@@ -1993,35 +1994,35 @@ function Wr(e, t) {
1993
1994
  });
1994
1995
  }
1995
1996
  //#endregion
1996
- //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/elements/actions.js
1997
- function Gr(e, t, n) {
1998
- bn(() => {
1999
- var r = ar(() => t(e, n?.()) || {});
1997
+ //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/elements/actions.js
1998
+ function Hr(e, t, n) {
1999
+ yn(() => {
2000
+ var r = ir(() => t(e, n?.()) || {});
2000
2001
  if (n && r?.update) {
2001
2002
  var i = !1, a = {};
2002
- Sn(() => {
2003
+ xn(() => {
2003
2004
  var e = n();
2004
- or(e), i && Pe(a, e) && (a = e, r.update(e));
2005
+ ar(e), i && Fe(a, e) && (a = e, r.update(e));
2005
2006
  }), i = !0;
2006
2007
  }
2007
2008
  if (r?.destroy) return () => r.destroy();
2008
2009
  });
2009
2010
  }
2010
2011
  //#endregion
2011
- //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/shared/attributes.js
2012
- var Kr = [..." \n\r\f\xA0\v"];
2013
- function qr(e, t, n) {
2012
+ //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/shared/attributes.js
2013
+ var Ur = [..." \n\r\f\xA0\v"];
2014
+ function Wr(e, t, n) {
2014
2015
  var r = e == null ? "" : "" + e;
2015
2016
  if (t && (r = r ? r + " " + t : t), n) {
2016
2017
  for (var i of Object.keys(n)) if (n[i]) r = r ? r + " " + i : i;
2017
2018
  else if (r.length) for (var a = i.length, o = 0; (o = r.indexOf(i, o)) >= 0;) {
2018
2019
  var s = o + a;
2019
- (o === 0 || Kr.includes(r[o - 1])) && (s === r.length || Kr.includes(r[s])) ? r = (o === 0 ? "" : r.substring(0, o)) + r.substring(s + 1) : o = s;
2020
+ (o === 0 || Ur.includes(r[o - 1])) && (s === r.length || Ur.includes(r[s])) ? r = (o === 0 ? "" : r.substring(0, o)) + r.substring(s + 1) : o = s;
2020
2021
  }
2021
2022
  }
2022
2023
  return r === "" ? null : r;
2023
2024
  }
2024
- function Jr(e, t = !1) {
2025
+ function Gr(e, t = !1) {
2025
2026
  var n = t ? " !important;" : ";", r = "";
2026
2027
  for (var i of Object.keys(e)) {
2027
2028
  var a = e[i];
@@ -2029,16 +2030,16 @@ function Jr(e, t = !1) {
2029
2030
  }
2030
2031
  return r;
2031
2032
  }
2032
- function Yr(e) {
2033
+ function Kr(e) {
2033
2034
  return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
2034
2035
  }
2035
- function Xr(e, t) {
2036
+ function qr(e, t) {
2036
2037
  if (t) {
2037
2038
  var n = "", r, i;
2038
2039
  if (Array.isArray(t) ? (r = t[0], i = t[1]) : r = t, e) {
2039
2040
  e = String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim();
2040
2041
  var a = !1, o = 0, s = !1, c = [];
2041
- r && c.push(...Object.keys(r).map(Yr)), i && c.push(...Object.keys(i).map(Yr));
2042
+ r && c.push(...Object.keys(r).map(Kr)), i && c.push(...Object.keys(i).map(Kr));
2042
2043
  var l = 0, u = -1;
2043
2044
  let t = e.length;
2044
2045
  for (var d = 0; d < t; d++) {
@@ -2047,7 +2048,7 @@ function Xr(e, t) {
2047
2048
  if (f === ":" && u === -1) u = d;
2048
2049
  else if (f === ";" || d === t - 1) {
2049
2050
  if (u !== -1) {
2050
- var p = Yr(e.substring(l, u).trim());
2051
+ var p = Kr(e.substring(l, u).trim());
2051
2052
  if (!c.includes(p)) {
2052
2053
  f !== ";" && d++;
2053
2054
  var m = e.substring(l, d).trim();
@@ -2059,17 +2060,17 @@ function Xr(e, t) {
2059
2060
  }
2060
2061
  }
2061
2062
  }
2062
- return r && (n += Jr(r)), i && (n += Jr(i, !0)), n = n.trim(), n === "" ? null : n;
2063
+ return r && (n += Gr(r)), i && (n += Gr(i, !0)), n = n.trim(), n === "" ? null : n;
2063
2064
  }
2064
2065
  return e == null ? null : String(e);
2065
2066
  }
2066
2067
  //#endregion
2067
- //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/elements/class.js
2068
- function Zr(e, t, n, r, i, a) {
2069
- var o = e[N];
2068
+ //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/elements/class.js
2069
+ function Jr(e, t, n, r, i, a) {
2070
+ var o = e[ce];
2070
2071
  if (P || o !== n || o === void 0) {
2071
- var s = qr(n, r, a);
2072
- (!P || s !== e.getAttribute("class")) && (s == null ? e.removeAttribute("class") : t ? e.className = s : e.setAttribute("class", s)), e[N] = n;
2072
+ var s = Wr(n, r, a);
2073
+ (!P || s !== e.getAttribute("class")) && (s == null ? e.removeAttribute("class") : t ? e.className = s : e.setAttribute("class", s)), e[ce] = n;
2073
2074
  } else if (a && i !== a) for (var c in a) {
2074
2075
  var l = !!a[c];
2075
2076
  (i == null || l !== !!i[c]) && e.classList.toggle(c, l);
@@ -2077,49 +2078,49 @@ function Zr(e, t, n, r, i, a) {
2077
2078
  return a;
2078
2079
  }
2079
2080
  //#endregion
2080
- //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/elements/style.js
2081
- function Qr(e, t = {}, n, r) {
2081
+ //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/elements/style.js
2082
+ function Yr(e, t = {}, n, r) {
2082
2083
  for (var i in n) {
2083
2084
  var a = n[i];
2084
2085
  t[i] !== a && (n[i] == null ? e.style.removeProperty(i) : e.style.setProperty(i, a, r));
2085
2086
  }
2086
2087
  }
2087
- function $r(e, t, n, r) {
2088
+ function Xr(e, t, n, r) {
2088
2089
  var i = e[le];
2089
2090
  if (P || i !== t) {
2090
- var a = Xr(t, r);
2091
+ var a = qr(t, r);
2091
2092
  (!P || a !== e.getAttribute("style")) && (a == null ? e.removeAttribute("style") : e.style.cssText = a), e[le] = t;
2092
- } else r && (Array.isArray(r) ? (Qr(e, n?.[0], r[0]), Qr(e, n?.[1], r[1], "important")) : Qr(e, n, r));
2093
+ } else r && (Array.isArray(r) ? (Yr(e, n?.[0], r[0]), Yr(e, n?.[1], r[1], "important")) : Yr(e, n, r));
2093
2094
  return r;
2094
2095
  }
2095
2096
  //#endregion
2096
- //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/elements/attributes.js
2097
- var ei = Symbol("is custom element"), ti = Symbol("is html"), ni = fe ? "link" : "LINK";
2098
- function Q(e, t, n, r) {
2099
- var i = ii(e);
2100
- P && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === ni) || i[t] !== (i[t] = n) && (t === "loading" && (e[se] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && oi(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
2101
- }
2102
- function ri(e, t, n) {
2103
- var r = K, i = J;
2097
+ //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/elements/attributes.js
2098
+ var Zr = Symbol("is custom element"), Qr = Symbol("is html"), $r = fe ? "link" : "LINK";
2099
+ function ei(e, t, n, r) {
2100
+ var i = ni(e);
2101
+ P && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === $r) || i[t] !== (i[t] = n) && (t === "loading" && (e[oe] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && ii(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
2102
+ }
2103
+ function ti(e, t, n) {
2104
+ var r = q, i = Y;
2104
2105
  let a = P;
2105
- P && F(!1), q(null), Vn(null);
2106
+ P && Oe(!1), J(null), Bn(null);
2106
2107
  try {
2107
- t !== "style" && (ai.has(e.getAttribute("is") || e.nodeName) || !customElements || customElements.get(e.getAttribute("is") || e.nodeName.toLowerCase()) ? oi(e).includes(t) : n && typeof n == "object") ? e[t] = n : Q(e, t, n == null ? n : String(n));
2108
+ t !== "style" && (ri.has(e.getAttribute("is") || e.nodeName) || !customElements || customElements.get(e.getAttribute("is") || e.nodeName.toLowerCase()) ? ii(e).includes(t) : n && typeof n == "object") ? e[t] = n : ei(e, t, n == null ? n : String(n));
2108
2109
  } finally {
2109
- q(r), Vn(i), a && F(!0);
2110
+ J(r), Bn(i), a && Oe(!0);
2110
2111
  }
2111
2112
  }
2112
- function ii(e) {
2113
- return e[ce] ??= {
2114
- [ei]: e.nodeName.includes("-"),
2115
- [ti]: e.namespaceURI === s
2113
+ function ni(e) {
2114
+ return e[se] ??= {
2115
+ [Zr]: e.nodeName.includes("-"),
2116
+ [Qr]: e.namespaceURI === s
2116
2117
  };
2117
2118
  }
2118
- var ai = /* @__PURE__ */ new Map();
2119
- function oi(e) {
2120
- var t = e.getAttribute("is") || e.nodeName, n = ai.get(t);
2119
+ var ri = /* @__PURE__ */ new Map();
2120
+ function ii(e) {
2121
+ var t = e.getAttribute("is") || e.nodeName, n = ri.get(t);
2121
2122
  if (n) return n;
2122
- ai.set(t, n = []);
2123
+ ri.set(t, n = []);
2123
2124
  for (var r, i = e, a = Element.prototype; a !== i;) {
2124
2125
  for (var o in r = h(i), r) r[o].set && o !== "innerHTML" && o !== "textContent" && o !== "innerText" && n.push(o);
2125
2126
  i = v(i);
@@ -2127,23 +2128,23 @@ function oi(e) {
2127
2128
  return n;
2128
2129
  }
2129
2130
  //#endregion
2130
- //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js
2131
- function si(e, t) {
2132
- return e === t || e?.[j] === t;
2131
+ //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js
2132
+ function ai(e, t) {
2133
+ return e === t || e?.[M] === t;
2133
2134
  }
2134
- function ci(e = {}, t, n, r) {
2135
- var i = R.r, a = J;
2136
- return bn(() => {
2135
+ function oi(e = {}, t, n, r) {
2136
+ var i = L.r, a = Y;
2137
+ return yn(() => {
2137
2138
  var o, s;
2138
- return Sn(() => {
2139
- o = s, s = r?.() || [], ar(() => {
2140
- si(n(...s), e) || (t(e, ...s), o && si(n(...o), e) && t(null, ...o));
2139
+ return xn(() => {
2140
+ o = s, s = r?.() || [], ir(() => {
2141
+ ai(n(...s), e) || (t(e, ...s), o && ai(n(...o), e) && t(null, ...o));
2141
2142
  });
2142
2143
  }), () => {
2143
2144
  let r = a;
2144
2145
  for (; r !== i && r.parent !== null && r.parent.f & 33554432;) r = r.parent;
2145
2146
  let o = () => {
2146
- s && si(n(...s), e) && t(null, ...s);
2147
+ s && ai(n(...s), e) && t(null, ...s);
2147
2148
  }, c = r.teardown;
2148
2149
  r.teardown = () => {
2149
2150
  o(), c?.();
@@ -2152,12 +2153,12 @@ function ci(e = {}, t, n, r) {
2152
2153
  }), e;
2153
2154
  }
2154
2155
  //#endregion
2155
- //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/props.js
2156
- function li(e, t, n, r) {
2157
- var i = !Le || (n & 2) != 0, a = (n & 8) != 0, o = (n & 16) != 0, s = r, c = !0, l = void 0, u = () => o && i ? (l ??= /* @__PURE__ */ kt(r), Z(l)) : (c && (c = !1, s = o ? ar(r) : r), s);
2156
+ //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/internal/client/reactivity/props.js
2157
+ function si(e, t, n, r) {
2158
+ var i = !Re || (n & 2) != 0, a = (n & 8) != 0, o = (n & 16) != 0, s = r, c = !0, l = void 0, u = () => o && i ? (l ??= /* @__PURE__ */ ut(r), Q(l)) : (c && (c = !1, s = o ? ir(r) : r), s);
2158
2159
  let d;
2159
2160
  if (a) {
2160
- var f = j in e || M in e;
2161
+ var f = M in e || N in e;
2161
2162
  d = m(e, t)?.set ?? (f && t in e ? (n) => e[t] = n : void 0);
2162
2163
  }
2163
2164
  var p, h = !1;
@@ -2176,28 +2177,28 @@ function li(e, t, n, r) {
2176
2177
  return arguments.length > 0 ? ((!i || !t || _ || h) && d(t ? g() : e), e) : g();
2177
2178
  });
2178
2179
  }
2179
- var v = !1, y = (n & 1 ? kt : Mt)(() => (v = !1, g()));
2180
- a && Z(y);
2181
- var ee = J;
2180
+ var v = !1, y = (n & 1 ? ut : pt)(() => (v = !1, g()));
2181
+ a && Q(y);
2182
+ var ee = Y;
2182
2183
  return (function(e, t) {
2183
2184
  if (arguments.length > 0) {
2184
- let n = t ? Z(y) : i && a ? qt(e) : e;
2185
+ let n = t ? Q(y) : i && a ? Jt(e) : e;
2185
2186
  return W(y, n), v = !0, s !== void 0 && (s = n), e;
2186
2187
  }
2187
- return Rn && v || ee.f & 16384 ? y.v : Z(y);
2188
+ return Ln && v || ee.f & 16384 ? y.v : Q(y);
2188
2189
  });
2189
2190
  }
2190
2191
  //#endregion
2191
- //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/legacy/legacy-client.js
2192
- function ui(e) {
2193
- return new di(e);
2192
+ //#region ../../node_modules/.bun/svelte@5.56.8/node_modules/svelte/src/legacy/legacy-client.js
2193
+ function ci(e) {
2194
+ return new li(e);
2194
2195
  }
2195
- var di = class {
2196
+ var li = class {
2196
2197
  #e;
2197
2198
  #t;
2198
2199
  constructor(e) {
2199
2200
  var t = /* @__PURE__ */ new Map(), n = (e, n) => {
2200
- var r = /* @__PURE__ */ Ht(n, !1, !1);
2201
+ var r = /* @__PURE__ */ Ut(n, !1, !1);
2201
2202
  return t.set(e, r), r;
2202
2203
  };
2203
2204
  let r = new Proxy({
@@ -2205,16 +2206,16 @@ var di = class {
2205
2206
  $$events: {}
2206
2207
  }, {
2207
2208
  get(e, r) {
2208
- return Z(t.get(r) ?? n(r, Reflect.get(e, r)));
2209
+ return Q(t.get(r) ?? n(r, Reflect.get(e, r)));
2209
2210
  },
2210
2211
  has(e, r) {
2211
- return r === M ? !0 : (Z(t.get(r) ?? n(r, Reflect.get(e, r))), Reflect.has(e, r));
2212
+ return r === N ? !0 : (Q(t.get(r) ?? n(r, Reflect.get(e, r))), Reflect.has(e, r));
2212
2213
  },
2213
2214
  set(e, r, i) {
2214
2215
  return W(t.get(r) ?? n(r, i), i), Reflect.set(e, r, i);
2215
2216
  }
2216
2217
  });
2217
- this.#t = (e.hydrate ? Or : Dr)(e.component, {
2218
+ this.#t = (e.hydrate ? Tr : wr)(e.component, {
2218
2219
  target: e.target,
2219
2220
  anchor: e.anchor,
2220
2221
  props: r,
@@ -2222,7 +2223,7 @@ var di = class {
2222
2223
  intro: e.intro ?? !1,
2223
2224
  recover: e.recover,
2224
2225
  transformError: e.transformError
2225
- }), !Ie && (!e?.props?.$$host || e.sync === !1) && ft(), this.#e = r.$$events;
2226
+ }), !Le && (!e?.props?.$$host || e.sync === !1) && At(), this.#e = r.$$events;
2226
2227
  for (let e of Object.keys(this.#t)) e === "$set" || e === "$destroy" || e === "$on" || p(this, e, {
2227
2228
  get() {
2228
2229
  return this.#t[e];
@@ -2235,7 +2236,7 @@ var di = class {
2235
2236
  this.#t.$set = (e) => {
2236
2237
  Object.assign(r, e);
2237
2238
  }, this.#t.$destroy = () => {
2238
- Mr(this.#t);
2239
+ kr(this.#t);
2239
2240
  };
2240
2241
  }
2241
2242
  $set(e) {
@@ -2251,8 +2252,8 @@ var di = class {
2251
2252
  $destroy() {
2252
2253
  this.#t.$destroy();
2253
2254
  }
2254
- }, fi;
2255
- typeof HTMLElement == "function" && (fi = class extends HTMLElement {
2255
+ }, ui;
2256
+ typeof HTMLElement == "function" && (ui = class extends HTMLElement {
2256
2257
  $$ctor;
2257
2258
  $$s;
2258
2259
  $$c;
@@ -2286,17 +2287,17 @@ typeof HTMLElement == "function" && (fi = class extends HTMLElement {
2286
2287
  function e(e) {
2287
2288
  return (t) => {
2288
2289
  let n = cn("slot");
2289
- e !== "default" && (n.name = e), Cr(t, n);
2290
+ e !== "default" && (n.name = e), br(t, n);
2290
2291
  };
2291
2292
  }
2292
- let t = {}, n = mi(this);
2293
+ let t = {}, n = fi(this);
2293
2294
  for (let r of this.$$s) r in n && (r === "default" && !this.$$d.children ? (this.$$d.children = e(r), t.default = !0) : t[r] = e(r));
2294
2295
  for (let e of this.attributes) {
2295
2296
  let t = this.$$g_p(e.name);
2296
- t in this.$$d || (this.$$d[t] = pi(t, e.value, this.$$p_d, "toProp"));
2297
+ t in this.$$d || (this.$$d[t] = di(t, e.value, this.$$p_d, "toProp"));
2297
2298
  }
2298
2299
  for (let e in this.$$p_d) !(e in this.$$d) && this[e] !== void 0 && (this.$$d[e] = this[e], delete this[e]);
2299
- this.$$c = ui({
2300
+ this.$$c = ci({
2300
2301
  component: this.$$ctor,
2301
2302
  target: this.$$shadowRoot || this,
2302
2303
  props: {
@@ -2304,13 +2305,13 @@ typeof HTMLElement == "function" && (fi = class extends HTMLElement {
2304
2305
  $$slots: t,
2305
2306
  $$host: this
2306
2307
  }
2307
- }), this.$$me = vn(() => {
2308
- Sn(() => {
2308
+ }), this.$$me = _n(() => {
2309
+ xn(() => {
2309
2310
  this.$$r = !0;
2310
2311
  for (let e of f(this.$$c)) {
2311
2312
  if (!this.$$p_d[e]?.reflect) continue;
2312
2313
  this.$$d[e] = this.$$c[e];
2313
- let t = pi(e, this.$$d[e], this.$$p_d, "toAttribute");
2314
+ let t = di(e, this.$$d[e], this.$$p_d, "toAttribute");
2314
2315
  t == null ? this.removeAttribute(this.$$p_d[e].attribute || e) : this.setAttribute(this.$$p_d[e].attribute || e, t);
2315
2316
  }
2316
2317
  this.$$r = !1;
@@ -2324,7 +2325,7 @@ typeof HTMLElement == "function" && (fi = class extends HTMLElement {
2324
2325
  }
2325
2326
  }
2326
2327
  attributeChangedCallback(e, t, n) {
2327
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = pi(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2328
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = di(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2328
2329
  }
2329
2330
  disconnectedCallback() {
2330
2331
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -2335,7 +2336,7 @@ typeof HTMLElement == "function" && (fi = class extends HTMLElement {
2335
2336
  return f(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
2336
2337
  }
2337
2338
  });
2338
- function pi(e, t, n, r) {
2339
+ function di(e, t, n, r) {
2339
2340
  let i = n[e]?.type;
2340
2341
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e]) return t;
2341
2342
  if (r === "toAttribute") switch (i) {
@@ -2353,14 +2354,14 @@ function pi(e, t, n, r) {
2353
2354
  default: return t;
2354
2355
  }
2355
2356
  }
2356
- function mi(e) {
2357
+ function fi(e) {
2357
2358
  let t = {};
2358
2359
  return e.childNodes.forEach((e) => {
2359
2360
  t[e.slot || "default"] = !0;
2360
2361
  }), t;
2361
2362
  }
2362
- function hi(e, t, n, r, i, a) {
2363
- let o = class extends fi {
2363
+ function pi(e, t, n, r, i, a) {
2364
+ let o = class extends ui {
2364
2365
  constructor() {
2365
2366
  super(e, n, i), this.$$p_d = t;
2366
2367
  }
@@ -2374,7 +2375,7 @@ function hi(e, t, n, r, i, a) {
2374
2375
  return this.$$c && e in this.$$c ? this.$$c[e] : this.$$d[e];
2375
2376
  },
2376
2377
  set(n) {
2377
- n = pi(e, n, t), this.$$d[e] = n;
2378
+ n = di(e, n, t), this.$$d[e] = n;
2378
2379
  var r = this.$$c;
2379
2380
  r && (m(r, e)?.get ? r[e] = n : r.$set({ [e]: n }));
2380
2381
  }
@@ -2387,37 +2388,37 @@ function hi(e, t, n, r, i, a) {
2387
2388
  }
2388
2389
  //#endregion
2389
2390
  //#region ../players-shared/dist/components/vendor/nds/nds-icon-button.js
2390
- var gi = globalThis, _i = gi.ShadowRoot && (gi.ShadyCSS === void 0 || gi.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, vi = Symbol(), yi = /* @__PURE__ */ new WeakMap(), bi = class {
2391
+ var mi = globalThis, hi = mi.ShadowRoot && (mi.ShadyCSS === void 0 || mi.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, gi = Symbol(), _i = /* @__PURE__ */ new WeakMap(), vi = class {
2391
2392
  constructor(e, t, n) {
2392
- if (this._$cssResult$ = !0, n !== vi) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
2393
+ if (this._$cssResult$ = !0, n !== gi) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
2393
2394
  this.cssText = e, this.t = t;
2394
2395
  }
2395
2396
  get styleSheet() {
2396
2397
  let e = this.o, t = this.t;
2397
- if (_i && e === void 0) {
2398
+ if (hi && e === void 0) {
2398
2399
  let n = t !== void 0 && t.length === 1;
2399
- n && (e = yi.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), n && yi.set(t, e));
2400
+ n && (e = _i.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), n && _i.set(t, e));
2400
2401
  }
2401
2402
  return e;
2402
2403
  }
2403
2404
  toString() {
2404
2405
  return this.cssText;
2405
2406
  }
2406
- }, xi = (e) => new bi(typeof e == "string" ? e : e + "", void 0, vi), Si = (e, t) => {
2407
- if (_i) e.adoptedStyleSheets = t.map(((e) => e instanceof CSSStyleSheet ? e : e.styleSheet));
2407
+ }, yi = (e) => new vi(typeof e == "string" ? e : e + "", void 0, gi), bi = (e, t) => {
2408
+ if (hi) e.adoptedStyleSheets = t.map(((e) => e instanceof CSSStyleSheet ? e : e.styleSheet));
2408
2409
  else for (let n of t) {
2409
- let t = document.createElement("style"), r = gi.litNonce;
2410
+ let t = document.createElement("style"), r = mi.litNonce;
2410
2411
  r !== void 0 && t.setAttribute("nonce", r), t.textContent = n.cssText, e.appendChild(t);
2411
2412
  }
2412
- }, Ci = _i ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((e) => {
2413
+ }, xi = hi ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((e) => {
2413
2414
  let t = "";
2414
2415
  for (let n of e.cssRules) t += n.cssText;
2415
- return xi(t);
2416
- })(e) : e, { is: wi, defineProperty: Ti, getOwnPropertyDescriptor: Ei, getOwnPropertyNames: Di, getOwnPropertySymbols: Oi, getPrototypeOf: ki } = Object, Ai = globalThis, ji = Ai.trustedTypes, Mi = ji ? ji.emptyScript : "", Ni = Ai.reactiveElementPolyfillSupport, Pi = (e, t) => e, Fi = {
2416
+ return yi(t);
2417
+ })(e) : e, { is: Si, defineProperty: Ci, getOwnPropertyDescriptor: wi, getOwnPropertyNames: Ti, getOwnPropertySymbols: Ei, getPrototypeOf: Di } = Object, Oi = globalThis, ki = Oi.trustedTypes, Ai = ki ? ki.emptyScript : "", ji = Oi.reactiveElementPolyfillSupport, Mi = (e, t) => e, Ni = {
2417
2418
  toAttribute(e, t) {
2418
2419
  switch (t) {
2419
2420
  case Boolean:
2420
- e = e ? Mi : null;
2421
+ e = e ? Ai : null;
2421
2422
  break;
2422
2423
  case Object:
2423
2424
  case Array: e = e == null ? e : JSON.stringify(e);
@@ -2442,30 +2443,30 @@ var gi = globalThis, _i = gi.ShadowRoot && (gi.ShadyCSS === void 0 || gi.ShadyCS
2442
2443
  }
2443
2444
  return n;
2444
2445
  }
2445
- }, Ii = (e, t) => !wi(e, t), Li = {
2446
+ }, Pi = (e, t) => !Si(e, t), Fi = {
2446
2447
  attribute: !0,
2447
2448
  type: String,
2448
- converter: Fi,
2449
+ converter: Ni,
2449
2450
  reflect: !1,
2450
2451
  useDefault: !1,
2451
- hasChanged: Ii
2452
+ hasChanged: Pi
2452
2453
  };
2453
- Symbol.metadata ??= Symbol("metadata"), Ai.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
2454
- var Ri = class extends HTMLElement {
2454
+ Symbol.metadata ??= Symbol("metadata"), Oi.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
2455
+ var Ii = class extends HTMLElement {
2455
2456
  static addInitializer(e) {
2456
2457
  this._$Ei(), (this.l ??= []).push(e);
2457
2458
  }
2458
2459
  static get observedAttributes() {
2459
2460
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
2460
2461
  }
2461
- static createProperty(e, t = Li) {
2462
+ static createProperty(e, t = Fi) {
2462
2463
  if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(e, t), !t.noAccessor) {
2463
2464
  let n = Symbol(), r = this.getPropertyDescriptor(e, n, t);
2464
- r !== void 0 && Ti(this.prototype, e, r);
2465
+ r !== void 0 && Ci(this.prototype, e, r);
2465
2466
  }
2466
2467
  }
2467
2468
  static getPropertyDescriptor(e, t, n) {
2468
- let { get: r, set: i } = Ei(this.prototype, e) ?? {
2469
+ let { get: r, set: i } = wi(this.prototype, e) ?? {
2469
2470
  get() {
2470
2471
  return this[t];
2471
2472
  },
@@ -2484,17 +2485,17 @@ var Ri = class extends HTMLElement {
2484
2485
  };
2485
2486
  }
2486
2487
  static getPropertyOptions(e) {
2487
- return this.elementProperties.get(e) ?? Li;
2488
+ return this.elementProperties.get(e) ?? Fi;
2488
2489
  }
2489
2490
  static _$Ei() {
2490
- if (this.hasOwnProperty(Pi("elementProperties"))) return;
2491
- let e = ki(this);
2491
+ if (this.hasOwnProperty(Mi("elementProperties"))) return;
2492
+ let e = Di(this);
2492
2493
  e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
2493
2494
  }
2494
2495
  static finalize() {
2495
- if (this.hasOwnProperty(Pi("finalized"))) return;
2496
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Pi("properties"))) {
2497
- let e = this.properties, t = [...Di(e), ...Oi(e)];
2496
+ if (this.hasOwnProperty(Mi("finalized"))) return;
2497
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Mi("properties"))) {
2498
+ let e = this.properties, t = [...Ti(e), ...Ei(e)];
2498
2499
  for (let n of t) this.createProperty(n, e[n]);
2499
2500
  }
2500
2501
  let e = this[Symbol.metadata];
@@ -2513,8 +2514,8 @@ var Ri = class extends HTMLElement {
2513
2514
  let t = [];
2514
2515
  if (Array.isArray(e)) {
2515
2516
  let n = new Set(e.flat(Infinity).reverse());
2516
- for (let e of n) t.unshift(Ci(e));
2517
- } else e !== void 0 && t.push(Ci(e));
2517
+ for (let e of n) t.unshift(xi(e));
2518
+ } else e !== void 0 && t.push(xi(e));
2518
2519
  return t;
2519
2520
  }
2520
2521
  static _$Eu(e, t) {
@@ -2540,7 +2541,7 @@ var Ri = class extends HTMLElement {
2540
2541
  }
2541
2542
  createRenderRoot() {
2542
2543
  let e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
2543
- return Si(e, this.constructor.elementStyles), e;
2544
+ return bi(e, this.constructor.elementStyles), e;
2544
2545
  }
2545
2546
  connectedCallback() {
2546
2547
  this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach(((e) => e.hostConnected?.()));
@@ -2555,14 +2556,14 @@ var Ri = class extends HTMLElement {
2555
2556
  _$ET(e, t) {
2556
2557
  let n = this.constructor.elementProperties.get(e), r = this.constructor._$Eu(e, n);
2557
2558
  if (r !== void 0 && n.reflect === !0) {
2558
- let i = (n.converter?.toAttribute === void 0 ? Fi : n.converter).toAttribute(t, n.type);
2559
+ let i = (n.converter?.toAttribute === void 0 ? Ni : n.converter).toAttribute(t, n.type);
2559
2560
  this._$Em = e, i == null ? this.removeAttribute(r) : this.setAttribute(r, i), this._$Em = null;
2560
2561
  }
2561
2562
  }
2562
2563
  _$AK(e, t) {
2563
2564
  let n = this.constructor, r = n._$Eh.get(e);
2564
2565
  if (r !== void 0 && this._$Em !== r) {
2565
- let e = n.getPropertyOptions(r), i = typeof e.converter == "function" ? { fromAttribute: e.converter } : e.converter?.fromAttribute === void 0 ? Fi : e.converter;
2566
+ let e = n.getPropertyOptions(r), i = typeof e.converter == "function" ? { fromAttribute: e.converter } : e.converter?.fromAttribute === void 0 ? Ni : e.converter;
2566
2567
  this._$Em = r;
2567
2568
  let a = i.fromAttribute(t, e.type);
2568
2569
  this[r] = a ?? this._$Ej?.get(r) ?? a, this._$Em = null;
@@ -2571,7 +2572,7 @@ var Ri = class extends HTMLElement {
2571
2572
  requestUpdate(e, t, n) {
2572
2573
  if (e !== void 0) {
2573
2574
  let r = this.constructor, i = this[e];
2574
- if (n ??= r.getPropertyOptions(e), !((n.hasChanged ?? Ii)(i, t) || n.useDefault && n.reflect && i === this._$Ej?.get(e) && !this.hasAttribute(r._$Eu(e, n)))) return;
2575
+ if (n ??= r.getPropertyOptions(e), !((n.hasChanged ?? Pi)(i, t) || n.useDefault && n.reflect && i === this._$Ej?.get(e) && !this.hasAttribute(r._$Eu(e, n)))) return;
2575
2576
  this.C(e, t, n);
2576
2577
  }
2577
2578
  this.isUpdatePending === !1 && (this._$ES = this._$EP());
@@ -2635,86 +2636,86 @@ var Ri = class extends HTMLElement {
2635
2636
  updated(e) {}
2636
2637
  firstUpdated(e) {}
2637
2638
  };
2638
- Ri.elementStyles = [], Ri.shadowRootOptions = { mode: "open" }, Ri[Pi("elementProperties")] = /* @__PURE__ */ new Map(), Ri[Pi("finalized")] = /* @__PURE__ */ new Map(), Ni?.({ ReactiveElement: Ri }), (Ai.reactiveElementVersions ??= []).push("2.1.1");
2639
- var zi = globalThis, Bi = zi.trustedTypes, Vi = Bi ? Bi.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Hi = "$lit$", Ui = `lit$${Math.random().toFixed(9).slice(2)}$`, Wi = "?" + Ui, Gi = `<${Wi}>`, Ki = document, qi = () => Ki.createComment(""), Ji = (e) => e === null || typeof e != "object" && typeof e != "function", Yi = Array.isArray, Xi = (e) => Yi(e) || typeof e?.[Symbol.iterator] == "function", Zi = "[ \n\f\r]", Qi = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, $i = /-->/g, ea = />/g, ta = RegExp(`>|${Zi}(?:([^\\s"'>=/]+)(${Zi}*=${Zi}*(?:[^
2640
- \f\r"'\`<>=]|("|')|))|$)`, "g"), na = /'/g, ra = /"/g, ia = /^(?:script|style|textarea|title)$/i, aa = ((e) => (t, ...n) => ({
2639
+ Ii.elementStyles = [], Ii.shadowRootOptions = { mode: "open" }, Ii[Mi("elementProperties")] = /* @__PURE__ */ new Map(), Ii[Mi("finalized")] = /* @__PURE__ */ new Map(), ji?.({ ReactiveElement: Ii }), (Oi.reactiveElementVersions ??= []).push("2.1.1");
2640
+ var Li = globalThis, Ri = Li.trustedTypes, zi = Ri ? Ri.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Bi = "$lit$", Vi = `lit$${Math.random().toFixed(9).slice(2)}$`, Hi = "?" + Vi, Ui = `<${Hi}>`, Wi = document, Gi = () => Wi.createComment(""), Ki = (e) => e === null || typeof e != "object" && typeof e != "function", qi = Array.isArray, Ji = (e) => qi(e) || typeof e?.[Symbol.iterator] == "function", Yi = "[ \n\f\r]", Xi = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Zi = /-->/g, Qi = />/g, $i = RegExp(`>|${Yi}(?:([^\\s"'>=/]+)(${Yi}*=${Yi}*(?:[^
2641
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), ea = /'/g, ta = /"/g, na = /^(?:script|style|textarea|title)$/i, ra = ((e) => (t, ...n) => ({
2641
2642
  _$litType$: e,
2642
2643
  strings: t,
2643
2644
  values: n
2644
- }))(1), oa = Symbol.for("lit-noChange"), $ = Symbol.for("lit-nothing"), sa = /* @__PURE__ */ new WeakMap(), ca = Ki.createTreeWalker(Ki, 129);
2645
- function la(e, t) {
2646
- if (!Yi(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
2647
- return Vi === void 0 ? t : Vi.createHTML(t);
2645
+ }))(1), ia = Symbol.for("lit-noChange"), $ = Symbol.for("lit-nothing"), aa = /* @__PURE__ */ new WeakMap(), oa = Wi.createTreeWalker(Wi, 129);
2646
+ function sa(e, t) {
2647
+ if (!qi(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
2648
+ return zi === void 0 ? t : zi.createHTML(t);
2648
2649
  }
2649
- var ua = (e, t) => {
2650
- let n = e.length - 1, r = [], i, a = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = Qi;
2650
+ var ca = (e, t) => {
2651
+ let n = e.length - 1, r = [], i, a = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = Xi;
2651
2652
  for (let t = 0; t < n; t++) {
2652
2653
  let n = e[t], s, c, l = -1, u = 0;
2653
- for (; u < n.length && (o.lastIndex = u, c = o.exec(n), c !== null);) u = o.lastIndex, o === Qi ? c[1] === "!--" ? o = $i : c[1] === void 0 ? c[2] === void 0 ? c[3] !== void 0 && (o = ta) : (ia.test(c[2]) && (i = RegExp("</" + c[2], "g")), o = ta) : o = ea : o === ta ? c[0] === ">" ? (o = i ?? Qi, l = -1) : c[1] === void 0 ? l = -2 : (l = o.lastIndex - c[2].length, s = c[1], o = c[3] === void 0 ? ta : c[3] === "\"" ? ra : na) : o === ra || o === na ? o = ta : o === $i || o === ea ? o = Qi : (o = ta, i = void 0);
2654
- let d = o === ta && e[t + 1].startsWith("/>") ? " " : "";
2655
- a += o === Qi ? n + Gi : l >= 0 ? (r.push(s), n.slice(0, l) + Hi + n.slice(l) + Ui + d) : n + Ui + (l === -2 ? t : d);
2654
+ for (; u < n.length && (o.lastIndex = u, c = o.exec(n), c !== null);) u = o.lastIndex, o === Xi ? c[1] === "!--" ? o = Zi : c[1] === void 0 ? c[2] === void 0 ? c[3] !== void 0 && (o = $i) : (na.test(c[2]) && (i = RegExp("</" + c[2], "g")), o = $i) : o = Qi : o === $i ? c[0] === ">" ? (o = i ?? Xi, l = -1) : c[1] === void 0 ? l = -2 : (l = o.lastIndex - c[2].length, s = c[1], o = c[3] === void 0 ? $i : c[3] === "\"" ? ta : ea) : o === ta || o === ea ? o = $i : o === Zi || o === Qi ? o = Xi : (o = $i, i = void 0);
2655
+ let d = o === $i && e[t + 1].startsWith("/>") ? " " : "";
2656
+ a += o === Xi ? n + Ui : l >= 0 ? (r.push(s), n.slice(0, l) + Bi + n.slice(l) + Vi + d) : n + Vi + (l === -2 ? t : d);
2656
2657
  }
2657
- return [la(e, a + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
2658
- }, da = class e {
2658
+ return [sa(e, a + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
2659
+ }, la = class e {
2659
2660
  constructor({ strings: t, _$litType$: n }, r) {
2660
2661
  let i;
2661
2662
  this.parts = [];
2662
- let a = 0, o = 0, s = t.length - 1, c = this.parts, [l, u] = ua(t, n);
2663
- if (this.el = e.createElement(l, r), ca.currentNode = this.el.content, n === 2 || n === 3) {
2663
+ let a = 0, o = 0, s = t.length - 1, c = this.parts, [l, u] = ca(t, n);
2664
+ if (this.el = e.createElement(l, r), oa.currentNode = this.el.content, n === 2 || n === 3) {
2664
2665
  let e = this.el.content.firstChild;
2665
2666
  e.replaceWith(...e.childNodes);
2666
2667
  }
2667
- for (; (i = ca.nextNode()) !== null && c.length < s;) {
2668
+ for (; (i = oa.nextNode()) !== null && c.length < s;) {
2668
2669
  if (i.nodeType === 1) {
2669
- if (i.hasAttributes()) for (let e of i.getAttributeNames()) if (e.endsWith(Hi)) {
2670
- let t = u[o++], n = i.getAttribute(e).split(Ui), r = /([.?@])?(.*)/.exec(t);
2670
+ if (i.hasAttributes()) for (let e of i.getAttributeNames()) if (e.endsWith(Bi)) {
2671
+ let t = u[o++], n = i.getAttribute(e).split(Vi), r = /([.?@])?(.*)/.exec(t);
2671
2672
  c.push({
2672
2673
  type: 1,
2673
2674
  index: a,
2674
2675
  name: r[2],
2675
2676
  strings: n,
2676
- ctor: r[1] === "." ? ga : r[1] === "?" ? _a : r[1] === "@" ? va : ha
2677
+ ctor: r[1] === "." ? ma : r[1] === "?" ? ha : r[1] === "@" ? ga : pa
2677
2678
  }), i.removeAttribute(e);
2678
- } else e.startsWith(Ui) && (c.push({
2679
+ } else e.startsWith(Vi) && (c.push({
2679
2680
  type: 6,
2680
2681
  index: a
2681
2682
  }), i.removeAttribute(e));
2682
- if (ia.test(i.tagName)) {
2683
- let e = i.textContent.split(Ui), t = e.length - 1;
2683
+ if (na.test(i.tagName)) {
2684
+ let e = i.textContent.split(Vi), t = e.length - 1;
2684
2685
  if (t > 0) {
2685
- i.textContent = Bi ? Bi.emptyScript : "";
2686
- for (let n = 0; n < t; n++) i.append(e[n], qi()), ca.nextNode(), c.push({
2686
+ i.textContent = Ri ? Ri.emptyScript : "";
2687
+ for (let n = 0; n < t; n++) i.append(e[n], Gi()), oa.nextNode(), c.push({
2687
2688
  type: 2,
2688
2689
  index: ++a
2689
2690
  });
2690
- i.append(e[t], qi());
2691
+ i.append(e[t], Gi());
2691
2692
  }
2692
2693
  }
2693
- } else if (i.nodeType === 8) if (i.data === Wi) c.push({
2694
+ } else if (i.nodeType === 8) if (i.data === Hi) c.push({
2694
2695
  type: 2,
2695
2696
  index: a
2696
2697
  });
2697
2698
  else {
2698
2699
  let e = -1;
2699
- for (; (e = i.data.indexOf(Ui, e + 1)) !== -1;) c.push({
2700
+ for (; (e = i.data.indexOf(Vi, e + 1)) !== -1;) c.push({
2700
2701
  type: 7,
2701
2702
  index: a
2702
- }), e += Ui.length - 1;
2703
+ }), e += Vi.length - 1;
2703
2704
  }
2704
2705
  a++;
2705
2706
  }
2706
2707
  }
2707
2708
  static createElement(e, t) {
2708
- let n = Ki.createElement("template");
2709
+ let n = Wi.createElement("template");
2709
2710
  return n.innerHTML = e, n;
2710
2711
  }
2711
2712
  };
2712
- function fa(e, t, n = e, r) {
2713
- if (t === oa) return t;
2714
- let i = r === void 0 ? n._$Cl : n._$Co?.[r], a = Ji(t) ? void 0 : t._$litDirective$;
2715
- return i?.constructor !== a && (i?._$AO?.(!1), a === void 0 ? i = void 0 : (i = new a(e), i._$AT(e, n, r)), r === void 0 ? n._$Cl = i : (n._$Co ??= [])[r] = i), i !== void 0 && (t = fa(e, i._$AS(e, t.values), i, r)), t;
2713
+ function ua(e, t, n = e, r) {
2714
+ if (t === ia) return t;
2715
+ let i = r === void 0 ? n._$Cl : n._$Co?.[r], a = Ki(t) ? void 0 : t._$litDirective$;
2716
+ return i?.constructor !== a && (i?._$AO?.(!1), a === void 0 ? i = void 0 : (i = new a(e), i._$AT(e, n, r)), r === void 0 ? n._$Cl = i : (n._$Co ??= [])[r] = i), i !== void 0 && (t = ua(e, i._$AS(e, t.values), i, r)), t;
2716
2717
  }
2717
- var pa = class {
2718
+ var da = class {
2718
2719
  constructor(e, t) {
2719
2720
  this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
2720
2721
  }
@@ -2725,23 +2726,23 @@ var pa = class {
2725
2726
  return this._$AM._$AU;
2726
2727
  }
2727
2728
  u(e) {
2728
- let { el: { content: t }, parts: n } = this._$AD, r = (e?.creationScope ?? Ki).importNode(t, !0);
2729
- ca.currentNode = r;
2730
- let i = ca.nextNode(), a = 0, o = 0, s = n[0];
2729
+ let { el: { content: t }, parts: n } = this._$AD, r = (e?.creationScope ?? Wi).importNode(t, !0);
2730
+ oa.currentNode = r;
2731
+ let i = oa.nextNode(), a = 0, o = 0, s = n[0];
2731
2732
  for (; s !== void 0;) {
2732
2733
  if (a === s.index) {
2733
2734
  let t;
2734
- s.type === 2 ? t = new ma(i, i.nextSibling, this, e) : s.type === 1 ? t = new s.ctor(i, s.name, s.strings, this, e) : s.type === 6 && (t = new ya(i, this, e)), this._$AV.push(t), s = n[++o];
2735
+ s.type === 2 ? t = new fa(i, i.nextSibling, this, e) : s.type === 1 ? t = new s.ctor(i, s.name, s.strings, this, e) : s.type === 6 && (t = new _a(i, this, e)), this._$AV.push(t), s = n[++o];
2735
2736
  }
2736
- a !== s?.index && (i = ca.nextNode(), a++);
2737
+ a !== s?.index && (i = oa.nextNode(), a++);
2737
2738
  }
2738
- return ca.currentNode = Ki, r;
2739
+ return oa.currentNode = Wi, r;
2739
2740
  }
2740
2741
  p(e) {
2741
2742
  let t = 0;
2742
2743
  for (let n of this._$AV) n !== void 0 && (n.strings === void 0 ? n._$AI(e[t]) : (n._$AI(e, n, t), t += n.strings.length - 2)), t++;
2743
2744
  }
2744
- }, ma = class e {
2745
+ }, fa = class e {
2745
2746
  get _$AU() {
2746
2747
  return this._$AM?._$AU ?? this._$Cv;
2747
2748
  }
@@ -2759,7 +2760,7 @@ var pa = class {
2759
2760
  return this._$AB;
2760
2761
  }
2761
2762
  _$AI(e, t = this) {
2762
- e = fa(this, e, t), Ji(e) ? e === $ || e == null || e === "" ? (this._$AH !== $ && this._$AR(), this._$AH = $) : e !== this._$AH && e !== oa && this._(e) : e._$litType$ === void 0 ? e.nodeType === void 0 ? Xi(e) ? this.k(e) : this._(e) : this.T(e) : this.$(e);
2763
+ e = ua(this, e, t), Ki(e) ? e === $ || e == null || e === "" ? (this._$AH !== $ && this._$AR(), this._$AH = $) : e !== this._$AH && e !== ia && this._(e) : e._$litType$ === void 0 ? e.nodeType === void 0 ? Ji(e) ? this.k(e) : this._(e) : this.T(e) : this.$(e);
2763
2764
  }
2764
2765
  O(e) {
2765
2766
  return this._$AA.parentNode.insertBefore(e, this._$AB);
@@ -2768,24 +2769,24 @@ var pa = class {
2768
2769
  this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
2769
2770
  }
2770
2771
  _(e) {
2771
- this._$AH !== $ && Ji(this._$AH) ? this._$AA.nextSibling.data = e : this.T(Ki.createTextNode(e)), this._$AH = e;
2772
+ this._$AH !== $ && Ki(this._$AH) ? this._$AA.nextSibling.data = e : this.T(Wi.createTextNode(e)), this._$AH = e;
2772
2773
  }
2773
2774
  $(e) {
2774
- let { values: t, _$litType$: n } = e, r = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = da.createElement(la(n.h, n.h[0]), this.options)), n);
2775
+ let { values: t, _$litType$: n } = e, r = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = la.createElement(sa(n.h, n.h[0]), this.options)), n);
2775
2776
  if (this._$AH?._$AD === r) this._$AH.p(t);
2776
2777
  else {
2777
- let e = new pa(r, this), n = e.u(this.options);
2778
+ let e = new da(r, this), n = e.u(this.options);
2778
2779
  e.p(t), this.T(n), this._$AH = e;
2779
2780
  }
2780
2781
  }
2781
2782
  _$AC(e) {
2782
- let t = sa.get(e.strings);
2783
- return t === void 0 && sa.set(e.strings, t = new da(e)), t;
2783
+ let t = aa.get(e.strings);
2784
+ return t === void 0 && aa.set(e.strings, t = new la(e)), t;
2784
2785
  }
2785
2786
  k(t) {
2786
- Yi(this._$AH) || (this._$AH = [], this._$AR());
2787
+ qi(this._$AH) || (this._$AH = [], this._$AR());
2787
2788
  let n = this._$AH, r, i = 0;
2788
- for (let a of t) i === n.length ? n.push(r = new e(this.O(qi()), this.O(qi()), this, this.options)) : r = n[i], r._$AI(a), i++;
2789
+ for (let a of t) i === n.length ? n.push(r = new e(this.O(Gi()), this.O(Gi()), this, this.options)) : r = n[i], r._$AI(a), i++;
2789
2790
  i < n.length && (this._$AR(r && r._$AB.nextSibling, i), n.length = i);
2790
2791
  }
2791
2792
  _$AR(e = this._$AA.nextSibling, t) {
@@ -2797,7 +2798,7 @@ var pa = class {
2797
2798
  setConnected(e) {
2798
2799
  this._$AM === void 0 && (this._$Cv = e, this._$AP?.(e));
2799
2800
  }
2800
- }, ha = class {
2801
+ }, pa = class {
2801
2802
  get tagName() {
2802
2803
  return this.element.tagName;
2803
2804
  }
@@ -2809,43 +2810,43 @@ var pa = class {
2809
2810
  }
2810
2811
  _$AI(e, t = this, n, r) {
2811
2812
  let i = this.strings, a = !1;
2812
- if (i === void 0) e = fa(this, e, t, 0), a = !Ji(e) || e !== this._$AH && e !== oa, a && (this._$AH = e);
2813
+ if (i === void 0) e = ua(this, e, t, 0), a = !Ki(e) || e !== this._$AH && e !== ia, a && (this._$AH = e);
2813
2814
  else {
2814
2815
  let r = e, o, s;
2815
- for (e = i[0], o = 0; o < i.length - 1; o++) s = fa(this, r[n + o], t, o), s === oa && (s = this._$AH[o]), a ||= !Ji(s) || s !== this._$AH[o], s === $ ? e = $ : e !== $ && (e += (s ?? "") + i[o + 1]), this._$AH[o] = s;
2816
+ for (e = i[0], o = 0; o < i.length - 1; o++) s = ua(this, r[n + o], t, o), s === ia && (s = this._$AH[o]), a ||= !Ki(s) || s !== this._$AH[o], s === $ ? e = $ : e !== $ && (e += (s ?? "") + i[o + 1]), this._$AH[o] = s;
2816
2817
  }
2817
2818
  a && !r && this.j(e);
2818
2819
  }
2819
2820
  j(e) {
2820
2821
  e === $ ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
2821
2822
  }
2822
- }, ga = class extends ha {
2823
+ }, ma = class extends pa {
2823
2824
  constructor() {
2824
2825
  super(...arguments), this.type = 3;
2825
2826
  }
2826
2827
  j(e) {
2827
2828
  this.element[this.name] = e === $ ? void 0 : e;
2828
2829
  }
2829
- }, _a = class extends ha {
2830
+ }, ha = class extends pa {
2830
2831
  constructor() {
2831
2832
  super(...arguments), this.type = 4;
2832
2833
  }
2833
2834
  j(e) {
2834
2835
  this.element.toggleAttribute(this.name, !!e && e !== $);
2835
2836
  }
2836
- }, va = class extends ha {
2837
+ }, ga = class extends pa {
2837
2838
  constructor(e, t, n, r, i) {
2838
2839
  super(e, t, n, r, i), this.type = 5;
2839
2840
  }
2840
2841
  _$AI(e, t = this) {
2841
- if ((e = fa(this, e, t, 0) ?? $) === oa) return;
2842
+ if ((e = ua(this, e, t, 0) ?? $) === ia) return;
2842
2843
  let n = this._$AH, r = e === $ && n !== $ || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, i = e !== $ && (n === $ || r);
2843
2844
  r && this.element.removeEventListener(this.name, this, n), i && this.element.addEventListener(this.name, this, e), this._$AH = e;
2844
2845
  }
2845
2846
  handleEvent(e) {
2846
2847
  typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
2847
2848
  }
2848
- }, ya = class {
2849
+ }, _a = class {
2849
2850
  constructor(e, t, n) {
2850
2851
  this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = n;
2851
2852
  }
@@ -2853,18 +2854,18 @@ var pa = class {
2853
2854
  return this._$AM._$AU;
2854
2855
  }
2855
2856
  _$AI(e) {
2856
- fa(this, e);
2857
+ ua(this, e);
2857
2858
  }
2858
- }, ba = zi.litHtmlPolyfillSupport;
2859
- ba?.(da, ma), (zi.litHtmlVersions ??= []).push("3.3.1");
2860
- var xa = (e, t, n) => {
2859
+ }, va = Li.litHtmlPolyfillSupport;
2860
+ va?.(la, fa), (Li.litHtmlVersions ??= []).push("3.3.1");
2861
+ var ya = (e, t, n) => {
2861
2862
  let r = n?.renderBefore ?? t, i = r._$litPart$;
2862
2863
  if (i === void 0) {
2863
2864
  let e = n?.renderBefore ?? null;
2864
- r._$litPart$ = i = new ma(t.insertBefore(qi(), e), e, void 0, n ?? {});
2865
+ r._$litPart$ = i = new fa(t.insertBefore(Gi(), e), e, void 0, n ?? {});
2865
2866
  }
2866
2867
  return i._$AI(e), i;
2867
- }, Sa = globalThis, Ca = class extends Ri {
2868
+ }, ba = globalThis, xa = class extends Ii {
2868
2869
  constructor() {
2869
2870
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
2870
2871
  }
@@ -2874,7 +2875,7 @@ var xa = (e, t, n) => {
2874
2875
  }
2875
2876
  update(e) {
2876
2877
  let t = this.render();
2877
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = xa(t, this.renderRoot, this.renderOptions);
2878
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = ya(t, this.renderRoot, this.renderOptions);
2878
2879
  }
2879
2880
  connectedCallback() {
2880
2881
  super.connectedCallback(), this._$Do?.setConnected(!0);
@@ -2883,23 +2884,23 @@ var xa = (e, t, n) => {
2883
2884
  super.disconnectedCallback(), this._$Do?.setConnected(!1);
2884
2885
  }
2885
2886
  render() {
2886
- return oa;
2887
+ return ia;
2887
2888
  }
2888
2889
  };
2889
- Ca._$litElement$ = !0, Ca.finalized = !0, Sa.litElementHydrateSupport?.({ LitElement: Ca });
2890
- var wa = Sa.litElementPolyfillSupport;
2891
- wa?.({ LitElement: Ca }), (Sa.litElementVersions ??= []).push("4.2.1");
2892
- var Ta = (e) => (t, n) => {
2890
+ xa._$litElement$ = !0, xa.finalized = !0, ba.litElementHydrateSupport?.({ LitElement: xa });
2891
+ var Sa = ba.litElementPolyfillSupport;
2892
+ Sa?.({ LitElement: xa }), (ba.litElementVersions ??= []).push("4.2.1");
2893
+ var Ca = (e) => (t, n) => {
2893
2894
  n === void 0 ? customElements.get(e) || customElements.define(e, t) : n.addInitializer((() => {
2894
2895
  customElements.get(e) || customElements.define(e, t);
2895
2896
  }));
2896
- }, Ea = {
2897
+ }, wa = {
2897
2898
  attribute: !0,
2898
2899
  type: String,
2899
- converter: Fi,
2900
+ converter: Ni,
2900
2901
  reflect: !1,
2901
- hasChanged: Ii
2902
- }, Da = (e = Ea, t, n) => {
2902
+ hasChanged: Pi
2903
+ }, Ta = (e = wa, t, n) => {
2903
2904
  let { kind: r, metadata: i } = n, a = globalThis.litPropertyMetadata.get(i);
2904
2905
  if (a === void 0 && globalThis.litPropertyMetadata.set(i, a = /* @__PURE__ */ new Map()), r === "setter" && ((e = Object.create(e)).wrapped = !0), a.set(n.name, e), r === "accessor") {
2905
2906
  let { name: r } = n;
@@ -2922,16 +2923,16 @@ var Ta = (e) => (t, n) => {
2922
2923
  }
2923
2924
  throw Error("Unsupported decorator location: " + r);
2924
2925
  };
2925
- function Oa(e) {
2926
- return (t, n) => typeof n == "object" ? Da(e, t, n) : ((e, t, n) => {
2926
+ function Ea(e) {
2927
+ return (t, n) => typeof n == "object" ? Ta(e, t, n) : ((e, t, n) => {
2927
2928
  let r = t.hasOwnProperty(n);
2928
2929
  return t.constructor.createProperty(n, e), r ? Object.getOwnPropertyDescriptor(t, n) : void 0;
2929
2930
  })(e, t, n);
2930
2931
  }
2931
- var ka = Object.defineProperty, Aa = Object.getOwnPropertyDescriptor, ja = (e, t, n, r) => {
2932
- for (var i = r > 1 ? void 0 : r ? Aa(t, n) : t, a = e.length - 1, o; a >= 0; a--) (o = e[a]) && (i = (r ? o(t, n, i) : o(i)) || i);
2933
- return r && i && ka(t, n, i), i;
2934
- }, Ma = class extends Ca {
2932
+ var Da = Object.defineProperty, Oa = Object.getOwnPropertyDescriptor, ka = (e, t, n, r) => {
2933
+ for (var i = r > 1 ? void 0 : r ? Oa(t, n) : t, a = e.length - 1, o; a >= 0; a--) (o = e[a]) && (i = (r ? o(t, n, i) : o(i)) || i);
2934
+ return r && i && Da(t, n, i), i;
2935
+ }, Aa = class extends xa {
2935
2936
  constructor() {
2936
2937
  super(...arguments), this.variant = "primary", this.size = "default", this.type = "circle", this.state = "default", this.iconName = "home", this.disabled = !1, this.buttonAriaLabel = "Icon button";
2937
2938
  }
@@ -2972,7 +2973,7 @@ var ka = Object.defineProperty, Aa = Object.getOwnPropertyDescriptor, ja = (e, t
2972
2973
  }));
2973
2974
  }
2974
2975
  render() {
2975
- return aa`
2976
+ return ra`
2976
2977
  <style>
2977
2978
  nds-icon-button {
2978
2979
  display: inline-block;
@@ -3166,48 +3167,48 @@ var ka = Object.defineProperty, Aa = Object.getOwnPropertyDescriptor, ja = (e, t
3166
3167
  `;
3167
3168
  }
3168
3169
  };
3169
- ja([Oa()], Ma.prototype, "variant", 2), ja([Oa()], Ma.prototype, "size", 2), ja([Oa()], Ma.prototype, "type", 2), ja([Oa()], Ma.prototype, "state", 2), ja([Oa({ attribute: "icon-name" })], Ma.prototype, "iconName", 2), ja([Oa({ type: Boolean })], Ma.prototype, "disabled", 2), ja([Oa({ attribute: "button-aria-label" })], Ma.prototype, "buttonAriaLabel", 2), ja([Oa()], Ma.prototype, "shape", 1), Ma = ja([Ta("nds-icon-button")], Ma);
3170
+ 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);
3170
3171
  //#endregion
3171
3172
  //#region ../players-shared/src/ui/zoom-compensation.ts
3172
- var Na = {
3173
+ var ja = {
3173
3174
  maxZoom: 2,
3174
3175
  minCompensation: .25
3175
3176
  };
3176
- function Pa(e, t) {
3177
+ function Ma(e, t) {
3177
3178
  let n = e / t;
3178
3179
  return Number.isFinite(n) && n > 0 ? n : 1;
3179
3180
  }
3180
- function Fa(e, t, n) {
3181
+ function Na(e, t, n) {
3181
3182
  return Math.max(n, Math.min(1, t / e));
3182
3183
  }
3183
3184
  //#endregion
3184
3185
  //#region ../players-shared/src/ui/use-zoom-compensation.svelte.ts
3185
- function Ia(e) {
3186
+ function Pa(e) {
3186
3187
  let { maxZoom: t, minCompensation: n } = e, r = /* @__PURE__ */ U(1), i = /* @__PURE__ */ U(1);
3187
3188
  function a() {
3188
- let e = Pa(window.outerWidth, window.innerWidth);
3189
- W(i, e, !0), W(r, Fa(e, t, n), !0);
3189
+ let e = Ma(window.outerWidth, window.innerWidth);
3190
+ W(i, e, !0), W(r, Na(e, t, n), !0);
3190
3191
  }
3191
- return gn(() => {
3192
+ return hn(() => {
3192
3193
  if (!(typeof window > "u")) return a(), window.addEventListener("resize", a), () => window.removeEventListener("resize", a);
3193
3194
  }), {
3194
3195
  get current() {
3195
- return Z(r);
3196
+ return Q(r);
3196
3197
  },
3197
3198
  get zoom() {
3198
- return Z(i);
3199
+ return Q(i);
3199
3200
  }
3200
3201
  };
3201
3202
  }
3202
3203
  //#endregion
3203
3204
  //#region tool-tts-inline.svelte
3204
- var La = /* @__PURE__ */ xr("<nds-icon-button></nds-icon-button>", 2), Ra = /* @__PURE__ */ xr("<button type=\"button\"><i aria-hidden=\"true\"></i></button>"), za = /* @__PURE__ */ xr("<span class=\"pie-tool-tts-inline__trigger-zoom svelte-18mzc0g\"><!></span>"), Ba = /* @__PURE__ */ xr("<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>"), Va = /* @__PURE__ */ xr("<div role=\"radiogroup\" aria-label=\"Playback speed\"></div>"), Ha = /* @__PURE__ */ xr("<div role=\"toolbar\" aria-label=\"Reading controls\" tabindex=\"-1\"><!> <button type=\"button\" data-pie-tts-control=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-18mzc0g\" aria-label=\"Rewind\"><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=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-18mzc0g\" aria-label=\"Fast-forward\"><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=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-18mzc0g\" aria-label=\"Stop reading\"><i class=\"fa-solid fa-stop pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"></i></button></div>"), Ua = /* @__PURE__ */ xr("<div><!> <!> <div class=\"pie-sr-only svelte-18mzc0g\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\"> </div></div>"), Wa = {
3205
+ var Fa = /* @__PURE__ */ vr("<nds-icon-button></nds-icon-button>", 2), Ia = /* @__PURE__ */ vr("<button type=\"button\"><i aria-hidden=\"true\"></i></button>"), La = /* @__PURE__ */ vr("<span class=\"pie-tool-tts-inline__trigger-zoom svelte-18mzc0g\"><!></span>"), Ra = /* @__PURE__ */ vr("<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>"), za = /* @__PURE__ */ vr("<div role=\"radiogroup\" aria-label=\"Playback speed\"></div>"), Ba = /* @__PURE__ */ vr("<div role=\"toolbar\" aria-label=\"Reading controls\" 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\" aria-label=\"Rewind\"><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\" aria-label=\"Fast-forward\"><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\" aria-label=\"Stop reading\"><i class=\"fa-solid fa-stop pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"></i></button></div>"), Va = /* @__PURE__ */ vr("<!> <!>", 1), Ha = /* @__PURE__ */ vr("<div><!> <div class=\"pie-sr-only svelte-18mzc0g\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\"> </div></div>"), Ua = {
3205
3206
  hash: "svelte-18mzc0g",
3206
- 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 a themeable variable. */--color-interactive-blue: var(--pie-tts-button-color, #146eb3);}\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, #146eb3);}.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);}.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 Per the Knowledge-Check design the controls sit transparently on the\n surrounding Question/Passage header: no panel chrome, media controls are\n accent-blue icon-only glyphs, and the speed radios are plain muted text with\n the selected one lifted into a white chip. The accent stays the same\n host-settable variable as the play/pause + calculator buttons\n (--pie-tts-button-color). Themeable knobs: --pie-tts-inline-muted-color,\n --pie-tts-selected-bg/-border/-shadow, --pie-tts-menu-shadow,\n --pie-tts-trigger-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));background:var(--pie-tts-selected-bg, #fff);border:0;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-blue, 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, #146eb3);}.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, #146eb3) 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;color:var(--pie-tts-inline-muted-color, #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, #146eb3) 8%, transparent);}\n\n /* Selected inline radio: white \"chip\" treatment. Placed after the muted rule\n so it wins at equal specificity. */.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, #d9dada);border-radius:6px;background:var(--pie-selected-button-background, #f3f5f7);color:var(--pie-tts-button-color, #146eb3);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 white chip. Options size to their content and centre\n (no 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, #146eb3);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, #d9dada);border-radius:6px;background:var(--pie-selected-button-background, #f3f5f7);color:var(--pie-tts-button-color, #146eb3);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 }"
3207
+ 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 a themeable variable. */--color-interactive-blue: var(--pie-tts-button-color, #146eb3);}\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, #146eb3);}\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 colour never applies. Falling back to the accent here\n would therefore have turned the glyph blue on open -- a visible change\n for every host, which is exactly what these fallbacks exist to avoid.\n Measured in Chromium: the plain trigger's glyph is the dark\n --pie-button-color, not the #146eb3 accent. */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, #146eb3)\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 Per the Knowledge-Check design the controls sit transparently on the\n surrounding Question/Passage header: no panel chrome, media controls are\n accent-blue icon-only glyphs, and the speed radios are plain muted text with\n the selected one lifted into a white chip. The accent stays the same\n host-settable variable as the play/pause + calculator buttons\n (--pie-tts-button-color). Themeable knobs: --pie-tts-inline-muted-color,\n --pie-tts-selected-bg/-border/-shadow, --pie-tts-menu-shadow,\n --pie-tts-trigger-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));background:var(--pie-tts-selected-bg, #fff);border:0;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-blue, 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, #146eb3);}.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, #146eb3) 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;color:var(--pie-tts-inline-muted-color, #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, #146eb3) 8%, transparent);}\n\n /* Selected inline radio: white \"chip\" treatment. Placed after the muted rule\n so it wins at equal specificity. */.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, #d9dada);border-radius:6px;background:var(--pie-selected-button-background, #f3f5f7);color:var(--pie-tts-button-color, #146eb3);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 white chip. Options size to their content and centre\n (no 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, #146eb3);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, #d9dada);border-radius:6px;background:var(--pie-selected-button-background, #f3f5f7);color:var(--pie-tts-button-color, #146eb3);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 }"
3207
3208
  };
3208
- function Ga(a, o) {
3209
- ze(o, !0), Wr(a, Wa);
3210
- let s = li(o, "catalogId", 7, ""), c = li(o, "language", 7, "en-US"), l = li(o, "size", 7, "md"), u = li(o, "speedOptions", 7, void 0), d = li(o, "showSingleSpeedOption", 7, !1), f = li(o, "layoutMode", 7, "expanding-row"), p = typeof window < "u", m = "__pie_tts_inline_active_owner__", h = "pie-tts-inline-owner-change", g = ["/_fa-pro/fontawesome.min.css", "/_fa-pro/light.min.css"], _ = "https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/css/all.min.css", v = /font.?awesome|fa-?pro/i, y = !1, ee = () => {
3209
+ function Wa(a, o) {
3210
+ Be(o, !0), Vr(a, Ua);
3211
+ let s = si(o, "catalogId", 7, ""), c = si(o, "language", 7, "en-US"), l = si(o, "size", 7, "md"), u = si(o, "speedOptions", 7, void 0), d = si(o, "showSingleSpeedOption", 7, !1), f = si(o, "layoutMode", 7, "expanding-row"), p = typeof window < "u", m = "__pie_tts_inline_active_owner__", h = "pie-tts-inline-owner-change", g = ["/_fa-pro/fontawesome.min.css", "/_fa-pro/light.min.css"], _ = "https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/css/all.min.css", v = /font.?awesome|fa-?pro/i, y = !1, ee = () => {
3211
3212
  if (!(!p || y)) {
3212
3213
  if (y = !0, !document.querySelector("link[href*=\"Roboto\"]")) {
3213
3214
  let e = document.createElement("link");
@@ -3271,296 +3272,325 @@ function Ga(a, o) {
3271
3272
  i.disconnect();
3272
3273
  }
3273
3274
  };
3274
- }, te = (e) => (ee(), x(e), {}), w = /* @__PURE__ */ U(void 0), T = /* @__PURE__ */ U(void 0), ne = /* @__PURE__ */ U(null), re = /* @__PURE__ */ H(() => Z(ne)?.ndsIcons === !0), E = /* @__PURE__ */ U(null), ie = /* @__PURE__ */ U(null), D = /* @__PURE__ */ H(() => Z(ne)?.ttsService), O = /* @__PURE__ */ H(() => Z(ne)?.highlightCoordinator), ae = /* @__PURE__ */ H(() => Z(ie)?.scopeElement || Z(E)?.scopeElement || null), k = /* @__PURE__ */ U(!1), oe = /* @__PURE__ */ U(!1), A = /* @__PURE__ */ U(!1), j = /* @__PURE__ */ U(!1), M = /* @__PURE__ */ U(""), se = /* @__PURE__ */ U(null), ce = /* @__PURE__ */ U(null), N = /* @__PURE__ */ U(0), le = /* @__PURE__ */ U(!1), ue = /* @__PURE__ */ U(!1), de = null, fe = /* @__PURE__ */ H(() => i(u())), pe = /* @__PURE__ */ H(() => P(Z(fe))), me = /* @__PURE__ */ H(() => Z(fe).length > 1 || d() ? Z(fe) : []), he = /* @__PURE__ */ H(() => Z(me).length), ge = /* @__PURE__ */ H(() => Z(he) + 3), _e = /* @__PURE__ */ H(() => Z(N) >= Z(ge) ? 0 : Z(N)), ve = /* @__PURE__ */ H(() => Z(se) !== null && Z(ce) === Z(pe) && Z(fe).some((e) => e.rate === Z(se)) ? Z(se) : F(Z(fe))), ye = `pie-tts-inline-instance-${Math.random().toString(36).slice(2)}`, be = `pie-tts-inline-${Math.random().toString(36).slice(2)}`, xe = `${ye}-controls`;
3275
- function Se() {
3275
+ }, te = (e) => (ee(), x(e), {}), w = /* @__PURE__ */ U(void 0), T = /* @__PURE__ */ U(void 0), E = /* @__PURE__ */ U(null), ne = /* @__PURE__ */ B(() => Q(E)?.ndsIcons === !0), D = /* @__PURE__ */ U(null), re = /* @__PURE__ */ U(null), O = /* @__PURE__ */ B(() => Q(E)?.ttsService), k = /* @__PURE__ */ B(() => Q(E)?.highlightCoordinator), ie = /* @__PURE__ */ B(() => Q(re)?.scopeElement || Q(D)?.scopeElement || null), A = /* @__PURE__ */ U(!1), ae = /* @__PURE__ */ U(!1), j = /* @__PURE__ */ U(!1), M = /* @__PURE__ */ U(!1), N = /* @__PURE__ */ U(""), oe = /* @__PURE__ */ U(null), se = /* @__PURE__ */ U(null), ce = /* @__PURE__ */ U(!1), le = /* @__PURE__ */ U(!1), ue = null, de = /* @__PURE__ */ B(() => i(u())), fe = /* @__PURE__ */ B(() => we(Q(de))), pe = /* @__PURE__ */ B(() => Q(de).length > 1 || d() ? Q(de) : []), me = /* @__PURE__ */ B(() => Q(oe) !== null && Q(se) === Q(fe) && Q(de).some((e) => e.rate === Q(oe)) ? Q(oe) : Te(Q(de))), he = `pie-tts-inline-instance-${Math.random().toString(36).slice(2)}`, ge = `pie-tts-inline-${Math.random().toString(36).slice(2)}`, _e = `${he}-controls`;
3276
+ function ve() {
3276
3277
  if (!p) return null;
3277
3278
  let e = window[m];
3278
3279
  return typeof e == "string" ? e : null;
3279
3280
  }
3280
- function Ce() {
3281
- return Se() === ye;
3281
+ function ye() {
3282
+ return ve() === he;
3282
3283
  }
3283
- function we(e, t) {
3284
+ function be(e, t) {
3284
3285
  p && window.dispatchEvent(new CustomEvent(h, { detail: {
3285
3286
  ownerId: e,
3286
3287
  previousOwnerId: t
3287
3288
  } }));
3288
3289
  }
3289
- function Te() {
3290
+ function xe() {
3290
3291
  if (!p) return;
3291
- let e = Se();
3292
- e !== ye && (window[m] = ye, we(ye, e));
3292
+ let e = ve();
3293
+ e !== he && (window[m] = he, be(he, e));
3293
3294
  }
3294
- function Ee() {
3295
- p && Se() === ye && (delete window[m], we(null, ye));
3295
+ function Se() {
3296
+ p && ve() === he && (delete window[m], be(null, he));
3296
3297
  }
3297
- function De(e = "", t = !1) {
3298
- W(A, !1), W(j, !1), W(N, 0), W(k, t, !0), W(M, e, !0);
3298
+ function Ce(e = "", t = !1) {
3299
+ W(j, !1), W(M, !1), W(A, t, !0), W(N, e, !0);
3299
3300
  }
3300
- function P(e) {
3301
+ function we(e) {
3301
3302
  return e.map((e) => `${e.rate}:${e.label}:${e.ariaLabel}:${e.isDefault ? "1" : "0"}`).join("|");
3302
3303
  }
3303
- function F(e) {
3304
+ function Te(e) {
3304
3305
  return e.find((e) => e.isDefault)?.rate ?? e.find((e) => e.rate === 1)?.rate ?? e[0]?.rate ?? 1;
3305
3306
  }
3306
- async function I(e, t) {
3307
+ async function Ee(e, t) {
3307
3308
  if (typeof e.setPlaybackRate == "function") {
3308
3309
  await e.setPlaybackRate(t);
3309
3310
  return;
3310
3311
  }
3311
3312
  await e.updateSettings({ rate: t });
3312
3313
  }
3313
- function L(e) {
3314
- if (!Z(w) || !e) return;
3315
- let t = Z(w).getRootNode();
3314
+ function De() {
3315
+ if (!Q(w) || !Q(T)) return !1;
3316
+ let e = Q(w).getRootNode();
3317
+ if (!(e instanceof ShadowRoot)) return !1;
3318
+ let t = e.activeElement;
3319
+ return !!(t && Q(T).contains(t));
3320
+ }
3321
+ function P() {
3322
+ if (!Q(T)) return !1;
3323
+ let e = Q(T).getRootNode();
3324
+ if (!(e instanceof ShadowRoot)) return !1;
3325
+ let t = e.activeElement;
3326
+ return !t || !Q(T).contains(t) ? !1 : t.matches(Ne);
3327
+ }
3328
+ function Oe() {
3329
+ let e = Q(T)?.querySelector(Pe);
3330
+ if (e && !e.disabled) {
3331
+ e.focus();
3332
+ return;
3333
+ }
3334
+ F(!0);
3335
+ }
3336
+ function F(e) {
3337
+ if (!Q(w) || !e) return;
3338
+ let t = Q(w).getRootNode();
3316
3339
  if (!(t instanceof ShadowRoot)) return;
3317
3340
  let n = t.querySelector(".pie-tool-tts-inline__trigger");
3318
3341
  (n?.querySelector("button") ?? n)?.focus();
3319
3342
  }
3320
- function Oe(e = "Reading switched to another section", t = !1) {
3321
- if (!Z(ue) && !(!Z(k) && !Ce())) {
3322
- W(ue, !0);
3343
+ function I(e = "Reading switched to another section", t = !1) {
3344
+ if (!Q(le) && !(!Q(A) && !ye())) {
3345
+ W(le, !0);
3323
3346
  try {
3324
- let n = (() => {
3325
- if (!Z(w) || !Z(T)) return !1;
3326
- let e = Z(w).getRootNode();
3327
- if (!(e instanceof ShadowRoot)) return !1;
3328
- let t = e.activeElement;
3329
- return !!(t && Z(T).contains(t));
3330
- })();
3331
- Ce() && Ee(), De(e), Le(), t && queueMicrotask(() => {
3332
- L(n);
3347
+ let n = De();
3348
+ ye() && Se(), Ce(e), R(), t && queueMicrotask(() => {
3349
+ F(n);
3333
3350
  });
3334
3351
  } finally {
3335
- W(ue, !1);
3352
+ W(le, !1);
3336
3353
  }
3337
3354
  }
3338
3355
  }
3339
- gn(() => {
3340
- if (Z(w)) return n(Z(w), (e) => {
3341
- W(ne, e, !0);
3342
- });
3343
- }), gn(() => {
3344
- if (!Z(w)) return;
3345
- let e = r(Z(w), (e) => {
3356
+ hn(() => {
3357
+ if (Q(w)) return n(Q(w), (e) => {
3346
3358
  W(E, e, !0);
3347
- }), n = t(Z(w), (e) => {
3348
- W(ie, e, !0);
3359
+ });
3360
+ }), hn(() => {
3361
+ if (!Q(w)) return;
3362
+ let e = r(Q(w), (e) => {
3363
+ W(D, e, !0);
3364
+ }), n = t(Q(w), (e) => {
3365
+ W(re, e, !0);
3349
3366
  });
3350
3367
  return () => {
3351
3368
  n(), e();
3352
3369
  };
3353
- }), gn(() => {
3354
- if (!Z(D)) return;
3370
+ }), hn(() => {
3371
+ if (!Q(O)) return;
3355
3372
  let e = (e) => {
3356
- if (!Z(k) || !Ce()) {
3357
- W(A, !1), W(j, !1);
3373
+ if (!Q(A) || !ye()) {
3374
+ W(j, !1), W(M, !1);
3358
3375
  return;
3359
3376
  }
3360
- W(A, e === "playing" || e === "paused", !0), W(j, e === "paused");
3377
+ W(j, e === "playing" || e === "paused", !0), W(M, e === "paused");
3361
3378
  }, t = (t) => {
3362
- e(t);
3379
+ let n = P();
3380
+ e(t), n && !Q(j) && queueMicrotask(Oe);
3363
3381
  };
3364
- return Z(D).onStateChange(be, t), e(Z(D).getState()), () => {
3365
- Z(D).offStateChange(be, t);
3382
+ return Q(O).onStateChange(ge, t), e(Q(O).getState()), () => {
3383
+ Q(O).offStateChange(ge, t);
3366
3384
  };
3367
- }), gn(() => {
3385
+ }), hn(() => {
3368
3386
  if (!p) return;
3369
3387
  let e = (e) => {
3370
3388
  let { ownerId: t = null, previousOwnerId: n = null } = e.detail || {};
3371
- n === ye && t !== ye && Oe("Reading switched to another section");
3389
+ n === he && t !== he && I("Reading switched to another section");
3372
3390
  };
3373
3391
  return window.addEventListener(h, e), () => {
3374
3392
  window.removeEventListener(h, e);
3375
3393
  };
3376
- }), gn(() => {
3394
+ }), hn(() => {
3377
3395
  if (!p) return;
3378
3396
  let t = () => {
3379
- Oe("Reading switched to another section", !0);
3397
+ I("Reading switched to another section", !0);
3380
3398
  };
3381
3399
  return window.addEventListener(e, t), () => {
3382
3400
  window.removeEventListener(e, t);
3383
3401
  };
3384
- }), gn(() => () => {
3385
- Ee(), Le();
3402
+ }), hn(() => () => {
3403
+ Se(), R();
3386
3404
  });
3387
- async function Ae() {
3388
- if (!Z(D)) return !1;
3405
+ async function ke() {
3406
+ if (!Q(O)) return !1;
3389
3407
  try {
3390
- return await Z(ne)?.toolkitCoordinator?.ensureTTSReady?.(), !0;
3408
+ return await Q(E)?.toolkitCoordinator?.ensureTTSReady?.(), !0;
3391
3409
  } catch (e) {
3392
3410
  return console.error("[TTS Inline] Failed to initialize TTS:", e), !1;
3393
3411
  }
3394
3412
  }
3395
- function je() {
3396
- return Z(T) ? Array.from(Z(T).querySelectorAll("[data-pie-tts-control]")).filter((e) => window.getComputedStyle(e).display !== "none") : [];
3413
+ let je = "[data-pie-tts-speed-rate]", Me = "[data-pie-tts-media]", Ne = "[data-pie-tts-seek]", Pe = "[data-pie-tts-stop]";
3414
+ function Fe(e) {
3415
+ return Q(T) ? Array.from(Q(T).querySelectorAll(e)).filter((e) => !e.disabled && window.getComputedStyle(e).display !== "none") : [];
3416
+ }
3417
+ function Ie(e, t) {
3418
+ let n = Fe(e);
3419
+ if (!n.length) return;
3420
+ let r = n[(t + n.length) % n.length];
3421
+ if (r.focus(), e !== je) return;
3422
+ let i = Number(r.dataset.pieTtsSpeedRate), a = Q(pe).find((e) => e.rate === i);
3423
+ a && z(a);
3397
3424
  }
3398
- function Me(e) {
3399
- let t = je();
3400
- if (!t.length) return;
3401
- let n = (e + t.length) % t.length;
3402
- W(N, n), t[n].focus();
3425
+ function Le(e, t) {
3426
+ let n = Fe(e);
3427
+ if (!n.length) return;
3428
+ let r = Q(T)?.getRootNode(), i = r instanceof ShadowRoot ? r.activeElement : null, a = i ? n.indexOf(i) : -1;
3429
+ Ie(e, a === -1 ? 0 : a + t);
3403
3430
  }
3404
- function Ne(e) {
3405
- let t = je();
3406
- if (t.length) switch (e.key) {
3431
+ function Re(e, t) {
3432
+ switch (t.key) {
3407
3433
  case "ArrowDown":
3408
3434
  case "ArrowRight":
3409
- e.preventDefault(), Me(Z(N) + 1);
3435
+ t.preventDefault(), Le(e, 1);
3410
3436
  break;
3411
3437
  case "ArrowUp":
3412
3438
  case "ArrowLeft":
3413
- e.preventDefault(), Me(Z(N) - 1);
3439
+ t.preventDefault(), Le(e, -1);
3414
3440
  break;
3415
3441
  case "Home":
3416
- e.preventDefault(), Me(0);
3442
+ t.preventDefault(), Ie(e, 0);
3417
3443
  break;
3418
3444
  case "End":
3419
- e.preventDefault(), Me(t.length - 1);
3445
+ t.preventDefault(), Ie(e, -1);
3420
3446
  break;
3421
3447
  }
3422
3448
  }
3423
- function Pe() {
3424
- if (!Z(ae)) return null;
3425
- let e = Z(ae);
3449
+ function L() {
3450
+ if (!Q(ie)) return null;
3451
+ let e = Q(ie);
3426
3452
  if (e.getAttribute?.("data-region") === "content") return e;
3427
3453
  let t = e.querySelector?.("[data-region='content']");
3428
3454
  return t instanceof Element ? t : e;
3429
3455
  }
3430
- function Fe() {
3431
- if (Z(E)) return Z(E).kind === "passage" ? {
3456
+ function ze() {
3457
+ if (Q(D)) return Q(D).kind === "passage" ? {
3432
3458
  ownerKind: "passage",
3433
- assessmentId: Z(ne)?.assessmentId || "",
3434
- sectionId: Z(ne)?.sectionId || "",
3435
- passageId: Z(E).canonicalItemId || Z(E).itemId
3459
+ assessmentId: Q(E)?.assessmentId || "",
3460
+ sectionId: Q(E)?.sectionId || "",
3461
+ passageId: Q(D).canonicalItemId || Q(D).itemId
3436
3462
  } : {
3437
3463
  ownerKind: "itemModel",
3438
- assessmentId: Z(ne)?.assessmentId || "",
3439
- sectionId: Z(ne)?.sectionId || "",
3440
- itemId: Z(E).itemId,
3441
- canonicalItemId: Z(E).canonicalItemId || Z(E).itemId
3464
+ assessmentId: Q(E)?.assessmentId || "",
3465
+ sectionId: Q(E)?.sectionId || "",
3466
+ itemId: Q(D).itemId,
3467
+ canonicalItemId: Q(D).canonicalItemId || Q(D).itemId
3442
3468
  };
3443
3469
  }
3444
- function Ie(e) {
3445
- return Le(), de = Z(D)?.setHighlightTargetResolverProvider?.(() => ({
3470
+ function He(e) {
3471
+ return R(), ue = Q(O)?.setHighlightTargetResolverProvider?.(() => ({
3446
3472
  context: {
3447
- scopeElement: Z(ie)?.scopeElement || e || null,
3448
- kind: Z(E)?.kind,
3449
- itemId: Z(E)?.itemId,
3450
- canonicalItemId: Z(E)?.canonicalItemId,
3451
- contentKind: Z(E)?.contentKind,
3452
- regionPolicy: Z(E)?.regionPolicy
3473
+ scopeElement: Q(re)?.scopeElement || e || null,
3474
+ kind: Q(D)?.kind,
3475
+ itemId: Q(D)?.itemId,
3476
+ canonicalItemId: Q(D)?.canonicalItemId,
3477
+ contentKind: Q(D)?.contentKind,
3478
+ regionPolicy: Q(D)?.regionPolicy
3453
3479
  },
3454
- resolver: Z(ie)?.ttsHighlightTargetResolver || null
3455
- })) || null, de;
3480
+ resolver: Q(re)?.ttsHighlightTargetResolver || null
3481
+ })) || null, ue;
3456
3482
  }
3457
- function Le(e = de) {
3458
- e?.(), e === de && (de = null);
3483
+ function R(e = ue) {
3484
+ e?.(), e === ue && (ue = null);
3459
3485
  }
3460
- function R() {
3461
- if (!Ce()) return !1;
3462
- let e = String(Z(D)?.getState?.() || "");
3486
+ function Ue() {
3487
+ if (!ye()) return !1;
3488
+ let e = String(Q(O)?.getState?.() || "");
3463
3489
  return e === "playing" || e === "paused" || e === "loading";
3464
3490
  }
3465
- async function Re() {
3466
- if (!Z(D)) return;
3467
- let e = Pe();
3491
+ async function We() {
3492
+ if (!Q(O)) return;
3493
+ let e = L();
3468
3494
  if (!e) {
3469
3495
  console.warn("[TTS Inline] No target container found from shell scope context");
3470
3496
  return;
3471
3497
  }
3472
3498
  try {
3473
- W(k, !0);
3499
+ W(A, !0);
3474
3500
  let t = e.textContent || "";
3475
3501
  if (!t) {
3476
3502
  console.warn("[TTS Inline] No text content found");
3477
3503
  return;
3478
3504
  }
3479
- Z(O) && Z(D).setHighlightCoordinator && Z(D).setHighlightCoordinator(Z(O)), await I(Z(D), Z(ve));
3480
- let n = Ie(e);
3481
- Z(D).setRootElement?.(e), W(M, "Reading started"), Z(D).speak(t, {
3505
+ Q(k) && Q(O).setHighlightCoordinator && Q(O).setHighlightCoordinator(Q(k)), await Ee(Q(O), Q(me));
3506
+ let n = He(e);
3507
+ Q(O).setRootElement?.(e), W(N, "Reading started"), Q(O).speak(t, {
3482
3508
  catalogId: s() || void 0,
3483
- catalogContext: Fe(),
3509
+ catalogContext: ze(),
3484
3510
  language: c(),
3485
3511
  contentElement: e
3486
3512
  }).catch((e) => {
3487
- console.error("[TTS Inline] Error:", e), W(M, "Unable to start reading"), Z(O) && Z(O).clearTTS(), Le(n);
3513
+ console.error("[TTS Inline] Error:", e), W(N, "Unable to start reading"), Q(k) && Q(k).clearTTS(), R(n);
3488
3514
  }).finally(() => {
3489
- R() || Le(n);
3515
+ Ue() || R(n);
3490
3516
  });
3491
3517
  } catch (e) {
3492
- console.error("[TTS Inline] Error:", e), W(M, "Unable to start reading"), Z(O) && Z(O).clearTTS(), Le();
3518
+ console.error("[TTS Inline] Error:", e), W(N, "Unable to start reading"), Q(k) && Q(k).clearTTS(), R();
3493
3519
  }
3494
3520
  }
3495
- async function Ve() {
3496
- if (Z(D)) {
3497
- if (Ce() && Z(j)) {
3498
- Z(D).resume(), W(M, "Reading resumed");
3521
+ async function Ge() {
3522
+ if (Q(O)) {
3523
+ if (ye() && Q(M)) {
3524
+ Q(O).resume(), W(N, "Reading resumed");
3499
3525
  return;
3500
3526
  }
3501
- if (Ce() && Z(A) && !Z(j)) {
3502
- Z(D).pause(), W(M, "Reading paused");
3527
+ if (ye() && Q(j) && !Q(M)) {
3528
+ Q(O).pause(), W(N, "Reading paused");
3503
3529
  return;
3504
3530
  }
3505
- if (!Z(le)) {
3506
- W(le, !0);
3531
+ if (!Q(ce)) {
3532
+ W(ce, !0);
3507
3533
  try {
3508
- if (W(M, "Initializing text-to-speech"), !await Ae()) {
3509
- W(M, "Unable to initialize text-to-speech. Try again.");
3534
+ if (W(N, "Initializing text-to-speech"), !await ke()) {
3535
+ W(N, "Unable to initialize text-to-speech. Try again.");
3510
3536
  return;
3511
3537
  }
3512
- let e = String(Z(D).getState?.() || "");
3513
- (e === "playing" || e === "paused" || e === "loading") && !Ce() && Z(D).stop(), Te(), await Re();
3538
+ let e = String(Q(O).getState?.() || "");
3539
+ (e === "playing" || e === "paused" || e === "loading") && !ye() && Q(O).stop(), xe(), await We();
3514
3540
  } finally {
3515
- W(le, !1);
3541
+ W(ce, !1);
3516
3542
  }
3517
3543
  }
3518
3544
  }
3519
3545
  }
3520
- function He() {
3521
- Z(D) && (Z(D).stop(), Ee(), De("Reading stopped"), Z(O) && Z(O).clearTTS(), Le());
3546
+ function Ke() {
3547
+ if (!Q(O)) return;
3548
+ let e = De();
3549
+ Q(O).stop(), Se(), Ce("Reading stopped"), Q(k) && Q(k).clearTTS(), R(), e && queueMicrotask(() => {
3550
+ F(!0);
3551
+ });
3522
3552
  }
3523
- async function Ue() {
3524
- if (!(!Z(D) || !Z(A))) try {
3525
- await Z(D).seekForward?.(1), W(M, "Skipped forward");
3553
+ async function qe() {
3554
+ if (!(!Q(O) || !Q(j))) try {
3555
+ await Q(O).seekForward?.(1), W(N, "Skipped forward");
3526
3556
  } catch (e) {
3527
- console.error("[TTS Inline] Seek forward failed:", e), W(M, "Unable to skip forward");
3557
+ console.error("[TTS Inline] Seek forward failed:", e), W(N, "Unable to skip forward");
3528
3558
  }
3529
3559
  }
3530
- async function We() {
3531
- if (!(!Z(D) || !Z(A))) try {
3532
- await Z(D).seekBackward?.(1), W(M, "Skipped backward");
3560
+ async function Je() {
3561
+ if (!(!Q(O) || !Q(j))) try {
3562
+ await Q(O).seekBackward?.(1), W(N, "Skipped backward");
3533
3563
  } catch (e) {
3534
- console.error("[TTS Inline] Seek backward failed:", e), W(M, "Unable to skip backward");
3564
+ console.error("[TTS Inline] Seek backward failed:", e), W(N, "Unable to skip backward");
3535
3565
  }
3536
3566
  }
3537
- async function Ge(e) {
3538
- let t = Z(D);
3567
+ async function z(e) {
3568
+ let t = Q(O);
3539
3569
  if (!t) return;
3540
- if (Z(ve) === e.rate) {
3541
- W(M, `Playback speed ${e.label}`);
3570
+ if (Q(me) === e.rate) {
3571
+ W(N, `Playback speed ${e.label}`);
3542
3572
  return;
3543
3573
  }
3544
- let n = Z(se), r = Z(ce);
3545
- W(se, e.rate, !0), W(ce, Z(pe), !0), W(M, `Playback speed ${e.label}`);
3574
+ let n = Q(oe), r = Q(se);
3575
+ W(oe, e.rate, !0), W(se, Q(fe), !0), W(N, `Playback speed ${e.label}`);
3546
3576
  try {
3547
- await I(t, e.rate);
3577
+ await Ee(t, e.rate);
3548
3578
  } catch (e) {
3549
- console.error("[TTS Inline] Playback speed change failed:", e), W(se, n, !0), W(ce, r, !0), W(M, "Unable to change playback speed");
3579
+ console.error("[TTS Inline] Playback speed change failed:", e), W(oe, n, !0), W(se, r, !0), W(N, "Unable to change playback speed");
3550
3580
  }
3551
3581
  }
3552
- let Ke = /* @__PURE__ */ H(() => l() === "sm" ? "pie-tool-tts-inline__trigger--sm" : l() === "lg" ? "pie-tool-tts-inline__trigger--lg" : "pie-tool-tts-inline__trigger--md"), qe = /* @__PURE__ */ H(() => f() === "reserved-row" || f() === "expanding-row"), Je = /* @__PURE__ */ H(() => f() === "floating-overlay"), z = /* @__PURE__ */ H(() => f() === "left-aligned"), Ye = Ia(Na), Xe = "[data-pie-tool-overlay-boundary]", Ze = /* @__PURE__ */ U(""), Qe = /* @__PURE__ */ U(0);
3553
- gn(() => {
3554
- let e = Z(D), t = Z(ve), n = Z(A) || Z(j);
3555
- if (!e || !n || !Ce()) return;
3582
+ let Ye = /* @__PURE__ */ B(() => l() === "sm" ? "pie-tool-tts-inline__trigger--sm" : l() === "lg" ? "pie-tool-tts-inline__trigger--lg" : "pie-tool-tts-inline__trigger--md"), Xe = /* @__PURE__ */ B(() => f() === "reserved-row" || f() === "expanding-row"), Ze = /* @__PURE__ */ B(() => f() === "floating-overlay"), Qe = /* @__PURE__ */ B(() => f() === "left-aligned"), $e = /* @__PURE__ */ B(() => Q(Ze) || Q(Qe)), et = Pa(ja), tt = "[data-pie-tool-overlay-boundary]", nt = /* @__PURE__ */ U(""), rt = /* @__PURE__ */ U(0);
3583
+ hn(() => {
3584
+ let e = Q(O), t = Q(me), n = Q(j) || Q(M);
3585
+ if (!e || !n || !ye()) return;
3556
3586
  let r = !1;
3557
3587
  return queueMicrotask(() => {
3558
- r || I(e, t);
3588
+ r || Ee(e, t);
3559
3589
  }), () => {
3560
3590
  r = !0;
3561
3591
  };
3562
3592
  });
3563
- function $e(e, t) {
3593
+ function it(e, t) {
3564
3594
  let n = e;
3565
3595
  for (; n;) {
3566
3596
  if (n.matches?.(t)) return n;
@@ -3568,56 +3598,56 @@ function Ga(a, o) {
3568
3598
  }
3569
3599
  return null;
3570
3600
  }
3571
- function et() {
3572
- let e = Z(w)?.getRootNode();
3601
+ function at() {
3602
+ let e = Q(w)?.getRootNode();
3573
3603
  return e instanceof ShadowRoot ? e.querySelector(".pie-tool-tts-inline__trigger") : null;
3574
3604
  }
3575
- function tt(e) {
3605
+ function ot(e) {
3576
3606
  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");
3577
3607
  return i.length ? i.reduce((e, t) => e + t.offsetWidth, 0) + (i.length - 1) * n + r : 0;
3578
3608
  }
3579
- function nt() {
3580
- let e = et();
3581
- if (!e || !Z(T)) return;
3582
- let t = e.getBoundingClientRect(), n = $e(e, Xe)?.getBoundingClientRect().left ?? 0, r = Math.max(0, t.left - n - 16);
3583
- if (!Z(oe)) {
3584
- let e = tt(Z(T));
3585
- e > 0 && W(Qe, e, !0);
3586
- }
3587
- W(oe, Z(Qe) > 0 && r < Z(Qe), !0);
3588
- let i = Z(T).offsetHeight || t.height;
3589
- W(Ze, `top: ${Z(oe) ? t.top : t.top + t.height / 2 - i / 2}px; right: ${window.innerWidth - t.left + 8}px; left: auto; max-width: min(${r}px, var(--pie-tts-left-aligned-panel-width, ${r}px));`);
3590
- }
3591
- gn(() => {
3592
- if (!Z(z) || !Z(k)) {
3593
- W(Ze, ""), W(oe, !1), W(Qe, 0);
3609
+ function st() {
3610
+ let e = at();
3611
+ if (!e || !Q(T)) return;
3612
+ let t = e.getBoundingClientRect(), n = it(e, tt)?.getBoundingClientRect().left ?? 0, r = Math.max(0, t.left - n - 16);
3613
+ if (!Q(ae)) {
3614
+ let e = ot(Q(T));
3615
+ e > 0 && W(rt, e, !0);
3616
+ }
3617
+ W(ae, Q(rt) > 0 && r < Q(rt), !0);
3618
+ let i = Q(T).offsetHeight || t.height;
3619
+ W(nt, `top: ${Q(ae) ? t.top : t.top + t.height / 2 - i / 2}px; right: ${window.innerWidth - t.left + 8}px; left: auto; max-width: min(${r}px, var(--pie-tts-left-aligned-panel-width, ${r}px));`);
3620
+ }
3621
+ hn(() => {
3622
+ if (!Q(Qe) || !Q(A)) {
3623
+ W(nt, ""), W(ae, !1), W(rt, 0);
3594
3624
  return;
3595
3625
  }
3596
3626
  if (typeof window > "u") return;
3597
3627
  let e = 0, t = () => {
3598
3628
  e ||= window.requestAnimationFrame(() => {
3599
- e = 0, nt();
3629
+ e = 0, st();
3600
3630
  });
3601
3631
  };
3602
- nt(), window.addEventListener("resize", t), window.addEventListener("scroll", t, !0);
3603
- let n = et(), r = new ResizeObserver(t);
3604
- n && r.observe(n), Z(T) && r.observe(Z(T));
3605
- let i = n ? $e(n, Xe) : null;
3632
+ st(), window.addEventListener("resize", t), window.addEventListener("scroll", t, !0);
3633
+ let n = at(), r = new ResizeObserver(t);
3634
+ n && r.observe(n), Q(T) && r.observe(Q(T));
3635
+ let i = n ? it(n, tt) : null;
3606
3636
  i && r.observe(i);
3607
3637
  let a = i?.querySelector("[data-pie-tool-overlay-protect]");
3608
3638
  return a && r.observe(a), () => {
3609
3639
  e && window.cancelAnimationFrame(e), window.removeEventListener("resize", t), window.removeEventListener("scroll", t, !0), r.disconnect();
3610
3640
  };
3611
3641
  });
3612
- function B() {
3613
- if (!Z(w)) return null;
3614
- let e = Z(w).getRootNode();
3642
+ function ct() {
3643
+ if (!Q(w)) return null;
3644
+ let e = Q(w).getRootNode();
3615
3645
  return e instanceof ShadowRoot ? e.host : null;
3616
3646
  }
3617
- gn(() => {
3618
- let e = B();
3647
+ hn(() => {
3648
+ let e = ct();
3619
3649
  if (!e) return;
3620
- let t = Z(k) === !0;
3650
+ let t = Q(A) === !0;
3621
3651
  e.setAttribute("data-active", t ? "true" : "false");
3622
3652
  let n = !1;
3623
3653
  return queueMicrotask(() => {
@@ -3630,115 +3660,122 @@ function Ga(a, o) {
3630
3660
  n = !0;
3631
3661
  };
3632
3662
  });
3633
- var rt = {
3663
+ var lt = {
3634
3664
  get catalogId() {
3635
3665
  return s();
3636
3666
  },
3637
3667
  set catalogId(e = "") {
3638
- s(e), ft();
3668
+ s(e), At();
3639
3669
  },
3640
3670
  get language() {
3641
3671
  return c();
3642
3672
  },
3643
3673
  set language(e = "en-US") {
3644
- c(e), ft();
3674
+ c(e), At();
3645
3675
  },
3646
3676
  get size() {
3647
3677
  return l();
3648
3678
  },
3649
3679
  set size(e = "md") {
3650
- l(e), ft();
3680
+ l(e), At();
3651
3681
  },
3652
3682
  get speedOptions() {
3653
3683
  return u();
3654
3684
  },
3655
3685
  set speedOptions(e = void 0) {
3656
- u(e), ft();
3686
+ u(e), At();
3657
3687
  },
3658
3688
  get showSingleSpeedOption() {
3659
3689
  return d();
3660
3690
  },
3661
3691
  set showSingleSpeedOption(e = !1) {
3662
- d(e), ft();
3692
+ d(e), At();
3663
3693
  },
3664
3694
  get layoutMode() {
3665
3695
  return f();
3666
3696
  },
3667
3697
  set layoutMode(e = "expanding-row") {
3668
- f(e), ft();
3698
+ f(e), At();
3669
3699
  }
3670
- }, V = Sr(), it = rn(V), at = (e) => {
3671
- var t = Ua();
3700
+ }, ut = yr(), dt = rn(ut), ft = (e) => {
3701
+ var t = Ha();
3672
3702
  let n;
3673
3703
  {
3674
3704
  let e = (e) => {
3675
- var t = za(), n = nn(t), r = (e) => {
3676
- var t = La();
3677
- ri(t, "type", "circle"), ri(t, "size", "small"), ri(t, "variant", "tertiary"), Cn(() => ri(t, "icon-name", Z(A) && !Z(j) ? "pause" : "play")), Cn(() => ri(t, "button-aria-label", Z(A) && !Z(j) ? "Pause reading" : Z(j) ? "Resume reading" : "Play reading")), Cn(() => ri(t, "disabled", !Z(D) || Z(le))), Gr(t, (e) => S?.(e)), Gr(t, (e, t) => C?.(e, t), () => ({
3678
- "aria-expanded": Z(k) ? "true" : "false",
3679
- "aria-controls": Z(k) ? xe : null,
3680
- "aria-pressed": Z(k) ? "true" : "false"
3681
- })), Cn(() => Zr(t, 1, `pie-tool-tts-inline__trigger ${Z(Ke) ?? ""}`, "svelte-18mzc0g")), pr("click", t, Ve), Cr(e, t);
3705
+ var t = La(), n = nn(t), r = (e) => {
3706
+ var t = Fa();
3707
+ ti(t, "type", "circle"), ti(t, "size", "small"), ti(t, "variant", "tertiary"), Sn(() => ti(t, "icon-name", Q(j) && !Q(M) ? "pause" : "play")), Sn(() => ti(t, "button-aria-label", Q(j) && !Q(M) ? "Pause reading" : Q(M) ? "Resume reading" : "Play reading")), Sn(() => ti(t, "disabled", !Q(O))), Hr(t, (e) => S?.(e)), Hr(t, (e, t) => C?.(e, t), () => ({
3708
+ "aria-expanded": Q(A) ? "true" : "false",
3709
+ "aria-controls": Q(A) ? _e : null,
3710
+ "aria-pressed": Q(A) ? "true" : "false",
3711
+ "aria-busy": Q(ce) ? "true" : null
3712
+ })), Sn(() => Jr(t, 1, `pie-tool-tts-inline__trigger ${Q(Ye) ?? ""}`, "svelte-18mzc0g")), ur("click", t, Ge), br(e, t);
3682
3713
  }, i = (e) => {
3683
- var t = Ra(), n = nn(t);
3684
- ke(t), Gr(t, (e) => te?.(e)), Cn(() => {
3685
- Zr(t, 1, `pie-tool-tts-inline__control pie-tool-tts-inline__trigger pie-tool-tts-inline__trigger--plain ${Z(Ke) ?? ""}`, "svelte-18mzc0g"), Q(t, "aria-expanded", Z(k) ? "true" : "false"), Q(t, "aria-controls", Z(k) ? xe : void 0), Q(t, "aria-pressed", Z(k) ? "true" : "false"), Q(t, "aria-label", Z(A) && !Z(j) ? "Pause reading" : Z(j) ? "Resume reading" : "Play reading"), t.disabled = !Z(D) || Z(le), Zr(n, 1, `fa-solid ${Z(A) && !Z(j) ? "fa-pause" : "fa-play"} pie-tool-tts-inline__icon`, "svelte-18mzc0g");
3686
- }), pr("click", t, Ve), Cr(e, t);
3714
+ var t = Ia(), n = nn(t);
3715
+ Ae(t), Hr(t, (e) => te?.(e)), Sn(() => {
3716
+ Jr(t, 1, `pie-tool-tts-inline__control pie-tool-tts-inline__trigger pie-tool-tts-inline__trigger--plain ${Q(Ye) ?? ""}`, "svelte-18mzc0g"), ei(t, "aria-expanded", Q(A) ? "true" : "false"), ei(t, "aria-controls", Q(A) ? _e : void 0), ei(t, "aria-pressed", Q(A) ? "true" : "false"), ei(t, "aria-label", Q(j) && !Q(M) ? "Pause reading" : Q(M) ? "Resume reading" : "Play reading"), ei(t, "aria-busy", Q(ce) ? "true" : void 0), t.disabled = !Q(O), Jr(n, 1, `fa-solid ${Q(j) && !Q(M) ? "fa-pause" : "fa-play"} pie-tool-tts-inline__icon`, "svelte-18mzc0g");
3717
+ }), ur("click", t, Ge), br(e, t);
3687
3718
  };
3688
- Pr(n, (e) => {
3689
- Z(re) ? e(r) : e(i, -1);
3690
- }), ke(t), Cr(e, t);
3719
+ jr(n, (e) => {
3720
+ Q(ne) ? e(r) : e(i, -1);
3721
+ }), Ae(t), br(e, t);
3691
3722
  }, n = (e) => {
3692
- var t = Sr(), n = rn(t), r = (e) => {
3693
- var t = Ha();
3723
+ var t = yr(), n = rn(t), r = (e) => {
3724
+ var t = Ba();
3694
3725
  let n;
3695
3726
  var r = nn(t), i = (e) => {
3696
- var t = Va();
3727
+ var t = za();
3697
3728
  let n;
3698
- Rr(t, 23, () => Z(me), (e) => e.rate, (e, t, n) => {
3699
- var r = Ba(), i = nn(r), a = nn(i, !0);
3700
- ke(i), ke(r), Cn(() => {
3701
- Q(r, "tabindex", Z(_e) === Z(n) ? 0 : -1), Q(r, "aria-label", Z(t).ariaLabel), Q(r, "aria-checked", Z(ve) === Z(t).rate), r.disabled = !Z(D), Q(i, "data-label", Z(t).label), Er(a, Z(t).label);
3702
- }), pr("click", r, () => Ge(Z(t))), fr("focus", r, () => W(N, Z(n), !0)), Cr(e, r);
3703
- }), ke(t), Cn(() => n = Zr(t, 1, "pie-tool-tts-inline__speed-group svelte-18mzc0g", null, n, { "pie-tool-tts-inline__speed-group--stacked": Z(oe) })), Cr(e, t);
3729
+ Fr(t, 21, () => Q(pe), (e) => e.rate, (e, t) => {
3730
+ var n = Ra(), r = nn(n), i = nn(r, !0);
3731
+ Ae(r), Ae(n), Sn(() => {
3732
+ ei(n, "data-pie-tts-speed-rate", Q(t).rate), ei(n, "tabindex", Q(me) === Q(t).rate ? 0 : -1), ei(n, "aria-label", Q(t).ariaLabel), ei(n, "aria-checked", Q(me) === Q(t).rate), n.disabled = !Q(O), ei(r, "data-label", Q(t).label), Cr(i, Q(t).label);
3733
+ }), ur("click", n, () => z(Q(t))), ur("keydown", n, (e) => Re(je, e)), br(e, n);
3734
+ }), Ae(t), Sn(() => n = Jr(t, 1, "pie-tool-tts-inline__speed-group svelte-18mzc0g", null, n, { "pie-tool-tts-inline__speed-group--stacked": Q(ae) })), br(e, t);
3704
3735
  };
3705
- Pr(r, (e) => {
3706
- Z(me).length > 0 && e(i);
3736
+ jr(r, (e) => {
3737
+ Q(pe).length > 0 && e(i);
3707
3738
  });
3708
3739
  var a = an(r, 2), o = an(a, 2), s = an(o, 2);
3709
- ke(t), ci(t, (e) => W(T, e), () => Z(T)), Cn(() => {
3710
- Q(t, "id", xe), n = Zr(t, 1, "pie-tool-tts-inline__panel svelte-18mzc0g", null, n, {
3711
- "pie-tool-tts-inline__panel--floating": Z(Je),
3712
- "pie-tool-tts-inline__panel--row": Z(qe),
3713
- "pie-tool-tts-inline__panel--left-aligned-inline": Z(z),
3714
- "pie-tool-tts-inline__panel--compact": Z(z) && Z(oe)
3715
- }), $r(t, Z(z) ? Z(Ze) : ""), Q(a, "tabindex", Z(_e) === Z(he) ? 0 : -1), a.disabled = !Z(D) || !Z(A), Q(o, "tabindex", Z(_e) === Z(he) + 1 ? 0 : -1), o.disabled = !Z(D) || !Z(A), Q(s, "tabindex", Z(_e) === Z(he) + 2 ? 0 : -1), s.disabled = !Z(D) || !Z(A) && !Z(j);
3716
- }), pr("keydown", t, Ne), pr("click", a, We), fr("focus", a, () => W(N, Z(he), !0)), pr("click", o, Ue), fr("focus", o, () => W(N, Z(he) + 1)), pr("click", s, He), fr("focus", s, () => W(N, Z(he) + 2)), Cr(e, t);
3740
+ Ae(t), oi(t, (e) => W(T, e), () => Q(T)), Sn(() => {
3741
+ ei(t, "id", _e), n = Jr(t, 1, "pie-tool-tts-inline__panel svelte-18mzc0g", null, n, {
3742
+ "pie-tool-tts-inline__panel--floating": Q(Ze),
3743
+ "pie-tool-tts-inline__panel--row": Q(Xe),
3744
+ "pie-tool-tts-inline__panel--left-aligned-inline": Q(Qe),
3745
+ "pie-tool-tts-inline__panel--compact": Q(Qe) && Q(ae)
3746
+ }), Xr(t, Q(Qe) ? Q(nt) : ""), a.disabled = !Q(O) || !Q(j), o.disabled = !Q(O) || !Q(j), s.disabled = !Q(O);
3747
+ }), ur("click", a, Je), ur("keydown", a, (e) => Re(Me, e)), ur("click", o, qe), ur("keydown", o, (e) => Re(Me, e)), ur("click", s, Ke), ur("keydown", s, (e) => Re(Me, e)), br(e, t);
3717
3748
  };
3718
- Pr(n, (e) => {
3719
- Z(k) && e(r);
3720
- }), Cr(e, t);
3749
+ jr(n, (e) => {
3750
+ Q(A) && e(r);
3751
+ }), br(e, t);
3752
+ };
3753
+ var r = nn(t), i = (t) => {
3754
+ var r = Va(), i = rn(r);
3755
+ n(i), e(an(i, 2)), br(t, r);
3756
+ }, a = (t) => {
3757
+ var r = Va(), i = rn(r);
3758
+ e(i), n(an(i, 2)), br(t, r);
3721
3759
  };
3722
- var r = nn(t);
3723
- e(r);
3724
- var i = an(r, 2);
3725
- n(i);
3726
- var a = an(i, 2), o = nn(a, !0);
3727
- ke(a), ke(t), ci(t, (e) => W(w, e), () => Z(w)), Cn(() => Er(o, Z(M)));
3728
- }
3729
- Cn(() => {
3730
- n = Zr(t, 1, "pie-tool-tts-inline svelte-18mzc0g", null, n, {
3731
- "pie-tool-tts-inline--controls-row": Z(qe),
3732
- "pie-tool-tts-inline--floating": Z(Je),
3733
- "pie-tool-tts-inline--left-aligned": Z(z)
3734
- }), $r(t, `--pie-tts-zoom-comp: ${Ye.current};`);
3735
- }), Cr(e, t);
3760
+ jr(r, (e) => {
3761
+ Q($e) ? e(i) : e(a, -1);
3762
+ });
3763
+ var o = an(r, 2), s = nn(o, !0);
3764
+ Ae(o), Ae(t), oi(t, (e) => W(w, e), () => Q(w)), Sn(() => Cr(s, Q(N)));
3765
+ }
3766
+ Sn(() => {
3767
+ n = Jr(t, 1, "pie-tool-tts-inline svelte-18mzc0g", null, n, {
3768
+ "pie-tool-tts-inline--controls-row": Q(Xe),
3769
+ "pie-tool-tts-inline--floating": Q(Ze),
3770
+ "pie-tool-tts-inline--left-aligned": Q(Qe)
3771
+ }), Xr(t, `--pie-tts-zoom-comp: ${et.current};`);
3772
+ }), br(e, t);
3736
3773
  };
3737
- return Pr(it, (e) => {
3738
- p && e(at);
3739
- }), Cr(a, V), Be(rt);
3774
+ return jr(dt, (e) => {
3775
+ p && e(ft);
3776
+ }), br(a, ut), Ve(lt);
3740
3777
  }
3741
- mr(["click", "keydown"]), customElements.define("pie-tool-tts-inline", hi(Ga, {
3778
+ dr(["click", "keydown"]), customElements.define("pie-tool-tts-inline", pi(Wa, {
3742
3779
  catalogId: {
3743
3780
  attribute: "catalog-id",
3744
3781
  type: "String"
@@ -3765,4 +3802,4 @@ mr(["click", "keydown"]), customElements.define("pie-tool-tts-inline", hi(Ga, {
3765
3802
  }
3766
3803
  }, [], [], { mode: "open" }));
3767
3804
  //#endregion
3768
- export { Ga as default };
3805
+ export { Wa as default };