@pie-players/pie-tool-text-to-speech 0.3.30 → 0.3.32

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,15 +1,15 @@
1
1
  import { t as b } from "./defineProperty-CyepwRr5.js";
2
2
  if (typeof window < "u") {
3
- var Ki, Xi;
4
- ((Ki = (Xi = window).__svelte ?? (Xi.__svelte = {})).v ?? (Ki.v = /* @__PURE__ */ new Set())).add("5");
3
+ var Zi, eo;
4
+ ((Zi = (eo = window).__svelte ?? (eo.__svelte = {})).v ?? (Zi.v = /* @__PURE__ */ new Set())).add("5");
5
5
  }
6
- var cr = {}, K = Symbol(), Yu = Symbol("filename");
7
- var _a = Array.isArray, ma = Array.prototype.indexOf, ur = Array.prototype.includes, ga = Array.from, dn = Object.keys, pn = Object.defineProperty, Nt = Object.getOwnPropertyDescriptor, ba = Object.getOwnPropertyDescriptors, ya = Object.prototype, wa = Array.prototype, Bo = Object.getPrototypeOf, Ji = Object.isExtensible, Ta = () => {
6
+ var dr = {}, K = Symbol(), of = Symbol("filename");
7
+ var wa = Array.isArray, Ta = Array.prototype.indexOf, pr = Array.prototype.includes, Ea = Array.from, vn = Object.keys, _n = Object.defineProperty, Ut = Object.getOwnPropertyDescriptor, ka = Object.getOwnPropertyDescriptors, Sa = Object.prototype, Aa = Array.prototype, Vo = Object.getPrototypeOf, to = Object.isExtensible, Ia = () => {
8
8
  };
9
- function Ea(e) {
9
+ function xa(e) {
10
10
  for (var t = 0; t < e.length; t++) e[t]();
11
11
  }
12
- function Wo() {
12
+ function Yo() {
13
13
  var e, t;
14
14
  return {
15
15
  promise: new Promise((r, n) => {
@@ -19,83 +19,83 @@ function Wo() {
19
19
  reject: t
20
20
  };
21
21
  }
22
- var qu = 1 << 24, Se = 1024, ze = 2048, jt = 4096, bi = 8192, ka = 16384, yi = 32768, Qi = 1 << 25, wi = 65536, Ku = 1 << 17, Xu = 1 << 18, _r = 1 << 19, Sa = 1 << 20, Fr = 65536, Zi = 1 << 21, Aa = 1 << 22, hn = 1 << 23, $r = Symbol("$state"), jo = Symbol("legacy props"), Ia = Symbol(""), xa = Symbol("proxy path"), Ju = Symbol("hmr anchor"), at = new class extends Error {
22
+ var sf = 1 << 24, Se = 1024, ze = 2048, Yt = 4096, Ei = 8192, Oa = 16384, ki = 32768, ro = 1 << 25, Si = 65536, af = 1 << 17, lf = 1 << 18, br = 1 << 19, La = 1 << 20, jr = 65536, no = 1 << 21, Ra = 1 << 22, mn = 1 << 23, zr = Symbol("$state"), qo = Symbol("legacy props"), Ma = Symbol(""), Ca = Symbol("proxy path"), cf = Symbol("hmr anchor"), at = new class extends Error {
23
23
  constructor(...t) {
24
24
  super(...t), b(this, "name", "StaleReactionError"), b(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
25
25
  }
26
- }(), Go = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
27
- function Oa(e) {
26
+ }(), Ko = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
27
+ function $a(e) {
28
28
  throw new Error("https://svelte.dev/e/lifecycle_outside_component");
29
29
  }
30
- function La() {
30
+ function Pa() {
31
31
  throw new Error("https://svelte.dev/e/async_derived_orphan");
32
32
  }
33
- function Ra(e) {
33
+ function Da(e) {
34
34
  throw new Error("https://svelte.dev/e/effect_in_teardown");
35
35
  }
36
- function Ma() {
36
+ function Na() {
37
37
  throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
38
38
  }
39
- function Ca(e) {
39
+ function za(e) {
40
40
  throw new Error("https://svelte.dev/e/effect_orphan");
41
41
  }
42
- function Pa() {
42
+ function Ua() {
43
43
  throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
44
44
  }
45
- function $a() {
45
+ function Fa() {
46
46
  throw new Error("https://svelte.dev/e/hydration_failed");
47
47
  }
48
- function Da(e) {
48
+ function Ba(e) {
49
49
  throw new Error("https://svelte.dev/e/props_invalid_value");
50
50
  }
51
- function Na() {
51
+ function Ha() {
52
52
  throw new Error("https://svelte.dev/e/state_descriptors_fixed");
53
53
  }
54
- function za() {
54
+ function ja() {
55
55
  throw new Error("https://svelte.dev/e/state_prototype_fixed");
56
56
  }
57
- function Ua() {
57
+ function Wa() {
58
58
  throw new Error("https://svelte.dev/e/state_unsafe_mutation");
59
59
  }
60
- function Fa() {
60
+ function Ga() {
61
61
  throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
62
62
  }
63
- function Ha() {
63
+ function Va() {
64
64
  console.warn("https://svelte.dev/e/derived_inert");
65
65
  }
66
- function wn(e) {
66
+ function kn(e) {
67
67
  console.warn("https://svelte.dev/e/hydration_mismatch");
68
68
  }
69
- function Ba() {
69
+ function Ya() {
70
70
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
71
71
  }
72
72
  var z = !1;
73
- function sr(e) {
73
+ function cr(e) {
74
74
  z = e;
75
75
  }
76
76
  var D;
77
77
  function Ae(e) {
78
78
  if (e === null)
79
- throw wn(), cr;
79
+ throw kn(), dr;
80
80
  return D = e;
81
81
  }
82
- function Ti() {
82
+ function Ai() {
83
83
  return Ae(/* @__PURE__ */ ft(D));
84
84
  }
85
85
  function ee(e) {
86
86
  if (z) {
87
87
  if (/* @__PURE__ */ ft(D) !== null)
88
- throw wn(), cr;
88
+ throw kn(), dr;
89
89
  D = e;
90
90
  }
91
91
  }
92
- function ei(e = 1) {
92
+ function ii(e = 1) {
93
93
  if (z) {
94
94
  for (var t = e, r = D; t--; ) r = /* @__PURE__ */ ft(r);
95
95
  D = r;
96
96
  }
97
97
  }
98
- function Vo(e = !0) {
98
+ function Xo(e = !0) {
99
99
  for (var t = 0, r = D; ; ) {
100
100
  if (r.nodeType === 8) {
101
101
  var n = r.data;
@@ -108,84 +108,84 @@ function Vo(e = !0) {
108
108
  e && r.remove(), r = i;
109
109
  }
110
110
  }
111
- function Wa(e) {
111
+ function qa(e) {
112
112
  if (!e || e.nodeType !== 8)
113
- throw wn(), cr;
113
+ throw kn(), dr;
114
114
  return e.data;
115
115
  }
116
- function Yo(e) {
116
+ function Jo(e) {
117
117
  return e === this.v;
118
118
  }
119
- function ja(e, t) {
119
+ function Ka(e, t) {
120
120
  return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
121
121
  }
122
- function qo(e) {
123
- return !ja(e, this.v);
122
+ function Qo(e) {
123
+ return !Ka(e, this.v);
124
124
  }
125
- var lt = !1, Hr = !1;
126
- function eo(e, t) {
127
- return e.label = t, Ga(e.v, t), e;
125
+ var lt = !1, Wr = !1;
126
+ function io(e, t) {
127
+ return e.label = t, Xa(e.v, t), e;
128
128
  }
129
- function Ga(e, t) {
130
- return e?.[xa]?.(t), e;
129
+ function Xa(e, t) {
130
+ return e?.[Ca]?.(t), e;
131
131
  }
132
- var j = null;
133
- function fr(e) {
134
- j = e;
132
+ var W = null;
133
+ function hr(e) {
134
+ W = e;
135
135
  }
136
- function Ko(e, t = !1, r) {
137
- j = {
138
- p: j,
136
+ function Zo(e, t = !1, r) {
137
+ W = {
138
+ p: W,
139
139
  i: !1,
140
140
  c: null,
141
141
  e: null,
142
142
  s: e,
143
143
  x: null,
144
144
  r: x,
145
- l: Hr && !t ? {
145
+ l: Wr && !t ? {
146
146
  s: null,
147
147
  u: null,
148
148
  $: []
149
149
  } : null
150
150
  };
151
151
  }
152
- function Xo(e) {
153
- var t = j, r = t.e;
152
+ function es(e) {
153
+ var t = W, r = t.e;
154
154
  if (r !== null) {
155
155
  t.e = null;
156
- for (var n of r) ws(n);
156
+ for (var n of r) Ss(n);
157
157
  }
158
- return e !== void 0 && (t.x = e), t.i = !0, j = t.p, e ?? {};
158
+ return e !== void 0 && (t.x = e), t.i = !0, W = t.p, e ?? {};
159
159
  }
160
- function Br() {
161
- return !Hr || j !== null && j.l === null;
160
+ function Gr() {
161
+ return !Wr || W !== null && W.l === null;
162
162
  }
163
- var $t = [];
164
- function Jo() {
165
- var e = $t;
166
- $t = [], Ea(e);
163
+ var Nt = [];
164
+ function ts() {
165
+ var e = Nt;
166
+ Nt = [], xa(e);
167
167
  }
168
- function Wt(e) {
169
- if ($t.length === 0 && !Dr) {
170
- var t = $t;
168
+ function Vt(e) {
169
+ if (Nt.length === 0 && !Ur) {
170
+ var t = Nt;
171
171
  queueMicrotask(() => {
172
- t === $t && Jo();
172
+ t === Nt && ts();
173
173
  });
174
174
  }
175
- $t.push(e);
175
+ Nt.push(e);
176
176
  }
177
- function Va() {
178
- for (; $t.length > 0; ) Jo();
177
+ function Ja() {
178
+ for (; Nt.length > 0; ) ts();
179
179
  }
180
- function Qo(e) {
180
+ function rs(e) {
181
181
  var t = x;
182
182
  if (t === null)
183
- return R.f |= hn, e;
183
+ return R.f |= mn, e;
184
184
  if (!(t.f & 32768) && !(t.f & 4))
185
185
  throw e;
186
- wt(e, t);
186
+ Et(e, t);
187
187
  }
188
- function wt(e, t) {
188
+ function Et(e, t) {
189
189
  for (; t !== null; ) {
190
190
  if (t.f & 128) {
191
191
  if (!(t.f & 32768)) throw e;
@@ -200,70 +200,70 @@ function wt(e, t) {
200
200
  }
201
201
  throw e;
202
202
  }
203
- var Ya = ~(ze | jt | Se);
203
+ var Qa = ~(ze | Yt | Se);
204
204
  function G(e, t) {
205
- e.f = e.f & Ya | t;
205
+ e.f = e.f & Qa | t;
206
206
  }
207
- function Ei(e) {
208
- e.f & 512 || e.deps === null ? G(e, Se) : G(e, jt);
207
+ function Ii(e) {
208
+ e.f & 512 || e.deps === null ? G(e, Se) : G(e, Yt);
209
209
  }
210
- function Zo(e) {
210
+ function ns(e) {
211
211
  if (e !== null)
212
212
  for (const t of e)
213
- !(t.f & 2) || !(t.f & 65536) || (t.f ^= Fr, Zo(t.deps));
213
+ !(t.f & 2) || !(t.f & 65536) || (t.f ^= jr, ns(t.deps));
214
214
  }
215
- function es(e, t, r) {
216
- e.f & 2048 ? t.add(e) : e.f & 4096 && r.add(e), Zo(e.deps), G(e, Se);
215
+ function is(e, t, r) {
216
+ e.f & 2048 ? t.add(e) : e.f & 4096 && r.add(e), ns(e.deps), G(e, Se);
217
217
  }
218
- var qa = !1, Xr = !1;
219
- function Ka(e) {
220
- var t = Xr;
218
+ var Za = !1, Zr = !1;
219
+ function el(e) {
220
+ var t = Zr;
221
221
  try {
222
- return Xr = !1, [e(), Xr];
222
+ return Zr = !1, [e(), Zr];
223
223
  } finally {
224
- Xr = t;
224
+ Zr = t;
225
225
  }
226
226
  }
227
- function ts(e, t) {
227
+ function os(e, t) {
228
228
  if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
229
229
  }
230
- function ki(e, t) {
231
- ts(e, t), t.add(e);
230
+ function xi(e, t) {
231
+ os(e, t), t.add(e);
232
232
  }
233
233
  function S(e, t, r) {
234
- ts(e, t), t.set(e, r);
234
+ os(e, t), t.set(e, r);
235
235
  }
236
- function P(e, t, r) {
236
+ function $(e, t, r) {
237
237
  if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : r;
238
238
  throw new TypeError("Private element is not present on this object");
239
239
  }
240
240
  function c(e, t) {
241
- return e.get(P(e, t));
241
+ return e.get($(e, t));
242
242
  }
243
243
  function A(e, t, r) {
244
- return e.set(P(e, t), r), r;
244
+ return e.set($(e, t), r), r;
245
245
  }
246
- var rs, Ge = /* @__PURE__ */ new Set(), O = null, to = null, oe = null, ti = null, Dr = !1, Un = !1, dr = null, vn = null, ns = 0;
247
- var Xa = 1, _n = /* @__PURE__ */ new WeakMap(), Jr = /* @__PURE__ */ new WeakMap(), kr = /* @__PURE__ */ new WeakMap(), Pt = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(), on = /* @__PURE__ */ new WeakMap(), Pe = /* @__PURE__ */ new WeakMap(), ri = /* @__PURE__ */ new WeakMap(), pr = /* @__PURE__ */ new WeakMap(), zt = /* @__PURE__ */ new WeakMap(), yt = /* @__PURE__ */ new WeakMap(), sn = /* @__PURE__ */ new WeakMap(), Qr = /* @__PURE__ */ new WeakMap(), lr = /* @__PURE__ */ new WeakMap(), ce = /* @__PURE__ */ new WeakSet(), Gt = class is {
246
+ var ss, Ge = /* @__PURE__ */ new Set(), O = null, oo = null, oe = null, oi = null, Ur = !1, Hn = !1, vr = null, gn = null, as = 0;
247
+ var tl = 1, bn = /* @__PURE__ */ new WeakMap(), en = /* @__PURE__ */ new WeakMap(), Ir = /* @__PURE__ */ new WeakMap(), Dt = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakMap(), ln = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakMap(), si = /* @__PURE__ */ new WeakMap(), _r = /* @__PURE__ */ new WeakMap(), Ft = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), cn = /* @__PURE__ */ new WeakMap(), tn = /* @__PURE__ */ new WeakMap(), fr = /* @__PURE__ */ new WeakMap(), ce = /* @__PURE__ */ new WeakSet(), qt = class ls {
248
248
  constructor() {
249
- ki(this, ce), b(this, "id", Xa++), b(this, "current", /* @__PURE__ */ new Map()), b(this, "previous", /* @__PURE__ */ new Map()), S(this, _n, /* @__PURE__ */ new Set()), S(this, Jr, /* @__PURE__ */ new Set()), S(this, kr, /* @__PURE__ */ new Set()), S(this, Pt, /* @__PURE__ */ new Map()), S(this, bt, /* @__PURE__ */ new Map()), S(this, on, null), S(this, Pe, []), S(this, ri, []), S(this, pr, /* @__PURE__ */ new Set()), S(this, zt, /* @__PURE__ */ new Set()), S(this, yt, /* @__PURE__ */ new Map()), S(this, sn, /* @__PURE__ */ new Set()), b(this, "is_fork", !1), S(this, Qr, !1), S(this, lr, /* @__PURE__ */ new Set());
249
+ xi(this, ce), b(this, "id", tl++), b(this, "current", /* @__PURE__ */ new Map()), b(this, "previous", /* @__PURE__ */ new Map()), S(this, bn, /* @__PURE__ */ new Set()), S(this, en, /* @__PURE__ */ new Set()), S(this, Ir, /* @__PURE__ */ new Set()), S(this, Dt, /* @__PURE__ */ new Map()), S(this, wt, /* @__PURE__ */ new Map()), S(this, ln, null), S(this, $e, []), S(this, si, []), S(this, _r, /* @__PURE__ */ new Set()), S(this, Ft, /* @__PURE__ */ new Set()), S(this, Tt, /* @__PURE__ */ new Map()), S(this, cn, /* @__PURE__ */ new Set()), b(this, "is_fork", !1), S(this, tn, !1), S(this, fr, /* @__PURE__ */ new Set());
250
250
  }
251
251
  skip_effect(t) {
252
- c(yt, this).has(t) || c(yt, this).set(t, {
252
+ c(Tt, this).has(t) || c(Tt, this).set(t, {
253
253
  d: [],
254
254
  m: []
255
- }), c(sn, this).delete(t);
255
+ }), c(cn, this).delete(t);
256
256
  }
257
257
  unskip_effect(t, r = (n) => this.schedule(n)) {
258
- var n = c(yt, this).get(t);
258
+ var n = c(Tt, this).get(t);
259
259
  if (n) {
260
- c(yt, this).delete(t);
260
+ c(Tt, this).delete(t);
261
261
  for (var i of n.d)
262
262
  G(i, ze), r(i);
263
263
  for (i of n.m)
264
- G(i, jt), r(i);
264
+ G(i, Yt), r(i);
265
265
  }
266
- c(sn, this).add(t);
266
+ c(cn, this).add(t);
267
267
  }
268
268
  capture(t, r, n = !1) {
269
269
  t.v !== K && !this.previous.has(t) && this.previous.set(t, t.v), t.f & 8388608 || (this.current.set(t, [r, n]), oe?.set(t, r)), this.is_fork || (t.v = r);
@@ -277,60 +277,60 @@ var Xa = 1, _n = /* @__PURE__ */ new WeakMap(), Jr = /* @__PURE__ */ new WeakMap
277
277
  flush() {
278
278
  var t = null;
279
279
  try {
280
- Un = !0, O = this, P(ce, this, Si).call(this);
280
+ Hn = !0, O = this, $(ce, this, Oi).call(this);
281
281
  } finally {
282
- ns = 0, ti = null, dr = null, vn = null, Un = !1, O = null, oe = null, Ht.clear();
282
+ as = 0, oi = null, vr = null, gn = null, Hn = !1, O = null, oe = null, jt.clear();
283
283
  }
284
284
  }
285
285
  discard() {
286
- for (const t of c(Jr, this)) t(this);
287
- c(Jr, this).clear(), c(kr, this).clear(), Ge.delete(this);
286
+ for (const t of c(en, this)) t(this);
287
+ c(en, this).clear(), c(Ir, this).clear(), Ge.delete(this);
288
288
  }
289
289
  register_created_effect(t) {
290
- c(ri, this).push(t);
290
+ c(si, this).push(t);
291
291
  }
292
292
  increment(t, r) {
293
- let n = c(Pt, this).get(r) ?? 0;
294
- if (c(Pt, this).set(r, n + 1), t) {
295
- let i = c(bt, this).get(r) ?? 0;
296
- c(bt, this).set(r, i + 1);
293
+ let n = c(Dt, this).get(r) ?? 0;
294
+ if (c(Dt, this).set(r, n + 1), t) {
295
+ let i = c(wt, this).get(r) ?? 0;
296
+ c(wt, this).set(r, i + 1);
297
297
  }
298
298
  }
299
299
  decrement(t, r, n) {
300
- let i = c(Pt, this).get(r) ?? 0;
301
- if (i === 1 ? c(Pt, this).delete(r) : c(Pt, this).set(r, i - 1), t) {
302
- let o = c(bt, this).get(r) ?? 0;
303
- o === 1 ? c(bt, this).delete(r) : c(bt, this).set(r, o - 1);
300
+ let i = c(Dt, this).get(r) ?? 0;
301
+ if (i === 1 ? c(Dt, this).delete(r) : c(Dt, this).set(r, i - 1), t) {
302
+ let o = c(wt, this).get(r) ?? 0;
303
+ o === 1 ? c(wt, this).delete(r) : c(wt, this).set(r, o - 1);
304
304
  }
305
- c(Qr, this) || n || (A(Qr, this, !0), Wt(() => {
306
- A(Qr, this, !1), this.flush();
305
+ c(tn, this) || n || (A(tn, this, !0), Vt(() => {
306
+ A(tn, this, !1), this.flush();
307
307
  }));
308
308
  }
309
309
  transfer_effects(t, r) {
310
- for (const n of t) c(pr, this).add(n);
311
- for (const n of r) c(zt, this).add(n);
310
+ for (const n of t) c(_r, this).add(n);
311
+ for (const n of r) c(Ft, this).add(n);
312
312
  t.clear(), r.clear();
313
313
  }
314
314
  oncommit(t) {
315
- c(_n, this).add(t);
315
+ c(bn, this).add(t);
316
316
  }
317
317
  ondiscard(t) {
318
- c(Jr, this).add(t);
318
+ c(en, this).add(t);
319
319
  }
320
320
  on_fork_commit(t) {
321
- c(kr, this).add(t);
321
+ c(Ir, this).add(t);
322
322
  }
323
323
  run_fork_commit_callbacks() {
324
- for (const t of c(kr, this)) t(this);
325
- c(kr, this).clear();
324
+ for (const t of c(Ir, this)) t(this);
325
+ c(Ir, this).clear();
326
326
  }
327
327
  settled() {
328
- return (c(on, this) ?? A(on, this, Wo())).promise;
328
+ return (c(ln, this) ?? A(ln, this, Yo())).promise;
329
329
  }
330
330
  static ensure() {
331
331
  if (O === null) {
332
- const t = O = new is();
333
- Un || (Ge.add(O), Dr || Wt(() => {
332
+ const t = O = new ls();
333
+ Hn || (Ge.add(O), Ur || Vt(() => {
334
334
  O === t && t.flush();
335
335
  }));
336
336
  }
@@ -348,36 +348,36 @@ var Xa = 1, _n = /* @__PURE__ */ new WeakMap(), Jr = /* @__PURE__ */ new WeakMap
348
348
  var t = !1, r = !1;
349
349
  if (n.id < this.id) for (const [i, [, o]] of n.current)
350
350
  o || (t || (t = this.current.has(i)), r || (r = !this.current.has(i)));
351
- if (t && r) c(lr, this).add(n);
351
+ if (t && r) c(fr, this).add(n);
352
352
  else for (const [i, o] of n.previous) oe.has(i) || oe.set(i, o);
353
353
  }
354
354
  }
355
355
  schedule(t) {
356
- if (ti = t, t.b?.is_pending && t.f & 16777228 && !(t.f & 32768)) {
356
+ if (oi = t, t.b?.is_pending && t.f & 16777228 && !(t.f & 32768)) {
357
357
  t.b.defer_effect(t);
358
358
  return;
359
359
  }
360
360
  for (var r = t; r.parent !== null; ) {
361
361
  r = r.parent;
362
362
  var n = r.f;
363
- if (dr !== null && r === x && (lt || (R === null || !(R.f & 2)) && !qa))
363
+ if (vr !== null && r === x && (lt || (R === null || !(R.f & 2)) && !Za))
364
364
  return;
365
365
  if (n & 96) {
366
366
  if (!(n & 1024)) return;
367
367
  r.f ^= Se;
368
368
  }
369
369
  }
370
- c(Pe, this).push(r);
370
+ c($e, this).push(r);
371
371
  }
372
372
  };
373
- rs = Gt;
374
- function ni() {
375
- return this.is_fork || c(bt, this).size > 0;
373
+ ss = qt;
374
+ function ai() {
375
+ return this.is_fork || c(wt, this).size > 0;
376
376
  }
377
- function Ja() {
378
- for (const r of c(lr, this)) for (const n of c(bt, r).keys()) {
377
+ function rl() {
378
+ for (const r of c(fr, this)) for (const n of c(wt, r).keys()) {
379
379
  for (var e = !1, t = n; t.parent !== null; ) {
380
- if (c(yt, this).has(t)) {
380
+ if (c(Tt, this).has(t)) {
381
381
  e = !0;
382
382
  break;
383
383
  }
@@ -387,46 +387,46 @@ function Ja() {
387
387
  }
388
388
  return !1;
389
389
  }
390
- function Si() {
391
- if (ns++ > 1e3 && (Ge.delete(this), Za()), !P(ce, this, ni).call(this)) {
392
- for (const s of c(pr, this))
393
- c(zt, this).delete(s), G(s, ze), this.schedule(s);
394
- for (const s of c(zt, this))
395
- G(s, jt), this.schedule(s);
390
+ function Oi() {
391
+ if (as++ > 1e3 && (Ge.delete(this), il()), !$(ce, this, ai).call(this)) {
392
+ for (const s of c(_r, this))
393
+ c(Ft, this).delete(s), G(s, ze), this.schedule(s);
394
+ for (const s of c(Ft, this))
395
+ G(s, Yt), this.schedule(s);
396
396
  }
397
- const e = c(Pe, this);
398
- A(Pe, this, []), this.apply();
399
- var t = dr = [], r = [], n = vn = [];
397
+ const e = c($e, this);
398
+ A($e, this, []), this.apply();
399
+ var t = vr = [], r = [], n = gn = [];
400
400
  for (const s of e) try {
401
- P(ce, this, os).call(this, s, t, r);
401
+ $(ce, this, cs).call(this, s, t, r);
402
402
  } catch (a) {
403
- throw ls(s), a;
403
+ throw ds(s), a;
404
404
  }
405
405
  if (O = null, n.length > 0) {
406
- var i = rs.ensure();
406
+ var i = ss.ensure();
407
407
  for (const s of n) i.schedule(s);
408
408
  }
409
- if (dr = null, vn = null, P(ce, this, ni).call(this) || P(ce, this, Ja).call(this)) {
410
- P(ce, this, ii).call(this, r), P(ce, this, ii).call(this, t);
411
- for (const [s, a] of c(yt, this)) as(s, a);
409
+ if (vr = null, gn = null, $(ce, this, ai).call(this) || $(ce, this, rl).call(this)) {
410
+ $(ce, this, li).call(this, r), $(ce, this, li).call(this, t);
411
+ for (const [s, a] of c(Tt, this)) fs(s, a);
412
412
  } else {
413
- c(Pt, this).size === 0 && Ge.delete(this), c(pr, this).clear(), c(zt, this).clear();
414
- for (const s of c(_n, this)) s(this);
415
- c(_n, this).clear(), to = this, ro(r), ro(t), to = null, c(on, this)?.resolve();
413
+ c(Dt, this).size === 0 && Ge.delete(this), c(_r, this).clear(), c(Ft, this).clear();
414
+ for (const s of c(bn, this)) s(this);
415
+ c(bn, this).clear(), oo = this, so(r), so(t), oo = null, c(ln, this)?.resolve();
416
416
  }
417
417
  var o = O;
418
- if (c(Pe, this).length > 0) {
418
+ if (c($e, this).length > 0) {
419
419
  const s = o ?? (o = this);
420
- c(Pe, s).push(...c(Pe, this).filter((a) => !c(Pe, s).includes(a)));
420
+ c($e, s).push(...c($e, this).filter((a) => !c($e, s).includes(a)));
421
421
  }
422
- o !== null && (Ge.add(o), P(ce, o, Si).call(o)), lt && !Ge.has(this) && P(ce, this, Qa).call(this);
422
+ o !== null && (Ge.add(o), $(ce, o, Oi).call(o)), lt && !Ge.has(this) && $(ce, this, nl).call(this);
423
423
  }
424
- function os(e, t, r) {
424
+ function cs(e, t, r) {
425
425
  e.f ^= Se;
426
426
  for (var n = e.first; n !== null; ) {
427
427
  var i = n.f, o = (i & 96) !== 0;
428
- if (!(o && i & 1024 || i & 8192 || c(yt, this).has(n)) && n.fn !== null) {
429
- o ? n.f ^= Se : i & 4 ? t.push(n) : lt && i & 16777224 ? r.push(n) : Gr(n) && (i & 16 && c(zt, this).add(n), vr(n));
428
+ if (!(o && i & 1024 || i & 8192 || c(Tt, this).has(n)) && n.fn !== null) {
429
+ o ? n.f ^= Se : i & 4 ? t.push(n) : lt && i & 16777224 ? r.push(n) : qr(n) && (i & 16 && c(Ft, this).add(n), gr(n));
430
430
  var s = n.first;
431
431
  if (s !== null) {
432
432
  n = s;
@@ -443,10 +443,10 @@ function os(e, t, r) {
443
443
  }
444
444
  }
445
445
  }
446
- function ii(e) {
447
- for (var t = 0; t < e.length; t += 1) es(e[t], c(pr, this), c(zt, this));
446
+ function li(e) {
447
+ for (var t = 0; t < e.length; t += 1) is(e[t], c(_r, this), c(Ft, this));
448
448
  }
449
- function Qa() {
449
+ function nl() {
450
450
  for (const f of Ge) {
451
451
  var e = f.id < this.id, t = [];
452
452
  for (const [d, [m, p]] of this.current) {
@@ -461,323 +461,323 @@ function Qa() {
461
461
  if (n.length === 0)
462
462
  e && f.discard();
463
463
  else if (t.length > 0) {
464
- if (e) for (const d of c(sn, this)) f.unskip_effect(d, (m) => {
465
- m.f & 4194320 ? f.schedule(m) : P(ce, f, ii).call(f, [m]);
464
+ if (e) for (const d of c(cn, this)) f.unskip_effect(d, (m) => {
465
+ m.f & 4194320 ? f.schedule(m) : $(ce, f, li).call(f, [m]);
466
466
  });
467
467
  f.activate();
468
468
  var i = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
469
- for (var s of t) ss(s, n, i, o);
469
+ for (var s of t) us(s, n, i, o);
470
470
  o = /* @__PURE__ */ new Map();
471
471
  var a = [...f.current.keys()].filter((d) => this.current.has(d) ? this.current.get(d)[0] !== d : !0);
472
- for (const d of c(ri, this)) !(d.f & 155648) && Ai(d, a, o) && (d.f & 4194320 ? (G(d, ze), f.schedule(d)) : c(pr, f).add(d));
473
- if (c(Pe, f).length > 0) {
472
+ for (const d of c(si, this)) !(d.f & 155648) && Li(d, a, o) && (d.f & 4194320 ? (G(d, ze), f.schedule(d)) : c(_r, f).add(d));
473
+ if (c($e, f).length > 0) {
474
474
  f.apply();
475
- for (var u of c(Pe, f)) P(ce, f, os).call(f, u, [], []);
476
- A(Pe, f, []);
475
+ for (var u of c($e, f)) $(ce, f, cs).call(f, u, [], []);
476
+ A($e, f, []);
477
477
  }
478
478
  f.deactivate();
479
479
  }
480
480
  }
481
- for (const f of Ge) c(lr, f).has(this) && (c(lr, f).delete(this), c(lr, f).size === 0 && !P(ce, f, ni).call(f) && (f.activate(), P(ce, f, Si).call(f)));
481
+ for (const f of Ge) c(fr, f).has(this) && (c(fr, f).delete(this), c(fr, f).size === 0 && !$(ce, f, ai).call(f) && (f.activate(), $(ce, f, Oi).call(f)));
482
482
  }
483
- function Cr(e) {
484
- var t = Dr;
485
- Dr = !0;
483
+ function Dr(e) {
484
+ var t = Ur;
485
+ Ur = !0;
486
486
  try {
487
487
  var r;
488
488
  for (e && (O !== null && !O.is_fork && O.flush(), r = e()); ; ) {
489
- if (Va(), O === null) return r;
489
+ if (Ja(), O === null) return r;
490
490
  O.flush();
491
491
  }
492
492
  } finally {
493
- Dr = t;
493
+ Ur = t;
494
494
  }
495
495
  }
496
- function Za() {
496
+ function il() {
497
497
  if (0) {
498
498
  var e;
499
499
  for (const r of O.current.keys()) for (const [n, i] of r.updated ?? [])
500
500
  var t;
501
501
  }
502
502
  try {
503
- Pa();
503
+ Ua();
504
504
  } catch (r) {
505
- wt(r, ti);
505
+ Et(r, oi);
506
506
  }
507
507
  }
508
- var We = null;
509
- function ro(e) {
508
+ var je = null;
509
+ function so(e) {
510
510
  var t = e.length;
511
511
  if (t !== 0) {
512
512
  for (var r = 0; r < t; ) {
513
513
  var n = e[r++];
514
- if (!(n.f & 24576) && Gr(n) && (We = /* @__PURE__ */ new Set(), vr(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && Ss(n), We?.size > 0)) {
515
- Ht.clear();
516
- for (const i of We) {
514
+ if (!(n.f & 24576) && qr(n) && (je = /* @__PURE__ */ new Set(), gr(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && Os(n), je?.size > 0)) {
515
+ jt.clear();
516
+ for (const i of je) {
517
517
  if (i.f & 24576) continue;
518
518
  const o = [i];
519
519
  let s = i.parent;
520
520
  for (; s !== null; )
521
- We.has(s) && (We.delete(s), o.push(s)), s = s.parent;
521
+ je.has(s) && (je.delete(s), o.push(s)), s = s.parent;
522
522
  for (let a = o.length - 1; a >= 0; a--) {
523
523
  const u = o[a];
524
- u.f & 24576 || vr(u);
524
+ u.f & 24576 || gr(u);
525
525
  }
526
526
  }
527
- We.clear();
527
+ je.clear();
528
528
  }
529
529
  }
530
- We = null;
530
+ je = null;
531
531
  }
532
532
  }
533
- function ss(e, t, r, n) {
533
+ function us(e, t, r, n) {
534
534
  if (!r.has(e) && (r.add(e), e.reactions !== null))
535
535
  for (const i of e.reactions) {
536
536
  const o = i.f;
537
- o & 2 ? ss(i, t, r, n) : o & 4194320 && !(o & 2048) && Ai(i, t, n) && (G(i, ze), Ii(i));
537
+ o & 2 ? us(i, t, r, n) : o & 4194320 && !(o & 2048) && Li(i, t, n) && (G(i, ze), Ri(i));
538
538
  }
539
539
  }
540
- function Ai(e, t, r) {
540
+ function Li(e, t, r) {
541
541
  const n = r.get(e);
542
542
  if (n !== void 0) return n;
543
543
  if (e.deps !== null) for (const i of e.deps) {
544
- if (ur.call(t, i)) return !0;
545
- if (i.f & 2 && Ai(i, t, r))
544
+ if (pr.call(t, i)) return !0;
545
+ if (i.f & 2 && Li(i, t, r))
546
546
  return r.set(i, !0), !0;
547
547
  }
548
548
  return r.set(e, !1), !1;
549
549
  }
550
- function Ii(e) {
550
+ function Ri(e) {
551
551
  O.schedule(e);
552
552
  }
553
- function as(e, t) {
553
+ function fs(e, t) {
554
554
  if (!(e.f & 32 && e.f & 1024)) {
555
555
  e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), G(e, Se);
556
556
  for (var r = e.first; r !== null; )
557
- as(r, t), r = r.next;
557
+ fs(r, t), r = r.next;
558
558
  }
559
559
  }
560
- function ls(e) {
560
+ function ds(e) {
561
561
  G(e, Se);
562
562
  for (var t = e.first; t !== null; )
563
- ls(t), t = t.next;
563
+ ds(t), t = t.next;
564
564
  }
565
- function el(e) {
566
- let t = 0, r = Wr(0), n;
565
+ function ol(e) {
566
+ let t = 0, r = Vr(0), n;
567
567
  return () => {
568
- Ri() && (g(r), Mi(() => (t === 0 && (n = kn(() => e(() => Nr(r)))), t += 1, () => {
569
- Wt(() => {
570
- t -= 1, t === 0 && (n?.(), n = void 0, Nr(r));
568
+ Pi() && (g(r), Di(() => (t === 0 && (n = In(() => e(() => Fr(r)))), t += 1, () => {
569
+ Vt(() => {
570
+ t -= 1, t === 0 && (n?.(), n = void 0, Fr(r));
571
571
  });
572
572
  })));
573
573
  };
574
574
  }
575
- var tl = wi | _r;
576
- function rl(e, t, r, n) {
577
- new nl(e, t, r, n);
575
+ var sl = Si | br;
576
+ function al(e, t, r, n) {
577
+ new ll(e, t, r, n);
578
578
  }
579
- var De = /* @__PURE__ */ new WeakMap(), oi = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), zr = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), Ve = /* @__PURE__ */ new WeakMap(), he = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), Ut = /* @__PURE__ */ new WeakMap(), ir = /* @__PURE__ */ new WeakMap(), Ft = /* @__PURE__ */ new WeakMap(), Zr = /* @__PURE__ */ new WeakMap(), si = /* @__PURE__ */ new WeakMap(), ai = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakMap(), no = /* @__PURE__ */ new WeakMap(), re = /* @__PURE__ */ new WeakSet(), nl = class {
579
+ var De = /* @__PURE__ */ new WeakMap(), ci = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap(), Br = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), Ve = /* @__PURE__ */ new WeakMap(), he = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), Bt = /* @__PURE__ */ new WeakMap(), ar = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), rn = /* @__PURE__ */ new WeakMap(), ui = /* @__PURE__ */ new WeakMap(), fi = /* @__PURE__ */ new WeakMap(), $t = /* @__PURE__ */ new WeakMap(), ao = /* @__PURE__ */ new WeakMap(), re = /* @__PURE__ */ new WeakSet(), ll = class {
580
580
  constructor(e, t, r, n) {
581
- ki(this, re), b(this, "parent", void 0), b(this, "is_pending", !1), b(this, "transform_error", void 0), S(this, De, void 0), S(this, oi, z ? D : null), S(this, je, void 0), S(this, zr, void 0), S(this, Ee, void 0), S(this, Ve, null), S(this, he, null), S(this, Ce, null), S(this, Ut, null), S(this, ir, 0), S(this, Ft, 0), S(this, Zr, !1), S(this, si, /* @__PURE__ */ new Set()), S(this, ai, /* @__PURE__ */ new Set()), S(this, Mt, null), S(this, no, el(() => (A(Mt, this, Wr(c(ir, this))), () => {
582
- A(Mt, this, null);
583
- }))), A(De, this, e), A(je, this, t), A(zr, this, (i) => {
581
+ xi(this, re), b(this, "parent", void 0), b(this, "is_pending", !1), b(this, "transform_error", void 0), S(this, De, void 0), S(this, ci, z ? D : null), S(this, We, void 0), S(this, Br, void 0), S(this, Ee, void 0), S(this, Ve, null), S(this, he, null), S(this, Ce, null), S(this, Bt, null), S(this, ar, 0), S(this, Ht, 0), S(this, rn, !1), S(this, ui, /* @__PURE__ */ new Set()), S(this, fi, /* @__PURE__ */ new Set()), S(this, $t, null), S(this, ao, ol(() => (A($t, this, Vr(c(ar, this))), () => {
582
+ A($t, this, null);
583
+ }))), A(De, this, e), A(We, this, t), A(Br, this, (i) => {
584
584
  var o = x;
585
585
  o.b = this, o.f |= 128, r(i);
586
- }), this.parent = x.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i), A(Ee, this, Es(() => {
586
+ }), this.parent = x.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i), A(Ee, this, Is(() => {
587
587
  if (z) {
588
- const i = c(oi, this);
589
- Ti();
588
+ const i = c(ci, this);
589
+ Ai();
590
590
  const o = i.data === "[!";
591
591
  if (i.data.startsWith("[?")) {
592
592
  const s = JSON.parse(i.data.slice(2));
593
- P(re, this, ol).call(this, s);
594
- } else o ? P(re, this, sl).call(this) : P(re, this, il).call(this);
595
- } else P(re, this, cs).call(this);
596
- }, tl)), z && A(De, this, D);
593
+ $(re, this, ul).call(this, s);
594
+ } else o ? $(re, this, fl).call(this) : $(re, this, cl).call(this);
595
+ } else $(re, this, ps).call(this);
596
+ }, sl)), z && A(De, this, D);
597
597
  }
598
598
  defer_effect(e) {
599
- es(e, c(si, this), c(ai, this));
599
+ is(e, c(ui, this), c(fi, this));
600
600
  }
601
601
  is_rendered() {
602
602
  return !this.is_pending && (!this.parent || this.parent.is_rendered());
603
603
  }
604
604
  has_pending_snippet() {
605
- return !!c(je, this).pending;
605
+ return !!c(We, this).pending;
606
606
  }
607
607
  update_pending_count(e, t) {
608
- P(re, this, us).call(this, e, t), A(ir, this, c(ir, this) + e), !(!c(Mt, this) || c(Zr, this)) && (A(Zr, this, !0), Wt(() => {
609
- A(Zr, this, !1), c(Mt, this) && gn(c(Mt, this), c(ir, this));
608
+ $(re, this, hs).call(this, e, t), A(ar, this, c(ar, this) + e), !(!c($t, this) || c(rn, this)) && (A(rn, this, !0), Vt(() => {
609
+ A(rn, this, !1), c($t, this) && wn(c($t, this), c(ar, this));
610
610
  }));
611
611
  }
612
612
  get_effect_pending() {
613
- return c(no, this).call(this), g(c(Mt, this));
613
+ return c(ao, this).call(this), g(c($t, this));
614
614
  }
615
615
  error(e) {
616
- if (!c(je, this).onerror && !c(je, this).failed) throw e;
616
+ if (!c(We, this).onerror && !c(We, this).failed) throw e;
617
617
  O?.is_fork ? (c(Ve, this) && O.skip_effect(c(Ve, this)), c(he, this) && O.skip_effect(c(he, this)), c(Ce, this) && O.skip_effect(c(Ce, this)), O.on_fork_commit(() => {
618
- P(re, this, io).call(this, e);
619
- })) : P(re, this, io).call(this, e);
618
+ $(re, this, lo).call(this, e);
619
+ })) : $(re, this, lo).call(this, e);
620
620
  }
621
621
  };
622
- function il() {
622
+ function cl() {
623
623
  try {
624
- A(Ve, this, ct(() => c(zr, this).call(this, c(De, this))));
624
+ A(Ve, this, ct(() => c(Br, this).call(this, c(De, this))));
625
625
  } catch (e) {
626
626
  this.error(e);
627
627
  }
628
628
  }
629
- function ol(e) {
630
- const t = c(je, this).failed;
629
+ function ul(e) {
630
+ const t = c(We, this).failed;
631
631
  t && A(Ce, this, ct(() => {
632
632
  t(c(De, this), () => e, () => () => {
633
633
  });
634
634
  }));
635
635
  }
636
- function sl() {
637
- const e = c(je, this).pending;
638
- e && (this.is_pending = !0, A(he, this, ct(() => e(c(De, this)))), Wt(() => {
639
- var t = A(Ut, this, document.createDocumentFragment()), r = Ne();
640
- t.append(r), A(Ve, this, P(re, this, li).call(this, () => ct(() => c(zr, this).call(this, r)))), c(Ft, this) === 0 && (c(De, this).before(t), A(Ut, this, null), jr(c(he, this), () => {
636
+ function fl() {
637
+ const e = c(We, this).pending;
638
+ e && (this.is_pending = !0, A(he, this, ct(() => e(c(De, this)))), Vt(() => {
639
+ var t = A(Bt, this, document.createDocumentFragment()), r = Ne();
640
+ t.append(r), A(Ve, this, $(re, this, di).call(this, () => ct(() => c(Br, this).call(this, r)))), c(Ht, this) === 0 && (c(De, this).before(t), A(Bt, this, null), Yr(c(he, this), () => {
641
641
  A(he, this, null);
642
- }), P(re, this, xi).call(this, O));
642
+ }), $(re, this, Mi).call(this, O));
643
643
  }));
644
644
  }
645
- function cs() {
645
+ function ps() {
646
646
  try {
647
- if (this.is_pending = this.has_pending_snippet(), A(Ft, this, 0), A(ir, this, 0), A(Ve, this, ct(() => {
648
- c(zr, this).call(this, c(De, this));
649
- })), c(Ft, this) > 0) {
650
- var e = A(Ut, this, document.createDocumentFragment());
651
- xs(c(Ve, this), e);
652
- const t = c(je, this).pending;
647
+ if (this.is_pending = this.has_pending_snippet(), A(Ht, this, 0), A(ar, this, 0), A(Ve, this, ct(() => {
648
+ c(Br, this).call(this, c(De, this));
649
+ })), c(Ht, this) > 0) {
650
+ var e = A(Bt, this, document.createDocumentFragment());
651
+ Ms(c(Ve, this), e);
652
+ const t = c(We, this).pending;
653
653
  A(he, this, ct(() => t(c(De, this))));
654
- } else P(re, this, xi).call(this, O);
654
+ } else $(re, this, Mi).call(this, O);
655
655
  } catch (t) {
656
656
  this.error(t);
657
657
  }
658
658
  }
659
- function xi(e) {
660
- this.is_pending = !1, e.transfer_effects(c(si, this), c(ai, this));
659
+ function Mi(e) {
660
+ this.is_pending = !1, e.transfer_effects(c(ui, this), c(fi, this));
661
661
  }
662
- function li(e) {
663
- var t = x, r = R, n = j;
664
- Ye(c(Ee, this)), Ie(c(Ee, this)), fr(c(Ee, this).ctx);
662
+ function di(e) {
663
+ var t = x, r = R, n = W;
664
+ Ye(c(Ee, this)), Ie(c(Ee, this)), hr(c(Ee, this).ctx);
665
665
  try {
666
- return Gt.ensure(), e();
666
+ return qt.ensure(), e();
667
667
  } catch (i) {
668
- return Qo(i), null;
668
+ return rs(i), null;
669
669
  } finally {
670
- Ye(t), Ie(r), fr(n);
670
+ Ye(t), Ie(r), hr(n);
671
671
  }
672
672
  }
673
- function us(e, t) {
673
+ function hs(e, t) {
674
674
  if (!this.has_pending_snippet()) {
675
675
  if (this.parent) {
676
676
  var r;
677
- P(re, r = this.parent, us).call(r, e, t);
677
+ $(re, r = this.parent, hs).call(r, e, t);
678
678
  }
679
679
  return;
680
680
  }
681
- A(Ft, this, c(Ft, this) + e), c(Ft, this) === 0 && (P(re, this, xi).call(this, t), c(he, this) && jr(c(he, this), () => {
681
+ A(Ht, this, c(Ht, this) + e), c(Ht, this) === 0 && ($(re, this, Mi).call(this, t), c(he, this) && Yr(c(he, this), () => {
682
682
  A(he, this, null);
683
- }), c(Ut, this) && (c(De, this).before(c(Ut, this)), A(Ut, this, null)));
683
+ }), c(Bt, this) && (c(De, this).before(c(Bt, this)), A(Bt, this, null)));
684
684
  }
685
- function io(e) {
686
- c(Ve, this) && (fe(c(Ve, this)), A(Ve, this, null)), c(he, this) && (fe(c(he, this)), A(he, this, null)), c(Ce, this) && (fe(c(Ce, this)), A(Ce, this, null)), z && (Ae(c(oi, this)), ei(), Ae(Vo()));
687
- var t = c(je, this).onerror;
688
- let r = c(je, this).failed;
685
+ function lo(e) {
686
+ c(Ve, this) && (fe(c(Ve, this)), A(Ve, this, null)), c(he, this) && (fe(c(he, this)), A(he, this, null)), c(Ce, this) && (fe(c(Ce, this)), A(Ce, this, null)), z && (Ae(c(ci, this)), ii(), Ae(Xo()));
687
+ var t = c(We, this).onerror;
688
+ let r = c(We, this).failed;
689
689
  var n = !1, i = !1;
690
690
  const o = () => {
691
691
  if (n) {
692
- Ba();
692
+ Ya();
693
693
  return;
694
694
  }
695
- n = !0, i && Fa(), c(Ce, this) !== null && jr(c(Ce, this), () => {
695
+ n = !0, i && Ga(), c(Ce, this) !== null && Yr(c(Ce, this), () => {
696
696
  A(Ce, this, null);
697
- }), P(re, this, li).call(this, () => {
698
- P(re, this, cs).call(this);
697
+ }), $(re, this, di).call(this, () => {
698
+ $(re, this, ps).call(this);
699
699
  });
700
700
  }, s = (a) => {
701
701
  try {
702
702
  i = !0, t?.(a, o), i = !1;
703
703
  } catch (u) {
704
- wt(u, c(Ee, this) && c(Ee, this).parent);
704
+ Et(u, c(Ee, this) && c(Ee, this).parent);
705
705
  }
706
- r && A(Ce, this, P(re, this, li).call(this, () => {
706
+ r && A(Ce, this, $(re, this, di).call(this, () => {
707
707
  try {
708
708
  return ct(() => {
709
709
  var u = x;
710
710
  u.b = this, u.f |= 128, r(c(De, this), () => a, () => o);
711
711
  });
712
712
  } catch (u) {
713
- return wt(u, c(Ee, this).parent), null;
713
+ return Et(u, c(Ee, this).parent), null;
714
714
  }
715
715
  }));
716
716
  };
717
- Wt(() => {
717
+ Vt(() => {
718
718
  var a;
719
719
  try {
720
720
  a = this.transform_error(e);
721
721
  } catch (u) {
722
- wt(u, c(Ee, this) && c(Ee, this).parent);
722
+ Et(u, c(Ee, this) && c(Ee, this).parent);
723
723
  return;
724
724
  }
725
- a !== null && typeof a == "object" && typeof a.then == "function" ? a.then(s, (u) => wt(u, c(Ee, this) && c(Ee, this).parent)) : s(a);
725
+ a !== null && typeof a == "object" && typeof a.then == "function" ? a.then(s, (u) => Et(u, c(Ee, this) && c(Ee, this).parent)) : s(a);
726
726
  });
727
727
  }
728
- function al(e, t, r, n) {
729
- const i = Br() ? Tn : ds;
728
+ function dl(e, t, r, n) {
729
+ const i = Gr() ? Sn : _s;
730
730
  var o = e.filter((p) => !p.settled);
731
731
  if (r.length === 0 && o.length === 0) {
732
732
  n(t.map(i));
733
733
  return;
734
734
  }
735
- var s = x, a = ll(), u = o.length === 1 ? o[0].promise : o.length > 1 ? Promise.all(o.map((p) => p.promise)) : null;
735
+ var s = x, a = pl(), u = o.length === 1 ? o[0].promise : o.length > 1 ? Promise.all(o.map((p) => p.promise)) : null;
736
736
  function f(p) {
737
737
  a();
738
738
  try {
739
739
  n(p);
740
740
  } catch (v) {
741
- s.f & 16384 || wt(v, s);
741
+ s.f & 16384 || Et(v, s);
742
742
  }
743
- mn();
743
+ yn();
744
744
  }
745
745
  if (r.length === 0) {
746
746
  u.then(() => f(t.map(i)));
747
747
  return;
748
748
  }
749
- var d = fs();
749
+ var d = vs();
750
750
  function m() {
751
- Promise.all(r.map((p) => /* @__PURE__ */ cl(p))).then((p) => f([...t.map(i), ...p])).catch((p) => wt(p, s)).finally(() => d());
751
+ Promise.all(r.map((p) => /* @__PURE__ */ hl(p))).then((p) => f([...t.map(i), ...p])).catch((p) => Et(p, s)).finally(() => d());
752
752
  }
753
753
  u ? u.then(() => {
754
- a(), m(), mn();
754
+ a(), m(), yn();
755
755
  }) : m();
756
756
  }
757
- function ll() {
758
- var e = x, t = R, r = j, n = O;
757
+ function pl() {
758
+ var e = x, t = R, r = W, n = O;
759
759
  if (0) var i;
760
760
  return function(s = !0) {
761
- Ye(e), Ie(t), fr(r), s && !(e.f & 16384) && (n?.activate(), n?.apply());
761
+ Ye(e), Ie(t), hr(r), s && !(e.f & 16384) && (n?.activate(), n?.apply());
762
762
  };
763
763
  }
764
- function mn(e = !0) {
765
- Ye(null), Ie(null), fr(null), e && O?.deactivate();
764
+ function yn(e = !0) {
765
+ Ye(null), Ie(null), hr(null), e && O?.deactivate();
766
766
  }
767
- function fs() {
767
+ function vs() {
768
768
  var e = x, t = e.b, r = O, n = t.is_rendered();
769
769
  return t.update_pending_count(1, r), r.increment(n, e), (i = !1) => {
770
770
  t.update_pending_count(-1, r), r.decrement(n, e, i);
771
771
  };
772
772
  }
773
773
  // @__NO_SIDE_EFFECTS__
774
- function Tn(e) {
774
+ function Sn(e) {
775
775
  var t = 2 | ze;
776
- return x !== null && (x.f |= _r), {
777
- ctx: j,
776
+ return x !== null && (x.f |= br), {
777
+ ctx: W,
778
778
  deps: null,
779
779
  effects: null,
780
- equals: Yo,
780
+ equals: Jo,
781
781
  f: t,
782
782
  fn: e,
783
783
  reactions: null,
@@ -789,21 +789,21 @@ function Tn(e) {
789
789
  };
790
790
  }
791
791
  // @__NO_SIDE_EFFECTS__
792
- function cl(e, t, r) {
792
+ function hl(e, t, r) {
793
793
  let n = x;
794
- n === null && La();
795
- var i = void 0, o = Wr(K), s = !R, a = /* @__PURE__ */ new Map();
796
- return Al(() => {
797
- var u = x, f = Wo();
794
+ n === null && Pa();
795
+ var i = void 0, o = Vr(K), s = !R, a = /* @__PURE__ */ new Map();
796
+ return Rl(() => {
797
+ var u = x, f = Yo();
798
798
  i = f.promise;
799
799
  try {
800
- Promise.resolve(e()).then(f.resolve, f.reject).finally(mn);
800
+ Promise.resolve(e()).then(f.resolve, f.reject).finally(yn);
801
801
  } catch (v) {
802
- f.reject(v), mn();
802
+ f.reject(v), yn();
803
803
  }
804
804
  var d = O;
805
805
  if (s) {
806
- if (u.f & 32768) var m = fs();
806
+ if (u.f & 32768) var m = vs();
807
807
  if (n.b.is_rendered())
808
808
  a.get(d)?.reject(at), a.delete(d);
809
809
  else {
@@ -815,9 +815,9 @@ function cl(e, t, r) {
815
815
  const p = (v, _ = void 0) => {
816
816
  if (m && m(_ === at), !(_ === at || u.f & 16384)) {
817
817
  if (d.activate(), _)
818
- o.f |= hn, gn(o, _);
818
+ o.f |= mn, wn(o, _);
819
819
  else {
820
- o.f & 8388608 && (o.f ^= hn), gn(o, v);
820
+ o.f & 8388608 && (o.f ^= mn), wn(o, v);
821
821
  for (const [w, E] of a) {
822
822
  if (a.delete(w), w === d) break;
823
823
  E.reject(at);
@@ -827,7 +827,7 @@ function cl(e, t, r) {
827
827
  }
828
828
  };
829
829
  f.promise.then(p, (v) => p(null, v || "unknown"));
830
- }), El(() => {
830
+ }), xl(() => {
831
831
  for (const u of a.values()) u.reject(at);
832
832
  }), new Promise((u) => {
833
833
  function f(d) {
@@ -840,151 +840,151 @@ function cl(e, t, r) {
840
840
  });
841
841
  }
842
842
  // @__NO_SIDE_EFFECTS__
843
- function ul(e) {
844
- const t = /* @__PURE__ */ Tn(e);
845
- return lt || Os(t), t;
843
+ function vl(e) {
844
+ const t = /* @__PURE__ */ Sn(e);
845
+ return lt || Cs(t), t;
846
846
  }
847
847
  // @__NO_SIDE_EFFECTS__
848
- function ds(e) {
849
- const t = /* @__PURE__ */ Tn(e);
850
- return t.equals = qo, t;
848
+ function _s(e) {
849
+ const t = /* @__PURE__ */ Sn(e);
850
+ return t.equals = Qo, t;
851
851
  }
852
- function fl(e) {
852
+ function _l(e) {
853
853
  var t = e.effects;
854
854
  if (t !== null) {
855
855
  e.effects = null;
856
856
  for (var r = 0; r < t.length; r += 1) fe(t[r]);
857
857
  }
858
858
  }
859
- function Oi(e) {
859
+ function Ci(e) {
860
860
  var t, r = x, n = e.parent;
861
861
  if (!ut && n !== null && n.f & 24576)
862
- return Ha(), e.v;
862
+ return Va(), e.v;
863
863
  if (Ye(n), 0)
864
864
  try {
865
865
  } finally {
866
866
  }
867
867
  else try {
868
- e.f &= ~Fr, fl(e), t = Cs(e);
868
+ e.f &= ~jr, _l(e), t = Ns(e);
869
869
  } finally {
870
870
  Ye(r);
871
871
  }
872
872
  return t;
873
873
  }
874
- function ps(e) {
875
- var t = Oi(e);
876
- if (!e.equals(t) && (e.wv = Rs(), (!O?.is_fork || e.deps === null) && (O !== null ? O.capture(e, t, !0) : e.v = t, e.deps === null))) {
874
+ function ms(e) {
875
+ var t = Ci(e);
876
+ if (!e.equals(t) && (e.wv = Ps(), (!O?.is_fork || e.deps === null) && (O !== null ? O.capture(e, t, !0) : e.v = t, e.deps === null))) {
877
877
  G(e, Se);
878
878
  return;
879
879
  }
880
- ut || (oe !== null ? (Ri() || O?.is_fork) && oe.set(e, t) : Ei(e));
880
+ ut || (oe !== null ? (Pi() || O?.is_fork) && oe.set(e, t) : Ii(e));
881
881
  }
882
- function dl(e) {
882
+ function ml(e) {
883
883
  if (e.effects !== null)
884
- for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(at), t.teardown = Ta, t.ac = null, Ur(t, 0), Ci(t));
884
+ for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(at), t.teardown = Ia, t.ac = null, Hr(t, 0), Ni(t));
885
885
  }
886
- function hs(e) {
886
+ function gs(e) {
887
887
  if (e.effects !== null)
888
- for (const t of e.effects) t.teardown && vr(t);
888
+ for (const t of e.effects) t.teardown && gr(t);
889
889
  }
890
- var ci = /* @__PURE__ */ new Set(), Ht = /* @__PURE__ */ new Map();
891
- var vs = !1;
892
- function Wr(e, t) {
890
+ var pi = /* @__PURE__ */ new Set(), jt = /* @__PURE__ */ new Map();
891
+ var bs = !1;
892
+ function Vr(e, t) {
893
893
  var r = {
894
894
  f: 0,
895
895
  v: e,
896
896
  reactions: null,
897
- equals: Yo,
897
+ equals: Jo,
898
898
  rv: 0,
899
899
  wv: 0
900
900
  };
901
901
  return r;
902
902
  }
903
903
  // @__NO_SIDE_EFFECTS__
904
- function W(e, t) {
905
- const r = Wr(e, t);
906
- return Os(r), r;
904
+ function j(e, t) {
905
+ const r = Vr(e, t);
906
+ return Cs(r), r;
907
907
  }
908
908
  // @__NO_SIDE_EFFECTS__
909
- function pl(e, t = !1, r = !0) {
910
- const n = Wr(e);
911
- if (t || (n.equals = qo), Hr && r && j !== null && j.l !== null) {
909
+ function gl(e, t = !1, r = !0) {
910
+ const n = Vr(e);
911
+ if (t || (n.equals = Qo), Wr && r && W !== null && W.l !== null) {
912
912
  var i;
913
- ((i = j.l).s ?? (i.s = [])).push(n);
913
+ ((i = W.l).s ?? (i.s = [])).push(n);
914
914
  }
915
915
  return n;
916
916
  }
917
917
  function L(e, t, r = !1) {
918
- R !== null && (!$e || R.f & 131072) && Br() && R.f & 4325394 && (ke === null || !ur.call(ke, e)) && Ua();
919
- let n = r ? Tt(t) : t;
920
- return gn(e, n, vn);
918
+ R !== null && (!Pe || R.f & 131072) && Gr() && R.f & 4325394 && (ke === null || !pr.call(ke, e)) && Wa();
919
+ let n = r ? kt(t) : t;
920
+ return wn(e, n, gn);
921
921
  }
922
- function gn(e, t, r = null) {
922
+ function wn(e, t, r = null) {
923
923
  if (!e.equals(t)) {
924
- Ht.set(e, ut ? t : e.v);
925
- var n = Gt.ensure();
924
+ jt.set(e, ut ? t : e.v);
925
+ var n = qt.ensure();
926
926
  if (n.capture(e, t), e.f & 2) {
927
927
  const i = e;
928
- e.f & 2048 && Oi(i), oe === null && Ei(i);
928
+ e.f & 2048 && Ci(i), oe === null && Ii(i);
929
929
  }
930
- e.wv = Rs(), _s(e, ze, r), Br() && x !== null && x.f & 1024 && !(x.f & 96) && (Te === null ? Rl([e]) : Te.push(e)), !n.is_fork && ci.size > 0 && !vs && hl();
930
+ e.wv = Ps(), ys(e, ze, r), Gr() && x !== null && x.f & 1024 && !(x.f & 96) && (Te === null ? Dl([e]) : Te.push(e)), !n.is_fork && pi.size > 0 && !bs && bl();
931
931
  }
932
932
  return t;
933
933
  }
934
- function hl() {
935
- vs = !1;
936
- for (const e of ci)
937
- e.f & 1024 && G(e, jt), Gr(e) && vr(e);
938
- ci.clear();
934
+ function bl() {
935
+ bs = !1;
936
+ for (const e of pi)
937
+ e.f & 1024 && G(e, Yt), qr(e) && gr(e);
938
+ pi.clear();
939
939
  }
940
- function Nr(e) {
940
+ function Fr(e) {
941
941
  L(e, e.v + 1);
942
942
  }
943
- function _s(e, t, r) {
943
+ function ys(e, t, r) {
944
944
  var n = e.reactions;
945
945
  if (n !== null)
946
- for (var i = Br(), o = n.length, s = 0; s < o; s++) {
946
+ for (var i = Gr(), o = n.length, s = 0; s < o; s++) {
947
947
  var a = n[s], u = a.f;
948
948
  if (!(!i && a === x)) {
949
949
  var f = (u & ze) === 0;
950
950
  if (f && G(a, t), u & 2) {
951
951
  var d = a;
952
- oe?.delete(d), u & 65536 || (u & 512 && (a.f |= Fr), _s(d, jt, r));
952
+ oe?.delete(d), u & 65536 || (u & 512 && (a.f |= jr), ys(d, Yt, r));
953
953
  } else if (f) {
954
954
  var m = a;
955
- u & 16 && We !== null && We.add(m), r !== null ? r.push(m) : Ii(m);
955
+ u & 16 && je !== null && je.add(m), r !== null ? r.push(m) : Ri(m);
956
956
  }
957
957
  }
958
958
  }
959
959
  }
960
- var vl = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
961
- function Tt(e) {
962
- if (typeof e != "object" || e === null || $r in e) return e;
963
- const t = Bo(e);
964
- if (t !== ya && t !== wa) return e;
965
- var r = /* @__PURE__ */ new Map(), n = _a(e), i = /* @__PURE__ */ W(0), o = null, s = Bt, a = (m) => {
966
- if (Bt === s) return m();
967
- var p = R, v = Bt;
968
- Ie(null), co(s);
960
+ var yl = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
961
+ function kt(e) {
962
+ if (typeof e != "object" || e === null || zr in e) return e;
963
+ const t = Vo(e);
964
+ if (t !== Sa && t !== Aa) return e;
965
+ var r = /* @__PURE__ */ new Map(), n = wa(e), i = /* @__PURE__ */ j(0), o = null, s = Wt, a = (m) => {
966
+ if (Wt === s) return m();
967
+ var p = R, v = Wt;
968
+ Ie(null), ho(s);
969
969
  var _ = m();
970
- return Ie(p), co(v), _;
970
+ return Ie(p), ho(v), _;
971
971
  };
972
- n && r.set("length", /* @__PURE__ */ W(e.length, o));
972
+ n && r.set("length", /* @__PURE__ */ j(e.length, o));
973
973
  var u = "";
974
974
  let f = !1;
975
975
  function d(m) {
976
976
  if (!f) {
977
- f = !0, u = m, eo(i, `${u} version`);
978
- for (const [p, v] of r) eo(v, _l(u, p));
977
+ f = !0, u = m, io(i, `${u} version`);
978
+ for (const [p, v] of r) io(v, wl(u, p));
979
979
  f = !1;
980
980
  }
981
981
  }
982
982
  return new Proxy(e, {
983
983
  defineProperty(m, p, v) {
984
- (!("value" in v) || v.configurable === !1 || v.enumerable === !1 || v.writable === !1) && Na();
984
+ (!("value" in v) || v.configurable === !1 || v.enumerable === !1 || v.writable === !1) && Ha();
985
985
  var _ = r.get(p);
986
986
  return _ === void 0 ? a(() => {
987
- var w = /* @__PURE__ */ W(v.value, o);
987
+ var w = /* @__PURE__ */ j(v.value, o);
988
988
  return r.set(p, w), w;
989
989
  }) : L(_, v.value, !0), !0;
990
990
  },
@@ -992,18 +992,18 @@ function Tt(e) {
992
992
  var v = r.get(p);
993
993
  if (v === void 0) {
994
994
  if (p in m) {
995
- const _ = a(() => /* @__PURE__ */ W(K, o));
996
- r.set(p, _), Nr(i);
995
+ const _ = a(() => /* @__PURE__ */ j(K, o));
996
+ r.set(p, _), Fr(i);
997
997
  }
998
998
  } else
999
- L(v, K), Nr(i);
999
+ L(v, K), Fr(i);
1000
1000
  return !0;
1001
1001
  },
1002
1002
  get(m, p, v) {
1003
- if (p === $r) return e;
1003
+ if (p === zr) return e;
1004
1004
  var _ = r.get(p), w = p in m;
1005
- if (_ === void 0 && (!w || Nt(m, p)?.writable) && (_ = a(() => {
1006
- var N = /* @__PURE__ */ W(Tt(w ? m[p] : K), o);
1005
+ if (_ === void 0 && (!w || Ut(m, p)?.writable) && (_ = a(() => {
1006
+ var N = /* @__PURE__ */ j(kt(w ? m[p] : K), o);
1007
1007
  return N;
1008
1008
  }), r.set(p, _)), _ !== void 0) {
1009
1009
  var E = g(_);
@@ -1028,10 +1028,10 @@ function Tt(e) {
1028
1028
  return v;
1029
1029
  },
1030
1030
  has(m, p) {
1031
- if (p === $r) return !0;
1031
+ if (p === zr) return !0;
1032
1032
  var v = r.get(p), _ = v !== void 0 && v.v !== K || Reflect.has(m, p);
1033
- return (v !== void 0 || x !== null && (!_ || Nt(m, p)?.writable)) && (v === void 0 && (v = a(() => {
1034
- var w = /* @__PURE__ */ W(_ ? Tt(m[p]) : K, o);
1033
+ return (v !== void 0 || x !== null && (!_ || Ut(m, p)?.writable)) && (v === void 0 && (v = a(() => {
1034
+ var w = /* @__PURE__ */ j(_ ? kt(m[p]) : K, o);
1035
1035
  return w;
1036
1036
  }), r.set(p, v)), g(v) === K) ? !1 : _;
1037
1037
  },
@@ -1039,14 +1039,14 @@ function Tt(e) {
1039
1039
  var w = r.get(p), E = p in m;
1040
1040
  if (n && p === "length") for (var N = v; N < w.v; N += 1) {
1041
1041
  var ne = r.get(N + "");
1042
- ne !== void 0 ? L(ne, K) : N in m && (ne = a(() => /* @__PURE__ */ W(K, o)), r.set(N + "", ne));
1042
+ ne !== void 0 ? L(ne, K) : N in m && (ne = a(() => /* @__PURE__ */ j(K, o)), r.set(N + "", ne));
1043
1043
  }
1044
1044
  if (w === void 0)
1045
- (!E || Nt(m, p)?.writable) && (w = a(() => /* @__PURE__ */ W(void 0, o)), L(w, Tt(v)), r.set(p, w));
1045
+ (!E || Ut(m, p)?.writable) && (w = a(() => /* @__PURE__ */ j(void 0, o)), L(w, kt(v)), r.set(p, w));
1046
1046
  else {
1047
1047
  E = w.v !== K;
1048
- var $ = a(() => Tt(v));
1049
- L(w, $);
1048
+ var P = a(() => kt(v));
1049
+ L(w, P);
1050
1050
  }
1051
1051
  var M = Reflect.getOwnPropertyDescriptor(m, p);
1052
1052
  if (M?.set && M.set.call(_, v), !E) {
@@ -1054,7 +1054,7 @@ function Tt(e) {
1054
1054
  var le = r.get("length"), Je = Number(p);
1055
1055
  Number.isInteger(Je) && Je >= le.v && L(le, Je + 1);
1056
1056
  }
1057
- Nr(i);
1057
+ Fr(i);
1058
1058
  }
1059
1059
  return !0;
1060
1060
  },
@@ -1068,45 +1068,45 @@ function Tt(e) {
1068
1068
  return p;
1069
1069
  },
1070
1070
  setPrototypeOf() {
1071
- za();
1071
+ ja();
1072
1072
  }
1073
1073
  });
1074
1074
  }
1075
- function _l(e, t) {
1076
- return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : vl.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
1075
+ function wl(e, t) {
1076
+ return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : yl.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
1077
1077
  }
1078
- var oo, ml, ms, gs, bs;
1079
- function ui() {
1080
- if (oo === void 0) {
1081
- oo = window, ml = document, ms = /Firefox/.test(navigator.userAgent);
1078
+ var co, Tl, ws, Ts, Es;
1079
+ function hi() {
1080
+ if (co === void 0) {
1081
+ co = window, Tl = document, ws = /Firefox/.test(navigator.userAgent);
1082
1082
  var e = Element.prototype, t = Node.prototype, r = Text.prototype;
1083
- gs = Nt(t, "firstChild").get, bs = Nt(t, "nextSibling").get, Ji(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), Ji(r) && (r.__t = void 0);
1083
+ Ts = Ut(t, "firstChild").get, Es = Ut(t, "nextSibling").get, to(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), to(r) && (r.__t = void 0);
1084
1084
  }
1085
1085
  }
1086
1086
  function Ne(e = "") {
1087
1087
  return document.createTextNode(e);
1088
1088
  }
1089
1089
  // @__NO_SIDE_EFFECTS__
1090
- function hr(e) {
1091
- return gs.call(e);
1090
+ function mr(e) {
1091
+ return Ts.call(e);
1092
1092
  }
1093
1093
  // @__NO_SIDE_EFFECTS__
1094
1094
  function ft(e) {
1095
- return bs.call(e);
1095
+ return Es.call(e);
1096
1096
  }
1097
1097
  function te(e, t) {
1098
- if (!z) return /* @__PURE__ */ hr(e);
1099
- var r = /* @__PURE__ */ hr(D);
1098
+ if (!z) return /* @__PURE__ */ mr(e);
1099
+ var r = /* @__PURE__ */ mr(D);
1100
1100
  if (r === null) r = D.appendChild(Ne());
1101
1101
  else if (t && r.nodeType !== 3) {
1102
1102
  var n = Ne();
1103
1103
  return r?.before(n), Ae(n), n;
1104
1104
  }
1105
- return t && En(r), Ae(r), r;
1105
+ return t && An(r), Ae(r), r;
1106
1106
  }
1107
- function so(e, t = !1) {
1107
+ function uo(e, t = !1) {
1108
1108
  if (!z) {
1109
- var r = /* @__PURE__ */ hr(e);
1109
+ var r = /* @__PURE__ */ mr(e);
1110
1110
  return r instanceof Comment && r.data === "" ? /* @__PURE__ */ ft(r) : r;
1111
1111
  }
1112
1112
  if (t) {
@@ -1114,7 +1114,7 @@ function so(e, t = !1) {
1114
1114
  var n = Ne();
1115
1115
  return D?.before(n), Ae(n), n;
1116
1116
  }
1117
- En(D);
1117
+ An(D);
1118
1118
  }
1119
1119
  return D;
1120
1120
  }
@@ -1128,35 +1128,35 @@ function ye(e, t = 1, r = !1) {
1128
1128
  var o = Ne();
1129
1129
  return n === null ? i?.after(o) : n.before(o), Ae(o), o;
1130
1130
  }
1131
- En(n);
1131
+ An(n);
1132
1132
  }
1133
1133
  return Ae(n), n;
1134
1134
  }
1135
- function gl(e) {
1135
+ function El(e) {
1136
1136
  e.textContent = "";
1137
1137
  }
1138
- function bl() {
1139
- return !lt || We !== null ? !1 : (x.f & yi) !== 0;
1138
+ function kl() {
1139
+ return !lt || je !== null ? !1 : (x.f & ki) !== 0;
1140
1140
  }
1141
- function Li(e, t, r) {
1141
+ function $i(e, t, r) {
1142
1142
  let n = r ? { is: r } : void 0;
1143
1143
  return document.createElementNS(t ?? "http://www.w3.org/1999/xhtml", e, n);
1144
1144
  }
1145
- function En(e) {
1145
+ function An(e) {
1146
1146
  if (e.nodeValue.length < 65536) return;
1147
1147
  let t = e.nextSibling;
1148
1148
  for (; t !== null && t.nodeType === 3; )
1149
1149
  t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
1150
1150
  }
1151
- var ao = !1;
1152
- function yl() {
1153
- ao || (ao = !0, document.addEventListener("reset", (e) => {
1151
+ var fo = !1;
1152
+ function Sl() {
1153
+ fo || (fo = !0, document.addEventListener("reset", (e) => {
1154
1154
  Promise.resolve().then(() => {
1155
1155
  if (!e.defaultPrevented) for (const t of e.target.elements) t.__on_r?.();
1156
1156
  });
1157
1157
  }, { capture: !0 }));
1158
1158
  }
1159
- function ys(e) {
1159
+ function ks(e) {
1160
1160
  var t = R, r = x;
1161
1161
  Ie(null), Ye(null);
1162
1162
  try {
@@ -1165,18 +1165,18 @@ function ys(e) {
1165
1165
  Ie(t), Ye(r);
1166
1166
  }
1167
1167
  }
1168
- function wl(e) {
1169
- x === null && (R === null && Ca(e), Ma()), ut && Ra(e);
1168
+ function Al(e) {
1169
+ x === null && (R === null && za(e), Na()), ut && Da(e);
1170
1170
  }
1171
- function Tl(e, t) {
1171
+ function Il(e, t) {
1172
1172
  var r = t.last;
1173
1173
  r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
1174
1174
  }
1175
1175
  function qe(e, t) {
1176
1176
  var r = x;
1177
- r !== null && r.f & 8192 && (e |= bi);
1177
+ r !== null && r.f & 8192 && (e |= Ei);
1178
1178
  var n = {
1179
- ctx: j,
1179
+ ctx: W,
1180
1180
  deps: null,
1181
1181
  nodes: null,
1182
1182
  f: e | ze | 512,
@@ -1193,100 +1193,100 @@ function qe(e, t) {
1193
1193
  };
1194
1194
  O?.register_created_effect(n);
1195
1195
  var i = n;
1196
- if (e & 4) dr !== null ? dr.push(n) : Gt.ensure().schedule(n);
1196
+ if (e & 4) vr !== null ? vr.push(n) : qt.ensure().schedule(n);
1197
1197
  else if (t !== null) {
1198
1198
  try {
1199
- vr(n);
1199
+ gr(n);
1200
1200
  } catch (s) {
1201
1201
  throw fe(n), s;
1202
1202
  }
1203
- i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && !(i.f & 524288) && (i = i.first, e & 16 && e & 65536 && i !== null && (i.f |= wi));
1203
+ i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && !(i.f & 524288) && (i = i.first, e & 16 && e & 65536 && i !== null && (i.f |= Si));
1204
1204
  }
1205
- if (i !== null && (i.parent = r, r !== null && Tl(i, r), R !== null && R.f & 2 && !(e & 64))) {
1205
+ if (i !== null && (i.parent = r, r !== null && Il(i, r), R !== null && R.f & 2 && !(e & 64))) {
1206
1206
  var o = R;
1207
1207
  (o.effects ?? (o.effects = [])).push(i);
1208
1208
  }
1209
1209
  return n;
1210
1210
  }
1211
- function Ri() {
1212
- return R !== null && !$e;
1211
+ function Pi() {
1212
+ return R !== null && !Pe;
1213
1213
  }
1214
- function El(e) {
1214
+ function xl(e) {
1215
1215
  const t = qe(8, null);
1216
1216
  return G(t, Se), t.teardown = e, t;
1217
1217
  }
1218
- function an(e) {
1219
- wl("$effect");
1218
+ function un(e) {
1219
+ Al("$effect");
1220
1220
  var t = x.f;
1221
1221
  if (!R && t & 32 && !(t & 32768)) {
1222
- var r = j;
1222
+ var r = W;
1223
1223
  (r.e ?? (r.e = [])).push(e);
1224
- } else return ws(e);
1224
+ } else return Ss(e);
1225
1225
  }
1226
- function ws(e) {
1227
- return qe(4 | Sa, e);
1226
+ function Ss(e) {
1227
+ return qe(4 | La, e);
1228
1228
  }
1229
- function kl(e) {
1230
- Gt.ensure();
1231
- const t = qe(64 | _r, e);
1229
+ function Ol(e) {
1230
+ qt.ensure();
1231
+ const t = qe(64 | br, e);
1232
1232
  return () => {
1233
1233
  fe(t);
1234
1234
  };
1235
1235
  }
1236
- function Sl(e) {
1237
- Gt.ensure();
1238
- const t = qe(64 | _r, e);
1236
+ function Ll(e) {
1237
+ qt.ensure();
1238
+ const t = qe(64 | br, e);
1239
1239
  return (r = {}) => new Promise((n) => {
1240
- r.outro ? jr(t, () => {
1240
+ r.outro ? Yr(t, () => {
1241
1241
  fe(t), n(void 0);
1242
1242
  }) : (fe(t), n(void 0));
1243
1243
  });
1244
1244
  }
1245
- function Ts(e) {
1245
+ function As(e) {
1246
1246
  return qe(4, e);
1247
1247
  }
1248
- function Al(e) {
1249
- return qe(Aa | _r, e);
1248
+ function Rl(e) {
1249
+ return qe(Ra | br, e);
1250
1250
  }
1251
- function Mi(e, t = 0) {
1251
+ function Di(e, t = 0) {
1252
1252
  return qe(8 | t, e);
1253
1253
  }
1254
- function Sr(e, t = [], r = [], n = []) {
1255
- al(n, t, r, (i) => {
1254
+ function xr(e, t = [], r = [], n = []) {
1255
+ dl(n, t, r, (i) => {
1256
1256
  qe(8, () => e(...i.map(g)));
1257
1257
  });
1258
1258
  }
1259
- function Es(e, t = 0) {
1259
+ function Is(e, t = 0) {
1260
1260
  var r = qe(16 | t, e);
1261
1261
  return r;
1262
1262
  }
1263
1263
  function ct(e) {
1264
- return qe(32 | _r, e);
1264
+ return qe(32 | br, e);
1265
1265
  }
1266
- function ks(e) {
1266
+ function xs(e) {
1267
1267
  var t = e.teardown;
1268
1268
  if (t !== null) {
1269
1269
  const r = ut, n = R;
1270
- lo(!0), Ie(null);
1270
+ po(!0), Ie(null);
1271
1271
  try {
1272
1272
  t.call(null);
1273
1273
  } finally {
1274
- lo(r), Ie(n);
1274
+ po(r), Ie(n);
1275
1275
  }
1276
1276
  }
1277
1277
  }
1278
- function Ci(e, t = !1) {
1278
+ function Ni(e, t = !1) {
1279
1279
  var r = e.first;
1280
1280
  for (e.first = e.last = null; r !== null; ) {
1281
1281
  const i = r.ac;
1282
- i !== null && ys(() => {
1282
+ i !== null && ks(() => {
1283
1283
  i.abort(at);
1284
1284
  });
1285
1285
  var n = r.next;
1286
1286
  r.f & 64 ? r.parent = null : fe(r, t), r = n;
1287
1287
  }
1288
1288
  }
1289
- function Il(e) {
1289
+ function Ml(e) {
1290
1290
  for (var t = e.first; t !== null; ) {
1291
1291
  var r = t.next;
1292
1292
  t.f & 32 || fe(t), t = r;
@@ -1294,26 +1294,26 @@ function Il(e) {
1294
1294
  }
1295
1295
  function fe(e, t = !0) {
1296
1296
  var r = !1;
1297
- (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (xl(e.nodes.start, e.nodes.end), r = !0), G(e, Qi), Ci(e, t && !r), Ur(e, 0);
1297
+ (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (Cl(e.nodes.start, e.nodes.end), r = !0), G(e, ro), Ni(e, t && !r), Hr(e, 0);
1298
1298
  var n = e.nodes && e.nodes.t;
1299
1299
  if (n !== null) for (const o of n) o.stop();
1300
- ks(e), e.f ^= Qi, e.f |= ka;
1300
+ xs(e), e.f ^= ro, e.f |= Oa;
1301
1301
  var i = e.parent;
1302
- i !== null && i.first !== null && Ss(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1302
+ i !== null && i.first !== null && Os(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1303
1303
  }
1304
- function xl(e, t) {
1304
+ function Cl(e, t) {
1305
1305
  for (; e !== null; ) {
1306
1306
  var r = e === t ? null : /* @__PURE__ */ ft(e);
1307
1307
  e.remove(), e = r;
1308
1308
  }
1309
1309
  }
1310
- function Ss(e) {
1310
+ function Os(e) {
1311
1311
  var t = e.parent, r = e.prev, n = e.next;
1312
1312
  r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
1313
1313
  }
1314
- function jr(e, t, r = !0) {
1314
+ function Yr(e, t, r = !0) {
1315
1315
  var n = [];
1316
- As(e, n, !0);
1316
+ Ls(e, n, !0);
1317
1317
  var i = () => {
1318
1318
  r && fe(e), t && t();
1319
1319
  }, o = n.length;
@@ -1322,9 +1322,9 @@ function jr(e, t, r = !0) {
1322
1322
  for (var a of n) a.out(s);
1323
1323
  } else i();
1324
1324
  }
1325
- function As(e, t, r) {
1325
+ function Ls(e, t, r) {
1326
1326
  if (!(e.f & 8192)) {
1327
- e.f ^= bi;
1327
+ e.f ^= Ei;
1328
1328
  var n = e.nodes && e.nodes.t;
1329
1329
  if (n !== null)
1330
1330
  for (const a of n) (a.is_global || r) && t.push(a);
@@ -1332,39 +1332,39 @@ function As(e, t, r) {
1332
1332
  var o = i.next;
1333
1333
  if (!(i.f & 64)) {
1334
1334
  var s = (i.f & 65536) !== 0 || (i.f & 32) !== 0 && (e.f & 16) !== 0;
1335
- As(i, t, s ? r : !1);
1335
+ Ls(i, t, s ? r : !1);
1336
1336
  }
1337
1337
  i = o;
1338
1338
  }
1339
1339
  }
1340
1340
  }
1341
- function Ol(e) {
1342
- Is(e, !0);
1341
+ function $l(e) {
1342
+ Rs(e, !0);
1343
1343
  }
1344
- function Is(e, t) {
1344
+ function Rs(e, t) {
1345
1345
  if (e.f & 8192) {
1346
- e.f ^= bi, e.f & 1024 || (G(e, ze), Gt.ensure().schedule(e));
1346
+ e.f ^= Ei, e.f & 1024 || (G(e, ze), qt.ensure().schedule(e));
1347
1347
  for (var r = e.first; r !== null; ) {
1348
1348
  var n = r.next, i = (r.f & 65536) !== 0 || (r.f & 32) !== 0;
1349
- Is(r, i ? t : !1), r = n;
1349
+ Rs(r, i ? t : !1), r = n;
1350
1350
  }
1351
1351
  var o = e.nodes && e.nodes.t;
1352
1352
  if (o !== null)
1353
1353
  for (const s of o) (s.is_global || t) && s.in();
1354
1354
  }
1355
1355
  }
1356
- function xs(e, t) {
1356
+ function Ms(e, t) {
1357
1357
  if (e.nodes)
1358
1358
  for (var r = e.nodes.start, n = e.nodes.end; r !== null; ) {
1359
1359
  var i = r === n ? null : /* @__PURE__ */ ft(r);
1360
1360
  t.append(r), r = i;
1361
1361
  }
1362
1362
  }
1363
- var Ll = null, ln = !1, ut = !1;
1364
- function lo(e) {
1363
+ var Pl = null, fn = !1, ut = !1;
1364
+ function po(e) {
1365
1365
  ut = e;
1366
1366
  }
1367
- var R = null, $e = !1;
1367
+ var R = null, Pe = !1;
1368
1368
  function Ie(e) {
1369
1369
  R = e;
1370
1370
  }
@@ -1373,181 +1373,181 @@ function Ye(e) {
1373
1373
  x = e;
1374
1374
  }
1375
1375
  var ke = null;
1376
- function Os(e) {
1376
+ function Cs(e) {
1377
1377
  R !== null && (!lt || R.f & 2) && (ke === null ? ke = [e] : ke.push(e));
1378
1378
  }
1379
1379
  var ue = null, pe = 0, Te = null;
1380
- function Rl(e) {
1380
+ function Dl(e) {
1381
1381
  Te = e;
1382
1382
  }
1383
- var Ls = 1, Dt = 0, Bt = Dt;
1384
- function co(e) {
1385
- Bt = e;
1383
+ var $s = 1, zt = 0, Wt = zt;
1384
+ function ho(e) {
1385
+ Wt = e;
1386
1386
  }
1387
- function Rs() {
1388
- return ++Ls;
1387
+ function Ps() {
1388
+ return ++$s;
1389
1389
  }
1390
- function Gr(e) {
1390
+ function qr(e) {
1391
1391
  var t = e.f;
1392
1392
  if (t & 2048) return !0;
1393
- if (t & 2 && (e.f &= ~Fr), t & 4096) {
1393
+ if (t & 2 && (e.f &= ~jr), t & 4096) {
1394
1394
  for (var r = e.deps, n = r.length, i = 0; i < n; i++) {
1395
1395
  var o = r[i];
1396
- if (Gr(o) && ps(o), o.wv > e.wv) return !0;
1396
+ if (qr(o) && ms(o), o.wv > e.wv) return !0;
1397
1397
  }
1398
1398
  t & 512 && oe === null && G(e, Se);
1399
1399
  }
1400
1400
  return !1;
1401
1401
  }
1402
- function Ms(e, t, r = !0) {
1402
+ function Ds(e, t, r = !0) {
1403
1403
  var n = e.reactions;
1404
- if (n !== null && !(!lt && ke !== null && ur.call(ke, e)))
1404
+ if (n !== null && !(!lt && ke !== null && pr.call(ke, e)))
1405
1405
  for (var i = 0; i < n.length; i++) {
1406
1406
  var o = n[i];
1407
- o.f & 2 ? Ms(o, t, !1) : t === o && (r ? G(o, ze) : o.f & 1024 && G(o, jt), Ii(o));
1407
+ o.f & 2 ? Ds(o, t, !1) : t === o && (r ? G(o, ze) : o.f & 1024 && G(o, Yt), Ri(o));
1408
1408
  }
1409
1409
  }
1410
- function Cs(e) {
1411
- var t = ue, r = pe, n = Te, i = R, o = ke, s = j, a = $e, u = Bt, f = e.f;
1412
- ue = null, pe = 0, Te = null, R = f & 96 ? null : e, ke = null, fr(e.ctx), $e = !1, Bt = ++Dt, e.ac !== null && (ys(() => {
1410
+ function Ns(e) {
1411
+ var t = ue, r = pe, n = Te, i = R, o = ke, s = W, a = Pe, u = Wt, f = e.f;
1412
+ ue = null, pe = 0, Te = null, R = f & 96 ? null : e, ke = null, hr(e.ctx), Pe = !1, Wt = ++zt, e.ac !== null && (ks(() => {
1413
1413
  e.ac.abort(at);
1414
1414
  }), e.ac = null);
1415
1415
  try {
1416
- e.f |= Zi;
1416
+ e.f |= no;
1417
1417
  var d = e.fn, m = d();
1418
- e.f |= yi;
1418
+ e.f |= ki;
1419
1419
  var p = e.deps, v = O?.is_fork;
1420
1420
  if (ue !== null) {
1421
1421
  var _;
1422
- if (v || Ur(e, pe), p !== null && pe > 0)
1422
+ if (v || Hr(e, pe), p !== null && pe > 0)
1423
1423
  for (p.length = pe + ue.length, _ = 0; _ < ue.length; _++) p[pe + _] = ue[_];
1424
1424
  else e.deps = p = ue;
1425
- if (Ri() && e.f & 512) for (_ = pe; _ < p.length; _++) {
1425
+ if (Pi() && e.f & 512) for (_ = pe; _ < p.length; _++) {
1426
1426
  var w;
1427
1427
  ((w = p[_]).reactions ?? (w.reactions = [])).push(e);
1428
1428
  }
1429
- } else !v && p !== null && pe < p.length && (Ur(e, pe), p.length = pe);
1430
- if (Br() && Te !== null && !$e && p !== null && !(e.f & 6146)) for (_ = 0; _ < Te.length; _++) Ms(Te[_], e);
1429
+ } else !v && p !== null && pe < p.length && (Hr(e, pe), p.length = pe);
1430
+ if (Gr() && Te !== null && !Pe && p !== null && !(e.f & 6146)) for (_ = 0; _ < Te.length; _++) Ds(Te[_], e);
1431
1431
  if (i !== null && i !== e) {
1432
- if (Dt++, i.deps !== null) for (let E = 0; E < r; E += 1) i.deps[E].rv = Dt;
1433
- if (t !== null) for (const E of t) E.rv = Dt;
1432
+ if (zt++, i.deps !== null) for (let E = 0; E < r; E += 1) i.deps[E].rv = zt;
1433
+ if (t !== null) for (const E of t) E.rv = zt;
1434
1434
  Te !== null && (n === null ? n = Te : n.push(...Te));
1435
1435
  }
1436
- return e.f & 8388608 && (e.f ^= hn), m;
1436
+ return e.f & 8388608 && (e.f ^= mn), m;
1437
1437
  } catch (E) {
1438
- return Qo(E);
1438
+ return rs(E);
1439
1439
  } finally {
1440
- e.f ^= Zi, ue = t, pe = r, Te = n, R = i, ke = o, fr(s), $e = a, Bt = u;
1440
+ e.f ^= no, ue = t, pe = r, Te = n, R = i, ke = o, hr(s), Pe = a, Wt = u;
1441
1441
  }
1442
1442
  }
1443
- function Ml(e, t) {
1443
+ function Nl(e, t) {
1444
1444
  let r = t.reactions;
1445
1445
  if (r !== null) {
1446
- var n = ma.call(r, e);
1446
+ var n = Ta.call(r, e);
1447
1447
  if (n !== -1) {
1448
1448
  var i = r.length - 1;
1449
1449
  i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
1450
1450
  }
1451
1451
  }
1452
- if (r === null && t.f & 2 && (ue === null || !ur.call(ue, t))) {
1452
+ if (r === null && t.f & 2 && (ue === null || !pr.call(ue, t))) {
1453
1453
  var o = t;
1454
- o.f & 512 && (o.f ^= 512, o.f &= ~Fr), o.v !== K && Ei(o), dl(o), Ur(o, 0);
1454
+ o.f & 512 && (o.f ^= 512, o.f &= ~jr), o.v !== K && Ii(o), ml(o), Hr(o, 0);
1455
1455
  }
1456
1456
  }
1457
- function Ur(e, t) {
1457
+ function Hr(e, t) {
1458
1458
  var r = e.deps;
1459
1459
  if (r !== null)
1460
- for (var n = t; n < r.length; n++) Ml(e, r[n]);
1460
+ for (var n = t; n < r.length; n++) Nl(e, r[n]);
1461
1461
  }
1462
- function vr(e) {
1462
+ function gr(e) {
1463
1463
  var t = e.f;
1464
1464
  if (!(t & 16384)) {
1465
1465
  G(e, Se);
1466
- var r = x, n = ln;
1467
- if (x = e, ln = !0, 0)
1466
+ var r = x, n = fn;
1467
+ if (x = e, fn = !0, 0)
1468
1468
  var i, o;
1469
1469
  try {
1470
- t & 16777232 ? Il(e) : Ci(e), ks(e);
1471
- var s = Cs(e);
1472
- if (e.teardown = typeof s == "function" ? s : null, e.wv = Ls, 0)
1470
+ t & 16777232 ? Ml(e) : Ni(e), xs(e);
1471
+ var s = Ns(e);
1472
+ if (e.teardown = typeof s == "function" ? s : null, e.wv = $s, 0)
1473
1473
  for (var a of e.deps) ;
1474
1474
  } finally {
1475
- ln = n, x = r;
1475
+ fn = n, x = r;
1476
1476
  }
1477
1477
  }
1478
1478
  }
1479
1479
  function g(e) {
1480
1480
  var t = (e.f & 2) !== 0;
1481
- if (Ll?.add(e), R !== null && !$e && !(x !== null && x.f & 16384) && (ke === null || !ur.call(ke, e))) {
1481
+ if (Pl?.add(e), R !== null && !Pe && !(x !== null && x.f & 16384) && (ke === null || !pr.call(ke, e))) {
1482
1482
  var r = R.deps;
1483
1483
  if (R.f & 2097152)
1484
- e.rv < Dt && (e.rv = Dt, ue === null && r !== null && r[pe] === e ? pe++ : ue === null ? ue = [e] : ue.push(e));
1484
+ e.rv < zt && (e.rv = zt, ue === null && r !== null && r[pe] === e ? pe++ : ue === null ? ue = [e] : ue.push(e));
1485
1485
  else {
1486
1486
  var n;
1487
1487
  ((n = R).deps ?? (n.deps = [])).push(e);
1488
1488
  var i = e.reactions;
1489
- i === null ? e.reactions = [R] : ur.call(i, R) || i.push(R);
1489
+ i === null ? e.reactions = [R] : pr.call(i, R) || i.push(R);
1490
1490
  }
1491
1491
  }
1492
1492
  if (0) {
1493
- if (!$e && reactivity_loss_tracker && !reactivity_loss_tracker.warned && !(reactivity_loss_tracker.effect.f & 2097152) && !reactivity_loss_tracker.effect_deps.has(e))
1493
+ if (!Pe && reactivity_loss_tracker && !reactivity_loss_tracker.warned && !(reactivity_loss_tracker.effect.f & 2097152) && !reactivity_loss_tracker.effect_deps.has(e))
1494
1494
  var o;
1495
- if (tracing_mode_flag && !$e && tracing_expressions !== null && R !== null && tracing_expressions.reaction === R && !e.trace) {
1495
+ if (tracing_mode_flag && !Pe && tracing_expressions !== null && R !== null && tracing_expressions.reaction === R && !e.trace) {
1496
1496
  if (o)
1497
1497
  var s, a;
1498
1498
  }
1499
1499
  }
1500
- if (ut && Ht.has(e)) return Ht.get(e);
1500
+ if (ut && jt.has(e)) return jt.get(e);
1501
1501
  if (t) {
1502
1502
  var u = e;
1503
1503
  if (ut) {
1504
1504
  var f = u.v;
1505
- return (!(u.f & 1024) && u.reactions !== null || $s(u)) && (f = Oi(u)), Ht.set(u, f), f;
1505
+ return (!(u.f & 1024) && u.reactions !== null || Us(u)) && (f = Ci(u)), jt.set(u, f), f;
1506
1506
  }
1507
- var d = (u.f & 512) === 0 && !$e && R !== null && (ln || (R.f & 512) !== 0), m = (u.f & yi) === 0;
1508
- Gr(u) && (d && (u.f |= 512), ps(u)), d && !m && (hs(u), Ps(u));
1507
+ var d = (u.f & 512) === 0 && !Pe && R !== null && (fn || (R.f & 512) !== 0), m = (u.f & ki) === 0;
1508
+ qr(u) && (d && (u.f |= 512), ms(u)), d && !m && (gs(u), zs(u));
1509
1509
  }
1510
1510
  if (oe?.has(e)) return oe.get(e);
1511
1511
  if (e.f & 8388608) throw e.v;
1512
1512
  return e.v;
1513
1513
  }
1514
- function Ps(e) {
1514
+ function zs(e) {
1515
1515
  if (e.f |= 512, e.deps !== null)
1516
1516
  for (const t of e.deps)
1517
- (t.reactions ?? (t.reactions = [])).push(e), t.f & 2 && !(t.f & 512) && (hs(t), Ps(t));
1517
+ (t.reactions ?? (t.reactions = [])).push(e), t.f & 2 && !(t.f & 512) && (gs(t), zs(t));
1518
1518
  }
1519
- function $s(e) {
1519
+ function Us(e) {
1520
1520
  if (e.v === K) return !0;
1521
1521
  if (e.deps === null) return !1;
1522
1522
  for (const t of e.deps)
1523
- if (Ht.has(t) || t.f & 2 && $s(t)) return !0;
1523
+ if (jt.has(t) || t.f & 2 && Us(t)) return !0;
1524
1524
  return !1;
1525
1525
  }
1526
- function kn(e) {
1527
- var t = $e;
1526
+ function In(e) {
1527
+ var t = Pe;
1528
1528
  try {
1529
- return $e = !0, e();
1529
+ return Pe = !0, e();
1530
1530
  } finally {
1531
- $e = t;
1531
+ Pe = t;
1532
1532
  }
1533
1533
  }
1534
- var ar = Symbol("events"), Ds = /* @__PURE__ */ new Set(), fi = /* @__PURE__ */ new Set();
1535
- function tr(e, t, r) {
1536
- (t[ar] ?? (t[ar] = {}))[e] = r;
1534
+ var ur = Symbol("events"), Fs = /* @__PURE__ */ new Set(), vi = /* @__PURE__ */ new Set();
1535
+ function ir(e, t, r) {
1536
+ (t[ur] ?? (t[ur] = {}))[e] = r;
1537
1537
  }
1538
- function Cl(e) {
1539
- for (var t = 0; t < e.length; t++) Ds.add(e[t]);
1540
- for (var r of fi) r(e);
1538
+ function zl(e) {
1539
+ for (var t = 0; t < e.length; t++) Fs.add(e[t]);
1540
+ for (var r of vi) r(e);
1541
1541
  }
1542
- var uo = null;
1543
- function fo(e) {
1542
+ var vo = null;
1543
+ function _o(e) {
1544
1544
  var t = this, r = t.ownerDocument, n = e.type, i = e.composedPath?.() || [], o = i[0] || e.target;
1545
- uo = e;
1546
- var s = 0, a = uo === e && e[ar];
1545
+ vo = e;
1546
+ var s = 0, a = vo === e && e[ur];
1547
1547
  if (a) {
1548
1548
  var u = i.indexOf(a);
1549
1549
  if (u !== -1 && (t === document || t === window)) {
1550
- e[ar] = t;
1550
+ e[ur] = t;
1551
1551
  return;
1552
1552
  }
1553
1553
  var f = i.indexOf(t);
@@ -1555,7 +1555,7 @@ function fo(e) {
1555
1555
  u <= f && (s = u);
1556
1556
  }
1557
1557
  if (o = i[s] || e.target, o !== t) {
1558
- pn(e, "currentTarget", {
1558
+ _n(e, "currentTarget", {
1559
1559
  configurable: !0,
1560
1560
  get() {
1561
1561
  return o || r;
@@ -1567,7 +1567,7 @@ function fo(e) {
1567
1567
  for (var p, v = []; o !== null; ) {
1568
1568
  var _ = o.assignedSlot || o.parentNode || o.host || null;
1569
1569
  try {
1570
- var w = o[ar]?.[n];
1570
+ var w = o[ur]?.[n];
1571
1571
  w != null && (!o.disabled || e.target === o) && w.call(o, e);
1572
1572
  } catch (E) {
1573
1573
  p ? v.push(E) : p = E;
@@ -1582,19 +1582,19 @@ function fo(e) {
1582
1582
  throw p;
1583
1583
  }
1584
1584
  } finally {
1585
- e[ar] = t, delete e.currentTarget, Ie(d), Ye(m);
1585
+ e[ur] = t, delete e.currentTarget, Ie(d), Ye(m);
1586
1586
  }
1587
1587
  }
1588
1588
  }
1589
- var Pl = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
1590
- function $l(e) {
1591
- return Pl?.createHTML(e) ?? e;
1589
+ var Ul = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
1590
+ function Fl(e) {
1591
+ return Ul?.createHTML(e) ?? e;
1592
1592
  }
1593
- function Dl(e) {
1594
- var t = Li("template");
1595
- return t.innerHTML = $l(e.replaceAll("<!>", "<!---->")), t.content;
1593
+ function Bl(e) {
1594
+ var t = $i("template");
1595
+ return t.innerHTML = Fl(e.replaceAll("<!>", "<!---->")), t.content;
1596
1596
  }
1597
- function Et(e, t) {
1597
+ function St(e, t) {
1598
1598
  var r = x;
1599
1599
  r.nodes === null && (r.nodes = {
1600
1600
  start: e,
@@ -1608,39 +1608,39 @@ function Ke(e, t) {
1608
1608
  var r = (t & 1) !== 0, n = (t & 2) !== 0, i, o = !e.startsWith("<!>");
1609
1609
  return () => {
1610
1610
  if (z)
1611
- return Et(D, null), D;
1612
- i === void 0 && (i = Dl(o ? e : "<!>" + e), r || (i = /* @__PURE__ */ hr(i)));
1613
- var s = n || ms ? document.importNode(i, !0) : i.cloneNode(!0);
1611
+ return St(D, null), D;
1612
+ i === void 0 && (i = Bl(o ? e : "<!>" + e), r || (i = /* @__PURE__ */ mr(i)));
1613
+ var s = n || ws ? document.importNode(i, !0) : i.cloneNode(!0);
1614
1614
  if (r) {
1615
- var a = /* @__PURE__ */ hr(s), u = s.lastChild;
1616
- Et(a, u);
1617
- } else Et(s, s);
1615
+ var a = /* @__PURE__ */ mr(s), u = s.lastChild;
1616
+ St(a, u);
1617
+ } else St(s, s);
1618
1618
  return s;
1619
1619
  };
1620
1620
  }
1621
- function Nl(e = "") {
1621
+ function Hl(e = "") {
1622
1622
  if (!z) {
1623
1623
  var t = Ne(e + "");
1624
- return Et(t, t), t;
1624
+ return St(t, t), t;
1625
1625
  }
1626
1626
  var r = D;
1627
- return r.nodeType !== 3 ? (r.before(r = Ne()), Ae(r)) : En(r), Et(r, r), r;
1627
+ return r.nodeType !== 3 ? (r.before(r = Ne()), Ae(r)) : An(r), St(r, r), r;
1628
1628
  }
1629
- function zl() {
1629
+ function jl() {
1630
1630
  if (z)
1631
- return Et(D, null), D;
1631
+ return St(D, null), D;
1632
1632
  var e = document.createDocumentFragment(), t = document.createComment(""), r = Ne();
1633
- return e.append(t, r), Et(t, r), e;
1633
+ return e.append(t, r), St(t, r), e;
1634
1634
  }
1635
1635
  function de(e, t) {
1636
1636
  if (z) {
1637
1637
  var r = x;
1638
- (!(r.f & 32768) || r.nodes.end === null) && (r.nodes.end = D), Ti();
1638
+ (!(r.f & 32768) || r.nodes.end === null) && (r.nodes.end = D), Ai();
1639
1639
  return;
1640
1640
  }
1641
1641
  e !== null && e.before(t);
1642
1642
  }
1643
- var Ul = [
1643
+ var Wl = [
1644
1644
  "allowfullscreen",
1645
1645
  "async",
1646
1646
  "autofocus",
@@ -1669,8 +1669,8 @@ var Ul = [
1669
1669
  "defer",
1670
1670
  "disablepictureinpicture",
1671
1671
  "disableremoteplayback"
1672
- ], Zu = [
1673
- ...Ul,
1672
+ ], ff = [
1673
+ ...Wl,
1674
1674
  "formNoValidate",
1675
1675
  "isMap",
1676
1676
  "noModule",
@@ -1685,17 +1685,17 @@ var Ul = [
1685
1685
  "allowFullscreen",
1686
1686
  "disablePictureInPicture",
1687
1687
  "disableRemotePlayback"
1688
- ], Fl = ["touchstart", "touchmove"];
1689
- function Hl(e) {
1690
- return Fl.includes(e);
1688
+ ], Gl = ["touchstart", "touchmove"];
1689
+ function Vl(e) {
1690
+ return Gl.includes(e);
1691
1691
  }
1692
- var Bl = [
1692
+ var Yl = [
1693
1693
  "$state",
1694
1694
  "$state.raw",
1695
1695
  "$derived",
1696
1696
  "$derived.by"
1697
- ], ef = [
1698
- ...Bl,
1697
+ ], df = [
1698
+ ...Yl,
1699
1699
  "$state.eager",
1700
1700
  "$state.snapshot",
1701
1701
  "$props",
@@ -1710,84 +1710,84 @@ var Bl = [
1710
1710
  "$inspect().with",
1711
1711
  "$inspect.trace",
1712
1712
  "$host"
1713
- ], po = !0;
1714
- function en(e, t) {
1713
+ ], mo = !0;
1714
+ function nn(e, t) {
1715
1715
  var r = t == null ? "" : typeof t == "object" ? `${t}` : t;
1716
1716
  r !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = r, e.nodeValue = `${r}`);
1717
1717
  }
1718
- function Ns(e, t) {
1719
- return zs(e, t);
1718
+ function Bs(e, t) {
1719
+ return Hs(e, t);
1720
1720
  }
1721
- function Wl(e, t) {
1722
- ui(), t.intro = t.intro ?? !1;
1721
+ function ql(e, t) {
1722
+ hi(), t.intro = t.intro ?? !1;
1723
1723
  const r = t.target, n = z, i = D;
1724
1724
  try {
1725
- for (var o = /* @__PURE__ */ hr(r); o && (o.nodeType !== 8 || o.data !== "["); ) o = /* @__PURE__ */ ft(o);
1726
- if (!o) throw cr;
1727
- sr(!0), Ae(o);
1728
- const s = zs(e, {
1725
+ for (var o = /* @__PURE__ */ mr(r); o && (o.nodeType !== 8 || o.data !== "["); ) o = /* @__PURE__ */ ft(o);
1726
+ if (!o) throw dr;
1727
+ cr(!0), Ae(o);
1728
+ const s = Hs(e, {
1729
1729
  ...t,
1730
1730
  anchor: o
1731
1731
  });
1732
- return sr(!1), s;
1732
+ return cr(!1), s;
1733
1733
  } catch (s) {
1734
1734
  if (s instanceof Error && s.message.split(`
1735
1735
  `).some((a) => a.startsWith("https://svelte.dev/e/"))) throw s;
1736
- return s !== cr && console.warn("Failed to hydrate: ", s), t.recover === !1 && $a(), ui(), gl(r), sr(!1), Ns(e, t);
1736
+ return s !== dr && console.warn("Failed to hydrate: ", s), t.recover === !1 && Fa(), hi(), El(r), cr(!1), Bs(e, t);
1737
1737
  } finally {
1738
- sr(n), Ae(i);
1738
+ cr(n), Ae(i);
1739
1739
  }
1740
1740
  }
1741
- var tn = /* @__PURE__ */ new Map();
1742
- function zs(e, { target: t, anchor: r, props: n = {}, events: i, context: o, intro: s = !0, transformError: a }) {
1743
- ui();
1744
- var u = void 0, f = Sl(() => {
1741
+ var on = /* @__PURE__ */ new Map();
1742
+ function Hs(e, { target: t, anchor: r, props: n = {}, events: i, context: o, intro: s = !0, transformError: a }) {
1743
+ hi();
1744
+ var u = void 0, f = Ll(() => {
1745
1745
  var d = r ?? t.appendChild(Ne());
1746
- rl(d, { pending: () => {
1746
+ al(d, { pending: () => {
1747
1747
  } }, (v) => {
1748
- Ko({});
1749
- var _ = j;
1750
- if (o && (_.c = o), i && (n.$$events = i), z && Et(v, null), po = s, u = e(v, n) || {}, po = !0, z && (x.nodes.end = D, D === null || D.nodeType !== 8 || D.data !== "]"))
1751
- throw wn(), cr;
1752
- Xo();
1748
+ Zo({});
1749
+ var _ = W;
1750
+ if (o && (_.c = o), i && (n.$$events = i), z && St(v, null), mo = s, u = e(v, n) || {}, mo = !0, z && (x.nodes.end = D, D === null || D.nodeType !== 8 || D.data !== "]"))
1751
+ throw kn(), dr;
1752
+ es();
1753
1753
  }, a);
1754
1754
  var m = /* @__PURE__ */ new Set(), p = (v) => {
1755
1755
  for (var _ = 0; _ < v.length; _++) {
1756
1756
  var w = v[_];
1757
1757
  if (!m.has(w)) {
1758
1758
  m.add(w);
1759
- var E = Hl(w);
1760
- for (const $ of [t, document]) {
1761
- var N = tn.get($);
1762
- N === void 0 && (N = /* @__PURE__ */ new Map(), tn.set($, N));
1759
+ var E = Vl(w);
1760
+ for (const P of [t, document]) {
1761
+ var N = on.get(P);
1762
+ N === void 0 && (N = /* @__PURE__ */ new Map(), on.set(P, N));
1763
1763
  var ne = N.get(w);
1764
- ne === void 0 ? ($.addEventListener(w, fo, { passive: E }), N.set(w, 1)) : N.set(w, ne + 1);
1764
+ ne === void 0 ? (P.addEventListener(w, _o, { passive: E }), N.set(w, 1)) : N.set(w, ne + 1);
1765
1765
  }
1766
1766
  }
1767
1767
  }
1768
1768
  };
1769
- return p(ga(Ds)), fi.add(p), () => {
1769
+ return p(Ea(Fs)), vi.add(p), () => {
1770
1770
  for (var v of m) for (const E of [t, document]) {
1771
- var _ = tn.get(E), w = _.get(v);
1772
- --w == 0 ? (E.removeEventListener(v, fo), _.delete(v), _.size === 0 && tn.delete(E)) : _.set(v, w);
1771
+ var _ = on.get(E), w = _.get(v);
1772
+ --w == 0 ? (E.removeEventListener(v, _o), _.delete(v), _.size === 0 && on.delete(E)) : _.set(v, w);
1773
1773
  }
1774
- fi.delete(p), d !== r && d.parentNode?.removeChild(d);
1774
+ vi.delete(p), d !== r && d.parentNode?.removeChild(d);
1775
1775
  };
1776
1776
  });
1777
- return di.set(u, f), u;
1777
+ return _i.set(u, f), u;
1778
1778
  }
1779
- var di = /* @__PURE__ */ new WeakMap();
1780
- function jl(e, t) {
1781
- const r = di.get(e);
1782
- return r ? (di.delete(e), r(t)) : Promise.resolve();
1779
+ var _i = /* @__PURE__ */ new WeakMap();
1780
+ function Kl(e, t) {
1781
+ const r = _i.get(e);
1782
+ return r ? (_i.delete(e), r(t)) : Promise.resolve();
1783
1783
  }
1784
- var st = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakMap(), Ar = /* @__PURE__ */ new WeakMap(), Fn = /* @__PURE__ */ new WeakMap(), Hn = /* @__PURE__ */ new WeakMap(), ho = /* @__PURE__ */ new WeakMap(), Gl = class {
1784
+ var st = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakMap(), Or = /* @__PURE__ */ new WeakMap(), jn = /* @__PURE__ */ new WeakMap(), Wn = /* @__PURE__ */ new WeakMap(), go = /* @__PURE__ */ new WeakMap(), Xl = class {
1785
1785
  constructor(e, t = !0) {
1786
- b(this, "anchor", void 0), S(this, st, /* @__PURE__ */ new Map()), S(this, gt, /* @__PURE__ */ new Map()), S(this, Re, /* @__PURE__ */ new Map()), S(this, Ar, /* @__PURE__ */ new Set()), S(this, Fn, !0), S(this, Hn, (r) => {
1786
+ b(this, "anchor", void 0), S(this, st, /* @__PURE__ */ new Map()), S(this, gt, /* @__PURE__ */ new Map()), S(this, Re, /* @__PURE__ */ new Map()), S(this, Or, /* @__PURE__ */ new Set()), S(this, jn, !0), S(this, Wn, (r) => {
1787
1787
  if (c(st, this).has(r)) {
1788
1788
  var n = c(st, this).get(r), i = c(gt, this).get(n);
1789
1789
  if (i)
1790
- Ol(i), c(Ar, this).delete(n);
1790
+ $l(i), c(Or, this).delete(n);
1791
1791
  else {
1792
1792
  var o = c(Re, this).get(n);
1793
1793
  o && (c(gt, this).set(n, o.effect), c(Re, this).delete(n), o.fragment.lastChild.remove(), this.anchor.before(o.fragment), i = o.effect);
@@ -1798,28 +1798,28 @@ var st = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), Re =
1798
1798
  u && (fe(u.effect), c(Re, this).delete(a));
1799
1799
  }
1800
1800
  for (const [s, a] of c(gt, this)) {
1801
- if (s === n || c(Ar, this).has(s)) continue;
1801
+ if (s === n || c(Or, this).has(s)) continue;
1802
1802
  const u = () => {
1803
1803
  if (Array.from(c(st, this).values()).includes(s)) {
1804
1804
  var f = document.createDocumentFragment();
1805
- xs(a, f), f.append(Ne()), c(Re, this).set(s, {
1805
+ Ms(a, f), f.append(Ne()), c(Re, this).set(s, {
1806
1806
  effect: a,
1807
1807
  fragment: f
1808
1808
  });
1809
1809
  } else fe(a);
1810
- c(Ar, this).delete(s), c(gt, this).delete(s);
1810
+ c(Or, this).delete(s), c(gt, this).delete(s);
1811
1811
  };
1812
- c(Fn, this) || !i ? (c(Ar, this).add(s), jr(a, u, !1)) : u();
1812
+ c(jn, this) || !i ? (c(Or, this).add(s), Yr(a, u, !1)) : u();
1813
1813
  }
1814
1814
  }
1815
- }), S(this, ho, (r) => {
1815
+ }), S(this, go, (r) => {
1816
1816
  c(st, this).delete(r);
1817
1817
  const n = Array.from(c(st, this).values());
1818
1818
  for (const [i, o] of c(Re, this)) n.includes(i) || (fe(o.effect), c(Re, this).delete(i));
1819
- }), this.anchor = e, A(Fn, this, t);
1819
+ }), this.anchor = e, A(jn, this, t);
1820
1820
  }
1821
1821
  ensure(e, t) {
1822
- var r = O, n = bl();
1822
+ var r = O, n = kl();
1823
1823
  if (t && !c(gt, this).has(e) && !c(Re, this).has(e)) if (n) {
1824
1824
  var i = document.createDocumentFragment(), o = Ne();
1825
1825
  i.append(o), c(Re, this).set(e, {
@@ -1830,18 +1830,18 @@ var st = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), Re =
1830
1830
  if (c(st, this).set(r, e), n) {
1831
1831
  for (const [s, a] of c(gt, this)) s === e ? r.unskip_effect(a) : r.skip_effect(a);
1832
1832
  for (const [s, a] of c(Re, this)) s === e ? r.unskip_effect(a.effect) : r.skip_effect(a.effect);
1833
- r.oncommit(c(Hn, this)), r.ondiscard(c(ho, this));
1833
+ r.oncommit(c(Wn, this)), r.ondiscard(c(go, this));
1834
1834
  } else
1835
- z && (this.anchor = D), c(Hn, this).call(this, r);
1835
+ z && (this.anchor = D), c(Wn, this).call(this, r);
1836
1836
  }
1837
1837
  };
1838
- function Vl(e) {
1839
- j === null && Oa("onMount"), Hr && j.l !== null ? Yl(j).m.push(e) : an(() => {
1840
- const t = kn(e);
1838
+ function Jl(e) {
1839
+ W === null && $a("onMount"), Wr && W.l !== null ? Ql(W).m.push(e) : un(() => {
1840
+ const t = In(e);
1841
1841
  if (typeof t == "function") return t;
1842
1842
  });
1843
1843
  }
1844
- function Yl(e) {
1844
+ function Ql(e) {
1845
1845
  var t = e.l;
1846
1846
  return t.u ?? (t.u = {
1847
1847
  a: [],
@@ -1849,52 +1849,52 @@ function Yl(e) {
1849
1849
  m: []
1850
1850
  });
1851
1851
  }
1852
- function rr(e, t, r = !1) {
1852
+ function or(e, t, r = !1) {
1853
1853
  var n;
1854
- z && (n = D, Ti());
1855
- var i = new Gl(e), o = r ? wi : 0;
1854
+ z && (n = D, Ai());
1855
+ var i = new Xl(e), o = r ? Si : 0;
1856
1856
  function s(a, u) {
1857
1857
  if (z) {
1858
- var f = Wa(n);
1858
+ var f = qa(n);
1859
1859
  if (a !== parseInt(f.substring(1))) {
1860
- var d = Vo();
1861
- Ae(d), i.anchor = d, sr(!1), i.ensure(a, u), sr(!0);
1860
+ var d = Xo();
1861
+ Ae(d), i.anchor = d, cr(!1), i.ensure(a, u), cr(!0);
1862
1862
  return;
1863
1863
  }
1864
1864
  }
1865
1865
  i.ensure(a, u);
1866
1866
  }
1867
- Es(() => {
1867
+ Is(() => {
1868
1868
  var a = !1;
1869
1869
  t((u, f = 0) => {
1870
1870
  a = !0, s(f, u);
1871
1871
  }), a || s(-1, null);
1872
1872
  }, o);
1873
1873
  }
1874
- function ql(e, t) {
1875
- Ts(() => {
1874
+ function Zl(e, t) {
1875
+ As(() => {
1876
1876
  var r = e.getRootNode(), n = r.host ? r : r.head ?? r.ownerDocument.head;
1877
1877
  if (!n.querySelector("#" + t.hash)) {
1878
- const i = Li("style");
1878
+ const i = $i("style");
1879
1879
  i.id = t.hash, i.textContent = t.code, n.appendChild(i);
1880
1880
  }
1881
1881
  });
1882
1882
  }
1883
- var vo = [...`
1883
+ var bo = [...`
1884
1884
  \r\f \v\uFEFF`];
1885
- function Kl(e, t, r) {
1885
+ function ec(e, t, r) {
1886
1886
  var n = e == null ? "" : "" + e;
1887
1887
  if (t && (n = n ? n + " " + t : t), r) {
1888
1888
  for (var i of Object.keys(r)) if (r[i]) n = n ? n + " " + i : i;
1889
1889
  else if (n.length)
1890
1890
  for (var o = i.length, s = 0; (s = n.indexOf(i, s)) >= 0; ) {
1891
1891
  var a = s + o;
1892
- (s === 0 || vo.includes(n[s - 1])) && (a === n.length || vo.includes(n[a])) ? n = (s === 0 ? "" : n.substring(0, s)) + n.substring(a + 1) : s = a;
1892
+ (s === 0 || bo.includes(n[s - 1])) && (a === n.length || bo.includes(n[a])) ? n = (s === 0 ? "" : n.substring(0, s)) + n.substring(a + 1) : s = a;
1893
1893
  }
1894
1894
  }
1895
1895
  return n === "" ? null : n;
1896
1896
  }
1897
- function _o(e, t = !1) {
1897
+ function yo(e, t = !1) {
1898
1898
  var r = t ? " !important;" : ";", n = "";
1899
1899
  for (var i of Object.keys(e)) {
1900
1900
  var o = e[i];
@@ -1902,16 +1902,16 @@ function _o(e, t = !1) {
1902
1902
  }
1903
1903
  return n;
1904
1904
  }
1905
- function Bn(e) {
1905
+ function Gn(e) {
1906
1906
  return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
1907
1907
  }
1908
- function Xl(e, t) {
1908
+ function tc(e, t) {
1909
1909
  if (t) {
1910
1910
  var r = "", n, i;
1911
1911
  if (Array.isArray(t) ? (n = t[0], i = t[1]) : n = t, e) {
1912
1912
  e = String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim();
1913
1913
  var o = !1, s = 0, a = !1, u = [];
1914
- n && u.push(...Object.keys(n).map(Bn)), i && u.push(...Object.keys(i).map(Bn));
1914
+ n && u.push(...Object.keys(n).map(Gn)), i && u.push(...Object.keys(i).map(Gn));
1915
1915
  var f = 0, d = -1;
1916
1916
  const w = e.length;
1917
1917
  for (var m = 0; m < w; m++) {
@@ -1920,7 +1920,7 @@ function Xl(e, t) {
1920
1920
  if (p === ":" && d === -1) d = m;
1921
1921
  else if (p === ";" || m === w - 1) {
1922
1922
  if (d !== -1) {
1923
- var v = Bn(e.substring(f, d).trim());
1923
+ var v = Gn(e.substring(f, d).trim());
1924
1924
  if (!u.includes(v)) {
1925
1925
  p !== ";" && m++;
1926
1926
  var _ = e.substring(f, m).trim();
@@ -1932,14 +1932,14 @@ function Xl(e, t) {
1932
1932
  }
1933
1933
  }
1934
1934
  }
1935
- return n && (r += _o(n)), i && (r += _o(i, !0)), r = r.trim(), r === "" ? null : r;
1935
+ return n && (r += yo(n)), i && (r += yo(i, !0)), r = r.trim(), r === "" ? null : r;
1936
1936
  }
1937
1937
  return e == null ? null : String(e);
1938
1938
  }
1939
- function Jl(e, t, r, n, i, o) {
1939
+ function rc(e, t, r, n, i, o) {
1940
1940
  var s = e.__className;
1941
1941
  if (z || s !== r || s === void 0) {
1942
- var a = Kl(r, n, o);
1942
+ var a = ec(r, n, o);
1943
1943
  (!z || a !== e.getAttribute("class")) && (a == null ? e.removeAttribute("class") : t ? e.className = a : e.setAttribute("class", a)), e.__className = r;
1944
1944
  } else if (o && i !== o) for (var u in o) {
1945
1945
  var f = !!o[u];
@@ -1947,106 +1947,106 @@ function Jl(e, t, r, n, i, o) {
1947
1947
  }
1948
1948
  return o;
1949
1949
  }
1950
- function Wn(e, t = {}, r, n) {
1950
+ function Vn(e, t = {}, r, n) {
1951
1951
  for (var i in r) {
1952
1952
  var o = r[i];
1953
1953
  t[i] !== o && (r[i] == null ? e.style.removeProperty(i) : e.style.setProperty(i, o, n));
1954
1954
  }
1955
1955
  }
1956
- function Ql(e, t, r, n) {
1956
+ function nc(e, t, r, n) {
1957
1957
  var i = e.__style;
1958
1958
  if (z || i !== t) {
1959
- var o = Xl(t, n);
1959
+ var o = tc(t, n);
1960
1960
  (!z || o !== e.getAttribute("style")) && (o == null ? e.removeAttribute("style") : e.style.cssText = o), e.__style = t;
1961
- } else n && (Array.isArray(n) ? (Wn(e, r?.[0], n[0]), Wn(e, r?.[1], n[1], "important")) : Wn(e, r, n));
1961
+ } else n && (Array.isArray(n) ? (Vn(e, r?.[0], n[0]), Vn(e, r?.[1], n[1], "important")) : Vn(e, r, n));
1962
1962
  return n;
1963
1963
  }
1964
- var Zl = Symbol("is custom element"), ec = Symbol("is html"), tc = Go ? "link" : "LINK", rc = Go ? "progress" : "PROGRESS";
1965
- function nc(e) {
1964
+ var ic = Symbol("is custom element"), oc = Symbol("is html"), sc = Ko ? "link" : "LINK", ac = Ko ? "progress" : "PROGRESS";
1965
+ function lc(e) {
1966
1966
  if (z) {
1967
1967
  var t = !1, r = () => {
1968
1968
  if (!t) {
1969
1969
  if (t = !0, e.hasAttribute("value")) {
1970
1970
  var n = e.value;
1971
- pi(e, "value", null), e.value = n;
1971
+ mi(e, "value", null), e.value = n;
1972
1972
  }
1973
1973
  if (e.hasAttribute("checked")) {
1974
1974
  var i = e.checked;
1975
- pi(e, "checked", null), e.checked = i;
1975
+ mi(e, "checked", null), e.checked = i;
1976
1976
  }
1977
1977
  }
1978
1978
  };
1979
- e.__on_r = r, Wt(r), yl();
1979
+ e.__on_r = r, Vt(r), Sl();
1980
1980
  }
1981
1981
  }
1982
- function ic(e, t) {
1983
- var r = Us(e);
1984
- r.value === (r.value = t ?? void 0) || e.value === t && (t !== 0 || e.nodeName !== rc) || (e.value = t ?? "");
1982
+ function cc(e, t) {
1983
+ var r = js(e);
1984
+ r.value === (r.value = t ?? void 0) || e.value === t && (t !== 0 || e.nodeName !== ac) || (e.value = t ?? "");
1985
1985
  }
1986
- function pi(e, t, r, n) {
1987
- var i = Us(e);
1988
- if (z && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === tc)) {
1986
+ function mi(e, t, r, n) {
1987
+ var i = js(e);
1988
+ if (z && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === sc)) {
1989
1989
  n || void 0;
1990
1990
  return;
1991
1991
  }
1992
- i[t] !== (i[t] = r) && (t === "loading" && (e[Ia] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && oc(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
1992
+ i[t] !== (i[t] = r) && (t === "loading" && (e[Ma] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && uc(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
1993
1993
  }
1994
- function Us(e) {
1994
+ function js(e) {
1995
1995
  return e.__attributes ?? (e.__attributes = {
1996
- [Zl]: e.nodeName.includes("-"),
1997
- [ec]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
1996
+ [ic]: e.nodeName.includes("-"),
1997
+ [oc]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
1998
1998
  });
1999
1999
  }
2000
- var mo = /* @__PURE__ */ new Map();
2001
- function oc(e) {
2002
- var t = e.getAttribute("is") || e.nodeName, r = mo.get(t);
2000
+ var wo = /* @__PURE__ */ new Map();
2001
+ function uc(e) {
2002
+ var t = e.getAttribute("is") || e.nodeName, r = wo.get(t);
2003
2003
  if (r) return r;
2004
- mo.set(t, r = []);
2004
+ wo.set(t, r = []);
2005
2005
  for (var n, i = e, o = Element.prototype; o !== i; ) {
2006
- n = ba(i);
2006
+ n = ka(i);
2007
2007
  for (var s in n) n[s].set && r.push(s);
2008
- i = Bo(i);
2008
+ i = Vo(i);
2009
2009
  }
2010
2010
  return r;
2011
2011
  }
2012
- var Fs, or = /* @__PURE__ */ new WeakMap(), bn = /* @__PURE__ */ new WeakMap(), jn = /* @__PURE__ */ new WeakMap(), go = /* @__PURE__ */ new WeakSet(), Hs = class {
2012
+ var Ws, lr = /* @__PURE__ */ new WeakMap(), Tn = /* @__PURE__ */ new WeakMap(), Yn = /* @__PURE__ */ new WeakMap(), To = /* @__PURE__ */ new WeakSet(), Gs = class {
2013
2013
  constructor(e) {
2014
- ki(this, go), S(this, or, /* @__PURE__ */ new WeakMap()), S(this, bn, void 0), S(this, jn, void 0), A(jn, this, e);
2014
+ xi(this, To), S(this, lr, /* @__PURE__ */ new WeakMap()), S(this, Tn, void 0), S(this, Yn, void 0), A(Yn, this, e);
2015
2015
  }
2016
2016
  observe(e, t) {
2017
- var r = c(or, this).get(e) || /* @__PURE__ */ new Set();
2018
- return r.add(t), c(or, this).set(e, r), P(go, this, sc).call(this).observe(e, c(jn, this)), () => {
2019
- var n = c(or, this).get(e);
2020
- n.delete(t), n.size === 0 && (c(or, this).delete(e), c(bn, this).unobserve(e));
2017
+ var r = c(lr, this).get(e) || /* @__PURE__ */ new Set();
2018
+ return r.add(t), c(lr, this).set(e, r), $(To, this, fc).call(this).observe(e, c(Yn, this)), () => {
2019
+ var n = c(lr, this).get(e);
2020
+ n.delete(t), n.size === 0 && (c(lr, this).delete(e), c(Tn, this).unobserve(e));
2021
2021
  };
2022
2022
  }
2023
2023
  };
2024
- Fs = Hs;
2025
- function sc() {
2026
- return c(bn, this) ?? A(bn, this, new ResizeObserver((e) => {
2024
+ Ws = Gs;
2025
+ function fc() {
2026
+ return c(Tn, this) ?? A(Tn, this, new ResizeObserver((e) => {
2027
2027
  for (var t of e) {
2028
- Fs.entries.set(t.target, t);
2029
- for (var r of c(or, this).get(t.target) || []) r(t);
2028
+ Ws.entries.set(t.target, t);
2029
+ for (var r of c(lr, this).get(t.target) || []) r(t);
2030
2030
  }
2031
2031
  }));
2032
2032
  }
2033
- b(Hs, "entries", /* @__PURE__ */ new WeakMap());
2034
- function bo(e, t) {
2035
- return e === t || e?.[$r] === t;
2033
+ b(Gs, "entries", /* @__PURE__ */ new WeakMap());
2034
+ function Eo(e, t) {
2035
+ return e === t || e?.[zr] === t;
2036
2036
  }
2037
- function yo(e = {}, t, r, n) {
2038
- var i = j.r, o = x;
2039
- return Ts(() => {
2037
+ function ko(e = {}, t, r, n) {
2038
+ var i = W.r, o = x;
2039
+ return As(() => {
2040
2040
  var s, a;
2041
- return Mi(() => {
2042
- s = a, a = n?.() || [], kn(() => {
2043
- e !== r(...a) && (t(e, ...a), s && bo(r(...s), e) && t(null, ...s));
2041
+ return Di(() => {
2042
+ s = a, a = n?.() || [], In(() => {
2043
+ e !== r(...a) && (t(e, ...a), s && Eo(r(...s), e) && t(null, ...s));
2044
2044
  });
2045
2045
  }), () => {
2046
2046
  let u = o;
2047
2047
  for (; u !== i && u.parent !== null && u.parent.f & 33554432; ) u = u.parent;
2048
2048
  const f = () => {
2049
- a && bo(r(...a), e) && t(null, ...a);
2049
+ a && Eo(r(...a), e) && t(null, ...a);
2050
2050
  }, d = u.teardown;
2051
2051
  u.teardown = () => {
2052
2052
  f(), d?.();
@@ -2054,48 +2054,48 @@ function yo(e = {}, t, r, n) {
2054
2054
  };
2055
2055
  }), e;
2056
2056
  }
2057
- function rn(e, t, r, n) {
2058
- var i = !Hr || (r & 2) !== 0, o = (r & 8) !== 0, s = (r & 16) !== 0, a = n, u = !0, f = () => (u && (u = !1, a = s ? kn(n) : n), a);
2057
+ function sn(e, t, r, n) {
2058
+ var i = !Wr || (r & 2) !== 0, o = (r & 8) !== 0, s = (r & 16) !== 0, a = n, u = !0, f = () => (u && (u = !1, a = s ? In(n) : n), a);
2059
2059
  let d;
2060
2060
  if (o) {
2061
- var m = $r in e || jo in e;
2062
- d = Nt(e, t)?.set ?? (m && t in e ? ($) => e[t] = $ : void 0);
2061
+ var m = zr in e || qo in e;
2062
+ d = Ut(e, t)?.set ?? (m && t in e ? (P) => e[t] = P : void 0);
2063
2063
  }
2064
2064
  var p, v = !1;
2065
- o ? [p, v] = Ka(() => e[t]) : p = e[t], p === void 0 && n !== void 0 && (p = f(), d && (i && Da(t), d(p)));
2065
+ o ? [p, v] = el(() => e[t]) : p = e[t], p === void 0 && n !== void 0 && (p = f(), d && (i && Ba(t), d(p)));
2066
2066
  var _;
2067
2067
  if (i ? _ = () => {
2068
- var $ = e[t];
2069
- return $ === void 0 ? f() : (u = !0, $);
2068
+ var P = e[t];
2069
+ return P === void 0 ? f() : (u = !0, P);
2070
2070
  } : _ = () => {
2071
- var $ = e[t];
2072
- return $ !== void 0 && (a = void 0), $ === void 0 ? a : $;
2071
+ var P = e[t];
2072
+ return P !== void 0 && (a = void 0), P === void 0 ? a : P;
2073
2073
  }, i && !(r & 4)) return _;
2074
2074
  if (d) {
2075
2075
  var w = e.$$legacy;
2076
- return function($, M) {
2077
- return arguments.length > 0 ? ((!i || !M || w || v) && d(M ? _() : $), $) : _();
2076
+ return function(P, M) {
2077
+ return arguments.length > 0 ? ((!i || !M || w || v) && d(M ? _() : P), P) : _();
2078
2078
  };
2079
2079
  }
2080
- var E = !1, N = (r & 1 ? Tn : ds)(() => (E = !1, _()));
2080
+ var E = !1, N = (r & 1 ? Sn : _s)(() => (E = !1, _()));
2081
2081
  o && g(N);
2082
2082
  var ne = x;
2083
- return function($, M) {
2083
+ return function(P, M) {
2084
2084
  if (arguments.length > 0) {
2085
- const le = M ? g(N) : i && o ? Tt($) : $;
2086
- return L(N, le), E = !0, a !== void 0 && (a = le), $;
2085
+ const le = M ? g(N) : i && o ? kt(P) : P;
2086
+ return L(N, le), E = !0, a !== void 0 && (a = le), P;
2087
2087
  }
2088
2088
  return ut && E || ne.f & 16384 ? N.v : g(N);
2089
2089
  };
2090
2090
  }
2091
- function ac(e) {
2092
- return new lc(e);
2091
+ function dc(e) {
2092
+ return new pc(e);
2093
2093
  }
2094
- var Ct = /* @__PURE__ */ new WeakMap(), He = /* @__PURE__ */ new WeakMap(), lc = class {
2094
+ var Pt = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakMap(), pc = class {
2095
2095
  constructor(e) {
2096
- S(this, Ct, void 0), S(this, He, void 0);
2096
+ S(this, Pt, void 0), S(this, Be, void 0);
2097
2097
  var t = /* @__PURE__ */ new Map(), r = (i, o) => {
2098
- var s = /* @__PURE__ */ pl(o, !1, !1);
2098
+ var s = /* @__PURE__ */ gl(o, !1, !1);
2099
2099
  return t.set(i, s), s;
2100
2100
  };
2101
2101
  const n = new Proxy({
@@ -2106,13 +2106,13 @@ var Ct = /* @__PURE__ */ new WeakMap(), He = /* @__PURE__ */ new WeakMap(), lc =
2106
2106
  return g(t.get(o) ?? r(o, Reflect.get(i, o)));
2107
2107
  },
2108
2108
  has(i, o) {
2109
- return o === jo ? !0 : (g(t.get(o) ?? r(o, Reflect.get(i, o))), Reflect.has(i, o));
2109
+ return o === qo ? !0 : (g(t.get(o) ?? r(o, Reflect.get(i, o))), Reflect.has(i, o));
2110
2110
  },
2111
2111
  set(i, o, s) {
2112
2112
  return L(t.get(o) ?? r(o, s), s), Reflect.set(i, o, s);
2113
2113
  }
2114
2114
  });
2115
- A(He, this, (e.hydrate ? Wl : Ns)(e.component, {
2115
+ A(Be, this, (e.hydrate ? ql : Bs)(e.component, {
2116
2116
  target: e.target,
2117
2117
  anchor: e.anchor,
2118
2118
  props: n,
@@ -2120,38 +2120,38 @@ var Ct = /* @__PURE__ */ new WeakMap(), He = /* @__PURE__ */ new WeakMap(), lc =
2120
2120
  intro: e.intro ?? !1,
2121
2121
  recover: e.recover,
2122
2122
  transformError: e.transformError
2123
- })), !lt && (!e?.props?.$$host || e.sync === !1) && Cr(), A(Ct, this, n.$$events);
2124
- for (const i of Object.keys(c(He, this)))
2125
- i === "$set" || i === "$destroy" || i === "$on" || pn(this, i, {
2123
+ })), !lt && (!e?.props?.$$host || e.sync === !1) && Dr(), A(Pt, this, n.$$events);
2124
+ for (const i of Object.keys(c(Be, this)))
2125
+ i === "$set" || i === "$destroy" || i === "$on" || _n(this, i, {
2126
2126
  get() {
2127
- return c(He, this)[i];
2127
+ return c(Be, this)[i];
2128
2128
  },
2129
2129
  set(o) {
2130
- c(He, this)[i] = o;
2130
+ c(Be, this)[i] = o;
2131
2131
  },
2132
2132
  enumerable: !0
2133
2133
  });
2134
- c(He, this).$set = (i) => {
2134
+ c(Be, this).$set = (i) => {
2135
2135
  Object.assign(n, i);
2136
- }, c(He, this).$destroy = () => {
2137
- jl(c(He, this));
2136
+ }, c(Be, this).$destroy = () => {
2137
+ Kl(c(Be, this));
2138
2138
  };
2139
2139
  }
2140
2140
  $set(e) {
2141
- c(He, this).$set(e);
2141
+ c(Be, this).$set(e);
2142
2142
  }
2143
2143
  $on(e, t) {
2144
- c(Ct, this)[e] = c(Ct, this)[e] || [];
2144
+ c(Pt, this)[e] = c(Pt, this)[e] || [];
2145
2145
  const r = (...n) => t.call(this, ...n);
2146
- return c(Ct, this)[e].push(r), () => {
2147
- c(Ct, this)[e] = c(Ct, this)[e].filter((n) => n !== r);
2146
+ return c(Pt, this)[e].push(r), () => {
2147
+ c(Pt, this)[e] = c(Pt, this)[e].filter((n) => n !== r);
2148
2148
  };
2149
2149
  }
2150
2150
  $destroy() {
2151
- c(He, this).$destroy();
2151
+ c(Be, this).$destroy();
2152
2152
  }
2153
- }, Bs;
2154
- typeof HTMLElement == "function" && (Bs = class extends HTMLElement {
2153
+ }, Vs;
2154
+ typeof HTMLElement == "function" && (Vs = class extends HTMLElement {
2155
2155
  constructor(e, t, r) {
2156
2156
  super(), b(this, "$$ctor", void 0), b(this, "$$s", void 0), b(this, "$$c", void 0), b(this, "$$cn", !1), b(this, "$$d", {}), b(this, "$$r", !1), b(this, "$$p_d", {}), b(this, "$$l", {}), b(this, "$$l_u", /* @__PURE__ */ new Map()), b(this, "$$me", void 0), b(this, "$$shadowRoot", null), this.$$ctor = e, this.$$s = t, r && (this.$$shadowRoot = this.attachShadow(r));
2157
2157
  }
@@ -2172,19 +2172,19 @@ typeof HTMLElement == "function" && (Bs = class extends HTMLElement {
2172
2172
  if (this.$$cn = !0, !this.$$c) {
2173
2173
  let e = function(n) {
2174
2174
  return (i) => {
2175
- const o = Li("slot");
2175
+ const o = $i("slot");
2176
2176
  n !== "default" && (o.name = n), de(i, o);
2177
2177
  };
2178
2178
  };
2179
2179
  if (await Promise.resolve(), !this.$$cn || this.$$c) return;
2180
- const t = {}, r = cc(this);
2180
+ const t = {}, r = hc(this);
2181
2181
  for (const n of this.$$s) n in r && (n === "default" && !this.$$d.children ? (this.$$d.children = e(n), t.default = !0) : t[n] = e(n));
2182
2182
  for (const n of this.attributes) {
2183
2183
  const i = this.$$g_p(n.name);
2184
- i in this.$$d || (this.$$d[i] = cn(i, n.value, this.$$p_d, "toProp"));
2184
+ i in this.$$d || (this.$$d[i] = dn(i, n.value, this.$$p_d, "toProp"));
2185
2185
  }
2186
2186
  for (const n in this.$$p_d) !(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
2187
- this.$$c = ac({
2187
+ this.$$c = dc({
2188
2188
  component: this.$$ctor,
2189
2189
  target: this.$$shadowRoot || this,
2190
2190
  props: {
@@ -2192,13 +2192,13 @@ typeof HTMLElement == "function" && (Bs = class extends HTMLElement {
2192
2192
  $$slots: t,
2193
2193
  $$host: this
2194
2194
  }
2195
- }), this.$$me = kl(() => {
2196
- Mi(() => {
2195
+ }), this.$$me = Ol(() => {
2196
+ Di(() => {
2197
2197
  this.$$r = !0;
2198
- for (const n of dn(this.$$c)) {
2198
+ for (const n of vn(this.$$c)) {
2199
2199
  if (!this.$$p_d[n]?.reflect) continue;
2200
2200
  this.$$d[n] = this.$$c[n];
2201
- const i = cn(n, this.$$d[n], this.$$p_d, "toAttribute");
2201
+ const i = dn(n, this.$$d[n], this.$$p_d, "toAttribute");
2202
2202
  i == null ? this.removeAttribute(this.$$p_d[n].attribute || n) : this.setAttribute(this.$$p_d[n].attribute || n, i);
2203
2203
  }
2204
2204
  this.$$r = !1;
@@ -2212,7 +2212,7 @@ typeof HTMLElement == "function" && (Bs = class extends HTMLElement {
2212
2212
  }
2213
2213
  }
2214
2214
  attributeChangedCallback(e, t, r) {
2215
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = cn(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2215
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = dn(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2216
2216
  }
2217
2217
  disconnectedCallback() {
2218
2218
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -2220,10 +2220,10 @@ typeof HTMLElement == "function" && (Bs = class extends HTMLElement {
2220
2220
  });
2221
2221
  }
2222
2222
  $$g_p(e) {
2223
- return dn(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
2223
+ return vn(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
2224
2224
  }
2225
2225
  });
2226
- function cn(e, t, r, n) {
2226
+ function dn(e, t, r, n) {
2227
2227
  const i = r[e]?.type;
2228
2228
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e]) return t;
2229
2229
  if (n === "toAttribute") switch (i) {
@@ -2249,68 +2249,137 @@ function cn(e, t, r, n) {
2249
2249
  return t;
2250
2250
  }
2251
2251
  }
2252
- function cc(e) {
2252
+ function hc(e) {
2253
2253
  const t = {};
2254
2254
  return e.childNodes.forEach((r) => {
2255
2255
  t[r.slot || "default"] = !0;
2256
2256
  }), t;
2257
2257
  }
2258
- function uc(e, t, r, n, i, o) {
2259
- let s = class extends Bs {
2258
+ function vc(e, t, r, n, i, o) {
2259
+ let s = class extends Vs {
2260
2260
  constructor() {
2261
2261
  super(e, r, i), this.$$p_d = t;
2262
2262
  }
2263
2263
  static get observedAttributes() {
2264
- return dn(t).map((a) => (t[a].attribute || a).toLowerCase());
2264
+ return vn(t).map((a) => (t[a].attribute || a).toLowerCase());
2265
2265
  }
2266
2266
  };
2267
- return dn(t).forEach((a) => {
2268
- pn(s.prototype, a, {
2267
+ return vn(t).forEach((a) => {
2268
+ _n(s.prototype, a, {
2269
2269
  get() {
2270
2270
  return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
2271
2271
  },
2272
2272
  set(u) {
2273
- u = cn(a, u, t), this.$$d[a] = u;
2273
+ u = dn(a, u, t), this.$$d[a] = u;
2274
2274
  var f = this.$$c;
2275
- f && (Nt(f, a)?.get ? f[a] = u : f.$set({ [a]: u }));
2275
+ f && (Ut(f, a)?.get ? f[a] = u : f.$set({ [a]: u }));
2276
2276
  }
2277
2277
  });
2278
2278
  }), n.forEach((a) => {
2279
- pn(s.prototype, a, { get() {
2279
+ _n(s.prototype, a, { get() {
2280
2280
  return this.$$c?.[a];
2281
2281
  } });
2282
2282
  }), o && (s = o(s)), e.element = s, s;
2283
2283
  }
2284
- var Sn = (e) => e, tf = Sn(Symbol.for("pie.assessmentToolkit.runtimeContext")), rf = Sn(Symbol.for("pie.assessmentToolkit.hostRuntimeContext")), nf = Sn(Symbol.for("pie.assessmentToolkit.shellContext")), of = Sn(Symbol.for("pie.assessmentToolkit.regionScopeContext")), wo;
2284
+ var xn = (e) => e, pf = xn(Symbol.for("pie.assessmentToolkit.runtimeContext")), hf = xn(Symbol.for("pie.assessmentToolkit.hostRuntimeContext")), vf = xn(Symbol.for("pie.assessmentToolkit.shellContext")), _f = xn(Symbol.for("pie.assessmentToolkit.regionScopeContext")), So;
2285
2285
  (function(e) {
2286
2286
  e.TTS_WORD = "tts-word", e.TTS_SENTENCE = "tts-sentence", e.ANNOTATION = "annotation";
2287
- })(wo || (wo = {}));
2288
- var To;
2287
+ })(So || (So = {}));
2288
+ var Ao;
2289
2289
  (function(e) {
2290
2290
  e.YELLOW = "yellow", e.GREEN = "green", e.BLUE = "blue", e.PINK = "pink", e.ORANGE = "orange", e.UNDERLINE = "underline";
2291
- })(To || (To = {}));
2292
- function Ws(e) {
2291
+ })(Ao || (Ao = {}));
2292
+ function Ys(e) {
2293
2293
  return (...t) => {
2294
2294
  console.debug(`[${e}]`, ...t);
2295
2295
  };
2296
2296
  }
2297
- var sf = Ws("I18nService"), Gn = {
2297
+ var mf = Ys("I18nService"), qn = {
2298
2298
  assessment: [],
2299
2299
  section: [],
2300
2300
  item: [],
2301
2301
  passage: [],
2302
2302
  rubric: [],
2303
2303
  element: []
2304
- }, af = {
2305
- section: [...Gn.section],
2306
- item: [...Gn.item],
2307
- passage: [...Gn.passage]
2304
+ }, Kn = {
2305
+ section: [...qn.section],
2306
+ item: [...qn.item],
2307
+ passage: [...qn.passage]
2308
2308
  };
2309
- function fc(e) {
2309
+ function Gt(e) {
2310
+ return typeof e == "object" && e !== null && !Array.isArray(e);
2311
+ }
2312
+ function bt(e, t) {
2313
+ if (e == null) return [];
2314
+ if (!Array.isArray(e)) throw new Error(`Invalid tools config at "${t}": expected an array of tool ids.`);
2315
+ if (e.find((r) => typeof r != "string") !== void 0) throw new Error(`Invalid tools config at "${t}": all entries must be strings.`);
2316
+ return e;
2317
+ }
2318
+ function _c(e) {
2319
+ if (e != null) {
2320
+ if (!Gt(e)) throw new Error('Invalid tools config at "placement": expected an object with section/item/passage arrays.');
2321
+ return e;
2322
+ }
2323
+ }
2324
+ function mc(e) {
2325
+ if (e != null) {
2326
+ if (!Gt(e)) throw new Error('Invalid tools config at "policy": expected an object with allowed/blocked arrays.');
2327
+ return e;
2328
+ }
2329
+ }
2330
+ function gc(e, t) {
2331
+ if (t == null) return;
2332
+ if (!Gt(t)) throw new Error(`Invalid tools config at "providers.${e}": expected an object.`);
2333
+ const r = t;
2334
+ if ("enabled" in r && r.enabled !== void 0 && typeof r.enabled != "boolean") throw new Error(`Invalid tools config at "providers.${e}.enabled": expected a boolean.`);
2335
+ if ("settings" in r && r.settings !== void 0 && !Gt(r.settings)) throw new Error(`Invalid tools config at "providers.${e}.settings": expected an object.`);
2336
+ if ("provider" in r && r.provider !== void 0 && !Gt(r.provider)) throw new Error(`Invalid tools config at "providers.${e}.provider": expected an object.`);
2337
+ return r;
2338
+ }
2339
+ function bc(e) {
2340
+ if (e == null) return {};
2341
+ if (!Gt(e)) throw new Error('Invalid tools config at "providers": expected an object keyed by tool id.');
2342
+ const t = {};
2343
+ for (const [r, n] of Object.entries(e)) t[r] = gc(r, n);
2344
+ return t;
2345
+ }
2346
+ function qs(e) {
2310
2347
  const t = e.trim();
2311
2348
  return t || "";
2312
2349
  }
2313
- var dc = [
2350
+ function yt(e) {
2351
+ if (!e || e.length === 0) return [];
2352
+ const t = /* @__PURE__ */ new Set();
2353
+ for (const r of e) {
2354
+ if (typeof r != "string") throw new Error("Invalid tools config: tool list entries must be strings.");
2355
+ const n = qs(r);
2356
+ n && t.add(n);
2357
+ }
2358
+ return Array.from(t);
2359
+ }
2360
+ function yc(e) {
2361
+ if (e != null) {
2362
+ if (e === "on" || e === "off") return e;
2363
+ throw new Error(`Invalid tools config at "qtiEnforcement": expected "on" or "off", got ${JSON.stringify(e)}.`);
2364
+ }
2365
+ }
2366
+ function wc(e) {
2367
+ if (e != null && !Gt(e)) throw new Error('Invalid tools config: expected an object with "policy", "placement", and "providers".');
2368
+ const t = mc(e?.policy), r = _c(e?.placement), n = bc(e?.providers), i = yc(e?.qtiEnforcement), o = {
2369
+ policy: {
2370
+ allowed: yt(bt(t?.allowed, "policy.allowed")),
2371
+ blocked: yt(bt(t?.blocked, "policy.blocked"))
2372
+ },
2373
+ placement: {
2374
+ section: yt(bt(r?.section, "placement.section")).length ? yt(bt(r?.section, "placement.section")) : [...Kn.section],
2375
+ item: yt(bt(r?.item, "placement.item")).length ? yt(bt(r?.item, "placement.item")) : [...Kn.item],
2376
+ passage: yt(bt(r?.passage, "placement.passage")).length ? yt(bt(r?.passage, "placement.passage")) : [...Kn.passage]
2377
+ },
2378
+ providers: n
2379
+ };
2380
+ return i && (o.qtiEnforcement = i), o;
2381
+ }
2382
+ var Tc = [
2314
2383
  "assessment",
2315
2384
  "section",
2316
2385
  "item",
@@ -2318,10 +2387,10 @@ var dc = [
2318
2387
  "rubric",
2319
2388
  "element"
2320
2389
  ];
2321
- function un(e, t) {
2390
+ function pn(e, t) {
2322
2391
  if (typeof e != "string" || e.trim().length === 0) throw new Error(`Invalid tool registration: "${t}" must be a non-empty string.`);
2323
2392
  }
2324
- var pc = [
2393
+ var Ec = [
2325
2394
  {
2326
2395
  pattern: /<script\b/i,
2327
2396
  reason: "contains a <script> tag"
@@ -2339,17 +2408,17 @@ var pc = [
2339
2408
  reason: "contains a <foreignObject> element"
2340
2409
  }
2341
2410
  ];
2342
- function hc(e, t, r) {
2411
+ function kc(e, t, r) {
2343
2412
  const n = t.trimStart(), i = n.toLowerCase().startsWith("<svg"), o = /^https?:/i.test(n);
2344
2413
  if (/^data:/i.test(n)) throw new Error(`Invalid tool registration "${e}": "${r}" may not be a data: URL.`);
2345
2414
  if (!(!i && !o)) {
2346
- for (const { pattern: s, reason: a } of pc) if (s.test(t)) throw new Error(`Invalid tool registration "${e}": "${r}" ${a}. Inline SVG icons must not include scriptable content.`);
2415
+ for (const { pattern: s, reason: a } of Ec) if (s.test(t)) throw new Error(`Invalid tool registration "${e}": "${r}" ${a}. Inline SVG icons must not include scriptable content.`);
2347
2416
  }
2348
2417
  }
2349
- function Eo(e) {
2350
- if (un(e.toolId, "toolId"), un(e.name, "name"), un(e.description, "description"), typeof e.icon != "string" && typeof e.icon != "function") throw new Error(`Invalid tool registration "${e.toolId}": "icon" must be a string or function.`);
2351
- if (typeof e.icon == "string" && hc(e.toolId, e.icon, "icon"), !Array.isArray(e.supportedLevels) || e.supportedLevels.length === 0) throw new Error(`Invalid tool registration "${e.toolId}": "supportedLevels" must be a non-empty array.`);
2352
- const t = e.supportedLevels.find((r) => !dc.includes(r));
2418
+ function Io(e) {
2419
+ if (pn(e.toolId, "toolId"), pn(e.name, "name"), pn(e.description, "description"), typeof e.icon != "string" && typeof e.icon != "function") throw new Error(`Invalid tool registration "${e.toolId}": "icon" must be a string or function.`);
2420
+ if (typeof e.icon == "string" && kc(e.toolId, e.icon, "icon"), !Array.isArray(e.supportedLevels) || e.supportedLevels.length === 0) throw new Error(`Invalid tool registration "${e.toolId}": "supportedLevels" must be a non-empty array.`);
2421
+ const t = e.supportedLevels.find((r) => !Tc.includes(r));
2353
2422
  if (t) throw new Error(`Invalid tool registration "${e.toolId}": unsupported level "${t}".`);
2354
2423
  if (e.activation !== void 0 && e.activation !== "toolbar-toggle" && e.activation !== "selection-gateway") throw new Error(`Invalid tool registration "${e.toolId}": unsupported activation "${String(e.activation)}".`);
2355
2424
  if (e.singletonScope !== void 0 && e.singletonScope !== "section") throw new Error(`Invalid tool registration "${e.toolId}": unsupported singletonScope "${String(e.singletonScope)}".`);
@@ -2358,23 +2427,23 @@ function Eo(e) {
2358
2427
  if (typeof e.isVisibleInContext != "function") throw new Error(`Invalid tool registration "${e.toolId}": "isVisibleInContext" must be a function.`);
2359
2428
  if (typeof e.renderToolbar != "function") throw new Error(`Invalid tool registration "${e.toolId}": "renderToolbar" must be a function.`);
2360
2429
  }
2361
- var vc = class {
2430
+ var Sc = class {
2362
2431
  constructor() {
2363
2432
  b(this, "tools", /* @__PURE__ */ new Map()), b(this, "pnpIndex", /* @__PURE__ */ new Map()), b(this, "componentOverrides", {}), b(this, "moduleLoaders", /* @__PURE__ */ new Map()), b(this, "loadedToolModules", /* @__PURE__ */ new Set()), b(this, "moduleLoadPromises", /* @__PURE__ */ new Map());
2364
2433
  }
2365
2434
  normalizeToolId(e) {
2366
- return fc(e);
2435
+ return qs(e);
2367
2436
  }
2368
2437
  normalizeToolIds(e) {
2369
2438
  return e.map((t) => this.normalizeToolId(t));
2370
2439
  }
2371
2440
  register(e) {
2372
- if (Eo(e), this.tools.has(e.toolId)) throw new Error(`Tool '${e.toolId}' is already registered`);
2441
+ if (Io(e), this.tools.has(e.toolId)) throw new Error(`Tool '${e.toolId}' is already registered`);
2373
2442
  if (this.tools.set(e.toolId, e), e.pnpSupportIds) for (const t of e.pnpSupportIds)
2374
2443
  this.pnpIndex.has(t) || this.pnpIndex.set(t, /* @__PURE__ */ new Set()), this.pnpIndex.get(t).add(e.toolId);
2375
2444
  }
2376
2445
  override(e) {
2377
- if (Eo(e), !this.tools.has(e.toolId)) throw new Error(`Cannot override non-existent tool '${e.toolId}'`);
2446
+ if (Io(e), !this.tools.has(e.toolId)) throw new Error(`Cannot override non-existent tool '${e.toolId}'`);
2378
2447
  const t = this.tools.get(e.toolId);
2379
2448
  if (t.pnpSupportIds) for (const r of t.pnpSupportIds) this.pnpIndex.get(r)?.delete(e.toolId);
2380
2449
  if (this.tools.set(e.toolId, e), e.pnpSupportIds) for (const r of e.pnpSupportIds)
@@ -2459,7 +2528,7 @@ var vc = class {
2459
2528
  setToolModuleLoaders(e) {
2460
2529
  for (const [t, r] of Object.entries(e))
2461
2530
  if (r) {
2462
- if (un(t, "tool module loader id"), typeof r != "function") throw new Error(`Invalid tool module loader for "${t}": expected a function.`);
2531
+ if (pn(t, "tool module loader id"), typeof r != "function") throw new Error(`Invalid tool module loader for "${t}": expected a function.`);
2463
2532
  this.moduleLoaders.set(t, r);
2464
2533
  }
2465
2534
  }
@@ -2501,20 +2570,20 @@ var vc = class {
2501
2570
  return n.renderToolbar(t, i);
2502
2571
  }
2503
2572
  };
2504
- function js(e) {
2573
+ function Ks(e) {
2505
2574
  return e.level === "item";
2506
2575
  }
2507
- function _c(e) {
2576
+ function Ac(e) {
2508
2577
  return e.level === "passage";
2509
2578
  }
2510
- function mc(e) {
2579
+ function Ic(e) {
2511
2580
  return e.level === "rubric";
2512
2581
  }
2513
- function Gs(e) {
2582
+ function Xs(e) {
2514
2583
  return e.level === "element";
2515
2584
  }
2516
- function Pi(e) {
2517
- if (Gs(e)) {
2585
+ function zi(e) {
2586
+ if (Xs(e)) {
2518
2587
  const t = e.item.config;
2519
2588
  if (!t) return "";
2520
2589
  const r = [], n = (a) => a.replace(/<[^>]*>/g, " ").trim(), i = t.elements?.[e.elementId];
@@ -2529,7 +2598,7 @@ function Pi(e) {
2529
2598
  }
2530
2599
  return r.filter(Boolean).join(" ").trim();
2531
2600
  }
2532
- if (js(e)) {
2601
+ if (Ks(e)) {
2533
2602
  const t = e.item;
2534
2603
  if (!t?.config) return "";
2535
2604
  const r = t.config, n = [], i = (u) => u.replace(/<[^>]*>/g, " ").trim();
@@ -2548,7 +2617,7 @@ function Pi(e) {
2548
2617
  }
2549
2618
  return n.filter(Boolean).join(" ").trim();
2550
2619
  }
2551
- if (_c(e)) {
2620
+ if (Ac(e)) {
2552
2621
  const t = e.passage;
2553
2622
  if (!t?.config) return "";
2554
2623
  const r = t.config, n = [], i = (u) => u.replace(/<[^>]*>/g, " ").trim();
@@ -2567,14 +2636,14 @@ function Pi(e) {
2567
2636
  }
2568
2637
  return n.filter(Boolean).join(" ").trim();
2569
2638
  }
2570
- if (mc(e)) {
2639
+ if (Ic(e)) {
2571
2640
  const t = e.rubricBlock;
2572
2641
  return t.passage?.config ? (t.passage.config.markup || "").replace(/<[^>]*>/g, " ").trim() : (t.content || "").replace(/<[^>]*>/g, " ").trim();
2573
2642
  }
2574
2643
  return "";
2575
2644
  }
2576
- function An(e) {
2577
- const t = Pi(e);
2645
+ function On(e) {
2646
+ const t = zi(e);
2578
2647
  return [
2579
2648
  /<math[>\s]/i,
2580
2649
  /\\\[([^\]]+)\\\]/,
@@ -2584,7 +2653,7 @@ function An(e) {
2584
2653
  /\d+\s*[+\-*/=]\s*\d+/
2585
2654
  ].some((r) => r.test(t));
2586
2655
  }
2587
- function gc(e) {
2656
+ function xc(e) {
2588
2657
  const t = [
2589
2658
  "pie-multiple-choice",
2590
2659
  "pie-inline-choice",
@@ -2593,7 +2662,7 @@ function gc(e) {
2593
2662
  "inline-choice",
2594
2663
  "select-text"
2595
2664
  ];
2596
- if (Gs(e)) {
2665
+ if (Xs(e)) {
2597
2666
  const r = e.item.config;
2598
2667
  if (!r?.models) return !1;
2599
2668
  const n = (Array.isArray(r.models) ? r.models : Object.values(r.models)).find((o) => o && typeof o == "object" && o.id === e.elementId);
@@ -2601,7 +2670,7 @@ function gc(e) {
2601
2670
  const i = n.element || "";
2602
2671
  return t.includes(i);
2603
2672
  }
2604
- if (js(e)) {
2673
+ if (Ks(e)) {
2605
2674
  const r = e.item.config?.models;
2606
2675
  return (Array.isArray(r) ? r : r && typeof r == "object" ? Object.values(r) : []).some((n) => {
2607
2676
  if (!n || typeof n != "object") return !1;
@@ -2611,11 +2680,11 @@ function gc(e) {
2611
2680
  }
2612
2681
  return !1;
2613
2682
  }
2614
- function In(e) {
2615
- return Pi(e).trim().length >= 10;
2683
+ function Ln(e) {
2684
+ return zi(e).trim().length >= 10;
2616
2685
  }
2617
- function bc(e) {
2618
- const t = Pi(e);
2686
+ function Oc(e) {
2687
+ const t = zi(e);
2619
2688
  return [
2620
2689
  /chemistry|chemical|element|atom|molecule|compound/i,
2621
2690
  /periodic\s+table/i,
@@ -2625,23 +2694,23 @@ function bc(e) {
2625
2694
  /physics|force|energy|velocity|acceleration/i
2626
2695
  ].some((r) => r.test(t));
2627
2696
  }
2628
- var yc = [
2697
+ var Lc = [
2629
2698
  "assessment",
2630
2699
  "section",
2631
2700
  "item",
2632
2701
  "passage",
2633
2702
  "rubric"
2634
- ], wc = new Set(yc);
2635
- function Tc(e) {
2636
- return wc.has(e);
2703
+ ], Rc = new Set(Lc);
2704
+ function Mc(e) {
2705
+ return Rc.has(e);
2637
2706
  }
2638
- function $i(e, t, r) {
2707
+ function Ui(e, t, r) {
2639
2708
  const n = e.trim(), i = r.trim();
2640
2709
  if (!n || !i) throw new Error("Tool instance ids require non-empty tool and scope ids");
2641
- if (!Tc(t)) throw new Error(`Unknown tool scope level '${t}'. Register custom levels with registerToolScopeLevel().`);
2710
+ if (!Mc(t)) throw new Error(`Unknown tool scope level '${t}'. Register custom levels with registerToolScopeLevel().`);
2642
2711
  return `${n}:${t}:${i}`;
2643
2712
  }
2644
- var Ec = class {
2713
+ var Cc = class {
2645
2714
  constructor() {
2646
2715
  b(this, "providerId", "desmos-calculator"), b(this, "providerName", "Desmos Calculator"), b(this, "category", "calculator"), b(this, "version", "1.10"), b(this, "requiresAuth", !0), b(this, "desmosProvider", null), b(this, "config", null);
2647
2716
  }
@@ -2718,7 +2787,7 @@ var Ec = class {
2718
2787
  destroy() {
2719
2788
  this.desmosProvider && (this.desmosProvider.destroy(), this.desmosProvider = null), this.config = null, console.log("[DesmosToolProvider] Destroyed");
2720
2789
  }
2721
- }, kc = (e, t) => {
2790
+ }, $c = (e, t) => {
2722
2791
  const r = t?.useSentenceSegmenter !== !1;
2723
2792
  try {
2724
2793
  if (!r) throw new Error("Segmenter disabled by policy");
@@ -2745,14 +2814,14 @@ var Ec = class {
2745
2814
  text: e,
2746
2815
  offset: 0
2747
2816
  }];
2748
- }, Vs = class {
2817
+ }, Js = class {
2749
2818
  constructor() {
2750
2819
  b(this, "providerId", "browser"), b(this, "providerName", "Browser Speech Synthesis"), b(this, "version", "1.0.0");
2751
2820
  }
2752
2821
  async initialize(e) {
2753
2822
  if (typeof window > "u") throw new Error("BrowserTTSProvider requires browser environment");
2754
2823
  if (!("speechSynthesis" in window)) throw new Error("Browser does not support Speech Synthesis API");
2755
- return new Sc(e);
2824
+ return new Pc(e);
2756
2825
  }
2757
2826
  supportsFeature(e) {
2758
2827
  return !0;
@@ -2769,7 +2838,7 @@ var Ec = class {
2769
2838
  }
2770
2839
  destroy() {
2771
2840
  }
2772
- }, Sc = class {
2841
+ }, Pc = class {
2773
2842
  constructor(e) {
2774
2843
  b(this, "utterance", null), b(this, "config", null), b(this, "_isPlaying", !1), b(this, "_isPaused", !1), b(this, "speakRunId", 0), b(this, "onWordBoundary", void 0), this.config = e;
2775
2844
  }
@@ -2839,7 +2908,7 @@ var Ec = class {
2839
2908
  }
2840
2909
  segmentSentences(e) {
2841
2910
  const t = this.getSegmentationPolicy();
2842
- return kc(e, {
2911
+ return $c(e, {
2843
2912
  locale: t.locale,
2844
2913
  useSentenceSegmenter: t.useSentenceSegmenter
2845
2914
  });
@@ -2908,7 +2977,7 @@ var Ec = class {
2908
2977
  ...e.providerOptions || {}
2909
2978
  });
2910
2979
  }
2911
- }, Ac = class {
2980
+ }, Dc = class {
2912
2981
  async emitTelemetry(e, t) {
2913
2982
  try {
2914
2983
  await this.config?.onTelemetry?.(e, t);
@@ -2940,7 +3009,7 @@ var Ec = class {
2940
3009
  }
2941
3010
  async _initializeBrowserTTS(e) {
2942
3011
  if (typeof window > "u" || !("speechSynthesis" in window)) throw new Error("[TTSToolProvider] Browser TTS not supported (Web Speech API not available)");
2943
- this.ttsProvider = new Vs(), console.log("[TTSToolProvider] Browser TTS initialized (Web Speech API)");
3012
+ this.ttsProvider = new Js(), console.log("[TTSToolProvider] Browser TTS initialized (Web Speech API)");
2944
3013
  }
2945
3014
  async _initializeServerTTS(e) {
2946
3015
  if (!e.apiEndpoint) throw new Error("[TTSToolProvider] apiEndpoint required for server-based TTS backends");
@@ -2998,7 +3067,7 @@ var Ec = class {
2998
3067
  destroy() {
2999
3068
  this.ttsProvider && (this.ttsProvider.destroy(), this.ttsProvider = null), this.config = null, console.log("[TTSToolProvider] Destroyed");
3000
3069
  }
3001
- }, Ic = /* @__PURE__ */ new Set([
3070
+ }, Nc = /* @__PURE__ */ new Set([
3002
3071
  "annotation-xml",
3003
3072
  "color-profile",
3004
3073
  "font-face",
@@ -3007,16 +3076,16 @@ var Ec = class {
3007
3076
  "font-face-format",
3008
3077
  "font-face-name",
3009
3078
  "missing-glyph"
3010
- ]), xc = /^[a-z][a-z0-9._-]*-[a-z0-9._-]*$/, Oc = (e, t = "custom element tag") => {
3079
+ ]), zc = /^[a-z][a-z0-9._-]*-[a-z0-9._-]*$/, Uc = (e, t = "custom element tag") => {
3011
3080
  if (!e || typeof e != "string") throw new Error(`Invalid ${t}: expected a non-empty string`);
3012
3081
  const r = e.trim();
3013
3082
  if (!r) throw new Error(`Invalid ${t}: tag is empty`);
3014
3083
  if (r !== r.toLowerCase()) throw new Error(`Invalid ${t} "${r}": custom element names must be lowercase`);
3015
3084
  if (!r.includes("-")) throw new Error(`Invalid ${t} "${r}": custom element names must include a hyphen`);
3016
- if (Ic.has(r)) throw new Error(`Invalid ${t} "${r}": this name is reserved by the HTML spec`);
3017
- if (!xc.test(r)) throw new Error(`Invalid ${t} "${r}": allowed characters are lowercase letters, numbers, ".", "_" and "-"`);
3085
+ if (Nc.has(r)) throw new Error(`Invalid ${t} "${r}": this name is reserved by the HTML spec`);
3086
+ if (!zc.test(r)) throw new Error(`Invalid ${t} "${r}": allowed characters are lowercase letters, numbers, ".", "_" and "-"`);
3018
3087
  return r;
3019
- }, Ys = {
3088
+ }, Qs = {
3020
3089
  calculator: "pie-tool-calculator",
3021
3090
  textToSpeech: "pie-tool-text-to-speech",
3022
3091
  ruler: "pie-tool-ruler",
@@ -3029,22 +3098,22 @@ var Ec = class {
3029
3098
  annotationToolbar: "pie-tool-annotation-toolbar",
3030
3099
  graph: "pie-tool-graph",
3031
3100
  periodicTable: "pie-tool-periodic-table"
3032
- }, Lc = (e, t) => Oc(t?.toolTagMap?.[e] ?? Ys[e] ?? e, `tool component tag for "${e}"`), Rc = (e) => document.createElement(e), Xe = (e, t, r, n) => {
3033
- const i = Lc(e, n), o = n?.toolComponentFactories?.[e] ?? n?.toolComponentFactory;
3101
+ }, Fc = (e, t) => Uc(t?.toolTagMap?.[e] ?? Qs[e] ?? e, `tool component tag for "${e}"`), Bc = (e) => document.createElement(e), Xe = (e, t, r, n) => {
3102
+ const i = Fc(e, n), o = n?.toolComponentFactories?.[e] ?? n?.toolComponentFactory;
3034
3103
  return o ? o({
3035
3104
  toolId: e,
3036
3105
  tagName: i,
3037
3106
  context: t,
3038
3107
  toolbarContext: r
3039
- }) : Rc(i);
3040
- }, Mc = {
3108
+ }) : Bc(i);
3109
+ }, Hc = {
3041
3110
  toolId: "calculator",
3042
3111
  name: "Calculator",
3043
3112
  description: "Multi-type calculator (basic, scientific, graphing)",
3044
3113
  icon: "calculator",
3045
3114
  provider: {
3046
3115
  getProviderId: (e) => typeof e?.provider?.id == "string" && e.provider.id.length > 0 ? e.provider.id : "calculator-desmos",
3047
- createProvider: () => new Ec(),
3116
+ createProvider: () => new Cc(),
3048
3117
  getInitConfig: (e) => e?.provider?.init ?? {},
3049
3118
  getAuthFetcher: (e) => {
3050
3119
  const t = e?.provider?.runtime?.authFetcher;
@@ -3067,10 +3136,10 @@ var Ec = class {
3067
3136
  "scientificCalculator"
3068
3137
  ],
3069
3138
  isVisibleInContext(e) {
3070
- return An(e);
3139
+ return On(e);
3071
3140
  },
3072
3141
  renderToolbar(e, t) {
3073
- const r = $i(this.toolId, t.scope.level, t.scope.scopeId), n = t.componentOverrides, i = Xe(this.toolId, e, t, n);
3142
+ const r = Ui(this.toolId, t.scope.level, t.scope.scopeId), n = t.componentOverrides, i = Xe(this.toolId, e, t, n);
3074
3143
  i.setAttribute("tool-id", r), i.toolkitCoordinator = t.toolkitCoordinator;
3075
3144
  const o = {
3076
3145
  toolId: this.toolId,
@@ -3110,13 +3179,13 @@ var Ec = class {
3110
3179
  }
3111
3180
  };
3112
3181
  }
3113
- }, Cc = /* @__PURE__ */ new Set([
3182
+ }, jc = /* @__PURE__ */ new Set([
3114
3183
  "reserved-row",
3115
3184
  "expanding-row",
3116
3185
  "floating-overlay",
3117
3186
  "left-aligned"
3118
- ]), ko = (e) => e && typeof e == "object" ? e : {}, Pc = (e) => e === "polly" || e === "google" || e === "server", we = (e, t) => e === void 0 ? t : e, yn = (e, t = "left-aligned") => typeof e == "string" && Cc.has(e) ? e : t, So = Object.freeze([0.8, 1.25]), Vn = (e) => {
3119
- if (!Array.isArray(e)) return [...So];
3187
+ ]), xo = (e) => e && typeof e == "object" ? e : {}, Wc = (e) => e === "polly" || e === "google" || e === "server", we = (e, t) => e === void 0 ? t : e, En = (e, t = "left-aligned") => typeof e == "string" && jc.has(e) ? e : t, Oo = Object.freeze([0.8, 1.25]), Xn = (e) => {
3188
+ if (!Array.isArray(e)) return [...Oo];
3120
3189
  if (e.length === 0) return [];
3121
3190
  const t = /* @__PURE__ */ new Set();
3122
3191
  for (const r of e) {
@@ -3124,13 +3193,13 @@ var Ec = class {
3124
3193
  const n = Math.round(r * 100) / 100;
3125
3194
  n !== 1 && t.add(n);
3126
3195
  }
3127
- return t.size ? Array.from(t) : [...So];
3128
- }, $c = (e) => {
3196
+ return t.size ? Array.from(t) : [...Oo];
3197
+ }, Gc = (e) => {
3129
3198
  const t = {
3130
3199
  ...e,
3131
- layoutMode: yn(e.layoutMode)
3200
+ layoutMode: En(e.layoutMode)
3132
3201
  }, r = e.backend || "browser";
3133
- if (!Pc(r)) return t;
3202
+ if (!Wc(r)) return t;
3134
3203
  const n = {
3135
3204
  ...t,
3136
3205
  apiEndpoint: we(t.apiEndpoint, "/api/tts"),
@@ -3151,14 +3220,14 @@ var Ec = class {
3151
3220
  ...n,
3152
3221
  defaultVoice: we(n.defaultVoice, "en-US-Wavenet-A")
3153
3222
  } : n;
3154
- }, Yn = (e) => {
3155
- const t = ko(e), r = ko(e?.settings);
3156
- return $c({
3223
+ }, Jn = (e) => {
3224
+ const t = xo(e), r = xo(e?.settings);
3225
+ return Gc({
3157
3226
  ...t,
3158
3227
  ...r
3159
3228
  });
3160
- }, hi = (e) => e.backend || "browser", qs = (e, t) => t === "polly" || t === "google" ? t : e.serverProvider || e.provider, Ks = (e, t) => e.transportMode || (t === "custom" ? "custom" : "pie"), Dc = (e) => {
3161
- const t = hi(e), r = qs(e, t), n = Ks(e, r);
3229
+ }, gi = (e) => e.backend || "browser", Zs = (e, t) => t === "polly" || t === "google" ? t : e.serverProvider || e.provider, ea = (e, t) => e.transportMode || (t === "custom" ? "custom" : "pie"), Vc = (e) => {
3230
+ const t = gi(e), r = Zs(e, t), n = ea(e, r);
3162
3231
  return {
3163
3232
  voice: e.defaultVoice,
3164
3233
  rate: e.rate,
@@ -3182,8 +3251,8 @@ var Ec = class {
3182
3251
  includeAuthOnAssetFetch: e.includeAuthOnAssetFetch,
3183
3252
  validateEndpoint: e.validateEndpoint
3184
3253
  };
3185
- }, Xs = (e) => yn(e.layoutMode), Nc = (e) => {
3186
- switch (Xs(e)) {
3254
+ }, ta = (e) => En(e.layoutMode), Yc = (e) => {
3255
+ switch (ta(e)) {
3187
3256
  case "reserved-row":
3188
3257
  return {
3189
3258
  mount: "before-buttons",
@@ -3209,21 +3278,21 @@ var Ec = class {
3209
3278
  }
3210
3279
  };
3211
3280
  }
3212
- }, Ir = /* @__PURE__ */ new Map(), zc = "__pieToolElementUnmount", Ao = "pie-tool-active-change", Uc = {
3281
+ }, Lr = /* @__PURE__ */ new Map(), qc = "__pieToolElementUnmount", Lo = "pie-tool-active-change", Kc = {
3213
3282
  toolId: "textToSpeech",
3214
3283
  name: "Text to Speech",
3215
3284
  description: "Read content aloud",
3216
3285
  icon: "volume-up",
3217
3286
  provider: {
3218
3287
  getProviderId: () => "tts",
3219
- createProvider: (e) => new Ac(hi(Yn(e))),
3288
+ createProvider: (e) => new Dc(gi(Jn(e))),
3220
3289
  getInitConfig: (e) => {
3221
- const t = Yn(e), r = hi(t), n = qs(t, r);
3290
+ const t = Jn(e), r = gi(t), n = Zs(t, r);
3222
3291
  return {
3223
3292
  backend: r,
3224
3293
  serverProvider: n,
3225
- transportMode: Ks(t, n),
3226
- ...Dc(t)
3294
+ transportMode: ea(t, n),
3295
+ ...Vc(t)
3227
3296
  };
3228
3297
  },
3229
3298
  getAuthFetcher: (e) => {
@@ -3232,9 +3301,9 @@ var Ec = class {
3232
3301
  },
3233
3302
  sanitizeConfig: (e) => {
3234
3303
  const t = e.settings && typeof e.settings == "object" ? { ...e.settings } : void 0;
3235
- t && "layoutMode" in t && (t.layoutMode = yn(t.layoutMode)), t && "speedOptions" in t && (t.speedOptions = Vn(t.speedOptions));
3304
+ t && "layoutMode" in t && (t.layoutMode = En(t.layoutMode)), t && "speedOptions" in t && (t.speedOptions = Xn(t.speedOptions));
3236
3305
  const r = { ...e };
3237
- return "layoutMode" in r && (r.layoutMode = yn(r.layoutMode)), "speedOptions" in r && (r.speedOptions = Vn(r.speedOptions)), t && (r.settings = t), r;
3306
+ return "layoutMode" in r && (r.layoutMode = En(r.layoutMode)), "speedOptions" in r && (r.speedOptions = Xn(r.speedOptions)), t && (r.settings = t), r;
3238
3307
  },
3239
3308
  lazy: !0
3240
3309
  },
@@ -3246,17 +3315,17 @@ var Ec = class {
3246
3315
  "speechOutput"
3247
3316
  ],
3248
3317
  isVisibleInContext(e) {
3249
- return In(e);
3318
+ return Ln(e);
3250
3319
  },
3251
3320
  renderToolbar(e, t) {
3252
- const r = () => Yn(t.toolkitCoordinator?.getToolConfig(this.toolId) || void 0), n = () => Vn(r().speedOptions), i = () => Xs(r()), o = () => Nc(r()), s = $i(this.toolId, t.scope.level, t.scope.scopeId), a = () => {
3321
+ const r = () => Jn(t.toolkitCoordinator?.getToolConfig(this.toolId) || void 0), n = () => Xn(r().speedOptions), i = () => ta(r()), o = () => Yc(r()), s = Ui(this.toolId, t.scope.level, t.scope.scopeId), a = () => {
3253
3322
  const d = t.ui?.size;
3254
3323
  return d === "sm" || d === "lg" ? d : "md";
3255
3324
  }, u = () => {
3256
- let d = Ir.get(s);
3257
- return d && typeof d.isConnected == "boolean" && !d.isConnected && (Ir.delete(s), d = void 0), d || (d = document.createElement("pie-tool-tts-inline"), d[zc] = () => {
3258
- Ir.get(s) === d && Ir.delete(s);
3259
- }, Ir.set(s, d)), d.setAttribute("tool-id", s), d.setAttribute("catalog-id", t.catalogId || t.itemId), d.setAttribute("language", t.language || "en-US"), d.setAttribute("size", a()), d.setAttribute("layout-mode", i()), d.speedOptions = n(), d;
3325
+ let d = Lr.get(s);
3326
+ return d && typeof d.isConnected == "boolean" && !d.isConnected && (Lr.delete(s), d = void 0), d || (d = document.createElement("pie-tool-tts-inline"), d[qc] = () => {
3327
+ Lr.get(s) === d && Lr.delete(s);
3328
+ }, Lr.set(s, d)), d.setAttribute("tool-id", s), d.setAttribute("catalog-id", t.catalogId || t.itemId), d.setAttribute("language", t.language || "en-US"), d.setAttribute("size", a()), d.setAttribute("layout-mode", i()), d.speedOptions = n(), d;
3260
3329
  }, f = o();
3261
3330
  return {
3262
3331
  toolId: this.toolId,
@@ -3274,8 +3343,8 @@ var Ec = class {
3274
3343
  const _ = v.detail;
3275
3344
  d(_?.active === !0);
3276
3345
  };
3277
- return m.addEventListener(Ao, p), () => {
3278
- m.removeEventListener(Ao, p);
3346
+ return m.addEventListener(Lo, p), () => {
3347
+ m.removeEventListener(Lo, p);
3279
3348
  };
3280
3349
  },
3281
3350
  sync: () => {
@@ -3286,7 +3355,7 @@ var Ec = class {
3286
3355
  }
3287
3356
  };
3288
3357
  function dt(e, t) {
3289
- const r = $i(e, t.scope.level, t.scope.scopeId);
3358
+ const r = Ui(e, t.scope.level, t.scope.scopeId);
3290
3359
  return {
3291
3360
  fullToolId: r,
3292
3361
  isActive: () => t.isToolVisible(r),
@@ -3300,10 +3369,10 @@ function pt(e) {
3300
3369
  const t = e.isActive();
3301
3370
  e.button.active = t, e.overlay.visible = t, e.onActiveChange?.(t);
3302
3371
  }
3303
- function Di(e, t) {
3372
+ function Fi(e, t) {
3304
3373
  e.setAttribute("data-pie-tool-surface", t);
3305
3374
  }
3306
- var Fc = {
3375
+ var Xc = {
3307
3376
  toolId: "ruler",
3308
3377
  name: "Ruler",
3309
3378
  description: "On-screen ruler for measurements",
@@ -3315,7 +3384,7 @@ var Fc = {
3315
3384
  ],
3316
3385
  pnpSupportIds: ["ruler", "measurement"],
3317
3386
  isVisibleInContext(e) {
3318
- return An(e);
3387
+ return On(e);
3319
3388
  },
3320
3389
  renderToolbar(e, t) {
3321
3390
  const r = dt(this.toolId, t), n = {
@@ -3328,7 +3397,7 @@ var Fc = {
3328
3397
  onClick: () => t.toggleTool(this.toolId),
3329
3398
  active: r.isActive()
3330
3399
  }, i = t.componentOverrides ?? {}, o = Xe(this.toolId, e, t, i);
3331
- return o.setAttribute("tool-id", r.fullToolId), Di(o, "frameless"), {
3400
+ return o.setAttribute("tool-id", r.fullToolId), Fi(o, "frameless"), {
3332
3401
  toolId: this.toolId,
3333
3402
  button: n,
3334
3403
  elements: [{
@@ -3345,7 +3414,7 @@ var Fc = {
3345
3414
  subscribeActive: r.subscribeActive
3346
3415
  };
3347
3416
  }
3348
- }, Hc = {
3417
+ }, Jc = {
3349
3418
  toolId: "protractor",
3350
3419
  name: "Protractor",
3351
3420
  description: "On-screen protractor for angle measurements",
@@ -3357,7 +3426,7 @@ var Fc = {
3357
3426
  ],
3358
3427
  pnpSupportIds: ["protractor", "angleMeasurement"],
3359
3428
  isVisibleInContext(e) {
3360
- return An(e);
3429
+ return On(e);
3361
3430
  },
3362
3431
  renderToolbar(e, t) {
3363
3432
  const r = dt(this.toolId, t), n = {
@@ -3370,7 +3439,7 @@ var Fc = {
3370
3439
  onClick: () => t.toggleTool(this.toolId),
3371
3440
  active: r.isActive()
3372
3441
  }, i = t.componentOverrides ?? {}, o = Xe(this.toolId, e, t, i);
3373
- return o.setAttribute("tool-id", r.fullToolId), Di(o, "frameless"), {
3442
+ return o.setAttribute("tool-id", r.fullToolId), Fi(o, "frameless"), {
3374
3443
  toolId: this.toolId,
3375
3444
  button: n,
3376
3445
  elements: [{
@@ -3387,7 +3456,7 @@ var Fc = {
3387
3456
  subscribeActive: r.subscribeActive
3388
3457
  };
3389
3458
  }
3390
- }, Bc = {
3459
+ }, Qc = {
3391
3460
  toolId: "answerEliminator",
3392
3461
  name: "Answer Eliminator",
3393
3462
  description: "Strike through answer choices",
@@ -3400,7 +3469,7 @@ var Fc = {
3400
3469
  "choiceMasking"
3401
3470
  ],
3402
3471
  isVisibleInContext(e) {
3403
- return gc(e);
3472
+ return xc(e);
3404
3473
  },
3405
3474
  renderToolbar(e, t) {
3406
3475
  const r = dt(this.toolId, t), n = t.componentOverrides ?? {}, i = Xe(this.toolId, e, t, n);
@@ -3434,7 +3503,7 @@ var Fc = {
3434
3503
  subscribeActive: r.subscribeActive
3435
3504
  };
3436
3505
  }
3437
- }, Wc = {
3506
+ }, Zc = {
3438
3507
  toolId: "highlighter",
3439
3508
  name: "Highlighter",
3440
3509
  description: "Highlight text",
@@ -3452,7 +3521,7 @@ var Fc = {
3452
3521
  "annotation"
3453
3522
  ],
3454
3523
  isVisibleInContext(e) {
3455
- return In(e);
3524
+ return Ln(e);
3456
3525
  },
3457
3526
  renderToolbar(e, t) {
3458
3527
  const r = dt(this.toolId, t), n = {
@@ -3485,7 +3554,7 @@ var Fc = {
3485
3554
  subscribeActive: r.subscribeActive
3486
3555
  };
3487
3556
  }
3488
- }, jc = {
3557
+ }, eu = {
3489
3558
  toolId: "lineReader",
3490
3559
  name: "Line Reader",
3491
3560
  description: "Reading guide overlay",
@@ -3504,7 +3573,7 @@ var Fc = {
3504
3573
  "trackingGuide"
3505
3574
  ],
3506
3575
  isVisibleInContext(e) {
3507
- return In(e);
3576
+ return Ln(e);
3508
3577
  },
3509
3578
  renderToolbar(e, t) {
3510
3579
  const r = dt(this.toolId, t), n = {
@@ -3517,7 +3586,7 @@ var Fc = {
3517
3586
  onClick: () => t.toggleTool(this.toolId),
3518
3587
  active: r.isActive()
3519
3588
  }, i = t.componentOverrides ?? {}, o = Xe(this.toolId, e, t, i);
3520
- return o.setAttribute("tool-id", r.fullToolId), Di(o, "frameless"), {
3589
+ return o.setAttribute("tool-id", r.fullToolId), Fi(o, "frameless"), {
3521
3590
  toolId: this.toolId,
3522
3591
  button: n,
3523
3592
  elements: [{
@@ -3534,7 +3603,7 @@ var Fc = {
3534
3603
  subscribeActive: r.subscribeActive
3535
3604
  };
3536
3605
  }
3537
- }, Gc = {
3606
+ }, tu = {
3538
3607
  toolId: "theme",
3539
3608
  name: "Theme",
3540
3609
  description: "Accessible themes and contrast",
@@ -3590,7 +3659,7 @@ var Fc = {
3590
3659
  subscribeActive: r.subscribeActive
3591
3660
  };
3592
3661
  }
3593
- }, Vc = {
3662
+ }, ru = {
3594
3663
  toolId: "annotationToolbar",
3595
3664
  name: "Highlighter",
3596
3665
  description: "Highlight and annotate text",
@@ -3611,7 +3680,7 @@ var Fc = {
3611
3680
  "annotation"
3612
3681
  ],
3613
3682
  isVisibleInContext(e) {
3614
- return In(e);
3683
+ return Ln(e);
3615
3684
  },
3616
3685
  renderToolbar(e, t) {
3617
3686
  const r = dt(this.toolId, t), n = {
@@ -3641,7 +3710,7 @@ var Fc = {
3641
3710
  subscribeActive: r.subscribeActive
3642
3711
  };
3643
3712
  }
3644
- }, Yc = {
3713
+ }, nu = {
3645
3714
  toolId: "graph",
3646
3715
  name: "Graph",
3647
3716
  description: "Graphing calculator and coordinate plane",
@@ -3654,7 +3723,7 @@ var Fc = {
3654
3723
  "graphingTool"
3655
3724
  ],
3656
3725
  isVisibleInContext(e) {
3657
- return An(e);
3726
+ return On(e);
3658
3727
  },
3659
3728
  renderToolbar(e, t) {
3660
3729
  const r = dt(this.toolId, t), n = {
@@ -3694,7 +3763,7 @@ var Fc = {
3694
3763
  subscribeActive: r.subscribeActive
3695
3764
  };
3696
3765
  }
3697
- }, qc = {
3766
+ }, iu = {
3698
3767
  toolId: "periodicTable",
3699
3768
  name: "Periodic Table",
3700
3769
  description: "Chemistry periodic table reference",
@@ -3706,7 +3775,7 @@ var Fc = {
3706
3775
  "elementReference"
3707
3776
  ],
3708
3777
  isVisibleInContext(e) {
3709
- return bc(e);
3778
+ return Oc(e);
3710
3779
  },
3711
3780
  renderToolbar(e, t) {
3712
3781
  const r = dt(this.toolId, t), n = {
@@ -3746,54 +3815,54 @@ var Fc = {
3746
3815
  subscribeActive: r.subscribeActive
3747
3816
  };
3748
3817
  }
3749
- }, Kc = [
3750
- Mc,
3751
- Uc,
3752
- Fc,
3818
+ }, ou = [
3753
3819
  Hc,
3754
- Bc,
3755
- Wc,
3756
- jc,
3757
- Gc,
3758
- Vc,
3759
- Yc,
3760
- qc
3820
+ Kc,
3821
+ Xc,
3822
+ Jc,
3823
+ Qc,
3824
+ Zc,
3825
+ eu,
3826
+ tu,
3827
+ ru,
3828
+ nu,
3829
+ iu
3761
3830
  ];
3762
- function Xc(e = {}) {
3763
- const t = new vc(), r = {
3831
+ function su(e = {}) {
3832
+ const t = new Sc(), r = {
3764
3833
  toolTagMap: {
3765
- ...Ys,
3834
+ ...Qs,
3766
3835
  ...e.toolTagMap || {}
3767
3836
  },
3768
3837
  toolComponentFactory: e.toolComponentFactory,
3769
3838
  toolComponentFactories: e.toolComponentFactories
3770
3839
  }, n = (i) => e.overrides?.[i.toolId] || i;
3771
- return e.includePackagedTools && Jc(t, {
3840
+ return e.includePackagedTools && au(t, {
3772
3841
  toolIds: e.toolIds,
3773
3842
  applyOverrides: n
3774
3843
  }), e.toolModuleLoaders && Object.keys(e.toolModuleLoaders).length > 0 && t.setToolModuleLoaders(e.toolModuleLoaders), t.setComponentOverrides(r), t;
3775
3844
  }
3776
- function Jc(e, t = {}) {
3845
+ function au(e, t = {}) {
3777
3846
  const r = t.toolIds && t.toolIds.length > 0 ? new Set(t.toolIds) : null, n = t.applyOverrides || ((i) => i);
3778
- for (const i of Kc)
3847
+ for (const i of ou)
3779
3848
  r && !r.has(i.toolId) || e.register(n(i));
3780
3849
  }
3781
- function Qc(e = {}) {
3782
- return Xc({
3850
+ function lu(e = {}) {
3851
+ return su({
3783
3852
  ...e,
3784
3853
  includePackagedTools: !0
3785
3854
  });
3786
3855
  }
3787
- function Zc() {
3788
- const e = Qc(), t = /* @__PURE__ */ new Set();
3856
+ function cu() {
3857
+ const e = lu(), t = /* @__PURE__ */ new Set();
3789
3858
  for (const r of e.getAllTools()) for (const n of r.pnpSupportIds || []) t.add(n);
3790
3859
  return [...t].sort();
3791
3860
  }
3792
- var eu = Zc(), lf = {
3793
- supports: [...eu],
3861
+ var uu = cu(), gf = {
3862
+ supports: [...uu],
3794
3863
  prohibitedSupports: [],
3795
3864
  activateAtInit: []
3796
- }, tu = {
3865
+ }, fu = {
3797
3866
  visual: {
3798
3867
  magnification: "magnification",
3799
3868
  screenMagnifier: "screenMagnifier",
@@ -3906,16 +3975,27 @@ var eu = Zc(), lf = {
3906
3975
  itemGlossary: "itemGlossary",
3907
3976
  tutorialAvailable: "tutorialAvailable"
3908
3977
  }
3909
- }, cf = Object.values(tu).flatMap((e) => Object.values(e)), uf = Ws("ToolCoordinator"), vi;
3978
+ }, bf = Object.values(fu).flatMap((e) => Object.values(e)), yf = Ys("ToolCoordinator"), bi;
3910
3979
  (function(e) {
3911
3980
  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";
3912
- })(vi || (vi = {}));
3913
- var Io;
3981
+ })(bi || (bi = {}));
3982
+ var Ro;
3914
3983
  (function(e) {
3915
3984
  e.IDLE = "idle", e.LOADING = "loading", e.PLAYING = "playing", e.PAUSED = "paused", e.ERROR = "error";
3916
- })(Io || (Io = {}));
3917
- var Js = "https://proxy.pie-api.com", ru = `${Js}/bundles/`;
3918
- function Qs(e) {
3985
+ })(Ro || (Ro = {}));
3986
+ var wf = wc({
3987
+ policy: {
3988
+ allowed: [],
3989
+ blocked: []
3990
+ },
3991
+ placement: {
3992
+ section: [],
3993
+ item: [],
3994
+ passage: []
3995
+ },
3996
+ providers: {}
3997
+ }), ra = "https://proxy.pie-api.com", du = `${ra}/bundles/`;
3998
+ function na(e) {
3919
3999
  try {
3920
4000
  const t = {
3921
4001
  BASE_URL: "/",
@@ -3928,73 +4008,76 @@ function Qs(e) {
3928
4008
  } catch {
3929
4009
  }
3930
4010
  }
3931
- var ff = typeof window < "u" && window.PIE_BUILDER_ORIGIN_URL || Qs("PUBLIC_BUILDER_ORIGIN_URL") || Js, nu = typeof window < "u" && window.PIE_BUILDER_BUNDLE_URL || Qs("PUBLIC_BUILDER_BUNDLE_URL") || ru, { entries: Zs, setPrototypeOf: xo, isFrozen: iu, getPrototypeOf: ou, getOwnPropertyDescriptor: su } = Object, { freeze: se, seal: xe, create: Pr } = Object, { apply: _i, construct: mi } = typeof Reflect < "u" && Reflect;
4011
+ var Tf = typeof window < "u" && window.PIE_BUILDER_ORIGIN_URL || na("PUBLIC_BUILDER_ORIGIN_URL") || ra, pu = typeof window < "u" && window.PIE_BUILDER_BUNDLE_URL || na("PUBLIC_BUILDER_BUNDLE_URL") || du, hu = {
4012
+ retryDelayMs: 3e3,
4013
+ timeoutMs: 12e4
4014
+ }, { entries: ia, setPrototypeOf: Mo, isFrozen: vu, getPrototypeOf: _u, getOwnPropertyDescriptor: mu } = Object, { freeze: se, seal: xe, create: Nr } = Object, { apply: yi, construct: wi } = typeof Reflect < "u" && Reflect;
3932
4015
  se || (se = function(t) {
3933
4016
  return t;
3934
4017
  });
3935
4018
  xe || (xe = function(t) {
3936
4019
  return t;
3937
4020
  });
3938
- _i || (_i = function(t, r) {
4021
+ yi || (yi = function(t, r) {
3939
4022
  for (var n = arguments.length, i = new Array(n > 2 ? n - 2 : 0), o = 2; o < n; o++) i[o - 2] = arguments[o];
3940
4023
  return t.apply(r, i);
3941
4024
  });
3942
- mi || (mi = function(t) {
4025
+ wi || (wi = function(t) {
3943
4026
  for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++) n[i - 1] = arguments[i];
3944
4027
  return new t(...n);
3945
4028
  });
3946
- var xr = ae(Array.prototype.forEach), au = ae(Array.prototype.lastIndexOf), Oo = ae(Array.prototype.pop), Or = ae(Array.prototype.push), lu = ae(Array.prototype.splice), fn = ae(String.prototype.toLowerCase), qn = ae(String.prototype.toString), Kn = ae(String.prototype.match), nr = ae(String.prototype.replace), cu = ae(String.prototype.indexOf), uu = ae(String.prototype.trim), Me = ae(Object.prototype.hasOwnProperty), ie = ae(RegExp.prototype.test), Lr = fu(TypeError);
4029
+ var Rr = ae(Array.prototype.forEach), gu = ae(Array.prototype.lastIndexOf), Co = ae(Array.prototype.pop), Mr = ae(Array.prototype.push), bu = ae(Array.prototype.splice), hn = ae(String.prototype.toLowerCase), Qn = ae(String.prototype.toString), Zn = ae(String.prototype.match), sr = ae(String.prototype.replace), yu = ae(String.prototype.indexOf), wu = ae(String.prototype.trim), Me = ae(Object.prototype.hasOwnProperty), ie = ae(RegExp.prototype.test), Cr = Tu(TypeError);
3947
4030
  function ae(e) {
3948
4031
  return function(t) {
3949
4032
  t instanceof RegExp && (t.lastIndex = 0);
3950
4033
  for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++) n[i - 1] = arguments[i];
3951
- return _i(e, t, n);
4034
+ return yi(e, t, n);
3952
4035
  };
3953
4036
  }
3954
- function fu(e) {
4037
+ function Tu(e) {
3955
4038
  return function() {
3956
4039
  for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++) r[n] = arguments[n];
3957
- return mi(e, r);
4040
+ return wi(e, r);
3958
4041
  };
3959
4042
  }
3960
4043
  function I(e, t) {
3961
- let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : fn;
3962
- xo && xo(e, null);
4044
+ let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : hn;
4045
+ Mo && Mo(e, null);
3963
4046
  let n = t.length;
3964
4047
  for (; n--; ) {
3965
4048
  let i = t[n];
3966
4049
  if (typeof i == "string") {
3967
4050
  const o = r(i);
3968
- o !== i && (iu(t) || (t[n] = o), i = o);
4051
+ o !== i && (vu(t) || (t[n] = o), i = o);
3969
4052
  }
3970
4053
  e[i] = !0;
3971
4054
  }
3972
4055
  return e;
3973
4056
  }
3974
- function du(e) {
4057
+ function Eu(e) {
3975
4058
  for (let t = 0; t < e.length; t++) Me(e, t) || (e[t] = null);
3976
4059
  return e;
3977
4060
  }
3978
- function Be(e) {
3979
- const t = Pr(null);
3980
- for (const [r, n] of Zs(e)) Me(e, r) && (Array.isArray(n) ? t[r] = du(n) : n && typeof n == "object" && n.constructor === Object ? t[r] = Be(n) : t[r] = n);
4061
+ function He(e) {
4062
+ const t = Nr(null);
4063
+ for (const [r, n] of ia(e)) Me(e, r) && (Array.isArray(n) ? t[r] = Eu(n) : n && typeof n == "object" && n.constructor === Object ? t[r] = He(n) : t[r] = n);
3981
4064
  return t;
3982
4065
  }
3983
- function Rr(e, t) {
4066
+ function $r(e, t) {
3984
4067
  for (; e !== null; ) {
3985
- const n = su(e, t);
4068
+ const n = mu(e, t);
3986
4069
  if (n) {
3987
4070
  if (n.get) return ae(n.get);
3988
4071
  if (typeof n.value == "function") return ae(n.value);
3989
4072
  }
3990
- e = ou(e);
4073
+ e = _u(e);
3991
4074
  }
3992
4075
  function r() {
3993
4076
  return null;
3994
4077
  }
3995
4078
  return r;
3996
4079
  }
3997
- var Lo = se([
4080
+ var $o = se([
3998
4081
  "a",
3999
4082
  "abbr",
4000
4083
  "acronym",
@@ -4114,7 +4197,7 @@ var Lo = se([
4114
4197
  "var",
4115
4198
  "video",
4116
4199
  "wbr"
4117
- ]), Xn = se([
4200
+ ]), ei = se([
4118
4201
  "svg",
4119
4202
  "a",
4120
4203
  "altglyph",
@@ -4162,7 +4245,7 @@ var Lo = se([
4162
4245
  "tspan",
4163
4246
  "view",
4164
4247
  "vkern"
4165
- ]), Jn = se([
4248
+ ]), ti = se([
4166
4249
  "feBlend",
4167
4250
  "feColorMatrix",
4168
4251
  "feComponentTransfer",
@@ -4188,7 +4271,7 @@ var Lo = se([
4188
4271
  "feSpotLight",
4189
4272
  "feTile",
4190
4273
  "feTurbulence"
4191
- ]), pu = se([
4274
+ ]), ku = se([
4192
4275
  "animate",
4193
4276
  "color-profile",
4194
4277
  "cursor",
@@ -4211,7 +4294,7 @@ var Lo = se([
4211
4294
  "solidcolor",
4212
4295
  "unknown",
4213
4296
  "use"
4214
- ]), Qn = se([
4297
+ ]), ri = se([
4215
4298
  "math",
4216
4299
  "menclose",
4217
4300
  "merror",
@@ -4242,7 +4325,7 @@ var Lo = se([
4242
4325
  "munder",
4243
4326
  "munderover",
4244
4327
  "mprescripts"
4245
- ]), hu = se([
4328
+ ]), Su = se([
4246
4329
  "maction",
4247
4330
  "maligngroup",
4248
4331
  "malignmark",
@@ -4258,7 +4341,7 @@ var Lo = se([
4258
4341
  "annotation-xml",
4259
4342
  "mprescripts",
4260
4343
  "none"
4261
- ]), Ro = se(["#text"]), Mo = se([
4344
+ ]), Po = se(["#text"]), Do = se([
4262
4345
  "accept",
4263
4346
  "action",
4264
4347
  "align",
@@ -4376,7 +4459,7 @@ var Lo = se([
4376
4459
  "wrap",
4377
4460
  "xmlns",
4378
4461
  "slot"
4379
- ]), Zn = se([
4462
+ ]), ni = se([
4380
4463
  "accent-height",
4381
4464
  "accumulate",
4382
4465
  "additive",
@@ -4565,7 +4648,7 @@ var Lo = se([
4565
4648
  "y2",
4566
4649
  "z",
4567
4650
  "zoomandpan"
4568
- ]), Co = se([
4651
+ ]), No = se([
4569
4652
  "accent",
4570
4653
  "accentunder",
4571
4654
  "align",
@@ -4620,33 +4703,33 @@ var Lo = se([
4620
4703
  "voffset",
4621
4704
  "width",
4622
4705
  "xmlns"
4623
- ]), nn = se([
4706
+ ]), an = se([
4624
4707
  "xlink:href",
4625
4708
  "xml:id",
4626
4709
  "xlink:title",
4627
4710
  "xml:space",
4628
4711
  "xmlns:xlink"
4629
- ]), vu = xe(/\{\{[\w\W]*|[\w\W]*\}\}/gm), _u = xe(/<%[\w\W]*|[\w\W]*%>/gm), mu = xe(/\$\{[\w\W]*/gm), gu = xe(/^data-[\-\w.\u00B7-\uFFFF]+$/), bu = xe(/^aria-[\-\w]+$/), ea = xe(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), yu = xe(/^(?:\w+script|data):/i), wu = xe(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), ta = xe(/^html$/i), Tu = xe(/^[a-z][.\w]*(-[.\w]+)+$/i), Po = /* @__PURE__ */ Object.freeze({
4712
+ ]), Au = xe(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Iu = xe(/<%[\w\W]*|[\w\W]*%>/gm), xu = xe(/\$\{[\w\W]*/gm), Ou = xe(/^data-[\-\w.\u00B7-\uFFFF]+$/), Lu = xe(/^aria-[\-\w]+$/), oa = xe(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Ru = xe(/^(?:\w+script|data):/i), Mu = xe(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), sa = xe(/^html$/i), Cu = xe(/^[a-z][.\w]*(-[.\w]+)+$/i), zo = /* @__PURE__ */ Object.freeze({
4630
4713
  __proto__: null,
4631
- ARIA_ATTR: bu,
4632
- ATTR_WHITESPACE: wu,
4633
- CUSTOM_ELEMENT: Tu,
4634
- DATA_ATTR: gu,
4635
- DOCTYPE_NAME: ta,
4636
- ERB_EXPR: _u,
4637
- IS_ALLOWED_URI: ea,
4638
- IS_SCRIPT_OR_DATA: yu,
4639
- MUSTACHE_EXPR: vu,
4640
- TMPLIT_EXPR: mu
4641
- }), Mr = {
4714
+ ARIA_ATTR: Lu,
4715
+ ATTR_WHITESPACE: Mu,
4716
+ CUSTOM_ELEMENT: Cu,
4717
+ DATA_ATTR: Ou,
4718
+ DOCTYPE_NAME: sa,
4719
+ ERB_EXPR: Iu,
4720
+ IS_ALLOWED_URI: oa,
4721
+ IS_SCRIPT_OR_DATA: Ru,
4722
+ MUSTACHE_EXPR: Au,
4723
+ TMPLIT_EXPR: xu
4724
+ }), Pr = {
4642
4725
  element: 1,
4643
4726
  text: 3,
4644
4727
  progressingInstruction: 7,
4645
4728
  comment: 8,
4646
4729
  document: 9
4647
- }, Eu = function() {
4730
+ }, $u = function() {
4648
4731
  return typeof window > "u" ? null : window;
4649
- }, ku = function(t, r) {
4732
+ }, Pu = function(t, r) {
4650
4733
  if (typeof t != "object" || typeof t.createPolicy != "function") return null;
4651
4734
  let n = null;
4652
4735
  const i = "data-tt-policy-suffix";
@@ -4664,7 +4747,7 @@ var Lo = se([
4664
4747
  } catch {
4665
4748
  return console.warn("TrustedTypes policy " + o + " could not be created."), null;
4666
4749
  }
4667
- }, $o = function() {
4750
+ }, Uo = function() {
4668
4751
  return {
4669
4752
  afterSanitizeAttributes: [],
4670
4753
  afterSanitizeElements: [],
@@ -4677,38 +4760,38 @@ var Lo = se([
4677
4760
  uponSanitizeShadowNode: []
4678
4761
  };
4679
4762
  };
4680
- function ra() {
4681
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Eu();
4682
- const t = (T) => ra(T);
4683
- if (t.version = "3.4.0", t.removed = [], !e || !e.document || e.document.nodeType !== Mr.document || !e.Element)
4763
+ function aa() {
4764
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : $u();
4765
+ const t = (T) => aa(T);
4766
+ if (t.version = "3.4.0", t.removed = [], !e || !e.document || e.document.nodeType !== Pr.document || !e.Element)
4684
4767
  return t.isSupported = !1, t;
4685
4768
  let { document: r } = e;
4686
- const n = r, i = n.currentScript, { DocumentFragment: o, HTMLTemplateElement: s, Node: a, Element: u, NodeFilter: f, NamedNodeMap: d = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: m, DOMParser: p, trustedTypes: v } = e, _ = u.prototype, w = Rr(_, "cloneNode"), E = Rr(_, "remove"), N = Rr(_, "nextSibling"), ne = Rr(_, "childNodes"), $ = Rr(_, "parentNode");
4769
+ const n = r, i = n.currentScript, { DocumentFragment: o, HTMLTemplateElement: s, Node: a, Element: u, NodeFilter: f, NamedNodeMap: d = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: m, DOMParser: p, trustedTypes: v } = e, _ = u.prototype, w = $r(_, "cloneNode"), E = $r(_, "remove"), N = $r(_, "nextSibling"), ne = $r(_, "childNodes"), P = $r(_, "parentNode");
4687
4770
  if (typeof s == "function") {
4688
4771
  const T = r.createElement("template");
4689
4772
  T.content && T.content.ownerDocument && (r = T.content.ownerDocument);
4690
4773
  }
4691
4774
  let M, le = "";
4692
- const { implementation: Je, createNodeIterator: xn, createDocumentFragment: On, getElementsByTagName: Ln } = r, { importNode: Rn } = n;
4693
- let X = $o();
4694
- t.isSupported = typeof Zs == "function" && typeof $ == "function" && Je && Je.createHTMLDocument !== void 0;
4695
- const { MUSTACHE_EXPR: kt, ERB_EXPR: St, TMPLIT_EXPR: At, DATA_ATTR: Mn, ARIA_ATTR: Cn, IS_SCRIPT_OR_DATA: Vr, ATTR_WHITESPACE: Yr, CUSTOM_ELEMENT: Pn } = Po;
4696
- let { IS_ALLOWED_URI: k } = Po, C = null;
4775
+ const { implementation: Je, createNodeIterator: Rn, createDocumentFragment: Mn, getElementsByTagName: Cn } = r, { importNode: $n } = n;
4776
+ let X = Uo();
4777
+ t.isSupported = typeof ia == "function" && typeof P == "function" && Je && Je.createHTMLDocument !== void 0;
4778
+ const { MUSTACHE_EXPR: At, ERB_EXPR: It, TMPLIT_EXPR: xt, DATA_ATTR: Pn, ARIA_ATTR: Dn, IS_SCRIPT_OR_DATA: Kr, ATTR_WHITESPACE: Xr, CUSTOM_ELEMENT: Nn } = zo;
4779
+ let { IS_ALLOWED_URI: k } = zo, C = null;
4697
4780
  const ht = I({}, [
4698
- ...Lo,
4699
- ...Xn,
4700
- ...Jn,
4701
- ...Qn,
4702
- ...Ro
4781
+ ...$o,
4782
+ ...ei,
4783
+ ...ti,
4784
+ ...ri,
4785
+ ...Po
4703
4786
  ]);
4704
- let H = null;
4705
- const mr = I({}, [
4706
- ...Mo,
4707
- ...Zn,
4708
- ...Co,
4709
- ...nn
4787
+ let B = null;
4788
+ const yr = I({}, [
4789
+ ...Do,
4790
+ ...ni,
4791
+ ...No,
4792
+ ...an
4710
4793
  ]);
4711
- let F = Object.seal(Pr(null, {
4794
+ let F = Object.seal(Nr(null, {
4712
4795
  tagNameCheck: {
4713
4796
  writable: !0,
4714
4797
  configurable: !1,
@@ -4727,8 +4810,8 @@ function ra() {
4727
4810
  enumerable: !0,
4728
4811
  value: !1
4729
4812
  }
4730
- })), It = null, qt = null;
4731
- const Ue = Object.seal(Pr(null, {
4813
+ })), Ot = null, Jt = null;
4814
+ const Ue = Object.seal(Nr(null, {
4732
4815
  tagCheck: {
4733
4816
  writable: !0,
4734
4817
  configurable: !1,
@@ -4742,10 +4825,10 @@ function ra() {
4742
4825
  value: null
4743
4826
  }
4744
4827
  }));
4745
- let Z = !0, ve = !0, Qe = !1, Kt = !0, Ze = !1, xt = !0, Oe = !1, Ot = !1, Xt = !1, vt = !1, et = !1, _t = !1, Jt = !0, tt = !1;
4746
- const $n = "user-content-";
4747
- let gr = !0, Lt = !1, rt = {}, _e = null;
4748
- const br = I({}, [
4828
+ let Z = !0, ve = !0, Qe = !1, Qt = !0, Ze = !1, Lt = !0, Oe = !1, Rt = !1, Zt = !1, vt = !1, et = !1, _t = !1, er = !0, tt = !1;
4829
+ const zn = "user-content-";
4830
+ let wr = !0, Mt = !1, rt = {}, _e = null;
4831
+ const Tr = I({}, [
4749
4832
  "annotation-xml",
4750
4833
  "audio",
4751
4834
  "colgroup",
@@ -4797,74 +4880,74 @@ function ra() {
4797
4880
  "value",
4798
4881
  "style",
4799
4882
  "xmlns"
4800
- ]), Qt = "http://www.w3.org/1998/Math/MathML", Zt = "http://www.w3.org/2000/svg", me = "http://www.w3.org/1999/xhtml";
4801
- let it = me, yr = !1, Fe = null;
4802
- const wr = I({}, [
4803
- Qt,
4804
- Zt,
4883
+ ]), tr = "http://www.w3.org/1998/Math/MathML", rr = "http://www.w3.org/2000/svg", me = "http://www.w3.org/1999/xhtml";
4884
+ let it = me, Er = !1, Fe = null;
4885
+ const kr = I({}, [
4886
+ tr,
4887
+ rr,
4805
4888
  me
4806
- ], qn);
4807
- let qr = I({}, [
4889
+ ], Qn);
4890
+ let Jr = I({}, [
4808
4891
  "mi",
4809
4892
  "mo",
4810
4893
  "mn",
4811
4894
  "ms",
4812
4895
  "mtext"
4813
- ]), Kr = I({}, ["annotation-xml"]);
4814
- const fa = I({}, [
4896
+ ]), Qr = I({}, ["annotation-xml"]);
4897
+ const _a = I({}, [
4815
4898
  "title",
4816
4899
  "style",
4817
4900
  "font",
4818
4901
  "a",
4819
4902
  "script"
4820
4903
  ]);
4821
- let Tr = null;
4822
- const da = ["application/xhtml+xml", "text/html"], pa = "text/html";
4823
- let Y = null, er = null;
4824
- const ha = r.createElement("form"), Ni = function(l) {
4904
+ let Sr = null;
4905
+ const ma = ["application/xhtml+xml", "text/html"], ga = "text/html";
4906
+ let Y = null, nr = null;
4907
+ const ba = r.createElement("form"), Bi = function(l) {
4825
4908
  return l instanceof RegExp || l instanceof Function;
4826
- }, Dn = function() {
4909
+ }, Un = function() {
4827
4910
  let l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
4828
- if (!(er && er === l)) {
4829
- if ((!l || typeof l != "object") && (l = {}), l = Be(l), Tr = da.indexOf(l.PARSER_MEDIA_TYPE) === -1 ? pa : l.PARSER_MEDIA_TYPE, Y = Tr === "application/xhtml+xml" ? qn : fn, C = Me(l, "ALLOWED_TAGS") ? I({}, l.ALLOWED_TAGS, Y) : ht, H = Me(l, "ALLOWED_ATTR") ? I({}, l.ALLOWED_ATTR, Y) : mr, Fe = Me(l, "ALLOWED_NAMESPACES") ? I({}, l.ALLOWED_NAMESPACES, qn) : wr, nt = Me(l, "ADD_URI_SAFE_ATTR") ? I(Be(mt), l.ADD_URI_SAFE_ATTR, Y) : mt, V = Me(l, "ADD_DATA_URI_TAGS") ? I(Be(J), l.ADD_DATA_URI_TAGS, Y) : J, _e = Me(l, "FORBID_CONTENTS") ? I({}, l.FORBID_CONTENTS, Y) : br, It = Me(l, "FORBID_TAGS") ? I({}, l.FORBID_TAGS, Y) : Be({}), qt = Me(l, "FORBID_ATTR") ? I({}, l.FORBID_ATTR, Y) : Be({}), rt = Me(l, "USE_PROFILES") ? l.USE_PROFILES : !1, Z = l.ALLOW_ARIA_ATTR !== !1, ve = l.ALLOW_DATA_ATTR !== !1, Qe = l.ALLOW_UNKNOWN_PROTOCOLS || !1, Kt = l.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ze = l.SAFE_FOR_TEMPLATES || !1, xt = l.SAFE_FOR_XML !== !1, Oe = l.WHOLE_DOCUMENT || !1, vt = l.RETURN_DOM || !1, et = l.RETURN_DOM_FRAGMENT || !1, _t = l.RETURN_TRUSTED_TYPE || !1, Xt = l.FORCE_BODY || !1, Jt = l.SANITIZE_DOM !== !1, tt = l.SANITIZE_NAMED_PROPS || !1, gr = l.KEEP_CONTENT !== !1, Lt = l.IN_PLACE || !1, k = l.ALLOWED_URI_REGEXP || ea, it = l.NAMESPACE || me, qr = l.MATHML_TEXT_INTEGRATION_POINTS || qr, Kr = l.HTML_INTEGRATION_POINTS || Kr, F = l.CUSTOM_ELEMENT_HANDLING || Pr(null), l.CUSTOM_ELEMENT_HANDLING && Ni(l.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (F.tagNameCheck = l.CUSTOM_ELEMENT_HANDLING.tagNameCheck), l.CUSTOM_ELEMENT_HANDLING && Ni(l.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (F.attributeNameCheck = l.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), l.CUSTOM_ELEMENT_HANDLING && typeof l.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (F.allowCustomizedBuiltInElements = l.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ze && (ve = !1), et && (vt = !0), rt && (C = I({}, Ro), H = Pr(null), rt.html === !0 && (I(C, Lo), I(H, Mo)), rt.svg === !0 && (I(C, Xn), I(H, Zn), I(H, nn)), rt.svgFilters === !0 && (I(C, Jn), I(H, Zn), I(H, nn)), rt.mathMl === !0 && (I(C, Qn), I(H, Co), I(H, nn))), Ue.tagCheck = null, Ue.attributeCheck = null, l.ADD_TAGS && (typeof l.ADD_TAGS == "function" ? Ue.tagCheck = l.ADD_TAGS : (C === ht && (C = Be(C)), I(C, l.ADD_TAGS, Y))), l.ADD_ATTR && (typeof l.ADD_ATTR == "function" ? Ue.attributeCheck = l.ADD_ATTR : (H === mr && (H = Be(H)), I(H, l.ADD_ATTR, Y))), l.ADD_URI_SAFE_ATTR && I(nt, l.ADD_URI_SAFE_ATTR, Y), l.FORBID_CONTENTS && (_e === br && (_e = Be(_e)), I(_e, l.FORBID_CONTENTS, Y)), l.ADD_FORBID_CONTENTS && (_e === br && (_e = Be(_e)), I(_e, l.ADD_FORBID_CONTENTS, Y)), gr && (C["#text"] = !0), Oe && I(C, [
4911
+ if (!(nr && nr === l)) {
4912
+ if ((!l || typeof l != "object") && (l = {}), l = He(l), Sr = ma.indexOf(l.PARSER_MEDIA_TYPE) === -1 ? ga : l.PARSER_MEDIA_TYPE, Y = Sr === "application/xhtml+xml" ? Qn : hn, C = Me(l, "ALLOWED_TAGS") ? I({}, l.ALLOWED_TAGS, Y) : ht, B = Me(l, "ALLOWED_ATTR") ? I({}, l.ALLOWED_ATTR, Y) : yr, Fe = Me(l, "ALLOWED_NAMESPACES") ? I({}, l.ALLOWED_NAMESPACES, Qn) : kr, nt = Me(l, "ADD_URI_SAFE_ATTR") ? I(He(mt), l.ADD_URI_SAFE_ATTR, Y) : mt, V = Me(l, "ADD_DATA_URI_TAGS") ? I(He(J), l.ADD_DATA_URI_TAGS, Y) : J, _e = Me(l, "FORBID_CONTENTS") ? I({}, l.FORBID_CONTENTS, Y) : Tr, Ot = Me(l, "FORBID_TAGS") ? I({}, l.FORBID_TAGS, Y) : He({}), Jt = Me(l, "FORBID_ATTR") ? I({}, l.FORBID_ATTR, Y) : He({}), rt = Me(l, "USE_PROFILES") ? l.USE_PROFILES : !1, Z = l.ALLOW_ARIA_ATTR !== !1, ve = l.ALLOW_DATA_ATTR !== !1, Qe = l.ALLOW_UNKNOWN_PROTOCOLS || !1, Qt = l.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ze = l.SAFE_FOR_TEMPLATES || !1, Lt = l.SAFE_FOR_XML !== !1, Oe = l.WHOLE_DOCUMENT || !1, vt = l.RETURN_DOM || !1, et = l.RETURN_DOM_FRAGMENT || !1, _t = l.RETURN_TRUSTED_TYPE || !1, Zt = l.FORCE_BODY || !1, er = l.SANITIZE_DOM !== !1, tt = l.SANITIZE_NAMED_PROPS || !1, wr = l.KEEP_CONTENT !== !1, Mt = l.IN_PLACE || !1, k = l.ALLOWED_URI_REGEXP || oa, it = l.NAMESPACE || me, Jr = l.MATHML_TEXT_INTEGRATION_POINTS || Jr, Qr = l.HTML_INTEGRATION_POINTS || Qr, F = l.CUSTOM_ELEMENT_HANDLING || Nr(null), l.CUSTOM_ELEMENT_HANDLING && Bi(l.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (F.tagNameCheck = l.CUSTOM_ELEMENT_HANDLING.tagNameCheck), l.CUSTOM_ELEMENT_HANDLING && Bi(l.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (F.attributeNameCheck = l.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), l.CUSTOM_ELEMENT_HANDLING && typeof l.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (F.allowCustomizedBuiltInElements = l.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ze && (ve = !1), et && (vt = !0), rt && (C = I({}, Po), B = Nr(null), rt.html === !0 && (I(C, $o), I(B, Do)), rt.svg === !0 && (I(C, ei), I(B, ni), I(B, an)), rt.svgFilters === !0 && (I(C, ti), I(B, ni), I(B, an)), rt.mathMl === !0 && (I(C, ri), I(B, No), I(B, an))), Ue.tagCheck = null, Ue.attributeCheck = null, l.ADD_TAGS && (typeof l.ADD_TAGS == "function" ? Ue.tagCheck = l.ADD_TAGS : (C === ht && (C = He(C)), I(C, l.ADD_TAGS, Y))), l.ADD_ATTR && (typeof l.ADD_ATTR == "function" ? Ue.attributeCheck = l.ADD_ATTR : (B === yr && (B = He(B)), I(B, l.ADD_ATTR, Y))), l.ADD_URI_SAFE_ATTR && I(nt, l.ADD_URI_SAFE_ATTR, Y), l.FORBID_CONTENTS && (_e === Tr && (_e = He(_e)), I(_e, l.FORBID_CONTENTS, Y)), l.ADD_FORBID_CONTENTS && (_e === Tr && (_e = He(_e)), I(_e, l.ADD_FORBID_CONTENTS, Y)), wr && (C["#text"] = !0), Oe && I(C, [
4830
4913
  "html",
4831
4914
  "head",
4832
4915
  "body"
4833
- ]), C.table && (I(C, ["tbody"]), delete It.tbody), l.TRUSTED_TYPES_POLICY) {
4834
- if (typeof l.TRUSTED_TYPES_POLICY.createHTML != "function") throw Lr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
4835
- if (typeof l.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw Lr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
4916
+ ]), C.table && (I(C, ["tbody"]), delete Ot.tbody), l.TRUSTED_TYPES_POLICY) {
4917
+ if (typeof l.TRUSTED_TYPES_POLICY.createHTML != "function") throw Cr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
4918
+ if (typeof l.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw Cr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
4836
4919
  M = l.TRUSTED_TYPES_POLICY, le = M.createHTML("");
4837
4920
  } else
4838
- M === void 0 && (M = ku(v, i)), M !== null && typeof le == "string" && (le = M.createHTML(""));
4839
- se && se(l), er = l;
4921
+ M === void 0 && (M = Pu(v, i)), M !== null && typeof le == "string" && (le = M.createHTML(""));
4922
+ se && se(l), nr = l;
4840
4923
  }
4841
- }, zi = I({}, [
4842
- ...Xn,
4843
- ...Jn,
4844
- ...pu
4845
- ]), Ui = I({}, [...Qn, ...hu]), va = function(l) {
4846
- let h = $(l);
4924
+ }, Hi = I({}, [
4925
+ ...ei,
4926
+ ...ti,
4927
+ ...ku
4928
+ ]), ji = I({}, [...ri, ...Su]), ya = function(l) {
4929
+ let h = P(l);
4847
4930
  (!h || !h.tagName) && (h = {
4848
4931
  namespaceURI: it,
4849
4932
  tagName: "template"
4850
4933
  });
4851
- const y = fn(l.tagName), B = fn(h.tagName);
4852
- return Fe[l.namespaceURI] ? l.namespaceURI === Zt ? h.namespaceURI === me ? y === "svg" : h.namespaceURI === Qt ? y === "svg" && (B === "annotation-xml" || qr[B]) : !!zi[y] : l.namespaceURI === Qt ? h.namespaceURI === me ? y === "math" : h.namespaceURI === Zt ? y === "math" && Kr[B] : !!Ui[y] : l.namespaceURI === me ? h.namespaceURI === Zt && !Kr[B] || h.namespaceURI === Qt && !qr[B] ? !1 : !Ui[y] && (fa[y] || !zi[y]) : !!(Tr === "application/xhtml+xml" && Fe[l.namespaceURI]) : !1;
4934
+ const y = hn(l.tagName), H = hn(h.tagName);
4935
+ return Fe[l.namespaceURI] ? l.namespaceURI === rr ? h.namespaceURI === me ? y === "svg" : h.namespaceURI === tr ? y === "svg" && (H === "annotation-xml" || Jr[H]) : !!Hi[y] : l.namespaceURI === tr ? h.namespaceURI === me ? y === "math" : h.namespaceURI === rr ? y === "math" && Qr[H] : !!ji[y] : l.namespaceURI === me ? h.namespaceURI === rr && !Qr[H] || h.namespaceURI === tr && !Jr[H] ? !1 : !ji[y] && (_a[y] || !Hi[y]) : !!(Sr === "application/xhtml+xml" && Fe[l.namespaceURI]) : !1;
4853
4936
  }, Le = function(l) {
4854
- Or(t.removed, { element: l });
4937
+ Mr(t.removed, { element: l });
4855
4938
  try {
4856
- $(l).removeChild(l);
4939
+ P(l).removeChild(l);
4857
4940
  } catch {
4858
4941
  E(l);
4859
4942
  }
4860
- }, Rt = function(l, h) {
4943
+ }, Ct = function(l, h) {
4861
4944
  try {
4862
- Or(t.removed, {
4945
+ Mr(t.removed, {
4863
4946
  attribute: h.getAttributeNode(l),
4864
4947
  from: h
4865
4948
  });
4866
4949
  } catch {
4867
- Or(t.removed, {
4950
+ Mr(t.removed, {
4868
4951
  attribute: null,
4869
4952
  from: h
4870
4953
  });
@@ -4877,83 +4960,83 @@ function ra() {
4877
4960
  h.setAttribute(l, "");
4878
4961
  } catch {
4879
4962
  }
4880
- }, Fi = function(l) {
4963
+ }, Wi = function(l) {
4881
4964
  let h = null, y = null;
4882
- if (Xt) l = "<remove></remove>" + l;
4965
+ if (Zt) l = "<remove></remove>" + l;
4883
4966
  else {
4884
- const ge = Kn(l, /^[\r\n\t ]+/);
4967
+ const ge = Zn(l, /^[\r\n\t ]+/);
4885
4968
  y = ge && ge[0];
4886
4969
  }
4887
- Tr === "application/xhtml+xml" && it === me && (l = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + l + "</body></html>");
4888
- const B = M ? M.createHTML(l) : l;
4970
+ Sr === "application/xhtml+xml" && it === me && (l = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + l + "</body></html>");
4971
+ const H = M ? M.createHTML(l) : l;
4889
4972
  if (it === me) try {
4890
- h = new p().parseFromString(B, Tr);
4973
+ h = new p().parseFromString(H, Sr);
4891
4974
  } catch {
4892
4975
  }
4893
4976
  if (!h || !h.documentElement) {
4894
4977
  h = Je.createDocument(it, "template", null);
4895
4978
  try {
4896
- h.documentElement.innerHTML = yr ? le : B;
4979
+ h.documentElement.innerHTML = Er ? le : H;
4897
4980
  } catch {
4898
4981
  }
4899
4982
  }
4900
4983
  const U = h.body || h.documentElement;
4901
- return l && y && U.insertBefore(r.createTextNode(y), U.childNodes[0] || null), it === me ? Ln.call(h, Oe ? "html" : "body")[0] : Oe ? h.documentElement : U;
4902
- }, Hi = function(l) {
4903
- return xn.call(l.ownerDocument || l, l, f.SHOW_ELEMENT | f.SHOW_COMMENT | f.SHOW_TEXT | f.SHOW_PROCESSING_INSTRUCTION | f.SHOW_CDATA_SECTION, null);
4904
- }, Nn = function(l) {
4984
+ return l && y && U.insertBefore(r.createTextNode(y), U.childNodes[0] || null), it === me ? Cn.call(h, Oe ? "html" : "body")[0] : Oe ? h.documentElement : U;
4985
+ }, Gi = function(l) {
4986
+ return Rn.call(l.ownerDocument || l, l, f.SHOW_ELEMENT | f.SHOW_COMMENT | f.SHOW_TEXT | f.SHOW_PROCESSING_INSTRUCTION | f.SHOW_CDATA_SECTION, null);
4987
+ }, Fn = function(l) {
4905
4988
  return l instanceof m && (typeof l.nodeName != "string" || typeof l.textContent != "string" || typeof l.removeChild != "function" || !(l.attributes instanceof d) || typeof l.removeAttribute != "function" || typeof l.setAttribute != "function" || typeof l.namespaceURI != "string" || typeof l.insertBefore != "function" || typeof l.hasChildNodes != "function");
4906
- }, zn = function(l) {
4989
+ }, Bn = function(l) {
4907
4990
  return typeof a == "function" && l instanceof a;
4908
4991
  };
4909
4992
  function ot(T, l, h) {
4910
- xr(T, (y) => {
4911
- y.call(t, l, h, er);
4993
+ Rr(T, (y) => {
4994
+ y.call(t, l, h, nr);
4912
4995
  });
4913
4996
  }
4914
- const Bi = function(l) {
4997
+ const Vi = function(l) {
4915
4998
  let h = null;
4916
- if (ot(X.beforeSanitizeElements, l, null), Nn(l))
4999
+ if (ot(X.beforeSanitizeElements, l, null), Fn(l))
4917
5000
  return Le(l), !0;
4918
5001
  const y = Y(l.nodeName);
4919
5002
  if (ot(X.uponSanitizeElement, l, {
4920
5003
  tagName: y,
4921
5004
  allowedTags: C
4922
- }), xt && l.hasChildNodes() && !zn(l.firstElementChild) && ie(/<[/\w!]/g, l.innerHTML) && ie(/<[/\w!]/g, l.textContent) || xt && l.namespaceURI === me && y === "style" && zn(l.firstElementChild) || l.nodeType === Mr.progressingInstruction || xt && l.nodeType === Mr.comment && ie(/<[/\w]/g, l.data))
5005
+ }), Lt && l.hasChildNodes() && !Bn(l.firstElementChild) && ie(/<[/\w!]/g, l.innerHTML) && ie(/<[/\w!]/g, l.textContent) || Lt && l.namespaceURI === me && y === "style" && Bn(l.firstElementChild) || l.nodeType === Pr.progressingInstruction || Lt && l.nodeType === Pr.comment && ie(/<[/\w]/g, l.data))
4923
5006
  return Le(l), !0;
4924
- if (It[y] || !(Ue.tagCheck instanceof Function && Ue.tagCheck(y)) && !C[y]) {
4925
- if (!It[y] && ji(y) && (F.tagNameCheck instanceof RegExp && ie(F.tagNameCheck, y) || F.tagNameCheck instanceof Function && F.tagNameCheck(y)))
5007
+ if (Ot[y] || !(Ue.tagCheck instanceof Function && Ue.tagCheck(y)) && !C[y]) {
5008
+ if (!Ot[y] && qi(y) && (F.tagNameCheck instanceof RegExp && ie(F.tagNameCheck, y) || F.tagNameCheck instanceof Function && F.tagNameCheck(y)))
4926
5009
  return !1;
4927
- if (gr && !_e[y]) {
4928
- const B = $(l) || l.parentNode, U = ne(l) || l.childNodes;
4929
- if (U && B) {
5010
+ if (wr && !_e[y]) {
5011
+ const H = P(l) || l.parentNode, U = ne(l) || l.childNodes;
5012
+ if (U && H) {
4930
5013
  const ge = U.length;
4931
5014
  for (let be = ge - 1; be >= 0; --be) {
4932
5015
  const q = w(U[be], !0);
4933
- q.__removalCount = (l.__removalCount || 0) + 1, B.insertBefore(q, N(l));
5016
+ q.__removalCount = (l.__removalCount || 0) + 1, H.insertBefore(q, N(l));
4934
5017
  }
4935
5018
  }
4936
5019
  }
4937
5020
  return Le(l), !0;
4938
5021
  }
4939
- return l instanceof u && !va(l) || (y === "noscript" || y === "noembed" || y === "noframes") && ie(/<\/no(script|embed|frames)/i, l.innerHTML) ? (Le(l), !0) : (Ze && l.nodeType === Mr.text && (h = l.textContent, xr([
4940
- kt,
4941
- St,
4942
- At
4943
- ], (B) => {
4944
- h = nr(h, B, " ");
4945
- }), l.textContent !== h && (Or(t.removed, { element: l.cloneNode() }), l.textContent = h)), ot(X.afterSanitizeElements, l, null), !1);
4946
- }, Wi = function(l, h, y) {
4947
- if (qt[h] || Jt && (h === "id" || h === "name") && (y in r || y in ha)) return !1;
4948
- if (!(ve && !qt[h] && ie(Mn, h))) {
4949
- if (!(Z && ie(Cn, h))) {
5022
+ return l instanceof u && !ya(l) || (y === "noscript" || y === "noembed" || y === "noframes") && ie(/<\/no(script|embed|frames)/i, l.innerHTML) ? (Le(l), !0) : (Ze && l.nodeType === Pr.text && (h = l.textContent, Rr([
5023
+ At,
5024
+ It,
5025
+ xt
5026
+ ], (H) => {
5027
+ h = sr(h, H, " ");
5028
+ }), l.textContent !== h && (Mr(t.removed, { element: l.cloneNode() }), l.textContent = h)), ot(X.afterSanitizeElements, l, null), !1);
5029
+ }, Yi = function(l, h, y) {
5030
+ if (Jt[h] || er && (h === "id" || h === "name") && (y in r || y in ba)) return !1;
5031
+ if (!(ve && !Jt[h] && ie(Pn, h))) {
5032
+ if (!(Z && ie(Dn, h))) {
4950
5033
  if (!(Ue.attributeCheck instanceof Function && Ue.attributeCheck(h, l))) {
4951
- if (!H[h] || qt[h]) {
4952
- if (!(ji(l) && (F.tagNameCheck instanceof RegExp && ie(F.tagNameCheck, l) || F.tagNameCheck instanceof Function && F.tagNameCheck(l)) && (F.attributeNameCheck instanceof RegExp && ie(F.attributeNameCheck, h) || F.attributeNameCheck instanceof Function && F.attributeNameCheck(h, l)) || h === "is" && F.allowCustomizedBuiltInElements && (F.tagNameCheck instanceof RegExp && ie(F.tagNameCheck, y) || F.tagNameCheck instanceof Function && F.tagNameCheck(y)))) return !1;
5034
+ if (!B[h] || Jt[h]) {
5035
+ if (!(qi(l) && (F.tagNameCheck instanceof RegExp && ie(F.tagNameCheck, l) || F.tagNameCheck instanceof Function && F.tagNameCheck(l)) && (F.attributeNameCheck instanceof RegExp && ie(F.attributeNameCheck, h) || F.attributeNameCheck instanceof Function && F.attributeNameCheck(h, l)) || h === "is" && F.allowCustomizedBuiltInElements && (F.tagNameCheck instanceof RegExp && ie(F.tagNameCheck, y) || F.tagNameCheck instanceof Function && F.tagNameCheck(y)))) return !1;
4953
5036
  } else if (!nt[h]) {
4954
- if (!ie(k, nr(y, Yr, ""))) {
4955
- if (!((h === "src" || h === "xlink:href" || h === "href") && l !== "script" && cu(y, "data:") === 0 && V[l])) {
4956
- if (!(Qe && !ie(Vr, nr(y, Yr, "")))) {
5037
+ if (!ie(k, sr(y, Xr, ""))) {
5038
+ if (!((h === "src" || h === "xlink:href" || h === "href") && l !== "script" && yu(y, "data:") === 0 && V[l])) {
5039
+ if (!(Qe && !ie(Kr, sr(y, Xr, "")))) {
4957
5040
  if (y) return !1;
4958
5041
  }
4959
5042
  }
@@ -4963,53 +5046,53 @@ function ra() {
4963
5046
  }
4964
5047
  }
4965
5048
  return !0;
4966
- }, ji = function(l) {
4967
- return l !== "annotation-xml" && Kn(l, Pn);
4968
- }, Gi = function(l) {
5049
+ }, qi = function(l) {
5050
+ return l !== "annotation-xml" && Zn(l, Nn);
5051
+ }, Ki = function(l) {
4969
5052
  ot(X.beforeSanitizeAttributes, l, null);
4970
5053
  const { attributes: h } = l;
4971
- if (!h || Nn(l)) return;
5054
+ if (!h || Fn(l)) return;
4972
5055
  const y = {
4973
5056
  attrName: "",
4974
5057
  attrValue: "",
4975
5058
  keepAttr: !0,
4976
- allowedAttributes: H,
5059
+ allowedAttributes: B,
4977
5060
  forceKeepAttr: void 0
4978
5061
  };
4979
- let B = h.length;
4980
- for (; B--; ) {
4981
- const { name: U, namespaceURI: ge, value: be } = h[B], q = Y(U), Er = be;
4982
- let Q = U === "value" ? Er : uu(Er);
4983
- if (y.attrName = q, y.attrValue = Q, y.keepAttr = !0, y.forceKeepAttr = void 0, ot(X.uponSanitizeAttribute, l, y), Q = y.attrValue, tt && (q === "id" || q === "name") && (Rt(U, l), Q = $n + Q), xt && ie(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, Q)) {
4984
- Rt(U, l);
5062
+ let H = h.length;
5063
+ for (; H--; ) {
5064
+ const { name: U, namespaceURI: ge, value: be } = h[H], q = Y(U), Ar = be;
5065
+ let Q = U === "value" ? Ar : wu(Ar);
5066
+ if (y.attrName = q, y.attrValue = Q, y.keepAttr = !0, y.forceKeepAttr = void 0, ot(X.uponSanitizeAttribute, l, y), Q = y.attrValue, tt && (q === "id" || q === "name") && (Ct(U, l), Q = zn + Q), Lt && ie(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, Q)) {
5067
+ Ct(U, l);
4985
5068
  continue;
4986
5069
  }
4987
- if (q === "attributename" && Kn(Q, "href")) {
4988
- Rt(U, l);
5070
+ if (q === "attributename" && Zn(Q, "href")) {
5071
+ Ct(U, l);
4989
5072
  continue;
4990
5073
  }
4991
5074
  if (y.forceKeepAttr) continue;
4992
5075
  if (!y.keepAttr) {
4993
- Rt(U, l);
5076
+ Ct(U, l);
4994
5077
  continue;
4995
5078
  }
4996
- if (!Kt && ie(/\/>/i, Q)) {
4997
- Rt(U, l);
5079
+ if (!Qt && ie(/\/>/i, Q)) {
5080
+ Ct(U, l);
4998
5081
  continue;
4999
5082
  }
5000
- Ze && xr([
5001
- kt,
5002
- St,
5003
- At
5004
- ], (qi) => {
5005
- Q = nr(Q, qi, " ");
5083
+ Ze && Rr([
5084
+ At,
5085
+ It,
5086
+ xt
5087
+ ], (Qi) => {
5088
+ Q = sr(Q, Qi, " ");
5006
5089
  });
5007
- const Yi = Y(l.nodeName);
5008
- if (!Wi(Yi, q, Q)) {
5009
- Rt(U, l);
5090
+ const Ji = Y(l.nodeName);
5091
+ if (!Yi(Ji, q, Q)) {
5092
+ Ct(U, l);
5010
5093
  continue;
5011
5094
  }
5012
- if (M && typeof v == "object" && typeof v.getAttributeType == "function" && !ge) switch (v.getAttributeType(Yi, q)) {
5095
+ if (M && typeof v == "object" && typeof v.getAttributeType == "function" && !ge) switch (v.getAttributeType(Ji, q)) {
5013
5096
  case "TrustedHTML":
5014
5097
  Q = M.createHTML(Q);
5015
5098
  break;
@@ -5017,136 +5100,115 @@ function ra() {
5017
5100
  Q = M.createScriptURL(Q);
5018
5101
  break;
5019
5102
  }
5020
- if (Q !== Er) try {
5021
- ge ? l.setAttributeNS(ge, U, Q) : l.setAttribute(U, Q), Nn(l) ? Le(l) : Oo(t.removed);
5103
+ if (Q !== Ar) try {
5104
+ ge ? l.setAttributeNS(ge, U, Q) : l.setAttribute(U, Q), Fn(l) ? Le(l) : Co(t.removed);
5022
5105
  } catch {
5023
- Rt(U, l);
5106
+ Ct(U, l);
5024
5107
  }
5025
5108
  }
5026
5109
  ot(X.afterSanitizeAttributes, l, null);
5027
- }, Vi = function(l) {
5110
+ }, Xi = function(l) {
5028
5111
  let h = null;
5029
- const y = Hi(l);
5112
+ const y = Gi(l);
5030
5113
  for (ot(X.beforeSanitizeShadowDOM, l, null); h = y.nextNode(); )
5031
- ot(X.uponSanitizeShadowNode, h, null), Bi(h), Gi(h), h.content instanceof o && Vi(h.content);
5114
+ ot(X.uponSanitizeShadowNode, h, null), Vi(h), Ki(h), h.content instanceof o && Xi(h.content);
5032
5115
  ot(X.afterSanitizeShadowDOM, l, null);
5033
5116
  };
5034
5117
  return t.sanitize = function(T) {
5035
- let l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, h = null, y = null, B = null, U = null;
5036
- if (yr = !T, yr && (T = "<!-->"), typeof T != "string" && !zn(T)) if (typeof T.toString == "function") {
5037
- if (T = T.toString(), typeof T != "string") throw Lr("dirty is not a string, aborting");
5038
- } else throw Lr("toString is not a function");
5118
+ let l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, h = null, y = null, H = null, U = null;
5119
+ if (Er = !T, Er && (T = "<!-->"), typeof T != "string" && !Bn(T)) if (typeof T.toString == "function") {
5120
+ if (T = T.toString(), typeof T != "string") throw Cr("dirty is not a string, aborting");
5121
+ } else throw Cr("toString is not a function");
5039
5122
  if (!t.isSupported) return T;
5040
- if (Ot || Dn(l), t.removed = [], typeof T == "string" && (Lt = !1), Lt) {
5123
+ if (Rt || Un(l), t.removed = [], typeof T == "string" && (Mt = !1), Mt) {
5041
5124
  if (T.nodeName) {
5042
5125
  const q = Y(T.nodeName);
5043
- if (!C[q] || It[q]) throw Lr("root node is forbidden and cannot be sanitized in-place");
5126
+ if (!C[q] || Ot[q]) throw Cr("root node is forbidden and cannot be sanitized in-place");
5044
5127
  }
5045
5128
  } else if (T instanceof a)
5046
- h = Fi("<!---->"), y = h.ownerDocument.importNode(T, !0), y.nodeType === Mr.element && y.nodeName === "BODY" || y.nodeName === "HTML" ? h = y : h.appendChild(y);
5129
+ h = Wi("<!---->"), y = h.ownerDocument.importNode(T, !0), y.nodeType === Pr.element && y.nodeName === "BODY" || y.nodeName === "HTML" ? h = y : h.appendChild(y);
5047
5130
  else {
5048
5131
  if (!vt && !Ze && !Oe && T.indexOf("<") === -1) return M && _t ? M.createHTML(T) : T;
5049
- if (h = Fi(T), !h) return vt ? null : _t ? le : "";
5132
+ if (h = Wi(T), !h) return vt ? null : _t ? le : "";
5050
5133
  }
5051
- h && Xt && Le(h.firstChild);
5052
- const ge = Hi(Lt ? T : h);
5053
- for (; B = ge.nextNode(); )
5054
- Bi(B), Gi(B), B.content instanceof o && Vi(B.content);
5055
- if (Lt) return T;
5134
+ h && Zt && Le(h.firstChild);
5135
+ const ge = Gi(Mt ? T : h);
5136
+ for (; H = ge.nextNode(); )
5137
+ Vi(H), Ki(H), H.content instanceof o && Xi(H.content);
5138
+ if (Mt) return T;
5056
5139
  if (vt) {
5057
5140
  if (Ze) {
5058
5141
  h.normalize();
5059
5142
  let q = h.innerHTML;
5060
- xr([
5061
- kt,
5062
- St,
5063
- At
5064
- ], (Er) => {
5065
- q = nr(q, Er, " ");
5143
+ Rr([
5144
+ At,
5145
+ It,
5146
+ xt
5147
+ ], (Ar) => {
5148
+ q = sr(q, Ar, " ");
5066
5149
  }), h.innerHTML = q;
5067
5150
  }
5068
5151
  if (et)
5069
- for (U = On.call(h.ownerDocument); h.firstChild; ) U.appendChild(h.firstChild);
5152
+ for (U = Mn.call(h.ownerDocument); h.firstChild; ) U.appendChild(h.firstChild);
5070
5153
  else U = h;
5071
- return (H.shadowroot || H.shadowrootmode) && (U = Rn.call(n, U, !0)), U;
5154
+ return (B.shadowroot || B.shadowrootmode) && (U = $n.call(n, U, !0)), U;
5072
5155
  }
5073
5156
  let be = Oe ? h.outerHTML : h.innerHTML;
5074
- return Oe && C["!doctype"] && h.ownerDocument && h.ownerDocument.doctype && h.ownerDocument.doctype.name && ie(ta, h.ownerDocument.doctype.name) && (be = "<!DOCTYPE " + h.ownerDocument.doctype.name + `>
5075
- ` + be), Ze && xr([
5076
- kt,
5077
- St,
5078
- At
5157
+ return Oe && C["!doctype"] && h.ownerDocument && h.ownerDocument.doctype && h.ownerDocument.doctype.name && ie(sa, h.ownerDocument.doctype.name) && (be = "<!DOCTYPE " + h.ownerDocument.doctype.name + `>
5158
+ ` + be), Ze && Rr([
5159
+ At,
5160
+ It,
5161
+ xt
5079
5162
  ], (q) => {
5080
- be = nr(be, q, " ");
5163
+ be = sr(be, q, " ");
5081
5164
  }), M && _t ? M.createHTML(be) : be;
5082
5165
  }, t.setConfig = function() {
5083
- Dn(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), Ot = !0;
5166
+ Un(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), Rt = !0;
5084
5167
  }, t.clearConfig = function() {
5085
- er = null, Ot = !1;
5168
+ nr = null, Rt = !1;
5086
5169
  }, t.isValidAttribute = function(T, l, h) {
5087
- return er || Dn({}), Wi(Y(T), Y(l), h);
5170
+ return nr || Un({}), Yi(Y(T), Y(l), h);
5088
5171
  }, t.addHook = function(T, l) {
5089
- typeof l == "function" && Or(X[T], l);
5172
+ typeof l == "function" && Mr(X[T], l);
5090
5173
  }, t.removeHook = function(T, l) {
5091
5174
  if (l !== void 0) {
5092
- const h = au(X[T], l);
5093
- return h === -1 ? void 0 : lu(X[T], h, 1)[0];
5175
+ const h = gu(X[T], l);
5176
+ return h === -1 ? void 0 : bu(X[T], h, 1)[0];
5094
5177
  }
5095
- return Oo(X[T]);
5178
+ return Co(X[T]);
5096
5179
  }, t.removeHooks = function(T) {
5097
5180
  X[T] = [];
5098
5181
  }, t.removeAllHooks = function() {
5099
- X = $o();
5182
+ X = Uo();
5100
5183
  }, t;
5101
5184
  }
5102
- var df = ra();
5103
- function Vt(e, t) {
5104
- const r = `[${e}]`;
5105
- return {
5106
- debug: (n, ...i) => {
5107
- t() && console.debug(r, n, ...i);
5108
- },
5109
- info: (n, ...i) => console.info(r, n, ...i),
5110
- warn: (n, ...i) => console.warn(r, n, ...i),
5111
- error: (n, ...i) => console.error(r, n, ...i)
5112
- };
5113
- }
5114
- function Yt() {
5115
- return typeof window < "u" && window.PIE_DEBUG === !0;
5116
- }
5117
- var gi;
5185
+ var Ef = aa(), Ti;
5118
5186
  (function(e) {
5119
5187
  e.player = "player.js", e.clientPlayer = "client-player.js", e.editor = "editor.js";
5120
- })(gi || (gi = {}));
5121
- var Do;
5188
+ })(Ti || (Ti = {}));
5189
+ var Fo;
5122
5190
  (function(e) {
5123
5191
  e.loading = "loading", e.loaded = "loaded";
5124
- })(Do || (Do = {}));
5125
- typeof window < "u" && !window.pieHelpers && (window.pieHelpers = {
5126
- loadingScripts: {},
5127
- loadingPromises: {},
5128
- globalLoadQueue: Promise.resolve(),
5129
- activeBundleUrl: null
5130
- });
5131
- var No;
5192
+ })(Fo || (Fo = {}));
5193
+ var kf = hu.timeoutMs, Bo;
5132
5194
  (function(e) {
5133
5195
  e.SAVE = "save", e.MODEL = "model", e.SCORE = "score", e.MANUAL_SCORE = "manual-score";
5134
- })(No || (No = {}));
5135
- var zo;
5196
+ })(Bo || (Bo = {}));
5197
+ var Ho;
5136
5198
  (function(e) {
5137
5199
  e.AUTO = "auto", e.MANUAL = "manual";
5138
- })(zo || (zo = {}));
5139
- var Uo;
5200
+ })(Ho || (Ho = {}));
5201
+ var jo;
5140
5202
  (function(e) {
5141
5203
  e.GATHER = "gather", e.VIEW = "view", e.EVALUATE = "evaluate";
5142
- })(Uo || (Uo = {}));
5143
- var Fo;
5204
+ })(jo || (jo = {}));
5205
+ var Wo;
5144
5206
  (function(e) {
5145
5207
  e.PENDING = "pending", e.IN_PROGRESS = "in_progress", e.COMPLETED = "completed", e.FAILED = "failed";
5146
- })(Fo || (Fo = {}));
5147
- var Su = class na extends CustomEvent {
5208
+ })(Wo || (Wo = {}));
5209
+ var Du = class la extends CustomEvent {
5148
5210
  constructor(t, r = !1) {
5149
- super(na.TYPE, {
5211
+ super(la.TYPE, {
5150
5212
  bubbles: !0,
5151
5213
  detail: {
5152
5214
  update: t,
@@ -5155,10 +5217,10 @@ var Su = class na extends CustomEvent {
5155
5217
  }), b(this, "update", void 0), b(this, "reset", void 0), this.update = t, this.reset = r;
5156
5218
  }
5157
5219
  };
5158
- b(Su, "TYPE", "model.updated");
5159
- var Au = class ia extends CustomEvent {
5220
+ b(Du, "TYPE", "model.updated");
5221
+ var Nu = class ca extends CustomEvent {
5160
5222
  constructor(t, r) {
5161
- super(ia.TYPE, {
5223
+ super(ca.TYPE, {
5162
5224
  bubbles: !0,
5163
5225
  detail: {
5164
5226
  src: t,
@@ -5167,19 +5229,19 @@ var Au = class ia extends CustomEvent {
5167
5229
  }), b(this, "src", void 0), b(this, "done", void 0), this.src = t, this.done = r;
5168
5230
  }
5169
5231
  };
5170
- b(Au, "TYPE", "delete.image");
5171
- var Iu = class oa extends CustomEvent {
5232
+ b(Nu, "TYPE", "delete.image");
5233
+ var zu = class ua extends CustomEvent {
5172
5234
  constructor(t) {
5173
- super(oa.TYPE, {
5235
+ super(ua.TYPE, {
5174
5236
  bubbles: !0,
5175
5237
  detail: t
5176
5238
  }), b(this, "handler", void 0), this.handler = t;
5177
5239
  }
5178
5240
  };
5179
- b(Iu, "TYPE", "insert.image");
5180
- var xu = class sa extends CustomEvent {
5241
+ b(zu, "TYPE", "insert.image");
5242
+ var Uu = class fa extends CustomEvent {
5181
5243
  constructor(t, r) {
5182
- super(sa.TYPE, {
5244
+ super(fa.TYPE, {
5183
5245
  bubbles: !0,
5184
5246
  detail: {
5185
5247
  src: t,
@@ -5188,19 +5250,19 @@ var xu = class sa extends CustomEvent {
5188
5250
  }), b(this, "src", void 0), b(this, "done", void 0), this.src = t, this.done = r;
5189
5251
  }
5190
5252
  };
5191
- b(xu, "TYPE", "delete.sound");
5192
- var Ou = class aa extends CustomEvent {
5253
+ b(Uu, "TYPE", "delete.sound");
5254
+ var Fu = class da extends CustomEvent {
5193
5255
  constructor(t) {
5194
- super(aa.TYPE, {
5256
+ super(da.TYPE, {
5195
5257
  bubbles: !0,
5196
5258
  detail: t
5197
5259
  }), b(this, "handler", void 0), this.handler = t;
5198
5260
  }
5199
5261
  };
5200
- b(Ou, "TYPE", "insert.sound");
5201
- var Lu = class la extends CustomEvent {
5262
+ b(Fu, "TYPE", "insert.sound");
5263
+ var Bu = class pa extends CustomEvent {
5202
5264
  constructor(t, r) {
5203
- super(la.TYPE, {
5265
+ super(pa.TYPE, {
5204
5266
  bubbles: !0,
5205
5267
  composed: !0,
5206
5268
  detail: {
@@ -5210,19 +5272,38 @@ var Lu = class la extends CustomEvent {
5210
5272
  }), b(this, "component", void 0), b(this, "complete", void 0), this.component = t, this.complete = r;
5211
5273
  }
5212
5274
  };
5213
- b(Lu, "TYPE", "session-changed");
5214
- var Ho;
5275
+ b(Bu, "TYPE", "session-changed");
5276
+ var Go;
5215
5277
  (function(e) {
5216
5278
  e[e.ROOT = 0] = "ROOT", e[e.SUBJECT = 1] = "SUBJECT", e[e.LEVEL = 2] = "LEVEL", e[e.STANDARD = 3] = "STANDARD";
5217
- })(Ho || (Ho = {}));
5218
- var pf = Vt("math-rendering", () => Yt()), hf = Vt("pie-scoring", () => Yt()), vf = Vt("pie-updates", () => Yt()), _f = Vt("pie-initialization", () => Yt()), mf = {
5219
- buildServiceBase: nu,
5220
- bundleType: gi.player,
5279
+ })(Go || (Go = {}));
5280
+ function Kt(e, t) {
5281
+ const r = `[${e}]`;
5282
+ return {
5283
+ debug: (n, ...i) => {
5284
+ t() && console.debug(r, n, ...i);
5285
+ },
5286
+ info: (n, ...i) => console.info(r, n, ...i),
5287
+ warn: (n, ...i) => console.warn(r, n, ...i),
5288
+ error: (n, ...i) => console.error(r, n, ...i)
5289
+ };
5290
+ }
5291
+ function Xt() {
5292
+ return typeof window < "u" && window.PIE_DEBUG === !0;
5293
+ }
5294
+ var Sf = Kt("math-rendering", () => Xt()), Af = Kt("pie-scoring", () => Xt()), If = Kt("pie-updates", () => Xt()), xf = Kt("pie-initialization", () => Xt()), Of = {
5295
+ buildServiceBase: pu,
5296
+ bundleType: Ti.player,
5221
5297
  env: {
5222
5298
  mode: "gather",
5223
5299
  role: "student"
5224
5300
  }
5225
- }, gf = Vt("instrumentation-event-bridge", () => Yt()), bf = Vt("instrumentation-provider-resolution", () => Yt()), yf = Vt("pie-overrides", () => Yt()), ca = [
5301
+ }, Lf = Kt("instrumentation-event-bridge", () => Xt()), Rf = Kt("instrumentation-provider-resolution", () => Xt()), Mf = Object.freeze([
5302
+ "composed",
5303
+ "engine-ready",
5304
+ "interactive",
5305
+ "disposed"
5306
+ ]), Cf = Kt("pie-overrides", () => Xt()), ha = [
5226
5307
  "a[href]",
5227
5308
  "button:not([disabled])",
5228
5309
  "input:not([disabled]):not([type='hidden'])",
@@ -5231,19 +5312,19 @@ var pf = Vt("math-rendering", () => Yt()), hf = Vt("pie-scoring", () => Yt()), v
5231
5312
  "[contenteditable]:not([contenteditable='false'])",
5232
5313
  "[tabindex]:not([tabindex='-1'])"
5233
5314
  ].join(",");
5234
- function Ru(e) {
5235
- return !e.matches(ca) || e.hasAttribute("disabled") || e.closest("[inert]") ? !1 : e.offsetParent !== null || e.getClientRects().length > 0;
5315
+ function Hu(e) {
5316
+ return !e.matches(ha) || e.hasAttribute("disabled") || e.closest("[inert]") ? !1 : e.offsetParent !== null || e.getClientRects().length > 0;
5236
5317
  }
5237
- function ua(e) {
5238
- return Array.from(e.querySelectorAll(ca)).filter((t) => Ru(t));
5318
+ function va(e) {
5319
+ return Array.from(e.querySelectorAll(ha)).filter((t) => Hu(t));
5239
5320
  }
5240
- function Mu(e, t) {
5321
+ function ju(e, t) {
5241
5322
  try {
5242
5323
  if (t && e.contains(t)) {
5243
5324
  t.focus();
5244
5325
  return;
5245
5326
  }
5246
- const r = ua(e);
5327
+ const r = va(e);
5247
5328
  if (r.length > 0) {
5248
5329
  r[0].focus();
5249
5330
  return;
@@ -5252,14 +5333,14 @@ function Mu(e, t) {
5252
5333
  } catch {
5253
5334
  }
5254
5335
  }
5255
- function Cu(e, t = {}) {
5336
+ function Wu(e, t = {}) {
5256
5337
  const r = typeof document < "u" ? document.activeElement : null, n = (i) => {
5257
5338
  if (i.key === "Escape") {
5258
5339
  t.onEscape?.();
5259
5340
  return;
5260
5341
  }
5261
5342
  if (i.key !== "Tab") return;
5262
- const o = ua(e);
5343
+ const o = va(e);
5263
5344
  if (!o.length) {
5264
5345
  i.preventDefault(), e.focus?.();
5265
5346
  return;
@@ -5271,7 +5352,7 @@ function Cu(e, t = {}) {
5271
5352
  }
5272
5353
  a === o.length - 1 && (i.preventDefault(), o[0].focus());
5273
5354
  };
5274
- return queueMicrotask(() => Mu(e, t.initialFocus)), e.addEventListener("keydown", n), () => {
5355
+ return queueMicrotask(() => ju(e, t.initialFocus)), e.addEventListener("keydown", n), () => {
5275
5356
  e.removeEventListener("keydown", n);
5276
5357
  try {
5277
5358
  r?.focus?.();
@@ -5279,7 +5360,7 @@ function Cu(e, t = {}) {
5279
5360
  }
5280
5361
  };
5281
5362
  }
5282
- var Pu = /* @__PURE__ */ Ke('<div class="pie-tool-text-to-speech__error-message svelte-xk676z"><svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 svelte-xk676z" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z" clip-rule="evenodd" class="svelte-xk676z"></path></svg> <span class="svelte-xk676z"> </span></div>'), $u = /* @__PURE__ */ Ke('<div class="pie-tool-text-to-speech__loading-message svelte-xk676z"><span class="svelte-xk676z">Initializing...</span></div>'), Du = /* @__PURE__ */ Ke('<div class="pie-tool-text-to-speech__selection-info svelte-xk676z"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 svelte-xk676z" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" class="svelte-xk676z"></path></svg> <span class="svelte-xk676z"> </span></div>'), Nu = /* @__PURE__ */ Ke('<p class="svelte-xk676z">Select text on the page to read it aloud.</p>'), zu = /* @__PURE__ */ Ke('<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 svelte-xk676z" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM9.555 7.168A1 1 0 008 8v4a1 1 0 001.555.832l3-2a1 1 0 000-1.664l-3-2z" clip-rule="evenodd" class="svelte-xk676z"></path></svg> <span class="svelte-xk676z">Resume</span>', 1), Uu = /* @__PURE__ */ Ke('<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 svelte-xk676z" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zM7 8a1 1 0 012 0v4a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v4a1 1 0 102 0V8a1 1 0 00-1-1z" clip-rule="evenodd" class="svelte-xk676z"></path></svg> <span class="svelte-xk676z">Pause</span>', 1), Fu = /* @__PURE__ */ Ke('<span class="pie-tool-text-to-speech__pulse svelte-xk676z"></span>'), Hu = /* @__PURE__ */ Ke('<div><div class="pie-tool-text-to-speech__status-icon svelte-xk676z"><!></div> <span class="svelte-xk676z"> </span></div>'), Bu = /* @__PURE__ */ Ke('<div class="pie-tool-text-to-speech__instructions svelte-xk676z"><!></div> <div class="pie-tool-text-to-speech__control-group svelte-xk676z"><label for="tts-speed" class="svelte-xk676z"><span class="svelte-xk676z">Speed:</span> <strong class="svelte-xk676z"> </strong></label> <input id="tts-speed" type="range" min="0.5" max="2.0" step="0.25" class="svelte-xk676z"/></div> <div class="pie-tool-text-to-speech__playback-controls svelte-xk676z"><button class="pie-tool-text-to-speech__button-primary svelte-xk676z" aria-label="Play" type="button"><svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 svelte-xk676z" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM9.555 7.168A1 1 0 008 8v4a1 1 0 001.555.832l3-2a1 1 0 000-1.664l-3-2z" clip-rule="evenodd" class="svelte-xk676z"></path></svg> <span class="svelte-xk676z">Play</span></button> <button class="pie-tool-text-to-speech__button-secondary svelte-xk676z" type="button"><!></button> <button class="pie-tool-text-to-speech__button-secondary svelte-xk676z" aria-label="Stop" type="button"><svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 svelte-xk676z" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM8 7a1 1 0 00-1 1v4a1 1 0 001 1h4a1 1 0 001-1V8a1 1 0 00-1-1H8z" clip-rule="evenodd" class="svelte-xk676z"></path></svg> <span class="svelte-xk676z">Stop</span></button></div> <!>', 1), Wu = /* @__PURE__ */ Ke('<div class="pie-tool-text-to-speech svelte-xk676z" role="dialog" aria-label="Text-to-Speech Tool" tabindex="-1"><div class="pie-tool-text-to-speech__header svelte-xk676z"><div class="pie-tool-text-to-speech__header-left svelte-xk676z"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 svelte-xk676z" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.536 8.464a5 5 0 010 7.072m2.828-9.9a9 9 0 010 12.728M5.858 18.142a3 3 0 104.243-4.242L12 12.142 7.757 7.899a3 3 0 000 4.242z" class="svelte-xk676z"></path></svg> <span class="pie-tool-text-to-speech__title svelte-xk676z">Text-to-Speech</span></div> <button class="pie-tool-text-to-speech__close-button svelte-xk676z" aria-label="Close" type="button">×</button></div> <div class="pie-tool-text-to-speech__content svelte-xk676z"><!></div></div>'), ju = {
5363
+ var Gu = /* @__PURE__ */ Ke('<div class="pie-tool-text-to-speech__error-message svelte-xk676z"><svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 svelte-xk676z" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z" clip-rule="evenodd" class="svelte-xk676z"></path></svg> <span class="svelte-xk676z"> </span></div>'), Vu = /* @__PURE__ */ Ke('<div class="pie-tool-text-to-speech__loading-message svelte-xk676z"><span class="svelte-xk676z">Initializing...</span></div>'), Yu = /* @__PURE__ */ Ke('<div class="pie-tool-text-to-speech__selection-info svelte-xk676z"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 svelte-xk676z" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" class="svelte-xk676z"></path></svg> <span class="svelte-xk676z"> </span></div>'), qu = /* @__PURE__ */ Ke('<p class="svelte-xk676z">Select text on the page to read it aloud.</p>'), Ku = /* @__PURE__ */ Ke('<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 svelte-xk676z" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM9.555 7.168A1 1 0 008 8v4a1 1 0 001.555.832l3-2a1 1 0 000-1.664l-3-2z" clip-rule="evenodd" class="svelte-xk676z"></path></svg> <span class="svelte-xk676z">Resume</span>', 1), Xu = /* @__PURE__ */ Ke('<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 svelte-xk676z" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zM7 8a1 1 0 012 0v4a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v4a1 1 0 102 0V8a1 1 0 00-1-1z" clip-rule="evenodd" class="svelte-xk676z"></path></svg> <span class="svelte-xk676z">Pause</span>', 1), Ju = /* @__PURE__ */ Ke('<span class="pie-tool-text-to-speech__pulse svelte-xk676z"></span>'), Qu = /* @__PURE__ */ Ke('<div><div class="pie-tool-text-to-speech__status-icon svelte-xk676z"><!></div> <span class="svelte-xk676z"> </span></div>'), Zu = /* @__PURE__ */ Ke('<div class="pie-tool-text-to-speech__instructions svelte-xk676z"><!></div> <div class="pie-tool-text-to-speech__control-group svelte-xk676z"><label for="tts-speed" class="svelte-xk676z"><span class="svelte-xk676z">Speed:</span> <strong class="svelte-xk676z"> </strong></label> <input id="tts-speed" type="range" min="0.5" max="2.0" step="0.25" class="svelte-xk676z"/></div> <div class="pie-tool-text-to-speech__playback-controls svelte-xk676z"><button class="pie-tool-text-to-speech__button-primary svelte-xk676z" aria-label="Play" type="button"><svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 svelte-xk676z" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM9.555 7.168A1 1 0 008 8v4a1 1 0 001.555.832l3-2a1 1 0 000-1.664l-3-2z" clip-rule="evenodd" class="svelte-xk676z"></path></svg> <span class="svelte-xk676z">Play</span></button> <button class="pie-tool-text-to-speech__button-secondary svelte-xk676z" type="button"><!></button> <button class="pie-tool-text-to-speech__button-secondary svelte-xk676z" aria-label="Stop" type="button"><svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 svelte-xk676z" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM8 7a1 1 0 00-1 1v4a1 1 0 001 1h4a1 1 0 001-1V8a1 1 0 00-1-1H8z" clip-rule="evenodd" class="svelte-xk676z"></path></svg> <span class="svelte-xk676z">Stop</span></button></div> <!>', 1), ef = /* @__PURE__ */ Ke('<div class="pie-tool-text-to-speech svelte-xk676z" role="dialog" aria-label="Text-to-Speech Tool" tabindex="-1"><div class="pie-tool-text-to-speech__header svelte-xk676z"><div class="pie-tool-text-to-speech__header-left svelte-xk676z"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 svelte-xk676z" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.536 8.464a5 5 0 010 7.072m2.828-9.9a9 9 0 010 12.728M5.858 18.142a3 3 0 104.243-4.242L12 12.142 7.757 7.899a3 3 0 000 4.242z" class="svelte-xk676z"></path></svg> <span class="pie-tool-text-to-speech__title svelte-xk676z">Text-to-Speech</span></div> <button class="pie-tool-text-to-speech__close-button svelte-xk676z" aria-label="Close" type="button">×</button></div> <div class="pie-tool-text-to-speech__content svelte-xk676z"><!></div></div>'), tf = {
5283
5364
  hash: "svelte-xk676z",
5284
5365
  code: `.pie-tool-text-to-speech.svelte-xk676z {position:fixed;width:300px;background:var(--pie-background, #fff);color:var(--pie-text, #111827);border:1px solid var(--pie-border-light, #cbd5e0);border-radius:8px;box-shadow:0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05);cursor:move;user-select:none;font-family:system-ui, -apple-system, sans-serif;}.pie-tool-text-to-speech__header.svelte-xk676z {display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:var(--pie-primary-dark, #283593);color:var(--pie-white, #fff);border-radius:8px 8px 0 0;cursor:move;}.pie-tool-text-to-speech__header-left.svelte-xk676z {display:flex;align-items:center;gap:8px;}.pie-tool-text-to-speech__title.svelte-xk676z {font-weight:600;font-size:14px;}.pie-tool-text-to-speech__close-button.svelte-xk676z {background:rgb(255 255 255 / 0.2);border:none;color:var(--pie-white, #fff);width:24px;height:24px;border-radius:4px;cursor:pointer;font-size:20px;line-height:1;display:flex;align-items:center;justify-content:center;transition:background-color 0.2s;}.pie-tool-text-to-speech__close-button.svelte-xk676z:hover {background:rgb(255 255 255 / 0.3);}.pie-tool-text-to-speech__content.svelte-xk676z {padding:16px;}.pie-tool-text-to-speech__error-message.svelte-xk676z,
5285
5366
  .pie-tool-text-to-speech__loading-message.svelte-xk676z {display:flex;align-items:center;gap:8px;padding:12px;border-radius:6px;font-size:13px;}.pie-tool-text-to-speech__error-message.svelte-xk676z {background:color-mix(in srgb, var(--pie-incorrect, #c33) 12%, transparent);color:var(--pie-incorrect-icon, #c33);border:1px solid color-mix(in srgb, var(--pie-incorrect, #c33) 30%, transparent);}.pie-tool-text-to-speech__loading-message.svelte-xk676z {background:var(--pie-secondary-background, #f0f4f8);color:var(--pie-text, #4a5568);justify-content:center;}.pie-tool-text-to-speech__instructions.svelte-xk676z {margin-bottom:16px;font-size:13px;color:var(--pie-text, #4a5568);}.pie-tool-text-to-speech__instructions.svelte-xk676z p:where(.svelte-xk676z) {margin:0;line-height:1.5;}.pie-tool-text-to-speech__selection-info.svelte-xk676z {display:flex;align-items:center;gap:6px;padding:8px 12px;background:color-mix(in srgb, var(--pie-correct, #10b981) 12%, transparent);border:1px solid color-mix(in srgb, var(--pie-correct, #10b981) 35%, transparent);border-radius:6px;color:var(--pie-correct-icon, #234e52);font-size:12px;}.pie-tool-text-to-speech__selection-info.svelte-xk676z svg:where(.svelte-xk676z) {flex-shrink:0;}.pie-tool-text-to-speech__control-group.svelte-xk676z {margin-bottom:16px;}.pie-tool-text-to-speech__control-group.svelte-xk676z label:where(.svelte-xk676z) {display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:13px;color:var(--pie-text, #4a5568);}.pie-tool-text-to-speech__control-group.svelte-xk676z label:where(.svelte-xk676z) strong:where(.svelte-xk676z) {color:var(--pie-primary, #667eea);font-weight:600;}.pie-tool-text-to-speech__control-group.svelte-xk676z input[type="range"]:where(.svelte-xk676z) {width:100%;height:6px;border-radius:3px;background:var(--pie-secondary-background, #e2e8f0);outline:none;-webkit-appearance:none;}.pie-tool-text-to-speech__control-group.svelte-xk676z input[type="range"]:where(.svelte-xk676z)::-webkit-slider-thumb {-webkit-appearance:none;width:18px;height:18px;border-radius:50%;background:var(--pie-primary, #667eea);cursor:pointer;transition:all 0.2s;}.pie-tool-text-to-speech__control-group.svelte-xk676z input[type="range"]:where(.svelte-xk676z)::-webkit-slider-thumb:hover {background:var(--pie-primary-dark, #764ba2);transform:scale(1.1);}.pie-tool-text-to-speech__control-group.svelte-xk676z input[type="range"]:where(.svelte-xk676z):disabled {opacity:0.5;cursor:not-allowed;}.pie-tool-text-to-speech__playback-controls.svelte-xk676z {display:flex;gap:8px;margin-bottom:12px;}.pie-tool-text-to-speech__playback-controls.svelte-xk676z button:where(.svelte-xk676z) {flex:1;display:flex;align-items:center;justify-content:center;gap:6px;padding:10px 12px;border:none;border-radius:6px;font-size:13px;font-weight:500;cursor:pointer;transition:all 0.2s;}.pie-tool-text-to-speech__playback-controls.svelte-xk676z button:where(.svelte-xk676z) svg:where(.svelte-xk676z) {flex-shrink:0;}.pie-tool-text-to-speech__button-primary.svelte-xk676z {background:var(--pie-primary, #667eea);color:var(--pie-white, #fff);}.pie-tool-text-to-speech__button-primary.svelte-xk676z:hover:not(:disabled) {transform:translateY(-1px);box-shadow:0 4px 6px color-mix(in srgb, var(--pie-primary, #667eea) 35%, transparent);}.pie-tool-text-to-speech__button-secondary.svelte-xk676z {background:var(--pie-button-bg, #f7fafc);color:var(--pie-button-color, #4a5568);border:1px solid var(--pie-button-border, #e2e8f0);}.pie-tool-text-to-speech__button-secondary.svelte-xk676z:hover:not(:disabled) {background:var(--pie-button-hover-bg, #edf2f7);}.pie-tool-text-to-speech__playback-controls.svelte-xk676z button:where(.svelte-xk676z):disabled {opacity:0.5;cursor:not-allowed;transform:none !important;}.pie-tool-text-to-speech__status-indicator.svelte-xk676z {display:flex;align-items:center;gap:8px;padding:8px 12px;background:color-mix(in srgb, var(--pie-correct, #4caf50) 10%, transparent);border:1px solid color-mix(in srgb, var(--pie-correct, #4caf50) 30%, transparent);border-radius:6px;font-size:12px;color:var(--pie-correct-icon, #166534);
@@ -5316,23 +5397,23 @@ var Pu = /* @__PURE__ */ Ke('<div class="pie-tool-text-to-speech__error-message
5316
5397
  animation: none !important;transition:none !important;}
5317
5398
  }`
5318
5399
  };
5319
- function Gu(e, t) {
5320
- Ko(t, !0), ql(e, ju);
5321
- let r = rn(t, "visible", 7, !1), n = rn(t, "toolId", 7, "textToSpeech"), i = rn(t, "coordinator", 7), o = rn(t, "ttsService", 7);
5400
+ function rf(e, t) {
5401
+ Zo(t, !0), Zl(e, tf);
5402
+ let r = sn(t, "visible", 7, !1), n = sn(t, "toolId", 7, "textToSpeech"), i = sn(t, "coordinator", 7), o = sn(t, "ttsService", 7);
5322
5403
  const s = typeof window < "u";
5323
- let a = /* @__PURE__ */ W(void 0), u = /* @__PURE__ */ W(void 0), f = /* @__PURE__ */ W(!1), d = /* @__PURE__ */ W(Tt({
5404
+ let a = /* @__PURE__ */ j(void 0), u = /* @__PURE__ */ j(void 0), f = /* @__PURE__ */ j(!1), d = /* @__PURE__ */ j(kt({
5324
5405
  x: s ? window.innerWidth - 320 : 400,
5325
5406
  y: 100
5326
- })), m = /* @__PURE__ */ W(Tt({
5407
+ })), m = /* @__PURE__ */ j(kt({
5327
5408
  x: 0,
5328
5409
  y: 0
5329
- })), p = /* @__PURE__ */ W(!1), v = /* @__PURE__ */ W(!1), _ = /* @__PURE__ */ W(!1), w = /* @__PURE__ */ W(""), E = /* @__PURE__ */ W(1), N = /* @__PURE__ */ W(!1), ne = /* @__PURE__ */ W(null), $ = /* @__PURE__ */ W(!1), M = null;
5330
- an(() => {
5331
- i() && n() && !g($) && (i().registerTool(n(), "Text-to-Speech", void 0, vi.MODAL), L($, !0));
5332
- }), Vl(async () => {
5410
+ })), p = /* @__PURE__ */ j(!1), v = /* @__PURE__ */ j(!1), _ = /* @__PURE__ */ j(!1), w = /* @__PURE__ */ j(""), E = /* @__PURE__ */ j(1), N = /* @__PURE__ */ j(!1), ne = /* @__PURE__ */ j(null), P = /* @__PURE__ */ j(!1), M = null;
5411
+ un(() => {
5412
+ i() && n() && !g(P) && (i().registerTool(n(), "Text-to-Speech", void 0, bi.MODAL), L(P, !0));
5413
+ }), Jl(async () => {
5333
5414
  if (s) {
5334
5415
  try {
5335
- const k = new Vs();
5416
+ const k = new Js();
5336
5417
  await o().initialize(k), L(p, !0);
5337
5418
  } catch (k) {
5338
5419
  console.error("[TTSTool] Failed to initialize TTS:", k), L(ne, k instanceof Error ? k.message : "Failed to initialize TTS", !0);
@@ -5341,16 +5422,16 @@ function Gu(e, t) {
5341
5422
  s && (document.removeEventListener("selectionchange", le), o().stop()), M?.(), M = null, i() && n() && i().unregisterTool(n());
5342
5423
  };
5343
5424
  }
5344
- }), an(() => {
5425
+ }), un(() => {
5345
5426
  i() && g(a) && n() && i().updateToolElement(n(), g(a));
5346
- }), an(() => {
5427
+ }), un(() => {
5347
5428
  if (!r() || !g(a)) {
5348
5429
  M?.(), M = null;
5349
5430
  return;
5350
5431
  }
5351
- return M?.(), M = Cu(g(a), {
5432
+ return M?.(), M = Wu(g(a), {
5352
5433
  initialFocus: g(u) || null,
5353
- onEscape: At
5434
+ onEscape: xt
5354
5435
  }), () => {
5355
5436
  M?.(), M = null;
5356
5437
  };
@@ -5376,145 +5457,145 @@ function Gu(e, t) {
5376
5457
  onEnd: () => {
5377
5458
  L(v, !1), L(_, !1);
5378
5459
  },
5379
- onError: (H) => {
5380
- console.error("[TTSTool] TTS error:", H), L(v, !1), L(_, !1);
5460
+ onError: (B) => {
5461
+ console.error("[TTSTool] TTS error:", B), L(v, !1), L(_, !1);
5381
5462
  }
5382
5463
  });
5383
5464
  } catch (k) {
5384
5465
  console.error("[TTSTool] Failed to speak:", k), L(v, !1), L(_, !1);
5385
5466
  }
5386
5467
  }
5387
- function xn() {
5468
+ function Rn() {
5388
5469
  g(v) && (g(_) ? (o().resume(), L(_, !1)) : (o().pause(), L(_, !0)));
5389
5470
  }
5390
- function On() {
5471
+ function Mn() {
5391
5472
  o().stop(), L(v, !1), L(_, !1);
5392
5473
  }
5393
- function Ln(k) {
5474
+ function Cn(k) {
5394
5475
  const C = k.target;
5395
5476
  L(E, parseFloat(C.value), !0);
5396
5477
  }
5397
- function Rn(k) {
5478
+ function $n(k) {
5398
5479
  k.target.closest("button, input, select") || X(k);
5399
5480
  }
5400
5481
  function X(k) {
5401
5482
  g(a) && (g(a).setPointerCapture(k.pointerId), L(f, !0), L(m, {
5402
5483
  x: k.clientX - g(d).x,
5403
5484
  y: k.clientY - g(d).y
5404
- }, !0), i()?.bringToFront(g(a)), g(a).addEventListener("pointermove", kt), g(a).addEventListener("pointerup", St), k.preventDefault());
5485
+ }, !0), i()?.bringToFront(g(a)), g(a).addEventListener("pointermove", At), g(a).addEventListener("pointerup", It), k.preventDefault());
5405
5486
  }
5406
- function kt(k) {
5487
+ function At(k) {
5407
5488
  g(f) && (L(d, {
5408
5489
  x: k.clientX - g(m).x,
5409
5490
  y: k.clientY - g(m).y
5410
5491
  }, !0), k.preventDefault());
5411
5492
  }
5412
- function St(k) {
5413
- g(f) && g(a) && (g(a).releasePointerCapture(k.pointerId), L(f, !1), g(a).removeEventListener("pointermove", kt), g(a).removeEventListener("pointerup", St));
5493
+ function It(k) {
5494
+ g(f) && g(a) && (g(a).releasePointerCapture(k.pointerId), L(f, !1), g(a).removeEventListener("pointermove", At), g(a).removeEventListener("pointerup", It));
5414
5495
  }
5415
- function At() {
5496
+ function xt() {
5416
5497
  i()?.hideTool(n());
5417
5498
  }
5418
- const Mn = /* @__PURE__ */ ul(() => g(E) === 0.5 ? "Slow" : g(E) === 0.75 ? "Slower" : g(E) === 1 ? "Normal" : g(E) === 1.25 ? "Faster" : g(E) === 1.5 ? "Fast" : g(E) === 2 ? "Very Fast" : `${g(E)}x`);
5419
- var Cn = {
5499
+ const Pn = /* @__PURE__ */ vl(() => g(E) === 0.5 ? "Slow" : g(E) === 0.75 ? "Slower" : g(E) === 1 ? "Normal" : g(E) === 1.25 ? "Faster" : g(E) === 1.5 ? "Fast" : g(E) === 2 ? "Very Fast" : `${g(E)}x`);
5500
+ var Dn = {
5420
5501
  get visible() {
5421
5502
  return r();
5422
5503
  },
5423
5504
  set visible(k = !1) {
5424
- r(k), Cr();
5505
+ r(k), Dr();
5425
5506
  },
5426
5507
  get toolId() {
5427
5508
  return n();
5428
5509
  },
5429
5510
  set toolId(k = "textToSpeech") {
5430
- n(k), Cr();
5511
+ n(k), Dr();
5431
5512
  },
5432
5513
  get coordinator() {
5433
5514
  return i();
5434
5515
  },
5435
5516
  set coordinator(k) {
5436
- i(k), Cr();
5517
+ i(k), Dr();
5437
5518
  },
5438
5519
  get ttsService() {
5439
5520
  return o();
5440
5521
  },
5441
5522
  set ttsService(k) {
5442
- o(k), Cr();
5523
+ o(k), Dr();
5443
5524
  }
5444
- }, Vr = zl(), Yr = so(Vr), Pn = (k) => {
5445
- var C = Wu(), ht = te(C), H = ye(te(ht), 2);
5446
- yo(H, (Z) => L(u, Z), () => g(u)), ee(ht);
5447
- var mr = ye(ht, 2), F = te(mr), It = (Z) => {
5448
- var ve = Pu(), Qe = ye(te(ve), 2), Kt = te(Qe, !0);
5449
- ee(Qe), ee(ve), Sr(() => en(Kt, g(ne))), de(Z, ve);
5450
- }, qt = (Z) => {
5451
- var ve = $u();
5525
+ }, Kr = jl(), Xr = uo(Kr), Nn = (k) => {
5526
+ var C = ef(), ht = te(C), B = ye(te(ht), 2);
5527
+ ko(B, (Z) => L(u, Z), () => g(u)), ee(ht);
5528
+ var yr = ye(ht, 2), F = te(yr), Ot = (Z) => {
5529
+ var ve = Gu(), Qe = ye(te(ve), 2), Qt = te(Qe, !0);
5530
+ ee(Qe), ee(ve), xr(() => nn(Qt, g(ne))), de(Z, ve);
5531
+ }, Jt = (Z) => {
5532
+ var ve = Vu();
5452
5533
  de(Z, ve);
5453
5534
  }, Ue = (Z) => {
5454
- var ve = Bu(), Qe = so(ve), Kt = te(Qe), Ze = (V) => {
5455
- var J = Du(), nt = ye(te(J), 2), mt = te(nt);
5456
- ee(nt), ee(J), Sr(() => en(mt, `${g(w).length ?? ""} characters selected`)), de(V, J);
5457
- }, xt = (V) => {
5458
- var J = Nu();
5535
+ var ve = Zu(), Qe = uo(ve), Qt = te(Qe), Ze = (V) => {
5536
+ var J = Yu(), nt = ye(te(J), 2), mt = te(nt);
5537
+ ee(nt), ee(J), xr(() => nn(mt, `${g(w).length ?? ""} characters selected`)), de(V, J);
5538
+ }, Lt = (V) => {
5539
+ var J = qu();
5459
5540
  de(V, J);
5460
5541
  };
5461
- rr(Kt, (V) => {
5462
- g(N) ? V(Ze) : V(xt, -1);
5542
+ or(Qt, (V) => {
5543
+ g(N) ? V(Ze) : V(Lt, -1);
5463
5544
  }), ee(Qe);
5464
- var Oe = ye(Qe, 2), Ot = te(Oe), Xt = ye(te(Ot), 2), vt = te(Xt, !0);
5465
- ee(Xt), ee(Ot);
5466
- var et = ye(Ot, 2);
5467
- nc(et), ee(Oe);
5468
- var _t = ye(Oe, 2), Jt = te(_t), tt = ye(Jt, 2), $n = te(tt), gr = (V) => {
5469
- var J = zu();
5470
- ei(2), de(V, J);
5471
- }, Lt = (V) => {
5472
- var J = Uu();
5473
- ei(2), de(V, J);
5545
+ var Oe = ye(Qe, 2), Rt = te(Oe), Zt = ye(te(Rt), 2), vt = te(Zt, !0);
5546
+ ee(Zt), ee(Rt);
5547
+ var et = ye(Rt, 2);
5548
+ lc(et), ee(Oe);
5549
+ var _t = ye(Oe, 2), er = te(_t), tt = ye(er, 2), zn = te(tt), wr = (V) => {
5550
+ var J = Ku();
5551
+ ii(2), de(V, J);
5552
+ }, Mt = (V) => {
5553
+ var J = Xu();
5554
+ ii(2), de(V, J);
5474
5555
  };
5475
- rr($n, (V) => {
5476
- g(_) ? V(gr) : V(Lt, -1);
5556
+ or(zn, (V) => {
5557
+ g(_) ? V(wr) : V(Mt, -1);
5477
5558
  }), ee(tt);
5478
5559
  var rt = ye(tt, 2);
5479
5560
  ee(_t);
5480
- var _e = ye(_t, 2), br = (V) => {
5481
- var J = Hu();
5561
+ var _e = ye(_t, 2), Tr = (V) => {
5562
+ var J = Qu();
5482
5563
  let nt;
5483
- var mt = te(J), Qt = te(mt), Zt = (Fe) => {
5484
- var wr = Nl("⏸");
5485
- de(Fe, wr);
5564
+ var mt = te(J), tr = te(mt), rr = (Fe) => {
5565
+ var kr = Hl("⏸");
5566
+ de(Fe, kr);
5486
5567
  }, me = (Fe) => {
5487
- var wr = Fu();
5488
- de(Fe, wr);
5568
+ var kr = Ju();
5569
+ de(Fe, kr);
5489
5570
  };
5490
- rr(Qt, (Fe) => {
5491
- g(_) ? Fe(Zt) : Fe(me, -1);
5571
+ or(tr, (Fe) => {
5572
+ g(_) ? Fe(rr) : Fe(me, -1);
5492
5573
  }), ee(mt);
5493
- var it = ye(mt, 2), yr = te(it, !0);
5494
- ee(it), ee(J), Sr(() => {
5495
- nt = Jl(J, 1, "pie-tool-text-to-speech__status-indicator svelte-xk676z", null, nt, { "pie-tool-text-to-speech__status-indicator--paused": g(_) }), en(yr, g(_) ? "Paused" : "Speaking...");
5574
+ var it = ye(mt, 2), Er = te(it, !0);
5575
+ ee(it), ee(J), xr(() => {
5576
+ nt = rc(J, 1, "pie-tool-text-to-speech__status-indicator svelte-xk676z", null, nt, { "pie-tool-text-to-speech__status-indicator--paused": g(_) }), nn(Er, g(_) ? "Paused" : "Speaking...");
5496
5577
  }), de(V, J);
5497
5578
  };
5498
- rr(_e, (V) => {
5499
- g(v) && V(br);
5500
- }), Sr(() => {
5501
- en(vt, g(Mn)), ic(et, g(E)), et.disabled = g(v), Jt.disabled = !g(N) || g(v), tt.disabled = !g(v), pi(tt, "aria-label", g(_) ? "Resume" : "Pause"), rt.disabled = !g(v);
5502
- }), tr("input", et, Ln), tr("click", Jt, Je), tr("click", tt, xn), tr("click", rt, On), de(Z, ve);
5579
+ or(_e, (V) => {
5580
+ g(v) && V(Tr);
5581
+ }), xr(() => {
5582
+ nn(vt, g(Pn)), cc(et, g(E)), et.disabled = g(v), er.disabled = !g(N) || g(v), tt.disabled = !g(v), mi(tt, "aria-label", g(_) ? "Resume" : "Pause"), rt.disabled = !g(v);
5583
+ }), ir("input", et, Cn), ir("click", er, Je), ir("click", tt, Rn), ir("click", rt, Mn), de(Z, ve);
5503
5584
  };
5504
- rr(F, (Z) => {
5505
- g(ne) ? Z(It) : g(p) ? Z(Ue, -1) : Z(qt, 1);
5506
- }), ee(mr), ee(C), yo(C, (Z) => L(a, Z), () => g(a)), Sr(() => Ql(C, `left: ${g(d).x ?? ""}px; top: ${g(d).y ?? ""}px;`)), tr("pointerdown", C, Rn), tr("click", H, At), de(k, C);
5585
+ or(F, (Z) => {
5586
+ g(ne) ? Z(Ot) : g(p) ? Z(Ue, -1) : Z(Jt, 1);
5587
+ }), ee(yr), ee(C), ko(C, (Z) => L(a, Z), () => g(a)), xr(() => nc(C, `left: ${g(d).x ?? ""}px; top: ${g(d).y ?? ""}px;`)), ir("pointerdown", C, $n), ir("click", B, xt), de(k, C);
5507
5588
  };
5508
- return rr(Yr, (k) => {
5509
- r() && s && k(Pn);
5510
- }), de(e, Vr), Xo(Cn);
5589
+ return or(Xr, (k) => {
5590
+ r() && s && k(Nn);
5591
+ }), de(e, Kr), es(Dn);
5511
5592
  }
5512
- Cl([
5593
+ zl([
5513
5594
  "pointerdown",
5514
5595
  "click",
5515
5596
  "input"
5516
5597
  ]);
5517
- customElements.define("pie-tool-text-to-speech", uc(Gu, {
5598
+ customElements.define("pie-tool-text-to-speech", vc(rf, {
5518
5599
  visible: {
5519
5600
  attribute: "visible",
5520
5601
  type: "Boolean"
@@ -5527,5 +5608,5 @@ customElements.define("pie-tool-text-to-speech", uc(Gu, {
5527
5608
  ttsService: {}
5528
5609
  }, [], [], { mode: "open" }));
5529
5610
  export {
5530
- Gu as default
5611
+ rf as default
5531
5612
  };