eat-js-sdk 2.0.9 → 2.0.10

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.
@@ -6,7 +6,7 @@ var fo = (t, e, r) => e in t ? uo(t, e, { enumerable: !0, configurable: !0, writ
6
6
  var Mt = (t, e, r) => fo(t, typeof e != "symbol" ? e + "" : e, r), Mn = (t, e, r) => e.has(t) || yi("Cannot " + r);
7
7
  var v = (t, e, r) => (Mn(t, e, "read from private field"), r ? r.call(t) : e.get(t)), nt = (t, e, r) => e.has(t) ? yi("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), G = (t, e, r, n) => (Mn(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r), It = (t, e, r) => (Mn(t, e, "access private method"), r);
8
8
  const cr = {}, Ot = Symbol(), po = "http://www.w3.org/1999/xhtml", Pi = !1;
9
- var ei = Array.isArray, ho = Array.prototype.indexOf, ri = Array.from, mn = Object.keys, Or = Object.defineProperty, ar = Object.getOwnPropertyDescriptor, mo = Object.getOwnPropertyDescriptors, go = Object.prototype, vo = Array.prototype, Fi = Object.getPrototypeOf, Ci = Object.isExtensible;
9
+ var ei = Array.isArray, ho = Array.prototype.indexOf, ri = Array.from, mn = Object.keys, $r = Object.defineProperty, ar = Object.getOwnPropertyDescriptor, mo = Object.getOwnPropertyDescriptors, go = Object.prototype, vo = Array.prototype, Fi = Object.getPrototypeOf, Ci = Object.isExtensible;
10
10
  function wo(t) {
11
11
  return typeof t == "function";
12
12
  }
@@ -22,7 +22,7 @@ function zi() {
22
22
  });
23
23
  return { promise: r, resolve: t, reject: e };
24
24
  }
25
- const jt = 2, ni = 4, ii = 8, Ve = 16, He = 32, Be = 64, ai = 128, ie = 256, gn = 512, Pt = 1024, Kt = 2048, Ue = 4096, ue = 8192, gr = 16384, kn = 32768, vr = 65536, ki = 1 << 17, Wi = 1 << 18, wr = 1 << 19, xo = 1 << 20, Nn = 1 << 21, oi = 1 << 22, or = 1 << 23, Wr = Symbol("$state"), ji = Symbol("legacy props"), _o = Symbol(""), kr = new class extends Error {
25
+ const jt = 2, ni = 4, ii = 8, Ve = 16, Pe = 32, Be = 64, ai = 128, ie = 256, gn = 512, Pt = 1024, Kt = 2048, Ue = 4096, ue = 8192, gr = 16384, kn = 32768, vr = 65536, ki = 1 << 17, Wi = 1 << 18, wr = 1 << 19, xo = 1 << 20, Nn = 1 << 21, oi = 1 << 22, or = 1 << 23, jr = Symbol("$state"), ji = Symbol("legacy props"), _o = Symbol(""), Tr = new class extends Error {
26
26
  constructor() {
27
27
  super(...arguments);
28
28
  Mt(this, "name", "StaleReactionError");
@@ -65,7 +65,7 @@ function Lo() {
65
65
  function Do() {
66
66
  throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
67
67
  }
68
- function Jr(t) {
68
+ function tn(t) {
69
69
  console.warn("https://svelte.dev/e/hydration_mismatch");
70
70
  }
71
71
  function Oo() {
@@ -78,7 +78,7 @@ function Qt(t) {
78
78
  let et;
79
79
  function At(t) {
80
80
  if (t === null)
81
- throw Jr(), cr;
81
+ throw tn(), cr;
82
82
  return et = t;
83
83
  }
84
84
  function dr() {
@@ -90,7 +90,7 @@ function dr() {
90
90
  function D(t) {
91
91
  if (Q) {
92
92
  if (/* @__PURE__ */ Xt(et) !== null)
93
- throw Jr(), cr;
93
+ throw tn(), cr;
94
94
  et = t;
95
95
  }
96
96
  }
@@ -123,7 +123,7 @@ function vn(t = !0) {
123
123
  }
124
124
  function Vi(t) {
125
125
  if (!t || t.nodeType !== Ze)
126
- throw Jr(), cr;
126
+ throw tn(), cr;
127
127
  return (
128
128
  /** @type {Comment} */
129
129
  t.data
@@ -139,7 +139,7 @@ function Zi(t) {
139
139
  return !Ui(t, this.v);
140
140
  }
141
141
  let $o = !1, Ut = null;
142
- function $r(t) {
142
+ function Nr(t) {
143
143
  Ut = t;
144
144
  }
145
145
  function bt(t, e = !1, r) {
@@ -174,7 +174,7 @@ function Yi() {
174
174
  Je = [], bo(t);
175
175
  }
176
176
  function ur(t) {
177
- if (Je.length === 0 && !jr) {
177
+ if (Je.length === 0 && !qr) {
178
178
  var e = Je;
179
179
  queueMicrotask(() => {
180
180
  e === Je && Yi();
@@ -196,9 +196,9 @@ function Qi(t) {
196
196
  throw !e.parent && t instanceof Error && Ki(t), t;
197
197
  e.b.error(t);
198
198
  } else
199
- Nr(t, e);
199
+ Rr(t, e);
200
200
  }
201
- function Nr(t, e) {
201
+ function Rr(t, e) {
202
202
  for (; e !== null; ) {
203
203
  if ((e.f & ai) !== 0)
204
204
  try {
@@ -213,15 +213,15 @@ function Nr(t, e) {
213
213
  }
214
214
  function Ki(t) {
215
215
  const e = Ro.get(t);
216
- e && (Or(t, "message", {
216
+ e && ($r(t, "message", {
217
217
  value: e.message
218
- }), Or(t, "stack", {
218
+ }), $r(t, "stack", {
219
219
  value: e.stack
220
220
  }));
221
221
  }
222
222
  const sn = /* @__PURE__ */ new Set();
223
- let Ct = null, le = null, Rn = /* @__PURE__ */ new Set(), _e = [], Tn = null, Hn = !1, jr = !1;
224
- var Ar, Mr, tr, Zr, Lr, er, Dr, Gr, Yr, ae, Pn, un, Fn;
223
+ let kt = null, le = null, Rn = /* @__PURE__ */ new Set(), _e = [], Tn = null, Hn = !1, qr = !1;
224
+ var Mr, Lr, tr, Gr, Dr, er, Or, Yr, Qr, ae, Pn, un, Fn;
225
225
  const _n = class _n {
226
226
  constructor() {
227
227
  nt(this, ae);
@@ -236,13 +236,13 @@ const _n = class _n {
236
236
  * They keys of this map are identical to `this.#current`
237
237
  * @type {Map<Source, any>}
238
238
  */
239
- nt(this, Ar, /* @__PURE__ */ new Map());
239
+ nt(this, Mr, /* @__PURE__ */ new Map());
240
240
  /**
241
241
  * When the batch is committed (and the DOM is updated), we need to remove old branches
242
242
  * and append new ones by calling the functions added inside (if/each/key/etc) blocks
243
243
  * @type {Set<() => void>}
244
244
  */
245
- nt(this, Mr, /* @__PURE__ */ new Set());
245
+ nt(this, Lr, /* @__PURE__ */ new Set());
246
246
  /**
247
247
  * The number of async effects that are currently in flight
248
248
  */
@@ -252,13 +252,13 @@ const _n = class _n {
252
252
  * TODO replace with Promise.withResolvers once supported widely enough
253
253
  * @type {{ promise: Promise<void>, resolve: (value?: any) => void, reject: (reason: unknown) => void } | null}
254
254
  */
255
- nt(this, Zr, null);
255
+ nt(this, Gr, null);
256
256
  /**
257
257
  * Template effects and `$effect.pre` effects, which run when
258
258
  * a batch is committed
259
259
  * @type {Effect[]}
260
260
  */
261
- nt(this, Lr, []);
261
+ nt(this, Dr, []);
262
262
  /**
263
263
  * The same as `#render_effects`, but for `$effect` (which runs after)
264
264
  * @type {Effect[]}
@@ -269,17 +269,17 @@ const _n = class _n {
269
269
  * in order to update internal sources (e.g. each block items)
270
270
  * @type {Effect[]}
271
271
  */
272
- nt(this, Dr, []);
272
+ nt(this, Or, []);
273
273
  /**
274
274
  * Deferred effects (which run after async work has completed) that are DIRTY
275
275
  * @type {Effect[]}
276
276
  */
277
- nt(this, Gr, []);
277
+ nt(this, Yr, []);
278
278
  /**
279
279
  * Deferred effects that are MAYBE_DIRTY
280
280
  * @type {Effect[]}
281
281
  */
282
- nt(this, Yr, []);
282
+ nt(this, Qr, []);
283
283
  /**
284
284
  * A set of branches that still exist, but will be destroyed when this batch
285
285
  * is committed — we skip over these during `process`
@@ -298,10 +298,10 @@ const _n = class _n {
298
298
  if (v(this, tr) === 0) {
299
299
  var r = le;
300
300
  It(this, ae, Fn).call(this);
301
- var n = v(this, Lr), i = v(this, er);
302
- G(this, Lr, []), G(this, er, []), G(this, Dr, []), Ct = null, le = r, Ti(n), Ti(i), v(this, Zr)?.resolve();
301
+ var n = v(this, Dr), i = v(this, er);
302
+ G(this, Dr, []), G(this, er, []), G(this, Or, []), kt = null, le = r, Ti(n), Ti(i), v(this, Gr)?.resolve();
303
303
  } else
304
- It(this, ae, un).call(this, v(this, Lr)), It(this, ae, un).call(this, v(this, er)), It(this, ae, un).call(this, v(this, Dr));
304
+ It(this, ae, un).call(this, v(this, Dr)), It(this, ae, un).call(this, v(this, er)), It(this, ae, un).call(this, v(this, Or));
305
305
  le = null;
306
306
  }
307
307
  /**
@@ -311,22 +311,22 @@ const _n = class _n {
311
311
  * @param {any} value
312
312
  */
313
313
  capture(e, r) {
314
- v(this, Ar).has(e) || v(this, Ar).set(e, r), this.current.set(e, e.v), le?.set(e, e.v);
314
+ v(this, Mr).has(e) || v(this, Mr).set(e, r), this.current.set(e, e.v), le?.set(e, e.v);
315
315
  }
316
316
  activate() {
317
- Ct = this;
317
+ kt = this;
318
318
  }
319
319
  deactivate() {
320
- Ct = null, le = null;
320
+ kt = null, le = null;
321
321
  }
322
322
  flush() {
323
323
  if (_e.length > 0) {
324
- if (this.activate(), Xi(), Ct !== null && Ct !== this)
324
+ if (this.activate(), Xi(), kt !== null && kt !== this)
325
325
  return;
326
326
  } else v(this, tr) === 0 && It(this, ae, Fn).call(this);
327
327
  this.deactivate();
328
328
  for (const e of Rn)
329
- if (Rn.delete(e), e(), Ct !== null)
329
+ if (Rn.delete(e), e(), kt !== null)
330
330
  break;
331
331
  }
332
332
  increment() {
@@ -334,27 +334,27 @@ const _n = class _n {
334
334
  }
335
335
  decrement() {
336
336
  G(this, tr, v(this, tr) - 1);
337
- for (const e of v(this, Gr))
338
- Wt(e, Kt), fr(e);
339
337
  for (const e of v(this, Yr))
338
+ Wt(e, Kt), fr(e);
339
+ for (const e of v(this, Qr))
340
340
  Wt(e, Ue), fr(e);
341
341
  this.flush();
342
342
  }
343
343
  /** @param {() => void} fn */
344
344
  add_callback(e) {
345
- v(this, Mr).add(e);
345
+ v(this, Lr).add(e);
346
346
  }
347
347
  settled() {
348
- return (v(this, Zr) ?? G(this, Zr, zi())).promise;
348
+ return (v(this, Gr) ?? G(this, Gr, zi())).promise;
349
349
  }
350
350
  static ensure() {
351
- if (Ct === null) {
352
- const e = Ct = new _n();
353
- sn.add(Ct), jr || _n.enqueue(() => {
354
- Ct === e && e.flush();
351
+ if (kt === null) {
352
+ const e = kt = new _n();
353
+ sn.add(kt), qr || _n.enqueue(() => {
354
+ kt === e && e.flush();
355
355
  });
356
356
  }
357
- return Ct;
357
+ return kt;
358
358
  }
359
359
  /** @param {() => void} task */
360
360
  static enqueue(e) {
@@ -363,7 +363,7 @@ const _n = class _n {
363
363
  apply() {
364
364
  }
365
365
  };
366
- Ar = new WeakMap(), Mr = new WeakMap(), tr = new WeakMap(), Zr = new WeakMap(), Lr = new WeakMap(), er = new WeakMap(), Dr = new WeakMap(), Gr = new WeakMap(), Yr = new WeakMap(), ae = new WeakSet(), /**
366
+ Mr = new WeakMap(), Lr = new WeakMap(), tr = new WeakMap(), Gr = new WeakMap(), Dr = new WeakMap(), er = new WeakMap(), Or = new WeakMap(), Yr = new WeakMap(), Qr = new WeakMap(), ae = new WeakSet(), /**
367
367
  * Traverse the effect tree, executing effects or stashing
368
368
  * them for later execution as appropriate
369
369
  * @param {Effect} root
@@ -371,9 +371,9 @@ Ar = new WeakMap(), Mr = new WeakMap(), tr = new WeakMap(), Zr = new WeakMap(),
371
371
  Pn = function(e) {
372
372
  e.f ^= Pt;
373
373
  for (var r = e.first; r !== null; ) {
374
- var n = r.f, i = (n & (He | Be)) !== 0, a = i && (n & Pt) !== 0, o = a || (n & ue) !== 0 || this.skipped_effects.has(r);
374
+ var n = r.f, i = (n & (Pe | Be)) !== 0, a = i && (n & Pt) !== 0, o = a || (n & ue) !== 0 || this.skipped_effects.has(r);
375
375
  if (!o && r.fn !== null) {
376
- i ? r.f ^= Pt : (n & ni) !== 0 ? v(this, er).push(r) : En(r) && ((r.f & Ve) !== 0 && v(this, Dr).push(r), bn(r));
376
+ i ? r.f ^= Pt : (n & ni) !== 0 ? v(this, er).push(r) : En(r) && ((r.f & Ve) !== 0 && v(this, Or).push(r), bn(r));
377
377
  var d = r.first;
378
378
  if (d !== null) {
379
379
  r = d;
@@ -389,17 +389,17 @@ Pn = function(e) {
389
389
  */
390
390
  un = function(e) {
391
391
  for (const r of e)
392
- ((r.f & Kt) !== 0 ? v(this, Gr) : v(this, Yr)).push(r), Wt(r, Pt);
392
+ ((r.f & Kt) !== 0 ? v(this, Yr) : v(this, Qr)).push(r), Wt(r, Pt);
393
393
  e.length = 0;
394
394
  }, /**
395
395
  * Append and remove branches to/from the DOM
396
396
  */
397
397
  Fn = function() {
398
398
  var e;
399
- for (const r of v(this, Mr))
399
+ for (const r of v(this, Lr))
400
400
  r();
401
- if (v(this, Mr).clear(), sn.size > 1) {
402
- v(this, Ar).clear();
401
+ if (v(this, Lr).clear(), sn.size > 1) {
402
+ v(this, Mr).clear();
403
403
  let r = !0;
404
404
  for (const n of sn) {
405
405
  if (n === this) {
@@ -422,34 +422,34 @@ Fn = function() {
422
422
  for (const o of i)
423
423
  Ji(o, a);
424
424
  if (_e.length > 0) {
425
- Ct = n, n.apply();
425
+ kt = n, n.apply();
426
426
  for (const o of _e)
427
427
  It(e = n, ae, Pn).call(e, o);
428
428
  _e = [], n.deactivate();
429
429
  }
430
430
  }
431
431
  }
432
- Ct = null;
432
+ kt = null;
433
433
  }
434
434
  sn.delete(this);
435
435
  };
436
436
  let ye = _n;
437
437
  function _(t) {
438
- var e = jr;
439
- jr = !0;
438
+ var e = qr;
439
+ qr = !0;
440
440
  try {
441
441
  for (var r; ; ) {
442
- if (No(), _e.length === 0 && (Ct?.flush(), _e.length === 0))
442
+ if (No(), _e.length === 0 && (kt?.flush(), _e.length === 0))
443
443
  return Tn = null, /** @type {T} */
444
444
  r;
445
445
  Xi();
446
446
  }
447
447
  } finally {
448
- jr = e;
448
+ qr = e;
449
449
  }
450
450
  }
451
451
  function Xi() {
452
- var t = Er;
452
+ var t = Ir;
453
453
  Hn = !0;
454
454
  try {
455
455
  var e = 0;
@@ -469,7 +469,7 @@ function Ho() {
469
469
  try {
470
470
  So();
471
471
  } catch (t) {
472
- Nr(t, Tn);
472
+ Rr(t, Tn);
473
473
  }
474
474
  }
475
475
  let Xe = null;
@@ -520,7 +520,7 @@ function fr(t) {
520
520
  var r = e.f;
521
521
  if (Hn && e === X && (r & Ve) !== 0)
522
522
  return;
523
- if ((r & (Be | He)) !== 0) {
523
+ if ((r & (Be | Pe)) !== 0) {
524
524
  if ((r & Pt) === 0) return;
525
525
  e.f ^= Pt;
526
526
  }
@@ -530,9 +530,9 @@ function fr(t) {
530
530
  function Po(t) {
531
531
  let e = 0, r = pr(0), n;
532
532
  return () => {
533
- Go() && (s(r), ui(() => (e === 0 && (n = xr(() => t(() => qr(r)))), e += 1, () => {
533
+ Go() && (s(r), ui(() => (e === 0 && (n = xr(() => t(() => Vr(r)))), e += 1, () => {
534
534
  ur(() => {
535
- e -= 1, e === 0 && (n?.(), n = void 0, qr(r));
535
+ e -= 1, e === 0 && (n?.(), n = void 0, Vr(r));
536
536
  });
537
537
  })));
538
538
  };
@@ -541,7 +541,7 @@ var Fo = vr | wr | ai;
541
541
  function zo(t, e, r) {
542
542
  new Wo(t, e, r);
543
543
  }
544
- var oe, Gt, Qr, me, rr, ge, ee, qt, ve, Fe, nr, ze, ir, We, yn, Cn, Dt, ea, ra, fn, pn, zn;
544
+ var oe, Gt, Kr, me, rr, ge, ee, qt, ve, Fe, nr, ze, ir, We, yn, Cn, Dt, ea, ra, fn, pn, zn;
545
545
  class Wo {
546
546
  /**
547
547
  * @param {TemplateNode} node
@@ -556,7 +556,7 @@ class Wo {
556
556
  /** @type {TemplateNode} */
557
557
  nt(this, Gt);
558
558
  /** @type {TemplateNode | null} */
559
- nt(this, Qr, Q ? et : null);
559
+ nt(this, Kr, Q ? et : null);
560
560
  /** @type {BoundaryProps} */
561
561
  nt(this, me);
562
562
  /** @type {((anchor: Node) => void)} */
@@ -583,15 +583,15 @@ class Wo {
583
583
  */
584
584
  nt(this, We, null);
585
585
  nt(this, yn, () => {
586
- v(this, We) && Br(v(this, We), v(this, nr));
586
+ v(this, We) && Ur(v(this, We), v(this, nr));
587
587
  });
588
588
  nt(this, Cn, Po(() => (G(this, We, pr(v(this, nr))), () => {
589
589
  G(this, We, null);
590
590
  })));
591
591
  G(this, Gt, e), G(this, me, r), G(this, rr, n), this.parent = /** @type {Effect} */
592
- X.b, G(this, oe, !!v(this, me).pending), G(this, ge, Rr(() => {
592
+ X.b, G(this, oe, !!v(this, me).pending), G(this, ge, Hr(() => {
593
593
  if (X.b = this, Q) {
594
- const i = v(this, Qr);
594
+ const i = v(this, Kr);
595
595
  dr(), /** @type {Comment} */
596
596
  i.nodeType === Ze && /** @type {Comment} */
597
597
  i.data === "[!" ? It(this, Dt, ra).call(this) : It(this, Dt, ea).call(this);
@@ -638,7 +638,7 @@ class Wo {
638
638
  throw e;
639
639
  v(this, ee) && (zt(v(this, ee)), G(this, ee, null)), v(this, qt) && (zt(v(this, qt)), G(this, qt, null)), v(this, ve) && (zt(v(this, ve)), G(this, ve, null)), Q && (At(
640
640
  /** @type {TemplateNode} */
641
- v(this, Qr)
641
+ v(this, Kr)
642
642
  ), li(), At(vn()));
643
643
  var i = !1, a = !1;
644
644
  const o = () => {
@@ -646,7 +646,7 @@ class Wo {
646
646
  Oo();
647
647
  return;
648
648
  }
649
- i = !0, a && Do(), ye.ensure(), G(this, nr, 0), v(this, ve) !== null && Sr(v(this, ve), () => {
649
+ i = !0, a && Do(), ye.ensure(), G(this, nr, 0), v(this, ve) !== null && Er(v(this, ve), () => {
650
650
  G(this, ve, null);
651
651
  }), G(this, oe, this.has_pending_snippet()), G(this, ee, It(this, Dt, fn).call(this, () => (G(this, ir, !1), ne(() => v(this, rr).call(this, v(this, Gt)))))), v(this, ze) > 0 ? It(this, Dt, pn).call(this) : G(this, oe, !1);
652
652
  };
@@ -654,7 +654,7 @@ class Wo {
654
654
  try {
655
655
  Bt(null), a = !0, r?.(e, o), a = !1;
656
656
  } catch (l) {
657
- Nr(l, v(this, ge) && v(this, ge).parent);
657
+ Rr(l, v(this, ge) && v(this, ge).parent);
658
658
  } finally {
659
659
  Bt(d);
660
660
  }
@@ -670,7 +670,7 @@ class Wo {
670
670
  );
671
671
  });
672
672
  } catch (l) {
673
- return Nr(
673
+ return Rr(
674
674
  l,
675
675
  /** @type {Effect} */
676
676
  v(this, ge).parent
@@ -682,7 +682,7 @@ class Wo {
682
682
  });
683
683
  }
684
684
  }
685
- oe = new WeakMap(), Gt = new WeakMap(), Qr = new WeakMap(), me = new WeakMap(), rr = new WeakMap(), ge = new WeakMap(), ee = new WeakMap(), qt = new WeakMap(), ve = new WeakMap(), Fe = new WeakMap(), nr = new WeakMap(), ze = new WeakMap(), ir = new WeakMap(), We = new WeakMap(), yn = new WeakMap(), Cn = new WeakMap(), Dt = new WeakSet(), ea = function() {
685
+ oe = new WeakMap(), Gt = new WeakMap(), Kr = new WeakMap(), me = new WeakMap(), rr = new WeakMap(), ge = new WeakMap(), ee = new WeakMap(), qt = new WeakMap(), ve = new WeakMap(), Fe = new WeakMap(), nr = new WeakMap(), ze = new WeakMap(), ir = new WeakMap(), We = new WeakMap(), yn = new WeakMap(), Cn = new WeakMap(), Dt = new WeakSet(), ea = function() {
686
686
  try {
687
687
  G(this, ee, ne(() => v(this, rr).call(this, v(this, Gt))));
688
688
  } catch (e) {
@@ -692,7 +692,7 @@ oe = new WeakMap(), Gt = new WeakMap(), Qr = new WeakMap(), me = new WeakMap(),
692
692
  }, ra = function() {
693
693
  const e = v(this, me).pending;
694
694
  e && (G(this, qt, ne(() => e(v(this, Gt)))), ye.enqueue(() => {
695
- G(this, ee, It(this, Dt, fn).call(this, () => (ye.ensure(), ne(() => v(this, rr).call(this, v(this, Gt)))))), v(this, ze) > 0 ? It(this, Dt, pn).call(this) : (Sr(
695
+ G(this, ee, It(this, Dt, fn).call(this, () => (ye.ensure(), ne(() => v(this, rr).call(this, v(this, Gt)))))), v(this, ze) > 0 ? It(this, Dt, pn).call(this) : (Er(
696
696
  /** @type {Effect} */
697
697
  v(this, qt),
698
698
  () => {
@@ -705,13 +705,13 @@ oe = new WeakMap(), Gt = new WeakMap(), Qr = new WeakMap(), me = new WeakMap(),
705
705
  */
706
706
  fn = function(e) {
707
707
  var r = X, n = tt, i = Ut;
708
- Te(v(this, ge)), Bt(v(this, ge)), $r(v(this, ge).ctx);
708
+ Te(v(this, ge)), Bt(v(this, ge)), Nr(v(this, ge).ctx);
709
709
  try {
710
710
  return e();
711
711
  } catch (a) {
712
712
  return Qi(a), null;
713
713
  } finally {
714
- Te(r), Bt(n), $r(i);
714
+ Te(r), Bt(n), Nr(i);
715
715
  }
716
716
  }, pn = function() {
717
717
  const e = (
@@ -730,7 +730,7 @@ zn = function(e) {
730
730
  this.parent && It(r = this.parent, Dt, zn).call(r, e);
731
731
  return;
732
732
  }
733
- G(this, ze, v(this, ze) + e), v(this, ze) === 0 && (G(this, oe, !1), v(this, qt) && Sr(v(this, qt), () => {
733
+ G(this, ze, v(this, ze) + e), v(this, ze) === 0 && (G(this, oe, !1), v(this, qt) && Er(v(this, qt), () => {
734
734
  G(this, qt, null);
735
735
  }), v(this, Fe) && (v(this, Gt).before(v(this, Fe)), G(this, Fe, null)), ur(() => {
736
736
  ye.ensure().flush();
@@ -742,7 +742,7 @@ function jo(t, e, r) {
742
742
  r(t.map(n));
743
743
  return;
744
744
  }
745
- var i = Ct, a = (
745
+ var i = kt, a = (
746
746
  /** @type {Effect} */
747
747
  X
748
748
  ), o = qo(), d = Q;
@@ -751,23 +751,23 @@ function jo(t, e, r) {
751
751
  try {
752
752
  r([...t.map(n), ...l]);
753
753
  } catch (c) {
754
- (a.f & gr) === 0 && Nr(c, a);
754
+ (a.f & gr) === 0 && Rr(c, a);
755
755
  }
756
756
  d && Qt(!1), i?.deactivate(), Wn();
757
757
  }).catch((l) => {
758
- Nr(l, a);
758
+ Rr(l, a);
759
759
  });
760
760
  }
761
761
  function qo() {
762
- var t = X, e = tt, r = Ut, n = Ct, i = Q;
762
+ var t = X, e = tt, r = Ut, n = kt, i = Q;
763
763
  if (i)
764
764
  var a = et;
765
765
  return function() {
766
- Te(t), Bt(e), $r(r), n?.activate(), i && (Qt(!0), At(a));
766
+ Te(t), Bt(e), Nr(r), n?.activate(), i && (Qt(!0), At(a));
767
767
  };
768
768
  }
769
769
  function Wn() {
770
- Te(null), Bt(null), $r(null);
770
+ Te(null), Bt(null), Nr(null);
771
771
  }
772
772
  // @__NO_SIDE_EFFECTS__
773
773
  function Sn(t) {
@@ -821,17 +821,17 @@ function Vo(t, e) {
821
821
  }
822
822
  var c = (
823
823
  /** @type {Batch} */
824
- Ct
824
+ kt
825
825
  ), u = n.is_pending();
826
- o && (n.update_pending_count(1), u || (c.increment(), d.get(c)?.reject(kr), d.delete(c), d.set(c, l)));
826
+ o && (n.update_pending_count(1), u || (c.increment(), d.get(c)?.reject(Tr), d.delete(c), d.set(c, l)));
827
827
  const p = (h, f = void 0) => {
828
828
  if (u || c.activate(), f)
829
- f !== kr && (a.f |= or, Br(a, f));
829
+ f !== Tr && (a.f |= or, Ur(a, f));
830
830
  else {
831
- (a.f & or) !== 0 && (a.f ^= or), Br(a, h);
831
+ (a.f & or) !== 0 && (a.f ^= or), Ur(a, h);
832
832
  for (const [m, g] of d) {
833
833
  if (d.delete(m), m === c) break;
834
- g.reject(kr);
834
+ g.reject(Tr);
835
835
  }
836
836
  }
837
837
  o && (n.update_pending_count(-1), u || c.decrement());
@@ -839,7 +839,7 @@ function Vo(t, e) {
839
839
  l.promise.then(p, (h) => p(null, h || "unknown"));
840
840
  }), pa(() => {
841
841
  for (const l of d.values())
842
- l.reject(kr);
842
+ l.reject(Tr);
843
843
  }), new Promise((l) => {
844
844
  function c(u) {
845
845
  function p() {
@@ -928,11 +928,11 @@ function oa(t, e = !1, r = !0) {
928
928
  function C(t, e, r = !1) {
929
929
  tt !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
930
930
  // to ensure we error if state is set inside an inspect effect
931
- (!ce || (tt.f & ki) !== 0) && Gi() && (tt.f & (jt | Ve | oi | ki)) !== 0 && !Ne?.includes(t) && Lo();
932
- let n = r ? Oe(e) : e;
933
- return Br(t, n);
931
+ (!ce || (tt.f & ki) !== 0) && Gi() && (tt.f & (jt | Ve | oi | ki)) !== 0 && !Re?.includes(t) && Lo();
932
+ let n = r ? $e(e) : e;
933
+ return Ur(t, n);
934
934
  }
935
- function Br(t, e) {
935
+ function Ur(t, e) {
936
936
  if (!t.equals(e)) {
937
937
  var r = t.v;
938
938
  br ? qe.set(t, e) : qe.set(t, r), t.v = e;
@@ -940,11 +940,11 @@ function Br(t, e) {
940
940
  n.capture(t, r), (t.f & jt) !== 0 && ((t.f & Kt) !== 0 && ci(
941
941
  /** @type {Derived} */
942
942
  t
943
- ), Wt(t, (t.f & ie) === 0 ? Pt : Ue)), t.wv = ka(), sa(t, Kt), X !== null && (X.f & Pt) !== 0 && (X.f & (He | Be)) === 0 && (te === null ? Jo([t]) : te.push(t));
943
+ ), Wt(t, (t.f & ie) === 0 ? Pt : Ue)), t.wv = ka(), sa(t, Kt), X !== null && (X.f & Pt) !== 0 && (X.f & (Pe | Be)) === 0 && (te === null ? Jo([t]) : te.push(t));
944
944
  }
945
945
  return e;
946
946
  }
947
- function qr(t) {
947
+ function Vr(t) {
948
948
  C(t, t.v + 1);
949
949
  }
950
950
  function sa(t, e) {
@@ -965,8 +965,8 @@ function sa(t, e) {
965
965
  ));
966
966
  }
967
967
  }
968
- function Oe(t) {
969
- if (typeof t != "object" || t === null || Wr in t)
968
+ function $e(t) {
969
+ if (typeof t != "object" || t === null || jr in t)
970
970
  return t;
971
971
  const e = Fi(t);
972
972
  if (e !== go && e !== vo)
@@ -999,18 +999,18 @@ function Oe(t) {
999
999
  if (c === void 0) {
1000
1000
  if (l in d) {
1001
1001
  const u = o(() => /* @__PURE__ */ W(Ot));
1002
- r.set(l, u), qr(i);
1002
+ r.set(l, u), Vr(i);
1003
1003
  }
1004
1004
  } else
1005
- C(c, Ot), qr(i);
1005
+ C(c, Ot), Vr(i);
1006
1006
  return !0;
1007
1007
  },
1008
1008
  get(d, l, c) {
1009
- if (l === Wr)
1009
+ if (l === jr)
1010
1010
  return t;
1011
1011
  var u = r.get(l), p = l in d;
1012
1012
  if (u === void 0 && (!p || ar(d, l)?.writable) && (u = o(() => {
1013
- var f = Oe(p ? d[l] : Ot), m = /* @__PURE__ */ W(f);
1013
+ var f = $e(p ? d[l] : Ot), m = /* @__PURE__ */ W(f);
1014
1014
  return m;
1015
1015
  }), r.set(l, u)), u !== void 0) {
1016
1016
  var h = s(u);
@@ -1036,12 +1036,12 @@ function Oe(t) {
1036
1036
  return c;
1037
1037
  },
1038
1038
  has(d, l) {
1039
- if (l === Wr)
1039
+ if (l === jr)
1040
1040
  return !0;
1041
1041
  var c = r.get(l), u = c !== void 0 && c.v !== Ot || Reflect.has(d, l);
1042
1042
  if (c !== void 0 || X !== null && (!u || ar(d, l)?.writable)) {
1043
1043
  c === void 0 && (c = o(() => {
1044
- var h = u ? Oe(d[l]) : Ot, f = /* @__PURE__ */ W(h);
1044
+ var h = u ? $e(d[l]) : Ot, f = /* @__PURE__ */ W(h);
1045
1045
  return f;
1046
1046
  }), r.set(l, c));
1047
1047
  var p = s(c);
@@ -1059,10 +1059,10 @@ function Oe(t) {
1059
1059
  m !== void 0 ? C(m, Ot) : f in d && (m = o(() => /* @__PURE__ */ W(Ot)), r.set(f + "", m));
1060
1060
  }
1061
1061
  if (p === void 0)
1062
- (!h || ar(d, l)?.writable) && (p = o(() => /* @__PURE__ */ W(void 0)), C(p, Oe(c)), r.set(l, p));
1062
+ (!h || ar(d, l)?.writable) && (p = o(() => /* @__PURE__ */ W(void 0)), C(p, $e(c)), r.set(l, p));
1063
1063
  else {
1064
1064
  h = p.v !== Ot;
1065
- var g = o(() => Oe(c));
1065
+ var g = o(() => $e(c));
1066
1066
  C(p, g);
1067
1067
  }
1068
1068
  var w = Reflect.getOwnPropertyDescriptor(d, l);
@@ -1074,7 +1074,7 @@ function Oe(t) {
1074
1074
  ), T = Number(l);
1075
1075
  Number.isInteger(T) && T >= k.v && C(k, T + 1);
1076
1076
  }
1077
- qr(i);
1077
+ Vr(i);
1078
1078
  }
1079
1079
  return !0;
1080
1080
  },
@@ -1165,7 +1165,7 @@ function ua(t) {
1165
1165
  function fa() {
1166
1166
  return !1;
1167
1167
  }
1168
- function tn(t) {
1168
+ function en(t) {
1169
1169
  var e = tt, r = X;
1170
1170
  Bt(null), Te(null);
1171
1171
  try {
@@ -1234,7 +1234,7 @@ function Lt(t) {
1234
1234
  var e = (
1235
1235
  /** @type {Effect} */
1236
1236
  X.f
1237
- ), r = !tt && (e & He) !== 0 && (e & kn) === 0;
1237
+ ), r = !tt && (e & Pe) !== 0 && (e & kn) === 0;
1238
1238
  if (r) {
1239
1239
  var n = (
1240
1240
  /** @type {ComponentContext} */
@@ -1258,7 +1258,7 @@ function Qo(t) {
1258
1258
  ye.ensure();
1259
1259
  const e = Se(Be | wr, t, !0);
1260
1260
  return (r = {}) => new Promise((n) => {
1261
- r.outro ? Sr(e, () => {
1261
+ r.outro ? Er(e, () => {
1262
1262
  zt(e), n(void 0);
1263
1263
  }) : (zt(e), n(void 0));
1264
1264
  });
@@ -1272,17 +1272,17 @@ function Ko(t) {
1272
1272
  function ui(t, e = 0) {
1273
1273
  return Se(ii | e, t, !0);
1274
1274
  }
1275
- function it(t, e = [], r = []) {
1275
+ function at(t, e = [], r = []) {
1276
1276
  jo(e, r, (n) => {
1277
1277
  Se(ii, () => t(...n.map(s)), !0);
1278
1278
  });
1279
1279
  }
1280
- function Rr(t, e = 0) {
1280
+ function Hr(t, e = 0) {
1281
1281
  var r = Se(Ve | e, t, !0);
1282
1282
  return r;
1283
1283
  }
1284
1284
  function ne(t, e = !0) {
1285
- return Se(He | wr, t, !0, e);
1285
+ return Se(Pe | wr, t, !0, e);
1286
1286
  }
1287
1287
  function ma(t) {
1288
1288
  var e = t.teardown;
@@ -1300,8 +1300,8 @@ function ga(t, e = !1) {
1300
1300
  var r = t.first;
1301
1301
  for (t.first = t.last = null; r !== null; ) {
1302
1302
  const i = r.ac;
1303
- i !== null && tn(() => {
1304
- i.abort(kr);
1303
+ i !== null && en(() => {
1304
+ i.abort(Tr);
1305
1305
  });
1306
1306
  var n = r.next;
1307
1307
  (r.f & Be) !== 0 ? r.parent = null : zt(r, e), r = n;
@@ -1310,7 +1310,7 @@ function ga(t, e = !1) {
1310
1310
  function Xo(t) {
1311
1311
  for (var e = t.first; e !== null; ) {
1312
1312
  var r = e.next;
1313
- (e.f & He) === 0 && zt(e), e = r;
1313
+ (e.f & Pe) === 0 && zt(e), e = r;
1314
1314
  }
1315
1315
  }
1316
1316
  function zt(t, e = !0) {
@@ -1341,7 +1341,7 @@ function wa(t) {
1341
1341
  var e = t.parent, r = t.prev, n = t.next;
1342
1342
  r !== null && (r.next = n), n !== null && (n.prev = r), e !== null && (e.first === t && (e.first = n), e.last === t && (e.last = r));
1343
1343
  }
1344
- function Sr(t, e, r = !0) {
1344
+ function Er(t, e, r = !0) {
1345
1345
  var n = [];
1346
1346
  fi(t, n, !0), ba(n, () => {
1347
1347
  r && zt(t), e && e();
@@ -1362,7 +1362,7 @@ function fi(t, e, r) {
1362
1362
  for (const o of t.transitions)
1363
1363
  (o.is_global || r) && e.push(o);
1364
1364
  for (var n = t.first; n !== null; ) {
1365
- var i = n.next, a = (n.f & vr) !== 0 || (n.f & He) !== 0;
1365
+ var i = n.next, a = (n.f & vr) !== 0 || (n.f & Pe) !== 0;
1366
1366
  fi(n, e, a ? r : !1), n = i;
1367
1367
  }
1368
1368
  }
@@ -1374,7 +1374,7 @@ function xa(t, e) {
1374
1374
  if ((t.f & ue) !== 0) {
1375
1375
  t.f ^= ue, (t.f & Pt) === 0 && (Wt(t, Kt), fr(t));
1376
1376
  for (var r = t.first; r !== null; ) {
1377
- var n = r.next, i = (r.f & vr) !== 0 || (r.f & He) !== 0;
1377
+ var n = r.next, i = (r.f & vr) !== 0 || (r.f & Pe) !== 0;
1378
1378
  xa(r, i ? e : !1), r = n;
1379
1379
  }
1380
1380
  if (t.transitions !== null)
@@ -1391,9 +1391,9 @@ function _a(t, e) {
1391
1391
  e.append(r), r = i;
1392
1392
  }
1393
1393
  }
1394
- let Er = !1;
1394
+ let Ir = !1;
1395
1395
  function Ei(t) {
1396
- Er = t;
1396
+ Ir = t;
1397
1397
  }
1398
1398
  let br = !1;
1399
1399
  function Ii(t) {
@@ -1407,15 +1407,15 @@ let X = null;
1407
1407
  function Te(t) {
1408
1408
  X = t;
1409
1409
  }
1410
- let Ne = null;
1410
+ let Re = null;
1411
1411
  function ya(t) {
1412
- tt !== null && (Ne === null ? Ne = [t] : Ne.push(t));
1412
+ tt !== null && (Re === null ? Re = [t] : Re.push(t));
1413
1413
  }
1414
1414
  let Ht = null, Zt = 0, te = null;
1415
1415
  function Jo(t) {
1416
1416
  te = t;
1417
1417
  }
1418
- let Ca = 1, Ur = 0, sr = Ur;
1418
+ let Ca = 1, Zr = 0, sr = Zr;
1419
1419
  function Ai(t) {
1420
1420
  sr = t;
1421
1421
  }
@@ -1456,7 +1456,7 @@ function En(t) {
1456
1456
  }
1457
1457
  function Ta(t, e, r = !0) {
1458
1458
  var n = t.reactions;
1459
- if (n !== null && !Ne?.includes(t))
1459
+ if (n !== null && !Re?.includes(t))
1460
1460
  for (var i = 0; i < n.length; i++) {
1461
1461
  var a = n[i];
1462
1462
  (a.f & jt) !== 0 ? Ta(
@@ -1472,10 +1472,10 @@ function Ta(t, e, r = !0) {
1472
1472
  }
1473
1473
  function Sa(t) {
1474
1474
  var g;
1475
- var e = Ht, r = Zt, n = te, i = tt, a = je, o = Ne, d = Ut, l = ce, c = sr, u = t.f;
1475
+ var e = Ht, r = Zt, n = te, i = tt, a = je, o = Re, d = Ut, l = ce, c = sr, u = t.f;
1476
1476
  Ht = /** @type {null | Value[]} */
1477
- null, Zt = 0, te = null, je = (u & ie) !== 0 && (ce || !Er || tt === null), tt = (u & (He | Be)) === 0 ? t : null, Ne = null, $r(t.ctx), ce = !1, sr = ++Ur, t.ac !== null && (tn(() => {
1478
- t.ac.abort(kr);
1477
+ null, Zt = 0, te = null, je = (u & ie) !== 0 && (ce || !Ir || tt === null), tt = (u & (Pe | Be)) === 0 ? t : null, Re = null, Nr(t.ctx), ce = !1, sr = ++Zr, t.ac !== null && (en(() => {
1478
+ t.ac.abort(Tr);
1479
1479
  }), t.ac = null);
1480
1480
  try {
1481
1481
  t.f |= Nn;
@@ -1504,12 +1504,12 @@ function Sa(t) {
1504
1504
  /** @type {Effect} */
1505
1505
  t
1506
1506
  );
1507
- return i !== null && i !== t && (Ur++, te !== null && (n === null ? n = te : n.push(.../** @type {Source[]} */
1507
+ return i !== null && i !== t && (Zr++, te !== null && (n === null ? n = te : n.push(.../** @type {Source[]} */
1508
1508
  te))), (t.f & or) !== 0 && (t.f ^= or), h;
1509
1509
  } catch (w) {
1510
1510
  return Qi(w);
1511
1511
  } finally {
1512
- t.f ^= Nn, Ht = e, Zt = r, te = n, tt = i, je = a, Ne = o, $r(d), ce = l, sr = c;
1512
+ t.f ^= Nn, Ht = e, Zt = r, te = n, tt = i, je = a, Re = o, Nr(d), ce = l, sr = c;
1513
1513
  }
1514
1514
  }
1515
1515
  function ts(t, e) {
@@ -1543,8 +1543,8 @@ function bn(t) {
1543
1543
  var e = t.f;
1544
1544
  if ((e & gr) === 0) {
1545
1545
  Wt(t, Pt);
1546
- var r = X, n = Er;
1547
- X = t, Er = !0;
1546
+ var r = X, n = Ir;
1547
+ X = t, Ir = !0;
1548
1548
  try {
1549
1549
  (e & Ve) !== 0 ? Xo(t) : ga(t), ma(t);
1550
1550
  var i = Sa(t);
@@ -1552,7 +1552,7 @@ function bn(t) {
1552
1552
  var a;
1553
1553
  Pi && $o && (t.f & Kt) !== 0 && t.deps;
1554
1554
  } finally {
1555
- Er = n, X = r;
1555
+ Ir = n, X = r;
1556
1556
  }
1557
1557
  }
1558
1558
  }
@@ -1563,10 +1563,10 @@ function s(t) {
1563
1563
  var e = t.f, r = (e & jt) !== 0;
1564
1564
  if (tt !== null && !ce) {
1565
1565
  var n = X !== null && (X.f & gr) !== 0;
1566
- if (!n && !Ne?.includes(t)) {
1566
+ if (!n && !Re?.includes(t)) {
1567
1567
  var i = tt.deps;
1568
1568
  if ((tt.f & Nn) !== 0)
1569
- t.rv < Ur && (t.rv = Ur, Ht === null && i !== null && i[Zt] === t ? Zt++ : Ht === null ? Ht = [t] : (!je || !Ht.includes(t)) && Ht.push(t));
1569
+ t.rv < Zr && (t.rv = Zr, Ht === null && i !== null && i[Zt] === t ? Zt++ : Ht === null ? Ht = [t] : (!je || !Ht.includes(t)) && Ht.push(t));
1570
1570
  else {
1571
1571
  (tt.deps ?? (tt.deps = [])).push(t);
1572
1572
  var a = t.reactions;
@@ -1637,8 +1637,8 @@ function hi(t) {
1637
1637
  }
1638
1638
  function rs(t, e, r, n = {}) {
1639
1639
  function i(a) {
1640
- if (n.capture || zr.call(e, a), !a.cancelBubble)
1641
- return tn(() => r?.call(this, a));
1640
+ if (n.capture || Wr.call(e, a), !a.cancelBubble)
1641
+ return en(() => r?.call(this, a));
1642
1642
  }
1643
1643
  return t.startsWith("pointer") || t.startsWith("touch") || t === "wheel" ? ur(() => {
1644
1644
  e.addEventListener(t, i, n);
@@ -1653,14 +1653,14 @@ function hr(t, e, r, n, i) {
1653
1653
  e.removeEventListener(t, o, a);
1654
1654
  });
1655
1655
  }
1656
- function en(t) {
1656
+ function rn(t) {
1657
1657
  for (var e = 0; e < t.length; e++)
1658
1658
  Ia.add(t[e]);
1659
1659
  for (var r of qn)
1660
1660
  r(t);
1661
1661
  }
1662
1662
  let Mi = null;
1663
- function zr(t) {
1663
+ function Wr(t) {
1664
1664
  var e = this, r = (
1665
1665
  /** @type {Node} */
1666
1666
  e.ownerDocument
@@ -1684,7 +1684,7 @@ function zr(t) {
1684
1684
  }
1685
1685
  if (a = /** @type {Element} */
1686
1686
  i[o] || t.target, a !== e) {
1687
- Or(t, "currentTarget", {
1687
+ $r(t, "currentTarget", {
1688
1688
  configurable: !0,
1689
1689
  get() {
1690
1690
  return a || r;
@@ -1746,7 +1746,7 @@ function is(t) {
1746
1746
  }
1747
1747
  Q || (n = document.head.appendChild(fe()));
1748
1748
  try {
1749
- Rr(() => t(n), Wi);
1749
+ Hr(() => t(n), Wi);
1750
1750
  } finally {
1751
1751
  r && (Qt(!0), Jt = et, At(
1752
1752
  /** @type {TemplateNode} */
@@ -1876,7 +1876,7 @@ function ls(t, e) {
1876
1876
  Qt(n), At(i), ns();
1877
1877
  }
1878
1878
  }
1879
- const yr = /* @__PURE__ */ new Map();
1879
+ const Cr = /* @__PURE__ */ new Map();
1880
1880
  function La(t, { target: e, anchor: r, props: n = {}, events: i, context: a, intro: o = !0 }) {
1881
1881
  jn();
1882
1882
  var d = /* @__PURE__ */ new Set(), l = (p) => {
@@ -1885,9 +1885,9 @@ function La(t, { target: e, anchor: r, props: n = {}, events: i, context: a, int
1885
1885
  if (!d.has(f)) {
1886
1886
  d.add(f);
1887
1887
  var m = ss(f);
1888
- e.addEventListener(f, zr, { passive: m });
1889
- var g = yr.get(f);
1890
- g === void 0 ? (document.addEventListener(f, zr, { passive: m }), yr.set(f, 1)) : yr.set(f, g + 1);
1888
+ e.addEventListener(f, Wr, { passive: m });
1889
+ var g = Cr.get(f);
1890
+ g === void 0 ? (document.addEventListener(f, Wr, { passive: m }), Cr.set(f, 1)) : Cr.set(f, g + 1);
1891
1891
  }
1892
1892
  }
1893
1893
  };
@@ -1916,17 +1916,17 @@ function La(t, { target: e, anchor: r, props: n = {}, events: i, context: a, int
1916
1916
  null
1917
1917
  ), Vn = o, c = t(h, n) || {}, Vn = !0, Q && (X.nodes_end = et, et === null || et.nodeType !== Ze || /** @type {Comment} */
1918
1918
  et.data !== "]"))
1919
- throw Jr(), cr;
1919
+ throw tn(), cr;
1920
1920
  a && xt();
1921
1921
  }
1922
1922
  ), () => {
1923
1923
  for (var h of d) {
1924
- e.removeEventListener(h, zr);
1924
+ e.removeEventListener(h, Wr);
1925
1925
  var f = (
1926
1926
  /** @type {number} */
1927
- yr.get(h)
1927
+ Cr.get(h)
1928
1928
  );
1929
- --f === 0 ? (document.removeEventListener(h, zr), yr.delete(h)) : yr.set(h, f);
1929
+ --f === 0 ? (document.removeEventListener(h, Wr), Cr.delete(h)) : Cr.set(h, f);
1930
1930
  }
1931
1931
  qn.delete(l), p !== r && p.parentNode?.removeChild(p);
1932
1932
  };
@@ -1938,7 +1938,7 @@ function cs(t, e) {
1938
1938
  const r = Bn.get(t);
1939
1939
  return r ? (Bn.delete(t), r(e)) : Promise.resolve();
1940
1940
  }
1941
- var Me, we, se, Kr, Xr;
1941
+ var Le, we, se, Xr, Jr;
1942
1942
  class gi {
1943
1943
  /**
1944
1944
  * @param {TemplateNode} anchor
@@ -1948,7 +1948,7 @@ class gi {
1948
1948
  /** @type {TemplateNode} */
1949
1949
  Mt(this, "anchor");
1950
1950
  /** @type {Map<Batch, Key>} */
1951
- nt(this, Me, /* @__PURE__ */ new Map());
1951
+ nt(this, Le, /* @__PURE__ */ new Map());
1952
1952
  /** @type {Map<Key, Effect>} */
1953
1953
  nt(this, we, /* @__PURE__ */ new Map());
1954
1954
  /** @type {Map<Key, Branch>} */
@@ -1957,16 +1957,16 @@ class gi {
1957
1957
  * Whether to pause (i.e. outro) on change, or destroy immediately.
1958
1958
  * This is necessary for `<svelte:element>`
1959
1959
  */
1960
- nt(this, Kr, !0);
1961
- nt(this, Xr, () => {
1960
+ nt(this, Xr, !0);
1961
+ nt(this, Jr, () => {
1962
1962
  var e = (
1963
1963
  /** @type {Batch} */
1964
- Ct
1964
+ kt
1965
1965
  );
1966
- if (v(this, Me).has(e)) {
1966
+ if (v(this, Le).has(e)) {
1967
1967
  var r = (
1968
1968
  /** @type {Key} */
1969
- v(this, Me).get(e)
1969
+ v(this, Le).get(e)
1970
1970
  ), n = v(this, we).get(r);
1971
1971
  if (n)
1972
1972
  pi(n);
@@ -1974,8 +1974,8 @@ class gi {
1974
1974
  var i = v(this, se).get(r);
1975
1975
  i && (v(this, we).set(r, i.effect), v(this, se).delete(r), i.fragment.lastChild.remove(), this.anchor.before(i.fragment), n = i.effect);
1976
1976
  }
1977
- for (const [a, o] of v(this, Me)) {
1978
- if (v(this, Me).delete(a), a === e)
1977
+ for (const [a, o] of v(this, Le)) {
1978
+ if (v(this, Le).delete(a), a === e)
1979
1979
  break;
1980
1980
  const d = v(this, se).get(o);
1981
1981
  d && (zt(d.effect), v(this, se).delete(o));
@@ -1983,18 +1983,18 @@ class gi {
1983
1983
  for (const [a, o] of v(this, we)) {
1984
1984
  if (a === r) continue;
1985
1985
  const d = () => {
1986
- if (Array.from(v(this, Me).values()).includes(a)) {
1986
+ if (Array.from(v(this, Le).values()).includes(a)) {
1987
1987
  var c = document.createDocumentFragment();
1988
1988
  _a(o, c), c.append(fe()), v(this, se).set(a, { effect: o, fragment: c });
1989
1989
  } else
1990
1990
  zt(o);
1991
1991
  v(this, we).delete(a);
1992
1992
  };
1993
- v(this, Kr) || !n ? Sr(o, d, !1) : d();
1993
+ v(this, Xr) || !n ? Er(o, d, !1) : d();
1994
1994
  }
1995
1995
  }
1996
1996
  });
1997
- this.anchor = e, G(this, Kr, r);
1997
+ this.anchor = e, G(this, Xr, r);
1998
1998
  }
1999
1999
  /**
2000
2000
  *
@@ -2004,7 +2004,7 @@ class gi {
2004
2004
  ensure(e, r) {
2005
2005
  var n = (
2006
2006
  /** @type {Batch} */
2007
- Ct
2007
+ kt
2008
2008
  ), i = fa();
2009
2009
  if (r && !v(this, we).has(e) && !v(this, se).has(e))
2010
2010
  if (i) {
@@ -2018,20 +2018,20 @@ class gi {
2018
2018
  e,
2019
2019
  ne(() => r(this.anchor))
2020
2020
  );
2021
- if (v(this, Me).set(n, e), i) {
2021
+ if (v(this, Le).set(n, e), i) {
2022
2022
  for (const [d, l] of v(this, we))
2023
2023
  d === e ? n.skipped_effects.delete(l) : n.skipped_effects.add(l);
2024
2024
  for (const [d, l] of v(this, se))
2025
2025
  d === e ? n.skipped_effects.delete(l.effect) : n.skipped_effects.add(l.effect);
2026
- n.add_callback(v(this, Xr));
2026
+ n.add_callback(v(this, Jr));
2027
2027
  } else
2028
- Q && (this.anchor = et), v(this, Xr).call(this);
2028
+ Q && (this.anchor = et), v(this, Jr).call(this);
2029
2029
  }
2030
2030
  }
2031
- Me = new WeakMap(), we = new WeakMap(), se = new WeakMap(), Kr = new WeakMap(), Xr = new WeakMap();
2031
+ Le = new WeakMap(), we = new WeakMap(), se = new WeakMap(), Xr = new WeakMap(), Jr = new WeakMap();
2032
2032
  function mr(t, e, ...r) {
2033
2033
  var n = new gi(t);
2034
- Rr(() => {
2034
+ Hr(() => {
2035
2035
  const i = e() ?? null;
2036
2036
  n.ensure(i, i && ((a) => i(a, ...r)));
2037
2037
  }, vr);
@@ -2062,7 +2062,7 @@ function q(t, e, r = !1) {
2062
2062
  }
2063
2063
  n.ensure(o, d);
2064
2064
  }
2065
- Rr(() => {
2065
+ Hr(() => {
2066
2066
  var o = !1;
2067
2067
  e((d, l = !0) => {
2068
2068
  o = !0, a(l, d);
@@ -2122,11 +2122,11 @@ function Oa(t, e, r, n, i, a = null) {
2122
2122
  e,
2123
2123
  n,
2124
2124
  r
2125
- ), a !== null && (f.length === 0 ? c ? pi(c) : c = ne(() => a(o)) : c !== null && Sr(c, () => {
2125
+ ), a !== null && (f.length === 0 ? c ? pi(c) : c = ne(() => a(o)) : c !== null && Er(c, () => {
2126
2126
  c = null;
2127
2127
  }));
2128
2128
  }
2129
- Rr(() => {
2129
+ Hr(() => {
2130
2130
  m ?? (m = /** @type {Effect} */
2131
2131
  X), f = /** @type {V[]} */
2132
2132
  s(h);
@@ -2168,7 +2168,7 @@ function Oa(t, e, r, n, i, a = null) {
2168
2168
  else if (fa()) {
2169
2169
  var A = /* @__PURE__ */ new Set(), L = (
2170
2170
  /** @type {Batch} */
2171
- Ct
2171
+ kt
2172
2172
  );
2173
2173
  for (x = 0; x < w; x += 1) {
2174
2174
  N = f[x], M = n(N, x);
@@ -2263,7 +2263,7 @@ function ps(t, e, r, n, i, a, o, d, l) {
2263
2263
  n.clear();
2264
2264
  }
2265
2265
  function $a(t, e, r, n) {
2266
- Br(t.v, e), t.i = r;
2266
+ Ur(t.v, e), t.i = r;
2267
2267
  }
2268
2268
  function Un(t, e, r, n, i, a, o, d, l, c, u) {
2269
2269
  var p = (l & 1) !== 0, h = (l & 16) === 0, f = p ? h ? /* @__PURE__ */ oa(i, !1, !1) : pr(i) : i, m = (l & 2) === 0 ? o : pr(o), g = {
@@ -2314,7 +2314,7 @@ function he(t, e, r) {
2314
2314
  }
2315
2315
  function hs(t, e, r = !1, n = !1, i = !1) {
2316
2316
  var a = t, o = "";
2317
- it(() => {
2317
+ at(() => {
2318
2318
  var d = (
2319
2319
  /** @type {Effect} */
2320
2320
  X
@@ -2334,7 +2334,7 @@ function hs(t, e, r = !1, n = !1, i = !1) {
2334
2334
  c = l, l = /** @type {TemplateNode} */
2335
2335
  /* @__PURE__ */ Xt(l);
2336
2336
  if (l === null)
2337
- throw Jr(), cr;
2337
+ throw tn(), cr;
2338
2338
  Ce(et, c), a = At(l);
2339
2339
  return;
2340
2340
  }
@@ -2361,7 +2361,7 @@ function hs(t, e, r = !1, n = !1, i = !1) {
2361
2361
  function ms(t, e, r) {
2362
2362
  Q && dr();
2363
2363
  var n = new gi(t);
2364
- Rr(() => {
2364
+ Hr(() => {
2365
2365
  var i = e() ?? null;
2366
2366
  n.ensure(i, i && ((a) => r(a, i)));
2367
2367
  }, vr);
@@ -2441,7 +2441,7 @@ function be(t, e, r, n) {
2441
2441
  return n;
2442
2442
  }
2443
2443
  const xs = Symbol("is custom element"), _s = Symbol("is html");
2444
- function at(t, e, r, n) {
2444
+ function it(t, e, r, n) {
2445
2445
  var i = ys(t);
2446
2446
  Q && (i[e] = t.getAttribute(e), e === "src" || e === "srcset" || e === "href" && t.nodeName === "LINK") || i[e] !== (i[e] = r) && (e === "loading" && (t[_o] = r), r == null ? t.removeAttribute(e) : typeof r != "string" && Cs(t).includes(e) ? t[e] = r : t.setAttribute(e, r));
2447
2447
  }
@@ -2468,7 +2468,7 @@ function Cs(t) {
2468
2468
  }
2469
2469
  return r;
2470
2470
  }
2471
- const ks = () => performance.now(), De = {
2471
+ const ks = () => performance.now(), Oe = {
2472
2472
  // don't access requestAnimationFrame eagerly outside method
2473
2473
  // this allows basic testing of user code without JSDOM
2474
2474
  // bunder will eval and remove ternary when the user's app is built
@@ -2480,24 +2480,24 @@ const ks = () => performance.now(), De = {
2480
2480
  tasks: /* @__PURE__ */ new Set()
2481
2481
  };
2482
2482
  function Ra() {
2483
- const t = De.now();
2484
- De.tasks.forEach((e) => {
2485
- e.c(t) || (De.tasks.delete(e), e.f());
2486
- }), De.tasks.size !== 0 && De.tick(Ra);
2483
+ const t = Oe.now();
2484
+ Oe.tasks.forEach((e) => {
2485
+ e.c(t) || (Oe.tasks.delete(e), e.f());
2486
+ }), Oe.tasks.size !== 0 && Oe.tick(Ra);
2487
2487
  }
2488
2488
  function Ts(t) {
2489
2489
  let e;
2490
- return De.tasks.size === 0 && De.tick(Ra), {
2490
+ return Oe.tasks.size === 0 && Oe.tick(Ra), {
2491
2491
  promise: new Promise((r) => {
2492
- De.tasks.add(e = { c: t, f: r });
2492
+ Oe.tasks.add(e = { c: t, f: r });
2493
2493
  }),
2494
2494
  abort() {
2495
- De.tasks.delete(e);
2495
+ Oe.tasks.delete(e);
2496
2496
  }
2497
2497
  };
2498
2498
  }
2499
2499
  function ln(t, e) {
2500
- tn(() => {
2500
+ en(() => {
2501
2501
  t.dispatchEvent(new CustomEvent(e));
2502
2502
  });
2503
2503
  }
@@ -2525,7 +2525,7 @@ const Es = (t) => t;
2525
2525
  function Is(t, e, r, n) {
2526
2526
  var i = (t & 4) !== 0, a = "both", o, d = e.inert, l = e.style.overflow, c, u;
2527
2527
  function p() {
2528
- return tn(() => o ?? (o = r()(e, n?.() ?? /** @type {P} */
2528
+ return en(() => o ?? (o = r()(e, n?.() ?? /** @type {P} */
2529
2529
  {}, {
2530
2530
  direction: a
2531
2531
  })));
@@ -2642,9 +2642,9 @@ function Zn(t, e, r, n, i) {
2642
2642
  };
2643
2643
  }
2644
2644
  function $i(t, e) {
2645
- return t === e || t?.[Wr] === e;
2645
+ return t === e || t?.[jr] === e;
2646
2646
  }
2647
- function $e(t = {}, e, r, n) {
2647
+ function Ne(t = {}, e, r, n) {
2648
2648
  return di(() => {
2649
2649
  var i, a;
2650
2650
  return ui(() => {
@@ -2670,19 +2670,19 @@ function As(t, e, r) {
2670
2670
  );
2671
2671
  return n.unsubscribe ? () => n.unsubscribe() : n;
2672
2672
  }
2673
- const Cr = [];
2674
- function rn(t, e = Nt) {
2673
+ const kr = [];
2674
+ function nn(t, e = Nt) {
2675
2675
  let r = null;
2676
2676
  const n = /* @__PURE__ */ new Set();
2677
2677
  function i(d) {
2678
2678
  if (Ui(t, d) && (t = d, r)) {
2679
- const l = !Cr.length;
2679
+ const l = !kr.length;
2680
2680
  for (const c of n)
2681
- c[1](), Cr.push(c, t);
2681
+ c[1](), kr.push(c, t);
2682
2682
  if (l) {
2683
- for (let c = 0; c < Cr.length; c += 2)
2684
- Cr[c][0](Cr[c + 1]);
2685
- Cr.length = 0;
2683
+ for (let c = 0; c < kr.length; c += 2)
2684
+ kr[c][0](kr[c + 1]);
2685
+ kr.length = 0;
2686
2686
  }
2687
2687
  }
2688
2688
  }
@@ -2703,7 +2703,7 @@ function rn(t, e = Nt) {
2703
2703
  }
2704
2704
  return { set: i, update: a, subscribe: o };
2705
2705
  }
2706
- function Hr(t) {
2706
+ function Pr(t) {
2707
2707
  let e;
2708
2708
  return As(t, (r) => e = r)(), e;
2709
2709
  }
@@ -2728,7 +2728,7 @@ function y(t, e, r, n) {
2728
2728
  n
2729
2729
  )), o), c;
2730
2730
  if (i) {
2731
- var u = Wr in t || ji in t;
2731
+ var u = jr in t || ji in t;
2732
2732
  c = ar(t, e)?.set ?? (u && e in t ? (T) => t[e] = T : void 0);
2733
2733
  }
2734
2734
  var p, h = !1;
@@ -2765,7 +2765,7 @@ function y(t, e, r, n) {
2765
2765
  /** @type {() => V} */
2766
2766
  (function(T, O) {
2767
2767
  if (arguments.length > 0) {
2768
- const b = O ? s(w) : i ? Oe(T) : T;
2768
+ const b = O ? s(w) : i ? $e(T) : T;
2769
2769
  return C(w, b), g = !0, o !== void 0 && (o = b), T;
2770
2770
  }
2771
2771
  return br && g || (k.f & gr) !== 0 ? w.v : s(w);
@@ -2775,7 +2775,7 @@ function y(t, e, r, n) {
2775
2775
  function Ls(t) {
2776
2776
  return new Ds(t);
2777
2777
  }
2778
- var Le, re;
2778
+ var De, re;
2779
2779
  class Ds {
2780
2780
  /**
2781
2781
  * @param {ComponentConstructorOptions & {
@@ -2784,7 +2784,7 @@ class Ds {
2784
2784
  */
2785
2785
  constructor(e) {
2786
2786
  /** @type {any} */
2787
- nt(this, Le);
2787
+ nt(this, De);
2788
2788
  /** @type {Record<string, any>} */
2789
2789
  nt(this, re);
2790
2790
  var r = /* @__PURE__ */ new Map(), n = (a, o) => {
@@ -2812,9 +2812,9 @@ class Ds {
2812
2812
  context: e.context,
2813
2813
  intro: e.intro ?? !1,
2814
2814
  recover: e.recover
2815
- })), (!e?.props?.$$host || e.sync === !1) && _(), G(this, Le, i.$$events);
2815
+ })), (!e?.props?.$$host || e.sync === !1) && _(), G(this, De, i.$$events);
2816
2816
  for (const a of Object.keys(v(this, re)))
2817
- a === "$set" || a === "$destroy" || a === "$on" || Or(this, a, {
2817
+ a === "$set" || a === "$destroy" || a === "$on" || $r(this, a, {
2818
2818
  get() {
2819
2819
  return v(this, re)[a];
2820
2820
  },
@@ -2841,10 +2841,10 @@ class Ds {
2841
2841
  * @returns {any}
2842
2842
  */
2843
2843
  $on(e, r) {
2844
- v(this, Le)[e] = v(this, Le)[e] || [];
2844
+ v(this, De)[e] = v(this, De)[e] || [];
2845
2845
  const n = (...i) => r.call(this, ...i);
2846
- return v(this, Le)[e].push(n), () => {
2847
- v(this, Le)[e] = v(this, Le)[e].filter(
2846
+ return v(this, De)[e].push(n), () => {
2847
+ v(this, De)[e] = v(this, De)[e].filter(
2848
2848
  /** @param {any} fn */
2849
2849
  (i) => i !== n
2850
2850
  );
@@ -2854,7 +2854,7 @@ class Ds {
2854
2854
  v(this, re).$destroy();
2855
2855
  }
2856
2856
  }
2857
- Le = new WeakMap(), re = new WeakMap();
2857
+ De = new WeakMap(), re = new WeakMap();
2858
2858
  let Ha;
2859
2859
  typeof HTMLElement == "function" && (Ha = class extends HTMLElement {
2860
2860
  /**
@@ -3036,7 +3036,7 @@ function _t(t, e, r, n, i, a) {
3036
3036
  }
3037
3037
  };
3038
3038
  return mn(e).forEach((d) => {
3039
- Or(o.prototype, d, {
3039
+ $r(o.prototype, d, {
3040
3040
  get() {
3041
3041
  return this.$$c && d in this.$$c ? this.$$c[d] : this.$$d[d];
3042
3042
  },
@@ -3050,7 +3050,7 @@ function _t(t, e, r, n, i, a) {
3050
3050
  }
3051
3051
  });
3052
3052
  }), n.forEach((d) => {
3053
- Or(o.prototype, d, {
3053
+ $r(o.prototype, d, {
3054
3054
  get() {
3055
3055
  return this.$$c?.[d];
3056
3056
  }
@@ -3069,14 +3069,14 @@ function Ns(t, e, r) {
3069
3069
  function Rs(t) {
3070
3070
  return Fa.get(t);
3071
3071
  }
3072
- const za = rn(null), Wa = rn(null), ja = (t) => `${Hr(za)}/${t}`, qa = (t = {}) => ({ Authorization: `Bearer ${Hr(Wa)}`, ...t }), Gn = async (t) => await (await fetch(ja(t), { headers: qa() })).json(), Hs = async (t, e) => {
3072
+ const za = nn(null), Wa = nn(null), ja = (t) => `${Pr(za)}/${t}`, qa = (t = {}) => ({ Authorization: `Bearer ${Pr(Wa)}`, ...t }), Gn = async (t) => await (await fetch(ja(t), { headers: qa() })).json(), Hs = async (t, e) => {
3073
3073
  const r = qa({ "Content-type": "application/json" });
3074
3074
  return await (await fetch(ja(t), {
3075
3075
  method: "PATCH",
3076
3076
  headers: r,
3077
3077
  body: JSON.stringify(e)
3078
3078
  })).json();
3079
- }, vi = rn(!1), Va = rn("h1"), Ba = rn("100%"), nn = {
3079
+ }, vi = nn(!1), Va = nn("h1"), Ba = nn("100%"), an = {
3080
3080
  MCQ: "multipleChoiceInteraction",
3081
3081
  CATEGORISE: "categoriseInteraction"
3082
3082
  }, de = {
@@ -3133,7 +3133,7 @@ const za = rn(null), Wa = rn(null), ja = (t) => `${Hr(za)}/${t}`, qa = (t = {})
3133
3133
  }
3134
3134
  return null;
3135
3135
  }, qs = async (t, e) => {
3136
- const r = Hr(vi) ? "?skip_user_validation=true" : "", { data: n } = await Gn(`sessions/${t}${r}`);
3136
+ const r = Pr(vi) ? "?skip_user_validation=true" : "", { data: n } = await Gn(`sessions/${t}${r}`);
3137
3137
  if (!n)
3138
3138
  throw new Error(`No session data found for session ID: ${t}`);
3139
3139
  const {
@@ -3192,10 +3192,10 @@ function Qn(t, e) {
3192
3192
  r(o), _();
3193
3193
  }
3194
3194
  }, i = Us(), a = $(i, !0);
3195
- return D(i), it(() => ke(a, r())), S(t, i), xt(n);
3195
+ return D(i), at(() => ke(a, r())), S(t, i), xt(n);
3196
3196
  }
3197
3197
  _t(Qn, { bannerLabel: {} }, [], [], !0);
3198
- const Tr = {
3198
+ const Sr = {
3199
3199
  // Text processing utilities
3200
3200
  normalizeText: (t) => t.trim().toLowerCase().replace(/\s+/g, " "),
3201
3201
  removeDiacritics: (t) => t.normalize("NFD").replace(/[\u0300-\u036f]/g, ""),
@@ -3221,7 +3221,7 @@ const Tr = {
3221
3221
  determineInteractionMode: (t) => t ? t.mode === "review" || t.is_review ? "review" : t.mode === "preview" || t.is_preview ? "preview" : "standard" : "standard"
3222
3222
  };
3223
3223
  var Zs = /* @__PURE__ */ j("<div><!></div>");
3224
- function Re(t, e) {
3224
+ function He(t, e) {
3225
3225
  bt(e, !0);
3226
3226
  let r = y(e, "htmlString", 7, ""), n = y(e, "otherClass", 7, ""), i = y(e, "ariaHidden", 7, !1), a = y(e, "htmlHeading", 7, ""), o = /* @__PURE__ */ I(() => d(r(), a()));
3227
3227
  function d(h, f) {
@@ -3258,8 +3258,8 @@ function Re(t, e) {
3258
3258
  {
3259
3259
  var p = (h) => {
3260
3260
  var f = Zs(), m = $(f);
3261
- hs(m, () => s(o)), D(f), it(() => {
3262
- ft(f, 1, Ft(n())), at(f, "aria-hidden", i());
3261
+ hs(m, () => s(o)), D(f), at(() => {
3262
+ ft(f, 1, Ft(n())), it(f, "aria-hidden", i());
3263
3263
  }), S(h, f);
3264
3264
  };
3265
3265
  q(u, (h) => {
@@ -3269,7 +3269,7 @@ function Re(t, e) {
3269
3269
  return S(t, c), xt(l);
3270
3270
  }
3271
3271
  _t(
3272
- Re,
3272
+ He,
3273
3273
  {
3274
3274
  htmlString: {},
3275
3275
  otherClass: {},
@@ -3473,16 +3473,16 @@ function $t(t, e) {
3473
3473
  {
3474
3474
  var u = (p) => {
3475
3475
  var h = Ys();
3476
- it(() => {
3477
- at(h, "fill-rule", s(o).fillRule), at(h, "clip-rule", s(o).clipRule), at(h, "d", s(o).path), at(h, "fill", s(o).pathFill);
3476
+ at(() => {
3477
+ it(h, "fill-rule", s(o).fillRule), it(h, "clip-rule", s(o).clipRule), it(h, "d", s(o).path), it(h, "fill", s(o).pathFill);
3478
3478
  }), S(p, h);
3479
3479
  };
3480
3480
  q(c, (p) => {
3481
3481
  s(o).path && p(u);
3482
3482
  });
3483
3483
  }
3484
- return D(l), it(() => {
3485
- at(l, "width", s(o).width), at(l, "height", s(o).height), at(l, "viewBox", s(o).viewBox), at(l, "fill", s(o).fill), ft(l, 0, Ft(a() ?? i()));
3484
+ return D(l), at(() => {
3485
+ it(l, "width", s(o).width), it(l, "height", s(o).height), it(l, "viewBox", s(o).viewBox), it(l, "fill", s(o).fill), ft(l, 0, Ft(a() ?? i()));
3486
3486
  }), S(t, l), xt(d);
3487
3487
  }
3488
3488
  _t($t, { width: {}, height: {}, svgName: {}, className: {} }, [], [], !0);
@@ -3503,7 +3503,7 @@ function Za(t, e) {
3503
3503
  get className() {
3504
3504
  return s(i);
3505
3505
  }
3506
- }), D(o), it(() => ft(o, 1, `w-6 h-6 flex items-center ${s(n) ?? ""} pt-0.5 mr-2`)), S(t, o), xt(a);
3506
+ }), D(o), at(() => ft(o, 1, `w-6 h-6 flex items-center ${s(n) ?? ""} pt-0.5 mr-2`)), S(t, o), xt(a);
3507
3507
  }
3508
3508
  _t(Za, { isCorrect: {} }, [], [], !0);
3509
3509
  var Xs = /* @__PURE__ */ j('<span class="sr-only">Alert. &nbsp;</span>'), Js = /* @__PURE__ */ j('<h3 class="block mb-1 font-semibold"> </h3>'), tl = /* @__PURE__ */ j("<div><!> <div><!> <!> <span><!></span></div></div>");
@@ -3588,19 +3588,19 @@ function Ga(t, e) {
3588
3588
  {
3589
3589
  var N = (L) => {
3590
3590
  var U = Js(), Y = $(U, !0);
3591
- D(U), it(() => ke(Y, i())), S(L, U);
3591
+ D(U), at(() => ke(Y, i())), S(L, U);
3592
3592
  };
3593
3593
  q(x, (L) => {
3594
3594
  i() && L(N);
3595
3595
  });
3596
3596
  }
3597
3597
  var M = J(x, 2), A = $(M);
3598
- Re(A, {
3598
+ He(A, {
3599
3599
  get htmlString() {
3600
3600
  return n();
3601
3601
  }
3602
- }), D(M), D(T), D(g), it(() => {
3603
- ft(g, 1, Ft(s(d))), at(g, "role", o() ? "alert" : null);
3602
+ }), D(M), D(T), D(g), at(() => {
3603
+ ft(g, 1, Ft(s(d))), it(g, "role", o() ? "alert" : null);
3604
3604
  }), S(m, g);
3605
3605
  };
3606
3606
  q(h, (m) => {
@@ -3842,13 +3842,13 @@ function bi(t, e) {
3842
3842
  var m = $(f);
3843
3843
  m.__click = p;
3844
3844
  var g = J(m, 2);
3845
- return mr(g, () => o() ?? Nt), D(f), $e(f, (w) => C(c, w), () => s(c)), it(() => {
3846
- at(f, "aria-label", s(d)), ft(m, 1, `blanket-overlay ${n() ?? ""}`);
3845
+ return mr(g, () => o() ?? Nt), D(f), Ne(f, (w) => C(c, w), () => s(c)), at(() => {
3846
+ it(f, "aria-label", s(d)), ft(m, 1, `blanket-overlay ${n() ?? ""}`);
3847
3847
  }), hr("close", f, () => {
3848
3848
  s(l) && p();
3849
3849
  }), hr("keypress", m, () => !1), S(t, f), xt(h);
3850
3850
  }
3851
- en(["keydown", "click"]);
3851
+ rn(["keydown", "click"]);
3852
3852
  _t(
3853
3853
  bi,
3854
3854
  {
@@ -4028,8 +4028,8 @@ function Ya(t, e) {
4028
4028
  {
4029
4029
  var R = (E) => {
4030
4030
  var Z = pl(), K = $(Z), lt = $(K), ot = J(lt);
4031
- D(K), $e(K, (kt) => C(w, kt), () => s(w)), D(Z), it(() => {
4032
- ft(Z, 1, `absolute z-50 pointer-events-none select-none ${s(U) ?? ""}`), at(K, "aria-hidden", !s(T)), ft(K, 1, `rounded-md bg-gray-900 text-white p-3 font-normal text-sm leading-[150%] max-w-[300px] break-words ${d() ?? ""}`), ke(lt, `${r() ?? ""} `), ft(ot, 1, `tooltip-arrow absolute w-2 h-2 bg-gray-900 ${s(Y) ?? ""}`);
4031
+ D(K), Ne(K, (Tt) => C(w, Tt), () => s(w)), D(Z), at(() => {
4032
+ ft(Z, 1, `absolute z-50 pointer-events-none select-none ${s(U) ?? ""}`), it(K, "aria-hidden", !s(T)), ft(K, 1, `rounded-md bg-gray-900 text-white p-3 font-normal text-sm leading-[150%] max-w-[300px] break-words ${d() ?? ""}`), ke(lt, `${r() ?? ""} `), ft(ot, 1, `tooltip-arrow absolute w-2 h-2 bg-gray-900 ${s(Y) ?? ""}`);
4033
4033
  }), Is(3, Z, () => ll, () => ({ duration: 40 })), S(E, Z);
4034
4034
  };
4035
4035
  q(st, (E) => {
@@ -4038,7 +4038,7 @@ function Ya(t, e) {
4038
4038
  }
4039
4039
  return D(P), hr("mouseenter", P, b), hr("mouseleave", P, x), S(t, P), xt(F);
4040
4040
  }
4041
- en([
4041
+ rn([
4042
4042
  "focusin",
4043
4043
  "focusout",
4044
4044
  "touchstart",
@@ -4151,7 +4151,7 @@ function xe(t, e) {
4151
4151
  {
4152
4152
  var T = (b) => {
4153
4153
  var x = ml(), N = $(x);
4154
- mr(N, () => h() ?? Nt), D(x), it(() => ft(x, 1, `btn-icon-sm ${d() ? "bg-white/80" : ""}`)), S(b, x);
4154
+ mr(N, () => h() ?? Nt), D(x), at(() => ft(x, 1, `btn-icon-sm ${d() ? "bg-white/80" : ""}`)), S(b, x);
4155
4155
  }, O = (b) => {
4156
4156
  var x = mt(), N = ct(x);
4157
4157
  mr(N, () => h() ?? Nt), S(b, x);
@@ -4160,9 +4160,9 @@ function xe(t, e) {
4160
4160
  l() === "touch-target" ? b(T) : b(O, !1);
4161
4161
  });
4162
4162
  }
4163
- return D(g), it(
4163
+ return D(g), at(
4164
4164
  (b, x) => {
4165
- at(g, "type", c()), at(g, "tabindex", u()), w = ft(g, 1, b, null, w, x), at(g, "aria-label", r()), at(g, "aria-haspopup", n()), g.disabled = a();
4165
+ it(g, "type", c()), it(g, "tabindex", u()), w = ft(g, 1, b, null, w, x), it(g, "aria-label", r()), it(g, "aria-haspopup", n()), g.disabled = a();
4166
4166
  },
4167
4167
  [
4168
4168
  () => Ft(s(f)()),
@@ -4170,7 +4170,7 @@ function xe(t, e) {
4170
4170
  ]
4171
4171
  ), S(t, g), xt(m);
4172
4172
  }
4173
- en(["click"]);
4173
+ rn(["click"]);
4174
4174
  _t(
4175
4175
  xe,
4176
4176
  {
@@ -4190,7 +4190,7 @@ _t(
4190
4190
  [],
4191
4191
  !0
4192
4192
  );
4193
- const Vr = (t) => t.replace(/<\/p>/g, " ").replace(/<[^>]*>/g, "").trim(), { LG: Ni, MD: Dn } = Yt, Xn = 16;
4193
+ const Br = (t) => t.replace(/<\/p>/g, " ").replace(/<[^>]*>/g, "").trim(), { LG: Ni, MD: Dn } = Yt, Xn = 16;
4194
4194
  function Qa() {
4195
4195
  const t = (n) => n >= Ni ? {
4196
4196
  horizontalPadding: 248,
@@ -4275,10 +4275,10 @@ function Qa() {
4275
4275
  }
4276
4276
  };
4277
4277
  }
4278
- var vl = /* @__PURE__ */ j('<span class="w-6 h-6 flex items-center justify-center"><!></span>'), wl = /* @__PURE__ */ j('<span class="w-6 h-6 flex items-center justify-center"><!></span>'), bl = /* @__PURE__ */ j('<div aria-hidden="true"><!></div>'), xl = /* @__PURE__ */ j('<span class="w-4 h-4 flex items-center justify-center"><!></span>'), _l = /* @__PURE__ */ j('<span class="w-4 h-4 flex items-center justify-center"><!></span>'), yl = /* @__PURE__ */ j('<div class="absolute inset-0 m-0"><div class="w-full h-full px-0 md:px-[82px] lg:px-[128px] pt-14 pb-[72px] relative lg:py-24 flex flex-col items-center justify-center"><div aria-live="polite" aria-atomic="true" class="sr-only"> </div> <div class="w-full h-full flex flex-col md:flex-row md:justify-center items-center justify-between"><div class="md:hidden"></div> <!> <!> <div><div class="flex-shrink-0 flex items-center justify-between py-1 px-2 md:px-4 border-border-minimal border rounded-t-md lg:rounded-t-lg md:gap-4 h-8.5 md:h-fit"><!> <!> <!></div> <div class="rounded-b-md"><img class="mx-auto block rounded-b-md lg:rounded-b-lg object-contain max-w-full max-h-[calc(100vh-168px-34px)] md:max-h-[calc(100vh-128px-54px)] lg:max-h-[calc(100vh-192px-54px)] pointer-events-none"/></div></div> <div class="md:hidden flex justify-center items-center gap-1 flex-shrink-0 h-6 mt-4"><!> <!></div></div></div></div>');
4278
+ var vl = /* @__PURE__ */ j('<span class="w-6 h-6 flex items-center justify-center"><!></span>'), wl = /* @__PURE__ */ j('<span class="w-6 h-6 flex items-center justify-center"><!></span>'), bl = /* @__PURE__ */ j('<div><span aria-hidden="true"><!></span></div>'), xl = /* @__PURE__ */ j('<span class="w-4 h-4 flex items-center justify-center"><!></span>'), _l = /* @__PURE__ */ j('<span class="w-4 h-4 flex items-center justify-center"><!></span>'), yl = /* @__PURE__ */ j('<div class="absolute inset-0 m-0"><div class="w-full h-full px-0 md:px-[82px] lg:px-[128px] pt-14 pb-[72px] relative lg:py-24 flex flex-col items-center justify-center"><div aria-live="polite" aria-atomic="true" class="sr-only"> </div> <div class="w-full h-full flex flex-col md:flex-row md:justify-center items-center justify-between"><div class="md:hidden"></div> <!> <!> <div><div class="flex-shrink-0 flex items-center justify-between py-1 px-2 md:px-4 border-border-minimal border rounded-t-md lg:rounded-t-lg md:gap-4 h-8.5 md:h-fit"><!> <!> <!></div> <div class="rounded-b-md"><img class="mx-auto block rounded-b-md lg:rounded-b-lg object-contain max-w-full max-h-[calc(100vh-168px-34px)] md:max-h-[calc(100vh-128px-54px)] lg:max-h-[calc(100vh-192px-54px)] pointer-events-none"/></div></div> <div class="md:hidden flex justify-center items-center gap-1 flex-shrink-0 h-6 mt-4"><!> <!></div></div></div></div>');
4279
4279
  function Ka(t, e) {
4280
4280
  bt(e, !0);
4281
- let r = y(e, "isOpen", 7, !1), n = y(e, "options", 23, () => []), i = y(e, "currentIndex", 7, 0), a = y(e, "modalAriaLabel", 7, ""), o = y(e, "onnavigate", 7), d = y(e, "onclose", 7), l = /* @__PURE__ */ I(() => n()[i()]), c = /* @__PURE__ */ I(() => s(l)?.media?.file?.url || ""), u = /* @__PURE__ */ I(() => s(l)?.media?.alternative_text ? `${s(l).media.alternative_text}` : ""), p = /* @__PURE__ */ I(() => s(l)?.answer ? Vr(s(l).answer) : ""), h = /* @__PURE__ */ W(null), f = /* @__PURE__ */ W(0), m = /* @__PURE__ */ W(0), g = /* @__PURE__ */ W("100%"), w = /* @__PURE__ */ W(null), k = /* @__PURE__ */ W(!1), T = /* @__PURE__ */ W(""), O = /* @__PURE__ */ W(null), b = /* @__PURE__ */ W(null), x = /* @__PURE__ */ W(!1), N = /* @__PURE__ */ W(!1), M = /* @__PURE__ */ W(!1), A = /* @__PURE__ */ W(!1);
4281
+ let r = y(e, "isOpen", 7, !1), n = y(e, "options", 23, () => []), i = y(e, "currentIndex", 7, 0), a = y(e, "modalAriaLabel", 7, ""), o = y(e, "onnavigate", 7), d = y(e, "onclose", 7), l = /* @__PURE__ */ I(() => n()[i()]), c = /* @__PURE__ */ I(() => s(l)?.media?.file?.url || ""), u = /* @__PURE__ */ I(() => s(l)?.media?.alternative_text ? `${s(l).media.alternative_text}` : ""), p = /* @__PURE__ */ I(() => s(l)?.answer ? Br(s(l).answer) : ""), h = /* @__PURE__ */ W(null), f = /* @__PURE__ */ W(0), m = /* @__PURE__ */ W(0), g = /* @__PURE__ */ W("100%"), w = /* @__PURE__ */ W(null), k = /* @__PURE__ */ W(!1), T = /* @__PURE__ */ W(""), O = /* @__PURE__ */ W(null), b = /* @__PURE__ */ W(null), x = /* @__PURE__ */ W(!1), N = /* @__PURE__ */ W(!1), M = /* @__PURE__ */ W(!1), A = /* @__PURE__ */ W(!1);
4282
4282
  const { calculateContainerWidth: L } = Qa();
4283
4283
  let U = /* @__PURE__ */ I(() => ({ isModalOpen: r(), modalAriaLabel: a() }));
4284
4284
  const Y = () => {
@@ -4307,7 +4307,7 @@ function Ka(t, e) {
4307
4307
  i() !== void 0 && s(M) && lr().then(dt);
4308
4308
  });
4309
4309
  const st = (z) => {
4310
- const wt = z?.answer ? Vr(z.answer) : "", St = z?.media?.alternative_text || "";
4310
+ const wt = z?.answer ? Br(z.answer) : "", St = z?.media?.alternative_text || "";
4311
4311
  return `${wt} , ${St}`;
4312
4312
  }, R = () => {
4313
4313
  if (!n() || n().length === 0) return;
@@ -4330,7 +4330,7 @@ function Ka(t, e) {
4330
4330
  ArrowRight: () => {
4331
4331
  lt((z) => C(N, z, !0)), E();
4332
4332
  }
4333
- }, kt = (z) => {
4333
+ }, Tt = (z) => {
4334
4334
  if (!r() || !n()?.length) return;
4335
4335
  const wt = ot[z.key];
4336
4336
  wt && (wt(), z.preventDefault());
@@ -4346,8 +4346,8 @@ function Ka(t, e) {
4346
4346
  r() || C(A, !1);
4347
4347
  }), Lt(() => {
4348
4348
  if (typeof window < "u")
4349
- return window.addEventListener("keydown", kt), window.addEventListener("resize", P), () => {
4350
- window.removeEventListener("keydown", kt), window.removeEventListener("resize", P);
4349
+ return window.addEventListener("keydown", Tt), window.addEventListener("resize", P), () => {
4350
+ window.removeEventListener("keydown", Tt), window.removeEventListener("resize", P);
4351
4351
  };
4352
4352
  });
4353
4353
  var V = {
@@ -4401,7 +4401,7 @@ function Ka(t, e) {
4401
4401
  var H = yl(), B = $(H), ht = $(B), pe = $(ht, !0);
4402
4402
  D(ht);
4403
4403
  var Rt = J(ht, 2), Et = J($(Rt), 2);
4404
- $e(
4404
+ Ne(
4405
4405
  xe(Et, {
4406
4406
  variant: "standard",
4407
4407
  transparent: !0,
@@ -4412,8 +4412,8 @@ function Ka(t, e) {
4412
4412
  },
4413
4413
  onclick: R,
4414
4414
  children: (yt, Ae) => {
4415
- var gt = vl(), Tt = $(gt);
4416
- $t(Tt, {
4415
+ var gt = vl(), Ct = $(gt);
4416
+ $t(Ct, {
4417
4417
  svgName: "smallChevronLeft",
4418
4418
  className: "text-primary-emphasis",
4419
4419
  width: 12,
@@ -4436,8 +4436,8 @@ function Ka(t, e) {
4436
4436
  },
4437
4437
  onclick: E,
4438
4438
  children: (yt, Ae) => {
4439
- var gt = wl(), Tt = $(gt);
4440
- $t(Tt, {
4439
+ var gt = wl(), Ct = $(gt);
4440
+ $t(Ct, {
4441
4441
  svgName: "smallChevronRight",
4442
4442
  className: "text-primary-emphasis",
4443
4443
  width: 12,
@@ -4446,7 +4446,7 @@ function Ka(t, e) {
4446
4446
  },
4447
4447
  $$slots: { default: !0 }
4448
4448
  });
4449
- var Ge = J(_r, 2), Pr = $(Ge), Ee = $(Pr);
4449
+ var Ge = J(_r, 2), Fr = $(Ge), Ee = $(Fr);
4450
4450
  {
4451
4451
  let yt = /* @__PURE__ */ I(() => !s(k));
4452
4452
  Ya(Ee, {
@@ -4459,18 +4459,18 @@ function Ka(t, e) {
4459
4459
  return s(p);
4460
4460
  },
4461
4461
  children: (Ae, gt) => {
4462
- var Tt = bl(), on = $(Tt);
4462
+ var Ct = bl(), zr = $(Ct), yr = $(zr);
4463
4463
  {
4464
- let Pe = /* @__PURE__ */ I(() => s(l)?.answer);
4465
- Re(on, {
4464
+ let Me = /* @__PURE__ */ I(() => s(l)?.answer);
4465
+ He(yr, {
4466
4466
  get htmlString() {
4467
- return s(Pe);
4467
+ return s(Me);
4468
4468
  }
4469
4469
  });
4470
4470
  }
4471
- D(Tt), $e(Tt, (Pe) => C(w, Pe), () => s(w)), it(() => {
4472
- at(Tt, "tabindex", s(k) ? 0 : void 0), ft(Tt, 1, `break-all text-sm md:text-lg font-semibold text-primary-emphasis ${s(k) ? "hover:text-charcoal hover:underline hover:decoration-2 hover:underline-offset-[25%] focus-visible:bg-yellow-900 focus-visible:outline-none focus-visible:underline focus-visible:decoration-2 focus-visible:underline-offset-[25%] focus-visible:text-charcoal coarse:active:bg-yellow-900" : ""} select-none line-clamp-1`);
4473
- }), S(Ae, Tt);
4471
+ D(zr), D(Ct), Ne(Ct, (Me) => C(w, Me), () => s(w)), at(() => {
4472
+ it(Ct, "tabindex", s(k) ? 0 : void 0), it(Ct, "aria-label", s(k) ? s(p) : void 0), ft(Ct, 1, `break-all text-sm md:text-lg font-semibold text-primary-emphasis ${s(k) ? "hover:text-charcoal hover:underline hover:decoration-2 hover:underline-offset-[25%] focus-visible:bg-yellow-900 focus-visible:outline-none focus-visible:underline focus-visible:decoration-2 focus-visible:underline-offset-[25%] focus-visible:text-charcoal coarse:active:bg-yellow-900" : ""} select-none line-clamp-1`);
4473
+ }), S(Ae, Ct);
4474
4474
  },
4475
4475
  $$slots: { default: !0 }
4476
4476
  });
@@ -4502,11 +4502,11 @@ function Ka(t, e) {
4502
4502
  });
4503
4503
  },
4504
4504
  $$slots: { default: !0 }
4505
- }), D(Pr);
4506
- var an = J(Pr, 2), Qe = $(an);
4507
- $e(Qe, (yt) => C(h, yt), () => s(h)), D(an), D(Ge);
4505
+ }), D(Fr);
4506
+ var on = J(Fr, 2), Qe = $(on);
4507
+ Ne(Qe, (yt) => C(h, yt), () => s(h)), D(on), D(Ge);
4508
4508
  var Ie = J(Ge, 2), Ke = $(Ie);
4509
- $e(
4509
+ Ne(
4510
4510
  xe(Ke, {
4511
4511
  variant: "touch-target",
4512
4512
  transparent: !0,
@@ -4516,8 +4516,8 @@ function Ka(t, e) {
4516
4516
  },
4517
4517
  onclick: R,
4518
4518
  children: (yt, Ae) => {
4519
- var gt = xl(), Tt = $(gt);
4520
- $t(Tt, {
4519
+ var gt = xl(), Ct = $(gt);
4520
+ $t(Ct, {
4521
4521
  svgName: "smallChevronLeft",
4522
4522
  className: "text-primary-emphasis",
4523
4523
  height: 7.43
@@ -4538,16 +4538,16 @@ function Ka(t, e) {
4538
4538
  },
4539
4539
  onclick: E,
4540
4540
  children: (yt, Ae) => {
4541
- var gt = _l(), Tt = $(gt);
4542
- $t(Tt, {
4541
+ var gt = _l(), Ct = $(gt);
4542
+ $t(Ct, {
4543
4543
  svgName: "smallChevronRight",
4544
4544
  className: "text-primary-emphasis",
4545
4545
  height: 7.43
4546
4546
  }), D(gt), S(yt, gt);
4547
4547
  },
4548
4548
  $$slots: { default: !0 }
4549
- }), D(Ie), D(Rt), D(B), D(H), it(() => {
4550
- ke(pe, s(T)), ft(Ge, 1, `bg-white rounded-lg flex flex-col max-w-full md:max-w-[calc(100vw-164px)] lg:max-w-[calc(100vw-248px)] max-h-[calc(100vh-168px)] md:max-h-[calc(100vh-128px)] lg:max-h-[calc(100vh-192px)] ${s(M) ? "" : "opacity-0"}`), be(Ge, `max-width: ${s(g) ?? ""};`), at(Qe, "src", s(c)), at(Qe, "alt", s(u));
4549
+ }), D(Ie), D(Rt), D(B), D(H), at(() => {
4550
+ ke(pe, s(T)), ft(Ge, 1, `bg-white rounded-lg flex flex-col max-w-full md:max-w-[calc(100vw-164px)] lg:max-w-[calc(100vw-248px)] max-h-[calc(100vh-168px)] md:max-h-[calc(100vh-128px)] lg:max-h-[calc(100vh-192px)] ${s(M) ? "" : "opacity-0"}`), be(Ge, `max-width: ${s(g) ?? ""};`), it(Qe, "src", s(c)), it(Qe, "alt", s(u));
4551
4551
  }), hr("load", Qe, F), hi(Qe), S(wt, H);
4552
4552
  },
4553
4553
  $$slots: { default: !0 }
@@ -4575,7 +4575,7 @@ _t(
4575
4575
  );
4576
4576
  function Xa(t, e) {
4577
4577
  bt(e, !0);
4578
- let r = y(e, "rubric", 7), n = /* @__PURE__ */ I(() => Hr(Va));
4578
+ let r = y(e, "rubric", 7), n = /* @__PURE__ */ I(() => Pr(Va));
4579
4579
  var i = {
4580
4580
  get rubric() {
4581
4581
  return r();
@@ -4586,7 +4586,7 @@ function Xa(t, e) {
4586
4586
  }, a = mt(), o = ct(a);
4587
4587
  {
4588
4588
  var d = (l) => {
4589
- Re(l, {
4589
+ He(l, {
4590
4590
  get htmlString() {
4591
4591
  return r();
4592
4592
  },
@@ -4671,7 +4671,7 @@ function to(t, e) {
4671
4671
  {
4672
4672
  var d = (l) => {
4673
4673
  var c = Sl(), u = $(c);
4674
- Re(u, {
4674
+ He(u, {
4675
4675
  get htmlString() {
4676
4676
  return s(n);
4677
4677
  },
@@ -4784,9 +4784,9 @@ function ro(t, e) {
4784
4784
  var st = Ll(), R = $(st), E = $(R), Z = $(E, !0);
4785
4785
  D(E);
4786
4786
  var K = J(E, 2), lt = $(K), ot = $(lt);
4787
- $e(ot, (pt) => C(l, pt), () => s(l));
4788
- var kt = J(ot, 2);
4789
- xe(kt, {
4787
+ Ne(ot, (pt) => C(l, pt), () => s(l));
4788
+ var Tt = J(ot, 2);
4789
+ xe(Tt, {
4790
4790
  variant: "standard",
4791
4791
  ariaLabel: "Close",
4792
4792
  transparent: !0,
@@ -4804,18 +4804,18 @@ function ro(t, e) {
4804
4804
  {
4805
4805
  var rt = (pt) => {
4806
4806
  var z = Al(), wt = ct(z), St = $(wt, !0);
4807
- D(wt), $e(wt, (ht) => C(c, ht), () => s(c));
4807
+ D(wt), Ne(wt, (ht) => C(c, ht), () => s(c));
4808
4808
  var H = J(wt, 2);
4809
4809
  {
4810
4810
  var B = (ht) => {
4811
4811
  var pe = Il();
4812
- it(() => be(pe, `height:${s(m) ?? ""}px`)), S(ht, pe);
4812
+ at(() => be(pe, `height:${s(m) ?? ""}px`)), S(ht, pe);
4813
4813
  };
4814
4814
  q(H, (ht) => {
4815
4815
  s(m) > 0 && ht(B);
4816
4816
  });
4817
4817
  }
4818
- it(() => {
4818
+ at(() => {
4819
4819
  be(wt, `margin-top:${Xn}px`), ke(St, a());
4820
4820
  }), S(pt, z);
4821
4821
  }, vt = (pt) => {
@@ -4823,7 +4823,7 @@ function ro(t, e) {
4823
4823
  {
4824
4824
  var St = (H) => {
4825
4825
  var B = Ml();
4826
- it(() => be(B, `height:${s(m) ?? ""}px`)), S(H, B);
4826
+ at(() => be(B, `height:${s(m) ?? ""}px`)), S(H, B);
4827
4827
  };
4828
4828
  q(
4829
4829
  wt,
@@ -4839,8 +4839,8 @@ function ro(t, e) {
4839
4839
  a() ? pt(rt) : pt(vt, !1);
4840
4840
  });
4841
4841
  }
4842
- D(K), D(R), D(st), it(() => {
4843
- ke(Z, s(w)), be(K, `max-height:${s(h) ?? ""}`), be(lt, s(T)), at(ot, "src", n()), at(ot, "alt", i()), be(ot, `max-height:${s(p) ?? ""}px`);
4842
+ D(K), D(R), D(st), at(() => {
4843
+ ke(Z, s(w)), be(K, `max-height:${s(h) ?? ""}`), be(lt, s(T)), it(ot, "src", n()), it(ot, "alt", i()), be(ot, `max-height:${s(p) ?? ""}px`);
4844
4844
  }), hr("load", ot, b), hi(ot), S(P, st);
4845
4845
  },
4846
4846
  $$slots: { default: !0 }
@@ -4865,7 +4865,7 @@ _t(
4865
4865
  [],
4866
4866
  !0
4867
4867
  );
4868
- let Ir = null;
4868
+ let Ar = null;
4869
4869
  function Dl() {
4870
4870
  if (typeof window > "u")
4871
4871
  return {
@@ -4894,19 +4894,19 @@ function Dl() {
4894
4894
  },
4895
4895
  subscribe(a) {
4896
4896
  return e.add(a), a(t), () => {
4897
- e.delete(a), e.size === 0 && Ir && (i.disconnect(), Ir = null);
4897
+ e.delete(a), e.size === 0 && Ar && (i.disconnect(), Ar = null);
4898
4898
  };
4899
4899
  },
4900
4900
  cleanup: () => {
4901
- i.disconnect(), e.clear(), Ir = null;
4901
+ i.disconnect(), e.clear(), Ar = null;
4902
4902
  }
4903
4903
  };
4904
4904
  }
4905
4905
  function Ol() {
4906
- return Ir || (Ir = Dl()), Ir;
4906
+ return Ar || (Ar = Dl()), Ar;
4907
4907
  }
4908
4908
  function $l(t, e, r) {
4909
- return t === nn.CATEGORISE && !e.hasMedia && !e.hasText || r < Yt.LG ? "100%" : Hr(Ba);
4909
+ return t === an.CATEGORISE && !e.hasMedia && !e.hasText || r < Yt.LG ? "100%" : Pr(Ba);
4910
4910
  }
4911
4911
  function Nl(t) {
4912
4912
  if (!t || typeof window > "u")
@@ -4918,7 +4918,7 @@ function Rl() {
4918
4918
  if (typeof window > "u")
4919
4919
  return { value: 0, cleanup: () => {
4920
4920
  } };
4921
- let t = /* @__PURE__ */ W(Oe(window.innerHeight));
4921
+ let t = /* @__PURE__ */ W($e(window.innerHeight));
4922
4922
  const e = () => {
4923
4923
  C(t, window.innerHeight, !0);
4924
4924
  };
@@ -4933,7 +4933,7 @@ function Rl() {
4933
4933
  }
4934
4934
  function no() {
4935
4935
  const t = Ol();
4936
- let e = /* @__PURE__ */ W(Oe(t.value)), r;
4936
+ let e = /* @__PURE__ */ W($e(t.value)), r;
4937
4937
  return r = t.subscribe((n) => {
4938
4938
  C(e, n, !0);
4939
4939
  }), us(() => {
@@ -4978,7 +4978,7 @@ function Hl(t) {
4978
4978
  };
4979
4979
  }
4980
4980
  const Ri = {
4981
- [nn.MCQ]: [
4981
+ [an.MCQ]: [
4982
4982
  "rubric",
4983
4983
  "stimulus-inline-text-first",
4984
4984
  "stimulus-inline-media",
@@ -5007,7 +5007,7 @@ const Ri = {
5007
5007
  "desktop-column"
5008
5008
  ]
5009
5009
  }, xn = {
5010
- [nn.MCQ]: [
5010
+ [an.MCQ]: [
5011
5011
  "rubric",
5012
5012
  "stimulus-inline-text-first",
5013
5013
  "stimulus-inline-media",
@@ -5250,7 +5250,7 @@ function Jn(t, e) {
5250
5250
  {
5251
5251
  var R = (K) => {
5252
5252
  var lt = Vl(), ot = $(lt, !0);
5253
- D(lt), it(() => ke(ot, o())), S(K, lt);
5253
+ D(lt), at(() => ke(ot, o())), S(K, lt);
5254
5254
  };
5255
5255
  q(st, (K) => {
5256
5256
  s(h) && K(R);
@@ -5262,7 +5262,7 @@ function Jn(t, e) {
5262
5262
  var Z = (K) => {
5263
5263
  var lt = Bl(), ot = $(lt);
5264
5264
  ot.__click = m, ot.__keydown = [jl], ot.__keyup = [ql, m];
5265
- var kt = $(ot), V = $(kt);
5265
+ var Tt = $(ot), V = $(Tt);
5266
5266
  {
5267
5267
  let pt = /* @__PURE__ */ I(() => s(c) ? "smallChevronUp" : "smallChevronDown"), z = /* @__PURE__ */ I(() => s(c) ? "collapse-icon" : "expand-icon");
5268
5268
  $t(V, {
@@ -5276,23 +5276,23 @@ function Jn(t, e) {
5276
5276
  height: 7
5277
5277
  });
5278
5278
  }
5279
- D(kt), li(2), D(ot);
5279
+ D(Tt), li(2), D(ot);
5280
5280
  var rt = J(ot, 2), vt = $(rt);
5281
- Re(vt, {
5281
+ He(vt, {
5282
5282
  get htmlString() {
5283
5283
  return a();
5284
5284
  },
5285
5285
  otherClass: "image-description text-left leading-[1.5]"
5286
- }), D(rt), D(lt), it(() => {
5287
- at(ot, "aria-expanded", s(c)), at(rt, "hidden", !s(c));
5286
+ }), D(rt), D(lt), at(() => {
5287
+ it(ot, "aria-expanded", s(c)), it(rt, "hidden", !s(c));
5288
5288
  }), S(K, lt);
5289
5289
  };
5290
5290
  q(E, (K) => {
5291
5291
  s(f) && K(Z);
5292
5292
  });
5293
5293
  }
5294
- it(() => {
5295
- at(P, "src", n()), at(P, "alt", i());
5294
+ at(() => {
5295
+ it(P, "src", n()), it(P, "alt", i());
5296
5296
  }), hr("load", P, function(...K) {
5297
5297
  d()?.apply(this, K);
5298
5298
  }), hi(P), S(A, L);
@@ -5309,7 +5309,7 @@ function Jn(t, e) {
5309
5309
  }
5310
5310
  return S(t, k), xt(w);
5311
5311
  }
5312
- en(["click", "keydown", "keyup"]);
5312
+ rn(["click", "keydown", "keyup"]);
5313
5313
  _t(
5314
5314
  Jn,
5315
5315
  {
@@ -5371,14 +5371,14 @@ function ti(t, e) {
5371
5371
  {
5372
5372
  var P = (R) => {
5373
5373
  var E = Gl(), Z = $(E);
5374
- Re(Z, {
5374
+ He(Z, {
5375
5375
  get htmlString() {
5376
5376
  return s(p);
5377
5377
  },
5378
5378
  get otherClass() {
5379
5379
  return s(g);
5380
5380
  }
5381
- }), D(E), it(() => ft(E, 1, Ft(s(m)))), S(R, E);
5381
+ }), D(E), at(() => ft(E, 1, Ft(s(m)))), S(R, E);
5382
5382
  };
5383
5383
  q(F, (R) => {
5384
5384
  s(h) && R(P);
@@ -5407,7 +5407,7 @@ function ti(t, e) {
5407
5407
  get onexpandImage() {
5408
5408
  return a();
5409
5409
  }
5410
- }), D(E), it(() => ft(E, 1, Ft(s(w)))), S(R, E);
5410
+ }), D(E), at(() => ft(E, 1, Ft(s(w)))), S(R, E);
5411
5411
  };
5412
5412
  q(dt, (R) => {
5413
5413
  s(f) && R(st);
@@ -5438,7 +5438,7 @@ function ti(t, e) {
5438
5438
  get onexpandImage() {
5439
5439
  return a();
5440
5440
  }
5441
- }), D(E), it(() => ft(E, 1, Ft(s(w)))), S(R, E);
5441
+ }), D(E), at(() => ft(E, 1, Ft(s(w)))), S(R, E);
5442
5442
  };
5443
5443
  q(F, (R) => {
5444
5444
  s(f) && R(P);
@@ -5448,14 +5448,14 @@ function ti(t, e) {
5448
5448
  {
5449
5449
  var st = (R) => {
5450
5450
  var E = Xl(), Z = $(E);
5451
- Re(Z, {
5451
+ He(Z, {
5452
5452
  get htmlString() {
5453
5453
  return s(p);
5454
5454
  },
5455
5455
  get otherClass() {
5456
5456
  return s(g);
5457
5457
  }
5458
- }), D(E), it(() => ft(E, 1, Ft(s(m)))), S(R, E);
5458
+ }), D(E), at(() => ft(E, 1, Ft(s(m)))), S(R, E);
5459
5459
  };
5460
5460
  q(dt, (R) => {
5461
5461
  s(h) && R(st);
@@ -5600,10 +5600,10 @@ function ao(t, e) {
5600
5600
  onexpandImage: M
5601
5601
  });
5602
5602
  }
5603
- }, Pr = (Ee) => {
5603
+ }, Fr = (Ee) => {
5604
5604
  var Ye = mt(), In = ct(Ye);
5605
5605
  {
5606
- var an = (Ie) => {
5606
+ var on = (Ie) => {
5607
5607
  var Ke = ec();
5608
5608
  S(Ie, Ke);
5609
5609
  }, Qe = (Ie) => {
@@ -5611,28 +5611,28 @@ function ao(t, e) {
5611
5611
  {
5612
5612
  var yt = (gt) => {
5613
5613
  eo(gt, {
5614
- children: (Tt, on) => {
5615
- var Pe = mt(), Fr = ct(Pe);
5616
- mr(Fr, () => l() ?? Nt), S(Tt, Pe);
5614
+ children: (Ct, zr) => {
5615
+ var yr = mt(), Me = ct(yr);
5616
+ mr(Me, () => l() ?? Nt), S(Ct, yr);
5617
5617
  },
5618
5618
  $$slots: { default: !0 }
5619
5619
  });
5620
5620
  }, Ae = (gt) => {
5621
- var Tt = mt(), on = ct(Tt);
5621
+ var Ct = mt(), zr = ct(Ct);
5622
5622
  {
5623
- var Pe = (Fr) => {
5623
+ var yr = (Me) => {
5624
5624
  var _i = mt(), co = ct(_i);
5625
- mr(co, () => c() ?? Nt), S(Fr, _i);
5625
+ mr(co, () => c() ?? Nt), S(Me, _i);
5626
5626
  };
5627
5627
  q(
5628
- on,
5629
- (Fr) => {
5630
- s(rt).component === "slot" && s(rt).slot === "feedback" && Fr(Pe);
5628
+ zr,
5629
+ (Me) => {
5630
+ s(rt).component === "slot" && s(rt).slot === "feedback" && Me(yr);
5631
5631
  },
5632
5632
  !0
5633
5633
  );
5634
5634
  }
5635
- S(gt, Tt);
5635
+ S(gt, Ct);
5636
5636
  };
5637
5637
  q(
5638
5638
  An,
@@ -5647,7 +5647,7 @@ function ao(t, e) {
5647
5647
  q(
5648
5648
  In,
5649
5649
  (Ie) => {
5650
- s(rt).component === "divider" ? Ie(an) : Ie(Qe, !1);
5650
+ s(rt).component === "divider" ? Ie(on) : Ie(Qe, !1);
5651
5651
  },
5652
5652
  !0
5653
5653
  );
@@ -5657,7 +5657,7 @@ function ao(t, e) {
5657
5657
  q(
5658
5658
  _r,
5659
5659
  (Ee) => {
5660
- s(rt).component === "stimulus-text" || s(rt).component === "stimulus-media" ? Ee(Ge) : Ee(Pr, !1);
5660
+ s(rt).component === "stimulus-text" || s(rt).component === "stimulus-media" ? Ee(Ge) : Ee(Fr, !1);
5661
5661
  },
5662
5662
  !0
5663
5663
  );
@@ -5678,7 +5678,7 @@ function ao(t, e) {
5678
5678
  s(rt).component === "rubric" ? St(z) : St(wt, !1);
5679
5679
  });
5680
5680
  }
5681
- D(vt), it(
5681
+ D(vt), at(
5682
5682
  (St, H) => {
5683
5683
  ft(vt, 1, St), be(vt, H);
5684
5684
  },
@@ -5700,7 +5700,7 @@ function ao(t, e) {
5700
5700
  return de.DEFAULT;
5701
5701
  },
5702
5702
  onexpandImage: M
5703
- }), D(rt), $e(rt, (pt) => C(k, pt), () => s(k)), it(
5703
+ }), D(rt), Ne(rt, (pt) => C(k, pt), () => s(k)), at(
5704
5704
  (pt, z) => {
5705
5705
  ft(rt, 1, pt), be(rt, `${z ?? ""}; ${s(b) ?? ""}`);
5706
5706
  },
@@ -5717,7 +5717,7 @@ function ao(t, e) {
5717
5717
  D(E), D(R);
5718
5718
  var ot = J(R, 2);
5719
5719
  {
5720
- var kt = (V) => {
5720
+ var Tt = (V) => {
5721
5721
  ro(V, {
5722
5722
  get isOpen() {
5723
5723
  return s(x);
@@ -5735,10 +5735,10 @@ function ao(t, e) {
5735
5735
  });
5736
5736
  };
5737
5737
  q(ot, (V) => {
5738
- s(x) && V(kt);
5738
+ s(x) && V(Tt);
5739
5739
  });
5740
5740
  }
5741
- return it(
5741
+ return at(
5742
5742
  (V, rt) => {
5743
5743
  ft(E, 1, V), be(E, rt), ft(Z, 1, `bg-transparent relative ${s(m).name === "two-column" ? "lg:basis-1/2 lg:max-w-[50%]" : ""}`);
5744
5744
  },
@@ -5770,12 +5770,12 @@ function oo(t, e) {
5770
5770
  let r = y(e, "option", 7), n = y(e, "index", 7), i = y(e, "config", 7), a = y(e, "state", 7), o = y(e, "optionHasMedia", 7, !1), d = y(e, "onOptionClick", 7), l = y(e, "onExpandImage", 7), c = /* @__PURE__ */ I(() => wi(a(), i())), u = /* @__PURE__ */ I(() => nl(r(), n(), i(), a(), o())), p = /* @__PURE__ */ I(() => s(c).totalCorrectAnswers), h = /* @__PURE__ */ I(() => s(c).correctAnswerIds), f = /* @__PURE__ */ I(() => s(c).mode), m = /* @__PURE__ */ I(() => s(f) === ut.PREVIEW), g = /* @__PURE__ */ I(() => s(f) === ut.INTERACTIVE);
5771
5771
  const w = () => {
5772
5772
  if (!s(u))
5773
- return `Option ${dn(n())}: ${Vr(r().answer)}`;
5773
+ return `Option ${dn(n())}: ${Br(r().answer)}`;
5774
5774
  const H = a().data.selectedOptions ?? [];
5775
- let B = `${(!s(u).isFinished || s(g)) && s(u).isSelected ? "Selected " : ""}Option ${dn(n())}: ${Vr(r().answer)}`;
5775
+ let B = `${(!s(u).isFinished || s(g)) && s(u).isSelected ? "Selected " : ""}Option ${dn(n())}: ${Br(r().answer)}`;
5776
5776
  return s(u).isFinished && !s(m) && !s(g) ? s(u).isCorrect ? B += s(u).isSelected ? " (Correct answer)" : " (Missing Answer)" : s(u).isSelected && (B += " (Incorrect answer)") : s(m) && !s(g) ? s(u).isCorrect && (B += " (Correct answer)") : s(g) && H.length === s(p) && (s(u).isSelected ? B += s(u).isCorrect ? " (Correct answer)" : " (Incorrect answer)" : s(u).isCorrect && (B += " (Missing Answer)")), B;
5777
5777
  };
5778
- let k = /* @__PURE__ */ I(() => s(u) ? w() : `Option ${dn(n())}: ${Vr(r().answer)}`);
5778
+ let k = /* @__PURE__ */ I(() => s(u) ? w() : `Option ${dn(n())}: ${Br(r().answer)}`);
5779
5779
  var T = {
5780
5780
  get option() {
5781
5781
  return r();
@@ -5823,7 +5823,7 @@ function oo(t, e) {
5823
5823
  {
5824
5824
  var x = (H) => {
5825
5825
  var B = ac(), ht = $(B, !0);
5826
- D(B), it(() => ke(ht, s(g) ? "Your answer:" : s(m) ? "" : "Student's answer:")), S(H, B);
5826
+ D(B), at(() => ke(ht, s(g) ? "Your answer:" : s(m) ? "" : "Student's answer:")), S(H, B);
5827
5827
  };
5828
5828
  q(b, (H) => {
5829
5829
  s(u)?.showStudentLabel && H(x);
@@ -5837,7 +5837,7 @@ function oo(t, e) {
5837
5837
  {
5838
5838
  var st = (H) => {
5839
5839
  var B = sc(), ht = $(B, !0);
5840
- D(B), it(() => ke(ht, s(g) ? "Your answer:" : s(m) ? "" : "Student's answer:")), S(H, B);
5840
+ D(B), at(() => ke(ht, s(g) ? "Your answer:" : s(m) ? "" : "Student's answer:")), S(H, B);
5841
5841
  };
5842
5842
  q(dt, (H) => {
5843
5843
  s(u)?.showMediaStudentLabel && H(st);
@@ -5854,7 +5854,7 @@ function oo(t, e) {
5854
5854
  });
5855
5855
  }
5856
5856
  var Z = J(R, 2);
5857
- Re(Z, {
5857
+ He(Z, {
5858
5858
  otherClass: "overflow-hidden text-ellipsis line-clamp-3",
5859
5859
  get htmlString() {
5860
5860
  return r().answer;
@@ -5870,7 +5870,7 @@ function oo(t, e) {
5870
5870
  s(u)?.showMissingIcon && H(ot);
5871
5871
  });
5872
5872
  }
5873
- var kt = J(lt, 2);
5873
+ var Tt = J(lt, 2);
5874
5874
  {
5875
5875
  var V = (H) => {
5876
5876
  var B = dc(), ht = $(B);
@@ -5884,15 +5884,15 @@ function oo(t, e) {
5884
5884
  s(h).includes(r().id) || s(m) && !s(g) ? Et(pe) : Et(Rt, !1);
5885
5885
  });
5886
5886
  }
5887
- D(B), it((Et) => ft(B, 1, `${Et ?? ""} p-0.5`), [
5887
+ D(B), at((Et) => ft(B, 1, `${Et ?? ""} p-0.5`), [
5888
5888
  () => s(h).includes(r().id) || s(m) && !s(g) ? "text-green-900" : "text-red-900"
5889
5889
  ]), S(H, B);
5890
5890
  };
5891
- q(kt, (H) => {
5891
+ q(Tt, (H) => {
5892
5892
  s(u)?.showResultIcon && H(V);
5893
5893
  });
5894
5894
  }
5895
- var rt = J(kt, 2);
5895
+ var rt = J(Tt, 2);
5896
5896
  {
5897
5897
  var vt = (H) => {
5898
5898
  var B = fc(), ht = $(B);
@@ -5905,7 +5905,7 @@ function oo(t, e) {
5905
5905
  s(u)?.isSelected && Rt(pe);
5906
5906
  });
5907
5907
  }
5908
- D(B), it(() => ft(B, 1, Ft(s(u)?.checkboxClasses || "custom-checkbox border-gray-850"))), S(H, B);
5908
+ D(B), at(() => ft(B, 1, Ft(s(u)?.checkboxClasses || "custom-checkbox border-gray-850"))), S(H, B);
5909
5909
  };
5910
5910
  q(rt, (H) => {
5911
5911
  s(u)?.showCheckbox && H(vt);
@@ -5916,8 +5916,8 @@ function oo(t, e) {
5916
5916
  {
5917
5917
  var z = (H) => {
5918
5918
  var B = pc(), ht = $(B);
5919
- D(B), it(() => {
5920
- at(ht, "id", `img-${n() ?? ""}`), at(ht, "alt", `Graphic, ${(r().media?.alternative_text || "") ?? ""}`), at(ht, "src", r().media.file.url);
5919
+ D(B), at(() => {
5920
+ it(ht, "id", `img-${n() ?? ""}`), it(ht, "alt", `Graphic, ${(r().media?.alternative_text || "") ?? ""}`), it(ht, "src", r().media.file.url);
5921
5921
  }), S(H, B);
5922
5922
  };
5923
5923
  q(pt, (H) => {
@@ -5946,14 +5946,14 @@ function oo(t, e) {
5946
5946
  o() && H(St);
5947
5947
  });
5948
5948
  }
5949
- return D(N), it(
5949
+ return D(N), at(
5950
5950
  (H) => {
5951
- at(M, "role", s(p) > 1 ? "checkbox" : null), at(M, "tabindex", s(p) > 1 ? 0 : null), at(M, "aria-describedby", `img-${n() ?? ""}`), at(M, "aria-checked", s(p) > 1 ? s(u)?.isSelected : null), at(M, "aria-disabled", s(u)?.isFinished && !s(g) ? "true" : null), at(M, "aria-label", s(k)), ft(M, 1, Ft(s(u)?.buttonClasses || "group btn-mcq-option")), ft(A, 1, `btn-mcq-text ${o() ? "min-h-[44px]" : ""}`), ft(Y, 1, `choice ${o() ? "my-1.5" : ""}`), ke(F, H);
5951
+ it(M, "role", s(p) > 1 ? "checkbox" : null), it(M, "tabindex", s(p) > 1 ? 0 : null), it(M, "aria-describedby", `img-${n() ?? ""}`), it(M, "aria-checked", s(p) > 1 ? s(u)?.isSelected : null), it(M, "aria-disabled", s(u)?.isFinished && !s(g) ? "true" : null), it(M, "aria-label", s(k)), ft(M, 1, Ft(s(u)?.buttonClasses || "group btn-mcq-option")), ft(A, 1, `btn-mcq-text ${o() ? "min-h-[44px]" : ""}`), ft(Y, 1, `choice ${o() ? "my-1.5" : ""}`), ke(F, H);
5952
5952
  },
5953
5953
  [() => dn(n())]
5954
5954
  ), S(t, O), xt(T);
5955
5955
  }
5956
- en(["click"]);
5956
+ rn(["click"]);
5957
5957
  _t(
5958
5958
  oo,
5959
5959
  {
@@ -6042,7 +6042,7 @@ function so(t, e) {
6042
6042
  onOptionClick: d,
6043
6043
  onExpandImage: l
6044
6044
  });
6045
- }), D(x), D(T), it(() => {
6045
+ }), D(x), D(T), at(() => {
6046
6046
  ft(T, 1, Ft(s(p) ? "w-full" : "relative")), ft(x, 1, Ft(s(p) ? "flex flex-col justify-start items-center md:items-start md:flex-none md:grid md:[grid-template-columns:repeat(2,minmax(auto,304px))] md:gap-x-4 md:justify-center lg:justify-start" : ""));
6047
6047
  }), S(k, T);
6048
6048
  }, w = (k) => {
@@ -6075,7 +6075,7 @@ function lo(t, e) {
6075
6075
  const o = r().hasExistingState?.() ? r().restoreState?.() : r().createInitialState?.();
6076
6076
  if (!o?.data)
6077
6077
  throw new Error("Failed to initialize MCQ state");
6078
- let d = /* @__PURE__ */ W(Oe(o)), l = /* @__PURE__ */ I(() => wi(s(d), n(), n().options)), c = /* @__PURE__ */ I(() => s(l).selectedOptions), u = /* @__PURE__ */ I(() => s(l).totalCorrectAnswers), p = /* @__PURE__ */ I(() => s(l).mode), h = /* @__PURE__ */ I(() => s(l).hasMedia), f = /* @__PURE__ */ I(() => s(p) === ut.INTERACTIVE), m = /* @__PURE__ */ W(!1), g = /* @__PURE__ */ W(0), w = null, k = /* @__PURE__ */ I(() => Object.values(n().options).filter((R) => R.media));
6078
+ let d = /* @__PURE__ */ W($e(o)), l = /* @__PURE__ */ I(() => wi(s(d), n(), n().options)), c = /* @__PURE__ */ I(() => s(l).selectedOptions), u = /* @__PURE__ */ I(() => s(l).totalCorrectAnswers), p = /* @__PURE__ */ I(() => s(l).mode), h = /* @__PURE__ */ I(() => s(l).hasMedia), f = /* @__PURE__ */ I(() => s(p) === ut.INTERACTIVE), m = /* @__PURE__ */ W(!1), g = /* @__PURE__ */ W(0), w = null, k = /* @__PURE__ */ I(() => Object.values(n().options).filter((R) => R.media));
6079
6079
  const T = (R) => ({
6080
6080
  answer_id: R,
6081
6081
  answer_choice: [],
@@ -6103,9 +6103,9 @@ function lo(t, e) {
6103
6103
  }
6104
6104
  })), s(f) && U());
6105
6105
  }, U = () => {
6106
- C(d, Tr.updateState(s(d), { interactiveHasAnswered: !0 }), !0), s(u) === s(c).length && setTimeout(
6106
+ C(d, Sr.updateState(s(d), { interactiveHasAnswered: !0 }), !0), s(u) === s(c).length && setTimeout(
6107
6107
  () => {
6108
- C(d, Tr.updateState(s(d), { showFeedback: !0 }), !0);
6108
+ C(d, Sr.updateState(s(d), { showFeedback: !0 }), !0);
6109
6109
  },
6110
6110
  50
6111
6111
  );
@@ -6152,7 +6152,7 @@ function lo(t, e) {
6152
6152
  onExpandImage: N
6153
6153
  });
6154
6154
  }, E = (lt) => {
6155
- var ot = mt(), kt = ct(ot);
6155
+ var ot = mt(), Tt = ct(ot);
6156
6156
  {
6157
6157
  var V = (vt) => {
6158
6158
  var pt = wc(), z = $(pt);
@@ -6174,7 +6174,7 @@ function lo(t, e) {
6174
6174
  }
6175
6175
  });
6176
6176
  };
6177
- q(kt, (vt) => {
6177
+ q(Tt, (vt) => {
6178
6178
  s(f) ? vt(V) : vt(rt, !1);
6179
6179
  });
6180
6180
  }
@@ -6189,7 +6189,7 @@ function lo(t, e) {
6189
6189
  return s(K);
6190
6190
  },
6191
6191
  get interactionType() {
6192
- return nn.MCQ;
6192
+ return an.MCQ;
6193
6193
  },
6194
6194
  get stimulus() {
6195
6195
  return n().stimulus;
@@ -6253,7 +6253,7 @@ const xc = (t, e) => {
6253
6253
  },
6254
6254
  attempts: 0,
6255
6255
  completed: !1,
6256
- lastModified: Tr.createTimestamp()
6256
+ lastModified: Sr.createTimestamp()
6257
6257
  }),
6258
6258
  // Enhanced API methods for migration
6259
6259
  isCompleted: (c) => t.isFinished !== void 0 ? t.isFinished : c.completed || c.data.selectedOptions.length === n() && i(),
@@ -6275,7 +6275,7 @@ const xc = (t, e) => {
6275
6275
  },
6276
6276
  attempts: c.length,
6277
6277
  completed: t.isFinished || !1,
6278
- lastModified: u.timestamp || Tr.createTimestamp()
6278
+ lastModified: u.timestamp || Sr.createTimestamp()
6279
6279
  };
6280
6280
  }
6281
6281
  return {
@@ -6287,7 +6287,7 @@ const xc = (t, e) => {
6287
6287
  },
6288
6288
  attempts: 0,
6289
6289
  completed: !1,
6290
- lastModified: Tr.createTimestamp()
6290
+ lastModified: Sr.createTimestamp()
6291
6291
  };
6292
6292
  },
6293
6293
  selectOption: (c, u, p) => {
@@ -6302,7 +6302,7 @@ const xc = (t, e) => {
6302
6302
  f = [u], m = [p];
6303
6303
  }
6304
6304
  return {
6305
- newState: Tr.updateState(c, {
6305
+ newState: Sr.updateState(c, {
6306
6306
  selectedOptions: f,
6307
6307
  selectedChoices: m,
6308
6308
  interactiveHasAnswered: a()
@@ -6372,7 +6372,7 @@ function kc(t, e) {
6372
6372
  bt(e, !0), gs(t, Cc);
6373
6373
  let r = y(e, "session-id", 7), n = y(e, "item-id", 7), i = y(e, "interactive-mode", 7), a = y(e, "preview-mode", 7), o = /* @__PURE__ */ W(null), d = /* @__PURE__ */ W(null), l = /* @__PURE__ */ W(!0), c = /* @__PURE__ */ W(null), u = /* @__PURE__ */ W(null), p = /* @__PURE__ */ W(null), h = /* @__PURE__ */ W(!1), f = /* @__PURE__ */ I(() => i() === "true" ? ut.INTERACTIVE : a() === "true" ? ut.PREVIEW : ut.SESSION);
6374
6374
  Vs();
6375
- let m = /* @__PURE__ */ I(() => Hr(vi) ? "?skip_user_validation=true" : "");
6375
+ let m = /* @__PURE__ */ I(() => Pr(vi) ? "?skip_user_validation=true" : "");
6376
6376
  Lt(() => {
6377
6377
  if (s(f) === ut.SESSION && !r()) {
6378
6378
  C(c, "No session ID provided for session mode"), C(l, !1);
@@ -6402,7 +6402,7 @@ function kc(t, e) {
6402
6402
  };
6403
6403
  });
6404
6404
  const g = (A) => A?.interaction?.type ? A.interaction.type : A?.type ? A.type : A?.interactionType ? A.interactionType : "", w = (A) => ({
6405
- [nn.MCQ]: "mcq"
6405
+ [an.MCQ]: "mcq"
6406
6406
  // TODO: Add other interaction type mappings as they're migrated
6407
6407
  })[A] || A, k = (A, L) => {
6408
6408
  switch (L) {
@@ -6475,8 +6475,8 @@ function kc(t, e) {
6475
6475
  {
6476
6476
  var R = (Z) => {
6477
6477
  var K = mt(), lt = ct(K);
6478
- ms(lt, () => s(d), (ot, kt) => {
6479
- kt(ot, {
6478
+ ms(lt, () => s(d), (ot, Tt) => {
6479
+ Tt(ot, {
6480
6480
  get api() {
6481
6481
  return s(o);
6482
6482
  },