@pie-element/simple-cloze 0.1.4-next.9 → 0.1.4

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.
Files changed (48) hide show
  1. package/dist/author/index.d.ts +2 -18
  2. package/dist/author/index.js +1151 -456
  3. package/dist/author/index.js.map +1 -1
  4. package/dist/browser/author/index.js +3764 -3612
  5. package/dist/browser/author/index.js.map +1 -1
  6. package/dist/browser/{client-BSTc3boO.js → client-e4ZTphpa.js} +874 -680
  7. package/dist/browser/client-e4ZTphpa.js.map +1 -0
  8. package/dist/browser/controller/index.js +2 -62
  9. package/dist/browser/controller-1IBOQFFL.js +69 -0
  10. package/dist/browser/controller-1IBOQFFL.js.map +1 -0
  11. package/dist/browser/delivery/index.js +82 -82
  12. package/dist/browser/delivery/index.js.map +1 -1
  13. package/dist/browser/editor-runtime/author/index.js +634 -0
  14. package/dist/browser/editor-runtime/author/index.js.map +1 -0
  15. package/dist/browser/editor-runtime/client-e4ZTphpa.js +2370 -0
  16. package/dist/browser/editor-runtime/client-e4ZTphpa.js.map +1 -0
  17. package/dist/browser/editor-runtime/controller/index.js +2 -0
  18. package/dist/browser/editor-runtime/controller-1IBOQFFL.js +69 -0
  19. package/dist/browser/editor-runtime/controller-1IBOQFFL.js.map +1 -0
  20. package/dist/browser/editor-runtime/delivery/index.js +243 -0
  21. package/dist/browser/editor-runtime/delivery/index.js.map +1 -0
  22. package/dist/browser/{i18n-BaF24Jzw.js → editor-runtime/i18n-BTsdzpBv.js} +397 -252
  23. package/dist/browser/editor-runtime/i18n-BTsdzpBv.js.map +1 -0
  24. package/dist/browser/editor-runtime/plain-text-iaQZhkGe.js +53 -0
  25. package/dist/browser/editor-runtime/plain-text-iaQZhkGe.js.map +1 -0
  26. package/dist/browser/editor-runtime/print/index.js +71 -0
  27. package/dist/browser/editor-runtime/print/index.js.map +1 -0
  28. package/dist/browser/i18n-BTsdzpBv.js +1755 -0
  29. package/dist/browser/i18n-BTsdzpBv.js.map +1 -0
  30. package/dist/browser/print/index.js +37 -52
  31. package/dist/browser/print/index.js.map +1 -1
  32. package/dist/controller/defaults.d.ts +5 -0
  33. package/dist/controller/index.js +11 -4
  34. package/dist/controller/index.js.map +1 -1
  35. package/dist/delivery/index.js +366 -200
  36. package/dist/delivery/index.js.map +1 -1
  37. package/dist/index.d.ts +1 -1
  38. package/dist/index.iife.d.ts +1 -1
  39. package/dist/index.iife.js +4 -4
  40. package/dist/print/index.d.ts +2 -10
  41. package/dist/print/index.js +366 -221
  42. package/dist/print/index.js.map +1 -1
  43. package/module/print.js +928 -783
  44. package/module/print.js.map +1 -1
  45. package/package.json +22 -4
  46. package/dist/browser/client-BSTc3boO.js.map +0 -1
  47. package/dist/browser/controller/index.js.map +0 -1
  48. package/dist/browser/i18n-BaF24Jzw.js.map +0 -1
package/module/print.js CHANGED
@@ -1,7 +1,7 @@
1
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/disclose-version.js
1
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/disclose-version.js
2
2
  typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5");
3
3
  //#endregion
4
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/constants.js
4
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/constants.js
5
5
  var e = {}, t = Symbol("uninitialized"), n = "http://www.w3.org/1999/xhtml", r = "http://www.w3.org/2000/svg", i = "http://www.w3.org/1998/Math/MathML", a = Array.isArray, o = Array.prototype.indexOf, s = Array.prototype.includes, c = Array.from, l = Object.keys, u = Object.defineProperty, d = Object.getOwnPropertyDescriptor, f = Object.getOwnPropertyDescriptors, p = Object.prototype, m = Array.prototype, h = Object.getPrototypeOf, g = Object.isExtensible, ee = () => {};
6
6
  function _(e) {
7
7
  for (var t = 0; t < e.length; t++) e[t]();
@@ -16,46 +16,46 @@ function v() {
16
16
  reject: t
17
17
  };
18
18
  }
