@pie-element/simple-cloze 0.1.4-next.5 → 0.1.4-next.7

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 (39) hide show
  1. package/author.js +2 -0
  2. package/dist/author/index.d.ts +6 -0
  3. package/dist/author/index.js +12147 -21505
  4. package/dist/author/index.js.map +1 -1
  5. package/dist/browser/author/index.js +9202 -16240
  6. package/dist/browser/author/index.js.map +1 -1
  7. package/dist/browser/{client-Dt8SOe5Z.js → client-BSTc3boO.js} +650 -755
  8. package/dist/browser/client-BSTc3boO.js.map +1 -0
  9. package/dist/browser/controller/index.js +42 -32
  10. package/dist/browser/controller/index.js.map +1 -1
  11. package/dist/browser/delivery/index.js +129 -136
  12. package/dist/browser/delivery/index.js.map +1 -1
  13. package/dist/browser/dist-CYpSKy-4.js +80 -0
  14. package/dist/browser/dist-CYpSKy-4.js.map +1 -0
  15. package/dist/browser/i18n-DJMxdTMU.js +1612 -0
  16. package/dist/browser/i18n-DJMxdTMU.js.map +1 -0
  17. package/dist/browser/plain-text-iaQZhkGe.js +53 -0
  18. package/dist/browser/plain-text-iaQZhkGe.js.map +1 -0
  19. package/dist/browser/print/index.js +64 -21
  20. package/dist/browser/print/index.js.map +1 -1
  21. package/dist/controller/defaults.d.ts +1 -0
  22. package/dist/controller/index.d.ts +51 -8
  23. package/dist/controller/index.js +121 -29
  24. package/dist/controller/index.js.map +1 -1
  25. package/dist/controller/plain-text.d.ts +11 -0
  26. package/dist/delivery/index.d.ts +9 -4
  27. package/dist/delivery/index.js +2826 -267
  28. package/dist/delivery/index.js.map +1 -1
  29. package/dist/i18n.d.ts +7 -0
  30. package/dist/index.iife.js +9 -3
  31. package/dist/index.js +2826 -267
  32. package/dist/index.js.map +1 -1
  33. package/dist/print/index.d.ts +7 -0
  34. package/dist/print/index.js +2775 -28
  35. package/dist/print/index.js.map +1 -1
  36. package/module/print.js +2383 -600
  37. package/module/print.js.map +1 -1
  38. package/package.json +2 -1
  39. package/dist/browser/client-Dt8SOe5Z.js.map +0 -1
package/module/print.js CHANGED
@@ -2,11 +2,11 @@
2
2
  typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5");
3
3
  //#endregion
4
4
  //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/constants.js
