@pie-players/pie-section-player 0.3.11 → 0.3.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
- var ui = Object.defineProperty, Kn = (e) => {
1
+ var ci = Object.defineProperty, Kn = (e) => {
2
2
  throw TypeError(e);
3
- }, di = (e, t, o) => t in e ? ui(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, m = (e, t, o) => di(e, typeof t != "symbol" ? t + "" : t, o), on = (e, t, o) => t.has(e) || Kn("Cannot " + o), u = (e, t, o) => (on(e, t, "read from private field"), o ? o.call(e) : t.get(e)), x = (e, t, o) => t.has(e) ? Kn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, o), I = (e, t, o, n) => (on(e, t, "write to private field"), t.set(e, o), o), M = (e, t, o) => (on(e, t, "access private method"), o), Sn;
3
+ }, ui = (e, t, o) => t in e ? ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, m = (e, t, o) => ui(e, typeof t != "symbol" ? t + "" : t, o), tn = (e, t, o) => t.has(e) || Kn("Cannot " + o), u = (e, t, o) => (tn(e, t, "read from private field"), o ? o.call(e) : t.get(e)), x = (e, t, o) => t.has(e) ? Kn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, o), I = (e, t, o, n) => (tn(e, t, "write to private field"), t.set(e, o), o), M = (e, t, o) => (tn(e, t, "access private method"), o), Sn;
4
4
  typeof window < "u" && ((Sn = window.__svelte ?? (window.__svelte = {})).v ?? (Sn.v = /* @__PURE__ */ new Set())).add("5");
5
- const fi = 1, hi = 2, pi = 16, vi = 1, gi = 2, Jn = "[", nn = "[!", kn = "[?", rn = "]", kt = {}, N = /* @__PURE__ */ Symbol(), Xn = "http://www.w3.org/1999/xhtml", mi = !1;
6
- var Zn = Array.isArray, bi = Array.prototype.indexOf, At = Array.prototype.includes, xo = Array.from, wo = Object.keys, To = Object.defineProperty, St = Object.getOwnPropertyDescriptor, yi = Object.getOwnPropertyDescriptors, wi = Object.prototype, Ti = Array.prototype, Yn = Object.getPrototypeOf, An = Object.isExtensible;
7
- const Ii = () => {
5
+ const di = 1, fi = 2, hi = 16, pi = 1, vi = 2, Yn = "[", on = "[!", kn = "[?", nn = "]", St = {}, N = /* @__PURE__ */ Symbol(), Jn = "http://www.w3.org/1999/xhtml", gi = !1;
6
+ var Zn = Array.isArray, mi = Array.prototype.indexOf, kt = Array.prototype.includes, xo = Array.from, wo = Object.keys, To = Object.defineProperty, xt = Object.getOwnPropertyDescriptor, bi = Object.getOwnPropertyDescriptors, yi = Object.prototype, wi = Array.prototype, Xn = Object.getPrototypeOf, An = Object.isExtensible;
7
+ const Ti = () => {
8
8
  };
9
- function $i(e) {
9
+ function Ii(e) {
10
10
  for (var t = 0; t < e.length; t++)
11
11
  e[t]();
12
12
  }
@@ -16,14 +16,14 @@ function Qn() {
16
16
  });
17
17
  return { promise: o, resolve: e, reject: t };
18
18
  }
