@pie-players/pie-section-player 0.3.34 → 0.3.36

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.
@@ -482,10 +482,10 @@ function _c(e) {
482
482
  function gy() {
483
483
  for (const d of Gr) {
484
484
  var e = d.id < this.id, t = [];
485
- for (const [u, [p, f]] of this.current) {
485
+ for (const [u, [f, p]] of this.current) {
486
486
  if (d.current.has(u)) {
487
487
  var n = d.current.get(u)[0];
488
- if (e && p !== n) d.current.set(u, [p, f]);
488
+ if (e && f !== n) d.current.set(u, [f, p]);
489
489
  else continue;
490
490
  }
491
491
  t.push(u);
@@ -494,8 +494,8 @@ function gy() {
494
494
  if (r.length === 0)
495
495
  e && d.discard();
496
496
  else if (t.length > 0) {
497
- if (e) for (const u of O(Fa, this)) d.unskip_effect(u, (p) => {
498
- (p.f & 4194320) !== 0 ? d.schedule(p) : Rt(Nn, d, _c).call(d, [p]);
497
+ if (e) for (const u of O(Fa, this)) d.unskip_effect(u, (f) => {
498
+ (f.f & 4194320) !== 0 ? d.schedule(f) : Rt(Nn, d, _c).call(d, [f]);
499
499
  });
500
500
  d.activate();
501
501
  var o = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map();
@@ -760,16 +760,16 @@ function Fd(e) {
760
760
  }
761
761
  function _y(e, t, n, r) {
762
762
  const o = cs() ? Pl : Au;
763
- var i = e.filter((f) => !f.settled);
763
+ var i = e.filter((p) => !p.settled);
764
764
  if (n.length === 0 && i.length === 0) {
765
765
  r(t.map(o));
766
766
  return;
767
767
  }
768
- var s = tt, a = ky(), c = i.length === 1 ? i[0].promise : i.length > 1 ? Promise.all(i.map((f) => f.promise)) : null;
769
- function d(f) {
768
+ var s = tt, a = ky(), c = i.length === 1 ? i[0].promise : i.length > 1 ? Promise.all(i.map((p) => p.promise)) : null;
769
+ function d(p) {
770
770
  a();
771
771
  try {
772
- r(f);
772
+ r(p);
773
773
  } catch (m) {
774
774
  (s.f & 16384) === 0 && xo(m, s);
775
775
  }
@@ -780,12 +780,12 @@ function _y(e, t, n, r) {
780
780
  return;
781
781
  }
782
782
  var u = fh();
783
- function p() {
784
- Promise.all(n.map((f) => /* @__PURE__ */ Cy(f))).then((f) => d([...t.map(o), ...f])).catch((f) => xo(f, s)).finally(() => u());
783
+ function f() {
784
+ Promise.all(n.map((p) => /* @__PURE__ */ Cy(p))).then((p) => d([...t.map(o), ...p])).catch((p) => xo(p, s)).finally(() => u());
785
785
  }
786
786
  c ? c.then(() => {
787
- a(), p(), ol();
788
- }) : p();
787
+ a(), f(), ol();
788
+ }) : f();
789
789
  }
790
790
  function ky() {
791
791
  var e = tt, t = gt, n = Ut, r = mt;
@@ -836,7 +836,7 @@ function Cy(e, t, n) {
836
836
  }
837
837
  var u = mt;
838
838
  if (s) {
839
- if ((c.f & 32768) !== 0) var p = fh();
839
+ if ((c.f & 32768) !== 0) var f = fh();
840
840
  if (r.b.is_rendered())
841
841
  a.get(u)?.reject(uo), a.delete(u);
842
842
  else {
@@ -845,8 +845,8 @@ function Cy(e, t, n) {
845
845
  }
846
846
  a.set(u, d);
847
847
  }
848
- const f = (m, h = void 0) => {
849
- if (p && p(h === uo), !(h === uo || (c.f & 16384) !== 0)) {
848
+ const p = (m, h = void 0) => {
849
+ if (f && f(h === uo), !(h === uo || (c.f & 16384) !== 0)) {
850
850
  if (u.activate(), h)
851
851
  i.f |= el, Ji(i, h);
852
852
  else {
@@ -859,15 +859,15 @@ function Cy(e, t, n) {
859
859
  u.deactivate();
860
860
  }
861
861
  };
862
- d.promise.then(f, (m) => f(null, m || "unknown"));
862
+ d.promise.then(p, (m) => p(null, m || "unknown"));
863
863
  }), Nu(() => {
864
864
  for (const c of a.values()) c.reject(uo);
865
865
  }), new Promise((c) => {
866
866
  function d(u) {
867
- function p() {
867
+ function f() {
868
868
  u === o ? c(i) : d(o);
869
869
  }
870
- u.then(p, p);
870
+ u.then(f, f);
871
871
  }
872
872
  d(o);
873
873
  });
@@ -981,8 +981,8 @@ function vh(e, t, n) {
981
981
  var u = a;
982
982
  Tn?.delete(u), (c & 65536) === 0 && (c & 512 && (a.f |= oa), vh(u, wi, n));
983
983
  } else if (d) {
984
- var p = a;
985
- (c & 16) !== 0 && Ur !== null && Ur.add(p), n !== null ? n.push(p) : Pu(p);
984
+ var f = a;
985
+ (c & 16) !== 0 && Ur !== null && Ur.add(f), n !== null ? n.push(f) : Pu(f);
986
986
  }
987
987
  }
988
988
  }
@@ -992,62 +992,62 @@ function sr(e) {
992
992
  if (typeof e != "object" || e === null || ti in e) return e;
993
993
  const t = Su(e);
994
994
  if (t !== Nv && t !== Dv) return e;
995
- var n = /* @__PURE__ */ new Map(), r = wu(e), o = /* @__PURE__ */ Se(0), i = null, s = si, a = (p) => {
996
- if (si === s) return p();
997
- var f = gt, m = si;
995
+ var n = /* @__PURE__ */ new Map(), r = wu(e), o = /* @__PURE__ */ Se(0), i = null, s = si, a = (f) => {
996
+ if (si === s) return f();
997
+ var p = gt, m = si;
998
998
  zn(null), jd(s);
999
- var h = p();
1000
- return zn(f), jd(m), h;
999
+ var h = f();
1000
+ return zn(p), jd(m), h;
1001
1001
  };
1002
1002
  r && n.set("length", /* @__PURE__ */ Se(e.length, i));
1003
1003
  var c = "";
1004
1004
  let d = !1;
1005
- function u(p) {
1005
+ function u(f) {
1006
1006
  if (!d) {
1007
- d = !0, c = p, Nd(o, `${c} version`);
1008
- for (const [f, m] of n) Nd(m, My(c, f));
1007
+ d = !0, c = f, Nd(o, `${c} version`);
1008
+ for (const [p, m] of n) Nd(m, My(c, p));
1009
1009
  d = !1;
1010
1010
  }
1011
1011
  }
1012
1012
  return new Proxy(e, {
1013
- defineProperty(p, f, m) {
1013
+ defineProperty(f, p, m) {
1014
1014
  (!("value" in m) || m.configurable === !1 || m.enumerable === !1 || m.writable === !1) && ey();
1015
- var h = n.get(f);
1015
+ var h = n.get(p);
1016
1016
  return h === void 0 ? a(() => {
1017
1017
  var w = /* @__PURE__ */ Se(m.value, i);
1018
- return n.set(f, w), w;
1018
+ return n.set(p, w), w;
1019
1019
  }) : ne(h, m.value, !0), !0;
1020
1020
  },
1021
- deleteProperty(p, f) {
1022
- var m = n.get(f);
1021
+ deleteProperty(f, p) {
1022
+ var m = n.get(p);
1023
1023
  if (m === void 0) {
1024
- if (f in p) {
1024
+ if (p in f) {
1025
1025
  const h = a(() => /* @__PURE__ */ Se(dn, i));
1026
- n.set(f, h), zs(o);
1026
+ n.set(p, h), zs(o);
1027
1027
  }
1028
1028
  } else
1029
1029
  ne(m, dn), zs(o);
1030
1030
  return !0;
1031
1031
  },
1032
- get(p, f, m) {
1033
- if (f === ti) return e;
1034
- var h = n.get(f), w = f in p;
1035
- if (h === void 0 && (!w || ei(p, f)?.writable) && (h = a(() => {
1036
- var g = /* @__PURE__ */ Se(sr(w ? p[f] : dn), i);
1032
+ get(f, p, m) {
1033
+ if (p === ti) return e;
1034
+ var h = n.get(p), w = p in f;
1035
+ if (h === void 0 && (!w || ei(f, p)?.writable) && (h = a(() => {
1036
+ var g = /* @__PURE__ */ Se(sr(w ? f[p] : dn), i);
1037
1037
  return g;
1038
- }), n.set(f, h)), h !== void 0) {
1038
+ }), n.set(p, h)), h !== void 0) {
1039
1039
  var v = l(h);
1040
1040
  return v === dn ? void 0 : v;
1041
1041
  }
1042
- return Reflect.get(p, f, m);
1042
+ return Reflect.get(f, p, m);
1043
1043
  },
1044
- getOwnPropertyDescriptor(p, f) {
1045
- var m = Reflect.getOwnPropertyDescriptor(p, f);
1044
+ getOwnPropertyDescriptor(f, p) {
1045
+ var m = Reflect.getOwnPropertyDescriptor(f, p);
1046
1046
  if (m && "value" in m) {
1047
- var h = n.get(f);
1047
+ var h = n.get(p);
1048
1048
  h && (m.value = l(h));
1049
1049
  } else if (m === void 0) {
1050
- var w = n.get(f), v = w?.v;
1050
+ var w = n.get(p), v = w?.v;
1051
1051
  if (w !== void 0 && v !== dn) return {
1052
1052
  enumerable: !0,
1053
1053
  configurable: !0,
@@ -1057,45 +1057,45 @@ function sr(e) {
1057
1057
  }
1058
1058
  return m;
1059
1059
  },
1060
- has(p, f) {
1061
- if (f === ti) return !0;
1062
- var m = n.get(f), h = m !== void 0 && m.v !== dn || Reflect.has(p, f);
1063
- return (m !== void 0 || tt !== null && (!h || ei(p, f)?.writable)) && (m === void 0 && (m = a(() => {
1064
- var w = /* @__PURE__ */ Se(h ? sr(p[f]) : dn, i);
1060
+ has(f, p) {
1061
+ if (p === ti) return !0;
1062
+ var m = n.get(p), h = m !== void 0 && m.v !== dn || Reflect.has(f, p);
1063
+ return (m !== void 0 || tt !== null && (!h || ei(f, p)?.writable)) && (m === void 0 && (m = a(() => {
1064
+ var w = /* @__PURE__ */ Se(h ? sr(f[p]) : dn, i);
1065
1065
  return w;
1066
- }), n.set(f, m)), l(m) === dn) ? !1 : h;
1066
+ }), n.set(p, m)), l(m) === dn) ? !1 : h;
1067
1067
  },
1068
- set(p, f, m, h) {
1069
- var w = n.get(f), v = f in p;
1070
- if (r && f === "length") for (var g = m; g < w.v; g += 1) {
1068
+ set(f, p, m, h) {
1069
+ var w = n.get(p), v = p in f;
1070
+ if (r && p === "length") for (var g = m; g < w.v; g += 1) {
1071
1071
  var C = n.get(g + "");
1072
- C !== void 0 ? ne(C, dn) : g in p && (C = a(() => /* @__PURE__ */ Se(dn, i)), n.set(g + "", C));
1072
+ C !== void 0 ? ne(C, dn) : g in f && (C = a(() => /* @__PURE__ */ Se(dn, i)), n.set(g + "", C));
1073
1073
  }
1074
1074
  if (w === void 0)
1075
- (!v || ei(p, f)?.writable) && (w = a(() => /* @__PURE__ */ Se(void 0, i)), ne(w, sr(m)), n.set(f, w));
1075
+ (!v || ei(f, p)?.writable) && (w = a(() => /* @__PURE__ */ Se(void 0, i)), ne(w, sr(m)), n.set(p, w));
1076
1076
  else {
1077
1077
  v = w.v !== dn;
1078
1078
  var E = a(() => sr(m));
1079
1079
  ne(w, E);
1080
1080
  }
1081
- var T = Reflect.getOwnPropertyDescriptor(p, f);
1081
+ var T = Reflect.getOwnPropertyDescriptor(f, p);
1082
1082
  if (T?.set && T.set.call(h, m), !v) {
1083
- if (r && typeof f == "string") {
1084
- var R = n.get("length"), z = Number(f);
1083
+ if (r && typeof p == "string") {
1084
+ var R = n.get("length"), z = Number(p);
1085
1085
  Number.isInteger(z) && z >= R.v && ne(R, z + 1);
1086
1086
  }
1087
1087
  zs(o);
1088
1088
  }
1089
1089
  return !0;
1090
1090
  },
1091
- ownKeys(p) {
1091
+ ownKeys(f) {
1092
1092
  l(o);
1093
- var f = Reflect.ownKeys(p).filter((w) => {
1093
+ var p = Reflect.ownKeys(f).filter((w) => {
1094
1094
  var v = n.get(w);
1095
1095
  return v === void 0 || v.v !== dn;
1096
1096
  });
1097
- for (var [m, h] of n) h.v !== dn && !(m in p) && f.push(m);
1098
- return f;
1097
+ for (var [m, h] of n) h.v !== dn && !(m in f) && p.push(m);
1098
+ return p;
1099
1099
  },
1100
1100
  setPrototypeOf() {
1101
1101
  ty();
@@ -1436,26 +1436,26 @@ function Mh(e) {
1436
1436
  }), e.ac = null);
1437
1437
  try {
1438
1438
  e.f |= Ld;
1439
- var u = e.fn, p = u();
1439
+ var u = e.fn, f = u();
1440
1440
  e.f |= Eu;
1441
- var f = e.deps, m = mt?.is_fork;
1441
+ var p = e.deps, m = mt?.is_fork;
1442
1442
  if (Dn !== null) {
1443
1443
  var h;
1444
- if (m || Gs(e, Wn), f !== null && Wn > 0)
1445
- for (f.length = Wn + Dn.length, h = 0; h < Dn.length; h++) f[Wn + h] = Dn[h];
1446
- else e.deps = f = Dn;
1447
- if (Lu() && (e.f & 512) !== 0) for (h = Wn; h < f.length; h++) {
1444
+ if (m || Gs(e, Wn), p !== null && Wn > 0)
1445
+ for (p.length = Wn + Dn.length, h = 0; h < Dn.length; h++) p[Wn + h] = Dn[h];
1446
+ else e.deps = p = Dn;
1447
+ if (Lu() && (e.f & 512) !== 0) for (h = Wn; h < p.length; h++) {
1448
1448
  var w;
1449
- ((w = f[h]).reactions ?? (w.reactions = [])).push(e);
1449
+ ((w = p[h]).reactions ?? (w.reactions = [])).push(e);
1450
1450
  }
1451
- } else !m && f !== null && Wn < f.length && (Gs(e, Wn), f.length = Wn);
1452
- if (cs() && er !== null && !kr && f !== null && (e.f & 6146) === 0) for (h = 0; h < er.length; h++) xh(er[h], e);
1451
+ } else !m && p !== null && Wn < p.length && (Gs(e, Wn), p.length = Wn);
1452
+ if (cs() && er !== null && !kr && p !== null && (e.f & 6146) === 0) for (h = 0; h < er.length; h++) xh(er[h], e);
1453
1453
  if (o !== null && o !== e) {
1454
1454
  if (Xo++, o.deps !== null) for (let v = 0; v < n; v += 1) o.deps[v].rv = Xo;
1455
1455
  if (t !== null) for (const v of t) v.rv = Xo;
1456
1456
  er !== null && (r === null ? r = er : r.push(...er));
1457
1457
  }
1458
- return (e.f & 8388608) !== 0 && (e.f ^= el), p;
1458
+ return (e.f & 8388608) !== 0 && (e.f ^= el), f;
1459
1459
  } catch (v) {
1460
1460
  return Qp(v);
1461
1461
  } finally {
@@ -1532,8 +1532,8 @@ function l(e) {
1532
1532
  var d = c.v;
1533
1533
  return ((c.f & 1024) === 0 && c.reactions !== null || Lh(c)) && (d = xu(c)), ii.set(c, d), d;
1534
1534
  }
1535
- var u = (c.f & 512) === 0 && !kr && gt !== null && (Ha || (gt.f & 512) !== 0), p = (c.f & Eu) === 0;
1536
- aa(c) && (u && (c.f |= 512), ph(c)), u && !p && (hh(c), Oh(c));
1535
+ var u = (c.f & 512) === 0 && !kr && gt !== null && (Ha || (gt.f & 512) !== 0), f = (c.f & Eu) === 0;
1536
+ aa(c) && (u && (c.f |= 512), ph(c)), u && !f && (hh(c), Oh(c));
1537
1537
  }
1538
1538
  if (Tn?.has(e)) return Tn.get(e);
1539
1539
  if ((e.f & 8388608) !== 0) throw e.v;
@@ -1635,28 +1635,28 @@ function Lc(e) {
1635
1635
  return i || n;
1636
1636
  }
1637
1637
  });
1638
- var u = gt, p = tt;
1638
+ var u = gt, f = tt;
1639
1639
  zn(null), dr(null);
1640
1640
  try {
1641
- for (var f, m = []; i !== null; ) {
1641
+ for (var p, m = []; i !== null; ) {
1642
1642
  var h = i.assignedSlot || i.parentNode || i.host || null;
1643
1643
  try {
1644
1644
  var w = i[Ni]?.[r];
1645
1645
  w != null && (!i.disabled || e.target === i) && w.call(i, e);
1646
1646
  } catch (v) {
1647
- f ? m.push(v) : f = v;
1647
+ p ? m.push(v) : p = v;
1648
1648
  }
1649
1649
  if (e.cancelBubble || h === t || h === null) break;
1650
1650
  i = h;
1651
1651
  }
1652
- if (f) {
1652
+ if (p) {
1653
1653
  for (let v of m) queueMicrotask(() => {
1654
1654
  throw v;
1655
1655
  });
1656
- throw f;
1656
+ throw p;
1657
1657
  }
1658
1658
  } finally {
1659
- e[Ni] = t, delete e.currentTarget, zn(u), dr(p);
1659
+ e[Ni] = t, delete e.currentTarget, zn(u), dr(f);
1660
1660
  }
1661
1661
  }
1662
1662
  }
@@ -1829,11 +1829,11 @@ function $h(e, { target: t, anchor: n, props: r = {}, events: o, context: i, int
1829
1829
  throw Cl(), Vi;
1830
1830
  cn();
1831
1831
  }, a);
1832
- var p = /* @__PURE__ */ new Set(), f = (m) => {
1832
+ var f = /* @__PURE__ */ new Set(), p = (m) => {
1833
1833
  for (var h = 0; h < m.length; h++) {
1834
1834
  var w = m[h];
1835
- if (!p.has(w)) {
1836
- p.add(w);
1835
+ if (!f.has(w)) {
1836
+ f.add(w);
1837
1837
  var v = Jy(w);
1838
1838
  for (const E of [t, document]) {
1839
1839
  var g = Ea.get(E);
@@ -1844,12 +1844,12 @@ function $h(e, { target: t, anchor: n, props: r = {}, events: o, context: i, int
1844
1844
  }
1845
1845
  }
1846
1846
  };
1847
- return f(El(Nh)), Oc.add(f), () => {
1848
- for (var m of p) for (const v of [t, document]) {
1847
+ return p(El(Nh)), Oc.add(p), () => {
1848
+ for (var m of f) for (const v of [t, document]) {
1849
1849
  var h = Ea.get(v), w = h.get(m);
1850
1850
  --w == 0 ? (v.removeEventListener(m, Lc), h.delete(m), h.size === 0 && Ea.delete(v)) : h.set(m, w);
1851
1851
  }
1852
- Oc.delete(f), u !== n && u.parentNode?.removeChild(u);
1852
+ Oc.delete(p), u !== n && u.parentNode?.removeChild(u);
1853
1853
  };
1854
1854
  });
1855
1855
  return Dc.set(c, d), c;
@@ -1982,12 +1982,12 @@ function ab(e, t, n) {
1982
1982
  }
1983
1983
  function lb(e, t, n) {
1984
1984
  for (var r = [], o = t.length, i, s = t.length, a = 0; a < o; a++) {
1985
- let p = t[a];
1986
- Ii(p, () => {
1985
+ let f = t[a];
1986
+ Ii(f, () => {
1987
1987
  if (i) {
1988
- if (i.pending.delete(p), i.done.add(p), i.pending.size === 0) {
1989
- var f = e.outrogroups;
1990
- Bc(e, El(i.done)), f.delete(i), f.size === 0 && (e.outrogroups = null);
1988
+ if (i.pending.delete(f), i.done.add(f), i.pending.size === 0) {
1989
+ var p = e.outrogroups;
1990
+ Bc(e, El(i.done)), p.delete(i), p.size === 0 && (e.outrogroups = null);
1991
1991
  }
1992
1992
  } else s -= 1;
1993
1993
  }, !1);
@@ -2027,9 +2027,9 @@ function Fh(e, t, n, r, o, i = null) {
2027
2027
  var d = null, u = /* @__PURE__ */ Au(() => {
2028
2028
  var g = n();
2029
2029
  return wu(g) ? g : g == null ? [] : El(g);
2030
- }), p, f = /* @__PURE__ */ new Map(), m = !0;
2030
+ }), f, p = /* @__PURE__ */ new Map(), m = !0;
2031
2031
  function h(g) {
2032
- (v.effect.f & 16384) === 0 && (v.pending.delete(g), v.fallback = d, cb(v, p, s, t, r), d !== null && (p.length === 0 ? (d.f & 33554432) === 0 ? $u(d) : (d.f ^= Fs, Ls(d, null, s)) : Ii(d, () => {
2032
+ (v.effect.f & 16384) === 0 && (v.pending.delete(g), v.fallback = d, cb(v, f, s, t, r), d !== null && (f.length === 0 ? (d.f & 33554432) === 0 ? $u(d) : (d.f ^= Fs, Ls(d, null, s)) : Ii(d, () => {
2033
2033
  d = null;
2034
2034
  })));
2035
2035
  }
@@ -2038,20 +2038,20 @@ function Fh(e, t, n, r, o, i = null) {
2038
2038
  }
2039
2039
  var v = {
2040
2040
  effect: sa(() => {
2041
- p = l(u);
2042
- var g = p.length;
2041
+ f = l(u);
2042
+ var g = f.length;
2043
2043
  let C = !1;
2044
2044
  Je && Gp(s) === "[!" != (g === 0) && (s = tl(), gn(s), Gn(!1), C = !0);
2045
2045
  for (var E = /* @__PURE__ */ new Set(), T = mt, R = Ih(), z = 0; z < g; z += 1) {
2046
2046
  Je && yt.nodeType === 8 && yt.data === "]" && (s = yt, C = !0, Gn(!1));
2047
- var F = p[z], ie = r(F, z);
2047
+ var F = f[z], ie = r(F, z);
2048
2048
  if (0)
2049
2049
  var le;
2050
2050
  var H = m ? null : a.get(ie);
2051
2051
  H ? (H.v && Ji(H.v, F), H.i && Ji(H.i, z), R && T.unskip_effect(H.e)) : (H = ub(a, m ? s : Ta ?? (Ta = Xn()), F, ie, z, o, t, n), m || (H.e.f |= Fs), a.set(ie, H)), E.add(ie);
2052
2052
  }
2053
2053
  if (g === 0 && i && !d && (m ? d = ur(() => i(s)) : (d = ur(() => i(Ta ?? (Ta = Xn()))), d.f |= Fs)), g > E.size && Vv("", "", ""), Je && g > 0 && gn(tl()), !m)
2054
- if (f.set(T, E), R) {
2054
+ if (p.set(T, E), R) {
2055
2055
  for (const [q, ee] of a) E.has(q) || T.skip_effect(ee.e);
2056
2056
  T.oncommit(h), T.ondiscard(w);
2057
2057
  } else h(T);
@@ -2059,7 +2059,7 @@ function Fh(e, t, n, r, o, i = null) {
2059
2059
  }),
2060
2060
  flags: t,
2061
2061
  items: a,
2062
- pending: f,
2062
+ pending: p,
2063
2063
  outrogroups: null,
2064
2064
  fallback: d
2065
2065
  };
@@ -2070,37 +2070,37 @@ function ys(e) {
2070
2070
  return e;
2071
2071
  }
2072
2072
  function cb(e, t, n, r, o) {
2073
- var i = (r & 8) !== 0, s = t.length, a = e.items, c = ys(e.effect.first), d, u = null, p, f = [], m = [], h, w, v, g;
2073
+ var i = (r & 8) !== 0, s = t.length, a = e.items, c = ys(e.effect.first), d, u = null, f, p = [], m = [], h, w, v, g;
2074
2074
  if (i) for (g = 0; g < s; g += 1)
2075
- h = t[g], w = o(h, g), v = a.get(w).e, (v.f & 33554432) === 0 && (v.nodes?.a?.measure(), (p ?? (p = /* @__PURE__ */ new Set())).add(v));
2075
+ h = t[g], w = o(h, g), v = a.get(w).e, (v.f & 33554432) === 0 && (v.nodes?.a?.measure(), (f ?? (f = /* @__PURE__ */ new Set())).add(v));
2076
2076
  for (g = 0; g < s; g += 1) {
2077
2077
  if (h = t[g], w = o(h, g), v = a.get(w).e, e.outrogroups !== null) for (const H of e.outrogroups)
2078
2078
  H.pending.delete(v), H.done.delete(v);
2079
- if ((v.f & 8192) !== 0 && ($u(v), i && (v.nodes?.a?.unfix(), (p ?? (p = /* @__PURE__ */ new Set())).delete(v))), (v.f & 33554432) !== 0)
2079
+ if ((v.f & 8192) !== 0 && ($u(v), i && (v.nodes?.a?.unfix(), (f ?? (f = /* @__PURE__ */ new Set())).delete(v))), (v.f & 33554432) !== 0)
2080
2080
  if (v.f ^= Fs, v === c) Ls(v, null, n);
2081
2081
  else {
2082
2082
  var C = u ? u.next : c;
2083
- v === e.effect.last && (e.effect.last = v.prev), v.prev && (v.prev.next = v.next), v.next && (v.next.prev = v.prev), Eo(e, u, v), Eo(e, v, C), Ls(v, C, n), u = v, f = [], m = [], c = ys(u.next);
2083
+ v === e.effect.last && (e.effect.last = v.prev), v.prev && (v.prev.next = v.next), v.next && (v.next.prev = v.prev), Eo(e, u, v), Eo(e, v, C), Ls(v, C, n), u = v, p = [], m = [], c = ys(u.next);
2084
2084
  continue;
2085
2085
  }
2086
2086
  if (v !== c) {
2087
2087
  if (d !== void 0 && d.has(v)) {
2088
- if (f.length < m.length) {
2088
+ if (p.length < m.length) {
2089
2089
  var E = m[0], T;
2090
2090
  u = E.prev;
2091
- var R = f[0], z = f[f.length - 1];
2092
- for (T = 0; T < f.length; T += 1) Ls(f[T], E, n);
2091
+ var R = p[0], z = p[p.length - 1];
2092
+ for (T = 0; T < p.length; T += 1) Ls(p[T], E, n);
2093
2093
  for (T = 0; T < m.length; T += 1) d.delete(m[T]);
2094
- Eo(e, R.prev, z.next), Eo(e, u, R), Eo(e, z, E), c = E, u = z, g -= 1, f = [], m = [];
2094
+ Eo(e, R.prev, z.next), Eo(e, u, R), Eo(e, z, E), c = E, u = z, g -= 1, p = [], m = [];
2095
2095
  } else
2096
2096
  d.delete(v), Ls(v, c, n), Eo(e, v.prev, v.next), Eo(e, v, u === null ? e.effect.first : u.next), Eo(e, u, v), u = v;
2097
2097
  continue;
2098
2098
  }
2099
- for (f = [], m = []; c !== null && c !== v; )
2099
+ for (p = [], m = []; c !== null && c !== v; )
2100
2100
  (d ?? (d = /* @__PURE__ */ new Set())).add(c), m.push(c), c = ys(c.next);
2101
2101
  if (c === null) continue;
2102
2102
  }
2103
- (v.f & 33554432) === 0 && f.push(v), u = v, c = ys(v.next);
2103
+ (v.f & 33554432) === 0 && p.push(v), u = v, c = ys(v.next);
2104
2104
  }
2105
2105
  if (e.outrogroups !== null) {
2106
2106
  for (const H of e.outrogroups) H.pending.size === 0 && (Bc(e, El(H.done)), e.outrogroups?.delete(H));
@@ -2123,8 +2123,8 @@ function cb(e, t, n, r, o) {
2123
2123
  }
2124
2124
  }
2125
2125
  i && No(() => {
2126
- if (p !== void 0)
2127
- for (v of p) v.nodes?.a?.apply();
2126
+ if (f !== void 0)
2127
+ for (v of f) v.nodes?.a?.apply();
2128
2128
  });
2129
2129
  }
2130
2130
  function ub(e, t, n, r, o, i, s, a) {
@@ -2162,18 +2162,18 @@ function Hh(e, t, n, r, o, i) {
2162
2162
  Je && Lo();
2163
2163
  var a = !1, c = null;
2164
2164
  Je && yt.nodeType === 1 && (c = yt, Lo());
2165
- var d = Je ? yt : e, u = tt, p = new Hu(d, !1);
2165
+ var d = Je ? yt : e, u = tt, f = new Hu(d, !1);
2166
2166
  sa(() => {
2167
- const f = t() || null;
2168
- var m = o ? o() : n || f === "svg" ? Ov : void 0;
2169
- if (f === null) {
2170
- p.ensure(null, null), Ia(!0);
2167
+ const p = t() || null;
2168
+ var m = o ? o() : n || p === "svg" ? Ov : void 0;
2169
+ if (p === null) {
2170
+ f.ensure(null, null), Ia(!0);
2171
2171
  return;
2172
2172
  }
2173
- return p.ensure(f, (h) => {
2174
- if (f) {
2175
- if (c = Je ? c : Rl(f, m), ai(c, c), r) {
2176
- Je && eb(f) && c.append(document.createComment(""));
2173
+ return f.ensure(p, (h) => {
2174
+ if (p) {
2175
+ if (c = Je ? c : Rl(p, m), ai(c, c), r) {
2176
+ Je && eb(p) && c.append(document.createComment(""));
2177
2177
  var w = Je ? /* @__PURE__ */ Do(c) : c.appendChild(Xn());
2178
2178
  Je && (w === null ? Gn(!1) : gn(w)), Vd(u), r(c, w), Vd(null);
2179
2179
  }
@@ -2181,7 +2181,7 @@ function Hh(e, t, n, r, o, i) {
2181
2181
  }
2182
2182
  Je && gn(h);
2183
2183
  }), Ia(!0), () => {
2184
- f && Ia(!1);
2184
+ p && Ia(!1);
2185
2185
  };
2186
2186
  }, Tl), Nu(() => {
2187
2187
  Ia(!0);
@@ -2243,20 +2243,20 @@ function pb(e, t) {
2243
2243
  r && c.push(...Object.keys(r).map(Yl)), o && c.push(...Object.keys(o).map(Yl));
2244
2244
  var d = 0, u = -1;
2245
2245
  const w = e.length;
2246
- for (var p = 0; p < w; p++) {
2247
- var f = e[p];
2248
- if (a ? f === "/" && e[p - 1] === "*" && (a = !1) : i ? i === f && (i = !1) : f === "/" && e[p + 1] === "*" ? a = !0 : f === '"' || f === "'" ? i = f : f === "(" ? s++ : f === ")" && s--, !a && i === !1 && s === 0) {
2249
- if (f === ":" && u === -1) u = p;
2250
- else if (f === ";" || p === w - 1) {
2246
+ for (var f = 0; f < w; f++) {
2247
+ var p = e[f];
2248
+ if (a ? p === "/" && e[f - 1] === "*" && (a = !1) : i ? i === p && (i = !1) : p === "/" && e[f + 1] === "*" ? a = !0 : p === '"' || p === "'" ? i = p : p === "(" ? s++ : p === ")" && s--, !a && i === !1 && s === 0) {
2249
+ if (p === ":" && u === -1) u = f;
2250
+ else if (p === ";" || f === w - 1) {
2251
2251
  if (u !== -1) {
2252
2252
  var m = Yl(e.substring(d, u).trim());
2253
2253
  if (!c.includes(m)) {
2254
- f !== ";" && p++;
2255
- var h = e.substring(d, p).trim();
2254
+ p !== ";" && f++;
2255
+ var h = e.substring(d, f).trim();
2256
2256
  n += " " + h + ";";
2257
2257
  }
2258
2258
  }
2259
- d = p + 1, u = -1;
2259
+ d = f + 1, u = -1;
2260
2260
  }
2261
2261
  }
2262
2262
  }
@@ -2376,11 +2376,11 @@ function b(e, t, n, r) {
2376
2376
  var o = !ia || (n & 2) !== 0, i = (n & 8) !== 0, s = (n & 16) !== 0, a = r, c = !0, d = () => (c && (c = !1, a = s ? qt(r) : r), a);
2377
2377
  let u;
2378
2378
  if (i) {
2379
- var p = ti in e || Vp in e;
2380
- u = ei(e, t)?.set ?? (p && t in e ? (E) => e[t] = E : void 0);
2379
+ var f = ti in e || Vp in e;
2380
+ u = ei(e, t)?.set ?? (f && t in e ? (E) => e[t] = E : void 0);
2381
2381
  }
2382
- var f, m = !1;
2383
- i ? [f, m] = py(() => e[t]) : f = e[t], f === void 0 && r !== void 0 && (f = d(), u && (o && Zv(t), u(f)));
2382
+ var p, m = !1;
2383
+ i ? [p, m] = py(() => e[t]) : p = e[t], p === void 0 && r !== void 0 && (p = d(), u && (o && Zv(t), u(p)));
2384
2384
  var h;
2385
2385
  if (o ? h = () => {
2386
2386
  var E = e[t];
@@ -2656,10 +2656,10 @@ var Vh = (e) => {
2656
2656
  }
2657
2657
  u.add(w), w in a || t.push(`Model element "${w}" is not declared in \`elements\`.`);
2658
2658
  }
2659
- const p = Eb(o);
2660
- for (const m of p) m in a || t.push(`Markup tag "${m}" is not declared in \`elements\`.`);
2661
- const f = /* @__PURE__ */ new Set([...u, ...p]);
2662
- for (const m of d) f.has(m) || n.push(`Element "${m}" is declared in \`elements\` but not referenced by models or markup.`);
2659
+ const f = Eb(o);
2660
+ for (const m of f) m in a || t.push(`Markup tag "${m}" is not declared in \`elements\`.`);
2661
+ const p = /* @__PURE__ */ new Set([...u, ...f]);
2662
+ for (const m of d) p.has(m) || n.push(`Element "${m}" is declared in \`elements\` but not referenced by models or markup.`);
2663
2663
  return {
2664
2664
  valid: t.length === 0,
2665
2665
  errors: t,
@@ -2891,7 +2891,7 @@ function la(e) {
2891
2891
  const a = (c) => {
2892
2892
  try {
2893
2893
  if (!t.isReady() || e.shouldTrackEvent && !e.shouldTrackEvent(c)) return;
2894
- const d = $b(c.detail), u = (/* @__PURE__ */ new Date()).toISOString(), p = {
2894
+ const d = $b(c.detail), u = (/* @__PURE__ */ new Date()).toISOString(), f = {
2895
2895
  ...d,
2896
2896
  ...e.staticAttributes,
2897
2897
  component: e.component,
@@ -2899,11 +2899,11 @@ function la(e) {
2899
2899
  timestamp: u
2900
2900
  };
2901
2901
  if (r > 0) {
2902
- const f = Date.now(), m = i(s, p), h = o.get(m);
2903
- if (typeof h == "number" && f - h < r) return;
2904
- o.set(m, f);
2902
+ const p = Date.now(), m = i(s, f), h = o.get(m);
2903
+ if (typeof h == "number" && p - h < r) return;
2904
+ o.set(m, p);
2905
2905
  }
2906
- t.trackEvent(s.instrumentationEventName, { ...p });
2906
+ t.trackEvent(s.instrumentationEventName, { ...f });
2907
2907
  } catch (d) {
2908
2908
  Hb({
2909
2909
  provider: t,
@@ -3091,7 +3091,7 @@ function Gb(e) {
3091
3091
  n.has(C) || c.has(C) || (c.add(C), d(C, "skipped"));
3092
3092
  }
3093
3093
  }
3094
- function p(h, w = "entered") {
3094
+ function f(h, w = "entered") {
3095
3095
  const v = ka(h), g = i === null ? -1 : ka(i);
3096
3096
  if (w === "entered") {
3097
3097
  if (c.has(h)) {
@@ -3124,15 +3124,15 @@ function Gb(e) {
3124
3124
  }
3125
3125
  c.has(h) || (c.add(h), d(h, "skipped"));
3126
3126
  }
3127
- function f(h) {
3127
+ function p(h) {
3128
3128
  i = null, c.clear(), h && (s = h.sectionId, a = h.attemptId);
3129
3129
  }
3130
3130
  function m() {
3131
3131
  return i;
3132
3132
  }
3133
3133
  return {
3134
- enter: p,
3135
- reset: f,
3134
+ enter: f,
3135
+ reset: p,
3136
3136
  getCurrent: m
3137
3137
  };
3138
3138
  }
@@ -3248,7 +3248,7 @@ function om(e) {
3248
3248
  const o = n;
3249
3249
  if (Array.isArray(o.data)) {
3250
3250
  const c = Fc(o, r), d = e.previousItemSession !== void 0 ? Fc(e.previousItemSession, r) : null, u = Object.keys(t);
3251
- return u.length > 0 && u.every((p) => p === "session" || p === "complete" || p === "component" || p === "timestamp" || p === "sourceRuntimeId") && d && Jb(c, d) ? {
3251
+ return u.length > 0 && u.every((f) => f === "session" || f === "complete" || f === "component" || f === "timestamp" || f === "sourceRuntimeId") && d && Jb(c, d) ? {
3252
3252
  itemId: r,
3253
3253
  session: null,
3254
3254
  intent: "metadata-only",
@@ -3813,16 +3813,16 @@ var pw = class {
3813
3813
  0.56,
3814
3814
  0.5
3815
3815
  ];
3816
- let u = d[d.length - 1], p = -1 / 0;
3816
+ let u = d[d.length - 1], f = -1 / 0;
3817
3817
  for (const T of d) {
3818
3818
  const R = this.blend(c, s, T), z = this.contrastRatio(R, s), F = this.contrastRatio(R, a), ie = z * 1.2 + F * 0.8;
3819
3819
  if (z >= 1.25 && F >= 2.4) {
3820
3820
  u = T;
3821
3821
  break;
3822
3822
  }
3823
- ie > p && (p = ie, u = T);
3823
+ ie > f && (f = ie, u = T);
3824
3824
  }
3825
- const f = Math.max(0.24, Math.min(0.85, u * 0.55)), m = Math.max(0.55, Math.min(0.95, u + 0.2)), h = Math.max(0.22, Math.min(0.6, u * 0.45)), w = a, v = this.blend(w, s, m), g = this.contrastRatio(v, s), C = this.relativeLuminance(s) > 0.45 ? [
3825
+ const p = Math.max(0.24, Math.min(0.85, u * 0.55)), m = Math.max(0.55, Math.min(0.95, u + 0.2)), h = Math.max(0.22, Math.min(0.6, u * 0.45)), w = a, v = this.blend(w, s, m), g = this.contrastRatio(v, s), C = this.relativeLuminance(s) > 0.45 ? [
3826
3826
  0,
3827
3827
  0,
3828
3828
  0
@@ -3833,7 +3833,7 @@ var pw = class {
3833
3833
  ], E = g >= 1.35 ? w : C;
3834
3834
  return {
3835
3835
  wordHighlight: `rgba(${c[0]}, ${c[1]}, ${c[2]}, ${u})`,
3836
- sentenceHighlight: `rgba(${c[0]}, ${c[1]}, ${c[2]}, ${f})`,
3836
+ sentenceHighlight: `rgba(${c[0]}, ${c[1]}, ${c[2]}, ${p})`,
3837
3837
  wordUnderline: `rgba(${E[0]}, ${E[1]}, ${E[2]}, ${m})`,
3838
3838
  wordShadow: `rgba(${E[0]}, ${E[1]}, ${E[2]}, ${h})`
3839
3839
  };
@@ -4373,7 +4373,7 @@ function Gu(e) {
4373
4373
  for (const d of Object.values(c))
4374
4374
  if (typeof d == "string" && r.push(o(d)), Array.isArray(d)) {
4375
4375
  for (const u of d) if (u && typeof u == "object")
4376
- for (const p of Object.values(u)) typeof p == "string" && r.push(o(p));
4376
+ for (const f of Object.values(u)) typeof f == "string" && r.push(o(f));
4377
4377
  }
4378
4378
  }
4379
4379
  return r.filter(Boolean).join(" ").trim();
@@ -4392,7 +4392,7 @@ function Gu(e) {
4392
4392
  for (const d of Object.values(c))
4393
4393
  if (typeof d == "string" && r.push(o(d)), Array.isArray(d)) {
4394
4394
  for (const u of d) if (u && typeof u == "object")
4395
- for (const p of Object.values(u)) typeof p == "string" && r.push(o(p));
4395
+ for (const f of Object.values(u)) typeof f == "string" && r.push(o(f));
4396
4396
  }
4397
4397
  }
4398
4398
  return r.filter(Boolean).join(" ").trim();
@@ -4860,8 +4860,8 @@ var Aw = class {
4860
4860
  n === this.speakRunId && (this._isPaused = !1);
4861
4861
  }, this.utterance.onboundary = (i) => {
4862
4862
  if (n !== this.speakRunId || (console.log("[BrowserProvider] Boundary event:", i.name, "charIndex:", i.charIndex, "charLength:", i.charLength), i.name !== "word" || !this.onWordBoundary) || this.getHighlightMode() === "sentence") return;
4863
- const s = Math.max(0, Math.min(i.charIndex, Math.max(0, e.length - 1))), a = Number(i.charLength || 0), c = this.inferWordLength(e, s), d = Number.isFinite(a) && a > 0 && a <= 80 && s + a <= e.length ? a : c, u = e.substring(s, Math.min(e.length, s + d)).trim(), p = t + s;
4864
- console.log("[BrowserProvider] Calling onWordBoundary with word:", u, "at position:", p), this.onWordBoundary(u, p, d);
4863
+ const s = Math.max(0, Math.min(i.charIndex, Math.max(0, e.length - 1))), a = Number(i.charLength || 0), c = this.inferWordLength(e, s), d = Number.isFinite(a) && a > 0 && a <= 80 && s + a <= e.length ? a : c, u = e.substring(s, Math.min(e.length, s + d)).trim(), f = t + s;
4864
+ console.log("[BrowserProvider] Calling onWordBoundary with word:", u, "at position:", f), this.onWordBoundary(u, f, d);
4865
4865
  }, speechSynthesis.speak(this.utterance);
4866
4866
  });
4867
4867
  }
@@ -5230,12 +5230,12 @@ var Aw = class {
5230
5230
  } }
5231
5231
  }],
5232
5232
  subscribeActive: (u) => {
5233
- const p = c(), f = (m) => {
5233
+ const f = c(), p = (m) => {
5234
5234
  const h = m.detail;
5235
5235
  u(h?.active === !0);
5236
5236
  };
5237
- return p.addEventListener(df, f), () => {
5238
- p.removeEventListener(df, f);
5237
+ return f.addEventListener(df, p), () => {
5238
+ f.removeEventListener(df, p);
5239
5239
  };
5240
5240
  },
5241
5241
  sync: () => {
@@ -5939,8 +5939,8 @@ function Mi(e, t = {}) {
5939
5939
  delete c.tts;
5940
5940
  continue;
5941
5941
  }
5942
- const p = o.get(u);
5943
- c[u] = aS(u, c[u], p, s), lS(u, c[u], p, s);
5942
+ const f = o.get(u);
5943
+ c[u] = aS(u, c[u], f, s), lS(u, c[u], f, s);
5944
5944
  }
5945
5945
  const d = {
5946
5946
  ...i,
@@ -6282,39 +6282,39 @@ var gS = class {
6282
6282
  const d = document.createTreeWalker(e, NodeFilter.SHOW_TEXT);
6283
6283
  let u = d.nextNode();
6284
6284
  for (; u; ) {
6285
- const f = u, m = f.parentElement;
6285
+ const p = u, m = p.parentElement;
6286
6286
  if (m && !Im(m)) {
6287
- const h = f.textContent || "", w = h.match(/\S/), v = w ? w[0] : null;
6287
+ const h = p.textContent || "", w = h.match(/\S/), v = w ? w[0] : null;
6288
6288
  !i && !s && vS(c, v, t) && (r.push(" "), a && n.set(o, a), o++, s = !0);
6289
6289
  for (let g = 0; g < h.length; g++) {
6290
6290
  const C = h[g], E = /\s/.test(C);
6291
6291
  i ? E || (i = !1, r.push(C), n.set(o, {
6292
- node: f,
6292
+ node: p,
6293
6293
  offset: g
6294
6294
  }), a = {
6295
- node: f,
6295
+ node: p,
6296
6296
  offset: g
6297
6297
  }, o++, s = !1, c = C) : E ? (s || (r.push(" "), n.set(o, {
6298
- node: f,
6298
+ node: p,
6299
6299
  offset: g
6300
6300
  }), a = {
6301
- node: f,
6301
+ node: p,
6302
6302
  offset: g
6303
6303
  }, o++), s = !0) : (r.push(C), n.set(o, {
6304
- node: f,
6304
+ node: p,
6305
6305
  offset: g
6306
6306
  }), a = {
6307
- node: f,
6307
+ node: p,
6308
6308
  offset: g
6309
6309
  }, o++, s = !1, c = C);
6310
6310
  }
6311
6311
  }
6312
6312
  u = d.nextNode();
6313
6313
  }
6314
- const p = r.join("").trimEnd();
6315
- for (; n.has(p.length); ) n.delete(p.length);
6314
+ const f = r.join("").trimEnd();
6315
+ for (; n.has(f.length); ) n.delete(f.length);
6316
6316
  return {
6317
- text: p,
6317
+ text: f,
6318
6318
  map: n
6319
6319
  };
6320
6320
  }, yS = (e, t) => zc(e, t).text, bS = "pie-tts-control-handoff", Ft;
@@ -6480,8 +6480,8 @@ var wS = class {
6480
6480
  for (; s; ) {
6481
6481
  const c = s, d = c.parentElement;
6482
6482
  if (d && !this.isElementHidden(d)) {
6483
- const u = this.getBoundaryAnchor(c, e), p = o.get(c);
6484
- u && p !== void 0 && u.anchor !== a && p > 0 && (n.set(p, Math.max(n.get(p) || 0, u.units)), a = u.anchor);
6483
+ const u = this.getBoundaryAnchor(c, e), f = o.get(c);
6484
+ u && f !== void 0 && u.anchor !== a && f > 0 && (n.set(f, Math.max(n.get(f) || 0, u.units)), a = u.anchor);
6485
6485
  }
6486
6486
  s = i.nextNode();
6487
6487
  }
@@ -6496,12 +6496,12 @@ var wS = class {
6496
6496
  const n = Array.from(t.keys()).filter((a) => a > 0 && a < e.length).sort((a, c) => a - c), r = [];
6497
6497
  let o = 0;
6498
6498
  for (const a of n) {
6499
- const c = e.substring(o, a), d = c.match(/^\s*/)?.[0].length || 0, u = c.match(/\s*$/)?.[0].length || 0, p = o + d, f = a - u;
6500
- if (f > p) {
6501
- const m = e.substring(p, f);
6499
+ const c = e.substring(o, a), d = c.match(/^\s*/)?.[0].length || 0, u = c.match(/\s*$/)?.[0].length || 0, f = o + d, p = a - u;
6500
+ if (p > f) {
6501
+ const m = e.substring(f, p);
6502
6502
  r.push({
6503
6503
  text: m,
6504
- startOffset: p,
6504
+ startOffset: f,
6505
6505
  pauseMsAfter: this.resolvePauseMsFromUnits(t.get(a) || 0)
6506
6506
  });
6507
6507
  }
@@ -6540,7 +6540,7 @@ var wS = class {
6540
6540
  }
6541
6541
  let d = s;
6542
6542
  for (const u of [...c, a]) {
6543
- const p = n.substring(d, u), f = p.match(/^\s*/)?.[0].length || 0, m = p.match(/\s*$/)?.[0].length || 0, h = d + f, w = u - m;
6543
+ const f = n.substring(d, u), p = f.match(/^\s*/)?.[0].length || 0, m = f.match(/\s*$/)?.[0].length || 0, h = d + p, w = u - m;
6544
6544
  w > h && o.push({
6545
6545
  text: n.substring(h, w),
6546
6546
  startOffset: h,
@@ -6683,8 +6683,8 @@ var wS = class {
6683
6683
  this.setState(Ft.IDLE), this.clearHighlightsAndTracking();
6684
6684
  return;
6685
6685
  }
6686
- } catch (p) {
6687
- u = p;
6686
+ } catch (f) {
6687
+ u = f;
6688
6688
  }
6689
6689
  if (console.error("TTS error:", u), this.lastError = u instanceof Error ? u.message : String(u), n !== this.speakRunId) return;
6690
6690
  throw this.setState(Ft.ERROR), this.clearHighlightsAndTracking(), u;
@@ -7144,8 +7144,8 @@ function ES(e) {
7144
7144
  reason: "Listed in tools.policy.blocked",
7145
7145
  value: n.policy.blocked
7146
7146
  }), !1) : !0);
7147
- const p = [], f = /* @__PURE__ */ new Map();
7148
- for (const g of u) f.set(g, ["placement"]);
7147
+ const f = [], p = /* @__PURE__ */ new Map();
7148
+ for (const g of u) p.set(g, ["placement"]);
7149
7149
  const m = new Set(u);
7150
7150
  let h = null;
7151
7151
  if (r.enforcement === "on" && r.source && r.assessment) {
@@ -7163,7 +7163,7 @@ function ES(e) {
7163
7163
  value: g.value
7164
7164
  });
7165
7165
  u = u.filter((g) => !h.blockedToolIds.has(g));
7166
- for (const g of Array.from(f.keys())) h.blockedToolIds.has(g) && f.delete(g);
7166
+ for (const g of Array.from(p.keys())) h.blockedToolIds.has(g) && p.delete(g);
7167
7167
  for (const g of h.mandatedToolIds) {
7168
7168
  if (m.has(g)) continue;
7169
7169
  const C = h.perToolFlags.get(g)?.rule ?? "qti-required", E = TS(g, {
@@ -7176,7 +7176,7 @@ function ES(e) {
7176
7176
  hostRule: E.hostRule,
7177
7177
  hostValue: E.hostValue
7178
7178
  };
7179
- p.push({
7179
+ f.push({
7180
7180
  code: "tool-policy.qtiRequiredBlocked",
7181
7181
  level: t.level,
7182
7182
  toolId: g,
@@ -7195,8 +7195,8 @@ function ES(e) {
7195
7195
  for (const g of u) {
7196
7196
  const C = h.perToolFlags.get(g);
7197
7197
  if (C) {
7198
- const E = f.get(g) ?? [];
7199
- E.push(`qti.${C.rule}`), f.set(g, E);
7198
+ const E = p.get(g) ?? [];
7199
+ E.push(`qti.${C.rule}`), p.set(g, E);
7200
7200
  }
7201
7201
  }
7202
7202
  }
@@ -7205,7 +7205,7 @@ function ES(e) {
7205
7205
  request: t,
7206
7206
  candidates: E
7207
7207
  }), R = new Set(T.refinedCandidates);
7208
- for (const F of T.refinedCandidates) E.includes(F) || (p.push({
7208
+ for (const F of T.refinedCandidates) E.includes(F) || (f.push({
7209
7209
  code: "tool-policy.placementMissing",
7210
7210
  level: t.level,
7211
7211
  toolId: F,
@@ -7235,10 +7235,10 @@ function ES(e) {
7235
7235
  value: { customSourceId: C.id }
7236
7236
  });
7237
7237
  for (const F of u) {
7238
- const ie = f.get(F) ?? ["placement"];
7239
- ie.push(`custom.${C.id}`), f.set(F, ie);
7238
+ const ie = p.get(F) ?? ["placement"];
7239
+ ie.push(`custom.${C.id}`), p.set(F, ie);
7240
7240
  }
7241
- for (const F of E) R.has(F) || f.delete(F);
7241
+ for (const F of E) R.has(F) || p.delete(F);
7242
7242
  }
7243
7243
  const w = new Set(u), v = u.map((g) => {
7244
7244
  const C = h?.perToolFlags.get(g);
@@ -7247,12 +7247,12 @@ function ES(e) {
7247
7247
  required: C?.required ?? !1,
7248
7248
  alwaysAvailable: C?.alwaysAvailable ?? !1,
7249
7249
  settings: C?.settings,
7250
- sources: f.get(g) ?? ["placement"]
7250
+ sources: p.get(g) ?? ["placement"]
7251
7251
  };
7252
7252
  });
7253
7253
  return s.reconcileFinalStates(w), {
7254
7254
  visibleTools: v,
7255
- diagnostics: p,
7255
+ diagnostics: f,
7256
7256
  provenance: s.build()
7257
7257
  };
7258
7258
  }
@@ -7617,7 +7617,7 @@ var CS = class {
7617
7617
  };
7618
7618
  }
7619
7619
  constructor(t) {
7620
- if (k(this, "assessmentId", void 0), k(this, "config", void 0), k(this, "ttsService", void 0), k(this, "toolCoordinator", void 0), k(this, "highlightCoordinator", void 0), k(this, "elementToolStateStore", void 0), k(this, "catalogResolver", void 0), k(this, "toolProviderRegistry", void 0), k(this, "hooks", void 0), k(this, "lazyInit", void 0), k(this, "ttsInitialized", !1), k(this, "ttsInitPromise", void 0), k(this, "ttsReconfigurePromise", void 0), k(this, "stateLoaded", !1), k(this, "stateLoadPromise", void 0), k(this, "coordinatorReadyPromise", void 0), k(this, "coordinatorReadyNotified", !1), k(this, "providerInitPromises", /* @__PURE__ */ new Map()), k(this, "toolRegistry", void 0), k(this, "sectionControllers", /* @__PURE__ */ new Map()), k(this, "sectionControllerKeys", /* @__PURE__ */ new Map()), k(this, "sectionControllerInitPromises", /* @__PURE__ */ new Map()), k(this, "sectionPersistenceStrategies", /* @__PURE__ */ new Map()), k(this, "sectionControllerLifecycleListeners", /* @__PURE__ */ new Set()), k(this, "sectionEventListenerIds", /* @__PURE__ */ new WeakMap()), k(this, "sectionEventSubscriptions", /* @__PURE__ */ new Map()), k(this, "telemetryListeners", /* @__PURE__ */ new Set()), k(this, "frameworkErrorBus", void 0), k(this, "ownsFrameworkErrorBus", void 0), k(this, "nextSectionEventListenerId", 1), k(this, "policyEngine", void 0), k(this, "qtiEnforcementOverride", null), k(this, "boundAssessment", null), k(this, "boundCurrentItemRef", null), k(this, "floatingToolsChangeCallback", null), !t.assessmentId) throw new Error("ToolkitCoordinator requires assessmentId in config");
7620
+ if (k(this, "assessmentId", void 0), k(this, "config", void 0), k(this, "ttsService", void 0), k(this, "toolCoordinator", void 0), k(this, "highlightCoordinator", void 0), k(this, "elementToolStateStore", void 0), k(this, "catalogResolver", void 0), k(this, "toolProviderRegistry", void 0), k(this, "hooks", void 0), k(this, "lazyInit", void 0), k(this, "ttsInitialized", !1), k(this, "ttsInitPromise", void 0), k(this, "ttsReconfigurePromise", void 0), k(this, "stateLoaded", !1), k(this, "stateLoadPromise", void 0), k(this, "coordinatorReadyPromise", void 0), k(this, "coordinatorReadyNotified", !1), k(this, "providerInitPromises", /* @__PURE__ */ new Map()), k(this, "toolRegistry", void 0), k(this, "sectionControllers", /* @__PURE__ */ new Map()), k(this, "sectionControllerKeys", /* @__PURE__ */ new Map()), k(this, "sectionControllerInitPromises", /* @__PURE__ */ new Map()), k(this, "sectionPersistenceStrategies", /* @__PURE__ */ new Map()), k(this, "sectionControllerLifecycleListeners", /* @__PURE__ */ new Set()), k(this, "activeSubscriptions", /* @__PURE__ */ new Map()), k(this, "activeCohortMapKey", null), k(this, "telemetryListeners", /* @__PURE__ */ new Set()), k(this, "frameworkErrorBus", void 0), k(this, "ownsFrameworkErrorBus", void 0), k(this, "policyEngine", void 0), k(this, "qtiEnforcementOverride", null), k(this, "boundAssessment", null), k(this, "boundCurrentItemRef", null), k(this, "floatingToolsChangeCallback", null), !t.assessmentId) throw new Error("ToolkitCoordinator requires assessmentId in config");
7621
7621
  const n = Tm.resolveConfig(t);
7622
7622
  this.assessmentId = n.assessmentId, this.config = n, this.toolRegistry = n.toolRegistry ?? ul(), this.hooks = n.hooks ?? {}, this.lazyInit = t.lazyInit === !0, this.frameworkErrorBus = t.frameworkErrorBus ?? new Zu(), this.ownsFrameworkErrorBus = !t.frameworkErrorBus, this.subscribeFrameworkErrorHookAdapters(), this.toolCoordinator = new gS(), this.highlightCoordinator = new pw(), this.elementToolStateStore = new dw(), this.catalogResolver = new uw(n.accessibility?.catalogs || [], n.accessibility?.language || "en-US"), this.toolProviderRegistry = new Aw(), this._registerToolProviders(), this.ttsService = new wS(), this.setupStatePersistenceHooks(), this.policyEngine = new PS({
7623
7623
  toolRegistry: this.toolRegistry,
@@ -7847,41 +7847,56 @@ var CS = class {
7847
7847
  return this.sectionControllers.get(this.getSectionControllerMapKey(n));
7848
7848
  }
7849
7849
  subscribeSectionEvents(t) {
7850
- const n = this.resolveSectionSubscriptionEntry(t);
7851
- if (!n) return () => {
7850
+ if (this.activeCohortMapKey === null) throw new Error("[ToolkitCoordinator] subscribeSectionEvents requires an active section cohort; call getOrCreateSectionController first.");
7851
+ const n = this.activeSubscriptions.get(t.listener);
7852
+ n && (n.unsubscribeCurrent?.(), n.unsubscribeCurrent = null);
7853
+ const r = {
7854
+ listener: t.listener,
7855
+ eventTypes: t.eventTypes,
7856
+ itemIds: t.itemIds,
7857
+ unsubscribeCurrent: null
7858
+ };
7859
+ this.activeSubscriptions.set(t.listener, r);
7860
+ const o = this.sectionControllers.get(this.activeCohortMapKey);
7861
+ o && this.bindSubscriptionToController(r, o);
7862
+ let i = !1;
7863
+ return () => {
7864
+ i || (i = !0, r.unsubscribeCurrent?.(), r.unsubscribeCurrent = null, this.activeSubscriptions.get(t.listener) === r && this.activeSubscriptions.delete(t.listener));
7852
7865
  };
7853
- const { mapKey: r, controller: o } = n, i = o.subscribe;
7854
- if (!i) {
7855
- const f = this.sectionControllerKeys.get(r), m = f?.sectionId || t.sectionId || "<unknown>", h = f?.attemptId || t.attemptId || "<default>";
7856
- throw new Error(`[ToolkitCoordinator] subscribeSectionEvents could not subscribe: resolved controller for section "${m}" attempt "${h}" does not expose subscribe().`);
7857
- }
7858
- const s = `${r}::${this.getOrCreateSectionEventListenerId(t.listener)}`;
7859
- this.sectionEventSubscriptions.get(s)?.();
7860
- const a = this.buildSectionEventPredicate(t), c = i.call(o, (f) => {
7861
- a(f) && t.listener(f);
7862
- }), d = this.buildContentLoadedReplayEvents(o);
7863
- for (const f of d) a(f) && t.listener(f);
7864
- const u = this.buildLoadingCompleteReplayEvent(o);
7865
- u && a(u) && t.listener(u);
7866
- const p = this.createSectionEventDetachHandler(s, c);
7867
- return this.sectionEventSubscriptions.set(s, p), p;
7868
- }
7869
- resolveSectionSubscriptionEntry(t) {
7866
+ }
7867
+ bindSubscriptionToController(t, n) {
7868
+ t.unsubscribeCurrent?.(), t.unsubscribeCurrent = null;
7869
+ const r = n.subscribe;
7870
+ if (typeof r != "function") return;
7871
+ const o = this.buildSectionEventPredicate(t);
7872
+ t.unsubscribeCurrent = r.call(n, (a) => {
7873
+ o(a) && this.deliverSectionEventSafely(t.listener, a);
7874
+ });
7875
+ const i = this.buildContentLoadedReplayEvents(n);
7876
+ for (const a of i) o(a) && this.deliverSectionEventSafely(t.listener, a);
7877
+ const s = this.buildLoadingCompleteReplayEvent(n);
7878
+ s && o(s) && this.deliverSectionEventSafely(t.listener, s);
7879
+ }
7880
+ deliverSectionEventSafely(t, n) {
7870
7881
  try {
7871
- return this.resolveSectionControllerForSubscription({
7872
- sectionId: t.sectionId,
7873
- attemptId: t.attemptId
7874
- });
7875
- } catch (n) {
7876
- const r = n instanceof Error ? n.message : String(n);
7877
- if (t.sectionId !== void 0 && t.attemptId === void 0 && r.includes("subscribeSectionEvents is ambiguous for section"))
7878
- return console.warn(r), null;
7879
- throw n;
7882
+ t(n);
7883
+ } catch (r) {
7884
+ console.warn("[ToolkitCoordinator] section-event listener failed:", r);
7880
7885
  }
7881
7886
  }
7882
- getOrCreateSectionEventListenerId(t) {
7883
- let n = this.sectionEventListenerIds.get(t);
7884
- return n || (n = this.nextSectionEventListenerId++, this.sectionEventListenerIds.set(t, n)), n;
7887
+ setActiveCohort(t) {
7888
+ if (this.activeCohortMapKey === t) return;
7889
+ this.activeCohortMapKey = t;
7890
+ const n = this.sectionControllers.get(t);
7891
+ if (n)
7892
+ for (const r of Array.from(this.activeSubscriptions.values())) this.bindSubscriptionToController(r, n);
7893
+ }
7894
+ clearActiveCohortIfMatches(t) {
7895
+ if (this.activeCohortMapKey === t) {
7896
+ this.activeCohortMapKey = null;
7897
+ for (const n of Array.from(this.activeSubscriptions.values()))
7898
+ n.unsubscribeCurrent?.(), n.unsubscribeCurrent = null;
7899
+ }
7885
7900
  }
7886
7901
  buildSectionEventPredicate(t) {
7887
7902
  const n = t.eventTypes ? new Set(t.eventTypes) : null, r = t.itemIds ? new Set(t.itemIds) : null;
@@ -7928,16 +7943,8 @@ var CS = class {
7928
7943
  timestamp: Date.now()
7929
7944
  };
7930
7945
  }
7931
- createSectionEventDetachHandler(t, n) {
7932
- const r = () => {
7933
- this.sectionEventSubscriptions.get(t) === r && (this.sectionEventSubscriptions.delete(t), n());
7934
- };
7935
- return r;
7936
- }
7937
7946
  subscribeItemEvents(t) {
7938
7947
  return this.subscribeSectionEvents({
7939
- sectionId: t.sectionId,
7940
- attemptId: t.attemptId,
7941
7948
  eventTypes: t.eventTypes || RS,
7942
7949
  itemIds: t.itemIds,
7943
7950
  listener: t.listener
@@ -7945,49 +7952,10 @@ var CS = class {
7945
7952
  }
7946
7953
  subscribeSectionLifecycleEvents(t) {
7947
7954
  return this.subscribeSectionEvents({
7948
- sectionId: t.sectionId,
7949
- attemptId: t.attemptId,
7950
7955
  eventTypes: t.eventTypes || AS,
7951
7956
  listener: t.listener
7952
7957
  });
7953
7958
  }
7954
- resolveSectionControllerForSubscription(t) {
7955
- if (t.sectionId) {
7956
- const r = {
7957
- assessmentId: this.assessmentId,
7958
- sectionId: t.sectionId,
7959
- attemptId: t.attemptId
7960
- }, o = this.getSectionControllerMapKey(r), i = this.sectionControllers.get(o);
7961
- if (i) return {
7962
- mapKey: o,
7963
- controller: i
7964
- };
7965
- if (t.attemptId !== void 0) throw new Error(`[ToolkitCoordinator] subscribeSectionEvents could not resolve controller for section "${t.sectionId}" and attempt "${t.attemptId}".`);
7966
- const s = [];
7967
- for (const [a, c] of this.sectionControllerKeys.entries()) {
7968
- if (c.assessmentId !== this.assessmentId || c.sectionId !== t.sectionId) continue;
7969
- const d = this.sectionControllers.get(a);
7970
- d && s.push({
7971
- mapKey: a,
7972
- controller: d
7973
- });
7974
- }
7975
- if (s.length === 1) return s[0];
7976
- throw s.length === 0 ? new Error(`[ToolkitCoordinator] subscribeSectionEvents found no active controller for section "${t.sectionId}".`) : new Error(`[ToolkitCoordinator] subscribeSectionEvents is ambiguous for section "${t.sectionId}" without attemptId; ${s.length} controllers are active.`);
7977
- }
7978
- if (t.attemptId !== void 0) throw new Error(`[ToolkitCoordinator] subscribeSectionEvents requires sectionId when attemptId is provided ("${t.attemptId}").`);
7979
- const n = [];
7980
- for (const [r, o] of this.sectionControllerKeys.entries()) {
7981
- if (o.assessmentId !== this.assessmentId) continue;
7982
- const i = this.sectionControllers.get(r);
7983
- i && n.push({
7984
- mapKey: r,
7985
- controller: i
7986
- });
7987
- }
7988
- if (n.length === 1) return n[0];
7989
- throw n.length === 0 ? new Error("[ToolkitCoordinator] subscribeSectionEvents found no active controllers; provide sectionId or initialize a section controller first.") : new Error(`[ToolkitCoordinator] subscribeSectionEvents is ambiguous without sectionId; ${n.length} active controllers are registered.`);
7990
- }
7991
7959
  onSectionControllerLifecycle(t) {
7992
7960
  return this.sectionControllerLifecycleListeners.add(t), () => {
7993
7961
  this.sectionControllerLifecycleListeners.delete(t);
@@ -8021,7 +7989,7 @@ var CS = class {
8021
7989
  async resolveExistingSectionController(t) {
8022
7990
  const n = this.sectionControllers.get(t.mapKey);
8023
7991
  if (n)
8024
- return this.sectionControllerKeys.set(t.mapKey, t.key), t.updateExisting !== !1 && await n.updateInput?.(t.input), n;
7992
+ return this.sectionControllerKeys.set(t.mapKey, t.key), t.updateExisting !== !1 && await n.updateInput?.(t.input), this.setActiveCohort(t.mapKey), n;
8025
7993
  }
8026
7994
  createSectionControllerContext(t) {
8027
7995
  return {
@@ -8046,7 +8014,7 @@ var CS = class {
8046
8014
  }), i;
8047
8015
  }
8048
8016
  async finalizeSectionControllerReady(t) {
8049
- this.sectionControllers.set(t.mapKey, t.controller), this.sectionControllerKeys.set(t.mapKey, t.key), this.emitSectionControllerLifecycle({
8017
+ this.sectionControllers.set(t.mapKey, t.controller), this.sectionControllerKeys.set(t.mapKey, t.key), this.setActiveCohort(t.mapKey), this.emitSectionControllerLifecycle({
8050
8018
  type: "ready",
8051
8019
  key: t.key,
8052
8020
  controller: t.controller
@@ -8072,7 +8040,7 @@ var CS = class {
8072
8040
  attemptId: t.attemptId
8073
8041
  }, r = this.getSectionControllerMapKey(n), o = this.sectionControllers.get(r);
8074
8042
  if (!o) return;
8075
- this.detachSectionEventSubscriptionsForMapKey(r);
8043
+ this.clearActiveCohortIfMatches(r);
8076
8044
  const i = this.createSectionControllerContext({
8077
8045
  key: n,
8078
8046
  input: void 0
@@ -8101,11 +8069,6 @@ var CS = class {
8101
8069
  });
8102
8070
  }
8103
8071
  }
8104
- detachSectionEventSubscriptionsForMapKey(t) {
8105
- const n = `${t}::`;
8106
- for (const r of Array.from(this.sectionEventSubscriptions.keys()))
8107
- r.startsWith(n) && this.sectionEventSubscriptions.get(r)?.();
8108
- }
8109
8072
  async runSectionControllerDisposePipeline(t) {
8110
8073
  t.persistBeforeDispose !== !1 && await t.controller.persist?.(), await t.controller.dispose?.(), await this.hooks.onSectionControllerDispose?.(t.context, t.controller), await this.emitTelemetry("pie-toolkit-section-controller-disposed", {
8111
8074
  assessmentId: t.key.assessmentId,
@@ -9219,7 +9182,7 @@ function Rm() {
9219
9182
  if (t.version = "3.4.0", t.removed = [], !e || !e.document || e.document.nodeType !== Ts.document || !e.Element)
9220
9183
  return t.isSupported = !1, t;
9221
9184
  let { document: n } = e;
9222
- const r = n, o = r.currentScript, { DocumentFragment: i, HTMLTemplateElement: s, Node: a, Element: c, NodeFilter: d, NamedNodeMap: u = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: p, DOMParser: f, trustedTypes: m } = e, h = c.prototype, w = Es(h, "cloneNode"), v = Es(h, "remove"), g = Es(h, "nextSibling"), C = Es(h, "childNodes"), E = Es(h, "parentNode");
9185
+ const r = n, o = r.currentScript, { DocumentFragment: i, HTMLTemplateElement: s, Node: a, Element: c, NodeFilter: d, NamedNodeMap: u = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: f, DOMParser: p, trustedTypes: m } = e, h = c.prototype, w = Es(h, "cloneNode"), v = Es(h, "remove"), g = Es(h, "nextSibling"), C = Es(h, "childNodes"), E = Es(h, "parentNode");
9223
9186
  if (typeof s == "function") {
9224
9187
  const S = n.createElement("template");
9225
9188
  S.content && S.content.ownerDocument && (n = S.content.ownerDocument);
@@ -9423,7 +9386,7 @@ function Rm() {
9423
9386
  sn === "application/xhtml+xml" && Ht === wt && (I = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + I + "</body></html>");
9424
9387
  const We = T ? T.createHTML(I) : I;
9425
9388
  if (Ht === wt) try {
9426
- D = new f().parseFromString(We, sn);
9389
+ D = new p().parseFromString(We, sn);
9427
9390
  } catch {
9428
9391
  }
9429
9392
  if (!D || !D.documentElement) {
@@ -9438,7 +9401,7 @@ function Rm() {
9438
9401
  }, Ke = function(I) {
9439
9402
  return F.call(I.ownerDocument || I, I, d.SHOW_ELEMENT | d.SHOW_COMMENT | d.SHOW_TEXT | d.SHOW_PROCESSING_INSTRUCTION | d.SHOW_CDATA_SECTION, null);
9440
9403
  }, Pt = function(I) {
9441
- return I instanceof p && (typeof I.nodeName != "string" || typeof I.textContent != "string" || typeof I.removeChild != "function" || !(I.attributes instanceof u) || typeof I.removeAttribute != "function" || typeof I.setAttribute != "function" || typeof I.namespaceURI != "string" || typeof I.insertBefore != "function" || typeof I.hasChildNodes != "function");
9404
+ return I instanceof f && (typeof I.nodeName != "string" || typeof I.textContent != "string" || typeof I.removeChild != "function" || !(I.attributes instanceof u) || typeof I.removeAttribute != "function" || typeof I.setAttribute != "function" || typeof I.namespaceURI != "string" || typeof I.insertBefore != "function" || typeof I.hasChildNodes != "function");
9442
9405
  }, U = function(I) {
9443
9406
  return typeof a == "function" && I instanceof a;
9444
9407
  };
@@ -9644,20 +9607,20 @@ function iI(e) {
9644
9607
  existingEncodedVersion: d[1]
9645
9608
  } : { baseName: c };
9646
9609
  }, a = (c, d) => {
9647
- const { baseName: u, existingEncodedVersion: p } = s(c), { version: f } = ju(d);
9648
- if (!f) return c;
9649
- const m = i(f);
9650
- return !m || p === m ? c : `${u}${r}${m}`;
9610
+ const { baseName: u, existingEncodedVersion: f } = s(c), { version: p } = ju(d);
9611
+ if (!p) return c;
9612
+ const m = i(p);
9613
+ return !m || f === m ? c : `${u}${r}${m}`;
9651
9614
  };
9652
9615
  return e.forEach((c) => {
9653
9616
  const d = c.config?.elements || {};
9654
- Object.entries(d).forEach(([u, p]) => {
9655
- const f = String(p);
9656
- if (!n[u]) n[u] = f;
9657
- else if (n[u] !== f) throw new Error(`Element version conflict: ${u} requires both ${n[u]} and ${f}. All items in a section must use the same version of each element.`);
9658
- const m = a(u, f);
9659
- if (!t[m]) t[m] = f;
9660
- else if (t[m] !== f) throw new Error(`Element version conflict: ${m} requires both ${t[m]} and ${f}. All items in a section must use the same version of each element.`);
9617
+ Object.entries(d).forEach(([u, f]) => {
9618
+ const p = String(f);
9619
+ if (!n[u]) n[u] = p;
9620
+ else if (n[u] !== p) throw new Error(`Element version conflict: ${u} requires both ${n[u]} and ${p}. All items in a section must use the same version of each element.`);
9621
+ const m = a(u, p);
9622
+ if (!t[m]) t[m] = p;
9623
+ else if (t[m] !== p) throw new Error(`Element version conflict: ${m} requires both ${t[m]} and ${p}. All items in a section must use the same version of each element.`);
9661
9624
  });
9662
9625
  }), t;
9663
9626
  }
@@ -9686,32 +9649,32 @@ function sI(e) {
9686
9649
  const t = e.cdnBaseUrl.replace(/\/+$/, ""), n = e.moduleResolution ?? "url", r = e.view ?? "delivery", o = e.loadControllers ?? !0, i = e.viewConfig ?? Ds[r] ?? Ds.delivery, s = /* @__PURE__ */ new Set();
9687
9650
  let a = If, c;
9688
9651
  const d = {
9689
- replaceImporter(p) {
9690
- a = p;
9652
+ replaceImporter(f) {
9653
+ a = f;
9691
9654
  },
9692
- observeImportMapInjection(p) {
9693
- c = p;
9655
+ observeImportMapInjection(f) {
9656
+ c = f;
9694
9657
  },
9695
9658
  restore() {
9696
9659
  a = If, c = void 0, s.clear();
9697
9660
  }
9698
9661
  };
9699
- async function u(p, f) {
9700
- if (!p || Object.keys(p).length === 0) return;
9662
+ async function u(f, p) {
9663
+ if (!f || Object.keys(f).length === 0) return;
9701
9664
  if (n === "import-map") {
9702
9665
  dI();
9703
9666
  const w = {};
9704
- for (const [v, g] of Object.entries(p)) {
9667
+ for (const [v, g] of Object.entries(f)) {
9705
9668
  const C = Vc(g);
9706
9669
  s.has(C) || (w[v] = g, s.add(C));
9707
9670
  }
9708
9671
  if (Object.keys(w).length > 0) {
9709
9672
  const v = cI(w, i, t, o);
9710
- uI(v, f.doc), c?.(v, f.doc);
9673
+ uI(v, p.doc), c?.(v, p.doc);
9711
9674
  }
9712
9675
  }
9713
9676
  const m = /* @__PURE__ */ new Map(), h = nm();
9714
- if (await Promise.all(Object.entries(p).map(async ([w, v]) => {
9677
+ if (await Promise.all(Object.entries(f).map(async ([w, v]) => {
9715
9678
  const g = Vc(v);
9716
9679
  let C;
9717
9680
  try {
@@ -9863,37 +9826,37 @@ function fI(e) {
9863
9826
  const t = e.bundleType ?? Oo.clientPlayer, n = e.needsControllers ?? !0;
9864
9827
  let r = Tf;
9865
9828
  const o = /* @__PURE__ */ new Map(), i = {
9866
- replaceLoadBundleScript(f) {
9867
- r = f, o.clear();
9829
+ replaceLoadBundleScript(p) {
9830
+ r = p, o.clear();
9868
9831
  },
9869
9832
  restore() {
9870
9833
  r = Tf, o.clear();
9871
9834
  }
9872
9835
  };
9873
- async function s(f, m) {
9874
- const h = o.get(f);
9836
+ async function s(p, m) {
9837
+ const h = o.get(p);
9875
9838
  if (h) return h;
9876
- const w = a(f, m).finally(() => {
9877
- o.delete(f);
9839
+ const w = a(p, m).finally(() => {
9840
+ o.delete(p);
9878
9841
  });
9879
- return o.set(f, w), w;
9842
+ return o.set(p, w), w;
9880
9843
  }
9881
- async function a(f, m) {
9844
+ async function a(p, m) {
9882
9845
  const { retryDelayMs: h, timeoutMs: w } = gI(e.bundleRetry), v = Date.now();
9883
9846
  let g = 0;
9884
9847
  for (; ; ) {
9885
9848
  g += 1;
9886
9849
  try {
9887
- await r(f, m);
9850
+ await r(p, m);
9888
9851
  const C = Date.now() - v;
9889
9852
  g > 1 && (e.onBundleRetryStatus?.({
9890
9853
  state: "completed",
9891
- url: f,
9854
+ url: p,
9892
9855
  attempt: g,
9893
9856
  elapsedMs: C,
9894
9857
  timeoutMs: w
9895
9858
  }), d("pie-iife-bundle-retry-success", {
9896
- url: f,
9859
+ url: p,
9897
9860
  attempt: g,
9898
9861
  elapsedMs: C,
9899
9862
  timeoutMs: w
@@ -9902,22 +9865,22 @@ function fI(e) {
9902
9865
  } catch (C) {
9903
9866
  const E = Date.now() - v, T = w - E, R = C instanceof Error ? C.message : String(C);
9904
9867
  if (T <= 0) {
9905
- const F = /* @__PURE__ */ new Error(`IIFE bundle load timed out after ${w}ms: ${f}`);
9868
+ const F = /* @__PURE__ */ new Error(`IIFE bundle load timed out after ${w}ms: ${p}`);
9906
9869
  throw e.onBundleRetryStatus?.({
9907
9870
  state: "timeout",
9908
- url: f,
9871
+ url: p,
9909
9872
  attempt: g,
9910
9873
  elapsedMs: E,
9911
9874
  timeoutMs: w,
9912
9875
  reason: R
9913
9876
  }), d("pie-iife-bundle-retry-timeout", {
9914
- url: f,
9877
+ url: p,
9915
9878
  attempt: g,
9916
9879
  elapsedMs: E,
9917
9880
  timeoutMs: w,
9918
9881
  lastError: R
9919
9882
  }), u(F, {
9920
- url: f,
9883
+ url: p,
9921
9884
  attempt: g,
9922
9885
  elapsedMs: E,
9923
9886
  timeoutMs: w,
@@ -9927,14 +9890,14 @@ function fI(e) {
9927
9890
  const z = Math.min(h, T);
9928
9891
  e.onBundleRetryStatus?.({
9929
9892
  state: "retrying",
9930
- url: f,
9893
+ url: p,
9931
9894
  attempt: g,
9932
9895
  elapsedMs: E,
9933
9896
  timeoutMs: w,
9934
9897
  retryDelayMs: z,
9935
9898
  reason: R
9936
9899
  }), d("pie-iife-bundle-retry", {
9937
- url: f,
9900
+ url: p,
9938
9901
  attempt: g,
9939
9902
  elapsedMs: E,
9940
9903
  retryDelayMs: z,
@@ -9946,23 +9909,23 @@ function fI(e) {
9946
9909
  }
9947
9910
  function c() {
9948
9911
  if (!e.trackPageActions) return;
9949
- const f = e.instrumentationProvider;
9950
- if (Ml(f) && f.isReady())
9951
- return f;
9912
+ const p = e.instrumentationProvider;
9913
+ if (Ml(p) && p.isReady())
9914
+ return p;
9952
9915
  }
9953
- function d(f, m) {
9916
+ function d(p, m) {
9954
9917
  const h = c();
9955
9918
  if (h)
9956
9919
  try {
9957
- h.trackEvent(f, m);
9920
+ h.trackEvent(p, m);
9958
9921
  } catch {
9959
9922
  }
9960
9923
  }
9961
- function u(f, m) {
9924
+ function u(p, m) {
9962
9925
  const h = c();
9963
9926
  if (h)
9964
9927
  try {
9965
- h.trackError(f, {
9928
+ h.trackError(p, {
9966
9929
  ...m,
9967
9930
  component: "iife-adapter",
9968
9931
  errorType: "IifeBundleRetryError"
@@ -9970,14 +9933,14 @@ function fI(e) {
9970
9933
  } catch {
9971
9934
  }
9972
9935
  }
9973
- async function p(f, m) {
9974
- if (!f || Object.keys(f).length === 0) return;
9975
- const h = hI(f, t, e);
9936
+ async function f(p, m) {
9937
+ if (!p || Object.keys(p).length === 0) return;
9938
+ const h = hI(p, t, e);
9976
9939
  try {
9977
9940
  await s(h, m.doc);
9978
9941
  } catch (E) {
9979
9942
  const T = E instanceof Error ? E.message : String(E), R = /* @__PURE__ */ new Map();
9980
- for (const z of Object.keys(f)) R.set(z, {
9943
+ for (const z of Object.keys(p)) R.set(z, {
9981
9944
  kind: "bundle-load-failed",
9982
9945
  tag: z,
9983
9946
  url: h,
@@ -9988,7 +9951,7 @@ function fI(e) {
9988
9951
  const w = pI();
9989
9952
  if (!w) {
9990
9953
  const E = /* @__PURE__ */ new Map();
9991
- for (const T of Object.keys(f)) E.set(T, {
9954
+ for (const T of Object.keys(p)) E.set(T, {
9992
9955
  kind: "bundle-load-failed",
9993
9956
  tag: T,
9994
9957
  url: h,
@@ -9997,7 +9960,7 @@ function fI(e) {
9997
9960
  throw new zi(E);
9998
9961
  }
9999
9962
  const v = /* @__PURE__ */ new Map(), g = t === Oo.editor, C = nm();
10000
- for (const [E, T] of Object.entries(f)) {
9963
+ for (const [E, T] of Object.entries(p)) {
10001
9964
  const R = Ib(T), z = w[R];
10002
9965
  if (!z) {
10003
9966
  v.set(E, {
@@ -10060,7 +10023,7 @@ function fI(e) {
10060
10023
  if (v.size > 0) throw new zi(v);
10061
10024
  }
10062
10025
  return {
10063
- load: p,
10026
+ load: f,
10064
10027
  get __seams() {
10065
10028
  return i;
10066
10029
  }
@@ -10174,8 +10137,8 @@ async function _I(e, t, n, r, o, i) {
10174
10137
  for (const u of a) {
10175
10138
  if (u.ok) continue;
10176
10139
  c.add(u.tag);
10177
- const p = zI(s, u.tag);
10178
- d.set(u.tag, p ?? {
10140
+ const f = zI(s, u.tag);
10141
+ d.set(u.tag, f ?? {
10179
10142
  kind: "timeout",
10180
10143
  tag: u.tag,
10181
10144
  timeoutMs: o
@@ -10341,8 +10304,8 @@ function WI(e, t) {
10341
10304
  ln(t, !0), vn(e, UI);
10342
10305
  const n = "pie-content-loaded", r = "pie-item-player-error";
10343
10306
  let o = b(t, "itemId", 7, ""), i = b(t, "canonicalItemId", 7, ""), s = b(t, "contentKind", 7, "assessment-item"), a = b(t, "regionPolicy", 7, "default"), c = b(t, "scopeElement", 7, null), d = b(t, "item", 7, null), u = /* @__PURE__ */ Se(null);
10344
- const p = Date.now();
10345
- let f = null, m = null, h = null, w = null;
10307
+ const f = Date.now();
10308
+ let p = null, m = null, h = null, w = null;
10346
10309
  function v() {
10347
10310
  if (!l(u)) return null;
10348
10311
  const re = l(u).getRootNode();
@@ -10359,7 +10322,7 @@ function WI(e, t) {
10359
10322
  regionPolicy: a(),
10360
10323
  scopeElement: l(C),
10361
10324
  item: d(),
10362
- contextVersion: p
10325
+ contextVersion: f
10363
10326
  };
10364
10327
  });
10365
10328
  function R(re) {
@@ -10451,14 +10414,14 @@ function WI(e, t) {
10451
10414
  l(g) && (l(g).setAttribute("data-item-id", o()), l(g).setAttribute("data-canonical-item-id", i() || o()), l(g).setAttribute("data-pie-shell-root", "item"), l(g).setAttribute("data-region-policy", a()));
10452
10415
  }), Re(() => {
10453
10416
  if (!(!l(g) || !l(T)))
10454
- return f = new Bo(l(g), {
10417
+ return p = new Bo(l(g), {
10455
10418
  context: im,
10456
10419
  initialValue: l(T)
10457
- }), f.connect(), m = new gi(l(g)), m.attach(), () => {
10458
- m?.detach(), m = null, f?.disconnect(), f = null;
10420
+ }), p.connect(), m = new gi(l(g)), m.attach(), () => {
10421
+ m?.detach(), m = null, p?.disconnect(), p = null;
10459
10422
  };
10460
10423
  }), Re(() => {
10461
- l(T) && f?.setValue(l(T));
10424
+ l(T) && p?.setValue(l(T));
10462
10425
  }), Re(() => {
10463
10426
  if (!(!l(g) || !l(E)))
10464
10427
  return h = new Bo(l(g), {
@@ -10597,7 +10560,7 @@ var KI = /* @__PURE__ */ Tt('<div class="pie-section-player-item-card-anchor sve
10597
10560
  function YI(e, t) {
10598
10561
  ln(t, !0), vn(e, GI);
10599
10562
  let n = b(t, "item", 7), r = b(t, "itemIndex", 7, 0), o = b(t, "itemCount", 7, 1), i = b(t, "isCurrent", 7, !1), s = b(t, "canonicalItemId", 7), a = b(t, "resolvedPlayerTag", 7, "div"), c = b(t, "playerAction", 7, (Y, Me) => {
10600
- }), d = b(t, "playerParams", 7), u = b(t, "itemToolbarTools", 7), p = b(t, "toolRegistry", 7, null), f = b(t, "hostButtons", 23, () => []), m = /* @__PURE__ */ Se(null), h = /* @__PURE__ */ Se(null), w = /* @__PURE__ */ Se(null), v = /* @__PURE__ */ Se(null), g = /* @__PURE__ */ Se(!1);
10563
+ }), d = b(t, "playerParams", 7), u = b(t, "itemToolbarTools", 7), f = b(t, "toolRegistry", 7, null), p = b(t, "hostButtons", 23, () => []), m = /* @__PURE__ */ Se(null), h = /* @__PURE__ */ Se(null), w = /* @__PURE__ */ Se(null), v = /* @__PURE__ */ Se(null), g = /* @__PURE__ */ Se(!1);
10601
10564
  const C = qt(() => `pie-section-player-item-card-heading-${n()?.id ?? s() ?? Math.random().toString(36).slice(2, 10)}`), E = /* @__PURE__ */ V(() => (l(g) ? l(h) : null) || a()), T = /* @__PURE__ */ V(() => (l(g) ? l(w) : null) || c()), R = /* @__PURE__ */ V(() => Number.isFinite(r()) ? Math.max(0, Number(r())) + 1 : 1), z = /* @__PURE__ */ V(() => Number.isFinite(o()) ? Math.max(1, Number(o())) : 1), F = /* @__PURE__ */ V(() => l(z) > 1 ? `Question ${l(R)}` : "Question"), ie = /* @__PURE__ */ V(() => (l(g) ? l(v) : null) || null), le = /* @__PURE__ */ V(() => {
10602
10565
  if (!l(ie)) return l(F);
10603
10566
  try {
@@ -10686,16 +10649,16 @@ function YI(e, t) {
10686
10649
  u(Y), y();
10687
10650
  },
10688
10651
  get toolRegistry() {
10689
- return p();
10652
+ return f();
10690
10653
  },
10691
10654
  set toolRegistry(Y = null) {
10692
- p(Y), y();
10655
+ f(Y), y();
10693
10656
  },
10694
10657
  get hostButtons() {
10695
- return f();
10658
+ return p();
10696
10659
  },
10697
10660
  set hostButtons(Y = []) {
10698
- f(Y), y();
10661
+ p(Y), y();
10699
10662
  }
10700
10663
  }, ce = KI(), re = nn(ce);
10701
10664
  rn(re, (Y) => ne(m, Y), () => l(m));
@@ -10704,7 +10667,7 @@ function YI(e, t) {
10704
10667
  var Z = pt(te), Ie = pt(Z), W = pt(Ie), Ne = pt(W, !0);
10705
10668
  ft(W);
10706
10669
  var se = Bt(W, 2);
10707
- A(() => x(se, "item-id", n().id)), A(() => x(se, "catalog-id", n().id)), A(() => x(se, "tools", u())), x(se, "content-kind", "assessment-item"), x(se, "size", "md"), x(se, "language", "en-US"), A(() => x(se, "toolRegistry", p())), A(() => x(se, "hostButtons", f())), Vn(se, 1, "svelte-7chqkg"), ft(Ie);
10670
+ A(() => x(se, "item-id", n().id)), A(() => x(se, "catalog-id", n().id)), A(() => x(se, "tools", u())), x(se, "content-kind", "assessment-item"), x(se, "size", "md"), x(se, "language", "en-US"), A(() => x(se, "toolRegistry", f())), A(() => x(se, "hostButtons", p())), Vn(se, 1, "svelte-7chqkg"), ft(Ie);
10708
10671
  var ae = Bt(Ie, 2), Be = pt(ae);
10709
10672
  return Hh(Be, () => l(E), !1, (Y, Me) => {
10710
10673
  zh(Y, (X, ke) => l(T)?.(X, ke), d);
@@ -10755,8 +10718,8 @@ function ZI(e, t) {
10755
10718
  ln(t, !0), vn(e, JI);
10756
10719
  const n = "pie-content-loaded", r = "pie-item-player-error";
10757
10720
  let o = b(t, "itemId", 7, ""), i = b(t, "canonicalItemId", 7, ""), s = b(t, "contentKind", 7, "rubric-block-stimulus"), a = b(t, "regionPolicy", 7, "default"), c = b(t, "scopeElement", 7, null), d = b(t, "item", 7, null), u = /* @__PURE__ */ Se(null);
10758
- const p = Date.now();
10759
- let f = null, m = null, h = null, w = null;
10721
+ const f = Date.now();
10722
+ let p = null, m = null, h = null, w = null;
10760
10723
  function v() {
10761
10724
  if (!l(u)) return null;
10762
10725
  const ee = l(u).getRootNode();
@@ -10773,7 +10736,7 @@ function ZI(e, t) {
10773
10736
  regionPolicy: a(),
10774
10737
  scopeElement: l(C),
10775
10738
  item: d(),
10776
- contextVersion: p
10739
+ contextVersion: f
10777
10740
  };
10778
10741
  });
10779
10742
  function R(ee) {
@@ -10823,14 +10786,14 @@ function ZI(e, t) {
10823
10786
  l(g) && (l(g).setAttribute("data-item-id", o()), l(g).setAttribute("data-canonical-item-id", i() || o()), l(g).setAttribute("data-pie-shell-root", "passage"), l(g).setAttribute("data-region-policy", a()));
10824
10787
  }), Re(() => {
10825
10788
  if (!(!l(g) || !l(T)))
10826
- return f = new Bo(l(g), {
10789
+ return p = new Bo(l(g), {
10827
10790
  context: im,
10828
10791
  initialValue: l(T)
10829
- }), f.connect(), m = new gi(l(g)), m.attach(), () => {
10830
- m?.detach(), m = null, f?.disconnect(), f = null;
10792
+ }), p.connect(), m = new gi(l(g)), m.attach(), () => {
10793
+ m?.detach(), m = null, p?.disconnect(), p = null;
10831
10794
  };
10832
10795
  }), Re(() => {
10833
- l(T) && f?.setValue(l(T));
10796
+ l(T) && p?.setValue(l(T));
10834
10797
  }), Re(() => {
10835
10798
  if (!(!l(g) || !l(E)))
10836
10799
  return h = new Bo(l(g), {
@@ -10918,8 +10881,8 @@ var QI = /* @__PURE__ */ Tt('<div class="pie-section-player-passage-card-anchor
10918
10881
  function tE(e, t) {
10919
10882
  ln(t, !0), vn(e, eE);
10920
10883
  let n = b(t, "passage", 7), r = b(t, "resolvedPlayerTag", 7, "div"), o = b(t, "playerAction", 7, (Z, Ie) => {
10921
- }), i = b(t, "playerParams", 7), s = b(t, "passageToolbarTools", 7), a = b(t, "toolRegistry", 7, null), c = b(t, "hostButtons", 23, () => []), d = /* @__PURE__ */ Se(null), u = /* @__PURE__ */ Se(null), p = /* @__PURE__ */ Se(null), f = /* @__PURE__ */ Se(null), m = /* @__PURE__ */ Se(!1);
10922
- const h = qt(() => `pie-section-player-passage-card-heading-${n()?.id ?? Math.random().toString(36).slice(2, 10)}`), w = /* @__PURE__ */ V(() => (l(m) ? l(u) : null) || r()), v = /* @__PURE__ */ V(() => (l(m) ? l(p) : null) || o()), g = /* @__PURE__ */ V(() => (l(m) ? l(f) : null) || null), C = /* @__PURE__ */ V(() => {
10884
+ }), i = b(t, "playerParams", 7), s = b(t, "passageToolbarTools", 7), a = b(t, "toolRegistry", 7, null), c = b(t, "hostButtons", 23, () => []), d = /* @__PURE__ */ Se(null), u = /* @__PURE__ */ Se(null), f = /* @__PURE__ */ Se(null), p = /* @__PURE__ */ Se(null), m = /* @__PURE__ */ Se(!1);
10885
+ const h = qt(() => `pie-section-player-passage-card-heading-${n()?.id ?? Math.random().toString(36).slice(2, 10)}`), w = /* @__PURE__ */ V(() => (l(m) ? l(u) : null) || r()), v = /* @__PURE__ */ V(() => (l(m) ? l(f) : null) || o()), g = /* @__PURE__ */ V(() => (l(m) ? l(p) : null) || null), C = /* @__PURE__ */ V(() => {
10923
10886
  const Z = "Passage";
10924
10887
  if (!l(g)) return Z;
10925
10888
  try {
@@ -10934,10 +10897,10 @@ function tE(e, t) {
10934
10897
  }
10935
10898
  });
10936
10899
  function E() {
10937
- ne(m, !1), ne(u, null), ne(p, null), ne(f, null);
10900
+ ne(m, !1), ne(u, null), ne(f, null), ne(p, null);
10938
10901
  }
10939
10902
  function T(Z) {
10940
- !Z || typeof Z != "object" || (typeof Z.resolvedPlayerTag == "string" && Z.resolvedPlayerTag.trim() && ne(u, Z.resolvedPlayerTag, !0), typeof Z.playerAction == "function" && ne(p, Z.playerAction, !0), typeof Z.cardTitleFormatter == "function" && ne(f, Z.cardTitleFormatter, !0));
10903
+ !Z || typeof Z != "object" || (typeof Z.resolvedPlayerTag == "string" && Z.resolvedPlayerTag.trim() && ne(u, Z.resolvedPlayerTag, !0), typeof Z.playerAction == "function" && ne(f, Z.playerAction, !0), typeof Z.cardTitleFormatter == "function" && ne(p, Z.cardTitleFormatter, !0));
10941
10904
  }
10942
10905
  zu(() => {
10943
10906
  const Z = dl(l(d));
@@ -11509,10 +11472,10 @@ function Zc(e) {
11509
11472
  function jE() {
11510
11473
  for (const d of Yr) {
11511
11474
  var e = d.id < this.id, t = [];
11512
- for (const [u, [p, f]] of this.current) {
11475
+ for (const [u, [f, p]] of this.current) {
11513
11476
  if (d.current.has(u)) {
11514
11477
  var n = d.current.get(u)[0];
11515
- if (e && p !== n) d.current.set(u, [p, f]);
11478
+ if (e && f !== n) d.current.set(u, [f, p]);
11516
11479
  else continue;
11517
11480
  }
11518
11481
  t.push(u);
@@ -11520,8 +11483,8 @@ function jE() {
11520
11483
  var r = [...d.current.keys()].filter((u) => !this.current.has(u));
11521
11484
  if (r.length === 0) e && d.discard();
11522
11485
  else if (t.length > 0) {
11523
- if (e) for (const u of L(qa, this)) d.unskip_effect(u, (p) => {
11524
- (p.f & 4194320) !== 0 ? d.schedule(p) : At(Bn, d, Zc).call(d, [p]);
11486
+ if (e) for (const u of L(qa, this)) d.unskip_effect(u, (f) => {
11487
+ (f.f & 4194320) !== 0 ? d.schedule(f) : At(Bn, d, Zc).call(d, [f]);
11525
11488
  });
11526
11489
  d.activate();
11527
11490
  var o = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map();
@@ -11776,16 +11739,16 @@ function Bf(e) {
11776
11739
  }
11777
11740
  function JE(e, t, n, r) {
11778
11741
  const o = ps() ? $l : og;
11779
- var i = e.filter((f) => !f.settled);
11742
+ var i = e.filter((p) => !p.settled);
11780
11743
  if (n.length === 0 && i.length === 0) {
11781
11744
  r(t.map(o));
11782
11745
  return;
11783
11746
  }
11784
- var s = lt, a = ZE(), c = i.length === 1 ? i[0].promise : i.length > 1 ? Promise.all(i.map((f) => f.promise)) : null;
11785
- function d(f) {
11747
+ var s = lt, a = ZE(), c = i.length === 1 ? i[0].promise : i.length > 1 ? Promise.all(i.map((p) => p.promise)) : null;
11748
+ function d(p) {
11786
11749
  a();
11787
11750
  try {
11788
- r(f);
11751
+ r(p);
11789
11752
  } catch (m) {
11790
11753
  !(s.f & 16384) && Mo(m, s);
11791
11754
  }
@@ -11796,12 +11759,12 @@ function JE(e, t, n, r) {
11796
11759
  return;
11797
11760
  }
11798
11761
  var u = rg();
11799
- function p() {
11800
- Promise.all(n.map((f) => /* @__PURE__ */ QE(f))).then((f) => d([...t.map(o), ...f])).catch((f) => Mo(f, s)).finally(() => u());
11762
+ function f() {
11763
+ Promise.all(n.map((p) => /* @__PURE__ */ QE(p))).then((p) => d([...t.map(o), ...p])).catch((p) => Mo(p, s)).finally(() => u());
11801
11764
  }
11802
11765
  c ? c.then(() => {
11803
- a(), p(), vl();
11804
- }) : p();
11766
+ a(), f(), vl();
11767
+ }) : f();
11805
11768
  }
11806
11769
  function ZE() {
11807
11770
  var e = lt, t = Et, n = Jt, r = vt;
@@ -11851,7 +11814,7 @@ function QE(e, t, n) {
11851
11814
  }
11852
11815
  var u = vt;
11853
11816
  if (s) {
11854
- if ((c.f & 32768) !== 0) var p = rg();
11817
+ if ((c.f & 32768) !== 0) var f = rg();
11855
11818
  if (r.b.is_rendered()) a.get(u)?.reject(fo), a.delete(u);
11856
11819
  else {
11857
11820
  for (const m of a.values()) m.reject(fo);
@@ -11859,8 +11822,8 @@ function QE(e, t, n) {
11859
11822
  }
11860
11823
  a.set(u, d);
11861
11824
  }
11862
- const f = (m, h = void 0) => {
11863
- if (p && p(h === fo), !(h === fo || (c.f & 16384) !== 0)) {
11825
+ const p = (m, h = void 0) => {
11826
+ if (f && f(h === fo), !(h === fo || (c.f & 16384) !== 0)) {
11864
11827
  if (u.activate(), h) i.f |= hl, yl(i, h);
11865
11828
  else {
11866
11829
  i.f & 8388608 && (i.f ^= hl), yl(i, m);
@@ -11872,15 +11835,15 @@ function QE(e, t, n) {
11872
11835
  u.deactivate();
11873
11836
  }
11874
11837
  };
11875
- d.promise.then(f, (m) => f(null, m || "unknown"));
11838
+ d.promise.then(p, (m) => p(null, m || "unknown"));
11876
11839
  }), lT(() => {
11877
11840
  for (const c of a.values()) c.reject(fo);
11878
11841
  }), new Promise((c) => {
11879
11842
  function d(u) {
11880
- function p() {
11843
+ function f() {
11881
11844
  u === o ? c(i) : d(o);
11882
11845
  }
11883
- u.then(p, p);
11846
+ u.then(f, f);
11884
11847
  }
11885
11848
  d(o);
11886
11849
  });
@@ -11985,8 +11948,8 @@ function lg(e, t, n) {
11985
11948
  var u = a;
11986
11949
  _n?.delete(u), !(c & 65536) && (c & 512 && (a.f |= ua), lg(u, Ti, n));
11987
11950
  } else if (d) {
11988
- var p = a;
11989
- c & 16 && Wr !== null && Wr.add(p), n !== null ? n.push(p) : ad(p);
11951
+ var f = a;
11952
+ c & 16 && Wr !== null && Wr.add(f), n !== null ? n.push(f) : ad(f);
11990
11953
  }
11991
11954
  }
11992
11955
  }
@@ -11999,33 +11962,33 @@ function Zo(e) {
11999
11962
  if (hi === s) return c();
12000
11963
  var d = Et, u = hi;
12001
11964
  hr(null), zf(s);
12002
- var p = c();
12003
- return hr(d), zf(u), p;
11965
+ var f = c();
11966
+ return hr(d), zf(u), f;
12004
11967
  };
12005
11968
  return r && n.set("length", /* @__PURE__ */ ht(e.length, i)), new Proxy(e, {
12006
11969
  defineProperty(c, d, u) {
12007
11970
  (!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) && kE();
12008
- var p = n.get(d);
12009
- return p === void 0 ? a(() => {
12010
- var f = /* @__PURE__ */ ht(u.value, i);
12011
- return n.set(d, f), f;
12012
- }) : be(p, u.value, !0), !0;
11971
+ var f = n.get(d);
11972
+ return f === void 0 ? a(() => {
11973
+ var p = /* @__PURE__ */ ht(u.value, i);
11974
+ return n.set(d, p), p;
11975
+ }) : be(f, u.value, !0), !0;
12013
11976
  },
12014
11977
  deleteProperty(c, d) {
12015
11978
  var u = n.get(d);
12016
11979
  if (u === void 0) {
12017
11980
  if (d in c) {
12018
- const p = a(() => /* @__PURE__ */ ht(fn, i));
12019
- n.set(d, p), qs(o);
11981
+ const f = a(() => /* @__PURE__ */ ht(fn, i));
11982
+ n.set(d, f), qs(o);
12020
11983
  }
12021
11984
  } else be(u, fn), qs(o);
12022
11985
  return !0;
12023
11986
  },
12024
11987
  get(c, d, u) {
12025
11988
  if (d === Us) return e;
12026
- var p = n.get(d), f = d in c;
12027
- if (p === void 0 && (!f || ci(c, d)?.writable) && (p = a(() => /* @__PURE__ */ ht(Zo(f ? c[d] : fn), i)), n.set(d, p)), p !== void 0) {
12028
- var m = B(p);
11989
+ var f = n.get(d), p = d in c;
11990
+ if (f === void 0 && (!p || ci(c, d)?.writable) && (f = a(() => /* @__PURE__ */ ht(Zo(p ? c[d] : fn), i)), n.set(d, f)), f !== void 0) {
11991
+ var m = B(f);
12029
11992
  return m === fn ? void 0 : m;
12030
11993
  }
12031
11994
  return Reflect.get(c, d, u);
@@ -12033,11 +11996,11 @@ function Zo(e) {
12033
11996
  getOwnPropertyDescriptor(c, d) {
12034
11997
  var u = Reflect.getOwnPropertyDescriptor(c, d);
12035
11998
  if (u && "value" in u) {
12036
- var p = n.get(d);
12037
- p && (u.value = B(p));
11999
+ var f = n.get(d);
12000
+ f && (u.value = B(f));
12038
12001
  } else if (u === void 0) {
12039
- var f = n.get(d), m = f?.v;
12040
- if (f !== void 0 && m !== fn) return {
12002
+ var p = n.get(d), m = p?.v;
12003
+ if (p !== void 0 && m !== fn) return {
12041
12004
  enumerable: !0,
12042
12005
  configurable: !0,
12043
12006
  value: m,
@@ -12048,23 +12011,23 @@ function Zo(e) {
12048
12011
  },
12049
12012
  has(c, d) {
12050
12013
  if (d === Us) return !0;
12051
- var u = n.get(d), p = u !== void 0 && u.v !== fn || Reflect.has(c, d);
12052
- return (u !== void 0 || lt !== null && (!p || ci(c, d)?.writable)) && (u === void 0 && (u = a(() => /* @__PURE__ */ ht(p ? Zo(c[d]) : fn, i)), n.set(d, u)), B(u) === fn) ? !1 : p;
12014
+ var u = n.get(d), f = u !== void 0 && u.v !== fn || Reflect.has(c, d);
12015
+ return (u !== void 0 || lt !== null && (!f || ci(c, d)?.writable)) && (u === void 0 && (u = a(() => /* @__PURE__ */ ht(f ? Zo(c[d]) : fn, i)), n.set(d, u)), B(u) === fn) ? !1 : f;
12053
12016
  },
12054
- set(c, d, u, p) {
12055
- var f = n.get(d), m = d in c;
12056
- if (r && d === "length") for (var h = u; h < f.v; h += 1) {
12017
+ set(c, d, u, f) {
12018
+ var p = n.get(d), m = d in c;
12019
+ if (r && d === "length") for (var h = u; h < p.v; h += 1) {
12057
12020
  var w = n.get(h + "");
12058
12021
  w !== void 0 ? be(w, fn) : h in c && (w = a(() => /* @__PURE__ */ ht(fn, i)), n.set(h + "", w));
12059
12022
  }
12060
- if (f === void 0) (!m || ci(c, d)?.writable) && (f = a(() => /* @__PURE__ */ ht(void 0, i)), be(f, Zo(u)), n.set(d, f));
12023
+ if (p === void 0) (!m || ci(c, d)?.writable) && (p = a(() => /* @__PURE__ */ ht(void 0, i)), be(p, Zo(u)), n.set(d, p));
12061
12024
  else {
12062
- m = f.v !== fn;
12025
+ m = p.v !== fn;
12063
12026
  var v = a(() => Zo(u));
12064
- be(f, v);
12027
+ be(p, v);
12065
12028
  }
12066
12029
  var g = Reflect.getOwnPropertyDescriptor(c, d);
12067
- if (g?.set && g.set.call(p, u), !m) {
12030
+ if (g?.set && g.set.call(f, u), !m) {
12068
12031
  if (r && typeof d == "string") {
12069
12032
  var C = n.get("length"), E = Number(d);
12070
12033
  Number.isInteger(E) && E >= C.v && be(C, E + 1);
@@ -12075,11 +12038,11 @@ function Zo(e) {
12075
12038
  },
12076
12039
  ownKeys(c) {
12077
12040
  B(o);
12078
- var d = Reflect.ownKeys(c).filter((f) => {
12079
- var m = n.get(f);
12041
+ var d = Reflect.ownKeys(c).filter((p) => {
12042
+ var m = n.get(p);
12080
12043
  return m === void 0 || m.v !== fn;
12081
12044
  });
12082
- for (var [u, p] of n) p.v !== fn && !(u in c) && d.push(u);
12045
+ for (var [u, f] of n) f.v !== fn && !(u in c) && d.push(u);
12083
12046
  return d;
12084
12047
  },
12085
12048
  setPrototypeOf() {
@@ -12411,25 +12374,25 @@ function _g(e) {
12411
12374
  }), e.ac = null);
12412
12375
  try {
12413
12376
  e.f |= Lf;
12414
- var u = e.fn, p = u();
12377
+ var u = e.fn, f = u();
12415
12378
  e.f |= nd;
12416
- var f = e.deps, m = vt?.is_fork;
12379
+ var p = e.deps, m = vt?.is_fork;
12417
12380
  if ($n !== null) {
12418
12381
  var h;
12419
- if (m || Js(e, qn), f !== null && qn > 0) for (f.length = qn + $n.length, h = 0; h < $n.length; h++) f[qn + h] = $n[h];
12420
- else e.deps = f = $n;
12421
- if (dd() && (e.f & 512) !== 0) for (h = qn; h < f.length; h++) {
12382
+ if (m || Js(e, qn), p !== null && qn > 0) for (p.length = qn + $n.length, h = 0; h < $n.length; h++) p[qn + h] = $n[h];
12383
+ else e.deps = p = $n;
12384
+ if (dd() && (e.f & 512) !== 0) for (h = qn; h < p.length; h++) {
12422
12385
  var w;
12423
- ((w = f[h]).reactions ?? (w.reactions = [])).push(e);
12386
+ ((w = p[h]).reactions ?? (w.reactions = [])).push(e);
12424
12387
  }
12425
- } else !m && f !== null && qn < f.length && (Js(e, qn), f.length = qn);
12426
- if (ps() && tr !== null && !Pr && f !== null && (e.f & 6146) === 0) for (h = 0; h < tr.length; h++) Tg(tr[h], e);
12388
+ } else !m && p !== null && qn < p.length && (Js(e, qn), p.length = qn);
12389
+ if (ps() && tr !== null && !Pr && p !== null && (e.f & 6146) === 0) for (h = 0; h < tr.length; h++) Tg(tr[h], e);
12427
12390
  if (o !== null && o !== e) {
12428
12391
  if (Qo++, o.deps !== null) for (let v = 0; v < n; v += 1) o.deps[v].rv = Qo;
12429
12392
  if (t !== null) for (const v of t) v.rv = Qo;
12430
12393
  tr !== null && (r === null ? r = tr : r.push(...tr));
12431
12394
  }
12432
- return e.f & 8388608 && (e.f ^= hl), p;
12395
+ return e.f & 8388608 && (e.f ^= hl), f;
12433
12396
  } catch (v) {
12434
12397
  return Wm(v);
12435
12398
  } finally {
@@ -12548,28 +12511,28 @@ function Uf(e) {
12548
12511
  return i || n;
12549
12512
  }
12550
12513
  });
12551
- var u = Et, p = lt;
12514
+ var u = Et, f = lt;
12552
12515
  hr(null), eo(null);
12553
12516
  try {
12554
- for (var f, m = []; i !== null; ) {
12517
+ for (var p, m = []; i !== null; ) {
12555
12518
  var h = i.assignedSlot || i.parentNode || i.host || null;
12556
12519
  try {
12557
12520
  var w = i[$i]?.[r];
12558
12521
  w != null && (!i.disabled || e.target === i) && w.call(i, e);
12559
12522
  } catch (v) {
12560
- f ? m.push(v) : f = v;
12523
+ p ? m.push(v) : p = v;
12561
12524
  }
12562
12525
  if (e.cancelBubble || h === t || h === null) break;
12563
12526
  i = h;
12564
12527
  }
12565
- if (f) {
12528
+ if (p) {
12566
12529
  for (let v of m) queueMicrotask(() => {
12567
12530
  throw v;
12568
12531
  });
12569
- throw f;
12532
+ throw p;
12570
12533
  }
12571
12534
  } finally {
12572
- e[$i] = t, delete e.currentTarget, hr(u), eo(p);
12535
+ e[$i] = t, delete e.currentTarget, hr(u), eo(f);
12573
12536
  }
12574
12537
  }
12575
12538
  }
@@ -12660,11 +12623,11 @@ function xg(e, { target: t, anchor: n, props: r = {}, events: o, context: i, int
12660
12623
  if (i && (h.c = i), o && (r.$$events = o), Ot && po(m, null), c = e(m, r) || {}, Ot && (lt.nodes.end = Lt, Lt === null || Lt.nodeType !== 8 || Lt.data !== "]")) throw da(), vi;
12661
12624
  zo();
12662
12625
  }, a);
12663
- var p = /* @__PURE__ */ new Set(), f = (m) => {
12626
+ var f = /* @__PURE__ */ new Set(), p = (m) => {
12664
12627
  for (var h = 0; h < m.length; h++) {
12665
12628
  var w = m[h];
12666
- if (!p.has(w)) {
12667
- p.add(w);
12629
+ if (!f.has(w)) {
12630
+ f.add(w);
12668
12631
  var v = IT(w);
12669
12632
  for (const E of [t, document]) {
12670
12633
  var g = Oa.get(E);
@@ -12675,12 +12638,12 @@ function xg(e, { target: t, anchor: n, props: r = {}, events: o, context: i, int
12675
12638
  }
12676
12639
  }
12677
12640
  };
12678
- return f(aE(Rg)), iu.add(f), () => {
12679
- for (var m of p) for (const v of [t, document]) {
12641
+ return p(aE(Rg)), iu.add(p), () => {
12642
+ for (var m of f) for (const v of [t, document]) {
12680
12643
  var h = Oa.get(v), w = h.get(m);
12681
12644
  --w == 0 ? (v.removeEventListener(m, Uf), h.delete(m), h.size === 0 && Oa.delete(v)) : h.set(m, w);
12682
12645
  }
12683
- iu.delete(f), u !== n && u.parentNode?.removeChild(u);
12646
+ iu.delete(p), u !== n && u.parentNode?.removeChild(u);
12684
12647
  };
12685
12648
  });
12686
12649
  return su.set(c, d), c;
@@ -12815,9 +12778,9 @@ function qf(e, t, n = !1, r = !1, o = !1, i = !1) {
12815
12778
  }
12816
12779
  if (d.nodes !== null && (gg(d.nodes.start, d.nodes.end), d.nodes = null), a !== "") {
12817
12780
  if (Ot) {
12818
- for (var u = Lt.data, p = es(), f = p; p !== null && (p.nodeType !== 8 || p.data !== ""); ) f = p, p = /* @__PURE__ */ so(p);
12819
- if (p === null) throw da(), vi;
12820
- po(Lt, f), s = Zn(p);
12781
+ for (var u = Lt.data, f = es(), p = f; f !== null && (f.nodeType !== 8 || f.data !== ""); ) p = f, f = /* @__PURE__ */ so(f);
12782
+ if (f === null) throw da(), vi;
12783
+ po(Lt, p), s = Zn(f);
12821
12784
  return;
12822
12785
  }
12823
12786
  var m = Fl(r ? "svg" : o ? "math" : "template", r ? rE : o ? oE : void 0);
@@ -12886,20 +12849,20 @@ function xT(e, t) {
12886
12849
  r && c.push(...Object.keys(r).map(fc)), o && c.push(...Object.keys(o).map(fc));
12887
12850
  var d = 0, u = -1;
12888
12851
  const w = e.length;
12889
- for (var p = 0; p < w; p++) {
12890
- var f = e[p];
12891
- if (a ? f === "/" && e[p - 1] === "*" && (a = !1) : i ? i === f && (i = !1) : f === "/" && e[p + 1] === "*" ? a = !0 : f === '"' || f === "'" ? i = f : f === "(" ? s++ : f === ")" && s--, !a && i === !1 && s === 0) {
12892
- if (f === ":" && u === -1) u = p;
12893
- else if (f === ";" || p === w - 1) {
12852
+ for (var f = 0; f < w; f++) {
12853
+ var p = e[f];
12854
+ if (a ? p === "/" && e[f - 1] === "*" && (a = !1) : i ? i === p && (i = !1) : p === "/" && e[f + 1] === "*" ? a = !0 : p === '"' || p === "'" ? i = p : p === "(" ? s++ : p === ")" && s--, !a && i === !1 && s === 0) {
12855
+ if (p === ":" && u === -1) u = f;
12856
+ else if (p === ";" || f === w - 1) {
12894
12857
  if (u !== -1) {
12895
12858
  var m = fc(e.substring(d, u).trim());
12896
12859
  if (!c.includes(m)) {
12897
- f !== ";" && p++;
12898
- var h = e.substring(d, p).trim();
12860
+ p !== ";" && f++;
12861
+ var h = e.substring(d, f).trim();
12899
12862
  n += " " + h + ";";
12900
12863
  }
12901
12864
  }
12902
- d = p + 1, u = -1;
12865
+ d = f + 1, u = -1;
12903
12866
  }
12904
12867
  }
12905
12868
  }
@@ -13005,11 +12968,11 @@ function he(e, t, n, r) {
13005
12968
  var o = !fs || (n & 2) !== 0, i = (n & 8) !== 0, s = (n & 16) !== 0, a = r, c = !0, d = () => (c && (c = !1, a = s ? Zr(r) : r), a);
13006
12969
  let u;
13007
12970
  if (i) {
13008
- var p = Us in e || $m in e;
13009
- u = ci(e, t)?.set ?? (p && t in e ? (E) => e[t] = E : void 0);
12971
+ var f = Us in e || $m in e;
12972
+ u = ci(e, t)?.set ?? (f && t in e ? (E) => e[t] = E : void 0);
13010
12973
  }
13011
- var f, m = !1;
13012
- i ? [f, m] = FE(() => e[t]) : f = e[t], f === void 0 && r !== void 0 && (f = d(), u && (o && _E(t), u(f)));
12974
+ var p, m = !1;
12975
+ i ? [p, m] = FE(() => e[t]) : p = e[t], p === void 0 && r !== void 0 && (p = d(), u && (o && _E(t), u(p)));
13013
12976
  var h;
13014
12977
  if (o ? h = () => {
13015
12978
  var E = e[t];
@@ -14107,7 +14070,7 @@ function Ug() {
14107
14070
  const t = (S) => Ug(S);
14108
14071
  if (t.version = "3.4.0", t.removed = [], !e || !e.document || e.document.nodeType !== xs.document || !e.Element) return t.isSupported = !1, t;
14109
14072
  let { document: n } = e;
14110
- const r = n, o = r.currentScript, { DocumentFragment: i, HTMLTemplateElement: s, Node: a, Element: c, NodeFilter: d, NamedNodeMap: u = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: p, DOMParser: f, trustedTypes: m } = e, h = c.prototype, w = As(h, "cloneNode"), v = As(h, "remove"), g = As(h, "nextSibling"), C = As(h, "childNodes"), E = As(h, "parentNode");
14073
+ const r = n, o = r.currentScript, { DocumentFragment: i, HTMLTemplateElement: s, Node: a, Element: c, NodeFilter: d, NamedNodeMap: u = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: f, DOMParser: p, trustedTypes: m } = e, h = c.prototype, w = As(h, "cloneNode"), v = As(h, "remove"), g = As(h, "nextSibling"), C = As(h, "childNodes"), E = As(h, "parentNode");
14111
14074
  if (typeof s == "function") {
14112
14075
  const S = n.createElement("template");
14113
14076
  S.content && S.content.ownerDocument && (n = S.content.ownerDocument);
@@ -14310,7 +14273,7 @@ function Ug() {
14310
14273
  sn === "application/xhtml+xml" && Ht === wt && (S = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + S + "</body></html>");
14311
14274
  const ue = T ? T.createHTML(S) : S;
14312
14275
  if (Ht === wt) try {
14313
- I = new f().parseFromString(ue, sn);
14276
+ I = new p().parseFromString(ue, sn);
14314
14277
  } catch {
14315
14278
  }
14316
14279
  if (!I || !I.documentElement) {
@@ -14325,7 +14288,7 @@ function Ug() {
14325
14288
  }, Ke = function(S) {
14326
14289
  return F.call(S.ownerDocument || S, S, d.SHOW_ELEMENT | d.SHOW_COMMENT | d.SHOW_TEXT | d.SHOW_PROCESSING_INSTRUCTION | d.SHOW_CDATA_SECTION, null);
14327
14290
  }, Pt = function(S) {
14328
- return S instanceof p && (typeof S.nodeName != "string" || typeof S.textContent != "string" || typeof S.removeChild != "function" || !(S.attributes instanceof u) || typeof S.removeAttribute != "function" || typeof S.setAttribute != "function" || typeof S.namespaceURI != "string" || typeof S.insertBefore != "function" || typeof S.hasChildNodes != "function");
14291
+ return S instanceof f && (typeof S.nodeName != "string" || typeof S.textContent != "string" || typeof S.removeChild != "function" || !(S.attributes instanceof u) || typeof S.removeAttribute != "function" || typeof S.setAttribute != "function" || typeof S.namespaceURI != "string" || typeof S.insertBefore != "function" || typeof S.hasChildNodes != "function");
14329
14292
  }, U = function(S) {
14330
14293
  return typeof a == "function" && S instanceof a;
14331
14294
  };
@@ -14769,32 +14732,32 @@ function O0(e) {
14769
14732
  const t = e.cdnBaseUrl.replace(/\/+$/, ""), n = e.moduleResolution ?? "url", r = e.view ?? "delivery", o = e.loadControllers ?? !0, i = e.viewConfig ?? $s[r] ?? $s.delivery, s = /* @__PURE__ */ new Set();
14770
14733
  let a = up, c;
14771
14734
  const d = {
14772
- replaceImporter(p) {
14773
- a = p;
14735
+ replaceImporter(f) {
14736
+ a = f;
14774
14737
  },
14775
- observeImportMapInjection(p) {
14776
- c = p;
14738
+ observeImportMapInjection(f) {
14739
+ c = f;
14777
14740
  },
14778
14741
  restore() {
14779
14742
  a = up, c = void 0, s.clear();
14780
14743
  }
14781
14744
  };
14782
- async function u(p, f) {
14783
- if (!p || Object.keys(p).length === 0) return;
14745
+ async function u(f, p) {
14746
+ if (!f || Object.keys(f).length === 0) return;
14784
14747
  if (n === "import-map") {
14785
14748
  $0();
14786
14749
  const w = {};
14787
- for (const [v, g] of Object.entries(p)) {
14750
+ for (const [v, g] of Object.entries(f)) {
14788
14751
  const C = cu(g);
14789
14752
  s.has(C) || (w[v] = g, s.add(C));
14790
14753
  }
14791
14754
  if (Object.keys(w).length > 0) {
14792
14755
  const v = D0(w, i, t, o);
14793
- B0(v, f.doc), c?.(v, f.doc);
14756
+ B0(v, p.doc), c?.(v, p.doc);
14794
14757
  }
14795
14758
  }
14796
14759
  const m = /* @__PURE__ */ new Map(), h = ms();
14797
- if (await Promise.all(Object.entries(p).map(async ([w, v]) => {
14760
+ if (await Promise.all(Object.entries(f).map(async ([w, v]) => {
14798
14761
  const g = cu(v);
14799
14762
  let C;
14800
14763
  try {
@@ -14945,37 +14908,37 @@ function F0(e) {
14945
14908
  const t = e.bundleType ?? Kt.clientPlayer, n = e.needsControllers ?? !0;
14946
14909
  let r = fp;
14947
14910
  const o = /* @__PURE__ */ new Map(), i = {
14948
- replaceLoadBundleScript(f) {
14949
- r = f, o.clear();
14911
+ replaceLoadBundleScript(p) {
14912
+ r = p, o.clear();
14950
14913
  },
14951
14914
  restore() {
14952
14915
  r = fp, o.clear();
14953
14916
  }
14954
14917
  };
14955
- async function s(f, m) {
14956
- const h = o.get(f);
14918
+ async function s(p, m) {
14919
+ const h = o.get(p);
14957
14920
  if (h) return h;
14958
- const w = a(f, m).finally(() => {
14959
- o.delete(f);
14921
+ const w = a(p, m).finally(() => {
14922
+ o.delete(p);
14960
14923
  });
14961
- return o.set(f, w), w;
14924
+ return o.set(p, w), w;
14962
14925
  }
14963
- async function a(f, m) {
14926
+ async function a(p, m) {
14964
14927
  const { retryDelayMs: h, timeoutMs: w } = U0(e.bundleRetry), v = Date.now();
14965
14928
  let g = 0;
14966
14929
  for (; ; ) {
14967
14930
  g += 1;
14968
14931
  try {
14969
- await r(f, m);
14932
+ await r(p, m);
14970
14933
  const C = Date.now() - v;
14971
14934
  g > 1 && (e.onBundleRetryStatus?.({
14972
14935
  state: "completed",
14973
- url: f,
14936
+ url: p,
14974
14937
  attempt: g,
14975
14938
  elapsedMs: C,
14976
14939
  timeoutMs: w
14977
14940
  }), d("pie-iife-bundle-retry-success", {
14978
- url: f,
14941
+ url: p,
14979
14942
  attempt: g,
14980
14943
  elapsedMs: C,
14981
14944
  timeoutMs: w
@@ -14984,22 +14947,22 @@ function F0(e) {
14984
14947
  } catch (C) {
14985
14948
  const E = Date.now() - v, T = w - E, R = C instanceof Error ? C.message : String(C);
14986
14949
  if (T <= 0) {
14987
- const F = /* @__PURE__ */ new Error(`IIFE bundle load timed out after ${w}ms: ${f}`);
14950
+ const F = /* @__PURE__ */ new Error(`IIFE bundle load timed out after ${w}ms: ${p}`);
14988
14951
  throw e.onBundleRetryStatus?.({
14989
14952
  state: "timeout",
14990
- url: f,
14953
+ url: p,
14991
14954
  attempt: g,
14992
14955
  elapsedMs: E,
14993
14956
  timeoutMs: w,
14994
14957
  reason: R
14995
14958
  }), d("pie-iife-bundle-retry-timeout", {
14996
- url: f,
14959
+ url: p,
14997
14960
  attempt: g,
14998
14961
  elapsedMs: E,
14999
14962
  timeoutMs: w,
15000
14963
  lastError: R
15001
14964
  }), u(F, {
15002
- url: f,
14965
+ url: p,
15003
14966
  attempt: g,
15004
14967
  elapsedMs: E,
15005
14968
  timeoutMs: w,
@@ -15009,14 +14972,14 @@ function F0(e) {
15009
14972
  const z = Math.min(h, T);
15010
14973
  e.onBundleRetryStatus?.({
15011
14974
  state: "retrying",
15012
- url: f,
14975
+ url: p,
15013
14976
  attempt: g,
15014
14977
  elapsedMs: E,
15015
14978
  timeoutMs: w,
15016
14979
  retryDelayMs: z,
15017
14980
  reason: R
15018
14981
  }), d("pie-iife-bundle-retry", {
15019
- url: f,
14982
+ url: p,
15020
14983
  attempt: g,
15021
14984
  elapsedMs: E,
15022
14985
  retryDelayMs: z,
@@ -15028,20 +14991,20 @@ function F0(e) {
15028
14991
  }
15029
14992
  function c() {
15030
14993
  if (!e.trackPageActions) return;
15031
- const f = e.instrumentationProvider;
15032
- if (ma(f) && f.isReady()) return f;
14994
+ const p = e.instrumentationProvider;
14995
+ if (ma(p) && p.isReady()) return p;
15033
14996
  }
15034
- function d(f, m) {
14997
+ function d(p, m) {
15035
14998
  const h = c();
15036
14999
  if (h) try {
15037
- h.trackEvent(f, m);
15000
+ h.trackEvent(p, m);
15038
15001
  } catch {
15039
15002
  }
15040
15003
  }
15041
- function u(f, m) {
15004
+ function u(p, m) {
15042
15005
  const h = c();
15043
15006
  if (h) try {
15044
- h.trackError(f, {
15007
+ h.trackError(p, {
15045
15008
  ...m,
15046
15009
  component: "iife-adapter",
15047
15010
  errorType: "IifeBundleRetryError"
@@ -15049,14 +15012,14 @@ function F0(e) {
15049
15012
  } catch {
15050
15013
  }
15051
15014
  }
15052
- async function p(f, m) {
15053
- if (!f || Object.keys(f).length === 0) return;
15054
- const h = z0(f, t, e);
15015
+ async function f(p, m) {
15016
+ if (!p || Object.keys(p).length === 0) return;
15017
+ const h = z0(p, t, e);
15055
15018
  try {
15056
15019
  await s(h, m.doc);
15057
15020
  } catch (E) {
15058
15021
  const T = E instanceof Error ? E.message : String(E), R = /* @__PURE__ */ new Map();
15059
- for (const z of Object.keys(f)) R.set(z, {
15022
+ for (const z of Object.keys(p)) R.set(z, {
15060
15023
  kind: "bundle-load-failed",
15061
15024
  tag: z,
15062
15025
  url: h,
@@ -15067,7 +15030,7 @@ function F0(e) {
15067
15030
  const w = H0();
15068
15031
  if (!w) {
15069
15032
  const E = /* @__PURE__ */ new Map();
15070
- for (const T of Object.keys(f)) E.set(T, {
15033
+ for (const T of Object.keys(p)) E.set(T, {
15071
15034
  kind: "bundle-load-failed",
15072
15035
  tag: T,
15073
15036
  url: h,
@@ -15076,7 +15039,7 @@ function F0(e) {
15076
15039
  throw new Wi(E);
15077
15040
  }
15078
15041
  const v = /* @__PURE__ */ new Map(), g = t === Kt.editor, C = ms();
15079
- for (const [E, T] of Object.entries(f)) {
15042
+ for (const [E, T] of Object.entries(p)) {
15080
15043
  const R = Wg(T), z = w[R];
15081
15044
  if (!z) {
15082
15045
  v.set(E, {
@@ -15139,7 +15102,7 @@ function F0(e) {
15139
15102
  if (v.size > 0) throw new Wi(v);
15140
15103
  }
15141
15104
  return {
15142
- load: p,
15105
+ load: f,
15143
15106
  get __seams() {
15144
15107
  return i;
15145
15108
  }
@@ -15252,8 +15215,8 @@ async function J0(e, t, n, r, o, i) {
15252
15215
  for (const u of a) {
15253
15216
  if (u.ok) continue;
15254
15217
  c.add(u.tag);
15255
- const p = p_(s, u.tag);
15256
- d.set(u.tag, p ?? {
15218
+ const f = p_(s, u.tag);
15219
+ d.set(u.tag, f ?? {
15257
15220
  kind: "timeout",
15258
15221
  tag: u.tag,
15259
15222
  timeoutMs: o
@@ -15452,10 +15415,10 @@ var Xg = (e) => {
15452
15415
  }
15453
15416
  u.add(w), w in a || t.push(`Model element "${w}" is not declared in \`elements\`.`);
15454
15417
  }
15455
- const p = h_(o);
15456
- for (const m of p) m in a || t.push(`Markup tag "${m}" is not declared in \`elements\`.`);
15457
- const f = /* @__PURE__ */ new Set([...u, ...p]);
15458
- for (const m of d) f.has(m) || n.push(`Element "${m}" is declared in \`elements\` but not referenced by models or markup.`);
15418
+ const f = h_(o);
15419
+ for (const m of f) m in a || t.push(`Markup tag "${m}" is not declared in \`elements\`.`);
15420
+ const p = /* @__PURE__ */ new Set([...u, ...f]);
15421
+ for (const m of d) p.has(m) || n.push(`Element "${m}" is declared in \`elements\` but not referenced by models or markup.`);
15459
15422
  return {
15460
15423
  valid: t.length === 0,
15461
15424
  errors: t,
@@ -15466,36 +15429,36 @@ var Xg = (e) => {
15466
15429
  if (!t.valid) throw new Error(`Invalid PIE config contract: ${t.errors.join(" | ")}`);
15467
15430
  }, g_ = (e) => {
15468
15431
  const t = "--version-", n = "[0-9A-Za-z-]+", r = (u) => u.trim().replace(/[.+]/g, "-").replace(/[^0-9A-Za-z-]/g, "-").replace(/-{2,}/g, "-"), o = (u) => {
15469
- const p = u.match(new RegExp(`${t}(${n})$`));
15470
- return p ? {
15471
- baseName: u.replace(`${t}${p[1]}`, ""),
15472
- existingEncodedVersion: p[1]
15432
+ const f = u.match(new RegExp(`${t}(${n})$`));
15433
+ return f ? {
15434
+ baseName: u.replace(`${t}${f[1]}`, ""),
15435
+ existingEncodedVersion: f[1]
15473
15436
  } : { baseName: u };
15474
- }, i = (u, p) => {
15475
- const { baseName: f, existingEncodedVersion: m } = o(u), { version: h } = ss(p), w = r(h);
15476
- return m !== w ? `${f}${t}${w}` : u;
15477
- }, s = Object.entries(e.config.elements).reduce((u, [p, f]) => {
15478
- const m = i(p, f);
15437
+ }, i = (u, f) => {
15438
+ const { baseName: p, existingEncodedVersion: m } = o(u), { version: h } = ss(f), w = r(h);
15439
+ return m !== w ? `${p}${t}${w}` : u;
15440
+ }, s = Object.entries(e.config.elements).reduce((u, [f, p]) => {
15441
+ const m = i(f, p);
15479
15442
  return {
15480
15443
  ...u,
15481
- [p]: {
15444
+ [f]: {
15482
15445
  versionedName: m,
15483
- package: f
15446
+ package: p
15484
15447
  }
15485
15448
  };
15486
- }, {}), a = Object.entries(s).reduce((u, [p, { versionedName: f }]) => p !== f ? u.replace(new RegExp(`<${p}`, "g"), `<${f}`).replace(new RegExp(`</${p}`, "g"), `</${f}`) : u, e.config.markup), c = Object.values(s).reduce((u, { versionedName: p, package: f }) => ({
15449
+ }, {}), a = Object.entries(s).reduce((u, [f, { versionedName: p }]) => f !== p ? u.replace(new RegExp(`<${f}`, "g"), `<${p}`).replace(new RegExp(`</${f}`, "g"), `</${p}`) : u, e.config.markup), c = Object.values(s).reduce((u, { versionedName: f, package: p }) => ({
15487
15450
  ...u,
15488
- [p]: f
15451
+ [f]: p
15489
15452
  }), {}), d = e.config.models.map((u) => {
15490
- const p = u.element, f = s[p];
15491
- if (f && f.versionedName !== p) return {
15453
+ const f = u.element, p = s[f];
15454
+ if (p && p.versionedName !== f) return {
15492
15455
  ...u,
15493
- element: f.versionedName
15456
+ element: p.versionedName
15494
15457
  };
15495
- if (c[p]) return u;
15458
+ if (c[f]) return u;
15496
15459
  const m = Object.entries(s).filter(([h]) => {
15497
15460
  const { baseName: w } = o(h);
15498
- return w === p;
15461
+ return w === f;
15499
15462
  });
15500
15463
  if (m.length > 0) {
15501
15464
  const [, { versionedName: h }] = m[0];
@@ -15729,14 +15692,14 @@ var yr = Mn("pie-scoring", () => Sn()), bd = (e) => {
15729
15692
  invokeControllerForModel: i
15730
15693
  };
15731
15694
  }, T_ = (e, t, n, r) => {
15732
- const { config: o, session: i, env: s, eventListeners: a, invokeControllerForModel: c } = n, d = o.models?.find((p) => p.id === e.id);
15695
+ const { config: o, session: i, env: s, eventListeners: a, invokeControllerForModel: c } = n, d = o.models?.find((f) => f.id === e.id);
15733
15696
  if (!d) throw ir.error(`${r} Model not found for`, t), /* @__PURE__ */ new Error(`model not found for ${t}`);
15734
15697
  const u = qg(i, d.id, d.element);
15735
- if (a && Object.entries(a).forEach(([p, f]) => {
15736
- e.addEventListener(p, f);
15698
+ if (a && Object.entries(a).forEach(([f, p]) => {
15699
+ e.addEventListener(f, p);
15737
15700
  }), s && c) {
15738
- const p = bd(t);
15739
- if (!p) {
15701
+ const f = bd(t);
15702
+ if (!f) {
15740
15703
  ir.debug(`${r} ℹ️ No controller for ${t}, using server-processed model`), e.model = d, e.session = u;
15741
15704
  return;
15742
15705
  }
@@ -15744,14 +15707,14 @@ var yr = Mn("pie-scoring", () => Sn()), bd = (e) => {
15744
15707
  mode: s.mode,
15745
15708
  role: s.role,
15746
15709
  hasCorrectResponse: "correctResponse" in d
15747
- }), I_(e, d, u, p, s, `${r}(${t}#${e.id})`).catch((f) => {
15748
- const m = f instanceof Error ? f.message : String(f), h = m.includes("Controller contract mismatch");
15749
- ir.error(`${r} Controller failed for ${t}#${e.id}:`, f), S_(e, {
15710
+ }), I_(e, d, u, f, s, `${r}(${t}#${e.id})`).catch((p) => {
15711
+ const m = p instanceof Error ? p.message : String(p), h = m.includes("Controller contract mismatch");
15712
+ ir.error(`${r} Controller failed for ${t}#${e.id}:`, p), S_(e, {
15750
15713
  code: h ? "PIE_CONTROLLER_CONTRACT_ERROR" : "PIE_CONTROLLER_RUNTIME_ERROR",
15751
15714
  message: `${t} controller failed while applying model for ${e.id}. ${m}`,
15752
15715
  elementName: t,
15753
15716
  elementId: e.id,
15754
- controllerShape: iv(p),
15717
+ controllerShape: iv(f),
15755
15718
  cause: m
15756
15719
  }), e.model = d, e.session = u;
15757
15720
  });
@@ -15802,8 +15765,8 @@ var yr = Mn("pie-scoring", () => Sn()), bd = (e) => {
15802
15765
  hasCorrectResponse: "correctResponse" in a,
15803
15766
  mode: o.mode,
15804
15767
  role: o.role
15805
- }), e.model = a), i && Object.entries(i).forEach(([u, p]) => {
15806
- e.addEventListener(u, p);
15768
+ }), e.model = a), i && Object.entries(i).forEach(([u, f]) => {
15769
+ e.addEventListener(u, f);
15807
15770
  });
15808
15771
  }, _p = (e, t) => ga(e + v_, `editor element tag for ${t}`), kp = (e, t, n, r, o = !1) => {
15809
15772
  sv(e, {
@@ -15832,29 +15795,29 @@ var yr = Mn("pie-scoring", () => Sn()), bd = (e) => {
15832
15795
  }
15833
15796
  const u = Wg(c);
15834
15797
  Mt.debug(`[registerPieElementsFromBundle] Package without version: "${u}"`);
15835
- const p = e[u];
15836
- if (Mt.debug("[registerPieElementsFromBundle] elementData result:", p ? "FOUND" : "UNDEFINED"), !p) throw Mt.error(`[registerPieElementsFromBundle] ❌ Package "${u}" not found in bundle!`), Mt.error(`[registerPieElementsFromBundle] Lookup key: "${u}"`), Mt.error("[registerPieElementsFromBundle] Available packages:", Object.keys(e)), /* @__PURE__ */ new Error(`pie ${u} not found in ${Object.keys(e)}`);
15798
+ const f = e[u];
15799
+ if (Mt.debug("[registerPieElementsFromBundle] elementData result:", f ? "FOUND" : "UNDEFINED"), !f) throw Mt.error(`[registerPieElementsFromBundle] ❌ Package "${u}" not found in bundle!`), Mt.error(`[registerPieElementsFromBundle] Lookup key: "${u}"`), Mt.error("[registerPieElementsFromBundle] Available packages:", Object.keys(e)), /* @__PURE__ */ new Error(`pie ${u} not found in ${Object.keys(e)}`);
15837
15800
  if (Mt.debug(`[registerPieElementsFromBundle] elementData for ${u}:`, {
15838
- hasController: !!p.controller,
15839
- hasElement: !!p.Element,
15840
- hasConfig: !!p.config,
15841
- controllerKeys: p.controller ? Object.keys(p.controller) : [],
15801
+ hasController: !!f.controller,
15802
+ hasElement: !!f.Element,
15803
+ hasConfig: !!f.config,
15804
+ controllerKeys: f.controller ? Object.keys(f.controller) : [],
15842
15805
  bundleType: o.bundleType
15843
- }), !p.controller) {
15806
+ }), !f.controller) {
15844
15807
  if (o.bundleType === Kt.clientPlayer) throw Mt.error(`[registerPieElementsFromBundle] ❌ CRITICAL: No controller found for ${u}!`), Mt.error(`[registerPieElementsFromBundle] Bundle type: ${o.bundleType} (controllers required)`), /* @__PURE__ */ new Error(`No controller found for ${u}. client-player.js bundles MUST include controllers!`);
15845
15808
  Mt.debug(`[registerPieElementsFromBundle] ℹ️ No controller found for ${u} - using server-processed models (player.js bundle)`);
15846
15809
  }
15847
- if (Mt.debug(`[registerPieElementsFromBundle] Registering ${a} in registry${p.controller ? " with controller" : " (no controller - server-processed models)"}`), r[d] = {
15810
+ if (Mt.debug(`[registerPieElementsFromBundle] Registering ${a} in registry${f.controller ? " with controller" : " (no controller - server-processed models)"}`), r[d] = {
15848
15811
  package: c,
15849
15812
  status: as.loading,
15850
15813
  tagName: d,
15851
- controller: p.controller || null,
15852
- config: p.config,
15814
+ controller: f.controller || null,
15815
+ config: f.config,
15853
15816
  bundleType: o.bundleType
15854
- }, Sl(p.Element)) {
15855
- ea(d, p.Element, `element tag in config.elements for ${String(c)}`);
15856
- const f = (o.container || document).querySelectorAll(d);
15857
- if (Mt.debug(`[registerPieElementsFromBundle] Found ${f.length} elements for tag '${d}'`), f.forEach((m) => {
15817
+ }, Sl(f.Element)) {
15818
+ ea(d, f.Element, `element tag in config.elements for ${String(c)}`);
15819
+ const p = (o.container || document).querySelectorAll(d);
15820
+ if (Mt.debug(`[registerPieElementsFromBundle] Found ${p.length} elements for tag '${d}'`), p.forEach((m) => {
15858
15821
  Sc(m, {
15859
15822
  config: t,
15860
15823
  session: n,
@@ -15898,12 +15861,12 @@ var yr = Mn("pie-scoring", () => Sn()), bd = (e) => {
15898
15861
  }), window._pieElementObserver.observe(document.body, {
15899
15862
  childList: !0,
15900
15863
  subtree: !0
15901
- })), o.bundleType === Kt.editor) if (Sl(p.Configure)) {
15864
+ })), o.bundleType === Kt.editor) if (Sl(f.Configure)) {
15902
15865
  const m = _p(d, String(c));
15903
- ea(m, p.Configure, `editor element tag for ${String(c)}`), i.push(customElements.whenDefined(m).then(() => {
15866
+ ea(m, f.Configure, `editor element tag for ${String(c)}`), i.push(customElements.whenDefined(m).then(() => {
15904
15867
  Mt.debug(`[registerPieElementsFromBundle] defined custom PIE editor element: ${m}`);
15905
15868
  }));
15906
- } else Mt.error(`[registerPieElementsFromBundle] pie.Configure for ${u} is not a valid custom element constructor.`, p.configure);
15869
+ } else Mt.error(`[registerPieElementsFromBundle] pie.Configure for ${u} is not a valid custom element constructor.`, f.configure);
15907
15870
  } else Mt.error(`[registerPieElementsFromBundle] pie.Element for ${u} is not a valid custom element constructor.`);
15908
15871
  }), i;
15909
15872
  }, Pp = (e, t, n = {}) => {
@@ -16213,13 +16176,13 @@ function pv(e, t) {
16213
16176
  let o = !1, i = !1, s = !1;
16214
16177
  const a = () => {
16215
16178
  r.onchange = null, window.removeEventListener("focus", d), r.removeEventListener("cancel", u);
16216
- }, c = (p) => {
16217
- o || (o = !0, a(), n(p));
16179
+ }, c = (f) => {
16180
+ o || (o = !0, a(), n(f));
16218
16181
  }, d = () => {
16219
16182
  !s || i || (s = !1, window.setTimeout(() => {
16220
16183
  if (i || o) return;
16221
- const p = r.files?.[0] ?? null;
16222
- p || t(), c(p);
16184
+ const f = r.files?.[0] ?? null;
16185
+ f || t(), c(f);
16223
16186
  }, 300));
16224
16187
  }, u = () => {
16225
16188
  t(), c(null);
@@ -16396,17 +16359,17 @@ function Op(e, t, n) {
16396
16359
  for (const [o, i] of Object.entries(e.elements)) {
16397
16360
  const s = `${o}-config`, a = document.querySelectorAll(s);
16398
16361
  $r.debug(`[initializeConfiguresFromLoadedBundle] Found ${a.length} ${s} elements`), a.forEach((c) => {
16399
- const d = c, u = e.models.find((p) => p.element === o);
16362
+ const d = c, u = e.models.find((f) => f.element === o);
16400
16363
  if (u) {
16401
16364
  $r.debug(`[initializeConfiguresFromLoadedBundle] Setting model on ${s}:`, u), d.model = u;
16402
- const p = (() => {
16365
+ const f = (() => {
16403
16366
  try {
16404
16367
  return ss(String(i)).name;
16405
16368
  } catch {
16406
16369
  return String(i);
16407
16370
  }
16408
- })(), f = t[i] || t[p] || t[o] || {};
16409
- d.configuration = f, $r.debug(`[initializeConfiguresFromLoadedBundle] Configuration set for ${s}:`, f);
16371
+ })(), p = t[i] || t[f] || t[o] || {};
16372
+ d.configuration = p, $r.debug(`[initializeConfiguresFromLoadedBundle] Configuration set for ${s}:`, p);
16410
16373
  } else $r.warn(`[initializeConfiguresFromLoadedBundle] No model found for element ${o}`);
16411
16374
  });
16412
16375
  }
@@ -16606,7 +16569,7 @@ var W_ = (e) => e.mode !== "evaluate", q_ = (e) => ({
16606
16569
  }
16607
16570
  const t = e.duration, n = e.transferSize, r = e.name, o = this.getOriginalUrl(r), i = e.responseEnd === 0 && e.duration > 0, s = this.retryAttempts.has(o), a = this.retryAttempts.get(o) || 0;
16608
16571
  if (this.isDebugEnabled()) {
16609
- const c = this.truncateUrl(r), d = (n / 1024).toFixed(2), u = i ? "❌ FAILED" : "✅ SUCCESS", p = {
16572
+ const c = this.truncateUrl(r), d = (n / 1024).toFixed(2), u = i ? "❌ FAILED" : "✅ SUCCESS", f = {
16610
16573
  total: `${t.toFixed(2)}ms`,
16611
16574
  dns: e.domainLookupEnd > 0 ? `${(e.domainLookupEnd - e.domainLookupStart).toFixed(2)}ms` : "n/a",
16612
16575
  tcp: e.connectEnd > 0 ? `${(e.connectEnd - e.connectStart).toFixed(2)}ms` : "n/a",
@@ -16615,17 +16578,17 @@ var W_ = (e) => e.mode !== "evaluate", q_ = (e) => ({
16615
16578
  size: n > 0 ? `${d} KB` : "0 KB",
16616
16579
  type: e.initiatorType,
16617
16580
  protocol: e.nextHopProtocol || "unknown"
16618
- }, f = s && !i ? `
16581
+ }, p = s && !i ? `
16619
16582
  🔄 Retry Success: Succeeded after ${a} ${a === 1 ? "retry" : "retries"}` : "";
16620
16583
  this.logger.info(`📊 PIE Resource Load ${u}
16621
16584
  URL: ${c}
16622
- Type: ${p.type} | Protocol: ${p.protocol}
16623
- ⏱️ Total Time: ${p.total}
16624
- └─ DNS Lookup: ${p.dns}
16625
- └─ TCP Connect: ${p.tcp}
16626
- └─ Request Time: ${p.request}
16627
- └─ Response Time: ${p.response}
16628
- 📦 Transfer Size: ${p.size}${f}`);
16585
+ Type: ${f.type} | Protocol: ${f.protocol}
16586
+ ⏱️ Total Time: ${f.total}
16587
+ └─ DNS Lookup: ${f.dns}
16588
+ └─ TCP Connect: ${f.tcp}
16589
+ └─ Request Time: ${f.request}
16590
+ └─ Response Time: ${f.response}
16591
+ 📦 Transfer Size: ${f.size}${p}`);
16629
16592
  } else this.logger.debug(`Resource loaded: ${e.name}`, {
16630
16593
  duration: `${t.toFixed(2)}ms`,
16631
16594
  size: `${n} bytes`,
@@ -17042,13 +17005,13 @@ function Z_(e, t, n, r = "pie-player") {
17042
17005
  let i = /* @__PURE__ */ ht(null), s = /* @__PURE__ */ ht(!1), a = /* @__PURE__ */ ht(null), c = /* @__PURE__ */ ht(""), d = /* @__PURE__ */ ht(void 0);
17043
17006
  return Kn(() => {
17044
17007
  e(), t(), n(), Zr(() => {
17045
- const u = e(), p = t(), f = n(), m = p?.trackPageActions ?? !1, h = p?.maxResourceRetries ?? $o.maxResourceRetries, w = p?.resourceRetryDelay ?? $o.resourceRetryDelay, v = ma(p?.instrumentationProvider) ? p?.instrumentationProvider : void 0;
17046
- f && p?.instrumentationProvider && !v && o.warn(`Ignoring invalid instrumentation provider for ${r}; expected InstrumentationProvider contract`);
17008
+ const u = e(), f = t(), p = n(), m = f?.trackPageActions ?? !1, h = f?.maxResourceRetries ?? $o.maxResourceRetries, w = f?.resourceRetryDelay ?? $o.resourceRetryDelay, v = ma(f?.instrumentationProvider) ? f?.instrumentationProvider : void 0;
17009
+ p && f?.instrumentationProvider && !v && o.warn(`Ignoring invalid instrumentation provider for ${r}; expected InstrumentationProvider contract`);
17047
17010
  const g = JSON.stringify({
17048
17011
  trackPageActions: m,
17049
17012
  maxRetries: h,
17050
17013
  retryDelay: w,
17051
- debugEnabled: f
17014
+ debugEnabled: p
17052
17015
  }), C = B(d) !== v, E = B(a) !== u, T = B(c) !== g, R = u && B(s) && (E || T || C);
17053
17016
  if (!u && B(i)) {
17054
17017
  o.debug(`Host element removed, stopping resource monitor for ${r}`), B(i).stop(), be(i, null), be(s, !1), be(a, null), be(d, void 0), be(c, "");
@@ -17070,7 +17033,7 @@ function Z_(e, t, n, r = "pie-player") {
17070
17033
  maxRetries: h,
17071
17034
  initialRetryDelay: w,
17072
17035
  maxRetryDelay: J_,
17073
- debug: f
17036
+ debug: p
17074
17037
  }), !0), B(i).start(u), be(s, !0), be(a, u, !0), be(d, v, !0), be(c, g, !0), o.info(`✅ Resource monitoring enabled for ${r}` + (m ? v ? " (with custom instrumentation provider)" : " (with New Relic tracking)" : " (retry only)")));
17075
17038
  });
17076
17039
  }), Og(() => {
@@ -17120,7 +17083,7 @@ function wd(e, t) {
17120
17083
  let r = he(t, "itemConfig", 7), o = he(t, "passageConfig", 7, null), i = he(t, "env", 23, () => ({
17121
17084
  mode: "gather",
17122
17085
  role: "student"
17123
- })), s = he(t, "session", 23, () => []), a = he(t, "addCorrectResponse", 7, !1), c = he(t, "customClassName", 7, ""), d = he(t, "passageContainerClass", 7, ""), u = he(t, "containerClass", 7, ""), p = he(t, "bundleType", 23, () => Kt.player), f = he(t, "loaderConfig", 7, $o), m = he(t, "mode", 7, "view"), h = he(t, "configuration", 23, () => ({})), w = he(t, "authoringBackend", 7, "demo"), v = he(t, "trustMarkup", 7, !1), g = he(t, "sanitizeMarkup", 7), C = he(t, "onInsertImage", 7), E = he(t, "onDeleteImage", 7), T = he(t, "onInsertSound", 7), R = he(t, "onDeleteSound", 7), z = he(t, "onLoadComplete", 7), F = he(t, "onPlayerError", 7), ie = he(t, "onSessionChanged", 7), le = he(t, "onModelUpdated", 7), H = he(t, "baseHeadingLevel", 7, void 0), q = /* @__PURE__ */ ht(!1), ee = /* @__PURE__ */ ht(null), ce = /* @__PURE__ */ ht(null), re = /* @__PURE__ */ ht(null), te = /* @__PURE__ */ ht(null);
17086
+ })), s = he(t, "session", 23, () => []), a = he(t, "addCorrectResponse", 7, !1), c = he(t, "customClassName", 7, ""), d = he(t, "passageContainerClass", 7, ""), u = he(t, "containerClass", 7, ""), f = he(t, "bundleType", 23, () => Kt.player), p = he(t, "loaderConfig", 7, $o), m = he(t, "mode", 7, "view"), h = he(t, "configuration", 23, () => ({})), w = he(t, "authoringBackend", 7, "demo"), v = he(t, "trustMarkup", 7, !1), g = he(t, "sanitizeMarkup", 7), C = he(t, "onInsertImage", 7), E = he(t, "onDeleteImage", 7), T = he(t, "onInsertSound", 7), R = he(t, "onDeleteSound", 7), z = he(t, "onLoadComplete", 7), F = he(t, "onPlayerError", 7), ie = he(t, "onSessionChanged", 7), le = he(t, "onModelUpdated", 7), H = he(t, "baseHeadingLevel", 7, void 0), q = /* @__PURE__ */ ht(!1), ee = /* @__PURE__ */ ht(null), ce = /* @__PURE__ */ ht(null), re = /* @__PURE__ */ ht(null), te = /* @__PURE__ */ ht(null);
17124
17087
  function Z(P, me) {
17125
17088
  let N = P;
17126
17089
  for (const $ of Object.keys(me)) {
@@ -17158,7 +17121,7 @@ function wd(e, t) {
17158
17121
  }
17159
17122
  function Y(P) {
17160
17123
  const me = av({
17161
- player: { loaderConfig: f() },
17124
+ player: { loaderConfig: p() },
17162
17125
  component: "pie-item-player",
17163
17126
  debug: Sn()
17164
17127
  });
@@ -17275,7 +17238,7 @@ function wd(e, t) {
17275
17238
  u()
17276
17239
  ].filter(Boolean).join(" "));
17277
17240
  let nt = /* @__PURE__ */ ht(!1), Ce = /* @__PURE__ */ ht(!1), $e = /* @__PURE__ */ ht(null), Le = /* @__PURE__ */ ht(!1), Fe = /* @__PURE__ */ ht(""), j = /* @__PURE__ */ ht(null);
17278
- Z_(() => B(j), () => f(), () => Sn(), "pie-item-player"), Kn(() => {
17241
+ Z_(() => B(j), () => p(), () => Sn(), "pie-item-player"), Kn(() => {
17279
17242
  !r() || B(nt) || (n.debug("[PieItemPlayer] Item config received, initializing after DOM renders..."), n.debug("[PieItemPlayer] Mode:", m()), kg().then(async () => {
17280
17243
  try {
17281
17244
  if (be(te, null), n.debug("[PieItemPlayer] DOM ready, initializing PIE elements"), n.debug("[PieItemPlayer] Config:", {
@@ -17330,13 +17293,13 @@ function wd(e, t) {
17330
17293
  } : void 0), !0), B(ee).attach(), n.debug("[PieItemPlayer] Asset event manager attached"));
17331
17294
  } else n.debug("[PieItemPlayer] Initializing in view mode"), Pp(r(), [], {
17332
17295
  env: i(),
17333
- bundleType: p(),
17296
+ bundleType: f(),
17334
17297
  container: B(j) ?? void 0
17335
- }), n.debug("[PieItemPlayer] Item bundle initialized (bundle type: %s)", p()), o() && (Pp(o(), [], {
17298
+ }), n.debug("[PieItemPlayer] Item bundle initialized (bundle type: %s)", f()), o() && (Pp(o(), [], {
17336
17299
  env: i(),
17337
- bundleType: p(),
17300
+ bundleType: f(),
17338
17301
  container: B(j) ?? void 0
17339
- }), n.debug("[PieItemPlayer] Passage bundle initialized (bundle type: %s)", p())), n.debug("[PieItemPlayer] Updating elements with session (length=" + s().length + ")"), Ri(r(), s(), i(), B(j) ?? void 0), o() && Ri(o(), s(), i(), B(j) ?? void 0);
17302
+ }), n.debug("[PieItemPlayer] Passage bundle initialized (bundle type: %s)", f())), n.debug("[PieItemPlayer] Updating elements with session (length=" + s().length + ")"), Ri(r(), s(), i(), B(j) ?? void 0), o() && Ri(o(), s(), i(), B(j) ?? void 0);
17340
17303
  if (be(nt, !0), !B(Ce)) if (m() === "author") {
17341
17304
  const P = (me) => {
17342
17305
  if (B(Le)) return;
@@ -17490,16 +17453,16 @@ function wd(e, t) {
17490
17453
  u(P), pe();
17491
17454
  },
17492
17455
  get bundleType() {
17493
- return p();
17456
+ return f();
17494
17457
  },
17495
17458
  set bundleType(P = Kt.player) {
17496
- p(P), pe();
17459
+ f(P), pe();
17497
17460
  },
17498
17461
  get loaderConfig() {
17499
- return f();
17462
+ return p();
17500
17463
  },
17501
17464
  set loaderConfig(P = $o) {
17502
- f(P), pe();
17465
+ p(P), pe();
17503
17466
  },
17504
17467
  get mode() {
17505
17468
  return m();
@@ -17668,11 +17631,11 @@ function mv(e, t) {
17668
17631
  }
17669
17632
  }, a = ik(), c = an(a), d = an(c);
17670
17633
  let u;
17671
- var p = Cr(d, 2);
17672
- let f;
17634
+ var f = Cr(d, 2);
17635
+ let p;
17673
17636
  return Zt(c), Zt(a), Fn(() => {
17674
- u = yi(d, 1, "toggle-tab svelte-1xxrqx7", null, u, { active: r() === "author" }), bi(d, "aria-selected", r() === "author"), f = yi(p, 1, "toggle-tab svelte-1xxrqx7", null, f, { active: r() === "preview" }), bi(p, "aria-selected", r() === "preview");
17675
- }), Zs("click", d, () => i("author")), Zs("click", p, () => i("preview")), mn(e, a), zo(s);
17637
+ u = yi(d, 1, "toggle-tab svelte-1xxrqx7", null, u, { active: r() === "author" }), bi(d, "aria-selected", r() === "author"), p = yi(f, 1, "toggle-tab svelte-1xxrqx7", null, p, { active: r() === "preview" }), bi(f, "aria-selected", r() === "preview");
17638
+ }), Zs("click", d, () => i("author")), Zs("click", f, () => i("preview")), mn(e, a), zo(s);
17676
17639
  }
17677
17640
  hd(["click"]);
17678
17641
  ki(mv, {
@@ -17689,7 +17652,7 @@ function ck(e, t) {
17689
17652
  let r = he(t, "mode", 15, "author"), o = he(t, "itemConfig", 7), i = he(t, "passageConfig", 7, null), s = he(t, "configuration", 23, () => ({})), a = he(t, "env", 23, () => ({
17690
17653
  mode: "gather",
17691
17654
  role: "student"
17692
- })), c = he(t, "session", 23, () => []), d = he(t, "addCorrectResponse", 7, !1), u = he(t, "customClassName", 7, ""), p = he(t, "passageContainerClass", 7, ""), f = he(t, "containerClass", 7, ""), m = he(t, "bundleTypeAuthor", 23, () => Kt.editor), h = he(t, "bundleTypePreview", 23, () => Kt.player), w = he(t, "loaderConfig", 7, $o), v = he(t, "onInsertImage", 7), g = he(t, "onDeleteImage", 7), C = he(t, "onInsertSound", 7), E = he(t, "onDeleteSound", 7), T = he(t, "onLoadComplete", 7), R = he(t, "onPlayerError", 7), z = he(t, "onSessionChanged", 7), F = he(t, "onModelUpdated", 7), ie = he(t, "baseHeadingLevel", 7, void 0), le = /* @__PURE__ */ ht(Zo(r()));
17655
+ })), c = he(t, "session", 23, () => []), d = he(t, "addCorrectResponse", 7, !1), u = he(t, "customClassName", 7, ""), f = he(t, "passageContainerClass", 7, ""), p = he(t, "containerClass", 7, ""), m = he(t, "bundleTypeAuthor", 23, () => Kt.editor), h = he(t, "bundleTypePreview", 23, () => Kt.player), w = he(t, "loaderConfig", 7, $o), v = he(t, "onInsertImage", 7), g = he(t, "onDeleteImage", 7), C = he(t, "onInsertSound", 7), E = he(t, "onDeleteSound", 7), T = he(t, "onLoadComplete", 7), R = he(t, "onPlayerError", 7), z = he(t, "onSessionChanged", 7), F = he(t, "onModelUpdated", 7), ie = he(t, "baseHeadingLevel", 7, void 0), le = /* @__PURE__ */ ht(Zo(r()));
17693
17656
  function H(W) {
17694
17657
  n.debug("[PiePreviewLayout] Mode changed:", W), be(le, W, !0), r(W);
17695
17658
  }
@@ -17747,16 +17710,16 @@ function ck(e, t) {
17747
17710
  u(W), pe();
17748
17711
  },
17749
17712
  get passageContainerClass() {
17750
- return p();
17713
+ return f();
17751
17714
  },
17752
17715
  set passageContainerClass(W = "") {
17753
- p(W), pe();
17716
+ f(W), pe();
17754
17717
  },
17755
17718
  get containerClass() {
17756
- return f();
17719
+ return p();
17757
17720
  },
17758
17721
  set containerClass(W = "") {
17759
- f(W), pe();
17722
+ p(W), pe();
17760
17723
  },
17761
17724
  get bundleTypeAuthor() {
17762
17725
  return m();
@@ -17859,10 +17822,10 @@ function ck(e, t) {
17859
17822
  return u();
17860
17823
  },
17861
17824
  get passageContainerClass() {
17862
- return p();
17825
+ return f();
17863
17826
  },
17864
17827
  get containerClass() {
17865
- return f();
17828
+ return p();
17866
17829
  },
17867
17830
  get bundleType() {
17868
17831
  return B(ee);
@@ -18088,7 +18051,7 @@ function gk(e, t) {
18088
18051
  set children(h) {
18089
18052
  s(h), pe();
18090
18053
  }
18091
- }, p = wT(), f = Ff(p), m = (h) => {
18054
+ }, f = wT(), p = Ff(f), m = (h) => {
18092
18055
  var w = mk(), v = Ff(w), g = Cr(v, 2), C = an(g), E = an(C), T = an(E, !0);
18093
18056
  Zt(E);
18094
18057
  var R = Cr(E, 2);
@@ -18102,9 +18065,9 @@ function gk(e, t) {
18102
18065
  o()?.apply(this, F);
18103
18066
  }), mn(h, w);
18104
18067
  };
18105
- return Ui(f, (h) => {
18068
+ return Ui(p, (h) => {
18106
18069
  n() && h(m);
18107
- }), mn(e, p), zo(u);
18070
+ }), mn(e, f), zo(u);
18108
18071
  }
18109
18072
  hd(["mousedown", "click"]);
18110
18073
  ki(gk, {
@@ -18134,8 +18097,8 @@ function vv(e, t) {
18134
18097
  })), o = he(t, "env", 23, () => ({
18135
18098
  mode: "gather",
18136
18099
  role: "student"
18137
- })), i = he(t, "addCorrectResponse", 7, !1), s = he(t, "showBottomBorder", 7, !1), a = he(t, "hosted", 7, !1), c = he(t, "debug", 7, ""), d = he(t, "customClassName", 7, ""), u = he(t, "containerClass", 7, ""), p = he(t, "externalStyleUrls", 7, ""), f = he(t, "loaderConfig", 7, $o), m = he(t, "strategy", 7, "iife"), h = he(t, "mode", 7, "view"), w = he(t, "configuration", 23, () => ({})), v = he(t, "authoringBackend", 7, "demo"), g = he(t, "allowedStyleOrigins", 7, ""), C = he(t, "loaderOptions", 23, () => ({})), E = he(t, "trustMarkup", 7, !1), T = he(t, "sanitizeMarkup", 7, null), R = he(t, "onInsertImage", 7, null), z = he(t, "onDeleteImage", 7, null), F = he(t, "onInsertSound", 7, null), ie = he(t, "onDeleteSound", 7, null);
18138
- const le = typeof window < "u" && typeof document < "u", H = /* @__PURE__ */ Nt(() => qT(m(), "iife")), q = /* @__PURE__ */ Nt(() => h() === "author" ? "author" : "view"), ee = /* @__PURE__ */ Nt(() => C()?.bundleHost || "https://proxy.pie-api.com/bundles/"), ce = /* @__PURE__ */ Nt(() => C()?.esmCdnUrl || "https://cdn.jsdelivr.net/npm"), re = /* @__PURE__ */ Nt(() => JSON.stringify(f()?.iifeBundleRetry || {})), te = 3e4, Z = /* @__PURE__ */ new Map(), Ie = /* @__PURE__ */ new Map();
18100
+ })), i = he(t, "addCorrectResponse", 7, !1), s = he(t, "showBottomBorder", 7, !1), a = he(t, "hosted", 7, !1), c = he(t, "debug", 7, ""), d = he(t, "customClassName", 7, ""), u = he(t, "containerClass", 7, ""), f = he(t, "externalStyleUrls", 7, ""), p = he(t, "loaderConfig", 7, $o), m = he(t, "strategy", 7, "iife"), h = he(t, "mode", 7, "view"), w = he(t, "configuration", 23, () => ({})), v = he(t, "authoringBackend", 7, "demo"), g = he(t, "allowedStyleOrigins", 7, ""), C = he(t, "loaderOptions", 23, () => ({})), E = he(t, "trustMarkup", 7, !1), T = he(t, "sanitizeMarkup", 7, null), R = he(t, "onInsertImage", 7, null), z = he(t, "onDeleteImage", 7, null), F = he(t, "onInsertSound", 7, null), ie = he(t, "onDeleteSound", 7, null);
18101
+ const le = typeof window < "u" && typeof document < "u", H = /* @__PURE__ */ Nt(() => qT(m(), "iife")), q = /* @__PURE__ */ Nt(() => h() === "author" ? "author" : "view"), ee = /* @__PURE__ */ Nt(() => C()?.bundleHost || "https://proxy.pie-api.com/bundles/"), ce = /* @__PURE__ */ Nt(() => C()?.esmCdnUrl || "https://cdn.jsdelivr.net/npm"), re = /* @__PURE__ */ Nt(() => JSON.stringify(p()?.iifeBundleRetry || {})), te = 3e4, Z = /* @__PURE__ */ new Map(), Ie = /* @__PURE__ */ new Map();
18139
18102
  function W(M, oe = "off") {
18140
18103
  return M === "off" || M === "on" ? M : oe;
18141
18104
  }
@@ -18194,7 +18157,7 @@ function vv(e, t) {
18194
18157
  }
18195
18158
  return Sn();
18196
18159
  }), X = Mn("pie-item-player", () => B(Me)), ke = /* @__PURE__ */ Nt(() => av({
18197
- player: { loaderConfig: f() },
18160
+ player: { loaderConfig: p() },
18198
18161
  component: "pie-item-player",
18199
18162
  debug: B(Me)
18200
18163
  }));
@@ -18280,8 +18243,8 @@ function vv(e, t) {
18280
18243
  bundleType: M,
18281
18244
  needsControllers: ye,
18282
18245
  debugEnabled: () => B(Me),
18283
- bundleRetry: f()?.iifeBundleRetry,
18284
- trackPageActions: f()?.trackPageActions,
18246
+ bundleRetry: p()?.iifeBundleRetry,
18247
+ trackPageActions: p()?.trackPageActions,
18285
18248
  instrumentationProvider: B(ke),
18286
18249
  onBundleRetryStatus: (ve) => {
18287
18250
  ge(oe) && (be(at, ve, !0), hn(new CustomEvent("bundle-retry-status", { detail: ve })));
@@ -18402,8 +18365,8 @@ function vv(e, t) {
18402
18365
  }
18403
18366
  };
18404
18367
  Kn(() => {
18405
- if (!p() || typeof p() != "string") return;
18406
- const M = p().split(",").map((oe) => oe.trim());
18368
+ if (!f() || typeof f() != "string") return;
18369
+ const M = f().split(",").map((oe) => oe.trim());
18407
18370
  for (const oe of M) oe && un(oe);
18408
18371
  }), Kn(() => {
18409
18372
  if (!B(Ge)?.resources?.stylesheets) return;
@@ -18511,16 +18474,16 @@ function vv(e, t) {
18511
18474
  u(M), pe();
18512
18475
  },
18513
18476
  get externalStyleUrls() {
18514
- return p();
18477
+ return f();
18515
18478
  },
18516
18479
  set externalStyleUrls(M = "") {
18517
- p(M), pe();
18480
+ f(M), pe();
18518
18481
  },
18519
18482
  get loaderConfig() {
18520
- return f();
18483
+ return p();
18521
18484
  },
18522
18485
  set loaderConfig(M = $o) {
18523
- f(M), pe();
18486
+ p(M), pe();
18524
18487
  },
18525
18488
  get strategy() {
18526
18489
  return m();
@@ -18631,7 +18594,7 @@ function vv(e, t) {
18631
18594
  return B(Pe);
18632
18595
  },
18633
18596
  get loaderConfig() {
18634
- return f();
18597
+ return p();
18635
18598
  },
18636
18599
  get mode() {
18637
18600
  return B(q);
@@ -19154,48 +19117,48 @@ var Bk = class {
19154
19117
  function $k(e) {
19155
19118
  const { coordinator: t, dispatchCoreInput: n } = e;
19156
19119
  let r = 0, o = null, i = null, s = !1;
19157
- const a = t.subscribeFrameworkErrors((p) => {
19120
+ const a = t.subscribeFrameworkErrors((f) => {
19158
19121
  try {
19159
19122
  n({
19160
19123
  kind: "framework-error",
19161
- error: p
19124
+ error: f
19162
19125
  });
19163
- } catch (f) {
19164
- console.warn("[CoordinatorBridge] framework-error dispatch failed:", f);
19126
+ } catch (p) {
19127
+ console.warn("[CoordinatorBridge] framework-error dispatch failed:", p);
19165
19128
  }
19166
19129
  });
19167
19130
  function c() {
19168
19131
  if (i) {
19169
19132
  try {
19170
19133
  i();
19171
- } catch (p) {
19172
- console.warn("[CoordinatorBridge] controller unsubscribe failed:", p);
19134
+ } catch (f) {
19135
+ console.warn("[CoordinatorBridge] controller unsubscribe failed:", f);
19173
19136
  }
19174
19137
  i = null;
19175
19138
  }
19176
19139
  }
19177
- async function d(p) {
19140
+ async function d(f) {
19178
19141
  if (s) return;
19179
19142
  r += 1;
19180
- const f = r;
19181
- o = p.cohort;
19143
+ const p = r;
19144
+ o = f.cohort;
19182
19145
  const m = await t.getOrCreateSectionController({
19183
- sectionId: p.cohort.sectionId,
19184
- attemptId: p.cohort.attemptId || void 0,
19146
+ sectionId: f.cohort.sectionId,
19147
+ attemptId: f.cohort.attemptId || void 0,
19185
19148
  input: {
19186
- section: p.section,
19187
- sectionId: p.cohort.sectionId,
19188
- assessmentId: p.assessmentId,
19189
- view: p.view
19149
+ section: f.section,
19150
+ sectionId: f.cohort.sectionId,
19151
+ assessmentId: f.assessmentId,
19152
+ view: f.view
19190
19153
  },
19191
19154
  updateExisting: !0,
19192
- createDefaultController: p.createDefaultController
19155
+ createDefaultController: f.createDefaultController
19193
19156
  });
19194
- if (f !== r || s) return;
19195
- c(), p.onControllerResolved?.(m);
19157
+ if (p !== r || s) return;
19158
+ c(), f.onControllerResolved?.(m);
19196
19159
  const h = m.getCompositionModel;
19197
- p.onCompositionChanged?.(h?.()), typeof m.subscribe == "function" && (i = m.subscribe((w) => {
19198
- f !== r || s || p.onCompositionChanged?.(h?.());
19160
+ f.onCompositionChanged?.(h?.()), typeof m.subscribe == "function" && (i = m.subscribe((w) => {
19161
+ p !== r || s || f.onCompositionChanged?.(h?.());
19199
19162
  })), n({ kind: "section-controller-resolved" });
19200
19163
  }
19201
19164
  async function u() {
@@ -19203,17 +19166,17 @@ function $k(e) {
19203
19166
  s = !0, r += 1, c();
19204
19167
  try {
19205
19168
  a();
19206
- } catch (f) {
19207
- console.warn("[CoordinatorBridge] framework-error unsubscribe failed:", f);
19169
+ } catch (p) {
19170
+ console.warn("[CoordinatorBridge] framework-error unsubscribe failed:", p);
19208
19171
  }
19209
- const p = o;
19210
- if (o = null, p) try {
19172
+ const f = o;
19173
+ if (o = null, f) try {
19211
19174
  await t.disposeSectionController({
19212
- sectionId: p.sectionId,
19213
- attemptId: p.attemptId || void 0
19175
+ sectionId: f.sectionId,
19176
+ attemptId: f.attemptId || void 0
19214
19177
  });
19215
- } catch (f) {
19216
- console.warn("[CoordinatorBridge] section-controller dispose failed:", f);
19178
+ } catch (p) {
19179
+ console.warn("[CoordinatorBridge] section-controller dispose failed:", p);
19217
19180
  }
19218
19181
  }
19219
19182
  return {
@@ -19226,7 +19189,7 @@ function Fk(e) {
19226
19189
  let r = e.host;
19227
19190
  const o = e.now ?? (() => (/* @__PURE__ */ new Date()).toISOString());
19228
19191
  function i(u) {
19229
- const p = {
19192
+ const f = {
19230
19193
  stage: u.stage,
19231
19194
  status: u.status,
19232
19195
  runtimeId: t,
@@ -19235,10 +19198,10 @@ function Fk(e) {
19235
19198
  timestamp: o(),
19236
19199
  sourceCe: n
19237
19200
  };
19238
- r.dispatchEvent(new CustomEvent("pie-stage-change", { detail: p }));
19201
+ r.dispatchEvent(new CustomEvent("pie-stage-change", { detail: f }));
19239
19202
  }
19240
19203
  function s(u) {
19241
- const p = {
19204
+ const f = {
19242
19205
  runtimeId: t,
19243
19206
  sectionId: u.cohort.sectionId,
19244
19207
  attemptId: u.cohort.attemptId ? u.cohort.attemptId : void 0,
@@ -19247,7 +19210,7 @@ function Fk(e) {
19247
19210
  timestamp: o(),
19248
19211
  sourceCe: n
19249
19212
  };
19250
- r.dispatchEvent(new CustomEvent("pie-loading-complete", { detail: p }));
19213
+ r.dispatchEvent(new CustomEvent("pie-loading-complete", { detail: f }));
19251
19214
  }
19252
19215
  function a(u) {
19253
19216
  r.dispatchEvent(new CustomEvent("framework-error", { detail: u.error }));
@@ -19455,7 +19418,7 @@ function _v(e, t) {
19455
19418
  runtime: e.runtime,
19456
19419
  tools: d,
19457
19420
  enabledTools: e.enabledTools
19458
- }), p = qk({
19421
+ }), f = qk({
19459
19422
  assessmentId: n,
19460
19423
  playerType: r,
19461
19424
  player: o,
@@ -19472,9 +19435,9 @@ function _v(e, t) {
19472
19435
  });
19473
19436
  return {
19474
19437
  effectiveToolsConfig: u,
19475
- effectiveRuntime: p,
19438
+ effectiveRuntime: f,
19476
19439
  playerRuntime: t.resolvePlayerRuntime({
19477
- effectiveRuntime: p,
19440
+ effectiveRuntime: f,
19478
19441
  playerType: r,
19479
19442
  env: c
19480
19443
  })
@@ -19572,25 +19535,25 @@ var eC = /* @__PURE__ */ Tt('<div class="pie-section-player-content-card svelte-
19572
19535
  };
19573
19536
  function rC(e, t) {
19574
19537
  ln(t, !0), vn(e, nC);
19575
- let n = b(t, "items", 23, () => []), r = b(t, "compositionModel", 7), o = b(t, "resolvedPlayerEnv", 23, () => ({})), i = b(t, "resolvedPlayerAttributes", 23, () => ({})), s = b(t, "resolvedPlayerProps", 23, () => ({})), a = b(t, "playerStrategy", 7, "preloaded"), c = b(t, "itemToolbarTools", 7, ""), d = b(t, "toolRegistry", 7, null), u = b(t, "hostButtons", 23, () => []), p = b(t, "iifeBundleHost", 7, ""), f = b(t, "preloadedRenderables", 23, () => []), m = b(t, "preloadComponentTag", 7, "pie-section-player-items-pane"), h = b(t, "preloadEnabled", 7, !0);
19538
+ let n = b(t, "items", 23, () => []), r = b(t, "compositionModel", 7), o = b(t, "resolvedPlayerEnv", 23, () => ({})), i = b(t, "resolvedPlayerAttributes", 23, () => ({})), s = b(t, "resolvedPlayerProps", 23, () => ({})), a = b(t, "playerStrategy", 7, "preloaded"), c = b(t, "itemToolbarTools", 7, ""), d = b(t, "toolRegistry", 7, null), u = b(t, "hostButtons", 23, () => []), f = b(t, "iifeBundleHost", 7, ""), p = b(t, "preloadedRenderables", 23, () => []), m = b(t, "preloadComponentTag", 7, "pie-section-player-items-pane"), h = b(t, "preloadEnabled", 7, !0);
19576
19539
  const w = Fo(), v = /* @__PURE__ */ V(() => bv(m())), g = /* @__PURE__ */ V(() => JSON.stringify({
19577
19540
  preloadEnabled: h(),
19578
19541
  strategy: a(),
19579
- renderables: f().map((H, q) => {
19542
+ renderables: p().map((H, q) => {
19580
19543
  const ee = H ?? {}, ce = typeof ee.id == "string" && ee.id ? ee.id : `renderable-${q}`, re = ee.config?.elements ?? {};
19581
19544
  return `${ce}:${Object.entries(re ?? {}).filter(([te, Z]) => typeof te == "string" && te.length > 0 && typeof Z == "string" && Z.length > 0).sort(([te], [Z]) => te.localeCompare(Z)).map(([te, Z]) => `${te}=${Z}`).join(",")}`;
19582
19545
  }),
19583
- iifeBundleHost: p(),
19546
+ iifeBundleHost: f(),
19584
19547
  mode: s()?.mode ?? null,
19585
19548
  hosted: s()?.hosted ?? null,
19586
19549
  envMode: o()?.mode ?? null,
19587
19550
  loaderOptions: s()?.loaderOptions ?? null
19588
19551
  })), C = nE(() => (l(g), h() ? qt(() => Pk({
19589
19552
  strategy: a(),
19590
- renderables: f(),
19553
+ renderables: p(),
19591
19554
  resolvedPlayerProps: s(),
19592
19555
  resolvedPlayerEnv: o(),
19593
- iifeBundleHost: p(),
19556
+ iifeBundleHost: f(),
19594
19557
  logger: l(v),
19595
19558
  onBundleRetryStatus: (H) => {
19596
19559
  let q = null;
@@ -19599,7 +19562,7 @@ function rC(e, t) {
19599
19562
  strategy: a(),
19600
19563
  resolvedPlayerProps: s(),
19601
19564
  resolvedPlayerEnv: o(),
19602
- iifeBundleHost: p()
19565
+ iifeBundleHost: f()
19603
19566
  });
19604
19567
  } catch {
19605
19568
  q = null;
@@ -19614,7 +19577,7 @@ function rC(e, t) {
19614
19577
  strategy: a(),
19615
19578
  bundleType: Lp(q),
19616
19579
  bundleHost: Np(q),
19617
- renderablesCount: f().length
19580
+ renderablesCount: p().length
19618
19581
  });
19619
19582
  }
19620
19583
  })) : qt(() => Promise.resolve()))), E = /* @__PURE__ */ V(() => C.current.status === "resolved");
@@ -19630,7 +19593,7 @@ function rC(e, t) {
19630
19593
  strategy: a(),
19631
19594
  resolvedPlayerProps: s(),
19632
19595
  resolvedPlayerEnv: o(),
19633
- iifeBundleHost: p()
19596
+ iifeBundleHost: f()
19634
19597
  });
19635
19598
  } catch {
19636
19599
  ce = null;
@@ -19642,7 +19605,7 @@ function rC(e, t) {
19642
19605
  strategy: a(),
19643
19606
  bundleType: Lp(ce),
19644
19607
  bundleHost: Np(ce),
19645
- renderablesCount: f().length
19608
+ renderablesCount: p().length
19646
19609
  });
19647
19610
  });
19648
19611
  const T = /* @__PURE__ */ V(() => Number.isFinite(r()?.currentItemIndex) ? Math.max(0, Number(r().currentItemIndex)) : -1);
@@ -19702,16 +19665,16 @@ function rC(e, t) {
19702
19665
  u(H), y();
19703
19666
  },
19704
19667
  get iifeBundleHost() {
19705
- return p();
19668
+ return f();
19706
19669
  },
19707
19670
  set iifeBundleHost(H = "") {
19708
- p(H), y();
19671
+ f(H), y();
19709
19672
  },
19710
19673
  get preloadedRenderables() {
19711
- return f();
19674
+ return p();
19712
19675
  },
19713
19676
  set preloadedRenderables(H = []) {
19714
- f(H), y();
19677
+ p(H), y();
19715
19678
  },
19716
19679
  get preloadComponentTag() {
19717
19680
  return m();
@@ -19805,7 +19768,7 @@ var oC = /* @__PURE__ */ Tt('<div class="pie-section-player-content-card svelte-
19805
19768
  function aC(e, t) {
19806
19769
  ln(t, !0), vn(e, sC);
19807
19770
  let n = b(t, "passages", 23, () => []), r = b(t, "elementsLoaded", 7, !1), o = b(t, "resolvedPlayerEnv", 23, () => ({})), i = b(t, "resolvedPlayerAttributes", 23, () => ({})), s = b(t, "resolvedPlayerProps", 23, () => ({})), a = b(t, "playerStrategy", 7, "preloaded"), c = b(t, "passageToolbarTools", 7, ""), d = b(t, "toolRegistry", 7, null), u = b(t, "hostButtons", 23, () => []);
19808
- var p = {
19771
+ var f = {
19809
19772
  get passages() {
19810
19773
  return n();
19811
19774
  },
@@ -19860,7 +19823,7 @@ function aC(e, t) {
19860
19823
  set hostButtons(v = []) {
19861
19824
  u(v), y();
19862
19825
  }
19863
- }, f = mo(), m = nn(f), h = (v) => {
19826
+ }, p = mo(), m = nn(p), h = (v) => {
19864
19827
  var g = oC();
19865
19828
  Ze(v, g);
19866
19829
  }, w = (v) => {
@@ -19878,7 +19841,7 @@ function aC(e, t) {
19878
19841
  };
19879
19842
  return wn(m, (v) => {
19880
19843
  r() ? v(w, -1) : v(h);
19881
- }), Ze(e, f), cn(p);
19844
+ }), Ze(e, p), cn(f);
19882
19845
  }
19883
19846
  customElements.define("pie-section-player-passages-pane", pn(aC, {
19884
19847
  passages: { type: "Object" },
@@ -20162,23 +20125,23 @@ function mC(e) {
20162
20125
  }
20163
20126
  function Up(e, t, n) {
20164
20127
  const r = e, o = gC(e, n.stateKey), i = Object.keys(t.attributes || {}), s = Object.keys(t.props || {}), a = o.attributeKeys || [], c = o.propKeys || [];
20165
- for (const f of a) i.includes(f) || e.removeAttribute(f);
20166
- for (const f of c) s.includes(f) || delete r[f];
20128
+ for (const p of a) i.includes(p) || e.removeAttribute(p);
20129
+ for (const p of c) s.includes(p) || delete r[p];
20167
20130
  const d = jp(t.config);
20168
20131
  o.configSignature !== d && (r.config = t.config);
20169
20132
  const u = jp(t.env);
20170
20133
  o.envSignature !== u && (r.env = t.env);
20171
- const p = hC(t.session);
20172
- t.session !== void 0 && o.sessionSignature !== p && (r.session = t.session);
20173
- for (const [f, m] of Object.entries(t.attributes || {})) e.setAttribute(f, String(m));
20174
- for (const [f, m] of Object.entries(t.props || {})) r[f] = m;
20134
+ const f = hC(t.session);
20135
+ t.session !== void 0 && o.sessionSignature !== f && (r.session = t.session);
20136
+ for (const [p, m] of Object.entries(t.attributes || {})) e.setAttribute(p, String(m));
20137
+ for (const [p, m] of Object.entries(t.props || {})) r[p] = m;
20175
20138
  vC(e, n.stateKey, {
20176
20139
  config: t.config,
20177
20140
  configSignature: d,
20178
20141
  env: t.env,
20179
20142
  envSignature: u,
20180
20143
  session: n.includeSessionRefInState ? t.session : void 0,
20181
- sessionSignature: p,
20144
+ sessionSignature: f,
20182
20145
  attributeKeys: i,
20183
20146
  propKeys: s
20184
20147
  });
@@ -20314,13 +20277,13 @@ function MC(e, t) {
20314
20277
  preloaded: "pie-item-player",
20315
20278
  custom: ""
20316
20279
  };
20317
- let c = b(t, "assessmentId", 7, ""), d = b(t, "section", 7, null), u = b(t, "sectionId", 7, ""), p = b(t, "attemptId", 7, ""), f = b(t, "env", 23, () => ({})), m = b(t, "lazyInit", 7, !0), h = b(t, "toolConfigStrictness", 7, "error"), w = b(t, "tools", 23, () => ({})), v = b(t, "enabledTools", 7, ""), g = b(t, "toolRegistry", 7, null), C = b(t, "accessibility", 23, () => ({})), E = b(t, "player", 7, null), T = b(t, "playerType", 7, ""), R = b(t, "coordinator", 7, null), z = b(t, "createSectionController", 7, null), F = b(t, "onFrameworkError", 7, null), ie = b(t, "errorRenderer", 7, null), le = b(t, "onStageChange", 7, null), H = b(t, "assessment", 7, null), q = b(t, "currentItemRef", 7, null), ee = b(t, "qtiEnforcement", 7, null), ce = b(t, "isolation", 7, "inherit"), re = /* @__PURE__ */ Se(null), te = /* @__PURE__ */ Se(null), Z = /* @__PURE__ */ Se(null), Ie = null, W = null, Ne = null, se = null, ae = null, Be = /* @__PURE__ */ Se(0), Y = /* @__PURE__ */ Se(null), Me = /* @__PURE__ */ Se(null), X = /* @__PURE__ */ Se(null), ke = /* @__PURE__ */ Se("Unable to initialize assessment toolkit."), qe = /* @__PURE__ */ Se(sr([])), Ue = "", at = "", Ge = /* @__PURE__ */ Se(""), rt = null, nt = !1, Ce = null, $e = [];
20280
+ let c = b(t, "assessmentId", 7, ""), d = b(t, "section", 7, null), u = b(t, "sectionId", 7, ""), f = b(t, "attemptId", 7, ""), p = b(t, "env", 23, () => ({})), m = b(t, "lazyInit", 7, !0), h = b(t, "toolConfigStrictness", 7, "error"), w = b(t, "tools", 23, () => ({})), v = b(t, "enabledTools", 7, ""), g = b(t, "toolRegistry", 7, null), C = b(t, "accessibility", 23, () => ({})), E = b(t, "player", 7, null), T = b(t, "playerType", 7, ""), R = b(t, "coordinator", 7, null), z = b(t, "createSectionController", 7, null), F = b(t, "onFrameworkError", 7, null), ie = b(t, "errorRenderer", 7, null), le = b(t, "onStageChange", 7, null), H = b(t, "assessment", 7, null), q = b(t, "currentItemRef", 7, null), ee = b(t, "qtiEnforcement", 7, null), ce = b(t, "isolation", 7, "inherit"), re = /* @__PURE__ */ Se(null), te = /* @__PURE__ */ Se(null), Z = /* @__PURE__ */ Se(null), Ie = null, W = null, Ne = null, se = null, ae = null, Be = /* @__PURE__ */ Se(0), Y = /* @__PURE__ */ Se(null), Me = /* @__PURE__ */ Se(null), X = /* @__PURE__ */ Se(null), ke = /* @__PURE__ */ Se("Unable to initialize assessment toolkit."), qe = /* @__PURE__ */ Se(sr([])), Ue = "", at = "", Ge = /* @__PURE__ */ Se(""), rt = null, nt = !1, Ce = null, $e = [];
20318
20281
  const Le = IC(), Fe = Gb({
20319
20282
  sourceCe: "pie-assessment-toolkit",
20320
20283
  sourceCeShape: "toolkit",
20321
20284
  runtimeId: n,
20322
20285
  sectionId: qt(() => u() || void 0),
20323
- attemptId: qt(() => p() || void 0),
20286
+ attemptId: qt(() => f() || void 0),
20324
20287
  emit: (_) => {
20325
20288
  SC({
20326
20289
  isSuppressed: () => l(o) !== null,
@@ -20329,7 +20292,7 @@ function MC(e, t) {
20329
20292
  }, _);
20330
20293
  }
20331
20294
  });
20332
- let j = /* @__PURE__ */ Se(sr(qt(() => `${u()}|${p()}`))), ge = /* @__PURE__ */ Se(!1), Ye = /* @__PURE__ */ Se(!1), J = /* @__PURE__ */ Se(!1), He = /* @__PURE__ */ Se(!1);
20295
+ let j = /* @__PURE__ */ Se(sr(qt(() => `${u()}|${f()}`))), ge = /* @__PURE__ */ Se(!1), Ye = /* @__PURE__ */ Se(!1), J = /* @__PURE__ */ Se(!1), He = /* @__PURE__ */ Se(!1);
20333
20296
  function Ee() {
20334
20297
  if (!l(re)) return null;
20335
20298
  const _ = l(re).getRootNode();
@@ -20588,7 +20551,7 @@ function MC(e, t) {
20588
20551
  }
20589
20552
  });
20590
20553
  });
20591
- const It = /* @__PURE__ */ V(() => c() || l(Ae)?.assessmentId || ""), Te = /* @__PURE__ */ V(() => u() || d()?.identifier || `section-${l(It) || "default"}`), M = /* @__PURE__ */ V(() => Yt(f())), oe = /* @__PURE__ */ V(() => $t(l(M))), ye = /* @__PURE__ */ V(() => St(E(), T())), ve = /* @__PURE__ */ V(() => ca({
20554
+ const It = /* @__PURE__ */ V(() => c() || l(Ae)?.assessmentId || ""), Te = /* @__PURE__ */ V(() => u() || d()?.identifier || `section-${l(It) || "default"}`), M = /* @__PURE__ */ V(() => Yt(p())), oe = /* @__PURE__ */ V(() => $t(l(M))), ye = /* @__PURE__ */ V(() => St(E(), T())), ve = /* @__PURE__ */ V(() => ca({
20592
20555
  player: l(ye),
20593
20556
  component: "pie-assessment-toolkit"
20594
20557
  })), Pe = /* @__PURE__ */ V(() => {
@@ -20682,7 +20645,7 @@ function MC(e, t) {
20682
20645
  parentRuntimeId: _
20683
20646
  }));
20684
20647
  }), Re(() => {
20685
- l(Te), p(), EC(Le);
20648
+ l(Te), f(), EC(Le);
20686
20649
  }), Re(() => {
20687
20650
  if (!(!l(Ve) || !l(De)))
20688
20651
  return se = new Bo(l(Ve), {
@@ -20716,7 +20679,7 @@ function MC(e, t) {
20716
20679
  instrumentationLayer: "toolkit",
20717
20680
  assessmentId: l(It),
20718
20681
  sectionId: l(Te),
20719
- attemptId: p() || void 0
20682
+ attemptId: f() || void 0
20720
20683
  }
20721
20684
  });
20722
20685
  }), Re(() => {
@@ -20734,7 +20697,7 @@ function MC(e, t) {
20734
20697
  instrumentationLayer: "toolkit",
20735
20698
  assessmentId: l(It),
20736
20699
  sectionId: l(Te),
20737
- attemptId: p() || void 0,
20700
+ attemptId: f() || void 0,
20738
20701
  component: "pie-assessment-toolkit",
20739
20702
  sourceEventName: _,
20740
20703
  timestamp: xe
@@ -20757,7 +20720,7 @@ function MC(e, t) {
20757
20720
  section: d(),
20758
20721
  sectionId: l(Te),
20759
20722
  assessmentId: l(It),
20760
- attemptId: p() || void 0,
20723
+ attemptId: f() || void 0,
20761
20724
  view: l(oe),
20762
20725
  createDefaultController: un,
20763
20726
  onCompositionChanged: (K) => {
@@ -20889,11 +20852,11 @@ function MC(e, t) {
20889
20852
  Fe.getCurrent() !== null && Fe.enter("disposed");
20890
20853
  });
20891
20854
  }), Re(() => {
20892
- const _ = `${u()}|${p()}`;
20855
+ const _ = `${u()}|${f()}`;
20893
20856
  qt(() => {
20894
20857
  _ !== l(j) && (Fe.getCurrent() !== null && Fe.enter("disposed"), Fe.reset({
20895
20858
  sectionId: u() || void 0,
20896
- attemptId: p() || void 0
20859
+ attemptId: f() || void 0
20897
20860
  }), ne(j, _), ne(ge, !1), ne(Ye, !1), ne(J, !1), ne(He, !1));
20898
20861
  });
20899
20862
  }), Re(() => {
@@ -20961,16 +20924,16 @@ function MC(e, t) {
20961
20924
  u(_), y();
20962
20925
  },
20963
20926
  get attemptId() {
20964
- return p();
20927
+ return f();
20965
20928
  },
20966
20929
  set attemptId(_) {
20967
- p(_), y();
20930
+ f(_), y();
20968
20931
  },
20969
20932
  get env() {
20970
- return f();
20933
+ return p();
20971
20934
  },
20972
20935
  set env(_) {
20973
- f(_), y();
20936
+ p(_), y();
20974
20937
  },
20975
20938
  get lazyInit() {
20976
20939
  return m();
@@ -21190,23 +21153,23 @@ var OC = class {
21190
21153
  adapterItemRefs: []
21191
21154
  };
21192
21155
  const n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), i = (e.rubricBlocks || []).filter((u) => u.view.includes(t)), s = i.filter((u) => u.class === "instructions");
21193
- for (const [u, p] of (e.rubricBlocks || []).entries()) if (p.class === "stimulus" && p.passage && (p.view.includes("candidate") || p.view.includes(t))) {
21194
- const f = this.normalizePassageEntity(p.passage, r, `passage-${u + 1}`);
21195
- n.set(f.id, f);
21156
+ for (const [u, f] of (e.rubricBlocks || []).entries()) if (f.class === "stimulus" && f.passage && (f.view.includes("candidate") || f.view.includes(t))) {
21157
+ const p = this.normalizePassageEntity(f.passage, r, `passage-${u + 1}`);
21158
+ n.set(p.id, p);
21196
21159
  }
21197
21160
  const a = [], c = [];
21198
- for (const [u, p] of (e.assessmentItemRefs || []).entries()) {
21199
- if (!p.item) continue;
21200
- const f = p.item.id || p.identifier || p.item.name || `item-${u + 1}`, m = this.createUniqueId(String(f), o, `item-${u + 1}`), h = p.item.passage && typeof p.item.passage == "object" ? (() => {
21201
- const g = typeof p.item?.passage?.id == "string" ? p.item.passage.id.trim() : "";
21202
- return g && n.has(g) ? n.get(g) : this.normalizePassageEntity(p.item.passage, r, `passage-${u + 1}`);
21161
+ for (const [u, f] of (e.assessmentItemRefs || []).entries()) {
21162
+ if (!f.item) continue;
21163
+ const p = f.item.id || f.identifier || f.item.name || `item-${u + 1}`, m = this.createUniqueId(String(p), o, `item-${u + 1}`), h = f.item.passage && typeof f.item.passage == "object" ? (() => {
21164
+ const g = typeof f.item?.passage?.id == "string" ? f.item.passage.id.trim() : "";
21165
+ return g && n.has(g) ? n.get(g) : this.normalizePassageEntity(f.item.passage, r, `passage-${u + 1}`);
21203
21166
  })() : void 0, w = {
21204
- ...p.item,
21167
+ ...f.item,
21205
21168
  id: m,
21206
- passage: h || p.item.passage
21169
+ passage: h || f.item.passage
21207
21170
  };
21208
21171
  a.push(w);
21209
- const v = p.identifier || m || p.item.name || "";
21172
+ const v = f.identifier || m || f.item.name || "";
21210
21173
  c.push({
21211
21174
  identifier: v,
21212
21175
  item: {
@@ -21224,7 +21187,7 @@ var OC = class {
21224
21187
  flavor: "item",
21225
21188
  entity: u
21226
21189
  })),
21227
- ...i.filter((u) => u.class === "rubric").map((u, p) => u?.passage ? this.normalizePassageEntity(u.passage, r, `rubric-passage-${p + 1}`) : null).filter((u) => !!u?.config).map((u) => ({
21190
+ ...i.filter((u) => u.class === "rubric").map((u, f) => u?.passage ? this.normalizePassageEntity(u.passage, r, `rubric-passage-${f + 1}`) : null).filter((u) => !!u?.config).map((u) => ({
21228
21191
  flavor: "rubric",
21229
21192
  entity: u
21230
21193
  }))
@@ -21808,11 +21771,11 @@ var OC = class {
21808
21771
  };
21809
21772
  function zC(e, t) {
21810
21773
  ln(t, !0), vn(e, HC);
21811
- let n = b(t, "assessmentId", 7, Bp), r = b(t, "runtime", 7, null), o = b(t, "section", 7, null), i = b(t, "sectionId", 7, ""), s = b(t, "attemptId", 7, ""), a = b(t, "playerType", 7, $p), c = b(t, "player", 7, null), d = b(t, "lazyInit", 7, !0), u = b(t, "tools", 7, null), p = b(t, "toolRegistry", 7, null), f = b(t, "accessibility", 7, null), m = b(t, "coordinator", 7, null), h = b(t, "toolConfigStrictness", 7, void 0), w = b(t, "onFrameworkError", 7, void 0), v = b(t, "onStageChange", 7, void 0), g = b(t, "env", 7, null), C = /* @__PURE__ */ Se(null), E = /* @__PURE__ */ Se(null), T = /* @__PURE__ */ Se(-1);
21774
+ let n = b(t, "assessmentId", 7, Bp), r = b(t, "runtime", 7, null), o = b(t, "section", 7, null), i = b(t, "sectionId", 7, ""), s = b(t, "attemptId", 7, ""), a = b(t, "playerType", 7, $p), c = b(t, "player", 7, null), d = b(t, "lazyInit", 7, !0), u = b(t, "tools", 7, null), f = b(t, "toolRegistry", 7, null), p = b(t, "accessibility", 7, null), m = b(t, "coordinator", 7, null), h = b(t, "toolConfigStrictness", 7, void 0), w = b(t, "onFrameworkError", 7, void 0), v = b(t, "onStageChange", 7, void 0), g = b(t, "env", 7, null), C = /* @__PURE__ */ Se(null), E = /* @__PURE__ */ Se(null), T = /* @__PURE__ */ Se(-1);
21812
21775
  const R = Fo(), z = /* @__PURE__ */ V(() => r()?.assessmentId ?? n()), F = /* @__PURE__ */ V(() => r()?.playerType ?? a()), ie = /* @__PURE__ */ V(() => r()?.player ?? c()), le = /* @__PURE__ */ V(() => r()?.lazyInit ?? d()), H = /* @__PURE__ */ V(() => r()?.tools ?? u()), q = /* @__PURE__ */ V(() => {
21813
21776
  const Q = r()?.toolConfigStrictness ?? h();
21814
21777
  return Q === "off" || Q === "warn" || Q === "error" ? Q : "error";
21815
- }), ee = /* @__PURE__ */ V(() => r()?.accessibility ?? f()), ce = /* @__PURE__ */ V(() => r()?.coordinator ?? m()), re = /* @__PURE__ */ V(() => r()?.createSectionController), te = /* @__PURE__ */ V(() => r()?.isolation ?? "inherit"), Z = /* @__PURE__ */ V(() => r()?.env ?? g() ?? Ev), Ie = /* @__PURE__ */ V(() => Tv({
21778
+ }), ee = /* @__PURE__ */ V(() => r()?.accessibility ?? p()), ce = /* @__PURE__ */ V(() => r()?.coordinator ?? m()), re = /* @__PURE__ */ V(() => r()?.createSectionController), te = /* @__PURE__ */ V(() => r()?.isolation ?? "inherit"), Z = /* @__PURE__ */ V(() => r()?.env ?? g() ?? Ev), Ie = /* @__PURE__ */ V(() => Tv({
21816
21779
  runtime: r(),
21817
21780
  onFrameworkError: w()
21818
21781
  })), W = /* @__PURE__ */ V(() => r()?.onStageChange ?? v()), Ne = /* @__PURE__ */ V(() => i() || l(se)?.identifier || "");
@@ -22023,16 +21986,16 @@ function zC(e, t) {
22023
21986
  u(Q), y();
22024
21987
  },
22025
21988
  get toolRegistry() {
22026
- return p();
21989
+ return f();
22027
21990
  },
22028
21991
  set toolRegistry(Q = null) {
22029
- p(Q), y();
21992
+ f(Q), y();
22030
21993
  },
22031
21994
  get accessibility() {
22032
- return f();
21995
+ return p();
22033
21996
  },
22034
21997
  set accessibility(Q = null) {
22035
- f(Q), y();
21998
+ p(Q), y();
22036
21999
  },
22037
22000
  get coordinator() {
22038
22001
  return m();
@@ -22065,7 +22028,7 @@ function zC(e, t) {
22065
22028
  g(Q), y();
22066
22029
  }
22067
22030
  }, Ee = FC();
22068
- A(() => x(Ee, "assessment-id", l(z))), A(() => x(Ee, "section", l(se))), A(() => x(Ee, "section-id", i())), A(() => x(Ee, "attempt-id", s())), A(() => x(Ee, "player-type", l(F))), A(() => x(Ee, "player", l(ie))), A(() => x(Ee, "env", l(Z))), A(() => x(Ee, "lazy-init", l(le))), A(() => x(Ee, "tool-config-strictness", l(q))), A(() => x(Ee, "tools", l(H))), A(() => x(Ee, "toolRegistry", p())), A(() => x(Ee, "accessibility", l(ee))), A(() => x(Ee, "coordinator", l(ce))), A(() => x(Ee, "isolation", l(te))), Vn(Ee, 1, "svelte-19m8zbn");
22031
+ A(() => x(Ee, "assessment-id", l(z))), A(() => x(Ee, "section", l(se))), A(() => x(Ee, "section-id", i())), A(() => x(Ee, "attempt-id", s())), A(() => x(Ee, "player-type", l(F))), A(() => x(Ee, "player", l(ie))), A(() => x(Ee, "env", l(Z))), A(() => x(Ee, "lazy-init", l(le))), A(() => x(Ee, "tool-config-strictness", l(q))), A(() => x(Ee, "tools", l(H))), A(() => x(Ee, "toolRegistry", f())), A(() => x(Ee, "accessibility", l(ee))), A(() => x(Ee, "coordinator", l(ce))), A(() => x(Ee, "isolation", l(te))), Vn(Ee, 1, "svelte-19m8zbn");
22069
22032
  var Ve = pt(Ee), ct = (Q) => {
22070
22033
  var we = $C();
22071
22034
  x(we, "enabled", !0), A(() => x(we, "ttsService", l(E).ttsService)), A(() => x(we, "highlightCoordinator", l(E).highlightCoordinator)), Ze(Q, we);
@@ -22138,7 +22101,7 @@ function GC(e, t) {
22138
22101
  };
22139
22102
  return q(), H.addEventListener("change", q), () => H.removeEventListener("change", q);
22140
22103
  });
22141
- const d = /* @__PURE__ */ V(() => l(c) && (o() === "left" || o() === "right") ? "top" : o()), u = /* @__PURE__ */ V(() => Ed(r(), !1) && l(d) !== "none"), p = /* @__PURE__ */ V(() => l(d) === "top"), f = /* @__PURE__ */ V(() => l(d) === "bottom"), m = /* @__PURE__ */ V(() => l(d) === "left" || l(d) === "right");
22104
+ const d = /* @__PURE__ */ V(() => l(c) && (o() === "left" || o() === "right") ? "top" : o()), u = /* @__PURE__ */ V(() => Ed(r(), !1) && l(d) !== "none"), f = /* @__PURE__ */ V(() => l(d) === "top"), p = /* @__PURE__ */ V(() => l(d) === "bottom"), m = /* @__PURE__ */ V(() => l(d) === "left" || l(d) === "right");
22142
22105
  var h = {
22143
22106
  get showToolbar() {
22144
22107
  return r();
@@ -22175,7 +22138,7 @@ function GC(e, t) {
22175
22138
  A(() => x(q, "position", l(d))), A(() => x(q, "enabled-tools", i())), A(() => x(q, "toolRegistry", s())), A(() => x(q, "hostButtons", a())), A(() => Vn(q, 1, `pie-section-player-toolbar pie-section-player-toolbar--${l(d)}`, "svelte-klnow4")), Ze(H, q);
22176
22139
  };
22177
22140
  wn(v, (H) => {
22178
- l(u) && l(p) && H(g);
22141
+ l(u) && l(f) && H(g);
22179
22142
  });
22180
22143
  var C = Bt(v, 2), E = pt(C), T = (H) => {
22181
22144
  var q = UC(), ee = pt(q);
@@ -22198,7 +22161,7 @@ function GC(e, t) {
22198
22161
  A(() => x(q, "position", l(d))), A(() => x(q, "enabled-tools", i())), A(() => x(q, "toolRegistry", s())), A(() => x(q, "hostButtons", a())), A(() => Vn(q, 1, `pie-section-player-toolbar pie-section-player-toolbar--${l(d)}`, "svelte-klnow4")), Ze(H, q);
22199
22162
  };
22200
22163
  return wn(ie, (H) => {
22201
- l(u) && l(f) && H(le);
22164
+ l(u) && l(p) && H(le);
22202
22165
  }), ft(w), A(() => {
22203
22166
  Vn(w, 1, `pie-section-player-shell pie-section-player-shell--${l(d)}`, "svelte-klnow4"), Vn(C, 1, `pie-section-player-layout-body ${l(u) && l(m) ? `pie-section-player-layout-body--inline pie-section-player-layout-body--inline-${l(d)}` : ""}`, "svelte-klnow4");
22204
22167
  }), Ze(e, w), cn(h);
@@ -22227,7 +22190,7 @@ var YC = /* @__PURE__ */ Tt('<div class="pie-section-player-layout-scaffold-anch
22227
22190
  };
22228
22191
  function Rv(e, t) {
22229
22192
  ln(t, !0), vn(e, XC);
22230
- let n = b(t, "runtime", 7, null), r = b(t, "section", 7, null), o = b(t, "sectionId", 7, ""), i = b(t, "attemptId", 7, ""), s = b(t, "showToolbar", 7, "false"), a = b(t, "toolbarPosition", 7, "right"), c = b(t, "enabledTools", 7, ""), d = b(t, "toolRegistry", 7, null), u = b(t, "sectionHostButtons", 23, () => []), p = b(t, "focusPolicy", 7, na), f = b(t, "cardRenderContext", 7, null), m = b(t, "onCompositionChanged", 7), h = b(t, "onSectionReady", 7), w = b(t, "onFrameworkErrorEvent", 7), v = b(t, "onSessionChanged", 7), g = b(t, "onRuntimeOwned", 7), C = b(t, "onRuntimeInherited", 7), E = b(t, "onToolkitReady", 7), T = /* @__PURE__ */ Se(null), R = /* @__PURE__ */ Se(""), z = null, F = null;
22193
+ let n = b(t, "runtime", 7, null), r = b(t, "section", 7, null), o = b(t, "sectionId", 7, ""), i = b(t, "attemptId", 7, ""), s = b(t, "showToolbar", 7, "false"), a = b(t, "toolbarPosition", 7, "right"), c = b(t, "enabledTools", 7, ""), d = b(t, "toolRegistry", 7, null), u = b(t, "sectionHostButtons", 23, () => []), f = b(t, "focusPolicy", 7, na), p = b(t, "cardRenderContext", 7, null), m = b(t, "onCompositionChanged", 7), h = b(t, "onSectionReady", 7), w = b(t, "onFrameworkErrorEvent", 7), v = b(t, "onSessionChanged", 7), g = b(t, "onRuntimeOwned", 7), C = b(t, "onRuntimeInherited", 7), E = b(t, "onToolkitReady", 7), T = /* @__PURE__ */ Se(null), R = /* @__PURE__ */ Se(""), z = null, F = null;
22231
22194
  function ie(J) {
22232
22195
  const He = typeof J.itemIndex == "number" ? J.itemIndex + 1 : null, Ee = typeof J.totalItems == "number" ? J.totalItems : null;
22233
22196
  return J.itemLabel && He !== null && Ee !== null ? `${J.itemLabel}, question ${He} of ${Ee}` : He !== null && Ee !== null ? `Question ${He} of ${Ee}` : "";
@@ -22267,7 +22230,7 @@ function Rv(e, t) {
22267
22230
  z?.(), z = null, J?.subscribe && (z = J.subscribe((He) => {
22268
22231
  if (He?.type !== "item-selected") return;
22269
22232
  ne(R, ie(He), !0);
22270
- const Ee = zp(p());
22233
+ const Ee = zp(f());
22271
22234
  Ee !== "none" && (F = Ee);
22272
22235
  }));
22273
22236
  }
@@ -22324,15 +22287,15 @@ function Rv(e, t) {
22324
22287
  return l(te)?.waitForSectionController ? l(te).waitForSectionController(J) : null;
22325
22288
  }
22326
22289
  function rt() {
22327
- return zp(p()) === "current-item" && ce() || q();
22290
+ return zp(f()) === "current-item" && ce() || q();
22328
22291
  }
22329
22292
  Re(() => {
22330
- if (!(!l(Ie) || !f()))
22331
- return ne(Z, VI(l(Ie), f()), !0), () => {
22293
+ if (!(!l(Ie) || !p()))
22294
+ return ne(Z, VI(l(Ie), p()), !0), () => {
22332
22295
  l(Z)?.disconnect(), ne(Z, null);
22333
22296
  };
22334
22297
  }), Re(() => {
22335
- f() && l(Z)?.setValue(f());
22298
+ p() && l(Z)?.setValue(p());
22336
22299
  });
22337
22300
  var nt = {
22338
22301
  navigateToItem: ke,
@@ -22396,16 +22359,16 @@ function Rv(e, t) {
22396
22359
  u(J), y();
22397
22360
  },
22398
22361
  get focusPolicy() {
22399
- return p();
22362
+ return f();
22400
22363
  },
22401
22364
  set focusPolicy(J = na) {
22402
- p(J), y();
22365
+ f(J), y();
22403
22366
  },
22404
22367
  get cardRenderContext() {
22405
- return f();
22368
+ return p();
22406
22369
  },
22407
22370
  set cardRenderContext(J = null) {
22408
- f(J), y();
22371
+ p(J), y();
22409
22372
  },
22410
22373
  get onCompositionChanged() {
22411
22374
  return m();
@@ -22489,7 +22452,7 @@ pn(Rv, {
22489
22452
  ], { mode: "open" });
22490
22453
  function va(e, t) {
22491
22454
  ln(t, !0);
22492
- let n = b(t, "assessmentId", 7), r = b(t, "runtime", 7, null), o = b(t, "section", 7, null), i = b(t, "sectionId", 7, ""), s = b(t, "attemptId", 7, ""), a = b(t, "playerType", 7), c = b(t, "player", 7), d = b(t, "lazyInit", 7), u = b(t, "tools", 7), p = b(t, "accessibility", 7), f = b(t, "coordinator", 7), m = b(t, "env", 7), h = b(t, "iifeBundleHost", 7), w = b(t, "showToolbar", 7, "false"), v = b(t, "toolbarPosition", 7, "right"), g = b(t, "enabledTools", 7, ""), C = b(t, "toolConfigStrictness", 7, "error"), E = b(t, "toolRegistry", 7, null), T = b(t, "sectionHostButtons", 23, () => []), R = b(t, "itemHostButtons", 23, () => []), z = b(t, "passageHostButtons", 23, () => []), F = b(t, "debug", 7, void 0), ie = b(t, "playerActionConfig", 23, () => ({
22455
+ let n = b(t, "assessmentId", 7), r = b(t, "runtime", 7, null), o = b(t, "section", 7, null), i = b(t, "sectionId", 7, ""), s = b(t, "attemptId", 7, ""), a = b(t, "playerType", 7), c = b(t, "player", 7), d = b(t, "lazyInit", 7), u = b(t, "tools", 7), f = b(t, "accessibility", 7), p = b(t, "coordinator", 7), m = b(t, "env", 7), h = b(t, "iifeBundleHost", 7), w = b(t, "showToolbar", 7, "false"), v = b(t, "toolbarPosition", 7, "right"), g = b(t, "enabledTools", 7, ""), C = b(t, "toolConfigStrictness", 7, "error"), E = b(t, "toolRegistry", 7, null), T = b(t, "sectionHostButtons", 23, () => []), R = b(t, "itemHostButtons", 23, () => []), z = b(t, "passageHostButtons", 23, () => []), F = b(t, "debug", 7, void 0), ie = b(t, "playerActionConfig", 23, () => ({
22493
22456
  stateKey: "__sectionPlayerAppliedParams",
22494
22457
  includeSessionRefInState: !1
22495
22458
  })), le = b(t, "policies", 7, Hp), H = b(t, "hooks", 7, void 0), q = b(t, "onFrameworkError", 7, void 0), ee = b(t, "onStageChange", 7, void 0), ce = b(t, "onLoadingComplete", 7, void 0), re = b(t, "sourceCe", 7, "pie-section-player"), te = b(t, "host", 7, null);
@@ -22514,8 +22477,8 @@ function va(e, t) {
22514
22477
  player: c(),
22515
22478
  lazyInit: d(),
22516
22479
  tools: u(),
22517
- accessibility: p(),
22518
- coordinator: f(),
22480
+ accessibility: f(),
22481
+ coordinator: p(),
22519
22482
  env: m(),
22520
22483
  runtime: r(),
22521
22484
  enabledTools: g(),
@@ -22791,16 +22754,16 @@ function va(e, t) {
22791
22754
  u(U), y();
22792
22755
  },
22793
22756
  get accessibility() {
22794
- return p();
22757
+ return f();
22795
22758
  },
22796
22759
  set accessibility(U) {
22797
- p(U), y();
22760
+ f(U), y();
22798
22761
  },
22799
22762
  get coordinator() {
22800
- return f();
22763
+ return p();
22801
22764
  },
22802
22765
  set coordinator(U) {
22803
- f(U), y();
22766
+ p(U), y();
22804
22767
  },
22805
22768
  get env() {
22806
22769
  return m();
@@ -23103,8 +23066,8 @@ var JC = /* @__PURE__ */ Tt('<div class="pie-section-player-tabs svelte-cqrdtv"
23103
23066
  };
23104
23067
  function Td(e, t) {
23105
23068
  ln(t, !0), vn(e, nP);
23106
- let n = b(t, "layoutModel", 7), r = b(t, "itemToolbarTools", 7, ""), o = b(t, "passageToolbarTools", 7, ""), i = b(t, "toolRegistry", 7, null), s = b(t, "itemHostButtons", 23, () => []), a = b(t, "passageHostButtons", 23, () => []), c = b(t, "iifeBundleHost", 7), d = b(t, "preloadComponentTag", 7, "pie-section-player-tabbed"), u = b(t, "contentMaxWidthNoPassagePx", 7, void 0), p = b(t, "contentMaxWidthWithPassagePx", 7, void 0), f = b(t, "idBase", 7, "pie-section-player-tabbed"), m = /* @__PURE__ */ Se("passage"), h = /* @__PURE__ */ Se(null), w = /* @__PURE__ */ Se(null);
23107
- const v = /* @__PURE__ */ V(() => n().passages.length > 0), g = /* @__PURE__ */ V(() => l(v) ? p() : u()), C = /* @__PURE__ */ V(() => `${f()}-tab-passage`), E = /* @__PURE__ */ V(() => `${f()}-tab-items`), T = /* @__PURE__ */ V(() => `${f()}-panel-passage`), R = /* @__PURE__ */ V(() => `${f()}-panel-items`), z = /* @__PURE__ */ V(() => l(v) ? l(m) : "items");
23069
+ let n = b(t, "layoutModel", 7), r = b(t, "itemToolbarTools", 7, ""), o = b(t, "passageToolbarTools", 7, ""), i = b(t, "toolRegistry", 7, null), s = b(t, "itemHostButtons", 23, () => []), a = b(t, "passageHostButtons", 23, () => []), c = b(t, "iifeBundleHost", 7), d = b(t, "preloadComponentTag", 7, "pie-section-player-tabbed"), u = b(t, "contentMaxWidthNoPassagePx", 7, void 0), f = b(t, "contentMaxWidthWithPassagePx", 7, void 0), p = b(t, "idBase", 7, "pie-section-player-tabbed"), m = /* @__PURE__ */ Se("passage"), h = /* @__PURE__ */ Se(null), w = /* @__PURE__ */ Se(null);
23070
+ const v = /* @__PURE__ */ V(() => n().passages.length > 0), g = /* @__PURE__ */ V(() => l(v) ? f() : u()), C = /* @__PURE__ */ V(() => `${p()}-tab-passage`), E = /* @__PURE__ */ V(() => `${p()}-tab-items`), T = /* @__PURE__ */ V(() => `${p()}-panel-passage`), R = /* @__PURE__ */ V(() => `${p()}-panel-items`), z = /* @__PURE__ */ V(() => l(v) ? l(m) : "items");
23108
23071
  function F(W) {
23109
23072
  W === "passage" && !l(v) || ne(m, W, !0);
23110
23073
  }
@@ -23189,16 +23152,16 @@ function Td(e, t) {
23189
23152
  u(W), y();
23190
23153
  },
23191
23154
  get contentMaxWidthWithPassagePx() {
23192
- return p();
23155
+ return f();
23193
23156
  },
23194
23157
  set contentMaxWidthWithPassagePx(W = void 0) {
23195
- p(W), y();
23158
+ f(W), y();
23196
23159
  },
23197
23160
  get idBase() {
23198
- return f();
23161
+ return p();
23199
23162
  },
23200
23163
  set idBase(W = "pie-section-player-tabbed") {
23201
- f(W), y();
23164
+ p(W), y();
23202
23165
  }
23203
23166
  }, q = tP(), ee = pt(q), ce = pt(ee), re = (W) => {
23204
23167
  var Ne = JC(), se = pt(Ne);
@@ -23271,8 +23234,8 @@ var rP = /* @__PURE__ */ Tt('<section class="pie-section-player-passages-section
23271
23234
  };
23272
23235
  function _d(e, t) {
23273
23236
  ln(t, !0), vn(e, iP);
23274
- let n = b(t, "layoutModel", 7), r = b(t, "itemToolbarTools", 7, ""), o = b(t, "passageToolbarTools", 7, ""), i = b(t, "toolRegistry", 7, null), s = b(t, "itemHostButtons", 23, () => []), a = b(t, "passageHostButtons", 23, () => []), c = b(t, "iifeBundleHost", 7), d = b(t, "preloadComponentTag", 7, "pie-section-player-vertical"), u = b(t, "contentMaxWidthNoPassagePx", 7, void 0), p = b(t, "contentMaxWidthWithPassagePx", 7, void 0);
23275
- const f = /* @__PURE__ */ V(() => n().passages.length > 0 ? p() : u());
23237
+ let n = b(t, "layoutModel", 7), r = b(t, "itemToolbarTools", 7, ""), o = b(t, "passageToolbarTools", 7, ""), i = b(t, "toolRegistry", 7, null), s = b(t, "itemHostButtons", 23, () => []), a = b(t, "passageHostButtons", 23, () => []), c = b(t, "iifeBundleHost", 7), d = b(t, "preloadComponentTag", 7, "pie-section-player-vertical"), u = b(t, "contentMaxWidthNoPassagePx", 7, void 0), f = b(t, "contentMaxWidthWithPassagePx", 7, void 0);
23238
+ const p = /* @__PURE__ */ V(() => n().passages.length > 0 ? f() : u());
23276
23239
  var m = {
23277
23240
  get layoutModel() {
23278
23241
  return n();
@@ -23329,10 +23292,10 @@ function _d(e, t) {
23329
23292
  u(T), y();
23330
23293
  },
23331
23294
  get contentMaxWidthWithPassagePx() {
23332
- return p();
23295
+ return f();
23333
23296
  },
23334
23297
  set contentMaxWidthWithPassagePx(T = void 0) {
23335
- p(T), y();
23298
+ f(T), y();
23336
23299
  }
23337
23300
  }, h = oP(), w = pt(h), v = pt(w), g = (T) => {
23338
23301
  var R = rP(), z = pt(R);
@@ -23342,7 +23305,7 @@ function _d(e, t) {
23342
23305
  n().passages.length > 0 && n().paneElementsLoaded && T(g);
23343
23306
  });
23344
23307
  var C = Bt(v, 2), E = pt(C);
23345
- return A(() => x(E, "items", n().items)), A(() => x(E, "compositionModel", n().compositionModel)), A(() => x(E, "resolvedPlayerEnv", n().resolvedPlayerEnv)), A(() => x(E, "resolvedPlayerAttributes", n().resolvedPlayerAttributes)), A(() => x(E, "resolvedPlayerProps", n().resolvedPlayerProps)), A(() => x(E, "playerStrategy", n().playerStrategy)), A(() => x(E, "itemToolbarTools", r())), A(() => x(E, "toolRegistry", i() || n().toolRegistry)), A(() => x(E, "hostButtons", s().length > 0 ? s() : n().itemHostButtons)), A(() => x(E, "iifeBundleHost", c())), A(() => x(E, "preloadedRenderables", n().preloadedRenderables)), A(() => x(E, "preloadedRenderablesSignature", n().preloadedRenderablesSignature)), A(() => x(E, "preloadComponentTag", d())), A(() => x(E, "preloadEnabled", n().preloadEnabled)), ft(C), ft(w), ft(h), A(() => il(h, `--pie-section-player-layout-max-width: ${l(f) !== void 0 ? `${l(f)}px` : "none"};`)), Dt("elements-loaded-change", E, function(...T) {
23308
+ return A(() => x(E, "items", n().items)), A(() => x(E, "compositionModel", n().compositionModel)), A(() => x(E, "resolvedPlayerEnv", n().resolvedPlayerEnv)), A(() => x(E, "resolvedPlayerAttributes", n().resolvedPlayerAttributes)), A(() => x(E, "resolvedPlayerProps", n().resolvedPlayerProps)), A(() => x(E, "playerStrategy", n().playerStrategy)), A(() => x(E, "itemToolbarTools", r())), A(() => x(E, "toolRegistry", i() || n().toolRegistry)), A(() => x(E, "hostButtons", s().length > 0 ? s() : n().itemHostButtons)), A(() => x(E, "iifeBundleHost", c())), A(() => x(E, "preloadedRenderables", n().preloadedRenderables)), A(() => x(E, "preloadedRenderablesSignature", n().preloadedRenderablesSignature)), A(() => x(E, "preloadComponentTag", d())), A(() => x(E, "preloadEnabled", n().preloadEnabled)), ft(C), ft(w), ft(h), A(() => il(h, `--pie-section-player-layout-max-width: ${l(p) !== void 0 ? `${l(p)}px` : "none"};`)), Dt("elements-loaded-change", E, function(...T) {
23346
23309
  n().onItemsPaneElementsLoaded?.apply(this, T);
23347
23310
  }), Dt("element-preload-retry", E, function(...T) {
23348
23311
  n().onItemsPanePreloadRetry?.apply(this, T);
@@ -23372,23 +23335,23 @@ function Av(e, t) {
23372
23335
  ln(t, !0), vn(e, aP);
23373
23336
  let n = b(t, "value", 7, 50), r = b(t, "min", 7, 20), o = b(t, "max", 7, 80), i = b(t, "step", 7, 5), s = b(t, "disabled", 7, !1), a = b(t, "ariaLabel", 7, "Resize panels"), c = b(t, "ariaControls", 7, ""), d = b(t, "ariaValueText", 7, "");
23374
23337
  const u = Fo();
23375
- let p = /* @__PURE__ */ Se(!1), f = 0, m = 0;
23338
+ let f = /* @__PURE__ */ Se(!1), p = 0, m = 0;
23376
23339
  function h(R) {
23377
23340
  return Math.max(r(), Math.min(o(), R));
23378
23341
  }
23379
23342
  function w(R) {
23380
- s() || (R.preventDefault(), ne(p, !0), f = R.clientX, m = n(), u("resize-start", { value: n() }));
23343
+ s() || (R.preventDefault(), ne(f, !0), p = R.clientX, m = n(), u("resize-start", { value: n() }));
23381
23344
  }
23382
23345
  function v(R) {
23383
- if (!l(p)) return;
23384
- const z = R.clientX - f;
23346
+ if (!l(f)) return;
23347
+ const z = R.clientX - p;
23385
23348
  u("resize-preview", {
23386
23349
  value: h(m + z * 0.1),
23387
23350
  input: "pointer"
23388
23351
  });
23389
23352
  }
23390
23353
  function g() {
23391
- l(p) && (ne(p, !1), u("resize-commit", {
23354
+ l(f) && (ne(f, !1), u("resize-commit", {
23392
23355
  value: n(),
23393
23356
  input: "pointer"
23394
23357
  }));
@@ -23415,7 +23378,7 @@ function Av(e, t) {
23415
23378
  });
23416
23379
  }
23417
23380
  Re(() => {
23418
- if (l(p))
23381
+ if (l(f))
23419
23382
  return window.addEventListener("mousemove", v), window.addEventListener("mouseup", g), () => {
23420
23383
  window.removeEventListener("mousemove", v), window.removeEventListener("mouseup", g);
23421
23384
  };
@@ -23471,7 +23434,7 @@ function Av(e, t) {
23471
23434
  }
23472
23435
  }, T = sP();
23473
23436
  return A((R) => {
23474
- Vn(T, 1, `pie-section-player-split-divider ${l(p) ? "pie-section-player-split-divider--dragging" : ""}`, "svelte-1ncvi88"), jt(T, "aria-label", a()), jt(T, "aria-controls", c() || void 0), jt(T, "aria-valuemin", r()), jt(T, "aria-valuemax", o()), jt(T, "aria-valuenow", R), jt(T, "aria-valuetext", d() || void 0), jt(T, "aria-disabled", s() ? "true" : void 0), jt(T, "tabindex", s() ? void 0 : 0);
23437
+ Vn(T, 1, `pie-section-player-split-divider ${l(f) ? "pie-section-player-split-divider--dragging" : ""}`, "svelte-1ncvi88"), jt(T, "aria-label", a()), jt(T, "aria-controls", c() || void 0), jt(T, "aria-valuemin", r()), jt(T, "aria-valuemax", o()), jt(T, "aria-valuenow", R), jt(T, "aria-valuetext", d() || void 0), jt(T, "aria-disabled", s() ? "true" : void 0), jt(T, "tabindex", s() ? void 0 : 0);
23475
23438
  }, [() => Math.round(n())]), Di("mousedown", T, w), Di("keydown", T, C), Ze(e, T), cn(E);
23476
23439
  }
23477
23440
  Dh(["mousedown", "keydown"]);
@@ -23497,8 +23460,8 @@ var lP = /* @__PURE__ */ Tt('<aside class="pie-section-player-passages-pane svel
23497
23460
  };
23498
23461
  function fP(e, t) {
23499
23462
  ln(t, !0), vn(e, dP);
23500
- const n = 1100, r = 400, o = 2e3, i = 320, s = 2200, a = 160, c = 1200, d = 0.5, u = 20, p = 80;
23501
- function f(G, Ae, It) {
23463
+ const n = 1100, r = 400, o = 2e3, i = 320, s = 2200, a = 160, c = 1200, d = 0.5, u = 20, f = 80;
23464
+ function p(G, Ae, It) {
23502
23465
  if (G == null || G === "") return;
23503
23466
  const Te = typeof G == "number" ? G : Number(G);
23504
23467
  if (Number.isFinite(Te))
@@ -23515,7 +23478,7 @@ function fP(e, t) {
23515
23478
  const It = G.clientWidth;
23516
23479
  if (!Number.isFinite(It) || It <= 0) return {
23517
23480
  min: u,
23518
- max: p
23481
+ max: f
23519
23482
  };
23520
23483
  const Te = h(G), M = Math.max(0, It - Te);
23521
23484
  if (M <= 0) return {
@@ -23530,7 +23493,7 @@ function fP(e, t) {
23530
23493
  const ye = Math.max(u, oe);
23531
23494
  return {
23532
23495
  min: ye,
23533
- max: Math.min(p, Math.max(ye, 100 - ye))
23496
+ max: Math.min(f, Math.max(ye, 100 - ye))
23534
23497
  };
23535
23498
  }
23536
23499
  let v = b(t, "assessmentId", 7), g = b(t, "runtime", 7, null), C = b(t, "section", 7, null), E = b(t, "sectionId", 7, ""), T = b(t, "attemptId", 7, ""), R = b(t, "playerType", 7), z = b(t, "player", 7), F = b(t, "lazyInit", 7), ie = b(t, "tools", 7), le = b(t, "accessibility", 7), H = b(t, "coordinator", 7), q = b(t, "env", 7), ee = b(t, "iifeBundleHost", 7), ce = b(t, "debug", 7, void 0), re = b(t, "showToolbar", 7, "false"), te = b(t, "toolbarPosition", 7, "right"), Z = b(t, "enabledTools", 7, ""), Ie = b(t, "toolRegistry", 7, null), W = b(t, "sectionHostButtons", 23, () => []), Ne = b(t, "itemHostButtons", 23, () => []), se = b(t, "passageHostButtons", 23, () => []), ae = b(t, "policies", 7, void 0), Be = b(t, "hooks", 7, void 0), Y = b(t, "toolConfigStrictness", 7, void 0), Me = b(t, "onFrameworkError", 7, void 0), X = b(t, "onStageChange", 7, void 0), ke = b(t, "onLoadingComplete", 7, void 0), qe = b(t, "narrowLayoutBreakpoint", 7, void 0), Ue = b(t, "contentMaxWidthNoPassage", 7, void 0), at = b(t, "contentMaxWidthWithPassage", 7, void 0), Ge = b(t, "splitPaneMinRegionWidth", 7, void 0), rt = b(t, "splitPaneCollapseStrategy", 7, "tabbed");
@@ -23542,11 +23505,11 @@ function fP(e, t) {
23542
23505
  min: 20,
23543
23506
  max: 80
23544
23507
  })), Le = /* @__PURE__ */ Se(null), Fe = /* @__PURE__ */ Se(null), j = /* @__PURE__ */ Se(null), ge = /* @__PURE__ */ Se(!1);
23545
- const Ye = Fo(), J = /* @__PURE__ */ V(() => `pie-section-player-splitpane-${(E() || T() || "default").replace(/[^a-zA-Z0-9_-]/g, "-")}`), He = /* @__PURE__ */ V(() => `${l(J)}-passages`), Ee = /* @__PURE__ */ V(() => `${l(J)}-items`), Ve = /* @__PURE__ */ V(() => `${Math.round(l(Ce))}% passages width`), ct = /* @__PURE__ */ V(() => f(Ue(), i, s)), bt = /* @__PURE__ */ V(() => {
23546
- const G = f(at(), i, s);
23508
+ const Ye = Fo(), J = /* @__PURE__ */ V(() => `pie-section-player-splitpane-${(E() || T() || "default").replace(/[^a-zA-Z0-9_-]/g, "-")}`), He = /* @__PURE__ */ V(() => `${l(J)}-passages`), Ee = /* @__PURE__ */ V(() => `${l(J)}-items`), Ve = /* @__PURE__ */ V(() => `${Math.round(l(Ce))}% passages width`), ct = /* @__PURE__ */ V(() => p(Ue(), i, s)), bt = /* @__PURE__ */ V(() => {
23509
+ const G = p(at(), i, s);
23547
23510
  if (G !== void 0)
23548
23511
  return l(ct) === void 0 ? G : Math.max(l(ct), G);
23549
- }), Q = /* @__PURE__ */ V(() => f(Ge(), a, c)), we = /* @__PURE__ */ V(() => rt() === "tabbed" ? "tabbed" : "vertical"), P = /* @__PURE__ */ V(() => ca({
23512
+ }), Q = /* @__PURE__ */ V(() => p(Ge(), a, c)), we = /* @__PURE__ */ V(() => rt() === "tabbed" ? "tabbed" : "vertical"), P = /* @__PURE__ */ V(() => ca({
23550
23513
  runtimePlayer: g()?.player,
23551
23514
  player: z(),
23552
23515
  component: "pie-section-player-splitpane"
@@ -23571,7 +23534,7 @@ function fP(e, t) {
23571
23534
  if (Ae === void 0) {
23572
23535
  const M = {
23573
23536
  min: u,
23574
- max: p
23537
+ max: f
23575
23538
  };
23576
23539
  ne($e, M, !0), ne(Ce, m(l(Ce), M), !0);
23577
23540
  return;
@@ -24177,7 +24140,7 @@ function mP(e, t) {
24177
24140
  if (Number.isFinite(ze))
24178
24141
  return Math.max($, Math.min(fe, ze));
24179
24142
  }
24180
- let c = b(t, "assessmentId", 7), d = b(t, "runtime", 7, null), u = b(t, "section", 7, null), p = b(t, "sectionId", 7, ""), f = b(t, "attemptId", 7, ""), m = b(t, "playerType", 7), h = b(t, "player", 7), w = b(t, "lazyInit", 7), v = b(t, "tools", 7), g = b(t, "accessibility", 7), C = b(t, "coordinator", 7), E = b(t, "env", 7), T = b(t, "iifeBundleHost", 7), R = b(t, "debug", 7, void 0), z = b(t, "showToolbar", 7, "false"), F = b(t, "toolbarPosition", 7, "right"), ie = b(t, "enabledTools", 7, ""), le = b(t, "toolRegistry", 7, null), H = b(t, "sectionHostButtons", 23, () => []), q = b(t, "itemHostButtons", 23, () => []), ee = b(t, "passageHostButtons", 23, () => []), ce = b(t, "policies", 7, void 0), re = b(t, "hooks", 7, void 0), te = b(t, "toolConfigStrictness", 7, void 0), Z = b(t, "onFrameworkError", 7, void 0), Ie = b(t, "onStageChange", 7, void 0), W = b(t, "onLoadingComplete", 7, void 0), Ne = b(t, "narrowLayoutBreakpoint", 7, void 0), se = b(t, "contentMaxWidthNoPassage", 7, void 0), ae = b(t, "contentMaxWidthWithPassage", 7, void 0), Be = b(t, "splitPaneMinRegionWidth", 7, void 0), Y = b(t, "splitPaneCollapseStrategy", 7, "vertical");
24143
+ let c = b(t, "assessmentId", 7), d = b(t, "runtime", 7, null), u = b(t, "section", 7, null), f = b(t, "sectionId", 7, ""), p = b(t, "attemptId", 7, ""), m = b(t, "playerType", 7), h = b(t, "player", 7), w = b(t, "lazyInit", 7), v = b(t, "tools", 7), g = b(t, "accessibility", 7), C = b(t, "coordinator", 7), E = b(t, "env", 7), T = b(t, "iifeBundleHost", 7), R = b(t, "debug", 7, void 0), z = b(t, "showToolbar", 7, "false"), F = b(t, "toolbarPosition", 7, "right"), ie = b(t, "enabledTools", 7, ""), le = b(t, "toolRegistry", 7, null), H = b(t, "sectionHostButtons", 23, () => []), q = b(t, "itemHostButtons", 23, () => []), ee = b(t, "passageHostButtons", 23, () => []), ce = b(t, "policies", 7, void 0), re = b(t, "hooks", 7, void 0), te = b(t, "toolConfigStrictness", 7, void 0), Z = b(t, "onFrameworkError", 7, void 0), Ie = b(t, "onStageChange", 7, void 0), W = b(t, "onLoadingComplete", 7, void 0), Ne = b(t, "narrowLayoutBreakpoint", 7, void 0), se = b(t, "contentMaxWidthNoPassage", 7, void 0), ae = b(t, "contentMaxWidthWithPassage", 7, void 0), Be = b(t, "splitPaneMinRegionWidth", 7, void 0), Y = b(t, "splitPaneCollapseStrategy", 7, "vertical");
24181
24144
  const Me = Fo();
24182
24145
  let X = /* @__PURE__ */ Se(null), ke = /* @__PURE__ */ Se(null), qe = /* @__PURE__ */ Se(!1);
24183
24146
  const Ue = /* @__PURE__ */ V(() => ca({
@@ -24253,8 +24216,8 @@ function mP(e, t) {
24253
24216
  staticAttributes: {
24254
24217
  instrumentationLayer: "section",
24255
24218
  assessmentId: c(),
24256
- sectionId: p(),
24257
- attemptId: f() || void 0
24219
+ sectionId: f(),
24220
+ attemptId: p() || void 0
24258
24221
  },
24259
24222
  shouldTrackEvent: ($) => $.target === N,
24260
24223
  dedupeWindowMs: 100
@@ -24290,16 +24253,16 @@ function mP(e, t) {
24290
24253
  u(N), y();
24291
24254
  },
24292
24255
  get sectionId() {
24293
- return p();
24256
+ return f();
24294
24257
  },
24295
24258
  set sectionId(N = "") {
24296
- p(N), y();
24259
+ f(N), y();
24297
24260
  },
24298
24261
  get attemptId() {
24299
- return f();
24262
+ return p();
24300
24263
  },
24301
24264
  set attemptId(N = "") {
24302
- f(N), y();
24265
+ p(N), y();
24303
24266
  },
24304
24267
  get playerType() {
24305
24268
  return m();
@@ -24477,10 +24440,10 @@ function mP(e, t) {
24477
24440
  return u();
24478
24441
  },
24479
24442
  get sectionId() {
24480
- return p();
24443
+ return f();
24481
24444
  },
24482
24445
  get attemptId() {
24483
- return f();
24446
+ return p();
24484
24447
  },
24485
24448
  get playerType() {
24486
24449
  return m();
@@ -24706,10 +24669,10 @@ function yP(e, t) {
24706
24669
  if (Number.isFinite(xt))
24707
24670
  return Math.max(fe, Math.min(ze, xt));
24708
24671
  }
24709
- let c = b(t, "assessmentId", 7), d = b(t, "runtime", 7, null), u = b(t, "section", 7, null), p = b(t, "sectionId", 7, ""), f = b(t, "attemptId", 7, ""), m = b(t, "playerType", 7), h = b(t, "player", 7), w = b(t, "lazyInit", 7), v = b(t, "tools", 7), g = b(t, "accessibility", 7), C = b(t, "coordinator", 7), E = b(t, "env", 7), T = b(t, "iifeBundleHost", 7), R = b(t, "debug", 7, void 0), z = b(t, "showToolbar", 7, "false"), F = b(t, "toolbarPosition", 7, "right"), ie = b(t, "enabledTools", 7, ""), le = b(t, "toolRegistry", 7, null), H = b(t, "sectionHostButtons", 23, () => []), q = b(t, "itemHostButtons", 23, () => []), ee = b(t, "passageHostButtons", 23, () => []), ce = b(t, "policies", 7, void 0), re = b(t, "hooks", 7, void 0), te = b(t, "toolConfigStrictness", 7, void 0), Z = b(t, "onFrameworkError", 7, void 0), Ie = b(t, "onStageChange", 7, void 0), W = b(t, "onLoadingComplete", 7, void 0), Ne = b(t, "narrowLayoutBreakpoint", 7, void 0), se = b(t, "contentMaxWidthNoPassage", 7, void 0), ae = b(t, "contentMaxWidthWithPassage", 7, void 0), Be = b(t, "splitPaneMinRegionWidth", 7, void 0), Y = b(t, "splitPaneCollapseStrategy", 7, "vertical");
24672
+ let c = b(t, "assessmentId", 7), d = b(t, "runtime", 7, null), u = b(t, "section", 7, null), f = b(t, "sectionId", 7, ""), p = b(t, "attemptId", 7, ""), m = b(t, "playerType", 7), h = b(t, "player", 7), w = b(t, "lazyInit", 7), v = b(t, "tools", 7), g = b(t, "accessibility", 7), C = b(t, "coordinator", 7), E = b(t, "env", 7), T = b(t, "iifeBundleHost", 7), R = b(t, "debug", 7, void 0), z = b(t, "showToolbar", 7, "false"), F = b(t, "toolbarPosition", 7, "right"), ie = b(t, "enabledTools", 7, ""), le = b(t, "toolRegistry", 7, null), H = b(t, "sectionHostButtons", 23, () => []), q = b(t, "itemHostButtons", 23, () => []), ee = b(t, "passageHostButtons", 23, () => []), ce = b(t, "policies", 7, void 0), re = b(t, "hooks", 7, void 0), te = b(t, "toolConfigStrictness", 7, void 0), Z = b(t, "onFrameworkError", 7, void 0), Ie = b(t, "onStageChange", 7, void 0), W = b(t, "onLoadingComplete", 7, void 0), Ne = b(t, "narrowLayoutBreakpoint", 7, void 0), se = b(t, "contentMaxWidthNoPassage", 7, void 0), ae = b(t, "contentMaxWidthWithPassage", 7, void 0), Be = b(t, "splitPaneMinRegionWidth", 7, void 0), Y = b(t, "splitPaneCollapseStrategy", 7, "vertical");
24710
24673
  const Me = Fo();
24711
24674
  let X = /* @__PURE__ */ Se(null), ke = /* @__PURE__ */ Se(null), qe = /* @__PURE__ */ Se(!1);
24712
- const Ue = /* @__PURE__ */ V(() => `pie-section-player-tabbed-${(p() || f() || "default").replace(/[^a-zA-Z0-9_-]/g, "-")}`), at = /* @__PURE__ */ V(() => ca({
24675
+ const Ue = /* @__PURE__ */ V(() => `pie-section-player-tabbed-${(f() || p() || "default").replace(/[^a-zA-Z0-9_-]/g, "-")}`), at = /* @__PURE__ */ V(() => ca({
24713
24676
  runtimePlayer: d()?.player,
24714
24677
  player: h(),
24715
24678
  component: "pie-section-player-tabbed"
@@ -24782,8 +24745,8 @@ function yP(e, t) {
24782
24745
  staticAttributes: {
24783
24746
  instrumentationLayer: "section",
24784
24747
  assessmentId: c(),
24785
- sectionId: p(),
24786
- attemptId: f() || void 0
24748
+ sectionId: f(),
24749
+ attemptId: p() || void 0
24787
24750
  },
24788
24751
  shouldTrackEvent: (fe) => fe.target === $,
24789
24752
  dedupeWindowMs: 100
@@ -24819,16 +24782,16 @@ function yP(e, t) {
24819
24782
  u($), y();
24820
24783
  },
24821
24784
  get sectionId() {
24822
- return p();
24785
+ return f();
24823
24786
  },
24824
24787
  set sectionId($ = "") {
24825
- p($), y();
24788
+ f($), y();
24826
24789
  },
24827
24790
  get attemptId() {
24828
- return f();
24791
+ return p();
24829
24792
  },
24830
24793
  set attemptId($ = "") {
24831
- f($), y();
24794
+ p($), y();
24832
24795
  },
24833
24796
  get playerType() {
24834
24797
  return m();
@@ -25006,10 +24969,10 @@ function yP(e, t) {
25006
24969
  return u();
25007
24970
  },
25008
24971
  get sectionId() {
25009
- return p();
24972
+ return f();
25010
24973
  },
25011
24974
  get attemptId() {
25012
- return f();
24975
+ return p();
25013
24976
  },
25014
24977
  get playerType() {
25015
24978
  return m();
@@ -25231,7 +25194,7 @@ var bP = /* @__PURE__ */ Tt("<pie-section-player-passages-pane></pie-section-pla
25231
25194
  };
25232
25195
  function EP(e, t) {
25233
25196
  ln(t, !0), vn(e, IP);
25234
- let n = b(t, "assessmentId", 7), r = b(t, "runtime", 7, null), o = b(t, "section", 7, null), i = b(t, "sectionId", 7, ""), s = b(t, "attemptId", 7, ""), a = b(t, "playerType", 7), c = b(t, "player", 7, null), d = b(t, "lazyInit", 7), u = b(t, "tools", 7), p = b(t, "accessibility", 7), f = b(t, "coordinator", 7), m = b(t, "env", 7), h = b(t, "iifeBundleHost", 7), w = b(t, "debug", 7, void 0), v = b(t, "showToolbar", 7, "false"), g = b(t, "toolbarPosition", 7, "right"), C = b(t, "enabledTools", 7, ""), E = b(t, "toolRegistry", 7, null), T = b(t, "sectionHostButtons", 23, () => []), R = b(t, "itemHostButtons", 23, () => []), z = b(t, "passageHostButtons", 23, () => []), F = b(t, "policies", 7, void 0), ie = b(t, "hooks", 7, void 0), le = b(t, "toolConfigStrictness", 7, void 0), H = b(t, "onFrameworkError", 7, void 0), q = b(t, "onStageChange", 7, void 0), ee = b(t, "onLoadingComplete", 7, void 0);
25197
+ let n = b(t, "assessmentId", 7), r = b(t, "runtime", 7, null), o = b(t, "section", 7, null), i = b(t, "sectionId", 7, ""), s = b(t, "attemptId", 7, ""), a = b(t, "playerType", 7), c = b(t, "player", 7, null), d = b(t, "lazyInit", 7), u = b(t, "tools", 7), f = b(t, "accessibility", 7), p = b(t, "coordinator", 7), m = b(t, "env", 7), h = b(t, "iifeBundleHost", 7), w = b(t, "debug", 7, void 0), v = b(t, "showToolbar", 7, "false"), g = b(t, "toolbarPosition", 7, "right"), C = b(t, "enabledTools", 7, ""), E = b(t, "toolRegistry", 7, null), T = b(t, "sectionHostButtons", 23, () => []), R = b(t, "itemHostButtons", 23, () => []), z = b(t, "passageHostButtons", 23, () => []), F = b(t, "policies", 7, void 0), ie = b(t, "hooks", 7, void 0), le = b(t, "toolConfigStrictness", 7, void 0), H = b(t, "onFrameworkError", 7, void 0), q = b(t, "onStageChange", 7, void 0), ee = b(t, "onLoadingComplete", 7, void 0);
25235
25198
  const ce = Fo();
25236
25199
  let re = /* @__PURE__ */ Se(null), te = /* @__PURE__ */ Se(null);
25237
25200
  const Z = {
@@ -25391,16 +25354,16 @@ function EP(e, t) {
25391
25354
  u(j), y();
25392
25355
  },
25393
25356
  get accessibility() {
25394
- return p();
25357
+ return f();
25395
25358
  },
25396
25359
  set accessibility(j) {
25397
- p(j), y();
25360
+ f(j), y();
25398
25361
  },
25399
25362
  get coordinator() {
25400
- return f();
25363
+ return p();
25401
25364
  },
25402
25365
  set coordinator(j) {
25403
- f(j), y();
25366
+ p(j), y();
25404
25367
  },
25405
25368
  get env() {
25406
25369
  return m();
@@ -25530,10 +25493,10 @@ function EP(e, t) {
25530
25493
  return u();
25531
25494
  },
25532
25495
  get accessibility() {
25533
- return p();
25496
+ return f();
25534
25497
  },
25535
25498
  get coordinator() {
25536
- return f();
25499
+ return p();
25537
25500
  },
25538
25501
  get env() {
25539
25502
  return m();