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

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