@pie-players/pie-section-player-tools-session-debugger 0.3.4 → 0.3.7

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