@everymatrix/tournament-details 0.2.9 → 0.2.11

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.
@@ -19,7 +19,7 @@ function Li() {
19
19
  });
20
20
  return { promise: r, resolve: e, reject: t };
21
21
  }
22
- const Pe = 2, Jt = 4, br = 8, Ii = 1 << 24, Ke = 16, ut = 32, bt = 64, mn = 128, zn = 256, $e = 512, be = 1024, pe = 2048, Ve = 4096, We = 8192, Me = 16384, It = 32768, Ir = 1 << 25, Qt = 65536, Rr = 1 << 17, ya = 1 << 18, Rt = 1 << 19, Ri = 1 << 20, zr = 1 << 21, Ft = 1 << 22, St = 1 << 23, nn = Symbol("$state"), zi = Symbol("component"), ba = Symbol("legacy props"), xa = Symbol(""), Gi = Symbol("attributes"), gn = Symbol("class"), yn = Symbol("style"), bn = Symbol("text"), xr = new class extends Error {
22
+ const Pe = 2, Jt = 4, br = 8, Ii = 1 << 24, Ke = 16, ut = 32, bt = 64, mn = 128, zn = 256, $e = 512, be = 1024, oe = 2048, Ze = 4096, We = 8192, Me = 16384, It = 32768, Ir = 1 << 25, Qt = 65536, Rr = 1 << 17, ya = 1 << 18, Rt = 1 << 19, Ri = 1 << 20, zr = 1 << 21, Ft = 1 << 22, St = 1 << 23, nn = Symbol("$state"), zi = Symbol("component"), ba = Symbol("legacy props"), xa = Symbol(""), Gi = Symbol("attributes"), gn = Symbol("class"), yn = Symbol("style"), bn = Symbol("text"), xr = new class extends Error {
23
23
  name = "StaleReactionError";
24
24
  message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
25
25
  }(), wa = (
@@ -189,17 +189,17 @@ function Ra() {
189
189
  Wi();
190
190
  }
191
191
  const za = -7169;
192
- function ce(e, t) {
192
+ function pe(e, t) {
193
193
  e.f = e.f & za | t;
194
194
  }
195
195
  function Zn(e) {
196
- e.f & $e || e.deps === null ? ce(e, be) : ce(e, Ve);
196
+ e.f & $e || e.deps === null ? pe(e, be) : pe(e, Ze);
197
197
  }
198
- function Ji(e, t, r) {
199
- e.f & pe ? t.add(e) : e.f & Ve && r.add(e), ce(e, be);
198
+ function Ji(e, t) {
199
+ e.f & oe ? t.set(e, oe) : e.f & Ze && t.get(e) !== oe && t.set(e, Ze), pe(e, be);
200
200
  }
201
201
  function Vr(e) {
202
- var t = V, r = W;
202
+ var t = X, r = W;
203
203
  Je(null), ft(null);
204
204
  try {
205
205
  return e();
@@ -249,7 +249,7 @@ function Ua() {
249
249
  var e = (
250
250
  /** @type {Effect} */
251
251
  W
252
- ), t = V, r = Se, n = (
252
+ ), t = X, r = Se, n = (
253
253
  /** @type {Batch} */
254
254
  $
255
255
  );
@@ -274,7 +274,7 @@ function Qi() {
274
274
  }
275
275
  // @__NO_SIDE_EFFECTS__
276
276
  function Ki(e) {
277
- var t = Pe | pe;
277
+ var t = Pe | oe;
278
278
  return W !== null && (W.f |= Rt), {
279
279
  ctx: Se,
280
280
  deps: null,
@@ -308,7 +308,7 @@ function ka(e, t, r) {
308
308
  ), s = wr(
309
309
  /** @type {V} */
310
310
  ye
311
- ), a = !V, o = /* @__PURE__ */ new Set();
311
+ ), a = !X, o = /* @__PURE__ */ new Set();
312
312
  return eo(() => {
313
313
  var u = (
314
314
  /** @type {Effect} */
@@ -383,7 +383,7 @@ function jn(e) {
383
383
  function qi(e) {
384
384
  var t = jn(e);
385
385
  if (!e.equals(t) && (e.wv = xs(), (!$?.is_fork || e.deps === null) && ($ !== null ? ($.capture(e, t, !0), Vt?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
386
- ce(e, be);
386
+ pe(e, be);
387
387
  return;
388
388
  }
389
389
  wt || (qe !== null ? (Wn() || $?.is_fork) && qe.set(e, t) : Zn(e));
@@ -406,24 +406,24 @@ let ja = 1;
406
406
  class xt {
407
407
  id = ja++;
408
408
  /** True as soon as `#process` was called */
409
- #e = !1;
409
+ started = !1;
410
410
  linked = !0;
411
411
  /** @type {Batch | null} */
412
- #t = null;
412
+ prev = null;
413
413
  /** @type {Batch | null} */
414
- #r = null;
414
+ next = null;
415
415
  /** @type {Map<Effect, ReturnType<typeof deferred<any>>>} */
416
416
  async_deriveds = /* @__PURE__ */ new Map();
417
417
  /**
418
418
  * The current values of any signals that are updated in this batch.
419
419
  * Tuple format: [value, is_derived] (note: is_derived is false for deriveds, too, if they were overridden via assignment)
420
- * They keys of this map are identical to `this.#previous`
420
+ * The keys of this map are identical to `this.previous`
421
421
  * @type {Map<Value, [any, boolean]>}
422
422
  */
423
423
  current = /* @__PURE__ */ new Map();
424
424
  /**
425
425
  * The values of any signals (sources and deriveds) that are updated in this batch _before_ those updates took place.
426
- * They keys of this map are identical to `this.#current`
426
+ * The keys of this map are identical to `this.current`
427
427
  * @type {Map<Value, any>}
428
428
  */
429
429
  previous = /* @__PURE__ */ new Map();
@@ -432,27 +432,27 @@ class xt {
432
432
  * and append new ones by calling the functions added inside (if/each/key/etc) blocks
433
433
  * @type {Set<(batch: Batch) => void>}
434
434
  */
435
- #u = /* @__PURE__ */ new Set();
435
+ #e = /* @__PURE__ */ new Set();
436
436
  /**
437
437
  * If a fork is discarded, we need to destroy any effects that are no longer needed
438
438
  * @type {Set<(batch: Batch) => void>}
439
439
  */
440
- #i = /* @__PURE__ */ new Set();
440
+ #t = /* @__PURE__ */ new Set();
441
441
  /**
442
442
  * The number of async effects that are currently in flight
443
443
  */
444
- #a = 0;
444
+ #r = 0;
445
445
  /**
446
446
  * Async effects that are currently in flight, _not_ inside a pending boundary
447
447
  * @type {Map<Effect, number>}
448
448
  */
449
- #n = /* @__PURE__ */ new Map();
449
+ #o = /* @__PURE__ */ new Map();
450
450
  /**
451
451
  * A deferred that resolves when the batch is committed, used with `settled()`
452
452
  * TODO replace with Promise.withResolvers once supported widely enough
453
453
  * @type {{ promise: Promise<void>, resolve: (value?: any) => void, reject: (reason: unknown) => void } | null}
454
454
  */
455
- #o = null;
455
+ #n = null;
456
456
  /**
457
457
  * Effects that were scheduled in this batch but not yet 'resolved' into the
458
458
  * root effects that need to be flushed. Resolving — the upwards traversal that
@@ -464,22 +464,17 @@ class xt {
464
464
  * May contain duplicates — deduplication happens during resolving
465
465
  * @type {Effect[]}
466
466
  */
467
- #s = [];
467
+ #i = [];
468
468
  /**
469
469
  * Effects created while this batch was active.
470
470
  * @type {Effect[]}
471
471
  */
472
- #m = [];
473
- /**
474
- * Deferred effects (which run after async work has completed) that are DIRTY
475
- * @type {Set<Effect>}
476
- */
477
- #l = /* @__PURE__ */ new Set();
472
+ #a = [];
478
473
  /**
479
- * Deferred effects that are MAYBE_DIRTY
480
- * @type {Set<Effect>}
474
+ * Deferred effects (which run after async work has completed) and their status (DIRTY or MAYBE_DIRTY)
475
+ * @type {Map<Effect, number>}
481
476
  */
482
- #f = /* @__PURE__ */ new Set();
477
+ #s = /* @__PURE__ */ new Map();
483
478
  /**
484
479
  * A map of branches that still exist, but will be destroyed when this batch
485
480
  * is committed — we skip over these during `process`.
@@ -487,30 +482,34 @@ class xt {
487
482
  * so they can be rescheduled if the branch survives.
488
483
  * @type {Map<Effect, { d: Effect[], m: Effect[] }>}
489
484
  */
490
- #c = /* @__PURE__ */ new Map();
485
+ #u = /* @__PURE__ */ new Map();
491
486
  /**
492
487
  * Inverse of #skipped_branches which we need to tell prior batches to unskip them when committing
493
488
  * @type {Set<Effect>}
494
489
  */
495
- #g = /* @__PURE__ */ new Set();
490
+ #d = /* @__PURE__ */ new Set();
496
491
  is_fork = !1;
497
- #h = !1;
492
+ #l = !1;
498
493
  constructor() {
499
- kt === null ? sn = kt = this : (kt.#r = this, this.#t = kt), kt = this;
494
+ kt === null ? sn = kt = this : (kt.next = this, this.prev = kt), kt = this;
500
495
  }
501
- #w() {
496
+ #p() {
502
497
  if (this.is_fork) return !0;
503
- for (const n of this.#n.keys()) {
504
- for (var t = n, r = !1; t.parent !== null; ) {
505
- if (this.#c.has(t)) {
506
- r = !0;
507
- break;
508
- }
509
- t = t.parent;
510
- }
511
- if (!r)
498
+ for (const t of this.#o.keys())
499
+ if (!this.#g(t))
512
500
  return !0;
513
- }
501
+ return !1;
502
+ }
503
+ /**
504
+ * Whether `effect` is inside a branch that this batch skips
505
+ * @param {Effect} effect
506
+ */
507
+ #g(t) {
508
+ for (var r = (
509
+ /** @type {Effect | null} */
510
+ t
511
+ ); r !== null; r = r.parent)
512
+ if (this.#u.has(r)) return !0;
514
513
  return !1;
515
514
  }
516
515
  /**
@@ -518,7 +517,7 @@ class xt {
518
517
  * @param {Effect} effect
519
518
  */
520
519
  skip_effect(t) {
521
- this.#c.has(t) || this.#c.set(t, { d: [], m: [] }), this.#g.delete(t);
520
+ this.#u.has(t) || this.#u.set(t, { d: [], m: [] }), this.#d.delete(t);
522
521
  }
523
522
  /**
524
523
  * Remove an effect from the #skipped_branches map and reschedule
@@ -527,15 +526,15 @@ class xt {
527
526
  * @param {(e: Effect) => void} callback
528
527
  */
529
528
  unskip_effect(t, r = (n) => this.schedule(n)) {
530
- var n = this.#c.get(t);
529
+ var n = this.#u.get(t);
531
530
  if (n) {
532
- this.#c.delete(t);
531
+ this.#u.delete(t);
533
532
  for (var i of n.d)
534
- ce(i, pe), r(i);
533
+ pe(i, oe), r(i);
535
534
  for (i of n.m)
536
- ce(i, Ve), r(i);
535
+ pe(i, Ze), r(i);
537
536
  }
538
- this.#g.add(t);
537
+ this.#d.add(t);
539
538
  }
540
539
  /**
541
540
  * Convert the effects that were scheduled in this batch into the root effects
@@ -546,10 +545,10 @@ class xt {
546
545
  * a single traversal — scheduling into other batches can never observe them
547
546
  * @returns {Effect[]}
548
547
  */
549
- #E() {
548
+ #f() {
550
549
  var t = [];
551
- for (const s of this.#s)
552
- if (!(s.f & Me || !(s.f & (pe | Ve)))) {
550
+ for (const s of this.#i)
551
+ if (!(s.f & Me || !(s.f & (oe | Ze)))) {
553
552
  for (var r = s, n = !1; r.parent !== null; ) {
554
553
  r = r.parent;
555
554
  var i = r.f;
@@ -563,22 +562,20 @@ class xt {
563
562
  }
564
563
  n || t.push(r);
565
564
  }
566
- return this.#s = [], t;
565
+ return this.#i = [], t;
567
566
  }
568
- #y() {
569
- this.#e = !0;
570
- for (const o of this.#l)
571
- this.#f.delete(o), ce(o, pe), this.schedule(o);
572
- for (const o of this.#f)
573
- ce(o, Ve), this.schedule(o);
567
+ #m() {
568
+ this.started = !0;
569
+ for (const [o, u] of this.#s)
570
+ pe(o, u), this.schedule(o);
574
571
  this.apply();
575
- for (var t = hr = [], r = [], n = Br = []; this.#s.length > 0; ) {
576
- ri++ > 1e3 && (this.#p(), Xa());
577
- for (const o of this.#E())
572
+ for (var t = hr = [], r = [], n = Br = []; this.#i.length > 0; ) {
573
+ ri++ > 1e3 && (this.#c(), Xa());
574
+ for (const o of this.#f())
578
575
  try {
579
- this.#b(o, t, r);
576
+ this.#y(o, t, r);
580
577
  } catch (u) {
581
- throw ts(o), this.#w() || this.discard(), u;
578
+ throw ts(o), this.#p() || this.discard(), u;
582
579
  }
583
580
  }
584
581
  if ($ = null, n.length > 0) {
@@ -586,35 +583,28 @@ class xt {
586
583
  for (const o of n)
587
584
  i.schedule(o);
588
585
  }
589
- if (hr = null, Br = null, this.#w()) {
586
+ if (hr = null, Br = null, this.#p()) {
590
587
  this.#v(r), this.#v(t);
591
- for (const [o, u] of this.#c)
588
+ for (const [o, u] of this.#u)
592
589
  es(o, u);
593
590
  n.length > 0 && /** @type {unknown} */
594
- $.#y();
591
+ $.#m();
595
592
  return;
596
593
  }
597
- const s = this.#d();
594
+ const s = this.#x();
598
595
  if (s) {
599
- this.#v(r), this.#v(t), s.#T(this);
596
+ this.#v(r), this.#v(t), s.#h(this);
600
597
  return;
601
598
  }
602
- this.#l.clear(), this.#f.clear();
603
- for (const o of this.#u) o(this);
604
- this.#u.clear(), Vt = this, ni(r), ni(t), Vt = null, this.#o?.resolve();
599
+ this.#s.clear();
600
+ for (const o of this.#e) o(this);
601
+ this.#e.clear(), Vt = this, ni(r), ni(t), Vt = null, this.#n?.resolve();
605
602
  var a = (
606
603
  /** @type {Batch | null} */
607
604
  /** @type {unknown} */
608
605
  $
609
606
  );
610
- if (this.#a === 0 && (this.#s.length === 0 || a !== null) && this.#p(), this.#s.length > 0)
611
- if (a !== null) {
612
- for (const o of this.#s)
613
- a.#s.push(o);
614
- this.#s = [];
615
- } else
616
- a = this;
617
- a !== null && (at.clear(), a.#y());
607
+ this.#r === 0 && (this.#i.length === 0 || a !== null) && this.#c(), a !== null && (at.clear(), a.#m());
618
608
  }
619
609
  /**
620
610
  * Traverse the effect tree, executing effects or stashing
@@ -623,12 +613,12 @@ class xt {
623
613
  * @param {Effect[]} effects
624
614
  * @param {Effect[]} render_effects
625
615
  */
626
- #b(t, r, n) {
616
+ #y(t, r, n) {
627
617
  t.f ^= be;
628
618
  for (var i = t.first; i !== null; ) {
629
- var s = i.f, a = (s & (ut | bt)) !== 0, o = a && (s & be) !== 0, u = o || (s & We) !== 0 || this.#c.has(i);
619
+ var s = i.f, a = (s & (ut | bt)) !== 0, o = a && (s & be) !== 0, u = o || (s & We) !== 0 || this.#u.has(i);
630
620
  if (!u && i.fn !== null) {
631
- a ? i.f ^= be : s & Jt ? r.push(i) : Er(i) && (s & Ke && this.#f.add(i), qt(i));
621
+ a ? i.f ^= be : s & Jt ? r.push(i) : Er(i) && (s & Ke && this.add_dirty_reaction(i, Ze), qt(i));
632
622
  var l = i.first;
633
623
  if (l !== null) {
634
624
  i = l;
@@ -645,31 +635,32 @@ class xt {
645
635
  }
646
636
  }
647
637
  }
648
- #d() {
649
- for (var t = this.#t; t !== null; ) {
650
- if (!t.is_fork) {
651
- for (const [r, [, n]] of this.current)
652
- if (t.current.has(r) && !n)
653
- return t;
654
- }
655
- t = t.#t;
656
- }
638
+ #x() {
639
+ for (var t = this.prev; t !== null; t = t.prev)
640
+ if (!t.is_fork && this.#b(t)) return t;
657
641
  return null;
658
642
  }
643
+ /** @param {Batch} batch */
644
+ #b(t) {
645
+ for (const [r, [, n]] of this.current)
646
+ if (!n && t.current.has(r))
647
+ return !0;
648
+ return !1;
649
+ }
659
650
  /**
660
651
  * @param {Batch} batch
661
652
  */
662
- #T(t) {
653
+ #h(t) {
663
654
  for (const [n, i] of t.current)
664
655
  !this.previous.has(n) && t.previous.has(n) && this.previous.set(n, t.previous.get(n)), this.current.set(n, i);
665
656
  for (const [n, i] of t.async_deriveds) {
666
657
  const s = this.async_deriveds.get(n);
667
658
  s && i.promise.then(s.resolve).catch(s.reject);
668
659
  }
669
- t.async_deriveds.clear(), this.transfer_effects(t.#l, t.#f);
660
+ t.async_deriveds.clear(), this.transfer_reactions(t.#s);
670
661
  const r = (n) => {
671
662
  var i = n.reactions;
672
- if (i !== null && !(n.f & Pe && !(n.f & (pe | Ve))))
663
+ if (i !== null && !(n.f & Pe && !(n.f & (oe | Ze))))
673
664
  for (const o of i) {
674
665
  var s = o.f;
675
666
  if (s & Pe)
@@ -682,20 +673,20 @@ class xt {
682
673
  /** @type {Effect} */
683
674
  o
684
675
  );
685
- s & (Ft | Ke) && !this.async_deriveds.has(a) && (this.#f.delete(a), ce(a, pe), this.schedule(a));
676
+ s & (Ft | Ke) && !this.async_deriveds.has(a) && (this.#s.delete(a), pe(a, oe), this.schedule(a));
686
677
  }
687
678
  }
688
679
  };
689
680
  for (const n of this.current.keys())
690
681
  r(n);
691
- this.oncommit(() => t.discard()), t.#p(), $ = this, this.#y();
682
+ this.oncommit(() => t.discard()), t.#c(), $ = this, this.#m();
692
683
  }
693
684
  /**
694
685
  * @param {Effect[]} effects
695
686
  */
696
687
  #v(t) {
697
688
  for (var r = 0; r < t.length; r += 1)
698
- Ji(t[r], this.#l, this.#f);
689
+ Ji(t[r], this.#s);
699
690
  }
700
691
  /**
701
692
  * Associate a change to a given source with the current
@@ -715,26 +706,26 @@ class xt {
715
706
  }
716
707
  flush() {
717
708
  try {
718
- an = !0, $ = this, this.#y();
709
+ an = !0, $ = this, this.#m();
719
710
  } finally {
720
711
  ri = 0, xn = null, hr = null, Br = null, an = !1, $ = null, qe = null, at.clear();
721
712
  }
722
713
  }
723
714
  discard() {
724
- for (const t of this.#i) t(this);
725
- this.#i.clear();
715
+ for (const t of this.#t) t(this);
716
+ this.#t.clear();
726
717
  for (const t of this.async_deriveds.values())
727
718
  t.reject(ur);
728
- this.#p(), this.#o?.resolve();
719
+ this.#c(), this.#n?.resolve();
729
720
  }
730
721
  /**
731
722
  * @param {Effect} effect
732
723
  */
733
724
  register_created_effect(t) {
734
- this.#m.push(t);
725
+ this.#a.push(t);
735
726
  }
736
- #x() {
737
- for (let h = sn; h !== null; h = h.#r) {
727
+ #w() {
728
+ for (let h = sn; h !== null; h = h.next) {
738
729
  var t = h.id < this.id, r = [];
739
730
  for (const [c, [v, m]] of this.current) {
740
731
  if (h.current.has(c)) {
@@ -758,13 +749,13 @@ class xt {
758
749
  (c) => !/** @type {[any, boolean]} */
759
750
  h.current.get(c)[1]
760
751
  );
761
- if (!(!h.#e || i.length === 0)) {
752
+ if (!(!h.started || i.length === 0)) {
762
753
  var s = i.filter((c) => !this.current.has(c));
763
754
  if (s.length === 0)
764
755
  t && h.discard();
765
756
  else if (r.length > 0) {
766
757
  if (t)
767
- for (const c of this.#g)
758
+ for (const c of this.#d)
768
759
  h.unskip_effect(c, (v) => {
769
760
  v.f & (Ke | Ft) ? h.schedule(v) : h.#v([v]);
770
761
  });
@@ -778,12 +769,12 @@ class xt {
778
769
  return m ? m[0] !== v[0] || m[1] !== v[1] : !0;
779
770
  }).map(([c]) => c);
780
771
  if (l.length > 0)
781
- for (const c of this.#m)
782
- !(c.f & (Me | We | Rr)) && Xn(c, l, o) && (c.f & (Ft | Ke) ? (ce(c, pe), h.schedule(c)) : h.#l.add(c));
783
- if (h.#s.length > 0 && !h.#h) {
772
+ for (const c of this.#a)
773
+ !(c.f & (Me | We | Rr)) && Xn(c, l, o) && (c.f & (Ft | Ke) ? (pe(c, oe), h.schedule(c)) : h.add_dirty_reaction(c, oe));
774
+ if (h.#i.length > 0 && !h.#l) {
784
775
  h.apply();
785
- for (var f of h.#E())
786
- h.#b(f, [], []);
776
+ for (var f of h.#f())
777
+ h.#y(f, [], []);
787
778
  }
788
779
  h.deactivate();
789
780
  }
@@ -795,9 +786,9 @@ class xt {
795
786
  * @param {Effect} effect
796
787
  */
797
788
  increment(t, r) {
798
- if (this.#a += 1, t) {
799
- let n = this.#n.get(r) ?? 0;
800
- this.#n.set(r, n + 1);
789
+ if (this.#r += 1, t) {
790
+ let n = this.#o.get(r) ?? 0;
791
+ this.#o.set(r, n + 1);
801
792
  }
802
793
  }
803
794
  /**
@@ -805,41 +796,45 @@ class xt {
805
796
  * @param {Effect} effect
806
797
  */
807
798
  decrement(t, r) {
808
- if (this.#a -= 1, t) {
809
- let n = this.#n.get(r) ?? 0;
810
- n === 1 ? this.#n.delete(r) : this.#n.set(r, n - 1);
799
+ if (this.#r -= 1, t) {
800
+ let n = this.#o.get(r) ?? 0;
801
+ n === 1 ? this.#o.delete(r) : this.#o.set(r, n - 1);
811
802
  }
812
- this.#h || (this.#h = !0, Ht(() => {
813
- this.#h = !1, this.linked && this.flush();
803
+ this.#l || (this.#l = !0, Ht(() => {
804
+ this.#l = !1, this.linked && this.flush();
814
805
  }));
815
806
  }
816
807
  /**
817
- * @param {Set<Effect>} dirty_effects
818
- * @param {Set<Effect>} maybe_dirty_effects
808
+ * @param {Map<Effect, number>} dirty_reactions
809
+ */
810
+ transfer_reactions(t) {
811
+ for (const [r, n] of t)
812
+ this.add_dirty_reaction(r, n);
813
+ t.clear();
814
+ }
815
+ /**
816
+ * @param {Effect} effect
817
+ * @param {number} status
819
818
  */
820
- transfer_effects(t, r) {
821
- for (const n of t)
822
- this.#l.add(n);
823
- for (const n of r)
824
- this.#f.add(n);
825
- t.clear(), r.clear();
819
+ add_dirty_reaction(t, r) {
820
+ (r === oe || this.#s.get(t) !== oe) && this.#s.set(t, r);
826
821
  }
827
822
  /** @param {(batch: Batch) => void} fn */
828
823
  oncommit(t) {
829
- this.#u.add(t);
824
+ this.#e.add(t);
830
825
  }
831
826
  /** @param {(batch: Batch) => void} fn */
832
827
  ondiscard(t) {
833
- this.#i.add(t);
828
+ this.#t.add(t);
834
829
  }
835
830
  settled() {
836
- return (this.#o ??= Li()).promise;
831
+ return (this.#n ??= Li()).promise;
837
832
  }
838
833
  static ensure() {
839
834
  if ($ === null) {
840
835
  const t = $ = new xt();
841
836
  !an && !fr && Ht(() => {
842
- t.#e || t.flush();
837
+ t.started || t.flush();
843
838
  });
844
839
  }
845
840
  return $;
@@ -859,12 +854,12 @@ class xt {
859
854
  t.b.defer_effect(t);
860
855
  return;
861
856
  }
862
- this.#s.push(t);
857
+ this.#i.push(t);
863
858
  }
864
- #p() {
859
+ #c() {
865
860
  if (this.linked) {
866
- var t = this.#t, r = this.#r;
867
- t === null ? sn = r : t.#r = r, r === null ? kt = t : r.#t = t, this.linked = !1;
861
+ var t = this.prev, r = this.next;
862
+ t === null ? sn = r : t.next = r, r === null ? kt = t : r.prev = t, this.linked = !1;
868
863
  }
869
864
  }
870
865
  }
@@ -926,7 +921,7 @@ function $i(e, t, r, n) {
926
921
  t,
927
922
  r,
928
923
  n
929
- ) : s & (Ft | Ke) && !(s & pe) && Xn(i, t, n) && (ce(i, pe), Fn(
924
+ ) : s & (Ft | Ke) && !(s & oe) && Xn(i, t, n) && (pe(i, oe), Fn(
930
925
  /** @type {Effect} */
931
926
  i
932
927
  ));
@@ -958,13 +953,13 @@ function Fn(e) {
958
953
  }
959
954
  function es(e, t) {
960
955
  if (!(e.f & ut && e.f & be)) {
961
- e.f & pe ? t.d.push(e) : e.f & Ve && t.m.push(e), ce(e, be);
956
+ e.f & oe ? t.d.push(e) : e.f & Ze && t.m.push(e), pe(e, be);
962
957
  for (var r = e.first; r !== null; )
963
958
  es(r, t), r = r.next;
964
959
  }
965
960
  }
966
961
  function ts(e) {
967
- ce(e, be);
962
+ pe(e, be);
968
963
  for (var t = e.first; t !== null; )
969
964
  ts(t), t = t.next;
970
965
  }
@@ -974,7 +969,6 @@ let rs = !1;
974
969
  function wr(e, t) {
975
970
  var r = {
976
971
  f: 0,
977
- // TODO ideally we could skip this altogether, but it causes type errors
978
972
  v: e,
979
973
  reactions: null,
980
974
  equals: Zi,
@@ -993,10 +987,10 @@ function ns(e, t = !1, r = !0) {
993
987
  const n = wr(e);
994
988
  return t || (n.equals = Ma), n;
995
989
  }
996
- function Fe(e, t, r = !1) {
997
- V !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
990
+ function Ve(e, t, r = !1) {
991
+ X !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
998
992
  // to ensure we error if state is set inside an inspect effect
999
- (!_e || V.f & Rr) && Vi() && V.f & (Pe | Ke | Ft | Rr) && (ot === null || !ot.has(e)) && Da();
993
+ (!_e || X.f & Rr) && Vi() && X.f & (Pe | Ke | Ft | Rr) && (ot === null || !ot.has(e)) && Da();
1000
994
  let n = r ? jt(t) : t;
1001
995
  return kr(e, n, Br);
1002
996
  }
@@ -1010,16 +1004,16 @@ function kr(e, t, r = null) {
1010
1004
  /** @type {Derived} */
1011
1005
  e
1012
1006
  );
1013
- e.f & pe && jn(i), qe === null && Zn(i);
1007
+ e.f & oe && jn(i), qe === null && Zn(i);
1014
1008
  }
1015
- e.wv = xs(), Bt = null, wn = 0, is(e, pe, r), Bt = null, W !== null && W.f & be && !(W.f & (ut | bt)) && (Xe === null ? io([e]) : Xe.push(e)), !n.is_fork && Ur.size > 0 && !rs && Fa();
1009
+ e.wv = xs(), Bt = null, wn = 0, is(e, oe, r), Bt = null, W !== null && W.f & be && !(W.f & (ut | bt)) && (Fe === null ? io([e]) : Fe.push(e)), !n.is_fork && Ur.size > 0 && !rs && Fa();
1016
1010
  }
1017
1011
  return t;
1018
1012
  }
1019
1013
  function Fa() {
1020
1014
  rs = !1;
1021
1015
  for (const e of Ur) {
1022
- e.f & be && ce(e, Ve);
1016
+ e.f & be && pe(e, Ze);
1023
1017
  let t;
1024
1018
  try {
1025
1019
  t = Er(e);
@@ -1031,7 +1025,7 @@ function Fa() {
1031
1025
  Ur.clear();
1032
1026
  }
1033
1027
  function cr(e) {
1034
- Fe(e, e.v + 1);
1028
+ Ve(e, e.v + 1);
1035
1029
  }
1036
1030
  function is(e, t, r) {
1037
1031
  var n = e.reactions;
@@ -1042,8 +1036,8 @@ function is(e, t, r) {
1042
1036
  Bt.add(e);
1043
1037
  }
1044
1038
  for (var s = 0; s < i; s++) {
1045
- var a = n[s], o = a.f, u = (o & pe) === 0;
1046
- if (u && ce(a, t), o & Rr)
1039
+ var a = n[s], o = a.f, u = (o & oe) === 0;
1040
+ if (u && pe(a, t), o & Rr)
1047
1041
  Ur.add(
1048
1042
  /** @type {Effect} */
1049
1043
  a
@@ -1053,7 +1047,7 @@ function is(e, t, r) {
1053
1047
  /** @type {Derived} */
1054
1048
  a
1055
1049
  );
1056
- qe?.delete(l), is(l, Ve, r);
1050
+ qe?.delete(l), is(l, Ze, r);
1057
1051
  } else if (u) {
1058
1052
  var f = (
1059
1053
  /** @type {Effect} */
@@ -1073,7 +1067,7 @@ function jt(e) {
1073
1067
  var r = /* @__PURE__ */ new Map(), n = ca(e), i = /* @__PURE__ */ nt(0), s = Dt, a = (o) => {
1074
1068
  if (Dt === s)
1075
1069
  return o();
1076
- var u = V, l = Dt;
1070
+ var u = X, l = Dt;
1077
1071
  Je(null), oi(s);
1078
1072
  var f = o();
1079
1073
  return Je(u), oi(l), f;
@@ -1091,7 +1085,7 @@ function jt(e) {
1091
1085
  return f === void 0 ? a(() => {
1092
1086
  var h = /* @__PURE__ */ nt(l.value);
1093
1087
  return r.set(u, h), h;
1094
- }) : Fe(f, l.value, !0), !0;
1088
+ }) : Ve(f, l.value, !0), !0;
1095
1089
  },
1096
1090
  deleteProperty(o, u) {
1097
1091
  var l = r.get(u);
@@ -1101,7 +1095,7 @@ function jt(e) {
1101
1095
  r.set(u, f), cr(i);
1102
1096
  }
1103
1097
  } else
1104
- Fe(l, ye), cr(i);
1098
+ Ve(l, ye), cr(i);
1105
1099
  return !0;
1106
1100
  },
1107
1101
  get(o, u, l) {
@@ -1140,7 +1134,7 @@ function jt(e) {
1140
1134
  if (u === nn)
1141
1135
  return !0;
1142
1136
  var l = r.get(u), f = l !== void 0 && l.v !== ye || Reflect.has(o, u);
1143
- if (l !== void 0 || W !== null && (!f || Xt(o, u)?.writable)) {
1137
+ if (l !== void 0 || (W !== null || X !== null) && (!f || Xt(o, u)?.writable)) {
1144
1138
  l === void 0 && (l = a(() => {
1145
1139
  var c = f ? jt(o[u]) : ye, v = /* @__PURE__ */ nt(c);
1146
1140
  return v;
@@ -1157,14 +1151,14 @@ function jt(e) {
1157
1151
  for (var v = l; v < /** @type {Source<number>} */
1158
1152
  h.v; v += 1) {
1159
1153
  var m = r.get(v + "");
1160
- m !== void 0 ? Fe(m, ye) : v in o && (m = a(() => /* @__PURE__ */ nt(ye)), r.set(v + "", m));
1154
+ m !== void 0 ? Ve(m, ye) : v in o && (m = a(() => /* @__PURE__ */ nt(ye)), r.set(v + "", m));
1161
1155
  }
1162
1156
  if (h === void 0)
1163
- (!c || Xt(o, u)?.writable) && (h = a(() => /* @__PURE__ */ nt(void 0)), Fe(h, jt(l)), r.set(u, h));
1157
+ (!c || Xt(o, u)?.writable) && (h = a(() => /* @__PURE__ */ nt(void 0)), Ve(h, jt(l)), r.set(u, h));
1164
1158
  else {
1165
1159
  c = h.v !== ye;
1166
1160
  var I = a(() => jt(l));
1167
- Fe(h, I);
1161
+ Ve(h, I);
1168
1162
  }
1169
1163
  var M = Reflect.getOwnPropertyDescriptor(o, u);
1170
1164
  if (M?.set && M.set.call(f, l), !c) {
@@ -1173,7 +1167,7 @@ function jt(e) {
1173
1167
  /** @type {Source<number>} */
1174
1168
  r.get("length")
1175
1169
  ), z = Number(u);
1176
- Number.isInteger(z) && z >= B.v && Fe(B, z + 1);
1170
+ Number.isInteger(z) && z >= B.v && Ve(B, z + 1);
1177
1171
  }
1178
1172
  cr(i);
1179
1173
  }
@@ -1286,7 +1280,7 @@ function us(e) {
1286
1280
  function Ja(e) {
1287
1281
  var t = W;
1288
1282
  if (t === null)
1289
- return V.f |= St, e;
1283
+ return X.f |= St, e;
1290
1284
  if (!(t.f & It) && !(t.f & Jt))
1291
1285
  throw e;
1292
1286
  it(e, t);
@@ -1312,7 +1306,7 @@ function it(e, t) {
1312
1306
  }
1313
1307
  }
1314
1308
  function ls(e) {
1315
- W === null && (V === null && Oa(), Aa()), wt && Pa();
1309
+ W === null && (X === null && Oa(), Aa()), wt && Pa();
1316
1310
  }
1317
1311
  function Qa(e, t) {
1318
1312
  var r = t.last;
@@ -1325,7 +1319,7 @@ function et(e, t) {
1325
1319
  ctx: Se,
1326
1320
  deps: null,
1327
1321
  nodes: null,
1328
- f: e | pe | $e,
1322
+ f: e | oe | $e,
1329
1323
  first: null,
1330
1324
  fn: t,
1331
1325
  last: null,
@@ -1350,28 +1344,28 @@ function et(e, t) {
1350
1344
  i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && // either `null`, or a singular child
1351
1345
  !(i.f & Rt) && (i = i.first, e & Ke && e & Qt && i !== null && (i.f |= Qt));
1352
1346
  }
1353
- if (i !== null && (i.parent = r, r !== null && Qa(i, r), V !== null && V.f & Pe && !(e & bt))) {
1347
+ if (i !== null && (i.parent = r, r !== null && Qa(i, r), X !== null && X.f & Pe && !(e & bt))) {
1354
1348
  var s = (
1355
1349
  /** @type {Derived} */
1356
- V
1350
+ X
1357
1351
  );
1358
1352
  (s.effects ??= []).push(i);
1359
1353
  }
1360
1354
  return n;
1361
1355
  }
1362
1356
  function Wn() {
1363
- return V !== null && !_e;
1357
+ return X !== null && !_e;
1364
1358
  }
1365
1359
  function fs(e) {
1366
1360
  const t = et(br, null);
1367
- return ce(t, be), t.teardown = e, t;
1361
+ return pe(t, be), t.teardown = e, t;
1368
1362
  }
1369
1363
  function Tn(e) {
1370
1364
  ls();
1371
1365
  var t = (
1372
1366
  /** @type {Effect} */
1373
1367
  W.f
1374
- ), r = !V && (t & ut) !== 0 && Se !== null && !Se.i;
1368
+ ), r = !X && (t & ut) !== 0 && Se !== null && !Se.i;
1375
1369
  if (r) {
1376
1370
  var n = (
1377
1371
  /** @type {ComponentContext} */
@@ -1429,7 +1423,7 @@ function mt(e) {
1429
1423
  function vs(e) {
1430
1424
  var t = e.teardown;
1431
1425
  if (t !== null) {
1432
- const r = wt, n = V;
1426
+ const r = wt, n = X;
1433
1427
  ai(!0), Je(null);
1434
1428
  try {
1435
1429
  t.call(null);
@@ -1520,7 +1514,7 @@ function si(e) {
1520
1514
  }
1521
1515
  function gs(e, t) {
1522
1516
  if (!(e.f & zn) && e.f & We) {
1523
- e.f ^= We, e.f & be || (ce(e, pe), xt.ensure().schedule(e));
1517
+ e.f ^= We, e.f & be || (pe(e, oe), xt.ensure().schedule(e));
1524
1518
  for (var r = e.first; r !== null; ) {
1525
1519
  var n = r.next, i = (r.f & Qt) !== 0 || (r.f & ut) !== 0;
1526
1520
  gs(r, i ? t : !1), r = n;
@@ -1542,9 +1536,9 @@ let wt = !1;
1542
1536
  function ai(e) {
1543
1537
  wt = e;
1544
1538
  }
1545
- let V = null, _e = !1;
1539
+ let X = null, _e = !1;
1546
1540
  function Je(e) {
1547
- V = e;
1541
+ X = e;
1548
1542
  }
1549
1543
  let W = null;
1550
1544
  function ft(e) {
@@ -1552,11 +1546,11 @@ function ft(e) {
1552
1546
  }
1553
1547
  let ot = null;
1554
1548
  function no(e) {
1555
- V !== null && (V.f & zr || V.f & Pe) && (ot ??= /* @__PURE__ */ new Set()).add(e);
1549
+ X !== null && (X.f & zr || X.f & Pe) && (ot ??= /* @__PURE__ */ new Set()).add(e);
1556
1550
  }
1557
- let Le = null, Ye = 0, Xe = null;
1551
+ let Le = null, Ye = 0, Fe = null;
1558
1552
  function io(e) {
1559
- Xe = e;
1553
+ Fe = e;
1560
1554
  }
1561
1555
  let bs = 1, Ct = 0, Dt = Ct;
1562
1556
  function oi(e) {
@@ -1567,9 +1561,9 @@ function xs() {
1567
1561
  }
1568
1562
  function Er(e) {
1569
1563
  var t = e.f;
1570
- if (t & pe)
1564
+ if (t & oe)
1571
1565
  return !0;
1572
- if (t & Ve) {
1566
+ if (t & Ze) {
1573
1567
  for (var r = (
1574
1568
  /** @type {Value[]} */
1575
1569
  e.deps
@@ -1586,7 +1580,7 @@ function Er(e) {
1586
1580
  }
1587
1581
  t & $e && // During time traveling we don't want to reset the status so that
1588
1582
  // traversal of the graph in the other batches still happens
1589
- qe === null && ce(e, be);
1583
+ qe === null && pe(e, be);
1590
1584
  }
1591
1585
  return !1;
1592
1586
  }
@@ -1600,16 +1594,16 @@ function ws(e, t, r = !0) {
1600
1594
  s,
1601
1595
  t,
1602
1596
  !1
1603
- ) : t === s && (r ? ce(s, pe) : s.f & be && ce(s, Ve), Fn(
1597
+ ) : t === s && (r ? pe(s, oe) : s.f & be && pe(s, Ze), Fn(
1604
1598
  /** @type {Effect} */
1605
1599
  s
1606
1600
  ));
1607
1601
  }
1608
1602
  }
1609
1603
  function Es(e) {
1610
- var t = Le, r = Ye, n = Xe, i = V, s = ot, a = Se, o = _e, u = Dt, l = e.f;
1604
+ var t = Le, r = Ye, n = Fe, i = X, s = ot, a = Se, o = _e, u = Dt, l = e.f;
1611
1605
  Le = /** @type {null | Value[]} */
1612
- null, Ye = 0, Xe = null, V = l & (ut | bt) ? null : e, ot = null, Kt(e.ctx), _e = !1, Dt = ++Ct, e.ac !== null && (Vr(() => {
1606
+ null, Ye = 0, Fe = null, X = l & (ut | bt) ? null : e, ot = null, Kt(e.ctx), _e = !1, Dt = ++Ct, e.ac !== null && (Vr(() => {
1613
1607
  e.ac.abort(xr);
1614
1608
  }), e.ac = null);
1615
1609
  try {
@@ -1620,11 +1614,11 @@ function Es(e) {
1620
1614
  ), h = f();
1621
1615
  e.f |= It;
1622
1616
  var c = ui(e);
1623
- if (Vi() && Xe !== null && !_e && c !== null && !(e.f & (Pe | Ve | pe)))
1617
+ if (Vi() && Fe !== null && !_e && c !== null && !(e.f & (Pe | Ze | oe)))
1624
1618
  for (var v = 0; v < /** @type {Source[]} */
1625
- Xe.length; v++)
1619
+ Fe.length; v++)
1626
1620
  ws(
1627
- Xe[v],
1621
+ Fe[v],
1628
1622
  /** @type {Effect} */
1629
1623
  e
1630
1624
  );
@@ -1635,14 +1629,14 @@ function Es(e) {
1635
1629
  if (t !== null)
1636
1630
  for (const m of t)
1637
1631
  m.rv = Ct;
1638
- Xe !== null && (n === null ? n = Xe : n.push(.../** @type {Source[]} */
1639
- Xe));
1632
+ Fe !== null && (n === null ? n = Fe : n.push(.../** @type {Source[]} */
1633
+ Fe));
1640
1634
  }
1641
1635
  return e.f & St && (e.f ^= St), h;
1642
1636
  } catch (m) {
1643
1637
  return ui(e), Ja(m);
1644
1638
  } finally {
1645
- e.f ^= zr, Le = t, Ye = r, Xe = n, V = i, ot = s, Kt(a), _e = o, Dt = u;
1639
+ e.f ^= zr, Le = t, Ye = r, Fe = n, X = i, ot = s, Kt(a), _e = o, Dt = u;
1646
1640
  }
1647
1641
  }
1648
1642
  function ui(e) {
@@ -1678,7 +1672,7 @@ function so(e, t) {
1678
1672
  t
1679
1673
  );
1680
1674
  s.f & $e && (s.f ^= $e), s.v !== ye && Zn(s), s.ac !== null && Vr(() => {
1681
- s.ac.abort(xr), s.ac = null, ce(s, pe);
1675
+ s.ac.abort(xr), s.ac = null, pe(s, oe);
1682
1676
  }), Za(s), mr(s, 0);
1683
1677
  }
1684
1678
  }
@@ -1691,7 +1685,7 @@ function mr(e, t) {
1691
1685
  function qt(e) {
1692
1686
  var t = e.f;
1693
1687
  if (!(t & Me)) {
1694
- ce(e, be);
1688
+ pe(e, be);
1695
1689
  var r = W;
1696
1690
  W = e;
1697
1691
  try {
@@ -1699,7 +1693,7 @@ function qt(e) {
1699
1693
  var n = Es(e);
1700
1694
  e.teardown = typeof n == "function" ? n : null, e.wv = bs;
1701
1695
  var i;
1702
- Hi && Ia && e.f & pe && e.deps;
1696
+ Hi && Ia && e.f & oe && e.deps;
1703
1697
  } finally {
1704
1698
  W = r;
1705
1699
  }
@@ -1707,16 +1701,16 @@ function qt(e) {
1707
1701
  }
1708
1702
  function ve(e) {
1709
1703
  var t = e.f, r = (t & Pe) !== 0;
1710
- if (V !== null && !_e) {
1704
+ if (X !== null && !_e) {
1711
1705
  var n = W !== null && (W.f & Me) !== 0;
1712
1706
  if (!n && (ot === null || !ot.has(e))) {
1713
- var i = V.deps;
1714
- if (V.f & zr)
1707
+ var i = X.deps;
1708
+ if (X.f & zr)
1715
1709
  e.rv < Ct && (e.rv = Ct, Le === null && i !== null && i[Ye] === e ? Ye++ : Le === null ? Le = [e] : Le.push(e));
1716
1710
  else {
1717
- V.deps ??= [], vr.call(V.deps, e) || V.deps.push(e);
1711
+ X.deps ??= [], vr.call(X.deps, e) || X.deps.push(e);
1718
1712
  var s = e.reactions;
1719
- s === null ? e.reactions = [V] : vr.call(s, V) || s.push(V);
1713
+ s === null ? e.reactions = [X] : vr.call(s, X) || s.push(X);
1720
1714
  }
1721
1715
  }
1722
1716
  }
@@ -1731,7 +1725,7 @@ function ve(e) {
1731
1725
  var o = a.v;
1732
1726
  return (!(a.f & be) && a.reactions !== null || Ms(a)) && (o = jn(a)), at.set(a, o), o;
1733
1727
  }
1734
- var u = (a.f & $e) === 0 && !_e && V !== null && (V.f & $e) !== 0, l = (a.f & It) === 0;
1728
+ var u = (a.f & $e) === 0 && !_e && X !== null && (X.f & $e) !== 0, l = (a.f & It) === 0;
1735
1729
  Er(a) && (u && (a.f |= $e), qi(a)), u && !l && (_i(a), Ts(a));
1736
1730
  }
1737
1731
  if (qe?.has(e))
@@ -1815,7 +1809,7 @@ function li(e) {
1815
1809
  return s || r;
1816
1810
  }
1817
1811
  });
1818
- var f = V, h = W;
1812
+ var f = X, h = W;
1819
1813
  Je(null), ft(null);
1820
1814
  try {
1821
1815
  for (var c, v = []; s !== null && s !== t; ) {
@@ -1934,24 +1928,22 @@ class go {
1934
1928
  /** @type {BoundaryProps} */
1935
1929
  #r;
1936
1930
  /** @type {((anchor: Node) => void)} */
1937
- #u;
1931
+ #o;
1938
1932
  /** @type {Effect} */
1939
- #i;
1933
+ #n;
1940
1934
  /** @type {Effect | null} */
1941
- #a = null;
1935
+ #i = null;
1942
1936
  /** @type {Effect | null} */
1943
- #n = null;
1937
+ #a = null;
1944
1938
  /** @type {Effect | null} */
1945
- #o = null;
1946
- /** @type {DocumentFragment | null} */
1947
1939
  #s = null;
1948
- #m = 0;
1940
+ /** @type {DocumentFragment | null} */
1941
+ #u = null;
1942
+ #d = 0;
1949
1943
  #l = 0;
1950
- #f = !1;
1951
- /** @type {Set<Effect>} */
1952
- #c = /* @__PURE__ */ new Set();
1953
- /** @type {Set<Effect>} */
1954
- #g = /* @__PURE__ */ new Set();
1944
+ #p = !1;
1945
+ /** @type {Map<Effect, number>} */
1946
+ #g = /* @__PURE__ */ new Map();
1955
1947
  /**
1956
1948
  * A source containing the number of pending async deriveds/expressions.
1957
1949
  * Only created if `$effect.pending()` is used inside the boundary,
@@ -1959,9 +1951,9 @@ class go {
1959
1951
  * calls followed by no-op flushes
1960
1952
  * @type {Source<number> | null}
1961
1953
  */
1962
- #h = null;
1963
- #w = vo(() => (this.#h = wr(this.#m), () => {
1964
- this.#h = null;
1954
+ #f = null;
1955
+ #m = vo(() => (this.#f = wr(this.#d), () => {
1956
+ this.#f = null;
1965
1957
  }));
1966
1958
  /**
1967
1959
  * @param {TemplateNode} node
@@ -1970,14 +1962,14 @@ class go {
1970
1962
  * @param {((error: unknown) => unknown) | undefined} [transform_error]
1971
1963
  */
1972
1964
  constructor(t, r, n, i) {
1973
- this.#e = t, this.#r = r, this.#u = (s) => {
1965
+ this.#e = t, this.#r = r, this.#o = (s) => {
1974
1966
  var a = (
1975
1967
  /** @type {Effect} */
1976
1968
  W
1977
1969
  );
1978
1970
  a.b = this, a.f |= mn, n(s);
1979
1971
  }, this.parent = /** @type {Effect} */
1980
- W.b, this.transform_error = i ?? this.parent?.transform_error ?? ((s) => s), this.#i = ds(() => {
1972
+ W.b, this.transform_error = i ?? this.parent?.transform_error ?? ((s) => s), this.#n = ds(() => {
1981
1973
  if (ue) {
1982
1974
  const s = Yi(
1983
1975
  /** @type {TemplateNode} */
@@ -1987,15 +1979,15 @@ class go {
1987
1979
  const a = s === Bi;
1988
1980
  if (s.startsWith(ei)) {
1989
1981
  const u = JSON.parse(s.slice(ei.length));
1990
- this.#y(u);
1991
- } else a ? this.#T() : this.#E();
1982
+ this.#x(u);
1983
+ } else a ? this.#v() : this.#y();
1992
1984
  } else
1993
- this.#v();
1985
+ this.#w();
1994
1986
  }, po), ue && (this.#e = de);
1995
1987
  }
1996
- #E() {
1988
+ #y() {
1997
1989
  try {
1998
- this.#a = mt(() => this.#u(this.#e));
1990
+ this.#i = mt(() => this.#o(this.#e));
1999
1991
  } catch (t) {
2000
1992
  this.error(t);
2001
1993
  }
@@ -2003,9 +1995,9 @@ class go {
2003
1995
  /**
2004
1996
  * @param {unknown} error The deserialized error from the server's hydration comment
2005
1997
  */
2006
- #y(t) {
1998
+ #x(t) {
2007
1999
  const r = this.#r.failed, { reset: n, invoke_onerror: i } = this.#b(t);
2008
- Ht(i), r && (this.#o = mt(() => {
2000
+ Ht(i), r && (this.#s = mt(() => {
2009
2001
  r(
2010
2002
  this.#e,
2011
2003
  () => t,
@@ -2022,80 +2014,80 @@ class go {
2022
2014
  #b(t) {
2023
2015
  var r = !1, n = !1;
2024
2016
  const i = () => {
2025
- if (!this.#d()) {
2017
+ if (!this.#h()) {
2026
2018
  if (r) {
2027
2019
  Ta();
2028
2020
  return;
2029
2021
  }
2030
- r = !0, n && La(), this.#o !== null && dr(this.#o, () => {
2031
- this.#o = null;
2032
- }), this.#p(() => {
2033
- this.#v();
2022
+ r = !0, n && La(), this.#s !== null && dr(this.#s, () => {
2023
+ this.#s = null;
2024
+ }), this.#E(() => {
2025
+ this.#w();
2034
2026
  });
2035
2027
  }
2036
2028
  };
2037
2029
  return { reset: i, invoke_onerror: () => {
2038
- if (!this.#d())
2030
+ if (!this.#h())
2039
2031
  try {
2040
2032
  n = !0, this.#r.onerror?.(t, i), n = !1;
2041
2033
  } catch (a) {
2042
- it(a, this.#i && this.#i.parent);
2034
+ it(a, this.#n && this.#n.parent);
2043
2035
  }
2044
2036
  } };
2045
2037
  }
2046
- #d() {
2047
- return (this.#i.f & (Me | Ir)) !== 0;
2038
+ #h() {
2039
+ return (this.#n.f & (Me | Ir)) !== 0;
2048
2040
  }
2049
- #T() {
2041
+ #v() {
2050
2042
  const t = this.#r.pending;
2051
- t && (this.is_pending = !0, this.#n = mt(() => t(this.#e)), Ht(() => {
2052
- if (!this.#d()) {
2053
- var r = this.#s = document.createDocumentFragment(), n = Lt(), i = !1;
2054
- if (r.append(n), this.#a = this.#p(() => {
2043
+ t && (this.is_pending = !0, this.#a = mt(() => t(this.#e)), Ht(() => {
2044
+ if (!this.#h()) {
2045
+ var r = this.#u = document.createDocumentFragment(), n = Lt(), i = !1;
2046
+ if (r.append(n), this.#i = this.#E(() => {
2055
2047
  try {
2056
- return mt(() => this.#u(n));
2048
+ return mt(() => this.#o(n));
2057
2049
  } catch (s) {
2058
2050
  try {
2059
2051
  this.error(s), i = !0;
2060
2052
  } catch (a) {
2061
- it(a, this.#i.parent);
2053
+ it(a, this.#n.parent);
2062
2054
  }
2063
2055
  return null;
2064
2056
  }
2065
- }), this.#a === null) {
2066
- this.#s = null, i && this.#x(
2057
+ }), this.#i === null) {
2058
+ this.#u = null, i && this.#c(
2067
2059
  /** @type {Batch} */
2068
2060
  $
2069
2061
  );
2070
2062
  return;
2071
2063
  }
2072
- this.#l === 0 && (this.#e.before(r), this.#s = null, dr(
2064
+ this.#l === 0 && (this.#e.before(r), this.#u = null, dr(
2073
2065
  /** @type {Effect} */
2074
- this.#n,
2066
+ this.#a,
2075
2067
  () => {
2076
- this.#n = null;
2068
+ this.#a = null;
2077
2069
  }
2078
- ), this.#x(
2070
+ ), this.#c(
2079
2071
  /** @type {Batch} */
2080
2072
  $
2081
2073
  ));
2082
2074
  }
2083
2075
  }));
2084
2076
  }
2085
- #v() {
2077
+ #w() {
2086
2078
  try {
2087
- if (this.is_pending = this.has_pending_snippet(), this.#l = 0, this.#m = 0, this.#a = mt(() => {
2088
- this.#u(this.#e);
2079
+ if (this.is_pending = this.has_pending_snippet(), this.#l = 0, this.#d = 0, this.#i = mt(() => {
2080
+ this.#o(this.#e);
2089
2081
  }), this.#l > 0) {
2090
- var t = this.#s = document.createDocumentFragment();
2091
- ys(this.#a, t);
2082
+ var t = this.#u = document.createDocumentFragment();
2083
+ ys(this.#i, t);
2092
2084
  const r = (
2093
2085
  /** @type {(anchor: Node) => void} */
2094
2086
  this.#r.pending
2095
2087
  );
2096
- this.#n = mt(() => r(this.#e));
2088
+ this.#a = mt(() => r(this.#e));
2097
2089
  } else
2098
- this.#x(
2090
+ this.#c(
2099
2091
  /** @type {Batch} */
2100
2092
  $
2101
2093
  );
@@ -2106,15 +2098,15 @@ class go {
2106
2098
  /**
2107
2099
  * @param {Batch} batch
2108
2100
  */
2109
- #x(t) {
2110
- this.is_pending = !1, t.transfer_effects(this.#c, this.#g);
2101
+ #c(t) {
2102
+ this.is_pending = !1, t.transfer_reactions(this.#g);
2111
2103
  }
2112
2104
  /**
2113
2105
  * Defer an effect inside a pending boundary until the boundary resolves
2114
2106
  * @param {Effect} effect
2115
2107
  */
2116
2108
  defer_effect(t) {
2117
- Ji(t, this.#c, this.#g);
2109
+ Ji(t, this.#g);
2118
2110
  }
2119
2111
  /**
2120
2112
  * Returns `false` if the effect exists inside a boundary whose pending snippet is shown
@@ -2130,9 +2122,9 @@ class go {
2130
2122
  * @template T
2131
2123
  * @param {() => T} fn
2132
2124
  */
2133
- #p(t) {
2134
- var r = W, n = V, i = Se;
2135
- ft(this.#i), Je(this.#i), Kt(this.#i.ctx);
2125
+ #E(t) {
2126
+ var r = W, n = X, i = Se;
2127
+ ft(this.#n), Je(this.#n), Kt(this.#n.ctx);
2136
2128
  try {
2137
2129
  return xt.ensure(), t();
2138
2130
  } finally {
@@ -2145,14 +2137,14 @@ class go {
2145
2137
  * @param {1 | -1} d
2146
2138
  * @param {Batch} batch
2147
2139
  */
2148
- #M(t, r) {
2140
+ #T(t, r) {
2149
2141
  if (!this.has_pending_snippet()) {
2150
- this.parent && this.parent.#M(t, r);
2142
+ this.parent && this.parent.#T(t, r);
2151
2143
  return;
2152
2144
  }
2153
- this.#l += t, this.#l === 0 && (this.#x(r), this.#n && dr(this.#n, () => {
2154
- this.#n = null;
2155
- }), this.#s && (this.#e.before(this.#s), this.#s = null));
2145
+ this.#l += t, this.#l === 0 && (this.#c(r), this.#a && dr(this.#a, () => {
2146
+ this.#a = null;
2147
+ }), this.#u && (this.#e.before(this.#u), this.#u = null));
2156
2148
  }
2157
2149
  /**
2158
2150
  * Update the source that powers `$effect.pending()` inside this boundary,
@@ -2162,37 +2154,37 @@ class go {
2162
2154
  * @param {Batch} batch
2163
2155
  */
2164
2156
  update_pending_count(t, r) {
2165
- this.#M(t, r), this.#m += t, !(!this.#h || this.#f) && (this.#f = !0, Ht(() => {
2166
- this.#f = !1, this.#h && kr(this.#h, this.#m);
2157
+ this.#T(t, r), this.#d += t, !(!this.#f || this.#p) && (this.#p = !0, Ht(() => {
2158
+ this.#p = !1, this.#f && kr(this.#f, this.#d);
2167
2159
  }));
2168
2160
  }
2169
2161
  get_effect_pending() {
2170
- return this.#w(), ve(
2162
+ return this.#m(), ve(
2171
2163
  /** @type {Source<number>} */
2172
- this.#h
2164
+ this.#f
2173
2165
  );
2174
2166
  }
2175
2167
  /** @param {unknown} error */
2176
2168
  error(t) {
2177
2169
  if (t === Pt || !this.#r.onerror && !this.#r.failed)
2178
2170
  throw t;
2179
- $?.is_fork ? (this.#a && $.skip_effect(this.#a), this.#n && $.skip_effect(this.#n), this.#o && $.skip_effect(this.#o), $.oncommit(() => {
2180
- this.#d() || this.#S(t);
2181
- })) : this.#S(t);
2171
+ $?.is_fork ? (this.#i && $.skip_effect(this.#i), this.#a && $.skip_effect(this.#a), this.#s && $.skip_effect(this.#s), $.oncommit(() => {
2172
+ this.#h() || this.#M(t);
2173
+ })) : this.#M(t);
2182
2174
  }
2183
2175
  /**
2184
2176
  * @param {unknown} error
2185
2177
  */
2186
- #S(t) {
2187
- this.#a && (Ie(this.#a), this.#a = null), this.#n && (Ie(this.#n), this.#n = null), this.#o && (Ie(this.#o), this.#o = null), ue && (lt(
2178
+ #M(t) {
2179
+ this.#i && (Ie(this.#i), this.#i = null), this.#a && (Ie(this.#a), this.#a = null), this.#s && (Ie(this.#s), this.#s = null), ue && (lt(
2188
2180
  /** @type {TemplateNode} */
2189
2181
  this.#t
2190
2182
  ), Ui(), lt(ki()));
2191
2183
  let r = this.#r.failed;
2192
2184
  const n = (i) => {
2193
- if (this.#d()) return;
2185
+ if (this.#h()) return;
2194
2186
  const { reset: s, invoke_onerror: a } = this.#b(i);
2195
- a(), r && !this.#d() && (this.#o = this.#p(() => {
2187
+ a(), r && !this.#h() && (this.#s = this.#E(() => {
2196
2188
  try {
2197
2189
  return mt(() => {
2198
2190
  var o = (
@@ -2209,25 +2201,25 @@ class go {
2209
2201
  return it(
2210
2202
  o,
2211
2203
  /** @type {Effect} */
2212
- this.#i.parent
2204
+ this.#n.parent
2213
2205
  ), null;
2214
2206
  }
2215
2207
  }));
2216
2208
  };
2217
2209
  Ht(() => {
2218
- if (!this.#d()) {
2210
+ if (!this.#h()) {
2219
2211
  var i;
2220
2212
  try {
2221
2213
  i = this.transform_error(t);
2222
2214
  } catch (s) {
2223
- it(s, this.#i && this.#i.parent);
2215
+ it(s, this.#n && this.#n.parent);
2224
2216
  return;
2225
2217
  }
2226
2218
  i !== null && typeof i == "object" && typeof /** @type {any} */
2227
2219
  i.then == "function" ? i.then(
2228
2220
  n,
2229
2221
  /** @param {unknown} e */
2230
- (s) => it(s, this.#i && this.#i.parent)
2222
+ (s) => it(s, this.#n && this.#n.parent)
2231
2223
  ) : n(i);
2232
2224
  }
2233
2225
  });
@@ -2362,30 +2354,30 @@ class xo {
2362
2354
  * Keys of effects that are currently outroing
2363
2355
  * @type {Set<Key>}
2364
2356
  */
2365
- #u = /* @__PURE__ */ new Set();
2357
+ #o = /* @__PURE__ */ new Set();
2366
2358
  /**
2367
2359
  * Whether to pause (i.e. outro) on change, or destroy immediately.
2368
2360
  * This is necessary for `<svelte:element>`
2369
2361
  */
2370
- #i = !0;
2362
+ #n = !0;
2371
2363
  /**
2372
2364
  * @param {TemplateNode} anchor
2373
2365
  * @param {boolean} transition
2374
2366
  */
2375
2367
  constructor(t, r = !0) {
2376
- this.anchor = t, this.#i = r;
2368
+ this.anchor = t, this.#n = r;
2377
2369
  }
2378
2370
  /**
2379
2371
  * @param {Batch} batch
2380
2372
  */
2381
- #a = (t) => {
2373
+ #i = (t) => {
2382
2374
  if (this.#e.has(t)) {
2383
2375
  var r = (
2384
2376
  /** @type {Key} */
2385
2377
  this.#e.get(t)
2386
2378
  ), n = this.#t.get(r);
2387
2379
  if (n)
2388
- si(n), this.#u.delete(r);
2380
+ si(n), this.#o.delete(r);
2389
2381
  else {
2390
2382
  var i = this.#r.get(r);
2391
2383
  i && (si(i.effect), this.#t.set(r, i.effect), this.#r.delete(r), i.fragment.lastChild.remove(), this.anchor.before(i.fragment), n = i.effect);
@@ -2397,23 +2389,23 @@ class xo {
2397
2389
  o && (Ie(o.effect), this.#r.delete(a));
2398
2390
  }
2399
2391
  for (const [s, a] of this.#t) {
2400
- if (s === r || this.#u.has(s)) continue;
2392
+ if (s === r || this.#o.has(s)) continue;
2401
2393
  const o = () => {
2402
2394
  if (Array.from(this.#e.values()).includes(s)) {
2403
2395
  var l = document.createDocumentFragment();
2404
2396
  ys(a, l), l.append(Lt()), this.#r.set(s, { effect: a, fragment: l });
2405
2397
  } else
2406
2398
  Ie(a);
2407
- this.#u.delete(s), this.#t.delete(s);
2399
+ this.#o.delete(s), this.#t.delete(s);
2408
2400
  };
2409
- this.#i || !n ? (this.#u.add(s), dr(a, o, !1)) : o();
2401
+ this.#n || !n ? (this.#o.add(s), dr(a, o, !1)) : o();
2410
2402
  }
2411
2403
  }
2412
2404
  };
2413
2405
  /**
2414
2406
  * @param {Batch} batch
2415
2407
  */
2416
- #n = (t) => {
2408
+ #a = (t) => {
2417
2409
  this.#e.delete(t);
2418
2410
  const r = Array.from(this.#e.values());
2419
2411
  for (const [n, i] of this.#r)
@@ -2446,9 +2438,9 @@ class xo {
2446
2438
  o === t ? n.unskip_effect(u) : n.skip_effect(u);
2447
2439
  for (const [o, u] of this.#r)
2448
2440
  o === t ? n.unskip_effect(u.effect) : n.skip_effect(u.effect);
2449
- n.oncommit(this.#a), n.ondiscard(this.#n);
2441
+ n.oncommit(this.#i), n.ondiscard(this.#a);
2450
2442
  } else
2451
- ue && (this.anchor = de), this.#a(n);
2443
+ ue && (this.anchor = de), this.#i(n);
2452
2444
  }
2453
2445
  }
2454
2446
  function wo(e) {
@@ -2556,7 +2548,10 @@ function Oo(e, t, r, n) {
2556
2548
  const Bo = Symbol("is custom element"), No = Symbol("is html"), Ho = wa ? "link" : "LINK";
2557
2549
  function hi(e, t, r, n) {
2558
2550
  var i = Co(e);
2559
- ue && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Ho) || i[t] !== (i[t] = r) && (t === "loading" && (e[xa] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && Do(e).has(t) ? e[t] = r : e.setAttribute(t, r));
2551
+ if (!(ue && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Ho))) {
2552
+ var s = i[t];
2553
+ s !== (i[t] = r) && (t === "loading" && (e[xa] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && Do(e).has(t) ? e[t] = r : ue && (typeof r == "number" || typeof r == "boolean") && s === String(r) || e.setAttribute(t, r));
2554
+ }
2560
2555
  }
2561
2556
  function Co(e) {
2562
2557
  return (
@@ -2680,7 +2675,7 @@ function Ro(e, t, r) {
2680
2675
  else {
2681
2676
  var i = !0;
2682
2677
  n.unsubscribe = Kn(e, (s) => {
2683
- i ? n.source.v = s : Fe(n.source, s);
2678
+ i ? n.source.v = s : Ve(n.source, s);
2684
2679
  }), i = !1;
2685
2680
  }
2686
2681
  return e && An in r ? Io(e) : ve(n.source);
@@ -2724,7 +2719,7 @@ function Tt(e, t, r, n) {
2724
2719
  function(c, v) {
2725
2720
  if (arguments.length > 0) {
2726
2721
  const m = v ? ve(f) : c;
2727
- return Fe(f, m), l = !0, i !== void 0 && (i = m), c;
2722
+ return Ve(f, m), l = !0, i !== void 0 && (i = m), c;
2728
2723
  }
2729
2724
  return wt && l || h.f & Me ? f.v : ve(f);
2730
2725
  }
@@ -2758,7 +2753,7 @@ class Uo {
2758
2753
  return a === ba ? !0 : (ve(r.get(a) ?? n(a, Reflect.get(s, a))), Reflect.has(s, a));
2759
2754
  },
2760
2755
  set(s, a, o) {
2761
- return Fe(r.get(a) ?? n(a, o), o), Reflect.set(s, a, o);
2756
+ return Ve(r.get(a) ?? n(a, o), o), Reflect.set(s, a, o);
2762
2757
  }
2763
2758
  }
2764
2759
  );
@@ -3125,16 +3120,16 @@ var di = { exports: {} };
3125
3120
  };
3126
3121
  var Z = function() {
3127
3122
  if (U === 1) {
3128
- var k = 0, le = "", ht = void 0;
3123
+ var k = 0, fe = "", ht = void 0;
3129
3124
  if ("contentType" in b)
3130
- k = 200, le = "OK", ht = b.contentType;
3125
+ k = 200, fe = "OK", ht = b.contentType;
3131
3126
  else
3132
3127
  try {
3133
- k = b.status, le = b.statusText, ht = b.getResponseHeader("Content-Type");
3128
+ k = b.status, fe = b.statusText, ht = b.getResponseHeader("Content-Type");
3134
3129
  } catch {
3135
- k = 0, le = "", ht = void 0;
3130
+ k = 0, fe = "", ht = void 0;
3136
3131
  }
3137
- k !== 0 && (U = 2, P.readyState = 2, P.status = k, P.statusText = le, P._contentType = ht, P.onreadystatechange());
3132
+ k !== 0 && (U = 2, P.readyState = 2, P.status = k, P.statusText = fe, P._contentType = ht, P.onreadystatechange());
3138
3133
  }
3139
3134
  }, ae = function() {
3140
3135
  if (Z(), U === 2 || U === 3) {
@@ -3146,16 +3141,16 @@ var di = { exports: {} };
3146
3141
  }
3147
3142
  P.readyState = 3, P.responseText = k, P.onprogress();
3148
3143
  }
3149
- }, j = function(k, le) {
3150
- if ((le == null || le.preventDefault == null) && (le = {
3144
+ }, j = function(k, fe) {
3145
+ if ((fe == null || fe.preventDefault == null) && (fe = {
3151
3146
  preventDefault: A
3152
3147
  }), ae(), U === 1 || U === 2 || U === 3) {
3153
3148
  if (U = 4, D !== 0 && (i(D), D = 0), P.readyState = 4, k === "load")
3154
- P.onload(le);
3149
+ P.onload(fe);
3155
3150
  else if (k === "error")
3156
- P.onerror(le);
3151
+ P.onerror(fe);
3157
3152
  else if (k === "abort")
3158
- P.onabort(le);
3153
+ P.onabort(fe);
3159
3154
  else
3160
3155
  throw new TypeError();
3161
3156
  P.onreadystatechange();
@@ -3235,8 +3230,8 @@ var di = { exports: {} };
3235
3230
  b(null);
3236
3231
  }, d.onreadystatechange = function() {
3237
3232
  if (d.readyState === s.HEADERS_RECEIVED) {
3238
- var ne = d.status, se = d.statusText, k = d.getResponseHeader("Content-Type"), le = d.getAllResponseHeaders();
3239
- w(ne, se, k, new R(le));
3233
+ var ne = d.status, se = d.statusText, k = d.getResponseHeader("Content-Type"), fe = d.getAllResponseHeaders();
3234
+ w(ne, se, k, new R(fe));
3240
3235
  }
3241
3236
  }, d.withCredentials = D;
3242
3237
  for (var j in Z)
@@ -3259,11 +3254,11 @@ var di = { exports: {} };
3259
3254
  signal: ne,
3260
3255
  cache: "no-store"
3261
3256
  }).then(function(k) {
3262
- return ae = k.body.getReader(), w(k.status, k.statusText, k.headers.get("Content-Type"), new x(k.headers)), new f(function(le, ht) {
3257
+ return ae = k.body.getReader(), w(k.status, k.statusText, k.headers.get("Content-Type"), new x(k.headers)), new f(function(fe, ht) {
3263
3258
  var sr = function() {
3264
3259
  ae.read().then(function(ze) {
3265
3260
  if (ze.done)
3266
- le(void 0);
3261
+ fe(void 0);
3267
3262
  else {
3268
3263
  var Oe = se.decode(ze.value, { stream: !0 });
3269
3264
  P(Oe), sr();
@@ -3336,11 +3331,11 @@ var di = { exports: {} };
3336
3331
  Y.call(this, d), this.error = w.error;
3337
3332
  }
3338
3333
  y.prototype = Object.create(Y.prototype);
3339
- var p = -1, E = 0, g = 1, N = 2, C = -1, L = 0, te = 1, re = 2, fe = 3, me = /^text\/event\-stream(;.*)?$/i, Ze = 1e3, Re = 18e6, q = function(d, w) {
3334
+ var p = -1, E = 0, g = 1, N = 2, C = -1, L = 0, te = 1, re = 2, he = 3, me = /^text\/event\-stream(;.*)?$/i, je = 1e3, Re = 18e6, q = function(d, w) {
3340
3335
  var P = d == null ? w : parseInt(d, 10);
3341
3336
  return P !== P && (P = w), ie(P);
3342
3337
  }, ie = function(d) {
3343
- return Math.min(Math.max(d, Ze), Re);
3338
+ return Math.min(Math.max(d, je), Re);
3344
3339
  }, _ = function(d, w, P) {
3345
3340
  try {
3346
3341
  typeof w == "function" && w.call(d, P);
@@ -3348,16 +3343,16 @@ var di = { exports: {} };
3348
3343
  O(b);
3349
3344
  }
3350
3345
  };
3351
- function X(d, w) {
3352
- H.call(this), w = w || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, je(this, d, w);
3346
+ function F(d, w) {
3347
+ H.call(this), w = w || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, Xe(this, d, w);
3353
3348
  }
3354
3349
  function xe() {
3355
3350
  return s != null && "withCredentials" in s.prototype || a == null ? new s() : new a();
3356
3351
  }
3357
3352
  var we = h != null && c != null && "body" in c.prototype;
3358
- function je(d, w, P) {
3353
+ function Xe(d, w, P) {
3359
3354
  w = String(w);
3360
- var b = !!P.withCredentials, U = P.lastEventIdQueryParameterName || "lastEventId", D = ie(1e3), Z = q(P.heartbeatTimeout, 45e3), ae = "", j = D, ne = !1, se = 0, k = P.headers || {}, le = P.Transport, ht = we && le == null ? void 0 : new ee(le != null ? new le() : xe()), sr = le != null && typeof le != "string" ? new le() : ht == null ? new G() : new S(), ze = void 0, Oe = 0, Qe = p, Gt = "", Mr = "", ct = "", Sr = "", Be = L, tn = 0, Ot = 0, oa = function(Ee, ge, Ge, Ue) {
3355
+ var b = !!P.withCredentials, U = P.lastEventIdQueryParameterName || "lastEventId", D = ie(1e3), Z = q(P.heartbeatTimeout, 45e3), ae = "", j = D, ne = !1, se = 0, k = P.headers || {}, fe = P.Transport, ht = we && fe == null ? void 0 : new ee(fe != null ? new fe() : xe()), sr = fe != null && typeof fe != "string" ? new fe() : ht == null ? new G() : new S(), ze = void 0, Oe = 0, Qe = p, Gt = "", Mr = "", ct = "", Sr = "", Be = L, tn = 0, Ot = 0, oa = function(Ee, ge, Ge, Ue) {
3361
3356
  if (Qe === E)
3362
3357
  if (Ee === 200 && Ge != null && me.test(Ge)) {
3363
3358
  Qe = g, ne = Date.now(), j = D, d.readyState = g;
@@ -3412,7 +3407,7 @@ var di = { exports: {} };
3412
3407
  }
3413
3408
  Be = Ue === 13 ? C : L;
3414
3409
  } else
3415
- Be === L && (tn = Te, Be = te), Be === te ? Ue === 58 && (Ot = Te + 1, Be = re) : Be === re && (Be = fe);
3410
+ Be === L && (tn = Te, Be = te), Be === te ? Ue === 58 && (Ot = Te + 1, Be = re) : Be === re && (Be = he);
3416
3411
  }
3417
3412
  }
3418
3413
  }, $n = function(Ee) {
@@ -3461,17 +3456,17 @@ var di = { exports: {} };
3461
3456
  };
3462
3457
  d.url = w, d.readyState = E, d.withCredentials = b, d.headers = k, d._close = rn, ar();
3463
3458
  }
3464
- X.prototype = Object.create(H.prototype), X.prototype.CONNECTING = E, X.prototype.OPEN = g, X.prototype.CLOSED = N, X.prototype.close = function() {
3459
+ F.prototype = Object.create(H.prototype), F.prototype.CONNECTING = E, F.prototype.OPEN = g, F.prototype.CLOSED = N, F.prototype.close = function() {
3465
3460
  this._close();
3466
- }, X.CONNECTING = E, X.OPEN = g, X.CLOSED = N, X.prototype.withCredentials = void 0;
3461
+ }, F.CONNECTING = E, F.OPEN = g, F.CLOSED = N, F.prototype.withCredentials = void 0;
3467
3462
  var Ae = u;
3468
- s != null && (u == null || !("withCredentials" in u.prototype)) && (Ae = X), function(d) {
3463
+ s != null && (u == null || !("withCredentials" in u.prototype)) && (Ae = F), function(d) {
3469
3464
  {
3470
3465
  var w = d(t);
3471
3466
  w !== void 0 && (e.exports = w);
3472
3467
  }
3473
3468
  }(function(d) {
3474
- d.EventSourcePolyfill = X, d.NativeEventSource = u, d.EventSource = Ae;
3469
+ d.EventSourcePolyfill = F, d.NativeEventSource = u, d.EventSource = Ae;
3475
3470
  });
3476
3471
  })(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : Qr : globalThis);
3477
3472
  })(di, di.exports);
@@ -3566,28 +3561,28 @@ var Hs = { exports: {} };
3566
3561
  return this.$d.getTime();
3567
3562
  }, y.startOf = function(p, E) {
3568
3563
  var g = this, N = !!O.u(E) || E, C = O.p(p), L = function(ie, _) {
3569
- var X = O.w(g.$u ? Date.UTC(g.$y, _, ie) : new Date(g.$y, _, ie), g);
3570
- return N ? X : X.endOf(l);
3564
+ var F = O.w(g.$u ? Date.UTC(g.$y, _, ie) : new Date(g.$y, _, ie), g);
3565
+ return N ? F : F.endOf(l);
3571
3566
  }, te = function(ie, _) {
3572
3567
  return O.w(g.toDate()[ie].apply(g.toDate("s"), (N ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(_)), g);
3573
- }, re = this.$W, fe = this.$M, me = this.$D, Ze = "set" + (this.$u ? "UTC" : "");
3568
+ }, re = this.$W, he = this.$M, me = this.$D, je = "set" + (this.$u ? "UTC" : "");
3574
3569
  switch (C) {
3575
3570
  case v:
3576
3571
  return N ? L(1, 0) : L(31, 11);
3577
3572
  case h:
3578
- return N ? L(1, fe) : L(0, fe + 1);
3573
+ return N ? L(1, he) : L(0, he + 1);
3579
3574
  case f:
3580
3575
  var Re = this.$locale().weekStart || 0, q = (re < Re ? re + 7 : re) - Re;
3581
- return L(N ? me - q : me + (6 - q), fe);
3576
+ return L(N ? me - q : me + (6 - q), he);
3582
3577
  case l:
3583
3578
  case m:
3584
- return te(Ze + "Hours", 0);
3579
+ return te(je + "Hours", 0);
3585
3580
  case u:
3586
- return te(Ze + "Minutes", 1);
3581
+ return te(je + "Minutes", 1);
3587
3582
  case o:
3588
- return te(Ze + "Seconds", 2);
3583
+ return te(je + "Seconds", 2);
3589
3584
  case a:
3590
- return te(Ze + "Milliseconds", 3);
3585
+ return te(je + "Milliseconds", 3);
3591
3586
  default:
3592
3587
  return this.clone();
3593
3588
  }
@@ -3607,9 +3602,9 @@ var Hs = { exports: {} };
3607
3602
  }, y.add = function(p, E) {
3608
3603
  var g, N = this;
3609
3604
  p = Number(p);
3610
- var C = O.p(E), L = function(fe) {
3605
+ var C = O.p(E), L = function(he) {
3611
3606
  var me = H(N);
3612
- return O.w(me.date(me.date() + Math.round(fe * p)), N);
3607
+ return O.w(me.date(me.date() + Math.round(he * p)), N);
3613
3608
  };
3614
3609
  if (C === h) return this.set(h, this.$M + p);
3615
3610
  if (C === v) return this.set(v, this.$y + p);
@@ -3622,16 +3617,16 @@ var Hs = { exports: {} };
3622
3617
  }, y.format = function(p) {
3623
3618
  var E = this, g = this.$locale();
3624
3619
  if (!this.isValid()) return g.invalidDate || I;
3625
- var N = p || "YYYY-MM-DDTHH:mm:ssZ", C = O.z(this), L = this.$H, te = this.$m, re = this.$M, fe = g.weekdays, me = g.months, Ze = g.meridiem, Re = function(_, X, xe, we) {
3626
- return _ && (_[X] || _(E, N)) || xe[X].slice(0, we);
3620
+ var N = p || "YYYY-MM-DDTHH:mm:ssZ", C = O.z(this), L = this.$H, te = this.$m, re = this.$M, he = g.weekdays, me = g.months, je = g.meridiem, Re = function(_, F, xe, we) {
3621
+ return _ && (_[F] || _(E, N)) || xe[F].slice(0, we);
3627
3622
  }, q = function(_) {
3628
3623
  return O.s(L % 12 || 12, _, "0");
3629
- }, ie = Ze || function(_, X, xe) {
3624
+ }, ie = je || function(_, F, xe) {
3630
3625
  var we = _ < 12 ? "AM" : "PM";
3631
3626
  return xe ? we.toLowerCase() : we;
3632
3627
  };
3633
- return N.replace(B, function(_, X) {
3634
- return X || function(xe) {
3628
+ return N.replace(B, function(_, F) {
3629
+ return F || function(xe) {
3635
3630
  switch (xe) {
3636
3631
  case "YY":
3637
3632
  return String(E.$y).slice(-2);
@@ -3652,11 +3647,11 @@ var Hs = { exports: {} };
3652
3647
  case "d":
3653
3648
  return String(E.$W);
3654
3649
  case "dd":
3655
- return Re(g.weekdaysMin, E.$W, fe, 2);
3650
+ return Re(g.weekdaysMin, E.$W, he, 2);
3656
3651
  case "ddd":
3657
- return Re(g.weekdaysShort, E.$W, fe, 3);
3652
+ return Re(g.weekdaysShort, E.$W, he, 3);
3658
3653
  case "dddd":
3659
- return fe[E.$W];
3654
+ return he[E.$W];
3660
3655
  case "H":
3661
3656
  return String(L);
3662
3657
  case "HH":
@@ -3688,7 +3683,7 @@ var Hs = { exports: {} };
3688
3683
  }, y.utcOffset = function() {
3689
3684
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
3690
3685
  }, y.diff = function(p, E, g) {
3691
- var N, C = this, L = O.p(E), te = H(p), re = (te.utcOffset() - this.utcOffset()) * n, fe = this - te, me = function() {
3686
+ var N, C = this, L = O.p(E), te = H(p), re = (te.utcOffset() - this.utcOffset()) * n, he = this - te, me = function() {
3692
3687
  return O.m(C, te);
3693
3688
  };
3694
3689
  switch (L) {
@@ -3702,22 +3697,22 @@ var Hs = { exports: {} };
3702
3697
  N = me() / 3;
3703
3698
  break;
3704
3699
  case f:
3705
- N = (fe - re) / 6048e5;
3700
+ N = (he - re) / 6048e5;
3706
3701
  break;
3707
3702
  case l:
3708
- N = (fe - re) / 864e5;
3703
+ N = (he - re) / 864e5;
3709
3704
  break;
3710
3705
  case u:
3711
- N = fe / i;
3706
+ N = he / i;
3712
3707
  break;
3713
3708
  case o:
3714
- N = fe / n;
3709
+ N = he / n;
3715
3710
  break;
3716
3711
  case a:
3717
- N = fe / r;
3712
+ N = he / r;
3718
3713
  break;
3719
3714
  default:
3720
- N = fe;
3715
+ N = he;
3721
3716
  }
3722
3717
  return g ? N : O.a(N);
3723
3718
  }, y.daysInMonth = function() {
@@ -3852,10 +3847,10 @@ var Cs = { exports: {} };
3852
3847
  O && (J = x[2]), u = this.$locale(), !H && J && (u = z.Ls[J]), this.$d = function(E, g, N, C) {
3853
3848
  try {
3854
3849
  if (["x", "X"].indexOf(g) > -1) return new Date((g === "X" ? 1e3 : 1) * E);
3855
- var L = I(g)(E), te = L.year, re = L.month, fe = L.day, me = L.hours, Ze = L.minutes, Re = L.seconds, q = L.milliseconds, ie = L.zone, _ = L.week, X = /* @__PURE__ */ new Date(), xe = fe || (te || re ? 1 : X.getDate()), we = te || X.getFullYear(), je = 0;
3856
- te && !re || (je = re > 0 ? re - 1 : X.getMonth());
3857
- var Ae, d = me || 0, w = Ze || 0, P = Re || 0, b = q || 0;
3858
- return ie ? new Date(Date.UTC(we, je, xe, d, w, P, b + 60 * ie.offset * 1e3)) : N ? new Date(Date.UTC(we, je, xe, d, w, P, b)) : (Ae = new Date(we, je, xe, d, w, P, b), _ && (Ae = C(Ae).week(_).toDate()), Ae);
3850
+ var L = I(g)(E), te = L.year, re = L.month, he = L.day, me = L.hours, je = L.minutes, Re = L.seconds, q = L.milliseconds, ie = L.zone, _ = L.week, F = /* @__PURE__ */ new Date(), xe = he || (te || re ? 1 : F.getDate()), we = te || F.getFullYear(), Xe = 0;
3851
+ te && !re || (Xe = re > 0 ? re - 1 : F.getMonth());
3852
+ var Ae, d = me || 0, w = je || 0, P = Re || 0, b = q || 0;
3853
+ return ie ? new Date(Date.UTC(we, Xe, xe, d, w, P, b + 60 * ie.offset * 1e3)) : N ? new Date(Date.UTC(we, Xe, xe, d, w, P, b)) : (Ae = new Date(we, Xe, xe, d, w, P, b), _ && (Ae = C(Ae).week(_).toDate()), Ae);
3859
3854
  } catch {
3860
3855
  return /* @__PURE__ */ new Date("");
3861
3856
  }
@@ -4044,44 +4039,44 @@ var du = function() {
4044
4039
  return t;
4045
4040
  }, Yr.apply(this, arguments);
4046
4041
  };
4047
- var F;
4042
+ var V;
4048
4043
  (function(e) {
4049
4044
  e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
4050
- })(F || (F = {}));
4051
- var oe;
4045
+ })(V || (V = {}));
4046
+ var le;
4052
4047
  (function(e) {
4053
4048
  e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
4054
- })(oe || (oe = {}));
4049
+ })(le || (le = {}));
4055
4050
  var $t;
4056
4051
  (function(e) {
4057
4052
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
4058
4053
  })($t || ($t = {}));
4059
4054
  function pi(e) {
4060
- return e.type === oe.literal;
4055
+ return e.type === le.literal;
4061
4056
  }
4062
4057
  function mu(e) {
4063
- return e.type === oe.argument;
4058
+ return e.type === le.argument;
4064
4059
  }
4065
4060
  function Rs(e) {
4066
- return e.type === oe.number;
4061
+ return e.type === le.number;
4067
4062
  }
4068
4063
  function zs(e) {
4069
- return e.type === oe.date;
4064
+ return e.type === le.date;
4070
4065
  }
4071
4066
  function Gs(e) {
4072
- return e.type === oe.time;
4067
+ return e.type === le.time;
4073
4068
  }
4074
4069
  function Us(e) {
4075
- return e.type === oe.select;
4070
+ return e.type === le.select;
4076
4071
  }
4077
4072
  function ks(e) {
4078
- return e.type === oe.plural;
4073
+ return e.type === le.plural;
4079
4074
  }
4080
4075
  function gu(e) {
4081
- return e.type === oe.pound;
4076
+ return e.type === le.pound;
4082
4077
  }
4083
4078
  function Ys(e) {
4084
- return e.type === oe.tag;
4079
+ return e.type === le.tag;
4085
4080
  }
4086
4081
  function Zs(e) {
4087
4082
  return !!(e && typeof e == "object" && e.type === $t.number);
@@ -4181,14 +4176,14 @@ function bu(e) {
4181
4176
  return "";
4182
4177
  }), t;
4183
4178
  }
4184
- var he = function() {
4185
- return he = Object.assign || function(t) {
4179
+ var ce = function() {
4180
+ return ce = Object.assign || function(t) {
4186
4181
  for (var r, n = 1, i = arguments.length; n < i; n++) {
4187
4182
  r = arguments[n];
4188
4183
  for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
4189
4184
  }
4190
4185
  return t;
4191
- }, he.apply(this, arguments);
4186
+ }, ce.apply(this, arguments);
4192
4187
  };
4193
4188
  var xu = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
4194
4189
  function wu(e) {
@@ -4312,13 +4307,13 @@ function Su(e) {
4312
4307
  t.notation = "compact", t.compactDisplay = "long";
4313
4308
  continue;
4314
4309
  case "scientific":
4315
- t = he(he(he({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
4316
- return he(he({}, u), yi(l));
4310
+ t = ce(ce(ce({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
4311
+ return ce(ce({}, u), yi(l));
4317
4312
  }, {}));
4318
4313
  continue;
4319
4314
  case "engineering":
4320
- t = he(he(he({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
4321
- return he(he({}, u), yi(l));
4315
+ t = ce(ce(ce({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
4316
+ return ce(ce({}, u), yi(l));
4322
4317
  }, {}));
4323
4318
  continue;
4324
4319
  case "notation-simple":
@@ -4387,17 +4382,17 @@ function Su(e) {
4387
4382
  return f === "*" ? t.minimumFractionDigits = l.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : c && v ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + v.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
4388
4383
  });
4389
4384
  var s = i.options[0];
4390
- s === "w" ? t = he(he({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = he(he({}, t), gi(s)));
4385
+ s === "w" ? t = ce(ce({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = ce(ce({}, t), gi(s)));
4391
4386
  continue;
4392
4387
  }
4393
4388
  if (Xs.test(i.stem)) {
4394
- t = he(he({}, t), gi(i.stem));
4389
+ t = ce(ce({}, t), gi(i.stem));
4395
4390
  continue;
4396
4391
  }
4397
4392
  var a = Vs(i.stem);
4398
- a && (t = he(he({}, t), a));
4393
+ a && (t = ce(ce({}, t), a));
4399
4394
  var o = Mu(i.stem);
4400
- o && (t = he(he({}, t), o));
4395
+ o && (t = ce(ce({}, t), o));
4401
4396
  }
4402
4397
  return t;
4403
4398
  }
@@ -5981,13 +5976,13 @@ var Yu = (
5981
5976
  if (s === 35 && (r === "plural" || r === "selectordinal")) {
5982
5977
  var o = this.clonePosition();
5983
5978
  this.bump(), i.push({
5984
- type: oe.pound,
5979
+ type: le.pound,
5985
5980
  location: Q(o, this.clonePosition())
5986
5981
  });
5987
5982
  } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
5988
5983
  if (n)
5989
5984
  break;
5990
- return this.error(F.UNMATCHED_CLOSING_TAG, Q(this.clonePosition(), this.clonePosition()));
5985
+ return this.error(V.UNMATCHED_CLOSING_TAG, Q(this.clonePosition(), this.clonePosition()));
5991
5986
  } else if (s === 60 && !this.ignoreTag && Dn(this.peek() || 0)) {
5992
5987
  var a = this.parseTag(t, r);
5993
5988
  if (a.err)
@@ -6009,7 +6004,7 @@ var Yu = (
6009
6004
  if (this.bumpSpace(), this.bumpIf("/>"))
6010
6005
  return {
6011
6006
  val: {
6012
- type: oe.literal,
6007
+ type: le.literal,
6013
6008
  value: "<".concat(i, "/>"),
6014
6009
  location: Q(n, this.clonePosition())
6015
6010
  },
@@ -6022,21 +6017,21 @@ var Yu = (
6022
6017
  var a = s.val, o = this.clonePosition();
6023
6018
  if (this.bumpIf("</")) {
6024
6019
  if (this.isEOF() || !Dn(this.char()))
6025
- return this.error(F.INVALID_TAG, Q(o, this.clonePosition()));
6020
+ return this.error(V.INVALID_TAG, Q(o, this.clonePosition()));
6026
6021
  var u = this.clonePosition(), l = this.parseTagName();
6027
- return i !== l ? this.error(F.UNMATCHED_CLOSING_TAG, Q(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
6022
+ return i !== l ? this.error(V.UNMATCHED_CLOSING_TAG, Q(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
6028
6023
  val: {
6029
- type: oe.tag,
6024
+ type: le.tag,
6030
6025
  value: i,
6031
6026
  children: a,
6032
6027
  location: Q(n, this.clonePosition())
6033
6028
  },
6034
6029
  err: null
6035
- } : this.error(F.INVALID_TAG, Q(o, this.clonePosition())));
6030
+ } : this.error(V.INVALID_TAG, Q(o, this.clonePosition())));
6036
6031
  } else
6037
- return this.error(F.UNCLOSED_TAG, Q(n, this.clonePosition()));
6032
+ return this.error(V.UNCLOSED_TAG, Q(n, this.clonePosition()));
6038
6033
  } else
6039
- return this.error(F.INVALID_TAG, Q(n, this.clonePosition()));
6034
+ return this.error(V.INVALID_TAG, Q(n, this.clonePosition()));
6040
6035
  }, e.prototype.parseTagName = function() {
6041
6036
  var t = this.offset();
6042
6037
  for (this.bump(); !this.isEOF() && ju(this.char()); )
@@ -6063,7 +6058,7 @@ var Yu = (
6063
6058
  }
6064
6059
  var u = Q(n, this.clonePosition());
6065
6060
  return {
6066
- val: { type: oe.literal, value: i, location: u },
6061
+ val: { type: le.literal, value: i, location: u },
6067
6062
  err: null
6068
6063
  };
6069
6064
  }, e.prototype.tryParseLeftAngleBracket = function() {
@@ -6111,19 +6106,19 @@ var Yu = (
6111
6106
  }, e.prototype.parseArgument = function(t, r) {
6112
6107
  var n = this.clonePosition();
6113
6108
  if (this.bump(), this.bumpSpace(), this.isEOF())
6114
- return this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE, Q(n, this.clonePosition()));
6109
+ return this.error(V.EXPECT_ARGUMENT_CLOSING_BRACE, Q(n, this.clonePosition()));
6115
6110
  if (this.char() === 125)
6116
- return this.bump(), this.error(F.EMPTY_ARGUMENT, Q(n, this.clonePosition()));
6111
+ return this.bump(), this.error(V.EMPTY_ARGUMENT, Q(n, this.clonePosition()));
6117
6112
  var i = this.parseIdentifierIfPossible().value;
6118
6113
  if (!i)
6119
- return this.error(F.MALFORMED_ARGUMENT, Q(n, this.clonePosition()));
6114
+ return this.error(V.MALFORMED_ARGUMENT, Q(n, this.clonePosition()));
6120
6115
  if (this.bumpSpace(), this.isEOF())
6121
- return this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE, Q(n, this.clonePosition()));
6116
+ return this.error(V.EXPECT_ARGUMENT_CLOSING_BRACE, Q(n, this.clonePosition()));
6122
6117
  switch (this.char()) {
6123
6118
  case 125:
6124
6119
  return this.bump(), {
6125
6120
  val: {
6126
- type: oe.argument,
6121
+ type: le.argument,
6127
6122
  // value does not include the opening and closing braces.
6128
6123
  value: i,
6129
6124
  location: Q(n, this.clonePosition())
@@ -6131,9 +6126,9 @@ var Yu = (
6131
6126
  err: null
6132
6127
  };
6133
6128
  case 44:
6134
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE, Q(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
6129
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(V.EXPECT_ARGUMENT_CLOSING_BRACE, Q(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
6135
6130
  default:
6136
- return this.error(F.MALFORMED_ARGUMENT, Q(n, this.clonePosition()));
6131
+ return this.error(V.MALFORMED_ARGUMENT, Q(n, this.clonePosition()));
6137
6132
  }
6138
6133
  }, e.prototype.parseIdentifierIfPossible = function() {
6139
6134
  var t = this.clonePosition(), r = this.offset(), n = Cn(this.message, r), i = r + n.length;
@@ -6144,7 +6139,7 @@ var Yu = (
6144
6139
  var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, u = this.clonePosition();
6145
6140
  switch (o) {
6146
6141
  case "":
6147
- return this.error(F.EXPECT_ARGUMENT_TYPE, Q(a, u));
6142
+ return this.error(V.EXPECT_ARGUMENT_TYPE, Q(a, u));
6148
6143
  case "number":
6149
6144
  case "date":
6150
6145
  case "time": {
@@ -6157,7 +6152,7 @@ var Yu = (
6157
6152
  return h;
6158
6153
  var c = ku(h.val);
6159
6154
  if (c.length === 0)
6160
- return this.error(F.EXPECT_ARGUMENT_STYLE, Q(this.clonePosition(), this.clonePosition()));
6155
+ return this.error(V.EXPECT_ARGUMENT_STYLE, Q(this.clonePosition(), this.clonePosition()));
6161
6156
  var v = Q(f, this.clonePosition());
6162
6157
  l = { style: c, styleLocation: v };
6163
6158
  }
@@ -6170,12 +6165,12 @@ var Yu = (
6170
6165
  if (o === "number") {
6171
6166
  var h = this.parseNumberSkeletonFromString(M, l.styleLocation);
6172
6167
  return h.err ? h : {
6173
- val: { type: oe.number, value: n, location: I, style: h.val },
6168
+ val: { type: le.number, value: n, location: I, style: h.val },
6174
6169
  err: null
6175
6170
  };
6176
6171
  } else {
6177
6172
  if (M.length === 0)
6178
- return this.error(F.EXPECT_DATE_TIME_SKELETON, I);
6173
+ return this.error(V.EXPECT_DATE_TIME_SKELETON, I);
6179
6174
  var B = M;
6180
6175
  this.locale && (B = Pu(M, this.locale));
6181
6176
  var c = {
@@ -6183,7 +6178,7 @@ var Yu = (
6183
6178
  pattern: B,
6184
6179
  location: l.styleLocation,
6185
6180
  parsedOptions: this.shouldParseSkeletons ? bu(B) : {}
6186
- }, z = o === "date" ? oe.date : oe.time;
6181
+ }, z = o === "date" ? le.date : le.time;
6187
6182
  return {
6188
6183
  val: { type: z, value: n, location: I, style: c },
6189
6184
  err: null
@@ -6192,7 +6187,7 @@ var Yu = (
6192
6187
  }
6193
6188
  return {
6194
6189
  val: {
6195
- type: o === "number" ? oe.number : o === "date" ? oe.date : oe.time,
6190
+ type: o === "number" ? le.number : o === "date" ? le.date : le.time,
6196
6191
  value: n,
6197
6192
  location: I,
6198
6193
  style: (s = l?.style) !== null && s !== void 0 ? s : null
@@ -6205,14 +6200,14 @@ var Yu = (
6205
6200
  case "select": {
6206
6201
  var A = this.clonePosition();
6207
6202
  if (this.bumpSpace(), !this.bumpIf(","))
6208
- return this.error(F.EXPECT_SELECT_ARGUMENT_OPTIONS, Q(A, Yr({}, A)));
6203
+ return this.error(V.EXPECT_SELECT_ARGUMENT_OPTIONS, Q(A, Yr({}, A)));
6209
6204
  this.bumpSpace();
6210
6205
  var ee = this.parseIdentifierIfPossible(), K = 0;
6211
6206
  if (o !== "select" && ee.value === "offset") {
6212
6207
  if (!this.bumpIf(":"))
6213
- return this.error(F.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, Q(this.clonePosition(), this.clonePosition()));
6208
+ return this.error(V.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, Q(this.clonePosition(), this.clonePosition()));
6214
6209
  this.bumpSpace();
6215
- var h = this.tryParseDecimalInteger(F.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, F.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
6210
+ var h = this.tryParseDecimalInteger(V.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, V.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
6216
6211
  if (h.err)
6217
6212
  return h;
6218
6213
  this.bumpSpace(), ee = this.parseIdentifierIfPossible(), K = h.val;
@@ -6226,7 +6221,7 @@ var Yu = (
6226
6221
  var S = Q(i, this.clonePosition());
6227
6222
  return o === "select" ? {
6228
6223
  val: {
6229
- type: oe.select,
6224
+ type: le.select,
6230
6225
  value: n,
6231
6226
  options: xi(R.val),
6232
6227
  location: S
@@ -6234,7 +6229,7 @@ var Yu = (
6234
6229
  err: null
6235
6230
  } : {
6236
6231
  val: {
6237
- type: oe.plural,
6232
+ type: le.plural,
6238
6233
  value: n,
6239
6234
  options: xi(R.val),
6240
6235
  offset: K,
@@ -6245,10 +6240,10 @@ var Yu = (
6245
6240
  };
6246
6241
  }
6247
6242
  default:
6248
- return this.error(F.INVALID_ARGUMENT_TYPE, Q(a, u));
6243
+ return this.error(V.INVALID_ARGUMENT_TYPE, Q(a, u));
6249
6244
  }
6250
6245
  }, e.prototype.tryParseArgumentClose = function(t) {
6251
- return this.isEOF() || this.char() !== 125 ? this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE, Q(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
6246
+ return this.isEOF() || this.char() !== 125 ? this.error(V.EXPECT_ARGUMENT_CLOSING_BRACE, Q(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
6252
6247
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
6253
6248
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
6254
6249
  var n = this.char();
@@ -6257,7 +6252,7 @@ var Yu = (
6257
6252
  this.bump();
6258
6253
  var i = this.clonePosition();
6259
6254
  if (!this.bumpUntil("'"))
6260
- return this.error(F.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, Q(i, this.clonePosition()));
6255
+ return this.error(V.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, Q(i, this.clonePosition()));
6261
6256
  this.bump();
6262
6257
  break;
6263
6258
  }
@@ -6289,7 +6284,7 @@ var Yu = (
6289
6284
  try {
6290
6285
  n = wu(t);
6291
6286
  } catch {
6292
- return this.error(F.INVALID_NUMBER_SKELETON, r);
6287
+ return this.error(V.INVALID_NUMBER_SKELETON, r);
6293
6288
  }
6294
6289
  return {
6295
6290
  val: {
@@ -6305,7 +6300,7 @@ var Yu = (
6305
6300
  if (l.length === 0) {
6306
6301
  var h = this.clonePosition();
6307
6302
  if (r !== "select" && this.bumpIf("=")) {
6308
- var c = this.tryParseDecimalInteger(F.EXPECT_PLURAL_ARGUMENT_SELECTOR, F.INVALID_PLURAL_ARGUMENT_SELECTOR);
6303
+ var c = this.tryParseDecimalInteger(V.EXPECT_PLURAL_ARGUMENT_SELECTOR, V.INVALID_PLURAL_ARGUMENT_SELECTOR);
6309
6304
  if (c.err)
6310
6305
  return c;
6311
6306
  f = Q(h, this.clonePosition()), l = this.message.slice(h.offset, this.offset());
@@ -6313,11 +6308,11 @@ var Yu = (
6313
6308
  break;
6314
6309
  }
6315
6310
  if (u.has(l))
6316
- return this.error(r === "select" ? F.DUPLICATE_SELECT_ARGUMENT_SELECTOR : F.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
6311
+ return this.error(r === "select" ? V.DUPLICATE_SELECT_ARGUMENT_SELECTOR : V.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
6317
6312
  l === "other" && (a = !0), this.bumpSpace();
6318
6313
  var v = this.clonePosition();
6319
6314
  if (!this.bumpIf("{"))
6320
- return this.error(r === "select" ? F.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : F.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, Q(this.clonePosition(), this.clonePosition()));
6315
+ return this.error(r === "select" ? V.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : V.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, Q(this.clonePosition(), this.clonePosition()));
6321
6316
  var m = this.parseMessage(t + 1, r, n);
6322
6317
  if (m.err)
6323
6318
  return m;
@@ -6332,7 +6327,7 @@ var Yu = (
6332
6327
  }
6333
6328
  ]), u.add(l), this.bumpSpace(), s = this.parseIdentifierIfPossible(), l = s.value, f = s.location;
6334
6329
  }
6335
- return o.length === 0 ? this.error(r === "select" ? F.EXPECT_SELECT_ARGUMENT_SELECTOR : F.EXPECT_PLURAL_ARGUMENT_SELECTOR, Q(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(F.MISSING_OTHER_CLAUSE, Q(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
6330
+ return o.length === 0 ? this.error(r === "select" ? V.EXPECT_SELECT_ARGUMENT_SELECTOR : V.EXPECT_PLURAL_ARGUMENT_SELECTOR, Q(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(V.MISSING_OTHER_CLAUSE, Q(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
6336
6331
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
6337
6332
  var n = 1, i = this.clonePosition();
6338
6333
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
@@ -6437,7 +6432,7 @@ function Fu(e, t) {
6437
6432
  t === void 0 && (t = {}), t = Yr({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
6438
6433
  var r = new Yu(e, t).parse();
6439
6434
  if (r.err) {
6440
- var n = SyntaxError(F[r.err.kind]);
6435
+ var n = SyntaxError(V[r.err.kind]);
6441
6436
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
6442
6437
  }
6443
6438
  return t?.captureLocation || Ln(r.val), r.val;
@@ -7330,18 +7325,18 @@ function sa(e, t) {
7330
7325
  if (!s()) return;
7331
7326
  const q = Et();
7332
7327
  if (Et(s().endTime).isBefore(q)) {
7333
- Fe(h, !0);
7328
+ Ve(h, !0);
7334
7329
  return;
7335
7330
  } else
7336
7331
  m(), c = setInterval(m, 1e3);
7337
7332
  }, m = () => {
7338
- const q = Et(), _ = Et(s().endTime).diff(q), X = Et.duration(_), xe = Math.floor(X.asDays()), we = X.hours(), je = X.minutes(), Ae = X.seconds();
7339
- Fe(
7333
+ const q = Et(), _ = Et(s().endTime).diff(q), F = Et.duration(_), xe = Math.floor(F.asDays()), we = F.hours(), Xe = F.minutes(), Ae = F.seconds();
7334
+ Ve(
7340
7335
  f,
7341
7336
  {
7342
7337
  days: xe,
7343
7338
  hours: String(we).padStart(2, "0"),
7344
- minutes: String(je).padStart(2, "0"),
7339
+ minutes: String(Xe).padStart(2, "0"),
7345
7340
  seconds: String(Ae).padStart(2, "0")
7346
7341
  },
7347
7342
  !0
@@ -7390,7 +7385,7 @@ function sa(e, t) {
7390
7385
  var ie = Ul();
7391
7386
  Ar(ie, 1, "StatusBadge Enrolled", "svelte-6xk5v3");
7392
7387
  var _ = ke(ie, !0);
7393
- on((X) => De(_, X), [() => r()("enrolled")]), Nr(q, ie);
7388
+ on((F) => De(_, F), [() => r()("enrolled")]), Nr(q, ie);
7394
7389
  };
7395
7390
  fi(S, (q) => {
7396
7391
  o() && q(x);
@@ -7404,10 +7399,10 @@ function sa(e, t) {
7404
7399
  var C = Ce(y, 2);
7405
7400
  {
7406
7401
  var L = (q) => {
7407
- var ie = kl(), _ = rt(ie), X = ke(_, !0), xe = Ce(_, 2), we = rt(xe), je = ke(we, !0), Ae = Ce(we, 2), d = ke(Ae, !0), w = Ce(Ae, 2), P = ke(w, !0), b = Ce(w, 2), U = ke(b, !0), D = Ce(b, 2), Z = ke(D, !0);
7402
+ var ie = kl(), _ = rt(ie), F = ke(_, !0), xe = Ce(_, 2), we = rt(xe), Xe = ke(we, !0), Ae = Ce(we, 2), d = ke(Ae, !0), w = Ce(Ae, 2), P = ke(w, !0), b = Ce(w, 2), U = ke(b, !0), D = Ce(b, 2), Z = ke(D, !0);
7408
7403
  tt(xe), tt(ie), on(
7409
7404
  (ae, j) => {
7410
- De(X, ae), Ar(we, 1, `TimeSegment ${ve(f).days === 0 ? "Hidden" : ""}`, "svelte-6xk5v3"), De(je, j), Ar(Ae, 1, So(ve(f).days === 0 ? "Hidden" : ""), "svelte-6xk5v3"), De(d, ve(f).days > 0 ? " - " : null), De(P, ve(f).hours), De(U, ve(f).minutes), De(Z, ve(f).seconds);
7405
+ De(F, ae), Ar(we, 1, `TimeSegment ${ve(f).days === 0 ? "Hidden" : ""}`, "svelte-6xk5v3"), De(Xe, j), Ar(Ae, 1, So(ve(f).days === 0 ? "Hidden" : ""), "svelte-6xk5v3"), De(d, ve(f).days > 0 ? " - " : null), De(P, ve(f).hours), De(U, ve(f).minutes), De(Z, ve(f).seconds);
7411
7406
  },
7412
7407
  [
7413
7408
  () => r()("endsInLabel"),
@@ -7419,10 +7414,10 @@ function sa(e, t) {
7419
7414
  ve(h) || q(L);
7420
7415
  });
7421
7416
  }
7422
- var te = Ce(C, 2), re = rt(te), fe = ke(re), me = Ce(re, 2), Ze = rt(me);
7417
+ var te = Ce(C, 2), re = rt(te), he = ke(re), me = Ce(re, 2), je = rt(me);
7423
7418
  Ui(), tt(me), tt(te), tt(H), tt(z), on(
7424
- (q, ie, _, X, xe, we, je, Ae) => {
7425
- Ar(K, 1, `StatusBadge ${I[s().state]}`, "svelte-6xk5v3"), De(R, q), hi(G, "src", s()?.thumbnail?.length > 0 ? s()?.thumbnail : Rl), hi(G, "fetchpriority", s()?.thumbnail?.length > 0 ? "high" : "auto"), Oo(G, s().state === "Closed" && "filter: saturate(20%)"), De(Y, `${ie ?? ""} ${_ ?? ""}`), De(T, s().nameOrTitle), De(E, `${X ?? ""}: ${xe ?? ""}`), De(N, `(${we ?? ""} ${s().minBetCount ?? ""})`), De(fe, `${je ?? ""}: ${s().prizes[0].name ?? ""}`), De(Ze, `${Ae ?? ""} `);
7419
+ (q, ie, _, F, xe, we, Xe, Ae) => {
7420
+ Ar(K, 1, `StatusBadge ${I[s().state]}`, "svelte-6xk5v3"), De(R, q), hi(G, "src", s()?.thumbnail?.length > 0 ? s()?.thumbnail : Rl), hi(G, "fetchpriority", s()?.thumbnail?.length > 0 ? "high" : "auto"), Oo(G, s().state === "Closed" && "filter: saturate(20%)"), De(Y, `${ie ?? ""} ${_ ?? ""}`), De(T, s().nameOrTitle), De(E, `${F ?? ""}: ${xe ?? ""}`), De(N, `(${we ?? ""} ${s().minBetCount ?? ""})`), De(he, `${Xe ?? ""}: ${s().prizes[0].name ?? ""}`), De(je, `${Ae ?? ""} `);
7426
7421
  },
7427
7422
  [
7428
7423
  () => r()(s().state),