@pie-players/pie-section-player-tools-session-debugger 0.3.13 → 0.3.17

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.
@@ -3,13 +3,13 @@ var lr = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
5
  var ki = (e, t, n) => t in e ? Ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
- var N = (e, t, n) => ki(e, typeof t != "symbol" ? t + "" : t, n), En = (e, t, n) => t.has(e) || lr("Cannot " + n);
7
- var a = (e, t, n) => (En(e, t, "read from private field"), n ? n.call(e) : t.get(e)), b = (e, t, n) => t.has(e) ? lr("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), m = (e, t, n, r) => (En(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), R = (e, t, n) => (En(e, t, "access private method"), n);
6
+ var N = (e, t, n) => ki(e, typeof t != "symbol" ? t + "" : t, n), Sn = (e, t, n) => t.has(e) || lr("Cannot " + n);
7
+ var a = (e, t, n) => (Sn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), b = (e, t, n) => t.has(e) ? lr("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), m = (e, t, n, r) => (Sn(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), R = (e, t, n) => (Sn(e, t, "access private method"), n);
8
8
  var yr;
9
9
  typeof window < "u" && ((yr = window.__svelte ?? (window.__svelte = {})).v ?? (yr.v = /* @__PURE__ */ new Set())).add("5");
10
- const Ti = 1, Ai = 2, $r = "[", xr = "[!", ar = "[?", Er = "]", kt = {}, O = /* @__PURE__ */ Symbol(), Sr = "http://www.w3.org/1999/xhtml", kn = !1;
11
- var Cr = Array.isArray, Mi = Array.prototype.indexOf, Tt = Array.prototype.includes, Ni = Array.from, ln = Object.keys, an = Object.defineProperty, pt = Object.getOwnPropertyDescriptor, Ri = Object.getOwnPropertyDescriptors, Pi = Object.prototype, Li = Array.prototype, Ir = Object.getPrototypeOf, ur = Object.isExtensible;
12
- const tn = () => {
10
+ const Ti = 1, Ai = 2, $r = "[", xr = "[!", ar = "[?", Er = "]", kt = {}, O = /* @__PURE__ */ Symbol(), Sr = "http://www.w3.org/1999/xhtml", Tn = !1;
11
+ var Cr = Array.isArray, Mi = Array.prototype.indexOf, Tt = Array.prototype.includes, Ni = Array.from, an = Object.keys, un = Object.defineProperty, pt = Object.getOwnPropertyDescriptor, Ri = Object.getOwnPropertyDescriptors, Li = Object.prototype, Pi = Array.prototype, Ir = Object.getPrototypeOf, ur = Object.isExtensible;
12
+ const nn = () => {
13
13
  };
14
14
  function Di(e) {
15
15
  for (var t = 0; t < e.length; t++)
@@ -21,7 +21,7 @@ function kr() {
21
21
  });
22
22
  return { promise: n, resolve: e, reject: t };
23
23
  }
24
- const H = 2, Pt = 4, At = 8, Wn = 1 << 24, Ze = 16, Se = 32, Ke = 64, Tn = 128, le = 512, z = 1024, F = 2048, pe = 4096, ae = 8192, Pe = 16384, ht = 32768, ct = 65536, fr = 1 << 17, ji = 1 << 18, vt = 1 << 19, Oi = 1 << 20, dt = 65536, An = 1 << 21, Vn = 1 << 22, Be = 1 << 23, Sn = /* @__PURE__ */ Symbol("$state"), zi = /* @__PURE__ */ Symbol("legacy props"), Fi = /* @__PURE__ */ Symbol(""), et = new class extends Error {
24
+ const H = 2, Lt = 4, At = 8, Vn = 1 << 24, Ze = 16, Se = 32, Ke = 64, An = 128, le = 512, z = 1024, F = 2048, pe = 4096, ae = 8192, Le = 16384, ht = 32768, ct = 65536, fr = 1 << 17, ji = 1 << 18, vt = 1 << 19, Oi = 1 << 20, dt = 65536, Mn = 1 << 21, Bn = 1 << 22, Be = 1 << 23, Cn = /* @__PURE__ */ Symbol("$state"), zi = /* @__PURE__ */ Symbol("legacy props"), Fi = /* @__PURE__ */ Symbol(""), et = new class extends Error {
25
25
  constructor() {
26
26
  super(...arguments);
27
27
  N(this, "name", "StaleReactionError");
@@ -30,8 +30,8 @@ const H = 2, Pt = 4, At = 8, Wn = 1 << 24, Ze = 16, Se = 32, Ke = 64, Tn = 128,
30
30
  }(), Hi = (
31
31
  // We gotta write it like this because after downleveling the pure comment may end up in the wrong location
32
32
  !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml")
33
- ), vn = 3, _n = 8;
34
- function Bn(e) {
33
+ ), _n = 3, pn = 8;
34
+ function Xn(e) {
35
35
  throw new Error("https://svelte.dev/e/lifecycle_outside_component");
36
36
  }
37
37
  function Yi() {
@@ -52,10 +52,10 @@ function Xi() {
52
52
  function qi() {
53
53
  throw new Error("https://svelte.dev/e/hydration_failed");
54
54
  }
55
- function Gi() {
55
+ function Ui() {
56
56
  throw new Error("https://svelte.dev/e/state_descriptors_fixed");
57
57
  }
58
- function Ui() {
58
+ function Gi() {
59
59
  throw new Error("https://svelte.dev/e/state_prototype_fixed");
60
60
  }
61
61
  function Zi() {
@@ -64,7 +64,7 @@ function Zi() {
64
64
  function Ki() {
65
65
  throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
66
66
  }
67
- function pn(e) {
67
+ function gn(e) {
68
68
  console.warn("https://svelte.dev/e/hydration_mismatch");
69
69
  }
70
70
  function Ji() {
@@ -77,16 +77,16 @@ function _t(e) {
77
77
  let C;
78
78
  function ge(e) {
79
79
  if (e === null)
80
- throw pn(), kt;
80
+ throw gn(), kt;
81
81
  return C = e;
82
82
  }
83
- function Xn() {
83
+ function qn() {
84
84
  return ge(/* @__PURE__ */ De(C));
85
85
  }
86
86
  function ie(e) {
87
87
  if (I) {
88
88
  if (/* @__PURE__ */ De(C) !== null)
89
- throw pn(), kt;
89
+ throw gn(), kt;
90
90
  C = e;
91
91
  }
92
92
  }
@@ -100,7 +100,7 @@ function Qi(e = 1) {
100
100
  }
101
101
  function Tr(e = !0) {
102
102
  for (var t = 0, n = C; ; ) {
103
- if (n.nodeType === _n) {
103
+ if (n.nodeType === pn) {
104
104
  var r = (
105
105
  /** @type {Comment} */
106
106
  n.data
@@ -119,8 +119,8 @@ function Tr(e = !0) {
119
119
  }
120
120
  }
121
121
  function es(e) {
122
- if (!e || e.nodeType !== _n)
123
- throw pn(), kt;
122
+ if (!e || e.nodeType !== pn)
123
+ throw gn(), kt;
124
124
  return (
125
125
  /** @type {Comment} */
126
126
  e.data
@@ -188,13 +188,13 @@ function Rr(e) {
188
188
  var t = E;
189
189
  if (t === null)
190
190
  return y.f |= Be, e;
191
- if ((t.f & ht) === 0 && (t.f & Pt) === 0)
191
+ if ((t.f & ht) === 0 && (t.f & Lt) === 0)
192
192
  throw e;
193
193
  We(e, t);
194
194
  }
195
195
  function We(e, t) {
196
196
  for (; t !== null; ) {
197
- if ((t.f & Tn) !== 0) {
197
+ if ((t.f & An) !== 0) {
198
198
  if ((t.f & ht) === 0)
199
199
  throw e;
200
200
  try {
@@ -212,26 +212,26 @@ const ss = -7169;
212
212
  function D(e, t) {
213
213
  e.f = e.f & ss | t;
214
214
  }
215
- function qn(e) {
215
+ function Un(e) {
216
216
  (e.f & le) !== 0 || e.deps === null ? D(e, z) : D(e, pe);
217
217
  }
218
- function Pr(e) {
218
+ function Lr(e) {
219
219
  if (e !== null)
220
220
  for (const t of e)
221
- (t.f & H) === 0 || (t.f & dt) === 0 || (t.f ^= dt, Pr(
221
+ (t.f & H) === 0 || (t.f & dt) === 0 || (t.f ^= dt, Lr(
222
222
  /** @type {Derived} */
223
223
  t.deps
224
224
  ));
225
225
  }
226
- function Lr(e, t, n) {
227
- (e.f & F) !== 0 ? t.add(e) : (e.f & pe) !== 0 && n.add(e), Pr(e.deps), D(e, z);
226
+ function Pr(e, t, n) {
227
+ (e.f & F) !== 0 ? t.add(e) : (e.f & pe) !== 0 && n.add(e), Lr(e.deps), D(e, z);
228
228
  }
229
- const Qt = /* @__PURE__ */ new Set();
230
- let P = null, ve = null, B = [], gn = null, jt = !1, Nt = null, os = 1;
231
- var Fe, bt, it, yt, $t, xt, He, we, Et, G, Mn, Nn, Rn, Pn;
229
+ const en = /* @__PURE__ */ new Set();
230
+ let L = null, ve = null, B = [], mn = null, jt = !1, Nt = null, os = 1;
231
+ var Fe, bt, it, yt, $t, xt, He, we, Et, U, Nn, Rn, Ln, Pn;
232
232
  const sr = class sr {
233
233
  constructor() {
234
- b(this, G);
234
+ b(this, U);
235
235
  // for debugging. TODO remove once async is stable
236
236
  N(this, "id", os++);
237
237
  /**
@@ -322,15 +322,15 @@ const sr = class sr {
322
322
  B = [], this.apply();
323
323
  var n = Nt = [], r = [];
324
324
  for (const i of t)
325
- R(this, G, Nn).call(this, i, n, r);
326
- if (Nt = null, R(this, G, Mn).call(this)) {
327
- R(this, G, Rn).call(this, r), R(this, G, Rn).call(this, n);
325
+ R(this, U, Rn).call(this, i, n, r);
326
+ if (Nt = null, R(this, U, Nn).call(this)) {
327
+ R(this, U, Ln).call(this, r), R(this, U, Ln).call(this, n);
328
328
  for (const [i, s] of a(this, we))
329
329
  zr(i, s);
330
330
  } else {
331
- P = null;
331
+ L = null;
332
332
  for (const i of a(this, Fe)) i(this);
333
- a(this, Fe).clear(), a(this, it) === 0 && R(this, G, Pn).call(this), cr(r), cr(n), a(this, xt).clear(), a(this, He).clear(), a(this, $t)?.resolve();
333
+ a(this, Fe).clear(), a(this, it) === 0 && R(this, U, Pn).call(this), cr(r), cr(n), a(this, xt).clear(), a(this, He).clear(), a(this, $t)?.resolve();
334
334
  }
335
335
  ve = null;
336
336
  }
@@ -344,17 +344,17 @@ const sr = class sr {
344
344
  n !== O && !this.previous.has(t) && this.previous.set(t, n), (t.f & Be) === 0 && (this.current.set(t, t.v), ve?.set(t, t.v));
345
345
  }
346
346
  activate() {
347
- P = this, this.apply();
347
+ L = this, this.apply();
348
348
  }
349
349
  deactivate() {
350
- P === this && (P = null, ve = null);
350
+ L === this && (L = null, ve = null);
351
351
  }
352
352
  flush() {
353
353
  if (B.length > 0)
354
- P = this, Dr();
354
+ L = this, Dr();
355
355
  else if (a(this, it) === 0 && !this.is_fork) {
356
356
  for (const t of a(this, Fe)) t(this);
357
- a(this, Fe).clear(), R(this, G, Pn).call(this), a(this, $t)?.resolve();
357
+ a(this, Fe).clear(), R(this, U, Pn).call(this), a(this, $t)?.resolve();
358
358
  }
359
359
  this.deactivate();
360
360
  }
@@ -375,7 +375,7 @@ const sr = class sr {
375
375
  */
376
376
  decrement(t) {
377
377
  m(this, it, a(this, it) - 1), t && m(this, yt, a(this, yt) - 1), !a(this, Et) && (m(this, Et, !0), gt(() => {
378
- m(this, Et, !1), R(this, G, Mn).call(this) ? B.length > 0 && this.flush() : this.revive();
378
+ m(this, Et, !1), R(this, U, Nn).call(this) ? B.length > 0 && this.flush() : this.revive();
379
379
  }));
380
380
  }
381
381
  revive() {
@@ -397,18 +397,18 @@ const sr = class sr {
397
397
  return (a(this, $t) ?? m(this, $t, kr())).promise;
398
398
  }
399
399
  static ensure() {
400
- if (P === null) {
401
- const t = P = new sr();
402
- Qt.add(P), jt || gt(() => {
403
- P === t && t.flush();
400
+ if (L === null) {
401
+ const t = L = new sr();
402
+ en.add(L), jt || gt(() => {
403
+ L === t && t.flush();
404
404
  });
405
405
  }
406
- return P;
406
+ return L;
407
407
  }
408
408
  apply() {
409
409
  }
410
410
  };
411
- Fe = new WeakMap(), bt = new WeakMap(), it = new WeakMap(), yt = new WeakMap(), $t = new WeakMap(), xt = new WeakMap(), He = new WeakMap(), we = new WeakMap(), Et = new WeakMap(), G = new WeakSet(), Mn = function() {
411
+ Fe = new WeakMap(), bt = new WeakMap(), it = new WeakMap(), yt = new WeakMap(), $t = new WeakMap(), xt = new WeakMap(), He = new WeakMap(), we = new WeakMap(), Et = new WeakMap(), U = new WeakSet(), Nn = function() {
412
412
  return this.is_fork || a(this, yt) > 0;
413
413
  }, /**
414
414
  * Traverse the effect tree, executing effects or stashing
@@ -417,12 +417,12 @@ Fe = new WeakMap(), bt = new WeakMap(), it = new WeakMap(), yt = new WeakMap(),
417
417
  * @param {Effect[]} effects
418
418
  * @param {Effect[]} render_effects
419
419
  */
420
- Nn = function(t, n, r) {
420
+ Rn = function(t, n, r) {
421
421
  t.f ^= z;
422
422
  for (var i = t.first; i !== null; ) {
423
423
  var s = i.f, o = (s & (Se | Ke)) !== 0, u = o && (s & z) !== 0, l = (s & ae) !== 0, f = u || a(this, we).has(i);
424
424
  if (!f && i.fn !== null) {
425
- o ? l || (i.f ^= z) : (s & Pt) !== 0 ? n.push(i) : (s & (At | Wn)) !== 0 && l ? r.push(i) : Ut(i) && (Rt(i), (s & Ze) !== 0 && (a(this, He).add(i), l && D(i, F)));
425
+ o ? l || (i.f ^= z) : (s & Lt) !== 0 ? n.push(i) : (s & (At | Vn)) !== 0 && l ? r.push(i) : Gt(i) && (Rt(i), (s & Ze) !== 0 && (a(this, He).add(i), l && D(i, F)));
426
426
  var d = i.first;
427
427
  if (d !== null) {
428
428
  i = d;
@@ -441,15 +441,15 @@ Nn = function(t, n, r) {
441
441
  }, /**
442
442
  * @param {Effect[]} effects
443
443
  */
444
- Rn = function(t) {
444
+ Ln = function(t) {
445
445
  for (var n = 0; n < t.length; n += 1)
446
- Lr(t[n], a(this, xt), a(this, He));
446
+ Pr(t[n], a(this, xt), a(this, He));
447
447
  }, Pn = function() {
448
448
  var s;
449
- if (Qt.size > 1) {
449
+ if (en.size > 1) {
450
450
  this.previous.clear();
451
- var t = P, n = ve, r = !0;
452
- for (const o of Qt) {
451
+ var t = L, n = ve, r = !0;
452
+ for (const o of en) {
453
453
  if (o === this) {
454
454
  r = !1;
455
455
  continue;
@@ -473,26 +473,26 @@ Rn = function(t) {
473
473
  for (const c of u)
474
474
  jr(c, l, f, d);
475
475
  if (B.length > 0) {
476
- P = o, o.apply();
476
+ L = o, o.apply();
477
477
  for (const c of B)
478
- R(s = o, G, Nn).call(s, c, [], []);
478
+ R(s = o, U, Rn).call(s, c, [], []);
479
479
  o.deactivate();
480
480
  }
481
481
  B = i;
482
482
  }
483
483
  }
484
- P = t, ve = n;
484
+ L = t, ve = n;
485
485
  }
486
- a(this, we).clear(), Qt.delete(this);
486
+ a(this, we).clear(), en.delete(this);
487
487
  };
488
- let Le = sr;
488
+ let Pe = sr;
489
489
  function T(e) {
490
490
  var t = jt;
491
491
  jt = !0;
492
492
  try {
493
493
  for (var n; ; ) {
494
- if (is(), B.length === 0 && (P?.flush(), B.length === 0))
495
- return gn = null, /** @type {T} */
494
+ if (is(), B.length === 0 && (L?.flush(), B.length === 0))
495
+ return mn = null, /** @type {T} */
496
496
  n;
497
497
  Dr();
498
498
  }
@@ -504,7 +504,7 @@ function Dr() {
504
504
  var e = null;
505
505
  try {
506
506
  for (var t = 0; B.length > 0; ) {
507
- var n = Le.ensure();
507
+ var n = Pe.ensure();
508
508
  if (t++ > 1e3) {
509
509
  var r, i;
510
510
  ls();
@@ -512,14 +512,14 @@ function Dr() {
512
512
  n.process(B), Xe.clear();
513
513
  }
514
514
  } finally {
515
- B = [], gn = null, Nt = null;
515
+ B = [], mn = null, Nt = null;
516
516
  }
517
517
  }
518
518
  function ls() {
519
519
  try {
520
520
  Xi();
521
521
  } catch (e) {
522
- We(e, gn);
522
+ We(e, mn);
523
523
  }
524
524
  }
525
525
  let ke = null;
@@ -528,17 +528,17 @@ function cr(e) {
528
528
  if (t !== 0) {
529
529
  for (var n = 0; n < t; ) {
530
530
  var r = e[n++];
531
- if ((r.f & (Pe | ae)) === 0 && Ut(r) && (ke = /* @__PURE__ */ new Set(), Rt(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && ti(r), ke?.size > 0)) {
531
+ if ((r.f & (Le | ae)) === 0 && Gt(r) && (ke = /* @__PURE__ */ new Set(), Rt(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && ti(r), ke?.size > 0)) {
532
532
  Xe.clear();
533
533
  for (const i of ke) {
534
- if ((i.f & (Pe | ae)) !== 0) continue;
534
+ if ((i.f & (Le | ae)) !== 0) continue;
535
535
  const s = [i];
536
536
  let o = i.parent;
537
537
  for (; o !== null; )
538
538
  ke.has(o) && (ke.delete(o), s.push(o)), o = o.parent;
539
539
  for (let u = s.length - 1; u >= 0; u--) {
540
540
  const l = s[u];
541
- (l.f & (Pe | ae)) === 0 && Rt(l);
541
+ (l.f & (Le | ae)) === 0 && Rt(l);
542
542
  }
543
543
  }
544
544
  ke.clear();
@@ -557,7 +557,7 @@ function jr(e, t, n, r) {
557
557
  t,
558
558
  n,
559
559
  r
560
- ) : (s & (Vn | Ze)) !== 0 && (s & F) === 0 && Or(i, t, r) && (D(i, F), xe(
560
+ ) : (s & (Bn | Ze)) !== 0 && (s & F) === 0 && Or(i, t, r) && (D(i, F), xe(
561
561
  /** @type {Effect} */
562
562
  i
563
563
  ));
@@ -585,8 +585,8 @@ function Or(e, t, n) {
585
585
  return n.set(e, !1), !1;
586
586
  }
587
587
  function xe(e) {
588
- var t = gn = e, n = t.b;
589
- if (n?.is_pending && (e.f & (Pt | At | Wn)) !== 0 && (e.f & ht) === 0) {
588
+ var t = mn = e, n = t.b;
589
+ if (n?.is_pending && (e.f & (Lt | At | Vn)) !== 0 && (e.f & ht) === 0) {
590
590
  n.defer_effect(e);
591
591
  return;
592
592
  }
@@ -611,9 +611,9 @@ function zr(e, t) {
611
611
  }
612
612
  }
613
613
  function as(e) {
614
- let t = 0, n = Gt(0), r;
614
+ let t = 0, n = Ut(0), r;
615
615
  return () => {
616
- Qn() && (x(n), Qr(() => (t === 0 && (r = mt(() => e(() => zt(n)))), t += 1, () => {
616
+ er() && (x(n), Qr(() => (t === 0 && (r = mt(() => e(() => zt(n)))), t += 1, () => {
617
617
  gt(() => {
618
618
  t -= 1, t === 0 && (r?.(), r = void 0, zt(n));
619
619
  });
@@ -624,7 +624,7 @@ var us = ct | vt;
624
624
  function fs(e, t, n, r) {
625
625
  new cs(e, t, n, r);
626
626
  }
627
- var K, Wt, be, st, V, ye, J, de, Ae, ot, Ye, St, Ct, It, Me, dn, L, Fr, Hr, Yr, Ln, nn, rn, Dn;
627
+ var K, Wt, be, st, V, ye, J, de, Ae, ot, Ye, St, Ct, It, Me, hn, P, Fr, Hr, Yr, Dn, rn, sn, jn;
628
628
  class cs {
629
629
  /**
630
630
  * @param {TemplateNode} node
@@ -633,7 +633,7 @@ class cs {
633
633
  * @param {((error: unknown) => unknown) | undefined} [transform_error]
634
634
  */
635
635
  constructor(t, n, r, i) {
636
- b(this, L);
636
+ b(this, P);
637
637
  /** @type {Boundary | null} */
638
638
  N(this, "parent");
639
639
  N(this, "is_pending", !1);
@@ -676,7 +676,7 @@ class cs {
676
676
  * @type {Source<number> | null}
677
677
  */
678
678
  b(this, Me, null);
679
- b(this, dn, as(() => (m(this, Me, Gt(a(this, ot))), () => {
679
+ b(this, hn, as(() => (m(this, Me, Ut(a(this, ot))), () => {
680
680
  m(this, Me, null);
681
681
  })));
682
682
  m(this, K, t), m(this, be, n), m(this, st, (s) => {
@@ -684,22 +684,22 @@ class cs {
684
684
  /** @type {Effect} */
685
685
  E
686
686
  );
687
- o.b = this, o.f |= Tn, r(s);
687
+ o.b = this, o.f |= An, r(s);
688
688
  }), this.parent = /** @type {Effect} */
689
- E.b, this.transform_error = i ?? this.parent?.transform_error ?? ((s) => s), m(this, V, er(() => {
689
+ E.b, this.transform_error = i ?? this.parent?.transform_error ?? ((s) => s), m(this, V, tr(() => {
690
690
  if (I) {
691
691
  const s = (
692
692
  /** @type {Comment} */
693
693
  a(this, Wt)
694
694
  );
695
- Xn();
695
+ qn();
696
696
  const o = s.data === xr;
697
697
  if (s.data.startsWith(ar)) {
698
698
  const l = JSON.parse(s.data.slice(ar.length));
699
- R(this, L, Hr).call(this, l);
700
- } else o ? R(this, L, Yr).call(this) : R(this, L, Fr).call(this);
699
+ R(this, P, Hr).call(this, l);
700
+ } else o ? R(this, P, Yr).call(this) : R(this, P, Fr).call(this);
701
701
  } else
702
- R(this, L, Ln).call(this);
702
+ R(this, P, Dn).call(this);
703
703
  }, us)), I && m(this, K, C);
704
704
  }
705
705
  /**
@@ -707,7 +707,7 @@ class cs {
707
707
  * @param {Effect} effect
708
708
  */
709
709
  defer_effect(t) {
710
- Lr(t, a(this, Ct), a(this, It));
710
+ Pr(t, a(this, Ct), a(this, It));
711
711
  }
712
712
  /**
713
713
  * Returns `false` if the effect exists inside a boundary whose pending snippet is shown
@@ -726,12 +726,12 @@ class cs {
726
726
  * @param {1 | -1} d
727
727
  */
728
728
  update_pending_count(t) {
729
- R(this, L, Dn).call(this, t), m(this, ot, a(this, ot) + t), !(!a(this, Me) || a(this, St)) && (m(this, St, !0), gt(() => {
730
- m(this, St, !1), a(this, Me) && un(a(this, Me), a(this, ot));
729
+ R(this, P, jn).call(this, t), m(this, ot, a(this, ot) + t), !(!a(this, Me) || a(this, St)) && (m(this, St, !0), gt(() => {
730
+ m(this, St, !1), a(this, Me) && fn(a(this, Me), a(this, ot));
731
731
  }));
732
732
  }
733
733
  get_effect_pending() {
734
- return a(this, dn).call(this), x(
734
+ return a(this, hn).call(this), x(
735
735
  /** @type {Source<number>} */
736
736
  a(this, Me)
737
737
  );
@@ -754,8 +754,8 @@ class cs {
754
754
  }
755
755
  i = !0, s && Ki(), a(this, de) !== null && Ft(a(this, de), () => {
756
756
  m(this, de, null);
757
- }), R(this, L, rn).call(this, () => {
758
- Le.ensure(), R(this, L, Ln).call(this);
757
+ }), R(this, P, sn).call(this, () => {
758
+ Pe.ensure(), R(this, P, Dn).call(this);
759
759
  });
760
760
  }, u = (l) => {
761
761
  try {
@@ -763,15 +763,15 @@ class cs {
763
763
  } catch (f) {
764
764
  We(f, a(this, V) && a(this, V).parent);
765
765
  }
766
- r && m(this, de, R(this, L, rn).call(this, () => {
767
- Le.ensure();
766
+ r && m(this, de, R(this, P, sn).call(this, () => {
767
+ Pe.ensure();
768
768
  try {
769
769
  return Te(() => {
770
770
  var f = (
771
771
  /** @type {Effect} */
772
772
  E
773
773
  );
774
- f.b = this, f.f |= Tn, r(
774
+ f.b = this, f.f |= An, r(
775
775
  a(this, K),
776
776
  () => l,
777
777
  () => o
@@ -803,7 +803,7 @@ class cs {
803
803
  });
804
804
  }
805
805
  }
806
- K = new WeakMap(), Wt = new WeakMap(), be = new WeakMap(), st = new WeakMap(), V = new WeakMap(), ye = new WeakMap(), J = new WeakMap(), de = new WeakMap(), Ae = new WeakMap(), ot = new WeakMap(), Ye = new WeakMap(), St = new WeakMap(), Ct = new WeakMap(), It = new WeakMap(), Me = new WeakMap(), dn = new WeakMap(), L = new WeakSet(), Fr = function() {
806
+ K = new WeakMap(), Wt = new WeakMap(), be = new WeakMap(), st = new WeakMap(), V = new WeakMap(), ye = new WeakMap(), J = new WeakMap(), de = new WeakMap(), Ae = new WeakMap(), ot = new WeakMap(), Ye = new WeakMap(), St = new WeakMap(), Ct = new WeakMap(), It = new WeakMap(), Me = new WeakMap(), hn = new WeakMap(), P = new WeakSet(), Fr = function() {
807
807
  try {
808
808
  m(this, ye, Te(() => a(this, st).call(this, a(this, K))));
809
809
  } catch (t) {
@@ -826,15 +826,15 @@ Hr = function(t) {
826
826
  const t = a(this, be).pending;
827
827
  t && (this.is_pending = !0, m(this, J, Te(() => t(a(this, K)))), gt(() => {
828
828
  var n = m(this, Ae, document.createDocumentFragment()), r = qe();
829
- n.append(r), m(this, ye, R(this, L, rn).call(this, () => (Le.ensure(), Te(() => a(this, st).call(this, r))))), a(this, Ye) === 0 && (a(this, K).before(n), m(this, Ae, null), Ft(
829
+ n.append(r), m(this, ye, R(this, P, sn).call(this, () => (Pe.ensure(), Te(() => a(this, st).call(this, r))))), a(this, Ye) === 0 && (a(this, K).before(n), m(this, Ae, null), Ft(
830
830
  /** @type {Effect} */
831
831
  a(this, J),
832
832
  () => {
833
833
  m(this, J, null);
834
834
  }
835
- ), R(this, L, nn).call(this));
835
+ ), R(this, P, rn).call(this));
836
836
  }));
837
- }, Ln = function() {
837
+ }, Dn = function() {
838
838
  try {
839
839
  if (this.is_pending = this.has_pending_snippet(), m(this, Ye, 0), m(this, ot, 0), m(this, ye, Te(() => {
840
840
  a(this, st).call(this, a(this, K));
@@ -847,11 +847,11 @@ Hr = function(t) {
847
847
  );
848
848
  m(this, J, Te(() => n(a(this, K))));
849
849
  } else
850
- R(this, L, nn).call(this);
850
+ R(this, P, rn).call(this);
851
851
  } catch (n) {
852
852
  this.error(n);
853
853
  }
854
- }, nn = function() {
854
+ }, rn = function() {
855
855
  this.is_pending = !1;
856
856
  for (const t of a(this, Ct))
857
857
  D(t, F), xe(t);
@@ -862,7 +862,7 @@ Hr = function(t) {
862
862
  * @template T
863
863
  * @param {() => T} fn
864
864
  */
865
- rn = function(t) {
865
+ sn = function(t) {
866
866
  var n = E, r = y, i = W;
867
867
  Ee(a(this, V)), fe(a(this, V)), Mt(a(this, V).ctx);
868
868
  try {
@@ -877,13 +877,13 @@ rn = function(t) {
877
877
  * if any, such that we can replace the snippet with content once work is done
878
878
  * @param {1 | -1} d
879
879
  */
880
- Dn = function(t) {
880
+ jn = function(t) {
881
881
  var n;
882
882
  if (!this.has_pending_snippet()) {
883
- this.parent && R(n = this.parent, L, Dn).call(n, t);
883
+ this.parent && R(n = this.parent, P, jn).call(n, t);
884
884
  return;
885
885
  }
886
- m(this, Ye, a(this, Ye) + t), a(this, Ye) === 0 && (R(this, L, nn).call(this), a(this, J) && Ft(a(this, J), () => {
886
+ m(this, Ye, a(this, Ye) + t), a(this, Ye) === 0 && (R(this, P, rn).call(this), a(this, J) && Ft(a(this, J), () => {
887
887
  m(this, J, null);
888
888
  }), a(this, Ae) && (a(this, K).before(a(this, Ae)), m(this, Ae, null)));
889
889
  };
@@ -903,9 +903,9 @@ function ds(e, t, n, r) {
903
903
  try {
904
904
  r(c);
905
905
  } catch (v) {
906
- (o.f & Pe) === 0 && We(v, o);
906
+ (o.f & Le) === 0 && We(v, o);
907
907
  }
908
- jn();
908
+ On();
909
909
  }
910
910
  if (n.length === 0) {
911
911
  l.then(() => f(t.map(i)));
@@ -917,13 +917,13 @@ function ds(e, t, n, r) {
917
917
  l ? l.then(d) : d();
918
918
  }
919
919
  function hs() {
920
- var e = E, t = y, n = W, r = P;
920
+ var e = E, t = y, n = W, r = L;
921
921
  return function(s = !0) {
922
922
  Ee(e), fe(t), Mt(n), s && r?.activate();
923
923
  };
924
924
  }
925
- function jn(e = !0) {
926
- Ee(null), fe(null), Mt(null), e && P?.deactivate();
925
+ function On(e = !0) {
926
+ Ee(null), fe(null), Mt(null), e && L?.deactivate();
927
927
  }
928
928
  function vs() {
929
929
  var e = (
@@ -932,7 +932,7 @@ function vs() {
932
932
  E.b
933
933
  ), t = (
934
934
  /** @type {Batch} */
935
- P
935
+ L
936
936
  ), n = e.is_rendered();
937
937
  return e.update_pending_count(1), t.increment(n), () => {
938
938
  e.update_pending_count(-1), t.decrement(n);
@@ -970,7 +970,7 @@ function _s(e, t, n) {
970
970
  /** @type {Promise<V>} */
971
971
  /** @type {unknown} */
972
972
  void 0
973
- ), s = Gt(
973
+ ), s = Ut(
974
974
  /** @type {V} */
975
975
  O
976
976
  ), o = !y, u = /* @__PURE__ */ new Map();
@@ -978,13 +978,13 @@ function _s(e, t, n) {
978
978
  var l = kr();
979
979
  i = l.promise;
980
980
  try {
981
- Promise.resolve(e()).then(l.resolve, l.reject).finally(jn);
981
+ Promise.resolve(e()).then(l.resolve, l.reject).finally(On);
982
982
  } catch (v) {
983
- l.reject(v), jn();
983
+ l.reject(v), On();
984
984
  }
985
985
  var f = (
986
986
  /** @type {Batch} */
987
- P
987
+ L
988
988
  );
989
989
  if (o) {
990
990
  var d = vs();
@@ -992,9 +992,9 @@ function _s(e, t, n) {
992
992
  }
993
993
  const c = (v, _ = void 0) => {
994
994
  if (f.activate(), _)
995
- _ !== et && (s.f |= Be, un(s, _));
995
+ _ !== et && (s.f |= Be, fn(s, _));
996
996
  else {
997
- (s.f & Be) !== 0 && (s.f ^= Be), un(s, v);
997
+ (s.f & Be) !== 0 && (s.f ^= Be), fn(s, v);
998
998
  for (const [h, w] of u) {
999
999
  if (u.delete(h), h === f) break;
1000
1000
  w.reject(et);
@@ -1035,7 +1035,7 @@ function ps(e) {
1035
1035
  function gs(e) {
1036
1036
  for (var t = e.parent; t !== null; ) {
1037
1037
  if ((t.f & H) === 0)
1038
- return (t.f & Pe) === 0 ? (
1038
+ return (t.f & Le) === 0 ? (
1039
1039
  /** @type {Effect} */
1040
1040
  t
1041
1041
  ) : null;
@@ -1043,7 +1043,7 @@ function gs(e) {
1043
1043
  }
1044
1044
  return null;
1045
1045
  }
1046
- function Un(e) {
1046
+ function Zn(e) {
1047
1047
  var t, n = E;
1048
1048
  Ee(gs(e));
1049
1049
  try {
@@ -1054,27 +1054,27 @@ function Un(e) {
1054
1054
  return t;
1055
1055
  }
1056
1056
  function Wr(e) {
1057
- var t = Un(e);
1058
- if (!e.equals(t) && (e.wv = li(), (!P?.is_fork || e.deps === null) && (e.v = t, e.deps === null))) {
1057
+ var t = Zn(e);
1058
+ if (!e.equals(t) && (e.wv = li(), (!L?.is_fork || e.deps === null) && (e.v = t, e.deps === null))) {
1059
1059
  D(e, z);
1060
1060
  return;
1061
1061
  }
1062
- Ue || (ve !== null ? (Qn() || P?.is_fork) && ve.set(e, t) : qn(e));
1062
+ Ge || (ve !== null ? (er() || L?.is_fork) && ve.set(e, t) : Un(e));
1063
1063
  }
1064
1064
  function ms(e) {
1065
1065
  if (e.effects !== null)
1066
1066
  for (const t of e.effects)
1067
- (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(et), t.teardown = tn, t.ac = null, Yt(t, 0), tr(t));
1067
+ (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(et), t.teardown = nn, t.ac = null, Yt(t, 0), nr(t));
1068
1068
  }
1069
1069
  function Vr(e) {
1070
1070
  if (e.effects !== null)
1071
1071
  for (const t of e.effects)
1072
1072
  t.teardown && Rt(t);
1073
1073
  }
1074
- let On = /* @__PURE__ */ new Set();
1074
+ let zn = /* @__PURE__ */ new Set();
1075
1075
  const Xe = /* @__PURE__ */ new Map();
1076
1076
  let Br = !1;
1077
- function Gt(e, t) {
1077
+ function Ut(e, t) {
1078
1078
  var n = {
1079
1079
  f: 0,
1080
1080
  // TODO ideally we could skip this altogether, but it causes type errors
@@ -1088,42 +1088,42 @@ function Gt(e, t) {
1088
1088
  }
1089
1089
  // @__NO_SIDE_EFFECTS__
1090
1090
  function Y(e, t) {
1091
- const n = Gt(e);
1091
+ const n = Ut(e);
1092
1092
  return si(n), n;
1093
1093
  }
1094
1094
  // @__NO_SIDE_EFFECTS__
1095
1095
  function ws(e, t = !1, n = !0) {
1096
- const r = Gt(e);
1096
+ const r = Ut(e);
1097
1097
  return t || (r.equals = ns), r;
1098
1098
  }
1099
1099
  function A(e, t, n = !1) {
1100
1100
  y !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
1101
1101
  // to ensure we error if state is set inside an inspect effect
1102
- (!_e || (y.f & fr) !== 0) && Mr() && (y.f & (H | Ze | Vn | fr)) !== 0 && (ue === null || !Tt.call(ue, e)) && Zi();
1102
+ (!_e || (y.f & fr) !== 0) && Mr() && (y.f & (H | Ze | Bn | fr)) !== 0 && (ue === null || !Tt.call(ue, e)) && Zi();
1103
1103
  let r = n ? Ve(t) : t;
1104
- return un(e, r);
1104
+ return fn(e, r);
1105
1105
  }
1106
- function un(e, t) {
1106
+ function fn(e, t) {
1107
1107
  if (!e.equals(t)) {
1108
1108
  var n = e.v;
1109
- Ue ? Xe.set(e, t) : Xe.set(e, n), e.v = t;
1110
- var r = Le.ensure();
1109
+ Ge ? Xe.set(e, t) : Xe.set(e, n), e.v = t;
1110
+ var r = Pe.ensure();
1111
1111
  if (r.capture(e, n), (e.f & H) !== 0) {
1112
1112
  const i = (
1113
1113
  /** @type {Derived} */
1114
1114
  e
1115
1115
  );
1116
- (e.f & F) !== 0 && Un(i), qn(i);
1116
+ (e.f & F) !== 0 && Zn(i), Un(i);
1117
1117
  }
1118
- e.wv = li(), Xr(e, F), E !== null && (E.f & z) !== 0 && (E.f & (Se | Ke)) === 0 && (ne === null ? Rs([e]) : ne.push(e)), !r.is_fork && On.size > 0 && !Br && bs();
1118
+ e.wv = li(), Xr(e, F), E !== null && (E.f & z) !== 0 && (E.f & (Se | Ke)) === 0 && (ne === null ? Rs([e]) : ne.push(e)), !r.is_fork && zn.size > 0 && !Br && bs();
1119
1119
  }
1120
1120
  return t;
1121
1121
  }
1122
1122
  function bs() {
1123
1123
  Br = !1;
1124
- for (const e of On)
1125
- (e.f & z) !== 0 && D(e, pe), Ut(e) && Rt(e);
1126
- On.clear();
1124
+ for (const e of zn)
1125
+ (e.f & z) !== 0 && D(e, pe), Gt(e) && Rt(e);
1126
+ zn.clear();
1127
1127
  }
1128
1128
  function zt(e) {
1129
1129
  A(e, e.v + 1);
@@ -1149,10 +1149,10 @@ function Xr(e, t) {
1149
1149
  }
1150
1150
  }
1151
1151
  function Ve(e) {
1152
- if (typeof e != "object" || e === null || Sn in e)
1152
+ if (typeof e != "object" || e === null || Cn in e)
1153
1153
  return e;
1154
1154
  const t = Ir(e);
1155
- if (t !== Pi && t !== Li)
1155
+ if (t !== Li && t !== Pi)
1156
1156
  return e;
1157
1157
  var n = /* @__PURE__ */ new Map(), r = Cr(e), i = /* @__PURE__ */ Y(0), s = at, o = (u) => {
1158
1158
  if (at === s)
@@ -1170,7 +1170,7 @@ function Ve(e) {
1170
1170
  e,
1171
1171
  {
1172
1172
  defineProperty(u, l, f) {
1173
- (!("value" in f) || f.configurable === !1 || f.enumerable === !1 || f.writable === !1) && Gi();
1173
+ (!("value" in f) || f.configurable === !1 || f.enumerable === !1 || f.writable === !1) && Ui();
1174
1174
  var d = n.get(l);
1175
1175
  return d === void 0 ? o(() => {
1176
1176
  var c = /* @__PURE__ */ Y(f.value);
@@ -1189,7 +1189,7 @@ function Ve(e) {
1189
1189
  return !0;
1190
1190
  },
1191
1191
  get(u, l, f) {
1192
- if (l === Sn)
1192
+ if (l === Cn)
1193
1193
  return e;
1194
1194
  var d = n.get(l), c = l in u;
1195
1195
  if (d === void 0 && (!c || pt(u, l)?.writable) && (d = o(() => {
@@ -1219,7 +1219,7 @@ function Ve(e) {
1219
1219
  return f;
1220
1220
  },
1221
1221
  has(u, l) {
1222
- if (l === Sn)
1222
+ if (l === Cn)
1223
1223
  return !0;
1224
1224
  var f = n.get(l), d = f !== void 0 && f.v !== O || Reflect.has(u, l);
1225
1225
  if (f !== void 0 || E !== null && (!d || pt(u, l)?.writable)) {
@@ -1272,62 +1272,62 @@ function Ve(e) {
1272
1272
  return l;
1273
1273
  },
1274
1274
  setPrototypeOf() {
1275
- Ui();
1275
+ Gi();
1276
1276
  }
1277
1277
  }
1278
1278
  );
1279
1279
  }
1280
- var dr, qr, Gr, Ur;
1281
- function zn() {
1280
+ var dr, qr, Ur, Gr;
1281
+ function Fn() {
1282
1282
  if (dr === void 0) {
1283
1283
  dr = window, qr = /Firefox/.test(navigator.userAgent);
1284
1284
  var e = Element.prototype, t = Node.prototype, n = Text.prototype;
1285
- Gr = pt(t, "firstChild").get, Ur = pt(t, "nextSibling").get, ur(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), ur(n) && (n.__t = void 0);
1285
+ Ur = pt(t, "firstChild").get, Gr = pt(t, "nextSibling").get, ur(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), ur(n) && (n.__t = void 0);
1286
1286
  }
1287
1287
  }
1288
1288
  function qe(e = "") {
1289
1289
  return document.createTextNode(e);
1290
1290
  }
1291
1291
  // @__NO_SIDE_EFFECTS__
1292
- function Ge(e) {
1292
+ function Ue(e) {
1293
1293
  return (
1294
1294
  /** @type {TemplateNode | null} */
1295
- Gr.call(e)
1295
+ Ur.call(e)
1296
1296
  );
1297
1297
  }
1298
1298
  // @__NO_SIDE_EFFECTS__
1299
1299
  function De(e) {
1300
1300
  return (
1301
1301
  /** @type {TemplateNode | null} */
1302
- Ur.call(e)
1302
+ Gr.call(e)
1303
1303
  );
1304
1304
  }
1305
1305
  function se(e, t) {
1306
1306
  if (!I)
1307
- return /* @__PURE__ */ Ge(e);
1308
- var n = /* @__PURE__ */ Ge(C);
1307
+ return /* @__PURE__ */ Ue(e);
1308
+ var n = /* @__PURE__ */ Ue(C);
1309
1309
  if (n === null)
1310
1310
  n = C.appendChild(qe());
1311
- else if (t && n.nodeType !== vn) {
1311
+ else if (t && n.nodeType !== _n) {
1312
1312
  var r = qe();
1313
1313
  return n?.before(r), ge(r), r;
1314
1314
  }
1315
- return t && Jn(
1315
+ return t && Qn(
1316
1316
  /** @type {Text} */
1317
1317
  n
1318
1318
  ), ge(n), n;
1319
1319
  }
1320
- function Zn(e, t = !1) {
1320
+ function Kn(e, t = !1) {
1321
1321
  if (!I) {
1322
- var n = /* @__PURE__ */ Ge(e);
1322
+ var n = /* @__PURE__ */ Ue(e);
1323
1323
  return n instanceof Comment && n.data === "" ? /* @__PURE__ */ De(n) : n;
1324
1324
  }
1325
1325
  if (t) {
1326
- if (C?.nodeType !== vn) {
1326
+ if (C?.nodeType !== _n) {
1327
1327
  var r = qe();
1328
1328
  return C?.before(r), ge(r), r;
1329
1329
  }
1330
- Jn(
1330
+ Qn(
1331
1331
  /** @type {Text} */
1332
1332
  C
1333
1333
  );
@@ -1342,11 +1342,11 @@ function Re(e, t = 1, n = !1) {
1342
1342
  if (!I)
1343
1343
  return r;
1344
1344
  if (n) {
1345
- if (r?.nodeType !== vn) {
1345
+ if (r?.nodeType !== _n) {
1346
1346
  var s = qe();
1347
1347
  return r === null ? i?.after(s) : r.before(s), ge(s), s;
1348
1348
  }
1349
- Jn(
1349
+ Qn(
1350
1350
  /** @type {Text} */
1351
1351
  r
1352
1352
  );
@@ -1359,20 +1359,20 @@ function ys(e) {
1359
1359
  function $s() {
1360
1360
  return !1;
1361
1361
  }
1362
- function Kn(e, t, n) {
1362
+ function Jn(e, t, n) {
1363
1363
  return (
1364
1364
  /** @type {T extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[T] : Element} */
1365
1365
  document.createElementNS(Sr, e, void 0)
1366
1366
  );
1367
1367
  }
1368
- function Jn(e) {
1368
+ function Qn(e) {
1369
1369
  if (
1370
1370
  /** @type {string} */
1371
1371
  e.nodeValue.length < 65536
1372
1372
  )
1373
1373
  return;
1374
1374
  let t = e.nextSibling;
1375
- for (; t !== null && t.nodeType === vn; )
1375
+ for (; t !== null && t.nodeType === _n; )
1376
1376
  t.remove(), e.nodeValue += /** @type {string} */
1377
1377
  t.nodeValue, t = e.nextSibling;
1378
1378
  }
@@ -1386,7 +1386,7 @@ function Zr(e) {
1386
1386
  }
1387
1387
  }
1388
1388
  function xs(e) {
1389
- E === null && (y === null && Bi(), Vi()), Ue && Wi();
1389
+ E === null && (y === null && Bi(), Vi()), Ge && Wi();
1390
1390
  }
1391
1391
  function Es(e, t) {
1392
1392
  var n = t.last;
@@ -1411,7 +1411,7 @@ function Ce(e, t) {
1411
1411
  wv: 0,
1412
1412
  ac: null
1413
1413
  }, i = r;
1414
- if ((e & Pt) !== 0)
1414
+ if ((e & Lt) !== 0)
1415
1415
  Nt !== null ? Nt.push(r) : xe(r);
1416
1416
  else if (t !== null) {
1417
1417
  try {
@@ -1431,7 +1431,7 @@ function Ce(e, t) {
1431
1431
  }
1432
1432
  return r;
1433
1433
  }
1434
- function Qn() {
1434
+ function er() {
1435
1435
  return y !== null && !_e;
1436
1436
  }
1437
1437
  function Ss(e) {
@@ -1454,17 +1454,17 @@ function Kr(e) {
1454
1454
  return Jr(e);
1455
1455
  }
1456
1456
  function Jr(e) {
1457
- return Ce(Pt | Oi, e);
1457
+ return Ce(Lt | Oi, e);
1458
1458
  }
1459
1459
  function Cs(e) {
1460
- Le.ensure();
1460
+ Pe.ensure();
1461
1461
  const t = Ce(Ke | vt, e);
1462
1462
  return () => {
1463
1463
  q(t);
1464
1464
  };
1465
1465
  }
1466
1466
  function Is(e) {
1467
- Le.ensure();
1467
+ Pe.ensure();
1468
1468
  const t = Ce(Ke | vt, e);
1469
1469
  return (n = {}) => new Promise((r) => {
1470
1470
  n.outro ? Ft(t, () => {
@@ -1473,10 +1473,10 @@ function Is(e) {
1473
1473
  });
1474
1474
  }
1475
1475
  function ks(e) {
1476
- return Ce(Pt, e);
1476
+ return Ce(Lt, e);
1477
1477
  }
1478
1478
  function Ts(e) {
1479
- return Ce(Vn | vt, e);
1479
+ return Ce(Bn | vt, e);
1480
1480
  }
1481
1481
  function Qr(e, t = 0) {
1482
1482
  return Ce(At | t, e);
@@ -1486,7 +1486,7 @@ function Ht(e, t = [], n = [], r = []) {
1486
1486
  Ce(At, () => e(...i.map(x)));
1487
1487
  });
1488
1488
  }
1489
- function er(e, t = 0) {
1489
+ function tr(e, t = 0) {
1490
1490
  var n = Ce(Ze | t, e);
1491
1491
  return n;
1492
1492
  }
@@ -1496,7 +1496,7 @@ function Te(e) {
1496
1496
  function ei(e) {
1497
1497
  var t = e.teardown;
1498
1498
  if (t !== null) {
1499
- const n = Ue, r = y;
1499
+ const n = Ge, r = y;
1500
1500
  hr(!0), fe(null);
1501
1501
  try {
1502
1502
  t.call(null);
@@ -1505,7 +1505,7 @@ function ei(e) {
1505
1505
  }
1506
1506
  }
1507
1507
  }
1508
- function tr(e, t = !1) {
1508
+ function nr(e, t = !1) {
1509
1509
  var n = e.first;
1510
1510
  for (e.first = e.last = null; n !== null; ) {
1511
1511
  const i = n.ac;
@@ -1528,7 +1528,7 @@ function q(e, t = !0) {
1528
1528
  e.nodes.start,
1529
1529
  /** @type {TemplateNode} */
1530
1530
  e.nodes.end
1531
- ), n = !0), tr(e, t && !n), Yt(e, 0), D(e, Pe);
1531
+ ), n = !0), nr(e, t && !n), Yt(e, 0), D(e, Le);
1532
1532
  var r = e.nodes && e.nodes.t;
1533
1533
  if (r !== null)
1534
1534
  for (const s of r)
@@ -1599,9 +1599,9 @@ function ii(e, t) {
1599
1599
  t.append(n), n = i;
1600
1600
  }
1601
1601
  }
1602
- let sn = !1, Ue = !1;
1602
+ let on = !1, Ge = !1;
1603
1603
  function hr(e) {
1604
- Ue = e;
1604
+ Ge = e;
1605
1605
  }
1606
1606
  let y = null, _e = !1;
1607
1607
  function fe(e) {
@@ -1626,7 +1626,7 @@ function vr(e) {
1626
1626
  function li() {
1627
1627
  return ++oi;
1628
1628
  }
1629
- function Ut(e) {
1629
+ function Gt(e) {
1630
1630
  var t = e.f;
1631
1631
  if ((t & F) !== 0)
1632
1632
  return !0;
@@ -1636,7 +1636,7 @@ function Ut(e) {
1636
1636
  e.deps
1637
1637
  ), r = n.length, i = 0; i < r; i++) {
1638
1638
  var s = n[i];
1639
- if (Ut(
1639
+ if (Gt(
1640
1640
  /** @type {Derived} */
1641
1641
  s
1642
1642
  ) && Wr(
@@ -1675,13 +1675,13 @@ function ui(e) {
1675
1675
  e.ac.abort(et);
1676
1676
  }), e.ac = null);
1677
1677
  try {
1678
- e.f |= An;
1678
+ e.f |= Mn;
1679
1679
  var d = (
1680
1680
  /** @type {Function} */
1681
1681
  e.fn
1682
1682
  ), c = d();
1683
1683
  e.f |= ht;
1684
- var v = e.deps, _ = P?.is_fork;
1684
+ var v = e.deps, _ = L?.is_fork;
1685
1685
  if (X !== null) {
1686
1686
  var h;
1687
1687
  if (_ || Yt(e, Z), v !== null && Z > 0)
@@ -1689,7 +1689,7 @@ function ui(e) {
1689
1689
  v[Z + h] = X[h];
1690
1690
  else
1691
1691
  e.deps = v = X;
1692
- if (Qn() && (e.f & le) !== 0)
1692
+ if (er() && (e.f & le) !== 0)
1693
1693
  for (h = Z; h < v.length; h++)
1694
1694
  ((w = v[h]).reactions ?? (w.reactions = [])).push(e);
1695
1695
  } else !_ && v !== null && Z < v.length && (Yt(e, Z), v.length = Z);
@@ -1715,10 +1715,10 @@ function ui(e) {
1715
1715
  } catch (p) {
1716
1716
  return Rr(p);
1717
1717
  } finally {
1718
- e.f ^= An, X = t, Z = n, ne = r, y = i, ue = s, Mt(o), _e = u, at = l;
1718
+ e.f ^= Mn, X = t, Z = n, ne = r, y = i, ue = s, Mt(o), _e = u, at = l;
1719
1719
  }
1720
1720
  }
1721
- function Ps(e, t) {
1721
+ function Ls(e, t) {
1722
1722
  let n = t.reactions;
1723
1723
  if (n !== null) {
1724
1724
  var r = Mi.call(n, e);
@@ -1735,39 +1735,39 @@ function Ps(e, t) {
1735
1735
  /** @type {Derived} */
1736
1736
  t
1737
1737
  );
1738
- (s.f & le) !== 0 && (s.f ^= le, s.f &= ~dt), qn(s), ms(s), Yt(s, 0);
1738
+ (s.f & le) !== 0 && (s.f ^= le, s.f &= ~dt), Un(s), ms(s), Yt(s, 0);
1739
1739
  }
1740
1740
  }
1741
1741
  function Yt(e, t) {
1742
1742
  var n = e.deps;
1743
1743
  if (n !== null)
1744
1744
  for (var r = t; r < n.length; r++)
1745
- Ps(e, n[r]);
1745
+ Ls(e, n[r]);
1746
1746
  }
1747
1747
  function Rt(e) {
1748
1748
  var t = e.f;
1749
- if ((t & Pe) === 0) {
1749
+ if ((t & Le) === 0) {
1750
1750
  D(e, z);
1751
- var n = E, r = sn;
1752
- E = e, sn = !0;
1751
+ var n = E, r = on;
1752
+ E = e, on = !0;
1753
1753
  try {
1754
- (t & (Ze | Wn)) !== 0 ? As(e) : tr(e), ei(e);
1754
+ (t & (Ze | Vn)) !== 0 ? As(e) : nr(e), ei(e);
1755
1755
  var i = ui(e);
1756
1756
  e.teardown = typeof i == "function" ? i : null, e.wv = oi;
1757
1757
  var s;
1758
- kn && rs && (e.f & F) !== 0 && e.deps;
1758
+ Tn && rs && (e.f & F) !== 0 && e.deps;
1759
1759
  } finally {
1760
- sn = r, E = n;
1760
+ on = r, E = n;
1761
1761
  }
1762
1762
  }
1763
1763
  }
1764
1764
  function x(e) {
1765
1765
  var t = e.f, n = (t & H) !== 0;
1766
1766
  if (y !== null && !_e) {
1767
- var r = E !== null && (E.f & Pe) !== 0;
1767
+ var r = E !== null && (E.f & Le) !== 0;
1768
1768
  if (!r && (ue === null || !Tt.call(ue, e))) {
1769
1769
  var i = y.deps;
1770
- if ((y.f & An) !== 0)
1770
+ if ((y.f & Mn) !== 0)
1771
1771
  e.rv < nt && (e.rv = nt, X === null && i !== null && i[Z] === e ? Z++ : X === null ? X = [e] : X.push(e));
1772
1772
  else {
1773
1773
  (y.deps ?? (y.deps = [])).push(e);
@@ -1776,19 +1776,19 @@ function x(e) {
1776
1776
  }
1777
1777
  }
1778
1778
  }
1779
- if (Ue && Xe.has(e))
1779
+ if (Ge && Xe.has(e))
1780
1780
  return Xe.get(e);
1781
1781
  if (n) {
1782
1782
  var o = (
1783
1783
  /** @type {Derived} */
1784
1784
  e
1785
1785
  );
1786
- if (Ue) {
1786
+ if (Ge) {
1787
1787
  var u = o.v;
1788
- return ((o.f & z) === 0 && o.reactions !== null || ci(o)) && (u = Un(o)), Xe.set(o, u), u;
1788
+ return ((o.f & z) === 0 && o.reactions !== null || ci(o)) && (u = Zn(o)), Xe.set(o, u), u;
1789
1789
  }
1790
- var l = (o.f & le) === 0 && !_e && y !== null && (sn || (y.f & le) !== 0), f = (o.f & ht) === 0;
1791
- Ut(o) && (l && (o.f |= le), Wr(o)), l && !f && (Vr(o), fi(o));
1790
+ var l = (o.f & le) === 0 && !_e && y !== null && (on || (y.f & le) !== 0), f = (o.f & ht) === 0;
1791
+ Gt(o) && (l && (o.f |= le), Wr(o)), l && !f && (Vr(o), fi(o));
1792
1792
  }
1793
1793
  if (ve?.has(e))
1794
1794
  return ve.get(e);
@@ -1826,14 +1826,14 @@ function mt(e) {
1826
1826
  _e = t;
1827
1827
  }
1828
1828
  }
1829
- const rt = /* @__PURE__ */ Symbol("events"), di = /* @__PURE__ */ new Set(), Fn = /* @__PURE__ */ new Set();
1830
- function fn(e, t, n) {
1829
+ const rt = /* @__PURE__ */ Symbol("events"), di = /* @__PURE__ */ new Set(), Hn = /* @__PURE__ */ new Set();
1830
+ function cn(e, t, n) {
1831
1831
  (t[rt] ?? (t[rt] = {}))[e] = n;
1832
1832
  }
1833
- function nr(e) {
1833
+ function rr(e) {
1834
1834
  for (var t = 0; t < e.length; t++)
1835
1835
  di.add(e[t]);
1836
- for (var n of Fn)
1836
+ for (var n of Hn)
1837
1837
  n(e);
1838
1838
  }
1839
1839
  let _r = null;
@@ -1861,7 +1861,7 @@ function pr(e) {
1861
1861
  }
1862
1862
  if (s = /** @type {Element} */
1863
1863
  i[o] || e.target, s !== t) {
1864
- an(e, "currentTarget", {
1864
+ un(e, "currentTarget", {
1865
1865
  configurable: !0,
1866
1866
  get() {
1867
1867
  return s || n;
@@ -1898,7 +1898,7 @@ function pr(e) {
1898
1898
  }
1899
1899
  }
1900
1900
  }
1901
- const Ls = (
1901
+ const Ps = (
1902
1902
  // We gotta write it like this because after downleveling the pure comment may end up in the wrong location
1903
1903
  globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", {
1904
1904
  /** @param {string} html */
@@ -1908,11 +1908,11 @@ const Ls = (
1908
1908
  function Ds(e) {
1909
1909
  return (
1910
1910
  /** @type {string} */
1911
- Ls?.createHTML(e) ?? e
1911
+ Ps?.createHTML(e) ?? e
1912
1912
  );
1913
1913
  }
1914
1914
  function hi(e) {
1915
- var t = Kn("template");
1915
+ var t = Jn("template");
1916
1916
  return t.innerHTML = Ds(e.replaceAll("<!>", "<!---->")), t.content;
1917
1917
  }
1918
1918
  function wt(e, t) {
@@ -1929,7 +1929,7 @@ function Je(e, t) {
1929
1929
  if (I)
1930
1930
  return wt(C, null), C;
1931
1931
  i === void 0 && (i = hi(s ? e : "<!>" + e), n || (i = /** @type {TemplateNode} */
1932
- /* @__PURE__ */ Ge(i)));
1932
+ /* @__PURE__ */ Ue(i)));
1933
1933
  var o = (
1934
1934
  /** @type {TemplateNode} */
1935
1935
  r || qr ? document.importNode(i, !0) : i.cloneNode(!0)
@@ -1937,7 +1937,7 @@ function Je(e, t) {
1937
1937
  if (n) {
1938
1938
  var u = (
1939
1939
  /** @type {TemplateNode} */
1940
- /* @__PURE__ */ Ge(o)
1940
+ /* @__PURE__ */ Ue(o)
1941
1941
  ), l = (
1942
1942
  /** @type {TemplateNode} */
1943
1943
  o.lastChild
@@ -1960,10 +1960,10 @@ function js(e, t, n = "svg") {
1960
1960
  hi(i)
1961
1961
  ), u = (
1962
1962
  /** @type {Element} */
1963
- /* @__PURE__ */ Ge(o)
1963
+ /* @__PURE__ */ Ue(o)
1964
1964
  );
1965
1965
  s = /** @type {Element} */
1966
- /* @__PURE__ */ Ge(u);
1966
+ /* @__PURE__ */ Ue(u);
1967
1967
  }
1968
1968
  var l = (
1969
1969
  /** @type {TemplateNode} */
@@ -1973,7 +1973,7 @@ function js(e, t, n = "svg") {
1973
1973
  };
1974
1974
  }
1975
1975
  // @__NO_SIDE_EFFECTS__
1976
- function rr(e, t) {
1976
+ function ir(e, t) {
1977
1977
  return /* @__PURE__ */ js(e, t, "svg");
1978
1978
  }
1979
1979
  function oe(e, t) {
@@ -1982,7 +1982,7 @@ function oe(e, t) {
1982
1982
  /** @type {Effect & { nodes: EffectNodes }} */
1983
1983
  E
1984
1984
  );
1985
- ((n.f & ht) === 0 || n.nodes.end === null) && (n.nodes.end = C), Xn();
1985
+ ((n.f & ht) === 0 || n.nodes.end === null) && (n.nodes.end = C), qn();
1986
1986
  return;
1987
1987
  }
1988
1988
  e !== null && e.before(
@@ -2002,10 +2002,10 @@ function _i(e, t) {
2002
2002
  return pi(e, t);
2003
2003
  }
2004
2004
  function Fs(e, t) {
2005
- zn(), t.intro = t.intro ?? !1;
2005
+ Fn(), t.intro = t.intro ?? !1;
2006
2006
  const n = t.target, r = I, i = C;
2007
2007
  try {
2008
- for (var s = /* @__PURE__ */ Ge(n); s && (s.nodeType !== _n || /** @type {Comment} */
2008
+ for (var s = /* @__PURE__ */ Ue(n); s && (s.nodeType !== pn || /** @type {Comment} */
2009
2009
  s.data !== $r); )
2010
2010
  s = /* @__PURE__ */ De(s);
2011
2011
  if (!s)
@@ -2021,14 +2021,14 @@ function Fs(e, t) {
2021
2021
  if (o instanceof Error && o.message.split(`
2022
2022
  `).some((u) => u.startsWith("https://svelte.dev/e/")))
2023
2023
  throw o;
2024
- return o !== kt && console.warn("Failed to hydrate: ", o), t.recover === !1 && qi(), zn(), ys(n), _t(!1), _i(e, t);
2024
+ return o !== kt && console.warn("Failed to hydrate: ", o), t.recover === !1 && qi(), Fn(), ys(n), _t(!1), _i(e, t);
2025
2025
  } finally {
2026
2026
  _t(r), ge(i);
2027
2027
  }
2028
2028
  }
2029
- const en = /* @__PURE__ */ new Map();
2029
+ const tn = /* @__PURE__ */ new Map();
2030
2030
  function pi(e, { target: t, anchor: n, props: r = {}, events: i, context: s, intro: o = !0, transformError: u }) {
2031
- zn();
2031
+ Fn();
2032
2032
  var l = void 0, f = Is(() => {
2033
2033
  var d = n ?? t.appendChild(qe());
2034
2034
  fs(
@@ -2048,9 +2048,9 @@ function pi(e, { target: t, anchor: n, props: r = {}, events: i, context: s, int
2048
2048
  /** @type {TemplateNode} */
2049
2049
  _,
2050
2050
  null
2051
- ), l = e(_, r) || {}, I && (E.nodes.end = C, C === null || C.nodeType !== _n || /** @type {Comment} */
2051
+ ), l = e(_, r) || {}, I && (E.nodes.end = C, C === null || C.nodeType !== pn || /** @type {Comment} */
2052
2052
  C.data !== Er))
2053
- throw pn(), kt;
2053
+ throw gn(), kt;
2054
2054
  qt();
2055
2055
  },
2056
2056
  u
@@ -2061,38 +2061,38 @@ function pi(e, { target: t, anchor: n, props: r = {}, events: i, context: s, int
2061
2061
  if (!c.has(w)) {
2062
2062
  c.add(w);
2063
2063
  var p = zs(w);
2064
- for (const U of [t, document]) {
2065
- var S = en.get(U);
2066
- S === void 0 && (S = /* @__PURE__ */ new Map(), en.set(U, S));
2064
+ for (const G of [t, document]) {
2065
+ var S = tn.get(G);
2066
+ S === void 0 && (S = /* @__PURE__ */ new Map(), tn.set(G, S));
2067
2067
  var j = S.get(w);
2068
- j === void 0 ? (U.addEventListener(w, pr, { passive: p }), S.set(w, 1)) : S.set(w, j + 1);
2068
+ j === void 0 ? (G.addEventListener(w, pr, { passive: p }), S.set(w, 1)) : S.set(w, j + 1);
2069
2069
  }
2070
2070
  }
2071
2071
  }
2072
2072
  };
2073
- return v(Ni(di)), Fn.add(v), () => {
2073
+ return v(Ni(di)), Hn.add(v), () => {
2074
2074
  for (var _ of c)
2075
2075
  for (const p of [t, document]) {
2076
2076
  var h = (
2077
2077
  /** @type {Map<string, number>} */
2078
- en.get(p)
2078
+ tn.get(p)
2079
2079
  ), w = (
2080
2080
  /** @type {number} */
2081
2081
  h.get(_)
2082
2082
  );
2083
- --w == 0 ? (p.removeEventListener(_, pr), h.delete(_), h.size === 0 && en.delete(p)) : h.set(_, w);
2083
+ --w == 0 ? (p.removeEventListener(_, pr), h.delete(_), h.size === 0 && tn.delete(p)) : h.set(_, w);
2084
2084
  }
2085
- Fn.delete(v), d !== n && d.parentNode?.removeChild(d);
2085
+ Hn.delete(v), d !== n && d.parentNode?.removeChild(d);
2086
2086
  };
2087
2087
  });
2088
- return Hn.set(l, f), l;
2088
+ return Yn.set(l, f), l;
2089
2089
  }
2090
- let Hn = /* @__PURE__ */ new WeakMap();
2090
+ let Yn = /* @__PURE__ */ new WeakMap();
2091
2091
  function Hs(e, t) {
2092
- const n = Hn.get(e);
2093
- return n ? (Hn.delete(e), n(t)) : Promise.resolve();
2092
+ const n = Yn.get(e);
2093
+ return n ? (Yn.delete(e), n(t)) : Promise.resolve();
2094
2094
  }
2095
- var he, $e, Q, lt, Vt, Bt, hn;
2095
+ var he, $e, Q, lt, Vt, Bt, vn;
2096
2096
  class gi {
2097
2097
  /**
2098
2098
  * @param {TemplateNode} anchor
@@ -2172,7 +2172,7 @@ class gi {
2172
2172
  /**
2173
2173
  * @param {Batch} batch
2174
2174
  */
2175
- b(this, hn, (t) => {
2175
+ b(this, vn, (t) => {
2176
2176
  a(this, he).delete(t);
2177
2177
  const n = Array.from(a(this, he).values());
2178
2178
  for (const [r, i] of a(this, Q))
@@ -2188,7 +2188,7 @@ class gi {
2188
2188
  ensure(t, n) {
2189
2189
  var r = (
2190
2190
  /** @type {Batch} */
2191
- P
2191
+ L
2192
2192
  ), i = $s();
2193
2193
  if (n && !a(this, $e).has(t) && !a(this, Q).has(t))
2194
2194
  if (i) {
@@ -2207,21 +2207,21 @@ class gi {
2207
2207
  u === t ? r.unskip_effect(l) : r.skip_effect(l);
2208
2208
  for (const [u, l] of a(this, Q))
2209
2209
  u === t ? r.unskip_effect(l.effect) : r.skip_effect(l.effect);
2210
- r.oncommit(a(this, Bt)), r.ondiscard(a(this, hn));
2210
+ r.oncommit(a(this, Bt)), r.ondiscard(a(this, vn));
2211
2211
  } else
2212
2212
  I && (this.anchor = C), a(this, Bt).call(this, r);
2213
2213
  }
2214
2214
  }
2215
- he = new WeakMap(), $e = new WeakMap(), Q = new WeakMap(), lt = new WeakMap(), Vt = new WeakMap(), Bt = new WeakMap(), hn = new WeakMap();
2216
- function Cn(e, t, ...n) {
2215
+ he = new WeakMap(), $e = new WeakMap(), Q = new WeakMap(), lt = new WeakMap(), Vt = new WeakMap(), Bt = new WeakMap(), vn = new WeakMap();
2216
+ function In(e, t, ...n) {
2217
2217
  var r = new gi(e);
2218
- er(() => {
2218
+ tr(() => {
2219
2219
  const i = t() ?? null;
2220
2220
  r.ensure(i, i && ((s) => i(s, ...n)));
2221
2221
  }, ct);
2222
2222
  }
2223
2223
  function mi(e) {
2224
- W === null && Bn(), Kr(() => {
2224
+ W === null && Xn(), Kr(() => {
2225
2225
  const t = mt(e);
2226
2226
  if (typeof t == "function") return (
2227
2227
  /** @type {() => void} */
@@ -2230,14 +2230,14 @@ function mi(e) {
2230
2230
  });
2231
2231
  }
2232
2232
  function Ys(e) {
2233
- W === null && Bn(), mi(() => () => mt(e));
2233
+ W === null && Xn(), mi(() => () => mt(e));
2234
2234
  }
2235
2235
  function Ws(e, t, { bubbles: n = !1, cancelable: r = !1 } = {}) {
2236
2236
  return new CustomEvent(e, { detail: t, bubbles: n, cancelable: r });
2237
2237
  }
2238
2238
  function Vs() {
2239
2239
  const e = W;
2240
- return e === null && Bn(), (t, n, r) => {
2240
+ return e === null && Xn(), (t, n, r) => {
2241
2241
  const i = (
2242
2242
  /** @type {Record<string, Function | Function[]>} */
2243
2243
  e.s.$$events?.[
@@ -2259,9 +2259,9 @@ function Vs() {
2259
2259
  return !0;
2260
2260
  };
2261
2261
  }
2262
- function cn(e, t, n = !1) {
2262
+ function dn(e, t, n = !1) {
2263
2263
  var r;
2264
- I && (r = C, Xn());
2264
+ I && (r = C, qn());
2265
2265
  var i = new gi(e), s = n ? ct : 0;
2266
2266
  function o(u, l) {
2267
2267
  if (I) {
@@ -2277,14 +2277,14 @@ function cn(e, t, n = !1) {
2277
2277
  }
2278
2278
  i.ensure(u, l);
2279
2279
  }
2280
- er(() => {
2280
+ tr(() => {
2281
2281
  var u = !1;
2282
2282
  t((l, f = 0) => {
2283
2283
  u = !0, o(f, l);
2284
2284
  }), u || o(-1, null);
2285
2285
  }, s);
2286
2286
  }
2287
- function mn(e, t) {
2287
+ function wn(e, t) {
2288
2288
  ks(() => {
2289
2289
  var n = e.getRootNode(), r = (
2290
2290
  /** @type {ShadowRoot} */
@@ -2298,7 +2298,7 @@ function mn(e, t) {
2298
2298
  )
2299
2299
  );
2300
2300
  if (!r.querySelector("#" + t.hash)) {
2301
- const i = Kn("style");
2301
+ const i = Jn("style");
2302
2302
  i.id = t.hash, i.textContent = t.code, r.appendChild(i);
2303
2303
  }
2304
2304
  });
@@ -2334,7 +2334,7 @@ function ft(e, t, n, r, i, s) {
2334
2334
  }
2335
2335
  return s;
2336
2336
  }
2337
- function Gs(e, t, n, r) {
2337
+ function Us(e, t, n, r) {
2338
2338
  var i = e.__style;
2339
2339
  if (I || i !== t) {
2340
2340
  var s = qs(t);
@@ -2342,8 +2342,8 @@ function Gs(e, t, n, r) {
2342
2342
  }
2343
2343
  return r;
2344
2344
  }
2345
- const Us = /* @__PURE__ */ Symbol("is custom element"), Zs = /* @__PURE__ */ Symbol("is html"), Ks = Hi ? "link" : "LINK";
2346
- function Yn(e, t, n, r) {
2345
+ const Gs = /* @__PURE__ */ Symbol("is custom element"), Zs = /* @__PURE__ */ Symbol("is html"), Ks = Hi ? "link" : "LINK";
2346
+ function Wn(e, t, n, r) {
2347
2347
  var i = Js(e);
2348
2348
  I && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Ks) || i[t] !== (i[t] = n) && (t === "loading" && (e[Fi] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && Qs(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
2349
2349
  }
@@ -2352,7 +2352,7 @@ function Js(e) {
2352
2352
  /** @type {Record<string | symbol, unknown>} **/
2353
2353
  // @ts-expect-error
2354
2354
  e.__attributes ?? (e.__attributes = {
2355
- [Us]: e.nodeName.includes("-"),
2355
+ [Gs]: e.nodeName.includes("-"),
2356
2356
  [Zs]: e.namespaceURI === Sr
2357
2357
  })
2358
2358
  );
@@ -2397,7 +2397,7 @@ function M(e, t, n, r) {
2397
2397
  const h = _ ? x(d) : v;
2398
2398
  return A(d, h), f = !0, i !== void 0 && (i = h), v;
2399
2399
  }
2400
- return Ue && f || (c.f & Pe) !== 0 ? d.v : x(d);
2400
+ return Ge && f || (c.f & Le) !== 0 ? d.v : x(d);
2401
2401
  })
2402
2402
  );
2403
2403
  }
@@ -2444,7 +2444,7 @@ class to {
2444
2444
  transformError: t.transformError
2445
2445
  })), (!t?.props?.$$host || t.sync === !1) && T(), m(this, Ne, i.$$events);
2446
2446
  for (const s of Object.keys(a(this, re)))
2447
- s === "$set" || s === "$destroy" || s === "$on" || an(this, s, {
2447
+ s === "$set" || s === "$destroy" || s === "$on" || un(this, s, {
2448
2448
  get() {
2449
2449
  return a(this, re)[s];
2450
2450
  },
@@ -2545,7 +2545,7 @@ typeof HTMLElement == "function" && (bi = class extends HTMLElement {
2545
2545
  if (this.$$cn = !0, !this.$$c) {
2546
2546
  let t = function(i) {
2547
2547
  return (s) => {
2548
- const o = Kn("slot");
2548
+ const o = Jn("slot");
2549
2549
  i !== "default" && (o.name = i), oe(s, o);
2550
2550
  };
2551
2551
  };
@@ -2556,7 +2556,7 @@ typeof HTMLElement == "function" && (bi = class extends HTMLElement {
2556
2556
  i in r && (i === "default" && !this.$$d.children ? (this.$$d.children = t(i), n.default = !0) : n[i] = t(i));
2557
2557
  for (const i of this.attributes) {
2558
2558
  const s = this.$$g_p(i.name);
2559
- s in this.$$d || (this.$$d[s] = on(s, i.value, this.$$p_d, "toProp"));
2559
+ s in this.$$d || (this.$$d[s] = ln(s, i.value, this.$$p_d, "toProp"));
2560
2560
  }
2561
2561
  for (const i in this.$$p_d)
2562
2562
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -2571,10 +2571,10 @@ typeof HTMLElement == "function" && (bi = class extends HTMLElement {
2571
2571
  }), this.$$me = Cs(() => {
2572
2572
  Qr(() => {
2573
2573
  this.$$r = !0;
2574
- for (const i of ln(this.$$c)) {
2574
+ for (const i of an(this.$$c)) {
2575
2575
  if (!this.$$p_d[i]?.reflect) continue;
2576
2576
  this.$$d[i] = this.$$c[i];
2577
- const s = on(
2577
+ const s = ln(
2578
2578
  i,
2579
2579
  this.$$d[i],
2580
2580
  this.$$p_d,
@@ -2601,7 +2601,7 @@ typeof HTMLElement == "function" && (bi = class extends HTMLElement {
2601
2601
  * @param {string} newValue
2602
2602
  */
2603
2603
  attributeChangedCallback(t, n, r) {
2604
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = on(t, r, this.$$p_d, "toProp"), this.$$c?.$set({ [t]: this.$$d[t] }));
2604
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = ln(t, r, this.$$p_d, "toProp"), this.$$c?.$set({ [t]: this.$$d[t] }));
2605
2605
  }
2606
2606
  disconnectedCallback() {
2607
2607
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -2612,12 +2612,12 @@ typeof HTMLElement == "function" && (bi = class extends HTMLElement {
2612
2612
  * @param {string} attribute_name
2613
2613
  */
2614
2614
  $$g_p(t) {
2615
- return ln(this.$$p_d).find(
2615
+ return an(this.$$p_d).find(
2616
2616
  (n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
2617
2617
  ) || t;
2618
2618
  }
2619
2619
  });
2620
- function on(e, t, n, r) {
2620
+ function ln(e, t, n, r) {
2621
2621
  const i = n[e]?.type;
2622
2622
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
2623
2623
  return t;
@@ -2656,24 +2656,24 @@ function no(e) {
2656
2656
  ] = !0;
2657
2657
  }), t;
2658
2658
  }
2659
- function wn(e, t, n, r, i, s) {
2659
+ function bn(e, t, n, r, i, s) {
2660
2660
  let o = class extends bi {
2661
2661
  constructor() {
2662
2662
  super(e, n, i), this.$$p_d = t;
2663
2663
  }
2664
2664
  static get observedAttributes() {
2665
- return ln(t).map(
2665
+ return an(t).map(
2666
2666
  (u) => (t[u].attribute || u).toLowerCase()
2667
2667
  );
2668
2668
  }
2669
2669
  };
2670
- return ln(t).forEach((u) => {
2671
- an(o.prototype, u, {
2670
+ return an(t).forEach((u) => {
2671
+ un(o.prototype, u, {
2672
2672
  get() {
2673
2673
  return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
2674
2674
  },
2675
2675
  set(l) {
2676
- l = on(u, l, t), this.$$d[u] = l;
2676
+ l = ln(u, l, t), this.$$d[u] = l;
2677
2677
  var f = this.$$c;
2678
2678
  if (f) {
2679
2679
  var d = pt(f, u)?.get;
@@ -2682,7 +2682,7 @@ function wn(e, t, n, r, i, s) {
2682
2682
  }
2683
2683
  });
2684
2684
  }), r.forEach((u) => {
2685
- an(o.prototype, u, {
2685
+ un(o.prototype, u, {
2686
2686
  get() {
2687
2687
  return this.$$c?.[u];
2688
2688
  }
@@ -2696,7 +2696,7 @@ const io = {
2696
2696
  code: ".pie-panel-resize-handle.svelte-kjvr2a {position:absolute;right:0;bottom:0;width:12px;height:12px;display:inline-flex;align-items:center;justify-content:center;cursor:nwse-resize;opacity:0.82;z-index:2;}.pie-panel-resize-handle.svelte-kjvr2a:hover {opacity:1;}.pie-panel-resize-icon.svelte-kjvr2a {width:100%;height:100%;color:color-mix(in srgb, var(--color-base-content, #334155) 30%, transparent);}"
2697
2697
  };
2698
2698
  function yi(e, t) {
2699
- Xt(t, !0), mn(e, io);
2699
+ Xt(t, !0), wn(e, io);
2700
2700
  let n = M(t, "onPointerDown"), r = M(t, "handleClass", 7, "pie-panel-resize-handle"), i = M(t, "iconClass", 7, "pie-panel-resize-icon");
2701
2701
  var s = {
2702
2702
  get onPointerDown() {
@@ -2720,19 +2720,19 @@ function yi(e, t) {
2720
2720
  }, o = ro(), u = se(o);
2721
2721
  return ie(o), Ht(() => {
2722
2722
  ft(o, 1, ut(r()), "svelte-kjvr2a"), ft(u, 0, ut(i()), "svelte-kjvr2a");
2723
- }), fn("mousedown", o, function(...l) {
2723
+ }), cn("mousedown", o, function(...l) {
2724
2724
  n()?.apply(this, l);
2725
2725
  }), oe(e, o), qt(s);
2726
2726
  }
2727
- nr(["mousedown"]);
2728
- wn(yi, { onPointerDown: {}, handleClass: {}, iconClass: {} }, [], [], { mode: "open" });
2729
- var so = /* @__PURE__ */ rr('<svg xmlns="http://www.w3.org/2000/svg" class="pie-window-controls__icon svelte-dx0z4a" width="12" height="12" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 15l7-7 7 7"></path></svg>'), oo = /* @__PURE__ */ rr('<svg xmlns="http://www.w3.org/2000/svg" class="pie-window-controls__icon svelte-dx0z4a" width="12" height="12" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path></svg>'), lo = /* @__PURE__ */ Je('<button><!></button> <button title="Close" aria-label="Close panel"><svg xmlns="http://www.w3.org/2000/svg" class="pie-window-controls__icon svelte-dx0z4a" width="12" height="12" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></button>', 1);
2727
+ rr(["mousedown"]);
2728
+ bn(yi, { onPointerDown: {}, handleClass: {}, iconClass: {} }, [], [], { mode: "open" });
2729
+ var so = /* @__PURE__ */ ir('<svg xmlns="http://www.w3.org/2000/svg" class="pie-window-controls__icon svelte-dx0z4a" width="12" height="12" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 15l7-7 7 7"></path></svg>'), oo = /* @__PURE__ */ ir('<svg xmlns="http://www.w3.org/2000/svg" class="pie-window-controls__icon svelte-dx0z4a" width="12" height="12" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path></svg>'), lo = /* @__PURE__ */ Je('<button><!></button> <button title="Close" aria-label="Close panel"><svg xmlns="http://www.w3.org/2000/svg" class="pie-window-controls__icon svelte-dx0z4a" width="12" height="12" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></button>', 1);
2730
2730
  const ao = {
2731
2731
  hash: "svelte-dx0z4a",
2732
2732
  code: ".pie-window-controls__button.svelte-dx0z4a {display:inline-flex;align-items:center;justify-content:center;width:1.35rem;height:1.35rem;padding:0;border:1px solid rgba(148, 163, 184, 0.7);border-radius:9999px;background:rgba(255, 255, 255, 0.65);color:#334155;cursor:pointer;}.pie-window-controls__button.svelte-dx0z4a:hover {background:rgba(241, 245, 249, 0.95);}.pie-window-controls__button.svelte-dx0z4a:focus-visible {outline:2px solid #3b82f6;outline-offset:1px;}.pie-window-controls__icon.svelte-dx0z4a {display:block;}"
2733
2733
  };
2734
2734
  function $i(e, t) {
2735
- Xt(t, !0), mn(e, ao);
2735
+ Xt(t, !0), wn(e, ao);
2736
2736
  let n = M(t, "minimized", 7, !1), r = M(t, "onToggle"), i = M(t, "onClose"), s = M(t, "buttonClass", 7, "");
2737
2737
  const o = /* @__PURE__ */ Ot(() => (s() || "").trim() || "pie-window-controls__button");
2738
2738
  var u = {
@@ -2760,7 +2760,7 @@ function $i(e, t) {
2760
2760
  set buttonClass(h = "") {
2761
2761
  s(h), T();
2762
2762
  }
2763
- }, l = lo(), f = Zn(l), d = se(f);
2763
+ }, l = lo(), f = Kn(l), d = se(f);
2764
2764
  {
2765
2765
  var c = (h) => {
2766
2766
  var w = so();
@@ -2769,24 +2769,24 @@ function $i(e, t) {
2769
2769
  var w = oo();
2770
2770
  oe(h, w);
2771
2771
  };
2772
- cn(d, (h) => {
2772
+ dn(d, (h) => {
2773
2773
  n() ? h(c) : h(v, -1);
2774
2774
  });
2775
2775
  }
2776
2776
  ie(f);
2777
2777
  var _ = Re(f, 2);
2778
2778
  return Ht(() => {
2779
- ft(f, 1, ut(x(o)), "svelte-dx0z4a"), Yn(f, "title", n() ? "Maximize" : "Minimize"), Yn(f, "aria-label", n() ? "Maximize panel" : "Minimize panel"), ft(_, 1, ut(x(o)), "svelte-dx0z4a");
2780
- }), fn("click", f, function(...h) {
2779
+ ft(f, 1, ut(x(o)), "svelte-dx0z4a"), Wn(f, "title", n() ? "Maximize" : "Minimize"), Wn(f, "aria-label", n() ? "Maximize panel" : "Minimize panel"), ft(_, 1, ut(x(o)), "svelte-dx0z4a");
2780
+ }), cn("click", f, function(...h) {
2781
2781
  r()?.apply(this, h);
2782
- }), fn("click", _, function(...h) {
2782
+ }), cn("click", _, function(...h) {
2783
2783
  i()?.apply(this, h);
2784
2784
  }), oe(e, l), qt(u);
2785
2785
  }
2786
- nr(["click"]);
2787
- wn($i, { minimized: {}, onToggle: {}, onClose: {}, buttonClass: {} }, [], [], { mode: "open" });
2786
+ rr(["click"]);
2787
+ bn($i, { minimized: {}, onToggle: {}, onClose: {}, buttonClass: {} }, [], [], { mode: "open" });
2788
2788
  const uo = 9999, mr = "__pieFloatingPanelZIndex";
2789
- function In() {
2789
+ function kn() {
2790
2790
  const e = globalThis, t = e[mr], r = (typeof t == "number" && Number.isFinite(t) ? t : uo) + 1;
2791
2791
  return e[mr] = r, r;
2792
2792
  }
@@ -2807,15 +2807,15 @@ function co(e) {
2807
2807
  let n = !1, r = !1, i = 0, s = 0, o = 0, u = 0, l = 0, f = 0, d = 0, c = 0;
2808
2808
  const v = (p) => {
2809
2809
  if (!n) return;
2810
- const S = e.getState(), j = p.clientX - i, U = p.clientY - s, ee = Math.max(t, window.innerWidth - S.width - t), Ie = Math.max(t, window.innerHeight - 100 - t);
2810
+ const S = e.getState(), j = p.clientX - i, G = p.clientY - s, ee = Math.max(t, window.innerWidth - S.width - t), Ie = Math.max(t, window.innerHeight - 100 - t);
2811
2811
  e.setState({
2812
2812
  ...S,
2813
2813
  x: Math.max(t, Math.min(o + j, ee)),
2814
- y: Math.max(t, Math.min(u + U, Ie))
2814
+ y: Math.max(t, Math.min(u + G, Ie))
2815
2815
  });
2816
2816
  }, _ = (p) => {
2817
2817
  if (!r) return;
2818
- const S = e.getState(), j = p.clientX - l, U = p.clientY - f, ee = Math.max(
2818
+ const S = e.getState(), j = p.clientX - l, G = p.clientY - f, ee = Math.max(
2819
2819
  e.minWidth,
2820
2820
  window.innerWidth - S.x - t
2821
2821
  ), Ie = Math.max(
@@ -2830,7 +2830,7 @@ function co(e) {
2830
2830
  ),
2831
2831
  height: Math.max(
2832
2832
  e.minHeight,
2833
- Math.min(c + U, Ie)
2833
+ Math.min(c + G, Ie)
2834
2834
  )
2835
2835
  });
2836
2836
  }, h = () => {
@@ -2860,8 +2860,8 @@ const _o = {
2860
2860
  code: ".pie-shared-floating-panel.svelte-tgj5on {position:fixed;display:flex;flex-direction:column;background:var(--color-base-100, #fff);color:var(--color-base-content, #1f2937);border:2px solid var(--color-base-300, #d1d5db);border-radius:8px;box-shadow:0 25px 50px -12px rgba(0, 0, 0, 0.25);overflow:hidden;font-family:var(--pie-font-family, Inter, system-ui, sans-serif);}.pie-shared-floating-panel__header.svelte-tgj5on {padding:8px 16px;display:flex;align-items:center;justify-content:space-between;background:var(--color-base-200, #f3f4f6);cursor:move;user-select:none;border-bottom:1px solid var(--color-base-300, #d1d5db);}.pie-shared-floating-panel__header-main.svelte-tgj5on {display:flex;align-items:center;gap:8px;min-width:0;flex:1;}.pie-shared-floating-panel__header-title-wrap.svelte-tgj5on {display:flex;align-items:center;gap:8px;min-width:0;}.pie-shared-floating-panel__title.svelte-tgj5on {margin:0;font-size:0.95rem;font-weight:700;}.pie-shared-floating-panel__header-controls.svelte-tgj5on {display:flex;gap:4px;}.pie-shared-floating-panel__body.svelte-tgj5on {flex:1;min-height:0;display:flex;flex-direction:column;}"
2861
2861
  };
2862
2862
  function xi(e, t) {
2863
- Xt(t, !0), mn(e, _o);
2864
- let n = M(t, "title"), r = M(t, "ariaLabel", 7, "Drag panel"), i = M(t, "initialSizing"), s = M(t, "minWidth", 7, 320), o = M(t, "minHeight", 7, 260), u = M(t, "defaultMinimized", 7, !1), l = M(t, "onClose"), f = M(t, "className", 7, ""), d = M(t, "bodyClass", 7, ""), c = M(t, "headerClass", 7, ""), v = M(t, "children"), _ = M(t, "icon"), h = M(t, "headerActions"), w = /* @__PURE__ */ Y(16), p = /* @__PURE__ */ Y(16), S = /* @__PURE__ */ Y(420), j = /* @__PURE__ */ Y(480), U = /* @__PURE__ */ Y(Ve(In())), ee = /* @__PURE__ */ Y(Ve(mt(() => u())));
2863
+ Xt(t, !0), wn(e, _o);
2864
+ let n = M(t, "title"), r = M(t, "ariaLabel", 7, "Drag panel"), i = M(t, "initialSizing"), s = M(t, "minWidth", 7, 320), o = M(t, "minHeight", 7, 260), u = M(t, "defaultMinimized", 7, !1), l = M(t, "onClose"), f = M(t, "className", 7, ""), d = M(t, "bodyClass", 7, ""), c = M(t, "headerClass", 7, ""), v = M(t, "children"), _ = M(t, "icon"), h = M(t, "headerActions"), w = /* @__PURE__ */ Y(16), p = /* @__PURE__ */ Y(16), S = /* @__PURE__ */ Y(420), j = /* @__PURE__ */ Y(480), G = /* @__PURE__ */ Y(Ve(kn())), ee = /* @__PURE__ */ Y(Ve(mt(() => u())));
2865
2865
  const Ie = co({
2866
2866
  getState: () => ({
2867
2867
  x: x(w),
@@ -2875,11 +2875,11 @@ function xi(e, t) {
2875
2875
  minWidth: mt(() => s()),
2876
2876
  minHeight: mt(() => o()),
2877
2877
  onFocus: () => {
2878
- A(U, In(), !0);
2878
+ A(G, kn(), !0);
2879
2879
  }
2880
2880
  });
2881
- function bn() {
2882
- A(U, In(), !0);
2881
+ function yn() {
2882
+ A(G, kn(), !0);
2883
2883
  }
2884
2884
  mi(() => {
2885
2885
  const g = fo({ width: window.innerWidth, height: window.innerHeight }, i());
@@ -2967,14 +2967,14 @@ function xi(e, t) {
2967
2967
  set headerActions(g) {
2968
2968
  h(g), T();
2969
2969
  }
2970
- }, ce = vo(), Oe = se(ce), me = se(Oe), ze = se(me), Lt = se(ze);
2971
- Cn(Lt, () => _() ?? tn);
2972
- var Zt = Re(Lt, 2), yn = se(Zt, !0);
2973
- ie(Zt), ie(ze);
2974
- var Kt = Re(ze, 2);
2975
- Cn(Kt, () => h() ?? tn), ie(me);
2976
- var Dt = Re(me, 2), $n = se(Dt);
2977
- $i($n, {
2970
+ }, ce = vo(), Oe = se(ce), me = se(Oe), ze = se(me), Pt = se(ze);
2971
+ In(Pt, () => _() ?? nn);
2972
+ var Kt = Re(Pt, 2), $n = se(Kt, !0);
2973
+ ie(Kt), ie(ze);
2974
+ var Jt = Re(ze, 2);
2975
+ In(Jt, () => h() ?? nn), ie(me);
2976
+ var Dt = Re(me, 2), xn = se(Dt);
2977
+ $i(xn, {
2978
2978
  get minimized() {
2979
2979
  return x(ee);
2980
2980
  },
@@ -2985,26 +2985,26 @@ function xi(e, t) {
2985
2985
  }), ie(Dt), ie(Oe);
2986
2986
  var Qe = Re(Oe, 2);
2987
2987
  {
2988
- var xn = (g) => {
2989
- var or = ho(), Jt = Zn(or), Ei = se(Jt);
2990
- Cn(Ei, () => v() ?? tn), ie(Jt);
2991
- var Si = Re(Jt, 2);
2988
+ var En = (g) => {
2989
+ var or = ho(), Qt = Kn(or), Ei = se(Qt);
2990
+ In(Ei, () => v() ?? nn), ie(Qt);
2991
+ var Si = Re(Qt, 2);
2992
2992
  yi(Si, {
2993
2993
  onPointerDown: (Ci) => Ie.startResize(Ci)
2994
- }), Ht(() => ft(Jt, 1, ut(x(je)), "svelte-tgj5on")), oe(g, or);
2994
+ }), Ht(() => ft(Qt, 1, ut(x(je)), "svelte-tgj5on")), oe(g, or);
2995
2995
  };
2996
- cn(Qe, (g) => {
2997
- x(ee) || g(xn);
2996
+ dn(Qe, (g) => {
2997
+ x(ee) || g(En);
2998
2998
  });
2999
2999
  }
3000
3000
  return ie(ce), Ht(() => {
3001
- ft(ce, 1, ut(x($)), "svelte-tgj5on"), Gs(ce, `left: ${x(w)}px; top: ${x(p)}px; width: ${x(S)}px; z-index: ${x(U)}; ${x(ee) ? "height: auto;" : `height: ${x(j)}px;`}`), ft(Oe, 1, ut(x(te)), "svelte-tgj5on"), Yn(Oe, "aria-label", r()), vi(yn, n());
3002
- }), fn("mousedown", Oe, (g) => {
3003
- bn(), Ie.startDrag(g);
3001
+ ft(ce, 1, ut(x($)), "svelte-tgj5on"), Us(ce, `left: ${x(w)}px; top: ${x(p)}px; width: ${x(S)}px; z-index: ${x(G)}; ${x(ee) ? "height: auto;" : `height: ${x(j)}px;`}`), ft(Oe, 1, ut(x(te)), "svelte-tgj5on"), Wn(Oe, "aria-label", r()), vi($n, n());
3002
+ }), cn("mousedown", Oe, (g) => {
3003
+ yn(), Ie.startDrag(g);
3004
3004
  }), oe(e, ce), qt(k);
3005
3005
  }
3006
- nr(["mousedown"]);
3007
- wn(
3006
+ rr(["mousedown"]);
3007
+ bn(
3008
3008
  xi,
3009
3009
  {
3010
3010
  title: {},
@@ -3033,15 +3033,17 @@ new class extends Error {
3033
3033
  }
3034
3034
  }();
3035
3035
  const mo = /* @__PURE__ */ new Set(), wo = /* @__PURE__ */ new Set();
3036
- function ir(e) {
3036
+ function Zt(e) {
3037
3037
  for (var t = 0; t < e.length; t++)
3038
3038
  mo.add(e[t]);
3039
3039
  for (var n of wo)
3040
3040
  n(e);
3041
3041
  }
3042
- ir(["click"]);
3043
- ir(["mousedown"]);
3044
- ir(["mousedown"]);
3042
+ Zt(["click"]);
3043
+ Zt(["mousedown"]);
3044
+ Zt(["mousedown"]);
3045
+ Zt(["click"]);
3046
+ Zt(["click"]);
3045
3047
  function bo(e, t) {
3046
3048
  return (e || void 0) === (t || void 0);
3047
3049
  }
@@ -3055,13 +3057,13 @@ function $o(e, t, n) {
3055
3057
  attemptId: n
3056
3058
  }) || null;
3057
3059
  }
3058
- var xo = /* @__PURE__ */ Je('<div class="pie-section-player-tools-session-debugger__alert pie-section-player-tools-session-debugger__alert--warning"><svg xmlns="http://www.w3.org/2000/svg" class="pie-section-player-tools-session-debugger__icon-md" fill="none" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01M5.07 19h13.86c1.54 0 2.5-1.67 1.73-3L13.73 4c-.77-1.33-2.69-1.33-3.46 0L3.34 16c-.77 1.33.19 3 1.73 3z"></path></svg> <span class="pie-section-player-tools-session-debugger__text-xs">Section controller not available for this section yet.</span></div>'), Eo = /* @__PURE__ */ Je('<div class="pie-section-player-tools-session-debugger__alert pie-section-player-tools-session-debugger__alert--info"><svg xmlns="http://www.w3.org/2000/svg" class="pie-section-player-tools-session-debugger__icon-md" fill="none" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span class="pie-section-player-tools-session-debugger__text-xs">No section session data yet. Interact with the questions to see updates.</span></div>'), So = /* @__PURE__ */ Je('<!> <div class="pie-section-player-tools-session-debugger__card"><div class="pie-section-player-tools-session-debugger__card-title">Item Sessions Snapshot</div> <pre class="pie-section-player-tools-session-debugger__card-pre"> </pre></div>', 1), Co = /* @__PURE__ */ Je('<div class="pie-section-player-tools-session-debugger__content"><div class="pie-section-player-tools-session-debugger__section-intro"><div class="pie-section-player-tools-session-debugger__heading">PIE Session Data (Persistent)</div></div> <!></div>'), Io = /* @__PURE__ */ rr('<svg xmlns="http://www.w3.org/2000/svg" class="pie-section-player-tools-session-debugger__icon-sm svelte-10oyp9b" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg>');
3060
+ var xo = /* @__PURE__ */ Je('<div class="pie-section-player-tools-session-debugger__alert pie-section-player-tools-session-debugger__alert--warning"><svg xmlns="http://www.w3.org/2000/svg" class="pie-section-player-tools-session-debugger__icon-md" fill="none" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01M5.07 19h13.86c1.54 0 2.5-1.67 1.73-3L13.73 4c-.77-1.33-2.69-1.33-3.46 0L3.34 16c-.77 1.33.19 3 1.73 3z"></path></svg> <span class="pie-section-player-tools-session-debugger__text-xs">Section controller not available for this section yet.</span></div>'), Eo = /* @__PURE__ */ Je('<div class="pie-section-player-tools-session-debugger__alert pie-section-player-tools-session-debugger__alert--info"><svg xmlns="http://www.w3.org/2000/svg" class="pie-section-player-tools-session-debugger__icon-md" fill="none" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span class="pie-section-player-tools-session-debugger__text-xs">No section session data yet. Interact with the questions to see updates.</span></div>'), So = /* @__PURE__ */ Je('<!> <div class="pie-section-player-tools-session-debugger__card"><div class="pie-section-player-tools-session-debugger__card-title">Item Sessions Snapshot</div> <pre class="pie-section-player-tools-session-debugger__card-pre"> </pre></div>', 1), Co = /* @__PURE__ */ Je('<div class="pie-section-player-tools-session-debugger__content"><div class="pie-section-player-tools-session-debugger__section-intro"><div class="pie-section-player-tools-session-debugger__heading">PIE Session Data (Persistent)</div></div> <!></div>'), Io = /* @__PURE__ */ ir('<svg xmlns="http://www.w3.org/2000/svg" class="pie-section-player-tools-session-debugger__icon-sm svelte-10oyp9b" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg>');
3059
3061
  const ko = {
3060
3062
  hash: "svelte-10oyp9b",
3061
3063
  code: ".pie-section-player-tools-session-debugger__icon-sm.svelte-10oyp9b {width:1rem;height:1rem;}"
3062
3064
  };
3063
3065
  function To(e, t) {
3064
- Xt(t, !0), mn(e, ko);
3066
+ Xt(t, !0), wn(e, ko);
3065
3067
  const n = Vs();
3066
3068
  let r = M(t, "toolkitCoordinator", 7, null), i = M(t, "sectionId", 7, ""), s = M(t, "attemptId", 7, void 0), o = /* @__PURE__ */ Y(Ve({
3067
3069
  currentItemIndex: null,
@@ -3128,7 +3130,7 @@ function To(e, t) {
3128
3130
  function j($) {
3129
3131
  S($);
3130
3132
  }
3131
- function U($) {
3133
+ function G($) {
3132
3134
  S($);
3133
3135
  }
3134
3136
  function ee() {
@@ -3167,7 +3169,7 @@ function To(e, t) {
3167
3169
  }) || null, ce = r()?.subscribeSectionLifecycleEvents?.({
3168
3170
  sectionId: i(),
3169
3171
  attemptId: s(),
3170
- listener: U
3172
+ listener: G
3171
3173
  }) || null;
3172
3174
  u = () => {
3173
3175
  k?.(), ce?.();
@@ -3186,7 +3188,7 @@ function To(e, t) {
3186
3188
  w(), p();
3187
3189
  };
3188
3190
  });
3189
- var bn = {
3191
+ var yn = {
3190
3192
  get toolkitCoordinator() {
3191
3193
  return r();
3192
3194
  },
@@ -3233,20 +3235,20 @@ function To(e, t) {
3233
3235
  var ze = xo();
3234
3236
  oe(me, ze);
3235
3237
  }, Oe = (me) => {
3236
- var ze = So(), Lt = Zn(ze);
3238
+ var ze = So(), Pt = Kn(ze);
3237
3239
  {
3238
- var Zt = (Qe) => {
3239
- var xn = Eo();
3240
- oe(Qe, xn);
3241
- }, yn = /* @__PURE__ */ Ot(() => Object.keys(x(o).itemSessions || {}).length === 0);
3242
- cn(Lt, (Qe) => {
3243
- x(yn) && Qe(Zt);
3240
+ var Kt = (Qe) => {
3241
+ var En = Eo();
3242
+ oe(Qe, En);
3243
+ }, $n = /* @__PURE__ */ Ot(() => Object.keys(x(o).itemSessions || {}).length === 0);
3244
+ dn(Pt, (Qe) => {
3245
+ x($n) && Qe(Kt);
3244
3246
  });
3245
3247
  }
3246
- var Kt = Re(Lt, 2), Dt = Re(se(Kt), 2), $n = se(Dt, !0);
3247
- ie(Dt), ie(Kt), Ht((Qe) => vi($n, Qe), [() => JSON.stringify(x(o), null, 2)]), oe(me, ze);
3248
+ var Jt = Re(Pt, 2), Dt = Re(se(Jt), 2), xn = se(Dt, !0);
3249
+ ie(Dt), ie(Jt), Ht((Qe) => vi(xn, Qe), [() => JSON.stringify(x(o), null, 2)]), oe(me, ze);
3248
3250
  };
3249
- cn(k, (me) => {
3251
+ dn(k, (me) => {
3250
3252
  x(f) ? me(Oe, -1) : me(ce);
3251
3253
  });
3252
3254
  }
@@ -3259,9 +3261,9 @@ function To(e, t) {
3259
3261
  oe($, te);
3260
3262
  }
3261
3263
  }
3262
- }), qt(bn);
3264
+ }), qt(yn);
3263
3265
  }
3264
- customElements.define("pie-section-player-tools-session-debugger", wn(
3266
+ customElements.define("pie-section-player-tools-session-debugger", bn(
3265
3267
  To,
3266
3268
  {
3267
3269
  sectionId: { attribute: "section-id", type: "String" },