19
- var y = 1024, b = 2048, te = 4096, ne = 8192, re = 16384, x = 32768, S = 1 << 25, ie = 65536, ae = 1 << 19, oe = 1 << 20, se = 65536, ce = 1 << 21, le = 1 << 22, ue = 1 << 23, de = Symbol("$state"), fe = Symbol("component"), pe = Symbol("legacy props"), me = Symbol(""), he = Symbol("attributes"), ge = Symbol("class"), _e = Symbol("style"), ve = Symbol("text"), ye = new class extends Error {
19
+ var y = 1024, b = 2048, te = 4096, ne = 8192, re = 16384, x = 32768, S = 1 << 25, ie = 65536, ae = 1 << 19, oe = 1 << 20, se = 1 << 21, ce = 1 << 22, le = 1 << 23, ue = Symbol("$state"), de = Symbol("component"), fe = Symbol("legacy props"), pe = Symbol(""), me = Symbol("attributes"), he = Symbol("class"), ge = Symbol("style"), _e = Symbol("text"), ve = new class extends Error {
20
20
  name = "StaleReactionError";
21
21
  message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
22
- }(), be = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
23
- function xe() {
22
+ }(), ye = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
23
+ function be() {
24
24
  console.warn("https://svelte.dev/e/derived_inert");
25
25
  }
26
- function Se(e) {
26
+ function xe(e) {
27
27
  console.warn("https://svelte.dev/e/hydration_mismatch");
28
28
  }
29
- function Ce() {
29
+ function Se() {
30
30
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
31
31
  }
32
32
  //#endregion
33
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/hydration.js
33
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/hydration.js
34
34
  var C = !1;
35
- function we(e) {
35
+ function Ce(e) {
36
36
  C = e;
37
37
  }
38
38
  var w;
39
39
  function T(t) {
40
- if (t === null) throw Se(), e;
40
+ if (t === null) throw xe(), e;
41
41
  return w = t;
42
42
  }
43
- function Te() {
43
+ function we() {
44
44
  return T(/* @__PURE__ */ F(w));
45
45
  }
46
- function Ee(t) {
46
+ function Te(t) {
47
47
  if (C) {
48
- if (/* @__PURE__ */ F(w) !== null) throw Se(), e;
48
+ if (/* @__PURE__ */ F(w) !== null) throw xe(), e;
49
49
  w = t;
50
50
  }
51
51
  }
52
- function De(e = 1) {
52
+ function Ee(e = 1) {
53
53
  if (C) {
54
54
  for (var t = e, n = w; t--;) n = /* @__PURE__ */ F(n);
55
55
  w = n;
56
56
  }
57
57
  }
58
- function Oe(e = !0) {
58
+ function De(e = !0) {
59
59
  for (var t = 0, n = w;;) {
60
60
  if (n.nodeType === 8) {
61
61
  var r = n.data;
@@ -68,63 +68,63 @@ function Oe(e = !0) {
68
68
  e && n.remove(), n = i;
69
69
  }
70
70
  }
71
- function ke(t) {
72
- if (!t || t.nodeType !== 8) throw Se(), e;
71
+ function Oe(t) {
72
+ if (!t || t.nodeType !== 8) throw xe(), e;
73
73
  return t.data;
74
74
  }
75
75
  //#endregion
76
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/equality.js
77
- function Ae(e) {
76
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/equality.js
77
+ function ke(e) {
78
78
  return e === this.v;
79
79
  }
80
- function je(e, t) {
80
+ function Ae(e, t) {
81
81
  return e == e ? e !== t || typeof e == "object" && !!e || typeof e == "function" : t == t;
82
82
  }
83
- function Me(e) {
84
- return !je(e, this.v);
83
+ function je(e) {
84
+ return !Ae(e, this.v);
85
85
  }
86
86
  //#endregion
87
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/errors.js
88
- function Ne() {
87
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/errors.js
88
+ function Me() {
89
89
  throw Error("https://svelte.dev/e/async_derived_orphan");
90
90
  }
91
- function Pe(e) {
91
+ function Ne(e) {
92
92
  throw Error("https://svelte.dev/e/effect_in_teardown");
93
93
  }
94
- function Fe() {
94
+ function Pe() {
95
95
  throw Error("https://svelte.dev/e/effect_in_unowned_derived");
96
96
  }
97
- function Ie(e) {
97
+ function Fe(e) {
98
98
  throw Error("https://svelte.dev/e/effect_orphan");
99
99
  }
100
- function Le() {
100
+ function Ie() {
101
101
  throw Error("https://svelte.dev/e/effect_update_depth_exceeded");
102
102
  }
103
- function Re() {
103
+ function Le() {
104
104
  throw Error("https://svelte.dev/e/hydration_failed");
105
105
  }
106
- function ze(e) {
106
+ function Re(e) {
107
107
  throw Error("https://svelte.dev/e/props_invalid_value");
108
108
  }
109
- function Be() {
109
+ function ze() {
110
110
  throw Error("https://svelte.dev/e/state_descriptors_fixed");
111
111
  }
112
- function Ve() {
112
+ function Be() {
113
113
  throw Error("https://svelte.dev/e/state_prototype_fixed");
114
114
  }
115
- function He() {
115
+ function Ve() {
116
116
  throw Error("https://svelte.dev/e/state_unsafe_mutation");
117
117
  }
118
- function Ue() {
118
+ function He() {
119
119
  throw Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
120
120
  }
121
121
  //#endregion
122
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/context.js
122
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/context.js
123
123
  var E = null;
124
- function We(e) {
124
+ function Ue(e) {
125
125
  E = e;
126
126
  }
127
- function Ge(e, t = !1, n) {
127
+ function We(e, t = !1, n) {
128
128
  E = {
129
129
  p: E,
130
130
  i: !1,
@@ -136,70 +136,56 @@ function Ge(e, t = !1, n) {
136
136
  l: null
137
137
  };
138
138
  }
139
- function Ke(e) {
139
+ function Ge(e) {
140
140
  var t = E, n = t.e;
141
141
  if (n !== null) {
142
142
  t.e = null;
143
- for (var r of n) mn(r);
143
+ for (var r of n) fn(r);
144
144
  }
145
- return e !== void 0 && (t.x = e), t.i = !0, E = t.p, qe(e);
145
+ return e !== void 0 && (t.x = e), t.i = !0, E = t.p, Ke(e);
146
146
  }
147
- function qe(e = {}) {
148
- return u(e, fe, { value: !0 }), e;
147
+ function Ke(e = {}) {
148
+ return u(e, de, { value: !0 }), e;
149
149
  }
150
- function Je() {
150
+ function qe() {
151
151
  return !0;
152
152
  }
153
153
  //#endregion
154
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/task.js
155
- var Ye = [];
156
- function Xe() {
157
- var e = Ye;
158
- Ye = [], _(e);
159
- }
160
- function Ze(e) {
161
- if (Ye.length === 0 && !Ct) {
162
- var t = Ye;
154
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/task.js
155
+ var Je = [];
156
+ function Ye() {
157
+ var e = Je;
158
+ Je = [], _(e);
159
+ }
160
+ function Xe(e) {
161
+ if (Je.length === 0 && !yt) {
162
+ var t = Je;
163
163
  queueMicrotask(() => {
164
- t === Ye && Xe();
164
+ t === Je && Ye();
165
165
  });
166
166
  }
167
- Ye.push(e);
167
+ Je.push(e);
168
168
  }
169
- function Qe() {
170
- for (; Ye.length > 0;) Xe();
169
+ function Ze() {
170
+ for (; Je.length > 0;) Ye();
171
171
  }
172
172
  //#endregion
173
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/status.js
174
- var $e = ~(b | te | y);
173
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/status.js
174
+ var Qe = ~(b | te | y);
175
175
  function D(e, t) {
176
- e.f = e.f & $e | t;
176
+ e.f = e.f & Qe | t;
177
177
  }
178
- function et(e) {
178
+ function $e(e) {
179
179
  e.f & 512 || e.deps === null ? D(e, y) : D(e, te);
180
180
  }
181
181
  //#endregion
182
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/utils.js
183
- function tt(e) {
184
- if (e !== null) for (let t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^= se, tt(t.deps));
185
- }
186
- function nt(e, t, n) {
187
- e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), tt(e.deps), D(e, y);
188
- }
189
- //#endregion
190
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/store.js
191
- var rt = !1;
192
- function it(e) {
193
- var t = rt;
194
- try {
195
- return rt = !1, [e(), rt];
196
- } finally {
197
- rt = t;
198
- }
182
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/utils.js
183
+ function et(e, t, n) {
184
+ e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), D(e, y);
199
185
  }
200
186
  //#endregion
201
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
202
- function at(e) {
187
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
188
+ function tt(e) {
203
189
  var t = V, n = W;
204
190
  U(null), G(null);
205
191
  try {
@@ -209,15 +195,15 @@ function at(e) {
209
195
  }
210
196
  }
211
197
  //#endregion
212
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/async.js
213
- function ot(e, t, n, r) {
214
- let i = Je() ? ut : mt;
198
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/async.js
199
+ function nt(e, t, n, r) {
200
+ let i = qe() ? ot : ut;
215
201
  var a = e.filter((e) => !e.settled), o = t.map(i);
216
202
  if (n.length === 0 && a.length === 0) {
217
203
  r(o);
218
204
  return;
219
205
  }
220
- var s = W, c = st(), l = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
206
+ var s = W, c = rt(), l = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
221
207
  function u(e) {
222
208
  if (!(s.f & 16384)) {
223
209
  c();
@@ -226,44 +212,44 @@ function ot(e, t, n, r) {
226
212
  } catch (e) {
227
213
  I(e, s);
228
214
  }
229
- ct();
215
+ it();
230
216
  }
231
217
  }
232
- var d = lt();
218
+ var d = at();
233
219
  if (n.length === 0) {
234
220
  l.then(() => u([])).finally(d);
235
221
  return;
236
222
  }
237
223
  function f() {
238
- Promise.all(n.map((e) => /* @__PURE__ */ ft(e))).then(u).catch((e) => I(e, s)).finally(d);
224
+ Promise.all(n.map((e) => /* @__PURE__ */ ct(e))).then(u).catch((e) => I(e, s)).finally(d);
239
225
  }
240
226
  l ? l.then(() => {
241
- c(), f(), ct();
227
+ c(), f(), it();
242
228
  }) : f();
243
229
  }
244
- function st() {
230
+ function rt() {
245
231
  var e = W, t = V, n = E, r = O;
246
232
  return function(i = !0) {
247
- G(e), U(t), We(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
233
+ G(e), U(t), Ue(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
248
234
  };
249
235
  }
250
- function ct(e = !0) {
251
- G(null), U(null), We(null), e && O?.deactivate();
236
+ function it(e = !0) {
237
+ G(null), U(null), Ue(null), e && O?.deactivate();
252
238
  }
253
- function lt() {
239
+ function at() {
254
240
  var e = W, t = e.b, n = O, r = !!t?.is_rendered();
255
241
  return t?.update_pending_count(1, n), n.increment(r, e), () => {
256
242
  t?.update_pending_count(-1, n), n.decrement(r, e);
257
243
  };
258
244
  }
259
245
  /*#__NO_SIDE_EFFECTS__*/
260
- function ut(e) {
246
+ function ot(e) {
261
247
  var n = 2 | b;
262
248
  return W !== null && (W.f |= ae), {
263
249
  ctx: E,
264
250
  deps: null,
265
251
  effects: null,
266
- equals: Ae,
252
+ equals: ke,
267
253
  f: n,
268
254
  fn: e,
269
255
  reactions: null,
@@ -274,35 +260,35 @@ function ut(e) {
274
260
  ac: null
275
261
  };
276
262
  }
277
- var dt = Symbol("obsolete");
263
+ var st = Symbol("obsolete");
278
264
  /*#__NO_SIDE_EFFECTS__*/
279
- function ft(e, n, r) {
265
+ function ct(e, n, r) {
280
266
  let i = W;
281
- i === null && Ne();
282
- var a = void 0, o = Bt(t), s = !V, c = /* @__PURE__ */ new Set();
283
- return vn(() => {
267
+ i === null && Me();
268
+ var a = void 0, o = It(t), s = !V, c = /* @__PURE__ */ new Set();
269
+ return gn(() => {
284
270
  var t = W, n = v();
285
271
  a = n.promise;
286
272
  try {
287
273
  Promise.resolve(e()).then(n.resolve, (e) => {
288
- e !== ye && n.reject(e);
289
- }).finally(ct);
274
+ e !== ve && n.reject(e);
275
+ }).finally(it);
290
276
  } catch (e) {
291
- n.reject(e), ct();
277
+ n.reject(e), it();
292
278
  }
293
279
  var r = O;
294
280
  if (s) {
295
- if (t.f & 32768) var l = lt();
296
- if (i.b?.is_rendered()) r.async_deriveds.get(t)?.reject(dt);
297
- else for (let e of c.values()) e.reject(dt);
281
+ if (t.f & 32768) var l = at();
282
+ if (i.b?.is_rendered()) r.async_deriveds.get(t)?.reject(st);
283
+ else for (let e of c.values()) e.reject(st);
298
284
  c.add(n), r.async_deriveds.set(t, n);
299
285
  }
300
286
  let u = (e, t = void 0) => {
301
- l?.(), c.delete(n), t !== dt && (r.activate(), t ? (o.f |= ue, Ht(o, t)) : (o.f & 8388608 && (o.f ^= ue), Ht(o, e)), r.deactivate());
287
+ l?.(), c.delete(n), t !== st && (r.activate(), t ? (o.f |= le, Bt(o, t)) : (o.f & 8388608 && (o.f ^= le), Bt(o, e)), r.deactivate());
302
288
  };
303
289
  n.promise.then(u, (e) => u(null, e || "unknown"));
304
- }), fn(() => {
305
- for (let e of c) e.reject(dt);
290
+ }), un(() => {
291
+ for (let e of c) e.reject(st);
306
292
  }), new Promise((e) => {
307
293
  function t(n) {
308
294
  function r() {
@@ -314,53 +300,53 @@ function ft(e, n, r) {
314
300
  });
315
301
  }
316
302
  /*#__NO_SIDE_EFFECTS__*/
317
- function pt(e) {
318
- let t = /* @__PURE__ */ ut(e);
319
- return Fn(t), t;
303
+ function lt(e) {
304
+ let t = /* @__PURE__ */ ot(e);
305
+ return Nn(t), t;
320
306
  }
321
307
  /*#__NO_SIDE_EFFECTS__*/
322
- function mt(e) {
323
- let t = /* @__PURE__ */ ut(e);
324
- return t.equals = Me, t;
308
+ function ut(e) {
309
+ let t = /* @__PURE__ */ ot(e);
310
+ return t.equals = je, t;
325
311
  }
326
- function ht(e) {
312
+ function dt(e) {
327
313
  var t = e.effects;
328
314
  if (t !== null) {
329
315
  e.effects = null;
330
316
  for (var n = 0; n < t.length; n += 1) z(t[n]);
331
317
  }
332
318
  }
333
- function gt(e) {
319
+ function ft(e) {
334
320
  var n, r = W, i = e.parent;
335
- if (!B && i !== null && e.v !== t && i.f & 24576) return xe(), e.v;
321
+ if (!B && i !== null && e.v !== t && i.f & 24576) return be(), e.v;
336
322
  G(i);
337
323
  try {
338
- e.f &= ~se, ht(e), n = Wn(e);
324
+ dt(e), n = Hn(e);
339
325
  } finally {
340
326
  G(r);
341
327
  }
342
328
  return n;
343
329
  }
344
- function _t(e) {
345
- var t = gt(e);
346
- if (!e.equals(t) && (e.wv = Vn(), (!O?.is_fork || e.deps === null) && (O === null ? e.v = t : (O.capture(e, t, !0), xt?.capture(e, t, !0)), e.deps === null))) {
330
+ function pt(e) {
331
+ var t = ft(e);
332
+ if (!e.equals(t) && (e.wv = zn(), (!O?.is_fork || e.deps === null) && (O === null ? e.v = t : (O.capture(e, t, !0), _t?.capture(e, t, !0)), e.deps === null))) {
347
333
  D(e, y);
348
334
  return;
349
335
  }
350
- B || (k === null ? et(e) : (dn() || O?.is_fork) && k.set(e, t));
336
+ B || (k === null ? $e(e) : (ln() || O?.is_fork) && k.set(e, t));
351
337
  }
352
- function vt(e) {
353
- if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && at(() => {
354
- t.ac.abort(ye), t.ac = null;
355
- }), t.fn !== null && (t.teardown = ee), qn(t, 0), Cn(t));
338
+ function mt(e) {
339
+ if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && tt(() => {
340
+ t.ac.abort(ve), t.ac = null;
341
+ }), t.fn !== null && (t.teardown = ee), Gn(t, 0), xn(t));
356
342
  }
357
- function yt(e) {
358
- if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && Jn(t);
343
+ function ht(e) {
344
+ if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && Kn(t);
359
345
  }
360
346
  //#endregion
361
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/batch.js
362
- var bt = null, O = null, xt = null, k = null, St = null, Ct = !1, wt = !1, Tt = null, Et = null, Dt = 0, Ot = 1, kt = class e {
363
- id = Ot++;
347
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/batch.js
348
+ var gt = null, O = null, _t = null, k = null, vt = null, yt = !1, bt = !1, xt = null, St = null, Ct = 0, wt = 1, Tt = class e {
349
+ id = wt++;
364
350
  #e = !1;
365
351
  linked = !0;
366
352
  #t = null;
@@ -382,7 +368,7 @@ var bt = null, O = null, xt = null, k = null, St = null, Ct = !1, wt = !1, Tt =
382
368
  is_fork = !1;
383
369
  #m = !1;
384
370
  constructor() {
385
- bt === null ? bt = this : (bt.#n = this, this.#t = bt), bt = this;
371
+ gt === null ? gt = this : (gt.#n = this, this.#t = gt), gt = this;
386
372
  }
387
373
  #h() {
388
374
  if (this.is_fork) return !0;
@@ -414,48 +400,67 @@ var bt = null, O = null, xt = null, k = null, St = null, Ct = !1, wt = !1, Tt =
414
400
  this.#p.add(e);
415
401
  }
416
402
  #g() {
417
- this.#e = !0, Dt++ > 1e3 && (this.#x(), jt());
403
+ var e = [];
404
+ for (let i of this.#c) if (!(i.f & 16384 || !(i.f & 6144))) {
405
+ for (var t = i, n = !1; t.parent !== null;) {
406
+ t = t.parent;
407
+ var r = t.f;
408
+ if (r & 96) {
409
+ if (!(r & 1024)) {
410
+ n = !0;
411
+ break;
412
+ }
413
+ t.f ^= y;
414
+ }
415
+ }
416
+ n || e.push(t);
417
+ }
418
+ return this.#c = [], e;
419
+ }
420
+ #_() {
421
+ this.#e = !0;
418
422
  for (let e of this.#u) this.#d.delete(e), D(e, b), this.schedule(e);
419
423
  for (let e of this.#d) D(e, te), this.schedule(e);
420
- let t = this.#c;
421
- this.#c = [], this.apply();
422
- var n = Tt = [], r = [], i = Et = [];
423
- for (let e of t) try {
424
- this.#_(e, n, r);
425
- } catch (t) {
426
- throw Lt(e), this.#h() || this.discard(), t;
424
+ this.apply();
425
+ for (var t = xt = [], n = [], r = St = []; this.#c.length > 0;) {
426
+ Ct++ > 1e3 && (this.#S(), Dt());
427
+ for (let e of this.#g()) try {
428
+ this.#v(e, t, n);
429
+ } catch (t) {
430
+ throw Nt(e), this.#h() || this.discard(), t;
431
+ }
427
432
  }
428
- if (O = null, i.length > 0) {
429
- var a = e.ensure();
430
- for (let e of i) a.schedule(e);
433
+ if (O = null, r.length > 0) {
434
+ var i = e.ensure();
435
+ for (let e of r) i.schedule(e);
431
436
  }
432
- if (Tt = null, Et = null, this.#h()) {
433
- this.#b(r), this.#b(n);
434
- for (let [e, t] of this.#f) It(e, t);
435
- i.length > 0 && O.#g();
437
+ if (xt = null, St = null, this.#h()) {
438
+ this.#x(n), this.#x(t);
439
+ for (let [e, t] of this.#f) Mt(e, t);
440
+ r.length > 0 && O.#_();
436
441
  return;
437
442
  }
438
- let o = this.#v();
439
- if (o) {
440
- this.#b(r), this.#b(n), o.#y(this);
443
+ let a = this.#y();
444
+ if (a) {
445
+ this.#x(n), this.#x(t), a.#b(this);
441
446
  return;
442
447
  }
443
448
  this.#u.clear(), this.#d.clear();
444
449
  for (let e of this.#r) e(this);
445
- this.#r.clear(), xt = this, Mt(r), Mt(n), xt = null, this.#s?.resolve();
446
- var s = O;
447
- if (this.#a === 0 && (this.#c.length === 0 || s !== null) && this.#x(), this.#c.length > 0) if (s !== null) {
448
- let e = s;
449
- e.#c.push(...this.#c.filter((t) => !e.#c.includes(t)));
450
- } else s = this;
451
- s !== null && (j.clear(), s.#g());
452
- }
453
- #_(e, t, n) {
450
+ this.#r.clear(), _t = this, Ot(n), Ot(t), _t = null, this.#s?.resolve();
451
+ var o = O;
452
+ if (this.#a === 0 && (this.#c.length === 0 || o !== null) && this.#S(), this.#c.length > 0) if (o !== null) {
453
+ for (let e of this.#c) o.#c.push(e);
454
+ this.#c = [];
455
+ } else o = this;
456
+ o !== null && (j.clear(), o.#_());
457
+ }
458
+ #v(e, t, n) {
454
459
  e.f ^= y;
455
460
  for (var r = e.first; r !== null;) {
456
461
  var i = r.f, a = (i & 96) != 0;
457
462
  if (!(a && i & 1024 || i & 8192 || this.#f.has(r)) && r.fn !== null) {
458
- a ? r.f ^= y : i & 4 ? t.push(r) : Hn(r) && (i & 16 && this.#d.add(r), Jn(r));
463
+ a ? r.f ^= y : i & 4 ? t.push(r) : Bn(r) && (i & 16 && this.#d.add(r), Kn(r));
459
464
  var o = r.first;
460
465
  if (o !== null) {
461
466
  r = o;
@@ -472,7 +477,7 @@ var bt = null, O = null, xt = null, k = null, St = null, Ct = !1, wt = !1, Tt =
472
477
  }
473
478
  }
474
479
  }
475
- #v() {
480
+ #y() {
476
481
  for (var e = this.#t; e !== null;) {
477
482
  if (!e.is_fork) {
478
483
  for (let [t, [, n]] of this.current) if (e.current.has(t) && !n) return e;
@@ -481,7 +486,7 @@ var bt = null, O = null, xt = null, k = null, St = null, Ct = !1, wt = !1, Tt =
481
486
  }
482
487
  return null;
483
488
  }
484
- #y(e) {
489
+ #b(e) {
485
490
  for (let [t, n] of e.current) !this.previous.has(t) && e.previous.has(t) && this.previous.set(t, e.previous.get(t)), this.current.set(t, n);
486
491
  for (let [t, n] of e.async_deriveds) {
487
492
  let e = this.async_deriveds.get(t);
@@ -500,10 +505,10 @@ var bt = null, O = null, xt = null, k = null, St = null, Ct = !1, wt = !1, Tt =
500
505
  }
501
506
  };
502
507
  for (let e of this.current.keys()) t(e);
503
- this.oncommit(() => e.discard()), e.#x(), O = this, this.#g();
508
+ this.oncommit(() => e.discard()), e.#S(), O = this, this.#_();
504
509
  }
505
- #b(e) {
506
- for (var t = 0; t < e.length; t += 1) nt(e[t], this.#u, this.#d);
510
+ #x(e) {
511
+ for (var t = 0; t < e.length; t += 1) et(e[t], this.#u, this.#d);
507
512
  }
508
513
  capture(e, n, r = !1) {
509
514
  e.v !== t && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [n, r]), k?.set(e, n)), this.is_fork || (e.v = n);
@@ -516,16 +521,16 @@ var bt = null, O = null, xt = null, k = null, St = null, Ct = !1, wt = !1, Tt =
516
521
  }
517
522
  flush() {
518
523
  try {
519
- wt = !0, O = this, this.#g();
524
+ bt = !0, O = this, this.#_();
520
525
  } finally {
521
- Dt = 0, St = null, Tt = null, Et = null, wt = !1, O = null, k = null, j.clear();
526
+ Ct = 0, vt = null, xt = null, St = null, bt = !1, O = null, k = null, j.clear();
522
527
  }
523
528
  }
524
529
  discard() {
525
530
  for (let e of this.#i) e(this);
526
531
  this.#i.clear();
527
- for (let e of this.async_deriveds.values()) e.reject(dt);
528
- this.#x(), this.#s?.resolve();
532
+ for (let e of this.async_deriveds.values()) e.reject(st);
533
+ this.#S(), this.#s?.resolve();
529
534
  }
530
535
  register_created_effect(e) {
531
536
  this.#l.push(e);
@@ -541,7 +546,7 @@ var bt = null, O = null, xt = null, k = null, St = null, Ct = !1, wt = !1, Tt =
541
546
  let e = this.#o.get(t) ?? 0;
542
547
  e === 1 ? this.#o.delete(t) : this.#o.set(t, e - 1);
543
548
  }
544
- this.#m || (this.#m = !0, Ze(() => {
549
+ this.#m || (this.#m = !0, Xe(() => {
545
550
  this.#m = !1, this.linked && this.flush();
546
551
  }));
547
552
  }
@@ -562,7 +567,7 @@ var bt = null, O = null, xt = null, k = null, St = null, Ct = !1, wt = !1, Tt =
562
567
  static ensure() {
563
568
  if (O === null) {
564
569
  let t = O = new e();
565
- !wt && !Ct && Ze(() => {
570
+ !bt && !yt && Xe(() => {
566
571
  t.#e || t.flush();
567
572
  });
568
573
  }
@@ -572,55 +577,46 @@ var bt = null, O = null, xt = null, k = null, St = null, Ct = !1, wt = !1, Tt =
572
577
  k = null;
573
578
  }
574
579
  schedule(e) {
575
- if (St = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
580
+ if (vt = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
576
581
  e.b.defer_effect(e);
577
582
  return;
578
583
  }
579
- for (var t = e; t.parent !== null;) {
580
- t = t.parent;
581
- var n = t.f;
582
- if (Tt !== null && t === W && (V === null || !(V.f & 2))) return;
583
- if (n & 96) {
584
- if (!(n & 1024)) return;
585
- t.f ^= y;
586
- }
587
- }
588
- this.#c.push(t);
584
+ this.#c.push(e);
589
585
  }
590
- #x() {
586
+ #S() {
591
587
  if (this.linked) {
592
588
  var e = this.#t, t = this.#n;
593
- e === null || (e.#n = t), t === null ? bt = e : t.#t = e, this.linked = !1;
589
+ e === null || (e.#n = t), t === null ? gt = e : t.#t = e, this.linked = !1;
594
590
  }
595
591
  }
596
592
  };
597
- function At(e) {
598
- var t = Ct;
599
- Ct = !0;
593
+ function Et(e) {
594
+ var t = yt;
595
+ yt = !0;
600
596
  try {
601
597
  var n;
602
598
  for (e && (O !== null && !O.is_fork && O.flush(), n = e());;) {
603
- if (Qe(), O === null) return n;
599
+ if (Ze(), O === null) return n;
604
600
  O.flush();
605
601
  }
606
602
  } finally {
607
- Ct = t;
603
+ yt = t;
608
604
  }
609
605
  }
610
- function jt() {
606
+ function Dt() {
611
607
  try {
612
- Le();
608
+ Ie();
613
609
  } catch (e) {
614
- I(e, St);
610
+ I(e, vt);
615
611
  }
616
612
  }
617
613
  var A = null;
618
- function Mt(e) {
614
+ function Ot(e) {
619
615
  var t = e.length;
620
616
  if (t !== 0) {
621
617
  for (var n = 0; n < t;) {
622
618
  var r = e[n++];
623
- if (!(r.f & 24576) && Hn(r) && (A = /* @__PURE__ */ new Set(), Jn(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && En(r), A?.size > 0)) {
619
+ if (!(r.f & 24576) && Bn(r) && (A = /* @__PURE__ */ new Set(), Kn(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && wn(r), A?.size > 0)) {
624
620
  j.clear();
625
621
  for (let e of A) {
626
622
  if (e.f & 24576) continue;
@@ -628,7 +624,7 @@ function Mt(e) {
628
624
  for (; n !== null;) A.has(n) && (A.delete(n), t.push(n)), n = n.parent;
629
625
  for (let e = t.length - 1; e >= 0; e--) {
630
626
  let n = t[e];
631
- n.f & 24576 || Jn(n);
627
+ n.f & 24576 || Kn(n);
632
628
  }
633
629
  }
634
630
  A.clear();
@@ -637,120 +633,128 @@ function Mt(e) {
637
633
  A = null;
638
634
  }
639
635
  }
640
- function Nt(e, t, n, r) {
636
+ function kt(e, t, n, r) {
641
637
  if (!n.has(e) && (n.add(e), e.reactions !== null)) for (let i of e.reactions) {
642
638
  let e = i.f;
643
- e & 2 ? Nt(i, t, n, r) : e & 4194320 && !(e & 2048) && Pt(i, t, r) && (D(i, b), Ft(i));
639
+ e & 2 ? kt(i, t, n, r) : e & 4194320 && !(e & 2048) && At(i, t, r) && (D(i, b), jt(i));
644
640
  }
645
641
  }
646
- function Pt(e, t, n) {
642
+ function At(e, t, n) {
647
643
  let r = n.get(e);
648
644
  if (r !== void 0) return r;
649
645
  if (e.deps !== null) for (let r of e.deps) {
650
646
  if (s.call(t, r)) return !0;
651
- if (r.f & 2 && Pt(r, t, n)) return n.set(r, !0), !0;
647
+ if (r.f & 2 && At(r, t, n)) return n.set(r, !0), !0;
652
648
  }
653
649
  return n.set(e, !1), !1;
654
650
  }
655
- function Ft(e) {
651
+ function jt(e) {
656
652
  O.schedule(e);
657
653
  }
658
- function It(e, t) {
654
+ function Mt(e, t) {
659
655
  if (!(e.f & 32 && e.f & 1024)) {
660
656
  e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), D(e, y);
661
- for (var n = e.first; n !== null;) It(n, t), n = n.next;
657
+ for (var n = e.first; n !== null;) Mt(n, t), n = n.next;
662
658
  }
663
659
  }
664
- function Lt(e) {
660
+ function Nt(e) {
665
661
  D(e, y);
666
- for (var t = e.first; t !== null;) Lt(t), t = t.next;
662
+ for (var t = e.first; t !== null;) Nt(t), t = t.next;
667
663
  }
668
664
  //#endregion
669
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/sources.js
670
- var Rt = /* @__PURE__ */ new Set(), j = /* @__PURE__ */ new Map(), zt = !1;
671
- function Bt(e, t) {
665
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/sources.js
666
+ var Pt = /* @__PURE__ */ new Set(), j = /* @__PURE__ */ new Map(), Ft = !1;
667
+ function It(e, t) {
672
668
  return {
673
669
  f: 0,
674
670
  v: e,
675
671
  reactions: null,
676
- equals: Ae,
672
+ equals: ke,
677
673
  rv: 0,
678
674
  wv: 0
679
675
  };
680
676
  }
681
677
  /*#__NO_SIDE_EFFECTS__*/
682
678
  function M(e, t) {
683
- let n = Bt(e, t);
684
- return Fn(n), n;
679
+ let n = It(e, t);
680
+ return Nn(n), n;
685
681
  }
686
682
  /*#__NO_SIDE_EFFECTS__*/
687
- function Vt(e, t = !1, n = !0) {
688
- let r = Bt(e);
689
- return t || (r.equals = Me), r;
683
+ function Lt(e, t = !1, n = !0) {
684
+ let r = It(e);
685
+ return t || (r.equals = je), r;
690
686
  }
691
687
  function N(e, t, n = !1) {
692
- return V !== null && (!H || V.f & 131072) && Je() && V.f & 4325394 && (K === null || !K.has(e)) && He(), Ht(e, n ? Kt(t) : t, Et);
688
+ return V !== null && (!H || V.f & 131072) && qe() && V.f & 4325394 && (K === null || !K.has(e)) && Ve(), Bt(e, n ? Wt(t) : t, St);
693
689
  }
694
- function Ht(e, t, n = null) {
690
+ var Rt = null, zt = 0;
691
+ function Bt(e, t, n = null) {
695
692
  if (!e.equals(t)) {
696
693
  B ? j.set(e, t) : j.has(e) || j.set(e, e.v);
697
- var r = kt.ensure();
694
+ var r = Tt.ensure();
698
695
  if (r.capture(e, t), e.f & 2) {
699
696
  let t = e;
700
- e.f & 2048 && gt(t), k === null && et(t);
697
+ e.f & 2048 && ft(t), k === null && $e(t);
701
698
  }
702
- e.wv = Vn(), Gt(e, b, n), Je() && W !== null && W.f & 1024 && !(W.f & 96) && (Y === null ? In([e]) : Y.push(e)), !r.is_fork && Rt.size > 0 && !zt && Ut();
699
+ e.wv = zn(), Rt = null, zt = 0, Ut(e, b, n), Rt = null, qe() && W !== null && W.f & 1024 && !(W.f & 96) && (Y === null ? Pn([e]) : Y.push(e)), !r.is_fork && Pt.size > 0 && !Ft && Vt();
703
700
  }
704
701
  return t;
705
702
  }
706
- function Ut() {
707
- zt = !1;
708
- for (let e of Rt) {
703
+ function Vt() {
704
+ Ft = !1;
705
+ for (let e of Pt) {
709
706
  e.f & 1024 && D(e, te);
710
707
  let t;
711
708
  try {
712
- t = Hn(e);
709
+ t = Bn(e);
713
710
  } catch {
714
711
  t = !0;
715
712
  }
716
- t && Jn(e);
713
+ t && Kn(e);
717
714
  }
718
- Rt.clear();
715
+ Pt.clear();
719
716
  }
720
- function Wt(e) {
717
+ function Ht(e) {
721
718
  N(e, e.v + 1);
722
719
  }
723
- function Gt(e, t, n) {
720
+ function Ut(e, t, n) {
724
721
  var r = e.reactions;
725
- if (r !== null) for (var i = Je(), a = r.length, o = 0; o < a; o++) {
726
- var s = r[o], c = s.f;
727
- if (!(!i && s === W)) {
728
- var l = (c & b) === 0;
729
- if (l && D(s, t), c & 131072) Rt.add(s);
730
- else if (c & 2) {
731
- var u = s;
732
- k?.delete(u), c & 65536 || (c & 512 && (W === null || !(W.f & 2097152)) && (s.f |= se), Gt(u, te, n));
733
- } else if (l) {
734
- var d = s;
735
- c & 16 && A !== null && A.add(d), n === null ? Ft(d) : n.push(d);
722
+ if (r !== null) {
723
+ var i = qe(), a = r.length;
724
+ if (zt += a, zt > 1e5 && Rt === null && (Rt = /* @__PURE__ */ new Set()), Rt !== null) {
725
+ if (Rt.has(e)) return;
726
+ Rt.add(e);
727
+ }
728
+ for (var o = 0; o < a; o++) {
729
+ var s = r[o], c = s.f;
730
+ if (!(!i && s === W)) {
731
+ var l = (c & b) === 0;
732
+ if (l && D(s, t), c & 131072) Pt.add(s);
733
+ else if (c & 2) {
734
+ var u = s;
735
+ k?.delete(u), Ut(u, te, n);
736
+ } else if (l) {
737
+ var d = s;
738
+ c & 16 && A !== null && A.add(d), n === null ? jt(d) : n.push(d);
739
+ }
736
740
  }
737
741
  }
738
742
  }
739
743
  }
740
- function Kt(e) {
741
- if (typeof e != "object" || !e || de in e || fe in e) return e;
744
+ function Wt(e) {
745
+ if (typeof e != "object" || !e || ue in e || de in e) return e;
742
746
  let n = h(e);
743
747
  if (n !== p && n !== m) return e;
744
- var r = /* @__PURE__ */ new Map(), i = a(e), o = /* @__PURE__ */ M(0), s = null, c = zn, l = (e) => {
745
- if (zn === c) return e();
746
- var t = V, n = zn;
747
- U(null), Bn(c);
748
+ var r = /* @__PURE__ */ new Map(), i = a(e), o = /* @__PURE__ */ M(0), s = null, c = Ln, l = (e) => {
749
+ if (Ln === c) return e();
750
+ var t = V, n = Ln;
751
+ U(null), Rn(c);
748
752
  var r = e();
749
- return U(t), Bn(n), r;
753
+ return U(t), Rn(n), r;
750
754
  };
751
755
  return i && r.set("length", /* @__PURE__ */ M(e.length, s)), new Proxy(e, {
752
756
  defineProperty(e, t, n) {
753
- (!("value" in n) || n.configurable === !1 || n.enumerable === !1 || n.writable === !1) && Be();
757
+ (!("value" in n) || n.configurable === !1 || n.enumerable === !1 || n.writable === !1) && ze();
754
758
  var i = r.get(t);
755
759
  return i === void 0 ? l(() => {
756
760
  var e = /* @__PURE__ */ M(n.value, s);
@@ -762,40 +766,40 @@ function Kt(e) {
762
766
  if (i === void 0) {
763
767
  if (n in e) {
764
768
  let e = l(() => /* @__PURE__ */ M(t, s));
765
- r.set(n, e), Wt(o);
769
+ r.set(n, e), Ht(o);
766
770
  }
767
- } else N(i, t), Wt(o);
771
+ } else N(i, t), Ht(o);
768
772
  return !0;
769
773
  },
770
774
  get(n, i, a) {
771
- if (i === de) return e;
775
+ if (i === ue) return e;
772
776
  var o = r.get(i), c = i in n;
773
- if (o === void 0 && (!c || d(n, i)?.writable) && (o = l(() => /* @__PURE__ */ M(Kt(c ? n[i] : t), s)), r.set(i, o)), o !== void 0) {
777
+ if (o === void 0 && (!c || d(n, i)?.writable) && (o = l(() => /* @__PURE__ */ M(Wt(c ? n[i] : t), s)), r.set(i, o)), o !== void 0) {
774
778
  var u = X(o);
775
779
  return u === t ? void 0 : u;
776
780
  }
777
781
  return Reflect.get(n, i, a);
778
782
  },
779
783
  getOwnPropertyDescriptor(e, n) {
780
- var i = Reflect.getOwnPropertyDescriptor(e, n);
781
- if (i && "value" in i) {
782
- var a = r.get(n);
783
- a && (i.value = X(a));
784
- } else if (i === void 0) {
785
- var o = r.get(n), s = o?.v;
786
- if (o !== void 0 && s !== t) return {
784
+ this.has?.(e, n);
785
+ var i = Reflect.getOwnPropertyDescriptor(e, n), a = r.get(n);
786
+ if (a !== void 0) {
787
+ var o = X(a);
788
+ if (o === t) return;
789
+ if (i && "value" in i) i.value = o;
790
+ else return {
787
791
  enumerable: !0,
788
792
  configurable: !0,
789
- value: s,
793
+ value: o,
790
794
  writable: !0
791
795
  };
792
796
  }
793
797
  return i;
794
798
  },
795
799
  has(e, n) {
796
- if (n === de) return !0;
800
+ if (n === ue) return !0;
797
801
  var i = r.get(n), a = i !== void 0 && i.v !== t || Reflect.has(e, n);
798
- return (i !== void 0 || W !== null && (!a || d(e, n)?.writable)) && (i === void 0 && (i = l(() => /* @__PURE__ */ M(a ? Kt(e[n]) : t, s)), r.set(n, i)), X(i) === t) ? !1 : a;
802
+ return (i !== void 0 || W !== null && (!a || d(e, n)?.writable)) && (i === void 0 && (i = l(() => /* @__PURE__ */ M(a ? Wt(e[n]) : t, s)), r.set(n, i)), X(i) === t) ? !1 : a;
799
803
  },
800
804
  set(e, n, a, c) {
801
805
  var u = r.get(n), f = n in e;
@@ -803,10 +807,10 @@ function Kt(e) {
803
807
  var m = r.get(p + "");
804
808
  m === void 0 ? p in e && (m = l(() => /* @__PURE__ */ M(t, s)), r.set(p + "", m)) : N(m, t);
805
809
  }
806
- if (u === void 0) (!f || d(e, n)?.writable) && (u = l(() => /* @__PURE__ */ M(void 0, s)), N(u, Kt(a)), r.set(n, u));
810
+ if (u === void 0) (!f || d(e, n)?.writable) && (u = l(() => /* @__PURE__ */ M(void 0, s)), N(u, Wt(a)), r.set(n, u));
807
811
  else {
808
812
  f = u.v !== t;
809
- var h = l(() => Kt(a));
813
+ var h = l(() => Wt(a));
810
814
  N(u, h);
811
815
  }
812
816
  var g = Reflect.getOwnPropertyDescriptor(e, n);
@@ -815,7 +819,7 @@ function Kt(e) {
815
819
  var ee = r.get("length"), _ = Number(n);
816
820
  Number.isInteger(_) && _ >= ee.v && N(ee, _ + 1);
817
821
  }
818
- Wt(o);
822
+ Ht(o);
819
823
  }
820
824
  return !0;
821
825
  },
@@ -829,88 +833,88 @@ function Kt(e) {
829
833
  return n;
830
834
  },
831
835
  setPrototypeOf() {
832
- Ve();
836
+ Be();
833
837
  }
834
838
  });
835
839
  }
836
- var qt, Jt, Yt, Xt;
837
- function Zt() {
838
- if (qt === void 0) {
839
- qt = window, Jt = /Firefox/.test(navigator.userAgent);
840
+ var Gt, Kt, qt, Jt;
841
+ function Yt() {
842
+ if (Gt === void 0) {
843
+ Gt = window, Kt = /Firefox/.test(navigator.userAgent);
840
844
  var e = Element.prototype, t = Node.prototype, n = Text.prototype;
841
- Yt = d(t, "firstChild").get, Xt = d(t, "nextSibling").get, g(e) && (e[ge] = void 0, e[he] = null, e[_e] = void 0, e.__e = void 0), g(n) && (n[ve] = void 0);
845
+ qt = d(t, "firstChild").get, Jt = d(t, "nextSibling").get, g(e) && (e[he] = void 0, e[me] = null, e[ge] = void 0, e.__e = void 0), g(n) && (n[_e] = void 0);
842
846
  }
843
847
  }
844
- function Qt(e = "") {
848
+ function Xt(e = "") {
845
849
  return document.createTextNode(e);
846
850
  }
847
851
  /*@__NO_SIDE_EFFECTS__*/
848
852
  function P(e) {
849
- return Yt.call(e);
853
+ return qt.call(e);
850
854
  }
851
855
  /*@__NO_SIDE_EFFECTS__*/
852
856
  function F(e) {
853
- return Xt.call(e);
857
+ return Jt.call(e);
854
858
  }
855
- function $t(e, t) {
859
+ function Zt(e, t) {
856
860
  if (!C) return /* @__PURE__ */ P(e);
857
861
  var n = /* @__PURE__ */ P(w);
858
- if (n === null) n = w.appendChild(Qt());
862
+ if (n === null) n = w.appendChild(Xt());
859
863
  else if (t && n.nodeType !== 3) {
860
- var r = Qt();
864
+ var r = Xt();
861
865
  return n?.before(r), T(r), r;
862
866
  }
863
- return t && sn(n), T(n), n;
867
+ return t && an(n), T(n), n;
864
868
  }
865
- function en(e, t = !1) {
869
+ function Qt(e, t = !1) {
866
870
  if (!C) {
867
871
  var n = /* @__PURE__ */ P(e);
868
872
  return n instanceof Comment && n.data === "" ? /* @__PURE__ */ F(n) : n;
869
873
  }
870
874
  if (t) {
871
875
  if (w?.nodeType !== 3) {
872
- var r = Qt();
876
+ var r = Xt();
873
877
  return w?.before(r), T(r), r;
874
878
  }
875
- sn(w);
879
+ an(w);
876
880
  }
877
881
  return w;
878
882
  }
879
- function tn(e, t = !1) {
883
+ function $t(e, t = !1) {
880
884
  if (!C) return /* @__PURE__ */ P(e);
881
- var n = $t(e, t);
882
- return Ee(e), n;
885
+ var n = Zt(e, t);
886
+ return Te(e), n;
883
887
  }
884
- function nn(e, t = 1, n = !1) {
888
+ function en(e, t = 1, n = !1) {
885
889
  let r = C ? w : e;
886
890
  for (var i; t--;) i = r, r = /* @__PURE__ */ F(r);
887
891
  if (!C) return r;
888
892
  if (n) {
889
893
  if (r?.nodeType !== 3) {
890
- var a = Qt();
894
+ var a = Xt();
891
895
  return r === null ? i?.after(a) : r.before(a), T(a), a;
892
896
  }
893
- sn(r);
897
+ an(r);
894
898
  }
895
899
  return T(r), r;
896
900
  }
897
- function rn(e) {
901
+ function tn(e) {
898
902
  e.textContent = "";
899
903
  }
900
- function an() {
904
+ function nn() {
901
905
  return !1;
902
906
  }
903
- function on(e, t, n) {
907
+ function rn(e, t, n) {
904
908
  return t == null || t === "http://www.w3.org/1999/xhtml" ? n ? document.createElement(e, { is: n }) : document.createElement(e) : n ? document.createElementNS(t, e, { is: n }) : document.createElementNS(t, e);
905
909
  }
906
- function sn(e) {
910
+ function an(e) {
907
911
  if (e.nodeValue.length < 65536) return;
908
912
  let t = e.nextSibling;
909
913
  for (; t !== null && t.nodeType === 3;) t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
910
914
  }
911
- function cn(e) {
915
+ function on(e) {
912
916
  var t = W;
913
- if (t === null) return V.f |= ue, e;
917
+ if (t === null) return V.f |= le, e;
914
918
  if (!(t.f & 32768) && !(t.f & 4)) throw e;
915
919
  I(e, t);
916
920
  }
@@ -932,11 +936,11 @@ function I(e, t) {
932
936
  }
933
937
  }
934
938
  //#endregion
935
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/effects.js
936
- function ln(e) {
937
- W === null && (V === null && Ie(e), Fe()), B && Pe(e);
939
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/effects.js
940
+ function sn(e) {
941
+ W === null && (V === null && Fe(e), Pe()), B && Ne(e);
938
942
  }
939
- function un(e, t) {
943
+ function cn(e, t) {
940
944
  var n = t.last;
941
945
  n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
942
946
  }
@@ -961,103 +965,103 @@ function L(e, t) {
961
965
  };
962
966
  O?.register_created_effect(r);
963
967
  var i = r;
964
- if (e & 4) Tt === null ? kt.ensure().schedule(r) : Tt.push(r);
968
+ if (e & 4) xt === null ? Tt.ensure().schedule(r) : xt.push(r);
965
969
  else if (t !== null) {
966
970
  try {
967
- Jn(r);
971
+ Kn(r);
968
972
  } catch (e) {
969
973
  throw z(r), e;
970
974
  }
971
975
  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 |= ie));
972
976
  }
973
- if (i !== null && (i.parent = n, n !== null && un(i, n), V !== null && V.f & 2 && !(e & 64))) {
977
+ if (i !== null && (i.parent = n, n !== null && cn(i, n), V !== null && V.f & 2 && !(e & 64))) {
974
978
  var a = V;
975
979
  (a.effects ??= []).push(i);
976
980
  }
977
981
  return r;
978
982
  }
979
- function dn() {
983
+ function ln() {
980
984
  return V !== null && !H;
981
985
  }
982
- function fn(e) {
986
+ function un(e) {
983
987
  let t = L(8, null);
984
988
  return D(t, y), t.teardown = e, t;
985
989
  }
986
- function pn(e) {
987
- ln("$effect");
990
+ function dn(e) {
991
+ sn("$effect");
988
992
  var t = W.f;
989
993
  if (!V && t & 32 && E !== null && !E.i) {
990
994
  var n = E;
991
995
  (n.e ??= []).push(e);
992
- } else return mn(e);
996
+ } else return fn(e);
993
997
  }
994
- function mn(e) {
998
+ function fn(e) {
995
999
  return L(4 | oe, e);
996
1000
  }
997
- function hn(e) {
998
- kt.ensure();
1001
+ function pn(e) {
1002
+ Tt.ensure();
999
1003
  let t = L(64 | ae, e);
1000
1004
  return () => {
1001
1005
  z(t);
1002
1006
  };
1003
1007
  }
1004
- function gn(e) {
1005
- kt.ensure();
1008
+ function mn(e) {
1009
+ Tt.ensure();
1006
1010
  let t = L(64 | ae, e);
1007
1011
  return (e = {}) => new Promise((n) => {
1008
- e.outro ? Dn(t, () => {
1012
+ e.outro ? Tn(t, () => {
1009
1013
  z(t), n(void 0);
1010
1014
  }) : (z(t), n(void 0));
1011
1015
  });
1012
1016
  }
1013
- function _n(e) {
1017
+ function hn(e) {
1014
1018
  return L(4, e);
1015
1019
  }
1016
- function vn(e) {
1017
- return L(le | ae, e);
1020
+ function gn(e) {
1021
+ return L(ce | ae, e);
1018
1022
  }
1019
- function yn(e, t = 0) {
1023
+ function _n(e, t = 0) {
1020
1024
  return L(8 | t, e);
1021
1025
  }
1022
- function bn(e, t = [], n = [], r = []) {
1023
- ot(r, t, n, (t) => {
1026
+ function vn(e, t = [], n = [], r = []) {
1027
+ nt(r, t, n, (t) => {
1024
1028
  L(8, () => {
1025
1029
  e(...t.map(X));
1026
1030
  });
1027
1031
  });
1028
1032
  }
1029
- function xn(e, t = 0) {
1033
+ function yn(e, t = 0) {
1030
1034
  return L(16 | t, e);
1031
1035
  }
1032
1036
  function R(e) {
1033
1037
  return L(32 | ae, e);
1034
1038
  }
1035
- function Sn(e) {
1039
+ function bn(e) {
1036
1040
  var t = e.teardown;
1037
1041
  if (t !== null) {
1038
1042
  let n = B, r = V;
1039
- Pn(!0), U(null);
1043
+ Mn(!0), U(null);
1040
1044
  try {
1041
1045
  t.call(null);
1042
1046
  } catch (t) {
1043
1047
  I(t, e.parent);
1044
1048
  } finally {
1045
- Pn(n), U(r);
1049
+ Mn(n), U(r);
1046
1050
  }
1047
1051
  }
1048
1052
  }
1049
- function Cn(e, t = !1) {
1053
+ function xn(e, t = !1) {
1050
1054
  var n = e.first;
1051
1055
  for (e.first = e.last = null; n !== null;) {
1052
1056
  let e = n.ac;
1053
- e !== null && at(() => {
1054
- e.abort(ye);
1057
+ e !== null && tt(() => {
1058
+ e.abort(ve);
1055
1059
  });
1056
1060
  var r = n.next;
1057
1061
  n.f & 64 ? n.parent = null : z(n, t), n = r;
1058
1062
  }
1059
1063
  }
1060
- function wn(e) {
1064
+ function Sn(e) {
1061
1065
  for (var t = e.first; t !== null;) {
1062
1066
  var n = t.next;
1063
1067
  t.f & 32 || z(t), t = n;
@@ -1065,26 +1069,26 @@ function wn(e) {
1065
1069
  }
1066
1070
  function z(e, t = !0) {
1067
1071
  var n = !1;
1068
- (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (Tn(e.nodes.start, e.nodes.end), n = !0), e.f |= S, Cn(e, t && !n), qn(e, 0);
1072
+ (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (Cn(e.nodes.start, e.nodes.end), n = !0), e.f |= S, xn(e, t && !n), Gn(e, 0);
1069
1073
  var r = e.nodes && e.nodes.t;
1070
1074
  if (r !== null) for (let e of r) e.stop();
1071
- Sn(e), e.f ^= S, e.f |= re;
1075
+ bn(e), e.f ^= S, e.f |= re;
1072
1076
  var i = e.parent;
1073
- i !== null && i.first !== null && En(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1077
+ i !== null && i.first !== null && wn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1074
1078
  }
1075
- function Tn(e, t) {
1079
+ function Cn(e, t) {
1076
1080
  for (; e !== null;) {
1077
1081
  var n = e === t ? null : /* @__PURE__ */ F(e);
1078
1082
  e.remove(), e = n;
1079
1083
  }
1080
1084
  }
1081
- function En(e) {
1085
+ function wn(e) {
1082
1086
  var t = e.parent, n = e.prev, r = e.next;
1083
1087
  n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
1084
1088
  }
1085
- function Dn(e, t, n = !0) {
1089
+ function Tn(e, t, n = !0) {
1086
1090
  var r = [];
1087
- e.f |= 256, On(e, r, !0);
1091
+ e.f |= 256, En(e, r, !0);
1088
1092
  var i = () => {
1089
1093
  n && z(e), t && t();
1090
1094
  }, a = r.length;
@@ -1093,7 +1097,7 @@ function Dn(e, t, n = !0) {
1093
1097
  for (var s of r) s.out(o);
1094
1098
  } else i();
1095
1099
  }
1096
- function On(e, t, n) {
1100
+ function En(e, t, n) {
1097
1101
  if (!(e.f & 8192)) {
1098
1102
  e.f ^= ne;
1099
1103
  var r = e.nodes && e.nodes.t;
@@ -1102,36 +1106,36 @@ function On(e, t, n) {
1102
1106
  var a = i.next;
1103
1107
  if (!(i.f & 64)) {
1104
1108
  var o = (i.f & 65536) != 0 || (i.f & 32) != 0 && (e.f & 16) != 0;
1105
- On(i, t, o ? n : !1);
1109
+ En(i, t, o ? n : !1);
1106
1110
  }
1107
1111
  i = a;
1108
1112
  }
1109
1113
  }
1110
1114
  }
1111
- function kn(e) {
1112
- e.f &= -257, An(e, !0);
1115
+ function Dn(e) {
1116
+ e.f &= -257, On(e, !0);
1113
1117
  }
1114
- function An(e, t) {
1118
+ function On(e, t) {
1115
1119
  if (!(e.f & 256) && e.f & 8192) {
1116
- e.f ^= ne, e.f & 1024 || (D(e, b), kt.ensure().schedule(e));
1120
+ e.f ^= ne, e.f & 1024 || (D(e, b), Tt.ensure().schedule(e));
1117
1121
  for (var n = e.first; n !== null;) {
1118
1122
  var r = n.next, i = (n.f & 65536) != 0 || (n.f & 32) != 0;
1119
- An(n, i ? t : !1), n = r;
1123
+ On(n, i ? t : !1), n = r;
1120
1124
  }
1121
1125
  var a = e.nodes && e.nodes.t;
1122
1126
  if (a !== null) for (let e of a) (e.is_global || t) && e.in();
1123
1127
  }
1124
1128
  }
1125
- function jn(e, t) {
1129
+ function kn(e, t) {
1126
1130
  if (e.nodes) for (var n = e.nodes.start, r = e.nodes.end; n !== null;) {
1127
1131
  var i = n === r ? null : /* @__PURE__ */ F(n);
1128
1132
  t.append(n), n = i;
1129
1133
  }
1130
1134
  }
1131
1135
  //#endregion
1132
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/legacy.js
1133
- var Mn = null, Nn = !1, B = !1;
1134
- function Pn(e) {
1136
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/legacy.js
1137
+ var An = null, jn = !1, B = !1;
1138
+ function Mn(e) {
1135
1139
  B = e;
1136
1140
  }
1137
1141
  var V = null, H = !1;
@@ -1143,73 +1147,73 @@ function G(e) {
1143
1147
  W = e;
1144
1148
  }
1145
1149
  var K = null;
1146
- function Fn(e) {
1147
- V !== null && (K ??= /* @__PURE__ */ new Set()).add(e);
1150
+ function Nn(e) {
1151
+ V !== null && (V.f & 2097152 || V.f & 2) && (K ??= /* @__PURE__ */ new Set()).add(e);
1148
1152
  }
1149
1153
  var q = null, J = 0, Y = null;
1150
- function In(e) {
1154
+ function Pn(e) {
1151
1155
  Y = e;
1152
1156
  }
1153
- var Ln = 1, Rn = 0, zn = Rn;
1154
- function Bn(e) {
1155
- zn = e;
1157
+ var Fn = 1, In = 0, Ln = In;
1158
+ function Rn(e) {
1159
+ Ln = e;
1156
1160
  }
1157
- function Vn() {
1158
- return ++Ln;
1161
+ function zn() {
1162
+ return ++Fn;
1159
1163
  }
1160
- function Hn(e) {
1164
+ function Bn(e) {
1161
1165
  var t = e.f;
1162
1166
  if (t & 2048) return !0;
1163
- if (t & 2 && (e.f &= ~se), t & 4096) {
1167
+ if (t & 4096) {
1164
1168
  for (var n = e.deps, r = n.length, i = 0; i < r; i++) {
1165
1169
  var a = n[i];
1166
- if (Hn(a) && _t(a), a.wv > e.wv) return !0;
1170
+ if (Bn(a) && pt(a), a.wv > e.wv) return !0;
1167
1171
  }
1168
1172
  t & 512 && k === null && D(e, y);
1169
1173
  }
1170
1174
  return !1;
1171
1175
  }
1172
- function Un(e, t, n = !0) {
1176
+ function Vn(e, t, n = !0) {
1173
1177
  var r = e.reactions;
1174
1178
  if (r !== null && !(K !== null && K.has(e))) for (var i = 0; i < r.length; i++) {
1175
1179
  var a = r[i];
1176
- a.f & 2 ? Un(a, t, !1) : t === a && (n ? D(a, b) : a.f & 1024 && D(a, te), Ft(a));
1180
+ a.f & 2 ? Vn(a, t, !1) : t === a && (n ? D(a, b) : a.f & 1024 && D(a, te), jt(a));
1177
1181
  }
1178
1182
  }
1179
- function Wn(e) {
1180
- var t = q, n = J, r = Y, i = V, a = K, o = E, s = H, c = zn, l = e.f;
1181
- q = null, J = 0, Y = null, V = l & 96 ? null : e, K = null, We(e.ctx), H = !1, zn = ++Rn, e.ac !== null && (at(() => {
1182
- e.ac.abort(ye);
1183
+ function Hn(e) {
1184
+ var t = q, n = J, r = Y, i = V, a = K, o = E, s = H, c = Ln, l = e.f;
1185
+ q = null, J = 0, Y = null, V = l & 96 ? null : e, K = null, Ue(e.ctx), H = !1, Ln = ++In, e.ac !== null && (tt(() => {
1186
+ e.ac.abort(ve);
1183
1187
  }), e.ac = null);
1184
1188
  try {
1185
- e.f |= ce;
1189
+ e.f |= se;
1186
1190
  var u = e.fn, d = u();
1187
1191
  e.f |= x;
1188
- var f = Gn(e);
1189
- if (Je() && Y !== null && !H && f !== null && !(e.f & 6146)) for (var p = 0; p < Y.length; p++) Un(Y[p], e);
1192
+ var f = Un(e);
1193
+ if (qe() && Y !== null && !H && f !== null && !(e.f & 6146)) for (var p = 0; p < Y.length; p++) Vn(Y[p], e);
1190
1194
  if (i !== null && i !== e) {
1191
- if (Rn++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = Rn;
1192
- if (t !== null) for (let e of t) e.rv = Rn;
1195
+ if (In++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = In;
1196
+ if (t !== null) for (let e of t) e.rv = In;
1193
1197
  Y !== null && (r === null ? r = Y : r.push(...Y));
1194
1198
  }
1195
- return e.f & 8388608 && (e.f ^= ue), d;
1199
+ return e.f & 8388608 && (e.f ^= le), d;
1196
1200
  } catch (t) {
1197
- return Gn(e), cn(t);
1201
+ return Un(e), on(t);
1198
1202
  } finally {
1199
- e.f ^= ce, q = t, J = n, Y = r, V = i, K = a, We(o), H = s, zn = c;
1203
+ e.f ^= se, q = t, J = n, Y = r, V = i, K = a, Ue(o), H = s, Ln = c;
1200
1204
  }
1201
1205
  }
1202
- function Gn(e) {
1206
+ function Un(e) {
1203
1207
  var t = e.deps, n = O?.is_fork;
1204
1208
  if (q !== null) {
1205
1209
  var r;
1206
- if (n || qn(e, J), t !== null && J > 0) for (t.length = J + q.length, r = 0; r < q.length; r++) t[J + r] = q[r];
1210
+ if (n || Gn(e, J), t !== null && J > 0) for (t.length = J + q.length, r = 0; r < q.length; r++) t[J + r] = q[r];
1207
1211
  else e.deps = t = q;
1208
- if (dn() && e.f & 512) for (r = J; r < t.length; r++) (t[r].reactions ??= []).push(e);
1209
- } else !n && t !== null && J < t.length && (qn(e, J), t.length = J);
1212
+ if (ln() && e.f & 512) for (r = J; r < t.length; r++) (t[r].reactions ??= []).push(e);
1213
+ } else !n && t !== null && J < t.length && (Gn(e, J), t.length = J);
1210
1214
  return t;
1211
1215
  }
1212
- function Kn(e, n) {
1216
+ function Wn(e, n) {
1213
1217
  let r = n.reactions;
1214
1218
  if (r !== null) {
1215
1219
  var i = o.call(r, e);
@@ -1220,35 +1224,35 @@ function Kn(e, n) {
1220
1224
  }
1221
1225
  if (r === null && n.f & 2 && (q === null || !s.call(q, n))) {
1222
1226
  var c = n;
1223
- c.f & 512 && (c.f ^= 512, c.f &= ~se), c.v !== t && et(c), c.ac !== null && at(() => {
1224
- c.ac.abort(ye), c.ac = null, D(c, b);
1225
- }), vt(c), qn(c, 0);
1227
+ c.f & 512 && (c.f ^= 512), c.v !== t && $e(c), c.ac !== null && tt(() => {
1228
+ c.ac.abort(ve), c.ac = null, D(c, b);
1229
+ }), mt(c), Gn(c, 0);
1226
1230
  }
1227
1231
  }
1228
- function qn(e, t) {
1232
+ function Gn(e, t) {
1229
1233
  var n = e.deps;
1230
- if (n !== null) for (var r = t; r < n.length; r++) Kn(e, n[r]);
1234
+ if (n !== null) for (var r = t; r < n.length; r++) Wn(e, n[r]);
1231
1235
  }
1232
- function Jn(e) {
1236
+ function Kn(e) {
1233
1237
  var t = e.f;
1234
1238
  if (!(t & 16384)) {
1235
1239
  D(e, y);
1236
- var n = W, r = Nn;
1237
- W = e, Nn = (t & 96) == 0;
1240
+ var n = W, r = jn;
1241
+ W = e, jn = (t & 96) == 0;
1238
1242
  try {
1239
- t & 16777232 ? wn(e) : Cn(e), Sn(e);
1240
- var i = Wn(e);
1241
- e.teardown = typeof i == "function" ? i : null, e.wv = Ln;
1243
+ t & 16777232 ? Sn(e) : xn(e), bn(e);
1244
+ var i = Hn(e);
1245
+ e.teardown = typeof i == "function" ? i : null, e.wv = Fn;
1242
1246
  } finally {
1243
- Nn = r, W = n;
1247
+ jn = r, W = n;
1244
1248
  }
1245
1249
  }
1246
1250
  }
1247
1251
  function X(e) {
1248
1252
  var t = (e.f & 2) != 0;
1249
- if (Mn?.add(e), V !== null && !H && !(W !== null && W.f & 16384) && (K === null || !K.has(e))) {
1253
+ if (An?.add(e), V !== null && !H && !(W !== null && W.f & 16384) && (K === null || !K.has(e))) {
1250
1254
  var n = V.deps;
1251
- if (V.f & 2097152) e.rv < Rn && (e.rv = Rn, q === null && n !== null && n[J] === e ? J++ : q === null ? q = [e] : q.push(e));
1255
+ if (V.f & 2097152) e.rv < In && (e.rv = In, q === null && n !== null && n[J] === e ? J++ : q === null ? q = [e] : q.push(e));
1252
1256
  else {
1253
1257
  V.deps ??= [], s.call(V.deps, e) || V.deps.push(e);
1254
1258
  var r = e.reactions;
@@ -1260,25 +1264,25 @@ function X(e) {
1260
1264
  var i = e;
1261
1265
  if (B) {
1262
1266
  var a = i.v;
1263
- return (!(i.f & 1024) && i.reactions !== null || Xn(i)) && (a = gt(i)), j.set(i, a), a;
1267
+ return (!(i.f & 1024) && i.reactions !== null || Jn(i)) && (a = ft(i)), j.set(i, a), a;
1264
1268
  }
1265
- var o = (i.f & 512) == 0 && !H && V !== null && (Nn || (V.f & 512) != 0), c = (i.f & x) === 0;
1266
- Hn(i) && (o && (i.f |= 512), _t(i)), o && !c && (yt(i), Yn(i));
1269
+ var o = (i.f & 512) == 0 && !H && V !== null && (jn || (V.f & 512) != 0), c = (i.f & x) === 0;
1270
+ Bn(i) && (o && (i.f |= 512), pt(i)), o && !c && (ht(i), qn(i));
1267
1271
  }
1268
1272
  if (k?.has(e)) return k.get(e);
1269
1273
  if (e.f & 8388608) throw e.v;
1270
1274
  return e.v;
1271
1275
  }
1272
- function Yn(e) {
1273
- if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (yt(t), Yn(t));
1276
+ function qn(e) {
1277
+ if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (ht(t), qn(t));
1274
1278
  }
1275
- function Xn(e) {
1279
+ function Jn(e) {
1276
1280
  if (e.v === t) return !0;
1277
1281
  if (e.deps === null) return !1;
1278
- for (let t of e.deps) if (j.has(t) || t.f & 2 && Xn(t)) return !0;
1282
+ for (let t of e.deps) if (j.has(t) || t.f & 2 && Jn(t)) return !0;
1279
1283
  return !1;
1280
1284
  }
1281
- function Zn(e) {
1285
+ function Yn(e) {
1282
1286
  var t = H;
1283
1287
  try {
1284
1288
  return H = !0, e();
@@ -1287,18 +1291,18 @@ function Zn(e) {
1287
1291
  }
1288
1292
  }
1289
1293
  //#endregion
1290
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/elements/events.js
1291
- var Qn = Symbol("events"), $n = /* @__PURE__ */ new Set(), er = /* @__PURE__ */ new Set(), tr = null, nr = !1;
1292
- function rr(e) {
1294
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/events.js
1295
+ var Xn = Symbol("events"), Zn = /* @__PURE__ */ new Set(), Qn = /* @__PURE__ */ new Set(), $n = null, er = !1;
1296
+ function tr(e) {
1293
1297
  var t = this, n = t.ownerDocument, r = e.type, i = e.composedPath?.() || [], a = i[0] || e.target;
1294
- tr = e, nr || (nr = !0, setTimeout(() => {
1295
- nr = !1, tr = null;
1298
+ $n = e, er || (er = !0, setTimeout(() => {
1299
+ er = !1, $n = null;
1296
1300
  }));
1297
- var o = 0, s = tr === e && e[Qn];
1301
+ var o = 0, s = $n === e && e[Xn];
1298
1302
  if (s) {
1299
1303
  var c = i.indexOf(s);
1300
1304
  if (c !== -1 && (t === document || t === window)) {
1301
- e[Qn] = t;
1305
+ e[Xn] = t;
1302
1306
  return;
1303
1307
  }
1304
1308
  var l = i.indexOf(t);
@@ -1317,7 +1321,7 @@ function rr(e) {
1317
1321
  try {
1318
1322
  for (var p, m = []; a !== null && a !== t;) {
1319
1323
  try {
1320
- var h = a[Qn]?.[r];
1324
+ var h = a[Xn]?.[r];
1321
1325
  h != null && (!a.disabled || e.target === a) && h.call(a, e);
1322
1326
  } catch (e) {
1323
1327
  p ? m.push(e) : p = e;
@@ -1332,23 +1336,23 @@ function rr(e) {
1332
1336
  throw p;
1333
1337
  }
1334
1338
  } finally {
1335
- e[Qn] = t, delete e.currentTarget, U(d), G(f);
1339
+ e[Xn] = t, delete e.currentTarget, U(d), G(f);
1336
1340
  }
1337
1341
  }
1338
1342
  }
1339
1343
  //#endregion
1340
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/reconciler.js
1341
- var ir = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
1342
- function ar(e) {
1343
- return ir?.createHTML(e) ?? e;
1344
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/reconciler.js
1345
+ var nr = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
1346
+ function rr(e) {
1347
+ return nr?.createHTML(e) ?? e;
1344
1348
  }
1345
- function or(e) {
1346
- var t = on("template");
1347
- return t.innerHTML = ar(e.replaceAll("<!>", "<!---->")), t.content;
1349
+ function ir(e) {
1350
+ var t = rn("template");
1351
+ return t.innerHTML = rr(e.replaceAll("<!>", "<!---->")), t.content;
1348
1352
  }
1349
1353
  //#endregion
1350
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/template.js
1351
- function sr(e, t) {
1354
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/template.js
1355
+ function ar(e, t) {
1352
1356
  var n = W;
1353
1357
  n.nodes === null && (n.nodes = {
1354
1358
  start: e,
@@ -1358,51 +1362,51 @@ function sr(e, t) {
1358
1362
  });
1359
1363
  }
1360
1364
  /*#__NO_SIDE_EFFECTS__*/
1361
- function cr(e, t) {
1365
+ function or(e, t) {
1362
1366
  var n = (t & 1) != 0, r = (t & 2) != 0, i, a = !e.startsWith("<!>");
1363
1367
  return () => {
1364
- if (C) return sr(w, null), w;
1365
- i === void 0 && (i = or(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ P(i)));
1366
- var t = r || Jt ? document.importNode(i, !0) : i.cloneNode(!0);
1368
+ if (C) return ar(w, null), w;
1369
+ i === void 0 && (i = ir(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ P(i)));
1370
+ var t = r || Kt ? document.importNode(i, !0) : i.cloneNode(!0);
1367
1371
  if (n) {
1368
1372
  var o = /* @__PURE__ */ P(t), s = t.lastChild;
1369
- sr(o, s);
1370
- } else sr(t, t);
1373
+ ar(o, s);
1374
+ } else ar(t, t);
1371
1375
  return t;
1372
1376
  };
1373
1377
  }
1374
- function lr(e, t) {
1378
+ function sr(e, t) {
1375
1379
  if (C) {
1376
1380
  var n = W;
1377
- (!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = w), Te();
1381
+ (!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = w), we();
1378
1382
  return;
1379
1383
  }
1380
1384
  e !== null && e.before(t);
1381
1385
  }
1382
1386
  [.../* @__PURE__ */ "allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback".split(".")];
1383
- var ur = ["touchstart", "touchmove"];
1384
- function dr(e) {
1385
- return ur.includes(e);
1387
+ var cr = ["touchstart", "touchmove"];
1388
+ function lr(e) {
1389
+ return cr.includes(e);
1386
1390
  }
1387
1391
  //#endregion
1388
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/reactivity/create-subscriber.js
1389
- function fr(e) {
1390
- let t = 0, n = Bt(0), r;
1392
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/reactivity/create-subscriber.js
1393
+ function ur(e) {
1394
+ let t = 0, n = It(0), r;
1391
1395
  return () => {
1392
- dn() && (X(n), yn(() => (t === 0 && (r = Zn(() => e(() => Wt(n)))), t += 1, () => {
1393
- Ze(() => {
1394
- --t, t === 0 && (r?.(), r = void 0, Wt(n));
1396
+ ln() && (X(n), _n(() => (t === 0 && (r = Yn(() => e(() => Ht(n)))), t += 1, () => {
1397
+ Xe(() => {
1398
+ --t, t === 0 && (r?.(), r = void 0, Ht(n));
1395
1399
  });
1396
1400
  })));
1397
1401
  };
1398
1402
  }
1399
1403
  //#endregion
1400
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
1401
- var pr = ie | ae;
1402
- function mr(e, t, n, r) {
1403
- new hr(e, t, n, r);
1404
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
1405
+ var dr = ie | ae;
1406
+ function fr(e, t, n, r) {
1407
+ new pr(e, t, n, r);
1404
1408
  }
1405
- var hr = class {
1409
+ var pr = class {
1406
1410
  parent;
1407
1411
  is_pending = !1;
1408
1412
  transform_error;
@@ -1421,24 +1425,24 @@ var hr = class {
1421
1425
  #f = /* @__PURE__ */ new Set();
1422
1426
  #p = /* @__PURE__ */ new Set();
1423
1427
  #m = null;
1424
- #h = fr(() => (this.#m = Bt(this.#l), () => {
1428
+ #h = ur(() => (this.#m = It(this.#l), () => {
1425
1429
  this.#m = null;
1426
1430
  }));
1427
1431
  constructor(e, t, n, r) {
1428
1432
  this.#e = e, this.#n = t, this.#r = (e) => {
1429
1433
  var t = W;
1430
1434
  t.b = this, t.f |= 128, n(e);
1431
- }, this.parent = W.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = xn(() => {
1435
+ }, this.parent = W.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = yn(() => {
1432
1436
  if (C) {
1433
1437
  let e = this.#t;
1434
- Te();
1438
+ we();
1435
1439
  let t = e.data === "[!";
1436
1440
  if (e.data.startsWith("[?")) {
1437
1441
  let t = JSON.parse(e.data.slice(2));
1438
1442
  this.#_(t);
1439
1443
  } else t ? this.#y() : this.#g();
1440
1444
  } else this.#b();
1441
- }, pr), C && (this.#e = w);
1445
+ }, dr), C && (this.#e = w);
1442
1446
  }
1443
1447
  #g() {
1444
1448
  try {
@@ -1449,7 +1453,7 @@ var hr = class {
1449
1453
  }
1450
1454
  #_(e) {
1451
1455
  let t = this.#n.failed, { reset: n, invoke_onerror: r } = this.#v(e);
1452
- Ze(r), t && (this.#s = R(() => {
1456
+ Xe(r), t && (this.#s = R(() => {
1453
1457
  t(this.#e, () => e, () => n);
1454
1458
  }));
1455
1459
  }
@@ -1457,10 +1461,10 @@ var hr = class {
1457
1461
  var t = !1, n = !1;
1458
1462
  let r = () => {
1459
1463
  if (t) {
1460
- Ce();
1464
+ Se();
1461
1465
  return;
1462
1466
  }
1463
- t = !0, n && Ue(), this.#s !== null && Dn(this.#s, () => {
1467
+ t = !0, n && He(), this.#s !== null && Tn(this.#s, () => {
1464
1468
  this.#s = null;
1465
1469
  }), this.#S(() => {
1466
1470
  this.#b();
@@ -1479,8 +1483,8 @@ var hr = class {
1479
1483
  }
1480
1484
  #y() {
1481
1485
  let e = this.#n.pending;
1482
- e && (this.is_pending = !0, this.#o = R(() => e(this.#e)), Ze(() => {
1483
- var e = this.#c = document.createDocumentFragment(), t = Qt(), n = !1;
1486
+ e && (this.is_pending = !0, this.#o = R(() => e(this.#e)), Xe(() => {
1487
+ var e = this.#c = document.createDocumentFragment(), t = Xt(), n = !1;
1484
1488
  if (e.append(t), this.#a = this.#S(() => {
1485
1489
  try {
1486
1490
  return R(() => this.#r(t));
@@ -1496,7 +1500,7 @@ var hr = class {
1496
1500
  this.#c = null, n && this.#x(O);
1497
1501
  return;
1498
1502
  }
1499
- this.#u === 0 && (this.#e.before(e), this.#c = null, Dn(this.#o, () => {
1503
+ this.#u === 0 && (this.#e.before(e), this.#c = null, Tn(this.#o, () => {
1500
1504
  this.#o = null;
1501
1505
  }), this.#x(O));
1502
1506
  }));
@@ -1507,7 +1511,7 @@ var hr = class {
1507
1511
  this.#r(this.#e);
1508
1512
  }), this.#u > 0) {
1509
1513
  var e = this.#c = document.createDocumentFragment();
1510
- jn(this.#a, e);
1514
+ kn(this.#a, e);
1511
1515
  let t = this.#n.pending;
1512
1516
  this.#o = R(() => t(this.#e));
1513
1517
  } else this.#x(O);
@@ -1519,7 +1523,7 @@ var hr = class {
1519
1523
  this.is_pending = !1, e.transfer_effects(this.#f, this.#p);
1520
1524
  }
1521
1525
  defer_effect(e) {
1522
- nt(e, this.#f, this.#p);
1526
+ et(e, this.#f, this.#p);
1523
1527
  }
1524
1528
  is_rendered() {
1525
1529
  return !this.is_pending && (!this.parent || this.parent.is_rendered());
@@ -1529,11 +1533,11 @@ var hr = class {
1529
1533
  }
1530
1534
  #S(e) {
1531
1535
  var t = W, n = V, r = E;
1532
- G(this.#i), U(this.#i), We(this.#i.ctx);
1536
+ G(this.#i), U(this.#i), Ue(this.#i.ctx);
1533
1537
  try {
1534
- return kt.ensure(), e();
1538
+ return Tt.ensure(), e();
1535
1539
  } finally {
1536
- G(t), U(n), We(r);
1540
+ G(t), U(n), Ue(r);
1537
1541
  }
1538
1542
  }
1539
1543
  #C(e, t) {
@@ -1541,13 +1545,13 @@ var hr = class {
1541
1545
  this.parent && this.parent.#C(e, t);
1542
1546
  return;
1543
1547
  }
1544
- this.#u += e, this.#u === 0 && (this.#x(t), this.#o && Dn(this.#o, () => {
1548
+ this.#u += e, this.#u === 0 && (this.#x(t), this.#o && Tn(this.#o, () => {
1545
1549
  this.#o = null;
1546
1550
  }), this.#c &&= (this.#e.before(this.#c), null));
1547
1551
  }
1548
1552
  update_pending_count(e, t) {
1549
- this.#C(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, Ze(() => {
1550
- this.#d = !1, this.#m && Ht(this.#m, this.#l);
1553
+ this.#C(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, Xe(() => {
1554
+ this.#d = !1, this.#m && Bt(this.#m, this.#l);
1551
1555
  }));
1552
1556
  }
1553
1557
  get_effect_pending() {
@@ -1560,7 +1564,7 @@ var hr = class {
1560
1564
  })) : this.#w(e);
1561
1565
  }
1562
1566
  #w(e) {
1563
- this.#a &&= (z(this.#a), null), this.#o &&= (z(this.#o), null), this.#s &&= (z(this.#s), null), C && (T(this.#t), De(), T(Oe()));
1567
+ this.#a &&= (z(this.#a), null), this.#o &&= (z(this.#o), null), this.#s &&= (z(this.#s), null), C && (T(this.#t), Ee(), T(De()));
1564
1568
  let t = this.#n.failed, n = (e) => {
1565
1569
  let { reset: n, invoke_onerror: r } = this.#v(e);
1566
1570
  r(), t && (this.#s = this.#S(() => {
@@ -1574,7 +1578,7 @@ var hr = class {
1574
1578
  }
1575
1579
  }));
1576
1580
  };
1577
- Ze(() => {
1581
+ Xe(() => {
1578
1582
  var t;
1579
1583
  try {
1580
1584
  t = this.transform_error(e);
@@ -1586,76 +1590,76 @@ var hr = class {
1586
1590
  });
1587
1591
  }
1588
1592
  };
1589
- function gr(e, t) {
1593
+ function mr(e, t) {
1590
1594
  var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
1591
- n !== (e[ve] ??= e.nodeValue) && (e[ve] = n, e.nodeValue = `${n}`);
1595
+ n !== (e[_e] ??= e.nodeValue) && (e[_e] = n, e.nodeValue = `${n}`);
1592
1596
  }
1593
- function _r(e, t) {
1594
- return br(e, t);
1597
+ function hr(e, t) {
1598
+ return vr(e, t);
1595
1599
  }
1596
- function vr(t, n) {
1597
- Zt(), n.intro = n.intro ?? !1;
1600
+ function gr(t, n) {
1601
+ Yt(), n.intro = n.intro ?? !1;
1598
1602
  let r = n.target, i = C, a = w;
1599
1603
  try {
1600
1604
  for (var o = /* @__PURE__ */ P(r); o && (o.nodeType !== 8 || o.data !== "[");) o = /* @__PURE__ */ F(o);
1601
1605
  if (!o) throw e;
1602
- we(!0), T(o);
1603
- let i = br(t, {
1606
+ Ce(!0), T(o);
1607
+ let i = vr(t, {
1604
1608
  ...n,
1605
1609
  anchor: o
1606
1610
  });
1607
- return we(!1), i;
1611
+ return Ce(!1), i;
1608
1612
  } catch (i) {
1609
1613
  if (i instanceof Error && i.message.split("\n").some((e) => e.startsWith("https://svelte.dev/e/"))) throw i;
1610
- return i !== e && console.warn("Failed to hydrate: ", i), n.recover === !1 && Re(), Zt(), rn(r), we(!1), _r(t, n);
1614
+ return i !== e && console.warn("Failed to hydrate: ", i), n.recover === !1 && Le(), Yt(), tn(r), Ce(!1), hr(t, n);
1611
1615
  } finally {
1612
- we(i), T(a);
1616
+ Ce(i), T(a);
1613
1617
  }
1614
1618
  }
1615
- var yr = /* @__PURE__ */ new Map();
1616
- function br(t, { target: n, anchor: r, props: i = {}, events: a, context: o, intro: s = !0, transformError: l }) {
1617
- Zt();
1618
- var u = void 0, d = gn(() => {
1619
- var s = r ?? n.appendChild(Qt());
1620
- mr(s, { pending: () => {} }, (n) => {
1621
- Ge({});
1619
+ var _r = /* @__PURE__ */ new Map();
1620
+ function vr(t, { target: n, anchor: r, props: i = {}, events: a, context: o, intro: s = !0, transformError: l }) {
1621
+ Yt();
1622
+ var u = void 0, d = mn(() => {
1623
+ var s = r ?? n.appendChild(Xt());
1624
+ fr(s, { pending: () => {} }, (n) => {
1625
+ We({});
1622
1626
  var r = E;
1623
- if (o && (r.c = o), a && (i.$$events = a), C && sr(n, null), u = t(n, i) || qe(), C && (W.nodes.end = w, w === null || w.nodeType !== 8 || w.data !== "]")) throw Se(), e;
1624
- Ke();
1627
+ if (o && (r.c = o), a && (i.$$events = a), C && ar(n, null), u = t(n, i) || Ke(), C && (W.nodes.end = w, w === null || w.nodeType !== 8 || w.data !== "]")) throw xe(), e;
1628
+ Ge();
1625
1629
  }, l);
1626
1630
  var d = /* @__PURE__ */ new Set(), f = (e) => {
1627
1631
  for (var t = 0; t < e.length; t++) {
1628
1632
  var r = e[t];
1629
1633
  if (!d.has(r)) {
1630
1634
  d.add(r);
1631
- var i = dr(r);
1635
+ var i = lr(r);
1632
1636
  for (let e of [n, document]) {
1633
- var a = yr.get(e);
1634
- a === void 0 && (a = /* @__PURE__ */ new Map(), yr.set(e, a));
1637
+ var a = _r.get(e);
1638
+ a === void 0 && (a = /* @__PURE__ */ new Map(), _r.set(e, a));
1635
1639
  var o = a.get(r);
1636
- o === void 0 ? (e.addEventListener(r, rr, { passive: i }), a.set(r, 1)) : a.set(r, o + 1);
1640
+ o === void 0 ? (e.addEventListener(r, tr, { passive: i }), a.set(r, 1)) : a.set(r, o + 1);
1637
1641
  }
1638
1642
  }
1639
1643
  }
1640
1644
  };
1641
- return f(c($n)), er.add(f), () => {
1645
+ return f(c(Zn)), Qn.add(f), () => {
1642
1646
  for (var e of d) for (let r of [n, document]) {
1643
- var t = yr.get(r), i = t.get(e);
1644
- --i == 0 ? (r.removeEventListener(e, rr), t.delete(e), t.size === 0 && yr.delete(r)) : t.set(e, i);
1647
+ var t = _r.get(r), i = t.get(e);
1648
+ --i == 0 ? (r.removeEventListener(e, tr), t.delete(e), t.size === 0 && _r.delete(r)) : t.set(e, i);
1645
1649
  }
1646
- er.delete(f), s !== r && s.parentNode?.removeChild(s);
1650
+ Qn.delete(f), s !== r && s.parentNode?.removeChild(s);
1647
1651
  };
1648
1652
  });
1649
- return xr.set(u, d), u;
1653
+ return yr.set(u, d), u;
1650
1654
  }
1651
- var xr = /* @__PURE__ */ new WeakMap();
1652
- function Sr(e, t) {
1653
- let n = xr.get(e);
1654
- return n ? (xr.delete(e), n(t)) : Promise.resolve();
1655
+ var yr = /* @__PURE__ */ new WeakMap();
1656
+ function br(e, t) {
1657
+ let n = yr.get(e);
1658
+ return n ? (yr.delete(e), n(t)) : Promise.resolve();
1655
1659
  }
1656
1660
  //#endregion
1657
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/blocks/branches.js
1658
- var Cr = class {
1661
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/blocks/branches.js
1662
+ var xr = class {
1659
1663
  anchor;
1660
1664
  #e = /* @__PURE__ */ new Map();
1661
1665
  #t = /* @__PURE__ */ new Map();
@@ -1668,10 +1672,10 @@ var Cr = class {
1668
1672
  #a = (e) => {
1669
1673
  if (this.#e.has(e)) {
1670
1674
  var t = this.#e.get(e), n = this.#t.get(t);
1671
- if (n) kn(n), this.#r.delete(t);
1675
+ if (n) Dn(n), this.#r.delete(t);
1672
1676
  else {
1673
1677
  var r = this.#n.get(t);
1674
- r && (kn(r.effect), this.#t.set(t, r.effect), this.#n.delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);
1678
+ r && (Dn(r.effect), this.#t.set(t, r.effect), this.#n.delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);
1675
1679
  }
1676
1680
  for (let [t, n] of this.#e) {
1677
1681
  if (this.#e.delete(t), t === e) break;
@@ -1683,14 +1687,14 @@ var Cr = class {
1683
1687
  let i = () => {
1684
1688
  if (Array.from(this.#e.values()).includes(e)) {
1685
1689
  var t = document.createDocumentFragment();
1686
- jn(r, t), t.append(Qt()), this.#n.set(e, {
1690
+ kn(r, t), t.append(Xt()), this.#n.set(e, {
1687
1691
  effect: r,
1688
1692
  fragment: t
1689
1693
  });
1690
1694
  } else z(r);
1691
1695
  this.#r.delete(e), this.#t.delete(e);
1692
1696
  };
1693
- this.#i || !n ? (this.#r.add(e), Dn(r, i, !1)) : i();
1697
+ this.#i || !n ? (this.#r.add(e), Tn(r, i, !1)) : i();
1694
1698
  }
1695
1699
  }
1696
1700
  };
@@ -1700,9 +1704,9 @@ var Cr = class {
1700
1704
  for (let [e, n] of this.#n) t.includes(e) || (z(n.effect), this.#n.delete(e));
1701
1705
  };
1702
1706
  ensure(e, t) {
1703
- var n = O, r = an();
1707
+ var n = O, r = nn();
1704
1708
  if (t && !this.#t.has(e) && !this.#n.has(e)) if (r) {
1705
- var i = document.createDocumentFragment(), a = Qt();
1709
+ var i = document.createDocumentFragment(), a = Xt();
1706
1710
  i.append(a), this.#n.set(e, {
1707
1711
  effect: R(() => t(a)),
1708
1712
  fragment: i
@@ -1716,90 +1720,90 @@ var Cr = class {
1716
1720
  }
1717
1721
  };
1718
1722
  //#endregion
1719
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/blocks/if.js
1720
- function wr(e, t, n = !1) {
1723
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/blocks/if.js
1724
+ function Sr(e, t, n = !1) {
1721
1725
  var r;
1722
- C && (r = w, Te());
1723
- var i = new Cr(e), a = n ? ie : 0;
1726
+ C && (r = w, we());
1727
+ var i = new xr(e), a = n ? ie : 0;
1724
1728
  function o(e, t) {
1725
1729
  if (C) {
1726
- var n = ke(r);
1730
+ var n = Oe(r);
1727
1731
  if (e !== parseInt(n.substring(1))) {
1728
- var a = Oe();
1729
- T(a), i.anchor = a, we(!1), i.ensure(e, t), we(!0);
1732
+ var a = De();
1733
+ T(a), i.anchor = a, Ce(!1), i.ensure(e, t), Ce(!0);
1730
1734
  return;
1731
1735
  }
1732
1736
  }
1733
1737
  i.ensure(e, t);
1734
1738
  }
1735
- xn(() => {
1739
+ yn(() => {
1736
1740
  var e = !1;
1737
1741
  t((t, n = 0) => {
1738
1742
  e = !0, o(n, t);
1739
1743
  }), e || o(-1, null);
1740
1744
  }, a);
1741
1745
  }
1742
- function Tr(t, n, a = !1, o = !1, s = !1, c = !1) {
1746
+ function Cr(t, n, a = !1, o = !1, s = !1, c = !1) {
1743
1747
  var l = t, u = "";
1744
1748
  if (a) {
1745
1749
  var d = t;
1746
1750
  C && (l = T(/* @__PURE__ */ P(d)));
1747
1751
  }
1748
- bn(() => {
1752
+ vn(() => {
1749
1753
  var t = W;
1750
1754
  if (u === (u = n() ?? "")) {
1751
- C && Te();
1755
+ C && we();
1752
1756
  return;
1753
1757
  }
1754
1758
  if (a && !C) {
1755
- t.nodes = null, d.innerHTML = u, u !== "" && sr(/* @__PURE__ */ P(d), d.lastChild);
1759
+ t.nodes = null, d.innerHTML = u, u !== "" && ar(/* @__PURE__ */ P(d), d.lastChild);
1756
1760
  return;
1757
1761
  }
1758
- if (t.nodes !== null && (Tn(t.nodes.start, t.nodes.end), t.nodes = null), u !== "") {
1762
+ if (t.nodes !== null && (Cn(t.nodes.start, t.nodes.end), t.nodes = null), u !== "") {
1759
1763
  if (C) {
1760
- for (var c = w.data, f = Te(), p = f; f !== null && (f.nodeType !== 8 || f.data !== "");) p = f, f = /* @__PURE__ */ F(f);
1761
- if (f === null) throw Se(), e;
1762
- sr(w, p), l = T(f);
1764
+ for (var c = w.data, f = we(), p = f; f !== null && (f.nodeType !== 8 || f.data !== "");) p = f, f = /* @__PURE__ */ F(f);
1765
+ if (f === null) throw xe(), e;
1766
+ ar(w, p), l = T(f);
1763
1767
  return;
1764
1768
  }
1765
- var m = on(o ? "svg" : s ? "math" : "template", o ? r : s ? i : void 0);
1769
+ var m = rn(o ? "svg" : s ? "math" : "template", o ? r : s ? i : void 0);
1766
1770
  m.innerHTML = u;
1767
1771
  var h = o || s ? m : m.content;
1768
- if (sr(/* @__PURE__ */ P(h), h.lastChild), o || s) for (; /* @__PURE__ */ P(h);) l.before(/* @__PURE__ */ P(h));
1772
+ if (ar(/* @__PURE__ */ P(h), h.lastChild), o || s) for (; /* @__PURE__ */ P(h);) l.before(/* @__PURE__ */ P(h));
1769
1773
  else l.before(h);
1770
1774
  }
1771
1775
  });
1772
1776
  }
1773
1777
  //#endregion
1774
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/css.js
1775
- function Er(e, t) {
1776
- _n(() => {
1778
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/css.js
1779
+ function wr(e, t) {
1780
+ hn(() => {
1777
1781
  e = W?.parent?.nodes?.start ?? e;
1778
1782
  var n = e.getRootNode(), r = n.host ? n : n.head ?? n.ownerDocument.head;
1779
1783
  if (!r.querySelector("#" + t.hash)) {
1780
- let e = on("style");
1784
+ let e = rn("style");
1781
1785
  e.id = t.hash, e.textContent = t.code, r.appendChild(e);
1782
1786
  }
1783
1787
  });
1784
1788
  }
1785
1789
  //#endregion
1786
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/elements/attributes.js
1787
- var Dr = Symbol("is custom element"), Or = Symbol("is html"), kr = be ? "link" : "LINK";
1788
- function Ar(e, t, n, r) {
1789
- var i = jr(e);
1790
- C && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === kr) || i[t] !== (i[t] = n) && (t === "loading" && (e[me] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && Nr(e).has(t) ? e[t] = n : e.setAttribute(t, n));
1791
- }
1792
- function jr(e) {
1793
- return e[he] ??= {
1794
- [Dr]: e.nodeName.includes("-"),
1795
- [Or]: e.namespaceURI === n
1790
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/attributes.js
1791
+ var Tr = Symbol("is custom element"), Er = Symbol("is html"), Dr = ye ? "link" : "LINK";
1792
+ function Or(e, t, n, r) {
1793
+ var i = kr(e);
1794
+ C && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Dr) || i[t] !== (i[t] = n) && (t === "loading" && (e[pe] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && jr(e).has(t) ? e[t] = n : e.setAttribute(t, n));
1795
+ }
1796
+ function kr(e) {
1797
+ return e[me] ??= {
1798
+ [Tr]: e.nodeName.includes("-"),
1799
+ [Er]: e.namespaceURI === n
1796
1800
  };
1797
1801
  }
1798
- var Mr = /* @__PURE__ */ new Map();
1799
- function Nr(e) {
1800
- var t = e.getAttribute("is") || e.nodeName, n = Mr.get(t);
1802
+ var Ar = /* @__PURE__ */ new Map();
1803
+ function jr(e) {
1804
+ var t = e.getAttribute("is") || e.nodeName, n = Ar.get(t);
1801
1805
  if (n) return n;
1802
- Mr.set(t, n = /* @__PURE__ */ new Set());
1806
+ Ar.set(t, n = /* @__PURE__ */ new Set());
1803
1807
  for (var r, i = e, a = Element.prototype; a !== i;) {
1804
1808
  for (var o in r = f(i), r) r[o].set && o !== "innerHTML" && o !== "textContent" && o !== "innerText" && n.add(o);
1805
1809
  i = h(i);
@@ -1807,23 +1811,23 @@ function Nr(e) {
1807
1811
  return n;
1808
1812
  }
1809
1813
  //#endregion
1810
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js
1811
- function Pr(e, t) {
1812
- return e === t || e?.[de] === t;
1814
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js
1815
+ function Mr(e, t) {
1816
+ return e === t || e?.[ue] === t;
1813
1817
  }
1814
- function Fr(e = qe(), t, n, r) {
1818
+ function Nr(e = Ke(), t, n, r) {
1815
1819
  var i = E.r, a = W;
1816
- return _n(() => {
1820
+ return hn(() => {
1817
1821
  var o, s;
1818
- return yn(() => {
1819
- o = s, s = r?.() || [], Zn(() => {
1820
- Pr(n(...s), e) || (t(e, ...s), o && Pr(n(...o), e) && t(null, ...o));
1822
+ return _n(() => {
1823
+ o = s, s = r?.() || [], Yn(() => {
1824
+ Mr(n(...s), e) || (t(e, ...s), o && Mr(n(...o), e) && t(null, ...o));
1821
1825
  });
1822
1826
  }), () => {
1823
1827
  let r = a;
1824
1828
  for (; r !== i && r.parent !== null && r.parent.f & 33554432;) r = r.parent;
1825
1829
  let o = () => {
1826
- s && Pr(n(...s), e) && t(null, ...s);
1830
+ s && Mr(n(...s), e) && t(null, ...s);
1827
1831
  }, c = r.teardown;
1828
1832
  r.teardown = () => {
1829
1833
  o(), c?.();
@@ -1832,16 +1836,27 @@ function Fr(e = qe(), t, n, r) {
1832
1836
  }), e;
1833
1837
  }
1834
1838
  //#endregion
1835
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/props.js
1839
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/store.js
1840
+ var Pr = !1;
1841
+ function Fr(e) {
1842
+ var t = Pr;
1843
+ try {
1844
+ return Pr = !1, [e(), Pr];
1845
+ } finally {
1846
+ Pr = t;
1847
+ }
1848
+ }
1849
+ //#endregion
1850
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/props.js
1836
1851
  function Ir(e, t, n, r) {
1837
- var i = !0, a = (n & 8) != 0, o = (n & 16) != 0, s = r, c = !0, l = void 0, u = () => o && i ? (l ??= /* @__PURE__ */ ut(r), X(l)) : (c && (c = !1, s = o ? Zn(r) : r), s);
1852
+ var i = !0, a = (n & 8) != 0, o = (n & 16) != 0, s = r, c = !0, l = void 0, u = () => o && i ? (l ??= /* @__PURE__ */ ot(r), X(l)) : (c && (c = !1, s = o ? Yn(r) : r), s);
1838
1853
  let f;
1839
1854
  if (a) {
1840
- var p = de in e || pe in e;
1855
+ var p = ue in e || fe in e;
1841
1856
  f = d(e, t)?.set ?? (p && t in e ? (n) => e[t] = n : void 0);
1842
1857
  }
1843
1858
  var m, h = !1;
1844
- a ? [m, h] = it(() => e[t]) : m = e[t], m === void 0 && r !== void 0 && (m = u(), f && (i && ze(t), f(m)));
1859
+ a ? [m, h] = Fr(() => e[t]) : m = e[t], m === void 0 && r !== void 0 && (m = u(), f && (i && Re(t), f(m)));
1845
1860
  var g = i ? () => {
1846
1861
  var n = e[t];
1847
1862
  return n === void 0 ? u() : (c = !0, n);
@@ -1856,19 +1871,19 @@ function Ir(e, t, n, r) {
1856
1871
  return arguments.length > 0 ? ((!i || !t || ee || h) && f(t ? g() : e), e) : g();
1857
1872
  });
1858
1873
  }
1859
- var _ = !1, v = (n & 1 ? ut : mt)(() => (_ = !1, g()));
1874
+ var _ = !1, v = (n & 1 ? ot : ut)(() => (_ = !1, g()));
1860
1875
  a && X(v);
1861
1876
  var y = W;
1862
1877
  return (function(e, t) {
1863
1878
  if (arguments.length > 0) {
1864
- let n = t ? X(v) : i && a ? Kt(e) : e;
1879
+ let n = t ? X(v) : i && a ? Wt(e) : e;
1865
1880
  return N(v, n), _ = !0, s !== void 0 && (s = n), e;
1866
1881
  }
1867
1882
  return B && _ || y.f & 16384 ? v.v : X(v);
1868
1883
  });
1869
1884
  }
1870
1885
  //#endregion
1871
- //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/legacy/legacy-client.js
1886
+ //#region ../../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/legacy/legacy-client.js
1872
1887
  function Lr(e) {
1873
1888
  return new Rr(e);
1874
1889
  }
@@ -1877,7 +1892,7 @@ var Rr = class {
1877
1892
  #t;
1878
1893
  constructor(e) {
1879
1894
  var t = /* @__PURE__ */ new Map(), n = (e, n) => {
1880
- var r = /* @__PURE__ */ Vt(n, !1, !1);
1895
+ var r = /* @__PURE__ */ Lt(n, !1, !1);
1881
1896
  return t.set(e, r), r;
1882
1897
  };
1883
1898
  let r = new Proxy({
@@ -1888,13 +1903,13 @@ var Rr = class {
1888
1903
  return X(t.get(r) ?? n(r, Reflect.get(e, r)));
1889
1904
  },
1890
1905
  has(e, r) {
1891
- return r === pe ? !0 : (X(t.get(r) ?? n(r, Reflect.get(e, r))), Reflect.has(e, r));
1906
+ return r === fe ? !0 : (X(t.get(r) ?? n(r, Reflect.get(e, r))), Reflect.has(e, r));
1892
1907
  },
1893
1908
  set(e, r, i) {
1894
1909
  return N(t.get(r) ?? n(r, i), i), Reflect.set(e, r, i);
1895
1910
  }
1896
1911
  });
1897
- this.#t = (e.hydrate ? vr : _r)(e.component, {
1912
+ this.#t = (e.hydrate ? gr : hr)(e.component, {
1898
1913
  target: e.target,
1899
1914
  anchor: e.anchor,
1900
1915
  props: r,
@@ -1902,7 +1917,7 @@ var Rr = class {
1902
1917
  intro: e.intro ?? !1,
1903
1918
  recover: e.recover,
1904
1919
  transformError: e.transformError
1905
- }), (!e?.props?.$$host || e.sync === !1) && At(), this.#e = r.$$events;
1920
+ }), (!e?.props?.$$host || e.sync === !1) && Et(), this.#e = r.$$events;
1906
1921
  for (let e of Object.keys(this.#t)) e === "$set" || e === "$destroy" || e === "$on" || u(this, e, {
1907
1922
  get() {
1908
1923
  return this.#t[e];
@@ -1915,7 +1930,7 @@ var Rr = class {
1915
1930
  this.#t.$set = (e) => {
1916
1931
  Object.assign(r, e);
1917
1932
  }, this.#t.$destroy = () => {
1918
- Sr(this.#t);
1933
+ br(this.#t);
1919
1934
  };
1920
1935
  }
1921
1936
  $set(e) {
@@ -1965,8 +1980,8 @@ typeof HTMLElement == "function" && (zr = class extends HTMLElement {
1965
1980
  if (await Promise.resolve(), !this.$$cn || this.$$c) return;
1966
1981
  function e(e) {
1967
1982
  return (t) => {
1968
- let n = on("slot");
1969
- e !== "default" && (n.name = e), lr(t, n);
1983
+ let n = rn("slot");
1984
+ e !== "default" && (n.name = e), sr(t, n);
1970
1985
  };
1971
1986
  }
1972
1987
  let t = {}, n = Vr(this);
@@ -1984,8 +1999,8 @@ typeof HTMLElement == "function" && (zr = class extends HTMLElement {
1984
1999
  $$slots: t,
1985
2000
  $$host: this
1986
2001
  }
1987
- }), this.$$me = hn(() => {
1988
- yn(() => {
2002
+ }), this.$$me = pn(() => {
2003
+ _n(() => {
1989
2004
  this.$$r = !0;
1990
2005
  for (let e of l(this.$$c)) {
1991
2006
  if (!this.$$p_d[e]?.reflect) continue;
@@ -2067,88 +2082,233 @@ function Hr(e, t, n, r, i, a) {
2067
2082
  }
2068
2083
  //#endregion
2069
2084
  //#region ../../shared/math-rendering-mathjax/dist/index.js
2070
- var Ur = null;
2071
- function Wr(e) {
2072
- return typeof window > "u" || window.MathJax?.typesetPromise ? Promise.resolve() : Ur || (Ur = new Promise((t, n) => {
2085
+ var Ur = "https://github.com/pie-framework/pie-players/blob/develop/docs/item-player/loading-strategies.md#one-mathjax-version-per-page", Wr = "pie-mathjax-version-conflict", Gr = Symbol.for("@pie-element/shared-math-rendering-mathjax/unsupported-page");
2086
+ function Kr(e, t) {
2087
+ if (typeof window > "u") return;
2088
+ let n = globalThis;
2089
+ n[Gr] ??= {
2090
+ logged: !1,
2091
+ conditions: []
2092
+ };
2093
+ let r = n[Gr];
2094
+ if (r.conditions.includes(e)) return;
2095
+ r.conditions.push(e);
2096
+ let i = `[math-rendering] Unsupported page (${e}): ${t}. PIE supports one MathJax major version per page; with MathJax 3 and 4 on one page, math rendering is best effort and may break. See ${Ur}`;
2097
+ r.logged || (r.logged = !0, console.error(i)), window.dispatchEvent(new CustomEvent(Wr, { detail: {
2098
+ condition: e,
2099
+ message: i,
2100
+ docsUrl: Ur
2101
+ } }));
2102
+ }
2103
+ function qr() {
2104
+ let e = window.MathJax?.version;
2105
+ return typeof e == "string" && e.startsWith("3.") ? e : void 0;
2106
+ }
2107
+ var Jr = "https://cdn.jsdelivr.net/npm/mathjax@4.1.3/tex-mml-chtml.js", Yr = {
2108
+ parallelogram: "\\lower.2em{\\Huge\\unicode{x25B1}}",
2109
+ overarc: "\\overparen",
2110
+ napprox: "\\not\\approx",
2111
+ longdiv: "\\enclose{longdiv}",
2112
+ abs: ["\\left|#1\\right|", 1]
2113
+ }, Xr = "[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)", Zr = /\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/, Qr = /\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/, $r = /\\embed\{newLine\}\[\]/g, ei = [
2114
+ ["$$", "$$"],
2115
+ ["$", "$"],
2116
+ ["\\[", "\\]"],
2117
+ ["\\(", "\\)"]
2118
+ ], ti = Symbol.for("@pie-element/shared-math-rendering-mathjax/loading"), ni = "PIE-MJX-CHTML-styles", ri = "MJX-CHTML-styles", ii = [ri, "MJX-SVG-styles"], ai = 201;
2119
+ function oi(e) {
2120
+ let t = [...e.matches("mjx-container") ? [e] : [], ...e.querySelectorAll("mjx-container")];
2121
+ for (let e of t) for (let t of [e, ...e.querySelectorAll("[data-latex],[data-latex-item]")]) t.removeAttribute("data-latex"), t.removeAttribute("data-latex-item");
2122
+ }
2123
+ function si() {
2124
+ return window.MathJax;
2125
+ }
2126
+ function ci(e) {
2127
+ for (let [t, n] of ei) if (e.startsWith(t) && e.endsWith(n)) return e.substring(t.length, e.length - n.length);
2128
+ return e;
2129
+ }
2130
+ function li(e) {
2131
+ return ci(e.includes("\\displaystyle") ? e.replace("\\displaystyle", "").trim() : e);
2132
+ }
2133
+ var ui = "mathjax_ignore", di = "mathjax_process";
2134
+ function fi(e, t) {
2135
+ let n = e.closest(`.${ui}, .${di}`);
2136
+ return n !== null && t.contains(n) && !n.classList.contains(di);
2137
+ }
2138
+ function pi(e) {
2139
+ for (let t of e.querySelectorAll("[data-latex]")) {
2140
+ if (t.dataset.mathHandled || t.closest("mjx-container") || fi(t, e)) continue;
2141
+ let n = t.textContent;
2142
+ n && (t.textContent = `\\(${li(n)}\\)`.replace($r, "\\newline "), t.dataset.mathHandled = "true");
2143
+ }
2144
+ }
2145
+ function mi(e, t) {
2146
+ for (let t of e.querySelectorAll("math")) if (!t.closest("mjx-assistive-mml")) return !0;
2147
+ return (t ? Qr : Zr).test(e.textContent ?? "");
2148
+ }
2149
+ function hi(e) {
2150
+ return new Promise((t, n) => {
2073
2151
  let { useSingleDollar: r = !1, accessibility: i = !0, loadFonts: a = !0, srcUrl: o } = e, s = {
2074
- loader: { load: i ? ["a11y/assistive-mml"] : [] },
2075
- tex: {
2076
- packages: [
2077
- "base",
2078
- "ams",
2079
- "autoload"
2080
- ],
2081
- macros: {
2082
- parallelogram: "\\lower.2em{\\Huge\\unicode{x25B1}}",
2083
- overarc: "\\overparen",
2084
- napprox: "\\not\\approx",
2085
- longdiv: "\\enclose{longdiv}"
2152
+ loader: {
2153
+ load: i ? ["a11y/assistive-mml"] : [],
2154
+ failed: (e) => n(e)
2155
+ },
2156
+ startup: {
2157
+ typeset: !1,
2158
+ ready: () => {
2159
+ let e = si(), r = e?.startup, i = !!e?.version?.startsWith("4.");
2160
+ i && gi(e), r?.defaultReady?.(), i && _i(r?.document), Promise.resolve(r?.promise).then(() => t(), n);
2086
2161
  }
2087
2162
  },
2163
+ tex: { macros: { ...Yr } },
2088
2164
  options: {
2089
2165
  enableMenu: i,
2090
- enableExplorer: i,
2091
- enableAssistiveMml: i
2092
- },
2093
- startup: {
2094
- ready: () => {
2095
- window.MathJax?.startup.defaultReady && (window.MathJax.startup.defaultReady(), t());
2096
- },
2097
- defaultReady: () => {}
2166
+ menuOptions: { settings: {
2167
+ assistiveMml: i,
2168
+ enrich: !1,
2169
+ inTabOrder: !1
2170
+ } }
2098
2171
  }
2099
2172
  };
2100
- r && s.tex && (s.tex.inlineMath = [["$", "$"], ["\\(", "\\)"]], s.tex.processEscapes = !0), a || (s.chtml = { fontURL: "" }), window.MathJax = s;
2173
+ r && s.tex && (console.warn(Xr), s.tex.inlineMath = [["$", "$"], ["\\(", "\\)"]], s.tex.processEscapes = !0), a || (s.chtml = { fontURL: "" }), window.MathJax = s;
2101
2174
  let c = document.createElement("script");
2102
- c.src = o || "https://cdn.jsdelivr.net/npm/mathjax@4/tex-chtml.js", c.async = !0, c.onload = () => {
2103
- setTimeout(t, 100);
2104
- }, c.onerror = () => {
2105
- n(/* @__PURE__ */ Error("Failed to load MathJax"));
2106
- }, document.head.appendChild(c);
2107
- }), Ur);
2108
- }
2109
- function Gr() {
2110
- let e = window.MathJax?.startup?.document;
2111
- if (typeof e?.assistiveMml == "function") try {
2112
- e.assistiveMml().updateDocument?.();
2113
- } catch (e) {
2114
- console.warn("[mathjax-renderer] Failed to attach assistive MathML:", e);
2175
+ c.src = o || Jr, c.async = !0, c.onerror = () => n(/* @__PURE__ */ Error("Failed to load MathJax")), document.head.appendChild(c);
2176
+ });
2177
+ }
2178
+ function gi(e) {
2179
+ let t = e?._?.output?.chtml_ts?.CHTML;
2180
+ t && (t.STYLESHEETID = ni);
2181
+ }
2182
+ function _i(e) {
2183
+ if (!e) return;
2184
+ let t = /* @__PURE__ */ new WeakSet(), n = (e) => {
2185
+ let n = e.typesetRoot;
2186
+ !n || t.has(n) || (oi(n), t.add(n));
2187
+ };
2188
+ e.addRenderAction?.("pie-strip-latex", ai, (e) => {
2189
+ for (let t of e.math ?? []) n(t);
2190
+ return !1;
2191
+ }, (e) => {
2192
+ let t = e.typesetRoot;
2193
+ return t && oi(t), !1;
2194
+ });
2195
+ let r = e.outputJax?.chtmlStyles;
2196
+ r?.id === ri && (r.id = ni), bi();
2197
+ }
2198
+ function vi(e) {
2199
+ return e instanceof HTMLStyleElement && ii.includes(e.id);
2200
+ }
2201
+ function yi(e) {
2202
+ Kr("foreign-output-stylesheet", `another MathJax added <style id="${e.id}"> to <head>`);
2203
+ }
2204
+ function bi() {
2205
+ let e = document.head, t = [...e.children].find(vi);
2206
+ if (t) {
2207
+ yi(t);
2208
+ return;
2115
2209
  }
2210
+ let n = new MutationObserver((e) => {
2211
+ for (let t of e) {
2212
+ let e = [...t.addedNodes].find(vi);
2213
+ if (e) {
2214
+ yi(e), n.disconnect();
2215
+ return;
2216
+ }
2217
+ }
2218
+ });
2219
+ n.observe(e, { childList: !0 });
2220
+ }
2221
+ function xi(e) {
2222
+ return new Promise((t, n) => {
2223
+ let r = e.startup ?? {};
2224
+ e.startup = r;
2225
+ let i = r.ready;
2226
+ r.ready = () => {
2227
+ let e = si()?.startup;
2228
+ i ? i.call(r) : e?.defaultReady?.(), Promise.resolve(e?.promise).then(() => t(), n);
2229
+ };
2230
+ });
2116
2231
  }
2117
- function Kr(e = {}) {
2118
- return async (t) => {
2119
- if (await Wr(e), !window.MathJax?.typesetPromise) {
2120
- console.warn("[mathjax-renderer] MathJax not loaded or missing typesetPromise.");
2232
+ function Si(e) {
2233
+ let t = si();
2234
+ return t ? t.version ? t.startup?.promise ? Promise.resolve(t.startup.promise).then(() => void 0) : Promise.resolve() : xi(t) : hi(e);
2235
+ }
2236
+ function Ci(e) {
2237
+ return Si(e).then(() => {
2238
+ typeof si()?.typesetPromise != "function" && console.warn("[mathjax-renderer] MathJax on this page has no typesetPromise; math stays untypeset.");
2239
+ });
2240
+ }
2241
+ function wi(e) {
2242
+ let t = globalThis, n = t[ti];
2243
+ return n || (n = Ci(e), t[ti] = n), n;
2244
+ }
2245
+ function Ti(e = {}) {
2246
+ let t = e.useSingleDollar ?? !1;
2247
+ return async (n) => {
2248
+ if (typeof window > "u") return;
2249
+ let r = qr();
2250
+ r && Kr("mathjax-3-global", `window.MathJax is MathJax ${r}`), pi(n);
2251
+ let i = wi(e);
2252
+ if (!mi(n, t)) {
2253
+ i.catch(() => {});
2121
2254
  return;
2122
2255
  }
2123
- await window.MathJax.typesetPromise([t]), Gr();
2256
+ await i;
2257
+ let a = si();
2258
+ await a?.startup?.promise, typeof a?.typesetPromise == "function" && (await a.typesetPromise([n]), oi(n));
2124
2259
  };
2125
2260
  }
2126
- var qr = null;
2127
- function Jr() {
2128
- return qr ||= Kr({
2129
- accessibility: !0,
2130
- useSingleDollar: !0
2131
- }), qr;
2261
+ var Ei = "@pie-lib/math-rendering", Di = "@pie-lib/math-rendering@2", Oi = "pie-print", ki = 50, Ai = 1e4, ji = null;
2262
+ function Mi() {
2263
+ return !!window[Di]?.opts?.useSingleDollar;
2132
2264
  }
2133
- function Yr() {
2134
- if (typeof window > "u") return null;
2135
- let e = window["@pie-lib/math-rendering"];
2136
- return typeof e?.renderMath == "function" ? e : null;
2265
+ function Ni() {
2266
+ return ji ||= Ti({ useSingleDollar: Mi() }), ji;
2137
2267
  }
2138
- var Xr = async (e) => {
2268
+ function Pi() {
2269
+ if (typeof window > "u") return null;
2270
+ let e = window[Ei];
2271
+ return typeof e?.renderMath == "function" && e.renderMath !== Ri ? e : null;
2272
+ }
2273
+ function Fi(e) {
2274
+ let t = e;
2275
+ for (; t;) {
2276
+ if (t instanceof Element && t.localName === Oi) return t;
2277
+ t = t instanceof ShadowRoot ? t.host : t.parentNode;
2278
+ }
2279
+ return null;
2280
+ }
2281
+ function Ii() {
2282
+ let e = window.renderMath;
2283
+ return typeof e == "function" ? e : null;
2284
+ }
2285
+ async function Li(e) {
2286
+ let t = Fi(e);
2287
+ if (!t) return null;
2288
+ let n = Ii();
2289
+ if (n || t.mathRenderingModuleUrlImported !== !0) return n;
2290
+ let r = Date.now() + Ai;
2291
+ for (; Date.now() < r;) {
2292
+ await new Promise((e) => setTimeout(e, ki));
2293
+ let e = Ii();
2294
+ if (e) return e;
2295
+ }
2296
+ return null;
2297
+ }
2298
+ var Ri = async (e) => {
2139
2299
  if (typeof window > "u") return;
2140
2300
  let t = typeof e == "string", n;
2141
2301
  t ? (n = document.createElement("div"), n.innerHTML = e) : n = e || document.body;
2142
- let r = Yr();
2143
- return r ? await r.renderMath?.(n) : await Jr()(n), t ? n.innerHTML : void 0;
2144
- }, Zr = [
2302
+ let r = Pi(), i = r || t ? null : await Li(n);
2303
+ return r ? await r.renderMath?.(n) : i && i !== Ri ? await i(n) : await Ni()(n), t ? n.innerHTML : void 0;
2304
+ }, zi = [
2145
2305
  "nbsp iexcl cent pound curren yen brvbar sect uml copy ordf laquo not shy reg macr",
2146
2306
  "deg plusmn sup2 sup3 acute micro para middot cedil sup1 ordm raquo frac14 frac12 frac34 iquest",
2147
2307
  "Agrave Aacute Acirc Atilde Auml Aring AElig Ccedil Egrave Eacute Ecirc Euml Igrave Iacute Icirc Iuml",
2148
2308
  "ETH Ntilde Ograve Oacute Ocirc Otilde Ouml times Oslash Ugrave Uacute Ucirc Uuml Yacute THORN szlig",
2149
2309
  "agrave aacute acirc atilde auml aring aelig ccedil egrave eacute ecirc euml igrave iacute icirc iuml",
2150
2310
  "eth ntilde ograve oacute ocirc otilde ouml divide oslash ugrave uacute ucirc uuml yacute thorn yuml"
2151
- ].join(" "), Qr = "alpha beta gamma delta epsilon zeta eta theta iota kappa lambda mu nu xi omicron pi rho sigmaf sigma tau upsilon phi chi psi omega", $r = new Map(Object.entries({
2311
+ ].join(" "), Bi = "alpha beta gamma delta epsilon zeta eta theta iota kappa lambda mu nu xi omicron pi rho sigmaf sigma tau upsilon phi chi psi omega", Vi = new Map(Object.entries({
2152
2312
  quot: 34,
2153
2313
  amp: 38,
2154
2314
  apos: 39,
@@ -2179,16 +2339,16 @@ var Xr = async (e) => {
2179
2339
  le: 8804,
2180
2340
  ge: 8805
2181
2341
  }));
2182
- for (let [e, t] of Zr.split(" ").entries()) $r.set(t, 160 + e);
2183
- for (let [e, t] of Qr.split(" ").entries()) $r.set(t, 945 + e), t !== "sigmaf" && $r.set(t[0].toUpperCase() + t.slice(1), 913 + e);
2184
- var ei = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, ti = /<\/?[a-z][^>]*>|<!--[\s\S]*?-->/gi, ni = /&(#[0-9]+|#x[0-9a-f]+|[a-z][a-z0-9]*);/gi, ri = (e, t) => {
2342
+ for (let [e, t] of zi.split(" ").entries()) Vi.set(t, 160 + e);
2343
+ for (let [e, t] of Bi.split(" ").entries()) Vi.set(t, 945 + e), t !== "sigmaf" && Vi.set(t[0].toUpperCase() + t.slice(1), 913 + e);
2344
+ var Hi = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Ui = /<\/?[a-z][^>]*>|<!--[\s\S]*?-->/gi, Wi = /&(#[0-9]+|#x[0-9a-f]+|[a-z][a-z0-9]*);/gi, Gi = (e, t) => {
2185
2345
  if (t[0] === "#") {
2186
2346
  let e = t[1] === "x" || t[1] === "X", n = Number.parseInt(t.slice(e ? 2 : 1), e ? 16 : 10), r = n > 0 && n <= 1114111 && (n < 55296 || n > 57343);
2187
2347
  return String.fromCodePoint(r ? n : 65533);
2188
2348
  }
2189
- let n = $r.get(t);
2349
+ let n = Vi.get(t);
2190
2350
  return n === void 0 ? e : String.fromCodePoint(n);
2191
- }, ii = (e) => typeof e == "string" ? e.replace(ei, " ").replace(ti, "").replace(ni, ri).replace(/\s+/g, " ").trim() : "", ai = {
2351
+ }, Ki = (e) => typeof e == "string" ? e.replace(Hi, " ").replace(Ui, "").replace(Wi, Gi).replace(/\s+/g, " ").trim() : "", qi = {
2192
2352
  translation: {
2193
2353
  categorize: {
2194
2354
  limitMaxChoicesPerCategory: "You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.",
@@ -2328,7 +2488,7 @@ var ei = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, ti = /<
2328
2488
  hideNote: "Hide Note",
2329
2489
  cancel: "Cancel"
2330
2490
  }
2331
- }, oi = {
2491
+ }, Ji = {
2332
2492
  translation: {
2333
2493
  categorize: {
2334
2494
  limitMaxChoicesPerCategory: "Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.",
@@ -2468,55 +2628,55 @@ var ei = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, ti = /<
2468
2628
  hideNote: "Ocultar Nota",
2469
2629
  cancel: "Cancelar"
2470
2630
  }
2471
- }, Z = (e) => typeof e == "string", si = () => {
2631
+ }, Z = (e) => typeof e == "string", Yi = () => {
2472
2632
  let e, t, n = new Promise((n, r) => {
2473
2633
  e = n, t = r;
2474
2634
  });
2475
2635
  return n.resolve = e, n.reject = t, n;
2476
- }, ci = (e) => e == null ? "" : "" + e, li = (e, t, n) => {
2636
+ }, Xi = (e) => e == null ? "" : "" + e, Zi = (e, t, n) => {
2477
2637
  e.forEach((e) => {
2478
2638
  t[e] && (n[e] = t[e]);
2479
2639
  });
2480
- }, ui = /###/g, di = (e) => e && e.indexOf("###") > -1 ? e.replace(ui, ".") : e, fi = (e) => !e || Z(e), pi = (e, t, n) => {
2640
+ }, Qi = /###/g, $i = (e) => e && e.indexOf("###") > -1 ? e.replace(Qi, ".") : e, ea = (e) => !e || Z(e), ta = (e, t, n) => {
2481
2641
  let r = Z(t) ? t.split(".") : t, i = 0;
2482
2642
  for (; i < r.length - 1;) {
2483
- if (fi(e)) return {};
2484
- let t = di(r[i]);
2643
+ if (ea(e)) return {};
2644
+ let t = $i(r[i]);
2485
2645
  !e[t] && n && (e[t] = new n()), e = Object.prototype.hasOwnProperty.call(e, t) ? e[t] : {}, ++i;
2486
2646
  }
2487
- return fi(e) ? {} : {
2647
+ return ea(e) ? {} : {
2488
2648
  obj: e,
2489
- k: di(r[i])
2649
+ k: $i(r[i])
2490
2650
  };
2491
- }, mi = (e, t, n) => {
2492
- let { obj: r, k: i } = pi(e, t, Object);
2651
+ }, na = (e, t, n) => {
2652
+ let { obj: r, k: i } = ta(e, t, Object);
2493
2653
  if (r !== void 0 || t.length === 1) {
2494
2654
  r[i] = n;
2495
2655
  return;
2496
2656
  }
2497
- let a = t[t.length - 1], o = t.slice(0, t.length - 1), s = pi(e, o, Object);
2498
- for (; s.obj === void 0 && o.length;) a = `${o[o.length - 1]}.${a}`, o = o.slice(0, o.length - 1), s = pi(e, o, Object), s?.obj && s.obj[`${s.k}.${a}`] !== void 0 && (s.obj = void 0);
2657
+ let a = t[t.length - 1], o = t.slice(0, t.length - 1), s = ta(e, o, Object);
2658
+ for (; s.obj === void 0 && o.length;) a = `${o[o.length - 1]}.${a}`, o = o.slice(0, o.length - 1), s = ta(e, o, Object), s?.obj && s.obj[`${s.k}.${a}`] !== void 0 && (s.obj = void 0);
2499
2659
  s.obj[`${s.k}.${a}`] = n;
2500
- }, hi = (e, t, n, r) => {
2501
- let { obj: i, k: a } = pi(e, t, Object);
2660
+ }, ra = (e, t, n, r) => {
2661
+ let { obj: i, k: a } = ta(e, t, Object);
2502
2662
  i[a] = i[a] || [], i[a].push(n);
2503
- }, gi = (e, t) => {
2504
- let { obj: n, k: r } = pi(e, t);
2663
+ }, ia = (e, t) => {
2664
+ let { obj: n, k: r } = ta(e, t);
2505
2665
  if (n && Object.prototype.hasOwnProperty.call(n, r)) return n[r];
2506
- }, _i = (e, t, n) => {
2507
- let r = gi(e, n);
2508
- return r === void 0 ? gi(t, n) : r;
2509
- }, vi = (e, t, n) => {
2510
- for (let r in t) r !== "__proto__" && r !== "constructor" && (r in e ? Z(e[r]) || e[r] instanceof String || Z(t[r]) || t[r] instanceof String ? n && (e[r] = t[r]) : vi(e[r], t[r], n) : e[r] = t[r]);
2666
+ }, aa = (e, t, n) => {
2667
+ let r = ia(e, n);
2668
+ return r === void 0 ? ia(t, n) : r;
2669
+ }, oa = (e, t, n) => {
2670
+ for (let r in t) r !== "__proto__" && r !== "constructor" && (r in e ? Z(e[r]) || e[r] instanceof String || Z(t[r]) || t[r] instanceof String ? n && (e[r] = t[r]) : oa(e[r], t[r], n) : e[r] = t[r]);
2511
2671
  return e;
2512
- }, yi = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), bi = {
2672
+ }, sa = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), ca = {
2513
2673
  "&": "&amp;",
2514
2674
  "<": "&lt;",
2515
2675
  ">": "&gt;",
2516
2676
  "\"": "&quot;",
2517
2677
  "'": "&#39;",
2518
2678
  "/": "&#x2F;"
2519
- }, xi = (e) => Z(e) ? e.replace(/[&<>"'\/]/g, (e) => bi[e]) : e, Si = class {
2679
+ }, la = (e) => Z(e) ? e.replace(/[&<>"'\/]/g, (e) => ca[e]) : e, ua = class {
2520
2680
  constructor(e) {
2521
2681
  this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
2522
2682
  }
@@ -2526,23 +2686,23 @@ var ei = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, ti = /<
2526
2686
  let n = new RegExp(e);
2527
2687
  return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, n), this.regExpQueue.push(e), n;
2528
2688
  }
2529
- }, Ci = [
2689
+ }, da = [
2530
2690
  " ",
2531
2691
  ",",
2532
2692
  "?",
2533
2693
  "!",
2534
2694
  ";"
2535
- ], wi = new Si(20), Ti = (e, t, n) => {
2695
+ ], fa = new ua(20), pa = (e, t, n) => {
2536
2696
  t ||= "", n ||= "";
2537
- let r = Ci.filter((e) => t.indexOf(e) < 0 && n.indexOf(e) < 0);
2697
+ let r = da.filter((e) => t.indexOf(e) < 0 && n.indexOf(e) < 0);
2538
2698
  if (r.length === 0) return !0;
2539
- let i = wi.getRegExp(`(${r.map((e) => e === "?" ? "\\?" : e).join("|")})`), a = !i.test(e);
2699
+ let i = fa.getRegExp(`(${r.map((e) => e === "?" ? "\\?" : e).join("|")})`), a = !i.test(e);
2540
2700
  if (!a) {
2541
2701
  let t = e.indexOf(n);
2542
2702
  t > 0 && !i.test(e.substring(0, t)) && (a = !0);
2543
2703
  }
2544
2704
  return a;
2545
- }, Ei = (e, t, n = ".") => {
2705
+ }, ma = (e, t, n = ".") => {
2546
2706
  if (!e) return;
2547
2707
  if (e[t]) return Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0;
2548
2708
  let r = t.split(n), i = e;
@@ -2561,7 +2721,7 @@ var ei = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, ti = /<
2561
2721
  i = t;
2562
2722
  }
2563
2723
  return i;
2564
- }, Di = (e) => e?.replace(/_/g, "-"), Oi = {
2724
+ }, ha = (e) => e?.replace(/_/g, "-"), ga = {
2565
2725
  type: "logger",
2566
2726
  log(e) {
2567
2727
  this.output("log", e);
@@ -2580,7 +2740,7 @@ var ei = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, ti = /<
2580
2740
  this.init(e, t);
2581
2741
  }
2582
2742
  init(e, t = {}) {
2583
- this.prefix = t.prefix || "i18next:", this.logger = e || Oi, this.options = t, this.debug = t.debug;
2743
+ this.prefix = t.prefix || "i18next:", this.logger = e || ga, this.options = t, this.debug = t.debug;
2584
2744
  }
2585
2745
  log(...e) {
2586
2746
  return this.forward(e, "log", "", !0);
@@ -2606,7 +2766,7 @@ var ei = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, ti = /<
2606
2766
  clone(t) {
2607
2767
  return t ||= this.options, t.prefix = t.prefix || this.prefix, new e(this.logger, t);
2608
2768
  }
2609
- }(), ki = class {
2769
+ }(), _a = class {
2610
2770
  constructor() {
2611
2771
  this.observers = {};
2612
2772
  }
@@ -2633,7 +2793,7 @@ var ei = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, ti = /<
2633
2793
  for (let i = 0; i < r; i++) n.apply(n, [e, ...t]);
2634
2794
  });
2635
2795
  }
2636
- }, Ai = class extends ki {
2796
+ }, va = class extends _a {
2637
2797
  constructor(e, t = {
2638
2798
  ns: ["translation"],
2639
2799
  defaultNS: "translation"
@@ -2650,12 +2810,12 @@ var ei = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, ti = /<
2650
2810
  getResource(e, t, n, r = {}) {
2651
2811
  let i = r.keySeparator === void 0 ? this.options.keySeparator : r.keySeparator, a = r.ignoreJSONStructure === void 0 ? this.options.ignoreJSONStructure : r.ignoreJSONStructure, o;
2652
2812
  e.indexOf(".") > -1 ? o = e.split(".") : (o = [e, t], n && (Array.isArray(n) ? o.push(...n) : Z(n) && i ? o.push(...n.split(i)) : o.push(n)));
2653
- let s = gi(this.data, o);
2654
- return !s && !t && !n && e.indexOf(".") > -1 && (e = o[0], t = o[1], n = o.slice(2).join(".")), s || !a || !Z(n) ? s : Ei(this.data?.[e]?.[t], n, i);
2813
+ let s = ia(this.data, o);
2814
+ return !s && !t && !n && e.indexOf(".") > -1 && (e = o[0], t = o[1], n = o.slice(2).join(".")), s || !a || !Z(n) ? s : ma(this.data?.[e]?.[t], n, i);
2655
2815
  }
2656
2816
  addResource(e, t, n, r, i = { silent: !1 }) {
2657
2817
  let a = i.keySeparator === void 0 ? this.options.keySeparator : i.keySeparator, o = [e, t];
2658
- n && (o = o.concat(a ? n.split(a) : n)), e.indexOf(".") > -1 && (o = e.split("."), r = t, t = o[1]), this.addNamespaces(t), mi(this.data, o, r), i.silent || this.emit("added", e, t, n, r);
2818
+ n && (o = o.concat(a ? n.split(a) : n)), e.indexOf(".") > -1 && (o = e.split("."), r = t, t = o[1]), this.addNamespaces(t), na(this.data, o, r), i.silent || this.emit("added", e, t, n, r);
2659
2819
  }
2660
2820
  addResources(e, t, n, r = { silent: !1 }) {
2661
2821
  for (let r in n) (Z(n[r]) || Array.isArray(n[r])) && this.addResource(e, t, r, n[r], { silent: !0 });
@@ -2667,11 +2827,11 @@ var ei = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, ti = /<
2667
2827
  }) {
2668
2828
  let o = [e, t];
2669
2829
  e.indexOf(".") > -1 && (o = e.split("."), r = n, n = t, t = o[1]), this.addNamespaces(t);
2670
- let s = gi(this.data, o) || {};
2671
- a.skipCopy || (n = JSON.parse(JSON.stringify(n))), r ? vi(s, n, i) : s = {
2830
+ let s = ia(this.data, o) || {};
2831
+ a.skipCopy || (n = JSON.parse(JSON.stringify(n))), r ? oa(s, n, i) : s = {
2672
2832
  ...s,
2673
2833
  ...n
2674
- }, mi(this.data, o, s), a.silent || this.emit("added", e, t, n);
2834
+ }, na(this.data, o, s), a.silent || this.emit("added", e, t, n);
2675
2835
  }
2676
2836
  removeResourceBundle(e, t) {
2677
2837
  this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
@@ -2692,7 +2852,7 @@ var ei = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, ti = /<
2692
2852
  toJSON() {
2693
2853
  return this.data;
2694
2854
  }
2695
- }, ji = {
2855
+ }, ya = {
2696
2856
  processors: {},
2697
2857
  addPostProcessor(e) {
2698
2858
  this.processors[e.name] = e;
@@ -2702,22 +2862,22 @@ var ei = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, ti = /<
2702
2862
  t = this.processors[e]?.process(t, n, r, i) ?? t;
2703
2863
  }), t;
2704
2864
  }
2705
- }, Mi = Symbol("i18next/PATH_KEY");
2706
- function Ni() {
2865
+ }, ba = Symbol("i18next/PATH_KEY");
2866
+ function xa() {
2707
2867
  let e = [], t = Object.create(null), n;
2708
- return t.get = (r, i) => (n?.revoke?.(), i === Mi ? e : (e.push(i), n = Proxy.revocable(r, t), n.proxy)), Proxy.revocable(Object.create(null), t).proxy;
2868
+ return t.get = (r, i) => (n?.revoke?.(), i === ba ? e : (e.push(i), n = Proxy.revocable(r, t), n.proxy)), Proxy.revocable(Object.create(null), t).proxy;
2709
2869
  }
2710
- function Pi(e, t) {
2711
- let { [Mi]: n } = e(Ni()), r = t?.keySeparator ?? ".", i = t?.nsSeparator ?? ":";
2870
+ function Sa(e, t) {
2871
+ let { [ba]: n } = e(xa()), r = t?.keySeparator ?? ".", i = t?.nsSeparator ?? ":";
2712
2872
  if (n.length > 1 && i) {
2713
2873
  let e = t?.ns, a = Array.isArray(e) ? e : null;
2714
2874
  if (a && a.length > 1 && a.slice(1).includes(n[0])) return `${n[0]}${i}${n.slice(1).join(r)}`;
2715
2875
  }
2716
2876
  return n.join(r);
2717
2877
  }
2718
- var Fi = {}, Ii = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number", Li = class e extends ki {
2878
+ var Ca = {}, wa = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number", Ta = class e extends _a {
2719
2879
  constructor(e, t = {}) {
2720
- super(), li([
2880
+ super(), Zi([
2721
2881
  "resourceStore",
2722
2882
  "languageUtils",
2723
2883
  "pluralResolver",
@@ -2735,13 +2895,13 @@ var Fi = {}, Ii = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
2735
2895
  if (e == null) return !1;
2736
2896
  let r = this.resolve(e, n);
2737
2897
  if (r?.res === void 0) return !1;
2738
- let i = Ii(r.res);
2898
+ let i = wa(r.res);
2739
2899
  return !(n.returnObjects === !1 && i);
2740
2900
  }
2741
2901
  extractFromKey(e, t) {
2742
2902
  let n = t.nsSeparator === void 0 ? this.options.nsSeparator : t.nsSeparator;
2743
2903
  n === void 0 && (n = ":");
2744
- let r = t.keySeparator === void 0 ? this.options.keySeparator : t.keySeparator, i = t.ns || this.options.defaultNS || [], a = n && e.indexOf(n) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Ti(e, n, r);
2904
+ let r = t.keySeparator === void 0 ? this.options.keySeparator : t.keySeparator, i = t.ns || this.options.defaultNS || [], a = n && e.indexOf(n) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !pa(e, n, r);
2745
2905
  if (a && !o) {
2746
2906
  let t = e.match(this.interpolator.nestingRegexp);
2747
2907
  if (t && t.length > 0) return {
@@ -2759,10 +2919,10 @@ var Fi = {}, Ii = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
2759
2919
  translate(t, n, r) {
2760
2920
  let i = typeof n == "object" ? { ...n } : n;
2761
2921
  if (typeof i != "object" && this.options.overloadTranslationOptionHandler && (i = this.options.overloadTranslationOptionHandler(arguments)), typeof i == "object" && (i = { ...i }), i ||= {}, t == null) return "";
2762
- typeof t == "function" && (t = Pi(t, {
2922
+ typeof t == "function" && (t = Sa(t, {
2763
2923
  ...this.options,
2764
2924
  ...i
2765
- })), Array.isArray(t) || (t = [String(t)]), t = t.map((e) => typeof e == "function" ? Pi(e, {
2925
+ })), Array.isArray(t) || (t = [String(t)]), t = t.map((e) => typeof e == "function" ? Sa(e, {
2766
2926
  ...this.options,
2767
2927
  ...i
2768
2928
  }) : String(e));
@@ -2790,7 +2950,7 @@ var Fi = {}, Ii = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
2790
2950
  "[object RegExp]"
2791
2951
  ], _ = i.joinArrays === void 0 ? this.options.joinArrays : i.joinArrays, v = !this.i18nFormat || this.i18nFormat.handleAsObject, y = i.count !== void 0 && !Z(i.count), b = e.hasDefaultValue(i), te = y ? this.pluralResolver.getSuffix(d, i.count, i) : "", ne = i.ordinal && y ? this.pluralResolver.getSuffix(d, i.count, { ordinal: !1 }) : "", re = y && !i.ordinal && i.count === 0, x = re && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${te}`] || i[`defaultValue${ne}`] || i.defaultValue, S = m;
2792
2952
  v && !m && b && (S = x);
2793
- let ie = Ii(S), ae = Object.prototype.toString.apply(S);
2953
+ let ie = wa(S), ae = Object.prototype.toString.apply(S);
2794
2954
  if (v && S && ie && ee.indexOf(ae) < 0 && !(Z(_) && Array.isArray(S))) {
2795
2955
  if (!i.returnObjects && !this.options.returnObjects) {
2796
2956
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
@@ -2806,7 +2966,7 @@ var Fi = {}, Ii = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
2806
2966
  let r = `${n}${o}${e}`;
2807
2967
  b && !m ? t[e] = this.translate(r, {
2808
2968
  ...i,
2809
- defaultValue: Ii(x) ? x[e] : void 0,
2969
+ defaultValue: wa(x) ? x[e] : void 0,
2810
2970
  joinArrays: !1,
2811
2971
  ns: c
2812
2972
  }) : t[e] = this.translate(r, {
@@ -2877,7 +3037,7 @@ var Fi = {}, Ii = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
2877
3037
  !n.lng && r && r.res && (n.lng = this.language || r.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, (...e) => i?.[0] === e[0] && !n.context ? (this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`), null) : this.translate(...e, t), n)), n.interpolation && this.interpolator.reset();
2878
3038
  }
2879
3039
  let a = n.postProcess || this.options.postProcess, o = Z(a) ? [a] : a;
2880
- return e != null && o?.length && n.applyPostProcessor !== !1 && (e = ji.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
3040
+ return e != null && o?.length && n.applyPostProcessor !== !1 && (e = ya.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
2881
3041
  i18nResolved: {
2882
3042
  ...r,
2883
3043
  usedParams: this.getUsedParamsDetails(n)
@@ -2887,7 +3047,7 @@ var Fi = {}, Ii = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
2887
3047
  }
2888
3048
  resolve(e, t = {}) {
2889
3049
  let n, r, i, a, o;
2890
- return Z(e) && (e = [e]), Array.isArray(e) && (e = e.map((e) => typeof e == "function" ? Pi(e, {
3050
+ return Z(e) && (e = [e]), Array.isArray(e) && (e = e.map((e) => typeof e == "function" ? Sa(e, {
2891
3051
  ...this.options,
2892
3052
  ...t
2893
3053
  }) : e)), e.forEach((e) => {
@@ -2898,7 +3058,7 @@ var Fi = {}, Ii = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
2898
3058
  this.options.fallbackNS && (l = l.concat(this.options.fallbackNS));
2899
3059
  let u = t.count !== void 0 && !Z(t.count), d = u && !t.ordinal && t.count === 0, f = t.context !== void 0 && (Z(t.context) || typeof t.context == "number") && t.context !== "", p = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
2900
3060
  l.forEach((e) => {
2901
- this.isValidLookup(n) || (o = e, !Fi[`${p[0]}-${e}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(o) && (Fi[`${p[0]}-${e}`] = !0, this.logger.warn(`key "${r}" for languages "${p.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), p.forEach((r) => {
3061
+ this.isValidLookup(n) || (o = e, !Ca[`${p[0]}-${e}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(o) && (Ca[`${p[0]}-${e}`] = !0, this.logger.warn(`key "${r}" for languages "${p.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), p.forEach((r) => {
2902
3062
  if (this.isValidLookup(n)) return;
2903
3063
  a = r;
2904
3064
  let o = [c];
@@ -2961,17 +3121,17 @@ var Fi = {}, Ii = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
2961
3121
  for (let t in e) if (Object.prototype.hasOwnProperty.call(e, t) && t.substring(0, 12) === "defaultValue" && e[t] !== void 0) return !0;
2962
3122
  return !1;
2963
3123
  }
2964
- }, Ri = class {
3124
+ }, Ea = class {
2965
3125
  constructor(e) {
2966
3126
  this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = Q.create("languageUtils");
2967
3127
  }
2968
3128
  getScriptPartFromCode(e) {
2969
- if (e = Di(e), !e || e.indexOf("-") < 0) return null;
3129
+ if (e = ha(e), !e || e.indexOf("-") < 0) return null;
2970
3130
  let t = e.split("-");
2971
3131
  return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
2972
3132
  }
2973
3133
  getLanguagePartFromCode(e) {
2974
- if (e = Di(e), !e || e.indexOf("-") < 0) return e;
3134
+ if (e = ha(e), !e || e.indexOf("-") < 0) return e;
2975
3135
  let t = e.split("-");
2976
3136
  return this.formatLanguageCode(t[0]);
2977
3137
  }
@@ -3021,17 +3181,17 @@ var Fi = {}, Ii = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3021
3181
  r.indexOf(e) < 0 && i(this.formatLanguageCode(e));
3022
3182
  }), r;
3023
3183
  }
3024
- }, zi = {
3184
+ }, Da = {
3025
3185
  zero: 0,
3026
3186
  one: 1,
3027
3187
  two: 2,
3028
3188
  few: 3,
3029
3189
  many: 4,
3030
3190
  other: 5
3031
- }, Bi = {
3191
+ }, Oa = {
3032
3192
  select: (e) => e === 1 ? "one" : "other",
3033
3193
  resolvedOptions: () => ({ pluralCategories: ["one", "other"] })
3034
- }, Vi = class {
3194
+ }, ka = class {
3035
3195
  constructor(e, t = {}) {
3036
3196
  this.languageUtils = e, this.options = t, this.logger = Q.create("pluralResolver"), this.pluralRulesCache = {};
3037
3197
  }
@@ -3039,7 +3199,7 @@ var Fi = {}, Ii = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3039
3199
  this.pluralRulesCache = {};
3040
3200
  }
3041
3201
  getRule(e, t = {}) {
3042
- let n = Di(e === "dev" ? "en" : e), r = t.ordinal ? "ordinal" : "cardinal", i = JSON.stringify({
3202
+ let n = ha(e === "dev" ? "en" : e), r = t.ordinal ? "ordinal" : "cardinal", i = JSON.stringify({
3043
3203
  cleanedCode: n,
3044
3204
  type: r
3045
3205
  });
@@ -3048,8 +3208,8 @@ var Fi = {}, Ii = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3048
3208
  try {
3049
3209
  a = new Intl.PluralRules(n, { type: r });
3050
3210
  } catch {
3051
- if (typeof Intl > "u") return this.logger.error("No Intl support, please use an Intl polyfill!"), Bi;
3052
- if (!e.match(/-|_/)) return Bi;
3211
+ if (typeof Intl > "u") return this.logger.error("No Intl support, please use an Intl polyfill!"), Oa;
3212
+ if (!e.match(/-|_/)) return Oa;
3053
3213
  let n = this.languageUtils.getLanguagePartFromCode(e);
3054
3214
  a = this.getRule(n, t);
3055
3215
  }
@@ -3064,23 +3224,23 @@ var Fi = {}, Ii = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3064
3224
  }
3065
3225
  getSuffixes(e, t = {}) {
3066
3226
  let n = this.getRule(e, t);
3067
- return n ||= this.getRule("dev", t), n ? n.resolvedOptions().pluralCategories.sort((e, t) => zi[e] - zi[t]).map((e) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${e}`) : [];
3227
+ return n ||= this.getRule("dev", t), n ? n.resolvedOptions().pluralCategories.sort((e, t) => Da[e] - Da[t]).map((e) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${e}`) : [];
3068
3228
  }
3069
3229
  getSuffix(e, t, n = {}) {
3070
3230
  let r = this.getRule(e, n);
3071
3231
  return r ? `${this.options.prepend}${n.ordinal ? `ordinal${this.options.prepend}` : ""}${r.select(t)}` : (this.logger.warn(`no plural rule found for: ${e}`), this.getSuffix("dev", t, n));
3072
3232
  }
3073
- }, Hi = (e, t, n, r = ".", i = !0) => {
3074
- let a = _i(e, t, n);
3075
- return !a && i && Z(n) && (a = Ei(e, n, r), a === void 0 && (a = Ei(t, n, r))), a;
3076
- }, Ui = (e) => e.replace(/\$/g, "$$$$"), Wi = class {
3233
+ }, Aa = (e, t, n, r = ".", i = !0) => {
3234
+ let a = aa(e, t, n);
3235
+ return !a && i && Z(n) && (a = ma(e, n, r), a === void 0 && (a = ma(t, n, r))), a;
3236
+ }, ja = (e) => e.replace(/\$/g, "$$$$"), Ma = class {
3077
3237
  constructor(e = {}) {
3078
3238
  this.logger = Q.create("interpolator"), this.options = e, this.format = e?.interpolation?.format || ((e) => e), this.init(e);
3079
3239
  }
3080
3240
  init(e = {}) {
3081
3241
  e.interpolation ||= { escapeValue: !0 };
3082
3242
  let { escape: t, escapeValue: n, useRawValueToEscape: r, prefix: i, prefixEscaped: a, suffix: o, suffixEscaped: s, formatSeparator: c, unescapeSuffix: l, unescapePrefix: u, nestingPrefix: d, nestingPrefixEscaped: f, nestingSuffix: p, nestingSuffixEscaped: m, nestingOptionsSeparator: h, maxReplaces: g, alwaysFormat: ee } = e.interpolation;
3083
- this.escape = t === void 0 ? xi : t, this.escapeValue = n === void 0 || n, this.useRawValueToEscape = r !== void 0 && r, this.prefix = i ? yi(i) : a || "{{", this.suffix = o ? yi(o) : s || "}}", this.formatSeparator = c || ",", this.unescapePrefix = l ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = d ? yi(d) : f || yi("$t("), this.nestingSuffix = p ? yi(p) : m || yi(")"), this.nestingOptionsSeparator = h || ",", this.maxReplaces = g || 1e3, this.alwaysFormat = ee !== void 0 && ee, this.resetRegExp();
3243
+ this.escape = t === void 0 ? la : t, this.escapeValue = n === void 0 || n, this.useRawValueToEscape = r !== void 0 && r, this.prefix = i ? sa(i) : a || "{{", this.suffix = o ? sa(o) : s || "}}", this.formatSeparator = c || ",", this.unescapePrefix = l ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = d ? sa(d) : f || sa("$t("), this.nestingSuffix = p ? sa(p) : m || sa(")"), this.nestingOptionsSeparator = h || ",", this.maxReplaces = g || 1e3, this.alwaysFormat = ee !== void 0 && ee, this.resetRegExp();
3084
3244
  }
3085
3245
  reset() {
3086
3246
  this.options && this.init(this.options);
@@ -3092,7 +3252,7 @@ var Fi = {}, Ii = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3092
3252
  interpolate(e, t, n, r) {
3093
3253
  let i, a, o, s = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (e) => {
3094
3254
  if (e.indexOf(this.formatSeparator) < 0) {
3095
- let i = Hi(t, s, e, this.options.keySeparator, this.options.ignoreJSONStructure);
3255
+ let i = Aa(t, s, e, this.options.keySeparator, this.options.ignoreJSONStructure);
3096
3256
  return this.alwaysFormat ? this.format(i, void 0, n, {
3097
3257
  ...r,
3098
3258
  ...t,
@@ -3100,7 +3260,7 @@ var Fi = {}, Ii = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3100
3260
  }) : i;
3101
3261
  }
3102
3262
  let i = e.split(this.formatSeparator), a = i.shift().trim(), o = i.join(this.formatSeparator).trim();
3103
- return this.format(Hi(t, s, a, this.options.keySeparator, this.options.ignoreJSONStructure), o, n, {
3263
+ return this.format(Aa(t, s, a, this.options.keySeparator, this.options.ignoreJSONStructure), o, n, {
3104
3264
  ...r,
3105
3265
  ...t,
3106
3266
  interpolationkey: a
@@ -3110,10 +3270,10 @@ var Fi = {}, Ii = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3110
3270
  let l = r?.missingInterpolationHandler || this.options.missingInterpolationHandler, u = r?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : r.interpolation.skipOnVariables;
3111
3271
  return [{
3112
3272
  regex: this.regexpUnescape,
3113
- safeValue: (e) => Ui(e)
3273
+ safeValue: (e) => ja(e)
3114
3274
  }, {
3115
3275
  regex: this.regexp,
3116
- safeValue: (e) => this.escapeValue ? Ui(this.escape(e)) : Ui(e)
3276
+ safeValue: (e) => this.escapeValue ? ja(this.escape(e)) : ja(e)
3117
3277
  }].forEach((t) => {
3118
3278
  for (o = 0; i = t.regex.exec(e);) {
3119
3279
  let n = i[1].trim();
@@ -3125,7 +3285,7 @@ var Fi = {}, Ii = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3125
3285
  a = i[0];
3126
3286
  continue;
3127
3287
  } else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`), a = "";
3128
- else !Z(a) && !this.useRawValueToEscape && (a = ci(a));
3288
+ else !Z(a) && !this.useRawValueToEscape && (a = Xi(a));
3129
3289
  let s = t.safeValue(a);
3130
3290
  if (e = e.replace(i[0], s), u ? (t.regex.lastIndex += a.length, t.regex.lastIndex -= i[0].length) : t.regex.lastIndex = 0, o++, o >= this.maxReplaces) break;
3131
3291
  }
@@ -3135,7 +3295,7 @@ var Fi = {}, Ii = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3135
3295
  let r, i, a, o = (e, t) => {
3136
3296
  let n = this.nestingOptionsSeparator;
3137
3297
  if (e.indexOf(n) < 0) return e;
3138
- let r = e.split(RegExp(`${yi(n)}[ ]*{`)), i = `{${r[1]}`;
3298
+ let r = e.split(RegExp(`${sa(n)}[ ]*{`)), i = `{${r[1]}`;
3139
3299
  e = r[0], i = this.interpolate(i, a);
3140
3300
  let o = i.match(/'/g), s = i.match(/"/g);
3141
3301
  ((o?.length ?? 0) % 2 == 0 && !s || (s?.length ?? 0) % 2 != 0) && (i = i.replace(/'/g, "\""));
@@ -3154,14 +3314,14 @@ var Fi = {}, Ii = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3154
3314
  a = { ...n }, a = a.replace && !Z(a.replace) ? a.replace : a, a.applyPostProcessor = !1, delete a.defaultValue;
3155
3315
  let c = /{.*}/.test(r[1]) ? r[1].lastIndexOf("}") + 1 : r[1].indexOf(this.formatSeparator);
3156
3316
  if (c !== -1 && (s = r[1].slice(c).split(this.formatSeparator).map((e) => e.trim()).filter(Boolean), r[1] = r[1].slice(0, c)), i = t(o.call(this, r[1].trim(), a), a), i && r[0] === e && !Z(i)) return i;
3157
- Z(i) || (i = ci(i)), i ||= (this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`), ""), s.length && (i = s.reduce((e, t) => this.format(e, t, n.lng, {
3317
+ Z(i) || (i = Xi(i)), i ||= (this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`), ""), s.length && (i = s.reduce((e, t) => this.format(e, t, n.lng, {
3158
3318
  ...n,
3159
3319
  interpolationkey: r[1].trim()
3160
3320
  }), i.trim())), e = e.replace(r[0], i), this.regexp.lastIndex = 0;
3161
3321
  }
3162
3322
  return e;
3163
3323
  }
3164
- }, Gi = (e) => {
3324
+ }, Na = (e) => {
3165
3325
  let t = e.toLowerCase().trim(), n = {};
3166
3326
  if (e.indexOf("(") > -1) {
3167
3327
  let r = e.split("(");
@@ -3178,7 +3338,7 @@ var Fi = {}, Ii = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3178
3338
  formatName: t,
3179
3339
  formatOptions: n
3180
3340
  };
3181
- }, Ki = (e) => {
3341
+ }, Pa = (e) => {
3182
3342
  let t = {};
3183
3343
  return (n, r, i) => {
3184
3344
  let a = i;
@@ -3187,15 +3347,15 @@ var Fi = {}, Ii = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3187
3347
  [i.interpolationkey]: void 0
3188
3348
  });
3189
3349
  let o = r + JSON.stringify(a), s = t[o];
3190
- return s || (s = e(Di(r), i), t[o] = s), s(n);
3350
+ return s || (s = e(ha(r), i), t[o] = s), s(n);
3191
3351
  };
3192
- }, qi = (e) => (t, n, r) => e(Di(n), r)(t), Ji = class {
3352
+ }, Fa = (e) => (t, n, r) => e(ha(n), r)(t), Ia = class {
3193
3353
  constructor(e = {}) {
3194
3354
  this.logger = Q.create("formatter"), this.options = e, this.init(e);
3195
3355
  }
3196
3356
  init(e, t = { interpolation: {} }) {
3197
3357
  this.formatSeparator = t.interpolation.formatSeparator || ",";
3198
- let n = t.cacheInBuiltFormats ? Ki : qi;
3358
+ let n = t.cacheInBuiltFormats ? Pa : Fa;
3199
3359
  this.formats = {
3200
3360
  number: n((e, t) => {
3201
3361
  let n = new Intl.NumberFormat(e, { ...t });
@@ -3226,7 +3386,7 @@ var Fi = {}, Ii = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3226
3386
  this.formats[e.toLowerCase().trim()] = t;
3227
3387
  }
3228
3388
  addCached(e, t) {
3229
- this.formats[e.toLowerCase().trim()] = Ki(t);
3389
+ this.formats[e.toLowerCase().trim()] = Pa(t);
3230
3390
  }
3231
3391
  format(e, t, n, r = {}) {
3232
3392
  let i = t.split(this.formatSeparator);
@@ -3235,7 +3395,7 @@ var Fi = {}, Ii = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3235
3395
  i[0] = [i[0], ...i.splice(1, e)].join(this.formatSeparator);
3236
3396
  }
3237
3397
  return i.reduce((e, t) => {
3238
- let { formatName: i, formatOptions: a } = Gi(t);
3398
+ let { formatName: i, formatOptions: a } = Na(t);
3239
3399
  if (this.formats[i]) {
3240
3400
  let t = e;
3241
3401
  try {
@@ -3253,9 +3413,9 @@ var Fi = {}, Ii = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3253
3413
  return e;
3254
3414
  }, e);
3255
3415
  }
3256
- }, Yi = (e, t) => {
3416
+ }, La = (e, t) => {
3257
3417
  e.pending[t] !== void 0 && (delete e.pending[t], e.pendingCount--);
3258
- }, Xi = class extends ki {
3418
+ }, Ra = class extends _a {
3259
3419
  constructor(e, t, n, r = {}) {
3260
3420
  super(), this.backend = e, this.store = t, this.services = n, this.languageUtils = n.languageUtils, this.options = r, this.logger = Q.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = r.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = r.maxRetries >= 0 ? r.maxRetries : 5, this.retryTimeout = r.retryTimeout >= 1 ? r.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(n, r.backend, r);
3261
3421
  }
@@ -3285,7 +3445,7 @@ var Fi = {}, Ii = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3285
3445
  t && this.emit("failedLoading", i, a, t), !t && n && this.store.addResourceBundle(i, a, n, void 0, void 0, { skipCopy: !0 }), this.state[e] = t ? -1 : 2, t && n && (this.state[e] = 0);
3286
3446
  let o = {};
3287
3447
  this.queue.forEach((n) => {
3288
- hi(n.loaded, [i], a), Yi(n, e), t && n.errors.push(t), n.pendingCount === 0 && !n.done && (Object.keys(n.loaded).forEach((e) => {
3448
+ ra(n.loaded, [i], a), La(n, e), t && n.errors.push(t), n.pendingCount === 0 && !n.done && (Object.keys(n.loaded).forEach((e) => {
3289
3449
  o[e] || (o[e] = {});
3290
3450
  let t = n.loaded[e];
3291
3451
  t.length && t.forEach((t) => {
@@ -3375,7 +3535,7 @@ var Fi = {}, Ii = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3375
3535
  !e || !e[0] || this.store.addResource(e[0], t, n, r);
3376
3536
  }
3377
3537
  }
3378
- }, Zi = () => ({
3538
+ }, za = () => ({
3379
3539
  debug: !1,
3380
3540
  initAsync: !0,
3381
3541
  ns: ["translation"],
@@ -3432,15 +3592,15 @@ var Fi = {}, Ii = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3432
3592
  skipOnVariables: !0
3433
3593
  },
3434
3594
  cacheInBuiltFormats: !0
3435
- }), Qi = (e) => (Z(e.ns) && (e.ns = [e.ns]), Z(e.fallbackLng) && (e.fallbackLng = [e.fallbackLng]), Z(e.fallbackNS) && (e.fallbackNS = [e.fallbackNS]), e.supportedLngs?.indexOf?.("cimode") < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), typeof e.initImmediate == "boolean" && (e.initAsync = e.initImmediate), e), $i = () => {}, ea = (e) => {
3595
+ }), Ba = (e) => (Z(e.ns) && (e.ns = [e.ns]), Z(e.fallbackLng) && (e.fallbackLng = [e.fallbackLng]), Z(e.fallbackNS) && (e.fallbackNS = [e.fallbackNS]), e.supportedLngs?.indexOf?.("cimode") < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), typeof e.initImmediate == "boolean" && (e.initAsync = e.initImmediate), e), Va = () => {}, Ha = (e) => {
3436
3596
  Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((t) => {
3437
3597
  typeof e[t] == "function" && (e[t] = e[t].bind(e));
3438
3598
  });
3439
- }, ta = "__i18next_supportNoticeShown", na = () => !!(typeof globalThis < "u" && globalThis[ta] || typeof process < "u" && process.env && process.env.I18NEXT_NO_SUPPORT_NOTICE || typeof process < "u" && process.env), ra = () => {
3440
- typeof globalThis < "u" && (globalThis[ta] = !0);
3441
- }, ia = (e) => !!(e?.modules?.backend?.name?.indexOf("Locize") > 0 || e?.modules?.backend?.constructor?.name?.indexOf("Locize") > 0 || e?.options?.backend?.backends && e.options.backend.backends.some((e) => e?.name?.indexOf("Locize") > 0 || e?.constructor?.name?.indexOf("Locize") > 0) || e?.options?.backend?.projectId || e?.options?.backend?.backendOptions && e.options.backend.backendOptions.some((e) => e?.projectId)), $ = class e extends ki {
3599
+ }, Ua = "__i18next_supportNoticeShown", Wa = () => !!(typeof globalThis < "u" && globalThis[Ua] || typeof process < "u" && process.env && process.env.I18NEXT_NO_SUPPORT_NOTICE || typeof process < "u" && process.env), Ga = () => {
3600
+ typeof globalThis < "u" && (globalThis[Ua] = !0);
3601
+ }, Ka = (e) => !!(e?.modules?.backend?.name?.indexOf("Locize") > 0 || e?.modules?.backend?.constructor?.name?.indexOf("Locize") > 0 || e?.options?.backend?.backends && e.options.backend.backends.some((e) => e?.name?.indexOf("Locize") > 0 || e?.constructor?.name?.indexOf("Locize") > 0) || e?.options?.backend?.projectId || e?.options?.backend?.backendOptions && e.options.backend.backendOptions.some((e) => e?.projectId)), $ = class e extends _a {
3442
3602
  constructor(e = {}, t) {
3443
- if (super(), this.options = Qi(e), this.services = {}, this.logger = Q, this.modules = { external: [] }, ea(this), t && !this.isInitialized && !e.isClone) {
3603
+ if (super(), this.options = Ba(e), this.services = {}, this.logger = Q, this.modules = { external: [] }, Ha(this), t && !this.isInitialized && !e.isClone) {
3444
3604
  if (!this.options.initAsync) return this.init(e, t), this;
3445
3605
  setTimeout(() => {
3446
3606
  this.init(e, t);
@@ -3449,35 +3609,35 @@ var Fi = {}, Ii = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3449
3609
  }
3450
3610
  init(e = {}, t) {
3451
3611
  this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (Z(e.ns) ? e.defaultNS = e.ns : e.ns.indexOf("translation") < 0 && (e.defaultNS = e.ns[0]));
3452
- let n = Zi();
3612
+ let n = za();
3453
3613
  this.options = {
3454
3614
  ...n,
3455
3615
  ...this.options,
3456
- ...Qi(e)
3616
+ ...Ba(e)
3457
3617
  }, this.options.interpolation = {
3458
3618
  ...n.interpolation,
3459
3619
  ...this.options.interpolation
3460
- }, e.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e.keySeparator), e.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e.nsSeparator), typeof this.options.overloadTranslationOptionHandler != "function" && (this.options.overloadTranslationOptionHandler = n.overloadTranslationOptionHandler), this.options.showSupportNotice !== !1 && !ia(this) && !na() && (typeof console < "u" && console.info !== void 0 && console.info("🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"), ra());
3620
+ }, e.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e.keySeparator), e.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e.nsSeparator), typeof this.options.overloadTranslationOptionHandler != "function" && (this.options.overloadTranslationOptionHandler = n.overloadTranslationOptionHandler), this.options.showSupportNotice !== !1 && !Ka(this) && !Wa() && (typeof console < "u" && console.info !== void 0 && console.info("🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"), Ga());
3461
3621
  let r = (e) => e ? typeof e == "function" ? new e() : e : null;
3462
3622
  if (!this.options.isClone) {
3463
3623
  this.modules.logger ? Q.init(r(this.modules.logger), this.options) : Q.init(null, this.options);
3464
3624
  let e;
3465
- e = this.modules.formatter ? this.modules.formatter : Ji;
3466
- let t = new Ri(this.options);
3467
- this.store = new Ai(this.options.resources, this.options);
3625
+ e = this.modules.formatter ? this.modules.formatter : Ia;
3626
+ let t = new Ea(this.options);
3627
+ this.store = new va(this.options.resources, this.options);
3468
3628
  let i = this.services;
3469
- i.logger = Q, i.resourceStore = this.store, i.languageUtils = t, i.pluralResolver = new Vi(t, {
3629
+ i.logger = Q, i.resourceStore = this.store, i.languageUtils = t, i.pluralResolver = new ka(t, {
3470
3630
  prepend: this.options.pluralSeparator,
3471
3631
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
3472
- }), this.options.interpolation.format && this.options.interpolation.format !== n.interpolation.format && this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), e && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (i.formatter = r(e), i.formatter.init && i.formatter.init(i, this.options), this.options.interpolation.format = i.formatter.format.bind(i.formatter)), i.interpolator = new Wi(this.options), i.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, i.backendConnector = new Xi(r(this.modules.backend), i.resourceStore, i, this.options), i.backendConnector.on("*", (e, ...t) => {
3632
+ }), this.options.interpolation.format && this.options.interpolation.format !== n.interpolation.format && this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), e && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (i.formatter = r(e), i.formatter.init && i.formatter.init(i, this.options), this.options.interpolation.format = i.formatter.format.bind(i.formatter)), i.interpolator = new Ma(this.options), i.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, i.backendConnector = new Ra(r(this.modules.backend), i.resourceStore, i, this.options), i.backendConnector.on("*", (e, ...t) => {
3473
3633
  this.emit(e, ...t);
3474
- }), this.modules.languageDetector && (i.languageDetector = r(this.modules.languageDetector), i.languageDetector.init && i.languageDetector.init(i, this.options.detection, this.options)), this.modules.i18nFormat && (i.i18nFormat = r(this.modules.i18nFormat), i.i18nFormat.init && i.i18nFormat.init(this)), this.translator = new Li(this.services, this.options), this.translator.on("*", (e, ...t) => {
3634
+ }), this.modules.languageDetector && (i.languageDetector = r(this.modules.languageDetector), i.languageDetector.init && i.languageDetector.init(i, this.options.detection, this.options)), this.modules.i18nFormat && (i.i18nFormat = r(this.modules.i18nFormat), i.i18nFormat.init && i.i18nFormat.init(this)), this.translator = new Ta(this.services, this.options), this.translator.on("*", (e, ...t) => {
3475
3635
  this.emit(e, ...t);
3476
3636
  }), this.modules.external.forEach((e) => {
3477
3637
  e.init && e.init(this);
3478
3638
  });
3479
3639
  }
3480
- if (this.format = this.options.interpolation.format, t ||= $i, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
3640
+ if (this.format = this.options.interpolation.format, t ||= Va, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
3481
3641
  let e = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
3482
3642
  e.length > 0 && e[0] !== "dev" && (this.options.lng = e[0]);
3483
3643
  }
@@ -3496,7 +3656,7 @@ var Fi = {}, Ii = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3496
3656
  ].forEach((e) => {
3497
3657
  this[e] = (...t) => (this.store[e](...t), this);
3498
3658
  });
3499
- let i = si(), a = () => {
3659
+ let i = Yi(), a = () => {
3500
3660
  let e = (e, n) => {
3501
3661
  this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), i.resolve(n), t(e, n);
3502
3662
  };
@@ -3505,7 +3665,7 @@ var Fi = {}, Ii = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3505
3665
  };
3506
3666
  return this.options.resources || !this.options.initAsync ? a() : setTimeout(a, 0), i;
3507
3667
  }
3508
- loadResources(e, t = $i) {
3668
+ loadResources(e, t = Va) {
3509
3669
  let n = t, r = Z(e) ? e : this.language;
3510
3670
  if (typeof e == "function" && (n = e), !this.options.resources || this.options.partialBundledLanguages) {
3511
3671
  if (r?.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return n();
@@ -3520,15 +3680,15 @@ var Fi = {}, Ii = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3520
3680
  } else n(null);
3521
3681
  }
3522
3682
  reloadResources(e, t, n) {
3523
- let r = si();
3524
- return typeof e == "function" && (n = e, e = void 0), typeof t == "function" && (n = t, t = void 0), e ||= this.languages, t ||= this.options.ns, n ||= $i, this.services.backendConnector.reload(e, t, (e) => {
3683
+ let r = Yi();
3684
+ return typeof e == "function" && (n = e, e = void 0), typeof t == "function" && (n = t, t = void 0), e ||= this.languages, t ||= this.options.ns, n ||= Va, this.services.backendConnector.reload(e, t, (e) => {
3525
3685
  r.resolve(), n(e);
3526
3686
  }), r;
3527
3687
  }
3528
3688
  use(e) {
3529
3689
  if (!e) throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
3530
3690
  if (!e.type) throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
3531
- return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && ji.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
3691
+ return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && ya.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
3532
3692
  }
3533
3693
  setResolvedLanguage(e) {
3534
3694
  if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1)) {
@@ -3544,7 +3704,7 @@ var Fi = {}, Ii = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3544
3704
  }
3545
3705
  changeLanguage(e, t) {
3546
3706
  this.isLanguageChangingTo = e;
3547
- let n = si();
3707
+ let n = Yi();
3548
3708
  this.emit("languageChanging", e);
3549
3709
  let r = (e) => {
3550
3710
  this.language = e, this.languages = this.services.languageUtils.toResolveHierarchy(e), this.resolvedLanguage = void 0, this.setResolvedLanguage(e);
@@ -3567,9 +3727,9 @@ var Fi = {}, Ii = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3567
3727
  ...this.options,
3568
3728
  ...a
3569
3729
  };
3570
- typeof a.keyPrefix == "function" && (a.keyPrefix = Pi(a.keyPrefix, o));
3730
+ typeof a.keyPrefix == "function" && (a.keyPrefix = Sa(a.keyPrefix, o));
3571
3731
  let s = this.options.keySeparator || ".", c;
3572
- return a.keyPrefix && Array.isArray(e) ? c = e.map((e) => (typeof e == "function" && (e = Pi(e, o)), `${a.keyPrefix}${s}${e}`)) : (typeof e == "function" && (e = Pi(e, o)), c = a.keyPrefix ? `${a.keyPrefix}${s}${e}` : e), this.t(c, a);
3732
+ return a.keyPrefix && Array.isArray(e) ? c = e.map((e) => (typeof e == "function" && (e = Sa(e, o)), `${a.keyPrefix}${s}${e}`)) : (typeof e == "function" && (e = Sa(e, o)), c = a.keyPrefix ? `${a.keyPrefix}${s}${e}` : e), this.t(c, a);
3573
3733
  };
3574
3734
  return Z(e) ? r.lng = e : r.lngs = e, r.ns = t, r.keyPrefix = n, r;
3575
3735
  }
@@ -3598,7 +3758,7 @@ var Fi = {}, Ii = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3598
3758
  return !!(this.hasResourceBundle(n, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a(n, e) && (!r || a(i, e)));
3599
3759
  }
3600
3760
  loadNamespaces(e, t) {
3601
- let n = si();
3761
+ let n = Yi();
3602
3762
  return this.options.ns ? (Z(e) && (e = [e]), e.forEach((e) => {
3603
3763
  this.options.ns.indexOf(e) < 0 && this.options.ns.push(e);
3604
3764
  }), this.loadResources((e) => {
@@ -3606,7 +3766,7 @@ var Fi = {}, Ii = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3606
3766
  }), n) : (t && t(), Promise.resolve());
3607
3767
  }
3608
3768
  loadLanguages(e, t) {
3609
- let n = si();
3769
+ let n = Yi();
3610
3770
  Z(e) && (e = [e]);
3611
3771
  let r = this.options.preload || [], i = e.filter((e) => r.indexOf(e) < 0 && this.services.languageUtils.isSupportedCode(e));
3612
3772
  return i.length ? (this.options.preload = r.concat(i), this.loadResources((e) => {
@@ -3622,14 +3782,14 @@ var Fi = {}, Ii = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3622
3782
  if (e && e.direction) return e.direction;
3623
3783
  }
3624
3784
  } catch {}
3625
- let t = /* @__PURE__ */ "ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb".split("."), n = this.services?.languageUtils || new Ri(Zi());
3785
+ let t = /* @__PURE__ */ "ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb".split("."), n = this.services?.languageUtils || new Ea(za());
3626
3786
  return e.toLowerCase().indexOf("-latn") > 1 ? "ltr" : t.indexOf(n.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
3627
3787
  }
3628
3788
  static createInstance(t = {}, n) {
3629
3789
  let r = new e(t, n);
3630
3790
  return r.createInstance = e.createInstance, r;
3631
3791
  }
3632
- cloneInstance(t = {}, n = $i) {
3792
+ cloneInstance(t = {}, n = Va) {
3633
3793
  let r = t.forkResourceStore;
3634
3794
  r && delete t.forkResourceStore;
3635
3795
  let i = {
@@ -3643,18 +3803,18 @@ var Fi = {}, Ii = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3643
3803
  "language"
3644
3804
  ].forEach((e) => {
3645
3805
  a[e] = this[e];
3646
- }), a.services = { ...this.services }, a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, r && (a.store = new Ai(Object.keys(this.store.data).reduce((e, t) => (e[t] = { ...this.store.data[t] }, e[t] = Object.keys(e[t]).reduce((n, r) => (n[r] = { ...e[t][r] }, n), e[t]), e), {}), i), a.services.resourceStore = a.store), t.interpolation) {
3806
+ }), a.services = { ...this.services }, a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, r && (a.store = new va(Object.keys(this.store.data).reduce((e, t) => (e[t] = { ...this.store.data[t] }, e[t] = Object.keys(e[t]).reduce((n, r) => (n[r] = { ...e[t][r] }, n), e[t]), e), {}), i), a.services.resourceStore = a.store), t.interpolation) {
3647
3807
  let e = {
3648
- ...Zi().interpolation,
3808
+ ...za().interpolation,
3649
3809
  ...this.options.interpolation,
3650
3810
  ...t.interpolation
3651
3811
  }, n = {
3652
3812
  ...i,
3653
3813
  interpolation: e
3654
3814
  };
3655
- a.services.interpolator = new Wi(n);
3815
+ a.services.interpolator = new Ma(n);
3656
3816
  }
3657
- return a.translator = new Li(a.services, i), a.translator.on("*", (e, ...t) => {
3817
+ return a.translator = new Ta(a.services, i), a.translator.on("*", (e, ...t) => {
3658
3818
  a.emit(e, ...t);
3659
3819
  }), a.init(i, n), a.translator.options = i, a.translator.backendConnector.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a;
3660
3820
  }
@@ -3675,13 +3835,13 @@ $.createInstance, $.dir, $.init, $.loadResources, $.reloadResources, $.use, $.ch
3675
3835
  lng: "en",
3676
3836
  showSupportNotice: !1,
3677
3837
  resources: {
3678
- en: ai,
3679
- es: oi
3838
+ en: qi,
3839
+ es: Ji
3680
3840
  }
3681
3841
  });
3682
3842
  //#endregion
3683
3843
  //#region src/i18n.ts
3684
- var { translator: aa } = {
3844
+ var { translator: qa } = {
3685
3845
  translator: {
3686
3846
  ...$,
3687
3847
  t: (e, t) => {
@@ -3713,23 +3873,23 @@ var { translator: aa } = {
3713
3873
  label: "Spanish"
3714
3874
  }]
3715
3875
  };
3716
- function oa(e, t) {
3717
- return aa.t(`translation:simpleCloze:${e}`, { lng: t });
3876
+ function Ja(e, t) {
3877
+ return qa.t(`translation:simpleCloze:${e}`, { lng: t });
3718
3878
  }
3719
3879
  //#endregion
3720
3880
  //#region src/print/Print.svelte
3721
- var sa = /* @__PURE__ */ cr("<div class=\"simple-cloze-print-teacher-instructions svelte-1fx5wwa\"></div>"), ca = /* @__PURE__ */ cr("<div class=\"simple-cloze-print-prompt svelte-1fx5wwa\"></div>"), la = /* @__PURE__ */ cr("<span class=\"simple-cloze-print-key-label svelte-1fx5wwa\"> </span> <span class=\"simple-cloze-print-blank simple-cloze-print-blank--key svelte-1fx5wwa\"> </span>", 1), ua = /* @__PURE__ */ cr("<span class=\"simple-cloze-print-blank svelte-1fx5wwa\" role=\"img\"></span>"), da = /* @__PURE__ */ cr("<div class=\"simple-cloze-print svelte-1fx5wwa\"><!> <!> <div class=\"simple-cloze-print-response svelte-1fx5wwa\"><!></div></div>"), fa = {
3881
+ var Ya = /* @__PURE__ */ or("<div class=\"simple-cloze-print-teacher-instructions svelte-1fx5wwa\"></div>"), Xa = /* @__PURE__ */ or("<div class=\"simple-cloze-print-prompt svelte-1fx5wwa\"></div>"), Za = /* @__PURE__ */ or("<span class=\"simple-cloze-print-key-label svelte-1fx5wwa\"> </span> <span class=\"simple-cloze-print-blank simple-cloze-print-blank--key svelte-1fx5wwa\"> </span>", 1), Qa = /* @__PURE__ */ or("<span class=\"simple-cloze-print-blank svelte-1fx5wwa\" role=\"img\"></span>"), $a = /* @__PURE__ */ or("<div class=\"simple-cloze-print svelte-1fx5wwa\"><!> <!> <div class=\"simple-cloze-print-response svelte-1fx5wwa\"><!></div></div>"), eo = {
3722
3882
  hash: "svelte-1fx5wwa",
3723
3883
  code: "\n /* Self-contained: print players ship no Tailwind or CSS reset. */.simple-cloze-print.svelte-1fx5wwa {padding:1rem;color:var(--pie-text, black);}.simple-cloze-print-teacher-instructions.svelte-1fx5wwa,\n .simple-cloze-print-prompt.svelte-1fx5wwa {margin-bottom:1rem;}.simple-cloze-print-teacher-instructions.svelte-1fx5wwa p,\n .simple-cloze-print-prompt.svelte-1fx5wwa p {margin:0.5em 0;}.simple-cloze-print-prompt.svelte-1fx5wwa strong {font-weight:600;}.simple-cloze-print-response.svelte-1fx5wwa {display:inline-flex;align-items:baseline;gap:0.5rem;}.simple-cloze-print-key-label.svelte-1fx5wwa {font-size:0.875rem;line-height:1.25rem;font-weight:600;}.simple-cloze-print-blank.svelte-1fx5wwa {display:inline-block;min-width:12rem;min-height:1.5rem;padding:0.5rem 0.75rem;border-bottom:2px solid var(--pie-text, black);}.simple-cloze-print-blank--key.svelte-1fx5wwa {min-width:6rem;font-weight:600;}\n\n @media print {.simple-cloze-print.svelte-1fx5wwa {padding:0;}\n }"
3724
3884
  };
3725
- function pa(e, t) {
3726
- Ge(t, !0), Er(e, fa);
3727
- let n = Ir(t, "model", 7, null), r = Ir(t, "options", 7, null), i = /* @__PURE__ */ pt(() => r()?.role === "instructor"), a = /* @__PURE__ */ pt(() => n()?.promptEnabled !== !1 && typeof n()?.prompt == "string" ? n().prompt : ""), o = /* @__PURE__ */ pt(() => ii(n()?.correctAnswer)), s = /* @__PURE__ */ pt(() => X(i) && !!X(o)), c = /* @__PURE__ */ pt(() => X(i) && n()?.teacherInstructionsEnabled !== !1 && n()?.teacherInstructions || ""), l = /* @__PURE__ */ M(null);
3728
- pn(() => {
3885
+ function to(e, t) {
3886
+ We(t, !0), wr(e, eo);
3887
+ let n = Ir(t, "model", 7, null), r = Ir(t, "options", 7, null), i = /* @__PURE__ */ lt(() => r()?.role === "instructor"), a = /* @__PURE__ */ lt(() => n()?.promptEnabled !== !1 && typeof n()?.prompt == "string" ? n().prompt : ""), o = /* @__PURE__ */ lt(() => Ki(n()?.correctAnswer)), s = /* @__PURE__ */ lt(() => X(i) && !!X(o)), c = /* @__PURE__ */ lt(() => X(i) && n()?.teacherInstructionsEnabled !== !1 && n()?.teacherInstructions || ""), l = /* @__PURE__ */ M(null);
3888
+ dn(() => {
3729
3889
  if (!X(l) || !X(a)) return;
3730
3890
  let e = (e) => console.warn("simple-cloze: MathJax render failed", e);
3731
3891
  try {
3732
- Promise.resolve(Xr(X(l))).catch(e);
3892
+ Promise.resolve(Ri(X(l))).catch(e);
3733
3893
  } catch (t) {
3734
3894
  e(t);
3735
3895
  }
@@ -3739,64 +3899,49 @@ function pa(e, t) {
3739
3899
  return n();
3740
3900
  },
3741
3901
  set model(e = null) {
3742
- n(e), At();
3902
+ n(e), Et();
3743
3903
  },
3744
3904
  get options() {
3745
3905
  return r();
3746
3906
  },
3747
3907
  set options(e = null) {
3748
- r(e), At();
3908
+ r(e), Et();
3749
3909
  }
3750
- }, d = da(), f = $t(d), p = (e) => {
3751
- var t = sa();
3752
- Tr(t, () => X(c), !0), Ee(t), lr(e, t);
3910
+ }, d = $a(), f = Zt(d), p = (e) => {
3911
+ var t = Ya();
3912
+ Cr(t, () => X(c), !0), Te(t), sr(e, t);
3753
3913
  };
3754
- wr(f, (e) => {
3914
+ Sr(f, (e) => {
3755
3915
  X(c) && e(p);
3756
3916
  });
3757
- var m = nn(f, 2), h = (e) => {
3758
- var t = ca();
3759
- Tr(t, () => X(a), !0), Ee(t), Fr(t, (e) => N(l, e), () => X(l)), lr(e, t);
3917
+ var m = en(f, 2), h = (e) => {
3918
+ var t = Xa();
3919
+ Cr(t, () => X(a), !0), Te(t), Nr(t, (e) => N(l, e), () => X(l)), sr(e, t);
3760
3920
  };
3761
- wr(m, (e) => {
3921
+ Sr(m, (e) => {
3762
3922
  X(a) && e(h);
3763
3923
  });
3764
- var g = nn(m, 2), ee = $t(g), _ = (e) => {
3765
- var t = la(), r = en(t), i = tn(r, !0), a = tn(nn(r, 2), !0);
3766
- bn((e) => {
3767
- gr(i, e), gr(a, X(o));
3768
- }, [() => oa("printCorrectAnswer", n()?.language)]), lr(e, t);
3924
+ var g = en(m, 2), ee = Zt(g), _ = (e) => {
3925
+ var t = Za(), r = Qt(t), i = $t(r, !0), a = $t(en(r, 2), !0);
3926
+ vn((e) => {
3927
+ mr(i, e), mr(a, X(o));
3928
+ }, [() => Ja("printCorrectAnswer", n()?.language)]), sr(e, t);
3769
3929
  }, v = (e) => {
3770
- var t = ua();
3771
- bn((e) => Ar(t, "aria-label", e), [() => oa("printAnswerBlank", n()?.language)]), lr(e, t);
3930
+ var t = Qa();
3931
+ vn((e) => Or(t, "aria-label", e), [() => Ja("printAnswerBlank", n()?.language)]), sr(e, t);
3772
3932
  };
3773
- return wr(ee, (e) => {
3933
+ return Sr(ee, (e) => {
3774
3934
  X(s) ? e(_) : e(v, -1);
3775
- }), Ee(g), Ee(d), lr(e, d), Ke(u);
3935
+ }), Te(g), Te(d), sr(e, d), Ge(u);
3776
3936
  }
3777
- Hr(pa, {
3937
+ Hr(to, {
3778
3938
  model: { type: "Object" },
3779
3939
  options: { type: "Object" }
3780
3940
  }, [], []);
3781
3941
  //#endregion
3782
3942
  //#region src/print/index.ts
3783
- var ma = pa.element, ha = class extends ma {
3784
- _model = null;
3785
- _options = null;
3786
- set model(e) {
3787
- this._model = e, super.model = e;
3788
- }
3789
- get model() {
3790
- return this._model;
3791
- }
3792
- set options(e) {
3793
- this._options = e, super.options = e;
3794
- }
3795
- get options() {
3796
- return this._options;
3797
- }
3798
- };
3943
+ var no = to.element;
3799
3944
  //#endregion
3800
- export { ha as default };
3945
+ export { no as default };
3801
3946
 
3802
3947
  //# sourceMappingURL=print.js.map