@pie-players/pie-section-player-tools-session-debugger 0.3.10 → 0.3.12

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,114 +1,114 @@
1
- var ks = Object.defineProperty;
2
- var Xn = (e) => {
1
+ var Rs = Object.defineProperty;
2
+ var Gn = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
- var Ts = (e, t, n) => t in e ? ks(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
- var k = (e, t, n) => Ts(e, typeof t != "symbol" ? t + "" : t, n), cn = (e, t, n) => t.has(e) || Xn("Cannot " + n);
7
- var l = (e, t, n) => (cn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), w = (e, t, n) => t.has(e) ? Xn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), m = (e, t, n, r) => (cn(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), T = (e, t, n) => (cn(e, t, "access private method"), n);
8
- var ur;
9
- typeof window < "u" && ((ur = window.__svelte ?? (window.__svelte = {})).v ?? (ur.v = /* @__PURE__ */ new Set())).add("5");
10
- const As = 1, Ms = 2, fr = "[", cr = "[!", Kn = "[?", dr = "]", wt = {}, O = /* @__PURE__ */ Symbol(), hr = "http://www.w3.org/1999/xhtml", hn = !1;
11
- var vr = Array.isArray, Rs = Array.prototype.indexOf, bt = Array.prototype.includes, Ns = Array.from, Kt = Object.keys, Gt = Object.defineProperty, at = Object.getOwnPropertyDescriptor, Os = Object.getOwnPropertyDescriptors, Ds = Object.prototype, Ls = Array.prototype, _r = Object.getPrototypeOf, Gn = Object.isExtensible;
12
- const Ps = () => {
5
+ var Ns = (e, t, n) => t in e ? Rs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
+ var T = (e, t, n) => Ns(e, typeof t != "symbol" ? t + "" : t, n), cn = (e, t, n) => t.has(e) || Gn("Cannot " + n);
7
+ var l = (e, t, n) => (cn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), w = (e, t, n) => t.has(e) ? Gn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), g = (e, t, n, r) => (cn(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), A = (e, t, n) => (cn(e, t, "access private method"), n);
8
+ var dr;
9
+ typeof window < "u" && ((dr = window.__svelte ?? (window.__svelte = {})).v ?? (dr.v = /* @__PURE__ */ new Set())).add("5");
10
+ const Os = 1, Ds = 2, hr = "[", vr = "[!", Jn = "[?", _r = "]", wt = {}, O = /* @__PURE__ */ Symbol(), pr = "http://www.w3.org/1999/xhtml", hn = !1;
11
+ var gr = Array.isArray, Ls = Array.prototype.indexOf, bt = Array.prototype.includes, Ps = Array.from, Gt = Object.keys, Jt = Object.defineProperty, at = Object.getOwnPropertyDescriptor, zs = Object.getOwnPropertyDescriptors, Fs = Object.prototype, js = Array.prototype, mr = Object.getPrototypeOf, Kn = Object.isExtensible;
12
+ const Hs = () => {
13
13
  };
14
- function zs(e) {
14
+ function Bs(e) {
15
15
  for (var t = 0; t < e.length; t++)
16
16
  e[t]();
17
17
  }
18
- function pr() {
18
+ function wr() {
19
19
  var e, t, n = new Promise((r, s) => {
20
20
  e = r, t = s;
21
21
  });
22
22
  return { promise: n, resolve: e, reject: t };
23
23
  }
24
- const P = 2, It = 4, yt = 8, kn = 1 << 24, He = 16, we = 32, Fe = 64, vn = 128, Q = 512, D = 1024, L = 2048, ue = 4096, ee = 8192, ke = 16384, tt = 32768, $t = 65536, Jn = 1 << 17, js = 1 << 18, nt = 1 << 19, Hs = 1 << 20, et = 65536, _n = 1 << 21, Tn = 1 << 22, De = 1 << 23, dn = /* @__PURE__ */ Symbol("$state"), Fs = /* @__PURE__ */ Symbol("legacy props"), Bs = /* @__PURE__ */ Symbol(""), Ye = new class extends Error {
24
+ const P = 2, St = 4, yt = 8, kn = 1 << 24, He = 16, we = 32, Be = 64, vn = 128, Z = 512, D = 1024, L = 2048, ae = 4096, Q = 8192, ke = 16384, rt = 32768, $t = 65536, Zn = 1 << 17, Ws = 1 << 18, st = 1 << 19, Vs = 1 << 20, nt = 65536, _n = 1 << 21, Tn = 1 << 22, Le = 1 << 23, dn = /* @__PURE__ */ Symbol("$state"), Ys = /* @__PURE__ */ Symbol("legacy props"), qs = /* @__PURE__ */ Symbol(""), qe = new class extends Error {
25
25
  constructor() {
26
26
  super(...arguments);
27
- k(this, "name", "StaleReactionError");
28
- k(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
27
+ T(this, "name", "StaleReactionError");
28
+ T(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
29
29
  }
30
- }(), Ws = (
30
+ }(), Us = (
31
31
  // We gotta write it like this because after downleveling the pure comment may end up in the wrong location
32
32
  !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml")
33
33
  ), rn = 3, sn = 8;
34
- function gr(e) {
34
+ function br(e) {
35
35
  throw new Error("https://svelte.dev/e/lifecycle_outside_component");
36
36
  }
37
- function Vs() {
37
+ function Xs() {
38
38
  throw new Error("https://svelte.dev/e/async_derived_orphan");
39
39
  }
40
- function Ys(e) {
40
+ function Gs(e) {
41
41
  throw new Error("https://svelte.dev/e/effect_in_teardown");
42
42
  }
43
- function qs() {
43
+ function Js() {
44
44
  throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
45
45
  }
46
- function Us(e) {
46
+ function Ks(e) {
47
47
  throw new Error("https://svelte.dev/e/effect_orphan");
48
48
  }
49
- function Xs() {
49
+ function Zs() {
50
50
  throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
51
51
  }
52
- function Ks() {
52
+ function Qs() {
53
53
  throw new Error("https://svelte.dev/e/hydration_failed");
54
54
  }
55
- function Gs() {
55
+ function ei() {
56
56
  throw new Error("https://svelte.dev/e/state_descriptors_fixed");
57
57
  }
58
- function Js() {
58
+ function ti() {
59
59
  throw new Error("https://svelte.dev/e/state_prototype_fixed");
60
60
  }
61
- function Zs() {
61
+ function ni() {
62
62
  throw new Error("https://svelte.dev/e/state_unsafe_mutation");
63
63
  }
64
- function Qs() {
64
+ function ri() {
65
65
  throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
66
66
  }
67
67
  function on(e) {
68
68
  console.warn("https://svelte.dev/e/hydration_mismatch");
69
69
  }
70
- function ei() {
70
+ function si() {
71
71
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
72
72
  }
73
- let I = !1;
74
- function ot(e) {
75
- I = e;
73
+ let S = !1;
74
+ function lt(e) {
75
+ S = e;
76
76
  }
77
- let E;
78
- function fe(e) {
77
+ let I;
78
+ function ue(e) {
79
79
  if (e === null)
80
80
  throw on(), wt;
81
- return E = e;
81
+ return I = e;
82
82
  }
83
83
  function An() {
84
- return fe(/* @__PURE__ */ Ae(E));
84
+ return ue(/* @__PURE__ */ Ae(I));
85
85
  }
86
86
  function ye(e) {
87
- if (I) {
88
- if (/* @__PURE__ */ Ae(E) !== null)
87
+ if (S) {
88
+ if (/* @__PURE__ */ Ae(I) !== null)
89
89
  throw on(), wt;
90
- E = e;
90
+ I = e;
91
91
  }
92
92
  }
93
- function ti(e = 1) {
94
- if (I) {
95
- for (var t = e, n = E; t--; )
93
+ function ii(e = 1) {
94
+ if (S) {
95
+ for (var t = e, n = I; t--; )
96
96
  n = /** @type {TemplateNode} */
97
97
  /* @__PURE__ */ Ae(n);
98
- E = n;
98
+ I = n;
99
99
  }
100
100
  }
101
- function mr(e = !0) {
102
- for (var t = 0, n = E; ; ) {
101
+ function yr(e = !0) {
102
+ for (var t = 0, n = I; ; ) {
103
103
  if (n.nodeType === sn) {
104
104
  var r = (
105
105
  /** @type {Comment} */
106
106
  n.data
107
107
  );
108
- if (r === dr) {
108
+ if (r === _r) {
109
109
  if (t === 0) return n;
110
110
  t -= 1;
111
- } else (r === fr || r === cr || // "[1", "[2", etc. for if blocks
111
+ } else (r === hr || r === vr || // "[1", "[2", etc. for if blocks
112
112
  r[0] === "[" && !isNaN(Number(r.slice(1)))) && (t += 1);
113
113
  }
114
114
  var s = (
@@ -118,7 +118,7 @@ function mr(e = !0) {
118
118
  e && n.remove(), n = s;
119
119
  }
120
120
  }
121
- function ni(e) {
121
+ function oi(e) {
122
122
  if (!e || e.nodeType !== sn)
123
123
  throw on(), wt;
124
124
  return (
@@ -126,16 +126,16 @@ function ni(e) {
126
126
  e.data
127
127
  );
128
128
  }
129
- function wr(e) {
129
+ function $r(e) {
130
130
  return e === this.v;
131
131
  }
132
- function ri(e, t) {
132
+ function li(e, t) {
133
133
  return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
134
134
  }
135
- function si(e) {
136
- return !ri(e, this.v);
135
+ function ai(e) {
136
+ return !li(e, this.v);
137
137
  }
138
- let ii = !1, W = null;
138
+ let ui = !1, W = null;
139
139
  function xt(e) {
140
140
  W = e;
141
141
  }
@@ -158,44 +158,44 @@ function an(e) {
158
158
  if (n !== null) {
159
159
  t.e = null;
160
160
  for (var r of n)
161
- Br(r);
161
+ Yr(r);
162
162
  }
163
163
  return e !== void 0 && (t.x = e), t.i = !0, W = t.p, e ?? /** @type {T} */
164
164
  {};
165
165
  }
166
- function br() {
166
+ function xr() {
167
167
  return !0;
168
168
  }
169
- let qe = [];
170
- function yr() {
171
- var e = qe;
172
- qe = [], zs(e);
169
+ let Ue = [];
170
+ function Er() {
171
+ var e = Ue;
172
+ Ue = [], Bs(e);
173
173
  }
174
174
  function ut(e) {
175
- if (qe.length === 0 && !At) {
176
- var t = qe;
175
+ if (Ue.length === 0 && !At) {
176
+ var t = Ue;
177
177
  queueMicrotask(() => {
178
- t === qe && yr();
178
+ t === Ue && Er();
179
179
  });
180
180
  }
181
- qe.push(e);
181
+ Ue.push(e);
182
182
  }
183
- function oi() {
184
- for (; qe.length > 0; )
185
- yr();
183
+ function fi() {
184
+ for (; Ue.length > 0; )
185
+ Er();
186
186
  }
187
- function $r(e) {
187
+ function Ir(e) {
188
188
  var t = y;
189
189
  if (t === null)
190
- return b.f |= De, e;
191
- if ((t.f & tt) === 0 && (t.f & It) === 0)
190
+ return b.f |= Le, e;
191
+ if ((t.f & rt) === 0 && (t.f & St) === 0)
192
192
  throw e;
193
- Oe(e, t);
193
+ De(e, t);
194
194
  }
195
- function Oe(e, t) {
195
+ function De(e, t) {
196
196
  for (; t !== null; ) {
197
197
  if ((t.f & vn) !== 0) {
198
- if ((t.f & tt) === 0)
198
+ if ((t.f & rt) === 0)
199
199
  throw e;
200
200
  try {
201
201
  t.b.error(e);
@@ -208,50 +208,50 @@ function Oe(e, t) {
208
208
  }
209
209
  throw e;
210
210
  }
211
- const li = -7169;
211
+ const ci = -7169;
212
212
  function N(e, t) {
213
- e.f = e.f & li | t;
213
+ e.f = e.f & ci | t;
214
214
  }
215
215
  function Mn(e) {
216
- (e.f & Q) !== 0 || e.deps === null ? N(e, D) : N(e, ue);
216
+ (e.f & Z) !== 0 || e.deps === null ? N(e, D) : N(e, ae);
217
217
  }
218
- function xr(e) {
218
+ function Sr(e) {
219
219
  if (e !== null)
220
220
  for (const t of e)
221
- (t.f & P) === 0 || (t.f & et) === 0 || (t.f ^= et, xr(
221
+ (t.f & P) === 0 || (t.f & nt) === 0 || (t.f ^= nt, Sr(
222
222
  /** @type {Derived} */
223
223
  t.deps
224
224
  ));
225
225
  }
226
- function Er(e, t, n) {
227
- (e.f & L) !== 0 ? t.add(e) : (e.f & ue) !== 0 && n.add(e), xr(e.deps), N(e, D);
226
+ function Cr(e, t, n) {
227
+ (e.f & L) !== 0 ? t.add(e) : (e.f & ae) !== 0 && n.add(e), Sr(e.deps), N(e, D);
228
228
  }
229
229
  const Wt = /* @__PURE__ */ new Set();
230
- let A = null, oe = null, H = [], un = null, At = !1, Et = null, ai = 1;
231
- var Me, ct, Ke, dt, ht, vt, Re, ce, _t, V, pn, gn, mn, wn;
232
- const Hn = class Hn {
230
+ let M = null, ie = null, j = [], un = null, At = !1, Et = null, di = 1;
231
+ var Re, ct, Ke, dt, ht, vt, Ne, ce, _t, V, pn, gn, mn, wn;
232
+ const jn = class jn {
233
233
  constructor() {
234
234
  w(this, V);
235
235
  // for debugging. TODO remove once async is stable
236
- k(this, "id", ai++);
236
+ T(this, "id", di++);
237
237
  /**
238
238
  * The current values of any sources that are updated in this batch
239
239
  * They keys of this map are identical to `this.#previous`
240
240
  * @type {Map<Source, any>}
241
241
  */
242
- k(this, "current", /* @__PURE__ */ new Map());
242
+ T(this, "current", /* @__PURE__ */ new Map());
243
243
  /**
244
244
  * The values of any sources that are updated in this batch _before_ those updates took place.
245
245
  * They keys of this map are identical to `this.#current`
246
246
  * @type {Map<Source, any>}
247
247
  */
248
- k(this, "previous", /* @__PURE__ */ new Map());
248
+ T(this, "previous", /* @__PURE__ */ new Map());
249
249
  /**
250
250
  * When the batch is committed (and the DOM is updated), we need to remove old branches
251
251
  * and append new ones by calling the functions added inside (if/each/key/etc) blocks
252
252
  * @type {Set<(batch: Batch) => void>}
253
253
  */
254
- w(this, Me, /* @__PURE__ */ new Set());
254
+ w(this, Re, /* @__PURE__ */ new Set());
255
255
  /**
256
256
  * If a fork is discarded, we need to destroy any effects that are no longer needed
257
257
  * @type {Set<(batch: Batch) => void>}
@@ -280,7 +280,7 @@ const Hn = class Hn {
280
280
  * Deferred effects that are MAYBE_DIRTY
281
281
  * @type {Set<Effect>}
282
282
  */
283
- w(this, Re, /* @__PURE__ */ new Set());
283
+ w(this, Ne, /* @__PURE__ */ new Set());
284
284
  /**
285
285
  * A map of branches that still exist, but will be destroyed when this batch
286
286
  * is committed — we skip over these during `process`.
@@ -289,7 +289,7 @@ const Hn = class Hn {
289
289
  * @type {Map<Effect, { d: Effect[], m: Effect[] }>}
290
290
  */
291
291
  w(this, ce, /* @__PURE__ */ new Map());
292
- k(this, "is_fork", !1);
292
+ T(this, "is_fork", !1);
293
293
  w(this, _t, !1);
294
294
  }
295
295
  /**
@@ -311,7 +311,7 @@ const Hn = class Hn {
311
311
  for (var r of n.d)
312
312
  N(r, L), pe(r);
313
313
  for (r of n.m)
314
- N(r, ue), pe(r);
314
+ N(r, ae), pe(r);
315
315
  }
316
316
  }
317
317
  /**
@@ -319,20 +319,20 @@ const Hn = class Hn {
319
319
  * @param {Effect[]} root_effects
320
320
  */
321
321
  process(t) {
322
- H = [], this.apply();
322
+ j = [], this.apply();
323
323
  var n = Et = [], r = [];
324
324
  for (const s of t)
325
- T(this, V, gn).call(this, s, n, r);
326
- if (Et = null, T(this, V, pn).call(this)) {
327
- T(this, V, mn).call(this, r), T(this, V, mn).call(this, n);
325
+ A(this, V, gn).call(this, s, n, r);
326
+ if (Et = null, A(this, V, pn).call(this)) {
327
+ A(this, V, mn).call(this, r), A(this, V, mn).call(this, n);
328
328
  for (const [s, i] of l(this, ce))
329
- kr(s, i);
329
+ Mr(s, i);
330
330
  } else {
331
- A = null;
332
- for (const s of l(this, Me)) s(this);
333
- l(this, Me).clear(), l(this, Ke) === 0 && T(this, V, wn).call(this), Zn(r), Zn(n), l(this, vt).clear(), l(this, Re).clear(), l(this, ht)?.resolve();
331
+ M = null;
332
+ for (const s of l(this, Re)) s(this);
333
+ l(this, Re).clear(), l(this, Ke) === 0 && A(this, V, wn).call(this), Qn(r), Qn(n), l(this, vt).clear(), l(this, Ne).clear(), l(this, ht)?.resolve();
334
334
  }
335
- oe = null;
335
+ ie = null;
336
336
  }
337
337
  /**
338
338
  * Associate a change to a given source with the current
@@ -341,20 +341,20 @@ const Hn = class Hn {
341
341
  * @param {any} value
342
342
  */
343
343
  capture(t, n) {
344
- n !== O && !this.previous.has(t) && this.previous.set(t, n), (t.f & De) === 0 && (this.current.set(t, t.v), oe?.set(t, t.v));
344
+ n !== O && !this.previous.has(t) && this.previous.set(t, n), (t.f & Le) === 0 && (this.current.set(t, t.v), ie?.set(t, t.v));
345
345
  }
346
346
  activate() {
347
- A = this, this.apply();
347
+ M = this, this.apply();
348
348
  }
349
349
  deactivate() {
350
- A === this && (A = null, oe = null);
350
+ M === this && (M = null, ie = null);
351
351
  }
352
352
  flush() {
353
- if (H.length > 0)
354
- A = this, Sr();
353
+ if (j.length > 0)
354
+ M = this, kr();
355
355
  else if (l(this, Ke) === 0 && !this.is_fork) {
356
- for (const t of l(this, Me)) t(this);
357
- l(this, Me).clear(), T(this, V, wn).call(this), l(this, ht)?.resolve();
356
+ for (const t of l(this, Re)) t(this);
357
+ l(this, Re).clear(), A(this, V, wn).call(this), l(this, ht)?.resolve();
358
358
  }
359
359
  this.deactivate();
360
360
  }
@@ -367,48 +367,48 @@ const Hn = class Hn {
367
367
  * @param {boolean} blocking
368
368
  */
369
369
  increment(t) {
370
- m(this, Ke, l(this, Ke) + 1), t && m(this, dt, l(this, dt) + 1);
370
+ g(this, Ke, l(this, Ke) + 1), t && g(this, dt, l(this, dt) + 1);
371
371
  }
372
372
  /**
373
373
  *
374
374
  * @param {boolean} blocking
375
375
  */
376
376
  decrement(t) {
377
- m(this, Ke, l(this, Ke) - 1), t && m(this, dt, l(this, dt) - 1), !l(this, _t) && (m(this, _t, !0), ut(() => {
378
- m(this, _t, !1), T(this, V, pn).call(this) ? H.length > 0 && this.flush() : this.revive();
377
+ g(this, Ke, l(this, Ke) - 1), t && g(this, dt, l(this, dt) - 1), !l(this, _t) && (g(this, _t, !0), ut(() => {
378
+ g(this, _t, !1), A(this, V, pn).call(this) ? j.length > 0 && this.flush() : this.revive();
379
379
  }));
380
380
  }
381
381
  revive() {
382
382
  for (const t of l(this, vt))
383
- l(this, Re).delete(t), N(t, L), pe(t);
384
- for (const t of l(this, Re))
385
- N(t, ue), pe(t);
383
+ l(this, Ne).delete(t), N(t, L), pe(t);
384
+ for (const t of l(this, Ne))
385
+ N(t, ae), pe(t);
386
386
  this.flush();
387
387
  }
388
388
  /** @param {(batch: Batch) => void} fn */
389
389
  oncommit(t) {
390
- l(this, Me).add(t);
390
+ l(this, Re).add(t);
391
391
  }
392
392
  /** @param {(batch: Batch) => void} fn */
393
393
  ondiscard(t) {
394
394
  l(this, ct).add(t);
395
395
  }
396
396
  settled() {
397
- return (l(this, ht) ?? m(this, ht, pr())).promise;
397
+ return (l(this, ht) ?? g(this, ht, wr())).promise;
398
398
  }
399
399
  static ensure() {
400
- if (A === null) {
401
- const t = A = new Hn();
402
- Wt.add(A), At || ut(() => {
403
- A === t && t.flush();
400
+ if (M === null) {
401
+ const t = M = new jn();
402
+ Wt.add(M), At || ut(() => {
403
+ M === t && t.flush();
404
404
  });
405
405
  }
406
- return A;
406
+ return M;
407
407
  }
408
408
  apply() {
409
409
  }
410
410
  };
411
- Me = new WeakMap(), ct = new WeakMap(), Ke = new WeakMap(), dt = new WeakMap(), ht = new WeakMap(), vt = new WeakMap(), Re = new WeakMap(), ce = new WeakMap(), _t = new WeakMap(), V = new WeakSet(), pn = function() {
411
+ Re = new WeakMap(), ct = new WeakMap(), Ke = new WeakMap(), dt = new WeakMap(), ht = new WeakMap(), vt = new WeakMap(), Ne = new WeakMap(), ce = new WeakMap(), _t = new WeakMap(), V = new WeakSet(), pn = function() {
412
412
  return this.is_fork || l(this, dt) > 0;
413
413
  }, /**
414
414
  * Traverse the effect tree, executing effects or stashing
@@ -420,9 +420,9 @@ Me = new WeakMap(), ct = new WeakMap(), Ke = new WeakMap(), dt = new WeakMap(),
420
420
  gn = function(t, n, r) {
421
421
  t.f ^= D;
422
422
  for (var s = t.first; s !== null; ) {
423
- var i = s.f, o = (i & (we | Fe)) !== 0, u = o && (i & D) !== 0, a = (i & ee) !== 0, f = u || l(this, ce).has(s);
423
+ var i = s.f, o = (i & (we | Be)) !== 0, u = o && (i & D) !== 0, a = (i & Q) !== 0, f = u || l(this, ce).has(s);
424
424
  if (!f && s.fn !== null) {
425
- o ? a || (s.f ^= D) : (i & It) !== 0 ? n.push(s) : (i & (yt | kn)) !== 0 && a ? r.push(s) : jt(s) && (St(s), (i & He) !== 0 && (l(this, Re).add(s), a && N(s, L)));
425
+ o ? a || (s.f ^= D) : (i & St) !== 0 ? n.push(s) : (i & (yt | kn)) !== 0 && a ? r.push(s) : Ft(s) && (It(s), (i & He) !== 0 && (l(this, Ne).add(s), a && N(s, L)));
426
426
  var c = s.first;
427
427
  if (c !== null) {
428
428
  s = c;
@@ -443,12 +443,12 @@ gn = function(t, n, r) {
443
443
  */
444
444
  mn = function(t) {
445
445
  for (var n = 0; n < t.length; n += 1)
446
- Er(t[n], l(this, vt), l(this, Re));
446
+ Cr(t[n], l(this, vt), l(this, Ne));
447
447
  }, wn = function() {
448
448
  var i;
449
449
  if (Wt.size > 1) {
450
450
  this.previous.clear();
451
- var t = A, n = oe, r = !0;
451
+ var t = M, n = ie, r = !0;
452
452
  for (const o of Wt) {
453
453
  if (o === this) {
454
454
  r = !1;
@@ -467,78 +467,78 @@ mn = function(t) {
467
467
  continue;
468
468
  const a = [...o.current.keys()].filter((f) => !this.current.has(f));
469
469
  if (a.length > 0) {
470
- var s = H;
471
- H = [];
470
+ var s = j;
471
+ j = [];
472
472
  const f = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Map();
473
473
  for (const h of u)
474
- Ir(h, a, f, c);
475
- if (H.length > 0) {
476
- A = o, o.apply();
477
- for (const h of H)
478
- T(i = o, V, gn).call(i, h, [], []);
474
+ Tr(h, a, f, c);
475
+ if (j.length > 0) {
476
+ M = o, o.apply();
477
+ for (const h of j)
478
+ A(i = o, V, gn).call(i, h, [], []);
479
479
  o.deactivate();
480
480
  }
481
- H = s;
481
+ j = s;
482
482
  }
483
483
  }
484
- A = t, oe = n;
484
+ M = t, ie = n;
485
485
  }
486
486
  l(this, ce).clear(), Wt.delete(this);
487
487
  };
488
- let Te = Hn;
489
- function le(e) {
488
+ let Te = jn;
489
+ function oe(e) {
490
490
  var t = At;
491
491
  At = !0;
492
492
  try {
493
493
  for (var n; ; ) {
494
- if (oi(), H.length === 0 && (A?.flush(), H.length === 0))
494
+ if (fi(), j.length === 0 && (M?.flush(), j.length === 0))
495
495
  return un = null, /** @type {T} */
496
496
  n;
497
- Sr();
497
+ kr();
498
498
  }
499
499
  } finally {
500
500
  At = t;
501
501
  }
502
502
  }
503
- function Sr() {
503
+ function kr() {
504
504
  var e = null;
505
505
  try {
506
- for (var t = 0; H.length > 0; ) {
506
+ for (var t = 0; j.length > 0; ) {
507
507
  var n = Te.ensure();
508
508
  if (t++ > 1e3) {
509
509
  var r, s;
510
- ui();
510
+ hi();
511
511
  }
512
- n.process(H), Le.clear();
512
+ n.process(j), Pe.clear();
513
513
  }
514
514
  } finally {
515
- H = [], un = null, Et = null;
515
+ j = [], un = null, Et = null;
516
516
  }
517
517
  }
518
- function ui() {
518
+ function hi() {
519
519
  try {
520
- Xs();
520
+ Zs();
521
521
  } catch (e) {
522
- Oe(e, un);
522
+ De(e, un);
523
523
  }
524
524
  }
525
525
  let $e = null;
526
- function Zn(e) {
526
+ function Qn(e) {
527
527
  var t = e.length;
528
528
  if (t !== 0) {
529
529
  for (var n = 0; n < t; ) {
530
530
  var r = e[n++];
531
- if ((r.f & (ke | ee)) === 0 && jt(r) && ($e = /* @__PURE__ */ new Set(), St(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && qr(r), $e?.size > 0)) {
532
- Le.clear();
531
+ if ((r.f & (ke | Q)) === 0 && Ft(r) && ($e = /* @__PURE__ */ new Set(), It(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && Gr(r), $e?.size > 0)) {
532
+ Pe.clear();
533
533
  for (const s of $e) {
534
- if ((s.f & (ke | ee)) !== 0) continue;
534
+ if ((s.f & (ke | Q)) !== 0) continue;
535
535
  const i = [s];
536
536
  let o = s.parent;
537
537
  for (; o !== null; )
538
538
  $e.has(o) && ($e.delete(o), i.push(o)), o = o.parent;
539
539
  for (let u = i.length - 1; u >= 0; u--) {
540
540
  const a = i[u];
541
- (a.f & (ke | ee)) === 0 && St(a);
541
+ (a.f & (ke | Q)) === 0 && It(a);
542
542
  }
543
543
  }
544
544
  $e.clear();
@@ -547,30 +547,30 @@ function Zn(e) {
547
547
  $e = null;
548
548
  }
549
549
  }
550
- function Ir(e, t, n, r) {
550
+ function Tr(e, t, n, r) {
551
551
  if (!n.has(e) && (n.add(e), e.reactions !== null))
552
552
  for (const s of e.reactions) {
553
553
  const i = s.f;
554
- (i & P) !== 0 ? Ir(
554
+ (i & P) !== 0 ? Tr(
555
555
  /** @type {Derived} */
556
556
  s,
557
557
  t,
558
558
  n,
559
559
  r
560
- ) : (i & (Tn | He)) !== 0 && (i & L) === 0 && Cr(s, t, r) && (N(s, L), pe(
560
+ ) : (i & (Tn | He)) !== 0 && (i & L) === 0 && Ar(s, t, r) && (N(s, L), pe(
561
561
  /** @type {Effect} */
562
562
  s
563
563
  ));
564
564
  }
565
565
  }
566
- function Cr(e, t, n) {
566
+ function Ar(e, t, n) {
567
567
  const r = n.get(e);
568
568
  if (r !== void 0) return r;
569
569
  if (e.deps !== null)
570
570
  for (const s of e.deps) {
571
571
  if (bt.call(t, s))
572
572
  return !0;
573
- if ((s.f & P) !== 0 && Cr(
573
+ if ((s.f & P) !== 0 && Ar(
574
574
  /** @type {Derived} */
575
575
  s,
576
576
  t,
@@ -586,7 +586,7 @@ function Cr(e, t, n) {
586
586
  }
587
587
  function pe(e) {
588
588
  var t = un = e, n = t.b;
589
- if (n?.is_pending && (e.f & (It | yt | kn)) !== 0 && (e.f & tt) === 0) {
589
+ if (n?.is_pending && (e.f & (St | yt | kn)) !== 0 && (e.f & rt) === 0) {
590
590
  n.defer_effect(e);
591
591
  return;
592
592
  }
@@ -595,37 +595,37 @@ function pe(e) {
595
595
  var r = t.f;
596
596
  if (Et !== null && t === y && (e.f & yt) === 0)
597
597
  return;
598
- if ((r & (Fe | we)) !== 0) {
598
+ if ((r & (Be | we)) !== 0) {
599
599
  if ((r & D) === 0)
600
600
  return;
601
601
  t.f ^= D;
602
602
  }
603
603
  }
604
- H.push(t);
604
+ j.push(t);
605
605
  }
606
- function kr(e, t) {
606
+ function Mr(e, t) {
607
607
  if (!((e.f & we) !== 0 && (e.f & D) !== 0)) {
608
- (e.f & L) !== 0 ? t.d.push(e) : (e.f & ue) !== 0 && t.m.push(e), N(e, D);
608
+ (e.f & L) !== 0 ? t.d.push(e) : (e.f & ae) !== 0 && t.m.push(e), N(e, D);
609
609
  for (var n = e.first; n !== null; )
610
- kr(n, t), n = n.next;
610
+ Mr(n, t), n = n.next;
611
611
  }
612
612
  }
613
- function fi(e) {
613
+ function vi(e) {
614
614
  let t = 0, n = zt(0), r;
615
615
  return () => {
616
- Ln() && (x(n), Wr(() => (t === 0 && (r = rs(() => e(() => Mt(n)))), t += 1, () => {
616
+ Ln() && (E(n), qr(() => (t === 0 && (r = os(() => e(() => Mt(n)))), t += 1, () => {
617
617
  ut(() => {
618
618
  t -= 1, t === 0 && (r?.(), r = void 0, Mt(n));
619
619
  });
620
620
  })));
621
621
  };
622
622
  }
623
- var ci = $t | nt;
624
- function di(e, t, n, r) {
625
- new hi(e, t, n, r);
623
+ var _i = $t | st;
624
+ function pi(e, t, n, r) {
625
+ new gi(e, t, n, r);
626
626
  }
627
- var U, Dt, de, Ge, j, he, X, se, Se, Je, Ne, pt, gt, mt, Ie, tn, R, Tr, Ar, Mr, bn, Yt, qt, yn;
628
- class hi {
627
+ var U, Dt, de, Ze, F, he, X, re, Ie, Qe, Oe, pt, gt, mt, Se, tn, R, Rr, Nr, Or, bn, Yt, qt, yn;
628
+ class gi {
629
629
  /**
630
630
  * @param {TemplateNode} node
631
631
  * @param {BoundaryProps} props
@@ -635,34 +635,34 @@ class hi {
635
635
  constructor(t, n, r, s) {
636
636
  w(this, R);
637
637
  /** @type {Boundary | null} */
638
- k(this, "parent");
639
- k(this, "is_pending", !1);
638
+ T(this, "parent");
639
+ T(this, "is_pending", !1);
640
640
  /**
641
641
  * API-level transformError transform function. Transforms errors before they reach the `failed` snippet.
642
642
  * Inherited from parent boundary, or defaults to identity.
643
643
  * @type {(error: unknown) => unknown}
644
644
  */
645
- k(this, "transform_error");
645
+ T(this, "transform_error");
646
646
  /** @type {TemplateNode} */
647
647
  w(this, U);
648
648
  /** @type {TemplateNode | null} */
649
- w(this, Dt, I ? E : null);
649
+ w(this, Dt, S ? I : null);
650
650
  /** @type {BoundaryProps} */
651
651
  w(this, de);
652
652
  /** @type {((anchor: Node) => void)} */
653
- w(this, Ge);
653
+ w(this, Ze);
654
654
  /** @type {Effect} */
655
- w(this, j);
655
+ w(this, F);
656
656
  /** @type {Effect | null} */
657
657
  w(this, he, null);
658
658
  /** @type {Effect | null} */
659
659
  w(this, X, null);
660
660
  /** @type {Effect | null} */
661
- w(this, se, null);
661
+ w(this, re, null);
662
662
  /** @type {DocumentFragment | null} */
663
- w(this, Se, null);
664
- w(this, Je, 0);
665
- w(this, Ne, 0);
663
+ w(this, Ie, null);
664
+ w(this, Qe, 0);
665
+ w(this, Oe, 0);
666
666
  w(this, pt, !1);
667
667
  /** @type {Set<Effect>} */
668
668
  w(this, gt, /* @__PURE__ */ new Set());
@@ -675,39 +675,39 @@ class hi {
675
675
  * calls followed by no-op flushes
676
676
  * @type {Source<number> | null}
677
677
  */
678
- w(this, Ie, null);
679
- w(this, tn, fi(() => (m(this, Ie, zt(l(this, Je))), () => {
680
- m(this, Ie, null);
678
+ w(this, Se, null);
679
+ w(this, tn, vi(() => (g(this, Se, zt(l(this, Qe))), () => {
680
+ g(this, Se, null);
681
681
  })));
682
- m(this, U, t), m(this, de, n), m(this, Ge, (i) => {
682
+ g(this, U, t), g(this, de, n), g(this, Ze, (i) => {
683
683
  var o = (
684
684
  /** @type {Effect} */
685
685
  y
686
686
  );
687
687
  o.b = this, o.f |= vn, r(i);
688
688
  }), this.parent = /** @type {Effect} */
689
- y.b, this.transform_error = s ?? this.parent?.transform_error ?? ((i) => i), m(this, j, Vr(() => {
690
- if (I) {
689
+ y.b, this.transform_error = s ?? this.parent?.transform_error ?? ((i) => i), g(this, F, Ur(() => {
690
+ if (S) {
691
691
  const i = (
692
692
  /** @type {Comment} */
693
693
  l(this, Dt)
694
694
  );
695
695
  An();
696
- const o = i.data === cr;
697
- if (i.data.startsWith(Kn)) {
698
- const a = JSON.parse(i.data.slice(Kn.length));
699
- T(this, R, Ar).call(this, a);
700
- } else o ? T(this, R, Mr).call(this) : T(this, R, Tr).call(this);
696
+ const o = i.data === vr;
697
+ if (i.data.startsWith(Jn)) {
698
+ const a = JSON.parse(i.data.slice(Jn.length));
699
+ A(this, R, Nr).call(this, a);
700
+ } else o ? A(this, R, Or).call(this) : A(this, R, Rr).call(this);
701
701
  } else
702
- T(this, R, bn).call(this);
703
- }, ci)), I && m(this, U, E);
702
+ A(this, R, bn).call(this);
703
+ }, _i)), S && g(this, U, I);
704
704
  }
705
705
  /**
706
706
  * Defer an effect inside a pending boundary until the boundary resolves
707
707
  * @param {Effect} effect
708
708
  */
709
709
  defer_effect(t) {
710
- Er(t, l(this, gt), l(this, mt));
710
+ Cr(t, l(this, gt), l(this, mt));
711
711
  }
712
712
  /**
713
713
  * Returns `false` if the effect exists inside a boundary whose pending snippet is shown
@@ -726,14 +726,14 @@ class hi {
726
726
  * @param {1 | -1} d
727
727
  */
728
728
  update_pending_count(t) {
729
- T(this, R, yn).call(this, t), m(this, Je, l(this, Je) + t), !(!l(this, Ie) || l(this, pt)) && (m(this, pt, !0), ut(() => {
730
- m(this, pt, !1), l(this, Ie) && Jt(l(this, Ie), l(this, Je));
729
+ A(this, R, yn).call(this, t), g(this, Qe, l(this, Qe) + t), !(!l(this, Se) || l(this, pt)) && (g(this, pt, !0), ut(() => {
730
+ g(this, pt, !1), l(this, Se) && Kt(l(this, Se), l(this, Qe));
731
731
  }));
732
732
  }
733
733
  get_effect_pending() {
734
- return l(this, tn).call(this), x(
734
+ return l(this, tn).call(this), E(
735
735
  /** @type {Source<number>} */
736
- l(this, Ie)
736
+ l(this, Se)
737
737
  );
738
738
  }
739
739
  /** @param {unknown} error */
@@ -742,28 +742,28 @@ class hi {
742
742
  let r = l(this, de).failed;
743
743
  if (!n && !r)
744
744
  throw t;
745
- l(this, he) && (B(l(this, he)), m(this, he, null)), l(this, X) && (B(l(this, X)), m(this, X, null)), l(this, se) && (B(l(this, se)), m(this, se, null)), I && (fe(
745
+ l(this, he) && (B(l(this, he)), g(this, he, null)), l(this, X) && (B(l(this, X)), g(this, X, null)), l(this, re) && (B(l(this, re)), g(this, re, null)), S && (ue(
746
746
  /** @type {TemplateNode} */
747
747
  l(this, Dt)
748
- ), ti(), fe(mr()));
748
+ ), ii(), ue(yr()));
749
749
  var s = !1, i = !1;
750
750
  const o = () => {
751
751
  if (s) {
752
- ei();
752
+ si();
753
753
  return;
754
754
  }
755
- s = !0, i && Qs(), l(this, se) !== null && Nt(l(this, se), () => {
756
- m(this, se, null);
757
- }), T(this, R, qt).call(this, () => {
758
- Te.ensure(), T(this, R, bn).call(this);
755
+ s = !0, i && ri(), l(this, re) !== null && Nt(l(this, re), () => {
756
+ g(this, re, null);
757
+ }), A(this, R, qt).call(this, () => {
758
+ Te.ensure(), A(this, R, bn).call(this);
759
759
  });
760
760
  }, u = (a) => {
761
761
  try {
762
762
  i = !0, n?.(a, o), i = !1;
763
763
  } catch (f) {
764
- Oe(f, l(this, j) && l(this, j).parent);
764
+ De(f, l(this, F) && l(this, F).parent);
765
765
  }
766
- r && m(this, se, T(this, R, qt).call(this, () => {
766
+ r && g(this, re, A(this, R, qt).call(this, () => {
767
767
  Te.ensure();
768
768
  try {
769
769
  return Ee(() => {
@@ -778,10 +778,10 @@ class hi {
778
778
  );
779
779
  });
780
780
  } catch (f) {
781
- return Oe(
781
+ return De(
782
782
  f,
783
783
  /** @type {Effect} */
784
- l(this, j).parent
784
+ l(this, F).parent
785
785
  ), null;
786
786
  }
787
787
  }));
@@ -791,30 +791,30 @@ class hi {
791
791
  try {
792
792
  a = this.transform_error(t);
793
793
  } catch (f) {
794
- Oe(f, l(this, j) && l(this, j).parent);
794
+ De(f, l(this, F) && l(this, F).parent);
795
795
  return;
796
796
  }
797
797
  a !== null && typeof a == "object" && typeof /** @type {any} */
798
798
  a.then == "function" ? a.then(
799
799
  u,
800
800
  /** @param {unknown} e */
801
- (f) => Oe(f, l(this, j) && l(this, j).parent)
801
+ (f) => De(f, l(this, F) && l(this, F).parent)
802
802
  ) : u(a);
803
803
  });
804
804
  }
805
805
  }
806
- U = new WeakMap(), Dt = new WeakMap(), de = new WeakMap(), Ge = new WeakMap(), j = new WeakMap(), he = new WeakMap(), X = new WeakMap(), se = new WeakMap(), Se = new WeakMap(), Je = new WeakMap(), Ne = new WeakMap(), pt = new WeakMap(), gt = new WeakMap(), mt = new WeakMap(), Ie = new WeakMap(), tn = new WeakMap(), R = new WeakSet(), Tr = function() {
806
+ U = new WeakMap(), Dt = new WeakMap(), de = new WeakMap(), Ze = new WeakMap(), F = new WeakMap(), he = new WeakMap(), X = new WeakMap(), re = new WeakMap(), Ie = new WeakMap(), Qe = new WeakMap(), Oe = new WeakMap(), pt = new WeakMap(), gt = new WeakMap(), mt = new WeakMap(), Se = new WeakMap(), tn = new WeakMap(), R = new WeakSet(), Rr = function() {
807
807
  try {
808
- m(this, he, Ee(() => l(this, Ge).call(this, l(this, U))));
808
+ g(this, he, Ee(() => l(this, Ze).call(this, l(this, U))));
809
809
  } catch (t) {
810
810
  this.error(t);
811
811
  }
812
812
  }, /**
813
813
  * @param {unknown} error The deserialized error from the server's hydration comment
814
814
  */
815
- Ar = function(t) {
815
+ Nr = function(t) {
816
816
  const n = l(this, de).failed;
817
- n && m(this, se, Ee(() => {
817
+ n && g(this, re, Ee(() => {
818
818
  n(
819
819
  l(this, U),
820
820
  () => t,
@@ -822,32 +822,32 @@ Ar = function(t) {
822
822
  }
823
823
  );
824
824
  }));
825
- }, Mr = function() {
825
+ }, Or = function() {
826
826
  const t = l(this, de).pending;
827
- t && (this.is_pending = !0, m(this, X, Ee(() => t(l(this, U)))), ut(() => {
828
- var n = m(this, Se, document.createDocumentFragment()), r = Pe();
829
- n.append(r), m(this, he, T(this, R, qt).call(this, () => (Te.ensure(), Ee(() => l(this, Ge).call(this, r))))), l(this, Ne) === 0 && (l(this, U).before(n), m(this, Se, null), Nt(
827
+ t && (this.is_pending = !0, g(this, X, Ee(() => t(l(this, U)))), ut(() => {
828
+ var n = g(this, Ie, document.createDocumentFragment()), r = ze();
829
+ n.append(r), g(this, he, A(this, R, qt).call(this, () => (Te.ensure(), Ee(() => l(this, Ze).call(this, r))))), l(this, Oe) === 0 && (l(this, U).before(n), g(this, Ie, null), Nt(
830
830
  /** @type {Effect} */
831
831
  l(this, X),
832
832
  () => {
833
- m(this, X, null);
833
+ g(this, X, null);
834
834
  }
835
- ), T(this, R, Yt).call(this));
835
+ ), A(this, R, Yt).call(this));
836
836
  }));
837
837
  }, bn = function() {
838
838
  try {
839
- if (this.is_pending = this.has_pending_snippet(), m(this, Ne, 0), m(this, Je, 0), m(this, he, Ee(() => {
840
- l(this, Ge).call(this, l(this, U));
841
- })), l(this, Ne) > 0) {
842
- var t = m(this, Se, document.createDocumentFragment());
843
- Kr(l(this, he), t);
839
+ if (this.is_pending = this.has_pending_snippet(), g(this, Oe, 0), g(this, Qe, 0), g(this, he, Ee(() => {
840
+ l(this, Ze).call(this, l(this, U));
841
+ })), l(this, Oe) > 0) {
842
+ var t = g(this, Ie, document.createDocumentFragment());
843
+ Zr(l(this, he), t);
844
844
  const n = (
845
845
  /** @type {(anchor: Node) => void} */
846
846
  l(this, de).pending
847
847
  );
848
- m(this, X, Ee(() => n(l(this, U))));
848
+ g(this, X, Ee(() => n(l(this, U))));
849
849
  } else
850
- T(this, R, Yt).call(this);
850
+ A(this, R, Yt).call(this);
851
851
  } catch (n) {
852
852
  this.error(n);
853
853
  }
@@ -856,7 +856,7 @@ Ar = function(t) {
856
856
  for (const t of l(this, gt))
857
857
  N(t, L), pe(t);
858
858
  for (const t of l(this, mt))
859
- N(t, ue), pe(t);
859
+ N(t, ae), pe(t);
860
860
  l(this, gt).clear(), l(this, mt).clear();
861
861
  }, /**
862
862
  * @template T
@@ -864,13 +864,13 @@ Ar = function(t) {
864
864
  */
865
865
  qt = function(t) {
866
866
  var n = y, r = b, s = W;
867
- me(l(this, j)), ne(l(this, j)), xt(l(this, j).ctx);
867
+ me(l(this, F)), te(l(this, F)), xt(l(this, F).ctx);
868
868
  try {
869
869
  return t();
870
870
  } catch (i) {
871
- return $r(i), null;
871
+ return Ir(i), null;
872
872
  } finally {
873
- me(n), ne(r), xt(s);
873
+ me(n), te(r), xt(s);
874
874
  }
875
875
  }, /**
876
876
  * Updates the pending count associated with the currently visible pending snippet,
@@ -880,14 +880,14 @@ qt = function(t) {
880
880
  yn = function(t) {
881
881
  var n;
882
882
  if (!this.has_pending_snippet()) {
883
- this.parent && T(n = this.parent, R, yn).call(n, t);
883
+ this.parent && A(n = this.parent, R, yn).call(n, t);
884
884
  return;
885
885
  }
886
- m(this, Ne, l(this, Ne) + t), l(this, Ne) === 0 && (T(this, R, Yt).call(this), l(this, X) && Nt(l(this, X), () => {
887
- m(this, X, null);
888
- }), l(this, Se) && (l(this, U).before(l(this, Se)), m(this, Se, null)));
886
+ g(this, Oe, l(this, Oe) + t), l(this, Oe) === 0 && (A(this, R, Yt).call(this), l(this, X) && Nt(l(this, X), () => {
887
+ g(this, X, null);
888
+ }), l(this, Ie) && (l(this, U).before(l(this, Ie)), g(this, Ie, null)));
889
889
  };
890
- function vi(e, t, n, r) {
890
+ function mi(e, t, n, r) {
891
891
  const s = Rn;
892
892
  var i = e.filter((h) => !h.settled);
893
893
  if (n.length === 0 && i.length === 0) {
@@ -897,13 +897,13 @@ function vi(e, t, n, r) {
897
897
  var o = (
898
898
  /** @type {Effect} */
899
899
  y
900
- ), u = _i(), a = i.length === 1 ? i[0].promise : i.length > 1 ? Promise.all(i.map((h) => h.promise)) : null;
900
+ ), u = wi(), a = i.length === 1 ? i[0].promise : i.length > 1 ? Promise.all(i.map((h) => h.promise)) : null;
901
901
  function f(h) {
902
902
  u();
903
903
  try {
904
904
  r(h);
905
905
  } catch (v) {
906
- (o.f & ke) === 0 && Oe(v, o);
906
+ (o.f & ke) === 0 && De(v, o);
907
907
  }
908
908
  $n();
909
909
  }
@@ -912,27 +912,27 @@ function vi(e, t, n, r) {
912
912
  return;
913
913
  }
914
914
  function c() {
915
- u(), Promise.all(n.map((h) => /* @__PURE__ */ gi(h))).then((h) => f([...t.map(s), ...h])).catch((h) => Oe(h, o));
915
+ u(), Promise.all(n.map((h) => /* @__PURE__ */ yi(h))).then((h) => f([...t.map(s), ...h])).catch((h) => De(h, o));
916
916
  }
917
917
  a ? a.then(c) : c();
918
918
  }
919
- function _i() {
920
- var e = y, t = b, n = W, r = A;
919
+ function wi() {
920
+ var e = y, t = b, n = W, r = M;
921
921
  return function(i = !0) {
922
- me(e), ne(t), xt(n), i && r?.activate();
922
+ me(e), te(t), xt(n), i && r?.activate();
923
923
  };
924
924
  }
925
925
  function $n(e = !0) {
926
- me(null), ne(null), xt(null), e && A?.deactivate();
926
+ me(null), te(null), xt(null), e && M?.deactivate();
927
927
  }
928
- function pi() {
928
+ function bi() {
929
929
  var e = (
930
930
  /** @type {Boundary} */
931
931
  /** @type {Effect} */
932
932
  y.b
933
933
  ), t = (
934
934
  /** @type {Batch} */
935
- A
935
+ M
936
936
  ), n = e.is_rendered();
937
937
  return e.update_pending_count(1), t.increment(n), () => {
938
938
  e.update_pending_count(-1), t.decrement(n);
@@ -944,11 +944,11 @@ function Rn(e) {
944
944
  /** @type {Derived} */
945
945
  b
946
946
  ) : null;
947
- return y !== null && (y.f |= nt), {
947
+ return y !== null && (y.f |= st), {
948
948
  ctx: W,
949
949
  deps: null,
950
950
  effects: null,
951
- equals: wr,
951
+ equals: $r,
952
952
  f: t,
953
953
  fn: e,
954
954
  reactions: null,
@@ -963,9 +963,9 @@ function Rn(e) {
963
963
  };
964
964
  }
965
965
  // @__NO_SIDE_EFFECTS__
966
- function gi(e, t, n) {
966
+ function yi(e, t, n) {
967
967
  /** @type {Effect | null} */
968
- y === null && Vs();
968
+ y === null && Xs();
969
969
  var s = (
970
970
  /** @type {Promise<V>} */
971
971
  /** @type {unknown} */
@@ -974,8 +974,8 @@ function gi(e, t, n) {
974
974
  /** @type {V} */
975
975
  O
976
976
  ), o = !b, u = /* @__PURE__ */ new Map();
977
- return Mi(() => {
978
- var a = pr();
977
+ return Di(() => {
978
+ var a = wr();
979
979
  s = a.promise;
980
980
  try {
981
981
  Promise.resolve(e()).then(a.resolve, a.reject).finally($n);
@@ -984,28 +984,28 @@ function gi(e, t, n) {
984
984
  }
985
985
  var f = (
986
986
  /** @type {Batch} */
987
- A
987
+ M
988
988
  );
989
989
  if (o) {
990
- var c = pi();
991
- u.get(f)?.reject(Ye), u.delete(f), u.set(f, a);
990
+ var c = bi();
991
+ u.get(f)?.reject(qe), u.delete(f), u.set(f, a);
992
992
  }
993
- const h = (v, g = void 0) => {
994
- if (f.activate(), g)
995
- g !== Ye && (i.f |= De, Jt(i, g));
993
+ const h = (v, p = void 0) => {
994
+ if (f.activate(), p)
995
+ p !== qe && (i.f |= Le, Kt(i, p));
996
996
  else {
997
- (i.f & De) !== 0 && (i.f ^= De), Jt(i, v);
997
+ (i.f & Le) !== 0 && (i.f ^= Le), Kt(i, v);
998
998
  for (const [d, $] of u) {
999
999
  if (u.delete(d), d === f) break;
1000
- $.reject(Ye);
1000
+ $.reject(qe);
1001
1001
  }
1002
1002
  }
1003
1003
  c && c();
1004
1004
  };
1005
1005
  a.promise.then(h, (v) => h(null, v || "unknown"));
1006
- }), Ci(() => {
1006
+ }), Mi(() => {
1007
1007
  for (const a of u.values())
1008
- a.reject(Ye);
1008
+ a.reject(qe);
1009
1009
  }), new Promise((a) => {
1010
1010
  function f(c) {
1011
1011
  function h() {
@@ -1017,11 +1017,11 @@ function gi(e, t, n) {
1017
1017
  });
1018
1018
  }
1019
1019
  // @__NO_SIDE_EFFECTS__
1020
- function Rr(e) {
1020
+ function Dr(e) {
1021
1021
  const t = /* @__PURE__ */ Rn(e);
1022
- return Gr(t), t;
1022
+ return Qr(t), t;
1023
1023
  }
1024
- function mi(e) {
1024
+ function $i(e) {
1025
1025
  var t = e.effects;
1026
1026
  if (t !== null) {
1027
1027
  e.effects = null;
@@ -1032,7 +1032,7 @@ function mi(e) {
1032
1032
  );
1033
1033
  }
1034
1034
  }
1035
- function wi(e) {
1035
+ function xi(e) {
1036
1036
  for (var t = e.parent; t !== null; ) {
1037
1037
  if ((t.f & P) === 0)
1038
1038
  return (t.f & ke) === 0 ? (
@@ -1045,42 +1045,42 @@ function wi(e) {
1045
1045
  }
1046
1046
  function Nn(e) {
1047
1047
  var t, n = y;
1048
- me(wi(e));
1048
+ me(xi(e));
1049
1049
  try {
1050
- e.f &= ~et, mi(e), t = es(e);
1050
+ e.f &= ~nt, $i(e), t = rs(e);
1051
1051
  } finally {
1052
1052
  me(n);
1053
1053
  }
1054
1054
  return t;
1055
1055
  }
1056
- function Nr(e) {
1056
+ function Lr(e) {
1057
1057
  var t = Nn(e);
1058
- if (!e.equals(t) && (e.wv = Zr(), (!A?.is_fork || e.deps === null) && (e.v = t, e.deps === null))) {
1058
+ if (!e.equals(t) && (e.wv = ts(), (!M?.is_fork || e.deps === null) && (e.v = t, e.deps === null))) {
1059
1059
  N(e, D);
1060
1060
  return;
1061
1061
  }
1062
- je || (oe !== null ? (Ln() || A?.is_fork) && oe.set(e, t) : Mn(e));
1062
+ je || (ie !== null ? (Ln() || M?.is_fork) && ie.set(e, t) : Mn(e));
1063
1063
  }
1064
- function bi(e) {
1064
+ function Ei(e) {
1065
1065
  if (e.effects !== null)
1066
1066
  for (const t of e.effects)
1067
- (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(Ye), t.teardown = Ps, t.ac = null, Ot(t, 0), Pn(t));
1067
+ (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(qe), t.teardown = Hs, t.ac = null, Ot(t, 0), Pn(t));
1068
1068
  }
1069
- function Or(e) {
1069
+ function Pr(e) {
1070
1070
  if (e.effects !== null)
1071
1071
  for (const t of e.effects)
1072
- t.teardown && St(t);
1072
+ t.teardown && It(t);
1073
1073
  }
1074
1074
  let xn = /* @__PURE__ */ new Set();
1075
- const Le = /* @__PURE__ */ new Map();
1076
- let Dr = !1;
1075
+ const Pe = /* @__PURE__ */ new Map();
1076
+ let zr = !1;
1077
1077
  function zt(e, t) {
1078
1078
  var n = {
1079
1079
  f: 0,
1080
1080
  // TODO ideally we could skip this altogether, but it causes type errors
1081
1081
  v: e,
1082
1082
  reactions: null,
1083
- equals: wr,
1083
+ equals: $r,
1084
1084
  rv: 0,
1085
1085
  wv: 0
1086
1086
  };
@@ -1089,24 +1089,24 @@ function zt(e, t) {
1089
1089
  // @__NO_SIDE_EFFECTS__
1090
1090
  function z(e, t) {
1091
1091
  const n = zt(e);
1092
- return Gr(n), n;
1092
+ return Qr(n), n;
1093
1093
  }
1094
1094
  // @__NO_SIDE_EFFECTS__
1095
- function yi(e, t = !1, n = !0) {
1095
+ function Ii(e, t = !1, n = !0) {
1096
1096
  const r = zt(e);
1097
- return t || (r.equals = si), r;
1097
+ return t || (r.equals = ai), r;
1098
1098
  }
1099
- function M(e, t, n = !1) {
1099
+ function C(e, t, n = !1) {
1100
1100
  b !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
1101
1101
  // to ensure we error if state is set inside an inspect effect
1102
- (!ae || (b.f & Jn) !== 0) && br() && (b.f & (P | He | Tn | Jn)) !== 0 && (te === null || !bt.call(te, e)) && Zs();
1103
- let r = n ? lt(t) : t;
1104
- return Jt(e, r);
1102
+ (!le || (b.f & Zn) !== 0) && xr() && (b.f & (P | He | Tn | Zn)) !== 0 && (ee === null || !bt.call(ee, e)) && ni();
1103
+ let r = n ? Xe(t) : t;
1104
+ return Kt(e, r);
1105
1105
  }
1106
- function Jt(e, t) {
1106
+ function Kt(e, t) {
1107
1107
  if (!e.equals(t)) {
1108
1108
  var n = e.v;
1109
- je ? Le.set(e, t) : Le.set(e, n), e.v = t;
1109
+ je ? Pe.set(e, t) : Pe.set(e, n), e.v = t;
1110
1110
  var r = Te.ensure();
1111
1111
  if (r.capture(e, n), (e.f & P) !== 0) {
1112
1112
  const s = (
@@ -1115,20 +1115,20 @@ function Jt(e, t) {
1115
1115
  );
1116
1116
  (e.f & L) !== 0 && Nn(s), Mn(s);
1117
1117
  }
1118
- e.wv = Zr(), Lr(e, L), y !== null && (y.f & D) !== 0 && (y.f & (we | Fe)) === 0 && (J === null ? Di([e]) : J.push(e)), !r.is_fork && xn.size > 0 && !Dr && $i();
1118
+ e.wv = ts(), Fr(e, L), y !== null && (y.f & D) !== 0 && (y.f & (we | Be)) === 0 && (J === null ? Fi([e]) : J.push(e)), !r.is_fork && xn.size > 0 && !zr && Si();
1119
1119
  }
1120
1120
  return t;
1121
1121
  }
1122
- function $i() {
1123
- Dr = !1;
1122
+ function Si() {
1123
+ zr = !1;
1124
1124
  for (const e of xn)
1125
- (e.f & D) !== 0 && N(e, ue), jt(e) && St(e);
1125
+ (e.f & D) !== 0 && N(e, ae), Ft(e) && It(e);
1126
1126
  xn.clear();
1127
1127
  }
1128
1128
  function Mt(e) {
1129
- M(e, e.v + 1);
1129
+ C(e, e.v + 1);
1130
1130
  }
1131
- function Lr(e, t) {
1131
+ function Fr(e, t) {
1132
1132
  var n = e.reactions;
1133
1133
  if (n !== null)
1134
1134
  for (var r = n.length, s = 0; s < r; s++) {
@@ -1138,7 +1138,7 @@ function Lr(e, t) {
1138
1138
  /** @type {Derived} */
1139
1139
  i
1140
1140
  );
1141
- oe?.delete(a), (o & et) === 0 && (o & Q && (i.f |= et), Lr(a, ue));
1141
+ ie?.delete(a), (o & nt) === 0 && (o & Z && (i.f |= nt), Fr(a, ae));
1142
1142
  } else u && ((o & He) !== 0 && $e !== null && $e.add(
1143
1143
  /** @type {Effect} */
1144
1144
  i
@@ -1148,19 +1148,19 @@ function Lr(e, t) {
1148
1148
  ));
1149
1149
  }
1150
1150
  }
1151
- function lt(e) {
1151
+ function Xe(e) {
1152
1152
  if (typeof e != "object" || e === null || dn in e)
1153
1153
  return e;
1154
- const t = _r(e);
1155
- if (t !== Ds && t !== Ls)
1154
+ const t = mr(e);
1155
+ if (t !== Fs && t !== js)
1156
1156
  return e;
1157
- var n = /* @__PURE__ */ new Map(), r = vr(e), s = /* @__PURE__ */ z(0), i = Qe, o = (u) => {
1158
- if (Qe === i)
1157
+ var n = /* @__PURE__ */ new Map(), r = gr(e), s = /* @__PURE__ */ z(0), i = tt, o = (u) => {
1158
+ if (tt === i)
1159
1159
  return u();
1160
- var a = b, f = Qe;
1161
- ne(null), tr(i);
1160
+ var a = b, f = tt;
1161
+ te(null), nr(i);
1162
1162
  var c = u();
1163
- return ne(a), tr(f), c;
1163
+ return te(a), nr(f), c;
1164
1164
  };
1165
1165
  return r && n.set("length", /* @__PURE__ */ z(
1166
1166
  /** @type {any[]} */
@@ -1170,12 +1170,12 @@ function lt(e) {
1170
1170
  e,
1171
1171
  {
1172
1172
  defineProperty(u, a, f) {
1173
- (!("value" in f) || f.configurable === !1 || f.enumerable === !1 || f.writable === !1) && Gs();
1173
+ (!("value" in f) || f.configurable === !1 || f.enumerable === !1 || f.writable === !1) && ei();
1174
1174
  var c = n.get(a);
1175
1175
  return c === void 0 ? o(() => {
1176
1176
  var h = /* @__PURE__ */ z(f.value);
1177
1177
  return n.set(a, h), h;
1178
- }) : M(c, f.value, !0), !0;
1178
+ }) : C(c, f.value, !0), !0;
1179
1179
  },
1180
1180
  deleteProperty(u, a) {
1181
1181
  var f = n.get(a);
@@ -1185,7 +1185,7 @@ function lt(e) {
1185
1185
  n.set(a, c), Mt(s);
1186
1186
  }
1187
1187
  } else
1188
- M(f, O), Mt(s);
1188
+ C(f, O), Mt(s);
1189
1189
  return !0;
1190
1190
  },
1191
1191
  get(u, a, f) {
@@ -1193,10 +1193,10 @@ function lt(e) {
1193
1193
  return e;
1194
1194
  var c = n.get(a), h = a in u;
1195
1195
  if (c === void 0 && (!h || at(u, a)?.writable) && (c = o(() => {
1196
- var g = lt(h ? u[a] : O), d = /* @__PURE__ */ z(g);
1196
+ var p = Xe(h ? u[a] : O), d = /* @__PURE__ */ z(p);
1197
1197
  return d;
1198
1198
  }), n.set(a, c)), c !== void 0) {
1199
- var v = x(c);
1199
+ var v = E(c);
1200
1200
  return v === O ? void 0 : v;
1201
1201
  }
1202
1202
  return Reflect.get(u, a, f);
@@ -1205,7 +1205,7 @@ function lt(e) {
1205
1205
  var f = Reflect.getOwnPropertyDescriptor(u, a);
1206
1206
  if (f && "value" in f) {
1207
1207
  var c = n.get(a);
1208
- c && (f.value = x(c));
1208
+ c && (f.value = E(c));
1209
1209
  } else if (f === void 0) {
1210
1210
  var h = n.get(a), v = h?.v;
1211
1211
  if (h !== void 0 && v !== O)
@@ -1224,10 +1224,10 @@ function lt(e) {
1224
1224
  var f = n.get(a), c = f !== void 0 && f.v !== O || Reflect.has(u, a);
1225
1225
  if (f !== void 0 || y !== null && (!c || at(u, a)?.writable)) {
1226
1226
  f === void 0 && (f = o(() => {
1227
- var v = c ? lt(u[a]) : O, g = /* @__PURE__ */ z(v);
1228
- return g;
1227
+ var v = c ? Xe(u[a]) : O, p = /* @__PURE__ */ z(v);
1228
+ return p;
1229
1229
  }), n.set(a, f));
1230
- var h = x(f);
1230
+ var h = E(f);
1231
1231
  if (h === O)
1232
1232
  return !1;
1233
1233
  }
@@ -1236,33 +1236,33 @@ function lt(e) {
1236
1236
  set(u, a, f, c) {
1237
1237
  var h = n.get(a), v = a in u;
1238
1238
  if (r && a === "length")
1239
- for (var g = f; g < /** @type {Source<number>} */
1240
- h.v; g += 1) {
1241
- var d = n.get(g + "");
1242
- d !== void 0 ? M(d, O) : g in u && (d = o(() => /* @__PURE__ */ z(O)), n.set(g + "", d));
1239
+ for (var p = f; p < /** @type {Source<number>} */
1240
+ h.v; p += 1) {
1241
+ var d = n.get(p + "");
1242
+ d !== void 0 ? C(d, O) : p in u && (d = o(() => /* @__PURE__ */ z(O)), n.set(p + "", d));
1243
1243
  }
1244
1244
  if (h === void 0)
1245
- (!v || at(u, a)?.writable) && (h = o(() => /* @__PURE__ */ z(void 0)), M(h, lt(f)), n.set(a, h));
1245
+ (!v || at(u, a)?.writable) && (h = o(() => /* @__PURE__ */ z(void 0)), C(h, Xe(f)), n.set(a, h));
1246
1246
  else {
1247
1247
  v = h.v !== O;
1248
- var $ = o(() => lt(f));
1249
- M(h, $);
1248
+ var $ = o(() => Xe(f));
1249
+ C(h, $);
1250
1250
  }
1251
- var p = Reflect.getOwnPropertyDescriptor(u, a);
1252
- if (p?.set && p.set.call(c, f), !v) {
1251
+ var m = Reflect.getOwnPropertyDescriptor(u, a);
1252
+ if (m?.set && m.set.call(c, f), !v) {
1253
1253
  if (r && typeof a == "string") {
1254
- var S = (
1254
+ var x = (
1255
1255
  /** @type {Source<number>} */
1256
1256
  n.get("length")
1257
1257
  ), Y = Number(a);
1258
- Number.isInteger(Y) && Y >= S.v && M(S, Y + 1);
1258
+ Number.isInteger(Y) && Y >= x.v && C(x, Y + 1);
1259
1259
  }
1260
1260
  Mt(s);
1261
1261
  }
1262
1262
  return !0;
1263
1263
  },
1264
1264
  ownKeys(u) {
1265
- x(s);
1265
+ E(s);
1266
1266
  var a = Reflect.ownKeys(u).filter((h) => {
1267
1267
  var v = n.get(h);
1268
1268
  return v === void 0 || v.v !== O;
@@ -1272,97 +1272,97 @@ function lt(e) {
1272
1272
  return a;
1273
1273
  },
1274
1274
  setPrototypeOf() {
1275
- Js();
1275
+ ti();
1276
1276
  }
1277
1277
  }
1278
1278
  );
1279
1279
  }
1280
- var Qn, Pr, zr, jr;
1280
+ var er, jr, Hr, Br;
1281
1281
  function En() {
1282
- if (Qn === void 0) {
1283
- Qn = window, Pr = /Firefox/.test(navigator.userAgent);
1282
+ if (er === void 0) {
1283
+ er = window, jr = /Firefox/.test(navigator.userAgent);
1284
1284
  var e = Element.prototype, t = Node.prototype, n = Text.prototype;
1285
- zr = at(t, "firstChild").get, jr = at(t, "nextSibling").get, Gn(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), Gn(n) && (n.__t = void 0);
1285
+ Hr = at(t, "firstChild").get, Br = at(t, "nextSibling").get, Kn(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), Kn(n) && (n.__t = void 0);
1286
1286
  }
1287
1287
  }
1288
- function Pe(e = "") {
1288
+ function ze(e = "") {
1289
1289
  return document.createTextNode(e);
1290
1290
  }
1291
1291
  // @__NO_SIDE_EFFECTS__
1292
- function ze(e) {
1292
+ function Fe(e) {
1293
1293
  return (
1294
1294
  /** @type {TemplateNode | null} */
1295
- zr.call(e)
1295
+ Hr.call(e)
1296
1296
  );
1297
1297
  }
1298
1298
  // @__NO_SIDE_EFFECTS__
1299
1299
  function Ae(e) {
1300
1300
  return (
1301
1301
  /** @type {TemplateNode | null} */
1302
- jr.call(e)
1302
+ Br.call(e)
1303
1303
  );
1304
1304
  }
1305
1305
  function xe(e, t) {
1306
- if (!I)
1307
- return /* @__PURE__ */ ze(e);
1308
- var n = /* @__PURE__ */ ze(E);
1306
+ if (!S)
1307
+ return /* @__PURE__ */ Fe(e);
1308
+ var n = /* @__PURE__ */ Fe(I);
1309
1309
  if (n === null)
1310
- n = E.appendChild(Pe());
1310
+ n = I.appendChild(ze());
1311
1311
  else if (t && n.nodeType !== rn) {
1312
- var r = Pe();
1313
- return n?.before(r), fe(r), r;
1312
+ var r = ze();
1313
+ return n?.before(r), ue(r), r;
1314
1314
  }
1315
1315
  return t && Dn(
1316
1316
  /** @type {Text} */
1317
1317
  n
1318
- ), fe(n), n;
1318
+ ), ue(n), n;
1319
1319
  }
1320
- function Hr(e, t = !1) {
1321
- if (!I) {
1322
- var n = /* @__PURE__ */ ze(e);
1320
+ function Wr(e, t = !1) {
1321
+ if (!S) {
1322
+ var n = /* @__PURE__ */ Fe(e);
1323
1323
  return n instanceof Comment && n.data === "" ? /* @__PURE__ */ Ae(n) : n;
1324
1324
  }
1325
1325
  if (t) {
1326
- if (E?.nodeType !== rn) {
1327
- var r = Pe();
1328
- return E?.before(r), fe(r), r;
1326
+ if (I?.nodeType !== rn) {
1327
+ var r = ze();
1328
+ return I?.before(r), ue(r), r;
1329
1329
  }
1330
1330
  Dn(
1331
1331
  /** @type {Text} */
1332
- E
1332
+ I
1333
1333
  );
1334
1334
  }
1335
- return E;
1335
+ return I;
1336
1336
  }
1337
- function Ve(e, t = 1, n = !1) {
1338
- let r = I ? E : e;
1337
+ function Ye(e, t = 1, n = !1) {
1338
+ let r = S ? I : e;
1339
1339
  for (var s; t--; )
1340
1340
  s = r, r = /** @type {TemplateNode} */
1341
1341
  /* @__PURE__ */ Ae(r);
1342
- if (!I)
1342
+ if (!S)
1343
1343
  return r;
1344
1344
  if (n) {
1345
1345
  if (r?.nodeType !== rn) {
1346
- var i = Pe();
1347
- return r === null ? s?.after(i) : r.before(i), fe(i), i;
1346
+ var i = ze();
1347
+ return r === null ? s?.after(i) : r.before(i), ue(i), i;
1348
1348
  }
1349
1349
  Dn(
1350
1350
  /** @type {Text} */
1351
1351
  r
1352
1352
  );
1353
1353
  }
1354
- return fe(r), r;
1354
+ return ue(r), r;
1355
1355
  }
1356
- function xi(e) {
1356
+ function Ci(e) {
1357
1357
  e.textContent = "";
1358
1358
  }
1359
- function Ei() {
1359
+ function ki() {
1360
1360
  return !1;
1361
1361
  }
1362
1362
  function On(e, t, n) {
1363
1363
  return (
1364
1364
  /** @type {T extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[T] : Element} */
1365
- document.createElementNS(hr, e, void 0)
1365
+ document.createElementNS(pr, e, void 0)
1366
1366
  );
1367
1367
  }
1368
1368
  function Dn(e) {
@@ -1376,30 +1376,30 @@ function Dn(e) {
1376
1376
  t.remove(), e.nodeValue += /** @type {string} */
1377
1377
  t.nodeValue, t = e.nextSibling;
1378
1378
  }
1379
- function Fr(e) {
1379
+ function Vr(e) {
1380
1380
  var t = b, n = y;
1381
- ne(null), me(null);
1381
+ te(null), me(null);
1382
1382
  try {
1383
1383
  return e();
1384
1384
  } finally {
1385
- ne(t), me(n);
1385
+ te(t), me(n);
1386
1386
  }
1387
1387
  }
1388
- function Si(e) {
1389
- y === null && (b === null && Us(), qs()), je && Ys();
1388
+ function Ti(e) {
1389
+ y === null && (b === null && Ks(), Js()), je && Gs();
1390
1390
  }
1391
- function Ii(e, t) {
1391
+ function Ai(e, t) {
1392
1392
  var n = t.last;
1393
1393
  n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
1394
1394
  }
1395
1395
  function be(e, t) {
1396
1396
  var n = y;
1397
- n !== null && (n.f & ee) !== 0 && (e |= ee);
1397
+ n !== null && (n.f & Q) !== 0 && (e |= Q);
1398
1398
  var r = {
1399
1399
  ctx: W,
1400
1400
  deps: null,
1401
1401
  nodes: null,
1402
- f: e | L | Q,
1402
+ f: e | L | Z,
1403
1403
  first: null,
1404
1404
  fn: t,
1405
1405
  last: null,
@@ -1411,18 +1411,18 @@ function be(e, t) {
1411
1411
  wv: 0,
1412
1412
  ac: null
1413
1413
  }, s = r;
1414
- if ((e & It) !== 0)
1414
+ if ((e & St) !== 0)
1415
1415
  Et !== null ? Et.push(r) : pe(r);
1416
1416
  else if (t !== null) {
1417
1417
  try {
1418
- St(r);
1418
+ It(r);
1419
1419
  } catch (o) {
1420
1420
  throw B(r), o;
1421
1421
  }
1422
1422
  s.deps === null && s.teardown === null && s.nodes === null && s.first === s.last && // either `null`, or a singular child
1423
- (s.f & nt) === 0 && (s = s.first, (e & He) !== 0 && (e & $t) !== 0 && s !== null && (s.f |= $t));
1423
+ (s.f & st) === 0 && (s = s.first, (e & He) !== 0 && (e & $t) !== 0 && s !== null && (s.f |= $t));
1424
1424
  }
1425
- if (s !== null && (s.parent = n, n !== null && Ii(s, n), b !== null && (b.f & P) !== 0 && (e & Fe) === 0)) {
1425
+ if (s !== null && (s.parent = n, n !== null && Ai(s, n), b !== null && (b.f & P) !== 0 && (e & Be) === 0)) {
1426
1426
  var i = (
1427
1427
  /** @type {Derived} */
1428
1428
  b
@@ -1432,18 +1432,18 @@ function be(e, t) {
1432
1432
  return r;
1433
1433
  }
1434
1434
  function Ln() {
1435
- return b !== null && !ae;
1435
+ return b !== null && !le;
1436
1436
  }
1437
- function Ci(e) {
1437
+ function Mi(e) {
1438
1438
  const t = be(yt, null);
1439
1439
  return N(t, D), t.teardown = e, t;
1440
1440
  }
1441
- function Sn(e) {
1442
- Si();
1441
+ function In(e) {
1442
+ Ti();
1443
1443
  var t = (
1444
1444
  /** @type {Effect} */
1445
1445
  y.f
1446
- ), n = !b && (t & we) !== 0 && (t & tt) === 0;
1446
+ ), n = !b && (t & we) !== 0 && (t & rt) === 0;
1447
1447
  if (n) {
1448
1448
  var r = (
1449
1449
  /** @type {ComponentContext} */
@@ -1451,57 +1451,57 @@ function Sn(e) {
1451
1451
  );
1452
1452
  (r.e ?? (r.e = [])).push(e);
1453
1453
  } else
1454
- return Br(e);
1454
+ return Yr(e);
1455
1455
  }
1456
- function Br(e) {
1457
- return be(It | Hs, e);
1456
+ function Yr(e) {
1457
+ return be(St | Vs, e);
1458
1458
  }
1459
- function ki(e) {
1459
+ function Ri(e) {
1460
1460
  Te.ensure();
1461
- const t = be(Fe | nt, e);
1461
+ const t = be(Be | st, e);
1462
1462
  return () => {
1463
1463
  B(t);
1464
1464
  };
1465
1465
  }
1466
- function Ti(e) {
1466
+ function Ni(e) {
1467
1467
  Te.ensure();
1468
- const t = be(Fe | nt, e);
1468
+ const t = be(Be | st, e);
1469
1469
  return (n = {}) => new Promise((r) => {
1470
1470
  n.outro ? Nt(t, () => {
1471
1471
  B(t), r(void 0);
1472
1472
  }) : (B(t), r(void 0));
1473
1473
  });
1474
1474
  }
1475
- function Ai(e) {
1476
- return be(It, e);
1475
+ function Oi(e) {
1476
+ return be(St, e);
1477
1477
  }
1478
- function Mi(e) {
1479
- return be(Tn | nt, e);
1478
+ function Di(e) {
1479
+ return be(Tn | st, e);
1480
1480
  }
1481
- function Wr(e, t = 0) {
1481
+ function qr(e, t = 0) {
1482
1482
  return be(yt | t, e);
1483
1483
  }
1484
1484
  function Rt(e, t = [], n = [], r = []) {
1485
- vi(r, t, n, (s) => {
1486
- be(yt, () => e(...s.map(x)));
1485
+ mi(r, t, n, (s) => {
1486
+ be(yt, () => e(...s.map(E)));
1487
1487
  });
1488
1488
  }
1489
- function Vr(e, t = 0) {
1489
+ function Ur(e, t = 0) {
1490
1490
  var n = be(He | t, e);
1491
1491
  return n;
1492
1492
  }
1493
1493
  function Ee(e) {
1494
- return be(we | nt, e);
1494
+ return be(we | st, e);
1495
1495
  }
1496
- function Yr(e) {
1496
+ function Xr(e) {
1497
1497
  var t = e.teardown;
1498
1498
  if (t !== null) {
1499
1499
  const n = je, r = b;
1500
- er(!0), ne(null);
1500
+ tr(!0), te(null);
1501
1501
  try {
1502
1502
  t.call(null);
1503
1503
  } finally {
1504
- er(n), ne(r);
1504
+ tr(n), te(r);
1505
1505
  }
1506
1506
  }
1507
1507
  }
@@ -1509,14 +1509,14 @@ function Pn(e, t = !1) {
1509
1509
  var n = e.first;
1510
1510
  for (e.first = e.last = null; n !== null; ) {
1511
1511
  const s = n.ac;
1512
- s !== null && Fr(() => {
1513
- s.abort(Ye);
1512
+ s !== null && Vr(() => {
1513
+ s.abort(qe);
1514
1514
  });
1515
1515
  var r = n.next;
1516
- (n.f & Fe) !== 0 ? n.parent = null : B(n, t), n = r;
1516
+ (n.f & Be) !== 0 ? n.parent = null : B(n, t), n = r;
1517
1517
  }
1518
1518
  }
1519
- function Ri(e) {
1519
+ function Li(e) {
1520
1520
  for (var t = e.first; t !== null; ) {
1521
1521
  var n = t.next;
1522
1522
  (t.f & we) === 0 && B(t), t = n;
@@ -1524,7 +1524,7 @@ function Ri(e) {
1524
1524
  }
1525
1525
  function B(e, t = !0) {
1526
1526
  var n = !1;
1527
- (t || (e.f & js) !== 0) && e.nodes !== null && e.nodes.end !== null && (Ni(
1527
+ (t || (e.f & Ws) !== 0) && e.nodes !== null && e.nodes.end !== null && (Pi(
1528
1528
  e.nodes.start,
1529
1529
  /** @type {TemplateNode} */
1530
1530
  e.nodes.end
@@ -1533,23 +1533,23 @@ function B(e, t = !0) {
1533
1533
  if (r !== null)
1534
1534
  for (const i of r)
1535
1535
  i.stop();
1536
- Yr(e);
1536
+ Xr(e);
1537
1537
  var s = e.parent;
1538
- s !== null && s.first !== null && qr(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
1538
+ s !== null && s.first !== null && Gr(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
1539
1539
  }
1540
- function Ni(e, t) {
1540
+ function Pi(e, t) {
1541
1541
  for (; e !== null; ) {
1542
1542
  var n = e === t ? null : /* @__PURE__ */ Ae(e);
1543
1543
  e.remove(), e = n;
1544
1544
  }
1545
1545
  }
1546
- function qr(e) {
1546
+ function Gr(e) {
1547
1547
  var t = e.parent, n = e.prev, r = e.next;
1548
1548
  n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
1549
1549
  }
1550
1550
  function Nt(e, t, n = !0) {
1551
1551
  var r = [];
1552
- Ur(e, r, !0);
1552
+ Jr(e, r, !0);
1553
1553
  var s = () => {
1554
1554
  n && B(e), t && t();
1555
1555
  }, i = r.length;
@@ -1560,9 +1560,9 @@ function Nt(e, t, n = !0) {
1560
1560
  } else
1561
1561
  s();
1562
1562
  }
1563
- function Ur(e, t, n) {
1564
- if ((e.f & ee) === 0) {
1565
- e.f ^= ee;
1563
+ function Jr(e, t, n) {
1564
+ if ((e.f & Q) === 0) {
1565
+ e.f ^= Q;
1566
1566
  var r = e.nodes && e.nodes.t;
1567
1567
  if (r !== null)
1568
1568
  for (const u of r)
@@ -1572,19 +1572,19 @@ function Ur(e, t, n) {
1572
1572
  // it means the parent block effect was pruned. In that case,
1573
1573
  // transparency information was transferred to the branch effect.
1574
1574
  (s.f & we) !== 0 && (e.f & He) !== 0;
1575
- Ur(s, t, o ? n : !1), s = i;
1575
+ Jr(s, t, o ? n : !1), s = i;
1576
1576
  }
1577
1577
  }
1578
1578
  }
1579
- function Oi(e) {
1580
- Xr(e, !0);
1579
+ function zi(e) {
1580
+ Kr(e, !0);
1581
1581
  }
1582
- function Xr(e, t) {
1583
- if ((e.f & ee) !== 0) {
1584
- e.f ^= ee;
1582
+ function Kr(e, t) {
1583
+ if ((e.f & Q) !== 0) {
1584
+ e.f ^= Q;
1585
1585
  for (var n = e.first; n !== null; ) {
1586
1586
  var r = n.next, s = (n.f & $t) !== 0 || (n.f & we) !== 0;
1587
- Xr(n, s ? t : !1), n = r;
1587
+ Kr(n, s ? t : !1), n = r;
1588
1588
  }
1589
1589
  var i = e.nodes && e.nodes.t;
1590
1590
  if (i !== null)
@@ -1592,7 +1592,7 @@ function Xr(e, t) {
1592
1592
  (o.is_global || t) && o.in();
1593
1593
  }
1594
1594
  }
1595
- function Kr(e, t) {
1595
+ function Zr(e, t) {
1596
1596
  if (e.nodes)
1597
1597
  for (var n = e.nodes.start, r = e.nodes.end; n !== null; ) {
1598
1598
  var s = n === r ? null : /* @__PURE__ */ Ae(n);
@@ -1600,79 +1600,79 @@ function Kr(e, t) {
1600
1600
  }
1601
1601
  }
1602
1602
  let Ut = !1, je = !1;
1603
- function er(e) {
1603
+ function tr(e) {
1604
1604
  je = e;
1605
1605
  }
1606
- let b = null, ae = !1;
1607
- function ne(e) {
1606
+ let b = null, le = !1;
1607
+ function te(e) {
1608
1608
  b = e;
1609
1609
  }
1610
1610
  let y = null;
1611
1611
  function me(e) {
1612
1612
  y = e;
1613
1613
  }
1614
- let te = null;
1615
- function Gr(e) {
1616
- b !== null && (te === null ? te = [e] : te.push(e));
1614
+ let ee = null;
1615
+ function Qr(e) {
1616
+ b !== null && (ee === null ? ee = [e] : ee.push(e));
1617
1617
  }
1618
- let F = null, q = 0, J = null;
1619
- function Di(e) {
1618
+ let H = null, q = 0, J = null;
1619
+ function Fi(e) {
1620
1620
  J = e;
1621
1621
  }
1622
- let Jr = 1, Ue = 0, Qe = Ue;
1623
- function tr(e) {
1624
- Qe = e;
1622
+ let es = 1, Ge = 0, tt = Ge;
1623
+ function nr(e) {
1624
+ tt = e;
1625
1625
  }
1626
- function Zr() {
1627
- return ++Jr;
1626
+ function ts() {
1627
+ return ++es;
1628
1628
  }
1629
- function jt(e) {
1629
+ function Ft(e) {
1630
1630
  var t = e.f;
1631
1631
  if ((t & L) !== 0)
1632
1632
  return !0;
1633
- if (t & P && (e.f &= ~et), (t & ue) !== 0) {
1633
+ if (t & P && (e.f &= ~nt), (t & ae) !== 0) {
1634
1634
  for (var n = (
1635
1635
  /** @type {Value[]} */
1636
1636
  e.deps
1637
1637
  ), r = n.length, s = 0; s < r; s++) {
1638
1638
  var i = n[s];
1639
- if (jt(
1639
+ if (Ft(
1640
1640
  /** @type {Derived} */
1641
1641
  i
1642
- ) && Nr(
1642
+ ) && Lr(
1643
1643
  /** @type {Derived} */
1644
1644
  i
1645
1645
  ), i.wv > e.wv)
1646
1646
  return !0;
1647
1647
  }
1648
- (t & Q) !== 0 && // During time traveling we don't want to reset the status so that
1648
+ (t & Z) !== 0 && // During time traveling we don't want to reset the status so that
1649
1649
  // traversal of the graph in the other batches still happens
1650
- oe === null && N(e, D);
1650
+ ie === null && N(e, D);
1651
1651
  }
1652
1652
  return !1;
1653
1653
  }
1654
- function Qr(e, t, n = !0) {
1654
+ function ns(e, t, n = !0) {
1655
1655
  var r = e.reactions;
1656
- if (r !== null && !(te !== null && bt.call(te, e)))
1656
+ if (r !== null && !(ee !== null && bt.call(ee, e)))
1657
1657
  for (var s = 0; s < r.length; s++) {
1658
1658
  var i = r[s];
1659
- (i.f & P) !== 0 ? Qr(
1659
+ (i.f & P) !== 0 ? ns(
1660
1660
  /** @type {Derived} */
1661
1661
  i,
1662
1662
  t,
1663
1663
  !1
1664
- ) : t === i && (n ? N(i, L) : (i.f & D) !== 0 && N(i, ue), pe(
1664
+ ) : t === i && (n ? N(i, L) : (i.f & D) !== 0 && N(i, ae), pe(
1665
1665
  /** @type {Effect} */
1666
1666
  i
1667
1667
  ));
1668
1668
  }
1669
1669
  }
1670
- function es(e) {
1670
+ function rs(e) {
1671
1671
  var $;
1672
- var t = F, n = q, r = J, s = b, i = te, o = W, u = ae, a = Qe, f = e.f;
1673
- F = /** @type {null | Value[]} */
1674
- null, q = 0, J = null, b = (f & (we | Fe)) === 0 ? e : null, te = null, xt(e.ctx), ae = !1, Qe = ++Ue, e.ac !== null && (Fr(() => {
1675
- e.ac.abort(Ye);
1672
+ var t = H, n = q, r = J, s = b, i = ee, o = W, u = le, a = tt, f = e.f;
1673
+ H = /** @type {null | Value[]} */
1674
+ null, q = 0, J = null, b = (f & (we | Be)) === 0 ? e : null, ee = null, xt(e.ctx), le = !1, tt = ++Ge, e.ac !== null && (Vr(() => {
1675
+ e.ac.abort(qe);
1676
1676
  }), e.ac = null);
1677
1677
  try {
1678
1678
  e.f |= _n;
@@ -1680,48 +1680,48 @@ function es(e) {
1680
1680
  /** @type {Function} */
1681
1681
  e.fn
1682
1682
  ), h = c();
1683
- e.f |= tt;
1684
- var v = e.deps, g = A?.is_fork;
1685
- if (F !== null) {
1683
+ e.f |= rt;
1684
+ var v = e.deps, p = M?.is_fork;
1685
+ if (H !== null) {
1686
1686
  var d;
1687
- if (g || Ot(e, q), v !== null && q > 0)
1688
- for (v.length = q + F.length, d = 0; d < F.length; d++)
1689
- v[q + d] = F[d];
1687
+ if (p || Ot(e, q), v !== null && q > 0)
1688
+ for (v.length = q + H.length, d = 0; d < H.length; d++)
1689
+ v[q + d] = H[d];
1690
1690
  else
1691
- e.deps = v = F;
1692
- if (Ln() && (e.f & Q) !== 0)
1691
+ e.deps = v = H;
1692
+ if (Ln() && (e.f & Z) !== 0)
1693
1693
  for (d = q; d < v.length; d++)
1694
1694
  (($ = v[d]).reactions ?? ($.reactions = [])).push(e);
1695
- } else !g && v !== null && q < v.length && (Ot(e, q), v.length = q);
1696
- if (br() && J !== null && !ae && v !== null && (e.f & (P | ue | L)) === 0)
1695
+ } else !p && v !== null && q < v.length && (Ot(e, q), v.length = q);
1696
+ if (xr() && J !== null && !le && v !== null && (e.f & (P | ae | L)) === 0)
1697
1697
  for (d = 0; d < /** @type {Source[]} */
1698
1698
  J.length; d++)
1699
- Qr(
1699
+ ns(
1700
1700
  J[d],
1701
1701
  /** @type {Effect} */
1702
1702
  e
1703
1703
  );
1704
1704
  if (s !== null && s !== e) {
1705
- if (Ue++, s.deps !== null)
1706
- for (let p = 0; p < n; p += 1)
1707
- s.deps[p].rv = Ue;
1705
+ if (Ge++, s.deps !== null)
1706
+ for (let m = 0; m < n; m += 1)
1707
+ s.deps[m].rv = Ge;
1708
1708
  if (t !== null)
1709
- for (const p of t)
1710
- p.rv = Ue;
1709
+ for (const m of t)
1710
+ m.rv = Ge;
1711
1711
  J !== null && (r === null ? r = J : r.push(.../** @type {Source[]} */
1712
1712
  J));
1713
1713
  }
1714
- return (e.f & De) !== 0 && (e.f ^= De), h;
1715
- } catch (p) {
1716
- return $r(p);
1714
+ return (e.f & Le) !== 0 && (e.f ^= Le), h;
1715
+ } catch (m) {
1716
+ return Ir(m);
1717
1717
  } finally {
1718
- e.f ^= _n, F = t, q = n, J = r, b = s, te = i, xt(o), ae = u, Qe = a;
1718
+ e.f ^= _n, H = t, q = n, J = r, b = s, ee = i, xt(o), le = u, tt = a;
1719
1719
  }
1720
1720
  }
1721
- function Li(e, t) {
1721
+ function ji(e, t) {
1722
1722
  let n = t.reactions;
1723
1723
  if (n !== null) {
1724
- var r = Rs.call(n, e);
1724
+ var r = Ls.call(n, e);
1725
1725
  if (r !== -1) {
1726
1726
  var s = n.length - 1;
1727
1727
  s === 0 ? n = t.reactions = null : (n[r] = n[s], n.pop());
@@ -1730,45 +1730,45 @@ function Li(e, t) {
1730
1730
  if (n === null && (t.f & P) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
1731
1731
  // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
1732
1732
  // allows us to skip the expensive work of disconnecting and immediately reconnecting it
1733
- (F === null || !bt.call(F, t))) {
1733
+ (H === null || !bt.call(H, t))) {
1734
1734
  var i = (
1735
1735
  /** @type {Derived} */
1736
1736
  t
1737
1737
  );
1738
- (i.f & Q) !== 0 && (i.f ^= Q, i.f &= ~et), Mn(i), bi(i), Ot(i, 0);
1738
+ (i.f & Z) !== 0 && (i.f ^= Z, i.f &= ~nt), Mn(i), Ei(i), Ot(i, 0);
1739
1739
  }
1740
1740
  }
1741
1741
  function Ot(e, t) {
1742
1742
  var n = e.deps;
1743
1743
  if (n !== null)
1744
1744
  for (var r = t; r < n.length; r++)
1745
- Li(e, n[r]);
1745
+ ji(e, n[r]);
1746
1746
  }
1747
- function St(e) {
1747
+ function It(e) {
1748
1748
  var t = e.f;
1749
1749
  if ((t & ke) === 0) {
1750
1750
  N(e, D);
1751
1751
  var n = y, r = Ut;
1752
1752
  y = e, Ut = !0;
1753
1753
  try {
1754
- (t & (He | kn)) !== 0 ? Ri(e) : Pn(e), Yr(e);
1755
- var s = es(e);
1756
- e.teardown = typeof s == "function" ? s : null, e.wv = Jr;
1754
+ (t & (He | kn)) !== 0 ? Li(e) : Pn(e), Xr(e);
1755
+ var s = rs(e);
1756
+ e.teardown = typeof s == "function" ? s : null, e.wv = es;
1757
1757
  var i;
1758
- hn && ii && (e.f & L) !== 0 && e.deps;
1758
+ hn && ui && (e.f & L) !== 0 && e.deps;
1759
1759
  } finally {
1760
1760
  Ut = r, y = n;
1761
1761
  }
1762
1762
  }
1763
1763
  }
1764
- function x(e) {
1764
+ function E(e) {
1765
1765
  var t = e.f, n = (t & P) !== 0;
1766
- if (b !== null && !ae) {
1766
+ if (b !== null && !le) {
1767
1767
  var r = y !== null && (y.f & ke) !== 0;
1768
- if (!r && (te === null || !bt.call(te, e))) {
1768
+ if (!r && (ee === null || !bt.call(ee, e))) {
1769
1769
  var s = b.deps;
1770
1770
  if ((b.f & _n) !== 0)
1771
- e.rv < Ue && (e.rv = Ue, F === null && s !== null && s[q] === e ? q++ : F === null ? F = [e] : F.push(e));
1771
+ e.rv < Ge && (e.rv = Ge, H === null && s !== null && s[q] === e ? q++ : H === null ? H = [e] : H.push(e));
1772
1772
  else {
1773
1773
  (b.deps ?? (b.deps = [])).push(e);
1774
1774
  var i = e.reactions;
@@ -1776,8 +1776,8 @@ function x(e) {
1776
1776
  }
1777
1777
  }
1778
1778
  }
1779
- if (je && Le.has(e))
1780
- return Le.get(e);
1779
+ if (je && Pe.has(e))
1780
+ return Pe.get(e);
1781
1781
  if (n) {
1782
1782
  var o = (
1783
1783
  /** @type {Derived} */
@@ -1785,59 +1785,59 @@ function x(e) {
1785
1785
  );
1786
1786
  if (je) {
1787
1787
  var u = o.v;
1788
- return ((o.f & D) === 0 && o.reactions !== null || ns(o)) && (u = Nn(o)), Le.set(o, u), u;
1788
+ return ((o.f & D) === 0 && o.reactions !== null || is(o)) && (u = Nn(o)), Pe.set(o, u), u;
1789
1789
  }
1790
- var a = (o.f & Q) === 0 && !ae && b !== null && (Ut || (b.f & Q) !== 0), f = (o.f & tt) === 0;
1791
- jt(o) && (a && (o.f |= Q), Nr(o)), a && !f && (Or(o), ts(o));
1790
+ var a = (o.f & Z) === 0 && !le && b !== null && (Ut || (b.f & Z) !== 0), f = (o.f & rt) === 0;
1791
+ Ft(o) && (a && (o.f |= Z), Lr(o)), a && !f && (Pr(o), ss(o));
1792
1792
  }
1793
- if (oe?.has(e))
1794
- return oe.get(e);
1795
- if ((e.f & De) !== 0)
1793
+ if (ie?.has(e))
1794
+ return ie.get(e);
1795
+ if ((e.f & Le) !== 0)
1796
1796
  throw e.v;
1797
1797
  return e.v;
1798
1798
  }
1799
- function ts(e) {
1800
- if (e.f |= Q, e.deps !== null)
1799
+ function ss(e) {
1800
+ if (e.f |= Z, e.deps !== null)
1801
1801
  for (const t of e.deps)
1802
- (t.reactions ?? (t.reactions = [])).push(e), (t.f & P) !== 0 && (t.f & Q) === 0 && (Or(
1802
+ (t.reactions ?? (t.reactions = [])).push(e), (t.f & P) !== 0 && (t.f & Z) === 0 && (Pr(
1803
1803
  /** @type {Derived} */
1804
1804
  t
1805
- ), ts(
1805
+ ), ss(
1806
1806
  /** @type {Derived} */
1807
1807
  t
1808
1808
  ));
1809
1809
  }
1810
- function ns(e) {
1810
+ function is(e) {
1811
1811
  if (e.v === O) return !0;
1812
1812
  if (e.deps === null) return !1;
1813
1813
  for (const t of e.deps)
1814
- if (Le.has(t) || (t.f & P) !== 0 && ns(
1814
+ if (Pe.has(t) || (t.f & P) !== 0 && is(
1815
1815
  /** @type {Derived} */
1816
1816
  t
1817
1817
  ))
1818
1818
  return !0;
1819
1819
  return !1;
1820
1820
  }
1821
- function rs(e) {
1822
- var t = ae;
1821
+ function os(e) {
1822
+ var t = le;
1823
1823
  try {
1824
- return ae = !0, e();
1824
+ return le = !0, e();
1825
1825
  } finally {
1826
- ae = t;
1826
+ le = t;
1827
1827
  }
1828
1828
  }
1829
- const Xe = /* @__PURE__ */ Symbol("events"), ss = /* @__PURE__ */ new Set(), In = /* @__PURE__ */ new Set();
1829
+ const Je = /* @__PURE__ */ Symbol("events"), ls = /* @__PURE__ */ new Set(), Sn = /* @__PURE__ */ new Set();
1830
1830
  function Zt(e, t, n) {
1831
- (t[Xe] ?? (t[Xe] = {}))[e] = n;
1831
+ (t[Je] ?? (t[Je] = {}))[e] = n;
1832
1832
  }
1833
1833
  function zn(e) {
1834
1834
  for (var t = 0; t < e.length; t++)
1835
- ss.add(e[t]);
1836
- for (var n of In)
1835
+ ls.add(e[t]);
1836
+ for (var n of Sn)
1837
1837
  n(e);
1838
1838
  }
1839
- let nr = null;
1840
- function rr(e) {
1839
+ let rr = null;
1840
+ function sr(e) {
1841
1841
  var t = this, n = (
1842
1842
  /** @type {Node} */
1843
1843
  t.ownerDocument
@@ -1845,13 +1845,13 @@ function rr(e) {
1845
1845
  /** @type {null | Element} */
1846
1846
  s[0] || e.target
1847
1847
  );
1848
- nr = e;
1849
- var o = 0, u = nr === e && e[Xe];
1848
+ rr = e;
1849
+ var o = 0, u = rr === e && e[Je];
1850
1850
  if (u) {
1851
1851
  var a = s.indexOf(u);
1852
1852
  if (a !== -1 && (t === document || t === /** @type {any} */
1853
1853
  window)) {
1854
- e[Xe] = t;
1854
+ e[Je] = t;
1855
1855
  return;
1856
1856
  }
1857
1857
  var f = s.indexOf(t);
@@ -1861,59 +1861,59 @@ function rr(e) {
1861
1861
  }
1862
1862
  if (i = /** @type {Element} */
1863
1863
  s[o] || e.target, i !== t) {
1864
- Gt(e, "currentTarget", {
1864
+ Jt(e, "currentTarget", {
1865
1865
  configurable: !0,
1866
1866
  get() {
1867
1867
  return i || n;
1868
1868
  }
1869
1869
  });
1870
1870
  var c = b, h = y;
1871
- ne(null), me(null);
1871
+ te(null), me(null);
1872
1872
  try {
1873
- for (var v, g = []; i !== null; ) {
1873
+ for (var v, p = []; i !== null; ) {
1874
1874
  var d = i.assignedSlot || i.parentNode || /** @type {any} */
1875
1875
  i.host || null;
1876
1876
  try {
1877
- var $ = i[Xe]?.[r];
1877
+ var $ = i[Je]?.[r];
1878
1878
  $ != null && (!/** @type {any} */
1879
1879
  i.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
1880
1880
  // -> the target could not have been disabled because it emits the event in the first place
1881
1881
  e.target === i) && $.call(i, e);
1882
- } catch (p) {
1883
- v ? g.push(p) : v = p;
1882
+ } catch (m) {
1883
+ v ? p.push(m) : v = m;
1884
1884
  }
1885
1885
  if (e.cancelBubble || d === t || d === null)
1886
1886
  break;
1887
1887
  i = d;
1888
1888
  }
1889
1889
  if (v) {
1890
- for (let p of g)
1890
+ for (let m of p)
1891
1891
  queueMicrotask(() => {
1892
- throw p;
1892
+ throw m;
1893
1893
  });
1894
1894
  throw v;
1895
1895
  }
1896
1896
  } finally {
1897
- e[Xe] = t, delete e.currentTarget, ne(c), me(h);
1897
+ e[Je] = t, delete e.currentTarget, te(c), me(h);
1898
1898
  }
1899
1899
  }
1900
1900
  }
1901
- const Pi = (
1901
+ const Hi = (
1902
1902
  // We gotta write it like this because after downleveling the pure comment may end up in the wrong location
1903
1903
  globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", {
1904
1904
  /** @param {string} html */
1905
1905
  createHTML: (e) => e
1906
1906
  })
1907
1907
  );
1908
- function zi(e) {
1908
+ function Bi(e) {
1909
1909
  return (
1910
1910
  /** @type {string} */
1911
- Pi?.createHTML(e) ?? e
1911
+ Hi?.createHTML(e) ?? e
1912
1912
  );
1913
1913
  }
1914
- function is(e) {
1914
+ function as(e) {
1915
1915
  var t = On("template");
1916
- return t.innerHTML = zi(e.replaceAll("<!>", "<!---->")), t.content;
1916
+ return t.innerHTML = Bi(e.replaceAll("<!>", "<!---->")), t.content;
1917
1917
  }
1918
1918
  function ft(e, t) {
1919
1919
  var n = (
@@ -1923,21 +1923,21 @@ function ft(e, t) {
1923
1923
  n.nodes === null && (n.nodes = { start: e, end: t, a: null, t: null });
1924
1924
  }
1925
1925
  // @__NO_SIDE_EFFECTS__
1926
- function rt(e, t) {
1927
- var n = (t & As) !== 0, r = (t & Ms) !== 0, s, i = !e.startsWith("<!>");
1926
+ function it(e, t) {
1927
+ var n = (t & Os) !== 0, r = (t & Ds) !== 0, s, i = !e.startsWith("<!>");
1928
1928
  return () => {
1929
- if (I)
1930
- return ft(E, null), E;
1931
- s === void 0 && (s = is(i ? e : "<!>" + e), n || (s = /** @type {TemplateNode} */
1932
- /* @__PURE__ */ ze(s)));
1929
+ if (S)
1930
+ return ft(I, null), I;
1931
+ s === void 0 && (s = as(i ? e : "<!>" + e), n || (s = /** @type {TemplateNode} */
1932
+ /* @__PURE__ */ Fe(s)));
1933
1933
  var o = (
1934
1934
  /** @type {TemplateNode} */
1935
- r || Pr ? document.importNode(s, !0) : s.cloneNode(!0)
1935
+ r || jr ? document.importNode(s, !0) : s.cloneNode(!0)
1936
1936
  );
1937
1937
  if (n) {
1938
1938
  var u = (
1939
1939
  /** @type {TemplateNode} */
1940
- /* @__PURE__ */ ze(o)
1940
+ /* @__PURE__ */ Fe(o)
1941
1941
  ), a = (
1942
1942
  /** @type {TemplateNode} */
1943
1943
  o.lastChild
@@ -1949,21 +1949,21 @@ function rt(e, t) {
1949
1949
  };
1950
1950
  }
1951
1951
  // @__NO_SIDE_EFFECTS__
1952
- function ji(e, t, n = "svg") {
1952
+ function Wi(e, t, n = "svg") {
1953
1953
  var r = !e.startsWith("<!>"), s = `<${n}>${r ? e : "<!>" + e}</${n}>`, i;
1954
1954
  return () => {
1955
- if (I)
1956
- return ft(E, null), E;
1955
+ if (S)
1956
+ return ft(I, null), I;
1957
1957
  if (!i) {
1958
1958
  var o = (
1959
1959
  /** @type {DocumentFragment} */
1960
- is(s)
1960
+ as(s)
1961
1961
  ), u = (
1962
1962
  /** @type {Element} */
1963
- /* @__PURE__ */ ze(o)
1963
+ /* @__PURE__ */ Fe(o)
1964
1964
  );
1965
1965
  i = /** @type {Element} */
1966
- /* @__PURE__ */ ze(u);
1966
+ /* @__PURE__ */ Fe(u);
1967
1967
  }
1968
1968
  var a = (
1969
1969
  /** @type {TemplateNode} */
@@ -1973,16 +1973,16 @@ function ji(e, t, n = "svg") {
1973
1973
  };
1974
1974
  }
1975
1975
  // @__NO_SIDE_EFFECTS__
1976
- function os(e, t) {
1977
- return /* @__PURE__ */ ji(e, t, "svg");
1976
+ function us(e, t) {
1977
+ return /* @__PURE__ */ Wi(e, t, "svg");
1978
1978
  }
1979
1979
  function _e(e, t) {
1980
- if (I) {
1980
+ if (S) {
1981
1981
  var n = (
1982
1982
  /** @type {Effect & { nodes: EffectNodes }} */
1983
1983
  y
1984
1984
  );
1985
- ((n.f & tt) === 0 || n.nodes.end === null) && (n.nodes.end = E), An();
1985
+ ((n.f & rt) === 0 || n.nodes.end === null) && (n.nodes.end = I), An();
1986
1986
  return;
1987
1987
  }
1988
1988
  e !== null && e.before(
@@ -1990,119 +1990,119 @@ function _e(e, t) {
1990
1990
  t
1991
1991
  );
1992
1992
  }
1993
- const Hi = ["touchstart", "touchmove"];
1994
- function Fi(e) {
1995
- return Hi.includes(e);
1993
+ const Vi = ["touchstart", "touchmove"];
1994
+ function Yi(e) {
1995
+ return Vi.includes(e);
1996
1996
  }
1997
- function Bi(e, t) {
1997
+ function qi(e, t) {
1998
1998
  var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
1999
1999
  n !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = n, e.nodeValue = `${n}`);
2000
2000
  }
2001
- function ls(e, t) {
2002
- return as(e, t);
2001
+ function fs(e, t) {
2002
+ return cs(e, t);
2003
2003
  }
2004
- function Wi(e, t) {
2004
+ function Ui(e, t) {
2005
2005
  En(), t.intro = t.intro ?? !1;
2006
- const n = t.target, r = I, s = E;
2006
+ const n = t.target, r = S, s = I;
2007
2007
  try {
2008
- for (var i = /* @__PURE__ */ ze(n); i && (i.nodeType !== sn || /** @type {Comment} */
2009
- i.data !== fr); )
2008
+ for (var i = /* @__PURE__ */ Fe(n); i && (i.nodeType !== sn || /** @type {Comment} */
2009
+ i.data !== hr); )
2010
2010
  i = /* @__PURE__ */ Ae(i);
2011
2011
  if (!i)
2012
2012
  throw wt;
2013
- ot(!0), fe(
2013
+ lt(!0), ue(
2014
2014
  /** @type {Comment} */
2015
2015
  i
2016
2016
  );
2017
- const o = as(e, { ...t, anchor: i });
2018
- return ot(!1), /** @type {Exports} */
2017
+ const o = cs(e, { ...t, anchor: i });
2018
+ return lt(!1), /** @type {Exports} */
2019
2019
  o;
2020
2020
  } catch (o) {
2021
2021
  if (o instanceof Error && o.message.split(`
2022
2022
  `).some((u) => u.startsWith("https://svelte.dev/e/")))
2023
2023
  throw o;
2024
- return o !== wt && console.warn("Failed to hydrate: ", o), t.recover === !1 && Ks(), En(), xi(n), ot(!1), ls(e, t);
2024
+ return o !== wt && console.warn("Failed to hydrate: ", o), t.recover === !1 && Qs(), En(), Ci(n), lt(!1), fs(e, t);
2025
2025
  } finally {
2026
- ot(r), fe(s);
2026
+ lt(r), ue(s);
2027
2027
  }
2028
2028
  }
2029
2029
  const Vt = /* @__PURE__ */ new Map();
2030
- function as(e, { target: t, anchor: n, props: r = {}, events: s, context: i, intro: o = !0, transformError: u }) {
2030
+ function cs(e, { target: t, anchor: n, props: r = {}, events: s, context: i, intro: o = !0, transformError: u }) {
2031
2031
  En();
2032
- var a = void 0, f = Ti(() => {
2033
- var c = n ?? t.appendChild(Pe());
2034
- di(
2032
+ var a = void 0, f = Ni(() => {
2033
+ var c = n ?? t.appendChild(ze());
2034
+ pi(
2035
2035
  /** @type {TemplateNode} */
2036
2036
  c,
2037
2037
  {
2038
2038
  pending: () => {
2039
2039
  }
2040
2040
  },
2041
- (g) => {
2041
+ (p) => {
2042
2042
  ln({});
2043
2043
  var d = (
2044
2044
  /** @type {ComponentContext} */
2045
2045
  W
2046
2046
  );
2047
- if (i && (d.c = i), s && (r.$$events = s), I && ft(
2047
+ if (i && (d.c = i), s && (r.$$events = s), S && ft(
2048
2048
  /** @type {TemplateNode} */
2049
- g,
2049
+ p,
2050
2050
  null
2051
- ), a = e(g, r) || {}, I && (y.nodes.end = E, E === null || E.nodeType !== sn || /** @type {Comment} */
2052
- E.data !== dr))
2051
+ ), a = e(p, r) || {}, S && (y.nodes.end = I, I === null || I.nodeType !== sn || /** @type {Comment} */
2052
+ I.data !== _r))
2053
2053
  throw on(), wt;
2054
2054
  an();
2055
2055
  },
2056
2056
  u
2057
2057
  );
2058
- var h = /* @__PURE__ */ new Set(), v = (g) => {
2059
- for (var d = 0; d < g.length; d++) {
2060
- var $ = g[d];
2058
+ var h = /* @__PURE__ */ new Set(), v = (p) => {
2059
+ for (var d = 0; d < p.length; d++) {
2060
+ var $ = p[d];
2061
2061
  if (!h.has($)) {
2062
2062
  h.add($);
2063
- var p = Fi($);
2064
- for (const G of [t, document]) {
2065
- var S = Vt.get(G);
2066
- S === void 0 && (S = /* @__PURE__ */ new Map(), Vt.set(G, S));
2067
- var Y = S.get($);
2068
- Y === void 0 ? (G.addEventListener($, rr, { passive: p }), S.set($, 1)) : S.set($, Y + 1);
2063
+ var m = Yi($);
2064
+ for (const fe of [t, document]) {
2065
+ var x = Vt.get(fe);
2066
+ x === void 0 && (x = /* @__PURE__ */ new Map(), Vt.set(fe, x));
2067
+ var Y = x.get($);
2068
+ Y === void 0 ? (fe.addEventListener($, sr, { passive: m }), x.set($, 1)) : x.set($, Y + 1);
2069
2069
  }
2070
2070
  }
2071
2071
  }
2072
2072
  };
2073
- return v(Ns(ss)), In.add(v), () => {
2074
- for (var g of h)
2075
- for (const p of [t, document]) {
2073
+ return v(Ps(ls)), Sn.add(v), () => {
2074
+ for (var p of h)
2075
+ for (const m of [t, document]) {
2076
2076
  var d = (
2077
2077
  /** @type {Map<string, number>} */
2078
- Vt.get(p)
2078
+ Vt.get(m)
2079
2079
  ), $ = (
2080
2080
  /** @type {number} */
2081
- d.get(g)
2081
+ d.get(p)
2082
2082
  );
2083
- --$ == 0 ? (p.removeEventListener(g, rr), d.delete(g), d.size === 0 && Vt.delete(p)) : d.set(g, $);
2083
+ --$ == 0 ? (m.removeEventListener(p, sr), d.delete(p), d.size === 0 && Vt.delete(m)) : d.set(p, $);
2084
2084
  }
2085
- In.delete(v), c !== n && c.parentNode?.removeChild(c);
2085
+ Sn.delete(v), c !== n && c.parentNode?.removeChild(c);
2086
2086
  };
2087
2087
  });
2088
2088
  return Cn.set(a, f), a;
2089
2089
  }
2090
2090
  let Cn = /* @__PURE__ */ new WeakMap();
2091
- function Vi(e, t) {
2091
+ function Xi(e, t) {
2092
2092
  const n = Cn.get(e);
2093
2093
  return n ? (Cn.delete(e), n(t)) : Promise.resolve();
2094
2094
  }
2095
- var ie, ve, K, Ze, Lt, Pt, nn;
2096
- class Yi {
2095
+ var se, ve, G, et, Lt, Pt, nn;
2096
+ class Gi {
2097
2097
  /**
2098
2098
  * @param {TemplateNode} anchor
2099
2099
  * @param {boolean} transition
2100
2100
  */
2101
2101
  constructor(t, n = !0) {
2102
2102
  /** @type {TemplateNode} */
2103
- k(this, "anchor");
2103
+ T(this, "anchor");
2104
2104
  /** @type {Map<Batch, Key>} */
2105
- w(this, ie, /* @__PURE__ */ new Map());
2105
+ w(this, se, /* @__PURE__ */ new Map());
2106
2106
  /**
2107
2107
  * Map of keys to effects that are currently rendered in the DOM.
2108
2108
  * These effects are visible and actively part of the document tree.
@@ -2123,12 +2123,12 @@ class Yi {
2123
2123
  * in the DOM, because their insertion is deferred.
2124
2124
  * @type {Map<Key, Branch>}
2125
2125
  */
2126
- w(this, K, /* @__PURE__ */ new Map());
2126
+ w(this, G, /* @__PURE__ */ new Map());
2127
2127
  /**
2128
2128
  * Keys of effects that are currently outroing
2129
2129
  * @type {Set<Key>}
2130
2130
  */
2131
- w(this, Ze, /* @__PURE__ */ new Set());
2131
+ w(this, et, /* @__PURE__ */ new Set());
2132
2132
  /**
2133
2133
  * Whether to pause (i.e. outro) on change, or destroy immediately.
2134
2134
  * This is necessary for `<svelte:element>`
@@ -2138,34 +2138,34 @@ class Yi {
2138
2138
  * @param {Batch} batch
2139
2139
  */
2140
2140
  w(this, Pt, (t) => {
2141
- if (l(this, ie).has(t)) {
2141
+ if (l(this, se).has(t)) {
2142
2142
  var n = (
2143
2143
  /** @type {Key} */
2144
- l(this, ie).get(t)
2144
+ l(this, se).get(t)
2145
2145
  ), r = l(this, ve).get(n);
2146
2146
  if (r)
2147
- Oi(r), l(this, Ze).delete(n);
2147
+ zi(r), l(this, et).delete(n);
2148
2148
  else {
2149
- var s = l(this, K).get(n);
2150
- s && (s.effect.f & ee) === 0 && (l(this, ve).set(n, s.effect), l(this, K).delete(n), s.fragment.lastChild.remove(), this.anchor.before(s.fragment), r = s.effect);
2149
+ var s = l(this, G).get(n);
2150
+ s && (s.effect.f & Q) === 0 && (l(this, ve).set(n, s.effect), l(this, G).delete(n), s.fragment.lastChild.remove(), this.anchor.before(s.fragment), r = s.effect);
2151
2151
  }
2152
- for (const [i, o] of l(this, ie)) {
2153
- if (l(this, ie).delete(i), i === t)
2152
+ for (const [i, o] of l(this, se)) {
2153
+ if (l(this, se).delete(i), i === t)
2154
2154
  break;
2155
- const u = l(this, K).get(o);
2156
- u && (B(u.effect), l(this, K).delete(o));
2155
+ const u = l(this, G).get(o);
2156
+ u && (B(u.effect), l(this, G).delete(o));
2157
2157
  }
2158
2158
  for (const [i, o] of l(this, ve)) {
2159
- if (i === n || l(this, Ze).has(i) || (o.f & ee) !== 0) continue;
2159
+ if (i === n || l(this, et).has(i) || (o.f & Q) !== 0) continue;
2160
2160
  const u = () => {
2161
- if (Array.from(l(this, ie).values()).includes(i)) {
2161
+ if (Array.from(l(this, se).values()).includes(i)) {
2162
2162
  var f = document.createDocumentFragment();
2163
- Kr(o, f), f.append(Pe()), l(this, K).set(i, { effect: o, fragment: f });
2163
+ Zr(o, f), f.append(ze()), l(this, G).set(i, { effect: o, fragment: f });
2164
2164
  } else
2165
2165
  B(o);
2166
- l(this, Ze).delete(i), l(this, ve).delete(i);
2166
+ l(this, et).delete(i), l(this, ve).delete(i);
2167
2167
  };
2168
- l(this, Lt) || !r ? (l(this, Ze).add(i), Nt(o, u, !1)) : u();
2168
+ l(this, Lt) || !r ? (l(this, et).add(i), Nt(o, u, !1)) : u();
2169
2169
  }
2170
2170
  }
2171
2171
  });
@@ -2173,12 +2173,12 @@ class Yi {
2173
2173
  * @param {Batch} batch
2174
2174
  */
2175
2175
  w(this, nn, (t) => {
2176
- l(this, ie).delete(t);
2177
- const n = Array.from(l(this, ie).values());
2178
- for (const [r, s] of l(this, K))
2179
- n.includes(r) || (B(s.effect), l(this, K).delete(r));
2176
+ l(this, se).delete(t);
2177
+ const n = Array.from(l(this, se).values());
2178
+ for (const [r, s] of l(this, G))
2179
+ n.includes(r) || (B(s.effect), l(this, G).delete(r));
2180
2180
  });
2181
- this.anchor = t, m(this, Lt, n);
2181
+ this.anchor = t, g(this, Lt, n);
2182
2182
  }
2183
2183
  /**
2184
2184
  *
@@ -2188,12 +2188,12 @@ class Yi {
2188
2188
  ensure(t, n) {
2189
2189
  var r = (
2190
2190
  /** @type {Batch} */
2191
- A
2192
- ), s = Ei();
2193
- if (n && !l(this, ve).has(t) && !l(this, K).has(t))
2191
+ M
2192
+ ), s = ki();
2193
+ if (n && !l(this, ve).has(t) && !l(this, G).has(t))
2194
2194
  if (s) {
2195
- var i = document.createDocumentFragment(), o = Pe();
2196
- i.append(o), l(this, K).set(t, {
2195
+ var i = document.createDocumentFragment(), o = ze();
2196
+ i.append(o), l(this, G).set(t, {
2197
2197
  effect: Ee(() => n(o)),
2198
2198
  fragment: i
2199
2199
  });
@@ -2202,32 +2202,32 @@ class Yi {
2202
2202
  t,
2203
2203
  Ee(() => n(this.anchor))
2204
2204
  );
2205
- if (l(this, ie).set(r, t), s) {
2205
+ if (l(this, se).set(r, t), s) {
2206
2206
  for (const [u, a] of l(this, ve))
2207
2207
  u === t ? r.unskip_effect(a) : r.skip_effect(a);
2208
- for (const [u, a] of l(this, K))
2208
+ for (const [u, a] of l(this, G))
2209
2209
  u === t ? r.unskip_effect(a.effect) : r.skip_effect(a.effect);
2210
2210
  r.oncommit(l(this, Pt)), r.ondiscard(l(this, nn));
2211
2211
  } else
2212
- I && (this.anchor = E), l(this, Pt).call(this, r);
2212
+ S && (this.anchor = I), l(this, Pt).call(this, r);
2213
2213
  }
2214
2214
  }
2215
- ie = new WeakMap(), ve = new WeakMap(), K = new WeakMap(), Ze = new WeakMap(), Lt = new WeakMap(), Pt = new WeakMap(), nn = new WeakMap();
2216
- function qi(e) {
2217
- W === null && gr(), Sn(() => {
2218
- const t = rs(e);
2215
+ se = new WeakMap(), ve = new WeakMap(), G = new WeakMap(), et = new WeakMap(), Lt = new WeakMap(), Pt = new WeakMap(), nn = new WeakMap();
2216
+ function Ji(e) {
2217
+ W === null && br(), In(() => {
2218
+ const t = os(e);
2219
2219
  if (typeof t == "function") return (
2220
2220
  /** @type {() => void} */
2221
2221
  t
2222
2222
  );
2223
2223
  });
2224
2224
  }
2225
- function Ui(e, t, { bubbles: n = !1, cancelable: r = !1 } = {}) {
2225
+ function Ki(e, t, { bubbles: n = !1, cancelable: r = !1 } = {}) {
2226
2226
  return new CustomEvent(e, { detail: t, bubbles: n, cancelable: r });
2227
2227
  }
2228
- function Xi() {
2228
+ function Zi() {
2229
2229
  const e = W;
2230
- return e === null && gr(), (t, n, r) => {
2230
+ return e === null && br(), (t, n, r) => {
2231
2231
  const s = (
2232
2232
  /** @type {Record<string, Function | Function[]>} */
2233
2233
  e.s.$$events?.[
@@ -2236,7 +2236,7 @@ function Xi() {
2236
2236
  ]
2237
2237
  );
2238
2238
  if (s) {
2239
- const i = vr(s) ? s.slice() : [s], o = Ui(
2239
+ const i = gr(s) ? s.slice() : [s], o = Ki(
2240
2240
  /** @type {string} */
2241
2241
  t,
2242
2242
  n,
@@ -2251,31 +2251,31 @@ function Xi() {
2251
2251
  }
2252
2252
  function Tt(e, t, n = !1) {
2253
2253
  var r;
2254
- I && (r = E, An());
2255
- var s = new Yi(e), i = n ? $t : 0;
2254
+ S && (r = I, An());
2255
+ var s = new Gi(e), i = n ? $t : 0;
2256
2256
  function o(u, a) {
2257
- if (I) {
2258
- var f = ni(
2257
+ if (S) {
2258
+ var f = oi(
2259
2259
  /** @type {TemplateNode} */
2260
2260
  r
2261
2261
  );
2262
2262
  if (u !== parseInt(f.substring(1))) {
2263
- var c = mr();
2264
- fe(c), s.anchor = c, ot(!1), s.ensure(u, a), ot(!0);
2263
+ var c = yr();
2264
+ ue(c), s.anchor = c, lt(!1), s.ensure(u, a), lt(!0);
2265
2265
  return;
2266
2266
  }
2267
2267
  }
2268
2268
  s.ensure(u, a);
2269
2269
  }
2270
- Vr(() => {
2270
+ Ur(() => {
2271
2271
  var u = !1;
2272
2272
  t((a, f = 0) => {
2273
2273
  u = !0, o(f, a);
2274
2274
  }), u || o(-1, null);
2275
2275
  }, i);
2276
2276
  }
2277
- function us(e, t) {
2278
- Ai(() => {
2277
+ function ds(e, t) {
2278
+ Oi(() => {
2279
2279
  var n = e.getRootNode(), r = (
2280
2280
  /** @type {ShadowRoot} */
2281
2281
  n.host ? (
@@ -2293,70 +2293,70 @@ function us(e, t) {
2293
2293
  }
2294
2294
  });
2295
2295
  }
2296
- function fs(e) {
2296
+ function hs(e) {
2297
2297
  var t, n, r = "";
2298
2298
  if (typeof e == "string" || typeof e == "number") r += e;
2299
2299
  else if (typeof e == "object") if (Array.isArray(e)) {
2300
2300
  var s = e.length;
2301
- for (t = 0; t < s; t++) e[t] && (n = fs(e[t])) && (r && (r += " "), r += n);
2301
+ for (t = 0; t < s; t++) e[t] && (n = hs(e[t])) && (r && (r += " "), r += n);
2302
2302
  } else for (n in e) e[n] && (r && (r += " "), r += n);
2303
2303
  return r;
2304
2304
  }
2305
- function Ki() {
2306
- for (var e, t, n = 0, r = "", s = arguments.length; n < s; n++) (e = arguments[n]) && (t = fs(e)) && (r && (r += " "), r += t);
2305
+ function Qi() {
2306
+ for (var e, t, n = 0, r = "", s = arguments.length; n < s; n++) (e = arguments[n]) && (t = hs(e)) && (r && (r += " "), r += t);
2307
2307
  return r;
2308
2308
  }
2309
2309
  function Qt(e) {
2310
- return typeof e == "object" ? Ki(e) : e ?? "";
2310
+ return typeof e == "object" ? Qi(e) : e ?? "";
2311
2311
  }
2312
- function Gi(e, t, n) {
2312
+ function eo(e, t, n) {
2313
2313
  var r = e == null ? "" : "" + e;
2314
2314
  return t && (r = r ? r + " " + t : t), r === "" ? null : r;
2315
2315
  }
2316
- function Ji(e, t) {
2316
+ function to(e, t) {
2317
2317
  return e == null ? null : String(e);
2318
2318
  }
2319
2319
  function en(e, t, n, r, s, i) {
2320
2320
  var o = e.__className;
2321
- if (I || o !== n || o === void 0) {
2322
- var u = Gi(n, r);
2323
- (!I || u !== e.getAttribute("class")) && (u == null ? e.removeAttribute("class") : t ? e.className = u : e.setAttribute("class", u)), e.__className = n;
2321
+ if (S || o !== n || o === void 0) {
2322
+ var u = eo(n, r);
2323
+ (!S || u !== e.getAttribute("class")) && (u == null ? e.removeAttribute("class") : t ? e.className = u : e.setAttribute("class", u)), e.__className = n;
2324
2324
  }
2325
2325
  return i;
2326
2326
  }
2327
- function sr(e, t, n, r) {
2327
+ function ir(e, t, n, r) {
2328
2328
  var s = e.__style;
2329
- if (I || s !== t) {
2330
- var i = Ji(t);
2331
- (!I || i !== e.getAttribute("style")) && (i == null ? e.removeAttribute("style") : e.style.cssText = i), e.__style = t;
2329
+ if (S || s !== t) {
2330
+ var i = to(t);
2331
+ (!S || i !== e.getAttribute("style")) && (i == null ? e.removeAttribute("style") : e.style.cssText = i), e.__style = t;
2332
2332
  }
2333
2333
  return r;
2334
2334
  }
2335
- const Zi = /* @__PURE__ */ Symbol("is custom element"), Qi = /* @__PURE__ */ Symbol("is html"), eo = Ws ? "link" : "LINK";
2336
- function ir(e, t, n, r) {
2337
- var s = to(e);
2338
- I && (s[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === eo) || s[t] !== (s[t] = n) && (t === "loading" && (e[Bs] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && no(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
2335
+ const no = /* @__PURE__ */ Symbol("is custom element"), ro = /* @__PURE__ */ Symbol("is html"), so = Us ? "link" : "LINK";
2336
+ function or(e, t, n, r) {
2337
+ var s = io(e);
2338
+ S && (s[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === so) || s[t] !== (s[t] = n) && (t === "loading" && (e[qs] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && oo(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
2339
2339
  }
2340
- function to(e) {
2340
+ function io(e) {
2341
2341
  return (
2342
2342
  /** @type {Record<string | symbol, unknown>} **/
2343
2343
  // @ts-expect-error
2344
2344
  e.__attributes ?? (e.__attributes = {
2345
- [Zi]: e.nodeName.includes("-"),
2346
- [Qi]: e.namespaceURI === hr
2345
+ [no]: e.nodeName.includes("-"),
2346
+ [ro]: e.namespaceURI === pr
2347
2347
  })
2348
2348
  );
2349
2349
  }
2350
- var or = /* @__PURE__ */ new Map();
2351
- function no(e) {
2352
- var t = e.getAttribute("is") || e.nodeName, n = or.get(t);
2350
+ var lr = /* @__PURE__ */ new Map();
2351
+ function oo(e) {
2352
+ var t = e.getAttribute("is") || e.nodeName, n = lr.get(t);
2353
2353
  if (n) return n;
2354
- or.set(t, n = []);
2354
+ lr.set(t, n = []);
2355
2355
  for (var r, s = e, i = Element.prototype; i !== s; ) {
2356
- r = Os(s);
2356
+ r = zs(s);
2357
2357
  for (var o in r)
2358
2358
  r[o].set && n.push(o);
2359
- s = _r(s);
2359
+ s = mr(s);
2360
2360
  }
2361
2361
  return n;
2362
2362
  }
@@ -2382,20 +2382,20 @@ function ge(e, t, n, r) {
2382
2382
  );
2383
2383
  return (
2384
2384
  /** @type {() => V} */
2385
- (function(v, g) {
2385
+ (function(v, p) {
2386
2386
  if (arguments.length > 0) {
2387
- const d = g ? x(c) : v;
2388
- return M(c, d), f = !0, s !== void 0 && (s = d), v;
2387
+ const d = p ? E(c) : v;
2388
+ return C(c, d), f = !0, s !== void 0 && (s = d), v;
2389
2389
  }
2390
- return je && f || (h.f & ke) !== 0 ? c.v : x(c);
2390
+ return je && f || (h.f & ke) !== 0 ? c.v : E(c);
2391
2391
  })
2392
2392
  );
2393
2393
  }
2394
- function ro(e) {
2395
- return new so(e);
2394
+ function lo(e) {
2395
+ return new ao(e);
2396
2396
  }
2397
- var Ce, Z;
2398
- class so {
2397
+ var Ce, K;
2398
+ class ao {
2399
2399
  /**
2400
2400
  * @param {ComponentConstructorOptions & {
2401
2401
  * component: any;
@@ -2405,26 +2405,26 @@ class so {
2405
2405
  /** @type {any} */
2406
2406
  w(this, Ce);
2407
2407
  /** @type {Record<string, any>} */
2408
- w(this, Z);
2408
+ w(this, K);
2409
2409
  var n = /* @__PURE__ */ new Map(), r = (i, o) => {
2410
- var u = /* @__PURE__ */ yi(o, !1, !1);
2410
+ var u = /* @__PURE__ */ Ii(o, !1, !1);
2411
2411
  return n.set(i, u), u;
2412
2412
  };
2413
2413
  const s = new Proxy(
2414
2414
  { ...t.props || {}, $$events: {} },
2415
2415
  {
2416
2416
  get(i, o) {
2417
- return x(n.get(o) ?? r(o, Reflect.get(i, o)));
2417
+ return E(n.get(o) ?? r(o, Reflect.get(i, o)));
2418
2418
  },
2419
2419
  has(i, o) {
2420
- return o === Fs ? !0 : (x(n.get(o) ?? r(o, Reflect.get(i, o))), Reflect.has(i, o));
2420
+ return o === Ys ? !0 : (E(n.get(o) ?? r(o, Reflect.get(i, o))), Reflect.has(i, o));
2421
2421
  },
2422
2422
  set(i, o, u) {
2423
- return M(n.get(o) ?? r(o, u), u), Reflect.set(i, o, u);
2423
+ return C(n.get(o) ?? r(o, u), u), Reflect.set(i, o, u);
2424
2424
  }
2425
2425
  }
2426
2426
  );
2427
- m(this, Z, (t.hydrate ? Wi : ls)(t.component, {
2427
+ g(this, K, (t.hydrate ? Ui : fs)(t.component, {
2428
2428
  target: t.target,
2429
2429
  anchor: t.anchor,
2430
2430
  props: s,
@@ -2432,28 +2432,28 @@ class so {
2432
2432
  intro: t.intro ?? !1,
2433
2433
  recover: t.recover,
2434
2434
  transformError: t.transformError
2435
- })), (!t?.props?.$$host || t.sync === !1) && le(), m(this, Ce, s.$$events);
2436
- for (const i of Object.keys(l(this, Z)))
2437
- i === "$set" || i === "$destroy" || i === "$on" || Gt(this, i, {
2435
+ })), (!t?.props?.$$host || t.sync === !1) && oe(), g(this, Ce, s.$$events);
2436
+ for (const i of Object.keys(l(this, K)))
2437
+ i === "$set" || i === "$destroy" || i === "$on" || Jt(this, i, {
2438
2438
  get() {
2439
- return l(this, Z)[i];
2439
+ return l(this, K)[i];
2440
2440
  },
2441
2441
  /** @param {any} value */
2442
2442
  set(o) {
2443
- l(this, Z)[i] = o;
2443
+ l(this, K)[i] = o;
2444
2444
  },
2445
2445
  enumerable: !0
2446
2446
  });
2447
- l(this, Z).$set = /** @param {Record<string, any>} next */
2447
+ l(this, K).$set = /** @param {Record<string, any>} next */
2448
2448
  (i) => {
2449
2449
  Object.assign(s, i);
2450
- }, l(this, Z).$destroy = () => {
2451
- Vi(l(this, Z));
2450
+ }, l(this, K).$destroy = () => {
2451
+ Xi(l(this, K));
2452
2452
  };
2453
2453
  }
2454
2454
  /** @param {Record<string, any>} props */
2455
2455
  $set(t) {
2456
- l(this, Z).$set(t);
2456
+ l(this, K).$set(t);
2457
2457
  }
2458
2458
  /**
2459
2459
  * @param {string} event
@@ -2471,12 +2471,12 @@ class so {
2471
2471
  };
2472
2472
  }
2473
2473
  $destroy() {
2474
- l(this, Z).$destroy();
2474
+ l(this, K).$destroy();
2475
2475
  }
2476
2476
  }
2477
- Ce = new WeakMap(), Z = new WeakMap();
2478
- let cs;
2479
- typeof HTMLElement == "function" && (cs = class extends HTMLElement {
2477
+ Ce = new WeakMap(), K = new WeakMap();
2478
+ let vs;
2479
+ typeof HTMLElement == "function" && (vs = class extends HTMLElement {
2480
2480
  /**
2481
2481
  * @param {*} $$componentCtor
2482
2482
  * @param {*} $$slots
@@ -2485,27 +2485,27 @@ typeof HTMLElement == "function" && (cs = class extends HTMLElement {
2485
2485
  constructor(t, n, r) {
2486
2486
  super();
2487
2487
  /** The Svelte component constructor */
2488
- k(this, "$$ctor");
2488
+ T(this, "$$ctor");
2489
2489
  /** Slots */
2490
- k(this, "$$s");
2490
+ T(this, "$$s");
2491
2491
  /** @type {any} The Svelte component instance */
2492
- k(this, "$$c");
2492
+ T(this, "$$c");
2493
2493
  /** Whether or not the custom element is connected */
2494
- k(this, "$$cn", !1);
2494
+ T(this, "$$cn", !1);
2495
2495
  /** @type {Record<string, any>} Component props data */
2496
- k(this, "$$d", {});
2496
+ T(this, "$$d", {});
2497
2497
  /** `true` if currently in the process of reflecting component props back to attributes */
2498
- k(this, "$$r", !1);
2498
+ T(this, "$$r", !1);
2499
2499
  /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
2500
- k(this, "$$p_d", {});
2500
+ T(this, "$$p_d", {});
2501
2501
  /** @type {Record<string, EventListenerOrEventListenerObject[]>} Event listeners */
2502
- k(this, "$$l", {});
2502
+ T(this, "$$l", {});
2503
2503
  /** @type {Map<EventListenerOrEventListenerObject, Function>} Event listener unsubscribe functions */
2504
- k(this, "$$l_u", /* @__PURE__ */ new Map());
2504
+ T(this, "$$l_u", /* @__PURE__ */ new Map());
2505
2505
  /** @type {any} The managed render effect for reflecting attributes */
2506
- k(this, "$$me");
2506
+ T(this, "$$me");
2507
2507
  /** @type {ShadowRoot | null} The ShadowRoot of the custom element */
2508
- k(this, "$$shadowRoot", null);
2508
+ T(this, "$$shadowRoot", null);
2509
2509
  this.$$ctor = t, this.$$s = n, r && (this.$$shadowRoot = this.attachShadow(r));
2510
2510
  }
2511
2511
  /**
@@ -2541,7 +2541,7 @@ typeof HTMLElement == "function" && (cs = class extends HTMLElement {
2541
2541
  };
2542
2542
  if (await Promise.resolve(), !this.$$cn || this.$$c)
2543
2543
  return;
2544
- const n = {}, r = io(this);
2544
+ const n = {}, r = uo(this);
2545
2545
  for (const s of this.$$s)
2546
2546
  s in r && (s === "default" && !this.$$d.children ? (this.$$d.children = t(s), n.default = !0) : n[s] = t(s));
2547
2547
  for (const s of this.attributes) {
@@ -2550,7 +2550,7 @@ typeof HTMLElement == "function" && (cs = class extends HTMLElement {
2550
2550
  }
2551
2551
  for (const s in this.$$p_d)
2552
2552
  !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
2553
- this.$$c = ro({
2553
+ this.$$c = lo({
2554
2554
  component: this.$$ctor,
2555
2555
  target: this.$$shadowRoot || this,
2556
2556
  props: {
@@ -2558,10 +2558,10 @@ typeof HTMLElement == "function" && (cs = class extends HTMLElement {
2558
2558
  $$slots: n,
2559
2559
  $$host: this
2560
2560
  }
2561
- }), this.$$me = ki(() => {
2562
- Wr(() => {
2561
+ }), this.$$me = Ri(() => {
2562
+ qr(() => {
2563
2563
  this.$$r = !0;
2564
- for (const s of Kt(this.$$c)) {
2564
+ for (const s of Gt(this.$$c)) {
2565
2565
  if (!this.$$p_d[s]?.reflect) continue;
2566
2566
  this.$$d[s] = this.$$c[s];
2567
2567
  const i = Xt(
@@ -2602,7 +2602,7 @@ typeof HTMLElement == "function" && (cs = class extends HTMLElement {
2602
2602
  * @param {string} attribute_name
2603
2603
  */
2604
2604
  $$g_p(t) {
2605
- return Kt(this.$$p_d).find(
2605
+ return Gt(this.$$p_d).find(
2606
2606
  (n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
2607
2607
  ) || t;
2608
2608
  }
@@ -2637,7 +2637,7 @@ function Xt(e, t, n, r) {
2637
2637
  return t;
2638
2638
  }
2639
2639
  }
2640
- function io(e) {
2640
+ function uo(e) {
2641
2641
  const t = {};
2642
2642
  return e.childNodes.forEach((n) => {
2643
2643
  t[
@@ -2646,19 +2646,19 @@ function io(e) {
2646
2646
  ] = !0;
2647
2647
  }), t;
2648
2648
  }
2649
- function jn(e, t, n, r, s, i) {
2650
- let o = class extends cs {
2649
+ function Fn(e, t, n, r, s, i) {
2650
+ let o = class extends vs {
2651
2651
  constructor() {
2652
2652
  super(e, n, s), this.$$p_d = t;
2653
2653
  }
2654
2654
  static get observedAttributes() {
2655
- return Kt(t).map(
2655
+ return Gt(t).map(
2656
2656
  (u) => (t[u].attribute || u).toLowerCase()
2657
2657
  );
2658
2658
  }
2659
2659
  };
2660
- return Kt(t).forEach((u) => {
2661
- Gt(o.prototype, u, {
2660
+ return Gt(t).forEach((u) => {
2661
+ Jt(o.prototype, u, {
2662
2662
  get() {
2663
2663
  return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
2664
2664
  },
@@ -2672,7 +2672,7 @@ function jn(e, t, n, r, s, i) {
2672
2672
  }
2673
2673
  });
2674
2674
  }), r.forEach((u) => {
2675
- Gt(o.prototype, u, {
2675
+ Jt(o.prototype, u, {
2676
2676
  get() {
2677
2677
  return this.$$c?.[u];
2678
2678
  }
@@ -2680,8 +2680,8 @@ function jn(e, t, n, r, s, i) {
2680
2680
  }), e.element = /** @type {any} */
2681
2681
  o, o;
2682
2682
  }
2683
- var oo = /* @__PURE__ */ rt('<div role="button" tabindex="0" title="Resize window"><svg viewBox="0 0 16 16" fill="currentColor"><path d="M16 16V14H14V16H16Z"></path><path d="M16 11V9H14V11H16Z"></path><path d="M13 16V14H11V16H13Z"></path></svg></div>');
2684
- function ds(e, t) {
2683
+ var fo = /* @__PURE__ */ it('<div role="button" tabindex="0" title="Resize window"><svg viewBox="0 0 16 16" fill="currentColor"><path d="M16 16V14H14V16H16Z"></path><path d="M16 11V9H14V11H16Z"></path><path d="M13 16V14H11V16H13Z"></path></svg></div>');
2684
+ function _s(e, t) {
2685
2685
  ln(t, !0);
2686
2686
  let n = ge(t, "onPointerDown"), r = ge(t, "handleClass", 7, "absolute bottom-0 right-0 w-4 h-4 cursor-se-resize"), s = ge(t, "iconClass", 7, "w-full h-full text-base-content/30");
2687
2687
  var i = {
@@ -2689,21 +2689,21 @@ function ds(e, t) {
2689
2689
  return n();
2690
2690
  },
2691
2691
  set onPointerDown(a) {
2692
- n(a), le();
2692
+ n(a), oe();
2693
2693
  },
2694
2694
  get handleClass() {
2695
2695
  return r();
2696
2696
  },
2697
2697
  set handleClass(a = "absolute bottom-0 right-0 w-4 h-4 cursor-se-resize") {
2698
- r(a), le();
2698
+ r(a), oe();
2699
2699
  },
2700
2700
  get iconClass() {
2701
2701
  return s();
2702
2702
  },
2703
2703
  set iconClass(a = "w-full h-full text-base-content/30") {
2704
- s(a), le();
2704
+ s(a), oe();
2705
2705
  }
2706
- }, o = oo(), u = xe(o);
2706
+ }, o = fo(), u = xe(o);
2707
2707
  return ye(o), Rt(() => {
2708
2708
  en(o, 1, Qt(r())), en(u, 0, Qt(s()));
2709
2709
  }), Zt("mousedown", o, function(...a) {
@@ -2711,48 +2711,48 @@ function ds(e, t) {
2711
2711
  }), _e(e, o), an(i);
2712
2712
  }
2713
2713
  zn(["mousedown"]);
2714
- jn(ds, { onPointerDown: {}, handleClass: {}, iconClass: {} }, [], [], { mode: "open" });
2715
- var lo = /* @__PURE__ */ os('<svg xmlns="http://www.w3.org/2000/svg" class="pie-window-controls__icon svelte-dx0z4a" width="12" height="12" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 15l7-7 7 7"></path></svg>'), ao = /* @__PURE__ */ os('<svg xmlns="http://www.w3.org/2000/svg" class="pie-window-controls__icon svelte-dx0z4a" width="12" height="12" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path></svg>'), uo = /* @__PURE__ */ rt('<button><!></button> <button title="Close" aria-label="Close panel"><svg xmlns="http://www.w3.org/2000/svg" class="pie-window-controls__icon svelte-dx0z4a" width="12" height="12" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></button>', 1);
2716
- const fo = {
2714
+ Fn(_s, { onPointerDown: {}, handleClass: {}, iconClass: {} }, [], [], { mode: "open" });
2715
+ var co = /* @__PURE__ */ us('<svg xmlns="http://www.w3.org/2000/svg" class="pie-window-controls__icon svelte-dx0z4a" width="12" height="12" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 15l7-7 7 7"></path></svg>'), ho = /* @__PURE__ */ us('<svg xmlns="http://www.w3.org/2000/svg" class="pie-window-controls__icon svelte-dx0z4a" width="12" height="12" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path></svg>'), vo = /* @__PURE__ */ it('<button><!></button> <button title="Close" aria-label="Close panel"><svg xmlns="http://www.w3.org/2000/svg" class="pie-window-controls__icon svelte-dx0z4a" width="12" height="12" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></button>', 1);
2716
+ const _o = {
2717
2717
  hash: "svelte-dx0z4a",
2718
2718
  code: ".pie-window-controls__button.svelte-dx0z4a {display:inline-flex;align-items:center;justify-content:center;width:1.35rem;height:1.35rem;padding:0;border:1px solid rgba(148, 163, 184, 0.7);border-radius:9999px;background:rgba(255, 255, 255, 0.65);color:#334155;cursor:pointer;}.pie-window-controls__button.svelte-dx0z4a:hover {background:rgba(241, 245, 249, 0.95);}.pie-window-controls__button.svelte-dx0z4a:focus-visible {outline:2px solid #3b82f6;outline-offset:1px;}.pie-window-controls__icon.svelte-dx0z4a {display:block;}"
2719
2719
  };
2720
- function hs(e, t) {
2721
- ln(t, !0), us(e, fo);
2720
+ function ps(e, t) {
2721
+ ln(t, !0), ds(e, _o);
2722
2722
  let n = ge(t, "minimized", 7, !1), r = ge(t, "onToggle"), s = ge(t, "onClose"), i = ge(t, "buttonClass", 7, "");
2723
- const o = /* @__PURE__ */ Rr(() => (i() || "").trim() || "pie-window-controls__button");
2723
+ const o = /* @__PURE__ */ Dr(() => (i() || "").trim() || "pie-window-controls__button");
2724
2724
  var u = {
2725
2725
  get minimized() {
2726
2726
  return n();
2727
2727
  },
2728
2728
  set minimized(d = !1) {
2729
- n(d), le();
2729
+ n(d), oe();
2730
2730
  },
2731
2731
  get onToggle() {
2732
2732
  return r();
2733
2733
  },
2734
2734
  set onToggle(d) {
2735
- r(d), le();
2735
+ r(d), oe();
2736
2736
  },
2737
2737
  get onClose() {
2738
2738
  return s();
2739
2739
  },
2740
2740
  set onClose(d) {
2741
- s(d), le();
2741
+ s(d), oe();
2742
2742
  },
2743
2743
  get buttonClass() {
2744
2744
  return i();
2745
2745
  },
2746
2746
  set buttonClass(d = "") {
2747
- i(d), le();
2747
+ i(d), oe();
2748
2748
  }
2749
- }, a = uo(), f = Hr(a), c = xe(f);
2749
+ }, a = vo(), f = Wr(a), c = xe(f);
2750
2750
  {
2751
2751
  var h = (d) => {
2752
- var $ = lo();
2752
+ var $ = co();
2753
2753
  _e(d, $);
2754
2754
  }, v = (d) => {
2755
- var $ = ao();
2755
+ var $ = ho();
2756
2756
  _e(d, $);
2757
2757
  };
2758
2758
  Tt(c, (d) => {
@@ -2760,34 +2760,39 @@ function hs(e, t) {
2760
2760
  });
2761
2761
  }
2762
2762
  ye(f);
2763
- var g = Ve(f, 2);
2763
+ var p = Ye(f, 2);
2764
2764
  return Rt(() => {
2765
- en(f, 1, Qt(x(o)), "svelte-dx0z4a"), ir(f, "title", n() ? "Maximize" : "Minimize"), ir(f, "aria-label", n() ? "Maximize panel" : "Minimize panel"), en(g, 1, Qt(x(o)), "svelte-dx0z4a");
2765
+ en(f, 1, Qt(E(o)), "svelte-dx0z4a"), or(f, "title", n() ? "Maximize" : "Minimize"), or(f, "aria-label", n() ? "Maximize panel" : "Minimize panel"), en(p, 1, Qt(E(o)), "svelte-dx0z4a");
2766
2766
  }), Zt("click", f, function(...d) {
2767
2767
  r()?.apply(this, d);
2768
- }), Zt("click", g, function(...d) {
2768
+ }), Zt("click", p, function(...d) {
2769
2769
  s()?.apply(this, d);
2770
2770
  }), _e(e, a), an(u);
2771
2771
  }
2772
2772
  zn(["click"]);
2773
- jn(hs, { minimized: {}, onToggle: {}, onClose: {}, buttonClass: {} }, [], [], { mode: "open" });
2774
- var co = Object.defineProperty, ho = (e, t, n) => t in e ? co(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, lr = (e, t, n) => ho(e, typeof t != "symbol" ? t + "" : t, n), ar;
2775
- typeof window < "u" && ((ar = window.__svelte ?? (window.__svelte = {})).v ?? (ar.v = /* @__PURE__ */ new Set())).add("5");
2773
+ Fn(ps, { minimized: {}, onToggle: {}, onClose: {}, buttonClass: {} }, [], [], { mode: "open" });
2774
+ var po = Object.defineProperty, go = (e, t, n) => t in e ? po(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ar = (e, t, n) => go(e, typeof t != "symbol" ? t + "" : t, n), ur;
2775
+ typeof window < "u" && ((ur = window.__svelte ?? (window.__svelte = {})).v ?? (ur.v = /* @__PURE__ */ new Set())).add("5");
2776
2776
  new class extends Error {
2777
2777
  constructor() {
2778
- super(...arguments), lr(this, "name", "StaleReactionError"), lr(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
2778
+ super(...arguments), ar(this, "name", "StaleReactionError"), ar(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
2779
2779
  }
2780
2780
  }();
2781
- const vo = /* @__PURE__ */ new Set(), _o = /* @__PURE__ */ new Set();
2782
- function vs(e) {
2781
+ const mo = /* @__PURE__ */ new Set(), wo = /* @__PURE__ */ new Set();
2782
+ function gs(e) {
2783
2783
  for (var t = 0; t < e.length; t++)
2784
- vo.add(e[t]);
2785
- for (var n of _o)
2784
+ mo.add(e[t]);
2785
+ for (var n of wo)
2786
2786
  n(e);
2787
2787
  }
2788
- vs(["click"]);
2789
- vs(["mousedown"]);
2790
- function po(e, t) {
2788
+ gs(["click"]);
2789
+ gs(["mousedown"]);
2790
+ const bo = 9999, fr = "__pieFloatingPanelZIndex";
2791
+ function cr() {
2792
+ const e = globalThis, t = e[fr], n = (typeof t == "number" && Number.isFinite(t) ? t : bo) + 1;
2793
+ return e[fr] = n, n;
2794
+ }
2795
+ function yo(e, t) {
2791
2796
  const n = (f, c, h) => Math.max(c, Math.min(f, h)), r = n(
2792
2797
  Math.round(e.width * t.widthRatio),
2793
2798
  t.minWidth,
@@ -2799,80 +2804,80 @@ function po(e, t) {
2799
2804
  ), i = t.paddingX ?? 16, o = t.paddingY, u = i, a = Math.max(o, Math.round((e.height - s) / 2));
2800
2805
  return { x: u, y: a, width: r, height: s };
2801
2806
  }
2802
- function go(e) {
2807
+ function $o(e) {
2803
2808
  const t = e.padding ?? 0;
2804
2809
  let n = !1, r = !1, s = 0, i = 0, o = 0, u = 0, a = 0, f = 0, c = 0, h = 0;
2805
- const v = (p) => {
2810
+ const v = (m) => {
2806
2811
  if (!n) return;
2807
- const S = e.getState(), Y = p.clientX - s, G = p.clientY - i, Be = Math.max(t, window.innerWidth - S.width - t), st = Math.max(t, window.innerHeight - 100 - t);
2812
+ const x = e.getState(), Y = m.clientX - s, fe = m.clientY - i, Me = Math.max(t, window.innerWidth - x.width - t), We = Math.max(t, window.innerHeight - 100 - t);
2808
2813
  e.setState({
2809
- ...S,
2810
- x: Math.max(t, Math.min(o + Y, Be)),
2811
- y: Math.max(t, Math.min(u + G, st))
2814
+ ...x,
2815
+ x: Math.max(t, Math.min(o + Y, Me)),
2816
+ y: Math.max(t, Math.min(u + fe, We))
2812
2817
  });
2813
- }, g = (p) => {
2818
+ }, p = (m) => {
2814
2819
  if (!r) return;
2815
- const S = e.getState(), Y = p.clientX - a, G = p.clientY - f, Be = Math.max(
2820
+ const x = e.getState(), Y = m.clientX - a, fe = m.clientY - f, Me = Math.max(
2816
2821
  e.minWidth,
2817
- window.innerWidth - S.x - t
2818
- ), st = Math.max(
2822
+ window.innerWidth - x.x - t
2823
+ ), We = Math.max(
2819
2824
  e.minHeight,
2820
- window.innerHeight - S.y - t
2825
+ window.innerHeight - x.y - t
2821
2826
  );
2822
2827
  e.setState({
2823
- ...S,
2828
+ ...x,
2824
2829
  width: Math.max(
2825
2830
  e.minWidth,
2826
- Math.min(c + Y, Be)
2831
+ Math.min(c + Y, Me)
2827
2832
  ),
2828
2833
  height: Math.max(
2829
2834
  e.minHeight,
2830
- Math.min(h + G, st)
2835
+ Math.min(h + fe, We)
2831
2836
  )
2832
2837
  });
2833
2838
  }, d = () => {
2834
2839
  n = !1, document.removeEventListener("mousemove", v), document.removeEventListener("mouseup", d);
2835
2840
  }, $ = () => {
2836
- r = !1, document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", $);
2841
+ r = !1, document.removeEventListener("mousemove", p), document.removeEventListener("mouseup", $);
2837
2842
  };
2838
2843
  return {
2839
- startDrag(p) {
2840
- n = !0, s = p.clientX, i = p.clientY;
2841
- const S = e.getState();
2842
- o = S.x, u = S.y, document.addEventListener("mousemove", v), document.addEventListener("mouseup", d);
2844
+ startDrag(m) {
2845
+ e.onFocus?.(), n = !0, s = m.clientX, i = m.clientY;
2846
+ const x = e.getState();
2847
+ o = x.x, u = x.y, document.addEventListener("mousemove", v), document.addEventListener("mouseup", d);
2843
2848
  },
2844
- startResize(p) {
2845
- r = !0, a = p.clientX, f = p.clientY;
2846
- const S = e.getState();
2847
- c = S.width, h = S.height, document.addEventListener("mousemove", g), document.addEventListener("mouseup", $), p.preventDefault(), p.stopPropagation();
2849
+ startResize(m) {
2850
+ e.onFocus?.(), r = !0, a = m.clientX, f = m.clientY;
2851
+ const x = e.getState();
2852
+ c = x.width, h = x.height, document.addEventListener("mousemove", p), document.addEventListener("mouseup", $), m.preventDefault(), m.stopPropagation();
2848
2853
  },
2849
2854
  stop() {
2850
2855
  d(), $();
2851
2856
  }
2852
2857
  };
2853
2858
  }
2854
- function mo(e, t) {
2859
+ function xo(e, t) {
2855
2860
  return (e || void 0) === (t || void 0);
2856
2861
  }
2857
- function wo(e, t, n) {
2862
+ function Eo(e, t, n) {
2858
2863
  const r = e?.key?.sectionId || "", s = e?.key?.attemptId || void 0;
2859
- return r !== t ? !1 : mo(s, n);
2864
+ return r !== t ? !1 : xo(s, n);
2860
2865
  }
2861
- function bo(e, t, n) {
2866
+ function Io(e, t, n) {
2862
2867
  return !e?.getSectionController || !t ? null : e.getSectionController({
2863
2868
  sectionId: t,
2864
2869
  attemptId: n
2865
2870
  }) || null;
2866
2871
  }
2867
- var yo = /* @__PURE__ */ rt('<div class="pie-section-player-tools-session-debugger__alert pie-section-player-tools-session-debugger__alert--warning"><svg xmlns="http://www.w3.org/2000/svg" class="pie-section-player-tools-session-debugger__icon-md" fill="none" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01M5.07 19h13.86c1.54 0 2.5-1.67 1.73-3L13.73 4c-.77-1.33-2.69-1.33-3.46 0L3.34 16c-.77 1.33.19 3 1.73 3z"></path></svg> <span class="pie-section-player-tools-session-debugger__text-xs">Section controller not available for this section yet.</span></div>'), $o = /* @__PURE__ */ rt('<div class="pie-section-player-tools-session-debugger__alert pie-section-player-tools-session-debugger__alert--info"><svg xmlns="http://www.w3.org/2000/svg" class="pie-section-player-tools-session-debugger__icon-md" fill="none" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span class="pie-section-player-tools-session-debugger__text-xs">No section session data yet. Interact with the questions to see updates.</span></div>'), xo = /* @__PURE__ */ rt('<!> <div class="pie-section-player-tools-session-debugger__card"><div class="pie-section-player-tools-session-debugger__card-title">Item Sessions Snapshot</div> <pre class="pie-section-player-tools-session-debugger__card-pre"> </pre></div>', 1), Eo = /* @__PURE__ */ rt('<div class="pie-section-player-tools-session-debugger__content-shell svelte-10oyp9b"><div class="pie-section-player-tools-session-debugger__content"><div class="pie-section-player-tools-session-debugger__section-intro"><div class="pie-section-player-tools-session-debugger__heading">PIE Session Data (Persistent)</div></div> <!></div></div>'), So = /* @__PURE__ */ rt('<div class="pie-section-player-tools-session-debugger svelte-10oyp9b"><div class="pie-section-player-tools-session-debugger__header svelte-10oyp9b" role="button" tabindex="0" aria-label="Drag session panel"><div class="pie-section-player-tools-session-debugger__header-title svelte-10oyp9b"><svg xmlns="http://www.w3.org/2000/svg" class="pie-section-player-tools-session-debugger__icon-sm svelte-10oyp9b" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg> <h3 class="pie-section-player-tools-session-debugger__title svelte-10oyp9b">Session Data</h3></div> <div class="pie-section-player-tools-session-debugger__header-actions svelte-10oyp9b"><!></div></div> <!> <!></div>');
2868
- const Io = {
2872
+ var So = /* @__PURE__ */ it('<div class="pie-section-player-tools-session-debugger__alert pie-section-player-tools-session-debugger__alert--warning"><svg xmlns="http://www.w3.org/2000/svg" class="pie-section-player-tools-session-debugger__icon-md" fill="none" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01M5.07 19h13.86c1.54 0 2.5-1.67 1.73-3L13.73 4c-.77-1.33-2.69-1.33-3.46 0L3.34 16c-.77 1.33.19 3 1.73 3z"></path></svg> <span class="pie-section-player-tools-session-debugger__text-xs">Section controller not available for this section yet.</span></div>'), Co = /* @__PURE__ */ it('<div class="pie-section-player-tools-session-debugger__alert pie-section-player-tools-session-debugger__alert--info"><svg xmlns="http://www.w3.org/2000/svg" class="pie-section-player-tools-session-debugger__icon-md" fill="none" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span class="pie-section-player-tools-session-debugger__text-xs">No section session data yet. Interact with the questions to see updates.</span></div>'), ko = /* @__PURE__ */ it('<!> <div class="pie-section-player-tools-session-debugger__card"><div class="pie-section-player-tools-session-debugger__card-title">Item Sessions Snapshot</div> <pre class="pie-section-player-tools-session-debugger__card-pre"> </pre></div>', 1), To = /* @__PURE__ */ it('<div class="pie-section-player-tools-session-debugger__content-shell svelte-10oyp9b"><div class="pie-section-player-tools-session-debugger__content"><div class="pie-section-player-tools-session-debugger__section-intro"><div class="pie-section-player-tools-session-debugger__heading">PIE Session Data (Persistent)</div></div> <!></div></div>'), Ao = /* @__PURE__ */ it('<div class="pie-section-player-tools-session-debugger svelte-10oyp9b"><div class="pie-section-player-tools-session-debugger__header svelte-10oyp9b" role="button" tabindex="0" aria-label="Drag session panel"><div class="pie-section-player-tools-session-debugger__header-title svelte-10oyp9b"><svg xmlns="http://www.w3.org/2000/svg" class="pie-section-player-tools-session-debugger__icon-sm svelte-10oyp9b" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg> <h3 class="pie-section-player-tools-session-debugger__title svelte-10oyp9b">Session Data</h3></div> <div class="pie-section-player-tools-session-debugger__header-actions svelte-10oyp9b"><!></div></div> <!> <!></div>');
2873
+ const Mo = {
2869
2874
  hash: "svelte-10oyp9b",
2870
2875
  code: ".pie-section-player-tools-session-debugger.svelte-10oyp9b {position:fixed;z-index:9999;background:var(--color-base-100, #fff);color:var(--color-base-content, #1f2937);border:2px solid var(--color-base-300, #d1d5db);border-radius:8px;box-shadow:0 25px 50px -12px rgba(0, 0, 0, 0.25);overflow:hidden;font-family:var(--pie-font-family, Inter, system-ui, sans-serif);}.pie-section-player-tools-session-debugger__header.svelte-10oyp9b {padding:8px 16px;display:flex;align-items:center;justify-content:space-between;background:var(--color-base-200, #f3f4f6);cursor:move;user-select:none;border-bottom:1px solid var(--color-base-300, #d1d5db);}.pie-section-player-tools-session-debugger__header-title.svelte-10oyp9b {display:flex;align-items:center;gap:8px;}.pie-section-player-tools-session-debugger__icon-sm.svelte-10oyp9b {width:1rem;height:1rem;}.pie-section-player-tools-session-debugger__title.svelte-10oyp9b {margin:0;font-size:0.95rem;font-weight:700;}.pie-section-player-tools-session-debugger__header-actions.svelte-10oyp9b {display:flex;gap:4px;}.pie-section-player-tools-session-debugger__content-shell.svelte-10oyp9b {display:flex;flex-direction:column;min-height:0;}"
2871
2876
  };
2872
- function Co(e, t) {
2873
- ln(t, !0), us(e, Io);
2874
- const n = Xi();
2875
- let r = ge(t, "toolkitCoordinator", 7, null), s = ge(t, "sectionId", 7, ""), i = ge(t, "attemptId", 7, void 0), o = /* @__PURE__ */ z(!1), u = /* @__PURE__ */ z(24), a = /* @__PURE__ */ z(100), f = /* @__PURE__ */ z(220), c = /* @__PURE__ */ z(600), h = /* @__PURE__ */ z(lt({
2877
+ function Ro(e, t) {
2878
+ ln(t, !0), ds(e, Mo);
2879
+ const n = Zi();
2880
+ let r = ge(t, "toolkitCoordinator", 7, null), s = ge(t, "sectionId", 7, ""), i = ge(t, "attemptId", 7, void 0), o = /* @__PURE__ */ z(!1), u = /* @__PURE__ */ z(24), a = /* @__PURE__ */ z(100), f = /* @__PURE__ */ z(220), c = /* @__PURE__ */ z(600), h = /* @__PURE__ */ z(Xe(cr())), v = /* @__PURE__ */ z(Xe({
2876
2881
  currentItemIndex: null,
2877
2882
  currentItemId: null,
2878
2883
  visitedItemIdentifiers: [],
@@ -2885,9 +2890,9 @@ function Co(e, t) {
2885
2890
  updatedAt: null,
2886
2891
  lastChangedItemId: null,
2887
2892
  itemSessions: {}
2888
- })), v = null, g = null, d = /* @__PURE__ */ z(!1), $ = !1;
2889
- const p = { controller: null, sectionId: "", attemptId: void 0 };
2890
- function S(_) {
2893
+ })), p = null, d = null, $ = /* @__PURE__ */ z(!1), m = !1;
2894
+ const x = { controller: null, sectionId: "", attemptId: void 0 };
2895
+ function Y(_) {
2891
2896
  try {
2892
2897
  return structuredClone(_);
2893
2898
  } catch {
@@ -2898,53 +2903,53 @@ function Co(e, t) {
2898
2903
  }
2899
2904
  }
2900
2905
  }
2901
- function Y() {
2902
- return bo(r(), s(), i()) || void 0;
2906
+ function fe() {
2907
+ return Io(r(), s(), i()) || void 0;
2903
2908
  }
2904
- function G(_, re) {
2905
- const We = re || Y(), C = We?.getRuntimeState?.() || null, Ct = We?.getSession?.() || null;
2906
- M(d, !!We, !0), M(
2907
- h,
2909
+ function Me(_, ne) {
2910
+ const Ve = ne || fe(), k = Ve?.getRuntimeState?.() || null, Ct = Ve?.getSession?.() || null;
2911
+ C($, !!Ve, !0), C(
2912
+ v,
2908
2913
  {
2909
- currentItemIndex: typeof C?.currentItemIndex == "number" && C.currentItemIndex >= 0 ? C.currentItemIndex : null,
2910
- currentItemId: typeof C?.currentItemId == "string" && C.currentItemId ? C.currentItemId : null,
2911
- visitedItemIdentifiers: S(C?.visitedItemIdentifiers || []),
2912
- loadingComplete: C?.loadingComplete === !0,
2913
- totalRegistered: typeof C?.totalRegistered == "number" ? C.totalRegistered : 0,
2914
- totalLoaded: typeof C?.totalLoaded == "number" ? C.totalLoaded : 0,
2915
- itemsComplete: C?.itemsComplete === !0,
2916
- completedCount: typeof C?.completedCount == "number" ? C.completedCount : 0,
2917
- totalItems: typeof C?.totalItems == "number" ? C.totalItems : 0,
2914
+ currentItemIndex: typeof k?.currentItemIndex == "number" && k.currentItemIndex >= 0 ? k.currentItemIndex : null,
2915
+ currentItemId: typeof k?.currentItemId == "string" && k.currentItemId ? k.currentItemId : null,
2916
+ visitedItemIdentifiers: Y(k?.visitedItemIdentifiers || []),
2917
+ loadingComplete: k?.loadingComplete === !0,
2918
+ totalRegistered: typeof k?.totalRegistered == "number" ? k.totalRegistered : 0,
2919
+ totalLoaded: typeof k?.totalLoaded == "number" ? k.totalLoaded : 0,
2920
+ itemsComplete: k?.itemsComplete === !0,
2921
+ completedCount: typeof k?.completedCount == "number" ? k.completedCount : 0,
2922
+ totalItems: typeof k?.totalItems == "number" ? k.totalItems : 0,
2918
2923
  updatedAt: _?.updatedAt || Date.now(),
2919
2924
  lastChangedItemId: _?.itemId || null,
2920
- itemSessions: S(C?.itemSessions || Ct?.itemSessions || {})
2925
+ itemSessions: Y(k?.itemSessions || Ct?.itemSessions || {})
2921
2926
  },
2922
2927
  !0
2923
2928
  );
2924
2929
  }
2925
- function Be() {
2926
- v?.(), v = null, p.controller = null, p.sectionId = "", p.attemptId = void 0;
2930
+ function We() {
2931
+ p?.(), p = null, x.controller = null, x.sectionId = "", x.attemptId = void 0;
2927
2932
  }
2928
- function st() {
2929
- g?.(), g = null;
2933
+ function Hn() {
2934
+ d?.(), d = null;
2930
2935
  }
2931
- function Fn(_) {
2932
- G({
2936
+ function Bn(_) {
2937
+ Me({
2933
2938
  itemId: _?.itemId,
2934
2939
  updatedAt: _?.timestamp || Date.now()
2935
2940
  });
2936
2941
  }
2937
- function _s(_) {
2938
- Fn(_);
2942
+ function ms(_) {
2943
+ Bn(_);
2939
2944
  }
2940
- function ps(_) {
2941
- Fn(_);
2945
+ function ws(_) {
2946
+ Bn(_);
2942
2947
  }
2943
- function Bn() {
2944
- const _ = Y() || null;
2948
+ function Wn() {
2949
+ const _ = fe() || null;
2945
2950
  if (!_) {
2946
- Be(), M(d, !1), M(
2947
- h,
2951
+ We(), C($, !1), C(
2952
+ v,
2948
2953
  {
2949
2954
  currentItemIndex: null,
2950
2955
  currentItemId: null,
@@ -2963,39 +2968,39 @@ function Co(e, t) {
2963
2968
  );
2964
2969
  return;
2965
2970
  }
2966
- const re = i() || void 0;
2967
- if (p.controller === _ && p.sectionId === s() && p.attemptId === re && v) {
2968
- G(void 0, _);
2971
+ const ne = i() || void 0;
2972
+ if (x.controller === _ && x.sectionId === s() && x.attemptId === ne && p) {
2973
+ Me(void 0, _);
2969
2974
  return;
2970
2975
  }
2971
- Be();
2972
- const C = r()?.subscribeItemEvents?.({
2976
+ We();
2977
+ const k = r()?.subscribeItemEvents?.({
2973
2978
  sectionId: s(),
2974
2979
  attemptId: i(),
2975
- listener: _s
2980
+ listener: ms
2976
2981
  }) || null, Ct = r()?.subscribeSectionLifecycleEvents?.({
2977
2982
  sectionId: s(),
2978
2983
  attemptId: i(),
2979
- listener: ps
2984
+ listener: ws
2980
2985
  }) || null;
2981
- v = () => {
2982
- C?.(), Ct?.();
2983
- }, p.controller = _, p.sectionId = s(), p.attemptId = re, G(void 0, _);
2986
+ p = () => {
2987
+ k?.(), Ct?.();
2988
+ }, x.controller = _, x.sectionId = s(), x.attemptId = ne, Me(void 0, _);
2984
2989
  }
2985
- function gs() {
2986
- $ || ($ = !0, queueMicrotask(() => {
2987
- $ = !1, Bn();
2990
+ function bs() {
2991
+ m || (m = !0, queueMicrotask(() => {
2992
+ m = !1, Wn();
2988
2993
  }));
2989
2994
  }
2990
- Sn(() => {
2995
+ In(() => {
2991
2996
  if (!(!r() || !s()))
2992
- return Bn(), st(), g = r().onSectionControllerLifecycle?.((_) => {
2993
- wo(_, s(), i()) && (gs(), G({ updatedAt: Date.now() }));
2997
+ return Wn(), Hn(), d = r().onSectionControllerLifecycle?.((_) => {
2998
+ Eo(_, s(), i()) && (bs(), Me({ updatedAt: Date.now() }));
2994
2999
  }) || null, () => {
2995
- Be(), st();
3000
+ We(), Hn();
2996
3001
  };
2997
- }), qi(() => {
2998
- const _ = po({ width: window.innerWidth, height: window.innerHeight }, {
3002
+ }), Ji(() => {
3003
+ const _ = yo({ width: window.innerWidth, height: window.innerHeight }, {
2999
3004
  widthRatio: 0.29,
3000
3005
  heightRatio: 0.72,
3001
3006
  minWidth: 280,
@@ -3005,99 +3010,103 @@ function Co(e, t) {
3005
3010
  paddingX: 16,
3006
3011
  paddingY: 16
3007
3012
  });
3008
- M(u, _.x, !0), M(a, _.y, !0), M(f, _.width, !0), M(c, _.height, !0);
3013
+ C(u, _.x, !0), C(a, _.y, !0), C(f, _.width, !0), C(c, _.height, !0);
3009
3014
  });
3010
- const fn = go({
3015
+ function ys() {
3016
+ C(h, cr(), !0);
3017
+ }
3018
+ const fn = $o({
3011
3019
  getState: () => ({
3012
- x: x(u),
3013
- y: x(a),
3014
- width: x(f),
3015
- height: x(c)
3020
+ x: E(u),
3021
+ y: E(a),
3022
+ width: E(f),
3023
+ height: E(c)
3016
3024
  }),
3017
3025
  setState: (_) => {
3018
- M(u, _.x, !0), M(a, _.y, !0), M(f, _.width, !0), M(c, _.height, !0);
3026
+ C(u, _.x, !0), C(a, _.y, !0), C(f, _.width, !0), C(c, _.height, !0);
3019
3027
  },
3020
3028
  minWidth: 300,
3021
- minHeight: 200
3029
+ minHeight: 200,
3030
+ onFocus: ys
3022
3031
  });
3023
- Sn(() => () => {
3032
+ In(() => () => {
3024
3033
  fn.stop();
3025
3034
  });
3026
- var ms = {
3035
+ var $s = {
3027
3036
  get toolkitCoordinator() {
3028
3037
  return r();
3029
3038
  },
3030
3039
  set toolkitCoordinator(_ = null) {
3031
- r(_), le();
3040
+ r(_), oe();
3032
3041
  },
3033
3042
  get sectionId() {
3034
3043
  return s();
3035
3044
  },
3036
3045
  set sectionId(_ = "") {
3037
- s(_), le();
3046
+ s(_), oe();
3038
3047
  },
3039
3048
  get attemptId() {
3040
3049
  return i();
3041
3050
  },
3042
3051
  set attemptId(_ = void 0) {
3043
- i(_), le();
3052
+ i(_), oe();
3044
3053
  }
3045
- }, Ht = So(), Ft = xe(Ht), Wn = Ve(xe(Ft), 2), ws = xe(Wn);
3046
- hs(ws, {
3054
+ }, jt = Ao(), Ht = xe(jt), Vn = Ye(xe(Ht), 2), xs = xe(Vn);
3055
+ ps(xs, {
3047
3056
  get minimized() {
3048
- return x(o);
3057
+ return E(o);
3049
3058
  },
3050
- onToggle: () => M(o, !x(o)),
3059
+ onToggle: () => C(o, !E(o)),
3051
3060
  onClose: () => n("close")
3052
- }), ye(Wn), ye(Ft);
3053
- var Vn = Ve(Ft, 2);
3061
+ }), ye(Vn), ye(Ht);
3062
+ var Yn = Ye(Ht, 2);
3054
3063
  {
3055
- var bs = (_) => {
3056
- var re = Eo(), We = xe(re), C = Ve(xe(We), 2);
3064
+ var Es = (_) => {
3065
+ var ne = To(), Ve = xe(ne), k = Ye(xe(Ve), 2);
3057
3066
  {
3058
- var Ct = (it) => {
3059
- var Bt = yo();
3060
- _e(it, Bt);
3061
- }, xs = (it) => {
3062
- var Bt = xo(), Yn = Hr(Bt);
3067
+ var Ct = (ot) => {
3068
+ var Bt = So();
3069
+ _e(ot, Bt);
3070
+ }, Cs = (ot) => {
3071
+ var Bt = ko(), qn = Wr(Bt);
3063
3072
  {
3064
- var Es = (kt) => {
3065
- var Cs = $o();
3066
- _e(kt, Cs);
3067
- }, Ss = /* @__PURE__ */ Rr(() => Object.keys(x(h).itemSessions || {}).length === 0);
3068
- Tt(Yn, (kt) => {
3069
- x(Ss) && kt(Es);
3073
+ var ks = (kt) => {
3074
+ var Ms = Co();
3075
+ _e(kt, Ms);
3076
+ }, Ts = /* @__PURE__ */ Dr(() => Object.keys(E(v).itemSessions || {}).length === 0);
3077
+ Tt(qn, (kt) => {
3078
+ E(Ts) && kt(ks);
3070
3079
  });
3071
3080
  }
3072
- var qn = Ve(Yn, 2), Un = Ve(xe(qn), 2), Is = xe(Un, !0);
3073
- ye(Un), ye(qn), Rt((kt) => Bi(Is, kt), [() => JSON.stringify(x(h), null, 2)]), _e(it, Bt);
3081
+ var Un = Ye(qn, 2), Xn = Ye(xe(Un), 2), As = xe(Xn, !0);
3082
+ ye(Xn), ye(Un), Rt((kt) => qi(As, kt), [() => JSON.stringify(E(v), null, 2)]), _e(ot, Bt);
3074
3083
  };
3075
- Tt(C, (it) => {
3076
- x(d) ? it(xs, -1) : it(Ct);
3084
+ Tt(k, (ot) => {
3085
+ E($) ? ot(Cs, -1) : ot(Ct);
3077
3086
  });
3078
3087
  }
3079
- ye(We), ye(re), Rt(() => sr(re, `height: ${x(c) - 50}px;`)), _e(_, re);
3088
+ ye(Ve), ye(ne), Rt(() => ir(ne, `height: ${E(c) - 50}px;`)), _e(_, ne);
3080
3089
  };
3081
- Tt(Vn, (_) => {
3082
- x(o) || _(bs);
3090
+ Tt(Yn, (_) => {
3091
+ E(o) || _(Es);
3083
3092
  });
3084
3093
  }
3085
- var ys = Ve(Vn, 2);
3094
+ var Is = Ye(Yn, 2);
3086
3095
  {
3087
- var $s = (_) => {
3088
- ds(_, {
3089
- onPointerDown: (re) => fn.startResize(re)
3096
+ var Ss = (_) => {
3097
+ _s(_, {
3098
+ onPointerDown: (ne) => fn.startResize(ne)
3090
3099
  });
3091
3100
  };
3092
- Tt(ys, (_) => {
3093
- x(o) || _($s);
3101
+ Tt(Is, (_) => {
3102
+ E(o) || _(Ss);
3094
3103
  });
3095
3104
  }
3096
- return ye(Ht), Rt(() => sr(Ht, `left: ${x(u) ?? ""}px; top: ${x(a) ?? ""}px; width: ${x(f) ?? ""}px; ${x(o) ? "height: auto;" : `height: ${x(c)}px;`}`)), Zt("mousedown", Ft, (_) => fn.startDrag(_)), _e(e, Ht), an(ms);
3105
+ return ye(jt), Rt(() => ir(jt, `left: ${E(u) ?? ""}px; top: ${E(a) ?? ""}px; width: ${E(f) ?? ""}px; z-index: ${E(h) ?? ""}; ${E(o) ? "height: auto;" : `height: ${E(c)}px;`}`)), Zt("mousedown", Ht, (_) => fn.startDrag(_)), _e(e, jt), an($s);
3097
3106
  }
3098
3107
  zn(["mousedown"]);
3099
- customElements.define("pie-section-player-tools-session-debugger", jn(
3100
- Co,
3108
+ customElements.define("pie-section-player-tools-session-debugger", Fn(
3109
+ Ro,
3101
3110
  {
3102
3111
  sectionId: { attribute: "section-id", type: "String" },
3103
3112
  attemptId: { attribute: "attempt-id", type: "String" },
@@ -3107,5 +3116,5 @@ customElements.define("pie-section-player-tools-session-debugger", jn(
3107
3116
  []
3108
3117
  ));
3109
3118
  export {
3110
- Co as default
3119
+ Ro as default
3111
3120
  };