19
- const j = 2, Ot = 4, _t = 8, sn = 1 << 24, Ye = 16, be = 32, Qe = 64, zo = 128, oe = 512, V = 1024, z = 2048, me = 4096, D = 8192, xe = 16384, bt = 32768, Ct = 65536, _n = 1 << 17, er = 1 << 18, et = 1 << 19, xi = 1 << 20, Re = 1 << 25, ft = 65536, Wo = 1 << 21, ln = 1 << 22, Je = 1 << 23, uo = /* @__PURE__ */ Symbol("$state"), Si = /* @__PURE__ */ Symbol("legacy props"), ki = /* @__PURE__ */ Symbol(""), lt = new class extends Error {
19
+ const j = 2, Ot = 4, At = 8, rn = 1 << 24, Xe = 16, ge = 32, Qe = 64, jo = 128, oe = 512, V = 1024, z = 2048, ve = 4096, D = 8192, Ie = 16384, vt = 32768, _t = 65536, _n = 1 << 17, $i = 1 << 18, gt = 1 << 19, xi = 1 << 20, Le = 1 << 25, ut = 65536, zo = 1 << 21, sn = 1 << 22, Ye = 1 << 23, uo = /* @__PURE__ */ Symbol("$state"), Si = /* @__PURE__ */ Symbol("legacy props"), ki = /* @__PURE__ */ Symbol(""), it = new class extends Error {
20
20
  constructor() {
21
21
  super(...arguments), m(this, "name", "StaleReactionError"), m(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
22
22
  }
23
23
  }(), Ai = (
24
24
  // We gotta write it like this because after downleveling the pure comment may end up in the wrong location
25
25
  !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml")
26
- ), So = 3, Rt = 8;
26
+ ), So = 3, Xt = 8;
27
27
  function _i() {
28
28
  throw new Error("https://svelte.dev/e/async_derived_orphan");
29
29
  }
@@ -63,76 +63,76 @@ function ko(e) {
63
63
  function zi() {
64
64
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
65
65
  }
66
- let E = !1;
67
- function pe(e) {
68
- E = e;
66
+ let P = !1;
67
+ function Me(e) {
68
+ P = e;
69
69
  }
70
- let _;
71
- function F(e) {
70
+ let C;
71
+ function J(e) {
72
72
  if (e === null)
73
- throw ko(), kt;
74
- return _ = e;
73
+ throw ko(), St;
74
+ return C = e;
75
75
  }
76
76
  function Ao() {
77
- return F(/* @__PURE__ */ ie(_));
77
+ return J(/* @__PURE__ */ xe(C));
78
78
  }
79
79
  function ro(e) {
80
- if (E) {
81
- if (/* @__PURE__ */ ie(_) !== null)
82
- throw ko(), kt;
83
- _ = e;
80
+ if (P) {
81
+ if (/* @__PURE__ */ xe(C) !== null)
82
+ throw ko(), St;
83
+ C = e;
84
84
  }
85
85
  }
86
86
  function Wi(e = 1) {
87
- if (E) {
88
- for (var t = e, o = _; t--; )
87
+ if (P) {
88
+ for (var t = e, o = C; t--; )
89
89
  o = /** @type {TemplateNode} */
90
- /* @__PURE__ */ ie(o);
91
- _ = o;
90
+ /* @__PURE__ */ xe(o);
91
+ C = o;
92
92
  }
93
93
  }
94
94
  function Io(e = !0) {
95
- for (var t = 0, o = _; ; ) {
96
- if (o.nodeType === Rt) {
95
+ for (var t = 0, o = C; ; ) {
96
+ if (o.nodeType === Xt) {
97
97
  var n = (
98
98
  /** @type {Comment} */
99
99
  o.data
100
100
  );
101
- if (n === rn) {
101
+ if (n === nn) {
102
102
  if (t === 0) return o;
103
103
  t -= 1;
104
- } else (n === Jn || n === nn || // "[1", "[2", etc. for if blocks
104
+ } else (n === Yn || n === on || // "[1", "[2", etc. for if blocks
105
105
  n[0] === "[" && !isNaN(Number(n.slice(1)))) && (t += 1);
106
106
  }
107
107
  var r = (
108
108
  /** @type {TemplateNode} */
109
- /* @__PURE__ */ ie(o)
109
+ /* @__PURE__ */ xe(o)
110
110
  );
111
111
  e && o.remove(), o = r;
112
112
  }
113
113
  }
114
- function tr(e) {
115
- if (!e || e.nodeType !== Rt)
116
- throw ko(), kt;
114
+ function er(e) {
115
+ if (!e || e.nodeType !== Xt)
116
+ throw ko(), St;
117
117
  return (
118
118
  /** @type {Comment} */
119
119
  e.data
120
120
  );
121
121
  }
122
- function or(e) {
122
+ function tr(e) {
123
123
  return e === this.v;
124
124
  }
125
- function qi(e, t) {
125
+ function Bi(e, t) {
126
126
  return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
127
127
  }
128
- function nr(e) {
129
- return !qi(e, this.v);
128
+ function or(e) {
129
+ return !Bi(e, this.v);
130
130
  }
131
- let Bi = !1, re = null;
132
- function Et(e) {
131
+ let qi = !1, re = null;
132
+ function Ct(e) {
133
133
  re = e;
134
134
  }
135
- function rr(e, t = !1, o) {
135
+ function nr(e, t = !1, o) {
136
136
  re = {
137
137
  p: re,
138
138
  i: !1,
@@ -143,7 +143,7 @@ function rr(e, t = !1, o) {
143
143
  l: null
144
144
  };
145
145
  }
146
- function ir(e) {
146
+ function rr(e) {
147
147
  var t = (
148
148
  /** @type {ComponentContext} */
149
149
  re
@@ -151,44 +151,44 @@ function ir(e) {
151
151
  if (o !== null) {
152
152
  t.e = null;
153
153
  for (var n of o)
154
- Er(n);
154
+ Cr(n);
155
155
  }
156
156
  return e !== void 0 && (t.x = e), t.i = !0, re = t.p, e ?? /** @type {T} */
157
157
  {};
158
158
  }
159
- function sr() {
159
+ function ir() {
160
160
  return !0;
161
161
  }
162
- let at = [];
163
- function lr() {
164
- var e = at;
165
- at = [], $i(e);
162
+ let st = [];
163
+ function sr() {
164
+ var e = st;
165
+ st = [], Ii(e);
166
166
  }
167
- function ht(e) {
168
- if (at.length === 0 && !Ut) {
169
- var t = at;
167
+ function dt(e) {
168
+ if (st.length === 0 && !Gt) {
169
+ var t = st;
170
170
  queueMicrotask(() => {
171
- t === at && lr();
171
+ t === st && sr();
172
172
  });
173
173
  }
174
- at.push(e);
174
+ st.push(e);
175
175
  }
176
176
  function Di() {
177
- for (; at.length > 0; )
178
- lr();
177
+ for (; st.length > 0; )
178
+ sr();
179
179
  }
180
- function ar(e) {
180
+ function lr(e) {
181
181
  var t = k;
182
182
  if (t === null)
183
- return S.f |= Je, e;
184
- if ((t.f & bt) === 0 && (t.f & Ot) === 0)
183
+ return S.f |= Ye, e;
184
+ if ((t.f & vt) === 0 && (t.f & Ot) === 0)
185
185
  throw e;
186
186
  Ke(e, t);
187
187
  }
188
188
  function Ke(e, t) {
189
189
  for (; t !== null; ) {
190
- if ((t.f & zo) !== 0) {
191
- if ((t.f & bt) === 0)
190
+ if ((t.f & jo) !== 0) {
191
+ if ((t.f & vt) === 0)
192
192
  throw e;
193
193
  try {
194
194
  t.b.error(e);
@@ -205,33 +205,33 @@ const Hi = -7169;
205
205
  function O(e, t) {
206
206
  e.f = e.f & Hi | t;
207
207
  }
208
- function an(e) {
209
- (e.f & oe) !== 0 || e.deps === null ? O(e, V) : O(e, me);
208
+ function ln(e) {
209
+ (e.f & oe) !== 0 || e.deps === null ? O(e, V) : O(e, ve);
210
210
  }
211
- function cr(e) {
211
+ function ar(e) {
212
212
  if (e !== null)
213
213
  for (const t of e)
214
- (t.f & j) === 0 || (t.f & ft) === 0 || (t.f ^= ft, cr(
214
+ (t.f & j) === 0 || (t.f & ut) === 0 || (t.f ^= ut, ar(
215
215
  /** @type {Derived} */
216
216
  t.deps
217
217
  ));
218
218
  }
219
- function ur(e, t, o) {
220
- (e.f & z) !== 0 ? t.add(e) : (e.f & me) !== 0 && o.add(e), cr(e.deps), O(e, V);
219
+ function cr(e, t, o) {
220
+ (e.f & z) !== 0 ? t.add(e) : (e.f & ve) !== 0 && o.add(e), ar(e.deps), O(e, V);
221
221
  }
222
222
  const fo = /* @__PURE__ */ new Set();
223
- let L = null, ge = null, U = [], _o = null, Ut = !1, Pt = null, Fi = 1;
224
- var rt, Dt, qe, it, wt, Kt, ct, Le, Ht, Te, qo, Bo, Do, Ho;
225
- const Gi = class dr {
223
+ let L = null, pe = null, G = [], _o = null, Gt = !1, Et = null, Fi = 1;
224
+ var ot, qt, We, nt, yt, Ut, lt, Ce, Dt, ye, Wo, Bo, qo, Do;
225
+ const Gi = class ur {
226
226
  constructor() {
227
- x(this, Te), m(this, "id", Fi++), m(this, "current", /* @__PURE__ */ new Map()), m(this, "previous", /* @__PURE__ */ new Map()), x(this, rt, /* @__PURE__ */ new Set()), x(this, Dt, /* @__PURE__ */ new Set()), x(this, qe, 0), x(this, it, 0), x(this, wt, null), x(this, Kt, /* @__PURE__ */ new Set()), x(this, ct, /* @__PURE__ */ new Set()), x(this, Le, /* @__PURE__ */ new Map()), m(this, "is_fork", !1), x(this, Ht, !1);
227
+ x(this, ye), m(this, "id", Fi++), m(this, "current", /* @__PURE__ */ new Map()), m(this, "previous", /* @__PURE__ */ new Map()), x(this, ot, /* @__PURE__ */ new Set()), x(this, qt, /* @__PURE__ */ new Set()), x(this, We, 0), x(this, nt, 0), x(this, yt, null), x(this, Ut, /* @__PURE__ */ new Set()), x(this, lt, /* @__PURE__ */ new Set()), x(this, Ce, /* @__PURE__ */ new Map()), m(this, "is_fork", !1), x(this, Dt, !1);
228
228
  }
229
229
  /**
230
230
  * Add an effect to the #skipped_branches map and reset its children
231
231
  * @param {Effect} effect
232
232
  */
233
233
  skip_effect(t) {
234
- u(this, Le).has(t) || u(this, Le).set(t, { d: [], m: [] });
234
+ u(this, Ce).has(t) || u(this, Ce).set(t, { d: [], m: [] });
235
235
  }
236
236
  /**
237
237
  * Remove an effect from the #skipped_branches map and reschedule
@@ -239,13 +239,13 @@ const Gi = class dr {
239
239
  * @param {Effect} effect
240
240
  */
241
241
  unskip_effect(t) {
242
- var o = u(this, Le).get(t);
242
+ var o = u(this, Ce).get(t);
243
243
  if (o) {
244
- u(this, Le).delete(t);
244
+ u(this, Ce).delete(t);
245
245
  for (var n of o.d)
246
- O(n, z), $e(n);
246
+ O(n, z), Te(n);
247
247
  for (n of o.m)
248
- O(n, me), $e(n);
248
+ O(n, ve), Te(n);
249
249
  }
250
250
  }
251
251
  /**
@@ -253,20 +253,20 @@ const Gi = class dr {
253
253
  * @param {Effect[]} root_effects
254
254
  */
255
255
  process(t) {
256
- U = [], this.apply();
257
- var o = Pt = [], n = [];
256
+ G = [], this.apply();
257
+ var o = Et = [], n = [];
258
258
  for (const r of t)
259
- M(this, Te, Bo).call(this, r, o, n);
260
- if (Pt = null, M(this, Te, qo).call(this)) {
261
- M(this, Te, Do).call(this, n), M(this, Te, Do).call(this, o);
262
- for (const [r, i] of u(this, Le))
263
- vr(r, i);
259
+ M(this, ye, Bo).call(this, r, o, n);
260
+ if (Et = null, M(this, ye, Wo).call(this)) {
261
+ M(this, ye, qo).call(this, n), M(this, ye, qo).call(this, o);
262
+ for (const [r, i] of u(this, Ce))
263
+ pr(r, i);
264
264
  } else {
265
265
  L = null;
266
- for (const r of u(this, rt)) r(this);
267
- u(this, rt).clear(), u(this, qe) === 0 && M(this, Te, Ho).call(this), Cn(n), Cn(o), u(this, Kt).clear(), u(this, ct).clear(), u(this, wt)?.resolve();
266
+ for (const r of u(this, ot)) r(this);
267
+ u(this, ot).clear(), u(this, We) === 0 && M(this, ye, Do).call(this), Cn(n), Cn(o), u(this, Ut).clear(), u(this, lt).clear(), u(this, yt)?.resolve();
268
268
  }
269
- ge = null;
269
+ pe = null;
270
270
  }
271
271
  /**
272
272
  * Associate a change to a given source with the current
@@ -275,65 +275,65 @@ const Gi = class dr {
275
275
  * @param {any} value
276
276
  */
277
277
  capture(t, o) {
278
- o !== N && !this.previous.has(t) && this.previous.set(t, o), (t.f & Je) === 0 && (this.current.set(t, t.v), ge?.set(t, t.v));
278
+ o !== N && !this.previous.has(t) && this.previous.set(t, o), (t.f & Ye) === 0 && (this.current.set(t, t.v), pe?.set(t, t.v));
279
279
  }
280
280
  activate() {
281
281
  L = this, this.apply();
282
282
  }
283
283
  deactivate() {
284
- L === this && (L = null, ge = null);
284
+ L === this && (L = null, pe = null);
285
285
  }
286
286
  flush() {
287
- if (U.length > 0)
288
- L = this, fr();
289
- else if (u(this, qe) === 0 && !this.is_fork) {
290
- for (const t of u(this, rt)) t(this);
291
- u(this, rt).clear(), M(this, Te, Ho).call(this), u(this, wt)?.resolve();
287
+ if (G.length > 0)
288
+ L = this, dr();
289
+ else if (u(this, We) === 0 && !this.is_fork) {
290
+ for (const t of u(this, ot)) t(this);
291
+ u(this, ot).clear(), M(this, ye, Do).call(this), u(this, yt)?.resolve();
292
292
  }
293
293
  this.deactivate();
294
294
  }
295
295
  discard() {
296
- for (const t of u(this, Dt)) t(this);
297
- u(this, Dt).clear();
296
+ for (const t of u(this, qt)) t(this);
297
+ u(this, qt).clear();
298
298
  }
299
299
  /**
300
300
  *
301
301
  * @param {boolean} blocking
302
302
  */
303
303
  increment(t) {
304
- I(this, qe, u(this, qe) + 1), t && I(this, it, u(this, it) + 1);
304
+ I(this, We, u(this, We) + 1), t && I(this, nt, u(this, nt) + 1);
305
305
  }
306
306
  /**
307
307
  *
308
308
  * @param {boolean} blocking
309
309
  */
310
310
  decrement(t) {
311
- I(this, qe, u(this, qe) - 1), t && I(this, it, u(this, it) - 1), !u(this, Ht) && (I(this, Ht, !0), ht(() => {
312
- I(this, Ht, !1), M(this, Te, qo).call(this) ? U.length > 0 && this.flush() : this.revive();
311
+ I(this, We, u(this, We) - 1), t && I(this, nt, u(this, nt) - 1), !u(this, Dt) && (I(this, Dt, !0), dt(() => {
312
+ I(this, Dt, !1), M(this, ye, Wo).call(this) ? G.length > 0 && this.flush() : this.revive();
313
313
  }));
314
314
  }
315
315
  revive() {
316
- for (const t of u(this, Kt))
317
- u(this, ct).delete(t), O(t, z), $e(t);
318
- for (const t of u(this, ct))
319
- O(t, me), $e(t);
316
+ for (const t of u(this, Ut))
317
+ u(this, lt).delete(t), O(t, z), Te(t);
318
+ for (const t of u(this, lt))
319
+ O(t, ve), Te(t);
320
320
  this.flush();
321
321
  }
322
322
  /** @param {(batch: Batch) => void} fn */
323
323
  oncommit(t) {
324
- u(this, rt).add(t);
324
+ u(this, ot).add(t);
325
325
  }
326
326
  /** @param {(batch: Batch) => void} fn */
327
327
  ondiscard(t) {
328
- u(this, Dt).add(t);
328
+ u(this, qt).add(t);
329
329
  }
330
330
  settled() {
331
- return (u(this, wt) ?? I(this, wt, Qn())).promise;
331
+ return (u(this, yt) ?? I(this, yt, Qn())).promise;
332
332
  }
333
333
  static ensure() {
334
334
  if (L === null) {
335
- const t = L = new dr();
336
- fo.add(L), Ut || ht(() => {
335
+ const t = L = new ur();
336
+ fo.add(L), Gt || dt(() => {
337
337
  L === t && t.flush();
338
338
  });
339
339
  }
@@ -342,8 +342,8 @@ const Gi = class dr {
342
342
  apply() {
343
343
  }
344
344
  };
345
- rt = /* @__PURE__ */ new WeakMap(), Dt = /* @__PURE__ */ new WeakMap(), qe = /* @__PURE__ */ new WeakMap(), it = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakMap(), Kt = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakSet(), qo = function() {
346
- return this.is_fork || u(this, it) > 0;
345
+ ot = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap(), nt = /* @__PURE__ */ new WeakMap(), yt = /* @__PURE__ */ new WeakMap(), Ut = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), Dt = /* @__PURE__ */ new WeakMap(), ye = /* @__PURE__ */ new WeakSet(), Wo = function() {
346
+ return this.is_fork || u(this, nt) > 0;
347
347
  }, /**
348
348
  * Traverse the effect tree, executing effects or stashing
349
349
  * them for later execution as appropriate
@@ -354,9 +354,9 @@ rt = /* @__PURE__ */ new WeakMap(), Dt = /* @__PURE__ */ new WeakMap(), qe = /*
354
354
  Bo = function(e, t, o) {
355
355
  e.f ^= V;
356
356
  for (var n = e.first; n !== null; ) {
357
- var r = n.f, i = (r & (be | Qe)) !== 0, s = i && (r & V) !== 0, l = (r & D) !== 0, a = s || u(this, Le).has(n);
357
+ var r = n.f, i = (r & (ge | Qe)) !== 0, s = i && (r & V) !== 0, l = (r & D) !== 0, a = s || u(this, Ce).has(n);
358
358
  if (!a && n.fn !== null) {
359
- i ? l || (n.f ^= V) : (r & Ot) !== 0 ? t.push(n) : (r & (_t | sn)) !== 0 && l ? o.push(n) : Qt(n) && (Mt(n), (r & Ye) !== 0 && (u(this, ct).add(n), l && O(n, z)));
359
+ i ? l || (n.f ^= V) : (r & Ot) !== 0 ? t.push(n) : (r & (At | rn)) !== 0 && l ? o.push(n) : Qt(n) && (Mt(n), (r & Xe) !== 0 && (u(this, lt).add(n), l && O(n, z)));
360
360
  var c = n.first;
361
361
  if (c !== null) {
362
362
  n = c;
@@ -375,14 +375,14 @@ Bo = function(e, t, o) {
375
375
  }, /**
376
376
  * @param {Effect[]} effects
377
377
  */
378
- Do = function(e) {
378
+ qo = function(e) {
379
379
  for (var t = 0; t < e.length; t += 1)
380
- ur(e[t], u(this, Kt), u(this, ct));
381
- }, Ho = function() {
380
+ cr(e[t], u(this, Ut), u(this, lt));
381
+ }, Do = function() {
382
382
  var e;
383
383
  if (fo.size > 1) {
384
384
  this.previous.clear();
385
- var t = L, o = ge, n = !0;
385
+ var t = L, o = pe, n = !0;
386
386
  for (const i of fo) {
387
387
  if (i === this) {
388
388
  n = !1;
@@ -401,51 +401,51 @@ Do = function(e) {
401
401
  continue;
402
402
  const l = [...i.current.keys()].filter((a) => !this.current.has(a));
403
403
  if (l.length > 0) {
404
- var r = U;
405
- U = [];
404
+ var r = G;
405
+ G = [];
406
406
  const a = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Map();
407
407
  for (const d of s)
408
- hr(d, l, a, c);
409
- if (U.length > 0) {
408
+ fr(d, l, a, c);
409
+ if (G.length > 0) {
410
410
  L = i, i.apply();
411
- for (const d of U)
412
- M(e = i, Te, Bo).call(e, d, [], []);
411
+ for (const d of G)
412
+ M(e = i, ye, Bo).call(e, d, [], []);
413
413
  i.deactivate();
414
414
  }
415
- U = r;
415
+ G = r;
416
416
  }
417
417
  }
418
- L = t, ge = o;
418
+ L = t, pe = o;
419
419
  }
420
- u(this, Le).clear(), fo.delete(this);
420
+ u(this, Ce).clear(), fo.delete(this);
421
421
  };
422
- let pt = Gi;
422
+ let ft = Gi;
423
423
  function ho(e) {
424
- var t = Ut;
425
- Ut = !0;
424
+ var t = Gt;
425
+ Gt = !0;
426
426
  try {
427
427
  for (var o; ; ) {
428
- if (Di(), U.length === 0 && (L?.flush(), U.length === 0))
428
+ if (Di(), G.length === 0 && (L?.flush(), G.length === 0))
429
429
  return _o = null, /** @type {T} */
430
430
  o;
431
- fr();
431
+ dr();
432
432
  }
433
433
  } finally {
434
- Ut = t;
434
+ Gt = t;
435
435
  }
436
436
  }
437
- function fr() {
437
+ function dr() {
438
438
  try {
439
- for (var e = 0; U.length > 0; ) {
440
- var t = pt.ensure();
439
+ for (var e = 0; G.length > 0; ) {
440
+ var t = ft.ensure();
441
441
  if (e++ > 1e3) {
442
442
  var o, n;
443
443
  Ui();
444
444
  }
445
- t.process(U), Xe.clear();
445
+ t.process(G), Je.clear();
446
446
  }
447
447
  } finally {
448
- U = [], _o = null, Pt = null;
448
+ G = [], _o = null, Et = null;
449
449
  }
450
450
  }
451
451
  function Ui() {
@@ -455,55 +455,55 @@ function Ui() {
455
455
  Ke(e, _o);
456
456
  }
457
457
  }
458
- let Pe = null;
458
+ let _e = null;
459
459
  function Cn(e) {
460
460
  var t = e.length;
461
461
  if (t !== 0) {
462
462
  for (var o = 0; o < t; ) {
463
463
  var n = e[o++];
464
- if ((n.f & (xe | D)) === 0 && Qt(n) && (Pe = /* @__PURE__ */ new Set(), Mt(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && Mr(n), Pe?.size > 0)) {
465
- Xe.clear();
466
- for (const r of Pe) {
467
- if ((r.f & (xe | D)) !== 0) continue;
464
+ if ((n.f & (Ie | D)) === 0 && Qt(n) && (_e = /* @__PURE__ */ new Set(), Mt(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && Lr(n), _e?.size > 0)) {
465
+ Je.clear();
466
+ for (const r of _e) {
467
+ if ((r.f & (Ie | D)) !== 0) continue;
468
468
  const i = [r];
469
469
  let s = r.parent;
470
470
  for (; s !== null; )
471
- Pe.has(s) && (Pe.delete(s), i.push(s)), s = s.parent;
471
+ _e.has(s) && (_e.delete(s), i.push(s)), s = s.parent;
472
472
  for (let l = i.length - 1; l >= 0; l--) {
473
473
  const a = i[l];
474
- (a.f & (xe | D)) === 0 && Mt(a);
474
+ (a.f & (Ie | D)) === 0 && Mt(a);
475
475
  }
476
476
  }
477
- Pe.clear();
477
+ _e.clear();
478
478
  }
479
479
  }
480
- Pe = null;
480
+ _e = null;
481
481
  }
482
482
  }
483
- function hr(e, t, o, n) {
483
+ function fr(e, t, o, n) {
484
484
  if (!o.has(e) && (o.add(e), e.reactions !== null))
485
485
  for (const r of e.reactions) {
486
486
  const i = r.f;
487
- (i & j) !== 0 ? hr(
487
+ (i & j) !== 0 ? fr(
488
488
  /** @type {Derived} */
489
489
  r,
490
490
  t,
491
491
  o,
492
492
  n
493
- ) : (i & (ln | Ye)) !== 0 && (i & z) === 0 && pr(r, t, n) && (O(r, z), $e(
493
+ ) : (i & (sn | Xe)) !== 0 && (i & z) === 0 && hr(r, t, n) && (O(r, z), Te(
494
494
  /** @type {Effect} */
495
495
  r
496
496
  ));
497
497
  }
498
498
  }
499
- function pr(e, t, o) {
499
+ function hr(e, t, o) {
500
500
  const n = o.get(e);
501
501
  if (n !== void 0) return n;
502
502
  if (e.deps !== null)
503
503
  for (const r of e.deps) {
504
- if (At.call(t, r))
504
+ if (kt.call(t, r))
505
505
  return !0;
506
- if ((r.f & j) !== 0 && pr(
506
+ if ((r.f & j) !== 0 && hr(
507
507
  /** @type {Derived} */
508
508
  r,
509
509
  t,
@@ -517,47 +517,47 @@ function pr(e, t, o) {
517
517
  }
518
518
  return o.set(e, !1), !1;
519
519
  }
520
- function $e(e) {
520
+ function Te(e) {
521
521
  var t = _o = e, o = t.b;
522
- if (o?.is_pending && (e.f & (Ot | _t | sn)) !== 0 && (e.f & bt) === 0) {
522
+ if (o?.is_pending && (e.f & (Ot | At | rn)) !== 0 && (e.f & vt) === 0) {
523
523
  o.defer_effect(e);
524
524
  return;
525
525
  }
526
526
  for (; t.parent !== null; ) {
527
527
  t = t.parent;
528
528
  var n = t.f;
529
- if (Pt !== null && t === k && (e.f & _t) === 0)
529
+ if (Et !== null && t === k && (e.f & At) === 0)
530
530
  return;
531
- if ((n & (Qe | be)) !== 0) {
531
+ if ((n & (Qe | ge)) !== 0) {
532
532
  if ((n & V) === 0)
533
533
  return;
534
534
  t.f ^= V;
535
535
  }
536
536
  }
537
- U.push(t);
537
+ G.push(t);
538
538
  }
539
- function vr(e, t) {
540
- if (!((e.f & be) !== 0 && (e.f & V) !== 0)) {
541
- (e.f & z) !== 0 ? t.d.push(e) : (e.f & me) !== 0 && t.m.push(e), O(e, V);
539
+ function pr(e, t) {
540
+ if (!((e.f & ge) !== 0 && (e.f & V) !== 0)) {
541
+ (e.f & z) !== 0 ? t.d.push(e) : (e.f & ve) !== 0 && t.m.push(e), O(e, V);
542
542
  for (var o = e.first; o !== null; )
543
- vr(o, t), o = o.next;
543
+ pr(o, t), o = o.next;
544
544
  }
545
545
  }
546
546
  function Ki(e) {
547
- let t = 0, o = vt(0), n;
547
+ let t = 0, o = ht(0), n;
548
548
  return () => {
549
- fn() && (v(o), hn(() => (t === 0 && (n = Dr(() => e(() => Zt(o)))), t += 1, () => {
550
- ht(() => {
551
- t -= 1, t === 0 && (n?.(), n = void 0, Zt(o));
549
+ dn() && (p(o), fn(() => (t === 0 && (n = qr(() => e(() => Jt(o)))), t += 1, () => {
550
+ dt(() => {
551
+ t -= 1, t === 0 && (n?.(), n = void 0, Jt(o));
552
552
  });
553
553
  })));
554
554
  };
555
555
  }
556
- var Ji = Ct | et;
557
- function Xi(e, t, o, n) {
556
+ var Yi = _t | gt;
557
+ function Ji(e, t, o, n) {
558
558
  new Zi(e, t, o, n);
559
559
  }
560
- var ee, po, Me, It, X, Oe, te, Ie, Be, st, De, Ft, Jt, Xt, He, Fo, B, gr, mr, br, Go, io, $o, Uo;
560
+ var ee, po, Ee, Tt, Y, Pe, te, we, Be, rt, qe, Ht, Kt, Yt, De, Ho, q, vr, gr, mr, Fo, io, $o, Go;
561
561
  class Zi {
562
562
  /**
563
563
  * @param {TemplateNode} node
@@ -566,37 +566,37 @@ class Zi {
566
566
  * @param {((error: unknown) => unknown) | undefined} [transform_error]
567
567
  */
568
568
  constructor(t, o, n, r) {
569
- x(this, B), m(this, "parent"), m(this, "is_pending", !1), m(this, "transform_error"), x(this, ee), x(this, po, E ? _ : null), x(this, Me), x(this, It), x(this, X), x(this, Oe, null), x(this, te, null), x(this, Ie, null), x(this, Be, null), x(this, st, 0), x(this, De, 0), x(this, Ft, !1), x(this, Jt, /* @__PURE__ */ new Set()), x(this, Xt, /* @__PURE__ */ new Set()), x(this, He, null), x(this, Fo, Ki(() => (I(this, He, vt(u(this, st))), () => {
570
- I(this, He, null);
571
- }))), I(this, ee, t), I(this, Me, o), I(this, It, (i) => {
569
+ x(this, q), m(this, "parent"), m(this, "is_pending", !1), m(this, "transform_error"), x(this, ee), x(this, po, P ? C : null), x(this, Ee), x(this, Tt), x(this, Y), x(this, Pe, null), x(this, te, null), x(this, we, null), x(this, Be, null), x(this, rt, 0), x(this, qe, 0), x(this, Ht, !1), x(this, Kt, /* @__PURE__ */ new Set()), x(this, Yt, /* @__PURE__ */ new Set()), x(this, De, null), x(this, Ho, Ki(() => (I(this, De, ht(u(this, rt))), () => {
570
+ I(this, De, null);
571
+ }))), I(this, ee, t), I(this, Ee, o), I(this, Tt, (i) => {
572
572
  var s = (
573
573
  /** @type {Effect} */
574
574
  k
575
575
  );
576
- s.b = this, s.f |= zo, n(i);
576
+ s.b = this, s.f |= jo, n(i);
577
577
  }), this.parent = /** @type {Effect} */
578
- k.b, this.transform_error = r ?? this.parent?.transform_error ?? ((i) => i), I(this, X, Eo(() => {
579
- if (E) {
578
+ k.b, this.transform_error = r ?? this.parent?.transform_error ?? ((i) => i), I(this, Y, hn(() => {
579
+ if (P) {
580
580
  const i = (
581
581
  /** @type {Comment} */
582
582
  u(this, po)
583
583
  );
584
584
  Ao();
585
- const s = i.data === nn;
585
+ const s = i.data === on;
586
586
  if (i.data.startsWith(kn)) {
587
587
  const l = JSON.parse(i.data.slice(kn.length));
588
- M(this, B, mr).call(this, l);
589
- } else s ? M(this, B, br).call(this) : M(this, B, gr).call(this);
588
+ M(this, q, gr).call(this, l);
589
+ } else s ? M(this, q, mr).call(this) : M(this, q, vr).call(this);
590
590
  } else
591
- M(this, B, Go).call(this);
592
- }, Ji)), E && I(this, ee, _);
591
+ M(this, q, Fo).call(this);
592
+ }, Yi)), P && I(this, ee, C);
593
593
  }
594
594
  /**
595
595
  * Defer an effect inside a pending boundary until the boundary resolves
596
596
  * @param {Effect} effect
597
597
  */
598
598
  defer_effect(t) {
599
- ur(t, u(this, Jt), u(this, Xt));
599
+ cr(t, u(this, Kt), u(this, Yt));
600
600
  }
601
601
  /**
602
602
  * Returns `false` if the effect exists inside a boundary whose pending snippet is shown
@@ -606,7 +606,7 @@ class Zi {
606
606
  return !this.is_pending && (!this.parent || this.parent.is_rendered());
607
607
  }
608
608
  has_pending_snippet() {
609
- return !!u(this, Me).pending;
609
+ return !!u(this, Ee).pending;
610
610
  }
611
611
  /**
612
612
  * Update the source that powers `$effect.pending()` inside this boundary,
@@ -615,52 +615,52 @@ class Zi {
615
615
  * @param {1 | -1} d
616
616
  */
617
617
  update_pending_count(t) {
618
- M(this, B, Uo).call(this, t), I(this, st, u(this, st) + t), !(!u(this, He) || u(this, Ft)) && (I(this, Ft, !0), ht(() => {
619
- I(this, Ft, !1), u(this, He) && Lt(u(this, He), u(this, st));
618
+ M(this, q, Go).call(this, t), I(this, rt, u(this, rt) + t), !(!u(this, De) || u(this, Ht)) && (I(this, Ht, !0), dt(() => {
619
+ I(this, Ht, !1), u(this, De) && Pt(u(this, De), u(this, rt));
620
620
  }));
621
621
  }
622
622
  get_effect_pending() {
623
- return u(this, Fo).call(this), v(
623
+ return u(this, Ho).call(this), p(
624
624
  /** @type {Source<number>} */
625
- u(this, He)
625
+ u(this, De)
626
626
  );
627
627
  }
628
628
  /** @param {unknown} error */
629
629
  error(t) {
630
- var o = u(this, Me).onerror;
631
- let n = u(this, Me).failed;
630
+ var o = u(this, Ee).onerror;
631
+ let n = u(this, Ee).failed;
632
632
  if (!o && !n)
633
633
  throw t;
634
- u(this, Oe) && (H(u(this, Oe)), I(this, Oe, null)), u(this, te) && (H(u(this, te)), I(this, te, null)), u(this, Ie) && (H(u(this, Ie)), I(this, Ie, null)), E && (F(
634
+ u(this, Pe) && (H(u(this, Pe)), I(this, Pe, null)), u(this, te) && (H(u(this, te)), I(this, te, null)), u(this, we) && (H(u(this, we)), I(this, we, null)), P && (J(
635
635
  /** @type {TemplateNode} */
636
636
  u(this, po)
637
- ), Wi(), F(Io()));
637
+ ), Wi(), J(Io()));
638
638
  var r = !1, i = !1;
639
639
  const s = () => {
640
640
  if (r) {
641
641
  zi();
642
642
  return;
643
643
  }
644
- r = !0, i && ji(), u(this, Ie) !== null && mt(u(this, Ie), () => {
645
- I(this, Ie, null);
646
- }), M(this, B, $o).call(this, () => {
647
- pt.ensure(), M(this, B, Go).call(this);
644
+ r = !0, i && ji(), u(this, we) !== null && pt(u(this, we), () => {
645
+ I(this, we, null);
646
+ }), M(this, q, $o).call(this, () => {
647
+ ft.ensure(), M(this, q, Fo).call(this);
648
648
  });
649
649
  }, l = (a) => {
650
650
  try {
651
651
  i = !0, o?.(a, s), i = !1;
652
652
  } catch (c) {
653
- Ke(c, u(this, X) && u(this, X).parent);
653
+ Ke(c, u(this, Y) && u(this, Y).parent);
654
654
  }
655
- n && I(this, Ie, M(this, B, $o).call(this, () => {
656
- pt.ensure();
655
+ n && I(this, we, M(this, q, $o).call(this, () => {
656
+ ft.ensure();
657
657
  try {
658
- return he(() => {
658
+ return fe(() => {
659
659
  var c = (
660
660
  /** @type {Effect} */
661
661
  k
662
662
  );
663
- c.b = this, c.f |= zo, n(
663
+ c.b = this, c.f |= jo, n(
664
664
  u(this, ee),
665
665
  () => a,
666
666
  () => s
@@ -670,40 +670,40 @@ class Zi {
670
670
  return Ke(
671
671
  c,
672
672
  /** @type {Effect} */
673
- u(this, X).parent
673
+ u(this, Y).parent
674
674
  ), null;
675
675
  }
676
676
  }));
677
677
  };
678
- ht(() => {
678
+ dt(() => {
679
679
  var a;
680
680
  try {
681
681
  a = this.transform_error(t);
682
682
  } catch (c) {
683
- Ke(c, u(this, X) && u(this, X).parent);
683
+ Ke(c, u(this, Y) && u(this, Y).parent);
684
684
  return;
685
685
  }
686
686
  a !== null && typeof a == "object" && typeof /** @type {any} */
687
687
  a.then == "function" ? a.then(
688
688
  l,
689
689
  /** @param {unknown} e */
690
- (c) => Ke(c, u(this, X) && u(this, X).parent)
690
+ (c) => Ke(c, u(this, Y) && u(this, Y).parent)
691
691
  ) : l(a);
692
692
  });
693
693
  }
694
694
  }
695
- ee = /* @__PURE__ */ new WeakMap(), po = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), It = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakMap(), st = /* @__PURE__ */ new WeakMap(), De = /* @__PURE__ */ new WeakMap(), Ft = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), Xt = /* @__PURE__ */ new WeakMap(), He = /* @__PURE__ */ new WeakMap(), Fo = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakSet(), gr = function() {
695
+ ee = /* @__PURE__ */ new WeakMap(), po = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), Pe = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), we = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakMap(), rt = /* @__PURE__ */ new WeakMap(), qe = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), Kt = /* @__PURE__ */ new WeakMap(), Yt = /* @__PURE__ */ new WeakMap(), De = /* @__PURE__ */ new WeakMap(), Ho = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakSet(), vr = function() {
696
696
  try {
697
- I(this, Oe, he(() => u(this, It).call(this, u(this, ee))));
697
+ I(this, Pe, fe(() => u(this, Tt).call(this, u(this, ee))));
698
698
  } catch (e) {
699
699
  this.error(e);
700
700
  }
701
701
  }, /**
702
702
  * @param {unknown} error The deserialized error from the server's hydration comment
703
703
  */
704
- mr = function(e) {
705
- const t = u(this, Me).failed;
706
- t && I(this, Ie, he(() => {
704
+ gr = function(e) {
705
+ const t = u(this, Ee).failed;
706
+ t && I(this, we, fe(() => {
707
707
  t(
708
708
  u(this, ee),
709
709
  () => e,
@@ -711,72 +711,72 @@ mr = function(e) {
711
711
  }
712
712
  );
713
713
  }));
714
- }, br = function() {
715
- const e = u(this, Me).pending;
716
- e && (this.is_pending = !0, I(this, te, he(() => e(u(this, ee)))), ht(() => {
717
- var t = I(this, Be, document.createDocumentFragment()), o = Se();
718
- t.append(o), I(this, Oe, M(this, B, $o).call(this, () => (pt.ensure(), he(() => u(this, It).call(this, o))))), u(this, De) === 0 && (u(this, ee).before(t), I(this, Be, null), mt(
714
+ }, mr = function() {
715
+ const e = u(this, Ee).pending;
716
+ e && (this.is_pending = !0, I(this, te, fe(() => e(u(this, ee)))), dt(() => {
717
+ var t = I(this, Be, document.createDocumentFragment()), o = Oe();
718
+ t.append(o), I(this, Pe, M(this, q, $o).call(this, () => (ft.ensure(), fe(() => u(this, Tt).call(this, o))))), u(this, qe) === 0 && (u(this, ee).before(t), I(this, Be, null), pt(
719
719
  /** @type {Effect} */
720
720
  u(this, te),
721
721
  () => {
722
722
  I(this, te, null);
723
723
  }
724
- ), M(this, B, io).call(this));
724
+ ), M(this, q, io).call(this));
725
725
  }));
726
- }, Go = function() {
726
+ }, Fo = function() {
727
727
  try {
728
- if (this.is_pending = this.has_pending_snippet(), I(this, De, 0), I(this, st, 0), I(this, Oe, he(() => {
729
- u(this, It).call(this, u(this, ee));
730
- })), u(this, De) > 0) {
728
+ if (this.is_pending = this.has_pending_snippet(), I(this, qe, 0), I(this, rt, 0), I(this, Pe, fe(() => {
729
+ u(this, Tt).call(this, u(this, ee));
730
+ })), u(this, qe) > 0) {
731
731
  var e = I(this, Be, document.createDocumentFragment());
732
- gn(u(this, Oe), e);
732
+ gn(u(this, Pe), e);
733
733
  const t = (
734
734
  /** @type {(anchor: Node) => void} */
735
- u(this, Me).pending
735
+ u(this, Ee).pending
736
736
  );
737
- I(this, te, he(() => t(u(this, ee))));
737
+ I(this, te, fe(() => t(u(this, ee))));
738
738
  } else
739
- M(this, B, io).call(this);
739
+ M(this, q, io).call(this);
740
740
  } catch (t) {
741
741
  this.error(t);
742
742
  }
743
743
  }, io = function() {
744
744
  this.is_pending = !1;
745
- for (const e of u(this, Jt))
746
- O(e, z), $e(e);
747
- for (const e of u(this, Xt))
748
- O(e, me), $e(e);
749
- u(this, Jt).clear(), u(this, Xt).clear();
745
+ for (const e of u(this, Kt))
746
+ O(e, z), Te(e);
747
+ for (const e of u(this, Yt))
748
+ O(e, ve), Te(e);
749
+ u(this, Kt).clear(), u(this, Yt).clear();
750
750
  }, /**
751
751
  * @template T
752
752
  * @param {() => T} fn
753
753
  */
754
754
  $o = function(e) {
755
755
  var t = k, o = S, n = re;
756
- ke(u(this, X)), se(u(this, X)), Et(u(this, X).ctx);
756
+ $e(u(this, Y)), ie(u(this, Y)), Ct(u(this, Y).ctx);
757
757
  try {
758
758
  return e();
759
759
  } catch (r) {
760
- return ar(r), null;
760
+ return lr(r), null;
761
761
  } finally {
762
- ke(t), se(o), Et(n);
762
+ $e(t), ie(o), Ct(n);
763
763
  }
764
764
  }, /**
765
765
  * Updates the pending count associated with the currently visible pending snippet,
766
766
  * if any, such that we can replace the snippet with content once work is done
767
767
  * @param {1 | -1} d
768
768
  */
769
- Uo = function(e) {
769
+ Go = function(e) {
770
770
  var t;
771
771
  if (!this.has_pending_snippet()) {
772
- this.parent && M(t = this.parent, B, Uo).call(t, e);
772
+ this.parent && M(t = this.parent, q, Go).call(t, e);
773
773
  return;
774
774
  }
775
- I(this, De, u(this, De) + e), u(this, De) === 0 && (M(this, B, io).call(this), u(this, te) && mt(u(this, te), () => {
775
+ I(this, qe, u(this, qe) + e), u(this, qe) === 0 && (M(this, q, io).call(this), u(this, te) && pt(u(this, te), () => {
776
776
  I(this, te, null);
777
777
  }), u(this, Be) && (u(this, ee).before(u(this, Be)), I(this, Be, null)));
778
778
  };
779
- function Yi(e, t, o, n) {
779
+ function Xi(e, t, o, n) {
780
780
  const r = Co;
781
781
  var i = e.filter((f) => !f.settled);
782
782
  if (o.length === 0 && i.length === 0) {
@@ -792,9 +792,9 @@ function Yi(e, t, o, n) {
792
792
  try {
793
793
  n(f);
794
794
  } catch (b) {
795
- (s.f & xe) === 0 && Ke(b, s);
795
+ (s.f & Ie) === 0 && Ke(b, s);
796
796
  }
797
- Ko();
797
+ Uo();
798
798
  }
799
799
  if (o.length === 0) {
800
800
  a.then(() => c(t.map(r)));
@@ -808,11 +808,11 @@ function Yi(e, t, o, n) {
808
808
  function Qi() {
809
809
  var e = k, t = S, o = re, n = L;
810
810
  return function(r = !0) {
811
- ke(e), se(t), Et(o), r && n?.activate();
811
+ $e(e), ie(t), Ct(o), r && n?.activate();
812
812
  };
813
813
  }
814
- function Ko(e = !0) {
815
- ke(null), se(null), Et(null), e && L?.deactivate();
814
+ function Uo(e = !0) {
815
+ $e(null), ie(null), Ct(null), e && L?.deactivate();
816
816
  }
817
817
  function es() {
818
818
  var e = (
@@ -833,11 +833,11 @@ function Co(e) {
833
833
  /** @type {Derived} */
834
834
  S
835
835
  ) : null;
836
- return k !== null && (k.f |= et), {
836
+ return k !== null && (k.f |= gt), {
837
837
  ctx: re,
838
838
  deps: null,
839
839
  effects: null,
840
- equals: or,
840
+ equals: tr,
841
841
  f: t,
842
842
  fn: e,
843
843
  reactions: null,
@@ -858,7 +858,7 @@ function ts(e, t, o) {
858
858
  /** @type {Promise<V>} */
859
859
  /** @type {unknown} */
860
860
  void 0
861
- ), r = vt(
861
+ ), r = ht(
862
862
  /** @type {V} */
863
863
  N
864
864
  ), i = !S, s = /* @__PURE__ */ new Map();
@@ -866,9 +866,9 @@ function ts(e, t, o) {
866
866
  var l = Qn();
867
867
  n = l.promise;
868
868
  try {
869
- Promise.resolve(e()).then(l.resolve, l.reject).finally(Ko);
869
+ Promise.resolve(e()).then(l.resolve, l.reject).finally(Uo);
870
870
  } catch (f) {
871
- l.reject(f), Ko();
871
+ l.reject(f), Uo();
872
872
  }
873
873
  var a = (
874
874
  /** @type {Batch} */
@@ -876,16 +876,16 @@ function ts(e, t, o) {
876
876
  );
877
877
  if (i) {
878
878
  var c = es();
879
- s.get(a)?.reject(lt), s.delete(a), s.set(a, l);
879
+ s.get(a)?.reject(it), s.delete(a), s.set(a, l);
880
880
  }
881
881
  const d = (f, b = void 0) => {
882
882
  if (a.activate(), b)
883
- b !== lt && (r.f |= Je, Lt(r, b));
883
+ b !== it && (r.f |= Ye, Pt(r, b));
884
884
  else {
885
- (r.f & Je) !== 0 && (r.f ^= Je), Lt(r, f);
885
+ (r.f & Ye) !== 0 && (r.f ^= Ye), Pt(r, f);
886
886
  for (const [g, h] of s) {
887
887
  if (s.delete(g), g === a) break;
888
- h.reject(lt);
888
+ h.reject(it);
889
889
  }
890
890
  }
891
891
  c && c();
@@ -893,7 +893,7 @@ function ts(e, t, o) {
893
893
  l.promise.then(d, (f) => d(null, f || "unknown"));
894
894
  }), cs(() => {
895
895
  for (const l of s.values())
896
- l.reject(lt);
896
+ l.reject(it);
897
897
  }), new Promise((l) => {
898
898
  function a(c) {
899
899
  function d() {
@@ -905,14 +905,14 @@ function ts(e, t, o) {
905
905
  });
906
906
  }
907
907
  // @__NO_SIDE_EFFECTS__
908
- function Ro(e) {
908
+ function Oo(e) {
909
909
  const t = /* @__PURE__ */ Co(e);
910
- return Nr(t), t;
910
+ return Rr(t), t;
911
911
  }
912
912
  // @__NO_SIDE_EFFECTS__
913
913
  function os(e) {
914
914
  const t = /* @__PURE__ */ Co(e);
915
- return t.equals = nr, t;
915
+ return t.equals = or, t;
916
916
  }
917
917
  function ns(e) {
918
918
  var t = e.effects;
@@ -928,7 +928,7 @@ function ns(e) {
928
928
  function rs(e) {
929
929
  for (var t = e.parent; t !== null; ) {
930
930
  if ((t.f & j) === 0)
931
- return (t.f & xe) === 0 ? (
931
+ return (t.f & Ie) === 0 ? (
932
932
  /** @type {Effect} */
933
933
  t
934
934
  ) : null;
@@ -936,44 +936,44 @@ function rs(e) {
936
936
  }
937
937
  return null;
938
938
  }
939
- function cn(e) {
939
+ function an(e) {
940
940
  var t, o = k;
941
- ke(rs(e));
941
+ $e(rs(e));
942
942
  try {
943
- e.f &= ~ft, ns(e), t = Wr(e);
943
+ e.f &= ~ut, ns(e), t = zr(e);
944
944
  } finally {
945
- ke(o);
945
+ $e(o);
946
946
  }
947
947
  return t;
948
948
  }
949
- function yr(e) {
950
- var t = cn(e);
951
- if (!e.equals(t) && (e.wv = jr(), (!L?.is_fork || e.deps === null) && (e.v = t, e.deps === null))) {
949
+ function br(e) {
950
+ var t = an(e);
951
+ if (!e.equals(t) && (e.wv = Vr(), (!L?.is_fork || e.deps === null) && (e.v = t, e.deps === null))) {
952
952
  O(e, V);
953
953
  return;
954
954
  }
955
- Ze || (ge !== null ? (fn() || L?.is_fork) && ge.set(e, t) : an(e));
955
+ Ze || (pe !== null ? (dn() || L?.is_fork) && pe.set(e, t) : ln(e));
956
956
  }
957
957
  function is(e) {
958
958
  if (e.effects !== null)
959
959
  for (const t of e.effects)
960
- (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(lt), t.teardown = Ii, t.ac = null, Yt(t, 0), pn(t));
960
+ (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(it), t.teardown = Ti, t.ac = null, Zt(t, 0), pn(t));
961
961
  }
962
- function wr(e) {
962
+ function yr(e) {
963
963
  if (e.effects !== null)
964
964
  for (const t of e.effects)
965
965
  t.teardown && Mt(t);
966
966
  }
967
- let Jo = /* @__PURE__ */ new Set();
968
- const Xe = /* @__PURE__ */ new Map();
969
- let Tr = !1;
970
- function vt(e, t) {
967
+ let Ko = /* @__PURE__ */ new Set();
968
+ const Je = /* @__PURE__ */ new Map();
969
+ let wr = !1;
970
+ function ht(e, t) {
971
971
  var o = {
972
972
  f: 0,
973
973
  // TODO ideally we could skip this altogether, but it causes type errors
974
974
  v: e,
975
975
  reactions: null,
976
- equals: or,
976
+ equals: tr,
977
977
  rv: 0,
978
978
  wv: 0
979
979
  };
@@ -981,47 +981,47 @@ function vt(e, t) {
981
981
  }
982
982
  // @__NO_SIDE_EFFECTS__
983
983
  function R(e, t) {
984
- const o = vt(e);
985
- return Nr(o), o;
984
+ const o = ht(e);
985
+ return Rr(o), o;
986
986
  }
987
987
  // @__NO_SIDE_EFFECTS__
988
- function Ir(e, t = !1, o = !0) {
989
- const n = vt(e);
990
- return t || (n.equals = nr), n;
988
+ function Tr(e, t = !1, o = !0) {
989
+ const n = ht(e);
990
+ return t || (n.equals = or), n;
991
991
  }
992
992
  function A(e, t, o = !1) {
993
993
  S !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
994
994
  // to ensure we error if state is set inside an inspect effect
995
- (!ve || (S.f & _n) !== 0) && sr() && (S.f & (j | Ye | ln | _n)) !== 0 && (ne === null || !At.call(ne, e)) && Vi();
996
- let n = o ? $t(t) : t;
997
- return Lt(e, n);
995
+ (!he || (S.f & _n) !== 0) && ir() && (S.f & (j | Xe | sn | _n)) !== 0 && (ne === null || !kt.call(ne, e)) && Vi();
996
+ let n = o ? It(t) : t;
997
+ return Pt(e, n);
998
998
  }
999
- function Lt(e, t) {
999
+ function Pt(e, t) {
1000
1000
  if (!e.equals(t)) {
1001
1001
  var o = e.v;
1002
- Ze ? Xe.set(e, t) : Xe.set(e, o), e.v = t;
1003
- var n = pt.ensure();
1002
+ Ze ? Je.set(e, t) : Je.set(e, o), e.v = t;
1003
+ var n = ft.ensure();
1004
1004
  if (n.capture(e, o), (e.f & j) !== 0) {
1005
1005
  const r = (
1006
1006
  /** @type {Derived} */
1007
1007
  e
1008
1008
  );
1009
- (e.f & z) !== 0 && cn(r), an(r);
1009
+ (e.f & z) !== 0 && an(r), ln(r);
1010
1010
  }
1011
- e.wv = jr(), $r(e, z), k !== null && (k.f & V) !== 0 && (k.f & (be | Qe)) === 0 && (Q === null ? vs([e]) : Q.push(e)), !n.is_fork && Jo.size > 0 && !Tr && ss();
1011
+ e.wv = Vr(), Ir(e, z), k !== null && (k.f & V) !== 0 && (k.f & (ge | Qe)) === 0 && (Q === null ? vs([e]) : Q.push(e)), !n.is_fork && Ko.size > 0 && !wr && ss();
1012
1012
  }
1013
1013
  return t;
1014
1014
  }
1015
1015
  function ss() {
1016
- Tr = !1;
1017
- for (const e of Jo)
1018
- (e.f & V) !== 0 && O(e, me), Qt(e) && Mt(e);
1019
- Jo.clear();
1016
+ wr = !1;
1017
+ for (const e of Ko)
1018
+ (e.f & V) !== 0 && O(e, ve), Qt(e) && Mt(e);
1019
+ Ko.clear();
1020
1020
  }
1021
- function Zt(e) {
1021
+ function Jt(e) {
1022
1022
  A(e, e.v + 1);
1023
1023
  }
1024
- function $r(e, t) {
1024
+ function Ir(e, t) {
1025
1025
  var o = e.reactions;
1026
1026
  if (o !== null)
1027
1027
  for (var n = o.length, r = 0; r < n; r++) {
@@ -1031,29 +1031,29 @@ function $r(e, t) {
1031
1031
  /** @type {Derived} */
1032
1032
  i
1033
1033
  );
1034
- ge?.delete(a), (s & ft) === 0 && (s & oe && (i.f |= ft), $r(a, me));
1035
- } else l && ((s & Ye) !== 0 && Pe !== null && Pe.add(
1034
+ pe?.delete(a), (s & ut) === 0 && (s & oe && (i.f |= ut), Ir(a, ve));
1035
+ } else l && ((s & Xe) !== 0 && _e !== null && _e.add(
1036
1036
  /** @type {Effect} */
1037
1037
  i
1038
- ), $e(
1038
+ ), Te(
1039
1039
  /** @type {Effect} */
1040
1040
  i
1041
1041
  ));
1042
1042
  }
1043
1043
  }
1044
- function $t(e) {
1044
+ function It(e) {
1045
1045
  if (typeof e != "object" || e === null || uo in e)
1046
1046
  return e;
1047
- const t = Yn(e);
1048
- if (t !== wi && t !== Ti)
1047
+ const t = Xn(e);
1048
+ if (t !== yi && t !== wi)
1049
1049
  return e;
1050
- var o = /* @__PURE__ */ new Map(), n = Zn(e), r = /* @__PURE__ */ R(0), i = dt, s = (l) => {
1051
- if (dt === i)
1050
+ var o = /* @__PURE__ */ new Map(), n = Zn(e), r = /* @__PURE__ */ R(0), i = ct, s = (l) => {
1051
+ if (ct === i)
1052
1052
  return l();
1053
- var a = S, c = dt;
1054
- se(null), Mn(i);
1053
+ var a = S, c = ct;
1054
+ ie(null), Mn(i);
1055
1055
  var d = l();
1056
- return se(a), Mn(c), d;
1056
+ return ie(a), Mn(c), d;
1057
1057
  };
1058
1058
  return n && o.set("length", /* @__PURE__ */ R(
1059
1059
  /** @type {any[]} */
@@ -1075,21 +1075,21 @@ function $t(e) {
1075
1075
  if (c === void 0) {
1076
1076
  if (a in l) {
1077
1077
  const d = s(() => /* @__PURE__ */ R(N));
1078
- o.set(a, d), Zt(r);
1078
+ o.set(a, d), Jt(r);
1079
1079
  }
1080
1080
  } else
1081
- A(c, N), Zt(r);
1081
+ A(c, N), Jt(r);
1082
1082
  return !0;
1083
1083
  },
1084
1084
  get(l, a, c) {
1085
1085
  if (a === uo)
1086
1086
  return e;
1087
1087
  var d = o.get(a), f = a in l;
1088
- if (d === void 0 && (!f || St(l, a)?.writable) && (d = s(() => {
1089
- var g = $t(f ? l[a] : N), h = /* @__PURE__ */ R(g);
1088
+ if (d === void 0 && (!f || xt(l, a)?.writable) && (d = s(() => {
1089
+ var g = It(f ? l[a] : N), h = /* @__PURE__ */ R(g);
1090
1090
  return h;
1091
1091
  }), o.set(a, d)), d !== void 0) {
1092
- var b = v(d);
1092
+ var b = p(d);
1093
1093
  return b === N ? void 0 : b;
1094
1094
  }
1095
1095
  return Reflect.get(l, a, c);
@@ -1098,7 +1098,7 @@ function $t(e) {
1098
1098
  var c = Reflect.getOwnPropertyDescriptor(l, a);
1099
1099
  if (c && "value" in c) {
1100
1100
  var d = o.get(a);
1101
- d && (c.value = v(d));
1101
+ d && (c.value = p(d));
1102
1102
  } else if (c === void 0) {
1103
1103
  var f = o.get(a), b = f?.v;
1104
1104
  if (f !== void 0 && b !== N)
@@ -1115,12 +1115,12 @@ function $t(e) {
1115
1115
  if (a === uo)
1116
1116
  return !0;
1117
1117
  var c = o.get(a), d = c !== void 0 && c.v !== N || Reflect.has(l, a);
1118
- if (c !== void 0 || k !== null && (!d || St(l, a)?.writable)) {
1118
+ if (c !== void 0 || k !== null && (!d || xt(l, a)?.writable)) {
1119
1119
  c === void 0 && (c = s(() => {
1120
- var b = d ? $t(l[a]) : N, g = /* @__PURE__ */ R(b);
1120
+ var b = d ? It(l[a]) : N, g = /* @__PURE__ */ R(b);
1121
1121
  return g;
1122
1122
  }), o.set(a, c));
1123
- var f = v(c);
1123
+ var f = p(c);
1124
1124
  if (f === N)
1125
1125
  return !1;
1126
1126
  }
@@ -1135,10 +1135,10 @@ function $t(e) {
1135
1135
  h !== void 0 ? A(h, N) : g in l && (h = s(() => /* @__PURE__ */ R(N)), o.set(g + "", h));
1136
1136
  }
1137
1137
  if (f === void 0)
1138
- (!b || St(l, a)?.writable) && (f = s(() => /* @__PURE__ */ R(void 0)), A(f, $t(c)), o.set(a, f));
1138
+ (!b || xt(l, a)?.writable) && (f = s(() => /* @__PURE__ */ R(void 0)), A(f, It(c)), o.set(a, f));
1139
1139
  else {
1140
1140
  b = f.v !== N;
1141
- var w = s(() => $t(c));
1141
+ var w = s(() => It(c));
1142
1142
  A(f, w);
1143
1143
  }
1144
1144
  var T = Reflect.getOwnPropertyDescriptor(l, a);
@@ -1147,15 +1147,15 @@ function $t(e) {
1147
1147
  var $ = (
1148
1148
  /** @type {Source<number>} */
1149
1149
  o.get("length")
1150
- ), P = Number(a);
1151
- Number.isInteger(P) && P >= $.v && A($, P + 1);
1150
+ ), E = Number(a);
1151
+ Number.isInteger(E) && E >= $.v && A($, E + 1);
1152
1152
  }
1153
- Zt(r);
1153
+ Jt(r);
1154
1154
  }
1155
1155
  return !0;
1156
1156
  },
1157
1157
  ownKeys(l) {
1158
- v(r);
1158
+ p(r);
1159
1159
  var a = Reflect.ownKeys(l).filter((f) => {
1160
1160
  var b = o.get(f);
1161
1161
  return b === void 0 || b.v !== N;
@@ -1170,95 +1170,95 @@ function $t(e) {
1170
1170
  }
1171
1171
  );
1172
1172
  }
1173
- var En, xr, Sr, kr;
1174
- function Xo() {
1173
+ var En, $r, xr, Sr;
1174
+ function Yo() {
1175
1175
  if (En === void 0) {
1176
- En = window, xr = /Firefox/.test(navigator.userAgent);
1176
+ En = window, $r = /Firefox/.test(navigator.userAgent);
1177
1177
  var e = Element.prototype, t = Node.prototype, o = Text.prototype;
1178
- Sr = St(t, "firstChild").get, kr = St(t, "nextSibling").get, An(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), An(o) && (o.__t = void 0);
1178
+ xr = xt(t, "firstChild").get, Sr = xt(t, "nextSibling").get, An(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), An(o) && (o.__t = void 0);
1179
1179
  }
1180
1180
  }
1181
- function Se(e = "") {
1181
+ function Oe(e = "") {
1182
1182
  return document.createTextNode(e);
1183
1183
  }
1184
1184
  // @__NO_SIDE_EFFECTS__
1185
- function gt(e) {
1185
+ function Lt(e) {
1186
1186
  return (
1187
1187
  /** @type {TemplateNode | null} */
1188
- Sr.call(e)
1188
+ xr.call(e)
1189
1189
  );
1190
1190
  }
1191
1191
  // @__NO_SIDE_EFFECTS__
1192
- function ie(e) {
1192
+ function xe(e) {
1193
1193
  return (
1194
1194
  /** @type {TemplateNode | null} */
1195
- kr.call(e)
1195
+ Sr.call(e)
1196
1196
  );
1197
1197
  }
1198
1198
  function so(e, t) {
1199
- if (!E)
1200
- return /* @__PURE__ */ gt(e);
1201
- var o = /* @__PURE__ */ gt(_);
1199
+ if (!P)
1200
+ return /* @__PURE__ */ Lt(e);
1201
+ var o = /* @__PURE__ */ Lt(C);
1202
1202
  if (o === null)
1203
- o = _.appendChild(Se());
1203
+ o = C.appendChild(Oe());
1204
1204
  else if (t && o.nodeType !== So) {
1205
- var n = Se();
1206
- return o?.before(n), F(n), n;
1205
+ var n = Oe();
1206
+ return o?.before(n), J(n), n;
1207
1207
  }
1208
- return t && dn(
1208
+ return t && un(
1209
1209
  /** @type {Text} */
1210
1210
  o
1211
- ), F(o), o;
1211
+ ), J(o), o;
1212
1212
  }
1213
- function No(e, t = !1) {
1214
- if (!E) {
1215
- var o = /* @__PURE__ */ gt(e);
1216
- return o instanceof Comment && o.data === "" ? /* @__PURE__ */ ie(o) : o;
1213
+ function Ro(e, t = !1) {
1214
+ if (!P) {
1215
+ var o = /* @__PURE__ */ Lt(e);
1216
+ return o instanceof Comment && o.data === "" ? /* @__PURE__ */ xe(o) : o;
1217
1217
  }
1218
1218
  if (t) {
1219
- if (_?.nodeType !== So) {
1220
- var n = Se();
1221
- return _?.before(n), F(n), n;
1219
+ if (C?.nodeType !== So) {
1220
+ var n = Oe();
1221
+ return C?.before(n), J(n), n;
1222
1222
  }
1223
- dn(
1223
+ un(
1224
1224
  /** @type {Text} */
1225
- _
1225
+ C
1226
1226
  );
1227
1227
  }
1228
- return _;
1228
+ return C;
1229
1229
  }
1230
- function ze(e, t = 1, o = !1) {
1231
- let n = E ? _ : e;
1230
+ function je(e, t = 1, o = !1) {
1231
+ let n = P ? C : e;
1232
1232
  for (var r; t--; )
1233
1233
  r = n, n = /** @type {TemplateNode} */
1234
- /* @__PURE__ */ ie(n);
1235
- if (!E)
1234
+ /* @__PURE__ */ xe(n);
1235
+ if (!P)
1236
1236
  return n;
1237
1237
  if (o) {
1238
1238
  if (n?.nodeType !== So) {
1239
- var i = Se();
1240
- return n === null ? r?.after(i) : n.before(i), F(i), i;
1239
+ var i = Oe();
1240
+ return n === null ? r?.after(i) : n.before(i), J(i), i;
1241
1241
  }
1242
- dn(
1242
+ un(
1243
1243
  /** @type {Text} */
1244
1244
  n
1245
1245
  );
1246
1246
  }
1247
- return F(n), n;
1247
+ return J(n), n;
1248
1248
  }
1249
- function Ar(e) {
1249
+ function kr(e) {
1250
1250
  e.textContent = "";
1251
1251
  }
1252
- function _r() {
1252
+ function Ar() {
1253
1253
  return !1;
1254
1254
  }
1255
- function un(e, t, o) {
1255
+ function cn(e, t, o) {
1256
1256
  return (
1257
1257
  /** @type {T extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[T] : Element} */
1258
- document.createElementNS(Xn, e, void 0)
1258
+ document.createElementNS(Jn, e, void 0)
1259
1259
  );
1260
1260
  }
1261
- function dn(e) {
1261
+ function un(e) {
1262
1262
  if (
1263
1263
  /** @type {string} */
1264
1264
  e.nodeValue.length < 65536
@@ -1269,13 +1269,13 @@ function dn(e) {
1269
1269
  t.remove(), e.nodeValue += /** @type {string} */
1270
1270
  t.nodeValue, t = e.nextSibling;
1271
1271
  }
1272
- function Cr(e) {
1272
+ function _r(e) {
1273
1273
  var t = S, o = k;
1274
- se(null), ke(null);
1274
+ ie(null), $e(null);
1275
1275
  try {
1276
1276
  return e();
1277
1277
  } finally {
1278
- se(t), ke(o);
1278
+ ie(t), $e(o);
1279
1279
  }
1280
1280
  }
1281
1281
  function ls(e) {
@@ -1285,7 +1285,7 @@ function as(e, t) {
1285
1285
  var o = t.last;
1286
1286
  o === null ? t.last = t.first = e : (o.next = e, e.prev = o, t.last = e);
1287
1287
  }
1288
- function Ae(e, t) {
1288
+ function Se(e, t) {
1289
1289
  var o = k;
1290
1290
  o !== null && (o.f & D) !== 0 && (e |= D);
1291
1291
  var n = {
@@ -1305,7 +1305,7 @@ function Ae(e, t) {
1305
1305
  ac: null
1306
1306
  }, r = n;
1307
1307
  if ((e & Ot) !== 0)
1308
- Pt !== null ? Pt.push(n) : $e(n);
1308
+ Et !== null ? Et.push(n) : Te(n);
1309
1309
  else if (t !== null) {
1310
1310
  try {
1311
1311
  Mt(n);
@@ -1313,7 +1313,7 @@ function Ae(e, t) {
1313
1313
  throw H(n), s;
1314
1314
  }
1315
1315
  r.deps === null && r.teardown === null && r.nodes === null && r.first === r.last && // either `null`, or a singular child
1316
- (r.f & et) === 0 && (r = r.first, (e & Ye) !== 0 && (e & Ct) !== 0 && r !== null && (r.f |= Ct));
1316
+ (r.f & gt) === 0 && (r = r.first, (e & Xe) !== 0 && (e & _t) !== 0 && r !== null && (r.f |= _t));
1317
1317
  }
1318
1318
  if (r !== null && (r.parent = o, o !== null && as(r, o), S !== null && (S.f & j) !== 0 && (e & Qe) === 0)) {
1319
1319
  var i = (
@@ -1324,11 +1324,11 @@ function Ae(e, t) {
1324
1324
  }
1325
1325
  return n;
1326
1326
  }
1327
- function fn() {
1328
- return S !== null && !ve;
1327
+ function dn() {
1328
+ return S !== null && !he;
1329
1329
  }
1330
1330
  function cs(e) {
1331
- const t = Ae(_t, null);
1331
+ const t = Se(At, null);
1332
1332
  return O(t, V), t.teardown = e, t;
1333
1333
  }
1334
1334
  function Pn(e) {
@@ -1336,7 +1336,7 @@ function Pn(e) {
1336
1336
  var t = (
1337
1337
  /** @type {Effect} */
1338
1338
  k.f
1339
- ), o = !S && (t & be) !== 0 && (t & bt) === 0;
1339
+ ), o = !S && (t & ge) !== 0 && (t & vt) === 0;
1340
1340
  if (o) {
1341
1341
  var n = (
1342
1342
  /** @type {ComponentContext} */
@@ -1344,57 +1344,57 @@ function Pn(e) {
1344
1344
  );
1345
1345
  (n.e ?? (n.e = [])).push(e);
1346
1346
  } else
1347
- return Er(e);
1347
+ return Cr(e);
1348
1348
  }
1349
- function Er(e) {
1350
- return Ae(Ot | xi, e);
1349
+ function Cr(e) {
1350
+ return Se(Ot | xi, e);
1351
1351
  }
1352
1352
  function us(e) {
1353
- pt.ensure();
1354
- const t = Ae(Qe | et, e);
1353
+ ft.ensure();
1354
+ const t = Se(Qe | gt, e);
1355
1355
  return () => {
1356
1356
  H(t);
1357
1357
  };
1358
1358
  }
1359
1359
  function ds(e) {
1360
- pt.ensure();
1361
- const t = Ae(Qe | et, e);
1360
+ ft.ensure();
1361
+ const t = Se(Qe | gt, e);
1362
1362
  return (o = {}) => new Promise((n) => {
1363
- o.outro ? mt(t, () => {
1363
+ o.outro ? pt(t, () => {
1364
1364
  H(t), n(void 0);
1365
1365
  }) : (H(t), n(void 0));
1366
1366
  });
1367
1367
  }
1368
- function Pr(e) {
1369
- return Ae(Ot, e);
1368
+ function Er(e) {
1369
+ return Se(Ot, e);
1370
1370
  }
1371
1371
  function fs(e) {
1372
- return Ae(ln | et, e);
1372
+ return Se(sn | gt, e);
1373
1373
  }
1374
- function hn(e, t = 0) {
1375
- return Ae(_t | t, e);
1374
+ function fn(e, t = 0) {
1375
+ return Se(At | t, e);
1376
1376
  }
1377
1377
  function lo(e, t = [], o = [], n = []) {
1378
- Yi(n, t, o, (r) => {
1379
- Ae(_t, () => e(...r.map(v)));
1378
+ Xi(n, t, o, (r) => {
1379
+ Se(At, () => e(...r.map(p)));
1380
1380
  });
1381
1381
  }
1382
- function Eo(e, t = 0) {
1383
- var o = Ae(Ye | t, e);
1382
+ function hn(e, t = 0) {
1383
+ var o = Se(Xe | t, e);
1384
1384
  return o;
1385
1385
  }
1386
- function he(e) {
1387
- return Ae(be | et, e);
1386
+ function fe(e) {
1387
+ return Se(ge | gt, e);
1388
1388
  }
1389
- function Lr(e) {
1389
+ function Pr(e) {
1390
1390
  var t = e.teardown;
1391
1391
  if (t !== null) {
1392
1392
  const o = Ze, n = S;
1393
- Ln(!0), se(null);
1393
+ Ln(!0), ie(null);
1394
1394
  try {
1395
1395
  t.call(null);
1396
1396
  } finally {
1397
- Ln(o), se(n);
1397
+ Ln(o), ie(n);
1398
1398
  }
1399
1399
  }
1400
1400
  }
@@ -1402,8 +1402,8 @@ function pn(e, t = !1) {
1402
1402
  var o = e.first;
1403
1403
  for (e.first = e.last = null; o !== null; ) {
1404
1404
  const r = o.ac;
1405
- r !== null && Cr(() => {
1406
- r.abort(lt);
1405
+ r !== null && _r(() => {
1406
+ r.abort(it);
1407
1407
  });
1408
1408
  var n = o.next;
1409
1409
  (o.f & Qe) !== 0 ? o.parent = null : H(o, t), o = n;
@@ -1412,37 +1412,37 @@ function pn(e, t = !1) {
1412
1412
  function hs(e) {
1413
1413
  for (var t = e.first; t !== null; ) {
1414
1414
  var o = t.next;
1415
- (t.f & be) === 0 && H(t), t = o;
1415
+ (t.f & ge) === 0 && H(t), t = o;
1416
1416
  }
1417
1417
  }
1418
1418
  function H(e, t = !0) {
1419
1419
  var o = !1;
1420
- (t || (e.f & er) !== 0) && e.nodes !== null && e.nodes.end !== null && (ps(
1420
+ (t || (e.f & $i) !== 0) && e.nodes !== null && e.nodes.end !== null && (ps(
1421
1421
  e.nodes.start,
1422
1422
  /** @type {TemplateNode} */
1423
1423
  e.nodes.end
1424
- ), o = !0), pn(e, t && !o), Yt(e, 0), O(e, xe);
1424
+ ), o = !0), pn(e, t && !o), Zt(e, 0), O(e, Ie);
1425
1425
  var n = e.nodes && e.nodes.t;
1426
1426
  if (n !== null)
1427
1427
  for (const i of n)
1428
1428
  i.stop();
1429
- Lr(e);
1429
+ Pr(e);
1430
1430
  var r = e.parent;
1431
- r !== null && r.first !== null && Mr(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
1431
+ r !== null && r.first !== null && Lr(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
1432
1432
  }
1433
1433
  function ps(e, t) {
1434
1434
  for (; e !== null; ) {
1435
- var o = e === t ? null : /* @__PURE__ */ ie(e);
1435
+ var o = e === t ? null : /* @__PURE__ */ xe(e);
1436
1436
  e.remove(), e = o;
1437
1437
  }
1438
1438
  }
1439
- function Mr(e) {
1439
+ function Lr(e) {
1440
1440
  var t = e.parent, o = e.prev, n = e.next;
1441
1441
  o !== null && (o.next = n), n !== null && (n.prev = o), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = o));
1442
1442
  }
1443
- function mt(e, t, o = !0) {
1443
+ function pt(e, t, o = !0) {
1444
1444
  var n = [];
1445
- Or(e, n, !0);
1445
+ Mr(e, n, !0);
1446
1446
  var r = () => {
1447
1447
  o && H(e), t && t();
1448
1448
  }, i = n.length;
@@ -1453,7 +1453,7 @@ function mt(e, t, o = !0) {
1453
1453
  } else
1454
1454
  r();
1455
1455
  }
1456
- function Or(e, t, o) {
1456
+ function Mr(e, t, o) {
1457
1457
  if ((e.f & D) === 0) {
1458
1458
  e.f ^= D;
1459
1459
  var n = e.nodes && e.nodes.t;
@@ -1461,23 +1461,23 @@ function Or(e, t, o) {
1461
1461
  for (const l of n)
1462
1462
  (l.is_global || o) && t.push(l);
1463
1463
  for (var r = e.first; r !== null; ) {
1464
- var i = r.next, s = (r.f & Ct) !== 0 || // If this is a branch effect without a block effect parent,
1464
+ var i = r.next, s = (r.f & _t) !== 0 || // If this is a branch effect without a block effect parent,
1465
1465
  // it means the parent block effect was pruned. In that case,
1466
1466
  // transparency information was transferred to the branch effect.
1467
- (r.f & be) !== 0 && (e.f & Ye) !== 0;
1468
- Or(r, t, s ? o : !1), r = i;
1467
+ (r.f & ge) !== 0 && (e.f & Xe) !== 0;
1468
+ Mr(r, t, s ? o : !1), r = i;
1469
1469
  }
1470
1470
  }
1471
1471
  }
1472
1472
  function vn(e) {
1473
- Rr(e, !0);
1473
+ Or(e, !0);
1474
1474
  }
1475
- function Rr(e, t) {
1475
+ function Or(e, t) {
1476
1476
  if ((e.f & D) !== 0) {
1477
1477
  e.f ^= D;
1478
1478
  for (var o = e.first; o !== null; ) {
1479
- var n = o.next, r = (o.f & Ct) !== 0 || (o.f & be) !== 0;
1480
- Rr(o, r ? t : !1), o = n;
1479
+ var n = o.next, r = (o.f & _t) !== 0 || (o.f & ge) !== 0;
1480
+ Or(o, r ? t : !1), o = n;
1481
1481
  }
1482
1482
  var i = e.nodes && e.nodes.t;
1483
1483
  if (i !== null)
@@ -1488,7 +1488,7 @@ function Rr(e, t) {
1488
1488
  function gn(e, t) {
1489
1489
  if (e.nodes)
1490
1490
  for (var o = e.nodes.start, n = e.nodes.end; o !== null; ) {
1491
- var r = o === n ? null : /* @__PURE__ */ ie(o);
1491
+ var r = o === n ? null : /* @__PURE__ */ xe(o);
1492
1492
  t.append(o), o = r;
1493
1493
  }
1494
1494
  }
@@ -1496,34 +1496,34 @@ let vo = !1, Ze = !1;
1496
1496
  function Ln(e) {
1497
1497
  Ze = e;
1498
1498
  }
1499
- let S = null, ve = !1;
1500
- function se(e) {
1499
+ let S = null, he = !1;
1500
+ function ie(e) {
1501
1501
  S = e;
1502
1502
  }
1503
1503
  let k = null;
1504
- function ke(e) {
1504
+ function $e(e) {
1505
1505
  k = e;
1506
1506
  }
1507
1507
  let ne = null;
1508
- function Nr(e) {
1508
+ function Rr(e) {
1509
1509
  S !== null && (ne === null ? ne = [e] : ne.push(e));
1510
1510
  }
1511
- let G = null, J = 0, Q = null;
1511
+ let F = null, K = 0, Q = null;
1512
1512
  function vs(e) {
1513
1513
  Q = e;
1514
1514
  }
1515
- let Vr = 1, ut = 0, dt = ut;
1515
+ let Nr = 1, at = 0, ct = at;
1516
1516
  function Mn(e) {
1517
- dt = e;
1517
+ ct = e;
1518
1518
  }
1519
- function jr() {
1520
- return ++Vr;
1519
+ function Vr() {
1520
+ return ++Nr;
1521
1521
  }
1522
1522
  function Qt(e) {
1523
1523
  var t = e.f;
1524
1524
  if ((t & z) !== 0)
1525
1525
  return !0;
1526
- if (t & j && (e.f &= ~ft), (t & me) !== 0) {
1526
+ if (t & j && (e.f &= ~ut), (t & ve) !== 0) {
1527
1527
  for (var o = (
1528
1528
  /** @type {Value[]} */
1529
1529
  e.deps
@@ -1532,7 +1532,7 @@ function Qt(e) {
1532
1532
  if (Qt(
1533
1533
  /** @type {Derived} */
1534
1534
  i
1535
- ) && yr(
1535
+ ) && br(
1536
1536
  /** @type {Derived} */
1537
1537
  i
1538
1538
  ), i.wv > e.wv)
@@ -1540,80 +1540,80 @@ function Qt(e) {
1540
1540
  }
1541
1541
  (t & oe) !== 0 && // During time traveling we don't want to reset the status so that
1542
1542
  // traversal of the graph in the other batches still happens
1543
- ge === null && O(e, V);
1543
+ pe === null && O(e, V);
1544
1544
  }
1545
1545
  return !1;
1546
1546
  }
1547
- function zr(e, t, o = !0) {
1547
+ function jr(e, t, o = !0) {
1548
1548
  var n = e.reactions;
1549
- if (n !== null && !(ne !== null && At.call(ne, e)))
1549
+ if (n !== null && !(ne !== null && kt.call(ne, e)))
1550
1550
  for (var r = 0; r < n.length; r++) {
1551
1551
  var i = n[r];
1552
- (i.f & j) !== 0 ? zr(
1552
+ (i.f & j) !== 0 ? jr(
1553
1553
  /** @type {Derived} */
1554
1554
  i,
1555
1555
  t,
1556
1556
  !1
1557
- ) : t === i && (o ? O(i, z) : (i.f & V) !== 0 && O(i, me), $e(
1557
+ ) : t === i && (o ? O(i, z) : (i.f & V) !== 0 && O(i, ve), Te(
1558
1558
  /** @type {Effect} */
1559
1559
  i
1560
1560
  ));
1561
1561
  }
1562
1562
  }
1563
- function Wr(e) {
1564
- var t, o = G, n = J, r = Q, i = S, s = ne, l = re, a = ve, c = dt, d = e.f;
1565
- G = /** @type {null | Value[]} */
1566
- null, J = 0, Q = null, S = (d & (be | Qe)) === 0 ? e : null, ne = null, Et(e.ctx), ve = !1, dt = ++ut, e.ac !== null && (Cr(() => {
1567
- e.ac.abort(lt);
1563
+ function zr(e) {
1564
+ var t, o = F, n = K, r = Q, i = S, s = ne, l = re, a = he, c = ct, d = e.f;
1565
+ F = /** @type {null | Value[]} */
1566
+ null, K = 0, Q = null, S = (d & (ge | Qe)) === 0 ? e : null, ne = null, Ct(e.ctx), he = !1, ct = ++at, e.ac !== null && (_r(() => {
1567
+ e.ac.abort(it);
1568
1568
  }), e.ac = null);
1569
1569
  try {
1570
- e.f |= Wo;
1570
+ e.f |= zo;
1571
1571
  var f = (
1572
1572
  /** @type {Function} */
1573
1573
  e.fn
1574
1574
  ), b = f();
1575
- e.f |= bt;
1575
+ e.f |= vt;
1576
1576
  var g = e.deps, h = L?.is_fork;
1577
- if (G !== null) {
1577
+ if (F !== null) {
1578
1578
  var w;
1579
- if (h || Yt(e, J), g !== null && J > 0)
1580
- for (g.length = J + G.length, w = 0; w < G.length; w++)
1581
- g[J + w] = G[w];
1579
+ if (h || Zt(e, K), g !== null && K > 0)
1580
+ for (g.length = K + F.length, w = 0; w < F.length; w++)
1581
+ g[K + w] = F[w];
1582
1582
  else
1583
- e.deps = g = G;
1584
- if (fn() && (e.f & oe) !== 0)
1585
- for (w = J; w < g.length; w++)
1583
+ e.deps = g = F;
1584
+ if (dn() && (e.f & oe) !== 0)
1585
+ for (w = K; w < g.length; w++)
1586
1586
  ((t = g[w]).reactions ?? (t.reactions = [])).push(e);
1587
- } else !h && g !== null && J < g.length && (Yt(e, J), g.length = J);
1588
- if (sr() && Q !== null && !ve && g !== null && (e.f & (j | me | z)) === 0)
1587
+ } else !h && g !== null && K < g.length && (Zt(e, K), g.length = K);
1588
+ if (ir() && Q !== null && !he && g !== null && (e.f & (j | ve | z)) === 0)
1589
1589
  for (w = 0; w < /** @type {Source[]} */
1590
1590
  Q.length; w++)
1591
- zr(
1591
+ jr(
1592
1592
  Q[w],
1593
1593
  /** @type {Effect} */
1594
1594
  e
1595
1595
  );
1596
1596
  if (i !== null && i !== e) {
1597
- if (ut++, i.deps !== null)
1597
+ if (at++, i.deps !== null)
1598
1598
  for (let T = 0; T < n; T += 1)
1599
- i.deps[T].rv = ut;
1599
+ i.deps[T].rv = at;
1600
1600
  if (o !== null)
1601
1601
  for (const T of o)
1602
- T.rv = ut;
1602
+ T.rv = at;
1603
1603
  Q !== null && (r === null ? r = Q : r.push(.../** @type {Source[]} */
1604
1604
  Q));
1605
1605
  }
1606
- return (e.f & Je) !== 0 && (e.f ^= Je), b;
1606
+ return (e.f & Ye) !== 0 && (e.f ^= Ye), b;
1607
1607
  } catch (T) {
1608
- return ar(T);
1608
+ return lr(T);
1609
1609
  } finally {
1610
- e.f ^= Wo, G = o, J = n, Q = r, S = i, ne = s, Et(l), ve = a, dt = c;
1610
+ e.f ^= zo, F = o, K = n, Q = r, S = i, ne = s, Ct(l), he = a, ct = c;
1611
1611
  }
1612
1612
  }
1613
1613
  function gs(e, t) {
1614
1614
  let o = t.reactions;
1615
1615
  if (o !== null) {
1616
- var n = bi.call(o, e);
1616
+ var n = mi.call(o, e);
1617
1617
  if (n !== -1) {
1618
1618
  var r = o.length - 1;
1619
1619
  r === 0 ? o = t.reactions = null : (o[n] = o[r], o.pop());
@@ -1622,15 +1622,15 @@ function gs(e, t) {
1622
1622
  if (o === null && (t.f & j) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
1623
1623
  // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
1624
1624
  // allows us to skip the expensive work of disconnecting and immediately reconnecting it
1625
- (G === null || !At.call(G, t))) {
1625
+ (F === null || !kt.call(F, t))) {
1626
1626
  var i = (
1627
1627
  /** @type {Derived} */
1628
1628
  t
1629
1629
  );
1630
- (i.f & oe) !== 0 && (i.f ^= oe, i.f &= ~ft), an(i), is(i), Yt(i, 0);
1630
+ (i.f & oe) !== 0 && (i.f ^= oe, i.f &= ~ut), ln(i), is(i), Zt(i, 0);
1631
1631
  }
1632
1632
  }
1633
- function Yt(e, t) {
1633
+ function Zt(e, t) {
1634
1634
  var o = e.deps;
1635
1635
  if (o !== null)
1636
1636
  for (var n = t; n < o.length; n++)
@@ -1638,38 +1638,38 @@ function Yt(e, t) {
1638
1638
  }
1639
1639
  function Mt(e) {
1640
1640
  var t = e.f;
1641
- if ((t & xe) === 0) {
1641
+ if ((t & Ie) === 0) {
1642
1642
  O(e, V);
1643
1643
  var o = k, n = vo;
1644
1644
  k = e, vo = !0;
1645
1645
  try {
1646
- (t & (Ye | sn)) !== 0 ? hs(e) : pn(e), Lr(e);
1647
- var r = Wr(e);
1648
- e.teardown = typeof r == "function" ? r : null, e.wv = Vr;
1646
+ (t & (Xe | rn)) !== 0 ? hs(e) : pn(e), Pr(e);
1647
+ var r = zr(e);
1648
+ e.teardown = typeof r == "function" ? r : null, e.wv = Nr;
1649
1649
  var i;
1650
- mi && Bi && (e.f & z) !== 0 && e.deps;
1650
+ gi && qi && (e.f & z) !== 0 && e.deps;
1651
1651
  } finally {
1652
1652
  vo = n, k = o;
1653
1653
  }
1654
1654
  }
1655
1655
  }
1656
- function v(e) {
1656
+ function p(e) {
1657
1657
  var t = e.f, o = (t & j) !== 0;
1658
- if (S !== null && !ve) {
1659
- var n = k !== null && (k.f & xe) !== 0;
1660
- if (!n && (ne === null || !At.call(ne, e))) {
1658
+ if (S !== null && !he) {
1659
+ var n = k !== null && (k.f & Ie) !== 0;
1660
+ if (!n && (ne === null || !kt.call(ne, e))) {
1661
1661
  var r = S.deps;
1662
- if ((S.f & Wo) !== 0)
1663
- e.rv < ut && (e.rv = ut, G === null && r !== null && r[J] === e ? J++ : G === null ? G = [e] : G.push(e));
1662
+ if ((S.f & zo) !== 0)
1663
+ e.rv < at && (e.rv = at, F === null && r !== null && r[K] === e ? K++ : F === null ? F = [e] : F.push(e));
1664
1664
  else {
1665
1665
  (S.deps ?? (S.deps = [])).push(e);
1666
1666
  var i = e.reactions;
1667
- i === null ? e.reactions = [S] : At.call(i, S) || i.push(S);
1667
+ i === null ? e.reactions = [S] : kt.call(i, S) || i.push(S);
1668
1668
  }
1669
1669
  }
1670
1670
  }
1671
- if (Ze && Xe.has(e))
1672
- return Xe.get(e);
1671
+ if (Ze && Je.has(e))
1672
+ return Je.get(e);
1673
1673
  if (o) {
1674
1674
  var s = (
1675
1675
  /** @type {Derived} */
@@ -1677,24 +1677,24 @@ function v(e) {
1677
1677
  );
1678
1678
  if (Ze) {
1679
1679
  var l = s.v;
1680
- return ((s.f & V) === 0 && s.reactions !== null || Br(s)) && (l = cn(s)), Xe.set(s, l), l;
1680
+ return ((s.f & V) === 0 && s.reactions !== null || Br(s)) && (l = an(s)), Je.set(s, l), l;
1681
1681
  }
1682
- var a = (s.f & oe) === 0 && !ve && S !== null && (vo || (S.f & oe) !== 0), c = (s.f & bt) === 0;
1683
- Qt(s) && (a && (s.f |= oe), yr(s)), a && !c && (wr(s), qr(s));
1682
+ var a = (s.f & oe) === 0 && !he && S !== null && (vo || (S.f & oe) !== 0), c = (s.f & vt) === 0;
1683
+ Qt(s) && (a && (s.f |= oe), br(s)), a && !c && (yr(s), Wr(s));
1684
1684
  }
1685
- if (ge?.has(e))
1686
- return ge.get(e);
1687
- if ((e.f & Je) !== 0)
1685
+ if (pe?.has(e))
1686
+ return pe.get(e);
1687
+ if ((e.f & Ye) !== 0)
1688
1688
  throw e.v;
1689
1689
  return e.v;
1690
1690
  }
1691
- function qr(e) {
1691
+ function Wr(e) {
1692
1692
  if (e.f |= oe, e.deps !== null)
1693
1693
  for (const t of e.deps)
1694
- (t.reactions ?? (t.reactions = [])).push(e), (t.f & j) !== 0 && (t.f & oe) === 0 && (wr(
1694
+ (t.reactions ?? (t.reactions = [])).push(e), (t.f & j) !== 0 && (t.f & oe) === 0 && (yr(
1695
1695
  /** @type {Derived} */
1696
1696
  t
1697
- ), qr(
1697
+ ), Wr(
1698
1698
  /** @type {Derived} */
1699
1699
  t
1700
1700
  ));
@@ -1703,29 +1703,29 @@ function Br(e) {
1703
1703
  if (e.v === N) return !0;
1704
1704
  if (e.deps === null) return !1;
1705
1705
  for (const t of e.deps)
1706
- if (Xe.has(t) || (t.f & j) !== 0 && Br(
1706
+ if (Je.has(t) || (t.f & j) !== 0 && Br(
1707
1707
  /** @type {Derived} */
1708
1708
  t
1709
1709
  ))
1710
1710
  return !0;
1711
1711
  return !1;
1712
1712
  }
1713
- function Dr(e) {
1714
- var t = ve;
1713
+ function qr(e) {
1714
+ var t = he;
1715
1715
  try {
1716
- return ve = !0, e();
1716
+ return he = !0, e();
1717
1717
  } finally {
1718
- ve = t;
1718
+ he = t;
1719
1719
  }
1720
1720
  }
1721
- const xt = /* @__PURE__ */ Symbol("events"), Hr = /* @__PURE__ */ new Set(), Zo = /* @__PURE__ */ new Set();
1722
- function zt(e, t, o) {
1723
- (t[xt] ?? (t[xt] = {}))[e] = o;
1721
+ const $t = /* @__PURE__ */ Symbol("events"), Dr = /* @__PURE__ */ new Set(), Jo = /* @__PURE__ */ new Set();
1722
+ function jt(e, t, o) {
1723
+ (t[$t] ?? (t[$t] = {}))[e] = o;
1724
1724
  }
1725
1725
  function ms(e) {
1726
1726
  for (var t = 0; t < e.length; t++)
1727
- Hr.add(e[t]);
1728
- for (var o of Zo)
1727
+ Dr.add(e[t]);
1728
+ for (var o of Jo)
1729
1729
  o(e);
1730
1730
  }
1731
1731
  let On = null;
@@ -1738,12 +1738,12 @@ function Rn(e) {
1738
1738
  r[0] || e.target
1739
1739
  );
1740
1740
  On = e;
1741
- var s = 0, l = On === e && e[xt];
1741
+ var s = 0, l = On === e && e[$t];
1742
1742
  if (l) {
1743
1743
  var a = r.indexOf(l);
1744
1744
  if (a !== -1 && (t === document || t === /** @type {any} */
1745
1745
  window)) {
1746
- e[xt] = t;
1746
+ e[$t] = t;
1747
1747
  return;
1748
1748
  }
1749
1749
  var c = r.indexOf(t);
@@ -1760,13 +1760,13 @@ function Rn(e) {
1760
1760
  }
1761
1761
  });
1762
1762
  var d = S, f = k;
1763
- se(null), ke(null);
1763
+ ie(null), $e(null);
1764
1764
  try {
1765
1765
  for (var b, g = []; i !== null; ) {
1766
1766
  var h = i.assignedSlot || i.parentNode || /** @type {any} */
1767
1767
  i.host || null;
1768
1768
  try {
1769
- var w = i[xt]?.[n];
1769
+ var w = i[$t]?.[n];
1770
1770
  w != null && (!/** @type {any} */
1771
1771
  i.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
1772
1772
  // -> the target could not have been disabled because it emits the event in the first place
@@ -1786,7 +1786,7 @@ function Rn(e) {
1786
1786
  throw b;
1787
1787
  }
1788
1788
  } finally {
1789
- e[xt] = t, delete e.currentTarget, se(d), ke(f);
1789
+ e[$t] = t, delete e.currentTarget, ie(d), $e(f);
1790
1790
  }
1791
1791
  }
1792
1792
  }
@@ -1804,7 +1804,7 @@ function ys(e) {
1804
1804
  );
1805
1805
  }
1806
1806
  function ws(e) {
1807
- var t = un("template");
1807
+ var t = cn("template");
1808
1808
  return t.innerHTML = ys(e.replaceAll("<!>", "<!---->")), t.content;
1809
1809
  }
1810
1810
  function go(e, t) {
@@ -1815,21 +1815,21 @@ function go(e, t) {
1815
1815
  o.nodes === null && (o.nodes = { start: e, end: t, a: null, t: null });
1816
1816
  }
1817
1817
  // @__NO_SIDE_EFFECTS__
1818
- function tt(e, t) {
1819
- var o = (t & vi) !== 0, n = (t & gi) !== 0, r, i = !e.startsWith("<!>");
1818
+ function mt(e, t) {
1819
+ var o = (t & pi) !== 0, n = (t & vi) !== 0, r, i = !e.startsWith("<!>");
1820
1820
  return () => {
1821
- if (E)
1822
- return go(_, null), _;
1821
+ if (P)
1822
+ return go(C, null), C;
1823
1823
  r === void 0 && (r = ws(i ? e : "<!>" + e), o || (r = /** @type {TemplateNode} */
1824
- /* @__PURE__ */ gt(r)));
1824
+ /* @__PURE__ */ Lt(r)));
1825
1825
  var s = (
1826
1826
  /** @type {TemplateNode} */
1827
- n || xr ? document.importNode(r, !0) : r.cloneNode(!0)
1827
+ n || $r ? document.importNode(r, !0) : r.cloneNode(!0)
1828
1828
  );
1829
1829
  if (o) {
1830
1830
  var l = (
1831
1831
  /** @type {TemplateNode} */
1832
- /* @__PURE__ */ gt(s)
1832
+ /* @__PURE__ */ Lt(s)
1833
1833
  ), a = (
1834
1834
  /** @type {TemplateNode} */
1835
1835
  s.lastChild
@@ -1840,13 +1840,13 @@ function tt(e, t) {
1840
1840
  return s;
1841
1841
  };
1842
1842
  }
1843
- function Ee(e, t) {
1844
- if (E) {
1843
+ function He(e, t) {
1844
+ if (P) {
1845
1845
  var o = (
1846
1846
  /** @type {Effect & { nodes: EffectNodes }} */
1847
1847
  k
1848
1848
  );
1849
- ((o.f & bt) === 0 || o.nodes.end === null) && (o.nodes.end = _), Ao();
1849
+ ((o.f & vt) === 0 || o.nodes.end === null) && (o.nodes.end = C), Ao();
1850
1850
  return;
1851
1851
  }
1852
1852
  e !== null && e.before(
@@ -1862,40 +1862,40 @@ function Nn(e, t) {
1862
1862
  var o = t == null ? "" : typeof t == "object" ? `${t}` : t;
1863
1863
  o !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = o, e.nodeValue = `${o}`);
1864
1864
  }
1865
- function Fr(e, t) {
1866
- return Gr(e, t);
1865
+ function Hr(e, t) {
1866
+ return Fr(e, t);
1867
1867
  }
1868
1868
  function $s(e, t) {
1869
- Xo(), t.intro = t.intro ?? !1;
1870
- const o = t.target, n = E, r = _;
1869
+ Yo(), t.intro = t.intro ?? !1;
1870
+ const o = t.target, n = P, r = C;
1871
1871
  try {
1872
- for (var i = /* @__PURE__ */ gt(o); i && (i.nodeType !== Rt || /** @type {Comment} */
1873
- i.data !== Jn); )
1874
- i = /* @__PURE__ */ ie(i);
1872
+ for (var i = /* @__PURE__ */ Lt(o); i && (i.nodeType !== Xt || /** @type {Comment} */
1873
+ i.data !== Yn); )
1874
+ i = /* @__PURE__ */ xe(i);
1875
1875
  if (!i)
1876
- throw kt;
1877
- pe(!0), F(
1876
+ throw St;
1877
+ Me(!0), J(
1878
1878
  /** @type {Comment} */
1879
1879
  i
1880
1880
  );
1881
- const s = Gr(e, { ...t, anchor: i });
1882
- return pe(!1), /** @type {Exports} */
1881
+ const s = Fr(e, { ...t, anchor: i });
1882
+ return Me(!1), /** @type {Exports} */
1883
1883
  s;
1884
1884
  } catch (s) {
1885
1885
  if (s instanceof Error && s.message.split(`
1886
1886
  `).some((l) => l.startsWith("https://svelte.dev/e/")))
1887
1887
  throw s;
1888
- return s !== kt && console.warn("Failed to hydrate: ", s), t.recover === !1 && Oi(), Xo(), Ar(o), pe(!1), Fr(e, t);
1888
+ return s !== St && console.warn("Failed to hydrate: ", s), t.recover === !1 && Oi(), Yo(), kr(o), Me(!1), Hr(e, t);
1889
1889
  } finally {
1890
- pe(n), F(r);
1890
+ Me(n), J(r);
1891
1891
  }
1892
1892
  }
1893
1893
  const ao = /* @__PURE__ */ new Map();
1894
- function Gr(e, { target: t, anchor: o, props: n = {}, events: r, context: i, intro: s = !0, transformError: l }) {
1895
- Xo();
1894
+ function Fr(e, { target: t, anchor: o, props: n = {}, events: r, context: i, intro: s = !0, transformError: l }) {
1895
+ Yo();
1896
1896
  var a = void 0, c = ds(() => {
1897
- var d = o ?? t.appendChild(Se());
1898
- Xi(
1897
+ var d = o ?? t.appendChild(Oe());
1898
+ Ji(
1899
1899
  /** @type {TemplateNode} */
1900
1900
  d,
1901
1901
  {
@@ -1903,19 +1903,19 @@ function Gr(e, { target: t, anchor: o, props: n = {}, events: r, context: i, int
1903
1903
  }
1904
1904
  },
1905
1905
  (g) => {
1906
- rr({});
1906
+ nr({});
1907
1907
  var h = (
1908
1908
  /** @type {ComponentContext} */
1909
1909
  re
1910
1910
  );
1911
- if (i && (h.c = i), r && (n.$$events = r), E && go(
1911
+ if (i && (h.c = i), r && (n.$$events = r), P && go(
1912
1912
  /** @type {TemplateNode} */
1913
1913
  g,
1914
1914
  null
1915
- ), a = e(g, n) || {}, E && (k.nodes.end = _, _ === null || _.nodeType !== Rt || /** @type {Comment} */
1916
- _.data !== rn))
1917
- throw ko(), kt;
1918
- ir();
1915
+ ), a = e(g, n) || {}, P && (k.nodes.end = C, C === null || C.nodeType !== Xt || /** @type {Comment} */
1916
+ C.data !== nn))
1917
+ throw ko(), St;
1918
+ rr();
1919
1919
  },
1920
1920
  l
1921
1921
  );
@@ -1925,16 +1925,16 @@ function Gr(e, { target: t, anchor: o, props: n = {}, events: r, context: i, int
1925
1925
  if (!f.has(w)) {
1926
1926
  f.add(w);
1927
1927
  var T = Is(w);
1928
- for (const le of [t, document]) {
1929
- var $ = ao.get(le);
1930
- $ === void 0 && ($ = /* @__PURE__ */ new Map(), ao.set(le, $));
1931
- var P = $.get(w);
1932
- P === void 0 ? (le.addEventListener(w, Rn, { passive: T }), $.set(w, 1)) : $.set(w, P + 1);
1928
+ for (const se of [t, document]) {
1929
+ var $ = ao.get(se);
1930
+ $ === void 0 && ($ = /* @__PURE__ */ new Map(), ao.set(se, $));
1931
+ var E = $.get(w);
1932
+ E === void 0 ? (se.addEventListener(w, Rn, { passive: T }), $.set(w, 1)) : $.set(w, E + 1);
1933
1933
  }
1934
1934
  }
1935
1935
  }
1936
1936
  };
1937
- return b(xo(Hr)), Zo.add(b), () => {
1937
+ return b(xo(Dr)), Jo.add(b), () => {
1938
1938
  for (var g of f)
1939
1939
  for (const T of [t, document]) {
1940
1940
  var h = (
@@ -1946,59 +1946,59 @@ function Gr(e, { target: t, anchor: o, props: n = {}, events: r, context: i, int
1946
1946
  );
1947
1947
  --w == 0 ? (T.removeEventListener(g, Rn), h.delete(g), h.size === 0 && ao.delete(T)) : h.set(g, w);
1948
1948
  }
1949
- Zo.delete(b), d !== o && d.parentNode?.removeChild(d);
1949
+ Jo.delete(b), d !== o && d.parentNode?.removeChild(d);
1950
1950
  };
1951
1951
  });
1952
- return Yo.set(a, c), a;
1952
+ return Zo.set(a, c), a;
1953
1953
  }
1954
- let Yo = /* @__PURE__ */ new WeakMap();
1954
+ let Zo = /* @__PURE__ */ new WeakMap();
1955
1955
  function xs(e, t) {
1956
- const o = Yo.get(e);
1957
- return o ? (Yo.delete(e), o(t)) : Promise.resolve();
1956
+ const o = Zo.get(e);
1957
+ return o ? (Zo.delete(e), o(t)) : Promise.resolve();
1958
1958
  }
1959
- var ye, Fe, we, Tt, mo, Qo, Ur;
1959
+ var me, Fe, be, wt, mo, Xo, Gr;
1960
1960
  class Ss {
1961
1961
  /**
1962
1962
  * @param {TemplateNode} anchor
1963
1963
  * @param {boolean} transition
1964
1964
  */
1965
1965
  constructor(t, o = !0) {
1966
- m(this, "anchor"), x(this, ye, /* @__PURE__ */ new Map()), x(this, Fe, /* @__PURE__ */ new Map()), x(this, we, /* @__PURE__ */ new Map()), x(this, Tt, /* @__PURE__ */ new Set()), x(this, mo, !0), x(this, Qo, (n) => {
1967
- if (u(this, ye).has(n)) {
1966
+ m(this, "anchor"), x(this, me, /* @__PURE__ */ new Map()), x(this, Fe, /* @__PURE__ */ new Map()), x(this, be, /* @__PURE__ */ new Map()), x(this, wt, /* @__PURE__ */ new Set()), x(this, mo, !0), x(this, Xo, (n) => {
1967
+ if (u(this, me).has(n)) {
1968
1968
  var r = (
1969
1969
  /** @type {Key} */
1970
- u(this, ye).get(n)
1970
+ u(this, me).get(n)
1971
1971
  ), i = u(this, Fe).get(r);
1972
1972
  if (i)
1973
- vn(i), u(this, Tt).delete(r);
1973
+ vn(i), u(this, wt).delete(r);
1974
1974
  else {
1975
- var s = u(this, we).get(r);
1976
- s && (s.effect.f & D) === 0 && (u(this, Fe).set(r, s.effect), u(this, we).delete(r), s.fragment.lastChild.remove(), this.anchor.before(s.fragment), i = s.effect);
1975
+ var s = u(this, be).get(r);
1976
+ s && (s.effect.f & D) === 0 && (u(this, Fe).set(r, s.effect), u(this, be).delete(r), s.fragment.lastChild.remove(), this.anchor.before(s.fragment), i = s.effect);
1977
1977
  }
1978
- for (const [l, a] of u(this, ye)) {
1979
- if (u(this, ye).delete(l), l === n)
1978
+ for (const [l, a] of u(this, me)) {
1979
+ if (u(this, me).delete(l), l === n)
1980
1980
  break;
1981
- const c = u(this, we).get(a);
1982
- c && (H(c.effect), u(this, we).delete(a));
1981
+ const c = u(this, be).get(a);
1982
+ c && (H(c.effect), u(this, be).delete(a));
1983
1983
  }
1984
1984
  for (const [l, a] of u(this, Fe)) {
1985
- if (l === r || u(this, Tt).has(l) || (a.f & D) !== 0) continue;
1985
+ if (l === r || u(this, wt).has(l) || (a.f & D) !== 0) continue;
1986
1986
  const c = () => {
1987
- if (Array.from(u(this, ye).values()).includes(l)) {
1987
+ if (Array.from(u(this, me).values()).includes(l)) {
1988
1988
  var d = document.createDocumentFragment();
1989
- gn(a, d), d.append(Se()), u(this, we).set(l, { effect: a, fragment: d });
1989
+ gn(a, d), d.append(Oe()), u(this, be).set(l, { effect: a, fragment: d });
1990
1990
  } else
1991
1991
  H(a);
1992
- u(this, Tt).delete(l), u(this, Fe).delete(l);
1992
+ u(this, wt).delete(l), u(this, Fe).delete(l);
1993
1993
  };
1994
- u(this, mo) || !i ? (u(this, Tt).add(l), mt(a, c, !1)) : c();
1994
+ u(this, mo) || !i ? (u(this, wt).add(l), pt(a, c, !1)) : c();
1995
1995
  }
1996
1996
  }
1997
- }), x(this, Ur, (n) => {
1998
- u(this, ye).delete(n);
1999
- const r = Array.from(u(this, ye).values());
2000
- for (const [i, s] of u(this, we))
2001
- r.includes(i) || (H(s.effect), u(this, we).delete(i));
1997
+ }), x(this, Gr, (n) => {
1998
+ u(this, me).delete(n);
1999
+ const r = Array.from(u(this, me).values());
2000
+ for (const [i, s] of u(this, be))
2001
+ r.includes(i) || (H(s.effect), u(this, be).delete(i));
2002
2002
  }), this.anchor = t, I(this, mo, o);
2003
2003
  }
2004
2004
  /**
@@ -2010,33 +2010,33 @@ class Ss {
2010
2010
  var n = (
2011
2011
  /** @type {Batch} */
2012
2012
  L
2013
- ), r = _r();
2014
- o && !u(this, Fe).has(t) && !u(this, we).has(t) && u(this, Fe).set(
2013
+ ), r = Ar();
2014
+ o && !u(this, Fe).has(t) && !u(this, be).has(t) && u(this, Fe).set(
2015
2015
  t,
2016
- he(() => o(this.anchor))
2017
- ), u(this, ye).set(n, t), r || (E && (this.anchor = _), u(this, Qo).call(this, n));
2016
+ fe(() => o(this.anchor))
2017
+ ), u(this, me).set(n, t), r || (P && (this.anchor = C), u(this, Xo).call(this, n));
2018
2018
  }
2019
2019
  }
2020
- ye = /* @__PURE__ */ new WeakMap(), Fe = /* @__PURE__ */ new WeakMap(), we = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), mo = /* @__PURE__ */ new WeakMap(), Qo = /* @__PURE__ */ new WeakMap(), Ur = /* @__PURE__ */ new WeakMap();
2021
- function Wt(e, t, o = !1) {
2020
+ me = /* @__PURE__ */ new WeakMap(), Fe = /* @__PURE__ */ new WeakMap(), be = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakMap(), mo = /* @__PURE__ */ new WeakMap(), Xo = /* @__PURE__ */ new WeakMap(), Gr = /* @__PURE__ */ new WeakMap();
2021
+ function zt(e, t, o = !1) {
2022
2022
  var n;
2023
- E && (n = _, Ao());
2024
- var r = new Ss(e), i = o ? Ct : 0;
2023
+ P && (n = C, Ao());
2024
+ var r = new Ss(e), i = o ? _t : 0;
2025
2025
  function s(l, a) {
2026
- if (E) {
2027
- var c = tr(
2026
+ if (P) {
2027
+ var c = er(
2028
2028
  /** @type {TemplateNode} */
2029
2029
  n
2030
2030
  );
2031
2031
  if (l !== parseInt(c.substring(1))) {
2032
2032
  var d = Io();
2033
- F(d), r.anchor = d, pe(!1), r.ensure(l, a), pe(!0);
2033
+ J(d), r.anchor = d, Me(!1), r.ensure(l, a), Me(!0);
2034
2034
  return;
2035
2035
  }
2036
2036
  }
2037
2037
  r.ensure(l, a);
2038
2038
  }
2039
- Eo(() => {
2039
+ hn(() => {
2040
2040
  var l = !1;
2041
2041
  t((a, c = 0) => {
2042
2042
  l = !0, s(c, a);
@@ -2049,7 +2049,7 @@ function ks(e, t) {
2049
2049
  function As(e, t, o) {
2050
2050
  for (var n = [], r = t.length, i, s = t.length, l = 0; l < r; l++) {
2051
2051
  let f = t[l];
2052
- mt(
2052
+ pt(
2053
2053
  f,
2054
2054
  () => {
2055
2055
  if (i) {
@@ -2058,7 +2058,7 @@ function As(e, t, o) {
2058
2058
  /** @type {Set<EachOutroGroup>} */
2059
2059
  e.outrogroups
2060
2060
  );
2061
- en(e, xo(i.done)), b.delete(i), b.size === 0 && (e.outrogroups = null);
2061
+ Qo(e, xo(i.done)), b.delete(i), b.size === 0 && (e.outrogroups = null);
2062
2062
  }
2063
2063
  } else
2064
2064
  s -= 1;
@@ -2076,16 +2076,16 @@ function As(e, t, o) {
2076
2076
  /** @type {Element} */
2077
2077
  c.parentNode
2078
2078
  );
2079
- Ar(d), d.append(c), e.items.clear();
2079
+ kr(d), d.append(c), e.items.clear();
2080
2080
  }
2081
- en(e, t, !a);
2081
+ Qo(e, t, !a);
2082
2082
  } else
2083
2083
  i = {
2084
2084
  pending: new Set(t),
2085
2085
  done: /* @__PURE__ */ new Set()
2086
2086
  }, (e.outrogroups ?? (e.outrogroups = /* @__PURE__ */ new Set())).add(i);
2087
2087
  }
2088
- function en(e, t, o = !0) {
2088
+ function Qo(e, t, o = !0) {
2089
2089
  var n;
2090
2090
  if (e.pending.size > 0) {
2091
2091
  n = /* @__PURE__ */ new Set();
@@ -2099,7 +2099,7 @@ function en(e, t, o = !0) {
2099
2099
  for (var r = 0; r < t.length; r++) {
2100
2100
  var i = t[r];
2101
2101
  if (n?.has(i)) {
2102
- i.f |= Re;
2102
+ i.f |= Le;
2103
2103
  const s = document.createDocumentFragment();
2104
2104
  gn(i, s);
2105
2105
  } else
@@ -2109,103 +2109,103 @@ function en(e, t, o = !0) {
2109
2109
  var co;
2110
2110
  function _s(e, t, o, n, r, i = null) {
2111
2111
  var s = e, l = /* @__PURE__ */ new Map();
2112
- E && Ao();
2112
+ P && Ao();
2113
2113
  var a = null, c = /* @__PURE__ */ os(() => {
2114
2114
  var $ = o();
2115
2115
  return Zn($) ? $ : $ == null ? [] : xo($);
2116
2116
  }), d, f = /* @__PURE__ */ new Map(), b = !0;
2117
2117
  function g($) {
2118
- (T.effect.f & xe) === 0 && (T.pending.delete($), T.fallback = a, Cs(T, d, s, t, n), a !== null && (d.length === 0 ? (a.f & Re) === 0 ? vn(a) : (a.f ^= Re, Gt(a, null, s)) : mt(a, () => {
2118
+ (T.effect.f & Ie) === 0 && (T.pending.delete($), T.fallback = a, Cs(T, d, s, t, n), a !== null && (d.length === 0 ? (a.f & Le) === 0 ? vn(a) : (a.f ^= Le, Ft(a, null, s)) : pt(a, () => {
2119
2119
  a = null;
2120
2120
  })));
2121
2121
  }
2122
2122
  function h($) {
2123
2123
  T.pending.delete($);
2124
2124
  }
2125
- var w = Eo(() => {
2125
+ var w = hn(() => {
2126
2126
  d = /** @type {V[]} */
2127
- v(c);
2127
+ p(c);
2128
2128
  var $ = d.length;
2129
- let P = !1;
2130
- if (E) {
2131
- var le = tr(s) === nn;
2132
- le !== ($ === 0) && (s = Io(), F(s), pe(!1), P = !0);
2129
+ let E = !1;
2130
+ if (P) {
2131
+ var se = er(s) === on;
2132
+ se !== ($ === 0) && (s = Io(), J(s), Me(!1), E = !0);
2133
2133
  }
2134
- for (var ae = /* @__PURE__ */ new Set(), W = (
2134
+ for (var le = /* @__PURE__ */ new Set(), W = (
2135
2135
  /** @type {Batch} */
2136
2136
  L
2137
- ), je = _r(), Z = 0; Z < $; Z += 1) {
2138
- E && _.nodeType === Rt && /** @type {Comment} */
2139
- _.data === rn && (s = /** @type {Comment} */
2140
- _, P = !0, pe(!1));
2141
- var Y = d[Z], yt = n(Y, Z), ce = b ? null : l.get(yt);
2142
- ce ? (ce.v && Lt(ce.v, Y), ce.i && Lt(ce.i, Z), je && W.unskip_effect(ce.e)) : (ce = Es(
2137
+ ), Ve = Ar(), Z = 0; Z < $; Z += 1) {
2138
+ P && C.nodeType === Xt && /** @type {Comment} */
2139
+ C.data === nn && (s = /** @type {Comment} */
2140
+ C, E = !0, Me(!1));
2141
+ var X = d[Z], bt = n(X, Z), ae = b ? null : l.get(bt);
2142
+ ae ? (ae.v && Pt(ae.v, X), ae.i && Pt(ae.i, Z), Ve && W.unskip_effect(ae.e)) : (ae = Es(
2143
2143
  l,
2144
- b ? s : co ?? (co = Se()),
2145
- Y,
2146
- yt,
2144
+ b ? s : co ?? (co = Oe()),
2145
+ X,
2146
+ bt,
2147
2147
  Z,
2148
2148
  r,
2149
2149
  t,
2150
2150
  o
2151
- ), b || (ce.e.f |= Re), l.set(yt, ce)), ae.add(yt);
2151
+ ), b || (ae.e.f |= Le), l.set(bt, ae)), le.add(bt);
2152
2152
  }
2153
- if ($ === 0 && i && !a && (b ? a = he(() => i(s)) : (a = he(() => i(co ?? (co = Se()))), a.f |= Re)), $ > ae.size && Ci(), E && $ > 0 && F(Io()), !b)
2154
- if (f.set(W, ae), je) {
2155
- for (const [eo, Mo] of l)
2156
- ae.has(eo) || W.skip_effect(Mo.e);
2153
+ if ($ === 0 && i && !a && (b ? a = fe(() => i(s)) : (a = fe(() => i(co ?? (co = Oe()))), a.f |= Le)), $ > le.size && Ci(), P && $ > 0 && J(Io()), !b)
2154
+ if (f.set(W, le), Ve) {
2155
+ for (const [eo, Lo] of l)
2156
+ le.has(eo) || W.skip_effect(Lo.e);
2157
2157
  W.oncommit(g), W.ondiscard(h);
2158
2158
  } else
2159
2159
  g(W);
2160
- P && pe(!0), v(c);
2160
+ E && Me(!0), p(c);
2161
2161
  }), T = { effect: w, items: l, pending: f, outrogroups: null, fallback: a };
2162
- b = !1, E && (s = _);
2162
+ b = !1, P && (s = C);
2163
2163
  }
2164
- function qt(e) {
2165
- for (; e !== null && (e.f & be) === 0; )
2164
+ function Wt(e) {
2165
+ for (; e !== null && (e.f & ge) === 0; )
2166
2166
  e = e.next;
2167
2167
  return e;
2168
2168
  }
2169
2169
  function Cs(e, t, o, n, r) {
2170
- var i = t.length, s = e.items, l = qt(e.effect.first), a, c = null, d = [], f = [], b, g, h, w;
2170
+ var i = t.length, s = e.items, l = Wt(e.effect.first), a, c = null, d = [], f = [], b, g, h, w;
2171
2171
  for (w = 0; w < i; w += 1) {
2172
2172
  if (b = t[w], g = r(b, w), h = /** @type {EachItem} */
2173
2173
  s.get(g).e, e.outrogroups !== null)
2174
- for (const Y of e.outrogroups)
2175
- Y.pending.delete(h), Y.done.delete(h);
2176
- if ((h.f & Re) !== 0)
2177
- if (h.f ^= Re, h === l)
2178
- Gt(h, null, o);
2174
+ for (const X of e.outrogroups)
2175
+ X.pending.delete(h), X.done.delete(h);
2176
+ if ((h.f & Le) !== 0)
2177
+ if (h.f ^= Le, h === l)
2178
+ Ft(h, null, o);
2179
2179
  else {
2180
2180
  var T = c ? c.next : l;
2181
- h === e.effect.last && (e.effect.last = h.prev), h.prev && (h.prev.next = h.next), h.next && (h.next.prev = h.prev), We(e, c, h), We(e, h, T), Gt(h, T, o), c = h, d = [], f = [], l = qt(c.next);
2181
+ h === e.effect.last && (e.effect.last = h.prev), h.prev && (h.prev.next = h.next), h.next && (h.next.prev = h.prev), ze(e, c, h), ze(e, h, T), Ft(h, T, o), c = h, d = [], f = [], l = Wt(c.next);
2182
2182
  continue;
2183
2183
  }
2184
2184
  if ((h.f & D) !== 0 && vn(h), h !== l) {
2185
2185
  if (a !== void 0 && a.has(h)) {
2186
2186
  if (d.length < f.length) {
2187
- var $ = f[0], P;
2187
+ var $ = f[0], E;
2188
2188
  c = $.prev;
2189
- var le = d[0], ae = d[d.length - 1];
2190
- for (P = 0; P < d.length; P += 1)
2191
- Gt(d[P], $, o);
2192
- for (P = 0; P < f.length; P += 1)
2193
- a.delete(f[P]);
2194
- We(e, le.prev, ae.next), We(e, c, le), We(e, ae, $), l = $, c = ae, w -= 1, d = [], f = [];
2189
+ var se = d[0], le = d[d.length - 1];
2190
+ for (E = 0; E < d.length; E += 1)
2191
+ Ft(d[E], $, o);
2192
+ for (E = 0; E < f.length; E += 1)
2193
+ a.delete(f[E]);
2194
+ ze(e, se.prev, le.next), ze(e, c, se), ze(e, le, $), l = $, c = le, w -= 1, d = [], f = [];
2195
2195
  } else
2196
- a.delete(h), Gt(h, l, o), We(e, h.prev, h.next), We(e, h, c === null ? e.effect.first : c.next), We(e, c, h), c = h;
2196
+ a.delete(h), Ft(h, l, o), ze(e, h.prev, h.next), ze(e, h, c === null ? e.effect.first : c.next), ze(e, c, h), c = h;
2197
2197
  continue;
2198
2198
  }
2199
2199
  for (d = [], f = []; l !== null && l !== h; )
2200
- (a ?? (a = /* @__PURE__ */ new Set())).add(l), f.push(l), l = qt(l.next);
2200
+ (a ?? (a = /* @__PURE__ */ new Set())).add(l), f.push(l), l = Wt(l.next);
2201
2201
  if (l === null)
2202
2202
  continue;
2203
2203
  }
2204
- (h.f & Re) === 0 && d.push(h), c = h, l = qt(h.next);
2204
+ (h.f & Le) === 0 && d.push(h), c = h, l = Wt(h.next);
2205
2205
  }
2206
2206
  if (e.outrogroups !== null) {
2207
- for (const Y of e.outrogroups)
2208
- Y.pending.size === 0 && (en(e, xo(Y.done)), e.outrogroups?.delete(Y));
2207
+ for (const X of e.outrogroups)
2208
+ X.pending.size === 0 && (Qo(e, xo(X.done)), e.outrogroups?.delete(X));
2209
2209
  e.outrogroups.size === 0 && (e.outrogroups = null);
2210
2210
  }
2211
2211
  if (l !== null || a !== void 0) {
@@ -2214,72 +2214,44 @@ function Cs(e, t, o, n, r) {
2214
2214
  for (h of a)
2215
2215
  (h.f & D) === 0 && W.push(h);
2216
2216
  for (; l !== null; )
2217
- (l.f & D) === 0 && l !== e.fallback && W.push(l), l = qt(l.next);
2218
- var je = W.length;
2219
- if (je > 0) {
2217
+ (l.f & D) === 0 && l !== e.fallback && W.push(l), l = Wt(l.next);
2218
+ var Ve = W.length;
2219
+ if (Ve > 0) {
2220
2220
  var Z = null;
2221
2221
  As(e, W, Z);
2222
2222
  }
2223
2223
  }
2224
2224
  }
2225
2225
  function Es(e, t, o, n, r, i, s, l) {
2226
- var a = (s & fi) !== 0 ? (s & pi) === 0 ? /* @__PURE__ */ Ir(o, !1, !1) : vt(o) : null, c = (s & hi) !== 0 ? vt(r) : null;
2226
+ var a = (s & di) !== 0 ? (s & hi) === 0 ? /* @__PURE__ */ Tr(o, !1, !1) : ht(o) : null, c = (s & fi) !== 0 ? ht(r) : null;
2227
2227
  return {
2228
2228
  v: a,
2229
2229
  i: c,
2230
- e: he(() => (i(t, a ?? o, c ?? r, l), () => {
2230
+ e: fe(() => (i(t, a ?? o, c ?? r, l), () => {
2231
2231
  e.delete(n);
2232
2232
  }))
2233
2233
  };
2234
2234
  }
2235
- function Gt(e, t, o) {
2235
+ function Ft(e, t, o) {
2236
2236
  if (e.nodes)
2237
- for (var n = e.nodes.start, r = e.nodes.end, i = t && (t.f & Re) === 0 ? (
2237
+ for (var n = e.nodes.start, r = e.nodes.end, i = t && (t.f & Le) === 0 ? (
2238
2238
  /** @type {EffectNodes} */
2239
2239
  t.nodes.start
2240
2240
  ) : o; n !== null; ) {
2241
2241
  var s = (
2242
2242
  /** @type {TemplateNode} */
2243
- /* @__PURE__ */ ie(n)
2243
+ /* @__PURE__ */ xe(n)
2244
2244
  );
2245
2245
  if (i.before(n), n === r)
2246
2246
  return;
2247
2247
  n = s;
2248
2248
  }
2249
2249
  }
2250
- function We(e, t, o) {
2250
+ function ze(e, t, o) {
2251
2251
  t === null ? e.effect.first = o : t.next = o, o === null ? e.effect.last = t : o.prev = t;
2252
2252
  }
2253
2253
  function Ps(e, t) {
2254
- let o = null, n = E;
2255
- var r;
2256
- if (E) {
2257
- o = _;
2258
- for (var i = /* @__PURE__ */ gt(document.head); i !== null && (i.nodeType !== Rt || /** @type {Comment} */
2259
- i.data !== e); )
2260
- i = /* @__PURE__ */ ie(i);
2261
- if (i === null)
2262
- pe(!1);
2263
- else {
2264
- var s = (
2265
- /** @type {TemplateNode} */
2266
- /* @__PURE__ */ ie(i)
2267
- );
2268
- i.remove(), F(s);
2269
- }
2270
- }
2271
- E || (r = document.head.appendChild(Se()));
2272
- try {
2273
- Eo(() => t(r), er | et);
2274
- } finally {
2275
- n && (pe(!0), F(
2276
- /** @type {TemplateNode} */
2277
- o
2278
- ));
2279
- }
2280
- }
2281
- function Ls(e, t) {
2282
- Pr(() => {
2254
+ Er(() => {
2283
2255
  var o = e.getRootNode(), n = (
2284
2256
  /** @type {ShadowRoot} */
2285
2257
  o.host ? (
@@ -2292,68 +2264,68 @@ function Ls(e, t) {
2292
2264
  )
2293
2265
  );
2294
2266
  if (!n.querySelector("#" + t.hash)) {
2295
- const r = un("style");
2267
+ const r = cn("style");
2296
2268
  r.id = t.hash, r.textContent = t.code, n.appendChild(r);
2297
2269
  }
2298
2270
  });
2299
2271
  }
2300
- function Ms(e, t) {
2272
+ function Ls(e, t) {
2301
2273
  return e == null ? null : String(e);
2302
2274
  }
2303
2275
  function Vn(e, t, o, n) {
2304
2276
  var r = e.__style;
2305
- if (E || r !== t) {
2306
- var i = Ms(t);
2307
- (!E || i !== e.getAttribute("style")) && (i == null ? e.removeAttribute("style") : e.style.cssText = i), e.__style = t;
2277
+ if (P || r !== t) {
2278
+ var i = Ls(t);
2279
+ (!P || i !== e.getAttribute("style")) && (i == null ? e.removeAttribute("style") : e.style.cssText = i), e.__style = t;
2308
2280
  }
2309
2281
  return n;
2310
2282
  }
2311
- const Os = /* @__PURE__ */ Symbol("is custom element"), Rs = /* @__PURE__ */ Symbol("is html"), Ns = Ai ? "link" : "LINK";
2283
+ const Ms = /* @__PURE__ */ Symbol("is custom element"), Os = /* @__PURE__ */ Symbol("is html"), Rs = Ai ? "link" : "LINK";
2312
2284
  function jn(e, t, o, n) {
2313
- var r = Vs(e);
2314
- E && (r[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Ns) || r[t] !== (r[t] = o) && (t === "loading" && (e[ki] = o), o == null ? e.removeAttribute(t) : typeof o != "string" && js(e).includes(t) ? e[t] = o : e.setAttribute(t, o));
2285
+ var r = Ns(e);
2286
+ P && (r[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Rs) || r[t] !== (r[t] = o) && (t === "loading" && (e[ki] = o), o == null ? e.removeAttribute(t) : typeof o != "string" && Vs(e).includes(t) ? e[t] = o : e.setAttribute(t, o));
2315
2287
  }
2316
- function Vs(e) {
2288
+ function Ns(e) {
2317
2289
  return (
2318
2290
  /** @type {Record<string | symbol, unknown>} **/
2319
2291
  // @ts-expect-error
2320
2292
  e.__attributes ?? (e.__attributes = {
2321
- [Os]: e.nodeName.includes("-"),
2322
- [Rs]: e.namespaceURI === Xn
2293
+ [Ms]: e.nodeName.includes("-"),
2294
+ [Os]: e.namespaceURI === Jn
2323
2295
  })
2324
2296
  );
2325
2297
  }
2326
2298
  var zn = /* @__PURE__ */ new Map();
2327
- function js(e) {
2299
+ function Vs(e) {
2328
2300
  var t = e.getAttribute("is") || e.nodeName, o = zn.get(t);
2329
2301
  if (o) return o;
2330
2302
  zn.set(t, o = []);
2331
2303
  for (var n, r = e, i = Element.prototype; i !== r; ) {
2332
- n = yi(r);
2304
+ n = bi(r);
2333
2305
  for (var s in n)
2334
2306
  n[s].set && o.push(s);
2335
- r = Yn(r);
2307
+ r = Xn(r);
2336
2308
  }
2337
2309
  return o;
2338
2310
  }
2339
2311
  function Wn(e, t) {
2340
2312
  return e === t || e?.[uo] === t;
2341
2313
  }
2342
- function qn(e = {}, t, o, n) {
2343
- return Pr(() => {
2314
+ function Bn(e = {}, t, o, n) {
2315
+ return Er(() => {
2344
2316
  var r, i;
2345
- return hn(() => {
2346
- r = i, i = [], Dr(() => {
2317
+ return fn(() => {
2318
+ r = i, i = [], qr(() => {
2347
2319
  e !== o(...i) && (t(e, ...i), r && Wn(o(...r), e) && t(null, ...r));
2348
2320
  });
2349
2321
  }), () => {
2350
- ht(() => {
2322
+ dt(() => {
2351
2323
  i && Wn(o(...i), e) && t(null, ...i);
2352
2324
  });
2353
2325
  };
2354
2326
  }), e;
2355
2327
  }
2356
- function Vo(e, t, o, n) {
2328
+ function No(e, t, o, n) {
2357
2329
  var r = (
2358
2330
  /** @type {V} */
2359
2331
  n
@@ -2377,44 +2349,44 @@ function Vo(e, t, o, n) {
2377
2349
  /** @type {() => V} */
2378
2350
  (function(b, g) {
2379
2351
  if (arguments.length > 0) {
2380
- const h = g ? v(d) : b;
2352
+ const h = g ? p(d) : b;
2381
2353
  return A(d, h), c = !0, r !== void 0 && (r = h), b;
2382
2354
  }
2383
- return Ze && c || (f.f & xe) !== 0 ? d.v : v(d);
2355
+ return Ze && c || (f.f & Ie) !== 0 ? d.v : p(d);
2384
2356
  })
2385
2357
  );
2386
2358
  }
2387
- function zs(e) {
2388
- return new Ws(e);
2359
+ function js(e) {
2360
+ return new zs(e);
2389
2361
  }
2390
- var Ge, fe;
2391
- class Ws {
2362
+ var Ge, de;
2363
+ class zs {
2392
2364
  /**
2393
2365
  * @param {ComponentConstructorOptions & {
2394
2366
  * component: any;
2395
2367
  * }} options
2396
2368
  */
2397
2369
  constructor(t) {
2398
- x(this, Ge), x(this, fe);
2370
+ x(this, Ge), x(this, de);
2399
2371
  var o = /* @__PURE__ */ new Map(), n = (i, s) => {
2400
- var l = /* @__PURE__ */ Ir(s, !1, !1);
2372
+ var l = /* @__PURE__ */ Tr(s, !1, !1);
2401
2373
  return o.set(i, l), l;
2402
2374
  };
2403
2375
  const r = new Proxy(
2404
2376
  { ...t.props || {}, $$events: {} },
2405
2377
  {
2406
2378
  get(i, s) {
2407
- return v(o.get(s) ?? n(s, Reflect.get(i, s)));
2379
+ return p(o.get(s) ?? n(s, Reflect.get(i, s)));
2408
2380
  },
2409
2381
  has(i, s) {
2410
- return s === Si ? !0 : (v(o.get(s) ?? n(s, Reflect.get(i, s))), Reflect.has(i, s));
2382
+ return s === Si ? !0 : (p(o.get(s) ?? n(s, Reflect.get(i, s))), Reflect.has(i, s));
2411
2383
  },
2412
2384
  set(i, s, l) {
2413
2385
  return A(o.get(s) ?? n(s, l), l), Reflect.set(i, s, l);
2414
2386
  }
2415
2387
  }
2416
2388
  );
2417
- I(this, fe, (t.hydrate ? $s : Fr)(t.component, {
2389
+ I(this, de, (t.hydrate ? $s : Hr)(t.component, {
2418
2390
  target: t.target,
2419
2391
  anchor: t.anchor,
2420
2392
  props: r,
@@ -2423,27 +2395,27 @@ class Ws {
2423
2395
  recover: t.recover,
2424
2396
  transformError: t.transformError
2425
2397
  })), (!t?.props?.$$host || t.sync === !1) && ho(), I(this, Ge, r.$$events);
2426
- for (const i of Object.keys(u(this, fe)))
2398
+ for (const i of Object.keys(u(this, de)))
2427
2399
  i === "$set" || i === "$destroy" || i === "$on" || To(this, i, {
2428
2400
  get() {
2429
- return u(this, fe)[i];
2401
+ return u(this, de)[i];
2430
2402
  },
2431
2403
  /** @param {any} value */
2432
2404
  set(s) {
2433
- u(this, fe)[i] = s;
2405
+ u(this, de)[i] = s;
2434
2406
  },
2435
2407
  enumerable: !0
2436
2408
  });
2437
- u(this, fe).$set = /** @param {Record<string, any>} next */
2409
+ u(this, de).$set = /** @param {Record<string, any>} next */
2438
2410
  (i) => {
2439
2411
  Object.assign(r, i);
2440
- }, u(this, fe).$destroy = () => {
2441
- xs(u(this, fe));
2412
+ }, u(this, de).$destroy = () => {
2413
+ xs(u(this, de));
2442
2414
  };
2443
2415
  }
2444
2416
  /** @param {Record<string, any>} props */
2445
2417
  $set(t) {
2446
- u(this, fe).$set(t);
2418
+ u(this, de).$set(t);
2447
2419
  }
2448
2420
  /**
2449
2421
  * @param {string} event
@@ -2461,12 +2433,12 @@ class Ws {
2461
2433
  };
2462
2434
  }
2463
2435
  $destroy() {
2464
- u(this, fe).$destroy();
2436
+ u(this, de).$destroy();
2465
2437
  }
2466
2438
  }
2467
- Ge = /* @__PURE__ */ new WeakMap(), fe = /* @__PURE__ */ new WeakMap();
2468
- let Kr;
2469
- typeof HTMLElement == "function" && (Kr = class extends HTMLElement {
2439
+ Ge = /* @__PURE__ */ new WeakMap(), de = /* @__PURE__ */ new WeakMap();
2440
+ let Ur;
2441
+ typeof HTMLElement == "function" && (Ur = class extends HTMLElement {
2470
2442
  /**
2471
2443
  * @param {*} $$componentCtor
2472
2444
  * @param {*} $$slots
@@ -2502,13 +2474,13 @@ typeof HTMLElement == "function" && (Kr = class extends HTMLElement {
2502
2474
  if (this.$$cn = !0, !this.$$c) {
2503
2475
  let e = function(n) {
2504
2476
  return (r) => {
2505
- const i = un("slot");
2506
- n !== "default" && (i.name = n), Ee(r, i);
2477
+ const i = cn("slot");
2478
+ n !== "default" && (i.name = n), He(r, i);
2507
2479
  };
2508
2480
  };
2509
2481
  if (await Promise.resolve(), !this.$$cn || this.$$c)
2510
2482
  return;
2511
- const t = {}, o = qs(this);
2483
+ const t = {}, o = Ws(this);
2512
2484
  for (const n of this.$$s)
2513
2485
  n in o && (n === "default" && !this.$$d.children ? (this.$$d.children = e(n), t.default = !0) : t[n] = e(n));
2514
2486
  for (const n of this.attributes) {
@@ -2517,7 +2489,7 @@ typeof HTMLElement == "function" && (Kr = class extends HTMLElement {
2517
2489
  }
2518
2490
  for (const n in this.$$p_d)
2519
2491
  !(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
2520
- this.$$c = zs({
2492
+ this.$$c = js({
2521
2493
  component: this.$$ctor,
2522
2494
  target: this.$$shadowRoot || this,
2523
2495
  props: {
@@ -2526,7 +2498,7 @@ typeof HTMLElement == "function" && (Kr = class extends HTMLElement {
2526
2498
  $$host: this
2527
2499
  }
2528
2500
  }), this.$$me = us(() => {
2529
- hn(() => {
2501
+ fn(() => {
2530
2502
  this.$$r = !0;
2531
2503
  for (const n of wo(this.$$c)) {
2532
2504
  if (!this.$$p_d[n]?.reflect) continue;
@@ -2604,7 +2576,7 @@ function bo(e, t, o, n) {
2604
2576
  return t;
2605
2577
  }
2606
2578
  }
2607
- function qs(e) {
2579
+ function Ws(e) {
2608
2580
  const t = {};
2609
2581
  return e.childNodes.forEach((o) => {
2610
2582
  t[
@@ -2614,7 +2586,7 @@ function qs(e) {
2614
2586
  }), t;
2615
2587
  }
2616
2588
  function Bs(e, t, o, n, r, i) {
2617
- let s = class extends Kr {
2589
+ let s = class extends Ur {
2618
2590
  constructor() {
2619
2591
  super(e, o, r), this.$$p_d = t;
2620
2592
  }
@@ -2633,7 +2605,7 @@ function Bs(e, t, o, n, r, i) {
2633
2605
  a = bo(l, a, t), this.$$d[l] = a;
2634
2606
  var c = this.$$c;
2635
2607
  if (c) {
2636
- var d = St(c, l)?.get;
2608
+ var d = xt(c, l)?.get;
2637
2609
  d ? c[l] = a : c.$set({ [l]: a });
2638
2610
  }
2639
2611
  }
@@ -2647,12 +2619,12 @@ function Bs(e, t, o, n, r, i) {
2647
2619
  }), e.element = /** @type {any} */
2648
2620
  s, s;
2649
2621
  }
2650
- class Ds extends Event {
2622
+ class qs extends Event {
2651
2623
  constructor(t, o, n, r) {
2652
2624
  super("context-request", { bubbles: !0, composed: !0 }), m(this, "context"), m(this, "contextTarget"), m(this, "callback"), m(this, "subscribe"), this.context = t, this.contextTarget = o, this.callback = n, this.subscribe = r ?? !1;
2653
2625
  }
2654
2626
  }
2655
- class Hs {
2627
+ class Ds {
2656
2628
  constructor(t, o) {
2657
2629
  m(this, "host"), m(this, "context"), m(this, "subscribe"), m(this, "onValue"), m(this, "isConnected", !1), m(this, "unsubscribe"), m(this, "currentValue"), m(this, "handleValue", (n, r) => {
2658
2630
  r !== this.unsubscribe && (this.unsubscribe?.(), this.unsubscribe = r), !this.subscribe && this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0), this.currentValue = n, this.onValue?.(n);
@@ -2668,13 +2640,13 @@ class Hs {
2668
2640
  return this.currentValue;
2669
2641
  }
2670
2642
  requestValue() {
2671
- this.host.dispatchEvent(new Ds(this.context, this.host, this.handleValue, this.subscribe));
2643
+ this.host.dispatchEvent(new qs(this.context, this.host, this.handleValue, this.subscribe));
2672
2644
  }
2673
2645
  }
2674
- const Jr = (e) => e, Fs = Jr(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.shellContext")), Gs = Jr(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.regionScopeContext"));
2675
- function Xr(e, t, o) {
2646
+ const Kr = (e) => e, Hs = Kr(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.shellContext")), Fs = Kr(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.regionScopeContext"));
2647
+ function Yr(e, t, o) {
2676
2648
  let n = !1;
2677
- const r = new Hs(e, {
2649
+ const r = new Ds(e, {
2678
2650
  context: t,
2679
2651
  subscribe: !0,
2680
2652
  onValue: (c) => {
@@ -2698,29 +2670,29 @@ function Xr(e, t, o) {
2698
2670
  globalThis.clearInterval(a), e.removeEventListener("context-provider", i), r.disconnect();
2699
2671
  };
2700
2672
  }
2701
- function Us(e, t) {
2702
- return Xr(e, Fs, t);
2673
+ function Gs(e, t) {
2674
+ return Yr(e, Hs, t);
2703
2675
  }
2704
- function Ks(e, t) {
2705
- return Xr(e, Gs, t);
2676
+ function Us(e, t) {
2677
+ return Yr(e, Fs, t);
2706
2678
  }
2707
- var Bn;
2679
+ var qn;
2708
2680
  (function(e) {
2709
2681
  e.TTS_WORD = "tts-word", e.TTS_SENTENCE = "tts-sentence", e.ANNOTATION = "annotation";
2710
- })(Bn || (Bn = {}));
2682
+ })(qn || (qn = {}));
2711
2683
  var Ue;
2712
2684
  (function(e) {
2713
2685
  e.YELLOW = "yellow", e.GREEN = "green", e.BLUE = "blue", e.PINK = "pink", e.ORANGE = "orange", e.UNDERLINE = "underline";
2714
2686
  })(Ue || (Ue = {}));
2715
- const Js = {
2687
+ const Ks = {
2716
2688
  tts: "textToSpeech",
2717
2689
  colorScheme: "theme"
2718
2690
  };
2719
- function Xs(e) {
2691
+ function Ys(e) {
2720
2692
  const t = e.trim();
2721
- return t ? Js[t] || t : "";
2693
+ return t ? Ks[t] || t : "";
2722
2694
  }
2723
- const Zs = [
2695
+ const Js = [
2724
2696
  "assessment",
2725
2697
  "section",
2726
2698
  "item",
@@ -2737,7 +2709,7 @@ function Dn(e) {
2737
2709
  throw new Error(`Invalid tool registration "${e.toolId}": "icon" must be a string or function.`);
2738
2710
  if (!Array.isArray(e.supportedLevels) || e.supportedLevels.length === 0)
2739
2711
  throw new Error(`Invalid tool registration "${e.toolId}": "supportedLevels" must be a non-empty array.`);
2740
- const t = e.supportedLevels.find((o) => !Zs.includes(o));
2712
+ const t = e.supportedLevels.find((o) => !Js.includes(o));
2741
2713
  if (t)
2742
2714
  throw new Error(`Invalid tool registration "${e.toolId}": unsupported level "${t}".`);
2743
2715
  if (e.activation !== void 0 && e.activation !== "toolbar-toggle" && e.activation !== "selection-gateway")
@@ -2753,7 +2725,7 @@ function Dn(e) {
2753
2725
  if (typeof e.renderToolbar != "function")
2754
2726
  throw new Error(`Invalid tool registration "${e.toolId}": "renderToolbar" must be a function.`);
2755
2727
  }
2756
- class Ys {
2728
+ class Zs {
2757
2729
  constructor() {
2758
2730
  m(this, "tools", /* @__PURE__ */ new Map()), m(this, "pnpIndex", /* @__PURE__ */ new Map()), m(this, "componentOverrides", {}), m(this, "moduleLoaders", /* @__PURE__ */ new Map()), m(this, "loadedToolModules", /* @__PURE__ */ new Set()), m(this, "moduleLoadPromises", /* @__PURE__ */ new Map());
2759
2731
  }
@@ -2761,7 +2733,7 @@ class Ys {
2761
2733
  * Normalize a single tool alias to canonical toolId.
2762
2734
  */
2763
2735
  normalizeToolId(t) {
2764
- return Xs(t);
2736
+ return Ys(t);
2765
2737
  }
2766
2738
  /**
2767
2739
  * Normalize a list of tool aliases to canonical toolIds.
@@ -3021,20 +2993,20 @@ class Ys {
3021
2993
  return r.renderToolbar(o, i);
3022
2994
  }
3023
2995
  }
3024
- function Zr(e) {
2996
+ function Jr(e) {
3025
2997
  return e.level === "item";
3026
2998
  }
3027
- function Qs(e) {
2999
+ function Xs(e) {
3028
3000
  return e.level === "passage";
3029
3001
  }
3030
- function el(e) {
3002
+ function Qs(e) {
3031
3003
  return e.level === "rubric";
3032
3004
  }
3033
- function Yr(e) {
3005
+ function Zr(e) {
3034
3006
  return e.level === "element";
3035
3007
  }
3036
3008
  function mn(e) {
3037
- if (Yr(e)) {
3009
+ if (Zr(e)) {
3038
3010
  const t = e.item.config;
3039
3011
  if (!t)
3040
3012
  return "";
@@ -3052,7 +3024,7 @@ function mn(e) {
3052
3024
  }
3053
3025
  return o.filter(Boolean).join(" ").trim();
3054
3026
  }
3055
- if (Zr(e)) {
3027
+ if (Jr(e)) {
3056
3028
  const t = e.item;
3057
3029
  if (!t?.config)
3058
3030
  return "";
@@ -3075,7 +3047,7 @@ function mn(e) {
3075
3047
  }
3076
3048
  return n.filter(Boolean).join(" ").trim();
3077
3049
  }
3078
- if (Qs(e)) {
3050
+ if (Xs(e)) {
3079
3051
  const t = e.passage;
3080
3052
  if (!t?.config)
3081
3053
  return "";
@@ -3098,13 +3070,13 @@ function mn(e) {
3098
3070
  }
3099
3071
  return n.filter(Boolean).join(" ").trim();
3100
3072
  }
3101
- if (el(e)) {
3073
+ if (Qs(e)) {
3102
3074
  const t = e.rubricBlock;
3103
3075
  return t.passage?.config ? (t.passage.config.markup || "").replace(/<[^>]*>/g, " ").trim() : (t.content || "").replace(/<[^>]*>/g, " ").trim();
3104
3076
  }
3105
3077
  return "";
3106
3078
  }
3107
- function Po(e) {
3079
+ function Eo(e) {
3108
3080
  const t = mn(e);
3109
3081
  return [
3110
3082
  /<math[>\s]/i,
@@ -3121,7 +3093,7 @@ function Po(e) {
3121
3093
  // Simple arithmetic
3122
3094
  ].some((o) => o.test(t));
3123
3095
  }
3124
- function tl(e) {
3096
+ function el(e) {
3125
3097
  const t = [
3126
3098
  "pie-multiple-choice",
3127
3099
  "pie-inline-choice",
@@ -3130,7 +3102,7 @@ function tl(e) {
3130
3102
  "inline-choice",
3131
3103
  "select-text"
3132
3104
  ];
3133
- if (Yr(e)) {
3105
+ if (Zr(e)) {
3134
3106
  const o = e.item.config;
3135
3107
  if (!o?.models)
3136
3108
  return !1;
@@ -3140,7 +3112,7 @@ function tl(e) {
3140
3112
  const r = n.element || "";
3141
3113
  return t.includes(r);
3142
3114
  }
3143
- if (Zr(e)) {
3115
+ if (Jr(e)) {
3144
3116
  const o = e.item.config?.models;
3145
3117
  return (Array.isArray(o) ? o : o && typeof o == "object" ? Object.values(o) : []).some((n) => {
3146
3118
  if (!n || typeof n != "object")
@@ -3151,10 +3123,10 @@ function tl(e) {
3151
3123
  }
3152
3124
  return !1;
3153
3125
  }
3154
- function Lo(e) {
3126
+ function Po(e) {
3155
3127
  return mn(e).trim().length >= 10;
3156
3128
  }
3157
- function ol(e) {
3129
+ function tl(e) {
3158
3130
  const t = mn(e);
3159
3131
  return [
3160
3132
  /chemistry|chemical|element|atom|molecule|compound/i,
@@ -3167,25 +3139,25 @@ function ol(e) {
3167
3139
  /physics|force|energy|velocity|acceleration/i
3168
3140
  ].some((o) => o.test(t));
3169
3141
  }
3170
- const nl = [
3142
+ const ol = [
3171
3143
  "assessment",
3172
3144
  "section",
3173
3145
  "item",
3174
3146
  "passage",
3175
3147
  "rubric"
3176
- ], rl = new Set(nl);
3177
- function il(e) {
3178
- return rl.has(e);
3148
+ ], nl = new Set(ol);
3149
+ function rl(e) {
3150
+ return nl.has(e);
3179
3151
  }
3180
3152
  function bn(e, t, o) {
3181
3153
  const n = e.trim(), r = o.trim();
3182
3154
  if (!n || !r)
3183
3155
  throw new Error("Tool instance ids require non-empty tool and scope ids");
3184
- if (!il(t))
3156
+ if (!rl(t))
3185
3157
  throw new Error(`Unknown tool scope level '${t}'. Register custom levels with registerToolScopeLevel().`);
3186
3158
  return `${n}:${t}:${r}`;
3187
3159
  }
3188
- class sl {
3160
+ class il {
3189
3161
  constructor() {
3190
3162
  m(this, "providerId", "desmos-calculator"), m(this, "providerName", "Desmos Calculator"), m(this, "category", "calculator"), m(this, "version", "1.10"), m(this, "requiresAuth", !0), m(this, "desmosProvider", null), m(this, "config", null);
3191
3163
  }
@@ -3265,7 +3237,7 @@ class sl {
3265
3237
  this.desmosProvider && (this.desmosProvider.destroy(), this.desmosProvider = null), this.config = null, console.log("[DesmosToolProvider] Destroyed");
3266
3238
  }
3267
3239
  }
3268
- const ll = (e, t) => {
3240
+ const sl = (e, t) => {
3269
3241
  const o = t?.useSentenceSegmenter !== !1;
3270
3242
  try {
3271
3243
  if (!o)
@@ -3291,7 +3263,7 @@ const ll = (e, t) => {
3291
3263
  }
3292
3264
  return i.length > 0 ? i : [{ text: e, offset: 0 }];
3293
3265
  };
3294
- class al {
3266
+ class ll {
3295
3267
  constructor() {
3296
3268
  m(this, "providerId", "browser"), m(this, "providerName", "Browser Speech Synthesis"), m(this, "version", "1.0.0");
3297
3269
  }
@@ -3300,7 +3272,7 @@ class al {
3300
3272
  throw new Error("BrowserTTSProvider requires browser environment");
3301
3273
  if (!("speechSynthesis" in window))
3302
3274
  throw new Error("Browser does not support Speech Synthesis API");
3303
- return new cl(t);
3275
+ return new al(t);
3304
3276
  }
3305
3277
  supportsFeature(t) {
3306
3278
  return !0;
@@ -3318,7 +3290,7 @@ class al {
3318
3290
  destroy() {
3319
3291
  }
3320
3292
  }
3321
- class cl {
3293
+ class al {
3322
3294
  constructor(t) {
3323
3295
  m(this, "utterance", null), m(this, "config", null), m(this, "_isPlaying", !1), m(this, "_isPaused", !1), m(this, "speakRunId", 0), m(this, "onWordBoundary"), this.config = t;
3324
3296
  }
@@ -3383,7 +3355,7 @@ class cl {
3383
3355
  }
3384
3356
  segmentSentences(t) {
3385
3357
  const o = this.getSegmentationPolicy();
3386
- return ll(t, {
3358
+ return sl(t, {
3387
3359
  locale: o.locale,
3388
3360
  useSentenceSegmenter: o.useSentenceSegmenter
3389
3361
  });
@@ -3458,7 +3430,7 @@ class cl {
3458
3430
  });
3459
3431
  }
3460
3432
  }
3461
- class ul {
3433
+ class cl {
3462
3434
  /**
3463
3435
  * Create TTS tool provider
3464
3436
  *
@@ -3500,7 +3472,7 @@ class ul {
3500
3472
  async _initializeBrowserTTS(t) {
3501
3473
  if (typeof window > "u" || !("speechSynthesis" in window))
3502
3474
  throw new Error("[TTSToolProvider] Browser TTS not supported (Web Speech API not available)");
3503
- this.ttsProvider = new al(), console.log("[TTSToolProvider] Browser TTS initialized (Web Speech API)");
3475
+ this.ttsProvider = new ll(), console.log("[TTSToolProvider] Browser TTS initialized (Web Speech API)");
3504
3476
  }
3505
3477
  /**
3506
3478
  * Initialize server-based TTS (Polly, Google)
@@ -3566,7 +3538,7 @@ class ul {
3566
3538
  this.ttsProvider && (this.ttsProvider.destroy(), this.ttsProvider = null), this.config = null, console.log("[TTSToolProvider] Destroyed");
3567
3539
  }
3568
3540
  }
3569
- const dl = /* @__PURE__ */ new Set([
3541
+ const ul = /* @__PURE__ */ new Set([
3570
3542
  "annotation-xml",
3571
3543
  "color-profile",
3572
3544
  "font-face",
@@ -3575,7 +3547,7 @@ const dl = /* @__PURE__ */ new Set([
3575
3547
  "font-face-format",
3576
3548
  "font-face-name",
3577
3549
  "missing-glyph"
3578
- ]), fl = /^[a-z][a-z0-9._-]*-[a-z0-9._-]*$/, hl = (e, t = "custom element tag") => {
3550
+ ]), dl = /^[a-z][a-z0-9._-]*-[a-z0-9._-]*$/, fl = (e, t = "custom element tag") => {
3579
3551
  if (!e || typeof e != "string")
3580
3552
  throw new Error(`Invalid ${t}: expected a non-empty string`);
3581
3553
  const o = e.trim();
@@ -3585,12 +3557,12 @@ const dl = /* @__PURE__ */ new Set([
3585
3557
  throw new Error(`Invalid ${t} "${o}": custom element names must be lowercase`);
3586
3558
  if (!o.includes("-"))
3587
3559
  throw new Error(`Invalid ${t} "${o}": custom element names must include a hyphen`);
3588
- if (dl.has(o))
3560
+ if (ul.has(o))
3589
3561
  throw new Error(`Invalid ${t} "${o}": this name is reserved by the HTML spec`);
3590
- if (!fl.test(o))
3562
+ if (!dl.test(o))
3591
3563
  throw new Error(`Invalid ${t} "${o}": allowed characters are lowercase letters, numbers, ".", "_" and "-"`);
3592
3564
  return o;
3593
- }, Qr = {
3565
+ }, Xr = {
3594
3566
  calculator: "pie-tool-calculator",
3595
3567
  textToSpeech: "pie-tool-text-to-speech",
3596
3568
  ruler: "pie-tool-ruler",
@@ -3603,20 +3575,20 @@ const dl = /* @__PURE__ */ new Set([
3603
3575
  annotationToolbar: "pie-tool-annotation-toolbar",
3604
3576
  graph: "pie-tool-graph",
3605
3577
  periodicTable: "pie-tool-periodic-table"
3606
- }, pl = (e, t) => {
3607
- const o = t?.toolTagMap?.[e] ?? Qr[e] ?? e;
3608
- return hl(o, `tool component tag for "${e}"`);
3609
- }, vl = (e) => document.createElement(e), _e = (e, t, o, n) => {
3610
- const r = pl(e, n), i = n?.toolComponentFactories?.[e] ?? n?.toolComponentFactory;
3611
- return i ? i({ toolId: e, tagName: r, context: t, toolbarContext: o }) : vl(r);
3612
- }, gl = {
3578
+ }, hl = (e, t) => {
3579
+ const o = t?.toolTagMap?.[e] ?? Xr[e] ?? e;
3580
+ return fl(o, `tool component tag for "${e}"`);
3581
+ }, pl = (e) => document.createElement(e), ke = (e, t, o, n) => {
3582
+ const r = hl(e, n), i = n?.toolComponentFactories?.[e] ?? n?.toolComponentFactory;
3583
+ return i ? i({ toolId: e, tagName: r, context: t, toolbarContext: o }) : pl(r);
3584
+ }, vl = {
3613
3585
  toolId: "calculator",
3614
3586
  name: "Calculator",
3615
3587
  description: "Multi-type calculator (basic, scientific, graphing)",
3616
3588
  icon: "calculator",
3617
3589
  provider: {
3618
3590
  getProviderId: (e) => typeof e?.provider?.id == "string" && e.provider.id.length > 0 ? e.provider.id : "calculator-desmos",
3619
- createProvider: () => new sl(),
3591
+ createProvider: () => new il(),
3620
3592
  getInitConfig: (e) => e?.provider?.init ?? {},
3621
3593
  getAuthFetcher: (e) => {
3622
3594
  const t = e?.provider?.runtime?.authFetcher;
@@ -3653,10 +3625,10 @@ const dl = /* @__PURE__ */ new Set([
3653
3625
  * (MathML, LaTeX, arithmetic markers).
3654
3626
  */
3655
3627
  isVisibleInContext(e) {
3656
- return Po(e);
3628
+ return Eo(e);
3657
3629
  },
3658
3630
  renderToolbar(e, t) {
3659
- const o = bn(this.toolId, t.scope.level, t.scope.scopeId), n = t.componentOverrides, r = _e(this.toolId, e, t, n);
3631
+ const o = bn(this.toolId, t.scope.level, t.scope.scopeId), n = t.componentOverrides, r = ke(this.toolId, e, t, n);
3660
3632
  r.setAttribute("tool-id", o), r.toolkitCoordinator = t.toolkitCoordinator;
3661
3633
  const i = {
3662
3634
  toolId: this.toolId,
@@ -3698,11 +3670,11 @@ const dl = /* @__PURE__ */ new Set([
3698
3670
  }
3699
3671
  };
3700
3672
  }
3701
- }, Hn = (e) => e && typeof e == "object" ? e : {}, jo = (e) => {
3673
+ }, Hn = (e) => e && typeof e == "object" ? e : {}, Vo = (e) => {
3702
3674
  const t = Hn(e), o = Hn(e?.settings);
3703
3675
  return { ...t, ...o };
3704
- }, tn = (e) => e.backend || "browser", ei = (e, t) => e.serverProvider || e.provider || (t === "polly" || t === "google" ? t : void 0), ti = (e, t) => e.transportMode || (t === "custom" ? "custom" : "pie"), ml = (e) => {
3705
- const t = tn(e), o = ei(e, t), n = ti(e, o);
3676
+ }, en = (e) => e.backend || "browser", Qr = (e, t) => e.serverProvider || e.provider || (t === "polly" || t === "google" ? t : void 0), ei = (e, t) => e.transportMode || (t === "custom" ? "custom" : "pie"), gl = (e) => {
3677
+ const t = en(e), o = Qr(e, t), n = ei(e, o);
3706
3678
  return {
3707
3679
  voice: e.defaultVoice,
3708
3680
  rate: e.rate,
@@ -3728,7 +3700,7 @@ const dl = /* @__PURE__ */ new Set([
3728
3700
  includeAuthOnAssetFetch: e.includeAuthOnAssetFetch,
3729
3701
  validateEndpoint: e.validateEndpoint
3730
3702
  };
3731
- }, Bt = /* @__PURE__ */ new Map(), bl = "__pieToolElementUnmount", Fn = Object.freeze([1.5, 2]), yl = (e) => {
3703
+ }, Bt = /* @__PURE__ */ new Map(), ml = "__pieToolElementUnmount", Fn = Object.freeze([1.5, 2]), bl = (e) => {
3732
3704
  if (!Array.isArray(e))
3733
3705
  return [...Fn];
3734
3706
  const t = /* @__PURE__ */ new Set();
@@ -3739,7 +3711,7 @@ const dl = /* @__PURE__ */ new Set([
3739
3711
  n !== 1 && t.add(n);
3740
3712
  }
3741
3713
  return t.size ? Array.from(t) : [...Fn];
3742
- }, wl = {
3714
+ }, yl = {
3743
3715
  toolId: "textToSpeech",
3744
3716
  name: "Text to Speech",
3745
3717
  description: "Read content aloud",
@@ -3747,16 +3719,16 @@ const dl = /* @__PURE__ */ new Set([
3747
3719
  provider: {
3748
3720
  getProviderId: () => "tts",
3749
3721
  createProvider: (e) => {
3750
- const t = jo(e);
3751
- return new ul(tn(t));
3722
+ const t = Vo(e);
3723
+ return new cl(en(t));
3752
3724
  },
3753
3725
  getInitConfig: (e) => {
3754
- const t = jo(e), o = tn(t), n = ei(t, o), r = ti(t, n);
3726
+ const t = Vo(e), o = en(t), n = Qr(t, o), r = ei(t, n);
3755
3727
  return {
3756
3728
  backend: o,
3757
3729
  serverProvider: n,
3758
3730
  transportMode: r,
3759
- ...ml(t)
3731
+ ...gl(t)
3760
3732
  };
3761
3733
  },
3762
3734
  getAuthFetcher: (e) => {
@@ -3786,18 +3758,18 @@ const dl = /* @__PURE__ */ new Set([
3786
3758
  * - Context contains readable text (at least 10 characters)
3787
3759
  */
3788
3760
  isVisibleInContext(e) {
3789
- return Lo(e);
3761
+ return Po(e);
3790
3762
  },
3791
3763
  renderToolbar(e, t) {
3792
3764
  const o = () => {
3793
- const s = jo(t.toolkitCoordinator?.getToolConfig(this.toolId) || void 0);
3794
- return yl(s.speedOptions);
3765
+ const s = Vo(t.toolkitCoordinator?.getToolConfig(this.toolId) || void 0);
3766
+ return bl(s.speedOptions);
3795
3767
  }, n = bn(this.toolId, t.scope.level, t.scope.scopeId), r = () => {
3796
3768
  const s = t.ui?.size;
3797
3769
  return s === "sm" || s === "lg" ? s : "md";
3798
3770
  }, i = () => {
3799
3771
  let s = Bt.get(n);
3800
- return s && typeof s.isConnected == "boolean" && !s.isConnected && (Bt.delete(n), s = void 0), s || (s = document.createElement("pie-tool-tts-inline"), s[bl] = () => {
3772
+ return s && typeof s.isConnected == "boolean" && !s.isConnected && (Bt.delete(n), s = void 0), s || (s = document.createElement("pie-tool-tts-inline"), s[ml] = () => {
3801
3773
  Bt.get(n) === s && Bt.delete(n);
3802
3774
  }, Bt.set(n, s)), s.setAttribute("tool-id", n), s.setAttribute("catalog-id", t.catalogId || t.itemId), s.setAttribute("language", t.language || "en-US"), s.setAttribute("size", r()), s.speedOptions = o(), s;
3803
3775
  };
@@ -3819,7 +3791,7 @@ const dl = /* @__PURE__ */ new Set([
3819
3791
  };
3820
3792
  }
3821
3793
  };
3822
- function Ne(e, t) {
3794
+ function Re(e, t) {
3823
3795
  const o = bn(e, t.scope.level, t.scope.scopeId);
3824
3796
  return {
3825
3797
  fullToolId: o,
@@ -3830,11 +3802,11 @@ function Ne(e, t) {
3830
3802
  }
3831
3803
  };
3832
3804
  }
3833
- function Ve(e) {
3805
+ function Ne(e) {
3834
3806
  const t = e.isActive();
3835
3807
  e.button.active = t, e.overlay.visible = t, e.onActiveChange?.(t);
3836
3808
  }
3837
- const Tl = {
3809
+ const wl = {
3838
3810
  toolId: "ruler",
3839
3811
  name: "Ruler",
3840
3812
  description: "On-screen ruler for measurements",
@@ -3853,10 +3825,10 @@ const Tl = {
3853
3825
  * Pass 2: Ruler is relevant when math content is present
3854
3826
  */
3855
3827
  isVisibleInContext(e) {
3856
- return Po(e);
3828
+ return Eo(e);
3857
3829
  },
3858
3830
  renderToolbar(e, t) {
3859
- const o = Ne(this.toolId, t), n = {
3831
+ const o = Re(this.toolId, t), n = {
3860
3832
  toolId: this.toolId,
3861
3833
  label: this.name,
3862
3834
  icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
@@ -3865,13 +3837,13 @@ const Tl = {
3865
3837
  tooltip: "Ruler",
3866
3838
  onClick: () => t.toggleTool(this.toolId),
3867
3839
  active: o.isActive()
3868
- }, r = t.componentOverrides ?? {}, i = _e(this.toolId, e, t, r);
3840
+ }, r = t.componentOverrides ?? {}, i = ke(this.toolId, e, t, r);
3869
3841
  return i.setAttribute("tool-id", o.fullToolId), {
3870
3842
  toolId: this.toolId,
3871
3843
  button: n,
3872
3844
  elements: [{ element: i, mount: "after-buttons" }],
3873
3845
  sync: () => {
3874
- Ve({
3846
+ Ne({
3875
3847
  button: n,
3876
3848
  overlay: i,
3877
3849
  isActive: o.isActive
@@ -3880,7 +3852,7 @@ const Tl = {
3880
3852
  subscribeActive: o.subscribeActive
3881
3853
  };
3882
3854
  }
3883
- }, Il = {
3855
+ }, Tl = {
3884
3856
  toolId: "protractor",
3885
3857
  name: "Protractor",
3886
3858
  description: "On-screen protractor for angle measurements",
@@ -3899,10 +3871,10 @@ const Tl = {
3899
3871
  * Pass 2: Protractor is relevant when math content is present
3900
3872
  */
3901
3873
  isVisibleInContext(e) {
3902
- return Po(e);
3874
+ return Eo(e);
3903
3875
  },
3904
3876
  renderToolbar(e, t) {
3905
- const o = Ne(this.toolId, t), n = {
3877
+ const o = Re(this.toolId, t), n = {
3906
3878
  toolId: this.toolId,
3907
3879
  label: this.name,
3908
3880
  icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
@@ -3911,13 +3883,13 @@ const Tl = {
3911
3883
  tooltip: "Protractor",
3912
3884
  onClick: () => t.toggleTool(this.toolId),
3913
3885
  active: o.isActive()
3914
- }, r = t.componentOverrides ?? {}, i = _e(this.toolId, e, t, r);
3886
+ }, r = t.componentOverrides ?? {}, i = ke(this.toolId, e, t, r);
3915
3887
  return i.setAttribute("tool-id", o.fullToolId), {
3916
3888
  toolId: this.toolId,
3917
3889
  button: n,
3918
3890
  elements: [{ element: i, mount: "after-buttons" }],
3919
3891
  sync: () => {
3920
- Ve({
3892
+ Ne({
3921
3893
  button: n,
3922
3894
  overlay: i,
3923
3895
  isActive: o.isActive
@@ -3926,7 +3898,7 @@ const Tl = {
3926
3898
  subscribeActive: o.subscribeActive
3927
3899
  };
3928
3900
  }
3929
- }, $l = {
3901
+ }, Il = {
3930
3902
  toolId: "answerEliminator",
3931
3903
  name: "Answer Eliminator",
3932
3904
  description: "Strike through answer choices",
@@ -3949,10 +3921,10 @@ const Tl = {
3949
3921
  * Pass 2: Answer eliminator is relevant only for choice-based questions
3950
3922
  */
3951
3923
  isVisibleInContext(e) {
3952
- return tl(e);
3924
+ return el(e);
3953
3925
  },
3954
3926
  renderToolbar(e, t) {
3955
- const o = Ne(this.toolId, t), n = t.componentOverrides ?? {}, r = _e(this.toolId, e, t, n);
3927
+ const o = Re(this.toolId, t), n = t.componentOverrides ?? {}, r = ke(this.toolId, e, t, n);
3956
3928
  r.setAttribute("tool-id", o.fullToolId), r.setAttribute("strategy", "strikethrough"), r.setAttribute("button-alignment", "inline");
3957
3929
  const i = {
3958
3930
  toolId: this.toolId,
@@ -3969,7 +3941,7 @@ const Tl = {
3969
3941
  button: i,
3970
3942
  elements: [{ element: r, mount: "after-buttons" }],
3971
3943
  sync: () => {
3972
- Ve({
3944
+ Ne({
3973
3945
  button: i,
3974
3946
  overlay: r,
3975
3947
  isActive: o.isActive
@@ -3980,7 +3952,7 @@ const Tl = {
3980
3952
  subscribeActive: o.subscribeActive
3981
3953
  };
3982
3954
  }
3983
- }, xl = {
3955
+ }, $l = {
3984
3956
  toolId: "highlighter",
3985
3957
  name: "Highlighter",
3986
3958
  description: "Highlight text",
@@ -3994,10 +3966,10 @@ const Tl = {
3994
3966
  * Pass 2: Highlighter is relevant when readable text is available
3995
3967
  */
3996
3968
  isVisibleInContext(e) {
3997
- return Lo(e);
3969
+ return Po(e);
3998
3970
  },
3999
3971
  renderToolbar(e, t) {
4000
- const o = Ne(this.toolId, t), n = {
3972
+ const o = Re(this.toolId, t), n = {
4001
3973
  toolId: this.toolId,
4002
3974
  label: this.name,
4003
3975
  icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
@@ -4006,13 +3978,13 @@ const Tl = {
4006
3978
  tooltip: "Highlight",
4007
3979
  onClick: () => t.toggleTool(this.toolId),
4008
3980
  active: o.isActive()
4009
- }, r = t.componentOverrides ?? {}, i = _e(this.toolId, e, t, r);
3981
+ }, r = t.componentOverrides ?? {}, i = ke(this.toolId, e, t, r);
4010
3982
  return i.setAttribute("tool-id", o.fullToolId), {
4011
3983
  toolId: this.toolId,
4012
3984
  button: n,
4013
3985
  elements: [{ element: i, mount: "after-buttons" }],
4014
3986
  sync: () => {
4015
- Ve({
3987
+ Ne({
4016
3988
  button: n,
4017
3989
  overlay: i,
4018
3990
  isActive: o.isActive,
@@ -4024,7 +3996,7 @@ const Tl = {
4024
3996
  subscribeActive: o.subscribeActive
4025
3997
  };
4026
3998
  }
4027
- }, Sl = {
3999
+ }, xl = {
4028
4000
  toolId: "lineReader",
4029
4001
  name: "Line Reader",
4030
4002
  description: "Reading guide overlay",
@@ -4049,10 +4021,10 @@ const Tl = {
4049
4021
  * Pass 2: Line reader is relevant when readable text is present
4050
4022
  */
4051
4023
  isVisibleInContext(e) {
4052
- return Lo(e);
4024
+ return Po(e);
4053
4025
  },
4054
4026
  renderToolbar(e, t) {
4055
- const o = Ne(this.toolId, t), n = {
4027
+ const o = Re(this.toolId, t), n = {
4056
4028
  toolId: this.toolId,
4057
4029
  label: this.name,
4058
4030
  icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
@@ -4061,13 +4033,13 @@ const Tl = {
4061
4033
  tooltip: "Line Reader",
4062
4034
  onClick: () => t.toggleTool(this.toolId),
4063
4035
  active: o.isActive()
4064
- }, r = t.componentOverrides ?? {}, i = _e(this.toolId, e, t, r);
4036
+ }, r = t.componentOverrides ?? {}, i = ke(this.toolId, e, t, r);
4065
4037
  return i.setAttribute("tool-id", o.fullToolId), {
4066
4038
  toolId: this.toolId,
4067
4039
  button: n,
4068
4040
  elements: [{ element: i, mount: "after-buttons" }],
4069
4041
  sync: () => {
4070
- Ve({
4042
+ Ne({
4071
4043
  button: n,
4072
4044
  overlay: i,
4073
4045
  isActive: o.isActive
@@ -4076,7 +4048,7 @@ const Tl = {
4076
4048
  subscribeActive: o.subscribeActive
4077
4049
  };
4078
4050
  }
4079
- }, kl = {
4051
+ }, Sl = {
4080
4052
  toolId: "theme",
4081
4053
  name: "Theme",
4082
4054
  description: "Accessible themes and contrast",
@@ -4108,7 +4080,7 @@ const Tl = {
4108
4080
  return !0;
4109
4081
  },
4110
4082
  renderToolbar(e, t) {
4111
- const o = Ne(this.toolId, t), n = {
4083
+ const o = Re(this.toolId, t), n = {
4112
4084
  toolId: this.toolId,
4113
4085
  label: this.name,
4114
4086
  icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
@@ -4117,7 +4089,7 @@ const Tl = {
4117
4089
  tooltip: "Theme",
4118
4090
  onClick: () => t.toggleTool(this.toolId),
4119
4091
  active: o.isActive()
4120
- }, r = t.componentOverrides ?? {}, i = _e(this.toolId, e, t, r);
4092
+ }, r = t.componentOverrides ?? {}, i = ke(this.toolId, e, t, r);
4121
4093
  return i.setAttribute("tool-id", o.fullToolId), {
4122
4094
  toolId: this.toolId,
4123
4095
  button: n,
@@ -4138,7 +4110,7 @@ const Tl = {
4138
4110
  }
4139
4111
  ],
4140
4112
  sync: () => {
4141
- Ve({
4113
+ Ne({
4142
4114
  button: n,
4143
4115
  overlay: i,
4144
4116
  isActive: o.isActive
@@ -4147,7 +4119,7 @@ const Tl = {
4147
4119
  subscribeActive: o.subscribeActive
4148
4120
  };
4149
4121
  }
4150
- }, Al = kl, _l = {
4122
+ }, kl = Sl, Al = {
4151
4123
  toolId: "annotationToolbar",
4152
4124
  name: "Highlighter",
4153
4125
  description: "Highlight and annotate text",
@@ -4174,10 +4146,10 @@ const Tl = {
4174
4146
  * Pass 2: Annotation is relevant when readable text is present
4175
4147
  */
4176
4148
  isVisibleInContext(e) {
4177
- return Lo(e);
4149
+ return Po(e);
4178
4150
  },
4179
4151
  renderToolbar(e, t) {
4180
- const o = Ne(this.toolId, t), n = {
4152
+ const o = Re(this.toolId, t), n = {
4181
4153
  toolId: this.toolId,
4182
4154
  label: this.name,
4183
4155
  icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
@@ -4186,13 +4158,13 @@ const Tl = {
4186
4158
  tooltip: "Highlight",
4187
4159
  onClick: () => t.toggleTool(this.toolId),
4188
4160
  active: o.isActive()
4189
- }, r = t.componentOverrides ?? {}, i = _e(this.toolId, e, t, r);
4161
+ }, r = t.componentOverrides ?? {}, i = ke(this.toolId, e, t, r);
4190
4162
  return i.setAttribute("tool-id", o.fullToolId), {
4191
4163
  toolId: this.toolId,
4192
4164
  button: n,
4193
4165
  elements: [{ element: i, mount: "after-buttons" }],
4194
4166
  sync: () => {
4195
- Ve({
4167
+ Ne({
4196
4168
  button: n,
4197
4169
  overlay: i,
4198
4170
  isActive: o.isActive
@@ -4201,7 +4173,7 @@ const Tl = {
4201
4173
  subscribeActive: o.subscribeActive
4202
4174
  };
4203
4175
  }
4204
- }, Cl = {
4176
+ }, _l = {
4205
4177
  toolId: "graph",
4206
4178
  name: "Graph",
4207
4179
  description: "Graphing calculator and coordinate plane",
@@ -4224,10 +4196,10 @@ const Tl = {
4224
4196
  * Pass 2: Graph is relevant when math content is present
4225
4197
  */
4226
4198
  isVisibleInContext(e) {
4227
- return Po(e);
4199
+ return Eo(e);
4228
4200
  },
4229
4201
  renderToolbar(e, t) {
4230
- const o = Ne(this.toolId, t), n = {
4202
+ const o = Re(this.toolId, t), n = {
4231
4203
  toolId: this.toolId,
4232
4204
  label: this.name,
4233
4205
  icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
@@ -4236,7 +4208,7 @@ const Tl = {
4236
4208
  tooltip: "Graph",
4237
4209
  onClick: () => t.toggleTool(this.toolId),
4238
4210
  active: o.isActive()
4239
- }, r = t.componentOverrides ?? {}, i = _e(this.toolId, e, t, r);
4211
+ }, r = t.componentOverrides ?? {}, i = ke(this.toolId, e, t, r);
4240
4212
  return i.setAttribute("tool-id", o.fullToolId), {
4241
4213
  toolId: this.toolId,
4242
4214
  button: n,
@@ -4257,7 +4229,7 @@ const Tl = {
4257
4229
  }
4258
4230
  ],
4259
4231
  sync: () => {
4260
- Ve({
4232
+ Ne({
4261
4233
  button: n,
4262
4234
  overlay: i,
4263
4235
  isActive: o.isActive
@@ -4266,7 +4238,7 @@ const Tl = {
4266
4238
  subscribeActive: o.subscribeActive
4267
4239
  };
4268
4240
  }
4269
- }, El = {
4241
+ }, Cl = {
4270
4242
  toolId: "periodicTable",
4271
4243
  name: "Periodic Table",
4272
4244
  description: "Chemistry periodic table reference",
@@ -4287,10 +4259,10 @@ const Tl = {
4287
4259
  * Pass 2: Periodic table is relevant when science content is present
4288
4260
  */
4289
4261
  isVisibleInContext(e) {
4290
- return ol(e);
4262
+ return tl(e);
4291
4263
  },
4292
4264
  renderToolbar(e, t) {
4293
- const o = Ne(this.toolId, t), n = {
4265
+ const o = Re(this.toolId, t), n = {
4294
4266
  toolId: this.toolId,
4295
4267
  label: this.name,
4296
4268
  icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
@@ -4299,7 +4271,7 @@ const Tl = {
4299
4271
  tooltip: "Periodic Table",
4300
4272
  onClick: () => t.toggleTool(this.toolId),
4301
4273
  active: o.isActive()
4302
- }, r = t.componentOverrides ?? {}, i = _e(this.toolId, e, t, r);
4274
+ }, r = t.componentOverrides ?? {}, i = ke(this.toolId, e, t, r);
4303
4275
  return i.setAttribute("tool-id", o.fullToolId), {
4304
4276
  toolId: this.toolId,
4305
4277
  button: n,
@@ -4320,7 +4292,7 @@ const Tl = {
4320
4292
  }
4321
4293
  ],
4322
4294
  sync: () => {
4323
- Ve({
4295
+ Ne({
4324
4296
  button: n,
4325
4297
  overlay: i,
4326
4298
  isActive: o.isActive
@@ -4329,53 +4301,53 @@ const Tl = {
4329
4301
  subscribeActive: o.subscribeActive
4330
4302
  };
4331
4303
  }
4332
- }, Pl = [
4333
- gl,
4304
+ }, El = [
4305
+ vl,
4306
+ yl,
4334
4307
  wl,
4335
4308
  Tl,
4336
4309
  Il,
4337
4310
  $l,
4338
4311
  xl,
4339
- Sl,
4312
+ kl,
4340
4313
  Al,
4341
4314
  _l,
4342
- Cl,
4343
- El
4315
+ Cl
4344
4316
  ];
4345
- function Ll(e = {}) {
4346
- const t = new Ys(), o = {
4317
+ function Pl(e = {}) {
4318
+ const t = new Zs(), o = {
4347
4319
  toolTagMap: {
4348
- ...Qr,
4320
+ ...Xr,
4349
4321
  ...e.toolTagMap || {}
4350
4322
  },
4351
4323
  toolComponentFactory: e.toolComponentFactory,
4352
4324
  toolComponentFactories: e.toolComponentFactories
4353
4325
  }, n = (r) => e.overrides?.[r.toolId] || r;
4354
- return e.includePackagedTools && Ml(t, {
4326
+ return e.includePackagedTools && Ll(t, {
4355
4327
  toolIds: e.toolIds,
4356
4328
  applyOverrides: n
4357
4329
  }), e.toolModuleLoaders && Object.keys(e.toolModuleLoaders).length > 0 && t.setToolModuleLoaders(e.toolModuleLoaders), t.setComponentOverrides(o), t;
4358
4330
  }
4359
- function Ml(e, t = {}) {
4331
+ function Ll(e, t = {}) {
4360
4332
  const o = t.toolIds && t.toolIds.length > 0 ? new Set(t.toolIds) : null, n = t.applyOverrides || ((r) => r);
4361
- for (const r of Pl)
4333
+ for (const r of El)
4362
4334
  o && !o.has(r.toolId) || e.register(n(r));
4363
4335
  }
4364
- function Ol(e = {}) {
4365
- return Ll({
4336
+ function Ml(e = {}) {
4337
+ return Pl({
4366
4338
  ...e,
4367
4339
  includePackagedTools: !0
4368
4340
  });
4369
4341
  }
4370
- function Rl() {
4371
- const e = Ol(), t = /* @__PURE__ */ new Set();
4342
+ function Ol() {
4343
+ const e = Ml(), t = /* @__PURE__ */ new Set();
4372
4344
  for (const o of e.getAllTools())
4373
4345
  for (const n of o.pnpSupportIds || [])
4374
4346
  t.add(n);
4375
4347
  return [...t].sort();
4376
4348
  }
4377
- Rl();
4378
- const Nl = {
4349
+ Ol();
4350
+ const Rl = {
4379
4351
  /**
4380
4352
  * Visual accessibility features
4381
4353
  * For students with low vision, color blindness, or visual processing needs
@@ -4546,7 +4518,7 @@ const Nl = {
4546
4518
  tutorialAvailable: "tutorialAvailable"
4547
4519
  }
4548
4520
  };
4549
- Object.values(Nl).flatMap((e) => Object.values(e));
4521
+ Object.values(Rl).flatMap((e) => Object.values(e));
4550
4522
  var Gn;
4551
4523
  (function(e) {
4552
4524
  e[e.BASE = 0] = "BASE", e[e.TOOL = 1e3] = "TOOL", e[e.MODAL = 2e3] = "MODAL", e[e.CONTROL = 3e3] = "CONTROL", e[e.HIGHLIGHT = 4e3] = "HIGHLIGHT";
@@ -4555,8 +4527,8 @@ var Un;
4555
4527
  (function(e) {
4556
4528
  e.IDLE = "idle", e.LOADING = "loading", e.PLAYING = "playing", e.PAUSED = "paused", e.ERROR = "error";
4557
4529
  })(Un || (Un = {}));
4558
- var Vl = /* @__PURE__ */ tt('<link rel="stylesheet" href="./highlights.css"/>'), jl = /* @__PURE__ */ tt('<button class="pie-tool-annotation-toolbar__highlight-swatch svelte-g8qu62"><span class="pie-sr-only svelte-g8qu62"> </span></button>'), zl = /* @__PURE__ */ tt('<div class="divider divider-horizontal mx-0 w-px svelte-g8qu62"></div> <button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--icon svelte-g8qu62" aria-label="Read selected text aloud" title="Read Aloud"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-g8qu62"><path d="M14,3.23V5.29C16.89,6.15 19,8.83 19,12C19,15.17 16.89,17.84 14,18.7V20.77C18,19.86 21,16.28 21,12C21,7.72 18,4.14 14,3.23M16.5,12C16.5,10.23 15.5,8.71 14,7.97V16C15.5,15.29 16.5,13.76 16.5,12M3,9V15H7L12,20V4L7,9H3Z"></path></svg></button>', 1), Wl = /* @__PURE__ */ tt('<button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--warning svelte-g8qu62" aria-label="Remove this annotation" title="Remove"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-g8qu62"><path d="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"></path></svg></button>'), ql = /* @__PURE__ */ tt('<button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--danger svelte-g8qu62" aria-label="Clear all annotations from document" title="Clear All">Clear All</button>'), Bl = /* @__PURE__ */ tt('<div class="divider divider-horizontal mx-0 w-px svelte-g8qu62"></div> <!> <!>', 1), Dl = /* @__PURE__ */ tt('<div class="pie-tool-annotation-toolbar notranslate svelte-g8qu62" role="toolbar" aria-label="Text annotation toolbar" translate="no"><!> <button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--icon svelte-g8qu62" aria-label="Underline selected text" title="Underline"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-g8qu62"><path d="M5,21H19V19H5V21M12,17A6,6 0 0,0 18,11V3H15.5V11A3.5,3.5 0 0,1 12,14.5A3.5,3.5 0 0,1 8.5,11V3H6V11A6,6 0 0,0 12,17Z"></path></svg></button> <!> <!></div>'), Hl = /* @__PURE__ */ tt('<div style="display: none;" aria-hidden="true"></div> <!> <div role="status" aria-live="polite" aria-atomic="true" class="pie-sr-only svelte-g8qu62"> </div>', 1);
4559
- const Fl = {
4530
+ var Nl = /* @__PURE__ */ mt('<button class="pie-tool-annotation-toolbar__highlight-swatch svelte-g8qu62"><span class="pie-sr-only svelte-g8qu62"> </span></button>'), Vl = /* @__PURE__ */ mt('<div class="divider divider-horizontal mx-0 w-px svelte-g8qu62"></div> <button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--icon svelte-g8qu62" aria-label="Read selected text aloud" title="Read Aloud"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-g8qu62"><path d="M14,3.23V5.29C16.89,6.15 19,8.83 19,12C19,15.17 16.89,17.84 14,18.7V20.77C18,19.86 21,16.28 21,12C21,7.72 18,4.14 14,3.23M16.5,12C16.5,10.23 15.5,8.71 14,7.97V16C15.5,15.29 16.5,13.76 16.5,12M3,9V15H7L12,20V4L7,9H3Z"></path></svg></button>', 1), jl = /* @__PURE__ */ mt('<button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--warning svelte-g8qu62" aria-label="Remove this annotation" title="Remove"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-g8qu62"><path d="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"></path></svg></button>'), zl = /* @__PURE__ */ mt('<button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--danger svelte-g8qu62" aria-label="Clear all annotations from document" title="Clear All">Clear All</button>'), Wl = /* @__PURE__ */ mt('<div class="divider divider-horizontal mx-0 w-px svelte-g8qu62"></div> <!> <!>', 1), Bl = /* @__PURE__ */ mt('<div class="pie-tool-annotation-toolbar notranslate svelte-g8qu62" role="toolbar" aria-label="Text annotation toolbar" translate="no"><!> <button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--icon svelte-g8qu62" aria-label="Underline selected text" title="Underline"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-g8qu62"><path d="M5,21H19V19H5V21M12,17A6,6 0 0,0 18,11V3H15.5V11A3.5,3.5 0 0,1 12,14.5A3.5,3.5 0 0,1 8.5,11V3H6V11A6,6 0 0,0 12,17Z"></path></svg></button> <!> <!></div>'), ql = /* @__PURE__ */ mt('<div style="display: none;" aria-hidden="true"></div> <!> <div role="status" aria-live="polite" aria-atomic="true" class="pie-sr-only svelte-g8qu62"> </div>', 1);
4531
+ const Dl = {
4560
4532
  hash: "svelte-g8qu62",
4561
4533
  code: `.pie-tool-annotation-toolbar.svelte-g8qu62 {position:fixed;z-index:4200;display:flex;gap:0.25rem;padding:0.5rem;border-radius:0.5rem;background:var(--pie-background, #fff);color:var(--pie-text, #111827);border:1px solid var(--pie-border, #d1d5db);box-shadow:0 10px 25px -8px rgb(0 0 0 / 0.3);user-select:none;}.pie-tool-annotation-toolbar__highlight-swatch.svelte-g8qu62 {width:2.5rem;height:2rem;border:2px solid color-mix(in srgb, var(--pie-border-dark, #111827) 20%, transparent);border-radius:0.375rem;cursor:pointer;transition:all 0.15s ease;display:flex;align-items:center;justify-content:center;padding:0;}.pie-tool-annotation-toolbar__highlight-swatch.svelte-g8qu62:hover {transform:scale(1.1);border-color:color-mix(in srgb, var(--pie-border-dark, #111827) 45%, transparent);box-shadow:0 2px 8px rgb(0 0 0 / 0.15);}.pie-tool-annotation-toolbar__highlight-swatch.svelte-g8qu62:focus-visible {outline:2px solid var(--pie-button-focus-outline, var(--pie-primary, #3f51b5));outline-offset:2px;}.pie-tool-annotation-toolbar.svelte-g8qu62 .divider-horizontal:where(.svelte-g8qu62) {height:auto;width:1px;background-color:color-mix(in srgb, var(--pie-border, #d1d5db) 70%, transparent);}
4562
4534
 
@@ -4564,9 +4536,9 @@ const Fl = {
4564
4536
 
4565
4537
  /* Button styling */.pie-tool-annotation-toolbar__button.svelte-g8qu62 {display:inline-flex;align-items:center;justify-content:center;gap:0.35rem;padding:0.4rem 0.55rem;border:1px solid var(--pie-button-border, #d1d5db);border-radius:0.4rem;background:var(--pie-button-bg, #fff);color:var(--pie-button-color, var(--pie-text, #111827));cursor:pointer;}.pie-tool-annotation-toolbar__button--icon.svelte-g8qu62 {min-width:2rem;min-height:2rem;padding:0.45rem;}.pie-tool-annotation-toolbar__button.svelte-g8qu62:hover {background:var(--pie-button-hover-bg, #f9fafb);color:var(--pie-button-hover-color, var(--pie-text, #111827));border-color:var(--pie-button-hover-border, #9ca3af);}.pie-tool-annotation-toolbar__button.svelte-g8qu62:focus-visible {outline:2px solid var(--pie-button-focus-outline, var(--pie-primary, #3f51b5));outline-offset:2px;}.pie-tool-annotation-toolbar__button.svelte-g8qu62:disabled {opacity:0.6;cursor:not-allowed;}.pie-tool-annotation-toolbar__button--warning.svelte-g8qu62 {color:var(--pie-missing-icon, #92400e);}.pie-tool-annotation-toolbar__button--danger.svelte-g8qu62 {color:var(--pie-incorrect-icon, #b91c1c);}.pie-tool-annotation-toolbar__button.svelte-g8qu62 svg:where(.svelte-g8qu62) {width:18px;height:18px;}`
4566
4538
  };
4567
- function Gl(e, t) {
4568
- rr(t, !0), Ls(e, Fl);
4569
- let o = Vo(t, "enabled", 7, !0), n = Vo(t, "highlightCoordinator", 7, null), r = Vo(t, "ttsService", 7, null);
4539
+ function Hl(e, t) {
4540
+ nr(t, !0), Ps(e, Dl);
4541
+ let o = No(t, "enabled", 7, !0), n = No(t, "highlightCoordinator", 7, null), r = No(t, "ttsService", 7, null);
4570
4542
  const i = typeof window < "u", s = "pie-annotations", l = [
4571
4543
  {
4572
4544
  name: Ue.YELLOW,
@@ -4599,7 +4571,7 @@ function Gl(e, t) {
4599
4571
  '[role="button"]',
4600
4572
  '[role="textbox"]'
4601
4573
  ];
4602
- let c = /* @__PURE__ */ R(null), d = /* @__PURE__ */ R(null), f = /* @__PURE__ */ R(null), b = /* @__PURE__ */ R(null), g = /* @__PURE__ */ R($t({
4574
+ let c = /* @__PURE__ */ R(null), d = /* @__PURE__ */ R(null), f = /* @__PURE__ */ R(null), b = /* @__PURE__ */ R(null), g = /* @__PURE__ */ R(It({
4603
4575
  isVisible: !1,
4604
4576
  selectedText: "",
4605
4577
  selectedRange: null,
@@ -4610,75 +4582,75 @@ function Gl(e, t) {
4610
4582
  ), T = /* @__PURE__ */ R(
4611
4583
  ""
4612
4584
  // For screen readers when toolbar is repositioned
4613
- ), $ = /* @__PURE__ */ R(0), P = /* @__PURE__ */ R(null), le = /* @__PURE__ */ Ro(() => v($) > 0), ae = /* @__PURE__ */ Ro(() => v(P) !== null), W = /* @__PURE__ */ Ro(() => v(b)?.scopeElement || v(f)?.scopeElement || null);
4614
- function je() {
4615
- const p = v(c)?.ownerDocument;
4616
- return v(W) || p?.documentElement || document.documentElement;
4585
+ ), $ = /* @__PURE__ */ R(0), E = /* @__PURE__ */ R(null), se = /* @__PURE__ */ Oo(() => p($) > 0), le = /* @__PURE__ */ Oo(() => p(E) !== null), W = /* @__PURE__ */ Oo(() => p(b)?.scopeElement || p(f)?.scopeElement || null);
4586
+ function Ve() {
4587
+ const v = p(c)?.ownerDocument;
4588
+ return p(W) || v?.documentElement || document.documentElement;
4617
4589
  }
4618
4590
  function Z() {
4619
- const p = v(f)?.canonicalItemId || v(f)?.itemId || "global";
4620
- return `${s}:${p}`;
4591
+ const v = p(f)?.canonicalItemId || p(f)?.itemId || "global";
4592
+ return `${s}:${v}`;
4621
4593
  }
4622
- function Y(p) {
4594
+ function X(v) {
4623
4595
  if (!n()) return null;
4624
4596
  const y = n().getAnnotations();
4625
- for (const C of y) {
4626
- const q = p.compareBoundaryPoints(Range.START_TO_START, C.range), ot = p.compareBoundaryPoints(Range.END_TO_END, C.range), Nt = p.compareBoundaryPoints(Range.START_TO_END, C.range), Vt = p.compareBoundaryPoints(Range.END_TO_START, C.range);
4627
- if (q >= 0 && ot <= 0 || // selection inside annotation
4628
- q <= 0 && ot >= 0 || // annotation inside selection
4629
- Nt > 0 && Vt < 0)
4630
- return C.id;
4597
+ for (const _ of y) {
4598
+ const B = v.compareBoundaryPoints(Range.START_TO_START, _.range), et = v.compareBoundaryPoints(Range.END_TO_END, _.range), Rt = v.compareBoundaryPoints(Range.START_TO_END, _.range), Nt = v.compareBoundaryPoints(Range.END_TO_START, _.range);
4599
+ if (B >= 0 && et <= 0 || // selection inside annotation
4600
+ B <= 0 && et >= 0 || // annotation inside selection
4601
+ Rt > 0 && Nt < 0)
4602
+ return _.id;
4631
4603
  }
4632
4604
  return null;
4633
4605
  }
4634
- function yt(p) {
4635
- if (p.nodeType !== Node.ELEMENT_NODE && p.nodeType !== Node.TEXT_NODE)
4606
+ function bt(v) {
4607
+ if (v.nodeType !== Node.ELEMENT_NODE && v.nodeType !== Node.TEXT_NODE)
4636
4608
  return !1;
4637
- const y = p.nodeType === Node.TEXT_NODE ? p.parentElement : p;
4638
- return y ? !a.some((C) => {
4609
+ const y = v.nodeType === Node.TEXT_NODE ? v.parentElement : v;
4610
+ return y ? !a.some((_) => {
4639
4611
  try {
4640
- return y.closest(C) !== null;
4612
+ return y.closest(_) !== null;
4641
4613
  } catch {
4642
4614
  return !1;
4643
4615
  }
4644
4616
  }) : !1;
4645
4617
  }
4646
- function ce(p) {
4647
- if (!v(W)) return !0;
4648
- const y = p.commonAncestorContainer, C = y.nodeType === Node.TEXT_NODE ? y.parentElement : y;
4649
- return !!C && v(W).contains(C);
4618
+ function ae(v) {
4619
+ if (!p(W)) return !0;
4620
+ const y = v.commonAncestorContainer, _ = y.nodeType === Node.TEXT_NODE ? y.parentElement : y;
4621
+ return !!_ && p(W).contains(_);
4650
4622
  }
4651
4623
  function eo() {
4652
4624
  if (!(!i || !n()))
4653
4625
  try {
4654
- const p = je(), y = n().exportAnnotations(p);
4626
+ const v = Ve(), y = n().exportAnnotations(v);
4655
4627
  sessionStorage.setItem(Z(), JSON.stringify(y));
4656
- } catch (p) {
4657
- console.error("[AnnotationToolbar] Failed to save annotations:", p);
4628
+ } catch (v) {
4629
+ console.error("[AnnotationToolbar] Failed to save annotations:", v);
4658
4630
  }
4659
4631
  }
4660
- function Mo() {
4632
+ function Lo() {
4661
4633
  if (!(!i || !n()))
4662
4634
  try {
4663
- const p = sessionStorage.getItem(Z());
4664
- if (!p) return;
4665
- const y = JSON.parse(p), C = je(), q = n().importAnnotations(y, C);
4666
- console.log(`[AnnotationToolbar] Restored ${q} annotations`), A($, n().getAnnotations().length, !0);
4667
- } catch (p) {
4668
- console.error("[AnnotationToolbar] Failed to load annotations:", p);
4635
+ const v = sessionStorage.getItem(Z());
4636
+ if (!v) return;
4637
+ const y = JSON.parse(v), _ = Ve(), B = n().importAnnotations(y, _);
4638
+ console.log(`[AnnotationToolbar] Restored ${B} annotations`), A($, n().getAnnotations().length, !0);
4639
+ } catch (v) {
4640
+ console.error("[AnnotationToolbar] Failed to load annotations:", v);
4669
4641
  }
4670
4642
  }
4671
4643
  function to() {
4672
4644
  if (!o() || !i) return;
4673
- const p = window.getSelection();
4674
- if (!p || p.rangeCount === 0) return Ce();
4675
- const y = p.getRangeAt(0), C = p.toString().trim();
4676
- if (!C || !ce(y) || !yt(y.commonAncestorContainer))
4677
- return Ce();
4678
- const q = y.getBoundingClientRect(), ot = q.left + q.width / 2, Nt = q.top - 8;
4679
- A(P, Y(y), !0), v(g).isVisible = !0, v(g).selectedText = C, v(g).selectedRange = y.cloneRange(), v(g).toolbarPosition = { x: ot, y: Nt };
4680
- const Vt = C.length > 30 ? C.substring(0, 30) + "..." : C;
4681
- A(T, `Annotation toolbar opened for "${Vt}"`), setTimeout(
4645
+ const v = window.getSelection();
4646
+ if (!v || v.rangeCount === 0) return Ae();
4647
+ const y = v.getRangeAt(0), _ = v.toString().trim();
4648
+ if (!_ || !ae(y) || !bt(y.commonAncestorContainer))
4649
+ return Ae();
4650
+ const B = y.getBoundingClientRect(), et = B.left + B.width / 2, Rt = B.top - 8;
4651
+ A(E, X(y), !0), p(g).isVisible = !0, p(g).selectedText = _, p(g).selectedRange = y.cloneRange(), p(g).toolbarPosition = { x: et, y: Rt };
4652
+ const Nt = _.length > 30 ? _.substring(0, 30) + "..." : _;
4653
+ A(T, `Annotation toolbar opened for "${Nt}"`), setTimeout(
4682
4654
  () => {
4683
4655
  A(T, "");
4684
4656
  },
@@ -4690,180 +4662,175 @@ function Gl(e, t) {
4690
4662
  100
4691
4663
  );
4692
4664
  }
4693
- function Ce() {
4694
- v(h) && r() && (r().stop(), A(h, !1)), v(g).isVisible = !1, v(g).selectedText = "", v(g).selectedRange = null;
4665
+ function Ae() {
4666
+ p(h) && r() && (r().stop(), A(h, !1)), p(g).isVisible = !1, p(g).selectedText = "", p(g).selectedRange = null;
4695
4667
  }
4696
- function yn(p) {
4697
- if (!v(g).selectedRange || !n()) return;
4698
- const y = v(g).selectedText;
4699
- n().addAnnotation(v(g).selectedRange, p), A($, n().getAnnotations().length, !0), eo();
4700
- const C = p === Ue.UNDERLINE ? "underlined" : `highlighted in ${p}`, q = y.length > 30 ? y.substring(0, 30) + "..." : y;
4701
- A(T, `"${q}" ${C}`), setTimeout(
4668
+ function yn(v) {
4669
+ if (!p(g).selectedRange || !n()) return;
4670
+ const y = p(g).selectedText;
4671
+ n().addAnnotation(p(g).selectedRange, v), A($, n().getAnnotations().length, !0), eo();
4672
+ const _ = v === Ue.UNDERLINE ? "underlined" : `highlighted in ${v}`, B = y.length > 30 ? y.substring(0, 30) + "..." : y;
4673
+ A(T, `"${B}" ${_}`), setTimeout(
4702
4674
  () => {
4703
4675
  A(T, "");
4704
4676
  },
4705
4677
  3e3
4706
- ), Ce();
4678
+ ), Ae();
4707
4679
  }
4708
- function oi() {
4709
- if (!v(P) || !n()) {
4680
+ function ti() {
4681
+ if (!p(E) || !n()) {
4710
4682
  console.warn("[AnnotationToolbar] No overlapping annotation to remove");
4711
4683
  return;
4712
4684
  }
4713
- console.log("[AnnotationToolbar] Removing annotation:", v(P));
4714
- const p = n().getAnnotation(v(P));
4715
- if (!p) {
4716
- console.warn("[AnnotationToolbar] Annotation not found:", v(P));
4685
+ console.log("[AnnotationToolbar] Removing annotation:", p(E));
4686
+ const v = n().getAnnotation(p(E));
4687
+ if (!v) {
4688
+ console.warn("[AnnotationToolbar] Annotation not found:", p(E));
4717
4689
  return;
4718
4690
  }
4719
- const y = p.range.toString();
4720
- n().removeAnnotation(v(P));
4721
- const C = n().getAnnotations().length;
4722
- A($, C, !0), console.log("[AnnotationToolbar] Annotations remaining:", C), eo();
4723
- const q = y.length > 30 ? y.substring(0, 30) + "..." : y;
4724
- A(T, `Removed annotation from "${q}"`), setTimeout(
4691
+ const y = v.range.toString();
4692
+ n().removeAnnotation(p(E));
4693
+ const _ = n().getAnnotations().length;
4694
+ A($, _, !0), console.log("[AnnotationToolbar] Annotations remaining:", _), eo();
4695
+ const B = y.length > 30 ? y.substring(0, 30) + "..." : y;
4696
+ A(T, `Removed annotation from "${B}"`), setTimeout(
4725
4697
  () => {
4726
4698
  A(T, "");
4727
4699
  },
4728
4700
  3e3
4729
- ), Ce();
4701
+ ), Ae();
4730
4702
  }
4731
- function ni() {
4732
- const p = v($);
4733
- n()?.clearAnnotations(), A($, 0), sessionStorage.removeItem(Z()), A(T, `${p} annotation${p === 1 ? "" : "s"} cleared`), setTimeout(
4703
+ function oi() {
4704
+ const v = p($);
4705
+ n()?.clearAnnotations(), A($, 0), sessionStorage.removeItem(Z()), A(T, `${v} annotation${v === 1 ? "" : "s"} cleared`), setTimeout(
4734
4706
  () => {
4735
4707
  A(T, "");
4736
4708
  },
4737
4709
  3e3
4738
- ), Ce();
4710
+ ), Ae();
4739
4711
  }
4740
- async function ri() {
4741
- if (!(!v(g).selectedRange || !r())) {
4712
+ async function ni() {
4713
+ if (!(!p(g).selectedRange || !r())) {
4742
4714
  A(h, !0);
4743
4715
  try {
4744
- console.log("[AnnotationToolbar] Speaking range:", v(g).selectedRange.toString().substring(0, 50)), await r().speakRange(v(g).selectedRange, { contentRoot: je() }), console.log("[AnnotationToolbar] TTS completed successfully");
4745
- } catch (p) {
4746
- console.error("[AnnotationToolbar] TTS error:", p), alert(`TTS failed: ${p instanceof Error ? p.message : String(p)}`);
4716
+ console.log("[AnnotationToolbar] Speaking range:", p(g).selectedRange.toString().substring(0, 50)), await r().speakRange(p(g).selectedRange, { contentRoot: Ve() }), console.log("[AnnotationToolbar] TTS completed successfully");
4717
+ } catch (v) {
4718
+ console.error("[AnnotationToolbar] TTS error:", v), alert(`TTS failed: ${v instanceof Error ? v.message : String(v)}`);
4747
4719
  } finally {
4748
4720
  A(h, !1);
4749
4721
  }
4750
4722
  }
4751
4723
  }
4752
- function wn(p) {
4753
- p.key === "Escape" && v(g).isVisible && (p.preventDefault(), Ce());
4724
+ function wn(v) {
4725
+ v.key === "Escape" && p(g).isVisible && (v.preventDefault(), Ae());
4754
4726
  }
4755
- function oo(p) {
4756
- !v(g).isVisible || v(w) || v(d) && !v(d).contains(p.target) && Ce();
4727
+ function oo(v) {
4728
+ !p(g).isVisible || p(w) || p(d) && !p(d).contains(v.target) && Ae();
4757
4729
  }
4758
4730
  Pn(() => {
4759
4731
  if (!i) return;
4760
- const p = setTimeout(
4732
+ const v = setTimeout(
4761
4733
  () => {
4762
- Mo();
4734
+ Lo();
4763
4735
  },
4764
4736
  2e3
4765
- ), y = v(W) || document;
4766
- return y.addEventListener("mouseup", to), y.addEventListener("click", oo), y.addEventListener("touchend", to), y.addEventListener("touchstart", oo), document.addEventListener("keydown", wn), window.addEventListener("scroll", Ce, !0), () => {
4767
- clearTimeout(p), y.removeEventListener("mouseup", to), y.removeEventListener("click", oo), y.removeEventListener("touchend", to), y.removeEventListener("touchstart", oo), document.removeEventListener("keydown", wn), window.removeEventListener("scroll", Ce, !0);
4737
+ ), y = p(W) || document;
4738
+ return y.addEventListener("mouseup", to), y.addEventListener("click", oo), y.addEventListener("touchend", to), y.addEventListener("touchstart", oo), document.addEventListener("keydown", wn), window.addEventListener("scroll", Ae, !0), () => {
4739
+ clearTimeout(v), y.removeEventListener("mouseup", to), y.removeEventListener("click", oo), y.removeEventListener("touchend", to), y.removeEventListener("touchstart", oo), document.removeEventListener("keydown", wn), window.removeEventListener("scroll", Ae, !0);
4768
4740
  };
4769
4741
  }), Pn(() => {
4770
- if (!v(c)) return;
4771
- const p = Us(v(c), (C) => {
4772
- A(f, C, !0);
4773
- }), y = Ks(v(c), (C) => {
4774
- A(b, C, !0);
4742
+ if (!p(c)) return;
4743
+ const v = Gs(p(c), (_) => {
4744
+ A(f, _, !0);
4745
+ }), y = Us(p(c), (_) => {
4746
+ A(b, _, !0);
4775
4747
  });
4776
4748
  return () => {
4777
- y(), p();
4749
+ y(), v();
4778
4750
  };
4779
4751
  });
4780
- var ii = {
4752
+ var ri = {
4781
4753
  get enabled() {
4782
4754
  return o();
4783
4755
  },
4784
- set enabled(p = !0) {
4785
- o(p), ho();
4756
+ set enabled(v = !0) {
4757
+ o(v), ho();
4786
4758
  },
4787
4759
  get highlightCoordinator() {
4788
4760
  return n();
4789
4761
  },
4790
- set highlightCoordinator(p = null) {
4791
- n(p), ho();
4762
+ set highlightCoordinator(v = null) {
4763
+ n(v), ho();
4792
4764
  },
4793
4765
  get ttsService() {
4794
4766
  return r();
4795
4767
  },
4796
- set ttsService(p = null) {
4797
- r(p), ho();
4768
+ set ttsService(v = null) {
4769
+ r(v), ho();
4798
4770
  }
4799
- }, Tn = Hl();
4800
- Ps("g8qu62", (p) => {
4801
- var y = Vl();
4802
- Ee(p, y);
4803
- });
4804
- var In = No(Tn);
4805
- qn(In, (p) => A(c, p), () => v(c));
4806
- var $n = ze(In, 2);
4771
+ }, Tn = ql(), In = Ro(Tn);
4772
+ Bn(In, (v) => A(c, v), () => p(c));
4773
+ var $n = je(In, 2);
4807
4774
  {
4808
- var si = (p) => {
4809
- var y = Dl(), C = so(y);
4810
- _s(C, 17, () => l, ks, (ue, de) => {
4811
- var K = jl(), no = so(K), Oo = so(no, !0);
4812
- ro(no), ro(K), lo(() => {
4813
- Vn(K, `background-color: ${v(de).hex ?? ""};`), jn(K, "aria-label", v(de).label), jn(K, "title", v(de).label), Nn(Oo, v(de).label);
4814
- }), zt("click", K, () => yn(v(de).name)), Ee(ue, K);
4775
+ var ii = (v) => {
4776
+ var y = Bl(), _ = so(y);
4777
+ _s(_, 17, () => l, ks, (ce, ue) => {
4778
+ var U = Nl(), no = so(U), Mo = so(no, !0);
4779
+ ro(no), ro(U), lo(() => {
4780
+ Vn(U, `background-color: ${p(ue).hex ?? ""};`), jn(U, "aria-label", p(ue).label), jn(U, "title", p(ue).label), Nn(Mo, p(ue).label);
4781
+ }), jt("click", U, () => yn(p(ue).name)), He(ce, U);
4815
4782
  });
4816
- var q = ze(C, 2), ot = ze(q, 2);
4783
+ var B = je(_, 2), et = je(B, 2);
4817
4784
  {
4818
- var Nt = (ue) => {
4819
- var de = zl(), K = ze(No(de), 2);
4820
- lo(() => K.disabled = v(h)), zt("click", K, ri), Ee(ue, de);
4785
+ var Rt = (ce) => {
4786
+ var ue = Vl(), U = je(Ro(ue), 2);
4787
+ lo(() => U.disabled = p(h)), jt("click", U, ni), He(ce, ue);
4821
4788
  };
4822
- Wt(ot, (ue) => {
4823
- r() && ue(Nt);
4789
+ zt(et, (ce) => {
4790
+ r() && ce(Rt);
4824
4791
  });
4825
4792
  }
4826
- var Vt = ze(ot, 2);
4793
+ var Nt = je(et, 2);
4827
4794
  {
4828
- var ai = (ue) => {
4829
- var de = Bl(), K = ze(No(de), 2);
4795
+ var li = (ce) => {
4796
+ var ue = Wl(), U = je(Ro(ue), 2);
4830
4797
  {
4831
- var no = (nt) => {
4832
- var jt = Wl();
4833
- zt("click", jt, oi), Ee(nt, jt);
4798
+ var no = (tt) => {
4799
+ var Vt = jl();
4800
+ jt("click", Vt, ti), He(tt, Vt);
4834
4801
  };
4835
- Wt(K, (nt) => {
4836
- v(ae) && nt(no);
4802
+ zt(U, (tt) => {
4803
+ p(le) && tt(no);
4837
4804
  });
4838
4805
  }
4839
- var Oo = ze(K, 2);
4806
+ var Mo = je(U, 2);
4840
4807
  {
4841
- var ci = (nt) => {
4842
- var jt = ql();
4843
- zt("click", jt, ni), Ee(nt, jt);
4808
+ var ai = (tt) => {
4809
+ var Vt = zl();
4810
+ jt("click", Vt, oi), He(tt, Vt);
4844
4811
  };
4845
- Wt(Oo, (nt) => {
4846
- v(le) && nt(ci);
4812
+ zt(Mo, (tt) => {
4813
+ p(se) && tt(ai);
4847
4814
  });
4848
4815
  }
4849
- Ee(ue, de);
4816
+ He(ce, ue);
4850
4817
  };
4851
- Wt(Vt, (ue) => {
4852
- (v(ae) || v(le)) && ue(ai);
4818
+ zt(Nt, (ce) => {
4819
+ (p(le) || p(se)) && ce(li);
4853
4820
  });
4854
4821
  }
4855
- ro(y), qn(y, (ue) => A(d, ue), () => v(d)), lo(() => Vn(y, `left:${v(g).toolbarPosition.x}px; top:${v(g).toolbarPosition.y}px; transform: translate(-50%, -100%);`)), zt("click", q, () => yn(Ue.UNDERLINE)), Ee(p, y);
4822
+ ro(y), Bn(y, (ce) => A(d, ce), () => p(d)), lo(() => Vn(y, `left:${p(g).toolbarPosition.x}px; top:${p(g).toolbarPosition.y}px; transform: translate(-50%, -100%);`)), jt("click", B, () => yn(Ue.UNDERLINE)), He(v, y);
4856
4823
  };
4857
- Wt($n, (p) => {
4858
- v(g).isVisible && p(si);
4824
+ zt($n, (v) => {
4825
+ p(g).isVisible && v(ii);
4859
4826
  });
4860
4827
  }
4861
- var xn = ze($n, 2), li = so(xn, !0);
4862
- return ro(xn), lo(() => Nn(li, v(T))), Ee(e, Tn), ir(ii);
4828
+ var xn = je($n, 2), si = so(xn, !0);
4829
+ return ro(xn), lo(() => Nn(si, p(T))), He(e, Tn), rr(ri);
4863
4830
  }
4864
4831
  ms(["click"]);
4865
4832
  customElements.define("pie-tool-annotation-toolbar", Bs(
4866
- Gl,
4833
+ Hl,
4867
4834
  {
4868
4835
  enabled: { attribute: "enabled", type: "Boolean" },
4869
4836
  highlightCoordinator: { type: "Object" },
@@ -4874,5 +4841,5 @@ customElements.define("pie-tool-annotation-toolbar", Bs(
4874
4841
  { mode: "open" }
4875
4842
  ));
4876
4843
  export {
4877
- Gl as default
4844
+ Hl as default
4878
4845
  };