@pie-players/pie-tool-periodic-table 0.3.65 → 0.3.66

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.
@@ -3,12 +3,12 @@ if (typeof window < "u") {
3
3
  ((bn = (wn = window).__svelte ?? (wn.__svelte = {})).v ?? (bn.v = /* @__PURE__ */ new Set())).add("5");
4
4
  }
5
5
  var _t = {}, B = /* @__PURE__ */ Symbol("uninitialized");
6
- var Kn = Array.isArray, Jo = Array.prototype.indexOf, oi = Array.prototype.includes, gi = Array.from, ri = Object.keys, si = Object.defineProperty, Ye = Object.getOwnPropertyDescriptor, Yo = Object.getOwnPropertyDescriptors, Vo = Object.prototype, Zo = Array.prototype, Xn = Object.getPrototypeOf, kn = Object.isExtensible, Qo = () => {
6
+ var Fn = Array.isArray, Uo = Array.prototype.indexOf, ri = Array.prototype.includes, bi = Array.from, si = Object.keys, ai = Object.defineProperty, Ye = Object.getOwnPropertyDescriptor, Jo = Object.getOwnPropertyDescriptors, Yo = Object.prototype, Vo = Array.prototype, Kn = Object.getPrototypeOf, kn = Object.isExtensible, Zo = () => {
7
7
  };
8
- function er(e) {
8
+ function Qo(e) {
9
9
  for (var t = 0; t < e.length; t++) e[t]();
10
10
  }
11
- function qn() {
11
+ function Xn() {
12
12
  var e, t;
13
13
  return {
14
14
  promise: new Promise((i, n) => {
@@ -26,7 +26,7 @@ function Rt(e) {
26
26
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
27
27
  }, Rt(e);
28
28
  }
29
- function tr(e, t) {
29
+ function er(e, t) {
30
30
  if (Rt(e) != "object" || !e) return e;
31
31
  var i = e[Symbol.toPrimitive];
32
32
  if (i !== void 0) {
@@ -36,28 +36,28 @@ function tr(e, t) {
36
36
  }
37
37
  return (t === "string" ? String : Number)(e);
38
38
  }
39
- function ir(e) {
40
- var t = tr(e, "string");
39
+ function tr(e) {
40
+ var t = er(e, "string");
41
41
  return Rt(t) == "symbol" ? t : t + "";
42
42
  }
43
43
  function N(e, t, i) {
44
- return (t = ir(t)) in e ? Object.defineProperty(e, t, {
44
+ return (t = tr(t)) in e ? Object.defineProperty(e, t, {
45
45
  value: i,
46
46
  enumerable: !0,
47
47
  configurable: !0,
48
48
  writable: !0
49
49
  }) : e[t] = i, e;
50
50
  }
51
- var Ks = 1 << 24, ae = 1024, ne = 2048, rt = 4096, Zi = 8192, nr = 16384, Qi = 32768, xn = 1 << 25, en = 65536, Xs = 1 << 17, qs = 1 << 18, gt = 1 << 19, or = 1 << 20, Mt = 1 << 25, Lt = 65536, Sn = 1 << 21, rr = 1 << 22, ai = 1 << 23, Qt = /* @__PURE__ */ Symbol("$state"), Un = /* @__PURE__ */ Symbol("legacy props"), sr = /* @__PURE__ */ Symbol(""), ar = /* @__PURE__ */ Symbol("proxy path"), Wi = /* @__PURE__ */ Symbol("attributes"), Ii = /* @__PURE__ */ Symbol("class"), Bi = /* @__PURE__ */ Symbol("style"), ei = /* @__PURE__ */ Symbol("text");
51
+ var Ks = 1 << 24, ae = 1024, ne = 2048, rt = 4096, Qi = 8192, ir = 16384, en = 32768, xn = 1 << 25, tn = 65536, Xs = 1 << 17, qs = 1 << 18, gt = 1 << 19, nr = 1 << 20, jt = 1 << 25, Lt = 65536, Sn = 1 << 21, or = 1 << 22, li = 1 << 23, ei = /* @__PURE__ */ Symbol("$state"), qn = /* @__PURE__ */ Symbol("legacy props"), rr = /* @__PURE__ */ Symbol(""), sr = /* @__PURE__ */ Symbol("proxy path"), Ii = /* @__PURE__ */ Symbol("attributes"), Bi = /* @__PURE__ */ Symbol("class"), Hi = /* @__PURE__ */ Symbol("style"), ti = /* @__PURE__ */ Symbol("text");
52
52
  var Ot = new class extends Error {
53
53
  constructor(...t) {
54
54
  super(...t), N(this, "name", "StaleReactionError"), N(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
55
55
  }
56
- }(), lr = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
57
- function cr() {
56
+ }(), ar = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
57
+ function lr() {
58
58
  throw new Error("https://svelte.dev/e/async_derived_orphan");
59
59
  }
60
- function ur(e, t, i) {
60
+ function cr(e, t, i) {
61
61
  throw new Error("https://svelte.dev/e/each_key_duplicate");
62
62
  }
63
63
  function fr() {
@@ -66,57 +66,57 @@ function fr() {
66
66
  function dr() {
67
67
  throw new Error("https://svelte.dev/e/hydration_failed");
68
68
  }
69
- function pr(e) {
69
+ function ur(e) {
70
70
  throw new Error("https://svelte.dev/e/props_invalid_value");
71
71
  }
72
- function _r() {
72
+ function pr() {
73
73
  throw new Error("https://svelte.dev/e/state_descriptors_fixed");
74
74
  }
75
- function mr() {
75
+ function _r() {
76
76
  throw new Error("https://svelte.dev/e/state_prototype_fixed");
77
77
  }
78
78
  function hr() {
79
79
  throw new Error("https://svelte.dev/e/state_unsafe_mutation");
80
80
  }
81
- function vr() {
81
+ function mr() {
82
82
  throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
83
83
  }
84
- function yr() {
84
+ function vr() {
85
85
  console.warn("https://svelte.dev/e/derived_inert");
86
86
  }
87
- function bi(e) {
87
+ function wi(e) {
88
88
  console.warn("https://svelte.dev/e/hydration_mismatch");
89
89
  }
90
- function gr() {
90
+ function yr() {
91
91
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
92
92
  }
93
- var M = !1;
94
- function Te(e) {
95
- M = e;
93
+ var j = !1;
94
+ function Me(e) {
95
+ j = e;
96
96
  }
97
97
  var z;
98
98
  function Y(e) {
99
99
  if (e === null)
100
- throw bi(), _t;
100
+ throw wi(), _t;
101
101
  return z = e;
102
102
  }
103
- function wi() {
103
+ function ki() {
104
104
  return Y(/* @__PURE__ */ Ee(z));
105
105
  }
106
- function j(e) {
107
- if (M) {
106
+ function T(e) {
107
+ if (j) {
108
108
  if (/* @__PURE__ */ Ee(z) !== null)
109
- throw bi(), _t;
109
+ throw wi(), _t;
110
110
  z = e;
111
111
  }
112
112
  }
113
- function br(e = 1) {
114
- if (M) {
113
+ function gr(e = 1) {
114
+ if (j) {
115
115
  for (var t = e, i = z; t--; ) i = /* @__PURE__ */ Ee(i);
116
116
  z = i;
117
117
  }
118
118
  }
119
- function li(e = !0) {
119
+ function ci(e = !0) {
120
120
  for (var t = 0, i = z; ; ) {
121
121
  if (i.nodeType === 8) {
122
122
  var n = i.data;
@@ -129,32 +129,32 @@ function li(e = !0) {
129
129
  e && i.remove(), i = o;
130
130
  }
131
131
  }
132
- function Jn(e) {
132
+ function Un(e) {
133
133
  if (!e || e.nodeType !== 8)
134
- throw bi(), _t;
134
+ throw wi(), _t;
135
135
  return e.data;
136
136
  }
137
- function Yn(e) {
137
+ function Jn(e) {
138
138
  return e === this.v;
139
139
  }
140
- function wr(e, t) {
140
+ function br(e, t) {
141
141
  return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
142
142
  }
143
- function Vn(e) {
144
- return !wr(e, this.v);
143
+ function Yn(e) {
144
+ return !br(e, this.v);
145
145
  }
146
- var Re = !1, ki = !1;
146
+ var Re = !1, xi = !1;
147
147
  function $n(e, t) {
148
- return e.label = t, kr(e.v, t), e;
148
+ return e.label = t, wr(e.v, t), e;
149
149
  }
150
- function kr(e, t) {
151
- return e?.[ar]?.(t), e;
150
+ function wr(e, t) {
151
+ return e?.[sr]?.(t), e;
152
152
  }
153
153
  var X = null;
154
- function mt(e) {
154
+ function ht(e) {
155
155
  X = e;
156
156
  }
157
- function Zn(e, t = !1, i) {
157
+ function Vn(e, t = !1, i) {
158
158
  X = {
159
159
  p: X,
160
160
  i: !1,
@@ -163,14 +163,14 @@ function Zn(e, t = !1, i) {
163
163
  s: e,
164
164
  x: null,
165
165
  r: $,
166
- l: ki && !t ? {
166
+ l: xi && !t ? {
167
167
  s: null,
168
168
  u: null,
169
169
  $: []
170
170
  } : null
171
171
  };
172
172
  }
173
- function Qn(e) {
173
+ function Zn(e) {
174
174
  var t = X, i = t.e;
175
175
  if (i !== null) {
176
176
  t.e = null;
@@ -179,29 +179,29 @@ function Qn(e) {
179
179
  return e !== void 0 && (t.x = e), t.i = !0, X = t.p, e ?? {};
180
180
  }
181
181
  function Wt() {
182
- return !ki || X !== null && X.l === null;
182
+ return !xi || X !== null && X.l === null;
183
183
  }
184
184
  var Xe = [];
185
- function eo() {
185
+ function Qn() {
186
186
  var e = Xe;
187
- Xe = [], er(e);
187
+ Xe = [], Qo(e);
188
188
  }
189
189
  function Ie(e) {
190
- if (Xe.length === 0 && !Tt) {
190
+ if (Xe.length === 0 && !Mt) {
191
191
  var t = Xe;
192
192
  queueMicrotask(() => {
193
- t === Xe && eo();
193
+ t === Xe && Qn();
194
194
  });
195
195
  }
196
196
  Xe.push(e);
197
197
  }
198
- function xr() {
199
- for (; Xe.length > 0; ) eo();
198
+ function kr() {
199
+ for (; Xe.length > 0; ) Qn();
200
200
  }
201
- function to(e) {
201
+ function eo(e) {
202
202
  var t = $;
203
203
  if (t === null)
204
- return E.f |= ai, e;
204
+ return E.f |= li, e;
205
205
  if ((t.f & 32768) === 0 && (t.f & 4) === 0)
206
206
  throw e;
207
207
  Oe(e, t);
@@ -223,31 +223,31 @@ function Oe(e, t) {
223
223
  throw e;
224
224
  }
225
225
  }
226
- var Sr = ~(ne | rt | ae);
226
+ var xr = ~(ne | rt | ae);
227
227
  function P(e, t) {
228
- e.f = e.f & Sr | t;
228
+ e.f = e.f & xr | t;
229
229
  }
230
- function tn(e) {
230
+ function nn(e) {
231
231
  (e.f & 512) !== 0 || e.deps === null ? P(e, ae) : P(e, rt);
232
232
  }
233
- function io(e) {
233
+ function to(e) {
234
234
  if (e !== null)
235
235
  for (const t of e)
236
- (t.f & 2) === 0 || (t.f & 65536) === 0 || (t.f ^= Lt, io(t.deps));
236
+ (t.f & 2) === 0 || (t.f & 65536) === 0 || (t.f ^= Lt, to(t.deps));
237
237
  }
238
- function no(e, t, i) {
239
- (e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && i.add(e), io(e.deps), P(e, ae);
238
+ function io(e, t, i) {
239
+ (e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && i.add(e), to(e.deps), P(e, ae);
240
240
  }
241
- var $r = !1, Ft = !1;
242
- function Ar(e) {
243
- var t = Ft;
241
+ var Sr = !1, Kt = !1;
242
+ function $r(e) {
243
+ var t = Kt;
244
244
  try {
245
- return Ft = !1, [e(), Ft];
245
+ return Kt = !1, [e(), Kt];
246
246
  } finally {
247
- Ft = t;
247
+ Kt = t;
248
248
  }
249
249
  }
250
- function xi(e) {
250
+ function Si(e) {
251
251
  var t = E, i = $;
252
252
  ce(null), Ae(null);
253
253
  try {
@@ -256,24 +256,24 @@ function xi(e) {
256
256
  ce(t), Ae(i);
257
257
  }
258
258
  }
259
- function Er(e) {
259
+ function Ar(e) {
260
260
  let t = 0, i = nt(0), n;
261
261
  return () => {
262
- fn() && (g(i), Eo(() => (t === 0 && (n = Io(() => e(() => jt(i)))), t += 1, () => {
262
+ un() && (g(i), Ao(() => (t === 0 && (n = Wo(() => e(() => Tt(i)))), t += 1, () => {
263
263
  Ie(() => {
264
- t -= 1, t === 0 && (n?.(), n = void 0, jt(i));
264
+ t -= 1, t === 0 && (n?.(), n = void 0, Tt(i));
265
265
  });
266
266
  })));
267
267
  };
268
268
  }
269
- function oo(e, t) {
269
+ function no(e, t) {
270
270
  if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
271
271
  }
272
- function nn(e, t) {
273
- oo(e, t), t.add(e);
272
+ function on(e, t) {
273
+ no(e, t), t.add(e);
274
274
  }
275
275
  function w(e, t, i) {
276
- oo(e, t), t.set(e, i);
276
+ no(e, t), t.set(e, i);
277
277
  }
278
278
  function k(e, t, i) {
279
279
  if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : i;
@@ -285,31 +285,31 @@ function b(e, t, i) {
285
285
  function s(e, t) {
286
286
  return e.get(k(e, t));
287
287
  }
288
- var zr = en | gt;
289
- function Mr(e, t, i, n) {
290
- new Tr(e, t, i, n);
288
+ var Er = tn | gt;
289
+ function zr(e, t, i, n) {
290
+ new jr(e, t, i, n);
291
291
  }
292
- var ye = /* @__PURE__ */ new WeakMap(), Hi = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), Ct = /* @__PURE__ */ new WeakMap(), se = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), he = /* @__PURE__ */ new WeakMap(), Ve = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap(), Kt = /* @__PURE__ */ new WeakMap(), Di = /* @__PURE__ */ new WeakMap(), Gi = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), An = /* @__PURE__ */ new WeakMap(), H = /* @__PURE__ */ new WeakSet(), Tr = class {
292
+ var ye = /* @__PURE__ */ new WeakMap(), Di = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), Ct = /* @__PURE__ */ new WeakMap(), se = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), me = /* @__PURE__ */ new WeakMap(), Ve = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap(), Xt = /* @__PURE__ */ new WeakMap(), Gi = /* @__PURE__ */ new WeakMap(), Fi = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), An = /* @__PURE__ */ new WeakMap(), H = /* @__PURE__ */ new WeakSet(), jr = class {
293
293
  constructor(e, t, i, n) {
294
- nn(this, H), N(this, "parent", void 0), N(this, "is_pending", !1), N(this, "transform_error", void 0), w(this, ye, void 0), w(this, Hi, M ? z : null), w(this, Se, void 0), w(this, Ct, void 0), w(this, se, void 0), w(this, $e, null), w(this, ie, null), w(this, he, null), w(this, Ve, null), w(this, ct, 0), w(this, Ze, 0), w(this, Kt, !1), w(this, Di, /* @__PURE__ */ new Set()), w(this, Gi, /* @__PURE__ */ new Set()), w(this, Ge, null), w(this, An, Er(() => (b(Ge, this, nt(s(ct, this))), () => {
294
+ on(this, H), N(this, "parent", void 0), N(this, "is_pending", !1), N(this, "transform_error", void 0), w(this, ye, void 0), w(this, Di, j ? z : null), w(this, Se, void 0), w(this, Ct, void 0), w(this, se, void 0), w(this, $e, null), w(this, ie, null), w(this, me, null), w(this, Ve, null), w(this, ct, 0), w(this, Ze, 0), w(this, Xt, !1), w(this, Gi, /* @__PURE__ */ new Set()), w(this, Fi, /* @__PURE__ */ new Set()), w(this, Ge, null), w(this, An, Ar(() => (b(Ge, this, nt(s(ct, this))), () => {
295
295
  b(Ge, this, null);
296
296
  }))), b(ye, this, e), b(Se, this, t), b(Ct, this, (o) => {
297
297
  var r = $;
298
298
  r.b = this, r.f |= 128, i(o);
299
- }), this.parent = $.b, this.transform_error = n ?? this.parent?.transform_error ?? ((o) => o), b(se, this, dn(() => {
300
- if (M) {
301
- const o = s(Hi, this);
302
- wi();
299
+ }), this.parent = $.b, this.transform_error = n ?? this.parent?.transform_error ?? ((o) => o), b(se, this, pn(() => {
300
+ if (j) {
301
+ const o = s(Di, this);
302
+ ki();
303
303
  const r = o.data === "[!";
304
304
  if (o.data.startsWith("[?")) {
305
305
  const a = JSON.parse(o.data.slice(2));
306
- k(H, this, Rr).call(this, a);
307
- } else r ? k(H, this, Cr).call(this) : k(H, this, jr).call(this);
308
- } else k(H, this, so).call(this);
309
- }, zr)), M && b(ye, this, z);
306
+ k(H, this, Tr).call(this, a);
307
+ } else r ? k(H, this, Rr).call(this) : k(H, this, Mr).call(this);
308
+ } else k(H, this, ro).call(this);
309
+ }, Er)), j && b(ye, this, z);
310
310
  }
311
311
  defer_effect(e) {
312
- no(e, s(Di, this), s(Gi, this));
312
+ io(e, s(Gi, this), s(Fi, this));
313
313
  }
314
314
  is_rendered() {
315
315
  return !this.is_pending && (!this.parent || this.parent.is_rendered());
@@ -318,8 +318,8 @@ var ye = /* @__PURE__ */ new WeakMap(), Hi = /* @__PURE__ */ new WeakMap(), Se =
318
318
  return !!s(Se, this).pending;
319
319
  }
320
320
  update_pending_count(e, t) {
321
- k(H, this, ao).call(this, e, t), b(ct, this, s(ct, this) + e), !(!s(Ge, this) || s(Kt, this)) && (b(Kt, this, !0), Ie(() => {
322
- b(Kt, this, !1), s(Ge, this) && vt(s(Ge, this), s(ct, this));
321
+ k(H, this, so).call(this, e, t), b(ct, this, s(ct, this) + e), !(!s(Ge, this) || s(Xt, this)) && (b(Xt, this, !0), Ie(() => {
322
+ b(Xt, this, !1), s(Ge, this) && vt(s(Ge, this), s(ct, this));
323
323
  }));
324
324
  }
325
325
  get_effect_pending() {
@@ -327,35 +327,35 @@ var ye = /* @__PURE__ */ new WeakMap(), Hi = /* @__PURE__ */ new WeakMap(), Se =
327
327
  }
328
328
  error(e) {
329
329
  if (!s(Se, this).onerror && !s(Se, this).failed) throw e;
330
- x?.is_fork ? (s($e, this) && x.skip_effect(s($e, this)), s(ie, this) && x.skip_effect(s(ie, this)), s(he, this) && x.skip_effect(s(he, this)), x.oncommit(() => {
330
+ x?.is_fork ? (s($e, this) && x.skip_effect(s($e, this)), s(ie, this) && x.skip_effect(s(ie, this)), s(me, this) && x.skip_effect(s(me, this)), x.oncommit(() => {
331
331
  k(H, this, En).call(this, e);
332
332
  })) : k(H, this, En).call(this, e);
333
333
  }
334
334
  };
335
- function jr() {
335
+ function Mr() {
336
336
  try {
337
337
  b($e, this, le(() => s(Ct, this).call(this, s(ye, this))));
338
338
  } catch (e) {
339
339
  this.error(e);
340
340
  }
341
341
  }
342
- function Rr(e) {
343
- const t = s(Se, this).failed, { reset: i, invoke_onerror: n } = k(H, this, ro).call(this, e);
344
- Ie(n), t && b(he, this, le(() => {
342
+ function Tr(e) {
343
+ const t = s(Se, this).failed, { reset: i, invoke_onerror: n } = k(H, this, oo).call(this, e);
344
+ Ie(n), t && b(me, this, le(() => {
345
345
  t(s(ye, this), () => e, () => i);
346
346
  }));
347
347
  }
348
- function ro(e) {
348
+ function oo(e) {
349
349
  var t = !1, i = !1;
350
350
  const n = () => {
351
351
  if (t) {
352
- gr();
352
+ yr();
353
353
  return;
354
354
  }
355
- t = !0, i && vr(), s(he, this) !== null && at(s(he, this), () => {
356
- b(he, this, null);
357
- }), k(H, this, rn).call(this, () => {
358
- k(H, this, so).call(this);
355
+ t = !0, i && mr(), s(me, this) !== null && at(s(me, this), () => {
356
+ b(me, this, null);
357
+ }), k(H, this, sn).call(this, () => {
358
+ k(H, this, ro).call(this);
359
359
  });
360
360
  };
361
361
  return {
@@ -369,61 +369,61 @@ function ro(e) {
369
369
  }
370
370
  };
371
371
  }
372
- function Cr() {
372
+ function Rr() {
373
373
  const e = s(Se, this).pending;
374
374
  e && (this.is_pending = !0, b(ie, this, le(() => e(s(ye, this)))), Ie(() => {
375
375
  var t = b(Ve, this, document.createDocumentFragment()), i = Q();
376
- t.append(i), b($e, this, k(H, this, rn).call(this, () => le(() => s(Ct, this).call(this, i)))), s(Ze, this) === 0 && (s(ye, this).before(t), b(Ve, this, null), at(s(ie, this), () => {
376
+ t.append(i), b($e, this, k(H, this, sn).call(this, () => le(() => s(Ct, this).call(this, i)))), s(Ze, this) === 0 && (s(ye, this).before(t), b(Ve, this, null), at(s(ie, this), () => {
377
377
  b(ie, this, null);
378
- }), k(H, this, on).call(this, x));
378
+ }), k(H, this, rn).call(this, x));
379
379
  }));
380
380
  }
381
- function so() {
381
+ function ro() {
382
382
  try {
383
383
  if (this.is_pending = this.has_pending_snippet(), b(Ze, this, 0), b(ct, this, 0), b($e, this, le(() => {
384
384
  s(Ct, this).call(this, s(ye, this));
385
385
  })), s(Ze, this) > 0) {
386
386
  var e = b(Ve, this, document.createDocumentFragment());
387
- _n(s($e, this), e);
387
+ hn(s($e, this), e);
388
388
  const t = s(Se, this).pending;
389
389
  b(ie, this, le(() => t(s(ye, this))));
390
- } else k(H, this, on).call(this, x);
390
+ } else k(H, this, rn).call(this, x);
391
391
  } catch (t) {
392
392
  this.error(t);
393
393
  }
394
394
  }
395
- function on(e) {
396
- this.is_pending = !1, e.transfer_effects(s(Di, this), s(Gi, this));
397
- }
398
395
  function rn(e) {
396
+ this.is_pending = !1, e.transfer_effects(s(Gi, this), s(Fi, this));
397
+ }
398
+ function sn(e) {
399
399
  var t = $, i = E, n = X;
400
- Ae(s(se, this)), ce(s(se, this)), mt(s(se, this).ctx);
400
+ Ae(s(se, this)), ce(s(se, this)), ht(s(se, this).ctx);
401
401
  try {
402
402
  return st.ensure(), e();
403
403
  } catch (o) {
404
- return to(o), null;
404
+ return eo(o), null;
405
405
  } finally {
406
- Ae(t), ce(i), mt(n);
406
+ Ae(t), ce(i), ht(n);
407
407
  }
408
408
  }
409
- function ao(e, t) {
409
+ function so(e, t) {
410
410
  if (!this.has_pending_snippet()) {
411
411
  if (this.parent) {
412
412
  var i;
413
- k(H, i = this.parent, ao).call(i, e, t);
413
+ k(H, i = this.parent, so).call(i, e, t);
414
414
  }
415
415
  return;
416
416
  }
417
- b(Ze, this, s(Ze, this) + e), s(Ze, this) === 0 && (k(H, this, on).call(this, t), s(ie, this) && at(s(ie, this), () => {
417
+ b(Ze, this, s(Ze, this) + e), s(Ze, this) === 0 && (k(H, this, rn).call(this, t), s(ie, this) && at(s(ie, this), () => {
418
418
  b(ie, this, null);
419
419
  }), s(Ve, this) && (s(ye, this).before(s(Ve, this)), b(Ve, this, null)));
420
420
  }
421
421
  function En(e) {
422
- s($e, this) && (V(s($e, this)), b($e, this, null)), s(ie, this) && (V(s(ie, this)), b(ie, this, null)), s(he, this) && (V(s(he, this)), b(he, this, null)), M && (Y(s(Hi, this)), br(), Y(li()));
422
+ s($e, this) && (V(s($e, this)), b($e, this, null)), s(ie, this) && (V(s(ie, this)), b(ie, this, null)), s(me, this) && (V(s(me, this)), b(me, this, null)), j && (Y(s(Di, this)), gr(), Y(ci()));
423
423
  let t = s(Se, this).failed;
424
424
  const i = (n) => {
425
- const { reset: o, invoke_onerror: r } = k(H, this, ro).call(this, n);
426
- r(), t && b(he, this, k(H, this, rn).call(this, () => {
425
+ const { reset: o, invoke_onerror: r } = k(H, this, oo).call(this, n);
426
+ r(), t && b(me, this, k(H, this, sn).call(this, () => {
427
427
  try {
428
428
  return le(() => {
429
429
  var a = $;
@@ -445,48 +445,48 @@ function En(e) {
445
445
  n !== null && typeof n == "object" && typeof n.then == "function" ? n.then(i, (o) => Oe(o, s(se, this) && s(se, this).parent)) : i(n);
446
446
  });
447
447
  }
448
- function Nr(e, t, i, n) {
449
- const o = Wt() ? Nt : sn;
450
- var r = e.filter((u) => !u.settled), a = t.map(o);
448
+ function Cr(e, t, i, n) {
449
+ const o = Wt() ? Nt : an;
450
+ var r = e.filter((f) => !f.settled), a = t.map(o);
451
451
  if (i.length === 0 && r.length === 0) {
452
452
  n(a);
453
453
  return;
454
454
  }
455
- var l = $, c = Pr(), p = r.length === 1 ? r[0].promise : r.length > 1 ? Promise.all(r.map((u) => u.promise)) : null;
456
- function _(u) {
455
+ var l = $, c = Nr(), p = r.length === 1 ? r[0].promise : r.length > 1 ? Promise.all(r.map((f) => f.promise)) : null;
456
+ function _(f) {
457
457
  if ((l.f & 16384) === 0) {
458
458
  c();
459
459
  try {
460
- n([...a, ...u]);
460
+ n([...a, ...f]);
461
461
  } catch (v) {
462
462
  Oe(v, l);
463
463
  }
464
- ci();
464
+ fi();
465
465
  }
466
466
  }
467
- var d = lo();
467
+ var u = ao();
468
468
  if (i.length === 0) {
469
- p.then(() => _([])).finally(d);
469
+ p.then(() => _([])).finally(u);
470
470
  return;
471
471
  }
472
- function f() {
473
- Promise.all(i.map((u) => /* @__PURE__ */ Lr(u))).then(_).catch((u) => Oe(u, l)).finally(d);
472
+ function d() {
473
+ Promise.all(i.map((f) => /* @__PURE__ */ Pr(f))).then(_).catch((f) => Oe(f, l)).finally(u);
474
474
  }
475
475
  p ? p.then(() => {
476
- c(), f(), ci();
477
- }) : f();
476
+ c(), d(), fi();
477
+ }) : d();
478
478
  }
479
- function Pr() {
479
+ function Nr() {
480
480
  var e = $, t = E, i = X, n = x;
481
481
  if (0) var o;
482
482
  return function(a = !0) {
483
- Ae(e), ce(t), mt(i), a && (e.f & 16384) === 0 && (n?.activate(), n?.apply());
483
+ Ae(e), ce(t), ht(i), a && (e.f & 16384) === 0 && (n?.activate(), n?.apply());
484
484
  };
485
485
  }
486
- function ci(e = !0) {
487
- Ae(null), ce(null), mt(null), e && x?.deactivate();
486
+ function fi(e = !0) {
487
+ Ae(null), ce(null), ht(null), e && x?.deactivate();
488
488
  }
489
- function lo() {
489
+ function ao() {
490
490
  var e = $, t = e.b, i = x, n = !!t?.is_rendered();
491
491
  return t?.update_pending_count(1, i), i.increment(n, e), () => {
492
492
  t?.update_pending_count(-1, i), i.decrement(n, e);
@@ -499,7 +499,7 @@ function Nt(e) {
499
499
  ctx: X,
500
500
  deps: null,
501
501
  effects: null,
502
- equals: Yn,
502
+ equals: Jn,
503
503
  f: t,
504
504
  fn: e,
505
505
  reactions: null,
@@ -512,52 +512,52 @@ function Nt(e) {
512
512
  }
513
513
  var St = /* @__PURE__ */ Symbol("obsolete");
514
514
  // @__NO_SIDE_EFFECTS__
515
- function Lr(e, t, i) {
515
+ function Pr(e, t, i) {
516
516
  let n = $;
517
- n === null && cr();
517
+ n === null && lr();
518
518
  var o = void 0, r = nt(B), a = !E, l = /* @__PURE__ */ new Set();
519
519
  return ts(() => {
520
- var c = $, p = qn();
520
+ var c = $, p = Xn();
521
521
  o = p.promise;
522
522
  try {
523
- Promise.resolve(e()).then(p.resolve, (u) => {
524
- u !== Ot && p.reject(u);
525
- }).finally(ci);
526
- } catch (u) {
527
- p.reject(u), ci();
523
+ Promise.resolve(e()).then(p.resolve, (f) => {
524
+ f !== Ot && p.reject(f);
525
+ }).finally(fi);
526
+ } catch (f) {
527
+ p.reject(f), fi();
528
528
  }
529
529
  var _ = x;
530
530
  if (a) {
531
- if ((c.f & 32768) !== 0) var d = lo();
531
+ if ((c.f & 32768) !== 0) var u = ao();
532
532
  if (n.b?.is_rendered()) _.async_deriveds.get(c)?.reject(St);
533
- else for (const u of l.values()) u.reject(St);
533
+ else for (const f of l.values()) f.reject(St);
534
534
  l.add(p), _.async_deriveds.set(c, p);
535
535
  }
536
- const f = (u, v = void 0) => {
537
- d?.(), l.delete(p), v !== St && (_.activate(), v ? (r.f |= ai, vt(r, v)) : ((r.f & 8388608) !== 0 && (r.f ^= ai), vt(r, u)), _.deactivate());
536
+ const d = (f, v = void 0) => {
537
+ u?.(), l.delete(p), v !== St && (_.activate(), v ? (r.f |= li, vt(r, v)) : ((r.f & 8388608) !== 0 && (r.f ^= li), vt(r, f)), _.deactivate());
538
538
  };
539
- p.promise.then(f, (u) => f(null, u || "unknown"));
539
+ p.promise.then(d, (f) => d(null, f || "unknown"));
540
540
  }), Yr(() => {
541
541
  for (const c of l) c.reject(St);
542
542
  }), new Promise((c) => {
543
543
  function p(_) {
544
- function d() {
544
+ function u() {
545
545
  _ === o ? c(r) : p(o);
546
546
  }
547
- _.then(d, d);
547
+ _.then(u, u);
548
548
  }
549
549
  p(o);
550
550
  });
551
551
  }
552
552
  // @__NO_SIDE_EFFECTS__
553
- function zn(e) {
553
+ function Lr(e) {
554
554
  const t = /* @__PURE__ */ Nt(e);
555
- return Re || Ro(t), t;
555
+ return Re || To(t), t;
556
556
  }
557
557
  // @__NO_SIDE_EFFECTS__
558
- function sn(e) {
558
+ function an(e) {
559
559
  const t = /* @__PURE__ */ Nt(e);
560
- return t.equals = Vn, t;
560
+ return t.equals = Yn, t;
561
561
  }
562
562
  function Or(e) {
563
563
  var t = e.effects;
@@ -566,46 +566,46 @@ function Or(e) {
566
566
  for (var i = 0; i < t.length; i += 1) V(t[i]);
567
567
  }
568
568
  }
569
- function an(e) {
569
+ function ln(e) {
570
570
  var t, i = $, n = e.parent;
571
571
  if (!Be && n !== null && e.v !== B && (n.f & 24576) !== 0)
572
- return yr(), e.v;
572
+ return vr(), e.v;
573
573
  Ae(n);
574
574
  try {
575
- e.f &= ~Lt, Or(e), t = Lo(e);
575
+ e.f &= ~Lt, Or(e), t = Po(e);
576
576
  } finally {
577
577
  Ae(i);
578
578
  }
579
579
  return t;
580
580
  }
581
- function co(e) {
582
- var t = an(e);
583
- if (!e.equals(t) && (e.wv = No(), (!x?.is_fork || e.deps === null) && (x !== null ? (x.capture(e, t, !0), Fi?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
581
+ function lo(e) {
582
+ var t = ln(e);
583
+ if (!e.equals(t) && (e.wv = Co(), (!x?.is_fork || e.deps === null) && (x !== null ? (x.capture(e, t, !0), Ki?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
584
584
  P(e, ae);
585
585
  return;
586
586
  }
587
- Be || (J !== null ? (fn() || x?.is_fork) && J.set(e, t) : tn(e));
587
+ Be || (J !== null ? (un() || x?.is_fork) && J.set(e, t) : nn(e));
588
588
  }
589
589
  function Wr(e) {
590
590
  if (e.effects !== null)
591
- for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && xi(() => {
591
+ for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && Si(() => {
592
592
  t.ac.abort(Ot), t.ac = null;
593
- }), t.fn !== null && (t.teardown = Qo), Pt(t, 0), pn(t));
593
+ }), t.fn !== null && (t.teardown = Zo), Pt(t, 0), _n(t));
594
594
  }
595
- function uo(e) {
595
+ function co(e) {
596
596
  if (e.effects !== null)
597
597
  for (const t of e.effects) t.teardown && t.fn !== null && yt(t);
598
598
  }
599
- var fo, ui = null, ut = null, x = null, Fi = null, J = null, Ki = null, Tt = !1, Ti = !1, ht = null, fi = null, po = 0;
600
- var Ir = 1, di = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), qe = /* @__PURE__ */ new WeakMap(), pi = /* @__PURE__ */ new WeakMap(), Xt = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new WeakMap(), $t = /* @__PURE__ */ new WeakMap(), re = /* @__PURE__ */ new WeakMap(), Xi = /* @__PURE__ */ new WeakMap(), it = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), ti = /* @__PURE__ */ new WeakMap(), At = /* @__PURE__ */ new WeakMap(), O = /* @__PURE__ */ new WeakSet(), st = class _o {
599
+ var fo, di = null, ft = null, x = null, Ki = null, J = null, Xi = null, Mt = !1, Ti = !1, mt = null, ui = null, uo = 0;
600
+ var Ir = 1, pi = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), qe = /* @__PURE__ */ new WeakMap(), _i = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new WeakMap(), $t = /* @__PURE__ */ new WeakMap(), re = /* @__PURE__ */ new WeakMap(), qi = /* @__PURE__ */ new WeakMap(), it = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), ii = /* @__PURE__ */ new WeakMap(), At = /* @__PURE__ */ new WeakMap(), O = /* @__PURE__ */ new WeakSet(), st = class po {
601
601
  constructor() {
602
- nn(this, O), N(this, "id", Ir++), w(this, di, !1), N(this, "linked", !0), w(this, Qe, null), w(this, qe, null), N(this, "async_deriveds", /* @__PURE__ */ new Map()), N(this, "current", /* @__PURE__ */ new Map()), N(this, "previous", /* @__PURE__ */ new Map()), w(this, pi, /* @__PURE__ */ new Set()), w(this, Xt, /* @__PURE__ */ new Set()), w(this, ft, 0), w(this, Ke, /* @__PURE__ */ new Map()), w(this, $t, null), w(this, re, []), w(this, Xi, []), w(this, it, /* @__PURE__ */ new Set()), w(this, je, /* @__PURE__ */ new Set()), w(this, Le, /* @__PURE__ */ new Map()), w(this, ti, /* @__PURE__ */ new Set()), N(this, "is_fork", !1), w(this, At, !1), ut === null ? ui = ut = this : (b(qe, ut, this), b(Qe, this, ut)), ut = this;
602
+ on(this, O), N(this, "id", Ir++), w(this, pi, !1), N(this, "linked", !0), w(this, Qe, null), w(this, qe, null), N(this, "async_deriveds", /* @__PURE__ */ new Map()), N(this, "current", /* @__PURE__ */ new Map()), N(this, "previous", /* @__PURE__ */ new Map()), w(this, _i, /* @__PURE__ */ new Set()), w(this, qt, /* @__PURE__ */ new Set()), w(this, dt, 0), w(this, Ke, /* @__PURE__ */ new Map()), w(this, $t, null), w(this, re, []), w(this, qi, []), w(this, it, /* @__PURE__ */ new Set()), w(this, Te, /* @__PURE__ */ new Set()), w(this, Le, /* @__PURE__ */ new Map()), w(this, ii, /* @__PURE__ */ new Set()), N(this, "is_fork", !1), w(this, At, !1), ft === null ? di = ft = this : (b(qe, ft, this), b(Qe, this, ft)), ft = this;
603
603
  }
604
604
  skip_effect(t) {
605
605
  s(Le, this).has(t) || s(Le, this).set(t, {
606
606
  d: [],
607
607
  m: []
608
- }), s(ti, this).delete(t);
608
+ }), s(ii, this).delete(t);
609
609
  }
610
610
  unskip_effect(t, i = (n) => this.schedule(n)) {
611
611
  var n = s(Le, this).get(t);
@@ -616,7 +616,7 @@ var Ir = 1, di = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap
616
616
  for (o of n.m)
617
617
  P(o, rt), i(o);
618
618
  }
619
- s(ti, this).add(t);
619
+ s(ii, this).add(t);
620
620
  }
621
621
  capture(t, i, n = !1) {
622
622
  t.v !== B && !this.previous.has(t) && this.previous.set(t, t.v), (t.f & 8388608) === 0 && (this.current.set(t, [i, n]), J?.set(t, i)), this.is_fork || (t.v = i);
@@ -629,28 +629,28 @@ var Ir = 1, di = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap
629
629
  }
630
630
  flush() {
631
631
  try {
632
- Ti = !0, x = this, k(O, this, _i).call(this);
632
+ Ti = !0, x = this, k(O, this, hi).call(this);
633
633
  } finally {
634
- po = 0, Ki = null, ht = null, fi = null, Ti = !1, x = null, J = null, et.clear();
634
+ uo = 0, Xi = null, mt = null, ui = null, Ti = !1, x = null, J = null, et.clear();
635
635
  }
636
636
  }
637
637
  discard() {
638
- for (const t of s(Xt, this)) t(this);
639
- s(Xt, this).clear();
638
+ for (const t of s(qt, this)) t(this);
639
+ s(qt, this).clear();
640
640
  for (const t of this.async_deriveds.values()) t.reject(St);
641
641
  k(O, this, mi).call(this), s($t, this)?.resolve();
642
642
  }
643
643
  register_created_effect(t) {
644
- s(Xi, this).push(t);
644
+ s(qi, this).push(t);
645
645
  }
646
646
  increment(t, i) {
647
- if (b(ft, this, s(ft, this) + 1), t) {
647
+ if (b(dt, this, s(dt, this) + 1), t) {
648
648
  let n = s(Ke, this).get(i) ?? 0;
649
649
  s(Ke, this).set(i, n + 1);
650
650
  }
651
651
  }
652
652
  decrement(t, i) {
653
- if (b(ft, this, s(ft, this) - 1), t) {
653
+ if (b(dt, this, s(dt, this) - 1), t) {
654
654
  let n = s(Ke, this).get(i) ?? 0;
655
655
  n === 1 ? s(Ke, this).delete(i) : s(Ke, this).set(i, n - 1);
656
656
  }
@@ -660,23 +660,23 @@ var Ir = 1, di = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap
660
660
  }
661
661
  transfer_effects(t, i) {
662
662
  for (const n of t) s(it, this).add(n);
663
- for (const n of i) s(je, this).add(n);
663
+ for (const n of i) s(Te, this).add(n);
664
664
  t.clear(), i.clear();
665
665
  }
666
666
  oncommit(t) {
667
- s(pi, this).add(t);
667
+ s(_i, this).add(t);
668
668
  }
669
669
  ondiscard(t) {
670
- s(Xt, this).add(t);
670
+ s(qt, this).add(t);
671
671
  }
672
672
  settled() {
673
- return (s($t, this) ?? b($t, this, qn())).promise;
673
+ return (s($t, this) ?? b($t, this, Xn())).promise;
674
674
  }
675
675
  static ensure() {
676
676
  if (x === null) {
677
- const t = x = new _o();
678
- !Ti && !Tt && Ie(() => {
679
- s(di, t) || t.flush();
677
+ const t = x = new po();
678
+ !Ti && !Mt && Ie(() => {
679
+ s(pi, t) || t.flush();
680
680
  });
681
681
  }
682
682
  return x;
@@ -688,7 +688,7 @@ var Ir = 1, di = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap
688
688
  }
689
689
  J = /* @__PURE__ */ new Map();
690
690
  for (const [i, [n]] of this.current) J.set(i, n);
691
- for (let i = ui; i !== null; i = s(qe, i))
691
+ for (let i = di; i !== null; i = s(qe, i))
692
692
  if (!(i === this || i.is_fork)) {
693
693
  var t = !1;
694
694
  if (i.id < this.id) {
@@ -703,14 +703,14 @@ var Ir = 1, di = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap
703
703
  }
704
704
  }
705
705
  schedule(t) {
706
- if (Ki = t, t.b?.is_pending && (t.f & 16777228) !== 0 && (t.f & 32768) === 0) {
706
+ if (Xi = t, t.b?.is_pending && (t.f & 16777228) !== 0 && (t.f & 32768) === 0) {
707
707
  t.b.defer_effect(t);
708
708
  return;
709
709
  }
710
710
  for (var i = t; i.parent !== null; ) {
711
711
  i = i.parent;
712
712
  var n = i.f;
713
- if (ht !== null && i === $ && (Re || (E === null || (E.f & 2) === 0) && !$r))
713
+ if (mt !== null && i === $ && (Re || (E === null || (E.f & 2) === 0) && !Sr))
714
714
  return;
715
715
  if ((n & 96) !== 0) {
716
716
  if ((n & 1024) === 0) return;
@@ -721,7 +721,7 @@ var Ir = 1, di = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap
721
721
  }
722
722
  };
723
723
  fo = st;
724
- function Mn() {
724
+ function zn() {
725
725
  if (this.is_fork) return !0;
726
726
  for (const i of s(Ke, this).keys()) {
727
727
  for (var e = i, t = !1; e.parent !== null; ) {
@@ -735,28 +735,28 @@ function Mn() {
735
735
  }
736
736
  return !1;
737
737
  }
738
- function _i() {
739
- b(di, this, !0), po++ > 1e3 && (k(O, this, mi).call(this), Gr());
738
+ function hi() {
739
+ b(pi, this, !0), uo++ > 1e3 && (k(O, this, mi).call(this), Gr());
740
740
  for (const l of s(it, this))
741
- s(je, this).delete(l), P(l, ne), this.schedule(l);
742
- for (const l of s(je, this))
741
+ s(Te, this).delete(l), P(l, ne), this.schedule(l);
742
+ for (const l of s(Te, this))
743
743
  P(l, rt), this.schedule(l);
744
744
  const e = s(re, this);
745
745
  b(re, this, []), this.apply();
746
- var t = ht = [], i = [], n = fi = [];
746
+ var t = mt = [], i = [], n = ui = [];
747
747
  for (const l of e) try {
748
- k(O, this, mo).call(this, l, t, i);
748
+ k(O, this, _o).call(this, l, t, i);
749
749
  } catch (c) {
750
- throw yo(l), k(O, this, Mn).call(this) || this.discard(), c;
750
+ throw vo(l), k(O, this, zn).call(this) || this.discard(), c;
751
751
  }
752
752
  if (x = null, n.length > 0) {
753
753
  var o = fo.ensure();
754
754
  for (const l of n) o.schedule(l);
755
755
  }
756
- if (ht = null, fi = null, k(O, this, Mn).call(this)) {
756
+ if (mt = null, ui = null, k(O, this, zn).call(this)) {
757
757
  k(O, this, Et).call(this, i), k(O, this, Et).call(this, t);
758
- for (const [l, c] of s(Le, this)) vo(l, c);
759
- n.length > 0 && k(O, x, _i).call(x);
758
+ for (const [l, c] of s(Le, this)) mo(l, c);
759
+ n.length > 0 && k(O, x, hi).call(x);
760
760
  return;
761
761
  }
762
762
  const r = k(O, this, Br).call(this);
@@ -764,22 +764,22 @@ function _i() {
764
764
  k(O, this, Et).call(this, i), k(O, this, Et).call(this, t), k(O, r, Hr).call(r, this);
765
765
  return;
766
766
  }
767
- s(it, this).clear(), s(je, this).clear();
768
- for (const l of s(pi, this)) l(this);
769
- s(pi, this).clear(), Fi = this, Tn(i), Tn(t), Fi = null, s($t, this)?.resolve();
767
+ s(it, this).clear(), s(Te, this).clear();
768
+ for (const l of s(_i, this)) l(this);
769
+ s(_i, this).clear(), Ki = this, jn(i), jn(t), Ki = null, s($t, this)?.resolve();
770
770
  var a = x;
771
- if (s(ft, this) === 0 && (s(re, this).length === 0 || a !== null) && (k(O, this, mi).call(this), Re && (k(O, this, Dr).call(this), x = a)), s(re, this).length > 0) if (a !== null) {
771
+ if (s(dt, this) === 0 && (s(re, this).length === 0 || a !== null) && (k(O, this, mi).call(this), Re && (k(O, this, Dr).call(this), x = a)), s(re, this).length > 0) if (a !== null) {
772
772
  const l = a;
773
773
  s(re, l).push(...s(re, this).filter((c) => !s(re, l).includes(c)));
774
774
  } else a = this;
775
- a !== null && k(O, a, _i).call(a);
775
+ a !== null && k(O, a, hi).call(a);
776
776
  }
777
- function mo(e, t, i) {
777
+ function _o(e, t, i) {
778
778
  e.f ^= ae;
779
779
  for (var n = e.first; n !== null; ) {
780
780
  var o = n.f, r = (o & 96) !== 0;
781
781
  if (!(r && (o & 1024) !== 0 || (o & 8192) !== 0 || s(Le, this).has(n)) && n.fn !== null) {
782
- r ? n.f ^= ae : (o & 4) !== 0 ? t.push(n) : Re && (o & 16777224) !== 0 ? i.push(n) : It(n) && ((o & 16) !== 0 && s(je, this).add(n), yt(n));
782
+ r ? n.f ^= ae : (o & 4) !== 0 ? t.push(n) : Re && (o & 16777224) !== 0 ? i.push(n) : It(n) && ((o & 16) !== 0 && s(Te, this).add(n), yt(n));
783
783
  var a = n.first;
784
784
  if (a !== null) {
785
785
  n = a;
@@ -812,7 +812,7 @@ function Hr(e) {
812
812
  const o = this.async_deriveds.get(i);
813
813
  o && n.promise.then(o.resolve).catch(o.reject);
814
814
  }
815
- e.async_deriveds.clear(), this.transfer_effects(s(it, e), s(je, e));
815
+ e.async_deriveds.clear(), this.transfer_effects(s(it, e), s(Te, e));
816
816
  const t = (i) => {
817
817
  var n = i.reactions;
818
818
  if (n !== null && !((i.f & 2) !== 0 && (i.f & 6144) === 0))
@@ -821,53 +821,53 @@ function Hr(e) {
821
821
  if ((o & 2) !== 0) t(a);
822
822
  else {
823
823
  var r = a;
824
- o & 4194320 && !this.async_deriveds.has(r) && (s(je, this).delete(r), P(r, ne), this.schedule(r));
824
+ o & 4194320 && !this.async_deriveds.has(r) && (s(Te, this).delete(r), P(r, ne), this.schedule(r));
825
825
  }
826
826
  }
827
827
  };
828
828
  for (const i of this.current.keys()) t(i);
829
- this.oncommit(() => e.discard()), k(O, e, mi).call(e), x = this, k(O, this, _i).call(this);
829
+ this.oncommit(() => e.discard()), k(O, e, mi).call(e), x = this, k(O, this, hi).call(this);
830
830
  }
831
831
  function Et(e) {
832
- for (var t = 0; t < e.length; t += 1) no(e[t], s(it, this), s(je, this));
832
+ for (var t = 0; t < e.length; t += 1) io(e[t], s(it, this), s(Te, this));
833
833
  }
834
834
  function Dr() {
835
- for (let _ = ui; _ !== null; _ = s(qe, _)) {
835
+ for (let _ = di; _ !== null; _ = s(qe, _)) {
836
836
  var e = _.id < this.id, t = [];
837
- for (const [d, [f, u]] of this.current) {
838
- if (_.current.has(d)) {
839
- var i = _.current.get(d)[0];
840
- if (e && f !== i) _.current.set(d, [f, u]);
837
+ for (const [u, [d, f]] of this.current) {
838
+ if (_.current.has(u)) {
839
+ var i = _.current.get(u)[0];
840
+ if (e && d !== i) _.current.set(u, [d, f]);
841
841
  else continue;
842
842
  }
843
- t.push(d);
843
+ t.push(u);
844
844
  }
845
- if (e) for (const [d, f] of this.async_deriveds) {
846
- const u = _.async_deriveds.get(d);
847
- u && f.promise.then(u.resolve).catch(u.reject);
845
+ if (e) for (const [u, d] of this.async_deriveds) {
846
+ const f = _.async_deriveds.get(u);
847
+ f && d.promise.then(f.resolve).catch(f.reject);
848
848
  }
849
- var n = [..._.current.keys()].filter((d) => !_.current.get(d)[1]);
850
- if (!(!s(di, _) || n.length === 0)) {
851
- var o = n.filter((d) => !this.current.has(d));
849
+ var n = [..._.current.keys()].filter((u) => !_.current.get(u)[1]);
850
+ if (!(!s(pi, _) || n.length === 0)) {
851
+ var o = n.filter((u) => !this.current.has(u));
852
852
  if (o.length === 0)
853
853
  e && _.discard();
854
854
  else if (t.length > 0) {
855
- if (e) for (const d of s(ti, this)) _.unskip_effect(d, (f) => {
856
- (f.f & 4194320) !== 0 ? _.schedule(f) : k(O, _, Et).call(_, [f]);
855
+ if (e) for (const u of s(ii, this)) _.unskip_effect(u, (d) => {
856
+ (d.f & 4194320) !== 0 ? _.schedule(d) : k(O, _, Et).call(_, [d]);
857
857
  });
858
858
  _.activate();
859
859
  var r = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Map();
860
860
  for (var l of t) ho(l, o, r, a);
861
861
  a = /* @__PURE__ */ new Map();
862
- var c = [..._.current].filter(([d, f]) => {
863
- const u = this.current.get(d);
864
- return u ? u[0] !== f[0] || u[1] !== f[1] : !0;
865
- }).map(([d]) => d);
862
+ var c = [..._.current].filter(([u, d]) => {
863
+ const f = this.current.get(u);
864
+ return f ? f[0] !== d[0] || f[1] !== d[1] : !0;
865
+ }).map(([u]) => u);
866
866
  if (c.length > 0)
867
- for (const d of s(Xi, this)) (d.f & 155648) === 0 && ln(d, c, a) && ((d.f & 4194320) !== 0 ? (P(d, ne), _.schedule(d)) : s(it, _).add(d));
867
+ for (const u of s(qi, this)) (u.f & 155648) === 0 && cn(u, c, a) && ((u.f & 4194320) !== 0 ? (P(u, ne), _.schedule(u)) : s(it, _).add(u));
868
868
  if (s(re, _).length > 0 && !s(At, _)) {
869
869
  _.apply();
870
- for (var p of s(re, _)) k(O, _, mo).call(_, p, [], []);
870
+ for (var p of s(re, _)) k(O, _, _o).call(_, p, [], []);
871
871
  b(re, _, []);
872
872
  }
873
873
  _.deactivate();
@@ -878,20 +878,20 @@ function Dr() {
878
878
  function mi() {
879
879
  if (this.linked) {
880
880
  var e = s(Qe, this), t = s(qe, this);
881
- e === null ? ui = t : b(qe, e, t), t === null ? ut = e : b(Qe, t, e), this.linked = !1;
881
+ e === null ? di = t : b(qe, e, t), t === null ? ft = e : b(Qe, t, e), this.linked = !1;
882
882
  }
883
883
  }
884
- function qi(e) {
885
- var t = Tt;
886
- Tt = !0;
884
+ function Ui(e) {
885
+ var t = Mt;
886
+ Mt = !0;
887
887
  try {
888
888
  var i;
889
889
  for (e && (x !== null && !x.is_fork && x.flush(), i = e()); ; ) {
890
- if (xr(), x === null) return i;
890
+ if (kr(), x === null) return i;
891
891
  x.flush();
892
892
  }
893
893
  } finally {
894
- Tt = t;
894
+ Mt = t;
895
895
  }
896
896
  }
897
897
  function Gr() {
@@ -903,16 +903,16 @@ function Gr() {
903
903
  try {
904
904
  fr();
905
905
  } catch (i) {
906
- Oe(i, Ki);
906
+ Oe(i, Xi);
907
907
  }
908
908
  }
909
909
  var xe = null;
910
- function Tn(e) {
910
+ function jn(e) {
911
911
  var t = e.length;
912
912
  if (t !== 0) {
913
913
  for (var i = 0; i < t; ) {
914
914
  var n = e[i++];
915
- if ((n.f & 24576) === 0 && It(n) && (xe = /* @__PURE__ */ new Set(), yt(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && Mo(n), xe?.size > 0)) {
915
+ if ((n.f & 24576) === 0 && It(n) && (xe = /* @__PURE__ */ new Set(), yt(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && zo(n), xe?.size > 0)) {
916
916
  et.clear();
917
917
  for (const o of xe) {
918
918
  if ((o.f & 24576) !== 0) continue;
@@ -935,42 +935,42 @@ function ho(e, t, i, n) {
935
935
  if (!i.has(e) && (i.add(e), e.reactions !== null))
936
936
  for (const o of e.reactions) {
937
937
  const r = o.f;
938
- (r & 2) !== 0 ? ho(o, t, i, n) : (r & 4194320) !== 0 && (r & 2048) === 0 && ln(o, t, n) && (P(o, ne), cn(o));
938
+ (r & 2) !== 0 ? ho(o, t, i, n) : (r & 4194320) !== 0 && (r & 2048) === 0 && cn(o, t, n) && (P(o, ne), fn(o));
939
939
  }
940
940
  }
941
- function ln(e, t, i) {
941
+ function cn(e, t, i) {
942
942
  const n = i.get(e);
943
943
  if (n !== void 0) return n;
944
944
  if (e.deps !== null) for (const o of e.deps) {
945
- if (oi.call(t, o)) return !0;
946
- if ((o.f & 2) !== 0 && ln(o, t, i))
945
+ if (ri.call(t, o)) return !0;
946
+ if ((o.f & 2) !== 0 && cn(o, t, i))
947
947
  return i.set(o, !0), !0;
948
948
  }
949
949
  return i.set(e, !1), !1;
950
950
  }
951
- function cn(e) {
951
+ function fn(e) {
952
952
  x.schedule(e);
953
953
  }
954
- function vo(e, t) {
954
+ function mo(e, t) {
955
955
  if (!((e.f & 32) !== 0 && (e.f & 1024) !== 0)) {
956
956
  (e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e), P(e, ae);
957
957
  for (var i = e.first; i !== null; )
958
- vo(i, t), i = i.next;
958
+ mo(i, t), i = i.next;
959
959
  }
960
960
  }
961
- function yo(e) {
961
+ function vo(e) {
962
962
  P(e, ae);
963
963
  for (var t = e.first; t !== null; )
964
- yo(t), t = t.next;
964
+ vo(t), t = t.next;
965
965
  }
966
- var hi = /* @__PURE__ */ new Set(), et = /* @__PURE__ */ new Map();
967
- var go = !1;
966
+ var vi = /* @__PURE__ */ new Set(), et = /* @__PURE__ */ new Map();
967
+ var yo = !1;
968
968
  function nt(e, t) {
969
969
  var i = {
970
970
  f: 0,
971
971
  v: e,
972
972
  reactions: null,
973
- equals: Yn,
973
+ equals: Jn,
974
974
  rv: 0,
975
975
  wv: 0
976
976
  };
@@ -979,21 +979,21 @@ function nt(e, t) {
979
979
  // @__NO_SIDE_EFFECTS__
980
980
  function ke(e, t) {
981
981
  const i = nt(e, t);
982
- return Ro(i), i;
982
+ return To(i), i;
983
983
  }
984
984
  // @__NO_SIDE_EFFECTS__
985
- function bo(e, t = !1, i = !0) {
985
+ function go(e, t = !1, i = !0) {
986
986
  const n = nt(e);
987
- if (t || (n.equals = Vn), ki && i && X !== null && X.l !== null) {
987
+ if (t || (n.equals = Yn), xi && i && X !== null && X.l !== null) {
988
988
  var o;
989
989
  ((o = X.l).s ?? (o.s = [])).push(n);
990
990
  }
991
991
  return n;
992
992
  }
993
- function me(e, t, i = !1) {
993
+ function he(e, t, i = !1) {
994
994
  E !== null && (!ve || (E.f & 131072) !== 0) && Wt() && (E.f & 4325394) !== 0 && (ge === null || !ge.has(e)) && hr();
995
995
  let n = i ? Ue(t) : t;
996
- return vt(e, n, fi);
996
+ return vt(e, n, ui);
997
997
  }
998
998
  function vt(e, t, i = null) {
999
999
  if (!e.equals(t)) {
@@ -1001,15 +1001,15 @@ function vt(e, t, i = null) {
1001
1001
  var n = st.ensure();
1002
1002
  if (n.capture(e, t), (e.f & 2) !== 0) {
1003
1003
  const o = e;
1004
- (e.f & 2048) !== 0 && an(o), J === null && tn(o);
1004
+ (e.f & 2048) !== 0 && ln(o), J === null && nn(o);
1005
1005
  }
1006
- e.wv = No(), wo(e, ne, i), Wt() && $ !== null && ($.f & 1024) !== 0 && ($.f & 96) === 0 && (oe === null ? rs([e]) : oe.push(e)), !n.is_fork && hi.size > 0 && !go && Fr();
1006
+ e.wv = Co(), bo(e, ne, i), Wt() && $ !== null && ($.f & 1024) !== 0 && ($.f & 96) === 0 && (oe === null ? rs([e]) : oe.push(e)), !n.is_fork && vi.size > 0 && !yo && Fr();
1007
1007
  }
1008
1008
  return t;
1009
1009
  }
1010
1010
  function Fr() {
1011
- go = !1;
1012
- for (const e of hi) {
1011
+ yo = !1;
1012
+ for (const e of vi) {
1013
1013
  (e.f & 1024) !== 0 && P(e, rt);
1014
1014
  let t;
1015
1015
  try {
@@ -1019,153 +1019,153 @@ function Fr() {
1019
1019
  }
1020
1020
  t && yt(e);
1021
1021
  }
1022
- hi.clear();
1022
+ vi.clear();
1023
1023
  }
1024
- function jt(e) {
1025
- me(e, e.v + 1);
1024
+ function Tt(e) {
1025
+ he(e, e.v + 1);
1026
1026
  }
1027
- function wo(e, t, i) {
1027
+ function bo(e, t, i) {
1028
1028
  var n = e.reactions;
1029
1029
  if (n !== null)
1030
1030
  for (var o = Wt(), r = n.length, a = 0; a < r; a++) {
1031
1031
  var l = n[a], c = l.f;
1032
1032
  if (!(!o && l === $)) {
1033
1033
  var p = (c & ne) === 0;
1034
- if (p && P(l, t), (c & 131072) !== 0) hi.add(l);
1034
+ if (p && P(l, t), (c & 131072) !== 0) vi.add(l);
1035
1035
  else if ((c & 2) !== 0) {
1036
1036
  var _ = l;
1037
- J?.delete(_), (c & 65536) === 0 && (c & 512 && ($ === null || ($.f & 2097152) === 0) && (l.f |= Lt), wo(_, rt, i));
1037
+ J?.delete(_), (c & 65536) === 0 && (c & 512 && ($ === null || ($.f & 2097152) === 0) && (l.f |= Lt), bo(_, rt, i));
1038
1038
  } else if (p) {
1039
- var d = l;
1040
- (c & 16) !== 0 && xe !== null && xe.add(d), i !== null ? i.push(d) : cn(d);
1039
+ var u = l;
1040
+ (c & 16) !== 0 && xe !== null && xe.add(u), i !== null ? i.push(u) : fn(u);
1041
1041
  }
1042
1042
  }
1043
1043
  }
1044
1044
  }
1045
1045
  var Kr = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
1046
1046
  function Ue(e) {
1047
- if (typeof e != "object" || e === null || Qt in e) return e;
1048
- const t = Xn(e);
1049
- if (t !== Vo && t !== Zo) return e;
1050
- var i = /* @__PURE__ */ new Map(), n = Kn(e), o = /* @__PURE__ */ ke(0), r = null, a = tt, l = (d) => {
1051
- if (tt === a) return d();
1052
- var f = E, u = tt;
1053
- ce(null), Cn(a);
1054
- var v = d();
1055
- return ce(f), Cn(u), v;
1047
+ if (typeof e != "object" || e === null || ei in e) return e;
1048
+ const t = Kn(e);
1049
+ if (t !== Yo && t !== Vo) return e;
1050
+ var i = /* @__PURE__ */ new Map(), n = Fn(e), o = /* @__PURE__ */ ke(0), r = null, a = tt, l = (u) => {
1051
+ if (tt === a) return u();
1052
+ var d = E, f = tt;
1053
+ ce(null), Rn(a);
1054
+ var v = u();
1055
+ return ce(d), Rn(f), v;
1056
1056
  };
1057
1057
  n && i.set("length", /* @__PURE__ */ ke(e.length, r));
1058
1058
  var c = "";
1059
1059
  let p = !1;
1060
- function _(d) {
1060
+ function _(u) {
1061
1061
  if (!p) {
1062
- p = !0, c = d, $n(o, `${c} version`);
1063
- for (const [f, u] of i) $n(u, Xr(c, f));
1062
+ p = !0, c = u, $n(o, `${c} version`);
1063
+ for (const [d, f] of i) $n(f, Xr(c, d));
1064
1064
  p = !1;
1065
1065
  }
1066
1066
  }
1067
1067
  return new Proxy(e, {
1068
- defineProperty(d, f, u) {
1069
- (!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) && _r();
1070
- var v = i.get(f);
1068
+ defineProperty(u, d, f) {
1069
+ (!("value" in f) || f.configurable === !1 || f.enumerable === !1 || f.writable === !1) && pr();
1070
+ var v = i.get(d);
1071
1071
  return v === void 0 ? l(() => {
1072
- var y = /* @__PURE__ */ ke(u.value, r);
1073
- return i.set(f, y), y;
1074
- }) : me(v, u.value, !0), !0;
1072
+ var y = /* @__PURE__ */ ke(f.value, r);
1073
+ return i.set(d, y), y;
1074
+ }) : he(v, f.value, !0), !0;
1075
1075
  },
1076
- deleteProperty(d, f) {
1077
- var u = i.get(f);
1078
- if (u === void 0) {
1079
- if (f in d) {
1076
+ deleteProperty(u, d) {
1077
+ var f = i.get(d);
1078
+ if (f === void 0) {
1079
+ if (d in u) {
1080
1080
  const v = l(() => /* @__PURE__ */ ke(B, r));
1081
- i.set(f, v), jt(o);
1081
+ i.set(d, v), Tt(o);
1082
1082
  }
1083
1083
  } else
1084
- me(u, B), jt(o);
1084
+ he(f, B), Tt(o);
1085
1085
  return !0;
1086
1086
  },
1087
- get(d, f, u) {
1088
- if (f === Qt) return e;
1089
- var v = i.get(f), y = f in d;
1090
- if (v === void 0 && (!y || Ye(d, f)?.writable) && (v = l(() => {
1091
- var h = /* @__PURE__ */ ke(Ue(y ? d[f] : B), r);
1092
- return h;
1093
- }), i.set(f, v)), v !== void 0) {
1094
- var m = g(v);
1095
- return m === B ? void 0 : m;
1087
+ get(u, d, f) {
1088
+ if (d === ei) return e;
1089
+ var v = i.get(d), y = d in u;
1090
+ if (v === void 0 && (!y || Ye(u, d)?.writable) && (v = l(() => {
1091
+ var m = /* @__PURE__ */ ke(Ue(y ? u[d] : B), r);
1092
+ return m;
1093
+ }), i.set(d, v)), v !== void 0) {
1094
+ var h = g(v);
1095
+ return h === B ? void 0 : h;
1096
1096
  }
1097
- return Reflect.get(d, f, u);
1097
+ return Reflect.get(u, d, f);
1098
1098
  },
1099
- getOwnPropertyDescriptor(d, f) {
1100
- var u = Reflect.getOwnPropertyDescriptor(d, f);
1101
- if (u && "value" in u) {
1102
- var v = i.get(f);
1103
- v && (u.value = g(v));
1104
- } else if (u === void 0) {
1105
- var y = i.get(f), m = y?.v;
1106
- if (y !== void 0 && m !== B) return {
1099
+ getOwnPropertyDescriptor(u, d) {
1100
+ var f = Reflect.getOwnPropertyDescriptor(u, d);
1101
+ if (f && "value" in f) {
1102
+ var v = i.get(d);
1103
+ v && (f.value = g(v));
1104
+ } else if (f === void 0) {
1105
+ var y = i.get(d), h = y?.v;
1106
+ if (y !== void 0 && h !== B) return {
1107
1107
  enumerable: !0,
1108
1108
  configurable: !0,
1109
- value: m,
1109
+ value: h,
1110
1110
  writable: !0
1111
1111
  };
1112
1112
  }
1113
- return u;
1113
+ return f;
1114
1114
  },
1115
- has(d, f) {
1116
- if (f === Qt) return !0;
1117
- var u = i.get(f), v = u !== void 0 && u.v !== B || Reflect.has(d, f);
1118
- return (u !== void 0 || $ !== null && (!v || Ye(d, f)?.writable)) && (u === void 0 && (u = l(() => {
1119
- var y = /* @__PURE__ */ ke(v ? Ue(d[f]) : B, r);
1115
+ has(u, d) {
1116
+ if (d === ei) return !0;
1117
+ var f = i.get(d), v = f !== void 0 && f.v !== B || Reflect.has(u, d);
1118
+ return (f !== void 0 || $ !== null && (!v || Ye(u, d)?.writable)) && (f === void 0 && (f = l(() => {
1119
+ var y = /* @__PURE__ */ ke(v ? Ue(u[d]) : B, r);
1120
1120
  return y;
1121
- }), i.set(f, u)), g(u) === B) ? !1 : v;
1121
+ }), i.set(d, f)), g(f) === B) ? !1 : v;
1122
1122
  },
1123
- set(d, f, u, v) {
1124
- var y = i.get(f), m = f in d;
1125
- if (n && f === "length") for (var h = u; h < y.v; h += 1) {
1126
- var A = i.get(h + "");
1127
- A !== void 0 ? me(A, B) : h in d && (A = l(() => /* @__PURE__ */ ke(B, r)), i.set(h + "", A));
1123
+ set(u, d, f, v) {
1124
+ var y = i.get(d), h = d in u;
1125
+ if (n && d === "length") for (var m = f; m < y.v; m += 1) {
1126
+ var A = i.get(m + "");
1127
+ A !== void 0 ? he(A, B) : m in u && (A = l(() => /* @__PURE__ */ ke(B, r)), i.set(m + "", A));
1128
1128
  }
1129
1129
  if (y === void 0)
1130
- (!m || Ye(d, f)?.writable) && (y = l(() => /* @__PURE__ */ ke(void 0, r)), me(y, Ue(u)), i.set(f, y));
1130
+ (!h || Ye(u, d)?.writable) && (y = l(() => /* @__PURE__ */ ke(void 0, r)), he(y, Ue(f)), i.set(d, y));
1131
1131
  else {
1132
- m = y.v !== B;
1133
- var W = l(() => Ue(u));
1134
- me(y, W);
1132
+ h = y.v !== B;
1133
+ var W = l(() => Ue(f));
1134
+ he(y, W);
1135
1135
  }
1136
- var S = Reflect.getOwnPropertyDescriptor(d, f);
1137
- if (S?.set && S.set.call(v, u), !m) {
1138
- if (n && typeof f == "string") {
1139
- var D = i.get("length"), L = Number(f);
1140
- Number.isInteger(L) && L >= D.v && me(D, L + 1);
1136
+ var S = Reflect.getOwnPropertyDescriptor(u, d);
1137
+ if (S?.set && S.set.call(v, f), !h) {
1138
+ if (n && typeof d == "string") {
1139
+ var D = i.get("length"), L = Number(d);
1140
+ Number.isInteger(L) && L >= D.v && he(D, L + 1);
1141
1141
  }
1142
- jt(o);
1142
+ Tt(o);
1143
1143
  }
1144
1144
  return !0;
1145
1145
  },
1146
- ownKeys(d) {
1146
+ ownKeys(u) {
1147
1147
  g(o);
1148
- var f = Reflect.ownKeys(d).filter((y) => {
1149
- var m = i.get(y);
1150
- return m === void 0 || m.v !== B;
1148
+ var d = Reflect.ownKeys(u).filter((y) => {
1149
+ var h = i.get(y);
1150
+ return h === void 0 || h.v !== B;
1151
1151
  });
1152
- for (var [u, v] of i) v.v !== B && !(u in d) && f.push(u);
1153
- return f;
1152
+ for (var [f, v] of i) v.v !== B && !(f in u) && d.push(f);
1153
+ return d;
1154
1154
  },
1155
1155
  setPrototypeOf() {
1156
- mr();
1156
+ _r();
1157
1157
  }
1158
1158
  });
1159
1159
  }
1160
1160
  function Xr(e, t) {
1161
1161
  return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : Kr.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
1162
1162
  }
1163
- var jn, qr, ko, xo, So;
1164
- function Ui() {
1165
- if (jn === void 0) {
1166
- jn = window, qr = document, ko = /Firefox/.test(navigator.userAgent);
1163
+ var Mn, qr, wo, ko, xo;
1164
+ function Ji() {
1165
+ if (Mn === void 0) {
1166
+ Mn = window, qr = document, wo = /Firefox/.test(navigator.userAgent);
1167
1167
  var e = Element.prototype, t = Node.prototype, i = Text.prototype;
1168
- xo = Ye(t, "firstChild").get, So = Ye(t, "nextSibling").get, kn(e) && (e[Ii] = void 0, e[Wi] = null, e[Bi] = void 0, e.__e = void 0), kn(i) && (i[ei] = void 0);
1168
+ ko = Ye(t, "firstChild").get, xo = Ye(t, "nextSibling").get, kn(e) && (e[Bi] = void 0, e[Ii] = null, e[Hi] = void 0, e.__e = void 0), kn(i) && (i[ti] = void 0);
1169
1169
  }
1170
1170
  }
1171
1171
  function Q(e = "") {
@@ -1173,24 +1173,24 @@ function Q(e = "") {
1173
1173
  }
1174
1174
  // @__NO_SIDE_EFFECTS__
1175
1175
  function ot(e) {
1176
- return xo.call(e);
1176
+ return ko.call(e);
1177
1177
  }
1178
1178
  // @__NO_SIDE_EFFECTS__
1179
1179
  function Ee(e) {
1180
- return So.call(e);
1180
+ return xo.call(e);
1181
1181
  }
1182
1182
  function C(e, t) {
1183
- if (!M) return /* @__PURE__ */ ot(e);
1183
+ if (!j) return /* @__PURE__ */ ot(e);
1184
1184
  var i = /* @__PURE__ */ ot(z);
1185
1185
  if (i === null) i = z.appendChild(Q());
1186
1186
  else if (t && i.nodeType !== 3) {
1187
1187
  var n = Q();
1188
1188
  return i?.before(n), Y(n), n;
1189
1189
  }
1190
- return t && Si(i), Y(i), i;
1190
+ return t && $i(i), Y(i), i;
1191
1191
  }
1192
1192
  function Ur(e, t = !1) {
1193
- if (!M) {
1193
+ if (!j) {
1194
1194
  var i = /* @__PURE__ */ ot(e);
1195
1195
  return i instanceof Comment && i.data === "" ? /* @__PURE__ */ Ee(i) : i;
1196
1196
  }
@@ -1199,34 +1199,34 @@ function Ur(e, t = !1) {
1199
1199
  var n = Q();
1200
1200
  return z?.before(n), Y(n), n;
1201
1201
  }
1202
- Si(z);
1202
+ $i(z);
1203
1203
  }
1204
1204
  return z;
1205
1205
  }
1206
1206
  function K(e, t = 1, i = !1) {
1207
- let n = M ? z : e;
1207
+ let n = j ? z : e;
1208
1208
  for (var o; t--; )
1209
1209
  o = n, n = /* @__PURE__ */ Ee(n);
1210
- if (!M) return n;
1210
+ if (!j) return n;
1211
1211
  if (i) {
1212
1212
  if (n?.nodeType !== 3) {
1213
1213
  var r = Q();
1214
1214
  return n === null ? o?.after(r) : n.before(r), Y(r), r;
1215
1215
  }
1216
- Si(n);
1216
+ $i(n);
1217
1217
  }
1218
1218
  return Y(n), n;
1219
1219
  }
1220
- function $o(e) {
1220
+ function So(e) {
1221
1221
  e.textContent = "";
1222
1222
  }
1223
- function Ao() {
1224
- return !Re || xe !== null ? !1 : ($.f & Qi) !== 0;
1223
+ function $o() {
1224
+ return !Re || xe !== null ? !1 : ($.f & en) !== 0;
1225
1225
  }
1226
- function un(e, t, i) {
1226
+ function dn(e, t, i) {
1227
1227
  return t == null || t === "http://www.w3.org/1999/xhtml" ? i ? document.createElement(e, { is: i }) : document.createElement(e) : i ? document.createElementNS(t, e, { is: i }) : document.createElementNS(t, e);
1228
1228
  }
1229
- function Si(e) {
1229
+ function $i(e) {
1230
1230
  if (e.nodeValue.length < 65536) return;
1231
1231
  let t = e.nextSibling;
1232
1232
  for (; t !== null && t.nodeType === 3; )
@@ -1238,7 +1238,7 @@ function Jr(e, t) {
1238
1238
  }
1239
1239
  function ze(e, t) {
1240
1240
  var i = $;
1241
- i !== null && (i.f & 8192) !== 0 && (e |= Zi);
1241
+ i !== null && (i.f & 8192) !== 0 && (e |= Qi);
1242
1242
  var n = {
1243
1243
  ctx: X,
1244
1244
  deps: null,
@@ -1257,14 +1257,14 @@ function ze(e, t) {
1257
1257
  };
1258
1258
  x?.register_created_effect(n);
1259
1259
  var o = n;
1260
- if ((e & 4) !== 0) ht !== null ? ht.push(n) : st.ensure().schedule(n);
1260
+ if ((e & 4) !== 0) mt !== null ? mt.push(n) : st.ensure().schedule(n);
1261
1261
  else if (t !== null) {
1262
1262
  try {
1263
1263
  yt(n);
1264
1264
  } catch (a) {
1265
1265
  throw V(n), a;
1266
1266
  }
1267
- o.deps === null && o.teardown === null && o.nodes === null && o.first === o.last && (o.f & 524288) === 0 && (o = o.first, (e & 16) !== 0 && (e & 65536) !== 0 && o !== null && (o.f |= en));
1267
+ o.deps === null && o.teardown === null && o.nodes === null && o.first === o.last && (o.f & 524288) === 0 && (o = o.first, (e & 16) !== 0 && (e & 65536) !== 0 && o !== null && (o.f |= tn));
1268
1268
  }
1269
1269
  if (o !== null && (o.parent = i, i !== null && Jr(o, i), E !== null && (E.f & 2) !== 0 && (e & 64) === 0)) {
1270
1270
  var r = E;
@@ -1272,7 +1272,7 @@ function ze(e, t) {
1272
1272
  }
1273
1273
  return n;
1274
1274
  }
1275
- function fn() {
1275
+ function un() {
1276
1276
  return E !== null && !ve;
1277
1277
  }
1278
1278
  function Yr(e) {
@@ -1280,7 +1280,7 @@ function Yr(e) {
1280
1280
  return P(t, ae), t.teardown = e, t;
1281
1281
  }
1282
1282
  function Vr(e) {
1283
- return ze(4 | or, e);
1283
+ return ze(4 | nr, e);
1284
1284
  }
1285
1285
  function Zr(e) {
1286
1286
  st.ensure();
@@ -1302,42 +1302,42 @@ function es(e) {
1302
1302
  return ze(4, e);
1303
1303
  }
1304
1304
  function ts(e) {
1305
- return ze(rr | gt, e);
1305
+ return ze(or | gt, e);
1306
1306
  }
1307
- function Eo(e, t = 0) {
1307
+ function Ao(e, t = 0) {
1308
1308
  return ze(8 | t, e);
1309
1309
  }
1310
- function qt(e, t = [], i = [], n = []) {
1311
- Nr(n, t, i, (o) => {
1310
+ function Ut(e, t = [], i = [], n = []) {
1311
+ Cr(n, t, i, (o) => {
1312
1312
  ze(8, () => {
1313
1313
  e(...o.map(g));
1314
1314
  });
1315
1315
  });
1316
1316
  }
1317
- function dn(e, t = 0) {
1317
+ function pn(e, t = 0) {
1318
1318
  var i = ze(16 | t, e);
1319
1319
  return i;
1320
1320
  }
1321
1321
  function le(e) {
1322
1322
  return ze(32 | gt, e);
1323
1323
  }
1324
- function zo(e) {
1324
+ function Eo(e) {
1325
1325
  var t = e.teardown;
1326
1326
  if (t !== null) {
1327
1327
  const i = Be, n = E;
1328
- Rn(!0), ce(null);
1328
+ Tn(!0), ce(null);
1329
1329
  try {
1330
1330
  t.call(null);
1331
1331
  } finally {
1332
- Rn(i), ce(n);
1332
+ Tn(i), ce(n);
1333
1333
  }
1334
1334
  }
1335
1335
  }
1336
- function pn(e, t = !1) {
1336
+ function _n(e, t = !1) {
1337
1337
  var i = e.first;
1338
1338
  for (e.first = e.last = null; i !== null; ) {
1339
1339
  const o = i.ac;
1340
- o !== null && xi(() => {
1340
+ o !== null && Si(() => {
1341
1341
  o.abort(Ot);
1342
1342
  });
1343
1343
  var n = i.next;
@@ -1352,12 +1352,12 @@ function is(e) {
1352
1352
  }
1353
1353
  function V(e, t = !0) {
1354
1354
  var i = !1;
1355
- (t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (ns(e.nodes.start, e.nodes.end), i = !0), e.f |= xn, pn(e, t && !i), Pt(e, 0);
1355
+ (t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (ns(e.nodes.start, e.nodes.end), i = !0), e.f |= xn, _n(e, t && !i), Pt(e, 0);
1356
1356
  var n = e.nodes && e.nodes.t;
1357
1357
  if (n !== null) for (const r of n) r.stop();
1358
- zo(e), e.f ^= xn, e.f |= nr;
1358
+ Eo(e), e.f ^= xn, e.f |= ir;
1359
1359
  var o = e.parent;
1360
- o !== null && o.first !== null && Mo(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1360
+ o !== null && o.first !== null && zo(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1361
1361
  }
1362
1362
  function ns(e, t) {
1363
1363
  for (; e !== null; ) {
@@ -1365,13 +1365,13 @@ function ns(e, t) {
1365
1365
  e.remove(), e = i;
1366
1366
  }
1367
1367
  }
1368
- function Mo(e) {
1368
+ function zo(e) {
1369
1369
  var t = e.parent, i = e.prev, n = e.next;
1370
1370
  i !== null && (i.next = n), n !== null && (n.prev = i), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = i));
1371
1371
  }
1372
1372
  function at(e, t, i = !0) {
1373
1373
  var n = [];
1374
- To(e, n, !0);
1374
+ jo(e, n, !0);
1375
1375
  var o = () => {
1376
1376
  i && V(e), t && t();
1377
1377
  }, r = n.length;
@@ -1380,9 +1380,9 @@ function at(e, t, i = !0) {
1380
1380
  for (var l of n) l.out(a);
1381
1381
  } else o();
1382
1382
  }
1383
- function To(e, t, i) {
1383
+ function jo(e, t, i) {
1384
1384
  if ((e.f & 8192) === 0) {
1385
- e.f ^= Zi;
1385
+ e.f ^= Qi;
1386
1386
  var n = e.nodes && e.nodes.t;
1387
1387
  if (n !== null)
1388
1388
  for (const l of n) (l.is_global || i) && t.push(l);
@@ -1390,36 +1390,36 @@ function To(e, t, i) {
1390
1390
  var r = o.next;
1391
1391
  if ((o.f & 64) === 0) {
1392
1392
  var a = (o.f & 65536) !== 0 || (o.f & 32) !== 0 && (e.f & 16) !== 0;
1393
- To(o, t, a ? i : !1);
1393
+ jo(o, t, a ? i : !1);
1394
1394
  }
1395
1395
  o = r;
1396
1396
  }
1397
1397
  }
1398
1398
  }
1399
- function vi(e) {
1400
- jo(e, !0);
1399
+ function yi(e) {
1400
+ Mo(e, !0);
1401
1401
  }
1402
- function jo(e, t) {
1402
+ function Mo(e, t) {
1403
1403
  if ((e.f & 8192) !== 0) {
1404
- e.f ^= Zi, (e.f & 1024) === 0 && (P(e, ne), st.ensure().schedule(e));
1404
+ e.f ^= Qi, (e.f & 1024) === 0 && (P(e, ne), st.ensure().schedule(e));
1405
1405
  for (var i = e.first; i !== null; ) {
1406
1406
  var n = i.next, o = (i.f & 65536) !== 0 || (i.f & 32) !== 0;
1407
- jo(i, o ? t : !1), i = n;
1407
+ Mo(i, o ? t : !1), i = n;
1408
1408
  }
1409
1409
  var r = e.nodes && e.nodes.t;
1410
1410
  if (r !== null)
1411
1411
  for (const a of r) (a.is_global || t) && a.in();
1412
1412
  }
1413
1413
  }
1414
- function _n(e, t) {
1414
+ function hn(e, t) {
1415
1415
  if (e.nodes)
1416
1416
  for (var i = e.nodes.start, n = e.nodes.end; i !== null; ) {
1417
1417
  var o = i === n ? null : /* @__PURE__ */ Ee(i);
1418
1418
  t.append(i), i = o;
1419
1419
  }
1420
1420
  }
1421
- var os = null, ii = !1, Be = !1;
1422
- function Rn(e) {
1421
+ var os = null, ni = !1, Be = !1;
1422
+ function Tn(e) {
1423
1423
  Be = e;
1424
1424
  }
1425
1425
  var E = null, ve = !1;
@@ -1431,19 +1431,19 @@ function Ae(e) {
1431
1431
  $ = e;
1432
1432
  }
1433
1433
  var ge = null;
1434
- function Ro(e) {
1434
+ function To(e) {
1435
1435
  E !== null && (!Re || (E.f & 2) !== 0) && (ge ?? (ge = /* @__PURE__ */ new Set())).add(e);
1436
1436
  }
1437
1437
  var Z = null, te = 0, oe = null;
1438
1438
  function rs(e) {
1439
1439
  oe = e;
1440
1440
  }
1441
- var Co = 1, Je = 0, tt = Je;
1442
- function Cn(e) {
1441
+ var Ro = 1, Je = 0, tt = Je;
1442
+ function Rn(e) {
1443
1443
  tt = e;
1444
1444
  }
1445
- function No() {
1446
- return ++Co;
1445
+ function Co() {
1446
+ return ++Ro;
1447
1447
  }
1448
1448
  function It(e) {
1449
1449
  var t = e.f;
@@ -1451,65 +1451,65 @@ function It(e) {
1451
1451
  if (t & 2 && (e.f &= ~Lt), (t & 4096) !== 0) {
1452
1452
  for (var i = e.deps, n = i.length, o = 0; o < n; o++) {
1453
1453
  var r = i[o];
1454
- if (It(r) && co(r), r.wv > e.wv) return !0;
1454
+ if (It(r) && lo(r), r.wv > e.wv) return !0;
1455
1455
  }
1456
1456
  (t & 512) !== 0 && J === null && P(e, ae);
1457
1457
  }
1458
1458
  return !1;
1459
1459
  }
1460
- function Po(e, t, i = !0) {
1460
+ function No(e, t, i = !0) {
1461
1461
  var n = e.reactions;
1462
1462
  if (n !== null && !(!Re && ge !== null && ge.has(e)))
1463
1463
  for (var o = 0; o < n.length; o++) {
1464
1464
  var r = n[o];
1465
- (r.f & 2) !== 0 ? Po(r, t, !1) : t === r && (i ? P(r, ne) : (r.f & 1024) !== 0 && P(r, rt), cn(r));
1465
+ (r.f & 2) !== 0 ? No(r, t, !1) : t === r && (i ? P(r, ne) : (r.f & 1024) !== 0 && P(r, rt), fn(r));
1466
1466
  }
1467
1467
  }
1468
- function Lo(e) {
1468
+ function Po(e) {
1469
1469
  var t = Z, i = te, n = oe, o = E, r = ge, a = X, l = ve, c = tt, p = e.f;
1470
- Z = null, te = 0, oe = null, E = (p & 96) === 0 ? e : null, ge = null, mt(e.ctx), ve = !1, tt = ++Je, e.ac !== null && (xi(() => {
1470
+ Z = null, te = 0, oe = null, E = (p & 96) === 0 ? e : null, ge = null, ht(e.ctx), ve = !1, tt = ++Je, e.ac !== null && (Si(() => {
1471
1471
  e.ac.abort(Ot);
1472
1472
  }), e.ac = null);
1473
1473
  try {
1474
1474
  e.f |= Sn;
1475
- var _ = e.fn, d = _();
1476
- e.f |= Qi;
1477
- var f = e.deps, u = x?.is_fork;
1475
+ var _ = e.fn, u = _();
1476
+ e.f |= en;
1477
+ var d = e.deps, f = x?.is_fork;
1478
1478
  if (Z !== null) {
1479
1479
  var v;
1480
- if (u || Pt(e, te), f !== null && te > 0)
1481
- for (f.length = te + Z.length, v = 0; v < Z.length; v++) f[te + v] = Z[v];
1482
- else e.deps = f = Z;
1483
- if (fn() && (e.f & 512) !== 0) for (v = te; v < f.length; v++) {
1480
+ if (f || Pt(e, te), d !== null && te > 0)
1481
+ for (d.length = te + Z.length, v = 0; v < Z.length; v++) d[te + v] = Z[v];
1482
+ else e.deps = d = Z;
1483
+ if (un() && (e.f & 512) !== 0) for (v = te; v < d.length; v++) {
1484
1484
  var y;
1485
- ((y = f[v]).reactions ?? (y.reactions = [])).push(e);
1485
+ ((y = d[v]).reactions ?? (y.reactions = [])).push(e);
1486
1486
  }
1487
- } else !u && f !== null && te < f.length && (Pt(e, te), f.length = te);
1488
- if (Wt() && oe !== null && !ve && f !== null && (e.f & 6146) === 0) for (v = 0; v < oe.length; v++) Po(oe[v], e);
1487
+ } else !f && d !== null && te < d.length && (Pt(e, te), d.length = te);
1488
+ if (Wt() && oe !== null && !ve && d !== null && (e.f & 6146) === 0) for (v = 0; v < oe.length; v++) No(oe[v], e);
1489
1489
  if (o !== null && o !== e) {
1490
- if (Je++, o.deps !== null) for (let m = 0; m < i; m += 1) o.deps[m].rv = Je;
1491
- if (t !== null) for (const m of t) m.rv = Je;
1490
+ if (Je++, o.deps !== null) for (let h = 0; h < i; h += 1) o.deps[h].rv = Je;
1491
+ if (t !== null) for (const h of t) h.rv = Je;
1492
1492
  oe !== null && (n === null ? n = oe : n.push(...oe));
1493
1493
  }
1494
- return (e.f & 8388608) !== 0 && (e.f ^= ai), d;
1495
- } catch (m) {
1496
- return to(m);
1494
+ return (e.f & 8388608) !== 0 && (e.f ^= li), u;
1495
+ } catch (h) {
1496
+ return eo(h);
1497
1497
  } finally {
1498
- e.f ^= Sn, Z = t, te = i, oe = n, E = o, ge = r, mt(a), ve = l, tt = c;
1498
+ e.f ^= Sn, Z = t, te = i, oe = n, E = o, ge = r, ht(a), ve = l, tt = c;
1499
1499
  }
1500
1500
  }
1501
1501
  function ss(e, t) {
1502
1502
  let i = t.reactions;
1503
1503
  if (i !== null) {
1504
- var n = Jo.call(i, e);
1504
+ var n = Uo.call(i, e);
1505
1505
  if (n !== -1) {
1506
1506
  var o = i.length - 1;
1507
1507
  o === 0 ? i = t.reactions = null : (i[n] = i[o], i.pop());
1508
1508
  }
1509
1509
  }
1510
- if (i === null && (t.f & 2) !== 0 && (Z === null || !oi.call(Z, t))) {
1510
+ if (i === null && (t.f & 2) !== 0 && (Z === null || !ri.call(Z, t))) {
1511
1511
  var r = t;
1512
- (r.f & 512) !== 0 && (r.f ^= 512, r.f &= ~Lt), r.v !== B && tn(r), r.ac !== null && xi(() => {
1512
+ (r.f & 512) !== 0 && (r.f ^= 512, r.f &= ~Lt), r.v !== B && nn(r), r.ac !== null && Si(() => {
1513
1513
  r.ac.abort(Ot), r.ac = null, P(r, ne);
1514
1514
  }), Wr(r), Pt(r, 0);
1515
1515
  }
@@ -1523,16 +1523,16 @@ function yt(e) {
1523
1523
  var t = e.f;
1524
1524
  if ((t & 16384) === 0) {
1525
1525
  P(e, ae);
1526
- var i = $, n = ii;
1527
- if ($ = e, ii = (t & 96) === 0, 0)
1526
+ var i = $, n = ni;
1527
+ if ($ = e, ni = (t & 96) === 0, 0)
1528
1528
  var o, r;
1529
1529
  try {
1530
- (t & 16777232) !== 0 ? is(e) : pn(e), zo(e);
1531
- var a = Lo(e);
1532
- if (e.teardown = typeof a == "function" ? a : null, e.wv = Co, 0)
1530
+ (t & 16777232) !== 0 ? is(e) : _n(e), Eo(e);
1531
+ var a = Po(e);
1532
+ if (e.teardown = typeof a == "function" ? a : null, e.wv = Ro, 0)
1533
1533
  for (var l of e.deps) ;
1534
1534
  } finally {
1535
- ii = n, $ = i;
1535
+ ni = n, $ = i;
1536
1536
  }
1537
1537
  }
1538
1538
  }
@@ -1544,13 +1544,13 @@ function g(e) {
1544
1544
  e.rv < Je && (e.rv = Je, Z === null && i !== null && i[te] === e ? te++ : Z === null ? Z = [e] : Z.push(e));
1545
1545
  else {
1546
1546
  var n;
1547
- (n = E).deps ?? (n.deps = []), oi.call(E.deps, e) || E.deps.push(e);
1547
+ (n = E).deps ?? (n.deps = []), ri.call(E.deps, e) || E.deps.push(e);
1548
1548
  var o = e.reactions;
1549
- o === null ? e.reactions = [E] : oi.call(o, E) || o.push(E);
1549
+ o === null ? e.reactions = [E] : ri.call(o, E) || o.push(E);
1550
1550
  }
1551
1551
  }
1552
1552
  if (0) {
1553
- if (!ve && reactivity_loss_tracker && x === null && Fi === null && !reactivity_loss_tracker.warned && (reactivity_loss_tracker.effect.f & 2097152) === 0 && !reactivity_loss_tracker.effect_deps.has(e))
1553
+ if (!ve && reactivity_loss_tracker && x === null && Ki === null && !reactivity_loss_tracker.warned && (reactivity_loss_tracker.effect.f & 2097152) === 0 && !reactivity_loss_tracker.effect_deps.has(e))
1554
1554
  var r;
1555
1555
  if (tracing_mode_flag && !ve && tracing_expressions !== null && E !== null && tracing_expressions.reaction === E && !e.trace) {
1556
1556
  if (r)
@@ -1562,28 +1562,28 @@ function g(e) {
1562
1562
  var c = e;
1563
1563
  if (Be) {
1564
1564
  var p = c.v;
1565
- return ((c.f & 1024) === 0 && c.reactions !== null || Wo(c)) && (p = an(c)), et.set(c, p), p;
1565
+ return ((c.f & 1024) === 0 && c.reactions !== null || Oo(c)) && (p = ln(c)), et.set(c, p), p;
1566
1566
  }
1567
- var _ = (c.f & 512) === 0 && !ve && E !== null && (ii || (E.f & 512) !== 0), d = (c.f & Qi) === 0;
1568
- It(c) && (_ && (c.f |= 512), co(c)), _ && !d && (uo(c), Oo(c));
1567
+ var _ = (c.f & 512) === 0 && !ve && E !== null && (ni || (E.f & 512) !== 0), u = (c.f & en) === 0;
1568
+ It(c) && (_ && (c.f |= 512), lo(c)), _ && !u && (co(c), Lo(c));
1569
1569
  }
1570
1570
  if (J?.has(e)) return J.get(e);
1571
1571
  if ((e.f & 8388608) !== 0) throw e.v;
1572
1572
  return e.v;
1573
1573
  }
1574
- function Oo(e) {
1574
+ function Lo(e) {
1575
1575
  if (e.f |= 512, e.deps !== null)
1576
1576
  for (const t of e.deps)
1577
- (t.reactions ?? (t.reactions = [])).push(e), (t.f & 2) !== 0 && (t.f & 512) === 0 && (uo(t), Oo(t));
1577
+ (t.reactions ?? (t.reactions = [])).push(e), (t.f & 2) !== 0 && (t.f & 512) === 0 && (co(t), Lo(t));
1578
1578
  }
1579
- function Wo(e) {
1579
+ function Oo(e) {
1580
1580
  if (e.v === B) return !0;
1581
1581
  if (e.deps === null) return !1;
1582
1582
  for (const t of e.deps)
1583
- if (et.has(t) || (t.f & 2) !== 0 && Wo(t)) return !0;
1583
+ if (et.has(t) || (t.f & 2) !== 0 && Oo(t)) return !0;
1584
1584
  return !1;
1585
1585
  }
1586
- function Io(e) {
1586
+ function Wo(e) {
1587
1587
  var t = ve;
1588
1588
  try {
1589
1589
  return ve = !0, e();
@@ -1591,19 +1591,19 @@ function Io(e) {
1591
1591
  ve = t;
1592
1592
  }
1593
1593
  }
1594
- var pt = /* @__PURE__ */ Symbol("events"), Bo = /* @__PURE__ */ new Set(), Ji = /* @__PURE__ */ new Set();
1595
- function Ut(e, t, i) {
1594
+ var pt = /* @__PURE__ */ Symbol("events"), Io = /* @__PURE__ */ new Set(), Yi = /* @__PURE__ */ new Set();
1595
+ function Jt(e, t, i) {
1596
1596
  (t[pt] ?? (t[pt] = {}))[e] = i;
1597
1597
  }
1598
1598
  function as(e) {
1599
- for (var t = 0; t < e.length; t++) Bo.add(e[t]);
1600
- for (var i of Ji) i(e);
1599
+ for (var t = 0; t < e.length; t++) Io.add(e[t]);
1600
+ for (var i of Yi) i(e);
1601
1601
  }
1602
- var Nn = null;
1603
- function Pn(e) {
1602
+ var Cn = null;
1603
+ function Nn(e) {
1604
1604
  var t = this, i = t.ownerDocument, n = e.type, o = e.composedPath?.() || [], r = o[0] || e.target;
1605
- Nn = e;
1606
- var a = 0, l = Nn === e && e[pt];
1605
+ Cn = e;
1606
+ var a = 0, l = Cn === e && e[pt];
1607
1607
  if (l) {
1608
1608
  var c = o.indexOf(l);
1609
1609
  if (c !== -1 && (t === document || t === window)) {
@@ -1615,33 +1615,33 @@ function Pn(e) {
1615
1615
  c <= p && (a = c);
1616
1616
  }
1617
1617
  if (r = o[a] || e.target, r !== t) {
1618
- si(e, "currentTarget", {
1618
+ ai(e, "currentTarget", {
1619
1619
  configurable: !0,
1620
1620
  get() {
1621
1621
  return r || i;
1622
1622
  }
1623
1623
  });
1624
- var _ = E, d = $;
1624
+ var _ = E, u = $;
1625
1625
  ce(null), Ae(null);
1626
1626
  try {
1627
- for (var f, u = []; r !== null && r !== t; ) {
1627
+ for (var d, f = []; r !== null && r !== t; ) {
1628
1628
  try {
1629
1629
  var v = r[pt]?.[n];
1630
1630
  v != null && (!r.disabled || e.target === r) && v.call(r, e);
1631
1631
  } catch (y) {
1632
- f ? u.push(y) : f = y;
1632
+ d ? f.push(y) : d = y;
1633
1633
  }
1634
1634
  if (e.cancelBubble) break;
1635
1635
  a++, r = a < o.length ? o[a] : null;
1636
1636
  }
1637
- if (f) {
1638
- for (let y of u) queueMicrotask(() => {
1637
+ if (d) {
1638
+ for (let y of f) queueMicrotask(() => {
1639
1639
  throw y;
1640
1640
  });
1641
- throw f;
1641
+ throw d;
1642
1642
  }
1643
1643
  } finally {
1644
- e[pt] = t, delete e.currentTarget, ce(_), Ae(d);
1644
+ e[pt] = t, delete e.currentTarget, ce(_), Ae(u);
1645
1645
  }
1646
1646
  }
1647
1647
  }
@@ -1649,8 +1649,8 @@ var ls = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.t
1649
1649
  function cs(e) {
1650
1650
  return ls?.createHTML(e) ?? e;
1651
1651
  }
1652
- function us(e) {
1653
- var t = un("template");
1652
+ function fs(e) {
1653
+ var t = dn("template");
1654
1654
  return t.innerHTML = cs(e.replaceAll("<!>", "<!---->")), t.content;
1655
1655
  }
1656
1656
  function We(e, t) {
@@ -1666,10 +1666,10 @@ function We(e, t) {
1666
1666
  function bt(e, t) {
1667
1667
  var i = (t & 1) !== 0, n = (t & 2) !== 0, o, r = !e.startsWith("<!>");
1668
1668
  return () => {
1669
- if (M)
1669
+ if (j)
1670
1670
  return We(z, null), z;
1671
- o === void 0 && (o = us(r ? e : "<!>" + e), i || (o = /* @__PURE__ */ ot(o)));
1672
- var a = n || ko ? document.importNode(o, !0) : o.cloneNode(!0);
1671
+ o === void 0 && (o = fs(r ? e : "<!>" + e), i || (o = /* @__PURE__ */ ot(o)));
1672
+ var a = n || wo ? document.importNode(o, !0) : o.cloneNode(!0);
1673
1673
  if (i) {
1674
1674
  var l = /* @__PURE__ */ ot(a), c = a.lastChild;
1675
1675
  We(l, c);
@@ -1677,29 +1677,29 @@ function bt(e, t) {
1677
1677
  return a;
1678
1678
  };
1679
1679
  }
1680
- function ji(e = "") {
1681
- if (!M) {
1680
+ function Ri(e = "") {
1681
+ if (!j) {
1682
1682
  var t = Q(e + "");
1683
1683
  return We(t, t), t;
1684
1684
  }
1685
1685
  var i = z;
1686
- return i.nodeType !== 3 ? (i.before(i = Q()), Y(i)) : Si(i), We(i, i), i;
1686
+ return i.nodeType !== 3 ? (i.before(i = Q()), Y(i)) : $i(i), We(i, i), i;
1687
1687
  }
1688
- function fs() {
1689
- if (M)
1688
+ function ds() {
1689
+ if (j)
1690
1690
  return We(z, null), z;
1691
1691
  var e = document.createDocumentFragment(), t = document.createComment(""), i = Q();
1692
1692
  return e.append(t, i), We(t, i), e;
1693
1693
  }
1694
1694
  function _e(e, t) {
1695
- if (M) {
1695
+ if (j) {
1696
1696
  var i = $;
1697
- ((i.f & 32768) === 0 || i.nodes.end === null) && (i.nodes.end = z), wi();
1697
+ ((i.f & 32768) === 0 || i.nodes.end === null) && (i.nodes.end = z), ki();
1698
1698
  return;
1699
1699
  }
1700
1700
  e !== null && e.before(t);
1701
1701
  }
1702
- var ds = [
1702
+ var us = [
1703
1703
  "allowfullscreen",
1704
1704
  "async",
1705
1705
  "autofocus",
@@ -1729,7 +1729,7 @@ var ds = [
1729
1729
  "disablepictureinpicture",
1730
1730
  "disableremoteplayback"
1731
1731
  ], Js = [
1732
- ...ds,
1732
+ ...us,
1733
1733
  "formNoValidate",
1734
1734
  "isMap",
1735
1735
  "noModule",
@@ -1748,13 +1748,13 @@ var ds = [
1748
1748
  function _s(e) {
1749
1749
  return ps.includes(e);
1750
1750
  }
1751
- var ms = [
1751
+ var hs = [
1752
1752
  "$state",
1753
1753
  "$state.raw",
1754
1754
  "$derived",
1755
1755
  "$derived.by"
1756
1756
  ], Ys = [
1757
- ...ms,
1757
+ ...hs,
1758
1758
  "$state.eager",
1759
1759
  "$state.snapshot",
1760
1760
  "$props",
@@ -1769,116 +1769,116 @@ var ms = [
1769
1769
  "$inspect().with",
1770
1770
  "$inspect.trace",
1771
1771
  "$host"
1772
- ], Ln = !0;
1773
- function de(e, t) {
1772
+ ], Pn = !0;
1773
+ function ue(e, t) {
1774
1774
  var i, n = t == null ? "" : typeof t == "object" ? `${t}` : t;
1775
- n !== ((i = e)[ei] ?? (i[ei] = e.nodeValue)) && (e[ei] = n, e.nodeValue = `${n}`);
1775
+ n !== ((i = e)[ti] ?? (i[ti] = e.nodeValue)) && (e[ti] = n, e.nodeValue = `${n}`);
1776
1776
  }
1777
- function Ho(e, t) {
1778
- return Do(e, t);
1777
+ function Bo(e, t) {
1778
+ return Ho(e, t);
1779
1779
  }
1780
- function hs(e, t) {
1781
- Ui(), t.intro = t.intro ?? !1;
1782
- const i = t.target, n = M, o = z;
1780
+ function ms(e, t) {
1781
+ Ji(), t.intro = t.intro ?? !1;
1782
+ const i = t.target, n = j, o = z;
1783
1783
  try {
1784
1784
  for (var r = /* @__PURE__ */ ot(i); r && (r.nodeType !== 8 || r.data !== "["); ) r = /* @__PURE__ */ Ee(r);
1785
1785
  if (!r) throw _t;
1786
- Te(!0), Y(r);
1787
- const a = Do(e, {
1786
+ Me(!0), Y(r);
1787
+ const a = Ho(e, {
1788
1788
  ...t,
1789
1789
  anchor: r
1790
1790
  });
1791
- return Te(!1), a;
1791
+ return Me(!1), a;
1792
1792
  } catch (a) {
1793
1793
  if (a instanceof Error && a.message.split(`
1794
1794
  `).some((l) => l.startsWith("https://svelte.dev/e/"))) throw a;
1795
- return a !== _t && console.warn("Failed to hydrate: ", a), t.recover === !1 && dr(), Ui(), $o(i), Te(!1), Ho(e, t);
1795
+ return a !== _t && console.warn("Failed to hydrate: ", a), t.recover === !1 && dr(), Ji(), So(i), Me(!1), Bo(e, t);
1796
1796
  } finally {
1797
- Te(n), Y(o);
1797
+ Me(n), Y(o);
1798
1798
  }
1799
1799
  }
1800
- var Jt = /* @__PURE__ */ new Map();
1801
- function Do(e, { target: t, anchor: i, props: n = {}, events: o, context: r, intro: a = !0, transformError: l }) {
1802
- Ui();
1800
+ var Yt = /* @__PURE__ */ new Map();
1801
+ function Ho(e, { target: t, anchor: i, props: n = {}, events: o, context: r, intro: a = !0, transformError: l }) {
1802
+ Ji();
1803
1803
  var c = void 0, p = Qr(() => {
1804
1804
  var _ = i ?? t.appendChild(Q());
1805
- Mr(_, { pending: () => {
1806
- } }, (u) => {
1807
- Zn({});
1805
+ zr(_, { pending: () => {
1806
+ } }, (f) => {
1807
+ Vn({});
1808
1808
  var v = X;
1809
- if (r && (v.c = r), o && (n.$$events = o), M && We(u, null), Ln = a, c = e(u, n) || {}, Ln = !0, M && ($.nodes.end = z, z === null || z.nodeType !== 8 || z.data !== "]"))
1810
- throw bi(), _t;
1811
- Qn();
1809
+ if (r && (v.c = r), o && (n.$$events = o), j && We(f, null), Pn = a, c = e(f, n) || {}, Pn = !0, j && ($.nodes.end = z, z === null || z.nodeType !== 8 || z.data !== "]"))
1810
+ throw wi(), _t;
1811
+ Zn();
1812
1812
  }, l);
1813
- var d = /* @__PURE__ */ new Set(), f = (u) => {
1814
- for (var v = 0; v < u.length; v++) {
1815
- var y = u[v];
1816
- if (!d.has(y)) {
1817
- d.add(y);
1818
- var m = _s(y);
1813
+ var u = /* @__PURE__ */ new Set(), d = (f) => {
1814
+ for (var v = 0; v < f.length; v++) {
1815
+ var y = f[v];
1816
+ if (!u.has(y)) {
1817
+ u.add(y);
1818
+ var h = _s(y);
1819
1819
  for (const W of [t, document]) {
1820
- var h = Jt.get(W);
1821
- h === void 0 && (h = /* @__PURE__ */ new Map(), Jt.set(W, h));
1822
- var A = h.get(y);
1823
- A === void 0 ? (W.addEventListener(y, Pn, { passive: m }), h.set(y, 1)) : h.set(y, A + 1);
1820
+ var m = Yt.get(W);
1821
+ m === void 0 && (m = /* @__PURE__ */ new Map(), Yt.set(W, m));
1822
+ var A = m.get(y);
1823
+ A === void 0 ? (W.addEventListener(y, Nn, { passive: h }), m.set(y, 1)) : m.set(y, A + 1);
1824
1824
  }
1825
1825
  }
1826
1826
  }
1827
1827
  };
1828
- return f(gi(Bo)), Ji.add(f), () => {
1829
- for (var u of d) for (const m of [t, document]) {
1830
- var v = Jt.get(m), y = v.get(u);
1831
- --y == 0 ? (m.removeEventListener(u, Pn), v.delete(u), v.size === 0 && Jt.delete(m)) : v.set(u, y);
1828
+ return d(bi(Io)), Yi.add(d), () => {
1829
+ for (var f of u) for (const h of [t, document]) {
1830
+ var v = Yt.get(h), y = v.get(f);
1831
+ --y == 0 ? (h.removeEventListener(f, Nn), v.delete(f), v.size === 0 && Yt.delete(h)) : v.set(f, y);
1832
1832
  }
1833
- Ji.delete(f), _ !== i && _.parentNode?.removeChild(_);
1833
+ Yi.delete(d), _ !== i && _.parentNode?.removeChild(_);
1834
1834
  };
1835
1835
  });
1836
- return Yi.set(c, p), c;
1836
+ return Vi.set(c, p), c;
1837
1837
  }
1838
- var Yi = /* @__PURE__ */ new WeakMap();
1838
+ var Vi = /* @__PURE__ */ new WeakMap();
1839
1839
  function vs(e, t) {
1840
- const i = Yi.get(e);
1841
- return i ? (Yi.delete(e), i(t)) : Promise.resolve();
1840
+ const i = Vi.get(e);
1841
+ return i ? (Vi.delete(e), i(t)) : Promise.resolve();
1842
1842
  }
1843
- var Me = /* @__PURE__ */ new WeakMap(), Ne = /* @__PURE__ */ new WeakMap(), pe = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), Ri = /* @__PURE__ */ new WeakMap(), Ci = /* @__PURE__ */ new WeakMap(), On = /* @__PURE__ */ new WeakMap(), ys = class {
1843
+ var je = /* @__PURE__ */ new WeakMap(), Ne = /* @__PURE__ */ new WeakMap(), pe = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), Ci = /* @__PURE__ */ new WeakMap(), Ni = /* @__PURE__ */ new WeakMap(), Ln = /* @__PURE__ */ new WeakMap(), ys = class {
1844
1844
  constructor(e, t = !0) {
1845
- N(this, "anchor", void 0), w(this, Me, /* @__PURE__ */ new Map()), w(this, Ne, /* @__PURE__ */ new Map()), w(this, pe, /* @__PURE__ */ new Map()), w(this, kt, /* @__PURE__ */ new Set()), w(this, Ri, !0), w(this, Ci, (i) => {
1846
- if (s(Me, this).has(i)) {
1847
- var n = s(Me, this).get(i), o = s(Ne, this).get(n);
1845
+ N(this, "anchor", void 0), w(this, je, /* @__PURE__ */ new Map()), w(this, Ne, /* @__PURE__ */ new Map()), w(this, pe, /* @__PURE__ */ new Map()), w(this, kt, /* @__PURE__ */ new Set()), w(this, Ci, !0), w(this, Ni, (i) => {
1846
+ if (s(je, this).has(i)) {
1847
+ var n = s(je, this).get(i), o = s(Ne, this).get(n);
1848
1848
  if (o)
1849
- vi(o), s(kt, this).delete(n);
1849
+ yi(o), s(kt, this).delete(n);
1850
1850
  else {
1851
1851
  var r = s(pe, this).get(n);
1852
- r && (vi(r.effect), s(Ne, this).set(n, r.effect), s(pe, this).delete(n), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), o = r.effect);
1852
+ r && (yi(r.effect), s(Ne, this).set(n, r.effect), s(pe, this).delete(n), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), o = r.effect);
1853
1853
  }
1854
- for (const [a, l] of s(Me, this)) {
1855
- if (s(Me, this).delete(a), a === i) break;
1854
+ for (const [a, l] of s(je, this)) {
1855
+ if (s(je, this).delete(a), a === i) break;
1856
1856
  const c = s(pe, this).get(l);
1857
1857
  c && (V(c.effect), s(pe, this).delete(l));
1858
1858
  }
1859
1859
  for (const [a, l] of s(Ne, this)) {
1860
1860
  if (a === n || s(kt, this).has(a)) continue;
1861
1861
  const c = () => {
1862
- if (Array.from(s(Me, this).values()).includes(a)) {
1862
+ if (Array.from(s(je, this).values()).includes(a)) {
1863
1863
  var p = document.createDocumentFragment();
1864
- _n(l, p), p.append(Q()), s(pe, this).set(a, {
1864
+ hn(l, p), p.append(Q()), s(pe, this).set(a, {
1865
1865
  effect: l,
1866
1866
  fragment: p
1867
1867
  });
1868
1868
  } else V(l);
1869
1869
  s(kt, this).delete(a), s(Ne, this).delete(a);
1870
1870
  };
1871
- s(Ri, this) || !o ? (s(kt, this).add(a), at(l, c, !1)) : c();
1871
+ s(Ci, this) || !o ? (s(kt, this).add(a), at(l, c, !1)) : c();
1872
1872
  }
1873
1873
  }
1874
- }), w(this, On, (i) => {
1875
- s(Me, this).delete(i);
1876
- const n = Array.from(s(Me, this).values());
1874
+ }), w(this, Ln, (i) => {
1875
+ s(je, this).delete(i);
1876
+ const n = Array.from(s(je, this).values());
1877
1877
  for (const [o, r] of s(pe, this)) n.includes(o) || (V(r.effect), s(pe, this).delete(o));
1878
- }), this.anchor = e, b(Ri, this, t);
1878
+ }), this.anchor = e, b(Ci, this, t);
1879
1879
  }
1880
1880
  ensure(e, t) {
1881
- var i = x, n = Ao();
1881
+ var i = x, n = $o();
1882
1882
  if (t && !s(Ne, this).has(e) && !s(pe, this).has(e)) if (n) {
1883
1883
  var o = document.createDocumentFragment(), r = Q();
1884
1884
  o.append(r), s(pe, this).set(e, {
@@ -1886,47 +1886,47 @@ var Me = /* @__PURE__ */ new WeakMap(), Ne = /* @__PURE__ */ new WeakMap(), pe =
1886
1886
  fragment: o
1887
1887
  });
1888
1888
  } else s(Ne, this).set(e, le(() => t(this.anchor)));
1889
- if (s(Me, this).set(i, e), n) {
1889
+ if (s(je, this).set(i, e), n) {
1890
1890
  for (const [a, l] of s(Ne, this)) a === e ? i.unskip_effect(l) : i.skip_effect(l);
1891
1891
  for (const [a, l] of s(pe, this)) a === e ? i.unskip_effect(l.effect) : i.skip_effect(l.effect);
1892
- i.oncommit(s(Ci, this)), i.ondiscard(s(On, this));
1892
+ i.oncommit(s(Ni, this)), i.ondiscard(s(Ln, this));
1893
1893
  } else
1894
- M && (this.anchor = z), s(Ci, this).call(this, i);
1894
+ j && (this.anchor = z), s(Ni, this).call(this, i);
1895
1895
  }
1896
1896
  };
1897
- function Ni(e, t, i = !1) {
1897
+ function Pi(e, t, i = !1) {
1898
1898
  var n;
1899
- M && (n = z, wi());
1900
- var o = new ys(e), r = i ? en : 0;
1899
+ j && (n = z, ki());
1900
+ var o = new ys(e), r = i ? tn : 0;
1901
1901
  function a(l, c) {
1902
- if (M) {
1903
- var p = Jn(n);
1902
+ if (j) {
1903
+ var p = Un(n);
1904
1904
  if (l !== parseInt(p.substring(1))) {
1905
- var _ = li();
1906
- Y(_), o.anchor = _, Te(!1), o.ensure(l, c), Te(!0);
1905
+ var _ = ci();
1906
+ Y(_), o.anchor = _, Me(!1), o.ensure(l, c), Me(!0);
1907
1907
  return;
1908
1908
  }
1909
1909
  }
1910
1910
  o.ensure(l, c);
1911
1911
  }
1912
- dn(() => {
1912
+ pn(() => {
1913
1913
  var l = !1;
1914
1914
  t((c, p = 0) => {
1915
1915
  l = !0, a(p, c);
1916
1916
  }), l || a(-1, null);
1917
1917
  }, r);
1918
1918
  }
1919
- function Wn(e, t) {
1919
+ function On(e, t) {
1920
1920
  return t;
1921
1921
  }
1922
1922
  function gs(e, t, i) {
1923
1923
  for (var n = [], o = t.length, r, a = t.length, l = 0; l < o; l++) {
1924
- let d = t[l];
1925
- at(d, () => {
1924
+ let u = t[l];
1925
+ at(u, () => {
1926
1926
  if (r) {
1927
- if (r.pending.delete(d), r.done.add(d), r.pending.size === 0) {
1928
- var f = e.outrogroups;
1929
- Vi(e, gi(r.done)), f.delete(r), f.size === 0 && (e.outrogroups = null);
1927
+ if (r.pending.delete(u), r.done.add(u), r.pending.size === 0) {
1928
+ var d = e.outrogroups;
1929
+ Zi(e, bi(r.done)), d.delete(r), d.size === 0 && (e.outrogroups = null);
1930
1930
  }
1931
1931
  } else a -= 1;
1932
1932
  }, !1);
@@ -1935,16 +1935,16 @@ function gs(e, t, i) {
1935
1935
  var c = n.length === 0 && i !== null;
1936
1936
  if (c) {
1937
1937
  var p = i, _ = p.parentNode;
1938
- $o(_), _.append(p), e.items.clear();
1938
+ So(_), _.append(p), e.items.clear();
1939
1939
  }
1940
- Vi(e, t, !c);
1940
+ Zi(e, t, !c);
1941
1941
  } else
1942
1942
  r = {
1943
1943
  pending: new Set(t),
1944
1944
  done: /* @__PURE__ */ new Set()
1945
1945
  }, (e.outrogroups ?? (e.outrogroups = /* @__PURE__ */ new Set())).add(r);
1946
1946
  }
1947
- function Vi(e, t, i = !0) {
1947
+ function Zi(e, t, i = !0) {
1948
1948
  var n;
1949
1949
  if (e.pending.size > 0) {
1950
1950
  n = /* @__PURE__ */ new Set();
@@ -1952,122 +1952,122 @@ function Vi(e, t, i = !0) {
1952
1952
  }
1953
1953
  for (var o = 0; o < t.length; o++) {
1954
1954
  var r = t[o];
1955
- n?.has(r) ? (r.f |= Mt, _n(r, document.createDocumentFragment())) : V(t[o], i);
1955
+ n?.has(r) ? (r.f |= jt, hn(r, document.createDocumentFragment())) : V(t[o], i);
1956
1956
  }
1957
1957
  }
1958
- var Yt;
1959
- function Vt(e, t, i, n, o, r = null) {
1958
+ var Vt;
1959
+ function Zt(e, t, i, n, o, r = null) {
1960
1960
  var a = e, l = /* @__PURE__ */ new Map();
1961
1961
  if ((t & 4) !== 0) {
1962
1962
  var c = e;
1963
- a = M ? Y(/* @__PURE__ */ ot(c)) : c.appendChild(Q());
1964
- }
1965
- M && wi();
1966
- var p = null, _ = /* @__PURE__ */ sn(() => {
1967
- var h = i();
1968
- return Kn(h) ? h : h == null ? [] : gi(h);
1969
- }), d, f = /* @__PURE__ */ new Map(), u = !0;
1970
- function v(h) {
1971
- (m.effect.f & 16384) === 0 && (m.pending.delete(h), m.fallback = p, bs(m, d, a, t, n), p !== null && (d.length === 0 ? (p.f & 33554432) === 0 ? vi(p) : (p.f ^= Mt, zt(p, null, a)) : at(p, () => {
1963
+ a = j ? Y(/* @__PURE__ */ ot(c)) : c.appendChild(Q());
1964
+ }
1965
+ j && ki();
1966
+ var p = null, _ = /* @__PURE__ */ an(() => {
1967
+ var m = i();
1968
+ return Fn(m) ? m : m == null ? [] : bi(m);
1969
+ }), u, d = /* @__PURE__ */ new Map(), f = !0;
1970
+ function v(m) {
1971
+ (h.effect.f & 16384) === 0 && (h.pending.delete(m), h.fallback = p, bs(h, u, a, t, n), p !== null && (u.length === 0 ? (p.f & 33554432) === 0 ? yi(p) : (p.f ^= jt, zt(p, null, a)) : at(p, () => {
1972
1972
  p = null;
1973
1973
  })));
1974
1974
  }
1975
- function y(h) {
1976
- m.pending.delete(h);
1975
+ function y(m) {
1976
+ h.pending.delete(m);
1977
1977
  }
1978
- var m = {
1979
- effect: dn(() => {
1980
- d = g(_);
1981
- var h = d.length;
1978
+ var h = {
1979
+ effect: pn(() => {
1980
+ u = g(_);
1981
+ var m = u.length;
1982
1982
  let A = !1;
1983
- M && Jn(a) === "[!" != (h === 0) && (a = li(), Y(a), Te(!1), A = !0);
1984
- for (var W = /* @__PURE__ */ new Set(), S = x, D = Ao(), L = 0; L < h; L += 1) {
1985
- M && z.nodeType === 8 && z.data === "]" && (a = z, A = !0, Te(!1));
1986
- var q = d[L], ue = n(q, L);
1983
+ j && Un(a) === "[!" != (m === 0) && (a = ci(), Y(a), Me(!1), A = !0);
1984
+ for (var W = /* @__PURE__ */ new Set(), S = x, D = $o(), L = 0; L < m; L += 1) {
1985
+ j && z.nodeType === 8 && z.data === "]" && (a = z, A = !0, Me(!1));
1986
+ var q = u[L], fe = n(q, L);
1987
1987
  if (0)
1988
1988
  var Bt;
1989
- var I = u ? null : l.get(ue);
1990
- I ? (I.v && vt(I.v, q), I.i && vt(I.i, L), D && S.unskip_effect(I.e)) : (I = ws(l, u ? a : Yt ?? (Yt = Q()), q, ue, L, o, t, i), u || (I.e.f |= Mt), l.set(ue, I)), W.add(ue);
1989
+ var I = f ? null : l.get(fe);
1990
+ I ? (I.v && vt(I.v, q), I.i && vt(I.i, L), D && S.unskip_effect(I.e)) : (I = ws(l, f ? a : Vt ?? (Vt = Q()), q, fe, L, o, t, i), f || (I.e.f |= jt), l.set(fe, I)), W.add(fe);
1991
1991
  }
1992
- if (h === 0 && r && !p && (u ? p = le(() => r(a)) : (p = le(() => r(Yt ?? (Yt = Q()))), p.f |= Mt)), h > W.size && ur("", "", ""), M && h > 0 && Y(li()), !u)
1993
- if (f.set(S, W), D) {
1994
- for (const [$i, Ai] of l) W.has($i) || S.skip_effect(Ai.e);
1992
+ if (m === 0 && r && !p && (f ? p = le(() => r(a)) : (p = le(() => r(Vt ?? (Vt = Q()))), p.f |= jt)), m > W.size && cr("", "", ""), j && m > 0 && Y(ci()), !f)
1993
+ if (d.set(S, W), D) {
1994
+ for (const [Ai, Ei] of l) W.has(Ai) || S.skip_effect(Ei.e);
1995
1995
  S.oncommit(v), S.ondiscard(y);
1996
1996
  } else v(S);
1997
- A && Te(!0), g(_);
1997
+ A && Me(!0), g(_);
1998
1998
  }),
1999
1999
  flags: t,
2000
2000
  items: l,
2001
- pending: f,
2001
+ pending: d,
2002
2002
  outrogroups: null,
2003
2003
  fallback: p
2004
2004
  };
2005
- u = !1, M && (a = z);
2005
+ f = !1, j && (a = z);
2006
2006
  }
2007
2007
  function xt(e) {
2008
2008
  for (; e !== null && (e.f & 32) === 0; ) e = e.next;
2009
2009
  return e;
2010
2010
  }
2011
2011
  function bs(e, t, i, n, o) {
2012
- var r = (n & 8) !== 0, a = t.length, l = e.items, c = xt(e.effect.first), p, _ = null, d, f = [], u = [], v, y, m, h;
2013
- if (r) for (h = 0; h < a; h += 1)
2014
- v = t[h], y = o(v, h), m = l.get(y).e, (m.f & 33554432) === 0 && (m.nodes?.a?.measure(), (d ?? (d = /* @__PURE__ */ new Set())).add(m));
2015
- for (h = 0; h < a; h += 1) {
2016
- if (v = t[h], y = o(v, h), m = l.get(y).e, e.outrogroups !== null) for (const I of e.outrogroups)
2017
- I.pending.delete(m), I.done.delete(m);
2018
- if ((m.f & 8192) !== 0 && (vi(m), r && (m.nodes?.a?.unfix(), (d ?? (d = /* @__PURE__ */ new Set())).delete(m))), (m.f & 33554432) !== 0)
2019
- if (m.f ^= Mt, m === c) zt(m, null, i);
2012
+ var r = (n & 8) !== 0, a = t.length, l = e.items, c = xt(e.effect.first), p, _ = null, u, d = [], f = [], v, y, h, m;
2013
+ if (r) for (m = 0; m < a; m += 1)
2014
+ v = t[m], y = o(v, m), h = l.get(y).e, (h.f & 33554432) === 0 && (h.nodes?.a?.measure(), (u ?? (u = /* @__PURE__ */ new Set())).add(h));
2015
+ for (m = 0; m < a; m += 1) {
2016
+ if (v = t[m], y = o(v, m), h = l.get(y).e, e.outrogroups !== null) for (const I of e.outrogroups)
2017
+ I.pending.delete(h), I.done.delete(h);
2018
+ if ((h.f & 8192) !== 0 && (yi(h), r && (h.nodes?.a?.unfix(), (u ?? (u = /* @__PURE__ */ new Set())).delete(h))), (h.f & 33554432) !== 0)
2019
+ if (h.f ^= jt, h === c) zt(h, null, i);
2020
2020
  else {
2021
2021
  var A = _ ? _.next : c;
2022
- m === e.effect.last && (e.effect.last = m.prev), m.prev && (m.prev.next = m.next), m.next && (m.next.prev = m.prev), Pe(e, _, m), Pe(e, m, A), zt(m, A, i), _ = m, f = [], u = [], c = xt(_.next);
2022
+ h === e.effect.last && (e.effect.last = h.prev), h.prev && (h.prev.next = h.next), h.next && (h.next.prev = h.prev), Pe(e, _, h), Pe(e, h, A), zt(h, A, i), _ = h, d = [], f = [], c = xt(_.next);
2023
2023
  continue;
2024
2024
  }
2025
- if (m !== c) {
2026
- if (p !== void 0 && p.has(m)) {
2027
- if (f.length < u.length) {
2028
- var W = u[0], S;
2025
+ if (h !== c) {
2026
+ if (p !== void 0 && p.has(h)) {
2027
+ if (d.length < f.length) {
2028
+ var W = f[0], S;
2029
2029
  _ = W.prev;
2030
- var D = f[0], L = f[f.length - 1];
2031
- for (S = 0; S < f.length; S += 1) zt(f[S], W, i);
2032
- for (S = 0; S < u.length; S += 1) p.delete(u[S]);
2033
- Pe(e, D.prev, L.next), Pe(e, _, D), Pe(e, L, W), c = W, _ = L, h -= 1, f = [], u = [];
2030
+ var D = d[0], L = d[d.length - 1];
2031
+ for (S = 0; S < d.length; S += 1) zt(d[S], W, i);
2032
+ for (S = 0; S < f.length; S += 1) p.delete(f[S]);
2033
+ Pe(e, D.prev, L.next), Pe(e, _, D), Pe(e, L, W), c = W, _ = L, m -= 1, d = [], f = [];
2034
2034
  } else
2035
- p.delete(m), zt(m, c, i), Pe(e, m.prev, m.next), Pe(e, m, _ === null ? e.effect.first : _.next), Pe(e, _, m), _ = m;
2035
+ p.delete(h), zt(h, c, i), Pe(e, h.prev, h.next), Pe(e, h, _ === null ? e.effect.first : _.next), Pe(e, _, h), _ = h;
2036
2036
  continue;
2037
2037
  }
2038
- for (f = [], u = []; c !== null && c !== m; )
2039
- (p ?? (p = /* @__PURE__ */ new Set())).add(c), u.push(c), c = xt(c.next);
2038
+ for (d = [], f = []; c !== null && c !== h; )
2039
+ (p ?? (p = /* @__PURE__ */ new Set())).add(c), f.push(c), c = xt(c.next);
2040
2040
  if (c === null) continue;
2041
2041
  }
2042
- (m.f & 33554432) === 0 && f.push(m), _ = m, c = xt(m.next);
2042
+ (h.f & 33554432) === 0 && d.push(h), _ = h, c = xt(h.next);
2043
2043
  }
2044
2044
  if (e.outrogroups !== null) {
2045
- for (const I of e.outrogroups) I.pending.size === 0 && (Vi(e, gi(I.done)), e.outrogroups?.delete(I));
2045
+ for (const I of e.outrogroups) I.pending.size === 0 && (Zi(e, bi(I.done)), e.outrogroups?.delete(I));
2046
2046
  e.outrogroups.size === 0 && (e.outrogroups = null);
2047
2047
  }
2048
2048
  if (c !== null || p !== void 0) {
2049
2049
  var q = [];
2050
2050
  if (p !== void 0)
2051
- for (m of p) (m.f & 8192) === 0 && q.push(m);
2051
+ for (h of p) (h.f & 8192) === 0 && q.push(h);
2052
2052
  for (; c !== null; )
2053
2053
  (c.f & 8192) === 0 && c !== e.fallback && q.push(c), c = xt(c.next);
2054
- var ue = q.length;
2055
- if (ue > 0) {
2054
+ var fe = q.length;
2055
+ if (fe > 0) {
2056
2056
  var Bt = (n & 4) !== 0 && a === 0 ? i : null;
2057
2057
  if (r) {
2058
- for (h = 0; h < ue; h += 1) q[h].nodes?.a?.measure();
2059
- for (h = 0; h < ue; h += 1) q[h].nodes?.a?.fix();
2058
+ for (m = 0; m < fe; m += 1) q[m].nodes?.a?.measure();
2059
+ for (m = 0; m < fe; m += 1) q[m].nodes?.a?.fix();
2060
2060
  }
2061
2061
  gs(e, q, Bt);
2062
2062
  }
2063
2063
  }
2064
2064
  r && Ie(() => {
2065
- if (d !== void 0)
2066
- for (m of d) m.nodes?.a?.apply();
2065
+ if (u !== void 0)
2066
+ for (h of u) h.nodes?.a?.apply();
2067
2067
  });
2068
2068
  }
2069
2069
  function ws(e, t, i, n, o, r, a, l) {
2070
- var c = (a & 1) !== 0 ? (a & 16) === 0 ? /* @__PURE__ */ bo(i, !1, !1) : nt(i) : null, p = (a & 2) !== 0 ? nt(o) : null;
2070
+ var c = (a & 1) !== 0 ? (a & 16) === 0 ? /* @__PURE__ */ go(i, !1, !1) : nt(i) : null, p = (a & 2) !== 0 ? nt(o) : null;
2071
2071
  return {
2072
2072
  v: c,
2073
2073
  i: p,
@@ -2091,12 +2091,12 @@ function ks(e, t) {
2091
2091
  es(() => {
2092
2092
  var i = e.getRootNode(), n = i.host ? i : i.head ?? i.ownerDocument.head;
2093
2093
  if (!n.querySelector("#" + t.hash)) {
2094
- const o = un("style");
2094
+ const o = dn("style");
2095
2095
  o.id = t.hash, o.textContent = t.code, n.appendChild(o);
2096
2096
  }
2097
2097
  });
2098
2098
  }
2099
- var In = [...`
2099
+ var Wn = [...`
2100
2100
  \r\f \v\uFEFF`];
2101
2101
  function xs(e, t, i) {
2102
2102
  var n = e == null ? "" : "" + e;
@@ -2105,12 +2105,12 @@ function xs(e, t, i) {
2105
2105
  else if (n.length)
2106
2106
  for (var r = o.length, a = 0; (a = n.indexOf(o, a)) >= 0; ) {
2107
2107
  var l = a + r;
2108
- (a === 0 || In.includes(n[a - 1])) && (l === n.length || In.includes(n[l])) ? n = (a === 0 ? "" : n.substring(0, a)) + n.substring(l + 1) : a = l;
2108
+ (a === 0 || Wn.includes(n[a - 1])) && (l === n.length || Wn.includes(n[l])) ? n = (a === 0 ? "" : n.substring(0, a)) + n.substring(l + 1) : a = l;
2109
2109
  }
2110
2110
  }
2111
2111
  return n === "" ? null : n;
2112
2112
  }
2113
- function Bn(e, t = !1) {
2113
+ function In(e, t = !1) {
2114
2114
  var i = t ? " !important;" : ";", n = "";
2115
2115
  for (var o of Object.keys(e)) {
2116
2116
  var r = e[o];
@@ -2118,7 +2118,7 @@ function Bn(e, t = !1) {
2118
2118
  }
2119
2119
  return n;
2120
2120
  }
2121
- function Pi(e) {
2121
+ function Li(e) {
2122
2122
  return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
2123
2123
  }
2124
2124
  function Ss(e, t) {
@@ -2127,115 +2127,115 @@ function Ss(e, t) {
2127
2127
  if (Array.isArray(t) ? (n = t[0], o = t[1]) : n = t, e) {
2128
2128
  e = String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim();
2129
2129
  var r = !1, a = 0, l = !1, c = [];
2130
- n && c.push(...Object.keys(n).map(Pi)), o && c.push(...Object.keys(o).map(Pi));
2130
+ n && c.push(...Object.keys(n).map(Li)), o && c.push(...Object.keys(o).map(Li));
2131
2131
  var p = 0, _ = -1;
2132
2132
  const y = e.length;
2133
- for (var d = 0; d < y; d++) {
2134
- var f = e[d];
2135
- if (l ? f === "/" && e[d - 1] === "*" && (l = !1) : r ? r === f && (r = !1) : f === "/" && e[d + 1] === "*" ? l = !0 : f === '"' || f === "'" ? r = f : f === "(" ? a++ : f === ")" && a--, !l && r === !1 && a === 0) {
2136
- if (f === ":" && _ === -1) _ = d;
2137
- else if (f === ";" || d === y - 1) {
2133
+ for (var u = 0; u < y; u++) {
2134
+ var d = e[u];
2135
+ if (l ? d === "/" && e[u - 1] === "*" && (l = !1) : r ? r === d && (r = !1) : d === "/" && e[u + 1] === "*" ? l = !0 : d === '"' || d === "'" ? r = d : d === "(" ? a++ : d === ")" && a--, !l && r === !1 && a === 0) {
2136
+ if (d === ":" && _ === -1) _ = u;
2137
+ else if (d === ";" || u === y - 1) {
2138
2138
  if (_ !== -1) {
2139
- var u = Pi(e.substring(p, _).trim());
2140
- if (!c.includes(u)) {
2141
- f !== ";" && d++;
2142
- var v = e.substring(p, d).trim();
2139
+ var f = Li(e.substring(p, _).trim());
2140
+ if (!c.includes(f)) {
2141
+ d !== ";" && u++;
2142
+ var v = e.substring(p, u).trim();
2143
2143
  i += " " + v + ";";
2144
2144
  }
2145
2145
  }
2146
- p = d + 1, _ = -1;
2146
+ p = u + 1, _ = -1;
2147
2147
  }
2148
2148
  }
2149
2149
  }
2150
2150
  }
2151
- return n && (i += Bn(n)), o && (i += Bn(o, !0)), i = i.trim(), i === "" ? null : i;
2151
+ return n && (i += In(n)), o && (i += In(o, !0)), i = i.trim(), i === "" ? null : i;
2152
2152
  }
2153
2153
  return e == null ? null : String(e);
2154
2154
  }
2155
- function Zt(e, t, i, n, o, r) {
2156
- var a = e[Ii];
2157
- if (M || a !== i || a === void 0) {
2155
+ function Qt(e, t, i, n, o, r) {
2156
+ var a = e[Bi];
2157
+ if (j || a !== i || a === void 0) {
2158
2158
  var l = xs(i, n, r);
2159
- (!M || l !== e.getAttribute("class")) && (l == null ? e.removeAttribute("class") : t ? e.className = l : e.setAttribute("class", l)), e[Ii] = i;
2159
+ (!j || l !== e.getAttribute("class")) && (l == null ? e.removeAttribute("class") : t ? e.className = l : e.setAttribute("class", l)), e[Bi] = i;
2160
2160
  } else if (r && o !== r) for (var c in r) {
2161
2161
  var p = !!r[c];
2162
2162
  (o == null || p !== !!o[c]) && e.classList.toggle(c, p);
2163
2163
  }
2164
2164
  return r;
2165
2165
  }
2166
- function Li(e, t = {}, i, n) {
2166
+ function Oi(e, t = {}, i, n) {
2167
2167
  for (var o in i) {
2168
2168
  var r = i[o];
2169
2169
  t[o] !== r && (i[o] == null ? e.style.removeProperty(o) : e.style.setProperty(o, r, n));
2170
2170
  }
2171
2171
  }
2172
- function Hn(e, t, i, n) {
2173
- var o = e[Bi];
2174
- if (M || o !== t) {
2172
+ function Bn(e, t, i, n) {
2173
+ var o = e[Hi];
2174
+ if (j || o !== t) {
2175
2175
  var r = Ss(t, n);
2176
- (!M || r !== e.getAttribute("style")) && (r == null ? e.removeAttribute("style") : e.style.cssText = r), e[Bi] = t;
2177
- } else n && (Array.isArray(n) ? (Li(e, i?.[0], n[0]), Li(e, i?.[1], n[1], "important")) : Li(e, i, n));
2176
+ (!j || r !== e.getAttribute("style")) && (r == null ? e.removeAttribute("style") : e.style.cssText = r), e[Hi] = t;
2177
+ } else n && (Array.isArray(n) ? (Oi(e, i?.[0], n[0]), Oi(e, i?.[1], n[1], "important")) : Oi(e, i, n));
2178
2178
  return n;
2179
2179
  }
2180
- var $s = /* @__PURE__ */ Symbol("is custom element"), As = /* @__PURE__ */ Symbol("is html"), Es = lr ? "link" : "LINK";
2180
+ var $s = /* @__PURE__ */ Symbol("is custom element"), As = /* @__PURE__ */ Symbol("is html"), Es = ar ? "link" : "LINK";
2181
2181
  function lt(e, t, i, n) {
2182
2182
  var o = zs(e);
2183
- if (M && (o[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Es)) {
2183
+ if (j && (o[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Es)) {
2184
2184
  n || void 0;
2185
2185
  return;
2186
2186
  }
2187
- o[t] !== (o[t] = i) && (t === "loading" && (e[sr] = i), i == null ? e.removeAttribute(t) : typeof i != "string" && Ms(e).includes(t) ? e[t] = i : e.setAttribute(t, i));
2187
+ o[t] !== (o[t] = i) && (t === "loading" && (e[rr] = i), i == null ? e.removeAttribute(t) : typeof i != "string" && js(e).includes(t) ? e[t] = i : e.setAttribute(t, i));
2188
2188
  }
2189
2189
  function zs(e) {
2190
2190
  var t;
2191
- return (t = e)[Wi] ?? (t[Wi] = {
2191
+ return (t = e)[Ii] ?? (t[Ii] = {
2192
2192
  [$s]: e.nodeName.includes("-"),
2193
2193
  [As]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
2194
2194
  });
2195
2195
  }
2196
- var Dn = /* @__PURE__ */ new Map();
2197
- function Ms(e) {
2198
- var t = e.getAttribute("is") || e.nodeName, i = Dn.get(t);
2196
+ var Hn = /* @__PURE__ */ new Map();
2197
+ function js(e) {
2198
+ var t = e.getAttribute("is") || e.nodeName, i = Hn.get(t);
2199
2199
  if (i) return i;
2200
- Dn.set(t, i = []);
2200
+ Hn.set(t, i = []);
2201
2201
  for (var n, o = e, r = Element.prototype; r !== o; ) {
2202
- n = Yo(o);
2202
+ n = Jo(o);
2203
2203
  for (var a in n) n[a].set && a !== "innerHTML" && a !== "textContent" && a !== "innerText" && i.push(a);
2204
- o = Xn(o);
2204
+ o = Kn(o);
2205
2205
  }
2206
2206
  return i;
2207
2207
  }
2208
- var Go, dt = /* @__PURE__ */ new WeakMap(), yi = /* @__PURE__ */ new WeakMap(), Oi = /* @__PURE__ */ new WeakMap(), Gn = /* @__PURE__ */ new WeakSet(), Fo = class {
2208
+ var Do, ut = /* @__PURE__ */ new WeakMap(), gi = /* @__PURE__ */ new WeakMap(), Wi = /* @__PURE__ */ new WeakMap(), Dn = /* @__PURE__ */ new WeakSet(), Go = class {
2209
2209
  constructor(e) {
2210
- nn(this, Gn), w(this, dt, /* @__PURE__ */ new WeakMap()), w(this, yi, void 0), w(this, Oi, void 0), b(Oi, this, e);
2210
+ on(this, Dn), w(this, ut, /* @__PURE__ */ new WeakMap()), w(this, gi, void 0), w(this, Wi, void 0), b(Wi, this, e);
2211
2211
  }
2212
2212
  observe(e, t) {
2213
- var i = s(dt, this).get(e) || /* @__PURE__ */ new Set();
2214
- return i.add(t), s(dt, this).set(e, i), k(Gn, this, Ts).call(this).observe(e, s(Oi, this)), () => {
2215
- var n = s(dt, this).get(e);
2216
- n.delete(t), n.size === 0 && (s(dt, this).delete(e), s(yi, this).unobserve(e));
2213
+ var i = s(ut, this).get(e) || /* @__PURE__ */ new Set();
2214
+ return i.add(t), s(ut, this).set(e, i), k(Dn, this, Ms).call(this).observe(e, s(Wi, this)), () => {
2215
+ var n = s(ut, this).get(e);
2216
+ n.delete(t), n.size === 0 && (s(ut, this).delete(e), s(gi, this).unobserve(e));
2217
2217
  };
2218
2218
  }
2219
2219
  };
2220
- Go = Fo;
2221
- function Ts() {
2222
- return s(yi, this) ?? b(yi, this, new ResizeObserver((e) => {
2220
+ Do = Go;
2221
+ function Ms() {
2222
+ return s(gi, this) ?? b(gi, this, new ResizeObserver((e) => {
2223
2223
  for (var t of e) {
2224
- Go.entries.set(t.target, t);
2225
- for (var i of s(dt, this).get(t.target) || []) i(t);
2224
+ Do.entries.set(t.target, t);
2225
+ for (var i of s(ut, this).get(t.target) || []) i(t);
2226
2226
  }
2227
2227
  }));
2228
2228
  }
2229
- N(Fo, "entries", /* @__PURE__ */ new WeakMap());
2230
- function Fn(e, t, i, n) {
2231
- var o = !ki || (i & 2) !== 0, r = (i & 8) !== 0, a = (i & 16) !== 0, l = n, c = !0, p = void 0, _ = () => a && o ? (p ?? (p = /* @__PURE__ */ Nt(n)), g(p)) : (c && (c = !1, l = a ? Io(n) : n), l);
2232
- let d;
2229
+ N(Go, "entries", /* @__PURE__ */ new WeakMap());
2230
+ function Gn(e, t, i, n) {
2231
+ var o = !xi || (i & 2) !== 0, r = (i & 8) !== 0, a = (i & 16) !== 0, l = n, c = !0, p = void 0, _ = () => a && o ? (p ?? (p = /* @__PURE__ */ Nt(n)), g(p)) : (c && (c = !1, l = a ? Wo(n) : n), l);
2232
+ let u;
2233
2233
  if (r) {
2234
- var f = Qt in e || Un in e;
2235
- d = Ye(e, t)?.set ?? (f && t in e ? (S) => e[t] = S : void 0);
2234
+ var d = ei in e || qn in e;
2235
+ u = Ye(e, t)?.set ?? (d && t in e ? (S) => e[t] = S : void 0);
2236
2236
  }
2237
- var u, v = !1;
2238
- r ? [u, v] = Ar(() => e[t]) : u = e[t], u === void 0 && n !== void 0 && (u = _(), d && (o && pr(t), d(u)));
2237
+ var f, v = !1;
2238
+ r ? [f, v] = $r(() => e[t]) : f = e[t], f === void 0 && n !== void 0 && (f = _(), u && (o && ur(t), u(f)));
2239
2239
  var y;
2240
2240
  if (o ? y = () => {
2241
2241
  var S = e[t];
@@ -2244,31 +2244,31 @@ function Fn(e, t, i, n) {
2244
2244
  var S = e[t];
2245
2245
  return S !== void 0 && (l = void 0), S === void 0 ? l : S;
2246
2246
  }, o && (i & 4) === 0) return y;
2247
- if (d) {
2248
- var m = e.$$legacy;
2247
+ if (u) {
2248
+ var h = e.$$legacy;
2249
2249
  return (function(S, D) {
2250
- return arguments.length > 0 ? ((!o || !D || m || v) && d(D ? y() : S), S) : y();
2250
+ return arguments.length > 0 ? ((!o || !D || h || v) && u(D ? y() : S), S) : y();
2251
2251
  });
2252
2252
  }
2253
- var h = !1, A = ((i & 1) !== 0 ? Nt : sn)(() => (h = !1, y()));
2253
+ var m = !1, A = ((i & 1) !== 0 ? Nt : an)(() => (m = !1, y()));
2254
2254
  r && g(A);
2255
2255
  var W = $;
2256
2256
  return (function(S, D) {
2257
2257
  if (arguments.length > 0) {
2258
2258
  const L = D ? g(A) : o && r ? Ue(S) : S;
2259
- return me(A, L), h = !0, l !== void 0 && (l = L), S;
2259
+ return he(A, L), m = !0, l !== void 0 && (l = L), S;
2260
2260
  }
2261
- return Be && h || (W.f & 16384) !== 0 ? A.v : g(A);
2261
+ return Be && m || (W.f & 16384) !== 0 ? A.v : g(A);
2262
2262
  });
2263
2263
  }
2264
- function js(e) {
2264
+ function Ts(e) {
2265
2265
  return new Rs(e);
2266
2266
  }
2267
2267
  var Fe = /* @__PURE__ */ new WeakMap(), we = /* @__PURE__ */ new WeakMap(), Rs = class {
2268
2268
  constructor(e) {
2269
2269
  w(this, Fe, void 0), w(this, we, void 0);
2270
2270
  var t = /* @__PURE__ */ new Map(), i = (o, r) => {
2271
- var a = /* @__PURE__ */ bo(r, !1, !1);
2271
+ var a = /* @__PURE__ */ go(r, !1, !1);
2272
2272
  return t.set(o, a), a;
2273
2273
  };
2274
2274
  const n = new Proxy({
@@ -2279,13 +2279,13 @@ var Fe = /* @__PURE__ */ new WeakMap(), we = /* @__PURE__ */ new WeakMap(), Rs =
2279
2279
  return g(t.get(r) ?? i(r, Reflect.get(o, r)));
2280
2280
  },
2281
2281
  has(o, r) {
2282
- return r === Un ? !0 : (g(t.get(r) ?? i(r, Reflect.get(o, r))), Reflect.has(o, r));
2282
+ return r === qn ? !0 : (g(t.get(r) ?? i(r, Reflect.get(o, r))), Reflect.has(o, r));
2283
2283
  },
2284
2284
  set(o, r, a) {
2285
- return me(t.get(r) ?? i(r, a), a), Reflect.set(o, r, a);
2285
+ return he(t.get(r) ?? i(r, a), a), Reflect.set(o, r, a);
2286
2286
  }
2287
2287
  });
2288
- b(we, this, (e.hydrate ? hs : Ho)(e.component, {
2288
+ b(we, this, (e.hydrate ? ms : Bo)(e.component, {
2289
2289
  target: e.target,
2290
2290
  anchor: e.anchor,
2291
2291
  props: n,
@@ -2293,9 +2293,9 @@ var Fe = /* @__PURE__ */ new WeakMap(), we = /* @__PURE__ */ new WeakMap(), Rs =
2293
2293
  intro: e.intro ?? !1,
2294
2294
  recover: e.recover,
2295
2295
  transformError: e.transformError
2296
- })), !Re && (!e?.props?.$$host || e.sync === !1) && qi(), b(Fe, this, n.$$events);
2296
+ })), !Re && (!e?.props?.$$host || e.sync === !1) && Ui(), b(Fe, this, n.$$events);
2297
2297
  for (const o of Object.keys(s(we, this)))
2298
- o === "$set" || o === "$destroy" || o === "$on" || si(this, o, {
2298
+ o === "$set" || o === "$destroy" || o === "$on" || ai(this, o, {
2299
2299
  get() {
2300
2300
  return s(we, this)[o];
2301
2301
  },
@@ -2323,8 +2323,8 @@ var Fe = /* @__PURE__ */ new WeakMap(), we = /* @__PURE__ */ new WeakMap(), Rs =
2323
2323
  $destroy() {
2324
2324
  s(we, this).$destroy();
2325
2325
  }
2326
- }, Ko;
2327
- typeof HTMLElement == "function" && (Ko = class extends HTMLElement {
2326
+ }, Fo;
2327
+ typeof HTMLElement == "function" && (Fo = class extends HTMLElement {
2328
2328
  constructor(e, t, i) {
2329
2329
  super(), N(this, "$$ctor", void 0), N(this, "$$s", void 0), N(this, "$$c", void 0), N(this, "$$cn", !1), N(this, "$$d", {}), N(this, "$$r", !1), N(this, "$$p_d", {}), N(this, "$$l", {}), N(this, "$$l_u", /* @__PURE__ */ new Map()), N(this, "$$me", void 0), N(this, "$$shadowRoot", null), this.$$ctor = e, this.$$s = t, i && (this.$$shadowRoot = this.attachShadow(i));
2330
2330
  }
@@ -2345,7 +2345,7 @@ typeof HTMLElement == "function" && (Ko = class extends HTMLElement {
2345
2345
  if (this.$$cn = !0, !this.$$c) {
2346
2346
  let e = function(n) {
2347
2347
  return (o) => {
2348
- const r = un("slot");
2348
+ const r = dn("slot");
2349
2349
  n !== "default" && (r.name = n), _e(o, r);
2350
2350
  };
2351
2351
  };
@@ -2354,10 +2354,10 @@ typeof HTMLElement == "function" && (Ko = class extends HTMLElement {
2354
2354
  for (const n of this.$$s) n in i && (n === "default" && !this.$$d.children ? (this.$$d.children = e(n), t.default = !0) : t[n] = e(n));
2355
2355
  for (const n of this.attributes) {
2356
2356
  const o = this.$$g_p(n.name);
2357
- o in this.$$d || (this.$$d[o] = ni(o, n.value, this.$$p_d, "toProp"));
2357
+ o in this.$$d || (this.$$d[o] = oi(o, n.value, this.$$p_d, "toProp"));
2358
2358
  }
2359
2359
  for (const n in this.$$p_d) !(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
2360
- this.$$c = js({
2360
+ this.$$c = Ts({
2361
2361
  component: this.$$ctor,
2362
2362
  target: this.$$shadowRoot || this,
2363
2363
  props: {
@@ -2366,12 +2366,12 @@ typeof HTMLElement == "function" && (Ko = class extends HTMLElement {
2366
2366
  $$host: this
2367
2367
  }
2368
2368
  }), this.$$me = Zr(() => {
2369
- Eo(() => {
2369
+ Ao(() => {
2370
2370
  this.$$r = !0;
2371
- for (const n of ri(this.$$c)) {
2371
+ for (const n of si(this.$$c)) {
2372
2372
  if (!this.$$p_d[n]?.reflect) continue;
2373
2373
  this.$$d[n] = this.$$c[n];
2374
- const o = ni(n, this.$$d[n], this.$$p_d, "toAttribute");
2374
+ const o = oi(n, this.$$d[n], this.$$p_d, "toAttribute");
2375
2375
  o == null ? this.removeAttribute(this.$$p_d[n].attribute || n) : this.setAttribute(this.$$p_d[n].attribute || n, o);
2376
2376
  }
2377
2377
  this.$$r = !1;
@@ -2385,7 +2385,7 @@ typeof HTMLElement == "function" && (Ko = class extends HTMLElement {
2385
2385
  }
2386
2386
  }
2387
2387
  attributeChangedCallback(e, t, i) {
2388
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = ni(e, i, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2388
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = oi(e, i, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2389
2389
  }
2390
2390
  disconnectedCallback() {
2391
2391
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -2393,10 +2393,10 @@ typeof HTMLElement == "function" && (Ko = class extends HTMLElement {
2393
2393
  });
2394
2394
  }
2395
2395
  $$g_p(e) {
2396
- return ri(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
2396
+ return si(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
2397
2397
  }
2398
2398
  });
2399
- function ni(e, t, i, n) {
2399
+ function oi(e, t, i, n) {
2400
2400
  const o = i[e]?.type;
2401
2401
  if (t = o === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !i[e]) return t;
2402
2402
  if (n === "toAttribute") switch (o) {
@@ -2429,27 +2429,27 @@ function Cs(e) {
2429
2429
  }), t;
2430
2430
  }
2431
2431
  function Ns(e, t, i, n, o, r) {
2432
- let a = class extends Ko {
2432
+ let a = class extends Fo {
2433
2433
  constructor() {
2434
2434
  super(e, i, o), this.$$p_d = t;
2435
2435
  }
2436
2436
  static get observedAttributes() {
2437
- return ri(t).map((l) => (t[l].attribute || l).toLowerCase());
2437
+ return si(t).map((l) => (t[l].attribute || l).toLowerCase());
2438
2438
  }
2439
2439
  };
2440
- return ri(t).forEach((l) => {
2441
- si(a.prototype, l, {
2440
+ return si(t).forEach((l) => {
2441
+ ai(a.prototype, l, {
2442
2442
  get() {
2443
2443
  return this.$$c && l in this.$$c ? this.$$c[l] : this.$$d[l];
2444
2444
  },
2445
2445
  set(c) {
2446
- c = ni(l, c, t), this.$$d[l] = c;
2446
+ c = oi(l, c, t), this.$$d[l] = c;
2447
2447
  var p = this.$$c;
2448
2448
  p && (Ye(p, l)?.get ? p[l] = c : p.$set({ [l]: c }));
2449
2449
  }
2450
2450
  });
2451
2451
  }), n.forEach((l) => {
2452
- si(a.prototype, l, { get() {
2452
+ ai(a.prototype, l, { get() {
2453
2453
  return this.$$c?.[l];
2454
2454
  } });
2455
2455
  }), r && (a = r(a)), e.element = a, a;
@@ -7209,28 +7209,155 @@ var Ps = [
7209
7209
 
7210
7210
  /* Category badge row (matching production implementation) */.pie-tool-periodic-table__category-header.pie-tool-periodic-table__category-badge-row.svelte-1h56j87 {align-items:center;background-color:transparent;display:flex;flex-wrap:wrap;gap:6px;justify-content:center;padding:0.5rem;}.pie-tool-periodic-table__category-badge.svelte-1h56j87 {border:1px solid color-mix(in srgb, var(--pie-border-dark, #000) 12%, transparent);border-radius:1rem;cursor:pointer;font-size:0.7rem;line-height:1;padding:4px 6px;transition:background-color 0.2s ease, color 0.2s ease;white-space:nowrap;background:var(--pie-button-bg, #fff);color:var(--pie-button-color, var(--pie-text, #333));}.pie-tool-periodic-table__category-badge.svelte-1h56j87:hover {background:var(--pie-button-hover-bg, #f3f4f6);}.pie-tool-periodic-table__category-badge.pie-tool-periodic-table__category-badge--active.svelte-1h56j87 {background-color:var(--pie-primary-dark, #2c3e50);border-color:var(--pie-primary-dark, #2c3e50);color:var(--pie-white, #fff);}
7211
7211
 
7212
- /* Element overview section (matching production implementation) */.pie-tool-periodic-table__element-overview.svelte-1h56j87 {align-items:center;display:flex;height:100%;justify-content:center;padding:6px;z-index:2;}.pie-tool-periodic-table__selected-element.pie-tool-periodic-table__selected-grid.svelte-1h56j87 {align-items:center;border:2px solid var(--pie-border-dark, #000);border-radius:8px;box-sizing:border-box;display:flex;gap:16px;padding:12px;background:var(--pie-background, #fff);}.pie-tool-periodic-table__left-col.svelte-1h56j87 {align-items:center;display:flex;flex-direction:column;min-width:0;}.pie-tool-periodic-table__symbol-center.svelte-1h56j87 {font-size:2rem;font-weight:bold;line-height:1.2;margin-bottom:4px;}.pie-tool-periodic-table__element-name.svelte-1h56j87 {color:var(--pie-text, #333);font-size:1rem;font-weight:500;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap;}.pie-tool-periodic-table__right-col.svelte-1h56j87 {display:flex;flex-direction:column;gap:8px;justify-content:space-between;min-width:0;}.pie-tool-periodic-table__top-row.svelte-1h56j87,
7213
- .pie-tool-periodic-table__bottom-row.svelte-1h56j87 {display:flex;gap:8px;justify-content:space-between;min-width:0;}.pie-tool-periodic-table__info-block.svelte-1h56j87 {display:flex;flex-direction:column;min-width:0;text-align:left;}.pie-tool-periodic-table__info-block.svelte-1h56j87 .pie-tool-periodic-table__label:where(.svelte-1h56j87) {color:var(--pie-text, #444);font-size:0.75rem;font-weight:bold;margin-bottom:2px;}.pie-tool-periodic-table__info-block.svelte-1h56j87 .pie-tool-periodic-table__value:where(.svelte-1h56j87) {color:var(--pie-text, #000);font-size:0.85rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
7212
+ /* Element overview section (matching production implementation) */.pie-tool-periodic-table__element-overview.svelte-1h56j87 {align-items:center;display:flex;height:100%;justify-content:center;padding:6px;z-index:2;}.pie-tool-periodic-table__selected-element.pie-tool-periodic-table__selected-grid.svelte-1h56j87 {
7213
+ /* This panel carries a category class for its label, but takes the theme
7214
+ surface below rather than the category fill — so its ink stays with the
7215
+ theme instead of the dark ink pinned for the pastel-filled cells. */color:var(--pie-text, #111827);align-items:center;border:2px solid var(--pie-border-dark, #000);border-radius:8px;box-sizing:border-box;display:flex;gap:16px;padding:12px;background:var(--pie-background, #fff);}.pie-tool-periodic-table__left-col.svelte-1h56j87 {align-items:center;display:flex;flex-direction:column;min-width:0;}.pie-tool-periodic-table__symbol-center.svelte-1h56j87 {font-size:2rem;font-weight:bold;line-height:1.2;margin-bottom:4px;}.pie-tool-periodic-table__element-name.svelte-1h56j87 {
7216
+ /* inherit, not --pie-text: this sits inside a category-filled cell, whose
7217
+ ink is pinned for legibility against a fixed pastel. Outside one it
7218
+ inherits --pie-text from the tool root anyway. */color:inherit;font-size:1rem;font-weight:500;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap;}.pie-tool-periodic-table__right-col.svelte-1h56j87 {display:flex;flex-direction:column;gap:8px;justify-content:space-between;min-width:0;}.pie-tool-periodic-table__top-row.svelte-1h56j87,
7219
+ .pie-tool-periodic-table__bottom-row.svelte-1h56j87 {display:flex;gap:8px;justify-content:space-between;min-width:0;}.pie-tool-periodic-table__info-block.svelte-1h56j87 {display:flex;flex-direction:column;min-width:0;text-align:left;}.pie-tool-periodic-table__info-block.svelte-1h56j87 .pie-tool-periodic-table__label:where(.svelte-1h56j87) {
7220
+ /* See __element-name: inside the selected-element panel this sits on the
7221
+ category fill. */color:inherit;font-size:0.75rem;font-weight:bold;margin-bottom:2px;}.pie-tool-periodic-table__info-block.svelte-1h56j87 .pie-tool-periodic-table__value:where(.svelte-1h56j87) {color:inherit;font-size:0.85rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
7214
7222
 
7215
- /* Element styles */.pie-tool-periodic-table__element.svelte-1h56j87 {background-color:var(--pie-background, #fff);border:1px solid color-mix(in srgb, var(--pie-border-dark, #000) 12%, transparent);border-radius:4px;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;min-height:50px;padding:3px;position:relative;transition:transform 0.1s ease-in-out;}.pie-tool-periodic-table__element.svelte-1h56j87:hover {border-color:var(--pie-primary-dark, #2c3e50);transform:scale(1.03);z-index:10;}.pie-tool-periodic-table__element.svelte-1h56j87:focus {outline:2px solid var(--pie-primary-dark, #2c3e50);outline-offset:2px;z-index:10;}.pie-tool-periodic-table__element.pie-tool-periodic-table__element--selected.svelte-1h56j87 {border-color:var(--pie-primary-dark, #2c3e50);box-shadow:0 0 0 2px color-mix(in srgb, var(--pie-border-dark, #000) 12%, transparent);z-index:11;}
7223
+ /* Element styles */.pie-tool-periodic-table__element.svelte-1h56j87 {background-color:var(--pie-background, #fff);border:1px solid color-mix(in srgb, var(--pie-border-dark, #000) 12%, transparent);border-radius:4px;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;min-height:50px;padding:3px;position:relative;transition:transform 0.1s ease-in-out;}
7216
7224
 
7217
- /* Dim out elements not in the selected category */.pie-tool-periodic-table__element.pie-tool-periodic-table__element--dim.svelte-1h56j87 {filter:grayscale(80%);opacity:0.4;}
7225
+ /*
7226
+ * A cell outside the active filter. It drops its category fill and takes the
7227
+ * panel surface with theme ink, rather than fading: an opacity low enough to
7228
+ * read as dimmed composites the cell text towards the page and takes it under
7229
+ * 4.5:1 (0.4 leaves it near 1.8:1), and these cells stay focusable and
7230
+ * clickable, so SC 1.4.3 applies to them. Removing the fill also survives a
7231
+ * collapsed palette, where the grayscale() this rule used to apply is a no-op.
7232
+ *
7233
+ * The second cue is the border style, not its colour: under a palette the
7234
+ * missing fill carries the state, but under a collapsed one every cell sits on
7235
+ * a near-uniform surface, and dashed against solid is the difference a
7236
+ * two-colour palette still has room for. Taking the border colour instead reads
7237
+ * as emphasis, since the lit cells' own edge is deliberately faint.
7238
+ *
7239
+ * Declared before :hover, :focus and --selected so those keep their boundary
7240
+ * on a filtered-out cell, which can still be any of the three.
7241
+ */.pie-tool-periodic-table__element.pie-tool-periodic-table__element--dim.svelte-1h56j87 {background-color:var(--pie-background, #fff);color:var(--pie-text, #111827);border-style:dashed;}.pie-tool-periodic-table__element.svelte-1h56j87:hover {border-color:var(--pie-primary-dark, #2c3e50);transform:scale(1.03);z-index:10;}.pie-tool-periodic-table__element.svelte-1h56j87:focus {outline:2px solid var(--pie-primary-dark, #2c3e50);outline-offset:2px;z-index:10;}.pie-tool-periodic-table__element.pie-tool-periodic-table__element--selected.svelte-1h56j87 {border-color:var(--pie-primary-dark, #2c3e50);box-shadow:0 0 0 2px color-mix(in srgb, var(--pie-border-dark, #000) 12%, transparent);z-index:11;}
7218
7242
 
7219
- /* Text inside each element box */.pie-tool-periodic-table__atomic-number.svelte-1h56j87 {font-size:9px;opacity:0.8;text-align:left;}.pie-tool-periodic-table__symbol.svelte-1h56j87 {font-size:14px;font-weight:bold;margin:2px 0;text-align:center;}.pie-tool-periodic-table__name.svelte-1h56j87 {font-size:8px;opacity:0.9;overflow:hidden;text-align:center;white-space:nowrap;}.pie-tool-periodic-table__atomic-mass.svelte-1h56j87 {font-size:9px;opacity:0.8;text-align:right;}
7243
+ /*
7244
+ * Text inside each element box. The secondary lines carry no opacity: size and
7245
+ * weight already separate them from the symbol, and fading them spent contrast
7246
+ * the palette cannot always afford. At 0.8 the atomic mass measured 4.12:1 under
7247
+ * grey-on-light-grey and 4.00:1 under purple-on-light-green, whose ink and
7248
+ * recessed surface only hold 6.46:1 and 5.44:1 to begin with.
7249
+ */.pie-tool-periodic-table__atomic-number.svelte-1h56j87 {font-size:9px;text-align:left;}.pie-tool-periodic-table__symbol.svelte-1h56j87 {font-size:14px;font-weight:bold;margin:2px 0;text-align:center;}.pie-tool-periodic-table__name.svelte-1h56j87 {font-size:8px;overflow:hidden;text-align:center;white-space:nowrap;}.pie-tool-periodic-table__atomic-mass.svelte-1h56j87 {font-size:9px;text-align:right;}
7220
7250
 
7221
7251
  /* Overlay for Group (column) labels */.pie-tool-periodic-table__group-labels.svelte-1h56j87 {color:var(--pie-text, #333);display:flex;font-size:0.65rem;font-weight:bold;left:0;pointer-events:none;position:absolute;top:-1.2em;width:100%;}.pie-tool-periodic-table__group-label.svelte-1h56j87 {text-align:center;}
7222
7252
 
7223
7253
  /* Overlay for Period (row) labels */.pie-tool-periodic-table__period-labels.svelte-1h56j87 {color:var(--pie-text, #333);display:flex;flex-direction:column;font-size:0.65rem;font-weight:bold;height:100%;justify-content:space-evenly;left:-1.2em;pointer-events:none;position:absolute;top:0;}.pie-tool-periodic-table__period-label.svelte-1h56j87 {padding-right:0.2em;text-align:right;}
7224
7254
 
7225
- /* Category-based background colors (matching production implementation) */.pie-tool-periodic-table__category--alkali-metal.svelte-1h56j87 {background-color:#ff9e9e;}.pie-tool-periodic-table__category--alkaline-earth-metal.svelte-1h56j87 {background-color:#ffdc8a;}.pie-tool-periodic-table__category--alkaline-earth.svelte-1h56j87 {background-color:#ffdc8a; /* Also handle without "-metal" suffix */}.pie-tool-periodic-table__category--lanthanide.svelte-1h56j87 {background-color:#f9a8d4;}.pie-tool-periodic-table__category--actinide.svelte-1h56j87 {background-color:#e0aaff;}.pie-tool-periodic-table__category--transition-metal.svelte-1h56j87 {background-color:#a3d8f4;}.pie-tool-periodic-table__category--post-transition-metal.svelte-1h56j87 {background-color:#b4f8c8;}.pie-tool-periodic-table__category--metalloid.svelte-1h56j87 {background-color:#d9f99d;}.pie-tool-periodic-table__category--diatomic-nonmetal.svelte-1h56j87 {background-color:#f5f5f5;}.pie-tool-periodic-table__category--noble-gas.svelte-1h56j87 {background-color:#c4b5fd;}.pie-tool-periodic-table__category--polyatomic-nonmetal.svelte-1h56j87 {background-color:#fbcfe8;}.pie-tool-periodic-table__category--nonmetal.svelte-1h56j87 {background-color:#f0f0f0; /* Production implementation also has this */}.pie-tool-periodic-table__category--halogen.svelte-1h56j87 {background-color:#8ef5d0; /* Production implementation has halogen color */}.pie-tool-periodic-table__category--unknown.svelte-1h56j87 {background-color:#f5f5f5;}`
7255
+ /*
7256
+ * The category fills below are a fixed data encoding, so their ink has to be
7257
+ * fixed too: everything carrying one otherwise inherits --pie-text, which is
7258
+ * near-white under every dark theme and left the element symbol and name at
7259
+ * about 1.2:1 on a pastel. The tightest pairing this ink leaves is the darkest
7260
+ * fill in the set, #ff9e9e, at 9.0:1.
7261
+ *
7262
+ * A colour scheme takes that encoding away: --pie-fixed-hue-collapse is 100%
7263
+ * under every scheme, which folds each fill into --pie-background-dark and the
7264
+ * ink back into --pie-text — the two colours the learner asked for, plus the
7265
+ * scheme's own recessed surface so a cell still reads as a cell. Category then
7266
+ * lives where it does not depend on hue: the badge row filters by it, the
7267
+ * selected-element panel names it, and each cell's accessible name carries it.
7268
+ * The mixes are exact at both ends, so a Base Theme renders the authored
7269
+ * pastels byte for byte.
7270
+ */.pie-tool-periodic-table__category--alkali-metal.svelte-1h56j87,
7271
+ .pie-tool-periodic-table__category--alkaline-earth-metal.svelte-1h56j87,
7272
+ .pie-tool-periodic-table__category--alkaline-earth.svelte-1h56j87,
7273
+ .pie-tool-periodic-table__category--lanthanide.svelte-1h56j87,
7274
+ .pie-tool-periodic-table__category--actinide.svelte-1h56j87,
7275
+ .pie-tool-periodic-table__category--transition-metal.svelte-1h56j87,
7276
+ .pie-tool-periodic-table__category--post-transition-metal.svelte-1h56j87,
7277
+ .pie-tool-periodic-table__category--metalloid.svelte-1h56j87,
7278
+ .pie-tool-periodic-table__category--diatomic-nonmetal.svelte-1h56j87,
7279
+ .pie-tool-periodic-table__category--noble-gas.svelte-1h56j87,
7280
+ .pie-tool-periodic-table__category--polyatomic-nonmetal.svelte-1h56j87,
7281
+ .pie-tool-periodic-table__category--nonmetal.svelte-1h56j87,
7282
+ .pie-tool-periodic-table__category--halogen.svelte-1h56j87,
7283
+ .pie-tool-periodic-table__category--unknown.svelte-1h56j87 {color:color-mix(
7284
+ in srgb,
7285
+ var(--pie-text, #111827) var(--pie-fixed-hue-collapse, 0%),
7286
+ #111827
7287
+ );
7288
+ /* Collapsed fills sit on the panel surface at about 1.1:1, so the cell edge
7289
+ has to carry the separation a pastel used to: --pie-border is corrected to
7290
+ 3:1 against the page on every palette. */border-color:color-mix(
7291
+ in srgb,
7292
+ var(--pie-border, #646464) var(--pie-fixed-hue-collapse, 0%),
7293
+ color-mix(in srgb, var(--pie-border-dark, #000) 12%, transparent)
7294
+ );}
7295
+
7296
+ /* Category-based background colors (matching production implementation) */.pie-tool-periodic-table__category--alkali-metal.svelte-1h56j87 {background-color:color-mix(
7297
+ in srgb,
7298
+ var(--pie-background-dark, #f5f5f5) var(--pie-fixed-hue-collapse, 0%),
7299
+ #ff9e9e
7300
+ );}.pie-tool-periodic-table__category--alkaline-earth-metal.svelte-1h56j87 {background-color:color-mix(
7301
+ in srgb,
7302
+ var(--pie-background-dark, #f5f5f5) var(--pie-fixed-hue-collapse, 0%),
7303
+ #ffdc8a
7304
+ );}.pie-tool-periodic-table__category--alkaline-earth.svelte-1h56j87 {background-color:color-mix(
7305
+ in srgb,
7306
+ var(--pie-background-dark, #f5f5f5) var(--pie-fixed-hue-collapse, 0%),
7307
+ #ffdc8a
7308
+ ); /* Also handle without "-metal" suffix */}.pie-tool-periodic-table__category--lanthanide.svelte-1h56j87 {background-color:color-mix(
7309
+ in srgb,
7310
+ var(--pie-background-dark, #f5f5f5) var(--pie-fixed-hue-collapse, 0%),
7311
+ #f9a8d4
7312
+ );}.pie-tool-periodic-table__category--actinide.svelte-1h56j87 {background-color:color-mix(
7313
+ in srgb,
7314
+ var(--pie-background-dark, #f5f5f5) var(--pie-fixed-hue-collapse, 0%),
7315
+ #e0aaff
7316
+ );}.pie-tool-periodic-table__category--transition-metal.svelte-1h56j87 {background-color:color-mix(
7317
+ in srgb,
7318
+ var(--pie-background-dark, #f5f5f5) var(--pie-fixed-hue-collapse, 0%),
7319
+ #a3d8f4
7320
+ );}.pie-tool-periodic-table__category--post-transition-metal.svelte-1h56j87 {background-color:color-mix(
7321
+ in srgb,
7322
+ var(--pie-background-dark, #f5f5f5) var(--pie-fixed-hue-collapse, 0%),
7323
+ #b4f8c8
7324
+ );}.pie-tool-periodic-table__category--metalloid.svelte-1h56j87 {background-color:color-mix(
7325
+ in srgb,
7326
+ var(--pie-background-dark, #f5f5f5) var(--pie-fixed-hue-collapse, 0%),
7327
+ #d9f99d
7328
+ );}.pie-tool-periodic-table__category--diatomic-nonmetal.svelte-1h56j87 {background-color:color-mix(
7329
+ in srgb,
7330
+ var(--pie-background-dark, #f5f5f5) var(--pie-fixed-hue-collapse, 0%),
7331
+ #f5f5f5
7332
+ );}.pie-tool-periodic-table__category--noble-gas.svelte-1h56j87 {background-color:color-mix(
7333
+ in srgb,
7334
+ var(--pie-background-dark, #f5f5f5) var(--pie-fixed-hue-collapse, 0%),
7335
+ #c4b5fd
7336
+ );}.pie-tool-periodic-table__category--polyatomic-nonmetal.svelte-1h56j87 {background-color:color-mix(
7337
+ in srgb,
7338
+ var(--pie-background-dark, #f5f5f5) var(--pie-fixed-hue-collapse, 0%),
7339
+ #fbcfe8
7340
+ );}.pie-tool-periodic-table__category--nonmetal.svelte-1h56j87 {background-color:color-mix(
7341
+ in srgb,
7342
+ var(--pie-background-dark, #f5f5f5) var(--pie-fixed-hue-collapse, 0%),
7343
+ #f0f0f0
7344
+ ); /* Production implementation also has this */}.pie-tool-periodic-table__category--halogen.svelte-1h56j87 {background-color:color-mix(
7345
+ in srgb,
7346
+ var(--pie-background-dark, #f5f5f5) var(--pie-fixed-hue-collapse, 0%),
7347
+ #8ef5d0
7348
+ ); /* Production implementation has halogen color */}.pie-tool-periodic-table__category--unknown.svelte-1h56j87 {background-color:color-mix(
7349
+ in srgb,
7350
+ var(--pie-background-dark, #f5f5f5) var(--pie-fixed-hue-collapse, 0%),
7351
+ #f5f5f5
7352
+ );}`
7226
7353
  };
7227
7354
  function Fs(e, t) {
7228
- Zn(t, !0), ks(e, Gs);
7229
- let i = Fn(t, "visible", 7, !1), n = Fn(t, "toolId", 7, "periodicTable");
7355
+ Vn(t, !0), ks(e, Gs);
7356
+ let i = Gn(t, "visible", 7, !1), n = Gn(t, "toolId", 7, "periodicTable");
7230
7357
  const o = Ls.elements;
7231
7358
  let r = /* @__PURE__ */ ke(Ue(o[0] || null)), a = /* @__PURE__ */ ke("All");
7232
- function l(h) {
7233
- const A = h.toLowerCase();
7359
+ function l(m) {
7360
+ const A = m.toLowerCase();
7234
7361
  return A.indexOf("unknown") !== -1 ? "Unknown" : {
7235
7362
  "alkali metal": "Alkali Metal",
7236
7363
  "alkaline earth": "Alkaline Earth Metal",
@@ -7246,120 +7373,124 @@ function Fs(e, t) {
7246
7373
  lanthanide: "Lanthanide",
7247
7374
  actinide: "Actinide",
7248
7375
  metal: "Post-transition Metal"
7249
- }[A] || h;
7376
+ }[A] || m;
7250
7377
  }
7251
- function c(h) {
7252
- return h.split(" ").map((A) => A.charAt(0).toUpperCase() + A.slice(1)).join(" ");
7378
+ function c(m) {
7379
+ return m.split(" ").map((A) => A.charAt(0).toUpperCase() + A.slice(1)).join(" ");
7253
7380
  }
7254
- let p = /* @__PURE__ */ zn(() => {
7255
- const h = /* @__PURE__ */ new Set();
7381
+ let p = /* @__PURE__ */ Lr(() => {
7382
+ const m = /* @__PURE__ */ new Set();
7256
7383
  return o.forEach((A) => {
7257
- A.category && h.add(l(A.category));
7258
- }), Array.from(h).sort();
7259
- }), _ = /* @__PURE__ */ zn(() => g(a) === "All" ? o : o.filter((h) => l(h.category) === g(a)));
7260
- function d(h) {
7261
- me(r, h, !0);
7384
+ A.category && m.add(l(A.category));
7385
+ }), Array.from(m).sort();
7386
+ });
7387
+ function _(m) {
7388
+ return g(a) !== "All" && l(m.category) !== g(a);
7389
+ }
7390
+ function u(m) {
7391
+ he(r, m, !0);
7262
7392
  }
7263
- function f(h) {
7264
- me(a, h, !0);
7393
+ function d(m) {
7394
+ he(a, m, !0);
7265
7395
  }
7266
- var u = {
7396
+ var f = {
7267
7397
  get visible() {
7268
7398
  return i();
7269
7399
  },
7270
- set visible(h = !1) {
7271
- i(h), qi();
7400
+ set visible(m = !1) {
7401
+ i(m), Ui();
7272
7402
  },
7273
7403
  get toolId() {
7274
7404
  return n();
7275
7405
  },
7276
- set toolId(h = "periodicTable") {
7277
- n(h), qi();
7406
+ set toolId(m = "periodicTable") {
7407
+ n(m), Ui();
7278
7408
  }
7279
- }, v = fs(), y = Ur(v), m = (h) => {
7409
+ }, v = ds(), y = Ur(v), h = (m) => {
7280
7410
  var A = Ds(), W = C(A), S = C(W), D = C(S), L = C(D), q = C(L);
7281
- let ue;
7411
+ let fe;
7282
7412
  var Bt = K(q, 2);
7283
- Vt(Bt, 16, () => g(p), (U) => U, (U, T) => {
7413
+ Zt(Bt, 16, () => g(p), (U) => U, (U, M) => {
7284
7414
  var R = Os();
7285
7415
  let G;
7286
- var fe = C(R, !0);
7287
- j(R), qt((He, be) => {
7288
- G = Zt(R, 1, `pie-tool-periodic-table__category-badge pie-tool-periodic-table__category--${He ?? ""}`, "svelte-1h56j87", G, { "pie-tool-periodic-table__category-badge--active": g(a) === T }), lt(R, "aria-label", `Filter by ${T ?? ""}`), lt(R, "aria-pressed", g(a) === T), de(fe, be);
7289
- }, [() => T.replace(" ", "-").toLowerCase(), () => c(T)]), Ut("click", R, () => f(T)), _e(U, R);
7290
- }), j(L);
7291
- var I = K(L, 2), $i = (U) => {
7292
- var T = Ws(), R = C(T), G = C(R), fe = C(G), He = C(fe, !0);
7293
- j(fe);
7294
- var be = K(fe, 2), wt = C(be, !0);
7295
- j(be), j(G);
7416
+ var de = C(R, !0);
7417
+ T(R), Ut((He, be) => {
7418
+ G = Qt(R, 1, `pie-tool-periodic-table__category-badge pie-tool-periodic-table__category--${He ?? ""}`, "svelte-1h56j87", G, { "pie-tool-periodic-table__category-badge--active": g(a) === M }), lt(R, "aria-label", `Filter by ${M ?? ""}`), lt(R, "aria-pressed", g(a) === M), ue(de, be);
7419
+ }, [() => M.replace(" ", "-").toLowerCase(), () => c(M)]), Jt("click", R, () => d(M)), _e(U, R);
7420
+ }), T(L);
7421
+ var I = K(L, 2), Ai = (U) => {
7422
+ var M = Ws(), R = C(M), G = C(R), de = C(G), He = C(de, !0);
7423
+ T(de);
7424
+ var be = K(de, 2), wt = C(be, !0);
7425
+ T(be), T(G);
7296
7426
  var Ce = K(G, 2), F = C(Ce), ee = C(F), Ht = K(C(ee), 2), De = C(Ht, !0);
7297
- j(Ht), j(ee);
7298
- var Dt = K(ee, 2), Gt = K(C(Dt), 2), zi = C(Gt, !0);
7299
- j(Gt), j(Dt), j(F);
7300
- var hn = K(F, 2), Mi = C(hn), vn = K(C(Mi), 2), Xo = C(vn, !0);
7301
- j(vn), j(Mi);
7302
- var yn = K(Mi, 2), gn = K(C(yn), 2), qo = C(gn, !0);
7303
- j(gn), j(yn), j(hn), j(Ce), j(R), j(T), qt((Uo) => {
7304
- Zt(R, 1, `pie-tool-periodic-table__selected-element pie-tool-periodic-table__selected-grid pie-tool-periodic-table__category--${Uo ?? ""}`, "svelte-1h56j87"), de(He, g(r).symbol), de(wt, g(r).name), de(De, g(r).atomic_mass), de(zi, g(r).number), de(Xo, g(r).electron_configuration_semantic), de(qo, g(r).phase);
7305
- }, [() => l(g(r).category).replace(" ", "-").toLowerCase()]), _e(U, T);
7427
+ T(Ht), T(ee);
7428
+ var Dt = K(ee, 2), Gt = K(C(Dt), 2), ji = C(Gt, !0);
7429
+ T(Gt), T(Dt), T(F);
7430
+ var Ft = K(F, 2), Mi = C(Ft), vn = K(C(Mi), 2), Ko = C(vn, !0);
7431
+ T(vn), T(Mi);
7432
+ var yn = K(Mi, 2), gn = K(C(yn), 2), Xo = C(gn, !0);
7433
+ T(gn), T(yn), T(Ft), T(Ce), T(R), T(M), Ut((qo) => {
7434
+ Qt(R, 1, `pie-tool-periodic-table__selected-element pie-tool-periodic-table__selected-grid pie-tool-periodic-table__category--${qo ?? ""}`, "svelte-1h56j87"), ue(He, g(r).symbol), ue(wt, g(r).name), ue(De, g(r).atomic_mass), ue(ji, g(r).number), ue(Ko, g(r).electron_configuration_semantic), ue(Xo, g(r).phase);
7435
+ }, [() => l(g(r).category).replace(" ", "-").toLowerCase()]), _e(U, M);
7306
7436
  };
7307
- Ni(I, (U) => {
7308
- g(r) && U($i);
7437
+ Pi(I, (U) => {
7438
+ g(r) && U(Ai);
7309
7439
  });
7310
- var Ai = K(I, 2);
7311
- Vt(Ai, 17, () => g(_), (U) => U.symbol, (U, T) => {
7440
+ var Ei = K(I, 2);
7441
+ Zt(Ei, 17, () => o, (U) => U.symbol, (U, M) => {
7312
7442
  var R = Is();
7313
7443
  let G;
7314
- var fe = C(R), He = C(fe, !0);
7315
- j(fe);
7316
- var be = K(fe, 2), wt = C(be, !0);
7317
- j(be);
7444
+ var de = C(R), He = C(de, !0);
7445
+ T(de);
7446
+ var be = K(de, 2), wt = C(be, !0);
7447
+ T(be);
7318
7448
  var Ce = K(be, 2), F = C(Ce, !0);
7319
- j(Ce);
7449
+ T(Ce);
7320
7450
  var ee = K(Ce, 2), Ht = C(ee, !0);
7321
- j(ee), j(R), qt((De, Dt, Gt, zi) => {
7322
- G = Zt(R, 1, `pie-tool-periodic-table__element pie-tool-periodic-table__category--${De ?? ""}`, "svelte-1h56j87", G, Dt), Hn(R, `grid-row: ${g(T).ypos ?? ""}; grid-column: ${g(T).xpos ?? ""};`), lt(R, "title", g(T).name), lt(R, "aria-label", `${g(T).name ?? ""}, Symbol: ${g(T).symbol ?? ""}, Atomic number: ${g(T).number ?? ""}, Atomic mass: ${Gt ?? ""}, Category: ${g(T).category ?? ""}`), de(He, g(T).number), de(wt, g(T).symbol), de(F, g(T).name), de(Ht, zi);
7451
+ T(ee), T(R), Ut((De, Dt, Gt, ji, Ft) => {
7452
+ G = Qt(R, 1, `pie-tool-periodic-table__element pie-tool-periodic-table__category--${De ?? ""}`, "svelte-1h56j87", G, Dt), Bn(R, `grid-row: ${g(M).ypos ?? ""}; grid-column: ${g(M).xpos ?? ""};`), lt(R, "title", g(M).name), lt(R, "aria-label", `${g(M).name ?? ""}, Symbol: ${g(M).symbol ?? ""}, Atomic number: ${g(M).number ?? ""}, Atomic mass: ${Gt ?? ""}, Category: ${g(M).category ?? ""}${ji ?? ""}`), ue(He, g(M).number), ue(wt, g(M).symbol), ue(F, g(M).name), ue(Ht, Ft);
7323
7453
  }, [
7324
- () => l(g(T).category).replace(" ", "-").toLowerCase(),
7454
+ () => l(g(M).category).replace(" ", "-").toLowerCase(),
7325
7455
  () => ({
7326
- "pie-tool-periodic-table__element--selected": g(r)?.symbol === g(T).symbol,
7327
- "pie-tool-periodic-table__element--dim": g(a) !== "All" && l(g(T).category) !== g(a)
7456
+ "pie-tool-periodic-table__element--selected": g(r)?.symbol === g(M).symbol,
7457
+ "pie-tool-periodic-table__element--dim": _(g(M))
7328
7458
  }),
7329
- () => g(T).atomic_mass.toFixed(3),
7330
- () => g(T).atomic_mass.toFixed(3)
7331
- ]), Ut("click", R, () => d(g(T))), Ut("keydown", R, (De) => {
7332
- (De.key === "Enter" || De.key === " ") && (De.preventDefault(), d(g(T)));
7459
+ () => g(M).atomic_mass.toFixed(3),
7460
+ () => _(g(M)) ? ", outside the current filter" : "",
7461
+ () => g(M).atomic_mass.toFixed(3)
7462
+ ]), Jt("click", R, () => u(g(M))), Jt("keydown", R, (De) => {
7463
+ (De.key === "Enter" || De.key === " ") && (De.preventDefault(), u(g(M)));
7333
7464
  }), _e(U, R);
7334
- }), j(D);
7335
- var Ei = K(D, 2);
7336
- Vt(Ei, 20, () => Array(18), Wn, (U, T, R) => {
7465
+ }), T(D);
7466
+ var zi = K(D, 2);
7467
+ Zt(zi, 20, () => Array(18), On, (U, M, R) => {
7337
7468
  var G = Bs();
7338
- Hn(G, `left: ${R * (100 / 18)}%; width: 5.555555555555555%;`), G.textContent = R + 1, _e(U, G);
7339
- }), j(Ei);
7340
- var mn = K(Ei, 2);
7341
- Vt(mn, 20, () => Array(10), Wn, (U, T, R) => {
7342
- var G = Hs(), fe = C(G), He = (F) => {
7469
+ Bn(G, `left: ${R * (100 / 18)}%; width: 5.555555555555555%;`), G.textContent = R + 1, _e(U, G);
7470
+ }), T(zi);
7471
+ var mn = K(zi, 2);
7472
+ Zt(mn, 20, () => Array(10), On, (U, M, R) => {
7473
+ var G = Hs(), de = C(G), He = (F) => {
7343
7474
  }, be = (F) => {
7344
- var ee = ji("6");
7475
+ var ee = Ri("6");
7345
7476
  _e(F, ee);
7346
7477
  }, wt = (F) => {
7347
- var ee = ji("7");
7478
+ var ee = Ri("7");
7348
7479
  _e(F, ee);
7349
7480
  }, Ce = (F) => {
7350
- var ee = ji();
7481
+ var ee = Ri();
7351
7482
  ee.nodeValue = R - 2, _e(F, ee);
7352
7483
  };
7353
- Ni(fe, (F) => {
7484
+ Pi(de, (F) => {
7354
7485
  R < 3 ? F(He) : R === 8 ? F(be, 1) : R === 9 ? F(wt, 2) : F(Ce, -1);
7355
- }), j(G), _e(U, G);
7356
- }), j(mn), j(S), j(W), j(A), qt(() => {
7357
- lt(A, "data-tool-id", n()), ue = Zt(q, 1, "pie-tool-periodic-table__category-badge svelte-1h56j87", null, ue, { "pie-tool-periodic-table__category-badge--active": g(a) === "All" }), lt(q, "aria-pressed", g(a) === "All");
7358
- }), Ut("click", q, () => f("All")), _e(h, A);
7486
+ }), T(G), _e(U, G);
7487
+ }), T(mn), T(S), T(W), T(A), Ut(() => {
7488
+ lt(A, "data-tool-id", n()), fe = Qt(q, 1, "pie-tool-periodic-table__category-badge svelte-1h56j87", null, fe, { "pie-tool-periodic-table__category-badge--active": g(a) === "All" }), lt(q, "aria-pressed", g(a) === "All");
7489
+ }), Jt("click", q, () => d("All")), _e(m, A);
7359
7490
  };
7360
- return Ni(y, (h) => {
7361
- i() && h(m);
7362
- }), _e(e, v), Qn(u);
7491
+ return Pi(y, (m) => {
7492
+ i() && m(h);
7493
+ }), _e(e, v), Zn(f);
7363
7494
  }
7364
7495
  as(["click", "keydown"]);
7365
7496
  customElements.define("pie-tool-periodic-table", Ns(Fs, {