@pie-framework/pie-fixed-player-static 1.0.0-351df72.3 → 1.0.0-351df72.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,44 +1,44 @@
1
- var Tr = Object.defineProperty;
1
+ var Rr = Object.defineProperty;
2
2
  var rn = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
- var Rr = (e, t, n) => t in e ? Tr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
- var W = (e, t, n) => Rr(e, typeof t != "symbol" ? t + "" : t, n), on = (e, t, n) => t.has(e) || rn("Cannot " + n);
7
- var D = (e, t, n) => (on(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Ot = (e, t, n) => t.has(e) ? rn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Tt = (e, t, n, r) => (on(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
5
+ var Tr = (e, t, n) => t in e ? Rr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
+ var W = (e, t, n) => Tr(e, typeof t != "symbol" ? t + "" : t, n), on = (e, t, n) => t.has(e) || rn("Cannot " + n);
7
+ var D = (e, t, n) => (on(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Ot = (e, t, n) => t.has(e) ? rn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Rt = (e, t, n, r) => (on(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
8
8
  const Fr = "5";
9
9
  var On;
10
10
  typeof window < "u" && ((On = window.__svelte ?? (window.__svelte = {})).v ?? (On.v = /* @__PURE__ */ new Set())).add(Fr);
11
- const Ar = 1, Br = 4, Ur = 8, Dr = 16, Mr = 1, Nr = 2, yt = "[", qt = "[!", Yt = "]", Ue = {}, M = Symbol(), S = Symbol("filename"), jr = "http://www.w3.org/1999/xhtml", sn = !0, re = 2, Tn = 4, wt = 8, Jt = 16, fe = 32, Le = 64, ct = 128, V = 256, ut = 512, j = 1024, de = 2048, Ie = 4096, Ne = 8192, $t = 16384, zr = 32768, Vt = 65536, Rn = 1 << 18, Qr = 1 << 19, Fn = 1 << 20, At = 1 << 21, be = Symbol("$state"), Je = Symbol("$state metadata"), An = Symbol("legacy props");
12
- var Gt = Array.isArray, qr = Array.prototype.indexOf, Yr = Array.from, ft = Object.keys, te = Object.defineProperty, Ce = Object.getOwnPropertyDescriptor, Jr = Object.getOwnPropertyDescriptors, Bn = Object.prototype, Vr = Array.prototype, Wt = Object.getPrototypeOf, ln = Object.isExtensible;
13
- function Un(e) {
11
+ const Br = 1, Ur = 4, Ar = 8, Dr = 16, Mr = 1, Nr = 2, yt = "[", qt = "[!", Jt = "]", Ae = {}, M = Symbol(), S = Symbol("filename"), jr = "http://www.w3.org/1999/xhtml", sn = !0, re = 2, Rn = 4, wt = 8, Vt = 16, fe = 32, Le = 64, ct = 128, Y = 256, ut = 512, j = 1024, de = 2048, Ie = 4096, Ne = 8192, $t = 16384, Qr = 32768, Yt = 65536, Tn = 1 << 18, zr = 1 << 19, Fn = 1 << 20, Bt = 1 << 21, be = Symbol("$state"), Ve = Symbol("$state metadata"), Bn = Symbol("legacy props");
12
+ var Gt = Array.isArray, qr = Array.prototype.indexOf, Jr = Array.from, ft = Object.keys, te = Object.defineProperty, Ce = Object.getOwnPropertyDescriptor, Vr = Object.getOwnPropertyDescriptors, Un = Object.prototype, Yr = Array.prototype, Wt = Object.getPrototypeOf, ln = Object.isExtensible;
13
+ function An(e) {
14
14
  for (var t = 0; t < e.length; t++)
15
15
  e[t]();
16
16
  }
17
- let Ke = [], Bt = [];
17
+ let Ke = [], Ut = [];
18
18
  function Dn() {
19
19
  var e = Ke;
20
- Ke = [], Un(e);
20
+ Ke = [], An(e);
21
21
  }
22
22
  function Gr() {
23
- var e = Bt;
24
- Bt = [], Un(e);
23
+ var e = Ut;
24
+ Ut = [], An(e);
25
25
  }
26
26
  function Wr(e) {
27
27
  Ke.length === 0 && queueMicrotask(Dn), Ke.push(e);
28
28
  }
29
29
  function an() {
30
- Ke.length > 0 && Dn(), Bt.length > 0 && Gr();
30
+ Ke.length > 0 && Dn(), Ut.length > 0 && Gr();
31
31
  }
32
32
  function Mn(e) {
33
33
  return e === this.v;
34
34
  }
35
- function Hr(e, t) {
35
+ function Xr(e, t) {
36
36
  return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
37
37
  }
38
38
  function Nn(e) {
39
- return !Hr(e, this.v);
39
+ return !Xr(e, this.v);
40
40
  }
41
- function Zr(e, t, n) {
41
+ function Hr(e, t, n) {
42
42
  {
43
43
  const r = new Error(`component_api_changed
44
44
  ${e} called \`${t}\` on an instance of ${n}, which is no longer valid in Svelte 5
@@ -46,7 +46,7 @@ https://svelte.dev/e/component_api_changed`);
46
46
  throw r.name = "Svelte error", r;
47
47
  }
48
48
  }
49
- function Xr(e, t) {
49
+ function Zr(e, t) {
50
50
  {
51
51
  const n = new Error(`component_api_invalid_new
52
52
  Attempted to instantiate ${e} with \`new ${t}\`, which is no longer valid in Svelte 5. If this component is not under your control, set the \`compatibility.componentApi\` compiler option to \`4\` to keep it working.
@@ -184,7 +184,7 @@ function Ge(e, t, n, r, o = null) {
184
184
  }
185
185
  return i;
186
186
  }
187
- if (Wt(e) === Bn) {
187
+ if (Wt(e) === Un) {
188
188
  i = {}, t.set(e, i), o !== null && t.set(o, i);
189
189
  for (var a in e)
190
190
  i[a] = Ge(e[a], t, `${n}.${a}`, r);
@@ -222,36 +222,36 @@ function Ge(e, t, n, r, o = null) {
222
222
  e;
223
223
  }
224
224
  }
225
- var Ve = null;
225
+ var Ye = null;
226
226
  function Ee(e, t) {
227
227
  if (typeof e != "object" || e === null || be in e)
228
228
  return e;
229
229
  const n = Wt(e);
230
- if (n !== Bn && n !== Vr)
230
+ if (n !== Un && n !== Yr)
231
231
  return e;
232
- var r = /* @__PURE__ */ new Map(), o = Gt(e), s = T(0), i = $, l = (a) => {
232
+ var r = /* @__PURE__ */ new Map(), o = Gt(e), s = R(0), i = $, l = (a) => {
233
233
  var d = $;
234
234
  oe(i);
235
235
  var c;
236
236
  {
237
- var u = Ve;
238
- Ve = h, c = a(), Ve = u;
237
+ var u = Ye;
238
+ Ye = h, c = a(), Ye = u;
239
239
  }
240
240
  return oe(d), c;
241
241
  };
242
- o && r.set("length", T(
242
+ o && r.set("length", R(
243
243
  /** @type {any[]} */
244
244
  e.length
245
245
  ));
246
246
  var h;
247
247
  if (h = {
248
- parent: Ve,
248
+ parent: Ye,
249
249
  owners: null
250
250
  }, t) {
251
- const a = t.v?.[Je]?.owners;
251
+ const a = t.v?.[Ve]?.owners;
252
252
  h.owners = a ? new Set(a) : null;
253
253
  } else
254
- h.owners = Ve === null ? R !== null ? /* @__PURE__ */ new Set([R.function]) : null : /* @__PURE__ */ new Set();
254
+ h.owners = Ye === null ? T !== null ? /* @__PURE__ */ new Set([T.function]) : null : /* @__PURE__ */ new Set();
255
255
  return new Proxy(
256
256
  /** @type {any} */
257
257
  e,
@@ -259,7 +259,7 @@ function Ee(e, t) {
259
259
  defineProperty(a, d, c) {
260
260
  (!("value" in c) || c.configurable === !1 || c.enumerable === !1 || c.writable === !1) && lo();
261
261
  var u = r.get(d);
262
- return u === void 0 ? (u = l(() => T(c.value)), r.set(d, u)) : w(
262
+ return u === void 0 ? (u = l(() => R(c.value)), r.set(d, u)) : w(
263
263
  u,
264
264
  l(() => Ee(c.value))
265
265
  ), !0;
@@ -269,7 +269,7 @@ function Ee(e, t) {
269
269
  if (c === void 0)
270
270
  d in a && r.set(
271
271
  d,
272
- l(() => T(M))
272
+ l(() => R(M))
273
273
  );
274
274
  else {
275
275
  if (o && typeof d == "string") {
@@ -284,15 +284,15 @@ function Ee(e, t) {
284
284
  return !0;
285
285
  },
286
286
  get(a, d, c) {
287
- if (d === Je)
287
+ if (d === Ve)
288
288
  return h;
289
289
  if (d === be)
290
290
  return e;
291
291
  var u = r.get(d), v = d in a;
292
- if (u === void 0 && (!v || Ce(a, d)?.writable) && (u = l(() => T(Ee(v ? a[d] : M))), r.set(d, u)), u !== void 0) {
292
+ if (u === void 0 && (!v || Ce(a, d)?.writable) && (u = l(() => R(Ee(v ? a[d] : M))), r.set(d, u)), u !== void 0) {
293
293
  var _ = m(u);
294
294
  {
295
- var p = _?.[Je];
295
+ var p = _?.[Ve];
296
296
  p && p?.parent !== h && wn(h, p);
297
297
  }
298
298
  return _ === M ? void 0 : _;
@@ -317,11 +317,11 @@ function Ee(e, t) {
317
317
  return c;
318
318
  },
319
319
  has(a, d) {
320
- if (d === Je || d === be)
320
+ if (d === Ve || d === be)
321
321
  return !0;
322
322
  var c = r.get(d), u = c !== void 0 && c.v !== M || Reflect.has(a, d);
323
323
  if (c !== void 0 || E !== null && (!u || Ce(a, d)?.writable)) {
324
- c === void 0 && (c = l(() => T(u ? Ee(a[d]) : M)), r.set(d, c));
324
+ c === void 0 && (c = l(() => R(u ? Ee(a[d]) : M)), r.set(d, c));
325
325
  var v = m(c);
326
326
  if (v === M)
327
327
  return !1;
@@ -334,9 +334,9 @@ function Ee(e, t) {
334
334
  for (var p = c; p < /** @type {Source<number>} */
335
335
  v.v; p += 1) {
336
336
  var y = r.get(p + "");
337
- y !== void 0 ? w(y, M) : p in a && (y = l(() => T(M)), r.set(p + "", y));
337
+ y !== void 0 ? w(y, M) : p in a && (y = l(() => R(M)), r.set(p + "", y));
338
338
  }
339
- v === void 0 ? (!_ || Ce(a, d)?.writable) && (v = l(() => T(void 0)), w(
339
+ v === void 0 ? (!_ || Ce(a, d)?.writable) && (v = l(() => R(void 0)), w(
340
340
  v,
341
341
  l(() => Ee(c))
342
342
  ), r.set(d, v)) : (_ = v.v !== M, w(
@@ -344,11 +344,11 @@ function Ee(e, t) {
344
344
  l(() => Ee(c))
345
345
  ));
346
346
  {
347
- var F = c?.[Je];
348
- F && F?.parent !== h && wn(h, F), zo(h);
347
+ var F = c?.[Ve];
348
+ F && F?.parent !== h && wn(h, F), Qo(h);
349
349
  }
350
- var x = Reflect.getOwnPropertyDescriptor(a, d);
351
- if (x?.set && x.set.call(u, c), !_) {
350
+ var k = Reflect.getOwnPropertyDescriptor(a, d);
351
+ if (k?.set && k.set.call(u, c), !_) {
352
352
  if (o && typeof d == "string") {
353
353
  var q = (
354
354
  /** @type {Source<number>} */
@@ -404,43 +404,43 @@ function jn(e, t) {
404
404
  };
405
405
  return n;
406
406
  }
407
- function T(e, t) {
407
+ function R(e, t) {
408
408
  const n = jn(e);
409
409
  return Gn(n), n;
410
410
  }
411
411
  // @__NO_SIDE_EFFECTS__
412
- function zn(e, t = !1) {
412
+ function Qn(e, t = !1) {
413
413
  const n = jn(e);
414
414
  return t || (n.equals = Nn), n;
415
415
  }
416
416
  function w(e, t, n = !1) {
417
- $ !== null && !ee && dr() && ($.f & (re | Jt)) !== 0 && !ae?.includes(e) && co();
417
+ $ !== null && !ee && dr() && ($.f & (re | Vt)) !== 0 && !ae?.includes(e) && co();
418
418
  let r = n ? Ee(t, e) : t;
419
419
  return go(e, r);
420
420
  }
421
421
  function go(e, t) {
422
422
  if (!e.equals(t)) {
423
423
  var n = e.v;
424
- if (nt ? et.set(e, t) : et.set(e, n), e.v = t, e.wv = Hn(), Qn(e, de), E !== null && (E.f & j) !== 0 && (E.f & (fe | Le)) === 0 && (Y === null ? So([e]) : Y.push(e)), De.size > 0) {
424
+ if (nt ? et.set(e, t) : et.set(e, n), e.v = t, e.wv = Xn(), zn(e, de), E !== null && (E.f & j) !== 0 && (E.f & (fe | Le)) === 0 && (J === null ? So([e]) : J.push(e)), De.size > 0) {
425
425
  const r = Array.from(De);
426
426
  for (const o of r)
427
- (o.f & j) !== 0 && H(o, Ie), qe(o) && Ct(o);
427
+ (o.f & j) !== 0 && X(o, Ie), qe(o) && Ct(o);
428
428
  De.clear();
429
429
  }
430
430
  }
431
431
  return t;
432
432
  }
433
- function Qn(e, t) {
433
+ function zn(e, t) {
434
434
  var n = e.reactions;
435
435
  if (n !== null)
436
436
  for (var r = n.length, o = 0; o < r; o++) {
437
437
  var s = n[o], i = s.f;
438
438
  if ((i & de) === 0) {
439
- if ((i & Rn) !== 0) {
439
+ if ((i & Tn) !== 0) {
440
440
  De.add(s);
441
441
  continue;
442
442
  }
443
- H(s, t), (i & (j | V)) !== 0 && ((i & re) !== 0 ? Qn(
443
+ X(s, t), (i & (j | Y)) !== 0 && ((i & re) !== 0 ? zn(
444
444
  /** @type {Derived} */
445
445
  s,
446
446
  Ie
@@ -452,13 +452,13 @@ function Qn(e, t) {
452
452
  }
453
453
  }
454
454
  // @__NO_SIDE_EFFECTS__
455
- function Ht(e) {
455
+ function Xt(e) {
456
456
  var t = re | de, n = $ !== null && ($.f & re) !== 0 ? (
457
457
  /** @type {Derived} */
458
458
  $
459
459
  ) : null;
460
- return E === null || n !== null && (n.f & V) !== 0 ? t |= V : E.f |= Fn, {
461
- ctx: R,
460
+ return E === null || n !== null && (n.f & Y) !== 0 ? t |= Y : E.f |= Fn, {
461
+ ctx: T,
462
462
  deps: null,
463
463
  effects: null,
464
464
  equals: Mn,
@@ -475,7 +475,7 @@ function Ht(e) {
475
475
  };
476
476
  }
477
477
  function _e(e) {
478
- const t = /* @__PURE__ */ Ht(e);
478
+ const t = /* @__PURE__ */ Xt(e);
479
479
  return Gn(t), t;
480
480
  }
481
481
  function qn(e) {
@@ -489,7 +489,7 @@ function qn(e) {
489
489
  );
490
490
  }
491
491
  }
492
- let Rt = [];
492
+ let Tt = [];
493
493
  function po(e) {
494
494
  for (var t = e.parent; t !== null; ) {
495
495
  if ((t.f & re) === 0)
@@ -508,68 +508,68 @@ function mo(e) {
508
508
  let r = De;
509
509
  fn(/* @__PURE__ */ new Set());
510
510
  try {
511
- Rt.includes(e) && Kr(), Rt.push(e), qn(e), t = Xn(e);
511
+ Tt.includes(e) && Kr(), Tt.push(e), qn(e), t = Zn(e);
512
512
  } finally {
513
- me(n), fn(r), Rt.pop();
513
+ me(n), fn(r), Tt.pop();
514
514
  }
515
515
  }
516
516
  return t;
517
517
  }
518
- function Yn(e) {
519
- var t = mo(e), n = (pe || (e.f & V) !== 0) && e.deps !== null ? Ie : j;
520
- H(e, n), e.equals(t) || (e.v = t, e.wv = Hn());
518
+ function Jn(e) {
519
+ var t = mo(e), n = (pe || (e.f & Y) !== 0) && e.deps !== null ? Ie : j;
520
+ X(e, n), e.equals(t) || (e.v = t, e.wv = Xn());
521
521
  }
522
- var ze = "font-weight: bold", Qe = "font-weight: normal";
522
+ var Qe = "font-weight: bold", ze = "font-weight: normal";
523
523
  function yo(e) {
524
524
  console.warn(`%c[svelte] console_log_state
525
525
  %cYour \`console.${e}\` contained \`$state\` proxies. Consider using \`$inspect(...)\` or \`$state.snapshot(...)\` instead
526
- https://svelte.dev/e/console_log_state`, ze, Qe);
526
+ https://svelte.dev/e/console_log_state`, Qe, ze);
527
527
  }
528
528
  function wo(e) {
529
529
  console.warn(`%c[svelte] hydration_html_changed
530
530
  %c${e ? `The value of an \`{@html ...}\` block ${e} changed between server and client renders. The client value will be ignored in favour of the server value` : "The value of an `{@html ...}` block changed between server and client renders. The client value will be ignored in favour of the server value"}
531
- https://svelte.dev/e/hydration_html_changed`, ze, Qe);
531
+ https://svelte.dev/e/hydration_html_changed`, Qe, ze);
532
532
  }
533
533
  function Et(e) {
534
534
  console.warn(`%c[svelte] hydration_mismatch
535
535
  %cHydration failed because the initial UI does not match what was rendered on the server
536
- https://svelte.dev/e/hydration_mismatch`, ze, Qe);
536
+ https://svelte.dev/e/hydration_mismatch`, Qe, ze);
537
537
  }
538
538
  function $o() {
539
539
  console.warn(`%c[svelte] lifecycle_double_unmount
540
540
  %cTried to unmount a component that was not mounted
541
- https://svelte.dev/e/lifecycle_double_unmount`, ze, Qe);
541
+ https://svelte.dev/e/lifecycle_double_unmount`, Qe, ze);
542
542
  }
543
543
  function dn(e, t) {
544
544
  console.warn(`%c[svelte] ownership_invalid_mutation
545
545
  %c${e ? `${e} mutated a value owned by ${t}. This is strongly discouraged. Consider passing values to child components with \`bind:\`, or use a callback instead` : "Mutating a value outside the component that created it is strongly discouraged. Consider passing values to child components with `bind:`, or use a callback instead"}
546
- https://svelte.dev/e/ownership_invalid_mutation`, ze, Qe);
546
+ https://svelte.dev/e/ownership_invalid_mutation`, Qe, ze);
547
547
  }
548
548
  function it(e) {
549
549
  console.warn(`%c[svelte] state_proxy_equality_mismatch
550
550
  %cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${e}\` will produce unexpected results
551
- https://svelte.dev/e/state_proxy_equality_mismatch`, ze, Qe);
551
+ https://svelte.dev/e/state_proxy_equality_mismatch`, Qe, ze);
552
552
  }
553
- let k = !1;
553
+ let x = !1;
554
554
  function ge(e) {
555
- k = e;
555
+ x = e;
556
556
  }
557
557
  let O;
558
558
  function ce(e) {
559
559
  if (e === null)
560
- throw Et(), Ue;
560
+ throw Et(), Ae;
561
561
  return O = e;
562
562
  }
563
563
  function tt() {
564
564
  return ce(
565
565
  /** @type {TemplateNode} */
566
- /* @__PURE__ */ ke(O)
566
+ /* @__PURE__ */ xe(O)
567
567
  );
568
568
  }
569
- function Z(e) {
570
- if (k) {
571
- if (/* @__PURE__ */ ke(O) !== null)
572
- throw Et(), Ue;
569
+ function H(e) {
570
+ if (x) {
571
+ if (/* @__PURE__ */ xe(O) !== null)
572
+ throw Et(), Ae;
573
573
  O = e;
574
574
  }
575
575
  }
@@ -580,14 +580,14 @@ function Eo() {
580
580
  /** @type {Comment} */
581
581
  t.data
582
582
  );
583
- if (n === Yt) {
583
+ if (n === Jt) {
584
584
  if (e === 0) return t;
585
585
  e -= 1;
586
586
  } else (n === yt || n === qt) && (e += 1);
587
587
  }
588
588
  var r = (
589
589
  /** @type {TemplateNode} */
590
- /* @__PURE__ */ ke(t)
590
+ /* @__PURE__ */ xe(t)
591
591
  );
592
592
  t.remove(), t = r;
593
593
  }
@@ -637,12 +637,12 @@ function N(e, t, n = !0) {
637
637
  }
638
638
  return e === t === n;
639
639
  }
640
- var hn, Zt, Jn, Vn;
641
- function Ut() {
640
+ var hn, Ht, Vn, Yn;
641
+ function At() {
642
642
  if (hn === void 0) {
643
- hn = window, Zt = /Firefox/.test(navigator.userAgent);
643
+ hn = window, Ht = /Firefox/.test(navigator.userAgent);
644
644
  var e = Element.prototype, t = Node.prototype, n = Text.prototype;
645
- Jn = Ce(t, "firstChild").get, Vn = Ce(t, "nextSibling").get, ln(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), ln(n) && (n.__t = void 0), e.__svelte_meta = null, bo();
645
+ Vn = Ce(t, "firstChild").get, Yn = Ce(t, "nextSibling").get, ln(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), ln(n) && (n.__t = void 0), e.__svelte_meta = null, bo();
646
646
  }
647
647
  }
648
648
  function dt(e = "") {
@@ -650,14 +650,14 @@ function dt(e = "") {
650
650
  }
651
651
  // @__NO_SIDE_EFFECTS__
652
652
  function je(e) {
653
- return Jn.call(e);
653
+ return Vn.call(e);
654
654
  }
655
655
  // @__NO_SIDE_EFFECTS__
656
- function ke(e) {
657
- return Vn.call(e);
656
+ function xe(e) {
657
+ return Yn.call(e);
658
658
  }
659
- function X(e, t) {
660
- if (!k)
659
+ function Z(e, t) {
660
+ if (!x)
661
661
  return /* @__PURE__ */ je(e);
662
662
  var n = (
663
663
  /** @type {TemplateNode} */
@@ -672,11 +672,11 @@ function X(e, t) {
672
672
  return ce(n), n;
673
673
  }
674
674
  function Dt(e, t = 1, n = !1) {
675
- let r = k ? O : e;
675
+ let r = x ? O : e;
676
676
  for (var o; t--; )
677
677
  o = r, r = /** @type {TemplateNode} */
678
- /* @__PURE__ */ ke(r);
679
- if (!k)
678
+ /* @__PURE__ */ xe(r);
679
+ if (!x)
680
680
  return r;
681
681
  var s = r?.nodeType;
682
682
  if (n && s !== 3) {
@@ -694,7 +694,7 @@ let lt = !1, ht = !1, vt = null, Pe = !1, nt = !1;
694
694
  function _n(e) {
695
695
  nt = e;
696
696
  }
697
- let He = [], _t = [], $ = null, ee = !1;
697
+ let Xe = [], _t = [], $ = null, ee = !1;
698
698
  function oe(e) {
699
699
  $ = e;
700
700
  }
@@ -707,14 +707,14 @@ function Po(e) {
707
707
  ae = e;
708
708
  }
709
709
  function Gn(e) {
710
- $ !== null && $.f & At && (ae === null ? Po([e]) : ae.push(e));
710
+ $ !== null && $.f & Bt && (ae === null ? Po([e]) : ae.push(e));
711
711
  }
712
- let B = null, Q = 0, Y = null;
712
+ let U = null, z = 0, J = null;
713
713
  function So(e) {
714
- Y = e;
714
+ J = e;
715
715
  }
716
716
  let Wn = 1, gt = 0, pe = !1;
717
- function Hn() {
717
+ function Xn() {
718
718
  return ++Wn;
719
719
  }
720
720
  function qe(e) {
@@ -722,7 +722,7 @@ function qe(e) {
722
722
  if ((t & de) !== 0)
723
723
  return !0;
724
724
  if ((t & Ie) !== 0) {
725
- var n = e.deps, r = (t & V) !== 0;
725
+ var n = e.deps, r = (t & Y) !== 0;
726
726
  if (n !== null) {
727
727
  var o, s, i = (t & ut) !== 0, l = r && E !== null && !pe, h = n.length;
728
728
  if (i || l) {
@@ -732,19 +732,19 @@ function qe(e) {
732
732
  ), d = a.parent;
733
733
  for (o = 0; o < h; o++)
734
734
  s = n[o], (i || !s?.reactions?.includes(a)) && (s.reactions ?? (s.reactions = [])).push(a);
735
- i && (a.f ^= ut), l && d !== null && (d.f & V) === 0 && (a.f ^= V);
735
+ i && (a.f ^= ut), l && d !== null && (d.f & Y) === 0 && (a.f ^= Y);
736
736
  }
737
737
  for (o = 0; o < h; o++)
738
738
  if (s = n[o], qe(
739
739
  /** @type {Derived} */
740
740
  s
741
- ) && Yn(
741
+ ) && Jn(
742
742
  /** @type {Derived} */
743
743
  s
744
744
  ), s.wv > e.wv)
745
745
  return !0;
746
746
  }
747
- (!r || E !== null && !pe) && H(e, j);
747
+ (!r || E !== null && !pe) && X(e, j);
748
748
  }
749
749
  return !1;
750
750
  }
@@ -788,7 +788,7 @@ function bt(e, t, n, r) {
788
788
  }
789
789
  i = i.p;
790
790
  }
791
- const h = Zt ? " " : " ";
791
+ const h = Ht ? " " : " ";
792
792
  te(e, "message", {
793
793
  value: e.message + `
794
794
  ${o.map((d) => `
@@ -813,55 +813,55 @@ ${h}in ${d}`).join("")}
813
813
  if (gn(e, t), pn(t))
814
814
  throw e;
815
815
  }
816
- function Zn(e, t, n = !0) {
816
+ function Hn(e, t, n = !0) {
817
817
  var r = e.reactions;
818
818
  if (r !== null)
819
819
  for (var o = 0; o < r.length; o++) {
820
820
  var s = r[o];
821
- ae?.includes(e) || ((s.f & re) !== 0 ? Zn(
821
+ ae?.includes(e) || ((s.f & re) !== 0 ? Hn(
822
822
  /** @type {Derived} */
823
823
  s,
824
824
  t,
825
825
  !1
826
- ) : t === s && (n ? H(s, de) : (s.f & j) !== 0 && H(s, Ie), Pt(
826
+ ) : t === s && (n ? X(s, de) : (s.f & j) !== 0 && X(s, Ie), Pt(
827
827
  /** @type {Effect} */
828
828
  s
829
829
  )));
830
830
  }
831
831
  }
832
- function Xn(e) {
832
+ function Zn(e) {
833
833
  var v;
834
- var t = B, n = Q, r = Y, o = $, s = pe, i = ae, l = R, h = ee, a = e.f;
835
- B = /** @type {null | Value[]} */
836
- null, Q = 0, Y = null, pe = (a & V) !== 0 && (ee || !Pe || $ === null), $ = (a & (fe | Le)) === 0 ? e : null, ae = null, $n(e.ctx), ee = !1, gt++, e.f |= At;
834
+ var t = U, n = z, r = J, o = $, s = pe, i = ae, l = T, h = ee, a = e.f;
835
+ U = /** @type {null | Value[]} */
836
+ null, z = 0, J = null, pe = (a & Y) !== 0 && (ee || !Pe || $ === null), $ = (a & (fe | Le)) === 0 ? e : null, ae = null, $n(e.ctx), ee = !1, gt++, e.f |= Bt;
837
837
  try {
838
838
  var d = (
839
839
  /** @type {Function} */
840
840
  (0, e.fn)()
841
841
  ), c = e.deps;
842
- if (B !== null) {
842
+ if (U !== null) {
843
843
  var u;
844
- if (pt(e, Q), c !== null && Q > 0)
845
- for (c.length = Q + B.length, u = 0; u < B.length; u++)
846
- c[Q + u] = B[u];
844
+ if (pt(e, z), c !== null && z > 0)
845
+ for (c.length = z + U.length, u = 0; u < U.length; u++)
846
+ c[z + u] = U[u];
847
847
  else
848
- e.deps = c = B;
848
+ e.deps = c = U;
849
849
  if (!pe)
850
- for (u = Q; u < c.length; u++)
850
+ for (u = z; u < c.length; u++)
851
851
  ((v = c[u]).reactions ?? (v.reactions = [])).push(e);
852
- } else c !== null && Q < c.length && (pt(e, Q), c.length = Q);
853
- if (dr() && Y !== null && !ee && c !== null && (e.f & (re | Ie | de)) === 0)
852
+ } else c !== null && z < c.length && (pt(e, z), c.length = z);
853
+ if (dr() && J !== null && !ee && c !== null && (e.f & (re | Ie | de)) === 0)
854
854
  for (u = 0; u < /** @type {Source[]} */
855
- Y.length; u++)
856
- Zn(
857
- Y[u],
855
+ J.length; u++)
856
+ Hn(
857
+ J[u],
858
858
  /** @type {Effect} */
859
859
  e
860
860
  );
861
- return o !== null && (gt++, Y !== null && (r === null ? r = Y : r.push(.../** @type {Source[]} */
862
- Y))), d;
861
+ return o !== null && (gt++, J !== null && (r === null ? r = J : r.push(.../** @type {Source[]} */
862
+ J))), d;
863
863
  } finally {
864
- B = t, Q = n, Y = r, $ = o, pe = s, ae = i, $n(l), ee = h, e.f ^= At;
864
+ U = t, z = n, J = r, $ = o, pe = s, ae = i, $n(l), ee = h, e.f ^= Bt;
865
865
  }
866
866
  }
867
867
  function Lo(e, t) {
@@ -876,7 +876,7 @@ function Lo(e, t) {
876
876
  n === null && (t.f & re) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
877
877
  // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
878
878
  // allows us to skip the expensive work of disconnecting and immediately reconnecting it
879
- (B === null || !B.includes(t)) && (H(t, Ie), (t.f & (V | ut)) === 0 && (t.f ^= ut), qn(
879
+ (U === null || !U.includes(t)) && (X(t, Ie), (t.f & (Y | ut)) === 0 && (t.f ^= ut), qn(
880
880
  /** @type {Derived} **/
881
881
  t
882
882
  ), pt(
@@ -894,16 +894,16 @@ function pt(e, t) {
894
894
  function Ct(e) {
895
895
  var t = e.f;
896
896
  if ((t & $t) === 0) {
897
- H(e, j);
898
- var n = E, r = R, o = Pe;
897
+ X(e, j);
898
+ var n = E, r = T, o = Pe;
899
899
  E = e, Pe = !0;
900
900
  {
901
901
  var s = Se;
902
902
  En(e.component_function);
903
903
  }
904
904
  try {
905
- (t & Jt) !== 0 ? Do(e) : rr(e), nr(e);
906
- var i = Xn(e);
905
+ (t & Vt) !== 0 ? Do(e) : rr(e), nr(e);
906
+ var i = Zn(e);
907
907
  e.teardown = typeof i == "function" ? i : null, e.wv = Wn;
908
908
  var l = e.deps, h;
909
909
  sn && uo && e.f & de, sn && _t.push(e);
@@ -940,20 +940,20 @@ function Kn() {
940
940
  var e = Pe;
941
941
  try {
942
942
  var t = 0;
943
- for (Pe = !0; He.length > 0; ) {
943
+ for (Pe = !0; Xe.length > 0; ) {
944
944
  t++ > 1e3 && Io();
945
- var n = He, r = n.length;
946
- He = [];
945
+ var n = Xe, r = n.length;
946
+ Xe = [];
947
947
  for (var o = 0; o < r; o++) {
948
- var s = xo(n[o]);
949
- ko(s);
948
+ var s = ko(n[o]);
949
+ xo(s);
950
950
  }
951
951
  }
952
952
  } finally {
953
953
  ht = !1, Pe = e, vt = null, _t = [], et.clear();
954
954
  }
955
955
  }
956
- function ko(e) {
956
+ function xo(e) {
957
957
  var t = e.length;
958
958
  if (t !== 0)
959
959
  for (var n = 0; n < t; n++) {
@@ -976,13 +976,13 @@ function Pt(e) {
976
976
  t.f ^= j;
977
977
  }
978
978
  }
979
- He.push(t);
979
+ Xe.push(t);
980
980
  }
981
- function xo(e) {
981
+ function ko(e) {
982
982
  for (var t = [], n = e; n !== null; ) {
983
983
  var r = n.f, o = (r & (fe | Le)) !== 0, s = o && (r & j) !== 0;
984
984
  if (!s && (r & Ne) === 0) {
985
- if ((r & Tn) !== 0)
985
+ if ((r & Rn) !== 0)
986
986
  t.push(n);
987
987
  else if (o)
988
988
  n.f ^= j;
@@ -1010,7 +1010,7 @@ function xo(e) {
1010
1010
  }
1011
1011
  function C(e) {
1012
1012
  var t;
1013
- for (an(); He.length > 0; )
1013
+ for (an(); Xe.length > 0; )
1014
1014
  ht = !0, Kn(), an();
1015
1015
  return (
1016
1016
  /** @type {T} */
@@ -1025,7 +1025,7 @@ function m(e) {
1025
1025
  if ($ !== null && !ee) {
1026
1026
  if (!ae?.includes(e)) {
1027
1027
  var r = $.deps;
1028
- e.rv < gt && (e.rv = gt, B === null && r !== null && r[Q] === e ? Q++ : B === null ? B = [e] : (!pe || !B.includes(e)) && B.push(e));
1028
+ e.rv < gt && (e.rv = gt, U === null && r !== null && r[z] === e ? z++ : U === null ? U = [e] : (!pe || !U.includes(e)) && U.push(e));
1029
1029
  }
1030
1030
  } else if (n && /** @type {Derived} */
1031
1031
  e.deps === null && /** @type {Derived} */
@@ -1034,10 +1034,10 @@ function m(e) {
1034
1034
  /** @type {Derived} */
1035
1035
  e
1036
1036
  ), s = o.parent;
1037
- s !== null && (s.f & V) === 0 && (o.f ^= V);
1037
+ s !== null && (s.f & Y) === 0 && (o.f ^= Y);
1038
1038
  }
1039
1039
  return n && (o = /** @type {Derived} */
1040
- e, qe(o) && Yn(o)), nt && et.has(e) ? et.get(e) : e.v;
1040
+ e, qe(o) && Jn(o)), nt && et.has(e) ? et.get(e) : e.v;
1041
1041
  }
1042
1042
  function Mt(e) {
1043
1043
  var t = ee;
@@ -1048,21 +1048,21 @@ function Mt(e) {
1048
1048
  }
1049
1049
  }
1050
1050
  const Oo = -7169;
1051
- function H(e, t) {
1051
+ function X(e, t) {
1052
1052
  e.f = e.f & Oo | t;
1053
1053
  }
1054
- function To(e) {
1055
- E === null && $ === null && no(e), $ !== null && ($.f & V) !== 0 && E === null && to(), nt && eo(e);
1054
+ function Ro(e) {
1055
+ E === null && $ === null && no(e), $ !== null && ($.f & Y) !== 0 && E === null && to(), nt && eo(e);
1056
1056
  }
1057
- function Ro(e, t) {
1057
+ function To(e, t) {
1058
1058
  var n = t.last;
1059
1059
  n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
1060
1060
  }
1061
- function xe(e, t, n, r = !0) {
1062
- for (var o = E; o !== null && (o.f & Rn) !== 0; )
1061
+ function ke(e, t, n, r = !0) {
1062
+ for (var o = E; o !== null && (o.f & Tn) !== 0; )
1063
1063
  o = o.parent;
1064
1064
  var s = {
1065
- ctx: R,
1065
+ ctx: T,
1066
1066
  deps: null,
1067
1067
  nodes_start: null,
1068
1068
  nodes_end: null,
@@ -1079,13 +1079,13 @@ function xe(e, t, n, r = !0) {
1079
1079
  };
1080
1080
  if (s.component_function = Se, n)
1081
1081
  try {
1082
- Ct(s), s.f |= zr;
1082
+ Ct(s), s.f |= Qr;
1083
1083
  } catch (h) {
1084
1084
  throw ue(s), h;
1085
1085
  }
1086
1086
  else t !== null && Pt(s);
1087
1087
  var i = n && s.deps === null && s.first === null && s.nodes_start === null && s.teardown === null && (s.f & (Fn | ct)) === 0;
1088
- if (!i && r && (o !== null && Ro(s, o), $ !== null && ($.f & re) !== 0)) {
1088
+ if (!i && r && (o !== null && To(s, o), $ !== null && ($.f & re) !== 0)) {
1089
1089
  var l = (
1090
1090
  /** @type {Derived} */
1091
1091
  $
@@ -1095,18 +1095,18 @@ function xe(e, t, n, r = !0) {
1095
1095
  return s;
1096
1096
  }
1097
1097
  function Fo(e) {
1098
- const t = xe(wt, null, !1);
1099
- return H(t, j), t.teardown = e, t;
1098
+ const t = ke(wt, null, !1);
1099
+ return X(t, j), t.teardown = e, t;
1100
1100
  }
1101
1101
  function Fe(e) {
1102
- To("$effect");
1103
- var t = E !== null && (E.f & fe) !== 0 && R !== null && !R.m;
1102
+ Ro("$effect");
1103
+ var t = E !== null && (E.f & fe) !== 0 && T !== null && !T.m;
1104
1104
  if (te(e, "name", {
1105
1105
  value: "$effect"
1106
1106
  }), t) {
1107
1107
  var n = (
1108
1108
  /** @type {ComponentContext} */
1109
- R
1109
+ T
1110
1110
  );
1111
1111
  (n.e ?? (n.e = [])).push({
1112
1112
  fn: e,
@@ -1118,14 +1118,14 @@ function Fe(e) {
1118
1118
  return r;
1119
1119
  }
1120
1120
  }
1121
- function Ao(e) {
1122
- const t = xe(Le, e, !0);
1121
+ function Bo(e) {
1122
+ const t = ke(Le, e, !0);
1123
1123
  return () => {
1124
1124
  ue(t);
1125
1125
  };
1126
1126
  }
1127
- function Bo(e) {
1128
- const t = xe(Le, e, !0);
1127
+ function Uo(e) {
1128
+ const t = ke(Le, e, !0);
1129
1129
  return (n = {}) => new Promise((r) => {
1130
1130
  n.outro ? Nt(t, () => {
1131
1131
  ue(t), r(void 0);
@@ -1133,22 +1133,22 @@ function Bo(e) {
1133
1133
  });
1134
1134
  }
1135
1135
  function tr(e) {
1136
- return xe(Tn, e, !1);
1136
+ return ke(Rn, e, !1);
1137
1137
  }
1138
- function Uo(e) {
1139
- return xe(wt, e, !0);
1138
+ function Ao(e) {
1139
+ return ke(wt, e, !0);
1140
1140
  }
1141
- function Ae(e, t = [], n = Ht) {
1141
+ function Be(e, t = [], n = Xt) {
1142
1142
  const r = t.map(n), o = () => e(...r.map(m));
1143
1143
  return te(o, "name", {
1144
1144
  value: "{expression}"
1145
- }), Xt(o);
1145
+ }), Zt(o);
1146
1146
  }
1147
- function Xt(e, t = 0) {
1148
- return xe(wt | Jt | t, e, !0);
1147
+ function Zt(e, t = 0) {
1148
+ return ke(wt | Vt | t, e, !0);
1149
1149
  }
1150
1150
  function mt(e, t = !0) {
1151
- return xe(wt | fe, e, !0, t);
1151
+ return ke(wt | fe, e, !0, t);
1152
1152
  }
1153
1153
  function nr(e) {
1154
1154
  var t = e.teardown;
@@ -1177,17 +1177,17 @@ function Do(e) {
1177
1177
  }
1178
1178
  function ue(e, t = !0) {
1179
1179
  var n = !1;
1180
- if ((t || (e.f & Qr) !== 0) && e.nodes_start !== null) {
1180
+ if ((t || (e.f & zr) !== 0) && e.nodes_start !== null) {
1181
1181
  for (var r = e.nodes_start, o = e.nodes_end; r !== null; ) {
1182
1182
  var s = r === o ? null : (
1183
1183
  /** @type {TemplateNode} */
1184
- /* @__PURE__ */ ke(r)
1184
+ /* @__PURE__ */ xe(r)
1185
1185
  );
1186
1186
  r.remove(), r = s;
1187
1187
  }
1188
1188
  n = !0;
1189
1189
  }
1190
- rr(e, t && !n), pt(e, 0), H(e, $t);
1190
+ rr(e, t && !n), pt(e, 0), X(e, $t);
1191
1191
  var i = e.transitions;
1192
1192
  if (i !== null)
1193
1193
  for (const h of i)
@@ -1221,7 +1221,7 @@ function sr(e, t, n) {
1221
1221
  for (const i of e.transitions)
1222
1222
  (i.is_global || n) && t.push(i);
1223
1223
  for (var r = e.first; r !== null; ) {
1224
- var o = r.next, s = (r.f & Vt) !== 0 || (r.f & fe) !== 0;
1224
+ var o = r.next, s = (r.f & Yt) !== 0 || (r.f & fe) !== 0;
1225
1225
  sr(r, t, s ? n : !1), r = o;
1226
1226
  }
1227
1227
  }
@@ -1231,9 +1231,9 @@ function yn(e) {
1231
1231
  }
1232
1232
  function ir(e, t) {
1233
1233
  if ((e.f & Ne) !== 0) {
1234
- e.f ^= Ne, (e.f & j) === 0 && (e.f ^= j), qe(e) && (H(e, de), Pt(e));
1234
+ e.f ^= Ne, (e.f & j) === 0 && (e.f ^= j), qe(e) && (X(e, de), Pt(e));
1235
1235
  for (var n = e.first; n !== null; ) {
1236
- var r = n.next, o = (n.f & Vt) !== 0 || (n.f & fe) !== 0;
1236
+ var r = n.next, o = (n.f & Yt) !== 0 || (n.f & fe) !== 0;
1237
1237
  ir(n, o ? t : !1), n = r;
1238
1238
  }
1239
1239
  if (e.transitions !== null)
@@ -1241,7 +1241,7 @@ function ir(e, t) {
1241
1241
  (s.is_global || t) && s.in();
1242
1242
  }
1243
1243
  }
1244
- const Ze = {}, No = /at (?:.+ \()?(.+):(\d+):(\d+)\)?$/, jo = /@(.+):(\d+):(\d+)$/;
1244
+ const He = {}, No = /at (?:.+ \()?(.+):(\d+):(\d+)\)?$/, jo = /@(.+):(\d+):(\d+)$/;
1245
1245
  function Kt() {
1246
1246
  const e = new Error().stack;
1247
1247
  if (!e) return null;
@@ -1261,7 +1261,7 @@ function lr() {
1261
1261
  const e = Kt()?.slice(4);
1262
1262
  if (!e) return null;
1263
1263
  for (let t = 0; t < e.length; t++) {
1264
- const n = e[t], r = Ze[n.file];
1264
+ const n = e[t], r = He[n.file];
1265
1265
  if (!r) {
1266
1266
  if (t === 0) return null;
1267
1267
  continue;
@@ -1278,7 +1278,7 @@ function lr() {
1278
1278
  function ar() {
1279
1279
  var t;
1280
1280
  const e = Kt()?.[2];
1281
- e && (Ze[t = e.file] ?? (Ze[t] = [])).push({
1281
+ e && (He[t = e.file] ?? (He[t] = [])).push({
1282
1282
  start: e,
1283
1283
  // @ts-expect-error
1284
1284
  end: null,
@@ -1289,7 +1289,7 @@ function ar() {
1289
1289
  function cr(e) {
1290
1290
  const t = Kt()?.[2];
1291
1291
  if (t) {
1292
- const n = Ze[t.file], r = n[n.length - 1];
1292
+ const n = He[t.file], r = n[n.length - 1];
1293
1293
  r.end = t, r.component = e;
1294
1294
  }
1295
1295
  }
@@ -1320,24 +1320,24 @@ function fr(e) {
1320
1320
  e.parent
1321
1321
  );
1322
1322
  }
1323
- function zo(e) {
1323
+ function Qo(e) {
1324
1324
  const t = lr();
1325
1325
  if (t && !ur(e, t)) {
1326
1326
  let n = fr(e);
1327
1327
  n[S] !== t[S] ? dn(t[S], n[S]) : dn();
1328
1328
  }
1329
1329
  }
1330
- let R = null;
1330
+ let T = null;
1331
1331
  function $n(e) {
1332
- R = e;
1332
+ T = e;
1333
1333
  }
1334
1334
  let Se = null;
1335
1335
  function En(e) {
1336
1336
  Se = e;
1337
1337
  }
1338
1338
  function en(e, t = !1, n) {
1339
- var r = R = {
1340
- p: R,
1339
+ var r = T = {
1340
+ p: T,
1341
1341
  c: null,
1342
1342
  d: !1,
1343
1343
  e: null,
@@ -1348,10 +1348,10 @@ function en(e, t = !1, n) {
1348
1348
  };
1349
1349
  Fo(() => {
1350
1350
  r.d = !0;
1351
- }), R.function = n, Se = n;
1351
+ }), T.function = n, Se = n;
1352
1352
  }
1353
1353
  function tn(e) {
1354
- const t = R;
1354
+ const t = T;
1355
1355
  if (t !== null) {
1356
1356
  e !== void 0 && (t.x = e);
1357
1357
  const i = t.e;
@@ -1367,7 +1367,7 @@ function tn(e) {
1367
1367
  me(n), oe(r);
1368
1368
  }
1369
1369
  }
1370
- R = t.p, Se = t.p?.function ?? null, t.m = !0;
1370
+ T = t.p, Se = t.p?.function ?? null, t.m = !0;
1371
1371
  }
1372
1372
  return e || /** @type {T} */
1373
1373
  {};
@@ -1375,18 +1375,18 @@ function tn(e) {
1375
1375
  function dr() {
1376
1376
  return !0;
1377
1377
  }
1378
- const Qo = /\r/g;
1378
+ const zo = /\r/g;
1379
1379
  function qo(e) {
1380
- e = e.replace(Qo, "");
1380
+ e = e.replace(zo, "");
1381
1381
  let t = 5381, n = e.length;
1382
1382
  for (; n--; ) t = (t << 5) - t ^ e.charCodeAt(n);
1383
1383
  return (t >>> 0).toString(36);
1384
1384
  }
1385
- const Yo = ["touchstart", "touchmove"];
1386
- function Jo(e) {
1387
- return Yo.includes(e);
1388
- }
1385
+ const Jo = ["touchstart", "touchmove"];
1389
1386
  function Vo(e) {
1387
+ return Jo.includes(e);
1388
+ }
1389
+ function Yo(e) {
1390
1390
  return e?.replace(/\//g, "/​");
1391
1391
  }
1392
1392
  var bn = /* @__PURE__ */ new Map();
@@ -1397,7 +1397,7 @@ function Go(e, t) {
1397
1397
  function ye(e, t, n) {
1398
1398
  return (...r) => {
1399
1399
  const o = e(...r);
1400
- var s = k ? o : o.nodeType === 11 ? o.firstChild : o;
1400
+ var s = x ? o : o.nodeType === 11 ? o.firstChild : o;
1401
1401
  return hr(s, t, n), o;
1402
1402
  };
1403
1403
  }
@@ -1408,12 +1408,12 @@ function Wo(e, t, n) {
1408
1408
  }
1409
1409
  function hr(e, t, n) {
1410
1410
  for (var r = 0, o = 0; e && r < n.length; ) {
1411
- if (k && e.nodeType === 8) {
1411
+ if (x && e.nodeType === 8) {
1412
1412
  var s = (
1413
1413
  /** @type {Comment} */
1414
1414
  e
1415
1415
  );
1416
- s.data === yt || s.data === qt ? o += 1 : s.data[0] === Yt && (o -= 1);
1416
+ s.data === yt || s.data === qt ? o += 1 : s.data[0] === Jt && (o -= 1);
1417
1417
  }
1418
1418
  o === 0 && e.nodeType === 1 && Wo(
1419
1419
  /** @type {Element} */
@@ -1423,7 +1423,7 @@ function hr(e, t, n) {
1423
1423
  ), e = e.nextSibling;
1424
1424
  }
1425
1425
  }
1426
- const Ho = /* @__PURE__ */ new Set(), Cn = /* @__PURE__ */ new Set();
1426
+ const Xo = /* @__PURE__ */ new Set(), Cn = /* @__PURE__ */ new Set();
1427
1427
  function rt(e) {
1428
1428
  var t = this, n = (
1429
1429
  /** @type {Node} */
@@ -1469,17 +1469,17 @@ function rt(e) {
1469
1469
  y.apply(s, [e, ...F]);
1470
1470
  } else
1471
1471
  p.call(s, e);
1472
- } catch (x) {
1473
- u ? v.push(x) : u = x;
1472
+ } catch (k) {
1473
+ u ? v.push(k) : u = k;
1474
1474
  }
1475
1475
  if (e.cancelBubble || _ === t || _ === null)
1476
1476
  break;
1477
1477
  s = _;
1478
1478
  }
1479
1479
  if (u) {
1480
- for (let x of v)
1480
+ for (let k of v)
1481
1481
  queueMicrotask(() => {
1482
- throw x;
1482
+ throw k;
1483
1483
  });
1484
1484
  throw u;
1485
1485
  }
@@ -1503,13 +1503,13 @@ function Me(e, t) {
1503
1503
  function we(e, t) {
1504
1504
  var n = (t & Mr) !== 0, r = (t & Nr) !== 0, o, s = !e.startsWith("<!>");
1505
1505
  return () => {
1506
- if (k)
1506
+ if (x)
1507
1507
  return Me(O, null), O;
1508
1508
  o === void 0 && (o = vr(s ? e : "<!>" + e), n || (o = /** @type {Node} */
1509
1509
  /* @__PURE__ */ je(o)));
1510
1510
  var i = (
1511
1511
  /** @type {TemplateNode} */
1512
- r || Zt ? document.importNode(o, !0) : o.cloneNode(!0)
1512
+ r || Ht ? document.importNode(o, !0) : o.cloneNode(!0)
1513
1513
  );
1514
1514
  if (n) {
1515
1515
  var l = (
@@ -1526,7 +1526,7 @@ function we(e, t) {
1526
1526
  };
1527
1527
  }
1528
1528
  function le(e, t) {
1529
- if (k) {
1529
+ if (x) {
1530
1530
  E.nodes_end = O, tt();
1531
1531
  return;
1532
1532
  }
@@ -1535,16 +1535,16 @@ function le(e, t) {
1535
1535
  t
1536
1536
  );
1537
1537
  }
1538
- function Zo(e, t) {
1538
+ function Ho(e, t) {
1539
1539
  var n = t == null ? "" : typeof t == "object" ? t + "" : t;
1540
1540
  n !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = n, e.nodeValue = n + "");
1541
1541
  }
1542
1542
  function _r(e, t) {
1543
1543
  return gr(e, t);
1544
1544
  }
1545
- function Xo(e, t) {
1546
- Ut(), t.intro = t.intro ?? !1;
1547
- const n = t.target, r = k, o = O;
1545
+ function Zo(e, t) {
1546
+ At(), t.intro = t.intro ?? !1;
1547
+ const n = t.target, r = x, o = O;
1548
1548
  try {
1549
1549
  for (var s = (
1550
1550
  /** @type {TemplateNode} */
@@ -1552,67 +1552,67 @@ function Xo(e, t) {
1552
1552
  ); s && (s.nodeType !== 8 || /** @type {Comment} */
1553
1553
  s.data !== yt); )
1554
1554
  s = /** @type {TemplateNode} */
1555
- /* @__PURE__ */ ke(s);
1555
+ /* @__PURE__ */ xe(s);
1556
1556
  if (!s)
1557
- throw Ue;
1557
+ throw Ae;
1558
1558
  ge(!0), ce(
1559
1559
  /** @type {Comment} */
1560
1560
  s
1561
1561
  ), tt();
1562
1562
  const i = gr(e, { ...t, anchor: s });
1563
1563
  if (O === null || O.nodeType !== 8 || /** @type {Comment} */
1564
- O.data !== Yt)
1565
- throw Et(), Ue;
1564
+ O.data !== Jt)
1565
+ throw Et(), Ae;
1566
1566
  return ge(!1), /** @type {Exports} */
1567
1567
  i;
1568
1568
  } catch (i) {
1569
- if (i === Ue)
1570
- return t.recover === !1 && oo(), Ut(), Co(n), ge(!1), _r(e, t);
1569
+ if (i === Ae)
1570
+ return t.recover === !1 && oo(), At(), Co(n), ge(!1), _r(e, t);
1571
1571
  throw i;
1572
1572
  } finally {
1573
1573
  ge(r), ce(o);
1574
1574
  }
1575
1575
  }
1576
- const Re = /* @__PURE__ */ new Map();
1576
+ const Te = /* @__PURE__ */ new Map();
1577
1577
  function gr(e, { target: t, anchor: n, props: r = {}, events: o, context: s, intro: i = !0 }) {
1578
- Ut();
1578
+ At();
1579
1579
  var l = /* @__PURE__ */ new Set(), h = (c) => {
1580
1580
  for (var u = 0; u < c.length; u++) {
1581
1581
  var v = c[u];
1582
1582
  if (!l.has(v)) {
1583
1583
  l.add(v);
1584
- var _ = Jo(v);
1584
+ var _ = Vo(v);
1585
1585
  t.addEventListener(v, rt, { passive: _ });
1586
- var p = Re.get(v);
1587
- p === void 0 ? (document.addEventListener(v, rt, { passive: _ }), Re.set(v, 1)) : Re.set(v, p + 1);
1586
+ var p = Te.get(v);
1587
+ p === void 0 ? (document.addEventListener(v, rt, { passive: _ }), Te.set(v, 1)) : Te.set(v, p + 1);
1588
1588
  }
1589
1589
  }
1590
1590
  };
1591
- h(Yr(Ho)), Cn.add(h);
1592
- var a = void 0, d = Bo(() => {
1591
+ h(Jr(Xo)), Cn.add(h);
1592
+ var a = void 0, d = Uo(() => {
1593
1593
  var c = n ?? t.appendChild(dt());
1594
1594
  return mt(() => {
1595
1595
  if (s) {
1596
1596
  en({});
1597
1597
  var u = (
1598
1598
  /** @type {ComponentContext} */
1599
- R
1599
+ T
1600
1600
  );
1601
1601
  u.c = s;
1602
1602
  }
1603
- o && (r.$$events = o), k && Me(
1603
+ o && (r.$$events = o), x && Me(
1604
1604
  /** @type {TemplateNode} */
1605
1605
  c,
1606
1606
  null
1607
- ), a = e(c, r) || {}, k && (E.nodes_end = O), s && tn();
1607
+ ), a = e(c, r) || {}, x && (E.nodes_end = O), s && tn();
1608
1608
  }), () => {
1609
1609
  for (var u of l) {
1610
1610
  t.removeEventListener(u, rt);
1611
1611
  var v = (
1612
1612
  /** @type {number} */
1613
- Re.get(u)
1613
+ Te.get(u)
1614
1614
  );
1615
- --v === 0 ? (document.removeEventListener(u, rt), Re.delete(u)) : Re.set(u, v);
1615
+ --v === 0 ? (document.removeEventListener(u, rt), Te.delete(u)) : Te.set(u, v);
1616
1616
  }
1617
1617
  Cn.delete(h), c !== n && c.parentNode?.removeChild(c);
1618
1618
  };
@@ -1625,13 +1625,13 @@ function Ko(e, t) {
1625
1625
  return n ? (jt.delete(e), n(t)) : ($o(), Promise.resolve());
1626
1626
  }
1627
1627
  function pr(e) {
1628
- e && Xr(e[S] ?? "a component", e.name);
1628
+ e && Zr(e[S] ?? "a component", e.name);
1629
1629
  }
1630
1630
  function mr() {
1631
- const e = R?.function;
1631
+ const e = T?.function;
1632
1632
  function t(n) {
1633
1633
  const r = lr()?.[S] ?? "Something";
1634
- Zr(r, n, e[S]);
1634
+ Hr(r, n, e[S]);
1635
1635
  }
1636
1636
  return {
1637
1637
  $destroy: () => t("$destroy()"),
@@ -1639,15 +1639,15 @@ function mr() {
1639
1639
  $set: () => t("$set(...)")
1640
1640
  };
1641
1641
  }
1642
- function Xe(e, t, [n, r] = [0, 0]) {
1643
- k && n === 0 && tt();
1644
- var o = e, s = null, i = null, l = M, h = n > 0 ? Vt : 0, a = !1;
1642
+ function Ze(e, t, [n, r] = [0, 0]) {
1643
+ x && n === 0 && tt();
1644
+ var o = e, s = null, i = null, l = M, h = n > 0 ? Yt : 0, a = !1;
1645
1645
  const d = (u, v = !0) => {
1646
1646
  a = !0, c(v, u);
1647
1647
  }, c = (u, v) => {
1648
1648
  if (l === (l = u)) return;
1649
1649
  let _ = !1;
1650
- if (k && r !== -1) {
1650
+ if (x && r !== -1) {
1651
1651
  if (n === 0) {
1652
1652
  const y = (
1653
1653
  /** @type {Comment} */
@@ -1664,34 +1664,34 @@ function Xe(e, t, [n, r] = [0, 0]) {
1664
1664
  s = null;
1665
1665
  })), _ && ge(!0);
1666
1666
  };
1667
- Xt(() => {
1667
+ Zt(() => {
1668
1668
  a = !1, t(d), a || c(null, null);
1669
- }, h), k && (o = O);
1669
+ }, h), x && (o = O);
1670
1670
  }
1671
1671
  function es(e, t, n) {
1672
1672
  if (!t || t === qo(String(n ?? ""))) return;
1673
1673
  let r;
1674
1674
  const o = e.__svelte_meta?.loc;
1675
- o ? r = `near ${o.file}:${o.line}:${o.column}` : Se?.[S] && (r = `in ${Se[S]}`), wo(Vo(r));
1675
+ o ? r = `near ${o.file}:${o.line}:${o.column}` : Se?.[S] && (r = `in ${Se[S]}`), wo(Yo(r));
1676
1676
  }
1677
1677
  function Pn(e, t, n, r, o) {
1678
1678
  var s = e, i = "", l;
1679
- Xt(() => {
1679
+ Zt(() => {
1680
1680
  if (i === (i = t() ?? "")) {
1681
- k && tt();
1681
+ x && tt();
1682
1682
  return;
1683
1683
  }
1684
1684
  l !== void 0 && (ue(l), l = void 0), i !== "" && (l = mt(() => {
1685
- if (k) {
1685
+ if (x) {
1686
1686
  for (var h = (
1687
1687
  /** @type {Comment} */
1688
1688
  O.data
1689
1689
  ), a = tt(), d = a; a !== null && (a.nodeType !== 8 || /** @type {Comment} */
1690
1690
  a.data !== ""); )
1691
1691
  d = a, a = /** @type {TemplateNode} */
1692
- /* @__PURE__ */ ke(a);
1692
+ /* @__PURE__ */ xe(a);
1693
1693
  if (a === null)
1694
- throw Et(), Ue;
1694
+ throw Et(), Ae;
1695
1695
  es(
1696
1696
  /** @type {Element} */
1697
1697
  a.parentNode,
@@ -1733,29 +1733,29 @@ function ts(e, t, n) {
1733
1733
  var r = e == null ? "" : "" + e;
1734
1734
  return t && (r = r ? r + " " + t : t), r === "" ? null : r;
1735
1735
  }
1736
- function Be(e, t, n, r, o, s) {
1736
+ function Ue(e, t, n, r, o, s) {
1737
1737
  var i = e.__className;
1738
- if (k || i !== n || i === void 0) {
1738
+ if (x || i !== n || i === void 0) {
1739
1739
  var l = ts(n, r);
1740
- (!k || l !== e.getAttribute("class")) && (l == null ? e.removeAttribute("class") : e.className = l), e.__className = n;
1740
+ (!x || l !== e.getAttribute("class")) && (l == null ? e.removeAttribute("class") : e.className = l), e.__className = n;
1741
1741
  }
1742
1742
  return s;
1743
1743
  }
1744
1744
  const ns = Symbol("is custom element"), rs = Symbol("is html");
1745
1745
  function os(e, t, n, r) {
1746
1746
  var o = is(e);
1747
- k && (o[t] = e.getAttribute(t)), o[t] !== (o[t] = n) && (n == null ? e.removeAttribute(t) : typeof n != "string" && wr(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
1747
+ x && (o[t] = e.getAttribute(t)), o[t] !== (o[t] = n) && (n == null ? e.removeAttribute(t) : typeof n != "string" && wr(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
1748
1748
  }
1749
1749
  function ss(e, t, n) {
1750
1750
  var r = $, o = E;
1751
- let s = k;
1752
- k && ge(!1), oe(null), me(null);
1751
+ let s = x;
1752
+ x && ge(!1), oe(null), me(null);
1753
1753
  try {
1754
1754
  // `style` should use `set_attribute` rather than the setter
1755
1755
  t !== "style" && // Don't compute setters for custom elements while they aren't registered yet,
1756
1756
  // because during their upgrade/instantiation they might add more setters.
1757
1757
  // Instead, fall back to a simple "an object, then set as property" heuristic.
1758
- (zt.has(e.nodeName) || // customElements may not be available in browser extension contexts
1758
+ (Qt.has(e.nodeName) || // customElements may not be available in browser extension contexts
1759
1759
  !customElements || customElements.get(e.tagName.toLowerCase()) ? wr(e).includes(t) : n && typeof n == "object") ? e[t] = n : os(e, t, n == null ? n : String(n));
1760
1760
  } finally {
1761
1761
  oe(r), me(o), s && ge(!0);
@@ -1771,13 +1771,13 @@ function is(e) {
1771
1771
  })
1772
1772
  );
1773
1773
  }
1774
- var zt = /* @__PURE__ */ new Map();
1774
+ var Qt = /* @__PURE__ */ new Map();
1775
1775
  function wr(e) {
1776
- var t = zt.get(e.nodeName);
1776
+ var t = Qt.get(e.nodeName);
1777
1777
  if (t) return t;
1778
- zt.set(e.nodeName, t = []);
1778
+ Qt.set(e.nodeName, t = []);
1779
1779
  for (var n, r = e, o = Element.prototype; o !== r; ) {
1780
- n = Jr(r);
1780
+ n = Vr(r);
1781
1781
  for (var s in n)
1782
1782
  n[s].set && t.push(s);
1783
1783
  r = Wt(r);
@@ -1818,13 +1818,13 @@ function Sn(e) {
1818
1818
  return e.ctx?.d ?? !1;
1819
1819
  }
1820
1820
  function P(e, t, n, r) {
1821
- var o = (n & Ar) !== 0, s = !0, i = (n & Ur) !== 0, l = (n & Dr) !== 0, h = !1, a;
1821
+ var o = (n & Br) !== 0, s = !0, i = (n & Ar) !== 0, l = (n & Dr) !== 0, h = !1, a;
1822
1822
  i ? [a, h] = ls(() => (
1823
1823
  /** @type {V} */
1824
1824
  e[t]
1825
1825
  )) : a = /** @type {V} */
1826
1826
  e[t];
1827
- var d = be in e || An in e, c = i && (Ce(e, t)?.set ?? (d && t in e && ((L) => e[t] = L))) || void 0, u = (
1827
+ var d = be in e || Bn in e, c = i && (Ce(e, t)?.set ?? (d && t in e && ((L) => e[t] = L))) || void 0, u = (
1828
1828
  /** @type {V} */
1829
1829
  r
1830
1830
  ), v = !0, _ = !1, p = () => (_ = !0, v && (v = !1, l ? u = Mt(
@@ -1840,23 +1840,23 @@ function P(e, t, n, r) {
1840
1840
  e[t]
1841
1841
  );
1842
1842
  return L === void 0 ? p() : (v = !0, _ = !1, L);
1843
- }, (n & Br) === 0)
1843
+ }, (n & Ur) === 0)
1844
1844
  return y;
1845
1845
  if (c) {
1846
1846
  var F = e.$$legacy;
1847
- return function(L, U) {
1848
- return arguments.length > 0 ? ((!U || F || h) && c(U ? y() : L), L) : y();
1847
+ return function(L, A) {
1848
+ return arguments.length > 0 ? ((!A || F || h) && c(A ? y() : L), L) : y();
1849
1849
  };
1850
1850
  }
1851
- var x = !1, q = /* @__PURE__ */ zn(a), b = /* @__PURE__ */ Ht(() => {
1852
- var L = y(), U = m(q);
1853
- return x ? (x = !1, U) : q.v = L;
1851
+ var k = !1, q = /* @__PURE__ */ Qn(a), b = /* @__PURE__ */ Xt(() => {
1852
+ var L = y(), A = m(q);
1853
+ return k ? (k = !1, A) : q.v = L;
1854
1854
  });
1855
- return i && m(b), o || (b.equals = Nn), function(L, U) {
1855
+ return i && m(b), o || (b.equals = Nn), function(L, A) {
1856
1856
  if (arguments.length > 0) {
1857
- const $e = U ? m(b) : i ? Ee(L) : L;
1857
+ const $e = A ? m(b) : i ? Ee(L) : L;
1858
1858
  if (!b.equals($e)) {
1859
- if (x = !0, w(q, $e), _ && u !== void 0 && (u = $e), Sn(b))
1859
+ if (k = !0, w(q, $e), _ && u !== void 0 && (u = $e), Sn(b))
1860
1860
  return L;
1861
1861
  Mt(() => m(b));
1862
1862
  }
@@ -1868,7 +1868,7 @@ function P(e, t, n, r) {
1868
1868
  function as(e) {
1869
1869
  return new cs(e);
1870
1870
  }
1871
- var ie, J;
1871
+ var ie, V;
1872
1872
  class cs {
1873
1873
  /**
1874
1874
  * @param {ComponentConstructorOptions & {
@@ -1879,9 +1879,9 @@ class cs {
1879
1879
  /** @type {any} */
1880
1880
  Ot(this, ie);
1881
1881
  /** @type {Record<string, any>} */
1882
- Ot(this, J);
1882
+ Ot(this, V);
1883
1883
  var n = /* @__PURE__ */ new Map(), r = (s, i) => {
1884
- var l = /* @__PURE__ */ zn(i);
1884
+ var l = /* @__PURE__ */ Qn(i);
1885
1885
  return n.set(s, l), l;
1886
1886
  };
1887
1887
  const o = new Proxy(
@@ -1891,42 +1891,42 @@ class cs {
1891
1891
  return m(n.get(i) ?? r(i, Reflect.get(s, i)));
1892
1892
  },
1893
1893
  has(s, i) {
1894
- return i === An ? !0 : (m(n.get(i) ?? r(i, Reflect.get(s, i))), Reflect.has(s, i));
1894
+ return i === Bn ? !0 : (m(n.get(i) ?? r(i, Reflect.get(s, i))), Reflect.has(s, i));
1895
1895
  },
1896
1896
  set(s, i, l) {
1897
1897
  return w(n.get(i) ?? r(i, l), l), Reflect.set(s, i, l);
1898
1898
  }
1899
1899
  }
1900
1900
  );
1901
- Tt(this, J, (t.hydrate ? Xo : _r)(t.component, {
1901
+ Rt(this, V, (t.hydrate ? Zo : _r)(t.component, {
1902
1902
  target: t.target,
1903
1903
  anchor: t.anchor,
1904
1904
  props: o,
1905
1905
  context: t.context,
1906
1906
  intro: t.intro ?? !1,
1907
1907
  recover: t.recover
1908
- })), (!t?.props?.$$host || t.sync === !1) && C(), Tt(this, ie, o.$$events);
1909
- for (const s of Object.keys(D(this, J)))
1908
+ })), (!t?.props?.$$host || t.sync === !1) && C(), Rt(this, ie, o.$$events);
1909
+ for (const s of Object.keys(D(this, V)))
1910
1910
  s === "$set" || s === "$destroy" || s === "$on" || te(this, s, {
1911
1911
  get() {
1912
- return D(this, J)[s];
1912
+ return D(this, V)[s];
1913
1913
  },
1914
1914
  /** @param {any} value */
1915
1915
  set(i) {
1916
- D(this, J)[s] = i;
1916
+ D(this, V)[s] = i;
1917
1917
  },
1918
1918
  enumerable: !0
1919
1919
  });
1920
- D(this, J).$set = /** @param {Record<string, any>} next */
1920
+ D(this, V).$set = /** @param {Record<string, any>} next */
1921
1921
  (s) => {
1922
1922
  Object.assign(o, s);
1923
- }, D(this, J).$destroy = () => {
1924
- Ko(D(this, J));
1923
+ }, D(this, V).$destroy = () => {
1924
+ Ko(D(this, V));
1925
1925
  };
1926
1926
  }
1927
1927
  /** @param {Record<string, any>} props */
1928
1928
  $set(t) {
1929
- D(this, J).$set(t);
1929
+ D(this, V).$set(t);
1930
1930
  }
1931
1931
  /**
1932
1932
  * @param {string} event
@@ -1944,10 +1944,10 @@ class cs {
1944
1944
  };
1945
1945
  }
1946
1946
  $destroy() {
1947
- D(this, J).$destroy();
1947
+ D(this, V).$destroy();
1948
1948
  }
1949
1949
  }
1950
- ie = new WeakMap(), J = new WeakMap();
1950
+ ie = new WeakMap(), V = new WeakMap();
1951
1951
  let $r;
1952
1952
  typeof HTMLElement == "function" && ($r = class extends HTMLElement {
1953
1953
  /**
@@ -2030,8 +2030,8 @@ typeof HTMLElement == "function" && ($r = class extends HTMLElement {
2030
2030
  $$slots: r,
2031
2031
  $$host: this
2032
2032
  }
2033
- }), this.$$me = Ao(() => {
2034
- Uo(() => {
2033
+ }), this.$$me = Bo(() => {
2034
+ Ao(() => {
2035
2035
  this.$$r = !0;
2036
2036
  for (const s of ft(this.$$c)) {
2037
2037
  if (!this.$$p_d[s]?.reflect) continue;
@@ -2202,7 +2202,7 @@ const Pr = () => {
2202
2202
  return e.push(o), o;
2203
2203
  }, st = (e, t, n) => {
2204
2204
  console.log("[updatePieElements] Updating all elements with env:", n), Object.entries(e.elements).forEach(([r, o]) => {
2205
- Qt(r, { config: e, session: t, env: n });
2205
+ zt(r, { config: e, session: t, env: n });
2206
2206
  });
2207
2207
  }, nn = (e) => {
2208
2208
  const t = Pr();
@@ -2225,7 +2225,7 @@ const Pr = () => {
2225
2225
  }, ms = {
2226
2226
  invokeControllerForModel: !0,
2227
2227
  env: { mode: "gather", role: "student", partialScoring: !1 }
2228
- }, Qt = (e, t) => {
2228
+ }, zt = (e, t) => {
2229
2229
  const { config: n, session: r, env: o, eventListeners: s, invokeControllerForModel: i } = br(
2230
2230
  ms,
2231
2231
  t
@@ -2331,7 +2331,7 @@ const Pr = () => {
2331
2331
  }), s && Object.entries(s).forEach(([c, u]) => {
2332
2332
  e.addEventListener(c, u);
2333
2333
  });
2334
- }, kn = (e, t, n = {}) => {
2334
+ }, xn = (e, t, n = {}) => {
2335
2335
  const r = Pr(), o = br(ys, n);
2336
2336
  if (gs(window)) {
2337
2337
  console.log("[initializePiesFromLoadedBundle] window.pie available");
@@ -2365,14 +2365,14 @@ const Pr = () => {
2365
2365
  `[initializePiesFromLoadedBundle] ❌ CRITICAL: No controller found in elementData for ${h}!`
2366
2366
  ), console.error("[initializePiesFromLoadedBundle] elementData:", a), new Error(`No controller found for ${h}. PIE elements MUST have controllers!`);
2367
2367
  if (customElements.get(i)) {
2368
- if (Qt(i, {
2368
+ if (zt(i, {
2369
2369
  config: e,
2370
2370
  session: t,
2371
2371
  env: n.env,
2372
2372
  ...n.eventListeners?.[i] && { eventListeners: n.eventListeners[i] }
2373
2373
  }), o.bundleType === "editor.js") {
2374
2374
  const d = i + Ln;
2375
- Qt(d, {
2375
+ zt(d, {
2376
2376
  config: e,
2377
2377
  session: t,
2378
2378
  ...n.eventListeners?.[d] && {
@@ -2468,7 +2468,7 @@ const bs = {
2468
2468
  };
2469
2469
  function ne(e, t) {
2470
2470
  pr(new.target), en(t, !0, ne), yr(e, bs);
2471
- let n = P(t, "itemConfig", 7), r = P(t, "passageConfig", 7, null), o = P(t, "env", 23, () => ({ mode: "gather", role: "student" })), s = P(t, "session", 23, () => []), i = P(t, "addCorrectResponse", 7, !1), l = P(t, "customClassname", 7, ""), h = P(t, "passageContainerClass", 7, ""), a = P(t, "containerClass", 7, ""), d = P(t, "onLoadComplete", 7), c = P(t, "onPlayerError", 7), u = P(t, "onSessionChanged", 7), v = T(!1);
2471
+ let n = P(t, "itemConfig", 7), r = P(t, "passageConfig", 7, null), o = P(t, "env", 23, () => ({ mode: "gather", role: "student" })), s = P(t, "session", 23, () => []), i = P(t, "addCorrectResponse", 7, !1), l = P(t, "customClassname", 7, ""), h = P(t, "passageContainerClass", 7, ""), a = P(t, "containerClass", 7, ""), d = P(t, "onLoadComplete", 7), c = P(t, "onPlayerError", 7), u = P(t, "onSessionChanged", 7), v = R(!1);
2472
2472
  const _ = (f, g) => {
2473
2473
  N(f, "load-complete") && d() ? d()(g) : N(f, "player-error") && c() ? c()(g) : N(f, "session-changed") && u() && u()(g);
2474
2474
  const I = new CustomEvent(f, {
@@ -2487,14 +2487,14 @@ function ne(e, t) {
2487
2487
  const I = nn(g.element);
2488
2488
  if (I && I.createCorrectResponseSession)
2489
2489
  try {
2490
- const A = await I.createCorrectResponseSession(g, o()), { id: G, ...Ye } = A;
2490
+ const B = await I.createCorrectResponseSession(g, o()), { id: G, ...Je } = B;
2491
2491
  f.push({
2492
2492
  id: g.id,
2493
2493
  element: g.element,
2494
- ...Ye
2494
+ ...Je
2495
2495
  });
2496
- } catch (A) {
2497
- console.warn(...K("warn", `[PieItemPlayer] Failed to create correct response for ${g.element}:`, A));
2496
+ } catch (B) {
2497
+ console.warn(...K("warn", `[PieItemPlayer] Failed to create correct response for ${g.element}:`, B));
2498
2498
  }
2499
2499
  }
2500
2500
  s().length = 0, s().push(...f), w(v, !0), console.log(...K("log", "[PieItemPlayer] Correct responses added to session:", s()));
@@ -2508,9 +2508,9 @@ function ne(e, t) {
2508
2508
  l(),
2509
2509
  a()
2510
2510
  ].filter(Boolean).join(" "));
2511
- let x = T(!1), q = T(!1), b = T(!1);
2511
+ let k = R(!1), q = R(!1), b = R(!1);
2512
2512
  Fe(() => {
2513
- !n() || m(x) || (console.log("[PieItemPlayer] Item config received, initializing after DOM renders..."), er().then(async () => {
2513
+ !n() || m(k) || (console.log("[PieItemPlayer] Item config received, initializing after DOM renders..."), er().then(async () => {
2514
2514
  try {
2515
2515
  if (console.log("[PieItemPlayer] DOM ready, initializing PIE elements"), console.log(...K("log", "[PieItemPlayer] Config:", {
2516
2516
  itemElements: Object.keys(n().elements || {}),
@@ -2520,14 +2520,14 @@ function ne(e, t) {
2520
2520
  sessionLength: s().length,
2521
2521
  addCorrectResponse: i(),
2522
2522
  env: o()
2523
- })), kn(n(), [], { env: o() }), console.log("[PieItemPlayer] Item bundle initialized and controllers registered"), r() && (kn(r(), [], { env: o() }), console.log("[PieItemPlayer] Passage bundle initialized and controllers registered")), await p(), console.log(...K("log", "[PieItemPlayer] Updating elements with session (length=" + s().length + ")")), st(n(), s(), o()), r() && st(r(), s(), o()), w(x, !0), !m(q)) {
2523
+ })), xn(n(), [], { env: o() }), console.log("[PieItemPlayer] Item bundle initialized and controllers registered"), r() && (xn(r(), [], { env: o() }), console.log("[PieItemPlayer] Passage bundle initialized and controllers registered")), await p(), console.log(...K("log", "[PieItemPlayer] Updating elements with session (length=" + s().length + ")")), st(n(), s(), o()), r() && st(r(), s(), o()), w(k, !0), !m(q)) {
2524
2524
  const f = document.querySelector(".pie-item-player"), g = (I) => {
2525
2525
  if (m(b))
2526
2526
  return;
2527
- const A = I;
2527
+ const B = I;
2528
2528
  console.log("[PieItemPlayer] session-changed event received from PIE element"), w(b, !0);
2529
2529
  try {
2530
- _("session-changed", A.detail);
2530
+ _("session-changed", B.detail);
2531
2531
  } finally {
2532
2532
  setTimeout(
2533
2533
  () => {
@@ -2545,29 +2545,29 @@ function ne(e, t) {
2545
2545
  }
2546
2546
  }));
2547
2547
  }), Fe(() => {
2548
- !m(x) || !o() || !n() || !s() || (console.log("[PieItemPlayer] Dependencies changed, updating elements"), console.log(...K("log", "[PieItemPlayer] Env:", o())), console.log(...K("log", "[PieItemPlayer] Session (length=" + s().length + "):", s())), st(n(), s(), o()), r() && st(r(), s(), o()));
2548
+ !m(k) || !o() || !n() || !s() || (console.log("[PieItemPlayer] Dependencies changed, updating elements"), console.log(...K("log", "[PieItemPlayer] Env:", o())), console.log(...K("log", "[PieItemPlayer] Session (length=" + s().length + "):", s())), st(n(), s(), o()), r() && st(r(), s(), o()));
2549
2549
  });
2550
- var L = Es(), U = X(L);
2550
+ var L = Es(), A = Z(L);
2551
2551
  {
2552
2552
  var $e = (f) => {
2553
- var g = ws(), I = X(g);
2554
- Pn(I, () => r().markup), Z(g), Ae(() => Be(g, 1, m(y), "svelte-d1rctr")), le(f, g);
2553
+ var g = ws(), I = Z(g);
2554
+ Pn(I, () => r().markup), H(g), Be(() => Ue(g, 1, m(y), "svelte-d1rctr")), le(f, g);
2555
2555
  };
2556
- Xe(U, (f) => {
2556
+ Ze(A, (f) => {
2557
2557
  r()?.markup && f($e);
2558
2558
  });
2559
2559
  }
2560
- var St = Dt(U, 2);
2560
+ var St = Dt(A, 2);
2561
2561
  {
2562
2562
  var Lt = (f) => {
2563
- var g = $s(), I = X(g);
2564
- Pn(I, () => n().markup), Z(g), Ae(() => Be(g, 1, m(F), "svelte-d1rctr")), le(f, g);
2563
+ var g = $s(), I = Z(g);
2564
+ Pn(I, () => n().markup), H(g), Be(() => Ue(g, 1, m(F), "svelte-d1rctr")), le(f, g);
2565
2565
  };
2566
- Xe(St, (f) => {
2566
+ Ze(St, (f) => {
2567
2567
  n()?.markup && f(Lt);
2568
2568
  });
2569
2569
  }
2570
- return Z(L), le(e, L), tn({
2570
+ return H(L), le(e, L), tn({
2571
2571
  get itemConfig() {
2572
2572
  return n();
2573
2573
  },
@@ -2657,7 +2657,7 @@ Er(
2657
2657
  [],
2658
2658
  !0
2659
2659
  );
2660
- const xn = {
2660
+ const kn = {
2661
2661
  trackPageActions: !1
2662
2662
  };
2663
2663
  ar();
@@ -2675,20 +2675,29 @@ var Cs = ye(
2675
2675
  he[S],
2676
2676
  [[263, 2, [[272, 3], [273, 3]]]]
2677
2677
  ), Ps = ye(/* @__PURE__ */ we('<div class="pie-loading" style="padding: 20px; text-align: center;"><p>Loading...</p></div>'), he[S], [[276, 2, [[277, 3]]]]), Ss = ye(/* @__PURE__ */ we('<pie-stimulus-layout><div slot="stimulus"><!></div> <div><!></div></pie-stimulus-layout>', 2), he[S], [[281, 2, [[282, 3], [297, 3]]]]), Ls = ye(/* @__PURE__ */ we("<div><!></div>"), he[S], [[315, 2]]), Is = ye(/* @__PURE__ */ we("<div><!></div>"), he[S], [[261, 0]]);
2678
- const ks = {
2679
- hash: "svelte-1g19r5h",
2678
+ const xs = {
2679
+ hash: "svelte-1ol77e0",
2680
2680
  code: `
2681
2681
  :host {
2682
2682
  display: block;
2683
2683
  }
2684
+
2685
+ .pie-fixed-player {
2686
+ width: 100%;
2687
+ }
2688
+
2689
+ .player-item-container,
2690
+ .player-stimulus-container {
2691
+ width: 100%;
2692
+ }
2684
2693
 
2685
- /*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGllRml4ZWRQbGF5ZXIuc3ZlbHRlIiwibWFwcGluZ3MiOiI7QUFnVkEsQ0FBQyxLQUFLLENBQUM7QUFDUCxFQUFFLGNBQWM7QUFDaEIiLCJuYW1lcyI6W10sImlnbm9yZUxpc3QiOltdLCJzb3VyY2VzIjpbIlBpZUZpeGVkUGxheWVyLnN2ZWx0ZSJdfQ== */`
2694
+ /*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGllRml4ZWRQbGF5ZXIuc3ZlbHRlIiwibWFwcGluZ3MiOiI7QUFnVkEsQ0FBQyxLQUFLLENBQUM7QUFDUCxFQUFFLGNBQWM7QUFDaEI7QUFDQTtBQUNBLENBQVMsaUJBQWtCLENBQUM7QUFDNUIsRUFBRSxXQUFXO0FBQ2I7QUFDQTtBQUNBLENBQVMsc0JBQXVCO0FBQ2hDLENBQVMsMEJBQTJCLENBQUM7QUFDckMsRUFBRSxXQUFXO0FBQ2IiLCJuYW1lcyI6W10sImlnbm9yZUxpc3QiOltdLCJzb3VyY2VzIjpbIlBpZUZpeGVkUGxheWVyLnN2ZWx0ZSJdfQ== */`
2686
2695
  };
2687
2696
  function he(e, t) {
2688
- pr(new.target), en(t, !0, he), yr(e, ks);
2689
- let n = P(t, "config", 7, null), r = P(t, "session", 23, () => ({ id: "", data: [] })), o = P(t, "env", 23, () => ({ mode: "gather", role: "student" })), s = P(t, "addCorrectResponse", 7, !1), i = P(t, "renderStimulus", 7, !0), l = P(t, "allowedResize", 7, !1), h = P(t, "showBottomBorder", 7, !1), a = P(t, "customClassname", 7, ""), d = P(t, "containerClass", 7, ""), c = P(t, "passageContainerClass", 7, ""), u = P(t, "externalStyleUrls", 7, ""), v = P(t, "loaderConfig", 7, xn), _ = T(!0), p = T(null), y = T(null), F = T(null);
2690
- T(!1);
2691
- const x = a() || `pie-player-${Math.random().toString(36).substr(2, 9)}`;
2697
+ pr(new.target), en(t, !0, he), yr(e, xs);
2698
+ let n = P(t, "config", 7, null), r = P(t, "session", 23, () => ({ id: "", data: [] })), o = P(t, "env", 23, () => ({ mode: "gather", role: "student" })), s = P(t, "addCorrectResponse", 7, !1), i = P(t, "renderStimulus", 7, !0), l = P(t, "allowedResize", 7, !1), h = P(t, "showBottomBorder", 7, !1), a = P(t, "customClassname", 7, ""), d = P(t, "containerClass", 7, ""), c = P(t, "passageContainerClass", 7, ""), u = P(t, "externalStyleUrls", 7, ""), v = P(t, "loaderConfig", 7, kn), _ = R(!0), p = R(null), y = R(null), F = R(null);
2699
+ R(!1);
2700
+ const k = a() || `pie-player-${Math.random().toString(36).substr(2, 9)}`;
2692
2701
  Fe(() => {
2693
2702
  if (n()) {
2694
2703
  performance.mark("pie-load-end");
@@ -2722,8 +2731,8 @@ function he(e, t) {
2722
2731
  return;
2723
2732
  }
2724
2733
  try {
2725
- const A = (await (await fetch(f)).text()).replace(/([^\r\n,{}]+)(,(?=[^}]*{)|\s*{)/g, `.pie-fixed-player.${x} $1$2`), G = document.createElement("style");
2726
- G.setAttribute("data-pie-style", f), G.textContent = A, document.head.appendChild(G), console.log(...K("log", `[pie-fixed-player] Loaded and scoped stylesheet: ${f}`));
2734
+ const B = (await (await fetch(f)).text()).replace(/([^\r\n,{}]+)(,(?=[^}]*{)|\s*{)/g, `.pie-fixed-player.${k} $1$2`), G = document.createElement("style");
2735
+ G.setAttribute("data-pie-style", f), G.textContent = B, document.head.appendChild(G), console.log(...K("log", `[pie-fixed-player] Loaded and scoped stylesheet: ${f}`));
2727
2736
  } catch (g) {
2728
2737
  console.error(...K("error", `[pie-fixed-player] Failed to load external stylesheet: ${f}`, g));
2729
2738
  }
@@ -2743,8 +2752,8 @@ function he(e, t) {
2743
2752
  }), Fe(() => {
2744
2753
  h() && N(o().mode, "evaluate") && m(y)?.elements && er().then(() => {
2745
2754
  Object.keys(m(y).elements).forEach((g) => {
2746
- document.querySelectorAll(g).forEach((A) => {
2747
- A instanceof HTMLElement && (A.style.borderBottom = "1px solid #ddd", A.style.paddingBottom = "20px", A.style.marginBottom = "20px");
2755
+ document.querySelectorAll(g).forEach((B) => {
2756
+ B instanceof HTMLElement && (B.style.borderBottom = "1px solid #ddd", B.style.paddingBottom = "20px", B.style.marginBottom = "20px");
2748
2757
  });
2749
2758
  });
2750
2759
  });
@@ -2759,31 +2768,31 @@ function he(e, t) {
2759
2768
  }, L = (f) => {
2760
2769
  b(f);
2761
2770
  };
2762
- var U = Is();
2763
- Be(U, 1, `pie-fixed-player ${x ?? ""}`);
2764
- var $e = X(U);
2771
+ var A = Is();
2772
+ Ue(A, 1, `pie-fixed-player ${k ?? ""}`);
2773
+ var $e = Z(A);
2765
2774
  {
2766
2775
  var St = (f) => {
2767
- var g = Cs(), I = Dt(X(g), 2), A = X(I, !0);
2768
- Z(I), Z(g), Ae(() => Zo(A, m(p))), le(f, g);
2776
+ var g = Cs(), I = Dt(Z(g), 2), B = Z(I, !0);
2777
+ H(I), H(g), Be(() => Ho(B, m(p))), le(f, g);
2769
2778
  }, Lt = (f, g) => {
2770
2779
  {
2771
2780
  var I = (G) => {
2772
- var Ye = Ps();
2773
- le(G, Ye);
2774
- }, A = (G, Ye) => {
2781
+ var Je = Ps();
2782
+ le(G, Je);
2783
+ }, B = (G, Je) => {
2775
2784
  {
2776
2785
  var Lr = (Oe) => {
2777
2786
  var se = Ss();
2778
- Ae(() => ss(se, "allowedResize", l()));
2779
- var Te = X(se), It = X(Te);
2780
- const kt = _e(() => N(typeof o(), "string") ? JSON.parse(o()) : o()), ve = _e(() => (N(typeof r(), "string") ? JSON.parse(r()) : r()).data || []);
2787
+ Be(() => ss(se, "allowedResize", l()));
2788
+ var Re = Z(se), It = Z(Re);
2789
+ const xt = _e(() => N(typeof o(), "string") ? JSON.parse(o()) : o()), ve = _e(() => (N(typeof r(), "string") ? JSON.parse(r()) : r()).data || []);
2781
2790
  ne(It, {
2782
2791
  get itemConfig() {
2783
2792
  return m(F);
2784
2793
  },
2785
2794
  get env() {
2786
- return m(kt);
2795
+ return m(xt);
2787
2796
  },
2788
2797
  get session() {
2789
2798
  return m(ve);
@@ -2791,19 +2800,19 @@ function he(e, t) {
2791
2800
  get addCorrectResponse() {
2792
2801
  return s();
2793
2802
  },
2794
- customClassname: x,
2795
- onLoadComplete: (z) => b(new CustomEvent("load-complete", { detail: z })),
2796
- onPlayerError: (z) => b(new CustomEvent("player-error", { detail: z })),
2797
- onSessionChanged: (z) => L(new CustomEvent("session-changed", { detail: z }))
2798
- }), Z(Te);
2799
- var xt = Dt(Te, 2), kr = X(xt);
2800
- const xr = _e(() => N(typeof o(), "string") ? JSON.parse(o()) : o()), Or = _e(() => (N(typeof r(), "string") ? JSON.parse(r()) : r()).data || []);
2801
- ne(kr, {
2803
+ customClassname: k,
2804
+ onLoadComplete: (Q) => b(new CustomEvent("load-complete", { detail: Q })),
2805
+ onPlayerError: (Q) => b(new CustomEvent("player-error", { detail: Q })),
2806
+ onSessionChanged: (Q) => L(new CustomEvent("session-changed", { detail: Q }))
2807
+ }), H(Re);
2808
+ var kt = Dt(Re, 2), xr = Z(kt);
2809
+ const kr = _e(() => N(typeof o(), "string") ? JSON.parse(o()) : o()), Or = _e(() => (N(typeof r(), "string") ? JSON.parse(r()) : r()).data || []);
2810
+ ne(xr, {
2802
2811
  get itemConfig() {
2803
2812
  return m(y);
2804
2813
  },
2805
2814
  get env() {
2806
- return m(xr);
2815
+ return m(kr);
2807
2816
  },
2808
2817
  get session() {
2809
2818
  return m(Or);
@@ -2811,17 +2820,17 @@ function he(e, t) {
2811
2820
  get addCorrectResponse() {
2812
2821
  return s();
2813
2822
  },
2814
- customClassname: x,
2815
- onLoadComplete: (z) => b(new CustomEvent("load-complete", { detail: z })),
2816
- onPlayerError: (z) => b(new CustomEvent("player-error", { detail: z })),
2817
- onSessionChanged: (z) => L(new CustomEvent("session-changed", { detail: z }))
2818
- }), Z(xt), Z(se), Ae(() => {
2819
- Be(Te, 1, `player-stimulus-container ${c() ?? ""}`), Be(xt, 1, `player-item-container ${d() ?? ""}`);
2823
+ customClassname: k,
2824
+ onLoadComplete: (Q) => b(new CustomEvent("load-complete", { detail: Q })),
2825
+ onPlayerError: (Q) => b(new CustomEvent("player-error", { detail: Q })),
2826
+ onSessionChanged: (Q) => L(new CustomEvent("session-changed", { detail: Q }))
2827
+ }), H(kt), H(se), Be(() => {
2828
+ Ue(Re, 1, `player-stimulus-container ${c() ?? ""}`), Ue(kt, 1, `player-item-container ${d() ?? ""}`);
2820
2829
  }), le(Oe, se);
2821
2830
  }, Ir = (Oe) => {
2822
- var se = Ls(), Te = X(se);
2823
- const It = _e(() => N(typeof o(), "string") ? JSON.parse(o()) : o()), kt = _e(() => (N(typeof r(), "string") ? JSON.parse(r()) : r()).data || []);
2824
- ne(Te, {
2831
+ var se = Ls(), Re = Z(se);
2832
+ const It = _e(() => N(typeof o(), "string") ? JSON.parse(o()) : o()), xt = _e(() => (N(typeof r(), "string") ? JSON.parse(r()) : r()).data || []);
2833
+ ne(Re, {
2825
2834
  get itemConfig() {
2826
2835
  return m(y);
2827
2836
  },
@@ -2832,12 +2841,12 @@ function he(e, t) {
2832
2841
  return m(It);
2833
2842
  },
2834
2843
  get session() {
2835
- return m(kt);
2844
+ return m(xt);
2836
2845
  },
2837
2846
  get addCorrectResponse() {
2838
2847
  return s();
2839
2848
  },
2840
- customClassname: x,
2849
+ customClassname: k,
2841
2850
  get passageContainerClass() {
2842
2851
  return c();
2843
2852
  },
@@ -2847,31 +2856,31 @@ function he(e, t) {
2847
2856
  onLoadComplete: (ve) => b(new CustomEvent("load-complete", { detail: ve })),
2848
2857
  onPlayerError: (ve) => b(new CustomEvent("player-error", { detail: ve })),
2849
2858
  onSessionChanged: (ve) => L(new CustomEvent("session-changed", { detail: ve }))
2850
- }), Z(se), Ae(() => Be(se, 1, `player-item-container ${d() ?? ""}`)), le(Oe, se);
2859
+ }), H(se), Be(() => Ue(se, 1, `player-item-container ${d() ?? ""}`)), le(Oe, se);
2851
2860
  };
2852
- Xe(
2861
+ Ze(
2853
2862
  G,
2854
2863
  (Oe) => {
2855
2864
  m(F) && i() ? Oe(Lr) : Oe(Ir, !1);
2856
2865
  },
2857
- Ye
2866
+ Je
2858
2867
  );
2859
2868
  }
2860
2869
  };
2861
- Xe(
2870
+ Ze(
2862
2871
  f,
2863
2872
  (G) => {
2864
- m(_) || !m(y) ? G(I) : G(A, !1);
2873
+ m(_) || !m(y) ? G(I) : G(B, !1);
2865
2874
  },
2866
2875
  g
2867
2876
  );
2868
2877
  }
2869
2878
  };
2870
- Xe($e, (f) => {
2879
+ Ze($e, (f) => {
2871
2880
  m(p) ? f(St) : f(Lt, !1);
2872
2881
  });
2873
2882
  }
2874
- return Z(U), le(e, U), tn({
2883
+ return H(A), le(e, A), tn({
2875
2884
  get config() {
2876
2885
  return n();
2877
2886
  },
@@ -2941,7 +2950,7 @@ function he(e, t) {
2941
2950
  get loaderConfig() {
2942
2951
  return v();
2943
2952
  },
2944
- set loaderConfig(f = xn) {
2953
+ set loaderConfig(f = kn) {
2945
2954
  v(f), C();
2946
2955
  },
2947
2956
  ...mr()