@hintergrund/ui 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,28 +1,28 @@
1
1
  typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5");
2
- const ft = 1, at = 2, un = 4, ur = 8, or = 16, cr = 1, hr = 2, dr = 4, _r = 8, vr = 16, Os = 4, pr = 1, mr = 2, on = "[", lt = "[!", jt = "]", Re = {}, N = Symbol(), gr = "http://www.w3.org/1999/xhtml", cn = !1;
3
- var ut = Array.isArray, yr = Array.prototype.indexOf, qt = Array.from, tt = Object.keys, Ie = Object.defineProperty, ye = Object.getOwnPropertyDescriptor, hn = Object.getOwnPropertyDescriptors, wr = Object.prototype, $r = Array.prototype, Bt = Object.getPrototypeOf, Xt = Object.isExtensible;
4
- function Cs(e) {
2
+ const at = 1, ft = 2, cn = 4, or = 8, cr = 16, hr = 1, dr = 2, _r = 4, vr = 8, pr = 16, Cs = 1, Rs = 2, Is = 4, mr = 1, gr = 2, hn = "[", lt = "[!", jt = "]", Re = {}, N = Symbol(), yr = "http://www.w3.org/1999/xhtml", dn = !1;
3
+ var ut = Array.isArray, wr = Array.prototype.indexOf, qt = Array.from, tt = Object.keys, Ie = Object.defineProperty, ye = Object.getOwnPropertyDescriptor, _n = Object.getOwnPropertyDescriptors, $r = Object.prototype, br = Array.prototype, Bt = Object.getPrototypeOf, Zt = Object.isExtensible;
4
+ function Ps(e) {
5
5
  return typeof e == "function";
6
6
  }
7
- const Rs = () => {
7
+ const Ms = () => {
8
8
  };
9
- function Is(e) {
9
+ function Ls(e) {
10
10
  return typeof e?.then == "function";
11
11
  }
12
- function Ps(e) {
12
+ function Ds(e) {
13
13
  return e();
14
14
  }
15
- function br(e) {
15
+ function Er(e) {
16
16
  for (var t = 0; t < e.length; t++)
17
17
  e[t]();
18
18
  }
19
- function dn() {
19
+ function vn() {
20
20
  var e, t, n = new Promise((r, s) => {
21
21
  e = r, t = s;
22
22
  });
23
23
  return { promise: n, resolve: e, reject: t };
24
24
  }
25
- function Ms(e, t) {
25
+ function Fs(e, t) {
26
26
  if (Array.isArray(e))
27
27
  return e;
28
28
  if (!(Symbol.iterator in e))
@@ -32,53 +32,53 @@ function Ms(e, t) {
32
32
  if (n.push(r), n.length === t) break;
33
33
  return n;
34
34
  }
35
- const F = 2, Ht = 4, ot = 8, Se = 16, ue = 32, ve = 64, ct = 128, W = 256, nt = 512, P = 1024, U = 2048, pe = 4096, H = 8192, ae = 16384, Ut = 32768, ht = 65536, Zt = 1 << 17, Er = 1 << 18, ke = 1 << 19, _n = 1 << 20, xt = 1 << 21, Vt = 1 << 22, we = 1 << 23, he = Symbol("$state"), vn = Symbol("legacy props"), Sr = Symbol(""), xe = new class extends Error {
35
+ const F = 2, Ht = 4, ot = 8, Se = 16, ue = 32, ve = 64, ct = 128, W = 256, nt = 512, P = 1024, U = 2048, pe = 4096, H = 8192, fe = 16384, Ut = 32768, ht = 65536, Qt = 1 << 17, Sr = 1 << 18, Te = 1 << 19, pn = 1 << 20, xt = 1 << 21, Vt = 1 << 22, we = 1 << 23, he = Symbol("$state"), mn = Symbol("legacy props"), Tr = Symbol(""), xe = new class extends Error {
36
36
  name = "StaleReactionError";
37
37
  message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
38
38
  }(), dt = 3, De = 8;
39
39
  function kr(e) {
40
40
  throw new Error("https://svelte.dev/e/lifecycle_outside_component");
41
41
  }
42
- function Tr() {
42
+ function Ar() {
43
43
  throw new Error("https://svelte.dev/e/async_derived_orphan");
44
44
  }
45
- function Ar(e) {
45
+ function xr(e) {
46
46
  throw new Error("https://svelte.dev/e/effect_in_teardown");
47
47
  }
48
- function xr() {
48
+ function Nr() {
49
49
  throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
50
50
  }
51
- function Nr(e) {
51
+ function Or(e) {
52
52
  throw new Error("https://svelte.dev/e/effect_orphan");
53
53
  }
54
- function Or() {
54
+ function Cr() {
55
55
  throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
56
56
  }
57
- function Cr() {
57
+ function Rr() {
58
58
  throw new Error("https://svelte.dev/e/hydration_failed");
59
59
  }
60
- function Rr(e) {
60
+ function Ir(e) {
61
61
  throw new Error("https://svelte.dev/e/props_invalid_value");
62
62
  }
63
- function Ir() {
63
+ function Pr() {
64
64
  throw new Error("https://svelte.dev/e/state_descriptors_fixed");
65
65
  }
66
- function Pr() {
66
+ function Mr() {
67
67
  throw new Error("https://svelte.dev/e/state_prototype_fixed");
68
68
  }
69
- function Mr() {
69
+ function Lr() {
70
70
  throw new Error("https://svelte.dev/e/state_unsafe_mutation");
71
71
  }
72
- function Lr() {
72
+ function Dr() {
73
73
  throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
74
74
  }
75
75
  function _t(e) {
76
76
  console.warn("https://svelte.dev/e/hydration_mismatch");
77
77
  }
78
- function Dr() {
78
+ function Fr() {
79
79
  console.warn("https://svelte.dev/e/select_multiple_invalid_value");
80
80
  }
81
- function Fr() {
81
+ function jr() {
82
82
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
83
83
  }
84
84
  let v = !1;
@@ -97,14 +97,14 @@ function vt() {
97
97
  /* @__PURE__ */ ie(w)
98
98
  );
99
99
  }
100
- function Ds(e) {
100
+ function qs(e) {
101
101
  if (v) {
102
102
  if (/* @__PURE__ */ ie(w) !== null)
103
103
  throw _t(), Re;
104
104
  w = e;
105
105
  }
106
106
  }
107
- function jr(e = 1) {
107
+ function qr(e = 1) {
108
108
  if (v) {
109
109
  for (var t = e, n = w; t--; )
110
110
  n = /** @type {TemplateNode} */
@@ -122,7 +122,7 @@ function rt(e = !0) {
122
122
  if (r === jt) {
123
123
  if (t === 0) return n;
124
124
  t -= 1;
125
- } else (r === on || r === lt) && (t += 1);
125
+ } else (r === hn || r === lt) && (t += 1);
126
126
  }
127
127
  var s = (
128
128
  /** @type {TemplateNode} */
@@ -131,7 +131,7 @@ function rt(e = !0) {
131
131
  e && n.remove(), n = s;
132
132
  }
133
133
  }
134
- function pn(e) {
134
+ function gn(e) {
135
135
  if (!e || e.nodeType !== De)
136
136
  throw _t(), Re;
137
137
  return (
@@ -139,33 +139,33 @@ function pn(e) {
139
139
  e.data
140
140
  );
141
141
  }
142
- function mn(e) {
142
+ function yn(e) {
143
143
  return e === this.v;
144
144
  }
145
- function qr(e, t) {
145
+ function Br(e, t) {
146
146
  return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
147
147
  }
148
- function gn(e) {
149
- return !qr(e, this.v);
148
+ function wn(e) {
149
+ return !Br(e, this.v);
150
150
  }
151
- let Ge = !1, Br = !1;
152
- function Fs() {
151
+ let Ge = !1, Hr = !1;
152
+ function Bs() {
153
153
  Ge = !0;
154
154
  }
155
155
  let A = null;
156
156
  function Pe(e) {
157
157
  A = e;
158
158
  }
159
- function js(e) {
159
+ function Hs(e) {
160
160
  return (
161
161
  /** @type {T} */
162
- yn().get(e)
162
+ $n().get(e)
163
163
  );
164
164
  }
165
- function qs(e, t) {
166
- return yn().set(e, t), t;
165
+ function Us(e, t) {
166
+ return $n().set(e, t), t;
167
167
  }
168
- function Hr(e, t = !1, n) {
168
+ function Ur(e, t = !1, n) {
169
169
  A = {
170
170
  p: A,
171
171
  c: null,
@@ -175,7 +175,7 @@ function Hr(e, t = !1, n) {
175
175
  l: Ge && !t ? { s: null, u: null, $: [] } : null
176
176
  };
177
177
  }
178
- function Ur(e) {
178
+ function Vr(e) {
179
179
  var t = (
180
180
  /** @type {ComponentContext} */
181
181
  A
@@ -183,7 +183,7 @@ function Ur(e) {
183
183
  if (n !== null) {
184
184
  t.e = null;
185
185
  for (var r of n)
186
- Fn(r);
186
+ qn(r);
187
187
  }
188
188
  return e !== void 0 && (t.x = e), A = t.p, e ?? /** @type {T} */
189
189
  {};
@@ -191,10 +191,10 @@ function Ur(e) {
191
191
  function Ke() {
192
192
  return !Ge || A !== null && A.l === null;
193
193
  }
194
- function yn(e) {
195
- return A === null && kr(), A.c ??= new Map(Vr(A) || void 0);
194
+ function $n(e) {
195
+ return A === null && kr(), A.c ??= new Map(Yr(A) || void 0);
196
196
  }
197
- function Vr(e) {
197
+ function Yr(e) {
198
198
  let t = e.p;
199
199
  for (; t !== null; ) {
200
200
  const n = t.c;
@@ -205,31 +205,31 @@ function Vr(e) {
205
205
  return null;
206
206
  }
207
207
  let ge = [];
208
- function wn() {
208
+ function bn() {
209
209
  var e = ge;
210
- ge = [], br(e);
210
+ ge = [], Er(e);
211
211
  }
212
212
  function _e(e) {
213
213
  if (ge.length === 0 && !Ue) {
214
214
  var t = ge;
215
215
  queueMicrotask(() => {
216
- t === ge && wn();
216
+ t === ge && bn();
217
217
  });
218
218
  }
219
219
  ge.push(e);
220
220
  }
221
- function Yr() {
221
+ function Wr() {
222
222
  for (; ge.length > 0; )
223
- wn();
223
+ bn();
224
224
  }
225
- const Wr = /* @__PURE__ */ new WeakMap();
226
- function $n(e) {
225
+ const Gr = /* @__PURE__ */ new WeakMap();
226
+ function En(e) {
227
227
  var t = m;
228
228
  if (t === null)
229
229
  return y.f |= we, e;
230
230
  if ((t.f & Ut) === 0) {
231
231
  if ((t.f & ct) === 0)
232
- throw !t.parent && e instanceof Error && bn(e), e;
232
+ throw !t.parent && e instanceof Error && Sn(e), e;
233
233
  t.b.error(e);
234
234
  } else
235
235
  Me(e, t);
@@ -245,10 +245,10 @@ function Me(e, t) {
245
245
  }
246
246
  t = t.parent;
247
247
  }
248
- throw e instanceof Error && bn(e), e;
248
+ throw e instanceof Error && Sn(e), e;
249
249
  }
250
- function bn(e) {
251
- const t = Wr.get(e);
250
+ function Sn(e) {
251
+ const t = Gr.get(e);
252
252
  t && (Ie(e, "message", {
253
253
  value: t.message
254
254
  }), Ie(e, "stack", {
@@ -295,12 +295,12 @@ class ne {
295
295
  * Deferred effects (which run after async work has completed) that are DIRTY
296
296
  * @type {Effect[]}
297
297
  */
298
- #a = [];
298
+ #f = [];
299
299
  /**
300
300
  * Deferred effects that are MAYBE_DIRTY
301
301
  * @type {Effect[]}
302
302
  */
303
- #f = [];
303
+ #a = [];
304
304
  /**
305
305
  * A set of branches that still exist, but will be destroyed when this batch
306
306
  * is committed — we skip over these during `process`
@@ -322,7 +322,7 @@ class ne {
322
322
  };
323
323
  for (const r of t)
324
324
  this.#s(r, n);
325
- this.#u(), this.#r > 0 ? (this.#i(n.effects), this.#i(n.render_effects), this.#i(n.block_effects)) : (He = this, b = null, Qt(n.render_effects), Qt(n.effects), He = null), z = null;
325
+ this.#u(), this.#r > 0 ? (this.#i(n.effects), this.#i(n.render_effects), this.#i(n.block_effects)) : (He = this, b = null, en(n.render_effects), en(n.effects), He = null), z = null;
326
326
  }
327
327
  /**
328
328
  * Traverse the effect tree, executing effects or stashing
@@ -333,14 +333,14 @@ class ne {
333
333
  #s(t, n) {
334
334
  t.f ^= P;
335
335
  for (var r = t.first; r !== null; ) {
336
- var s = r.f, i = (s & (ue | ve)) !== 0, f = i && (s & P) !== 0, a = f || (s & H) !== 0 || this.skipped_effects.has(r);
336
+ var s = r.f, i = (s & (ue | ve)) !== 0, a = i && (s & P) !== 0, f = a || (s & H) !== 0 || this.skipped_effects.has(r);
337
337
  if ((r.f & ct) !== 0 && r.b?.is_pending() && (n = {
338
338
  parent: n,
339
339
  effect: r,
340
340
  effects: [],
341
341
  render_effects: [],
342
342
  block_effects: []
343
- }), !a && r.fn !== null) {
343
+ }), !f && r.fn !== null) {
344
344
  i ? r.f ^= P : (s & Ht) !== 0 ? n.effects.push(r) : wt(r) && ((r.f & Se) !== 0 && n.block_effects.push(r), it(r));
345
345
  var l = r.first;
346
346
  if (l !== null) {
@@ -359,7 +359,7 @@ class ne {
359
359
  */
360
360
  #i(t) {
361
361
  for (const n of t)
362
- ((n.f & U) !== 0 ? this.#a : this.#f).push(n), D(n, P);
362
+ ((n.f & U) !== 0 ? this.#f : this.#a).push(n), D(n, P);
363
363
  }
364
364
  /**
365
365
  * Associate a change to a given source with the current
@@ -378,7 +378,7 @@ class ne {
378
378
  }
379
379
  flush() {
380
380
  if (te.length > 0) {
381
- if (this.activate(), Sn(), b !== null && b !== this)
381
+ if (this.activate(), kn(), b !== null && b !== this)
382
382
  return;
383
383
  } else
384
384
  this.#u();
@@ -410,24 +410,24 @@ class ne {
410
410
  continue;
411
411
  }
412
412
  const i = [];
413
- for (const [a, l] of this.current) {
414
- if (s.current.has(a))
415
- if (n && l !== s.current.get(a))
416
- s.current.set(a, l);
413
+ for (const [f, l] of this.current) {
414
+ if (s.current.has(f))
415
+ if (n && l !== s.current.get(f))
416
+ s.current.set(f, l);
417
417
  else
418
418
  continue;
419
- i.push(a);
419
+ i.push(f);
420
420
  }
421
421
  if (i.length === 0)
422
422
  continue;
423
- const f = [...s.current.keys()].filter((a) => !this.current.has(a));
424
- if (f.length > 0) {
425
- for (const a of i)
426
- kn(a, f);
423
+ const a = [...s.current.keys()].filter((f) => !this.current.has(f));
424
+ if (a.length > 0) {
425
+ for (const f of i)
426
+ An(f, a);
427
427
  if (te.length > 0) {
428
428
  b = s, s.apply();
429
- for (const a of te)
430
- s.#s(a, r);
429
+ for (const f of te)
430
+ s.#s(f, r);
431
431
  te = [], s.deactivate();
432
432
  }
433
433
  }
@@ -449,18 +449,18 @@ class ne {
449
449
  */
450
450
  decrement(t) {
451
451
  this.#n -= 1, t && (this.#r -= 1);
452
- for (const n of this.#a)
453
- D(n, U), be(n);
454
452
  for (const n of this.#f)
453
+ D(n, U), be(n);
454
+ for (const n of this.#a)
455
455
  D(n, pe), be(n);
456
- this.#a = [], this.#f = [], this.flush();
456
+ this.#f = [], this.#a = [], this.flush();
457
457
  }
458
458
  /** @param {() => void} fn */
459
459
  add_callback(t) {
460
460
  this.#e.add(t);
461
461
  }
462
462
  settled() {
463
- return (this.#l ??= dn()).promise;
463
+ return (this.#l ??= vn()).promise;
464
464
  }
465
465
  static ensure() {
466
466
  if (b === null) {
@@ -478,87 +478,87 @@ class ne {
478
478
  apply() {
479
479
  }
480
480
  }
481
- function En(e) {
481
+ function Tn(e) {
482
482
  var t = Ue;
483
483
  Ue = !0;
484
484
  try {
485
485
  for (var n; ; ) {
486
- if (Yr(), te.length === 0 && (b?.flush(), te.length === 0))
486
+ if (Wr(), te.length === 0 && (b?.flush(), te.length === 0))
487
487
  return pt = null, /** @type {T} */
488
488
  n;
489
- Sn();
489
+ kn();
490
490
  }
491
491
  } finally {
492
492
  Ue = t;
493
493
  }
494
494
  }
495
- function Sn() {
495
+ function kn() {
496
496
  var e = Ce;
497
497
  Ot = !0;
498
498
  try {
499
499
  var t = 0;
500
- for (rn(!0); te.length > 0; ) {
500
+ for (sn(!0); te.length > 0; ) {
501
501
  var n = ne.ensure();
502
502
  if (t++ > 1e3) {
503
503
  var r, s;
504
- Gr();
504
+ Kr();
505
505
  }
506
506
  n.process(te), de.clear();
507
507
  }
508
508
  } finally {
509
- Ot = !1, rn(e), pt = null;
509
+ Ot = !1, sn(e), pt = null;
510
510
  }
511
511
  }
512
- function Gr() {
512
+ function Kr() {
513
513
  try {
514
- Or();
514
+ Cr();
515
515
  } catch (e) {
516
516
  Me(e, pt);
517
517
  }
518
518
  }
519
- let fe = null;
520
- function Qt(e) {
519
+ let ae = null;
520
+ function en(e) {
521
521
  var t = e.length;
522
522
  if (t !== 0) {
523
523
  for (var n = 0; n < t; ) {
524
524
  var r = e[n++];
525
- if ((r.f & (ae | H)) === 0 && wt(r) && (fe = /* @__PURE__ */ new Set(), it(r), r.deps === null && r.first === null && r.nodes_start === null && (r.teardown === null && r.ac === null ? Hn(r) : r.fn = null), fe?.size > 0)) {
525
+ if ((r.f & (fe | H)) === 0 && wt(r) && (ae = /* @__PURE__ */ new Set(), it(r), r.deps === null && r.first === null && r.nodes_start === null && (r.teardown === null && r.ac === null ? Vn(r) : r.fn = null), ae?.size > 0)) {
526
526
  de.clear();
527
- for (const s of fe) {
528
- if ((s.f & (ae | H)) !== 0) continue;
527
+ for (const s of ae) {
528
+ if ((s.f & (fe | H)) !== 0) continue;
529
529
  const i = [s];
530
- let f = s.parent;
531
- for (; f !== null; )
532
- fe.has(f) && (fe.delete(f), i.push(f)), f = f.parent;
533
- for (let a = i.length - 1; a >= 0; a--) {
534
- const l = i[a];
535
- (l.f & (ae | H)) === 0 && it(l);
530
+ let a = s.parent;
531
+ for (; a !== null; )
532
+ ae.has(a) && (ae.delete(a), i.push(a)), a = a.parent;
533
+ for (let f = i.length - 1; f >= 0; f--) {
534
+ const l = i[f];
535
+ (l.f & (fe | H)) === 0 && it(l);
536
536
  }
537
537
  }
538
- fe.clear();
538
+ ae.clear();
539
539
  }
540
540
  }
541
- fe = null;
541
+ ae = null;
542
542
  }
543
543
  }
544
- function kn(e, t) {
544
+ function An(e, t) {
545
545
  if (e.reactions !== null)
546
546
  for (const n of e.reactions) {
547
547
  const r = n.f;
548
- (r & F) !== 0 ? kn(
548
+ (r & F) !== 0 ? An(
549
549
  /** @type {Derived} */
550
550
  n,
551
551
  t
552
- ) : (r & (Vt | Se)) !== 0 && Tn(n, t) && (D(n, U), be(
552
+ ) : (r & (Vt | Se)) !== 0 && xn(n, t) && (D(n, U), be(
553
553
  /** @type {Effect} */
554
554
  n
555
555
  ));
556
556
  }
557
557
  }
558
- function Tn(e, t) {
558
+ function xn(e, t) {
559
559
  if (e.deps !== null) {
560
560
  for (const n of e.deps)
561
- if (t.includes(n) || (n.f & F) !== 0 && Tn(
561
+ if (t.includes(n) || (n.f & F) !== 0 && xn(
562
562
  /** @type {Derived} */
563
563
  n,
564
564
  t
@@ -580,21 +580,21 @@ function be(e) {
580
580
  }
581
581
  te.push(t);
582
582
  }
583
- function Kr(e) {
583
+ function zr(e) {
584
584
  let t = 0, n = Ee(0), r;
585
585
  return () => {
586
- rs() && (M(n), Fe(() => (t === 0 && (r = $t(() => e(() => Ve(n)))), t += 1, () => {
586
+ ss() && (M(n), Fe(() => (t === 0 && (r = $t(() => e(() => Ve(n)))), t += 1, () => {
587
587
  _e(() => {
588
588
  t -= 1, t === 0 && (r?.(), r = void 0, Ve(n));
589
589
  });
590
590
  })));
591
591
  };
592
592
  }
593
- var zr = ht | ke | ct;
594
- function Jr(e, t, n) {
595
- new Xr(e, t, n);
593
+ var Jr = ht | Te | ct;
594
+ function Xr(e, t, n) {
595
+ new Zr(e, t, n);
596
596
  }
597
- class Xr {
597
+ class Zr {
598
598
  /** @type {Boundary | null} */
599
599
  parent;
600
600
  #t = !1;
@@ -607,9 +607,9 @@ class Xr {
607
607
  /** @type {((anchor: Node) => void)} */
608
608
  #l;
609
609
  /** @type {Effect} */
610
- #a;
610
+ #f;
611
611
  /** @type {Effect | null} */
612
- #f = null;
612
+ #a = null;
613
613
  /** @type {Effect | null} */
614
614
  #s = null;
615
615
  /** @type {Effect | null} */
@@ -630,7 +630,7 @@ class Xr {
630
630
  #m = () => {
631
631
  this.#h && Le(this.#h, this.#o);
632
632
  };
633
- #g = Kr(() => (this.#h = Ee(this.#o), () => {
633
+ #g = zr(() => (this.#h = Ee(this.#o), () => {
634
634
  this.#h = null;
635
635
  }));
636
636
  /**
@@ -640,7 +640,7 @@ class Xr {
640
640
  */
641
641
  constructor(t, n, r) {
642
642
  this.#e = t, this.#r = n, this.#l = r, this.parent = /** @type {Effect} */
643
- m.b, this.#t = !!this.#r.pending, this.#a = Kt(() => {
643
+ m.b, this.#t = !!this.#r.pending, this.#f = Kt(() => {
644
644
  if (m.b = this, v) {
645
645
  const s = this.#n;
646
646
  vt(), /** @type {Comment} */
@@ -648,17 +648,17 @@ class Xr {
648
648
  s.data === lt ? this.#w() : this.#y();
649
649
  } else {
650
650
  try {
651
- this.#f = Y(() => r(this.#e));
651
+ this.#a = Y(() => r(this.#e));
652
652
  } catch (s) {
653
653
  this.error(s);
654
654
  }
655
655
  this.#c > 0 ? this.#v() : this.#t = !1;
656
656
  }
657
- }, zr), v && (this.#e = w);
657
+ }, Jr), v && (this.#e = w);
658
658
  }
659
659
  #y() {
660
660
  try {
661
- this.#f = Y(() => this.#l(this.#e));
661
+ this.#a = Y(() => this.#l(this.#e));
662
662
  } catch (t) {
663
663
  this.error(t);
664
664
  }
@@ -667,7 +667,7 @@ class Xr {
667
667
  #w() {
668
668
  const t = this.#r.pending;
669
669
  t && (this.#s = Y(() => t(this.#e)), ne.enqueue(() => {
670
- this.#f = this.#_(() => (ne.ensure(), Y(() => this.#l(this.#e)))), this.#c > 0 ? this.#v() : (Oe(
670
+ this.#a = this.#_(() => (ne.ensure(), Y(() => this.#l(this.#e)))), this.#c > 0 ? this.#v() : (Oe(
671
671
  /** @type {Effect} */
672
672
  this.#s,
673
673
  () => {
@@ -691,11 +691,11 @@ class Xr {
691
691
  */
692
692
  #_(t) {
693
693
  var n = m, r = y, s = A;
694
- K(this.#a), O(this.#a), Pe(this.#a.ctx);
694
+ K(this.#f), O(this.#f), Pe(this.#f.ctx);
695
695
  try {
696
696
  return t();
697
697
  } catch (i) {
698
- return $n(i), null;
698
+ return En(i), null;
699
699
  } finally {
700
700
  K(n), O(r), Pe(s);
701
701
  }
@@ -705,7 +705,7 @@ class Xr {
705
705
  /** @type {(anchor: Node) => void} */
706
706
  this.#r.pending
707
707
  );
708
- this.#f !== null && (this.#u = document.createDocumentFragment(), Yn(this.#f, this.#u)), this.#s === null && (this.#s = Y(() => t(this.#e)));
708
+ this.#a !== null && (this.#u = document.createDocumentFragment(), Gn(this.#a, this.#u)), this.#s === null && (this.#s = Y(() => t(this.#e)));
709
709
  }
710
710
  /**
711
711
  * Updates the pending count associated with the currently visible pending snippet,
@@ -742,27 +742,27 @@ class Xr {
742
742
  let r = this.#r.failed;
743
743
  if (this.#d || !n && !r)
744
744
  throw t;
745
- this.#f && (L(this.#f), this.#f = null), this.#s && (L(this.#s), this.#s = null), this.#i && (L(this.#i), this.#i = null), v && (C(
745
+ this.#a && (L(this.#a), this.#a = null), this.#s && (L(this.#s), this.#s = null), this.#i && (L(this.#i), this.#i = null), v && (C(
746
746
  /** @type {TemplateNode} */
747
747
  this.#n
748
- ), jr(), C(rt()));
748
+ ), qr(), C(rt()));
749
749
  var s = !1, i = !1;
750
- const f = () => {
750
+ const a = () => {
751
751
  if (s) {
752
- Fr();
752
+ jr();
753
753
  return;
754
754
  }
755
- s = !0, i && Lr(), ne.ensure(), this.#o = 0, this.#i !== null && Oe(this.#i, () => {
755
+ s = !0, i && Dr(), ne.ensure(), this.#o = 0, this.#i !== null && Oe(this.#i, () => {
756
756
  this.#i = null;
757
- }), this.#t = this.has_pending_snippet(), this.#f = this.#_(() => (this.#d = !1, Y(() => this.#l(this.#e)))), this.#c > 0 ? this.#v() : this.#t = !1;
757
+ }), this.#t = this.has_pending_snippet(), this.#a = this.#_(() => (this.#d = !1, Y(() => this.#l(this.#e)))), this.#c > 0 ? this.#v() : this.#t = !1;
758
758
  };
759
- var a = y;
759
+ var f = y;
760
760
  try {
761
- O(null), i = !0, n?.(t, f), i = !1;
761
+ O(null), i = !0, n?.(t, a), i = !1;
762
762
  } catch (l) {
763
- Me(l, this.#a && this.#a.parent);
763
+ Me(l, this.#f && this.#f.parent);
764
764
  } finally {
765
- O(a);
765
+ O(f);
766
766
  }
767
767
  r && _e(() => {
768
768
  this.#i = this.#_(() => {
@@ -772,14 +772,14 @@ class Xr {
772
772
  r(
773
773
  this.#e,
774
774
  () => t,
775
- () => f
775
+ () => a
776
776
  );
777
777
  });
778
778
  } catch (l) {
779
779
  return Me(
780
780
  l,
781
781
  /** @type {Effect} */
782
- this.#a.parent
782
+ this.#f.parent
783
783
  ), null;
784
784
  } finally {
785
785
  this.#d = !1;
@@ -788,7 +788,7 @@ class Xr {
788
788
  });
789
789
  }
790
790
  }
791
- function Zr(e, t, n) {
791
+ function Qr(e, t, n) {
792
792
  const r = Ke() ? mt : Yt;
793
793
  if (t.length === 0) {
794
794
  n(e.map(r));
@@ -797,20 +797,20 @@ function Zr(e, t, n) {
797
797
  var s = b, i = (
798
798
  /** @type {Effect} */
799
799
  m
800
- ), f = Qr(), a = v;
801
- Promise.all(t.map((l) => /* @__PURE__ */ es(l))).then((l) => {
802
- f();
800
+ ), a = es(), f = v;
801
+ Promise.all(t.map((l) => /* @__PURE__ */ ts(l))).then((l) => {
802
+ a();
803
803
  try {
804
804
  n([...e.map(r), ...l]);
805
805
  } catch (u) {
806
- (i.f & ae) === 0 && Me(u, i);
806
+ (i.f & fe) === 0 && Me(u, i);
807
807
  }
808
- a && B(!1), s?.deactivate(), Ct();
808
+ f && B(!1), s?.deactivate(), Ct();
809
809
  }).catch((l) => {
810
810
  Me(l, i);
811
811
  });
812
812
  }
813
- function Qr() {
813
+ function es() {
814
814
  var e = m, t = y, n = A, r = b, s = v;
815
815
  if (s)
816
816
  var i = w;
@@ -827,11 +827,11 @@ function mt(e) {
827
827
  /** @type {Derived} */
828
828
  y
829
829
  ) : null;
830
- return m === null || n !== null && (n.f & W) !== 0 ? t |= W : m.f |= ke, {
830
+ return m === null || n !== null && (n.f & W) !== 0 ? t |= W : m.f |= Te, {
831
831
  ctx: A,
832
832
  deps: null,
833
833
  effects: null,
834
- equals: mn,
834
+ equals: yn,
835
835
  f: t,
836
836
  fn: e,
837
837
  reactions: null,
@@ -846,12 +846,12 @@ function mt(e) {
846
846
  };
847
847
  }
848
848
  // @__NO_SIDE_EFFECTS__
849
- function es(e, t) {
849
+ function ts(e, t) {
850
850
  let n = (
851
851
  /** @type {Effect | null} */
852
852
  m
853
853
  );
854
- n === null && Tr();
854
+ n === null && Ar();
855
855
  var r = (
856
856
  /** @type {Boundary} */
857
857
  n.b
@@ -862,9 +862,9 @@ function es(e, t) {
862
862
  ), i = Ee(
863
863
  /** @type {V} */
864
864
  N
865
- ), f = !y, a = /* @__PURE__ */ new Map();
865
+ ), a = !y, f = /* @__PURE__ */ new Map();
866
866
  return fs(() => {
867
- var l = dn();
867
+ var l = vn();
868
868
  s = l.promise;
869
869
  try {
870
870
  Promise.resolve(e()).then(l.resolve, l.reject).then(() => {
@@ -877,25 +877,25 @@ function es(e, t) {
877
877
  /** @type {Batch} */
878
878
  b
879
879
  );
880
- if (f) {
880
+ if (a) {
881
881
  var c = !r.is_pending();
882
- r.update_pending_count(1), u.increment(c), a.get(u)?.reject(xe), a.delete(u), a.set(u, l);
882
+ r.update_pending_count(1), u.increment(c), f.get(u)?.reject(xe), f.delete(u), f.set(u, l);
883
883
  }
884
884
  const _ = (h, d = void 0) => {
885
885
  if (u.activate(), d)
886
886
  d !== xe && (i.f |= we, Le(i, d));
887
887
  else {
888
888
  (i.f & we) !== 0 && (i.f ^= we), Le(i, h);
889
- for (const [o, g] of a) {
890
- if (a.delete(o), o === u) break;
889
+ for (const [o, g] of f) {
890
+ if (f.delete(o), o === u) break;
891
891
  g.reject(xe);
892
892
  }
893
893
  }
894
- f && (r.update_pending_count(-1), u.decrement(c));
894
+ a && (r.update_pending_count(-1), u.decrement(c));
895
895
  };
896
896
  l.promise.then(_, (h) => _(null, h || "unknown"));
897
897
  }), yt(() => {
898
- for (const l of a.values())
898
+ for (const l of f.values())
899
899
  l.reject(xe);
900
900
  }), new Promise((l) => {
901
901
  function u(c) {
@@ -908,16 +908,16 @@ function es(e, t) {
908
908
  });
909
909
  }
910
910
  // @__NO_SIDE_EFFECTS__
911
- function Bs(e) {
911
+ function Vs(e) {
912
912
  const t = /* @__PURE__ */ mt(e);
913
- return Wn(t), t;
913
+ return Kn(t), t;
914
914
  }
915
915
  // @__NO_SIDE_EFFECTS__
916
916
  function Yt(e) {
917
917
  const t = /* @__PURE__ */ mt(e);
918
- return t.equals = gn, t;
918
+ return t.equals = wn, t;
919
919
  }
920
- function An(e) {
920
+ function Nn(e) {
921
921
  var t = e.effects;
922
922
  if (t !== null) {
923
923
  e.effects = null;
@@ -928,7 +928,7 @@ function An(e) {
928
928
  );
929
929
  }
930
930
  }
931
- function ts(e) {
931
+ function ns(e) {
932
932
  for (var t = e.parent; t !== null; ) {
933
933
  if ((t.f & F) === 0)
934
934
  return (
@@ -941,17 +941,17 @@ function ts(e) {
941
941
  }
942
942
  function Wt(e) {
943
943
  var t, n = m;
944
- K(ts(e));
944
+ K(ns(e));
945
945
  try {
946
- An(e), t = Jn(e);
946
+ Nn(e), t = Zn(e);
947
947
  } finally {
948
948
  K(n);
949
949
  }
950
950
  return t;
951
951
  }
952
- function xn(e) {
952
+ function On(e) {
953
953
  var t = Wt(e);
954
- if (e.equals(t) || (e.v = t, e.wv = Kn()), !Te)
954
+ if (e.equals(t) || (e.v = t, e.wv = Jn()), !ke)
955
955
  if (z !== null)
956
956
  z.set(e, e.v);
957
957
  else {
@@ -966,7 +966,7 @@ function Ee(e, t) {
966
966
  // TODO ideally we could skip this altogether, but it causes type errors
967
967
  v: e,
968
968
  reactions: null,
969
- equals: mn,
969
+ equals: yn,
970
970
  rv: 0,
971
971
  wv: 0
972
972
  };
@@ -975,56 +975,56 @@ function Ee(e, t) {
975
975
  // @__NO_SIDE_EFFECTS__
976
976
  function oe(e, t) {
977
977
  const n = Ee(e);
978
- return Wn(n), n;
978
+ return Kn(n), n;
979
979
  }
980
980
  // @__NO_SIDE_EFFECTS__
981
- function Nn(e, t = !1, n = !0) {
981
+ function Cn(e, t = !1, n = !0) {
982
982
  const r = Ee(e);
983
- return t || (r.equals = gn), Ge && n && A !== null && A.l !== null && (A.l.s ??= []).push(r), r;
983
+ return t || (r.equals = wn), Ge && n && A !== null && A.l !== null && (A.l.s ??= []).push(r), r;
984
984
  }
985
985
  function ee(e, t, n = !1) {
986
986
  y !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
987
987
  // to ensure we error if state is set inside an inspect effect
988
- (!J || (y.f & Zt) !== 0) && Ke() && (y.f & (F | Se | Vt | Zt)) !== 0 && !le?.includes(e) && Mr();
988
+ (!J || (y.f & Qt) !== 0) && Ke() && (y.f & (F | Se | Vt | Qt)) !== 0 && !le?.includes(e) && Lr();
989
989
  let r = n ? Ne(t) : t;
990
990
  return Le(e, r);
991
991
  }
992
992
  function Le(e, t) {
993
993
  if (!e.equals(t)) {
994
994
  var n = e.v;
995
- Te ? de.set(e, t) : de.set(e, n), e.v = t;
995
+ ke ? de.set(e, t) : de.set(e, n), e.v = t;
996
996
  var r = ne.ensure();
997
997
  r.capture(e, n), (e.f & F) !== 0 && ((e.f & U) !== 0 && Wt(
998
998
  /** @type {Derived} */
999
999
  e
1000
- ), D(e, (e.f & W) === 0 ? P : pe)), e.wv = Kn(), On(e, U), Ke() && m !== null && (m.f & P) !== 0 && (m.f & (ue | ve)) === 0 && (V === null ? us([e]) : V.push(e));
1000
+ ), D(e, (e.f & W) === 0 ? P : pe)), e.wv = Jn(), Rn(e, U), Ke() && m !== null && (m.f & P) !== 0 && (m.f & (ue | ve)) === 0 && (V === null ? os([e]) : V.push(e));
1001
1001
  }
1002
1002
  return t;
1003
1003
  }
1004
- function Hs(e, t = 1) {
1004
+ function Ys(e, t = 1) {
1005
1005
  var n = M(e), r = t === 1 ? n++ : n--;
1006
1006
  return ee(e, n), r;
1007
1007
  }
1008
1008
  function Ve(e) {
1009
1009
  ee(e, e.v + 1);
1010
1010
  }
1011
- function On(e, t) {
1011
+ function Rn(e, t) {
1012
1012
  var n = e.reactions;
1013
1013
  if (n !== null)
1014
1014
  for (var r = Ke(), s = n.length, i = 0; i < s; i++) {
1015
- var f = n[i], a = f.f;
1016
- if (!(!r && f === m)) {
1017
- var l = (a & U) === 0;
1018
- l && D(f, t), (a & F) !== 0 ? On(
1015
+ var a = n[i], f = a.f;
1016
+ if (!(!r && a === m)) {
1017
+ var l = (f & U) === 0;
1018
+ l && D(a, t), (f & F) !== 0 ? Rn(
1019
1019
  /** @type {Derived} */
1020
- f,
1020
+ a,
1021
1021
  pe
1022
- ) : l && ((a & Se) !== 0 && fe !== null && fe.add(
1022
+ ) : l && ((f & Se) !== 0 && ae !== null && ae.add(
1023
1023
  /** @type {Effect} */
1024
- f
1024
+ a
1025
1025
  ), be(
1026
1026
  /** @type {Effect} */
1027
- f
1027
+ a
1028
1028
  ));
1029
1029
  }
1030
1030
  }
@@ -1033,14 +1033,14 @@ function Ne(e) {
1033
1033
  if (typeof e != "object" || e === null || he in e)
1034
1034
  return e;
1035
1035
  const t = Bt(e);
1036
- if (t !== wr && t !== $r)
1036
+ if (t !== $r && t !== br)
1037
1037
  return e;
1038
- var n = /* @__PURE__ */ new Map(), r = ut(e), s = /* @__PURE__ */ oe(0), i = $e, f = (a) => {
1038
+ var n = /* @__PURE__ */ new Map(), r = ut(e), s = /* @__PURE__ */ oe(0), i = $e, a = (f) => {
1039
1039
  if ($e === i)
1040
- return a();
1040
+ return f();
1041
1041
  var l = y, u = $e;
1042
1042
  O(null), fn(i);
1043
- var c = a();
1043
+ var c = f();
1044
1044
  return O(l), fn(u), c;
1045
1045
  };
1046
1046
  return r && n.set("length", /* @__PURE__ */ oe(
@@ -1050,40 +1050,40 @@ function Ne(e) {
1050
1050
  /** @type {any} */
1051
1051
  e,
1052
1052
  {
1053
- defineProperty(a, l, u) {
1054
- (!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) && Ir();
1053
+ defineProperty(f, l, u) {
1054
+ (!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) && Pr();
1055
1055
  var c = n.get(l);
1056
- return c === void 0 ? c = f(() => {
1056
+ return c === void 0 ? c = a(() => {
1057
1057
  var _ = /* @__PURE__ */ oe(u.value);
1058
1058
  return n.set(l, _), _;
1059
1059
  }) : ee(c, u.value, !0), !0;
1060
1060
  },
1061
- deleteProperty(a, l) {
1061
+ deleteProperty(f, l) {
1062
1062
  var u = n.get(l);
1063
1063
  if (u === void 0) {
1064
- if (l in a) {
1065
- const c = f(() => /* @__PURE__ */ oe(N));
1064
+ if (l in f) {
1065
+ const c = a(() => /* @__PURE__ */ oe(N));
1066
1066
  n.set(l, c), Ve(s);
1067
1067
  }
1068
1068
  } else
1069
1069
  ee(u, N), Ve(s);
1070
1070
  return !0;
1071
1071
  },
1072
- get(a, l, u) {
1072
+ get(f, l, u) {
1073
1073
  if (l === he)
1074
1074
  return e;
1075
- var c = n.get(l), _ = l in a;
1076
- if (c === void 0 && (!_ || ye(a, l)?.writable) && (c = f(() => {
1077
- var d = Ne(_ ? a[l] : N), o = /* @__PURE__ */ oe(d);
1075
+ var c = n.get(l), _ = l in f;
1076
+ if (c === void 0 && (!_ || ye(f, l)?.writable) && (c = a(() => {
1077
+ var d = Ne(_ ? f[l] : N), o = /* @__PURE__ */ oe(d);
1078
1078
  return o;
1079
1079
  }), n.set(l, c)), c !== void 0) {
1080
1080
  var h = M(c);
1081
1081
  return h === N ? void 0 : h;
1082
1082
  }
1083
- return Reflect.get(a, l, u);
1083
+ return Reflect.get(f, l, u);
1084
1084
  },
1085
- getOwnPropertyDescriptor(a, l) {
1086
- var u = Reflect.getOwnPropertyDescriptor(a, l);
1085
+ getOwnPropertyDescriptor(f, l) {
1086
+ var u = Reflect.getOwnPropertyDescriptor(f, l);
1087
1087
  if (u && "value" in u) {
1088
1088
  var c = n.get(l);
1089
1089
  c && (u.value = M(c));
@@ -1099,13 +1099,13 @@ function Ne(e) {
1099
1099
  }
1100
1100
  return u;
1101
1101
  },
1102
- has(a, l) {
1102
+ has(f, l) {
1103
1103
  if (l === he)
1104
1104
  return !0;
1105
- var u = n.get(l), c = u !== void 0 && u.v !== N || Reflect.has(a, l);
1106
- if (u !== void 0 || m !== null && (!c || ye(a, l)?.writable)) {
1107
- u === void 0 && (u = f(() => {
1108
- var h = c ? Ne(a[l]) : N, d = /* @__PURE__ */ oe(h);
1105
+ var u = n.get(l), c = u !== void 0 && u.v !== N || Reflect.has(f, l);
1106
+ if (u !== void 0 || m !== null && (!c || ye(f, l)?.writable)) {
1107
+ u === void 0 && (u = a(() => {
1108
+ var h = c ? Ne(f[l]) : N, d = /* @__PURE__ */ oe(h);
1109
1109
  return d;
1110
1110
  }), n.set(l, u));
1111
1111
  var _ = M(u);
@@ -1114,51 +1114,51 @@ function Ne(e) {
1114
1114
  }
1115
1115
  return c;
1116
1116
  },
1117
- set(a, l, u, c) {
1118
- var _ = n.get(l), h = l in a;
1117
+ set(f, l, u, c) {
1118
+ var _ = n.get(l), h = l in f;
1119
1119
  if (r && l === "length")
1120
1120
  for (var d = u; d < /** @type {Source<number>} */
1121
1121
  _.v; d += 1) {
1122
1122
  var o = n.get(d + "");
1123
- o !== void 0 ? ee(o, N) : d in a && (o = f(() => /* @__PURE__ */ oe(N)), n.set(d + "", o));
1123
+ o !== void 0 ? ee(o, N) : d in f && (o = a(() => /* @__PURE__ */ oe(N)), n.set(d + "", o));
1124
1124
  }
1125
1125
  if (_ === void 0)
1126
- (!h || ye(a, l)?.writable) && (_ = f(() => /* @__PURE__ */ oe(void 0)), ee(_, Ne(u)), n.set(l, _));
1126
+ (!h || ye(f, l)?.writable) && (_ = a(() => /* @__PURE__ */ oe(void 0)), ee(_, Ne(u)), n.set(l, _));
1127
1127
  else {
1128
1128
  h = _.v !== N;
1129
- var g = f(() => Ne(u));
1129
+ var g = a(() => Ne(u));
1130
1130
  ee(_, g);
1131
1131
  }
1132
- var $ = Reflect.getOwnPropertyDescriptor(a, l);
1132
+ var $ = Reflect.getOwnPropertyDescriptor(f, l);
1133
1133
  if ($?.set && $.set.call(c, u), !h) {
1134
1134
  if (r && typeof l == "string") {
1135
1135
  var E = (
1136
1136
  /** @type {Source<number>} */
1137
1137
  n.get("length")
1138
- ), T = Number(l);
1139
- Number.isInteger(T) && T >= E.v && ee(E, T + 1);
1138
+ ), k = Number(l);
1139
+ Number.isInteger(k) && k >= E.v && ee(E, k + 1);
1140
1140
  }
1141
1141
  Ve(s);
1142
1142
  }
1143
1143
  return !0;
1144
1144
  },
1145
- ownKeys(a) {
1145
+ ownKeys(f) {
1146
1146
  M(s);
1147
- var l = Reflect.ownKeys(a).filter((_) => {
1147
+ var l = Reflect.ownKeys(f).filter((_) => {
1148
1148
  var h = n.get(_);
1149
1149
  return h === void 0 || h.v !== N;
1150
1150
  });
1151
1151
  for (var [u, c] of n)
1152
- c.v !== N && !(u in a) && l.push(u);
1152
+ c.v !== N && !(u in f) && l.push(u);
1153
1153
  return l;
1154
1154
  },
1155
1155
  setPrototypeOf() {
1156
- Pr();
1156
+ Mr();
1157
1157
  }
1158
1158
  }
1159
1159
  );
1160
1160
  }
1161
- function en(e) {
1161
+ function tn(e) {
1162
1162
  try {
1163
1163
  if (e !== null && typeof e == "object" && he in e)
1164
1164
  return e[he];
@@ -1166,15 +1166,15 @@ function en(e) {
1166
1166
  }
1167
1167
  return e;
1168
1168
  }
1169
- function Cn(e, t) {
1170
- return Object.is(en(e), en(t));
1169
+ function In(e, t) {
1170
+ return Object.is(tn(e), tn(t));
1171
1171
  }
1172
- var tn, Rn, In, Pn;
1172
+ var nn, Pn, Mn, Ln;
1173
1173
  function Rt() {
1174
- if (tn === void 0) {
1175
- tn = window, Rn = /Firefox/.test(navigator.userAgent);
1174
+ if (nn === void 0) {
1175
+ nn = window, Pn = /Firefox/.test(navigator.userAgent);
1176
1176
  var e = Element.prototype, t = Node.prototype, n = Text.prototype;
1177
- In = ye(t, "firstChild").get, Pn = ye(t, "nextSibling").get, Xt(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), Xt(n) && (n.__t = void 0);
1177
+ Mn = ye(t, "firstChild").get, Ln = ye(t, "nextSibling").get, Zt(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), Zt(n) && (n.__t = void 0);
1178
1178
  }
1179
1179
  }
1180
1180
  function G(e = "") {
@@ -1182,13 +1182,13 @@ function G(e = "") {
1182
1182
  }
1183
1183
  // @__NO_SIDE_EFFECTS__
1184
1184
  function se(e) {
1185
- return In.call(e);
1185
+ return Mn.call(e);
1186
1186
  }
1187
1187
  // @__NO_SIDE_EFFECTS__
1188
1188
  function ie(e) {
1189
- return Pn.call(e);
1189
+ return Ln.call(e);
1190
1190
  }
1191
- function Us(e, t) {
1191
+ function Ws(e, t) {
1192
1192
  if (!v)
1193
1193
  return /* @__PURE__ */ se(e);
1194
1194
  var n = (
@@ -1203,7 +1203,7 @@ function Us(e, t) {
1203
1203
  }
1204
1204
  return C(n), n;
1205
1205
  }
1206
- function Vs(e, t = !1) {
1206
+ function Gs(e, t = !1) {
1207
1207
  if (!v) {
1208
1208
  var n = (
1209
1209
  /** @type {DocumentFragment} */
@@ -1220,7 +1220,7 @@ function Vs(e, t = !1) {
1220
1220
  }
1221
1221
  return w;
1222
1222
  }
1223
- function Ys(e, t = 1, n = !1) {
1223
+ function Ks(e, t = 1, n = !1) {
1224
1224
  let r = v ? w : e;
1225
1225
  for (var s; t--; )
1226
1226
  s = r, r = /** @type {TemplateNode} */
@@ -1237,15 +1237,15 @@ function Ys(e, t = 1, n = !1) {
1237
1237
  function Gt(e) {
1238
1238
  e.textContent = "";
1239
1239
  }
1240
- function Mn() {
1240
+ function Dn() {
1241
1241
  return !1;
1242
1242
  }
1243
- function Ws(e) {
1243
+ function zs(e) {
1244
1244
  v && /* @__PURE__ */ se(e) !== null && Gt(e);
1245
1245
  }
1246
- let nn = !1;
1247
- function Ln() {
1248
- nn || (nn = !0, document.addEventListener(
1246
+ let rn = !1;
1247
+ function Fn() {
1248
+ rn || (rn = !0, document.addEventListener(
1249
1249
  "reset",
1250
1250
  (e) => {
1251
1251
  Promise.resolve().then(() => {
@@ -1276,12 +1276,12 @@ function ze(e, t, n, r = n) {
1276
1276
  const s = e.__on_r;
1277
1277
  s ? e.__on_r = () => {
1278
1278
  s(), r(!0);
1279
- } : e.__on_r = () => r(!0), Ln();
1279
+ } : e.__on_r = () => r(!0), Fn();
1280
1280
  }
1281
- function Dn(e) {
1282
- m === null && y === null && Nr(), y !== null && (y.f & W) !== 0 && m === null && xr(), Te && Ar();
1281
+ function jn(e) {
1282
+ m === null && y === null && Or(), y !== null && (y.f & W) !== 0 && m === null && Nr(), ke && xr();
1283
1283
  }
1284
- function ns(e, t) {
1284
+ function rs(e, t) {
1285
1285
  var n = t.last;
1286
1286
  n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
1287
1287
  }
@@ -1314,27 +1314,27 @@ function X(e, t, n, r = !0) {
1314
1314
  }
1315
1315
  else t !== null && be(i);
1316
1316
  if (r) {
1317
- var f = i;
1318
- if (n && f.deps === null && f.teardown === null && f.nodes_start === null && f.first === f.last && // either `null`, or a singular child
1319
- (f.f & ke) === 0 && (f = f.first), f !== null && (f.parent = s, s !== null && ns(f, s), y !== null && (y.f & F) !== 0 && (e & ve) === 0)) {
1320
- var a = (
1317
+ var a = i;
1318
+ if (n && a.deps === null && a.teardown === null && a.nodes_start === null && a.first === a.last && // either `null`, or a singular child
1319
+ (a.f & Te) === 0 && (a = a.first), a !== null && (a.parent = s, s !== null && rs(a, s), y !== null && (y.f & F) !== 0 && (e & ve) === 0)) {
1320
+ var f = (
1321
1321
  /** @type {Derived} */
1322
1322
  y
1323
1323
  );
1324
- (a.effects ??= []).push(f);
1324
+ (f.effects ??= []).push(a);
1325
1325
  }
1326
1326
  }
1327
1327
  return i;
1328
1328
  }
1329
- function rs() {
1329
+ function ss() {
1330
1330
  return y !== null && !J;
1331
1331
  }
1332
1332
  function yt(e) {
1333
1333
  const t = X(ot, null, !1);
1334
1334
  return D(t, P), t.teardown = e, t;
1335
1335
  }
1336
- function Gs(e) {
1337
- Dn();
1336
+ function Js(e) {
1337
+ jn();
1338
1338
  var t = (
1339
1339
  /** @type {Effect} */
1340
1340
  m.f
@@ -1346,41 +1346,41 @@ function Gs(e) {
1346
1346
  );
1347
1347
  (r.e ??= []).push(e);
1348
1348
  } else
1349
- return Fn(e);
1349
+ return qn(e);
1350
1350
  }
1351
- function Fn(e) {
1352
- return X(Ht | _n, e, !1);
1351
+ function qn(e) {
1352
+ return X(Ht | pn, e, !1);
1353
1353
  }
1354
- function Ks(e) {
1355
- return Dn(), X(ot | _n, e, !0);
1354
+ function Xs(e) {
1355
+ return jn(), X(ot | pn, e, !0);
1356
1356
  }
1357
- function ss(e) {
1357
+ function is(e) {
1358
1358
  ne.ensure();
1359
- const t = X(ve | ke, e, !0);
1359
+ const t = X(ve | Te, e, !0);
1360
1360
  return () => {
1361
1361
  L(t);
1362
1362
  };
1363
1363
  }
1364
- function is(e) {
1364
+ function as(e) {
1365
1365
  ne.ensure();
1366
- const t = X(ve | ke, e, !0);
1366
+ const t = X(ve | Te, e, !0);
1367
1367
  return (n = {}) => new Promise((r) => {
1368
1368
  n.outro ? Oe(t, () => {
1369
1369
  L(t), r(void 0);
1370
1370
  }) : (L(t), r(void 0));
1371
1371
  });
1372
1372
  }
1373
- function jn(e) {
1373
+ function Bn(e) {
1374
1374
  return X(Ht, e, !1);
1375
1375
  }
1376
1376
  function fs(e) {
1377
- return X(Vt | ke, e, !0);
1377
+ return X(Vt | Te, e, !0);
1378
1378
  }
1379
1379
  function Fe(e, t = 0) {
1380
1380
  return X(ot | t, e, !0);
1381
1381
  }
1382
- function zs(e, t = [], n = []) {
1383
- Zr(t, n, (r) => {
1382
+ function Zs(e, t = [], n = []) {
1383
+ Qr(t, n, (r) => {
1384
1384
  X(ot, () => e(...r.map(M)), !0);
1385
1385
  });
1386
1386
  }
@@ -1389,21 +1389,21 @@ function Kt(e, t = 0) {
1389
1389
  return n;
1390
1390
  }
1391
1391
  function Y(e, t = !0) {
1392
- return X(ue | ke, e, !0, t);
1392
+ return X(ue | Te, e, !0, t);
1393
1393
  }
1394
- function qn(e) {
1394
+ function Hn(e) {
1395
1395
  var t = e.teardown;
1396
1396
  if (t !== null) {
1397
- const n = Te, r = y;
1398
- sn(!0), O(null);
1397
+ const n = ke, r = y;
1398
+ an(!0), O(null);
1399
1399
  try {
1400
1400
  t.call(null);
1401
1401
  } finally {
1402
- sn(n), O(r);
1402
+ an(n), O(r);
1403
1403
  }
1404
1404
  }
1405
1405
  }
1406
- function Bn(e, t = !1) {
1406
+ function Un(e, t = !1) {
1407
1407
  var n = e.first;
1408
1408
  for (e.first = e.last = null; n !== null; ) {
1409
1409
  const s = n.ac;
@@ -1414,7 +1414,7 @@ function Bn(e, t = !1) {
1414
1414
  (n.f & ve) !== 0 ? n.parent = null : L(n, t), n = r;
1415
1415
  }
1416
1416
  }
1417
- function as(e) {
1417
+ function ls(e) {
1418
1418
  for (var t = e.first; t !== null; ) {
1419
1419
  var n = t.next;
1420
1420
  (t.f & ue) === 0 && L(t), t = n;
@@ -1422,20 +1422,20 @@ function as(e) {
1422
1422
  }
1423
1423
  function L(e, t = !0) {
1424
1424
  var n = !1;
1425
- (t || (e.f & Er) !== 0) && e.nodes_start !== null && e.nodes_end !== null && (ls(
1425
+ (t || (e.f & Sr) !== 0) && e.nodes_start !== null && e.nodes_end !== null && (us(
1426
1426
  e.nodes_start,
1427
1427
  /** @type {TemplateNode} */
1428
1428
  e.nodes_end
1429
- ), n = !0), Bn(e, t && !n), st(e, 0), D(e, ae);
1429
+ ), n = !0), Un(e, t && !n), st(e, 0), D(e, fe);
1430
1430
  var r = e.transitions;
1431
1431
  if (r !== null)
1432
1432
  for (const i of r)
1433
1433
  i.stop();
1434
- qn(e);
1434
+ Hn(e);
1435
1435
  var s = e.parent;
1436
- s !== null && s.first !== null && Hn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes_start = e.nodes_end = e.ac = null;
1436
+ s !== null && s.first !== null && Vn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes_start = e.nodes_end = e.ac = null;
1437
1437
  }
1438
- function ls(e, t) {
1438
+ function us(e, t) {
1439
1439
  for (; e !== null; ) {
1440
1440
  var n = e === t ? null : (
1441
1441
  /** @type {TemplateNode} */
@@ -1444,17 +1444,17 @@ function ls(e, t) {
1444
1444
  e.remove(), e = n;
1445
1445
  }
1446
1446
  }
1447
- function Hn(e) {
1447
+ function Vn(e) {
1448
1448
  var t = e.parent, n = e.prev, r = e.next;
1449
1449
  n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
1450
1450
  }
1451
1451
  function Oe(e, t, n = !0) {
1452
1452
  var r = [];
1453
- zt(e, r, !0), Un(r, () => {
1453
+ zt(e, r, !0), Yn(r, () => {
1454
1454
  n && L(e), t && t();
1455
1455
  });
1456
1456
  }
1457
- function Un(e, t) {
1457
+ function Yn(e, t) {
1458
1458
  var n = e.length;
1459
1459
  if (n > 0) {
1460
1460
  var r = () => --n || t();
@@ -1466,8 +1466,8 @@ function Un(e, t) {
1466
1466
  function zt(e, t, n) {
1467
1467
  if ((e.f & H) === 0) {
1468
1468
  if (e.f ^= H, e.transitions !== null)
1469
- for (const f of e.transitions)
1470
- (f.is_global || n) && t.push(f);
1469
+ for (const a of e.transitions)
1470
+ (a.is_global || n) && t.push(a);
1471
1471
  for (var r = e.first; r !== null; ) {
1472
1472
  var s = r.next, i = (r.f & ht) !== 0 || (r.f & ue) !== 0;
1473
1473
  zt(r, t, i ? n : !1), r = s;
@@ -1475,21 +1475,21 @@ function zt(e, t, n) {
1475
1475
  }
1476
1476
  }
1477
1477
  function Jt(e) {
1478
- Vn(e, !0);
1478
+ Wn(e, !0);
1479
1479
  }
1480
- function Vn(e, t) {
1480
+ function Wn(e, t) {
1481
1481
  if ((e.f & H) !== 0) {
1482
1482
  e.f ^= H, (e.f & P) === 0 && (D(e, U), be(e));
1483
1483
  for (var n = e.first; n !== null; ) {
1484
1484
  var r = n.next, s = (n.f & ht) !== 0 || (n.f & ue) !== 0;
1485
- Vn(n, s ? t : !1), n = r;
1485
+ Wn(n, s ? t : !1), n = r;
1486
1486
  }
1487
1487
  if (e.transitions !== null)
1488
1488
  for (const i of e.transitions)
1489
1489
  (i.is_global || t) && i.in();
1490
1490
  }
1491
1491
  }
1492
- function Yn(e, t) {
1492
+ function Gn(e, t) {
1493
1493
  for (var n = e.nodes_start, r = e.nodes_end; n !== null; ) {
1494
1494
  var s = n === r ? null : (
1495
1495
  /** @type {TemplateNode} */
@@ -1499,12 +1499,12 @@ function Yn(e, t) {
1499
1499
  }
1500
1500
  }
1501
1501
  let Ce = !1;
1502
- function rn(e) {
1502
+ function sn(e) {
1503
1503
  Ce = e;
1504
1504
  }
1505
- let Te = !1;
1506
- function sn(e) {
1507
- Te = e;
1505
+ let ke = !1;
1506
+ function an(e) {
1507
+ ke = e;
1508
1508
  }
1509
1509
  let y = null, J = !1;
1510
1510
  function O(e) {
@@ -1515,20 +1515,20 @@ function K(e) {
1515
1515
  m = e;
1516
1516
  }
1517
1517
  let le = null;
1518
- function Wn(e) {
1518
+ function Kn(e) {
1519
1519
  y !== null && (le === null ? le = [e] : le.push(e));
1520
1520
  }
1521
1521
  let I = null, q = 0, V = null;
1522
- function us(e) {
1522
+ function os(e) {
1523
1523
  V = e;
1524
1524
  }
1525
- let Gn = 1, We = 0, $e = We;
1525
+ let zn = 1, We = 0, $e = We;
1526
1526
  function fn(e) {
1527
1527
  $e = e;
1528
1528
  }
1529
1529
  let ce = !1;
1530
- function Kn() {
1531
- return ++Gn;
1530
+ function Jn() {
1531
+ return ++zn;
1532
1532
  }
1533
1533
  function wt(e) {
1534
1534
  var t = e.f;
@@ -1537,21 +1537,21 @@ function wt(e) {
1537
1537
  if ((t & pe) !== 0) {
1538
1538
  var n = e.deps, r = (t & W) !== 0;
1539
1539
  if (n !== null) {
1540
- var s, i, f = (t & nt) !== 0, a = r && m !== null && !ce, l = n.length;
1541
- if ((f || a) && (m === null || (m.f & ae) === 0)) {
1540
+ var s, i, a = (t & nt) !== 0, f = r && m !== null && !ce, l = n.length;
1541
+ if ((a || f) && (m === null || (m.f & fe) === 0)) {
1542
1542
  var u = (
1543
1543
  /** @type {Derived} */
1544
1544
  e
1545
1545
  ), c = u.parent;
1546
1546
  for (s = 0; s < l; s++)
1547
- i = n[s], (f || !i?.reactions?.includes(u)) && (i.reactions ??= []).push(u);
1548
- f && (u.f ^= nt), a && c !== null && (c.f & W) === 0 && (u.f ^= W);
1547
+ i = n[s], (a || !i?.reactions?.includes(u)) && (i.reactions ??= []).push(u);
1548
+ a && (u.f ^= nt), f && c !== null && (c.f & W) === 0 && (u.f ^= W);
1549
1549
  }
1550
1550
  for (s = 0; s < l; s++)
1551
1551
  if (i = n[s], wt(
1552
1552
  /** @type {Derived} */
1553
1553
  i
1554
- ) && xn(
1554
+ ) && On(
1555
1555
  /** @type {Derived} */
1556
1556
  i
1557
1557
  ), i.wv > e.wv)
@@ -1561,12 +1561,12 @@ function wt(e) {
1561
1561
  }
1562
1562
  return !1;
1563
1563
  }
1564
- function zn(e, t, n = !0) {
1564
+ function Xn(e, t, n = !0) {
1565
1565
  var r = e.reactions;
1566
1566
  if (r !== null && !le?.includes(e))
1567
1567
  for (var s = 0; s < r.length; s++) {
1568
1568
  var i = r[s];
1569
- (i.f & F) !== 0 ? zn(
1569
+ (i.f & F) !== 0 ? Xn(
1570
1570
  /** @type {Derived} */
1571
1571
  i,
1572
1572
  t,
@@ -1577,8 +1577,8 @@ function zn(e, t, n = !0) {
1577
1577
  ));
1578
1578
  }
1579
1579
  }
1580
- function Jn(e) {
1581
- var t = I, n = q, r = V, s = y, i = ce, f = le, a = A, l = J, u = $e, c = e.f;
1580
+ function Zn(e) {
1581
+ var t = I, n = q, r = V, s = y, i = ce, a = le, f = A, l = J, u = $e, c = e.f;
1582
1582
  I = /** @type {null | Value[]} */
1583
1583
  null, q = 0, V = null, ce = (c & W) !== 0 && (J || !Ce || y === null), y = (c & (ue | ve)) === 0 ? e : null, le = null, Pe(e.ctx), J = !1, $e = ++We, e.ac !== null && (gt(() => {
1584
1584
  e.ac.abort(xe);
@@ -1605,7 +1605,7 @@ function Jn(e) {
1605
1605
  if (Ke() && V !== null && !J && d !== null && (e.f & (F | pe | U)) === 0)
1606
1606
  for (o = 0; o < /** @type {Source[]} */
1607
1607
  V.length; o++)
1608
- zn(
1608
+ Xn(
1609
1609
  V[o],
1610
1610
  /** @type {Effect} */
1611
1611
  e
@@ -1613,15 +1613,15 @@ function Jn(e) {
1613
1613
  return s !== null && s !== e && (We++, V !== null && (r === null ? r = V : r.push(.../** @type {Source[]} */
1614
1614
  V))), (e.f & we) !== 0 && (e.f ^= we), h;
1615
1615
  } catch (g) {
1616
- return $n(g);
1616
+ return En(g);
1617
1617
  } finally {
1618
- e.f ^= xt, I = t, q = n, V = r, y = s, ce = i, le = f, Pe(a), J = l, $e = u;
1618
+ e.f ^= xt, I = t, q = n, V = r, y = s, ce = i, le = a, Pe(f), J = l, $e = u;
1619
1619
  }
1620
1620
  }
1621
- function os(e, t) {
1621
+ function cs(e, t) {
1622
1622
  let n = t.reactions;
1623
1623
  if (n !== null) {
1624
- var r = yr.call(n, e);
1624
+ var r = wr.call(n, e);
1625
1625
  if (r !== -1) {
1626
1626
  var s = n.length - 1;
1627
1627
  s === 0 ? n = t.reactions = null : (n[r] = n[s], n.pop());
@@ -1630,7 +1630,7 @@ function os(e, t) {
1630
1630
  n === null && (t.f & F) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
1631
1631
  // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
1632
1632
  // allows us to skip the expensive work of disconnecting and immediately reconnecting it
1633
- (I === null || !I.includes(t)) && (D(t, pe), (t.f & (W | nt)) === 0 && (t.f ^= nt), An(
1633
+ (I === null || !I.includes(t)) && (D(t, pe), (t.f & (W | nt)) === 0 && (t.f ^= nt), Nn(
1634
1634
  /** @type {Derived} **/
1635
1635
  t
1636
1636
  ), st(
@@ -1643,32 +1643,32 @@ function st(e, t) {
1643
1643
  var n = e.deps;
1644
1644
  if (n !== null)
1645
1645
  for (var r = t; r < n.length; r++)
1646
- os(e, n[r]);
1646
+ cs(e, n[r]);
1647
1647
  }
1648
1648
  function it(e) {
1649
1649
  var t = e.f;
1650
- if ((t & ae) === 0) {
1650
+ if ((t & fe) === 0) {
1651
1651
  D(e, P);
1652
1652
  var n = m, r = Ce;
1653
1653
  m = e, Ce = !0;
1654
1654
  try {
1655
- (t & Se) !== 0 ? as(e) : Bn(e), qn(e);
1656
- var s = Jn(e);
1657
- e.teardown = typeof s == "function" ? s : null, e.wv = Gn;
1655
+ (t & Se) !== 0 ? ls(e) : Un(e), Hn(e);
1656
+ var s = Zn(e);
1657
+ e.teardown = typeof s == "function" ? s : null, e.wv = zn;
1658
1658
  var i;
1659
- cn && Br && (e.f & U) !== 0 && e.deps;
1659
+ dn && Hr && (e.f & U) !== 0 && e.deps;
1660
1660
  } finally {
1661
1661
  Ce = r, m = n;
1662
1662
  }
1663
1663
  }
1664
1664
  }
1665
- async function cs() {
1666
- await Promise.resolve(), En();
1665
+ async function hs() {
1666
+ await Promise.resolve(), Tn();
1667
1667
  }
1668
1668
  function M(e) {
1669
1669
  var t = e.f, n = (t & F) !== 0;
1670
1670
  if (y !== null && !J) {
1671
- var r = m !== null && (m.f & ae) !== 0;
1671
+ var r = m !== null && (m.f & fe) !== 0;
1672
1672
  if (!r && !le?.includes(e)) {
1673
1673
  var s = y.deps;
1674
1674
  if ((y.f & xt) !== 0)
@@ -1682,26 +1682,26 @@ function M(e) {
1682
1682
  } else if (n && /** @type {Derived} */
1683
1683
  e.deps === null && /** @type {Derived} */
1684
1684
  e.effects === null) {
1685
- var f = (
1685
+ var a = (
1686
1686
  /** @type {Derived} */
1687
1687
  e
1688
- ), a = f.parent;
1689
- a !== null && (a.f & W) === 0 && (f.f ^= W);
1688
+ ), f = a.parent;
1689
+ f !== null && (f.f & W) === 0 && (a.f ^= W);
1690
1690
  }
1691
- if (Te) {
1691
+ if (ke) {
1692
1692
  if (de.has(e))
1693
1693
  return de.get(e);
1694
1694
  if (n) {
1695
- f = /** @type {Derived} */
1695
+ a = /** @type {Derived} */
1696
1696
  e;
1697
- var l = f.v;
1698
- return ((f.f & P) === 0 && f.reactions !== null || Xn(f)) && (l = Wt(f)), de.set(f, l), l;
1697
+ var l = a.v;
1698
+ return ((a.f & P) === 0 && a.reactions !== null || Qn(a)) && (l = Wt(a)), de.set(a, l), l;
1699
1699
  }
1700
1700
  } else if (n) {
1701
- if (f = /** @type {Derived} */
1702
- e, z?.has(f))
1703
- return z.get(f);
1704
- wt(f) && xn(f);
1701
+ if (a = /** @type {Derived} */
1702
+ e, z?.has(a))
1703
+ return z.get(a);
1704
+ wt(a) && On(a);
1705
1705
  }
1706
1706
  if (z?.has(e))
1707
1707
  return z.get(e);
@@ -1709,11 +1709,11 @@ function M(e) {
1709
1709
  throw e.v;
1710
1710
  return e.v;
1711
1711
  }
1712
- function Xn(e) {
1712
+ function Qn(e) {
1713
1713
  if (e.v === N) return !0;
1714
1714
  if (e.deps === null) return !1;
1715
1715
  for (const t of e.deps)
1716
- if (de.has(t) || (t.f & F) !== 0 && Xn(
1716
+ if (de.has(t) || (t.f & F) !== 0 && Qn(
1717
1717
  /** @type {Derived} */
1718
1718
  t
1719
1719
  ))
@@ -1728,11 +1728,11 @@ function $t(e) {
1728
1728
  J = t;
1729
1729
  }
1730
1730
  }
1731
- const hs = -7169;
1731
+ const ds = -7169;
1732
1732
  function D(e, t) {
1733
- e.f = e.f & hs | t;
1733
+ e.f = e.f & ds | t;
1734
1734
  }
1735
- function Js(e) {
1735
+ function Qs(e) {
1736
1736
  if (!(typeof e != "object" || !e || e instanceof EventTarget)) {
1737
1737
  if (he in e)
1738
1738
  It(e);
@@ -1754,7 +1754,7 @@ function It(e, t = /* @__PURE__ */ new Set()) {
1754
1754
  }
1755
1755
  const n = Bt(e);
1756
1756
  if (n !== Object.prototype && n !== Array.prototype && n !== Map.prototype && n !== Set.prototype && n !== Date.prototype) {
1757
- const r = hn(n);
1757
+ const r = _n(n);
1758
1758
  for (let s in r) {
1759
1759
  const i = r[s].get;
1760
1760
  if (i)
@@ -1766,8 +1766,8 @@ function It(e, t = /* @__PURE__ */ new Set()) {
1766
1766
  }
1767
1767
  }
1768
1768
  }
1769
- const Zn = /* @__PURE__ */ new Set(), Pt = /* @__PURE__ */ new Set();
1770
- function Xs(e) {
1769
+ const er = /* @__PURE__ */ new Set(), Pt = /* @__PURE__ */ new Set();
1770
+ function ei(e) {
1771
1771
  if (!v) return;
1772
1772
  e.removeAttribute("onload"), e.removeAttribute("onerror");
1773
1773
  const t = e.__e;
@@ -1775,7 +1775,7 @@ function Xs(e) {
1775
1775
  e.isConnected && e.dispatchEvent(t);
1776
1776
  }));
1777
1777
  }
1778
- function ds(e, t, n, r = {}) {
1778
+ function _s(e, t, n, r = {}) {
1779
1779
  function s(i) {
1780
1780
  if (r.capture || Be.call(t, i), !i.cancelBubble)
1781
1781
  return gt(() => n?.call(this, i));
@@ -1784,22 +1784,22 @@ function ds(e, t, n, r = {}) {
1784
1784
  t.addEventListener(e, s, r);
1785
1785
  }) : t.addEventListener(e, s, r), s;
1786
1786
  }
1787
- function Zs(e, t, n, r, s) {
1788
- var i = { capture: r, passive: s }, f = ds(e, t, n, i);
1787
+ function ti(e, t, n, r, s) {
1788
+ var i = { capture: r, passive: s }, a = _s(e, t, n, i);
1789
1789
  (t === document.body || // @ts-ignore
1790
1790
  t === window || // @ts-ignore
1791
1791
  t === document || // Firefox has quirky behavior, it can happen that we still get "canplay" events when the element is already removed
1792
1792
  t instanceof HTMLMediaElement) && yt(() => {
1793
- t.removeEventListener(e, f, i);
1793
+ t.removeEventListener(e, a, i);
1794
1794
  });
1795
1795
  }
1796
- function Qs(e) {
1796
+ function ni(e) {
1797
1797
  for (var t = 0; t < e.length; t++)
1798
- Zn.add(e[t]);
1798
+ er.add(e[t]);
1799
1799
  for (var n of Pt)
1800
1800
  n(e);
1801
1801
  }
1802
- let an = null;
1802
+ let ln = null;
1803
1803
  function Be(e) {
1804
1804
  var t = this, n = (
1805
1805
  /** @type {Node} */
@@ -1808,10 +1808,10 @@ function Be(e) {
1808
1808
  /** @type {null | Element} */
1809
1809
  s[0] || e.target
1810
1810
  );
1811
- an = e;
1812
- var f = 0, a = an === e && e.__root;
1813
- if (a) {
1814
- var l = s.indexOf(a);
1811
+ ln = e;
1812
+ var a = 0, f = ln === e && e.__root;
1813
+ if (f) {
1814
+ var l = s.indexOf(f);
1815
1815
  if (l !== -1 && (t === document || t === /** @type {any} */
1816
1816
  window)) {
1817
1817
  e.__root = t;
@@ -1820,10 +1820,10 @@ function Be(e) {
1820
1820
  var u = s.indexOf(t);
1821
1821
  if (u === -1)
1822
1822
  return;
1823
- l <= u && (f = l);
1823
+ l <= u && (a = l);
1824
1824
  }
1825
1825
  if (i = /** @type {Element} */
1826
- s[f] || e.target, i !== t) {
1826
+ s[a] || e.target, i !== t) {
1827
1827
  Ie(e, "currentTarget", {
1828
1828
  configurable: !0,
1829
1829
  get() {
@@ -1847,17 +1847,17 @@ function Be(e) {
1847
1847
  $.apply(i, [e, ...E]);
1848
1848
  } else
1849
1849
  g.call(i, e);
1850
- } catch (T) {
1851
- h ? d.push(T) : h = T;
1850
+ } catch (k) {
1851
+ h ? d.push(k) : h = k;
1852
1852
  }
1853
1853
  if (e.cancelBubble || o === t || o === null)
1854
1854
  break;
1855
1855
  i = o;
1856
1856
  }
1857
1857
  if (h) {
1858
- for (let T of d)
1858
+ for (let k of d)
1859
1859
  queueMicrotask(() => {
1860
- throw T;
1860
+ throw k;
1861
1861
  });
1862
1862
  throw h;
1863
1863
  }
@@ -1866,7 +1866,7 @@ function Be(e) {
1866
1866
  }
1867
1867
  }
1868
1868
  }
1869
- function Qn(e) {
1869
+ function tr(e) {
1870
1870
  var t = document.createElement("template");
1871
1871
  return t.innerHTML = e.replaceAll("<!>", "<!---->"), t.content;
1872
1872
  }
@@ -1878,47 +1878,47 @@ function re(e, t) {
1878
1878
  n.nodes_start === null && (n.nodes_start = e, n.nodes_end = t);
1879
1879
  }
1880
1880
  // @__NO_SIDE_EFFECTS__
1881
- function ei(e, t) {
1882
- var n = (t & pr) !== 0, r = (t & mr) !== 0, s, i = !e.startsWith("<!>");
1881
+ function ri(e, t) {
1882
+ var n = (t & mr) !== 0, r = (t & gr) !== 0, s, i = !e.startsWith("<!>");
1883
1883
  return () => {
1884
1884
  if (v)
1885
1885
  return re(w, null), w;
1886
- s === void 0 && (s = Qn(i ? e : "<!>" + e), n || (s = /** @type {Node} */
1886
+ s === void 0 && (s = tr(i ? e : "<!>" + e), n || (s = /** @type {Node} */
1887
1887
  /* @__PURE__ */ se(s)));
1888
- var f = (
1888
+ var a = (
1889
1889
  /** @type {TemplateNode} */
1890
- r || Rn ? document.importNode(s, !0) : s.cloneNode(!0)
1890
+ r || Pn ? document.importNode(s, !0) : s.cloneNode(!0)
1891
1891
  );
1892
1892
  if (n) {
1893
- var a = (
1893
+ var f = (
1894
1894
  /** @type {TemplateNode} */
1895
- /* @__PURE__ */ se(f)
1895
+ /* @__PURE__ */ se(a)
1896
1896
  ), l = (
1897
1897
  /** @type {TemplateNode} */
1898
- f.lastChild
1898
+ a.lastChild
1899
1899
  );
1900
- re(a, l);
1900
+ re(f, l);
1901
1901
  } else
1902
- re(f, f);
1903
- return f;
1902
+ re(a, a);
1903
+ return a;
1904
1904
  };
1905
1905
  }
1906
1906
  // @__NO_SIDE_EFFECTS__
1907
- function _s(e, t, n = "svg") {
1907
+ function vs(e, t, n = "svg") {
1908
1908
  var r = !e.startsWith("<!>"), s = `<${n}>${r ? e : "<!>" + e}</${n}>`, i;
1909
1909
  return () => {
1910
1910
  if (v)
1911
1911
  return re(w, null), w;
1912
1912
  if (!i) {
1913
- var f = (
1913
+ var a = (
1914
1914
  /** @type {DocumentFragment} */
1915
- Qn(s)
1916
- ), a = (
1915
+ tr(s)
1916
+ ), f = (
1917
1917
  /** @type {Element} */
1918
- /* @__PURE__ */ se(f)
1918
+ /* @__PURE__ */ se(a)
1919
1919
  );
1920
1920
  i = /** @type {Element} */
1921
- /* @__PURE__ */ se(a);
1921
+ /* @__PURE__ */ se(f);
1922
1922
  }
1923
1923
  var l = (
1924
1924
  /** @type {TemplateNode} */
@@ -1928,10 +1928,10 @@ function _s(e, t, n = "svg") {
1928
1928
  };
1929
1929
  }
1930
1930
  // @__NO_SIDE_EFFECTS__
1931
- function ti(e, t) {
1932
- return /* @__PURE__ */ _s(e, t, "svg");
1931
+ function si(e, t) {
1932
+ return /* @__PURE__ */ vs(e, t, "svg");
1933
1933
  }
1934
- function ni(e = "") {
1934
+ function ii(e = "") {
1935
1935
  if (!v) {
1936
1936
  var t = G(e + "");
1937
1937
  return re(t, t), t;
@@ -1939,13 +1939,13 @@ function ni(e = "") {
1939
1939
  var n = w;
1940
1940
  return n.nodeType !== dt && (n.before(n = G()), C(n)), re(n, n), n;
1941
1941
  }
1942
- function ri() {
1942
+ function ai() {
1943
1943
  if (v)
1944
1944
  return re(w, null), w;
1945
1945
  var e = document.createDocumentFragment(), t = document.createComment(""), n = G();
1946
1946
  return e.append(t, n), re(t, n), e;
1947
1947
  }
1948
- function vs(e, t) {
1948
+ function ps(e, t) {
1949
1949
  if (v) {
1950
1950
  m.nodes_end = w, vt();
1951
1951
  return;
@@ -1955,18 +1955,19 @@ function vs(e, t) {
1955
1955
  t
1956
1956
  );
1957
1957
  }
1958
- const ps = ["touchstart", "touchmove"];
1959
- function ms(e) {
1960
- return ps.includes(e);
1958
+ const ms = ["touchstart", "touchmove"];
1959
+ function gs(e) {
1960
+ return ms.includes(e);
1961
1961
  }
1962
- function si(e, t) {
1962
+ let un = !0;
1963
+ function fi(e, t) {
1963
1964
  var n = t == null ? "" : typeof t == "object" ? t + "" : t;
1964
1965
  n !== (e.__t ??= e.nodeValue) && (e.__t = n, e.nodeValue = n + "");
1965
1966
  }
1966
- function er(e, t) {
1967
- return tr(e, t);
1967
+ function nr(e, t) {
1968
+ return rr(e, t);
1968
1969
  }
1969
- function gs(e, t) {
1970
+ function ys(e, t) {
1970
1971
  Rt(), t.intro = t.intro ?? !1;
1971
1972
  const n = t.target, r = v, s = w;
1972
1973
  try {
@@ -1974,7 +1975,7 @@ function gs(e, t) {
1974
1975
  /** @type {TemplateNode} */
1975
1976
  /* @__PURE__ */ se(n)
1976
1977
  ); i && (i.nodeType !== De || /** @type {Comment} */
1977
- i.data !== on); )
1978
+ i.data !== hn); )
1978
1979
  i = /** @type {TemplateNode} */
1979
1980
  /* @__PURE__ */ ie(i);
1980
1981
  if (!i)
@@ -1983,37 +1984,37 @@ function gs(e, t) {
1983
1984
  /** @type {Comment} */
1984
1985
  i
1985
1986
  );
1986
- const f = tr(e, { ...t, anchor: i });
1987
+ const a = rr(e, { ...t, anchor: i });
1987
1988
  return B(!1), /** @type {Exports} */
1988
- f;
1989
- } catch (f) {
1990
- if (f instanceof Error && f.message.split(`
1991
- `).some((a) => a.startsWith("https://svelte.dev/e/")))
1992
- throw f;
1993
- return f !== Re && console.warn("Failed to hydrate: ", f), t.recover === !1 && Cr(), Rt(), Gt(n), B(!1), er(e, t);
1989
+ a;
1990
+ } catch (a) {
1991
+ if (a instanceof Error && a.message.split(`
1992
+ `).some((f) => f.startsWith("https://svelte.dev/e/")))
1993
+ throw a;
1994
+ return a !== Re && console.warn("Failed to hydrate: ", a), t.recover === !1 && Rr(), Rt(), Gt(n), B(!1), nr(e, t);
1994
1995
  } finally {
1995
1996
  B(r), C(s);
1996
1997
  }
1997
1998
  }
1998
1999
  const Ae = /* @__PURE__ */ new Map();
1999
- function tr(e, { target: t, anchor: n, props: r = {}, events: s, context: i, intro: f = !0 }) {
2000
+ function rr(e, { target: t, anchor: n, props: r = {}, events: s, context: i, intro: a = !0 }) {
2000
2001
  Rt();
2001
- var a = /* @__PURE__ */ new Set(), l = (_) => {
2002
+ var f = /* @__PURE__ */ new Set(), l = (_) => {
2002
2003
  for (var h = 0; h < _.length; h++) {
2003
2004
  var d = _[h];
2004
- if (!a.has(d)) {
2005
- a.add(d);
2006
- var o = ms(d);
2005
+ if (!f.has(d)) {
2006
+ f.add(d);
2007
+ var o = gs(d);
2007
2008
  t.addEventListener(d, Be, { passive: o });
2008
2009
  var g = Ae.get(d);
2009
2010
  g === void 0 ? (document.addEventListener(d, Be, { passive: o }), Ae.set(d, 1)) : Ae.set(d, g + 1);
2010
2011
  }
2011
2012
  }
2012
2013
  };
2013
- l(qt(Zn)), Pt.add(l);
2014
- var u = void 0, c = is(() => {
2014
+ l(qt(er)), Pt.add(l);
2015
+ var u = void 0, c = as(() => {
2015
2016
  var _ = n ?? t.appendChild(G());
2016
- return Jr(
2017
+ return Xr(
2017
2018
  /** @type {TemplateNode} */
2018
2019
  _,
2019
2020
  {
@@ -2022,7 +2023,7 @@ function tr(e, { target: t, anchor: n, props: r = {}, events: s, context: i, int
2022
2023
  },
2023
2024
  (h) => {
2024
2025
  if (i) {
2025
- Hr({});
2026
+ Ur({});
2026
2027
  var d = (
2027
2028
  /** @type {ComponentContext} */
2028
2029
  A
@@ -2033,13 +2034,13 @@ function tr(e, { target: t, anchor: n, props: r = {}, events: s, context: i, int
2033
2034
  /** @type {TemplateNode} */
2034
2035
  h,
2035
2036
  null
2036
- ), u = e(h, r) || {}, v && (m.nodes_end = w, w === null || w.nodeType !== De || /** @type {Comment} */
2037
+ ), un = a, u = e(h, r) || {}, un = !0, v && (m.nodes_end = w, w === null || w.nodeType !== De || /** @type {Comment} */
2037
2038
  w.data !== jt))
2038
2039
  throw _t(), Re;
2039
- i && Ur();
2040
+ i && Vr();
2040
2041
  }
2041
2042
  ), () => {
2042
- for (var h of a) {
2043
+ for (var h of f) {
2043
2044
  t.removeEventListener(h, Be);
2044
2045
  var d = (
2045
2046
  /** @type {number} */
@@ -2053,11 +2054,11 @@ function tr(e, { target: t, anchor: n, props: r = {}, events: s, context: i, int
2053
2054
  return Mt.set(u, c), u;
2054
2055
  }
2055
2056
  let Mt = /* @__PURE__ */ new WeakMap();
2056
- function ys(e, t) {
2057
+ function ws(e, t) {
2057
2058
  const n = Mt.get(e);
2058
2059
  return n ? (Mt.delete(e), n(t)) : Promise.resolve();
2059
2060
  }
2060
- class ws {
2061
+ class $s {
2061
2062
  /** @type {TemplateNode} */
2062
2063
  anchor;
2063
2064
  /** @type {Map<Batch, Key>} */
@@ -2094,23 +2095,23 @@ class ws {
2094
2095
  var s = this.#n.get(n);
2095
2096
  s && (this.#e.set(n, s.effect), this.#n.delete(n), s.fragment.lastChild.remove(), this.anchor.before(s.fragment), r = s.effect);
2096
2097
  }
2097
- for (const [i, f] of this.#t) {
2098
+ for (const [i, a] of this.#t) {
2098
2099
  if (this.#t.delete(i), i === t)
2099
2100
  break;
2100
- const a = this.#n.get(f);
2101
- a && (L(a.effect), this.#n.delete(f));
2101
+ const f = this.#n.get(a);
2102
+ f && (L(f.effect), this.#n.delete(a));
2102
2103
  }
2103
- for (const [i, f] of this.#e) {
2104
+ for (const [i, a] of this.#e) {
2104
2105
  if (i === n) continue;
2105
- const a = () => {
2106
+ const f = () => {
2106
2107
  if (Array.from(this.#t.values()).includes(i)) {
2107
2108
  var u = document.createDocumentFragment();
2108
- Yn(f, u), u.append(G()), this.#n.set(i, { effect: f, fragment: u });
2109
+ Gn(a, u), u.append(G()), this.#n.set(i, { effect: a, fragment: u });
2109
2110
  } else
2110
- L(f);
2111
+ L(a);
2111
2112
  this.#e.delete(i);
2112
2113
  };
2113
- this.#r || !r ? Oe(f, a, !1) : a();
2114
+ this.#r || !r ? Oe(a, f, !1) : f();
2114
2115
  }
2115
2116
  }
2116
2117
  };
@@ -2123,12 +2124,12 @@ class ws {
2123
2124
  var r = (
2124
2125
  /** @type {Batch} */
2125
2126
  b
2126
- ), s = Mn();
2127
+ ), s = Dn();
2127
2128
  if (n && !this.#e.has(t) && !this.#n.has(t))
2128
2129
  if (s) {
2129
- var i = document.createDocumentFragment(), f = G();
2130
- i.append(f), this.#n.set(t, {
2131
- effect: Y(() => n(f)),
2130
+ var i = document.createDocumentFragment(), a = G();
2131
+ i.append(a), this.#n.set(t, {
2132
+ effect: Y(() => n(a)),
2132
2133
  fragment: i
2133
2134
  });
2134
2135
  } else
@@ -2137,44 +2138,44 @@ class ws {
2137
2138
  Y(() => n(this.anchor))
2138
2139
  );
2139
2140
  if (this.#t.set(r, t), s) {
2140
- for (const [a, l] of this.#e)
2141
- a === t ? r.skipped_effects.delete(l) : r.skipped_effects.add(l);
2142
- for (const [a, l] of this.#n)
2143
- a === t ? r.skipped_effects.delete(l.effect) : r.skipped_effects.add(l.effect);
2141
+ for (const [f, l] of this.#e)
2142
+ f === t ? r.skipped_effects.delete(l) : r.skipped_effects.add(l);
2143
+ for (const [f, l] of this.#n)
2144
+ f === t ? r.skipped_effects.delete(l.effect) : r.skipped_effects.add(l.effect);
2144
2145
  r.add_callback(this.#l);
2145
2146
  } else
2146
2147
  v && (this.anchor = w), this.#l();
2147
2148
  }
2148
2149
  }
2149
- function ii(e, t, n = !1) {
2150
+ function li(e, t, n = !1) {
2150
2151
  v && vt();
2151
- var r = new ws(e), s = n ? ht : 0;
2152
- function i(f, a) {
2152
+ var r = new $s(e), s = n ? ht : 0;
2153
+ function i(a, f) {
2153
2154
  if (v) {
2154
- const u = pn(e) === lt;
2155
- if (f === u) {
2155
+ const u = gn(e) === lt;
2156
+ if (a === u) {
2156
2157
  var l = rt();
2157
- C(l), r.anchor = l, B(!1), r.ensure(f, a), B(!0);
2158
+ C(l), r.anchor = l, B(!1), r.ensure(a, f), B(!0);
2158
2159
  return;
2159
2160
  }
2160
2161
  }
2161
- r.ensure(f, a);
2162
+ r.ensure(a, f);
2162
2163
  }
2163
2164
  Kt(() => {
2164
- var f = !1;
2165
- t((a, l = !0) => {
2166
- f = !0, i(l, a);
2167
- }), f || i(!1, null);
2165
+ var a = !1;
2166
+ t((f, l = !0) => {
2167
+ a = !0, i(l, f);
2168
+ }), a || i(!1, null);
2168
2169
  }, s);
2169
2170
  }
2170
- function fi(e, t) {
2171
+ function ui(e, t) {
2171
2172
  return t;
2172
2173
  }
2173
- function $s(e, t, n) {
2174
- for (var r = e.items, s = [], i = t.length, f = 0; f < i; f++)
2175
- zt(t[f].e, s, !0);
2176
- var a = i > 0 && s.length === 0 && n !== null;
2177
- if (a) {
2174
+ function bs(e, t, n) {
2175
+ for (var r = e.items, s = [], i = t.length, a = 0; a < i; a++)
2176
+ zt(t[a].e, s, !0);
2177
+ var f = i > 0 && s.length === 0 && n !== null;
2178
+ if (f) {
2178
2179
  var l = (
2179
2180
  /** @type {Element} */
2180
2181
  /** @type {Element} */
@@ -2185,21 +2186,21 @@ function $s(e, t, n) {
2185
2186
  n
2186
2187
  ), r.clear(), Q(e, t[0].prev, t[i - 1].next);
2187
2188
  }
2188
- Un(s, () => {
2189
+ Yn(s, () => {
2189
2190
  for (var u = 0; u < i; u++) {
2190
2191
  var c = t[u];
2191
- a || (r.delete(c.k), Q(e, c.prev, c.next)), L(c.e, !a);
2192
+ f || (r.delete(c.k), Q(e, c.prev, c.next)), L(c.e, !f);
2192
2193
  }
2193
2194
  });
2194
2195
  }
2195
- function ai(e, t, n, r, s, i = null) {
2196
- var f = e, a = { flags: t, items: /* @__PURE__ */ new Map(), first: null }, l = (t & un) !== 0;
2196
+ function oi(e, t, n, r, s, i = null) {
2197
+ var a = e, f = { flags: t, items: /* @__PURE__ */ new Map(), first: null }, l = (t & cn) !== 0;
2197
2198
  if (l) {
2198
2199
  var u = (
2199
2200
  /** @type {Element} */
2200
2201
  e
2201
2202
  );
2202
- f = v ? C(
2203
+ a = v ? C(
2203
2204
  /** @type {Comment | Text} */
2204
2205
  /* @__PURE__ */ se(u)
2205
2206
  ) : u.appendChild(G());
@@ -2210,17 +2211,17 @@ function ai(e, t, n, r, s, i = null) {
2210
2211
  return ut(E) ? E : E == null ? [] : qt(E);
2211
2212
  }), o, g;
2212
2213
  function $() {
2213
- bs(
2214
+ Es(
2214
2215
  g,
2215
2216
  o,
2216
- a,
2217
- h,
2218
2217
  f,
2218
+ h,
2219
+ a,
2219
2220
  s,
2220
2221
  t,
2221
2222
  r,
2222
2223
  n
2223
- ), i !== null && (o.length === 0 ? c ? Jt(c) : c = Y(() => i(f)) : c !== null && Oe(c, () => {
2224
+ ), i !== null && (o.length === 0 ? c ? Jt(c) : c = Y(() => i(a)) : c !== null && Oe(c, () => {
2224
2225
  c = null;
2225
2226
  }));
2226
2227
  }
@@ -2232,23 +2233,23 @@ function ai(e, t, n, r, s, i = null) {
2232
2233
  if (_ && E === 0)
2233
2234
  return;
2234
2235
  _ = E === 0;
2235
- let T = !1;
2236
+ let k = !1;
2236
2237
  if (v) {
2237
- var k = pn(f) === lt;
2238
- k !== (E === 0) && (f = rt(), C(f), B(!1), T = !0);
2238
+ var T = gn(a) === lt;
2239
+ T !== (E === 0) && (a = rt(), C(a), B(!1), k = !0);
2239
2240
  }
2240
2241
  if (v) {
2241
2242
  for (var j = null, x, p = 0; p < E; p++) {
2242
2243
  if (w.nodeType === De && /** @type {Comment} */
2243
2244
  w.data === jt) {
2244
- f = /** @type {Comment} */
2245
- w, T = !0, B(!1);
2245
+ a = /** @type {Comment} */
2246
+ w, k = !0, B(!1);
2246
2247
  break;
2247
2248
  }
2248
2249
  var S = o[p], R = r(S, p);
2249
2250
  x = Lt(
2250
2251
  w,
2251
- a,
2252
+ f,
2252
2253
  j,
2253
2254
  null,
2254
2255
  S,
@@ -2257,23 +2258,23 @@ function ai(e, t, n, r, s, i = null) {
2257
2258
  s,
2258
2259
  t,
2259
2260
  n
2260
- ), a.items.set(R, x), j = x;
2261
+ ), f.items.set(R, x), j = x;
2261
2262
  }
2262
2263
  E > 0 && C(rt());
2263
2264
  }
2264
2265
  if (v)
2265
- E === 0 && i && (c = Y(() => i(f)));
2266
- else if (Mn()) {
2266
+ E === 0 && i && (c = Y(() => i(a)));
2267
+ else if (Dn()) {
2267
2268
  var je = /* @__PURE__ */ new Set(), Je = (
2268
2269
  /** @type {Batch} */
2269
2270
  b
2270
2271
  );
2271
2272
  for (p = 0; p < E; p += 1) {
2272
2273
  S = o[p], R = r(S, p);
2273
- var me = a.items.get(R) ?? h.get(R);
2274
- me ? (t & (ft | at)) !== 0 && nr(me, S, p, t) : (x = Lt(
2274
+ var me = f.items.get(R) ?? h.get(R);
2275
+ me ? (t & (at | ft)) !== 0 && sr(me, S, p, t) : (x = Lt(
2275
2276
  null,
2276
- a,
2277
+ f,
2277
2278
  null,
2278
2279
  null,
2279
2280
  S,
@@ -2285,21 +2286,21 @@ function ai(e, t, n, r, s, i = null) {
2285
2286
  !0
2286
2287
  ), h.set(R, x)), je.add(R);
2287
2288
  }
2288
- for (const [Z, Xe] of a.items)
2289
+ for (const [Z, Xe] of f.items)
2289
2290
  je.has(Z) || Je.skipped_effects.add(Xe.e);
2290
2291
  Je.add_callback($);
2291
2292
  } else
2292
2293
  $();
2293
- T && B(!0), M(d);
2294
- }), v && (f = w);
2294
+ k && B(!0), M(d);
2295
+ }), v && (a = w);
2295
2296
  }
2296
- function bs(e, t, n, r, s, i, f, a, l) {
2297
- var u = (f & ur) !== 0, c = (f & (ft | at)) !== 0, _ = t.length, h = n.items, d = n.first, o = d, g, $ = null, E, T = [], k = [], j, x, p, S;
2297
+ function Es(e, t, n, r, s, i, a, f, l) {
2298
+ var u = (a & or) !== 0, c = (a & (at | ft)) !== 0, _ = t.length, h = n.items, d = n.first, o = d, g, $ = null, E, k = [], T = [], j, x, p, S;
2298
2299
  if (u)
2299
2300
  for (S = 0; S < _; S += 1)
2300
- j = t[S], x = a(j, S), p = h.get(x), p !== void 0 && (p.a?.measure(), (E ??= /* @__PURE__ */ new Set()).add(p));
2301
+ j = t[S], x = f(j, S), p = h.get(x), p !== void 0 && (p.a?.measure(), (E ??= /* @__PURE__ */ new Set()).add(p));
2301
2302
  for (S = 0; S < _; S += 1) {
2302
- if (j = t[S], x = a(j, S), p = h.get(x), p === void 0) {
2303
+ if (j = t[S], x = f(j, S), p = h.get(x), p === void 0) {
2303
2304
  var R = r.get(x);
2304
2305
  if (R !== void 0) {
2305
2306
  r.delete(x), h.set(x, R);
@@ -2319,49 +2320,49 @@ function bs(e, t, n, r, s, i, f, a, l) {
2319
2320
  x,
2320
2321
  S,
2321
2322
  i,
2322
- f,
2323
+ a,
2323
2324
  l
2324
2325
  );
2325
2326
  }
2326
- h.set(x, $), T = [], k = [], o = $.next;
2327
+ h.set(x, $), k = [], T = [], o = $.next;
2327
2328
  continue;
2328
2329
  }
2329
- if (c && nr(p, j, S, f), (p.e.f & H) !== 0 && (Jt(p.e), u && (p.a?.unfix(), (E ??= /* @__PURE__ */ new Set()).delete(p))), p !== o) {
2330
+ if (c && sr(p, j, S, a), (p.e.f & H) !== 0 && (Jt(p.e), u && (p.a?.unfix(), (E ??= /* @__PURE__ */ new Set()).delete(p))), p !== o) {
2330
2331
  if (g !== void 0 && g.has(p)) {
2331
- if (T.length < k.length) {
2332
- var me = k[0], Z;
2332
+ if (k.length < T.length) {
2333
+ var me = T[0], Z;
2333
2334
  $ = me.prev;
2334
- var Xe = T[0], bt = T[T.length - 1];
2335
- for (Z = 0; Z < T.length; Z += 1)
2336
- St(T[Z], me, s);
2335
+ var Xe = k[0], bt = k[k.length - 1];
2337
2336
  for (Z = 0; Z < k.length; Z += 1)
2338
- g.delete(k[Z]);
2339
- Q(n, Xe.prev, bt.next), Q(n, $, Xe), Q(n, bt, me), o = me, $ = bt, S -= 1, T = [], k = [];
2337
+ St(k[Z], me, s);
2338
+ for (Z = 0; Z < T.length; Z += 1)
2339
+ g.delete(T[Z]);
2340
+ Q(n, Xe.prev, bt.next), Q(n, $, Xe), Q(n, bt, me), o = me, $ = bt, S -= 1, k = [], T = [];
2340
2341
  } else
2341
2342
  g.delete(p), St(p, o, s), Q(n, p.prev, p.next), Q(n, p, $ === null ? n.first : $.next), Q(n, $, p), $ = p;
2342
2343
  continue;
2343
2344
  }
2344
- for (T = [], k = []; o !== null && o.k !== x; )
2345
- (o.e.f & H) === 0 && (g ??= /* @__PURE__ */ new Set()).add(o), k.push(o), o = o.next;
2345
+ for (k = [], T = []; o !== null && o.k !== x; )
2346
+ (o.e.f & H) === 0 && (g ??= /* @__PURE__ */ new Set()).add(o), T.push(o), o = o.next;
2346
2347
  if (o === null)
2347
2348
  continue;
2348
2349
  p = o;
2349
2350
  }
2350
- T.push(p), $ = p, o = p.next;
2351
+ k.push(p), $ = p, o = p.next;
2351
2352
  }
2352
2353
  if (o !== null || g !== void 0) {
2353
2354
  for (var qe = g === void 0 ? [] : qt(g); o !== null; )
2354
2355
  (o.e.f & H) === 0 && qe.push(o), o = o.next;
2355
2356
  var Et = qe.length;
2356
2357
  if (Et > 0) {
2357
- var ar = (f & un) !== 0 && _ === 0 ? s : null;
2358
+ var lr = (a & cn) !== 0 && _ === 0 ? s : null;
2358
2359
  if (u) {
2359
2360
  for (S = 0; S < Et; S += 1)
2360
2361
  qe[S].a?.measure();
2361
2362
  for (S = 0; S < Et; S += 1)
2362
2363
  qe[S].a?.fix();
2363
2364
  }
2364
- $s(n, qe, ar);
2365
+ bs(n, qe, lr);
2365
2366
  }
2366
2367
  }
2367
2368
  u && _e(() => {
@@ -2369,19 +2370,19 @@ function bs(e, t, n, r, s, i, f, a, l) {
2369
2370
  for (p of E)
2370
2371
  p.a?.apply();
2371
2372
  }), e.first = n.first && n.first.e, e.last = $ && $.e;
2372
- for (var lr of r.values())
2373
- L(lr.e);
2373
+ for (var ur of r.values())
2374
+ L(ur.e);
2374
2375
  r.clear();
2375
2376
  }
2376
- function nr(e, t, n, r) {
2377
- (r & ft) !== 0 && Le(e.v, t), (r & at) !== 0 ? Le(
2377
+ function sr(e, t, n, r) {
2378
+ (r & at) !== 0 && Le(e.v, t), (r & ft) !== 0 ? Le(
2378
2379
  /** @type {Value<number>} */
2379
2380
  e.i,
2380
2381
  n
2381
2382
  ) : e.i = n;
2382
2383
  }
2383
- function Lt(e, t, n, r, s, i, f, a, l, u, c) {
2384
- var _ = (l & ft) !== 0, h = (l & or) === 0, d = _ ? h ? /* @__PURE__ */ Nn(s, !1, !1) : Ee(s) : s, o = (l & at) === 0 ? f : Ee(f), g = {
2384
+ function Lt(e, t, n, r, s, i, a, f, l, u, c) {
2385
+ var _ = (l & at) !== 0, h = (l & cr) === 0, d = _ ? h ? /* @__PURE__ */ Cn(s, !1, !1) : Ee(s) : s, o = (l & ft) === 0 ? a : Ee(a), g = {
2385
2386
  i: o,
2386
2387
  v: d,
2387
2388
  k: i,
@@ -2396,7 +2397,7 @@ function Lt(e, t, n, r, s, i, f, a, l, u, c) {
2396
2397
  var $ = document.createDocumentFragment();
2397
2398
  $.append(e = G());
2398
2399
  }
2399
- return g.e = Y(() => a(
2400
+ return g.e = Y(() => f(
2400
2401
  /** @type {Node} */
2401
2402
  e,
2402
2403
  d,
@@ -2417,18 +2418,18 @@ function St(e, t, n) {
2417
2418
  /** @type {TemplateNode} */
2418
2419
  e.e.nodes_start
2419
2420
  ); i !== null && i !== r; ) {
2420
- var f = (
2421
+ var a = (
2421
2422
  /** @type {TemplateNode} */
2422
2423
  /* @__PURE__ */ ie(i)
2423
2424
  );
2424
- s.before(i), i = f;
2425
+ s.before(i), i = a;
2425
2426
  }
2426
2427
  }
2427
2428
  function Q(e, t, n) {
2428
2429
  t === null ? e.first = n : (t.next = n, t.e.next = n && n.e), n !== null && (n.prev = t, n.e.prev = t && t.e);
2429
2430
  }
2430
- function li(e, t) {
2431
- jn(() => {
2431
+ function ci(e, t) {
2432
+ Bn(() => {
2432
2433
  var n = e.getRootNode(), r = (
2433
2434
  /** @type {ShadowRoot} */
2434
2435
  n.host ? (
@@ -2446,28 +2447,28 @@ function li(e, t) {
2446
2447
  }
2447
2448
  });
2448
2449
  }
2449
- function rr(e, t, n = !1) {
2450
+ function ir(e, t, n = !1) {
2450
2451
  if (e.multiple) {
2451
2452
  if (t == null)
2452
2453
  return;
2453
2454
  if (!ut(t))
2454
- return Dr();
2455
+ return Fr();
2455
2456
  for (var r of e.options)
2456
2457
  r.selected = t.includes(Ye(r));
2457
2458
  return;
2458
2459
  }
2459
2460
  for (r of e.options) {
2460
2461
  var s = Ye(r);
2461
- if (Cn(s, t)) {
2462
+ if (In(s, t)) {
2462
2463
  r.selected = !0;
2463
2464
  return;
2464
2465
  }
2465
2466
  }
2466
2467
  (!n || t !== void 0) && (e.selectedIndex = -1);
2467
2468
  }
2468
- function Es(e) {
2469
+ function Ss(e) {
2469
2470
  var t = new MutationObserver(() => {
2470
- rr(e, e.__value);
2471
+ ir(e, e.__value);
2471
2472
  });
2472
2473
  t.observe(e, {
2473
2474
  // Listen to option element changes
@@ -2483,40 +2484,40 @@ function Es(e) {
2483
2484
  t.disconnect();
2484
2485
  });
2485
2486
  }
2486
- function ui(e, t, n = t) {
2487
+ function hi(e, t, n = t) {
2487
2488
  var r = /* @__PURE__ */ new WeakSet(), s = !0;
2488
2489
  ze(e, "change", (i) => {
2489
- var f = i ? "[selected]" : ":checked", a;
2490
+ var a = i ? "[selected]" : ":checked", f;
2490
2491
  if (e.multiple)
2491
- a = [].map.call(e.querySelectorAll(f), Ye);
2492
+ f = [].map.call(e.querySelectorAll(a), Ye);
2492
2493
  else {
2493
- var l = e.querySelector(f) ?? // will fall back to first non-disabled option if no option is selected
2494
+ var l = e.querySelector(a) ?? // will fall back to first non-disabled option if no option is selected
2494
2495
  e.querySelector("option:not([disabled])");
2495
- a = l && Ye(l);
2496
+ f = l && Ye(l);
2496
2497
  }
2497
- n(a), b !== null && r.add(b);
2498
- }), jn(() => {
2498
+ n(f), b !== null && r.add(b);
2499
+ }), Bn(() => {
2499
2500
  var i = t();
2500
2501
  if (e === document.activeElement) {
2501
- var f = (
2502
+ var a = (
2502
2503
  /** @type {Batch} */
2503
2504
  He ?? b
2504
2505
  );
2505
- if (r.has(f))
2506
+ if (r.has(a))
2506
2507
  return;
2507
2508
  }
2508
- if (rr(e, i, s), s && i === void 0) {
2509
- var a = e.querySelector(":checked");
2510
- a !== null && (i = Ye(a), n(i));
2509
+ if (ir(e, i, s), s && i === void 0) {
2510
+ var f = e.querySelector(":checked");
2511
+ f !== null && (i = Ye(f), n(i));
2511
2512
  }
2512
2513
  e.__value = i, s = !1;
2513
- }), Es(e);
2514
+ }), Ss(e);
2514
2515
  }
2515
2516
  function Ye(e) {
2516
2517
  return "__value" in e ? e.__value : e.value;
2517
2518
  }
2518
- const Ss = Symbol("is custom element"), ks = Symbol("is html");
2519
- function oi(e) {
2519
+ const Ts = Symbol("is custom element"), ks = Symbol("is html");
2520
+ function di(e) {
2520
2521
  if (v) {
2521
2522
  var t = !1, n = () => {
2522
2523
  if (!t) {
@@ -2530,21 +2531,26 @@ function oi(e) {
2530
2531
  }
2531
2532
  }
2532
2533
  };
2533
- e.__on_r = n, _e(n), Ln();
2534
+ e.__on_r = n, _e(n), Fn();
2534
2535
  }
2535
2536
  }
2536
- function ci(e, t) {
2537
- var n = sr(e);
2537
+ function _i(e, t) {
2538
+ var n = Xt(e);
2538
2539
  n.value === (n.value = // treat null and undefined the same for the initial value
2539
2540
  t ?? void 0) || // @ts-expect-error
2540
2541
  // `progress` elements always need their value set when it's `0`
2541
2542
  e.value === t && (t !== 0 || e.nodeName !== "PROGRESS") || (e.value = t ?? "");
2542
2543
  }
2544
+ function vi(e, t) {
2545
+ var n = Xt(e);
2546
+ n.checked !== (n.checked = // treat null and undefined the same for the initial value
2547
+ t ?? void 0) && (e.checked = t);
2548
+ }
2543
2549
  function Dt(e, t, n, r) {
2544
- var s = sr(e);
2545
- v && (s[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === "LINK") || s[t] !== (s[t] = n) && (t === "loading" && (e[Sr] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && ir(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
2550
+ var s = Xt(e);
2551
+ v && (s[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === "LINK") || s[t] !== (s[t] = n) && (t === "loading" && (e[Tr] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && ar(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
2546
2552
  }
2547
- function hi(e, t, n) {
2553
+ function pi(e, t, n) {
2548
2554
  var r = y, s = m;
2549
2555
  let i = v;
2550
2556
  v && B(!1), O(null), K(null);
@@ -2554,50 +2560,50 @@ function hi(e, t, n) {
2554
2560
  // because during their upgrade/instantiation they might add more setters.
2555
2561
  // Instead, fall back to a simple "an object, then set as property" heuristic.
2556
2562
  (Ft.has(e.getAttribute("is") || e.nodeName) || // customElements may not be available in browser extension contexts
2557
- !customElements || customElements.get(e.getAttribute("is") || e.tagName.toLowerCase()) ? ir(e).includes(t) : n && typeof n == "object") ? e[t] = n : Dt(e, t, n == null ? n : String(n));
2563
+ !customElements || customElements.get(e.getAttribute("is") || e.tagName.toLowerCase()) ? ar(e).includes(t) : n && typeof n == "object") ? e[t] = n : Dt(e, t, n == null ? n : String(n));
2558
2564
  } finally {
2559
2565
  O(r), K(s), i && B(!0);
2560
2566
  }
2561
2567
  }
2562
- function sr(e) {
2568
+ function Xt(e) {
2563
2569
  return (
2564
2570
  /** @type {Record<string | symbol, unknown>} **/
2565
2571
  // @ts-expect-error
2566
2572
  e.__attributes ??= {
2567
- [Ss]: e.nodeName.includes("-"),
2568
- [ks]: e.namespaceURI === gr
2573
+ [Ts]: e.nodeName.includes("-"),
2574
+ [ks]: e.namespaceURI === yr
2569
2575
  }
2570
2576
  );
2571
2577
  }
2572
2578
  var Ft = /* @__PURE__ */ new Map();
2573
- function ir(e) {
2579
+ function ar(e) {
2574
2580
  var t = e.getAttribute("is") || e.nodeName, n = Ft.get(t);
2575
2581
  if (n) return n;
2576
2582
  Ft.set(t, n = []);
2577
2583
  for (var r, s = e, i = Element.prototype; i !== s; ) {
2578
- r = hn(s);
2579
- for (var f in r)
2580
- r[f].set && n.push(f);
2584
+ r = _n(s);
2585
+ for (var a in r)
2586
+ r[a].set && n.push(a);
2581
2587
  s = Bt(s);
2582
2588
  }
2583
2589
  return n;
2584
2590
  }
2585
- function di(e, t, n = t) {
2591
+ function mi(e, t, n = t) {
2586
2592
  var r = /* @__PURE__ */ new WeakSet();
2587
2593
  ze(e, "input", async (s) => {
2588
2594
  var i = s ? e.defaultValue : e.value;
2589
- if (i = Tt(e) ? At(i) : i, n(i), b !== null && r.add(b), await cs(), i !== (i = t())) {
2590
- var f = e.selectionStart, a = e.selectionEnd, l = e.value.length;
2591
- if (e.value = i ?? "", a !== null) {
2595
+ if (i = kt(e) ? At(i) : i, n(i), b !== null && r.add(b), await hs(), i !== (i = t())) {
2596
+ var a = e.selectionStart, f = e.selectionEnd, l = e.value.length;
2597
+ if (e.value = i ?? "", f !== null) {
2592
2598
  var u = e.value.length;
2593
- f === a && a === l && u > l ? (e.selectionStart = u, e.selectionEnd = u) : (e.selectionStart = f, e.selectionEnd = Math.min(a, u));
2599
+ a === f && f === l && u > l ? (e.selectionStart = u, e.selectionEnd = u) : (e.selectionStart = a, e.selectionEnd = Math.min(f, u));
2594
2600
  }
2595
2601
  }
2596
2602
  }), // If we are hydrating and the value has since changed,
2597
2603
  // then use the updated value from the input instead.
2598
2604
  (v && e.defaultValue !== e.value || // If defaultValue is set, then value == defaultValue
2599
2605
  // TODO Svelte 6: remove input.value check and set to empty string?
2600
- $t(t) == null && e.value) && (n(Tt(e) ? At(e.value) : e.value), b !== null && r.add(b)), Fe(() => {
2606
+ $t(t) == null && e.value) && (n(kt(e) ? At(e.value) : e.value), b !== null && r.add(b)), Fe(() => {
2601
2607
  var s = t();
2602
2608
  if (e === document.activeElement) {
2603
2609
  var i = (
@@ -2607,51 +2613,51 @@ function di(e, t, n = t) {
2607
2613
  if (r.has(i))
2608
2614
  return;
2609
2615
  }
2610
- Tt(e) && s === At(e.value) || e.type === "date" && !s && !e.value || s !== e.value && (e.value = s ?? "");
2616
+ kt(e) && s === At(e.value) || e.type === "date" && !s && !e.value || s !== e.value && (e.value = s ?? "");
2611
2617
  });
2612
2618
  }
2613
- const kt = /* @__PURE__ */ new Set();
2614
- function _i(e, t, n, r, s = r) {
2615
- var i = n.getAttribute("type") === "checkbox", f = e;
2616
- let a = !1;
2619
+ const Tt = /* @__PURE__ */ new Set();
2620
+ function gi(e, t, n, r, s = r) {
2621
+ var i = n.getAttribute("type") === "checkbox", a = e;
2622
+ let f = !1;
2617
2623
  if (t !== null)
2618
2624
  for (var l of t)
2619
- f = f[l] ??= [];
2620
- f.push(n), ze(
2625
+ a = a[l] ??= [];
2626
+ a.push(n), ze(
2621
2627
  n,
2622
2628
  "change",
2623
2629
  () => {
2624
2630
  var u = n.__value;
2625
- i && (u = ln(f, u, n.checked)), s(u);
2631
+ i && (u = on(a, u, n.checked)), s(u);
2626
2632
  },
2627
2633
  // TODO better default value handling
2628
2634
  () => s(i ? [] : null)
2629
2635
  ), Fe(() => {
2630
2636
  var u = r();
2631
2637
  if (v && n.defaultChecked !== n.checked) {
2632
- a = !0;
2638
+ f = !0;
2633
2639
  return;
2634
2640
  }
2635
- i ? (u = u || [], n.checked = u.includes(n.__value)) : n.checked = Cn(n.__value, u);
2641
+ i ? (u = u || [], n.checked = u.includes(n.__value)) : n.checked = In(n.__value, u);
2636
2642
  }), yt(() => {
2637
- var u = f.indexOf(n);
2638
- u !== -1 && f.splice(u, 1);
2639
- }), kt.has(f) || (kt.add(f), _e(() => {
2640
- f.sort((u, c) => u.compareDocumentPosition(c) === 4 ? -1 : 1), kt.delete(f);
2643
+ var u = a.indexOf(n);
2644
+ u !== -1 && a.splice(u, 1);
2645
+ }), Tt.has(a) || (Tt.add(a), _e(() => {
2646
+ a.sort((u, c) => u.compareDocumentPosition(c) === 4 ? -1 : 1), Tt.delete(a);
2641
2647
  })), _e(() => {
2642
- if (a) {
2648
+ if (f) {
2643
2649
  var u;
2644
2650
  if (i)
2645
- u = ln(f, u, n.checked);
2651
+ u = on(a, u, n.checked);
2646
2652
  else {
2647
- var c = f.find((_) => _.checked);
2653
+ var c = a.find((_) => _.checked);
2648
2654
  u = c?.__value;
2649
2655
  }
2650
2656
  s(u);
2651
2657
  }
2652
2658
  });
2653
2659
  }
2654
- function vi(e, t, n = t) {
2660
+ function yi(e, t, n = t) {
2655
2661
  ze(e, "change", (r) => {
2656
2662
  var s = r ? e.defaultChecked : e.checked;
2657
2663
  n(s);
@@ -2663,19 +2669,19 @@ function vi(e, t, n = t) {
2663
2669
  e.checked = !!r;
2664
2670
  });
2665
2671
  }
2666
- function ln(e, t, n) {
2672
+ function on(e, t, n) {
2667
2673
  for (var r = /* @__PURE__ */ new Set(), s = 0; s < e.length; s += 1)
2668
2674
  e[s].checked && r.add(e[s].__value);
2669
2675
  return n || r.delete(t), Array.from(r);
2670
2676
  }
2671
- function Tt(e) {
2677
+ function kt(e) {
2672
2678
  var t = e.type;
2673
2679
  return t === "number" || t === "range";
2674
2680
  }
2675
2681
  function At(e) {
2676
2682
  return e === "" ? null : +e;
2677
2683
  }
2678
- function pi(e, t, n = t) {
2684
+ function wi(e, t, n = t) {
2679
2685
  ze(e, "change", () => {
2680
2686
  n(e.files);
2681
2687
  }), // If we are hydrating and the value has since changed,
@@ -2685,7 +2691,7 @@ function pi(e, t, n = t) {
2685
2691
  });
2686
2692
  }
2687
2693
  let Qe = !1;
2688
- function Ts(e) {
2694
+ function As(e) {
2689
2695
  var t = Qe;
2690
2696
  try {
2691
2697
  return Qe = !1, [e(), Qe];
@@ -2693,73 +2699,73 @@ function Ts(e) {
2693
2699
  Qe = t;
2694
2700
  }
2695
2701
  }
2696
- function mi(e, t, n, r) {
2697
- var s = !Ge || (n & hr) !== 0, i = (n & _r) !== 0, f = (n & vr) !== 0, a = (
2702
+ function $i(e, t, n, r) {
2703
+ var s = !Ge || (n & dr) !== 0, i = (n & vr) !== 0, a = (n & pr) !== 0, f = (
2698
2704
  /** @type {V} */
2699
2705
  r
2700
- ), l = !0, u = () => (l && (l = !1, a = f ? $t(
2706
+ ), l = !0, u = () => (l && (l = !1, f = a ? $t(
2701
2707
  /** @type {() => V} */
2702
2708
  r
2703
2709
  ) : (
2704
2710
  /** @type {V} */
2705
2711
  r
2706
- )), a), c;
2712
+ )), f), c;
2707
2713
  if (i) {
2708
- var _ = he in e || vn in e;
2709
- c = ye(e, t)?.set ?? (_ && t in e ? (k) => e[t] = k : void 0);
2714
+ var _ = he in e || mn in e;
2715
+ c = ye(e, t)?.set ?? (_ && t in e ? (T) => e[t] = T : void 0);
2710
2716
  }
2711
2717
  var h, d = !1;
2712
- i ? [h, d] = Ts(() => (
2718
+ i ? [h, d] = As(() => (
2713
2719
  /** @type {V} */
2714
2720
  e[t]
2715
2721
  )) : h = /** @type {V} */
2716
- e[t], h === void 0 && r !== void 0 && (h = u(), c && (s && Rr(), c(h)));
2722
+ e[t], h === void 0 && r !== void 0 && (h = u(), c && (s && Ir(), c(h)));
2717
2723
  var o;
2718
2724
  if (s ? o = () => {
2719
- var k = (
2725
+ var T = (
2720
2726
  /** @type {V} */
2721
2727
  e[t]
2722
2728
  );
2723
- return k === void 0 ? u() : (l = !0, k);
2729
+ return T === void 0 ? u() : (l = !0, T);
2724
2730
  } : o = () => {
2725
- var k = (
2731
+ var T = (
2726
2732
  /** @type {V} */
2727
2733
  e[t]
2728
2734
  );
2729
- return k !== void 0 && (a = /** @type {V} */
2730
- void 0), k === void 0 ? a : k;
2731
- }, s && (n & dr) === 0)
2735
+ return T !== void 0 && (f = /** @type {V} */
2736
+ void 0), T === void 0 ? f : T;
2737
+ }, s && (n & _r) === 0)
2732
2738
  return o;
2733
2739
  if (c) {
2734
2740
  var g = e.$$legacy;
2735
2741
  return (
2736
2742
  /** @type {() => V} */
2737
- (function(k, j) {
2738
- return arguments.length > 0 ? ((!s || !j || g || d) && c(j ? o() : k), k) : o();
2743
+ (function(T, j) {
2744
+ return arguments.length > 0 ? ((!s || !j || g || d) && c(j ? o() : T), T) : o();
2739
2745
  })
2740
2746
  );
2741
2747
  }
2742
- var $ = !1, E = ((n & cr) !== 0 ? mt : Yt)(() => ($ = !1, o()));
2748
+ var $ = !1, E = ((n & hr) !== 0 ? mt : Yt)(() => ($ = !1, o()));
2743
2749
  i && M(E);
2744
- var T = (
2750
+ var k = (
2745
2751
  /** @type {Effect} */
2746
2752
  m
2747
2753
  );
2748
2754
  return (
2749
2755
  /** @type {() => V} */
2750
- (function(k, j) {
2756
+ (function(T, j) {
2751
2757
  if (arguments.length > 0) {
2752
- const x = j ? M(E) : s && i ? Ne(k) : k;
2753
- return ee(E, x), $ = !0, a !== void 0 && (a = x), k;
2758
+ const x = j ? M(E) : s && i ? Ne(T) : T;
2759
+ return ee(E, x), $ = !0, f !== void 0 && (f = x), T;
2754
2760
  }
2755
- return Te && $ || (T.f & ae) !== 0 ? E.v : M(E);
2761
+ return ke && $ || (k.f & fe) !== 0 ? E.v : M(E);
2756
2762
  })
2757
2763
  );
2758
2764
  }
2759
- function As(e) {
2760
- return new xs(e);
2765
+ function xs(e) {
2766
+ return new Ns(e);
2761
2767
  }
2762
- class xs {
2768
+ class Ns {
2763
2769
  /** @type {any} */
2764
2770
  #t;
2765
2771
  /** @type {Record<string, any>} */
@@ -2770,40 +2776,40 @@ class xs {
2770
2776
  * }} options
2771
2777
  */
2772
2778
  constructor(t) {
2773
- var n = /* @__PURE__ */ new Map(), r = (i, f) => {
2774
- var a = /* @__PURE__ */ Nn(f, !1, !1);
2775
- return n.set(i, a), a;
2779
+ var n = /* @__PURE__ */ new Map(), r = (i, a) => {
2780
+ var f = /* @__PURE__ */ Cn(a, !1, !1);
2781
+ return n.set(i, f), f;
2776
2782
  };
2777
2783
  const s = new Proxy(
2778
2784
  { ...t.props || {}, $$events: {} },
2779
2785
  {
2780
- get(i, f) {
2781
- return M(n.get(f) ?? r(f, Reflect.get(i, f)));
2786
+ get(i, a) {
2787
+ return M(n.get(a) ?? r(a, Reflect.get(i, a)));
2782
2788
  },
2783
- has(i, f) {
2784
- return f === vn ? !0 : (M(n.get(f) ?? r(f, Reflect.get(i, f))), Reflect.has(i, f));
2789
+ has(i, a) {
2790
+ return a === mn ? !0 : (M(n.get(a) ?? r(a, Reflect.get(i, a))), Reflect.has(i, a));
2785
2791
  },
2786
- set(i, f, a) {
2787
- return ee(n.get(f) ?? r(f, a), a), Reflect.set(i, f, a);
2792
+ set(i, a, f) {
2793
+ return ee(n.get(a) ?? r(a, f), f), Reflect.set(i, a, f);
2788
2794
  }
2789
2795
  }
2790
2796
  );
2791
- this.#e = (t.hydrate ? gs : er)(t.component, {
2797
+ this.#e = (t.hydrate ? ys : nr)(t.component, {
2792
2798
  target: t.target,
2793
2799
  anchor: t.anchor,
2794
2800
  props: s,
2795
2801
  context: t.context,
2796
2802
  intro: t.intro ?? !1,
2797
2803
  recover: t.recover
2798
- }), (!t?.props?.$$host || t.sync === !1) && En(), this.#t = s.$$events;
2804
+ }), (!t?.props?.$$host || t.sync === !1) && Tn(), this.#t = s.$$events;
2799
2805
  for (const i of Object.keys(this.#e))
2800
2806
  i === "$set" || i === "$destroy" || i === "$on" || Ie(this, i, {
2801
2807
  get() {
2802
2808
  return this.#e[i];
2803
2809
  },
2804
2810
  /** @param {any} value */
2805
- set(f) {
2806
- this.#e[i] = f;
2811
+ set(a) {
2812
+ this.#e[i] = a;
2807
2813
  },
2808
2814
  enumerable: !0
2809
2815
  });
@@ -2811,7 +2817,7 @@ class xs {
2811
2817
  (i) => {
2812
2818
  Object.assign(s, i);
2813
2819
  }, this.#e.$destroy = () => {
2814
- ys(this.#e);
2820
+ ws(this.#e);
2815
2821
  };
2816
2822
  }
2817
2823
  /** @param {Record<string, any>} props */
@@ -2895,12 +2901,12 @@ typeof HTMLElement == "function" && (fr = class extends HTMLElement {
2895
2901
  let e = function(r) {
2896
2902
  return (s) => {
2897
2903
  const i = document.createElement("slot");
2898
- r !== "default" && (i.name = r), vs(s, i);
2904
+ r !== "default" && (i.name = r), ps(s, i);
2899
2905
  };
2900
2906
  };
2901
2907
  if (await Promise.resolve(), !this.$$cn || this.$$c)
2902
2908
  return;
2903
- const t = {}, n = Ns(this);
2909
+ const t = {}, n = Os(this);
2904
2910
  for (const r of this.$$s)
2905
2911
  r in n && (r === "default" && !this.$$d.children ? (this.$$d.children = e(r), t.default = !0) : t[r] = e(r));
2906
2912
  for (const r of this.attributes) {
@@ -2909,7 +2915,7 @@ typeof HTMLElement == "function" && (fr = class extends HTMLElement {
2909
2915
  }
2910
2916
  for (const r in this.$$p_d)
2911
2917
  !(r in this.$$d) && this[r] !== void 0 && (this.$$d[r] = this[r], delete this[r]);
2912
- this.$$c = As({
2918
+ this.$$c = xs({
2913
2919
  component: this.$$ctor,
2914
2920
  target: this.shadowRoot || this,
2915
2921
  props: {
@@ -2917,7 +2923,7 @@ typeof HTMLElement == "function" && (fr = class extends HTMLElement {
2917
2923
  $$slots: t,
2918
2924
  $$host: this
2919
2925
  }
2920
- }), this.$$me = ss(() => {
2926
+ }), this.$$me = is(() => {
2921
2927
  Fe(() => {
2922
2928
  this.$$r = !0;
2923
2929
  for (const r of tt(this.$$c)) {
@@ -2996,7 +3002,7 @@ function et(e, t, n, r) {
2996
3002
  return t;
2997
3003
  }
2998
3004
  }
2999
- function Ns(e) {
3005
+ function Os(e) {
3000
3006
  const t = {};
3001
3007
  return e.childNodes.forEach((n) => {
3002
3008
  t[
@@ -3005,131 +3011,140 @@ function Ns(e) {
3005
3011
  ] = !0;
3006
3012
  }), t;
3007
3013
  }
3008
- function gi(e, t, n, r, s, i) {
3009
- let f = class extends fr {
3014
+ function bi(e, t, n, r, s, i) {
3015
+ let a = class extends fr {
3010
3016
  constructor() {
3011
3017
  super(e, n, s), this.$$p_d = t;
3012
3018
  }
3013
3019
  static get observedAttributes() {
3014
3020
  return tt(t).map(
3015
- (a) => (t[a].attribute || a).toLowerCase()
3021
+ (f) => (t[f].attribute || f).toLowerCase()
3016
3022
  );
3017
3023
  }
3018
3024
  };
3019
- return tt(t).forEach((a) => {
3020
- Ie(f.prototype, a, {
3025
+ return tt(t).forEach((f) => {
3026
+ Ie(a.prototype, f, {
3021
3027
  get() {
3022
- return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
3028
+ return this.$$c && f in this.$$c ? this.$$c[f] : this.$$d[f];
3023
3029
  },
3024
3030
  set(l) {
3025
- l = et(a, l, t), this.$$d[a] = l;
3031
+ l = et(f, l, t), this.$$d[f] = l;
3026
3032
  var u = this.$$c;
3027
3033
  if (u) {
3028
- var c = ye(u, a)?.get;
3029
- c ? u[a] = l : u.$set({ [a]: l });
3034
+ var c = ye(u, f)?.get;
3035
+ c ? u[f] = l : u.$set({ [f]: l });
3030
3036
  }
3031
3037
  }
3032
3038
  });
3033
- }), r.forEach((a) => {
3034
- Ie(f.prototype, a, {
3039
+ }), r.forEach((f) => {
3040
+ Ie(a.prototype, f, {
3035
3041
  get() {
3036
- return this.$$c?.[a];
3042
+ return this.$$c?.[f];
3037
3043
  }
3038
3044
  });
3039
3045
  }), e.element = /** @type {any} */
3040
- f, f;
3046
+ a, a;
3041
3047
  }
3042
3048
  export {
3043
- ii as $,
3044
- _t as A,
3045
- ws as B,
3046
- De as C,
3047
- Re as D,
3049
+ Er as $,
3050
+ us as A,
3051
+ $s as B,
3052
+ tr as C,
3053
+ re as D,
3048
3054
  ht as E,
3049
- re as F,
3050
- Qn as G,
3055
+ se as F,
3056
+ w as G,
3051
3057
  lt as H,
3052
- se as I,
3053
- gt as J,
3054
- Cs as K,
3055
- Rs as L,
3056
- jn as M,
3057
- Fe as N,
3058
- Ks as O,
3059
- br as P,
3060
- Ps as Q,
3061
- M as R,
3062
- he as S,
3063
- Os as T,
3058
+ De as I,
3059
+ ie as J,
3060
+ _t as K,
3061
+ Re as L,
3062
+ gt as M,
3063
+ Ps as N,
3064
+ Ms as O,
3065
+ un as P,
3066
+ Se as Q,
3067
+ Ut as R,
3068
+ Bn as S,
3069
+ Is as T,
3064
3070
  N as U,
3065
- Js as V,
3066
- mt as W,
3067
- gi as X,
3068
- mi as Y,
3069
- ri as Z,
3070
- Vs as _,
3071
- Ge as a,
3072
- vs as a0,
3073
- Ur as a1,
3074
- Hr as a2,
3075
- Bs as a3,
3076
- ti as a4,
3077
- Us as a5,
3078
- Ds as a6,
3079
- Dt as a7,
3080
- Qs as a8,
3081
- li as a9,
3082
- ci as aA,
3083
- ui as aB,
3084
- ei as aa,
3085
- Zs as ab,
3086
- oe as ac,
3087
- ee as ad,
3088
- Ys as ae,
3089
- si as af,
3090
- ai as ag,
3091
- fi as ah,
3092
- Ne as ai,
3093
- js as aj,
3094
- qs as ak,
3095
- oi as al,
3096
- jr as am,
3097
- _i as an,
3098
- hi as ao,
3099
- Ms as ap,
3100
- ni as aq,
3101
- Fs as ar,
3102
- Yt as as,
3103
- tn as at,
3104
- Xs as au,
3105
- di as av,
3106
- pi as aw,
3107
- vi as ax,
3108
- Hs as ay,
3109
- Ws as az,
3071
+ Cs as V,
3072
+ Rs as W,
3073
+ Fe as X,
3074
+ he as Y,
3075
+ Xs as Z,
3076
+ Ds as _,
3077
+ $t as a,
3078
+ M as a0,
3079
+ Qs as a1,
3080
+ mt as a2,
3081
+ bi as a3,
3082
+ $i as a4,
3083
+ ai as a5,
3084
+ Gs as a6,
3085
+ li as a7,
3086
+ ps as a8,
3087
+ Vr as a9,
3088
+ Yt as aA,
3089
+ nn as aB,
3090
+ ei as aC,
3091
+ mi as aD,
3092
+ wi as aE,
3093
+ vi as aF,
3094
+ _i as aG,
3095
+ Ys as aH,
3096
+ zs as aI,
3097
+ yi as aJ,
3098
+ hi as aK,
3099
+ Ur as aa,
3100
+ Vs as ab,
3101
+ si as ac,
3102
+ Ws as ad,
3103
+ qs as ae,
3104
+ Dt as af,
3105
+ ni as ag,
3106
+ ci as ah,
3107
+ ri as ai,
3108
+ ti as aj,
3109
+ oe as ak,
3110
+ ee as al,
3111
+ Ks as am,
3112
+ fi as an,
3113
+ oi as ao,
3114
+ ui as ap,
3115
+ Ne as aq,
3116
+ Hs as ar,
3117
+ Us as as,
3118
+ pi as at,
3119
+ ii as au,
3120
+ qr as av,
3121
+ di as aw,
3122
+ gi as ax,
3123
+ Fs as ay,
3124
+ Bs as az,
3110
3125
  Kt as b,
3111
3126
  A as c,
3112
- $t as d,
3127
+ Ge as d,
3113
3128
  vt as e,
3114
- Is as f,
3115
- rt as g,
3129
+ Ke as f,
3130
+ Bt as g,
3116
3131
  v as h,
3117
- Ke as i,
3118
- B as j,
3119
- Le as k,
3132
+ ut as i,
3133
+ Ls as j,
3134
+ rt as k,
3120
3135
  kr as l,
3121
- Ee as m,
3122
- Nn as n,
3123
- Qr as o,
3124
- Ct as p,
3136
+ B as m,
3137
+ Le as n,
3138
+ $r as o,
3139
+ Ee as p,
3125
3140
  _e as q,
3126
- Ue as r,
3141
+ Cn as r,
3127
3142
  C as s,
3128
- En as t,
3129
- Gs as u,
3130
- zs as v,
3131
- m as w,
3132
- ls as x,
3133
- w as y,
3134
- ie as z
3143
+ es as t,
3144
+ Js as u,
3145
+ Ct as v,
3146
+ Ue as w,
3147
+ Tn as x,
3148
+ Zs as y,
3149
+ m as z
3135
3150
  };