narrat 3.12.1 → 3.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  var nm = Object.defineProperty;
2
2
  var rm = (e, t, n) => t in e ? nm(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var qe = (e, t, n) => (rm(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import { defineComponent as $e, openBlock as D, createBlock as Ce, Transition as Li, withCtx as He, createElementVNode as M, normalizeClass as Ge, createElementBlock as J, createCommentVNode as Oe, renderSlot as Jr, createTextVNode as Er, effectScope as Uc, ref as le, markRaw as wr, hasInjectionContext as im, inject as om, getCurrentInstance as sm, toRaw as Vo, watch as kn, reactive as Wr, isRef as Di, isReactive as ra, toRef as us, nextTick as Mi, computed as q, unref as ot, getCurrentScope as am, onScopeDispose as lm, toRefs as Il, normalizeStyle as Ye, toDisplayString as ye, onMounted as ft, createVNode as Ze, onUnmounted as _t, withDirectives as ir, vModelText as ri, Fragment as We, renderList as Xe, onBeforeMount as Bc, TransitionGroup as ki, Teleport as Ho, resolveDynamicComponent as Ko, resolveDirective as cm, resolveComponent as Cr, useSlots as um, shallowRef as bi, pushScopeId as qc, popScopeId as Vc, createStaticVNode as dm, normalizeProps as fm, mergeProps as Hc, vModelCheckbox as pm, createApp as mm } from "vue";
4
+ import { defineComponent as Ce, openBlock as D, createBlock as $e, Transition as Li, withCtx as Ke, createElementVNode as M, normalizeClass as Ge, createElementBlock as J, createCommentVNode as Oe, renderSlot as Jr, createTextVNode as Er, effectScope as Uc, ref as le, markRaw as wr, hasInjectionContext as im, inject as om, getCurrentInstance as sm, toRaw as Ho, watch as kn, reactive as Wr, isRef as Di, isReactive as ra, toRef as us, nextTick as Mi, computed as q, unref as ot, getCurrentScope as am, onScopeDispose as lm, toRefs as Il, normalizeStyle as Ye, toDisplayString as ye, onMounted as ft, createVNode as Ze, onUnmounted as _t, withDirectives as ir, vModelText as ri, Fragment as We, renderList as Xe, onBeforeMount as Bc, TransitionGroup as ki, Teleport as Ri, resolveDynamicComponent as Ko, resolveDirective as cm, resolveComponent as Cr, useSlots as um, shallowRef as bi, pushScopeId as qc, popScopeId as Vc, createStaticVNode as dm, normalizeProps as fm, mergeProps as Hc, vModelCheckbox as pm, createApp as mm } from "vue";
5
5
  var Fn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
6
6
  function ia(e) {
7
7
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -351,7 +351,7 @@ function aa(e) {
351
351
  let n = Math.floor(t / 3600), r = Math.floor((t - n * 3600) / 60), i = t - n * 3600 - r * 60;
352
352
  return n < 10 && (n = "0" + n), r < 10 && (r = "0" + r), i < 10 && (i = "0" + i), n + ":" + r + ":" + i;
353
353
  }
354
- const gm = $e({
354
+ const gm = Ce({
355
355
  props: {
356
356
  containerCssClass: [String, Object],
357
357
  cantClose: {
@@ -371,8 +371,8 @@ const gm = $e({
371
371
  return n;
372
372
  }, vm = { class: "modal-header" }, _m = { class: "modal-body" }, bm = { class: "modal-footer" };
373
373
  function Tm(e, t, n, r, i, s) {
374
- return D(), Ce(Li, { name: "fade" }, {
375
- default: He(() => [
374
+ return D(), $e(Li, { name: "fade" }, {
375
+ default: Ke(() => [
376
376
  M("div", {
377
377
  class: "modal-mask",
378
378
  onClick: t[2] || (t[2] = (...o) => e.close && e.close(...o))
@@ -432,10 +432,10 @@ function Nn() {
432
432
  }
433
433
  e ? St = e : St = zc();
434
434
  }
435
- return $m(St), Qc(St), Wi(), St;
435
+ return $m(St), Qc(St), zi(), St;
436
436
  }
437
437
  function wm() {
438
- St = zc(), Wi();
438
+ St = zc(), zi();
439
439
  }
440
440
  function Wc() {
441
441
  return {
@@ -504,12 +504,12 @@ function Yc(e, t, n) {
504
504
  de(`Tried to save to slot ${n} but it doesn't exist`);
505
505
  return;
506
506
  }
507
- St.globalSave = t, Wi();
507
+ St.globalSave = t, zi();
508
508
  }
509
509
  function Cm(e) {
510
510
  St.lastSaveSlot = e;
511
511
  }
512
- function Wi() {
512
+ function zi() {
513
513
  localStorage.setItem(As(), JSON.stringify(St));
514
514
  }
515
515
  function km() {
@@ -527,11 +527,11 @@ function la() {
527
527
  }
528
528
  function Am(e) {
529
529
  const t = St.slots.findIndex((n) => n.id === e);
530
- St.slots[t].saveData = null, Wi();
530
+ St.slots[t].saveData = null, zi();
531
531
  }
532
532
  function Em(e, t) {
533
533
  const n = Oi(e);
534
- n && n.saveData && (n.saveData.metadata.name = t), Wi();
534
+ n && n.saveData && (n.saveData.metadata.name = t), zi();
535
535
  }
536
536
  function Im() {
537
537
  return {
@@ -578,7 +578,7 @@ function Nm(e, t, n, r) {
578
578
  );
579
579
  }
580
580
  var Jc = !1;
581
- function so(e, t, n) {
581
+ function ao(e, t, n) {
582
582
  return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
583
583
  }
584
584
  function ds(e, t) {
@@ -684,7 +684,7 @@ function Zc(e, t) {
684
684
  * @license MIT
685
685
  */
686
686
  let wi;
687
- const Ri = (e) => wi = e, eu = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
687
+ const Fi = (e) => wi = e, eu = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
688
688
  /* istanbul ignore next */
689
689
  Symbol()
690
690
  );
@@ -716,7 +716,7 @@ function tu(e) {
716
716
  }
717
717
  return t.status >= 200 && t.status <= 299;
718
718
  }
719
- function ho(e) {
719
+ function yo(e) {
720
720
  try {
721
721
  e.dispatchEvent(new MouseEvent("click"));
722
722
  } catch {
@@ -724,11 +724,11 @@ function ho(e) {
724
724
  n.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(n);
725
725
  }
726
726
  }
727
- const yo = typeof navigator == "object" ? navigator : { userAgent: "" }, nu = /Macintosh/.test(yo.userAgent) && /AppleWebKit/.test(yo.userAgent) && !/Safari/.test(yo.userAgent), ru = Go ? (
727
+ const go = typeof navigator == "object" ? navigator : { userAgent: "" }, nu = /Macintosh/.test(go.userAgent) && /AppleWebKit/.test(go.userAgent) && !/Safari/.test(go.userAgent), ru = Go ? (
728
728
  // Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
729
729
  typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !nu ? Bm : (
730
730
  // Use msSaveOrOpenBlob as a second approach
731
- "msSaveOrOpenBlob" in yo ? qm : (
731
+ "msSaveOrOpenBlob" in go ? qm : (
732
732
  // Fallback to using FileReader and a popup
733
733
  Vm
734
734
  )
@@ -737,10 +737,10 @@ const yo = typeof navigator == "object" ? navigator : { userAgent: "" }, nu = /M
737
737
  };
738
738
  function Bm(e, t = "download", n) {
739
739
  const r = document.createElement("a");
740
- r.download = t, r.rel = "noopener", typeof e == "string" ? (r.href = e, r.origin !== location.origin ? tu(r.href) ? ca(e, t, n) : (r.target = "_blank", ho(r)) : ho(r)) : (r.href = URL.createObjectURL(e), setTimeout(function() {
740
+ r.download = t, r.rel = "noopener", typeof e == "string" ? (r.href = e, r.origin !== location.origin ? tu(r.href) ? ca(e, t, n) : (r.target = "_blank", yo(r)) : yo(r)) : (r.href = URL.createObjectURL(e), setTimeout(function() {
741
741
  URL.revokeObjectURL(r.href);
742
742
  }, 4e4), setTimeout(function() {
743
- ho(r);
743
+ yo(r);
744
744
  }, 0));
745
745
  }
746
746
  function qm(e, t = "download", n) {
@@ -750,7 +750,7 @@ function qm(e, t = "download", n) {
750
750
  else {
751
751
  const r = document.createElement("a");
752
752
  r.href = e, r.target = "_blank", setTimeout(function() {
753
- ho(r);
753
+ yo(r);
754
754
  });
755
755
  }
756
756
  else
@@ -930,7 +930,7 @@ function Xm(e) {
930
930
  }
931
931
  }
932
932
  let zr = !0;
933
- const go = [], gr = "pinia:mutations", xt = "pinia", { assign: Zm } = Object, wo = (e) => "🍍 " + e;
933
+ const vo = [], gr = "pinia:mutations", xt = "pinia", { assign: Zm } = Object, $o = (e) => "🍍 " + e;
934
934
  function eh(e, t) {
935
935
  Zc({
936
936
  id: "dev.esm.pinia",
@@ -938,7 +938,7 @@ function eh(e, t) {
938
938
  logo: "https://pinia.vuejs.org/logo.svg",
939
939
  packageName: "pinia",
940
940
  homepage: "https://pinia.vuejs.org",
941
- componentStateTypes: go,
941
+ componentStateTypes: vo,
942
942
  app: e
943
943
  }, (n) => {
944
944
  typeof n.now != "function" && kt("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), n.addTimelineLayer({
@@ -996,12 +996,12 @@ function eh(e, t) {
996
996
  const o = r.componentInstance.proxy._pStores;
997
997
  Object.values(o).forEach((l) => {
998
998
  r.instanceData.state.push({
999
- type: wo(l.$id),
999
+ type: $o(l.$id),
1000
1000
  key: "state",
1001
1001
  editable: !0,
1002
1002
  value: l._isOptionsAPI ? {
1003
1003
  _custom: {
1004
- value: Vo(l.$state),
1004
+ value: Ho(l.$state),
1005
1005
  actions: [
1006
1006
  {
1007
1007
  icon: "restore",
@@ -1015,7 +1015,7 @@ function eh(e, t) {
1015
1015
  Object.keys(l.$state).reduce((u, c) => (u[c] = l.$state[c], u), {})
1016
1016
  )
1017
1017
  }), l._getters && l._getters.length && r.instanceData.state.push({
1018
- type: wo(l.$id),
1018
+ type: $o(l.$id),
1019
1019
  key: "getters",
1020
1020
  editable: !1,
1021
1021
  value: l._getters.reduce((u, c) => {
@@ -1065,13 +1065,13 @@ Only state can be modified.`);
1065
1065
  });
1066
1066
  }
1067
1067
  function th(e, t) {
1068
- go.includes(wo(t.$id)) || go.push(wo(t.$id)), Zc({
1068
+ vo.includes($o(t.$id)) || vo.push($o(t.$id)), Zc({
1069
1069
  id: "dev.esm.pinia",
1070
1070
  label: "Pinia 🍍",
1071
1071
  logo: "https://pinia.vuejs.org/logo.svg",
1072
1072
  packageName: "pinia",
1073
1073
  homepage: "https://pinia.vuejs.org",
1074
- componentStateTypes: go,
1074
+ componentStateTypes: vo,
1075
1075
  app: e,
1076
1076
  settings: {
1077
1077
  logStoreChanges: {
@@ -1196,7 +1196,7 @@ function th(e, t) {
1196
1196
  }
1197
1197
  let lu = 0, tr;
1198
1198
  function Nl(e, t, n) {
1199
- const r = t.reduce((i, s) => (i[s] = Vo(e)[s], i), {});
1199
+ const r = t.reduce((i, s) => (i[s] = Ho(e)[s], i), {});
1200
1200
  for (const i in r)
1201
1201
  e[i] = function() {
1202
1202
  const s = lu, o = n ? new Proxy(e, {
@@ -1217,7 +1217,7 @@ function nh({ app: e, store: t, options: n }) {
1217
1217
  return;
1218
1218
  t._isOptionsAPI = !!n.state, Nl(t, Object.keys(n.actions), t._isOptionsAPI);
1219
1219
  const r = t._hotUpdate;
1220
- Vo(t)._hotUpdate = function(i) {
1220
+ Ho(t)._hotUpdate = function(i) {
1221
1221
  r.apply(this, arguments), Nl(t, Object.keys(i._hmrPayload.actions), !!t._isOptionsAPI);
1222
1222
  }, th(
1223
1223
  e,
@@ -1230,7 +1230,7 @@ function rh() {
1230
1230
  let n = [], r = [];
1231
1231
  const i = wr({
1232
1232
  install(s) {
1233
- Ri(i), i._a = s, s.provide(eu, i), s.config.globalProperties.$pinia = i, Ai && eh(s, i), r.forEach((o) => n.push(o)), r = [];
1233
+ Fi(i), i._a = s, s.provide(eu, i), s.config.globalProperties.$pinia = i, Ai && eh(s, i), r.forEach((o) => n.push(o)), r = [];
1234
1234
  },
1235
1235
  use(s) {
1236
1236
  return !this._a && !Jc ? r.push(s) : n.push(s), this;
@@ -1302,7 +1302,7 @@ function Ll(e, t, n, r) {
1302
1302
  Il(le(i ? i() : {}).value)
1303
1303
  ) : Il(n.state.value[e]);
1304
1304
  return en(m, s, Object.keys(o || {}).reduce((a, d) => (process.env.NODE_ENV !== "production" && d in m && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${d}" in store "${e}".`), a[d] = wr(q(() => {
1305
- Ri(n);
1305
+ Fi(n);
1306
1306
  const p = n._s.get(e);
1307
1307
  return o[d].call(p, p);
1308
1308
  })), a), {}));
@@ -1359,7 +1359,7 @@ function Ns(e, t, n = {}, r, i, s) {
1359
1359
  }
1360
1360
  function U(te, z) {
1361
1361
  return function() {
1362
- Ri(r);
1362
+ Fi(r);
1363
1363
  const Q = Array.from(arguments), X = [], re = [];
1364
1364
  function Pe(rt) {
1365
1365
  X.push(rt);
@@ -1421,7 +1421,7 @@ function Ns(e, t, n = {}, r, i, s) {
1421
1421
  for (const te in Y) {
1422
1422
  const z = Y[te];
1423
1423
  if (Di(z) && !jl(z) || ra(z))
1424
- process.env.NODE_ENV !== "production" && i ? so(v.value, te, us(Y, te)) : s || (h && sh(z) && (Di(z) ? z.value = h[te] : Ps(z, h[te])), r.state.value[e][te] = z), process.env.NODE_ENV !== "production" && B.state.push(te);
1424
+ process.env.NODE_ENV !== "production" && i ? ao(v.value, te, us(Y, te)) : s || (h && sh(z) && (Di(z) ? z.value = h[te] : Ps(z, h[te])), r.state.value[e][te] = z), process.env.NODE_ENV !== "production" && B.state.push(te);
1425
1425
  else if (typeof z == "function") {
1426
1426
  const Q = process.env.NODE_ENV !== "production" && i ? z : U(te, z);
1427
1427
  Y[te] = Q, process.env.NODE_ENV !== "production" && (B.actions[te] = z), l.actions[te] = z;
@@ -1432,7 +1432,7 @@ function Ns(e, t, n = {}, r, i, s) {
1432
1432
  ) : z, Go && (Y._getters || // @ts-expect-error: same
1433
1433
  (Y._getters = wr([]))).push(te));
1434
1434
  }
1435
- if (en(P, Y), en(Vo(P), Y), Object.defineProperty(P, "$state", {
1435
+ if (en(P, Y), en(Ho(P), Y), Object.defineProperty(P, "$state", {
1436
1436
  get: () => process.env.NODE_ENV !== "production" && i ? v.value : r.state.value[e],
1437
1437
  set: (te) => {
1438
1438
  if (process.env.NODE_ENV !== "production" && i)
@@ -1447,7 +1447,7 @@ function Ns(e, t, n = {}, r, i, s) {
1447
1447
  const Q = te.$state[z], X = P.$state[z];
1448
1448
  typeof Q == "object" && Ir(Q) && Ir(X) ? cu(Q, X) : te.$state[z] = X;
1449
1449
  }
1450
- so(P, z, us(te.$state, z));
1450
+ ao(P, z, us(te.$state, z));
1451
1451
  }), Object.keys(P.$state).forEach((z) => {
1452
1452
  z in te.$state || ds(P, z);
1453
1453
  }), c = !1, m = !1, r.state.value[e] = us(te._hmrPayload, "hotState"), m = !0, Mi().then(() => {
@@ -1455,14 +1455,14 @@ function Ns(e, t, n = {}, r, i, s) {
1455
1455
  });
1456
1456
  for (const z in te._hmrPayload.actions) {
1457
1457
  const Q = te[z];
1458
- so(P, z, U(z, Q));
1458
+ ao(P, z, U(z, Q));
1459
1459
  }
1460
1460
  for (const z in te._hmrPayload.getters) {
1461
1461
  const Q = te._hmrPayload.getters[z], X = s ? (
1462
1462
  // special handling of options api
1463
- q(() => (Ri(r), Q.call(P, P)))
1463
+ q(() => (Fi(r), Q.call(P, P)))
1464
1464
  ) : Q;
1465
- so(P, z, X);
1465
+ ao(P, z, X);
1466
1466
  }
1467
1467
  Object.keys(P._hmrPayload.getters).forEach((z) => {
1468
1468
  z in te._hmrPayload.getters || ds(P, z);
@@ -1511,7 +1511,7 @@ function bt(e, t, n) {
1511
1511
  const c = im();
1512
1512
  if (l = // in test mode, ignore the argument provided as we can always retrieve a
1513
1513
  // pinia instance with getActivePinia()
1514
- (process.env.NODE_ENV === "test" && wi && wi._testing ? null : l) || (c ? om(eu, null) : null), l && Ri(l), process.env.NODE_ENV !== "production" && !wi)
1514
+ (process.env.NODE_ENV === "test" && wi && wi._testing ? null : l) || (c ? om(eu, null) : null), l && Fi(l), process.env.NODE_ENV !== "production" && !wi)
1515
1515
  throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
1516
1516
  See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
1517
1517
  This will fail in production.`);
@@ -1541,14 +1541,14 @@ function Ei(e, t) {
1541
1541
  return typeof s == "function" ? s.call(this, i) : i[s];
1542
1542
  }, n), {});
1543
1543
  }
1544
- const zi = bt("tooltips", {
1544
+ const Qi = bt("tooltips", {
1545
1545
  state: () => ({ tooltip: null }),
1546
1546
  actions: {
1547
1547
  addCustomTooltip(e) {
1548
1548
  e.title && (e.title = Kn(e.title)), e.text = Kn(e.text), this.tooltip = e;
1549
1549
  },
1550
1550
  addTooltip(e, t) {
1551
- const n = Fo(e);
1551
+ const n = Uo(e);
1552
1552
  n && this.addCustomTooltip({
1553
1553
  keyword: e,
1554
1554
  title: n.title,
@@ -1575,14 +1575,14 @@ da().onTooltipEnter = (e, t) => {
1575
1575
  x: e.clientX,
1576
1576
  y: e.clientY - 20
1577
1577
  };
1578
- zi().addTooltip(t, n);
1578
+ Qi().addTooltip(t, n);
1579
1579
  };
1580
1580
  da().onTooltipLeave = () => {
1581
- zi().deleteTooltip();
1581
+ Qi().deleteTooltip();
1582
1582
  };
1583
1583
  function lh(e, t) {
1584
1584
  const n = t.toLowerCase();
1585
- return Fo(n) ? `<span class='highlighted-tooltip-keyword'
1585
+ return Uo(n) ? `<span class='highlighted-tooltip-keyword'
1586
1586
  onmouseenter="onTooltipEnter(event, '${n}')"
1587
1587
  onmouseleave="onTooltipLeave()">${t}</span>` : n;
1588
1588
  }
@@ -1617,7 +1617,7 @@ const Je = bt("dialog", {
1617
1617
  actions: {
1618
1618
  generateSaveData() {
1619
1619
  return {
1620
- dialog: Ke(this.dialog)
1620
+ dialog: He(this.dialog)
1621
1621
  };
1622
1622
  },
1623
1623
  loadSaveData(e) {
@@ -2893,7 +2893,7 @@ const mu = (e) => e.reduce(
2893
2893
  const n = this.getAudioChannel(e, t);
2894
2894
  if (!n)
2895
2895
  return;
2896
- const { fadeOutTime: r } = Ro(n.audio);
2896
+ const { fadeOutTime: r } = Fo(n.audio);
2897
2897
  if (this.setAudioChannel(e, t, null), rn().options.musicFadeOutTime) {
2898
2898
  const i = un(n.audio);
2899
2899
  i && i.fade(
@@ -2952,7 +2952,7 @@ const mu = (e) => e.reduce(
2952
2952
  de(`Could not find audio ${n}`);
2953
2953
  return;
2954
2954
  }
2955
- const { fadeInTime: i, fadeInDelay: s } = Ro(n), o = this.audioVolume(e, n);
2955
+ const { fadeInTime: i, fadeInDelay: s } = Fo(n), o = this.audioVolume(e, n);
2956
2956
  if (e !== "sound") {
2957
2957
  const l = r.play();
2958
2958
  r.volume(0, l), r.pause(l), this.setAudioChannel(e, t, {
@@ -2974,7 +2974,7 @@ const mu = (e) => e.reduce(
2974
2974
  if (t === "sound")
2975
2975
  continue;
2976
2976
  const n = t;
2977
- this.modes.get(n).options = Ke(
2977
+ this.modes.get(n).options = He(
2978
2978
  e.modes[n].options
2979
2979
  );
2980
2980
  for (const r in e.modes[n].channels) {
@@ -2992,8 +2992,8 @@ const mu = (e) => e.reduce(
2992
2992
  for (const t in Dl) {
2993
2993
  const n = this.modes.get(t);
2994
2994
  e[t] = {
2995
- options: Ke(n.options),
2996
- channels: Ke(n.channels).map((r) => r ? { audio: r.audio } : { audio: null })
2995
+ options: He(n.options),
2996
+ channels: He(n.channels).map((r) => r ? { audio: r.audio } : { audio: null })
2997
2997
  };
2998
2998
  }
2999
2999
  return {
@@ -3070,21 +3070,21 @@ function un(e) {
3070
3070
  return gu[e];
3071
3071
  }
3072
3072
  function mh(e) {
3073
- const t = un(e), { fadeInTime: n } = Ro(e), r = t.play(), s = Lt().audioVolume("music", e);
3073
+ const t = un(e), { fadeInTime: n } = Fo(e), r = t.play(), s = Lt().audioVolume("music", e);
3074
3074
  return t.fade(0, s, n, r), r;
3075
3075
  }
3076
3076
  async function hh(e, t) {
3077
- const n = un(e), { fadeOutTime: r } = Ro(e);
3077
+ const n = un(e), { fadeOutTime: r } = Fo(e);
3078
3078
  n.fade(n.volume(t), 0, r, t), await Kt(r), n.stop(t);
3079
3079
  }
3080
3080
  function yh(e, t) {
3081
- return e - t * Ki().options.extraPointsPerLevel;
3081
+ return e - t * Gi().options.extraPointsPerLevel;
3082
3082
  }
3083
3083
  function vu(e, t) {
3084
- const { options: n } = Ki();
3084
+ const { options: n } = Gi();
3085
3085
  let r = e;
3086
3086
  n.showDifficultyWithoutModifiers || (r = yh(e, t));
3087
- const i = Ki().options;
3087
+ const i = Gi().options;
3088
3088
  let s = !1, o = 0, l = i.difficultyText[0][1];
3089
3089
  for (; !s; )
3090
3090
  i.difficultyText.length > o && r >= i.difficultyText[o][0] ? l = i.difficultyText[o][1] : s = !0, o++;
@@ -3111,7 +3111,7 @@ function vh(e, t) {
3111
3111
  return `<span class='passive-skill-check skill-check'>[<span class='skill-check-name'>${r.name}</span> - <span class='skill-check-difficulty'>${i}</span> - ${e ? '<span class="skill-check-success">Success</span>' : '<span class="skill-check-failed">Failure</span>'}]</span>`;
3112
3112
  }
3113
3113
  function _h(e) {
3114
- const { options: t } = Ki(), n = bh(t, e), s = vt().skills[e].level * t.extraPointsPerLevel;
3114
+ const { options: t } = Gi(), n = bh(t, e), s = vt().skills[e].level * t.extraPointsPerLevel;
3115
3115
  let o = n.reduce(
3116
3116
  (l, u) => l + u.unmodified,
3117
3117
  s
@@ -3157,7 +3157,7 @@ function Sh(e) {
3157
3157
  return Pr(s ? "onSkillCheckSuccess" : "onSkillCheckFailure"), s;
3158
3158
  }
3159
3159
  function Ml(e, t) {
3160
- const { options: n } = Ki();
3160
+ const { options: n } = Gi();
3161
3161
  let r = e >= t;
3162
3162
  return n.successOnRollsBelowThreshold && (r = e <= t), n.failOnRollsEqualToThreshold && e === t && (r = !1), r;
3163
3163
  }
@@ -4670,14 +4670,14 @@ const Su = f.Type.Object({
4670
4670
  )
4671
4671
  });
4672
4672
  var nr = /* @__PURE__ */ ((e) => (e[e.ERROR = 3] = "ERROR", e[e.WARN = 2] = "WARN", e[e.INFO = 1] = "INFO", e[e.DEBUG = 0] = "DEBUG", e[e.NONE = -1] = "NONE", e))(nr || {});
4673
- const $o = "###_--_~=:;_JUMP", fa = "###_--_~=:;_RETURN", Rh = "###_--_~=:;_OK", Co = "###_--_~=:;_STOP";
4673
+ const Co = "###_--_~=:;_JUMP", fa = "###_--_~=:;_RETURN", Rh = "###_--_~=:;_OK", ko = "###_--_~=:;_STOP";
4674
4674
  function Fh(e) {
4675
- return e === $o || e === fa || e === Rh || e === Co;
4675
+ return e === Co || e === fa || e === Rh || e === ko;
4676
4676
  }
4677
- const Uh = "3.12.1", Bh = /* @__PURE__ */ new Date("2024-08-18T13:05:11.364Z"), Ul = {
4677
+ const Uh = "3.12.2", Bh = /* @__PURE__ */ new Date("2024-08-18T14:54:47.524Z"), Ul = {
4678
4678
  branch: "main",
4679
- commit: "87c0d02937dacf0c8793c9ae24da1db269e98e81"
4680
- }, qh = nr.WARN, Vh = 400, ko = 20, zo = "@empty", Bl = {
4679
+ commit: "d4009d2db3577847bea3c2f55b0b05cb5fd0f7c0"
4680
+ }, qh = nr.WARN, Vh = 400, Oo = 20, zo = "@empty", Bl = {
4681
4681
  background: zo
4682
4682
  }, Hh = f.Type.Optional(
4683
4683
  // See inputs-store.ts for possibilities
@@ -4806,7 +4806,7 @@ const Uh = "3.12.1", Bh = /* @__PURE__ */ new Date("2024-08-18T13:05:11.364Z"),
4806
4806
  bottomOffset: 50,
4807
4807
  width: 475,
4808
4808
  height: 680,
4809
- textSpeed: ko,
4809
+ textSpeed: Oo,
4810
4810
  animateText: !0,
4811
4811
  timeBetweenLines: 100,
4812
4812
  hideDuringTransition: !1,
@@ -5226,12 +5226,12 @@ function wy(e) {
5226
5226
  function $y(e) {
5227
5227
  return Array.isArray(e) ? [] : {};
5228
5228
  }
5229
- function Fi(e, t) {
5229
+ function Ui(e, t) {
5230
5230
  return t.clone !== !1 && t.isMergeableObject(e) ? si($y(e), e, t) : e;
5231
5231
  }
5232
5232
  function Cy(e, t, n) {
5233
5233
  return e.concat(t).map(function(r) {
5234
- return Fi(r, n);
5234
+ return Ui(r, n);
5235
5235
  });
5236
5236
  }
5237
5237
  function ky(e, t) {
@@ -5261,15 +5261,15 @@ function Ay(e, t) {
5261
5261
  function Ey(e, t, n) {
5262
5262
  var r = {};
5263
5263
  return n.isMergeableObject(e) && Vl(e).forEach(function(i) {
5264
- r[i] = Fi(e[i], n);
5264
+ r[i] = Ui(e[i], n);
5265
5265
  }), Vl(t).forEach(function(i) {
5266
- Ay(e, i) || (yd(e, i) && n.isMergeableObject(t[i]) ? r[i] = ky(i, n)(e[i], t[i], n) : r[i] = Fi(t[i], n));
5266
+ Ay(e, i) || (yd(e, i) && n.isMergeableObject(t[i]) ? r[i] = ky(i, n)(e[i], t[i], n) : r[i] = Ui(t[i], n));
5267
5267
  }), r;
5268
5268
  }
5269
5269
  function si(e, t, n) {
5270
- n = n || {}, n.arrayMerge = n.arrayMerge || Cy, n.isMergeableObject = n.isMergeableObject || vy, n.cloneUnlessOtherwiseSpecified = Fi;
5270
+ n = n || {}, n.arrayMerge = n.arrayMerge || Cy, n.isMergeableObject = n.isMergeableObject || vy, n.cloneUnlessOtherwiseSpecified = Ui;
5271
5271
  var r = Array.isArray(t), i = Array.isArray(e), s = r === i;
5272
- return s ? r ? n.arrayMerge(e, t, n) : Ey(e, t, n) : Fi(t, n);
5272
+ return s ? r ? n.arrayMerge(e, t, n) : Ey(e, t, n) : Ui(t, n);
5273
5273
  }
5274
5274
  si.all = function(t, n) {
5275
5275
  if (!Array.isArray(t))
@@ -5401,15 +5401,15 @@ function bd(e, t) {
5401
5401
 
5402
5402
  ` + e.mark.snippet), r + " " + n) : r;
5403
5403
  }
5404
- function Ui(e, t) {
5404
+ function Bi(e, t) {
5405
5405
  Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = bd(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
5406
5406
  }
5407
- Ui.prototype = Object.create(Error.prototype);
5408
- Ui.prototype.constructor = Ui;
5409
- Ui.prototype.toString = function(t) {
5407
+ Bi.prototype = Object.create(Error.prototype);
5408
+ Bi.prototype.constructor = Bi;
5409
+ Bi.prototype.toString = function(t) {
5410
5410
  return this.name + ": " + bd(this, t);
5411
5411
  };
5412
- var Bt = Ui;
5412
+ var Bt = Bi;
5413
5413
  function ps(e, t, n, r, i) {
5414
5414
  var s = "", o = "", l = Math.floor(i / 2) - 1;
5415
5415
  return r - t > l && (s = " ... ", t = r - l + s.length), n - r > l && (o = " ...", n = r + l - o.length), {
@@ -5949,7 +5949,7 @@ var Fd = new It("tag:yaml.org,2002:set", {
5949
5949
  Rd,
5950
5950
  Fd
5951
5951
  ]
5952
- }), ar = Object.prototype.hasOwnProperty, Oo = 1, Ud = 2, Bd = 3, Ao = 4, hs = 1, jg = 2, Kl = 3, Lg = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Dg = /[\x85\u2028\u2029]/, Mg = /[,\[\]\{\}]/, qd = /^(?:!|!!|![a-z\-]+!)$/i, Vd = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
5952
+ }), ar = Object.prototype.hasOwnProperty, Ao = 1, Ud = 2, Bd = 3, Eo = 4, hs = 1, jg = 2, Kl = 3, Lg = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Dg = /[\x85\u2028\u2029]/, Mg = /[,\[\]\{\}]/, qd = /^(?:!|!!|![a-z\-]+!)$/i, Vd = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
5953
5953
  function Gl(e) {
5954
5954
  return Object.prototype.toString.call(e);
5955
5955
  }
@@ -6005,13 +6005,13 @@ function Gd(e, t) {
6005
6005
  function Te(e, t) {
6006
6006
  throw Gd(e, t);
6007
6007
  }
6008
- function Eo(e, t) {
6008
+ function Io(e, t) {
6009
6009
  e.onWarning && e.onWarning.call(null, Gd(e, t));
6010
6010
  }
6011
6011
  var zl = {
6012
6012
  YAML: function(t, n, r) {
6013
6013
  var i, s, o;
6014
- t.version !== null && Te(t, "duplication of %YAML directive"), r.length !== 1 && Te(t, "YAML directive accepts exactly one argument"), i = /^([0-9]+)\.([0-9]+)$/.exec(r[0]), i === null && Te(t, "ill-formed argument of the YAML directive"), s = parseInt(i[1], 10), o = parseInt(i[2], 10), s !== 1 && Te(t, "unacceptable YAML version of the document"), t.version = r[0], t.checkLineBreaks = o < 2, o !== 1 && o !== 2 && Eo(t, "unsupported YAML version of the document");
6014
+ t.version !== null && Te(t, "duplication of %YAML directive"), r.length !== 1 && Te(t, "YAML directive accepts exactly one argument"), i = /^([0-9]+)\.([0-9]+)$/.exec(r[0]), i === null && Te(t, "ill-formed argument of the YAML directive"), s = parseInt(i[1], 10), o = parseInt(i[2], 10), s !== 1 && Te(t, "unacceptable YAML version of the document"), t.version = r[0], t.checkLineBreaks = o < 2, o !== 1 && o !== 2 && Io(t, "unsupported YAML version of the document");
6015
6015
  },
6016
6016
  TAG: function(t, n, r) {
6017
6017
  var i, s;
@@ -6078,7 +6078,7 @@ function wt(e, t, n) {
6078
6078
  else
6079
6079
  break;
6080
6080
  }
6081
- return n !== -1 && r !== 0 && e.lineIndent < n && Eo(e, "deficient indentation"), r;
6081
+ return n !== -1 && r !== 0 && e.lineIndent < n && Io(e, "deficient indentation"), r;
6082
6082
  }
6083
6083
  function Yo(e) {
6084
6084
  var t = e.position, n;
@@ -6164,7 +6164,7 @@ function Gg(e, t) {
6164
6164
  for (e.anchor !== null && (e.anchorMap[e.anchor] = l), E = e.input.charCodeAt(++e.position); E !== 0; ) {
6165
6165
  if (wt(e, !0, t), E = e.input.charCodeAt(e.position), E === m)
6166
6166
  return e.position++, e.tag = o, e.anchor = u, e.kind = p ? "mapping" : "sequence", e.result = l, !0;
6167
- n ? E === 44 && Te(e, "expected the node content, but found ','") : Te(e, "missed comma between flow collection entries"), T = v = _ = null, a = d = !1, E === 63 && (c = e.input.charCodeAt(e.position + 1), Gt(c) && (a = d = !0, e.position++, wt(e, !0, t))), r = e.line, i = e.lineStart, s = e.position, ai(e, t, Oo, !1, !0), T = e.tag, v = e.result, wt(e, !0, t), E = e.input.charCodeAt(e.position), (d || e.line === r) && E === 58 && (a = !0, E = e.input.charCodeAt(++e.position), wt(e, !0, t), ai(e, t, Oo, !1, !0), _ = e.result), p ? Yr(e, l, h, T, v, _, r, i, s) : a ? l.push(Yr(e, null, h, T, v, _, r, i, s)) : l.push(v), wt(e, !0, t), E = e.input.charCodeAt(e.position), E === 44 ? (n = !0, E = e.input.charCodeAt(++e.position)) : n = !1;
6167
+ n ? E === 44 && Te(e, "expected the node content, but found ','") : Te(e, "missed comma between flow collection entries"), T = v = _ = null, a = d = !1, E === 63 && (c = e.input.charCodeAt(e.position + 1), Gt(c) && (a = d = !0, e.position++, wt(e, !0, t))), r = e.line, i = e.lineStart, s = e.position, ai(e, t, Ao, !1, !0), T = e.tag, v = e.result, wt(e, !0, t), E = e.input.charCodeAt(e.position), (d || e.line === r) && E === 58 && (a = !0, E = e.input.charCodeAt(++e.position), wt(e, !0, t), ai(e, t, Ao, !1, !0), _ = e.result), p ? Yr(e, l, h, T, v, _, r, i, s) : a ? l.push(Yr(e, null, h, T, v, _, r, i, s)) : l.push(v), wt(e, !0, t), E = e.input.charCodeAt(e.position), E === 44 ? (n = !0, E = e.input.charCodeAt(++e.position)) : n = !1;
6168
6168
  }
6169
6169
  Te(e, "unexpected end of the stream within a flow collection");
6170
6170
  }
@@ -6255,7 +6255,7 @@ function zg(e, t, n) {
6255
6255
  else
6256
6256
  return e.tag = c, e.anchor = m, !0;
6257
6257
  }
6258
- if ((e.line === s || e.lineIndent > t) && (T && (o = e.line, l = e.lineStart, u = e.position), ai(e, t, Ao, !0, i) && (T ? h = e.result : v = e.result), T || (Yr(e, a, d, p, h, v, o, l, u), p = h = v = null), wt(e, !0, -1), E = e.input.charCodeAt(e.position)), (e.line === s || e.lineIndent > t) && E !== 0)
6258
+ if ((e.line === s || e.lineIndent > t) && (T && (o = e.line, l = e.lineStart, u = e.position), ai(e, t, Eo, !0, i) && (T ? h = e.result : v = e.result), T || (Yr(e, a, d, p, h, v, o, l, u), p = h = v = null), wt(e, !0, -1), E = e.input.charCodeAt(e.position)), (e.line === s || e.lineIndent > t) && E !== 0)
6259
6259
  Te(e, "bad indentation of a mapping entry");
6260
6260
  else if (e.lineIndent < t)
6261
6261
  break;
@@ -6302,10 +6302,10 @@ function Jg(e) {
6302
6302
  }
6303
6303
  function ai(e, t, n, r, i) {
6304
6304
  var s, o, l, u = 1, c = !1, m = !1, a, d, p, h, v, T;
6305
- if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, s = o = l = Ao === n || Bd === n, r && wt(e, !0, -1) && (c = !0, e.lineIndent > t ? u = 1 : e.lineIndent === t ? u = 0 : e.lineIndent < t && (u = -1)), u === 1)
6305
+ if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, s = o = l = Eo === n || Bd === n, r && wt(e, !0, -1) && (c = !0, e.lineIndent > t ? u = 1 : e.lineIndent === t ? u = 0 : e.lineIndent < t && (u = -1)), u === 1)
6306
6306
  for (; Qg(e) || Yg(e); )
6307
6307
  wt(e, !0, -1) ? (c = !0, l = s, e.lineIndent > t ? u = 1 : e.lineIndent === t ? u = 0 : e.lineIndent < t && (u = -1)) : l = !1;
6308
- if (l && (l = c || i), (u === 1 || Ao === n) && (Oo === n || Ud === n ? v = t : v = t + 1, T = e.position - e.lineStart, u === 1 ? l && (Yl(e, T) || zg(e, T, v)) || Gg(e, v) ? m = !0 : (o && Wg(e, v) || Hg(e, v) || Kg(e, v) ? m = !0 : Jg(e) ? (m = !0, (e.tag !== null || e.anchor !== null) && Te(e, "alias node should not have any properties")) : Vg(e, v, Oo === n) && (m = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : u === 0 && (m = l && Yl(e, T))), e.tag === null)
6308
+ if (l && (l = c || i), (u === 1 || Eo === n) && (Ao === n || Ud === n ? v = t : v = t + 1, T = e.position - e.lineStart, u === 1 ? l && (Yl(e, T) || zg(e, T, v)) || Gg(e, v) ? m = !0 : (o && Wg(e, v) || Hg(e, v) || Kg(e, v) ? m = !0 : Jg(e) ? (m = !0, (e.tag !== null || e.anchor !== null) && Te(e, "alias node should not have any properties")) : Vg(e, v, Ao === n) && (m = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : u === 0 && (m = l && Yl(e, T))), e.tag === null)
6309
6309
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
6310
6310
  else if (e.tag === "?") {
6311
6311
  for (e.result !== null && e.kind !== "scalar" && Te(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), a = 0, d = e.implicitTypes.length; a < d; a += 1)
@@ -6346,9 +6346,9 @@ function Xg(e) {
6346
6346
  o = e.input.charCodeAt(++e.position);
6347
6347
  i.push(e.input.slice(n, e.position));
6348
6348
  }
6349
- o !== 0 && _a(e), ar.call(zl, r) ? zl[r](e, r, i) : Eo(e, 'unknown document directive "' + r + '"');
6349
+ o !== 0 && _a(e), ar.call(zl, r) ? zl[r](e, r, i) : Io(e, 'unknown document directive "' + r + '"');
6350
6350
  }
6351
- if (wt(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, wt(e, !0, -1)) : s && Te(e, "directives end mark is expected"), ai(e, e.lineIndent - 1, Ao, !1, !0), wt(e, !0, -1), e.checkLineBreaks && Dg.test(e.input.slice(t, e.position)) && Eo(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Yo(e)) {
6351
+ if (wt(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, wt(e, !0, -1)) : s && Te(e, "directives end mark is expected"), ai(e, e.lineIndent - 1, Eo, !1, !0), wt(e, !0, -1), e.checkLineBreaks && Dg.test(e.input.slice(t, e.position)) && Io(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Yo(e)) {
6352
6352
  e.input.charCodeAt(e.position) === 46 && (e.position += 3, wt(e, !0, -1));
6353
6353
  return;
6354
6354
  }
@@ -6386,7 +6386,7 @@ function ev(e, t) {
6386
6386
  var tv = Zg, nv = ev, zd = {
6387
6387
  loadAll: tv,
6388
6388
  load: nv
6389
- }, Qd = Object.prototype.toString, Yd = Object.prototype.hasOwnProperty, Ta = 65279, rv = 9, Bi = 10, iv = 13, ov = 32, sv = 33, av = 34, Ls = 35, lv = 37, cv = 38, uv = 39, dv = 42, Jd = 44, fv = 45, Io = 58, pv = 61, mv = 62, hv = 63, yv = 64, Xd = 91, Zd = 93, gv = 96, ef = 123, vv = 124, tf = 125, Mt = {};
6389
+ }, Qd = Object.prototype.toString, Yd = Object.prototype.hasOwnProperty, Ta = 65279, rv = 9, qi = 10, iv = 13, ov = 32, sv = 33, av = 34, Ls = 35, lv = 37, cv = 38, uv = 39, dv = 42, Jd = 44, fv = 45, Po = 58, pv = 61, mv = 62, hv = 63, yv = 64, Xd = 91, Zd = 93, gv = 96, ef = 123, vv = 124, tf = 125, Mt = {};
6390
6390
  Mt[0] = "\\0";
6391
6391
  Mt[7] = "\\a";
6392
6392
  Mt[8] = "\\b";
@@ -6440,9 +6440,9 @@ function Sv(e) {
6440
6440
  throw new Bt("code point within a string may not be greater than 0xFFFFFFFF");
6441
6441
  return "\\" + n + $t.repeat("0", r - t.length) + t;
6442
6442
  }
6443
- var wv = 1, qi = 2;
6443
+ var wv = 1, Vi = 2;
6444
6444
  function $v(e) {
6445
- this.schema = e.schema || va, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = $t.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Tv(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? qi : wv, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
6445
+ this.schema = e.schema || va, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = $t.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Tv(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Vi : wv, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
6446
6446
  }
6447
6447
  function Jl(e, t) {
6448
6448
  for (var n = $t.repeat(" ", t), r = 0, i = -1, s = "", o, l = e.length; r < l; )
@@ -6462,30 +6462,30 @@ function Cv(e, t) {
6462
6462
  return !0;
6463
6463
  return !1;
6464
6464
  }
6465
- function Po(e) {
6465
+ function No(e) {
6466
6466
  return e === ov || e === rv;
6467
6467
  }
6468
- function Vi(e) {
6468
+ function Hi(e) {
6469
6469
  return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== Ta || 65536 <= e && e <= 1114111;
6470
6470
  }
6471
6471
  function Xl(e) {
6472
- return Vi(e) && e !== Ta && e !== iv && e !== Bi;
6472
+ return Hi(e) && e !== Ta && e !== iv && e !== qi;
6473
6473
  }
6474
6474
  function Zl(e, t, n) {
6475
- var r = Xl(e), i = r && !Po(e);
6475
+ var r = Xl(e), i = r && !No(e);
6476
6476
  return (
6477
6477
  // ns-plain-safe
6478
6478
  (n ? (
6479
6479
  // c = flow-in
6480
6480
  r
6481
- ) : r && e !== Jd && e !== Xd && e !== Zd && e !== ef && e !== tf) && e !== Ls && !(t === Io && !i) || Xl(t) && !Po(t) && e === Ls || t === Io && i
6481
+ ) : r && e !== Jd && e !== Xd && e !== Zd && e !== ef && e !== tf) && e !== Ls && !(t === Po && !i) || Xl(t) && !No(t) && e === Ls || t === Po && i
6482
6482
  );
6483
6483
  }
6484
6484
  function kv(e) {
6485
- return Vi(e) && e !== Ta && !Po(e) && e !== fv && e !== hv && e !== Io && e !== Jd && e !== Xd && e !== Zd && e !== ef && e !== tf && e !== Ls && e !== cv && e !== dv && e !== sv && e !== vv && e !== pv && e !== mv && e !== uv && e !== av && e !== lv && e !== yv && e !== gv;
6485
+ return Hi(e) && e !== Ta && !No(e) && e !== fv && e !== hv && e !== Po && e !== Jd && e !== Xd && e !== Zd && e !== ef && e !== tf && e !== Ls && e !== cv && e !== dv && e !== sv && e !== vv && e !== pv && e !== mv && e !== uv && e !== av && e !== lv && e !== yv && e !== gv;
6486
6486
  }
6487
6487
  function Ov(e) {
6488
- return !Po(e) && e !== Io;
6488
+ return !No(e) && e !== Po;
6489
6489
  }
6490
6490
  function $i(e, t) {
6491
6491
  var n = e.charCodeAt(t), r;
@@ -6500,29 +6500,29 @@ function Av(e, t, n, r, i, s, o, l) {
6500
6500
  var u, c = 0, m = null, a = !1, d = !1, p = r !== -1, h = -1, v = kv($i(e, 0)) && Ov($i(e, e.length - 1));
6501
6501
  if (t || o)
6502
6502
  for (u = 0; u < e.length; c >= 65536 ? u += 2 : u++) {
6503
- if (c = $i(e, u), !Vi(c))
6503
+ if (c = $i(e, u), !Hi(c))
6504
6504
  return Kr;
6505
6505
  v = v && Zl(c, m, l), m = c;
6506
6506
  }
6507
6507
  else {
6508
6508
  for (u = 0; u < e.length; c >= 65536 ? u += 2 : u++) {
6509
- if (c = $i(e, u), c === Bi)
6509
+ if (c = $i(e, u), c === qi)
6510
6510
  a = !0, p && (d = d || // Foldable line = too long, and not more-indented.
6511
6511
  u - h - 1 > r && e[h + 1] !== " ", h = u);
6512
- else if (!Vi(c))
6512
+ else if (!Hi(c))
6513
6513
  return Kr;
6514
6514
  v = v && Zl(c, m, l), m = c;
6515
6515
  }
6516
6516
  d = d || p && u - h - 1 > r && e[h + 1] !== " ";
6517
6517
  }
6518
- return !a && !d ? v && !o && !i(e) ? rf : s === qi ? Kr : Ms : n > 9 && nf(e) ? Kr : o ? s === qi ? Kr : Ms : d ? sf : of;
6518
+ return !a && !d ? v && !o && !i(e) ? rf : s === Vi ? Kr : Ms : n > 9 && nf(e) ? Kr : o ? s === Vi ? Kr : Ms : d ? sf : of;
6519
6519
  }
6520
6520
  function Ev(e, t, n, r, i) {
6521
6521
  e.dump = function() {
6522
6522
  if (t.length === 0)
6523
- return e.quotingType === qi ? '""' : "''";
6523
+ return e.quotingType === Vi ? '""' : "''";
6524
6524
  if (!e.noCompatMode && (_v.indexOf(t) !== -1 || bv.test(t)))
6525
- return e.quotingType === qi ? '"' + t + '"' : "'" + t + "'";
6525
+ return e.quotingType === Vi ? '"' + t + '"' : "'" + t + "'";
6526
6526
  var s = e.indent * Math.max(1, n), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - s), l = r || e.flowLevel > -1 && n >= e.flowLevel;
6527
6527
  function u(c) {
6528
6528
  return Cv(e, c);
@@ -6589,7 +6589,7 @@ function nc(e, t) {
6589
6589
  }
6590
6590
  function Pv(e) {
6591
6591
  for (var t = "", n = 0, r, i = 0; i < e.length; n >= 65536 ? i += 2 : i++)
6592
- n = $i(e, i), r = Mt[n], !r && Vi(n) ? (t += e[i], n >= 65536 && (t += e[i + 1])) : t += r || Sv(n);
6592
+ n = $i(e, i), r = Mt[n], !r && Hi(n) ? (t += e[i], n >= 65536 && (t += e[i + 1])) : t += r || Sv(n);
6593
6593
  return t;
6594
6594
  }
6595
6595
  function Nv(e, t, n) {
@@ -6601,7 +6601,7 @@ function Nv(e, t, n) {
6601
6601
  function rc(e, t, n, r) {
6602
6602
  var i = "", s = e.tag, o, l, u;
6603
6603
  for (o = 0, l = n.length; o < l; o += 1)
6604
- u = n[o], e.replacer && (u = e.replacer.call(n, String(o), u)), (Gn(e, t + 1, u, !0, !0, !1, !0) || typeof u > "u" && Gn(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += Ds(e, t)), e.dump && Bi === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
6604
+ u = n[o], e.replacer && (u = e.replacer.call(n, String(o), u)), (Gn(e, t + 1, u, !0, !0, !1, !0) || typeof u > "u" && Gn(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += Ds(e, t)), e.dump && qi === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
6605
6605
  e.tag = s, e.dump = i || "[]";
6606
6606
  }
6607
6607
  function xv(e, t, n) {
@@ -6619,7 +6619,7 @@ function jv(e, t, n, r) {
6619
6619
  else if (e.sortKeys)
6620
6620
  throw new Bt("sortKeys must be a boolean or a function");
6621
6621
  for (l = 0, u = o.length; l < u; l += 1)
6622
- d = "", (!r || i !== "") && (d += Ds(e, t)), c = o[l], m = n[c], e.replacer && (m = e.replacer.call(n, c, m)), Gn(e, t + 1, c, !0, !0, !0) && (a = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, a && (e.dump && Bi === e.dump.charCodeAt(0) ? d += "?" : d += "? "), d += e.dump, a && (d += Ds(e, t)), Gn(e, t + 1, m, !0, a) && (e.dump && Bi === e.dump.charCodeAt(0) ? d += ":" : d += ": ", d += e.dump, i += d));
6622
+ d = "", (!r || i !== "") && (d += Ds(e, t)), c = o[l], m = n[c], e.replacer && (m = e.replacer.call(n, c, m)), Gn(e, t + 1, c, !0, !0, !0) && (a = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, a && (e.dump && qi === e.dump.charCodeAt(0) ? d += "?" : d += "? "), d += e.dump, a && (d += Ds(e, t)), Gn(e, t + 1, m, !0, a) && (e.dump && qi === e.dump.charCodeAt(0) ? d += ":" : d += ": ", d += e.dump, i += d));
6623
6623
  e.tag = s, e.dump = i || "{}";
6624
6624
  }
6625
6625
  function ic(e, t, n) {
@@ -6812,9 +6812,9 @@ async function lf(e, t) {
6812
6812
  });
6813
6813
  return vr[e] = n, n;
6814
6814
  }
6815
- const vo = {};
6815
+ const _o = {};
6816
6816
  function r_(e) {
6817
- return vo[e] ?? {};
6817
+ return _o[e] ?? {};
6818
6818
  }
6819
6819
  function oc(e, t, n) {
6820
6820
  const r = r_(e.transition), i = e.duration ?? r.duration ?? 500, s = e.delay ?? r.delay ?? 0;
@@ -6865,8 +6865,8 @@ const qt = bt("notifications", {
6865
6865
  actions: {
6866
6866
  generateSaveData() {
6867
6867
  return {
6868
- items: Ke(this.items),
6869
- interactionTags: Ke(this.interactionTags)
6868
+ items: He(this.items),
6869
+ interactionTags: He(this.interactionTags)
6870
6870
  };
6871
6871
  },
6872
6872
  loadSaveData(e) {
@@ -7030,8 +7030,8 @@ const qt = bt("notifications", {
7030
7030
  },
7031
7031
  generateSaveData() {
7032
7032
  return {
7033
- layers: Ke(this.layers).filter((e) => e).map((e) => e.screen ?? null),
7034
- buttons: Ke(this.buttons)
7033
+ layers: He(this.layers).filter((e) => e).map((e) => e.screen ?? null),
7034
+ buttons: He(this.buttons)
7035
7035
  };
7036
7036
  },
7037
7037
  loadSaveData(e) {
@@ -7182,8 +7182,8 @@ const on = bt("screenObjects", {
7182
7182
  // Turns objects into objects with string references
7183
7183
  generateSaveData() {
7184
7184
  return {
7185
- tree: Ke(this.tree.map((e) => e.id)),
7186
- objectsList: Ke(
7185
+ tree: He(this.tree.map((e) => e.id)),
7186
+ objectsList: He(
7187
7187
  e_(this.objectsList, (e) => this.screenObjectToSave(e))
7188
7188
  )
7189
7189
  };
@@ -7234,7 +7234,7 @@ function uf(e) {
7234
7234
  function l_(e) {
7235
7235
  return "config" in e;
7236
7236
  }
7237
- const c_ = $e({
7237
+ const c_ = Ce({
7238
7238
  props: {
7239
7239
  percentage: Number,
7240
7240
  step: String
@@ -7262,7 +7262,7 @@ function f_(e, t, n, r, i, s) {
7262
7262
  const p_ = /* @__PURE__ */ sn(c_, [["render", f_]]), m_ = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2019.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Rat'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20595.3%20595.3'%20style='enable-background:new%200%200%20595.3%20595.3;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23E23B33;}%20%3c/style%3e%3cpath%20id='Rat_Shape'%20class='st0'%20d='M556.9,82.5c-10.8-24.3-47-57.1-71.3-65.6c-24.3-8.4-64.1-0.3-88.7,22.3%20c-20,18.4-26,28.2-29.1,37c-2.1,5.9-4.8,13.5-6,20.9v0c-0.5,4.1-4.5,7-8.6,6.1c-10.4-2.3-29.5-6-44.4-6.3%20c-13.7-0.2-30.1,3.2-40.4,5.7c-4.5,1.1-8.8-2.2-8.8-6.8c-0.1-5.3-1.1-12.3-4.8-19.6c-8.5-16.9-19.6-32.6-57.8-47.4%20c-31.9-12.4-75.1-9.7-100.8,1.8c-28.1,12.6-42.4,37.9-54,61.8c-14.4,29.8-14.9,83.6-6.4,104c12.8,30.7,35.8,47.2,52.6,53%20c11.3,3.8,28.2,3.7,38.2,3.3c4.2-0.2,7.7,3.3,7.5,7.5c-0.7,13.6-0.9,41.5,7,61.4c7.7,19.4,29.7,62.3,50.7,101.2%20c0,0.1-14.6,2.9-31.4,6.8c-23.9,5.5-52.6,12.7-54.3,13.7c-3.5,2.1-3,10-2.7,12c0.5,3.4,5.3,8.1,6.9,8.3c3.9,0.3,31.3-7.6,55.7-14.6%20c18.5-5.3,34.9-9.3,35.5-8.2c5.1,9.3,10,18,14.4,25.8c5.2,9.1,10.7,16.4,14.1,23.6c1.1,2.3-16.6,5.8-32.5,14.7%20c-16.4,9.1-29.7,21-32.3,24c-1.8,2.1-3,6-1.2,10.7c1.1,2.9,10,5.7,12.4,5.1c6.8-1.7,16.5-12.5,33.1-21.1%20c16.3-8.5,32.9-14.9,33.8-13.6c9.7,14.3,16.9,21.6,22.6,31.2c9.8,16.5,27.3,45.9,46.6,39.5c6.4-2.1,31.1-33.6,53.3-68.6%20c1.3-2.1,16.1,11.3,30.4,23.2c13.8,11.4,22.7,20.6,27.1,21.4c5.4,1,14.2-7.7,14.1-14.7c-0.1-2.7-14.3-13.8-29.1-26.2%20c-14.5-12.1-30.1-22.8-29.2-24.3c7.6-12,14.5-23.7,20.1-33.9c4.3-7.8,8.9-16,13-24.7c0.6-1.2,15.9,3,31.4,7.1c15.3,4,26.7,10,31,8%20c6.9-3,11.6-13.8,9.4-18.3c-1.1-2.3-17-7.3-33.2-12c-14.2-4.1-28-6.5-27.7-7.3c15.5-34,28.8-64.8,27.6-69.6%20c-1.7-7.1,2.6-11.9,7-36.5c3.2-18.1,4.7-40.9,5.2-51.7c0.2-3.5,2.8-6.3,6.3-6.7c3.1-0.3,6.9-0.9,10.5-1.9c7.8-2,18.6-7.8,36.4-20.6%20c17.9-12.8,38.7-49.6,44.4-67.8S567.6,106.8,556.9,82.5z%20M265.1,336.2c-8.1,4-13,7-26.4,9.6c-6.9,1.4-29.4-0.2-40.7-4.6%20c-10.5-4.1-19.9-7.6-30-15.4s-15.7-13.2-15.7-15.3c0-4.4,6-9.4,11-9.4c5.1,0,14.5,9.2,29.7,16.6c14.3,7,17.9,6.1,25.4,7.3%20c2.9,0.5,7.7,0.6,10.7,0.4c14.1-1.3,21.4-5.9,25.3-8.8c4-3,13.7-12.9,17.2-12.5c8,1,18.9,3.4,18.9,7.1%20C290.4,319,273.2,332.1,265.1,336.2z%20M320.9,521.4c-4.3,3.7-17.7,13.5-23.3,13.5c-2.8,0-7.4-8.2-11.5-16.8%20c-4.1-8.5-9.1-21.1-9.1-31.6c0-4.6,6-7.4,13.4-9.2c7.2-1.7,27.3-1.8,29.9-1.1c6.8,1.7,12.9,2.2,12.7,6.4c-0.4,12.7-7,18.9-8.3,24.3%20C323.4,512.3,323.4,519.2,320.9,521.4z%20M431.1,320.3c-9.2,7.4-10.6,8.1-24.9,13.7c-11.3,4.4-28.6,5.8-41.6,3.6%20c-12.2-2.1-22.3-4.6-29.5-10.1c-9.7-7.3-16.4-15.1-16.4-19.8c0-3.7,6.4-4.3,14.5-4.9c3.5-0.3,9.3,5.9,13.2,9.2%20c8.1,6.8,14.8,8,28.8,9.9c2.9,0.4,7.8,0.4,10.7,0.1c7.5-0.9,12-0.4,25.8-8.2c20-11.2,17.8-14.4,25.1-12.6c2.2,0.6,5.8,1.2,5.6,5.6%20C442.4,309,440.5,312.7,431.1,320.3z'/%3e%3c/svg%3e", h_ = {
7263
7263
  id: "engine-splash-screen",
7264
7264
  class: "flex justify-center items-center"
7265
- }, y_ = { id: "engine-splash-title" }, g_ = ["src"], df = /* @__PURE__ */ $e({
7265
+ }, y_ = { id: "engine-splash-title" }, g_ = ["src"], df = /* @__PURE__ */ Ce({
7266
7266
  __name: "engine-splash",
7267
7267
  emits: ["finished"],
7268
7268
  setup(e, { emit: t }) {
@@ -7510,7 +7510,7 @@ const In = bt("settings", {
7510
7510
  var t;
7511
7511
  if (this.setSetting(
7512
7512
  "textSpeed",
7513
- e.dialogPanel.textSpeed ?? ko
7513
+ e.dialogPanel.textSpeed ?? Oo
7514
7514
  ), this.setSetting("animateText", e.dialogPanel.animateText ?? !0), this.setSetting("fontSize", e.layout.defaultFontSize ?? 16), (t = e.settings) != null && t.customSettings)
7515
7515
  for (const n in e.settings.customSettings)
7516
7516
  this.addCustomSetting(n, e.settings.customSettings[n]);
@@ -7520,8 +7520,8 @@ const In = bt("settings", {
7520
7520
  },
7521
7521
  generateSaveData() {
7522
7522
  return {
7523
- baseSettings: Ke(this.baseSettings),
7524
- customSettings: Ke(this.customSettings)
7523
+ baseSettings: He(this.baseSettings),
7524
+ customSettings: He(this.customSettings)
7525
7525
  };
7526
7526
  },
7527
7527
  loadSaveData(e) {
@@ -7623,14 +7623,14 @@ const gt = bt("rendering", {
7623
7623
  },
7624
7624
  gameWidth() {
7625
7625
  const e = ue();
7626
- return this.layoutMode === "vertical" || this.overlayMode ? e.layout.backgrounds.width : e.layout.backgrounds.width + Bo();
7626
+ return this.layoutMode === "vertical" || this.overlayMode ? e.layout.backgrounds.width : e.layout.backgrounds.width + qo();
7627
7627
  },
7628
7628
  gameHeight() {
7629
7629
  const e = ue();
7630
7630
  return this.layoutMode === "vertical", e.layout.backgrounds.height;
7631
7631
  },
7632
7632
  dialogWidth() {
7633
- return this.layoutMode === "vertical" ? this.viewportWidth : Bo();
7633
+ return this.layoutMode === "vertical" ? this.viewportWidth : qo();
7634
7634
  },
7635
7635
  dialogHeight() {
7636
7636
  return this.layoutMode === "vertical" ? this.actualGameHeight - this.gameHeight : ue().dialogPanel.height ?? this.gameHeight;
@@ -7745,14 +7745,14 @@ class __ extends EventTarget {
7745
7745
  updateAllNarratButtons(n, r) {
7746
7746
  for (const [i, s] of n.buttons.entries()) {
7747
7747
  const o = r.buttons[i];
7748
- o.previous = Ke(o.state), o.state = Ke(s), o.previous.pressed !== o.state.pressed && this.gamepadEvent();
7748
+ o.previous = He(o.state), o.state = He(s), o.previous.pressed !== o.state.pressed && this.gamepadEvent();
7749
7749
  }
7750
7750
  }
7751
7751
  getNarratButtonFromGamepad(n, r, i) {
7752
7752
  return {
7753
7753
  index: i,
7754
- state: Ke(r),
7755
- previous: Ke(r)
7754
+ state: He(r),
7755
+ previous: He(r)
7756
7756
  };
7757
7757
  }
7758
7758
  addAction(n) {
@@ -7765,7 +7765,7 @@ class __ extends EventTarget {
7765
7765
  };
7766
7766
  this.actions[n.id] = {
7767
7767
  state: r,
7768
- previous: Ke(r)
7768
+ previous: He(r)
7769
7769
  };
7770
7770
  } else {
7771
7771
  const r = {
@@ -7780,7 +7780,7 @@ class __ extends EventTarget {
7780
7780
  };
7781
7781
  this.actions[n.id] = {
7782
7782
  state: r,
7783
- previous: Ke(r)
7783
+ previous: He(r)
7784
7784
  };
7785
7785
  }
7786
7786
  }
@@ -7818,7 +7818,7 @@ class __ extends EventTarget {
7818
7818
  this.updateGamepad(), this.debugGamepad();
7819
7819
  for (const n of Object.values(this.gameActions))
7820
7820
  if (n.type === "button") {
7821
- const r = this.actions[n.id], i = Ke(r.state), s = r.state;
7821
+ const r = this.actions[n.id], i = He(r.state), s = r.state;
7822
7822
  r.previous = i, n.action === "press" && (n.keybinds.some((l) => {
7823
7823
  let u = !1;
7824
7824
  if (l = this.getKeybindKey(n, l), typeof l.keyboardKey == "string" && this.getKeyboardState(l.keyboardKey).current === !0 && (u = !0), typeof l.gamepadButton == "number") {
@@ -7829,7 +7829,7 @@ class __ extends EventTarget {
7829
7829
  }) ? s.active = !0 : s.active = !1, s.active && !i.active ? s.justPressed = !0 : s.justPressed = !1, !s.active && i.active ? s.justReleased = !0 : s.justReleased = !1);
7830
7830
  } else if (n.type === "analog") {
7831
7831
  const r = this.actions[n.id], i = r.state;
7832
- Ke(r.state), r.previous = Ke(i);
7832
+ He(r.state), r.previous = He(i);
7833
7833
  let s = Zr.create(0, 0);
7834
7834
  n.keybinds.forEach((o) => {
7835
7835
  this.getKeyboardState(o.left).current && (i.fullState.left = 1, s.x -= 1), this.getKeyboardState(o.right).current && (i.fullState.right = 1, s.x += 1), this.getKeyboardState(o.up).current && (i.fullState.up = 1, s.y -= 1), this.getKeyboardState(o.down).current && (i.fullState.down = 1, s.y += 1);
@@ -7853,7 +7853,7 @@ const er = new __(), jt = bt("menu", {
7853
7853
  return Object.entries(as().quests).length > 0;
7854
7854
  },
7855
7855
  showAchievements() {
7856
- return Object.entries(Gi().achievements).length > 0;
7856
+ return Object.entries(Wi().achievements).length > 0;
7857
7857
  },
7858
7858
  menuTabsToShow(e) {
7859
7859
  return e.menus.menu.tabs.map((t) => {
@@ -8215,7 +8215,7 @@ const er = new __(), jt = bt("menu", {
8215
8215
  }, w_ = {
8216
8216
  class: "title",
8217
8217
  id: "game-splash-title"
8218
- }, pf = /* @__PURE__ */ $e({
8218
+ }, pf = /* @__PURE__ */ Ce({
8219
8219
  __name: "game-splash",
8220
8220
  setup(e) {
8221
8221
  const t = le(null), n = ke(), r = q(
@@ -8378,7 +8378,7 @@ function zn(e) {
8378
8378
  const $_ = { class: "used-save-slot flex flex-row justify-between items-center grow" }, C_ = { class: "flex flex-col save-slot-number-container" }, k_ = { class: "save-slot-number" }, O_ = { class: "flex flex-col justify-center save-info" }, A_ = {
8379
8379
  key: 1,
8380
8380
  class: "save-name"
8381
- }, E_ = { class: "flex flex-col" }, I_ = { key: 0 }, P_ = { key: 1 }, N_ = { key: 2 }, x_ = ["onClick"], ys = /* @__PURE__ */ $e({
8381
+ }, E_ = { class: "flex flex-col" }, I_ = { key: 0 }, P_ = { key: 1 }, N_ = { key: 2 }, x_ = ["onClick"], ys = /* @__PURE__ */ Ce({
8382
8382
  __name: "save-slot-ui",
8383
8383
  props: {
8384
8384
  saveSlot: {},
@@ -8397,10 +8397,10 @@ const $_ = { class: "used-save-slot flex flex-row justify-between items-center g
8397
8397
  const l = le(((U = r.saveSlot.saveData) == null ? void 0 : U.metadata.name) ?? "Empty Save"), u = le(0), c = q(() => r.saveSlot.saveData !== null), m = q(() => r.saveSlot.saveData), a = q(() => ue().saves.mode), d = q(() => {
8398
8398
  const B = r.saveSlot.saveData;
8399
8399
  if (B && B.screens.layers[0]) {
8400
- const L = to(B.screens.layers[0]);
8400
+ const L = no(B.screens.layers[0]);
8401
8401
  if (L)
8402
8402
  return {
8403
- backgroundImage: `url(${no(L.background)})`
8403
+ backgroundImage: `url(${ro(L.background)})`
8404
8404
  };
8405
8405
  }
8406
8406
  return !1;
@@ -8490,7 +8490,7 @@ const $_ = { class: "used-save-slot flex flex-row justify-between items-center g
8490
8490
  ])
8491
8491
  ], 512));
8492
8492
  }
8493
- }), j_ = /* @__PURE__ */ M("h3", { class: "title" }, "Confirmation", -1), No = /* @__PURE__ */ $e({
8493
+ }), j_ = /* @__PURE__ */ M("h3", { class: "title" }, "Confirmation", -1), xo = /* @__PURE__ */ Ce({
8494
8494
  __name: "yes-no",
8495
8495
  props: {
8496
8496
  prompt: {
@@ -8537,14 +8537,14 @@ const $_ = { class: "used-save-slot flex flex-row justify-between items-center g
8537
8537
  return ft(() => {
8538
8538
  }), _t(() => {
8539
8539
  n.value && et().unregisterInputListener(n.value);
8540
- }), (l, u) => (D(), Ce(cr, {
8540
+ }), (l, u) => (D(), $e(cr, {
8541
8541
  onClose: u[2] || (u[2] = () => o(!1)),
8542
8542
  containerCssClass: "yes-no-modal"
8543
8543
  }, {
8544
- header: He(() => [
8544
+ header: Ke(() => [
8545
8545
  j_
8546
8546
  ]),
8547
- body: He(() => [
8547
+ body: Ke(() => [
8548
8548
  M("h3", null, ye(e.prompt), 1),
8549
8549
  M("div", {
8550
8550
  class: "flex justify-center",
@@ -8567,7 +8567,7 @@ const $_ = { class: "used-save-slot flex flex-row justify-between items-center g
8567
8567
  }), L_ = { class: "nrt-title" }, D_ = { key: 0 }, M_ = { class: "saves-section" }, R_ = /* @__PURE__ */ M("h3", { class: "saves-section-title" }, "Auto save", -1), F_ = { class: "saves-section" }, U_ = /* @__PURE__ */ M("h3", { class: "saves-section-title" }, "Manual Saves", -1), B_ = {
8568
8568
  key: 1,
8569
8569
  class: "saves-section"
8570
- }, q_ = /* @__PURE__ */ M("h3", { class: "saves-section-title" }, "Save Slots", -1), V_ = { class: "saves-container flex flex-col" }, mf = /* @__PURE__ */ $e({
8570
+ }, q_ = /* @__PURE__ */ M("h3", { class: "saves-section-title" }, "Save Slots", -1), V_ = { class: "saves-container flex flex-col" }, mf = /* @__PURE__ */ Ce({
8571
8571
  __name: "save-slots",
8572
8572
  props: {
8573
8573
  mode: {}
@@ -8676,15 +8676,15 @@ const $_ = { class: "used-save-slot flex flex-row justify-between items-center g
8676
8676
  function te(z) {
8677
8677
  return s.find((Q) => Q.id === z);
8678
8678
  }
8679
- return (z, Q) => (D(), Ce(cr, {
8679
+ return (z, Q) => (D(), $e(cr, {
8680
8680
  onClose: Z,
8681
8681
  containerCssClass: "save-modal",
8682
8682
  cantClose: !1
8683
8683
  }, {
8684
- header: He(() => [
8684
+ header: Ke(() => [
8685
8685
  M("h3", L_, ye(z.mode === "load" ? "Choose a save to load" : "Pick a slot to save the game"), 1)
8686
8686
  ]),
8687
- body: He(() => [
8687
+ body: Ke(() => [
8688
8688
  T.value === "manual" ? (D(), J("div", D_, [
8689
8689
  M("div", M_, [
8690
8690
  R_,
@@ -8692,8 +8692,8 @@ const $_ = { class: "used-save-slot flex flex-row justify-between items-center g
8692
8692
  name: "list",
8693
8693
  tag: "div"
8694
8694
  }, {
8695
- default: He(() => [
8696
- (D(!0), J(We, null, Xe(o.value, (X) => (D(), Ce(ys, {
8695
+ default: Ke(() => [
8696
+ (D(!0), J(We, null, Xe(o.value, (X) => (D(), $e(ys, {
8697
8697
  key: X.id,
8698
8698
  saveSlot: X,
8699
8699
  id: X.id,
@@ -8715,8 +8715,8 @@ const $_ = { class: "used-save-slot flex flex-row justify-between items-center g
8715
8715
  name: "list",
8716
8716
  tag: "div"
8717
8717
  }, {
8718
- default: He(() => [
8719
- (D(!0), J(We, null, Xe(l.value, (X) => (D(), Ce(ys, {
8718
+ default: Ke(() => [
8719
+ (D(!0), J(We, null, Xe(l.value, (X) => (D(), $e(ys, {
8720
8720
  key: X.id,
8721
8721
  saveSlot: X,
8722
8722
  id: X.id,
@@ -8739,8 +8739,8 @@ const $_ = { class: "used-save-slot flex flex-row justify-between items-center g
8739
8739
  name: "list",
8740
8740
  tag: "div"
8741
8741
  }, {
8742
- default: He(() => [
8743
- (D(!0), J(We, null, Xe(s, (X) => (D(), Ce(ys, {
8742
+ default: Ke(() => [
8743
+ (D(!0), J(We, null, Xe(s, (X) => (D(), $e(ys, {
8744
8744
  key: X.id,
8745
8745
  saveSlot: X,
8746
8746
  id: X.id,
@@ -8757,13 +8757,13 @@ const $_ = { class: "used-save-slot flex flex-row justify-between items-center g
8757
8757
  })
8758
8758
  ])
8759
8759
  ])),
8760
- _.saveToDelete ? (D(), Ce(No, {
8760
+ _.saveToDelete ? (D(), $e(xo, {
8761
8761
  key: 2,
8762
8762
  prompt: _.prompt,
8763
8763
  onRefuse: _.onRefuse,
8764
8764
  onConfirm: _.onConfirm
8765
8765
  }, null, 8, ["prompt", "onRefuse", "onConfirm"])) : Oe("", !0),
8766
- E.saveToOverwrite ? (D(), Ce(No, {
8766
+ E.saveToOverwrite ? (D(), $e(xo, {
8767
8767
  key: 3,
8768
8768
  prompt: E.prompt,
8769
8769
  onRefuse: E.onRefuse,
@@ -8773,7 +8773,7 @@ const $_ = { class: "used-save-slot flex flex-row justify-between items-center g
8773
8773
  _: 1
8774
8774
  }));
8775
8775
  }
8776
- }), H_ = /* @__PURE__ */ $e({
8776
+ }), H_ = /* @__PURE__ */ Ce({
8777
8777
  __name: "start-menu-button",
8778
8778
  props: {
8779
8779
  button: {}
@@ -8856,7 +8856,7 @@ async function W_(e, t) {
8856
8856
  const z_ = { id: "game-menu" }, Q_ = {
8857
8857
  id: "game-header",
8858
8858
  class: "flex flex-col justify-between items-center"
8859
- }, Y_ = { id: "game-title-container" }, J_ = { id: "game-title-text" }, X_ = { class: "nrt-title" }, Z_ = /* @__PURE__ */ $e({
8859
+ }, Y_ = { id: "game-title-container" }, J_ = { id: "game-title-text" }, X_ = { class: "nrt-title" }, Z_ = /* @__PURE__ */ Ce({
8860
8860
  __name: "StartMenu",
8861
8861
  setup(e) {
8862
8862
  const t = le(
@@ -9009,13 +9009,13 @@ const z_ = { id: "game-menu" }, Q_ = {
9009
9009
  });
9010
9010
  const Q = q(() => ue().gameTitle);
9011
9011
  return (X, re) => (D(), J("div", z_, [
9012
- u.value ? (D(), Ce(mf, {
9012
+ u.value ? (D(), $e(mf, {
9013
9013
  key: 0,
9014
9014
  mode: "load",
9015
9015
  onChosen: Y,
9016
9016
  onClose: re[0] || (re[0] = (Pe) => u.value = !1)
9017
9017
  })) : Oe("", !0),
9018
- c.value ? (D(), Ce(No, {
9018
+ c.value ? (D(), $e(xo, {
9019
9019
  key: 1,
9020
9020
  prompt: "This will override your previous autosave, are you sure?",
9021
9021
  onConfirm: E,
@@ -9030,14 +9030,14 @@ const z_ = { id: "game-menu" }, Q_ = {
9030
9030
  ref_key: "buttonsContainer",
9031
9031
  ref: r
9032
9032
  }, [
9033
- (D(!0), J(We, null, Xe(n.value, (Pe) => (D(), Ce(H_, {
9033
+ (D(!0), J(We, null, Xe(n.value, (Pe) => (D(), $e(H_, {
9034
9034
  key: Pe.id,
9035
9035
  button: Pe,
9036
9036
  onClick: (Re) => T(Pe)
9037
9037
  }, null, 8, ["button", "onClick"]))), 128))
9038
9038
  ], 512)
9039
9039
  ]),
9040
- d.value ? (D(), Ce(Ho, {
9040
+ d.value ? (D(), $e(Ri, {
9041
9041
  key: 2,
9042
9042
  to: "#narrat"
9043
9043
  }, [
@@ -9045,11 +9045,11 @@ const z_ = { id: "game-menu" }, Q_ = {
9045
9045
  onClose: U,
9046
9046
  class: Ge(`start-menu-popup-${d.value.id}`)
9047
9047
  }, {
9048
- header: He(() => [
9048
+ header: Ke(() => [
9049
9049
  M("h3", X_, ye(d.value.text), 1)
9050
9050
  ]),
9051
- body: He(() => [
9052
- d.value.popupComponent ? (D(), Ce(Ko(d.value.popupComponent.component), {
9051
+ body: Ke(() => [
9052
+ d.value.popupComponent ? (D(), $e(Ko(d.value.popupComponent.component), {
9053
9053
  key: 0,
9054
9054
  onClose: U
9055
9055
  }, null, 32)) : Oe("", !0)
@@ -9086,7 +9086,7 @@ function gs(e) {
9086
9086
  var t;
9087
9087
  return e ? ((t = ts(e)) == null ? void 0 : t.style) || {} : {};
9088
9088
  }
9089
- const rb = ["src"], ib = ["autoplay", "loop", "muted"], ob = ["src"], sb = /* @__PURE__ */ $e({
9089
+ const rb = ["src"], ib = ["autoplay", "loop", "muted"], ob = ["src"], sb = /* @__PURE__ */ Ce({
9090
9090
  __name: "dialog-picture",
9091
9091
  props: {
9092
9092
  picture: {},
@@ -9116,7 +9116,7 @@ const rb = ["src"], ib = ["autoplay", "loop", "muted"], ob = ["src"], sb = /* @_
9116
9116
  u = 20 + v.right, c = o.dialogHeight + v.bottom;
9117
9117
  } else {
9118
9118
  const v = ((h = m.offset) == null ? void 0 : h.landscape) ?? { right: 0, bottom: 0 }, T = ue().dialogPanel.rightOffset ?? pa.dialogPanel.rightOffset;
9119
- u = Bo() - 10 + v.right + T, c = 200 + v.bottom;
9119
+ u = qo() - 10 + v.right + T, c = 200 + v.bottom;
9120
9120
  }
9121
9121
  let a = l.portraits.width, d = l.portraits.height;
9122
9122
  return t.video && (a = t.video.width ?? a, d = t.video.height ?? d), t.picture && (a = t.picture.width ?? a, d = t.picture.height ?? d), {
@@ -9208,7 +9208,7 @@ function ub(e) {
9208
9208
  const db = ["innerHTML"], fb = ["innerHTML"], pb = ["innerHTML"], mb = { key: 1 }, hb = ["onClick", "innerHTML"], yb = { key: 1 }, gb = {
9209
9209
  key: 2,
9210
9210
  class: "buttons-container"
9211
- }, vb = /* @__PURE__ */ $e({
9211
+ }, vb = /* @__PURE__ */ Ce({
9212
9212
  __name: "dialog-box",
9213
9213
  props: {
9214
9214
  options: {},
@@ -9364,7 +9364,7 @@ const db = ["innerHTML"], fb = ["innerHTML"], pb = ["innerHTML"], mb = { key: 1
9364
9364
  () => {
9365
9365
  pt();
9366
9366
  },
9367
- (ue().dialogPanel.textSpeed ?? ko) * p.options.text.length
9367
+ (ue().dialogPanel.textSpeed ?? Oo) * p.options.text.length
9368
9368
  ));
9369
9369
  }
9370
9370
  function Re() {
@@ -9381,7 +9381,7 @@ const db = ["innerHTML"], fb = ["innerHTML"], pb = ["innerHTML"], mb = { key: 1
9381
9381
  return;
9382
9382
  const ee = F.index, he = Date.now() - F.startTime;
9383
9383
  let fe = !1, we = Math.round(
9384
- he / (ue().dialogPanel.textSpeed ?? ko)
9384
+ he / (ue().dialogPanel.textSpeed ?? Oo)
9385
9385
  ) + F.skippedChars;
9386
9386
  if (we > p.options.text.length && (fe = !0, F.finished = !0, we = p.options.text.length), we !== F.index) {
9387
9387
  let Ae = ee;
@@ -9502,7 +9502,7 @@ const db = ["innerHTML"], fb = ["innerHTML"], pb = ["innerHTML"], mb = { key: 1
9502
9502
  }), _b = {
9503
9503
  key: 0,
9504
9504
  class: "auto-play-feedback-container"
9505
- }, bb = /* @__PURE__ */ $e({
9505
+ }, bb = /* @__PURE__ */ Ce({
9506
9506
  __name: "AutoPlayFeedback",
9507
9507
  setup(e) {
9508
9508
  const t = Je(), n = q(() => t.playMode === "auto"), r = q(() => t.playMode === "skip"), i = q(() => n.value ? "auto-play-feedback-auto" : r.value ? "auto-play-feedback-skip" : {}), s = q(() => n.value ? "Auto Play" : r.value ? "Skip" : "");
@@ -9512,7 +9512,7 @@ const db = ["innerHTML"], fb = ["innerHTML"], pb = ["innerHTML"], mb = { key: 1
9512
9512
  }, ye(s.value), 3)
9513
9513
  ])) : Oe("", !0);
9514
9514
  }
9515
- }), Tb = /* @__PURE__ */ M("div", { class: "anchor" }, null, -1), Tf = /* @__PURE__ */ $e({
9515
+ }), Tb = /* @__PURE__ */ M("div", { class: "anchor" }, null, -1), Tf = /* @__PURE__ */ Ce({
9516
9516
  __name: "game-dialog",
9517
9517
  setup(e) {
9518
9518
  const t = q(() => gt().layoutMode), n = q(() => et().inGameInputListener), r = le(ke().inScript), i = le(null), s = gt(), o = Ie(), l = q(() => o.stack), u = Je(), c = q(() => u.dialog), m = le(null), a = le(null), d = le(null), p = q(() => {
@@ -9625,8 +9625,8 @@ const db = ["innerHTML"], fb = ["innerHTML"], pb = ["innerHTML"], mb = { key: 1
9625
9625
  }), (Q, X) => (D(), J(We, null, [
9626
9626
  Ze(bb),
9627
9627
  Ze(Li, { name: "fade" }, {
9628
- default: He(() => [
9629
- (j.value || U.value) && ot(s).showDialog ? (D(), Ce(sb, {
9628
+ default: Ke(() => [
9629
+ (j.value || U.value) && ot(s).showDialog ? (D(), $e(sb, {
9630
9630
  key: 0,
9631
9631
  picture: j.value,
9632
9632
  video: U.value,
@@ -9637,7 +9637,7 @@ const db = ["innerHTML"], fb = ["innerHTML"], pb = ["innerHTML"], mb = { key: 1
9637
9637
  _: 1
9638
9638
  }),
9639
9639
  Ze(Li, { name: "dialog-transition" }, {
9640
- default: He(() => [
9640
+ default: Ke(() => [
9641
9641
  ot(s).showDialog ? (D(), J("div", {
9642
9642
  key: 0,
9643
9643
  class: "dialog override",
@@ -9651,8 +9651,8 @@ const db = ["innerHTML"], fb = ["innerHTML"], pb = ["innerHTML"], mb = { key: 1
9651
9651
  class: "dialog-container w-full override",
9652
9652
  style: Ye(p.value)
9653
9653
  }, {
9654
- default: He(() => [
9655
- (D(!0), J(We, null, Xe(c.value, (re, Pe) => (D(), Ce(vb, {
9654
+ default: Ke(() => [
9655
+ (D(!0), J(We, null, Xe(c.value, (re, Pe) => (D(), $e(vb, {
9656
9656
  ref_for: !0,
9657
9657
  ref: (Re) => a.value = Re,
9658
9658
  key: re.id,
@@ -9663,7 +9663,7 @@ const db = ["innerHTML"], fb = ["innerHTML"], pb = ["innerHTML"], mb = { key: 1
9663
9663
  ]),
9664
9664
  _: 1
9665
9665
  }, 8, ["style"]),
9666
- (D(), Ce(Ho, { to: "#narrat-app" }, [
9666
+ (D(), $e(Ri, { to: "#narrat-app" }, [
9667
9667
  M("div", { class: "auto-skip-buttons flex" }, [
9668
9668
  M("div", {
9669
9669
  class: "nrt-button menu-toggle-button auto-button auto",
@@ -9682,7 +9682,7 @@ const db = ["innerHTML"], fb = ["innerHTML"], pb = ["innerHTML"], mb = { key: 1
9682
9682
  })
9683
9683
  ], 64));
9684
9684
  }
9685
- }), Sb = ["id"], wb = ["src"], $b = { class: "tab-title" }, Sf = /* @__PURE__ */ $e({
9685
+ }), Sb = ["id"], wb = ["src"], $b = { class: "tab-title" }, Sf = /* @__PURE__ */ Ce({
9686
9686
  __name: "tab-selector",
9687
9687
  props: {
9688
9688
  tab: {},
@@ -9722,7 +9722,7 @@ const db = ["innerHTML"], fb = ["innerHTML"], pb = ["innerHTML"], mb = { key: 1
9722
9722
  /* @__PURE__ */ M("p", null, "No tab selected")
9723
9723
  ], -1), Ib = [
9724
9724
  Eb
9725
- ], Pb = /* @__PURE__ */ $e({
9725
+ ], Pb = /* @__PURE__ */ Ce({
9726
9726
  __name: "TabsController",
9727
9727
  props: {
9728
9728
  tabs: {},
@@ -9767,7 +9767,7 @@ const db = ["innerHTML"], fb = ["innerHTML"], pb = ["innerHTML"], mb = { key: 1
9767
9767
  n.value && (et().unregisterInputListener(n.value), n.value = null);
9768
9768
  }), (u, c) => (D(), J("div", Cb, [
9769
9769
  u.tabs.length > 1 ? (D(), J("div", kb, [
9770
- (D(!0), J(We, null, Xe(u.tabs, (m, a) => (D(), Ce(Sf, {
9770
+ (D(!0), J(We, null, Xe(u.tabs, (m, a) => (D(), $e(Sf, {
9771
9771
  key: m.id,
9772
9772
  tab: m,
9773
9773
  active: a === s.value,
@@ -9776,7 +9776,7 @@ const db = ["innerHTML"], fb = ["innerHTML"], pb = ["innerHTML"], mb = { key: 1
9776
9776
  }, null, 8, ["tab", "active", "onClick", "inputListener"]))), 128))
9777
9777
  ])) : Oe("", !0),
9778
9778
  l.value ? (D(), J("div", Ob, [
9779
- l.value ? (D(), Ce(Ko(l.value.component), {
9779
+ l.value ? (D(), $e(Ko(l.value.component), {
9780
9780
  key: 0,
9781
9781
  inputListener: n.value,
9782
9782
  onClose: c[0] || (c[0] = (m) => u.$emit("close"))
@@ -9784,7 +9784,7 @@ const db = ["innerHTML"], fb = ["innerHTML"], pb = ["innerHTML"], mb = { key: 1
9784
9784
  ])) : (D(), J("div", Ab, Ib))
9785
9785
  ]));
9786
9786
  }
9787
- }), Nb = { class: "menu-container menu-toggle" }, xb = ["onClick", "id"], jb = { class: "nrt-title" }, wf = /* @__PURE__ */ $e({
9787
+ }), Nb = { class: "menu-container menu-toggle" }, xb = ["onClick", "id"], jb = { class: "nrt-title" }, wf = /* @__PURE__ */ Ce({
9788
9788
  __name: "menu-buttons",
9789
9789
  setup(e) {
9790
9790
  const t = jt(), n = le(null);
@@ -9820,7 +9820,7 @@ const db = ["innerHTML"], fb = ["innerHTML"], pb = ["innerHTML"], mb = { key: 1
9820
9820
  id: d.cssId ?? `${p}-menu-button`,
9821
9821
  class: "nrt-button menu-toggle-button"
9822
9822
  }, ye(d.label), 9, xb))), 128)),
9823
- s.value ? (D(), Ce(Ho, {
9823
+ s.value ? (D(), $e(Ri, {
9824
9824
  key: 0,
9825
9825
  to: "#narrat"
9826
9826
  }, [
@@ -9828,13 +9828,13 @@ const db = ["innerHTML"], fb = ["innerHTML"], pb = ["innerHTML"], mb = { key: 1
9828
9828
  containerCssClass: { [s.value.cssClass]: !0, "menu-modal": !0 },
9829
9829
  onClose: l
9830
9830
  }, {
9831
- header: He(() => {
9831
+ header: Ke(() => {
9832
9832
  var d;
9833
9833
  return [
9834
9834
  M("h3", jb, ye(((d = ot(t).tab) == null ? void 0 : d.text) ?? s.value.label), 1)
9835
9835
  ];
9836
9836
  }),
9837
- body: He(() => [
9837
+ body: Ke(() => [
9838
9838
  Ze(Pb, {
9839
9839
  onTabChange: u,
9840
9840
  onClose: c,
@@ -9885,7 +9885,7 @@ function Rb(e, t, n) {
9885
9885
  Lb(e, t, n)
9886
9886
  );
9887
9887
  }
9888
- const Fb = ["id"], Ub = ["innerHTML"], Bb = /* @__PURE__ */ $e({
9888
+ const Fb = ["id"], Ub = ["innerHTML"], Bb = /* @__PURE__ */ Ce({
9889
9889
  __name: "screen-object",
9890
9890
  props: {
9891
9891
  screenObject: {},
@@ -9923,7 +9923,7 @@ const Fb = ["id"], Ub = ["innerHTML"], Bb = /* @__PURE__ */ $e({
9923
9923
  width: `${m}px`,
9924
9924
  height: `${a}px`
9925
9925
  };
9926
- return s_(t.screenObject) && (d.backgroundImage = `url(${no(t.screenObject.image)})`), d;
9926
+ return s_(t.screenObject) && (d.backgroundImage = `url(${ro(t.screenObject.image)})`), d;
9927
9927
  });
9928
9928
  return (l, u) => {
9929
9929
  const c = Cr("ScreenObject", !0);
@@ -9937,7 +9937,7 @@ const Fb = ["id"], Ub = ["innerHTML"], Bb = /* @__PURE__ */ $e({
9937
9937
  M("span", {
9938
9938
  innerHTML: t.screenObject.text ? ot(Kn)(t.screenObject.text) : void 0
9939
9939
  }, null, 8, Ub),
9940
- (D(!0), J(We, null, Xe(t.screenObject.children, (m) => (D(), Ce(c, {
9940
+ (D(!0), J(We, null, Xe(t.screenObject.children, (m) => (D(), $e(c, {
9941
9941
  transitioning: l.transitioning,
9942
9942
  key: m.id,
9943
9943
  screenObject: m
@@ -9945,7 +9945,7 @@ const Fb = ["id"], Ub = ["innerHTML"], Bb = /* @__PURE__ */ $e({
9945
9945
  ], 14, Fb);
9946
9946
  };
9947
9947
  }
9948
- }), qb = ["id", "innerHTML"], Vb = /* @__PURE__ */ $e({
9948
+ }), qb = ["id", "innerHTML"], Vb = /* @__PURE__ */ Ce({
9949
9949
  __name: "viewport-button",
9950
9950
  props: {
9951
9951
  id: {},
@@ -9956,7 +9956,7 @@ const Fb = ["id"], Ub = ["innerHTML"], Bb = /* @__PURE__ */ $e({
9956
9956
  setup(e) {
9957
9957
  const t = e, n = mn();
9958
9958
  q(() => n.getButtonState(t.id));
9959
- const r = q(() => Ar(t.id)), i = r.value.background ? no(r.value.background) : null, s = q(() => {
9959
+ const r = q(() => Ar(t.id)), i = r.value.background ? ro(r.value.background) : null, s = q(() => {
9960
9960
  if (!t.layerSelected)
9961
9961
  return !1;
9962
9962
  const m = t.activeInteractive;
@@ -9988,7 +9988,7 @@ const Fb = ["id"], Ub = ["innerHTML"], Bb = /* @__PURE__ */ $e({
9988
9988
  innerHTML: o.value
9989
9989
  }, null, 14, qb));
9990
9990
  }
9991
- }), Hb = ["id"], Kb = ["id", "loop", "muted"], Gb = ["src"], Wb = ["id"], vs = /* @__PURE__ */ $e({
9991
+ }), Hb = ["id"], Kb = ["id", "loop", "muted"], Gb = ["src"], Wb = ["id"], vs = /* @__PURE__ */ Ce({
9992
9992
  __name: "screen-layer",
9993
9993
  props: {
9994
9994
  layer: {},
@@ -9998,14 +9998,14 @@ const Fb = ["id"], Ub = ["innerHTML"], Bb = /* @__PURE__ */ $e({
9998
9998
  },
9999
9999
  setup(e) {
10000
10000
  const t = e, n = ke(), r = on(), i = q(() => !!(t.activeInteractive && t.activeInteractive.layer === t.layerIndex)), s = q(() => r.tree.filter((T) => T.layer === t.layerIndex)), o = q(() => ue().layout.backgrounds.width), l = q(() => ue().layout.backgrounds.height), u = q(() => t.layer), c = q(() => {
10001
- const T = to(u.value);
10001
+ const T = no(u.value);
10002
10002
  return T || de(`Screen ${u.value} doesn't have a config`), T;
10003
10003
  }), m = q(() => n.isInGame), a = q(() => c.value.buttons || []), d = q(() => c.value.video), p = q(() => ({
10004
10004
  width: `${o.value}px`,
10005
10005
  height: `${l.value}px`
10006
10006
  })), h = q(() => {
10007
10007
  let T;
10008
- return c.value.background !== zo && (T = `url(${no(c.value.background)})`), {
10008
+ return c.value.background !== zo && (T = `url(${ro(c.value.background)})`), {
10009
10009
  backgroundImage: T,
10010
10010
  position: "absolute",
10011
10011
  left: 0,
@@ -10044,14 +10044,14 @@ const Fb = ["id"], Ub = ["innerHTML"], Bb = /* @__PURE__ */ $e({
10044
10044
  id: `viewport-layer-background-${u.value}`,
10045
10045
  style: Ye(h.value)
10046
10046
  }, null, 12, Wb)),
10047
- (D(!0), J(We, null, Xe(a.value, (E) => (D(), Ce(Vb, {
10047
+ (D(!0), J(We, null, Xe(a.value, (E) => (D(), $e(Vb, {
10048
10048
  key: E,
10049
10049
  id: E,
10050
10050
  layerSelected: i.value,
10051
10051
  transitioning: T.transitioning,
10052
10052
  activeInteractive: T.activeInteractive
10053
10053
  }, null, 8, ["id", "layerSelected", "transitioning", "activeInteractive"]))), 128)),
10054
- (D(!0), J(We, null, Xe(s.value, (E) => (D(), Ce(Bb, {
10054
+ (D(!0), J(We, null, Xe(s.value, (E) => (D(), $e(Bb, {
10055
10055
  key: E.id,
10056
10056
  screenObject: E,
10057
10057
  transitioning: T.transitioning,
@@ -10060,7 +10060,7 @@ const Fb = ["id"], Ub = ["innerHTML"], Bb = /* @__PURE__ */ $e({
10060
10060
  }, null, 8, ["screenObject", "transitioning", "layerSelected", "activeInteractive"]))), 128))
10061
10061
  ], 12, Hb)) : Oe("", !0);
10062
10062
  }
10063
- }), zb = /* @__PURE__ */ $e({
10063
+ }), zb = /* @__PURE__ */ Ce({
10064
10064
  __name: "NarratTransition",
10065
10065
  props: {
10066
10066
  name: {
@@ -10113,13 +10113,13 @@ const Fb = ["id"], Ub = ["innerHTML"], Bb = /* @__PURE__ */ $e({
10113
10113
  function lc(e, t, n) {
10114
10114
  return e < t ? t : e > n ? n : e;
10115
10115
  }
10116
- const Cf = /* @__PURE__ */ $e({
10116
+ const Cf = /* @__PURE__ */ Ce({
10117
10117
  __name: "screens",
10118
10118
  setup(e) {
10119
10119
  const t = q(() => et().inGameInputListener), n = ke(), r = mn(), i = on(), s = le(0), o = q(() => r.nonEmptyLayers), l = q(() => {
10120
10120
  const h = [];
10121
10121
  return o.value.reduce((v, T, _) => {
10122
- const j = to(T.screen).buttons;
10122
+ const j = no(T.screen).buttons;
10123
10123
  if (j)
10124
10124
  for (const B of j)
10125
10125
  r.isButtonClickable(B) && v.push({
@@ -10199,23 +10199,23 @@ const Cf = /* @__PURE__ */ $e({
10199
10199
  key: T.screen ?? "",
10200
10200
  class: "layer-container"
10201
10201
  }, [
10202
- T.transition ? (D(), Ce(zb, {
10202
+ T.transition ? (D(), $e(zb, {
10203
10203
  key: 0,
10204
10204
  name: T.transition.transition,
10205
10205
  duration: T.transition.duration,
10206
10206
  delay: T.transition.delay,
10207
10207
  onComplete: () => d(_)
10208
10208
  }, {
10209
- oldElement: He(() => [
10210
- T.transition.oldScreen ? (D(), Ce(vs, {
10209
+ oldElement: Ke(() => [
10210
+ T.transition.oldScreen ? (D(), $e(vs, {
10211
10211
  key: 0,
10212
10212
  layer: T.transition.oldScreen,
10213
10213
  layerIndex: _,
10214
10214
  transitioning: !0
10215
10215
  }, null, 8, ["layer", "layerIndex"])) : Oe("", !0)
10216
10216
  ]),
10217
- newElement: He(() => [
10218
- T.screen ? (D(), Ce(vs, {
10217
+ newElement: Ke(() => [
10218
+ T.screen ? (D(), $e(vs, {
10219
10219
  key: 0,
10220
10220
  layer: T.screen,
10221
10221
  layerIndex: _,
@@ -10223,7 +10223,7 @@ const Cf = /* @__PURE__ */ $e({
10223
10223
  }, null, 8, ["layer", "layerIndex"])) : Oe("", !0)
10224
10224
  ]),
10225
10225
  _: 2
10226
- }, 1032, ["name", "duration", "delay", "onComplete"])) : T.screen ? (D(), Ce(vs, {
10226
+ }, 1032, ["name", "duration", "delay", "onComplete"])) : T.screen ? (D(), $e(vs, {
10227
10227
  key: 1,
10228
10228
  layer: T.screen,
10229
10229
  layerIndex: _,
@@ -10262,7 +10262,7 @@ const Cf = /* @__PURE__ */ $e({
10262
10262
  },
10263
10263
  generateSaveData() {
10264
10264
  return {
10265
- hudStats: Ke(this.hudStats),
10265
+ hudStats: He(this.hudStats),
10266
10266
  visible: this.visible
10267
10267
  };
10268
10268
  },
@@ -10273,7 +10273,7 @@ const Cf = /* @__PURE__ */ $e({
10273
10273
  this.visible = e;
10274
10274
  }
10275
10275
  }
10276
- }), Qb = $e({
10276
+ }), Qb = Ce({
10277
10277
  data() {
10278
10278
  return {};
10279
10279
  },
@@ -10314,7 +10314,7 @@ const Cf = /* @__PURE__ */ $e({
10314
10314
  },
10315
10315
  hudStyle() {
10316
10316
  let e = "0";
10317
- return this.layoutMode === "horizontal" && (e = `${Bo() + (ue().dialogPanel.rightOffset ?? oi.common.dialogPanel.rightOffset)}px`), {
10317
+ return this.layoutMode === "horizontal" && (e = `${qo() + (ue().dialogPanel.rightOffset ?? oi.common.dialogPanel.rightOffset)}px`), {
10318
10318
  right: e
10319
10319
  };
10320
10320
  },
@@ -10349,7 +10349,7 @@ function Zb(e, t, n, r, i, s) {
10349
10349
  ]))), 128))
10350
10350
  ], 4)) : Oe("", !0);
10351
10351
  }
10352
- const kf = /* @__PURE__ */ sn(Qb, [["render", Zb]]), Of = /* @__PURE__ */ $e({
10352
+ const kf = /* @__PURE__ */ sn(Qb, [["render", Zb]]), Of = /* @__PURE__ */ Ce({
10353
10353
  __name: "in-game",
10354
10354
  setup(e) {
10355
10355
  const t = et(), n = q(() => t.inGameInputListener), r = ke(), i = gt(), s = q(() => i.layoutMode), o = q(() => r.saving), l = le(null), u = Je(), c = le(null), m = q(
@@ -10389,13 +10389,13 @@ const kf = /* @__PURE__ */ sn(Qb, [["render", Zb]]), Of = /* @__PURE__ */ $e({
10389
10389
  Ze(wf),
10390
10390
  Ze(Cf),
10391
10391
  Ze(Tf),
10392
- m.value ? (D(), Ce(mf, {
10392
+ m.value ? (D(), $e(mf, {
10393
10393
  key: 0,
10394
10394
  mode: "pick",
10395
10395
  onChosen: d,
10396
10396
  onClose: T[0] || (T[0] = () => d(null))
10397
10397
  })) : Oe("", !0),
10398
- o.value && o.value.withPrompt && l.value === null ? (D(), Ce(No, {
10398
+ o.value && o.value.withPrompt && l.value === null ? (D(), $e(xo, {
10399
10399
  key: 1,
10400
10400
  prompt: "Would you like to save the game?",
10401
10401
  onConfirm: p,
@@ -10403,7 +10403,7 @@ const kf = /* @__PURE__ */ sn(Qb, [["render", Zb]]), Of = /* @__PURE__ */ $e({
10403
10403
  })) : Oe("", !0)
10404
10404
  ], 4));
10405
10405
  }
10406
- }), eT = { class: "chapter-title-scene" }, tT = ["innerHTML"], nT = ["innerHTML"], rT = /* @__PURE__ */ $e({
10406
+ }), eT = { class: "chapter-title-scene" }, tT = ["innerHTML"], nT = ["innerHTML"], rT = /* @__PURE__ */ Ce({
10407
10407
  __name: "chapter-title",
10408
10408
  props: {
10409
10409
  options: {}
@@ -10606,11 +10606,11 @@ const Ie = bt("vm", {
10606
10606
  },
10607
10607
  generateGlobalSaveData() {
10608
10608
  return {
10609
- data: Ke(this.globalData)
10609
+ data: He(this.globalData)
10610
10610
  };
10611
10611
  },
10612
10612
  loadSaveData(e) {
10613
- this.lastLabel = e.lastLabel, this.data = Ke(e.data), this.findEntitiesInData(this.data);
10613
+ this.lastLabel = e.lastLabel, this.data = He(e.data), this.findEntitiesInData(this.data);
10614
10614
  },
10615
10615
  loadGlobalSaveData(e) {
10616
10616
  this.globalData = e.data;
@@ -10765,7 +10765,7 @@ const Ie = bt("vm", {
10765
10765
  let t;
10766
10766
  for (; this.currentBlock; ) {
10767
10767
  const n = await this.runBlock();
10768
- if (n === $o || n === Co)
10768
+ if (n === Co || n === ko)
10769
10769
  return this.cleanFrame(), n;
10770
10770
  if (n === fa)
10771
10771
  return this.cleanFrame();
@@ -10801,7 +10801,7 @@ const Ie = bt("vm", {
10801
10801
  },
10802
10802
  async runGame() {
10803
10803
  let e = await this.runFrame();
10804
- for (; e === $o; ) {
10804
+ for (; e === Co; ) {
10805
10805
  const t = this.jumpTarget;
10806
10806
  if (!t) {
10807
10807
  de("Tried to jump but no target was set");
@@ -10809,7 +10809,7 @@ const Ie = bt("vm", {
10809
10809
  }
10810
10810
  this.hasJumped = !0, this.setStack(t), await ka({}), e = await this.runFrame();
10811
10811
  }
10812
- e !== Co && this.stack.length === 0 && this.reachedEndOfScript();
10812
+ e !== ko && this.stack.length === 0 && this.reachedEndOfScript();
10813
10813
  },
10814
10814
  async nextLineOnly() {
10815
10815
  return this.stack.length === 0 || this.isBlockFinished() ? !1 : (this.currentBlock.currentIndex++, !0);
@@ -11452,7 +11452,7 @@ const Oa = f.Type.Object({
11452
11452
  function Aa(e) {
11453
11453
  return "common" in e;
11454
11454
  }
11455
- var Us = { exports: {} }, Vf = {}, fn = {}, li = {}, Qi = {}, Ue = {}, Hi = {};
11455
+ var Us = { exports: {} }, Vf = {}, fn = {}, li = {}, Yi = {}, Ue = {}, Ki = {};
11456
11456
  (function(e) {
11457
11457
  Object.defineProperty(e, "__esModule", { value: !0 }), e.regexpCode = e.getEsmExportName = e.getProperty = e.safeStringify = e.stringify = e.strConcat = e.addCodeArg = e.str = e._ = e.nil = e._Code = e.Name = e.IDENTIFIER = e._CodeOrName = void 0;
11458
11458
  class t {
@@ -11572,11 +11572,11 @@ var Us = { exports: {} }, Vf = {}, fn = {}, li = {}, Qi = {}, Ue = {}, Hi = {};
11572
11572
  return new r(_.toString());
11573
11573
  }
11574
11574
  e.regexpCode = T;
11575
- })(Hi);
11575
+ })(Ki);
11576
11576
  var Bs = {};
11577
11577
  (function(e) {
11578
11578
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ValueScope = e.ValueScopeName = e.Scope = e.varKinds = e.UsedValueState = void 0;
11579
- const t = Hi;
11579
+ const t = Ki;
11580
11580
  class n extends Error {
11581
11581
  constructor(c) {
11582
11582
  super(`CodeGen: "code" for ${c} not defined`), this.value = c.value;
@@ -11696,8 +11696,8 @@ var Bs = {};
11696
11696
  })(Bs);
11697
11697
  (function(e) {
11698
11698
  Object.defineProperty(e, "__esModule", { value: !0 }), e.or = e.and = e.not = e.CodeGen = e.operators = e.varKinds = e.ValueScopeName = e.ValueScope = e.Scope = e.Name = e.regexpCode = e.stringify = e.getProperty = e.nil = e.strConcat = e.str = e._ = void 0;
11699
- const t = Hi, n = Bs;
11700
- var r = Hi;
11699
+ const t = Ki, n = Bs;
11700
+ var r = Ki;
11701
11701
  Object.defineProperty(e, "_", { enumerable: !0, get: function() {
11702
11702
  return r._;
11703
11703
  } }), Object.defineProperty(e, "str", { enumerable: !0, get: function() {
@@ -12256,7 +12256,7 @@ var Bs = {};
12256
12256
  var ze = {};
12257
12257
  (function(e) {
12258
12258
  Object.defineProperty(e, "__esModule", { value: !0 }), e.checkStrictMode = e.getErrorPath = e.Type = e.useFunc = e.setEvaluated = e.evaluatedPropsToName = e.mergeEvaluated = e.eachItem = e.unescapeJsonPointer = e.escapeJsonPointer = e.escapeFragment = e.unescapeFragment = e.schemaRefOrVal = e.schemaHasRulesButRef = e.schemaHasRules = e.checkUnknownRules = e.alwaysValidSchema = e.toHash = void 0;
12259
- const t = Ue, n = Hi;
12259
+ const t = Ue, n = Ki;
12260
12260
  function r(L) {
12261
12261
  const P = {};
12262
12262
  for (const Z of L)
@@ -12490,10 +12490,10 @@ xn.default = OT;
12490
12490
  const { keyword: U, data: B, schemaValue: L, it: P } = T, { opts: Z, propertyName: Y, topSchemaRef: te, schemaPath: z } = P;
12491
12491
  j.push([m.keyword, U], [m.params, typeof _ == "function" ? _(T) : _ || (0, t._)`{}`]), Z.messages && j.push([m.message, typeof E == "function" ? E(T) : E]), Z.verbose && j.push([m.schema, L], [m.parentSchema, (0, t._)`${te}${z}`], [r.default.data, B]), Y && j.push([m.propertyName, Y]);
12492
12492
  }
12493
- })(Qi);
12493
+ })(Yi);
12494
12494
  Object.defineProperty(li, "__esModule", { value: !0 });
12495
12495
  li.boolOrEmptySchema = li.topBoolOrEmptySchema = void 0;
12496
- const AT = Qi, ET = Ue, IT = xn, PT = {
12496
+ const AT = Yi, ET = Ue, IT = xn, PT = {
12497
12497
  message: "boolean schema is false"
12498
12498
  };
12499
12499
  function NT(e) {
@@ -12519,7 +12519,7 @@ function Hf(e, t) {
12519
12519
  };
12520
12520
  (0, AT.reportError)(i, PT, void 0, t);
12521
12521
  }
12522
- var Yi = {}, xr = {};
12522
+ var Ji = {}, xr = {};
12523
12523
  Object.defineProperty(xr, "__esModule", { value: !0 });
12524
12524
  xr.getRules = xr.isJSONType = void 0;
12525
12525
  const jT = ["string", "number", "integer", "boolean", "null", "object", "array"], LT = new Set(jT);
@@ -12562,7 +12562,7 @@ function Gf(e, t) {
12562
12562
  Un.shouldUseRule = Gf;
12563
12563
  (function(e) {
12564
12564
  Object.defineProperty(e, "__esModule", { value: !0 }), e.reportTypeError = e.checkDataTypes = e.checkDataType = e.coerceAndCheckDataType = e.getJSONTypes = e.getSchemaTypes = e.DataType = void 0;
12565
- const t = xr, n = Un, r = Qi, i = Ue, s = ze;
12565
+ const t = xr, n = Un, r = Yi, i = Ue, s = ze;
12566
12566
  var o;
12567
12567
  (function(j) {
12568
12568
  j[j.Correct = 0] = "Correct", j[j.Wrong = 1] = "Wrong";
@@ -12704,7 +12704,7 @@ Un.shouldUseRule = Gf;
12704
12704
  it: j
12705
12705
  };
12706
12706
  }
12707
- })(Yi);
12707
+ })(Ji);
12708
12708
  var rs = {};
12709
12709
  Object.defineProperty(rs, "__esModule", { value: !0 });
12710
12710
  rs.assignDefaults = void 0;
@@ -12839,7 +12839,7 @@ function JT(e) {
12839
12839
  Fe.validateUnion = JT;
12840
12840
  Object.defineProperty(wn, "__esModule", { value: !0 });
12841
12841
  wn.validateKeywordUsage = wn.validSchemaType = wn.funcKeywordCode = wn.macroKeywordCode = void 0;
12842
- const Ut = Ue, _r = xn, XT = Fe, ZT = Qi;
12842
+ const Ut = Ue, _r = xn, XT = Fe, ZT = Yi;
12843
12843
  function e0(e, t) {
12844
12844
  const { gen: n, keyword: r, schema: i, parentSchema: s, it: o } = e, l = t.macro.call(o.self, i, s, o), u = Qf(n, r, l);
12845
12845
  o.opts.validateSchema !== !1 && o.self.validateSchema(l, !0);
@@ -13016,7 +13016,7 @@ var Et = {}, Jf = function e(t, n) {
13016
13016
  var r = typeof n == "function" ? n : n.pre || function() {
13017
13017
  }, i = n.post || function() {
13018
13018
  };
13019
- _o(t, r, i, e, "", e);
13019
+ bo(t, r, i, e, "", e);
13020
13020
  };
13021
13021
  rr.keywords = {
13022
13022
  additionalItems: !0,
@@ -13062,7 +13062,7 @@ rr.skipKeywords = {
13062
13062
  maxProperties: !0,
13063
13063
  minProperties: !0
13064
13064
  };
13065
- function _o(e, t, n, r, i, s, o, l, u, c) {
13065
+ function bo(e, t, n, r, i, s, o, l, u, c) {
13066
13066
  if (r && typeof r == "object" && !Array.isArray(r)) {
13067
13067
  t(r, i, s, o, l, u, c);
13068
13068
  for (var m in r) {
@@ -13070,13 +13070,13 @@ function _o(e, t, n, r, i, s, o, l, u, c) {
13070
13070
  if (Array.isArray(a)) {
13071
13071
  if (m in rr.arrayKeywords)
13072
13072
  for (var d = 0; d < a.length; d++)
13073
- _o(e, t, n, a[d], i + "/" + m + "/" + d, s, i, m, r, d);
13073
+ bo(e, t, n, a[d], i + "/" + m + "/" + d, s, i, m, r, d);
13074
13074
  } else if (m in rr.propsKeywords) {
13075
13075
  if (a && typeof a == "object")
13076
13076
  for (var p in a)
13077
- _o(e, t, n, a[p], i + "/" + m + "/" + c0(p), s, i, m, r, p);
13077
+ bo(e, t, n, a[p], i + "/" + m + "/" + c0(p), s, i, m, r, p);
13078
13078
  } else
13079
- (m in rr.keywords || e.allKeys && !(m in rr.skipKeywords)) && _o(e, t, n, a, i + "/" + m, s, i, m, r);
13079
+ (m in rr.keywords || e.allKeys && !(m in rr.skipKeywords)) && bo(e, t, n, a, i + "/" + m, s, i, m, r);
13080
13080
  }
13081
13081
  n(r, i, s, o, l, u, c);
13082
13082
  }
@@ -13193,7 +13193,7 @@ function b0(e, t) {
13193
13193
  Et.getSchemaRefs = b0;
13194
13194
  Object.defineProperty(fn, "__esModule", { value: !0 });
13195
13195
  fn.getData = fn.KeywordCxt = fn.validateFunctionCode = void 0;
13196
- const np = li, mc = Yi, Na = Un, xo = Yi, T0 = rs, Ii = wn, Ts = sr, ve = Ue, Le = xn, S0 = Et, Bn = ze, Ti = Qi;
13196
+ const np = li, mc = Ji, Na = Un, jo = Ji, T0 = rs, Ii = wn, Ts = sr, ve = Ue, Le = xn, S0 = Et, Bn = ze, Ti = Yi;
13197
13197
  function w0(e) {
13198
13198
  if (op(e) && (sp(e), ip(e))) {
13199
13199
  k0(e);
@@ -13308,7 +13308,7 @@ function yc(e, t, n, r) {
13308
13308
  a(m.post);
13309
13309
  });
13310
13310
  function a(d) {
13311
- (0, Na.shouldUseGroup)(s, d) && (d.type ? (i.if((0, xo.checkDataType)(d.type, o, u.strictNumbers)), gc(e, d), t.length === 1 && t[0] === d.type && n && (i.else(), (0, xo.reportTypeError)(e)), i.endIf()) : gc(e, d), l || i.if((0, ve._)`${Le.default.errors} === ${r || 0}`));
13311
+ (0, Na.shouldUseGroup)(s, d) && (d.type ? (i.if((0, jo.checkDataType)(d.type, o, u.strictNumbers)), gc(e, d), t.length === 1 && t[0] === d.type && n && (i.else(), (0, jo.reportTypeError)(e)), i.endIf()) : gc(e, d), l || i.if((0, ve._)`${Le.default.errors} === ${r || 0}`));
13312
13312
  }
13313
13313
  }
13314
13314
  function gc(e, t) {
@@ -13434,7 +13434,7 @@ class up {
13434
13434
  if (!(n instanceof ve.Name))
13435
13435
  throw new Error("ajv implementation error");
13436
13436
  const u = Array.isArray(r) ? r : [r];
13437
- return (0, ve._)`${(0, xo.checkDataTypes)(u, n, s.opts.strictNumbers, xo.DataType.Wrong)}`;
13437
+ return (0, ve._)`${(0, jo.checkDataTypes)(u, n, s.opts.strictNumbers, jo.DataType.Wrong)}`;
13438
13438
  }
13439
13439
  return ve.nil;
13440
13440
  }
@@ -13501,27 +13501,27 @@ function fp(e, { dataLevel: t, dataNames: n, dataPathArr: r }) {
13501
13501
  }
13502
13502
  }
13503
13503
  fn.getData = fp;
13504
- var Ji = {};
13505
- Object.defineProperty(Ji, "__esModule", { value: !0 });
13504
+ var Xi = {};
13505
+ Object.defineProperty(Xi, "__esModule", { value: !0 });
13506
13506
  class H0 extends Error {
13507
13507
  constructor(t) {
13508
13508
  super("validation failed"), this.errors = t, this.ajv = this.validation = !0;
13509
13509
  }
13510
13510
  }
13511
- Ji.default = H0;
13512
- var Xi = {};
13513
- Object.defineProperty(Xi, "__esModule", { value: !0 });
13511
+ Xi.default = H0;
13512
+ var Zi = {};
13513
+ Object.defineProperty(Zi, "__esModule", { value: !0 });
13514
13514
  const Ss = Et;
13515
13515
  class K0 extends Error {
13516
13516
  constructor(t, n, r, i) {
13517
13517
  super(i || `can't resolve reference ${r} from id ${n}`), this.missingRef = (0, Ss.resolveUrl)(t, n, r), this.missingSchema = (0, Ss.normalizeId)((0, Ss.getFullPath)(t, this.missingRef));
13518
13518
  }
13519
13519
  }
13520
- Xi.default = K0;
13520
+ Zi.default = K0;
13521
13521
  var Ht = {};
13522
13522
  Object.defineProperty(Ht, "__esModule", { value: !0 });
13523
13523
  Ht.resolveSchema = Ht.getCompilingSchema = Ht.resolveRef = Ht.compileSchema = Ht.SchemaEnv = void 0;
13524
- const an = Ue, G0 = Ji, yr = xn, dn = Et, vc = ze, W0 = fn;
13524
+ const an = Ue, G0 = Xi, yr = xn, dn = Et, vc = ze, W0 = fn;
13525
13525
  class is {
13526
13526
  constructor(t) {
13527
13527
  var n;
@@ -13901,18 +13901,18 @@ var La = {}, Vs = { exports: {} };
13901
13901
  var Ol = kl.value;
13902
13902
  if (Ol < K && ++ge > h && re("overflow"), Ol == K) {
13903
13903
  for (
13904
- var ro = ge, io = v;
13904
+ var io = ge, oo = v;
13905
13905
  ;
13906
13906
  /* no condition */
13907
- io += v
13907
+ oo += v
13908
13908
  ) {
13909
- var oo = io <= _e ? T : io >= _e + _ ? _ : io - _e;
13910
- if (ro < oo)
13909
+ var so = oo <= _e ? T : oo >= _e + _ ? _ : oo - _e;
13910
+ if (io < so)
13911
13911
  break;
13912
- var Al = ro - oo, El = v - oo;
13913
- x.push(X(N(oo + Al % El, 0))), ro = Q(Al / El);
13912
+ var Al = io - so, El = v - so;
13913
+ x.push(X(N(so + Al % El, 0))), io = Q(Al / El);
13914
13914
  }
13915
- x.push(X(N(ro, 0))), _e = y(ge, Zt, be == S), ge = 0, ++be;
13915
+ x.push(X(N(io, 0))), _e = y(ge, Zt, be == S), ge = 0, ++be;
13916
13916
  }
13917
13917
  }
13918
13918
  } catch (_i) {
@@ -14273,7 +14273,7 @@ La.default = mp;
14273
14273
  } }), Object.defineProperty(e, "CodeGen", { enumerable: !0, get: function() {
14274
14274
  return n.CodeGen;
14275
14275
  } });
14276
- const r = Ji, i = Xi, s = xr, o = Ht, l = Ue, u = Et, c = Yi, m = ze, a = oS, d = La, p = (N, y) => new RegExp(N, y);
14276
+ const r = Xi, i = Zi, s = xr, o = Ht, l = Ue, u = Et, c = Ji, m = ze, a = oS, d = La, p = (N, y) => new RegExp(N, y);
14277
14277
  p.code = "new RegExp";
14278
14278
  const h = ["removeAdditional", "useDefaults", "coerceTypes"], v = /* @__PURE__ */ new Set([
14279
14279
  "validate",
@@ -14705,7 +14705,7 @@ Ra.default = aS;
14705
14705
  var jr = {};
14706
14706
  Object.defineProperty(jr, "__esModule", { value: !0 });
14707
14707
  jr.callRef = jr.getValidate = void 0;
14708
- const lS = Xi, _c = Fe, Vt = Ue, Hr = xn, bc = Ht, ao = ze, cS = {
14708
+ const lS = Zi, _c = Fe, Vt = Ue, Hr = xn, bc = Ht, lo = ze, cS = {
14709
14709
  keyword: "$ref",
14710
14710
  schemaType: "string",
14711
14711
  code(e) {
@@ -14720,13 +14720,13 @@ const lS = Xi, _c = Fe, Vt = Ue, Hr = xn, bc = Ht, ao = ze, cS = {
14720
14720
  return p(m);
14721
14721
  function a() {
14722
14722
  if (s === c)
14723
- return bo(e, o, s, s.$async);
14723
+ return To(e, o, s, s.$async);
14724
14724
  const h = t.scopeValue("root", { ref: c });
14725
- return bo(e, (0, Vt._)`${h}.validate`, c, c.$async);
14725
+ return To(e, (0, Vt._)`${h}.validate`, c, c.$async);
14726
14726
  }
14727
14727
  function d(h) {
14728
14728
  const v = hp(e, h);
14729
- bo(e, v, h, h.$async);
14729
+ To(e, v, h, h.$async);
14730
14730
  }
14731
14731
  function p(h) {
14732
14732
  const v = t.scopeValue("schema", l.code.source === !0 ? { ref: h, code: (0, Vt.stringify)(h) } : { ref: h }), T = t.name("valid"), _ = e.subschema({
@@ -14745,7 +14745,7 @@ function hp(e, t) {
14745
14745
  return t.validate ? n.scopeValue("validate", { ref: t.validate }) : (0, Vt._)`${n.scopeValue("wrapper", { ref: t })}.validate`;
14746
14746
  }
14747
14747
  jr.getValidate = hp;
14748
- function bo(e, t, n, r) {
14748
+ function To(e, t, n, r) {
14749
14749
  const { gen: i, it: s } = e, { allErrors: o, schemaEnv: l, opts: u } = s, c = u.passContext ? Hr.default.this : Vt.nil;
14750
14750
  r ? m() : a();
14751
14751
  function m() {
@@ -14772,21 +14772,21 @@ function bo(e, t, n, r) {
14772
14772
  const T = (v = n == null ? void 0 : n.validate) === null || v === void 0 ? void 0 : v.evaluated;
14773
14773
  if (s.props !== !0)
14774
14774
  if (T && !T.dynamicProps)
14775
- T.props !== void 0 && (s.props = ao.mergeEvaluated.props(i, T.props, s.props));
14775
+ T.props !== void 0 && (s.props = lo.mergeEvaluated.props(i, T.props, s.props));
14776
14776
  else {
14777
14777
  const _ = i.var("props", (0, Vt._)`${h}.evaluated.props`);
14778
- s.props = ao.mergeEvaluated.props(i, _, s.props, Vt.Name);
14778
+ s.props = lo.mergeEvaluated.props(i, _, s.props, Vt.Name);
14779
14779
  }
14780
14780
  if (s.items !== !0)
14781
14781
  if (T && !T.dynamicItems)
14782
- T.items !== void 0 && (s.items = ao.mergeEvaluated.items(i, T.items, s.items));
14782
+ T.items !== void 0 && (s.items = lo.mergeEvaluated.items(i, T.items, s.items));
14783
14783
  else {
14784
14784
  const _ = i.var("items", (0, Vt._)`${h}.evaluated.items`);
14785
- s.items = ao.mergeEvaluated.items(i, _, s.items, Vt.Name);
14785
+ s.items = lo.mergeEvaluated.items(i, _, s.items, Vt.Name);
14786
14786
  }
14787
14787
  }
14788
14788
  }
14789
- jr.callRef = bo;
14789
+ jr.callRef = To;
14790
14790
  jr.default = cS;
14791
14791
  Object.defineProperty(Ma, "__esModule", { value: !0 });
14792
14792
  const uS = Ra, dS = jr, fS = [
@@ -14802,23 +14802,23 @@ const uS = Ra, dS = jr, fS = [
14802
14802
  Ma.default = fS;
14803
14803
  var Fa = {}, Ua = {};
14804
14804
  Object.defineProperty(Ua, "__esModule", { value: !0 });
14805
- const jo = Ue, Zn = jo.operators, Lo = {
14805
+ const Lo = Ue, Zn = Lo.operators, Do = {
14806
14806
  maximum: { okStr: "<=", ok: Zn.LTE, fail: Zn.GT },
14807
14807
  minimum: { okStr: ">=", ok: Zn.GTE, fail: Zn.LT },
14808
14808
  exclusiveMaximum: { okStr: "<", ok: Zn.LT, fail: Zn.GTE },
14809
14809
  exclusiveMinimum: { okStr: ">", ok: Zn.GT, fail: Zn.LTE }
14810
14810
  }, pS = {
14811
- message: ({ keyword: e, schemaCode: t }) => (0, jo.str)`must be ${Lo[e].okStr} ${t}`,
14812
- params: ({ keyword: e, schemaCode: t }) => (0, jo._)`{comparison: ${Lo[e].okStr}, limit: ${t}}`
14811
+ message: ({ keyword: e, schemaCode: t }) => (0, Lo.str)`must be ${Do[e].okStr} ${t}`,
14812
+ params: ({ keyword: e, schemaCode: t }) => (0, Lo._)`{comparison: ${Do[e].okStr}, limit: ${t}}`
14813
14813
  }, mS = {
14814
- keyword: Object.keys(Lo),
14814
+ keyword: Object.keys(Do),
14815
14815
  type: "number",
14816
14816
  schemaType: "number",
14817
14817
  $data: !0,
14818
14818
  error: pS,
14819
14819
  code(e) {
14820
14820
  const { keyword: t, data: n, schemaCode: r } = e;
14821
- e.fail$data((0, jo._)`${n} ${Lo[t].fail} ${r} || isNaN(${n})`);
14821
+ e.fail$data((0, Lo._)`${n} ${Do[t].fail} ${r} || isNaN(${n})`);
14822
14822
  }
14823
14823
  };
14824
14824
  Ua.default = mS;
@@ -14871,9 +14871,9 @@ const br = Ue, gS = ze, vS = Va, _S = {
14871
14871
  qa.default = bS;
14872
14872
  var Ha = {};
14873
14873
  Object.defineProperty(Ha, "__esModule", { value: !0 });
14874
- const TS = Fe, Do = Ue, SS = {
14875
- message: ({ schemaCode: e }) => (0, Do.str)`must match pattern "${e}"`,
14876
- params: ({ schemaCode: e }) => (0, Do._)`{pattern: ${e}}`
14874
+ const TS = Fe, Mo = Ue, SS = {
14875
+ message: ({ schemaCode: e }) => (0, Mo.str)`must match pattern "${e}"`,
14876
+ params: ({ schemaCode: e }) => (0, Mo._)`{pattern: ${e}}`
14877
14877
  }, wS = {
14878
14878
  keyword: "pattern",
14879
14879
  type: "string",
@@ -14881,8 +14881,8 @@ const TS = Fe, Do = Ue, SS = {
14881
14881
  $data: !0,
14882
14882
  error: SS,
14883
14883
  code(e) {
14884
- const { data: t, $data: n, schema: r, schemaCode: i, it: s } = e, o = s.opts.unicodeRegExp ? "u" : "", l = n ? (0, Do._)`(new RegExp(${i}, ${o}))` : (0, TS.usePattern)(e, r);
14885
- e.fail$data((0, Do._)`!${l}.test(${t})`);
14884
+ const { data: t, $data: n, schema: r, schemaCode: i, it: s } = e, o = s.opts.unicodeRegExp ? "u" : "", l = n ? (0, Mo._)`(new RegExp(${i}, ${o}))` : (0, TS.usePattern)(e, r);
14885
+ e.fail$data((0, Mo._)`!${l}.test(${t})`);
14886
14886
  }
14887
14887
  };
14888
14888
  Ha.default = wS;
@@ -14980,13 +14980,13 @@ const ji = Ue, ES = {
14980
14980
  }
14981
14981
  };
14982
14982
  Wa.default = IS;
14983
- var za = {}, Zi = {};
14984
- Object.defineProperty(Zi, "__esModule", { value: !0 });
14983
+ var za = {}, eo = {};
14984
+ Object.defineProperty(eo, "__esModule", { value: !0 });
14985
14985
  const gp = Jf;
14986
14986
  gp.code = 'require("ajv/dist/runtime/equal").default';
14987
- Zi.default = gp;
14987
+ eo.default = gp;
14988
14988
  Object.defineProperty(za, "__esModule", { value: !0 });
14989
- const $s = Yi, At = Ue, PS = ze, NS = Zi, xS = {
14989
+ const $s = Ji, At = Ue, PS = ze, NS = eo, xS = {
14990
14990
  message: ({ params: { i: e, j: t } }) => (0, At.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,
14991
14991
  params: ({ params: { i: e, j: t } }) => (0, At._)`{i: ${e}, j: ${t}}`
14992
14992
  }, jS = {
@@ -15027,7 +15027,7 @@ const $s = Yi, At = Ue, PS = ze, NS = Zi, xS = {
15027
15027
  za.default = jS;
15028
15028
  var Qa = {};
15029
15029
  Object.defineProperty(Qa, "__esModule", { value: !0 });
15030
- const Hs = Ue, LS = ze, DS = Zi, MS = {
15030
+ const Hs = Ue, LS = ze, DS = eo, MS = {
15031
15031
  message: "must be equal to constant",
15032
15032
  params: ({ schemaCode: e }) => (0, Hs._)`{allowedValue: ${e}}`
15033
15033
  }, RS = {
@@ -15042,7 +15042,7 @@ const Hs = Ue, LS = ze, DS = Zi, MS = {
15042
15042
  Qa.default = RS;
15043
15043
  var Ya = {};
15044
15044
  Object.defineProperty(Ya, "__esModule", { value: !0 });
15045
- const Ci = Ue, FS = ze, US = Zi, BS = {
15045
+ const Ci = Ue, FS = ze, US = eo, BS = {
15046
15046
  message: "must be equal to one of the allowed values",
15047
15047
  params: ({ schemaCode: e }) => (0, Ci._)`{allowedValues: ${e}}`
15048
15048
  }, qS = {
@@ -15140,7 +15140,7 @@ fi.default = tw;
15140
15140
  var Xa = {}, pi = {};
15141
15141
  Object.defineProperty(pi, "__esModule", { value: !0 });
15142
15142
  pi.validateTuple = void 0;
15143
- const Tc = Ue, To = ze, nw = Fe, rw = {
15143
+ const Tc = Ue, So = ze, nw = Fe, rw = {
15144
15144
  keyword: "items",
15145
15145
  type: "array",
15146
15146
  schemaType: ["object", "array", "boolean"],
@@ -15149,15 +15149,15 @@ const Tc = Ue, To = ze, nw = Fe, rw = {
15149
15149
  const { schema: t, it: n } = e;
15150
15150
  if (Array.isArray(t))
15151
15151
  return _p(e, "additionalItems", t);
15152
- n.items = !0, !(0, To.alwaysValidSchema)(n, t) && e.ok((0, nw.validateArray)(e));
15152
+ n.items = !0, !(0, So.alwaysValidSchema)(n, t) && e.ok((0, nw.validateArray)(e));
15153
15153
  }
15154
15154
  };
15155
15155
  function _p(e, t, n = e.schema) {
15156
15156
  const { gen: r, parentSchema: i, data: s, keyword: o, it: l } = e;
15157
- m(i), l.opts.unevaluated && n.length && l.items !== !0 && (l.items = To.mergeEvaluated.items(r, n.length, l.items));
15157
+ m(i), l.opts.unevaluated && n.length && l.items !== !0 && (l.items = So.mergeEvaluated.items(r, n.length, l.items));
15158
15158
  const u = r.name("valid"), c = r.const("len", (0, Tc._)`${s}.length`);
15159
15159
  n.forEach((a, d) => {
15160
- (0, To.alwaysValidSchema)(l, a) || (r.if((0, Tc._)`${c} > ${d}`, () => e.subschema({
15160
+ (0, So.alwaysValidSchema)(l, a) || (r.if((0, Tc._)`${c} > ${d}`, () => e.subschema({
15161
15161
  keyword: o,
15162
15162
  schemaProp: d,
15163
15163
  dataProp: d
@@ -15167,7 +15167,7 @@ function _p(e, t, n = e.schema) {
15167
15167
  const { opts: d, errSchemaPath: p } = l, h = n.length, v = h === a.minItems && (h === a.maxItems || a[t] === !1);
15168
15168
  if (d.strictTuples && !v) {
15169
15169
  const T = `"${o}" is ${h}-tuple, but minItems or maxItems/${t} are not specified or different at path "${p}"`;
15170
- (0, To.checkStrictMode)(l, T, d.strictTuples);
15170
+ (0, So.checkStrictMode)(l, T, d.strictTuples);
15171
15171
  }
15172
15172
  }
15173
15173
  }
@@ -15201,7 +15201,7 @@ const Sc = Ue, sw = ze, aw = Fe, lw = fi, cw = {
15201
15201
  Za.default = uw;
15202
15202
  var el = {};
15203
15203
  Object.defineProperty(el, "__esModule", { value: !0 });
15204
- const nn = Ue, lo = ze, dw = {
15204
+ const nn = Ue, co = ze, dw = {
15205
15205
  message: ({ params: { min: e, max: t } }) => t === void 0 ? (0, nn.str)`must contain at least ${e} valid item(s)` : (0, nn.str)`must contain at least ${e} and no more than ${t} valid item(s)`,
15206
15206
  params: ({ params: { min: e, max: t } }) => t === void 0 ? (0, nn._)`{minContains: ${e}}` : (0, nn._)`{minContains: ${e}, maxContains: ${t}}`
15207
15207
  }, fw = {
@@ -15218,14 +15218,14 @@ const nn = Ue, lo = ze, dw = {
15218
15218
  s.opts.next ? (o = u === void 0 ? 1 : u, l = c) : o = 1;
15219
15219
  const m = t.const("len", (0, nn._)`${i}.length`);
15220
15220
  if (e.setParams({ min: o, max: l }), l === void 0 && o === 0) {
15221
- (0, lo.checkStrictMode)(s, '"minContains" == 0 without "maxContains": "contains" keyword ignored');
15221
+ (0, co.checkStrictMode)(s, '"minContains" == 0 without "maxContains": "contains" keyword ignored');
15222
15222
  return;
15223
15223
  }
15224
15224
  if (l !== void 0 && o > l) {
15225
- (0, lo.checkStrictMode)(s, '"minContains" > "maxContains" is always invalid'), e.fail();
15225
+ (0, co.checkStrictMode)(s, '"minContains" > "maxContains" is always invalid'), e.fail();
15226
15226
  return;
15227
15227
  }
15228
- if ((0, lo.alwaysValidSchema)(s, n)) {
15228
+ if ((0, co.alwaysValidSchema)(s, n)) {
15229
15229
  let v = (0, nn._)`${m} >= ${o}`;
15230
15230
  l !== void 0 && (v = (0, nn._)`${v} && ${m} <= ${l}`), e.pass(v);
15231
15231
  return;
@@ -15242,7 +15242,7 @@ const nn = Ue, lo = ze, dw = {
15242
15242
  e.subschema({
15243
15243
  keyword: "contains",
15244
15244
  dataProp: _,
15245
- dataPropType: lo.Type.Num,
15245
+ dataPropType: co.Type.Num,
15246
15246
  compositeRule: !0
15247
15247
  }, v), T();
15248
15248
  });
@@ -15355,7 +15355,7 @@ const Tp = Ue, pw = ze, mw = {
15355
15355
  tl.default = hw;
15356
15356
  var ss = {};
15357
15357
  Object.defineProperty(ss, "__esModule", { value: !0 });
15358
- const co = Fe, ln = Ue, yw = xn, uo = ze, gw = {
15358
+ const uo = Fe, ln = Ue, yw = xn, fo = ze, gw = {
15359
15359
  message: "must NOT have additional properties",
15360
15360
  params: ({ params: e }) => (0, ln._)`{additionalProperty: ${e.additionalProperty}}`
15361
15361
  }, vw = {
@@ -15370,9 +15370,9 @@ const co = Fe, ln = Ue, yw = xn, uo = ze, gw = {
15370
15370
  if (!s)
15371
15371
  throw new Error("ajv implementation error");
15372
15372
  const { allErrors: l, opts: u } = o;
15373
- if (o.props = !0, u.removeAdditional !== "all" && (0, uo.alwaysValidSchema)(o, n))
15373
+ if (o.props = !0, u.removeAdditional !== "all" && (0, fo.alwaysValidSchema)(o, n))
15374
15374
  return;
15375
- const c = (0, co.allSchemaProperties)(r.properties), m = (0, co.allSchemaProperties)(r.patternProperties);
15375
+ const c = (0, uo.allSchemaProperties)(r.properties), m = (0, uo.allSchemaProperties)(r.patternProperties);
15376
15376
  a(), e.ok((0, ln._)`${s} === ${yw.default.errors}`);
15377
15377
  function a() {
15378
15378
  t.forIn("key", i, (T) => {
@@ -15382,11 +15382,11 @@ const co = Fe, ln = Ue, yw = xn, uo = ze, gw = {
15382
15382
  function d(T) {
15383
15383
  let _;
15384
15384
  if (c.length > 8) {
15385
- const E = (0, uo.schemaRefOrVal)(o, r.properties, "properties");
15386
- _ = (0, co.isOwnProperty)(t, E, T);
15385
+ const E = (0, fo.schemaRefOrVal)(o, r.properties, "properties");
15386
+ _ = (0, uo.isOwnProperty)(t, E, T);
15387
15387
  } else
15388
15388
  c.length ? _ = (0, ln.or)(...c.map((E) => (0, ln._)`${T} === ${E}`)) : _ = ln.nil;
15389
- return m.length && (_ = (0, ln.or)(_, ...m.map((E) => (0, ln._)`${(0, co.usePattern)(e, E)}.test(${T})`))), (0, ln.not)(_);
15389
+ return m.length && (_ = (0, ln.or)(_, ...m.map((E) => (0, ln._)`${(0, uo.usePattern)(e, E)}.test(${T})`))), (0, ln.not)(_);
15390
15390
  }
15391
15391
  function p(T) {
15392
15392
  t.code((0, ln._)`delete ${i}[${T}]`);
@@ -15400,7 +15400,7 @@ const co = Fe, ln = Ue, yw = xn, uo = ze, gw = {
15400
15400
  e.setParams({ additionalProperty: T }), e.error(), l || t.break();
15401
15401
  return;
15402
15402
  }
15403
- if (typeof n == "object" && !(0, uo.alwaysValidSchema)(o, n)) {
15403
+ if (typeof n == "object" && !(0, fo.alwaysValidSchema)(o, n)) {
15404
15404
  const _ = t.name("valid");
15405
15405
  u.removeAdditional === "failing" ? (v(T, _, !1), t.if((0, ln.not)(_), () => {
15406
15406
  e.reset(), p(T);
@@ -15411,7 +15411,7 @@ const co = Fe, ln = Ue, yw = xn, uo = ze, gw = {
15411
15411
  const j = {
15412
15412
  keyword: "additionalProperties",
15413
15413
  dataProp: T,
15414
- dataPropType: uo.Type.Str
15414
+ dataPropType: fo.Type.Str
15415
15415
  };
15416
15416
  E === !1 && Object.assign(j, {
15417
15417
  compositeRule: !0,
@@ -15456,7 +15456,7 @@ const _w = fn, wc = Fe, Cs = ze, $c = ss, bw = {
15456
15456
  nl.default = bw;
15457
15457
  var rl = {};
15458
15458
  Object.defineProperty(rl, "__esModule", { value: !0 });
15459
- const Cc = Fe, fo = Ue, kc = ze, Oc = ze, Tw = {
15459
+ const Cc = Fe, po = Ue, kc = ze, Oc = ze, Tw = {
15460
15460
  keyword: "patternProperties",
15461
15461
  type: "object",
15462
15462
  schemaType: "object",
@@ -15465,7 +15465,7 @@ const Cc = Fe, fo = Ue, kc = ze, Oc = ze, Tw = {
15465
15465
  if (l.length === 0 || u.length === l.length && (!s.opts.unevaluated || s.props === !0))
15466
15466
  return;
15467
15467
  const c = o.strictSchema && !o.allowMatchingProperties && i.properties, m = t.name("valid");
15468
- s.props !== !0 && !(s.props instanceof fo.Name) && (s.props = (0, Oc.evaluatedPropsToName)(t, s.props));
15468
+ s.props !== !0 && !(s.props instanceof po.Name) && (s.props = (0, Oc.evaluatedPropsToName)(t, s.props));
15469
15469
  const { props: a } = s;
15470
15470
  d();
15471
15471
  function d() {
@@ -15478,14 +15478,14 @@ const Cc = Fe, fo = Ue, kc = ze, Oc = ze, Tw = {
15478
15478
  }
15479
15479
  function h(v) {
15480
15480
  t.forIn("key", r, (T) => {
15481
- t.if((0, fo._)`${(0, Cc.usePattern)(e, v)}.test(${T})`, () => {
15481
+ t.if((0, po._)`${(0, Cc.usePattern)(e, v)}.test(${T})`, () => {
15482
15482
  const _ = u.includes(v);
15483
15483
  _ || e.subschema({
15484
15484
  keyword: "patternProperties",
15485
15485
  schemaProp: v,
15486
15486
  dataProp: T,
15487
15487
  dataPropType: Oc.Type.Str
15488
- }, m), s.opts.unevaluated && a !== !0 ? t.assign((0, fo._)`${a}[${T}]`, !0) : !_ && !s.allErrors && t.if((0, fo.not)(m), () => t.break());
15488
+ }, m), s.opts.unevaluated && a !== !0 ? t.assign((0, po._)`${a}[${T}]`, !0) : !_ && !s.allErrors && t.if((0, po.not)(m), () => t.break());
15489
15489
  });
15490
15490
  });
15491
15491
  }
@@ -15527,9 +15527,9 @@ const $w = Fe, Cw = {
15527
15527
  ol.default = Cw;
15528
15528
  var sl = {};
15529
15529
  Object.defineProperty(sl, "__esModule", { value: !0 });
15530
- const So = Ue, kw = ze, Ow = {
15530
+ const wo = Ue, kw = ze, Ow = {
15531
15531
  message: "must match exactly one schema in oneOf",
15532
- params: ({ params: e }) => (0, So._)`{passingSchemas: ${e.passing}}`
15532
+ params: ({ params: e }) => (0, wo._)`{passingSchemas: ${e.passing}}`
15533
15533
  }, Aw = {
15534
15534
  keyword: "oneOf",
15535
15535
  schemaType: "array",
@@ -15550,8 +15550,8 @@ const So = Ue, kw = ze, Ow = {
15550
15550
  keyword: "oneOf",
15551
15551
  schemaProp: a,
15552
15552
  compositeRule: !0
15553
- }, u), a > 0 && t.if((0, So._)`${u} && ${o}`).assign(o, !1).assign(l, (0, So._)`[${l}, ${a}]`).else(), t.if(u, () => {
15554
- t.assign(o, !0), t.assign(l, a), d && e.mergeEvaluated(d, So.Name);
15553
+ }, u), a > 0 && t.if((0, wo._)`${u} && ${o}`).assign(o, !1).assign(l, (0, wo._)`[${l}, ${a}]`).else(), t.if(u, () => {
15554
+ t.assign(o, !0), t.assign(l, a), d && e.mergeEvaluated(d, wo.Name);
15555
15555
  });
15556
15556
  });
15557
15557
  }
@@ -15579,9 +15579,9 @@ const Ew = ze, Iw = {
15579
15579
  al.default = Iw;
15580
15580
  var ll = {};
15581
15581
  Object.defineProperty(ll, "__esModule", { value: !0 });
15582
- const Mo = Ue, Sp = ze, Pw = {
15583
- message: ({ params: e }) => (0, Mo.str)`must match "${e.ifClause}" schema`,
15584
- params: ({ params: e }) => (0, Mo._)`{failingKeyword: ${e.ifClause}}`
15582
+ const Ro = Ue, Sp = ze, Pw = {
15583
+ message: ({ params: e }) => (0, Ro.str)`must match "${e.ifClause}" schema`,
15584
+ params: ({ params: e }) => (0, Ro._)`{failingKeyword: ${e.ifClause}}`
15585
15585
  }, Nw = {
15586
15586
  keyword: "if",
15587
15587
  schemaType: ["object", "boolean"],
@@ -15598,7 +15598,7 @@ const Mo = Ue, Sp = ze, Pw = {
15598
15598
  const m = t.let("ifClause");
15599
15599
  e.setParams({ ifClause: m }), t.if(l, c("then", m), c("else", m));
15600
15600
  } else
15601
- i ? t.if(l, c("then")) : t.if((0, Mo.not)(l), c("else"));
15601
+ i ? t.if(l, c("then")) : t.if((0, Ro.not)(l), c("else"));
15602
15602
  e.pass(o, () => e.error(!0));
15603
15603
  function u() {
15604
15604
  const m = e.subschema({
@@ -15612,7 +15612,7 @@ const Mo = Ue, Sp = ze, Pw = {
15612
15612
  function c(m, a) {
15613
15613
  return () => {
15614
15614
  const d = e.subschema({ keyword: m }, l);
15615
- t.assign(o, l), e.mergeValidEvaluated(d, o), a ? t.assign(a, (0, Mo._)`${m}`) : e.setParams({ ifClause: m });
15615
+ t.assign(o, l), e.mergeValidEvaluated(d, o), a ? t.assign(a, (0, Ro._)`${m}`) : e.setParams({ ifClause: m });
15616
15616
  };
15617
15617
  }
15618
15618
  }
@@ -16101,11 +16101,11 @@ const u$ = "http://json-schema.org/draft-07/schema#", d$ = "http://json-schema.o
16101
16101
  } }), Object.defineProperty(t, "CodeGen", { enumerable: !0, get: function() {
16102
16102
  return m.CodeGen;
16103
16103
  } });
16104
- var a = Ji;
16104
+ var a = Xi;
16105
16105
  Object.defineProperty(t, "ValidationError", { enumerable: !0, get: function() {
16106
16106
  return a.default;
16107
16107
  } });
16108
- var d = Xi;
16108
+ var d = Zi;
16109
16109
  Object.defineProperty(t, "MissingRefError", { enumerable: !0, get: function() {
16110
16110
  return d.default;
16111
16111
  } });
@@ -16124,7 +16124,7 @@ function _$(e, t) {
16124
16124
  function b$(e, t) {
16125
16125
  if (t.transitions)
16126
16126
  for (const n in t.transitions)
16127
- vo[n] ? Object.assign(vo[n], t.transitions[n]) : vo[n] = t.transitions[n];
16127
+ _o[n] ? Object.assign(_o[n], t.transitions[n]) : _o[n] = t.transitions[n];
16128
16128
  return t;
16129
16129
  }
16130
16130
  function T$(e, t, n) {
@@ -16205,7 +16205,7 @@ class V {
16205
16205
  qe(this, "parser");
16206
16206
  qe(this, "onPlayerAnswered");
16207
16207
  qe(this, "returnAfterPlayerAnswer");
16208
- this.keyword = t, this.runner = r, this.argTypes = n, i ? this.parser = i : this.parser = eo(this.keyword, this.argTypes), this.returnAfterPlayerAnswer = !1;
16208
+ this.keyword = t, this.runner = r, this.argTypes = n, i ? this.parser = i : this.parser = to(this.keyword, this.argTypes), this.returnAfterPlayerAnswer = !1;
16209
16209
  }
16210
16210
  async run(t, n) {
16211
16211
  let r = await this.runner(t, n);
@@ -16227,7 +16227,7 @@ class V {
16227
16227
  return n.onPlayerAnswered = t.onPlayerAnswered, n.returnAfterPlayerAnswer = t.returnAfterPlayerAnswer ?? !1, n;
16228
16228
  }
16229
16229
  }
16230
- function eo(e, t) {
16230
+ function to(e, t) {
16231
16231
  let n = [];
16232
16232
  if (t !== "any") {
16233
16233
  n = [];
@@ -16430,7 +16430,7 @@ function Ep(e) {
16430
16430
  }
16431
16431
  return t;
16432
16432
  }
16433
- function Ro(e) {
16433
+ function Fo(e) {
16434
16434
  const t = Ep(e), n = ((t == null ? void 0 : t.fadeInDelay) ?? rn().options.musicFadeInDelay) * 1e3, r = ((t == null ? void 0 : t.fadeInTime) ?? rn().options.musicFadeInTime) * 1e3, i = ((t == null ? void 0 : t.fadeOutTime) ?? rn().options.musicFadeOutTime) * 1e3;
16435
16435
  return {
16436
16436
  fadeInDelay: n,
@@ -16441,7 +16441,7 @@ function Ro(e) {
16441
16441
  function Vn() {
16442
16442
  return nt().skills;
16443
16443
  }
16444
- function Ki() {
16444
+ function Gi() {
16445
16445
  return nt().skillChecks;
16446
16446
  }
16447
16447
  function ml() {
@@ -16471,10 +16471,10 @@ function Ip() {
16471
16471
  function Nc(e) {
16472
16472
  return zs().choicePrompts[e];
16473
16473
  }
16474
- function to(e) {
16474
+ function no(e) {
16475
16475
  return e === zo ? Bl : Ws().screens[e] ? Ws().screens[e] : (de(`Screen config for screen ${e} doesn't exist`), Bl);
16476
16476
  }
16477
- function Fo(e) {
16477
+ function Uo(e) {
16478
16478
  const n = Or().tooltips.find((r) => r.keywords.includes(e));
16479
16479
  return n || (de(`Tooltip config for keyword ${e} not found`), null);
16480
16480
  }
@@ -16489,7 +16489,7 @@ function Pp(e) {
16489
16489
  function Np(e) {
16490
16490
  return !!nt().skillChecks.skillChecks[e];
16491
16491
  }
16492
- function no(e) {
16492
+ function ro(e) {
16493
16493
  return e.startsWith("http") ? e : Wt(e);
16494
16494
  }
16495
16495
  function Wt(e) {
@@ -16513,11 +16513,11 @@ function $n(e) {
16513
16513
  const t = ml().items[e];
16514
16514
  return t || de(`Item config for skill ${e} doesn't exist`), t;
16515
16515
  }
16516
- function Gi() {
16516
+ function Wi() {
16517
16517
  return nt().achievements;
16518
16518
  }
16519
16519
  function _l(e) {
16520
- const t = Gi().achievements[e];
16520
+ const t = Wi().achievements[e];
16521
16521
  return t || de(`Achievement config for achievement ${e} doesn't exist`), t;
16522
16522
  }
16523
16523
  function lr(e) {
@@ -16527,10 +16527,10 @@ function jp(e, t) {
16527
16527
  const r = lr(e).endings;
16528
16528
  return r || de(`Quest ${e} doesn't have any endings`), r[t] || de(`Quest ${e} has no ending called ${t}`), r[t];
16529
16529
  }
16530
- function Uo(e, t) {
16530
+ function Bo(e, t) {
16531
16531
  return lr(e).objectives[t];
16532
16532
  }
16533
- function Bo() {
16533
+ function qo() {
16534
16534
  return ue().dialogPanel.width ?? Vh;
16535
16535
  }
16536
16536
  const Pt = bt("quests", {
@@ -16591,13 +16591,13 @@ const Pt = bt("quests", {
16591
16591
  startObjective(e, t) {
16592
16592
  const n = this.getObjective(e, t);
16593
16593
  n ? (n.state = "unlocked", qt().addNotification(
16594
- `New quest objective: ${Uo(e, t).description}`
16594
+ `New quest objective: ${Bo(e, t).description}`
16595
16595
  )) : de(`Objective ${t} doesn't exist in quest ${e}!`);
16596
16596
  },
16597
16597
  completeObjective(e, t) {
16598
16598
  const n = this.getObjective(e, t);
16599
16599
  n ? (n.state = "completed", qt().addNotification(
16600
- `Completed quest objective: ${Uo(e, t).description}`
16600
+ `Completed quest objective: ${Bo(e, t).description}`
16601
16601
  )) : de(`Objective ${t} doesn't exist in quest ${e}!`);
16602
16602
  },
16603
16603
  completeQuest(e, t) {
@@ -16650,11 +16650,11 @@ const Pt = bt("quests", {
16650
16650
  },
16651
16651
  generateSaveData() {
16652
16652
  return {
16653
- quests: Ke(this.quests)
16653
+ quests: He(this.quests)
16654
16654
  };
16655
16655
  },
16656
16656
  loadSaveData(e) {
16657
- this.quests = e.quests;
16657
+ this.quests = He(e.quests);
16658
16658
  }
16659
16659
  }
16660
16660
  });
@@ -16762,19 +16762,19 @@ function ui() {
16762
16762
  }
16763
16763
  });
16764
16764
  }
16765
- function Ke(e) {
16765
+ function He(e) {
16766
16766
  if (e === null)
16767
16767
  return null;
16768
16768
  if (typeof e == "object")
16769
16769
  if (Array.isArray(e)) {
16770
16770
  const t = [];
16771
16771
  for (const n in e)
16772
- t[n] = Ke(e[n]);
16772
+ t[n] = He(e[n]);
16773
16773
  return t;
16774
16774
  } else {
16775
16775
  const t = {};
16776
16776
  for (const n in e)
16777
- t[n] = Ke(e[n]);
16777
+ t[n] = He(e[n]);
16778
16778
  return t;
16779
16779
  }
16780
16780
  else
@@ -16819,8 +16819,8 @@ const vt = bt("skills", {
16819
16819
  },
16820
16820
  generateSaveData() {
16821
16821
  return {
16822
- skillChecks: Ke(this.skillChecks),
16823
- skills: Ke(this.skills)
16822
+ skillChecks: He(this.skillChecks),
16823
+ skills: He(this.skills)
16824
16824
  };
16825
16825
  },
16826
16826
  getSkillCheck(e) {
@@ -17155,7 +17155,7 @@ function X$(e, { getFn: t = De.getFn, fieldNormWeight: n = De.fieldNormWeight }
17155
17155
  const { keys: r, records: i } = e, s = new Tl({ getFn: t, fieldNormWeight: n });
17156
17156
  return s.setKeys(r), s.setIndexRecords(i), s;
17157
17157
  }
17158
- function po(e, {
17158
+ function mo(e, {
17159
17159
  errors: t = 0,
17160
17160
  currentLocation: n = 0,
17161
17161
  expectedLocation: r = 0,
@@ -17193,7 +17193,7 @@ function eC(e, t, n, {
17193
17193
  const v = l > 1 || u, T = v ? Array(a) : [];
17194
17194
  let _;
17195
17195
  for (; (_ = e.indexOf(t, h)) > -1; ) {
17196
- let P = po(t, {
17196
+ let P = mo(t, {
17197
17197
  currentLocation: _,
17198
17198
  expectedLocation: d,
17199
17199
  distance: i,
@@ -17211,7 +17211,7 @@ function eC(e, t, n, {
17211
17211
  for (let P = 0; P < m; P += 1) {
17212
17212
  let Z = 0, Y = U;
17213
17213
  for (; Z < Y; )
17214
- po(t, {
17214
+ mo(t, {
17215
17215
  errors: P,
17216
17216
  currentLocation: d + Y,
17217
17217
  expectedLocation: d,
@@ -17223,7 +17223,7 @@ function eC(e, t, n, {
17223
17223
  Q[z + 1] = (1 << P) - 1;
17224
17224
  for (let re = z; re >= te; re -= 1) {
17225
17225
  let Pe = re - 1, Re = n[e.charAt(Pe)];
17226
- if (v && (T[Pe] = +!!Re), Q[re] = (Q[re + 1] << 1 | 1) & Re, P && (Q[re] |= (E[re + 1] | E[re]) << 1 | 1 | E[re + 1]), Q[re] & B && (j = po(t, {
17226
+ if (v && (T[Pe] = +!!Re), Q[re] = (Q[re + 1] << 1 | 1) & Re, P && (Q[re] |= (E[re + 1] | E[re]) << 1 | 1 | E[re + 1]), Q[re] & B && (j = mo(t, {
17227
17227
  errors: P,
17228
17228
  currentLocation: Pe,
17229
17229
  expectedLocation: d,
@@ -17235,7 +17235,7 @@ function eC(e, t, n, {
17235
17235
  te = Math.max(1, 2 * d - h);
17236
17236
  }
17237
17237
  }
17238
- if (po(t, {
17238
+ if (mo(t, {
17239
17239
  errors: P + 1,
17240
17240
  currentLocation: d,
17241
17241
  expectedLocation: d,
@@ -17663,14 +17663,14 @@ function Zs(e, t) {
17663
17663
  }
17664
17664
  return new qp(e, t);
17665
17665
  }
17666
- const qo = {
17666
+ const Vo = {
17667
17667
  AND: "$and",
17668
17668
  OR: "$or"
17669
17669
  }, ea = {
17670
17670
  PATH: "$path",
17671
17671
  PATTERN: "$val"
17672
- }, ta = (e) => !!(e[qo.AND] || e[qo.OR]), mC = (e) => !!e[ea.PATH], hC = (e) => !Wn(e) && Rp(e) && !ta(e), Mc = (e) => ({
17673
- [qo.AND]: Object.keys(e).map((t) => ({
17672
+ }, ta = (e) => !!(e[Vo.AND] || e[Vo.OR]), mC = (e) => !!e[ea.PATH], hC = (e) => !Wn(e) && Rp(e) && !ta(e), Mc = (e) => ({
17673
+ [Vo.AND]: Object.keys(e).map((t) => ({
17674
17674
  [t]: e[t]
17675
17675
  }))
17676
17676
  });
@@ -17823,7 +17823,7 @@ class mi {
17823
17823
  const p = l.children[a], h = r(p, u, c);
17824
17824
  if (h.length)
17825
17825
  m.push(...h);
17826
- else if (l.operator === qo.AND)
17826
+ else if (l.operator === Vo.AND)
17827
17827
  return [];
17828
17828
  }
17829
17829
  return m;
@@ -17894,7 +17894,7 @@ const bC = /* @__PURE__ */ M("h3", { class: "title" }, "Jump to label", -1), TC
17894
17894
  class: "search-results"
17895
17895
  }, SC = { key: 1 }, wC = /* @__PURE__ */ M("h3", null, "No matches found", -1), $C = [
17896
17896
  wC
17897
- ], CC = /* @__PURE__ */ $e({
17897
+ ], CC = /* @__PURE__ */ Ce({
17898
17898
  __name: "debug-jumping",
17899
17899
  emits: ["close", "jump"],
17900
17900
  setup(e, { emit: t }) {
@@ -17946,14 +17946,14 @@ const bC = /* @__PURE__ */ M("h3", { class: "title" }, "Jump to label", -1), TC
17946
17946
  });
17947
17947
  }), _t(() => {
17948
17948
  i.value && et().unregisterInputListener(i.value), ke().debugMode = !1;
17949
- }), (d, p) => (D(), Ce(cr, {
17949
+ }), (d, p) => (D(), $e(cr, {
17950
17950
  onClose: p[1] || (p[1] = (h) => d.$emit("close")),
17951
17951
  containerCssClass: "jump-menu-container"
17952
17952
  }, {
17953
- header: He(() => [
17953
+ header: Ke(() => [
17954
17954
  bC
17955
17955
  ]),
17956
- body: He(() => [
17956
+ body: Ke(() => [
17957
17957
  ir(M("input", {
17958
17958
  type: "text",
17959
17959
  class: "label-input nrt-input",
@@ -17982,13 +17982,13 @@ const bC = /* @__PURE__ */ M("h3", { class: "title" }, "Jump to label", -1), TC
17982
17982
  actions: {
17983
17983
  generateGlobalSaveData() {
17984
17984
  return {
17985
- achievements: Ke(this.achievements)
17985
+ achievements: He(this.achievements)
17986
17986
  };
17987
17987
  },
17988
17988
  loadGlobalSaveData(e) {
17989
17989
  this.achievements = {
17990
17990
  ...this.achievements,
17991
- ...Ke(e.achievements)
17991
+ ...He(e.achievements)
17992
17992
  };
17993
17993
  },
17994
17994
  updateConfig(e) {
@@ -18021,7 +18021,7 @@ const bC = /* @__PURE__ */ M("h3", { class: "title" }, "Jump to label", -1), TC
18021
18021
  const n = (/* @__PURE__ */ new Date()).toISOString();
18022
18022
  t.unlocked = !0, t.unlockTime = n;
18023
18023
  }
18024
- if (Gi().notifyNewAchievements) {
18024
+ if (Wi().notifyNewAchievements) {
18025
18025
  const n = _l(e);
18026
18026
  qt().addNotification(
18027
18027
  `New Achievement: ${n.name}`,
@@ -18048,11 +18048,11 @@ const bC = /* @__PURE__ */ M("h3", { class: "title" }, "Jump to label", -1), TC
18048
18048
  },
18049
18049
  generateSaveData() {
18050
18050
  return {
18051
- choices: Ke(this.choices)
18051
+ choices: He(this.choices)
18052
18052
  };
18053
18053
  },
18054
18054
  loadSaveData(e) {
18055
- this.choices = Ke(e.choices);
18055
+ this.choices = He(e.choices);
18056
18056
  },
18057
18057
  reset() {
18058
18058
  this.$reset();
@@ -18139,7 +18139,7 @@ const bC = /* @__PURE__ */ M("h3", { class: "title" }, "Jump to label", -1), TC
18139
18139
  store: Ca
18140
18140
  },
18141
18141
  tooltips: {
18142
- store: zi,
18142
+ store: Qi,
18143
18143
  config: "tooltips"
18144
18144
  },
18145
18145
  vm: {
@@ -18174,7 +18174,7 @@ const OC = (e) => (qc("data-v-4598a901"), e = e(), Vc(), e), AC = { class: "debu
18174
18174
  class: "debug-menu-link"
18175
18175
  }, [
18176
18176
  /* @__PURE__ */ M("button", { class: "debug-link-button" }, "Back")
18177
- ], -1)), PC = /* @__PURE__ */ $e({
18177
+ ], -1)), PC = /* @__PURE__ */ Ce({
18178
18178
  __name: "DebugMenuSection",
18179
18179
  props: {
18180
18180
  title: {},
@@ -18193,9 +18193,9 @@ const OC = (e) => (qc("data-v-4598a901"), e = e(), Vc(), e), AC = { class: "debu
18193
18193
  }), NC = /* @__PURE__ */ sn(PC, [["__scopeId", "data-v-4598a901"]]);
18194
18194
  let ti;
18195
18195
  async function xC() {
18196
- ti || (ti = (await import("./index-LQ_vd44P.js")).JSONEditor, console.log(ti));
18196
+ ti || (ti = (await import("./index-mlpxSPKK.js")).JSONEditor, console.log(ti));
18197
18197
  }
18198
- const jC = $e({
18198
+ const jC = Ce({
18199
18199
  components: {
18200
18200
  ModalWindow: cr,
18201
18201
  DebugJumping: CC,
@@ -18403,40 +18403,42 @@ function ok(e, t, n, r, i, s) {
18403
18403
  class: "nrt-button debug-menu-toggle"
18404
18404
  }, " Debug Menu "),
18405
18405
  !e.playing && e.activeScene === "menu" ? (D(), J("div", DC, RC)) : Oe("", !0),
18406
- e.jumping ? (D(), Ce(o, {
18406
+ e.jumping ? (D(), $e(o, {
18407
18407
  key: 1,
18408
18408
  onClose: e.closeJumping
18409
18409
  }, null, 8, ["onClose"])) : Oe("", !0),
18410
- e.errors.length > 0 ? (D(), Ce(l, {
18411
- key: 2,
18412
- onClose: e.closeErrors,
18413
- containerCssClass: "debug-menu-container"
18414
- }, {
18415
- header: He(() => [
18416
- FC
18417
- ]),
18418
- body: He(() => [
18419
- Er(" There are errors in your dialogue scripts. Open the developer console for more details. "),
18420
- M("ul", null, [
18421
- (D(!0), J(We, null, Xe(e.errors, (c, m) => (D(), J("li", {
18422
- key: m,
18423
- class: Ge(["error-message list-disc", c.type === "error" ? "error" : "warning"]),
18424
- innerHTML: c.text
18425
- }, null, 10, UC))), 128))
18426
- ])
18427
- ]),
18428
- _: 1
18429
- }, 8, ["onClose"])) : Oe("", !0),
18430
- (D(), Ce(Ho, { to: "#modals" }, [
18431
- e.showDebug ? (D(), Ce(l, {
18410
+ (D(), $e(Ri, { to: "#modals" }, [
18411
+ e.errors.length > 0 ? (D(), $e(l, {
18412
+ key: 0,
18413
+ onClose: e.closeErrors,
18414
+ containerCssClass: "debug-menu-container"
18415
+ }, {
18416
+ header: Ke(() => [
18417
+ FC
18418
+ ]),
18419
+ body: Ke(() => [
18420
+ Er(" There are errors in your dialogue scripts. Open the developer console for more details. "),
18421
+ M("ul", null, [
18422
+ (D(!0), J(We, null, Xe(e.errors, (c, m) => (D(), J("li", {
18423
+ key: m,
18424
+ class: Ge(["error-message list-disc", c.type === "error" ? "error" : "warning"]),
18425
+ innerHTML: c.text
18426
+ }, null, 10, UC))), 128))
18427
+ ])
18428
+ ]),
18429
+ _: 1
18430
+ }, 8, ["onClose"])) : Oe("", !0)
18431
+ ])),
18432
+ (D(), $e(Ri, { to: "#modals" }, [
18433
+ e.showDebug ? (D(), $e(l, {
18432
18434
  key: 0,
18433
18435
  onClose: e.close,
18434
18436
  containerCssClass: "debug-menu-container"
18435
18437
  }, {
18436
- header: He(() => [
18438
+ header: Ke(() => [
18437
18439
  BC
18438
18440
  ]),
18439
- body: He(() => [
18441
+ body: Ke(() => [
18440
18442
  M("div", qC, [
18441
18443
  M("div", VC, [
18442
18444
  HC,
@@ -18446,7 +18448,7 @@ function ok(e, t, n, r, i, s) {
18446
18448
  title: "Utilities",
18447
18449
  link: "utilities"
18448
18450
  }, {
18449
- default: He(() => [
18451
+ default: Ke(() => [
18450
18452
  M("select", {
18451
18453
  class: "nrt-select",
18452
18454
  name: "label-selector",
@@ -18485,7 +18487,7 @@ function ok(e, t, n, r, i, s) {
18485
18487
  title: "Variables Editor",
18486
18488
  link: "variables-editor"
18487
18489
  }, {
18488
- default: He(() => [
18490
+ default: Ke(() => [
18489
18491
  M("div", YC, null, 512)
18490
18492
  ]),
18491
18493
  _: 1
@@ -18494,7 +18496,7 @@ function ok(e, t, n, r, i, s) {
18494
18496
  title: "Skill Checks",
18495
18497
  link: "skillchecks"
18496
18498
  }, {
18497
- default: He(() => [
18499
+ default: Ke(() => [
18498
18500
  Object.keys(e.skillChecks).length < 1 ? (D(), J("h3", JC, " No skill checks have been made yet ")) : (D(), J("table", XC, [
18499
18501
  ZC,
18500
18502
  M("tbody", null, [
@@ -18512,7 +18514,7 @@ function ok(e, t, n, r, i, s) {
18512
18514
  title: "App State editor",
18513
18515
  link: "state-editor"
18514
18516
  }, {
18515
- default: He(() => [
18517
+ default: Ke(() => [
18516
18518
  ek,
18517
18519
  M("div", tk, null, 512)
18518
18520
  ]),
@@ -18522,7 +18524,7 @@ function ok(e, t, n, r, i, s) {
18522
18524
  title: "Save data editor",
18523
18525
  link: "save-editor"
18524
18526
  }, {
18525
- default: He(() => [
18527
+ default: Ke(() => [
18526
18528
  nk,
18527
18529
  rk,
18528
18530
  M("div", ik, null, 512)
@@ -18537,7 +18539,7 @@ function ok(e, t, n, r, i, s) {
18537
18539
  ]))
18538
18540
  ]);
18539
18541
  }
18540
- const sk = /* @__PURE__ */ sn(jC, [["render", ok]]), ak = ["src"], lk = ["innerHTML"], ck = ["innerHTML"], uk = /* @__PURE__ */ $e({
18542
+ const sk = /* @__PURE__ */ sn(jC, [["render", ok]]), ak = ["src"], lk = ["innerHTML"], ck = ["innerHTML"], uk = /* @__PURE__ */ Ce({
18541
18543
  __name: "notification-toast",
18542
18544
  setup(e) {
18543
18545
  const t = qt(), n = q(() => t.notifications), r = (i) => {
@@ -18546,12 +18548,12 @@ const sk = /* @__PURE__ */ sn(jC, [["render", ok]]), ak = ["src"], lk = ["innerH
18546
18548
  marginTop: "10px"
18547
18549
  };
18548
18550
  };
18549
- return (i, s) => (D(), Ce(ki, {
18551
+ return (i, s) => (D(), $e(ki, {
18550
18552
  name: "notification",
18551
18553
  tag: "div",
18552
18554
  class: "notifications-holder"
18553
18555
  }, {
18554
- default: He(() => [
18556
+ default: Ke(() => [
18555
18557
  (D(!0), J(We, null, Xe(n.value, (o, l) => (D(), J("div", {
18556
18558
  class: "notification nrt-tile",
18557
18559
  key: l
@@ -18576,7 +18578,7 @@ const sk = /* @__PURE__ */ sn(jC, [["render", ok]]), ak = ["src"], lk = ["innerH
18576
18578
  _: 1
18577
18579
  }));
18578
18580
  }
18579
- }), dk = { class: "title" }, fk = /* @__PURE__ */ $e({
18581
+ }), dk = { class: "title" }, fk = /* @__PURE__ */ Ce({
18580
18582
  __name: "alert-modal",
18581
18583
  props: {
18582
18584
  title: {
@@ -18615,20 +18617,20 @@ const sk = /* @__PURE__ */ sn(jC, [["render", ok]]), ak = ["src"], lk = ["innerH
18615
18617
  );
18616
18618
  return _t(() => {
18617
18619
  i.value && et().unregisterInputListener(i.value);
18618
- }), (s, o) => (D(), Ce(cr, {
18620
+ }), (s, o) => (D(), $e(cr, {
18619
18621
  onClose: r,
18620
18622
  containerCssClass: "yes-no-modal"
18621
18623
  }, {
18622
- header: He(() => [
18624
+ header: Ke(() => [
18623
18625
  M("h3", dk, ye(e.title ?? "Alert"), 1)
18624
18626
  ]),
18625
- body: He(() => [
18627
+ body: Ke(() => [
18626
18628
  M("h3", null, ye(e.text), 1)
18627
18629
  ]),
18628
18630
  _: 1
18629
18631
  }));
18630
18632
  }
18631
- }), pk = /* @__PURE__ */ M("hr", null, null, -1), mk = /* @__PURE__ */ $e({
18633
+ }), pk = /* @__PURE__ */ M("hr", null, null, -1), mk = /* @__PURE__ */ Ce({
18632
18634
  __name: "floating-tooltip",
18633
18635
  props: {
18634
18636
  title: {},
@@ -18653,8 +18655,8 @@ const sk = /* @__PURE__ */ sn(jC, [["render", ok]]), ak = ["src"], lk = ["innerH
18653
18655
  });
18654
18656
  return ft(() => {
18655
18657
  n.value && (t.value = n.value.clientHeight);
18656
- }), (l, u) => (D(), Ce(Li, { name: "fade" }, {
18657
- default: He(() => [
18658
+ }), (l, u) => (D(), $e(Li, { name: "fade" }, {
18659
+ default: Ke(() => [
18658
18660
  M("div", {
18659
18661
  class: Ge(["floating-tooltip", l.cssClass]),
18660
18662
  style: Ye(o.value),
@@ -18676,10 +18678,10 @@ const sk = /* @__PURE__ */ sn(jC, [["render", ok]]), ak = ["src"], lk = ["innerH
18676
18678
  _: 1
18677
18679
  }));
18678
18680
  }
18679
- }), hk = { class: "tooltips-ui" }, yk = /* @__PURE__ */ $e({
18681
+ }), hk = { class: "tooltips-ui" }, yk = /* @__PURE__ */ Ce({
18680
18682
  __name: "tooltips-ui",
18681
18683
  setup(e) {
18682
- const t = zi(), n = gt(), r = q(() => t.tooltip), i = q(() => n.screenWidth), s = q(() => n.screenHeight), o = q(() => {
18684
+ const t = Qi(), n = gt(), r = q(() => t.tooltip), i = q(() => n.screenWidth), s = q(() => n.screenHeight), o = q(() => {
18683
18685
  if (r.value)
18684
18686
  return {
18685
18687
  ...r.value,
@@ -18692,13 +18694,13 @@ const sk = /* @__PURE__ */ sn(jC, [["render", ok]]), ak = ["src"], lk = ["innerH
18692
18694
  function l(u) {
18693
18695
  var m, a;
18694
18696
  let c = {};
18695
- return Or().options.styling && (c = { ...c, ...Or().options.styling }), (m = Fo(u.keyword)) != null && m.styling && (c = {
18697
+ return Or().options.styling && (c = { ...c, ...Or().options.styling }), (m = Uo(u.keyword)) != null && m.styling && (c = {
18696
18698
  ...c,
18697
- ...(a = Fo(u.keyword)) == null ? void 0 : a.styling
18699
+ ...(a = Uo(u.keyword)) == null ? void 0 : a.styling
18698
18700
  }), c;
18699
18701
  }
18700
18702
  return (u, c) => (D(), J("div", hk, [
18701
- r.value ? (D(), Ce(mk, fm(Hc({ key: 0 }, o.value)), null, 16)) : Oe("", !0)
18703
+ r.value ? (D(), $e(mk, fm(Hc({ key: 0 }, o.value)), null, 16)) : Oe("", !0)
18702
18704
  ]));
18703
18705
  }
18704
18706
  }), Os = {};
@@ -18747,7 +18749,7 @@ async function bk() {
18747
18749
  }
18748
18750
  e.setLoadingStep("Assets", 0.3), await Promise.all([t, n, r]), Me.callHook("onAssetsLoaded"), e.setLoadingStep("Starting", 0.9), await _k(), Me.callHook("onGameSetup"), e.gameLoaded();
18749
18751
  }
18750
- const Tk = ["id"], Sk = /* @__PURE__ */ $e({
18752
+ const Tk = ["id"], Sk = /* @__PURE__ */ Ce({
18751
18753
  __name: "GameScene",
18752
18754
  props: {
18753
18755
  sceneId: {},
@@ -18762,13 +18764,13 @@ const Tk = ["id"], Sk = /* @__PURE__ */ $e({
18762
18764
  class: "game-scene",
18763
18765
  id: `scene-${s.sceneId}`
18764
18766
  }, [
18765
- (D(), Ce(Ko(r.value.component), {
18767
+ (D(), $e(Ko(r.value.component), {
18766
18768
  onFinished: i,
18767
18769
  options: s.options
18768
18770
  }, null, 40, ["options"]))
18769
18771
  ], 8, Tk));
18770
18772
  }
18771
- }), wk = { id: "narrat" }, $k = /* @__PURE__ */ M("div", { id: "modals" }, null, -1), Ck = /* @__PURE__ */ $e({
18773
+ }), wk = { id: "narrat" }, $k = /* @__PURE__ */ M("div", { id: "modals" }, null, -1), Ck = /* @__PURE__ */ Ce({
18772
18774
  __name: "app",
18773
18775
  props: {
18774
18776
  options: {}
@@ -18811,8 +18813,8 @@ const Tk = ["id"], Sk = /* @__PURE__ */ $e({
18811
18813
  tabindex: "0"
18812
18814
  }, [
18813
18815
  Ze(Li, { name: "screens-fade" }, {
18814
- default: He(() => [
18815
- (D(), Ce(Sk, {
18816
+ default: Ke(() => [
18817
+ (D(), $e(Sk, {
18816
18818
  key: i.value,
18817
18819
  sceneId: i.value,
18818
18820
  options: ot(r).currentOptions
@@ -18820,9 +18822,9 @@ const Tk = ["id"], Sk = /* @__PURE__ */ $e({
18820
18822
  ]),
18821
18823
  _: 1
18822
18824
  }),
18823
- d.options.debug && l.value ? (D(), Ce(sk, { key: 0 })) : Oe("", !0),
18825
+ d.options.debug && l.value ? (D(), $e(sk, { key: 0 })) : Oe("", !0),
18824
18826
  Ze(uk),
18825
- (D(!0), J(We, null, Xe(s.value, (h) => (D(), Ce(fk, {
18827
+ (D(!0), J(We, null, Xe(s.value, (h) => (D(), $e(fk, {
18826
18828
  key: h.id,
18827
18829
  title: h.title,
18828
18830
  text: h.text,
@@ -19025,7 +19027,7 @@ const Tk = ["id"], Sk = /* @__PURE__ */ $e({
19025
19027
  de(`Trying to jump but label ${t} not found`);
19026
19028
  return;
19027
19029
  }
19028
- return n.jumpTarget = r, $o;
19030
+ return n.jumpTarget = r, Co;
19029
19031
  }
19030
19032
  }), Bk = V.FromOptions({
19031
19033
  keyword: "run",
@@ -19061,7 +19063,7 @@ const Tk = ["id"], Sk = /* @__PURE__ */ $e({
19061
19063
  }), Kk = V.FromOptions({
19062
19064
  keyword: "menu_return",
19063
19065
  argTypes: [],
19064
- runner: async (e) => (yf(), Co)
19066
+ runner: async (e) => (yf(), ko)
19065
19067
  }), Gk = V.FromOptions({
19066
19068
  keyword: "save",
19067
19069
  argTypes: [{ name: "name", type: "string", optional: !0 }],
@@ -19175,7 +19177,7 @@ const n1 = new V(
19175
19177
  ],
19176
19178
  async (e) => {
19177
19179
  const t = mn();
19178
- if (!to(e.options.screen)) {
19180
+ if (!no(e.options.screen)) {
19179
19181
  ce(
19180
19182
  e,
19181
19183
  `Screen ${e.options.screen} doesn't exist in the config`
@@ -19302,7 +19304,7 @@ const wl = [
19302
19304
  },
19303
19305
  returnAfterPlayerAnswer: !0
19304
19306
  }), u1 = () => {
19305
- const e = eo("text", []);
19307
+ const e = to("text", []);
19306
19308
  return (t, n) => {
19307
19309
  const r = e(t, n);
19308
19310
  return n.command.staticOptions = {
@@ -19520,7 +19522,7 @@ const wl = [
19520
19522
  },
19521
19523
  (e, t) => {
19522
19524
  let n = e.currentLine;
19523
- eo("if", [
19525
+ to("if", [
19524
19526
  { name: "condition", type: "string" }
19525
19527
  ])(e, t);
19526
19528
  const { lines: i, currentLine: s, line: o } = e, l = t.command;
@@ -19751,7 +19753,7 @@ function Z1(e, t) {
19751
19753
  }
19752
19754
  const eO = (e, t) => {
19753
19755
  let n = e.currentLine;
19754
- eo("choice", []);
19756
+ to("choice", []);
19755
19757
  const { line: r } = e, i = t.command;
19756
19758
  (!r.branch || r.branch.length < 2) && e.parserContext.error(
19757
19759
  r.line,
@@ -20672,7 +20674,7 @@ function OA(e) {
20672
20674
  }
20673
20675
  return t;
20674
20676
  }
20675
- function mo(e, t, n) {
20677
+ function ho(e, t, n) {
20676
20678
  if (n >= t) {
20677
20679
  let r = "log";
20678
20680
  switch (t) {
@@ -20690,10 +20692,10 @@ function mo(e, t, n) {
20690
20692
  }
20691
20693
  function AA(e, t) {
20692
20694
  return {
20693
- error: mo(e, nr.ERROR, t),
20694
- warn: mo(e, nr.WARN, t),
20695
- info: mo(e, nr.INFO, t),
20696
- debug: mo(e, nr.DEBUG, t)
20695
+ error: ho(e, nr.ERROR, t),
20696
+ warn: ho(e, nr.WARN, t),
20697
+ info: ho(e, nr.INFO, t),
20698
+ debug: ho(e, nr.DEBUG, t)
20697
20699
  };
20698
20700
  }
20699
20701
  const EA = AA("js-commands", qh), IA = V.FromOptions({
@@ -20728,7 +20730,7 @@ const EA = AA("js-commands", qh), IA = V.FromOptions({
20728
20730
  function NA(e) {
20729
20731
  e.addCommand(tO), e.addCommand(iO), e.addCommand(L1), e.addCommand(Lk), e.addCommand(Dk), e.addCommand(Mk), e.addCommand(Rk), e.addCommand(Fk), e.addCommand(j1), e.addCommand(P1), e.addCommand(N1), e.addCommand(x1), e.addCommand(Zk), e.addCommand(Jk), e.addCommand(Xk), e.addCommand(e1), e.addCommand(s1), e.addCommand(i1), e.addCommand(o1), e.addCommand(OO), e.addCommand(AO), e.addCommand(EO), e.addCommand(IO), e.addCommand(I1), e.addCommand(D1), e.addCommand(M1), e.addCommand(R1), e.addCommand(F1), e.addCommand(U1), e.addCommand(B1), e.addCommand(q1), e.addCommand(V1), e.addCommand(H1), e.addCommand(K1), e.addCommand(G1), e.addCommand(W1), e.addCommand(Y1), e.addCommand(J1), e.addCommand(z1), e.addCommand(Q1), e.addCommand(r1), e.addCommand(n1), e.addCommand(d1), e.addCommand(a1), e.addCommand(l1), e.addCommand(c1), e.addCommand(Uk), e.addCommand(Bk), e.addCommand(qk), e.addCommand(Vk), e.addCommand(Hk), e.addCommand(Kk), e.addCommand(Gk), e.addCommand(zk), e.addCommand(Wk), e.addCommand(Qk), e.addCommand(v1), e.addCommand(_1), e.addCommand(b1), e.addCommand(T1), e.addCommand(A1), e.addCommand(E1), e.addCommand(S1), e.addCommand(w1), e.addCommand($1), e.addCommand(C1), e.addCommand(k1), e.addCommand(O1), e.addCommand(f1), e.addCommand(p1), e.addCommand(y1), e.addCommand(g1), e.addCommand(m1), e.addCommand(h1), e.addCommand(kk), e.addCommand(Ok), e.addCommand(Ak), e.addCommand(Pk), e.addCommand(jk), e.addCommand(Nk), e.addCommand(xk), e.addCommand(Ek), e.addCommand(Ik), e.addCommand(Wp), e.addCommand(cO), e.addCommand(uO), e.addCommand(dO), e.addCommand(fO), e.addCommand(pO), e.addCommand(mO), e.addCommand(hO), e.addCommand(yO), e.addCommand(gO), e.addCommand(vO), e.addCommand(_O), e.addCommand(bO), e.addCommand(TO), e.addCommand(SO), e.addCommand($O), e.addCommand(wO), e.addCommand(CO), e.addCommand(kO), e.addCommand(PO), e.addCommand(NO), e.addCommand(xO), e.addCommand(jO), e.addCommand(LO), e.addCommand(DO), e.addCommand(MO), e.addCommand(RO), e.addCommand(FO), e.addCommand(UO), e.addCommand(BO), e.addCommand(qO), e.addCommand(VO), e.addCommand(HO), e.addCommand(KO), e.addCommand(GO), e.addCommand(WO), e.addCommand(zO), e.addCommand(QO), e.addCommand(TA), e.addCommand(SA), e.addCommand(bA), e.addCommand(wA), e.addCommand($A), e.addCommand(CA), e.addCommand(tA), e.addCommand(nA), e.addCommand(rA), e.addCommand(iA), e.addCommand(oA), e.addCommand(sA), e.addCommand(aA), e.addCommand(lA), e.addCommand(cA), e.addCommand(uA), e.addCommand(dA), e.addCommand(fA), e.addCommand(pA), e.addCommand(mA), e.addCommand(hA), e.addCommand(yA), e.addCommand(gA), e.addCommand(_A), e.addCommand(vA), e.addCommand(w$), e.addCommand(kA), e.addCommand(IA), e.addCommand(PA);
20730
20732
  }
20731
- const xA = $e({
20733
+ const xA = Ce({
20732
20734
  data() {
20733
20735
  return {
20734
20736
  muted: !1,
@@ -20789,7 +20791,7 @@ function RA(e, t, n, r, i, s) {
20789
20791
  ]))), 128))
20790
20792
  ]);
20791
20793
  }
20792
- const FA = /* @__PURE__ */ sn(xA, [["render", RA]]), UA = { class: "settings-widget-container" }, BA = ["for", "id"], qA = ["id", "name", "min", "max", "step"], VA = ["id", "name"], HA = ["id", "name"], KA = { class: "mx-8" }, GA = { class: "text-left setting-description" }, WA = /* @__PURE__ */ M("hr", { class: "h-px my-8 bg-gray-200 border-0 dark:bg-gray-700 setting-separator" }, null, -1), zA = /* @__PURE__ */ $e({
20794
+ const FA = /* @__PURE__ */ sn(xA, [["render", RA]]), UA = { class: "settings-widget-container" }, BA = ["for", "id"], qA = ["id", "name", "min", "max", "step"], VA = ["id", "name"], HA = ["id", "name"], KA = { class: "mx-8" }, GA = { class: "text-left setting-description" }, WA = /* @__PURE__ */ M("hr", { class: "h-px my-8 bg-gray-200 border-0 dark:bg-gray-700 setting-separator" }, null, -1), zA = /* @__PURE__ */ Ce({
20793
20795
  __name: "setting-widget",
20794
20796
  props: {
20795
20797
  settingId: {}
@@ -20847,19 +20849,19 @@ const FA = /* @__PURE__ */ sn(xA, [["render", RA]]), UA = { class: "settings-wid
20847
20849
  WA
20848
20850
  ], 64));
20849
20851
  }
20850
- }), QA = { class: "container mx-auto settings-menu-container" }, YA = /* @__PURE__ */ M("h2", { class: "settings-menu-title subtitle text-center" }, "Settings", -1), JA = /* @__PURE__ */ $e({
20852
+ }), QA = { class: "container mx-auto settings-menu-container" }, YA = /* @__PURE__ */ M("h2", { class: "settings-menu-title subtitle text-center" }, "Settings", -1), JA = /* @__PURE__ */ Ce({
20851
20853
  __name: "settings-menu",
20852
20854
  setup(e) {
20853
20855
  const t = In(), n = q(() => t.getAllSettingSchemas());
20854
20856
  return (r, i) => (D(), J("div", QA, [
20855
20857
  YA,
20856
- (D(!0), J(We, null, Xe(n.value, (s, o) => (D(), Ce(zA, {
20858
+ (D(!0), J(We, null, Xe(n.value, (s, o) => (D(), $e(zA, {
20857
20859
  settingId: o,
20858
20860
  key: o
20859
20861
  }, null, 8, ["settingId"]))), 128))
20860
20862
  ]));
20861
20863
  }
20862
- }), XA = { class: "menu-content" }, ZA = /* @__PURE__ */ $e({
20864
+ }), XA = { class: "menu-content" }, ZA = /* @__PURE__ */ Ce({
20863
20865
  __name: "MainMenu",
20864
20866
  props: {
20865
20867
  inputListener: {}
@@ -20923,7 +20925,7 @@ const FA = /* @__PURE__ */ sn(xA, [["render", RA]]), UA = { class: "settings-wid
20923
20925
  /* @__PURE__ */ M("p", null, "No tab selected")
20924
20926
  ], -1), oE = [
20925
20927
  iE
20926
- ], sE = /* @__PURE__ */ $e({
20928
+ ], sE = /* @__PURE__ */ Ce({
20927
20929
  __name: "SubTabController",
20928
20930
  props: {
20929
20931
  tabs: {},
@@ -20951,7 +20953,7 @@ const FA = /* @__PURE__ */ sn(xA, [["render", RA]]), UA = { class: "settings-wid
20951
20953
  delete r.inputListener.actions.subPreviousTab, delete r.inputListener.actions.subNextTab;
20952
20954
  }), (l, u) => (D(), J("div", eE, [
20953
20955
  l.tabs.length > 1 ? (D(), J("div", tE, [
20954
- (D(!0), J(We, null, Xe(l.tabs, (c, m) => (D(), Ce(Sf, {
20956
+ (D(!0), J(We, null, Xe(l.tabs, (c, m) => (D(), $e(Sf, {
20955
20957
  key: c.id,
20956
20958
  tab: c,
20957
20959
  active: m === i.value,
@@ -20959,7 +20961,7 @@ const FA = /* @__PURE__ */ sn(xA, [["render", RA]]), UA = { class: "settings-wid
20959
20961
  }, null, 8, ["tab", "active", "onClick"]))), 128))
20960
20962
  ])) : Oe("", !0),
20961
20963
  o.value ? (D(), J("div", nE, [
20962
- o.value ? (D(), Ce(Ko(o.value.component), Hc({
20964
+ o.value ? (D(), $e(Ko(o.value.component), Hc({
20963
20965
  key: o.value.id,
20964
20966
  inputListener: l.inputListener
20965
20967
  }, o.value.extraProps, {
@@ -20968,7 +20970,7 @@ const FA = /* @__PURE__ */ sn(xA, [["render", RA]]), UA = { class: "settings-wid
20968
20970
  ])) : (D(), J("div", rE, oE))
20969
20971
  ]));
20970
20972
  }
20971
- }), aE = ["onClick"], lE = { class: "item-title" }, cE = { class: "item-amount" }, uE = /* @__PURE__ */ $e({
20973
+ }), aE = ["onClick"], lE = { class: "item-title" }, cE = { class: "item-amount" }, uE = /* @__PURE__ */ Ce({
20972
20974
  __name: "inventory-section",
20973
20975
  props: {
20974
20976
  items: {},
@@ -21023,7 +21025,7 @@ const FA = /* @__PURE__ */ sn(xA, [["render", RA]]), UA = { class: "settings-wid
21023
21025
  ], 512)
21024
21026
  ], 2));
21025
21027
  }
21026
- }), dE = { class: "flex flex-row item-description-container" }, fE = { class: "flex item-left" }, pE = { class: "flex item-right" }, mE = /* @__PURE__ */ M("hr", { class: "hr-solid" }, null, -1), hE = /* @__PURE__ */ $e({
21028
+ }), dE = { class: "flex flex-row item-description-container" }, fE = { class: "flex item-left" }, pE = { class: "flex item-right" }, mE = /* @__PURE__ */ M("hr", { class: "hr-solid" }, null, -1), hE = /* @__PURE__ */ Ce({
21027
21029
  __name: "item-details",
21028
21030
  props: {
21029
21031
  item: {}
@@ -21081,7 +21083,7 @@ const FA = /* @__PURE__ */ sn(xA, [["render", RA]]), UA = { class: "settings-wid
21081
21083
  }
21082
21084
  }), yE = { key: 0 }, gE = { key: 2 }, vE = /* @__PURE__ */ M("h2", null, "The inventory is empty!", -1), _E = [
21083
21085
  vE
21084
- ], bE = /* @__PURE__ */ $e({
21086
+ ], bE = /* @__PURE__ */ Ce({
21085
21087
  __name: "inventory-ui",
21086
21088
  props: {
21087
21089
  section: {},
@@ -21110,14 +21112,14 @@ const FA = /* @__PURE__ */ sn(xA, [["render", RA]]), UA = { class: "settings-wid
21110
21112
  id: m.section.id,
21111
21113
  onChosen: l
21112
21114
  }, null, 8, ["items", "title", "inputListener", "id"])
21113
- ])) : typeof i.value == "string" ? (D(), Ce(hE, {
21115
+ ])) : typeof i.value == "string" ? (D(), $e(hE, {
21114
21116
  key: 1,
21115
21117
  item: r.value[i.value],
21116
21118
  onUse: c,
21117
21119
  onClose: u
21118
21120
  }, null, 8, ["item"])) : (D(), J("div", gE, _E));
21119
21121
  }
21120
- }), TE = /* @__PURE__ */ $e({
21122
+ }), TE = /* @__PURE__ */ Ce({
21121
21123
  __name: "InventoryTab",
21122
21124
  props: {
21123
21125
  inputListener: {}
@@ -21165,7 +21167,7 @@ const FA = /* @__PURE__ */ sn(xA, [["render", RA]]), UA = { class: "settings-wid
21165
21167
  }, null, 8, ["tabs", "inputListener"])
21166
21168
  ]));
21167
21169
  }
21168
- }), SE = ["id"], wE = { class: "obtained-status" }, $E = { class: "achievement-title" }, CE = { class: "achievement-description" }, kE = /* @__PURE__ */ $e({
21170
+ }), SE = ["id"], wE = { class: "obtained-status" }, $E = { class: "achievement-title" }, CE = { class: "achievement-description" }, kE = /* @__PURE__ */ Ce({
21169
21171
  __name: "achievement-tile",
21170
21172
  props: {
21171
21173
  achievement: {}
@@ -21173,12 +21175,12 @@ const FA = /* @__PURE__ */ sn(xA, [["render", RA]]), UA = { class: "settings-wid
21173
21175
  setup(e) {
21174
21176
  const t = e, n = hi(), r = q(
21175
21177
  () => n.getExistingAchievement(t.achievement)
21176
- ), i = q(() => _l(t.achievement)), s = Gi().secretAchievements ?? {
21178
+ ), i = q(() => _l(t.achievement)), s = Wi().secretAchievements ?? {
21177
21179
  censorName: !0,
21178
21180
  censorDescription: !0
21179
21181
  }, o = q(() => {
21180
21182
  let m = r.value.unlocked ? i.value.icon : i.value.lockedIcon;
21181
- return m || (m = Gi().defaultAchievementIcon), {
21183
+ return m || (m = Wi().defaultAchievementIcon), {
21182
21184
  backgroundImage: `url(${Wt(m)})`
21183
21185
  };
21184
21186
  }), l = q(() => !i.value.secret || !s.censorName ? i.value.name : "Hidden Achievement"), u = q(() => !i.value.secret || !s.censorDescription ? i.value.description : "This achievement is hidden. Complete it to discover more."), c = q(() => r.value.unlocked ? `Obtained ${new Date(r.value.unlockTime).toLocaleDateString()}` : "Not obtained yet");
@@ -21195,7 +21197,7 @@ const FA = /* @__PURE__ */ sn(xA, [["render", RA]]), UA = { class: "settings-wid
21195
21197
  M("p", CE, ye(u.value), 1)
21196
21198
  ], 8, SE));
21197
21199
  }
21198
- }), OE = { class: "achievements-section-achievements" }, AE = /* @__PURE__ */ $e({
21200
+ }), OE = { class: "achievements-section-achievements" }, AE = /* @__PURE__ */ Ce({
21199
21201
  __name: "achievements-section",
21200
21202
  props: {
21201
21203
  achievements: {},
@@ -21209,14 +21211,14 @@ const FA = /* @__PURE__ */ sn(xA, [["render", RA]]), UA = { class: "settings-wid
21209
21211
  }, [
21210
21212
  M("h3", null, ye(n.title), 1),
21211
21213
  M("div", OE, [
21212
- (D(!0), J(We, null, Xe(n.achievements, (i) => (D(), Ce(kE, {
21214
+ (D(!0), J(We, null, Xe(n.achievements, (i) => (D(), $e(kE, {
21213
21215
  achievement: i.id,
21214
21216
  key: i.id
21215
21217
  }, null, 8, ["achievement"]))), 128))
21216
21218
  ])
21217
21219
  ], 2));
21218
21220
  }
21219
- }), EE = $e({
21221
+ }), EE = Ce({
21220
21222
  setup() {
21221
21223
  const e = hi(), t = Je(), n = q(() => e.achievements), r = q(() => t.currentDialog.choices);
21222
21224
  return { achievements: n, currentlyChoosing: r };
@@ -21278,7 +21280,7 @@ const FA = /* @__PURE__ */ sn(xA, [["render", RA]]), UA = { class: "settings-wid
21278
21280
  function jE(e, t, n, r, i, s) {
21279
21281
  const o = Cr("AchievementsSection");
21280
21282
  return Object.keys(e.achievementsToDisplay).length > 0 ? (D(), J("div", IE, [
21281
- (D(!0), J(We, null, Xe(e.sections, (l) => (D(), Ce(o, {
21283
+ (D(!0), J(We, null, Xe(e.sections, (l) => (D(), $e(o, {
21282
21284
  key: l.id,
21283
21285
  achievements: l.achievements,
21284
21286
  title: l.title,
@@ -21290,7 +21292,7 @@ function jE(e, t, n, r, i, s) {
21290
21292
  const LE = /* @__PURE__ */ sn(EE, [["render", jE]]), DE = { class: "quest-display" }, ME = { class: "quest-title" }, RE = { class: "quest-description" }, FE = {
21291
21293
  key: 0,
21292
21294
  class: "quest-objectives-container list-disc"
21293
- }, UE = /* @__PURE__ */ $e({
21295
+ }, UE = /* @__PURE__ */ Ce({
21294
21296
  __name: "QuestDetails",
21295
21297
  props: {
21296
21298
  quest: {}
@@ -21298,7 +21300,7 @@ const LE = /* @__PURE__ */ sn(EE, [["render", jE]]), DE = { class: "quest-displa
21298
21300
  setup(e) {
21299
21301
  const t = e, n = q(() => lr(t.quest.id));
21300
21302
  function r(l) {
21301
- return Uo(t.quest.id, l);
21303
+ return Bo(t.quest.id, l);
21302
21304
  }
21303
21305
  const i = q(() => {
21304
21306
  switch (t.quest.state) {
@@ -21339,7 +21341,7 @@ const LE = /* @__PURE__ */ sn(EE, [["render", jE]]), DE = { class: "quest-displa
21339
21341
  ])) : Oe("", !0)
21340
21342
  ]));
21341
21343
  }
21342
- }), BE = { class: "quest-list-title" }, qE = /* @__PURE__ */ $e({
21344
+ }), BE = { class: "quest-list-title" }, qE = /* @__PURE__ */ Ce({
21343
21345
  __name: "QuestDisplay",
21344
21346
  props: {
21345
21347
  quest: {}
@@ -21355,7 +21357,7 @@ const LE = /* @__PURE__ */ sn(EE, [["render", jE]]), DE = { class: "quest-displa
21355
21357
  M("p", BE, ye(n.value.title), 1)
21356
21358
  ], 2));
21357
21359
  }
21358
- }), VE = { key: 0 }, HE = { key: 0 }, KE = { key: 1 }, GE = /* @__PURE__ */ $e({
21360
+ }), VE = { key: 0 }, HE = { key: 0 }, KE = { key: 1 }, GE = /* @__PURE__ */ Ce({
21359
21361
  __name: "quests-list-section",
21360
21362
  props: {
21361
21363
  quests: {},
@@ -21393,7 +21395,7 @@ const LE = /* @__PURE__ */ sn(EE, [["render", jE]]), DE = { class: "quest-displa
21393
21395
  M("div", {
21394
21396
  class: Ge(`${s.sectionId}-${l.category.id}-quests`)
21395
21397
  }, [
21396
- (D(!0), J(We, null, Xe(l.quests, (u) => (D(), Ce(qE, {
21398
+ (D(!0), J(We, null, Xe(l.quests, (u) => (D(), $e(qE, {
21397
21399
  key: u.id,
21398
21400
  quest: u,
21399
21401
  onClick: (c) => s.$emit("quest-selected", u)
@@ -21405,7 +21407,7 @@ const LE = /* @__PURE__ */ sn(EE, [["render", jE]]), DE = { class: "quest-displa
21405
21407
  ]))
21406
21408
  ], 2));
21407
21409
  }
21408
- }), WE = $e({
21410
+ }), WE = Ce({
21409
21411
  setup() {
21410
21412
  const e = Pt(), t = q(() => e.quests), n = le(null);
21411
21413
  return { quests: t, selectedQuest: n };
@@ -21460,7 +21462,7 @@ function YE(e, t, n, r, i, s) {
21460
21462
  }, null, 8, ["quests", "onQuestSelected"])
21461
21463
  ]),
21462
21464
  M("div", QE, [
21463
- e.selectedQuest ? (D(), Ce(l, {
21465
+ e.selectedQuest ? (D(), $e(l, {
21464
21466
  key: 0,
21465
21467
  quest: e.selectedQuest
21466
21468
  }, null, 8, ["quest"])) : Oe("", !0)
@@ -21484,7 +21486,7 @@ function Jp(e) {
21484
21486
  skillLevelText: c
21485
21487
  };
21486
21488
  }
21487
- const XE = (e) => (qc("data-v-a94cb74f"), e = e(), Vc(), e), ZE = ["id"], eI = { class: "flex flex-row skill-description-container" }, tI = { class: "flex skill-left" }, nI = { class: "flex skill-right" }, rI = /* @__PURE__ */ XE(() => /* @__PURE__ */ M("hr", { class: "hr-solid" }, null, -1)), iI = ["innerHTML"], oI = /* @__PURE__ */ $e({
21489
+ const XE = (e) => (qc("data-v-a94cb74f"), e = e(), Vc(), e), ZE = ["id"], eI = { class: "flex flex-row skill-description-container" }, tI = { class: "flex skill-left" }, nI = { class: "flex skill-right" }, rI = /* @__PURE__ */ XE(() => /* @__PURE__ */ M("hr", { class: "hr-solid" }, null, -1)), iI = ["innerHTML"], oI = /* @__PURE__ */ Ce({
21488
21490
  __name: "SkillDetails",
21489
21491
  props: {
21490
21492
  chosenSkill: {},
@@ -21536,7 +21538,7 @@ const XE = (e) => (qc("data-v-a94cb74f"), e = e(), Vc(), e), ZE = ["id"], eI = {
21536
21538
  ], 512)
21537
21539
  ], 8, ZE));
21538
21540
  }
21539
- }), sI = /* @__PURE__ */ sn(oI, [["__scopeId", "data-v-a94cb74f"]]), aI = { class: "skill-title" }, lI = { class: "skill-xp-container" }, cI = { class: "skill-xp-text" }, uI = { class: "skill-level" }, dI = /* @__PURE__ */ $e({
21541
+ }), sI = /* @__PURE__ */ sn(oI, [["__scopeId", "data-v-a94cb74f"]]), aI = { class: "skill-title" }, lI = { class: "skill-xp-container" }, cI = { class: "skill-xp-text" }, uI = { class: "skill-level" }, dI = /* @__PURE__ */ Ce({
21540
21542
  __name: "SkillGridElement",
21541
21543
  props: {
21542
21544
  chosenSkill: {},
@@ -21575,7 +21577,7 @@ const XE = (e) => (qc("data-v-a94cb74f"), e = e(), Vc(), e), ZE = ["id"], eI = {
21575
21577
  M("h3", uI, ye(ot(c).level), 1)
21576
21578
  ], 4));
21577
21579
  }
21578
- }), fI = /* @__PURE__ */ sn(dI, [["__scopeId", "data-v-8d457bf9"]]), pI = { class: "skills-container" }, mI = /* @__PURE__ */ $e({
21580
+ }), fI = /* @__PURE__ */ sn(dI, [["__scopeId", "data-v-8d457bf9"]]), pI = { class: "skills-container" }, mI = /* @__PURE__ */ Ce({
21579
21581
  __name: "SkillsGrid",
21580
21582
  props: {
21581
21583
  inputListener: {},
@@ -21612,7 +21614,7 @@ const XE = (e) => (qc("data-v-a94cb74f"), e = e(), Vc(), e), ZE = ["id"], eI = {
21612
21614
  }), _t(() => {
21613
21615
  l.value && l.value.disable();
21614
21616
  }), (d, p) => (D(), J("div", pI, [
21615
- (D(!0), J(We, null, Xe(a.value, (h) => (D(), Ce(fI, {
21617
+ (D(!0), J(We, null, Xe(a.value, (h) => (D(), $e(fI, {
21616
21618
  ref_for: !0,
21617
21619
  ref_key: "skillGridElements",
21618
21620
  ref: r,
@@ -21623,7 +21625,7 @@ const XE = (e) => (qc("data-v-a94cb74f"), e = e(), Vc(), e), ZE = ["id"], eI = {
21623
21625
  }, null, 8, ["onChoose", "chosenSkill", "inputListener"]))), 128))
21624
21626
  ]));
21625
21627
  }
21626
- }), hI = /* @__PURE__ */ sn(mI, [["__scopeId", "data-v-31202bb8"]]), yI = /* @__PURE__ */ $e({
21628
+ }), hI = /* @__PURE__ */ sn(mI, [["__scopeId", "data-v-31202bb8"]]), yI = /* @__PURE__ */ Ce({
21627
21629
  __name: "SkillsWindow",
21628
21630
  props: {
21629
21631
  inputListener: {}
@@ -21636,12 +21638,12 @@ const XE = (e) => (qc("data-v-a94cb74f"), e = e(), Vc(), e), ZE = ["id"], eI = {
21636
21638
  function i() {
21637
21639
  t.value = !1;
21638
21640
  }
21639
- return (s, o) => t.value ? typeof t.value == "string" ? (D(), Ce(sI, {
21641
+ return (s, o) => t.value ? typeof t.value == "string" ? (D(), $e(sI, {
21640
21642
  key: 1,
21641
21643
  chosenSkill: t.value,
21642
21644
  inputListener: s.inputListener,
21643
21645
  onCancel: i
21644
- }, null, 8, ["chosenSkill", "inputListener"])) : Oe("", !0) : (D(), Ce(hI, {
21646
+ }, null, 8, ["chosenSkill", "inputListener"])) : Oe("", !0) : (D(), $e(hI, {
21645
21647
  key: 0,
21646
21648
  inputListener: s.inputListener,
21647
21649
  lastChosenSkill: n.value,
@@ -21994,17 +21996,17 @@ const OI = "body{font-size:52px}", AI = {
21994
21996
  funTheme: AI,
21995
21997
  gameloop: Zo,
21996
21998
  generateObjectFromList: mu,
21997
- generateParser: eo,
21999
+ generateParser: to,
21998
22000
  getAssetUrl: Wt,
21999
22001
  getButtonConfig: Ar,
22000
22002
  getConfig: ue,
22001
22003
  getDataUrl: vl,
22002
22004
  getFile: wa,
22003
- getImageUrl: no,
22005
+ getImageUrl: ro,
22004
22006
  getItemConfig: $n,
22005
- getObjectiveConfig: Uo,
22007
+ getObjectiveConfig: Bo,
22006
22008
  getQuestConfig: lr,
22007
- getScreenConfig: to,
22009
+ getScreenConfig: no,
22008
22010
  getSkillConfig: gl,
22009
22011
  getSplitConfigUrl: xp,
22010
22012
  getWindow: da,
@@ -22045,7 +22047,7 @@ const OI = "body{font-size:52px}", AI = {
22045
22047
  useScreenObjects: on,
22046
22048
  useScreens: mn,
22047
22049
  useSkills: vt,
22048
- useTooltips: zi,
22050
+ useTooltips: Qi,
22049
22051
  useVM: Ie,
22050
22052
  warning: di
22051
22053
  }, Symbol.toStringTag, { value: "Module" }));
@@ -22320,11 +22322,11 @@ function uP(e, t) {
22320
22322
  }
22321
22323
  export {
22322
22324
  Ie as $,
22323
- to as A,
22325
+ no as A,
22324
22326
  $n as B,
22325
22327
  V as C,
22326
22328
  lr as D,
22327
- Uo as E,
22329
+ Bo as E,
22328
22330
  Oa as F,
22329
22331
  Uf as G,
22330
22332
  Bf as H,
@@ -22346,7 +22348,7 @@ export {
22346
22348
  on as X,
22347
22349
  mn as Y,
22348
22350
  vt as Z,
22349
- zi as _,
22351
+ Qi as _,
22350
22352
  sP as a,
22351
22353
  hi as a0,
22352
22354
  Jt as a1,
@@ -22391,7 +22393,7 @@ export {
22391
22393
  uP as b,
22392
22394
  TI as c,
22393
22395
  SI as d,
22394
- eo as e,
22396
+ to as e,
22395
22397
  Jf as f,
22396
22398
  ia as g,
22397
22399
  ff as h,
@@ -22408,10 +22410,10 @@ export {
22408
22410
  oP as s,
22409
22411
  Or as t,
22410
22412
  gl as u,
22411
- no as v,
22413
+ ro as v,
22412
22414
  Wt as w,
22413
22415
  xp as x,
22414
22416
  vl as y,
22415
22417
  Ar as z
22416
22418
  };
22417
- //# sourceMappingURL=lib-hQqAKesC.js.map
22419
+ //# sourceMappingURL=lib-QdLCsV3t.js.map