5
- var e = {}, t = Symbol("uninitialized"), n = "http://www.w3.org/2000/svg", r = "http://www.w3.org/1998/Math/MathML", i = Array.isArray, a = Array.prototype.indexOf, o = Array.prototype.includes, s = Array.from, c = Object.keys, l = Object.defineProperty, u = Object.getOwnPropertyDescriptor, d = Object.prototype, f = Array.prototype, p = Object.getPrototypeOf, m = Object.isExtensible, h = () => {};
6
- function g(e) {
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
+ function _(e) {
7
7
  for (var t = 0; t < e.length; t++) e[t]();
8
8
  }
9
- function ee() {
9
+ function v() {
10
10
  var e, t;
11
11
  return {
12
12
  promise: new Promise((n, r) => {
@@ -16,48 +16,47 @@ function ee() {
16
16
  reject: t
17
17
  };
18
18
  }
19
- var _ = 1024, v = 2048, y = 4096, te = 8192, ne = 16384, re = 32768, ie = 1 << 25, ae = 65536, oe = 1 << 19, se = 1 << 20, ce = 65536, le = 1 << 21, ue = 1 << 22, de = 1 << 23, fe = Symbol("$state"), pe = Symbol("component"), me = Symbol("legacy props"), 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 = 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 {
20
20
  name = "StaleReactionError";
21
21
  message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
22
- }();
23
- globalThis.document?.contentType;
24
- function be() {
22
+ }(), be = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
23
+ function xe() {
25
24
  console.warn("https://svelte.dev/e/derived_inert");
26
25
  }
27
- function xe(e) {
26
+ function Se(e) {
28
27
  console.warn("https://svelte.dev/e/hydration_mismatch");
29
28
  }
30
- function Se() {
29
+ function Ce() {
31
30
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
32
31
  }
33
32
  //#endregion
34
33
  //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/hydration.js
35
- var b = !1;
36
- function Ce(e) {
37
- b = e;
34
+ var C = !1;
35
+ function we(e) {
36
+ C = e;
38
37
  }
39
- var x;
40
- function S(t) {
41
- if (t === null) throw xe(), e;
42
- return x = t;
38
+ var w;
39
+ function T(t) {
40
+ if (t === null) throw Se(), e;
41
+ return w = t;
43
42
  }
44
- function we() {
45
- return S(/* @__PURE__ */ F(x));
43
+ function Te() {
44
+ return T(/* @__PURE__ */ F(w));
46
45
  }
47
- function Te(t) {
48
- if (b) {
49
- if (/* @__PURE__ */ F(x) !== null) throw xe(), e;
50
- x = t;
46
+ function Ee(t) {
47
+ if (C) {
48
+ if (/* @__PURE__ */ F(w) !== null) throw Se(), e;
49
+ w = t;
51
50
  }
52
51
  }
53
- function Ee(e = 1) {
54
- if (b) {
55
- for (var t = e, n = x; t--;) n = /* @__PURE__ */ F(n);
56
- x = n;
52
+ function De(e = 1) {
53
+ if (C) {
54
+ for (var t = e, n = w; t--;) n = /* @__PURE__ */ F(n);
55
+ w = n;
57
56
  }
58
57
  }
59
- function De(e = !0) {
60
- for (var t = 0, n = x;;) {
58
+ function Oe(e = !0) {
59
+ for (var t = 0, n = w;;) {
61
60
  if (n.nodeType === 8) {
62
61
  var r = n.data;
63
62
  if (r === "]") {
@@ -69,65 +68,65 @@ function De(e = !0) {
69
68
  e && n.remove(), n = i;
70
69
  }
71
70
  }
72
- function Oe(t) {
73
- if (!t || t.nodeType !== 8) throw xe(), e;
71
+ function ke(t) {
72
+ if (!t || t.nodeType !== 8) throw Se(), e;
74
73
  return t.data;
75
74
  }
76
75
  //#endregion
77
76
  //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/equality.js
78
- function ke(e) {
77
+ function Ae(e) {
79
78
  return e === this.v;
80
79
  }
81
- function Ae(e, t) {
80
+ function je(e, t) {
82
81
  return e == e ? e !== t || typeof e == "object" && !!e || typeof e == "function" : t == t;
83
82
  }
84
- function je(e) {
85
- return !Ae(e, this.v);
83
+ function Me(e) {
84
+ return !je(e, this.v);
86
85
  }
87
86
  //#endregion
88
87
  //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/errors.js
89
- function Me() {
88
+ function Ne() {
90
89
  throw Error("https://svelte.dev/e/async_derived_orphan");
91
90
  }
92
- function Ne(e) {
91
+ function Pe(e) {
93
92
  throw Error("https://svelte.dev/e/effect_in_teardown");
94
93
  }
95
- function Pe() {
94
+ function Fe() {
96
95
  throw Error("https://svelte.dev/e/effect_in_unowned_derived");
97
96
  }
98
- function Fe(e) {
97
+ function Ie(e) {
99
98
  throw Error("https://svelte.dev/e/effect_orphan");
100
99
  }
101
- function Ie() {
100
+ function Le() {
102
101
  throw Error("https://svelte.dev/e/effect_update_depth_exceeded");
103
102
  }
104
- function Le() {
103
+ function Re() {
105
104
  throw Error("https://svelte.dev/e/hydration_failed");
106
105
  }
107
- function Re(e) {
106
+ function ze(e) {
108
107
  throw Error("https://svelte.dev/e/props_invalid_value");
109
108
  }
110
- function ze() {
109
+ function Be() {
111
110
  throw Error("https://svelte.dev/e/state_descriptors_fixed");
112
111
  }
113
- function Be() {
112
+ function Ve() {
114
113
  throw Error("https://svelte.dev/e/state_prototype_fixed");
115
114
  }
116
- function Ve() {
115
+ function He() {
117
116
  throw Error("https://svelte.dev/e/state_unsafe_mutation");
118
117
  }
119
- function He() {
118
+ function Ue() {
120
119
  throw Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
121
120
  }
122
121
  //#endregion
123
122
  //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/context.js
124
- var C = null;
125
- function Ue(e) {
126
- C = e;
123
+ var E = null;
124
+ function We(e) {
125
+ E = e;
127
126
  }
128
- function We(e, t = !1, n) {
129
- C = {
130
- p: C,
127
+ function Ge(e, t = !1, n) {
128
+ E = {
129
+ p: E,
131
130
  i: !1,
132
131
  c: null,
133
132
  e: null,
@@ -137,70 +136,70 @@ function We(e, t = !1, n) {
137
136
  l: null
138
137
  };
139
138
  }
140
- function Ge(e) {
141
- var t = C, n = t.e;
139
+ function Ke(e) {
140
+ var t = E, n = t.e;
142
141
  if (n !== null) {
143
142
  t.e = null;
144
- for (var r of n) on(r);
143
+ for (var r of n) mn(r);
145
144
  }
146
- return e !== void 0 && (t.x = e), t.i = !0, C = t.p, Ke(e);
145
+ return e !== void 0 && (t.x = e), t.i = !0, E = t.p, qe(e);
147
146
  }
148
- function Ke(e = {}) {
149
- return l(e, pe, { value: !0 }), e;
147
+ function qe(e = {}) {
148
+ return u(e, fe, { value: !0 }), e;
150
149
  }
151
- function qe() {
150
+ function Je() {
152
151
  return !0;
153
152
  }
154
153
  //#endregion
155
154
  //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/task.js
156
- var w = [];
157
- function Je() {
158
- var e = w;
159
- w = [], g(e);
155
+ var Ye = [];
156
+ function Xe() {
157
+ var e = Ye;
158
+ Ye = [], _(e);
160
159
  }
161
- function T(e) {
162
- if (w.length === 0 && !yt) {
163
- var t = w;
160
+ function Ze(e) {
161
+ if (Ye.length === 0 && !Ct) {
162
+ var t = Ye;
164
163
  queueMicrotask(() => {
165
- t === w && Je();
164
+ t === Ye && Xe();
166
165
  });
167
166
  }
168
- w.push(e);
167
+ Ye.push(e);
169
168
  }
170
- function Ye() {
171
- for (; w.length > 0;) Je();
169
+ function Qe() {
170
+ for (; Ye.length > 0;) Xe();
172
171
  }
173
172
  //#endregion
174
173
  //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/status.js
175
- var Xe = ~(v | y | _);
176
- function E(e, t) {
177
- e.f = e.f & Xe | t;
174
+ var $e = ~(b | te | y);
175
+ function D(e, t) {
176
+ e.f = e.f & $e | t;
178
177
  }
179
- function Ze(e) {
180
- e.f & 512 || e.deps === null ? E(e, _) : E(e, y);
178
+ function et(e) {
179
+ e.f & 512 || e.deps === null ? D(e, y) : D(e, te);
181
180
  }
182
181
  //#endregion
183
182
  //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/utils.js
184
- function Qe(e) {
185
- if (e !== null) for (let t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^= ce, Qe(t.deps));
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));
186
185
  }
187
- function $e(e, t, n) {
188
- e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), Qe(e.deps), E(e, _);
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);
189
188
  }
190
189
  //#endregion
191
190
  //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/store.js
192
- var et = !1;
193
- function tt(e) {
194
- var t = et;
191
+ var rt = !1;
192
+ function it(e) {
193
+ var t = rt;
195
194
  try {
196
- return et = !1, [e(), et];
195
+ return rt = !1, [e(), rt];
197
196
  } finally {
198
- et = t;
197
+ rt = t;
199
198
  }
200
199
  }
201
200
  //#endregion
202
201
  //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
203
- function nt(e) {
202
+ function at(e) {
204
203
  var t = V, n = W;
205
204
  U(null), G(null);
206
205
  try {
@@ -211,14 +210,14 @@ function nt(e) {
211
210
  }
212
211
  //#endregion
213
212
  //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/async.js
214
- function rt(e, t, n, r) {
215
- let i = qe() ? st : ut;
213
+ function ot(e, t, n, r) {
214
+ let i = Je() ? ut : mt;
216
215
  var a = e.filter((e) => !e.settled), o = t.map(i);
217
216
  if (n.length === 0 && a.length === 0) {
218
217
  r(o);
219
218
  return;
220
219
  }
221
- var s = W, c = it(), l = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
220
+ var s = W, c = st(), l = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
222
221
  function u(e) {
223
222
  if (!(s.f & 16384)) {
224
223
  c();
@@ -227,44 +226,44 @@ function rt(e, t, n, r) {
227
226
  } catch (e) {
228
227
  I(e, s);
229
228
  }
230
- at();
229
+ ct();
231
230
  }
232
231
  }
233
- var d = ot();
232
+ var d = lt();
234
233
  if (n.length === 0) {
235
234
  l.then(() => u([])).finally(d);
236
235
  return;
237
236
  }
238
237
  function f() {
239
- Promise.all(n.map((e) => /* @__PURE__ */ lt(e))).then(u).catch((e) => I(e, s)).finally(d);
238
+ Promise.all(n.map((e) => /* @__PURE__ */ ft(e))).then(u).catch((e) => I(e, s)).finally(d);
240
239
  }
241
240
  l ? l.then(() => {
242
- c(), f(), at();
241
+ c(), f(), ct();
243
242
  }) : f();
244
243
  }
245
- function it() {
246
- var e = W, t = V, n = C, r = D;
244
+ function st() {
245
+ var e = W, t = V, n = E, r = O;
247
246
  return function(i = !0) {
248
- G(e), U(t), Ue(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
247
+ G(e), U(t), We(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
249
248
  };
250
249
  }
251
- function at(e = !0) {
252
- G(null), U(null), Ue(null), e && D?.deactivate();
250
+ function ct(e = !0) {
251
+ G(null), U(null), We(null), e && O?.deactivate();
253
252
  }
254
- function ot() {
255
- var e = W, t = e.b, n = D, r = !!t?.is_rendered();
253
+ function lt() {
254
+ var e = W, t = e.b, n = O, r = !!t?.is_rendered();
256
255
  return t?.update_pending_count(1, n), n.increment(r, e), () => {
257
256
  t?.update_pending_count(-1, n), n.decrement(r, e);
258
257
  };
259
258
  }
260
259
  /*#__NO_SIDE_EFFECTS__*/
261
- function st(e) {
262
- var n = 2 | v;
263
- return W !== null && (W.f |= oe), {
264
- ctx: C,
260
+ function ut(e) {
261
+ var n = 2 | b;
262
+ return W !== null && (W.f |= ae), {
263
+ ctx: E,
265
264
  deps: null,
266
265
  effects: null,
267
- equals: ke,
266
+ equals: Ae,
268
267
  f: n,
269
268
  fn: e,
270
269
  reactions: null,
@@ -275,35 +274,35 @@ function st(e) {
275
274
  ac: null
276
275
  };
277
276
  }
278
- var ct = Symbol("obsolete");
277
+ var dt = Symbol("obsolete");
279
278
  /*#__NO_SIDE_EFFECTS__*/
280
- function lt(e, n, r) {
279
+ function ft(e, n, r) {
281
280
  let i = W;
282
- i === null && Me();
283
- var a = void 0, o = Ft(t), s = !V, c = /* @__PURE__ */ new Set();
284
- return un(() => {
285
- var t = W, n = ee();
281
+ i === null && Ne();
282
+ var a = void 0, o = Bt(t), s = !V, c = /* @__PURE__ */ new Set();
283
+ return vn(() => {
284
+ var t = W, n = v();
286
285
  a = n.promise;
287
286
  try {
288
287
  Promise.resolve(e()).then(n.resolve, (e) => {
289
288
  e !== ye && n.reject(e);
290
- }).finally(at);
289
+ }).finally(ct);
291
290
  } catch (e) {
292
- n.reject(e), at();
291
+ n.reject(e), ct();
293
292
  }
294
- var r = D;
293
+ var r = O;
295
294
  if (s) {
296
- if (t.f & 32768) var l = ot();
297
- if (i.b?.is_rendered()) r.async_deriveds.get(t)?.reject(ct);
298
- else for (let e of c.values()) e.reject(ct);
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);
299
298
  c.add(n), r.async_deriveds.set(t, n);
300
299
  }
301
300
  let u = (e, t = void 0) => {
302
- l?.(), c.delete(n), t !== ct && (r.activate(), t ? (o.f |= de, Lt(o, t)) : (o.f & 8388608 && (o.f ^= de), Lt(o, e)), r.deactivate());
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());
303
302
  };
304
303
  n.promise.then(u, (e) => u(null, e || "unknown"));
305
- }), rn(() => {
306
- for (let e of c) e.reject(ct);
304
+ }), fn(() => {
305
+ for (let e of c) e.reject(dt);
307
306
  }), new Promise((e) => {
308
307
  function t(n) {
309
308
  function r() {
@@ -315,48 +314,53 @@ function lt(e, n, r) {
315
314
  });
316
315
  }
317
316
  /*#__NO_SIDE_EFFECTS__*/
318
- function ut(e) {
319
- let t = /* @__PURE__ */ st(e);
320
- return t.equals = je, t;
317
+ function pt(e) {
318
+ let t = /* @__PURE__ */ ut(e);
319
+ return Fn(t), t;
321
320
  }
322
- function dt(e) {
321
+ /*#__NO_SIDE_EFFECTS__*/
322
+ function mt(e) {
323
+ let t = /* @__PURE__ */ ut(e);
324
+ return t.equals = Me, t;
325
+ }
326
+ function ht(e) {
323
327
  var t = e.effects;
324
328
  if (t !== null) {
325
329
  e.effects = null;
326
330
  for (var n = 0; n < t.length; n += 1) z(t[n]);
327
331
  }
328
332
  }
329
- function ft(e) {
333
+ function gt(e) {
330
334
  var n, r = W, i = e.parent;
331
- if (!B && i !== null && e.v !== t && i.f & 24576) return be(), e.v;
335
+ if (!B && i !== null && e.v !== t && i.f & 24576) return xe(), e.v;
332
336
  G(i);
333
337
  try {
334
- e.f &= ~ce, dt(e), n = Pn(e);
338
+ e.f &= ~se, ht(e), n = Wn(e);
335
339
  } finally {
336
340
  G(r);
337
341
  }
338
342
  return n;
339
343
  }
340
- function pt(e) {
341
- var t = ft(e);
342
- if (!e.equals(t) && (e.wv = jn(), (!D?.is_fork || e.deps === null) && (D === null ? e.v = t : (D.capture(e, t, !0), _t?.capture(e, t, !0)), e.deps === null))) {
343
- E(e, _);
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))) {
347
+ D(e, y);
344
348
  return;
345
349
  }
346
- B || (O === null ? Ze(e) : (nn() || D?.is_fork) && O.set(e, t));
350
+ B || (k === null ? et(e) : (dn() || O?.is_fork) && k.set(e, t));
347
351
  }
348
- function mt(e) {
349
- if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && nt(() => {
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(() => {
350
354
  t.ac.abort(ye), t.ac = null;
351
- }), t.fn !== null && (t.teardown = h), Ln(t, 0), hn(t));
355
+ }), t.fn !== null && (t.teardown = ee), qn(t, 0), Cn(t));
352
356
  }
353
- function ht(e) {
354
- if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && Rn(t);
357
+ function yt(e) {
358
+ if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && Jn(t);
355
359
  }
356
360
  //#endregion
357
361
  //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/batch.js
358
- var gt = null, D = null, _t = null, O = null, vt = null, yt = !1, bt = !1, k = null, xt = null, St = 0, Ct = 1, wt = class e {
359
- id = Ct++;
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++;
360
364
  #e = !1;
361
365
  linked = !0;
362
366
  #t = null;
@@ -378,7 +382,7 @@ var gt = null, D = null, _t = null, O = null, vt = null, yt = !1, bt = !1, k = n
378
382
  is_fork = !1;
379
383
  #m = !1;
380
384
  constructor() {
381
- gt === null ? gt = this : (gt.#n = this, this.#t = gt), gt = this;
385
+ bt === null ? bt = this : (bt.#n = this, this.#t = bt), bt = this;
382
386
  }
383
387
  #h() {
384
388
  if (this.is_fork) return !0;
@@ -404,31 +408,31 @@ var gt = null, D = null, _t = null, O = null, vt = null, yt = !1, bt = !1, k = n
404
408
  var n = this.#f.get(e);
405
409
  if (n) {
406
410
  this.#f.delete(e);
407
- for (var r of n.d) E(r, v), t(r);
408
- for (r of n.m) E(r, y), t(r);
411
+ for (var r of n.d) D(r, b), t(r);
412
+ for (r of n.m) D(r, te), t(r);
409
413
  }
410
414
  this.#p.add(e);
411
415
  }
412
416
  #g() {
413
- this.#e = !0, St++ > 1e3 && (this.#x(), Et());
414
- for (let e of this.#u) this.#d.delete(e), E(e, v), this.schedule(e);
415
- for (let e of this.#d) E(e, y), this.schedule(e);
417
+ this.#e = !0, Dt++ > 1e3 && (this.#x(), jt());
418
+ for (let e of this.#u) this.#d.delete(e), D(e, b), this.schedule(e);
419
+ for (let e of this.#d) D(e, te), this.schedule(e);
416
420
  let t = this.#c;
417
421
  this.#c = [], this.apply();
418
- var n = k = [], r = [], i = xt = [];
422
+ var n = Tt = [], r = [], i = Et = [];
419
423
  for (let e of t) try {
420
424
  this.#_(e, n, r);
421
425
  } catch (t) {
422
- throw Mt(e), this.#h() || this.discard(), t;
426
+ throw Lt(e), this.#h() || this.discard(), t;
423
427
  }
424
- if (D = null, i.length > 0) {
428
+ if (O = null, i.length > 0) {
425
429
  var a = e.ensure();
426
430
  for (let e of i) a.schedule(e);
427
431
  }
428
- if (k = null, xt = null, this.#h()) {
432
+ if (Tt = null, Et = null, this.#h()) {
429
433
  this.#b(r), this.#b(n);
430
- for (let [e, t] of this.#f) jt(e, t);
431
- i.length > 0 && D.#g();
434
+ for (let [e, t] of this.#f) It(e, t);
435
+ i.length > 0 && O.#g();
432
436
  return;
433
437
  }
434
438
  let o = this.#v();
@@ -438,8 +442,8 @@ var gt = null, D = null, _t = null, O = null, vt = null, yt = !1, bt = !1, k = n
438
442
  }
439
443
  this.#u.clear(), this.#d.clear();
440
444
  for (let e of this.#r) e(this);
441
- this.#r.clear(), _t = this, Dt(r), Dt(n), _t = null, this.#s?.resolve();
442
- var s = D;
445
+ this.#r.clear(), xt = this, Mt(r), Mt(n), xt = null, this.#s?.resolve();
446
+ var s = O;
443
447
  if (this.#a === 0 && (this.#c.length === 0 || s !== null) && this.#x(), this.#c.length > 0) if (s !== null) {
444
448
  let e = s;
445
449
  e.#c.push(...this.#c.filter((t) => !e.#c.includes(t)));
@@ -447,11 +451,11 @@ var gt = null, D = null, _t = null, O = null, vt = null, yt = !1, bt = !1, k = n
447
451
  s !== null && (j.clear(), s.#g());
448
452
  }
449
453
  #_(e, t, n) {
450
- e.f ^= _;
454
+ e.f ^= y;
451
455
  for (var r = e.first; r !== null;) {
452
456
  var i = r.f, a = (i & 96) != 0;
453
457
  if (!(a && i & 1024 || i & 8192 || this.#f.has(r)) && r.fn !== null) {
454
- a ? r.f ^= _ : i & 4 ? t.push(r) : Mn(r) && (i & 16 && this.#d.add(r), Rn(r));
458
+ a ? r.f ^= y : i & 4 ? t.push(r) : Hn(r) && (i & 16 && this.#d.add(r), Jn(r));
455
459
  var o = r.first;
456
460
  if (o !== null) {
457
461
  r = o;
@@ -491,36 +495,36 @@ var gt = null, D = null, _t = null, O = null, vt = null, yt = !1, bt = !1, k = n
491
495
  if (r & 2) t(e);
492
496
  else {
493
497
  var i = e;
494
- r & 4194320 && !this.async_deriveds.has(i) && (this.#d.delete(i), E(i, v), this.schedule(i));
498
+ r & 4194320 && !this.async_deriveds.has(i) && (this.#d.delete(i), D(i, b), this.schedule(i));
495
499
  }
496
500
  }
497
501
  };
498
502
  for (let e of this.current.keys()) t(e);
499
- this.oncommit(() => e.discard()), e.#x(), D = this, this.#g();
503
+ this.oncommit(() => e.discard()), e.#x(), O = this, this.#g();
500
504
  }
501
505
  #b(e) {
502
- for (var t = 0; t < e.length; t += 1) $e(e[t], this.#u, this.#d);
506
+ for (var t = 0; t < e.length; t += 1) nt(e[t], this.#u, this.#d);
503
507
  }
504
508
  capture(e, n, r = !1) {
505
- e.v !== t && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [n, r]), O?.set(e, n)), this.is_fork || (e.v = n);
509
+ 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);
506
510
  }
507
511
  activate() {
508
- D = this;
512
+ O = this;
509
513
  }
510
514
  deactivate() {
511
- D = null, O = null;
515
+ O = null, k = null;
512
516
  }
513
517
  flush() {
514
518
  try {
515
- bt = !0, D = this, this.#g();
519
+ wt = !0, O = this, this.#g();
516
520
  } finally {
517
- St = 0, vt = null, k = null, xt = null, bt = !1, D = null, O = null, j.clear();
521
+ Dt = 0, St = null, Tt = null, Et = null, wt = !1, O = null, k = null, j.clear();
518
522
  }
519
523
  }
520
524
  discard() {
521
525
  for (let e of this.#i) e(this);
522
526
  this.#i.clear();
523
- for (let e of this.async_deriveds.values()) e.reject(ct);
527
+ for (let e of this.async_deriveds.values()) e.reject(dt);
524
528
  this.#x(), this.#s?.resolve();
525
529
  }
526
530
  register_created_effect(e) {
@@ -537,7 +541,7 @@ var gt = null, D = null, _t = null, O = null, vt = null, yt = !1, bt = !1, k = n
537
541
  let e = this.#o.get(t) ?? 0;
538
542
  e === 1 ? this.#o.delete(t) : this.#o.set(t, e - 1);
539
543
  }
540
- this.#m || (this.#m = !0, T(() => {
544
+ this.#m || (this.#m = !0, Ze(() => {
541
545
  this.#m = !1, this.linked && this.flush();
542
546
  }));
543
547
  }
@@ -553,32 +557,32 @@ var gt = null, D = null, _t = null, O = null, vt = null, yt = !1, bt = !1, k = n
553
557
  this.#i.add(e);
554
558
  }
555
559
  settled() {
556
- return (this.#s ??= ee()).promise;
560
+ return (this.#s ??= v()).promise;
557
561
  }
558
562
  static ensure() {
559
- if (D === null) {
560
- let t = D = new e();
561
- !bt && !yt && T(() => {
563
+ if (O === null) {
564
+ let t = O = new e();
565
+ !wt && !Ct && Ze(() => {
562
566
  t.#e || t.flush();
563
567
  });
564
568
  }
565
- return D;
569
+ return O;
566
570
  }
567
571
  apply() {
568
- O = null;
572
+ k = null;
569
573
  }
570
574
  schedule(e) {
571
- if (vt = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
575
+ if (St = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
572
576
  e.b.defer_effect(e);
573
577
  return;
574
578
  }
575
579
  for (var t = e; t.parent !== null;) {
576
580
  t = t.parent;
577
581
  var n = t.f;
578
- if (k !== null && t === W && (V === null || !(V.f & 2))) return;
582
+ if (Tt !== null && t === W && (V === null || !(V.f & 2))) return;
579
583
  if (n & 96) {
580
584
  if (!(n & 1024)) return;
581
- t.f ^= _;
585
+ t.f ^= y;
582
586
  }
583
587
  }
584
588
  this.#c.push(t);
@@ -586,37 +590,37 @@ var gt = null, D = null, _t = null, O = null, vt = null, yt = !1, bt = !1, k = n
586
590
  #x() {
587
591
  if (this.linked) {
588
592
  var e = this.#t, t = this.#n;
589
- e === null || (e.#n = t), t === null ? gt = e : t.#t = e, this.linked = !1;
593
+ e === null || (e.#n = t), t === null ? bt = e : t.#t = e, this.linked = !1;
590
594
  }
591
595
  }
592
596
  };
593
- function Tt(e) {
594
- var t = yt;
595
- yt = !0;
597
+ function At(e) {
598
+ var t = Ct;
599
+ Ct = !0;
596
600
  try {
597
601
  var n;
598
- for (e && (D !== null && !D.is_fork && D.flush(), n = e());;) {
599
- if (Ye(), D === null) return n;
600
- D.flush();
602
+ for (e && (O !== null && !O.is_fork && O.flush(), n = e());;) {
603
+ if (Qe(), O === null) return n;
604
+ O.flush();
601
605
  }
602
606
  } finally {
603
- yt = t;
607
+ Ct = t;
604
608
  }
605
609
  }
606
- function Et() {
610
+ function jt() {
607
611
  try {
608
- Ie();
612
+ Le();
609
613
  } catch (e) {
610
- I(e, vt);
614
+ I(e, St);
611
615
  }
612
616
  }
613
617
  var A = null;
614
- function Dt(e) {
618
+ function Mt(e) {
615
619
  var t = e.length;
616
620
  if (t !== 0) {
617
621
  for (var n = 0; n < t;) {
618
622
  var r = e[n++];
619
- if (!(r.f & 24576) && Mn(r) && (A = /* @__PURE__ */ new Set(), Rn(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && vn(r), A?.size > 0)) {
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)) {
620
624
  j.clear();
621
625
  for (let e of A) {
622
626
  if (e.f & 24576) continue;
@@ -624,7 +628,7 @@ function Dt(e) {
624
628
  for (; n !== null;) A.has(n) && (A.delete(n), t.push(n)), n = n.parent;
625
629
  for (let e = t.length - 1; e >= 0; e--) {
626
630
  let n = t[e];
627
- n.f & 24576 || Rn(n);
631
+ n.f & 24576 || Jn(n);
628
632
  }
629
633
  }
630
634
  A.clear();
@@ -633,120 +637,120 @@ function Dt(e) {
633
637
  A = null;
634
638
  }
635
639
  }
636
- function Ot(e, t, n, r) {
640
+ function Nt(e, t, n, r) {
637
641
  if (!n.has(e) && (n.add(e), e.reactions !== null)) for (let i of e.reactions) {
638
642
  let e = i.f;
639
- e & 2 ? Ot(i, t, n, r) : e & 4194320 && !(e & 2048) && kt(i, t, r) && (E(i, v), At(i));
643
+ e & 2 ? Nt(i, t, n, r) : e & 4194320 && !(e & 2048) && Pt(i, t, r) && (D(i, b), Ft(i));
640
644
  }
641
645
  }
642
- function kt(e, t, n) {
646
+ function Pt(e, t, n) {
643
647
  let r = n.get(e);
644
648
  if (r !== void 0) return r;
645
649
  if (e.deps !== null) for (let r of e.deps) {
646
- if (o.call(t, r)) return !0;
647
- if (r.f & 2 && kt(r, t, n)) return n.set(r, !0), !0;
650
+ if (s.call(t, r)) return !0;
651
+ if (r.f & 2 && Pt(r, t, n)) return n.set(r, !0), !0;
648
652
  }
649
653
  return n.set(e, !1), !1;
650
654
  }
651
- function At(e) {
652
- D.schedule(e);
655
+ function Ft(e) {
656
+ O.schedule(e);
653
657
  }
654
- function jt(e, t) {
658
+ function It(e, t) {
655
659
  if (!(e.f & 32 && e.f & 1024)) {
656
- e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), E(e, _);
657
- for (var n = e.first; n !== null;) jt(n, t), n = n.next;
660
+ 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;
658
662
  }
659
663
  }
660
- function Mt(e) {
661
- E(e, _);
662
- for (var t = e.first; t !== null;) Mt(t), t = t.next;
664
+ function Lt(e) {
665
+ D(e, y);
666
+ for (var t = e.first; t !== null;) Lt(t), t = t.next;
663
667
  }
664
668
  //#endregion
665
669
  //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/sources.js
666
- var Nt = /* @__PURE__ */ new Set(), j = /* @__PURE__ */ new Map(), Pt = !1;
667
- function Ft(e, t) {
670
+ var Rt = /* @__PURE__ */ new Set(), j = /* @__PURE__ */ new Map(), zt = !1;
671
+ function Bt(e, t) {
668
672
  return {
669
673
  f: 0,
670
674
  v: e,
671
675
  reactions: null,
672
- equals: ke,
676
+ equals: Ae,
673
677
  rv: 0,
674
678
  wv: 0
675
679
  };
676
680
  }
677
681
  /*#__NO_SIDE_EFFECTS__*/
678
682
  function M(e, t) {
679
- let n = Ft(e, t);
680
- return Dn(n), n;
683
+ let n = Bt(e, t);
684
+ return Fn(n), n;
681
685
  }
682
686
  /*#__NO_SIDE_EFFECTS__*/
683
- function It(e, t = !1, n = !0) {
684
- let r = Ft(e);
685
- return t || (r.equals = je), r;
687
+ function Vt(e, t = !1, n = !0) {
688
+ let r = Bt(e);
689
+ return t || (r.equals = Me), r;
686
690
  }
687
691
  function N(e, t, n = !1) {
688
- return V !== null && (!H || V.f & 131072) && qe() && V.f & 4325394 && (K === null || !K.has(e)) && Ve(), Lt(e, n ? Vt(t) : t, xt);
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);
689
693
  }
690
- function Lt(e, t, n = null) {
694
+ function Ht(e, t, n = null) {
691
695
  if (!e.equals(t)) {
692
696
  B ? j.set(e, t) : j.has(e) || j.set(e, e.v);
693
- var r = wt.ensure();
697
+ var r = kt.ensure();
694
698
  if (r.capture(e, t), e.f & 2) {
695
699
  let t = e;
696
- e.f & 2048 && ft(t), O === null && Ze(t);
700
+ e.f & 2048 && gt(t), k === null && et(t);
697
701
  }
698
- e.wv = jn(), Bt(e, v, n), qe() && W !== null && W.f & 1024 && !(W.f & 96) && (Y === null ? On([e]) : Y.push(e)), !r.is_fork && Nt.size > 0 && !Pt && Rt();
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
703
  }
700
704
  return t;
701
705
  }
702
- function Rt() {
703
- Pt = !1;
704
- for (let e of Nt) {
705
- e.f & 1024 && E(e, y);
706
+ function Ut() {
707
+ zt = !1;
708
+ for (let e of Rt) {
709
+ e.f & 1024 && D(e, te);
706
710
  let t;
707
711
  try {
708
- t = Mn(e);
712
+ t = Hn(e);
709
713
  } catch {
710
714
  t = !0;
711
715
  }
712
- t && Rn(e);
716
+ t && Jn(e);
713
717
  }
714
- Nt.clear();
718
+ Rt.clear();
715
719
  }
716
- function zt(e) {
720
+ function Wt(e) {
717
721
  N(e, e.v + 1);
718
722
  }
719
- function Bt(e, t, n) {
723
+ function Gt(e, t, n) {
720
724
  var r = e.reactions;
721
- if (r !== null) for (var i = qe(), a = r.length, o = 0; o < a; o++) {
725
+ if (r !== null) for (var i = Je(), a = r.length, o = 0; o < a; o++) {
722
726
  var s = r[o], c = s.f;
723
727
  if (!(!i && s === W)) {
724
- var l = (c & v) === 0;
725
- if (l && E(s, t), c & 131072) Nt.add(s);
728
+ var l = (c & b) === 0;
729
+ if (l && D(s, t), c & 131072) Rt.add(s);
726
730
  else if (c & 2) {
727
731
  var u = s;
728
- O?.delete(u), c & 65536 || (c & 512 && (W === null || !(W.f & 2097152)) && (s.f |= ce), Bt(u, y, n));
732
+ k?.delete(u), c & 65536 || (c & 512 && (W === null || !(W.f & 2097152)) && (s.f |= se), Gt(u, te, n));
729
733
  } else if (l) {
730
734
  var d = s;
731
- c & 16 && A !== null && A.add(d), n === null ? At(d) : n.push(d);
735
+ c & 16 && A !== null && A.add(d), n === null ? Ft(d) : n.push(d);
732
736
  }
733
737
  }
734
738
  }
735
739
  }
736
- function Vt(e) {
737
- if (typeof e != "object" || !e || fe in e || pe in e) return e;
738
- let n = p(e);
739
- if (n !== d && n !== f) return e;
740
- var r = /* @__PURE__ */ new Map(), a = i(e), o = /* @__PURE__ */ M(0), s = null, c = Z, l = (e) => {
741
- if (Z === c) return e();
742
- var t = V, n = Z;
743
- U(null), An(c);
740
+ function Kt(e) {
741
+ if (typeof e != "object" || !e || de in e || fe in e) return e;
742
+ let n = h(e);
743
+ 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);
744
748
  var r = e();
745
- return U(t), An(n), r;
749
+ return U(t), Bn(n), r;
746
750
  };
747
- return a && r.set("length", /* @__PURE__ */ M(e.length, s)), new Proxy(e, {
751
+ return i && r.set("length", /* @__PURE__ */ M(e.length, s)), new Proxy(e, {
748
752
  defineProperty(e, t, n) {
749
- (!("value" in n) || n.configurable === !1 || n.enumerable === !1 || n.writable === !1) && ze();
753
+ (!("value" in n) || n.configurable === !1 || n.enumerable === !1 || n.writable === !1) && Be();
750
754
  var i = r.get(t);
751
755
  return i === void 0 ? l(() => {
752
756
  var e = /* @__PURE__ */ M(n.value, s);
@@ -758,17 +762,17 @@ function Vt(e) {
758
762
  if (i === void 0) {
759
763
  if (n in e) {
760
764
  let e = l(() => /* @__PURE__ */ M(t, s));
761
- r.set(n, e), zt(o);
765
+ r.set(n, e), Wt(o);
762
766
  }
763
- } else N(i, t), zt(o);
767
+ } else N(i, t), Wt(o);
764
768
  return !0;
765
769
  },
766
770
  get(n, i, a) {
767
- if (i === fe) return e;
771
+ if (i === de) return e;
768
772
  var o = r.get(i), c = i in n;
769
- if (o === void 0 && (!c || u(n, i)?.writable) && (o = l(() => /* @__PURE__ */ M(Vt(c ? n[i] : t), s)), r.set(i, o)), o !== void 0) {
770
- var d = Q(o);
771
- return d === t ? void 0 : d;
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) {
774
+ var u = X(o);
775
+ return u === t ? void 0 : u;
772
776
  }
773
777
  return Reflect.get(n, i, a);
774
778
  },
@@ -776,7 +780,7 @@ function Vt(e) {
776
780
  var i = Reflect.getOwnPropertyDescriptor(e, n);
777
781
  if (i && "value" in i) {
778
782
  var a = r.get(n);
779
- a && (i.value = Q(a));
783
+ a && (i.value = X(a));
780
784
  } else if (i === void 0) {
781
785
  var o = r.get(n), s = o?.v;
782
786
  if (o !== void 0 && s !== t) return {
@@ -789,34 +793,34 @@ function Vt(e) {
789
793
  return i;
790
794
  },
791
795
  has(e, n) {
792
- if (n === fe) return !0;
796
+ if (n === de) return !0;
793
797
  var i = r.get(n), a = i !== void 0 && i.v !== t || Reflect.has(e, n);
794
- return (i !== void 0 || W !== null && (!a || u(e, n)?.writable)) && (i === void 0 && (i = l(() => /* @__PURE__ */ M(a ? Vt(e[n]) : t, s)), r.set(n, i)), Q(i) === t) ? !1 : a;
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;
795
799
  },
796
- set(e, n, i, c) {
797
- var d = r.get(n), f = n in e;
798
- if (a && n === "length") for (var p = i; p < d.v; p += 1) {
800
+ set(e, n, a, c) {
801
+ var u = r.get(n), f = n in e;
802
+ if (i && n === "length") for (var p = a; p < u.v; p += 1) {
799
803
  var m = r.get(p + "");
800
804
  m === void 0 ? p in e && (m = l(() => /* @__PURE__ */ M(t, s)), r.set(p + "", m)) : N(m, t);
801
805
  }
802
- if (d === void 0) (!f || u(e, n)?.writable) && (d = l(() => /* @__PURE__ */ M(void 0, s)), N(d, Vt(i)), r.set(n, d));
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));
803
807
  else {
804
- f = d.v !== t;
805
- var h = l(() => Vt(i));
806
- N(d, h);
808
+ f = u.v !== t;
809
+ var h = l(() => Kt(a));
810
+ N(u, h);
807
811
  }
808
812
  var g = Reflect.getOwnPropertyDescriptor(e, n);
809
- if (g?.set && g.set.call(c, i), !f) {
810
- if (a && typeof n == "string") {
813
+ if (g?.set && g.set.call(c, a), !f) {
814
+ if (i && typeof n == "string") {
811
815
  var ee = r.get("length"), _ = Number(n);
812
816
  Number.isInteger(_) && _ >= ee.v && N(ee, _ + 1);
813
817
  }
814
- zt(o);
818
+ Wt(o);
815
819
  }
816
820
  return !0;
817
821
  },
818
822
  ownKeys(e) {
819
- Q(o);
823
+ X(o);
820
824
  var n = Reflect.ownKeys(e).filter((e) => {
821
825
  var n = r.get(e);
822
826
  return n === void 0 || n.v !== t;
@@ -825,56 +829,88 @@ function Vt(e) {
825
829
  return n;
826
830
  },
827
831
  setPrototypeOf() {
828
- Be();
832
+ Ve();
829
833
  }
830
834
  });
831
835
  }
832
- var Ht, Ut, Wt, Gt;
833
- function Kt() {
834
- if (Ht === void 0) {
835
- Ht = window, Ut = /Firefox/.test(navigator.userAgent);
836
+ var qt, Jt, Yt, Xt;
837
+ function Zt() {
838
+ if (qt === void 0) {
839
+ qt = window, Jt = /Firefox/.test(navigator.userAgent);
836
840
  var e = Element.prototype, t = Node.prototype, n = Text.prototype;
837
- Wt = u(t, "firstChild").get, Gt = u(t, "nextSibling").get, m(e) && (e[ge] = void 0, e[he] = null, e[_e] = void 0, e.__e = void 0), m(n) && (n[ve] = void 0);
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);
838
842
  }
839
843
  }
840
- function qt(e = "") {
844
+ function Qt(e = "") {
841
845
  return document.createTextNode(e);
842
846
  }
843
847
  /*@__NO_SIDE_EFFECTS__*/
844
848
  function P(e) {
845
- return Wt.call(e);
849
+ return Yt.call(e);
846
850
  }
847
851
  /*@__NO_SIDE_EFFECTS__*/
848
852
  function F(e) {
849
- return Gt.call(e);
853
+ return Xt.call(e);
850
854
  }
851
- function Jt(e, t) {
852
- if (!b) return /* @__PURE__ */ P(e);
853
- var n = /* @__PURE__ */ P(x);
854
- if (n === null) n = x.appendChild(qt());
855
+ function $t(e, t) {
856
+ if (!C) return /* @__PURE__ */ P(e);
857
+ var n = /* @__PURE__ */ P(w);
858
+ if (n === null) n = w.appendChild(Qt());
855
859
  else if (t && n.nodeType !== 3) {
856
- var r = qt();
857
- return n?.before(r), S(r), r;
860
+ var r = Qt();
861
+ return n?.before(r), T(r), r;
858
862
  }
859
- return t && Qt(n), S(n), n;
863
+ return t && sn(n), T(n), n;
860
864
  }
861
- function Yt(e) {
865
+ function en(e, t = !1) {
866
+ if (!C) {
867
+ var n = /* @__PURE__ */ P(e);
868
+ return n instanceof Comment && n.data === "" ? /* @__PURE__ */ F(n) : n;
869
+ }
870
+ if (t) {
871
+ if (w?.nodeType !== 3) {
872
+ var r = Qt();
873
+ return w?.before(r), T(r), r;
874
+ }
875
+ sn(w);
876
+ }
877
+ return w;
878
+ }
879
+ function tn(e, t = !1) {
880
+ if (!C) return /* @__PURE__ */ P(e);
881
+ var n = $t(e, t);
882
+ return Ee(e), n;
883
+ }
884
+ function nn(e, t = 1, n = !1) {
885
+ let r = C ? w : e;
886
+ for (var i; t--;) i = r, r = /* @__PURE__ */ F(r);
887
+ if (!C) return r;
888
+ if (n) {
889
+ if (r?.nodeType !== 3) {
890
+ var a = Qt();
891
+ return r === null ? i?.after(a) : r.before(a), T(a), a;
892
+ }
893
+ sn(r);
894
+ }
895
+ return T(r), r;
896
+ }
897
+ function rn(e) {
862
898
  e.textContent = "";
863
899
  }
864
- function Xt() {
900
+ function an() {
865
901
  return !1;
866
902
  }
867
- function Zt(e, t, n) {
903
+ function on(e, t, n) {
868
904
  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);
869
905
  }
870
- function Qt(e) {
906
+ function sn(e) {
871
907
  if (e.nodeValue.length < 65536) return;
872
908
  let t = e.nextSibling;
873
909
  for (; t !== null && t.nodeType === 3;) t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
874
910
  }
875
- function $t(e) {
911
+ function cn(e) {
876
912
  var t = W;
877
- if (t === null) return V.f |= de, e;
913
+ if (t === null) return V.f |= ue, e;
878
914
  if (!(t.f & 32768) && !(t.f & 4)) throw e;
879
915
  I(e, t);
880
916
  }
@@ -897,21 +933,21 @@ function I(e, t) {
897
933
  }
898
934
  //#endregion
899
935
  //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/effects.js
900
- function en(e) {
901
- W === null && (V === null && Fe(e), Pe()), B && Ne(e);
936
+ function ln(e) {
937
+ W === null && (V === null && Ie(e), Fe()), B && Pe(e);
902
938
  }
903
- function tn(e, t) {
939
+ function un(e, t) {
904
940
  var n = t.last;
905
941
  n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
906
942
  }
907
943
  function L(e, t) {
908
944
  var n = W;
909
- n !== null && n.f & 8192 && (e |= te);
945
+ n !== null && n.f & 8192 && (e |= ne);
910
946
  var r = {
911
- ctx: C,
947
+ ctx: E,
912
948
  deps: null,
913
949
  nodes: null,
914
- f: e | v | 512,
950
+ f: e | b | 512,
915
951
  first: null,
916
952
  fn: t,
917
953
  last: null,
@@ -923,105 +959,105 @@ function L(e, t) {
923
959
  wv: 0,
924
960
  ac: null
925
961
  };
926
- D?.register_created_effect(r);
962
+ O?.register_created_effect(r);
927
963
  var i = r;
928
- if (e & 4) k === null ? wt.ensure().schedule(r) : k.push(r);
964
+ if (e & 4) Tt === null ? kt.ensure().schedule(r) : Tt.push(r);
929
965
  else if (t !== null) {
930
966
  try {
931
- Rn(r);
967
+ Jn(r);
932
968
  } catch (e) {
933
969
  throw z(r), e;
934
970
  }
935
- 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 |= ae));
971
+ 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));
936
972
  }
937
- if (i !== null && (i.parent = n, n !== null && tn(i, n), V !== null && V.f & 2 && !(e & 64))) {
973
+ if (i !== null && (i.parent = n, n !== null && un(i, n), V !== null && V.f & 2 && !(e & 64))) {
938
974
  var a = V;
939
975
  (a.effects ??= []).push(i);
940
976
  }
941
977
  return r;
942
978
  }
943
- function nn() {
979
+ function dn() {
944
980
  return V !== null && !H;
945
981
  }
946
- function rn(e) {
982
+ function fn(e) {
947
983
  let t = L(8, null);
948
- return E(t, _), t.teardown = e, t;
984
+ return D(t, y), t.teardown = e, t;
949
985
  }
950
- function an(e) {
951
- en("$effect");
986
+ function pn(e) {
987
+ ln("$effect");
952
988
  var t = W.f;
953
- if (!V && t & 32 && C !== null && !C.i) {
954
- var n = C;
989
+ if (!V && t & 32 && E !== null && !E.i) {
990
+ var n = E;
955
991
  (n.e ??= []).push(e);
956
- } else return on(e);
992
+ } else return mn(e);
957
993
  }
958
- function on(e) {
959
- return L(4 | se, e);
994
+ function mn(e) {
995
+ return L(4 | oe, e);
960
996
  }
961
- function sn(e) {
962
- wt.ensure();
963
- let t = L(64 | oe, e);
997
+ function hn(e) {
998
+ kt.ensure();
999
+ let t = L(64 | ae, e);
964
1000
  return () => {
965
1001
  z(t);
966
1002
  };
967
1003
  }
968
- function cn(e) {
969
- wt.ensure();
970
- let t = L(64 | oe, e);
1004
+ function gn(e) {
1005
+ kt.ensure();
1006
+ let t = L(64 | ae, e);
971
1007
  return (e = {}) => new Promise((n) => {
972
- e.outro ? yn(t, () => {
1008
+ e.outro ? Dn(t, () => {
973
1009
  z(t), n(void 0);
974
1010
  }) : (z(t), n(void 0));
975
1011
  });
976
1012
  }
977
- function ln(e) {
1013
+ function _n(e) {
978
1014
  return L(4, e);
979
1015
  }
980
- function un(e) {
981
- return L(ue | oe, e);
1016
+ function vn(e) {
1017
+ return L(le | ae, e);
982
1018
  }
983
- function dn(e, t = 0) {
1019
+ function yn(e, t = 0) {
984
1020
  return L(8 | t, e);
985
1021
  }
986
- function fn(e, t = [], n = [], r = []) {
987
- rt(r, t, n, (t) => {
1022
+ function bn(e, t = [], n = [], r = []) {
1023
+ ot(r, t, n, (t) => {
988
1024
  L(8, () => {
989
- e(...t.map(Q));
1025
+ e(...t.map(X));
990
1026
  });
991
1027
  });
992
1028
  }
993
- function pn(e, t = 0) {
1029
+ function xn(e, t = 0) {
994
1030
  return L(16 | t, e);
995
1031
  }
996
1032
  function R(e) {
997
- return L(32 | oe, e);
1033
+ return L(32 | ae, e);
998
1034
  }
999
- function mn(e) {
1035
+ function Sn(e) {
1000
1036
  var t = e.teardown;
1001
1037
  if (t !== null) {
1002
1038
  let n = B, r = V;
1003
- En(!0), U(null);
1039
+ Pn(!0), U(null);
1004
1040
  try {
1005
1041
  t.call(null);
1006
1042
  } catch (t) {
1007
1043
  I(t, e.parent);
1008
1044
  } finally {
1009
- En(n), U(r);
1045
+ Pn(n), U(r);
1010
1046
  }
1011
1047
  }
1012
1048
  }
1013
- function hn(e, t = !1) {
1049
+ function Cn(e, t = !1) {
1014
1050
  var n = e.first;
1015
1051
  for (e.first = e.last = null; n !== null;) {
1016
1052
  let e = n.ac;
1017
- e !== null && nt(() => {
1053
+ e !== null && at(() => {
1018
1054
  e.abort(ye);
1019
1055
  });
1020
1056
  var r = n.next;
1021
1057
  n.f & 64 ? n.parent = null : z(n, t), n = r;
1022
1058
  }
1023
1059
  }
1024
- function gn(e) {
1060
+ function wn(e) {
1025
1061
  for (var t = e.first; t !== null;) {
1026
1062
  var n = t.next;
1027
1063
  t.f & 32 || z(t), t = n;
@@ -1029,26 +1065,26 @@ function gn(e) {
1029
1065
  }
1030
1066
  function z(e, t = !0) {
1031
1067
  var n = !1;
1032
- (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (_n(e.nodes.start, e.nodes.end), n = !0), e.f |= ie, hn(e, t && !n), Ln(e, 0);
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);
1033
1069
  var r = e.nodes && e.nodes.t;
1034
1070
  if (r !== null) for (let e of r) e.stop();
1035
- mn(e), e.f ^= ie, e.f |= ne;
1071
+ Sn(e), e.f ^= S, e.f |= re;
1036
1072
  var i = e.parent;
1037
- i !== null && i.first !== null && vn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
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;
1038
1074
  }
1039
- function _n(e, t) {
1075
+ function Tn(e, t) {
1040
1076
  for (; e !== null;) {
1041
1077
  var n = e === t ? null : /* @__PURE__ */ F(e);
1042
1078
  e.remove(), e = n;
1043
1079
  }
1044
1080
  }
1045
- function vn(e) {
1081
+ function En(e) {
1046
1082
  var t = e.parent, n = e.prev, r = e.next;
1047
1083
  n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
1048
1084
  }
1049
- function yn(e, t, n = !0) {
1085
+ function Dn(e, t, n = !0) {
1050
1086
  var r = [];
1051
- e.f |= 256, bn(e, r, !0);
1087
+ e.f |= 256, On(e, r, !0);
1052
1088
  var i = () => {
1053
1089
  n && z(e), t && t();
1054
1090
  }, a = r.length;
@@ -1057,36 +1093,36 @@ function yn(e, t, n = !0) {
1057
1093
  for (var s of r) s.out(o);
1058
1094
  } else i();
1059
1095
  }
1060
- function bn(e, t, n) {
1096
+ function On(e, t, n) {
1061
1097
  if (!(e.f & 8192)) {
1062
- e.f ^= te;
1098
+ e.f ^= ne;
1063
1099
  var r = e.nodes && e.nodes.t;
1064
1100
  if (r !== null) for (let e of r) (e.is_global || n) && t.push(e);
1065
1101
  for (var i = e.first; i !== null;) {
1066
1102
  var a = i.next;
1067
1103
  if (!(i.f & 64)) {
1068
1104
  var o = (i.f & 65536) != 0 || (i.f & 32) != 0 && (e.f & 16) != 0;
1069
- bn(i, t, o ? n : !1);
1105
+ On(i, t, o ? n : !1);
1070
1106
  }
1071
1107
  i = a;
1072
1108
  }
1073
1109
  }
1074
1110
  }
1075
- function xn(e) {
1076
- e.f &= -257, Sn(e, !0);
1111
+ function kn(e) {
1112
+ e.f &= -257, An(e, !0);
1077
1113
  }
1078
- function Sn(e, t) {
1114
+ function An(e, t) {
1079
1115
  if (!(e.f & 256) && e.f & 8192) {
1080
- e.f ^= te, e.f & 1024 || (E(e, v), wt.ensure().schedule(e));
1116
+ e.f ^= ne, e.f & 1024 || (D(e, b), kt.ensure().schedule(e));
1081
1117
  for (var n = e.first; n !== null;) {
1082
1118
  var r = n.next, i = (n.f & 65536) != 0 || (n.f & 32) != 0;
1083
- Sn(n, i ? t : !1), n = r;
1119
+ An(n, i ? t : !1), n = r;
1084
1120
  }
1085
1121
  var a = e.nodes && e.nodes.t;
1086
1122
  if (a !== null) for (let e of a) (e.is_global || t) && e.in();
1087
1123
  }
1088
1124
  }
1089
- function Cn(e, t) {
1125
+ function jn(e, t) {
1090
1126
  if (e.nodes) for (var n = e.nodes.start, r = e.nodes.end; n !== null;) {
1091
1127
  var i = n === r ? null : /* @__PURE__ */ F(n);
1092
1128
  t.append(n), n = i;
@@ -1094,8 +1130,8 @@ function Cn(e, t) {
1094
1130
  }
1095
1131
  //#endregion
1096
1132
  //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/legacy.js
1097
- var wn = null, Tn = !1, B = !1;
1098
- function En(e) {
1133
+ var Mn = null, Nn = !1, B = !1;
1134
+ function Pn(e) {
1099
1135
  B = e;
1100
1136
  }
1101
1137
  var V = null, H = !1;
@@ -1107,116 +1143,116 @@ function G(e) {
1107
1143
  W = e;
1108
1144
  }
1109
1145
  var K = null;
1110
- function Dn(e) {
1146
+ function Fn(e) {
1111
1147
  V !== null && (K ??= /* @__PURE__ */ new Set()).add(e);
1112
1148
  }
1113
1149
  var q = null, J = 0, Y = null;
1114
- function On(e) {
1150
+ function In(e) {
1115
1151
  Y = e;
1116
1152
  }
1117
- var kn = 1, X = 0, Z = X;
1118
- function An(e) {
1119
- Z = e;
1153
+ var Ln = 1, Rn = 0, zn = Rn;
1154
+ function Bn(e) {
1155
+ zn = e;
1120
1156
  }
1121
- function jn() {
1122
- return ++kn;
1157
+ function Vn() {
1158
+ return ++Ln;
1123
1159
  }
1124
- function Mn(e) {
1160
+ function Hn(e) {
1125
1161
  var t = e.f;
1126
1162
  if (t & 2048) return !0;
1127
- if (t & 2 && (e.f &= ~ce), t & 4096) {
1163
+ if (t & 2 && (e.f &= ~se), t & 4096) {
1128
1164
  for (var n = e.deps, r = n.length, i = 0; i < r; i++) {
1129
1165
  var a = n[i];
1130
- if (Mn(a) && pt(a), a.wv > e.wv) return !0;
1166
+ if (Hn(a) && _t(a), a.wv > e.wv) return !0;
1131
1167
  }
1132
- t & 512 && O === null && E(e, _);
1168
+ t & 512 && k === null && D(e, y);
1133
1169
  }
1134
1170
  return !1;
1135
1171
  }
1136
- function Nn(e, t, n = !0) {
1172
+ function Un(e, t, n = !0) {
1137
1173
  var r = e.reactions;
1138
1174
  if (r !== null && !(K !== null && K.has(e))) for (var i = 0; i < r.length; i++) {
1139
1175
  var a = r[i];
1140
- a.f & 2 ? Nn(a, t, !1) : t === a && (n ? E(a, v) : a.f & 1024 && E(a, y), At(a));
1176
+ a.f & 2 ? Un(a, t, !1) : t === a && (n ? D(a, b) : a.f & 1024 && D(a, te), Ft(a));
1141
1177
  }
1142
1178
  }
1143
- function Pn(e) {
1144
- var t = q, n = J, r = Y, i = V, a = K, o = C, s = H, c = Z, l = e.f;
1145
- q = null, J = 0, Y = null, V = l & 96 ? null : e, K = null, Ue(e.ctx), H = !1, Z = ++X, e.ac !== null && (nt(() => {
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(() => {
1146
1182
  e.ac.abort(ye);
1147
1183
  }), e.ac = null);
1148
1184
  try {
1149
- e.f |= le;
1185
+ e.f |= ce;
1150
1186
  var u = e.fn, d = u();
1151
- e.f |= re;
1152
- var f = Fn(e);
1153
- if (qe() && Y !== null && !H && f !== null && !(e.f & 6146)) for (var p = 0; p < Y.length; p++) Nn(Y[p], e);
1187
+ 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);
1154
1190
  if (i !== null && i !== e) {
1155
- if (X++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = X;
1156
- if (t !== null) for (let e of t) e.rv = X;
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;
1157
1193
  Y !== null && (r === null ? r = Y : r.push(...Y));
1158
1194
  }
1159
- return e.f & 8388608 && (e.f ^= de), d;
1195
+ return e.f & 8388608 && (e.f ^= ue), d;
1160
1196
  } catch (t) {
1161
- return Fn(e), $t(t);
1197
+ return Gn(e), cn(t);
1162
1198
  } finally {
1163
- e.f ^= le, q = t, J = n, Y = r, V = i, K = a, Ue(o), H = s, Z = c;
1199
+ e.f ^= ce, q = t, J = n, Y = r, V = i, K = a, We(o), H = s, zn = c;
1164
1200
  }
1165
1201
  }
1166
- function Fn(e) {
1167
- var t = e.deps, n = D?.is_fork;
1202
+ function Gn(e) {
1203
+ var t = e.deps, n = O?.is_fork;
1168
1204
  if (q !== null) {
1169
1205
  var r;
1170
- if (n || Ln(e, J), t !== null && J > 0) for (t.length = J + q.length, r = 0; r < q.length; r++) t[J + r] = q[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];
1171
1207
  else e.deps = t = q;
1172
- if (nn() && e.f & 512) for (r = J; r < t.length; r++) (t[r].reactions ??= []).push(e);
1173
- } else !n && t !== null && J < t.length && (Ln(e, J), t.length = J);
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);
1174
1210
  return t;
1175
1211
  }
1176
- function In(e, n) {
1212
+ function Kn(e, n) {
1177
1213
  let r = n.reactions;
1178
1214
  if (r !== null) {
1179
- var i = a.call(r, e);
1215
+ var i = o.call(r, e);
1180
1216
  if (i !== -1) {
1181
- var s = r.length - 1;
1182
- s === 0 ? r = n.reactions = null : (r[i] = r[s], r.pop());
1217
+ var a = r.length - 1;
1218
+ a === 0 ? r = n.reactions = null : (r[i] = r[a], r.pop());
1183
1219
  }
1184
1220
  }
1185
- if (r === null && n.f & 2 && (q === null || !o.call(q, n))) {
1221
+ if (r === null && n.f & 2 && (q === null || !s.call(q, n))) {
1186
1222
  var c = n;
1187
- c.f & 512 && (c.f ^= 512, c.f &= ~ce), c.v !== t && Ze(c), c.ac !== null && nt(() => {
1188
- c.ac.abort(ye), c.ac = null, E(c, v);
1189
- }), mt(c), Ln(c, 0);
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);
1190
1226
  }
1191
1227
  }
1192
- function Ln(e, t) {
1228
+ function qn(e, t) {
1193
1229
  var n = e.deps;
1194
- if (n !== null) for (var r = t; r < n.length; r++) In(e, n[r]);
1230
+ if (n !== null) for (var r = t; r < n.length; r++) Kn(e, n[r]);
1195
1231
  }
1196
- function Rn(e) {
1232
+ function Jn(e) {
1197
1233
  var t = e.f;
1198
1234
  if (!(t & 16384)) {
1199
- E(e, _);
1200
- var n = W, r = Tn;
1201
- W = e, Tn = (t & 96) == 0;
1235
+ D(e, y);
1236
+ var n = W, r = Nn;
1237
+ W = e, Nn = (t & 96) == 0;
1202
1238
  try {
1203
- t & 16777232 ? gn(e) : hn(e), mn(e);
1204
- var i = Pn(e);
1205
- e.teardown = typeof i == "function" ? i : null, e.wv = kn;
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;
1206
1242
  } finally {
1207
- Tn = r, W = n;
1243
+ Nn = r, W = n;
1208
1244
  }
1209
1245
  }
1210
1246
  }
1211
- function Q(e) {
1247
+ function X(e) {
1212
1248
  var t = (e.f & 2) != 0;
1213
- if (wn?.add(e), V !== null && !H && !(W !== null && W.f & 16384) && (K === null || !K.has(e))) {
1249
+ if (Mn?.add(e), V !== null && !H && !(W !== null && W.f & 16384) && (K === null || !K.has(e))) {
1214
1250
  var n = V.deps;
1215
- if (V.f & 2097152) e.rv < X && (e.rv = X, q === null && n !== null && n[J] === e ? J++ : q === null ? q = [e] : q.push(e));
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));
1216
1252
  else {
1217
- V.deps ??= [], o.call(V.deps, e) || V.deps.push(e);
1253
+ V.deps ??= [], s.call(V.deps, e) || V.deps.push(e);
1218
1254
  var r = e.reactions;
1219
- r === null ? e.reactions = [V] : o.call(r, V) || r.push(V);
1255
+ r === null ? e.reactions = [V] : s.call(r, V) || r.push(V);
1220
1256
  }
1221
1257
  }
1222
1258
  if (B && j.has(e)) return j.get(e);
@@ -1224,25 +1260,25 @@ function Q(e) {
1224
1260
  var i = e;
1225
1261
  if (B) {
1226
1262
  var a = i.v;
1227
- return (!(i.f & 1024) && i.reactions !== null || Bn(i)) && (a = ft(i)), j.set(i, a), a;
1263
+ return (!(i.f & 1024) && i.reactions !== null || Xn(i)) && (a = gt(i)), j.set(i, a), a;
1228
1264
  }
1229
- var s = (i.f & 512) == 0 && !H && V !== null && (Tn || (V.f & 512) != 0), c = (i.f & re) === 0;
1230
- Mn(i) && (s && (i.f |= 512), pt(i)), s && !c && (ht(i), zn(i));
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));
1231
1267
  }
1232
- if (O?.has(e)) return O.get(e);
1268
+ if (k?.has(e)) return k.get(e);
1233
1269
  if (e.f & 8388608) throw e.v;
1234
1270
  return e.v;
1235
1271
  }
1236
- function zn(e) {
1237
- 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), zn(t));
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));
1238
1274
  }
1239
- function Bn(e) {
1275
+ function Xn(e) {
1240
1276
  if (e.v === t) return !0;
1241
1277
  if (e.deps === null) return !1;
1242
- for (let t of e.deps) if (j.has(t) || t.f & 2 && Bn(t)) return !0;
1278
+ for (let t of e.deps) if (j.has(t) || t.f & 2 && Xn(t)) return !0;
1243
1279
  return !1;
1244
1280
  }
1245
- function Vn(e) {
1281
+ function Zn(e) {
1246
1282
  var t = H;
1247
1283
  try {
1248
1284
  return H = !0, e();
@@ -1252,25 +1288,25 @@ function Vn(e) {
1252
1288
  }
1253
1289
  //#endregion
1254
1290
  //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/elements/events.js
1255
- var Hn = Symbol("events"), Un = /* @__PURE__ */ new Set(), Wn = /* @__PURE__ */ new Set(), Gn = null, Kn = !1;
1256
- function qn(e) {
1291
+ var Qn = Symbol("events"), $n = /* @__PURE__ */ new Set(), er = /* @__PURE__ */ new Set(), tr = null, nr = !1;
1292
+ function rr(e) {
1257
1293
  var t = this, n = t.ownerDocument, r = e.type, i = e.composedPath?.() || [], a = i[0] || e.target;
1258
- Gn = e, Kn || (Kn = !0, setTimeout(() => {
1259
- Kn = !1, Gn = null;
1294
+ tr = e, nr || (nr = !0, setTimeout(() => {
1295
+ nr = !1, tr = null;
1260
1296
  }));
1261
- var o = 0, s = Gn === e && e[Hn];
1297
+ var o = 0, s = tr === e && e[Qn];
1262
1298
  if (s) {
1263
1299
  var c = i.indexOf(s);
1264
1300
  if (c !== -1 && (t === document || t === window)) {
1265
- e[Hn] = t;
1301
+ e[Qn] = t;
1266
1302
  return;
1267
1303
  }
1268
- var u = i.indexOf(t);
1269
- if (u === -1) return;
1270
- c <= u && (o = c);
1304
+ var l = i.indexOf(t);
1305
+ if (l === -1) return;
1306
+ c <= l && (o = c);
1271
1307
  }
1272
1308
  if (a = i[o] || e.target, a !== t) {
1273
- l(e, "currentTarget", {
1309
+ u(e, "currentTarget", {
1274
1310
  configurable: !0,
1275
1311
  get() {
1276
1312
  return a || n;
@@ -1281,7 +1317,7 @@ function qn(e) {
1281
1317
  try {
1282
1318
  for (var p, m = []; a !== null && a !== t;) {
1283
1319
  try {
1284
- var h = a[Hn]?.[r];
1320
+ var h = a[Qn]?.[r];
1285
1321
  h != null && (!a.disabled || e.target === a) && h.call(a, e);
1286
1322
  } catch (e) {
1287
1323
  p ? m.push(e) : p = e;
@@ -1296,23 +1332,23 @@ function qn(e) {
1296
1332
  throw p;
1297
1333
  }
1298
1334
  } finally {
1299
- e[Hn] = t, delete e.currentTarget, U(d), G(f);
1335
+ e[Qn] = t, delete e.currentTarget, U(d), G(f);
1300
1336
  }
1301
1337
  }
1302
1338
  }
1303
1339
  //#endregion
1304
1340
  //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/reconciler.js
1305
- var Jn = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
1306
- function Yn(e) {
1307
- return Jn?.createHTML(e) ?? e;
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;
1308
1344
  }
1309
- function Xn(e) {
1310
- var t = Zt("template");
1311
- return t.innerHTML = Yn(e.replaceAll("<!>", "<!---->")), t.content;
1345
+ function or(e) {
1346
+ var t = on("template");
1347
+ return t.innerHTML = ar(e.replaceAll("<!>", "<!---->")), t.content;
1312
1348
  }
1313
1349
  //#endregion
1314
1350
  //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/template.js
1315
- function $(e, t) {
1351
+ function sr(e, t) {
1316
1352
  var n = W;
1317
1353
  n.nodes === null && (n.nodes = {
1318
1354
  start: e,
@@ -1322,56 +1358,56 @@ function $(e, t) {
1322
1358
  });
1323
1359
  }
1324
1360
  /*#__NO_SIDE_EFFECTS__*/
1325
- function Zn(e, t) {
1361
+ function cr(e, t) {
1326
1362
  var n = (t & 1) != 0, r = (t & 2) != 0, i, a = !e.startsWith("<!>");
1327
1363
  return () => {
1328
- if (b) return $(x, null), x;
1329
- i === void 0 && (i = Xn(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ P(i)));
1330
- var t = r || Ut ? document.importNode(i, !0) : i.cloneNode(!0);
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);
1331
1367
  if (n) {
1332
1368
  var o = /* @__PURE__ */ P(t), s = t.lastChild;
1333
- $(o, s);
1334
- } else $(t, t);
1369
+ sr(o, s);
1370
+ } else sr(t, t);
1335
1371
  return t;
1336
1372
  };
1337
1373
  }
1338
- function Qn(e, t) {
1339
- if (b) {
1374
+ function lr(e, t) {
1375
+ if (C) {
1340
1376
  var n = W;
1341
- (!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = x), we();
1377
+ (!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = w), Te();
1342
1378
  return;
1343
1379
  }
1344
1380
  e !== null && e.before(t);
1345
1381
  }
1346
1382
  [.../* @__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(".")];
1347
- var $n = ["touchstart", "touchmove"];
1348
- function er(e) {
1349
- return $n.includes(e);
1383
+ var ur = ["touchstart", "touchmove"];
1384
+ function dr(e) {
1385
+ return ur.includes(e);
1350
1386
  }
1351
1387
  //#endregion
1352
1388
  //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/reactivity/create-subscriber.js
1353
- function tr(e) {
1354
- let t = 0, n = Ft(0), r;
1389
+ function fr(e) {
1390
+ let t = 0, n = Bt(0), r;
1355
1391
  return () => {
1356
- nn() && (Q(n), dn(() => (t === 0 && (r = Vn(() => e(() => zt(n)))), t += 1, () => {
1357
- T(() => {
1358
- --t, t === 0 && (r?.(), r = void 0, zt(n));
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));
1359
1395
  });
1360
1396
  })));
1361
1397
  };
1362
1398
  }
1363
1399
  //#endregion
1364
1400
  //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
1365
- var nr = ae | oe;
1366
- function rr(e, t, n, r) {
1367
- new ir(e, t, n, r);
1401
+ var pr = ie | ae;
1402
+ function mr(e, t, n, r) {
1403
+ new hr(e, t, n, r);
1368
1404
  }
1369
- var ir = class {
1405
+ var hr = class {
1370
1406
  parent;
1371
1407
  is_pending = !1;
1372
1408
  transform_error;
1373
1409
  #e;
1374
- #t = b ? x : null;
1410
+ #t = C ? w : null;
1375
1411
  #n;
1376
1412
  #r;
1377
1413
  #i;
@@ -1385,24 +1421,24 @@ var ir = class {
1385
1421
  #f = /* @__PURE__ */ new Set();
1386
1422
  #p = /* @__PURE__ */ new Set();
1387
1423
  #m = null;
1388
- #h = tr(() => (this.#m = Ft(this.#l), () => {
1424
+ #h = fr(() => (this.#m = Bt(this.#l), () => {
1389
1425
  this.#m = null;
1390
1426
  }));
1391
1427
  constructor(e, t, n, r) {
1392
1428
  this.#e = e, this.#n = t, this.#r = (e) => {
1393
1429
  var t = W;
1394
1430
  t.b = this, t.f |= 128, n(e);
1395
- }, this.parent = W.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = pn(() => {
1396
- if (b) {
1431
+ }, this.parent = W.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = xn(() => {
1432
+ if (C) {
1397
1433
  let e = this.#t;
1398
- we();
1434
+ Te();
1399
1435
  let t = e.data === "[!";
1400
1436
  if (e.data.startsWith("[?")) {
1401
1437
  let t = JSON.parse(e.data.slice(2));
1402
1438
  this.#_(t);
1403
1439
  } else t ? this.#y() : this.#g();
1404
1440
  } else this.#b();
1405
- }, nr), b && (this.#e = x);
1441
+ }, pr), C && (this.#e = w);
1406
1442
  }
1407
1443
  #g() {
1408
1444
  try {
@@ -1413,7 +1449,7 @@ var ir = class {
1413
1449
  }
1414
1450
  #_(e) {
1415
1451
  let t = this.#n.failed, { reset: n, invoke_onerror: r } = this.#v(e);
1416
- T(r), t && (this.#s = R(() => {
1452
+ Ze(r), t && (this.#s = R(() => {
1417
1453
  t(this.#e, () => e, () => n);
1418
1454
  }));
1419
1455
  }
@@ -1421,10 +1457,10 @@ var ir = class {
1421
1457
  var t = !1, n = !1;
1422
1458
  let r = () => {
1423
1459
  if (t) {
1424
- Se();
1460
+ Ce();
1425
1461
  return;
1426
1462
  }
1427
- t = !0, n && He(), this.#s !== null && yn(this.#s, () => {
1463
+ t = !0, n && Ue(), this.#s !== null && Dn(this.#s, () => {
1428
1464
  this.#s = null;
1429
1465
  }), this.#S(() => {
1430
1466
  this.#b();
@@ -1443,8 +1479,8 @@ var ir = class {
1443
1479
  }
1444
1480
  #y() {
1445
1481
  let e = this.#n.pending;
1446
- e && (this.is_pending = !0, this.#o = R(() => e(this.#e)), T(() => {
1447
- var e = this.#c = document.createDocumentFragment(), t = qt(), n = !1;
1482
+ e && (this.is_pending = !0, this.#o = R(() => e(this.#e)), Ze(() => {
1483
+ var e = this.#c = document.createDocumentFragment(), t = Qt(), n = !1;
1448
1484
  if (e.append(t), this.#a = this.#S(() => {
1449
1485
  try {
1450
1486
  return R(() => this.#r(t));
@@ -1457,12 +1493,12 @@ var ir = class {
1457
1493
  return null;
1458
1494
  }
1459
1495
  }), this.#a === null) {
1460
- this.#c = null, n && this.#x(D);
1496
+ this.#c = null, n && this.#x(O);
1461
1497
  return;
1462
1498
  }
1463
- this.#u === 0 && (this.#e.before(e), this.#c = null, yn(this.#o, () => {
1499
+ this.#u === 0 && (this.#e.before(e), this.#c = null, Dn(this.#o, () => {
1464
1500
  this.#o = null;
1465
- }), this.#x(D));
1501
+ }), this.#x(O));
1466
1502
  }));
1467
1503
  }
1468
1504
  #b() {
@@ -1471,10 +1507,10 @@ var ir = class {
1471
1507
  this.#r(this.#e);
1472
1508
  }), this.#u > 0) {
1473
1509
  var e = this.#c = document.createDocumentFragment();
1474
- Cn(this.#a, e);
1510
+ jn(this.#a, e);
1475
1511
  let t = this.#n.pending;
1476
1512
  this.#o = R(() => t(this.#e));
1477
- } else this.#x(D);
1513
+ } else this.#x(O);
1478
1514
  } catch (e) {
1479
1515
  this.error(e);
1480
1516
  }
@@ -1483,7 +1519,7 @@ var ir = class {
1483
1519
  this.is_pending = !1, e.transfer_effects(this.#f, this.#p);
1484
1520
  }
1485
1521
  defer_effect(e) {
1486
- $e(e, this.#f, this.#p);
1522
+ nt(e, this.#f, this.#p);
1487
1523
  }
1488
1524
  is_rendered() {
1489
1525
  return !this.is_pending && (!this.parent || this.parent.is_rendered());
@@ -1492,12 +1528,12 @@ var ir = class {
1492
1528
  return !!this.#n.pending;
1493
1529
  }
1494
1530
  #S(e) {
1495
- var t = W, n = V, r = C;
1496
- G(this.#i), U(this.#i), Ue(this.#i.ctx);
1531
+ var t = W, n = V, r = E;
1532
+ G(this.#i), U(this.#i), We(this.#i.ctx);
1497
1533
  try {
1498
- return wt.ensure(), e();
1534
+ return kt.ensure(), e();
1499
1535
  } finally {
1500
- G(t), U(n), Ue(r);
1536
+ G(t), U(n), We(r);
1501
1537
  }
1502
1538
  }
1503
1539
  #C(e, t) {
@@ -1505,26 +1541,26 @@ var ir = class {
1505
1541
  this.parent && this.parent.#C(e, t);
1506
1542
  return;
1507
1543
  }
1508
- this.#u += e, this.#u === 0 && (this.#x(t), this.#o && yn(this.#o, () => {
1544
+ this.#u += e, this.#u === 0 && (this.#x(t), this.#o && Dn(this.#o, () => {
1509
1545
  this.#o = null;
1510
1546
  }), this.#c &&= (this.#e.before(this.#c), null));
1511
1547
  }
1512
1548
  update_pending_count(e, t) {
1513
- this.#C(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, T(() => {
1514
- this.#d = !1, this.#m && Lt(this.#m, this.#l);
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);
1515
1551
  }));
1516
1552
  }
1517
1553
  get_effect_pending() {
1518
- return this.#h(), Q(this.#m);
1554
+ return this.#h(), X(this.#m);
1519
1555
  }
1520
1556
  error(e) {
1521
1557
  if (!this.#n.onerror && !this.#n.failed) throw e;
1522
- D?.is_fork ? (this.#a && D.skip_effect(this.#a), this.#o && D.skip_effect(this.#o), this.#s && D.skip_effect(this.#s), D.oncommit(() => {
1558
+ O?.is_fork ? (this.#a && O.skip_effect(this.#a), this.#o && O.skip_effect(this.#o), this.#s && O.skip_effect(this.#s), O.oncommit(() => {
1523
1559
  this.#w(e);
1524
1560
  })) : this.#w(e);
1525
1561
  }
1526
1562
  #w(e) {
1527
- this.#a &&= (z(this.#a), null), this.#o &&= (z(this.#o), null), this.#s &&= (z(this.#s), null), b && (S(this.#t), Ee(), S(De()));
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()));
1528
1564
  let t = this.#n.failed, n = (e) => {
1529
1565
  let { reset: n, invoke_onerror: r } = this.#v(e);
1530
1566
  r(), t && (this.#s = this.#S(() => {
@@ -1538,7 +1574,7 @@ var ir = class {
1538
1574
  }
1539
1575
  }));
1540
1576
  };
1541
- T(() => {
1577
+ Ze(() => {
1542
1578
  var t;
1543
1579
  try {
1544
1580
  t = this.transform_error(e);
@@ -1550,72 +1586,76 @@ var ir = class {
1550
1586
  });
1551
1587
  }
1552
1588
  };
1553
- function ar(e, t) {
1554
- return cr(e, t);
1589
+ function gr(e, t) {
1590
+ var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
1591
+ n !== (e[ve] ??= e.nodeValue) && (e[ve] = n, e.nodeValue = `${n}`);
1592
+ }
1593
+ function _r(e, t) {
1594
+ return br(e, t);
1555
1595
  }
1556
- function or(t, n) {
1557
- Kt(), n.intro = n.intro ?? !1;
1558
- let r = n.target, i = b, a = x;
1596
+ function vr(t, n) {
1597
+ Zt(), n.intro = n.intro ?? !1;
1598
+ let r = n.target, i = C, a = w;
1559
1599
  try {
1560
1600
  for (var o = /* @__PURE__ */ P(r); o && (o.nodeType !== 8 || o.data !== "[");) o = /* @__PURE__ */ F(o);
1561
1601
  if (!o) throw e;
1562
- Ce(!0), S(o);
1563
- let i = cr(t, {
1602
+ we(!0), T(o);
1603
+ let i = br(t, {
1564
1604
  ...n,
1565
1605
  anchor: o
1566
1606
  });
1567
- return Ce(!1), i;
1607
+ return we(!1), i;
1568
1608
  } catch (i) {
1569
1609
  if (i instanceof Error && i.message.split("\n").some((e) => e.startsWith("https://svelte.dev/e/"))) throw i;
1570
- return i !== e && console.warn("Failed to hydrate: ", i), n.recover === !1 && Le(), Kt(), Yt(r), Ce(!1), ar(t, n);
1610
+ return i !== e && console.warn("Failed to hydrate: ", i), n.recover === !1 && Re(), Zt(), rn(r), we(!1), _r(t, n);
1571
1611
  } finally {
1572
- Ce(i), S(a);
1573
- }
1574
- }
1575
- var sr = /* @__PURE__ */ new Map();
1576
- function cr(t, { target: n, anchor: r, props: i = {}, events: a, context: o, intro: c = !0, transformError: l }) {
1577
- Kt();
1578
- var u = void 0, d = cn(() => {
1579
- var c = r ?? n.appendChild(qt());
1580
- rr(c, { pending: () => {} }, (n) => {
1581
- We({});
1582
- var r = C;
1583
- if (o && (r.c = o), a && (i.$$events = a), b && $(n, null), u = t(n, i) || Ke(), b && (W.nodes.end = x, x === null || x.nodeType !== 8 || x.data !== "]")) throw xe(), e;
1584
- Ge();
1612
+ we(i), T(a);
1613
+ }
1614
+ }
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({});
1622
+ 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();
1585
1625
  }, l);
1586
1626
  var d = /* @__PURE__ */ new Set(), f = (e) => {
1587
1627
  for (var t = 0; t < e.length; t++) {
1588
1628
  var r = e[t];
1589
1629
  if (!d.has(r)) {
1590
1630
  d.add(r);
1591
- var i = er(r);
1631
+ var i = dr(r);
1592
1632
  for (let e of [n, document]) {
1593
- var a = sr.get(e);
1594
- a === void 0 && (a = /* @__PURE__ */ new Map(), sr.set(e, a));
1633
+ var a = yr.get(e);
1634
+ a === void 0 && (a = /* @__PURE__ */ new Map(), yr.set(e, a));
1595
1635
  var o = a.get(r);
1596
- o === void 0 ? (e.addEventListener(r, qn, { passive: i }), a.set(r, 1)) : a.set(r, o + 1);
1636
+ o === void 0 ? (e.addEventListener(r, rr, { passive: i }), a.set(r, 1)) : a.set(r, o + 1);
1597
1637
  }
1598
1638
  }
1599
1639
  }
1600
1640
  };
1601
- return f(s(Un)), Wn.add(f), () => {
1641
+ return f(c($n)), er.add(f), () => {
1602
1642
  for (var e of d) for (let r of [n, document]) {
1603
- var t = sr.get(r), i = t.get(e);
1604
- --i == 0 ? (r.removeEventListener(e, qn), t.delete(e), t.size === 0 && sr.delete(r)) : t.set(e, i);
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);
1605
1645
  }
1606
- Wn.delete(f), c !== r && c.parentNode?.removeChild(c);
1646
+ er.delete(f), s !== r && s.parentNode?.removeChild(s);
1607
1647
  };
1608
1648
  });
1609
- return lr.set(u, d), u;
1649
+ return xr.set(u, d), u;
1610
1650
  }
1611
- var lr = /* @__PURE__ */ new WeakMap();
1612
- function ur(e, t) {
1613
- let n = lr.get(e);
1614
- return n ? (lr.delete(e), n(t)) : Promise.resolve();
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();
1615
1655
  }
1616
1656
  //#endregion
1617
1657
  //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/blocks/branches.js
1618
- var dr = class {
1658
+ var Cr = class {
1619
1659
  anchor;
1620
1660
  #e = /* @__PURE__ */ new Map();
1621
1661
  #t = /* @__PURE__ */ new Map();
@@ -1628,10 +1668,10 @@ var dr = class {
1628
1668
  #a = (e) => {
1629
1669
  if (this.#e.has(e)) {
1630
1670
  var t = this.#e.get(e), n = this.#t.get(t);
1631
- if (n) xn(n), this.#r.delete(t);
1671
+ if (n) kn(n), this.#r.delete(t);
1632
1672
  else {
1633
1673
  var r = this.#n.get(t);
1634
- r && (xn(r.effect), this.#t.set(t, r.effect), this.#n.delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);
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);
1635
1675
  }
1636
1676
  for (let [t, n] of this.#e) {
1637
1677
  if (this.#e.delete(t), t === e) break;
@@ -1643,14 +1683,14 @@ var dr = class {
1643
1683
  let i = () => {
1644
1684
  if (Array.from(this.#e.values()).includes(e)) {
1645
1685
  var t = document.createDocumentFragment();
1646
- Cn(r, t), t.append(qt()), this.#n.set(e, {
1686
+ jn(r, t), t.append(Qt()), this.#n.set(e, {
1647
1687
  effect: r,
1648
1688
  fragment: t
1649
1689
  });
1650
1690
  } else z(r);
1651
1691
  this.#r.delete(e), this.#t.delete(e);
1652
1692
  };
1653
- this.#i || !n ? (this.#r.add(e), yn(r, i, !1)) : i();
1693
+ this.#i || !n ? (this.#r.add(e), Dn(r, i, !1)) : i();
1654
1694
  }
1655
1695
  }
1656
1696
  };
@@ -1660,9 +1700,9 @@ var dr = class {
1660
1700
  for (let [e, n] of this.#n) t.includes(e) || (z(n.effect), this.#n.delete(e));
1661
1701
  };
1662
1702
  ensure(e, t) {
1663
- var n = D, r = Xt();
1703
+ var n = O, r = an();
1664
1704
  if (t && !this.#t.has(e) && !this.#n.has(e)) if (r) {
1665
- var i = document.createDocumentFragment(), a = qt();
1705
+ var i = document.createDocumentFragment(), a = Qt();
1666
1706
  i.append(a), this.#n.set(e, {
1667
1707
  effect: R(() => t(a)),
1668
1708
  fragment: i
@@ -1672,90 +1712,139 @@ var dr = class {
1672
1712
  for (let [t, r] of this.#t) t === e ? n.unskip_effect(r) : n.skip_effect(r);
1673
1713
  for (let [t, r] of this.#n) t === e ? n.unskip_effect(r.effect) : n.skip_effect(r.effect);
1674
1714
  n.oncommit(this.#a), n.ondiscard(this.#o);
1675
- } else b && (this.anchor = x), this.#a(n);
1715
+ } else C && (this.anchor = w), this.#a(n);
1676
1716
  }
1677
1717
  };
1678
1718
  //#endregion
1679
1719
  //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/blocks/if.js
1680
- function fr(e, t, n = !1) {
1720
+ function wr(e, t, n = !1) {
1681
1721
  var r;
1682
- b && (r = x, we());
1683
- var i = new dr(e), a = n ? ae : 0;
1722
+ C && (r = w, Te());
1723
+ var i = new Cr(e), a = n ? ie : 0;
1684
1724
  function o(e, t) {
1685
- if (b) {
1686
- var n = Oe(r);
1725
+ if (C) {
1726
+ var n = ke(r);
1687
1727
  if (e !== parseInt(n.substring(1))) {
1688
- var a = De();
1689
- S(a), i.anchor = a, Ce(!1), i.ensure(e, t), Ce(!0);
1728
+ var a = Oe();
1729
+ T(a), i.anchor = a, we(!1), i.ensure(e, t), we(!0);
1690
1730
  return;
1691
1731
  }
1692
1732
  }
1693
1733
  i.ensure(e, t);
1694
1734
  }
1695
- pn(() => {
1735
+ xn(() => {
1696
1736
  var e = !1;
1697
1737
  t((t, n = 0) => {
1698
1738
  e = !0, o(n, t);
1699
1739
  }), e || o(-1, null);
1700
1740
  }, a);
1701
1741
  }
1702
- function pr(t, i, a = !1, o = !1, s = !1, c = !1) {
1742
+ function Tr(t, n, a = !1, o = !1, s = !1, c = !1) {
1703
1743
  var l = t, u = "";
1704
1744
  if (a) {
1705
1745
  var d = t;
1706
- b && (l = S(/* @__PURE__ */ P(d)));
1746
+ C && (l = T(/* @__PURE__ */ P(d)));
1707
1747
  }
1708
- fn(() => {
1748
+ bn(() => {
1709
1749
  var t = W;
1710
- if (u === (u = i() ?? "")) {
1711
- b && we();
1750
+ if (u === (u = n() ?? "")) {
1751
+ C && Te();
1712
1752
  return;
1713
1753
  }
1714
- if (a && !b) {
1715
- t.nodes = null, d.innerHTML = u, u !== "" && $(/* @__PURE__ */ P(d), d.lastChild);
1754
+ if (a && !C) {
1755
+ t.nodes = null, d.innerHTML = u, u !== "" && sr(/* @__PURE__ */ P(d), d.lastChild);
1716
1756
  return;
1717
1757
  }
1718
- if (t.nodes !== null && (_n(t.nodes.start, t.nodes.end), t.nodes = null), u !== "") {
1719
- if (b) {
1720
- for (var c = x.data, f = we(), p = f; f !== null && (f.nodeType !== 8 || f.data !== "");) p = f, f = /* @__PURE__ */ F(f);
1721
- if (f === null) throw xe(), e;
1722
- $(x, p), l = S(f);
1758
+ if (t.nodes !== null && (Tn(t.nodes.start, t.nodes.end), t.nodes = null), u !== "") {
1759
+ 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);
1723
1763
  return;
1724
1764
  }
1725
- var m = Zt(o ? "svg" : s ? "math" : "template", o ? n : s ? r : void 0);
1765
+ var m = on(o ? "svg" : s ? "math" : "template", o ? r : s ? i : void 0);
1726
1766
  m.innerHTML = u;
1727
1767
  var h = o || s ? m : m.content;
1728
- if ($(/* @__PURE__ */ P(h), h.lastChild), o || s) for (; /* @__PURE__ */ P(h);) l.before(/* @__PURE__ */ P(h));
1768
+ if (sr(/* @__PURE__ */ P(h), h.lastChild), o || s) for (; /* @__PURE__ */ P(h);) l.before(/* @__PURE__ */ P(h));
1729
1769
  else l.before(h);
1730
1770
  }
1731
1771
  });
1732
1772
  }
1733
1773
  //#endregion
1734
1774
  //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/css.js
1735
- function mr(e, t) {
1736
- ln(() => {
1775
+ function Er(e, t) {
1776
+ _n(() => {
1737
1777
  e = W?.parent?.nodes?.start ?? e;
1738
1778
  var n = e.getRootNode(), r = n.host ? n : n.head ?? n.ownerDocument.head;
1739
1779
  if (!r.querySelector("#" + t.hash)) {
1740
- let e = Zt("style");
1780
+ let e = on("style");
1741
1781
  e.id = t.hash, e.textContent = t.code, r.appendChild(e);
1742
1782
  }
1743
1783
  });
1744
1784
  }
1745
1785
  //#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
1796
+ };
1797
+ }
1798
+ var Mr = /* @__PURE__ */ new Map();
1799
+ function Nr(e) {
1800
+ var t = e.getAttribute("is") || e.nodeName, n = Mr.get(t);
1801
+ if (n) return n;
1802
+ Mr.set(t, n = /* @__PURE__ */ new Set());
1803
+ for (var r, i = e, a = Element.prototype; a !== i;) {
1804
+ for (var o in r = f(i), r) r[o].set && o !== "innerHTML" && o !== "textContent" && o !== "innerText" && n.add(o);
1805
+ i = h(i);
1806
+ }
1807
+ return n;
1808
+ }
1809
+ //#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;
1813
+ }
1814
+ function Fr(e = qe(), t, n, r) {
1815
+ var i = E.r, a = W;
1816
+ return _n(() => {
1817
+ 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));
1821
+ });
1822
+ }), () => {
1823
+ let r = a;
1824
+ for (; r !== i && r.parent !== null && r.parent.f & 33554432;) r = r.parent;
1825
+ let o = () => {
1826
+ s && Pr(n(...s), e) && t(null, ...s);
1827
+ }, c = r.teardown;
1828
+ r.teardown = () => {
1829
+ o(), c?.();
1830
+ };
1831
+ };
1832
+ }), e;
1833
+ }
1834
+ //#endregion
1746
1835
  //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/props.js
1747
- function hr(e, t, n, r) {
1748
- var i = !0, a = (n & 8) != 0, o = (n & 16) != 0, s = r, c = !0, l = void 0, d = () => o && i ? (l ??= /* @__PURE__ */ st(r), Q(l)) : (c && (c = !1, s = o ? Vn(r) : r), s);
1836
+ 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);
1749
1838
  let f;
1750
1839
  if (a) {
1751
- var p = fe in e || me in e;
1752
- f = u(e, t)?.set ?? (p && t in e ? (n) => e[t] = n : void 0);
1840
+ var p = de in e || pe in e;
1841
+ f = d(e, t)?.set ?? (p && t in e ? (n) => e[t] = n : void 0);
1753
1842
  }
1754
1843
  var m, h = !1;
1755
- a ? [m, h] = tt(() => e[t]) : m = e[t], m === void 0 && r !== void 0 && (m = d(), f && (i && Re(t), f(m)));
1844
+ a ? [m, h] = it(() => e[t]) : m = e[t], m === void 0 && r !== void 0 && (m = u(), f && (i && ze(t), f(m)));
1756
1845
  var g = i ? () => {
1757
1846
  var n = e[t];
1758
- return n === void 0 ? d() : (c = !0, n);
1847
+ return n === void 0 ? u() : (c = !0, n);
1759
1848
  } : () => {
1760
1849
  var n = e[t];
1761
1850
  return n !== void 0 && (s = void 0), n === void 0 ? s : n;
@@ -1767,28 +1856,28 @@ function hr(e, t, n, r) {
1767
1856
  return arguments.length > 0 ? ((!i || !t || ee || h) && f(t ? g() : e), e) : g();
1768
1857
  });
1769
1858
  }
1770
- var _ = !1, v = (n & 1 ? st : ut)(() => (_ = !1, g()));
1771
- a && Q(v);
1859
+ var _ = !1, v = (n & 1 ? ut : mt)(() => (_ = !1, g()));
1860
+ a && X(v);
1772
1861
  var y = W;
1773
1862
  return (function(e, t) {
1774
1863
  if (arguments.length > 0) {
1775
- let n = t ? Q(v) : i && a ? Vt(e) : e;
1864
+ let n = t ? X(v) : i && a ? Kt(e) : e;
1776
1865
  return N(v, n), _ = !0, s !== void 0 && (s = n), e;
1777
1866
  }
1778
- return B && _ || y.f & 16384 ? v.v : Q(v);
1867
+ return B && _ || y.f & 16384 ? v.v : X(v);
1779
1868
  });
1780
1869
  }
1781
1870
  //#endregion
1782
1871
  //#region ../../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/legacy/legacy-client.js
1783
- function gr(e) {
1784
- return new _r(e);
1872
+ function Lr(e) {
1873
+ return new Rr(e);
1785
1874
  }
1786
- var _r = class {
1875
+ var Rr = class {
1787
1876
  #e;
1788
1877
  #t;
1789
1878
  constructor(e) {
1790
1879
  var t = /* @__PURE__ */ new Map(), n = (e, n) => {
1791
- var r = /* @__PURE__ */ It(n, !1, !1);
1880
+ var r = /* @__PURE__ */ Vt(n, !1, !1);
1792
1881
  return t.set(e, r), r;
1793
1882
  };
1794
1883
  let r = new Proxy({
@@ -1796,16 +1885,16 @@ var _r = class {
1796
1885
  $$events: {}
1797
1886
  }, {
1798
1887
  get(e, r) {
1799
- return Q(t.get(r) ?? n(r, Reflect.get(e, r)));
1888
+ return X(t.get(r) ?? n(r, Reflect.get(e, r)));
1800
1889
  },
1801
1890
  has(e, r) {
1802
- return r === me ? !0 : (Q(t.get(r) ?? n(r, Reflect.get(e, r))), Reflect.has(e, r));
1891
+ return r === pe ? !0 : (X(t.get(r) ?? n(r, Reflect.get(e, r))), Reflect.has(e, r));
1803
1892
  },
1804
1893
  set(e, r, i) {
1805
1894
  return N(t.get(r) ?? n(r, i), i), Reflect.set(e, r, i);
1806
1895
  }
1807
1896
  });
1808
- this.#t = (e.hydrate ? or : ar)(e.component, {
1897
+ this.#t = (e.hydrate ? vr : _r)(e.component, {
1809
1898
  target: e.target,
1810
1899
  anchor: e.anchor,
1811
1900
  props: r,
@@ -1813,8 +1902,8 @@ var _r = class {
1813
1902
  intro: e.intro ?? !1,
1814
1903
  recover: e.recover,
1815
1904
  transformError: e.transformError
1816
- }), (!e?.props?.$$host || e.sync === !1) && Tt(), this.#e = r.$$events;
1817
- for (let e of Object.keys(this.#t)) e === "$set" || e === "$destroy" || e === "$on" || l(this, e, {
1905
+ }), (!e?.props?.$$host || e.sync === !1) && At(), this.#e = r.$$events;
1906
+ for (let e of Object.keys(this.#t)) e === "$set" || e === "$destroy" || e === "$on" || u(this, e, {
1818
1907
  get() {
1819
1908
  return this.#t[e];
1820
1909
  },
@@ -1826,7 +1915,7 @@ var _r = class {
1826
1915
  this.#t.$set = (e) => {
1827
1916
  Object.assign(r, e);
1828
1917
  }, this.#t.$destroy = () => {
1829
- ur(this.#t);
1918
+ Sr(this.#t);
1830
1919
  };
1831
1920
  }
1832
1921
  $set(e) {
@@ -1842,8 +1931,8 @@ var _r = class {
1842
1931
  $destroy() {
1843
1932
  this.#t.$destroy();
1844
1933
  }
1845
- }, vr;
1846
- typeof HTMLElement == "function" && (vr = class extends HTMLElement {
1934
+ }, zr;
1935
+ typeof HTMLElement == "function" && (zr = class extends HTMLElement {
1847
1936
  $$ctor;
1848
1937
  $$s;
1849
1938
  $$c;
@@ -1876,18 +1965,18 @@ typeof HTMLElement == "function" && (vr = class extends HTMLElement {
1876
1965
  if (await Promise.resolve(), !this.$$cn || this.$$c) return;
1877
1966
  function e(e) {
1878
1967
  return (t) => {
1879
- let n = Zt("slot");
1880
- e !== "default" && (n.name = e), Qn(t, n);
1968
+ let n = on("slot");
1969
+ e !== "default" && (n.name = e), lr(t, n);
1881
1970
  };
1882
1971
  }
1883
- let t = {}, n = br(this);
1972
+ let t = {}, n = Vr(this);
1884
1973
  for (let r of this.$$s) r in n && (r === "default" && !this.$$d.children ? (this.$$d.children = e(r), t.default = !0) : t[r] = e(r));
1885
1974
  for (let e of this.attributes) {
1886
1975
  let t = this.$$g_p(e.name);
1887
- t in this.$$d || (this.$$d[t] = yr(t, e.value, this.$$p_d, "toProp"));
1976
+ t in this.$$d || (this.$$d[t] = Br(t, e.value, this.$$p_d, "toProp"));
1888
1977
  }
1889
1978
  for (let e in this.$$p_d) !(e in this.$$d) && this[e] !== void 0 && (this.$$d[e] = this[e], delete this[e]);
1890
- this.$$c = gr({
1979
+ this.$$c = Lr({
1891
1980
  component: this.$$ctor,
1892
1981
  target: this.$$shadowRoot || this,
1893
1982
  props: {
@@ -1895,13 +1984,13 @@ typeof HTMLElement == "function" && (vr = class extends HTMLElement {
1895
1984
  $$slots: t,
1896
1985
  $$host: this
1897
1986
  }
1898
- }), this.$$me = sn(() => {
1899
- dn(() => {
1987
+ }), this.$$me = hn(() => {
1988
+ yn(() => {
1900
1989
  this.$$r = !0;
1901
- for (let e of c(this.$$c)) {
1990
+ for (let e of l(this.$$c)) {
1902
1991
  if (!this.$$p_d[e]?.reflect) continue;
1903
1992
  this.$$d[e] = this.$$c[e];
1904
- let t = yr(e, this.$$d[e], this.$$p_d, "toAttribute");
1993
+ let t = Br(e, this.$$d[e], this.$$p_d, "toAttribute");
1905
1994
  t == null ? this.removeAttribute(this.$$p_d[e].attribute || e) : this.setAttribute(this.$$p_d[e].attribute || e, t);
1906
1995
  }
1907
1996
  this.$$r = !1;
@@ -1915,7 +2004,7 @@ typeof HTMLElement == "function" && (vr = class extends HTMLElement {
1915
2004
  }
1916
2005
  }
1917
2006
  attributeChangedCallback(e, t, n) {
1918
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = yr(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2007
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = Br(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
1919
2008
  }
1920
2009
  disconnectedCallback() {
1921
2010
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -1923,10 +2012,10 @@ typeof HTMLElement == "function" && (vr = class extends HTMLElement {
1923
2012
  });
1924
2013
  }
1925
2014
  $$g_p(e) {
1926
- return c(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
2015
+ return l(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
1927
2016
  }
1928
2017
  });
1929
- function yr(e, t, n, r) {
2018
+ function Br(e, t, n, r) {
1930
2019
  let i = n[e]?.type;
1931
2020
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e]) return t;
1932
2021
  if (r === "toAttribute") switch (i) {
@@ -1944,78 +2033,1772 @@ function yr(e, t, n, r) {
1944
2033
  default: return t;
1945
2034
  }
1946
2035
  }
1947
- function br(e) {
2036
+ function Vr(e) {
1948
2037
  let t = {};
1949
2038
  return e.childNodes.forEach((e) => {
1950
2039
  t[e.slot || "default"] = !0;
1951
2040
  }), t;
1952
2041
  }
1953
- function xr(e, t, n, r, i, a) {
1954
- let o = class extends vr {
2042
+ function Hr(e, t, n, r, i, a) {
2043
+ let o = class extends zr {
1955
2044
  constructor() {
1956
2045
  super(e, n, i), this.$$p_d = t;
1957
2046
  }
1958
2047
  static get observedAttributes() {
1959
- return c(t).map((e) => (t[e].attribute || e).toLowerCase());
2048
+ return l(t).map((e) => (t[e].attribute || e).toLowerCase());
1960
2049
  }
1961
2050
  };
1962
- return c(t).forEach((e) => {
1963
- l(o.prototype, e, {
2051
+ return l(t).forEach((e) => {
2052
+ u(o.prototype, e, {
1964
2053
  get() {
1965
2054
  return this.$$c && e in this.$$c ? this.$$c[e] : this.$$d[e];
1966
2055
  },
1967
2056
  set(n) {
1968
- n = yr(e, n, t), this.$$d[e] = n;
2057
+ n = Br(e, n, t), this.$$d[e] = n;
1969
2058
  var r = this.$$c;
1970
- r && (u(r, e)?.get ? r[e] = n : r.$set({ [e]: n }));
2059
+ r && (d(r, e)?.get ? r[e] = n : r.$set({ [e]: n }));
1971
2060
  }
1972
2061
  });
1973
2062
  }), r.forEach((e) => {
1974
- l(o.prototype, e, { get() {
2063
+ u(o.prototype, e, { get() {
1975
2064
  return this.$$c?.[e];
1976
2065
  } });
1977
2066
  }), a && (o = a(o)), e.element = o, o;
1978
2067
  }
1979
2068
  //#endregion
2069
+ //#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) => {
2073
+ 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}"
2086
+ }
2087
+ },
2088
+ options: {
2089
+ 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: () => {}
2098
+ }
2099
+ };
2100
+ r && s.tex && (s.tex.inlineMath = [["$", "$"], ["\\(", "\\)"]], s.tex.processEscapes = !0), a || (s.chtml = { fontURL: "" }), window.MathJax = s;
2101
+ 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);
2115
+ }
2116
+ }
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.");
2121
+ return;
2122
+ }
2123
+ await window.MathJax.typesetPromise([t]), Gr();
2124
+ };
2125
+ }
2126
+ var qr = null;
2127
+ function Jr() {
2128
+ return qr ||= Kr({
2129
+ accessibility: !0,
2130
+ useSingleDollar: !0
2131
+ }), qr;
2132
+ }
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;
2137
+ }
2138
+ var Xr = async (e) => {
2139
+ if (typeof window > "u") return;
2140
+ let t = typeof e == "string", n;
2141
+ 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 = [
2145
+ "nbsp iexcl cent pound curren yen brvbar sect uml copy ordf laquo not shy reg macr",
2146
+ "deg plusmn sup2 sup3 acute micro para middot cedil sup1 ordm raquo frac14 frac12 frac34 iquest",
2147
+ "Agrave Aacute Acirc Atilde Auml Aring AElig Ccedil Egrave Eacute Ecirc Euml Igrave Iacute Icirc Iuml",
2148
+ "ETH Ntilde Ograve Oacute Ocirc Otilde Ouml times Oslash Ugrave Uacute Ucirc Uuml Yacute THORN szlig",
2149
+ "agrave aacute acirc atilde auml aring aelig ccedil egrave eacute ecirc euml igrave iacute icirc iuml",
2150
+ "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({
2152
+ quot: 34,
2153
+ amp: 38,
2154
+ apos: 39,
2155
+ lt: 60,
2156
+ gt: 62,
2157
+ ensp: 8194,
2158
+ emsp: 8195,
2159
+ thinsp: 8201,
2160
+ ndash: 8211,
2161
+ mdash: 8212,
2162
+ lsquo: 8216,
2163
+ rsquo: 8217,
2164
+ sbquo: 8218,
2165
+ ldquo: 8220,
2166
+ rdquo: 8221,
2167
+ bdquo: 8222,
2168
+ bull: 8226,
2169
+ hellip: 8230,
2170
+ prime: 8242,
2171
+ Prime: 8243,
2172
+ euro: 8364,
2173
+ trade: 8482,
2174
+ minus: 8722,
2175
+ radic: 8730,
2176
+ infin: 8734,
2177
+ asymp: 8776,
2178
+ ne: 8800,
2179
+ le: 8804,
2180
+ ge: 8805
2181
+ }));
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) => {
2185
+ if (t[0] === "#") {
2186
+ 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
+ return String.fromCodePoint(r ? n : 65533);
2188
+ }
2189
+ let n = $r.get(t);
2190
+ 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 = {
2192
+ translation: {
2193
+ categorize: {
2194
+ limitMaxChoicesPerCategory: "You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.",
2195
+ maxChoicesPerCategoryRestriction: "To change this value to {{maxChoicesPerCategory}}, each category must have {{maxChoicesPerCategory}} or fewer answer choice[s]."
2196
+ },
2197
+ ebsr: { part: "Part {{index}}" },
2198
+ numberLine: {
2199
+ addElementLimit_one: "You can only add {{count}} element",
2200
+ addElementLimit_other: "You can only add {{count}} elements",
2201
+ clearAll: "Clear all"
2202
+ },
2203
+ imageClozeAssociation: {
2204
+ reachedLimit_one: "You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.",
2205
+ reachedLimit_other: "Full"
2206
+ },
2207
+ drawingResponse: {
2208
+ fillColor: "Fill color",
2209
+ outlineColor: "Outline color",
2210
+ noFill: "No fill",
2211
+ lightblue: "Light blue",
2212
+ lightyellow: "Light yellow",
2213
+ red: "Red",
2214
+ orange: "Orange",
2215
+ yellow: "Yellow",
2216
+ violet: "Violet",
2217
+ blue: "Blue",
2218
+ green: "Green",
2219
+ white: "White",
2220
+ black: "Black",
2221
+ onDoubleClick: "Double click to edit this text. Press Enter to submit."
2222
+ },
2223
+ charting: {
2224
+ addCategory: "Add category",
2225
+ actions: "Actions",
2226
+ add: "Add",
2227
+ delete: "Delete",
2228
+ newLabel: "New label",
2229
+ reachedLimit_other: "There can't be more than {{count}} categories.",
2230
+ keyLegend: {
2231
+ incorrectAnswer: "Student incorrect answer",
2232
+ correctAnswer: "Student correct answer",
2233
+ correctKeyAnswer: "Answer key correct"
2234
+ }
2235
+ },
2236
+ graphing: {
2237
+ point: "Point",
2238
+ circle: "Circle",
2239
+ line: "Line",
2240
+ parabola: "Parabola",
2241
+ absolute: "Absolute Value",
2242
+ exponential: "Exponential",
2243
+ polygon: "Polygon",
2244
+ ray: "Ray",
2245
+ segment: "Segment",
2246
+ sine: "Sine",
2247
+ vector: "Vector",
2248
+ label: "Label",
2249
+ redo: "Redo",
2250
+ reset: "Reset"
2251
+ },
2252
+ mathInline: { primaryCorrectWithAlternates: "Note: The answer shown above is the primary correct answer specified by the author for this item, but other answers may also be recognized as correct." },
2253
+ mcPopulatedBlank: {
2254
+ answerChoices: "Answer choices",
2255
+ blankLabel: "blank",
2256
+ emptyBlank: "(blank)",
2257
+ blankPreSelectionHint: "The answer you choose will appear on the blank line above.",
2258
+ correctAnswerSelected: "Correct answer selected",
2259
+ incorrectAnswerSelected: "Incorrect answer selected",
2260
+ selectedAnswerImage: "Selected answer image",
2261
+ choiceImage: "Choice {{id}}",
2262
+ clickToEnableAutoplay: "Click to enable audio autoplay",
2263
+ audioResourceUnavailable: "Audio is enabled but no playable audio URL is configured.",
2264
+ listen: "Listen",
2265
+ listenSilentAlt: "Repeat instructions",
2266
+ listenPlayingAlt: "Instructions are playing",
2267
+ printAudio: "Audio:",
2268
+ printTranscript: "Transcript:",
2269
+ printKey: "(key)"
2270
+ },
2271
+ multipleChoice: {
2272
+ minSelections: "Select at least {{minSelections}}.",
2273
+ maxSelections_one: "Only {{maxSelections}} answer is allowed.",
2274
+ maxSelections_other: "Only {{maxSelections}} answers are allowed.",
2275
+ minmaxSelections_equal: "Select {{minSelections}}.",
2276
+ minmaxSelections_range: "Select between {{minSelections}} and {{maxSelections}}."
2277
+ },
2278
+ selectText: {
2279
+ correctAnswerSelected: "Correct",
2280
+ correctAnswerNotSelected: "Correct Answer Not Selected",
2281
+ incorrectSelection: "Incorrect Selection",
2282
+ key: "Key"
2283
+ },
2284
+ simpleCloze: {
2285
+ correctAnswerShown: "Correct answer",
2286
+ correct: "Correct",
2287
+ incorrect: "Incorrect",
2288
+ unanswered: "No answer",
2289
+ placeholder: "Enter your answer...",
2290
+ answerInput: "Your answer",
2291
+ printCorrectAnswer: "Correct answer:",
2292
+ printAnswerBlank: "Answer blank"
2293
+ },
2294
+ vennClassification: {
2295
+ tray: "Tiles to classify",
2296
+ unknownTarget: "unknown",
2297
+ cancelled: "Cancelled",
2298
+ returnedToTray: "{{name}} returned to tray",
2299
+ placedIn: "{{name}} placed in {{target}}",
2300
+ pickedUp: "Picked up {{name}}",
2301
+ pickedUpWithKeyboard: "Picked up {{name}}, drop target: {{target}}. Use arrow keys to choose a drop target, Enter to drop, Escape to cancel.",
2302
+ dropTarget: "Drop target: {{target}}",
2303
+ unsupportedCircles_one: "This diagram cannot be shown: it has {{count}} circle, and only {{supported}} are supported.",
2304
+ unsupportedCircles_other: "This diagram cannot be shown: it has {{count}} circles, and only {{supported}} are supported.",
2305
+ setNumber: "Set {{number}}",
2306
+ regionOnly: "{{set}} only",
2307
+ regionNeither: "Neither {{first}} nor {{second}}",
2308
+ regionNoneOf: "None of {{sets}}",
2309
+ regionAndSeparator: " and ",
2310
+ tileFallbackName: "Tile",
2311
+ tileNotPlaced: "not placed",
2312
+ tileInRegion: "in {{region}}",
2313
+ tileCorrect: "correct",
2314
+ tileIncorrect: "incorrect"
2315
+ }
2316
+ },
2317
+ common: {
2318
+ undo: "Undo",
2319
+ clearAll: "Clear all",
2320
+ correct: "Correct",
2321
+ incorrect: "Incorrect",
2322
+ showCorrectAnswer: "Show correct answer",
2323
+ hideCorrectAnswer: "Hide correct answer",
2324
+ showTeacherInstructions: "Show Teacher Instructions",
2325
+ hideTeacherInstructions: "Hide Teacher Instructions",
2326
+ commonCorrectAnswerWithAlternates: "Note: The answer shown above is the most common correct answer for this item. One or more additional correct answers are also defined, and will also be recognized as correct.",
2327
+ warning: "Warning",
2328
+ showNote: "Show Note",
2329
+ hideNote: "Hide Note",
2330
+ cancel: "Cancel"
2331
+ }
2332
+ }, oi = {
2333
+ translation: {
2334
+ categorize: {
2335
+ limitMaxChoicesPerCategory: "Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.",
2336
+ maxChoicesPerCategoryRestriction: "Para cambiar este valor a {{maxChoicesPerCategory}}, cada categoría debe tener {{maxChoicesPerCategory}} o menos opciones de respuesta"
2337
+ },
2338
+ ebsr: { part: "Parte {{index}}" },
2339
+ numberLine: {
2340
+ addElementLimit_one: "Solo puedes agregar {{count}} elemento",
2341
+ addElementLimit_other: "Solo puedes agregar {{count}} elementos",
2342
+ clearAll: "Borrar todo"
2343
+ },
2344
+ imageClozeAssociation: {
2345
+ reachedLimit_one: "Has alcanzado el límite de {{count}} respuesta por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.",
2346
+ reachedLimit_other: "Lleno"
2347
+ },
2348
+ drawingResponse: {
2349
+ fillColor: "Color de relleno",
2350
+ outlineColor: "Color del contorno",
2351
+ noFill: "Sin relleno",
2352
+ lightblue: "Azul claro",
2353
+ lightyellow: "Amarillo claro",
2354
+ red: "Rojo",
2355
+ orange: "Naranja",
2356
+ yellow: "Amarillo",
2357
+ violet: "Violeta",
2358
+ blue: "Azul",
2359
+ green: "Verde",
2360
+ white: "Blanco",
2361
+ black: "Negro",
2362
+ onDoubleClick: "Haz doble clic para revisar este texto. Presiona el botón de ingreso para enviar"
2363
+ },
2364
+ charting: {
2365
+ addCategory: "Añadir categoría",
2366
+ actions: "Acciones",
2367
+ add: "Añadir",
2368
+ delete: "Eliminar",
2369
+ newLabel: "Nueva etiqueta",
2370
+ reachedLimit_other: "No puede haber más de {{count}} categorías.",
2371
+ keyLegend: {
2372
+ incorrectAnswer: "Respuesta incorrecta del estudiante",
2373
+ correctAnswer: "Respuesta correcta del estudiante",
2374
+ correctKeyAnswer: "Clave de respuesta correcta"
2375
+ }
2376
+ },
2377
+ graphing: {
2378
+ point: "Punto",
2379
+ circle: "Circulo",
2380
+ line: "Línea",
2381
+ parabola: "Parábola",
2382
+ absolute: "Valor absoluto",
2383
+ exponential: "Exponencial",
2384
+ polygon: "Polígono",
2385
+ ray: "Semirrecta",
2386
+ segment: "Segmento ",
2387
+ sine: "Seno",
2388
+ vector: "Vector",
2389
+ label: "Etiqueta",
2390
+ redo: "Rehacer",
2391
+ reset: "Reiniciar"
2392
+ },
2393
+ mathInline: { primaryCorrectWithAlternates: "Nota: La respuesta que se muestra arriba es la respuesta correcta principal especificada por el autor para esta pregunta, pero también se pueden reconocer otras respuestas como correctas." },
2394
+ mcPopulatedBlank: {
2395
+ answerChoices: "Opciones de respuesta",
2396
+ blankLabel: "espacio en blanco",
2397
+ emptyBlank: "(en blanco)",
2398
+ blankPreSelectionHint: "La respuesta que elijas aparecerá en la línea en blanco de arriba.",
2399
+ correctAnswerSelected: "Respuesta correcta seleccionada",
2400
+ incorrectAnswerSelected: "Respuesta incorrecta seleccionada",
2401
+ selectedAnswerImage: "Imagen de la respuesta seleccionada",
2402
+ choiceImage: "Opción {{id}}",
2403
+ clickToEnableAutoplay: "Haz clic para activar la reproducción automática del audio",
2404
+ audioResourceUnavailable: "El audio está activado, pero no hay una URL de audio reproducible configurada.",
2405
+ listen: "Escuchar",
2406
+ listenSilentAlt: "Escuchar. Repetir las instrucciones.",
2407
+ listenPlayingAlt: "Escuchar. Estas son las instrucciones.",
2408
+ printAudio: "Audio:",
2409
+ printTranscript: "Transcripción:",
2410
+ printKey: "(clave)"
2411
+ },
2412
+ multipleChoice: {
2413
+ minSelections: "Seleccione al menos {{minSelections}}.",
2414
+ maxSelections_one: "Sólo se permite {{maxSelections}} respuesta.",
2415
+ maxSelections_other: "Sólo se permiten {{maxSelections}} respuestas.",
2416
+ minmaxSelections_equal: "Seleccione {{minSelections}}.",
2417
+ minmaxSelections_range: "Seleccione entre {{minSelections}} y {{maxSelections}}."
2418
+ },
2419
+ selectText: {
2420
+ correctAnswerSelected: "Respuesta Correcta",
2421
+ correctAnswerNotSelected: "Respuesta Correcta No Seleccionada",
2422
+ incorrectSelection: "Selección Incorrecta",
2423
+ key: "Clave"
2424
+ },
2425
+ simpleCloze: {
2426
+ correctAnswerShown: "Respuesta correcta",
2427
+ correct: "Correcto",
2428
+ incorrect: "Incorrecto",
2429
+ unanswered: "Sin respuesta",
2430
+ placeholder: "Escribe tu respuesta...",
2431
+ answerInput: "Tu respuesta",
2432
+ printCorrectAnswer: "Respuesta correcta:",
2433
+ printAnswerBlank: "Espacio para la respuesta"
2434
+ },
2435
+ vennClassification: {
2436
+ tray: "Fichas para clasificar",
2437
+ unknownTarget: "desconocido",
2438
+ cancelled: "Cancelado",
2439
+ returnedToTray: "Se devolvió {{name}} a la bandeja",
2440
+ placedIn: "Se colocó {{name}} en {{target}}",
2441
+ pickedUp: "Se tomó {{name}}",
2442
+ pickedUpWithKeyboard: "Se tomó {{name}}, destino: {{target}}. Usa las flechas para elegir un destino, Enter para soltar y Escape para cancelar.",
2443
+ dropTarget: "Destino: {{target}}",
2444
+ unsupportedCircles_one: "No se puede mostrar este diagrama: tiene {{count}} círculo, y solo se admiten {{supported}}.",
2445
+ unsupportedCircles_other: "No se puede mostrar este diagrama: tiene {{count}} círculos, y solo se admiten {{supported}}.",
2446
+ setNumber: "Conjunto {{number}}",
2447
+ regionOnly: "Solo {{set}}",
2448
+ regionNeither: "Ni {{first}} ni {{second}}",
2449
+ regionNoneOf: "Ninguno de {{sets}}",
2450
+ regionAndSeparator: " y ",
2451
+ tileFallbackName: "Ficha",
2452
+ tileNotPlaced: "sin colocar",
2453
+ tileInRegion: "en {{region}}",
2454
+ tileCorrect: "correcta",
2455
+ tileIncorrect: "incorrecta"
2456
+ }
2457
+ },
2458
+ common: {
2459
+ undo: "Deshacer",
2460
+ clearAll: "Borrar todo",
2461
+ correct: "Correcto",
2462
+ incorrect: "Incorrecto",
2463
+ showCorrectAnswer: "Mostrar respuesta correcta",
2464
+ hideCorrectAnswer: "Ocultar respuesta correcta",
2465
+ showTeacherInstructions: "Mostrar instrucciones para el maestro",
2466
+ hideTeacherInstructions: "Ocultar instrucciones para el maestro",
2467
+ commonCorrectAnswerWithAlternates: "Nota: La respuesta que se muestra arriba es la respuesta correcta más común para esta pregunta. También se definen una o más respuestas correctas adicionales, y también se reconocerán como correctas.",
2468
+ warning: "Advertencia",
2469
+ showNote: "Mostrar Nota",
2470
+ hideNote: "Ocultar Nota",
2471
+ cancel: "Cancelar"
2472
+ }
2473
+ }, Z = (e) => typeof e == "string", si = () => {
2474
+ let e, t, n = new Promise((n, r) => {
2475
+ e = n, t = r;
2476
+ });
2477
+ return n.resolve = e, n.reject = t, n;
2478
+ }, ci = (e) => e == null ? "" : "" + e, li = (e, t, n) => {
2479
+ e.forEach((e) => {
2480
+ t[e] && (n[e] = t[e]);
2481
+ });
2482
+ }, ui = /###/g, di = (e) => e && e.indexOf("###") > -1 ? e.replace(ui, ".") : e, fi = (e) => !e || Z(e), pi = (e, t, n) => {
2483
+ let r = Z(t) ? t.split(".") : t, i = 0;
2484
+ for (; i < r.length - 1;) {
2485
+ if (fi(e)) return {};
2486
+ let t = di(r[i]);
2487
+ !e[t] && n && (e[t] = new n()), e = Object.prototype.hasOwnProperty.call(e, t) ? e[t] : {}, ++i;
2488
+ }
2489
+ return fi(e) ? {} : {
2490
+ obj: e,
2491
+ k: di(r[i])
2492
+ };
2493
+ }, mi = (e, t, n) => {
2494
+ let { obj: r, k: i } = pi(e, t, Object);
2495
+ if (r !== void 0 || t.length === 1) {
2496
+ r[i] = n;
2497
+ return;
2498
+ }
2499
+ let a = t[t.length - 1], o = t.slice(0, t.length - 1), s = pi(e, o, Object);
2500
+ 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);
2501
+ s.obj[`${s.k}.${a}`] = n;
2502
+ }, hi = (e, t, n, r) => {
2503
+ let { obj: i, k: a } = pi(e, t, Object);
2504
+ i[a] = i[a] || [], i[a].push(n);
2505
+ }, gi = (e, t) => {
2506
+ let { obj: n, k: r } = pi(e, t);
2507
+ if (n && Object.prototype.hasOwnProperty.call(n, r)) return n[r];
2508
+ }, _i = (e, t, n) => {
2509
+ let r = gi(e, n);
2510
+ return r === void 0 ? gi(t, n) : r;
2511
+ }, vi = (e, t, n) => {
2512
+ 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]);
2513
+ return e;
2514
+ }, yi = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), bi = {
2515
+ "&": "&amp;",
2516
+ "<": "&lt;",
2517
+ ">": "&gt;",
2518
+ "\"": "&quot;",
2519
+ "'": "&#39;",
2520
+ "/": "&#x2F;"
2521
+ }, xi = (e) => Z(e) ? e.replace(/[&<>"'\/]/g, (e) => bi[e]) : e, Si = class {
2522
+ constructor(e) {
2523
+ this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
2524
+ }
2525
+ getRegExp(e) {
2526
+ let t = this.regExpMap.get(e);
2527
+ if (t !== void 0) return t;
2528
+ let n = new RegExp(e);
2529
+ return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, n), this.regExpQueue.push(e), n;
2530
+ }
2531
+ }, Ci = [
2532
+ " ",
2533
+ ",",
2534
+ "?",
2535
+ "!",
2536
+ ";"
2537
+ ], wi = new Si(20), Ti = (e, t, n) => {
2538
+ t ||= "", n ||= "";
2539
+ let r = Ci.filter((e) => t.indexOf(e) < 0 && n.indexOf(e) < 0);
2540
+ if (r.length === 0) return !0;
2541
+ let i = wi.getRegExp(`(${r.map((e) => e === "?" ? "\\?" : e).join("|")})`), a = !i.test(e);
2542
+ if (!a) {
2543
+ let t = e.indexOf(n);
2544
+ t > 0 && !i.test(e.substring(0, t)) && (a = !0);
2545
+ }
2546
+ return a;
2547
+ }, Ei = (e, t, n = ".") => {
2548
+ if (!e) return;
2549
+ if (e[t]) return Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0;
2550
+ let r = t.split(n), i = e;
2551
+ for (let e = 0; e < r.length;) {
2552
+ if (!i || typeof i != "object") return;
2553
+ let t, a = "";
2554
+ for (let o = e; o < r.length; ++o) if (o !== e && (a += n), a += r[o], t = i[a], t !== void 0) {
2555
+ if ([
2556
+ "string",
2557
+ "number",
2558
+ "boolean"
2559
+ ].indexOf(typeof t) > -1 && o < r.length - 1) continue;
2560
+ e += o - e + 1;
2561
+ break;
2562
+ }
2563
+ i = t;
2564
+ }
2565
+ return i;
2566
+ }, Di = (e) => e?.replace(/_/g, "-"), Oi = {
2567
+ type: "logger",
2568
+ log(e) {
2569
+ this.output("log", e);
2570
+ },
2571
+ warn(e) {
2572
+ this.output("warn", e);
2573
+ },
2574
+ error(e) {
2575
+ this.output("error", e);
2576
+ },
2577
+ output(e, t) {
2578
+ console?.[e]?.apply?.(console, t);
2579
+ }
2580
+ }, Q = new class e {
2581
+ constructor(e, t = {}) {
2582
+ this.init(e, t);
2583
+ }
2584
+ init(e, t = {}) {
2585
+ this.prefix = t.prefix || "i18next:", this.logger = e || Oi, this.options = t, this.debug = t.debug;
2586
+ }
2587
+ log(...e) {
2588
+ return this.forward(e, "log", "", !0);
2589
+ }
2590
+ warn(...e) {
2591
+ return this.forward(e, "warn", "", !0);
2592
+ }
2593
+ error(...e) {
2594
+ return this.forward(e, "error", "");
2595
+ }
2596
+ deprecate(...e) {
2597
+ return this.forward(e, "warn", "WARNING DEPRECATED: ", !0);
2598
+ }
2599
+ forward(e, t, n, r) {
2600
+ return r && !this.debug ? null : (Z(e[0]) && (e[0] = `${n}${this.prefix} ${e[0]}`), this.logger[t](e));
2601
+ }
2602
+ create(t) {
2603
+ return new e(this.logger, {
2604
+ prefix: `${this.prefix}:${t}:`,
2605
+ ...this.options
2606
+ });
2607
+ }
2608
+ clone(t) {
2609
+ return t ||= this.options, t.prefix = t.prefix || this.prefix, new e(this.logger, t);
2610
+ }
2611
+ }(), ki = class {
2612
+ constructor() {
2613
+ this.observers = {};
2614
+ }
2615
+ on(e, t) {
2616
+ return e.split(" ").forEach((e) => {
2617
+ this.observers[e] || (this.observers[e] = /* @__PURE__ */ new Map());
2618
+ let n = this.observers[e].get(t) || 0;
2619
+ this.observers[e].set(t, n + 1);
2620
+ }), this;
2621
+ }
2622
+ off(e, t) {
2623
+ if (this.observers[e]) {
2624
+ if (!t) {
2625
+ delete this.observers[e];
2626
+ return;
2627
+ }
2628
+ this.observers[e].delete(t);
2629
+ }
2630
+ }
2631
+ emit(e, ...t) {
2632
+ this.observers[e] && Array.from(this.observers[e].entries()).forEach(([e, n]) => {
2633
+ for (let r = 0; r < n; r++) e(...t);
2634
+ }), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach(([n, r]) => {
2635
+ for (let i = 0; i < r; i++) n.apply(n, [e, ...t]);
2636
+ });
2637
+ }
2638
+ }, Ai = class extends ki {
2639
+ constructor(e, t = {
2640
+ ns: ["translation"],
2641
+ defaultNS: "translation"
2642
+ }) {
2643
+ super(), this.data = e || {}, this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.options.ignoreJSONStructure === void 0 && (this.options.ignoreJSONStructure = !0);
2644
+ }
2645
+ addNamespaces(e) {
2646
+ this.options.ns.indexOf(e) < 0 && this.options.ns.push(e);
2647
+ }
2648
+ removeNamespaces(e) {
2649
+ let t = this.options.ns.indexOf(e);
2650
+ t > -1 && this.options.ns.splice(t, 1);
2651
+ }
2652
+ getResource(e, t, n, r = {}) {
2653
+ let i = r.keySeparator === void 0 ? this.options.keySeparator : r.keySeparator, a = r.ignoreJSONStructure === void 0 ? this.options.ignoreJSONStructure : r.ignoreJSONStructure, o;
2654
+ 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)));
2655
+ let s = gi(this.data, o);
2656
+ 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);
2657
+ }
2658
+ addResource(e, t, n, r, i = { silent: !1 }) {
2659
+ let a = i.keySeparator === void 0 ? this.options.keySeparator : i.keySeparator, o = [e, t];
2660
+ 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);
2661
+ }
2662
+ addResources(e, t, n, r = { silent: !1 }) {
2663
+ for (let r in n) (Z(n[r]) || Array.isArray(n[r])) && this.addResource(e, t, r, n[r], { silent: !0 });
2664
+ r.silent || this.emit("added", e, t, n);
2665
+ }
2666
+ addResourceBundle(e, t, n, r, i, a = {
2667
+ silent: !1,
2668
+ skipCopy: !1
2669
+ }) {
2670
+ let o = [e, t];
2671
+ e.indexOf(".") > -1 && (o = e.split("."), r = n, n = t, t = o[1]), this.addNamespaces(t);
2672
+ let s = gi(this.data, o) || {};
2673
+ a.skipCopy || (n = JSON.parse(JSON.stringify(n))), r ? vi(s, n, i) : s = {
2674
+ ...s,
2675
+ ...n
2676
+ }, mi(this.data, o, s), a.silent || this.emit("added", e, t, n);
2677
+ }
2678
+ removeResourceBundle(e, t) {
2679
+ this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
2680
+ }
2681
+ hasResourceBundle(e, t) {
2682
+ return this.getResource(e, t) !== void 0;
2683
+ }
2684
+ getResourceBundle(e, t) {
2685
+ return t ||= this.options.defaultNS, this.getResource(e, t);
2686
+ }
2687
+ getDataByLanguage(e) {
2688
+ return this.data[e];
2689
+ }
2690
+ hasLanguageSomeTranslations(e) {
2691
+ let t = this.getDataByLanguage(e);
2692
+ return !!(t && Object.keys(t) || []).find((e) => t[e] && Object.keys(t[e]).length > 0);
2693
+ }
2694
+ toJSON() {
2695
+ return this.data;
2696
+ }
2697
+ }, ji = {
2698
+ processors: {},
2699
+ addPostProcessor(e) {
2700
+ this.processors[e.name] = e;
2701
+ },
2702
+ handle(e, t, n, r, i) {
2703
+ return e.forEach((e) => {
2704
+ t = this.processors[e]?.process(t, n, r, i) ?? t;
2705
+ }), t;
2706
+ }
2707
+ }, Mi = Symbol("i18next/PATH_KEY");
2708
+ function Ni() {
2709
+ let e = [], t = Object.create(null), n;
2710
+ 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;
2711
+ }
2712
+ function Pi(e, t) {
2713
+ let { [Mi]: n } = e(Ni()), r = t?.keySeparator ?? ".", i = t?.nsSeparator ?? ":";
2714
+ if (n.length > 1 && i) {
2715
+ let e = t?.ns, a = Array.isArray(e) ? e : null;
2716
+ if (a && a.length > 1 && a.slice(1).includes(n[0])) return `${n[0]}${i}${n.slice(1).join(r)}`;
2717
+ }
2718
+ return n.join(r);
2719
+ }
2720
+ var Fi = {}, Ii = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number", Li = class e extends ki {
2721
+ constructor(e, t = {}) {
2722
+ super(), li([
2723
+ "resourceStore",
2724
+ "languageUtils",
2725
+ "pluralResolver",
2726
+ "interpolator",
2727
+ "backendConnector",
2728
+ "i18nFormat",
2729
+ "utils"
2730
+ ], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = Q.create("translator");
2731
+ }
2732
+ changeLanguage(e) {
2733
+ e && (this.language = e);
2734
+ }
2735
+ exists(e, t = { interpolation: {} }) {
2736
+ let n = { ...t };
2737
+ if (e == null) return !1;
2738
+ let r = this.resolve(e, n);
2739
+ if (r?.res === void 0) return !1;
2740
+ let i = Ii(r.res);
2741
+ return !(n.returnObjects === !1 && i);
2742
+ }
2743
+ extractFromKey(e, t) {
2744
+ let n = t.nsSeparator === void 0 ? this.options.nsSeparator : t.nsSeparator;
2745
+ n === void 0 && (n = ":");
2746
+ 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);
2747
+ if (a && !o) {
2748
+ let t = e.match(this.interpolator.nestingRegexp);
2749
+ if (t && t.length > 0) return {
2750
+ key: e,
2751
+ namespaces: Z(i) ? [i] : i
2752
+ };
2753
+ let a = e.split(n);
2754
+ (n !== r || n === r && this.options.ns.indexOf(a[0]) > -1) && (i = a.shift()), e = a.join(r);
2755
+ }
2756
+ return {
2757
+ key: e,
2758
+ namespaces: Z(i) ? [i] : i
2759
+ };
2760
+ }
2761
+ translate(t, n, r) {
2762
+ let i = typeof n == "object" ? { ...n } : n;
2763
+ if (typeof i != "object" && this.options.overloadTranslationOptionHandler && (i = this.options.overloadTranslationOptionHandler(arguments)), typeof i == "object" && (i = { ...i }), i ||= {}, t == null) return "";
2764
+ typeof t == "function" && (t = Pi(t, {
2765
+ ...this.options,
2766
+ ...i
2767
+ })), Array.isArray(t) || (t = [String(t)]), t = t.map((e) => typeof e == "function" ? Pi(e, {
2768
+ ...this.options,
2769
+ ...i
2770
+ }) : String(e));
2771
+ let a = i.returnDetails === void 0 ? this.options.returnDetails : i.returnDetails, o = i.keySeparator === void 0 ? this.options.keySeparator : i.keySeparator, { key: s, namespaces: c } = this.extractFromKey(t[t.length - 1], i), l = c[c.length - 1], u = i.nsSeparator === void 0 ? this.options.nsSeparator : i.nsSeparator;
2772
+ u === void 0 && (u = ":");
2773
+ let d = i.lng || this.language, f = i.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
2774
+ if (d?.toLowerCase() === "cimode") return f ? a ? {
2775
+ res: `${l}${u}${s}`,
2776
+ usedKey: s,
2777
+ exactUsedKey: s,
2778
+ usedLng: d,
2779
+ usedNS: l,
2780
+ usedParams: this.getUsedParamsDetails(i)
2781
+ } : `${l}${u}${s}` : a ? {
2782
+ res: s,
2783
+ usedKey: s,
2784
+ exactUsedKey: s,
2785
+ usedLng: d,
2786
+ usedNS: l,
2787
+ usedParams: this.getUsedParamsDetails(i)
2788
+ } : s;
2789
+ let p = this.resolve(t, i), m = p?.res, h = p?.usedKey || s, g = p?.exactUsedKey || s, ee = [
2790
+ "[object Number]",
2791
+ "[object Function]",
2792
+ "[object RegExp]"
2793
+ ], _ = 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;
2794
+ v && !m && b && (S = x);
2795
+ let ie = Ii(S), ae = Object.prototype.toString.apply(S);
2796
+ if (v && S && ie && ee.indexOf(ae) < 0 && !(Z(_) && Array.isArray(S))) {
2797
+ if (!i.returnObjects && !this.options.returnObjects) {
2798
+ this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
2799
+ let e = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(h, S, {
2800
+ ...i,
2801
+ ns: c
2802
+ }) : `key '${s} (${this.language})' returned an object instead of string.`;
2803
+ return a ? (p.res = e, p.usedParams = this.getUsedParamsDetails(i), p) : e;
2804
+ }
2805
+ if (o) {
2806
+ let e = Array.isArray(S), t = e ? [] : {}, n = e ? g : h;
2807
+ for (let e in S) if (Object.prototype.hasOwnProperty.call(S, e)) {
2808
+ let r = `${n}${o}${e}`;
2809
+ b && !m ? t[e] = this.translate(r, {
2810
+ ...i,
2811
+ defaultValue: Ii(x) ? x[e] : void 0,
2812
+ joinArrays: !1,
2813
+ ns: c
2814
+ }) : t[e] = this.translate(r, {
2815
+ ...i,
2816
+ joinArrays: !1,
2817
+ ns: c
2818
+ }), t[e] === r && (t[e] = S[e]);
2819
+ }
2820
+ m = t;
2821
+ }
2822
+ } else if (v && Z(_) && Array.isArray(m)) m = m.join(_), m &&= this.extendTranslation(m, t, i, r);
2823
+ else {
2824
+ let e = !1, n = !1;
2825
+ !this.isValidLookup(m) && b && (e = !0, m = x), this.isValidLookup(m) || (n = !0, m = s);
2826
+ let a = (i.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && n ? void 0 : m, c = b && x !== m && this.options.updateMissing;
2827
+ if (n || e || c) {
2828
+ if (this.logger.log(c ? "updateKey" : "missingKey", d, l, s, c ? x : m), o) {
2829
+ let e = this.resolve(s, {
2830
+ ...i,
2831
+ keySeparator: !1
2832
+ });
2833
+ e && e.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
2834
+ }
2835
+ let e = [], t = this.languageUtils.getFallbackCodes(this.options.fallbackLng, i.lng || this.language);
2836
+ if (this.options.saveMissingTo === "fallback" && t && t[0]) for (let n = 0; n < t.length; n++) e.push(t[n]);
2837
+ else this.options.saveMissingTo === "all" ? e = this.languageUtils.toResolveHierarchy(i.lng || this.language) : e.push(i.lng || this.language);
2838
+ let n = (e, t, n) => {
2839
+ let r = b && n !== m ? n : a;
2840
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(e, l, t, r, c, i) : this.backendConnector?.saveMissing && this.backendConnector.saveMissing(e, l, t, r, c, i), this.emit("missingKey", e, l, t, m);
2841
+ };
2842
+ this.options.saveMissing && (this.options.saveMissingPlurals && y ? e.forEach((e) => {
2843
+ let t = this.pluralResolver.getSuffixes(e, i);
2844
+ re && i[`defaultValue${this.options.pluralSeparator}zero`] && t.indexOf(`${this.options.pluralSeparator}zero`) < 0 && t.push(`${this.options.pluralSeparator}zero`), t.forEach((t) => {
2845
+ n([e], s + t, i[`defaultValue${t}`] || x);
2846
+ });
2847
+ }) : n(e, s, x));
2848
+ }
2849
+ m = this.extendTranslation(m, t, i, p, r), n && m === s && this.options.appendNamespaceToMissingKey && (m = `${l}${u}${s}`), (n || e) && this.options.parseMissingKeyHandler && (m = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}${u}${s}` : s, e ? m : void 0, i));
2850
+ }
2851
+ return a ? (p.res = m, p.usedParams = this.getUsedParamsDetails(i), p) : m;
2852
+ }
2853
+ extendTranslation(e, t, n, r, i) {
2854
+ if (this.i18nFormat?.parse) e = this.i18nFormat.parse(e, {
2855
+ ...this.options.interpolation.defaultVariables,
2856
+ ...n
2857
+ }, n.lng || this.language || r.usedLng, r.usedNS, r.usedKey, { resolved: r });
2858
+ else if (!n.skipInterpolation) {
2859
+ n.interpolation && this.interpolator.init({
2860
+ ...n,
2861
+ interpolation: {
2862
+ ...this.options.interpolation,
2863
+ ...n.interpolation
2864
+ }
2865
+ });
2866
+ let a = Z(e) && (n?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : n.interpolation.skipOnVariables), o;
2867
+ if (a) {
2868
+ let t = e.match(this.interpolator.nestingRegexp);
2869
+ o = t && t.length;
2870
+ }
2871
+ let s = n.replace && !Z(n.replace) ? n.replace : n;
2872
+ if (this.options.interpolation.defaultVariables && (s = {
2873
+ ...this.options.interpolation.defaultVariables,
2874
+ ...s
2875
+ }), e = this.interpolator.interpolate(e, s, n.lng || this.language || r.usedLng, n), a) {
2876
+ let t = e.match(this.interpolator.nestingRegexp), r = t && t.length;
2877
+ o < r && (n.nest = !1);
2878
+ }
2879
+ !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();
2880
+ }
2881
+ let a = n.postProcess || this.options.postProcess, o = Z(a) ? [a] : a;
2882
+ return e != null && o?.length && n.applyPostProcessor !== !1 && (e = ji.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
2883
+ i18nResolved: {
2884
+ ...r,
2885
+ usedParams: this.getUsedParamsDetails(n)
2886
+ },
2887
+ ...n
2888
+ } : n, this)), e;
2889
+ }
2890
+ resolve(e, t = {}) {
2891
+ let n, r, i, a, o;
2892
+ return Z(e) && (e = [e]), Array.isArray(e) && (e = e.map((e) => typeof e == "function" ? Pi(e, {
2893
+ ...this.options,
2894
+ ...t
2895
+ }) : e)), e.forEach((e) => {
2896
+ if (this.isValidLookup(n)) return;
2897
+ let s = this.extractFromKey(e, t), c = s.key;
2898
+ r = c;
2899
+ let l = s.namespaces;
2900
+ this.options.fallbackNS && (l = l.concat(this.options.fallbackNS));
2901
+ 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);
2902
+ l.forEach((e) => {
2903
+ 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) => {
2904
+ if (this.isValidLookup(n)) return;
2905
+ a = r;
2906
+ let o = [c];
2907
+ if (this.i18nFormat?.addLookupKeys) this.i18nFormat.addLookupKeys(o, c, r, e, t);
2908
+ else {
2909
+ let e;
2910
+ u && (e = this.pluralResolver.getSuffix(r, t.count, t));
2911
+ let n = `${this.options.pluralSeparator}zero`, i = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
2912
+ if (u && (t.ordinal && e.indexOf(i) === 0 && o.push(c + e.replace(i, this.options.pluralSeparator)), o.push(c + e), d && o.push(c + n)), f) {
2913
+ let r = `${c}${this.options.contextSeparator || "_"}${t.context}`;
2914
+ o.push(r), u && (t.ordinal && e.indexOf(i) === 0 && o.push(r + e.replace(i, this.options.pluralSeparator)), o.push(r + e), d && o.push(r + n));
2915
+ }
2916
+ }
2917
+ let s;
2918
+ for (; s = o.pop();) this.isValidLookup(n) || (i = s, n = this.getResource(r, e, s, t));
2919
+ }));
2920
+ });
2921
+ }), {
2922
+ res: n,
2923
+ usedKey: r,
2924
+ exactUsedKey: i,
2925
+ usedLng: a,
2926
+ usedNS: o
2927
+ };
2928
+ }
2929
+ isValidLookup(e) {
2930
+ return e !== void 0 && !(!this.options.returnNull && e === null) && !(!this.options.returnEmptyString && e === "");
2931
+ }
2932
+ getResource(e, t, n, r = {}) {
2933
+ return this.i18nFormat?.getResource ? this.i18nFormat.getResource(e, t, n, r) : this.resourceStore.getResource(e, t, n, r);
2934
+ }
2935
+ getUsedParamsDetails(e = {}) {
2936
+ let t = [
2937
+ "defaultValue",
2938
+ "ordinal",
2939
+ "context",
2940
+ "replace",
2941
+ "lng",
2942
+ "lngs",
2943
+ "fallbackLng",
2944
+ "ns",
2945
+ "keySeparator",
2946
+ "nsSeparator",
2947
+ "returnObjects",
2948
+ "returnDetails",
2949
+ "joinArrays",
2950
+ "postProcess",
2951
+ "interpolation"
2952
+ ], n = e.replace && !Z(e.replace), r = n ? e.replace : e;
2953
+ if (n && e.count !== void 0 && (r.count = e.count), this.options.interpolation.defaultVariables && (r = {
2954
+ ...this.options.interpolation.defaultVariables,
2955
+ ...r
2956
+ }), !n) {
2957
+ r = { ...r };
2958
+ for (let e of t) delete r[e];
2959
+ }
2960
+ return r;
2961
+ }
2962
+ static hasDefaultValue(e) {
2963
+ for (let t in e) if (Object.prototype.hasOwnProperty.call(e, t) && t.substring(0, 12) === "defaultValue" && e[t] !== void 0) return !0;
2964
+ return !1;
2965
+ }
2966
+ }, Ri = class {
2967
+ constructor(e) {
2968
+ this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = Q.create("languageUtils");
2969
+ }
2970
+ getScriptPartFromCode(e) {
2971
+ if (e = Di(e), !e || e.indexOf("-") < 0) return null;
2972
+ let t = e.split("-");
2973
+ return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
2974
+ }
2975
+ getLanguagePartFromCode(e) {
2976
+ if (e = Di(e), !e || e.indexOf("-") < 0) return e;
2977
+ let t = e.split("-");
2978
+ return this.formatLanguageCode(t[0]);
2979
+ }
2980
+ formatLanguageCode(e) {
2981
+ if (Z(e) && e.indexOf("-") > -1) {
2982
+ let t;
2983
+ try {
2984
+ t = Intl.getCanonicalLocales(e)[0];
2985
+ } catch {}
2986
+ return t && this.options.lowerCaseLng && (t = t.toLowerCase()), t || (this.options.lowerCaseLng ? e.toLowerCase() : e);
2987
+ }
2988
+ return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
2989
+ }
2990
+ isSupportedCode(e) {
2991
+ return (this.options.load === "languageOnly" || this.options.nonExplicitSupportedLngs) && (e = this.getLanguagePartFromCode(e)), !this.supportedLngs || !this.supportedLngs.length || this.supportedLngs.indexOf(e) > -1;
2992
+ }
2993
+ getBestMatchFromCodes(e) {
2994
+ if (!e) return null;
2995
+ let t;
2996
+ return e.forEach((e) => {
2997
+ if (t) return;
2998
+ let n = this.formatLanguageCode(e);
2999
+ (!this.options.supportedLngs || this.isSupportedCode(n)) && (t = n);
3000
+ }), !t && this.options.supportedLngs && e.forEach((e) => {
3001
+ if (t) return;
3002
+ let n = this.getScriptPartFromCode(e);
3003
+ if (this.isSupportedCode(n)) return t = n;
3004
+ let r = this.getLanguagePartFromCode(e);
3005
+ if (this.isSupportedCode(r)) return t = r;
3006
+ t = this.options.supportedLngs.find((e) => {
3007
+ if (e === r || !(e.indexOf("-") < 0 && r.indexOf("-") < 0) && (e.indexOf("-") > 0 && r.indexOf("-") < 0 && e.substring(0, e.indexOf("-")) === r || e.indexOf(r) === 0 && r.length > 1)) return e;
3008
+ });
3009
+ }), t ||= this.getFallbackCodes(this.options.fallbackLng)[0], t;
3010
+ }
3011
+ getFallbackCodes(e, t) {
3012
+ if (!e) return [];
3013
+ if (typeof e == "function" && (e = e(t)), Z(e) && (e = [e]), Array.isArray(e)) return e;
3014
+ if (!t) return e.default || [];
3015
+ let n = e[t];
3016
+ return n ||= e[this.getScriptPartFromCode(t)], n ||= e[this.formatLanguageCode(t)], n ||= e[this.getLanguagePartFromCode(t)], n ||= e.default, n || [];
3017
+ }
3018
+ toResolveHierarchy(e, t) {
3019
+ let n = this.getFallbackCodes((t === !1 ? [] : t) || this.options.fallbackLng || [], e), r = [], i = (e) => {
3020
+ e && (this.isSupportedCode(e) ? r.push(e) : this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`));
3021
+ };
3022
+ return Z(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" && i(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && i(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && i(this.getLanguagePartFromCode(e))) : Z(e) && i(this.formatLanguageCode(e)), n.forEach((e) => {
3023
+ r.indexOf(e) < 0 && i(this.formatLanguageCode(e));
3024
+ }), r;
3025
+ }
3026
+ }, zi = {
3027
+ zero: 0,
3028
+ one: 1,
3029
+ two: 2,
3030
+ few: 3,
3031
+ many: 4,
3032
+ other: 5
3033
+ }, Bi = {
3034
+ select: (e) => e === 1 ? "one" : "other",
3035
+ resolvedOptions: () => ({ pluralCategories: ["one", "other"] })
3036
+ }, Vi = class {
3037
+ constructor(e, t = {}) {
3038
+ this.languageUtils = e, this.options = t, this.logger = Q.create("pluralResolver"), this.pluralRulesCache = {};
3039
+ }
3040
+ clearCache() {
3041
+ this.pluralRulesCache = {};
3042
+ }
3043
+ getRule(e, t = {}) {
3044
+ let n = Di(e === "dev" ? "en" : e), r = t.ordinal ? "ordinal" : "cardinal", i = JSON.stringify({
3045
+ cleanedCode: n,
3046
+ type: r
3047
+ });
3048
+ if (i in this.pluralRulesCache) return this.pluralRulesCache[i];
3049
+ let a;
3050
+ try {
3051
+ a = new Intl.PluralRules(n, { type: r });
3052
+ } catch {
3053
+ if (typeof Intl > "u") return this.logger.error("No Intl support, please use an Intl polyfill!"), Bi;
3054
+ if (!e.match(/-|_/)) return Bi;
3055
+ let n = this.languageUtils.getLanguagePartFromCode(e);
3056
+ a = this.getRule(n, t);
3057
+ }
3058
+ return this.pluralRulesCache[i] = a, a;
3059
+ }
3060
+ needsPlural(e, t = {}) {
3061
+ let n = this.getRule(e, t);
3062
+ return n ||= this.getRule("dev", t), n?.resolvedOptions().pluralCategories.length > 1;
3063
+ }
3064
+ getPluralFormsOfKey(e, t, n = {}) {
3065
+ return this.getSuffixes(e, n).map((e) => `${t}${e}`);
3066
+ }
3067
+ getSuffixes(e, t = {}) {
3068
+ let n = this.getRule(e, t);
3069
+ 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}`) : [];
3070
+ }
3071
+ getSuffix(e, t, n = {}) {
3072
+ let r = this.getRule(e, n);
3073
+ 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));
3074
+ }
3075
+ }, Hi = (e, t, n, r = ".", i = !0) => {
3076
+ let a = _i(e, t, n);
3077
+ return !a && i && Z(n) && (a = Ei(e, n, r), a === void 0 && (a = Ei(t, n, r))), a;
3078
+ }, Ui = (e) => e.replace(/\$/g, "$$$$"), Wi = class {
3079
+ constructor(e = {}) {
3080
+ this.logger = Q.create("interpolator"), this.options = e, this.format = e?.interpolation?.format || ((e) => e), this.init(e);
3081
+ }
3082
+ init(e = {}) {
3083
+ e.interpolation ||= { escapeValue: !0 };
3084
+ 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;
3085
+ 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();
3086
+ }
3087
+ reset() {
3088
+ this.options && this.init(this.options);
3089
+ }
3090
+ resetRegExp() {
3091
+ let e = (e, t) => e?.source === t ? (e.lastIndex = 0, e) : new RegExp(t, "g");
3092
+ this.regexp = e(this.regexp, `${this.prefix}(.+?)${this.suffix}`), this.regexpUnescape = e(this.regexpUnescape, `${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`), this.nestingRegexp = e(this.nestingRegexp, `${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`);
3093
+ }
3094
+ interpolate(e, t, n, r) {
3095
+ let i, a, o, s = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (e) => {
3096
+ if (e.indexOf(this.formatSeparator) < 0) {
3097
+ let i = Hi(t, s, e, this.options.keySeparator, this.options.ignoreJSONStructure);
3098
+ return this.alwaysFormat ? this.format(i, void 0, n, {
3099
+ ...r,
3100
+ ...t,
3101
+ interpolationkey: e
3102
+ }) : i;
3103
+ }
3104
+ let i = e.split(this.formatSeparator), a = i.shift().trim(), o = i.join(this.formatSeparator).trim();
3105
+ return this.format(Hi(t, s, a, this.options.keySeparator, this.options.ignoreJSONStructure), o, n, {
3106
+ ...r,
3107
+ ...t,
3108
+ interpolationkey: a
3109
+ });
3110
+ };
3111
+ this.resetRegExp();
3112
+ let l = r?.missingInterpolationHandler || this.options.missingInterpolationHandler, u = r?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : r.interpolation.skipOnVariables;
3113
+ return [{
3114
+ regex: this.regexpUnescape,
3115
+ safeValue: (e) => Ui(e)
3116
+ }, {
3117
+ regex: this.regexp,
3118
+ safeValue: (e) => this.escapeValue ? Ui(this.escape(e)) : Ui(e)
3119
+ }].forEach((t) => {
3120
+ for (o = 0; i = t.regex.exec(e);) {
3121
+ let n = i[1].trim();
3122
+ if (a = c(n), a === void 0) if (typeof l == "function") {
3123
+ let t = l(e, i, r);
3124
+ a = Z(t) ? t : "";
3125
+ } else if (r && Object.prototype.hasOwnProperty.call(r, n)) a = "";
3126
+ else if (u) {
3127
+ a = i[0];
3128
+ continue;
3129
+ } else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`), a = "";
3130
+ else !Z(a) && !this.useRawValueToEscape && (a = ci(a));
3131
+ let s = t.safeValue(a);
3132
+ 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;
3133
+ }
3134
+ }), e;
3135
+ }
3136
+ nest(e, t, n = {}) {
3137
+ let r, i, a, o = (e, t) => {
3138
+ let n = this.nestingOptionsSeparator;
3139
+ if (e.indexOf(n) < 0) return e;
3140
+ let r = e.split(RegExp(`${yi(n)}[ ]*{`)), i = `{${r[1]}`;
3141
+ e = r[0], i = this.interpolate(i, a);
3142
+ let o = i.match(/'/g), s = i.match(/"/g);
3143
+ ((o?.length ?? 0) % 2 == 0 && !s || (s?.length ?? 0) % 2 != 0) && (i = i.replace(/'/g, "\""));
3144
+ try {
3145
+ a = JSON.parse(i), t && (a = {
3146
+ ...t,
3147
+ ...a
3148
+ });
3149
+ } catch (t) {
3150
+ return this.logger.warn(`failed parsing options string in nesting for key ${e}`, t), `${e}${n}${i}`;
3151
+ }
3152
+ return a.defaultValue && a.defaultValue.indexOf(this.prefix) > -1 && delete a.defaultValue, e;
3153
+ };
3154
+ for (; r = this.nestingRegexp.exec(e);) {
3155
+ let s = [];
3156
+ a = { ...n }, a = a.replace && !Z(a.replace) ? a.replace : a, a.applyPostProcessor = !1, delete a.defaultValue;
3157
+ let c = /{.*}/.test(r[1]) ? r[1].lastIndexOf("}") + 1 : r[1].indexOf(this.formatSeparator);
3158
+ 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;
3159
+ 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, {
3160
+ ...n,
3161
+ interpolationkey: r[1].trim()
3162
+ }), i.trim())), e = e.replace(r[0], i), this.regexp.lastIndex = 0;
3163
+ }
3164
+ return e;
3165
+ }
3166
+ }, Gi = (e) => {
3167
+ let t = e.toLowerCase().trim(), n = {};
3168
+ if (e.indexOf("(") > -1) {
3169
+ let r = e.split("(");
3170
+ t = r[0].toLowerCase().trim();
3171
+ let i = r[1].substring(0, r[1].length - 1);
3172
+ t === "currency" && i.indexOf(":") < 0 ? n.currency ||= i.trim() : t === "relativetime" && i.indexOf(":") < 0 ? n.range ||= i.trim() : i.split(";").forEach((e) => {
3173
+ if (e) {
3174
+ let [t, ...r] = e.split(":"), i = r.join(":").trim().replace(/^'+|'+$/g, ""), a = t.trim();
3175
+ n[a] || (n[a] = i), i === "false" && (n[a] = !1), i === "true" && (n[a] = !0), isNaN(i) || (n[a] = parseInt(i, 10));
3176
+ }
3177
+ });
3178
+ }
3179
+ return {
3180
+ formatName: t,
3181
+ formatOptions: n
3182
+ };
3183
+ }, Ki = (e) => {
3184
+ let t = {};
3185
+ return (n, r, i) => {
3186
+ let a = i;
3187
+ i && i.interpolationkey && i.formatParams && i.formatParams[i.interpolationkey] && i[i.interpolationkey] && (a = {
3188
+ ...a,
3189
+ [i.interpolationkey]: void 0
3190
+ });
3191
+ let o = r + JSON.stringify(a), s = t[o];
3192
+ return s || (s = e(Di(r), i), t[o] = s), s(n);
3193
+ };
3194
+ }, qi = (e) => (t, n, r) => e(Di(n), r)(t), Ji = class {
3195
+ constructor(e = {}) {
3196
+ this.logger = Q.create("formatter"), this.options = e, this.init(e);
3197
+ }
3198
+ init(e, t = { interpolation: {} }) {
3199
+ this.formatSeparator = t.interpolation.formatSeparator || ",";
3200
+ let n = t.cacheInBuiltFormats ? Ki : qi;
3201
+ this.formats = {
3202
+ number: n((e, t) => {
3203
+ let n = new Intl.NumberFormat(e, { ...t });
3204
+ return (e) => n.format(e);
3205
+ }),
3206
+ currency: n((e, t) => {
3207
+ let n = new Intl.NumberFormat(e, {
3208
+ ...t,
3209
+ style: "currency"
3210
+ });
3211
+ return (e) => n.format(e);
3212
+ }),
3213
+ datetime: n((e, t) => {
3214
+ let n = new Intl.DateTimeFormat(e, { ...t });
3215
+ return (e) => n.format(e);
3216
+ }),
3217
+ relativetime: n((e, t) => {
3218
+ let n = new Intl.RelativeTimeFormat(e, { ...t });
3219
+ return (e) => n.format(e, t.range || "day");
3220
+ }),
3221
+ list: n((e, t) => {
3222
+ let n = new Intl.ListFormat(e, { ...t });
3223
+ return (e) => n.format(e);
3224
+ })
3225
+ };
3226
+ }
3227
+ add(e, t) {
3228
+ this.formats[e.toLowerCase().trim()] = t;
3229
+ }
3230
+ addCached(e, t) {
3231
+ this.formats[e.toLowerCase().trim()] = Ki(t);
3232
+ }
3233
+ format(e, t, n, r = {}) {
3234
+ let i = t.split(this.formatSeparator);
3235
+ if (i.length > 1 && i[0].indexOf("(") > 1 && i[0].indexOf(")") < 0 && i.find((e) => e.indexOf(")") > -1)) {
3236
+ let e = i.findIndex((e) => e.indexOf(")") > -1);
3237
+ i[0] = [i[0], ...i.splice(1, e)].join(this.formatSeparator);
3238
+ }
3239
+ return i.reduce((e, t) => {
3240
+ let { formatName: i, formatOptions: a } = Gi(t);
3241
+ if (this.formats[i]) {
3242
+ let t = e;
3243
+ try {
3244
+ let o = r?.formatParams?.[r.interpolationkey] || {}, s = o.locale || o.lng || r.locale || r.lng || n;
3245
+ t = this.formats[i](e, s, {
3246
+ ...a,
3247
+ ...r,
3248
+ ...o
3249
+ });
3250
+ } catch (e) {
3251
+ this.logger.warn(e);
3252
+ }
3253
+ return t;
3254
+ } else this.logger.warn(`there was no format function for ${i}`);
3255
+ return e;
3256
+ }, e);
3257
+ }
3258
+ }, Yi = (e, t) => {
3259
+ e.pending[t] !== void 0 && (delete e.pending[t], e.pendingCount--);
3260
+ }, Xi = class extends ki {
3261
+ constructor(e, t, n, r = {}) {
3262
+ 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);
3263
+ }
3264
+ queueLoad(e, t, n, r) {
3265
+ let i = {}, a = {}, o = {}, s = {};
3266
+ return e.forEach((e) => {
3267
+ let r = !0;
3268
+ t.forEach((t) => {
3269
+ let o = `${e}|${t}`;
3270
+ !n.reload && this.store.hasResourceBundle(e, t) ? this.state[o] = 2 : this.state[o] < 0 || (this.state[o] === 1 ? a[o] === void 0 && (a[o] = !0) : (this.state[o] = 1, r = !1, a[o] === void 0 && (a[o] = !0), i[o] === void 0 && (i[o] = !0), s[t] === void 0 && (s[t] = !0)));
3271
+ }), r || (o[e] = !0);
3272
+ }), (Object.keys(i).length || Object.keys(a).length) && this.queue.push({
3273
+ pending: a,
3274
+ pendingCount: Object.keys(a).length,
3275
+ loaded: {},
3276
+ errors: [],
3277
+ callback: r
3278
+ }), {
3279
+ toLoad: Object.keys(i),
3280
+ pending: Object.keys(a),
3281
+ toLoadLanguages: Object.keys(o),
3282
+ toLoadNamespaces: Object.keys(s)
3283
+ };
3284
+ }
3285
+ loaded(e, t, n) {
3286
+ let r = e.split("|"), i = r[0], a = r[1];
3287
+ 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);
3288
+ let o = {};
3289
+ this.queue.forEach((n) => {
3290
+ hi(n.loaded, [i], a), Yi(n, e), t && n.errors.push(t), n.pendingCount === 0 && !n.done && (Object.keys(n.loaded).forEach((e) => {
3291
+ o[e] || (o[e] = {});
3292
+ let t = n.loaded[e];
3293
+ t.length && t.forEach((t) => {
3294
+ o[e][t] === void 0 && (o[e][t] = !0);
3295
+ });
3296
+ }), n.done = !0, n.errors.length ? n.callback(n.errors) : n.callback());
3297
+ }), this.emit("loaded", o), this.queue = this.queue.filter((e) => !e.done);
3298
+ }
3299
+ read(e, t, n, r = 0, i = this.retryTimeout, a) {
3300
+ if (!e.length) return a(null, {});
3301
+ if (this.readingCalls >= this.maxParallelReads) {
3302
+ this.waitingReads.push({
3303
+ lng: e,
3304
+ ns: t,
3305
+ fcName: n,
3306
+ tried: r,
3307
+ wait: i,
3308
+ callback: a
3309
+ });
3310
+ return;
3311
+ }
3312
+ this.readingCalls++;
3313
+ let o = (o, s) => {
3314
+ if (this.readingCalls--, this.waitingReads.length > 0) {
3315
+ let e = this.waitingReads.shift();
3316
+ this.read(e.lng, e.ns, e.fcName, e.tried, e.wait, e.callback);
3317
+ }
3318
+ if (o && s && r < this.maxRetries) {
3319
+ setTimeout(() => {
3320
+ this.read.call(this, e, t, n, r + 1, i * 2, a);
3321
+ }, i);
3322
+ return;
3323
+ }
3324
+ a(o, s);
3325
+ }, s = this.backend[n].bind(this.backend);
3326
+ if (s.length === 2) {
3327
+ try {
3328
+ let n = s(e, t);
3329
+ n && typeof n.then == "function" ? n.then((e) => o(null, e)).catch(o) : o(null, n);
3330
+ } catch (e) {
3331
+ o(e);
3332
+ }
3333
+ return;
3334
+ }
3335
+ return s(e, t, o);
3336
+ }
3337
+ prepareLoading(e, t, n = {}, r) {
3338
+ if (!this.backend) return this.logger.warn("No backend was added via i18next.use. Will not load resources."), r && r();
3339
+ Z(e) && (e = this.languageUtils.toResolveHierarchy(e)), Z(t) && (t = [t]);
3340
+ let i = this.queueLoad(e, t, n, r);
3341
+ if (!i.toLoad.length) return i.pending.length || r(), null;
3342
+ i.toLoad.forEach((e) => {
3343
+ this.loadOne(e);
3344
+ });
3345
+ }
3346
+ load(e, t, n) {
3347
+ this.prepareLoading(e, t, {}, n);
3348
+ }
3349
+ reload(e, t, n) {
3350
+ this.prepareLoading(e, t, { reload: !0 }, n);
3351
+ }
3352
+ loadOne(e, t = "") {
3353
+ let n = e.split("|"), r = n[0], i = n[1];
3354
+ this.read(r, i, "read", void 0, void 0, (n, a) => {
3355
+ n && this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`, n), !n && a && this.logger.log(`${t}loaded namespace ${i} for language ${r}`, a), this.loaded(e, n, a);
3356
+ });
3357
+ }
3358
+ saveMissing(e, t, n, r, i, a = {}, o = () => {}) {
3359
+ if (this.services?.utils?.hasLoadedNamespace && !this.services?.utils?.hasLoadedNamespace(t)) {
3360
+ this.logger.warn(`did not save key "${n}" as the namespace "${t}" 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!!!");
3361
+ return;
3362
+ }
3363
+ if (!(n == null || n === "")) {
3364
+ if (this.backend?.create) {
3365
+ let s = {
3366
+ ...a,
3367
+ isUpdate: i
3368
+ }, c = this.backend.create.bind(this.backend);
3369
+ if (c.length < 6) try {
3370
+ let i;
3371
+ i = c.length === 5 ? c(e, t, n, r, s) : c(e, t, n, r), i && typeof i.then == "function" ? i.then((e) => o(null, e)).catch(o) : o(null, i);
3372
+ } catch (e) {
3373
+ o(e);
3374
+ }
3375
+ else c(e, t, n, r, o, s);
3376
+ }
3377
+ !e || !e[0] || this.store.addResource(e[0], t, n, r);
3378
+ }
3379
+ }
3380
+ }, Zi = () => ({
3381
+ debug: !1,
3382
+ initAsync: !0,
3383
+ ns: ["translation"],
3384
+ defaultNS: ["translation"],
3385
+ fallbackLng: ["dev"],
3386
+ fallbackNS: !1,
3387
+ supportedLngs: !1,
3388
+ nonExplicitSupportedLngs: !1,
3389
+ load: "all",
3390
+ preload: !1,
3391
+ simplifyPluralSuffix: !0,
3392
+ keySeparator: ".",
3393
+ nsSeparator: ":",
3394
+ pluralSeparator: "_",
3395
+ contextSeparator: "_",
3396
+ partialBundledLanguages: !1,
3397
+ saveMissing: !1,
3398
+ updateMissing: !1,
3399
+ saveMissingTo: "fallback",
3400
+ saveMissingPlurals: !0,
3401
+ missingKeyHandler: !1,
3402
+ missingInterpolationHandler: !1,
3403
+ postProcess: !1,
3404
+ postProcessPassResolved: !1,
3405
+ returnNull: !1,
3406
+ returnEmptyString: !0,
3407
+ returnObjects: !1,
3408
+ joinArrays: !1,
3409
+ returnedObjectHandler: !1,
3410
+ parseMissingKeyHandler: !1,
3411
+ appendNamespaceToMissingKey: !1,
3412
+ appendNamespaceToCIMode: !1,
3413
+ overloadTranslationOptionHandler: (e) => {
3414
+ let t = {};
3415
+ if (typeof e[1] == "object" && (t = e[1]), Z(e[1]) && (t.defaultValue = e[1]), Z(e[2]) && (t.tDescription = e[2]), typeof e[2] == "object" || typeof e[3] == "object") {
3416
+ let n = e[3] || e[2];
3417
+ Object.keys(n).forEach((e) => {
3418
+ t[e] = n[e];
3419
+ });
3420
+ }
3421
+ return t;
3422
+ },
3423
+ interpolation: {
3424
+ escapeValue: !0,
3425
+ format: (e) => e,
3426
+ prefix: "{{",
3427
+ suffix: "}}",
3428
+ formatSeparator: ",",
3429
+ unescapePrefix: "-",
3430
+ nestingPrefix: "$t(",
3431
+ nestingSuffix: ")",
3432
+ nestingOptionsSeparator: ",",
3433
+ maxReplaces: 1e3,
3434
+ skipOnVariables: !0
3435
+ },
3436
+ cacheInBuiltFormats: !0
3437
+ }), 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) => {
3438
+ Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((t) => {
3439
+ typeof e[t] == "function" && (e[t] = e[t].bind(e));
3440
+ });
3441
+ }, 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 = () => {
3442
+ typeof globalThis < "u" && (globalThis[ta] = !0);
3443
+ }, 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 {
3444
+ constructor(e = {}, t) {
3445
+ if (super(), this.options = Qi(e), this.services = {}, this.logger = Q, this.modules = { external: [] }, ea(this), t && !this.isInitialized && !e.isClone) {
3446
+ if (!this.options.initAsync) return this.init(e, t), this;
3447
+ setTimeout(() => {
3448
+ this.init(e, t);
3449
+ }, 0);
3450
+ }
3451
+ }
3452
+ init(e = {}, t) {
3453
+ 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]));
3454
+ let n = Zi();
3455
+ this.options = {
3456
+ ...n,
3457
+ ...this.options,
3458
+ ...Qi(e)
3459
+ }, this.options.interpolation = {
3460
+ ...n.interpolation,
3461
+ ...this.options.interpolation
3462
+ }, 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());
3463
+ let r = (e) => e ? typeof e == "function" ? new e() : e : null;
3464
+ if (!this.options.isClone) {
3465
+ this.modules.logger ? Q.init(r(this.modules.logger), this.options) : Q.init(null, this.options);
3466
+ let e;
3467
+ e = this.modules.formatter ? this.modules.formatter : Ji;
3468
+ let t = new Ri(this.options);
3469
+ this.store = new Ai(this.options.resources, this.options);
3470
+ let i = this.services;
3471
+ i.logger = Q, i.resourceStore = this.store, i.languageUtils = t, i.pluralResolver = new Vi(t, {
3472
+ prepend: this.options.pluralSeparator,
3473
+ simplifyPluralSuffix: this.options.simplifyPluralSuffix
3474
+ }), 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) => {
3475
+ this.emit(e, ...t);
3476
+ }), 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) => {
3477
+ this.emit(e, ...t);
3478
+ }), this.modules.external.forEach((e) => {
3479
+ e.init && e.init(this);
3480
+ });
3481
+ }
3482
+ if (this.format = this.options.interpolation.format, t ||= $i, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
3483
+ let e = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
3484
+ e.length > 0 && e[0] !== "dev" && (this.options.lng = e[0]);
3485
+ }
3486
+ !this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined"), [
3487
+ "getResource",
3488
+ "hasResourceBundle",
3489
+ "getResourceBundle",
3490
+ "getDataByLanguage"
3491
+ ].forEach((e) => {
3492
+ this[e] = (...t) => this.store[e](...t);
3493
+ }), [
3494
+ "addResource",
3495
+ "addResources",
3496
+ "addResourceBundle",
3497
+ "removeResourceBundle"
3498
+ ].forEach((e) => {
3499
+ this[e] = (...t) => (this.store[e](...t), this);
3500
+ });
3501
+ let i = si(), a = () => {
3502
+ let e = (e, n) => {
3503
+ 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);
3504
+ };
3505
+ if (this.languages && !this.isInitialized) return e(null, this.t.bind(this));
3506
+ this.changeLanguage(this.options.lng, e);
3507
+ };
3508
+ return this.options.resources || !this.options.initAsync ? a() : setTimeout(a, 0), i;
3509
+ }
3510
+ loadResources(e, t = $i) {
3511
+ let n = t, r = Z(e) ? e : this.language;
3512
+ if (typeof e == "function" && (n = e), !this.options.resources || this.options.partialBundledLanguages) {
3513
+ if (r?.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return n();
3514
+ let e = [], t = (t) => {
3515
+ t && t !== "cimode" && this.services.languageUtils.toResolveHierarchy(t).forEach((t) => {
3516
+ t !== "cimode" && e.indexOf(t) < 0 && e.push(t);
3517
+ });
3518
+ };
3519
+ r ? t(r) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e) => t(e)), this.options.preload?.forEach?.((e) => t(e)), this.services.backendConnector.load(e, this.options.ns, (e) => {
3520
+ !e && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), n(e);
3521
+ });
3522
+ } else n(null);
3523
+ }
3524
+ reloadResources(e, t, n) {
3525
+ let r = si();
3526
+ 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) => {
3527
+ r.resolve(), n(e);
3528
+ }), r;
3529
+ }
3530
+ use(e) {
3531
+ if (!e) throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
3532
+ if (!e.type) throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
3533
+ 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;
3534
+ }
3535
+ setResolvedLanguage(e) {
3536
+ if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1)) {
3537
+ for (let e = 0; e < this.languages.length; e++) {
3538
+ let t = this.languages[e];
3539
+ if (!(["cimode", "dev"].indexOf(t) > -1) && this.store.hasLanguageSomeTranslations(t)) {
3540
+ this.resolvedLanguage = t;
3541
+ break;
3542
+ }
3543
+ }
3544
+ !this.resolvedLanguage && this.languages.indexOf(e) < 0 && this.store.hasLanguageSomeTranslations(e) && (this.resolvedLanguage = e, this.languages.unshift(e));
3545
+ }
3546
+ }
3547
+ changeLanguage(e, t) {
3548
+ this.isLanguageChangingTo = e;
3549
+ let n = si();
3550
+ this.emit("languageChanging", e);
3551
+ let r = (e) => {
3552
+ this.language = e, this.languages = this.services.languageUtils.toResolveHierarchy(e), this.resolvedLanguage = void 0, this.setResolvedLanguage(e);
3553
+ }, i = (i, a) => {
3554
+ a ? this.isLanguageChangingTo === e && (r(a), this.translator.changeLanguage(a), this.isLanguageChangingTo = void 0, this.emit("languageChanged", a), this.logger.log("languageChanged", a)) : this.isLanguageChangingTo = void 0, n.resolve((...e) => this.t(...e)), t && t(i, (...e) => this.t(...e));
3555
+ }, a = (t) => {
3556
+ !e && !t && this.services.languageDetector && (t = []);
3557
+ let n = Z(t) ? t : t && t[0], a = this.store.hasLanguageSomeTranslations(n) ? n : this.services.languageUtils.getBestMatchFromCodes(Z(t) ? [t] : t);
3558
+ a && (this.language || r(a), this.translator.language || this.translator.changeLanguage(a), this.services.languageDetector?.cacheUserLanguage?.(a)), this.loadResources(a, (e) => {
3559
+ i(e, a);
3560
+ });
3561
+ };
3562
+ return !e && this.services.languageDetector && !this.services.languageDetector.async ? a(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(a) : this.services.languageDetector.detect(a) : a(e), n;
3563
+ }
3564
+ getFixedT(e, t, n) {
3565
+ let r = (e, t, ...i) => {
3566
+ let a;
3567
+ a = typeof t == "object" ? { ...t } : this.options.overloadTranslationOptionHandler([e, t].concat(i)), a.lng = a.lng || r.lng, a.lngs = a.lngs || r.lngs, a.ns = a.ns || r.ns, a.keyPrefix !== "" && (a.keyPrefix = a.keyPrefix || n || r.keyPrefix);
3568
+ let o = {
3569
+ ...this.options,
3570
+ ...a
3571
+ };
3572
+ typeof a.keyPrefix == "function" && (a.keyPrefix = Pi(a.keyPrefix, o));
3573
+ let s = this.options.keySeparator || ".", c;
3574
+ 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);
3575
+ };
3576
+ return Z(e) ? r.lng = e : r.lngs = e, r.ns = t, r.keyPrefix = n, r;
3577
+ }
3578
+ t(...e) {
3579
+ return this.translator?.translate(...e);
3580
+ }
3581
+ exists(...e) {
3582
+ return this.translator?.exists(...e);
3583
+ }
3584
+ setDefaultNamespace(e) {
3585
+ this.options.defaultNS = e;
3586
+ }
3587
+ hasLoadedNamespace(e, t = {}) {
3588
+ if (!this.isInitialized) return this.logger.warn("hasLoadedNamespace: i18next was not initialized", this.languages), !1;
3589
+ if (!this.languages || !this.languages.length) return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
3590
+ let n = t.lng || this.resolvedLanguage || this.languages[0], r = this.options ? this.options.fallbackLng : !1, i = this.languages[this.languages.length - 1];
3591
+ if (n.toLowerCase() === "cimode") return !0;
3592
+ let a = (e, t) => {
3593
+ let n = this.services.backendConnector.state[`${e}|${t}`];
3594
+ return n === -1 || n === 0 || n === 2;
3595
+ };
3596
+ if (t.precheck) {
3597
+ let e = t.precheck(this, a);
3598
+ if (e !== void 0) return e;
3599
+ }
3600
+ return !!(this.hasResourceBundle(n, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a(n, e) && (!r || a(i, e)));
3601
+ }
3602
+ loadNamespaces(e, t) {
3603
+ let n = si();
3604
+ return this.options.ns ? (Z(e) && (e = [e]), e.forEach((e) => {
3605
+ this.options.ns.indexOf(e) < 0 && this.options.ns.push(e);
3606
+ }), this.loadResources((e) => {
3607
+ n.resolve(), t && t(e);
3608
+ }), n) : (t && t(), Promise.resolve());
3609
+ }
3610
+ loadLanguages(e, t) {
3611
+ let n = si();
3612
+ Z(e) && (e = [e]);
3613
+ let r = this.options.preload || [], i = e.filter((e) => r.indexOf(e) < 0 && this.services.languageUtils.isSupportedCode(e));
3614
+ return i.length ? (this.options.preload = r.concat(i), this.loadResources((e) => {
3615
+ n.resolve(), t && t(e);
3616
+ }), n) : (t && t(), Promise.resolve());
3617
+ }
3618
+ dir(e) {
3619
+ if (e ||= this.resolvedLanguage || (this.languages?.length > 0 ? this.languages[0] : this.language), !e) return "rtl";
3620
+ try {
3621
+ let t = new Intl.Locale(e);
3622
+ if (t && t.getTextInfo) {
3623
+ let e = t.getTextInfo();
3624
+ if (e && e.direction) return e.direction;
3625
+ }
3626
+ } catch {}
3627
+ 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());
3628
+ return e.toLowerCase().indexOf("-latn") > 1 ? "ltr" : t.indexOf(n.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
3629
+ }
3630
+ static createInstance(t = {}, n) {
3631
+ let r = new e(t, n);
3632
+ return r.createInstance = e.createInstance, r;
3633
+ }
3634
+ cloneInstance(t = {}, n = $i) {
3635
+ let r = t.forkResourceStore;
3636
+ r && delete t.forkResourceStore;
3637
+ let i = {
3638
+ ...this.options,
3639
+ ...t,
3640
+ isClone: !0
3641
+ }, a = new e(i);
3642
+ if ((t.debug !== void 0 || t.prefix !== void 0) && (a.logger = a.logger.clone(t)), [
3643
+ "store",
3644
+ "services",
3645
+ "language"
3646
+ ].forEach((e) => {
3647
+ a[e] = this[e];
3648
+ }), 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) {
3649
+ let e = {
3650
+ ...Zi().interpolation,
3651
+ ...this.options.interpolation,
3652
+ ...t.interpolation
3653
+ }, n = {
3654
+ ...i,
3655
+ interpolation: e
3656
+ };
3657
+ a.services.interpolator = new Wi(n);
3658
+ }
3659
+ return a.translator = new Li(a.services, i), a.translator.on("*", (e, ...t) => {
3660
+ a.emit(e, ...t);
3661
+ }), a.init(i, n), a.translator.options = i, a.translator.backendConnector.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a;
3662
+ }
3663
+ toJSON() {
3664
+ return {
3665
+ options: this.options,
3666
+ store: this.store,
3667
+ language: this.language,
3668
+ languages: this.languages,
3669
+ resolvedLanguage: this.resolvedLanguage
3670
+ };
3671
+ }
3672
+ }.createInstance();
3673
+ //#endregion
3674
+ //#region ../../shared/translator/dist/index.js
3675
+ $.createInstance, $.dir, $.init, $.loadResources, $.reloadResources, $.use, $.changeLanguage, $.getFixedT, $.t, $.exists, $.setDefaultNamespace, $.hasLoadedNamespace, $.loadNamespaces, $.loadLanguages, $.init({
3676
+ fallbackLng: "en",
3677
+ lng: "en",
3678
+ showSupportNotice: !1,
3679
+ resources: {
3680
+ en: ai,
3681
+ es: oi
3682
+ }
3683
+ });
3684
+ //#endregion
3685
+ //#region src/i18n.ts
3686
+ var { translator: aa } = {
3687
+ translator: {
3688
+ ...$,
3689
+ t: (e, t) => {
3690
+ let { lng: n } = t;
3691
+ switch (n) {
3692
+ case "en_US":
3693
+ case "en-US":
3694
+ t.lng = "en";
3695
+ break;
3696
+ case "es_ES":
3697
+ case "es-ES":
3698
+ case "es_MX":
3699
+ case "es-MX":
3700
+ t.lng = "es";
3701
+ break;
3702
+ default: break;
3703
+ }
3704
+ return $.t(e, {
3705
+ lng: n,
3706
+ ...t
3707
+ });
3708
+ }
3709
+ },
3710
+ languageOptions: [{
3711
+ value: "en_US",
3712
+ label: "English (US)"
3713
+ }, {
3714
+ value: "es_ES",
3715
+ label: "Spanish"
3716
+ }]
3717
+ };
3718
+ function oa(e, t) {
3719
+ return aa.t(`translation:simpleCloze:${e}`, { lng: t });
3720
+ }
3721
+ //#endregion
1980
3722
  //#region src/print/Print.svelte
1981
- var Sr = /* @__PURE__ */ Zn("<div class=\"mb-4 prose prose-sm svelte-1fx5wwa\"></div>"), Cr = /* @__PURE__ */ Zn("<div class=\"p-4 print:p-0\"><!> <div class=\"inline-block\"><input type=\"text\" placeholder=\"______________________\" class=\"px-3 py-2 border-b-2 border-gray-400 bg-transparent print:border-black svelte-1fx5wwa\" style=\"border-top: none; border-left: none; border-right: none;\" disabled=\"\"/></div></div>"), wr = {
3723
+ 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 = {
1982
3724
  hash: "svelte-1fx5wwa",
1983
- code: "\n @media print {input.svelte-1fx5wwa {border-color:black !important;}\n }.prose.svelte-1fx5wwa p {margin:0.5em 0;}.prose.svelte-1fx5wwa strong {font-weight:600;}"
3725
+ 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 }"
1984
3726
  };
1985
- function Tr(e, t) {
1986
- We(t, !0), mr(e, wr);
1987
- let n = hr(t, "model", 7, null), r = /* @__PURE__ */ M("");
1988
- an(() => {
1989
- N(r, n()?.prompt || "", !0);
3727
+ function pa(e, t) {
3728
+ Ge(t, !0), Er(e, fa);
3729
+ 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);
3730
+ pn(() => {
3731
+ if (!X(l) || !X(a)) return;
3732
+ let e = (e) => console.warn("simple-cloze: MathJax render failed", e);
3733
+ try {
3734
+ Promise.resolve(Xr(X(l))).catch(e);
3735
+ } catch (t) {
3736
+ e(t);
3737
+ }
1990
3738
  });
1991
- var i = {
3739
+ var u = {
1992
3740
  get model() {
1993
3741
  return n();
1994
3742
  },
1995
3743
  set model(e = null) {
1996
- n(e), Tt();
3744
+ n(e), At();
3745
+ },
3746
+ get options() {
3747
+ return r();
3748
+ },
3749
+ set options(e = null) {
3750
+ r(e), At();
1997
3751
  }
1998
- }, a = Cr(), o = Jt(a), s = (e) => {
1999
- var t = Sr();
2000
- pr(t, () => Q(r), !0), Te(t), Qn(e, t);
3752
+ }, d = da(), f = $t(d), p = (e) => {
3753
+ var t = sa();
3754
+ Tr(t, () => X(c), !0), Ee(t), lr(e, t);
2001
3755
  };
2002
- return fr(o, (e) => {
2003
- Q(r) && e(s);
2004
- }), Ee(2), Te(a), Qn(e, a), Ge(i);
2005
- }
2006
- xr(Tr, { model: { type: "Object" } }, [], []);
3756
+ wr(f, (e) => {
3757
+ X(c) && e(p);
3758
+ });
3759
+ var m = nn(f, 2), h = (e) => {
3760
+ var t = ca();
3761
+ Tr(t, () => X(a), !0), Ee(t), Fr(t, (e) => N(l, e), () => X(l)), lr(e, t);
3762
+ };
3763
+ wr(m, (e) => {
3764
+ X(a) && e(h);
3765
+ });
3766
+ var g = nn(m, 2), ee = $t(g), _ = (e) => {
3767
+ var t = la(), r = en(t), i = tn(r, !0), a = tn(nn(r, 2), !0);
3768
+ bn((e) => {
3769
+ gr(i, e), gr(a, X(o));
3770
+ }, [() => oa("printCorrectAnswer", n()?.language)]), lr(e, t);
3771
+ }, v = (e) => {
3772
+ var t = ua();
3773
+ bn((e) => Ar(t, "aria-label", e), [() => oa("printAnswerBlank", n()?.language)]), lr(e, t);
3774
+ };
3775
+ return wr(ee, (e) => {
3776
+ X(s) ? e(_) : e(v, -1);
3777
+ }), Ee(g), Ee(d), lr(e, d), Ke(u);
3778
+ }
3779
+ Hr(pa, {
3780
+ model: { type: "Object" },
3781
+ options: { type: "Object" }
3782
+ }, [], []);
2007
3783
  //#endregion
2008
3784
  //#region src/print/index.ts
2009
- var Er = Tr.element, Dr = class extends Er {
3785
+ var ma = pa.element, ha = class extends ma {
2010
3786
  _model = null;
3787
+ _options = null;
2011
3788
  set model(e) {
2012
3789
  this._model = e, super.model = e;
2013
3790
  }
2014
3791
  get model() {
2015
3792
  return this._model;
2016
3793
  }
3794
+ set options(e) {
3795
+ this._options = e, super.options = e;
3796
+ }
3797
+ get options() {
3798
+ return this._options;
3799
+ }
2017
3800
  };
2018
3801
  //#endregion
2019
- export { Dr as default };
3802
+ export { ha as default };
2020
3803
 
2021
3804
  //# sourceMappingURL=print.js.map